@runtypelabs/react-flow 0.1.3 → 0.1.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.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +15 -0
- package/dist/index.js +5 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -13
- package/dist/index.mjs.map +1 -1
- package/example/CHANGELOG.md +18 -0
- package/example/node_modules/.bin/tsc +2 -2
- package/example/node_modules/.bin/tsserver +2 -2
- package/example/node_modules/.bin/vite +2 -2
- package/example/package.json +1 -2
- package/example/src/App.tsx +3 -15
- package/package.json +2 -2
- package/src/hooks/useRuntypeFlow.ts +8 -19
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
> @runtypelabs/react-flow@0.1.
|
|
2
|
+
> @runtypelabs/react-flow@0.1.5 build /home/runner/_work/core/core/packages/react-flow
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.5.1
|
|
8
|
-
[34mCLI[39m Using tsup config: /home/runner/
|
|
8
|
+
[34mCLI[39m Using tsup config: /home/runner/_work/core/core/packages/react-flow/tsup.config.ts
|
|
9
9
|
[34mCLI[39m Target: es2020
|
|
10
10
|
[34mCLI[39m Cleaning output folder
|
|
11
11
|
[34mCJS[39m Build start
|
|
12
12
|
[34mESM[39m Build start
|
|
13
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m100.
|
|
14
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
16
|
-
[32mCJS[39m [1mdist/index.js [22m[32m104.
|
|
17
|
-
[32mCJS[39m [1mdist/index.js.map [22m[32m224.
|
|
18
|
-
[32mCJS[39m ⚡️ Build success in
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m100.24 KB[39m
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m223.72 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 264ms
|
|
16
|
+
[32mCJS[39m [1mdist/index.js [22m[32m104.29 KB[39m
|
|
17
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m224.04 KB[39m
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 265ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @runtypelabs/react-flow
|
|
2
2
|
|
|
3
|
+
## 0.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [cf6fcdc]
|
|
8
|
+
- @runtypelabs/sdk@0.4.0
|
|
9
|
+
|
|
10
|
+
## 0.1.4
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [9ec83bd]
|
|
15
|
+
- Updated dependencies [a63f268]
|
|
16
|
+
- @runtypelabs/sdk@0.3.0
|
|
17
|
+
|
|
3
18
|
## 0.1.3
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -644,8 +644,7 @@ function useRuntypeFlow(options) {
|
|
|
644
644
|
setError(null);
|
|
645
645
|
try {
|
|
646
646
|
const flow = await client.flows.get(id);
|
|
647
|
-
const
|
|
648
|
-
const steps = Array.isArray(stepsResponse) ? stepsResponse : [];
|
|
647
|
+
const steps = Array.isArray(flow.flowSteps) ? flow.flowSteps : [];
|
|
649
648
|
let newNodes = flowStepsToNodes(steps, {
|
|
650
649
|
onChange: handleStepChange,
|
|
651
650
|
onDelete: handleStepDelete
|
|
@@ -681,22 +680,15 @@ function useRuntypeFlow(options) {
|
|
|
681
680
|
const steps = nodesToFlowSteps(nodes);
|
|
682
681
|
await client.flows.update(flowId, {
|
|
683
682
|
name: flowName,
|
|
684
|
-
description: flowDescription
|
|
685
|
-
|
|
686
|
-
const existingSteps = await client.flowSteps.getByFlow(flowId);
|
|
687
|
-
for (const step of existingSteps) {
|
|
688
|
-
await client.flowSteps.delete(step.id);
|
|
689
|
-
}
|
|
690
|
-
for (const step of steps) {
|
|
691
|
-
await client.flowSteps.create({
|
|
692
|
-
flowId,
|
|
683
|
+
description: flowDescription,
|
|
684
|
+
flow_steps: steps.map((step) => ({
|
|
693
685
|
type: step.type,
|
|
694
686
|
name: step.name,
|
|
695
687
|
order: step.order,
|
|
696
688
|
enabled: step.enabled,
|
|
697
689
|
config: step.config
|
|
698
|
-
})
|
|
699
|
-
}
|
|
690
|
+
}))
|
|
691
|
+
});
|
|
700
692
|
setHasUnsavedChanges(false);
|
|
701
693
|
lastSavedState.current = JSON.stringify(steps);
|
|
702
694
|
return {
|