@next-bricks/ai-portal 0.48.3 → 0.48.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.
package/dist/types.json CHANGED
@@ -1,108 +1,4 @@
1
1
  {
2
- "ai-portal.stat-with-mini-chart": {
3
- "properties": [
4
- {
5
- "name": "label",
6
- "annotation": {
7
- "type": "keyword",
8
- "value": "string"
9
- }
10
- },
11
- {
12
- "name": "value",
13
- "annotation": {
14
- "type": "keyword",
15
- "value": "string"
16
- }
17
- },
18
- {
19
- "name": "size",
20
- "annotation": {
21
- "type": "union",
22
- "types": [
23
- {
24
- "type": "jsLiteral",
25
- "value": "medium"
26
- },
27
- {
28
- "type": "jsLiteral",
29
- "value": "small"
30
- }
31
- ]
32
- }
33
- },
34
- {
35
- "name": "lineColor",
36
- "annotation": {
37
- "type": "keyword",
38
- "value": "string"
39
- }
40
- },
41
- {
42
- "name": "showArea",
43
- "annotation": {
44
- "type": "keyword",
45
- "value": "boolean"
46
- }
47
- },
48
- {
49
- "name": "min",
50
- "annotation": {
51
- "type": "keyword",
52
- "value": "number"
53
- }
54
- },
55
- {
56
- "name": "max",
57
- "annotation": {
58
- "type": "keyword",
59
- "value": "number"
60
- }
61
- },
62
- {
63
- "name": "xField",
64
- "annotation": {
65
- "type": "keyword",
66
- "value": "string"
67
- }
68
- },
69
- {
70
- "name": "yField",
71
- "annotation": {
72
- "type": "keyword",
73
- "value": "string"
74
- }
75
- },
76
- {
77
- "name": "data",
78
- "annotation": {
79
- "type": "array",
80
- "elementType": {
81
- "type": "reference",
82
- "typeName": {
83
- "type": "identifier",
84
- "name": "Record"
85
- },
86
- "typeParameters": {
87
- "type": "typeParameterInstantiation",
88
- "params": [
89
- {
90
- "type": "keyword",
91
- "value": "string"
92
- },
93
- {
94
- "type": "keyword",
95
- "value": "number"
96
- }
97
- ]
98
- }
99
- }
100
- }
101
- }
102
- ],
103
- "events": [],
104
- "methods": []
105
- },
106
2
  "ai-portal.home-container": {
107
3
  "properties": [],
108
4
  "events": [],
@@ -179,62 +75,6 @@
179
75
  }
180
76
  ]
181
77
  },
182
- "ai-portal.call-tool": {
183
- "type": "provider",
184
- "params": [
185
- {
186
- "name": "tool",
187
- "annotation": {
188
- "type": "reference",
189
- "typeName": {
190
- "type": "identifier",
191
- "name": "ToolInfo"
192
- }
193
- }
194
- },
195
- {
196
- "name": "params",
197
- "annotation": {
198
- "type": "reference",
199
- "typeName": {
200
- "type": "identifier",
201
- "name": "Record"
202
- },
203
- "typeParameters": {
204
- "type": "typeParameterInstantiation",
205
- "params": [
206
- {
207
- "type": "keyword",
208
- "value": "string"
209
- },
210
- {
211
- "type": "keyword",
212
- "value": "unknown"
213
- }
214
- ]
215
- }
216
- }
217
- }
218
- ],
219
- "returns": {
220
- "annotation": {
221
- "type": "reference",
222
- "typeName": {
223
- "type": "identifier",
224
- "name": "Promise"
225
- },
226
- "typeParameters": {
227
- "type": "typeParameterInstantiation",
228
- "params": [
229
- {
230
- "type": "keyword",
231
- "value": "unknown"
232
- }
233
- ]
234
- }
235
- }
236
- }
237
- },
238
78
  "ai-portal.save-request-store": {
239
79
  "type": "provider",
240
80
  "params": [
@@ -352,6 +192,62 @@
352
192
  }
353
193
  }
