@next-bricks/ai-portal 0.41.3 → 0.42.0
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/bricks.json +22 -21
- package/dist/chunks/{453.e0c39d75.js → 453.e2767a6d.js} +2 -2
- package/dist/chunks/453.e2767a6d.js.map +1 -0
- package/dist/chunks/6754.9dfa5269.js +2 -0
- package/dist/chunks/6754.9dfa5269.js.map +1 -0
- package/dist/chunks/{7493.61116715.js → 7493.6f9d9ca0.js} +2 -2
- package/dist/chunks/7493.6f9d9ca0.js.map +1 -0
- package/dist/chunks/9749.cfb84a2f.js +2 -0
- package/dist/chunks/9749.cfb84a2f.js.map +1 -0
- package/dist/chunks/chat-box.4f6d3704.js +2 -0
- package/dist/chunks/chat-box.4f6d3704.js.map +1 -0
- package/dist/chunks/chat-input.679aec70.js +3 -0
- package/dist/chunks/chat-input.679aec70.js.map +1 -0
- package/dist/chunks/chat-stream.a2e40a99.js +2 -0
- package/dist/chunks/chat-stream.a2e40a99.js.map +1 -0
- package/dist/chunks/cruise-canvas.77318b42.js +2 -0
- package/dist/chunks/cruise-canvas.77318b42.js.map +1 -0
- package/dist/chunks/{main.368cafdf.js → main.40e44ee2.js} +2 -2
- package/dist/chunks/{main.368cafdf.js.map → main.40e44ee2.js.map} +1 -1
- package/dist/chunks/{project-conversations.d4771579.js → project-conversations.e525349e.js} +3 -3
- package/dist/chunks/project-conversations.e525349e.js.map +1 -0
- package/dist/examples.json +13 -13
- package/dist/{index.985de226.js → index.ad4c133a.js} +2 -2
- package/dist/{index.985de226.js.map → index.ad4c133a.js.map} +1 -1
- package/dist/manifest.json +140 -117
- package/dist/types.json +271 -143
- package/dist-types/chat-box/index.d.ts +9 -2
- package/dist-types/chat-stream/ChatStream.d.ts +3 -2
- package/dist-types/chat-stream/LegacyChatStream.d.ts +2 -1
- package/dist-types/chat-stream/index.d.ts +3 -0
- package/dist-types/cruise-canvas/CruiseCanvas.d.ts +3 -2
- package/dist-types/cruise-canvas/LegacyCruiseCanvas.d.ts +2 -1
- package/dist-types/cruise-canvas/index.d.ts +3 -0
- package/dist-types/shared/interfaces.d.ts +1 -0
- package/package.json +2 -2
- package/dist/chunks/2608.bbe2b26a.js +0 -2
- package/dist/chunks/2608.bbe2b26a.js.map +0 -1
- package/dist/chunks/453.e0c39d75.js.map +0 -1
- package/dist/chunks/6754.758fa3ae.js +0 -2
- package/dist/chunks/6754.758fa3ae.js.map +0 -1
- package/dist/chunks/7493.61116715.js.map +0 -1
- package/dist/chunks/chat-box.15e40b8e.js +0 -2
- package/dist/chunks/chat-box.15e40b8e.js.map +0 -1
- package/dist/chunks/chat-input.3e67d2d4.js +0 -3
- package/dist/chunks/chat-input.3e67d2d4.js.map +0 -1
- package/dist/chunks/chat-stream.88ec601e.js +0 -2
- package/dist/chunks/chat-stream.88ec601e.js.map +0 -1
- package/dist/chunks/cruise-canvas.f715731a.js +0 -2
- package/dist/chunks/cruise-canvas.f715731a.js.map +0 -1
- package/dist/chunks/project-conversations.d4771579.js.map +0 -1
- /package/dist/chunks/{chat-input.3e67d2d4.js.LICENSE.txt → chat-input.679aec70.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{project-conversations.d4771579.js.LICENSE.txt → project-conversations.e525349e.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"ai-portal.home-container": {
|
|
3
|
+
"properties": [],
|
|
4
|
+
"events": [],
|
|
5
|
+
"methods": []
|
|
6
|
+
},
|
|
2
7
|
"ai-portal.stat-with-mini-chart": {
|
|
3
8
|
"properties": [
|
|
4
9
|
{
|
|
@@ -531,11 +536,6 @@
|
|
|
531
536
|
}
|
|
532
537
|
]
|
|
533
538
|
},
|
|
534
|
-
"ai-portal.home-container": {
|
|
535
|
-
"properties": [],
|
|
536
|
-
"events": [],
|
|
537
|
-
"methods": []
|
|
538
|
-
},
|
|
539
539
|
"ai-portal.elevo-logo": {
|
|
540
540
|
"properties": [],
|
|
541
541
|
"events": [],
|
|
@@ -711,77 +711,105 @@
|
|
|
711
711
|
}
|
|
712
712
|
]
|
|
713
713
|
},
|
|
714
|
-
"ai-portal.
|
|
714
|
+
"ai-portal.chat-box": {
|
|
715
715
|
"properties": [
|
|
716
716
|
{
|
|
717
|
-
"name": "
|
|
717
|
+
"name": "disabled",
|
|
718
|
+
"annotation": {
|
|
719
|
+
"type": "keyword",
|
|
720
|
+
"value": "boolean"
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"name": "placeholder",
|
|
725
|
+
"annotation": {
|
|
726
|
+
"type": "keyword",
|
|
727
|
+
"value": "string"
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"name": "autoFocus",
|
|
732
|
+
"annotation": {
|
|
733
|
+
"type": "keyword",
|
|
734
|
+
"value": "boolean"
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
"name": "aiEmployees",
|
|
718
739
|
"annotation": {
|
|
719
740
|
"type": "array",
|
|
720
741
|
"elementType": {
|
|
721
742
|
"type": "reference",
|
|
722
743
|
"typeName": {
|
|
723
744
|
"type": "identifier",
|
|
724
|
-
"name": "
|
|
745
|
+
"name": "AIEmployee"
|
|
725
746
|
}
|
|
726
747
|
}
|
|
727
748
|
}
|
|
749
|
+
}
|
|
750
|
+
],
|
|
751
|
+
"events": [
|
|
752
|
+
{
|
|
753
|
+
"name": "message.submit",
|
|
754
|
+
"detail": {
|
|
755
|
+
"annotation": {
|
|
756
|
+
"type": "keyword",
|
|
757
|
+
"value": "string"
|
|
758
|
+
}
|
|
759
|
+
}
|
|
728
760
|
},
|
|
729
761
|
{
|
|
730
|
-
"name": "
|
|
731
|
-
"
|
|
732
|
-
"
|
|
733
|
-
|
|
762
|
+
"name": "ai-employee.mention",
|
|
763
|
+
"detail": {
|
|
764
|
+
"annotation": {
|
|
765
|
+
"type": "union",
|
|
766
|
+
"types": [
|
|
767
|
+
{
|
|
768
|
+
"type": "reference",
|
|
769
|
+
"typeName": {
|
|
770
|
+
"type": "identifier",
|
|
771
|
+
"name": "AIEmployee"
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"type": "keyword",
|
|
776
|
+
"value": "null"
|
|
777
|
+
}
|
|
778
|
+
]
|
|
779
|
+
}
|
|
734
780
|
}
|
|
735
781
|
}
|
|
736
782
|
],
|
|
737
|
-
"
|
|
738
|
-
"methods": [],
|
|
739
|
-
"types": [
|
|
783
|
+
"methods": [
|
|
740
784
|
{
|
|
741
|
-
"
|
|
742
|
-
"
|
|
743
|
-
"body": [
|
|
744
|
-
{
|
|
745
|
-
"type": "propertySignature",
|
|
746
|
-
"key": {
|
|
747
|
-
"type": "identifier",
|
|
748
|
-
"name": "taskId"
|
|
749
|
-
},
|
|
750
|
-
"annotation": {
|
|
751
|
-
"type": "keyword",
|
|
752
|
-
"value": "string"
|
|
753
|
-
},
|
|
754
|
-
"computed": false
|
|
755
|
-
},
|
|
756
|
-
{
|
|
757
|
-
"type": "propertySignature",
|
|
758
|
-
"key": {
|
|
759
|
-
"type": "identifier",
|
|
760
|
-
"name": "title"
|
|
761
|
-
},
|
|
762
|
-
"annotation": {
|
|
763
|
-
"type": "keyword",
|
|
764
|
-
"value": "string"
|
|
765
|
-
},
|
|
766
|
-
"computed": false
|
|
767
|
-
},
|
|
785
|
+
"name": "setValue",
|
|
786
|
+
"params": [
|
|
768
787
|
{
|
|
769
|
-
"
|
|
770
|
-
"key": {
|
|
771
|
-
"type": "identifier",
|
|
772
|
-
"name": "summary"
|
|
773
|
-
},
|
|
788
|
+
"name": "value",
|
|
774
789
|
"annotation": {
|
|
775
790
|
"type": "keyword",
|
|
776
791
|
"value": "string"
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
],
|
|
795
|
+
"returns": {}
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"name": "getValue",
|
|
799
|
+
"params": [],
|
|
800
|
+
"returns": {}
|
|
801
|
+
}
|
|
802
|
+
],
|
|
803
|
+
"types": [
|
|
804
|
+
{
|
|
805
|
+
"type": "interface",
|
|
806
|
+
"name": "AIEmployee",
|
|
807
|
+
"body": [
|
|
780
808
|
{
|
|
781
809
|
"type": "propertySignature",
|
|
782
810
|
"key": {
|
|
783
811
|
"type": "identifier",
|
|
784
|
-
"name": "
|
|
812
|
+
"name": "employeeId"
|
|
785
813
|
},
|
|
786
814
|
"annotation": {
|
|
787
815
|
"type": "keyword",
|
|
@@ -793,20 +821,19 @@
|
|
|
793
821
|
"type": "propertySignature",
|
|
794
822
|
"key": {
|
|
795
823
|
"type": "identifier",
|
|
796
|
-
"name": "
|
|
824
|
+
"name": "name"
|
|
797
825
|
},
|
|
798
826
|
"annotation": {
|
|
799
827
|
"type": "keyword",
|
|
800
828
|
"value": "string"
|
|
801
829
|
},
|
|
802
|
-
"optional": true,
|
|
803
830
|
"computed": false
|
|
804
831
|
}
|
|
805
832
|
]
|
|
806
833
|
}
|
|
807
834
|
]
|
|
808
835
|
},
|
|
809
|
-
"ai-portal.
|
|
836
|
+
"ai-portal.show-cases": {
|
|
810
837
|
"properties": [
|
|
811
838
|
{
|
|
812
839
|
"name": "list",
|
|
@@ -816,16 +843,16 @@
|
|
|
816
843
|
"type": "reference",
|
|
817
844
|
"typeName": {
|
|
818
845
|
"type": "identifier",
|
|
819
|
-
"name": "
|
|
846
|
+
"name": "ShowCase"
|
|
820
847
|
}
|
|
821
848
|
}
|
|
822
849
|
}
|
|
823
850
|
},
|
|
824
851
|
{
|
|
825
|
-
"name": "
|
|
852
|
+
"name": "taskUrlTemplate",
|
|
826
853
|
"annotation": {
|
|
827
854
|
"type": "keyword",
|
|
828
|
-
"value": "
|
|
855
|
+
"value": "string"
|
|
829
856
|
}
|
|
830
857
|
}
|
|
831
858
|
],
|
|
@@ -834,13 +861,13 @@
|
|
|
834
861
|
"types": [
|
|
835
862
|
{
|
|
836
863
|
"type": "interface",
|
|
837
|
-
"name": "
|
|
864
|
+
"name": "ShowCase",
|
|
838
865
|
"body": [
|
|
839
866
|
{
|
|
840
867
|
"type": "propertySignature",
|
|
841
868
|
"key": {
|
|
842
869
|
"type": "identifier",
|
|
843
|
-
"name": "
|
|
870
|
+
"name": "taskId"
|
|
844
871
|
},
|
|
845
872
|
"annotation": {
|
|
846
873
|
"type": "keyword",
|
|
@@ -864,7 +891,7 @@
|
|
|
864
891
|
"type": "propertySignature",
|
|
865
892
|
"key": {
|
|
866
893
|
"type": "identifier",
|
|
867
|
-
"name": "
|
|
894
|
+
"name": "summary"
|
|
868
895
|
},
|
|
869
896
|
"annotation": {
|
|
870
897
|
"type": "keyword",
|
|
@@ -876,44 +903,7 @@
|
|
|
876
903
|
"type": "propertySignature",
|
|
877
904
|
"key": {
|
|
878
905
|
"type": "identifier",
|
|
879
|
-
"name": "
|
|
880
|
-
},
|
|
881
|
-
"annotation": {
|
|
882
|
-
"type": "reference",
|
|
883
|
-
"typeName": {
|
|
884
|
-
"type": "identifier",
|
|
885
|
-
"name": "GeneralIconProps"
|
|
886
|
-
}
|
|
887
|
-
},
|
|
888
|
-
"optional": true,
|
|
889
|
-
"computed": false
|
|
890
|
-
},
|
|
891
|
-
{
|
|
892
|
-
"type": "propertySignature",
|
|
893
|
-
"key": {
|
|
894
|
-
"type": "identifier",
|
|
895
|
-
"name": "server"
|
|
896
|
-
},
|
|
897
|
-
"annotation": {
|
|
898
|
-
"type": "reference",
|
|
899
|
-
"typeName": {
|
|
900
|
-
"type": "identifier",
|
|
901
|
-
"name": "McpServer"
|
|
902
|
-
}
|
|
903
|
-
},
|
|
904
|
-
"computed": false
|
|
905
|
-
}
|
|
906
|
-
]
|
|
907
|
-
},
|
|
908
|
-
{
|
|
909
|
-
"type": "interface",
|
|
910
|
-
"name": "McpServer",
|
|
911
|
-
"body": [
|
|
912
|
-
{
|
|
913
|
-
"type": "propertySignature",
|
|
914
|
-
"key": {
|
|
915
|
-
"type": "identifier",
|
|
916
|
-
"name": "id"
|
|
906
|
+
"name": "scenario"
|
|
917
907
|
},
|
|
918
908
|
"annotation": {
|
|
919
909
|
"type": "keyword",
|
|
@@ -925,12 +915,13 @@
|
|
|
925
915
|
"type": "propertySignature",
|
|
926
916
|
"key": {
|
|
927
917
|
"type": "identifier",
|
|
928
|
-
"name": "
|
|
918
|
+
"name": "thumbUrl"
|
|
929
919
|
},
|
|
930
920
|
"annotation": {
|
|
931
921
|
"type": "keyword",
|
|
932
922
|
"value": "string"
|
|
933
923
|
},
|
|
924
|
+
"optional": true,
|
|
934
925
|
"computed": false
|
|
935
926
|
}
|
|
936
927
|
]
|
|
@@ -1049,26 +1040,26 @@
|
|
|
1049
1040
|
}
|
|
1050
1041
|
]
|
|
1051
1042
|
},
|
|
1052
|
-
"ai-portal.
|
|
1043
|
+
"ai-portal.mcp-tools": {
|
|
1053
1044
|
"properties": [
|
|
1054
1045
|
{
|
|
1055
|
-
"name": "
|
|
1046
|
+
"name": "list",
|
|
1056
1047
|
"annotation": {
|
|
1057
1048
|
"type": "array",
|
|
1058
1049
|
"elementType": {
|
|
1059
1050
|
"type": "reference",
|
|
1060
1051
|
"typeName": {
|
|
1061
1052
|
"type": "identifier",
|
|
1062
|
-
"name": "
|
|
1053
|
+
"name": "McpTool"
|
|
1063
1054
|
}
|
|
1064
1055
|
}
|
|
1065
1056
|
}
|
|
1066
1057
|
},
|
|
1067
1058
|
{
|
|
1068
|
-
"name": "
|
|
1059
|
+
"name": "withContainer",
|
|
1069
1060
|
"annotation": {
|
|
1070
1061
|
"type": "keyword",
|
|
1071
|
-
"value": "
|
|
1062
|
+
"value": "boolean"
|
|
1072
1063
|
}
|
|
1073
1064
|
}
|
|
1074
1065
|
],
|
|
@@ -1077,13 +1068,13 @@
|
|
|
1077
1068
|
"types": [
|
|
1078
1069
|
{
|
|
1079
1070
|
"type": "interface",
|
|
1080
|
-
"name": "
|
|
1071
|
+
"name": "McpTool",
|
|
1081
1072
|
"body": [
|
|
1082
1073
|
{
|
|
1083
1074
|
"type": "propertySignature",
|
|
1084
1075
|
"key": {
|
|
1085
1076
|
"type": "identifier",
|
|
1086
|
-
"name": "
|
|
1077
|
+
"name": "name"
|
|
1087
1078
|
},
|
|
1088
1079
|
"annotation": {
|
|
1089
1080
|
"type": "keyword",
|
|
@@ -1107,11 +1098,72 @@
|
|
|
1107
1098
|
"type": "propertySignature",
|
|
1108
1099
|
"key": {
|
|
1109
1100
|
"type": "identifier",
|
|
1110
|
-
"name": "
|
|
1101
|
+
"name": "description"
|
|
1111
1102
|
},
|
|
1112
1103
|
"annotation": {
|
|
1113
1104
|
"type": "keyword",
|
|
1114
|
-
"value": "
|
|
1105
|
+
"value": "string"
|
|
1106
|
+
},
|
|
1107
|
+
"computed": false
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"type": "propertySignature",
|
|
1111
|
+
"key": {
|
|
1112
|
+
"type": "identifier",
|
|
1113
|
+
"name": "icon"
|
|
1114
|
+
},
|
|
1115
|
+
"annotation": {
|
|
1116
|
+
"type": "reference",
|
|
1117
|
+
"typeName": {
|
|
1118
|
+
"type": "identifier",
|
|
1119
|
+
"name": "GeneralIconProps"
|
|
1120
|
+
}
|
|
1121
|
+
},
|
|
1122
|
+
"optional": true,
|
|
1123
|
+
"computed": false
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"type": "propertySignature",
|
|
1127
|
+
"key": {
|
|
1128
|
+
"type": "identifier",
|
|
1129
|
+
"name": "server"
|
|
1130
|
+
},
|
|
1131
|
+
"annotation": {
|
|
1132
|
+
"type": "reference",
|
|
1133
|
+
"typeName": {
|
|
1134
|
+
"type": "identifier",
|
|
1135
|
+
"name": "McpServer"
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1138
|
+
"computed": false
|
|
1139
|
+
}
|
|
1140
|
+
]
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"type": "interface",
|
|
1144
|
+
"name": "McpServer",
|
|
1145
|
+
"body": [
|
|
1146
|
+
{
|
|
1147
|
+
"type": "propertySignature",
|
|
1148
|
+
"key": {
|
|
1149
|
+
"type": "identifier",
|
|
1150
|
+
"name": "id"
|
|
1151
|
+
},
|
|
1152
|
+
"annotation": {
|
|
1153
|
+
"type": "keyword",
|
|
1154
|
+
"value": "string"
|
|
1155
|
+
},
|
|
1156
|
+
"computed": false
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
"type": "propertySignature",
|
|
1160
|
+
"key": {
|
|
1161
|
+
"type": "identifier",
|
|
1162
|
+
"name": "name"
|
|
1163
|
+
},
|
|
1164
|
+
"annotation": {
|
|
1165
|
+
"type": "keyword",
|
|
1166
|
+
"value": "string"
|
|
1115
1167
|
},
|
|
1116
1168
|
"computed": false
|
|
1117
1169
|
}
|
|
@@ -1216,59 +1268,73 @@
|
|
|
1216
1268
|
}
|
|
1217
1269
|
]
|
|
1218
1270
|
},
|
|
1219
|
-
"ai-portal.
|
|
1271
|
+
"ai-portal.project-summary": {
|
|
1220
1272
|
"properties": [
|
|
1221
1273
|
{
|
|
1222
|
-
"name": "
|
|
1274
|
+
"name": "chatList",
|
|
1223
1275
|
"annotation": {
|
|
1224
|
-
"type": "
|
|
1225
|
-
"
|
|
1276
|
+
"type": "array",
|
|
1277
|
+
"elementType": {
|
|
1278
|
+
"type": "reference",
|
|
1279
|
+
"typeName": {
|
|
1280
|
+
"type": "identifier",
|
|
1281
|
+
"name": "Chat"
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1226
1284
|
}
|
|
1227
1285
|
},
|
|
1228
1286
|
{
|
|
1229
|
-
"name": "
|
|
1287
|
+
"name": "chatUrlTemplate",
|
|
1230
1288
|
"annotation": {
|
|
1231
1289
|
"type": "keyword",
|
|
1232
1290
|
"value": "string"
|
|
1233
1291
|
}
|
|
1234
|
-
},
|
|
1235
|
-
{
|
|
1236
|
-
"name": "autoFocus",
|
|
1237
|
-
"annotation": {
|
|
1238
|
-
"type": "keyword",
|
|
1239
|
-
"value": "boolean"
|
|
1240
|
-
}
|
|
1241
1292
|
}
|
|
1242
1293
|
],
|
|
1243
|
-
"events": [
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
"detail": {
|
|
1247
|
-
"annotation": {
|
|
1248
|
-
"type": "keyword",
|
|
1249
|
-
"value": "string"
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
}
|
|
1253
|
-
],
|
|
1254
|
-
"methods": [
|
|
1294
|
+
"events": [],
|
|
1295
|
+
"methods": [],
|
|
1296
|
+
"types": [
|
|
1255
1297
|
{
|
|
1256
|
-
"
|
|
1257
|
-
"
|
|
1298
|
+
"type": "interface",
|
|
1299
|
+
"name": "Chat",
|
|
1300
|
+
"body": [
|
|
1258
1301
|
{
|
|
1259
|
-
"
|
|
1302
|
+
"type": "propertySignature",
|
|
1303
|
+
"key": {
|
|
1304
|
+
"type": "identifier",
|
|
1305
|
+
"name": "conversationId"
|
|
1306
|
+
},
|
|
1260
1307
|
"annotation": {
|
|
1261
1308
|
"type": "keyword",
|
|
1262
1309
|
"value": "string"
|
|
1263
|
-
}
|
|
1310
|
+
},
|
|
1311
|
+
"computed": false
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
"type": "propertySignature",
|
|
1315
|
+
"key": {
|
|
1316
|
+
"type": "identifier",
|
|
1317
|
+
"name": "title"
|
|
1318
|
+
},
|
|
1319
|
+
"annotation": {
|
|
1320
|
+
"type": "keyword",
|
|
1321
|
+
"value": "string"
|
|
1322
|
+
},
|
|
1323
|
+
"computed": false
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
"type": "propertySignature",
|
|
1327
|
+
"key": {
|
|
1328
|
+
"type": "identifier",
|
|
1329
|
+
"name": "startTime"
|
|
1330
|
+
},
|
|
1331
|
+
"annotation": {
|
|
1332
|
+
"type": "keyword",
|
|
1333
|
+
"value": "number"
|
|
1334
|
+
},
|
|
1335
|
+
"computed": false
|
|
1264
1336
|
}
|
|
1265
|
-
]
|
|
1266
|
-
"returns": {}
|
|
1267
|
-
},
|
|
1268
|
-
{
|
|
1269
|
-
"name": "getValue",
|
|
1270
|
-
"params": [],
|
|
1271
|
-
"returns": {}
|
|
1337
|
+
]
|
|
1272
1338
|
}
|
|
1273
1339
|
]
|
|
1274
1340
|
},
|
|
@@ -4005,6 +4071,18 @@
|
|
|
4005
4071
|
"value": "chat"
|
|
4006
4072
|
}
|
|
4007
4073
|
}
|
|
4074
|
+
},
|
|
4075
|
+
{
|
|
4076
|
+
"name": "detail.change",
|
|
4077
|
+
"detail": {
|
|
4078
|
+
"annotation": {
|
|
4079
|
+
"type": "reference",
|
|
4080
|
+
"typeName": {
|
|
4081
|
+
"type": "identifier",
|
|
4082
|
+
"name": "ConversationDetail"
|
|
4083
|
+
}
|
|
4084
|
+
}
|
|
4085
|
+
}
|
|
4008
4086
|
}
|
|
4009
4087
|
],
|
|
4010
4088
|
"methods": [
|
|
@@ -4949,6 +5027,25 @@
|
|
|
4949
5027
|
"computed": false
|
|
4950
5028
|
}
|
|
4951
5029
|
]
|
|
5030
|
+
},
|
|
5031
|
+
{
|
|
5032
|
+
"type": "interface",
|
|
5033
|
+
"name": "ConversationDetail",
|
|
5034
|
+
"body": [
|
|
5035
|
+
{
|
|
5036
|
+
"type": "propertySignature",
|
|
5037
|
+
"key": {
|
|
5038
|
+
"type": "identifier",
|
|
5039
|
+
"name": "projectId"
|
|
5040
|
+
},
|
|
5041
|
+
"annotation": {
|
|
5042
|
+
"type": "keyword",
|
|
5043
|
+
"value": "string"
|
|
5044
|
+
},
|
|
5045
|
+
"optional": true,
|
|
5046
|
+
"computed": false
|
|
5047
|
+
}
|
|
5048
|
+
]
|
|
4952
5049
|
}
|
|
4953
5050
|
]
|
|
4954
5051
|
},
|
|
@@ -5115,6 +5212,18 @@
|
|
|
5115
5212
|
"value": "canvas"
|
|
5116
5213
|
}
|
|
5117
5214
|
}
|
|
5215
|
+
},
|
|
5216
|
+
{
|
|
5217
|
+
"name": "detail.change",
|
|
5218
|
+
"detail": {
|
|
5219
|
+
"annotation": {
|
|
5220
|
+
"type": "reference",
|
|
5221
|
+
"typeName": {
|
|
5222
|
+
"type": "identifier",
|
|
5223
|
+
"name": "ConversationDetail"
|
|
5224
|
+
}
|
|
5225
|
+
}
|
|
5226
|
+
}
|
|
5118
5227
|
}
|
|
5119
5228
|
],
|
|
5120
5229
|
"methods": [
|
|
@@ -5225,6 +5334,25 @@
|
|
|
5225
5334
|
"computed": false
|
|
5226
5335
|
}
|
|
5227
5336
|
]
|
|
5337
|
+
},
|
|
5338
|
+
{
|
|
5339
|
+
"type": "interface",
|
|
5340
|
+
"name": "ConversationDetail",
|
|
5341
|
+
"body": [
|
|
5342
|
+
{
|
|
5343
|
+
"type": "propertySignature",
|
|
5344
|
+
"key": {
|
|
5345
|
+
"type": "identifier",
|
|
5346
|
+
"name": "projectId"
|
|
5347
|
+
},
|
|
5348
|
+
"annotation": {
|
|
5349
|
+
"type": "keyword",
|
|
5350
|
+
"value": "string"
|
|
5351
|
+
},
|
|
5352
|
+
"optional": true,
|
|
5353
|
+
"computed": false
|
|
5354
|
+
}
|
|
5355
|
+
]
|
|
5228
5356
|
}
|
|
5229
5357
|
]
|
|
5230
5358
|
}
|
|
@@ -6,6 +6,11 @@ export interface ChatBoxProps {
|
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
autoFocus?: boolean;
|
|
9
|
+
aiEmployees?: AIEmployee[];
|
|
10
|
+
}
|
|
11
|
+
export interface AIEmployee {
|
|
12
|
+
employeeId: string;
|
|
13
|
+
name: string;
|
|
9
14
|
}
|
|
10
15
|
export interface ChatBoxRef {
|
|
11
16
|
setValue: (value: string) => void;
|
|
@@ -20,12 +25,14 @@ export declare class ChatBox extends ReactNextElement implements ChatBoxProps {
|
|
|
20
25
|
accessor disabled: boolean | undefined;
|
|
21
26
|
accessor placeholder: string | undefined;
|
|
22
27
|
accessor autoFocus: boolean | undefined;
|
|
28
|
+
accessor aiEmployees: AIEmployee[] | undefined;
|
|
23
29
|
setValue(value: string): void;
|
|
24
30
|
getValue(): string | undefined;
|
|
25
31
|
render(): React.JSX.Element;
|
|
26
32
|
}
|
|
27
|
-
|
|
33
|
+
interface ChatBoxComponentProps extends ChatBoxProps {
|
|
28
34
|
onSubmit: (value: string) => void;
|
|
35
|
+
onEmployeeMention: (employee: AIEmployee | null) => void;
|
|
29
36
|
ref?: React.Ref<ChatBoxRef>;
|
|
30
37
|
}
|
|
31
|
-
export
|
|
38
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { FeedbackDetail } from "../cruise-canvas/interfaces.js";
|
|
3
|
-
import type { ChatStreamProps, ChatStreamRef } from ".";
|
|
3
|
+
import type { ChatStreamProps, ChatStreamRef, ConversationDetail } from ".";
|
|
4
4
|
interface ChatStreamComponentProps extends ChatStreamProps {
|
|
5
5
|
conversationId: string;
|
|
6
6
|
onShare: () => void;
|
|
@@ -8,6 +8,7 @@ interface ChatStreamComponentProps extends ChatStreamProps {
|
|
|
8
8
|
onSubmitFeedback: (detail: FeedbackDetail) => void;
|
|
9
9
|
onSwitchToCanvas: () => void;
|
|
10
10
|
onFeedbackOnView: (viewId: string) => void;
|
|
11
|
+
onDetailChange: (detail: ConversationDetail) => void;
|
|
11
12
|
}
|
|
12
|
-
export declare function ChatStreamComponent({ conversationId, initialRequest, replay, replayDelay, supports, showFeedback: propShowFeedback, showFeedbackAfterFailed, showFeedbackOnView, showUiSwitch, previewUrlTemplate, onShare, onTerminate, onSubmitFeedback, onSwitchToCanvas, onFeedbackOnView, }: ChatStreamComponentProps, ref: React.Ref<ChatStreamRef>): React.JSX.Element;
|
|
13
|
+
export declare function ChatStreamComponent({ conversationId, initialRequest, replay, replayDelay, supports, showFeedback: propShowFeedback, showFeedbackAfterFailed, showFeedbackOnView, showUiSwitch, previewUrlTemplate, onShare, onTerminate, onSubmitFeedback, onSwitchToCanvas, onFeedbackOnView, onDetailChange, }: ChatStreamComponentProps, ref: React.Ref<ChatStreamRef>): React.JSX.Element;
|
|
13
14
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { FeedbackDetail } from "../cruise-canvas/interfaces.js";
|
|
3
|
-
import type { ChatStreamProps, ChatStreamRef } from ".";
|
|
3
|
+
import type { ChatStreamProps, ChatStreamRef, ConversationDetail } from ".";
|
|
4
4
|
interface ChatStreamComponentProps extends ChatStreamProps {
|
|
5
5
|
onShare: () => void;
|
|
6
6
|
onTerminate: () => void;
|
|
7
7
|
onSubmitFeedback: (detail: FeedbackDetail) => void;
|
|
8
8
|
onSwitchToCanvas: () => void;
|
|
9
9
|
onFeedbackOnView: (viewId: string) => void;
|
|
10
|
+
onDetailChange: (detail: ConversationDetail) => void;
|
|
10
11
|
}
|
|
11
12
|
export declare function LegacyChatStreamComponent({ taskId, replay, replayDelay, supports, showFeedback: propShowFeedback, showFeedbackAfterFailed, showFeedbackOnView, showUiSwitch, onShare, onTerminate, onSubmitFeedback, onSwitchToCanvas, onFeedbackOnView, }: ChatStreamComponentProps, ref: React.Ref<ChatStreamRef>): React.JSX.Element;
|
|
12
13
|
export {};
|