@rxflow/workflow 0.0.1-alpha.0 → 0.0.1-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.
@@ -43,12 +43,9 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
43
43
  width?: string | number | undefined;
44
44
  height?: string | number | undefined;
45
45
  id?: string | undefined;
46
- nodes?: NodeType[] | undefined;
47
- edges?: EdgeType[] | undefined;
48
- hidden?: boolean | undefined;
49
46
  draggable?: (boolean | "true" | "false") | undefined;
50
- style?: import("react").CSSProperties | undefined;
51
- className?: string | undefined;
47
+ hidden?: boolean | undefined;
48
+ color?: string | undefined;
52
49
  onError?: import("@xyflow/react").OnError | undefined;
53
50
  defaultChecked?: boolean | undefined;
54
51
  defaultValue?: string | number | readonly string[] | undefined;
@@ -57,14 +54,16 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
57
54
  accessKey?: string | undefined;
58
55
  autoCapitalize?: "none" | (string & {}) | "off" | "on" | "sentences" | "words" | "characters" | undefined;
59
56
  autoFocus?: boolean | undefined;
60
- contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
57
+ className?: string | undefined;
58
+ contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
61
59
  contextMenu?: string | undefined;
62
60
  dir?: string | undefined;
63
- enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
61
+ enterKeyHint?: "search" | "enter" | "done" | "next" | "go" | "previous" | "send" | undefined;
64
62
  lang?: string | undefined;
65
63
  nonce?: string | undefined;
66
64
  slot?: string | undefined;
67
65
  spellCheck?: (boolean | "true" | "false") | undefined;
66
+ style?: import("react").CSSProperties | undefined;
68
67
  tabIndex?: number | undefined;
69
68
  title?: string | undefined;
70
69
  translate?: "yes" | "no" | undefined;
@@ -83,7 +82,6 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
83
82
  vocab?: string | undefined;
84
83
  autoCorrect?: string | undefined;
85
84
  autoSave?: string | undefined;
86
- color?: string | undefined;
87
85
  itemProp?: string | undefined;
88
86
  itemScope?: boolean | undefined;
89
87
  itemType?: string | undefined;
@@ -92,11 +90,11 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
92
90
  results?: number | undefined;
93
91
  security?: string | undefined;
94
92
  unselectable?: "off" | "on" | undefined;
95
- popover?: "" | "auto" | "manual" | undefined;
93
+ popover?: "" | "auto" | "manual" | "hint" | undefined;
96
94
  popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
97
95
  popoverTarget?: string | undefined;
98
96
  inert?: boolean | undefined;
99
- inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
97
+ inputMode?: "none" | "search" | "text" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
100
98
  is?: string | undefined;
101
99
  exportparts?: string | undefined;
102
100
  part?: string | undefined;
@@ -112,12 +110,12 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
112
110
  "aria-colindextext"?: string | undefined;
113
111
  "aria-colspan"?: number | undefined;
114
112
  "aria-controls"?: string | undefined;
115
- "aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
113
+ "aria-current"?: boolean | "location" | "time" | "date" | "step" | "page" | "true" | "false" | undefined;
116
114
  "aria-describedby"?: string | undefined;
117
115
  "aria-description"?: string | undefined;
118
116
  "aria-details"?: string | undefined;
119
117
  "aria-disabled"?: (boolean | "true" | "false") | undefined;
120
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
118
+ "aria-dropeffect"?: "link" | "none" | "popup" | "move" | "copy" | "execute" | undefined;
121
119
  "aria-errormessage"?: string | undefined;
122
120
  "aria-expanded"?: (boolean | "true" | "false") | undefined;
123
121
  "aria-flowto"?: string | undefined;
@@ -139,7 +137,7 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
139
137
  "aria-posinset"?: number | undefined;
140
138
  "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
141
139
  "aria-readonly"?: (boolean | "true" | "false") | undefined;
142
- "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
140
+ "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
143
141
  "aria-required"?: (boolean | "true" | "false") | undefined;
144
142
  "aria-roledescription"?: string | undefined;
145
143
  "aria-rowcount"?: number | undefined;
@@ -319,6 +317,8 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
319
317
  onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
320
318
  onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
321
319
  onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
320
+ nodes?: NodeType[] | undefined;
321
+ edges?: EdgeType[] | undefined;
322
322
  defaultNodes?: NodeType[] | undefined;
323
323
  defaultEdges?: EdgeType[] | undefined;
324
324
  defaultEdgeOptions?: import("@xyflow/react").DefaultEdgeOptions | undefined;
@@ -1,5 +1,5 @@
1
1
  import { NodeTypeLookup, WorkflowNode } from "..";
2
- import { InternalNode, NodeChange, NodeOrigin, Rect } from "@xyflow/react";
2
+ import { InternalNode, NodeChange, NodeOrigin } from "@xyflow/react";
3
3
  import { NodeLookup, ParentExpandChild, ParentLookup } from "@xyflow/system";
