@burdenoff/fluidgrids-fe-sdk 2026.715.1 → 2026.716.1

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-LRHIL5LS.js';
1
+ export { WorkflowBuilder } from './chunk-DIYJ6B4D.js';
2
2
  import './chunk-7VEOUEIN.js';
3
3
  import './chunk-BQXHJIER.js';
4
4
  import './chunk-UYPB5TWQ.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-IQKOCRDB.js.map
13
- //# sourceMappingURL=WorkflowBuilder-IQKOCRDB.js.map
12
+ //# sourceMappingURL=WorkflowBuilder-KMG2LV4V.js.map
13
+ //# sourceMappingURL=WorkflowBuilder-KMG2LV4V.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"WorkflowBuilder-IQKOCRDB.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"WorkflowBuilder-KMG2LV4V.js"}
@@ -13554,10 +13554,39 @@ function DesktopSidebarFragment({
13554
13554
  toast.error("Failed to load template details");
13555
13555
  return;
13556
13556
  }
13557
- const content = fullTemplate.content;
13557
+ let content = fullTemplate.content;
13558
13558
  if (!content?.definitionJson) {
13559
- toast.error("Template does not contain valid workflow data");
13560
- return;
13559
+ const m = fullTemplate.manifest;
13560
+ let nodes;
13561
+ let edges = [];
13562
+ let workflowName;
13563
+ if (m) {
13564
+ if (Array.isArray(m.nodes)) {
13565
+ nodes = m.nodes;
13566
+ edges = m.edges ?? [];
13567
+ workflowName = m.name;
13568
+ } else if (typeof m.jsonContent === "string") {
13569
+ try {
13570
+ const parsed = JSON.parse(m.jsonContent);
13571
+ if (Array.isArray(parsed.nodes)) {
13572
+ nodes = parsed.nodes;
13573
+ edges = parsed.edges ?? [];
13574
+ workflowName = parsed.name;
13575
+ }
13576
+ } catch {
13577
+ }
13578
+ }
13579
+ }
13580
+ if (nodes) {
13581
+ content = {
13582
+ definitionJson: { nodes, edges },
13583
+ requiredNodeTypes: [],
13584
+ defaultWorkflowName: workflowName ?? fullTemplate.name
13585
+ };
13586
+ } else {
13587
+ toast.error("Template does not contain valid workflow data");
13588
+ return;
13589
+ }
13561
13590
  }
13562
13591
  const nodeCheck = buildNodeCheck(content);
13563
13592
  const needsConfig = content.requiredInputs && content.requiredInputs.length > 0 || nodeCheck.missing.length > 0 || nodeCheck.missingPaid.length > 0 || content.requiredCredentialTypes && content.requiredCredentialTypes.length > 0;
@@ -23211,10 +23240,10 @@ function WorkflowItem({
23211
23240
  resetWorkflow();
23212
23241
  if (!version) {
23213
23242
  const fromSharedId = typeof window !== "undefined" ? new URLSearchParams(window.location.search).get("fromShared") : null;
23214
- const pendingManifestJson = fromSharedId && typeof sessionStorage !== "undefined" ? sessionStorage.getItem("pendingSharedWorkflow") : null;
23243
+ const pendingManifestJson = fromSharedId && typeof localStorage !== "undefined" ? localStorage.getItem("pendingSharedWorkflow") : null;
23215
23244
  if (fromSharedId && pendingManifestJson) {
23216
23245
  try {
23217
- sessionStorage.removeItem("pendingSharedWorkflow");
23246
+ localStorage.removeItem("pendingSharedWorkflow");
23218
23247
  const manifest = JSON.parse(pendingManifestJson);
23219
23248
  if (mounted) {
23220
23249
  setWorkflow({
@@ -23227,7 +23256,7 @@ function WorkflowItem({
23227
23256
  }
23228
23257
  return;
23229
23258
  } catch {
23230
- sessionStorage.removeItem("pendingSharedWorkflow");
23259
+ localStorage.removeItem("pendingSharedWorkflow");
23231
23260
  }
23232
23261
  }
23233
23262
  if (mounted) {
@@ -23360,5 +23389,5 @@ function WorkflowBuilder() {
23360
23389
  }
23361
23390
 
23362
23391
  export { Card2 as Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ConfigSchemaForm, ConnectionFormDialog, ConnectionSelector, FlowBuilderPage, FluidGridsProvider, ProviderPicker, TemplateCard, WorkflowBuilder, getProviderForm, listCustomBlocks, refetchStoreNodes, registerCustomBlock, resolveUiSpec, stripSubmitActions, useConnection, useConnectionDialog, useConnections, useConnectionsByProvider, useCreateConnection, useFluidGridsContext, useImportWorkflowTemplate, useInitiateOAuth, useNodeExecution, useProviderByKey, useProviderCatalog, useProviders, useWorkflowTemplates };
23363
- //# sourceMappingURL=chunk-LRHIL5LS.js.map
23364
- //# sourceMappingURL=chunk-LRHIL5LS.js.map
23392
+ //# sourceMappingURL=chunk-DIYJ6B4D.js.map
23393
+ //# sourceMappingURL=chunk-DIYJ6B4D.js.map