@next-bricks/ai-portal 0.44.0 → 0.44.1
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 +23 -23
- package/dist/chunks/{1306.b74e72b7.js → 1306.56ebf388.js} +3 -3
- package/dist/chunks/{1306.b74e72b7.js.map → 1306.56ebf388.js.map} +1 -1
- package/dist/chunks/goal-card-list.2ab94b5f.js +3 -0
- package/dist/chunks/{goal-card-list.fcce68bd.js.map → goal-card-list.2ab94b5f.js.map} +1 -1
- package/dist/chunks/{main.c4e180ef.js → main.3ee2ddf3.js} +2 -2
- package/dist/chunks/{main.c4e180ef.js.map → main.3ee2ddf3.js.map} +1 -1
- package/dist/examples.json +15 -15
- package/dist/{index.340c5e1d.js → index.b8ca0997.js} +2 -2
- package/dist/{index.340c5e1d.js.map → index.b8ca0997.js.map} +1 -1
- package/dist/manifest.json +139 -139
- package/dist/types.json +252 -252
- package/package.json +2 -2
- package/dist/chunks/goal-card-list.fcce68bd.js +0 -3
- /package/dist/chunks/{1306.b74e72b7.js.LICENSE.txt → 1306.56ebf388.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{goal-card-list.fcce68bd.js.LICENSE.txt → goal-card-list.2ab94b5f.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -103,6 +103,11 @@
|
|
|
103
103
|
"events": [],
|
|
104
104
|
"methods": []
|
|
105
105
|
},
|
|
106
|
+
"ai-portal.home-container": {
|
|
107
|
+
"properties": [],
|
|
108
|
+
"events": [],
|
|
109
|
+
"methods": []
|
|
110
|
+
},
|
|
106
111
|
"ai-portal.icon-button": {
|
|
107
112
|
"properties": [
|
|
108
113
|
{
|
|
@@ -174,11 +179,6 @@
|
|
|
174
179
|
}
|
|
175
180
|
]
|
|
176
181
|
},
|
|
177
|
-
"ai-portal.home-container": {
|
|
178
|
-
"properties": [],
|
|
179
|
-
"events": [],
|
|
180
|
-
"methods": []
|
|
181
|
-
},
|
|
182
182
|
"ai-portal.entity-sdk-get": {
|
|
183
183
|
"type": "provider",
|
|
184
184
|
"params": [
|
|
@@ -711,6 +711,128 @@
|
|
|
711
711
|
}
|
|
712
712
|
]
|
|
713
713
|
},
|
|
714
|
+
"ai-portal.chat-box": {
|
|
715
|
+
"properties": [
|
|
716
|
+
{
|
|
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",
|
|
739
|
+
"annotation": {
|
|
740
|
+
"type": "array",
|
|
741
|
+
"elementType": {
|
|
742
|
+
"type": "reference",
|
|
743
|
+
"typeName": {
|
|
744
|
+
"type": "identifier",
|
|
745
|
+
"name": "AIEmployee"
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
],
|
|
751
|
+
"events": [
|
|
752
|
+
{
|
|
753
|
+
"name": "message.submit",
|
|
754
|
+
"detail": {
|
|
755
|
+
"annotation": {
|
|
756
|
+
"type": "keyword",
|
|
757
|
+
"value": "string"
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
},
|
|
761
|
+
{
|
|
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
|
+
}
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
],
|
|
783
|
+
"methods": [
|
|
784
|
+
{
|
|
785
|
+
"name": "setValue",
|
|
786
|
+
"params": [
|
|
787
|
+
{
|
|
788
|
+
"name": "value",
|
|
789
|
+
"annotation": {
|
|
790
|
+
"type": "keyword",
|
|
791
|
+
"value": "string"
|
|
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": [
|
|
808
|
+
{
|
|
809
|
+
"type": "propertySignature",
|
|
810
|
+
"key": {
|
|
811
|
+
"type": "identifier",
|
|
812
|
+
"name": "employeeId"
|
|
813
|
+
},
|
|
814
|
+
"annotation": {
|
|
815
|
+
"type": "keyword",
|
|
816
|
+
"value": "string"
|
|
817
|
+
},
|
|
818
|
+
"computed": false
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"type": "propertySignature",
|
|
822
|
+
"key": {
|
|
823
|
+
"type": "identifier",
|
|
824
|
+
"name": "name"
|
|
825
|
+
},
|
|
826
|
+
"annotation": {
|
|
827
|
+
"type": "keyword",
|
|
828
|
+
"value": "string"
|
|
829
|
+
},
|
|
830
|
+
"computed": false
|
|
831
|
+
}
|
|
832
|
+
]
|
|
833
|
+
}
|
|
834
|
+
]
|
|
835
|
+
},
|
|
714
836
|
"ai-portal.show-cases": {
|
|
715
837
|
"properties": [
|
|
716
838
|
{
|
|
@@ -930,118 +1052,6 @@
|
|
|
930
1052
|
}
|
|
931
1053
|
]
|
|
932
1054
|
},
|
|
933
|
-
"ai-portal.ai-employees": {
|
|
934
|
-
"properties": [
|
|
935
|
-
{
|
|
936
|
-
"name": "list",
|
|
937
|
-
"annotation": {
|
|
938
|
-
"type": "array",
|
|
939
|
-
"elementType": {
|
|
940
|
-
"type": "reference",
|
|
941
|
-
"typeName": {
|
|
942
|
-
"type": "identifier",
|
|
943
|
-
"name": "Employee"
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
},
|
|
948
|
-
{
|
|
949
|
-
"name": "industries",
|
|
950
|
-
"annotation": {
|
|
951
|
-
"type": "array",
|
|
952
|
-
"elementType": {
|
|
953
|
-
"type": "keyword",
|
|
954
|
-
"value": "string"
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
},
|
|
958
|
-
{
|
|
959
|
-
"name": "urlTemplate",
|
|
960
|
-
"annotation": {
|
|
961
|
-
"type": "keyword",
|
|
962
|
-
"value": "string"
|
|
963
|
-
}
|
|
964
|
-
},
|
|
965
|
-
{
|
|
966
|
-
"name": "withContainer",
|
|
967
|
-
"annotation": {
|
|
968
|
-
"type": "keyword",
|
|
969
|
-
"value": "boolean"
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
],
|
|
973
|
-
"events": [],
|
|
974
|
-
"methods": [],
|
|
975
|
-
"types": [
|
|
976
|
-
{
|
|
977
|
-
"type": "interface",
|
|
978
|
-
"name": "Employee",
|
|
979
|
-
"body": [
|
|
980
|
-
{
|
|
981
|
-
"type": "propertySignature",
|
|
982
|
-
"key": {
|
|
983
|
-
"type": "identifier",
|
|
984
|
-
"name": "name"
|
|
985
|
-
},
|
|
986
|
-
"annotation": {
|
|
987
|
-
"type": "keyword",
|
|
988
|
-
"value": "string"
|
|
989
|
-
},
|
|
990
|
-
"computed": false
|
|
991
|
-
},
|
|
992
|
-
{
|
|
993
|
-
"type": "propertySignature",
|
|
994
|
-
"key": {
|
|
995
|
-
"type": "identifier",
|
|
996
|
-
"name": "industry"
|
|
997
|
-
},
|
|
998
|
-
"annotation": {
|
|
999
|
-
"type": "keyword",
|
|
1000
|
-
"value": "string"
|
|
1001
|
-
},
|
|
1002
|
-
"computed": false
|
|
1003
|
-
},
|
|
1004
|
-
{
|
|
1005
|
-
"type": "propertySignature",
|
|
1006
|
-
"key": {
|
|
1007
|
-
"type": "identifier",
|
|
1008
|
-
"name": "role"
|
|
1009
|
-
},
|
|
1010
|
-
"annotation": {
|
|
1011
|
-
"type": "keyword",
|
|
1012
|
-
"value": "string"
|
|
1013
|
-
},
|
|
1014
|
-
"computed": false
|
|
1015
|
-
},
|
|
1016
|
-
{
|
|
1017
|
-
"type": "propertySignature",
|
|
1018
|
-
"key": {
|
|
1019
|
-
"type": "identifier",
|
|
1020
|
-
"name": "description"
|
|
1021
|
-
},
|
|
1022
|
-
"annotation": {
|
|
1023
|
-
"type": "keyword",
|
|
1024
|
-
"value": "string"
|
|
1025
|
-
},
|
|
1026
|
-
"computed": false
|
|
1027
|
-
},
|
|
1028
|
-
{
|
|
1029
|
-
"type": "propertySignature",
|
|
1030
|
-
"key": {
|
|
1031
|
-
"type": "identifier",
|
|
1032
|
-
"name": "avatar"
|
|
1033
|
-
},
|
|
1034
|
-
"annotation": {
|
|
1035
|
-
"type": "keyword",
|
|
1036
|
-
"value": "string"
|
|
1037
|
-
},
|
|
1038
|
-
"optional": true,
|
|
1039
|
-
"computed": false
|
|
1040
|
-
}
|
|
1041
|
-
]
|
|
1042
|
-
}
|
|
1043
|
-
]
|
|
1044
|
-
},
|
|
1045
1055
|
"ai-portal.ai-agents": {
|
|
1046
1056
|
"properties": [
|
|
1047
1057
|
{
|
|
@@ -1139,105 +1149,58 @@
|
|
|
1139
1149
|
}
|
|
1140
1150
|
]
|
|
1141
1151
|
},
|
|
1142
|
-
"ai-portal.
|
|
1152
|
+
"ai-portal.ai-employees": {
|
|
1143
1153
|
"properties": [
|
|
1144
1154
|
{
|
|
1145
|
-
"name": "
|
|
1146
|
-
"annotation": {
|
|
1147
|
-
"type": "keyword",
|
|
1148
|
-
"value": "boolean"
|
|
1149
|
-
}
|
|
1150
|
-
},
|
|
1151
|
-
{
|
|
1152
|
-
"name": "placeholder",
|
|
1153
|
-
"annotation": {
|
|
1154
|
-
"type": "keyword",
|
|
1155
|
-
"value": "string"
|
|
1156
|
-
}
|
|
1157
|
-
},
|
|
1158
|
-
{
|
|
1159
|
-
"name": "autoFocus",
|
|
1160
|
-
"annotation": {
|
|
1161
|
-
"type": "keyword",
|
|
1162
|
-
"value": "boolean"
|
|
1163
|
-
}
|
|
1164
|
-
},
|
|
1165
|
-
{
|
|
1166
|
-
"name": "aiEmployees",
|
|
1155
|
+
"name": "list",
|
|
1167
1156
|
"annotation": {
|
|
1168
1157
|
"type": "array",
|
|
1169
1158
|
"elementType": {
|
|
1170
1159
|
"type": "reference",
|
|
1171
1160
|
"typeName": {
|
|
1172
1161
|
"type": "identifier",
|
|
1173
|
-
"name": "
|
|
1162
|
+
"name": "Employee"
|
|
1174
1163
|
}
|
|
1175
1164
|
}
|
|
1176
1165
|
}
|
|
1177
|
-
}
|
|
1178
|
-
],
|
|
1179
|
-
"events": [
|
|
1166
|
+
},
|
|
1180
1167
|
{
|
|
1181
|
-
"name": "
|
|
1182
|
-
"
|
|
1183
|
-
"
|
|
1168
|
+
"name": "industries",
|
|
1169
|
+
"annotation": {
|
|
1170
|
+
"type": "array",
|
|
1171
|
+
"elementType": {
|
|
1184
1172
|
"type": "keyword",
|
|
1185
1173
|
"value": "string"
|
|
1186
1174
|
}
|
|
1187
1175
|
}
|
|
1188
1176
|
},
|
|
1189
1177
|
{
|
|
1190
|
-
"name": "
|
|
1191
|
-
"
|
|
1192
|
-
"
|
|
1193
|
-
|
|
1194
|
-
"types": [
|
|
1195
|
-
{
|
|
1196
|
-
"type": "reference",
|
|
1197
|
-
"typeName": {
|
|
1198
|
-
"type": "identifier",
|
|
1199
|
-
"name": "AIEmployee"
|
|
1200
|
-
}
|
|
1201
|
-
},
|
|
1202
|
-
{
|
|
1203
|
-
"type": "keyword",
|
|
1204
|
-
"value": "null"
|
|
1205
|
-
}
|
|
1206
|
-
]
|
|
1207
|
-
}
|
|
1178
|
+
"name": "urlTemplate",
|
|
1179
|
+
"annotation": {
|
|
1180
|
+
"type": "keyword",
|
|
1181
|
+
"value": "string"
|
|
1208
1182
|
}
|
|
1209
|
-
}
|
|
1210
|
-
],
|
|
1211
|
-
"methods": [
|
|
1212
|
-
{
|
|
1213
|
-
"name": "setValue",
|
|
1214
|
-
"params": [
|
|
1215
|
-
{
|
|
1216
|
-
"name": "value",
|
|
1217
|
-
"annotation": {
|
|
1218
|
-
"type": "keyword",
|
|
1219
|
-
"value": "string"
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
],
|
|
1223
|
-
"returns": {}
|
|
1224
1183
|
},
|
|
1225
1184
|
{
|
|
1226
|
-
"name": "
|
|
1227
|
-
"
|
|
1228
|
-
|
|
1185
|
+
"name": "withContainer",
|
|
1186
|
+
"annotation": {
|
|
1187
|
+
"type": "keyword",
|
|
1188
|
+
"value": "boolean"
|
|
1189
|
+
}
|
|
1229
1190
|
}
|
|
1230
1191
|
],
|
|
1192
|
+
"events": [],
|
|
1193
|
+
"methods": [],
|
|
1231
1194
|
"types": [
|
|
1232
1195
|
{
|
|
1233
1196
|
"type": "interface",
|
|
1234
|
-
"name": "
|
|
1197
|
+
"name": "Employee",
|
|
1235
1198
|
"body": [
|
|
1236
1199
|
{
|
|
1237
1200
|
"type": "propertySignature",
|
|
1238
1201
|
"key": {
|
|
1239
1202
|
"type": "identifier",
|
|
1240
|
-
"name": "
|
|
1203
|
+
"name": "name"
|
|
1241
1204
|
},
|
|
1242
1205
|
"annotation": {
|
|
1243
1206
|
"type": "keyword",
|
|
@@ -1249,53 +1212,19 @@
|
|
|
1249
1212
|
"type": "propertySignature",
|
|
1250
1213
|
"key": {
|
|
1251
1214
|
"type": "identifier",
|
|
1252
|
-
"name": "
|
|
1215
|
+
"name": "industry"
|
|
1253
1216
|
},
|
|
1254
1217
|
"annotation": {
|
|
1255
1218
|
"type": "keyword",
|
|
1256
1219
|
"value": "string"
|
|
1257
1220
|
},
|
|
1258
1221
|
"computed": false
|
|
1259
|
-
}
|
|
1260
|
-
]
|
|
1261
|
-
}
|
|
1262
|
-
]
|
|
1263
|
-
},
|
|
1264
|
-
"ai-portal.project-summary": {
|
|
1265
|
-
"properties": [
|
|
1266
|
-
{
|
|
1267
|
-
"name": "chatList",
|
|
1268
|
-
"annotation": {
|
|
1269
|
-
"type": "array",
|
|
1270
|
-
"elementType": {
|
|
1271
|
-
"type": "reference",
|
|
1272
|
-
"typeName": {
|
|
1273
|
-
"type": "identifier",
|
|
1274
|
-
"name": "Chat"
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
}
|
|
1278
|
-
},
|
|
1279
|
-
{
|
|
1280
|
-
"name": "chatUrlTemplate",
|
|
1281
|
-
"annotation": {
|
|
1282
|
-
"type": "keyword",
|
|
1283
|
-
"value": "string"
|
|
1284
|
-
}
|
|
1285
|
-
}
|
|
1286
|
-
],
|
|
1287
|
-
"events": [],
|
|
1288
|
-
"methods": [],
|
|
1289
|
-
"types": [
|
|
1290
|
-
{
|
|
1291
|
-
"type": "interface",
|
|
1292
|
-
"name": "Chat",
|
|
1293
|
-
"body": [
|
|
1222
|
+
},
|
|
1294
1223
|
{
|
|
1295
1224
|
"type": "propertySignature",
|
|
1296
1225
|
"key": {
|
|
1297
1226
|
"type": "identifier",
|
|
1298
|
-
"name": "
|
|
1227
|
+
"name": "role"
|
|
1299
1228
|
},
|
|
1300
1229
|
"annotation": {
|
|
1301
1230
|
"type": "keyword",
|
|
@@ -1307,7 +1236,7 @@
|
|
|
1307
1236
|
"type": "propertySignature",
|
|
1308
1237
|
"key": {
|
|
1309
1238
|
"type": "identifier",
|
|
1310
|
-
"name": "
|
|
1239
|
+
"name": "description"
|
|
1311
1240
|
},
|
|
1312
1241
|
"annotation": {
|
|
1313
1242
|
"type": "keyword",
|
|
@@ -1319,12 +1248,13 @@
|
|
|
1319
1248
|
"type": "propertySignature",
|
|
1320
1249
|
"key": {
|
|
1321
1250
|
"type": "identifier",
|
|
1322
|
-
"name": "
|
|
1251
|
+
"name": "avatar"
|
|
1323
1252
|
},
|
|
1324
1253
|
"annotation": {
|
|
1325
1254
|
"type": "keyword",
|
|
1326
|
-
"value": "
|
|
1255
|
+
"value": "string"
|
|
1327
1256
|
},
|
|
1257
|
+
"optional": true,
|
|
1328
1258
|
"computed": false
|
|
1329
1259
|
}
|
|
1330
1260
|
]
|
|
@@ -1500,6 +1430,76 @@
|
|
|
1500
1430
|
}
|
|
1501
1431
|
]
|
|
1502
1432
|
},
|
|
1433
|
+
"ai-portal.project-summary": {
|
|
1434
|
+
"properties": [
|
|
1435
|
+
{
|
|
1436
|
+
"name": "chatList",
|
|
1437
|
+
"annotation": {
|
|
1438
|
+
"type": "array",
|
|
1439
|
+
"elementType": {
|
|
1440
|
+
"type": "reference",
|
|
1441
|
+
"typeName": {
|
|
1442
|
+
"type": "identifier",
|
|
1443
|
+
"name": "Chat"
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"name": "chatUrlTemplate",
|
|
1450
|
+
"annotation": {
|
|
1451
|
+
"type": "keyword",
|
|
1452
|
+
"value": "string"
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
],
|
|
1456
|
+
"events": [],
|
|
1457
|
+
"methods": [],
|
|
1458
|
+
"types": [
|
|
1459
|
+
{
|
|
1460
|
+
"type": "interface",
|
|
1461
|
+
"name": "Chat",
|
|
1462
|
+
"body": [
|
|
1463
|
+
{
|
|
1464
|
+
"type": "propertySignature",
|
|
1465
|
+
"key": {
|
|
1466
|
+
"type": "identifier",
|
|
1467
|
+
"name": "conversationId"
|
|
1468
|
+
},
|
|
1469
|
+
"annotation": {
|
|
1470
|
+
"type": "keyword",
|
|
1471
|
+
"value": "string"
|
|
1472
|
+
},
|
|
1473
|
+
"computed": false
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
"type": "propertySignature",
|
|
1477
|
+
"key": {
|
|
1478
|
+
"type": "identifier",
|
|
1479
|
+
"name": "title"
|
|
1480
|
+
},
|
|
1481
|
+
"annotation": {
|
|
1482
|
+
"type": "keyword",
|
|
1483
|
+
"value": "string"
|
|
1484
|
+
},
|
|
1485
|
+
"computed": false
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
"type": "propertySignature",
|
|
1489
|
+
"key": {
|
|
1490
|
+
"type": "identifier",
|
|
1491
|
+
"name": "startTime"
|
|
1492
|
+
},
|
|
1493
|
+
"annotation": {
|
|
1494
|
+
"type": "keyword",
|
|
1495
|
+
"value": "number"
|
|
1496
|
+
},
|
|
1497
|
+
"computed": false
|
|
1498
|
+
}
|
|
1499
|
+
]
|
|
1500
|
+
}
|
|
1501
|
+
]
|
|
1502
|
+
},
|
|
1503
1503
|
"ai-portal.preview-container": {
|
|
1504
1504
|
"properties": [
|
|
1505
1505
|
{
|
|
@@ -1922,6 +1922,33 @@
|
|
|
1922
1922
|
],
|
|
1923
1923
|
"methods": []
|
|
1924
1924
|
},
|
|
1925
|
+
"ai-portal.show-case": {
|
|
1926
|
+
"properties": [
|
|
1927
|
+
{
|
|
1928
|
+
"name": "caseTitle",
|
|
1929
|
+
"annotation": {
|
|
1930
|
+
"type": "keyword",
|
|
1931
|
+
"value": "string"
|
|
1932
|
+
}
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
"name": "summary",
|
|
1936
|
+
"annotation": {
|
|
1937
|
+
"type": "keyword",
|
|
1938
|
+
"value": "string"
|
|
1939
|
+
}
|
|
1940
|
+
},
|
|
1941
|
+
{
|
|
1942
|
+
"name": "url",
|
|
1943
|
+
"annotation": {
|
|
1944
|
+
"type": "keyword",
|
|
1945
|
+
"value": "string"
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
],
|
|
1949
|
+
"events": [],
|
|
1950
|
+
"methods": []
|
|
1951
|
+
},
|
|
1925
1952
|
"ai-portal.activity-timeline": {
|
|
1926
1953
|
"properties": [
|
|
1927
1954
|
{
|
|
@@ -2896,33 +2923,6 @@
|
|
|
2896
2923
|
}
|
|
2897
2924
|
]
|
|
2898
2925
|
},
|
|
2899
|
-
"ai-portal.show-case": {
|
|
2900
|
-
"properties": [
|
|
2901
|
-
{
|
|
2902
|
-
"name": "caseTitle",
|
|
2903
|
-
"annotation": {
|
|
2904
|
-
"type": "keyword",
|
|
2905
|
-
"value": "string"
|
|
2906
|
-
}
|
|
2907
|
-
},
|
|
2908
|
-
{
|
|
2909
|
-
"name": "summary",
|
|
2910
|
-
"annotation": {
|
|
2911
|
-
"type": "keyword",
|
|
2912
|
-
"value": "string"
|
|
2913
|
-
}
|
|
2914
|
-
},
|
|
2915
|
-
{
|
|
2916
|
-
"name": "url",
|
|
2917
|
-
"annotation": {
|
|
2918
|
-
"type": "keyword",
|
|
2919
|
-
"value": "string"
|
|
2920
|
-
}
|
|
2921
|
-
}
|
|
2922
|
-
],
|
|
2923
|
-
"events": [],
|
|
2924
|
-
"methods": []
|
|
2925
|
-
},
|
|
2926
2926
|
"ai-portal.elevo-sidebar": {
|
|
2927
2927
|
"properties": [
|
|
2928
2928
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/ai-portal",
|
|
3
|
-
"version": "0.44.
|
|
3
|
+
"version": "0.44.1",
|
|
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": "
|
|
50
|
+
"gitHead": "3c07969e6212213385dd56cb52f938c180233936"
|
|
51
51
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see goal-card-list.fcce68bd.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[2052,4322],{2373:(t,e,n)=>{"use strict";let i;function r(t){return t?function(){if("boolean"!=typeof i){const t=document.createElement("div");t.setAttribute("contenteditable","PLAINTEXT-ONLY"),i="plaintext-only"===t.contentEditable}return i}()?"plaintext-only":"true":"false"}n.d(e,{U:()=>r})},5536:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(12559);function r(t,e,n){return n((0,i.A)(t,e))}},10335:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(36758),r=n.n(i),o=n(40935),a=n.n(o)()(r());a.push([t.id,":host{display:inline-block}:host([hidden]){display:none}.goal-container{display:flex;flex-direction:column;gap:3px}.loading{display:flex;align-items:center;justify-content:center;padding:24px;font-size:20px;color:#595959}",""]);const s=a.toString()},11369:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(17545);function r(t){var e=function(t){if("object"!=(0,i.A)(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=(0,i.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,i.A)(e)?e:e+""}},12559:(t,e,n)=>{"use strict";function i(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.d(e,{A:()=>i})},17545:(t,e,n)=>{"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}n.d(e,{A:()=>i})},26902:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(17545);function r(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,i.A)(t):"null"));return t}},30404:(t,e,n)=>{"use strict";n.r(e),n.d(e,{GoalCardList:()=>X});var i,r=n(74635),o=n(70918),a=n(26902),s=n(5536),c=n(86121),l=n(70829),u=n(62740),p=n(18769),d=n.n(p),m=n(7921),g=n(11280),f=(n(65168),n(87117)),h=n(46134),v=n(46342),y=n(10335),b=n(71513);let A,S,T,w,k,E,x,C,N,_,U,I,W,j,M,P,L,O,R,K,z,D,B;(0,f.initializeI18n)(h.NS,h.I);const{defineElement:G,property:H,event:F}=(0,m.createDecorators)(),V=(0,g.wrapBrick)("eo-icon");let X;var q=new WeakMap,Y=new WeakMap,$=new WeakMap,J=new WeakMap,Q=new WeakSet,Z=new WeakMap,tt=new WeakMap,et=new WeakMap,nt=new WeakMap,it=new WeakMap,rt=new WeakMap,ot=new WeakMap;class at extends g.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Q),(0,o.A)(this,q,S(this)),(0,o.A)(this,Y,(T(this),w(this))),(0,o.A)(this,$,(k(this),E(this))),(0,o.A)(this,J,(x(this),C(this))),(0,o.A)(this,Z,(U(this),t=>{(0,s.A)(Q,this,N).emit(t)})),(0,o.A)(this,tt,I(this)),(0,o.A)(this,et,(M(this),t=>{(0,s.A)(Q,this,W).emit(t)})),(0,o.A)(this,nt,P(this)),(0,o.A)(this,it,(R(this),t=>{(0,s.A)(Q,this,L).emit(t)})),(0,o.A)(this,rt,K(this)),(0,o.A)(this,ot,(B(this),t=>{(0,s.A)(Q,this,z).emit(t)}))}get goalList(){return(0,l.A)(q,this)}set goalList(t){(0,c.A)(q,this,t)}get cardStyle(){return(0,l.A)(Y,this)}set cardStyle(t){(0,c.A)(Y,this,t)}get activeKey(){return(0,l.A)($,this)}set activeKey(t){(0,c.A)($,this,t)}render(){return d().createElement(st,{goalList:this.goalList,cardStyle:this.cardStyle,onTitleChange:(0,l.A)(it,this),onStatusChange:(0,l.A)(et,this),onItemClick:(0,l.A)(Z,this),onNewChat:(0,l.A)(ot,this),activeKey:this.activeKey})}}function st(t){let{goalList:e,cardStyle:n,onTitleChange:i,onStatusChange:r,onItemClick:o,onNewChat:a,activeKey:s}=t;const[c,l]=(0,p.useState)(e);(0,p.useEffect)((()=>{l(e)}),[e]);const u=(t,e,n,i)=>{const r={...t,[e]:n};l(null==c?void 0:c.map((t=>t.instanceId===r.instanceId?r:t))),null==i||i(r)};return c?d().createElement("div",{className:"goal-container"},null==c?void 0:c.map((t=>d().createElement(b.B,{key:t.instanceId,isActive:s===t.instanceId,goalItem:t,cardStyle:n,onTitleChange:e=>((t,e)=>{u(e,"title",t,i)})(e,t),onStatusChange:e=>((t,e)=>{u(e,"state",t,r)})(e,t),onNewChat:()=>null==a?void 0:a(t),onClick:()=>null==o?void 0:o(t)})))):d().createElement("div",{className:"loading"},d().createElement(V,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}i=at,({e:[S,T,w,k,E,x,C,N,_,U,I,W,j,M,P,L,O,R,K,z,D,B],c:[X,A]}=(0,u.A)(i,[G("ai-portal.goal-card-list",{styleTexts:[y.A,v.A]})],[[H({attribute:!1}),1,"goalList"],[H({attribute:!1}),1,"cardStyle"],[H(),1,"activeKey"],[F({type:"item.click"}),1,"itemClickEvent",t=>(0,l.A)(J,t),(t,e)=>(0,c.A)(J,t,e)],[F({type:"item.status.change"}),1,"itemStatusChangeEvent",t=>(0,l.A)(tt,t),(t,e)=>(0,c.A)(tt,t,e)],[F({type:"item.title.change"}),1,"itemTitleChangeEvent",t=>(0,l.A)(nt,t),(t,e)=>(0,c.A)(nt,t,e)],[F({type:"item.new.chat"}),1,"itemNewChatEvent",t=>(0,l.A)(rt,t),(t,e)=>(0,c.A)(rt,t,e)]],0,(t=>ot.has((0,a.A)(t))),g.ReactNextElement)),A()},36758:t=>{"use strict";t.exports=function(t){return t[1]}},40935:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(i)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);i&&a[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},46134:(t,e,n)=>{"use strict";n.d(e,{I:()=>a,K:()=>r,NS:()=>o,t:()=>s});var i=n(87117);let r=function(t){return t.UN_START_STATUS="UN_START_STATUS",t.RUNNING_STATUS="RUNNING_STATUS",t.COMPLETED_STATUS="COMPLETED_STATUS",t.NEW_CHAT="NEW_CHAT",t}({});const o="bricks/ai-portal/goal-card-list",a={en:{UN_START_STATUS:"Not Start",RUNNING_STATUS:"Running",COMPLETED_STATUS:"Completed",NEW_CHAT:"New chat"},zh:{UN_START_STATUS:"未开始",RUNNING_STATUS:"运行中",COMPLETED_STATUS:"已完成",NEW_CHAT:"新对话"}},s=i.i18n.getFixedT(null,o)},46342:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(36758),r=n.n(i),o=n(40935),a=n.n(o)()(r());a.push([t.id,".goal-item{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;padding:14px 24px;background-color:rgba(255,255,255,0.6);border-radius:8px;-webkit-user-select:none;user-select:none;border:1px solid transparent}.goal-item:hover{background-color:rgba(0,0,0,0.05)}.goal-item:hover .end .operation{display:block}.goal-item:hover .end .info{display:none}.goal-item.completed .serial-number,.goal-item.completed .title{color:#bfbfbf}.goal-item.active{background:rgba(37,64,255,0.1);border:1px solid #2540ff}.goal-item > *{-webkit-user-select:auto;user-select:auto}.goal-item .start,.goal-item .end{display:flex;align-items:center}.goal-item .start{flex:1;min-width:0;column-gap:16px;min-width:0}.goal-item .end{flex-shrink:0;column-gap:30px}.goal-item .end .operation{display:none}.goal-item .end .operation .new-chat::part(button){height:28px;font-size:13px;padding:5px 10px}.goal-item .end .info{display:inline-flex;align-items:center;column-gap:16px}.goal-item .serial-number{font-weight:400;color:var(--palette-gray-7)}.goal-item .title{font-weight:500;padding:2px 4px;color:var(--palette-gray-10);border:1px solid transparent;border-radius:8px;cursor:pointer;min-width:0}.goal-item .title:hover{background-color:rgba(255,255,255,0.6);border:1px solid var(--palette-gray-5);cursor:text}.goal-item .title:focus{outline:none;background-color:rgba(255,255,255,0.6);border:1px solid var(--elevo-color-brand)}.goal-item .icon{border-radius:8px;padding:4px;margin-top:4px}.goal-item .icon:hover{background-color:rgba(0,0,0,0.04)}.goal-item .message{color:var(--palette-gray-7);display:inline-flex;align-items:center;column-gap:6px}.goal-item .message .count{font-weight:500;color:var(--palette-gray-10)}.goal-item:not(.editing) .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",""]);const s=a.toString()},53373:(t,e)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=a(t,o(n)))}return t}function o(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return r.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)i.call(t,n)&&t[n]&&(e=a(e,n));return e}function a(t,e){return e?t?t+" "+e:t+e:t}t.exports?(r.default=r,t.exports=r):void 0===(n=function(){return r}.apply(e,[]))||(t.exports=n)}()},62740:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(17545),r=n(26902);function o(t,e,n){"symbol"==(0,i.A)(e)&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:n?n+" "+e:e})}catch(t){}return t}var a=n(11369);function s(t,e,n,s,c,l){var u,p,d,m,g,f,h,v=Symbol.metadata||Symbol.for("Symbol.metadata"),y=Object.defineProperty,b=Object.create,A=[b(null),b(null)],S=e.length;function T(e,n,i){return function(r,o){n&&(o=r,r=t);for(var a=0;a<e.length;a++)o=e[a].apply(r,i?[o]:[]);return i?o:r}}function w(t,e,n,i){if("function"!=typeof t&&(i||void 0!==t))throw new TypeError(e+" must "+(n||"be")+" a function"+(i?"":" or undefined"));return t}function k(t,e,n,r,a,s,c,l,d,m,g){function f(t){if(!g(t))throw new TypeError("Attempted to access private element on non-instance")}var h=[].concat(e[0]),v=e[3],b=!c,S=1===a,k=3===a,E=4===a,x=2===a;function C(e,n,i){return function(r,o){return n&&(o=r,r=t),i&&i(r),N[e].call(r,o)}}if(!b){var N={},_=[],U=k?"get":E||S?"set":"value";if(d?(m||S?N={get:o((function(){return v(this)}),r,"get"),set:function(t){e[4](this,t)}}:N[U]=v,m||o(N[U],r,x?"":U)):m||(N=Object.getOwnPropertyDescriptor(t,r)),!m&&!d){if((p=A[+l][r])&&7!=(p^a))throw Error("Decorating two elements with the same name ("+N[U].name+") is not supported yet");A[+l][r]=a<3?1:a}}for(var I=t,W=h.length-1;W>=0;W-=n?2:1){var j=w(h[W],"A decorator","be",!0),M=n?h[W-1]:void 0,P={},L={kind:["field","accessor","method","getter","setter","class"][a],name:r,metadata:u,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");w(e,"An initializer","be",!0),s.push(e)}.bind(null,P)};if(b)p=j.call(M,I,L),P.v=1,w(p,"class decorators","return")&&(I=p);else if(L.static=l,L.private=d,p=L.access={has:d?g.bind():function(t){return r in t}},E||(p.get=d?x?function(t){return f(t),N.value}:C("get",0,f):function(t){return t[r]}),x||k||(p.set=d?C("set",0,f):function(t,e){t[r]=e}),I=j.call(M,S?{get:N.get,set:N.set}:N[U],L),P.v=1,S){if("object"==(0,i.A)(I)&&I)(p=w(I.get,"accessor.get"))&&(N.get=p),(p=w(I.set,"accessor.set"))&&(N.set=p),(p=w(I.init,"accessor.init"))&&_.unshift(p);else if(void 0!==I)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else w(I,(m?"field":"method")+" decorators","return")&&(m?_.unshift(I):N[U]=I)}return a<2&&c.push(T(_,l,1),T(s,l,0)),m||b||(d?S?c.splice(-1,0,C("get",l),C("set",l)):c.push(x?N[U]:w.call.bind(N[U])):y(t,r,N)),I}function E(t){return y(t,v,{configurable:!0,enumerable:!0,value:u})}return void 0!==l&&(u=l[v]),u=b(null==u?null:u),g=[],f=function(t){t&&g.push(T(t))},h=function(e,i){for(var o=0;o<n.length;o++){var s=n[o],l=s[1],u=7&l;if((8&l)==e&&!u==i){var p=s[2],f=!!s[3],h=16&l;k(e?t:t.prototype,s,h,f?"#"+p:(0,a.A)(p),u,u<2?[]:e?m=m||[]:d=d||[],g,!!e,f,i,e&&f?function(e){return(0,r.A)(e)===t}:c)}}},h(8,0),h(0,0),h(8,1),h(0,1),f(d),f(m),p=g,S||E(t),{e:p,get c(){var n=[];return S&&[E(t=k(t,[e],s,t.name,5,n)),T(n,1)]}}}},70829:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(12559);function r(t,e){return t.get((0,i.A)(t,e))}},70918:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(72016);function r(t,e,n){(0,i.A)(t,e),e.set(t,n)}},71513:(t,e,n)=>{"use strict";n.d(e,{B:()=>v});var i=n(18769),r=n.n(i),o=n(87117),a=n(11280),s=n(53373),c=n.n(s),l=n(46134),u=n(2373);(0,o.initializeI18n)(l.NS,l.I);const p=(0,a.wrapBrick)("eo-icon"),d=(0,a.wrapBrick)("eo-dropdown-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),m=(0,a.wrapBrick)("eo-easyops-avatar"),g=(0,a.wrapBrick)("eo-button"),f={ready:"uncheck-status",working:"active-status",completed:"check-status"},h=[{key:"ready",icon:{icon:"uncheck-status",lib:"easyops",category:"colored-common"},text:(0,l.t)(l.K.UN_START_STATUS)},{key:"working",icon:{icon:"active-status",lib:"easyops",category:"colored-common"},text:(0,l.t)(l.K.RUNNING_STATUS)},{key:"completed",icon:{icon:"check-status",lib:"easyops",category:"colored-common"},text:(0,l.t)(l.K.COMPLETED_STATUS)}];function v(t){let{goalItem:e,cardStyle:n,onStatusChange:o,onTitleChange:a,onClick:s,onNewChat:v,isActive:y}=t;const{state:b,id:A,title:S,conversations:T,owner:w}=e,k=(0,i.useRef)(!1),E=(0,i.useCallback)((()=>{k.current=!0}),[]),x=(0,i.useCallback)((()=>{k.current=!1}),[]),[C,N]=(0,i.useState)(!1),_=(0,i.useCallback)((()=>{N(!0)}),[]),U=(0,i.useCallback)((t=>{N(!1);const e=t.currentTarget.textContent;null!==e&&S!==e&&(null==a||a(e))}),[S,a]),I=(0,i.useCallback)((t=>{k.current||"Enter"===t.key&&(t.preventDefault(),t.currentTarget.blur())}),[]);return r().createElement("div",{className:c()("goal-item",e.state,{editing:C},{active:y}),style:{paddingLeft:`${e.offsetX}px`,...n},onClick:s},r().createElement("div",{className:"start"},r().createElement(d,{actions:h,onActionClick:t=>{return e=t.detail,void(null==o||o(e.key));var e}},r().createElement(p,{className:"icon",lib:"easyops",category:"colored-common",icon:f[b],onClick:t=>t.stopPropagation()})),r().createElement("span",{className:"serial-number"},"#",A),r().createElement("span",{className:"title",onClick:t=>t.stopPropagation(),onFocus:_,onBlur:U,onKeyDown:I,onCompositionStart:E,onCompositionEnd:x,contentEditable:(0,u.U)(!0),suppressContentEditableWarning:!0},S)),r().createElement("div",{className:"end"},r().createElement("div",{className:"info"},r().createElement("div",{className:"message"},r().createElement(p,{lib:"easyops",category:"common",icon:"message"}),r().createElement("span",{className:"count"},T||0)),r().createElement(m,{nameOrInstanceId:null==w?void 0:w.instanceId,size:"small"})),r().createElement("div",{className:"operation",onClick:t=>t.stopPropagation()},r().createElement(g,{className:"new-chat",themeVariant:"elevo",type:"neutral",size:"small",onClick:v},(0,l.t)(l.K.NEW_CHAT)))))}},72016:(t,e,n)=>{"use strict";function i(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(e,{A:()=>i})},74635:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(72016);function r(t,e){(0,i.A)(t,e),e.add(t)}},86121:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(12559);function r(t,e,n){return t.set((0,i.A)(t,e),n),n}}}]);
|
|
3
|
-
//# sourceMappingURL=goal-card-list.fcce68bd.js.map
|
|
File without changes
|
|
File without changes
|