editate 0.6.6 → 0.6.7
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 +4 -2
- package/lib/commands.d.ts +2 -2
- package/lib/doc/edit.d.ts +1 -1
- package/lib/dom/index.d.ts +2 -2
- package/lib/dom/parser.d.ts +6 -1
- package/lib/dom/utils.d.ts +1 -0
- package/lib/editor.d.ts +6 -6
- package/lib/index.cjs +563 -558
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +6 -6
- package/lib/index.js +547 -546
- package/lib/index.js.map +1 -1
- package/lib/keyboard.d.ts +1 -1
- package/lib/plugins/debug.d.ts +1 -1
- package/lib/plugins/history.d.ts +1 -1
- package/lib/plugins/index.d.ts +5 -5
- package/lib/plugins/keymap.d.ts +2 -2
- package/lib/plugins/singleline.d.ts +1 -1
- package/lib/plugins/transfer/fileTransfer.d.ts +2 -2
- package/lib/plugins/transfer/htmlTransfer.d.ts +2 -2
- package/lib/plugins/transfer/index.d.ts +4 -4
- package/lib/plugins/transfer/internalTransfer.d.ts +1 -1
- package/lib/plugins/transfer/plainTransfer.d.ts +2 -2
- package/lib/presets/index.d.ts +2 -2
- package/lib/presets/plain.d.ts +1 -1
- package/package.json +6 -8
package/lib/plugins/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export { debugPlugin } from
|
|
3
|
-
export { keymapPlugin } from
|
|
4
|
-
export { Undo, Redo, Undoable, Redoable } from
|
|
5
|
-
export { singlelinePlugin } from
|
|
1
|
+
export * from './transfer/index.js';
|
|
2
|
+
export { debugPlugin } from './debug.js';
|
|
3
|
+
export { keymapPlugin } from './keymap.js';
|
|
4
|
+
export { Undo, Redo, Undoable, Redoable } from './history.js';
|
|
5
|
+
export { singlelinePlugin } from './singleline.js';
|
package/lib/plugins/keymap.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { Editor } from '../editor.js';
|
|
2
|
+
import { KeyString } from '../keyboard.js';
|
|
3
3
|
export declare function keymapPlugin<K extends KeyString>(editor: Editor, bindings: Record<K, () => void>): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Editor } from '../../editor.js';
|
|
2
|
+
import { DocNode, InferInlineNode, TextNode } from '../../doc/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* A plugin to handle copying / pasting HTML
|
|
5
5
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { fileTransferPlugin } from
|
|
2
|
-
export { plainTransferPlugin } from
|
|
3
|
-
export { htmlTransferPlugin } from
|
|
4
|
-
export { internalTranferPlugin } from
|
|
1
|
+
export { fileTransferPlugin } from './fileTransfer.js';
|
|
2
|
+
export { plainTransferPlugin } from './plainTransfer.js';
|
|
3
|
+
export { htmlTransferPlugin } from './htmlTransfer.js';
|
|
4
|
+
export { internalTranferPlugin } from './internalTransfer.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { DocNode, InferInlineNode } from '../../doc/types.js';
|
|
2
|
+
import { Editor } from '../../editor.js';
|
|
3
3
|
/**
|
|
4
4
|
* A plugin to handle copying / pasting plain text.
|
|
5
5
|
*/
|
package/lib/presets/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createPlainEditor } from
|
|
2
|
-
export type { PlainEditorOptions } from
|
|
1
|
+
export { createPlainEditor } from './plain.js';
|
|
2
|
+
export type { PlainEditorOptions } from './plain.js';
|
package/lib/presets/plain.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "editate",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"description": "An experimental, type-safe, framework agnostic and small (5kB+) contenteditable state manager.",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -19,10 +19,9 @@
|
|
|
19
19
|
],
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"scripts": {
|
|
22
|
-
"build": "
|
|
22
|
+
"build": "vite build",
|
|
23
23
|
"tsc": "tsc -p . --noEmit",
|
|
24
|
-
"test": "vitest --run
|
|
25
|
-
"test:browser": "vitest --run --project=browser",
|
|
24
|
+
"test": "vitest --run",
|
|
26
25
|
"format": "prettier '**/*.{js,ts,jsx,tsx}' --write --cache",
|
|
27
26
|
"format:ci": "prettier '**/*.{js,ts,jsx,tsx}' -l",
|
|
28
27
|
"storybook": "storybook dev -p 6006",
|
|
@@ -38,8 +37,6 @@
|
|
|
38
37
|
},
|
|
39
38
|
"devDependencies": {
|
|
40
39
|
"@playwright/test": "^1.60.0",
|
|
41
|
-
"@rollup/plugin-terser": "1.0.0",
|
|
42
|
-
"@rollup/plugin-typescript": "12.3.0",
|
|
43
40
|
"@size-limit/preset-small-lib": "^12.0.0",
|
|
44
41
|
"@storybook/addon-docs": "^10.4.0",
|
|
45
42
|
"@storybook/react-vite": "^10.4.0",
|
|
@@ -47,9 +44,9 @@
|
|
|
47
44
|
"@textlint/textlint-plugin-text": "^15.0.0",
|
|
48
45
|
"@types/react": "^19.2.0",
|
|
49
46
|
"@types/react-dom": "^19.2.0",
|
|
50
|
-
"@vitest/browser-playwright": "^4.1.6",
|
|
51
47
|
"diff": "^9.0.0",
|
|
52
48
|
"esbuild": "^0.28.0",
|
|
49
|
+
"jsdom": "^29.1.1",
|
|
53
50
|
"kuromojin": "^3.0.1",
|
|
54
51
|
"linkifyjs": "^4.3.1",
|
|
55
52
|
"patch-package": "^8.0.0",
|
|
@@ -62,9 +59,9 @@
|
|
|
62
59
|
"remark-gfm": "^4.0.1",
|
|
63
60
|
"remark-parse": "^11.0.0",
|
|
64
61
|
"rimraf": "6.1.3",
|
|
65
|
-
"rollup": "^4.54.0",
|
|
66
62
|
"size-limit": "^12.0.0",
|
|
67
63
|
"storybook": "^10.4.0",
|
|
64
|
+
"terser": "^5.48.0",
|
|
68
65
|
"textlint-rule-preset-japanese": "^10.0.4",
|
|
69
66
|
"typedoc": "^0.28.0",
|
|
70
67
|
"typedoc-plugin-markdown": "^4.6.3",
|
|
@@ -72,6 +69,7 @@
|
|
|
72
69
|
"unified": "^11.0.5",
|
|
73
70
|
"valibot": "^1.4.0",
|
|
74
71
|
"vite": "^8.0.13",
|
|
72
|
+
"vite-plugin-dts": "^5.0.2",
|
|
75
73
|
"vitest": "^4.1.6"
|
|
76
74
|
},
|
|
77
75
|
"repository": {
|