354
194
  },
195
+ "ai-portal.call-tool": {
196
+ "type": "provider",
197
+ "params": [
198
+ {
199
+ "name": "tool",
200
+ "annotation": {
201
+ "type": "reference",
202
+ "typeName": {
203
+ "type": "identifier",
204
+ "name": "ToolInfo"
205
+ }
206
+ }
207
+ },
208
+ {
209
+ "name": "params",
210
+ "annotation": {
211
+ "type": "reference",
212
+ "typeName": {
213
+ "type": "identifier",
214
+ "name": "Record"
215
+ },
216
+ "typeParameters": {
217
+ "type": "typeParameterInstantiation",
218
+ "params": [
219
+ {
220
+ "type": "keyword",
221
+ "value": "string"
222
+ },
223
+ {
224
+ "type": "keyword",
225
+ "value": "unknown"
226
+ }
227
+ ]
228
+ }
229
+ }
230
+ }
231
+ ],
232
+ "returns": {
233
+ "annotation": {
234
+ "type": "reference",
235
+ "typeName": {
236
+ "type": "identifier",
237
+ "name": "Promise"
238
+ },
239
+ "typeParameters": {
240
+ "type": "typeParameterInstantiation",
241
+ "params": [
242
+ {
243
+ "type": "keyword",
244
+ "value": "unknown"
245
+ }
246
+ ]
247
+ }
248
+ }
249
+ }
250
+ },
355
251
  "ai-portal.page-container": {
356
252
  "properties": [
357
253
  {
@@ -492,17 +388,121 @@
492
388
  "type": "propertySignature",
493
389
  "key": {
494
390
  "type": "identifier",
495
- "name": "label"
496
- },
497
- "annotation": {
498
- "type": "keyword",
499
- "value": "string"
391
+ "name": "label"
392
+ },
393
+ "annotation": {
394
+ "type": "keyword",
395
+ "value": "string"
396
+ },
397
+ "computed": false
398
+ }
399
+ ]
400
+ }
401
+ ]
402
+ },
403
+ "ai-portal.stat-with-mini-chart": {
404
+ "properties": [
405
+ {
406
+ "name": "label",
407
+ "annotation": {
408
+ "type": "keyword",
409
+ "value": "string"
410
+ }
411
+ },
412
+ {
413
+ "name": "value",
414
+ "annotation": {
415
+ "type": "keyword",
416
+ "value": "string"
417
+ }
418
+ },
419
+ {
420
+ "name": "size",
421
+ "annotation": {
422
+ "type": "union",
423
+ "types": [
424
+ {
425
+ "type": "jsLiteral",
426
+ "value": "medium"
427
+ },
428
+ {
429
+ "type": "jsLiteral",
430
+ "value": "small"
431
+ }
432
+ ]
433
+ }
434
+ },
435
+ {
436
+ "name": "lineColor",
437
+ "annotation": {
438
+ "type": "keyword",
439
+ "value": "string"
440
+ }
441
+ },
442
+ {
443
+ "name": "showArea",
444
+ "annotation": {
445
+ "type": "keyword",
446
+ "value": "boolean"
447
+ }
448
+ },
449
+ {
450
+ "name": "min",
451
+ "annotation": {
452
+ "type": "keyword",
453
+ "value": "number"
454
+ }
455
+ },
456
+ {
457
+ "name": "max",
458
+ "annotation": {
459
+ "type": "keyword",
460
+ "value": "number"
461
+ }
462
+ },
463
+ {
464
+ "name": "xField",
465
+ "annotation": {
466
+ "type": "keyword",
467
+ "value": "string"
468
+ }
469
+ },
470
+ {
471
+ "name": "yField",
472
+ "annotation": {
473
+ "type": "keyword",
474
+ "value": "string"
475
+ }
476
+ },
477
+ {
478
+ "name": "data",
479
+ "annotation": {
480
+ "type": "array",
481
+ "elementType": {
482
+ "type": "reference",
483
+ "typeName": {
484
+ "type": "identifier",
485
+ "name": "Record"
500
486
  },
501
- "computed": false
487
+ "typeParameters": {
488
+ "type": "typeParameterInstantiation",
489
+ "params": [
490
+ {
491
+ "type": "keyword",
492
+ "value": "string"
493
+ },
494
+ {
495
+ "type": "keyword",
496
+ "value": "number"
497
+ }
498
+ ]
499
+ }
502
500
  }
503
- ]
501
+ }
504
502
  }
505
- ]
503
+ ],
504
+ "events": [],
505
+ "methods": []
506
506
  },
