@next-bricks/ai-portal 0.46.0 → 0.46.1

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
@@ -75,6 +75,143 @@
75
75
  }
76
76
  ]
77
77
  },
78
+ "ai-portal.page-container": {
79
+ "properties": [
80
+ {
81
+ "name": "pageTitle",
82
+ "annotation": {
83
+ "type": "keyword",
84
+ "value": "string"
85
+ }
86
+ },
87
+ {
88
+ "name": "breadcrumbs",
89
+ "annotation": {
90
+ "type": "array",
91
+ "elementType": {
92
+ "type": "reference",
93
+ "typeName": {
94
+ "type": "identifier",
95
+ "name": "Breadcrumb"
96
+ }
97
+ }
98
+ }
99
+ },
100
+ {
101
+ "name": "size",
102
+ "annotation": {
103
+ "type": "union",
104
+ "types": [
105
+ {
106
+ "type": "jsLiteral",
107
+ "value": "medium"
108
+ },
109
+ {
110
+ "type": "jsLiteral",
111
+ "value": "small"
112
+ }
113
+ ]
114
+ }
115
+ },
116
+ {
117
+ "name": "textContent",
118
+ "annotation": {
119
+ "type": "keyword",
120
+ "value": "string"
121
+ }
122
+ }
123
+ ],
124
+ "events": [],
125
+ "methods": [],
126
+ "types": [
127
+ {
128
+ "type": "interface",
129
+ "name": "Breadcrumb",
130
+ "body": [
131
+ {
132
+ "type": "propertySignature",
133
+ "key": {
134
+ "type": "identifier",
135
+ "name": "text"
136
+ },
137
+ "annotation": {
138
+ "type": "keyword",
139
+ "value": "string"
140
+ },
141
+ "computed": false
142
+ },
143
+ {
144
+ "type": "propertySignature",
145
+ "key": {
146
+ "type": "identifier",
147
+ "name": "url"
148
+ },
149
+ "annotation": {
150
+ "type": "keyword",
151
+ "value": "string"
152
+ },
153
+ "computed": false
154
+ }
155
+ ]
156
+ }
157
+ ]
158
+ },
159
+ "ai-portal.call-tool": {
160
+ "type": "provider",
161
+ "params": [
162
+ {
163
+ "name": "tool",
164
+ "annotation": {
165
+ "type": "reference",
166
+ "typeName": {
167
+ "type": "identifier",
168
+ "name": "ToolInfo"
169
+ }
170
+ }
171
+ },
172
+ {
173
+ "name": "params",
174
+ "annotation": {
175
+ "type": "reference",
176
+ "typeName": {
177
+ "type": "identifier",
178
+ "name": "Record"
179
+ },
180
+ "typeParameters": {
181
+ "type": "typeParameterInstantiation",
182
+ "params": [
183
+ {
184
+ "type": "keyword",
185
+ "value": "string"
186
+ },
187
+ {
188
+ "type": "keyword",
189
+ "value": "unknown"
190
+ }
191
+ ]
192
+ }
193
+ }
194
+ }
195
+ ],
196
+ "returns": {
197
+ "annotation": {
198
+ "type": "reference",
199
+ "typeName": {
200
+ "type": "identifier",
201
+ "name": "Promise"
202
+ },
203
+ "typeParameters": {
204
+ "type": "typeParameterInstantiation",
205
+ "params": [
206
+ {
207
+ "type": "keyword",
208
+ "value": "unknown"
209
+ }
210
+ ]
211
+ }
212
+ }
213
+ }
214
+ },
78
215
  "ai-portal.save-request-store": {
79
216
  "type": "provider",
80
217
  "params": [
@@ -192,120 +329,54 @@
192
329
  }
193
330
  }
