@next-bricks/visual-builder 1.36.7 → 1.36.8

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/types.json CHANGED
@@ -45,6 +45,63 @@
45
45
  ],
46
46
  "methods": []
47
47
  },
48
+ "visual-builder.workbench-sidebar": {
49
+ "properties": [
50
+ {
51
+ "name": "titleLabel",
52
+ "annotation": {
53
+ "type": "keyword",
54
+ "value": "string"
55
+ }
56
+ }
57
+ ],
58
+ "events": [],
59
+ "methods": []
60
+ },
61
+ "visual-builder.workbench-action": {
62
+ "properties": [
63
+ {
64
+ "name": "icon",
65
+ "annotation": {
66
+ "type": "reference",
67
+ "typeName": {
68
+ "type": "identifier",
69
+ "name": "GeneralIconProps"
70
+ }
71
+ }
72
+ },
73
+ {
74
+ "name": "to",
75
+ "annotation": {
76
+ "type": "keyword",
77
+ "value": "string"
78
+ }
79
+ },
80
+ {
81
+ "name": "active",
82
+ "annotation": {
83
+ "type": "keyword",
84
+ "value": "boolean"
85
+ }
86
+ },
87
+ {
88
+ "name": "href",
89
+ "annotation": {
90
+ "type": "keyword",
91
+ "value": "string"
92
+ }
93
+ },
94
+ {
95
+ "name": "target",
96
+ "annotation": {
97
+ "type": "keyword",
98
+ "value": "string"
99
+ }
100
+ }
101
+ ],
102
+ "events": [],
103
+ "methods": []
104
+ },
48
105
  "visual-builder.page-arch-node": {
49
106
  "properties": [
50
107
  {
@@ -322,19 +379,6 @@
322
379
  }
323
380
  ]
324
381
  },
325
- "visual-builder.workbench-sidebar": {
326
- "properties": [
327
- {
328
- "name": "titleLabel",
329
- "annotation": {
330
- "type": "keyword",
331
- "value": "string"
332
- }
333
- }
334
- ],
335
- "events": [],
336
- "methods": []
337
- },
338
382
  "visual-builder.batch-update-raw-data-generated-view": {
339
383
  "type": "provider",
340
384
  "params": [
@@ -456,50 +500,6 @@
456
500
  }
457
501
  ]
458
502
  },
459
- "visual-builder.workbench-action": {
460
- "properties": [
461
- {
462
- "name": "icon",
463
- "annotation": {
464
- "type": "reference",
465
- "typeName": {
466
- "type": "identifier",
467
- "name": "GeneralIconProps"
468
- }
469
- }
470
- },
471
- {
472
- "name": "to",
473
- "annotation": {
474
- "type": "keyword",
475
- "value": "string"
476
- }
477
- },
478
- {
479
- "name": "active",
480
- "annotation": {
481
- "type": "keyword",
482
- "value": "boolean"
483
- }
484
- },
485
- {
486
- "name": "href",
487
- "annotation": {
488
- "type": "keyword",
489
- "value": "string"
490
- }
491
- },
492
- {
493
- "name": "target",
494
- "annotation": {
495
- "type": "keyword",
496
- "value": "string"
497
- }
498
- }
499
- ],
500
- "events": [],
501
- "methods": []
502
- },
503
503
  "visual-builder.check-editor-by-name": {
504
504
  "type": "provider",
505
505
  "params": [
@@ -1740,6 +1740,18 @@
1740
1740
  }
1741
1741
  }
1742
1742
  }
1743
+ },
1744
+ {
1745
+ "name": "approve",
1746
+ "detail": {
1747
+ "annotation": {
1748
+ "type": "reference",
1749
+ "typeName": {
1750
+ "type": "identifier",
1751
+ "name": "ApproveDetail"
1752
+ }
1753
+ }
1754
+ }
1743
1755
  }
1744
1756
  ],
1745
1757
  "methods": [],
@@ -1809,6 +1821,19 @@
1809
1821
  },
1810
1822
  "computed": false
1811
1823
  },
1824
+ {
1825
+ "type": "propertySignature",
1826
+ "key": {
1827
+ "type": "identifier",
1828
+ "name": "propertyType"
1829
+ },
1830
+ "annotation": {
1831
+ "type": "keyword",
1832
+ "value": "string"
1833
+ },
1834
+ "optional": true,
1835
+ "computed": false
1836
+ },
1812
1837
  {
1813
1838
  "type": "propertySignature",
1814
1839
  "key": {
@@ -1835,6 +1860,19 @@
1835
1860
  "optional": true,
1836
1861
  "computed": false
1837
1862
  },
1863
+ {
1864
+ "type": "propertySignature",
1865
+ "key": {
1866
+ "type": "identifier",
1867
+ "name": "approved"
1868
+ },
1869
+ "annotation": {
1870
+ "type": "keyword",
1871
+ "value": "boolean"
1872
+ },
1873
+ "optional": true,
1874
+ "computed": false
1875
+ },
1838
1876
  {
1839
1877
  "type": "propertySignature",
1840
1878
  "key": {
@@ -1958,6 +1996,37 @@
1958
1996
  "computed": false
1959
1997
  }
1960
1998
  ]
1999
+ },
2000
+ {
2001
+ "type": "interface",
2002
+ "name": "ApproveDetail",
2003
+ "body": [
2004
+ {
2005
+ "type": "propertySignature",
2006
+ "key": {
2007
+ "type": "identifier",
2008
+ "name": "approved"
2009
+ },
2010
+ "annotation": {
2011
+ "type": "keyword",
2012
+ "value": "boolean"
2013
+ },
2014
+ "computed": false
2015
+ },
2016
+ {
2017
+ "type": "propertySignature",
2018
+ "key": {
2019
+ "type": "identifier",
2020
+ "name": "propertyInstanceId"
2021
+ },
2022
+ "annotation": {
2023
+ "type": "keyword",
2024
+ "value": "string"
2025
+ },
2026
+ "optional": true,
2027
+ "computed": false
2028
+ }
2029
+ ]
1961
2030
  }