507
507
  "ai-portal.elevo-logo": {
508
508
  "properties": [],
@@ -679,6 +679,101 @@
679
679
  }
680
680
  ]
681
681
  },
682
+ "ai-portal.show-cases": {
683
+ "properties": [
684
+ {
685
+ "name": "list",
686
+ "annotation": {
687
+ "type": "array",
688
+ "elementType": {
689
+ "type": "reference",
690
+ "typeName": {
691
+ "type": "identifier",
692
+ "name": "ShowCaseType"
693
+ }
694
+ }
695
+ }
696
+ },
697
+ {
698
+ "name": "limit",
699
+ "annotation": {
700
+ "type": "keyword",
701
+ "value": "number"
702
+ }
703
+ }
704
+ ],
705
+ "events": [],
706
+ "methods": [],
707
+ "types": [
708
+ {
709
+ "type": "interface",
710
+ "name": "ShowCaseType",
711
+ "body": [
712
+ {
713
+ "type": "propertySignature",
714
+ "key": {
715
+ "type": "identifier",
716
+ "name": "conversationId"
717
+ },
718
+ "annotation": {
719
+ "type": "keyword",
720
+ "value": "string"
721
+ },
722
+ "computed": false
723
+ },
724
+ {
725
+ "type": "propertySignature",
726
+ "key": {
727
+ "type": "identifier",
728
+ "name": "title"
729
+ },
730
+ "annotation": {
731
+ "type": "keyword",
732
+ "value": "string"
733
+ },
734
+ "computed": false
735
+ },
736
+ {
737
+ "type": "propertySignature",
738
+ "key": {
739
+ "type": "identifier",
740
+ "name": "summary"
741
+ },
742
+ "annotation": {
743
+ "type": "keyword",
744
+ "value": "string"
745
+ },
746
+ "computed": false
747
+ },
748
+ {
749
+ "type": "propertySignature",
750
+ "key": {
751
+ "type": "identifier",
752
+ "name": "scenario"
753
+ },
754
+ "annotation": {
755
+ "type": "keyword",
756
+ "value": "string"
757
+ },
758
+ "computed": false
759
+ },
760
+ {
761
+ "type": "propertySignature",
762
+ "key": {
763
+ "type": "identifier",
764
+ "name": "url"
765
+ },
766
+ "annotation": {
767
+ "type": "keyword",
768
+ "value": "string"
769
+ },
770
+ "optional": true,
771
+ "computed": false
772
+ }
773
+ ]
774
+ }
775
+ ]
776
+ },
682
777
  "ai-portal.chat-box": {
683
778
  "properties": [
684
779
  {
@@ -806,94 +901,6 @@
806
901
  }
807
902
  ]
808
903
  },
