@next-bricks/visual-builder 1.11.1 → 1.13.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 (56) hide show
  1. package/dist/bricks.json +9 -9
  2. package/dist/chunks/1370.bde908f3.js +2 -0
  3. package/dist/chunks/1370.bde908f3.js.map +1 -0
  4. package/dist/chunks/{2154.ac02446d.js → 2154.89d49936.js} +3 -3
  5. package/dist/chunks/2154.89d49936.js.map +1 -0
  6. package/dist/chunks/2252.b9ed6aa7.js +3 -0
  7. package/dist/chunks/2252.b9ed6aa7.js.LICENSE.txt +11 -0
  8. package/dist/chunks/2252.b9ed6aa7.js.map +1 -0
  9. package/dist/chunks/4103.3bfaf833.js +2 -0
  10. package/dist/chunks/4103.3bfaf833.js.map +1 -0
  11. package/dist/chunks/5399.87d8f078.js +2 -0
  12. package/dist/chunks/{5399.9c916ecb.js.map → 5399.87d8f078.js.map} +1 -1
  13. package/dist/chunks/7115.fe57c671.js +2 -0
  14. package/dist/chunks/{7115.1aeb7468.js.map → 7115.fe57c671.js.map} +1 -1
  15. package/dist/chunks/871.bf085405.js +2 -0
  16. package/dist/chunks/{871.c4a66cce.js.map → 871.bf085405.js.map} +1 -1
  17. package/dist/chunks/8989.f2fd0c29.js +2 -0
  18. package/dist/chunks/{8989.712b21ae.js.map → 8989.f2fd0c29.js.map} +1 -1
  19. package/dist/chunks/9027.07b0de15.js +2 -0
  20. package/dist/chunks/9027.07b0de15.js.map +1 -0
  21. package/dist/chunks/9933.f2bac1e9.js +3 -0
  22. package/dist/chunks/{9933.e92bd957.js.map → 9933.f2bac1e9.js.map} +1 -1
  23. package/dist/chunks/chat-preview.cd4f3ec6.js +3 -0
  24. package/dist/chunks/chat-preview.cd4f3ec6.js.LICENSE.txt +5 -0
  25. package/dist/chunks/chat-preview.cd4f3ec6.js.map +1 -0
  26. package/dist/chunks/main.09fe0ad1.js +2 -0
  27. package/dist/chunks/main.09fe0ad1.js.map +1 -0
  28. package/dist/chunks/workbench-history-action.dd048a97.js +3 -0
  29. package/dist/chunks/{workbench-history-action.2c208c51.js.map → workbench-history-action.dd048a97.js.map} +1 -1
  30. package/dist/index.70e29523.js +2 -0
  31. package/dist/index.70e29523.js.map +1 -0
  32. package/dist/manifest.json +67 -59
  33. package/dist/types.json +243 -226
  34. package/dist-types/chat-preview/index.d.ts +6 -2
  35. package/dist-types/data-providers/preview/interfaces.d.ts +24 -3
  36. package/package.json +2 -2
  37. package/dist/chunks/1370.38d83fd9.js +0 -2
  38. package/dist/chunks/1370.38d83fd9.js.map +0 -1
  39. package/dist/chunks/2154.ac02446d.js.map +0 -1
  40. package/dist/chunks/5399.9c916ecb.js +0 -2
  41. package/dist/chunks/7115.1aeb7468.js +0 -2
  42. package/dist/chunks/871.c4a66cce.js +0 -2
  43. package/dist/chunks/8989.712b21ae.js +0 -2
  44. package/dist/chunks/9027.01529a48.js +0 -2
  45. package/dist/chunks/9027.01529a48.js.map +0 -1
  46. package/dist/chunks/9933.e92bd957.js +0 -3
  47. package/dist/chunks/chat-preview.6733a6b3.js +0 -2
  48. package/dist/chunks/chat-preview.6733a6b3.js.map +0 -1
  49. package/dist/chunks/main.14f3a0da.js +0 -2
  50. package/dist/chunks/main.14f3a0da.js.map +0 -1
  51. package/dist/chunks/workbench-history-action.2c208c51.js +0 -3
  52. package/dist/index.fc5deba5.js +0 -2
  53. package/dist/index.fc5deba5.js.map +0 -1
  54. /package/dist/chunks/{2154.ac02446d.js.LICENSE.txt → 2154.89d49936.js.LICENSE.txt} +0 -0
  55. /package/dist/chunks/{9933.e92bd957.js.LICENSE.txt → 9933.f2bac1e9.js.LICENSE.txt} +0 -0
  56. /package/dist/chunks/{workbench-history-action.2c208c51.js.LICENSE.txt → workbench-history-action.dd048a97.js.LICENSE.txt} +0 -0
