@next-bricks/ai-portal 0.28.1 → 0.28.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.
Files changed (43) hide show
  1. package/dist/bricks.json +17 -17
  2. package/dist/chunks/{4820.b70f5325.js → 4820.2a04a06c.js} +2 -2
  3. package/dist/chunks/{4820.b70f5325.js.map → 4820.2a04a06c.js.map} +1 -1
  4. package/dist/chunks/{5054.0e746eec.js → 5054.e39127c2.js} +2 -2
  5. package/dist/chunks/5054.e39127c2.js.map +1 -0
  6. package/dist/chunks/{6519.2e968600.js → 6519.3ce478ef.js} +2 -2
  7. package/dist/chunks/{6519.2e968600.js.map → 6519.3ce478ef.js.map} +1 -1
  8. package/dist/chunks/981.11674fea.js +2 -0
  9. package/dist/chunks/981.11674fea.js.map +1 -0
  10. package/dist/chunks/{main.92a5a5d5.js → main.a70b98fa.js} +2 -2
  11. package/dist/chunks/main.a70b98fa.js.map +1 -0
  12. package/dist/examples.json +13 -13
  13. package/dist/{index.d47d9434.js → index.02d1374e.js} +2 -2
  14. package/dist/index.02d1374e.js.map +1 -0
  15. package/dist/manifest.json +119 -119
  16. package/dist/types.json +217 -217
  17. package/dist-types/cruise-canvas/i18n.d.ts +2 -2
  18. package/dist-types/cruise-canvas/utils/isJsxView.d.ts +3 -0
  19. package/dist-types/shared/ChatBox/i18n.d.ts +2 -2
  20. package/package.json +2 -2
  21. package/dist/chunks/5054.0e746eec.js.map +0 -1
  22. package/dist/chunks/981.2da3c32c.js +0 -2
  23. package/dist/chunks/981.2da3c32c.js.map +0 -1
  24. package/dist/chunks/main.92a5a5d5.js.map +0 -1
  25. package/dist/index.d47d9434.js.map +0 -1
  26. package/dist-types/cruise-canvas/utils/jsx-converters/convertButton.d.ts +0 -3
  27. package/dist-types/cruise-canvas/utils/jsx-converters/convertCard.d.ts +0 -3
  28. package/dist-types/cruise-canvas/utils/jsx-converters/convertDashboard.d.ts +0 -4
  29. package/dist-types/cruise-canvas/utils/jsx-converters/convertDataSources.d.ts +0 -3
  30. package/dist-types/cruise-canvas/utils/jsx-converters/convertDescriptions.d.ts +0 -4
  31. package/dist-types/cruise-canvas/utils/jsx-converters/convertEvents.d.ts +0 -4
  32. package/dist-types/cruise-canvas/utils/jsx-converters/convertForEach.d.ts +0 -3
  33. package/dist-types/cruise-canvas/utils/jsx-converters/convertForm.d.ts +0 -3
  34. package/dist-types/cruise-canvas/utils/jsx-converters/convertFormItem.d.ts +0 -3
  35. package/dist-types/cruise-canvas/utils/jsx-converters/convertJsx.d.ts +0 -8
  36. package/dist-types/cruise-canvas/utils/jsx-converters/convertList.d.ts +0 -3
  37. package/dist-types/cruise-canvas/utils/jsx-converters/convertModal.d.ts +0 -3
  38. package/dist-types/cruise-canvas/utils/jsx-converters/convertTable.d.ts +0 -4
  39. package/dist-types/cruise-canvas/utils/jsx-converters/convertText.d.ts +0 -3
  40. package/dist-types/cruise-canvas/utils/jsx-converters/convertToolbar.d.ts +0 -3
  41. package/dist-types/cruise-canvas/utils/jsx-converters/convertVariables.d.ts +0 -3
  42. package/dist-types/cruise-canvas/utils/jsx-converters/findObjectIdByUsedDataContexts.d.ts +0 -7
  43. package/dist-types/cruise-canvas/utils/jsx-converters/isJsxView.d.ts +0 -3
