@next-bricks/ai-portal 0.58.2 → 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.
Files changed (55) hide show
  1. package/dist/bricks.json +31 -27
  2. package/dist/chunks/1488.8388b745.js +2 -0
  3. package/dist/chunks/1488.8388b745.js.map +1 -0
  4. package/dist/chunks/151.4739e5b9.js +2 -0
  5. package/dist/chunks/151.4739e5b9.js.map +1 -0
  6. package/dist/chunks/2232.fa4338ad.js +2 -0
  7. package/dist/chunks/2232.fa4338ad.js.map +1 -0
  8. package/dist/chunks/2324.c7c2427a.js +2 -0
  9. package/dist/chunks/2324.c7c2427a.js.map +1 -0
  10. package/dist/chunks/9496.9bf2d483.js +2 -0
  11. package/dist/chunks/9496.9bf2d483.js.map +1 -0
  12. package/dist/chunks/chat-box.041da849.js +2 -0
  13. package/dist/chunks/chat-box.041da849.js.map +1 -0
  14. package/dist/chunks/chat-input.2c5e645b.js +2 -0
  15. package/dist/chunks/chat-input.2c5e645b.js.map +1 -0
  16. package/dist/chunks/chat-stream.da44fc66.js +2 -0
  17. package/dist/chunks/chat-stream.da44fc66.js.map +1 -0
  18. package/dist/chunks/cruise-canvas.12cab553.js +2 -0
  19. package/dist/chunks/cruise-canvas.12cab553.js.map +1 -0
  20. package/dist/chunks/{main.f26590db.js → main.f37ac908.js} +2 -2
  21. package/dist/chunks/{main.f26590db.js.map → main.f37ac908.js.map} +1 -1
  22. package/dist/chunks/notice-dropdown.37b8ffb2.js.map +1 -1
  23. package/dist/examples.json +20 -20
  24. package/dist/{index.734b36bb.js → index.64433778.js} +2 -2
  25. package/dist/{index.734b36bb.js.map → index.64433778.js.map} +1 -1
  26. package/dist/manifest.json +250 -230
  27. package/dist/types.json +609 -496
  28. package/dist-types/chat-stream/ChatStream.d.ts +2 -1
  29. package/dist-types/chat-stream/index.d.ts +5 -1
  30. package/dist-types/cruise-canvas/CruiseCanvas.d.ts +1 -1
  31. package/dist-types/cruise-canvas/index.d.ts +7 -0
  32. package/dist-types/notice-dropdown/index.d.ts +1 -12
  33. package/dist-types/shared/FileUpload/UploadButton.d.ts +1 -3
  34. package/dist-types/shared/bricks.d.ts +10 -0
  35. package/dist-types/shared/interfaces.d.ts +7 -0
  36. package/dist-types/shared/useFilesUploading.d.ts +5 -3
  37. package/package.json +2 -2
  38. package/dist/chunks/1488.7acd87b5.js +0 -2
  39. package/dist/chunks/1488.7acd87b5.js.map +0 -1
  40. package/dist/chunks/151.b87bccc0.js +0 -2
  41. package/dist/chunks/151.b87bccc0.js.map +0 -1
  42. package/dist/chunks/2232.8b3d46e2.js +0 -2
  43. package/dist/chunks/2232.8b3d46e2.js.map +0 -1
  44. package/dist/chunks/7041.ff8d9ead.js +0 -2
  45. package/dist/chunks/7041.ff8d9ead.js.map +0 -1
  46. package/dist/chunks/9496.9be62b7c.js +0 -2
  47. package/dist/chunks/9496.9be62b7c.js.map +0 -1
  48. package/dist/chunks/chat-box.1b2a4a02.js +0 -2
  49. package/dist/chunks/chat-box.1b2a4a02.js.map +0 -1
  50. package/dist/chunks/chat-input.3ca07b82.js +0 -2
  51. package/dist/chunks/chat-input.3ca07b82.js.map +0 -1
  52. package/dist/chunks/chat-stream.a7c4f58d.js +0 -2
  53. package/dist/chunks/chat-stream.a7c4f58d.js.map +0 -1
  54. package/dist/chunks/cruise-canvas.b444c4ca.js +0 -2
  55. package/dist/chunks/cruise-canvas.b444c4ca.js.map +0 -1
