@next-bricks/ai-portal 0.48.0 → 0.48.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 (45) hide show
  1. package/dist/bricks.json +32 -31
  2. package/dist/chunks/1026.a0469066.js +2 -0
  3. package/dist/chunks/1026.a0469066.js.map +1 -0
  4. package/dist/chunks/{1692.e1b92e84.js → 1692.01919eaa.js} +2 -2
  5. package/dist/chunks/{1692.e1b92e84.js.map → 1692.01919eaa.js.map} +1 -1
  6. package/dist/chunks/7431.5093d0d9.js +3 -0
  7. package/dist/chunks/7431.5093d0d9.js.map +1 -0
  8. package/dist/chunks/9328.222dec55.js +2 -0
  9. package/dist/chunks/9328.222dec55.js.map +1 -0
  10. package/dist/chunks/9474.dca1f47c.js +2 -0
  11. package/dist/chunks/9474.dca1f47c.js.map +1 -0
  12. package/dist/chunks/action-buttons.16da8761.js +2 -0
  13. package/dist/chunks/action-buttons.16da8761.js.map +1 -0
  14. package/dist/chunks/{chat-box.57a9d3ec.js → chat-box.0fd70952.js} +2 -2
  15. package/dist/chunks/chat-box.0fd70952.js.map +1 -0
  16. package/dist/chunks/{elevo-sidebar.7f4d37a1.js → elevo-sidebar.aa3aa869.js} +3 -3
  17. package/dist/chunks/elevo-sidebar.aa3aa869.js.map +1 -0
  18. package/dist/chunks/{main.a1c0bc1f.js → main.4486142d.js} +2 -2
  19. package/dist/chunks/{main.a1c0bc1f.js.map → main.4486142d.js.map} +1 -1
  20. package/dist/chunks/{preview-container.547a5036.js → preview-container.89b082ac.js} +2 -2
  21. package/dist/chunks/{preview-container.547a5036.js.map → preview-container.89b082ac.js.map} +1 -1
  22. package/dist/examples.json +16 -16
  23. package/dist/index.416c83ca.js +2 -0
  24. package/dist/index.416c83ca.js.map +1 -0
  25. package/dist/manifest.json +184 -190
  26. package/dist/types.json +199 -225
  27. package/dist-types/action-buttons/index.d.ts +3 -7
  28. package/dist-types/chat-box/index.d.ts +2 -0
  29. package/package.json +2 -2
  30. package/dist/chunks/4144.61537fe5.js +0 -2
  31. package/dist/chunks/4144.61537fe5.js.map +0 -1
  32. package/dist/chunks/7431.a7bb5366.js +0 -3
  33. package/dist/chunks/7431.a7bb5366.js.map +0 -1
  34. package/dist/chunks/9328.283c35b3.js +0 -2
  35. package/dist/chunks/9328.283c35b3.js.map +0 -1
  36. package/dist/chunks/9474.5c89809c.js +0 -2
  37. package/dist/chunks/9474.5c89809c.js.map +0 -1
  38. package/dist/chunks/action-buttons.52180d20.js +0 -2
  39. package/dist/chunks/action-buttons.52180d20.js.map +0 -1
  40. package/dist/chunks/chat-box.57a9d3ec.js.map +0 -1
  41. package/dist/chunks/elevo-sidebar.7f4d37a1.js.map +0 -1
  42. package/dist/index.44fdd150.js +0 -2
  43. package/dist/index.44fdd150.js.map +0 -1
  44. /package/dist/chunks/{7431.a7bb5366.js.LICENSE.txt → 7431.5093d0d9.js.LICENSE.txt} +0 -0
  45. /package/dist/chunks/{elevo-sidebar.7f4d37a1.js.LICENSE.txt → elevo-sidebar.aa3aa869.js.LICENSE.txt} +0 -0
package/dist/types.json CHANGED
@@ -766,6 +766,11 @@
766
766
  "name": "getValue",
767
767
  "params": [],
768
768
  "returns": {}
769
+ },
770
+ {
771
+ "name": "focusOnInput",
772
+ "params": [],
773
+ "returns": {}
769
774
  }
770
775
  ],
771
776
  "types": [
@@ -801,7 +806,7 @@
801
806
  }
802
807
  ]
803
808
  },