package/dist/types.json CHANGED
@@ -1,10 +1,109 @@
1
1
  {
2
- "ai-portal.elevo-logo": {
3
- "properties": [],
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
+ ],
4
103
  "events": [],
5
104
  "methods": []
6
105
  },
7
- "ai-portal.home-container": {
106
+ "ai-portal.elevo-logo": {
8
107
  "properties": [],
9
108
  "events": [],
10
109
  "methods": []
@@ -189,107 +288,8 @@
189
288
  }
190
289
  }
191
290
  },
192
- "ai-portal.stat-with-mini-chart": {
193
- "properties": [
194
- {
195
- "name": "label",
196
- "annotation": {
197
- "type": "keyword",
198
- "value": "string"
199
- }
200
- },
201
- {
202
- "name": "value",
203
- "annotation": {
204
- "type": "keyword",
205
- "value": "string"
206
- }
207
- },
208
- {
209
- "name": "size",
210
- "annotation": {
211
- "type": "union",
212
- "types": [
213
- {
214
- "type": "jsLiteral",
215
- "value": "medium"
216
- },
217
- {
218
- "type": "jsLiteral",
219
- "value": "small"
220
- }
221
- ]
222
- }
223
- },
224
- {
225
- "name": "lineColor",
226
- "annotation": {
227
- "type": "keyword",
228
- "value": "string"
229
- }
230
- },
231
- {
232
- "name": "showArea",
233
- "annotation": {
234
- "type": "keyword",
235
- "value": "boolean"
236
- }
237
- },
238
- {
239
- "name": "min",
240
- "annotation": {
241
- "type": "keyword",
242
- "value": "number"
243
- }
244
- },
245
- {
246
- "name": "max",
247
- "annotation": {
248
- "type": "keyword",
249
- "value": "number"
250
- }
251
- },
252
- {
253
- "name": "xField",
254
- "annotation": {
255
- "type": "keyword",
256
- "value": "string"
257
- }
258
- },
259
- {
260
- "name": "yField",
261
- "annotation": {
262
- "type": "keyword",
263
- "value": "string"
264
- }
265
- },
266
- {
267
- "name": "data",
268
- "annotation": {
269
- "type": "array",
270
- "elementType": {
271
- "type": "reference",
272
- "typeName": {
273
- "type": "identifier",
274
- "name": "Record"
275
- },
276
- "typeParameters": {
277
- "type": "typeParameterInstantiation",
278
- "params": [
279
- {
280
- "type": "keyword",
281
- "value": "string"
282
- },
283
- {
284
- "type": "keyword",
285
- "value": "number"
286
- }
287
- ]
288
- }
289
- }
290
- }
291
- }
292
- ],
291
+ "ai-portal.home-container": {
292
+ "properties": [],
293
293
  "events": [],
294
294
  "methods": []
295
295
  },
@@ -382,7 +382,7 @@
382
382
  }
383
383
  ]
384
384
  },
385
- "ai-portal.chat-history": {
385
+ "ai-portal.show-cases": {
386
386
  "properties": [
387
387
  {
388
388
  "name": "list",
@@ -392,79 +392,31 @@
392
392
  "type": "reference",
393
393
  "typeName": {
394
394
  "type": "identifier",
395
- "name": "HistoryItem"
396
- }
397
- }
398
- }
399
- },
400
- {
401
- "name": "actions",
402
- "annotation": {
403
- "type": "array",
404
- "elementType": {
405
- "type": "reference",
406
- "typeName": {
407
- "type": "identifier",
408
- "name": "ActionType"
395
+ "name": "ShowCase"
409
396
  }
410
397
  }
411
398
  }
412
399
  },
413
400
  {
414
- "name": "nextToken",
401
+ "name": "taskUrlTemplate",
415
402
  "annotation": {
416
403
  "type": "keyword",
417
404
  "value": "string"
418
405
  }
419
406
  }
420
407
  ],
