@kong-ui-public/entities-plugins 9.44.2 → 9.45.0

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.
Files changed (32) hide show
  1. package/dist/entities-plugins.es.js +6927 -6392
  2. package/dist/entities-plugins.umd.js +38 -38
  3. package/dist/style.css +1 -1
  4. package/dist/types/components/free-form/Datakit/DatakitForm.vue.d.ts.map +1 -1
  5. package/dist/types/components/free-form/Datakit/composables.d.ts +1 -1
  6. package/dist/types/components/free-form/Datakit/composables.d.ts.map +1 -1
  7. package/dist/types/components/free-form/Datakit/flow-editor/FlowEditor.vue.d.ts +9 -0
  8. package/dist/types/components/free-form/Datakit/flow-editor/FlowEditor.vue.d.ts.map +1 -0
  9. package/dist/types/components/free-form/Datakit/flow-editor/modal/EditorMain.vue.d.ts +3 -3
  10. package/dist/types/components/free-form/Datakit/flow-editor/modal/EditorMain.vue.d.ts.map +1 -1
  11. package/dist/types/components/free-form/Datakit/flow-editor/node/FlowNode.vue.d.ts +3 -3
  12. package/dist/types/components/free-form/Datakit/flow-editor/node/FlowNode.vue.d.ts.map +1 -1
  13. package/dist/types/components/free-form/Datakit/flow-editor/node/NodeBadge.vue.d.ts.map +1 -1
  14. package/dist/types/components/free-form/Datakit/flow-editor/node/NodePanelItem.vue.d.ts +3 -3
  15. package/dist/types/components/free-form/Datakit/flow-editor/node/NodePanelItem.vue.d.ts.map +1 -1
  16. package/dist/types/components/free-form/Datakit/flow-editor/node/NodePropertiesPanel.vue.d.ts +3 -3
  17. package/dist/types/components/free-form/Datakit/flow-editor/node/NodePropertiesPanel.vue.d.ts.map +1 -1
  18. package/dist/types/components/free-form/Datakit/flow-editor/node/node.d.ts +8 -477
  19. package/dist/types/components/free-form/Datakit/flow-editor/node/node.d.ts.map +1 -1
  20. package/dist/types/components/free-form/Datakit/flow-editor/store/helpers.d.ts +31 -0
  21. package/dist/types/components/free-form/Datakit/flow-editor/store/helpers.d.ts.map +1 -0
  22. package/dist/types/components/free-form/Datakit/flow-editor/store/history.d.ts +17 -0
  23. package/dist/types/components/free-form/Datakit/flow-editor/store/history.d.ts.map +1 -0
  24. package/dist/types/components/free-form/Datakit/flow-editor/store/init.d.ts +21 -0
  25. package/dist/types/components/free-form/Datakit/flow-editor/store/init.d.ts.map +1 -0
  26. package/dist/types/components/free-form/Datakit/flow-editor/store/store.d.ts +441 -0
  27. package/dist/types/components/free-form/Datakit/flow-editor/store/store.d.ts.map +1 -0
  28. package/dist/types/components/free-form/Datakit/flow-editor/store/validation.d.ts +25 -0
  29. package/dist/types/components/free-form/Datakit/flow-editor/store/validation.d.ts.map +1 -0
  30. package/dist/types/components/free-form/Datakit/types.d.ts +84 -23
  31. package/dist/types/components/free-form/Datakit/types.d.ts.map +1 -1
  32. package/package.json +8 -8
@@ -1,482 +1,13 @@
1
- import type { Node } from '@vue-flow/core';
2
- import type { ImplicitNodeType, NodeData, NodeMeta, NodeType, UserNodeType } from '../../types';
1
+ import type { FieldId, ImplicitNodeName, ImplicitNodeType, NodeInstance, NodeId, NodeMeta, NodeName, NodeType, ConfigNodeType } from '../../types';
3
2
  export declare function getNodeTypeDescription(type: NodeType): string;
4
3
  export declare function getNodeTypeName(type: NodeType): string;
