@uigraph/sdk 1.2.6 → 1.2.8

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
@@ -1,4 +1,4 @@
1
- import { A as C4ElementKind, C as ServerComponentFieldInput, D as C4DiagramType, E as C4DiagramData, F as C4RelDirection, I as C4RelStyle, L as C4Relationship, M as C4ElementStyle, N as C4LayoutConfig, O as C4Direction, P as C4NodeType, S as ServerComponentField, T as C4BoundaryKind, _ as SequenceParticipantLink, a as MermaidNode, b as SubgraphLayout, c as SequenceAutonumber, d as SequenceBlockType, f as SequenceBox, g as SequenceParticipant, h as SequenceNote, i as MermaidEdge, j as C4ElementShape, k as C4Element, l as SequenceBlock, m as SequenceMessage, n as RFComponentField, o as SequenceActivation, p as SequenceDiagramData, r as ReactFlowData, s as SequenceArrowHead, t as CustomData, u as SequenceBlockSection, v as SequenceParticipantType, w as C4Boundary, x as LinkOrFileValue, y as SubgraphInfo } from "./__index.BVDt3Nmx.cjs";
1
+ import { A as C4ElementKind, C as ServerComponentFieldInput, D as C4DiagramType, E as C4DiagramData, F as C4RelDirection, I as C4RelStyle, L as C4Relationship, M as C4ElementStyle, N as C4LayoutConfig, O as C4Direction, P as C4NodeType, S as ServerComponentField, T as C4BoundaryKind, _ as SequenceParticipantLink, a as MermaidNode, b as SubgraphLayout, c as SequenceAutonumber, d as SequenceBlockType, f as SequenceBox, g as SequenceParticipant, h as SequenceNote, i as MermaidEdge, j as C4ElementShape, k as C4Element, l as SequenceBlock, m as SequenceMessage, n as RFComponentField, o as SequenceActivation, p as SequenceDiagramData, r as ReactFlowData, s as SequenceArrowHead, t as CustomData, u as SequenceBlockSection, v as SequenceParticipantType, w as C4Boundary, x as LinkOrFileValue, y as SubgraphInfo } from "./__index.B1JSpBNJ.cjs";
2
2
  import { t as ComponentInputType } from "./__component-type.tW2Xh7Xk.cjs";
3
3
  import { t as contextSchema } from "./__headless.D9VUj46t.cjs";
4
4
  import z$1, { z } from "zod";
