@dou-ui/editor 0.1.0-alpha.14 → 0.1.0-alpha.16

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.
Files changed (47) hide show
  1. package/dist/collaboration/binding.js +32 -10
  2. package/dist/collaboration/binding.js.map +1 -1
  3. package/dist/collaboration/index.js +3 -0
  4. package/dist/collaboration/index.js.map +1 -1
  5. package/dist/collaboration/merged-props.js +152 -0
  6. package/dist/collaboration/merged-props.js.map +1 -0
  7. package/dist/components/block-handle.js.map +1 -1
  8. package/dist/components/block-handle.vue_vue_type_script_setup_true_lang.js +55 -5
  9. package/dist/components/block-handle.vue_vue_type_script_setup_true_lang.js.map +1 -1
  10. package/dist/core/extension.js.map +1 -1
  11. package/dist/core/model.js +2 -1
  12. package/dist/core/model.js.map +1 -1
  13. package/dist/core/transaction.js +7 -1
  14. package/dist/core/transaction.js.map +1 -1
  15. package/dist/define-block.js +2 -1
  16. package/dist/define-block.js.map +1 -1
  17. package/dist/document.js +20 -1
  18. package/dist/document.js.map +1 -1
  19. package/dist/dom.js +12 -1
  20. package/dist/dom.js.map +1 -1
  21. package/dist/editor.vue_vue_type_script_setup_true_lang.js.map +1 -1
  22. package/dist/editor2.js.map +1 -1
  23. package/dist/flow/board-block.js +6 -0
  24. package/dist/flow/board-block.js.map +1 -0
  25. package/dist/flow/board-block.vue_vue_type_script_setup_true_lang.js +598 -0
  26. package/dist/flow/board-block.vue_vue_type_script_setup_true_lang.js.map +1 -0
  27. package/dist/flow/board.js +102 -0
  28. package/dist/flow/board.js.map +1 -0
  29. package/dist/flow/index.js +170 -0
  30. package/dist/flow/index.js.map +1 -0
  31. package/dist/locale.js +48 -6
  32. package/dist/locale.js.map +1 -1
  33. package/dist/style.css +1 -1
  34. package/dist/style.js +2 -0
  35. package/dist/types/collaboration/binding.d.ts +4 -0
  36. package/dist/types/collaboration/merged-props.d.ts +20 -0
  37. package/dist/types/core/extension.d.ts +5 -2
  38. package/dist/types/core/transaction.d.ts +6 -0
  39. package/dist/types/document.d.ts +3 -2
  40. package/dist/types/dom.d.ts +7 -0
  41. package/dist/types/editor.vue.d.ts +14 -0
  42. package/dist/types/flow/board-block.vue.d.ts +16 -0
  43. package/dist/types/flow/board.d.ts +40 -0
  44. package/dist/types/flow/index.d.ts +59 -0
  45. package/dist/types/index.d.ts +14 -0
  46. package/dist/types/locale.d.ts +17 -0
  47. package/package.json +14 -5
@@ -51,6 +51,7 @@ export declare const DouEditor: import("dou-ui").WithInstall<import("vue").Defin
51
51
  columns?: string | undefined;
52
52
  attachment?: string | undefined;
53
53
  embed?: string | undefined;
54
+ whiteboard?: string | undefined;
54
55
  } | undefined;
55
56
  hints?: {
56
57
  paragraph?: string | undefined;
@@ -70,6 +71,7 @@ export declare const DouEditor: import("dou-ui").WithInstall<import("vue").Defin
70
71
  columns?: string | undefined;
71
72
  attachment?: string | undefined;
72
73
  embed?: string | undefined;
74
+ whiteboard?: string | undefined;
73
75
  } | undefined;
74
76
  image?: {
75
77
  empty?: string | undefined;
@@ -176,6 +178,18 @@ export declare const DouEditor: import("dou-ui").WithInstall<import("vue").Defin
176
178
  edit?: string | undefined;
177
179
  cancel?: string | undefined;
178
180
  } | undefined;
181
+ board?: {
182
+ empty?: string | undefined;
183
+ start?: string | undefined;
184
+ edit?: string | undefined;
185
+ view?: string | undefined;
186
+ resize?: string | undefined;
187
+ addNode?: string | undefined;
188
+ searchNodes?: string | undefined;
189
+ noNodes?: string | undefined;
190
+ node?: string | undefined;
191
+ emptyFlow?: string | undefined;
192
+ } | undefined;
179
193
  noResults?: string | undefined;
