@burdenoff/fluidgrids-fe-sdk 2026.706.2 → 2026.706.3

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.
@@ -1,4 +1,4 @@
1
- export { WorkflowBuilder } from './chunk-NSK663QW.js';
1
+ export { WorkflowBuilder } from './chunk-J3QYVOIS.js';
2
2
  import './chunk-7VEOUEIN.js';
3
3
  import './chunk-BQXHJIER.js';
4
4
  import './chunk-LUGJJ7LL.js';
@@ -9,5 +9,5 @@ import './chunk-5BDQNSP3.js';
9
9
  import './chunk-WWU2O2SR.js';
10
10
  import './chunk-XQP33UJR.js';
11
11
  import './chunk-Z54K22LP.js';
12
- //# sourceMappingURL=WorkflowBuilder-2QAGGCA3.js.map
13
- //# sourceMappingURL=WorkflowBuilder-2QAGGCA3.js.map
12
+ //# sourceMappingURL=WorkflowBuilder-6I7NDTCJ.js.map
13
+ //# sourceMappingURL=WorkflowBuilder-6I7NDTCJ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"WorkflowBuilder-2QAGGCA3.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"WorkflowBuilder-6I7NDTCJ.js"}
@@ -11806,6 +11806,23 @@ gql$1`
11806
11806
  }
11807
11807
  `;
11808
11808
 
11809
+ // src/builder/components/flow-builder/components/store/store-node-availability.ts
11810
+ function getStoreNodeType(node, isInstalled) {
11811
+ const manifestNodeType = node.manifest?.nodeType;
11812
+ return manifestNodeType ?? (isInstalled ? `store/${node.slug}` : void 0);
11813
+ }
11814
+ function getStoreNodeAvailability(node, isInstalled) {
11815
+ const nodeType = getStoreNodeType(node, isInstalled);
11816
+ const isInternalBuiltin = !!nodeType && nodeType.startsWith("internal:");
11817
+ const isRegistryBacked = !!nodeType && AVAILABLE_NODES.some((availableNode) => availableNode.type === nodeType);
11818
+ const isPrebuilt = !isInstalled && (isInternalBuiltin || isRegistryBacked);
11819
+ return {
11820
+ nodeType,
11821
+ isPrebuilt,
11822
+ isDraggable: !!nodeType && (isInstalled || isPrebuilt)
11823
+ };
11824
+ }
11825
+
11809
11826
  // src/builder/contants/symbols.ts
11810
11827
  var NODE_TYPE_DRAG_DATA_FORMAT = "application/flow-builder.node-type";
11811
11828
  var NODE_OPERATION_DRAG_DATA_FORMAT = "application/flow-builder.node-operation";
@@ -11814,6 +11831,7 @@ function StoreNodeListItem({
11814
11831
  description,
11815
11832
  icon,
11816
11833
  isInstalled,
11834
+ isPrebuilt,
11817
11835
  hasUpdate,
11818
11836
  nodeType,
11819
11837
  isDraggable,
@@ -11871,6 +11889,26 @@ function StoreNodeListItem({
11871
11889
  "Installed"
11872
11890
  ]
11873
11891
  }
11892
+ ),
11893
+ isPrebuilt && !isInstalled && !hasUpdate && /* @__PURE__ */ jsxs(
11894
+ "span",
11895
+ {
11896
+ className: "shrink-0 inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[10px] font-semibold",
11897
+ style: {
11898
+ background: "var(--color-status-info-bgSubtle)",
11899
+ color: "var(--color-status-info-text)"
11900
+ },
11901
+ children: [
11902
+ /* @__PURE__ */ jsx(
11903
+ "span",
11904
+ {
11905
+ className: "size-1.5 rounded-full inline-block",
11906
+ style: { background: "var(--color-status-info-bg)" }
11907
+ }
11908
+ ),
11909
+ "Prebuilt"
11910
+ ]
11911
+ }
11874
11912
  )
11875
11913
  ] }),
11876
11914
  description && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground truncate mt-0.5 leading-snug", children: description })
