@uigraph/sdk 1.2.6 → 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.cjs +987 -951
- package/dist/index.d.cts +15 -14
- package/dist/index.d.mts +15 -14
- package/dist/index.mjs +987 -952
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -859,9 +859,23 @@ declare const SEQUENCE_LAYOUT: {
|
|
|
859
859
|
//#region src/mermaid-converter/mermaid-sanitizer.d.ts
|
|
860
860
|
declare function sanitizeMermaidLabels(src: string): string;
|
|
861
861
|
//#endregion
|
|
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
|
+
};
|
|
874
|
+
//#endregion
|
|
862
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
880
|
//#region src/mermaid-converter/sequence-diagram/layout.d.ts
|
|
867
881
|
/**
|
|
@@ -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
|
@@ -859,9 +859,23 @@ declare const SEQUENCE_LAYOUT: {
|
|
|
859
859
|
//#region src/mermaid-converter/mermaid-sanitizer.d.ts
|
|
860
860
|
declare function sanitizeMermaidLabels(src: string): string;
|
|
861
861
|
//#endregion
|
|
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
|
+
};
|
|
874
|
+
//#endregion
|
|
862
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
880
|
//#region src/mermaid-converter/sequence-diagram/layout.d.ts
|
|
867
881
|
/**
|
|
@@ -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 };
|