180
194
  addBlock?: string | undefined;
181
195
  dragHandle?: string | undefined;
@@ -22,6 +22,7 @@ export interface EditorMessages {
22
22
  columns: string;
23
23
  attachment: string;
24
24
  embed: string;
25
+ whiteboard: string;
25
26
  };
26
27
  /** Short descriptions in the slash menu. */
27
28
  hints: {
@@ -42,6 +43,7 @@ export interface EditorMessages {
42
43
  columns: string;
43
44
  attachment: string;
44
45
  embed: string;
46
+ whiteboard: string;
45
47
  };
46
48
  /** The image block. */
47
49
  image: {
@@ -165,6 +167,21 @@ export interface EditorMessages {
165
167
  edit: string;
166
168
  cancel: string;
167
169
  };
170
+ /** Blocks holding a whiteboard or a flow (`@dou-ui/editor/flow`). */
171
+ board: {
172
+ empty: string;
173
+ start: string;
174
+ edit: string;
175
+ view: string;
176
+ resize: string;
177
+ /** The button that adds a node to a flow, and the name of the node a flow block offers. */
178
+ addNode: string;
179
+ searchNodes: string;
180
+ noNodes: string;
181
+ node: string;
182
+ /** On an empty flow in the fullscreen editor. */
183
+ emptyFlow: string;
184
+ };
168
185
  noResults: string;
169
186
  addBlock: string;
170
187
  dragHandle: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dou-ui/editor",
3
- "version": "0.1.0-alpha.14",
3
+ "version": "0.1.0-alpha.16",
4
4
  "description": "DouUI 的块编辑器:基于 ProseMirror,文档由可拖动、可转换的块组成",
5
5
  "keywords": [
6
6
  "vue",
@@ -40,6 +40,10 @@
40
40
  "types": "./dist/types/code/index.d.ts",
41
41
  "import": "./dist/code/index.js"
42
42
  },
43
+ "./flow": {
44
+ "types": "./dist/types/flow/index.d.ts",
45
+ "import": "./dist/flow/index.js"
46
+ },
43
47
  "./markdown": {
44
48
  "types": "./dist/types/markdown/index.d.ts",
45
49
  "import": "./dist/markdown/index.js"
@@ -58,8 +62,9 @@
58
62
  "build": "vite build && vue-tsc -p tsconfig.build.json && bun scripts/build-style.ts"
59
63
  },
60
64
  "peerDependencies": {
61
- "@dou-ui/code": "0.1.0-alpha.14",
62
- "dou-ui": "0.1.0-alpha.14",
65
+ "@dou-ui/code": "0.1.0-alpha.16",
66
+ "@dou-ui/flow": "0.1.0-alpha.16",
67
+ "dou-ui": "0.1.0-alpha.16",
63
68
  "vue": "^3.5.0",
64
69
  "yjs": "^13.6.0",
65
70
  "markdown-it": "^14.0.0"
@@ -68,6 +73,9 @@
68
73
  "@dou-ui/code": {
69
74
  "optional": true
70
75
  },
76
+ "@dou-ui/flow": {
77
+ "optional": true
78
+ },
71
79
  "yjs": {
72
80
  "optional": true
73
81
  },
@@ -76,7 +84,7 @@
76
84
  }
77
85
  },
78
86
  "dependencies": {
79
- "@dou-ui/icons": "0.1.0-alpha.14",
87
+ "@dou-ui/icons": "0.1.0-alpha.16",
80
88
  "prosemirror-commands": "^1.7.2",
81
89
  "prosemirror-history": "^1.5.1",
82
90
  "prosemirror-inputrules": "^1.5.1",
@@ -91,7 +99,8 @@
91
99
  "access": "public"
92
100
  },
93
101
  "devDependencies": {
94
- "@dou-ui/code": "0.1.0-alpha.14",
102
+ "@dou-ui/code": "0.1.0-alpha.16",
103
+ "@dou-ui/flow": "0.1.0-alpha.16",
95
104
  "@types/markdown-it": "^14.1.2",
96
105
  "markdown-it": "^14.1.0",
97
106
  "y-protocols": "^1.0.7",