@coldsmirk/inkstone-codemirror 0.14.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/dist/index.d.ts +2 -16
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { Extension, StateField } from "@codemirror/state";
|
|
|
2
2
|
import { EditorView } from "@codemirror/view";
|
|
3
3
|
import { LanguageSupport } from "@codemirror/language";
|
|
4
4
|
import { DirectMergeConfig, MergeConfig, MergeConfig as MergeConfig$1, MergeView, MergeView as MergeView$1 } from "@codemirror/merge";
|
|
5
|
-
|
|
6
5
|
//#region src/context.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* A node in the context shape. `ref` is a lazy pointer into {@link IrSchema.defs} (deref at use).
|
|
@@ -141,13 +140,7 @@ declare class ControlledEditorHost {
|
|
|
141
140
|
private readonly compartment;
|
|
142
141
|
private silent;
|
|
143
142
|
readonly view: EditorView;
|
|
144
|
-
constructor({
|
|
145
|
-
parent,
|
|
146
|
-
doc,
|
|
147
|
-
onChange,
|
|
148
|
-
extensions,
|
|
149
|
-
dynamicExtensions
|
|
150
|
-
}: ControlledEditorOptions);
|
|
143
|
+
constructor({ parent, doc, onChange, extensions, dynamicExtensions }: ControlledEditorOptions);
|
|
151
144
|
/**
|
|
152
145
|
* Reconcile an externally-changed value into the live document without resetting the caret.
|
|
153
146
|
* No-op when the document already matches; the write never re-enters `onChange`.
|
|
@@ -209,14 +202,7 @@ interface DocumentExtensionsOptions {
|
|
|
209
202
|
* completion UI, and the merged default keymap. This is the assembly every hand-built
|
|
210
203
|
* CodeMirror host repeats; language support and theming stay with the caller.
|
|
211
204
|
*/
|
|
212
|
-
declare function documentExtensions({
|
|
213
|
-
placeholder,
|
|
214
|
-
lineWrapping,
|
|
215
|
-
showLineNumbers,
|
|
216
|
-
folding,
|
|
217
|
-
spellcheck,
|
|
218
|
-
search
|
|
219
|
-
}?: DocumentExtensionsOptions): Extension[];
|
|
205
|
+
declare function documentExtensions({ placeholder, lineWrapping, showLineNumbers, folding, spellcheck, search }?: DocumentExtensionsOptions): Extension[];
|
|
220
206
|
//#endregion
|
|
221
207
|
//#region src/languages.d.ts
|
|
222
208
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coldsmirk/inkstone-codemirror",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Framework-agnostic CodeMirror 6 plumbing: a controlled editor host (create-once, external-value reconcile, in-place theme swap), the standard document extension bundle, and the editors' catppuccin theming.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"codemirror",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@codemirror/lang-cpp": "^6.0.3",
|
|
41
41
|
"@codemirror/lang-css": "^6.3.1",
|
|
42
42
|
"@codemirror/lang-go": "^6.0.1",
|
|
43
|
-
"@codemirror/lang-html": "^6.4.
|
|
43
|
+
"@codemirror/lang-html": "^6.4.12",
|
|
44
44
|
"@codemirror/lang-java": "^6.0.2",
|
|
45
45
|
"@codemirror/lang-javascript": "^6.2.5",
|
|
46
46
|
"@codemirror/lang-jinja": "^6.0.1",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@codemirror/lang-less": "^6.0.2",
|
|
49
49
|
"@codemirror/lang-lezer": "^6.0.2",
|
|
50
50
|
"@codemirror/lang-liquid": "^6.3.2",
|
|
51
|
-
"@codemirror/lang-markdown": "^6.5.
|
|
51
|
+
"@codemirror/lang-markdown": "^6.5.2",
|
|
52
52
|
"@codemirror/lang-php": "^6.0.2",
|
|
53
53
|
"@codemirror/lang-python": "^6.2.1",
|
|
54
54
|
"@codemirror/lang-rust": "^6.0.2",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@codemirror/lint": "^6.9.7",
|
|
63
63
|
"@codemirror/merge": "^6.12.2",
|
|
64
64
|
"@lezer/common": "^1.5.2",
|
|
65
|
-
"@coldsmirk/inkstone-core": "^0.
|
|
65
|
+
"@coldsmirk/inkstone-core": "^0.16.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@codemirror/autocomplete": "^6.20.3",
|