@uigraph/sdk 1.2.5 → 1.2.6

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.
package/dist/index.d.cts CHANGED
@@ -732,11 +732,14 @@ type Options = {
732
732
  };
733
733
  declare function syncBaseData(prev: ReactFlowData, next: ReactFlowData, options?: Options): ReactFlowData;
734
734
  //#endregion
735
- //#region src/mermaid-converter/c4-parser.d.ts
735
+ //#region src/mermaid-converter/index.d.ts
736
+ declare function convertMermaidToReactFlow(mermaidCode: string): Promise<ReactFlowData>;
737
+ //#endregion
738
+ //#region src/mermaid-converter/c4-diagram/parser.d.ts
736
739
  declare function isC4Diagram(code: string): boolean;
737
740
  declare function parseC4Diagram(code: string): C4DiagramData;
738
741
  //#endregion
739
- //#region src/mermaid-converter/c4-to-react-flow.d.ts
742
+ //#region src/mermaid-converter/c4-diagram/to-react-flow.d.ts
740
743
  /** Mirrors mermaid's `c4` config block so imports land at a familiar scale. */
741
744
  declare const C4_LAYOUT: {
742
745
  WIDTH: number;
@@ -856,14 +859,11 @@ declare const SEQUENCE_LAYOUT: {
856
859
  //#region src/mermaid-converter/mermaid-sanitizer.d.ts
857
860
  declare function sanitizeMermaidLabels(src: string): string;
858
861
  //#endregion
859
- //#region src/mermaid-converter/mermaid-to-react-flow.d.ts
860
- declare function convertMermaidToReactFlow(mermaidCode: string): Promise<ReactFlowData>;
861
- //#endregion
862
- //#region src/mermaid-converter/react-flow-to-sequence.d.ts
862
+ //#region src/mermaid-converter/sequence-diagram/from-react-flow.d.ts
863
863
  declare function isSequenceDiagram(nodes: Node[]): boolean;
864
864
  declare function convertReactFlowToSequenceMermaid(nodes: Node[], edges: Edge[]): string;
865
865
  //#endregion
866
- //#region src/mermaid-converter/sequence-layout.d.ts
866
+ //#region src/mermaid-converter/sequence-diagram/layout.d.ts
867
867
  /**
868
868
  * Sizes a sequence message box from its own label text, targeting a ~2-line
869
869
  * wrap. A fixed width makes long labels ("Return Checkout Session client
package/dist/index.d.mts CHANGED
@@ -732,11 +732,14 @@ type Options = {
732
732
  };
733
733
  declare function syncBaseData(prev: ReactFlowData, next: ReactFlowData, options?: Options): ReactFlowData;
734
734
  //#endregion
735
- //#region src/mermaid-converter/c4-parser.d.ts
735
+ //#region src/mermaid-converter/index.d.ts
736
+ declare function convertMermaidToReactFlow(mermaidCode: string): Promise<ReactFlowData>;
737
+ //#endregion
738
+ //#region src/mermaid-converter/c4-diagram/parser.d.ts
736
739
  declare function isC4Diagram(code: string): boolean;
737
740
  declare function parseC4Diagram(code: string): C4DiagramData;
738
741
  //#endregion
739
- //#region src/mermaid-converter/c4-to-react-flow.d.ts
742
+ //#region src/mermaid-converter/c4-diagram/to-react-flow.d.ts
740
743
  /** Mirrors mermaid's `c4` config block so imports land at a familiar scale. */
741
744
  declare const C4_LAYOUT: {
742
745
  WIDTH: number;
@@ -856,14 +859,11 @@ declare const SEQUENCE_LAYOUT: {
856
859
  //#region src/mermaid-converter/mermaid-sanitizer.d.ts
857
860
  declare function sanitizeMermaidLabels(src: string): string;
858
861
  //#endregion
859
- //#region src/mermaid-converter/mermaid-to-react-flow.d.ts
860
- declare function convertMermaidToReactFlow(mermaidCode: string): Promise<ReactFlowData>;
861
- //#endregion
862
- //#region src/mermaid-converter/react-flow-to-sequence.d.ts
862
+ //#region src/mermaid-converter/sequence-diagram/from-react-flow.d.ts
863
863
  declare function isSequenceDiagram(nodes: Node[]): boolean;
864
864
  declare function convertReactFlowToSequenceMermaid(nodes: Node[], edges: Edge[]): string;
865
865
  //#endregion
866
- //#region src/mermaid-converter/sequence-layout.d.ts
866
+ //#region src/mermaid-converter/sequence-diagram/layout.d.ts
867
867
  /**
868
868
  * Sizes a sequence message box from its own label text, targeting a ~2-line
869
869
  * wrap. A fixed width makes long labels ("Return Checkout Session client