@next-bricks/visual-builder 1.36.7 → 1.36.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/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,30 @@
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
+ }
1755
+ },
1756
+ {
1757
+ "name": "view.attr.prompt",
1758
+ "detail": {
1759
+ "annotation": {
1760
+ "type": "reference",
1761
+ "typeName": {
1762
+ "type": "identifier",
1763
+ "name": "AttributeGeneration"
1764
+ }
1765
+ }
1766
+ }
1743
1767
  }
1744
1768
  ],
1745
1769
  "methods": [],
@@ -1809,6 +1833,19 @@
1809
1833
  },
1810
1834
  "computed": false
1811
1835
  },
1836
+ {
1837
+ "type": "propertySignature",
1838
+ "key": {
1839
+ "type": "identifier",
1840
+ "name": "propertyType"
1841
+ },
1842
+ "annotation": {
1843
+ "type": "keyword",
1844
+ "value": "string"
1845
+ },
1846
+ "optional": true,
1847
+ "computed": false
1848
+ },
1812
1849
  {
1813
1850
  "type": "propertySignature",
1814
1851
  "key": {
@@ -1835,6 +1872,19 @@
1835
1872
  "optional": true,
1836
1873
  "computed": false
1837
1874
  },
1875
+ {
1876
+ "type": "propertySignature",
1877
+ "key": {
1878
+ "type": "identifier",
1879
+ "name": "approved"
1880
+ },
1881
+ "annotation": {
1882
+ "type": "keyword",
1883
+ "value": "boolean"
1884
+ },
1885
+ "optional": true,
1886
+ "computed": false
1887
+ },
1838
1888
  {
1839
1889
  "type": "propertySignature",
1840
1890
  "key": {
@@ -1958,6 +2008,37 @@
1958
2008
  "computed": false
1959
2009
  }
1960
2010
  ]
2011
+ },
2012
+ {
2013
+ "type": "interface",
2014
+ "name": "ApproveDetail",
2015
+ "body": [
2016
+ {
2017
+ "type": "propertySignature",
2018
+ "key": {
2019
+ "type": "identifier",
2020
+ "name": "approved"
2021
+ },
2022
+ "annotation": {
2023
+ "type": "keyword",
2024
+ "value": "boolean"
2025
+ },
2026
+ "computed": false
2027
+ },
2028
+ {
2029
+ "type": "propertySignature",
2030
+ "key": {
2031
+ "type": "identifier",
2032
+ "name": "propertyInstanceId"
2033
+ },
2034
+ "annotation": {
2035
+ "type": "keyword",
2036
+ "value": "string"
2037
+ },
2038
+ "optional": true,
2039
+ "computed": false
2040
+ }
2041
+ ]
1961
2042
  }
1962
2043
  ]
1963
2044
  },
@@ -2183,6 +2264,139 @@
2183
2264
  ],
2184
2265
  "methods": []
2185
2266
  },
2267
+ "visual-builder.chat-preview": {
2268
+ "properties": [
2269
+ {
2270
+ "name": "storyboard",
2271
+ "annotation": {
2272
+ "type": "union",
2273
+ "types": [
2274
+ {
2275
+ "type": "reference",
2276
+ "typeName": {
2277
+ "type": "identifier",
2278
+ "name": "BrickConf"
2279
+ }
2280
+ },
2281
+ {
2282
+ "type": "array",
2283
+ "elementType": {
2284
+ "type": "reference",
2285
+ "typeName": {
2286
+ "type": "identifier",
2287
+ "name": "BrickConf"
2288
+ }
2289
+ }
2290
+ }
2291
+ ]
2292
+ }
2293
+ },
2294
+ {
2295
+ "name": "theme",
2296
+ "annotation": {
2297
+ "type": "keyword",
2298
+ "value": "string"
2299
+ }
2300
+ },
2301
+ {
2302
+ "name": "uiVersion",
2303
+ "annotation": {
2304
+ "type": "keyword",
2305
+ "value": "string"
2306
+ }
2307
+ },
2308
+ {
2309
+ "name": "app",
2310
+ "annotation": {
2311
+ "type": "reference",
2312
+ "typeName": {
2313
+ "type": "identifier",
2314
+ "name": "MicroApp"
2315
+ }
2316
+ }
2317
+ },
2318
+ {
2319
+ "name": "inspecting",
2320
+ "annotation": {
2321
+ "type": "keyword",
2322
+ "value": "boolean"
2323
+ }
2324
+ }
2325
+ ],
2326
+ "events": [
2327
+ {
2328
+ "name": "activeTarget.change",
2329
+ "detail": {
2330
+ "annotation": {
2331
+ "type": "union",
2332
+ "types": [
2333
+ {
2334
+ "type": "reference",
2335
+ "typeName": {
2336
+ "type": "identifier",
2337
+ "name": "InspectSelector"
2338
+ }
2339
+ },
2340
+ {
2341
+ "type": "keyword",
2342
+ "value": "undefined"
2343
+ }
2344
+ ]
2345
+ }
2346
+ }
2347
+ }
2348
+ ],
2349
+ "methods": [
2350
+ {
2351
+ "name": "select",
2352
+ "params": [
2353
+ {
2354
+ "name": "payload",
2355
+ "annotation": {
2356
+ "type": "reference",
2357
+ "typeName": {
2358
+ "type": "identifier",
2359
+ "name": "InspectSelector"
2360
+ }
2361
+ }
2362
+ }
2363
+ ],
2364
+ "returns": {}
2365
+ }
2366
+ ],
2367
+ "types": [
2368
+ {
2369
+ "type": "interface",
2370
+ "name": "InspectSelector",
2371
+ "body": [
2372
+ {
2373
+ "type": "propertySignature",
2374
+ "key": {
2375
+ "type": "identifier",
2376
+ "name": "type"
2377
+ },
2378
+ "annotation": {
2379
+ "type": "jsLiteral",
2380
+ "value": "item"
2381
+ },
2382
+ "computed": false
2383
+ },
2384
+ {
2385
+ "type": "propertySignature",
2386
+ "key": {
2387
+ "type": "identifier",
2388
+ "name": "uuid"
2389
+ },
2390
+ "annotation": {
2391
+ "type": "keyword",
2392
+ "value": "string"
2393
+ },
2394
+ "computed": false
2395
+ }
2396
+ ]
2397
+ }
2398
+ ]
2399
+ },
2186
2400
  "visual-builder.property-editor": {
2187
2401
  "properties": [
2188
2402
  {
@@ -2334,139 +2548,6 @@
2334
2548
  }
2335
2549
  ]
2336
2550
  },
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
2551
  "visual-builder.workbench-tree": {
2471
2552
  "properties": [
2472
2553
  {
@@ -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,7 @@ 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;
61
+ onViewAttrPrompt: (detail: AttributeGeneration) => void;
54
62
  }
55
- export declare function RawDataPreviewComponent({ previewUrl, generations, mocks, busy, category, theme, uiVersion, app, onComment, }: RawDataPreviewComponentProps): React.JSX.Element;
63
+ export declare function RawDataPreviewComponent({ previewUrl, generations, mocks, busy, category, theme, uiVersion, app, onComment, onApprove, onViewAttrPrompt, }: 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.9",
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": "37a565a2f8becd17bf040c7e8f46b63f429117ea"
48
48
  }