@uigraph/sdk 1.2.1 → 1.2.3
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.Bvdu5Kox.d.mts +198 -0
- package/dist/__index.YhKZQgFP.d.cts +198 -0
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.mts +1 -1
- package/dist/index.cjs +1127 -209
- package/dist/index.d.cts +43 -2
- package/dist/index.d.mts +43 -2
- package/dist/index.mjs +1124 -209
- package/package.json +1 -1
- package/dist/__index.Bfg50WMf.d.mts +0 -122
- package/dist/__index.ClK6nImE.d.cts +0 -122
package/package.json
CHANGED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { t as ComponentInputType } from "./__component-type.CO8FgnQE.mjs";
|
|
2
|
-
import { Edge, Node } from "@xyflow/react";
|
|
3
|
-
|
|
4
|
-
//#region src/types/component.d.ts
|
|
5
|
-
type LinkOrFileValue = {
|
|
6
|
-
fileId?: string;
|
|
7
|
-
url?: string;
|
|
8
|
-
file?: File;
|
|
9
|
-
};
|
|
10
|
-
type ServerComponentField = {
|
|
11
|
-
componentFieldId?: string | null;
|
|
12
|
-
isReadonly?: boolean | null;
|
|
13
|
-
label?: string | null;
|
|
14
|
-
options?: (string | null)[] | null;
|
|
15
|
-
order?: number | null;
|
|
16
|
-
required?: boolean | null;
|
|
17
|
-
type?: string | null;
|
|
18
|
-
data?: any | null;
|
|
19
|
-
};
|
|
20
|
-
type ServerComponentFieldInput = {
|
|
21
|
-
componentFieldId: string;
|
|
22
|
-
type: string;
|
|
23
|
-
label: string;
|
|
24
|
-
order: number;
|
|
25
|
-
required: boolean;
|
|
26
|
-
isReadonly?: boolean | null;
|
|
27
|
-
options?: (string | null)[] | null;
|
|
28
|
-
data?: any | null;
|
|
29
|
-
};
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region src/types/mermaid.d.ts
|
|
32
|
-
interface MermaidNode {
|
|
33
|
-
id: string;
|
|
34
|
-
label: string;
|
|
35
|
-
shape: string;
|
|
36
|
-
subgraph?: string;
|
|
37
|
-
parentSubgraph?: string;
|
|
38
|
-
}
|
|
39
|
-
interface MermaidEdge {
|
|
40
|
-
source: string;
|
|
41
|
-
target: string;
|
|
42
|
-
label?: string;
|
|
43
|
-
type: string;
|
|
44
|
-
isSourceSubgraph?: boolean;
|
|
45
|
-
isTargetSubgraph?: boolean;
|
|
46
|
-
}
|
|
47
|
-
interface SubgraphInfo {
|
|
48
|
-
id: string;
|
|
49
|
-
title: string;
|
|
50
|
-
nodes: string[];
|
|
51
|
-
parentId?: string;
|
|
52
|
-
childrenIds: string[];
|
|
53
|
-
direction?: string;
|
|
54
|
-
}
|
|
55
|
-
interface SubgraphLayout {
|
|
56
|
-
id: string;
|
|
57
|
-
title: string;
|
|
58
|
-
nodes: Map<string, {
|
|
59
|
-
x: number;
|
|
60
|
-
y: number;
|
|
61
|
-
width: number;
|
|
62
|
-
height: number;
|
|
63
|
-
}>;
|
|
64
|
-
width: number;
|
|
65
|
-
height: number;
|
|
66
|
-
position?: {
|
|
67
|
-
x: number;
|
|
68
|
-
y: number;
|
|
69
|
-
};
|
|
70
|
-
parentId?: string;
|
|
71
|
-
}
|
|
72
|
-
interface SequenceParticipant {
|
|
73
|
-
id: string;
|
|
74
|
-
name: string;
|
|
75
|
-
alias?: string;
|
|
76
|
-
index: number;
|
|
77
|
-
}
|
|
78
|
-
interface SequenceMessage {
|
|
79
|
-
from: string;
|
|
80
|
-
to: string;
|
|
81
|
-
label: string;
|
|
82
|
-
lineStyle: 'solid' | 'dashed';
|
|
83
|
-
arrowType: 'filled' | 'open' | 'none';
|
|
84
|
-
rowIndex: number;
|
|
85
|
-
}
|
|
86
|
-
interface SequenceDiagramData {
|
|
87
|
-
participants: SequenceParticipant[];
|
|
88
|
-
messages: SequenceMessage[];
|
|
89
|
-
}
|
|
90
|
-
//#endregion
|
|
91
|
-
//#region src/types/rf.d.ts
|
|
92
|
-
type CustomData = {
|
|
93
|
-
source?: 'mermaid';
|
|
94
|
-
componentId?: string;
|
|
95
|
-
src?: string;
|
|
96
|
-
iconSrc?: string;
|
|
97
|
-
childNodes?: string[];
|
|
98
|
-
autoLayout?: boolean;
|
|
99
|
-
componentFields?: RFComponentField[];
|
|
100
|
-
shape?: string;
|
|
101
|
-
serviceTable?: {
|
|
102
|
-
serviceName: string;
|
|
103
|
-
databaseName: string;
|
|
104
|
-
tableName: string;
|
|
105
|
-
};
|
|
106
|
-
title?: string;
|
|
107
|
-
columns?: string[];
|
|
108
|
-
rows?: string[][];
|
|
109
|
-
strokeAnimation?: 'dash';
|
|
110
|
-
};
|
|
111
|
-
interface ReactFlowData {
|
|
112
|
-
nodes: Node<CustomData>[];
|
|
113
|
-
edges: Edge<CustomData>[];
|
|
114
|
-
}
|
|
115
|
-
interface RFComponentField {
|
|
116
|
-
componentFieldId: string;
|
|
117
|
-
type: ComponentInputType;
|
|
118
|
-
label: string;
|
|
119
|
-
data: unknown;
|
|
120
|
-
}
|
|
121
|
-
//#endregion
|
|
122
|
-
export { MermaidNode as a, SequenceParticipant as c, LinkOrFileValue as d, ServerComponentField as f, MermaidEdge as i, SubgraphInfo as l, RFComponentField as n, SequenceDiagramData as o, ServerComponentFieldInput as p, ReactFlowData as r, SequenceMessage as s, CustomData as t, SubgraphLayout as u };
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { t as ComponentInputType } from "./__component-type.tW2Xh7Xk.cjs";
|
|
2
|
-
import { Edge, Node } from "@xyflow/react";
|
|
3
|
-
|
|
4
|
-
//#region src/types/component.d.ts
|
|
5
|
-
type LinkOrFileValue = {
|
|
6
|
-
fileId?: string;
|
|
7
|
-
url?: string;
|
|
8
|
-
file?: File;
|
|
9
|
-
};
|
|
10
|
-
type ServerComponentField = {
|
|
11
|
-
componentFieldId?: string | null;
|
|
12
|
-
isReadonly?: boolean | null;
|
|
13
|
-
label?: string | null;
|
|
14
|
-
options?: (string | null)[] | null;
|
|
15
|
-
order?: number | null;
|
|
16
|
-
required?: boolean | null;
|
|
17
|
-
type?: string | null;
|
|
18
|
-
data?: any | null;
|
|
19
|
-
};
|
|
20
|
-
type ServerComponentFieldInput = {
|
|
21
|
-
componentFieldId: string;
|
|
22
|
-
type: string;
|
|
23
|
-
label: string;
|
|
24
|
-
order: number;
|
|
25
|
-
required: boolean;
|
|
26
|
-
isReadonly?: boolean | null;
|
|
27
|
-
options?: (string | null)[] | null;
|
|
28
|
-
data?: any | null;
|
|
29
|
-
};
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region src/types/mermaid.d.ts
|
|
32
|
-
interface MermaidNode {
|
|
33
|
-
id: string;
|
|
34
|
-
label: string;
|
|
35
|
-
shape: string;
|
|
36
|
-
subgraph?: string;
|
|
37
|
-
parentSubgraph?: string;
|
|
38
|
-
}
|
|
39
|
-
interface MermaidEdge {
|
|
40
|
-
source: string;
|
|
41
|
-
target: string;
|
|
42
|
-
label?: string;
|
|
43
|
-
type: string;
|
|
44
|
-
isSourceSubgraph?: boolean;
|
|
45
|
-
isTargetSubgraph?: boolean;
|
|
46
|
-
}
|
|
47
|
-
interface SubgraphInfo {
|
|
48
|
-
id: string;
|
|
49
|
-
title: string;
|
|
50
|
-
nodes: string[];
|
|
51
|
-
parentId?: string;
|
|
52
|
-
childrenIds: string[];
|
|
53
|
-
direction?: string;
|
|
54
|
-
}
|
|
55
|
-
interface SubgraphLayout {
|
|
56
|
-
id: string;
|
|
57
|
-
title: string;
|
|
58
|
-
nodes: Map<string, {
|
|
59
|
-
x: number;
|
|
60
|
-
y: number;
|
|
61
|
-
width: number;
|
|
62
|
-
height: number;
|
|
63
|
-
}>;
|
|
64
|
-
width: number;
|
|
65
|
-
height: number;
|
|
66
|
-
position?: {
|
|
67
|
-
x: number;
|
|
68
|
-
y: number;
|
|
69
|
-
};
|
|
70
|
-
parentId?: string;
|
|
71
|
-
}
|
|
72
|
-
interface SequenceParticipant {
|
|
73
|
-
id: string;
|
|
74
|
-
name: string;
|
|
75
|
-
alias?: string;
|
|
76
|
-
index: number;
|
|
77
|
-
}
|
|
78
|
-
interface SequenceMessage {
|
|
79
|
-
from: string;
|
|
80
|
-
to: string;
|
|
81
|
-
label: string;
|
|
82
|
-
lineStyle: 'solid' | 'dashed';
|
|
83
|
-
arrowType: 'filled' | 'open' | 'none';
|
|
84
|
-
rowIndex: number;
|
|
85
|
-
}
|
|
86
|
-
interface SequenceDiagramData {
|
|
87
|
-
participants: SequenceParticipant[];
|
|
88
|
-
messages: SequenceMessage[];
|
|
89
|
-
}
|
|
90
|
-
//#endregion
|
|
91
|
-
//#region src/types/rf.d.ts
|
|
92
|
-
type CustomData = {
|
|
93
|
-
source?: 'mermaid';
|
|
94
|
-
componentId?: string;
|
|
95
|
-
src?: string;
|
|
96
|
-
iconSrc?: string;
|
|
97
|
-
childNodes?: string[];
|
|
98
|
-
autoLayout?: boolean;
|
|
99
|
-
componentFields?: RFComponentField[];
|
|
100
|
-
shape?: string;
|
|
101
|
-
serviceTable?: {
|
|
102
|
-
serviceName: string;
|
|
103
|
-
databaseName: string;
|
|
104
|
-
tableName: string;
|
|
105
|
-
};
|
|
106
|
-
title?: string;
|
|
107
|
-
columns?: string[];
|
|
108
|
-
rows?: string[][];
|
|
109
|
-
strokeAnimation?: 'dash';
|
|
110
|
-
};
|
|
111
|
-
interface ReactFlowData {
|
|
112
|
-
nodes: Node<CustomData>[];
|
|
113
|
-
edges: Edge<CustomData>[];
|
|
114
|
-
}
|
|
115
|
-
interface RFComponentField {
|
|
116
|
-
componentFieldId: string;
|
|
117
|
-
type: ComponentInputType;
|
|
118
|
-
label: string;
|
|
119
|
-
data: unknown;
|
|
120
|
-
}
|
|
121
|
-
//#endregion
|
|
122
|
-
export { MermaidNode as a, SequenceParticipant as c, LinkOrFileValue as d, ServerComponentField as f, MermaidEdge as i, SubgraphInfo as l, RFComponentField as n, SequenceDiagramData as o, ServerComponentFieldInput as p, ReactFlowData as r, SequenceMessage as s, CustomData as t, SubgraphLayout as u };
|