@rxflow/workflow 0.0.2-alpha.3 → 0.0.2-alpha.5

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.
@@ -40,8 +40,10 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
40
40
  onNodeDragStart: (event: import("react").MouseEvent<Element, MouseEvent>, node: NodeType, nodes: NodeType[]) => void;
41
41
  onNodeDrag: (event: import("react").MouseEvent<Element, MouseEvent>, node: NodeType, nodes: NodeType[]) => void;
42
42
  onNodeDragStop: (event: import("react").MouseEvent<Element, MouseEvent>, node: NodeType, nodes: NodeType[]) => void;
43
+ children?: import("react").ReactNode;
43
44
  width?: string | number | undefined;
44
45
  height?: string | number | undefined;
46
+ id?: string | undefined;
45
47
  onError?: import("@xyflow/react").OnError | undefined;
46
48
  defaultChecked?: boolean | undefined;
47
49
  defaultValue?: string | number | readonly string[] | undefined;
@@ -51,13 +53,12 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
51
53
  autoCapitalize?: "none" | (string & {}) | "off" | "on" | "sentences" | "words" | "characters" | undefined;
52
54
  autoFocus?: boolean | undefined;
53
55
  className?: string | undefined;
54
- contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
56
+ contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
55
57
  contextMenu?: string | undefined;
56
58
  dir?: string | undefined;
57
59
  draggable?: (boolean | "true" | "false") | undefined;
58
- enterKeyHint?: "search" | "done" | "enter" | "go" | "next" | "previous" | "send" | undefined;
60
+ enterKeyHint?: "search" | "enter" | "done" | "next" | "go" | "previous" | "send" | undefined;
59
61
  hidden?: boolean | undefined;
60
- id?: string | undefined;
61
62
  lang?: string | undefined;
62
63
  nonce?: string | undefined;
63
64
  slot?: string | undefined;
@@ -91,10 +92,10 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
91
92
  security?: string | undefined;
92
93
  unselectable?: "off" | "on" | undefined;
93
94
  popover?: "" | "auto" | "manual" | "hint" | undefined;
94
- popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
95
+ popoverTargetAction?: "hide" | "show" | "toggle" | undefined;
95
96
  popoverTarget?: string | undefined;
96
97
  inert?: boolean | undefined;
97
- inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
98
+ inputMode?: "search" | "none" | "text" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
98
99
  is?: string | undefined;
99
100
  exportparts?: string | undefined;
100
101
  part?: string | undefined;
@@ -110,12 +111,12 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
110
111
  "aria-colindextext"?: string | undefined;
111
112
  "aria-colspan"?: number | undefined;
112
113
  "aria-controls"?: string | undefined;
113
- "aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
114
+ "aria-current"?: boolean | "location" | "step" | "date" | "time" | "page" | "true" | "false" | undefined;
114
115
  "aria-describedby"?: string | undefined;
115
116
  "aria-description"?: string | undefined;
116
117
  "aria-details"?: string | undefined;
117
118
  "aria-disabled"?: (boolean | "true" | "false") | undefined;
118
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
119
+ "aria-dropeffect"?: "link" | "none" | "popup" | "move" | "copy" | "execute" | undefined;
119
120
  "aria-errormessage"?: string | undefined;
120
121
  "aria-expanded"?: (boolean | "true" | "false") | undefined;
121
122
  "aria-flowto"?: string | undefined;
@@ -137,7 +138,7 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
137
138
  "aria-posinset"?: number | undefined;
138
139
  "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
139
140
  "aria-readonly"?: (boolean | "true" | "false") | undefined;
140
- "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
141
+ "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
141
142
  "aria-required"?: (boolean | "true" | "false") | undefined;
142
143
  "aria-roledescription"?: string | undefined;
143
144
  "aria-rowcount"?: number | undefined;
@@ -151,7 +152,6 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
151
152
  "aria-valuemin"?: number | undefined;
152
153
  "aria-valuenow"?: number | undefined;
153
154
  "aria-valuetext"?: string | undefined;
154
- children?: import("react").ReactNode;
155
155
  dangerouslySetInnerHTML?: {
156
156
  __html: string | TrustedHTML;
157
157
  } | undefined;
@@ -433,6 +433,7 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
433
433
  'minimap.ariaLabel': string;
434
434
  'handle.ariaLabel': string;
435
435
  }> | undefined;
436
+ readOnly?: boolean | undefined;
436
437
  background?: string | undefined;
437
438
  theme?: import("@rxflow/base").BaseThemeConfig | undefined;
438
439
  showControls?: boolean | undefined;
@@ -455,7 +456,6 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
455
456
  plugins?: {
456
457
  scroller?: false | import("packages/base/src/plugins/scrollbar/types").ScrollbarPluginOptions | undefined;
457
458
  } | undefined;
458
- readOnly?: boolean | undefined;
459
459
  onZoomIn?: (() => void) | undefined;
460
460
  onZoomOut?: (() => void) | undefined;
461
461
  onFitView?: (() => void) | undefined;
@@ -40,8 +40,10 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
40
40
  onNodeDragStart: (event: import("react").MouseEvent<Element, MouseEvent>, node: NodeType, nodes: NodeType[]) => void;
41
41
  onNodeDrag: (event: import("react").MouseEvent<Element, MouseEvent>, node: NodeType, nodes: NodeType[]) => void;