421
- "events": [
422
- {
423
- "name": "action.click",
424
- "detail": {
425
- "annotation": {
426
- "type": "reference",
427
- "typeName": {
428
- "type": "identifier",
429
- "name": "ActionClickDetail"
430
- }
431
- }
432
- }
433
- },
434
- {
435
- "name": "load.more",
436
- "detail": {
437
- "annotation": {
438
- "type": "typeLiteral",
439
- "members": [
440
- {
441
- "type": "propertySignature",
442
- "key": {
443
- "type": "identifier",
444
- "name": "nextToken"
445
- },
446
- "annotation": {
447
- "type": "keyword",
448
- "value": "string"
449
- },
450
- "computed": false
451
- }
452
- ]
453
- }
454
- }
455
- }
456
- ],
408
+ "events": [],
457
409
  "methods": [],
458
410
  "types": [
459
411
  {
460
412
  "type": "interface",
461
- "name": "HistoryItem",
413
+ "name": "ShowCase",
462
414
  "body": [
463
415
  {
464
416
  "type": "propertySignature",
465
417
  "key": {
466
418
  "type": "identifier",
467
- "name": "id"
419
+ "name": "taskId"
468
420
  },
469
421
  "annotation": {
470
422
  "type": "keyword",
@@ -476,7 +428,7 @@
476
428
  "type": "propertySignature",
477
429
  "key": {
478
430
  "type": "identifier",
479
- "name": "url"
431
+ "name": "title"
480
432
  },
481
433
  "annotation": {
482
434
  "type": "keyword",
@@ -488,7 +440,7 @@
488
440
  "type": "propertySignature",
489
441
  "key": {
490
442
  "type": "identifier",
491
- "name": "title"
443
+ "name": "summary"
492
444
  },
493
445
  "annotation": {
494
446
  "type": "keyword",
@@ -500,11 +452,11 @@
500
452
  "type": "propertySignature",
501
453
  "key": {
502
454
  "type": "identifier",
503
- "name": "startTime"
455
+ "name": "scenario"
504
456
  },
505
457
  "annotation": {
506
458
  "type": "keyword",
507
- "value": "number"
459
+ "value": "string"
508
460
  },
509
461
  "computed": false
510
462
  },
@@ -512,55 +464,16 @@
512
464
  "type": "propertySignature",
513
465
  "key": {
514
466
  "type": "identifier",
515
- "name": "state"
467
+ "name": "thumbUrl"
516
468
  },
517
469
  "annotation": {
518
- "type": "reference",
519
- "typeName": {
520
- "type": "identifier",
521
- "name": "TaskState"
522
- }
470
+ "type": "keyword",
471
+ "value": "string"
523
472
  },
524
473
  "optional": true,
525
474
  "computed": false
526
475
  }
527
476
  ]
528
- },
529
- {
530
- "type": "interface",
531
- "name": "ActionClickDetail",
532
- "body": [
533
- {
534
- "type": "propertySignature",
535
- "key": {
536
- "type": "identifier",
537
- "name": "action"
538
- },
539
- "annotation": {
540
- "type": "reference",
541
- "typeName": {
542
- "type": "identifier",
543
- "name": "SimpleActionType"
544
- }
545
- },
546
- "computed": false
547
- },
548
- {
549
- "type": "propertySignature",
550
- "key": {
551
- "type": "identifier",
552
- "name": "item"
553
- },
554
- "annotation": {
555
- "type": "reference",
556
- "typeName": {
557
- "type": "identifier",
558
- "name": "HistoryItem"
559
- }
560
- },
561
- "computed": false
562
- }
563
- ]
564
477
  }
565
478
  ]
566
479
  },
@@ -856,7 +769,7 @@
856
769
  }
857
770
  ]
858
771
  },
