@next-bricks/ai-portal 0.28.0 → 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 (46) hide show
  1. package/dist/bricks.json +11 -11
  2. package/dist/chunks/4820.2a04a06c.js +2 -0
  3. package/dist/chunks/4820.2a04a06c.js.map +1 -0
  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.e3d447b4.js → main.a70b98fa.js} +2 -2
  11. package/dist/chunks/main.a70b98fa.js.map +1 -0
  12. package/dist/examples.json +9 -9
  13. package/dist/{index.ff71b904.js → index.02d1374e.js} +2 -2
  14. package/dist/index.02d1374e.js.map +1 -0
  15. package/dist/manifest.json +58 -58
  16. package/dist/types.json +187 -187
  17. package/dist-types/cruise-canvas/i18n.d.ts +2 -2
  18. package/dist-types/cruise-canvas/useConversationGraph.d.ts +1 -1
  19. package/dist-types/cruise-canvas/utils/isJsxView.d.ts +3 -0
  20. package/dist-types/shared/ChatBox/i18n.d.ts +2 -2
  21. package/package.json +2 -2
  22. package/dist/chunks/4820.71c4cfc0.js +0 -2
  23. package/dist/chunks/4820.71c4cfc0.js.map +0 -1
  24. package/dist/chunks/5054.0e746eec.js.map +0 -1
  25. package/dist/chunks/981.2da3c32c.js +0 -2
  26. package/dist/chunks/981.2da3c32c.js.map +0 -1
  27. package/dist/chunks/main.e3d447b4.js.map +0 -1
  28. package/dist/index.ff71b904.js.map +0 -1
  29. package/dist-types/cruise-canvas/utils/jsx-converters/convertButton.d.ts +0 -3
  30. package/dist-types/cruise-canvas/utils/jsx-converters/convertCard.d.ts +0 -3
  31. package/dist-types/cruise-canvas/utils/jsx-converters/convertDashboard.d.ts +0 -4
  32. package/dist-types/cruise-canvas/utils/jsx-converters/convertDataSources.d.ts +0 -3
  33. package/dist-types/cruise-canvas/utils/jsx-converters/convertDescriptions.d.ts +0 -4
  34. package/dist-types/cruise-canvas/utils/jsx-converters/convertEvents.d.ts +0 -4
  35. package/dist-types/cruise-canvas/utils/jsx-converters/convertForEach.d.ts +0 -3
  36. package/dist-types/cruise-canvas/utils/jsx-converters/convertForm.d.ts +0 -3
  37. package/dist-types/cruise-canvas/utils/jsx-converters/convertFormItem.d.ts +0 -3
  38. package/dist-types/cruise-canvas/utils/jsx-converters/convertJsx.d.ts +0 -8
  39. package/dist-types/cruise-canvas/utils/jsx-converters/convertList.d.ts +0 -3
  40. package/dist-types/cruise-canvas/utils/jsx-converters/convertModal.d.ts +0 -3
  41. package/dist-types/cruise-canvas/utils/jsx-converters/convertTable.d.ts +0 -4
  42. package/dist-types/cruise-canvas/utils/jsx-converters/convertText.d.ts +0 -3
  43. package/dist-types/cruise-canvas/utils/jsx-converters/convertToolbar.d.ts +0 -3
  44. package/dist-types/cruise-canvas/utils/jsx-converters/convertVariables.d.ts +0 -3
  45. package/dist-types/cruise-canvas/utils/jsx-converters/findObjectIdByUsedDataContexts.d.ts +0 -7
  46. package/dist-types/cruise-canvas/utils/jsx-converters/isJsxView.d.ts +0 -3
