@next-bricks/visual-builder 0.3.5 → 0.3.6

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 (2) hide show
  1. package/dist/types.json +664 -241
  2. package/package.json +3 -3
package/dist/types.json CHANGED
@@ -1,272 +1,695 @@
1
1
  {
2
- "visual-builder.workbench-action-list": [
3
- {
4
- "name": "SidebarMenu",
5
- "type": "interface",
6
- "annotation": [
7
- {
8
- "type": "propertySignature",
9
- "name": "title",
10
- "property": {
11
- "type": "keyword",
12
- "value": "string"
13
- }
14
- },
15
- {
16
- "type": "propertySignature",
17
- "name": "icon",
18
- "property": {
19
- "type": "reference",
20
- "typeName": "GeneralIconProps"
21
- }
22
- },
23
- {
24
- "type": "propertySignature",
25
- "name": "menuItems",
26
- "property": {
27
- "type": "array",
28
- "elementType": {
2
+ "visual-builder.workbench-sidebar": {
3
+ "properties": [
4
+ {
5
+ "name": "titleLabel",
6
+ "types": {
7
+ "type": "union",
8
+ "types": [
9
+ {
10
+ "type": "keyword",
11
+ "value": "string"
12
+ }
13
+ ]
14
+ }
15
+ }
16
+ ]
17
+ },
18
+ "visual-builder.workbench-action": {
19
+ "properties": [
20
+ {
21
+ "name": "icon",
22
+ "types": {
23
+ "type": "union",
24
+ "types": [
25
+ {
29
26
  "type": "reference",
30
- "typeName": "SidebarMenuItem"
27
+ "typeName": "GeneralIconProps"
31
28
  }
32
- }
29
+ ]
30
+ }
31
+ },
32
+ {
33
+ "name": "to",
34
+ "types": {
35
+ "type": "union",
36
+ "types": [
37
+ {
38
+ "type": "keyword",
39
+ "value": "string"
40
+ }
41
+ ]
42
+ }
43
+ },
44
+ {
45
+ "name": "active",
46
+ "types": {
47
+ "type": "union",
48
+ "types": [
49
+ {
50
+ "type": "keyword",
51
+ "value": "boolean"
52
+ }
53
+ ]
54
+ }
55
+ },
56
+ {
57
+ "name": "href",
58
+ "types": {
59
+ "type": "union",
60
+ "types": [
61
+ {
62
+ "type": "keyword",
63
+ "value": "string"
64
+ }
65
+ ]
66
+ }
67
+ },
68
+ {
69
+ "name": "target",
70
+ "types": {
71
+ "type": "union",
72
+ "types": [
73
+ {
74
+ "type": "keyword",
75
+ "value": "string"
76
+ }
77
+ ]
78
+ }
79
+ }
80
+ ]
81
+ },
82
+ "visual-builder.workbench-action-list": {
83
+ "properties": [
84
+ {
85
+ "name": "appId",
86
+ "types": {
87
+ "type": "union",
88
+ "types": [
89
+ {
90
+ "type": "keyword",
91
+ "value": "string"
92
+ }
93
+ ]
94
+ }
95
+ },
96
+ {
97
+ "name": "menu",
98
+ "types": {
99
+ "type": "reference",
100
+ "typeName": "SidebarMenu"
33
101
  }
34
- ]
35
- }
36
- ],
37
- "visual-builder.workbench-tree": [
38
- {
39
- "name": "WorkbenchNodeData",
40
- "type": "interface",
41
- "typeParameters": {
42
- "type": "typeParameterDeclaration",
43
- "params": [
102
+ }
103
+ ],
104
+ "types": [
105
+ {
106
+ "name": "SidebarMenu",
107
+ "type": "interface",
108
+ "annotation": [
44
109
  {
45
- "type": "typeParameter",
46
- "value": "T",
47
- "default": {
110
+ "type": "propertySignature",
111
+ "name": "title",
112
+ "property": {
48
113
  "type": "keyword",
49
- "value": "any"
114
+ "value": "string"
115
+ }
116
+ },
117
+ {
118
+ "type": "propertySignature",
119
+ "name": "icon",
120
+ "property": {
121
+ "type": "reference",
122
+ "typeName": "GeneralIconProps"
123
+ }
124
+ },
125
+ {
126
+ "type": "propertySignature",
127
+ "name": "menuItems",
128
+ "property": {
129
+ "type": "array",
130
+ "elementType": {
131
+ "type": "reference",
132
+ "typeName": "SidebarMenuItem"
133
+ }
50
134
  }
51
135
  }
52
136
  ]
137
+ }
138
+ ]
139
+ },
140
+ "visual-builder.workbench-pane": {
141
+ "properties": [
142
+ {
143
+ "name": "titleLabel",
144
+ "types": {
145
+ "type": "union",
146
+ "types": [
147
+ {
148
+ "type": "keyword",
149
+ "value": "string"
150
+ }
151
+ ]
152
+ }
53
153
  },
54
- "annotation": [
55
- {
56
- "type": "propertySignature",
57
- "name": "if",
58
- "property": {
59
- "type": "keyword",
60
- "value": "boolean"
61
- }
62
- },
63
- {
64
- "type": "propertySignature",
65
- "name": "key",
66
- "property": {
67
- "type": "union",
68
- "types": [
69
- {
70
- "type": "keyword",
71
- "value": "string"
72
- },
73
- {
74
- "type": "keyword",
75
- "value": "number"
76
- }
77
- ]
78
- }
79
- },
80
- {
81
- "type": "propertySignature",
82
- "name": "name",
83
- "property": {
84
- "type": "keyword",
85
- "value": "string"
86
- }
87
- },
88
- {
89
- "type": "propertySignature",
90
- "name": "icon",
91
- "property": {
154
+ {
155
+ "name": "active",
156
+ "types": {
157
+ "type": "union",
158
+ "types": [
159
+ {
160
+ "type": "keyword",
161
+ "value": "boolean"
162
+ }
163
+ ]
164
+ }
165
+ },
166
+ {
167
+ "name": "badge",
168
+ "types": {
169
+ "type": "union",
170
+ "types": [
171
+ {
172
+ "type": "keyword",
173
+ "value": "number"
174
+ }
175
+ ]
176
+ }
177
+ }
178
+ ],
179
+ "events": [
180
+ {
181
+ "name": "active.change",
182
+ "types": {
183
+ "type": "keyword",
184
+ "value": "boolean"
185
+ }
186
+ },
187
+ {
188
+ "name": "active.firstActivated"
189
+ }
190
+ ]
191
+ },
192
+ "visual-builder.workbench-tree": {
193
+ "properties": [
194
+ {
195
+ "name": "nodes",
196
+ "types": {
197
+ "type": "array",
198
+ "elementType": {
92
199
  "type": "reference",
93
- "typeName": "GeneralIconProps"
200
+ "typeName": "WorkbenchNodeData"
94
201
  }
95
- },
96
- {
97
- "type": "propertySignature",
98
- "name": "data",
99
- "property": {
202
+ }
203
+ },
204
+ {
205
+ "name": "actions",
206
+ "types": {
207
+ "type": "array",
208
+ "elementType": {
100
209
  "type": "reference",
101
- "typeName": "T"
102
- }
103
- },
104
- {
105
- "type": "propertySignature",
106
- "name": "labelColor",
107
- "property": {
108
- "type": "keyword",
109
- "value": "string"
210
+ "typeName": "WorkbenchTreeAction"
110
211
  }
111
- },
112
- {
113
- "type": "propertySignature",
114
- "name": "link",
115
- "property": {
116
- "type": "union",
117
- "types": [
118
- {
119
- "type": "typeLiteral",
120
- "members": [
212
+ }
213
+ },
214
+ {
215
+ "name": "actionsHidden",
216
+ "types": {
217
+ "type": "keyword",
218
+ "value": "boolean"
219
+ }
220
+ },
221
+ {
222
+ "name": "placeholder",
223
+ "types": {
224
+ "type": "keyword",
225
+ "value": "string"
226
+ }
227
+ },
228
+ {
229
+ "name": "isTransformName",
230
+ "types": {
231
+ "type": "keyword",
232
+ "value": "boolean"
233
+ }
234
+ },
235
+ {
236
+ "name": "searchPlaceholder",
237
+ "types": {
238
+ "type": "keyword",
239
+ "value": "string"
240
+ }
241
+ },
242
+ {
243
+ "name": "noSearch",
244
+ "types": {
245
+ "type": "keyword",
246
+ "value": "boolean"
247
+ }
248
+ },
249
+ {
250
+ "name": "activeKey",
251
+ "types": {
252
+ "type": "union",
253
+ "types": [
254
+ {
255
+ "type": "keyword",
256
+ "value": "string"
257
+ },
258
+ {
259
+ "type": "keyword",
260
+ "value": "number"
261
+ }
262
+ ]
263
+ }
264
+ },
265
+ {
266
+ "name": "showMatchedNodeOnly",
267
+ "types": {
268
+ "type": "keyword",
269
+ "value": "boolean"
270
+ }
271
+ },
272
+ {
273
+ "name": "matchNodeDataFields",
274
+ "types": {
275
+ "type": "union",
276
+ "types": [
277
+ {
278
+ "type": "keyword",
279
+ "value": "string"
280
+ },
281
+ {
282
+ "type": "array",
283
+ "elementType": {
284
+ "type": "keyword",
285
+ "value": "string"
286
+ }
287
+ }
288
+ ]
289
+ }
290
+ },
291
+ {
292
+ "name": "fixedActionsFor",
293
+ "types": {
294
+ "type": "union",
295
+ "types": [
296
+ {
297
+ "type": "reference",
298
+ "typeName": "Record",
299
+ "typeParameters": [
300
+ {
301
+ "type": "keyword",
302
+ "value": "string"
303
+ },
304
+ {
305
+ "type": "keyword",
306
+ "value": "any"
307
+ }
308
+ ]
309
+ },
310
+ {
311
+ "type": "array",
312
+ "elementType": {
313
+ "type": "reference",
314
+ "typeName": "Record",
315
+ "typeParameters": [
121
316
  {
122
- "type": "propertySignature",
123
- "name": "to",
124
- "property": {
125
- "type": "keyword",
126
- "value": "string"
127
- }
128
- }
129
- ]
130
- },
131
- {
132
- "type": "typeLiteral",
133
- "members": [
317
+ "type": "keyword",
318
+ "value": "string"
319
+ },
134
320
  {
135
- "type": "propertySignature",
136
- "name": "href",
137
- "property": {
138
- "type": "keyword",
139
- "value": "string"
140
- }
321
+ "type": "keyword",
322
+ "value": "any"
141
323
  }
142
324
  ]
143
325
  }
144
- ]
145
- }
146
- },
147
- {
148
- "type": "propertySignature",
149
- "name": "badge",
150
- "property": {
151
- "type": "reference",
152
- "typeName": "GeneralIconProps"
153
- }
154
- },
155
- {
156
- "type": "propertySignature",
157
- "name": "children",
158
- "property": {
159
- "type": "array",
160
- "elementType": {
161
- "type": "reference",
162
- "typeName": "WorkbenchNodeData"
163
326
  }
164
- }
165
- },
166
- {
167
- "type": "propertySignature",
168
- "name": "matched",
169
- "property": {
170
- "type": "keyword",
171
- "value": "boolean"
172
- }
173
- },
174
- {
175
- "type": "propertySignature",
176
- "name": "matchedSelf",
177
- "property": {
178
- "type": "keyword",
179
- "value": "boolean"
180
- }
181
- },
182
- {
183
- "type": "propertySignature",
184
- "name": "path",
185
- "property": {
186
- "type": "keyword",
187
- "value": "string"
188
- }
189
- },
190
- {
191
- "type": "propertySignature",
192
- "name": "isContainer",
193
- "property": {
194
- "type": "keyword",
195
- "value": "boolean"
196
- }
197
- },
198
- {
199
- "type": "propertySignature",
200
- "name": "originKey",
201
- "property": {
202
- "type": "keyword",
203
- "value": "string"
204
- }
205
- },
206
- {
207
- "type": "propertySignature",
208
- "name": "parentPath",
209
- "property": {
210
- "type": "keyword",
211
- "value": "string"
212
- }
213
- },
214
- {
215
- "type": "propertySignature",
216
- "name": "unreachable",
217
- "property": {
218
- "type": "keyword",
219
- "value": "boolean"
220
- }
327
+ ]
221
328
  }
222
- ]
223
- },
224
- {
225
- "name": "WorkbenchTreeAction",
226
- "type": "interface",
227
- "annotation": [
228
- {
229
- "type": "propertySignature",
230
- "name": "action",
231
- "property": {
232
- "type": "keyword",
233
- "value": "string"
234
- }
235
- },
236
- {
237
- "type": "propertySignature",
238
- "name": "icon",
239
- "property": {
240
- "type": "reference",
241
- "typeName": "GeneralIconProps"
242
- }
243
- },
244
- {
245
- "type": "propertySignature",
246
- "name": "title",
247
- "property": {
329
+ },
330
+ {
331
+ "name": "collapsible",
332
+ "types": {
333
+ "type": "keyword",
334
+ "value": "boolean"
335
+ }
336
+ },
337
+ {
338
+ "name": "collapsedNodes",
339
+ "types": {
340
+ "type": "array",
341
+ "elementType": {
248
342
  "type": "keyword",
249
343
  "value": "string"
250
344
  }
251
- },
252
- {
253
- "type": "propertySignature",
254
- "name": "if",
255
- "property": {
256
- "type": "union",
257
- "types": [
258
- {
345
+ }
346
+ },
347
+ {
348
+ "name": "allowDrag",
349
+ "types": {
350
+ "type": "keyword",
351
+ "value": "boolean"
352
+ }
353
+ },
354
+ {
355
+ "name": "allowDragToRoot",
356
+ "types": {
357
+ "type": "keyword",
358
+ "value": "boolean"
359
+ }
360
+ },
361
+ {
362
+ "name": "allowDragToInside",
363
+ "types": {
364
+ "type": "keyword",
365
+ "value": "boolean"
366
+ }
367
+ },
368
+ {
369
+ "name": "nodeKey",
370
+ "types": {
371
+ "type": "keyword",
372
+ "value": "string"
373
+ }
374
+ },
375
+ {
376
+ "name": "skipNotify",
377
+ "types": {
378
+ "type": "keyword",
379
+ "value": "boolean"
380
+ }
381
+ }
382
+ ],
383
+ "events": [
384
+ {
385
+ "name": "action.click",
386
+ "types": {
387
+ "type": "reference",
388
+ "typeName": "ActionClickDetail"
389
+ }
390
+ },
391
+ {
392
+ "name": "node.click",
393
+ "types": {
394
+ "type": "keyword",
395
+ "value": "any"
396
+ }
397
+ },
398
+ {
399
+ "name": "node.drop",
400
+ "types": {
401
+ "type": "keyword",
402
+ "value": "any"
403
+ }
404
+ },
405
+ {
406
+ "name": "context.menu",
407
+ "types": {
408
+ "type": "keyword",
409
+ "value": "any"
410
+ }
411
+ },
412
+ {
413
+ "name": "node.toggle",
414
+ "types": {
415
+ "type": "typeLiteral",
416
+ "members": [
417
+ {
418
+ "type": "propertySignature",
419
+ "name": "nodeId",
420
+ "property": {
259
421
  "type": "keyword",
260
422
  "value": "string"
261
- },
262
- {
423
+ }
424
+ },
425
+ {
426
+ "type": "propertySignature",
427
+ "name": "collapsed",
428
+ "property": {
263
429
  "type": "keyword",
264
430
  "value": "boolean"
265
431
  }
266
- ]
267
- }
432
+ }
433
+ ]
268
434
  }
269
- ]
270
- }
271
- ]
435
+ }
436
+ ],
437
+ "types": [
438
+ {
439
+ "name": "WorkbenchNodeData",
440
+ "type": "interface",
441
+ "typeParameters": {
442
+ "type": "typeParameterDeclaration",
443
+ "params": [
444
+ {
445
+ "type": "typeParameter",
446
+ "value": "T",
447
+ "default": {
448
+ "type": "keyword",
449
+ "value": "any"
450
+ }
451
+ }
452
+ ]
453
+ },
454
+ "annotation": [
455
+ {
456
+ "type": "propertySignature",
457
+ "name": "if",
458
+ "property": {
459
+ "type": "keyword",
460
+ "value": "boolean"
461
+ }
462
+ },
463
+ {
464
+ "type": "propertySignature",
465
+ "name": "key",
466
+ "property": {
467
+ "type": "union",
468
+ "types": [
469
+ {
470
+ "type": "keyword",
471
+ "value": "string"
472
+ },
473
+ {
474
+ "type": "keyword",
475
+ "value": "number"
476
+ }
477
+ ]
478
+ }
479
+ },
480
+ {
481
+ "type": "propertySignature",
482
+ "name": "name",
483
+ "property": {
484
+ "type": "keyword",
485
+ "value": "string"
486
+ }
487
+ },
488
+ {
489
+ "type": "propertySignature",
490
+ "name": "icon",
491
+ "property": {
492
+ "type": "reference",
493
+ "typeName": "GeneralIconProps"
494
+ }
495
+ },
496
+ {
497
+ "type": "propertySignature",
498
+ "name": "data",
499
+ "property": {
500
+ "type": "reference",
501
+ "typeName": "T"
502
+ }
503
+ },
504
+ {
505
+ "type": "propertySignature",
506
+ "name": "labelColor",
507
+ "property": {
508
+ "type": "keyword",
509
+ "value": "string"
510
+ }
511
+ },
512
+ {
513
+ "type": "propertySignature",
514
+ "name": "link",
515
+ "property": {
516
+ "type": "union",
517
+ "types": [
518
+ {
519
+ "type": "typeLiteral",
520
+ "members": [
521
+ {
522
+ "type": "propertySignature",
523
+ "name": "to",
524
+ "property": {
525
+ "type": "keyword",
526
+ "value": "string"
527
+ }
528
+ }
529
+ ]
530
+ },
531
+ {
532
+ "type": "typeLiteral",
533
+ "members": [
534
+ {
535
+ "type": "propertySignature",
536
+ "name": "href",
537
+ "property": {
538
+ "type": "keyword",
539
+ "value": "string"
540
+ }
541
+ }
542
+ ]
543
+ }
544
+ ]
545
+ }
546
+ },
547
+ {
548
+ "type": "propertySignature",
549
+ "name": "badge",
550
+ "property": {
551
+ "type": "reference",
552
+ "typeName": "GeneralIconProps"
553
+ }
554
+ },
555
+ {
556
+ "type": "propertySignature",
557
+ "name": "children",
558
+ "property": {
559
+ "type": "array",
560
+ "elementType": {
561
+ "type": "reference",
562
+ "typeName": "WorkbenchNodeData"
563
+ }
564
+ }
565
+ },
566
+ {
567
+ "type": "propertySignature",
568
+ "name": "matched",
569
+ "property": {
570
+ "type": "keyword",
571
+ "value": "boolean"
572
+ }
573
+ },
574
+ {
575
+ "type": "propertySignature",
576
+ "name": "matchedSelf",
577
+ "property": {
578
+ "type": "keyword",
579
+ "value": "boolean"
580
+ }
581
+ },
582
+ {
583
+ "type": "propertySignature",
584
+ "name": "path",
585
+ "property": {
586
+ "type": "keyword",
587
+ "value": "string"
588
+ }
589
+ },
590
+ {
591
+ "type": "propertySignature",
592
+ "name": "isContainer",
593
+ "property": {
594
+ "type": "keyword",
595
+ "value": "boolean"
596
+ }
597
+ },
598
+ {
599
+ "type": "propertySignature",
600
+ "name": "originKey",
601
+ "property": {
602
+ "type": "keyword",
603
+ "value": "string"
604
+ }
605
+ },
606
+ {
607
+ "type": "propertySignature",
608
+ "name": "parentPath",
609
+ "property": {
610
+ "type": "keyword",
611
+ "value": "string"
612
+ }
613
+ },
614
+ {
615
+ "type": "propertySignature",
616
+ "name": "unreachable",
617
+ "property": {
618
+ "type": "keyword",
619
+ "value": "boolean"
620
+ }
621
+ }
622
+ ]
623
+ },
624
+ {
625
+ "name": "WorkbenchTreeAction",
626
+ "type": "interface",
627
+ "annotation": [
628
+ {
629
+ "type": "propertySignature",
630
+ "name": "action",
631
+ "property": {
632
+ "type": "keyword",
633
+ "value": "string"
634
+ }
635
+ },
636
+ {
637
+ "type": "propertySignature",
638
+ "name": "icon",
639
+ "property": {
640
+ "type": "reference",
641
+ "typeName": "GeneralIconProps"
642
+ }
643
+ },
644
+ {
645
+ "type": "propertySignature",
646
+ "name": "title",
647
+ "property": {
648
+ "type": "keyword",
649
+ "value": "string"
650
+ }
651
+ },
652
+ {
653
+ "type": "propertySignature",
654
+ "name": "if",
655
+ "property": {
656
+ "type": "union",
657
+ "types": [
658
+ {
659
+ "type": "keyword",
660
+ "value": "string"
661
+ },
662
+ {
663
+ "type": "keyword",
664
+ "value": "boolean"
665
+ }
666
+ ]
667
+ }
668
+ }
669
+ ]
670
+ },
671
+ {
672
+ "name": "ActionClickDetail",
673
+ "type": "interface",
674
+ "annotation": [
675
+ {
676
+ "type": "propertySignature",
677
+ "name": "action",
678
+ "property": {
679
+ "type": "keyword",
680
+ "value": "string"
681
+ }
682
+ },
683
+ {
684
+ "type": "propertySignature",
685
+ "name": "data",
686
+ "property": {
687
+ "type": "keyword",
688
+ "value": "any"
689
+ }
690
+ }
691
+ ]
692
+ }
693
+ ]
694
+ }
272
695
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/visual-builder",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/visual-builder",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,8 +32,8 @@
32
32
  "postpublish": "mv package.json.bak package.json"
33
33
  },
34
34
  "devDependencies": {
35
- "@next-core/build-next-bricks": "^1.9.0",
35
+ "@next-core/build-next-bricks": "^1.10.0",
36
36
  "@next-core/test-next": "^1.0.6"
37
37
  },
38
- "gitHead": "17a18f696648ddc1417ec395d5b46a28a9dc386c"
38
+ "gitHead": "d24d177295f0f3edbf6d28b1d9b6ae87c2f506ec"
39
39
  }