@burdenoff/fluidgrids-fe-sdk 2026.1112.7 → 2026.1112.8
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-QGTFaVpx.js → AiStudioPage-CtgPSPyc.js} +5 -5
- package/dist/{DataSinkDashboardPage-kyzcjpzL.js → DataSinkDashboardPage-Dt3xTBb8.js} +1 -1
- package/dist/{DataTablesPage-0U89KNBt.js → DataTablesPage-2xTLe_jk.js} +3 -3
- package/dist/{EntityTagPicker-dxfzv8aO.js → EntityTagPicker-CuZAMby_.js} +1 -1
- package/dist/{ExecutionDetailPage-D4Mdbzb2.js → ExecutionDetailPage-CL-w9c3L.js} +12 -12
- package/dist/{ExecutionsListPage-g_SPxAGX.js → ExecutionsListPage-Bf6Cvsnz.js} +8 -8
- package/dist/{FailureTriagePanel-D4lJ4zqQ.js → FailureTriagePanel-BjatYyAa.js} +1 -1
- package/dist/{FluidGridsProvider-B1hgCbxG.js → FluidGridsProvider-TQ-aDPtn.js} +3 -3
- package/dist/{HistoryPage-C7NwkVNC.js → HistoryPage-s9pl5gyl.js} +2 -2
- package/dist/{InsightsPage-D9B_qW8e.js → InsightsPage-CtjJCky-.js} +4 -4
- package/dist/{MissingNodesInstallModal-BkkgeFeN.js → MissingNodesInstallModal-BCbhddk4.js} +1 -1
- package/dist/{NodesPage-BEeUbIts.js → NodesPage-BSNpOUMX.js} +2 -2
- package/dist/OpenTemplateAsCodeButton-BgvgDaVe.js +94 -0
- package/dist/{SettingsPage-k21044-Z.js → SettingsPage-ywyjIAL8.js} +6 -6
- package/dist/{TagFilterSelect-CqhxcDjh.js → TagFilterSelect-DcusTt1p.js} +1 -1
- package/dist/{TaskQueuesPage-B86p51gH.js → TaskQueuesPage-C2dkenVF.js} +2 -2
- package/dist/{TemplateCard-DanOe65C.js → TemplateCard-XBc0qEA4.js} +214 -13
- package/dist/{TemplateConfigurationModal-CeMpPEhT.js → TemplateConfigurationModal-Dl_7RaCt.js} +20 -11
- package/dist/{TemplateDetailPanel-DnoA6mC3.js → TemplateDetailPanel-0Cc6jguU.js} +1 -1
- package/dist/{TemplatePreview-DY4GxnfC.js → TemplatePreview-CRLUX5yI.js} +23 -14
- package/dist/{TemplatesPage-C7f2xq12.js → TemplatesPage-wClKZLO4.js} +4 -4
- package/dist/{VersionDiffDialog-pLpG_I1r.js → VersionDiffDialog-c27yet_-.js} +1 -1
- package/dist/{WorkflowBuilder-DY1_KJiV.js → WorkflowBuilder-CK6c0eRp.js} +8 -8
- package/dist/{WorkflowBuilder-Aslfa2vj.js → WorkflowBuilder-qRGFtXJG.js} +3 -3
- package/dist/{WorkflowProposalCard-BjYAZH3q.js → WorkflowProposalCard-BvmJ5ea8.js} +1 -1
- package/dist/{WorkflowSearchRedirect-iPQBL6WO.js → WorkflowSearchRedirect-BGKduhfZ.js} +1 -1
- package/dist/{WorkflowShareDialog-DB-qJLB2.js → WorkflowShareDialog-BRwTF9QB.js} +1 -1
- package/dist/{WorkflowsList-rOxlI49U.js → WorkflowsList-Bocag4TX.js} +9 -8
- package/dist/{agentTools-B8gnHFVM.js → agentTools-BkQsycAp.js} +3 -3
- package/dist/{api-JpNuowX4.js → api-Dw8nfVRD.js} +1 -1
- package/dist/{api-Dvitj1aT.js → api-m8hX_l2k.js} +1 -1
- package/dist/{canvasNoteTools-Cj7MvVDH.js → canvasNoteTools-U7j1z7GR.js} +2 -2
- package/dist/{code-editor-field-yJZEDJBi.js → code-editor-field-CWGZyNGM.js} +1 -1
- package/dist/executions.js +2 -2
- package/dist/{feature-flags-DM5myWaD.js → feature-flags-B_b8PJ6Z.js} +63 -3
- package/dist/flags.d.ts +1 -1
- package/dist/flags.js +1 -1
- package/dist/{flow-builder-dvqpKs8d.js → flow-builder-9jDNwkID.js} +509 -296
- package/dist/{graphql-operation-types-z2oXfQvM.js → graphql-operation-types-DZVhCBEi.js} +250 -1
- package/dist/history.js +1 -1
- package/dist/{index-BcdtKBM-.d.ts → index-B4g88tCa.d.ts} +15 -1
- package/dist/{index-DNo9aFUT.d.ts → index-rj-TznII.d.ts} +29 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +33 -33
- package/dist/{node-detail-view-ZnJ3Hvvo.js → node-detail-view-C1yupyvL.js} +9 -9
- package/dist/{node-editor-tab-body-BuiIr7VD.js → node-editor-tab-body-BtxSQPtX.js} +3 -3
- package/dist/{node-endpoint-configs-typvqw2c.js → node-endpoint-configs-BI7zc8eM.js} +1 -1
- package/dist/nodes.js +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/observability.js +2 -2
- package/dist/{popover-mexhIFP3.js → popover-BaYffpTw.js} +2 -2
- package/dist/{quick-config-panel-EV66lJOM.js → quick-config-panel-BvlhLiQp.js} +3 -3
- package/dist/{schedule-panel-BeLfDNFh.js → schedule-panel-D5VdzW2c.js} +8 -8
- package/dist/settings.js +1 -1
- package/dist/{sidebar-node-editor-D85Moj5d.js → sidebar-node-editor-BU4rJwvm.js} +3 -3
- package/dist/templates.js +2 -2
- package/dist/{useAgentDefinitions-Uy6nhpKN.js → useAgentDefinitions-B4sw7bLw.js} +1 -1
- package/dist/{useDurableParity-04-5PTk2.js → useDurableParity-B3h8jqP0.js} +2 -2
- package/dist/{useEntityTags-D5C0tdLs.js → useEntityTags-BpDeLhzV.js} +1 -1
- package/dist/{useExecutions-DJXtbA15.js → useExecutions-BbkBSYpS.js} +2 -2
- package/dist/{useObservability-Dfgh4yjv.js → useObservability-BASo2sA3.js} +1 -1
- package/dist/{useRunHistory-BZQ3t68Q.js → useRunHistory-C3Pv_SJW.js} +2 -2
- package/dist/useWorkflowCodeExport-k5Emm4ZS.js +226 -0
- package/dist/{useWorkflows-CP-d3ygY.js → useWorkflows-CRUlQBd3.js} +2 -2
- package/dist/workflow-builder.js +4 -4
- package/dist/workflow-code-transfer-Cshsgf2H.js +375 -0
- package/dist/workflow-host.d.ts +1 -1
- package/dist/workflow-host.js +1 -1
- package/dist/workflow-pages.d.ts +1 -1
- package/dist/workflow-pages.js +16 -16
- package/dist/workflow-transfer-CQnQC-ke.js +104 -0
- package/dist/workflows-list.js +1 -1
- package/package.json +1 -1
- package/dist/QuotaExhaustedDialog-Bj7AG_0y.js +0 -55
- package/dist/useWorkflowCodeExport-D0zapXXm.js +0 -643
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
3
3
|
import { H as useFlowStore, a as changedSourceFiles, c as diagnosticsByPath, d as isEditableSourcePath, f as projectLanguage, h as sourceLanguageOf, l as interfaceFields, o as childRunIdOf, p as readCodeWorkflowState, r as CODE_WORKFLOW_NODE_TYPE, s as defaultSourcePath, u as interfaceHandlers } from "./node-operation-selection-DAbS6jSY.js";
|
|
4
|
-
import { $ as useNodeConfig, En as declaredSignals, J as nodeSubtitle, Ln as getNodeDetail, Sn as clearCodeWorkflowDefinitionCache, Y as nodeTitle, cn as useNodeExecution, dt as latestNodeLog, hn as fieldsFromValue, lt as FieldTree, mt as useGuardedNavigate, wn as useCodeWorkflowInterface } from "./FluidGridsProvider-
|
|
5
|
-
import { a as TabButton, c as NDV_Z_INDEX, i as ReadOnlyFieldset, n as SchedulePanel, o as NodeSettingsPanel, r as NodeExecutionActions, s as NodeParamsForm, t as SCHEDULE_NODE_TYPE } from "./schedule-panel-
|
|
4
|
+
import { $ as useNodeConfig, En as declaredSignals, J as nodeSubtitle, Ln as getNodeDetail, Sn as clearCodeWorkflowDefinitionCache, Y as nodeTitle, cn as useNodeExecution, dt as latestNodeLog, hn as fieldsFromValue, lt as FieldTree, mt as useGuardedNavigate, wn as useCodeWorkflowInterface } from "./FluidGridsProvider-TQ-aDPtn.js";
|
|
5
|
+
import { a as TabButton, c as NDV_Z_INDEX, i as ReadOnlyFieldset, n as SchedulePanel, o as NodeSettingsPanel, r as NodeExecutionActions, s as NodeParamsForm, t as SCHEDULE_NODE_TYPE } from "./schedule-panel-D5VdzW2c.js";
|
|
6
6
|
import { _ as throwIfResultError, m as describeOperationError, n as getFluidGridsClient, r as getFluidGridsClientSafe } from "./client-C9XSzSXr.js";
|
|
7
|
-
import { Dr as WorkflowCodeSourceDocument, Nr as WorkflowEditLeaseStatusDocument, Pt as NodeStatesDocument, _t as FileDownloadUrlDocument, p as BuildWorkflowCodeDocument } from "./graphql-operation-types-
|
|
8
|
-
import { h as TableView, m as JsonView } from "./flow-builder-
|
|
9
|
-
import { jt as useUnpinNodeDataMutation, qt as useWorkflowPinnedDataQuery, st as usePinNodeDataMutation } from "./useAgentDefinitions-
|
|
10
|
-
import {
|
|
7
|
+
import { Dr as WorkflowCodeSourceDocument, Nr as WorkflowEditLeaseStatusDocument, Pt as NodeStatesDocument, _t as FileDownloadUrlDocument, p as BuildWorkflowCodeDocument } from "./graphql-operation-types-DZVhCBEi.js";
|
|
8
|
+
import { h as TableView, m as JsonView } from "./flow-builder-9jDNwkID.js";
|
|
9
|
+
import { jt as useUnpinNodeDataMutation, qt as useWorkflowPinnedDataQuery, st as usePinNodeDataMutation } from "./useAgentDefinitions-B4sw7bLw.js";
|
|
10
|
+
import { l as useDurableFunctionNodesEnabled, m as usePhaseCFlags } from "./feature-flags-B_b8PJ6Z.js";
|
|
11
11
|
import { s as useFluidGridsPermission, t as FLUIDGRIDS_PERMISSIONS } from "./constants-dcxg6zG6.js";
|
|
12
|
-
import { t as CodeEditorField } from "./code-editor-field-
|
|
13
|
-
import { h as fetchCodeBundleSdk } from "./api-
|
|
14
|
-
import { n as SignalRunDialog, s as RunHistoryView, t as useRunHistory } from "./useRunHistory-
|
|
12
|
+
import { t as CodeEditorField } from "./code-editor-field-CWGZyNGM.js";
|
|
13
|
+
import { h as fetchCodeBundleSdk } from "./api-m8hX_l2k.js";
|
|
14
|
+
import { n as SignalRunDialog, s as RunHistoryView, t as useRunHistory } from "./useRunHistory-C3Pv_SJW.js";
|
|
15
15
|
import { s as isAgentNodeType } from "./agent-form-Bfvm32j1.js";
|
|
16
16
|
import { n as agentTracePath } from "./ai-usage-bmUn-gJP.js";
|
|
17
17
|
import * as React$1 from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { H as useFlowStore } from "./node-operation-selection-DAbS6jSY.js";
|
|
3
|
-
import { Y as nodeTitle, lt as FieldTree } from "./FluidGridsProvider-
|
|
3
|
+
import { Y as nodeTitle, lt as FieldTree } from "./FluidGridsProvider-TQ-aDPtn.js";
|
|
4
4
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
5
|
-
import {
|
|
5
|
+
import { m as usePhaseCFlags } from "./feature-flags-B_b8PJ6Z.js";
|
|
6
6
|
import { s as useFluidGridsPermission, t as FLUIDGRIDS_PERMISSIONS } from "./constants-dcxg6zG6.js";
|
|
7
|
-
import { a as TabButton, i as ReadOnlyFieldset, n as SchedulePanel, o as NodeSettingsPanel, s as NodeParamsForm, t as SCHEDULE_NODE_TYPE } from "./schedule-panel-
|
|
7
|
+
import { a as TabButton, i as ReadOnlyFieldset, n as SchedulePanel, o as NodeSettingsPanel, s as NodeParamsForm, t as SCHEDULE_NODE_TYPE } from "./schedule-panel-D5VdzW2c.js";
|
|
8
8
|
import { useState } from "react";
|
|
9
9
|
import { Icon } from "@iconify/react";
|
|
10
10
|
import { cn } from "@burdenoff/fe-libs/utils";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { kt as NodeEndpointConfigsDocument } from "./graphql-operation-types-
|
|
2
|
+
import { kt as NodeEndpointConfigsDocument } from "./graphql-operation-types-DZVhCBEi.js";
|
|
3
3
|
|
|
4
4
|
// src/utils/node-endpoint-configs.ts
|
|
5
5
|
const NODE_CONFIG_PAGE_SIZE = 500;
|
package/dist/nodes.js
CHANGED
package/dist/observability.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
|
|
2
|
-
import { Aa as LogStreamDestination, Da as DataSinkData, Ea as DashboardSummary, Ma as LogStreamEventType, Na as LogStreamProvider, Oa as DataSinkSummary, Pa as NodeUsageStat,
|
|
2
|
+
import { Aa as LogStreamDestination, Da as DataSinkData, Ea as DashboardSummary, Ma as LogStreamEventType, Na as LogStreamProvider, Oa as DataSinkSummary, Pa as NodeUsageStat, hFa as InsightsPage, ja as LogStreamDestinationInput, ka as FailedRun, mFa as ErrorAnalyticsPage, vFa as DataSinkDashboardPage } from "./index-rj-TznII.js";
|
|
3
3
|
export { type DashboardSummary, DataSinkDashboardPage, type DataSinkData, type DataSinkSummary, ErrorAnalyticsPage, type FailedRun, InsightsPage, type LogStreamDestination, type LogStreamDestinationInput, type LogStreamEventType, type LogStreamProvider, type NodeUsageStat };
|
package/dist/observability.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as DataSinkDashboardPage } from "./DataSinkDashboardPage-
|
|
3
|
-
import { n as InsightsPage, t as ErrorAnalyticsPage } from "./InsightsPage-
|
|
2
|
+
import { t as DataSinkDashboardPage } from "./DataSinkDashboardPage-Dt3xTBb8.js";
|
|
3
|
+
import { n as InsightsPage, t as ErrorAnalyticsPage } from "./InsightsPage-CtjJCky-.js";
|
|
4
4
|
|
|
5
5
|
export { DataSinkDashboardPage, ErrorAnalyticsPage, InsightsPage };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Fn as newConnectionProviderKey, In as replaceAdapterConnections, Mn as connectionsForAdapter, Nn as isOptionalAdapter, Pn as matchesAdapterProvider } from "./FluidGridsProvider-
|
|
2
|
+
import { Fn as newConnectionProviderKey, In as replaceAdapterConnections, Mn as connectionsForAdapter, Nn as isOptionalAdapter, Pn as matchesAdapterProvider } from "./FluidGridsProvider-TQ-aDPtn.js";
|
|
3
3
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
4
|
-
import { r as useAgentsUsingConnection } from "./useAgentDefinitions-
|
|
4
|
+
import { r as useAgentsUsingConnection } from "./useAgentDefinitions-B4sw7bLw.js";
|
|
5
5
|
import { t as cn } from "./cn-QqidFIgr.js";
|
|
6
6
|
import { a as SdkPermissionGate, t as FLUIDGRIDS_PERMISSIONS } from "./constants-dcxg6zG6.js";
|
|
7
7
|
import { n as useConnections } from "./useConnections-Cs7LCWEM.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { A as nodeAccent, H as useFlowStore, j as NodeTypeIcon } from "./node-operation-selection-DAbS6jSY.js";
|
|
3
|
-
import { $ as useNodeConfig, J as nodeSubtitle, Ln as getNodeDetail, Y as nodeTitle, cn as useNodeExecution } from "./FluidGridsProvider-
|
|
4
|
-
import { i as NodeInputFields, n as useNodeEditorTab, r as NodeEditorTabs, t as NodeEditorTabBody } from "./node-editor-tab-body-
|
|
3
|
+
import { $ as useNodeConfig, J as nodeSubtitle, Ln as getNodeDetail, Y as nodeTitle, cn as useNodeExecution } from "./FluidGridsProvider-TQ-aDPtn.js";
|
|
4
|
+
import { i as NodeInputFields, n as useNodeEditorTab, r as NodeEditorTabs, t as NodeEditorTabBody } from "./node-editor-tab-body-BtxSQPtX.js";
|
|
5
5
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
6
|
-
import { r as NodeExecutionActions } from "./schedule-panel-
|
|
6
|
+
import { r as NodeExecutionActions } from "./schedule-panel-D5VdzW2c.js";
|
|
7
7
|
import { useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
8
8
|
import { useReactFlow, useStore } from "@xyflow/react";
|
|
9
9
|
import { Icon } from "@iconify/react";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { _ as throwIfResultError, m as describeOperationError, n as getFluidGridsClient, r as getFluidGridsClientSafe, x as getFluidGridsConfig } from "./client-C9XSzSXr.js";
|
|
3
3
|
import { H as useFlowStore } from "./node-operation-selection-DAbS6jSY.js";
|
|
4
|
-
import { G as asRecord, Hn as useBuilderReadOnly, K as coerceNumber, U as useRunGuard, X as optionText, Y as nodeTitle, Z as paramsFromOperation, _n as isParamVisible, at as resolveLoadOptionsSpec, ct as casesFromRules, fn as formatParameterValue, ft as boundFieldsOf, it as optionListValues, mn as structuredParameterType, nt as isStringOptionList, ot as ConditionTreeBuilder, pn as parseParameterValue, pt as missingRequiredParameters, rt as optionListText, st as SwitchRulesEditor, t as FluidGridsContext, ut as parseMappingValue, vn as useFluidGridsAnalytics, yn as openRunQuotaUpgradePrompt } from "./FluidGridsProvider-
|
|
4
|
+
import { G as asRecord, Hn as useBuilderReadOnly, K as coerceNumber, U as useRunGuard, X as optionText, Y as nodeTitle, Z as paramsFromOperation, _n as isParamVisible, at as resolveLoadOptionsSpec, ct as casesFromRules, fn as formatParameterValue, ft as boundFieldsOf, it as optionListValues, mn as structuredParameterType, nt as isStringOptionList, ot as ConditionTreeBuilder, pn as parseParameterValue, pt as missingRequiredParameters, rt as optionListText, st as SwitchRulesEditor, t as FluidGridsContext, ut as parseMappingValue, vn as useFluidGridsAnalytics, yn as openRunQuotaUpgradePrompt } from "./FluidGridsProvider-TQ-aDPtn.js";
|
|
5
5
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
6
|
-
import {
|
|
7
|
-
import { Bn as StopWebhookTestListenerDocument, Tr as WorkflowCallInputsDocument, Tt as ListenForWebhookTestEventDocument, Ut as PreviewScheduleDocument, hr as WebhookTestListenerDocument } from "./graphql-operation-types-
|
|
8
|
-
import { t as useAgentDefinitionList, vt as useRunFromNodeEligibilityQuery } from "./useAgentDefinitions-
|
|
6
|
+
import { x as useGlobalStoreClient } from "./TemplateCard-XBc0qEA4.js";
|
|
7
|
+
import { Bn as StopWebhookTestListenerDocument, Tr as WorkflowCallInputsDocument, Tt as ListenForWebhookTestEventDocument, Ut as PreviewScheduleDocument, hr as WebhookTestListenerDocument } from "./graphql-operation-types-DZVhCBEi.js";
|
|
8
|
+
import { t as useAgentDefinitionList, vt as useRunFromNodeEligibilityQuery } from "./useAgentDefinitions-B4sw7bLw.js";
|
|
9
9
|
import { a as collectExtensions } from "./quota-Cdt8yz7N.js";
|
|
10
10
|
import { pO as ScheduleType, xI as WorkflowScheduleOverlapPolicy } from "./graphql-types-v6CTGwA0.js";
|
|
11
|
-
import { C as rowsFromRules, S as readAssertRulesSetting, _ as ASSERT_OPERATORS, b as normaliseAssertRules, v as describeAssertRuleProblem, w as ruleFromRow, x as operatorSpec, y as emptyAssertRuleRow } from "./WorkflowProposalCard-
|
|
11
|
+
import { C as rowsFromRules, S as readAssertRulesSetting, _ as ASSERT_OPERATORS, b as normaliseAssertRules, v as describeAssertRuleProblem, w as ruleFromRow, x as operatorSpec, y as emptyAssertRuleRow } from "./WorkflowProposalCard-BvmJ5ea8.js";
|
|
12
12
|
import { r as describeRule, s as isAgentNodeType } from "./agent-form-Bfvm32j1.js";
|
|
13
13
|
import { i as NativeSelect, o as StatusPill, t as FieldError, u as useResource } from "./shared-CMfn30xT.js";
|
|
14
|
-
import { L as triggerSchedule, T as pauseSchedule, t as backfillSchedule, u as describeSchedule, z as unpauseSchedule } from "./api-
|
|
15
|
-
import { a as ConnectionSelector, i as RunOnSection, n as PopoverContent$1, r as PopoverTrigger$1, t as Popover$1 } from "./popover-
|
|
16
|
-
import { r as normalizeCodeLanguage, t as CodeEditorField } from "./code-editor-field-
|
|
14
|
+
import { L as triggerSchedule, T as pauseSchedule, t as backfillSchedule, u as describeSchedule, z as unpauseSchedule } from "./api-m8hX_l2k.js";
|
|
15
|
+
import { a as ConnectionSelector, i as RunOnSection, n as PopoverContent$1, r as PopoverTrigger$1, t as Popover$1 } from "./popover-BaYffpTw.js";
|
|
16
|
+
import { r as normalizeCodeLanguage, t as CodeEditorField } from "./code-editor-field-CWGZyNGM.js";
|
|
17
17
|
import { useCallback, useContext, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
18
18
|
import { Icon } from "@iconify/react";
|
|
19
19
|
import { cn } from "@burdenoff/fe-libs/utils";
|
package/dist/settings.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as SettingsPage } from "./SettingsPage-
|
|
2
|
+
import { t as SettingsPage } from "./SettingsPage-ywyjIAL8.js";
|
|
3
3
|
import { t as ManagedAiPolicyAuthorityProvider } from "./ManagedAiPolicyAuthority-BxwJ3ptd.js";
|
|
4
4
|
|
|
5
5
|
export { ManagedAiPolicyAuthorityProvider, SettingsPage };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { A as nodeAccent, H as useFlowStore, j as NodeTypeIcon } from "./node-operation-selection-DAbS6jSY.js";
|
|
3
|
-
import { $ as useNodeConfig, J as nodeSubtitle, Ln as getNodeDetail, Y as nodeTitle, cn as useNodeExecution } from "./FluidGridsProvider-
|
|
4
|
-
import { i as NodeInputFields, n as useNodeEditorTab, r as NodeEditorTabs, t as NodeEditorTabBody } from "./node-editor-tab-body-
|
|
5
|
-
import { r as NodeExecutionActions } from "./schedule-panel-
|
|
3
|
+
import { $ as useNodeConfig, J as nodeSubtitle, Ln as getNodeDetail, Y as nodeTitle, cn as useNodeExecution } from "./FluidGridsProvider-TQ-aDPtn.js";
|
|
4
|
+
import { i as NodeInputFields, n as useNodeEditorTab, r as NodeEditorTabs, t as NodeEditorTabBody } from "./node-editor-tab-body-BtxSQPtX.js";
|
|
5
|
+
import { r as NodeExecutionActions } from "./schedule-panel-D5VdzW2c.js";
|
|
6
6
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
7
7
|
import { useEffect, useState } from "react";
|
|
8
8
|
import { Icon } from "@iconify/react";
|
package/dist/templates.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as TemplatesPage } from "./TemplatesPage-
|
|
3
|
-
import { t as TemplatePreview } from "./TemplatePreview-
|
|
2
|
+
import { t as TemplatesPage } from "./TemplatesPage-wClKZLO4.js";
|
|
3
|
+
import { t as TemplatePreview } from "./TemplatePreview-CRLUX5yI.js";
|
|
4
4
|
|
|
5
5
|
export { TemplatePreview, TemplatesPage };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { _ as throwIfResultError, n as getFluidGridsClient } from "./client-C9XSzSXr.js";
|
|
3
|
-
import { $t as RemoveNodeFromWorkflowsDocument, Ar as WorkflowDefinitionsDocument, At as NodeManifestDocument, B as DashboardSummaryDocument, Cn as RunLogsDocument, Ct as ImportWorkflowTemplateDocument, Ft as NodeUsageStatusDocument, H as DeactivateWorkflowDefinitionDocument, K as DeleteWorkflowDefinitionDocument, M as CreateWorkflowDefinitionDocument, Nt as NodeSchemaIntrospectionDocument, On as SearchFluidgridsTagsDocument, Or as WorkflowDefinitionDocument, Ot as NodeEndpointConfigDocument, Pt as NodeStatesDocument, St as ImportWorkflowDocument, Ur as WorkflowPinnedDataDocument, Ut as PreviewScheduleDocument, Vn as TagFluidgridsEntityDocument, Vt as PinNodeDataDocument,
|
|
3
|
+
import { $t as RemoveNodeFromWorkflowsDocument, Ar as WorkflowDefinitionsDocument, At as NodeManifestDocument, B as DashboardSummaryDocument, Cn as RunLogsDocument, Ct as ImportWorkflowTemplateDocument, Ft as NodeUsageStatusDocument, H as DeactivateWorkflowDefinitionDocument, K as DeleteWorkflowDefinitionDocument, M as CreateWorkflowDefinitionDocument, Nt as NodeSchemaIntrospectionDocument, On as SearchFluidgridsTagsDocument, Or as WorkflowDefinitionDocument, Ot as NodeEndpointConfigDocument, Pt as NodeStatesDocument, St as ImportWorkflowDocument, Ti as WorkflowVersionsDocument, Ur as WorkflowPinnedDataDocument, Ut as PreviewScheduleDocument, Vn as TagFluidgridsEntityDocument, Vt as PinNodeDataDocument, Xr as WorkflowRunDocument, Yn as TriggerWorkflowDocument, Yt as RegisterNodeDocument, b as CancelExecutionDocument, bn as RunFromNodeEligibilityDocument, cn as RestoreWorkflowVersionDocument, cr as UpdateWorkflowDefinitionDocument, ct as ExecutionDetailDocument, d as AvailableFluidgridsTagsDocument, dt as ExecutionsListDocument, er as UnpinNodeDataDocument, i as ActiveExecutionsDocument, jr as WorkflowDefinitionsTagsDocument, k as CreateFluidgridsTagDocument, kt as NodeEndpointConfigsDocument, ln as ResumeExecutionDocument, lt as ExecutionLogsDocument, mr as UsageTimeSeriesDocument, n as ActivateWorkflowDefinitionDocument, nn as ReplaceFluidgridsEntityTagsDocument, oi as WorkflowRunsDocument, ot as EventRegistrationsDocument, qn as TerminateExecutionDocument, st as ExecuteStepDocument, tr as UntagFluidgridsEntityDocument, tt as DuplicateWorkflowDocument, un as RetryNodeDocument, ut as ExecutionStatsDocument, xn as RunLogAppendedDocument, yn as RunFromNodeDocument, yt as FluidgridsEntityTagsDocument, z as CreateWorkflowVersionDocument, zt as PauseExecutionDocument } from "./graphql-operation-types-DZVhCBEi.js";
|
|
4
4
|
import { useCallback, useEffect, useState } from "react";
|
|
5
5
|
import { useLazyQuery, useMutation, useQuery, useSubscription, useSuspenseQuery } from "@apollo/client/react";
|
|
6
6
|
import { gql } from "@apollo/client";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { _ as throwIfResultError, m as describeOperationError, n as getFluidGridsClient } from "./client-C9XSzSXr.js";
|
|
3
3
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
4
|
-
import { Nn as SetWorkflowRunVersioningOverrideDocument,
|
|
5
|
-
import { f as STATUS_COUNT_GROUP_BY, v as statusCountFilter, y as statusCountsOf } from "./useExecutions-
|
|
4
|
+
import { Nn as SetWorkflowRunVersioningOverrideDocument, ai as WorkflowRunsCountDocument, ni as WorkflowRunPendingDocument, rt as DurableParityRunFieldsDocument, ti as WorkflowRunMetadataDocument } from "./graphql-operation-types-DZVhCBEi.js";
|
|
5
|
+
import { f as STATUS_COUNT_GROUP_BY, v as statusCountFilter, y as statusCountsOf } from "./useExecutions-BbkBSYpS.js";
|
|
6
6
|
import { n as useNavigationV2 } from "./useNavigationV2-C2WeqN7d.js";
|
|
7
7
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
8
8
|
import { Icon } from "@iconify/react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { n as getFluidGridsClient } from "./client-C9XSzSXr.js";
|
|
3
|
-
import { On as SearchFluidgridsTagsDocument, V as DataTablesTagsDocument, Vn as TagFluidgridsEntityDocument, d as AvailableFluidgridsTagsDocument, k as CreateFluidgridsTagDocument, nn as ReplaceFluidgridsEntityTagsDocument, tr as UntagFluidgridsEntityDocument, yt as FluidgridsEntityTagsDocument } from "./graphql-operation-types-
|
|
3
|
+
import { On as SearchFluidgridsTagsDocument, V as DataTablesTagsDocument, Vn as TagFluidgridsEntityDocument, d as AvailableFluidgridsTagsDocument, k as CreateFluidgridsTagDocument, nn as ReplaceFluidgridsEntityTagsDocument, tr as UntagFluidgridsEntityDocument, yt as FluidgridsEntityTagsDocument } from "./graphql-operation-types-DZVhCBEi.js";
|
|
4
4
|
import { useCallback, useEffect, useState } from "react";
|
|
5
5
|
|
|
6
6
|
// src/hooks/useEntityTags.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { N as useExecutionsStore, _ as throwIfResultError, d as emitFluidGridsEvent, f as emitOperationErrorEvent, n as getFluidGridsClient } from "./client-C9XSzSXr.js";
|
|
3
|
-
import { Yn as TriggerWorkflowDocument, b as CancelExecutionDocument, ct as ExecutionDetailDocument, dt as ExecutionsListDocument, ln as ResumeExecutionDocument, qn as TerminateExecutionDocument, un as RetryNodeDocument, ut as ExecutionStatsDocument, zt as PauseExecutionDocument } from "./graphql-operation-types-
|
|
3
|
+
import { Yn as TriggerWorkflowDocument, b as CancelExecutionDocument, ct as ExecutionDetailDocument, dt as ExecutionsListDocument, ln as ResumeExecutionDocument, qn as TerminateExecutionDocument, un as RetryNodeDocument, ut as ExecutionStatsDocument, zt as PauseExecutionDocument } from "./graphql-operation-types-DZVhCBEi.js";
|
|
4
4
|
import { $P as VersioningBehavior, JD as RunGroupBy } from "./graphql-types-v6CTGwA0.js";
|
|
5
5
|
import { c as REPLAY_WORKFLOW_RUN, l as RETRY_WORKFLOW_RUNS } from "./operations-HU-xb78H.js";
|
|
6
|
-
import { vn as useFluidGridsAnalytics, yn as openRunQuotaUpgradePrompt } from "./FluidGridsProvider-
|
|
6
|
+
import { vn as useFluidGridsAnalytics, yn as openRunQuotaUpgradePrompt } from "./FluidGridsProvider-TQ-aDPtn.js";
|
|
7
7
|
import { i as emitRunStarted } from "./fluidgridsEvents-Dm5CaHtr.js";
|
|
8
8
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
9
9
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { _ as throwIfResultError, d as emitFluidGridsEvent, m as describeOperationError, n as getFluidGridsClient } from "./client-C9XSzSXr.js";
|
|
3
|
-
import { vn as useFluidGridsAnalytics, yn as openRunQuotaUpgradePrompt } from "./FluidGridsProvider-
|
|
3
|
+
import { vn as useFluidGridsAnalytics, yn as openRunQuotaUpgradePrompt } from "./FluidGridsProvider-TQ-aDPtn.js";
|
|
4
4
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
5
5
|
import { i as emitRunStarted } from "./fluidgridsEvents-Dm5CaHtr.js";
|
|
6
6
|
import { a as OBSERVABILITY_DATA_SINKS, c as REPLAY_WORKFLOW_RUN, d as UPDATE_LOG_STREAM_DESTINATION, i as OBSERVABILITY_DASHBOARD_SUMMARY, l as RETRY_WORKFLOW_RUNS, n as DELETE_LOG_STREAM_DESTINATION, o as OBSERVABILITY_DATA_SINK_DATA, r as LOG_STREAM_DESTINATIONS, s as OBSERVABILITY_FAILED_RUNS, t as CREATE_LOG_STREAM_DESTINATION, u as TEST_LOG_STREAM_DESTINATION } from "./operations-HU-xb78H.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { _ as throwIfResultError, m as describeOperationError, n as getFluidGridsClient, r as getFluidGridsClientSafe } from "./client-C9XSzSXr.js";
|
|
3
|
-
import { On as parseRawSignalPayload, jn as signalPayloadCard, kn as payloadFromCardValues } from "./FluidGridsProvider-
|
|
3
|
+
import { On as parseRawSignalPayload, jn as signalPayloadCard, kn as payloadFromCardValues } from "./FluidGridsProvider-TQ-aDPtn.js";
|
|
4
4
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Fn as SignalWorkflowRunDocument, Jn as TerminateWorkflowRunDocument, Yr as WorkflowRunDeterminismStatusDocument, ei as WorkflowRunHistoryDocument, gn as RunEventAppendedDocument, it as DurableRunFieldsDocument, ri as WorkflowRunStackTraceDocument } from "./graphql-operation-types-DZVhCBEi.js";
|
|
6
6
|
import { Zd as ExecutionKind } from "./graphql-types-v6CTGwA0.js";
|
|
7
7
|
import { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
8
8
|
import { Icon } from "@iconify/react";
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { _ as throwIfResultError, m as describeOperationError, n as getFluidGridsClient } from "./client-C9XSzSXr.js";
|
|
3
|
+
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
4
|
+
import { cr as UpdateWorkflowDefinitionDocument, pt as ExportWorkflowCodeDocument } from "./graphql-operation-types-DZVhCBEi.js";
|
|
5
|
+
import { S as QuotaExhaustedDialog, o as buildExportDownload } from "./workflow-code-transfer-Cshsgf2H.js";
|
|
6
|
+
import { t as downloadBlob } from "./workflow-transfer-CQnQC-ke.js";
|
|
7
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
|
|
10
|
+
// src/components/shared/CreateWorkflowRefusalDialog.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Says why "Create Workflow" created nothing, on the page it was pressed on.
|
|
13
|
+
* The builder shows it too when saving a new workflow is refused by a plan
|
|
14
|
+
* quota (BOFF-9998), since that save is the create.
|
|
15
|
+
*
|
|
16
|
+
* - `quota-exhausted`: the plan's workflow slots are used up (G43 copy).
|
|
17
|
+
* - `quota-not-provisioned`: the workspace has no plan that includes FluidGrids
|
|
18
|
+
* workflows. Nothing is used up; choosing a plan for the workspace is the way
|
|
19
|
+
* past it, so the dialog still offers View plans (round-3 verification: the
|
|
20
|
+
* refusal toast vanished and nothing pointed at billing).
|
|
21
|
+
* - `failed`: no dialog. The shell's backend-error toast already shows the
|
|
22
|
+
* server's message, and nothing navigated.
|
|
23
|
+
*/
|
|
24
|
+
function CreateWorkflowRefusalDialog({ refusal, onClose, onUpgrade, surface }) {
|
|
25
|
+
const tr = useTr();
|
|
26
|
+
const notProvisioned = refusal?.kind === "quota-not-provisioned";
|
|
27
|
+
const open = refusal?.kind === "quota-exhausted" || refusal?.kind === "quota-not-provisioned";
|
|
28
|
+
return /* @__PURE__ */ jsx(QuotaExhaustedDialog, {
|
|
29
|
+
surface,
|
|
30
|
+
open,
|
|
31
|
+
limitHit: !notProvisioned,
|
|
32
|
+
onOpenChange: (next) => {
|
|
33
|
+
if (!next) onClose();
|
|
34
|
+
},
|
|
35
|
+
onUpgrade: () => {
|
|
36
|
+
onUpgrade();
|
|
37
|
+
onClose();
|
|
38
|
+
},
|
|
39
|
+
...notProvisioned ? {
|
|
40
|
+
title: tr("fluidgrids.components.createRefusal.notProvisionedTitle", "Workflows aren't in this workspace's plan"),
|
|
41
|
+
description: tr("fluidgrids.components.createRefusal.notProvisionedDescription", "This workspace has no plan that includes FluidGrids workflows, so no workflow was created. Choose a plan for this workspace, or ask a workspace admin to add one.")
|
|
42
|
+
} : {}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// src/utils/workflow-description.ts
|
|
47
|
+
/** The longest description the editors accept. */
|
|
48
|
+
const WORKFLOW_DESCRIPTION_MAX_LENGTH = 500;
|
|
49
|
+
/**
|
|
50
|
+
* Descriptions older builder saves wrote in place of a real one: every save
|
|
51
|
+
* copied the workflow's name into its description, with these fallbacks for an
|
|
52
|
+
* unnamed workflow. A description that only repeats the name says nothing.
|
|
53
|
+
*/
|
|
54
|
+
const LEGACY_PLACEHOLDERS = /* @__PURE__ */ new Set([
|
|
55
|
+
"Untitled Workflow",
|
|
56
|
+
"Workflow update",
|
|
57
|
+
"Workflow Description"
|
|
58
|
+
]);
|
|
59
|
+
/** The description as it is stored: surrounding whitespace removed. */
|
|
60
|
+
function normalizeWorkflowDescription(text) {
|
|
61
|
+
return text.trim();
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The description worth showing for a workflow: empty when there is none, or
|
|
65
|
+
* when it is a placeholder an older builder save wrote (the name again, or one
|
|
66
|
+
* of the unnamed-workflow fallbacks).
|
|
67
|
+
*/
|
|
68
|
+
function visibleWorkflowDescription(description, name) {
|
|
69
|
+
const text = normalizeWorkflowDescription(description ?? "");
|
|
70
|
+
if (!text) return "";
|
|
71
|
+
if (text === (name ?? "").trim()) return "";
|
|
72
|
+
if (LEGACY_PLACEHOLDERS.has(text)) return "";
|
|
73
|
+
return text;
|
|
74
|
+
}
|
|
75
|
+
/** Decide what to do with `draft`, given the description shown before editing. */
|
|
76
|
+
function commitWorkflowDescription(shown, draft) {
|
|
77
|
+
const description = normalizeWorkflowDescription(draft);
|
|
78
|
+
if (description.length > 500) return {
|
|
79
|
+
kind: "too-long",
|
|
80
|
+
length: description.length
|
|
81
|
+
};
|
|
82
|
+
if (description === normalizeWorkflowDescription(shown)) return { kind: "unchanged" };
|
|
83
|
+
return {
|
|
84
|
+
kind: "save",
|
|
85
|
+
description
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
/** The characters left for a draft; negative once it is too long. */
|
|
89
|
+
function workflowDescriptionCharactersLeft(draft) {
|
|
90
|
+
return 500 - normalizeWorkflowDescription(draft).length;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The `updateWorkflowDefinition` input that changes only the description. An
|
|
94
|
+
* empty description is sent as "" (not null), which is what clears it.
|
|
95
|
+
*/
|
|
96
|
+
function workflowDescriptionUpdateInput(description, guard = {}) {
|
|
97
|
+
return {
|
|
98
|
+
description: normalizeWorkflowDescription(description),
|
|
99
|
+
...guard.expectedRevision !== void 0 ? { expectedRevision: guard.expectedRevision } : {},
|
|
100
|
+
...guard.editSessionId ? { editSessionId: guard.editSessionId } : {}
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Save `description` on the version `id`, in place. Throws the service's
|
|
105
|
+
* refusal (permission, a conflict, a viewer of a shared workflow) so the
|
|
106
|
+
* caller can roll its optimistic copy back and say why.
|
|
107
|
+
*/
|
|
108
|
+
async function saveWorkflowDescription(client, id, description, guard = {}) {
|
|
109
|
+
const { data } = throwIfResultError(await client.mutate({
|
|
110
|
+
mutation: UpdateWorkflowDefinitionDocument,
|
|
111
|
+
variables: {
|
|
112
|
+
id,
|
|
113
|
+
input: workflowDescriptionUpdateInput(description, guard)
|
|
114
|
+
}
|
|
115
|
+
}));
|
|
116
|
+
const saved = data?.updateWorkflowDefinition;
|
|
117
|
+
if (!saved) throw new Error("The description was not saved");
|
|
118
|
+
return {
|
|
119
|
+
id: saved.id,
|
|
120
|
+
description: saved.description ?? "",
|
|
121
|
+
revision: saved.revision
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// src/hooks/useWorkflowCodeExport.ts
|
|
126
|
+
/**
|
|
127
|
+
* Code-first export (BOFF-9904): read a workflow version lifted to
|
|
128
|
+
* TypeScript, Python or JSON with its fidelity report, and download it.
|
|
129
|
+
*
|
|
130
|
+
* The lift and the fidelity check run on the service (`exportWorkflow` with a
|
|
131
|
+
* `format`), so what the builder shows is exactly what `fluidgrids pull`
|
|
132
|
+
* writes. Both entry points sit behind the `fluidgrids.code-first` flag at
|
|
133
|
+
* their call sites; the service enforces the same flag.
|
|
134
|
+
*/
|
|
135
|
+
/** One network round trip; never served from the Apollo cache. */
|
|
136
|
+
async function fetchWorkflowCodeExport(target) {
|
|
137
|
+
const result = await getFluidGridsClient().query({
|
|
138
|
+
query: ExportWorkflowCodeDocument,
|
|
139
|
+
variables: {
|
|
140
|
+
workflowKey: target.workflowKey,
|
|
141
|
+
version: target.version || null,
|
|
142
|
+
format: target.format
|
|
143
|
+
},
|
|
144
|
+
fetchPolicy: "network-only"
|
|
145
|
+
});
|
|
146
|
+
throwIfResultError(result);
|
|
147
|
+
const exported = result.data?.exportWorkflow;
|
|
148
|
+
if (!exported) throw new Error("The export returned no result");
|
|
149
|
+
return exported;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* The lifted code of one version in one format, fetched while `enabled`.
|
|
153
|
+
* A response for an older request (the format or version changed meanwhile)
|
|
154
|
+
* is dropped, so the view never shows Python under the TypeScript tab.
|
|
155
|
+
*/
|
|
156
|
+
function useWorkflowCodeExport(target, enabled) {
|
|
157
|
+
const { workflowKey, version, format } = target;
|
|
158
|
+
const [data, setData] = useState(null);
|
|
159
|
+
const [loading, setLoading] = useState(false);
|
|
160
|
+
const [error, setError] = useState(null);
|
|
161
|
+
const request = useRef(0);
|
|
162
|
+
const refetch = useCallback(async () => {
|
|
163
|
+
if (!workflowKey) return;
|
|
164
|
+
const id = ++request.current;
|
|
165
|
+
setLoading(true);
|
|
166
|
+
setError(null);
|
|
167
|
+
try {
|
|
168
|
+
const exported = await fetchWorkflowCodeExport({
|
|
169
|
+
workflowKey,
|
|
170
|
+
version,
|
|
171
|
+
format
|
|
172
|
+
});
|
|
173
|
+
if (id === request.current) setData(exported);
|
|
174
|
+
} catch (err) {
|
|
175
|
+
if (id === request.current) {
|
|
176
|
+
setData(null);
|
|
177
|
+
setError(describeOperationError(err, "The export failed"));
|
|
178
|
+
}
|
|
179
|
+
} finally {
|
|
180
|
+
if (id === request.current) setLoading(false);
|
|
181
|
+
}
|
|
182
|
+
}, [
|
|
183
|
+
workflowKey,
|
|
184
|
+
version,
|
|
185
|
+
format
|
|
186
|
+
]);
|
|
187
|
+
useEffect(() => {
|
|
188
|
+
if (!enabled) return;
|
|
189
|
+
setData(null);
|
|
190
|
+
refetch();
|
|
191
|
+
}, [enabled, refetch]);
|
|
192
|
+
return {
|
|
193
|
+
data,
|
|
194
|
+
loading,
|
|
195
|
+
error,
|
|
196
|
+
refetch
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
/** Downloads an already fetched export (the code view's Download button). */
|
|
200
|
+
async function downloadWorkflowCodeExport(exported, format, save = downloadBlob) {
|
|
201
|
+
const { filename, blob } = await buildExportDownload(exported, format);
|
|
202
|
+
save(filename, blob);
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Export a version in a format and download the files: the workflows list's
|
|
206
|
+
* "Export as TypeScript / Python / JSON" entries. `exporting` is the format
|
|
207
|
+
* being prepared, so the card can show progress and refuse a second click.
|
|
208
|
+
*/
|
|
209
|
+
function useExportWorkflowAs(save = downloadBlob) {
|
|
210
|
+
const [exporting, setExporting] = useState(null);
|
|
211
|
+
return {
|
|
212
|
+
exportAs: useCallback(async (target) => {
|
|
213
|
+
setExporting(target.format);
|
|
214
|
+
try {
|
|
215
|
+
const exported = await fetchWorkflowCodeExport(target);
|
|
216
|
+
await downloadWorkflowCodeExport(exported, target.format, save);
|
|
217
|
+
return exported;
|
|
218
|
+
} finally {
|
|
219
|
+
setExporting(null);
|
|
220
|
+
}
|
|
221
|
+
}, [save]),
|
|
222
|
+
exporting
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export { saveWorkflowDescription as a, CreateWorkflowRefusalDialog as c, normalizeWorkflowDescription as i, useWorkflowCodeExport as n, visibleWorkflowDescription as o, commitWorkflowDescription as r, workflowDescriptionCharactersLeft as s, useExportWorkflowAs as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { _ as throwIfResultError, d as emitFluidGridsEvent, f as emitOperationErrorEvent, n as getFluidGridsClient, x as getFluidGridsConfig } from "./client-C9XSzSXr.js";
|
|
3
|
-
import { Ar as WorkflowDefinitionsDocument, B as DashboardSummaryDocument, H as DeactivateWorkflowDefinitionDocument, Ht as PreviewN8nImportDocument, K as DeleteWorkflowDefinitionDocument, M as CreateWorkflowDefinitionDocument, Or as WorkflowDefinitionDocument, St as ImportWorkflowDocument,
|
|
4
|
-
import { vn as useFluidGridsAnalytics, yn as openRunQuotaUpgradePrompt } from "./FluidGridsProvider-
|
|
3
|
+
import { Ar as WorkflowDefinitionsDocument, B as DashboardSummaryDocument, H as DeactivateWorkflowDefinitionDocument, Ht as PreviewN8nImportDocument, K as DeleteWorkflowDefinitionDocument, M as CreateWorkflowDefinitionDocument, Or as WorkflowDefinitionDocument, St as ImportWorkflowDocument, Ti as WorkflowVersionsDocument, Xr as WorkflowRunDocument, Yn as TriggerWorkflowDocument, cn as RestoreWorkflowVersionDocument, cr as UpdateWorkflowDefinitionDocument, kr as WorkflowDefinitionForBuilderDocument, n as ActivateWorkflowDefinitionDocument, oi as WorkflowRunsDocument, tt as DuplicateWorkflowDocument, z as CreateWorkflowVersionDocument } from "./graphql-operation-types-DZVhCBEi.js";
|
|
4
|
+
import { vn as useFluidGridsAnalytics, yn as openRunQuotaUpgradePrompt } from "./FluidGridsProvider-TQ-aDPtn.js";
|
|
5
5
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
6
6
|
import { d as runTriggerFromMode, i as emitRunStarted, l as emitWorkflowPublished, s as emitWorkflowCreated } from "./fluidgridsEvents-Dm5CaHtr.js";
|
|
7
7
|
import { s as takePrefetchedWorkflowForBuilder } from "./workflowRouteData-BkfVOc-O.js";
|
package/dist/workflow-builder.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as WorkflowBuilderCore, t as WorkflowBuilder } from "./WorkflowBuilder-
|
|
3
|
-
import { t as WorkflowBuilder$1 } from "./WorkflowBuilder-
|
|
2
|
+
import { n as WorkflowBuilderCore, t as WorkflowBuilder } from "./WorkflowBuilder-qRGFtXJG.js";
|
|
3
|
+
import { t as WorkflowBuilder$1 } from "./WorkflowBuilder-CK6c0eRp.js";
|
|
4
4
|
import { H as useFlowStore } from "./node-operation-selection-DAbS6jSY.js";
|
|
5
|
-
import { m as refetchStoreNodes } from "./FluidGridsProvider-
|
|
6
|
-
import { t as WorkflowSearchRedirect } from "./WorkflowSearchRedirect-
|
|
5
|
+
import { m as refetchStoreNodes } from "./FluidGridsProvider-TQ-aDPtn.js";
|
|
6
|
+
import { t as WorkflowSearchRedirect } from "./WorkflowSearchRedirect-BGKduhfZ.js";
|
|
7
7
|
|
|
8
8
|
export { WorkflowBuilder, WorkflowBuilderCore, WorkflowBuilder$1 as WorkflowBuilderPage, WorkflowSearchRedirect, refetchStoreNodes, useFlowStore };
|