@@ -735,6 +735,24 @@ declare function syncBaseData(prev: ReactFlowData, next: ReactFlowData, options?
735
735
  //#region src/mermaid-converter/index.d.ts
736
736
  declare function convertMermaidToReactFlow(mermaidCode: string): Promise<ReactFlowData>;
737
737
  //#endregion
738
+ //#region src/uig-converter/types.d.ts
739
+ type UiGraphInput = {
740
+ nodes: Node[];
741
+ edges: Edge[];
742
+ };
743
+ type UiGraphOptions = {
744
+ detailedContext?: boolean;
745
+ };
746
+ type UigOutput = {
747
+ mermaid: string;
748
+ context: z$1.infer<typeof contextSchema>;
749
+ };
750
+ //#endregion
751
+ //#region src/mermaid-converter/c4-diagram/from-react-flow.d.ts
752
+ declare function isC4ReactFlowDiagram(nodes: Node[]): boolean;
753
+ declare function convertReactFlowToC4Mermaid(nodes: Node[], edges: Edge[]): string;
754
+ declare function convertReactFlowToC4UiGraph(nodes: Node[], edges: Edge[]): UigOutput;
755
+ //#endregion
738
756
  //#region src/mermaid-converter/c4-diagram/parser.d.ts
739
757
  declare function isC4Diagram(code: string): boolean;
740
758
  declare function parseC4Diagram(code: string): C4DiagramData;
@@ -862,6 +880,7 @@ declare function sanitizeMermaidLabels(src: string): string;
862
880
  //#region src/mermaid-converter/sequence-diagram/from-react-flow.d.ts
863
881
  declare function isSequenceDiagram(nodes: Node[]): boolean;
864
882
  declare function convertReactFlowToSequenceMermaid(nodes: Node[], edges: Edge[]): string;
883
+ declare function convertReactFlowToSequenceUiGraph(nodes: Node[], edges: Edge[]): UigOutput;
865
884
  //#endregion
866
885
  //#region src/mermaid-converter/sequence-diagram/layout.d.ts
867
886
  /**
@@ -886,20 +905,7 @@ type ResolverOptions = {
886
905
  };
887
906
  declare function convertMermaidToReactFlowWithContext(mermaidCode: string, context: z$1.infer<typeof contextSchema>, options?: ResolverOptions): Promise<ReactFlowData>;
888
907
  //#endregion
889
- //#region src/uig-converter/types.d.ts
890
- type UiGraphInput = {
891
- nodes: Node[];
892
- edges: Edge[];
893
- };
894
- type UiGraphOptions = {
895
- detailedContext?: boolean;
896
- };
897
- type UigOutput = {
898
- mermaid: string;
899
- context: z$1.infer<typeof contextSchema>;
900
- };
901
- //#endregion
902
908
  //#region src/uig-converter/index.d.ts
903
909
  declare function convertUiGraphToMermaid(input: UiGraphInput, options?: UiGraphOptions): UigOutput;
904
910
  //#endregion
905
- export { AstToSqlGenerator, AstToUiConverter, BasicDetailsSchema, C4Boundary, C4BoundaryKind, C4DiagramData, C4DiagramType, C4Direction, C4Element, C4ElementKind, C4ElementShape, C4ElementStyle, C4LayoutConfig, C4NodeType, C4RelDirection, C4RelStyle, C4Relationship, C4_COLORS, C4_LAYOUT, CheckConstraintAST, ColumnAST, ComponentInputType, ConstraintAST, CustomData, DataTypeAST, DefaultValueAST, DialectIdSchema, DocumentCollectionSchema, DocumentIndexSchema, DynamoAttributeSchema, DynamoEditorSchema, DynamoGsiSchema, EditorSupportedDialectSchema, ForeignKeyConstraintAST, IndexAST, IndexColumnAST, IndexMethodAST, JsonEditorSchema, LinkOrFileValue, MermaidEdge, MermaidNode, MongoCollectionSchema, MongoEditorSchema, MongoIndexFieldSchema, MongoIndexSchema, MongoNestedFieldSchema, NestedFieldSchema, NoSqlFieldSchema, PrimaryKeyConstraintAST, RFComponentField, ReactFlowData, ReferentialActionAST, SEQUENCE_LAYOUT, SchemaAST, SchemaDialect, SchemaUIRepresentation, SequenceActivation, SequenceArrowHead, SequenceAutonumber, SequenceBlock, SequenceBlockSection, SequenceBlockType, SequenceBox, SequenceDiagramData, SequenceMessage, SequenceNote, SequenceParticipant, SequenceParticipantLink, SequenceParticipantType, ServerComponentField, ServerComponentFieldInput, SqlToAstParser, SubgraphInfo, SubgraphLayout, TParsedColumn, TParsedForeignKey, TParsedIndex, TParsedSchema, TParsedTable, TableAST, TableOptionsAST, UniqueConstraintAST, buildMetaData, contextSchema, convertC4MermaidToReactFlow, convertC4ToReactFlow, convertDynamoSchemaToAst, convertJsonSchemaToAst, convertMermaidToReactFlow, convertMermaidToReactFlowWithContext, convertMongoSchemaToAst, convertNoSQLToAst, convertReactFlowToSequenceMermaid, convertUiGraphToMermaid, estimateSequenceMessageBoxSize, flattenMetaData, generateTableNodeId, generateUUID, getC4ElementColors, isC4Diagram, isSequenceDiagram, parseC4Diagram, sanitizeMermaidLabels, syncBaseData };
911
+ export { AstToSqlGenerator, AstToUiConverter, BasicDetailsSchema, C4Boundary, C4BoundaryKind, C4DiagramData, C4DiagramType, C4Direction, C4Element, C4ElementKind, C4ElementShape, C4ElementStyle, C4LayoutConfig, C4NodeType, C4RelDirection, C4RelStyle, C4Relationship, C4_COLORS, C4_LAYOUT, CheckConstraintAST, ColumnAST, ComponentInputType, ConstraintAST, CustomData, DataTypeAST, DefaultValueAST, DialectIdSchema, DocumentCollectionSchema, DocumentIndexSchema, DynamoAttributeSchema, DynamoEditorSchema, DynamoGsiSchema, EditorSupportedDialectSchema, ForeignKeyConstraintAST, IndexAST, IndexColumnAST, IndexMethodAST, JsonEditorSchema, LinkOrFileValue, MermaidEdge, MermaidNode, MongoCollectionSchema, MongoEditorSchema, MongoIndexFieldSchema, MongoIndexSchema, MongoNestedFieldSchema, NestedFieldSchema, NoSqlFieldSchema, PrimaryKeyConstraintAST, RFComponentField, ReactFlowData, ReferentialActionAST, SEQUENCE_LAYOUT, SchemaAST, SchemaDialect, SchemaUIRepresentation, SequenceActivation, SequenceArrowHead, SequenceAutonumber, SequenceBlock, SequenceBlockSection, SequenceBlockType, SequenceBox, SequenceDiagramData, SequenceMessage, SequenceNote, SequenceParticipant, SequenceParticipantLink, SequenceParticipantType, ServerComponentField, ServerComponentFieldInput, SqlToAstParser, SubgraphInfo, SubgraphLayout, TParsedColumn, TParsedForeignKey, TParsedIndex, TParsedSchema, TParsedTable, TableAST, TableOptionsAST, UniqueConstraintAST, buildMetaData, contextSchema, convertC4MermaidToReactFlow, convertC4ToReactFlow, convertDynamoSchemaToAst, convertJsonSchemaToAst, convertMermaidToReactFlow, convertMermaidToReactFlowWithContext, convertMongoSchemaToAst, convertNoSQLToAst, convertReactFlowToC4Mermaid, convertReactFlowToC4UiGraph, convertReactFlowToSequenceMermaid, convertReactFlowToSequenceUiGraph, convertUiGraphToMermaid, estimateSequenceMessageBoxSize, flattenMetaData, generateTableNodeId, generateUUID, getC4ElementColors, isC4Diagram, isC4ReactFlowDiagram, isSequenceDiagram, parseC4Diagram, sanitizeMermaidLabels, syncBaseData };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as C4ElementKind, C as ServerComponentFieldInput, D as C4DiagramType, E as C4DiagramData, F as C4RelDirection, I as C4RelStyle, L as C4Relationship, M as C4ElementStyle, N as C4LayoutConfig, O as C4Direction, P as C4NodeType, S as ServerComponentField, T as C4BoundaryKind, _ as SequenceParticipantLink, a as MermaidNode, b as SubgraphLayout, c as SequenceAutonumber, d as SequenceBlockType, f as SequenceBox, g as SequenceParticipant, h as SequenceNote, i as MermaidEdge, j as C4ElementShape, k as C4Element, l as SequenceBlock, m as SequenceMessage, n as RFComponentField, o as SequenceActivation, p as SequenceDiagramData, r as ReactFlowData, s as SequenceArrowHead, t as CustomData, u as SequenceBlockSection, v as SequenceParticipantType, w as C4Boundary, x as LinkOrFileValue, y as SubgraphInfo } from "./__index.BQQp_uAt.mjs";
1
+ import { A as C4ElementKind, C as ServerComponentFieldInput, D as C4DiagramType, E as C4DiagramData, F as C4RelDirection, I as C4RelStyle, L as C4Relationship, M as C4ElementStyle, N as C4LayoutConfig, O as C4Direction, P as C4NodeType, S as ServerComponentField, T as C4BoundaryKind, _ as SequenceParticipantLink, a as MermaidNode, b as SubgraphLayout, c as SequenceAutonumber, d as SequenceBlockType, f as SequenceBox, g as SequenceParticipant, h as SequenceNote, i as MermaidEdge, j as C4ElementShape, k as C4Element, l as SequenceBlock, m as SequenceMessage, n as RFComponentField, o as SequenceActivation, p as SequenceDiagramData, r as ReactFlowData, s as SequenceArrowHead, t as CustomData, u as SequenceBlockSection, v as SequenceParticipantType, w as C4Boundary, x as LinkOrFileValue, y as SubgraphInfo } from "./__index.BjLNt7Hi.mjs";
2
2
  import { t as ComponentInputType } from "./__component-type.CO8FgnQE.mjs";
3
3
  import { t as contextSchema } from "./__headless.CnrU6aAA.mjs";
4
4
  import z$1, { z } from "zod";
@@ -735,6 +735,24 @@ declare function syncBaseData(prev: ReactFlowData, next: ReactFlowData, options?
735
735
  //#region src/mermaid-converter/index.d.ts
736
736
  declare function convertMermaidToReactFlow(mermaidCode: string): Promise<ReactFlowData>;
737
737
  //#endregion
738
+ //#region src/uig-converter/types.d.ts
739
+ type UiGraphInput = {
740
+ nodes: Node[];
741
+ edges: Edge[];
742
+ };
743
+ type UiGraphOptions = {
744
+ detailedContext?: boolean;
745
+ };
746
+ type UigOutput = {
747
+ mermaid: string;
748
+ context: z$1.infer<typeof contextSchema>;
749
+ };
750
+ //#endregion
751
+ //#region src/mermaid-converter/c4-diagram/from-react-flow.d.ts
752
+ declare function isC4ReactFlowDiagram(nodes: Node[]): boolean;
753
+ declare function convertReactFlowToC4Mermaid(nodes: Node[], edges: Edge[]): string;
754
+ declare function convertReactFlowToC4UiGraph(nodes: Node[], edges: Edge[]): UigOutput;
755
+ //#endregion
738
756
  //#region src/mermaid-converter/c4-diagram/parser.d.ts
739
757
  declare function isC4Diagram(code: string): boolean;
740
758
  declare function parseC4Diagram(code: string): C4DiagramData;
@@ -862,6 +880,7 @@ declare function sanitizeMermaidLabels(src: string): string;
862
880
  //#region src/mermaid-converter/sequence-diagram/from-react-flow.d.ts
863
881
  declare function isSequenceDiagram(nodes: Node[]): boolean;
864
882
  declare function convertReactFlowToSequenceMermaid(nodes: Node[], edges: Edge[]): string;
883
+ declare function convertReactFlowToSequenceUiGraph(nodes: Node[], edges: Edge[]): UigOutput;
865
884
  //#endregion
866
885
  //#region src/mermaid-converter/sequence-diagram/layout.d.ts
867
886
  /**
@@ -886,20 +905,7 @@ type ResolverOptions = {
886
905
  };
887
906
  declare function convertMermaidToReactFlowWithContext(mermaidCode: string, context: z$1.infer<typeof contextSchema>, options?: ResolverOptions): Promise<ReactFlowData>;
888
907
  //#endregion
889
- //#region src/uig-converter/types.d.ts
890
- type UiGraphInput = {
891
- nodes: Node[];
892
- edges: Edge[];
893
- };
894
- type UiGraphOptions = {
895
- detailedContext?: boolean;
896
- };
897
- type UigOutput = {
898
- mermaid: string;
899
- context: z$1.infer<typeof contextSchema>;
900
- };
901
- //#endregion
902
908
  //#region src/uig-converter/index.d.ts
903
909
  declare function convertUiGraphToMermaid(input: UiGraphInput, options?: UiGraphOptions): UigOutput;
904
910
  //#endregion
905
- export { AstToSqlGenerator, AstToUiConverter, BasicDetailsSchema, C4Boundary, C4BoundaryKind, C4DiagramData, C4DiagramType, C4Direction, C4Element, C4ElementKind, C4ElementShape, C4ElementStyle, C4LayoutConfig, C4NodeType, C4RelDirection, C4RelStyle, C4Relationship, C4_COLORS, C4_LAYOUT, CheckConstraintAST, ColumnAST, ComponentInputType, ConstraintAST, CustomData, DataTypeAST, DefaultValueAST, DialectIdSchema, DocumentCollectionSchema, DocumentIndexSchema, DynamoAttributeSchema, DynamoEditorSchema, DynamoGsiSchema, EditorSupportedDialectSchema, ForeignKeyConstraintAST, IndexAST, IndexColumnAST, IndexMethodAST, JsonEditorSchema, LinkOrFileValue, MermaidEdge, MermaidNode, MongoCollectionSchema, MongoEditorSchema, MongoIndexFieldSchema, MongoIndexSchema, MongoNestedFieldSchema, NestedFieldSchema, NoSqlFieldSchema, PrimaryKeyConstraintAST, RFComponentField, ReactFlowData, ReferentialActionAST, SEQUENCE_LAYOUT, SchemaAST, SchemaDialect, SchemaUIRepresentation, SequenceActivation, SequenceArrowHead, SequenceAutonumber, SequenceBlock, SequenceBlockSection, SequenceBlockType, SequenceBox, SequenceDiagramData, SequenceMessage, SequenceNote, SequenceParticipant, SequenceParticipantLink, SequenceParticipantType, ServerComponentField, ServerComponentFieldInput, SqlToAstParser, SubgraphInfo, SubgraphLayout, TParsedColumn, TParsedForeignKey, TParsedIndex, TParsedSchema, TParsedTable, TableAST, TableOptionsAST, UniqueConstraintAST, buildMetaData, contextSchema, convertC4MermaidToReactFlow, convertC4ToReactFlow, convertDynamoSchemaToAst, convertJsonSchemaToAst, convertMermaidToReactFlow, convertMermaidToReactFlowWithContext, convertMongoSchemaToAst, convertNoSQLToAst, convertReactFlowToSequenceMermaid, convertUiGraphToMermaid, estimateSequenceMessageBoxSize, flattenMetaData, generateTableNodeId, generateUUID, getC4ElementColors, isC4Diagram, isSequenceDiagram, parseC4Diagram, sanitizeMermaidLabels, syncBaseData };
911
+ export { AstToSqlGenerator, AstToUiConverter, BasicDetailsSchema, C4Boundary, C4BoundaryKind, C4DiagramData, C4DiagramType, C4Direction, C4Element, C4ElementKind, C4ElementShape, C4ElementStyle, C4LayoutConfig, C4NodeType, C4RelDirection, C4RelStyle, C4Relationship, C4_COLORS, C4_LAYOUT, CheckConstraintAST, ColumnAST, ComponentInputType, ConstraintAST, CustomData, DataTypeAST, DefaultValueAST, DialectIdSchema, DocumentCollectionSchema, DocumentIndexSchema, DynamoAttributeSchema, DynamoEditorSchema, DynamoGsiSchema, EditorSupportedDialectSchema, ForeignKeyConstraintAST, IndexAST, IndexColumnAST, IndexMethodAST, JsonEditorSchema, LinkOrFileValue, MermaidEdge, MermaidNode, MongoCollectionSchema, MongoEditorSchema, MongoIndexFieldSchema, MongoIndexSchema, MongoNestedFieldSchema, NestedFieldSchema, NoSqlFieldSchema, PrimaryKeyConstraintAST, RFComponentField, ReactFlowData, ReferentialActionAST, SEQUENCE_LAYOUT, SchemaAST, SchemaDialect, SchemaUIRepresentation, SequenceActivation, SequenceArrowHead, SequenceAutonumber, SequenceBlock, SequenceBlockSection, SequenceBlockType, SequenceBox, SequenceDiagramData, SequenceMessage, SequenceNote, SequenceParticipant, SequenceParticipantLink, SequenceParticipantType, ServerComponentField, ServerComponentFieldInput, SqlToAstParser, SubgraphInfo, SubgraphLayout, TParsedColumn, TParsedForeignKey, TParsedIndex, TParsedSchema, TParsedTable, TableAST, TableOptionsAST, UniqueConstraintAST, buildMetaData, contextSchema, convertC4MermaidToReactFlow, convertC4ToReactFlow, convertDynamoSchemaToAst, convertJsonSchemaToAst, convertMermaidToReactFlow, convertMermaidToReactFlowWithContext, convertMongoSchemaToAst, convertNoSQLToAst, convertReactFlowToC4Mermaid, convertReactFlowToC4UiGraph, convertReactFlowToSequenceMermaid, convertReactFlowToSequenceUiGraph, convertUiGraphToMermaid, estimateSequenceMessageBoxSize, flattenMetaData, generateTableNodeId, generateUUID, getC4ElementColors, isC4Diagram, isC4ReactFlowDiagram, isSequenceDiagram, parseC4Diagram, sanitizeMermaidLabels, syncBaseData };