804
- "ai-portal.mcp-tools": {
809
+ "ai-portal.show-cases": {
805
810
  "properties": [
806
811
  {
807
812
  "name": "list",
@@ -811,17 +816,10 @@
811
816
  "type": "reference",
812
817
  "typeName": {
813
818
  "type": "identifier",
814
- "name": "McpTool"
819
+ "name": "ShowCaseType"
815
820
  }
816
821
  }
817
822
  }
818
- },
819
- {
820
- "name": "withContainer",
821
- "annotation": {
822
- "type": "keyword",
823
- "value": "boolean"
824
- }
825
823
  }
826
824
  ],
827
825
  "events": [],
@@ -829,13 +827,13 @@
829
827
  "types": [
830
828
  {
831
829
  "type": "interface",
832
- "name": "McpTool",
830
+ "name": "ShowCaseType",
833
831
  "body": [
834
832
  {
835
833
  "type": "propertySignature",
836
834
  "key": {
837
835
  "type": "identifier",
838
- "name": "name"
836
+ "name": "conversationId"
839
837
  },
840
838
  "annotation": {
841
839
  "type": "keyword",
@@ -859,7 +857,7 @@
859
857
  "type": "propertySignature",
860
858
  "key": {
861
859
  "type": "identifier",
862
- "name": "description"
860
+ "name": "summary"
863
861
  },
864
862
  "annotation": {
865
863
  "type": "keyword",
@@ -871,44 +869,7 @@
871
869
  "type": "propertySignature",
872
870
  "key": {
873
871
  "type": "identifier",
874
- "name": "icon"
875
- },
876
- "annotation": {
877
- "type": "reference",
878
- "typeName": {
879
- "type": "identifier",
880
- "name": "GeneralIconProps"
881
- }
882
- },
883
- "optional": true,
884
- "computed": false
885
- },
886
- {
887
- "type": "propertySignature",
888
- "key": {
889
- "type": "identifier",
890
- "name": "server"
891
- },
892
- "annotation": {
893
- "type": "reference",
894
- "typeName": {
895
- "type": "identifier",
896
- "name": "McpServer"
897
- }
898
- },
899
- "computed": false
900
- }
901
- ]
902
- },
903
- {
904
- "type": "interface",
905
- "name": "McpServer",
906
- "body": [
907
- {
908
- "type": "propertySignature",
909
- "key": {
910
- "type": "identifier",
911
- "name": "id"
872
+ "name": "scenario"
912
873
  },
913
874
  "annotation": {
914
875
  "type": "keyword",
@@ -920,19 +881,20 @@
920
881
  "type": "propertySignature",
921
882
  "key": {
922
883
  "type": "identifier",
923
- "name": "name"
884
+ "name": "url"
924
885
  },
925
886
  "annotation": {
926
887
  "type": "keyword",
927
888
  "value": "string"
928
889
  },
890
+ "optional": true,
929
891
  "computed": false
930
892
  }
931
893
  ]
932
894
  }
933
895
  ]
934
896
  },
935
- "ai-portal.show-cases": {
897
+ "ai-portal.mcp-tools": {
936
898
  "properties": [
937
899
  {
938
900
  "name": "list",
@@ -942,10 +904,17 @@
942
904
  "type": "reference",
943
905
  "typeName": {
944
906
  "type": "identifier",
945
- "name": "ShowCaseType"
907
+ "name": "McpTool"
946
908
  }
947
909
  }
948
910
  }
911
+ },
912
+ {
913
+ "name": "withContainer",
914
+ "annotation": {
915
+ "type": "keyword",
916
+ "value": "boolean"
917
+ }
949
918
  }
950
919
  ],
951
920
  "events": [],
@@ -953,13 +922,13 @@
953
922
  "types": [
954
923
  {
955
924
  "type": "interface",
956
- "name": "ShowCaseType",
925
+ "name": "McpTool",
957
926
  "body": [
958
927
  {
959
928
  "type": "propertySignature",
960
929
  "key": {
961
930
  "type": "identifier",
962
- "name": "conversationId"
931
+ "name": "name"
963
932
  },
964
933
  "annotation": {
965
934
  "type": "keyword",
@@ -983,7 +952,7 @@
983
952
  "type": "propertySignature",
984
953
  "key": {
985
954
  "type": "identifier",
986
- "name": "summary"
955
+ "name": "description"
987
956
  },
988
957
  "annotation": {
989
958
  "type": "keyword",
@@ -995,7 +964,44 @@
995
964
  "type": "propertySignature",
996
965
  "key": {
997
966
  "type": "identifier",
998
- "name": "scenario"
967
+ "name": "icon"
968
+ },
969
+ "annotation": {
970
+ "type": "reference",
971
+ "typeName": {
972
+ "type": "identifier",
973
+ "name": "GeneralIconProps"
974
+ }
975
+ },
976
+ "optional": true,
977
+ "computed": false
978
+ },
979
+ {
980
+ "type": "propertySignature",
981
+ "key": {
982
+ "type": "identifier",
983
+ "name": "server"
984
+ },
985
+ "annotation": {
986
+ "type": "reference",
987
+ "typeName": {
988
+ "type": "identifier",
989
+ "name": "McpServer"
990
+ }
991
+ },
992
+ "computed": false
993
+ }
994
+ ]
995
+ },
996
+ {
997
+ "type": "interface",
998
+ "name": "McpServer",
999
+ "body": [
1000
+ {
1001
+ "type": "propertySignature",
1002
+ "key": {
1003
+ "type": "identifier",
1004
+ "name": "id"
999
1005
  },
1000
1006
  "annotation": {
1001
1007
  "type": "keyword",
@@ -1007,13 +1013,12 @@
1007
1013
  "type": "propertySignature",
1008
1014
  "key": {
1009
1015
  "type": "identifier",
1010
- "name": "url"
1016
+ "name": "name"
1011
1017
  },
1012
1018
  "annotation": {
1013
1019
  "type": "keyword",
1014
1020
  "value": "string"
1015
1021
  },
1016
- "optional": true,
1017
1022
  "computed": false
1018
1023
  }
1019
1024
  ]
@@ -1229,26 +1234,6 @@
1229
1234
  }
1230
1235
  ]
1231
1236
  },
1232
- "ai-portal.preview-container": {
1233
- "properties": [
1234
- {
1235
- "name": "source",
1236
- "annotation": {
1237
- "type": "keyword",
1238
- "value": "string"
1239
- }
1240
- },
1241
- {
1242
- "name": "url",
1243
- "annotation": {
1244
- "type": "keyword",
1245
- "value": "string"
1246
- }
1247
- }
1248
- ],
1249
- "events": [],
1250
- "methods": []
1251
- },
1252
1237
  "ai-portal.dropdown-select": {
1253
1238
  "properties": [
1254
1239
  {
@@ -1418,6 +1403,26 @@
1418
1403
  }
1419
1404
  ]
1420
1405
  },
1406
+ "ai-portal.preview-container": {
1407
+ "properties": [
1408
+ {
1409
+ "name": "source",
1410
+ "annotation": {
1411
+ "type": "keyword",
1412
+ "value": "string"
1413
+ }
1414
+ },
1415
+ {
1416
+ "name": "url",
1417
+ "annotation": {
1418
+ "type": "keyword",
1419
+ "value": "string"
1420
+ }
1421
+ }
1422
+ ],
1423
+ "events": [],
1424
+ "methods": []
1425
+ },
1421
1426
  "ai-portal.action-buttons": {
1422
1427
  "properties": [
1423
1428
  {
@@ -1434,42 +1439,46 @@
1434
1439
  }
1435
1440
  },
1436
1441
  {
1437
- "name": "multiple",
1442
+ "name": "activeKey",
1438
1443
  "annotation": {
1439
- "type": "keyword",
1440
- "value": "boolean"
1444
+ "type": "union",
1445
+ "types": [
1446
+ {
1447
+ "type": "keyword",
1448
+ "value": "string"
1449
+ },
1450
+ {
1451
+ "type": "keyword",
1452
+ "value": "null"
1453
+ }
1454
+ ]
1441
1455
  }
1442
1456
  }
1443
1457
  ],
1444
1458
  "events": [
1445
1459
  {
1446
- "name": "action.click",
1460
+ "name": "change",
1447
1461
  "detail": {
1448
1462
  "annotation": {
1449
- "type": "reference",
1450
- "typeName": {
1451
- "type": "identifier",
1452
- "name": "ActionItem"
1453
- }
1463
+ "type": "union",
1464
+ "types": [
1465
+ {
1466
+ "type": "reference",
1467
+ "typeName": {
1468
+ "type": "identifier",
1469
+ "name": "ActionItem"
1470
+ }
1471
+ },
1472
+ {
1473
+ "type": "keyword",
1474
+ "value": "null"
1475
+ }
1476
+ ]
1454
1477
  }
1455
1478
  }
1456
1479
  }
1457
1480
  ],
1458
- "methods": [
1459
- {
1460
- "name": "setActive",
1461
- "params": [
1462
- {
1463
- "name": "key",
1464
- "annotation": {
1465
- "type": "keyword",
1466
- "value": "string"
1467
- }
1468
- }
1469
- ],
1470
- "returns": {}
1471
- }
1472
- ],
1481
+ "methods": [],
1473
1482
  "types": [
1474
1483
  {
1475
1484
  "type": "interface",
@@ -1515,32 +1524,6 @@
1515
1524
  "optional": true,
1516
1525
  "computed": false
1517
1526
  },
1518
- {
1519
- "type": "propertySignature",
1520
- "key": {
1521
- "type": "identifier",
1522
- "name": "active"
1523
- },
1524
- "annotation": {
1525
- "type": "keyword",
1526
- "value": "boolean"
1527
- },
1528
- "optional": true,
1529
- "computed": false
1530
- },
1531
- {
1532
- "type": "propertySignature",
1533
- "key": {
1534
- "type": "identifier",
1535
- "name": "event"
1536
- },
1537
- "annotation": {
1538
- "type": "keyword",
1539
- "value": "string"
1540
- },
1541
- "optional": true,
1542
- "computed": false
1543
- },
1544
1527
  {
1545
1528
  "type": "propertySignature",
1546
1529
  "key": {
@@ -1554,15 +1537,6 @@
1554
1537
  "optional": true,
1555
1538
  "computed": false
1556
1539
  }
1557
- ],
1558
- "extends": [
1559
- {
1560
- "type": "expressionWithTypeArguments",
1561
- "expression": {
1562
- "type": "identifier",
1563
- "name": "ButtonProps"
1564
- }
1565
- }
1566
1540
  ]
1567
1541
  }
1568
1542
  ]
@@ -1793,93 +1767,6 @@
1793
1767
  }
1794
1768
  ]
1795
1769
  },