@@ -40,16 +40,28 @@
40
40
  "insider": true
41
41
  },
42
42
  {
43
- "name": "visual-builder.workbench-action-list",
43
+ "name": "visual-builder.workbench-action",
44
44
  "properties": [
45
45
  {
46
- "name": "appId",
46
+ "name": "icon",
47
+ "attribute": false,
48
+ "type": "GeneralIconProps"
49
+ },
50
+ {
51
+ "name": "to",
47
52
  "type": "string"
48
53
  },
49
54
  {
50
- "name": "menu",
51
- "attribute": false,
52
- "type": "SidebarMenu"
55
+ "name": "active",
56
+ "type": "boolean"
57
+ },
58
+ {
59
+ "name": "href",
60
+ "type": "string"
61
+ },
62
+ {
63
+ "name": "target",
64
+ "type": "string"
53
65
  }
54
66
  ],
55
67
  "events": [],
@@ -74,6 +86,26 @@
74
86
  "description": "",
75
87
  "insider": true
76
88
  },
89
+ {
90
+ "name": "visual-builder.workbench-action-list",
91
+ "properties": [
92
+ {
93
+ "name": "appId",
94
+ "type": "string"
95
+ },
96
+ {
97
+ "name": "menu",
98
+ "attribute": false,
99
+ "type": "SidebarMenu"
100
+ }
101
+ ],
102
+ "events": [],
103
+ "slots": [],
104
+ "methods": [],
105
+ "parts": [],
106
+ "description": "",
107
+ "insider": true
108
+ },
77
109
  {
78
110
  "name": "visual-builder.workbench-tree",
79
111
  "properties": [
@@ -194,38 +226,6 @@
194
226
  "description": "",
195
227
  "insider": true
196
228
  },
197
- {
198
- "name": "visual-builder.workbench-action",
199
- "properties": [
200
- {
201
- "name": "icon",
202
- "attribute": false,
203
- "type": "GeneralIconProps"
204
- },
205
- {
206
- "name": "to",
207
- "type": "string"
208
- },
209
- {
210
- "name": "active",
211
- "type": "boolean"
212
- },
213
- {
214
- "name": "href",
215
- "type": "string"
216
- },
217
- {
218
- "name": "target",
219
- "type": "string"
220
- }
221
- ],
222
- "events": [],
223
- "slots": [],
224
- "methods": [],
225
- "parts": [],
226
- "description": "",
227
- "insider": true
228
- },
229
229
  {
230
230
  "name": "visual-builder.workbench-history-action",
231
231
  "properties": [
@@ -405,6 +405,28 @@
405
405
  "parts": [],
406
406
  "description": "契约选择构件"
407
407
  },
408
+ {
409
+ "name": "visual-builder.chat-conversation",
410
+ "properties": [
411
+ {
412
+ "name": "messages",
413
+ "attribute": false,
414
+ "type": "Message[]"
415
+ }
416
+ ],
417
+ "events": [
418
+ {
419
+ "name": "storyboard.update",
420
+ "detail": {
421
+ "type": "BrickConf[]"
422
+ }
423
+ }
424
+ ],
425
+ "slots": [],
426
+ "methods": [],
427
+ "parts": [],
428
+ "description": "用于 Visual Builder 的智能聊天对话列表"
429
+ },
408
430
  {
409
431
  "name": "visual-builder.chat-preview",
410
432
  "properties": [
@@ -417,6 +439,14 @@
417
439
  "name": "theme",
418
440
  "type": "string"
419
441
  },
442
+ {
443
+ "name": "uiVersion",
444
+ "type": "string"
445
+ },
446
+ {
447
+ "name": "app",
448
+ "type": "MicroApp"
449
+ },
420
450
  {
421
451
  "name": "inspecting",
422
452
  "type": "boolean"
@@ -444,28 +474,6 @@
444
474
  ],
445
475
  "parts": [],
446
476
  "description": "构件 `visual-builder.chat-preview`"
447
- },
448
- {
449
- "name": "visual-builder.chat-conversation",
450
- "properties": [
451
- {
452
- "name": "messages",
453
- "attribute": false,
454
- "type": "Message[]"
455
- }
456
- ],
457
- "events": [
458
- {
459
- "name": "storyboard.update",
460
- "detail": {
461
- "type": "BrickConf[]"
462
- }
463
- }
464
- ],
465
- "slots": [],
466
- "methods": [],
467
- "parts": [],
468
- "description": "用于 Visual Builder 的智能聊天对话列表"
469
477
  }
470
478
  ],
471
479
  "providers": [
package/dist/types.json CHANGED
@@ -45,19 +45,6 @@
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
48
  "visual-builder.workbench-action": {
62
49
  "properties": [
63
50
  {
@@ -102,6 +89,19 @@
102
89
  "events": [],
103
90
  "methods": []
104
91
  },
92
+ "visual-builder.workbench-sidebar": {
93
+ "properties": [
94
+ {
95
+ "name": "titleLabel",
96
+ "annotation": {
97
+ "type": "keyword",
98
+ "value": "string"
99
+ }
100
+ }
101
+ ],
102
+ "events": [],
103
+ "methods": []
104
+ },
105
105
  "visual-builder.page-arch-node": {
106
106
  "properties": [
107
107
  {
@@ -874,6 +874,23 @@
874
874
  "value": "string"
875
875
  }
876
876
  },
877
+ {
878
+ "name": "uiVersion",
879
+ "annotation": {
880
+ "type": "keyword",
881
+ "value": "string"
882
+ }
883
+ },
884
+ {
885
+ "name": "app",
886
+ "annotation": {
887
+ "type": "reference",
888
+ "typeName": {
889
+ "type": "identifier",
890
+ "name": "MicroApp"
891
+ }
892
+ }
893
+ },
877
894
  {
878
895
  "name": "inspecting",
879
896
  "annotation": {
@@ -956,6 +973,219 @@
956
973
  }
957
974
  ]
958
975
  },
976
+ "visual-builder.inject-preview-agent": {
977
+ "type": "provider",
978
+ "params": [
979
+ {
980
+ "name": "previewFromOrigin",
981
+ "annotation": {
982
+ "type": "keyword",
983
+ "value": "string"
984
+ }
985
+ },
986
+ {
987
+ "name": "options",
988
+ "annotation": {
989
+ "type": "reference",
990
+ "typeName": {
991
+ "type": "identifier",
992
+ "name": "PreviewStartOptions"
993
+ }
994
+ }
995
+ }
996
+ ],
997
+ "returns": {
998
+ "annotation": {
999
+ "type": "reference",
1000
+ "typeName": {
1001
+ "type": "identifier",
1002
+ "name": "Promise"
1003
+ },
1004
+ "typeParameters": {
1005
+ "type": "typeParameterInstantiation",
1006
+ "params": [
1007
+ {
1008
+ "type": "keyword",
1009
+ "value": "unknown"
1010
+ }
1011
+ ]
1012
+ }
1013
+ }
1014
+ },
1015
+ "types": [
1016
+ {
1017
+ "type": "interface",
1018
+ "name": "PreviewStartOptions",
1019
+ "body": [
1020
+ {
1021
+ "type": "propertySignature",
1022
+ "key": {
1023
+ "type": "identifier",
1024
+ "name": "appId"
1025
+ },
1026
+ "annotation": {
1027
+ "type": "keyword",
1028
+ "value": "string"
1029
+ },
1030
+ "computed": false
1031
+ },
1032
+ {
1033
+ "type": "propertySignature",
1034
+ "key": {
1035
+ "type": "identifier",
1036
+ "name": "templateId"
1037
+ },
1038
+ "annotation": {
1039
+ "type": "keyword",
1040
+ "value": "string"
1041
+ },
1042
+ "optional": true,
1043
+ "computed": false
1044
+ },
1045
+ {
1046
+ "type": "propertySignature",
1047
+ "key": {
1048
+ "type": "identifier",
1049
+ "name": "formId"
1050
+ },
1051
+ "annotation": {
1052
+ "type": "keyword",
1053
+ "value": "string"
1054
+ },
1055
+ "optional": true,
1056
+ "computed": false
1057
+ },
1058
+ {
1059
+ "type": "propertySignature",
1060
+ "key": {
1061
+ "type": "identifier",
1062
+ "name": "snippetData"
1063
+ },
1064
+ "annotation": {
1065
+ "type": "keyword",
1066
+ "value": "any"
1067
+ },
1068
+ "optional": true,
1069
+ "computed": false
1070
+ },
1071
+ {
1072
+ "type": "propertySignature",
1073
+ "key": {
1074
+ "type": "identifier",
1075
+ "name": "routePath"
1076
+ },
1077
+ "annotation": {
1078
+ "type": "keyword",
1079
+ "value": "string"
1080
+ },
1081
+ "optional": true,
1082
+ "computed": false
1083
+ },
1084
+ {
1085
+ "type": "propertySignature",
1086
+ "key": {
1087
+ "type": "identifier",
1088
+ "name": "routeExact"
1089
+ },
1090
+ "annotation": {
1091
+ "type": "keyword",
1092
+ "value": "boolean"
1093
+ },
1094
+ "optional": true,
1095
+ "computed": false
1096
+ },
1097
+ {
1098
+ "type": "propertySignature",
1099
+ "key": {
1100
+ "type": "identifier",
1101
+ "name": "settings"
1102
+ },
1103
+ "annotation": {
1104
+ "type": "reference",
1105
+ "typeName": {
1106
+ "type": "identifier",
1107
+ "name": "PreviewSettings"
1108
+ }
1109
+ },
1110
+ "optional": true,
1111
+ "computed": false
1112
+ },
1113
+ {
1114
+ "type": "propertySignature",
1115
+ "key": {
1116
+ "type": "identifier",
1117
+ "name": "updateStoryboardType"
1118
+ },
1119
+ "annotation": {
1120
+ "type": "reference",
1121
+ "typeName": {
1122
+ "type": "identifier",
1123
+ "name": "UpdateStoryboardType"
1124
+ }
1125
+ },
1126
+ "optional": true,
1127
+ "computed": false
1128
+ }
1129
+ ]
1130
+ },
1131
+ {
1132
+ "type": "interface",
1133
+ "name": "PreviewSettings",
1134
+ "body": [
1135
+ {
1136
+ "type": "propertySignature",
1137
+ "key": {
1138
+ "type": "identifier",
1139
+ "name": "properties"
1140
+ },
1141
+ "annotation": {
1142
+ "type": "reference",
1143
+ "typeName": {
1144
+ "type": "identifier",
1145
+ "name": "Record"
1146
+ },
1147
+ "typeParameters": {
1148
+ "type": "typeParameterInstantiation",
1149
+ "params": [
1150
+ {
1151
+ "type": "keyword",
1152
+ "value": "string"
1153
+ },
1154
+ {
1155
+ "type": "keyword",
1156
+ "value": "unknown"
1157
+ }
1158
+ ]
1159
+ }
1160
+ },
1161
+ "optional": true,
1162
+ "computed": false
1163
+ }
1164
+ ]
1165
+ },
1166
+ {
1167
+ "type": "typeAlias",
1168
+ "name": "UpdateStoryboardType",
1169
+ "annotation": {
1170
+ "type": "union",
1171
+ "types": [
1172
+ {
1173
+ "type": "jsLiteral",
1174
+ "value": "route"
1175
+ },
1176
+ {
1177
+ "type": "jsLiteral",
1178
+ "value": "template"
1179
+ },
1180
+ {
1181
+ "type": "jsLiteral",
1182
+ "value": "snippet"
1183
+ }
1184
+ ]
1185
+ }
1186
+ }
1187
+ ]
1188
+ },
959
1189
  "visual-builder.workbench-tree": {
960
1190
  "properties": [
961
1191
  {
@@ -1709,218 +1939,5 @@
1709
1939
  ]
1710
1940
  }
1711
1941
  ]
1712
- },
1713
- "visual-builder.inject-preview-agent": {
1714
- "type": "provider",
1715
- "params": [
1716
- {
1717
- "name": "previewFromOrigin",
1718
- "annotation": {
1719
- "type": "keyword",
1720
- "value": "string"
1721
- }
1722
- },
1723
- {
1724
- "name": "options",
1725
- "annotation": {
1726
- "type": "reference",
1727
- "typeName": {
1728
- "type": "identifier",
1729
- "name": "PreviewStartOptions"
1730
- }
1731
- }
1732
- }
1733
- ],
1734
- "returns": {
1735
- "annotation": {
1736
- "type": "reference",
1737
- "typeName": {
1738
- "type": "identifier",
1739
- "name": "Promise"
1740
- },
1741
- "typeParameters": {
1742
- "type": "typeParameterInstantiation",
1743
- "params": [
1744
- {
1745
- "type": "keyword",
1746
- "value": "unknown"
1747
- }
1748
- ]
1749
- }
1750
- }
1751
- },
1752
- "types": [
1753
- {
1754
- "type": "interface",
1755
- "name": "PreviewStartOptions",
1756
- "body": [
1757
- {
1758
- "type": "propertySignature",
1759
- "key": {
1760
- "type": "identifier",
1761
- "name": "appId"
1762
- },
1763
- "annotation": {
1764
- "type": "keyword",
1765
- "value": "string"
1766
- },
1767
- "computed": false
1768
- },
1769
- {
1770
- "type": "propertySignature",
1771
- "key": {
1772
- "type": "identifier",
1773
- "name": "templateId"
1774
- },
1775
- "annotation": {
1776
- "type": "keyword",
1777
- "value": "string"
1778
- },
1779
- "optional": true,
1780
- "computed": false
1781
- },
1782
- {
1783
- "type": "propertySignature",
1784
- "key": {
1785
- "type": "identifier",
1786
- "name": "formId"
1787
- },
1788
- "annotation": {
1789
- "type": "keyword",
1790
- "value": "string"
1791
- },
1792
- "optional": true,
1793
- "computed": false
1794
- },
1795
- {
1796
- "type": "propertySignature",
1797
- "key": {
1798
- "type": "identifier",
1799
- "name": "snippetData"
1800
- },
1801
- "annotation": {
1802
- "type": "keyword",
1803
- "value": "any"
1804
- },
1805
- "optional": true,
1806
- "computed": false
1807
- },
1808
- {
1809
- "type": "propertySignature",
1810
- "key": {
1811
- "type": "identifier",
1812
- "name": "routePath"
1813
- },
1814
- "annotation": {
1815
- "type": "keyword",
1816
- "value": "string"
1817
- },
1818
- "optional": true,
1819
- "computed": false
1820
- },
1821
- {
1822
- "type": "propertySignature",
1823
- "key": {
1824
- "type": "identifier",
1825
- "name": "routeExact"
1826
- },
1827
- "annotation": {
1828
- "type": "keyword",
1829
- "value": "boolean"
1830
- },
1831
- "optional": true,
1832
- "computed": false
1833
- },
1834
- {
1835
- "type": "propertySignature",
1836
- "key": {
1837
- "type": "identifier",
1838
- "name": "settings"
1839
- },
1840
- "annotation": {
1841
- "type": "reference",
1842
- "typeName": {
1843
- "type": "identifier",
1844
- "name": "PreviewSettings"
1845
- }
1846
- },
1847
- "optional": true,
1848
- "computed": false
1849
- },
1850
- {
1851
- "type": "propertySignature",
1852
- "key": {
1853
- "type": "identifier",
1854
- "name": "updateStoryboardType"
1855
- },
1856
- "annotation": {
1857
- "type": "reference",
1858
- "typeName": {
1859
- "type": "identifier",
1860
- "name": "UpdateStoryboardType"
1861
- }
1862
- },
1863
- "optional": true,
1864
- "computed": false
1865
- }
1866
- ]
1867
- },
1868
- {
1869
- "type": "interface",
1870
- "name": "PreviewSettings",
1871
- "body": [
1872
- {
1873
- "type": "propertySignature",
1874
- "key": {
1875
- "type": "identifier",
1876
- "name": "properties"
1877
- },
1878
- "annotation": {
1879
- "type": "reference",
1880
- "typeName": {
1881
- "type": "identifier",
1882
- "name": "Record"
1883
- },
1884
- "typeParameters": {
1885
- "type": "typeParameterInstantiation",
1886
- "params": [
1887
- {
1888
- "type": "keyword",
1889
- "value": "string"
1890
- },
1891
- {
1892
- "type": "keyword",
1893
- "value": "unknown"
1894
- }
1895
- ]
1896
- }
1897
- },
1898
- "optional": true,
1899
- "computed": false
1900
- }
1901
- ]
1902
- },
1903
- {
1904
- "type": "typeAlias",
1905
- "name": "UpdateStoryboardType",
1906
- "annotation": {
1907
- "type": "union",
1908
- "types": [
1909
- {
1910
- "type": "jsLiteral",
1911
- "value": "route"
1912
- },
1913
- {
1914
- "type": "jsLiteral",
1915
- "value": "template"
1916
- },
1917
- {
1918
- "type": "jsLiteral",
1919
- "value": "snippet"
1920
- }
1921
- ]
1922
- }
1923
- }
1924
- ]
1925
1942
  }
1926
1943
  }
@@ -1,11 +1,13 @@
1
1
  import React from "react";
2
2
  import { ReactNextElement } from "@next-core/react-element";
3
3
  import "@next-core/theme";
4
- import type { BrickConf } from "@next-core/types";
4
+ import type { BrickConf, MicroApp } from "@next-core/types";
5
5
  import type { InspectSelector } from "../data-providers/chat-preview/interfaces";
6
6
  export interface ChatPreviewProps {
7
7
  storyboard?: BrickConf | BrickConf[];
8
8
  theme?: string;
9
+ uiVersion?: string;
10
+ app?: MicroApp;
9
11
  inspecting?: boolean;
10
12
  }
11
13
  /**
@@ -15,6 +17,8 @@ export declare class ChatPreview extends ReactNextElement {
15
17
  #private;
16
18
  accessor storyboard: BrickConf | BrickConf[] | undefined;
17
19
  accessor theme: string | undefined;
20
+ accessor uiVersion: string | undefined;
21
+ accessor app: MicroApp | undefined;
18
22
  accessor inspecting: boolean | undefined;
19
23
  select(payload: InspectSelector): void;
20
24
  render(): React.JSX.Element;
@@ -22,4 +26,4 @@ export declare class ChatPreview extends ReactNextElement {
22
26
  export interface ChatPreviewComponentProps extends ChatPreviewProps {
23
27
  onActiveTargetChange?(target: InspectSelector | undefined): void;
24
28
  }
25
- export declare function ChatPreviewComponent({ storyboard, theme, inspecting, onActiveTargetChange, }: ChatPreviewComponentProps): React.JSX.Element;
29
+ export declare function ChatPreviewComponent({ storyboard, theme, uiVersion, app, inspecting, onActiveTargetChange, }: ChatPreviewComponentProps): React.JSX.Element;