@@ -4,65 +4,80 @@
4
4
  "name": "ai-portal",
5
5
  "bricks": [
6
6
  {
7
- "name": "ai-portal.stat-with-mini-chart",
7
+ "name": "ai-portal.chat-box",
8
8
  "properties": [
9
9
  {
10
- "name": "label",
11
- "type": "string"
10
+ "name": "disabled",
11
+ "type": "boolean"
12
12
  },
13
13
  {
14
- "name": "value",
14
+ "name": "placeholder",
15
15
  "type": "string"
16
16
  },
17
17
  {
18
- "name": "size",
19
- "description": "",
20
- "default": "\"medium\"",
21
- "type": "\"medium\" | \"small\""
18
+ "name": "autoFocus",
19
+ "type": "boolean"
22
20
  },
23
21
  {
24
- "name": "lineColor",
25
- "description": "",
26
- "default": "\"var(--color-brand)\"",
27
- "type": "string"
22
+ "name": "aiEmployees",
23
+ "attribute": false,
24
+ "type": "AIEmployee[]"
28
25
  },
29
26
  {
30
- "name": "showArea",
31
- "type": "boolean"
27
+ "name": "commands",
28
+ "attribute": false,
29
+ "type": "Command[]"
32
30
  },
33
31
  {
34
- "name": "min",
35
- "description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
36
- "type": "number"
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
+ }
37
45
  },
38
46
  {
39
- "name": "max",
40
- "description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
41
- "type": "number"
47
+ "name": "chat.submit",
48
+ "detail": {
49
+ "type": "ChatPayload"
50
+ }
42
51
  },
43
52
  {
44
- "name": "xField",
45
- "description": "",
46
- "default": "\"0\"",
47
- "type": "string"
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
+ ]
48
69
  },
49
70
  {
50
- "name": "yField",
51
- "description": "",
52
- "default": "\"1\"",
53
- "type": "string"
71
+ "name": "getValue",
72
+ "params": []
54
73
  },
55
74
  {
56
- "name": "data",
57
- "attribute": false,
58
- "type": "Record<string, number>[]"
75
+ "name": "focusOnInput",
76
+ "params": []
59
77
  }
60
78
  ],
61
- "events": [],
62
- "slots": [],
63
- "methods": [],
64
79
  "parts": [],
65
- "description": "构件 `ai-portal.stat-with-mini-chart`"
80
+ "description": "构件 `ai-portal.chat-box`"
66
81
  },
67
82
  {
68
83
  "name": "ai-portal.cruise-canvas",
@@ -151,6 +166,11 @@
151
166
  "name": "uploadOptions",
152
167
  "attribute": false,
153
168
  "type": "UploadOptions"
169
+ },
170
+ {
171
+ "name": "toolbarBrick",
172
+ "attribute": false,
173
+ "type": "{ useBrick: UseSingleBrickConf }"
154
174
  }
155
175
  ],
156
176
  "events": [
@@ -354,20 +374,6 @@
354
374
  "parts": [],
355
375
  "description": "构件 `ai-portal.elevo-sidebar`"
356
376
  },
