@next-bricks/ai-portal 0.58.3 → 0.58.4

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.
@@ -3,6 +3,82 @@
3
3
  "package": "@next-bricks/ai-portal",
4
4
  "name": "ai-portal",
5
5
  "bricks": [
6
+ {
7
+ "name": "ai-portal.chat-box",
8
+ "properties": [
9
+ {
10
+ "name": "disabled",
11
+ "type": "boolean"
12
+ },
13
+ {
14
+ "name": "placeholder",
15
+ "type": "string"
16
+ },
17
+ {
18
+ "name": "autoFocus",
19
+ "type": "boolean"
20
+ },
21
+ {
22
+ "name": "aiEmployees",
23
+ "attribute": false,
24
+ "type": "AIEmployee[]"
25
+ },
26
+ {
27
+ "name": "commands",
28
+ "attribute": false,
29
+ "type": "Command[]"
30
+ },
31
+ {
32
+ "name": "uploadOptions",
33
+ "attribute": false,
34
+ "type": "UploadOptions"
35
+ }
36
+ ],
37
+ "events": [
38
+ {
39
+ "name": "message.submit",
40
+ "description": "",
41
+ "deprecated": "Use `chat.submit` event instead",
42
+ "detail": {
43
+ "type": "string"
44
+ }
45
+ },
46
+ {
47
+ "name": "chat.submit",
48
+ "detail": {
49
+ "type": "ChatPayload"
50
+ }
51
+ },
52
+ {
53
+ "name": "command.select",
54
+ "detail": {
55
+ "type": "CommandPayload | null"
56
+ }
57
+ }
58
+ ],
59
+ "slots": [],
60
+ "methods": [
61
+ {
62
+ "name": "setValue",
63
+ "params": [
64
+ {
65
+ "name": "value",
66
+ "type": "string"
67
+ }
68
+ ]
69
+ },
70
+ {
71
+ "name": "getValue",
72
+ "params": []
73
+ },
74
+ {
75
+ "name": "focusOnInput",
76
+ "params": []
77
+ }
78
+ ],
79
+ "parts": [],
80
+ "description": "构件 `ai-portal.chat-box`"
81
+ },
6
82
  {
7
83
  "name": "ai-portal.cruise-canvas",
8
84
  "properties": [
@@ -162,157 +238,6 @@
162
238
  "parts": [],
163
239
  "description": "构件 `ai-portal.cruise-canvas`"
164
240
  },
165
- {
166
- "name": "ai-portal.home-container",
167
- "properties": [
168
- {
169
- "name": "sticky",
170
- "type": "boolean"
171
- }
172
- ],
173
- "events": [],
174
- "slots": [],
175
- "methods": [],
176
- "parts": [],
177
- "description": "构件 `ai-portal.home-container`"
178
- },
179
- {
180
- "name": "ai-portal.stat-with-mini-chart",
181
- "properties": [
182
- {
183
- "name": "label",
184
- "type": "string"
185
- },
186
- {
187
- "name": "value",
188
- "type": "string"
189
- },
190
- {
191
- "name": "size",
192
- "description": "",
193
- "default": "\"medium\"",
194
- "type": "\"medium\" | \"small\""
195
- },
196
- {
197
- "name": "lineColor",
198
- "description": "",
199
- "default": "\"var(--color-brand)\"",
200
- "type": "string"
201
- },
202
- {
203
- "name": "showArea",
204
- "type": "boolean"
205
- },
206
- {
207
- "name": "min",
208
- "description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
209
- "type": "number"
210
- },
211
- {
212
- "name": "max",
213
- "description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
214
- "type": "number"
215
- },
216
- {
217
- "name": "xField",
218
- "description": "",
219
- "default": "\"0\"",
220
- "type": "string"
221
- },
222
- {
223
- "name": "yField",
224
- "description": "",
225
- "default": "\"1\"",
226
- "type": "string"
227
- },
228
- {
229
- "name": "data",
230
- "attribute": false,
231
- "type": "Record<string, number>[]"
232
- }
233
- ],
234
- "events": [],
235
- "slots": [],
236
- "methods": [],
237
- "parts": [],
238
- "description": "构件 `ai-portal.stat-with-mini-chart`"
239
- },
240
- {
241
- "name": "ai-portal.chat-box",
242
- "properties": [
243
- {
244
- "name": "disabled",
245
- "type": "boolean"
246
- },
247
- {
248
- "name": "placeholder",
249
- "type": "string"
250
- },
251
- {
252
- "name": "autoFocus",
253
- "type": "boolean"
254
- },
255
- {
256
- "name": "aiEmployees",
257
- "attribute": false,
258
- "type": "AIEmployee[]"
259
- },
260
- {
261
- "name": "commands",
262
- "attribute": false,
263
- "type": "Command[]"
264
- },
265
- {
266
- "name": "uploadOptions",
267
- "attribute": false,
268
- "type": "UploadOptions"
269
- }
270
- ],
271
- "events": [
272
- {
273
- "name": "message.submit",
274
- "description": "",
275
- "deprecated": "Use `chat.submit` event instead",
276
- "detail": {
277
- "type": "string"
278
- }
279
- },
280
- {
281
- "name": "chat.submit",
282
- "detail": {
283
- "type": "ChatPayload"
284
- }
285
- },
286
- {
287
- "name": "command.select",
288
- "detail": {
289
- "type": "CommandPayload | null"
290
- }
291
- }
292
- ],
293
- "slots": [],
294
- "methods": [
295
- {
296
- "name": "setValue",
297
- "params": [
298
- {
299
- "name": "value",
300
- "type": "string"
301
- }
302
- ]
303
- },
304
- {
305
- "name": "getValue",
306
- "params": []
307
- },
308
- {
309
- "name": "focusOnInput",
310
- "params": []
311
- }
312
- ],
313
- "parts": [],
314
- "description": "构件 `ai-portal.chat-box`"
315
- },
316
241
  {
317
242
  "name": "ai-portal.elevo-sidebar",
318
243
  "properties": [
@@ -731,20 +656,56 @@
731
656
  "description": "构件 `ai-portal.ai-agents`"
732
657
  },
733
658
  {
734
- "name": "ai-portal.page-container",
659
+ "name": "ai-portal.tab-list",
735
660
  "properties": [
736
661
  {
737
- "name": "pageTitle",
738
- "type": "string"
662
+ "name": "tabs",
663
+ "attribute": false,
664
+ "type": "Tab[]"
739
665
  },
740
666
  {
741
- "name": "breadcrumbs",
667
+ "name": "activeTab",
742
668
  "attribute": false,
743
- "type": "Breadcrumb[]"
744
- },
669
+ "type": "string"
670
+ }
671
+ ],
672
+ "events": [
745
673
  {
746
- "name": "size",
747
- "type": "\"medium\" | \"small\" | \"full\""
674
+ "name": "tab.click",
675
+ "detail": {
676
+ "type": "Tab"
677
+ }
678
+ }
679
+ ],
680
+ "slots": [],
681
+ "methods": [],
682
+ "parts": [
683
+ {
684
+ "name": "tabs",
685
+ "description": "The tab list container"
686
+ },
687
+ {
688
+ "name": "tab",
689
+ "description": "The individual tab"
690
+ }
691
+ ],
692
+ "description": "构件 `ai-portal.tab-list`"
693
+ },
694
+ {
695
+ "name": "ai-portal.page-container",
696
+ "properties": [
697
+ {
698
+ "name": "pageTitle",
699
+ "type": "string"
700
+ },
701
+ {
702
+ "name": "breadcrumbs",
703
+ "attribute": false,
704
+ "type": "Breadcrumb[]"
705
+ },
706
+ {
707
+ "name": "size",
708
+ "type": "\"medium\" | \"small\" | \"full\""
748
709
  },
749
710
  {
750
711
  "name": "variant",
@@ -775,42 +736,6 @@
775
736
  "parts": [],
776
737
  "description": "构件 `ai-portal.page-container`"
777
738
  },
778
- {
779
- "name": "ai-portal.tab-list",
780
- "properties": [
781
- {
782
- "name": "tabs",
783
- "attribute": false,
784
- "type": "Tab[]"
785
- },
786
- {
787
- "name": "activeTab",
788
- "attribute": false,
789
- "type": "string"
790
- }
791
- ],
792
- "events": [
793
- {
794
- "name": "tab.click",
795
- "detail": {
796
- "type": "Tab"
797
- }
798
- }
799
- ],
800
- "slots": [],
801
- "methods": [],
802
- "parts": [
803
- {
804
- "name": "tabs",
805
- "description": "The tab list container"
806
- },
807
- {
808
- "name": "tab",
809
- "description": "The individual tab"
810
- }
811
- ],
812
- "description": "构件 `ai-portal.tab-list`"
813
- },
814
739
  {
815
740
  "name": "ai-portal.dropdown-select",
816
741
  "properties": [
@@ -887,6 +812,20 @@
887
812
  "parts": [],
888
813
  "description": "构件 `ai-portal.preview-container`"
889
814
  },
815
+ {
816
+ "name": "ai-portal.home-container",
817
+ "properties": [
818
+ {
819
+ "name": "sticky",
820
+ "type": "boolean"
821
+ }
822
+ ],
823
+ "events": [],
824
+ "slots": [],
825
+ "methods": [],
826
+ "parts": [],
827
+ "description": "构件 `ai-portal.home-container`"
828
+ },
890
829
  {
891
830
  "name": "ai-portal.action-buttons",
892
831
  "properties": [
@@ -976,6 +915,67 @@
976
915
  "parts": [],
977
916
  "description": "构件 `ai-portal.goal-card-list`"
978
917
  },
918
+ {
919
+ "name": "ai-portal.stat-with-mini-chart",
920
+ "properties": [
921
+ {
922
+ "name": "label",
923
+ "type": "string"
924
+ },
925
+ {
926
+ "name": "value",
927
+ "type": "string"
928
+ },
929
+ {
930
+ "name": "size",
931
+ "description": "",
932
+ "default": "\"medium\"",
933
+ "type": "\"medium\" | \"small\""
934
+ },
935
+ {
936
+ "name": "lineColor",
937
+ "description": "",
938
+ "default": "\"var(--color-brand)\"",
939
+ "type": "string"
940
+ },
941
+ {
942
+ "name": "showArea",
943
+ "type": "boolean"
944
+ },
945
+ {
946
+ "name": "min",
947
+ "description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
948
+ "type": "number"
949
+ },
950
+ {
951
+ "name": "max",
952
+ "description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
953
+ "type": "number"
954
+ },
955
+ {
956
+ "name": "xField",
957
+ "description": "",
958
+ "default": "\"0\"",
959
+ "type": "string"
960
+ },
961
+ {
962
+ "name": "yField",
963
+ "description": "",
964
+ "default": "\"1\"",
965
+ "type": "string"
966
+ },
967
+ {
968
+ "name": "data",
969
+ "attribute": false,
970
+ "type": "Record<string, number>[]"
971
+ }
972
+ ],
973
+ "events": [],
974
+ "slots": [],
975
+ "methods": [],
976
+ "parts": [],
977
+ "description": "构件 `ai-portal.stat-with-mini-chart`"
978
+ },
979
979
  {
980
980
  "name": "ai-portal.project-conversations",
981
981
  "properties": [
@@ -1055,6 +1055,25 @@
1055
1055
  "parts": [],
1056
1056
  "description": "构件 `ai-portal.project-knowledges`"
1057
1057
  },
1058
+ {
1059
+ "name": "ai-portal.activity-timeline",
1060
+ "properties": [
1061
+ {
1062
+ "name": "list",
1063
+ "attribute": false,
1064
+ "type": "Activity[]"
1065
+ },
1066
+ {
1067
+ "name": "chatUrlTemplate",
1068
+ "type": "string"
1069
+ }
1070
+ ],
1071
+ "events": [],
1072
+ "slots": [],
1073
+ "methods": [],
1074
+ "parts": [],
1075
+ "description": "构件 `ai-portal.activity-timeline`"
1076
+ },
1058
1077
  {
1059
1078
  "name": "ai-portal.chat-input",
1060
1079
  "properties": [
@@ -1142,43 +1161,6 @@
1142
1161
  "parts": [],
1143
1162
  "description": "构件 `ai-portal.show-case`"
1144
1163
  },
1145
- {
1146
- "name": "ai-portal.activity-timeline",
1147
- "properties": [
1148
- {
1149
- "name": "list",
1150
- "attribute": false,
1151
- "type": "Activity[]"
1152
- },
1153
- {
1154
- "name": "chatUrlTemplate",
1155
- "type": "string"
1156
- }
1157
- ],
1158
- "events": [],
1159
- "slots": [],
1160
- "methods": [],
1161
- "parts": [],
1162
- "description": "构件 `ai-portal.activity-timeline`"
1163
- },
1164
- {
1165
- "name": "ai-portal.blank-state",
1166
- "properties": [
1167
- {
1168
- "name": "illustration",
1169
- "type": "BlankStateIllustration"
1170
- },
1171
- {
1172
- "name": "description",
1173
- "type": "string"
1174
- }
1175
- ],
1176
- "events": [],
1177
- "slots": [],
1178
- "methods": [],
1179
- "parts": [],
1180
- "description": "构件 `ai-portal.blank-state`"
1181
- },
1182
1164
  {
1183
1165
  "name": "ai-portal.sticky-container",
1184
1166
  "properties": [
@@ -1213,6 +1195,24 @@
1213
1195
  "parts": [],
1214
1196
  "description": "构件 `ai-portal.sticky-container`"
1215
1197
  },
1198
+ {
1199
+ "name": "ai-portal.blank-state",
1200
+ "properties": [
1201
+ {
1202
+ "name": "illustration",
1203
+ "type": "BlankStateIllustration"
1204
+ },
1205
+ {
1206
+ "name": "description",
1207
+ "type": "string"
1208
+ }
1209
+ ],
1210
+ "events": [],
1211
+ "slots": [],
1212
+ "methods": [],
1213
+ "parts": [],
1214
+ "description": "构件 `ai-portal.blank-state`"
1215
+ },
1216
1216
  {
1217
1217
  "name": "ai-portal.elevo-card",
1218
1218
  "properties": [
@@ -1271,6 +1271,93 @@
1271
1271
  "parts": [],
1272
1272
  "description": "构件 `ai-portal.flow-tabs`"
1273
1273
  },
1274
+ {
1275
+ "name": "ai-portal.stage-flow",
1276
+ "properties": [
1277
+ {
1278
+ "name": "spec",
1279
+ "attribute": false,
1280
+ "type": "Stage[]"
1281
+ },
1282
+ {
1283
+ "name": "aiEmployees",
1284
+ "attribute": false,
1285
+ "type": "AIEmployee[]"
1286
+ },
1287
+ {
1288
+ "name": "readOnly",
1289
+ "type": "boolean"
1290
+ }
1291
+ ],
1292
+ "events": [
1293
+ {
1294
+ "name": "change",
1295
+ "detail": {
1296
+ "type": "Stage[]"
1297
+ }
1298
+ },
1299
+ {
1300
+ "name": "add.activity",
1301
+ "detail": {
1302
+ "type": "{ stage: Stage }"
1303
+ }
1304
+ },
1305
+ {
1306
+ "name": "edit.activity",
1307
+ "detail": {
1308
+ "type": "EditActivityDetail"
1309
+ }
1310
+ }
1311
+ ],
1312
+ "slots": [],
1313
+ "methods": [
1314
+ {
1315
+ "name": "addActivity",
1316
+ "params": [
1317
+ {
1318
+ "name": "stage",
1319
+ "type": "Stage"
1320
+ },
1321
+ {
1322
+ "name": "activity",
1323
+ "type": "FlowActivity"
1324
+ }
1325
+ ]
1326
+ },
1327
+ {
1328
+ "name": "editActivity",
1329
+ "params": [
1330
+ {
1331
+ "name": "stage",
1332
+ "type": "Stage"
1333
+ },
1334
+ {
1335
+ "name": "activity",
1336
+ "type": "FlowActivity"
1337
+ },
1338
+ {
1339
+ "name": "activityIndex",
1340
+ "type": "number"
1341
+ }
1342
+ ]
1343
+ },
1344
+ {
1345
+ "name": "deleteActivity",
1346
+ "params": [
1347
+ {
1348
+ "name": "stage",
1349
+ "type": "Stage"
1350
+ },
1351
+ {
1352
+ "name": "activityIndex",
1353
+ "type": "number"
1354
+ }
1355
+ ]
1356
+ }
1357
+ ],
1358
+ "parts": [],
1359
+ "description": "构件 `ai-portal.stage-flow`"
1360
+ },
1274
1361
  {
1275
1362
  "name": "ai-portal.running-flow",
1276
1363
  "properties": [
@@ -1364,99 +1451,15 @@
1364
1451
  "methods": [],
1365
1452
  "parts": [],
1366
1453
  "description": "构件 `ai-portal.notice-dropdown`\n\n消息通知下拉框构件,用于展示消息列表"
1367
- },
1368
- {
1369
- "name": "ai-portal.stage-flow",
1370
- "properties": [
1371
- {
1372
- "name": "spec",
1373
- "attribute": false,
1374
- "type": "Stage[]"
1375
- },
1376
- {
1377
- "name": "aiEmployees",
1378
- "attribute": false,
1379
- "type": "AIEmployee[]"
1380
- },
1381
- {
1382
- "name": "readOnly",
1383
- "type": "boolean"
1384
- }
1385
- ],
1386
- "events": [
1387
- {
1388
- "name": "change",
1389
- "detail": {
1390
- "type": "Stage[]"
1391
- }
1392
- },
1393
- {
1394
- "name": "add.activity",
1395
- "detail": {
1396
- "type": "{ stage: Stage }"
1397
- }
1398
- },
1399
- {
1400
- "name": "edit.activity",
1401
- "detail": {
1402
- "type": "EditActivityDetail"
1403
- }
1404
- }
1405
- ],
1406
- "slots": [],
1407
- "methods": [
1408
- {
1409
- "name": "addActivity",
1410
- "params": [
1411
- {
1412
- "name": "stage",
1413
- "type": "Stage"
1414
- },
1415
- {
1416
- "name": "activity",
1417
- "type": "FlowActivity"
1418
- }
1419
- ]
1420
- },
1421
- {
1422
- "name": "editActivity",
1423
- "params": [
1424
- {
1425
- "name": "stage",
1426
- "type": "Stage"
1427
- },
1428
- {
1429
- "name": "activity",
1430
- "type": "FlowActivity"
1431
- },
1432
- {
1433
- "name": "activityIndex",
1434
- "type": "number"
1435
- }
1436
- ]
1437
- },
1438
- {
1439
- "name": "deleteActivity",
1440
- "params": [
1441
- {
1442
- "name": "stage",
1443
- "type": "Stage"
1444
- },
1445
- {
1446
- "name": "activityIndex",
1447
- "type": "number"
1448
- }
1449
- ]
1450
- }
1451
- ],
1452
- "parts": [],
1453
- "description": "构件 `ai-portal.stage-flow`"
1454
1454
  }
1455
1455
  ],
1456
1456
  "providers": [
1457
1457
  {
1458
1458
  "name": "ai-portal.call-tool"
1459
1459
  },
1460
+ {
1461
+ "name": "ai-portal.set-chat-command"
1462
+ },
1460
1463
  {
1461
1464
  "name": "ai-portal.save-request-store"
1462
1465
  },
@@ -1465,9 +1468,6 @@
1465
1468
  },
1466
1469
  {
1467
1470
  "name": "ai-portal.clear-request-store"
1468
- },
1469
- {
1470
- "name": "ai-portal.set-chat-command"
1471
1471
  }
1472
1472
  ]
1473
1473
  }