@powerhousedao/workflow 6.2.3-dev.29 → 6.2.3-dev.31
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/README.md +8 -8
- package/dist/browser/BlockSelector-BHJQOhie.js +3051 -0
- package/dist/browser/BlockSelector-BHJQOhie.js.map +1 -0
- package/dist/browser/{connection-form-D-NETdDQ.js → connection-form-CaduwBiu.js} +349 -50
- package/dist/browser/connection-form-CaduwBiu.js.map +1 -0
- package/dist/browser/{data-tree-DA4sc7B7.js → data-tree-8219PVfh.js} +2 -2
- package/dist/browser/{data-tree-DA4sc7B7.js.map → data-tree-8219PVfh.js.map} +1 -1
- package/dist/browser/document-models/index.js +2 -2
- package/dist/browser/document-models/workflow/index.js +3 -3
- package/dist/browser/{document-models-BohsduV4.js → document-models-C1ZgIZyV.js} +7 -2
- package/dist/browser/{document-models-BohsduV4.js.map → document-models-C1ZgIZyV.js.map} +1 -1
- package/dist/browser/{editor-B6N0PCuZ.js → editor-BHV1MZS8.js} +2437 -6283
- package/dist/browser/editor-BHV1MZS8.js.map +1 -0
- package/dist/{node/editor-StBssjcQ.mjs → browser/editor-C0C1eB0R.js} +385 -119
- package/dist/browser/editor-C0C1eB0R.js.map +1 -0
- package/dist/browser/{editor-BkdwuOC-.js → editor-CFcXlZY2.js} +14 -24
- package/dist/browser/editor-CFcXlZY2.js.map +1 -0
- package/dist/browser/editors/connection-editor/module.js +1 -1
- package/dist/browser/editors/workflow-editor/module.js +1 -1
- package/dist/browser/editors/workflow-studio/module.js +1 -1
- package/dist/browser/index.js +97 -43
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/{module-Bkms70LV.js → module-DU2vb3FH.js} +574 -94
- package/dist/browser/module-DU2vb3FH.js.map +1 -0
- package/dist/browser/{piece-auth-Z4mZEOtL.js → piece-auth-BS5CtQOG.js} +45 -12
- package/dist/browser/piece-auth-BS5CtQOG.js.map +1 -0
- package/dist/browser/reactor/index.js +2 -2
- package/dist/browser/runtime-queries-Ds2kk-Ow.js +2535 -0
- package/dist/browser/runtime-queries-Ds2kk-Ow.js.map +1 -0
- package/dist/browser/trigger-text-BkcklsMX.js +5569 -0
- package/dist/browser/trigger-text-BkcklsMX.js.map +1 -0
- package/dist/browser/{upgrade-manifests-BLrv3cf2.js → upgrade-manifests-BpakVE9l.js} +2 -2
- package/dist/browser/{upgrade-manifests-BLrv3cf2.js.map → upgrade-manifests-BpakVE9l.js.map} +1 -1
- package/dist/browser/{workflow-CGtVlhr8.js → workflow-BxShRhVy.js} +3 -2
- package/dist/browser/workflow-BxShRhVy.js.map +1 -0
- package/dist/node/BlockSelector-lOcIiaqt.mjs +3055 -0
- package/dist/node/BlockSelector-lOcIiaqt.mjs.map +1 -0
- package/dist/node/{connection-form-C9vbfSnA.mjs → connection-form-DWt29kft.mjs} +349 -50
- package/dist/node/connection-form-DWt29kft.mjs.map +1 -0
- package/dist/node/{data-tree-CbqpF3lC.mjs → data-tree-Cdx85Y19.mjs} +2 -2
- package/dist/node/{data-tree-CbqpF3lC.mjs.map → data-tree-Cdx85Y19.mjs.map} +1 -1
- package/dist/node/document-models/index.mjs +2 -2
- package/dist/node/document-models/workflow/index.mjs +3 -3
- package/dist/{browser/editor-CZ5NvCyv.js → node/editor-CR823u-y.mjs} +385 -119
- package/dist/node/editor-CR823u-y.mjs.map +1 -0
- package/dist/node/{editor-DP36YDk5.mjs → editor-CwX-G2Jv.mjs} +2437 -7479
- package/dist/node/editor-CwX-G2Jv.mjs.map +1 -0
- package/dist/node/{editor-By9BHI8e.mjs → editor-D_t8OtZn.mjs} +14 -24
- package/dist/node/editor-D_t8OtZn.mjs.map +1 -0
- package/dist/node/editors/connection-editor/module.mjs +1 -1
- package/dist/node/editors/workflow-editor/module.mjs +1 -1
- package/dist/node/editors/workflow-studio/module.mjs +1 -1
- package/dist/node/index.mjs +102 -43
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/{module-DuxxhgKs.mjs → module-Dhe5E-VA.mjs} +574 -94
- package/dist/node/module-Dhe5E-VA.mjs.map +1 -0
- package/dist/node/{piece-auth-Z4mZEOtL.mjs → piece-auth-BS5CtQOG.mjs} +45 -12
- package/dist/node/piece-auth-BS5CtQOG.mjs.map +1 -0
- package/dist/node/pieces/index.mjs +0 -1
- package/dist/node/pieces/index.mjs.map +1 -1
- package/dist/node/pieces/reactor/descriptor.json +85 -3
- package/dist/node/pieces/reactor/index.mjs +14843 -163
- package/dist/node/pieces/reactor/index.mjs.map +1 -1
- package/dist/node/pieces/reactor/package.json +1 -1
- package/dist/node/runtime-queries-D5EGaCrH.mjs +2544 -0
- package/dist/node/runtime-queries-D5EGaCrH.mjs.map +1 -0
- package/dist/node/trigger-text-DJIAQBWg.mjs +6765 -0
- package/dist/node/trigger-text-DJIAQBWg.mjs.map +1 -0
- package/dist/node/{upgrade-manifests-C1sl_M-H.mjs → upgrade-manifests-CmNd742Y.mjs} +2 -2
- package/dist/node/{upgrade-manifests-C1sl_M-H.mjs.map → upgrade-manifests-CmNd742Y.mjs.map} +1 -1
- package/dist/node/{workflow-C-uuQPnf.mjs → workflow-CGzYGZnr.mjs} +3 -2
- package/dist/node/workflow-CGzYGZnr.mjs.map +1 -0
- package/dist/powerhouse.manifest.json +6 -1
- package/dist/style.css +151 -19
- package/dist/types/ai/tools.d.ts +3 -1
- package/dist/types/ai/tools.d.ts.map +1 -1
- package/dist/types/ai/workflow-tools.d.ts.map +1 -1
- package/dist/types/document-models/document-models.d.ts +3 -0
- package/dist/types/document-models/document-models.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/actions.d.ts +3 -0
- package/dist/types/document-models/workflow/v1/actions.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/actions.d.ts +3 -1
- package/dist/types/document-models/workflow/v1/gen/actions.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/creators.d.ts +2 -0
- package/dist/types/document-models/workflow/v1/gen/creators.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/document-model.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/document-schema.d.ts +3 -0
- package/dist/types/document-models/workflow/v1/gen/document-schema.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/index.d.ts +1 -0
- package/dist/types/document-models/workflow/v1/gen/index.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/ph-factories.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/publishing/actions.d.ts +16 -0
- package/dist/types/document-models/workflow/v1/gen/publishing/actions.d.ts.map +1 -0
- package/dist/types/document-models/workflow/v1/gen/publishing/creators.d.ts +5 -0
- package/dist/types/document-models/workflow/v1/gen/publishing/creators.d.ts.map +1 -0
- package/dist/types/document-models/workflow/v1/gen/publishing/error.d.ts +14 -0
- package/dist/types/document-models/workflow/v1/gen/publishing/error.d.ts.map +1 -0
- package/dist/types/document-models/workflow/v1/gen/publishing/operations.d.ts +12 -0
- package/dist/types/document-models/workflow/v1/gen/publishing/operations.d.ts.map +1 -0
- package/dist/types/document-models/workflow/v1/gen/reducer.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/runtime/actions.d.ts +6 -2
- package/dist/types/document-models/workflow/v1/gen/runtime/actions.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/runtime/creators.d.ts +3 -2
- package/dist/types/document-models/workflow/v1/gen/runtime/creators.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/runtime/error.d.ts +13 -1
- package/dist/types/document-models/workflow/v1/gen/runtime/error.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/runtime/operations.d.ts +2 -1
- package/dist/types/document-models/workflow/v1/gen/runtime/operations.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/schema/types.d.ts +102 -12
- package/dist/types/document-models/workflow/v1/gen/schema/types.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/schema/zod.d.ts +21 -1
- package/dist/types/document-models/workflow/v1/gen/schema/zod.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/steps/error.d.ts +26 -1
- package/dist/types/document-models/workflow/v1/gen/steps/error.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/trigger/error.d.ts +13 -1
- package/dist/types/document-models/workflow/v1/gen/trigger/error.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/utils.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/variables/error.d.ts +13 -1
- package/dist/types/document-models/workflow/v1/gen/variables/error.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/workflow/error.d.ts +13 -1
- package/dist/types/document-models/workflow/v1/gen/workflow/error.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/module.d.ts +3 -0
- package/dist/types/document-models/workflow/v1/module.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/src/helpers.d.ts +15 -0
- package/dist/types/document-models/workflow/v1/src/helpers.d.ts.map +1 -0
- package/dist/types/document-models/workflow/v1/src/reducers/edges.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/src/reducers/publishing.d.ts +3 -0
- package/dist/types/document-models/workflow/v1/src/reducers/publishing.d.ts.map +1 -0
- package/dist/types/document-models/workflow/v1/src/reducers/runtime.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/src/reducers/steps.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/src/reducers/trigger.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/src/reducers/variables.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/src/reducers/workflow.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/tests/block-validation-and-enable.test.d.ts +2 -0
- package/dist/types/document-models/workflow/v1/tests/block-validation-and-enable.test.d.ts.map +1 -0
- package/dist/types/document-models/workflow/v1/tests/config-and-variables.test.d.ts +2 -0
- package/dist/types/document-models/workflow/v1/tests/config-and-variables.test.d.ts.map +1 -0
- package/dist/types/document-models/workflow/v1/tests/draft-and-publish.test.d.ts +2 -0
- package/dist/types/document-models/workflow/v1/tests/draft-and-publish.test.d.ts.map +1 -0
- package/dist/types/document-models/workflow/v1/tests/updated-at.test.d.ts +2 -0
- package/dist/types/document-models/workflow/v1/tests/updated-at.test.d.ts.map +1 -0
- package/dist/types/editors/connection-editor/ConnectionToolbar.d.ts.map +1 -1
- package/dist/types/editors/connection-editor/UsedBy.d.ts.map +1 -1
- package/dist/types/editors/connection-editor/connection-callbacks.d.ts.map +1 -1
- package/dist/types/editors/connection-editor/connection-form.d.ts +2 -1
- package/dist/types/editors/connection-editor/connection-form.d.ts.map +1 -1
- package/dist/types/editors/connection-editor/connection-usage.d.ts +3 -2
- package/dist/types/editors/connection-editor/connection-usage.d.ts.map +1 -1
- package/dist/types/editors/connection-editor/editor.d.ts.map +1 -1
- package/dist/types/editors/connection-editor/piece-auth.d.ts +7 -1
- package/dist/types/editors/connection-editor/piece-auth.d.ts.map +1 -1
- package/dist/types/editors/connection-editor/status.d.ts +2 -1
- package/dist/types/editors/connection-editor/status.d.ts.map +1 -1
- package/dist/types/editors/shared/controls.d.ts +17 -1
- package/dist/types/editors/shared/controls.d.ts.map +1 -1
- package/dist/types/editors/shared/editor-chrome.d.ts +2 -0
- package/dist/types/editors/shared/editor-chrome.d.ts.map +1 -1
- package/dist/types/editors/shared/icons.d.ts +2 -0
- package/dist/types/editors/shared/icons.d.ts.map +1 -1
- package/dist/types/editors/shared/undo-plan.d.ts +20 -0
- package/dist/types/editors/shared/undo-plan.d.ts.map +1 -0
- package/dist/types/editors/shared/undo-plan.test.d.ts +2 -0
- package/dist/types/editors/shared/undo-plan.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/document/useWorkflowModel.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/editor.d.ts +0 -1
- package/dist/types/editors/workflow-editor/editor.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/run-kinds.d.ts +5 -0
- package/dist/types/editors/workflow-editor/run-kinds.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/runtime-api.d.ts +12 -139
- package/dist/types/editors/workflow-editor/runtime-api.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/runtime-client.d.ts +260 -0
- package/dist/types/editors/workflow-editor/runtime-client.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/runtime-client.test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/runtime-client.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/runtime-context.d.ts +45 -0
- package/dist/types/editors/workflow-editor/runtime-context.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/runtime-persist.d.ts +23 -0
- package/dist/types/editors/workflow-editor/runtime-persist.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/runtime-persist.test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/runtime-persist.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/runtime-queries.d.ts +128 -0
- package/dist/types/editors/workflow-editor/runtime-queries.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/BlockSelector.d.ts +3 -3
- package/dist/types/editors/workflow-editor/ui/BlockSelector.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/CanvasContextMenu.d.ts +4 -3
- package/dist/types/editors/workflow-editor/ui/CanvasContextMenu.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/ConnectionField.d.ts +2 -3
- package/dist/types/editors/workflow-editor/ui/ConnectionField.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/CreateConnectionModal.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/ExpressionPicker.d.ts +6 -5
- package/dist/types/editors/workflow-editor/ui/ExpressionPicker.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/PropertyForm.d.ts +7 -1
- package/dist/types/editors/workflow-editor/ui/PropertyForm.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/PublishControls.d.ts +34 -0
- package/dist/types/editors/workflow-editor/ui/PublishControls.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/ScheduleBuilder.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/StepPanel.d.ts +2 -3
- package/dist/types/editors/workflow-editor/ui/StepPanel.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/StepTest.d.ts +11 -0
- package/dist/types/editors/workflow-editor/ui/StepTest.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/VariablesEditor.d.ts +0 -1
- package/dist/types/editors/workflow-editor/ui/VariablesEditor.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/WorkflowCanvas.d.ts +1 -3
- package/dist/types/editors/workflow-editor/ui/WorkflowCanvas.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/WorkflowEditorApp.d.ts +1 -3
- package/dist/types/editors/workflow-editor/ui/WorkflowEditorApp.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/add-follow-up.d.ts +31 -0
- package/dist/types/editors/workflow-editor/ui/add-follow-up.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/add-follow-up.test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/add-follow-up.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/ap-edge.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/ap-layout.d.ts +2 -1
- package/dist/types/editors/workflow-editor/ui/ap-layout.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/ap-nodes.d.ts +7 -9
- package/dist/types/editors/workflow-editor/ui/ap-nodes.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/block-meta.d.ts +10 -5
- package/dist/types/editors/workflow-editor/ui/block-meta.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/blocks.d.ts +43 -2
- package/dist/types/editors/workflow-editor/ui/blocks.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/blocks.test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/blocks.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/canvas-menu.d.ts +4 -2
- package/dist/types/editors/workflow-editor/ui/canvas-menu.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/connection-create.d.ts +3 -3
- package/dist/types/editors/workflow-editor/ui/connection-create.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/design-time.d.ts +92 -0
- package/dist/types/editors/workflow-editor/ui/design-time.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/design-time.test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/design-time.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/expression-scope.d.ts +10 -2
- package/dist/types/editors/workflow-editor/ui/expression-scope.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/forms.d.ts +35 -6
- package/dist/types/editors/workflow-editor/ui/forms.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/model.d.ts +58 -13
- package/dist/types/editors/workflow-editor/ui/model.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/piece-source.d.ts +11 -6
- package/dist/types/editors/workflow-editor/ui/piece-source.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/prop-controls.d.ts +5 -0
- package/dist/types/editors/workflow-editor/ui/prop-controls.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/prop-controls.test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/prop-controls.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/prop-defaults.d.ts +4 -0
- package/dist/types/editors/workflow-editor/ui/prop-defaults.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/prop-defaults.test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/prop-defaults.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/query-keys.d.ts +54 -0
- package/dist/types/editors/workflow-editor/ui/query-keys.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/schedule-draft.d.ts +3 -8
- package/dist/types/editors/workflow-editor/ui/schedule-draft.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/secret-ref.d.ts +18 -0
- package/dist/types/editors/workflow-editor/ui/secret-ref.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/step-test.d.ts +14 -0
- package/dist/types/editors/workflow-editor/ui/step-test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/step-test.test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/step-test.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/test-state.d.ts +7 -0
- package/dist/types/editors/workflow-editor/ui/test-state.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/trigger-text.d.ts +2 -1
- package/dist/types/editors/workflow-editor/ui/trigger-text.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/use-validity.d.ts +28 -0
- package/dist/types/editors/workflow-editor/ui/use-validity.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/validation.d.ts +33 -1
- package/dist/types/editors/workflow-editor/ui/validation.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/variable-types.d.ts +14 -0
- package/dist/types/editors/workflow-editor/ui/variable-types.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/variable-types.test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/variable-types.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/version-badge.d.ts +33 -0
- package/dist/types/editors/workflow-editor/ui/version-badge.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/version-badge.test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/version-badge.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/use-runtime-url.d.ts +0 -1
- package/dist/types/editors/workflow-editor/use-runtime-url.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/RunsTable.d.ts +1 -1
- package/dist/types/editors/workflow-studio/components/RunsTable.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/RunsView.d.ts +4 -1
- package/dist/types/editors/workflow-studio/components/RunsView.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/Sidebar.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/WorkflowBoard.d.ts +1 -1
- package/dist/types/editors/workflow-studio/components/WorkflowBoard.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/WorkflowHeader.d.ts +2 -1
- package/dist/types/editors/workflow-studio/components/WorkflowHeader.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/WorkflowMenu.d.ts +13 -0
- package/dist/types/editors/workflow-studio/components/WorkflowMenu.d.ts.map +1 -0
- package/dist/types/editors/workflow-studio/components/WorkflowSteps.d.ts +1 -1
- package/dist/types/editors/workflow-studio/components/WorkflowSteps.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/WorkflowStudio.d.ts +0 -1
- package/dist/types/editors/workflow-studio/components/WorkflowStudio.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/chain.d.ts +5 -3
- package/dist/types/editors/workflow-studio/components/chain.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/run-format.d.ts +11 -2
- package/dist/types/editors/workflow-studio/components/run-format.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/step-outline.d.ts +3 -1
- package/dist/types/editors/workflow-studio/components/step-outline.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/ui.d.ts +2 -0
- package/dist/types/editors/workflow-studio/components/ui.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/useRuns.d.ts +4 -1
- package/dist/types/editors/workflow-studio/components/useRuns.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/editor.d.ts.map +1 -1
- package/dist/types/pieces/index.d.ts.map +1 -1
- package/dist/types/pieces/reactor/lib/actions/action-list-prop.test.d.ts +2 -0
- package/dist/types/pieces/reactor/lib/actions/action-list-prop.test.d.ts.map +1 -0
- package/dist/types/pieces/reactor/lib/actions/document-create.d.ts +14 -1
- package/dist/types/pieces/reactor/lib/actions/document-create.d.ts.map +1 -1
- package/dist/types/pieces/reactor/lib/actions/document-dispatch.d.ts +14 -1
- package/dist/types/pieces/reactor/lib/actions/document-dispatch.d.ts.map +1 -1
- package/dist/types/pieces/reactor/lib/actions/document-get.d.ts +1 -0
- package/dist/types/pieces/reactor/lib/actions/document-get.d.ts.map +1 -1
- package/dist/types/pieces/reactor/lib/actions/document-schema.d.ts +1 -0
- package/dist/types/pieces/reactor/lib/actions/document-schema.d.ts.map +1 -1
- package/dist/types/pieces/reactor/lib/input-props.d.ts.map +1 -1
- package/dist/types/pieces/reactor/lib/input-schema.d.ts +11 -2
- package/dist/types/pieces/reactor/lib/input-schema.d.ts.map +1 -1
- package/dist/types/pieces/reactor/lib/parse.d.ts +22 -4
- package/dist/types/pieces/reactor/lib/parse.d.ts.map +1 -1
- package/dist/types/pieces/reactor/lib/reactor.d.ts +15 -1
- package/dist/types/pieces/reactor/lib/reactor.d.ts.map +1 -1
- package/dist/types/scripts/ui-stack.d.ts +53 -11
- package/dist/types/scripts/ui-stack.d.ts.map +1 -1
- package/dist/types/test/ui/block-picker.spec.d.ts +2 -0
- package/dist/types/test/ui/block-picker.spec.d.ts.map +1 -0
- package/dist/types/test/ui/branch.spec.d.ts +2 -0
- package/dist/types/test/ui/branch.spec.d.ts.map +1 -0
- package/dist/types/test/ui/canvas-logos.spec.d.ts +2 -0
- package/dist/types/test/ui/canvas-logos.spec.d.ts.map +1 -0
- package/dist/types/test/ui/fixtures.d.ts +1 -0
- package/dist/types/test/ui/fixtures.d.ts.map +1 -1
- package/dist/types/test/ui/global-setup.d.ts.map +1 -1
- package/dist/types/test/ui/harness/prop-controls.d.ts.map +1 -1
- package/dist/types/test/ui/piece-version.spec.d.ts +2 -0
- package/dist/types/test/ui/piece-version.spec.d.ts.map +1 -0
- package/dist/types/test/ui/ports.spec.d.ts +2 -0
- package/dist/types/test/ui/ports.spec.d.ts.map +1 -0
- package/dist/types/test/ui/publish.spec.d.ts +2 -0
- package/dist/types/test/ui/publish.spec.d.ts.map +1 -0
- package/dist/types/test/ui/step-test.spec.d.ts +2 -0
- package/dist/types/test/ui/step-test.spec.d.ts.map +1 -0
- package/dist/types/test/ui/variables.spec.d.ts +2 -0
- package/dist/types/test/ui/variables.spec.d.ts.map +1 -0
- package/dist/types/test/ui/webhook.spec.d.ts +2 -0
- package/dist/types/test/ui/webhook.spec.d.ts.map +1 -0
- package/dist/types/test/ui/workflow-menu.spec.d.ts +2 -0
- package/dist/types/test/ui/workflow-menu.spec.d.ts.map +1 -0
- package/package.json +11 -10
- package/dist/browser/BlockSelector-D24DIiSX.js +0 -1388
- package/dist/browser/BlockSelector-D24DIiSX.js.map +0 -1
- package/dist/browser/connection-form-D-NETdDQ.js.map +0 -1
- package/dist/browser/editor-B6N0PCuZ.js.map +0 -1
- package/dist/browser/editor-BkdwuOC-.js.map +0 -1
- package/dist/browser/editor-CZ5NvCyv.js.map +0 -1
- package/dist/browser/module-Bkms70LV.js.map +0 -1
- package/dist/browser/piece-auth-Z4mZEOtL.js.map +0 -1
- package/dist/browser/runtime-api-DDMQc4PB.js +0 -558
- package/dist/browser/runtime-api-DDMQc4PB.js.map +0 -1
- package/dist/browser/trigger-text-CUv5Z2Uk.js +0 -551
- package/dist/browser/trigger-text-CUv5Z2Uk.js.map +0 -1
- package/dist/browser/workflow-CGtVlhr8.js.map +0 -1
- package/dist/node/BlockSelector-CTmmpYxu.mjs +0 -1388
- package/dist/node/BlockSelector-CTmmpYxu.mjs.map +0 -1
- package/dist/node/connection-form-C9vbfSnA.mjs.map +0 -1
- package/dist/node/editor-By9BHI8e.mjs.map +0 -1
- package/dist/node/editor-DP36YDk5.mjs.map +0 -1
- package/dist/node/editor-StBssjcQ.mjs.map +0 -1
- package/dist/node/module-DuxxhgKs.mjs.map +0 -1
- package/dist/node/piece-auth-Z4mZEOtL.mjs.map +0 -1
- package/dist/node/runtime-api-DDMQc4PB.mjs +0 -558
- package/dist/node/runtime-api-DDMQc4PB.mjs.map +0 -1
- package/dist/node/trigger-text-Bzq6VfOQ.mjs +0 -551
- package/dist/node/trigger-text-Bzq6VfOQ.mjs.map +0 -1
- package/dist/node/workflow-C-uuQPnf.mjs.map +0 -1
- package/dist/types/editors/workflow-editor/runtime-api.test.d.ts +0 -2
- package/dist/types/editors/workflow-editor/runtime-api.test.d.ts.map +0 -1
- package/dist/types/editors/workflow-editor/runtime-piece-source.d.ts +0 -2
- package/dist/types/editors/workflow-editor/runtime-piece-source.d.ts.map +0 -1
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { QueryClient } from "@tanstack/react-query";
|
|
2
|
+
import type { BlockRef } from "@powerhousedao/pieces-framework/block-type";
|
|
3
|
+
import type { RunPage, RunRecord, RunsScope, RuntimeClient, StepTestResult } from "./runtime-client.js";
|
|
4
|
+
export declare function createRuntimeQueryClient(): QueryClient;
|
|
5
|
+
export declare const catalogQuery: (client: RuntimeClient) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("./runtime-client.js").PieceSummary[], Error, import("./runtime-client.js").PieceSummary[], readonly [string, "catalog"]>, "queryFn"> & {
|
|
6
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("./runtime-client.js").PieceSummary[], readonly [string, "catalog"], never> | undefined;
|
|
7
|
+
} & {
|
|
8
|
+
queryKey: readonly [string, "catalog"] & {
|
|
9
|
+
[dataTagSymbol]: import("./runtime-client.js").PieceSummary[];
|
|
10
|
+
[dataTagErrorSymbol]: Error;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const blockFormQuery: (client: RuntimeClient, block: BlockRef) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("./ui/forms.ts").BlockForm | null, Error, import("./ui/forms.ts").BlockForm | null, readonly [string, "form", readonly [string, string, import("@powerhousedao/pieces-framework/block-type").BlockKind, string]]>, "queryFn"> & {
|
|
14
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("./ui/forms.ts").BlockForm | null, readonly [string, "form", readonly [string, string, import("@powerhousedao/pieces-framework/block-type").BlockKind, string]], never> | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
queryKey: readonly [string, "form", readonly [string, string, import("@powerhousedao/pieces-framework/block-type").BlockKind, string]] & {
|
|
17
|
+
[dataTagSymbol]: import("./ui/forms.ts").BlockForm | null;
|
|
18
|
+
[dataTagErrorSymbol]: Error;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare const pieceActionsQuery: (client: RuntimeClient, packageName: string) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("./runtime-client.js").PieceActionEntry[], Error, import("./runtime-client.js").PieceActionEntry[], readonly [string, "pieceActions", string]>, "queryFn"> & {
|
|
22
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("./runtime-client.js").PieceActionEntry[], readonly [string, "pieceActions", string], never> | undefined;
|
|
23
|
+
} & {
|
|
24
|
+
queryKey: readonly [string, "pieceActions", string] & {
|
|
25
|
+
[dataTagSymbol]: import("./runtime-client.js").PieceActionEntry[];
|
|
26
|
+
[dataTagErrorSymbol]: Error;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare const pieceTriggersQuery: (client: RuntimeClient, packageName: string) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("./runtime-client.js").PieceTriggerEntry[], Error, import("./runtime-client.js").PieceTriggerEntry[], readonly [string, "pieceTriggers", string]>, "queryFn"> & {
|
|
30
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("./runtime-client.js").PieceTriggerEntry[], readonly [string, "pieceTriggers", string], never> | undefined;
|
|
31
|
+
} & {
|
|
32
|
+
queryKey: readonly [string, "pieceTriggers", string] & {
|
|
33
|
+
[dataTagSymbol]: import("./runtime-client.js").PieceTriggerEntry[];
|
|
34
|
+
[dataTagErrorSymbol]: Error;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export declare const outputTreeQuery: (client: RuntimeClient, block: BlockRef, config: unknown) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("./runtime-client.js").OutputTree, Error, import("./runtime-client.js").OutputTree, readonly [string, "outputTree", readonly [string, string, import("@powerhousedao/pieces-framework/block-type").BlockKind, string], {}]>, "queryFn"> & {
|
|
38
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("./runtime-client.js").OutputTree, readonly [string, "outputTree", readonly [string, string, import("@powerhousedao/pieces-framework/block-type").BlockKind, string], {}], never> | undefined;
|
|
39
|
+
} & {
|
|
40
|
+
queryKey: readonly [string, "outputTree", readonly [string, string, import("@powerhousedao/pieces-framework/block-type").BlockKind, string], {}] & {
|
|
41
|
+
[dataTagSymbol]: import("./runtime-client.js").OutputTree;
|
|
42
|
+
[dataTagErrorSymbol]: Error;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare const stepOutputTreeQuery: (client: RuntimeClient, workflowId: string, stepId: string, testedAt: string | null) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("./runtime-client.js").OutputTree, Error, import("./runtime-client.js").OutputTree, readonly [string, "outputTree", "step", string, string, string | null]>, "queryFn"> & {
|
|
46
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("./runtime-client.js").OutputTree, readonly [string, "outputTree", "step", string, string, string | null], never> | undefined;
|
|
47
|
+
} & {
|
|
48
|
+
queryKey: readonly [string, "outputTree", "step", string, string, string | null] & {
|
|
49
|
+
[dataTagSymbol]: import("./runtime-client.js").OutputTree;
|
|
50
|
+
[dataTagErrorSymbol]: Error;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export declare const runsQuery: (client: RuntimeClient, scope: RunsScope) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<RunRecord[], Error, RunRecord[], readonly [string, "runs", {
|
|
54
|
+
readonly workflowId: string | null;
|
|
55
|
+
readonly driveId: string | null;
|
|
56
|
+
readonly limit: number | null;
|
|
57
|
+
}]>, "queryFn"> & {
|
|
58
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<RunRecord[], readonly [string, "runs", {
|
|
59
|
+
readonly workflowId: string | null;
|
|
60
|
+
readonly driveId: string | null;
|
|
61
|
+
readonly limit: number | null;
|
|
62
|
+
}], never> | undefined;
|
|
63
|
+
} & {
|
|
64
|
+
queryKey: readonly [string, "runs", {
|
|
65
|
+
readonly workflowId: string | null;
|
|
66
|
+
readonly driveId: string | null;
|
|
67
|
+
readonly limit: number | null;
|
|
68
|
+
}] & {
|
|
69
|
+
[dataTagSymbol]: RunRecord[];
|
|
70
|
+
[dataTagErrorSymbol]: Error;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
export declare const LATEST_RUN_WINDOW = 1;
|
|
74
|
+
export declare const runPagesQuery: (client: RuntimeClient, scope: RunsScope) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseInfiniteQueryOptions<RunPage, Error, import("@tanstack/react-query").InfiniteData<RunPage, unknown>, readonly [string, "runs", "pages", {
|
|
75
|
+
readonly workflowId: string | null;
|
|
76
|
+
readonly driveId: string | null;
|
|
77
|
+
readonly limit: number | null;
|
|
78
|
+
}], string | null>, "queryFn"> & {
|
|
79
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<RunPage, readonly [string, "runs", "pages", {
|
|
80
|
+
readonly workflowId: string | null;
|
|
81
|
+
readonly driveId: string | null;
|
|
82
|
+
readonly limit: number | null;
|
|
83
|
+
}], string | null> | undefined;
|
|
84
|
+
} & {
|
|
85
|
+
queryKey: readonly [string, "runs", "pages", {
|
|
86
|
+
readonly workflowId: string | null;
|
|
87
|
+
readonly driveId: string | null;
|
|
88
|
+
readonly limit: number | null;
|
|
89
|
+
}] & {
|
|
90
|
+
[dataTagSymbol]: import("@tanstack/react-query").InfiniteData<RunPage, unknown>;
|
|
91
|
+
[dataTagErrorSymbol]: Error;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export declare function runsOfPages(pages: readonly RunPage[]): RunRecord[];
|
|
95
|
+
export declare const runQuery: (client: RuntimeClient, runId: string) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<RunRecord | null, Error, RunRecord | null, readonly [string, "run", string]>, "queryFn"> & {
|
|
96
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<RunRecord | null, readonly [string, "run", string], never> | undefined;
|
|
97
|
+
} & {
|
|
98
|
+
queryKey: readonly [string, "run", string] & {
|
|
99
|
+
[dataTagSymbol]: RunRecord | null;
|
|
100
|
+
[dataTagErrorSymbol]: Error;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export declare const connectionsQuery: (client: RuntimeClient) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("./runtime-client.js").ConnectionSummary[], Error, import("./runtime-client.js").ConnectionSummary[], readonly [string, "connections"] | readonly [string, "connections", string | null]>, "queryFn"> & {
|
|
104
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("./runtime-client.js").ConnectionSummary[], readonly [string, "connections"] | readonly [string, "connections", string | null], never> | undefined;
|
|
105
|
+
} & {
|
|
106
|
+
queryKey: (readonly [string, "connections"] & {
|
|
107
|
+
[dataTagSymbol]: import("./runtime-client.js").ConnectionSummary[];
|
|
108
|
+
[dataTagErrorSymbol]: Error;
|
|
109
|
+
}) | (readonly [string, "connections", string | null] & {
|
|
110
|
+
[dataTagSymbol]: import("./runtime-client.js").ConnectionSummary[];
|
|
111
|
+
[dataTagErrorSymbol]: Error;
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
export declare const secretStatQuery: (client: RuntimeClient, ref: string) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("./runtime-client.js").SecretStat | null, Error, import("./runtime-client.js").SecretStat | null, readonly [string, "secret", string]>, "queryFn"> & {
|
|
115
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("./runtime-client.js").SecretStat | null, readonly [string, "secret", string], never> | undefined;
|
|
116
|
+
} & {
|
|
117
|
+
queryKey: readonly [string, "secret", string] & {
|
|
118
|
+
[dataTagSymbol]: import("./runtime-client.js").SecretStat | null;
|
|
119
|
+
[dataTagErrorSymbol]: Error;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
export interface TestStepVariables {
|
|
123
|
+
workflowId: string;
|
|
124
|
+
stepId: string;
|
|
125
|
+
}
|
|
126
|
+
export declare const testStepMutation: (client: RuntimeClient, queryClient: QueryClient) => Omit<import("@tanstack/react-query").UseMutationOptions<StepTestResult, Error, TestStepVariables, unknown>, "mutationKey">;
|
|
127
|
+
export declare function useTestStep(client: RuntimeClient, queryClient: QueryClient): import("@tanstack/react-query").UseMutationResult<StepTestResult, Error, TestStepVariables, unknown>;
|
|
128
|
+
//# sourceMappingURL=runtime-queries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-queries.d.ts","sourceRoot":"","sources":["../../../../editors/workflow-editor/runtime-queries.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,WAAW,EAGZ,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,KAAK,EACV,OAAO,EACP,SAAS,EACT,SAAS,EACT,aAAa,EACb,cAAc,EACf,MAAM,qBAAqB,CAAC;AAI7B,wBAAgB,wBAAwB,IAAI,WAAW,CAQtD;AAED,eAAO,MAAM,YAAY,WAAY,aAAa;;;;;;;CAK9C,CAAC;AAEL,eAAO,MAAM,cAAc,WAAY,aAAa,SAAS,QAAQ;;;;;;;CAKjE,CAAC;AAEL,eAAO,MAAM,iBAAiB,WAAY,aAAa,eAAe,MAAM;;;;;;;CAKxE,CAAC;AAEL,eAAO,MAAM,kBAAkB,WACrB,aAAa,eACR,MAAM;;;;;;;CAMjB,CAAC;AAGL,eAAO,MAAM,eAAe,WAClB,aAAa,SACd,QAAQ,UACP,OAAO;;;;;;;CAMb,CAAC;AAGL,eAAO,MAAM,mBAAmB,WACtB,aAAa,cACT,MAAM,UACV,MAAM,YACJ,MAAM,GAAG,IAAI;;;;;;;CAWrB,CAAC;AAKL,eAAO,MAAM,SAAS,WAAY,aAAa,SAAS,SAAS;;;;;;;;;;;;;;;;;;;CAQ7D,CAAC;AAGL,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAGnC,eAAO,MAAM,aAAa,WAAY,aAAa,SAAS,SAAS;;;;;;;;;;;;;;;;;;;CAYjE,CAAC;AAGL,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,EAAE,CAOlE;AAID,eAAO,MAAM,QAAQ,WAAY,aAAa,SAAS,MAAM;;;;;;;CAOzD,CAAC;AAEL,eAAO,MAAM,gBAAgB,WAAY,aAAa;;;;;;;;;;CAKlD,CAAC;AAEL,eAAO,MAAM,eAAe,WAAY,aAAa,OAAO,MAAM;;;;;;;CAK9D,CAAC;AAEL,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAGD,eAAO,MAAM,gBAAgB,WACnB,aAAa,eACR,WAAW,+HAYtB,CAAC;AAEL,wBAAgB,WAAW,CAAC,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,wGAE1E"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type BlockIdentity, type BlockPreset, type PickedPreset } from "./blocks.js";
|
|
2
2
|
import type { StepModel } from "./model.js";
|
|
3
3
|
export type PieceMode = "actions" | "triggers";
|
|
4
4
|
export declare function BlockLogo(props: {
|
|
5
|
-
|
|
5
|
+
block: BlockIdentity;
|
|
6
6
|
size?: number;
|
|
7
7
|
bare?: boolean;
|
|
8
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -17,7 +17,7 @@ export declare function orderChips(pieces: {
|
|
|
17
17
|
export declare function BlockSelector(props: {
|
|
18
18
|
title: string;
|
|
19
19
|
presets: BlockPreset[];
|
|
20
|
-
onPick: (preset:
|
|
20
|
+
onPick: (preset: PickedPreset) => void;
|
|
21
21
|
onClose: () => void;
|
|
22
22
|
showPieces?: boolean;
|
|
23
23
|
pieceMode?: PieceMode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockSelector.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/BlockSelector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BlockSelector.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/BlockSelector.tsx"],"names":[],"mappings":"AAiBA,OAAO,EASL,KAAK,aAAa,EAClB,KAAK,WAAW,EAEhB,KAAK,YAAY,EAClB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAY5C,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AA8C/C,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAC/B,KAAK,EAAE,aAAa,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,2CAiBA;AAuMD,eAAO,MAAM,SAAS,SAAS,CAAC;AAGhC,eAAO,MAAM,eAAe,eAAe,CAAC;AAa5C,wBAAgB,OAAO,CAAC,KAAK,EAAE;IAAE,UAAU,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,GAAG,CAAC,MAAM,CAAC,CAEpE;AAGD,wBAAgB,UAAU,CAAC,MAAM,EAAE;IAAE,UAAU,EAAE,MAAM,EAAE,CAAA;CAAE,EAAE,GAAG,MAAM,EAAE,CAiBvE;AAqLD,wBAAgB,aAAa,CAAC,KAAK,EAAE;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,MAAM,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,WAAW,CAAC,EAAE,SAAS,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC,2CAoXA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type ContextMenuActionId, type ContextMenuTarget } from "./canvas-menu.js";
|
|
1
|
+
import { type PickedPreset } from "./blocks.js";
|
|
2
|
+
import { type PortsOf, type ContextMenuActionId, type ContextMenuTarget } from "./canvas-menu.js";
|
|
3
3
|
import type { PointModel, WorkflowModel } from "./model.js";
|
|
4
4
|
export interface CanvasMenuState {
|
|
5
5
|
target: ContextMenuTarget;
|
|
@@ -8,7 +8,8 @@ export interface CanvasMenuState {
|
|
|
8
8
|
export declare function CanvasContextMenu(props: {
|
|
9
9
|
state: CanvasMenuState;
|
|
10
10
|
model: WorkflowModel;
|
|
11
|
-
|
|
11
|
+
portsOf: PortsOf;
|
|
12
|
+
onAction: (action: ContextMenuActionId, preset?: PickedPreset) => void;
|
|
12
13
|
onClose: () => void;
|
|
13
14
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
//# sourceMappingURL=CanvasContextMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CanvasContextMenu.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/CanvasContextMenu.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAiC,KAAK,
|
|
1
|
+
{"version":3,"file":"CanvasContextMenu.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/CanvasContextMenu.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAiC,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAC/E,OAAO,EAEL,KAAK,OAAO,EAIZ,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE5D,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,KAAK,EAAE,UAAU,CAAC;CACnB;AAYD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE;IACvC,KAAK,EAAE,eAAe,CAAC;IACvB,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,MAAM,EAAE,mBAAmB,EAAE,MAAM,CAAC,EAAE,YAAY,KAAK,IAAI,CAAC;IACvE,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,2CA+EA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BlockRef } from "./blocks.js";
|
|
2
2
|
export declare function ConnectionField(props: {
|
|
3
|
-
|
|
3
|
+
block: BlockRef;
|
|
4
4
|
value: string;
|
|
5
5
|
onChange: (connectionId: string | null) => void;
|
|
6
|
-
designTime?: DesignTimeService;
|
|
7
6
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
8
7
|
//# sourceMappingURL=ConnectionField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionField.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/ConnectionField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConnectionField.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/ConnectionField.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAqG5C,wBAAgB,eAAe,CAAC,KAAK,EAAE;IACrC,KAAK,EAAE,QAAQ,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACjD,kDAiQA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateConnectionModal.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/CreateConnectionModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CreateConnectionModal.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/CreateConnectionModal.tsx"],"names":[],"mappings":"AAaA,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,wBAAwB,CAAC;AAEhC,wBAAgB,qBAAqB,CAAC,KAAK,EAAE;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,eAAe,CAAC;IACvB,MAAM,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC,2CAqGA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
+
import type { BlockRef } from "@powerhousedao/pieces-framework/block-type";
|
|
2
3
|
import { type MenuAnchor } from "./canvas-menu.js";
|
|
3
4
|
import { type ExpressionScope } from "./expression-scope.js";
|
|
4
5
|
export interface ExpressionScopeSource {
|
|
@@ -6,7 +7,7 @@ export interface ExpressionScopeSource {
|
|
|
6
7
|
stepId?: string;
|
|
7
8
|
}) => Promise<ExpressionScope>;
|
|
8
9
|
}
|
|
9
|
-
export declare
|
|
10
|
+
export declare const ExpressionScopeSourceProvider: import("react").Provider<ExpressionScopeSource | undefined>;
|
|
10
11
|
export interface ExpressionTarget {
|
|
11
12
|
id: string;
|
|
12
13
|
stepId?: string;
|
|
@@ -17,12 +18,12 @@ export interface ExpressionTarget {
|
|
|
17
18
|
interface TargetContextValue {
|
|
18
19
|
target: ExpressionTarget | null;
|
|
19
20
|
setTarget: (target: ExpressionTarget | null) => void;
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
stepBlocks: Record<string, BlockRef>;
|
|
22
|
+
triggerBlock?: BlockRef;
|
|
22
23
|
}
|
|
23
24
|
export declare function ExpressionTargetProvider(props: {
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
stepBlocks: Record<string, BlockRef>;
|
|
26
|
+
triggerBlock?: BlockRef;
|
|
26
27
|
children: ReactNode;
|
|
27
28
|
}): import("react/jsx-runtime").JSX.Element;
|
|
28
29
|
export declare function useExpressionTarget(): TargetContextValue | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpressionPicker.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/ExpressionPicker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ExpressionPicker.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/ExpressionPicker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAI3E,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAM/B,MAAM,WAAW,qBAAqB;IAEpC,IAAI,EAAE,CAAC,OAAO,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;CAClE;AAOD,eAAO,MAAM,6BAA6B,6DAA8B,CAAC;AAOzE,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,UAAU,kBAAkB;IAC1B,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAChC,SAAS,EAAE,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,KAAK,IAAI,CAAC;IAErD,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAErC,YAAY,CAAC,EAAE,QAAQ,CAAC;CACzB;AAID,wBAAgB,wBAAwB,CAAC,KAAK,EAAE;IAC9C,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACrC,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,QAAQ,EAAE,SAAS,CAAC;CACrB,2CAgBA;AAED,wBAAgB,mBAAmB,IAAI,kBAAkB,GAAG,IAAI,CAE/D;AAgBD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,GAAG;IACF,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE;QAAE,aAAa,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;CACrD,CAoBA;AAuLD,wBAAgB,qBAAqB,uCAkKpC;AAGD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC5C,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,CAAC,KAAK,EAAE;QAAE,aAAa,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;CAC3D,kDAmBA;AAgCD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,kDAqB3D"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
+
import type { PropertySettingModel } from "./model.js";
|
|
3
|
+
import type { BlockRef } from "./blocks.js";
|
|
2
4
|
import type { BlockFormProp, PropertyGroup, SecretFormService } from "./forms.js";
|
|
5
|
+
export declare function parseDecimal(raw: string): number | undefined;
|
|
3
6
|
export declare function fillPiecePlaceholders(text: string, values: {
|
|
4
7
|
webhookUrl?: string;
|
|
5
8
|
webhookTimeoutSeconds?: number;
|
|
@@ -9,9 +12,12 @@ export declare function AvailableSoon(props: {
|
|
|
9
12
|
}): import("react/jsx-runtime").JSX.Element;
|
|
10
13
|
export declare function PropertyForm(props: {
|
|
11
14
|
props: BlockFormProp[];
|
|
15
|
+
block?: BlockRef;
|
|
12
16
|
groups?: PropertyGroup[];
|
|
13
17
|
value: Record<string, unknown>;
|
|
14
|
-
onChange: (next: Record<string, unknown
|
|
18
|
+
onChange: (next: Record<string, unknown>, settings?: PropertySettingModel[]) => void;
|
|
19
|
+
settings?: PropertySettingModel[] | null;
|
|
20
|
+
writesSettings?: boolean;
|
|
15
21
|
loadOptions?: (propName: string, current: Record<string, unknown>, searchValue?: string) => Promise<unknown>;
|
|
16
22
|
secrets?: SecretFormService;
|
|
17
23
|
scopeStepId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyForm.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/PropertyForm.tsx"],"names":[],"mappings":"AAEA,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PropertyForm.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/PropertyForm.tsx"],"names":[],"mappings":"AAEA,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AA2Bf,OAAO,KAAK,EAAqB,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAU5C,OAAO,KAAK,EACV,aAAa,EAEb,aAAa,EACb,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAkCpB,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAG5D;AA0DD,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE;IAAE,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,qBAAqB,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9D,MAAM,CASR;AAGD,wBAAgB,aAAa,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAS5D;AAwzCD,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAClC,KAAK,EAAE,aAAa,EAAE,CAAC;IAEvB,KAAK,CAAC,EAAE,QAAQ,CAAC;IAEjB,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE/B,QAAQ,EAAE,CACR,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,QAAQ,CAAC,EAAE,oBAAoB,EAAE,KAC9B,IAAI,CAAC;IAEV,QAAQ,CAAC,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAC;IAGzC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,CACZ,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,WAAW,CAAC,EAAE,MAAM,KACjB,OAAO,CAAC,OAAO,CAAC,CAAC;IAEtB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAE5B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,2CAuLA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type WorkflowEditorCallbacks, type WorkflowModel, type WorkflowStatusValue } from "./model.js";
|
|
2
|
+
import type { WorkflowReadiness } from "./validation.js";
|
|
3
|
+
export declare function usePublish(callbacks: WorkflowEditorCallbacks): {
|
|
4
|
+
publishing: boolean;
|
|
5
|
+
error: string | null;
|
|
6
|
+
publish: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function PublishButton(props: {
|
|
9
|
+
model: WorkflowModel;
|
|
10
|
+
readiness: WorkflowReadiness;
|
|
11
|
+
publishing: boolean;
|
|
12
|
+
onPublish: () => void;
|
|
13
|
+
onSelect: (id: string) => void;
|
|
14
|
+
size?: "sm" | "md";
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function PublishState(props: {
|
|
17
|
+
model: Pick<WorkflowModel, "version" | "published">;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function StatusToggle(props: {
|
|
20
|
+
published: boolean;
|
|
21
|
+
status: WorkflowStatusValue;
|
|
22
|
+
onChange: (status: WorkflowStatusValue) => void;
|
|
23
|
+
tooltipSide?: "below" | "left";
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare function DraftBanner(props: {
|
|
26
|
+
model: WorkflowModel;
|
|
27
|
+
readiness: WorkflowReadiness;
|
|
28
|
+
publishing: boolean;
|
|
29
|
+
error: string | null;
|
|
30
|
+
onPublish: () => void;
|
|
31
|
+
onDiscard: () => void;
|
|
32
|
+
onSelect: (id: string) => void;
|
|
33
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
34
|
+
//# sourceMappingURL=PublishControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublishControls.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/PublishControls.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACzB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAQzD,wBAAgB,UAAU,CAAC,SAAS,EAAE,uBAAuB;;;;EAe5D;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE;IACnC,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACpB,2CAmCA;AAID,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAClC,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,WAAW,CAAC,CAAC;CACrD,2CAsBA;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAClC,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,QAAQ,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAChD,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAChC,2CAwBA;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE;IACjC,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC,kDA4CA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduleBuilder.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/ScheduleBuilder.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScheduleBuilder.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/ScheduleBuilder.tsx"],"names":[],"mappings":"AAqHA,wBAAgB,eAAe,CAAC,KAAK,EAAE;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CACrD,2CA4JA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { DesignTimeService } from "./forms.js";
|
|
2
1
|
import { type StepModel, type TriggerModel, type WorkflowEditorCallbacks, type WorkflowModel } from "./model.js";
|
|
3
2
|
export declare function StepPanel(props: {
|
|
4
3
|
step: StepModel;
|
|
@@ -6,12 +5,12 @@ export declare function StepPanel(props: {
|
|
|
6
5
|
callbacks: WorkflowEditorCallbacks;
|
|
7
6
|
onClose: () => void;
|
|
8
7
|
onSelect?: (id: string) => void;
|
|
9
|
-
|
|
8
|
+
readOnly?: boolean;
|
|
10
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export declare function TriggerPanel(props: {
|
|
12
11
|
trigger: TriggerModel;
|
|
13
12
|
callbacks: WorkflowEditorCallbacks;
|
|
14
13
|
onClose: () => void;
|
|
15
|
-
|
|
14
|
+
readOnly?: boolean;
|
|
16
15
|
}): import("react/jsx-runtime").JSX.Element;
|
|
17
16
|
//# sourceMappingURL=StepPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepPanel.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/StepPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StepPanel.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/StepPanel.tsx"],"names":[],"mappings":"AAyCA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EACnB,MAAM,YAAY,CAAC;AAq9BpB,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAC/B,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,EAAE,uBAAuB,CAAC;IACnC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,2CAwJA;AAqLD,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAClC,OAAO,EAAE,YAAY,CAAC;IACtB,SAAS,EAAE,uBAAuB,CAAC;IACnC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,2CA4HA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type StepModel, type WorkflowModel } from "./model.js";
|
|
2
|
+
export declare function TestedLine(props: {
|
|
3
|
+
block: StepModel | NonNullable<WorkflowModel["trigger"]>;
|
|
4
|
+
noun: string;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function StepTestSection(props: {
|
|
7
|
+
step: StepModel;
|
|
8
|
+
model: WorkflowModel;
|
|
9
|
+
onSelect?: (id: string) => void;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=StepTest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepTest.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/StepTest.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAkB,KAAK,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAUhF,wBAAgB,UAAU,CAAC,KAAK,EAAE;IAChC,KAAK,EAAE,SAAS,GAAG,WAAW,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC;IACzD,IAAI,EAAE,MAAM,CAAC;CACd,2CA6BA;AAgGD,wBAAgB,eAAe,CAAC,KAAK,EAAE;IACrC,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,2CAmEA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VariablesEditor.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/VariablesEditor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VariablesEditor.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/VariablesEditor.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,aAAa,EAEb,uBAAuB,EACxB,MAAM,YAAY,CAAC;AAyNpB,wBAAgB,eAAe,CAAC,KAAK,EAAE;IACrC,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,SAAS,EAAE,uBAAuB,CAAC;IACnC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,2CAwGA"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type { DesignTimeService } from "./forms.js";
|
|
2
1
|
import { type WorkflowEditorCallbacks, type WorkflowModel } from "./model.js";
|
|
3
2
|
interface WorkflowCanvasProps {
|
|
4
3
|
model: WorkflowModel;
|
|
5
4
|
callbacks: WorkflowEditorCallbacks;
|
|
6
5
|
onSelect: (id: string | null) => void;
|
|
7
|
-
designTime?: DesignTimeService;
|
|
8
6
|
}
|
|
9
|
-
export declare function WorkflowCanvas({ model, callbacks, onSelect,
|
|
7
|
+
export declare function WorkflowCanvas({ model, callbacks, onSelect, }: WorkflowCanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
10
8
|
export {};
|
|
11
9
|
//# sourceMappingURL=WorkflowCanvas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkflowCanvas.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/WorkflowCanvas.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WorkflowCanvas.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/WorkflowCanvas.tsx"],"names":[],"mappings":"AAyCA,OAAO,EAGL,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EACnB,MAAM,YAAY,CAAC;AAEpB,UAAU,mBAAmB;IAC3B,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,EAAE,uBAAuB,CAAC;IACnC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACvC;AAuBD,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,SAAS,EACT,QAAQ,GACT,EAAE,mBAAmB,2CAoRrB"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import type
|
|
3
|
-
import type { WorkflowEditorCallbacks, WorkflowModel } from "./model.js";
|
|
2
|
+
import { type WorkflowEditorCallbacks, type WorkflowModel } from "./model.js";
|
|
4
3
|
export declare function WorkflowEditorApp(props: {
|
|
5
4
|
model: WorkflowModel;
|
|
6
5
|
callbacks: WorkflowEditorCallbacks;
|
|
7
|
-
designTime?: DesignTimeService;
|
|
8
6
|
leading?: ReactNode;
|
|
9
7
|
trailing?: ReactNode;
|
|
10
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkflowEditorApp.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/WorkflowEditorApp.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAO1D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"WorkflowEditorApp.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/WorkflowEditorApp.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAO1D,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EACnB,MAAM,YAAY,CAAC;AAgBpB,wBAAgB,iBAAiB,CAAC,KAAK,EAAE;IACvC,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,EAAE,uBAAuB,CAAC;IAEnC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,2CAmKA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type BlockRef } from "./blocks.js";
|
|
2
|
+
import type { BlockForm } from "./forms.js";
|
|
3
|
+
export interface FollowUpEdge {
|
|
4
|
+
id: string;
|
|
5
|
+
from: string;
|
|
6
|
+
to: string;
|
|
7
|
+
port: string;
|
|
8
|
+
condition?: string | null;
|
|
9
|
+
}
|
|
10
|
+
export interface AddedBlock {
|
|
11
|
+
id: string;
|
|
12
|
+
group: string;
|
|
13
|
+
block: BlockRef;
|
|
14
|
+
continuation?: {
|
|
15
|
+
edgeId: string;
|
|
16
|
+
port: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare function followUpConfig(form: Pick<BlockForm, "props">, config: unknown): Record<string, unknown> | null;
|
|
20
|
+
export interface FollowUp {
|
|
21
|
+
config?: Record<string, unknown>;
|
|
22
|
+
repoint?: {
|
|
23
|
+
edge: FollowUpEdge;
|
|
24
|
+
port: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export declare function planFollowUp(added: AddedBlock, current: {
|
|
28
|
+
block: BlockRef;
|
|
29
|
+
config: unknown;
|
|
30
|
+
} | undefined, edges: readonly FollowUpEdge[], form: BlockForm): FollowUp | null;
|
|
31
|
+
//# sourceMappingURL=add-follow-up.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-follow-up.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/add-follow-up.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAI5C,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAGD,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IAEX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,QAAQ,CAAC;IAEhB,YAAY,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACjD;AAID,wBAAgB,cAAc,CAC5B,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,EAC9B,MAAM,EAAE,OAAO,GACd,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAIhC;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjC,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,YAAY,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAChD;AAGD,wBAAgB,YAAY,CAC1B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE;IAAE,KAAK,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,EACzD,KAAK,EAAE,SAAS,YAAY,EAAE,EAC9B,IAAI,EAAE,SAAS,GACd,QAAQ,GAAG,IAAI,CAgBjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-follow-up.test.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/add-follow-up.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ap-edge.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/ap-edge.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,eAAe,CAAC;AAQvB,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"ap-edge.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/ap-edge.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,eAAe,CAAC;AAQvB,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,2CAyEtC;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,2CAqB1C;AAED,eAAO,MAAM,WAAW;IAAK,MAAM;IAAU,MAAM;CAAc,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Edge, Node } from "@xyflow/react";
|
|
2
|
+
import { type BlockRef } from "./blocks.js";
|
|
2
3
|
import type { EdgeModel, StepModel, WorkflowModel } from "./model.js";
|
|
3
4
|
export declare function reachableFrom(start: string, edges: EdgeModel[]): Set<string>;
|
|
4
5
|
export declare function acyclicTargets(model: WorkflowModel, fromId: string): StepModel[];
|
|
@@ -14,6 +15,6 @@ export interface ApLayout {
|
|
|
14
15
|
nodes: Node[];
|
|
15
16
|
edges: Edge[];
|
|
16
17
|
}
|
|
17
|
-
export declare function layoutWorkflow(model: WorkflowModel): ApLayout;
|
|
18
|
+
export declare function layoutWorkflow(model: WorkflowModel, portsOf?: (block: BlockRef) => readonly string[] | undefined): ApLayout;
|
|
18
19
|
export declare function flowOrder(model: WorkflowModel): string[];
|
|
19
20
|
//# sourceMappingURL=ap-layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ap-layout.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/ap-layout.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ap-layout.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/ap-layout.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAA2B,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEtE,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,CAkB5E;AAGD,wBAAgB,cAAc,CAC5B,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,MAAM,GACb,SAAS,EAAE,CAKb;AAID,wBAAgB,eAAe,CAC7B,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,MAAM,GACb,SAAS,EAAE,CASb;AAED,eAAO,MAAM,UAAU,MAAM,CAAC;AAC9B,eAAO,MAAM,WAAW,KAAK,CAAC;AAC9B,eAAO,MAAM,MAAM,KAAK,CAAC;AACzB,eAAO,MAAM,MAAM,KAAK,CAAC;AACzB,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAItC,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAG7C;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,KAAK,EAAE,IAAI,EAAE,CAAC;CACf;AAID,wBAAgB,cAAc,CAC5B,KAAK,EAAE,aAAa,EACpB,OAAO,GAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,SAAS,MAAM,EAAE,GAAG,SAA2B,GAC5E,QAAQ,CA+MV;AAID,wBAAgB,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,EAAE,CAoBxD"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type NodeProps } from "@xyflow/react";
|
|
2
|
-
import { type BlockPreset } from "./blocks.js";
|
|
3
|
-
import type { BlockForm } from "./forms.js";
|
|
2
|
+
import { type BlockPreset, type PickedPreset } from "./blocks.js";
|
|
4
3
|
import type { StepModel } from "./model.js";
|
|
5
4
|
import { type MoveRejection, type StepMove } from "./step-drag.js";
|
|
6
5
|
export declare function ApStepNode(props: NodeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,7 +8,7 @@ declare function AddButton(props: {
|
|
|
9
8
|
size?: number;
|
|
10
9
|
title: string;
|
|
11
10
|
presets: BlockPreset[];
|
|
12
|
-
onPick: (preset:
|
|
11
|
+
onPick: (preset: PickedPreset) => void;
|
|
13
12
|
showPieces?: boolean;
|
|
14
13
|
pieceMode?: "actions" | "triggers";
|
|
15
14
|
attachSteps?: StepModel[];
|
|
@@ -17,17 +16,16 @@ declare function AddButton(props: {
|
|
|
17
16
|
label?: string;
|
|
18
17
|
}): import("react/jsx-runtime").JSX.Element;
|
|
19
18
|
export interface ApCanvasHandlers {
|
|
20
|
-
appendStep: (fromId: string, port: string, preset:
|
|
21
|
-
insertOnEdge: (edgeId: string, preset:
|
|
22
|
-
pickTrigger: (preset:
|
|
19
|
+
appendStep: (fromId: string, port: string, preset: PickedPreset) => void;
|
|
20
|
+
insertOnEdge: (edgeId: string, preset: PickedPreset) => void;
|
|
21
|
+
pickTrigger: (preset: PickedPreset) => void;
|
|
23
22
|
attachableSteps: (fromId: string) => StepModel[];
|
|
24
23
|
attachStep: (fromId: string, port: string, stepId: string) => void;
|
|
25
24
|
moveStep: (move: StepMove) => void;
|
|
26
25
|
moveRejection: (move: StepMove) => MoveRejection | null;
|
|
27
|
-
getBlockForm?: (blockType: string) => Promise<BlockForm | null>;
|
|
28
26
|
}
|
|
29
|
-
export declare
|
|
30
|
-
export declare function
|
|
27
|
+
export declare const CanvasHandlersProvider: import("react").Provider<ApCanvasHandlers | undefined>;
|
|
28
|
+
export declare function useCanvasHandlers(): ApCanvasHandlers | undefined;
|
|
31
29
|
export declare function ApAppendNode(props: NodeProps): import("react/jsx-runtime").JSX.Element;
|
|
32
30
|
export declare function ApBigButtonNode(_props: NodeProps): import("react/jsx-runtime").JSX.Element;
|
|
33
31
|
export { AddButton };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ap-nodes.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/ap-nodes.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AAUjE,OAAO,
|
|
1
|
+
{"version":3,"file":"ap-nodes.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/ap-nodes.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AAUjE,OAAO,EAKL,KAAK,WAAW,EAChB,KAAK,YAAY,EAClB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,SAAS,EAAgB,MAAM,YAAY,CAAC;AAC1D,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,QAAQ,EACd,MAAM,gBAAgB,CAAC;AA2IxB,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,2CAsG1C;AAGD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIrD,CAAC;AAEF,iBAAS,SAAS,CAAC,KAAK,EAAE;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,MAAM,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IACnC,WAAW,CAAC,EAAE,SAAS,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAEpC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,2CAwEA;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IACzE,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC7D,WAAW,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAE5C,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,SAAS,EAAE,CAAC;IACjD,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAEnE,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACnC,aAAa,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,aAAa,GAAG,IAAI,CAAC;CACzD;AAQD,eAAO,MAAM,sBAAsB,wDAAiC,CAAC;AAErE,wBAAgB,iBAAiB,IAAI,gBAAgB,GAAG,SAAS,CAEhE;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,2CAgH5C;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,2CAehD;AAED,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,eAAO,MAAM,WAAW;IACtB,MAAM;IACN,QAAQ;IACR,WAAW;CACZ,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { type BlockIdentity } from "@powerhousedao/pieces-framework/block-type";
|
|
2
|
+
import { type PieceCatalogSource } from "./piece-source.js";
|
|
1
3
|
export interface BlockMeta {
|
|
2
4
|
displayName: string;
|
|
3
5
|
subtitle: string;
|
|
@@ -11,13 +13,16 @@ export declare function registerPieceLogos(entries: Iterable<{
|
|
|
11
13
|
}>): void;
|
|
12
14
|
export declare function pieceLogo(packageName: string): string | undefined;
|
|
13
15
|
export declare function pieceDisplayName(packageName: string): string | undefined;
|
|
14
|
-
export declare function registerBlockNames(entries: Iterable<{
|
|
15
|
-
blockType: string;
|
|
16
|
+
export declare function registerBlockNames(entries: Iterable<BlockIdentity & {
|
|
16
17
|
displayName: string;
|
|
17
18
|
}>): void;
|
|
19
|
+
export declare function loadPendingBlockNames(source: PieceCatalogSource): void;
|
|
18
20
|
export declare function resetPieceLogos(): void;
|
|
19
|
-
export declare function
|
|
20
|
-
export declare
|
|
21
|
+
export declare function subscribePieceLogos(listener: () => void): () => void;
|
|
22
|
+
export declare const CATALOG_RETRY_MS = 2000;
|
|
23
|
+
export declare const CATALOG_MAX_ATTEMPTS = 5;
|
|
24
|
+
export declare function ensurePieceLogos(source?: PieceCatalogSource): Promise<void>;
|
|
25
|
+
export declare function blockMeta(block: BlockIdentity): BlockMeta;
|
|
21
26
|
export declare function usePieceLogos(): number;
|
|
22
|
-
export declare function useBlockMeta(
|
|
27
|
+
export declare function useBlockMeta(block: BlockIdentity): BlockMeta;
|
|
23
28
|
//# sourceMappingURL=block-meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-meta.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/block-meta.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"block-meta.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/block-meta.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,4CAA4C,CAAC;AAUpD,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5E,MAAM,WAAW,SAAS;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAkDD,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,QAAQ,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B,CAAC,GACD,IAAI,CAgBN;AAED,wBAAgB,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEjE;AAED,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAExE;AASD,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,QAAQ,CAAC,aAAa,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,GACzD,IAAI,CAYN;AAQD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAGtE;AAmBD,wBAAgB,eAAe,IAAI,IAAI,CAWtC;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAGpE;AAkBD,eAAO,MAAM,gBAAgB,OAAO,CAAC;AACrC,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAuBtC,wBAAgB,gBAAgB,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0B3E;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,CAsBzD;AAUD,wBAAgB,aAAa,IAAI,MAAM,CActC;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,CAI5D"}
|