@kerebron/extension-tables 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/README.md +8 -4
- package/esm/utilities/columnResizing.d.ts +2 -2
- package/esm/utilities/columnResizing.d.ts.map +1 -1
- package/esm/utilities/fixTables.d.ts +4 -2
- package/esm/utilities/fixTables.d.ts.map +1 -1
- package/esm/utilities/input.d.ts +1 -1
- package/esm/utilities/input.d.ts.map +1 -1
- package/esm/utilities/util.d.ts +2 -2
- package/esm/utilities/util.d.ts.map +1 -1
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
# Kerebron - Prosemirror based online editor kit
|
|
2
2
|
|
|
3
|
-
Using vanilla Prosemirror modules is often impossible because of
|
|
3
|
+
Using vanilla Prosemirror modules is often impossible because of
|
|
4
|
+
incompatibilities.
|
|
4
5
|
|
|
5
|
-
Kerebron forks several prosemirror projects into one monorepo in order to keep
|
|
6
|
+
Kerebron forks several prosemirror projects into one monorepo in order to keep
|
|
7
|
+
them in sync.
|
|
6
8
|
|
|
7
|
-
Project is inspired on https://tiptap.dev/, but instead of building wrapper
|
|
9
|
+
Project is inspired on https://tiptap.dev/, but instead of building wrapper
|
|
10
|
+
around a wrapper it borrows concept of extension and command manager.
|
|
8
11
|
|
|
9
|
-
It has simplified tooling (deno), fewer dependencies and resulting in lower
|
|
12
|
+
It has simplified tooling (deno), fewer dependencies and resulting in lower
|
|
13
|
+
number of output npm modules.
|
|
10
14
|
|
|
11
15
|
**Work in progress**
|
|
12
16
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Node as ProsemirrorNode } from 'prosemirror-model';
|
|
2
|
-
import { EditorState, Plugin, Transaction } from 'prosemirror-state';
|
|
2
|
+
import { EditorState, Plugin, PluginKey, Transaction } from 'prosemirror-state';
|
|
3
3
|
import { DecorationSet, EditorView, NodeView } from 'prosemirror-view';
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare const columnResizingPluginKey:
|
|
7
|
+
export declare const columnResizingPluginKey: PluginKey<ResizeState>;
|
|
8
8
|
/**
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columnResizing.d.ts","sourceRoot":"","sources":["../../src/utilities/columnResizing.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,IAAI,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"columnResizing.d.ts","sourceRoot":"","sources":["../../src/utilities/columnResizing.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,IAAI,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAEL,aAAa,EACb,UAAU,EACV,QAAQ,EACT,MAAM,kBAAkB,CAAC;AAM1B;;GAEG;AACH,eAAO,MAAM,uBAAuB,wBAEnC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;OAIG;IACH,IAAI,CAAC,EACD,CAAC,KACD,IAAI,EAAE,eAAe,EACrB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,UAAU,KACb,QAAQ,CAAC,GACZ,IAAI,CAAC;CACV,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9D;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAC7B,WAAe,EACf,YAAiB,EACjB,mBAAyB,EACzB,IAAgB,EAChB,mBAA0B,GAC3B,GAAE,qBAA0B,GAAG,MAAM,CAiDrC;AAED;;GAEG;AACH,qBAAa,WAAW;IAEb,YAAY,EAAE,MAAM;IACpB,QAAQ,EAAE,QAAQ,GAAG,KAAK;gBAD1B,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,QAAQ,GAAG,KAAK;IAGnC,KAAK,CAAC,EAAE,EAAE,WAAW,GAAG,WAAW;CAkBpC;AA4PD,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,WAAW,EAClB,IAAI,EAAE,MAAM,GACX,aAAa,CAwCf"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Node } from 'prosemirror-model';
|
|
2
|
-
import { EditorState, Transaction } from 'prosemirror-state';
|
|
2
|
+
import { EditorState, PluginKey, Transaction } from 'prosemirror-state';
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
|
-
export declare const fixTablesKey:
|
|
6
|
+
export declare const fixTablesKey: PluginKey<{
|
|
7
|
+
fixTables: boolean;
|
|
8
|
+
}>;
|
|
7
9
|
/**
|
|
8
10
|
* Inspect all tables in the given state's document and return a
|
|
9
11
|
* transaction that fixes them, if necessary. If `oldState` was
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fixTables.d.ts","sourceRoot":"","sources":["../../src/utilities/fixTables.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"fixTables.d.ts","sourceRoot":"","sources":["../../src/utilities/fixTables.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKxE;;GAEG;AACH,eAAO,MAAM,YAAY;eAA8B,OAAO;EAAiB,CAAC;AAkChF;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CACvB,KAAK,EAAE,WAAW,EAClB,QAAQ,CAAC,EAAE,WAAW,GACrB,WAAW,GAAG,SAAS,CAYzB;AAID,wBAAgB,QAAQ,CACtB,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,MAAM,EAChB,EAAE,EAAE,WAAW,GAAG,SAAS,GAC1B,WAAW,GAAG,SAAS,CA0EzB"}
|
package/esm/utilities/input.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/utilities/input.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyB,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EACL,OAAO,EAKR,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAe9C,KAAK,IAAI,GAAG,OAAO,GAAG,MAAM,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AAE/B,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/utilities/input.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyB,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EACL,OAAO,EAKR,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAe9C,KAAK,IAAI,GAAG,OAAO,GAAG,MAAM,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AAE/B,eAAO,MAAM,aAAa,4BAmCpB,aAAa,YApBjB,CAAC;AAYH;;GAEG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,SAAS,GAAG,OAAO,CA+BzD;AAyBD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAMxE;AAED;;GAEG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,UAAU,EAChB,CAAC,EAAE,cAAc,EACjB,KAAK,EAAE,KAAK,GACX,OAAO,CAuCT;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,UAAU,EAChB,UAAU,EAAE,UAAU,GACrB,IAAI,CAqEN"}
|
package/esm/utilities/util.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorState } from 'prosemirror-state';
|
|
1
|
+
import { EditorState, PluginKey } from 'prosemirror-state';
|
|
2
2
|
import { Attrs, Node, ResolvedPos } from 'prosemirror-model';
|
|
3
3
|
import { Rect, TableMap } from './TableMap.js';
|
|
4
4
|
/**
|
|
@@ -16,7 +16,7 @@ export interface CellAttrs {
|
|
|
16
16
|
/**
|
|
17
17
|
* @public
|
|
18
18
|
*/
|
|
19
|
-
export declare const tableEditingKey:
|
|
19
|
+
export declare const tableEditingKey: PluginKey<number>;
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/utilities/util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/utilities/util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAiB,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE1E,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAG7D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE/C;;GAEG;AACH,MAA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BAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,SAAI,GAAG,SAAS,CAS7E;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,SAAI,GAAG,KAAK,CAOtE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,QAAQ,EACb,KAAK,EAAE,IAAI,EACX,GAAG,EAAE,MAAM,GACV,OAAO,CAQT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kerebron/extension-tables",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"module": "./esm/ExtensionTables.js",
|
|
6
6
|
"exports": {
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
+
"prosemirror-keymap": "1.2.2",
|
|
25
|
+
"prosemirror-model": "1.24.1",
|
|
26
|
+
"prosemirror-state": "1.4.3",
|
|
27
|
+
"prosemirror-transform": "1.10.3",
|
|
28
|
+
"prosemirror-view": "1.33.6",
|
|
24
29
|
"@deno/shim-deno": "~0.18.0"
|
|
25
30
|
},
|
|
26
31
|
"devDependencies": {
|