@burdenoff/fluidgrids-fe-sdk 2026.713.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-LA7ELWEY.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-DSPJ5UOG.js.map
13
- //# sourceMappingURL=WorkflowBuilder-DSPJ5UOG.js.map
12
+ //# sourceMappingURL=WorkflowBuilder-KMG2LV4V.js.map
13
+ //# sourceMappingURL=WorkflowBuilder-KMG2LV4V.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"WorkflowBuilder-DSPJ5UOG.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;
@@ -23210,6 +23239,26 @@ function WorkflowItem({
23210
23239
  try {
23211
23240
  resetWorkflow();
23212
23241
  if (!version) {
23242
+ const fromSharedId = typeof window !== "undefined" ? new URLSearchParams(window.location.search).get("fromShared") : null;
23243
+ const pendingManifestJson = fromSharedId && typeof localStorage !== "undefined" ? localStorage.getItem("pendingSharedWorkflow") : null;
23244
+ if (fromSharedId && pendingManifestJson) {
23245
+ try {
23246
+ localStorage.removeItem("pendingSharedWorkflow");
23247
+ const manifest = JSON.parse(pendingManifestJson);
23248
+ if (mounted) {
23249
+ setWorkflow({
23250
+ ...newWorkflow,
23251
+ name: manifest.name ?? "Copied Workflow",
23252
+ nodes: manifest.nodes ?? [],
23253
+ edges: manifest.edges ?? []
23254
+ });
23255
+ setIsLoading(false);
23256
+ }
23257
+ return;
23258
+ } catch {
23259
+ localStorage.removeItem("pendingSharedWorkflow");
23260
+ }
23261
+ }
23213
23262
  if (mounted) {
23214
23263
  setWorkflow(newWorkflow);
23215
23264
  setIsLoading(false);
@@ -23340,5 +23389,5 @@ function WorkflowBuilder() {
23340
23389
  }
23341
23390
 
23342
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 };
23343
- //# sourceMappingURL=chunk-LA7ELWEY.js.map
23344
- //# sourceMappingURL=chunk-LA7ELWEY.js.map
23392
+ //# sourceMappingURL=chunk-DIYJ6B4D.js.map
23393
+ //# sourceMappingURL=chunk-DIYJ6B4D.js.map