@kerebron/extension-codemirror 0.0.1 → 0.0.2
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 +2 -2
- package/esm/NodeCodeMirror.d.ts.map +1 -1
- package/esm/utils.d.ts +2 -2
- package/esm/utils.d.ts.map +1 -1
- package/package.json +8 -1
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kerebron/extension-codemirror",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"module": "./esm/ExtensionCodeMirror.js",
|
|
6
6
|
"exports": {
|
|
@@ -11,6 +11,13 @@
|
|
|
11
11
|
"import": "./esm/NodeDocumentCode.js"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"lib0": "0.2.42",
|
|
16
|
+
"prosemirror-model": "1.24.1",
|
|
17
|
+
"prosemirror-state": "1.4.3",
|
|
18
|
+
"prosemirror-view": "1.33.6",
|
|
19
|
+
"y-protocols": "1.0.6"
|
|
20
|
+
},
|
|
14
21
|
"devDependencies": {
|
|
15
22
|
"@types/node": "^20.9.0"
|
|
16
23
|
},
|