5
- export declare const USER_NODE_META_MAP: {
6
- readonly call: {
7
- readonly type: "call";
8
- readonly summary: string;
9
- readonly description: string;
10
- readonly icon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
11
- title: {
12
- type: StringConstructor;
13
- required: false;
14
- default: string;
15
- };
16
- color: {
17
- type: StringConstructor;
18
- required: false;
19
- default: string;
20
- };
21
- display: {
22
- type: StringConstructor;
23
- required: false;
24
- default: string;
25
- };
26
- decorative: {
27
- type: BooleanConstructor;
28
- required: false;
29
- default: boolean;
30
- };
31
- size: {
32
- type: (StringConstructor | NumberConstructor)[];
33
- required: false;
34
- default: "24px";
35
- validator: (sizeValue: number | string) => boolean;
36
- };
37
- as: {
38
- type: StringConstructor;
39
- required: false;
40
- default: string;
41
- };
42
- staticIds: {
43
- type: BooleanConstructor;
44
- default: boolean;
45
- };
46
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
47
- title: {
48
- type: StringConstructor;
49
- required: false;
50
- default: string;
51
- };
52
- color: {
53
- type: StringConstructor;
54
- required: false;
55
- default: string;
56
- };
57
- display: {
58
- type: StringConstructor;
59
- required: false;
60
- default: string;
61
- };
62
- decorative: {
63
- type: BooleanConstructor;
64
- required: false;
65
- default: boolean;
66
- };
67
- size: {
68
- type: (StringConstructor | NumberConstructor)[];
69
- required: false;
70
- default: "24px";
71
- validator: (sizeValue: number | string) => boolean;
72
- };
73
- as: {
74
- type: StringConstructor;
75
- required: false;
76
- default: string;
77
- };
78
- staticIds: {
79
- type: BooleanConstructor;
80
- default: boolean;
81
- };
82
- }>> & Readonly<{}>, {
83
- title: string;
84
- color: string;
85
- display: string;
86
- decorative: boolean;
87
- size: string | number;
88
- as: string;
89
- staticIds: boolean;
90
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
91
- readonly fields: {
92
- readonly input: ["headers", "body", "query"];
93
- readonly output: ["headers", "body", "status"];
94
- };
95
- };
96
- readonly jq: {
97
- readonly type: "jq";
98
- readonly summary: string;
99
- readonly description: string;
100
- readonly icon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
101
- title: {
102
- type: StringConstructor;
103
- required: false;
104
- default: string;
105
- };
106
- color: {
107
- type: StringConstructor;
108
- required: false;
109
- default: string;
110
- };
111
- display: {
112
- type: StringConstructor;
113
- required: false;
114
- default: string;
115
- };
116
- decorative: {
117
- type: BooleanConstructor;
118
- required: false;
119
- default: boolean;
120
- };
121
- size: {
122
- type: (StringConstructor | NumberConstructor)[];
123
- required: false;
124
- default: "24px";
125
- validator: (sizeValue: number | string) => boolean;
126
- };
127
- as: {
128
- type: StringConstructor;
129
- required: false;
130
- default: string;
131
- };
132
- staticIds: {
133
- type: BooleanConstructor;
134
- default: boolean;
135
- };
136
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
137
- title: {
138
- type: StringConstructor;
139
- required: false;
140
- default: string;
141
- };
142
- color: {
143
- type: StringConstructor;
144
- required: false;
145
- default: string;
146
- };
147
- display: {
148
- type: StringConstructor;
149
- required: false;
150
- default: string;
151
- };
152
- decorative: {
153
- type: BooleanConstructor;
154
- required: false;
155
- default: boolean;
156
- };
157
- size: {
158
- type: (StringConstructor | NumberConstructor)[];
159
- required: false;
160
- default: "24px";
161
- validator: (sizeValue: number | string) => boolean;
162
- };
163
- as: {
164
- type: StringConstructor;
165
- required: false;
166
- default: string;
167
- };
168
- staticIds: {
169
- type: BooleanConstructor;
170
- default: boolean;
171
- };
172
- }>> & Readonly<{}>, {
173
- title: string;
174
- color: string;
175
- display: string;
176
- decorative: boolean;
177
- size: string | number;
178
- as: string;
179
- staticIds: boolean;
180
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
181
- };
182
- readonly exit: {
183
- readonly type: "exit";
184
- readonly summary: string;
185
- readonly description: string;
186
- readonly icon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
187
- title: {
188
- type: StringConstructor;
189
- required: false;
190
- default: string;
191
- };
192
- color: {
193
- type: StringConstructor;
194
- required: false;
195
- default: string;
196
- };
197
- display: {
198
- type: StringConstructor;
199
- required: false;
200
- default: string;
201
- };
202
- decorative: {
203
- type: BooleanConstructor;
204
- required: false;
205
- default: boolean;
206
- };
207
- size: {
208
- type: (StringConstructor | NumberConstructor)[];
209
- required: false;
210
- default: "24px";
211
- validator: (sizeValue: number | string) => boolean;
212
- };
213
- as: {
214
- type: StringConstructor;
215
- required: false;
216
- default: string;
217
- };
218
- staticIds: {
219
- type: BooleanConstructor;
220
- default: boolean;
221
- };
222
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
223
- title: {
224
- type: StringConstructor;
225
- required: false;
226
- default: string;
227
- };
228
- color: {
229
- type: StringConstructor;
230
- required: false;
231
- default: string;
232
- };
233
- display: {
234
- type: StringConstructor;
235
- required: false;
236
- default: string;
237
- };
238
- decorative: {
239
- type: BooleanConstructor;
240
- required: false;
241
- default: boolean;
242
- };
243
- size: {
244
- type: (StringConstructor | NumberConstructor)[];
245
- required: false;
246
- default: "24px";
247
- validator: (sizeValue: number | string) => boolean;
248
- };
249
- as: {
250
- type: StringConstructor;
251
- required: false;
252
- default: string;
253
- };
254
- staticIds: {
255
- type: BooleanConstructor;
256
- default: boolean;
257
- };
258
- }>> & Readonly<{}>, {
259
- title: string;
260
- color: string;
261
- display: string;
262
- decorative: boolean;
263
- size: string | number;
264
- as: string;
265
- staticIds: boolean;
266
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
267
- readonly fields: {
268
- readonly input: ["headers", "body"];
269
- };
270
- };
271
- readonly property: {
272
- readonly type: "property";
273
- readonly summary: string;
274
- readonly description: string;
275
- readonly icon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
276
- title: {
277
- type: StringConstructor;
278
- required: false;
279
- default: string;
280
- };
281
- color: {
282
- type: StringConstructor;
283
- required: false;
284
- default: string;
285
- };
286
- display: {
287
- type: StringConstructor;
288
- required: false;
289
- default: string;
290
- };
291
- decorative: {
292
- type: BooleanConstructor;
293
- required: false;
294
- default: boolean;
295
- };
296
- size: {
297
- type: (StringConstructor | NumberConstructor)[];
298
- required: false;
299
- default: "24px";
300
- validator: (sizeValue: number | string) => boolean;
301
- };
302
- as: {
303
- type: StringConstructor;
304
- required: false;
305
- default: string;
306
- };
307
- staticIds: {
308
- type: BooleanConstructor;
309
- default: boolean;
310
- };
311
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
312
- title: {
313
- type: StringConstructor;
314
- required: false;
315
- default: string;
316
- };
317
- color: {
318
- type: StringConstructor;
319
- required: false;
320
- default: string;
321
- };
322
- display: {
323
- type: StringConstructor;
324
- required: false;
325
- default: string;
326
- };
327
- decorative: {
328
- type: BooleanConstructor;
329
- required: false;
330
- default: boolean;
331
- };
332
- size: {
333
- type: (StringConstructor | NumberConstructor)[];
334
- required: false;
335
- default: "24px";
336
- validator: (sizeValue: number | string) => boolean;
337
- };
338
- as: {
339
- type: StringConstructor;
340
- required: false;
341
- default: string;
342
- };
343
- staticIds: {
344
- type: BooleanConstructor;
345
- default: boolean;
346
- };
347
- }>> & Readonly<{}>, {
348
- title: string;
349
- color: string;
350
- display: string;
351
- decorative: boolean;
352
- size: string | number;
353
- as: string;
354
- staticIds: boolean;
355
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
356
- };
357
- readonly static: {
358
- readonly type: "static";
359
- readonly summary: string;
360
- readonly description: string;
361
- readonly icon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
362
- title: {
363
- type: StringConstructor;
364
- required: false;
365
- default: string;
366
- };
367
- color: {
368
- type: StringConstructor;
369
- required: false;
370
- default: string;
371
- };
372
- display: {
373
- type: StringConstructor;
374
- required: false;
375
- default: string;
376
- };
377
- decorative: {
378
- type: BooleanConstructor;
379
- required: false;
380
- default: boolean;
381
- };
382
- size: {
383
- type: (StringConstructor | NumberConstructor)[];
384
- required: false;
385
- default: "24px";
386
- validator: (sizeValue: number | string) => boolean;
387
- };
388
- as: {
389
- type: StringConstructor;
390
- required: false;
391
- default: string;
392
- };
393
- staticIds: {
394
- type: BooleanConstructor;
395
- default: boolean;
396
- };
397
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
398
- title: {
399
- type: StringConstructor;
400
- required: false;
401
- default: string;
402
- };
403
- color: {
404
- type: StringConstructor;
405
- required: false;
406
- default: string;
407
- };
408
- display: {
409
- type: StringConstructor;
410
- required: false;
411
- default: string;
412
- };
413
- decorative: {
414
- type: BooleanConstructor;
415
- required: false;
416
- default: boolean;
417
- };
418
- size: {
419
- type: (StringConstructor | NumberConstructor)[];
420
- required: false;
421
- default: "24px";
422
- validator: (sizeValue: number | string) => boolean;
423
- };
424
- as: {
425
- type: StringConstructor;
426
- required: false;
427
- default: string;
428
- };
429
- staticIds: {
430
- type: BooleanConstructor;
431
- default: boolean;
432
- };
433
- }>> & Readonly<{}>, {
434
- title: string;
435
- color: string;
436
- display: string;
437
- decorative: boolean;
438
- size: string | number;
439
- as: string;
440
- staticIds: boolean;
441
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
442
- };
443
- };
444
- export declare const IMPLICIT_NODE_META_MAP: {
445
- readonly request: {
446
- readonly type: "request";
447
- readonly description: string;
448
- readonly fields: {
449
- readonly output: ["headers", "body", "query"];
450
- };
451
- };
452
- readonly service_request: {
453
- readonly type: "service_request";
454
- readonly description: string;
455
- readonly fields: {
456
- readonly input: ["headers", "body", "query"];
457
- };
458
- };
459
- readonly service_response: {
460
- readonly type: "service_response";
461
- readonly description: string;
462
- readonly fields: {
463
- readonly output: ["headers", "body"];
464
- };
465
- };
466
- readonly response: {
467
- readonly type: "response";
468
- readonly description: string;
469
- readonly fields: {
470
- readonly input: ["headers", "body"];
471
- };
472
- };
473
- };
474
- export declare const isImplicitNodeType: (type: NodeType) => type is ImplicitNodeType;
475
- export declare const isImplicitNode: (node: NodeMeta | NodeData) => node is (NodeMeta | NodeData) & {
4
+ export declare const CONFIG_NODE_META_MAP: Record<ConfigNodeType, NodeMeta>;
5
+ export declare const IMPLICIT_NODE_META_MAP: Record<ImplicitNodeType, NodeMeta>;
6
+ export declare const isImplicitName: (name: NodeName) => name is ImplicitNodeName;
7
+ export declare const isImplicitType: (type: NodeType) => type is ImplicitNodeType;
8
+ export declare const isImplicitNode: (node: NodeMeta | NodeInstance) => node is (NodeMeta | NodeInstance) & {
476
9
  type: ImplicitNodeType;
477
10
  };
478
- export declare const createNode: (data: NodeData) => Node<NodeData>;
479
- export declare const createImplicitNode: (type: ImplicitNodeType, init?: Partial<Omit<NodeData, "name" | "phase">>) => Node<NodeData>;
480
- export type PartiallyRequired<T, K extends keyof T> = Partial<Omit<T, K>> & Required<Pick<T, K>>;
481
- export declare const createUserNode: (type: UserNodeType, init: PartiallyRequired<NodeData, "name" | "phase">) => Node<NodeData>;
11
+ export declare const isNodeId: (id?: string) => id is NodeId;
12
+ export declare const isFieldId: (id?: string) => id is FieldId;
482
13
  //# sourceMappingURL=node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/free-form/Datakit/flow-editor/node/node.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAE1C,OAAO,KAAK,EACV,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,YAAY,EACb,MAAM,aAAa,CAAA;AAIpB,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAE7D;AAMD,wBAAgB,eAAe,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAEtD;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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QAAQ,EACR,QAAQ,EACR,cAAc,EAEf,MAAM,aAAa,CAAA;AAIpB,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAE7D;AAMD,wBAAgB,eAAe,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAEtD;AAED,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,cAAc,EAAE,QAAQ,CAsCjE,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,gBAAgB,EAAE,QAAQ,CA6BrE,CAAA;AAID,eAAO,MAAM,cAAc,SAAU,QAAQ,KAAG,IAAI,IAAI,gBACG,CAAA;AAE3D,eAAO,MAAM,cAAc,SAAU,QAAQ,KAAG,IAAI,IAAI,gBACG,CAAA;AAE3D,eAAO,MAAM,cAAc,SACnB,QAAQ,GAAG,YAAY,KAC5B,IAAI,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC,GAAG;IAAE,IAAI,EAAE,gBAAgB,CAAA;CACpC,CAAA;AAE3B,eAAO,MAAM,QAAQ,QAAS,MAAM,KAAG,EAAE,IAAI,MAClB,CAAA;AAE3B,eAAO,MAAM,SAAS,QAAS,MAAM,KAAG,EAAE,IAAI,OAClB,CAAA"}
@@ -0,0 +1,31 @@
1
+ import type { EdgeId, FieldId, FieldName, ImplicitNodeName, NodeInstance, NodeField, NodeId, NodeName, NodeType, UINode, ConfigNodeType, ConfigNodeName } from '../../types';
2
+ /** Deep clone for snapshots and immutable returns. */
3
+ export declare function deepClone<T>(value: T): T;
4
+ /** Generate a unique runtime id. */
5
+ export declare function createId<T extends 'node' | 'edge' | 'field'>(type: T): T extends 'node' ? NodeId : T extends 'edge' ? EdgeId : FieldId;
6
+ /** Parse "NODE" or "NODE.FIELD". */
7
+ export declare function parseConnection(connection: string): {
8
+ nodeName: NodeName;
9
+ fieldName?: FieldName;
10
+ };
11
+ /** Default field names from node meta. */
12
+ export declare function getFieldsFromMeta(type: NodeType): {
13
+ input: FieldName[];
14
+ output: FieldName[];
15
+ };
16
+ /** Build NodeField array from names. */
17
+ export declare function toFieldArray(names?: FieldName[]): NodeField[];
18
+ /** Find a field by visible name. */
19
+ export declare function findFieldByName(node: NodeInstance, io: 'input' | 'output', name?: FieldName): NodeField | undefined;
20
+ /** Find a field by id. */
21
+ export declare function findFieldById(node: NodeInstance, io: 'input' | 'output', id?: FieldId): NodeField | undefined;
22
+ /** Quick checks for handle type. */
23
+ export declare function hasOutputField(node: NodeInstance, fieldId?: FieldId): boolean;
24
+ export declare function hasInputField(node: NodeInstance, fieldId?: FieldId): boolean;
25
+ /** The 4 implicit nodes always present. */
26
+ export declare const IMPLICIT_NODE_NAMES: ImplicitNodeName[];
27
+ /** Default UI blob for an implicit node. */
28
+ export declare function makeDefaultImplicitUINode(name: ImplicitNodeName): UINode;
29
+ /** Generate a unique node name when user doesn’t supply one. */
30
+ export declare function generateNodeName(type: ConfigNodeType, nodeNames: Set<NodeName>): ConfigNodeName;
31
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/free-form/Datakit/flow-editor/store/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,OAAO,EACP,SAAS,EAET,gBAAgB,EAChB,YAAY,EACZ,SAAS,EACT,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,cAAc,EACd,cAAc,EACf,MAAM,aAAa,CAAA;AASpB,sDAAsD;AACtD,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAGxC;AAED,oCAAoC;AACpC,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,OAAO,EAC1D,IAAI,EAAE,CAAC,GACN,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,OAAO,CAMjE;AAED,oCAAoC;AAC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+ replace drops previous snapshot. */
3
+ export declare function useTaggedHistory<T>(stateRef: Ref<T>, options?: {
4
+ capacity?: number;
5
+ clone?: (v: T) => T;
6
+ }): {
7
+ canUndo: import("vue").ComputedRef<boolean>;
8
+ canRedo: import("vue").ComputedRef<boolean>;
9
+ commit: (tag?: string, opts?: {
10
+ replace?: boolean;
11
+ }) => void;
12
+ undo: () => void;
13
+ redo: () => void;
14
+ clear: () => void;
15
+ reset: () => void;
16
+ };
17
+ //# sourceMappingURL=history.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/free-form/Datakit/flow-editor/store/history.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE9B,0EAA0E;AAC1E,wBAAgB,gBAAgB,CAAC,CAAC,EAChC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAChB,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;CAAE;;;mBAkB9B,MAAM,SAAS;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE;;;;;EAmC3D"}
@@ -0,0 +1,21 @@
1
+ import type { ConfigNode, EditorState, NodePhase, NodeInstance, NodeName, NodeType, UINode, FieldName, ConfigEdge } from '../../types';
2
+ export declare function initEditorState(configNodes: ConfigNode[], uiNodes: UINode[]): EditorState;
3
+ export declare function makeNodeInstance(payload: {
4
+ type: NodeType;
5
+ name?: NodeName;
6
+ phase?: NodePhase;
7
+ position?: {
8
+ x: number;
9
+ y: number;
10
+ };
11
+ uiFieldNames?: {
12
+ input?: FieldName[];
13
+ output?: FieldName[];
14
+ };
15
+ config?: Record<string, unknown>;
16
+ }): NodeInstance;
17
+ export declare function buildNodeInstance(type: NodeType, configNode?: ConfigNode, uiNode?: UINode): NodeInstance;
18
+ /** Strip identity and IO fields. */
19
+ export declare function extractConfig(configNode: ConfigNode): Record<string, unknown>;
20
+ export declare function collectConnectionsFromConfigNode(configNode: ConfigNode, out: ConfigEdge[]): void;
21
+ //# sourceMappingURL=init.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/free-form/Datakit/flow-editor/store/init.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EAEX,SAAS,EAET,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,SAAS,EACT,UAAU,EACX,MAAM,aAAa,CAAA;AAYpB,wBAAgB,eAAe,CAC7B,WAAW,EAAE,UAAU,EAAE,EACzB,OAAO,EAAE,MAAM,EAAE,GAChB,WAAW,CA4Db;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE;IACxC,IAAI,EAAE,QAAQ,CAAA;IACd,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,QAAQ,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACnC,YAAY,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;QAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAA;KAAE,CAAA;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACjC,GAAG,YAAY,CAqBf;AAED,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,QAAQ,EACd,UAAU,CAAC,EAAE,UAAU,EACvB,MAAM,CAAC,EAAE,MAAM,GACd,YAAY,CAad;AAED,oCAAoC;AACpC,wBAAgB,aAAa,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAI7E;AAED,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,UAAU,EAAE,GAChB,IAAI,CA4CN"}