@burdenoff/fluidgrids-fe-sdk 2026.705.1 → 2026.706.2

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-HNN7T6G6.js';
1
+ export { WorkflowBuilder } from './chunk-NSK663QW.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-FG5PRFZY.js.map
13
- //# sourceMappingURL=WorkflowBuilder-FG5PRFZY.js.map
12
+ //# sourceMappingURL=WorkflowBuilder-2QAGGCA3.js.map
13
+ //# sourceMappingURL=WorkflowBuilder-2QAGGCA3.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"WorkflowBuilder-FG5PRFZY.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"WorkflowBuilder-2QAGGCA3.js"}
@@ -9125,7 +9125,12 @@ var getNodeMetadata = (value) => {
9125
9125
  const nodeStatus = nodeStatuses[id] || "idle";
9126
9126
  const executionStatus = nodeStatus === "success" ? "success" : nodeStatus === "error" ? "error" : nodeStatus === "running" ? "running" : "idle";
9127
9127
  const itemCount = nodeItemCounts[id];
9128
- const isTrigger = (data?.operation_type || "").toLowerCase() === "trigger" || (value?.type || "").toLowerCase().includes("trigger");
9128
+ const nodeKinds = data?.nodeData?.kind;
9129
+ const pinnedOpType = (data?.operation_type || "").toLowerCase();
9130
+ const isTrigger = pinnedOpType === "trigger" || (value?.type || "").toLowerCase().includes("trigger") || // Kind-based detection only when NO operation is pinned: dual-role
9131
+ // nodes (e.g. Gmail: trigger kind + action operations) must follow
9132
+ // their pinned operation's role, not the manifest kind.
9133
+ Array.isArray(nodeKinds) && nodeKinds.includes("trigger") && pinnedOpType === "";
9129
9134
  const appName = (meta.title || nodeType || "Node").split(/\s+/)[0].toUpperCase();
9130
9135
  const operationDisplay = nodeType === "integration/channel" ? (() => {
9131
9136
  const explicitRole = data.args?.state?.role;
@@ -9231,9 +9236,10 @@ var getNodeMetadata = (value) => {
9231
9236
  accentKey: value?.type || meta.title
9232
9237
  }
9233
9238
  ),
9234
- operationDisplay === "execute" && (value?.type || "").startsWith("internal:") ? (
9235
- // Internal single-op nodes: 'execute' is an implementation detail,
9236
- // not a user choice — show only the description.
9239
+ operationDisplay === "execute" && (value?.type || "").startsWith("internal:") || isTrigger ? (
9240
+ // Internal single-op nodes ('execute') and triggers: the operation
9241
+ // name is an implementation detail, not a user choice — show only
9242
+ // the description (n8n-style).
9237
9243
  /* @__PURE__ */ jsx("div", { className: "rounded-b-xl border-t border-border/60 px-3 pb-3 pt-2.5", children: /* @__PURE__ */ jsx("p", { className: "line-clamp-2 text-xs leading-snug text-muted-foreground", children: nodeDescription }) })
9238
9244
  ) : /* @__PURE__ */ jsx(
9239
9245
  NodeCardBody,
@@ -9243,7 +9249,7 @@ var getNodeMetadata = (value) => {
9243
9249
  }
9244
9250
  ),
9245
9251
  handleSpacer > 0 && /* @__PURE__ */ jsx("div", { style: { height: handleSpacer } }),
9246
- /* @__PURE__ */ jsx(
9252
+ !isTrigger && /* @__PURE__ */ jsx(
9247
9253
  InputHandles,
9248
9254
  {
9249
9255
  nodeId: id,
@@ -22532,9 +22538,9 @@ var edgeOptions = {
22532
22538
  strokeWidth: 1.5
22533
22539
  }
22534
22540
  };
22535
- var FlowBuilder = () => {
22541
+ var FlowBuilder = ({ readOnly = false }) => {
22536
22542
  const searchParams = new URLSearchParams(window.location.search);
22537
- const isReadOnly = searchParams.get("readonly") === "true";
22543
+ const isReadOnly = readOnly || searchParams.get("readonly") === "true";
22538
22544
  const setWorkflow = useFlowStore((s) => s.actions.setWorkflow);
22539
22545
  const navigate = useNavigate();
22540
22546
  const { id } = useParams();
@@ -22740,17 +22746,20 @@ var FlowBuilder = () => {
22740
22746
  edgeTypes: edgeTypes2,
22741
22747
  edges,
22742
22748
  onEdgesChange,
22743
- onConnect,
22744
- onConnectEnd: handleOnEdgeDropConnectEnd,
22745
- onDrop,
22746
- onDragOver,
22749
+ onConnect: isReadOnly ? void 0 : onConnect,
22750
+ onConnectEnd: isReadOnly ? void 0 : handleOnEdgeDropConnectEnd,
22751
+ onDrop: isReadOnly ? void 0 : onDrop,
22752
+ onDragOver: isReadOnly ? void 0 : onDragOver,
22747
22753
  onNodeDragStop: (_, node) => {
22748
22754
  autoAdjustNode(node);
22749
22755
  },
22750
22756
  onNodesDelete,
22751
22757
  isValidConnection,
22758
+ nodesDraggable: !isReadOnly,
22759
+ nodesConnectable: !isReadOnly,
22760
+ elementsSelectable: !isReadOnly,
22752
22761
  multiSelectionKeyCode: null,
22753
- deleteKeyCode,
22762
+ deleteKeyCode: isReadOnly ? null : deleteKeyCode,
22754
22763
  snapGrid: [16, 16],
22755
22764
  snapToGrid: true,
22756
22765
  fitView: true,
@@ -22823,11 +22832,12 @@ function IntegrationReturnHandler() {
22823
22832
  return null;
22824
22833
  }
22825
22834
  var FlowBuilderPage = ({
22826
- workflow
22835
+ workflow,
22836
+ readOnly = false
22827
22837
  }) => {
22828
22838
  const setWorkflow = useFlowStore((s) => s.actions.setWorkflow);
22829
22839
  const searchParams = new URLSearchParams(window.location.search);
22830
- const isReadOnly = searchParams.get("readonly") === "true";
22840
+ const isReadOnly = readOnly || searchParams.get("readonly") === "true";
22831
22841
  const resetWorkflow = useFlowStore((s) => s.actions.resetWorkflow);
22832
22842
  const [isStoreReady, setIsStoreReady] = useState(false);
22833
22843
  const hasHydrated = useRef(false);
@@ -22853,7 +22863,7 @@ var FlowBuilderPage = ({
22853
22863
  return /* @__PURE__ */ jsxs(ReactFlowProvider, { children: [
22854
22864
  /* @__PURE__ */ jsx(IntegrationReturnHandler, {}),
22855
22865
  /* @__PURE__ */ jsx("div", { className: "flex flex-col h-full", children: /* @__PURE__ */ jsxs("div", { className: "flex grow min-h-0 divide-x divide-card-foreground/10", children: [
22856
- /* @__PURE__ */ jsx("div", { className: "grow bg-card md:bg-transparent", children: /* @__PURE__ */ jsx(FlowBuilder, {}) }),
22866
+ /* @__PURE__ */ jsx("div", { className: "grow bg-card md:bg-transparent", children: /* @__PURE__ */ jsx(FlowBuilder, { readOnly: isReadOnly }) }),
22857
22867
  !isReadOnly && /* @__PURE__ */ jsx(SidebarModule, {})
22858
22868
  ] }) })
22859
22869
  ] });
@@ -23028,6 +23038,6 @@ function WorkflowBuilder() {
23028
23038
  );
23029
23039
  }
23030
23040
 
23031
- export { Card2 as Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ConfigSchemaForm, ConnectionFormDialog, ConnectionSelector, FluidGridsProvider, ProviderPicker, TemplateCard, WorkflowBuilder, getProviderForm, listCustomBlocks, refetchStoreNodes, registerCustomBlock, resolveUiSpec, stripSubmitActions, useConnection, useConnectionDialog, useConnections, useConnectionsByProvider, useCreateConnection, useFluidGridsContext, useImportWorkflowTemplate, useInitiateOAuth, useNodeExecution, useProviderByKey, useProviderCatalog, useProviders, useWorkflowTemplates };
23032
- //# sourceMappingURL=chunk-HNN7T6G6.js.map
23033
- //# sourceMappingURL=chunk-HNN7T6G6.js.map
23041
+ 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