@@ -11956,9 +11994,7 @@ function StoreCategoryList({
11956
11994
  const installation = installationsMap.get(node.id);
11957
11995
  const isInstalled = installedAppIds.has(node.id);
11958
11996
  const hasUpdate = isInstalled && !!installation?.installedVersion && !!node.manifestVersion && installation.installedVersion !== node.manifestVersion;
11959
- const manifestNodeType = node.manifest?.nodeType;
11960
- const nodeType = manifestNodeType ?? (isInstalled ? `store/${node.slug}` : void 0);
11961
- const isDraggable = !!nodeType && (isInstalled || AVAILABLE_NODES.some((n) => n.type === nodeType));
11997
+ const { nodeType, isPrebuilt, isDraggable } = getStoreNodeAvailability(node, isInstalled);
11962
11998
  return /* @__PURE__ */ jsx(
11963
11999
  StoreNodeListItem,
11964
12000
  {
@@ -11966,6 +12002,7 @@ function StoreCategoryList({
11966
12002
  description: node.description,
11967
12003
  icon: node.icon,
11968
12004
  isInstalled,
12005
+ isPrebuilt,
11969
12006
  hasUpdate,
11970
12007
  nodeType,
11971
12008
  isDraggable,
@@ -12089,9 +12126,7 @@ function StoreCategoryNodes({
12089
12126
  const installation = installationsMap.get(node.id);
12090
12127
  const isInstalled = installedAppIds.has(node.id);
12091
12128
  const hasUpdate = isInstalled && !!installation?.installedVersion && !!node.manifestVersion && installation.installedVersion !== node.manifestVersion;
12092
- const manifestNodeType = node.manifest?.nodeType;
12093
- const nodeType = manifestNodeType ?? (isInstalled ? `store/${node.slug}` : void 0);
12094
- const isDraggable = !!nodeType && (isInstalled || AVAILABLE_NODES.some((n) => n.type === nodeType));
12129
+ const { nodeType, isPrebuilt, isDraggable } = getStoreNodeAvailability(node, isInstalled);
12095
12130
  return /* @__PURE__ */ jsx(
12096
12131
  StoreNodeListItem,
12097
12132
  {
@@ -12099,6 +12134,7 @@ function StoreCategoryNodes({
12099
12134
  description: node.description,
12100
12135
  icon: node.icon,
12101
12136
  isInstalled,
12137
+ isPrebuilt,
12102
12138
  hasUpdate,
12103
12139
  nodeType,
12104
12140
  isDraggable,
@@ -12326,8 +12362,7 @@ function StoreNodeDetail({ node, onBack }) {
12326
12362
  const context = useContext(FluidGridsContext);
12327
12363
  const workspaceId = context?.workspaceId ?? getFluidGridsConfig().workspaceId;
12328
12364
  const isInstalled = installedAppIds.has(node.id);
12329
- const manifestNodeType = node.manifest?.nodeType;
12330
- const nodeType = manifestNodeType ?? (isInstalled ? `store/${node.slug}` : void 0);
12365
+ const { nodeType, isPrebuilt } = getStoreNodeAvailability(node, isInstalled);
12331
12366
  const installation = installationsMap.get(node.id);
12332
12367
  const installedVersion = installation?.installedVersion;
12333
12368
  const installationId = installation?.installationId;
@@ -12335,7 +12370,7 @@ function StoreNodeDetail({ node, onBack }) {
12335
12370
  const hasUpdate = isInstalled && !!installedVersion && !!latestVersion && installedVersion !== latestVersion;
12336
12371
  const isFree = node.pricingModel === "FREE";
12337
12372
  const isPurchased = node.isPurchased === true;
12338
- const canInstall = isFree || isPurchased;
12373
+ const canInstall = !isPrebuilt && (isFree || isPurchased);
12339
12374
  const isInstalling = installing === node.id;
12340
12375
  const isUpdating = updating === node.id;
12341
12376
  const handleInstall = async () => {
@@ -12485,7 +12520,7 @@ function StoreNodeDetail({ node, onBack }) {
12485
12520
  node.publisher?.isVerified && /* @__PURE__ */ jsx(BadgeCheck, { className: "size-3.5 text-primary" })
12486
12521
  ] })
12487
12522
  ] }),
12488
- (isInstalled || hasUpdate || node.featured) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-2 mb-4 flex-wrap", children: [
12523
+ (isInstalled || isPrebuilt || hasUpdate || node.featured) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-2 mb-4 flex-wrap", children: [
12489
12524
  hasUpdate && /* @__PURE__ */ jsxs(
12490
12525
  "span",
12491
12526
  {
@@ -12522,6 +12557,26 @@ function StoreNodeDetail({ node, onBack }) {
12522
12557
  ]
12523
12558
  }
12524
12559
  ),
12560
+ isPrebuilt && /* @__PURE__ */ jsxs(
12561
+ "span",
12562
+ {
12563
+ className: "inline-flex items-center gap-1 px-2 py-1 rounded-full text-xs font-semibold",
12564
+ style: {
12565
+ background: "var(--color-status-info-bgSubtle)",
12566
+ color: "var(--color-status-info-text)"
12567
+ },
12568
+ children: [
12569
+ /* @__PURE__ */ jsx(
12570
+ "span",
12571
+ {
12572
+ className: "size-1.5 rounded-full",
12573
+ style: { background: "var(--color-status-info-bg)" }
12574
+ }
12575
+ ),
12576
+ "Prebuilt"
12577
+ ]
12578
+ }
12579
+ ),
12525
12580
  node.featured && !isInstalled && /* @__PURE__ */ jsx("span", { className: "inline-flex items-center gap-1 px-2 py-1 rounded-full text-xs font-semibold bg-primary/10 text-primary", children: "Featured" })
12526
12581
  ] }),
12527
12582
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-4 text-xs text-muted-foreground mb-4", children: [
@@ -12544,7 +12599,7 @@ function StoreNodeDetail({ node, onBack }) {
12544
12599
  ] })
12545
12600
  ] }),
12546
12601
  node.description && /* @__PURE__ */ jsx("p", { className: "text-sm text-foreground/80 leading-relaxed mb-4", children: node.description }),
12547
- isInstalled && /* @__PURE__ */ jsx("div", { className: "mb-4 -mx-3 rounded-lg border border-border/50", children: /* @__PURE__ */ jsx(StoreNodeOperations, { nodeType }) }),
12602
+ (isInstalled || isPrebuilt) && /* @__PURE__ */ jsx("div", { className: "mb-4 -mx-3 rounded-lg border border-border/50", children: /* @__PURE__ */ jsx(StoreNodeOperations, { nodeType }) }),
12548
12603
  node.publisher && /* @__PURE__ */ jsxs("div", { className: "mb-4 p-2.5 rounded-lg bg-muted/50 flex items-center gap-2", children: [
12549
12604
  /* @__PURE__ */ jsx("div", { className: "size-6 rounded bg-muted flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx("span", { className: "text-xs font-bold text-muted-foreground", children: node.publisher.name.charAt(0) }) }),
12550
12605
  /* @__PURE__ */ jsx("span", { className: "text-xs text-foreground font-medium flex-1 min-w-0 truncate", children: node.publisher.name }),
@@ -12605,6 +12660,16 @@ function StoreNodeDetail({ node, onBack }) {
12605
12660
  "Uninstall"
12606
12661
  ] })
12607
12662
  }
12663
+ ) : isPrebuilt ? /* @__PURE__ */ jsx(
12664
+ "div",
12665
+ {
12666
+ className: "w-full rounded-md px-3 py-2 text-center text-sm font-medium",
12667
+ style: {
12668
+ background: "var(--color-status-info-bgSubtle)",
12669
+ color: "var(--color-status-info-text)"
12670
+ },
12671
+ children: "Prebuilt \u2014 drag operations above onto the canvas"
12672
+ }
12608
12673
  ) : canInstall ? /* @__PURE__ */ jsx(
12609
12674
  Button$1,
12610
12675
  {
@@ -23039,5 +23104,5 @@ function WorkflowBuilder() {
23039
23104
  }
23040
23105
 
23041
23106
  export { Card2 as Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ConfigSchemaForm, ConnectionFormDialog, ConnectionSelector, FlowBuilderPage, FluidGridsProvider, ProviderPicker, TemplateCard, ThemeProvider, WorkflowBuilder, getProviderForm, listCustomBlocks, refetchStoreNodes, registerCustomBlock, resolveUiSpec, stripSubmitActions, useConnection, useConnectionDialog, useConnections, useConnectionsByProvider, useCreateConnection, useFluidGridsContext, useImportWorkflowTemplate, useInitiateOAuth, useNodeExecution, useProviderByKey, useProviderCatalog, useProviders, useWorkflowTemplates };
23042
- //# sourceMappingURL=chunk-NSK663QW.js.map
23043
- //# sourceMappingURL=chunk-NSK663QW.js.map
23107
+ //# sourceMappingURL=chunk-J3QYVOIS.js.map
23108
+ //# sourceMappingURL=chunk-J3QYVOIS.js.map