@burdenoff/fluidgrids-fe-sdk 2026.1112.4 → 2026.1112.6
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-C-jio5Bz.js → AiStudioPage-BSLdKT0H.js} +10 -10
- package/dist/{ApprovalInboxPage-D8vhnloO.js → ApprovalInboxPage-QAJim81n.js} +3 -2
- package/dist/{DataSinkDashboardPage-CRBsNjoS.js → DataSinkDashboardPage-kyzcjpzL.js} +4 -4
- package/dist/{DataTablesPage-DoVBkb_T.js → DataTablesPage-Dm-dzVPD.js} +4 -4
- package/dist/{EntityTagPicker-Dk3CufFt.js → EntityTagPicker-dxfzv8aO.js} +1 -1
- package/dist/{ExecutionDetailPage-Cw4zyaIG.js → ExecutionDetailPage-B9eEep77.js} +977 -509
- package/dist/{ExecutionsListPage-BgeqwVr2.js → ExecutionsListPage-DuuPSVEj.js} +831 -146
- package/dist/{FailureTriagePanel-BzD4UJU5.js → FailureTriagePanel-D4lJ4zqQ.js} +1 -1
- package/dist/{FluidGridsProvider-BFfTxl9m.js → FluidGridsProvider-B1hgCbxG.js} +7 -7
- package/dist/{HistoryPage-DktteURI.js → HistoryPage-C7NwkVNC.js} +4 -4
- package/dist/{HumanRequestCard-mOhr-Ic9.js → HumanRequestCard-lbWDpWd7.js} +4 -216
- package/dist/{InsightsPage-2jnYlozA.js → InsightsPage-D9B_qW8e.js} +10 -10
- package/dist/{MissingNodesInstallModal-C0wPwR0Q.js → MissingNodesInstallModal-BkkgeFeN.js} +1 -1
- package/dist/{NodesPage-Dhg5Q2R5.js → NodesPage-BEeUbIts.js} +4 -4
- package/dist/{QuotaExhaustedDialog-BKZ9moP8.js → QuotaExhaustedDialog-Bj7AG_0y.js} +1 -1
- package/dist/{RunnersPage-CLCOCclc.js → RunnersPage-D9Bgod_d.js} +4 -4
- package/dist/{SettingsPage-BaM98QU_.js → SettingsPage-k21044-Z.js} +16 -16
- package/dist/{TagFilterSelect-VC6JMK3F.js → TagFilterSelect-CqhxcDjh.js} +1 -1
- package/dist/{TaskQueuesPage-C3R5ZoKs.js → TaskQueuesPage-B86p51gH.js} +2 -2
- package/dist/{TemplateCard-DYDVNYo6.js → TemplateCard-DanOe65C.js} +3 -3
- package/dist/{TemplateConfigurationModal-BzdkGWim.js → TemplateConfigurationModal-CeMpPEhT.js} +3 -3
- package/dist/{TemplateDetailPanel-s4EqQhra.js → TemplateDetailPanel-DnoA6mC3.js} +2 -2
- package/dist/{TemplatePreview-B_-zS_Mm.js → TemplatePreview-BFMsDQif.js} +4 -4
- package/dist/{TemplatesPage-OIMd6cIl.js → TemplatesPage-C7f2xq12.js} +14 -14
- package/dist/{VariablesPage-67WR_lVE.js → VariablesPage-BtoLjmUA.js} +1 -1
- package/dist/{VersionDiffDialog-Cp2doV3f.js → VersionDiffDialog-pLpG_I1r.js} +4 -4
- package/dist/{WorkflowBuilder-DD4UIAjC.js → WorkflowBuilder-B8PtcT0Q.js} +12 -12
- package/dist/{WorkflowBuilder-B2tIOPi0.js → WorkflowBuilder-D9W8hQTO.js} +7 -7
- package/dist/{WorkflowProposalCard-U31u1qcw.js → WorkflowProposalCard-BjYAZH3q.js} +1 -1
- package/dist/{WorkflowSearchRedirect-BhXzWDj7.js → WorkflowSearchRedirect-iPQBL6WO.js} +1 -1
- package/dist/{WorkflowShareDialog-Dv46nAyh.js → WorkflowShareDialog-DB-qJLB2.js} +1 -1
- package/dist/{WorkflowsList-BV-2J_gG.js → WorkflowsList-rOxlI49U.js} +13 -13
- package/dist/{agentTools-EVdEThES.js → agentTools-DlPHMfhA.js} +4 -4
- package/dist/{api-DwaHAJtA.js → api-Dvitj1aT.js} +1 -1
- package/dist/{api-C8WmUejq.js → api-JpNuowX4.js} +1 -1
- package/dist/{canvasNoteTools-C5Vf0pxu.js → canvasNoteTools-CkAsMSvt.js} +3 -3
- package/dist/{code-editor-field-o7qp9eTq.js → code-editor-field-yJZEDJBi.js} +2 -2
- package/dist/{constants-B2lhWNoN.js → constants-dcxg6zG6.js} +2 -2
- package/dist/{definition-canvas-F8DGty5m.js → definition-canvas-Bshn_dSP.js} +1 -1
- package/dist/executions.js +2 -2
- package/dist/{flow-builder-Dn4PCWuf.js → flow-builder-DUkCKl-S.js} +187 -69
- package/dist/{graphql-operation-types-BdU65FNm.js → graphql-operation-types-z2oXfQvM.js} +10 -1
- package/dist/history.js +1 -1
- package/dist/{index-DbTgk7dK.d.ts → index-u-kM0seP.d.ts} +3 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +40 -39
- package/dist/{node-detail-view-kWiwJEKr.js → node-detail-view-ApMQwQRQ.js} +18 -18
- package/dist/{node-editor-tab-body-C71Y0fRJ.js → node-editor-tab-body-DIcmar84.js} +6 -6
- package/dist/{node-endpoint-configs-BrzQMy10.js → node-endpoint-configs-typvqw2c.js} +1 -1
- package/dist/{node-operation-selection-icAhaNza.js → node-operation-selection-DAbS6jSY.js} +4 -4
- package/dist/nodes.js +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/observability.js +2 -2
- package/dist/{popover-v7g8TWmm.js → popover-DOeSGQOG.js} +3 -3
- package/dist/{quick-config-panel-C84vsDYD.js → quick-config-panel-Pm5nkZVr.js} +6 -6
- package/dist/{schedule-panel-BrNKy9DY.js → schedule-panel-Dizqz9eA.js} +29 -29
- package/dist/settings.js +1 -1
- package/dist/{sidebar-node-editor-D-2lPHwq.js → sidebar-node-editor-BNub2vUq.js} +4 -4
- package/dist/templates.js +2 -2
- package/dist/{useAgentDefinitions-DSU8Eek4.js → useAgentDefinitions-Uy6nhpKN.js} +1 -1
- package/dist/{useDurableParity-fFmfa97r.js → useDurableParity-Cb9nOdE8.js} +191 -4
- package/dist/{useEntityTags-C8rPBi6W.js → useEntityTags-D5C0tdLs.js} +1 -1
- package/dist/{useExecutions-DNGW4yxG.js → useExecutions-DJXtbA15.js} +59 -48
- package/dist/useHumanRequests-ZiR0sSzS.js +218 -0
- package/dist/{useObservability-u-MZCWUV.js → useObservability-Dfgh4yjv.js} +1 -1
- package/dist/{useRunHistory-x9bVUB9T.js → useRunHistory-BZQ3t68Q.js} +2 -2
- package/dist/{useWorkflowCodeExport-CV3SZeKm.js → useWorkflowCodeExport-D0zapXXm.js} +2 -2
- package/dist/{useWorkflows-CVb5zXKt.js → useWorkflows-CP-d3ygY.js} +2 -2
- package/dist/workflow-builder.js +5 -5
- package/dist/workflow-host.js +1 -1
- package/dist/workflow-pages.d.ts +1 -1
- package/dist/workflow-pages.js +19 -19
- package/dist/workflow-preview.js +4 -4
- package/dist/workflows-list.js +1 -1
- package/package.json +1 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { B as NODE_TYPE_DRAG_DATA_FORMAT, G as isTriggerOperation, H as useFlowStore, M as isImageIcon, T as resolveInputHandles, U as useIsValidConnection, V as STICKY_NOTE_TYPE, j as NodeTypeIcon, r as CODE_WORKFLOW_NODE_TYPE, z as NODE_OPERATION_DRAG_DATA_FORMAT } from "./node-operation-selection-
|
|
3
|
-
import { $t as AUTOSAVE_DEBOUNCE_MS, Bn as useMarkdownRenderer, Bt as leaseCallSequence, Cn as loadDefinitionJson, Ct as watchLeavingLosesChanges, D as InstallWorkflowNodeDocument, E as InstallPurchasedNodeDocument, Et as useSaveWorkflow, F as getNodeMetadata, Ft as useEditLeaseLocked, Gt as tickAction, H as MissingParametersDialog, Hn as useBuilderReadOnly, Ht as phaseAfterTakeOver, It as useEditLeaseStore, Jt as rememberSessionForReload, Kt as EDIT_SESSION_ID, Ln as getNodeDetail, Lt as bannerOf, M as UninstallOrganizationPrivateNodeDocument, Mt as saveIndicatorOf, N as UninstallWorkflowNodeDocument, Nt as useSaveStatusStore, Pt as workflowSaveQueue, Qt as revisionOf, Rn as buildStickyNode, Rt as isLocked, S as CreateStoreOrderDocument, St as touchesSavedFields, T as InstallOrganizationPrivateNodeDocument, Tt as useFlowValidator, U as useRunGuard, Ut as releasesOnClose, V as useInsertNode, Vn as BuilderReadOnlyProvider, Vt as phaseAfterAcquire, W as workflowParameterIssues, Wt as shouldReleaseForIdle, Xt as rememberOwnStatusChange, Yt as sessionBeforeReload, Zt as rememberRevision, _t as departingSave, a as NODES_METADATA, an as resettledBaseline, b as BrowseWorkflowNodesDocument, bn as useCanvasEdges, bt as leavingLosesChanges, cn as useNodeExecution, en as AUTOSAVE_RETRY_DELAYS_MS, f as isNodeConfigsInitialized, g as registerWorkflowNodeTypes, gt as autosaveAllowedFor, ht as useManualSave, i as AVAILABLE_NODES, in as inAppLeaveTarget, jt as refusalOfQuota, k as OrganizationPrivateNodesDocument, l as ensureNodeConfigsLoaded, m as refetchStoreNodes, mt as useGuardedNavigate, o as NODE_CONFIGS, on as saveFailureActionOf, p as onNodeTypesUpdate, qt as forgetSessionForReload, s as NODE_TYPES, sn as workflowFingerprint, t as FluidGridsContext, tn as canAutosave, v as scheduleNodePaletteLoad, vt as editStateFor, w as GetNodeInstallableVersionsDocument, wt as isFlowComplete, xn as useNodeRegistryRevision, xt as savedEverythingBeforeLeaving, yt as editingLeaseLocked, z as buildOperationSeed, zn as loadMarkdown, zt as leaseCallQueue } from "./FluidGridsProvider-
|
|
2
|
+
import { B as NODE_TYPE_DRAG_DATA_FORMAT, G as isTriggerOperation, H as useFlowStore, M as isImageIcon, T as resolveInputHandles, U as useIsValidConnection, V as STICKY_NOTE_TYPE, j as NodeTypeIcon, r as CODE_WORKFLOW_NODE_TYPE, z as NODE_OPERATION_DRAG_DATA_FORMAT } from "./node-operation-selection-DAbS6jSY.js";
|
|
3
|
+
import { $t as AUTOSAVE_DEBOUNCE_MS, Bn as useMarkdownRenderer, Bt as leaseCallSequence, Cn as loadDefinitionJson, Ct as watchLeavingLosesChanges, D as InstallWorkflowNodeDocument, E as InstallPurchasedNodeDocument, Et as useSaveWorkflow, F as getNodeMetadata, Ft as useEditLeaseLocked, Gt as tickAction, H as MissingParametersDialog, Hn as useBuilderReadOnly, Ht as phaseAfterTakeOver, It as useEditLeaseStore, Jt as rememberSessionForReload, Kt as EDIT_SESSION_ID, Ln as getNodeDetail, Lt as bannerOf, M as UninstallOrganizationPrivateNodeDocument, Mt as saveIndicatorOf, N as UninstallWorkflowNodeDocument, Nt as useSaveStatusStore, Pt as workflowSaveQueue, Qt as revisionOf, Rn as buildStickyNode, Rt as isLocked, S as CreateStoreOrderDocument, St as touchesSavedFields, T as InstallOrganizationPrivateNodeDocument, Tt as useFlowValidator, U as useRunGuard, Ut as releasesOnClose, V as useInsertNode, Vn as BuilderReadOnlyProvider, Vt as phaseAfterAcquire, W as workflowParameterIssues, Wt as shouldReleaseForIdle, Xt as rememberOwnStatusChange, Yt as sessionBeforeReload, Zt as rememberRevision, _t as departingSave, a as NODES_METADATA, an as resettledBaseline, b as BrowseWorkflowNodesDocument, bn as useCanvasEdges, bt as leavingLosesChanges, cn as useNodeExecution, en as AUTOSAVE_RETRY_DELAYS_MS, f as isNodeConfigsInitialized, g as registerWorkflowNodeTypes, gt as autosaveAllowedFor, ht as useManualSave, i as AVAILABLE_NODES, in as inAppLeaveTarget, jt as refusalOfQuota, k as OrganizationPrivateNodesDocument, l as ensureNodeConfigsLoaded, m as refetchStoreNodes, mt as useGuardedNavigate, o as NODE_CONFIGS, on as saveFailureActionOf, p as onNodeTypesUpdate, qt as forgetSessionForReload, s as NODE_TYPES, sn as workflowFingerprint, t as FluidGridsContext, tn as canAutosave, v as scheduleNodePaletteLoad, vt as editStateFor, w as GetNodeInstallableVersionsDocument, wt as isFlowComplete, xn as useNodeRegistryRevision, xt as savedEverythingBeforeLeaving, yt as editingLeaseLocked, z as buildOperationSeed, zn as loadMarkdown, zt as leaseCallQueue } from "./FluidGridsProvider-B1hgCbxG.js";
|
|
4
4
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
5
5
|
import { n as preloadableLazy } from "./preloadable-lazy-Pp47mqQ9.js";
|
|
6
6
|
import { a as DialogFooter$1, d as Input$1, i as DialogDescription$1, l as DialogTitle$1, o as DialogHeader$1, r as DialogContent$1, t as Dialog$1 } from "./dialog-Cjb4lB4D.js";
|
|
7
|
-
import { _ as storeNodeInstallVersion, a as useTemplateImportFlow, d as filterStoreNodesForPalette, f as getStoreNodeAvailability, g as storeNodeDisplayVersion, h as isStoreNodeUpdateAvailable, k as filterPaletteNodes, m as getStoreNodeType, p as getStoreNodeIcon, t as TemplateCard, u as useWorkflowTemplates, v as useInstalledNodes, y as useGlobalStoreClient } from "./TemplateCard-
|
|
7
|
+
import { _ as storeNodeInstallVersion, a as useTemplateImportFlow, d as filterStoreNodesForPalette, f as getStoreNodeAvailability, g as storeNodeDisplayVersion, h as isStoreNodeUpdateAvailable, k as filterPaletteNodes, m as getStoreNodeType, p as getStoreNodeIcon, t as TemplateCard, u as useWorkflowTemplates, v as useInstalledNodes, y as useGlobalStoreClient } from "./TemplateCard-DanOe65C.js";
|
|
8
8
|
import { _ as throwIfResultError, d as emitFluidGridsEvent, m as describeOperationError, n as getFluidGridsClient, s as waitForFluidGridsClient, x as getFluidGridsConfig } from "./client-C9XSzSXr.js";
|
|
9
9
|
import { c as useDurableParityEnabled, d as usePaletteGates, l as useFluidGridsFlag, m as useWorkflowTestsEnabled, s as useDurableFunctionNodesEnabled, t as FLUIDGRIDS_FLAGS } from "./feature-flags-DM5myWaD.js";
|
|
10
10
|
import { t as Button$2 } from "./button-DG7y_FVJ.js";
|
|
11
11
|
import { t as PublishCustomNodeAction } from "./PublishCustomNodeAction-5XXnSA3H.js";
|
|
12
12
|
import { o as emitUpgradeClicked, t as emitNodeInstalled } from "./fluidgridsEvents-Dm5CaHtr.js";
|
|
13
|
-
import { $t as RemoveNodeFromWorkflowsDocument, Br as WorkflowGitPushesDocument, Ci as WorkflowVersioningDocument, Ft as NodeUsageStatusDocument, Gr as WorkflowPromotionRequestsDocument, Hn as TakeOverWorkflowEditLeaseDocument, Lr as WorkflowGenerationTemplatesDocument, Mn as SetWorkflowRolloutDocument, Mr as WorkflowEditLeaseDocument, Nt as NodeSchemaIntrospectionDocument, Or as WorkflowDefinitionDocument, Pr as WorkflowEnvironmentsDocument, Q as DeployWorkflowVersionToDevDocument, Qt as ReleaseWorkflowEditLeaseDocument, Rr as WorkflowGitCommitsDocument, S as CancelWorkflowPromotionDocument, Si as WorkflowVersionDrainageDocument, Vr as WorkflowGitRepositoryDocument, Xt as RejectWorkflowPromotionDocument, Y as DeleteWorkflowRolloutDocument, Zn as UnlinkWorkflowGitRepositoryDocument, br as WorkflowAuthoringDocument, l as ApproveWorkflowPromotionDocument, lr as UpdateWorkflowEnvironmentPolicyDocument, qt as PushWorkflowToGitDocument, r as ActivateWorkflowVersionCheckedDocument, rn as RequestWorkflowPromotionDocument, sn as RestoreWorkflowFromGitDocument, t as AcquireWorkflowEditLeaseDocument, wt as LinkWorkflowGitRepositoryDocument, zr as WorkflowGitDiffDocument } from "./graphql-operation-types-
|
|
13
|
+
import { $t as RemoveNodeFromWorkflowsDocument, Br as WorkflowGitPushesDocument, Ci as WorkflowVersioningDocument, Ft as NodeUsageStatusDocument, Gr as WorkflowPromotionRequestsDocument, Hn as TakeOverWorkflowEditLeaseDocument, Lr as WorkflowGenerationTemplatesDocument, Mn as SetWorkflowRolloutDocument, Mr as WorkflowEditLeaseDocument, Nt as NodeSchemaIntrospectionDocument, Or as WorkflowDefinitionDocument, Pr as WorkflowEnvironmentsDocument, Q as DeployWorkflowVersionToDevDocument, Qt as ReleaseWorkflowEditLeaseDocument, Rr as WorkflowGitCommitsDocument, S as CancelWorkflowPromotionDocument, Si as WorkflowVersionDrainageDocument, Vr as WorkflowGitRepositoryDocument, Xt as RejectWorkflowPromotionDocument, Y as DeleteWorkflowRolloutDocument, Zn as UnlinkWorkflowGitRepositoryDocument, br as WorkflowAuthoringDocument, l as ApproveWorkflowPromotionDocument, lr as UpdateWorkflowEnvironmentPolicyDocument, qt as PushWorkflowToGitDocument, r as ActivateWorkflowVersionCheckedDocument, rn as RequestWorkflowPromotionDocument, sn as RestoreWorkflowFromGitDocument, t as AcquireWorkflowEditLeaseDocument, wt as LinkWorkflowGitRepositoryDocument, zr as WorkflowGitDiffDocument } from "./graphql-operation-types-z2oXfQvM.js";
|
|
14
14
|
import { n as useAgentMarksStore } from "./marksStore-DGCXjTmZ.js";
|
|
15
|
-
import { A as CreateWorkflowRefusalDialog, C as orderedExportFiles, E as sortFidelityItems, S as lineOfNode, _ as fileBaseName, b as isLosslessReport, c as saveWorkflowDescription, l as visibleWorkflowDescription, o as commitWorkflowDescription, r as useWorkflowCodeExport, s as normalizeWorkflowDescription, t as downloadWorkflowCodeExport, u as workflowDescriptionCharactersLeft, x as isLossyFidelityItem } from "./useWorkflowCodeExport-
|
|
15
|
+
import { A as CreateWorkflowRefusalDialog, C as orderedExportFiles, E as sortFidelityItems, S as lineOfNode, _ as fileBaseName, b as isLosslessReport, c as saveWorkflowDescription, l as visibleWorkflowDescription, o as commitWorkflowDescription, r as useWorkflowCodeExport, s as normalizeWorkflowDescription, t as downloadWorkflowCodeExport, u as workflowDescriptionCharactersLeft, x as isLossyFidelityItem } from "./useWorkflowCodeExport-D0zapXXm.js";
|
|
16
16
|
import { r as RUNS_QUOTA_NAME, t as BILLING_PLANS_PATH } from "./quota-Cdt8yz7N.js";
|
|
17
|
-
import { t as EntityTagPicker } from "./EntityTagPicker-
|
|
17
|
+
import { t as EntityTagPicker } from "./EntityTagPicker-dxfzv8aO.js";
|
|
18
18
|
import { t as FluidGridsDocsLink } from "./FluidGridsDocsLink-JxkBpOeb.js";
|
|
19
19
|
import { n as runsQuotaLevel, t as readRunsQuota } from "./runsQuota-DvXR6mRN.js";
|
|
20
|
-
import { a as SdkPermissionGate, i as SdkPermissionButton, s as useFluidGridsPermission, t as FLUIDGRIDS_PERMISSIONS } from "./constants-
|
|
21
|
-
import { a as useDeactivateWorkflow, d as useRestoreWorkflowVersion, o as useDeleteWorkflow, t as useActivateWorkflow, v as useWorkflowVersions } from "./useWorkflows-
|
|
22
|
-
import { n as VersionLifecycleBar, r as countLifecycle, t as VersionDiffDialog } from "./VersionDiffDialog-
|
|
20
|
+
import { a as SdkPermissionGate, i as SdkPermissionButton, s as useFluidGridsPermission, t as FLUIDGRIDS_PERMISSIONS } from "./constants-dcxg6zG6.js";
|
|
21
|
+
import { a as useDeactivateWorkflow, d as useRestoreWorkflowVersion, o as useDeleteWorkflow, t as useActivateWorkflow, v as useWorkflowVersions } from "./useWorkflows-CP-d3ygY.js";
|
|
22
|
+
import { n as VersionLifecycleBar, r as countLifecycle, t as VersionDiffDialog } from "./VersionDiffDialog-pLpG_I1r.js";
|
|
23
23
|
import { $P as VersioningBehavior, Eu as DrainageStatus, MI as WorkflowTestExpectedStatus, jo as CodeReplaceStatus, nI as WorkflowEnvironment, rI as WorkflowExportFormat } from "./graphql-types-v6CTGwA0.js";
|
|
24
24
|
import { n as useConnections } from "./useConnections-Cs7LCWEM.js";
|
|
25
25
|
import { t as buildNodeDisplayMap } from "./run-display-BycKYSU0.js";
|
|
26
|
-
import { a as TEST_STATUS_TONE_CLASS, c as draftToInput, d as isTestRunOpen, f as nextSortOrder, g as testStatusTone, h as testStatusLabel, i as useWorkflowTests, l as emptyTestCaseDraft, m as testRunSummaryText, n as useWorkflowProposal, p as pinnedOutputsFromCanvas, s as draftFromTestCase, t as WorkflowProposalCard, u as enabledCaseIds } from "./WorkflowProposalCard-
|
|
26
|
+
import { a as TEST_STATUS_TONE_CLASS, c as draftToInput, d as isTestRunOpen, f as nextSortOrder, g as testStatusTone, h as testStatusLabel, i as useWorkflowTests, l as emptyTestCaseDraft, m as testRunSummaryText, n as useWorkflowProposal, p as pinnedOutputsFromCanvas, s as draftFromTestCase, t as WorkflowProposalCard, u as enabledCaseIds } from "./WorkflowProposalCard-BjYAZH3q.js";
|
|
27
27
|
import { n as useRequestedProposal } from "./useRequestedProposal-B7uPXfZB.js";
|
|
28
28
|
import { t as AiCreditBalanceSlot } from "./aiCreditsBridge-BuE92tKo.js";
|
|
29
29
|
import * as React$1 from "react";
|
|
30
|
-
import { Suspense, createContext, lazy, memo, useCallback, useContext, useDeferredValue, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
30
|
+
import { Suspense, createContext, lazy, memo, useCallback, useContext, useDeferredValue, useEffect, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
31
31
|
import { Link, useNavigate, useParams } from "react-router";
|
|
32
32
|
import { useMutation, useQuery } from "@apollo/client/react";
|
|
33
33
|
import { create } from "zustand";
|
|
@@ -36,7 +36,7 @@ import { Icon } from "@iconify/react";
|
|
|
36
36
|
import { cn } from "@burdenoff/fe-libs/utils";
|
|
37
37
|
import { nanoid } from "nanoid/non-secure";
|
|
38
38
|
import { produce } from "immer";
|
|
39
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
39
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
40
40
|
import { toast } from "sonner";
|
|
41
41
|
import { edgeColor, nodeCategoryColor } from "@burdenoff/fe-libs/shared/utils";
|
|
42
42
|
import { shallow, useShallow } from "zustand/shallow";
|
|
@@ -260,10 +260,10 @@ function IntroductionPropertyPanel() {
|
|
|
260
260
|
* waiting for its chunk and React's Suspense throttle (about 0.5 s on first
|
|
261
261
|
* open even with the chunk cached).
|
|
262
262
|
*/
|
|
263
|
-
const NodeDetailViewOverlay = preloadableLazy(() => import("./node-detail-view-
|
|
264
|
-
const QuickConfigPanelOverlay = preloadableLazy(() => import("./quick-config-panel-
|
|
265
|
-
const SidebarNodeEditorOverlay = preloadableLazy(() => import("./sidebar-node-editor-
|
|
266
|
-
const WorkflowShareDialogOverlay = preloadableLazy(() => import("./WorkflowShareDialog-
|
|
263
|
+
const NodeDetailViewOverlay = preloadableLazy(() => import("./node-detail-view-ApMQwQRQ.js").then((m) => m.NodeDetailView), "NodeDetailView");
|
|
264
|
+
const QuickConfigPanelOverlay = preloadableLazy(() => import("./quick-config-panel-Pm5nkZVr.js").then((m) => m.QuickConfigPanel), "QuickConfigPanel");
|
|
265
|
+
const SidebarNodeEditorOverlay = preloadableLazy(() => import("./sidebar-node-editor-BNub2vUq.js").then((m) => m.SidebarNodeEditor), "SidebarNodeEditor");
|
|
266
|
+
const WorkflowShareDialogOverlay = preloadableLazy(() => import("./WorkflowShareDialog-DB-qJLB2.js").then((n) => n.n).then((m) => m.WorkflowShareDialog), "WorkflowShareDialog");
|
|
267
267
|
const ConnectionFormDialogOverlay = preloadableLazy(() => import("./ConnectionFormDialog-Bg9_OdHX.js").then((n) => n.n).then((m) => m.ConnectionFormDialog), "ConnectionFormDialog");
|
|
268
268
|
/**
|
|
269
269
|
* Loads every overlay's code (and the markdown renderer the sticky notes and
|
|
@@ -468,8 +468,111 @@ function nextStoreOffset(products) {
|
|
|
468
468
|
return new Set(products.map((product) => product.id)).size;
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
+
// src/hooks/store/store-pages-cache.ts
|
|
472
|
+
/**
|
|
473
|
+
* The "Load more" pages of the builder's store node lists, kept apart from
|
|
474
|
+
* the first page.
|
|
475
|
+
*
|
|
476
|
+
* The first page is an Apollo query with `cache-and-network`, so it is
|
|
477
|
+
* fetched again every time a list mounts: after opening a node and going
|
|
478
|
+
* back, after closing and reopening the Node Store, after switching
|
|
479
|
+
* categories. The later pages used to be merged into that same cache entry
|
|
480
|
+
* (`fetchMore` + `updateQuery`), so each new first page replaced the merged
|
|
481
|
+
* list: the extra nodes showed for a moment and then disappeared. The later
|
|
482
|
+
* pages now live here, keyed by the list's filter, and are always appended
|
|
483
|
+
* after whatever the first page holds, so refreshing page 1 never drops them.
|
|
484
|
+
*/
|
|
485
|
+
/** How many filters keep their loaded pages; the oldest is dropped first. */
|
|
486
|
+
const STORE_PAGES_CACHE_LIMIT = 50;
|
|
487
|
+
var StorePagesCache = class {
|
|
488
|
+
limit;
|
|
489
|
+
entries = /* @__PURE__ */ new Map();
|
|
490
|
+
listeners = /* @__PURE__ */ new Set();
|
|
491
|
+
constructor(limit = 50) {
|
|
492
|
+
this.limit = limit;
|
|
493
|
+
}
|
|
494
|
+
/** The pages loaded after the first one for `key`, if any. */
|
|
495
|
+
get(key) {
|
|
496
|
+
return this.entries.get(key);
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Adds one more page for `key`. Nodes already listed are not added twice,
|
|
500
|
+
* and `hasMore` / `totalCount` come from the newest page.
|
|
501
|
+
*/
|
|
502
|
+
append(key, page) {
|
|
503
|
+
const previous = this.entries.get(key);
|
|
504
|
+
this.entries.delete(key);
|
|
505
|
+
this.entries.set(key, {
|
|
506
|
+
products: appendUniqueById(previous?.products ?? [], page.products),
|
|
507
|
+
hasMore: page.hasMore,
|
|
508
|
+
totalCount: page.totalCount
|
|
509
|
+
});
|
|
510
|
+
for (const oldest of this.entries.keys()) {
|
|
511
|
+
if (this.entries.size <= this.limit) break;
|
|
512
|
+
this.entries.delete(oldest);
|
|
513
|
+
}
|
|
514
|
+
this.emit();
|
|
515
|
+
}
|
|
516
|
+
/** Forgets the later pages for `key`, e.g. on an explicit refresh. */
|
|
517
|
+
clear(key) {
|
|
518
|
+
if (this.entries.delete(key)) this.emit();
|
|
519
|
+
}
|
|
520
|
+
/** Forgets every list's later pages. */
|
|
521
|
+
clearAll() {
|
|
522
|
+
if (this.entries.size === 0) return;
|
|
523
|
+
this.entries.clear();
|
|
524
|
+
this.emit();
|
|
525
|
+
}
|
|
526
|
+
/** For `useSyncExternalStore`. */
|
|
527
|
+
subscribe = (listener) => {
|
|
528
|
+
this.listeners.add(listener);
|
|
529
|
+
return () => {
|
|
530
|
+
this.listeners.delete(listener);
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
emit() {
|
|
534
|
+
for (const listener of this.listeners) listener();
|
|
535
|
+
}
|
|
536
|
+
};
|
|
537
|
+
/**
|
|
538
|
+
* The list a store page belongs to: the filter, sort and page size, plus the
|
|
539
|
+
* workspace, organization and user the store answers for (`isPurchased`
|
|
540
|
+
* differs per user). The offset is left out on purpose: every page of one
|
|
541
|
+
* list shares the key.
|
|
542
|
+
*/
|
|
543
|
+
function storeListKey(input, scope) {
|
|
544
|
+
return JSON.stringify([
|
|
545
|
+
input.filter ?? null,
|
|
546
|
+
input.sortBy ?? null,
|
|
547
|
+
input.pagination?.limit ?? null,
|
|
548
|
+
scope.workspaceId ?? null,
|
|
549
|
+
scope.organizationId ?? null,
|
|
550
|
+
scope.userId ?? null
|
|
551
|
+
]);
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* The list to show: the first page as it is now, then every later page
|
|
555
|
+
* without the nodes the first page already has. With no first page yet
|
|
556
|
+
* there is nothing to show, because the later pages' offsets assume it.
|
|
557
|
+
*/
|
|
558
|
+
function mergeStorePages(first, later) {
|
|
559
|
+
if (!first) return void 0;
|
|
560
|
+
if (!later) return first;
|
|
561
|
+
return {
|
|
562
|
+
products: appendUniqueById(first.products, later.products),
|
|
563
|
+
hasMore: later.hasMore,
|
|
564
|
+
totalCount: later.totalCount
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
|
|
471
568
|
// src/hooks/store/useStoreNodes.ts
|
|
472
569
|
/**
|
|
570
|
+
* Later pages of every store node list in this page, keyed by filter,
|
|
571
|
+
* workspace, organization and user. Module-level rather than per Apollo
|
|
572
|
+
* client so a client rebuilt by the host (a new token) keeps them too.
|
|
573
|
+
*/
|
|
574
|
+
const laterPagesCache = new StorePagesCache();
|
|
575
|
+
/**
|
|
473
576
|
* Hook to browse and search workflow nodes from the global store
|
|
474
577
|
*/
|
|
475
578
|
function useStoreNodes(options = {}) {
|
|
@@ -477,6 +580,7 @@ function useStoreNodes(options = {}) {
|
|
|
477
580
|
const context = useContext(FluidGridsContext);
|
|
478
581
|
const workspaceId = context?.workspaceId ?? getFluidGridsConfig().workspaceId;
|
|
479
582
|
const organizationId = context?.organizationId;
|
|
583
|
+
const userId = context?.userId;
|
|
480
584
|
const input = {
|
|
481
585
|
filter: {
|
|
482
586
|
search: options.filter?.search,
|
|
@@ -496,52 +600,66 @@ function useStoreNodes(options = {}) {
|
|
|
496
600
|
workspaceId,
|
|
497
601
|
workspaceToken: getFluidGridsConfig().workspaceToken
|
|
498
602
|
});
|
|
499
|
-
const
|
|
603
|
+
const requestContext = Object.keys(contextHeaders).length > 0 ? { headers: contextHeaders } : void 0;
|
|
604
|
+
const { data, loading, error, refetch } = useQuery(BrowseWorkflowNodesDocument, {
|
|
500
605
|
client,
|
|
501
606
|
variables: { input },
|
|
502
607
|
fetchPolicy: "cache-and-network",
|
|
503
|
-
context:
|
|
608
|
+
context: requestContext
|
|
504
609
|
});
|
|
610
|
+
const listKey = storeListKey(input, {
|
|
611
|
+
workspaceId,
|
|
612
|
+
organizationId,
|
|
613
|
+
userId
|
|
614
|
+
});
|
|
615
|
+
const laterPages = useSyncExternalStore(laterPagesCache.subscribe, () => laterPagesCache.get(listKey));
|
|
616
|
+
const firstPage = data?.browseStore;
|
|
617
|
+
const list = useMemo(() => mergeStorePages(firstPage, laterPages), [firstPage, laterPages]);
|
|
505
618
|
const loadingMoreRef = useRef(false);
|
|
506
619
|
const [loadingMore, setLoadingMore] = useState(false);
|
|
620
|
+
const [loadMoreError, setLoadMoreError] = useState();
|
|
507
621
|
const handleFetchMore = () => {
|
|
508
|
-
if (!
|
|
622
|
+
if (!list?.hasMore || loadingMoreRef.current) return;
|
|
509
623
|
loadingMoreRef.current = true;
|
|
510
624
|
setLoadingMore(true);
|
|
511
|
-
|
|
625
|
+
setLoadMoreError(void 0);
|
|
626
|
+
const key = listKey;
|
|
627
|
+
client.query({
|
|
628
|
+
query: BrowseWorkflowNodesDocument,
|
|
512
629
|
variables: { input: {
|
|
513
630
|
...input,
|
|
514
631
|
pagination: {
|
|
515
632
|
...input.pagination,
|
|
516
|
-
offset: nextStoreOffset(
|
|
633
|
+
offset: nextStoreOffset(list.products)
|
|
517
634
|
}
|
|
518
635
|
} },
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
...fetchMoreResult.browseStore,
|
|
526
|
-
products: appendUniqueById(prev.browseStore?.products || [], fetchMoreResult.browseStore?.products || [])
|
|
527
|
-
}
|
|
528
|
-
};
|
|
529
|
-
}
|
|
636
|
+
fetchPolicy: "no-cache",
|
|
637
|
+
context: requestContext
|
|
638
|
+
}).then(({ data: page }) => {
|
|
639
|
+
if (page?.browseStore) laterPagesCache.append(key, page.browseStore);
|
|
640
|
+
}).catch((cause) => {
|
|
641
|
+
setLoadMoreError(cause instanceof Error ? cause : new Error(String(cause)));
|
|
530
642
|
}).finally(() => {
|
|
531
643
|
loadingMoreRef.current = false;
|
|
532
644
|
setLoadingMore(false);
|
|
533
645
|
});
|
|
534
646
|
};
|
|
647
|
+
const handleRefetch = useCallback(() => {
|
|
648
|
+
laterPagesCache.clear(listKey);
|
|
649
|
+
return refetch();
|
|
650
|
+
}, [listKey, refetch]);
|
|
535
651
|
return {
|
|
536
|
-
products:
|
|
537
|
-
totalCount:
|
|
538
|
-
hasMore:
|
|
652
|
+
products: list?.products ?? [],
|
|
653
|
+
totalCount: list?.totalCount ?? 0,
|
|
654
|
+
hasMore: list?.hasMore ?? false,
|
|
539
655
|
loading,
|
|
540
656
|
/** True while a "Load more" page is being fetched. */
|
|
541
657
|
loadingMore,
|
|
542
658
|
error,
|
|
659
|
+
/** The last "Load more" failure; the button stays usable to retry. */
|
|
660
|
+
loadMoreError,
|
|
543
661
|
fetchMore: handleFetchMore,
|
|
544
|
-
refetch
|
|
662
|
+
refetch: handleRefetch
|
|
545
663
|
};
|
|
546
664
|
}
|
|
547
665
|
|
|
@@ -1144,7 +1262,7 @@ function OrganizationPrivateNodeRow({ node, canManage, busy, disabled, onInstall
|
|
|
1144
1262
|
onClick: () => onInstall(node),
|
|
1145
1263
|
"data-testid": "org-private-node-install",
|
|
1146
1264
|
children: tr(`${KEY}.installButton`, "Install")
|
|
1147
|
-
}) : confirmingUninstall ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Button$2, {
|
|
1265
|
+
}) : confirmingUninstall ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Button$2, {
|
|
1148
1266
|
size: "xs",
|
|
1149
1267
|
variant: "destructive",
|
|
1150
1268
|
disabled,
|
|
@@ -1159,7 +1277,7 @@ function OrganizationPrivateNodeRow({ node, canManage, busy, disabled, onInstall
|
|
|
1159
1277
|
variant: "ghost",
|
|
1160
1278
|
onClick: () => setConfirmingUninstall(false),
|
|
1161
1279
|
children: tr(`${KEY}.cancelButton`, "Cancel")
|
|
1162
|
-
})] }) : /* @__PURE__ */ jsxs(Fragment, { children: [node.updateAvailable && /* @__PURE__ */ jsx(Button$2, {
|
|
1280
|
+
})] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [node.updateAvailable && /* @__PURE__ */ jsx(Button$2, {
|
|
1163
1281
|
size: "xs",
|
|
1164
1282
|
disabled,
|
|
1165
1283
|
onClick: () => onInstall(node),
|
|
@@ -1332,7 +1450,7 @@ function StoreCategoryList({ searchTerm, onSearchChange, onSelectCategory, onSel
|
|
|
1332
1450
|
"”"
|
|
1333
1451
|
]
|
|
1334
1452
|
})
|
|
1335
|
-
}) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1453
|
+
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
1336
1454
|
/* @__PURE__ */ jsxs("p", {
|
|
1337
1455
|
className: "px-2 py-1.5 text-xs text-muted-foreground font-medium",
|
|
1338
1456
|
children: [
|
|
@@ -1646,7 +1764,7 @@ const UninstallNodeDialog = ({ nodeName, nodeType, isUsed, workflows, loading, o
|
|
|
1646
1764
|
className: "ml-3 text-text-secondary",
|
|
1647
1765
|
children: tr("fluidgrids.builder.uninstallNodeDialog.checkingUsage", "Checking node usage...")
|
|
1648
1766
|
})]
|
|
1649
|
-
}) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1767
|
+
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
1650
1768
|
isUsed && /* @__PURE__ */ jsxs("div", {
|
|
1651
1769
|
className: "mb-4 p-3 bg-status-warning-bg-subtle border border-status-warning-border rounded-lg flex gap-3",
|
|
1652
1770
|
children: [/* @__PURE__ */ jsx(AlertTriangle, { className: "w-5 h-5 text-status-warning-text flex-shrink-0 mt-0.5" }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("p", {
|
|
@@ -2341,7 +2459,7 @@ function StoreNodeDetail({ node, onBack }) {
|
|
|
2341
2459
|
className: "w-full",
|
|
2342
2460
|
onClick: handleUpdate,
|
|
2343
2461
|
disabled: isUpdating,
|
|
2344
|
-
children: isUpdating ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Loader2, { className: "size-3.5 mr-1.5 animate-spin" }), tr("fluidgrids.builder.storeNodeDetail.updatingLabel", "Updating...")] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2462
|
+
children: isUpdating ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Loader2, { className: "size-3.5 mr-1.5 animate-spin" }), tr("fluidgrids.builder.storeNodeDetail.updatingLabel", "Updating...")] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
2345
2463
|
/* @__PURE__ */ jsx(RefreshCw, { className: "size-3.5 mr-1.5" }),
|
|
2346
2464
|
tr("fluidgrids.builder.storeNodeDetail.updateToPrefix", "Update to"),
|
|
2347
2465
|
" ",
|
|
@@ -2354,7 +2472,7 @@ function StoreNodeDetail({ node, onBack }) {
|
|
|
2354
2472
|
className: "w-full",
|
|
2355
2473
|
onClick: handleUninstallClick,
|
|
2356
2474
|
disabled: uninstalling || checkingNodeUsage || removingFromWorkflows,
|
|
2357
|
-
children: uninstalling || removingFromWorkflows ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Loader2, { className: "size-3.5 mr-1.5 animate-spin" }), tr("fluidgrids.builder.storeNodeDetail.uninstallingLabel", "Uninstalling...")] }) : checkingNodeUsage ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Loader2, { className: "size-3.5 mr-1.5 animate-spin" }), tr("fluidgrids.builder.storeNodeDetail.checkingUsageLabel", "Checking usage...")] }) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Trash2, { className: "size-3.5 mr-1.5" }), tr("fluidgrids.builder.storeNodeDetail.uninstallButton", "Uninstall")] })
|
|
2475
|
+
children: uninstalling || removingFromWorkflows ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Loader2, { className: "size-3.5 mr-1.5 animate-spin" }), tr("fluidgrids.builder.storeNodeDetail.uninstallingLabel", "Uninstalling...")] }) : checkingNodeUsage ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Loader2, { className: "size-3.5 mr-1.5 animate-spin" }), tr("fluidgrids.builder.storeNodeDetail.checkingUsageLabel", "Checking usage...")] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Trash2, { className: "size-3.5 mr-1.5" }), tr("fluidgrids.builder.storeNodeDetail.uninstallButton", "Uninstall")] })
|
|
2358
2476
|
}) : isPrebuilt ? /* @__PURE__ */ jsx("div", {
|
|
2359
2477
|
className: "w-full rounded-md px-3 py-2 text-center text-sm font-medium",
|
|
2360
2478
|
style: {
|
|
@@ -2362,7 +2480,7 @@ function StoreNodeDetail({ node, onBack }) {
|
|
|
2362
2480
|
color: "var(--color-status-info-text)"
|
|
2363
2481
|
},
|
|
2364
2482
|
children: tr("fluidgrids.builder.storeNodeDetail.prebuiltHint", "Prebuilt — drag operations above onto the canvas")
|
|
2365
|
-
}) : canInstall ? /* @__PURE__ */ jsxs(Fragment, { children: [showVersionPicker && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("label", {
|
|
2483
|
+
}) : canInstall ? /* @__PURE__ */ jsxs(Fragment$1, { children: [showVersionPicker && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("label", {
|
|
2366
2484
|
htmlFor: "store-node-version",
|
|
2367
2485
|
className: "mb-1 block text-xs text-muted-foreground",
|
|
2368
2486
|
children: tr("fluidgrids.builder.storeNodeDetail.versionLabel", "Version")
|
|
@@ -2388,13 +2506,13 @@ function StoreNodeDetail({ node, onBack }) {
|
|
|
2388
2506
|
className: "w-full",
|
|
2389
2507
|
onClick: handleInstall,
|
|
2390
2508
|
disabled: isInstalling,
|
|
2391
|
-
children: isInstalling ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Loader2, { className: "size-3.5 mr-1.5 animate-spin" }), tr("fluidgrids.builder.storeNodeDetail.installingLabel", "Installing...")] }) : tr("fluidgrids.builder.storeNodeDetail.installButton", "Install")
|
|
2509
|
+
children: isInstalling ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Loader2, { className: "size-3.5 mr-1.5 animate-spin" }), tr("fluidgrids.builder.storeNodeDetail.installingLabel", "Installing...")] }) : tr("fluidgrids.builder.storeNodeDetail.installButton", "Install")
|
|
2392
2510
|
})] }) : /* @__PURE__ */ jsx(Button$2, {
|
|
2393
2511
|
size: "sm",
|
|
2394
2512
|
className: "w-full",
|
|
2395
2513
|
onClick: handlePurchase,
|
|
2396
2514
|
disabled: creatingOrder,
|
|
2397
|
-
children: creatingOrder ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Loader2, { className: "size-3.5 mr-1.5 animate-spin" }), tr("fluidgrids.builder.storeNodeDetail.creatingOrderLabel", "Creating order...")] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2515
|
+
children: creatingOrder ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Loader2, { className: "size-3.5 mr-1.5 animate-spin" }), tr("fluidgrids.builder.storeNodeDetail.creatingOrderLabel", "Creating order...")] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
2398
2516
|
/* @__PURE__ */ jsx(DollarSign, { className: "size-3.5 mr-1.5" }),
|
|
2399
2517
|
"$",
|
|
2400
2518
|
node.price?.toFixed(2) ?? "0.00"
|
|
@@ -2617,14 +2735,14 @@ function TemplatesGrid({ templates, loading, hasMore, onLoadMore, onTemplateClic
|
|
|
2617
2735
|
onClick: onLoadMore,
|
|
2618
2736
|
disabled: loading,
|
|
2619
2737
|
className: "min-w-[200px]",
|
|
2620
|
-
children: loading ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Loader2, { className: "size-4 mr-2 animate-spin" }), tr("fluidgrids.builder.templatesGrid.loadingMore", "Loading...")] }) : tr("fluidgrids.builder.templatesGrid.loadMoreButton", "Load More Templates")
|
|
2738
|
+
children: loading ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Loader2, { className: "size-4 mr-2 animate-spin" }), tr("fluidgrids.builder.templatesGrid.loadingMore", "Loading...")] }) : tr("fluidgrids.builder.templatesGrid.loadMoreButton", "Load More Templates")
|
|
2621
2739
|
})
|
|
2622
2740
|
})]
|
|
2623
2741
|
});
|
|
2624
2742
|
}
|
|
2625
2743
|
|
|
2626
2744
|
// src/builder/components/flow-builder/components/templates/TemplatesModal.tsx
|
|
2627
|
-
const LazyTemplateDetailPanel = lazy(() => import("./TemplateDetailPanel-
|
|
2745
|
+
const LazyTemplateDetailPanel = lazy(() => import("./TemplateDetailPanel-DnoA6mC3.js").then((m) => ({ default: m.TemplateDetailPanel })));
|
|
2628
2746
|
/**
|
|
2629
2747
|
* Modal for browsing and selecting workflow templates
|
|
2630
2748
|
* Features:
|
|
@@ -2685,7 +2803,7 @@ function TemplatesModal({ open, onOpenChange, onUseTemplate }) {
|
|
|
2685
2803
|
" template",
|
|
2686
2804
|
totalCount !== 1 ? "s" : "",
|
|
2687
2805
|
" available"
|
|
2688
|
-
] }), searchTerm && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", { children: "•" }), /* @__PURE__ */ jsxs("span", { children: [
|
|
2806
|
+
] }), searchTerm && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", { children: "•" }), /* @__PURE__ */ jsxs("span", { children: [
|
|
2689
2807
|
templates.length,
|
|
2690
2808
|
" matching \"",
|
|
2691
2809
|
searchTerm,
|
|
@@ -3360,7 +3478,7 @@ const MappingEdge = memo(({ id, sourceX, sourceY, targetX, targetY, sourcePositi
|
|
|
3360
3478
|
break;
|
|
3361
3479
|
case "cast": mappingLabel = data?.mappingData?.type ? `Cast: ${data.mappingData.type}` : "Cast";
|
|
3362
3480
|
}
|
|
3363
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", {
|
|
3481
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("path", {
|
|
3364
3482
|
id,
|
|
3365
3483
|
style: {
|
|
3366
3484
|
...style,
|
|
@@ -4434,7 +4552,7 @@ function MappingDialogContent({ open, onOpenChange, onSave, mappingType, sourceF
|
|
|
4434
4552
|
value: "builder",
|
|
4435
4553
|
className: "space-y-4 mt-4",
|
|
4436
4554
|
children: [
|
|
4437
|
-
mappingType === "array" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4555
|
+
mappingType === "array" && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
4438
4556
|
/* @__PURE__ */ jsxs("div", {
|
|
4439
4557
|
className: "grid gap-2",
|
|
4440
4558
|
children: [/* @__PURE__ */ jsx(Label, { children: tr("fluidgrids.builder.mappingDialog.stepSelectSourceArray", "1. Select Source Array") }), arrayFields.length > 0 ? /* @__PURE__ */ jsxs(Select, {
|
|
@@ -8704,7 +8822,7 @@ function CustomDeletableEdge(props) {
|
|
|
8704
8822
|
const srcIsLogic = /(if|switch|merge|loop|filter|branch|router|condition|aggregate)/.test(srcType);
|
|
8705
8823
|
const flowAccent = nodeCategoryColor(srcIsTrigger ? "trigger" : srcIsLogic ? "logic" : "action");
|
|
8706
8824
|
const edgeClassName = [isRunning && "animated-edge edge-glow"].filter(Boolean).join(" ");
|
|
8707
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8825
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
8708
8826
|
/* @__PURE__ */ jsx("path", {
|
|
8709
8827
|
d: edgePath,
|
|
8710
8828
|
fill: "none",
|
|
@@ -9638,7 +9756,7 @@ function CanvasControls() {
|
|
|
9638
9756
|
const panelRect = panelRef.current?.getBoundingClientRect();
|
|
9639
9757
|
const canvasBounds = readCanvasBounds(panelRef.current);
|
|
9640
9758
|
const minimapRect = panelRect && canvasBounds ? computeMinimapRect(panelRect, canvasBounds, CANVAS_MARGIN) : null;
|
|
9641
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9759
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
9642
9760
|
showMinimap && /* @__PURE__ */ jsx(MiniMap, {
|
|
9643
9761
|
position: "bottom-left",
|
|
9644
9762
|
style: {
|
|
@@ -9713,7 +9831,7 @@ function CanvasControls() {
|
|
|
9713
9831
|
className: "size-4"
|
|
9714
9832
|
})
|
|
9715
9833
|
}),
|
|
9716
|
-
!isReadOnly && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9834
|
+
!isReadOnly && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
9717
9835
|
/* @__PURE__ */ jsx("div", { className: "w-px h-5 bg-card-foreground/10 mx-0.5" }),
|
|
9718
9836
|
/* @__PURE__ */ jsx(ControlBtn, {
|
|
9719
9837
|
title: tr("fluidgrids.builder.canvasControls.undo", "Undo (Ctrl/Cmd+Z)"),
|
|
@@ -10951,7 +11069,7 @@ const CanvasNotesLayer = () => {
|
|
|
10951
11069
|
}
|
|
10952
11070
|
return [...groups.entries()];
|
|
10953
11071
|
}, [notes, live]);
|
|
10954
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11072
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
10955
11073
|
/* @__PURE__ */ jsxs(ViewportPortal, { children: [byNode.map(([nodeId, nodeNotes]) => {
|
|
10956
11074
|
const openNotes = nodeNotes.filter((note) => !note.resolved);
|
|
10957
11075
|
if (openNotes.length === 0) return null;
|
|
@@ -11793,7 +11911,7 @@ function BuilderSaveController({ readOnly, locked = false }) {
|
|
|
11793
11911
|
useSaveShortcut(readOnly || locked);
|
|
11794
11912
|
useLeaveGuards(readOnly);
|
|
11795
11913
|
if (readOnly) return null;
|
|
11796
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11914
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
11797
11915
|
/* @__PURE__ */ jsx(LeaveChangesDialog, {}),
|
|
11798
11916
|
/* @__PURE__ */ jsx(SaveQuotaDialog, {}),
|
|
11799
11917
|
/* @__PURE__ */ jsx(SaveConflictDialog, {})
|
|
@@ -12514,7 +12632,7 @@ const ExecuteWorkflowButton = ({ className }) => {
|
|
|
12514
12632
|
if (isValid) await runGuard.requestRun();
|
|
12515
12633
|
else toast.error(tr("fluidgrids.builder.executeWorkflowButton.invalidToastTitle", "Flow is invalid"), { description: tr("fluidgrids.builder.executeWorkflowButton.invalidToastDescription", "Please fix the flow before executing. Ensure trigger node is connected.") });
|
|
12516
12634
|
});
|
|
12517
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12635
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
12518
12636
|
/* @__PURE__ */ jsx(SdkPermissionButton, {
|
|
12519
12637
|
permission: FLUIDGRIDS_PERMISSIONS.WORKFLOW_EXECUTE,
|
|
12520
12638
|
deniedTooltip: tr("fluidgrids.builder.executeWorkflowButton.permissionDeniedTooltip", "You don't have permission to execute workflows"),
|
|
@@ -12613,7 +12731,7 @@ const ActivateWorkflowButton = ({ className }) => {
|
|
|
12613
12731
|
setIsProcessing(false);
|
|
12614
12732
|
}
|
|
12615
12733
|
};
|
|
12616
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(MissingParametersDialog, {
|
|
12734
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(MissingParametersDialog, {
|
|
12617
12735
|
issues,
|
|
12618
12736
|
onClose: () => setIssues([]),
|
|
12619
12737
|
title: tr("fluidgrids.builder.requiredParameters.activateBlockedTitle", "Fill in the required parameters before activating")
|
|
@@ -12964,7 +13082,7 @@ function showDrainage(drainage, isActive) {
|
|
|
12964
13082
|
function VersionParityBadges({ versioning, drainage, isActive }) {
|
|
12965
13083
|
const tr = useTr();
|
|
12966
13084
|
const check = visibleActivationCheck(versioning);
|
|
12967
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
13085
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
12968
13086
|
versioning?.versioningBehavior === "AUTO_UPGRADE" && /* @__PURE__ */ jsx(Badge, {
|
|
12969
13087
|
variant: "outline",
|
|
12970
13088
|
className: "h-5 px-1.5 py-0 text-[10px]",
|
|
@@ -15874,7 +15992,7 @@ function WorkflowTestsSheet({ className, compact = false }) {
|
|
|
15874
15992
|
className: "space-y-2",
|
|
15875
15993
|
children: cases.map((testCase) => /* @__PURE__ */ jsx(WorkflowTestCaseRow, {
|
|
15876
15994
|
testCase,
|
|
15877
|
-
actions: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15995
|
+
actions: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
15878
15996
|
/* @__PURE__ */ jsx(SdkPermissionButton, {
|
|
15879
15997
|
permission: FLUIDGRIDS_PERMISSIONS.WORKFLOW_RUN_EXECUTE,
|
|
15880
15998
|
deniedTooltip: deniedRun,
|
|
@@ -16249,7 +16367,7 @@ function AiDraftPanel({ className, compact = false }) {
|
|
|
16249
16367
|
proposal.reset();
|
|
16250
16368
|
}, [proposal]);
|
|
16251
16369
|
const finished = status !== void 0 && status !== "PROCESSING" && status !== "PROPOSED";
|
|
16252
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(Sheet, {
|
|
16370
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(Sheet, {
|
|
16253
16371
|
open,
|
|
16254
16372
|
onOpenChange: setOpen,
|
|
16255
16373
|
children: [/* @__PURE__ */ jsx(SheetTrigger, {
|
|
@@ -16495,7 +16613,7 @@ function FidelityReportList({ fidelity, source, hasNode, onShowNode }) {
|
|
|
16495
16613
|
* Behind the `fluidgrids.code-first` flag (default off); with the flag off
|
|
16496
16614
|
* the panel renders nothing and the header is exactly as before.
|
|
16497
16615
|
*/
|
|
16498
|
-
const LazyCodeEditorField = lazy(() => import("./code-editor-field-
|
|
16616
|
+
const LazyCodeEditorField = lazy(() => import("./code-editor-field-yJZEDJBi.js").then((n) => n.n).then((m) => ({ default: m.CodeEditorField })));
|
|
16499
16617
|
/** Read-only lifted-code editor with a sized placeholder while its chunk loads. */
|
|
16500
16618
|
function CodeViewEditor({ content, path, label }) {
|
|
16501
16619
|
return /* @__PURE__ */ jsx(Suspense, {
|
|
@@ -16708,7 +16826,7 @@ function CodeViewSheet({ className, compact }) {
|
|
|
16708
16826
|
onClick: () => void refetch(),
|
|
16709
16827
|
children: tr("fluidgrids.builder.codeView.retry", "Retry")
|
|
16710
16828
|
})]
|
|
16711
|
-
}) : data && shown ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
16829
|
+
}) : data && shown ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
16712
16830
|
files.length > 1 && /* @__PURE__ */ jsx("div", {
|
|
16713
16831
|
className: "flex flex-wrap gap-1",
|
|
16714
16832
|
role: "group",
|
|
@@ -17094,7 +17212,7 @@ function HeaderIdentity({ tier }) {
|
|
|
17094
17212
|
const [workflowAlias, setWorkflowAlias] = useState(alias || "");
|
|
17095
17213
|
useEffect(() => setWorkflowName(name), [name]);
|
|
17096
17214
|
useEffect(() => setWorkflowAlias(alias || ""), [alias]);
|
|
17097
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17215
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
17098
17216
|
/* @__PURE__ */ jsx(Button, {
|
|
17099
17217
|
variant: "ghost",
|
|
17100
17218
|
size: "icon",
|
|
@@ -17205,7 +17323,7 @@ const Divider = () => /* @__PURE__ */ jsx("span", {
|
|
|
17205
17323
|
* `fluidgrids.code-first`.
|
|
17206
17324
|
*/
|
|
17207
17325
|
function PanelIcons() {
|
|
17208
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17326
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
17209
17327
|
/* @__PURE__ */ jsx(AiDraftPanel, { compact: true }),
|
|
17210
17328
|
/* @__PURE__ */ jsx(EnvironmentsPanel, { compact: true }),
|
|
17211
17329
|
/* @__PURE__ */ jsx(GitSyncPanel, { compact: true }),
|
|
@@ -17226,7 +17344,7 @@ function HeaderActions({ tier }) {
|
|
|
17226
17344
|
onViewRuns: handleViewRuns,
|
|
17227
17345
|
canViewRuns: !!id
|
|
17228
17346
|
});
|
|
17229
|
-
if (tier === "full") return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17347
|
+
if (tier === "full") return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
17230
17348
|
/* @__PURE__ */ jsx(RunsUsageMeter, {
|
|
17231
17349
|
variant: "pill",
|
|
17232
17350
|
className: "mr-1"
|
|
@@ -17245,7 +17363,7 @@ function HeaderActions({ tier }) {
|
|
|
17245
17363
|
/* @__PURE__ */ jsx(ActivateWorkflowButton, {}),
|
|
17246
17364
|
run
|
|
17247
17365
|
] });
|
|
17248
|
-
if (tier === "mid") return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17366
|
+
if (tier === "mid") return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
17249
17367
|
/* @__PURE__ */ jsx(PanelIcons, {}),
|
|
17250
17368
|
/* @__PURE__ */ jsx(FullscreenButton, {}),
|
|
17251
17369
|
/* @__PURE__ */ jsx(Divider, {}),
|
|
@@ -17254,7 +17372,7 @@ function HeaderActions({ tier }) {
|
|
|
17254
17372
|
run,
|
|
17255
17373
|
/* @__PURE__ */ jsx(ActionsMenu, {})
|
|
17256
17374
|
] });
|
|
17257
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17375
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
17258
17376
|
/* @__PURE__ */ jsx(PanelIcons, {}),
|
|
17259
17377
|
/* @__PURE__ */ jsx(FullscreenButton, {}),
|
|
17260
17378
|
/* @__PURE__ */ jsxs(ActionsMenu, { children: [
|
|
@@ -17618,7 +17736,7 @@ const FlowBuilder = ({ readOnly = false }) => {
|
|
|
17618
17736
|
paletteGatesRef.current = paletteGates;
|
|
17619
17737
|
}, [paletteGates]);
|
|
17620
17738
|
useWarmBuilderOverlays();
|
|
17621
|
-
useLazyAgentTools(() => import("./agentTools-
|
|
17739
|
+
useLazyAgentTools(() => import("./agentTools-DlPHMfhA.js").then(({ createBuilderAgentTools }) => createBuilderAgentTools({ durableFunctionsEnabled: () => paletteGatesRef.current })), !editingBlocked, "Agent tools");
|
|
17622
17740
|
const [nodes, edges, onNodesChange, onEdgesChange, onConnect] = useFlowStore(useShallow((s) => {
|
|
17623
17741
|
return [
|
|
17624
17742
|
s.workflow.nodes,
|
|
@@ -17660,7 +17778,7 @@ const FlowBuilder = ({ readOnly = false }) => {
|
|
|
17660
17778
|
useEffect(() => {
|
|
17661
17779
|
fitViewRef.current = fitView;
|
|
17662
17780
|
}, [fitView]);
|
|
17663
|
-
useLazyAgentTools(() => import("./canvasNoteTools-
|
|
17781
|
+
useLazyAgentTools(() => import("./canvasNoteTools-CkAsMSvt.js").then(({ createCanvasNoteTools }) => createCanvasNoteTools({ focusNode: (nodeId) => fitViewRef.current({
|
|
17664
17782
|
nodes: [{ id: nodeId }],
|
|
17665
17783
|
duration: 400,
|
|
17666
17784
|
padding: .6,
|
|
@@ -12023,6 +12023,15 @@ const ExecutionsListDocument = {
|
|
|
12023
12023
|
"arguments": [],
|
|
12024
12024
|
"directives": []
|
|
12025
12025
|
},
|
|
12026
|
+
{
|
|
12027
|
+
"kind": "Field",
|
|
12028
|
+
"name": {
|
|
12029
|
+
"kind": "Name",
|
|
12030
|
+
"value": "mode"
|
|
12031
|
+
},
|
|
12032
|
+
"arguments": [],
|
|
12033
|
+
"directives": []
|
|
12034
|
+
},
|
|
12026
12035
|
{
|
|
12027
12036
|
"kind": "Field",
|
|
12028
12037
|
"name": {
|
|
@@ -12227,7 +12236,7 @@ const ExecutionsListDocument = {
|
|
|
12227
12236
|
}],
|
|
12228
12237
|
"loc": {
|
|
12229
12238
|
"start": 0,
|
|
12230
|
-
"end":
|
|
12239
|
+
"end": 589
|
|
12231
12240
|
}
|
|
12232
12241
|
};
|
|
12233
12242
|
const FileDownloadUrlDocument = {
|
package/dist/history.js
CHANGED