4
4
  /**
5
5
  * 计算 父工作流的rect,x,y 不变,计算宽度和高度
@@ -10,7 +10,7 @@ import { NodeLookup, ParentExpandChild, ParentLookup } from "@xyflow/system";
10
10
  * @param nodeTypeLookup
11
11
  * @param nodeLookup
12
12
  */
13
- export declare function getExpectedRect(parent: InternalNode, childrenMap: Map<string, ParentExpandChild>, parentLookup: ParentLookup, nodeOrigin: NodeOrigin, nodeTypeLookup: NodeTypeLookup, nodeLookup: NodeLookup<InternalNode>): Rect;
13
+ export declare function getExpectedRect(parent: InternalNode, childrenMap: Map<string, ParentExpandChild>, parentLookup: ParentLookup, nodeOrigin: NodeOrigin, nodeTypeLookup: NodeTypeLookup, nodeLookup: NodeLookup<InternalNode>): import("@xyflow/system").Rect;
14
14
  /**
15
15
  * 自动调整父节点大小,同步放大和缩小
16
16
  * @param childrenPositionMap
@@ -1 +1 @@
1
- {"version":3,"file":"parent.d.ts","sourceRoot":"","sources":["parent.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,cAAc,EAAE,YAAY,EAAC,WAAyB;AAC9D,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AACzE,OAAO,EAIL,UAAU,EAEV,iBAAiB,EACjB,YAAY,EACb,MAAM,gBAAgB,CAAC;AAGxB;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,YAAY,EACpB,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,EAC3C,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,UAAU,CAAC,YAAY,CAAC,QA4CrC;AAGD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,SAAS,YAAY,GAAG,YAAY,EAC7E,mBAAmB,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,EACnD,UAAU,EAAE,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,EAC9C,YAAY,EAAE,YAAY,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,EAClD,UAAU,wBAAqB,EAC/B,cAAc,EAAE,cAAc,GAC7B,UAAU,CAAC,QAAQ,CAAC,EAAE,CAuFxB"}
1
+ {"version":3,"file":"parent.d.ts","sourceRoot":"","sources":["parent.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,cAAc,EAAE,YAAY,EAAC,WAAyB;AAC9D,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,UAAU,EAAO,MAAM,eAAe,CAAC;AACzE,OAAO,EAIL,UAAU,EAEV,iBAAiB,EACjB,YAAY,EACb,MAAM,gBAAgB,CAAC;AAGxB;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,YAAY,EACpB,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,EAC3C,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,UAAU,CAAC,YAAY,CAAC,iCA4CrC;AAGD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,SAAS,YAAY,GAAG,YAAY,EAC7E,mBAAmB,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,EACnD,UAAU,EAAE,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,EAC9C,YAAY,EAAE,YAAY,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,EAClD,UAAU,wBAAqB,EAC/B,cAAc,EAAE,cAAc,GAC7B,UAAU,CAAC,QAAQ,CAAC,EAAE,CAuFxB"}
@@ -43,12 +43,9 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
43
43
  width?: string | number | undefined;
44
44
  height?: string | number | undefined;
45
45
  id?: string | undefined;
46
- nodes?: NodeType[] | undefined;
47
- edges?: EdgeType[] | undefined;
48
- hidden?: boolean | undefined;
49
46
  draggable?: (boolean | "true" | "false") | undefined;
50
- style?: import("react").CSSProperties | undefined;
51
- className?: string | undefined;
47
+ hidden?: boolean | undefined;
48
+ color?: string | undefined;
52
49
  onError?: import("@xyflow/react").OnError | undefined;
53
50
  defaultChecked?: boolean | undefined;
54
51
  defaultValue?: string | number | readonly string[] | undefined;
@@ -57,14 +54,16 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
57
54
  accessKey?: string | undefined;
58
55
  autoCapitalize?: "none" | (string & {}) | "off" | "on" | "sentences" | "words" | "characters" | undefined;
59
56
  autoFocus?: boolean | undefined;
60
- contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
57
+ className?: string | undefined;
58
+ contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
61
59
  contextMenu?: string | undefined;
62
60
  dir?: string | undefined;
63
- enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
61
+ enterKeyHint?: "search" | "enter" | "done" | "next" | "go" | "previous" | "send" | undefined;
64
62
  lang?: string | undefined;
65
63
  nonce?: string | undefined;
66
64
  slot?: string | undefined;
67
65
  spellCheck?: (boolean | "true" | "false") | undefined;
66
+ style?: import("react").CSSProperties | undefined;
68
67
  tabIndex?: number | undefined;
69
68
  title?: string | undefined;
70
69
  translate?: "yes" | "no" | undefined;
@@ -83,7 +82,6 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
83
82
  vocab?: string | undefined;
84
83
  autoCorrect?: string | undefined;
85
84
  autoSave?: string | undefined;
86
- color?: string | undefined;
87
85
  itemProp?: string | undefined;
88
86
  itemScope?: boolean | undefined;
89
87
  itemType?: string | undefined;
@@ -92,11 +90,11 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
92
90
  results?: number | undefined;
93
91
  security?: string | undefined;
94
92
  unselectable?: "off" | "on" | undefined;
95
- popover?: "" | "auto" | "manual" | undefined;
93
+ popover?: "" | "auto" | "manual" | "hint" | undefined;
96
94
  popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
97
95
  popoverTarget?: string | undefined;
98
96
  inert?: boolean | undefined;
99
- inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
97
+ inputMode?: "none" | "search" | "text" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
100
98
  is?: string | undefined;
101
99
  exportparts?: string | undefined;
102
100
  part?: string | undefined;
@@ -112,12 +110,12 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
112
110
  "aria-colindextext"?: string | undefined;
113
111
  "aria-colspan"?: number | undefined;
114
112
  "aria-controls"?: string | undefined;
115
- "aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
113
+ "aria-current"?: boolean | "location" | "time" | "date" | "step" | "page" | "true" | "false" | undefined;
116
114
  "aria-describedby"?: string | undefined;
117
115
  "aria-description"?: string | undefined;
118
116
  "aria-details"?: string | undefined;
119
117
  "aria-disabled"?: (boolean | "true" | "false") | undefined;
120
- "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
118
+ "aria-dropeffect"?: "link" | "none" | "popup" | "move" | "copy" | "execute" | undefined;
121
119
  "aria-errormessage"?: string | undefined;
122
120
  "aria-expanded"?: (boolean | "true" | "false") | undefined;
123
121
  "aria-flowto"?: string | undefined;
@@ -139,7 +137,7 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
139
137
  "aria-posinset"?: number | undefined;
140
138
  "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
141
139
  "aria-readonly"?: (boolean | "true" | "false") | undefined;
142
- "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
140
+ "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
143
141
  "aria-required"?: (boolean | "true" | "false") | undefined;
144
142
  "aria-roledescription"?: string | undefined;
145
143
  "aria-rowcount"?: number | undefined;
@@ -319,6 +317,8 @@ export declare const useWorkFlowProps: <NodeType extends WorkflowNode = Workflow
319
317
  onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
320
318
  onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
321
319
  onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
320
+ nodes?: NodeType[] | undefined;
321
+ edges?: EdgeType[] | undefined;
322
322
  defaultNodes?: NodeType[] | undefined;
323
323
  defaultEdges?: EdgeType[] | undefined;
324
324
  defaultEdgeOptions?: import("@xyflow/react").DefaultEdgeOptions | undefined;
@@ -1,5 +1,5 @@
1
1
  import { NodeTypeLookup, WorkflowNode } from "..";
2
- import { InternalNode, NodeChange, NodeOrigin, Rect } from "@xyflow/react";
2
+ import { InternalNode, NodeChange, NodeOrigin } from "@xyflow/react";
3
3
  import { NodeLookup, ParentExpandChild, ParentLookup } from "@xyflow/system";
4
4
  /**
5
5
  * 计算 父工作流的rect,x,y 不变,计算宽度和高度
@@ -10,7 +10,7 @@ import { NodeLookup, ParentExpandChild, ParentLookup } from "@xyflow/system";
10
10
  * @param nodeTypeLookup
11
11
  * @param nodeLookup
12
12
  */