42
42
  onNodeDragStop: (event: import("react").MouseEvent<Element, MouseEvent>, node: NodeType, nodes: NodeType[]) => void;
43
+ children?: import("react").ReactNode;
43
44
  width?: string | number | undefined;
44
45
  height?: string | number | undefined;
46
+ id?: string | undefined;
45
47
  onError?: import("@xyflow/react").OnError | undefined;
46
48
  defaultChecked?: boolean | undefined;
47
49
  defaultValue?: string | number | readonly string[] | undefined;
@@ -51,13 +53,12 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
51
53
  autoCapitalize?: "none" | (string & {}) | "off" | "on" | "sentences" | "words" | "characters" | undefined;
52
54
  autoFocus?: boolean | undefined;
53
55
  className?: string | undefined;
54
- contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
56
+ contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
55
57
  contextMenu?: string | undefined;
56
58
  dir?: string | undefined;
57
59
  draggable?: (boolean | "true" | "false") | undefined;
58
- enterKeyHint?: "search" | "done" | "enter" | "go" | "next" | "previous" | "send" | undefined;
60
+ enterKeyHint?: "search" | "enter" | "done" | "next" | "go" | "previous" | "send" | undefined;
59
61
  hidden?: boolean | undefined;
60
- id?: string | undefined;
61
62
  lang?: string | undefined;
62
63
  nonce?: string | undefined;
63
64
  slot?: string | undefined;
@@ -91,10 +92,10 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
91
92
  security?: string | undefined;
92
93
  unselectable?: "off" | "on" | undefined;
93
94
  popover?: "" | "auto" | "manual" | "hint" | undefined;
94
- popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
95
+ popoverTargetAction?: "hide" | "show" | "toggle" | undefined;
95
96
  popoverTarget?: string | undefined;
96
97
  inert?: boolean | undefined;
97
- inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
98
+ inputMode?: "search" | "none" | "text" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
98
99
  is?: string | undefined;
99
100
  exportparts?: string | undefined;
100
101
  part?: string | undefined;
@@ -110,12 +111,12 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
110
111
  "aria-colindextext"?: string | undefined;
111
112
  "aria-colspan"?: number | undefined;
112
113
  "aria-controls"?: string | undefined;
113
- "aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
114
+ "aria-current"?: boolean | "location" | "step" | "date" | "time" | "page" | "true" | "false" | undefined;
114
115
  "aria-describedby"?: string | undefined;
115
116
  "aria-description"?: string | undefined;
116
117
  "aria-details"?: string | undefined;
117
118
  "aria-disabled"?: (boolean | "true" | "false") | undefined;
118
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
119
+ "aria-dropeffect"?: "link" | "none" | "popup" | "move" | "copy" | "execute" | undefined;
119
120
  "aria-errormessage"?: string | undefined;
120
121
  "aria-expanded"?: (boolean | "true" | "false") | undefined;
121
122
  "aria-flowto"?: string | undefined;
@@ -137,7 +138,7 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
137
138
  "aria-posinset"?: number | undefined;
138
139
  "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
139
140
  "aria-readonly"?: (boolean | "true" | "false") | undefined;
140
- "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
141
+ "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
141
142
  "aria-required"?: (boolean | "true" | "false") | undefined;
142
143
  "aria-roledescription"?: string | undefined;
143
144
  "aria-rowcount"?: number | undefined;
@@ -151,7 +152,6 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
151
152
  "aria-valuemin"?: number | undefined;
152
153
  "aria-valuenow"?: number | undefined;
153
154
  "aria-valuetext"?: string | undefined;
154
- children?: import("react").ReactNode;
155
155
  dangerouslySetInnerHTML?: {
156
156
  __html: string | TrustedHTML;
157
157
  } | undefined;
@@ -433,6 +433,7 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
433
433
  'minimap.ariaLabel': string;
434
434
  'handle.ariaLabel': string;
435
435
  }> | undefined;
436
+ readOnly?: boolean | undefined;
436
437
  background?: string | undefined;
437
438
  theme?: import("@rxflow/base").BaseThemeConfig | undefined;
438
439
  showControls?: boolean | undefined;
@@ -455,7 +456,6 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
455
456
  plugins?: {
456
457
  scroller?: false | import("packages/base/src/plugins/scrollbar/types").ScrollbarPluginOptions | undefined;
457
458
  } | undefined;
458
- readOnly?: boolean | undefined;
459
459
  onZoomIn?: (() => void) | undefined;
460
460
  onZoomOut?: (() => void) | undefined;
461
461
  onFitView?: (() => void) | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxflow/workflow",
3
- "version": "0.0.2-alpha.3",
3
+ "version": "0.0.2-alpha.5",
4
4
  "description": "工作流",
5
5
  "homepage": "https://tree-graph.publib.cn/packages/workflow",
6
6
  "repository": {
@@ -41,7 +41,7 @@
41
41
  "@codemirror/theme-one-dark": "^6.1.3",
42
42
  "@fsegurai/codemirror-theme-github-dark": "^6.2.0",
43
43
  "@fsegurai/codemirror-theme-github-light": "^6.2.0",
44
- "@rxflow/base": "^0.0.2-alpha.3",
44
+ "@rxflow/base": "^0.0.2-alpha.5",
45
45
  "@uiw/react-codemirror": "^4.24.1",
46
46
  "@xterm/addon-fit": "^0.10.0",
47
47
  "@xterm/xterm": "^5.5.0",