diff --git a/common/deps.ts b/common/deps.ts index 2be78c3..6af1a9a 100644 --- a/common/deps.ts +++ b/common/deps.ts @@ -15,8 +15,8 @@ export type { Completion, CompletionResult } from "@codemirror/autocomplete"; export { styleTags, Tag, tagHighlighter, tags } from "@lezer/highlight"; -export * as YAML from "https://deno.land/std@0.165.0/encoding/yaml.ts"; -export * as path from "https://deno.land/std@0.165.0/path/mod.ts"; +export * as YAML from "https://deno.land/std@0.177.0/encoding/yaml.ts"; +export * as path from "https://deno.land/std@0.177.0/path/mod.ts"; export { readAll } from "https://deno.land/std@0.165.0/streams/conversion.ts"; @@ -61,7 +61,7 @@ export { } from "@codemirror/view"; export type { DecorationSet, KeyBinding } from "@codemirror/view"; -export { markdown } from "https://esm.sh/@codemirror/lang-markdown@6.0.5?external=@codemirror/state,@lezer/common,@codemirror/language,@lezer/markdown,@codemirror/view,@lezer/highlight,@@codemirror/lang-html"; +export { markdown } from "https://esm.sh/@codemirror/lang-markdown@6.1.0?external=@codemirror/state,@lezer/common,@codemirror/language,@lezer/markdown,@codemirror/view,@lezer/highlight,@@codemirror/lang-html"; export { EditorSelection, @@ -121,4 +121,4 @@ export { export { javascriptLanguage, typescriptLanguage, -} from "https://esm.sh/@codemirror/lang-javascript@6.1.2?external=@codemirror/language,@codemirror/autocomplete,@codemirror/view,@codemirror/state,@codemirror/lint,@lezer/common,@lezer/lr,@lezer/javascript,@codemirror/commands"; +} from "https://esm.sh/@codemirror/lang-javascript@6.1.4?external=@codemirror/language,@codemirror/autocomplete,@codemirror/view,@codemirror/state,@codemirror/lint,@lezer/common,@lezer/lr,@lezer/javascript,@codemirror/commands"; diff --git a/import_map.json b/import_map.json index 6ba4a2e..b5dde93 100644 --- a/import_map.json +++ b/import_map.json @@ -1,22 +1,22 @@ { "imports": { - "@codemirror/state": "https://esm.sh/@codemirror/state@6.1.4", + "@codemirror/state": "https://esm.sh/@codemirror/state@6.2.0", "@lezer/common": "https://esm.sh/@lezer/common@1.0.2", "@lezer/markdown": "https://esm.sh/@lezer/markdown@1.0.2?external=@lezer/common,@codemirror/language,@lezer/highlight", - "@lezer/javascript": "https://esm.sh/@lezer/javascript@1.3.1?external=@lezer/common,@codemirror/language,@lezer/highlight", - "@codemirror/language": "https://esm.sh/@codemirror/language@6.4.0?external=@codemirror/state,@lezer/common,@lezer/lr,@codemirror/view,@lezer/highlight", - "@codemirror/commands": "https://esm.sh/@codemirror/commands@6.1.2?external=@codemirror/state,@codemirror/view", - "@codemirror/view": "https://esm.sh/@codemirror/view@6.7.1?external=@codemirror/state,@lezer/common", + "@lezer/javascript": "https://esm.sh/@lezer/javascript@1.4.1?external=@lezer/common,@codemirror/language,@lezer/highlight", + "@codemirror/language": "https://esm.sh/@codemirror/language@6.6.0?external=@codemirror/state,@lezer/common,@lezer/lr,@codemirror/view,@lezer/highlight", + "@codemirror/commands": "https://esm.sh/@codemirror/commands@6.2.1?external=@codemirror/state,@codemirror/view", + "@codemirror/view": "https://esm.sh/@codemirror/view@6.9.0?external=@codemirror/state,@lezer/common", "@lezer/highlight": "https://esm.sh/@lezer/highlight@1.1.3?external=@lezer/common", - "@codemirror/autocomplete": "https://esm.sh/@codemirror/autocomplete@6.3.4?external=@codemirror/state,@codemirror/commands,@lezer/common,@codemirror/view", - "@codemirror/lint": "https://esm.sh/@codemirror/lint@6.1.0?external=@codemirror/state,@lezer/common", - "@codemirror/lang-html": "https://esm.sh/@codemirror/lang-html@6.4.1?external=@codemirror/language,@codemirror/autocomplete,@codemirror/lang-css,@codemirror/state", + "@codemirror/autocomplete": "https://esm.sh/@codemirror/autocomplete@6.4.2?external=@codemirror/state,@codemirror/commands,@lezer/common,@codemirror/view", + "@codemirror/lint": "https://esm.sh/@codemirror/lint@6.1.1?external=@codemirror/state,@lezer/common", + "@codemirror/lang-html": "https://esm.sh/@codemirror/lang-html@6.4.2?external=@codemirror/language,@codemirror/autocomplete,@codemirror/lang-css,@codemirror/state", "@codemirror/search": "https://esm.sh/@codemirror/search@6.2.3?external=@codemirror/state,@codemirror/view", "preact": "https://esm.sh/preact@10.11.1", "yjs": "https://esm.sh/yjs@13.5.42", "$sb/": "./plug-api/", "handlebars": "https://esm.sh/handlebars", - "@lezer/lr": "https://esm.sh/@lezer/lr@1.2.5?external=@lezer/common", + "@lezer/lr": "https://esm.sh/@lezer/lr@1.3.3?external=@lezer/common", "yaml": "https://deno.land/std/encoding/yaml.ts", "@capacitor/core": "https://esm.sh/@capacitor/core@4.6.2", diff --git a/web/deps.ts b/web/deps.ts index 407d57f..f229758 100644 --- a/web/deps.ts +++ b/web/deps.ts @@ -13,7 +13,7 @@ export { Book as BookIcon, Home as HomeIcon, Terminal as TerminalIcon, -} from "https://esm.sh/preact-feather@4.2.1"; +} from "https://esm.sh/preact-feather@4.2.1?external=preact"; // Y collab export * as Y from "yjs"; diff --git a/web/editor.tsx b/web/editor.tsx index 3f0ab7a..92cfba1 100644 --- a/web/editor.tsx +++ b/web/editor.tsx @@ -786,6 +786,7 @@ export class Editor { } }, click: (event: MouseEvent, view: EditorView) => { + console.log("Click handler") safeRun(async () => { const clickEvent: ClickEvent = { page: pageName,