update interface button styles
This commit is contained in:
16
node_modules/codemirror/.github/workflows/dispatch.yml
generated
vendored
Normal file
16
node_modules/codemirror/.github/workflows/dispatch.yml
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
name: Trigger CI
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Dispatch to main repo
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Emit repository_dispatch
|
||||
uses: mvasigh/dispatch-action@main
|
||||
with:
|
||||
# You should create a personal access token and store it in your repository
|
||||
token: ${{ secrets.DISPATCH_AUTH }}
|
||||
repo: dev
|
||||
owner: codemirror
|
||||
event_type: push
|
||||
76
node_modules/codemirror/CHANGELOG.md
generated
vendored
Normal file
76
node_modules/codemirror/CHANGELOG.md
generated
vendored
Normal file
@ -0,0 +1,76 @@
|
||||
## 6.0.1 (2022-06-30)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Work around limitations in tree-shaking software that prevented `basicSetup` from being removed when unused.
|
||||
|
||||
## 6.0.0 (2022-06-08)
|
||||
|
||||
### Breaking changes
|
||||
|
||||
Change the package name from `@codemirror/example-setup` to just `codemirror`.
|
||||
|
||||
The package no longer exports `EditorState` (since that is no longer necessary to set up a basic editor).
|
||||
|
||||
### New features
|
||||
|
||||
The new `minimalSetup` export provides a minimal set of editor extensions.
|
||||
|
||||
## 0.20.0 (2022-04-20)
|
||||
|
||||
### Breaking changes
|
||||
|
||||
Update dependencies to 0.20.0
|
||||
|
||||
## 0.19.3 (2022-03-30)
|
||||
|
||||
### New features
|
||||
|
||||
Add the extension that shows a crosshair cursor when Alt is held down to the basic setup.
|
||||
|
||||
## 0.19.1 (2021-12-13)
|
||||
|
||||
### New features
|
||||
|
||||
The basic setup now includes the `dropCursor` extension.
|
||||
|
||||
## 0.19.0 (2021-08-11)
|
||||
|
||||
### Breaking changes
|
||||
|
||||
Update dependencies to 0.19.0
|
||||
|
||||
## 0.18.2 (2021-05-25)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Fix too-low dependency on @codemirror/gutter that could cause broken upgrades.
|
||||
|
||||
## 0.18.1 (2021-05-15)
|
||||
|
||||
### New features
|
||||
|
||||
The basic setup now includes `highlightActiveLineGutter` from @codemirror/gutter.
|
||||
|
||||
## 0.18.0 (2021-03-03)
|
||||
|
||||
### Breaking changes
|
||||
|
||||
Update dependencies to 0.18.
|
||||
|
||||
## 0.17.1 (2021-01-06)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Putting a theme after the basic setup no longer causes the default highlighter to be used with the theme's editor styling.
|
||||
|
||||
### New features
|
||||
|
||||
The package now also exports a CommonJS module.
|
||||
|
||||
## 0.17.0 (2020-12-29)
|
||||
|
||||
### Breaking changes
|
||||
|
||||
First numbered release.
|
||||
|
||||
21
node_modules/codemirror/LICENSE
generated
vendored
Normal file
21
node_modules/codemirror/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (C) 2018-2021 by Marijn Haverbeke <marijnh@gmail.com> and others
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
20
node_modules/codemirror/README.md
generated
vendored
Normal file
20
node_modules/codemirror/README.md
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
# codemirror [](https://www.npmjs.org/package/codemirror)
|
||||
|
||||
[ [**WEBSITE**](https://codemirror.net/) | [**DOCS**](https://codemirror.net/docs/ref/#codemirror) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/basic-setup/blob/main/CHANGELOG.md) ]
|
||||
|
||||
This package provides an example configuration for the
|
||||
[CodeMirror](https://codemirror.net/) code editor. The actual editor
|
||||
is implemented in the various packages under the `@codemirror` scope,
|
||||
which this package depends on.
|
||||
|
||||
The [project page](https://codemirror.net/) has more information, a
|
||||
number of [examples](https://codemirror.net/examples/) and the
|
||||
[documentation](https://codemirror.net/docs/).
|
||||
|
||||
This code is released under an
|
||||
[MIT license](https://github.com/codemirror/basic-setup/tree/main/LICENSE).
|
||||
|
||||
We aim to be an inclusive, welcoming community. To make that explicit,
|
||||
we have a [code of
|
||||
conduct](http://contributor-covenant.org/version/1/1/0/) that applies
|
||||
to communication around the project.
|
||||
104
node_modules/codemirror/dist/index.cjs
generated
vendored
Normal file
104
node_modules/codemirror/dist/index.cjs
generated
vendored
Normal file
@ -0,0 +1,104 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var view = require('@codemirror/view');
|
||||
var state = require('@codemirror/state');
|
||||
var language = require('@codemirror/language');
|
||||
var commands = require('@codemirror/commands');
|
||||
var search = require('@codemirror/search');
|
||||
var autocomplete = require('@codemirror/autocomplete');
|
||||
var lint = require('@codemirror/lint');
|
||||
|
||||
// (The superfluous function calls around the list of extensions work
|
||||
// around current limitations in tree-shaking software.)
|
||||
/**
|
||||
This is an extension value that just pulls together a number of
|
||||
extensions that you might want in a basic editor. It is meant as a
|
||||
convenient helper to quickly set up CodeMirror without installing
|
||||
and importing a lot of separate packages.
|
||||
|
||||
Specifically, it includes...
|
||||
|
||||
- [the default command bindings](https://codemirror.net/6/docs/ref/#commands.defaultKeymap)
|
||||
- [line numbers](https://codemirror.net/6/docs/ref/#view.lineNumbers)
|
||||
- [special character highlighting](https://codemirror.net/6/docs/ref/#view.highlightSpecialChars)
|
||||
- [the undo history](https://codemirror.net/6/docs/ref/#commands.history)
|
||||
- [a fold gutter](https://codemirror.net/6/docs/ref/#language.foldGutter)
|
||||
- [custom selection drawing](https://codemirror.net/6/docs/ref/#view.drawSelection)
|
||||
- [drop cursor](https://codemirror.net/6/docs/ref/#view.dropCursor)
|
||||
- [multiple selections](https://codemirror.net/6/docs/ref/#state.EditorState^allowMultipleSelections)
|
||||
- [reindentation on input](https://codemirror.net/6/docs/ref/#language.indentOnInput)
|
||||
- [the default highlight style](https://codemirror.net/6/docs/ref/#language.defaultHighlightStyle) (as fallback)
|
||||
- [bracket matching](https://codemirror.net/6/docs/ref/#language.bracketMatching)
|
||||
- [bracket closing](https://codemirror.net/6/docs/ref/#autocomplete.closeBrackets)
|
||||
- [autocompletion](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion)
|
||||
- [rectangular selection](https://codemirror.net/6/docs/ref/#view.rectangularSelection) and [crosshair cursor](https://codemirror.net/6/docs/ref/#view.crosshairCursor)
|
||||
- [active line highlighting](https://codemirror.net/6/docs/ref/#view.highlightActiveLine)
|
||||
- [active line gutter highlighting](https://codemirror.net/6/docs/ref/#view.highlightActiveLineGutter)
|
||||
- [selection match highlighting](https://codemirror.net/6/docs/ref/#search.highlightSelectionMatches)
|
||||
- [search](https://codemirror.net/6/docs/ref/#search.searchKeymap)
|
||||
- [linting](https://codemirror.net/6/docs/ref/#lint.lintKeymap)
|
||||
|
||||
(You'll probably want to add some language package to your setup
|
||||
too.)
|
||||
|
||||
This extension does not allow customization. The idea is that,
|
||||
once you decide you want to configure your editor more precisely,
|
||||
you take this package's source (which is just a bunch of imports
|
||||
and an array literal), copy it into your own code, and adjust it
|
||||
as desired.
|
||||
*/
|
||||
const basicSetup = (() => [
|
||||
view.lineNumbers(),
|
||||
view.highlightActiveLineGutter(),
|
||||
view.highlightSpecialChars(),
|
||||
commands.history(),
|
||||
language.foldGutter(),
|
||||
view.drawSelection(),
|
||||
view.dropCursor(),
|
||||
state.EditorState.allowMultipleSelections.of(true),
|
||||
language.indentOnInput(),
|
||||
language.syntaxHighlighting(language.defaultHighlightStyle, { fallback: true }),
|
||||
language.bracketMatching(),
|
||||
autocomplete.closeBrackets(),
|
||||
autocomplete.autocompletion(),
|
||||
view.rectangularSelection(),
|
||||
view.crosshairCursor(),
|
||||
view.highlightActiveLine(),
|
||||
search.highlightSelectionMatches(),
|
||||
view.keymap.of([
|
||||
...autocomplete.closeBracketsKeymap,
|
||||
...commands.defaultKeymap,
|
||||
...search.searchKeymap,
|
||||
...commands.historyKeymap,
|
||||
...language.foldKeymap,
|
||||
...autocomplete.completionKeymap,
|
||||
...lint.lintKeymap
|
||||
])
|
||||
])();
|
||||
/**
|
||||
A minimal set of extensions to create a functional editor. Only
|
||||
includes [the default keymap](https://codemirror.net/6/docs/ref/#commands.defaultKeymap), [undo
|
||||
history](https://codemirror.net/6/docs/ref/#commands.history), [special character
|
||||
highlighting](https://codemirror.net/6/docs/ref/#view.highlightSpecialChars), [custom selection
|
||||
drawing](https://codemirror.net/6/docs/ref/#view.drawSelection), and [default highlight
|
||||
style](https://codemirror.net/6/docs/ref/#language.defaultHighlightStyle).
|
||||
*/
|
||||
const minimalSetup = (() => [
|
||||
view.highlightSpecialChars(),
|
||||
commands.history(),
|
||||
view.drawSelection(),
|
||||
language.syntaxHighlighting(language.defaultHighlightStyle, { fallback: true }),
|
||||
view.keymap.of([
|
||||
...commands.defaultKeymap,
|
||||
...commands.historyKeymap,
|
||||
])
|
||||
])();
|
||||
|
||||
Object.defineProperty(exports, 'EditorView', {
|
||||
enumerable: true,
|
||||
get: function () { return view.EditorView; }
|
||||
});
|
||||
exports.basicSetup = basicSetup;
|
||||
exports.minimalSetup = minimalSetup;
|
||||
52
node_modules/codemirror/dist/index.d.ts
generated
vendored
Normal file
52
node_modules/codemirror/dist/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
import { Extension } from '@codemirror/state';
|
||||
export { EditorView } from '@codemirror/view';
|
||||
|
||||
/**
|
||||
This is an extension value that just pulls together a number of
|
||||
extensions that you might want in a basic editor. It is meant as a
|
||||
convenient helper to quickly set up CodeMirror without installing
|
||||
and importing a lot of separate packages.
|
||||
|
||||
Specifically, it includes...
|
||||
|
||||
- [the default command bindings](https://codemirror.net/6/docs/ref/#commands.defaultKeymap)
|
||||
- [line numbers](https://codemirror.net/6/docs/ref/#view.lineNumbers)
|
||||
- [special character highlighting](https://codemirror.net/6/docs/ref/#view.highlightSpecialChars)
|
||||
- [the undo history](https://codemirror.net/6/docs/ref/#commands.history)
|
||||
- [a fold gutter](https://codemirror.net/6/docs/ref/#language.foldGutter)
|
||||
- [custom selection drawing](https://codemirror.net/6/docs/ref/#view.drawSelection)
|
||||
- [drop cursor](https://codemirror.net/6/docs/ref/#view.dropCursor)
|
||||
- [multiple selections](https://codemirror.net/6/docs/ref/#state.EditorState^allowMultipleSelections)
|
||||
- [reindentation on input](https://codemirror.net/6/docs/ref/#language.indentOnInput)
|
||||
- [the default highlight style](https://codemirror.net/6/docs/ref/#language.defaultHighlightStyle) (as fallback)
|
||||
- [bracket matching](https://codemirror.net/6/docs/ref/#language.bracketMatching)
|
||||
- [bracket closing](https://codemirror.net/6/docs/ref/#autocomplete.closeBrackets)
|
||||
- [autocompletion](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion)
|
||||
- [rectangular selection](https://codemirror.net/6/docs/ref/#view.rectangularSelection) and [crosshair cursor](https://codemirror.net/6/docs/ref/#view.crosshairCursor)
|
||||
- [active line highlighting](https://codemirror.net/6/docs/ref/#view.highlightActiveLine)
|
||||
- [active line gutter highlighting](https://codemirror.net/6/docs/ref/#view.highlightActiveLineGutter)
|
||||
- [selection match highlighting](https://codemirror.net/6/docs/ref/#search.highlightSelectionMatches)
|
||||
- [search](https://codemirror.net/6/docs/ref/#search.searchKeymap)
|
||||
- [linting](https://codemirror.net/6/docs/ref/#lint.lintKeymap)
|
||||
|
||||
(You'll probably want to add some language package to your setup
|
||||
too.)
|
||||
|
||||
This extension does not allow customization. The idea is that,
|
||||
once you decide you want to configure your editor more precisely,
|
||||
you take this package's source (which is just a bunch of imports
|
||||
and an array literal), copy it into your own code, and adjust it
|
||||
as desired.
|
||||
*/
|
||||
declare const basicSetup: Extension;
|
||||
/**
|
||||
A minimal set of extensions to create a functional editor. Only
|
||||
includes [the default keymap](https://codemirror.net/6/docs/ref/#commands.defaultKeymap), [undo
|
||||
history](https://codemirror.net/6/docs/ref/#commands.history), [special character
|
||||
highlighting](https://codemirror.net/6/docs/ref/#view.highlightSpecialChars), [custom selection
|
||||
drawing](https://codemirror.net/6/docs/ref/#view.drawSelection), and [default highlight
|
||||
style](https://codemirror.net/6/docs/ref/#language.defaultHighlightStyle).
|
||||
*/
|
||||
declare const minimalSetup: Extension;
|
||||
|
||||
export { basicSetup, minimalSetup };
|
||||
96
node_modules/codemirror/dist/index.js
generated
vendored
Normal file
96
node_modules/codemirror/dist/index.js
generated
vendored
Normal file
@ -0,0 +1,96 @@
|
||||
import { lineNumbers, highlightActiveLineGutter, highlightSpecialChars, drawSelection, dropCursor, rectangularSelection, crosshairCursor, highlightActiveLine, keymap } from '@codemirror/view';
|
||||
export { EditorView } from '@codemirror/view';
|
||||
import { EditorState } from '@codemirror/state';
|
||||
import { foldGutter, indentOnInput, syntaxHighlighting, defaultHighlightStyle, bracketMatching, foldKeymap } from '@codemirror/language';
|
||||
import { history, defaultKeymap, historyKeymap } from '@codemirror/commands';
|
||||
import { highlightSelectionMatches, searchKeymap } from '@codemirror/search';
|
||||
import { closeBrackets, autocompletion, closeBracketsKeymap, completionKeymap } from '@codemirror/autocomplete';
|
||||
import { lintKeymap } from '@codemirror/lint';
|
||||
|
||||
// (The superfluous function calls around the list of extensions work
|
||||
// around current limitations in tree-shaking software.)
|
||||
/**
|
||||
This is an extension value that just pulls together a number of
|
||||
extensions that you might want in a basic editor. It is meant as a
|
||||
convenient helper to quickly set up CodeMirror without installing
|
||||
and importing a lot of separate packages.
|
||||
|
||||
Specifically, it includes...
|
||||
|
||||
- [the default command bindings](https://codemirror.net/6/docs/ref/#commands.defaultKeymap)
|
||||
- [line numbers](https://codemirror.net/6/docs/ref/#view.lineNumbers)
|
||||
- [special character highlighting](https://codemirror.net/6/docs/ref/#view.highlightSpecialChars)
|
||||
- [the undo history](https://codemirror.net/6/docs/ref/#commands.history)
|
||||
- [a fold gutter](https://codemirror.net/6/docs/ref/#language.foldGutter)
|
||||
- [custom selection drawing](https://codemirror.net/6/docs/ref/#view.drawSelection)
|
||||
- [drop cursor](https://codemirror.net/6/docs/ref/#view.dropCursor)
|
||||
- [multiple selections](https://codemirror.net/6/docs/ref/#state.EditorState^allowMultipleSelections)
|
||||
- [reindentation on input](https://codemirror.net/6/docs/ref/#language.indentOnInput)
|
||||
- [the default highlight style](https://codemirror.net/6/docs/ref/#language.defaultHighlightStyle) (as fallback)
|
||||
- [bracket matching](https://codemirror.net/6/docs/ref/#language.bracketMatching)
|
||||
- [bracket closing](https://codemirror.net/6/docs/ref/#autocomplete.closeBrackets)
|
||||
- [autocompletion](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion)
|
||||
- [rectangular selection](https://codemirror.net/6/docs/ref/#view.rectangularSelection) and [crosshair cursor](https://codemirror.net/6/docs/ref/#view.crosshairCursor)
|
||||
- [active line highlighting](https://codemirror.net/6/docs/ref/#view.highlightActiveLine)
|
||||
- [active line gutter highlighting](https://codemirror.net/6/docs/ref/#view.highlightActiveLineGutter)
|
||||
- [selection match highlighting](https://codemirror.net/6/docs/ref/#search.highlightSelectionMatches)
|
||||
- [search](https://codemirror.net/6/docs/ref/#search.searchKeymap)
|
||||
- [linting](https://codemirror.net/6/docs/ref/#lint.lintKeymap)
|
||||
|
||||
(You'll probably want to add some language package to your setup
|
||||
too.)
|
||||
|
||||
This extension does not allow customization. The idea is that,
|
||||
once you decide you want to configure your editor more precisely,
|
||||
you take this package's source (which is just a bunch of imports
|
||||
and an array literal), copy it into your own code, and adjust it
|
||||
as desired.
|
||||
*/
|
||||
const basicSetup = /*@__PURE__*/(() => [
|
||||
lineNumbers(),
|
||||
highlightActiveLineGutter(),
|
||||
highlightSpecialChars(),
|
||||
history(),
|
||||
foldGutter(),
|
||||
drawSelection(),
|
||||
dropCursor(),
|
||||
EditorState.allowMultipleSelections.of(true),
|
||||
indentOnInput(),
|
||||
syntaxHighlighting(defaultHighlightStyle, { fallback: true }),
|
||||
bracketMatching(),
|
||||
closeBrackets(),
|
||||
autocompletion(),
|
||||
rectangularSelection(),
|
||||
crosshairCursor(),
|
||||
highlightActiveLine(),
|
||||
highlightSelectionMatches(),
|
||||
keymap.of([
|
||||
...closeBracketsKeymap,
|
||||
...defaultKeymap,
|
||||
...searchKeymap,
|
||||
...historyKeymap,
|
||||
...foldKeymap,
|
||||
...completionKeymap,
|
||||
...lintKeymap
|
||||
])
|
||||
])();
|
||||
/**
|
||||
A minimal set of extensions to create a functional editor. Only
|
||||
includes [the default keymap](https://codemirror.net/6/docs/ref/#commands.defaultKeymap), [undo
|
||||
history](https://codemirror.net/6/docs/ref/#commands.history), [special character
|
||||
highlighting](https://codemirror.net/6/docs/ref/#view.highlightSpecialChars), [custom selection
|
||||
drawing](https://codemirror.net/6/docs/ref/#view.drawSelection), and [default highlight
|
||||
style](https://codemirror.net/6/docs/ref/#language.defaultHighlightStyle).
|
||||
*/
|
||||
const minimalSetup = /*@__PURE__*/(() => [
|
||||
highlightSpecialChars(),
|
||||
history(),
|
||||
drawSelection(),
|
||||
syntaxHighlighting(defaultHighlightStyle, { fallback: true }),
|
||||
keymap.of([
|
||||
...defaultKeymap,
|
||||
...historyKeymap,
|
||||
])
|
||||
])();
|
||||
|
||||
export { basicSetup, minimalSetup };
|
||||
44
node_modules/codemirror/package.json
generated
vendored
Normal file
44
node_modules/codemirror/package.json
generated
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"name": "codemirror",
|
||||
"version": "6.0.1",
|
||||
"description": "Basic configuration for the CodeMirror code editor",
|
||||
"scripts": {
|
||||
"test": "cm-runtests",
|
||||
"prepare": "cm-buildhelper src/codemirror.ts"
|
||||
},
|
||||
"keywords": [
|
||||
"editor",
|
||||
"code"
|
||||
],
|
||||
"author": {
|
||||
"name": "Marijn Haverbeke",
|
||||
"email": "marijnh@gmail.com",
|
||||
"url": "http://marijnhaverbeke.nl"
|
||||
},
|
||||
"type": "module",
|
||||
"main": "dist/index.cjs",
|
||||
"exports": {
|
||||
"import": "./dist/index.js",
|
||||
"require": "./dist/index.cjs"
|
||||
},
|
||||
"types": "dist/index.d.ts",
|
||||
"module": "dist/index.js",
|
||||
"sideEffects": false,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@codemirror/autocomplete": "^6.0.0",
|
||||
"@codemirror/commands": "^6.0.0",
|
||||
"@codemirror/language": "^6.0.0",
|
||||
"@codemirror/lint": "^6.0.0",
|
||||
"@codemirror/search": "^6.0.0",
|
||||
"@codemirror/state": "^6.0.0",
|
||||
"@codemirror/view": "^6.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@codemirror/buildhelper": "^0.1.5"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/codemirror/basic-setup.git"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user