@dou-ui/flow 0.1.0-alpha.14 → 0.1.0-alpha.15

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.
@@ -22,6 +22,13 @@ export interface FlowHistoryHandler {
22
22
  redo: () => boolean;
23
23
  canUndo: () => boolean;
24
24
  canRedo: () => boolean;
25
+ /**
26
+ * Forget the changes of `group` not yet undone, e.g. a drag cancelled with
27
+ * Escape: the editor has already put them back, outside the history.
28
+ */
29
+ drop?: (group: string) => void;
30
+ /** A gesture ended (a drag, a resize): the next change starts a new undo step. */
31
+ close?: () => void;
25
32
  }
26
33
  /** A press on the editor that an extension may take over, e.g. a drawing tool. */
27
34
  export interface FlowPress {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dou-ui/flow",
3
- "version": "0.1.0-alpha.14",
3
+ "version": "0.1.0-alpha.15",
4
4
  "description": "DouUI 的流程编辑器:在无限画布上拖动节点、连接端口",
5
5
  "keywords": [
6
6
  "vue",
@@ -54,7 +54,7 @@
54
54
  "build": "vite build && vue-tsc -p tsconfig.build.json && bun scripts/build-style.ts"
55
55
  },
56
56
  "peerDependencies": {
57
- "dou-ui": "0.1.0-alpha.14",
57
+ "dou-ui": "0.1.0-alpha.15",
58
58
  "vue": "^3.5.0",
59
59
  "yjs": "^13.6.0"
60
60
  },
@@ -64,7 +64,7 @@
64
64
  }
65
65
  },
66
66
  "dependencies": {
67
- "@dou-ui/icons": "0.1.0-alpha.14"
67
+ "@dou-ui/icons": "0.1.0-alpha.15"
68
68
  },
69
69
  "devDependencies": {
70
70
  "y-protocols": "^1.0.7",