1796
- "ai-portal.chat-input": {
1797
- "properties": [
1798
- {
1799
- "name": "placeholder",
1800
- "annotation": {
1801
- "type": "keyword",
1802
- "value": "string"
1803
- }
1804
- },
1805
- {
1806
- "name": "autoFocus",
1807
- "annotation": {
1808
- "type": "keyword",
1809
- "value": "boolean"
1810
- }
1811
- },
1812
- {
1813
- "name": "submitDisabled",
1814
- "annotation": {
1815
- "type": "keyword",
1816
- "value": "boolean"
1817
- }
1818
- },
1819
- {
1820
- "name": "supportsTerminate",
1821
- "annotation": {
1822
- "type": "keyword",
1823
- "value": "boolean"
1824
- }
1825
- },
1826
- {
1827
- "name": "terminating",
1828
- "annotation": {
1829
- "type": "keyword",
1830
- "value": "boolean"
1831
- }
1832
- }
1833
- ],
1834
- "events": [
1835
- {
1836
- "name": "message.submit",
1837
- "detail": {
1838
- "annotation": {
1839
- "type": "keyword",
1840
- "value": "string"
1841
- }
1842
- }
1843
- },
1844
- {
1845
- "name": "terminate",
1846
- "detail": {
1847
- "annotation": {
1848
- "type": "keyword",
1849
- "value": "void"
1850
- }
1851
- }
1852
- }
1853
- ],
1854
- "methods": []
1855
- },
1856
- "ai-portal.show-case": {
1857
- "properties": [
1858
- {
1859
- "name": "caseTitle",
1860
- "annotation": {
1861
- "type": "keyword",
1862
- "value": "string"
1863
- }
1864
- },
1865
- {
1866
- "name": "summary",
1867
- "annotation": {
1868
- "type": "keyword",
1869
- "value": "string"
1870
- }
1871
- },
1872
- {
1873
- "name": "url",
1874
- "annotation": {
1875
- "type": "keyword",
1876
- "value": "string"
1877
- }
1878
- }
1879
- ],
1880
- "events": [],
1881
- "methods": []
1882
- },
1883
1770
  "ai-portal.activity-timeline": {
1884
1771
  "properties": [
1885
1772
  {
@@ -2854,6 +2741,93 @@
2854
2741
  }
2855
2742
  ]
2856
2743
  },
