@next-bricks/ai-portal 0.20.0 → 0.20.2

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,85 +3,6 @@
3
3
  "package": "@next-bricks/ai-portal",
4
4
  "name": "ai-portal",
5
5
  "bricks": [
6
- {
7
- "name": "ai-portal.cruise-canvas",
8
- "properties": [
9
- {
10
- "name": "taskId",
11
- "type": "string"
12
- },
13
- {
14
- "name": "task",
15
- "attribute": false,
16
- "type": "TaskBaseDetail"
17
- },
18
- {
19
- "name": "jobs",
20
- "attribute": false,
21
- "type": "Job[]"
22
- },
23
- {
24
- "name": "replay",
25
- "description": "是否启用回放。仅初始设置有效。",
26
- "type": "boolean"
27
- },
28
- {
29
- "name": "replayDelay",
30
- "description": "设置回放时消息之间的时间间隔,单位为秒。仅初始设置有效。",
31
- "default": "2",
32
- "type": "number"
33
- },
34
- {
35
- "name": "supports",
36
- "attribute": false,
37
- "type": "Record<string, boolean>"
38
- }
39
- ],
40
- "events": [
41
- {
42
- "name": "share",
43
- "detail": {
44
- "type": "void"
45
- }
46
- },
47
- {
48
- "name": "pause",
49
- "detail": {
50
- "type": "void"
51
- }
52
- },
53
- {
54
- "name": "resume",
55
- "detail": {
56
- "type": "void"
57
- }
58
- },
59
- {
60
- "name": "cancel",
61
- "detail": {
62
- "type": "void"
63
- }
64
- }
65
- ],
66
- "slots": [],
67
- "methods": [
68
- {
69
- "name": "resumed",
70
- "params": []
71
- }
72
- ],
73
- "parts": [],
74
- "description": "构件 `ai-portal.cruise-canvas`"
75
- },
76
- {
77
- "name": "ai-portal.home-container",
78
- "properties": [],
79
- "events": [],
80
- "slots": [],
81
- "methods": [],
82
- "parts": [],
83
- "description": "构件 `ai-portal.home-container`"
84
- },
85
6
  {
86
7
  "name": "ai-portal.chat-box",
87
8
  "properties": [
@@ -157,15 +78,6 @@
157
78
  "parts": [],
158
79
  "description": "构件 `ai-portal.chat-history`"
159
80
  },
160
- {
161
- "name": "ai-portal.elevo-logo",
162
- "properties": [],
163
- "events": [],
164
- "slots": [],
165
- "methods": [],
166
- "parts": [],
167
- "description": "Elevo Logo"
168
- },
169
81
  {
170
82
  "name": "ai-portal.stat-with-mini-chart",
171
83
  "properties": [
@@ -227,6 +139,94 @@
227
139
  "parts": [],
228
140
  "description": "构件 `ai-portal.stat-with-mini-chart`"
229
141
  },
142
+ {
143
+ "name": "ai-portal.home-container",
144
+ "properties": [],
145
+ "events": [],
146
+ "slots": [],
147
+ "methods": [],
148
+ "parts": [],
149
+ "description": "构件 `ai-portal.home-container`"
150
+ },
151
+ {
152
+ "name": "ai-portal.cruise-canvas",
153
+ "properties": [
154
+ {
155
+ "name": "taskId",
156
+ "type": "string"
157
+ },
158
+ {
159
+ "name": "task",
160
+ "attribute": false,
161
+ "type": "TaskBaseDetail"
162
+ },
163
+ {
164
+ "name": "jobs",
165
+ "attribute": false,
166
+ "type": "Job[]"
167
+ },
168
+ {
169
+ "name": "replay",
170
+ "description": "是否启用回放。仅初始设置有效。",
171
+ "type": "boolean"
172
+ },
173
+ {
174
+ "name": "replayDelay",
175
+ "description": "设置回放时消息之间的时间间隔,单位为秒。仅初始设置有效。",
176
+ "default": "2",
177
+ "type": "number"
178
+ },
179
+ {
180
+ "name": "supports",
181
+ "attribute": false,
182
+ "type": "Record<string, boolean>"
183
+ }
184
+ ],
185
+ "events": [
186
+ {
187
+ "name": "share",
188
+ "detail": {
189
+ "type": "void"
190
+ }
191
+ },
192
+ {
193
+ "name": "pause",
194
+ "detail": {
195
+ "type": "void"
196
+ }
197
+ },
198
+ {
199
+ "name": "resume",
200
+ "detail": {
201
+ "type": "void"
202
+ }
203
+ },
204
+ {
205
+ "name": "cancel",
206
+ "detail": {
207
+ "type": "void"
208
+ }
209
+ }
210
+ ],
211
+ "slots": [],
212
+ "methods": [
213
+ {
214
+ "name": "resumed",
215
+ "params": []
216
+ }
217
+ ],
218
+ "parts": [],
219
+ "description": "构件 `ai-portal.cruise-canvas`"
220
+ },
221
+ {
222
+ "name": "ai-portal.elevo-logo",
223
+ "properties": [],
224
+ "events": [],
225
+ "slots": [],
226
+ "methods": [],
227
+ "parts": [],
228
+ "description": "Elevo Logo"
229
+ },
230
230
  {
231
231
  "name": "ai-portal.elevo-sidebar",
232
232
  "properties": [
package/dist/types.json CHANGED
@@ -1,14 +1,4 @@
1
1
  {
2
- "ai-portal.home-container": {
3
- "properties": [],
4
- "events": [],
5
- "methods": []
6
- },
7
- "ai-portal.elevo-logo": {
8
- "properties": [],
9
- "events": [],
10
- "methods": []
11
- },
12
2
  "ai-portal.stat-with-mini-chart": {
13
3
  "properties": [
14
4
  {
@@ -113,6 +103,16 @@
113
103
  "events": [],
114
104
  "methods": []
115
105
  },
106
+ "ai-portal.home-container": {
107
+ "properties": [],
108
+ "events": [],
109
+ "methods": []
110
+ },
111
+ "ai-portal.elevo-logo": {
112
+ "properties": [],
113
+ "events": [],
114
+ "methods": []
115
+ },
116
116
  "ai-portal.icon-button": {
117
117
  "properties": [
118
118
  {
@@ -265,188 +265,6 @@
265
265
  }
266
266
  ]
267
267
  },
268
- "ai-portal.chat-history": {
269
- "properties": [
270
- {
271
- "name": "list",
272
- "annotation": {
273
- "type": "array",
274
- "elementType": {
275
- "type": "reference",
276
- "typeName": {
277
- "type": "identifier",
278
- "name": "HistoryItem"
279
- }
280
- }
281
- }
282
- },
283
- {
284
- "name": "actions",
285
- "annotation": {
286
- "type": "array",
287
- "elementType": {
288
- "type": "reference",
289
- "typeName": {
290
- "type": "identifier",
291
- "name": "ActionType"
292
- }
293
- }
294
- }
295
- },
296
- {
297
- "name": "nextToken",
298
- "annotation": {
299
- "type": "keyword",
300
- "value": "string"
301
- }
302
- }
303
- ],
304
- "events": [
305
- {
306
- "name": "action.click",
307
- "detail": {
308
- "annotation": {
309
- "type": "reference",
310
- "typeName": {
311
- "type": "identifier",
312
- "name": "ActionClickDetail"
313
- }
314
- }
315
- }
316
- },
317
- {
318
- "name": "load.more",
319
- "detail": {
320
- "annotation": {
321
- "type": "typeLiteral",
322
- "members": [
323
- {
324
- "type": "propertySignature",
325
- "key": {
326
- "type": "identifier",
327
- "name": "nextToken"
328
- },
329
- "annotation": {
330
- "type": "keyword",
331
- "value": "string"
332
- },
333
- "computed": false
334
- }
335
- ]
336
- }
337
- }
338
- }
339
- ],
340
- "methods": [],
341
- "types": [
342
- {
343
- "type": "interface",
344
- "name": "HistoryItem",
345
- "body": [
346
- {
347
- "type": "propertySignature",
348
- "key": {
349
- "type": "identifier",
350
- "name": "id"
351
- },
352
- "annotation": {
353
- "type": "keyword",
354
- "value": "string"
355
- },
356
- "computed": false
357
- },
358
- {
359
- "type": "propertySignature",
360
- "key": {
361
- "type": "identifier",
362
- "name": "url"
363
- },
364
- "annotation": {
365
- "type": "keyword",
366
- "value": "string"
367
- },
368
- "computed": false
369
- },
370
- {
371
- "type": "propertySignature",
372
- "key": {
373
- "type": "identifier",
374
- "name": "title"
375
- },
376
- "annotation": {
377
- "type": "keyword",
378
- "value": "string"
379
- },
380
- "computed": false
381
- },
382
- {
383
- "type": "propertySignature",
384
- "key": {
385
- "type": "identifier",
386
- "name": "startTime"
387
- },
388
- "annotation": {
389
- "type": "keyword",
390
- "value": "number"
391
- },
392
- "computed": false
393
- },
394
- {
395
- "type": "propertySignature",
396
- "key": {
397
- "type": "identifier",
398
- "name": "state"
399
- },
400
- "annotation": {
401
- "type": "reference",
402
- "typeName": {
403
- "type": "identifier",
404
- "name": "TaskState"
405
- }
406
- },
407
- "optional": true,
408
- "computed": false
409
- }
410
- ]
411
- },
412
- {
413
- "type": "interface",
414
- "name": "ActionClickDetail",
415
- "body": [
416
- {
417
- "type": "propertySignature",
418
- "key": {
419
- "type": "identifier",
420
- "name": "action"
421
- },
422
- "annotation": {
423
- "type": "reference",
424
- "typeName": {
425
- "type": "identifier",
426
- "name": "SimpleActionType"
427
- }
428
- },
429
- "computed": false
430
- },
431
- {
432
- "type": "propertySignature",
433
- "key": {
434
- "type": "identifier",
435
- "name": "item"
436
- },
437
- "annotation": {
438
- "type": "reference",
439
- "typeName": {
440
- "type": "identifier",
441
- "name": "HistoryItem"
442
- }
443
- },
444
- "computed": false
445
- }
446
- ]
447
- }
448
- ]
449
- },
450
268
  "ai-portal.show-cases": {
451
269
  "properties": [
452
270
  {
@@ -854,6 +672,188 @@
854
672
  }
855
673
  ]
856
674
  },
675
+ "ai-portal.chat-history": {
676
+ "properties": [
677
+ {
678
+ "name": "list",
679
+ "annotation": {
680
+ "type": "array",
681
+ "elementType": {
682
+ "type": "reference",
683
+ "typeName": {
684
+ "type": "identifier",
685
+ "name": "HistoryItem"
686
+ }
687
+ }
688
+ }
689
+ },
690
+ {
691
+ "name": "actions",
692
+ "annotation": {
693
+ "type": "array",
694
+ "elementType": {
695
+ "type": "reference",
696
+ "typeName": {
697
+ "type": "identifier",
698
+ "name": "ActionType"
699
+ }
700
+ }
701
+ }
702
+ },
703
+ {
704
+ "name": "nextToken",
705
+ "annotation": {
706
+ "type": "keyword",
707
+ "value": "string"
708
+ }
709
+ }
710
+ ],
711
+ "events": [
712
+ {
713
+ "name": "action.click",
714
+ "detail": {
715
+ "annotation": {
716
+ "type": "reference",
717
+ "typeName": {
718
+ "type": "identifier",
719
+ "name": "ActionClickDetail"
720
+ }
721
+ }
722
+ }
723
+ },
724
+ {
725
+ "name": "load.more",
726
+ "detail": {
727
+ "annotation": {
728
+ "type": "typeLiteral",
729
+ "members": [
730
+ {
731
+ "type": "propertySignature",
732
+ "key": {
733
+ "type": "identifier",
734
+ "name": "nextToken"
735
+ },
736
+ "annotation": {
737
+ "type": "keyword",
738
+ "value": "string"
739
+ },
740
+ "computed": false
741
+ }
742
+ ]
743
+ }
744
+ }
745
+ }
746
+ ],
747
+ "methods": [],
748
+ "types": [
749
+ {
750
+ "type": "interface",
751
+ "name": "HistoryItem",
752
+ "body": [
753
+ {
754
+ "type": "propertySignature",
755
+ "key": {
756
+ "type": "identifier",
757
+ "name": "id"
758
+ },
759
+ "annotation": {
760
+ "type": "keyword",
761
+ "value": "string"
762
+ },
763
+ "computed": false
764
+ },
765
+ {
766
+ "type": "propertySignature",
767
+ "key": {
768
+ "type": "identifier",
769
+ "name": "url"
770
+ },
771
+ "annotation": {
772
+ "type": "keyword",
773
+ "value": "string"
774
+ },
775
+ "computed": false
776
+ },
777
+ {
778
+ "type": "propertySignature",
779
+ "key": {
780
+ "type": "identifier",
781
+ "name": "title"
782
+ },
783
+ "annotation": {
784
+ "type": "keyword",
785
+ "value": "string"
786
+ },
787
+ "computed": false
788
+ },
789
+ {
790
+ "type": "propertySignature",
791
+ "key": {
792
+ "type": "identifier",
793
+ "name": "startTime"
794
+ },
795
+ "annotation": {
796
+ "type": "keyword",
797
+ "value": "number"
798
+ },
799
+ "computed": false
800
+ },
801
+ {
802
+ "type": "propertySignature",
803
+ "key": {
804
+ "type": "identifier",
805
+ "name": "state"
806
+ },
807
+ "annotation": {
808
+ "type": "reference",
809
+ "typeName": {
810
+ "type": "identifier",
811
+ "name": "TaskState"
812
+ }
813
+ },
814
+ "optional": true,
815
+ "computed": false
816
+ }
817
+ ]
818
+ },
819
+ {
820
+ "type": "interface",
821
+ "name": "ActionClickDetail",
822
+ "body": [
823
+ {
824
+ "type": "propertySignature",
825
+ "key": {
826
+ "type": "identifier",
827
+ "name": "action"
828
+ },
829
+ "annotation": {
830
+ "type": "reference",
831
+ "typeName": {
832
+ "type": "identifier",
833
+ "name": "SimpleActionType"
834
+ }
835
+ },
836
+ "computed": false
837
+ },
838
+ {
839
+ "type": "propertySignature",
840
+ "key": {
841
+ "type": "identifier",
842
+ "name": "item"
843
+ },
844
+ "annotation": {
845
+ "type": "reference",
846
+ "typeName": {
847
+ "type": "identifier",
848
+ "name": "HistoryItem"
849
+ }
850
+ },
851
+ "computed": false
852
+ }
853
+ ]
854
+ }
855
+ ]
856
+ },
857
857
  "ai-portal.cruise-canvas": {
858
858
  "properties": [
859
859
  {
@@ -163,7 +163,7 @@ export interface CmdbInstanceDetailData {
163
163
  type: "cmdb_instance_detail";
164
164
  objectId: string;
165
165
  detail: Record<string, any>;
166
- outputSchema?: JSONSchema;
166
+ outputSchema?: JSONSchema | string;
167
167
  }
168
168
  export type ZoomAction = ZoomActionLiteral | ((current: TransformLiteral) => ZoomActionLiteral | null);
169
169
  export type ZoomActionLiteral = ZoomActionTransform | ZoomActionTranslateBy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/ai-portal",
3
- "version": "0.20.0",
3
+ "version": "0.20.2",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,5 +45,5 @@
45
45
  "@next-bricks/mini-chart": "*",
46
46
  "@next-bricks/presentational": "*"
47
47
  },
48
- "gitHead": "e30ed32eedd3225253c1f5c5537f9e0f75d6a9c0"
48
+ "gitHead": "30a07a2a8b2574abd2bcfcd01b069d33273a3d97"
49
49
  }