1962
2031
  ]
1963
2032
  },
@@ -2183,6 +2252,139 @@
2183
2252
  ],
2184
2253
  "methods": []
2185
2254
  },
2255
+ "visual-builder.chat-preview": {
2256
+ "properties": [
2257
+ {
2258
+ "name": "storyboard",
2259
+ "annotation": {
2260
+ "type": "union",
2261
+ "types": [
2262
+ {
2263
+ "type": "reference",
2264
+ "typeName": {
2265
+ "type": "identifier",
2266
+ "name": "BrickConf"
2267
+ }
2268
+ },
2269
+ {
2270
+ "type": "array",
2271
+ "elementType": {
2272
+ "type": "reference",
2273
+ "typeName": {
2274
+ "type": "identifier",
2275
+ "name": "BrickConf"
2276
+ }
2277
+ }
2278
+ }
2279
+ ]
2280
+ }
2281
+ },
2282
+ {
2283
+ "name": "theme",
2284
+ "annotation": {
2285
+ "type": "keyword",
2286
+ "value": "string"
2287
+ }
2288
+ },
2289
+ {
2290
+ "name": "uiVersion",
2291
+ "annotation": {
2292
+ "type": "keyword",
2293
+ "value": "string"
2294
+ }
2295
+ },
2296
+ {
2297
+ "name": "app",
2298
+ "annotation": {
2299
+ "type": "reference",
2300
+ "typeName": {
2301
+ "type": "identifier",
2302
+ "name": "MicroApp"
2303
+ }
2304
+ }
2305
+ },
2306
+ {
2307
+ "name": "inspecting",
2308
+ "annotation": {
2309
+ "type": "keyword",
2310
+ "value": "boolean"
2311
+ }
2312
+ }
2313
+ ],
2314
+ "events": [
2315
+ {
2316
+ "name": "activeTarget.change",
2317
+ "detail": {
2318
+ "annotation": {
2319
+ "type": "union",
2320
+ "types": [
2321
+ {
2322
+ "type": "reference",
2323
+ "typeName": {
2324
+ "type": "identifier",
2325
+ "name": "InspectSelector"
2326
+ }
2327
+ },
2328
+ {
2329
+ "type": "keyword",
2330
+ "value": "undefined"
2331
+ }
2332
+ ]
2333
+ }
2334
+ }
2335
+ }
2336
+ ],
2337
+ "methods": [
2338
+ {
2339
+ "name": "select",
2340
+ "params": [
2341
+ {
2342
+ "name": "payload",
2343
+ "annotation": {
2344
+ "type": "reference",
2345
+ "typeName": {
2346
+ "type": "identifier",
2347
+ "name": "InspectSelector"
2348
+ }
2349
+ }
2350
+ }
2351
+ ],
2352
+ "returns": {}
2353
+ }
2354
+ ],
2355
+ "types": [
2356
+ {
2357
+ "type": "interface",
2358
+ "name": "InspectSelector",
2359
+ "body": [
2360
+ {
2361
+ "type": "propertySignature",
2362
+ "key": {
2363
+ "type": "identifier",
2364
+ "name": "type"
2365
+ },
2366
+ "annotation": {
2367
+ "type": "jsLiteral",
2368
+ "value": "item"
2369
+ },
2370
+ "computed": false
2371
+ },
2372
+ {
2373
+ "type": "propertySignature",
2374
+ "key": {
2375
+ "type": "identifier",
2376
+ "name": "uuid"
2377
+ },
2378
+ "annotation": {
2379
+ "type": "keyword",
2380
+ "value": "string"
2381
+ },
2382
+ "computed": false
2383
+ }
2384
+ ]
2385
+ }
2386
+ ]
2387
+ },
2186
2388
  "visual-builder.property-editor": {
2187
2389
  "properties": [
2188
2390
  {
@@ -2334,139 +2536,6 @@
2334
2536
  }
2335
2537
  ]
2336
2538
  },
