groove-dev 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/FILE-EDITOR-PLAN.md +253 -0
- package/node_modules/@codemirror/autocomplete/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/autocomplete/CHANGELOG.md +639 -0
- package/node_modules/@codemirror/autocomplete/LICENSE +21 -0
- package/node_modules/@codemirror/autocomplete/README.md +43 -0
- package/node_modules/@codemirror/autocomplete/dist/index.cjs +2151 -0
- package/node_modules/@codemirror/autocomplete/dist/index.d.cts +648 -0
- package/node_modules/@codemirror/autocomplete/dist/index.d.ts +648 -0
- package/node_modules/@codemirror/autocomplete/dist/index.js +2120 -0
- package/node_modules/@codemirror/autocomplete/package.json +41 -0
- package/node_modules/@codemirror/commands/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/commands/CHANGELOG.md +386 -0
- package/node_modules/@codemirror/commands/LICENSE +21 -0
- package/node_modules/@codemirror/commands/README.md +35 -0
- package/node_modules/@codemirror/commands/dist/index.cjs +1909 -0
- package/node_modules/@codemirror/commands/dist/index.d.cts +650 -0
- package/node_modules/@codemirror/commands/dist/index.d.ts +650 -0
- package/node_modules/@codemirror/commands/dist/index.js +1795 -0
- package/node_modules/@codemirror/commands/package.json +42 -0
- package/node_modules/@codemirror/lang-css/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lang-css/CHANGELOG.md +106 -0
- package/node_modules/@codemirror/lang-css/LICENSE +21 -0
- package/node_modules/@codemirror/lang-css/README.md +50 -0
- package/node_modules/@codemirror/lang-css/dist/index.cjs +269 -0
- package/node_modules/@codemirror/lang-css/dist/index.d.cts +28 -0
- package/node_modules/@codemirror/lang-css/dist/index.d.ts +28 -0
- package/node_modules/@codemirror/lang-css/dist/index.js +264 -0
- package/node_modules/@codemirror/lang-css/package.json +42 -0
- package/node_modules/@codemirror/lang-html/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lang-html/CHANGELOG.md +210 -0
- package/node_modules/@codemirror/lang-html/LICENSE +21 -0
- package/node_modules/@codemirror/lang-html/README.md +147 -0
- package/node_modules/@codemirror/lang-html/dist/index.cjs +667 -0
- package/node_modules/@codemirror/lang-html/dist/index.d.cts +115 -0
- package/node_modules/@codemirror/lang-html/dist/index.d.ts +115 -0
- package/node_modules/@codemirror/lang-html/dist/index.js +661 -0
- package/node_modules/@codemirror/lang-html/package.json +46 -0
- package/node_modules/@codemirror/lang-javascript/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lang-javascript/CHANGELOG.md +206 -0
- package/node_modules/@codemirror/lang-javascript/LICENSE +21 -0
- package/node_modules/@codemirror/lang-javascript/README.md +125 -0
- package/node_modules/@codemirror/lang-javascript/dist/index.cjs +526 -0
- package/node_modules/@codemirror/lang-javascript/dist/index.d.cts +93 -0
- package/node_modules/@codemirror/lang-javascript/dist/index.d.ts +93 -0
- package/node_modules/@codemirror/lang-javascript/dist/index.js +513 -0
- package/node_modules/@codemirror/lang-javascript/package.json +45 -0
- package/node_modules/@codemirror/lang-json/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lang-json/CHANGELOG.md +59 -0
- package/node_modules/@codemirror/lang-json/LICENSE +21 -0
- package/node_modules/@codemirror/lang-json/README.md +56 -0
- package/node_modules/@codemirror/lang-json/dist/index.cjs +68 -0
- package/node_modules/@codemirror/lang-json/dist/index.d.cts +22 -0
- package/node_modules/@codemirror/lang-json/dist/index.d.ts +22 -0
- package/node_modules/@codemirror/lang-json/dist/index.js +64 -0
- package/node_modules/@codemirror/lang-json/package.json +39 -0
- package/node_modules/@codemirror/lang-markdown/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lang-markdown/CHANGELOG.md +246 -0
- package/node_modules/@codemirror/lang-markdown/LICENSE +21 -0
- package/node_modules/@codemirror/lang-markdown/README.md +162 -0
- package/node_modules/@codemirror/lang-markdown/dist/index.cjs +501 -0
- package/node_modules/@codemirror/lang-markdown/dist/index.d.cts +124 -0
- package/node_modules/@codemirror/lang-markdown/dist/index.d.ts +124 -0
- package/node_modules/@codemirror/lang-markdown/dist/index.js +492 -0
- package/node_modules/@codemirror/lang-markdown/package.json +44 -0
- package/node_modules/@codemirror/lang-python/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lang-python/CHANGELOG.md +174 -0
- package/node_modules/@codemirror/lang-python/LICENSE +21 -0
- package/node_modules/@codemirror/lang-python/README.md +61 -0
- package/node_modules/@codemirror/lang-python/dist/index.cjs +313 -0
- package/node_modules/@codemirror/lang-python/dist/index.d.cts +26 -0
- package/node_modules/@codemirror/lang-python/dist/index.d.ts +26 -0
- package/node_modules/@codemirror/lang-python/dist/index.js +308 -0
- package/node_modules/@codemirror/lang-python/package.json +42 -0
- package/node_modules/@codemirror/language/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/language/CHANGELOG.md +412 -0
- package/node_modules/@codemirror/language/LICENSE +21 -0
- package/node_modules/@codemirror/language/README.md +66 -0
- package/node_modules/@codemirror/language/dist/index.cjs +2742 -0
- package/node_modules/@codemirror/language/dist/index.d.cts +1220 -0
- package/node_modules/@codemirror/language/dist/index.d.ts +1220 -0
- package/node_modules/@codemirror/language/dist/index.js +2687 -0
- package/node_modules/@codemirror/language/package.json +44 -0
- package/node_modules/@codemirror/lint/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lint/CHANGELOG.md +318 -0
- package/node_modules/@codemirror/lint/LICENSE +21 -0
- package/node_modules/@codemirror/lint/README.md +18 -0
- package/node_modules/@codemirror/lint/dist/index.cjs +958 -0
- package/node_modules/@codemirror/lint/dist/index.d.cts +195 -0
- package/node_modules/@codemirror/lint/dist/index.d.ts +195 -0
- package/node_modules/@codemirror/lint/dist/index.js +945 -0
- package/node_modules/@codemirror/lint/package.json +40 -0
- package/node_modules/@codemirror/search/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/search/CHANGELOG.md +324 -0
- package/node_modules/@codemirror/search/LICENSE +21 -0
- package/node_modules/@codemirror/search/README.md +18 -0
- package/node_modules/@codemirror/search/dist/index.cjs +1237 -0
- package/node_modules/@codemirror/search/dist/index.d.cts +385 -0
- package/node_modules/@codemirror/search/dist/index.d.ts +385 -0
- package/node_modules/@codemirror/search/dist/index.js +1217 -0
- package/node_modules/@codemirror/search/package.json +40 -0
- package/node_modules/@codemirror/state/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/state/CHANGELOG.md +308 -0
- package/node_modules/@codemirror/state/LICENSE +21 -0
- package/node_modules/@codemirror/state/README.md +18 -0
- package/node_modules/@codemirror/state/dist/index.cjs +3922 -0
- package/node_modules/@codemirror/state/dist/index.d.cts +1713 -0
- package/node_modules/@codemirror/state/dist/index.d.ts +1713 -0
- package/node_modules/@codemirror/state/dist/index.js +3892 -0
- package/node_modules/@codemirror/state/package.json +38 -0
- package/node_modules/@codemirror/theme-one-dark/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/theme-one-dark/CHANGELOG.md +97 -0
- package/node_modules/@codemirror/theme-one-dark/LICENSE +21 -0
- package/node_modules/@codemirror/theme-one-dark/README.md +46 -0
- package/node_modules/@codemirror/theme-one-dark/dist/index.cjs +139 -0
- package/node_modules/@codemirror/theme-one-dark/dist/index.d.cts +39 -0
- package/node_modules/@codemirror/theme-one-dark/dist/index.d.ts +39 -0
- package/node_modules/@codemirror/theme-one-dark/dist/index.js +134 -0
- package/node_modules/@codemirror/theme-one-dark/package.json +41 -0
- package/node_modules/@codemirror/view/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/view/CHANGELOG.md +2284 -0
- package/node_modules/@codemirror/view/LICENSE +21 -0
- package/node_modules/@codemirror/view/README.md +37 -0
- package/node_modules/@codemirror/view/dist/index.cjs +11796 -0
- package/node_modules/@codemirror/view/dist/index.d.cts +2389 -0
- package/node_modules/@codemirror/view/dist/index.d.ts +2389 -0
- package/node_modules/@codemirror/view/dist/index.js +11745 -0
- package/node_modules/@codemirror/view/package.json +41 -0
- package/node_modules/@groove-dev/daemon/src/api.js +157 -2
- package/node_modules/@groove-dev/daemon/src/filewatcher.js +59 -0
- package/node_modules/@groove-dev/daemon/src/index.js +28 -1
- package/node_modules/@groove-dev/daemon/src/skills.js +20 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-Dxg9hdf3.js +103 -0
- package/node_modules/@groove-dev/gui/dist/index.html +1 -1
- package/node_modules/@groove-dev/gui/package.json +15 -2
- package/node_modules/@groove-dev/gui/src/App.jsx +3 -0
- package/node_modules/@groove-dev/gui/src/components/CodeEditor.jsx +143 -0
- package/node_modules/@groove-dev/gui/src/components/EditorTabs.jsx +83 -0
- package/node_modules/@groove-dev/gui/src/components/FileTree.jsx +193 -0
- package/node_modules/@groove-dev/gui/src/stores/groove.js +158 -1
- package/node_modules/@groove-dev/gui/src/views/FileEditor.jsx +142 -0
- package/node_modules/@groove-dev/gui/src/views/SkillsMarketplace.jsx +112 -1
- package/node_modules/@lezer/common/LICENSE +21 -0
- package/node_modules/@lezer/common/README.md +14 -0
- package/node_modules/@lezer/common/dist/index.cjs +2209 -0
- package/node_modules/@lezer/common/dist/index.d.cts +1174 -0
- package/node_modules/@lezer/common/dist/index.d.ts +1174 -0
- package/node_modules/@lezer/common/dist/index.js +2196 -0
- package/node_modules/@lezer/common/package.json +32 -0
- package/node_modules/@lezer/css/CHANGELOG.md +307 -0
- package/node_modules/@lezer/css/LICENSE +21 -0
- package/node_modules/@lezer/css/README.md +6 -0
- package/node_modules/@lezer/css/dist/index.cjs +151 -0
- package/node_modules/@lezer/css/dist/index.d.cts +3 -0
- package/node_modules/@lezer/css/dist/index.d.ts +3 -0
- package/node_modules/@lezer/css/dist/index.js +147 -0
- package/node_modules/@lezer/css/package.json +36 -0
- package/node_modules/@lezer/css/rollup.config.js +16 -0
- package/node_modules/@lezer/css/src/css.grammar +290 -0
- package/node_modules/@lezer/css/src/highlight.js +36 -0
- package/node_modules/@lezer/css/src/parser.js +31 -0
- package/node_modules/@lezer/css/src/parser.terms.js +63 -0
- package/node_modules/@lezer/css/src/tokens.js +75 -0
- package/node_modules/@lezer/css/test/declarations.txt +241 -0
- package/node_modules/@lezer/css/test/selector.txt +178 -0
- package/node_modules/@lezer/css/test/statements.txt +227 -0
- package/node_modules/@lezer/css/test/test-css.js +16 -0
- package/node_modules/@lezer/highlight/LICENSE +21 -0
- package/node_modules/@lezer/highlight/README.md +14 -0
- package/node_modules/@lezer/highlight/dist/index.cjs +936 -0
- package/node_modules/@lezer/highlight/dist/index.d.cts +623 -0
- package/node_modules/@lezer/highlight/dist/index.d.ts +623 -0
- package/node_modules/@lezer/highlight/dist/index.js +927 -0
- package/node_modules/@lezer/highlight/package.json +31 -0
- package/node_modules/@lezer/html/CHANGELOG.md +303 -0
- package/node_modules/@lezer/html/LICENSE +21 -0
- package/node_modules/@lezer/html/README.md +37 -0
- package/node_modules/@lezer/html/dist/index.cjs +354 -0
- package/node_modules/@lezer/html/dist/index.d.cts +14 -0
- package/node_modules/@lezer/html/dist/index.d.ts +14 -0
- package/node_modules/@lezer/html/dist/index.js +349 -0
- package/node_modules/@lezer/html/package.json +37 -0
- package/node_modules/@lezer/html/rollup.config.js +16 -0
- package/node_modules/@lezer/html/src/.tern-port +1 -0
- package/node_modules/@lezer/html/src/content.js +87 -0
- package/node_modules/@lezer/html/src/highlight.js +15 -0
- package/node_modules/@lezer/html/src/html.grammar +181 -0
- package/node_modules/@lezer/html/src/index.js +2 -0
- package/node_modules/@lezer/html/src/parser.js +27 -0
- package/node_modules/@lezer/html/src/parser.terms.js +53 -0
- package/node_modules/@lezer/html/src/tokens.js +199 -0
- package/node_modules/@lezer/html/test/mixed.txt +69 -0
- package/node_modules/@lezer/html/test/tags.txt +370 -0
- package/node_modules/@lezer/html/test/test-html.js +29 -0
- package/node_modules/@lezer/html/test/test-incremental.js +97 -0
- package/node_modules/@lezer/html/test/vue.txt +56 -0
- package/node_modules/@lezer/javascript/CHANGELOG.md +485 -0
- package/node_modules/@lezer/javascript/LICENSE +21 -0
- package/node_modules/@lezer/javascript/README.md +14 -0
- package/node_modules/@lezer/javascript/dist/index.cjs +196 -0
- package/node_modules/@lezer/javascript/dist/index.d.cts +3 -0
- package/node_modules/@lezer/javascript/dist/index.d.ts +3 -0
- package/node_modules/@lezer/javascript/dist/index.js +192 -0
- package/node_modules/@lezer/javascript/package.json +36 -0
- package/node_modules/@lezer/javascript/rollup.config.js +16 -0
- package/node_modules/@lezer/javascript/src/highlight.js +62 -0
- package/node_modules/@lezer/javascript/src/javascript.grammar +735 -0
- package/node_modules/@lezer/javascript/src/parser.js +33 -0
- package/node_modules/@lezer/javascript/src/parser.terms.js +177 -0
- package/node_modules/@lezer/javascript/src/tokens.js +87 -0
- package/node_modules/@lezer/javascript/test/decorator.txt +64 -0
- package/node_modules/@lezer/javascript/test/expression.txt +686 -0
- package/node_modules/@lezer/javascript/test/jsx.txt +79 -0
- package/node_modules/@lezer/javascript/test/semicolon.txt +77 -0
- package/node_modules/@lezer/javascript/test/statement.txt +404 -0
- package/node_modules/@lezer/javascript/test/test-javascript.js +17 -0
- package/node_modules/@lezer/javascript/test/typescript.txt +401 -0
- package/node_modules/@lezer/json/CHANGELOG.md +79 -0
- package/node_modules/@lezer/json/LICENSE +21 -0
- package/node_modules/@lezer/json/README.md +7 -0
- package/node_modules/@lezer/json/dist/index.cjs +41 -0
- package/node_modules/@lezer/json/dist/index.d.cts +3 -0
- package/node_modules/@lezer/json/dist/index.d.ts +3 -0
- package/node_modules/@lezer/json/dist/index.js +37 -0
- package/node_modules/@lezer/json/package.json +36 -0
- package/node_modules/@lezer/json/rollup.config.js +15 -0
- package/node_modules/@lezer/json/src/highlight.js +12 -0
- package/node_modules/@lezer/json/src/json.grammar +38 -0
- package/node_modules/@lezer/json/src/parser.js +23 -0
- package/node_modules/@lezer/json/src/parser.terms.js +12 -0
- package/node_modules/@lezer/json/test/arrays.txt +34 -0
- package/node_modules/@lezer/json/test/literals.txt +23 -0
- package/node_modules/@lezer/json/test/numbers.txt +87 -0
- package/node_modules/@lezer/json/test/objects.txt +34 -0
- package/node_modules/@lezer/json/test/strings.txt +50 -0
- package/node_modules/@lezer/json/test/test-json.js +17 -0
- package/node_modules/@lezer/lr/LICENSE +21 -0
- package/node_modules/@lezer/lr/README.md +25 -0
- package/node_modules/@lezer/lr/dist/constants.d.ts +45 -0
- package/node_modules/@lezer/lr/dist/constants.js +5 -0
- package/node_modules/@lezer/lr/dist/index.cjs +1891 -0
- package/node_modules/@lezer/lr/dist/index.d.cts +303 -0
- package/node_modules/@lezer/lr/dist/index.d.ts +303 -0
- package/node_modules/@lezer/lr/dist/index.js +1884 -0
- package/node_modules/@lezer/lr/package.json +32 -0
- package/node_modules/@lezer/markdown/CHANGELOG.md +279 -0
- package/node_modules/@lezer/markdown/LICENSE +21 -0
- package/node_modules/@lezer/markdown/README.md +725 -0
- package/node_modules/@lezer/markdown/bin/build-readme.cjs +39 -0
- package/node_modules/@lezer/markdown/build.js +16 -0
- package/node_modules/@lezer/markdown/dist/index.cjs +2352 -0
- package/node_modules/@lezer/markdown/dist/index.d.cts +600 -0
- package/node_modules/@lezer/markdown/dist/index.d.ts +600 -0
- package/node_modules/@lezer/markdown/dist/index.js +2335 -0
- package/node_modules/@lezer/markdown/package.json +37 -0
- package/node_modules/@lezer/markdown/src/README.md +83 -0
- package/node_modules/@lezer/markdown/src/extension.ts +301 -0
- package/node_modules/@lezer/markdown/src/index.ts +5 -0
- package/node_modules/@lezer/markdown/src/markdown.ts +1961 -0
- package/node_modules/@lezer/markdown/src/nest.ts +46 -0
- package/node_modules/@lezer/markdown/test/compare-tree.ts +14 -0
- package/node_modules/@lezer/markdown/test/spec.ts +79 -0
- package/node_modules/@lezer/markdown/test/test-extension.ts +269 -0
- package/node_modules/@lezer/markdown/test/test-incremental.ts +265 -0
- package/node_modules/@lezer/markdown/test/test-markdown.ts +3574 -0
- package/node_modules/@lezer/markdown/test/test-nesting.ts +86 -0
- package/node_modules/@lezer/markdown/test/tsconfig.json +12 -0
- package/node_modules/@lezer/markdown/tsconfig.json +14 -0
- package/node_modules/@lezer/python/CHANGELOG.md +243 -0
- package/node_modules/@lezer/python/LICENSE +21 -0
- package/node_modules/@lezer/python/README.md +6 -0
- package/node_modules/@lezer/python/dist/index.cjs +330 -0
- package/node_modules/@lezer/python/dist/index.d.cts +3 -0
- package/node_modules/@lezer/python/dist/index.d.ts +3 -0
- package/node_modules/@lezer/python/dist/index.js +326 -0
- package/node_modules/@lezer/python/package.json +36 -0
- package/node_modules/@lezer/python/rollup.config.js +16 -0
- package/node_modules/@lezer/python/src/highlight.js +35 -0
- package/node_modules/@lezer/python/src/python.grammar +381 -0
- package/node_modules/@lezer/python/src/tokens.js +224 -0
- package/node_modules/@lezer/python/test/expression.txt +231 -0
- package/node_modules/@lezer/python/test/statement.txt +442 -0
- package/node_modules/@lezer/python/test/test-incremental.js +33 -0
- package/node_modules/@lezer/python/test/test-python.js +17 -0
- package/node_modules/@marijn/find-cluster-break/LICENSE +21 -0
- package/node_modules/@marijn/find-cluster-break/README.md +28 -0
- package/node_modules/@marijn/find-cluster-break/dist/index.cjs +85 -0
- package/node_modules/@marijn/find-cluster-break/dist/index.d.cts +15 -0
- package/node_modules/@marijn/find-cluster-break/package.json +35 -0
- package/node_modules/@marijn/find-cluster-break/rollup.config.js +7 -0
- package/node_modules/@marijn/find-cluster-break/src/index.d.ts +15 -0
- package/node_modules/@marijn/find-cluster-break/src/index.js +87 -0
- package/node_modules/@marijn/find-cluster-break/test/test-cluster.js +30 -0
- package/node_modules/crelt/LICENSE +19 -0
- package/node_modules/crelt/README.md +23 -0
- package/node_modules/crelt/dist/index.cjs +31 -0
- package/node_modules/crelt/dist/index.d.cts +4 -0
- package/node_modules/crelt/index.d.ts +4 -0
- package/node_modules/crelt/index.js +28 -0
- package/node_modules/crelt/package.json +35 -0
- package/node_modules/crelt/rollup.config.js +13 -0
- package/node_modules/style-mod/LICENSE +19 -0
- package/node_modules/style-mod/README.md +98 -0
- package/node_modules/style-mod/dist/style-mod.cjs +165 -0
- package/node_modules/style-mod/dist/style-mod.d.cts +16 -0
- package/node_modules/style-mod/package.json +39 -0
- package/node_modules/style-mod/src/README.md +34 -0
- package/node_modules/style-mod/src/style-mod.d.ts +16 -0
- package/node_modules/style-mod/src/style-mod.js +172 -0
- package/node_modules/style-mod/test/test-style-mod.js +104 -0
- package/node_modules/w3c-keyname/.tern-port +1 -0
- package/node_modules/w3c-keyname/LICENSE +19 -0
- package/node_modules/w3c-keyname/README.md +18 -0
- package/node_modules/w3c-keyname/index.cjs +127 -0
- package/node_modules/w3c-keyname/index.d.cts +5 -0
- package/node_modules/w3c-keyname/index.d.ts +5 -0
- package/node_modules/w3c-keyname/index.js +119 -0
- package/node_modules/w3c-keyname/package.json +37 -0
- package/package.json +1 -1
- package/packages/daemon/src/api.js +157 -2
- package/packages/daemon/src/filewatcher.js +59 -0
- package/packages/daemon/src/index.js +28 -1
- package/packages/daemon/src/skills.js +20 -0
- package/packages/gui/dist/assets/index-Dxg9hdf3.js +103 -0
- package/packages/gui/dist/index.html +1 -1
- package/packages/gui/package.json +15 -2
- package/packages/gui/src/App.jsx +3 -0
- package/packages/gui/src/components/CodeEditor.jsx +143 -0
- package/packages/gui/src/components/EditorTabs.jsx +83 -0
- package/packages/gui/src/components/FileTree.jsx +193 -0
- package/packages/gui/src/stores/groove.js +158 -1
- package/packages/gui/src/views/FileEditor.jsx +142 -0
- package/packages/gui/src/views/SkillsMarketplace.jsx +112 -1
- package/node_modules/@groove-dev/gui/dist/assets/index-CNCSwHwH.js +0 -74
- package/packages/gui/dist/assets/index-CNCSwHwH.js +0 -74
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { parser } from '@lezer/css';
|
|
2
|
+
import { syntaxTree, LRLanguage, indentNodeProp, continuedIndent, foldNodeProp, foldInside, LanguageSupport } from '@codemirror/language';
|
|
3
|
+
import { NodeWeakMap, IterMode } from '@lezer/common';
|
|
4
|
+
|
|
5
|
+
let _properties = null;
|
|
6
|
+
function properties() {
|
|
7
|
+
if (!_properties && typeof document == "object" && document.body) {
|
|
8
|
+
let { style } = document.body, names = [], seen = new Set;
|
|
9
|
+
for (let prop in style)
|
|
10
|
+
if (prop != "cssText" && prop != "cssFloat") {
|
|
11
|
+
if (typeof style[prop] == "string") {
|
|
12
|
+
if (/[A-Z]/.test(prop))
|
|
13
|
+
prop = prop.replace(/[A-Z]/g, ch => "-" + ch.toLowerCase());
|
|
14
|
+
if (!seen.has(prop)) {
|
|
15
|
+
names.push(prop);
|
|
16
|
+
seen.add(prop);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
_properties = names.sort().map(name => ({ type: "property", label: name, apply: name + ": " }));
|
|
21
|
+
}
|
|
22
|
+
return _properties || [];
|
|
23
|
+
}
|
|
24
|
+
const pseudoClasses = /*@__PURE__*/[
|
|
25
|
+
"active", "after", "any-link", "autofill", "backdrop", "before",
|
|
26
|
+
"checked", "cue", "default", "defined", "disabled", "empty",
|
|
27
|
+
"enabled", "file-selector-button", "first", "first-child",
|
|
28
|
+
"first-letter", "first-line", "first-of-type", "focus",
|
|
29
|
+
"focus-visible", "focus-within", "fullscreen", "has", "host",
|
|
30
|
+
"host-context", "hover", "in-range", "indeterminate", "invalid",
|
|
31
|
+
"is", "lang", "last-child", "last-of-type", "left", "link", "marker",
|
|
32
|
+
"modal", "not", "nth-child", "nth-last-child", "nth-last-of-type",
|
|
33
|
+
"nth-of-type", "only-child", "only-of-type", "optional", "out-of-range",
|
|
34
|
+
"part", "placeholder", "placeholder-shown", "read-only", "read-write",
|
|
35
|
+
"required", "right", "root", "scope", "selection", "slotted", "target",
|
|
36
|
+
"target-text", "valid", "visited", "where"
|
|
37
|
+
].map(name => ({ type: "class", label: name }));
|
|
38
|
+
const values = /*@__PURE__*/[
|
|
39
|
+
"above", "absolute", "activeborder", "additive", "activecaption", "after-white-space",
|
|
40
|
+
"ahead", "alias", "all", "all-scroll", "alphabetic", "alternate", "always",
|
|
41
|
+
"antialiased", "appworkspace", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column",
|
|
42
|
+
"avoid-page", "avoid-region", "axis-pan", "background", "backwards", "baseline", "below",
|
|
43
|
+
"bidi-override", "blink", "block", "block-axis", "bold", "bolder", "border", "border-box",
|
|
44
|
+
"both", "bottom", "break", "break-all", "break-word", "bullets", "button", "button-bevel",
|
|
45
|
+
"buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "capitalize",
|
|
46
|
+
"caps-lock-indicator", "caption", "captiontext", "caret", "cell", "center", "checkbox", "circle",
|
|
47
|
+
"cjk-decimal", "clear", "clip", "close-quote", "col-resize", "collapse", "color", "color-burn",
|
|
48
|
+
"color-dodge", "column", "column-reverse", "compact", "condensed", "contain", "content",
|
|
49
|
+
"contents", "content-box", "context-menu", "continuous", "copy", "counter", "counters", "cover",
|
|
50
|
+
"crop", "cross", "crosshair", "currentcolor", "cursive", "cyclic", "darken", "dashed", "decimal",
|
|
51
|
+
"decimal-leading-zero", "default", "default-button", "dense", "destination-atop", "destination-in",
|
|
52
|
+
"destination-out", "destination-over", "difference", "disc", "discard", "disclosure-closed",
|
|
53
|
+
"disclosure-open", "document", "dot-dash", "dot-dot-dash", "dotted", "double", "down", "e-resize",
|
|
54
|
+
"ease", "ease-in", "ease-in-out", "ease-out", "element", "ellipse", "ellipsis", "embed", "end",
|
|
55
|
+
"ethiopic-abegede-gez", "ethiopic-halehame-aa-er", "ethiopic-halehame-gez", "ew-resize", "exclusion",
|
|
56
|
+
"expanded", "extends", "extra-condensed", "extra-expanded", "fantasy", "fast", "fill", "fill-box",
|
|
57
|
+
"fixed", "flat", "flex", "flex-end", "flex-start", "footnotes", "forwards", "from",
|
|
58
|
+
"geometricPrecision", "graytext", "grid", "groove", "hand", "hard-light", "help", "hidden", "hide",
|
|
59
|
+
"higher", "highlight", "highlighttext", "horizontal", "hsl", "hsla", "hue", "icon", "ignore",
|
|
60
|
+
"inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite", "infobackground", "infotext",
|
|
61
|
+
"inherit", "initial", "inline", "inline-axis", "inline-block", "inline-flex", "inline-grid",
|
|
62
|
+
"inline-table", "inset", "inside", "intrinsic", "invert", "italic", "justify", "keep-all",
|
|
63
|
+
"landscape", "large", "larger", "left", "level", "lighter", "lighten", "line-through", "linear",
|
|
64
|
+
"linear-gradient", "lines", "list-item", "listbox", "listitem", "local", "logical", "loud", "lower",
|
|
65
|
+
"lower-hexadecimal", "lower-latin", "lower-norwegian", "lowercase", "ltr", "luminosity", "manipulation",
|
|
66
|
+
"match", "matrix", "matrix3d", "medium", "menu", "menutext", "message-box", "middle", "min-intrinsic",
|
|
67
|
+
"mix", "monospace", "move", "multiple", "multiple_mask_images", "multiply", "n-resize", "narrower",
|
|
68
|
+
"ne-resize", "nesw-resize", "no-close-quote", "no-drop", "no-open-quote", "no-repeat", "none",
|
|
69
|
+
"normal", "not-allowed", "nowrap", "ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize",
|
|
70
|
+
"oblique", "opacity", "open-quote", "optimizeLegibility", "optimizeSpeed", "outset", "outside",
|
|
71
|
+
"outside-shape", "overlay", "overline", "padding", "padding-box", "painted", "page", "paused",
|
|
72
|
+
"perspective", "pinch-zoom", "plus-darker", "plus-lighter", "pointer", "polygon", "portrait",
|
|
73
|
+
"pre", "pre-line", "pre-wrap", "preserve-3d", "progress", "push-button", "radial-gradient", "radio",
|
|
74
|
+
"read-only", "read-write", "read-write-plaintext-only", "rectangle", "region", "relative", "repeat",
|
|
75
|
+
"repeating-linear-gradient", "repeating-radial-gradient", "repeat-x", "repeat-y", "reset", "reverse",
|
|
76
|
+
"rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY", "rotateZ", "round",
|
|
77
|
+
"row", "row-resize", "row-reverse", "rtl", "run-in", "running", "s-resize", "sans-serif", "saturation",
|
|
78
|
+
"scale", "scale3d", "scaleX", "scaleY", "scaleZ", "screen", "scroll", "scrollbar", "scroll-position",
|
|
79
|
+
"se-resize", "self-start", "self-end", "semi-condensed", "semi-expanded", "separate", "serif", "show",
|
|
80
|
+
"single", "skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal",
|
|
81
|
+
"slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow", "small", "small-caps",
|
|
82
|
+
"small-caption", "smaller", "soft-light", "solid", "source-atop", "source-in", "source-out",
|
|
83
|
+
"source-over", "space", "space-around", "space-between", "space-evenly", "spell-out", "square", "start",
|
|
84
|
+
"static", "status-bar", "stretch", "stroke", "stroke-box", "sub", "subpixel-antialiased", "svg_masks",
|
|
85
|
+
"super", "sw-resize", "symbolic", "symbols", "system-ui", "table", "table-caption", "table-cell",
|
|
86
|
+
"table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row",
|
|
87
|
+
"table-row-group", "text", "text-bottom", "text-top", "textarea", "textfield", "thick", "thin",
|
|
88
|
+
"threeddarkshadow", "threedface", "threedhighlight", "threedlightshadow", "threedshadow", "to", "top",
|
|
89
|
+
"transform", "translate", "translate3d", "translateX", "translateY", "translateZ", "transparent",
|
|
90
|
+
"ultra-condensed", "ultra-expanded", "underline", "unidirectional-pan", "unset", "up", "upper-latin",
|
|
91
|
+
"uppercase", "url", "var", "vertical", "vertical-text", "view-box", "visible", "visibleFill",
|
|
92
|
+
"visiblePainted", "visibleStroke", "visual", "w-resize", "wait", "wave", "wider", "window", "windowframe",
|
|
93
|
+
"windowtext", "words", "wrap", "wrap-reverse", "x-large", "x-small", "xor", "xx-large", "xx-small"
|
|
94
|
+
].map(name => ({ type: "keyword", label: name })).concat(/*@__PURE__*/[
|
|
95
|
+
"aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige",
|
|
96
|
+
"bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown",
|
|
97
|
+
"burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue",
|
|
98
|
+
"cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod",
|
|
99
|
+
"darkgray", "darkgreen", "darkkhaki", "darkmagenta", "darkolivegreen",
|
|
100
|
+
"darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen",
|
|
101
|
+
"darkslateblue", "darkslategray", "darkturquoise", "darkviolet",
|
|
102
|
+
"deeppink", "deepskyblue", "dimgray", "dodgerblue", "firebrick",
|
|
103
|
+
"floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite",
|
|
104
|
+
"gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew",
|
|
105
|
+
"hotpink", "indianred", "indigo", "ivory", "khaki", "lavender",
|
|
106
|
+
"lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral",
|
|
107
|
+
"lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightpink",
|
|
108
|
+
"lightsalmon", "lightseagreen", "lightskyblue", "lightslategray",
|
|
109
|
+
"lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta",
|
|
110
|
+
"maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple",
|
|
111
|
+
"mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise",
|
|
112
|
+
"mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin",
|
|
113
|
+
"navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered",
|
|
114
|
+
"orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred",
|
|
115
|
+
"papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue",
|
|
116
|
+
"purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown",
|
|
117
|
+
"salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue",
|
|
118
|
+
"slateblue", "slategray", "snow", "springgreen", "steelblue", "tan",
|
|
119
|
+
"teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white",
|
|
120
|
+
"whitesmoke", "yellow", "yellowgreen"
|
|
121
|
+
].map(name => ({ type: "constant", label: name })));
|
|
122
|
+
const tags = /*@__PURE__*/[
|
|
123
|
+
"a", "abbr", "address", "article", "aside", "b", "bdi", "bdo", "blockquote", "body",
|
|
124
|
+
"br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "dd", "del",
|
|
125
|
+
"details", "dfn", "dialog", "div", "dl", "dt", "em", "figcaption", "figure", "footer",
|
|
126
|
+
"form", "header", "hgroup", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "html", "i", "iframe",
|
|
127
|
+
"img", "input", "ins", "kbd", "label", "legend", "li", "main", "meter", "nav", "ol", "output",
|
|
128
|
+
"p", "pre", "ruby", "section", "select", "small", "source", "span", "strong", "sub", "summary",
|
|
129
|
+
"sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "tr", "u", "ul"
|
|
130
|
+
].map(name => ({ type: "type", label: name }));
|
|
131
|
+
const atRules = /*@__PURE__*/[
|
|
132
|
+
"@charset", "@color-profile", "@container", "@counter-style", "@font-face", "@font-feature-values",
|
|
133
|
+
"@font-palette-values", "@import", "@keyframes", "@layer", "@media", "@namespace", "@page",
|
|
134
|
+
"@position-try", "@property", "@scope", "@starting-style", "@supports", "@view-transition"
|
|
135
|
+
].map(label => ({ type: "keyword", label }));
|
|
136
|
+
const identifier = /^(\w[\w-]*|-\w[\w-]*|)$/, variable = /^-(-[\w-]*)?$/;
|
|
137
|
+
function isVarArg(node, doc) {
|
|
138
|
+
var _a;
|
|
139
|
+
if (node.name == "(" || node.type.isError)
|
|
140
|
+
node = node.parent || node;
|
|
141
|
+
if (node.name != "ArgList")
|
|
142
|
+
return false;
|
|
143
|
+
let callee = (_a = node.parent) === null || _a === void 0 ? void 0 : _a.firstChild;
|
|
144
|
+
if ((callee === null || callee === void 0 ? void 0 : callee.name) != "Callee")
|
|
145
|
+
return false;
|
|
146
|
+
return doc.sliceString(callee.from, callee.to) == "var";
|
|
147
|
+
}
|
|
148
|
+
const VariablesByNode = /*@__PURE__*/new NodeWeakMap();
|
|
149
|
+
const declSelector = ["Declaration"];
|
|
150
|
+
function astTop(node) {
|
|
151
|
+
for (let cur = node;;) {
|
|
152
|
+
if (cur.type.isTop)
|
|
153
|
+
return cur;
|
|
154
|
+
if (!(cur = cur.parent))
|
|
155
|
+
return node;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
function variableNames(doc, node, isVariable) {
|
|
159
|
+
if (node.to - node.from > 4096) {
|
|
160
|
+
let known = VariablesByNode.get(node);
|
|
161
|
+
if (known)
|
|
162
|
+
return known;
|
|
163
|
+
let result = [], seen = new Set, cursor = node.cursor(IterMode.IncludeAnonymous);
|
|
164
|
+
if (cursor.firstChild())
|
|
165
|
+
do {
|
|
166
|
+
for (let option of variableNames(doc, cursor.node, isVariable))
|
|
167
|
+
if (!seen.has(option.label)) {
|
|
168
|
+
seen.add(option.label);
|
|
169
|
+
result.push(option);
|
|
170
|
+
}
|
|
171
|
+
} while (cursor.nextSibling());
|
|
172
|
+
VariablesByNode.set(node, result);
|
|
173
|
+
return result;
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
let result = [], seen = new Set;
|
|
177
|
+
node.cursor().iterate(node => {
|
|
178
|
+
var _a;
|
|
179
|
+
if (isVariable(node) && node.matchContext(declSelector) && ((_a = node.node.nextSibling) === null || _a === void 0 ? void 0 : _a.name) == ":") {
|
|
180
|
+
let name = doc.sliceString(node.from, node.to);
|
|
181
|
+
if (!seen.has(name)) {
|
|
182
|
+
seen.add(name);
|
|
183
|
+
result.push({ label: name, type: "variable" });
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
return result;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
Create a completion source for a CSS dialect, providing a
|
|
192
|
+
predicate for determining what kind of syntax node can act as a
|
|
193
|
+
completable variable. This is used by language modes like Sass and
|
|
194
|
+
Less to reuse this package's completion logic.
|
|
195
|
+
*/
|
|
196
|
+
const defineCSSCompletionSource = (isVariable) => context => {
|
|
197
|
+
let { state, pos } = context, node = syntaxTree(state).resolveInner(pos, -1);
|
|
198
|
+
let isDash = node.type.isError && node.from == node.to - 1 && state.doc.sliceString(node.from, node.to) == "-";
|
|
199
|
+
if (node.name == "PropertyName" ||
|
|
200
|
+
(isDash || node.name == "TagName") && /^(Block|Styles)$/.test(node.resolve(node.to).name))
|
|
201
|
+
return { from: node.from, options: properties(), validFor: identifier };
|
|
202
|
+
if (node.name == "ValueName")
|
|
203
|
+
return { from: node.from, options: values, validFor: identifier };
|
|
204
|
+
if (node.name == "PseudoClassName")
|
|
205
|
+
return { from: node.from, options: pseudoClasses, validFor: identifier };
|
|
206
|
+
if (isVariable(node) || (context.explicit || isDash) && isVarArg(node, state.doc))
|
|
207
|
+
return { from: isVariable(node) || isDash ? node.from : pos,
|
|
208
|
+
options: variableNames(state.doc, astTop(node), isVariable),
|
|
209
|
+
validFor: variable };
|
|
210
|
+
if (node.name == "TagName") {
|
|
211
|
+
for (let { parent } = node; parent; parent = parent.parent)
|
|
212
|
+
if (parent.name == "Block")
|
|
213
|
+
return { from: node.from, options: properties(), validFor: identifier };
|
|
214
|
+
return { from: node.from, options: tags, validFor: identifier };
|
|
215
|
+
}
|
|
216
|
+
if (node.name == "AtKeyword")
|
|
217
|
+
return { from: node.from, options: atRules, validFor: identifier };
|
|
218
|
+
if (!context.explicit)
|
|
219
|
+
return null;
|
|
220
|
+
let above = node.resolve(pos), before = above.childBefore(pos);
|
|
221
|
+
if (before && before.name == ":" && above.name == "PseudoClassSelector")
|
|
222
|
+
return { from: pos, options: pseudoClasses, validFor: identifier };
|
|
223
|
+
if (before && before.name == ":" && above.name == "Declaration" || above.name == "ArgList")
|
|
224
|
+
return { from: pos, options: values, validFor: identifier };
|
|
225
|
+
if (above.name == "Block" || above.name == "Styles")
|
|
226
|
+
return { from: pos, options: properties(), validFor: identifier };
|
|
227
|
+
return null;
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
CSS property, variable, and value keyword completion source.
|
|
231
|
+
*/
|
|
232
|
+
const cssCompletionSource = /*@__PURE__*/defineCSSCompletionSource(n => n.name == "VariableName");
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
A language provider based on the [Lezer CSS
|
|
236
|
+
parser](https://github.com/lezer-parser/css), extended with
|
|
237
|
+
highlighting and indentation information.
|
|
238
|
+
*/
|
|
239
|
+
const cssLanguage = /*@__PURE__*/LRLanguage.define({
|
|
240
|
+
name: "css",
|
|
241
|
+
parser: /*@__PURE__*/parser.configure({
|
|
242
|
+
props: [
|
|
243
|
+
/*@__PURE__*/indentNodeProp.add({
|
|
244
|
+
Declaration: /*@__PURE__*/continuedIndent()
|
|
245
|
+
}),
|
|
246
|
+
/*@__PURE__*/foldNodeProp.add({
|
|
247
|
+
"Block KeyframeList": foldInside
|
|
248
|
+
})
|
|
249
|
+
]
|
|
250
|
+
}),
|
|
251
|
+
languageData: {
|
|
252
|
+
commentTokens: { block: { open: "/*", close: "*/" } },
|
|
253
|
+
indentOnInput: /^\s*\}$/,
|
|
254
|
+
wordChars: "-"
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
/**
|
|
258
|
+
Language support for CSS.
|
|
259
|
+
*/
|
|
260
|
+
function css() {
|
|
261
|
+
return new LanguageSupport(cssLanguage, cssLanguage.data.of({ autocomplete: cssCompletionSource }));
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export { css, cssCompletionSource, cssLanguage, defineCSSCompletionSource };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@codemirror/lang-css",
|
|
3
|
+
"version": "6.3.1",
|
|
4
|
+
"description": "CSS language support for the CodeMirror code editor",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"test": "cm-runtests",
|
|
7
|
+
"prepare": "cm-buildhelper src/css.ts"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"editor",
|
|
11
|
+
"code"
|
|
12
|
+
],
|
|
13
|
+
"author": {
|
|
14
|
+
"name": "Marijn Haverbeke",
|
|
15
|
+
"email": "marijn@haverbeke.berlin",
|
|
16
|
+
"url": "http://marijnhaverbeke.nl"
|
|
17
|
+
},
|
|
18
|
+
"type": "module",
|
|
19
|
+
"main": "dist/index.cjs",
|
|
20
|
+
"exports": {
|
|
21
|
+
"import": "./dist/index.js",
|
|
22
|
+
"require": "./dist/index.cjs"
|
|
23
|
+
},
|
|
24
|
+
"types": "dist/index.d.ts",
|
|
25
|
+
"module": "dist/index.js",
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@codemirror/autocomplete": "^6.0.0",
|
|
30
|
+
"@codemirror/language": "^6.0.0",
|
|
31
|
+
"@codemirror/state": "^6.0.0",
|
|
32
|
+
"@lezer/common": "^1.0.2",
|
|
33
|
+
"@lezer/css": "^1.1.7"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@codemirror/buildhelper": "^1.0.0"
|
|
37
|
+
},
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "https://github.com/codemirror/lang-css.git"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
name: Trigger CI
|
|
2
|
+
on: push
|
|
3
|
+
|
|
4
|
+
jobs:
|
|
5
|
+
build:
|
|
6
|
+
name: Dispatch to main repo
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- name: Emit repository_dispatch
|
|
10
|
+
uses: mvasigh/dispatch-action@main
|
|
11
|
+
with:
|
|
12
|
+
# You should create a personal access token and store it in your repository
|
|
13
|
+
token: ${{ secrets.DISPATCH_AUTH }}
|
|
14
|
+
repo: dev
|
|
15
|
+
owner: codemirror
|
|
16
|
+
event_type: push
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
## 6.4.11 (2025-10-02)
|
|
2
|
+
|
|
3
|
+
### Bug fixes
|
|
4
|
+
|
|
5
|
+
Adjust autocompletion to work with @lezer/html's improved handling of `<` characters without tag name after them.
|
|
6
|
+
|
|
7
|
+
## 6.4.10 (2025-09-11)
|
|
8
|
+
|
|
9
|
+
### Bug fixes
|
|
10
|
+
|
|
11
|
+
Don't include period characters in the language's word characters.
|
|
12
|
+
|
|
13
|
+
## 6.4.9 (2024-04-12)
|
|
14
|
+
|
|
15
|
+
### Bug fixes
|
|
16
|
+
|
|
17
|
+
Fix a bug in `autoCloseTags` that made tags not close when typing > after an attribute.
|
|
18
|
+
|
|
19
|
+
## 6.4.8 (2024-01-23)
|
|
20
|
+
|
|
21
|
+
### Bug fixes
|
|
22
|
+
|
|
23
|
+
Complete attribute names after whitespace in a tag even when completion isn't explicitly triggered.
|
|
24
|
+
|
|
25
|
+
## 6.4.7 (2023-11-27)
|
|
26
|
+
|
|
27
|
+
### Bug fixes
|
|
28
|
+
|
|
29
|
+
Parse `script` tags with `application/json` type as JSON syntax.
|
|
30
|
+
|
|
31
|
+
## 6.4.6 (2023-08-28)
|
|
32
|
+
|
|
33
|
+
### Bug fixes
|
|
34
|
+
|
|
35
|
+
`autoCloseTags` now generates two separate transactions, so that the completion can be undone separately.
|
|
36
|
+
|
|
37
|
+
Add highlighting for the content of `<script>` tags with a type of `importmap` or `speculationrules`.
|
|
38
|
+
|
|
39
|
+
## 6.4.5 (2023-06-23)
|
|
40
|
+
|
|
41
|
+
### Bug fixes
|
|
42
|
+
|
|
43
|
+
Fix a bug where HTML autocompletion didn't work when the cursor was at the end of a bit of HTML code inside a mixed-language document.
|
|
44
|
+
|
|
45
|
+
## 6.4.4 (2023-06-05)
|
|
46
|
+
|
|
47
|
+
### Bug fixes
|
|
48
|
+
|
|
49
|
+
Fix a bug where the completed tag names didn't take into account the parent node's declared children in the schema in some circumstances.
|
|
50
|
+
|
|
51
|
+
## 6.4.3 (2023-03-27)
|
|
52
|
+
|
|
53
|
+
### Bug fixes
|
|
54
|
+
|
|
55
|
+
Fix a bug that could cause some nested language regions to be parsed multiple times.
|
|
56
|
+
|
|
57
|
+
## 6.4.2 (2023-02-10)
|
|
58
|
+
|
|
59
|
+
### Bug fixes
|
|
60
|
+
|
|
61
|
+
Fix an issue where `autoCloseTags` would close self-closing tags when typed directly in front of a word.
|
|
62
|
+
|
|
63
|
+
## 6.4.1 (2023-01-12)
|
|
64
|
+
|
|
65
|
+
### Bug fixes
|
|
66
|
+
|
|
67
|
+
Use only the tag name for matching of opening and closing tags.
|
|
68
|
+
|
|
69
|
+
## 6.4.0 (2022-11-30)
|
|
70
|
+
|
|
71
|
+
### Bug fixes
|
|
72
|
+
|
|
73
|
+
Directly depend on @lang/css 1.1.0, since we're using a new top rule name introduced in that.
|
|
74
|
+
|
|
75
|
+
### New features
|
|
76
|
+
|
|
77
|
+
Add a `globalAttrs` property to (completion) `TagSpec` objects that controls whether global attributes are completed in that tag.
|
|
78
|
+
|
|
79
|
+
## 6.3.1 (2022-11-29)
|
|
80
|
+
|
|
81
|
+
### Bug fixes
|
|
82
|
+
|
|
83
|
+
Remove incorrect pure annotation that broke the code after tree-shaking.
|
|
84
|
+
|
|
85
|
+
## 6.3.0 (2022-11-28)
|
|
86
|
+
|
|
87
|
+
### Bug fixes
|
|
88
|
+
|
|
89
|
+
Parse type=text/babel script tags as JSX.
|
|
90
|
+
|
|
91
|
+
### New features
|
|
92
|
+
|
|
93
|
+
The new `nestedLanguages` option can be used to configure how the content of script, style, and textarea tags is parsed.
|
|
94
|
+
|
|
95
|
+
The content of style attributes will now be parsed as CSS, and the content of on[event] attributes as JavaScript. The new `nestedAttributes` option can be used to configure the parsing of other attribute values.
|
|
96
|
+
|
|
97
|
+
## 6.2.0 (2022-11-16)
|
|
98
|
+
|
|
99
|
+
### New features
|
|
100
|
+
|
|
101
|
+
Add a `selfClosingTags` option to `html` that enables `/>` syntax.
|
|
102
|
+
|
|
103
|
+
## 6.1.4 (2022-11-15)
|
|
104
|
+
|
|
105
|
+
### Bug fixes
|
|
106
|
+
|
|
107
|
+
Parse the content of text/javascript or lang=ts script tags as TypeScript, use JS for text/jsx, and TSX for text/typescript-jsx.
|
|
108
|
+
|
|
109
|
+
## 6.1.3 (2022-10-24)
|
|
110
|
+
|
|
111
|
+
### Bug fixes
|
|
112
|
+
|
|
113
|
+
Remove deprecated HTML tags from the completions.
|
|
114
|
+
|
|
115
|
+
## 6.1.2 (2022-09-27)
|
|
116
|
+
|
|
117
|
+
### Bug fixes
|
|
118
|
+
|
|
119
|
+
Make tag auto-closing consume `>` characters after the cursor.
|
|
120
|
+
|
|
121
|
+
## 6.1.1 (2022-09-05)
|
|
122
|
+
|
|
123
|
+
### Bug fixes
|
|
124
|
+
|
|
125
|
+
Properly list the dependency on @codemirror/view in package.json.
|
|
126
|
+
|
|
127
|
+
## 6.1.0 (2022-06-22)
|
|
128
|
+
|
|
129
|
+
### New features
|
|
130
|
+
|
|
131
|
+
It is now possible to pass in options to extend the set of tags and attributes provided by autocompletion.
|
|
132
|
+
|
|
133
|
+
## 6.0.0 (2022-06-08)
|
|
134
|
+
|
|
135
|
+
### Breaking changes
|
|
136
|
+
|
|
137
|
+
Update dependencies to 6.0.0
|
|
138
|
+
|
|
139
|
+
## 0.20.0 (2022-04-20)
|
|
140
|
+
|
|
141
|
+
### New features
|
|
142
|
+
|
|
143
|
+
Autocompletion now suggests the `<template>` and `<slot>` elements.
|
|
144
|
+
|
|
145
|
+
## 0.19.4 (2021-11-30)
|
|
146
|
+
|
|
147
|
+
### Bug fixes
|
|
148
|
+
|
|
149
|
+
Fix an issue where autoclosing a tag directly in front of alphanumeric text would include nonsense text in the completed tag name.
|
|
150
|
+
|
|
151
|
+
## 0.19.3 (2021-09-23)
|
|
152
|
+
|
|
153
|
+
### New features
|
|
154
|
+
|
|
155
|
+
The package now exports a completion source function, rather than a prebuilt completion extension.
|
|
156
|
+
|
|
157
|
+
Use more specific highlighting tags for attribute names and values.
|
|
158
|
+
|
|
159
|
+
## 0.19.2 (2021-09-21)
|
|
160
|
+
|
|
161
|
+
### New features
|
|
162
|
+
|
|
163
|
+
The new `autoCloseTags` extension (included by default in `html()`) finishes closing tags when you type a `>` or `/` character.
|
|
164
|
+
|
|
165
|
+
## 0.19.1 (2021-08-11)
|
|
166
|
+
|
|
167
|
+
### Bug fixes
|
|
168
|
+
|
|
169
|
+
Fix incorrect versions for @lezer dependencies.
|
|
170
|
+
|
|
171
|
+
## 0.19.0 (2021-08-11)
|
|
172
|
+
|
|
173
|
+
### Bug fixes
|
|
174
|
+
|
|
175
|
+
Improve autocompletion in/after unclosed opening tags.
|
|
176
|
+
|
|
177
|
+
### New features
|
|
178
|
+
|
|
179
|
+
`html()` now takes a `matchClosingTags` option to turn off closing tag matching.
|
|
180
|
+
|
|
181
|
+
## 0.18.1 (2021-05-05)
|
|
182
|
+
|
|
183
|
+
### Bug fixes
|
|
184
|
+
|
|
185
|
+
Fix an issue where the completer would sometimes try to complete an opening tag to its own close tag.
|
|
186
|
+
|
|
187
|
+
Fix a bug that would sometimes produce the wrong indentation in HTML elements.
|
|
188
|
+
|
|
189
|
+
Fix a bug that broke tag-specific attribute completion in tags like `<input>` or `<script>`.
|
|
190
|
+
|
|
191
|
+
Move a new version of lezer-html which solves some issues with autocompletion.
|
|
192
|
+
|
|
193
|
+
## 0.18.0 (2021-03-03)
|
|
194
|
+
|
|
195
|
+
### Bug fixes
|
|
196
|
+
|
|
197
|
+
Improves indentation at end of implicitly closed elements.
|
|
198
|
+
|
|
199
|
+
## 0.17.1 (2021-01-06)
|
|
200
|
+
|
|
201
|
+
### New features
|
|
202
|
+
|
|
203
|
+
The package now also exports a CommonJS module.
|
|
204
|
+
|
|
205
|
+
## 0.17.0 (2020-12-29)
|
|
206
|
+
|
|
207
|
+
### Breaking changes
|
|
208
|
+
|
|
209
|
+
First numbered release.
|
|
210
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (C) 2018-2021 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|