@fluidgrids/fe-sdk 0.0.0-stage → 2026.1203.7
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 +564 -2
- package/dist/ActivityOptionsFields-C2u-hY2U.js +142 -0
- package/dist/AiStudioPage-B_hNTj-_.js +1137 -0
- package/dist/ApprovalInboxPage-ClITra3n.js +1312 -0
- package/dist/ChoiceSelect-LkK-uS9J.js +65 -0
- package/dist/ConfirmActionDialog-DHWTDRbp.js +31 -0
- package/dist/ConnectionFormDialog-C0kDgcrZ.js +153 -0
- package/dist/CreateFluidgridsTagDocument-Dtp9KPLJ.js +1055 -0
- package/dist/DataSinkDashboardPage-b4ezeqa6.js +278 -0
- package/dist/DataTablesPage-C1d9YGHz.js +5575 -0
- package/dist/DateTimeField-B1qR4ruo.js +51 -0
- package/dist/Disclosure-BNKij7-v.js +45 -0
- package/dist/ElementLibraryPage-8jNO6YmE.js +2256 -0
- package/dist/ElementLibrarySequenceDocument-B-W8SPzn.js +3979 -0
- package/dist/EnsureThemeProvider-BvlNjAd0.js +24 -0
- package/dist/EntityTagBadge-1OlP6p0c.js +25 -0
- package/dist/EntityTagPicker-BBrU5cE0.js +137 -0
- package/dist/ExecuteStepDocument-B4j1mdRT.js +189 -0
- package/dist/ExecutionDetailDocument-D6QuM-kp.js +875 -0
- package/dist/ExecutionDetailPage-D4CBtFdo.js +12217 -0
- package/dist/ExecutionDetailPage-DvQ667OE.d.ts +10 -0
- package/dist/ExecutionStatusBadge-BsDVor9t.js +221 -0
- package/dist/ExecutionsListDocument-Dan7ZiqB.js +459 -0
- package/dist/ExecutionsListPage-B3XT8ITL.js +4307 -0
- package/dist/FailureTriagePanel-DOJMaJ0n.js +1285 -0
- package/dist/FileDownloadUrlDocument-CVOYKcL5.js +92 -0
- package/dist/FluidGridsDocsLink-bX0Hnhxr.js +66 -0
- package/dist/FluidGridsMark-CE2blT7K.js +74 -0
- package/dist/HeldLoadRegion-BtTxbvOW.js +34 -0
- package/dist/HistoryPage-BLoRpJ1R.d.ts +6 -0
- package/dist/HistoryPage-BSBISXoj.js +2835 -0
- package/dist/Icon-BtQ0HXLh.js +160 -0
- package/dist/InsightsPage-D7ybj8N9.js +11245 -0
- package/dist/IsolationSetting-vy911E8b.js +1153 -0
- package/dist/LibraryParts-DOeNgR8A.js +413 -0
- package/dist/ManagedAiPolicyAuthority-BxwJ3ptd.js +40 -0
- package/dist/ManagedAiPolicyAuthority-DM3t3wNr.d.ts +18 -0
- package/dist/ManagedAiPolicyAuthorityContext-CNkxIOZ1.js +10 -0
- package/dist/McpTriggerServers-BCPCAOWB.js +459 -0
- package/dist/MissingNodesInstallModal-rO_SEDrC.js +224 -0
- package/dist/NavigationV2Provider-DCDt35eG.js +17 -0
- package/dist/NodeSchemaIntrospectionDocument-C1vAIcHd.js +95 -0
- package/dist/NodesPage-DEbnz9iU.d.ts +6 -0
- package/dist/NodesPage-O7KeeKtd.js +653 -0
- package/dist/OfflineIcon-TwMKYWjA.js +207 -0
- package/dist/OpenTemplateAsCodeButton-BhWJWIF3.js +94 -0
- package/dist/PaidTemplateConfirm-_G3ag6S4.js +28 -0
- package/dist/PublishCustomNodeAction-CIySbK4c.js +134 -0
- package/dist/RecordTaskDialog-BkpCDvhR.js +2078 -0
- package/dist/RunActionsMenu-DodOgIQm.js +59 -0
- package/dist/RunnerStatusPill-C1v967iq.js +24 -0
- package/dist/RunnersPage-dB0RSdY_.js +1929 -0
- package/dist/SandboxRuntimeExhaustedNotice-BFOIF93C.js +120 -0
- package/dist/SchedulesPage-DPWr1yvf.js +1607 -0
- package/dist/SearchBox-BGtYjvfs.js +49 -0
- package/dist/SequenceEditor-CFiHeHkR.js +497 -0
- package/dist/SettingsPage-0CQBNPZV.js +8695 -0
- package/dist/StewardPages-DAJhepen.js +47 -0
- package/dist/StewardRunImportPanel-Kva2DO0u.js +2844 -0
- package/dist/StoreTemplateCardCompact-CHn5kP7A.js +2166 -0
- package/dist/TagFilterSelect-CyA8QrS7.js +42 -0
- package/dist/TaskQueuesPage-DdnDCyat.js +3571 -0
- package/dist/TechnicalDetails-B0Oi4aZw.js +19 -0
- package/dist/TemplateConfigurationModal-CdvCYJLM.js +332 -0
- package/dist/TemplateDetailPanel-CbiKciuB.js +222 -0
- package/dist/TemplatePreview-cx7-NOeG.js +868 -0
- package/dist/TemplatesPage-BG3H-6v6.d.ts +10 -0
- package/dist/TemplatesPage-BVQpGYIV.js +3251 -0
- package/dist/TerminateExecutionDocument-B_HKNVrN.js +581 -0
- package/dist/TranslationBridge-Bd4aJKMs.d.ts +11 -0
- package/dist/TranslationBridge-Da-TPgQm.js +68 -0
- package/dist/TriggerWorkflowDocument-D9Km2Vv2.js +460 -0
- package/dist/UiSequencePickerSequenceDocument-BSYnSDV7.js +607 -0
- package/dist/UiStepScreenshot-Qh4QMyUp.js +146 -0
- package/dist/UsageTimeSeriesDocument-DcInx9-z.js +177 -0
- package/dist/VariablesPage-ChfGuW22.js +2243 -0
- package/dist/VersionDiffDialog-Bd2AeUwf.js +1702 -0
- package/dist/VersionLifecycleBar-BBeWVtz-.js +143 -0
- package/dist/WebhookDeliveriesPage-D66bua0j.js +1563 -0
- package/dist/WorkflowBuilder-B6wQD1TK.js +539 -0
- package/dist/WorkflowBuilder-DR4ku8Tr.js +1611 -0
- package/dist/WorkflowDefinitionDocument-DZLbTPUZ.js +321 -0
- package/dist/WorkflowEmbed-BXfFGy0i.js +708 -0
- package/dist/WorkflowEmbed-Cbqe1s1z.d.ts +6 -0
- package/dist/WorkflowPinnedDataDocument-BODT5omd.js +782 -0
- package/dist/WorkflowProposalCard-BruukdeF.js +96 -0
- package/dist/WorkflowProposalDocument-BdUbsrd0.js +620 -0
- package/dist/WorkflowSearchRedirect-C7zJ2MKH.js +40 -0
- package/dist/WorkflowSettingsDrawer-MVU1BKfY.d.ts +18 -0
- package/dist/WorkflowSettingsDrawer-gazs97WR.js +196 -0
- package/dist/WorkflowShareDialog-e8jJtLjU.js +469 -0
- package/dist/WorkflowVersionsDocument-DRVOp8Uj.js +3213 -0
- package/dist/WorkflowsList--hR2_8gf.js +4593 -0
- package/dist/WorkflowsList-CcNDQge5.d.ts +6 -0
- package/dist/WorkflowsListPageDocument-CnzcQm_o.js +934 -0
- package/dist/addonCatalog-CbZS4deh.js +58 -0
- package/dist/addonCatalog-sjlonAmR.d.ts +15 -0
- package/dist/addons.d.ts +3 -0
- package/dist/addons.js +4 -0
- package/dist/agent-form-Bfvm32j1.js +83 -0
- package/dist/agent-tools.d.ts +3 -0
- package/dist/agent-tools.js +5 -0
- package/dist/agentTools-CyL7DLOF.js +320 -0
- package/dist/ai-usage-BrxDgvdR.js +240 -0
- package/dist/aiCreditsBridge-BuE92tKo.js +49 -0
- package/dist/api-BKq-nIOZ.js +2286 -0
- package/dist/api-Ol7I8NxE.js +8289 -0
- package/dist/apollo-type-policies.d.ts +11 -0
- package/dist/apollo-type-policies.js +64 -0
- package/dist/askAboutBridge-ByYsQams.js +106 -0
- package/dist/askQuestions-Cmx7VnMm.js +742 -0
- package/dist/assert-rules-lfYEMc99.js +318 -0
- package/dist/assistant.d.ts +94 -0
- package/dist/assistant.js +99 -0
- package/dist/attach-node-helpers-HDKQOtrD.js +32 -0
- package/dist/badge-CXfPhoMH.js +26 -0
- package/dist/basil.generated-BK-EHbwN.js +10 -0
- package/dist/browser-steps-DMpS5TyB.js +533 -0
- package/dist/builderTimings-pvGnK1m-.js +510 -0
- package/dist/button-DG7y_FVJ.js +48 -0
- package/dist/canvasNoteTools-BxuP_AYO.js +137 -0
- package/dist/card-Bomy_1UG.js +44 -0
- package/dist/catalogGrid-BOrfMgi-.js +41 -0
- package/dist/channel-CPyQ1NR1.js +212 -0
- package/dist/chips-CvNrYJZa.js +27 -0
- package/dist/client-holder-C0M5Cfwl.js +68 -0
- package/dist/cn-QqidFIgr.js +10 -0
- package/dist/code-editor-diagnostics-Zr0cIcx1.js +46 -0
- package/dist/code-editor-field-x_JrY8KR.js +113 -0
- package/dist/codec-client-DPuD6mw7.js +515 -0
- package/dist/conditionBuilder-DwfEF0Q-.js +1144 -0
- package/dist/config-DO68jw5k.js +322 -0
- package/dist/constants-DgbVc24O.d.ts +296 -0
- package/dist/constants-DlRnHBfQ.js +217 -0
- package/dist/convert-browser-action-pfecelF7.js +347 -0
- package/dist/convert-dialog-B_o22NiJ.js +382 -0
- package/dist/create-workflow-first-Azg3JUdX.js +120 -0
- package/dist/definition-canvas-Bsda-rDT.js +31 -0
- package/dist/dialog-BVd152GS.js +94 -0
- package/dist/durable-nodes-BXyYCLxT.js +91 -0
- package/dist/duration-CDb7-mT_.js +33 -0
- package/dist/edge-mapper-wEAdGVU2.js +4477 -0
- package/dist/element-library-DkSlg_VE.js +727 -0
- package/dist/entities-I_0kio3q.js +38 -0
- package/dist/error-advice-QLr5NCm7.js +65 -0
- package/dist/errors-ClKb5sEt.js +188 -0
- package/dist/executions.d.ts +3 -0
- package/dist/executions.js +5 -0
- package/dist/feature-flags-B2qetXKd.js +385 -0
- package/dist/field-label-DPZRmE_B.js +153 -0
- package/dist/firstWorkflow-C_h0KMB2.js +133 -0
- package/dist/flags.d.ts +3 -0
- package/dist/flags.js +4 -0
- package/dist/flow-builder-DIvLOhz0.js +28038 -0
- package/dist/flow-store-holder-CUN7Terz.js +52 -0
- package/dist/fluent.generated-CA_e6-4l.js +14 -0
- package/dist/fluidgridsEvents-bbEQbwU6.js +175 -0
- package/dist/fluidgridsTheme-DUhvOgoy.js +297 -0
- package/dist/global-client-BQPuFrFa.js +433 -0
- package/dist/global-operations-BG6YgxrM.js +136 -0
- package/dist/graphql-types-UTYtujY9.js +21358 -0
- package/dist/history.d.ts +3 -0
- package/dist/history.js +4 -0
- package/dist/index-AoJAa5vU.d.ts +164958 -0
- package/dist/index-DEMT3iAM.d.ts +120 -0
- package/dist/index-ROZzNGyY.d.ts +76 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +8123 -0
- package/dist/ion.generated-mbajjcAg.js +10 -0
- package/dist/label-Lzb8ZXf_.js +29 -0
- package/dist/labels-rXd9gYQz.js +1236 -0
- package/dist/liveCanvas-D5ytXDp8.js +103 -0
- package/dist/logos.generated-X6_0kjVR.js +21 -0
- package/dist/logs-panel-Cw0DkG0l.js +468 -0
- package/dist/lucide.generated-B6NVd3GT.js +29 -0
- package/dist/marksStore-a9oIMMot.js +175 -0
- package/dist/mcp-trigger-D0nRdvq5.js +307 -0
- package/dist/mdi.generated-D1BV74d6.js +292 -0
- package/dist/menus-CU3hDGYl.js +160 -0
- package/dist/mynaui.generated-DMWr5cXz.js +66 -0
- package/dist/navigation-v2.d.ts +3 -0
- package/dist/navigation-v2.js +5 -0
- package/dist/node-detail-view-Cgm5H1P-.js +1372 -0
- package/dist/node-editor-tab-body-CZ0fVuVP.js +187 -0
- package/dist/node-operation-selection-CdV3KI_V.js +3534 -0
- package/dist/node-registry-refresh-s3okf83X.js +27 -0
- package/dist/node-role-TMbnkmeP.js +132 -0
- package/dist/node-type-icon-BZa8n4iG.js +33 -0
- package/dist/nodes.d.ts +3 -0
- package/dist/nodes.js +4 -0
- package/dist/notesKey-5EaREBGA.js +12 -0
- package/dist/observability.d.ts +3 -0
- package/dist/observability.js +5 -0
- package/dist/offset-pages-zghoClB3.js +55 -0
- package/dist/operations-BBmT9ToP.js +663 -0
- package/dist/operations-WxRJWeqO.js +3133 -0
- package/dist/output-files-Ba8bu5lv.js +196 -0
- package/dist/page-operation-DrWuhd6Y.js +129 -0
- package/dist/page-twins.d.ts +13 -0
- package/dist/page-twins.js +186 -0
- package/dist/pageControlSpecs-DZJ9K37m.js +134 -0
- package/dist/pageControlsBridge-0pX9s-3k.js +54 -0
- package/dist/pageControlsBridge-DAuT3w7L.d.ts +36 -0
- package/dist/panels-PfBBAToE.js +346 -0
- package/dist/parts-B7fBcw-B.js +346 -0
- package/dist/popover-Dms9Vz3j.js +3389 -0
- package/dist/preloadable-lazy-Pp47mqQ9.js +65 -0
- package/dist/proactive.d.ts +66 -0
- package/dist/proactive.js +237 -0
- package/dist/quick-config-panel-DFd77xho.js +451 -0
- package/dist/quota-DeA_CJ2e.js +175 -0
- package/dist/quota.d.ts +3 -0
- package/dist/quota.js +4 -0
- package/dist/read-only-context-Dt9N9SIG.js +18 -0
- package/dist/relative-time-Dxt8ZIIu.js +55 -0
- package/dist/results-CwK_yDxK.js +325 -0
- package/dist/rolldown-runtime-hDbaFkMy.js +18 -0
- package/dist/route-data.d.ts +12 -0
- package/dist/route-data.js +69 -0
- package/dist/route-match-C-0_EnAt.d.ts +5 -0
- package/dist/route-match-DMkUICYV.js +41 -0
- package/dist/route-preload-C4DlGoCd.js +120 -0
- package/dist/run-display-UjLAoYqQ.js +81 -0
- package/dist/run-history-arGiHzGU.js +285 -0
- package/dist/run-list-links-DJn4Mf1T.js +98 -0
- package/dist/run-mode-USmM0-Uo.js +82 -0
- package/dist/run-parity-CWXqEJqM.js +144 -0
- package/dist/runsQuota-B6SyTbne.js +100 -0
- package/dist/runsQuota-DsniKiSg.d.ts +20 -0
- package/dist/safe-expression-Cw7-SCsm.js +1251 -0
- package/dist/save-status-store-C7nEYpfb.js +631 -0
- package/dist/schedule-panel-B4GYXzXQ.js +13774 -0
- package/dist/schedule-rules-ggVKRkBH.js +358 -0
- package/dist/secrets-Re_wSiE3.js +153 -0
- package/dist/settings.d.ts +4 -0
- package/dist/settings.js +6 -0
- package/dist/shared-DAWGGMSM.js +177 -0
- package/dist/sidebar-node-editor-6eSSgCzc.js +178 -0
- package/dist/solar.generated-CGYuUQAC.js +10 -0
- package/dist/stableTabbedDialog-BBhrfXGe.js +20 -0
- package/dist/start-url-CT6Yz96K.js +24 -0
- package/dist/status-CessxGpm.js +55 -0
- package/dist/store-icon-OctYp5zP.js +155 -0
- package/dist/styles-WGmTnZ2n.js +26 -0
- package/dist/styles.css +139 -0
- package/dist/svg-spinners.generated-CIPT7IhM.js +10 -0
- package/dist/template-code-CzN6JWNV.js +191 -0
- package/dist/template-graph-DLF9dygU.js +20 -0
- package/dist/template-preview-DcIIKOOL.js +32 -0
- package/dist/template-price-CdUHZRMF.js +40 -0
- package/dist/templates.d.ts +3 -0
- package/dist/templates.js +5 -0
- package/dist/theme-provider-CntfC4_i.js +23 -0
- package/dist/transient-DgZfhDfN.js +57 -0
- package/dist/typed-calls-C5tO03wq.js +26 -0
- package/dist/ui-script-By74Guk3.js +1094 -0
- package/dist/ui-script-editor-CqPu2bCN.js +2447 -0
- package/dist/ui-step-fix-8uM2_Hft.js +67 -0
- package/dist/ui-step-fix-store-CcO1FdRx.js +19 -0
- package/dist/ui-step-run-context-o7bLE6KP.js +46 -0
- package/dist/ui-target-editor-D2JhB_lD.js +673 -0
- package/dist/uiMarkTools-CSznnO1i.js +1054 -0
- package/dist/upgradePrompt-BAFBKKW5.js +72 -0
- package/dist/use-bare-node-registry-O6mKJO_n.js +11498 -0
- package/dist/use-browser-available-hj8wc3Kb.js +241 -0
- package/dist/use-edge-mapper-schemas-Bonofxow.js +496 -0
- package/dist/use-extension-bridge-B9ZreOkQ.js +608 -0
- package/dist/use-mobile-BTqCUjzS.js +27 -0
- package/dist/use-sdk-query-C697xZVv.js +116 -0
- package/dist/use-workflow-code-editor-CFoRFrZ5.js +753 -0
- package/dist/useActionParam-B2tU2BlY.js +85 -0
- package/dist/useAgentTokenStream-Bko_J0d0.js +4217 -0
- package/dist/useBrowserClients-3v95-gSh.js +103 -0
- package/dist/useCodeWorkflowInsights-w0tz9Ap_.js +600 -0
- package/dist/useConnections-DsgEJs05.js +439 -0
- package/dist/useDebouncedValue-BFekcv6n.js +18 -0
- package/dist/useDurableParity-8fnMZmBc.js +1787 -0
- package/dist/useEntityTags-D0spL6Ut.js +460 -0
- package/dist/useExecutions-2u5nGJJk.js +681 -0
- package/dist/useFluidGridsAnalytics-VM8lAi2x.js +238 -0
- package/dist/useGlobalStoreClient-BTdhkA2I.js +24 -0
- package/dist/useHumanRequests-zlYDp3l1.js +221 -0
- package/dist/useNavigationV2-C2WeqN7d.js +29 -0
- package/dist/useNavigationV2-DANUmg12.d.ts +9 -0
- package/dist/useObservability-BRlQ0tOA.js +285 -0
- package/dist/useRequestedProposal-B7uPXfZB.js +51 -0
- package/dist/useRunHistory-CXCMUPyf.js +2759 -0
- package/dist/useRunLive-D0JvVZT2.js +1060 -0
- package/dist/useRunnerList-Dbi59i1K.js +446 -0
- package/dist/useRunners-URUc5quU.js +173 -0
- package/dist/useRunsPage-DG656UCK.js +2709 -0
- package/dist/useVariables-BIelxcWr.js +463 -0
- package/dist/useVersionHistoryData-CTjqVw7l.js +292 -0
- package/dist/useWorkflowCodeExport-pqxyLHD1.js +522 -0
- package/dist/useWorkflowListExport-hcZNvTaB.js +232 -0
- package/dist/useWorkflowOrganization-CpBbOrs7.js +1772 -0
- package/dist/useWorkflowProposal-BH0VdNMA.js +3280 -0
- package/dist/useWorkflows-Cvg-Z_IE.js +1606 -0
- package/dist/utils-fvBb5qOD.js +89 -0
- package/dist/webhook-deliveries-AvQujaZy.js +99 -0
- package/dist/workflow-builder-CJygVkVv.d.ts +2 -0
- package/dist/workflow-builder.d.ts +3 -0
- package/dist/workflow-builder.js +8 -0
- package/dist/workflow-code-transfer-Bsy0JKAZ.js +323 -0
- package/dist/workflow-embed.d.ts +3 -0
- package/dist/workflow-embed.js +4 -0
- package/dist/workflow-git-sync--K9ZsPDC.js +263 -0
- package/dist/workflow-host.d.ts +6 -0
- package/dist/workflow-host.js +11 -0
- package/dist/workflow-pages-D-7ByLTB.d.ts +68 -0
- package/dist/workflow-pages.d.ts +3 -0
- package/dist/workflow-pages.js +115 -0
- package/dist/workflow-preview-canvas-CO8yzdE3.js +848 -0
- package/dist/workflow-preview.d.ts +65 -0
- package/dist/workflow-preview.js +4 -0
- package/dist/workflow-route.d.ts +33 -0
- package/dist/workflow-route.js +4 -0
- package/dist/workflow-save-state-D0l-DkLf.js +767 -0
- package/dist/workflow-transfer-CQnQC-ke.js +104 -0
- package/dist/workflowRouteData-BkfVOc-O.js +169 -0
- package/dist/workflows-list.d.ts +10 -0
- package/dist/workflows-list.js +5 -0
- package/package.json +320 -4
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
// src/builder/node-registry-refresh.ts
|
|
3
|
+
/**
|
|
4
|
+
* Refreshing the builder's node registry without loading it (BOFF-11826).
|
|
5
|
+
*
|
|
6
|
+
* A host calls `refreshNodeRegistry()` when it sets the workspace's clients, so
|
|
7
|
+
* a registry that is already loaded reloads for the new workspace. The registry
|
|
8
|
+
* itself (`blocks/index.ts`) is part of the builder's code. Importing it for
|
|
9
|
+
* this call put the builder's registry, its node components and every GraphQL
|
|
10
|
+
* document into each workflow page's first load. While the registry module has
|
|
11
|
+
* not loaded there is nothing loaded to refresh, so this module only holds the
|
|
12
|
+
* refresh the registry hands it when it loads.
|
|
13
|
+
*/
|
|
14
|
+
let refresh = null;
|
|
15
|
+
/** Called once by the registry module when it loads. */
|
|
16
|
+
function provideNodeRegistryRefresh(fn) {
|
|
17
|
+
refresh = fn;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Reloads the node registry if it has loaded; otherwise there is nothing to
|
|
21
|
+
* refresh and it resolves at once. The builder loads the registry on demand.
|
|
22
|
+
*/
|
|
23
|
+
function refreshNodeRegistry() {
|
|
24
|
+
return refresh ? refresh() : Promise.resolve();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { refreshNodeRegistry as n, provideNodeRegistryRefresh as t };
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
// src/builder/lib/node-role.ts
|
|
3
|
+
function isRecord(value) {
|
|
4
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5
|
+
}
|
|
6
|
+
function readRecord(value) {
|
|
7
|
+
return isRecord(value) ? value : void 0;
|
|
8
|
+
}
|
|
9
|
+
function readString(value) {
|
|
10
|
+
return typeof value === "string" ? value.trim().toLowerCase() : "";
|
|
11
|
+
}
|
|
12
|
+
function operationRole(operation) {
|
|
13
|
+
const metadata = readRecord(operation);
|
|
14
|
+
const role = readString(metadata?.role);
|
|
15
|
+
if (role) return role === "trigger" ? "trigger" : "action";
|
|
16
|
+
const type = readString(metadata?.type);
|
|
17
|
+
if (type === "trigger" || type === "subscription" || readString(metadata?.delivery)) return "trigger";
|
|
18
|
+
if (type === "action" || type === "query" || type === "mutation") return "action";
|
|
19
|
+
}
|
|
20
|
+
function isTriggerOperation(operation) {
|
|
21
|
+
return operationRole(operation) === "trigger";
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The built-in trigger node types: every value of the `InternalTriggerType`
|
|
25
|
+
* enum in wspace-workflow-svc (`src/modules/triggers/manifests/index.ts`).
|
|
26
|
+
* Keep this list in step with that enum when a trigger is added there.
|
|
27
|
+
*
|
|
28
|
+
* The type alone is enough to recognise these nodes. A node copied from a
|
|
29
|
+
* store template or an n8n import often carries only `type` and
|
|
30
|
+
* `operation_name` (for example `internal:workflow-call` with
|
|
31
|
+
* `onWorkflowCall`), without the operation metadata the registry adds, and
|
|
32
|
+
* the builder must still treat it as the flow's trigger (BOFF-15125).
|
|
33
|
+
*/
|
|
34
|
+
const BUILTIN_TRIGGER_NODE_TYPES = [
|
|
35
|
+
"internal:schedule",
|
|
36
|
+
"internal:webhook",
|
|
37
|
+
"internal:api",
|
|
38
|
+
"internal:error-trigger",
|
|
39
|
+
"internal:activation",
|
|
40
|
+
"internal:workflow-call",
|
|
41
|
+
"internal:email-imap",
|
|
42
|
+
"internal:rss-feed",
|
|
43
|
+
"internal:database-poll",
|
|
44
|
+
"internal:http-poll",
|
|
45
|
+
"internal:url-shortener-trigger",
|
|
46
|
+
"internal:file-upload",
|
|
47
|
+
"internal:record-change",
|
|
48
|
+
"trigger:burdenoff-entity-event",
|
|
49
|
+
"internal:state-change",
|
|
50
|
+
"internal:timecampus-event",
|
|
51
|
+
"internal:email-inbound",
|
|
52
|
+
"internal:mcp-server",
|
|
53
|
+
"internal:form",
|
|
54
|
+
"internal:workflow-complete",
|
|
55
|
+
"internal:browser-extension"
|
|
56
|
+
];
|
|
57
|
+
/**
|
|
58
|
+
* Retired entry-point types that saved workflows may still carry. The backend
|
|
59
|
+
* keeps routing them as triggers: wspace-workflow-svc `extractTriggerNodes`
|
|
60
|
+
* (`internal:subworkflow-entry`, `internal:conditional`), its
|
|
61
|
+
* `LEGACY_TRIGGER_TYPES` in `execution-mode.ts` (`internal:manual` too), and the
|
|
62
|
+
* fluidgrids-workers entry-type sets (`internal:form-submit`). They are not
|
|
63
|
+
* offered in the palette, so they are kept apart from
|
|
64
|
+
* {@link BUILTIN_TRIGGER_NODE_TYPES}.
|
|
65
|
+
*
|
|
66
|
+
* `internal:error` is deliberately absent: it was the Error Trigger's type
|
|
67
|
+
* before the rename and is now the Stop and Error action node.
|
|
68
|
+
*/
|
|
69
|
+
const LEGACY_TRIGGER_NODE_TYPES = [
|
|
70
|
+
"internal:manual",
|
|
71
|
+
"internal:subworkflow-entry",
|
|
72
|
+
"internal:conditional",
|
|
73
|
+
"internal:form-submit"
|
|
74
|
+
];
|
|
75
|
+
const TRIGGER_NODE_TYPE_SET = /* @__PURE__ */ new Set([...BUILTIN_TRIGGER_NODE_TYPES, ...LEGACY_TRIGGER_NODE_TYPES]);
|
|
76
|
+
/**
|
|
77
|
+
* Built-in node types live in the `internal:` namespace. Every operation the
|
|
78
|
+
* workflow service declares on such a node with an `on<Event>` name is a
|
|
79
|
+
* trigger operation (all of them are in its trigger manifests), so the name
|
|
80
|
+
* alone identifies the trigger of a node saved without its operation metadata.
|
|
81
|
+
* The capital letter after `on` keeps verbs such as `onboard` out.
|
|
82
|
+
*/
|
|
83
|
+
const INTERNAL_NODE_TYPE_PREFIX = "internal:";
|
|
84
|
+
const TRIGGER_OPERATION_NAME = /^on[A-Z]/;
|
|
85
|
+
function isInternalTriggerOperationName(type, operationName) {
|
|
86
|
+
return type.startsWith(INTERNAL_NODE_TYPE_PREFIX) && typeof operationName === "string" && TRIGGER_OPERATION_NAME.test(operationName.trim());
|
|
87
|
+
}
|
|
88
|
+
function isLegacyTriggerType(type) {
|
|
89
|
+
return type === "trigger" || type.startsWith("trigger:") || type.startsWith("internal:schedule") || type.startsWith("internal:webhook") || type.startsWith("internal:api") || type.startsWith("internal:form") || type.startsWith("internal:mcp") || type.endsWith("_trigger") || type.endsWith("Trigger") || type.endsWith("-trigger");
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Whether a node type, on its own, names a trigger: a built-in trigger type
|
|
93
|
+
* ({@link BUILTIN_TRIGGER_NODE_TYPES}), a retired entry type
|
|
94
|
+
* ({@link LEGACY_TRIGGER_NODE_TYPES}) or one of the older type-name
|
|
95
|
+
* conventions. {@link isNodeTrigger} applies this only after the node's own
|
|
96
|
+
* operation and role metadata, so an action operation selected on a dual-role
|
|
97
|
+
* node still makes it an action.
|
|
98
|
+
*/
|
|
99
|
+
function isTriggerNodeType(type) {
|
|
100
|
+
if (!type) return false;
|
|
101
|
+
return TRIGGER_NODE_TYPE_SET.has(type) || isLegacyTriggerType(type);
|
|
102
|
+
}
|
|
103
|
+
function getSelectedOperationRole(nodeType, nodeData) {
|
|
104
|
+
const data = readRecord(nodeData);
|
|
105
|
+
const operationName = data?.operation_name;
|
|
106
|
+
if (typeof operationName !== "string" || !operationName.trim()) return void 0;
|
|
107
|
+
const declared = readRecord(data?.nodeData)?.operations;
|
|
108
|
+
const operations = Array.isArray(declared) ? declared : readRecord(declared)?.operations;
|
|
109
|
+
const selectedRole = operationRole(Array.isArray(operations) ? operations.find((entry) => readRecord(entry)?.name === operationName) : void 0) ?? operationRole({ type: data?.operation_type });
|
|
110
|
+
if (selectedRole) return selectedRole;
|
|
111
|
+
if (nodeType === "integration/channel" || nodeType?.startsWith("store/")) return operationName.startsWith("on") ? "trigger" : "action";
|
|
112
|
+
}
|
|
113
|
+
function isNodeTrigger(node) {
|
|
114
|
+
const data = readRecord(node.data);
|
|
115
|
+
const nodeType = typeof node.type === "string" && node.type.trim() ? node.type : typeof data?.nodeType === "string" ? data.nodeType : void 0;
|
|
116
|
+
const selectedRole = getSelectedOperationRole(nodeType, data);
|
|
117
|
+
if (selectedRole) return selectedRole === "trigger";
|
|
118
|
+
const state = readRecord(readRecord(data?.args)?.state);
|
|
119
|
+
for (const legacyRole of [data?.role, state?.role]) {
|
|
120
|
+
const explicitRole = readString(legacyRole);
|
|
121
|
+
if (explicitRole === "trigger" || explicitRole === "action") return explicitRole === "trigger";
|
|
122
|
+
}
|
|
123
|
+
const savedRole = operationRole({ type: data?.operation_type });
|
|
124
|
+
if (savedRole) return savedRole === "trigger";
|
|
125
|
+
if (isTriggerNodeType(nodeType)) return true;
|
|
126
|
+
if (nodeType && isInternalTriggerOperationName(nodeType, data?.operation_name)) return true;
|
|
127
|
+
const manifest = readRecord(data?.nodeData);
|
|
128
|
+
if (!data?.operation_name && Array.isArray(manifest?.kind) && manifest.kind.includes("trigger")) return true;
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export { isTriggerOperation as n, isNodeTrigger as t };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as Icon } from "./Icon-BtQ0HXLh.js";
|
|
3
|
+
import { n as storeIconCandidates, t as StoreIcon } from "./store-icon-OctYp5zP.js";
|
|
4
|
+
import { t as OfflineIcon } from "./OfflineIcon-TwMKYWjA.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { cn } from "@burdenoff/fe-libs/utils";
|
|
7
|
+
|
|
8
|
+
// src/builder/components/flow-builder/components/ui/node-type-icon.tsx
|
|
9
|
+
/**
|
|
10
|
+
* Renders a node's manifest icon regardless of format: image URLs render as
|
|
11
|
+
* <img>, Iconify names render as <Icon>. Keeps every surface (canvas card,
|
|
12
|
+
* store panel, NDV, info modal) working for both seeded and store-published
|
|
13
|
+
* nodes. An image that fails to load (expired upload link, dead host) falls
|
|
14
|
+
* back to `fallbackIcon` instead of showing a broken-image glyph.
|
|
15
|
+
*/
|
|
16
|
+
function NodeTypeIcon({ icon, alt, className, fallbackIcon = "mynaui:puzzle", offline = false }) {
|
|
17
|
+
return /* @__PURE__ */ jsx(StoreIcon, {
|
|
18
|
+
candidates: storeIconCandidates([icon, fallbackIcon]),
|
|
19
|
+
alt: alt ?? "",
|
|
20
|
+
imageClassName: cn("object-contain", className),
|
|
21
|
+
iconClassName: className,
|
|
22
|
+
offline,
|
|
23
|
+
fallback: offline ? /* @__PURE__ */ jsx(OfflineIcon, {
|
|
24
|
+
icon: fallbackIcon,
|
|
25
|
+
className
|
|
26
|
+
}) : /* @__PURE__ */ jsx(Icon, {
|
|
27
|
+
icon: fallbackIcon,
|
|
28
|
+
className
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { NodeTypeIcon as t };
|
package/dist/nodes.d.ts
ADDED
package/dist/nodes.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
// src/builder/agentNotes/notesKey.ts
|
|
3
|
+
/**
|
|
4
|
+
* ★ BOFF-11584: which workflow a canvas note belongs to. A saved workflow is
|
|
5
|
+
* known by its key across versions; a new one has no key until its first
|
|
6
|
+
* save, so its in-memory id stands in.
|
|
7
|
+
*/
|
|
8
|
+
function notesKeyOf(workflow) {
|
|
9
|
+
return workflow.workflowKey || workflow.id || "unsaved";
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { notesKeyOf as t };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
|
|
2
|
+
import { Co as InsightsPage, Eo as DataSinkDashboardPage, So as ErrorAnalyticsPage, _o as LogStreamDestination, bo as LogStreamProvider, go as FailedRun, ho as DataSinkSummary, mo as DataSinkData, po as DashboardSummary, vo as LogStreamDestinationInput, xo as NodeUsageStat, yo as LogStreamEventType } from "./index-AoJAa5vU.js";
|
|
3
|
+
export { type DashboardSummary, DataSinkDashboardPage, type DataSinkData, type DataSinkSummary, ErrorAnalyticsPage, type FailedRun, InsightsPage, type LogStreamDestination, type LogStreamDestinationInput, type LogStreamEventType, type LogStreamProvider, type NodeUsageStat };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
// src/utils/offset-pages.ts
|
|
3
|
+
/**
|
|
4
|
+
* Offset paging helpers for the workflow-service lists (BOFF-16425).
|
|
5
|
+
*
|
|
6
|
+
* `workflowDefinitions` and `workflowRuns` are moving to a server maximum of
|
|
7
|
+
* {@link LIST_PAGE_MAX} rows per request (the GraphQL pagination standard).
|
|
8
|
+
* A client that asks for more than that silently gets only the first
|
|
9
|
+
* {@link LIST_PAGE_MAX}, so any read of "every row loaded so far" (a refetch
|
|
10
|
+
* that keeps the person's place) or "the first N rows" must page instead of
|
|
11
|
+
* raising `limit`.
|
|
12
|
+
*/
|
|
13
|
+
/** The most rows one request to a capped workflow-service list asks for. */
|
|
14
|
+
const LIST_PAGE_MAX = 100;
|
|
15
|
+
/** `pageSize` clamped to what one request may ask for. */
|
|
16
|
+
function clampPageSize(pageSize) {
|
|
17
|
+
if (!Number.isFinite(pageSize) || pageSize < 1) return 100;
|
|
18
|
+
return Math.min(Math.floor(pageSize), 100);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Reads `count` rows (at least one page) as pages of at most
|
|
22
|
+
* {@link LIST_PAGE_MAX}. The first page gives the total, then the remaining
|
|
23
|
+
* pages up to `count` (and never past the total) are read together. Rows are
|
|
24
|
+
* de-duplicated by `keyOf`, and `hasMore` is the last page's, so it stays
|
|
25
|
+
* true only when rows past `count` remain unread.
|
|
26
|
+
*/
|
|
27
|
+
async function readPagesUpTo(read, options) {
|
|
28
|
+
const start = Math.max(0, options.offset ?? 0);
|
|
29
|
+
const size = clampPageSize(options.pageSize);
|
|
30
|
+
const first = await read(start, size);
|
|
31
|
+
const wanted = Math.max(options.count, size);
|
|
32
|
+
if (!first.hasMore || first.items.length === 0) return first;
|
|
33
|
+
const countEnd = start + wanted;
|
|
34
|
+
const end = Math.min(countEnd, Math.max(first.total, start));
|
|
35
|
+
const offsets = [];
|
|
36
|
+
for (let offset = start + size; offset < end; offset += size) offsets.push(offset);
|
|
37
|
+
if (offsets.length === 0) return first;
|
|
38
|
+
const rest = await Promise.all(offsets.map((offset) => read(offset, Math.min(size, countEnd - offset))));
|
|
39
|
+
const seen = /* @__PURE__ */ new Set();
|
|
40
|
+
const items = [];
|
|
41
|
+
for (const page of [first, ...rest]) for (const item of page.items) {
|
|
42
|
+
const key = options.keyOf(item);
|
|
43
|
+
if (seen.has(key)) continue;
|
|
44
|
+
seen.add(key);
|
|
45
|
+
items.push(item);
|
|
46
|
+
}
|
|
47
|
+
const last = rest[rest.length - 1] ?? first;
|
|
48
|
+
return {
|
|
49
|
+
items,
|
|
50
|
+
total: first.total,
|
|
51
|
+
hasMore: last.hasMore
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { readPagesUpTo as t };
|