@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,322 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
|
|
3
|
+
import { i as themeKey, n as applyFluidGridsTheme } from "./fluidgridsTheme-DUhvOgoy.js";
|
|
4
|
+
import { create } from "zustand";
|
|
5
|
+
|
|
6
|
+
// src/modules/executions/store/executionsStore.ts
|
|
7
|
+
const DEFAULT_EXECUTIONS_FILTER = {
|
|
8
|
+
status: "all",
|
|
9
|
+
workflowKey: "",
|
|
10
|
+
dateRange: {
|
|
11
|
+
start: null,
|
|
12
|
+
end: null,
|
|
13
|
+
preset: "all"
|
|
14
|
+
},
|
|
15
|
+
search: "",
|
|
16
|
+
triggerType: "all",
|
|
17
|
+
durationMinSeconds: null,
|
|
18
|
+
durationMaxSeconds: null,
|
|
19
|
+
errorType: "all",
|
|
20
|
+
nodeId: "",
|
|
21
|
+
failedNodeType: "",
|
|
22
|
+
tagId: "",
|
|
23
|
+
workflowId: ""
|
|
24
|
+
};
|
|
25
|
+
const defaultPagination = {
|
|
26
|
+
page: 1,
|
|
27
|
+
pageSize: 25,
|
|
28
|
+
total: 0
|
|
29
|
+
};
|
|
30
|
+
const useExecutionsStore = create((set) => ({
|
|
31
|
+
viewMode: "table",
|
|
32
|
+
selectedExecution: null,
|
|
33
|
+
expandedRows: /* @__PURE__ */ new Set(),
|
|
34
|
+
selection: {
|
|
35
|
+
runIds: [],
|
|
36
|
+
allSelected: false
|
|
37
|
+
},
|
|
38
|
+
filter: DEFAULT_EXECUTIONS_FILTER,
|
|
39
|
+
pagination: defaultPagination,
|
|
40
|
+
isFilterPanelOpen: false,
|
|
41
|
+
isDetailsPanelOpen: false,
|
|
42
|
+
autoRefresh: true,
|
|
43
|
+
autoRefreshInterval: 5e3,
|
|
44
|
+
liveRunIds: /* @__PURE__ */ new Set(),
|
|
45
|
+
setViewMode: (mode) => set({ viewMode: mode }),
|
|
46
|
+
setSelectedExecution: (execution) => set({
|
|
47
|
+
selectedExecution: execution,
|
|
48
|
+
isDetailsPanelOpen: execution !== null
|
|
49
|
+
}),
|
|
50
|
+
toggleRowExpanded: (runId) => set((state) => {
|
|
51
|
+
const newExpanded = new Set(state.expandedRows);
|
|
52
|
+
if (newExpanded.has(runId)) newExpanded.delete(runId);
|
|
53
|
+
else newExpanded.add(runId);
|
|
54
|
+
return { expandedRows: newExpanded };
|
|
55
|
+
}),
|
|
56
|
+
setSelection: (selection) => set({ selection }),
|
|
57
|
+
toggleSelectRun: (runId) => set((state) => {
|
|
58
|
+
return { selection: {
|
|
59
|
+
runIds: state.selection.runIds.includes(runId) ? state.selection.runIds.filter((id) => id !== runId) : [...state.selection.runIds, runId],
|
|
60
|
+
allSelected: false
|
|
61
|
+
} };
|
|
62
|
+
}),
|
|
63
|
+
selectAll: (runIds) => set((state) => ({ selection: {
|
|
64
|
+
runIds: state.selection.allSelected ? [] : runIds,
|
|
65
|
+
allSelected: !state.selection.allSelected
|
|
66
|
+
} })),
|
|
67
|
+
clearSelection: () => set({ selection: {
|
|
68
|
+
runIds: [],
|
|
69
|
+
allSelected: false
|
|
70
|
+
} }),
|
|
71
|
+
updateFilter: (filterUpdate) => set((state) => ({
|
|
72
|
+
filter: {
|
|
73
|
+
...state.filter,
|
|
74
|
+
...filterUpdate
|
|
75
|
+
},
|
|
76
|
+
pagination: {
|
|
77
|
+
...state.pagination,
|
|
78
|
+
page: 1
|
|
79
|
+
}
|
|
80
|
+
})),
|
|
81
|
+
setStatusFilter: (status) => set((state) => ({
|
|
82
|
+
filter: {
|
|
83
|
+
...state.filter,
|
|
84
|
+
status
|
|
85
|
+
},
|
|
86
|
+
pagination: {
|
|
87
|
+
...state.pagination,
|
|
88
|
+
page: 1
|
|
89
|
+
}
|
|
90
|
+
})),
|
|
91
|
+
setWorkflowFilter: (workflowKey) => set((state) => ({
|
|
92
|
+
filter: {
|
|
93
|
+
...state.filter,
|
|
94
|
+
workflowKey
|
|
95
|
+
},
|
|
96
|
+
pagination: {
|
|
97
|
+
...state.pagination,
|
|
98
|
+
page: 1
|
|
99
|
+
}
|
|
100
|
+
})),
|
|
101
|
+
setDateRange: (dateRange) => set((state) => ({
|
|
102
|
+
filter: {
|
|
103
|
+
...state.filter,
|
|
104
|
+
dateRange
|
|
105
|
+
},
|
|
106
|
+
pagination: {
|
|
107
|
+
...state.pagination,
|
|
108
|
+
page: 1
|
|
109
|
+
}
|
|
110
|
+
})),
|
|
111
|
+
setSearchQuery: (search) => set((state) => ({
|
|
112
|
+
filter: {
|
|
113
|
+
...state.filter,
|
|
114
|
+
search
|
|
115
|
+
},
|
|
116
|
+
pagination: {
|
|
117
|
+
...state.pagination,
|
|
118
|
+
page: 1
|
|
119
|
+
}
|
|
120
|
+
})),
|
|
121
|
+
setTriggerTypeFilter: (triggerType) => set((state) => ({
|
|
122
|
+
filter: {
|
|
123
|
+
...state.filter,
|
|
124
|
+
triggerType
|
|
125
|
+
},
|
|
126
|
+
pagination: {
|
|
127
|
+
...state.pagination,
|
|
128
|
+
page: 1
|
|
129
|
+
}
|
|
130
|
+
})),
|
|
131
|
+
setDurationFilter: (durationMinSeconds, durationMaxSeconds) => set((state) => ({
|
|
132
|
+
filter: {
|
|
133
|
+
...state.filter,
|
|
134
|
+
durationMinSeconds,
|
|
135
|
+
durationMaxSeconds
|
|
136
|
+
},
|
|
137
|
+
pagination: {
|
|
138
|
+
...state.pagination,
|
|
139
|
+
page: 1
|
|
140
|
+
}
|
|
141
|
+
})),
|
|
142
|
+
setErrorTypeFilter: (errorType) => set((state) => ({
|
|
143
|
+
filter: {
|
|
144
|
+
...state.filter,
|
|
145
|
+
errorType
|
|
146
|
+
},
|
|
147
|
+
pagination: {
|
|
148
|
+
...state.pagination,
|
|
149
|
+
page: 1
|
|
150
|
+
}
|
|
151
|
+
})),
|
|
152
|
+
setNodeFilter: (nodeId) => set((state) => ({
|
|
153
|
+
filter: {
|
|
154
|
+
...state.filter,
|
|
155
|
+
nodeId
|
|
156
|
+
},
|
|
157
|
+
pagination: {
|
|
158
|
+
...state.pagination,
|
|
159
|
+
page: 1
|
|
160
|
+
}
|
|
161
|
+
})),
|
|
162
|
+
setFailedNodeTypeFilter: (failedNodeType) => set((state) => ({
|
|
163
|
+
filter: {
|
|
164
|
+
...state.filter,
|
|
165
|
+
failedNodeType
|
|
166
|
+
},
|
|
167
|
+
pagination: {
|
|
168
|
+
...state.pagination,
|
|
169
|
+
page: 1
|
|
170
|
+
}
|
|
171
|
+
})),
|
|
172
|
+
setTagFilter: (tagId) => set((state) => ({
|
|
173
|
+
filter: {
|
|
174
|
+
...state.filter,
|
|
175
|
+
tagId
|
|
176
|
+
},
|
|
177
|
+
pagination: {
|
|
178
|
+
...state.pagination,
|
|
179
|
+
page: 1
|
|
180
|
+
}
|
|
181
|
+
})),
|
|
182
|
+
setWorkflowIdFilter: (workflowId) => set((state) => ({
|
|
183
|
+
filter: {
|
|
184
|
+
...state.filter,
|
|
185
|
+
workflowId
|
|
186
|
+
},
|
|
187
|
+
pagination: {
|
|
188
|
+
...state.pagination,
|
|
189
|
+
page: 1
|
|
190
|
+
}
|
|
191
|
+
})),
|
|
192
|
+
resetFilters: () => set({
|
|
193
|
+
filter: DEFAULT_EXECUTIONS_FILTER,
|
|
194
|
+
pagination: { ...defaultPagination }
|
|
195
|
+
}),
|
|
196
|
+
setPage: (page) => set((state) => ({ pagination: {
|
|
197
|
+
...state.pagination,
|
|
198
|
+
page
|
|
199
|
+
} })),
|
|
200
|
+
setPageSize: (pageSize) => set((state) => ({ pagination: {
|
|
201
|
+
...state.pagination,
|
|
202
|
+
pageSize,
|
|
203
|
+
page: 1
|
|
204
|
+
} })),
|
|
205
|
+
setTotal: (total) => set((state) => ({ pagination: {
|
|
206
|
+
...state.pagination,
|
|
207
|
+
total
|
|
208
|
+
} })),
|
|
209
|
+
toggleFilterPanel: () => set((state) => ({ isFilterPanelOpen: !state.isFilterPanelOpen })),
|
|
210
|
+
toggleDetailsPanel: () => set((state) => ({ isDetailsPanelOpen: !state.isDetailsPanelOpen })),
|
|
211
|
+
setAutoRefresh: (enabled) => set({ autoRefresh: enabled }),
|
|
212
|
+
setAutoRefreshInterval: (interval) => set({ autoRefreshInterval: interval }),
|
|
213
|
+
addLiveRun: (runId) => set((state) => {
|
|
214
|
+
const newLiveRunIds = new Set(state.liveRunIds);
|
|
215
|
+
newLiveRunIds.add(runId);
|
|
216
|
+
return { liveRunIds: newLiveRunIds };
|
|
217
|
+
}),
|
|
218
|
+
removeLiveRun: (runId) => set((state) => {
|
|
219
|
+
const newLiveRunIds = new Set(state.liveRunIds);
|
|
220
|
+
newLiveRunIds.delete(runId);
|
|
221
|
+
return { liveRunIds: newLiveRunIds };
|
|
222
|
+
}),
|
|
223
|
+
clearLiveRuns: () => set({ liveRunIds: /* @__PURE__ */ new Set() })
|
|
224
|
+
}));
|
|
225
|
+
|
|
226
|
+
// src/config/index.ts
|
|
227
|
+
var config_exports = /* @__PURE__ */ __exportAll({ getFluidGridsConfig: () => getFluidGridsConfig });
|
|
228
|
+
let runtimeConfig = {
|
|
229
|
+
apiGatewayUrl: "",
|
|
230
|
+
workspaceId: ""
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* Get current configuration via proxy for live access
|
|
234
|
+
*/
|
|
235
|
+
const config = new Proxy({}, { get(_, prop) {
|
|
236
|
+
return runtimeConfig[prop];
|
|
237
|
+
} });
|
|
238
|
+
/**
|
|
239
|
+
* Get the full configuration object
|
|
240
|
+
*/
|
|
241
|
+
function getFluidGridsConfig() {
|
|
242
|
+
return { ...runtimeConfig };
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Set runtime configuration
|
|
246
|
+
*/
|
|
247
|
+
function setFluidGridsConfig(newConfig) {
|
|
248
|
+
const previous = runtimeConfig;
|
|
249
|
+
runtimeConfig = {
|
|
250
|
+
...runtimeConfig,
|
|
251
|
+
...newConfig
|
|
252
|
+
};
|
|
253
|
+
if (previous.authToken !== runtimeConfig.authToken || previous.workspaceToken !== runtimeConfig.workspaceToken) tokenRevision += 1;
|
|
254
|
+
if ("theme" in newConfig) syncConfigTheme(newConfig.theme);
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Reset configuration to defaults
|
|
258
|
+
*/
|
|
259
|
+
function resetFluidGridsConfig() {
|
|
260
|
+
for (const listener of [...beforeResetListeners]) try {
|
|
261
|
+
listener();
|
|
262
|
+
} catch {}
|
|
263
|
+
tokenRevision += 1;
|
|
264
|
+
runtimeConfig = {
|
|
265
|
+
apiGatewayUrl: "",
|
|
266
|
+
workspaceId: ""
|
|
267
|
+
};
|
|
268
|
+
syncConfigTheme(void 0);
|
|
269
|
+
}
|
|
270
|
+
const beforeResetListeners = /* @__PURE__ */ new Set();
|
|
271
|
+
/**
|
|
272
|
+
* Calls `listener` at the start of every `resetFluidGridsConfig()`, before the
|
|
273
|
+
* config is cleared. Internal: the SDK uses it to send pending builder timings
|
|
274
|
+
* whichever host (FluidGridsProvider or a host that sets the config itself)
|
|
275
|
+
* resets the config. Returns a function that removes the listener.
|
|
276
|
+
*/
|
|
277
|
+
function onBeforeFluidGridsConfigReset(listener) {
|
|
278
|
+
beforeResetListeners.add(listener);
|
|
279
|
+
return () => {
|
|
280
|
+
beforeResetListeners.delete(listener);
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
let tokenRevision = 0;
|
|
284
|
+
/** Current token revision. Internal: used by the SDK's Apollo clients. */
|
|
285
|
+
function getFluidGridsTokenRevision() {
|
|
286
|
+
return tokenRevision;
|
|
287
|
+
}
|
|
288
|
+
let configTheme = null;
|
|
289
|
+
function syncConfigTheme(theme) {
|
|
290
|
+
const key = themeKey(theme);
|
|
291
|
+
if (configTheme?.key === key) return;
|
|
292
|
+
const previous = configTheme;
|
|
293
|
+
configTheme = key ? {
|
|
294
|
+
key,
|
|
295
|
+
dispose: applyFluidGridsTheme(theme)
|
|
296
|
+
} : null;
|
|
297
|
+
previous?.dispose();
|
|
298
|
+
}
|
|
299
|
+
function normalizeOrigin(origin) {
|
|
300
|
+
return origin.replace(/\/$/, "");
|
|
301
|
+
}
|
|
302
|
+
function validateTrustedOrigin(trustedOrigins) {
|
|
303
|
+
if (typeof window === "undefined" || !trustedOrigins?.length) return;
|
|
304
|
+
const currentOrigin = normalizeOrigin(window.location.origin);
|
|
305
|
+
if (!trustedOrigins.map(normalizeOrigin).includes(currentOrigin)) throw new Error(`FluidGrids SDK blocked untrusted origin: ${currentOrigin}`);
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Get the GraphQL endpoint URL
|
|
309
|
+
*/
|
|
310
|
+
function getGraphQLEndpoint(baseUrl) {
|
|
311
|
+
const url = baseUrl || runtimeConfig.apiGatewayUrl;
|
|
312
|
+
if (!url) throw new Error("FluidGrids SDK requires apiGatewayUrl to be configured");
|
|
313
|
+
const normalizedBase = url.endsWith("/") ? url.slice(0, -1) : url;
|
|
314
|
+
if (normalizedBase.endsWith("/graphql")) return normalizedBase;
|
|
315
|
+
return `${normalizedBase}/workspaces/graphql`;
|
|
316
|
+
}
|
|
317
|
+
/** Clear user execution state only when a host session ends or changes identity. */
|
|
318
|
+
function resetFluidGridsExecutionState() {
|
|
319
|
+
useExecutionsStore.setState(useExecutionsStore.getInitialState(), true);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export { getGraphQLEndpoint as a, resetFluidGridsExecutionState as c, DEFAULT_EXECUTIONS_FILTER as d, useExecutionsStore as f, getFluidGridsTokenRevision as i, setFluidGridsConfig as l, config_exports as n, onBeforeFluidGridsConfigReset as o, getFluidGridsConfig as r, resetFluidGridsConfig as s, config as t, validateTrustedOrigin as u };
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
|
|
2
|
+
import { ReactElement, ReactNode } from "react";
|
|
3
|
+
import { ApolloClient } from "@apollo/client/core";
|
|
4
|
+
declare const FLUIDGRIDS_EVENTS_VERSION = "1.1.0";
|
|
5
|
+
type FluidGridsErrorSource = "workflow:save" | "workflow:activate" | "run:start";
|
|
6
|
+
interface FluidGridsEventMap {
|
|
7
|
+
"workflow:saved": {
|
|
8
|
+
workflowKey: string;
|
|
9
|
+
version?: string;
|
|
10
|
+
id?: string;
|
|
11
|
+
};
|
|
12
|
+
"workflow:activated": {
|
|
13
|
+
workflowKey: string;
|
|
14
|
+
version?: string;
|
|
15
|
+
};
|
|
16
|
+
"run:started": {
|
|
17
|
+
runId: string;
|
|
18
|
+
workflowKey?: string;
|
|
19
|
+
mode?: string;
|
|
20
|
+
};
|
|
21
|
+
"run:completed": {
|
|
22
|
+
runId: string;
|
|
23
|
+
status: string;
|
|
24
|
+
workflowKey?: string;
|
|
25
|
+
};
|
|
26
|
+
"node:selected": {
|
|
27
|
+
nodeId: string | null;
|
|
28
|
+
nodeType?: string;
|
|
29
|
+
};
|
|
30
|
+
error: {
|
|
31
|
+
source: FluidGridsErrorSource;
|
|
32
|
+
message: string;
|
|
33
|
+
code?: string;
|
|
34
|
+
};
|
|
35
|
+
"auth:failed": {
|
|
36
|
+
message: string;
|
|
37
|
+
};
|
|
38
|
+
"builder:fullscreen": {
|
|
39
|
+
active: boolean;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
type FluidGridsEventName = keyof FluidGridsEventMap;
|
|
43
|
+
type FluidGridsEventPayload<K extends FluidGridsEventName> = FluidGridsEventMap[K];
|
|
44
|
+
declare const FLUIDGRIDS_EVENT_NAMES: readonly FluidGridsEventName[];
|
|
45
|
+
type FluidGridsEventArgs = { [K in FluidGridsEventName]: [name: K, payload: FluidGridsEventMap[K]]; }[FluidGridsEventName];
|
|
46
|
+
type FluidGridsEventHandler = (...args: FluidGridsEventArgs) => void;
|
|
47
|
+
type FluidGridsThemeMode = "light" | "dark";
|
|
48
|
+
interface FluidGridsThemeColors {
|
|
49
|
+
bgCanvas?: string;
|
|
50
|
+
bgSurface?: string;
|
|
51
|
+
bgElevated?: string;
|
|
52
|
+
bgSunken?: string;
|
|
53
|
+
textPrimary?: string;
|
|
54
|
+
textSecondary?: string;
|
|
55
|
+
textMuted?: string;
|
|
56
|
+
borderDefault?: string;
|
|
57
|
+
borderSubtle?: string;
|
|
58
|
+
borderStrong?: string;
|
|
59
|
+
primary?: string;
|
|
60
|
+
primaryHover?: string;
|
|
61
|
+
primaryActive?: string;
|
|
62
|
+
primaryText?: string;
|
|
63
|
+
success?: string;
|
|
64
|
+
warning?: string;
|
|
65
|
+
error?: string;
|
|
66
|
+
info?: string;
|
|
67
|
+
}
|
|
68
|
+
interface FluidGridsThemeRadius {
|
|
69
|
+
base?: string;
|
|
70
|
+
card?: string;
|
|
71
|
+
button?: string;
|
|
72
|
+
input?: string;
|
|
73
|
+
}
|
|
74
|
+
interface FluidGridsThemeFont {
|
|
75
|
+
body?: string;
|
|
76
|
+
heading?: string;
|
|
77
|
+
mono?: string;
|
|
78
|
+
}
|
|
79
|
+
interface FluidGridsThemeTokens {
|
|
80
|
+
mode?: FluidGridsThemeMode;
|
|
81
|
+
colors?: FluidGridsThemeColors;
|
|
82
|
+
radius?: FluidGridsThemeRadius;
|
|
83
|
+
font?: FluidGridsThemeFont;
|
|
84
|
+
}
|
|
85
|
+
type FluidGridsTheme = FluidGridsThemeMode | FluidGridsThemeTokens;
|
|
86
|
+
type FluidGridsThemeValueKind = "color" | "length" | "font";
|
|
87
|
+
interface FluidGridsThemeTokenMapping {
|
|
88
|
+
kind: FluidGridsThemeValueKind;
|
|
89
|
+
cssVariables: readonly string[];
|
|
90
|
+
}
|
|
91
|
+
type FluidGridsThemeTokenKey = `colors.${keyof FluidGridsThemeColors & string}` | `radius.${keyof FluidGridsThemeRadius & string}` | `font.${keyof FluidGridsThemeFont & string}`;
|
|
92
|
+
declare const FLUIDGRIDS_THEME_TOKEN_MAP: Readonly<Record<FluidGridsThemeTokenKey, FluidGridsThemeTokenMapping>>;
|
|
93
|
+
declare function themeToCssVariables(theme: FluidGridsTheme | null | undefined): Record<string, string>;
|
|
94
|
+
declare function applyFluidGridsTheme(theme: FluidGridsTheme | null | undefined): () => void;
|
|
95
|
+
interface WorkflowSavedResult {
|
|
96
|
+
dbId: string;
|
|
97
|
+
workflowKey: string;
|
|
98
|
+
version: string;
|
|
99
|
+
name: string;
|
|
100
|
+
description?: string;
|
|
101
|
+
operation: "created" | "updated" | "versioned";
|
|
102
|
+
}
|
|
103
|
+
interface FluidGridsRefreshedTokens {
|
|
104
|
+
authToken?: string;
|
|
105
|
+
workspaceToken?: string;
|
|
106
|
+
}
|
|
107
|
+
interface FluidGridsAuthConfig {
|
|
108
|
+
onTokenExpired?: () => Promise<string | FluidGridsRefreshedTokens>;
|
|
109
|
+
}
|
|
110
|
+
interface FluidGridsConfig {
|
|
111
|
+
apiGatewayUrl: string;
|
|
112
|
+
globalApiUrl?: string;
|
|
113
|
+
authToken?: string;
|
|
114
|
+
workspaceId: string;
|
|
115
|
+
workspaceToken?: string;
|
|
116
|
+
tenantId?: string;
|
|
117
|
+
organizationId?: string;
|
|
118
|
+
fluidgridFrontendUrl?: string;
|
|
119
|
+
productId?: string;
|
|
120
|
+
productName?: string;
|
|
121
|
+
trustedOrigins?: string[];
|
|
122
|
+
devportalBasePath?: string;
|
|
123
|
+
onWorkflowSaved?: (result: WorkflowSavedResult) => void | Promise<void>;
|
|
124
|
+
theme?: FluidGridsTheme;
|
|
125
|
+
auth?: FluidGridsAuthConfig;
|
|
126
|
+
onEvent?: FluidGridsEventHandler;
|
|
127
|
+
builderTimings?: {
|
|
128
|
+
enabled?: boolean;
|
|
129
|
+
sampleRate?: number;
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
declare const config: FluidGridsConfig;
|
|
133
|
+
declare function getFluidGridsConfig(): FluidGridsConfig;
|
|
134
|
+
declare function setFluidGridsConfig(newConfig: Partial<FluidGridsConfig>): void;
|
|
135
|
+
declare function resetFluidGridsConfig(): void;
|
|
136
|
+
declare function getGraphQLEndpoint(baseUrl?: string): string;
|
|
137
|
+
declare function resetFluidGridsExecutionState(): void;
|
|
138
|
+
declare function refreshNodeRegistry(): Promise<void>;
|
|
139
|
+
declare function setFluidGridsClient(client: ApolloClient): void;
|
|
140
|
+
declare function getFluidGridsClient(): ApolloClient;
|
|
141
|
+
declare function getFluidGridsClientSafe(): ApolloClient | null;
|
|
142
|
+
declare function isFluidGridsClientReady(): boolean;
|
|
143
|
+
declare function waitForFluidGridsClient(timeoutMs?: number, intervalMs?: number): Promise<ApolloClient | null>;
|
|
144
|
+
declare function resetFluidGridsClient(): void;
|
|
145
|
+
interface FluidGridsClientConfig {
|
|
146
|
+
apiGatewayUrl: string;
|
|
147
|
+
authToken?: string;
|
|
148
|
+
workspaceToken?: string;
|
|
149
|
+
workspaceId: string;
|
|
150
|
+
tenantId?: string;
|
|
151
|
+
productId?: string;
|
|
152
|
+
}
|
|
153
|
+
declare function createFluidGridsClient(config: FluidGridsClientConfig): ApolloClient;
|
|
154
|
+
interface GlobalClientConfig {
|
|
155
|
+
globalApiUrl: string;
|
|
156
|
+
authToken?: string;
|
|
157
|
+
workspaceId: string;
|
|
158
|
+
tenantId?: string;
|
|
159
|
+
organizationId?: string;
|
|
160
|
+
}
|
|
161
|
+
declare function setGlobalStoreClient(client: ApolloClient | null): void;
|
|
162
|
+
declare function getGlobalStoreClient(): ApolloClient | null;
|
|
163
|
+
declare function resetGlobalStoreClient(): void;
|
|
164
|
+
declare function createGlobalStoreClient(config: GlobalClientConfig): ApolloClient;
|
|
165
|
+
interface FluidGridsPermissionsValue {
|
|
166
|
+
hasPermission: (permission: string) => boolean;
|
|
167
|
+
isLoading: boolean;
|
|
168
|
+
enforced: boolean;
|
|
169
|
+
}
|
|
170
|
+
declare const ALLOW_ALL_PERMISSIONS: FluidGridsPermissionsValue;
|
|
171
|
+
interface FluidGridsPermissionsProviderProps {
|
|
172
|
+
hasPermission: (permission: string) => boolean;
|
|
173
|
+
isLoading?: boolean;
|
|
174
|
+
children: ReactNode;
|
|
175
|
+
}
|
|
176
|
+
declare function FluidGridsPermissionsProvider({ hasPermission, isLoading, children }: FluidGridsPermissionsProviderProps): ReactElement;
|
|
177
|
+
interface PermissionCheck {
|
|
178
|
+
allowed: boolean;
|
|
179
|
+
isLoading: boolean;
|
|
180
|
+
enforced: boolean;
|
|
181
|
+
}
|
|
182
|
+
declare function evaluatePermissionCheck(ctx: FluidGridsPermissionsValue, permission: string | readonly string[]): PermissionCheck;
|
|
183
|
+
declare function useFluidGridsPermission(permission: string | readonly string[]): PermissionCheck;
|
|
184
|
+
interface DisableableProps {
|
|
185
|
+
disabled?: boolean;
|
|
186
|
+
onClick?: (...args: never[]) => unknown;
|
|
187
|
+
}
|
|
188
|
+
interface SdkPermissionButtonProps {
|
|
189
|
+
permission: string | readonly string[];
|
|
190
|
+
deniedBehavior?: "disable" | "hide";
|
|
191
|
+
deniedTooltip?: string;
|
|
192
|
+
deniedTooltipClassName?: string;
|
|
193
|
+
children: ReactElement<DisableableProps>;
|
|
194
|
+
}
|
|
195
|
+
declare function SdkPermissionButton({ permission, deniedBehavior, deniedTooltip, deniedTooltipClassName, children }: SdkPermissionButtonProps): ReactElement | null;
|
|
196
|
+
interface SdkPermissionGateProps {
|
|
197
|
+
permission: string | readonly string[];
|
|
198
|
+
fallback?: ReactNode;
|
|
199
|
+
children: ReactNode;
|
|
200
|
+
}
|
|
201
|
+
declare function SdkPermissionGate({ permission, fallback, children }: SdkPermissionGateProps): ReactElement | null;
|
|
202
|
+
declare const FLUIDGRIDS_PERMISSIONS: {
|
|
203
|
+
readonly WORKFLOW_LIST: "workflow:list";
|
|
204
|
+
readonly WORKFLOW_READ: "workflow:read";
|
|
205
|
+
readonly WORKFLOW_CREATE: "workflow:create";
|
|
206
|
+
readonly WORKFLOW_UPDATE: "workflow:update";
|
|
207
|
+
readonly WORKFLOW_DELETE: "workflow:delete";
|
|
208
|
+
readonly WORKFLOW_EXECUTE: "workflow:execute";
|
|
209
|
+
readonly WORKFLOW_PUBLISH: "workflow:publish";
|
|
210
|
+
readonly WORKFLOW_SHARE: "workflow:share";
|
|
211
|
+
readonly WORKFLOW_RUN_LIST: "workflow-run:list";
|
|
212
|
+
readonly WORKFLOW_RUN_READ: "workflow-run:read";
|
|
213
|
+
readonly WORKFLOW_RUN_EXECUTE: "workflow-run:execute";
|
|
214
|
+
readonly WORKFLOW_RUN_DELETE: "workflow-run:delete";
|
|
215
|
+
readonly NODE_LIST: "node:list";
|
|
216
|
+
readonly NODE_READ: "node:read";
|
|
217
|
+
readonly NODE_CREATE: "node:create";
|
|
218
|
+
readonly NODE_DELETE: "node:delete";
|
|
219
|
+
readonly NODE_INSTALLATION_LIST: "node-installation:list";
|
|
220
|
+
readonly NODE_INSTALLATION_READ: "node-installation:read";
|
|
221
|
+
readonly NODE_INSTALLATION_CREATE: "node-installation:create";
|
|
222
|
+
readonly NODE_INSTALLATION_UPDATE: "node-installation:update";
|
|
223
|
+
readonly NODE_INSTALLATION_DELETE: "node-installation:delete";
|
|
224
|
+
readonly NODE_ENDPOINT_CONFIG_LIST: "node-endpoint-config:list";
|
|
225
|
+
readonly NODE_ENDPOINT_CONFIG_READ: "node-endpoint-config:read";
|
|
226
|
+
readonly NODE_ENDPOINT_CONFIG_UPDATE: "node-endpoint-config:update";
|
|
227
|
+
readonly NODE_ENDPOINT_CONFIG_DELETE: "node-endpoint-config:delete";
|
|
228
|
+
readonly SCHEDULED_JOB_LIST: "scheduled-job:list";
|
|
229
|
+
readonly SCHEDULED_JOB_READ: "scheduled-job:read";
|
|
230
|
+
readonly SCHEDULED_JOB_CREATE: "scheduled-job:create";
|
|
231
|
+
readonly SCHEDULED_JOB_UPDATE: "scheduled-job:update";
|
|
232
|
+
readonly SCHEDULED_JOB_DELETE: "scheduled-job:delete";
|
|
233
|
+
readonly AI_WORKFLOW_EXECUTE: "ai-workflow:execute";
|
|
234
|
+
readonly AI_WORKFLOW_CREATE: "ai-workflow:create";
|
|
235
|
+
readonly ARTIFACT_LIST: "artifact:list";
|
|
236
|
+
readonly ARTIFACT_READ: "artifact:read";
|
|
237
|
+
readonly ARTIFACT_DELETE: "artifact:delete";
|
|
238
|
+
readonly CHAT_SESSION_LIST: "chat-session:list";
|
|
239
|
+
readonly CHAT_SESSION_READ: "chat-session:read";
|
|
240
|
+
readonly CHAT_SESSION_CREATE: "chat-session:create";
|
|
241
|
+
readonly CHAT_SESSION_DELETE: "chat-session:delete";
|
|
242
|
+
readonly SUBMISSION_LIST: "submission:list";
|
|
243
|
+
readonly SUBMISSION_READ: "submission:read";
|
|
244
|
+
readonly SUBMISSION_DELETE: "submission:delete";
|
|
245
|
+
readonly SUBMISSION_EXECUTE: "submission:execute";
|
|
246
|
+
readonly EVENT_REGISTRATION_LIST: "event-registration:list";
|
|
247
|
+
readonly EVENT_REGISTRATION_READ: "event-registration:read";
|
|
248
|
+
readonly EVENT_REGISTRATION_CREATE: "event-registration:create";
|
|
249
|
+
readonly EVENT_REGISTRATION_UPDATE: "event-registration:update";
|
|
250
|
+
readonly EVENT_REGISTRATION_DELETE: "event-registration:delete";
|
|
251
|
+
readonly WEBHOOK_DELIVERY_READ: "webhook-delivery:read";
|
|
252
|
+
readonly WEBHOOK_DELIVERY_EXECUTE: "webhook-delivery:execute";
|
|
253
|
+
readonly USAGE_LIST: "usage:list";
|
|
254
|
+
readonly USAGE_READ: "usage:read";
|
|
255
|
+
readonly DASHBOARD_READ: "dashboard:read";
|
|
256
|
+
readonly SYSTEM_CONFIG_READ: "system-config:read";
|
|
257
|
+
readonly SYSTEM_CONFIG_UPDATE: "system-config:update";
|
|
258
|
+
readonly SYSTEM_CONFIG_MANAGE: "system-config:manage";
|
|
259
|
+
readonly VARIABLE_READ: "workflow-variable:read";
|
|
260
|
+
readonly VARIABLE_CREATE: "workflow-variable:create";
|
|
261
|
+
readonly VARIABLE_UPDATE: "workflow-variable:update";
|
|
262
|
+
readonly VARIABLE_DELETE: "workflow-variable:delete";
|
|
263
|
+
readonly VARIABLE_REVEAL: "workflow-variable:reveal";
|
|
264
|
+
readonly SECRETS_PROVIDER_CONFIG_READ: "secrets-provider-config:read";
|
|
265
|
+
readonly SECRETS_PROVIDER_CONFIG_UPDATE: "secrets-provider-config:update";
|
|
266
|
+
readonly SECRETS_PROVIDER_CONFIG_TEST: "secrets-provider-config:test";
|
|
267
|
+
readonly INTEGRATION_CONNECTION_CREATE: "integration-connection:create";
|
|
268
|
+
readonly SANDBOX_READ: "sandbox:read";
|
|
269
|
+
readonly SANDBOX_CREATE: "sandbox:create";
|
|
270
|
+
readonly SANDBOX_UPDATE: "sandbox:update";
|
|
271
|
+
readonly SANDBOX_DELETE: "sandbox:delete";
|
|
272
|
+
readonly DATA_TABLE_CREATE: "data-table:create";
|
|
273
|
+
readonly DATA_TABLE_UPDATE: "data-table:update";
|
|
274
|
+
readonly DATA_TABLE_DELETE: "data-table:delete";
|
|
275
|
+
readonly DATA_TABLE_ROW_CREATE: "data-table-row:create";
|
|
276
|
+
readonly DATA_TABLE_ROW_UPDATE: "data-table-row:update";
|
|
277
|
+
readonly DATA_TABLE_ROW_DELETE: "data-table-row:delete";
|
|
278
|
+
readonly TASK_QUEUE_READ: "task-queue:read";
|
|
279
|
+
readonly TASK_QUEUE_CREATE: "task-queue:create";
|
|
280
|
+
readonly TASK_QUEUE_UPDATE: "task-queue:update";
|
|
281
|
+
readonly TASK_QUEUE_DELETE: "task-queue:delete";
|
|
282
|
+
readonly RUNNER_READ: "runner:read";
|
|
283
|
+
readonly RUNNER_CREATE: "runner:create";
|
|
284
|
+
readonly RUNNER_UPDATE: "runner:update";
|
|
285
|
+
readonly RUNNER_DELETE: "runner:delete";
|
|
286
|
+
readonly UI_ELEMENT_READ: "ui-element:read";
|
|
287
|
+
readonly UI_ELEMENT_CREATE: "ui-element:create";
|
|
288
|
+
readonly UI_ELEMENT_UPDATE: "ui-element:update";
|
|
289
|
+
readonly UI_ELEMENT_DELETE: "ui-element:delete";
|
|
290
|
+
readonly UI_ELEMENT_PUBLISH: "ui-element:publish";
|
|
291
|
+
readonly UI_ELEMENT_TEST: "ui-element:test";
|
|
292
|
+
readonly TOOL_APPROVAL_REQUEST_READ: "tool-approval-request:read";
|
|
293
|
+
readonly TOOL_APPROVAL_REQUEST_EXECUTE: "tool-approval-request:execute";
|
|
294
|
+
};
|
|
295
|
+
type FluidGridsPermission = (typeof FLUIDGRIDS_PERMISSIONS)[keyof typeof FLUIDGRIDS_PERMISSIONS];
|
|
296
|
+
export { FluidGridsEventArgs as $, FluidGridsRefreshedTokens as A, FluidGridsThemeColors as B, isFluidGridsClientReady as C, refreshNodeRegistry as D, waitForFluidGridsClient as E, resetFluidGridsConfig as F, FluidGridsThemeTokenMapping as G, FluidGridsThemeMode as H, resetFluidGridsExecutionState as I, applyFluidGridsTheme as J, FluidGridsThemeTokens as K, setFluidGridsConfig as L, config as M, getFluidGridsConfig as N, FluidGridsAuthConfig as O, getGraphQLEndpoint as P, FluidGridsErrorSource as Q, FLUIDGRIDS_THEME_TOKEN_MAP as R, getFluidGridsClientSafe as S, setFluidGridsClient as T, FluidGridsThemeRadius as U, FluidGridsThemeFont as V, FluidGridsThemeTokenKey as W, FLUIDGRIDS_EVENTS_VERSION as X, themeToCssVariables as Y, FLUIDGRIDS_EVENT_NAMES as Z, resetGlobalStoreClient as _, FluidGridsPermissionsProviderProps as a, createFluidGridsClient as b, SdkPermissionButton as c, SdkPermissionGateProps as d, FluidGridsEventHandler as et, evaluatePermissionCheck as f, getGlobalStoreClient as g, createGlobalStoreClient as h, FluidGridsPermissionsProvider as i, WorkflowSavedResult as j, FluidGridsConfig as k, SdkPermissionButtonProps as l, GlobalClientConfig as m, FluidGridsPermission as n, FluidGridsEventName as nt, FluidGridsPermissionsValue as o, useFluidGridsPermission as p, FluidGridsThemeValueKind as q, ALLOW_ALL_PERMISSIONS as r, FluidGridsEventPayload as rt, PermissionCheck as s, FLUIDGRIDS_PERMISSIONS as t, FluidGridsEventMap as tt, SdkPermissionGate as u, setGlobalStoreClient as v, resetFluidGridsClient as w, getFluidGridsClient as x, FluidGridsClientConfig as y, FluidGridsTheme as z };
|