editate 0.6.23 → 0.6.25
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 +1 -0
- package/lib/editor.d.ts +4 -2
- package/lib/index.cjs +122 -98
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +160 -134
- package/lib/index.js.map +1 -1
- package/lib/plugins/history.d.ts +4 -0
- package/lib/plugins/index.d.ts +1 -1
- package/lib/plugins/transfer/internalTransfer.d.ts +6 -1
- package/package.json +3 -2
package/lib/plugins/history.d.ts
CHANGED
|
@@ -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;
|
package/lib/plugins/index.d.ts
CHANGED
|
@@ -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,5 +1,10 @@
|
|
|
1
1
|
import { Editor } from '../../editor.js';
|
|
2
2
|
/**
|
|
3
3
|
* A plugin to handle copying / pasting between editor instances
|
|
4
|
+
*
|
|
5
|
+
* @param options.mime A MIME type to store the copied fragment in clipboard. Give an app specific one if the schema is not shared with other editate based apps.
|
|
6
|
+
* @defaultValue `"application/x-editate-editor"`
|
|
4
7
|
*/
|
|
5
|
-
export declare function internalTransferPlugin(editor: Editor
|
|
8
|
+
export declare function internalTransferPlugin(editor: Editor, options?: {
|
|
9
|
+
mime?: string;
|
|
10
|
+
}): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "editate",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.25",
|
|
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",
|
|
@@ -104,7 +104,8 @@
|
|
|
104
104
|
"angular",
|
|
105
105
|
"preact",
|
|
106
106
|
"alpine",
|
|
107
|
-
"marko"
|
|
107
|
+
"marko",
|
|
108
|
+
"octane"
|
|
108
109
|
],
|
|
109
110
|
"author": "inokawa <stratoooo-taster@yahoo.co.jp> (https://github.com/inokawa/)",
|
|
110
111
|
"license": "MIT",
|