groove-dev 0.15.1 → 0.16.1
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 +268 -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/mimetypes.js +43 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-BQSznoq0.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 +492 -0
- package/node_modules/@groove-dev/gui/src/components/MediaViewer.jsx +104 -0
- package/node_modules/@groove-dev/gui/src/stores/groove.js +287 -1
- package/node_modules/@groove-dev/gui/src/views/FileEditor.jsx +149 -0
- 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 +268 -2
- package/packages/daemon/src/filewatcher.js +59 -0
- package/packages/daemon/src/index.js +28 -1
- package/packages/daemon/src/mimetypes.js +43 -0
- package/packages/gui/dist/assets/index-BQSznoq0.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 +492 -0
- package/packages/gui/src/components/MediaViewer.jsx +104 -0
- package/packages/gui/src/stores/groove.js +287 -1
- package/packages/gui/src/views/FileEditor.jsx +149 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-8Kqi_LVo.js +0 -74
- package/packages/gui/dist/assets/index-8Kqi_LVo.js +0 -74
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@codemirror/state",
|
|
3
|
+
"version": "6.6.0",
|
|
4
|
+
"description": "Editor state data structures for the CodeMirror code editor",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"test": "cm-runtests",
|
|
7
|
+
"prepare": "cm-buildhelper src/index.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
|
+
"@marijn/find-cluster-break": "^1.0.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@codemirror/buildhelper": "^1.0.0"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/codemirror/state.git"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -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,97 @@
|
|
|
1
|
+
## 6.1.3 (2025-06-19)
|
|
2
|
+
|
|
3
|
+
### Bug fixes
|
|
4
|
+
|
|
5
|
+
Add a .d.cts file to make TypeScript happy.
|
|
6
|
+
## 6.1.2 (2023-04-17)
|
|
7
|
+
|
|
8
|
+
### Bug fixes
|
|
9
|
+
|
|
10
|
+
Make sure the selection background styling overrides the base style rules.
|
|
11
|
+
|
|
12
|
+
## 6.1.1 (2023-02-17)
|
|
13
|
+
|
|
14
|
+
### Bug fixes
|
|
15
|
+
|
|
16
|
+
Remove the outline on matching brackets, because that could cover the native cursor on Chrome.
|
|
17
|
+
|
|
18
|
+
## 6.1.0 (2022-09-12)
|
|
19
|
+
|
|
20
|
+
### New features
|
|
21
|
+
|
|
22
|
+
Export a `color` object holding the colors used in the theme.
|
|
23
|
+
|
|
24
|
+
## 6.0.0 (2022-06-08)
|
|
25
|
+
|
|
26
|
+
### Breaking changes
|
|
27
|
+
|
|
28
|
+
Update dependencies to 6.0.0
|
|
29
|
+
|
|
30
|
+
## 0.20.0 (2022-04-20)
|
|
31
|
+
|
|
32
|
+
### Breaking changes
|
|
33
|
+
|
|
34
|
+
Update dependencies to 0.20.0
|
|
35
|
+
|
|
36
|
+
## 0.19.1 (2021-11-06)
|
|
37
|
+
|
|
38
|
+
### Bug fixes
|
|
39
|
+
|
|
40
|
+
Give tooltips a somewhat lighter background so that they don't blend into the editor background.
|
|
41
|
+
|
|
42
|
+
## 0.19.0 (2021-08-11)
|
|
43
|
+
|
|
44
|
+
### Breaking changes
|
|
45
|
+
|
|
46
|
+
Update dependencies to 0.19.0
|
|
47
|
+
|
|
48
|
+
## 0.18.1 (2021-05-15)
|
|
49
|
+
|
|
50
|
+
### Bug fixes
|
|
51
|
+
|
|
52
|
+
Include styling for the active line gutter.
|
|
53
|
+
|
|
54
|
+
## 0.18.0 (2021-03-03)
|
|
55
|
+
|
|
56
|
+
### Breaking changes
|
|
57
|
+
|
|
58
|
+
Update dependencies to 0.18.
|
|
59
|
+
|
|
60
|
+
## 0.17.5 (2021-02-10)
|
|
61
|
+
|
|
62
|
+
### Bug fixes
|
|
63
|
+
|
|
64
|
+
Increase contrast on the color used for comments and links.
|
|
65
|
+
|
|
66
|
+
## 0.17.4 (2021-01-18)
|
|
67
|
+
|
|
68
|
+
### Bug fixes
|
|
69
|
+
|
|
70
|
+
Fix the background color for the fold placeholder.
|
|
71
|
+
|
|
72
|
+
Improve background colors, make autocompletion dropdown more readable.
|
|
73
|
+
|
|
74
|
+
## 0.17.3 (2021-01-14)
|
|
75
|
+
|
|
76
|
+
### Bug fixes
|
|
77
|
+
|
|
78
|
+
Make the selection background grey, rather than dark green.
|
|
79
|
+
|
|
80
|
+
## 0.17.2 (2021-01-06)
|
|
81
|
+
|
|
82
|
+
### New features
|
|
83
|
+
|
|
84
|
+
The package now also exports a CommonJS module.
|
|
85
|
+
|
|
86
|
+
## 0.17.1 (2021-01-03)
|
|
87
|
+
|
|
88
|
+
### Bug fixes
|
|
89
|
+
|
|
90
|
+
Fix an issue where the active completion isn't readable on Chrome.
|
|
91
|
+
|
|
92
|
+
## 0.17.0 (2020-12-29)
|
|
93
|
+
|
|
94
|
+
### Breaking changes
|
|
95
|
+
|
|
96
|
+
First numbered release.
|
|
97
|
+
|
|
@@ -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.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<!-- NOTE: README.md is generated from src/README.md -->
|
|
2
|
+
|
|
3
|
+
# @codemirror/theme-one-dark [](https://www.npmjs.org/package/@codemirror/theme-one-dark)
|
|
4
|
+
|
|
5
|
+
[ [**WEBSITE**](https://codemirror.net/) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/theme-one-dark/blob/main/CHANGELOG.md) ]
|
|
6
|
+
|
|
7
|
+
This package implements the One Dark theme for the
|
|
8
|
+
[CodeMirror](https://codemirror.net/) code editor.
|
|
9
|
+
|
|
10
|
+
The [project page](https://codemirror.net/) has more information, a
|
|
11
|
+
number of [examples](https://codemirror.net/examples/) and the
|
|
12
|
+
[documentation](https://codemirror.net/docs/).
|
|
13
|
+
|
|
14
|
+
This code is released under an
|
|
15
|
+
[MIT license](https://github.com/codemirror/theme-one-dark/tree/main/LICENSE).
|
|
16
|
+
|
|
17
|
+
We aim to be an inclusive, welcoming community. To make that explicit,
|
|
18
|
+
we have a [code of
|
|
19
|
+
conduct](http://contributor-covenant.org/version/1/1/0/) that applies
|
|
20
|
+
to communication around the project.
|
|
21
|
+
|
|
22
|
+
## API Reference
|
|
23
|
+
|
|
24
|
+
<dl>
|
|
25
|
+
<dt id="user-content-onedark">
|
|
26
|
+
<code><strong><a href="#user-content-onedark">oneDark</a></strong>: <a href="https://codemirror.net/docs/ref#state.Extension">Extension</a></code></dt>
|
|
27
|
+
|
|
28
|
+
<dd><p>Extension to enable the One Dark theme (both the editor theme and
|
|
29
|
+
the highlight style).</p>
|
|
30
|
+
</dd>
|
|
31
|
+
<dt id="user-content-onedarktheme">
|
|
32
|
+
<code><strong><a href="#user-content-onedarktheme">oneDarkTheme</a></strong>: <a href="https://codemirror.net/docs/ref#state.Extension">Extension</a></code></dt>
|
|
33
|
+
|
|
34
|
+
<dd><p>The editor theme styles for One Dark.</p>
|
|
35
|
+
</dd>
|
|
36
|
+
<dt id="user-content-onedarkhighlightstyle">
|
|
37
|
+
<code><strong><a href="#user-content-onedarkhighlightstyle">oneDarkHighlightStyle</a></strong>: <a href="https://codemirror.net/docs/ref#language.HighlightStyle">HighlightStyle</a></code></dt>
|
|
38
|
+
|
|
39
|
+
<dd><p>The highlighting style for code in the One Dark theme.</p>
|
|
40
|
+
</dd>
|
|
41
|
+
<dt id="user-content-color">
|
|
42
|
+
<code><strong><a href="#user-content-color">color</a></strong>: {chalky: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, coral: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, cyan: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, invalid: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, ivory: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, stone: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, malibu: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, sage: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, whiskey: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, violet: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, darkBackground: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, highlightBackground: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, background: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, tooltipBackground: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, selection: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, cursor: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>}</code></dt>
|
|
43
|
+
|
|
44
|
+
<dd><p>The colors used in the theme, as CSS color strings.</p>
|
|
45
|
+
</dd>
|
|
46
|
+
</dl>
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var view = require('@codemirror/view');
|
|
4
|
+
var language = require('@codemirror/language');
|
|
5
|
+
var highlight = require('@lezer/highlight');
|
|
6
|
+
|
|
7
|
+
// Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
|
|
8
|
+
const chalky = "#e5c07b", coral = "#e06c75", cyan = "#56b6c2", invalid = "#ffffff", ivory = "#abb2bf", stone = "#7d8799", // Brightened compared to original to increase contrast
|
|
9
|
+
malibu = "#61afef", sage = "#98c379", whiskey = "#d19a66", violet = "#c678dd", darkBackground = "#21252b", highlightBackground = "#2c313a", background = "#282c34", tooltipBackground = "#353a42", selection = "#3E4451", cursor = "#528bff";
|
|
10
|
+
/**
|
|
11
|
+
The colors used in the theme, as CSS color strings.
|
|
12
|
+
*/
|
|
13
|
+
const color = {
|
|
14
|
+
chalky,
|
|
15
|
+
coral,
|
|
16
|
+
cyan,
|
|
17
|
+
invalid,
|
|
18
|
+
ivory,
|
|
19
|
+
stone,
|
|
20
|
+
malibu,
|
|
21
|
+
sage,
|
|
22
|
+
whiskey,
|
|
23
|
+
violet,
|
|
24
|
+
darkBackground,
|
|
25
|
+
highlightBackground,
|
|
26
|
+
background,
|
|
27
|
+
tooltipBackground,
|
|
28
|
+
selection,
|
|
29
|
+
cursor
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
The editor theme styles for One Dark.
|
|
33
|
+
*/
|
|
34
|
+
const oneDarkTheme = view.EditorView.theme({
|
|
35
|
+
"&": {
|
|
36
|
+
color: ivory,
|
|
37
|
+
backgroundColor: background
|
|
38
|
+
},
|
|
39
|
+
".cm-content": {
|
|
40
|
+
caretColor: cursor
|
|
41
|
+
},
|
|
42
|
+
".cm-cursor, .cm-dropCursor": { borderLeftColor: cursor },
|
|
43
|
+
"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: selection },
|
|
44
|
+
".cm-panels": { backgroundColor: darkBackground, color: ivory },
|
|
45
|
+
".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
|
|
46
|
+
".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
|
|
47
|
+
".cm-searchMatch": {
|
|
48
|
+
backgroundColor: "#72a1ff59",
|
|
49
|
+
outline: "1px solid #457dff"
|
|
50
|
+
},
|
|
51
|
+
".cm-searchMatch.cm-searchMatch-selected": {
|
|
52
|
+
backgroundColor: "#6199ff2f"
|
|
53
|
+
},
|
|
54
|
+
".cm-activeLine": { backgroundColor: "#6699ff0b" },
|
|
55
|
+
".cm-selectionMatch": { backgroundColor: "#aafe661a" },
|
|
56
|
+
"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": {
|
|
57
|
+
backgroundColor: "#bad0f847"
|
|
58
|
+
},
|
|
59
|
+
".cm-gutters": {
|
|
60
|
+
backgroundColor: background,
|
|
61
|
+
color: stone,
|
|
62
|
+
border: "none"
|
|
63
|
+
},
|
|
64
|
+
".cm-activeLineGutter": {
|
|
65
|
+
backgroundColor: highlightBackground
|
|
66
|
+
},
|
|
67
|
+
".cm-foldPlaceholder": {
|
|
68
|
+
backgroundColor: "transparent",
|
|
69
|
+
border: "none",
|
|
70
|
+
color: "#ddd"
|
|
71
|
+
},
|
|
72
|
+
".cm-tooltip": {
|
|
73
|
+
border: "none",
|
|
74
|
+
backgroundColor: tooltipBackground
|
|
75
|
+
},
|
|
76
|
+
".cm-tooltip .cm-tooltip-arrow:before": {
|
|
77
|
+
borderTopColor: "transparent",
|
|
78
|
+
borderBottomColor: "transparent"
|
|
79
|
+
},
|
|
80
|
+
".cm-tooltip .cm-tooltip-arrow:after": {
|
|
81
|
+
borderTopColor: tooltipBackground,
|
|
82
|
+
borderBottomColor: tooltipBackground
|
|
83
|
+
},
|
|
84
|
+
".cm-tooltip-autocomplete": {
|
|
85
|
+
"& > ul > li[aria-selected]": {
|
|
86
|
+
backgroundColor: highlightBackground,
|
|
87
|
+
color: ivory
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}, { dark: true });
|
|
91
|
+
/**
|
|
92
|
+
The highlighting style for code in the One Dark theme.
|
|
93
|
+
*/
|
|
94
|
+
const oneDarkHighlightStyle = language.HighlightStyle.define([
|
|
95
|
+
{ tag: highlight.tags.keyword,
|
|
96
|
+
color: violet },
|
|
97
|
+
{ tag: [highlight.tags.name, highlight.tags.deleted, highlight.tags.character, highlight.tags.propertyName, highlight.tags.macroName],
|
|
98
|
+
color: coral },
|
|
99
|
+
{ tag: [highlight.tags.function(highlight.tags.variableName), highlight.tags.labelName],
|
|
100
|
+
color: malibu },
|
|
101
|
+
{ tag: [highlight.tags.color, highlight.tags.constant(highlight.tags.name), highlight.tags.standard(highlight.tags.name)],
|
|
102
|
+
color: whiskey },
|
|
103
|
+
{ tag: [highlight.tags.definition(highlight.tags.name), highlight.tags.separator],
|
|
104
|
+
color: ivory },
|
|
105
|
+
{ tag: [highlight.tags.typeName, highlight.tags.className, highlight.tags.number, highlight.tags.changed, highlight.tags.annotation, highlight.tags.modifier, highlight.tags.self, highlight.tags.namespace],
|
|
106
|
+
color: chalky },
|
|
107
|
+
{ tag: [highlight.tags.operator, highlight.tags.operatorKeyword, highlight.tags.url, highlight.tags.escape, highlight.tags.regexp, highlight.tags.link, highlight.tags.special(highlight.tags.string)],
|
|
108
|
+
color: cyan },
|
|
109
|
+
{ tag: [highlight.tags.meta, highlight.tags.comment],
|
|
110
|
+
color: stone },
|
|
111
|
+
{ tag: highlight.tags.strong,
|
|
112
|
+
fontWeight: "bold" },
|
|
113
|
+
{ tag: highlight.tags.emphasis,
|
|
114
|
+
fontStyle: "italic" },
|
|
115
|
+
{ tag: highlight.tags.strikethrough,
|
|
116
|
+
textDecoration: "line-through" },
|
|
117
|
+
{ tag: highlight.tags.link,
|
|
118
|
+
color: stone,
|
|
119
|
+
textDecoration: "underline" },
|
|
120
|
+
{ tag: highlight.tags.heading,
|
|
121
|
+
fontWeight: "bold",
|
|
122
|
+
color: coral },
|
|
123
|
+
{ tag: [highlight.tags.atom, highlight.tags.bool, highlight.tags.special(highlight.tags.variableName)],
|
|
124
|
+
color: whiskey },
|
|
125
|
+
{ tag: [highlight.tags.processingInstruction, highlight.tags.string, highlight.tags.inserted],
|
|
126
|
+
color: sage },
|
|
127
|
+
{ tag: highlight.tags.invalid,
|
|
128
|
+
color: invalid },
|
|
129
|
+
]);
|
|
130
|
+
/**
|
|
131
|
+
Extension to enable the One Dark theme (both the editor theme and
|
|
132
|
+
the highlight style).
|
|
133
|
+
*/
|
|
134
|
+
const oneDark = [oneDarkTheme, language.syntaxHighlighting(oneDarkHighlightStyle)];
|
|
135
|
+
|
|
136
|
+
exports.color = color;
|
|
137
|
+
exports.oneDark = oneDark;
|
|
138
|
+
exports.oneDarkHighlightStyle = oneDarkHighlightStyle;
|
|
139
|
+
exports.oneDarkTheme = oneDarkTheme;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Extension } from '@codemirror/state';
|
|
2
|
+
import { HighlightStyle } from '@codemirror/language';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
The colors used in the theme, as CSS color strings.
|
|
6
|
+
*/
|
|
7
|
+
declare const color: {
|
|
8
|
+
chalky: string;
|
|
9
|
+
coral: string;
|
|
10
|
+
cyan: string;
|
|
11
|
+
invalid: string;
|
|
12
|
+
ivory: string;
|
|
13
|
+
stone: string;
|
|
14
|
+
malibu: string;
|
|
15
|
+
sage: string;
|
|
16
|
+
whiskey: string;
|
|
17
|
+
violet: string;
|
|
18
|
+
darkBackground: string;
|
|
19
|
+
highlightBackground: string;
|
|
20
|
+
background: string;
|
|
21
|
+
tooltipBackground: string;
|
|
22
|
+
selection: string;
|
|
23
|
+
cursor: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
The editor theme styles for One Dark.
|
|
27
|
+
*/
|
|
28
|
+
declare const oneDarkTheme: Extension;
|
|
29
|
+
/**
|
|
30
|
+
The highlighting style for code in the One Dark theme.
|
|
31
|
+
*/
|
|
32
|
+
declare const oneDarkHighlightStyle: HighlightStyle;
|
|
33
|
+
/**
|
|
34
|
+
Extension to enable the One Dark theme (both the editor theme and
|
|
35
|
+
the highlight style).
|
|
36
|
+
*/
|
|
37
|
+
declare const oneDark: Extension;
|
|
38
|
+
|
|
39
|
+
export { color, oneDark, oneDarkHighlightStyle, oneDarkTheme };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Extension } from '@codemirror/state';
|
|
2
|
+
import { HighlightStyle } from '@codemirror/language';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
The colors used in the theme, as CSS color strings.
|
|
6
|
+
*/
|
|
7
|
+
declare const color: {
|
|
8
|
+
chalky: string;
|
|
9
|
+
coral: string;
|
|
10
|
+
cyan: string;
|
|
11
|
+
invalid: string;
|
|
12
|
+
ivory: string;
|
|
13
|
+
stone: string;
|
|
14
|
+
malibu: string;
|
|
15
|
+
sage: string;
|
|
16
|
+
whiskey: string;
|
|
17
|
+
violet: string;
|
|
18
|
+
darkBackground: string;
|
|
19
|
+
highlightBackground: string;
|
|
20
|
+
background: string;
|
|
21
|
+
tooltipBackground: string;
|
|
22
|
+
selection: string;
|
|
23
|
+
cursor: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
The editor theme styles for One Dark.
|
|
27
|
+
*/
|
|
28
|
+
declare const oneDarkTheme: Extension;
|
|
29
|
+
/**
|
|
30
|
+
The highlighting style for code in the One Dark theme.
|
|
31
|
+
*/
|
|
32
|
+
declare const oneDarkHighlightStyle: HighlightStyle;
|
|
33
|
+
/**
|
|
34
|
+
Extension to enable the One Dark theme (both the editor theme and
|
|
35
|
+
the highlight style).
|
|
36
|
+
*/
|
|
37
|
+
declare const oneDark: Extension;
|
|
38
|
+
|
|
39
|
+
export { color, oneDark, oneDarkHighlightStyle, oneDarkTheme };
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { EditorView } from '@codemirror/view';
|
|
2
|
+
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
|
|
3
|
+
import { tags } from '@lezer/highlight';
|
|
4
|
+
|
|
5
|
+
// Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
|
|
6
|
+
const chalky = "#e5c07b", coral = "#e06c75", cyan = "#56b6c2", invalid = "#ffffff", ivory = "#abb2bf", stone = "#7d8799", // Brightened compared to original to increase contrast
|
|
7
|
+
malibu = "#61afef", sage = "#98c379", whiskey = "#d19a66", violet = "#c678dd", darkBackground = "#21252b", highlightBackground = "#2c313a", background = "#282c34", tooltipBackground = "#353a42", selection = "#3E4451", cursor = "#528bff";
|
|
8
|
+
/**
|
|
9
|
+
The colors used in the theme, as CSS color strings.
|
|
10
|
+
*/
|
|
11
|
+
const color = {
|
|
12
|
+
chalky,
|
|
13
|
+
coral,
|
|
14
|
+
cyan,
|
|
15
|
+
invalid,
|
|
16
|
+
ivory,
|
|
17
|
+
stone,
|
|
18
|
+
malibu,
|
|
19
|
+
sage,
|
|
20
|
+
whiskey,
|
|
21
|
+
violet,
|
|
22
|
+
darkBackground,
|
|
23
|
+
highlightBackground,
|
|
24
|
+
background,
|
|
25
|
+
tooltipBackground,
|
|
26
|
+
selection,
|
|
27
|
+
cursor
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
The editor theme styles for One Dark.
|
|
31
|
+
*/
|
|
32
|
+
const oneDarkTheme = /*@__PURE__*/EditorView.theme({
|
|
33
|
+
"&": {
|
|
34
|
+
color: ivory,
|
|
35
|
+
backgroundColor: background
|
|
36
|
+
},
|
|
37
|
+
".cm-content": {
|
|
38
|
+
caretColor: cursor
|
|
39
|
+
},
|
|
40
|
+
".cm-cursor, .cm-dropCursor": { borderLeftColor: cursor },
|
|
41
|
+
"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: selection },
|
|
42
|
+
".cm-panels": { backgroundColor: darkBackground, color: ivory },
|
|
43
|
+
".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
|
|
44
|
+
".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
|
|
45
|
+
".cm-searchMatch": {
|
|
46
|
+
backgroundColor: "#72a1ff59",
|
|
47
|
+
outline: "1px solid #457dff"
|
|
48
|
+
},
|
|
49
|
+
".cm-searchMatch.cm-searchMatch-selected": {
|
|
50
|
+
backgroundColor: "#6199ff2f"
|
|
51
|
+
},
|
|
52
|
+
".cm-activeLine": { backgroundColor: "#6699ff0b" },
|
|
53
|
+
".cm-selectionMatch": { backgroundColor: "#aafe661a" },
|
|
54
|
+
"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": {
|
|
55
|
+
backgroundColor: "#bad0f847"
|
|
56
|
+
},
|
|
57
|
+
".cm-gutters": {
|
|
58
|
+
backgroundColor: background,
|
|
59
|
+
color: stone,
|
|
60
|
+
border: "none"
|
|
61
|
+
},
|
|
62
|
+
".cm-activeLineGutter": {
|
|
63
|
+
backgroundColor: highlightBackground
|
|
64
|
+
},
|
|
65
|
+
".cm-foldPlaceholder": {
|
|
66
|
+
backgroundColor: "transparent",
|
|
67
|
+
border: "none",
|
|
68
|
+
color: "#ddd"
|
|
69
|
+
},
|
|
70
|
+
".cm-tooltip": {
|
|
71
|
+
border: "none",
|
|
72
|
+
backgroundColor: tooltipBackground
|
|
73
|
+
},
|
|
74
|
+
".cm-tooltip .cm-tooltip-arrow:before": {
|
|
75
|
+
borderTopColor: "transparent",
|
|
76
|
+
borderBottomColor: "transparent"
|
|
77
|
+
},
|
|
78
|
+
".cm-tooltip .cm-tooltip-arrow:after": {
|
|
79
|
+
borderTopColor: tooltipBackground,
|
|
80
|
+
borderBottomColor: tooltipBackground
|
|
81
|
+
},
|
|
82
|
+
".cm-tooltip-autocomplete": {
|
|
83
|
+
"& > ul > li[aria-selected]": {
|
|
84
|
+
backgroundColor: highlightBackground,
|
|
85
|
+
color: ivory
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}, { dark: true });
|
|
89
|
+
/**
|
|
90
|
+
The highlighting style for code in the One Dark theme.
|
|
91
|
+
*/
|
|
92
|
+
const oneDarkHighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
93
|
+
{ tag: tags.keyword,
|
|
94
|
+
color: violet },
|
|
95
|
+
{ tag: [tags.name, tags.deleted, tags.character, tags.propertyName, tags.macroName],
|
|
96
|
+
color: coral },
|
|
97
|
+
{ tag: [/*@__PURE__*/tags.function(tags.variableName), tags.labelName],
|
|
98
|
+
color: malibu },
|
|
99
|
+
{ tag: [tags.color, /*@__PURE__*/tags.constant(tags.name), /*@__PURE__*/tags.standard(tags.name)],
|
|
100
|
+
color: whiskey },
|
|
101
|
+
{ tag: [/*@__PURE__*/tags.definition(tags.name), tags.separator],
|
|
102
|
+
color: ivory },
|
|
103
|
+
{ tag: [tags.typeName, tags.className, tags.number, tags.changed, tags.annotation, tags.modifier, tags.self, tags.namespace],
|
|
104
|
+
color: chalky },
|
|
105
|
+
{ tag: [tags.operator, tags.operatorKeyword, tags.url, tags.escape, tags.regexp, tags.link, /*@__PURE__*/tags.special(tags.string)],
|
|
106
|
+
color: cyan },
|
|
107
|
+
{ tag: [tags.meta, tags.comment],
|
|
108
|
+
color: stone },
|
|
109
|
+
{ tag: tags.strong,
|
|
110
|
+
fontWeight: "bold" },
|
|
111
|
+
{ tag: tags.emphasis,
|
|
112
|
+
fontStyle: "italic" },
|
|
113
|
+
{ tag: tags.strikethrough,
|
|
114
|
+
textDecoration: "line-through" },
|
|
115
|
+
{ tag: tags.link,
|
|
116
|
+
color: stone,
|
|
117
|
+
textDecoration: "underline" },
|
|
118
|
+
{ tag: tags.heading,
|
|
119
|
+
fontWeight: "bold",
|
|
120
|
+
color: coral },
|
|
121
|
+
{ tag: [tags.atom, tags.bool, /*@__PURE__*/tags.special(tags.variableName)],
|
|
122
|
+
color: whiskey },
|
|
123
|
+
{ tag: [tags.processingInstruction, tags.string, tags.inserted],
|
|
124
|
+
color: sage },
|
|
125
|
+
{ tag: tags.invalid,
|
|
126
|
+
color: invalid },
|
|
127
|
+
]);
|
|
128
|
+
/**
|
|
129
|
+
Extension to enable the One Dark theme (both the editor theme and
|
|
130
|
+
the highlight style).
|
|
131
|
+
*/
|
|
132
|
+
const oneDark = [oneDarkTheme, /*@__PURE__*/syntaxHighlighting(oneDarkHighlightStyle)];
|
|
133
|
+
|
|
134
|
+
export { color, oneDark, oneDarkHighlightStyle, oneDarkTheme };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@codemirror/theme-one-dark",
|
|
3
|
+
"version": "6.1.3",
|
|
4
|
+
"description": "One Dark theme for the CodeMirror code editor",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"test": "cm-runtests",
|
|
7
|
+
"prepare": "cm-buildhelper src/one-dark.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
|
+
"@lezer/highlight": "^1.0.0",
|
|
30
|
+
"@codemirror/language": "^6.0.0",
|
|
31
|
+
"@codemirror/state": "^6.0.0",
|
|
32
|
+
"@codemirror/view": "^6.0.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@codemirror/buildhelper": "^1.0.0"
|
|
36
|
+
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "https://github.com/codemirror/theme-one-dark.git"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -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
|