2744
+ "ai-portal.chat-input": {
2745
+ "properties": [
2746
+ {
2747
+ "name": "placeholder",
2748
+ "annotation": {
2749
+ "type": "keyword",
2750
+ "value": "string"
2751
+ }
2752
+ },
2753
+ {
2754
+ "name": "autoFocus",
2755
+ "annotation": {
2756
+ "type": "keyword",
2757
+ "value": "boolean"
2758
+ }
2759
+ },
2760
+ {
2761
+ "name": "submitDisabled",
2762
+ "annotation": {
2763
+ "type": "keyword",
2764
+ "value": "boolean"
2765
+ }
2766
+ },
2767
+ {
2768
+ "name": "supportsTerminate",
2769
+ "annotation": {
2770
+ "type": "keyword",
2771
+ "value": "boolean"
2772
+ }
2773
+ },
2774
+ {
2775
+ "name": "terminating",
2776
+ "annotation": {
2777
+ "type": "keyword",
2778
+ "value": "boolean"
2779
+ }
2780
+ }
2781
+ ],
2782
+ "events": [
2783
+ {
2784
+ "name": "message.submit",
2785
+ "detail": {
2786
+ "annotation": {
2787
+ "type": "keyword",
2788
+ "value": "string"
2789
+ }
2790
+ }
2791
+ },
2792
+ {
2793
+ "name": "terminate",
2794
+ "detail": {
2795
+ "annotation": {
2796
+ "type": "keyword",
2797
+ "value": "void"
2798
+ }
2799
+ }
2800
+ }
2801
+ ],
2802
+ "methods": []
2803
+ },
2804
+ "ai-portal.show-case": {
2805
+ "properties": [
2806
+ {
2807
+ "name": "caseTitle",
2808
+ "annotation": {
2809
+ "type": "keyword",
2810
+ "value": "string"
2811
+ }
2812
+ },
2813
+ {
2814
+ "name": "summary",
2815
+ "annotation": {
2816
+ "type": "keyword",
2817
+ "value": "string"
2818
+ }
2819
+ },
2820
+ {
2821
+ "name": "url",
2822
+ "annotation": {
2823
+ "type": "keyword",
2824
+ "value": "string"
2825
+ }
2826
+ }
2827
+ ],
2828
+ "events": [],
2829
+ "methods": []
2830
+ },
2857
2831
  "ai-portal.elevo-sidebar": {
2858
2832
  "properties": [
2859
2833
  {
@@ -2,18 +2,15 @@ import React from "react";
2
2
  import { ReactNextElement } from "@next-core/react-element";
3
3
  import "@next-core/theme";
4
4
  import type { GeneralIconProps } from "@next-bricks/icons/general-icon";
5
- import { ButtonProps } from "@next-bricks/basic/button";
6
- interface ActionItem extends ButtonProps {
5
+ interface ActionItem {
7
6
  text: string;
8
7
  key: string;
9
8
  icon?: GeneralIconProps;
10
- active?: boolean;
11
- event?: string;
12
9
  hidden?: boolean;
13
10
  }
14
11
  export interface ActionButtonsProps {
15
12
  items?: ActionItem[];
16
- multiple?: boolean;
13
+ activeKey?: string | null;
17
14
  }
18
15
  /**
19
16
  * 构件 `ai-portal.action-buttons`
@@ -21,8 +18,7 @@ export interface ActionButtonsProps {
21
18
  export declare class ActionButtons extends ReactNextElement implements ActionButtonsProps {
22
19
  #private;
23
20
  accessor items: ActionItem[] | undefined;
24
- accessor multiple: boolean | undefined;
25
- setActive(key: string): void;
21
+ accessor activeKey: string | null | undefined;
26
22
  render(): React.JSX.Element;
27
23
  }
28
24
  export {};
@@ -15,6 +15,7 @@ export interface AIEmployee {
15
15
  export interface ChatBoxRef {
16
16
  setValue: (value: string) => void;
17
17
  getValue: () => string;
18
+ focusOnInput: () => void;
18
19
  }
19
20
  /**
20
21
  * 构件 `ai-portal.chat-box`
@@ -28,6 +29,7 @@ export declare class ChatBox extends ReactNextElement implements ChatBoxProps {
28
29
  accessor aiEmployees: AIEmployee[] | undefined;
29
30
  setValue(value: string): void;
30
31
  getValue(): string | undefined;
32
+ focusOnInput(): void | undefined;
31
33
  render(): React.JSX.Element;
32
34
  }
33
35
  interface ChatBoxComponentProps extends ChatBoxProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/ai-portal",
3
- "version": "0.48.0",
3
+ "version": "0.48.2",
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": "c18223b26a82f36ed73d0a64c8f834fc73522e66"
50
+ "gitHead": "c8eafe0203c6b18b09dc3aa091aa860ea6879d18"
51
51
  }