@motiadev/workbench 0.0.6 → 0.0.7-build.20250529212805
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/LICENSE +21 -0
- package/README.md +95 -40
- package/dist/README.md +105 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.html +31 -0
- package/dist/index.js +0 -1
- package/dist/middleware.d.ts +2 -2
- package/dist/middleware.js +10 -17
- package/dist/postcss.config.mjs +9 -0
- package/dist/src/components/app-sidebar.d.ts +0 -1
- package/dist/src/components/app-sidebar.js +15 -8
- package/dist/src/components/endpoints/endpoint-badge.d.ts +10 -0
- package/dist/src/components/endpoints/endpoint-badge.js +22 -0
- package/dist/src/components/endpoints/endpoint-call.d.ts +8 -0
- package/dist/src/components/endpoints/endpoint-call.js +57 -0
- package/dist/src/components/endpoints/endpoints.d.ts +1 -0
- package/dist/src/components/endpoints/endpoints.js +34 -0
- package/dist/src/components/endpoints/hooks/use-get-endpoints.d.ts +15 -0
- package/dist/src/components/endpoints/hooks/use-get-endpoints.js +8 -0
- package/dist/src/components/endpoints/hooks/use-json-schema-to-json.d.ts +4 -0
- package/dist/src/components/endpoints/hooks/use-json-schema-to-json.js +11 -0
- package/dist/src/components/endpoints/hooks/use-path-params.d.ts +1 -0
- package/dist/src/components/endpoints/hooks/use-path-params.js +4 -0
- package/dist/src/components/endpoints/hooks/use-state-stream.d.ts +4 -0
- package/dist/src/components/endpoints/hooks/use-state-stream.js +8 -0
- package/dist/src/components/endpoints/hooks/utils.d.ts +1 -0
- package/dist/src/components/endpoints/hooks/utils.js +29 -0
- package/dist/src/components/endpoints/response-body.d.ts +7 -0
- package/dist/src/components/endpoints/response-body.js +6 -0
- package/dist/src/components/endpoints/selected-endpoint.d.ts +7 -0
- package/dist/src/components/endpoints/selected-endpoint.js +7 -0
- package/dist/src/components/{log-console.d.ts → logs/log-console.d.ts} +0 -1
- package/dist/src/components/logs/log-console.js +69 -0
- package/dist/src/components/logs/log-detail.d.ts +8 -0
- package/dist/src/components/logs/log-detail.js +15 -0
- package/dist/src/components/logs/log-field.d.ts +8 -0
- package/dist/src/components/logs/log-field.js +20 -0
- package/dist/src/components/{log-level-badge.d.ts → logs/log-level-badge.d.ts} +2 -1
- package/dist/src/components/{log-level-badge.js → logs/log-level-badge.js} +2 -2
- package/dist/src/components/logs/log-level-dot.d.ts +4 -0
- package/dist/src/components/logs/log-level-dot.js +17 -0
- package/dist/src/components/logs/logs.d.ts +1 -0
- package/dist/src/components/logs/logs.js +18 -0
- package/dist/src/components/root-motia.d.ts +2 -0
- package/dist/src/components/root-motia.js +5 -0
- package/dist/src/components/states/hooks/states-hooks.d.ts +3 -0
- package/dist/src/components/states/hooks/states-hooks.js +36 -0
- package/dist/src/components/states/state-detail.d.ts +7 -0
- package/dist/src/components/states/state-detail.js +12 -0
- package/dist/src/components/states/state-value.d.ts +8 -0
- package/dist/src/components/states/state-value.js +51 -0
- package/dist/src/components/states/states.d.ts +1 -0
- package/dist/src/components/states/states.js +21 -0
- package/dist/src/components/ui/badge.d.ts +3 -4
- package/dist/src/components/ui/badge.js +4 -4
- package/dist/src/components/ui/button.d.ts +2 -3
- package/dist/src/components/ui/button.js +2 -3
- package/dist/src/components/ui/collapsible.d.ts +1 -2
- package/dist/src/components/ui/collapsible.js +1 -1
- package/dist/src/components/ui/dialog.d.ts +2 -3
- package/dist/src/components/ui/dialog.js +12 -12
- package/dist/src/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/src/components/ui/dropdown-menu.js +50 -0
- package/dist/src/components/ui/input.d.ts +0 -1
- package/dist/src/components/ui/label.d.ts +3 -4
- package/dist/src/components/ui/label.js +6 -6
- package/dist/src/components/ui/select.d.ts +2 -3
- package/dist/src/components/ui/select.js +14 -15
- package/dist/src/components/ui/separator.d.ts +0 -1
- package/dist/src/components/ui/sheet.d.ts +1 -2
- package/dist/src/components/ui/sheet.js +2 -2
- package/dist/src/components/ui/sidebar.d.ts +12 -67
- package/dist/src/components/ui/sidebar.js +14 -219
- package/dist/src/components/ui/skeleton.d.ts +1 -1
- package/dist/src/components/ui/switch.d.ts +2 -3
- package/dist/src/components/ui/switch.js +4 -4
- package/dist/src/components/ui/table.d.ts +0 -1
- package/dist/src/components/ui/table.js +1 -1
- package/dist/src/components/ui/textarea.d.ts +1 -2
- package/dist/src/components/ui/textarea.js +4 -4
- package/dist/src/components/ui/theme-toggle.d.ts +2 -0
- package/dist/src/components/ui/theme-toggle.js +11 -0
- package/dist/src/components/ui/tooltip.d.ts +0 -1
- package/dist/src/hooks/use-debounced.d.ts +1 -0
- package/dist/src/hooks/use-debounced.js +18 -0
- package/dist/src/hooks/use-list-flows.d.ts +0 -2
- package/dist/src/hooks/use-list-flows.js +6 -10
- package/dist/src/hooks/use-log-listener.d.ts +1 -6
- package/dist/src/hooks/use-log-listener.js +3 -18
- package/dist/src/hooks/use-mobile.d.ts +0 -1
- package/dist/src/hooks/use-theme.d.ts +6 -0
- package/dist/src/hooks/use-theme.js +28 -0
- package/dist/src/index.css +169 -0
- package/dist/src/lib/utils.d.ts +0 -1
- package/dist/src/main.d.ts +0 -8
- package/dist/src/main.js +11 -7
- package/dist/src/publicComponents/api-node.d.ts +2 -5
- package/dist/src/publicComponents/api-node.js +3 -3
- package/dist/src/publicComponents/base-handle.d.ts +1 -1
- package/dist/src/publicComponents/base-handle.js +5 -2
- package/dist/src/publicComponents/base-node.d.ts +5 -5
- package/dist/src/publicComponents/base-node.js +13 -8
- package/dist/src/publicComponents/colorMap.d.ts +6 -0
- package/dist/src/publicComponents/colorMap.js +6 -0
- package/dist/src/publicComponents/components/header-bar.d.ts +11 -0
- package/dist/src/publicComponents/components/header-bar.js +15 -0
- package/dist/src/publicComponents/cron-node.d.ts +2 -0
- package/dist/src/publicComponents/cron-node.js +7 -0
- package/dist/src/publicComponents/emits.d.ts +1 -1
- package/dist/src/publicComponents/emits.js +2 -2
- package/dist/src/publicComponents/event-node.d.ts +0 -2
- package/dist/src/publicComponents/event-node.js +3 -5
- package/dist/src/publicComponents/node-details.d.ts +17 -0
- package/dist/src/publicComponents/node-details.js +19 -0
- package/dist/src/publicComponents/node-props.d.ts +5 -3
- package/dist/src/publicComponents/noop-node.d.ts +0 -1
- package/dist/src/publicComponents/noop-node.js +1 -1
- package/dist/src/publicComponents/subscribe.d.ts +2 -3
- package/dist/src/publicComponents/subscribe.js +2 -2
- package/dist/src/route-wrapper.d.ts +2 -4
- package/dist/src/route-wrapper.js +2 -2
- package/dist/src/routes/endpoints-page.d.ts +1 -0
- package/dist/src/routes/endpoints-page.js +5 -0
- package/dist/src/routes/flow.d.ts +1 -0
- package/dist/src/routes/flow.js +22 -0
- package/dist/src/routes/index.d.ts +1 -2
- package/dist/src/routes/index.js +5 -8
- package/dist/src/routes/logs-page.d.ts +1 -0
- package/dist/src/routes/logs-page.js +12 -0
- package/dist/src/routes/states-page.d.ts +1 -0
- package/dist/src/routes/states-page.js +5 -0
- package/dist/src/stores/use-logs.d.ts +3 -2
- package/dist/src/stores/use-logs.js +52 -6
- package/dist/src/views/flow/arrow-head.d.ts +2 -2
- package/dist/src/views/flow/arrow-head.js +5 -1
- package/dist/src/views/flow/base-edge.d.ts +0 -1
- package/dist/src/views/flow/base-edge.js +25 -10
- package/dist/src/views/flow/flow-loader.d.ts +0 -1
- package/dist/src/views/flow/flow-loader.js +1 -1
- package/dist/src/views/flow/flow-view.d.ts +7 -2
- package/dist/src/views/flow/flow-view.js +44 -20
- package/dist/src/views/flow/hooks/use-get-flow-state.d.ts +14 -5
- package/dist/src/views/flow/hooks/use-get-flow-state.js +17 -8
- package/dist/src/views/flow/hooks/use-organize-nodes.d.ts +0 -1
- package/dist/src/views/flow/hooks/use-save-workflow-config.d.ts +9 -0
- package/dist/src/views/flow/hooks/use-save-workflow-config.js +23 -0
- package/dist/src/views/flow/legend.d.ts +3 -3
- package/dist/src/views/flow/legend.js +49 -39
- package/dist/src/views/flow/node-organizer.d.ts +1 -1
- package/dist/src/views/flow/node-organizer.js +4 -2
- package/dist/src/views/flow/nodes/api-flow-node.d.ts +0 -1
- package/dist/src/views/flow/nodes/event-flow-node.d.ts +0 -1
- package/dist/src/views/flow/nodes/language-indicator.d.ts +0 -1
- package/dist/src/views/flow/nodes/language-indicator.js +7 -7
- package/dist/src/views/flow/nodes/nodes.types.d.ts +39 -6
- package/dist/src/views/flow/nodes/noop-flow-node.d.ts +0 -1
- package/dist/tailwind.config.js +9 -77
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/tsconfig.node.tsbuildinfo +1 -1
- package/package.json +36 -42
- package/postcss.config.mjs +9 -0
- package/dist/index.d.ts.map +0 -1
- package/dist/middleware.d.ts.map +0 -1
- package/dist/src/components/app-sidebar.d.ts.map +0 -1
- package/dist/src/components/log-console.d.ts.map +0 -1
- package/dist/src/components/log-console.js +0 -20
- package/dist/src/components/log-level-badge.d.ts.map +0 -1
- package/dist/src/components/ui/badge.d.ts.map +0 -1
- package/dist/src/components/ui/button.d.ts.map +0 -1
- package/dist/src/components/ui/collapsible.d.ts.map +0 -1
- package/dist/src/components/ui/dialog.d.ts.map +0 -1
- package/dist/src/components/ui/input.d.ts.map +0 -1
- package/dist/src/components/ui/label.d.ts.map +0 -1
- package/dist/src/components/ui/select.d.ts.map +0 -1
- package/dist/src/components/ui/separator.d.ts.map +0 -1
- package/dist/src/components/ui/sheet.d.ts.map +0 -1
- package/dist/src/components/ui/sidebar.d.ts.map +0 -1
- package/dist/src/components/ui/skeleton.d.ts.map +0 -1
- package/dist/src/components/ui/switch.d.ts.map +0 -1
- package/dist/src/components/ui/table.d.ts.map +0 -1
- package/dist/src/components/ui/textarea.d.ts.map +0 -1
- package/dist/src/components/ui/tooltip.d.ts.map +0 -1
- package/dist/src/hooks/use-list-flows.d.ts.map +0 -1
- package/dist/src/hooks/use-log-listener.d.ts.map +0 -1
- package/dist/src/hooks/use-mobile.d.ts.map +0 -1
- package/dist/src/lib/utils.d.ts.map +0 -1
- package/dist/src/main.d.ts.map +0 -1
- package/dist/src/publicComponents/api-node.d.ts.map +0 -1
- package/dist/src/publicComponents/base-handle.d.ts.map +0 -1
- package/dist/src/publicComponents/base-node.d.ts.map +0 -1
- package/dist/src/publicComponents/emits.d.ts.map +0 -1
- package/dist/src/publicComponents/event-node.d.ts.map +0 -1
- package/dist/src/publicComponents/node-props.d.ts.map +0 -1
- package/dist/src/publicComponents/noop-node.d.ts.map +0 -1
- package/dist/src/publicComponents/subscribe.d.ts.map +0 -1
- package/dist/src/route-wrapper.d.ts.map +0 -1
- package/dist/src/routeTree.gen.d.ts +0 -53
- package/dist/src/routeTree.gen.d.ts.map +0 -1
- package/dist/src/routeTree.gen.js +0 -45
- package/dist/src/routes/__root.d.ts +0 -2
- package/dist/src/routes/__root.d.ts.map +0 -1
- package/dist/src/routes/__root.js +0 -15
- package/dist/src/routes/flow/$id.d.ts +0 -4
- package/dist/src/routes/flow/$id.d.ts.map +0 -1
- package/dist/src/routes/flow/$id.js +0 -15
- package/dist/src/routes/index.d.ts.map +0 -1
- package/dist/src/stores/use-logs.d.ts.map +0 -1
- package/dist/src/views/flow/arrow-head.d.ts.map +0 -1
- package/dist/src/views/flow/base-edge.d.ts.map +0 -1
- package/dist/src/views/flow/flow-loader.d.ts.map +0 -1
- package/dist/src/views/flow/flow-view.d.ts.map +0 -1
- package/dist/src/views/flow/hooks/use-get-flow-state.d.ts.map +0 -1
- package/dist/src/views/flow/hooks/use-organize-nodes.d.ts.map +0 -1
- package/dist/src/views/flow/legend.d.ts.map +0 -1
- package/dist/src/views/flow/node-organizer.d.ts.map +0 -1
- package/dist/src/views/flow/nodes/api-flow-node.d.ts.map +0 -1
- package/dist/src/views/flow/nodes/event-flow-node.d.ts.map +0 -1
- package/dist/src/views/flow/nodes/json-schema-form.d.ts +0 -9
- package/dist/src/views/flow/nodes/json-schema-form.d.ts.map +0 -1
- package/dist/src/views/flow/nodes/json-schema-form.js +0 -35
- package/dist/src/views/flow/nodes/language-indicator.d.ts.map +0 -1
- package/dist/src/views/flow/nodes/nodes.types.d.ts.map +0 -1
- package/dist/src/views/flow/nodes/noop-flow-node.d.ts.map +0 -1
- package/dist/tailwind.config.d.ts +0 -4
- package/dist/tailwind.config.d.ts.map +0 -1
- package/dist/vite.config.d.ts +0 -11
- package/dist/vite.config.d.ts.map +0 -1
- package/dist/vite.config.js +0 -18
- package/eslint.config.js +0 -28
- package/index.html +0 -19
- package/index.tsx +0 -10
- package/middleware.ts +0 -48
- package/postcss.config.js +0 -6
- package/src/assets/.empty +0 -0
- package/src/components/app-sidebar.tsx +0 -55
- package/src/components/log-console.tsx +0 -76
- package/src/components/log-level-badge.tsx +0 -12
- package/src/components/ui/badge.tsx +0 -31
- package/src/components/ui/button.tsx +0 -47
- package/src/components/ui/collapsible.tsx +0 -9
- package/src/components/ui/dialog.tsx +0 -120
- package/src/components/ui/input.tsx +0 -21
- package/src/components/ui/label.tsx +0 -26
- package/src/components/ui/select.tsx +0 -157
- package/src/components/ui/separator.tsx +0 -22
- package/src/components/ui/sheet.tsx +0 -106
- package/src/components/ui/sidebar.tsx +0 -637
- package/src/components/ui/skeleton.tsx +0 -7
- package/src/components/ui/switch.tsx +0 -27
- package/src/components/ui/table.tsx +0 -76
- package/src/components/ui/textarea.tsx +0 -22
- package/src/components/ui/tooltip.tsx +0 -32
- package/src/hooks/use-list-flows.tsx +0 -20
- package/src/hooks/use-log-listener.tsx +0 -32
- package/src/hooks/use-mobile.tsx +0 -19
- package/src/index.css +0 -190
- package/src/lib/utils.ts +0 -6
- package/src/main.tsx +0 -28
- package/src/publicComponents/api-node.tsx +0 -28
- package/src/publicComponents/base-handle.tsx +0 -43
- package/src/publicComponents/base-node.tsx +0 -57
- package/src/publicComponents/emits.tsx +0 -22
- package/src/publicComponents/event-node.tsx +0 -36
- package/src/publicComponents/node-props.tsx +0 -15
- package/src/publicComponents/noop-node.tsx +0 -21
- package/src/publicComponents/subscribe.tsx +0 -19
- package/src/route-wrapper.tsx +0 -9
- package/src/routeTree.gen.ts +0 -109
- package/src/routes/__root.tsx +0 -26
- package/src/routes/flow/$id.tsx +0 -21
- package/src/routes/index.tsx +0 -13
- package/src/stores/use-logs.ts +0 -22
- package/src/views/flow/arrow-head.tsx +0 -13
- package/src/views/flow/base-edge.tsx +0 -31
- package/src/views/flow/flow-loader.tsx +0 -3
- package/src/views/flow/flow-view.tsx +0 -72
- package/src/views/flow/hooks/use-get-flow-state.tsx +0 -93
- package/src/views/flow/hooks/use-organize-nodes.ts +0 -60
- package/src/views/flow/legend.tsx +0 -96
- package/src/views/flow/node-organizer.tsx +0 -70
- package/src/views/flow/nodes/api-flow-node.tsx +0 -6
- package/src/views/flow/nodes/event-flow-node.tsx +0 -6
- package/src/views/flow/nodes/json-schema-form.tsx +0 -110
- package/src/views/flow/nodes/language-indicator.tsx +0 -74
- package/src/views/flow/nodes/nodes.types.ts +0 -36
- package/src/views/flow/nodes/noop-flow-node.tsx +0 -6
- package/src/vite-env.d.ts +0 -1
- package/tailwind.config.ts +0 -75
- package/tsconfig.app.json +0 -32
- package/tsconfig.json +0 -14
- package/tsconfig.node.json +0 -32
- package/tsconfig.node.tsbuildinfo +0 -1
- package/vite.config.ts +0 -14
- /package/{components.json → dist/components.json} +0 -0
- /package/{public → dist/public}/.empty +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-node.d.ts","sourceRoot":"","sources":["../../../src/publicComponents/base-node.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAKzC,QAAA,MAAM,sBAAsB;;8EAQ1B,CAAA;AAEF,KAAK,KAAK,GAAG,iBAAiB,CAAC;IAC7B,OAAO,CAAC,EAAE,YAAY,CAAC,OAAO,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAA;IAChE,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,CAAC,CAAA;AASF,eAAO,MAAM,QAAQ,UAAW,KAAK,4CAsBpC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"emits.d.ts","sourceRoot":"","sources":["../../../src/publicComponents/emits.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAK/D,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,CAAA;CAAE,CAe7D,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-node.d.ts","sourceRoot":"","sources":["../../../src/publicComponents/event-node.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAIzC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAG7C,KAAK,KAAK,GAAG,iBAAiB,CAC5B,cAAc,GAAG;IACf,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CACF,CAAA;AAED,eAAO,MAAM,SAAS,UAAW,KAAK,4CAqBrC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-props.d.ts","sourceRoot":"","sources":["../../../src/publicComponents/node-props.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAE1F,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,aAAa,GAAG,YAAY,CAAA;AAEzE,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,aAAa,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,YAAY,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,WAAW,CAAA;CAClB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"noop-node.d.ts","sourceRoot":"","sources":["../../../src/publicComponents/noop-node.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAG9D,KAAK,KAAK,GAAG,iBAAiB,CAAC;IAC7B,IAAI,EAAE,YAAY,CAAA;CACnB,CAAC,CAAA;AAEF,eAAO,MAAM,QAAQ,uBAAwB,KAAK,4CAYjD,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscribe.d.ts","sourceRoot":"","sources":["../../../src/publicComponents/subscribe.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/D,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,CAevD,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"route-wrapper.d.ts","sourceRoot":"","sources":["../../src/route-wrapper.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,iBAAkB;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,4CAKvE,CAAA"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { Route as rootRoute } from './routes/__root';
|
|
2
|
-
import { Route as IndexImport } from './routes/index';
|
|
3
|
-
import { Route as FlowIdImport } from './routes/flow/$id';
|
|
4
|
-
declare const IndexRoute: import("@tanstack/react-router").Route<import("@tanstack/react-router").RootRoute<undefined, {}, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, {}, undefined, unknown, unknown>, "/", "/", "/", "/", undefined, Record<never, string>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, {}, undefined, unknown>;
|
|
5
|
-
declare const FlowIdRoute: import("@tanstack/react-router").Route<import("@tanstack/react-router").RootRoute<undefined, {}, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, {}, undefined, unknown, unknown>, "/flow/$id", "/flow/$id", "/flow/$id", "/flow/$id", undefined, Record<"id", string>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, {}, ({ params }: import("@tanstack/react-router").LoaderFnContext<import("@tanstack/react-router").RootRoute<undefined, {}, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, {}, undefined, unknown, unknown>, "/flow/$id", Record<"id", string>, {}, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext>) => Promise<{
|
|
6
|
-
flow: any;
|
|
7
|
-
}>, unknown>;
|
|
8
|
-
declare module '@tanstack/react-router' {
|
|
9
|
-
interface FileRoutesByPath {
|
|
10
|
-
'/': {
|
|
11
|
-
id: '/';
|
|
12
|
-
path: '/';
|
|
13
|
-
fullPath: '/';
|
|
14
|
-
preLoaderRoute: typeof IndexImport;
|
|
15
|
-
parentRoute: typeof rootRoute;
|
|
16
|
-
};
|
|
17
|
-
'/flow/$id': {
|
|
18
|
-
id: '/flow/$id';
|
|
19
|
-
path: '/flow/$id';
|
|
20
|
-
fullPath: '/flow/$id';
|
|
21
|
-
preLoaderRoute: typeof FlowIdImport;
|
|
22
|
-
parentRoute: typeof rootRoute;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export interface FileRoutesByFullPath {
|
|
27
|
-
'/': typeof IndexRoute;
|
|
28
|
-
'/flow/$id': typeof FlowIdRoute;
|
|
29
|
-
}
|
|
30
|
-
export interface FileRoutesByTo {
|
|
31
|
-
'/': typeof IndexRoute;
|
|
32
|
-
'/flow/$id': typeof FlowIdRoute;
|
|
33
|
-
}
|
|
34
|
-
export interface FileRoutesById {
|
|
35
|
-
__root__: typeof rootRoute;
|
|
36
|
-
'/': typeof IndexRoute;
|
|
37
|
-
'/flow/$id': typeof FlowIdRoute;
|
|
38
|
-
}
|
|
39
|
-
export interface FileRouteTypes {
|
|
40
|
-
fileRoutesByFullPath: FileRoutesByFullPath;
|
|
41
|
-
fullPaths: '/' | '/flow/$id';
|
|
42
|
-
fileRoutesByTo: FileRoutesByTo;
|
|
43
|
-
to: '/' | '/flow/$id';
|
|
44
|
-
id: '__root__' | '/' | '/flow/$id';
|
|
45
|
-
fileRoutesById: FileRoutesById;
|
|
46
|
-
}
|
|
47
|
-
export interface RootRouteChildren {
|
|
48
|
-
IndexRoute: typeof IndexRoute;
|
|
49
|
-
FlowIdRoute: typeof FlowIdRoute;
|
|
50
|
-
}
|
|
51
|
-
export declare const routeTree: import("@tanstack/react-router").RootRoute<undefined, {}, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, {}, undefined, RootRouteChildren, FileRouteTypes>;
|
|
52
|
-
export {};
|
|
53
|
-
//# sourceMappingURL=routeTree.gen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"routeTree.gen.d.ts","sourceRoot":"","sources":["../../src/routeTree.gen.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAIzD,QAAA,MAAM,UAAU,mbAIP,CAAA;AAET,QAAA,MAAM,WAAW;;YAIR,CAAA;AAIT,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAU,gBAAgB;QACxB,GAAG,EAAE;YACH,EAAE,EAAE,GAAG,CAAA;YACP,IAAI,EAAE,GAAG,CAAA;YACT,QAAQ,EAAE,GAAG,CAAA;YACb,cAAc,EAAE,OAAO,WAAW,CAAA;YAClC,WAAW,EAAE,OAAO,SAAS,CAAA;SAC9B,CAAA;QACD,WAAW,EAAE;YACX,EAAE,EAAE,WAAW,CAAA;YACf,IAAI,EAAE,WAAW,CAAA;YACjB,QAAQ,EAAE,WAAW,CAAA;YACrB,cAAc,EAAE,OAAO,YAAY,CAAA;YACnC,WAAW,EAAE,OAAO,SAAS,CAAA;SAC9B,CAAA;KACF;CACF;AAID,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,OAAO,UAAU,CAAA;IACtB,WAAW,EAAE,OAAO,WAAW,CAAA;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,OAAO,UAAU,CAAA;IACtB,WAAW,EAAE,OAAO,WAAW,CAAA;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,OAAO,SAAS,CAAA;IAC1B,GAAG,EAAE,OAAO,UAAU,CAAA;IACtB,WAAW,EAAE,OAAO,WAAW,CAAA;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,SAAS,EAAE,GAAG,GAAG,WAAW,CAAA;IAC5B,cAAc,EAAE,cAAc,CAAA;IAC9B,EAAE,EAAE,GAAG,GAAG,WAAW,CAAA;IACrB,EAAE,EAAE,UAAU,GAAG,GAAG,GAAG,WAAW,CAAA;IAClC,cAAc,EAAE,cAAc,CAAA;CAC/B;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,OAAO,UAAU,CAAA;IAC7B,WAAW,EAAE,OAAO,WAAW,CAAA;CAChC;AAOD,eAAO,MAAM,SAAS,uMAAgF,CAAA"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
// noinspection JSUnusedGlobalSymbols
|
|
4
|
-
// This file was automatically generated by TanStack Router.
|
|
5
|
-
// You should NOT make any changes in this file as it will be overwritten.
|
|
6
|
-
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
7
|
-
// Import Routes
|
|
8
|
-
import { Route as rootRoute } from './routes/__root';
|
|
9
|
-
import { Route as IndexImport } from './routes/index';
|
|
10
|
-
import { Route as FlowIdImport } from './routes/flow/$id';
|
|
11
|
-
// Create/Update Routes
|
|
12
|
-
const IndexRoute = IndexImport.update({
|
|
13
|
-
id: '/',
|
|
14
|
-
path: '/',
|
|
15
|
-
getParentRoute: () => rootRoute,
|
|
16
|
-
});
|
|
17
|
-
const FlowIdRoute = FlowIdImport.update({
|
|
18
|
-
id: '/flow/$id',
|
|
19
|
-
path: '/flow/$id',
|
|
20
|
-
getParentRoute: () => rootRoute,
|
|
21
|
-
});
|
|
22
|
-
const rootRouteChildren = {
|
|
23
|
-
IndexRoute: IndexRoute,
|
|
24
|
-
FlowIdRoute: FlowIdRoute,
|
|
25
|
-
};
|
|
26
|
-
export const routeTree = rootRoute._addFileChildren(rootRouteChildren)._addFileTypes();
|
|
27
|
-
/* ROUTE_MANIFEST_START
|
|
28
|
-
{
|
|
29
|
-
"routes": {
|
|
30
|
-
"__root__": {
|
|
31
|
-
"filePath": "__root.tsx",
|
|
32
|
-
"children": [
|
|
33
|
-
"/",
|
|
34
|
-
"/flow/$id"
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
"/": {
|
|
38
|
-
"filePath": "index.tsx"
|
|
39
|
-
},
|
|
40
|
-
"/flow/$id": {
|
|
41
|
-
"filePath": "flow/$id.tsx"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
ROUTE_MANIFEST_END */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__root.d.ts","sourceRoot":"","sources":["../../../src/routes/__root.tsx"],"names":[],"mappings":"AAyBA,eAAO,MAAM,KAAK,sLAAiD,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { RouteWrapper } from '@/route-wrapper';
|
|
3
|
-
import { createRootRoute, Outlet } from '@tanstack/react-router';
|
|
4
|
-
import React, { Suspense } from 'react';
|
|
5
|
-
const TanStackRouterDevtools = process.env.NODE_ENV === 'production'
|
|
6
|
-
? () => null // Render nothing in production
|
|
7
|
-
: React.lazy(() =>
|
|
8
|
-
// Lazy load in development
|
|
9
|
-
import('@tanstack/router-devtools').then((res) => ({
|
|
10
|
-
default: res.TanStackRouterDevtools,
|
|
11
|
-
// For Embedded Mode
|
|
12
|
-
// default: res.TanStackRouterDevtoolsPanel
|
|
13
|
-
})));
|
|
14
|
-
const RouteComponent = () => (_jsxs(RouteWrapper, { children: [_jsx(Outlet, {}), _jsx(Suspense, { children: _jsx(TanStackRouterDevtools, {}) })] }));
|
|
15
|
-
export const Route = createRootRoute({ component: RouteComponent });
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const Route: import("@tanstack/react-router").Route<import("@tanstack/react-router").RootRoute<undefined, {}, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, {}, undefined, unknown, unknown>, "/flow/$id", "/flow/$id", "/flow/$id", "/flow/$id", undefined, Record<"id", string>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, {}, ({ params }: import("@tanstack/react-router").LoaderFnContext<import("@tanstack/react-router").RootRoute<undefined, {}, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, {}, undefined, unknown, unknown>, "/flow/$id", Record<"id", string>, {}, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext>) => Promise<{
|
|
2
|
-
flow: any;
|
|
3
|
-
}>, unknown>;
|
|
4
|
-
//# sourceMappingURL=$id.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"$id.d.ts","sourceRoot":"","sources":["../../../../src/routes/flow/$id.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK;;YAOhB,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { FlowView } from '@/views/flow/flow-view';
|
|
3
|
-
import { createFileRoute } from '@tanstack/react-router';
|
|
4
|
-
export const Route = createFileRoute('/flow/$id')({
|
|
5
|
-
component: Flow,
|
|
6
|
-
loader: async ({ params }) => {
|
|
7
|
-
return fetch(`/flows/${params.id}`)
|
|
8
|
-
.then((res) => res.json())
|
|
9
|
-
.then((flow) => ({ flow }));
|
|
10
|
-
},
|
|
11
|
-
});
|
|
12
|
-
function Flow() {
|
|
13
|
-
const { flow } = Route.useLoaderData();
|
|
14
|
-
return (_jsx("div", { className: "w-screen h-screen", children: _jsx(FlowView, { flow: flow }) }));
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/index.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,mbAEhB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-logs.d.ts","sourceRoot":"","sources":["../../../src/stores/use-logs.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAG,GAAG;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,GAAG,EAAE,CAAA;IACX,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAA;IAC1B,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,OAAO,wEAIjB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arrow-head.d.ts","sourceRoot":"","sources":["../../../../src/views/flow/arrow-head.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAKrC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-edge.d.ts","sourceRoot":"","sources":["../../../../src/views/flow/base-edge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,SAAS,EAAqB,MAAM,eAAe,CAAA;AAC3F,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA2BxC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flow-loader.d.ts","sourceRoot":"","sources":["../../../../src/views/flow/flow-loader.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,+CAEtB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flow-view.d.ts","sourceRoot":"","sources":["../../../../src/views/flow/flow-view.tsx"],"names":[],"mappings":"AACA,OAAO,8BAA8B,CAAA;AAGrC,OAAO,EAAmB,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAY1E,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,YAAY,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAmDpC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-get-flow-state.d.ts","sourceRoot":"","sources":["../../../../../src/views/flow/hooks/use-get-flow-state.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAgC,MAAM,eAAe,CAAA;AAExE,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAK9D,KAAK,IAAI,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAErD,KAAK,QAAQ,GAAG;IACd,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM,CAAA;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,YAAY,CAAC,EAAE,IAAI,EAAE,CAAA;IACrB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,QAAQ,EAAE,CAAA;IACjB,KAAK,EAAE,QAAQ,EAAE,CAAA;CAClB,CAAA;AAED,KAAK,QAAQ,GAAG;IACd,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,QAAQ,CAAA;CACf,CAAA;AAyCD,eAAO,MAAM,eAAe,SAAU,YAAY;;;;;;CAgBjD,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-organize-nodes.d.ts","sourceRoot":"","sources":["../../../../../src/views/flow/hooks/use-organize-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAG1C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AA0C3E,eAAO,MAAM,gBAAgB,UACpB,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,EAAE,SACnC,IAAI,CAAC,QAAQ,CAAC,EAAE,YACb,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,EAAE,KAAK,IAAI,SAW/D,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"legend.d.ts","sourceRoot":"","sources":["../../../../src/views/flow/legend.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,gBAAiB;IAAE,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;CAAE,4CA+F7E,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-organizer.d.ts","sourceRoot":"","sources":["../../../../src/views/flow/node-organizer.tsx"],"names":[],"mappings":"AA6CA,KAAK,KAAK,GAAG;IACX,aAAa,EAAE,MAAM,IAAI,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAoBzC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-flow-node.d.ts","sourceRoot":"","sources":["../../../../../src/views/flow/nodes/api-flow-node.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,eAAO,MAAM,WAAW,aAAc;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,4CAE1D,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-flow-node.d.ts","sourceRoot":"","sources":["../../../../../src/views/flow/nodes/event-flow-node.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AAErE,eAAO,MAAM,aAAa,aAAc,cAAc,4CAErD,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { JSONSchema7 } from 'json-schema';
|
|
2
|
-
interface JsonSchemaFormProps {
|
|
3
|
-
schema: JSONSchema7;
|
|
4
|
-
formData?: any;
|
|
5
|
-
onChange?: (data: any) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const JsonSchemaForm: React.FC<JsonSchemaFormProps>;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=json-schema-form.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"json-schema-form.d.ts","sourceRoot":"","sources":["../../../../../src/views/flow/nodes/json-schema-form.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAOzC,UAAU,mBAAmB;IAC3B,MAAM,EAAE,WAAW,CAAA;IACnB,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAA;CAC/B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA+FxD,CAAA"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState } from 'react';
|
|
3
|
-
import { Input } from '@/components/ui/input';
|
|
4
|
-
import { Label } from '@/components/ui/label';
|
|
5
|
-
import { Switch } from '@/components/ui/switch';
|
|
6
|
-
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select';
|
|
7
|
-
import { Textarea } from '@/components/ui/textarea';
|
|
8
|
-
export const JsonSchemaForm = ({ schema, formData = {}, onChange }) => {
|
|
9
|
-
const [values, setValues] = useState(formData);
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
onChange?.(values);
|
|
12
|
-
}, [values, onChange]);
|
|
13
|
-
const renderField = (propertyName, propertySchema) => {
|
|
14
|
-
const value = values[propertyName];
|
|
15
|
-
switch (propertySchema.type) {
|
|
16
|
-
case 'string':
|
|
17
|
-
if (propertySchema.enum) {
|
|
18
|
-
return (_jsxs("div", { className: "space-y-2", children: [_jsx(Label, { children: propertySchema.title || propertyName }), _jsxs(Select, { value: value, onValueChange: (newValue) => setValues({ ...values, [propertyName]: newValue }), children: [_jsx(SelectTrigger, { children: _jsx(SelectValue, { placeholder: propertySchema.description || `Select ${propertyName}` }) }), _jsx(SelectContent, { children: propertySchema.enum.map((option) => (_jsx(SelectItem, { value: String(option), children: String(option) }, String(option)))) })] })] }, propertyName));
|
|
19
|
-
}
|
|
20
|
-
if (propertySchema.format === 'textarea') {
|
|
21
|
-
return (_jsxs("div", { className: "space-y-2", children: [_jsx(Label, { children: propertySchema.title || propertyName }), _jsx(Textarea, { placeholder: propertySchema.description, value: value || '', onChange: (e) => setValues({ ...values, [propertyName]: e.target.value }) })] }, propertyName));
|
|
22
|
-
}
|
|
23
|
-
return (_jsxs("div", { className: "space-y-2", children: [_jsx(Label, { children: propertySchema.title || propertyName }), _jsx(Input, { type: "text", placeholder: propertySchema.description, value: value || '', onChange: (e) => setValues({ ...values, [propertyName]: e.target.value }) })] }, propertyName));
|
|
24
|
-
case 'number':
|
|
25
|
-
case 'integer':
|
|
26
|
-
return (_jsxs("div", { className: "space-y-2", children: [_jsx(Label, { children: propertySchema.title || propertyName }), _jsx(Input, { type: "number", placeholder: propertySchema.description, value: value || '', onChange: (e) => setValues({ ...values, [propertyName]: Number(e.target.value) }) })] }, propertyName));
|
|
27
|
-
case 'boolean':
|
|
28
|
-
return (_jsxs("div", { className: "flex items-center space-x-2", children: [_jsx(Switch, { checked: value || false, onCheckedChange: (checked) => setValues({ ...values, [propertyName]: checked }) }), _jsx(Label, { children: propertySchema.title || propertyName })] }, propertyName));
|
|
29
|
-
default:
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
return (_jsx("form", { className: "space-y-4", children: schema.properties &&
|
|
34
|
-
Object.entries(schema.properties).map(([propertyName, propertySchema]) => renderField(propertyName, propertySchema)) }));
|
|
35
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"language-indicator.d.ts","sourceRoot":"","sources":["../../../../../src/views/flow/nodes/language-indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAE7C,KAAK,KAAK,GAAG;IAAE,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,CAAA;CAAE,CAAA;AAEpD,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,KAAK,CAoEvC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nodes.types.d.ts","sourceRoot":"","sources":["../../../../../src/views/flow/nodes/nodes.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzC,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACvD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,WAAW,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG,WAAW,GAAG,YAAY,CAAA;AAGjE,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;CAC7B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"noop-flow-node.d.ts","sourceRoot":"","sources":["../../../../../src/views/flow/nodes/noop-flow-node.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE5C,eAAO,MAAM,YAAY,aAAc;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,4CAE5D,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tailwind.config.d.ts","sourceRoot":"","sources":["../tailwind.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAGpC,QAAA,MAAM,MAAM,EAAE,MAqEb,CAAA;AAED,eAAe,MAAM,CAAA"}
|
package/dist/vite.config.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":"AAKA,wCAAwC;;;;;;;;;AACxC,wBAOC"}
|
package/dist/vite.config.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const plugin_react_1 = __importDefault(require("@vitejs/plugin-react"));
|
|
7
|
-
const path_1 = __importDefault(require("path"));
|
|
8
|
-
const vite_1 = require("@tanstack/router-plugin/vite");
|
|
9
|
-
// https://vite.dev/config/
|
|
10
|
-
/** @type {import('vite').UserConfig} */
|
|
11
|
-
exports.default = {
|
|
12
|
-
plugins: [(0, vite_1.TanStackRouterVite)(), (0, plugin_react_1.default)()],
|
|
13
|
-
resolve: {
|
|
14
|
-
alias: {
|
|
15
|
-
'@': path_1.default.resolve(__dirname, './src'),
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
};
|
package/eslint.config.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import js from '@eslint/js'
|
|
2
|
-
import globals from 'globals'
|
|
3
|
-
import reactHooks from 'eslint-plugin-react-hooks'
|
|
4
|
-
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
5
|
-
import tseslint from 'typescript-eslint'
|
|
6
|
-
|
|
7
|
-
export default tseslint.config(
|
|
8
|
-
{ ignores: ['dist'] },
|
|
9
|
-
{
|
|
10
|
-
extends: [js.configs.recommended, ...tseslint.configs.recommended],
|
|
11
|
-
files: ['**/*.{ts,tsx}'],
|
|
12
|
-
languageOptions: {
|
|
13
|
-
ecmaVersion: 2020,
|
|
14
|
-
globals: globals.browser,
|
|
15
|
-
},
|
|
16
|
-
plugins: {
|
|
17
|
-
'react-hooks': reactHooks,
|
|
18
|
-
'react-refresh': reactRefresh,
|
|
19
|
-
},
|
|
20
|
-
rules: {
|
|
21
|
-
...reactHooks.configs.recommended.rules,
|
|
22
|
-
'react-refresh/only-export-components': [
|
|
23
|
-
'warn',
|
|
24
|
-
{ allowConstantExport: true },
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
)
|
package/index.html
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
|
|
6
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
7
|
-
<link
|
|
8
|
-
href="https://fonts.googleapis.com/css2?family=PT+Sans:wght@0,200..1000;1,200..1000&display=swap&family=PT+Mono:wght@0,200..1000;1,200..1000&display=swap"
|
|
9
|
-
rel="stylesheet"
|
|
10
|
-
/>
|
|
11
|
-
|
|
12
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
13
|
-
<title>Motia</title>
|
|
14
|
-
</head>
|
|
15
|
-
<body class="dark">
|
|
16
|
-
<div id="root"></div>
|
|
17
|
-
<script type="module" src="/src/main.tsx"></script>
|
|
18
|
-
</body>
|
|
19
|
-
</html>
|
package/index.tsx
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { EventNode } from './src/publicComponents/event-node'
|
|
2
|
-
export { ApiNode } from './src/publicComponents/api-node'
|
|
3
|
-
export { NoopNode } from './src/publicComponents/noop-node'
|
|
4
|
-
export { BaseNode } from './src/publicComponents/base-node'
|
|
5
|
-
export { BaseHandle } from './src/publicComponents/base-handle'
|
|
6
|
-
|
|
7
|
-
export { Position } from '@xyflow/react'
|
|
8
|
-
export type { EventNodeData, ApiNodeData } from './src/views/flow/nodes/nodes.types'
|
|
9
|
-
export * from './src/publicComponents/node-props'
|
|
10
|
-
export { Button } from './src/components/ui/button'
|
package/middleware.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import tailwindcssConfig from './tailwind.config'
|
|
2
|
-
|
|
3
|
-
export const applyMiddleware = async (app: any) => {
|
|
4
|
-
// NOTE: this is needed since vite is an ESM https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated
|
|
5
|
-
const fs = await import('fs')
|
|
6
|
-
const path = await import('path')
|
|
7
|
-
const { default: Express } = await import('express')
|
|
8
|
-
const { createServer } = await import('vite')
|
|
9
|
-
const { default: autoprefixer } = await import('autoprefixer')
|
|
10
|
-
const { default: tailwindcss } = await import('tailwindcss')
|
|
11
|
-
|
|
12
|
-
const vite = await createServer({
|
|
13
|
-
appType: 'spa',
|
|
14
|
-
root: __dirname,
|
|
15
|
-
|
|
16
|
-
server: {
|
|
17
|
-
middlewareMode: true,
|
|
18
|
-
fs: {
|
|
19
|
-
allow: [__dirname, path.join(process.cwd(), './steps')],
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
resolve: {
|
|
23
|
-
alias: { '@': path.resolve(__dirname, './src') },
|
|
24
|
-
},
|
|
25
|
-
css: {
|
|
26
|
-
postcss: {
|
|
27
|
-
plugins: [autoprefixer(), tailwindcss(tailwindcssConfig)],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
app.use(vite.middlewares)
|
|
33
|
-
|
|
34
|
-
app.use('*', async (req: typeof Express.request, res: typeof Express.response, next: any) => {
|
|
35
|
-
const url = req.originalUrl
|
|
36
|
-
|
|
37
|
-
console.log('[UI] Request', { url })
|
|
38
|
-
|
|
39
|
-
try {
|
|
40
|
-
const index = fs.readFileSync(path.resolve(__dirname, 'index.html'), 'utf-8')
|
|
41
|
-
const html = await vite.transformIndexHtml(url, index)
|
|
42
|
-
|
|
43
|
-
res.status(200).set({ 'Content-Type': 'text/html' }).end(html)
|
|
44
|
-
} catch (e) {
|
|
45
|
-
next(e)
|
|
46
|
-
}
|
|
47
|
-
})
|
|
48
|
-
}
|
package/postcss.config.js
DELETED
package/src/assets/.empty
DELETED
|
File without changes
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { useListFlows } from '@/hooks/use-list-flows'
|
|
2
|
-
import {
|
|
3
|
-
Sidebar,
|
|
4
|
-
SidebarContent,
|
|
5
|
-
SidebarFooter,
|
|
6
|
-
SidebarGroup,
|
|
7
|
-
SidebarGroupContent,
|
|
8
|
-
SidebarGroupLabel,
|
|
9
|
-
SidebarHeader,
|
|
10
|
-
SidebarMenu,
|
|
11
|
-
SidebarMenuButton,
|
|
12
|
-
SidebarMenuItem,
|
|
13
|
-
} from './ui/sidebar'
|
|
14
|
-
import { Workflow } from 'lucide-react'
|
|
15
|
-
import { Link, useMatchRoute } from '@tanstack/react-router'
|
|
16
|
-
|
|
17
|
-
export const AppSidebar = () => {
|
|
18
|
-
const { flows } = useListFlows()
|
|
19
|
-
const matchRoute = useMatchRoute()
|
|
20
|
-
|
|
21
|
-
const isActive = (flowId: string) => {
|
|
22
|
-
return !!matchRoute({ to: '/flow/$id', params: { id: flowId } })
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<Sidebar>
|
|
27
|
-
<SidebarHeader />
|
|
28
|
-
<SidebarContent>
|
|
29
|
-
<SidebarGroup>
|
|
30
|
-
<SidebarGroupLabel>Flows</SidebarGroupLabel>
|
|
31
|
-
<SidebarGroupContent>
|
|
32
|
-
<SidebarMenu>
|
|
33
|
-
{flows.map((flow) => (
|
|
34
|
-
<SidebarMenuItem key={flow.id}>
|
|
35
|
-
<SidebarMenuButton asChild className="cursor-pointer" isActive={isActive(flow.id)}>
|
|
36
|
-
<Link
|
|
37
|
-
to="/flow/$id"
|
|
38
|
-
params={{ id: flow.id }}
|
|
39
|
-
className="flex items-center gap-2"
|
|
40
|
-
data-testid={`flow-link-${flow.id}`}
|
|
41
|
-
>
|
|
42
|
-
<Workflow />
|
|
43
|
-
<span>{flow.name}</span>
|
|
44
|
-
</Link>
|
|
45
|
-
</SidebarMenuButton>
|
|
46
|
-
</SidebarMenuItem>
|
|
47
|
-
))}
|
|
48
|
-
</SidebarMenu>
|
|
49
|
-
</SidebarGroupContent>
|
|
50
|
-
</SidebarGroup>
|
|
51
|
-
</SidebarContent>
|
|
52
|
-
<SidebarFooter />
|
|
53
|
-
</Sidebar>
|
|
54
|
-
)
|
|
55
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { Collapsible, CollapsibleContent } from '@/components/ui/collapsible'
|
|
2
|
-
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table'
|
|
3
|
-
import { useLogs } from '@/stores/use-logs'
|
|
4
|
-
import { motion } from 'framer-motion'
|
|
5
|
-
import { ChevronDown, ChevronUp, Trash2 } from 'lucide-react'
|
|
6
|
-
import { useState } from 'react'
|
|
7
|
-
import { LogLevelBadge } from './log-level-badge'
|
|
8
|
-
import { Button } from './ui/button'
|
|
9
|
-
|
|
10
|
-
const timestamp = (time: number) => {
|
|
11
|
-
const date = new Date(Number(time))
|
|
12
|
-
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const LogConsole = () => {
|
|
16
|
-
const [isExpanded, setIsExpanded] = useState(false)
|
|
17
|
-
const logs = useLogs((state) => state.logs)
|
|
18
|
-
const resetLogs = useLogs((state) => state.resetLogs)
|
|
19
|
-
const toggleExpand = () => setIsExpanded((prev) => !prev)
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<div className="absolute bottom-0 left-0 right-0 w-full bg-black h-fit z-40">
|
|
23
|
-
<div className="flex justify-between w-full items-center p-2">
|
|
24
|
-
<label className="text-green-500 w-full text-left justify-start h-full text-lg font-bold">Logs</label>
|
|
25
|
-
{logs.length > 0 && (
|
|
26
|
-
<Button variant="link" onClick={resetLogs} className="text-green-500">
|
|
27
|
-
<Trash2 className="w-4 h-4 text-green-500" />
|
|
28
|
-
Clear logs
|
|
29
|
-
</Button>
|
|
30
|
-
)}
|
|
31
|
-
<Button variant="link" onClick={toggleExpand} className="text-green-500">
|
|
32
|
-
{isExpanded && <ChevronDown className="w-4 h-4 text-green-500" />}
|
|
33
|
-
{!isExpanded && <ChevronUp className="w-4 h-4 text-green-500" />}
|
|
34
|
-
</Button>
|
|
35
|
-
</div>
|
|
36
|
-
{isExpanded && <div className="divide-solid divide-green-500 divide-y" />}
|
|
37
|
-
<Collapsible open={isExpanded} className={`w-full`}>
|
|
38
|
-
<CollapsibleContent>
|
|
39
|
-
<motion.div
|
|
40
|
-
className="overflow-y-auto h-[25vh] flex flex-col gap-2 py-2"
|
|
41
|
-
initial={{ height: 0 }}
|
|
42
|
-
animate={{ height: '25vh' }}
|
|
43
|
-
transition={{ duration: 0.3 }}
|
|
44
|
-
>
|
|
45
|
-
<Table>
|
|
46
|
-
<TableHeader className="sticky top-0 bg-black">
|
|
47
|
-
<TableRow>
|
|
48
|
-
<TableHead>Time</TableHead>
|
|
49
|
-
<TableHead>Level</TableHead>
|
|
50
|
-
<TableHead>Trace</TableHead>
|
|
51
|
-
<TableHead>Flow</TableHead>
|
|
52
|
-
<TableHead>Message</TableHead>
|
|
53
|
-
<TableHead>File</TableHead>
|
|
54
|
-
</TableRow>
|
|
55
|
-
</TableHeader>
|
|
56
|
-
<TableBody className="text-md font-mono font-bold">
|
|
57
|
-
{logs.map((log, index) => (
|
|
58
|
-
<TableRow key={index}>
|
|
59
|
-
<TableCell className="text-green-500">{timestamp(log.time)}</TableCell>
|
|
60
|
-
<TableCell>
|
|
61
|
-
<LogLevelBadge level={log.level} />
|
|
62
|
-
</TableCell>
|
|
63
|
-
<TableCell>{log.traceId.split('-').pop()}</TableCell>
|
|
64
|
-
<TableCell>{log.flows?.join?.(', ')}</TableCell>
|
|
65
|
-
<TableCell>{log.msg}</TableCell>
|
|
66
|
-
<TableCell>{log.file}</TableCell>
|
|
67
|
-
</TableRow>
|
|
68
|
-
))}
|
|
69
|
-
</TableBody>
|
|
70
|
-
</Table>
|
|
71
|
-
</motion.div>
|
|
72
|
-
</CollapsibleContent>
|
|
73
|
-
</Collapsible>
|
|
74
|
-
</div>
|
|
75
|
-
)
|
|
76
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Badge, BadgeProps } from './ui/badge'
|
|
2
|
-
|
|
3
|
-
export const LogLevelBadge: React.FC<{ level: string }> = (props) => {
|
|
4
|
-
const map: Record<string, BadgeProps['variant']> = {
|
|
5
|
-
info: 'info',
|
|
6
|
-
error: 'error',
|
|
7
|
-
warn: 'warning',
|
|
8
|
-
debug: 'info',
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
return <Badge variant={map[props.level] as BadgeProps['variant']}>{props.level}</Badge>
|
|
12
|
-
}
|