809
- "ai-portal.show-cases": {
810
- "properties": [
811
- {
812
- "name": "list",
813
- "annotation": {
814
- "type": "array",
815
- "elementType": {
816
- "type": "reference",
817
- "typeName": {
818
- "type": "identifier",
819
- "name": "ShowCaseType"
820
- }
821
- }
822
- }
823
- }
824
- ],
825
- "events": [],
826
- "methods": [],
827
- "types": [
828
- {
829
- "type": "interface",
830
- "name": "ShowCaseType",
831
- "body": [
832
- {
833
- "type": "propertySignature",
834
- "key": {
835
- "type": "identifier",
836
- "name": "conversationId"
837
- },
838
- "annotation": {
839
- "type": "keyword",
840
- "value": "string"
841
- },
842
- "computed": false
843
- },
844
- {
845
- "type": "propertySignature",
846
- "key": {
847
- "type": "identifier",
848
- "name": "title"
849
- },
850
- "annotation": {
851
- "type": "keyword",
852
- "value": "string"
853
- },
854
- "computed": false
855
- },
856
- {
857
- "type": "propertySignature",
858
- "key": {
859
- "type": "identifier",
860
- "name": "summary"
861
- },
862
- "annotation": {
863
- "type": "keyword",
864
- "value": "string"
865
- },
866
- "computed": false
867
- },
868
- {
869
- "type": "propertySignature",
870
- "key": {
871
- "type": "identifier",
872
- "name": "scenario"
873
- },
874
- "annotation": {
875
- "type": "keyword",
876
- "value": "string"
877
- },
878
- "computed": false
879
- },
880
- {
881
- "type": "propertySignature",
882
- "key": {
883
- "type": "identifier",
884
- "name": "url"
885
- },
886
- "annotation": {
887
- "type": "keyword",
888
- "value": "string"
889
- },
890
- "optional": true,
891
- "computed": false
892
- }
893
- ]
894
- }
895
- ]
896
- },
897
904
  "ai-portal.mcp-tools": {
898
905
  "properties": [
899
906
  {
@@ -1403,6 +1410,26 @@
1403
1410
  }
1404
1411
  ]
1405
1412
  },
1413
+ "ai-portal.preview-container": {
1414
+ "properties": [
1415
+ {
1416
+ "name": "source",
1417
+ "annotation": {
1418
+ "type": "keyword",
1419
+ "value": "string"
1420
+ }
1421
+ },
1422
+ {
1423
+ "name": "url",
1424
+ "annotation": {
1425
+ "type": "keyword",
1426
+ "value": "string"
1427
+ }
1428
+ }
1429
+ ],
1430
+ "events": [],
1431
+ "methods": []
1432
+ },
1406
1433
  "ai-portal.action-buttons": {
1407
1434
  "properties": [
1408
1435
  {
@@ -1521,26 +1548,6 @@
1521
1548
  }
1522
1549
  ]
1523
1550
  },
1524
- "ai-portal.preview-container": {
1525
- "properties": [
1526
- {
1527
- "name": "source",
1528
- "annotation": {
1529
- "type": "keyword",
1530
- "value": "string"
1531
- }
1532
- },
1533
- {
1534
- "name": "url",
1535
- "annotation": {
1536
- "type": "keyword",
1537
- "value": "string"
1538
- }
1539
- }
1540
- ],
1541
- "events": [],
1542
- "methods": []
1543
- },
1544
1551
  "ai-portal.project-conversations": {
1545
1552
  "properties": [
1546
1553
  {
@@ -4,11 +4,13 @@ import "@next-core/theme";
4
4
  import type { ShowCaseType } from "../shared/interfaces.js";
5
5
  export interface ShowCasesProps {
6
6
  list?: ShowCaseType[];
7
+ limit?: number;
7
8
  }
8
9
  /**
9
10
  * 构件 `ai-portal.show-cases`
10
11
  */
11
12
  export declare class ShowCases extends ReactNextElement implements ShowCasesProps {
12
13
  accessor list: ShowCaseType[] | undefined;
14
+ accessor limit: number | undefined;
13
15
  render(): React.JSX.Element;
14
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/ai-portal",
3
- "version": "0.48.3",
3
+ "version": "0.48.4",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,5 +47,5 @@
47
47
  "@next-bricks/presentational": "*",
48
48
  "@next-bricks/vs": "*"
49
49
  },
50
- "gitHead": "0720eba0a6ef82940dc90e8d1bb17ac91214a190"
50
+ "gitHead": "e4578f248fb6d82805c28b342fa92ab98b9d5259"
51
51
  }