package/dist/types.json CHANGED
@@ -1,9 +1,4 @@
1
1
  {
2
- "ai-portal.home-container": {
3
- "properties": [],
4
- "events": [],
5
- "methods": []
6
- },
7
2
  "ai-portal.stat-with-mini-chart": {
8
3
  "properties": [
9
4
  {
@@ -293,6 +288,11 @@
293
288
  }
294
289
  }
295
290
  },
291
+ "ai-portal.home-container": {
292
+ "properties": [],
293
+ "events": [],
294
+ "methods": []
295
+ },
296
296
  "ai-portal.chat-box": {
297
297
  "properties": [
298
298
  {
@@ -382,188 +382,6 @@
382
382
  }
383
383
  ]
384
384
  },
385
- "ai-portal.chat-history": {
386
- "properties": [
387
- {
388
- "name": "list",
389
- "annotation": {
390
- "type": "array",
391
- "elementType": {
392
- "type": "reference",
393
- "typeName": {
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"
409
- }
410
- }
411
- }
412
- },
413
- {
414
- "name": "nextToken",
415
- "annotation": {
416
- "type": "keyword",
417
- "value": "string"
418
- }
419
- }
420
- ],
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
- ],
457
- "methods": [],
458
- "types": [
459
- {
460
- "type": "interface",
461
- "name": "HistoryItem",
462
- "body": [
463
- {
464
- "type": "propertySignature",
465
- "key": {
466
- "type": "identifier",
467
- "name": "id"
468
- },
469
- "annotation": {
470
- "type": "keyword",
471
- "value": "string"
472
- },
473
- "computed": false
474
- },
475
- {
476
- "type": "propertySignature",
477
- "key": {
478
- "type": "identifier",
479
- "name": "url"
480
- },
481
- "annotation": {
482
- "type": "keyword",
483
- "value": "string"
484
- },
485
- "computed": false
486
- },
487
- {
488
- "type": "propertySignature",
489
- "key": {
490
- "type": "identifier",
491
- "name": "title"
492
- },
493
- "annotation": {
494
- "type": "keyword",
495
- "value": "string"
496
- },
497
- "computed": false
498
- },
499
- {
500
- "type": "propertySignature",
501
- "key": {
502
- "type": "identifier",
503
- "name": "startTime"
504
- },
505
- "annotation": {
506
- "type": "keyword",
507
- "value": "number"
508
- },
509
- "computed": false
510
- },
511
- {
512
- "type": "propertySignature",
513
- "key": {
514
- "type": "identifier",
515
- "name": "state"
516
- },
517
- "annotation": {
518
- "type": "reference",
519
- "typeName": {
520
- "type": "identifier",
521
- "name": "TaskState"
522
- }
523
- },
524
- "optional": true,
525
- "computed": false
526
- }
527
- ]
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
- }
565
- ]
566
- },
567
385
  "ai-portal.show-cases": {
568
386
  "properties": [
569
387
  {
@@ -951,6 +769,188 @@
951
769
  }
952
770
  ]
953
771
  },
772
+ "ai-portal.chat-history": {
773
+ "properties": [
774
+ {
775
+ "name": "list",
776
+ "annotation": {
777
+ "type": "array",
778
+ "elementType": {
779
+ "type": "reference",
780
+ "typeName": {
781
+ "type": "identifier",
782
+ "name": "HistoryItem"
783
+ }
784
+ }
785
+ }
786
+ },
787
+ {
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",
802
+ "annotation": {
803
+ "type": "keyword",
804
+ "value": "string"
805
+ }
806
+ }
807
+ ],
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
+ ],
844
+ "methods": [],
845
+ "types": [
846
+ {
847
+ "type": "interface",
848
+ "name": "HistoryItem",
849
+ "body": [
850
+ {
851
+ "type": "propertySignature",
852
+ "key": {
853
+ "type": "identifier",
854
+ "name": "id"
855
+ },
856
+ "annotation": {
857
+ "type": "keyword",
858
+ "value": "string"
859
+ },
860
+ "computed": false
861
+ },
862
+ {
863
+ "type": "propertySignature",
864
+ "key": {
865
+ "type": "identifier",
866
+ "name": "url"
867
+ },
868
+ "annotation": {
869
+ "type": "keyword",
870
+ "value": "string"
871
+ },
872
+ "computed": false
873
+ },
874
+ {
875
+ "type": "propertySignature",
876
+ "key": {
877
+ "type": "identifier",
878
+ "name": "title"
879
+ },
880
+ "annotation": {
881
+ "type": "keyword",
882
+ "value": "string"
883
+ },
884
+ "computed": false
885
+ },
886
+ {
887
+ "type": "propertySignature",
888
+ "key": {
889
+ "type": "identifier",
890
+ "name": "startTime"
891
+ },
892
+ "annotation": {
893
+ "type": "keyword",
894
+ "value": "number"
895
+ },
896
+ "computed": false
897
+ },
898
+ {
899
+ "type": "propertySignature",
900
+ "key": {
901
+ "type": "identifier",
902
+ "name": "state"
903
+ },
904
+ "annotation": {
905
+ "type": "reference",
906
+ "typeName": {
907
+ "type": "identifier",
908
+ "name": "TaskState"
909
+ }
910
+ },
911
+ "optional": true,
912
+ "computed": false
913
+ }
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
+ }
952
+ ]
953
+ },
954
954
  "ai-portal.elevo-sidebar": {
955
955
  "properties": [
956
956
  {
@@ -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",
@@ -9,4 +9,4 @@ export declare function useConversationGraph(conversation: ConversationBaseDetai
9
9
  views: GraphGeneratedView[];
10
10
  jobMap: Map<string, import("../shared/interfaces").Job>;
11
11
  jobLevels: Map<string, number>;
12
- } | null | undefined;
12
+ } | null;
@@ -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.0",
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": "14362c5c68c0474db5ba0d39835702b173acf013"
49
+ "gitHead": "4164cd26b58b926f078b39259bf72861ad7e341d"
50
50
  }