859
- "ai-portal.show-cases": {
772
+ "ai-portal.chat-history": {
860
773
  "properties": [
861
774
  {
862
775
  "name": "list",
@@ -866,31 +779,79 @@
866
779
  "type": "reference",
867
780
  "typeName": {
868
781
  "type": "identifier",
869
- "name": "ShowCase"
782
+ "name": "HistoryItem"
870
783
  }
871
784
  }
872
785
  }
873
786
  },
874
787
  {
875
- "name": "taskUrlTemplate",
788
+ "name": "actions",
789
+ "annotation": {
790
+ "type": "array",
791
+ "elementType": {
792
+ "type": "reference",
793
+ "typeName": {
794
+ "type": "identifier",
795
+ "name": "ActionType"
796
+ }
797
+ }
798
+ }
799
+ },
800
+ {
801
+ "name": "nextToken",
876
802
  "annotation": {
877
803
  "type": "keyword",
878
804
  "value": "string"
879
805
  }
880
806
  }
881
807
  ],
882
- "events": [],
808
+ "events": [
809
+ {
810
+ "name": "action.click",
811
+ "detail": {
812
+ "annotation": {
813
+ "type": "reference",
814
+ "typeName": {
815
+ "type": "identifier",
816
+ "name": "ActionClickDetail"
817
+ }
818
+ }
819
+ }
820
+ },
821
+ {
822
+ "name": "load.more",
823
+ "detail": {
824
+ "annotation": {
825
+ "type": "typeLiteral",
826
+ "members": [
827
+ {
828
+ "type": "propertySignature",
829
+ "key": {
830
+ "type": "identifier",
831
+ "name": "nextToken"
832
+ },
833
+ "annotation": {
834
+ "type": "keyword",
835
+ "value": "string"
836
+ },
837
+ "computed": false
838
+ }
839
+ ]
840
+ }
841
+ }
842
+ }
843
+ ],
883
844
  "methods": [],
