Skip to content

Build your personal knowledge base with Trilium Notes

feat(codemirror): basic autocomplete mechanism

Elian Doranf31ee48b1690
diff --git a/packages/codemirror/package.json b/packages/codemirror/package.json
index 201884fba1..31406e433b 100644
--- a/packages/codemirror/package.json
+++ b/packages/codemirror/package.json
@@ -17,10 +17,16 @@
"@codemirror/lang-vue": "0.1.3",
"@codemirror/lang-xml": "6.1.0",
"@codemirror/legacy-modes": "6.5.3",
+ "@codemirror/autocomplete": "6.18.6",
+ "@codemirror/lint": "6.8.5",
"@codemirror/search": "6.7.0",
"@codemirror/state": "6.6.0",
"@codemirror/view": "6.42.1",
"@eslint/js": "10.0.1",
+ "@typescript/vfs": "1.6.1",
+ "@valtown/codemirror-ts": "2.3.1",
+ "comlink": "4.4.2",
+ "typescript": "6.0.3",
"@fsegurai/codemirror-theme-abcdef": "6.2.5",
"@fsegurai/codemirror-theme-abyss": "6.2.5",
"@fsegurai/codemirror-theme-android-studio": "6.2.5",
diff --git a/packages/codemirror/src/index.ts b/packages/codemirror/src/index.ts
index 5cbaac90fa..0d84218c20 100644
--- a/packages/codemirror/src/index.ts
+++ b/packages/codemirror/src/index.ts
@@ -9,6 +9,7 @@ import byMimeType from "./syntax_highlighting.js";
import smartIndentWithTab from "./extensions/custom_tab.js";
import type { ThemeDefinition } from "./color_themes.js";
import { createSearchHighlighter, SearchHighlighter, searchMatchHighlightTheme } from "./find_replace.js";
+import { buildTypeCompletion } from "./type_completion/index.js";
export { default as ColorThemes, type ThemeDefinition, type ThemeVariant, getThemeById } from "./color_themes.js";
@@ -54,8 +55,11 @@ export default class CodeMirror extends EditorView {
private lineWrappingCompartment: Compartment;
private indentUnitCompartment: Compartment;
private searchHighlightCompartment: Compartment;
+ private typeCompletionCompartment: Compartment;
private searchPlugin?: SearchHighlighter | null;
private namedCompartments = new Map<string, Compartment>();
+ /** Monotonic token guarding against out-of-order async type-completion updates. */
+ private typeCompletionToken = 0;
constructor(config: EditorConfig) {
const languageCompartment = new Compartment();
@@ -64,6 +68,7 @@ export default class CodeMirror extends EditorView {
const lineWrappingCompartment = new Compartment();
const indentUnitCompartment = new Compartment();
const searchHighlightCompartment = new Compartment();
+ const typeCompletionCompartment = new Compartment();
let extensions: Extension[] = [];
@@ -77,6 +82,7 @@ export default class CodeMirror extends EditorView {
lineWrappingCompartment.of(config.lineWrapping ? EditorView.lineWrapping : []),
searchMatchHighlightTheme,
searchHighlightCompartment.of([]),
+ typeCompletionCompartment.of([]),
highlightActiveLine(),
lineNumbers(),
themeCompartment.of([
@@ -135,6 +141,7 @@ export default class CodeMirror extends EditorView {
this.lineWrappingCompartment = lineWrappingCompartment;
this.indentUnitCompartment = indentUnitCompartment;
this.searchHighlightCompartment = searchHighlightCompartment;
+ this.typeCompletionCompartment = typeCompletionCompartment;
}
#onDocumentUpdated(v: ViewUpdate) {
@@ -315,5 +322,24 @@ export default class CodeMirror extends EditorView {
this.dispatch({
effects: this.languageCompartment.reconfigure(newExtension)
});
+
+ await this.#updateTypeCompletion(mime);
+ }
+
+ /**
+ * Enables the TypeScript language service (full completion, hover docs and
+ * diagnostics) for backend/frontend script notes, and clears it otherwise.
+ * Guarded by a token so a slow async build for a previous MIME type can't
+ * overwrite a newer one.
+ */
+ async #updateTypeCompletion(mime: string) {
+ const token = ++this.typeCompletionToken;
+ const extensions = await buildTypeCompletion(mime);
+ if (token !== this.typeCompletionToken) {
+ return; // a newer setMimeType call superseded this one
+ }
+ this.dispatch({
+ effects: this.typeCompletionCompartment.reconfigure(extensions)
+ });
}
}
diff --git a/packages/codemirror/src/syntax_highlighting.ts b/packages/codemirror/src/syntax_highlighting.ts
index 85664967da..777c628415 100644
--- a/packages/codemirror/src/syntax_highlighting.ts
+++ b/packages/codemirror/src/syntax_highlighting.ts
@@ -4,15 +4,24 @@ import type { Extension } from "@codemirror/state";
import { SupportedMimeTypes } from "@triliumnext/commons";
async function buildJavaScript(mimeType: string) {
- const { javascript, esLint } = await import('@codemirror/lang-javascript');
- const lint = (await import("./extensions/eslint.js")).lint;
+ const { javascript } = await import('@codemirror/lang-javascript');
const extensions: Extension[] = [ javascript() ];
- const result = await lint(mimeType);
- if ("linter" in result) {
- const { linter, config } = result;
- extensions.push(linterExtension(esLint(linter, config)));
- extensions.push(lintGutter())
+ // Backend/frontend script notes get full type-aware diagnostics from the
+ // TypeScript language service (see ./type_completion), so the ESLint pass
+ // would only duplicate (and conflict with) it. Plain JS keeps ESLint.
+ const isScriptNote = mimeType === "application/javascript;env=frontend"
+ || mimeType === "application/javascript;env=backend";
+
+ if (!isScriptNote) {
+ const { esLint } = await import('@codemirror/lang-javascript');
+ const lint = (await import("./extensions/eslint.js")).lint;
+ const result = await lint(mimeType);
+ if ("linter" in result) {
+ const { linter, config } = result;
+ extensions.push(linterExtension(esLint(linter, config)));
+ extensions.push(lintGutter());
+ }
}
return extensions;
diff --git a/packages/codemirror/src/type_completion/backend_api.ts b/packages/codemirror/src/type_completion/backend_api.ts
new file mode 100644
index 0000000000..d6381bf3ca
--- /dev/null
+++ b/packages/codemirror/src/type_completion/backend_api.ts
@@ -0,0 +1,139 @@
+/**
+ * Ambient type definitions fed to the TypeScript language service when editing
+ * a **backend** script note (`application/javascript;env=backend`).
+ *
+ * Hand-curated subset of the real `Api` interface declared in
+ * `packages/trilium-core/src/services/backend_script_api.ts`. Standalone `.d.ts`
+ * (no imports) for the same reason as the frontend stub.
+ *
+ * Follow-up (see PoC notes): auto-generate from the live source at build time.
+ */
+export default /* ts */ `
+interface BAttribute {
+ attributeId: string;
+ type: "label" | "relation";
+ name: string;
+ value: string;
+ isInheritable: boolean;
+}
+
+interface BNote {
+ noteId: string;
+ title: string;
+ type: string;
+ mime: string;
+ isProtected: boolean;
+ getContent(): string | Buffer;
+ setContent(content: string | Buffer, opts?: { forceSave?: boolean }): void;
+ getParentNotes(): BNote[];
+ getChildNotes(): BNote[];
+ getAttributes(type?: string, name?: string): BAttribute[];
+ getOwnedAttributes(type?: string, name?: string): BAttribute[];
+ getLabelValue(name: string): string | null;
+ hasLabel(name: string): boolean;
+ setLabel(name: string, value?: string): BAttribute;
+ setRelation(name: string, targetNoteId: string): BAttribute;
+ getRelationTarget(name: string): BNote | null;
+}
+
+interface BBranch {
+ branchId: string;
+ noteId: string;
+ parentNoteId: string;
+ prefix: string | null;
+ notePosition: number;
+ isExpanded: boolean;
+}
+
+interface CreateNoteResult {
+ note: BNote;
+ branch: BBranch;
+}
+
+/** Trilium backend script API, exposed to "JS backend" code notes as the global \`api\`. */
+interface BackendApi {
+ /** Note where the script started executing (the event entrypoint). */
+ startNote: BNote;
+ /** Note where the script is currently executing. */
+ currentNote: BNote;
+ /** Entity whose event triggered this execution (or null). */
+ originEntity: unknown | null;
+
+ /** day.js instance for date manipulation. */
+ dayjs: (date?: string | number | Date) => { format(template: string): string };
+ /** axios HTTP client. */
+ axios: unknown;
+ /** cheerio HTML parser. */
+ cheerio: unknown;
+
+ /** Returns a note by its ID, or null. */
+ getNote(noteId: string): BNote | null;
+ /** Returns a branch by its ID, or null. */
+ getBranch(branchId: string): BBranch | null;
+ /** Returns an attribute by its ID, or null. */
+ getAttribute(attributeId: string): BAttribute | null;
+
+ /** Powerful attribute/value search, e.g. "#dateModified =* MONTH AND #log". */
+ searchForNotes(searchString: string, params?: Record<string, unknown>): BNote[];
+ /** Returns the first note matching the search, or null. */
+ searchForNote(searchString: string, params?: Record<string, unknown>): BNote | null;
+ /** Returns all notes carrying the given label. */
+ getNotesWithLabel(name: string, value?: string): BNote[];
+ /** Returns the first note carrying the given label, or null. */
+ getNoteWithLabel(name: string, value?: string): BNote | null;
+
+ /** Creates a new note under the given parent. */
+ createNewNote(params: {
+ parentNoteId: string;
+ title: string;
+ content: string | Buffer;
+ type: string;
+ mime?: string;
+ }): CreateNoteResult;
+ /** Convenience: create a text note. */
+ createTextNote(parentNoteId: string, title: string, content: string): CreateNoteResult;
+ /** Convenience: create a data (JSON) note. */
+ createDataNote(parentNoteId: string, title: string, content: object): CreateNoteResult;
+
+ /** Calendar helpers. */
+ getDayNote(date: string, rootNote?: BNote): BNote;
+ getTodayNote(rootNote?: BNote): BNote;
+ getWeekNote(date: string, rootNote?: BNote): BNote;
+ getMonthNote(month: string, rootNote?: BNote): BNote;
+ getYearNote(year: string, rootNote?: BNote): BNote;
+ getRootCalendarNote(): BNote;
+
+ /** Reads an option value. */
+ getOption(name: string): string;
+ /** Reads all options. */
+ getOptions(): Record<string, string>;
+ /** Application info (version, build date, etc.). */
+ getAppInfo(): Record<string, unknown>;
+
+ /** Runs the given function inside a transaction. */
+ transactional<T>(func: () => T): T;
+ /** Runs the given function on the frontend of all connected clients. */
+ runOnFrontend(func: (...args: unknown[]) => unknown, params?: unknown[]): Promise<unknown>;
+ /** Triggers a full backup immediately. */
+ backupNow(backupName: string): Promise<string>;
+
+ /** Writes a line to the script log. */
+ log(message: string): void;
+ /** Generates a random alphanumeric string of the given length. */
+ randomString(length: number): string;
+ /** Escapes the given HTML string. */
+ escapeHtml(html: string): string;
+ /** Unescapes the given HTML string. */
+ unescapeHtml(html: string): string;
+
+ /** Low-level SQL access. */
+ sql: {
+ getRow<T>(query: string, params?: unknown[]): T;
+ getRows<T>(query: string, params?: unknown[]): T[];
+ getValue<T>(query: string, params?: unknown[]): T;
+ execute(query: string, params?: unknown[]): unknown;
+ };
+}
+
+declare const api: BackendApi;
+`;
diff --git a/packages/codemirror/src/type_completion/frontend_api.ts b/packages/codemirror/src/type_completion/frontend_api.ts
new file mode 100644
index 0000000000..851f72d2c1
--- /dev/null
+++ b/packages/codemirror/src/type_completion/frontend_api.ts
@@ -0,0 +1,125 @@
+/**
+ * Ambient type definitions fed to the TypeScript language service when editing
+ * a **frontend** script note (`application/javascript;env=frontend`).
+ *
+ * This is a hand-curated subset of the real `Api` interface declared in
+ * `apps/client/src/services/frontend_script_api.ts`. It is intentionally a
+ * standalone `.d.ts` (no imports) so it can be loaded directly into the
+ * in-browser virtual TypeScript environment without resolving the client's
+ * whole transitive type graph.
+ *
+ * Follow-up (see PoC notes): replace this curated stub with an auto-generated,
+ * fully-faithful declaration produced from the live source at build time.
+ */
+export default /* ts */ `
+interface FAttribute {
+ attributeId: string;
+ type: "label" | "relation";
+ name: string;
+ value: string;
+ isInheritable: boolean;
+}
+
+interface FNote {
+ noteId: string;
+ title: string;
+ type: string;
+ mime: string;
+ isProtected: boolean;
+ getParentNotes(): FNote[];
+ getChildNotes(): Promise<FNote[]>;
+ getAttributes(type?: string, name?: string): FAttribute[];
+ getOwnedAttributes(type?: string, name?: string): FAttribute[];
+ getLabelValue(name: string): string | null;
+ getLabels(name?: string): FAttribute[];
+ hasLabel(name: string): boolean;
+ getContent(): Promise<string>;
+ getNoteComplement(): Promise<unknown>;
+}
+
+interface NoteContext {
+ ntxId: string | null;
+ note: FNote | null;
+ notePath: string | null;
+ getCodeEditor(): Promise<unknown>;
+ getTextEditor(): Promise<unknown>;
+}
+
+/** Trilium frontend script API, exposed to "JS frontend" code notes as the global \`api\`. */
+interface FrontendApi {
+ /** Note where the script started executing (the event entrypoint). */
+ startNote: FNote;
+ /** Note where the script is currently executing. */
+ currentNote: FNote;
+ /** Entity whose event triggered this execution (or null). */
+ originEntity: unknown | null;
+ /** day.js instance for date manipulation. See https://day.js.org */
+ dayjs: (date?: string | number | Date) => { format(template: string): string };
+
+ /** Activates a note in the tree and in the note detail. */
+ activateNote(notePath: string): Promise<void>;
+ /** Activates a newly created note, ensuring the frontend has fully synced first. */
+ activateNewNote(notePath: string): Promise<void>;
+ /** Opens a note in a new tab. */
+ openTabWithNote(notePath: string, activate: boolean): Promise<void>;
+ /** Opens a note in a new split. */
+ openSplitWithNote(notePath: string, activate: boolean): Promise<void>;
+
+ /** Executes the given (synchronous) function on the backend. */
+ runOnBackend(func: (...args: unknown[]) => unknown, params?: unknown[]): Promise<unknown>;
+ /** Executes the given async function on the backend with manual transaction handling. */
+ runAsyncOnBackendWithManualTransactionHandling(func: (...args: unknown[]) => unknown, params?: unknown[]): Promise<unknown>;
+
+ /** Powerful attribute/value search, e.g. "#dateModified =* MONTH AND #log". */
+ searchForNotes(searchString: string): Promise<FNote[]>;
+ /** Returns the first note matching the search, or null. */
+ searchForNote(searchString: string): Promise<FNote | null>;
+ /** Returns a note by its ID (loading it into the cache if needed). */
+ getNote(noteId: string): Promise<FNote | null>;
+ /** Returns multiple notes by their IDs. */
+ getNotes(noteIds: string[], silentNotFoundError?: boolean): Promise<FNote[]>;
+
+ /** Returns the active note context. */
+ getActiveContext(): NoteContext | null;
+ /** Returns the note currently active in the detail. */
+ getActiveContextNote(): FNote | null;
+ /** Returns the CodeMirror editor of the active code note, if any. */
+ getActiveContextCodeEditor(): Promise<unknown>;
+ /** Returns the text editor of the active text note, if any. */
+ getActiveContextTextEditor(): Promise<unknown>;
+
+ /** Calendar helpers. */
+ getDayNote(date: string): Promise<FNote | null>;
+ getTodayNote(): Promise<FNote | null>;
+ getWeekNote(date: string): Promise<FNote | null>;
+ getMonthNote(month: string): Promise<FNote | null>;
+ getYearNote(year: string): Promise<FNote | null>;
+
+ /** Shows an info-level toast message to the user. */
+ showMessage(message: string, delay?: number): void;
+ /** Shows an error-level toast message to the user. */
+ showError(message: string, delay?: number): void;
+ /** Shows a confirm dialog; resolves to true if confirmed. */
+ showConfirmDialog(message: string): Promise<boolean>;
+ /** Shows a prompt dialog; resolves to the entered string. */
+ showPromptDialog(props: { title?: string; message?: string; defaultValue?: string }): Promise<string | null>;
+
+ /** Binds a global keyboard shortcut to a handler. */
+ bindGlobalShortcut(keyboardShortcut: string, handler: () => void, namespace?: string): void;
+ /** Waits until the frontend is fully synced with the backend. */
+ waitUntilSynced(): Promise<void>;
+ /** Reloads the given notes from the server into the cache. */
+ reloadNotes(noteIds: string[]): Promise<void>;
+
+ /** Writes a line to the script log (visible in the UI). */
+ log(message: string): void;
+ /** Generates a random alphanumeric string of the given length. */
+ randomString(length: number): string;
+ /** Formats a note size (in bytes) into a human-readable string. */
+ formatSize(size: number): string;
+ /** Triggers a Trilium command. */
+ triggerCommand(name: string, data?: Record<string, unknown>): void;
+}
+
+declare const api: FrontendApi;
+`;
diff --git a/packages/codemirror/src/type_completion/index.ts b/packages/codemirror/src/type_completion/index.ts
new file mode 100644
index 0000000000..86c8c06b2e
--- /dev/null
+++ b/packages/codemirror/src/type_completion/index.ts
@@ -0,0 +1,110 @@
+import { autocompletion } from "@codemirror/autocomplete";
+import type { Extension } from "@codemirror/state";
+
+import backendApiDts from "./backend_api.js";
+import frontendApiDts from "./frontend_api.js";
+
+/**
+ * Full IntelliSense for backend/frontend script notes.
+ *
+ * Runs the real TypeScript language service (via `@typescript/vfs` +
+ * `@valtown/codemirror-ts`) over the script source, fed with a curated
+ * declaration of Trilium's `api` global. This replaces the ESLint-based
+ * linting for these two MIME types with type-aware completion, hover docs
+ * and diagnostics from a single source.
+ *
+ * Everything here is dynamically imported so the TypeScript compiler (a large
+ * dependency) is only pulled into a lazy chunk when a script note is opened —
+ * plain code notes never load it.
+ */
+
+export const SCRIPT_MIME_FRONTEND = "application/javascript;env=frontend";
+export const SCRIPT_MIME_BACKEND = "application/javascript;env=backend";
+
+export function isScriptMime(mime: string): boolean {
+ return mime === SCRIPT_MIME_FRONTEND || mime === SCRIPT_MIME_BACKEND;
+}
+
+const SCRIPT_PATH = "/script.js";
+const API_DTS_PATH = "/trilium-api.d.ts";
+
+const COMPILER_OPTIONS = {
+ // `target`/`lib` are filled in lazily once TypeScript is loaded (needs the ts enums).
+ allowJs: true,
+ checkJs: true,
+ // `@typescript/vfs` defaults moduleResolution to the legacy `node10`, which
+ // TypeScript 6 rejects unless deprecations are explicitly silenced.
+ ignoreDeprecations: "6.0"
+};
+
+// The default TypeScript lib.*.d.ts map is large and identical for every
+// editor, so fetch it once per session and share it (cloned) across envs.
+let libMapPromise: Promise<Map<string, string>> | null = null;
+
+async function getLibMap(ts: typeof import("typescript")) {
+ const { createDefaultMapFromCDN } = await import("@typescript/vfs");
+ const compilerOptions = {
+ ...COMPILER_OPTIONS,
+ target: ts.ScriptTarget.ES2020,
+ lib: ["es2020", "dom"]
+ };
+ // cache=false: we keep the map in module memory instead of localStorage
+ // (Trilium avoids localStorage; in-memory sharing is enough per session).
+ return createDefaultMapFromCDN(compilerOptions, ts.version, false, ts);
+}
+
+async function createEnv(mime: string) {
+ const tsModule = await import("typescript");
+ const ts = tsModule.default ?? tsModule;
+ const { createSystem, createVirtualTypeScriptEnvironment } = await import("@typescript/vfs");
+
+ if (!libMapPromise) {
+ libMapPromise = getLibMap(ts);
+ }
+ const libMap = await libMapPromise;
+
+ // Each editor gets its own copy so concurrent script notes (e.g. split
+ // view) don't clobber each other's source file.
+ const fsMap = new Map(libMap);
+ fsMap.set(API_DTS_PATH, mime === SCRIPT_MIME_BACKEND ? backendApiDts : frontendApiDts);
+ // Seed with a space, never an empty string: `@typescript/vfs` treats an
+ // empty root file as "not found" (TS6053) at program creation. `tsSync`
+ // likewise pushes `doc || ' '`, so the script file is never empty at runtime.
+ fsMap.set(SCRIPT_PATH, " ");
+
+ const compilerOptions = {
+ ...COMPILER_OPTIONS,
+ target: ts.ScriptTarget.ES2020,
+ lib: ["es2020", "dom"]
+ };
+
+ const system = createSystem(fsMap);
+ return createVirtualTypeScriptEnvironment(
+ system,
+ [SCRIPT_PATH, API_DTS_PATH],
+ ts,
+ compilerOptions
+ );
+}
+
+/**
+ * Builds the set of CodeMirror extensions that wire the TypeScript language
+ * service into the editor for the given script MIME type. Returns an empty
+ * array (no completion) for non-script MIME types.
+ */
+export async function buildTypeCompletion(mime: string): Promise<Extension[]> {
+ if (!isScriptMime(mime)) {
+ return [];
+ }
+
+ const env = await createEnv(mime);
+ const { tsFacet, tsSync, tsAutocomplete, tsLinter, tsHover } = await import("@valtown/codemirror-ts");
+
+ return [
+ tsFacet.of({ env, path: SCRIPT_PATH }),
+ tsSync(),
+ tsLinter(),
+ autocompletion({ override: [tsAutocomplete()] }),
+ tsHover()
+ ];
+}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a288489be7..47e2ff73a9 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1355,6 +1355,9 @@ importers:
'@catppuccin/codemirror':
specifier: 1.0.3
version: 1.0.3
+ '@codemirror/autocomplete':
+ specifier: 6.18.6
+ version: 6.18.6
'@codemirror/commands':
specifier: 6.10.3
version: 6.10.3
@@ -1388,6 +1391,9 @@ importers:
'@codemirror/legacy-modes':
specifier: 6.5.3
version: 6.5.3
+ '@codemirror/lint':
+ specifier: 6.8.5
+ version: 6.8.5
'@codemirror/search':
specifier: 6.7.0
version: 6.7.0
@@ -1489,7 +1495,7 @@ importers:
version: 6.5.3(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])
'@replit/codemirror-lang-nix':
specifier: 6.0.1
- version: 6.0.1(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])(@lezer/[email protected])(@lezer/[email protected])
+ version: 6.0.1(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])(@lezer/[email protected])(@lezer/[email protected])
'@replit/codemirror-vim':
specifier: 6.3.0
version: 6.3.0(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])
@@ -1502,6 +1508,12 @@ importers:
'@triliumnext/commons':
specifier: workspace:*
version: link:../commons
+ '@typescript/vfs':
+ specifier: 1.6.1
+ version: 1.6.1([email protected])
+ '@valtown/codemirror-ts':
+ specifier: 2.3.1
+ version: 2.3.1(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])
codemirror-lang-elixir:
specifier: 4.0.1
version: 4.0.1
@@ -1511,12 +1523,18 @@ importers:
codemirror-lang-mermaid:
specifier: 0.5.0
version: 0.5.0
+ comlink:
+ specifier: 4.4.2
+ version: 4.4.2
eslint-linter-browserify:
specifier: 10.4.1
version: 10.4.1
globals:
specifier: 17.6.0
version: 17.6.0
+ typescript:
+ specifier: 6.0.3
+ version: 6.0.3
packages/commons:
dependencies:
@@ -2248,6 +2266,9 @@ packages:
peerDependencies:
vite: 4.x || 5.x || 6.x
+ '@codemirror/[email protected]':
+ resolution: {integrity: sha512-PHHBXFomUs5DF+9tCOM/UoW6XQ4R44lLNNhRaW9PKPTU0D7lIjRg3ElxaJnTwsl/oHiR93WSXDBrekhoUGCPtg==}
+
'@codemirror/[email protected]':
resolution: {integrity: sha512-G5FPkgIiLjOgZMjqVjvuKQ1rGPtHogLldJr33eFJdVLtmwY+giGrlv/ewljLz6b9BSQLkjxuwBc6g6omDM+YxQ==}
@@ -2332,6 +2353,9 @@ packages:
'@codemirror/[email protected]':
resolution: {integrity: sha512-xCsmIzH78MyWkib9jlPaaun57XNkfbMIhagfaZVd0iLTqlpw3jXaIcbZm72MTmmn64eTZpBVNjbyYh+QXnxRsg==}
+ '@codemirror/[email protected]':
+ resolution: {integrity: sha512-s3n3KisH7dx3vsoeGMxsbRAgKe4O1vbrnKBClm99PU0fWxmxsx5rR2PfqQgIt+2MMJBHbiJ5rfIdLYfB9NNvsA==}
+
'@codemirror/[email protected]':
resolution: {integrity: sha512-6Kp7r6XfCi/D/5sdXieMfg9pJU1bUEx96WITuLU6ESaKizCz0QHFMjY/TaFSbigDdEAIgi93itLBIUETP4oK+A==}
@@ -5717,6 +5741,11 @@ packages:
resolution: {integrity: sha512-EbGRQg4FhrmwLodl+t3JNAnXHWVr9Vp+Zl1QBZVPY4ByfkzIT8cX3K6QWODHtkIZqqJVEWvhHSx3v5PDHsaQag==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-JwoxboBh7Oz1v38tPbkrZ62ZXNHAk9bJ7c9x0eI5zBfBnBYGhURdbnh7Z4smN/MV48Y5OCcZb58n972UtbazsA==}
+ peerDependencies:
+ typescript: '*'
+
resolution: {integrity: sha512-mUFwbeTqrVgDQxFveS+df2yfap6iuP20NAKAsBt5jDEoOTDew+zwLAOilHCeQJOVSvmgCX4ogqIrA0mnyr08yQ==}
@@ -6285,6 +6314,14 @@ packages:
'@upsetjs/[email protected]':
resolution: {integrity: sha512-WbBhLrooyePuQ1VZxrJjtLvTc4NVfpOyKx0sKqioq9bX1C1m7Jgykkn8gLrtwumBioXIqam8DLxp88Adbue6Hw==}
+ '@valtown/[email protected]':
+ resolution: {integrity: sha512-v5XiI4WA+bUy0XDgkrqZksqBWgIUeyLZuC94Px/rhXBph8ASmVXaimlGDtt0vH/9t8aDdIZYdr59r9H3oKMFOg==}
+ peerDependencies:
+ '@codemirror/autocomplete': ^6
+ '@codemirror/lint': ^6
+ '@codemirror/state': ^6
+ '@codemirror/view': ^6
+
'@vercel/[email protected]':
resolution: {integrity: sha512-UycprH3T6n3jH0k44NHMa7pnFHGu/N05MjojYr+Mc6I7obkoLIJujSWwin1pCvdy/eOxrI/l3uDLQsmcrOb4ug==}
engines: {node: '>= 20'}
@@ -7328,6 +7365,9 @@ packages:
resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
engines: {node: '>= 0.8'}
+ resolution: {integrity: sha512-OxGdvBmJuNKSCMO4NTl1L47VRp6xn2wG4F/2hYzB6tiCb709otOxtEYCSvK80PtjODfXXZu8ds+Nw5kVCjqd2g==}
+
resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==}
@@ -14930,6 +14970,13 @@ snapshots:
unplugin: 1.16.1
+ '@codemirror/[email protected]':
+ dependencies:
+ '@codemirror/language': 6.12.3
+ '@codemirror/state': 6.6.0
+ '@codemirror/view': 6.42.1
+ '@lezer/common': 1.5.2
+
'@codemirror/[email protected]':
dependencies:
'@codemirror/language': 6.12.3
@@ -15175,6 +15222,12 @@ snapshots:
dependencies:
'@codemirror/language': 6.12.3
+ '@codemirror/[email protected]':
+ dependencies:
+ '@codemirror/state': 6.6.0
+ '@codemirror/view': 6.42.1
+ crelt: 1.0.6
+
'@codemirror/[email protected]':
dependencies:
'@codemirror/state': 6.6.0
@@ -18086,9 +18139,9 @@ snapshots:
'@codemirror/state': 6.6.0
'@codemirror/view': 6.42.1
- '@replit/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])(@lezer/[email protected])(@lezer/[email protected])':
+ '@replit/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])(@lezer/[email protected])(@lezer/[email protected])':
dependencies:
- '@codemirror/autocomplete': 6.20.2
+ '@codemirror/autocomplete': 6.18.6
'@codemirror/language': 6.12.3
'@codemirror/state': 6.6.0
'@codemirror/view': 6.42.1
@@ -18899,6 +18952,13 @@ snapshots:
'@typescript-eslint/types': 8.60.1
eslint-visitor-keys: 5.0.1
+ dependencies:
+ debug: 4.4.3
+ typescript: 6.0.3
+ transitivePeerDependencies:
+ - supports-color
+
'@ungap/[email protected]': {}
@@ -20352,6 +20412,13 @@ snapshots:
d3-selection: 3.0.0
d3-transition: 3.0.1([email protected])
+ '@valtown/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])':
+ dependencies:
+ '@codemirror/autocomplete': 6.18.6
+ '@codemirror/lint': 6.8.5
+ '@codemirror/state': 6.6.0
+ '@codemirror/view': 6.42.1
+
'@vercel/[email protected]': {}
@@ -21704,6 +21771,8 @@ snapshots:
dependencies:
delayed-stream: 1.0.0
+