@next-bricks/ai-portal 0.26.2 → 0.27.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 +5 -2
- package/dist/chunks/4820.4b53e1d4.js +2 -0
- package/dist/chunks/4820.4b53e1d4.js.map +1 -0
- package/dist/chunks/{5054.b5664d8e.js → 5054.dee4d597.js} +2 -2
- package/dist/chunks/5054.dee4d597.js.map +1 -0
- package/dist/chunks/6677.2fea9748.js +3 -0
- package/dist/chunks/6677.2fea9748.js.map +1 -0
- package/dist/chunks/8928.9ff21a2f.js +3 -0
- package/dist/chunks/8928.9ff21a2f.js.map +1 -0
- package/dist/chunks/981.2e62aa2d.js +2 -0
- package/dist/chunks/981.2e62aa2d.js.map +1 -0
- package/dist/chunks/{chat-history.98d87d99.js → chat-history.a7ed7639.js} +3 -3
- package/dist/chunks/chat-history.a7ed7639.js.map +1 -0
- package/dist/chunks/chat-stream.47e68ddf.js +2 -0
- package/dist/chunks/chat-stream.47e68ddf.js.map +1 -0
- package/dist/chunks/cruise-canvas.847fcd10.js +2 -0
- package/dist/chunks/cruise-canvas.847fcd10.js.map +1 -0
- package/dist/chunks/{elevo-sidebar.1761f230.js → elevo-sidebar.c1b8a33b.js} +3 -3
- package/dist/chunks/elevo-sidebar.c1b8a33b.js.map +1 -0
- package/dist/chunks/load-request-store.291fe1bf.js +2 -0
- package/dist/chunks/load-request-store.291fe1bf.js.map +1 -0
- package/dist/chunks/main.9f8de325.js +2 -0
- package/dist/chunks/{main.25b9de22.js.map → main.9f8de325.js.map} +1 -1
- package/dist/index.59c2883c.js +2 -0
- package/dist/index.59c2883c.js.map +1 -0
- package/dist/manifest.json +57 -23
- package/dist/types.json +304 -37
- package/dist-types/bootstrap.d.ts +1 -0
- package/dist-types/chat-stream/index.d.ts +3 -0
- package/dist-types/cruise-canvas/CruiseCanvas.d.ts +20 -0
- package/dist-types/cruise-canvas/LegacyCruiseCanvas.d.ts +19 -0
- package/dist-types/cruise-canvas/Nav/Nav.d.ts +2 -2
- package/dist-types/cruise-canvas/getFlatOrderedJobs.d.ts +10 -0
- package/dist-types/cruise-canvas/getOrderedNodes.d.ts +18 -0
- package/dist-types/cruise-canvas/index.d.ts +9 -0
- package/dist-types/cruise-canvas/interfaces.d.ts +7 -2
- package/dist-types/cruise-canvas/legacy-reducers/error.d.ts +3 -0
- package/dist-types/cruise-canvas/legacy-reducers/index.d.ts +3 -0
- package/dist-types/cruise-canvas/legacy-reducers/interfaces.d.ts +15 -0
- package/dist-types/cruise-canvas/legacy-reducers/task.spec.d.ts +1 -0
- package/dist-types/cruise-canvas/reducers/conversation.d.ts +4 -0
- package/dist-types/cruise-canvas/reducers/interfaces.d.ts +7 -8
- package/dist-types/cruise-canvas/reducers/tasks.d.ts +4 -0
- package/dist-types/cruise-canvas/useConversationDetail.d.ts +9 -0
- package/dist-types/cruise-canvas/useConversationGraph.d.ts +12 -0
- package/dist-types/cruise-canvas/useTaskGraph.d.ts +4 -2
- package/dist-types/cruise-canvas/utils/jsx-converters/convertJsx.d.ts +2 -2
- package/dist-types/cruise-canvas/utils/jsx-converters/isJsxView.d.ts +2 -2
- package/dist-types/data-providers/request-store.d.ts +4 -0
- package/dist-types/data-providers/request-store.spec.d.ts +1 -0
- package/dist-types/shared/CreatedView/i18n.d.ts +2 -1
- package/dist-types/shared/TaskContext.d.ts +7 -7
- package/dist-types/shared/constants.d.ts +1 -0
- package/dist-types/shared/interfaces.d.ts +97 -0
- package/dist-types/shared/useViewFeedbackDone.d.ts +1 -0
- package/package.json +2 -2
- package/dist/chunks/3624.fa6c9a8b.js +0 -2
- package/dist/chunks/3624.fa6c9a8b.js.map +0 -1
- package/dist/chunks/3800.8a37614f.js +0 -2
- package/dist/chunks/3800.8a37614f.js.map +0 -1
- package/dist/chunks/5054.b5664d8e.js.map +0 -1
- package/dist/chunks/6175.18e07f1a.js +0 -3
- package/dist/chunks/6175.18e07f1a.js.map +0 -1
- package/dist/chunks/6677.4ed7510b.js +0 -3
- package/dist/chunks/6677.4ed7510b.js.map +0 -1
- package/dist/chunks/chat-history.98d87d99.js.map +0 -1
- package/dist/chunks/chat-stream.20c70bf3.js +0 -2
- package/dist/chunks/chat-stream.20c70bf3.js.map +0 -1
- package/dist/chunks/cruise-canvas.3fdcba20.js +0 -2
- package/dist/chunks/cruise-canvas.3fdcba20.js.map +0 -1
- package/dist/chunks/elevo-sidebar.1761f230.js.map +0 -1
- package/dist/chunks/main.25b9de22.js +0 -2
- package/dist/index.80bf5579.js +0 -2
- package/dist/index.80bf5579.js.map +0 -1
- package/dist-types/cruise-canvas/getOrderedJobs.d.ts +0 -11
- /package/dist/chunks/{6677.4ed7510b.js.LICENSE.txt → 6677.2fea9748.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{6175.18e07f1a.js.LICENSE.txt → 8928.9ff21a2f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-history.98d87d99.js.LICENSE.txt → chat-history.a7ed7639.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{elevo-sidebar.1761f230.js.LICENSE.txt → elevo-sidebar.c1b8a33b.js.LICENSE.txt} +0 -0
- /package/dist-types/cruise-canvas/{reducers/jobs.spec.d.ts → legacy-reducers/error.spec.d.ts} +0 -0
- /package/dist-types/cruise-canvas/{reducers → legacy-reducers}/jobs.d.ts +0 -0
- /package/dist-types/cruise-canvas/{reducers/task.spec.d.ts → legacy-reducers/jobs.spec.d.ts} +0 -0
- /package/dist-types/cruise-canvas/{reducers → legacy-reducers}/task.d.ts +0 -0
package/dist/types.json
CHANGED
|
@@ -176,6 +176,123 @@
|
|
|
176
176
|
}
|
|
177
177
|
]
|
|
178
178
|
},
|
|
179
|
+
"ai-portal.save-request-store": {
|
|
180
|
+
"type": "provider",
|
|
181
|
+
"params": [
|
|
182
|
+
{
|
|
183
|
+
"name": "value",
|
|
184
|
+
"annotation": {
|
|
185
|
+
"type": "reference",
|
|
186
|
+
"typeName": {
|
|
187
|
+
"type": "identifier",
|
|
188
|
+
"name": "RequestStore"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"returns": {
|
|
194
|
+
"annotation": {
|
|
195
|
+
"type": "keyword",
|
|
196
|
+
"value": "void"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"types": [
|
|
200
|
+
{
|
|
201
|
+
"type": "interface",
|
|
202
|
+
"name": "RequestStore",
|
|
203
|
+
"body": [
|
|
204
|
+
{
|
|
205
|
+
"type": "propertySignature",
|
|
206
|
+
"key": {
|
|
207
|
+
"type": "identifier",
|
|
208
|
+
"name": "conversationId"
|
|
209
|
+
},
|
|
210
|
+
"annotation": {
|
|
211
|
+
"type": "keyword",
|
|
212
|
+
"value": "string"
|
|
213
|
+
},
|
|
214
|
+
"computed": false
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"type": "propertySignature",
|
|
218
|
+
"key": {
|
|
219
|
+
"type": "identifier",
|
|
220
|
+
"name": "content"
|
|
221
|
+
},
|
|
222
|
+
"annotation": {
|
|
223
|
+
"type": "keyword",
|
|
224
|
+
"value": "string"
|
|
225
|
+
},
|
|
226
|
+
"computed": false
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
"ai-portal.load-request-store": {
|
|
233
|
+
"type": "provider",
|
|
234
|
+
"params": [],
|
|
235
|
+
"returns": {
|
|
236
|
+
"annotation": {
|
|
237
|
+
"type": "union",
|
|
238
|
+
"types": [
|
|
239
|
+
{
|
|
240
|
+
"type": "reference",
|
|
241
|
+
"typeName": {
|
|
242
|
+
"type": "identifier",
|
|
243
|
+
"name": "RequestStore"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"type": "keyword",
|
|
248
|
+
"value": "null"
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"types": [
|
|
254
|
+
{
|
|
255
|
+
"type": "interface",
|
|
256
|
+
"name": "RequestStore",
|
|
257
|
+
"body": [
|
|
258
|
+
{
|
|
259
|
+
"type": "propertySignature",
|
|
260
|
+
"key": {
|
|
261
|
+
"type": "identifier",
|
|
262
|
+
"name": "conversationId"
|
|
263
|
+
},
|
|
264
|
+
"annotation": {
|
|
265
|
+
"type": "keyword",
|
|
266
|
+
"value": "string"
|
|
267
|
+
},
|
|
268
|
+
"computed": false
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"type": "propertySignature",
|
|
272
|
+
"key": {
|
|
273
|
+
"type": "identifier",
|
|
274
|
+
"name": "content"
|
|
275
|
+
},
|
|
276
|
+
"annotation": {
|
|
277
|
+
"type": "keyword",
|
|
278
|
+
"value": "string"
|
|
279
|
+
},
|
|
280
|
+
"computed": false
|
|
281
|
+
}
|
|
282
|
+
]
|
|
283
|
+
}
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
"ai-portal.clear-request-store": {
|
|
287
|
+
"type": "provider",
|
|
288
|
+
"params": [],
|
|
289
|
+
"returns": {
|
|
290
|
+
"annotation": {
|
|
291
|
+
"type": "keyword",
|
|
292
|
+
"value": "void"
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
},
|
|
179
296
|
"ai-portal.chat-box": {
|
|
180
297
|
"properties": [
|
|
181
298
|
{
|
|
@@ -1152,6 +1269,13 @@
|
|
|
1152
1269
|
"value": "boolean"
|
|
1153
1270
|
}
|
|
1154
1271
|
},
|
|
1272
|
+
{
|
|
1273
|
+
"name": "showFeedbackOnView",
|
|
1274
|
+
"annotation": {
|
|
1275
|
+
"type": "keyword",
|
|
1276
|
+
"value": "boolean"
|
|
1277
|
+
}
|
|
1278
|
+
},
|
|
1155
1279
|
{
|
|
1156
1280
|
"name": "showUiSwitch",
|
|
1157
1281
|
"annotation": {
|
|
@@ -1178,7 +1302,7 @@
|
|
|
1178
1302
|
}
|
|
1179
1303
|
},
|
|
1180
1304
|
{
|
|
1181
|
-
"name": "
|
|
1305
|
+
"name": "terminate",
|
|
1182
1306
|
"detail": {
|
|
1183
1307
|
"annotation": {
|
|
1184
1308
|
"type": "keyword",
|
|
@@ -1187,32 +1311,23 @@
|
|
|
1187
1311
|
}
|
|
1188
1312
|
},
|
|
1189
1313
|
{
|
|
1190
|
-
"name": "
|
|
1314
|
+
"name": "feedback.submit",
|
|
1191
1315
|
"detail": {
|
|
1192
1316
|
"annotation": {
|
|
1193
|
-
"type": "
|
|
1194
|
-
"
|
|
1317
|
+
"type": "reference",
|
|
1318
|
+
"typeName": {
|
|
1319
|
+
"type": "identifier",
|
|
1320
|
+
"name": "FeedbackDetail"
|
|
1321
|
+
}
|
|
1195
1322
|
}
|
|
1196
1323
|
}
|
|
1197
1324
|
},
|
|
1198
1325
|
{
|
|
1199
|
-
"name": "
|
|
1326
|
+
"name": "feedback.on.view",
|
|
1200
1327
|
"detail": {
|
|
1201
1328
|
"annotation": {
|
|
1202
1329
|
"type": "keyword",
|
|
1203
|
-
"value": "
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
},
|
|
1207
|
-
{
|
|
1208
|
-
"name": "feedback.submit",
|
|
1209
|
-
"detail": {
|
|
1210
|
-
"annotation": {
|
|
1211
|
-
"type": "reference",
|
|
1212
|
-
"typeName": {
|
|
1213
|
-
"type": "identifier",
|
|
1214
|
-
"name": "FeedbackDetail"
|
|
1215
|
-
}
|
|
1330
|
+
"value": "string"
|
|
1216
1331
|
}
|
|
1217
1332
|
}
|
|
1218
1333
|
},
|
|
@@ -1241,6 +1356,19 @@
|
|
|
1241
1356
|
"name": "feedbackSubmitFailed",
|
|
1242
1357
|
"params": [],
|
|
1243
1358
|
"returns": {}
|
|
1359
|
+
},
|
|
1360
|
+
{
|
|
1361
|
+
"name": "feedbackOnViewDone",
|
|
1362
|
+
"params": [
|
|
1363
|
+
{
|
|
1364
|
+
"name": "viewId",
|
|
1365
|
+
"annotation": {
|
|
1366
|
+
"type": "keyword",
|
|
1367
|
+
"value": "string"
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
],
|
|
1371
|
+
"returns": {}
|
|
1244
1372
|
}
|
|
1245
1373
|
],
|
|
1246
1374
|
"types": [
|
|
@@ -1296,6 +1424,32 @@
|
|
|
1296
1424
|
},
|
|
1297
1425
|
"ai-portal.cruise-canvas": {
|
|
1298
1426
|
"properties": [
|
|
1427
|
+
{
|
|
1428
|
+
"name": "conversationId",
|
|
1429
|
+
"annotation": {
|
|
1430
|
+
"type": "keyword",
|
|
1431
|
+
"value": "string"
|
|
1432
|
+
}
|
|
1433
|
+
},
|
|
1434
|
+
{
|
|
1435
|
+
"name": "initialRequest",
|
|
1436
|
+
"annotation": {
|
|
1437
|
+
"type": "union",
|
|
1438
|
+
"types": [
|
|
1439
|
+
{
|
|
1440
|
+
"type": "reference",
|
|
1441
|
+
"typeName": {
|
|
1442
|
+
"type": "identifier",
|
|
1443
|
+
"name": "RequestStore"
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
"type": "keyword",
|
|
1448
|
+
"value": "null"
|
|
1449
|
+
}
|
|
1450
|
+
]
|
|
1451
|
+
}
|
|
1452
|
+
},
|
|
1299
1453
|
{
|
|
1300
1454
|
"name": "taskId",
|
|
1301
1455
|
"annotation": {
|
|
@@ -1377,6 +1531,13 @@
|
|
|
1377
1531
|
"value": "boolean"
|
|
1378
1532
|
}
|
|
1379
1533
|
},
|
|
1534
|
+
{
|
|
1535
|
+
"name": "showFeedbackOnView",
|
|
1536
|
+
"annotation": {
|
|
1537
|
+
"type": "keyword",
|
|
1538
|
+
"value": "boolean"
|
|
1539
|
+
}
|
|
1540
|
+
},
|
|
1380
1541
|
{
|
|
1381
1542
|
"name": "showUiSwitch",
|
|
1382
1543
|
"annotation": {
|
|
@@ -1410,7 +1571,7 @@
|
|
|
1410
1571
|
}
|
|
1411
1572
|
},
|
|
1412
1573
|
{
|
|
1413
|
-
"name": "
|
|
1574
|
+
"name": "terminate",
|
|
1414
1575
|
"detail": {
|
|
1415
1576
|
"annotation": {
|
|
1416
1577
|
"type": "keyword",
|
|
@@ -1419,32 +1580,23 @@
|
|
|
1419
1580
|
}
|
|
1420
1581
|
},
|
|
1421
1582
|
{
|
|
1422
|
-
"name": "
|
|
1583
|
+
"name": "feedback.submit",
|
|
1423
1584
|
"detail": {
|
|
1424
1585
|
"annotation": {
|
|
1425
|
-
"type": "
|
|
1426
|
-
"
|
|
1586
|
+
"type": "reference",
|
|
1587
|
+
"typeName": {
|
|
1588
|
+
"type": "identifier",
|
|
1589
|
+
"name": "FeedbackDetail"
|
|
1590
|
+
}
|
|
1427
1591
|
}
|
|
1428
1592
|
}
|
|
1429
1593
|
},
|
|
1430
1594
|
{
|
|
1431
|
-
"name": "
|
|
1595
|
+
"name": "feedback.on.view",
|
|
1432
1596
|
"detail": {
|
|
1433
1597
|
"annotation": {
|
|
1434
1598
|
"type": "keyword",
|
|
1435
|
-
"value": "
|
|
1436
|
-
}
|
|
1437
|
-
}
|
|
1438
|
-
},
|
|
1439
|
-
{
|
|
1440
|
-
"name": "feedback.submit",
|
|
1441
|
-
"detail": {
|
|
1442
|
-
"annotation": {
|
|
1443
|
-
"type": "reference",
|
|
1444
|
-
"typeName": {
|
|
1445
|
-
"type": "identifier",
|
|
1446
|
-
"name": "FeedbackDetail"
|
|
1447
|
-
}
|
|
1599
|
+
"value": "string"
|
|
1448
1600
|
}
|
|
1449
1601
|
}
|
|
1450
1602
|
},
|
|
@@ -1473,9 +1625,52 @@
|
|
|
1473
1625
|
"name": "feedbackSubmitFailed",
|
|
1474
1626
|
"params": [],
|
|
1475
1627
|
"returns": {}
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
"name": "feedbackOnViewDone",
|
|
1631
|
+
"params": [
|
|
1632
|
+
{
|
|
1633
|
+
"name": "viewId",
|
|
1634
|
+
"annotation": {
|
|
1635
|
+
"type": "keyword",
|
|
1636
|
+
"value": "string"
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
],
|
|
1640
|
+
"returns": {}
|
|
1476
1641
|
}
|
|
1477
1642
|
],
|
|
1478
1643
|
"types": [
|
|
1644
|
+
{
|
|
1645
|
+
"type": "interface",
|
|
1646
|
+
"name": "RequestStore",
|
|
1647
|
+
"body": [
|
|
1648
|
+
{
|
|
1649
|
+
"type": "propertySignature",
|
|
1650
|
+
"key": {
|
|
1651
|
+
"type": "identifier",
|
|
1652
|
+
"name": "conversationId"
|
|
1653
|
+
},
|
|
1654
|
+
"annotation": {
|
|
1655
|
+
"type": "keyword",
|
|
1656
|
+
"value": "string"
|
|
1657
|
+
},
|
|
1658
|
+
"computed": false
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
"type": "propertySignature",
|
|
1662
|
+
"key": {
|
|
1663
|
+
"type": "identifier",
|
|
1664
|
+
"name": "content"
|
|
1665
|
+
},
|
|
1666
|
+
"annotation": {
|
|
1667
|
+
"type": "keyword",
|
|
1668
|
+
"value": "string"
|
|
1669
|
+
},
|
|
1670
|
+
"computed": false
|
|
1671
|
+
}
|
|
1672
|
+
]
|
|
1673
|
+
},
|
|
1479
1674
|
{
|
|
1480
1675
|
"type": "typeAlias",
|
|
1481
1676
|
"name": "TaskBaseDetail",
|
|
@@ -1920,7 +2115,7 @@
|
|
|
1920
2115
|
"type": "reference",
|
|
1921
2116
|
"typeName": {
|
|
1922
2117
|
"type": "identifier",
|
|
1923
|
-
"name": "
|
|
2118
|
+
"name": "ConstructedView"
|
|
1924
2119
|
}
|
|
1925
2120
|
},
|
|
1926
2121
|
{
|
|
@@ -1935,6 +2130,22 @@
|
|
|
1935
2130
|
"optional": true,
|
|
1936
2131
|
"computed": false
|
|
1937
2132
|
},
|
|
2133
|
+
{
|
|
2134
|
+
"type": "propertySignature",
|
|
2135
|
+
"key": {
|
|
2136
|
+
"type": "identifier",
|
|
2137
|
+
"name": "staticDataView"
|
|
2138
|
+
},
|
|
2139
|
+
"annotation": {
|
|
2140
|
+
"type": "reference",
|
|
2141
|
+
"typeName": {
|
|
2142
|
+
"type": "identifier",
|
|
2143
|
+
"name": "ConstructedView"
|
|
2144
|
+
}
|
|
2145
|
+
},
|
|
2146
|
+
"optional": true,
|
|
2147
|
+
"computed": false
|
|
2148
|
+
},
|
|
1938
2149
|
{
|
|
1939
2150
|
"type": "propertySignature",
|
|
1940
2151
|
"key": {
|
|
@@ -2546,6 +2757,62 @@
|
|
|
2546
2757
|
}
|
|
2547
2758
|
]
|
|
2548
2759
|
},
|
|
2760
|
+
{
|
|
2761
|
+
"type": "interface",
|
|
2762
|
+
"name": "ConstructedView",
|
|
2763
|
+
"body": [
|
|
2764
|
+
{
|
|
2765
|
+
"type": "propertySignature",
|
|
2766
|
+
"key": {
|
|
2767
|
+
"type": "identifier",
|
|
2768
|
+
"name": "viewId"
|
|
2769
|
+
},
|
|
2770
|
+
"annotation": {
|
|
2771
|
+
"type": "keyword",
|
|
2772
|
+
"value": "string"
|
|
2773
|
+
},
|
|
2774
|
+
"computed": false
|
|
2775
|
+
},
|
|
2776
|
+
{
|
|
2777
|
+
"type": "propertySignature",
|
|
2778
|
+
"key": {
|
|
2779
|
+
"type": "identifier",
|
|
2780
|
+
"name": "withContexts"
|
|
2781
|
+
},
|
|
2782
|
+
"annotation": {
|
|
2783
|
+
"type": "reference",
|
|
2784
|
+
"typeName": {
|
|
2785
|
+
"type": "identifier",
|
|
2786
|
+
"name": "Record"
|
|
2787
|
+
},
|
|
2788
|
+
"typeParameters": {
|
|
2789
|
+
"type": "typeParameterInstantiation",
|
|
2790
|
+
"params": [
|
|
2791
|
+
{
|
|
2792
|
+
"type": "keyword",
|
|
2793
|
+
"value": "string"
|
|
2794
|
+
},
|
|
2795
|
+
{
|
|
2796
|
+
"type": "keyword",
|
|
2797
|
+
"value": "unknown"
|
|
2798
|
+
}
|
|
2799
|
+
]
|
|
2800
|
+
}
|
|
2801
|
+
},
|
|
2802
|
+
"optional": true,
|
|
2803
|
+
"computed": false
|
|
2804
|
+
}
|
|
2805
|
+
],
|
|
2806
|
+
"extends": [
|
|
2807
|
+
{
|
|
2808
|
+
"type": "expressionWithTypeArguments",
|
|
2809
|
+
"expression": {
|
|
2810
|
+
"type": "identifier",
|
|
2811
|
+
"name": "ConstructResult"
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
]
|
|
2815
|
+
},
|
|
2549
2816
|
{
|
|
2550
2817
|
"type": "interface",
|
|
2551
2818
|
"name": "FeedbackDetail",
|
|
@@ -7,6 +7,7 @@ export interface ChatStreamProps {
|
|
|
7
7
|
replayDelay?: number;
|
|
8
8
|
supports?: Record<string, boolean>;
|
|
9
9
|
showFeedback?: boolean;
|
|
10
|
+
showFeedbackOnView?: boolean;
|
|
10
11
|
showUiSwitch?: boolean;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
@@ -25,10 +26,12 @@ export declare class ChatStream extends ReactNextElement implements ChatStreamPr
|
|
|
25
26
|
accessor replayDelay: number | undefined;
|
|
26
27
|
accessor supports: Record<string, boolean> | undefined;
|
|
27
28
|
accessor showFeedback: boolean | undefined;
|
|
29
|
+
accessor showFeedbackOnView: boolean | undefined;
|
|
28
30
|
accessor showUiSwitch: boolean | undefined;
|
|
29
31
|
accessor hideMermaid: boolean | undefined;
|
|
30
32
|
resumed(): void;
|
|
31
33
|
feedbackSubmitDone(): void;
|
|
32
34
|
feedbackSubmitFailed(): void;
|
|
35
|
+
feedbackOnViewDone(viewId: string): void;
|
|
33
36
|
render(): React.JSX.Element;
|
|
34
37
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "@next-core/theme";
|
|
3
|
+
import type { FeedbackDetail } from "./interfaces.js";
|
|
4
|
+
import type { CruiseCanvasProps } from ".";
|
|
5
|
+
interface CruiseCanvasComponentProps extends CruiseCanvasProps {
|
|
6
|
+
conversationId: string;
|
|
7
|
+
onShare: () => void;
|
|
8
|
+
onTerminate: () => void;
|
|
9
|
+
onSubmitFeedback: (detail: FeedbackDetail) => void;
|
|
10
|
+
onSwitchToChat: () => void;
|
|
11
|
+
onFeedbackOnView: (viewId: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export interface CruiseCanvasRef {
|
|
14
|
+
resumed?: () => void;
|
|
15
|
+
feedbackSubmitDone: () => void;
|
|
16
|
+
feedbackSubmitFailed: () => void;
|
|
17
|
+
feedbackOnViewDone: (viewId: string) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare function CruiseCanvasComponent({ conversationId, initialRequest, replay, replayDelay, supports, showHiddenJobs, showFeedback: propShowFeedback, showFeedbackOnView, showUiSwitch, showJsxEditor, onShare, onTerminate, onSubmitFeedback, onSwitchToChat, onFeedbackOnView, }: CruiseCanvasComponentProps, ref: React.Ref<CruiseCanvasRef>): React.JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "@next-core/theme";
|
|
3
|
+
import type { FeedbackDetail } from "./interfaces.js";
|
|
4
|
+
import type { CruiseCanvasProps } from ".";
|
|
5
|
+
interface CruiseCanvasComponentProps extends CruiseCanvasProps {
|
|
6
|
+
onShare: () => void;
|
|
7
|
+
onTerminate: () => void;
|
|
8
|
+
onSubmitFeedback: (detail: FeedbackDetail) => void;
|
|
9
|
+
onSwitchToChat: () => void;
|
|
10
|
+
onFeedbackOnView: (viewId: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export interface CruiseCanvasRef {
|
|
13
|
+
resumed?: () => void;
|
|
14
|
+
feedbackSubmitDone: () => void;
|
|
15
|
+
feedbackSubmitFailed: () => void;
|
|
16
|
+
feedbackOnViewDone: (viewId: string) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function LegacyCruiseCanvasComponent({ taskId, task: propTask, jobs: propJobs, replay, replayDelay, supports, showHiddenJobs, showFeedback: propShowFeedback, showFeedbackOnView, showUiSwitch, showJsxEditor, onShare, onTerminate, onSubmitFeedback, onSwitchToChat, onFeedbackOnView, }: CruiseCanvasComponentProps, ref: React.Ref<CruiseCanvasRef>): React.JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -3,10 +3,10 @@ import type { GraphNavItem, Job, Step, TaskState } from "../interfaces";
|
|
|
3
3
|
export interface NavProps {
|
|
4
4
|
nav: GraphNavItem[] | undefined;
|
|
5
5
|
plan: Step[] | undefined;
|
|
6
|
-
|
|
6
|
+
jobMap: Map<string, Job> | undefined;
|
|
7
7
|
jobLevels: Map<string, number> | undefined;
|
|
8
8
|
currentNavId: string | null;
|
|
9
9
|
taskState: TaskState | undefined;
|
|
10
10
|
onClick: (jobId: string) => void;
|
|
11
11
|
}
|
|
12
|
-
export declare function Nav({ nav, plan,
|
|
12
|
+
export declare function Nav({ nav, plan, jobMap, jobLevels, currentNavId, taskState, onClick, }: NavProps): React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Task, Job } from "../shared/interfaces";
|
|
2
|
+
export declare function getFlatOrderedJobs(tasks: Task[] | null | undefined, options?: {
|
|
3
|
+
showHiddenJobs?: boolean;
|
|
4
|
+
}): {
|
|
5
|
+
list: string[];
|
|
6
|
+
map: Map<string, Job>;
|
|
7
|
+
roots: string[];
|
|
8
|
+
levels: Map<string, number>;
|
|
9
|
+
downstreamMap: Map<string, string[]>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface GeneralNode {
|
|
2
|
+
id: string;
|
|
3
|
+
upstream?: string[];
|
|
4
|
+
parent?: string;
|
|
5
|
+
hidden?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface GetOrderedNodesOptions {
|
|
8
|
+
showHiddenNodes?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function getOrderedNodes<T extends GeneralNode>(nodes: T[] | null | undefined, options?: GetOrderedNodesOptions): {
|
|
11
|
+
list: string[];
|
|
12
|
+
map: Map<string, T>;
|
|
13
|
+
levels: Map<string, number>;
|
|
14
|
+
roots: string[];
|
|
15
|
+
leaves: string[];
|
|
16
|
+
downstreamMap: Map<string, string[]>;
|
|
17
|
+
fullDownstreamMap: Map<string, string[]> | undefined;
|
|
18
|
+
};
|
|
@@ -2,7 +2,10 @@ import React from "react";
|
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
4
|
import type { Job, TaskBaseDetail } from "./interfaces.js";
|
|
5
|
+
import type { RequestStore } from "../shared/interfaces.js";
|
|
5
6
|
export interface CruiseCanvasProps {
|
|
7
|
+
conversationId?: string;
|
|
8
|
+
initialRequest?: RequestStore | null;
|
|
6
9
|
taskId?: string;
|
|
7
10
|
task?: TaskBaseDetail;
|
|
8
11
|
jobs?: Job[];
|
|
@@ -12,6 +15,7 @@ export interface CruiseCanvasProps {
|
|
|
12
15
|
showHiddenJobs?: boolean;
|
|
13
16
|
showFeedback?: boolean;
|
|
14
17
|
showUiSwitch?: boolean;
|
|
18
|
+
showFeedbackOnView?: boolean;
|
|
15
19
|
showJsxEditor?: boolean;
|
|
16
20
|
}
|
|
17
21
|
/**
|
|
@@ -19,6 +23,9 @@ export interface CruiseCanvasProps {
|
|
|
19
23
|
*/
|
|
20
24
|
export declare class CruiseCanvas extends ReactNextElement implements CruiseCanvasProps {
|
|
21
25
|
#private;
|
|
26
|
+
accessor conversationId: string | undefined;
|
|
27
|
+
/** 初始请求数据。仅初始设置有效。 */
|
|
28
|
+
accessor initialRequest: RequestStore | undefined | null;
|
|
22
29
|
accessor taskId: string | undefined;
|
|
23
30
|
accessor task: TaskBaseDetail | undefined;
|
|
24
31
|
accessor jobs: Job[] | undefined;
|
|
@@ -33,11 +40,13 @@ export declare class CruiseCanvas extends ReactNextElement implements CruiseCanv
|
|
|
33
40
|
accessor supports: Record<string, boolean> | undefined;
|
|
34
41
|
accessor showHiddenJobs: boolean | undefined;
|
|
35
42
|
accessor showFeedback: boolean | undefined;
|
|
43
|
+
accessor showFeedbackOnView: boolean | undefined;
|
|
36
44
|
accessor showUiSwitch: boolean | undefined;
|
|
37
45
|
accessor hideMermaid: boolean | undefined;
|
|
38
46
|
accessor showJsxEditor: boolean | undefined;
|
|
39
47
|
resumed(): void;
|
|
40
48
|
feedbackSubmitDone(): void;
|
|
41
49
|
feedbackSubmitFailed(): void;
|
|
50
|
+
feedbackOnViewDone(viewId: string): void;
|
|
42
51
|
render(): React.JSX.Element;
|
|
43
52
|
}
|
|
@@ -89,7 +89,8 @@ export interface Job {
|
|
|
89
89
|
startTime: number;
|
|
90
90
|
endTime?: number;
|
|
91
91
|
componentGraph?: ComponentGraph;
|
|
92
|
-
generatedView?:
|
|
92
|
+
generatedView?: ConstructedView | ViewWithInfo;
|
|
93
|
+
staticDataView?: ConstructedView;
|
|
93
94
|
level?: number;
|
|
94
95
|
}
|
|
95
96
|
export interface TaskPatch extends Omit<Partial<Task>, "jobs"> {
|
|
@@ -165,7 +166,7 @@ export interface GraphNavItem {
|
|
|
165
166
|
}
|
|
166
167
|
export interface GraphGeneratedView {
|
|
167
168
|
id: string;
|
|
168
|
-
view:
|
|
169
|
+
view: ConstructedView | ViewWithInfo;
|
|
169
170
|
}
|
|
170
171
|
export interface CmdbInstanceDetailData {
|
|
171
172
|
type: "cmdb_instance_detail";
|
|
@@ -190,3 +191,7 @@ export interface FeedbackDetail {
|
|
|
190
191
|
result: string[];
|
|
191
192
|
feedback: string;
|
|
192
193
|
}
|
|
194
|
+
export interface ConstructedView extends ConstructResult {
|
|
195
|
+
viewId: string;
|
|
196
|
+
withContexts?: Record<string, unknown>;
|
|
197
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Job, TaskBaseDetail, TaskPatch } from "../interfaces";
|
|
2
|
+
export interface CruiseCanvasState {
|
|
3
|
+
task: TaskBaseDetail | null;
|
|
4
|
+
jobs: Job[];
|
|
5
|
+
error: string | null;
|
|
6
|
+
}
|
|
7
|
+
export type CruiseCanvasAction = TaskSSEAction | TaskResetAction;
|
|
8
|
+
export interface TaskSSEAction {
|
|
9
|
+
type: "sse";
|
|
10
|
+
payload: TaskPatch;
|
|
11
|
+
isInitial?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface TaskResetAction {
|
|
14
|
+
type: "reset";
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|