884
845
  "types": [
885
846
  {
886
847
  "type": "interface",
887
- "name": "ShowCase",
848
+ "name": "HistoryItem",
888
849
  "body": [
889
850
  {
890
851
  "type": "propertySignature",
891
852
  "key": {
892
853
  "type": "identifier",
893
- "name": "taskId"
854
+ "name": "id"
894
855
  },
895
856
  "annotation": {
896
857
  "type": "keyword",
@@ -902,7 +863,7 @@
902
863
  "type": "propertySignature",
903
864
  "key": {
904
865
  "type": "identifier",
905
- "name": "title"
866
+ "name": "url"
906
867
  },
907
868
  "annotation": {
908
869
  "type": "keyword",
@@ -914,7 +875,7 @@
914
875
  "type": "propertySignature",
915
876
  "key": {
916
877
  "type": "identifier",
917
- "name": "summary"
878
+ "name": "title"
918
879
  },
919
880
  "annotation": {
920
881
  "type": "keyword",
@@ -926,11 +887,11 @@
926
887
  "type": "propertySignature",
927
888
  "key": {
928
889
  "type": "identifier",
929
- "name": "scenario"
890
+ "name": "startTime"
930
891
  },
931
892
  "annotation": {
932
893
  "type": "keyword",
933
- "value": "string"
894
+ "value": "number"
934
895
  },
935
896
  "computed": false
936
897
  },
@@ -938,16 +899,55 @@
938
899
  "type": "propertySignature",
939
900
  "key": {
940
901
  "type": "identifier",
941
- "name": "thumbUrl"
902
+ "name": "state"
942
903
  },
943
904
  "annotation": {
944
- "type": "keyword",
945
- "value": "string"
905
+ "type": "reference",
906
+ "typeName": {
907
+ "type": "identifier",
908
+ "name": "TaskState"
909
+ }
946
910
  },
947
911
  "optional": true,
948
912
  "computed": false
949
913
  }
950
914
  ]
915
+ },
916
+ {
917
+ "type": "interface",
918
+ "name": "ActionClickDetail",
919
+ "body": [
920
+ {
921
+ "type": "propertySignature",
922
+ "key": {
923
+ "type": "identifier",
924
+ "name": "action"
925
+ },
926
+ "annotation": {
927
+ "type": "reference",
928
+ "typeName": {
929
+ "type": "identifier",
930
+ "name": "SimpleActionType"
931
+ }
932
+ },
933
+ "computed": false
934
+ },
935
+ {
936
+ "type": "propertySignature",
937
+ "key": {
938
+ "type": "identifier",
939
+ "name": "item"
940
+ },
941
+ "annotation": {
942
+ "type": "reference",
943
+ "typeName": {
944
+ "type": "identifier",
945
+ "name": "HistoryItem"
946
+ }
947
+ },
948
+ "computed": false
949
+ }
950
+ ]
951
951
  }
952
952
  ]
953
953
  },
@@ -12,8 +12,8 @@ export declare enum K {
12
12
  PAUSE_THE_TASK = "PAUSE_THE_TASK",
13
13
  RESUME_THE_TASK = "RESUME_THE_TASK",
14
14
  CANCEL_THE_TASK = "CANCEL_THE_TASK",
15
- CONFIRM_TO_CANCEL_THE_TASK_TITLE = "CONFIRM_TO_CANCEL_THE_TASK_TITLE",
16
- CONFIRM_TO_CANCEL_THE_TASK_CONTENT = "CONFIRM_TO_CANCEL_THE_TASK_CONTENT",
15
+ CONFIRM_TO_TERMINATE_THE_TASK_TITLE = "CONFIRM_TO_TERMINATE_THE_TASK_TITLE",
16
+ CONFIRM_TO_TERMINATE_THE_TASK_CONTENT = "CONFIRM_TO_TERMINATE_THE_TASK_CONTENT",
17
17
  BACK_TO_CENTER = "BACK_TO_CENTER",
18
18
  ZOOM_IN = "ZOOM_IN",
19
19
  ZOOM_OUT = "ZOOM_OUT",
@@ -0,0 +1,3 @@
1
+ import type { ViewWithInfo } from "./converters/interfaces";
2
+ import type { ConstructedView } from "../interfaces";
3
+ export declare function isJsxView(result: ConstructedView | ViewWithInfo): result is ConstructedView;
@@ -2,8 +2,8 @@ export declare enum K {
2
2
  PAUSE_THE_TASK = "PAUSE_THE_TASK",
3
3
  RESUME_THE_TASK = "RESUME_THE_TASK",
4
4
  CANCEL_THE_TASK = "CANCEL_THE_TASK",
5
- CONFIRM_TO_CANCEL_THE_TASK_TITLE = "CONFIRM_TO_CANCEL_THE_TASK_TITLE",
6
- CONFIRM_TO_CANCEL_THE_TASK_CONTENT = "CONFIRM_TO_CANCEL_THE_TASK_CONTENT",
5
+ CONFIRM_TO_TERMINATE_THE_TASK_TITLE = "CONFIRM_TO_TERMINATE_THE_TASK_TITLE",
6
+ CONFIRM_TO_TERMINATE_THE_TASK_CONTENT = "CONFIRM_TO_TERMINATE_THE_TASK_CONTENT",
7
7
  SEND_MESSAGE = "SEND_MESSAGE"
8
8
  }
9
9
  export declare const NS = "bricks/ai-portal/ChatBox";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/ai-portal",
3
- "version": "0.28.1",
3
+ "version": "0.28.2",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,5 +46,5 @@
46
46
  "@next-bricks/presentational": "*",
47
47
  "@next-bricks/vs": "*"
48
48
  },
49
- "gitHead": "282b82c35890119c72ea0390465f96c0d16a4116"
49
+ "gitHead": "4164cd26b58b926f078b39259bf72861ad7e341d"
50
50
  }