13
- export declare function getExpectedRect(parent: InternalNode, childrenMap: Map<string, ParentExpandChild>, parentLookup: ParentLookup, nodeOrigin: NodeOrigin, nodeTypeLookup: NodeTypeLookup, nodeLookup: NodeLookup<InternalNode>): Rect;
13
+ export declare function getExpectedRect(parent: InternalNode, childrenMap: Map<string, ParentExpandChild>, parentLookup: ParentLookup, nodeOrigin: NodeOrigin, nodeTypeLookup: NodeTypeLookup, nodeLookup: NodeLookup<InternalNode>): import("@xyflow/system").Rect;
14
14
  /**
15
15
  * 自动调整父节点大小,同步放大和缩小
16
16
  * @param childrenPositionMap
@@ -1 +1 @@
1
- {"version":3,"file":"parent.d.ts","sourceRoot":"","sources":["parent.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,cAAc,EAAE,YAAY,EAAC,WAAyB;AAC9D,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AACzE,OAAO,EAIL,UAAU,EAEV,iBAAiB,EACjB,YAAY,EACb,MAAM,gBAAgB,CAAC;AAGxB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AE,iBAAiB,CAAC,EACnD,UAAU,EAAE,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,EAC9C,YAAY,EAAE,YAAY,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,EAClD,UAAU,wBAAqB,EAC/B,cAAc,EAAE,cAAc,GAC7B,UAAU,CAAC,QAAQ,CAAC,EAAE,CAuFxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxflow/workflow",
3
- "version": "0.0.1-alpha.0",
3
+ "version": "0.0.1-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.1-alpha.0",
44
+ "@rxflow/base": "^0.0.1-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",