194
331
  },
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
- },
251
- "ai-portal.page-container": {
332
+ "ai-portal.tab-list": {
252
333
  "properties": [
253
334
  {
254
- "name": "pageTitle",
255
- "annotation": {
256
- "type": "keyword",
257
- "value": "string"
258
- }
259
- },
260
- {
261
- "name": "breadcrumbs",
335
+ "name": "tabs",
262
336
  "annotation": {
263
337
  "type": "array",
264
338
  "elementType": {
265
339
  "type": "reference",
266
340
  "typeName": {
267
341
  "type": "identifier",
268
- "name": "Breadcrumb"
342
+ "name": "Tab"
269
343
  }
270
344
  }
271
345
  }
272
346
  },
273
347
  {
274
- "name": "size",
275
- "annotation": {
276
- "type": "union",
277
- "types": [
278
- {
279
- "type": "jsLiteral",
280
- "value": "medium"
281
- },
282
- {
283
- "type": "jsLiteral",
284
- "value": "small"
285
- }
286
- ]
287
- }
288
- },
289
- {
290
- "name": "textContent",
348
+ "name": "activeTab",
291
349
  "annotation": {
292
350
  "type": "keyword",
293
351
  "value": "string"
294
352
  }
295
353
  }
296
354
  ],
297
- "events": [],
355
+ "events": [
356
+ {
357
+ "name": "tab.click",
358
+ "detail": {
359
+ "annotation": {
360
+ "type": "reference",
361
+ "typeName": {
362
+ "type": "identifier",
363
+ "name": "Tab"
364
+ }
365
+ }
366
+ }
367
+ }
368
+ ],
298
369
  "methods": [],
299
370
  "types": [
300
371
  {
301
372
  "type": "interface",
302
- "name": "Breadcrumb",
373
+ "name": "Tab",
303
374
  "body": [
304
375
  {
305
376
  "type": "propertySignature",
306
377
  "key": {
307
378
  "type": "identifier",
308
- "name": "text"
379
+ "name": "id"
309
380
  },
310
381
  "annotation": {
311
382
  "type": "keyword",
@@ -317,7 +388,7 @@
317
388
  "type": "propertySignature",
318
389
  "key": {
319
390
  "type": "identifier",
320
- "name": "url"
391
+ "name": "label"
321
392
  },
322
393
  "annotation": {
323
394
  "type": "keyword",
@@ -420,89 +491,18 @@
420
491
  "type": "keyword",
421
492
  "value": "string"
422
493
  },
423
- {
424
- "type": "keyword",
425
- "value": "number"
426
- }
427
- ]
428
- }
429
- }
430
- }
431
- }
432
- ],
433
- "events": [],
434
- "methods": []
435
- },
436
- "ai-portal.tab-list": {
437
- "properties": [
438
- {
439
- "name": "tabs",
440
- "annotation": {
441
- "type": "array",
442
- "elementType": {
443
- "type": "reference",
444
- "typeName": {
445
- "type": "identifier",
446
- "name": "Tab"
447
- }
448
- }
449
- }
450
- },
451
- {
452
- "name": "activeTab",
453
- "annotation": {
454
- "type": "keyword",
455
- "value": "string"
456
- }
457
- }
458
- ],
459
- "events": [
460
- {
461
- "name": "tab.click",
462
- "detail": {
463
- "annotation": {
464
- "type": "reference",
465
- "typeName": {
466
- "type": "identifier",
467
- "name": "Tab"
468
- }
469
- }
470
- }
471
- }
472
- ],
473
- "methods": [],
474
- "types": [
475
- {
476
- "type": "interface",
477
- "name": "Tab",
478
- "body": [
479
- {
480
- "type": "propertySignature",
481
- "key": {
482
- "type": "identifier",
483
- "name": "id"
484
- },
485
- "annotation": {
486
- "type": "keyword",
487
- "value": "string"
488
- },
489
- "computed": false
490
- },
491
- {
492
- "type": "propertySignature",
493
- "key": {
494
- "type": "identifier",
495
- "name": "label"
496
- },
497
- "annotation": {
498
- "type": "keyword",
499
- "value": "string"
500
- },
501
- "computed": false
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,128 +679,6 @@
679
679
  }
680
680
  ]
681
681
  },
682
- "ai-portal.chat-box": {
683
- "properties": [
684
- {
685
- "name": "disabled",
686
- "annotation": {
687
- "type": "keyword",
688
- "value": "boolean"
689
- }
690
- },
691
- {
692
- "name": "placeholder",
693
- "annotation": {
694
- "type": "keyword",
695
- "value": "string"
696
- }
697
- },
698
- {
699
- "name": "autoFocus",
700
- "annotation": {
701
- "type": "keyword",
702
- "value": "boolean"
703
- }
704
- },
705
- {
706
- "name": "aiEmployees",
707
- "annotation": {
708
- "type": "array",
709
- "elementType": {
710
- "type": "reference",
711
- "typeName": {
712
- "type": "identifier",
713
- "name": "AIEmployee"
714
- }
715
- }
716
- }
717
- }
718
- ],
719
- "events": [
720
- {
721
- "name": "message.submit",
722
- "detail": {
723
- "annotation": {
724
- "type": "keyword",
725
- "value": "string"
726
- }
727
- }
728
- },
729
- {
730
- "name": "ai-employee.mention",
731
- "detail": {
732
- "annotation": {
733
- "type": "union",
734
- "types": [
735
- {
736
- "type": "reference",
737
- "typeName": {
738
- "type": "identifier",
739
- "name": "AIEmployee"
740
- }
741
- },
742
- {
743
- "type": "keyword",
744
- "value": "null"
745
- }
746
- ]
747
- }
748
- }
749
- }
750
- ],
751
- "methods": [
752
- {
753
- "name": "setValue",
754
- "params": [
755
- {
756
- "name": "value",
757
- "annotation": {
758
- "type": "keyword",
759
- "value": "string"
760
- }
761
- }
762
- ],
763
- "returns": {}
764
- },
765
- {
766
- "name": "getValue",
767
- "params": [],
768
- "returns": {}
769
- }
770
- ],
771
- "types": [
772
- {
773
- "type": "interface",
774
- "name": "AIEmployee",
775
- "body": [
776
- {
777
- "type": "propertySignature",
778
- "key": {
779
- "type": "identifier",
780
- "name": "employeeId"
781
- },
782
- "annotation": {
783
- "type": "keyword",
784
- "value": "string"
785
- },
786
- "computed": false
787
- },
788
- {
789
- "type": "propertySignature",
790
- "key": {
791
- "type": "identifier",
792
- "name": "name"
793
- },
794
- "annotation": {
795
- "type": "keyword",
796
- "value": "string"
797
- },
798
- "computed": false
799
- }
800
- ]
801
- }
802
- ]
803
- },
804
682
  "ai-portal.show-cases": {
805
683
  "properties": [
806
684
  {
@@ -1020,6 +898,128 @@
1020
898
  }
1021
899
  ]
1022
900
  },
901
+ "ai-portal.chat-box": {
902
+ "properties": [
903
+ {
904
+ "name": "disabled",
905
+ "annotation": {
906
+ "type": "keyword",
907
+ "value": "boolean"
908
+ }
909
+ },
910
+ {
911
+ "name": "placeholder",
912
+ "annotation": {
913
+ "type": "keyword",
914
+ "value": "string"
915
+ }
916
+ },
917
+ {
918
+ "name": "autoFocus",
919
+ "annotation": {
920
+ "type": "keyword",
921
+ "value": "boolean"
922
+ }
923
+ },
924
+ {
925
+ "name": "aiEmployees",
926
+ "annotation": {
927
+ "type": "array",
928
+ "elementType": {
929
+ "type": "reference",
930
+ "typeName": {
931
+ "type": "identifier",
932
+ "name": "AIEmployee"
933
+ }
934
+ }
935
+ }
936
+ }
937
+ ],
938
+ "events": [
939
+ {
940
+ "name": "message.submit",
941
+ "detail": {
942
+ "annotation": {
943
+ "type": "keyword",
944
+ "value": "string"
945
+ }
946
+ }
947
+ },
948
+ {
949
+ "name": "ai-employee.mention",
950
+ "detail": {
951
+ "annotation": {
952
+ "type": "union",
953
+ "types": [
954
+ {
955
+ "type": "reference",
956
+ "typeName": {
957
+ "type": "identifier",
958
+ "name": "AIEmployee"
959
+ }
960
+ },
961
+ {
962
+ "type": "keyword",
963
+ "value": "null"
964
+ }
965
+ ]
966
+ }
967
+ }
968
+ }
969
+ ],
970
+ "methods": [
971
+ {
972
+ "name": "setValue",
973
+ "params": [
974
+ {
975
+ "name": "value",
976
+ "annotation": {
977
+ "type": "keyword",
978
+ "value": "string"
979
+ }
980
+ }
981
+ ],
982
+ "returns": {}
983
+ },
984
+ {
985
+ "name": "getValue",
986
+ "params": [],
987
+ "returns": {}
988
+ }
989
+ ],
990
+ "types": [
991
+ {
992
+ "type": "interface",
993
+ "name": "AIEmployee",
994
+ "body": [
995
+ {
996
+ "type": "propertySignature",
997
+ "key": {
998
+ "type": "identifier",
999
+ "name": "employeeId"
1000
+ },
1001
+ "annotation": {
1002
+ "type": "keyword",
1003
+ "value": "string"
1004
+ },
1005
+ "computed": false
1006
+ },
1007
+ {
1008
+ "type": "propertySignature",
1009
+ "key": {
1010
+ "type": "identifier",
1011
+ "name": "name"
1012
+ },
1013
+ "annotation": {
1014
+ "type": "keyword",
1015
+ "value": "string"
1016
+ },
1017
+ "computed": false
1018
+ }
1019
+ ]
1020
+ }
1021
+ ]
1022
+ },
1023
1023
  "ai-portal.ai-employees": {
1024
1024
  "properties": [
1025
1025
  {
@@ -21,6 +21,7 @@ export interface GoalItem {
21
21
  }
22
22
  interface GoalCardItemProps {
23
23
  goalItem: GoalItem;
24
+ idWidth?: number;
24
25
  cardStyle?: React.CSSProperties;
25
26
  isActive?: boolean;
26
27
  onTitleChange?: (newTitle: string) => void;
@@ -30,5 +31,5 @@ interface GoalCardItemProps {
30
31
  onAppendChild?: () => void;
31
32
  onRevokeAppendChild?: () => void;
32
33
  }
33
- export declare function GoalCardItem({ goalItem, cardStyle, onStatusChange, onTitleChange, onClick, onNewChat, onAppendChild, onRevokeAppendChild, isActive, }: GoalCardItemProps): React.JSX.Element;
34
+ export declare function GoalCardItem({ goalItem, idWidth, cardStyle, onStatusChange, onTitleChange, onClick, onNewChat, onAppendChild, onRevokeAppendChild, isActive, }: GoalCardItemProps): React.JSX.Element;
34
35
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/ai-portal",
3
- "version": "0.46.0",
3
+ "version": "0.46.1",
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": "775252ed45f90c6eeb5e2e32744e9c8a8ed06b88"
50
+ "gitHead": "8f310f5a894782a110be16a62339ef150777f0db"
51
51
  }