357
- {
358
- "name": "ai-portal.home-container",
359
- "properties": [
360
- {
361
- "name": "sticky",
362
- "type": "boolean"
363
- }
364
- ],
365
- "events": [],
366
- "slots": [],
367
- "methods": [],
368
- "parts": [],
369
- "description": "构件 `ai-portal.home-container`"
370
- },
371
377
  {
372
378
  "name": "ai-portal.icon-button",
373
379
  "properties": [
@@ -467,31 +473,6 @@
467
473
  "parts": [],
468
474
  "description": "构件 `ai-portal.ai-employees`"
469
475
  },
470
- {
471
- "name": "ai-portal.ai-agents",
472
- "properties": [
473
- {
474
- "name": "list",
475
- "attribute": false,
476
- "type": "Agent[]"
477
- },
478
- {
479
- "name": "urlTemplate",
480
- "type": "string"
481
- },
482
- {
483
- "name": "withContainer",
484
- "description": "",
485
- "deprecated": true,
486
- "default": "true"
487
- }
488
- ],
489
- "events": [],
490
- "slots": [],
491
- "methods": [],
492
- "parts": [],
493
- "description": "构件 `ai-portal.ai-agents`"
494
- },
495
476
  {
496
477
  "name": "ai-portal.chat-stream",
497
478
  "properties": [
@@ -567,6 +548,15 @@
567
548
  "name": "uploadOptions",
568
549
  "attribute": false,
569
550
  "type": "UploadOptions"
551
+ },
552
+ {
553
+ "name": "notices",
554
+ "attribute": false,
555
+ "type": "NoticeItem[]"
556
+ },
557
+ {
558
+ "name": "showNoticeIcon",
559
+ "type": "boolean"
570
560
  }
571
561
  ],
572
562
  "events": [
@@ -605,6 +595,12 @@
605
595
  "detail": {
606
596
  "type": "ConversationDetail"
607
597
  }
598
+ },
599
+ {
600
+ "name": "mark.notices.read",
601
+ "detail": {
602
+ "type": "void"
603
+ }
608
604
  }
609
605
  ],
610
606
  "slots": [],
@@ -635,49 +631,29 @@
635
631
  "description": "构件 `ai-portal.chat-stream`"
636
632
  },
637
633
  {
638
- "name": "ai-portal.page-container",
634
+ "name": "ai-portal.ai-agents",
639
635
  "properties": [
640
636
  {
641
- "name": "pageTitle",
642
- "type": "string"
643
- },
644
- {
645
- "name": "breadcrumbs",
637
+ "name": "list",
646
638
  "attribute": false,
647
- "type": "Breadcrumb[]"
648
- },
649
- {
650
- "name": "size",
651
- "type": "\"medium\" | \"small\" | \"full\""
652
- },
653
- {
654
- "name": "variant",
655
- "type": "\"default\" | \"form\""
639
+ "type": "Agent[]"
656
640
  },
657
641
  {
658
- "name": "sticky",
659
- "type": "boolean"
642
+ "name": "urlTemplate",
643
+ "type": "string"
660
644
  },
661
645
  {
662
- "name": "textContent",
663
- "type": "string",
664
- "description": "文本内容"
646
+ "name": "withContainer",
647
+ "description": "",
648
+ "deprecated": true,
649
+ "default": "true"
665
650
  }
666
651
  ],
667
652
  "events": [],
668
- "slots": [
669
- {
670
- "name": null,
671
- "description": "内容"
672
- },
673
- {
674
- "name": "toolbar",
675
- "description": "工具栏"
676
- }
677
- ],
653
+ "slots": [],
678
654
  "methods": [],
679
655
  "parts": [],
680
- "description": "构件 `ai-portal.page-container`"
656
+ "description": "构件 `ai-portal.ai-agents`"
681
657
  },
682
658
  {
683
659
  "name": "ai-portal.tab-list",
@@ -716,23 +692,49 @@
716
692
  "description": "构件 `ai-portal.tab-list`"
717
693
  },
718
694
  {
719
- "name": "ai-portal.preview-container",
695
+ "name": "ai-portal.page-container",
720
696
  "properties": [
721
697
  {
722
- "name": "source",
723
- "attribute": false,
698
+ "name": "pageTitle",
724
699
  "type": "string"
725
700
  },
726
701
  {
727
- "name": "url",
728
- "type": "string"
702
+ "name": "breadcrumbs",
703
+ "attribute": false,
704
+ "type": "Breadcrumb[]"
705
+ },
706
+ {
707
+ "name": "size",
708
+ "type": "\"medium\" | \"small\" | \"full\""
709
+ },
710
+ {
711
+ "name": "variant",
712
+ "type": "\"default\" | \"form\""
713
+ },
714
+ {
715
+ "name": "sticky",
716
+ "type": "boolean"
717
+ },
718
+ {
719
+ "name": "textContent",
720
+ "type": "string",
721
+ "description": "文本内容"
729
722
  }
730
723
  ],
731
724
  "events": [],
732
- "slots": [],
725
+ "slots": [
726
+ {
727
+ "name": null,
728
+ "description": "内容"
729
+ },
730
+ {
731
+ "name": "toolbar",
732
+ "description": "工具栏"
733
+ }
734
+ ],
733
735
  "methods": [],
734
736
  "parts": [],
735
- "description": "构件 `ai-portal.preview-container`"
737
+ "description": "构件 `ai-portal.page-container`"
736
738
  },
