@kerebron/extension-codemirror 0.0.1 → 0.0.3
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/esm/NodeCodeMirror.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Plugin } from 'prosemirror-state';
|
|
1
|
+
import { Plugin, PluginKey } from 'prosemirror-state';
|
|
2
2
|
import type { NodeSpec, NodeType, Schema } from 'prosemirror-model';
|
|
3
3
|
import { Converter, type CoreEditor, Node } from '@kerebron/editor';
|
|
4
4
|
import { type Commands, type CommandShortcuts } from '@kerebron/editor/commands';
|
|
5
5
|
import { type InputRule } from '@kerebron/editor/plugins/input-rules';
|
|
6
|
-
export declare const codeMirrorBlockKey: any
|
|
6
|
+
export declare const codeMirrorBlockKey: PluginKey<any>;
|
|
7
7
|
export declare class NodeCodeMirror extends Node {
|
|
8
8
|
name: string;
|
|
9
9
|
automerge: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeCodeMirror.d.ts","sourceRoot":"","sources":["../src/NodeCodeMirror.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"NodeCodeMirror.d.ts","sourceRoot":"","sources":["../src/NodeCodeMirror.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,EAAE,SAAS,EAAa,MAAM,mBAAmB,CAAC;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,KAAK,UAAU,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,gBAAgB,EAEtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,KAAK,SAAS,EAEf,MAAM,sCAAsC,CAAC;AAQ9C,eAAO,MAAM,kBAAkB,gBAAoC,CAAC;AAoBpE,qBAAa,cAAe,SAAQ,IAAI;IAC7B,IAAI,SAAgB;IAG7B,SAAS;;;;;;;;;;MAMP;IAEO,aAAa,CACpB,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,MAAM,GACb,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC;IAgDnB,WAAW,IAAI,QAAQ;IA0BvB,aAAa,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,EAAE;IAQ1C,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IAUlE,oBAAoB,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAUjD,qBAAqB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE;CAiD7D"}
|
package/esm/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command, EditorState, Transaction } from 'prosemirror-state';
|
|
1
|
+
import { Command, EditorState, TextSelection, Transaction } from 'prosemirror-state';
|
|
2
2
|
import { EditorView as PMEditorView } from 'prosemirror-view';
|
|
3
3
|
import { Node } from 'prosemirror-model';
|
|
4
4
|
import { EditorView } from '@codemirror/view';
|
|
@@ -10,7 +10,7 @@ export declare function computeChange(oldVal: string, newVal: string): {
|
|
|
10
10
|
to: number;
|
|
11
11
|
text: string;
|
|
12
12
|
} | null;
|
|
13
|
-
export declare const asProseMirrorSelection: (pmDoc: Node, cmView: EditorView, getPos: (() => number) | boolean) =>
|
|
13
|
+
export declare const asProseMirrorSelection: (pmDoc: Node, cmView: EditorView, getPos: (() => number) | boolean) => TextSelection;
|
|
14
14
|
export declare const forwardSelection: (cmView: EditorView, pmView: PMEditorView, getPos: (() => number) | boolean) => void;
|
|
15
15
|
export declare const valueChanged: (textUpdate: string, node: Node, getPos: (() => number) | boolean, view: PMEditorView) => void;
|
|
16
16
|
export declare const maybeEscape: (unit: "char" | "line", dir: -1 | 1, cm: EditorView, view: PMEditorView, getPos: boolean | (() => number)) => boolean;
|
package/esm/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,OAAO,EACP,WAAW,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,OAAO,EACP,WAAW,EAEX,aAAa,EACb,WAAW,EACZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAa,MAAM,mBAAmB,CAAC;AAI3D,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE1D,eAAO,MAAM,iBAAiB,eAAe,CAAC;AAM9C,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;SAoB3D;AAED,eAAO,MAAM,sBAAsB,UAC1B,IAAI,UACH,UAAU,UACV,CAAC,MAAM,MAAM,CAAC,GAAG,OAAO,kBAMjC,CAAC;AAEF,eAAO,MAAM,gBAAgB,WACnB,UAAU,UACV,YAAY,UACZ,CAAC,MAAM,MAAM,CAAC,GAAG,OAAO,SAOjC,CAAC;AAEF,eAAO,MAAM,YAAY,eACX,MAAM,QACZ,IAAI,UACF,CAAC,MAAM,MAAM,CAAC,GAAG,OAAO,QAC1B,YAAY,SAenB,CAAC;AAEF,eAAO,MAAM,WAAW,SAChB,MAAM,GAAG,MAAM,OAChB,CAAC,CAAC,GAAG,CAAC,MACP,UAAU,QACR,YAAY,UACV,OAAO,GAAG,CAAC,MAAM,MAAM,CAAC,YAqBjC,CAAC;AAEF,eAAO,MAAM,gBAAgB,WAAY,YAAY,QAAQ,UAAU,YAWtE,CAAC;AAEF,eAAO,MAAM,OAAO,SACZ,MAAM,UACJ,UAAU,YACR,iBAAiB,gBACb,WAAW,kBAQ1B,CAAC;AAcF,eAAO,MAAM,QAAQ,WACX,UAAU,eACL,WAAW,SACjB,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC,kBAOpC,CAAC;AA2BF,eAAO,MAAM,eAAe,UACnB,WAAW,YACR,CAAC,CAAC,EAAE,EAAE,WAAW,KAAK,IAAI,CAAC,GAAG,SAAS,cACrC,MAAM,YA4DnB,CAAC;AAEF,eAAO,MAAM,eAAe,UACnB,WAAW,YACR,CAAC,CAAC,EAAE,EAAE,WAAW,KAAK,IAAI,CAAC,GAAG,SAAS,YAwBlD,CAAC;AAEF,eAAO,MAAM,eAAe,UACnB,WAAW,YACR,CAAC,CAAC,EAAE,EAAE,WAAW,KAAK,IAAI,CAAC,GAAG,SAAS,cACrC,MAAM,YAanB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;CAKlC,CAAC;AAEF,eAAO,MAAM,uBAAuB;iBACF,OAAO;CACxC,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;iBAHM,OAAO;CAMxC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as cmView from '@codemirror/view';
|
|
2
|
+
import * as cmState from '@codemirror/state';
|
|
2
3
|
import { YSyncConfig } from './y-sync.js';
|
|
3
|
-
export declare const yRemoteSelectionsTheme:
|
|
4
|
+
export declare const yRemoteSelectionsTheme: cmState.Extension;
|
|
4
5
|
export declare class YRemoteSelectionsPluginValue {
|
|
5
6
|
conf: YSyncConfig;
|
|
6
7
|
private _listener;
|
|
@@ -10,5 +11,5 @@ export declare class YRemoteSelectionsPluginValue {
|
|
|
10
11
|
destroy(): void;
|
|
11
12
|
update(update: cmView.ViewUpdate): void;
|
|
12
13
|
}
|
|
13
|
-
export declare const yRemoteSelections:
|
|
14
|
+
export declare const yRemoteSelections: cmView.ViewPlugin<YRemoteSelectionsPluginValue>;
|
|
14
15
|
//# sourceMappingURL=y-remote-selections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"y-remote-selections.d.ts","sourceRoot":"","sources":["../src/y-remote-selections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"y-remote-selections.d.ts","sourceRoot":"","sources":["../src/y-remote-selections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAE3C,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAO7C,OAAO,EAAE,WAAW,EAAc,MAAM,aAAa,CAAC;AAEtD,eAAO,MAAM,sBAAsB,mBAuDjC,CAAC;AA8CH,qBAAa,4BAA4B;IACvC,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,CAAC,SAAS,CAQP;IACV,OAAO,CAAC,UAAU,CAA8B;IAChD,WAAW,EAAE,MAAM,CAAC,aAAa,CAAC;gBAEtB,IAAI,EAAE,MAAM,CAAC,UAAU;IAiBnC,OAAO;IAIP,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU;CA8HjC;AAED,eAAO,MAAM,iBAAiB,iDAK7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kerebron/extension-codemirror",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"module": "./esm/ExtensionCodeMirror.js",
|
|
6
6
|
"exports": {
|
|
@@ -11,6 +11,35 @@
|
|
|
11
11
|
"import": "./esm/NodeDocumentCode.js"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@codemirror/autocomplete": "6.18.6",
|
|
16
|
+
"@codemirror/commands": "6.8.1",
|
|
17
|
+
"@codemirror/lang-cpp": "latest",
|
|
18
|
+
"@codemirror/lang-css": "latest",
|
|
19
|
+
"@codemirror/lang-html": "latest",
|
|
20
|
+
"@codemirror/lang-java": "latest",
|
|
21
|
+
"@codemirror/lang-javascript": "6.2.3",
|
|
22
|
+
"@codemirror/lang-json": "latest",
|
|
23
|
+
"@codemirror/lang-lezer": "latest",
|
|
24
|
+
"@codemirror/lang-markdown": "latest",
|
|
25
|
+
"@codemirror/lang-php": "latest",
|
|
26
|
+
"@codemirror/lang-python": "latest",
|
|
27
|
+
"@codemirror/lang-rust": "latest",
|
|
28
|
+
"@codemirror/lang-sql": "latest",
|
|
29
|
+
"@codemirror/lang-wast": "latest",
|
|
30
|
+
"@codemirror/lang-xml": "latest",
|
|
31
|
+
"@codemirror/language": "6.11.0",
|
|
32
|
+
"@codemirror/legacy-modes": "6.5.0",
|
|
33
|
+
"@codemirror/search": "6.5.10",
|
|
34
|
+
"@codemirror/state": "6.5.2",
|
|
35
|
+
"@codemirror/view": "6.36.5",
|
|
36
|
+
"lib0": "0.2.42",
|
|
37
|
+
"prosemirror-model": "1.24.1",
|
|
38
|
+
"prosemirror-state": "1.4.3",
|
|
39
|
+
"prosemirror-view": "1.33.6",
|
|
40
|
+
"thememirror": "2.0.1",
|
|
41
|
+
"y-protocols": "1.0.6"
|
|
42
|
+
},
|
|
14
43
|
"devDependencies": {
|
|
15
44
|
"@types/node": "^20.9.0"
|
|
16
45
|
},
|