@burdenoff/fluidgrids-fe-sdk 2026.1115.7 → 2026.1115.9
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/dist/{AiStudioPage-tzv59pH4.js → AiStudioPage-CZTaVeQE.js} +4 -4
- package/dist/{DataSinkDashboardPage-BtWSidiD.js → DataSinkDashboardPage-CPq6-jZM.js} +1 -1
- package/dist/{ExecutionDetailPage-CO3BWG_V.js → ExecutionDetailPage-d29WPJDN.js} +92 -27
- package/dist/ExecutionSettingsFields-DzKJDOjU.js +1003 -0
- package/dist/{ExecutionsListPage-CaO9A4Ph.js → ExecutionsListPage-xQthHGAJ.js} +8 -26
- package/dist/{FailureTriagePanel-CBGgU4Tl.js → FailureTriagePanel-Cka9Rc1_.js} +1 -1
- package/dist/{FluidGridsProvider-Bemnt09v.js → FluidGridsProvider-BRC0WlAa.js} +248 -3045
- package/dist/{HistoryPage-DPGYma-Z.js → HistoryPage-Drdk9j_Q.js} +1 -1
- package/dist/{InsightsPage-C6b9WuBc.js → InsightsPage-mYWZvyGR.js} +5 -5
- package/dist/{OpenTemplateAsCodeButton-BemhA1u4.js → OpenTemplateAsCodeButton-CQV-YHlJ.js} +2 -2
- package/dist/{PaidTemplateConfirm-bNEOQ_Se.js → PaidTemplateConfirm-Dog5moZa.js} +1 -1
- package/dist/{agent-form-D0uLvzx4.js → RunLogAppendedDocument-D1_BfMZa.js} +1 -82
- package/dist/{SettingsPage-CTd4LQPW.js → SettingsPage-DFnqjkpT.js} +239 -894
- package/dist/{TaskQueuesPage-ESjeGUg3.js → TaskQueuesPage-CZQUO33o.js} +1 -1
- package/dist/{TemplateCard-D7jG3RaU.js → TemplateCard-D2zt-kXW.js} +5 -5
- package/dist/{TemplateConfigurationModal-DMyuHZ3O.js → TemplateConfigurationModal-D8eQsJXJ.js} +1 -1
- package/dist/{TemplatePreview-CNbCxOsc.js → TemplatePreview-BgdkcCF-.js} +5 -5
- package/dist/{TemplatesPage-DLOVSXa9.js → TemplatesPage-t7rGU-BP.js} +10 -10
- package/dist/{WorkflowBuilder-YJlFY071.js → WorkflowBuilder-BS9kVcgU.js} +3 -3
- package/dist/{WorkflowBuilder-DhvPS34U.js → WorkflowBuilder-CtTM79lP.js} +6 -5
- package/dist/{WorkflowSearchRedirect-vyY1d6nn.js → WorkflowSearchRedirect-Bqdxr833.js} +1 -1
- package/dist/WorkflowSettingsDrawer-BiqTf_tV.js +191 -0
- package/dist/WorkflowSettingsDrawer-MVU1BKfY.d.ts +18 -0
- package/dist/{WorkflowShareDialog-qyGW0cSr.js → WorkflowShareDialog-D_G3TUGQ.js} +1 -1
- package/dist/{WorkflowsList-DQq_-Gaq.js → WorkflowsList-DjKePEwo.js} +2035 -517
- package/dist/agent-form-Bfvm32j1.js +83 -0
- package/dist/{agentTools-uC7Kw2uc.js → agentTools-DrVlHNeP.js} +1 -1
- package/dist/{ai-usage-yzPWZgAC.js → ai-usage-DhSKp0tV.js} +1 -1
- package/dist/{api-o5UUDbr8.js → api-D1cWC1yx.js} +190 -1
- package/dist/{assert-rules-FOiGC7-z.js → assert-rules-D9PNDTMK.js} +1 -1
- package/dist/{canvasNoteTools-DedWIXHZ.js → canvasNoteTools-Bo2QldkD.js} +1 -1
- package/dist/executions.js +2 -2
- package/dist/{flow-builder-BfkigZeg.js → flow-builder-CWfNAFd8.js} +73 -18
- package/dist/{graphql-types-C2heV7ot.js → graphql-types-CxkVzQqA.js} +25 -1
- package/dist/history.js +1 -1
- package/dist/{index-CIRkv8Dr.d.ts → index-C2ehY2Ld.d.ts} +180 -10
- package/dist/index.d.ts +3 -3
- package/dist/index.js +45 -42
- package/dist/{node-detail-view-B-nHEP6Z.js → node-detail-view-D_N3kLtA.js} +7 -7
- package/dist/{node-editor-tab-body-CZHYnHmY.js → node-editor-tab-body-BQ9JZa72.js} +2 -2
- package/dist/observability.d.ts +1 -1
- package/dist/observability.js +2 -2
- package/dist/{useAgentDefinitions-CVBnPMnJ.js → operations-qq_bbgXP.js} +3 -223
- package/dist/{popover-C2ohJ0Rd.js → popover-DZdTN21a.js} +3 -3
- package/dist/{quick-config-panel-ButILqM4.js → quick-config-panel-BCUY4tQy.js} +3 -3
- package/dist/relative-time-Dxt8ZIIu.js +55 -0
- package/dist/{run-list-links-sTAexiqj.js → run-list-links-BwsCiBPB.js} +1 -1
- package/dist/{run-mode-DjXIqsz3.js → run-mode-vpIlmfgY.js} +1 -1
- package/dist/{schedule-panel-BZuH1ltc.js → schedule-panel-B6FrpX9d.js} +9 -8
- package/dist/settings.d.ts +2 -2
- package/dist/settings.js +3 -2
- package/dist/{sidebar-node-editor-B0-72udR.js → sidebar-node-editor-CWrmlFlZ.js} +3 -3
- package/dist/{template-code-DrS_vlf_.js → template-code-9dL1SUji.js} +1 -1
- package/dist/templates.js +2 -2
- package/dist/{use-workflow-code-editor-DfWsRWC7.js → use-workflow-code-editor-DJMH7-Xx.js} +1 -1
- package/dist/{use-workflow-tests-CVVKinFU.js → use-workflow-tests-C4e6aJZS.js} +2 -2
- package/dist/useAgentDefinitions-DX5GvEIp.js +223 -0
- package/dist/{useDurableParity-gnKk3TyL.js → useDurableParity-BtWk4d-i.js} +1 -1
- package/dist/{useExecutions-Dwa7jo1o.js → useExecutions-C9pVKexC.js} +3 -2
- package/dist/{useGlobalStoreClient-4BH2Xbru.js → useGlobalStoreClient-C2P50Gj5.js} +1 -1
- package/dist/{useObservability-Bp4LtS1S.js → useObservability-DsHX86Xl.js} +1 -1
- package/dist/{useRunHistory-Zqh59sXN.js → useRunHistory-DUNLNOKA.js} +2 -2
- package/dist/{useWorkflowCodeExport-C93cPJQ5.js → useWorkflowCodeExport-DSbfcehl.js} +13 -3
- package/dist/{useWorkflows-BodVSonO.js → useWorkflows-B13Cp8tk.js} +90 -10
- package/dist/workflow-builder.js +4 -4
- package/dist/{workflow-description-DxiRgyxy.js → workflow-description-F3inwvof.js} +1 -1
- package/dist/workflow-pages.d.ts +2 -2
- package/dist/workflow-pages.js +14 -14
- package/dist/workflow-save-state-DUE9lNwQ.js +2813 -0
- package/dist/{workflow-transfer-BlDyxa9L.js → workflow-transfer-CsXh0mIi.js} +1 -1
- package/dist/workflows-list.js +1 -1
- package/package.json +3 -3
- package/dist/SettingsPage-DMHQFj5-.d.ts +0 -9
|
@@ -6,7 +6,7 @@ import { g as useSelfHostedWorkersEnabled } from "./feature-flags-B_b8PJ6Z.js";
|
|
|
6
6
|
import { s as useFluidGridsPermission, t as FLUIDGRIDS_PERMISSIONS } from "./constants-65QV61nQ.js";
|
|
7
7
|
import { a as RUN_CONTROL_DIALOG_STYLE, i as NativeSelect, o as StatusPill, t as FieldError, u as useResource } from "./shared-mbyvDPde.js";
|
|
8
8
|
import { a as fetchTaskQueueStats, c as fetchWorkflowWorkers, d as updateTaskQueue, i as deleteWorkerToken, l as rotateWorkerToken, n as createWorkerToken, o as fetchTaskQueues, r as deleteTaskQueue, s as fetchWorkerTokens, t as createTaskQueue, u as setWorkerTokenConnectionAllowlist } from "./api-CEzqoN5H.js";
|
|
9
|
-
import {
|
|
9
|
+
import { qI as WorkflowEnvironment } from "./graphql-types-CxkVzQqA.js";
|
|
10
10
|
import { useState } from "react";
|
|
11
11
|
import { Icon } from "@iconify/react";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -3,7 +3,7 @@ import { r as getFluidGridsConfig } from "./config-X97zrIvn.js";
|
|
|
3
3
|
import { o as throwIfResultError } from "./errors-xPZ-IbQd.js";
|
|
4
4
|
import { n as getFluidGridsClient } from "./client-Ctl4jmY3.js";
|
|
5
5
|
import { n as getGlobalStoreClient } from "./global-client-DP_Wxe5t.js";
|
|
6
|
-
import { c as ensureInstalledNodeTypesLoaded, f as ensureRegistryNodeTypesLoaded,
|
|
6
|
+
import { c as ensureInstalledNodeTypesLoaded, f as ensureRegistryNodeTypesLoaded, i as AVAILABLE_NODES, o as NODE_CONFIGS, rn as useFluidGridsAnalytics, t as FluidGridsContext, x as GetMyNodeInstallationsDocument } from "./FluidGridsProvider-BRC0WlAa.js";
|
|
7
7
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
8
8
|
import { n as storeIconCandidates, t as StoreIcon } from "./store-icon-Bgmyn3Lt.js";
|
|
9
9
|
import { o as isNodeTypeHiddenFromPalette } from "./durable-nodes-DXCCQYWD.js";
|
|
@@ -13,12 +13,12 @@ import { a as emitTemplateUsed, s as emitWorkflowCreated, t as emitNodeInstalled
|
|
|
13
13
|
import { n as InstallWorkflowNodeDocument } from "./global-operations-7pvXw_j9.js";
|
|
14
14
|
import { t as cn } from "./cn-QqidFIgr.js";
|
|
15
15
|
import { t as Button } from "./button-DG7y_FVJ.js";
|
|
16
|
+
import { n as useNavigationV2 } from "./useNavigationV2-C2WeqN7d.js";
|
|
16
17
|
import { i as SdkPermissionButton, t as FLUIDGRIDS_PERMISSIONS } from "./constants-65QV61nQ.js";
|
|
17
|
-
import { t as useGlobalStoreClient } from "./useGlobalStoreClient-
|
|
18
|
-
import { c as templateInstallSource } from "./template-code-
|
|
18
|
+
import { t as useGlobalStoreClient } from "./useGlobalStoreClient-C2P50Gj5.js";
|
|
19
|
+
import { c as templateInstallSource } from "./template-code-9dL1SUji.js";
|
|
19
20
|
import { t as Badge } from "./badge-CXfPhoMH.js";
|
|
20
21
|
import { t as templatePreviewCandidates } from "./template-preview-BwOqyuFH.js";
|
|
21
|
-
import { n as useNavigationV2 } from "./useNavigationV2-C2WeqN7d.js";
|
|
22
22
|
import { Suspense, forwardRef, lazy, useCallback, useContext, useMemo, useState } from "react";
|
|
23
23
|
import { useQuery } from "@apollo/client/react";
|
|
24
24
|
import { gql } from "@apollo/client/core";
|
|
@@ -1664,7 +1664,7 @@ async function dismissToastWhenShown(id) {
|
|
|
1664
1664
|
}
|
|
1665
1665
|
|
|
1666
1666
|
// src/hooks/store/useTemplateImportFlow.tsx
|
|
1667
|
-
const LazyTemplateConfigurationModal = lazy(() => import("./TemplateConfigurationModal-
|
|
1667
|
+
const LazyTemplateConfigurationModal = lazy(() => import("./TemplateConfigurationModal-D8eQsJXJ.js").then((m) => ({ default: m.TemplateConfigurationModal })));
|
|
1668
1668
|
/**
|
|
1669
1669
|
* "Use this template", the same everywhere it is offered: the builder's
|
|
1670
1670
|
* template panel, the Templates page and the template preview page
|
package/dist/{TemplateConfigurationModal-DMyuHZ3O.js → TemplateConfigurationModal-D8eQsJXJ.js}
RENAMED
|
@@ -5,7 +5,7 @@ import { t as Button } from "./button-DG7y_FVJ.js";
|
|
|
5
5
|
import { t as Badge } from "./badge-CXfPhoMH.js";
|
|
6
6
|
import { t as Label } from "./label-BMVzJ2yW.js";
|
|
7
7
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
8
|
-
import { t as OpenTemplateAsCodeButton } from "./OpenTemplateAsCodeButton-
|
|
8
|
+
import { t as OpenTemplateAsCodeButton } from "./OpenTemplateAsCodeButton-CQV-YHlJ.js";
|
|
9
9
|
import { useEffect, useMemo, useState } from "react";
|
|
10
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { AlertTriangle, CheckCircle2, Download, ExternalLink, KeyRound, Loader2, ShoppingCart, Sparkles } from "lucide-react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
|
|
3
3
|
import { t as ThemeProvider } from "./theme-provider-B3mIuz2d.js";
|
|
4
|
-
import { t as FlowBuilderPage } from "./flow-builder-
|
|
5
|
-
import { _ as useInstalledNodes, a as buildNodeCheck, c as useImportWorkflowTemplate, i as useTemplateImportFlow, n as formatTemplatePrice, o as buildRequiredNodeTypes, r as isPaidTemplate } from "./TemplateCard-
|
|
6
|
-
import { i as QuotaExhaustedDialog } from "./useWorkflowCodeExport-
|
|
7
|
-
import { n as WithOpenTemplateAsCode } from "./OpenTemplateAsCodeButton-
|
|
4
|
+
import { t as FlowBuilderPage } from "./flow-builder-CWfNAFd8.js";
|
|
5
|
+
import { _ as useInstalledNodes, a as buildNodeCheck, c as useImportWorkflowTemplate, i as useTemplateImportFlow, n as formatTemplatePrice, o as buildRequiredNodeTypes, r as isPaidTemplate } from "./TemplateCard-D2zt-kXW.js";
|
|
6
|
+
import { i as QuotaExhaustedDialog } from "./useWorkflowCodeExport-DSbfcehl.js";
|
|
7
|
+
import { n as WithOpenTemplateAsCode } from "./OpenTemplateAsCodeButton-CQV-YHlJ.js";
|
|
8
8
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
9
9
|
import { i as SdkPermissionButton, s as useFluidGridsPermission, t as FLUIDGRIDS_PERMISSIONS } from "./constants-65QV61nQ.js";
|
|
10
10
|
import { t as BILLING_PLANS_PATH } from "./quota-Cdt8yz7N.js";
|
|
@@ -13,7 +13,7 @@ import { t as OfflineIcon } from "./OfflineIcon-DnKb-mo2.js";
|
|
|
13
13
|
import { t as describeOperationError } from "./errors-xPZ-IbQd.js";
|
|
14
14
|
import { t as Disclosure } from "./Disclosure-C3xMLSU-.js";
|
|
15
15
|
import { c as useVariables, t as useCreateVariable } from "./useVariables-DFdZofLQ.js";
|
|
16
|
-
import { t as PaidTemplateConfirm } from "./PaidTemplateConfirm-
|
|
16
|
+
import { t as PaidTemplateConfirm } from "./PaidTemplateConfirm-Dog5moZa.js";
|
|
17
17
|
import { t as cn } from "./cn-QqidFIgr.js";
|
|
18
18
|
import { useEffect, useMemo, useState } from "react";
|
|
19
19
|
import { useLocation, useNavigate, useParams } from "react-router";
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
|
|
3
3
|
import { t as OfflineIcon } from "./OfflineIcon-DnKb-mo2.js";
|
|
4
|
-
import {
|
|
5
|
-
import { i as useTemplateImportFlow, l as useWorkflowTemplates, r as isPaidTemplate, t as TemplateCard, v as storeContextHeaders } from "./TemplateCard-
|
|
6
|
-
import {
|
|
4
|
+
import { c as useDuplicateWorkflow, g as useWorkflowDefinitions, u as useLazyWorkflowDefinition } from "./useWorkflows-B13Cp8tk.js";
|
|
5
|
+
import { i as useTemplateImportFlow, l as useWorkflowTemplates, r as isPaidTemplate, t as TemplateCard, v as storeContextHeaders } from "./TemplateCard-D2zt-kXW.js";
|
|
6
|
+
import { CL as WorkflowStatus, YI as WorkflowExportFormat } from "./graphql-types-CxkVzQqA.js";
|
|
7
7
|
import { i as SdkPermissionButton, t as FLUIDGRIDS_PERMISSIONS } from "./constants-65QV61nQ.js";
|
|
8
|
-
import { i as QuotaExhaustedDialog, t as fetchWorkflowCodeExport } from "./useWorkflowCodeExport-
|
|
8
|
+
import { i as QuotaExhaustedDialog, t as fetchWorkflowCodeExport } from "./useWorkflowCodeExport-DSbfcehl.js";
|
|
9
9
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
10
|
-
import {
|
|
10
|
+
import { rn as useFluidGridsAnalytics, t as FluidGridsContext } from "./FluidGridsProvider-BRC0WlAa.js";
|
|
11
11
|
import { a as emitTemplateUsed } from "./fluidgridsEvents-Dm5CaHtr.js";
|
|
12
12
|
import { n as useFluidGridsPageControls } from "./pageControlsBridge-0pX9s-3k.js";
|
|
13
13
|
import { r as templatesControls } from "./pageControlSpecs-DZJ9K37m.js";
|
|
14
14
|
import { c as isQuotaExhaustedFailure, t as BILLING_PLANS_PATH } from "./quota-Cdt8yz7N.js";
|
|
15
15
|
import { t as FluidGridsDocsLink } from "./FluidGridsDocsLink-JxkBpOeb.js";
|
|
16
16
|
import { h as usePhaseDFlags } from "./feature-flags-B_b8PJ6Z.js";
|
|
17
|
-
import { t as fetchWorkflowCodeSource } from "./use-workflow-code-editor-
|
|
17
|
+
import { t as fetchWorkflowCodeSource } from "./use-workflow-code-editor-DJMH7-Xx.js";
|
|
18
18
|
import { t as fetchConnectionNames } from "./useConnections-CmnwGk09.js";
|
|
19
|
-
import { m as isLosslessReport } from "./workflow-transfer-
|
|
20
|
-
import { a as contentTypeOf, n as TemplateCodeError, o as isTier2Definition, r as assertTemplateSources, t as TEMPLATE_SOURCES_MAX_BYTES } from "./template-code-
|
|
21
|
-
import { t as useGlobalStoreClient } from "./useGlobalStoreClient-
|
|
19
|
+
import { m as isLosslessReport } from "./workflow-transfer-CsXh0mIi.js";
|
|
20
|
+
import { a as contentTypeOf, n as TemplateCodeError, o as isTier2Definition, r as assertTemplateSources, t as TEMPLATE_SOURCES_MAX_BYTES } from "./template-code-9dL1SUji.js";
|
|
21
|
+
import { t as useGlobalStoreClient } from "./useGlobalStoreClient-C2P50Gj5.js";
|
|
22
22
|
import { r as getFluidGridsConfig } from "./config-X97zrIvn.js";
|
|
23
23
|
import { o as throwIfResultError, t as describeOperationError } from "./errors-xPZ-IbQd.js";
|
|
24
24
|
import { t as NodeTypeIcon } from "./node-type-icon-BiX35H0z.js";
|
|
25
25
|
import { n as formatRunVersion } from "./run-display-UjLAoYqQ.js";
|
|
26
26
|
import { n as useNavigationV2 } from "./useNavigationV2-C2WeqN7d.js";
|
|
27
27
|
import { t as TechnicalDetails } from "./TechnicalDetails-xQtjIWWx.js";
|
|
28
|
-
import { t as PaidTemplateConfirm } from "./PaidTemplateConfirm-
|
|
28
|
+
import { t as PaidTemplateConfirm } from "./PaidTemplateConfirm-Dog5moZa.js";
|
|
29
29
|
import { t as cn } from "./cn-QqidFIgr.js";
|
|
30
30
|
import { useCallback, useContext, useEffect, useMemo, useState } from "react";
|
|
31
31
|
import { useNavigate } from "react-router";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { an as useCanvasEdges, n as FluidGridsProvider } from "./FluidGridsProvider-BRC0WlAa.js";
|
|
3
3
|
import { A as useFlowStore } from "./node-operation-selection-sT7nCmDk.js";
|
|
4
4
|
import { t as Button } from "./button-DG7y_FVJ.js";
|
|
5
5
|
import { t as Input } from "./input-ChT6Q-Pr.js";
|
|
6
|
-
import { y as Card } from "./TemplateCard-
|
|
6
|
+
import { y as Card } from "./TemplateCard-D2zt-kXW.js";
|
|
7
7
|
import { t as cn } from "./cn-QqidFIgr.js";
|
|
8
8
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
9
|
-
import { m as FluidGridsMark, p as useNodeSelectedEvent } from "./flow-builder-
|
|
9
|
+
import { m as FluidGridsMark, p as useNodeSelectedEvent } from "./flow-builder-CWfNAFd8.js";
|
|
10
10
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
11
11
|
import { Background, Controls, Handle, MarkerType, MiniMap, Position, ReactFlow, ReactFlowProvider, useReactFlow } from "@xyflow/react";
|
|
12
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
|
|
3
|
-
import { d as releaseLeaseKeptForReload, f as useWorkflowReloadStore, t as FlowBuilderPage } from "./flow-builder-
|
|
3
|
+
import { d as releaseLeaseKeptForReload, f as useWorkflowReloadStore, t as FlowBuilderPage } from "./flow-builder-CWfNAFd8.js";
|
|
4
4
|
import { n as registerLiveCanvasHandler } from "./liveCanvas-D5ytXDp8.js";
|
|
5
5
|
import { r as getFluidGridsConfig } from "./config-X97zrIvn.js";
|
|
6
6
|
import { n as getFluidGridsClient } from "./client-Ctl4jmY3.js";
|
|
7
7
|
import { o as throwIfResultError } from "./errors-xPZ-IbQd.js";
|
|
8
8
|
import { t as WorkflowDefinitionDocument } from "./WorkflowDefinitionDocument-DZLbTPUZ.js";
|
|
9
9
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
10
|
-
import { Ct as classifyCreateRefusal, Dt as useSaveStatusStore, G as paramsFromOperation, Gt as rememberRevision, P as createConfiguredNode,
|
|
10
|
+
import { Ct as classifyCreateRefusal, Dt as useSaveStatusStore, G as paramsFromOperation, Gt as rememberRevision, P as createConfiguredNode, _ as registerNodeManifests, d as ensureNodeTypesLoaded, g as refetchStoreNodes, o as NODE_CONFIGS, tn as resolveNodeOperation, v as registerWorkflowNodeTypes, xt as blankWorkflowCreateInput } from "./FluidGridsProvider-BRC0WlAa.js";
|
|
11
11
|
import { A as useFlowStore } from "./node-operation-selection-sT7nCmDk.js";
|
|
12
|
+
import { a as codeBuildIdOf, y as workflowFingerprint } from "./workflow-save-state-DUE9lNwQ.js";
|
|
12
13
|
import { t as canvasFromDefinition } from "./definition-canvas-DL25_6NH.js";
|
|
13
|
-
import {
|
|
14
|
-
import { _ as useInstalledNodes, a as buildNodeCheck, o as buildRequiredNodeTypes, s as getWorkflowNodeTypes } from "./TemplateCard-
|
|
14
|
+
import { r as useCreateWorkflow, u as useLazyWorkflowDefinition } from "./useWorkflows-B13Cp8tk.js";
|
|
15
|
+
import { _ as useInstalledNodes, a as buildNodeCheck, o as buildRequiredNodeTypes, s as getWorkflowNodeTypes } from "./TemplateCard-D2zt-kXW.js";
|
|
15
16
|
import { r as mergeStickyNotes } from "./sticky-notes-23j-wL6Q.js";
|
|
16
17
|
import { c as withoutGuidedTourIntent, l as decideMissingWorkflow, o as isGuidedTourIntent, s as pickGuidedTour, u as isCreateIntent } from "./firstWorkflow-C_h0KMB2.js";
|
|
17
18
|
import { t as BILLING_PLANS_PATH } from "./quota-Cdt8yz7N.js";
|
|
18
|
-
import { o as CreateWorkflowRefusalDialog } from "./workflow-description-
|
|
19
|
+
import { o as CreateWorkflowRefusalDialog } from "./workflow-description-F3inwvof.js";
|
|
19
20
|
import { Suspense, lazy, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
20
21
|
import { useLocation, useNavigate, useParams } from "react-router";
|
|
21
22
|
import { Icon } from "@iconify/react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
|
|
3
|
-
import {
|
|
3
|
+
import { h as useWorkflowDefinition } from "./useWorkflows-B13Cp8tk.js";
|
|
4
4
|
import { Navigate, useParams } from "react-router";
|
|
5
5
|
import { Icon } from "@iconify/react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
|
|
3
|
+
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
4
|
+
import { a as RunDataSavingSettings, c as useWorkflowExecutionSettingsForm, g as useWorkflowNotificationSettings, i as RetentionSettings, n as MaxParallelSetting, o as TimeoutSetting, r as OnErrorSetting, t as ErrorWorkflowSetting } from "./ExecutionSettingsFields-DzKJDOjU.js";
|
|
5
|
+
import { useEffect, useId, useState } from "react";
|
|
6
|
+
import { Link } from "react-router";
|
|
7
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { toast } from "sonner";
|
|
9
|
+
import { Label, OptionalFields, Sheet, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, Switch } from "@burdenoff/fe-libs/ui";
|
|
10
|
+
import { Button as Button$1 } from "@burdenoff/fe-libs/button";
|
|
11
|
+
|
|
12
|
+
// src/modules/settings/components/WorkflowSettingsDrawer.tsx
|
|
13
|
+
/**
|
|
14
|
+
* One workflow's settings in a side drawer (Navigation v2, BOFF-11843).
|
|
15
|
+
*
|
|
16
|
+
* Opened from a row's "⋯ › More options › Settings" on My Workflows and from
|
|
17
|
+
* the builder's header. It always names the workflow it edits.
|
|
18
|
+
*
|
|
19
|
+
* - Level 1: "Tell me when this fails", the workflow's existing failure
|
|
20
|
+
* notification (`notifyOnFailure`, BOFF-9974): in the app and by push.
|
|
21
|
+
* Email for it is backend work (BOFF-13715), so the drawer does not offer it.
|
|
22
|
+
* - Level 2, under "More options": Timeout, Max parallel, On error, Error
|
|
23
|
+
* workflow, keep run data and retention. They are read and saved by the same
|
|
24
|
+
* hook as Settings › Execution (`useWorkflowExecutionSettingsForm`), so the
|
|
25
|
+
* conflict check and its single retry are the same.
|
|
26
|
+
* - "All settings" opens the full page for the workflow.
|
|
27
|
+
*
|
|
28
|
+
* Saving needs workflow:update (both the notification preference and the
|
|
29
|
+
* execution settings are workflow:update at the gateway); without it the
|
|
30
|
+
* drawer is read-only and says so.
|
|
31
|
+
*/
|
|
32
|
+
var WorkflowSettingsDrawer_exports = /* @__PURE__ */ __exportAll({ WorkflowSettingsDrawer: () => WorkflowSettingsDrawer });
|
|
33
|
+
function WorkflowSettingsDrawer({ workflowKey, workflowName, onClose, allSettingsHref, onOpenAllSettings }) {
|
|
34
|
+
return /* @__PURE__ */ jsx(Sheet, {
|
|
35
|
+
open: workflowKey !== null,
|
|
36
|
+
onOpenChange: (open) => {
|
|
37
|
+
if (!open) onClose();
|
|
38
|
+
},
|
|
39
|
+
children: /* @__PURE__ */ jsx(SheetContent, {
|
|
40
|
+
side: "right",
|
|
41
|
+
className: "flex w-full flex-col gap-0 overflow-y-auto p-0 sm:max-w-md",
|
|
42
|
+
"data-testid": "workflow-settings-drawer",
|
|
43
|
+
children: workflowKey !== null && /* @__PURE__ */ jsx(DrawerBody, {
|
|
44
|
+
workflowKey,
|
|
45
|
+
workflowName,
|
|
46
|
+
onClose,
|
|
47
|
+
allSettingsHref,
|
|
48
|
+
onOpenAllSettings
|
|
49
|
+
}, workflowKey)
|
|
50
|
+
})
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function DrawerBody({ workflowKey, workflowName, onClose, allSettingsHref, onOpenAllSettings }) {
|
|
54
|
+
const tr = useTr();
|
|
55
|
+
const notifyId = useId();
|
|
56
|
+
const execution = useWorkflowExecutionSettingsForm(workflowKey);
|
|
57
|
+
const notifications = useWorkflowNotificationSettings(workflowKey);
|
|
58
|
+
const [notifyOnFailure, setNotifyOnFailure] = useState(null);
|
|
59
|
+
const [saving, setSaving] = useState(false);
|
|
60
|
+
const storedNotify = notifications.settings?.notifyOnFailure;
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
if (storedNotify !== void 0) setNotifyOnFailure(storedNotify);
|
|
63
|
+
}, [storedNotify]);
|
|
64
|
+
const canEdit = execution.canEdit;
|
|
65
|
+
const notifyChanged = notifyOnFailure !== null && storedNotify !== void 0 && notifyOnFailure !== storedNotify;
|
|
66
|
+
const busy = saving || execution.saving;
|
|
67
|
+
const handleSave = async () => {
|
|
68
|
+
setSaving(true);
|
|
69
|
+
try {
|
|
70
|
+
if (notifyChanged && notifyOnFailure !== null) await notifications.save({ notifyOnFailure });
|
|
71
|
+
if (execution.dirty) await execution.save();
|
|
72
|
+
toast.success(tr("fluidgrids.workflowSettingsDrawer.savedToast", "Settings saved"));
|
|
73
|
+
onClose();
|
|
74
|
+
} catch (err) {
|
|
75
|
+
toast.error(tr("fluidgrids.settings.execution.saveFailedToast", "Failed to save settings"), { description: err instanceof Error ? err.message : void 0 });
|
|
76
|
+
} finally {
|
|
77
|
+
setSaving(false);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
const notifyLabel = tr("fluidgrids.workflowSettingsDrawer.notifyOnFailureLabel", "Tell me when this fails");
|
|
81
|
+
const shownName = workflowName || tr("fluidgrids.builder.flowBuilder.untitledWorkflow", "Untitled Workflow");
|
|
82
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
83
|
+
/* @__PURE__ */ jsxs(SheetHeader, {
|
|
84
|
+
className: "border-b border-border p-4 pr-12",
|
|
85
|
+
children: [/* @__PURE__ */ jsx(SheetTitle, {
|
|
86
|
+
className: "break-words",
|
|
87
|
+
"data-testid": "workflow-settings-drawer-title",
|
|
88
|
+
children: shownName
|
|
89
|
+
}), /* @__PURE__ */ jsx(SheetDescription, { children: tr("fluidgrids.workflowSettingsDrawer.description", "Settings for this workflow") })]
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ jsxs("div", {
|
|
92
|
+
className: "flex-1 space-y-4 p-4",
|
|
93
|
+
children: [
|
|
94
|
+
/* @__PURE__ */ jsxs("div", {
|
|
95
|
+
className: "flex items-start justify-between gap-4 rounded-lg border border-border p-3",
|
|
96
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
97
|
+
className: "min-w-0 space-y-1",
|
|
98
|
+
children: [/* @__PURE__ */ jsx(Label, {
|
|
99
|
+
htmlFor: notifyId,
|
|
100
|
+
className: "text-sm font-medium",
|
|
101
|
+
children: notifyLabel
|
|
102
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
103
|
+
className: "text-xs text-muted-foreground",
|
|
104
|
+
children: tr("fluidgrids.workflowSettingsDrawer.notifyOnFailureHelp", "When a live run of this workflow fails, you get a notification in the app and a push to your devices. Email alerts aren't available yet.")
|
|
105
|
+
})]
|
|
106
|
+
}), /* @__PURE__ */ jsx(Switch, {
|
|
107
|
+
id: notifyId,
|
|
108
|
+
className: "mt-1 shrink-0",
|
|
109
|
+
checked: notifyOnFailure ?? false,
|
|
110
|
+
onCheckedChange: (checked) => setNotifyOnFailure(checked),
|
|
111
|
+
disabled: !canEdit || busy || notifications.loading || notifyOnFailure === null,
|
|
112
|
+
"data-testid": "workflow-settings-notify-on-failure"
|
|
113
|
+
})]
|
|
114
|
+
}),
|
|
115
|
+
notifications.error && /* @__PURE__ */ jsx("p", {
|
|
116
|
+
className: "text-sm text-destructive",
|
|
117
|
+
role: "alert",
|
|
118
|
+
children: tr("fluidgrids.settings.workflowNotifications.loadFailed", "Could not load this workflow's notification settings.")
|
|
119
|
+
}),
|
|
120
|
+
/* @__PURE__ */ jsx(OptionalFields, {
|
|
121
|
+
storageKey: `workflows.settings.${workflowKey}`,
|
|
122
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
123
|
+
className: "divide-y divide-border",
|
|
124
|
+
children: [
|
|
125
|
+
/* @__PURE__ */ jsx(TimeoutSetting, {
|
|
126
|
+
ctl: execution,
|
|
127
|
+
stacked: true
|
|
128
|
+
}),
|
|
129
|
+
/* @__PURE__ */ jsx(MaxParallelSetting, {
|
|
130
|
+
ctl: execution,
|
|
131
|
+
stacked: true
|
|
132
|
+
}),
|
|
133
|
+
/* @__PURE__ */ jsx(OnErrorSetting, {
|
|
134
|
+
ctl: execution,
|
|
135
|
+
stacked: true
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ jsx(ErrorWorkflowSetting, {
|
|
138
|
+
ctl: execution,
|
|
139
|
+
stacked: true
|
|
140
|
+
}),
|
|
141
|
+
/* @__PURE__ */ jsx(RunDataSavingSettings, {
|
|
142
|
+
ctl: execution,
|
|
143
|
+
stacked: true
|
|
144
|
+
}),
|
|
145
|
+
/* @__PURE__ */ jsx(RetentionSettings, {
|
|
146
|
+
ctl: execution,
|
|
147
|
+
stacked: true
|
|
148
|
+
})
|
|
149
|
+
]
|
|
150
|
+
})
|
|
151
|
+
}),
|
|
152
|
+
!canEdit && /* @__PURE__ */ jsx("p", {
|
|
153
|
+
className: "text-xs text-muted-foreground",
|
|
154
|
+
role: "note",
|
|
155
|
+
children: tr("fluidgrids.settings.execution.readOnly", "You can see these settings but not change them: changing them needs permission to edit workflows.")
|
|
156
|
+
})
|
|
157
|
+
]
|
|
158
|
+
}),
|
|
159
|
+
/* @__PURE__ */ jsxs(SheetFooter, {
|
|
160
|
+
className: "flex-row flex-wrap items-center justify-between gap-2 border-t border-border p-4",
|
|
161
|
+
children: [/* @__PURE__ */ jsx(Link, {
|
|
162
|
+
to: allSettingsHref,
|
|
163
|
+
onClick: (event) => {
|
|
164
|
+
if (!onOpenAllSettings) return;
|
|
165
|
+
event.preventDefault();
|
|
166
|
+
onOpenAllSettings(allSettingsHref);
|
|
167
|
+
},
|
|
168
|
+
className: "inline-flex min-h-11 items-center text-sm font-medium text-primary underline-offset-4 hover:underline",
|
|
169
|
+
"data-testid": "workflow-settings-all-settings",
|
|
170
|
+
children: tr("fluidgrids.workflowSettingsDrawer.allSettings", "All settings")
|
|
171
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
172
|
+
className: "flex gap-2",
|
|
173
|
+
children: [/* @__PURE__ */ jsx(Button$1, {
|
|
174
|
+
variant: "outline",
|
|
175
|
+
onClick: onClose,
|
|
176
|
+
className: "min-h-11",
|
|
177
|
+
children: tr("fluidgrids.workflowSettingsDrawer.cancel", "Cancel")
|
|
178
|
+
}), /* @__PURE__ */ jsx(Button$1, {
|
|
179
|
+
"data-agent": "confirm",
|
|
180
|
+
onClick: () => void handleSave(),
|
|
181
|
+
disabled: !canEdit || busy || execution.loading,
|
|
182
|
+
className: "min-h-11",
|
|
183
|
+
"data-testid": "workflow-settings-save",
|
|
184
|
+
children: busy ? tr("fluidgrids.settings.execution.saving", "Saving…") : tr("fluidgrids.settings.execution.save", "Save")
|
|
185
|
+
})]
|
|
186
|
+
})]
|
|
187
|
+
})
|
|
188
|
+
] });
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export { WorkflowSettingsDrawer_exports as n, WorkflowSettingsDrawer as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
declare namespace SettingsPage_d_exports {
|
|
3
|
+
export { SETTINGS_TAB_PARAM, SettingsPage, SettingsPageProps };
|
|
4
|
+
}
|
|
5
|
+
interface SettingsPageProps {
|
|
6
|
+
workflowKey?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const SETTINGS_TAB_PARAM = "tab";
|
|
9
|
+
declare function SettingsPage({ workflowKey: workflowKeyProp }?: SettingsPageProps): import("react").JSX.Element;
|
|
10
|
+
interface WorkflowSettingsDrawerProps {
|
|
11
|
+
workflowKey: string | null;
|
|
12
|
+
workflowName: string;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
allSettingsHref: string;
|
|
15
|
+
onOpenAllSettings?: (href: string) => void;
|
|
16
|
+
}
|
|
17
|
+
declare function WorkflowSettingsDrawer({ workflowKey, workflowName, onClose, allSettingsHref, onOpenAllSettings }: WorkflowSettingsDrawerProps): import("react").JSX.Element;
|
|
18
|
+
export { SettingsPageProps as a, SettingsPage as i, WorkflowSettingsDrawerProps as n, SettingsPage_d_exports as o, SETTINGS_TAB_PARAM as r, WorkflowSettingsDrawer as t };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
|
|
3
3
|
import { n as getFluidGridsClient } from "./client-Ctl4jmY3.js";
|
|
4
4
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
5
|
-
import {
|
|
5
|
+
import { AL as WorkflowVisibility, LI as WorkflowAccess, SL as WorkflowShareRole, xL as WorkflowSharePrincipalType } from "./graphql-types-CxkVzQqA.js";
|
|
6
6
|
import { useMemo } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { ResourceShareDialog, createSharePrincipalLister } from "@burdenoff/fe-libs/connections";
|