737
739
  {
738
740
  "name": "ai-portal.dropdown-select",
@@ -792,106 +794,63 @@
792
794
  "description": "构件 `ai-portal.dropdown-select`"
793
795
  },
794
796
  {
795
- "name": "ai-portal.action-buttons",
797
+ "name": "ai-portal.preview-container",
796
798
  "properties": [
797
799
  {
798
- "name": "items",
800
+ "name": "source",
799
801
  "attribute": false,
800
- "type": "ActionItem[]"
802
+ "type": "string"
801
803
  },
802
804
  {
803
- "name": "activeKey",
804
- "type": "string | null"
805
+ "name": "url",
806
+ "type": "string"
805
807
  }
806
808
  ],
807
- "events": [
809
+ "events": [],
810
+ "slots": [],
811
+ "methods": [],
812
+ "parts": [],
813
+ "description": "构件 `ai-portal.preview-container`"
814
+ },
815
+ {
816
+ "name": "ai-portal.home-container",
817
+ "properties": [
808
818
  {
809
- "name": "change",
810
- "detail": {
811
- "type": "ActionItem | null"
812
- }
819
+ "name": "sticky",
820
+ "type": "boolean"
813
821
  }
814
822
  ],
823
+ "events": [],
815
824
  "slots": [],
816
825
  "methods": [],
817
826
  "parts": [],
818
- "description": "构件 `ai-portal.action-buttons`"
827
+ "description": "构件 `ai-portal.home-container`"
819
828
  },
820
829
  {
821
- "name": "ai-portal.chat-box",
830
+ "name": "ai-portal.action-buttons",
822
831
  "properties": [
823
832
  {
824
- "name": "disabled",
825
- "type": "boolean"
826
- },
827
- {
828
- "name": "placeholder",
829
- "type": "string"
830
- },
831
- {
832
- "name": "autoFocus",
833
- "type": "boolean"
834
- },
835
- {
836
- "name": "aiEmployees",
837
- "attribute": false,
838
- "type": "AIEmployee[]"
839
- },
840
- {
841
- "name": "commands",
833
+ "name": "items",
842
834
  "attribute": false,
843
- "type": "Command[]"
835
+ "type": "ActionItem[]"
844
836
  },
845
837
  {
846
- "name": "uploadOptions",
847
- "attribute": false,
848
- "type": "UploadOptions"
838
+ "name": "activeKey",
839
+ "type": "string | null"
849
840
  }
850
841
  ],
851
842
  "events": [
852
843
  {
853
- "name": "message.submit",
854
- "description": "",
855
- "deprecated": "Use `chat.submit` event instead",
856
- "detail": {
857
- "type": "string"
858
- }
859
- },
860
- {
861
- "name": "chat.submit",
862
- "detail": {
863
- "type": "ChatPayload"
864
- }
865
- },
866
- {
867
- "name": "command.select",
844
+ "name": "change",
868
845
  "detail": {
869
- "type": "CommandPayload | null"
846
+ "type": "ActionItem | null"
870
847
  }
871
848
  }
872
849
  ],
873
850
  "slots": [],
874
- "methods": [
875
- {
876
- "name": "setValue",
877
- "params": [
878
- {
879
- "name": "value",
880
- "type": "string"
881
- }
882
- ]
883
- },
884
- {
885
- "name": "getValue",
886
- "params": []
887
- },
888
- {
889
- "name": "focusOnInput",
890
- "params": []
891
- }
892
- ],
851
+ "methods": [],
893
852
  "parts": [],
894
- "description": "构件 `ai-portal.chat-box`"
853
+ "description": "构件 `ai-portal.action-buttons`"
895
854
  },
896
855
  {
897
856
  "name": "ai-portal.goal-card-list",
@@ -956,6 +915,67 @@
956
915
  "parts": [],
957
916
  "description": "构件 `ai-portal.goal-card-list`"
958
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
+ },
959
979
  {
960
980
  "name": "ai-portal.project-conversations",
961
981
  "properties": [
@@ -1141,24 +1161,6 @@
1141
1161
  "parts": [],
1142
1162
  "description": "构件 `ai-portal.show-case`"
1143
1163
  },
1144
- {
1145
- "name": "ai-portal.blank-state",
1146
- "properties": [
1147
- {
1148
- "name": "illustration",
1149
- "type": "BlankStateIllustration"
1150
- },
1151
- {
1152
- "name": "description",
1153
- "type": "string"
1154
- }
1155
- ],
1156
- "events": [],
1157
- "slots": [],
1158
- "methods": [],
1159
- "parts": [],
1160
- "description": "构件 `ai-portal.blank-state`"
1161
- },
1162
1164
  {
1163
1165
  "name": "ai-portal.sticky-container",
1164
1166
  "properties": [
@@ -1193,6 +1195,24 @@
1193
1195
  "parts": [],
1194
1196
  "description": "构件 `ai-portal.sticky-container`"
1195
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
+ },
1196
1216
  {
1197
1217
  "name": "ai-portal.elevo-card",
1198
1218
  "properties": [
@@ -1224,6 +1244,33 @@
1224
1244
  "parts": [],
1225
1245
  "description": "构件 `ai-portal.elevo-card`"
1226
1246
  },
1247
+ {
1248
+ "name": "ai-portal.flow-tabs",
1249
+ "properties": [
1250
+ {
1251
+ "name": "tabs",
1252
+ "attribute": false,
1253
+ "type": "Tab[]"
1254
+ },
1255
+ {
1256
+ "name": "activeTab",
1257
+ "attribute": false,
1258
+ "type": "string"
1259
+ }
1260
+ ],
1261
+ "events": [
1262
+ {
1263
+ "name": "tab.click",
1264
+ "detail": {
1265
+ "type": "Tab"
1266
+ }
1267
+ }
1268
+ ],
1269
+ "slots": [],
1270
+ "methods": [],
1271
+ "parts": [],
1272
+ "description": "构件 `ai-portal.flow-tabs`"
1273
+ },
1227
1274
  {
1228
1275
  "name": "ai-portal.stage-flow",
1229
1276
  "properties": [
@@ -1311,33 +1358,6 @@
1311
1358
  "parts": [],
1312
1359
  "description": "构件 `ai-portal.stage-flow`"
1313
1360
  },
1314
- {
1315
- "name": "ai-portal.flow-tabs",
1316
- "properties": [
1317
- {
1318
- "name": "tabs",
1319
- "attribute": false,
1320
- "type": "Tab[]"
1321
- },
1322
- {
1323
- "name": "activeTab",
1324
- "attribute": false,
1325
- "type": "string"
1326
- }
1327
- ],
1328
- "events": [
1329
- {
1330
- "name": "tab.click",
1331
- "detail": {
1332
- "type": "Tab"
1333
- }
1334
- }
1335
- ],
1336
- "slots": [],
1337
- "methods": [],
1338
- "parts": [],
1339
- "description": "构件 `ai-portal.flow-tabs`"
1340
- },
1341
1361
  {
1342
1362
  "name": "ai-portal.running-flow",
1343
1363
  "properties": [
@@ -1437,6 +1457,9 @@
1437
1457
  {
1438
1458
  "name": "ai-portal.call-tool"
1439
1459
  },
1460
+ {
1461
+ "name": "ai-portal.set-chat-command"
1462
+ },
1440
1463
  {
1441
1464
  "name": "ai-portal.save-request-store"
1442
1465
  },
@@ -1445,9 +1468,6 @@
1445
1468
  },
1446
1469
  {
1447
1470
  "name": "ai-portal.clear-request-store"
1448
- },
1449
- {
1450
- "name": "ai-portal.set-chat-command"
1451
1471
  }
1452
1472
  ]
1453
1473
  }