@uigraph/sdk 1.1.34 → 1.1.35

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.
@@ -90,6 +90,7 @@ type CustomData = {
90
90
  src?: string;
91
91
  iconSrc?: string;
92
92
  childNodes?: string[];
93
+ autoLayout?: boolean;
93
94
  componentFields?: RFComponentField[];
94
95
  shape?: string;
95
96
  serviceTable?: {
@@ -90,6 +90,7 @@ type CustomData = {
90
90
  src?: string;
91
91
  iconSrc?: string;
92
92
  childNodes?: string[];
93
+ autoLayout?: boolean;
93
94
  componentFields?: RFComponentField[];
94
95
  shape?: string;
95
96
  serviceTable?: {
@@ -1,4 +1,4 @@
1
- import { d as ServerComponentField } from "./__index.BC7AYPW7.cjs";
1
+ import { d as ServerComponentField } from "./__index.Ci2jxLwq.cjs";
2
2
  import "./__component-type.tW2Xh7Xk.cjs";
3
3
  import { z } from "zod";
4
4
 
@@ -1,4 +1,4 @@
1
- import { d as ServerComponentField } from "./__index.Banqjcwy.mjs";
1
+ import { d as ServerComponentField } from "./__index.BwoDgQJ5.mjs";
2
2
  import "./__component-type.CO8FgnQE.mjs";
3
3
  import { z } from "zod";
4
4
 
package/dist/index.cjs CHANGED
@@ -3111,6 +3111,7 @@ function createReactFlowElements(nodes, edges, subgraphs, subgraphLayouts, subgr
3111
3111
  backgroundColor: colors.bg,
3112
3112
  borderColor: colors.border,
3113
3113
  childNodes: subgraph.nodes,
3114
+ autoLayout: true,
3114
3115
  componentFields: [generateComponentFieldNameInput(subgraph.title)]
3115
3116
  },
3116
3117
  style: {
@@ -3522,6 +3523,7 @@ function createGroupNode(options) {
3522
3523
  },
3523
3524
  data: {
3524
3525
  childNodes: options.nodes,
3526
+ autoLayout: true,
3525
3527
  componentFields: [generateComponentFieldNameInput((_options$name = options.name) !== null && _options$name !== void 0 ? _options$name : "Group")]
3526
3528
  },
3527
3529
  style: {
@@ -3758,12 +3760,12 @@ function _convertMermaidToReactFlowWithContext() {
3758
3760
  if (animatedNodeSrc) clonedNode.data = _objectSpread2(_objectSpread2({}, clonedNode.data), {}, { src: animatedNodeSrc });
3759
3761
  } else if (ctx.src) clonedNode.data = _objectSpread2(_objectSpread2({}, clonedNode.data), {}, { src: ctx.src });
3760
3762
  }
3761
- if (ctx.type === "text" && ctx.value) {
3763
+ if (ctx.type === "text" && (ctx.value || ctx.name)) {
3762
3764
  const textComponentField = generateComponentFieldInput({
3763
3765
  type: require_component_type.ComponentInputType.TextInput,
3764
3766
  componentFieldId: "text",
3765
3767
  label: "Text",
3766
- data: ctx.value,
3768
+ data: ctx.value || ctx.name,
3767
3769
  isReadonly: true
3768
3770
  });
3769
3771
  componentFields.unshift(textComponentField);
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as MermaidNode, c as SequenceParticipant, d as ServerComponentField, f as ServerComponentFieldInput, i as MermaidEdge, l as SubgraphInfo, n as RFComponentField, o as SequenceDiagramData, r as ReactFlowData, s as SequenceMessage, t as CustomData, u as SubgraphLayout } from "./__index.BC7AYPW7.cjs";
1
+ import { a as MermaidNode, c as SequenceParticipant, d as ServerComponentField, f as ServerComponentFieldInput, i as MermaidEdge, l as SubgraphInfo, n as RFComponentField, o as SequenceDiagramData, r as ReactFlowData, s as SequenceMessage, t as CustomData, u as SubgraphLayout } from "./__index.Ci2jxLwq.cjs";
2
2
  import { t as ComponentInputType } from "./__component-type.tW2Xh7Xk.cjs";
3
3
  import { t as contextSchema } from "./__headless.B7jwmaZK.cjs";
4
4
  import z$1, { z } from "zod";
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as MermaidNode, c as SequenceParticipant, d as ServerComponentField, f as ServerComponentFieldInput, i as MermaidEdge, l as SubgraphInfo, n as RFComponentField, o as SequenceDiagramData, r as ReactFlowData, s as SequenceMessage, t as CustomData, u as SubgraphLayout } from "./__index.Banqjcwy.mjs";
1
+ import { a as MermaidNode, c as SequenceParticipant, d as ServerComponentField, f as ServerComponentFieldInput, i as MermaidEdge, l as SubgraphInfo, n as RFComponentField, o as SequenceDiagramData, r as ReactFlowData, s as SequenceMessage, t as CustomData, u as SubgraphLayout } from "./__index.BwoDgQJ5.mjs";
2
2
  import { t as ComponentInputType } from "./__component-type.CO8FgnQE.mjs";
3
3
  import { t as contextSchema } from "./__headless.DiJZCsKx.mjs";
4
4
  import z$1, { z } from "zod";
package/dist/index.mjs CHANGED
@@ -3104,6 +3104,7 @@ function createReactFlowElements(nodes, edges, subgraphs, subgraphLayouts, subgr
3104
3104
  backgroundColor: colors.bg,
3105
3105
  borderColor: colors.border,
3106
3106
  childNodes: subgraph.nodes,
3107
+ autoLayout: true,
3107
3108
  componentFields: [generateComponentFieldNameInput(subgraph.title)]
3108
3109
  },
3109
3110
  style: {
@@ -3515,6 +3516,7 @@ function createGroupNode(options) {
3515
3516
  },
3516
3517
  data: {
3517
3518
  childNodes: options.nodes,
3519
+ autoLayout: true,
3518
3520
  componentFields: [generateComponentFieldNameInput((_options$name = options.name) !== null && _options$name !== void 0 ? _options$name : "Group")]
3519
3521
  },
3520
3522
  style: {
@@ -3751,12 +3753,12 @@ function _convertMermaidToReactFlowWithContext() {
3751
3753
  if (animatedNodeSrc) clonedNode.data = _objectSpread2(_objectSpread2({}, clonedNode.data), {}, { src: animatedNodeSrc });
3752
3754
  } else if (ctx.src) clonedNode.data = _objectSpread2(_objectSpread2({}, clonedNode.data), {}, { src: ctx.src });
3753
3755
  }
3754
- if (ctx.type === "text" && ctx.value) {
3756
+ if (ctx.type === "text" && (ctx.value || ctx.name)) {
3755
3757
  const textComponentField = generateComponentFieldInput({
3756
3758
  type: ComponentInputType.TextInput,
3757
3759
  componentFieldId: "text",
3758
3760
  label: "Text",
3759
- data: ctx.value,
3761
+ data: ctx.value || ctx.name,
3760
3762
  isReadonly: true
3761
3763
  });
3762
3764
  componentFields.unshift(textComponentField);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uigraph/sdk",
3
- "version": "1.1.34",
3
+ "version": "1.1.35",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "prepare": "husky",