@pixerate/editor-svelte 0.199.3 → 0.200.0
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,6 +15,8 @@ export interface SvelteHistory extends HistoryState {
|
|
|
15
15
|
mark(): HistoryMark;
|
|
16
16
|
/** Takes back every step since `mark` without leaving redo (Escape-cancel). */
|
|
17
17
|
revertTo(mark: HistoryMark): number;
|
|
18
|
+
/** Removes the steps `match` picks without running them (stale steps). */
|
|
19
|
+
dropSteps(match: (step: HistoryEntry) => boolean): number;
|
|
18
20
|
/** Joins every merged execute into one step until `endGesture`. */
|
|
19
21
|
beginGesture(key: string): void;
|
|
20
22
|
endGesture(): void;
|
|
@@ -46,6 +46,7 @@ export function createHistory(managerOrOptions) {
|
|
|
46
46
|
goTo: (index) => manager.goTo(index),
|
|
47
47
|
mark: () => manager.mark(),
|
|
48
48
|
revertTo: (m) => manager.revertTo(m),
|
|
49
|
+
dropSteps: (match) => manager.dropSteps(match),
|
|
49
50
|
beginGesture: (key) => manager.beginGesture(key),
|
|
50
51
|
endGesture: () => manager.endGesture(),
|
|
51
52
|
subscribe: (run) => manager.subscribe(run),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixerate/editor-svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.200.0",
|
|
4
4
|
"description": "Svelte bindings and prompt/rich-text components for @pixerate/editor",
|
|
5
5
|
"author": "Pixerate",
|
|
6
6
|
"license": "MIT",
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
"**/*.css"
|
|
185
185
|
],
|
|
186
186
|
"dependencies": {
|
|
187
|
-
"@pixerate/editor": "0.
|
|
187
|
+
"@pixerate/editor": "0.270.0"
|
|
188
188
|
},
|
|
189
189
|
"peerDependencies": {
|
|
190
190
|
"@dagrejs/dagre": "^1.1.4",
|