From 27ef25667461f19178f014c02eca406a889495f1 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Sat, 20 Apr 2024 16:20:13 +0200 Subject: [PATCH] Fixes #853 with dependency version bump --- import_map.json | 34 +++++++++++++++++----------------- web/cm_plugins/code_copy.ts | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/import_map.json b/import_map.json index 39b72564..bce44d9a 100644 --- a/import_map.json +++ b/import_map.json @@ -1,25 +1,25 @@ { "imports": { - "@lezer/common": "https://esm.sh/@lezer/common@1.1.2&target=es2022", - "@lezer/lr": "https://esm.sh/@lezer/lr@1.3.14?external=@lezer/common&target=es2022", - "@lezer/markdown": "https://esm.sh/@lezer/markdown@1.1.2?external=@lezer/common,@codemirror/language,@lezer/highlight,@lezer/lr&target=es2022", - "@lezer/javascript": "https://esm.sh/@lezer/javascript@1.4.3?external=@lezer/common,@codemirror/language,@lezer/highlight,@lezer/lr&target=es2022", + "@lezer/common": "https://esm.sh/@lezer/common@1.2.1&target=es2022", + "@lezer/lr": "https://esm.sh/@lezer/lr@1.4.0?external=@lezer/common&target=es2022", + "@lezer/markdown": "https://esm.sh/@lezer/markdown@1.3.0?external=@lezer/common,@codemirror/language,@lezer/highlight,@lezer/lr&target=es2022", + "@lezer/javascript": "https://esm.sh/@lezer/javascript@1.4.14?external=@lezer/common,@codemirror/language,@lezer/highlight,@lezer/lr&target=es2022", "@lezer/highlight": "https://esm.sh/@lezer/highlight@1.2.0?external=@lezer/common,@lezer/lr&target=es2022", - "@lezer/html": "https://esm.sh/@lezer/html@1.3.7?external=@lezer/common,@lezer/lr&target=es2022", + "@lezer/html": "https://esm.sh/@lezer/html@1.3.9?external=@lezer/common,@lezer/lr&target=es2022", - "@codemirror/state": "https://esm.sh/@codemirror/state@6.3.3&target=es2022", - "@codemirror/language": "https://esm.sh/@codemirror/language@6.9.3?external=@codemirror/state,@lezer/common,@lezer/lr,@codemirror/view,@lezer/highlight&target=es2022", - "@codemirror/commands": "https://esm.sh/@codemirror/commands@6.2.4?external=@codemirror/state,@codemirror/view&target=es2022", - "@codemirror/view": "https://esm.sh/@codemirror/view@6.23.0?external=@codemirror/state,@lezer/common&target=es2022", - "@codemirror/autocomplete": "https://esm.sh/@codemirror/autocomplete@6.7.1?external=@codemirror/state,@codemirror/commands,@lezer/common,@codemirror/view&target=es2022", - "@codemirror/lint": "https://esm.sh/@codemirror/lint@6.4.1?external=@codemirror/state,@codemirror/view,@lezer/common&target=es2022", + "@codemirror/state": "https://esm.sh/@codemirror/state@6.4.1&target=es2022", + "@codemirror/language": "https://esm.sh/@codemirror/language@6.10.1?external=@codemirror/state,@lezer/common,@lezer/lr,@codemirror/view,@lezer/highlight&target=es2022", + "@codemirror/commands": "https://esm.sh/@codemirror/commands@6.5.0?external=@codemirror/state,@codemirror/view&target=es2022", + "@codemirror/view": "https://esm.sh/@codemirror/view@6.26.3?external=@codemirror/state,@lezer/common&target=es2022", + "@codemirror/autocomplete": "https://esm.sh/@codemirror/autocomplete@6.16.0?external=@codemirror/state,@codemirror/commands,@lezer/common,@codemirror/view&target=es2022", + "@codemirror/lint": "https://esm.sh/@codemirror/lint@6.5.0?external=@codemirror/state,@codemirror/view,@lezer/common&target=es2022", "@codemirror/lang-css": "https://esm.sh/@codemirror/lang-css@6.2.1?external=@codemirror/language,@codemirror/autocomplete,@codemirror/state,@lezer/lr,@lezer/html&target=es2022", - "@codemirror/lang-html": "https://esm.sh/@codemirror/lang-html@6.4.7?external=@codemirror/language,@codemirror/autocomplete,@codemirror/lang-css,@codemirror/state,@lezer/lr,@lezer/html&target=es2022", - "@codemirror/search": "https://esm.sh/@codemirror/search@6.5.5?external=@codemirror/state,@codemirror/view&target=es2022", - "@codemirror/lang-markdown": "https://esm.sh/@codemirror/lang-markdown@6.2.3?external=@codemirror/state,@lezer/common,@codemirror/language,@lezer/markdown,@codemirror/view,@lezer/highlight,@codemirror/lang-html&target=es2022", - "@codemirror/legacy-modes/": "https://esm.sh/@codemirror/legacy-modes@6.3.3/", - "@codemirror/lang-javascript": "https://esm.sh/@codemirror/lang-javascript@6.2.1?external=@codemirror/language,@codemirror/autocomplete,@codemirror/view,@codemirror/state,@codemirror/lint,@lezer/common,@lezer/lr,@lezer/javascript,@codemirror/commands&target=es2022", - "@replit/codemirror-vim": "https://esm.sh/@replit/codemirror-vim@6.0.14?external=@codemirror/state,@codemirror/language,@codemirror/view,@codemirror/search,@codemirror/commands", + "@codemirror/lang-html": "https://esm.sh/@codemirror/lang-html@6.4.9?external=@codemirror/language,@codemirror/autocomplete,@codemirror/lang-css,@codemirror/state,@lezer/lr,@lezer/html&target=es2022", + "@codemirror/search": "https://esm.sh/@codemirror/search@6.5.6?external=@codemirror/state,@codemirror/view&target=es2022", + "@codemirror/lang-markdown": "https://esm.sh/@codemirror/lang-markdown@6.2.5?external=@codemirror/state,@lezer/common,@codemirror/language,@lezer/markdown,@codemirror/view,@lezer/highlight,@codemirror/lang-html&target=es2022", + "@codemirror/legacy-modes/": "https://esm.sh/@codemirror/legacy-modes@6.4.0/", + "@codemirror/lang-javascript": "https://esm.sh/@codemirror/lang-javascript@6.2.2?external=@codemirror/language,@codemirror/autocomplete,@codemirror/view,@codemirror/state,@codemirror/lint,@lezer/common,@lezer/lr,@lezer/javascript,@codemirror/commands&target=es2022", + "@replit/codemirror-vim": "https://esm.sh/@replit/codemirror-vim@6.2.1?external=@codemirror/state,@codemirror/language,@codemirror/view,@codemirror/search,@codemirror/commands", "@js-temporal/polyfill": "https://esm.sh/@js-temporal/polyfill@0.4.4", "cliffy/": "https://deno.land/x/cliffy@v1.0.0-rc.3/", diff --git a/web/cm_plugins/code_copy.ts b/web/cm_plugins/code_copy.ts index 8bffef16..60db661c 100644 --- a/web/cm_plugins/code_copy.ts +++ b/web/cm_plugins/code_copy.ts @@ -1,9 +1,9 @@ import { Client } from "../client.ts"; import { Range } from "@codemirror/state"; -import { DecorationSet } from "@codemirror/view"; import { syntaxTree } from "@codemirror/language"; import { Decoration, + DecorationSet, EditorView, ViewPlugin, ViewUpdate,