@burdenoff/fluidgrids-fe-sdk 2026.706.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-DPD5ILMD.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-QVM6P76K.js.map
13
- //# sourceMappingURL=WorkflowBuilder-QVM6P76K.js.map
12
+ //# sourceMappingURL=WorkflowBuilder-2QAGGCA3.js.map
13
+ //# sourceMappingURL=WorkflowBuilder-2QAGGCA3.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"WorkflowBuilder-QVM6P76K.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"WorkflowBuilder-2QAGGCA3.js"}
@@ -22538,9 +22538,9 @@ var edgeOptions = {
22538
22538
  strokeWidth: 1.5
22539
22539
  }
22540
22540
  };
22541
- var FlowBuilder = () => {
22541
+ var FlowBuilder = ({ readOnly = false }) => {
22542
22542
  const searchParams = new URLSearchParams(window.location.search);
22543
- const isReadOnly = searchParams.get("readonly") === "true";
22543
+ const isReadOnly = readOnly || searchParams.get("readonly") === "true";
22544
22544
  const setWorkflow = useFlowStore((s) => s.actions.setWorkflow);
22545
22545
  const navigate = useNavigate();
22546
22546
  const { id } = useParams();
@@ -22746,17 +22746,20 @@ var FlowBuilder = () => {
22746
22746
  edgeTypes: edgeTypes2,
22747
22747
  edges,
22748
22748
  onEdgesChange,
22749
- onConnect,
22750
- onConnectEnd: handleOnEdgeDropConnectEnd,
22751
- onDrop,
22752
- 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,
22753
22753
  onNodeDragStop: (_, node) => {
22754
22754
  autoAdjustNode(node);
22755
22755
  },
22756
22756
  onNodesDelete,
22757
22757
  isValidConnection,
22758
+ nodesDraggable: !isReadOnly,
22759
+ nodesConnectable: !isReadOnly,
22760
+ elementsSelectable: !isReadOnly,
22758
22761
  multiSelectionKeyCode: null,
22759
- deleteKeyCode,
22762
+ deleteKeyCode: isReadOnly ? null : deleteKeyCode,
22760
22763
  snapGrid: [16, 16],
22761
22764
  snapToGrid: true,
22762
22765
  fitView: true,
@@ -22829,11 +22832,12 @@ function IntegrationReturnHandler() {
22829
22832
  return null;
22830
22833
  }
22831
22834
  var FlowBuilderPage = ({
22832
- workflow
22835
+ workflow,
22836
+ readOnly = false
22833
22837
  }) => {
22834
22838
  const setWorkflow = useFlowStore((s) => s.actions.setWorkflow);
22835
22839
  const searchParams = new URLSearchParams(window.location.search);
22836
- const isReadOnly = searchParams.get("readonly") === "true";
22840
+ const isReadOnly = readOnly || searchParams.get("readonly") === "true";
22837
22841
  const resetWorkflow = useFlowStore((s) => s.actions.resetWorkflow);
22838
22842
  const [isStoreReady, setIsStoreReady] = useState(false);
22839
22843
  const hasHydrated = useRef(false);
@@ -22859,7 +22863,7 @@ var FlowBuilderPage = ({
22859
22863
  return /* @__PURE__ */ jsxs(ReactFlowProvider, { children: [
22860
22864
  /* @__PURE__ */ jsx(IntegrationReturnHandler, {}),
22861
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: [
22862
- /* @__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 }) }),
22863
22867
  !isReadOnly && /* @__PURE__ */ jsx(SidebarModule, {})
22864
22868
  ] }) })
22865
22869
  ] });
@@ -23034,6 +23038,6 @@ function WorkflowBuilder() {
23034
23038
  );
23035
23039
  }
23036
23040
 
23037
- 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 };
23038
- //# sourceMappingURL=chunk-DPD5ILMD.js.map
23039
- //# sourceMappingURL=chunk-DPD5ILMD.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