editate 0.6.22 → 0.6.24

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.
@@ -15,3 +15,7 @@ export declare function Undoable(editor: Editor): boolean;
15
15
  * Check if the history can be redone.
16
16
  */
17
17
  export declare function Redoable(editor: Editor): boolean;
18
+ /**
19
+ * Clears the history and makes the current document its oldest state.
20
+ */
21
+ export declare function ClearHistory(editor: Editor): void;
@@ -2,7 +2,7 @@ export * from './transfer/index.js';
2
2
  export { blockLockPlugin, LockedInRange } from './blockLock.js';
3
3
  export { debugPlugin } from './debug.js';
4
4
  export { keymapPlugin } from './keymap.js';
5
- export { Undo, Redo, Undoable, Redoable } from './history.js';
5
+ export { Undo, Redo, Undoable, Redoable, ClearHistory } from './history.js';
6
6
  export { scrollToSelectionPlugin } from './scrollToSelection.js';
7
7
  export { selectionRectPlugin } from './selectionRect.js';
8
8
  export { singlelinePlugin } from './singleline.js';
@@ -1,4 +1,4 @@
1
1
  export { fileTransferPlugin } from './fileTransfer.js';
2
2
  export { plainTransferPlugin } from './plainTransfer.js';
3
3
  export { htmlTransferPlugin } from './htmlTransfer.js';
4
- export { internalTranferPlugin } from './internalTransfer.js';
4
+ export { internalTransferPlugin } from './internalTransfer.js';
@@ -2,4 +2,4 @@ import { Editor } from '../../editor.js';
2
2
  /**
3
3
  * A plugin to handle copying / pasting between editor instances
4
4
  */
5
- export declare function internalTranferPlugin(editor: Editor): void;
5
+ export declare function internalTransferPlugin(editor: Editor): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "editate",
3
- "version": "0.6.22",
3
+ "version": "0.6.24",
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",
@@ -51,7 +51,7 @@
51
51
  "ai": "^7.0.42",
52
52
  "diff": "^9.0.0",
53
53
  "esbuild": "^0.28.0",
54
- "jsdom": "^29.1.1",
54
+ "jsdom": "^30.0.0",
55
55
  "kuromojin": "^3.0.1",
56
56
  "linkifyjs": "^4.3.1",
57
57
  "node-emoji": "^2.2.0",