@burdenoff/fluidgrids-fe-sdk 2026.716.3 → 2026.716.4
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/{WorkflowBuilder-UECTJ6AZ.js → WorkflowBuilder-G3GS7NGX.js} +3 -3
- package/dist/{WorkflowBuilder-UECTJ6AZ.js.map → WorkflowBuilder-G3GS7NGX.js.map} +1 -1
- package/dist/{chunk-QMBL3E7J.js → chunk-L5PYR7BO.js} +191 -67
- package/dist/chunk-L5PYR7BO.js.map +1 -0
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-QMBL3E7J.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { WorkflowBuilder } from './chunk-
|
|
1
|
+
export { WorkflowBuilder } from './chunk-L5PYR7BO.js';
|
|
2
2
|
import './chunk-7VEOUEIN.js';
|
|
3
3
|
import './chunk-Z54K22LP.js';
|
|
4
4
|
import './chunk-OKX63SYW.js';
|
|
@@ -10,5 +10,5 @@ import './chunk-NAC4WYE5.js';
|
|
|
10
10
|
import './chunk-5BDQNSP3.js';
|
|
11
11
|
import './chunk-WWU2O2SR.js';
|
|
12
12
|
import './chunk-XQP33UJR.js';
|
|
13
|
-
//# sourceMappingURL=WorkflowBuilder-
|
|
14
|
-
//# sourceMappingURL=WorkflowBuilder-
|
|
13
|
+
//# sourceMappingURL=WorkflowBuilder-G3GS7NGX.js.map
|
|
14
|
+
//# sourceMappingURL=WorkflowBuilder-G3GS7NGX.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"WorkflowBuilder-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"WorkflowBuilder-G3GS7NGX.js"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription
|
|
1
|
+
import { Dialog as Dialog$1, DialogContent as DialogContent$1, DialogHeader as DialogHeader$1, DialogTitle as DialogTitle$1, DialogDescription as DialogDescription$1, Input as Input$1, DialogFooter } from './chunk-7VEOUEIN.js';
|
|
2
2
|
import { cn, Badge as Badge$1, Button } from './chunk-Z54K22LP.js';
|
|
3
3
|
import { refetchStoreNodes, registerWorkflowNodeTypes, ensureNodeConfigsLoaded, onNodeTypesUpdate, NODE_TYPES, getNodeMetadata, AVAILABLE_NODES, useSaveWorkflow, useNodeExecution, getNodeDetail, ConnectionSelector, createNodeWithDefaultData, NODE_CONFIGS, NODES_METADATA, isNodeConfigsInitialized, NODES, NodePropertyPanel } from './chunk-OKX63SYW.js';
|
|
4
4
|
import { createGlobalStoreClient, setGlobalStoreClient, resetGlobalStoreClient, getGlobalStoreClient } from './chunk-BQXHJIER.js';
|
|
@@ -18,7 +18,7 @@ import { produce } from 'immer';
|
|
|
18
18
|
import { cn as cn$1 } from '@burdenoff/fe-libs/utils';
|
|
19
19
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
20
20
|
import { Icon } from '@iconify/react';
|
|
21
|
-
import { Card as Card$1, Badge, CardContent as CardContent$1, Button as Button$1, Input, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, Sheet, SheetTrigger, SheetContent, SheetHeader, SheetTitle, DropdownMenuItem, Dialog
|
|
21
|
+
import { Card as Card$1, Badge, CardContent as CardContent$1, Button as Button$1, Input, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, Sheet, SheetTrigger, SheetContent, SheetHeader, SheetTitle, DropdownMenuItem, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, Popover, PopoverTrigger, PopoverContent, Toaster, Tabs, TabsList, TabsTrigger, TabsContent, CardHeader as CardHeader$1, CardTitle as CardTitle$1, CardDescription as CardDescription$1, ScrollArea, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, Label, DropdownMenuLabel, DropdownMenuSeparator, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, Textarea } from '@burdenoff/fe-libs/ui';
|
|
22
22
|
import { isEmpty } from 'radash';
|
|
23
23
|
import { gql } from '@apollo/client';
|
|
24
24
|
import { ApolloProvider, useQuery, useMutation } from '@apollo/client/react';
|
|
@@ -3498,18 +3498,18 @@ function TemplatesModal({
|
|
|
3498
3498
|
const handleCloseDetailPanel = () => {
|
|
3499
3499
|
setSelectedTemplate(null);
|
|
3500
3500
|
};
|
|
3501
|
-
return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs(
|
|
3502
|
-
DialogContent,
|
|
3501
|
+
return /* @__PURE__ */ jsx(Dialog$1, { open, onOpenChange, children: /* @__PURE__ */ jsxs(
|
|
3502
|
+
DialogContent$1,
|
|
3503
3503
|
{
|
|
3504
3504
|
size: "xl",
|
|
3505
3505
|
className: "!flex !flex-col !h-[75vh] !max-h-[75vh] min-h-[500px] p-0 gap-0 overflow-hidden",
|
|
3506
3506
|
children: [
|
|
3507
|
-
/* @__PURE__ */ jsxs(DialogHeader, { className: "px-6 pt-6 pb-4 border-b shrink-0", children: [
|
|
3507
|
+
/* @__PURE__ */ jsxs(DialogHeader$1, { className: "px-6 pt-6 pb-4 border-b shrink-0", children: [
|
|
3508
3508
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
3509
3509
|
/* @__PURE__ */ jsx(Sparkles, { className: "size-5 text-primary" }),
|
|
3510
|
-
/* @__PURE__ */ jsx(DialogTitle, { className: "text-2xl", children: "Workflow Templates" })
|
|
3510
|
+
/* @__PURE__ */ jsx(DialogTitle$1, { className: "text-2xl", children: "Workflow Templates" })
|
|
3511
3511
|
] }),
|
|
3512
|
-
/* @__PURE__ */ jsx(DialogDescription, { children: "Browse and use pre-built workflow templates to get started quickly" }),
|
|
3512
|
+
/* @__PURE__ */ jsx(DialogDescription$1, { children: "Browse and use pre-built workflow templates to get started quickly" }),
|
|
3513
3513
|
/* @__PURE__ */ jsx("div", { className: "pt-4", children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
3514
3514
|
/* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-muted-foreground" }),
|
|
3515
3515
|
/* @__PURE__ */ jsx(
|
|
@@ -10899,9 +10899,9 @@ function TriggerDataDialog({
|
|
|
10899
10899
|
setSubmitted(true);
|
|
10900
10900
|
onExecute({});
|
|
10901
10901
|
}, [onExecute]);
|
|
10902
|
-
return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs(DialogContent, { className: "sm:max-w-lg", children: [
|
|
10903
|
-
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
10904
|
-
/* @__PURE__ */ jsxs(DialogTitle, { className: "flex items-center gap-2", children: [
|
|
10902
|
+
return /* @__PURE__ */ jsx(Dialog$1, { open, onOpenChange, children: /* @__PURE__ */ jsxs(DialogContent$1, { className: "sm:max-w-lg", children: [
|
|
10903
|
+
/* @__PURE__ */ jsxs(DialogHeader$1, { children: [
|
|
10904
|
+
/* @__PURE__ */ jsxs(DialogTitle$1, { className: "flex items-center gap-2", children: [
|
|
10905
10905
|
/* @__PURE__ */ jsx(
|
|
10906
10906
|
Icon,
|
|
10907
10907
|
{
|
|
@@ -10911,7 +10911,7 @@ function TriggerDataDialog({
|
|
|
10911
10911
|
),
|
|
10912
10912
|
"Execute Workflow"
|
|
10913
10913
|
] }),
|
|
10914
|
-
/* @__PURE__ */ jsx(DialogDescription, { children: "Provide the trigger data (JSON) that will be passed to the first node in the workflow. This is the input your workflow will process." })
|
|
10914
|
+
/* @__PURE__ */ jsx(DialogDescription$1, { children: "Provide the trigger data (JSON) that will be passed to the first node in the workflow. This is the input your workflow will process." })
|
|
10915
10915
|
] }),
|
|
10916
10916
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
10917
10917
|
/* @__PURE__ */ jsx(
|
|
@@ -12546,8 +12546,8 @@ function NodeDetailView() {
|
|
|
12546
12546
|
closeNdv();
|
|
12547
12547
|
};
|
|
12548
12548
|
const headerIcon = getNodeDetail(node?.type).icon;
|
|
12549
|
-
return /* @__PURE__ */ jsx(Dialog
|
|
12550
|
-
DialogContent
|
|
12549
|
+
return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange: (o) => !o && closeNdv(), children: /* @__PURE__ */ jsxs(
|
|
12550
|
+
DialogContent,
|
|
12551
12551
|
{
|
|
12552
12552
|
style: {
|
|
12553
12553
|
width: "94vw",
|
|
@@ -12560,11 +12560,11 @@ function NodeDetailView() {
|
|
|
12560
12560
|
className: "flex flex-col gap-0 overflow-hidden border-border bg-background p-0",
|
|
12561
12561
|
"data-testid": "ndv-modal",
|
|
12562
12562
|
children: [
|
|
12563
|
-
/* @__PURE__ */ jsxs(DialogHeader
|
|
12563
|
+
/* @__PURE__ */ jsxs(DialogHeader, { className: "flex shrink-0 flex-row items-center gap-3 space-y-0 border-b border-border px-4 py-3", children: [
|
|
12564
12564
|
/* @__PURE__ */ jsx("div", { className: "flex size-7 shrink-0 items-center justify-center rounded-md bg-muted", children: /* @__PURE__ */ jsx(Icon, { icon: headerIcon, className: "size-4 text-foreground" }) }),
|
|
12565
12565
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
12566
|
-
/* @__PURE__ */ jsx(DialogTitle
|
|
12567
|
-
nodeSubtitle(node) && /* @__PURE__ */ jsx(DialogDescription
|
|
12566
|
+
/* @__PURE__ */ jsx(DialogTitle, { className: "truncate text-sm font-semibold leading-tight", children: nodeTitle(node) }),
|
|
12567
|
+
nodeSubtitle(node) && /* @__PURE__ */ jsx(DialogDescription, { className: "truncate text-xs leading-tight", children: nodeSubtitle(node) })
|
|
12568
12568
|
] }),
|
|
12569
12569
|
/* @__PURE__ */ jsx(
|
|
12570
12570
|
"button",
|
|
@@ -13561,6 +13561,9 @@ var FlowBuilderPage = ({
|
|
|
13561
13561
|
] }) })
|
|
13562
13562
|
] });
|
|
13563
13563
|
};
|
|
13564
|
+
var LazyTemplateConfigurationModal2 = lazy(
|
|
13565
|
+
() => import('./TemplateConfigurationModal-ZMCT3ZCH.js').then((m) => ({ default: m.TemplateConfigurationModal }))
|
|
13566
|
+
);
|
|
13564
13567
|
function WorkflowItem({
|
|
13565
13568
|
readonly = false
|
|
13566
13569
|
}) {
|
|
@@ -13579,8 +13582,79 @@ function WorkflowItem({
|
|
|
13579
13582
|
const creatingRef = useRef(false);
|
|
13580
13583
|
const fromSharedLoadedRef = useRef(false);
|
|
13581
13584
|
const fetchedWorkflowRef = useRef(null);
|
|
13585
|
+
const { installedAppIds } = useInstalledNodes();
|
|
13582
13586
|
const [pendingSharedWorkflow, setPendingSharedWorkflow] = useState(null);
|
|
13583
|
-
const [
|
|
13587
|
+
const [sharedNodeCheck, setSharedNodeCheck] = useState(null);
|
|
13588
|
+
const [configModalOpen, setConfigModalOpen] = useState(false);
|
|
13589
|
+
const [installing, setInstalling] = useState(false);
|
|
13590
|
+
const [installProgress, setInstallProgress] = useState(null);
|
|
13591
|
+
const buildNodeCheck = useCallback(
|
|
13592
|
+
(requiredNodeTypes) => {
|
|
13593
|
+
const installed = requiredNodeTypes.filter(
|
|
13594
|
+
(n) => n.publishType === "BUILTIN" || n.storeProductId && installedAppIds.has(n.storeProductId)
|
|
13595
|
+
);
|
|
13596
|
+
const notInstalled = requiredNodeTypes.filter(
|
|
13597
|
+
(n) => n.publishType !== "BUILTIN" && (!n.storeProductId || !installedAppIds.has(n.storeProductId))
|
|
13598
|
+
);
|
|
13599
|
+
const missing = notInstalled.filter((n) => !n.requiresPurchase);
|
|
13600
|
+
const missingPaid = notInstalled.filter((n) => !!n.requiresPurchase);
|
|
13601
|
+
return {
|
|
13602
|
+
installed,
|
|
13603
|
+
missing,
|
|
13604
|
+
missingPaid,
|
|
13605
|
+
canImport: missingPaid.length === 0
|
|
13606
|
+
};
|
|
13607
|
+
},
|
|
13608
|
+
[installedAppIds]
|
|
13609
|
+
);
|
|
13610
|
+
const handleSharedConfirm = useCallback(async () => {
|
|
13611
|
+
if (!pendingSharedWorkflow) return;
|
|
13612
|
+
const nodesToInstall = (sharedNodeCheck?.missing ?? []).filter(
|
|
13613
|
+
(n) => !!n.storeProductId
|
|
13614
|
+
);
|
|
13615
|
+
if (nodesToInstall.length > 0) {
|
|
13616
|
+
setInstalling(true);
|
|
13617
|
+
try {
|
|
13618
|
+
const { getGlobalStoreClient: getGlobalStoreClient2 } = await import('./global-client-OW43ZRDR.js');
|
|
13619
|
+
const { InstallWorkflowNodeDocument: InstallWorkflowNodeDocument2 } = await import('./global-operations-5FLHXHG3.js');
|
|
13620
|
+
const { getFluidGridsConfig: getFluidGridsConfig2 } = await import('./config-E4E7M6IN.js');
|
|
13621
|
+
const storeClient = getGlobalStoreClient2();
|
|
13622
|
+
const cfg = getFluidGridsConfig2();
|
|
13623
|
+
for (let i = 0; i < nodesToInstall.length; i++) {
|
|
13624
|
+
const node = nodesToInstall[i];
|
|
13625
|
+
setInstallProgress({
|
|
13626
|
+
current: i + 1,
|
|
13627
|
+
total: nodesToInstall.length,
|
|
13628
|
+
nodeName: node.displayName || node.nodeType
|
|
13629
|
+
});
|
|
13630
|
+
try {
|
|
13631
|
+
if (storeClient) {
|
|
13632
|
+
await storeClient.mutate({
|
|
13633
|
+
mutation: InstallWorkflowNodeDocument2,
|
|
13634
|
+
variables: {
|
|
13635
|
+
input: {
|
|
13636
|
+
productId: node.storeProductId,
|
|
13637
|
+
workspaceId: cfg.workspaceId,
|
|
13638
|
+
organizationId: cfg.tenantId,
|
|
13639
|
+
version: node.nodeVersion,
|
|
13640
|
+
manifest: null
|
|
13641
|
+
}
|
|
13642
|
+
}
|
|
13643
|
+
});
|
|
13644
|
+
}
|
|
13645
|
+
} catch {
|
|
13646
|
+
}
|
|
13647
|
+
}
|
|
13648
|
+
} finally {
|
|
13649
|
+
setInstalling(false);
|
|
13650
|
+
setInstallProgress(null);
|
|
13651
|
+
}
|
|
13652
|
+
}
|
|
13653
|
+
setConfigModalOpen(false);
|
|
13654
|
+
setWorkflow(pendingSharedWorkflow);
|
|
13655
|
+
setPendingSharedWorkflow(null);
|
|
13656
|
+
setSharedNodeCheck(null);
|
|
13657
|
+
}, [pendingSharedWorkflow, sharedNodeCheck]);
|
|
13584
13658
|
const newWorkflow = useMemo(
|
|
13585
13659
|
() => ({
|
|
13586
13660
|
id: id ?? "",
|
|
@@ -13621,30 +13695,86 @@ function WorkflowItem({
|
|
|
13621
13695
|
nodes: manifest.nodes ?? [],
|
|
13622
13696
|
edges: manifest.edges ?? []
|
|
13623
13697
|
};
|
|
13624
|
-
|
|
13698
|
+
const requiredNodeTypes = [];
|
|
13625
13699
|
try {
|
|
13626
13700
|
const { NODE_CONFIGS: NODE_CONFIGS3, ensureNodeConfigsLoaded: ensureNodeConfigsLoaded2 } = await import('./blocks-S5FDFFAW.js');
|
|
13627
13701
|
await ensureNodeConfigsLoaded2().catch(() => {
|
|
13628
13702
|
});
|
|
13629
|
-
const
|
|
13703
|
+
const workflowNodeTypes = [
|
|
13630
13704
|
...new Set(
|
|
13631
13705
|
sharedWorkflow.nodes.map((n) => n.type).filter((t) => Boolean(t))
|
|
13632
13706
|
)
|
|
13633
13707
|
];
|
|
13634
|
-
|
|
13708
|
+
const missingTypes = workflowNodeTypes.filter(
|
|
13635
13709
|
(type) => !NODE_CONFIGS3.some((c) => c.type === type)
|
|
13636
13710
|
);
|
|
13711
|
+
if (missingTypes.length > 0) {
|
|
13712
|
+
const { getGlobalStoreClient: getGlobalStoreClient2 } = await import('./global-client-OW43ZRDR.js');
|
|
13713
|
+
const { BrowseWorkflowNodesDocument: BrowseWorkflowNodesDocument2 } = await import('./global-operations-5FLHXHG3.js');
|
|
13714
|
+
const storeClient = getGlobalStoreClient2();
|
|
13715
|
+
if (storeClient) {
|
|
13716
|
+
const storeResult = await storeClient.query({
|
|
13717
|
+
query: BrowseWorkflowNodesDocument2,
|
|
13718
|
+
variables: {
|
|
13719
|
+
input: {
|
|
13720
|
+
filter: {
|
|
13721
|
+
type: "NODE",
|
|
13722
|
+
compatibleWith: "fluidgrids"
|
|
13723
|
+
},
|
|
13724
|
+
sortBy: "DOWNLOADS",
|
|
13725
|
+
pagination: { limit: 200, offset: 0 }
|
|
13726
|
+
}
|
|
13727
|
+
},
|
|
13728
|
+
fetchPolicy: "cache-first"
|
|
13729
|
+
});
|
|
13730
|
+
const storeNodes = storeResult.data?.browseStore?.products ?? [];
|
|
13731
|
+
const nodeTypeToProduct = /* @__PURE__ */ new Map();
|
|
13732
|
+
for (const product of storeNodes) {
|
|
13733
|
+
const mNodeType = product.manifest?.nodeType;
|
|
13734
|
+
if (mNodeType) nodeTypeToProduct.set(mNodeType, product);
|
|
13735
|
+
}
|
|
13736
|
+
for (const type of workflowNodeTypes) {
|
|
13737
|
+
const isInstalled = NODE_CONFIGS3.some(
|
|
13738
|
+
(c) => c.type === type
|
|
13739
|
+
);
|
|
13740
|
+
if (isInstalled) {
|
|
13741
|
+
requiredNodeTypes.push({
|
|
13742
|
+
nodeType: type,
|
|
13743
|
+
nodeVersion: "1.0",
|
|
13744
|
+
publishType: "BUILTIN",
|
|
13745
|
+
displayName: type
|
|
13746
|
+
});
|
|
13747
|
+
} else {
|
|
13748
|
+
const product = nodeTypeToProduct.get(type);
|
|
13749
|
+
requiredNodeTypes.push({
|
|
13750
|
+
nodeType: type,
|
|
13751
|
+
nodeVersion: product?.manifestVersion ?? "1.0",
|
|
13752
|
+
publishType: "STORE",
|
|
13753
|
+
storeProductId: product?.id,
|
|
13754
|
+
displayName: product?.name ?? type,
|
|
13755
|
+
requiresPurchase: product !== void 0 && product.pricingModel !== "FREE"
|
|
13756
|
+
});
|
|
13757
|
+
}
|
|
13758
|
+
}
|
|
13759
|
+
}
|
|
13760
|
+
}
|
|
13637
13761
|
} catch {
|
|
13638
13762
|
}
|
|
13639
13763
|
if (mounted) {
|
|
13640
|
-
if (
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
|
|
13645
|
-
|
|
13646
|
-
|
|
13764
|
+
if (requiredNodeTypes.length > 0) {
|
|
13765
|
+
const nodeCheck = buildNodeCheck(requiredNodeTypes);
|
|
13766
|
+
const needsConfig = nodeCheck.missing.length > 0 || nodeCheck.missingPaid.length > 0;
|
|
13767
|
+
if (needsConfig) {
|
|
13768
|
+
setPendingSharedWorkflow(sharedWorkflow);
|
|
13769
|
+
setSharedNodeCheck(nodeCheck);
|
|
13770
|
+
setConfigModalOpen(true);
|
|
13771
|
+
setIsLoading(false);
|
|
13772
|
+
fromSharedLoadedRef.current = true;
|
|
13773
|
+
return;
|
|
13774
|
+
}
|
|
13647
13775
|
}
|
|
13776
|
+
setWorkflow(sharedWorkflow);
|
|
13777
|
+
setIsLoading(false);
|
|
13648
13778
|
fromSharedLoadedRef.current = true;
|
|
13649
13779
|
}
|
|
13650
13780
|
return;
|
|
@@ -13751,46 +13881,40 @@ function WorkflowItem({
|
|
|
13751
13881
|
return () => {
|
|
13752
13882
|
mounted = false;
|
|
13753
13883
|
};
|
|
13754
|
-
}, [id, version, createWorkflow, getWorkflow, newWorkflow, resetWorkflow]);
|
|
13884
|
+
}, [id, version, createWorkflow, getWorkflow, newWorkflow, resetWorkflow, buildNodeCheck]);
|
|
13755
13885
|
if (isLoading) return /* @__PURE__ */ jsx("div", { children: "Loading..." });
|
|
13756
|
-
|
|
13757
|
-
|
|
13758
|
-
|
|
13759
|
-
|
|
13760
|
-
|
|
13761
|
-
|
|
13762
|
-
|
|
13763
|
-
|
|
13764
|
-
|
|
13765
|
-
|
|
13766
|
-
|
|
13767
|
-
|
|
13768
|
-
|
|
13769
|
-
|
|
13770
|
-
|
|
13771
|
-
|
|
13772
|
-
|
|
13773
|
-
|
|
13774
|
-
|
|
13775
|
-
|
|
13776
|
-
|
|
13777
|
-
] })
|
|
13778
|
-
] }),
|
|
13779
|
-
/* @__PURE__ */ jsx("ul", { className: "my-2 space-y-1", children: missingNodeTypes.map((type) => /* @__PURE__ */ jsxs(
|
|
13780
|
-
"li",
|
|
13781
|
-
{
|
|
13782
|
-
className: "flex items-center gap-2 rounded-md border border-card-foreground/10 bg-muted px-3 py-2 text-sm",
|
|
13783
|
-
children: [
|
|
13784
|
-
/* @__PURE__ */ jsx("span", { className: "size-2 shrink-0 rounded-full bg-[var(--color-status-warning-bg)]" }),
|
|
13785
|
-
/* @__PURE__ */ jsx("code", { className: "font-mono text-xs", children: type })
|
|
13786
|
-
]
|
|
13886
|
+
const sharedModalContent = pendingSharedWorkflow ? {
|
|
13887
|
+
definitionJson: { nodes: [], edges: [] },
|
|
13888
|
+
requiredNodeTypes: sharedNodeCheck ? [
|
|
13889
|
+
...sharedNodeCheck.installed,
|
|
13890
|
+
...sharedNodeCheck.missing,
|
|
13891
|
+
...sharedNodeCheck.missingPaid
|
|
13892
|
+
] : [],
|
|
13893
|
+
defaultWorkflowName: pendingSharedWorkflow.name
|
|
13894
|
+
} : null;
|
|
13895
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
13896
|
+
configModalOpen && pendingSharedWorkflow && /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(
|
|
13897
|
+
LazyTemplateConfigurationModal2,
|
|
13898
|
+
{
|
|
13899
|
+
open: configModalOpen,
|
|
13900
|
+
onOpenChange: (open) => {
|
|
13901
|
+
if (!open && pendingSharedWorkflow) {
|
|
13902
|
+
setConfigModalOpen(false);
|
|
13903
|
+
setWorkflow(pendingSharedWorkflow);
|
|
13904
|
+
setPendingSharedWorkflow(null);
|
|
13905
|
+
setSharedNodeCheck(null);
|
|
13906
|
+
}
|
|
13787
13907
|
},
|
|
13788
|
-
|
|
13789
|
-
|
|
13790
|
-
|
|
13791
|
-
|
|
13792
|
-
|
|
13793
|
-
|
|
13908
|
+
template: null,
|
|
13909
|
+
content: sharedModalContent,
|
|
13910
|
+
nodeCheckResult: sharedNodeCheck,
|
|
13911
|
+
onConfirm: handleSharedConfirm,
|
|
13912
|
+
importing: installing,
|
|
13913
|
+
installProgress
|
|
13914
|
+
}
|
|
13915
|
+
) }),
|
|
13916
|
+
workflow && !isLoading && /* @__PURE__ */ jsx(FlowBuilderPage, { workflow })
|
|
13917
|
+
] });
|
|
13794
13918
|
}
|
|
13795
13919
|
function WorkflowBuilder() {
|
|
13796
13920
|
const navigate = useNavigate();
|
|
@@ -13831,5 +13955,5 @@ function WorkflowBuilder() {
|
|
|
13831
13955
|
}
|
|
13832
13956
|
|
|
13833
13957
|
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, FlowBuilderPage, FluidGridsProvider, TemplateCard, WorkflowBuilder, useFluidGridsContext, useImportWorkflowTemplate, useWorkflowTemplates };
|
|
13834
|
-
//# sourceMappingURL=chunk-
|
|
13835
|
-
//# sourceMappingURL=chunk-
|
|
13958
|
+
//# sourceMappingURL=chunk-L5PYR7BO.js.map
|
|
13959
|
+
//# sourceMappingURL=chunk-L5PYR7BO.js.map
|