@uigraph/sdk 1.2.5 → 1.2.7

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,25 @@ 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>;
862
+ //#region src/uig-converter/types.d.ts
863
+ type UiGraphInput = {
864
+ nodes: Node[];
865
+ edges: Edge[];
866
+ };
867
+ type UiGraphOptions = {
868
+ detailedContext?: boolean;
869
+ };
870
+ type UigOutput = {
871
+ mermaid: string;
872
+ context: z$1.infer<typeof contextSchema>;
873
+ };
861
874
  //#endregion
862
- //#region src/mermaid-converter/react-flow-to-sequence.d.ts
875
+ //#region src/mermaid-converter/sequence-diagram/from-react-flow.d.ts
863
876
  declare function isSequenceDiagram(nodes: Node[]): boolean;
864
877
  declare function convertReactFlowToSequenceMermaid(nodes: Node[], edges: Edge[]): string;
878
+ declare function convertReactFlowToSequenceUiGraph(nodes: Node[], edges: Edge[]): UigOutput;
865
879
  //#endregion
866
- //#region src/mermaid-converter/sequence-layout.d.ts
880
+ //#region src/mermaid-converter/sequence-diagram/layout.d.ts
867
881
  /**
868
882
  * Sizes a sequence message box from its own label text, targeting a ~2-line
869
883
  * wrap. A fixed width makes long labels ("Return Checkout Session client
@@ -886,20 +900,7 @@ type ResolverOptions = {
886
900
  };
887
901
  declare function convertMermaidToReactFlowWithContext(mermaidCode: string, context: z$1.infer<typeof contextSchema>, options?: ResolverOptions): Promise<ReactFlowData>;
888
902
  //#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
903
  //#region src/uig-converter/index.d.ts
903
904
  declare function convertUiGraphToMermaid(input: UiGraphInput, options?: UiGraphOptions): UigOutput;
904
905
  //#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 };
906
+ 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, convertReactFlowToSequenceUiGraph, convertUiGraphToMermaid, estimateSequenceMessageBoxSize, flattenMetaData, generateTableNodeId, generateUUID, getC4ElementColors, isC4Diagram, isSequenceDiagram, parseC4Diagram, sanitizeMermaidLabels, syncBaseData };
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,25 @@ 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>;
862
+ //#region src/uig-converter/types.d.ts
863
+ type UiGraphInput = {
864
+ nodes: Node[];
865
+ edges: Edge[];
866
+ };
867
+ type UiGraphOptions = {
868
+ detailedContext?: boolean;
869
+ };
870
+ type UigOutput = {
871
+ mermaid: string;
872
+ context: z$1.infer<typeof contextSchema>;
873
+ };
861
874
  //#endregion
862
- //#region src/mermaid-converter/react-flow-to-sequence.d.ts
875
+ //#region src/mermaid-converter/sequence-diagram/from-react-flow.d.ts
863
876
  declare function isSequenceDiagram(nodes: Node[]): boolean;
864
877
  declare function convertReactFlowToSequenceMermaid(nodes: Node[], edges: Edge[]): string;
878
+ declare function convertReactFlowToSequenceUiGraph(nodes: Node[], edges: Edge[]): UigOutput;
865
879
  //#endregion
866
- //#region src/mermaid-converter/sequence-layout.d.ts
880
+ //#region src/mermaid-converter/sequence-diagram/layout.d.ts
867
881
  /**
868
882
  * Sizes a sequence message box from its own label text, targeting a ~2-line
869
883
  * wrap. A fixed width makes long labels ("Return Checkout Session client
@@ -886,20 +900,7 @@ type ResolverOptions = {
886
900
  };
887
901
  declare function convertMermaidToReactFlowWithContext(mermaidCode: string, context: z$1.infer<typeof contextSchema>, options?: ResolverOptions): Promise<ReactFlowData>;
888
902
  //#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
903
  //#region src/uig-converter/index.d.ts
903
904
  declare function convertUiGraphToMermaid(input: UiGraphInput, options?: UiGraphOptions): UigOutput;
904
905
  //#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 };
906
+ 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, convertReactFlowToSequenceUiGraph, convertUiGraphToMermaid, estimateSequenceMessageBoxSize, flattenMetaData, generateTableNodeId, generateUUID, getC4ElementColors, isC4Diagram, isSequenceDiagram, parseC4Diagram, sanitizeMermaidLabels, syncBaseData };