2337
- "visual-builder.chat-preview": {
2338
- "properties": [
2339
- {
2340
- "name": "storyboard",
2341
- "annotation": {
2342
- "type": "union",
2343
- "types": [
2344
- {
2345
- "type": "reference",
2346
- "typeName": {
2347
- "type": "identifier",
2348
- "name": "BrickConf"
2349
- }
2350
- },
2351
- {
2352
- "type": "array",
2353
- "elementType": {
2354
- "type": "reference",
2355
- "typeName": {
2356
- "type": "identifier",
2357
- "name": "BrickConf"
2358
- }
2359
- }
2360
- }
2361
- ]
2362
- }
2363
- },
2364
- {
2365
- "name": "theme",
2366
- "annotation": {
2367
- "type": "keyword",
2368
- "value": "string"
2369
- }
2370
- },
2371
- {
2372
- "name": "uiVersion",
2373
- "annotation": {
2374
- "type": "keyword",
2375
- "value": "string"
2376
- }
2377
- },
2378
- {
2379
- "name": "app",
2380
- "annotation": {
2381
- "type": "reference",
2382
- "typeName": {
2383
- "type": "identifier",
2384
- "name": "MicroApp"
2385
- }
2386
- }
2387
- },
2388
- {
2389
- "name": "inspecting",
2390
- "annotation": {
2391
- "type": "keyword",
2392
- "value": "boolean"
2393
- }
2394
- }
2395
- ],
2396
- "events": [
2397
- {
2398
- "name": "activeTarget.change",
2399
- "detail": {
2400
- "annotation": {
2401
- "type": "union",
2402
- "types": [
2403
- {
2404
- "type": "reference",
2405
- "typeName": {
2406
- "type": "identifier",
2407
- "name": "InspectSelector"
2408
- }
2409
- },
2410
- {
2411
- "type": "keyword",
2412
- "value": "undefined"
2413
- }
2414
- ]
2415
- }
2416
- }
2417
- }
2418
- ],
2419
- "methods": [
2420
- {
2421
- "name": "select",
2422
- "params": [
2423
- {
2424
- "name": "payload",
2425
- "annotation": {
2426
- "type": "reference",
2427
- "typeName": {
2428
- "type": "identifier",
2429
- "name": "InspectSelector"
2430
- }
2431
- }
2432
- }
2433
- ],
2434
- "returns": {}
2435
- }
2436
- ],
2437
- "types": [
2438
- {
2439
- "type": "interface",
2440
- "name": "InspectSelector",
2441
- "body": [
2442
- {
2443
- "type": "propertySignature",
2444
- "key": {
2445
- "type": "identifier",
2446
- "name": "type"
2447
- },
2448
- "annotation": {
2449
- "type": "jsLiteral",
2450
- "value": "item"
2451
- },
2452
- "computed": false
2453
- },
2454
- {
2455
- "type": "propertySignature",
2456
- "key": {
2457
- "type": "identifier",
2458
- "name": "uuid"
2459
- },
2460
- "annotation": {
2461
- "type": "keyword",
2462
- "value": "string"
2463
- },
2464
- "computed": false
2465
- }
2466
- ]
2467
- }
2468
- ]
2469
- },
2470
2539
  "visual-builder.workbench-tree": {
2471
2540
  "properties": [
2472
2541
  {
@@ -19,8 +19,10 @@ export interface AttributeGeneration {
19
19
  objectName: string;
20
20
  propertyId: string;
21
21
  propertyName: string;
22
+ propertyType?: string;
22
23
  propertyInstanceId?: string;
23
24
  comment?: string;
25
+ approved?: boolean;
24
26
  candidates: VisualConfig[] | null;
25
27
  mockData: Record<string, unknown>[];
26
28
  }
@@ -28,6 +30,10 @@ export interface CommentDetail {
28
30
  comment: string;
29
31
  propertyInstanceId?: string;
30
32
  }
33
+ export interface ApproveDetail {
34
+ approved: boolean;
35
+ propertyInstanceId?: string;
36
+ }
31
37
  export type PreviewCategory = "detail-item" | "form-item" | "table-column" | "card-item" | "metric-item" | "value";
32
38
  /**
33
39
  * 构件 `visual-builder.raw-data-preview`
@@ -51,5 +57,6 @@ export declare class RawDataPreview extends ReactNextElement {
51
57
  }
52
58
  export interface RawDataPreviewComponentProps extends RawPreviewProps {
53
59
  onComment: (detail: CommentDetail) => void;
60
+ onApprove: (detail: ApproveDetail) => void;
54
61
  }
55
- export declare function RawDataPreviewComponent({ previewUrl, generations, mocks, busy, category, theme, uiVersion, app, onComment, }: RawDataPreviewComponentProps): React.JSX.Element;
62
+ export declare function RawDataPreviewComponent({ previewUrl, generations, mocks, busy, category, theme, uiVersion, app, onComment, onApprove, }: RawDataPreviewComponentProps): React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/visual-builder",
3
- "version": "1.36.7",
3
+ "version": "1.36.8",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/visual-builder",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,5 +44,5 @@
44
44
  "@next-bricks/icons": "*",
45
45
  "@next-bricks/vs": "*"
46
46
  },
47
- "gitHead": "7def4ad4443e398ec1d4682e4d47c85c64f66021"
47
+ "gitHead": "a2a6d9882bcb2f992b443f4fa6135bb76dce4a70"
48
48
  }