@uigraph/sdk 1.2.7 → 1.2.9
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/README.md +1 -1
- package/dist/{__index.BVDt3Nmx.d.cts → __index.B1JSpBNJ.d.cts} +4 -0
- package/dist/{__index.BQQp_uAt.d.mts → __index.BjLNt7Hi.d.mts} +4 -0
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.mts +1 -1
- package/dist/index.cjs +289 -82
- package/dist/index.d.cts +20 -15
- package/dist/index.d.mts +20 -15
- package/dist/index.mjs +287 -83
- package/package.json +15 -14
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.
|
|
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;
|
|
@@ -859,19 +877,6 @@ declare const SEQUENCE_LAYOUT: {
|
|
|
859
877
|
//#region src/mermaid-converter/mermaid-sanitizer.d.ts
|
|
860
878
|
declare function sanitizeMermaidLabels(src: string): string;
|
|
861
879
|
//#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
|
|
875
880
|
//#region src/mermaid-converter/sequence-diagram/from-react-flow.d.ts
|
|
876
881
|
declare function isSequenceDiagram(nodes: Node[]): boolean;
|
|
877
882
|
declare function convertReactFlowToSequenceMermaid(nodes: Node[], edges: Edge[]): string;
|
|
@@ -903,4 +908,4 @@ declare function convertMermaidToReactFlowWithContext(mermaidCode: string, conte
|
|
|
903
908
|
//#region src/uig-converter/index.d.ts
|
|
904
909
|
declare function convertUiGraphToMermaid(input: UiGraphInput, options?: UiGraphOptions): UigOutput;
|
|
905
910
|
//#endregion
|
|
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 };
|
|
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.
|
|
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;
|
|
@@ -859,19 +877,6 @@ declare const SEQUENCE_LAYOUT: {
|
|
|
859
877
|
//#region src/mermaid-converter/mermaid-sanitizer.d.ts
|
|
860
878
|
declare function sanitizeMermaidLabels(src: string): string;
|
|
861
879
|
//#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
|
|
875
880
|
//#region src/mermaid-converter/sequence-diagram/from-react-flow.d.ts
|
|
876
881
|
declare function isSequenceDiagram(nodes: Node[]): boolean;
|
|
877
882
|
declare function convertReactFlowToSequenceMermaid(nodes: Node[], edges: Edge[]): string;
|
|
@@ -903,4 +908,4 @@ declare function convertMermaidToReactFlowWithContext(mermaidCode: string, conte
|
|
|
903
908
|
//#region src/uig-converter/index.d.ts
|
|
904
909
|
declare function convertUiGraphToMermaid(input: UiGraphInput, options?: UiGraphOptions): UigOutput;
|
|
905
910
|
//#endregion
|
|
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 };
|
|
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 };
|