@rxflow/workflow 0.0.2-alpha.1 → 0.0.2-alpha.2
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/cjs/hooks/index.d.ts +1 -0
- package/cjs/hooks/index.d.ts.map +1 -1
- package/cjs/hooks/index.js +11 -0
- package/cjs/hooks/useWorkFlowProps.d.ts +28 -28
- package/esm/hooks/index.d.ts +1 -0
- package/esm/hooks/index.d.ts.map +1 -1
- package/esm/hooks/index.js +2 -1
- package/esm/hooks/useWorkFlowProps.d.ts +8 -8
- package/package.json +2 -2
package/cjs/hooks/index.d.ts
CHANGED
package/cjs/hooks/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
|
package/cjs/hooks/index.js
CHANGED
|
@@ -211,4 +211,15 @@ Object.keys(_useSetRunState).forEach(function (key) {
|
|
|
211
211
|
return _useSetRunState[key];
|
|
212
212
|
}
|
|
213
213
|
});
|
|
214
|
+
});
|
|
215
|
+
var _useMouseEvents = require("./useMouseEvents");
|
|
216
|
+
Object.keys(_useMouseEvents).forEach(function (key) {
|
|
217
|
+
if (key === "default" || key === "__esModule") return;
|
|
218
|
+
if (key in exports && exports[key] === _useMouseEvents[key]) return;
|
|
219
|
+
Object.defineProperty(exports, key, {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
get: function () {
|
|
222
|
+
return _useMouseEvents[key];
|
|
223
|
+
}
|
|
224
|
+
});
|
|
214
225
|
});
|
|
@@ -42,7 +42,7 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
42
42
|
onNodeDragStop: (event: import("react").MouseEvent<Element, MouseEvent>, node: NodeType, nodes: NodeType[]) => void;
|
|
43
43
|
width?: string | number | undefined;
|
|
44
44
|
height?: string | number | undefined;
|
|
45
|
-
|
|
45
|
+
onError?: import("@xyflow/react").OnError | undefined;
|
|
46
46
|
defaultChecked?: boolean | undefined;
|
|
47
47
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
48
48
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -51,16 +51,17 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
51
51
|
autoCapitalize?: "none" | (string & {}) | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
52
52
|
autoFocus?: boolean | undefined;
|
|
53
53
|
className?: string | undefined;
|
|
54
|
-
contentEditable?:
|
|
54
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
55
55
|
contextMenu?: string | undefined;
|
|
56
56
|
dir?: string | undefined;
|
|
57
|
-
draggable?: (boolean | "
|
|
58
|
-
enterKeyHint?: "search" | "
|
|
57
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
58
|
+
enterKeyHint?: "search" | "done" | "enter" | "go" | "next" | "previous" | "send" | undefined;
|
|
59
59
|
hidden?: boolean | undefined;
|
|
60
|
+
id?: string | undefined;
|
|
60
61
|
lang?: string | undefined;
|
|
61
62
|
nonce?: string | undefined;
|
|
62
63
|
slot?: string | undefined;
|
|
63
|
-
spellCheck?: (boolean | "
|
|
64
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
64
65
|
style?: import("react").CSSProperties | undefined;
|
|
65
66
|
tabIndex?: number | undefined;
|
|
66
67
|
title?: string | undefined;
|
|
@@ -90,60 +91,60 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
90
91
|
security?: string | undefined;
|
|
91
92
|
unselectable?: "off" | "on" | undefined;
|
|
92
93
|
popover?: "" | "auto" | "manual" | "hint" | undefined;
|
|
93
|
-
popoverTargetAction?: "
|
|
94
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
94
95
|
popoverTarget?: string | undefined;
|
|
95
96
|
inert?: boolean | undefined;
|
|
96
|
-
inputMode?: "none" | "search" | "text" | "
|
|
97
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
97
98
|
is?: string | undefined;
|
|
98
99
|
exportparts?: string | undefined;
|
|
99
100
|
part?: string | undefined;
|
|
100
101
|
"aria-activedescendant"?: string | undefined;
|
|
101
|
-
"aria-atomic"?: (boolean | "
|
|
102
|
-
"aria-autocomplete"?: "list" | "none" | "
|
|
102
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
103
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
103
104
|
"aria-braillelabel"?: string | undefined;
|
|
104
105
|
"aria-brailleroledescription"?: string | undefined;
|
|
105
|
-
"aria-busy"?: (boolean | "
|
|
106
|
-
"aria-checked"?: boolean | "
|
|
106
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
107
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
107
108
|
"aria-colcount"?: number | undefined;
|
|
108
109
|
"aria-colindex"?: number | undefined;
|
|
109
110
|
"aria-colindextext"?: string | undefined;
|
|
110
111
|
"aria-colspan"?: number | undefined;
|
|
111
112
|
"aria-controls"?: string | undefined;
|
|
112
|
-
"aria-current"?: boolean | "
|
|
113
|
+
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
113
114
|
"aria-describedby"?: string | undefined;
|
|
114
115
|
"aria-description"?: string | undefined;
|
|
115
116
|
"aria-details"?: string | undefined;
|
|
116
|
-
"aria-disabled"?: (boolean | "
|
|
117
|
-
"aria-dropeffect"?: "link" | "none" | "copy" | "
|
|
117
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
118
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
118
119
|
"aria-errormessage"?: string | undefined;
|
|
119
|
-
"aria-expanded"?: (boolean | "
|
|
120
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
120
121
|
"aria-flowto"?: string | undefined;
|
|
121
|
-
"aria-grabbed"?: (boolean | "
|
|
122
|
-
"aria-haspopup"?: boolean | "dialog" | "grid" | "listbox" | "menu" | "tree" | "
|
|
123
|
-
"aria-hidden"?: (boolean | "
|
|
124
|
-
"aria-invalid"?: boolean | "
|
|
122
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
123
|
+
"aria-haspopup"?: boolean | "dialog" | "grid" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
|
|
124
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
125
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
125
126
|
"aria-keyshortcuts"?: string | undefined;
|
|
126
127
|
"aria-label"?: string | undefined;
|
|
127
128
|
"aria-labelledby"?: string | undefined;
|
|
128
129
|
"aria-level"?: number | undefined;
|
|
129
130
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
130
|
-
"aria-modal"?: (boolean | "
|
|
131
|
-
"aria-multiline"?: (boolean | "
|
|
132
|
-
"aria-multiselectable"?: (boolean | "
|
|
131
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
132
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
133
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
133
134
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
134
135
|
"aria-owns"?: string | undefined;
|
|
135
136
|
"aria-placeholder"?: string | undefined;
|
|
136
137
|
"aria-posinset"?: number | undefined;
|
|
137
|
-
"aria-pressed"?: boolean | "
|
|
138
|
-
"aria-readonly"?: (boolean | "
|
|
139
|
-
"aria-relevant"?: "
|
|
140
|
-
"aria-required"?: (boolean | "
|
|
138
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
139
|
+
"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-required"?: (boolean | "true" | "false") | undefined;
|
|
141
142
|
"aria-roledescription"?: string | undefined;
|
|
142
143
|
"aria-rowcount"?: number | undefined;
|
|
143
144
|
"aria-rowindex"?: number | undefined;
|
|
144
145
|
"aria-rowindextext"?: string | undefined;
|
|
145
146
|
"aria-rowspan"?: number | undefined;
|
|
146
|
-
"aria-selected"?: (boolean | "
|
|
147
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
147
148
|
"aria-setsize"?: number | undefined;
|
|
148
149
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
149
150
|
"aria-valuemax"?: number | undefined;
|
|
@@ -184,7 +185,6 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
184
185
|
onInvalidCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
185
186
|
onLoad?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
186
187
|
onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
187
|
-
onError?: import("@xyflow/react").OnError | undefined;
|
|
188
188
|
onErrorCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
189
189
|
onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
190
190
|
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
package/esm/hooks/index.d.ts
CHANGED
package/esm/hooks/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
|
package/esm/hooks/index.js
CHANGED
|
@@ -24,4 +24,5 @@ export * from "./run/useActiveEdge";
|
|
|
24
24
|
export * from "./run/useCleanRunState";
|
|
25
25
|
export * from "./run/useNodeRunningState";
|
|
26
26
|
export * from "./run/useRunState";
|
|
27
|
-
export * from "./run/useSetRunState";
|
|
27
|
+
export * from "./run/useSetRunState";
|
|
28
|
+
export * from "./useMouseEvents";
|
|
@@ -40,11 +40,6 @@ 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;
|
|
44
|
-
slot?: string | undefined;
|
|
45
|
-
style?: import("react").CSSProperties | undefined;
|
|
46
|
-
title?: string | undefined;
|
|
47
|
-
className?: string | undefined;
|
|
48
43
|
width?: string | number | undefined;
|
|
49
44
|
height?: string | number | undefined;
|
|
50
45
|
onError?: import("@xyflow/react").OnError | undefined;
|
|
@@ -55,6 +50,7 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
55
50
|
accessKey?: string | undefined;
|
|
56
51
|
autoCapitalize?: "none" | (string & {}) | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
57
52
|
autoFocus?: boolean | undefined;
|
|
53
|
+
className?: string | undefined;
|
|
58
54
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
59
55
|
contextMenu?: string | undefined;
|
|
60
56
|
dir?: string | undefined;
|
|
@@ -64,8 +60,11 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
64
60
|
id?: string | undefined;
|
|
65
61
|
lang?: string | undefined;
|
|
66
62
|
nonce?: string | undefined;
|
|
63
|
+
slot?: string | undefined;
|
|
67
64
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
65
|
+
style?: import("react").CSSProperties | undefined;
|
|
68
66
|
tabIndex?: number | undefined;
|
|
67
|
+
title?: string | undefined;
|
|
69
68
|
translate?: "yes" | "no" | undefined;
|
|
70
69
|
radioGroup?: string | undefined;
|
|
71
70
|
role?: import("react").AriaRole | undefined;
|
|
@@ -95,7 +94,7 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
95
94
|
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
96
95
|
popoverTarget?: string | undefined;
|
|
97
96
|
inert?: boolean | undefined;
|
|
98
|
-
inputMode?: "
|
|
97
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
99
98
|
is?: string | undefined;
|
|
100
99
|
exportparts?: string | undefined;
|
|
101
100
|
part?: string | undefined;
|
|
@@ -111,7 +110,7 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
111
110
|
"aria-colindextext"?: string | undefined;
|
|
112
111
|
"aria-colspan"?: number | undefined;
|
|
113
112
|
"aria-controls"?: string | undefined;
|
|
114
|
-
"aria-current"?: boolean | "
|
|
113
|
+
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
115
114
|
"aria-describedby"?: string | undefined;
|
|
116
115
|
"aria-description"?: string | undefined;
|
|
117
116
|
"aria-details"?: string | undefined;
|
|
@@ -121,7 +120,7 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
121
120
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
122
121
|
"aria-flowto"?: string | undefined;
|
|
123
122
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
124
|
-
"aria-haspopup"?: boolean | "dialog" | "
|
|
123
|
+
"aria-haspopup"?: boolean | "dialog" | "grid" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
|
|
125
124
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
126
125
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
127
126
|
"aria-keyshortcuts"?: string | undefined;
|
|
@@ -152,6 +151,7 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
|
|
|
152
151
|
"aria-valuemin"?: number | undefined;
|
|
153
152
|
"aria-valuenow"?: number | undefined;
|
|
154
153
|
"aria-valuetext"?: string | undefined;
|
|
154
|
+
children?: import("react").ReactNode;
|
|
155
155
|
dangerouslySetInnerHTML?: {
|
|
156
156
|
__html: string | TrustedHTML;
|
|
157
157
|
} | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxflow/workflow",
|
|
3
|
-
"version": "0.0.2-alpha.
|
|
3
|
+
"version": "0.0.2-alpha.2",
|
|
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.
|
|
44
|
+
"@rxflow/base": "^0.0.2-alpha.2",
|
|
45
45
|
"@uiw/react-codemirror": "^4.24.1",
|
|
46
46
|
"@xterm/addon-fit": "^0.10.0",
|
|
47
47
|
"@xterm/xterm": "^5.5.0",
|