@next-bricks/ai-portal 0.48.2 → 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/bricks.json +30 -30
- package/dist/chunks/{7431.5093d0d9.js → 7431.6b6bb81a.js} +3 -3
- package/dist/chunks/7431.6b6bb81a.js.map +1 -0
- package/dist/chunks/{9328.222dec55.js → 9328.794ecf59.js} +2 -2
- package/dist/chunks/9328.794ecf59.js.map +1 -0
- package/dist/chunks/action-buttons.3a72e5a4.js +2 -0
- package/dist/chunks/action-buttons.3a72e5a4.js.map +1 -0
- package/dist/chunks/{main.4486142d.js → main.a271ddd5.js} +2 -2
- package/dist/chunks/{main.4486142d.js.map → main.a271ddd5.js.map} +1 -1
- package/dist/chunks/show-cases.afdbbee3.js +2 -0
- package/dist/chunks/show-cases.afdbbee3.js.map +1 -0
- package/dist/examples.json +16 -16
- package/dist/index.5e116c8d.js +2 -0
- package/dist/{index.416c83ca.js.map → index.5e116c8d.js.map} +1 -1
- package/dist/manifest.json +179 -175
- package/dist/types.json +255 -248
- package/dist-types/show-cases/index.d.ts +2 -0
- package/package.json +2 -2
- package/dist/chunks/7431.5093d0d9.js.map +0 -1
- package/dist/chunks/9328.222dec55.js.map +0 -1
- package/dist/chunks/action-buttons.16da8761.js +0 -2
- package/dist/chunks/action-buttons.16da8761.js.map +0 -1
- package/dist/chunks/show-cases.5dcf60c0.js +0 -2
- package/dist/chunks/show-cases.5dcf60c0.js.map +0 -1
- package/dist/index.416c83ca.js +0 -2
- /package/dist/chunks/{7431.5093d0d9.js.LICENSE.txt → 7431.6b6bb81a.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -4,110 +4,6 @@
|
|
|
4
4
|
"events": [],
|
|
5
5
|
"methods": []
|
|
6
6
|
},
|
|
7
|
-
"ai-portal.stat-with-mini-chart": {
|
|
8
|
-
"properties": [
|
|
9
|
-
{
|
|
10
|
-
"name": "label",
|
|
11
|
-
"annotation": {
|
|
12
|
-
"type": "keyword",
|
|
13
|
-
"value": "string"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"name": "value",
|
|
18
|
-
"annotation": {
|
|
19
|
-
"type": "keyword",
|
|
20
|
-
"value": "string"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"name": "size",
|
|
25
|
-
"annotation": {
|
|
26
|
-
"type": "union",
|
|
27
|
-
"types": [
|
|
28
|
-
{
|
|
29
|
-
"type": "jsLiteral",
|
|
30
|
-
"value": "medium"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"type": "jsLiteral",
|
|
34
|
-
"value": "small"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"name": "lineColor",
|
|
41
|
-
"annotation": {
|
|
42
|
-
"type": "keyword",
|
|
43
|
-
"value": "string"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"name": "showArea",
|
|
48
|
-
"annotation": {
|
|
49
|
-
"type": "keyword",
|
|
50
|
-
"value": "boolean"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "min",
|
|
55
|
-
"annotation": {
|
|
56
|
-
"type": "keyword",
|
|
57
|
-
"value": "number"
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"name": "max",
|
|
62
|
-
"annotation": {
|
|
63
|
-
"type": "keyword",
|
|
64
|
-
"value": "number"
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"name": "xField",
|
|
69
|
-
"annotation": {
|
|
70
|
-
"type": "keyword",
|
|
71
|
-
"value": "string"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"name": "yField",
|
|
76
|
-
"annotation": {
|
|
77
|
-
"type": "keyword",
|
|
78
|
-
"value": "string"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"name": "data",
|
|
83
|
-
"annotation": {
|
|
84
|
-
"type": "array",
|
|
85
|
-
"elementType": {
|
|
86
|
-
"type": "reference",
|
|
87
|
-
"typeName": {
|
|
88
|
-
"type": "identifier",
|
|
89
|
-
"name": "Record"
|
|
90
|
-
},
|
|
91
|
-
"typeParameters": {
|
|
92
|
-
"type": "typeParameterInstantiation",
|
|
93
|
-
"params": [
|
|
94
|
-
{
|
|
95
|
-
"type": "keyword",
|
|
96
|
-
"value": "string"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"type": "keyword",
|
|
100
|
-
"value": "number"
|
|
101
|
-
}
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
],
|
|
108
|
-
"events": [],
|
|
109
|
-
"methods": []
|
|
110
|
-
},
|
|
111
7
|
"ai-portal.icon-button": {
|
|
112
8
|
"properties": [
|
|
113
9
|
{
|
|
@@ -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
|
{
|
|
@@ -504,6 +400,110 @@
|
|
|
504
400
|
}
|
|
505
401
|
]
|
|
506
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"
|
|
486
|
+
},
|
|
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
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
],
|
|
504
|
+
"events": [],
|
|
505
|
+
"methods": []
|
|
506
|
+
},
|
|
507
507
|
"ai-portal.elevo-logo": {
|
|
508
508
|
"properties": [],
|
|
509
509
|
"events": [],
|
|
@@ -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
|
{
|
|
@@ -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
|
+
"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": "
|
|
50
|
+
"gitHead": "e4578f248fb6d82805c28b342fa92ab98b9d5259"
|
|
51
51
|
}
|