@carbon/ai-chat-components 1.4.0 → 1.5.0-rc.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/custom-elements.json +1262 -709
- package/es/components/chat-history/src/chat-history.scss.js +1 -1
- package/es/components/chat-history/src/history-panel-item.d.ts +14 -0
- package/es/components/chat-history/src/history-panel-item.js +30 -0
- package/es/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es/components/code-snippet/src/code-snippet.d.ts +5 -0
- package/es/components/code-snippet/src/code-snippet.js +17 -5
- package/es/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es/components/feedback/src/feedback.d.ts +4 -0
- package/es/components/feedback/src/feedback.js +6 -4
- package/es/components/feedback/src/feedback.js.map +1 -1
- package/es/components/markdown/index.d.ts +3 -1
- package/es/components/markdown/index.js +1 -1
- package/es/components/markdown/src/markdown-renderer-types.d.ts +100 -0
- package/es/components/markdown/src/markdown-renderer-types.js +8 -0
- package/es/components/markdown/src/markdown-renderer-types.js.map +1 -0
- package/es/components/markdown/src/markdown-renderer.d.ts +14 -64
- package/es/components/markdown/src/markdown-renderer.js +110 -131
- package/es/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es/components/markdown/src/markdown-token-tree.d.ts +50 -5
- package/es/components/markdown/src/markdown-token-tree.js +182 -47
- package/es/components/markdown/src/markdown-token-tree.js.map +1 -1
- package/es/components/markdown/src/markdown.d.ts +49 -1
- package/es/components/markdown/src/markdown.js +317 -106
- package/es/components/markdown/src/markdown.js.map +1 -1
- package/es/components/markdown/src/plugins/markdown-it-task-lists.js +2 -5
- package/es/components/markdown/src/plugins/markdown-it-task-lists.js.map +1 -1
- package/es/components/markdown/src/utils/lit-directives.d.ts +17 -0
- package/es/components/markdown/src/utils/lit-directives.js +84 -0
- package/es/components/markdown/src/utils/lit-directives.js.map +1 -0
- package/es/components/markdown/src/utils/plugin-fallback.d.ts +33 -0
- package/es/components/markdown/src/utils/plugin-fallback.js +216 -0
- package/es/components/markdown/src/utils/plugin-fallback.js.map +1 -0
- package/es/components/markdown/src/utils/streaming-table.d.ts +28 -0
- package/es/components/markdown/src/utils/streaming-table.js +86 -0
- package/es/components/markdown/src/utils/streaming-table.js.map +1 -0
- package/es/components/markdown/src/utils/table-helpers.d.ts +17 -0
- package/es/components/markdown/src/utils/table-helpers.js +104 -2
- package/es/components/markdown/src/utils/table-helpers.js.map +1 -1
- package/es/components/table/src/table.js +4 -1
- package/es/components/table/src/table.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell.scss.js +1 -1
- package/es/react/markdown.d.ts +46 -2
- package/es/react/markdown.js +177 -20
- package/es/react/markdown.js.map +1 -1
- package/es-custom/components/chat-history/src/chat-history.scss.js +1 -1
- package/es-custom/components/chat-history/src/history-panel-item.d.ts +14 -0
- package/es-custom/components/chat-history/src/history-panel-item.js +30 -0
- package/es-custom/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es-custom/components/code-snippet/src/code-snippet.d.ts +5 -0
- package/es-custom/components/code-snippet/src/code-snippet.js +17 -5
- package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es-custom/components/feedback/src/feedback.d.ts +4 -0
- package/es-custom/components/feedback/src/feedback.js +6 -4
- package/es-custom/components/feedback/src/feedback.js.map +1 -1
- package/es-custom/components/markdown/index.d.ts +3 -1
- package/es-custom/components/markdown/index.js +1 -1
- package/es-custom/components/markdown/src/markdown-renderer-types.d.ts +100 -0
- package/es-custom/components/markdown/src/markdown-renderer-types.js +8 -0
- package/es-custom/components/markdown/src/markdown-renderer-types.js.map +1 -0
- package/es-custom/components/markdown/src/markdown-renderer.d.ts +14 -64
- package/es-custom/components/markdown/src/markdown-renderer.js +110 -131
- package/es-custom/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es-custom/components/markdown/src/markdown-token-tree.d.ts +50 -5
- package/es-custom/components/markdown/src/markdown-token-tree.js +182 -47
- package/es-custom/components/markdown/src/markdown-token-tree.js.map +1 -1
- package/es-custom/components/markdown/src/markdown.d.ts +49 -1
- package/es-custom/components/markdown/src/markdown.js +317 -106
- package/es-custom/components/markdown/src/markdown.js.map +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js +2 -5
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js.map +1 -1
- package/es-custom/components/markdown/src/utils/lit-directives.d.ts +17 -0
- package/es-custom/components/markdown/src/utils/lit-directives.js +84 -0
- package/es-custom/components/markdown/src/utils/lit-directives.js.map +1 -0
- package/es-custom/components/markdown/src/utils/plugin-fallback.d.ts +33 -0
- package/es-custom/components/markdown/src/utils/plugin-fallback.js +216 -0
- package/es-custom/components/markdown/src/utils/plugin-fallback.js.map +1 -0
- package/es-custom/components/markdown/src/utils/streaming-table.d.ts +28 -0
- package/es-custom/components/markdown/src/utils/streaming-table.js +86 -0
- package/es-custom/components/markdown/src/utils/streaming-table.js.map +1 -0
- package/es-custom/components/markdown/src/utils/table-helpers.d.ts +17 -0
- package/es-custom/components/markdown/src/utils/table-helpers.js +104 -2
- package/es-custom/components/markdown/src/utils/table-helpers.js.map +1 -1
- package/es-custom/components/table/src/table.js +4 -1
- package/es-custom/components/table/src/table.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.scss.js +1 -1
- package/es-custom/react/markdown.d.ts +46 -2
- package/es-custom/react/markdown.js +177 -20
- package/es-custom/react/markdown.js.map +1 -1
- package/package.json +5 -4
- package/es/components/markdown/src/utils.d.ts +0 -4
- package/es/components/markdown/src/utils.js +0 -25
- package/es/components/markdown/src/utils.js.map +0 -1
- package/es-custom/components/markdown/src/utils.d.ts +0 -4
- package/es-custom/components/markdown/src/utils.js +0 -25
- package/es-custom/components/markdown/src/utils.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -2,30 +2,6 @@
|
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
3
|
"readme": "",
|
|
4
4
|
"modules": [
|
|
5
|
-
{
|
|
6
|
-
"kind": "javascript-module",
|
|
7
|
-
"path": "src/globals/settings.ts",
|
|
8
|
-
"declarations": [
|
|
9
|
-
{
|
|
10
|
-
"kind": "variable",
|
|
11
|
-
"name": "prefix",
|
|
12
|
-
"type": {
|
|
13
|
-
"text": "string"
|
|
14
|
-
},
|
|
15
|
-
"default": "\"cds-aichat\""
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"exports": [
|
|
19
|
-
{
|
|
20
|
-
"kind": "js",
|
|
21
|
-
"name": "default",
|
|
22
|
-
"declaration": {
|
|
23
|
-
"name": "prefix",
|
|
24
|
-
"module": "src/globals/settings.ts"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
5
|
{
|
|
30
6
|
"kind": "javascript-module",
|
|
31
7
|
"path": "src/react/ai-label-action-button.ts",
|
|
@@ -390,26 +366,6 @@
|
|
|
390
366
|
}
|
|
391
367
|
]
|
|
392
368
|
},
|
|
393
|
-
{
|
|
394
|
-
"kind": "javascript-module",
|
|
395
|
-
"path": "src/react/markdown.ts",
|
|
396
|
-
"declarations": [
|
|
397
|
-
{
|
|
398
|
-
"kind": "variable",
|
|
399
|
-
"name": "Markdown"
|
|
400
|
-
}
|
|
401
|
-
],
|
|
402
|
-
"exports": [
|
|
403
|
-
{
|
|
404
|
-
"kind": "js",
|
|
405
|
-
"name": "default",
|
|
406
|
-
"declaration": {
|
|
407
|
-
"name": "Markdown",
|
|
408
|
-
"module": "src/react/markdown.ts"
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
]
|
|
412
|
-
},
|
|
413
369
|
{
|
|
414
370
|
"kind": "javascript-module",
|
|
415
371
|
"path": "src/react/panel.ts",
|
|
@@ -650,6 +606,30 @@
|
|
|
650
606
|
}
|
|
651
607
|
]
|
|
652
608
|
},
|
|
609
|
+
{
|
|
610
|
+
"kind": "javascript-module",
|
|
611
|
+
"path": "src/globals/settings.ts",
|
|
612
|
+
"declarations": [
|
|
613
|
+
{
|
|
614
|
+
"kind": "variable",
|
|
615
|
+
"name": "prefix",
|
|
616
|
+
"type": {
|
|
617
|
+
"text": "string"
|
|
618
|
+
},
|
|
619
|
+
"default": "\"cds-aichat\""
|
|
620
|
+
}
|
|
621
|
+
],
|
|
622
|
+
"exports": [
|
|
623
|
+
{
|
|
624
|
+
"kind": "js",
|
|
625
|
+
"name": "default",
|
|
626
|
+
"declaration": {
|
|
627
|
+
"name": "prefix",
|
|
628
|
+
"module": "src/globals/settings.ts"
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
]
|
|
632
|
+
},
|
|
653
633
|
{
|
|
654
634
|
"kind": "javascript-module",
|
|
655
635
|
"path": "src/testing/PageObjectId.ts",
|
|
@@ -980,6 +960,70 @@
|
|
|
980
960
|
"name": "default",
|
|
981
961
|
"module": "./src/markdown.js"
|
|
982
962
|
}
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"kind": "js",
|
|
966
|
+
"name": "CDSAIChatMarkdown",
|
|
967
|
+
"declaration": {
|
|
968
|
+
"name": "CDSAIChatMarkdown",
|
|
969
|
+
"module": "./src/markdown.js"
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"kind": "js",
|
|
974
|
+
"name": "MarkdownCustomRenderers",
|
|
975
|
+
"declaration": {
|
|
976
|
+
"name": "MarkdownCustomRenderers",
|
|
977
|
+
"module": "./src/markdown-renderer-types.js"
|
|
978
|
+
}
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
"kind": "js",
|
|
982
|
+
"name": "MarkdownRendererCodeBlockArgs",
|
|
983
|
+
"declaration": {
|
|
984
|
+
"name": "MarkdownRendererCodeBlockArgs",
|
|
985
|
+
"module": "./src/markdown-renderer-types.js"
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"kind": "js",
|
|
990
|
+
"name": "MarkdownRendererCodeBlockData",
|
|
991
|
+
"declaration": {
|
|
992
|
+
"name": "MarkdownRendererCodeBlockData",
|
|
993
|
+
"module": "./src/markdown-renderer-types.js"
|
|
994
|
+
}
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"kind": "js",
|
|
998
|
+
"name": "MarkdownRendererTableArgs",
|
|
999
|
+
"declaration": {
|
|
1000
|
+
"name": "MarkdownRendererTableArgs",
|
|
1001
|
+
"module": "./src/markdown-renderer-types.js"
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"kind": "js",
|
|
1006
|
+
"name": "MarkdownRendererTableData",
|
|
1007
|
+
"declaration": {
|
|
1008
|
+
"name": "MarkdownRendererTableData",
|
|
1009
|
+
"module": "./src/markdown-renderer-types.js"
|
|
1010
|
+
}
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"kind": "js",
|
|
1014
|
+
"name": "MarkdownItPlugin",
|
|
1015
|
+
"declaration": {
|
|
1016
|
+
"name": "MarkdownItPlugin",
|
|
1017
|
+
"module": "./src/markdown-token-tree.js"
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"kind": "js",
|
|
1022
|
+
"name": "TokenTree",
|
|
1023
|
+
"declaration": {
|
|
1024
|
+
"name": "TokenTree",
|
|
1025
|
+
"module": "./src/markdown-token-tree.js"
|
|
1026
|
+
}
|
|
983
1027
|
}
|
|
984
1028
|
]
|
|
985
1029
|
},
|
|
@@ -1202,405 +1246,191 @@
|
|
|
1202
1246
|
},
|
|
1203
1247
|
{
|
|
1204
1248
|
"kind": "javascript-module",
|
|
1205
|
-
"path": "src/
|
|
1249
|
+
"path": "src/react/history/history-content.ts",
|
|
1206
1250
|
"declarations": [
|
|
1207
1251
|
{
|
|
1208
|
-
"kind": "
|
|
1209
|
-
"name": "
|
|
1210
|
-
"parameters": [
|
|
1211
|
-
{
|
|
1212
|
-
"name": "tagName",
|
|
1213
|
-
"type": {
|
|
1214
|
-
"text": "string"
|
|
1215
|
-
},
|
|
1216
|
-
"description": "The tag name of the custom element to define."
|
|
1217
|
-
}
|
|
1218
|
-
],
|
|
1219
|
-
"description": "Class decorator factory that defines the decorated class as a custom element.\n\n```js"
|
|
1252
|
+
"kind": "variable",
|
|
1253
|
+
"name": "HistoryContent"
|
|
1220
1254
|
}
|
|
1221
1255
|
],
|
|
1222
1256
|
"exports": [
|
|
1223
1257
|
{
|
|
1224
|
-
"kind": "
|
|
1225
|
-
"name": "
|
|
1258
|
+
"kind": "js",
|
|
1259
|
+
"name": "default",
|
|
1226
1260
|
"declaration": {
|
|
1227
|
-
"name": "
|
|
1228
|
-
"module": "src/
|
|
1261
|
+
"name": "HistoryContent",
|
|
1262
|
+
"module": "src/react/history/history-content.ts"
|
|
1229
1263
|
}
|
|
1230
|
-
}
|
|
1264
|
+
}
|
|
1265
|
+
]
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
"kind": "javascript-module",
|
|
1269
|
+
"path": "src/react/history/history-delete-panel.ts",
|
|
1270
|
+
"declarations": [
|
|
1231
1271
|
{
|
|
1232
|
-
"kind": "
|
|
1233
|
-
"name": "
|
|
1272
|
+
"kind": "variable",
|
|
1273
|
+
"name": "HistoryDeletePanel"
|
|
1274
|
+
}
|
|
1275
|
+
],
|
|
1276
|
+
"exports": [
|
|
1277
|
+
{
|
|
1278
|
+
"kind": "js",
|
|
1279
|
+
"name": "default",
|
|
1234
1280
|
"declaration": {
|
|
1235
|
-
"name": "
|
|
1236
|
-
"module": "src/
|
|
1281
|
+
"name": "HistoryDeletePanel",
|
|
1282
|
+
"module": "src/react/history/history-delete-panel.ts"
|
|
1237
1283
|
}
|
|
1238
|
-
}
|
|
1284
|
+
}
|
|
1285
|
+
]
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
"kind": "javascript-module",
|
|
1289
|
+
"path": "src/react/history/history-header.ts",
|
|
1290
|
+
"declarations": [
|
|
1291
|
+
{
|
|
1292
|
+
"kind": "variable",
|
|
1293
|
+
"name": "HistoryHeader"
|
|
1294
|
+
}
|
|
1295
|
+
],
|
|
1296
|
+
"exports": [
|
|
1239
1297
|
{
|
|
1240
1298
|
"kind": "js",
|
|
1241
|
-
"name": "
|
|
1299
|
+
"name": "default",
|
|
1242
1300
|
"declaration": {
|
|
1243
|
-
"name": "
|
|
1244
|
-
"module": "src/
|
|
1301
|
+
"name": "HistoryHeader",
|
|
1302
|
+
"module": "src/react/history/history-header.ts"
|
|
1245
1303
|
}
|
|
1246
1304
|
}
|
|
1247
1305
|
]
|
|
1248
1306
|
},
|
|
1249
1307
|
{
|
|
1250
1308
|
"kind": "javascript-module",
|
|
1251
|
-
"path": "src/
|
|
1252
|
-
"declarations": [
|
|
1309
|
+
"path": "src/react/history/history-loading.ts",
|
|
1310
|
+
"declarations": [
|
|
1311
|
+
{
|
|
1312
|
+
"kind": "variable",
|
|
1313
|
+
"name": "HistoryLoading"
|
|
1314
|
+
}
|
|
1315
|
+
],
|
|
1253
1316
|
"exports": [
|
|
1254
1317
|
{
|
|
1255
1318
|
"kind": "js",
|
|
1256
|
-
"name": "
|
|
1319
|
+
"name": "default",
|
|
1257
1320
|
"declaration": {
|
|
1258
|
-
"name": "
|
|
1259
|
-
"module": "
|
|
1321
|
+
"name": "HistoryLoading",
|
|
1322
|
+
"module": "src/react/history/history-loading.ts"
|
|
1260
1323
|
}
|
|
1261
1324
|
}
|
|
1262
1325
|
]
|
|
1263
1326
|
},
|
|
1264
1327
|
{
|
|
1265
1328
|
"kind": "javascript-module",
|
|
1266
|
-
"path": "src/
|
|
1329
|
+
"path": "src/react/history/history-panel-item-input.ts",
|
|
1267
1330
|
"declarations": [
|
|
1268
1331
|
{
|
|
1269
|
-
"kind": "
|
|
1270
|
-
"name": "
|
|
1271
|
-
"parameters": [
|
|
1272
|
-
{
|
|
1273
|
-
"name": "components",
|
|
1274
|
-
"type": {
|
|
1275
|
-
"text": "Array"
|
|
1276
|
-
},
|
|
1277
|
-
"description": "array of components to render"
|
|
1278
|
-
}
|
|
1279
|
-
],
|
|
1280
|
-
"description": "This is the markdown block for JS via CDN"
|
|
1281
|
-
},
|
|
1282
|
-
{
|
|
1283
|
-
"kind": "function",
|
|
1284
|
-
"name": "cdnCss",
|
|
1285
|
-
"description": "This is the markdown block for CSS via CDN"
|
|
1332
|
+
"kind": "variable",
|
|
1333
|
+
"name": "HistoryPanelItemInput"
|
|
1286
1334
|
}
|
|
1287
1335
|
],
|
|
1288
1336
|
"exports": [
|
|
1289
1337
|
{
|
|
1290
1338
|
"kind": "js",
|
|
1291
|
-
"name": "
|
|
1339
|
+
"name": "default",
|
|
1292
1340
|
"declaration": {
|
|
1293
|
-
"name": "
|
|
1294
|
-
"module": "src/
|
|
1341
|
+
"name": "HistoryPanelItemInput",
|
|
1342
|
+
"module": "src/react/history/history-panel-item-input.ts"
|
|
1295
1343
|
}
|
|
1296
|
-
}
|
|
1344
|
+
}
|
|
1345
|
+
]
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"kind": "javascript-module",
|
|
1349
|
+
"path": "src/react/history/history-panel-item.ts",
|
|
1350
|
+
"declarations": [
|
|
1351
|
+
{
|
|
1352
|
+
"kind": "variable",
|
|
1353
|
+
"name": "HistoryPanelItem"
|
|
1354
|
+
}
|
|
1355
|
+
],
|
|
1356
|
+
"exports": [
|
|
1297
1357
|
{
|
|
1298
1358
|
"kind": "js",
|
|
1299
|
-
"name": "
|
|
1359
|
+
"name": "default",
|
|
1300
1360
|
"declaration": {
|
|
1301
|
-
"name": "
|
|
1302
|
-
"module": "src/
|
|
1361
|
+
"name": "HistoryPanelItem",
|
|
1362
|
+
"module": "src/react/history/history-panel-item.ts"
|
|
1303
1363
|
}
|
|
1304
1364
|
}
|
|
1305
1365
|
]
|
|
1306
1366
|
},
|
|
1307
1367
|
{
|
|
1308
1368
|
"kind": "javascript-module",
|
|
1309
|
-
"path": "src/
|
|
1369
|
+
"path": "src/react/history/history-panel-items.ts",
|
|
1310
1370
|
"declarations": [
|
|
1311
1371
|
{
|
|
1312
|
-
"kind": "
|
|
1313
|
-
"name": "
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
}
|
|
1318
|
-
},
|
|
1319
|
-
"description": "Gets the deepest active element, traversing through all shadow DOM boundaries.\nThis handles nested shadow roots, slotted elements, and will return the actual\nfocused element regardless of how many shadow DOM levels exist."
|
|
1320
|
-
},
|
|
1321
|
-
{
|
|
1322
|
-
"kind": "function",
|
|
1323
|
-
"name": "isElementInvisible",
|
|
1324
|
-
"return": {
|
|
1325
|
-
"type": {
|
|
1326
|
-
"text": ""
|
|
1327
|
-
}
|
|
1328
|
-
},
|
|
1329
|
-
"parameters": [
|
|
1330
|
-
{
|
|
1331
|
-
"name": "element",
|
|
1332
|
-
"type": {
|
|
1333
|
-
"text": "Element"
|
|
1334
|
-
},
|
|
1335
|
-
"description": "The DOM element to check"
|
|
1336
|
-
},
|
|
1337
|
-
{
|
|
1338
|
-
"name": "exceptions",
|
|
1339
|
-
"default": "[\"dialog\", \"[popover]\"]",
|
|
1340
|
-
"type": {
|
|
1341
|
-
"text": "string[]"
|
|
1342
|
-
},
|
|
1343
|
-
"description": "Array of selectors to ignore when checking the element (e.g., 'dialog', '[popover]')"
|
|
1344
|
-
}
|
|
1345
|
-
],
|
|
1346
|
-
"description": "Checks if an element should be ignored due to visibility or accessibility attributes."
|
|
1347
|
-
},
|
|
1348
|
-
{
|
|
1349
|
-
"kind": "function",
|
|
1350
|
-
"name": "isFocusable",
|
|
1351
|
-
"return": {
|
|
1352
|
-
"type": {
|
|
1353
|
-
"text": ""
|
|
1354
|
-
}
|
|
1355
|
-
},
|
|
1356
|
-
"parameters": [
|
|
1357
|
-
{
|
|
1358
|
-
"name": "element",
|
|
1359
|
-
"type": {
|
|
1360
|
-
"text": "Element"
|
|
1361
|
-
},
|
|
1362
|
-
"description": "The DOM element to check for focusability"
|
|
1363
|
-
}
|
|
1364
|
-
],
|
|
1365
|
-
"description": "Checks if an element is focusable. An element is considered focusable if it matches\nstandard focusable elements criteria (such as buttons, inputs, etc., that are not disabled\nand do not have a negative tabindex) or is a custom element with a shadow root that delegates focus.\nBased on https://gist.github.com/oscarmarina/9ce95f491a4c53ed01d989de4a87c0c9"
|
|
1366
|
-
},
|
|
1367
|
-
{
|
|
1368
|
-
"kind": "function",
|
|
1369
|
-
"name": "tryFocus",
|
|
1370
|
-
"return": {
|
|
1371
|
-
"type": {
|
|
1372
|
-
"text": ""
|
|
1373
|
-
}
|
|
1374
|
-
},
|
|
1375
|
-
"parameters": [
|
|
1376
|
-
{
|
|
1377
|
-
"name": "element",
|
|
1378
|
-
"type": {
|
|
1379
|
-
"text": "Element | null | undefined"
|
|
1380
|
-
},
|
|
1381
|
-
"description": "The element to attempt to focus"
|
|
1382
|
-
},
|
|
1383
|
-
{
|
|
1384
|
-
"name": "exceptions",
|
|
1385
|
-
"optional": true,
|
|
1386
|
-
"type": {
|
|
1387
|
-
"text": "string[]"
|
|
1388
|
-
},
|
|
1389
|
-
"description": "Array of selectors to ignore when checking visibility (e.g., 'dialog', '[popover]')"
|
|
1390
|
-
}
|
|
1391
|
-
],
|
|
1392
|
-
"description": "Attempts to focus an element if it's focusable, visible, and not disabled.\nThis is an enhanced version that checks visibility, accessibility attributes,\nand proper focusability before attempting to set focus. It is shadow DOM aware\nand handles slotted elements correctly."
|
|
1393
|
-
},
|
|
1394
|
-
{
|
|
1395
|
-
"kind": "function",
|
|
1396
|
-
"name": "walkComposedTree",
|
|
1397
|
-
"return": {
|
|
1398
|
-
"type": {
|
|
1399
|
-
"text": ""
|
|
1400
|
-
}
|
|
1401
|
-
},
|
|
1402
|
-
"parameters": [
|
|
1403
|
-
{
|
|
1404
|
-
"name": "node",
|
|
1405
|
-
"type": {
|
|
1406
|
-
"text": "Node"
|
|
1407
|
-
},
|
|
1408
|
-
"description": "The root node for traversal"
|
|
1409
|
-
},
|
|
1410
|
-
{
|
|
1411
|
-
"name": "whatToShow",
|
|
1412
|
-
"default": "0",
|
|
1413
|
-
"description": "NodeFilter code for node types to include (use 0 to retrieve all nodes)"
|
|
1414
|
-
},
|
|
1415
|
-
{
|
|
1416
|
-
"name": "filter",
|
|
1417
|
-
"default": "() => true",
|
|
1418
|
-
"type": {
|
|
1419
|
-
"text": "(node: Node) => boolean"
|
|
1420
|
-
},
|
|
1421
|
-
"description": "Filters nodes. Child nodes are considered even if parent does not satisfy the filter"
|
|
1422
|
-
},
|
|
1423
|
-
{
|
|
1424
|
-
"name": "skipNode",
|
|
1425
|
-
"default": "() => false",
|
|
1426
|
-
"type": {
|
|
1427
|
-
"text": "(node: Node) => boolean"
|
|
1428
|
-
},
|
|
1429
|
-
"description": "Determines whether to skip a node and its children"
|
|
1430
|
-
}
|
|
1431
|
-
],
|
|
1432
|
-
"description": "Traverse the composed tree from the root, selecting elements that meet the provided filter criteria.\nThis function properly handles Shadow DOM boundaries.\nBased on https://github.com/JanMiksovsky/elix/blob/main/src/core/dom.js#L320"
|
|
1433
|
-
},
|
|
1434
|
-
{
|
|
1435
|
-
"kind": "function",
|
|
1436
|
-
"name": "getFirstAndLastFocusableChildren",
|
|
1437
|
-
"return": {
|
|
1438
|
-
"type": {
|
|
1439
|
-
"text": ""
|
|
1440
|
-
}
|
|
1441
|
-
},
|
|
1442
|
-
"parameters": [
|
|
1443
|
-
{
|
|
1444
|
-
"name": "walker",
|
|
1445
|
-
"type": {
|
|
1446
|
-
"text": "IterableIterator<HTMLElement>"
|
|
1447
|
-
},
|
|
1448
|
-
"description": "The TreeWalker object used to traverse the node's children"
|
|
1449
|
-
}
|
|
1450
|
-
],
|
|
1451
|
-
"description": "Retrieves the first and last focusable children of a node using a TreeWalker."
|
|
1452
|
-
},
|
|
1453
|
-
{
|
|
1454
|
-
"kind": "function",
|
|
1455
|
-
"name": "focusElementAfterRepaint",
|
|
1456
|
-
"return": {
|
|
1457
|
-
"type": {
|
|
1458
|
-
"text": "void"
|
|
1459
|
-
}
|
|
1460
|
-
},
|
|
1461
|
-
"parameters": [
|
|
1462
|
-
{
|
|
1463
|
-
"name": "searchRoot",
|
|
1464
|
-
"type": {
|
|
1465
|
-
"text": "Document | Element | ShadowRoot | DocumentFragment"
|
|
1466
|
-
},
|
|
1467
|
-
"description": "Root to query (`Element`, `ShadowRoot`, `Document`, or `DocumentFragment`, e.g. Lit `renderRoot`)"
|
|
1468
|
-
},
|
|
1469
|
-
{
|
|
1470
|
-
"name": "selector",
|
|
1471
|
-
"type": {
|
|
1472
|
-
"text": "string"
|
|
1473
|
-
},
|
|
1474
|
-
"description": "CSS selector that resolves to the node to focus."
|
|
1475
|
-
}
|
|
1476
|
-
],
|
|
1477
|
-
"description": "Finds a descendant of `searchRoot` via `selector` and focuses it after the next\ntwo animation frames. Use when DOM updates (Lit, React, reorder) replace or move\nnodes so the previous focused element is detached (e.g. list pin/unpin).\n\nTries tryFocus first for visibility/focusability checks; if that does\nnot take focus (e.g. some custom element hosts), falls back to HTMLElement.focus."
|
|
1478
|
-
}
|
|
1479
|
-
],
|
|
1480
|
-
"exports": [
|
|
1481
|
-
{
|
|
1482
|
-
"kind": "js",
|
|
1483
|
-
"name": "getDeepActiveElement",
|
|
1484
|
-
"declaration": {
|
|
1485
|
-
"name": "getDeepActiveElement",
|
|
1486
|
-
"module": "src/globals/utils/focus-utils.ts"
|
|
1487
|
-
}
|
|
1488
|
-
},
|
|
1489
|
-
{
|
|
1490
|
-
"kind": "js",
|
|
1491
|
-
"name": "isElementInvisible",
|
|
1492
|
-
"declaration": {
|
|
1493
|
-
"name": "isElementInvisible",
|
|
1494
|
-
"module": "src/globals/utils/focus-utils.ts"
|
|
1495
|
-
}
|
|
1496
|
-
},
|
|
1497
|
-
{
|
|
1498
|
-
"kind": "js",
|
|
1499
|
-
"name": "isFocusable",
|
|
1500
|
-
"declaration": {
|
|
1501
|
-
"name": "isFocusable",
|
|
1502
|
-
"module": "src/globals/utils/focus-utils.ts"
|
|
1503
|
-
}
|
|
1504
|
-
},
|
|
1505
|
-
{
|
|
1506
|
-
"kind": "js",
|
|
1507
|
-
"name": "tryFocus",
|
|
1508
|
-
"declaration": {
|
|
1509
|
-
"name": "tryFocus",
|
|
1510
|
-
"module": "src/globals/utils/focus-utils.ts"
|
|
1511
|
-
}
|
|
1512
|
-
},
|
|
1513
|
-
{
|
|
1514
|
-
"kind": "js",
|
|
1515
|
-
"name": "walkComposedTree",
|
|
1516
|
-
"declaration": {
|
|
1517
|
-
"name": "walkComposedTree",
|
|
1518
|
-
"module": "src/globals/utils/focus-utils.ts"
|
|
1519
|
-
}
|
|
1520
|
-
},
|
|
1372
|
+
"kind": "variable",
|
|
1373
|
+
"name": "HistoryPanelItems"
|
|
1374
|
+
}
|
|
1375
|
+
],
|
|
1376
|
+
"exports": [
|
|
1521
1377
|
{
|
|
1522
1378
|
"kind": "js",
|
|
1523
|
-
"name": "
|
|
1524
|
-
"declaration": {
|
|
1525
|
-
"name": "getFirstAndLastFocusableChildren",
|
|
1526
|
-
"module": "src/globals/utils/focus-utils.ts"
|
|
1527
|
-
}
|
|
1528
|
-
},
|
|
1529
|
-
{
|
|
1530
|
-
"kind": "js",
|
|
1531
|
-
"name": "focusElementAfterRepaint",
|
|
1379
|
+
"name": "default",
|
|
1532
1380
|
"declaration": {
|
|
1533
|
-
"name": "
|
|
1534
|
-
"module": "src/
|
|
1381
|
+
"name": "HistoryPanelItems",
|
|
1382
|
+
"module": "src/react/history/history-panel-items.ts"
|
|
1535
1383
|
}
|
|
1536
1384
|
}
|
|
1537
1385
|
]
|
|
1538
1386
|
},
|
|
1539
1387
|
{
|
|
1540
1388
|
"kind": "javascript-module",
|
|
1541
|
-
"path": "src/
|
|
1389
|
+
"path": "src/react/history/history-panel-menu.ts",
|
|
1542
1390
|
"declarations": [
|
|
1543
1391
|
{
|
|
1544
|
-
"kind": "
|
|
1545
|
-
"name": "
|
|
1546
|
-
"return": {
|
|
1547
|
-
"type": {
|
|
1548
|
-
"text": ""
|
|
1549
|
-
}
|
|
1550
|
-
},
|
|
1551
|
-
"description": "Determines if the document is in RTL (right-to-left) mode.\nChecks both document.dir and document.documentElement.dir for maximum compatibility."
|
|
1392
|
+
"kind": "variable",
|
|
1393
|
+
"name": "HistoryPanelMenu"
|
|
1552
1394
|
}
|
|
1553
1395
|
],
|
|
1554
1396
|
"exports": [
|
|
1555
1397
|
{
|
|
1556
1398
|
"kind": "js",
|
|
1557
|
-
"name": "
|
|
1399
|
+
"name": "default",
|
|
1558
1400
|
"declaration": {
|
|
1559
|
-
"name": "
|
|
1560
|
-
"module": "src/
|
|
1401
|
+
"name": "HistoryPanelMenu",
|
|
1402
|
+
"module": "src/react/history/history-panel-menu.ts"
|
|
1561
1403
|
}
|
|
1562
1404
|
}
|
|
1563
1405
|
]
|
|
1564
1406
|
},
|
|
1565
1407
|
{
|
|
1566
1408
|
"kind": "javascript-module",
|
|
1567
|
-
"path": "src/
|
|
1409
|
+
"path": "src/react/history/history-panel.ts",
|
|
1568
1410
|
"declarations": [
|
|
1569
1411
|
{
|
|
1570
|
-
"kind": "
|
|
1571
|
-
"name": "
|
|
1572
|
-
"return": {
|
|
1573
|
-
"type": {
|
|
1574
|
-
"text": "string"
|
|
1575
|
-
}
|
|
1576
|
-
},
|
|
1577
|
-
"description": "Generates a v4 UUID. Uses `crypto.randomUUID` when available, otherwise falls back to a simple implementation."
|
|
1412
|
+
"kind": "variable",
|
|
1413
|
+
"name": "HistoryPanel"
|
|
1578
1414
|
}
|
|
1579
1415
|
],
|
|
1580
1416
|
"exports": [
|
|
1581
1417
|
{
|
|
1582
1418
|
"kind": "js",
|
|
1583
|
-
"name": "
|
|
1419
|
+
"name": "default",
|
|
1584
1420
|
"declaration": {
|
|
1585
|
-
"name": "
|
|
1586
|
-
"module": "src/
|
|
1421
|
+
"name": "HistoryPanel",
|
|
1422
|
+
"module": "src/react/history/history-panel.ts"
|
|
1587
1423
|
}
|
|
1588
1424
|
}
|
|
1589
1425
|
]
|
|
1590
1426
|
},
|
|
1591
1427
|
{
|
|
1592
1428
|
"kind": "javascript-module",
|
|
1593
|
-
"path": "src/react/
|
|
1594
|
-
"declarations": [],
|
|
1595
|
-
"exports": []
|
|
1596
|
-
},
|
|
1597
|
-
{
|
|
1598
|
-
"kind": "javascript-module",
|
|
1599
|
-
"path": "src/react/history/history-content.ts",
|
|
1429
|
+
"path": "src/react/history/history-search-item.ts",
|
|
1600
1430
|
"declarations": [
|
|
1601
1431
|
{
|
|
1602
1432
|
"kind": "variable",
|
|
1603
|
-
"name": "
|
|
1433
|
+
"name": "HistorySearchItem"
|
|
1604
1434
|
}
|
|
1605
1435
|
],
|
|
1606
1436
|
"exports": [
|
|
@@ -1608,19 +1438,19 @@
|
|
|
1608
1438
|
"kind": "js",
|
|
1609
1439
|
"name": "default",
|
|
1610
1440
|
"declaration": {
|
|
1611
|
-
"name": "
|
|
1612
|
-
"module": "src/react/history/history-
|
|
1441
|
+
"name": "HistorySearchItem",
|
|
1442
|
+
"module": "src/react/history/history-search-item.ts"
|
|
1613
1443
|
}
|
|
1614
1444
|
}
|
|
1615
1445
|
]
|
|
1616
1446
|
},
|
|
1617
1447
|
{
|
|
1618
1448
|
"kind": "javascript-module",
|
|
1619
|
-
"path": "src/react/history/history-
|
|
1449
|
+
"path": "src/react/history/history-shell.ts",
|
|
1620
1450
|
"declarations": [
|
|
1621
1451
|
{
|
|
1622
1452
|
"kind": "variable",
|
|
1623
|
-
"name": "
|
|
1453
|
+
"name": "HistoryShell"
|
|
1624
1454
|
}
|
|
1625
1455
|
],
|
|
1626
1456
|
"exports": [
|
|
@@ -1628,19 +1458,19 @@
|
|
|
1628
1458
|
"kind": "js",
|
|
1629
1459
|
"name": "default",
|
|
1630
1460
|
"declaration": {
|
|
1631
|
-
"name": "
|
|
1632
|
-
"module": "src/react/history/history-
|
|
1461
|
+
"name": "HistoryShell",
|
|
1462
|
+
"module": "src/react/history/history-shell.ts"
|
|
1633
1463
|
}
|
|
1634
1464
|
}
|
|
1635
1465
|
]
|
|
1636
1466
|
},
|
|
1637
1467
|
{
|
|
1638
1468
|
"kind": "javascript-module",
|
|
1639
|
-
"path": "src/react/history/history-
|
|
1469
|
+
"path": "src/react/history/history-toolbar.ts",
|
|
1640
1470
|
"declarations": [
|
|
1641
1471
|
{
|
|
1642
1472
|
"kind": "variable",
|
|
1643
|
-
"name": "
|
|
1473
|
+
"name": "HistoryToolbar"
|
|
1644
1474
|
}
|
|
1645
1475
|
],
|
|
1646
1476
|
"exports": [
|
|
@@ -1648,291 +1478,505 @@
|
|
|
1648
1478
|
"kind": "js",
|
|
1649
1479
|
"name": "default",
|
|
1650
1480
|
"declaration": {
|
|
1651
|
-
"name": "
|
|
1652
|
-
"module": "src/react/history/history-
|
|
1481
|
+
"name": "HistoryToolbar",
|
|
1482
|
+
"module": "src/react/history/history-toolbar.ts"
|
|
1653
1483
|
}
|
|
1654
1484
|
}
|
|
1655
1485
|
]
|
|
1656
1486
|
},
|
|
1657
1487
|
{
|
|
1658
1488
|
"kind": "javascript-module",
|
|
1659
|
-
"path": "src/react/history/
|
|
1660
|
-
"declarations": [
|
|
1661
|
-
{
|
|
1662
|
-
"kind": "variable",
|
|
1663
|
-
"name": "HistoryLoading"
|
|
1664
|
-
}
|
|
1665
|
-
],
|
|
1489
|
+
"path": "src/react/history/index.ts",
|
|
1490
|
+
"declarations": [],
|
|
1666
1491
|
"exports": [
|
|
1667
1492
|
{
|
|
1668
1493
|
"kind": "js",
|
|
1669
|
-
"name": "
|
|
1494
|
+
"name": "HistoryShell",
|
|
1670
1495
|
"declaration": {
|
|
1671
|
-
"name": "
|
|
1672
|
-
"module": "
|
|
1496
|
+
"name": "default",
|
|
1497
|
+
"module": "./history-shell.js"
|
|
1673
1498
|
}
|
|
1674
|
-
}
|
|
1675
|
-
]
|
|
1676
|
-
},
|
|
1677
|
-
{
|
|
1678
|
-
"kind": "javascript-module",
|
|
1679
|
-
"path": "src/react/history/history-panel-item-input.ts",
|
|
1680
|
-
"declarations": [
|
|
1499
|
+
},
|
|
1681
1500
|
{
|
|
1682
|
-
"kind": "
|
|
1683
|
-
"name": "
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1501
|
+
"kind": "js",
|
|
1502
|
+
"name": "HistoryHeader",
|
|
1503
|
+
"declaration": {
|
|
1504
|
+
"name": "default",
|
|
1505
|
+
"module": "./history-header.js"
|
|
1506
|
+
}
|
|
1507
|
+
},
|
|
1687
1508
|
{
|
|
1688
1509
|
"kind": "js",
|
|
1689
|
-
"name": "
|
|
1510
|
+
"name": "HistoryToolbar",
|
|
1690
1511
|
"declaration": {
|
|
1691
|
-
"name": "
|
|
1692
|
-
"module": "
|
|
1512
|
+
"name": "default",
|
|
1513
|
+
"module": "./history-toolbar.js"
|
|
1693
1514
|
}
|
|
1694
|
-
}
|
|
1695
|
-
]
|
|
1696
|
-
},
|
|
1697
|
-
{
|
|
1698
|
-
"kind": "javascript-module",
|
|
1699
|
-
"path": "src/react/history/history-panel-item.ts",
|
|
1700
|
-
"declarations": [
|
|
1515
|
+
},
|
|
1701
1516
|
{
|
|
1702
|
-
"kind": "
|
|
1703
|
-
"name": "
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1517
|
+
"kind": "js",
|
|
1518
|
+
"name": "HistoryContent",
|
|
1519
|
+
"declaration": {
|
|
1520
|
+
"name": "default",
|
|
1521
|
+
"module": "./history-content.js"
|
|
1522
|
+
}
|
|
1523
|
+
},
|
|
1707
1524
|
{
|
|
1708
1525
|
"kind": "js",
|
|
1709
|
-
"name": "
|
|
1526
|
+
"name": "HistoryLoading",
|
|
1710
1527
|
"declaration": {
|
|
1711
|
-
"name": "
|
|
1712
|
-
"module": "
|
|
1528
|
+
"name": "default",
|
|
1529
|
+
"module": "./history-loading.js"
|
|
1713
1530
|
}
|
|
1714
|
-
}
|
|
1715
|
-
]
|
|
1716
|
-
},
|
|
1717
|
-
{
|
|
1718
|
-
"kind": "javascript-module",
|
|
1719
|
-
"path": "src/react/history/history-panel-items.ts",
|
|
1720
|
-
"declarations": [
|
|
1531
|
+
},
|
|
1721
1532
|
{
|
|
1722
|
-
"kind": "
|
|
1723
|
-
"name": "
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1533
|
+
"kind": "js",
|
|
1534
|
+
"name": "HistoryPanel",
|
|
1535
|
+
"declaration": {
|
|
1536
|
+
"name": "default",
|
|
1537
|
+
"module": "./history-panel.js"
|
|
1538
|
+
}
|
|
1539
|
+
},
|
|
1727
1540
|
{
|
|
1728
1541
|
"kind": "js",
|
|
1729
|
-
"name": "
|
|
1542
|
+
"name": "HistoryPanelMenu",
|
|
1730
1543
|
"declaration": {
|
|
1731
|
-
"name": "
|
|
1732
|
-
"module": "
|
|
1544
|
+
"name": "default",
|
|
1545
|
+
"module": "./history-panel-menu.js"
|
|
1733
1546
|
}
|
|
1734
|
-
}
|
|
1735
|
-
]
|
|
1736
|
-
},
|
|
1737
|
-
{
|
|
1738
|
-
"kind": "javascript-module",
|
|
1739
|
-
"path": "src/react/history/history-panel-menu.ts",
|
|
1740
|
-
"declarations": [
|
|
1547
|
+
},
|
|
1741
1548
|
{
|
|
1742
|
-
"kind": "
|
|
1743
|
-
"name": "
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1549
|
+
"kind": "js",
|
|
1550
|
+
"name": "HistoryPanelItem",
|
|
1551
|
+
"declaration": {
|
|
1552
|
+
"name": "default",
|
|
1553
|
+
"module": "./history-panel-item.js"
|
|
1554
|
+
}
|
|
1555
|
+
},
|
|
1747
1556
|
{
|
|
1748
1557
|
"kind": "js",
|
|
1749
|
-
"name": "
|
|
1558
|
+
"name": "HistoryPanelItems",
|
|
1750
1559
|
"declaration": {
|
|
1751
|
-
"name": "
|
|
1752
|
-
"module": "
|
|
1560
|
+
"name": "default",
|
|
1561
|
+
"module": "./history-panel-items.js"
|
|
1562
|
+
}
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
"kind": "js",
|
|
1566
|
+
"name": "HistorySearchItem",
|
|
1567
|
+
"declaration": {
|
|
1568
|
+
"name": "default",
|
|
1569
|
+
"module": "./history-search-item.js"
|
|
1570
|
+
}
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
"kind": "js",
|
|
1574
|
+
"name": "HistoryPanelItemInput",
|
|
1575
|
+
"declaration": {
|
|
1576
|
+
"name": "default",
|
|
1577
|
+
"module": "./history-panel-item-input.js"
|
|
1578
|
+
}
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
"kind": "js",
|
|
1582
|
+
"name": "HistoryDeletePanel",
|
|
1583
|
+
"declaration": {
|
|
1584
|
+
"name": "default",
|
|
1585
|
+
"module": "./history-delete-panel.js"
|
|
1753
1586
|
}
|
|
1754
1587
|
}
|
|
1755
1588
|
]
|
|
1756
1589
|
},
|
|
1757
1590
|
{
|
|
1758
1591
|
"kind": "javascript-module",
|
|
1759
|
-
"path": "src/react/
|
|
1592
|
+
"path": "src/react/__tests__/jest.setup.ts",
|
|
1593
|
+
"declarations": [],
|
|
1594
|
+
"exports": []
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
"kind": "javascript-module",
|
|
1598
|
+
"path": "src/globals/decorators/carbon-element.ts",
|
|
1760
1599
|
"declarations": [
|
|
1761
1600
|
{
|
|
1762
|
-
"kind": "
|
|
1763
|
-
"name": "
|
|
1601
|
+
"kind": "function",
|
|
1602
|
+
"name": "carbonElement",
|
|
1603
|
+
"parameters": [
|
|
1604
|
+
{
|
|
1605
|
+
"name": "tagName",
|
|
1606
|
+
"type": {
|
|
1607
|
+
"text": "string"
|
|
1608
|
+
},
|
|
1609
|
+
"description": "The tag name of the custom element to define."
|
|
1610
|
+
}
|
|
1611
|
+
],
|
|
1612
|
+
"description": "Class decorator factory that defines the decorated class as a custom element.\n\n```js"
|
|
1764
1613
|
}
|
|
1765
1614
|
],
|
|
1766
1615
|
"exports": [
|
|
1616
|
+
{
|
|
1617
|
+
"kind": "custom-element-definition",
|
|
1618
|
+
"name": "tagName",
|
|
1619
|
+
"declaration": {
|
|
1620
|
+
"name": "anonymous_0",
|
|
1621
|
+
"module": "src/globals/decorators/carbon-element.ts"
|
|
1622
|
+
}
|
|
1623
|
+
},
|
|
1624
|
+
{
|
|
1625
|
+
"kind": "custom-element-definition",
|
|
1626
|
+
"name": "tagName",
|
|
1627
|
+
"declaration": {
|
|
1628
|
+
"name": "clazz",
|
|
1629
|
+
"module": "src/globals/decorators/carbon-element.ts"
|
|
1630
|
+
}
|
|
1631
|
+
},
|
|
1767
1632
|
{
|
|
1768
1633
|
"kind": "js",
|
|
1769
|
-
"name": "
|
|
1634
|
+
"name": "carbonElement",
|
|
1770
1635
|
"declaration": {
|
|
1771
|
-
"name": "
|
|
1772
|
-
"module": "src/
|
|
1636
|
+
"name": "carbonElement",
|
|
1637
|
+
"module": "src/globals/decorators/carbon-element.ts"
|
|
1773
1638
|
}
|
|
1774
1639
|
}
|
|
1775
1640
|
]
|
|
1776
1641
|
},
|
|
1777
1642
|
{
|
|
1778
1643
|
"kind": "javascript-module",
|
|
1779
|
-
"path": "src/
|
|
1780
|
-
"declarations": [
|
|
1781
|
-
{
|
|
1782
|
-
"kind": "variable",
|
|
1783
|
-
"name": "HistorySearchItem"
|
|
1784
|
-
}
|
|
1785
|
-
],
|
|
1644
|
+
"path": "src/globals/decorators/index.ts",
|
|
1645
|
+
"declarations": [],
|
|
1786
1646
|
"exports": [
|
|
1787
1647
|
{
|
|
1788
1648
|
"kind": "js",
|
|
1789
|
-
"name": "
|
|
1649
|
+
"name": "carbonElement",
|
|
1790
1650
|
"declaration": {
|
|
1791
|
-
"name": "
|
|
1792
|
-
"module": "
|
|
1651
|
+
"name": "carbonElement",
|
|
1652
|
+
"module": "./carbon-element.js"
|
|
1793
1653
|
}
|
|
1794
1654
|
}
|
|
1795
1655
|
]
|
|
1796
1656
|
},
|
|
1797
1657
|
{
|
|
1798
1658
|
"kind": "javascript-module",
|
|
1799
|
-
"path": "src/
|
|
1659
|
+
"path": "src/globals/internal/storybook-cdn.ts",
|
|
1800
1660
|
"declarations": [
|
|
1801
1661
|
{
|
|
1802
|
-
"kind": "
|
|
1803
|
-
"name": "
|
|
1662
|
+
"kind": "function",
|
|
1663
|
+
"name": "cdnJs",
|
|
1664
|
+
"parameters": [
|
|
1665
|
+
{
|
|
1666
|
+
"name": "components",
|
|
1667
|
+
"type": {
|
|
1668
|
+
"text": "Array"
|
|
1669
|
+
},
|
|
1670
|
+
"description": "array of components to render"
|
|
1671
|
+
}
|
|
1672
|
+
],
|
|
1673
|
+
"description": "This is the markdown block for JS via CDN"
|
|
1674
|
+
},
|
|
1675
|
+
{
|
|
1676
|
+
"kind": "function",
|
|
1677
|
+
"name": "cdnCss",
|
|
1678
|
+
"description": "This is the markdown block for CSS via CDN"
|
|
1804
1679
|
}
|
|
1805
1680
|
],
|
|
1806
1681
|
"exports": [
|
|
1807
1682
|
{
|
|
1808
1683
|
"kind": "js",
|
|
1809
|
-
"name": "
|
|
1684
|
+
"name": "cdnJs",
|
|
1810
1685
|
"declaration": {
|
|
1811
|
-
"name": "
|
|
1812
|
-
"module": "src/
|
|
1686
|
+
"name": "cdnJs",
|
|
1687
|
+
"module": "src/globals/internal/storybook-cdn.ts"
|
|
1813
1688
|
}
|
|
1814
|
-
}
|
|
1815
|
-
]
|
|
1816
|
-
},
|
|
1817
|
-
{
|
|
1818
|
-
"kind": "javascript-module",
|
|
1819
|
-
"path": "src/react/history/history-toolbar.ts",
|
|
1820
|
-
"declarations": [
|
|
1821
|
-
{
|
|
1822
|
-
"kind": "variable",
|
|
1823
|
-
"name": "HistoryToolbar"
|
|
1824
|
-
}
|
|
1825
|
-
],
|
|
1826
|
-
"exports": [
|
|
1689
|
+
},
|
|
1827
1690
|
{
|
|
1828
1691
|
"kind": "js",
|
|
1829
|
-
"name": "
|
|
1692
|
+
"name": "cdnCss",
|
|
1830
1693
|
"declaration": {
|
|
1831
|
-
"name": "
|
|
1832
|
-
"module": "src/
|
|
1694
|
+
"name": "cdnCss",
|
|
1695
|
+
"module": "src/globals/internal/storybook-cdn.ts"
|
|
1833
1696
|
}
|
|
1834
1697
|
}
|
|
1835
1698
|
]
|
|
1836
1699
|
},
|
|
1837
1700
|
{
|
|
1838
1701
|
"kind": "javascript-module",
|
|
1839
|
-
"path": "src/
|
|
1840
|
-
"declarations": [
|
|
1841
|
-
"exports": [
|
|
1702
|
+
"path": "src/globals/utils/focus-utils.ts",
|
|
1703
|
+
"declarations": [
|
|
1842
1704
|
{
|
|
1843
|
-
"kind": "
|
|
1844
|
-
"name": "
|
|
1845
|
-
"
|
|
1846
|
-
"
|
|
1847
|
-
|
|
1848
|
-
|
|
1705
|
+
"kind": "function",
|
|
1706
|
+
"name": "getDeepActiveElement",
|
|
1707
|
+
"return": {
|
|
1708
|
+
"type": {
|
|
1709
|
+
"text": ""
|
|
1710
|
+
}
|
|
1711
|
+
},
|
|
1712
|
+
"description": "Gets the deepest active element, traversing through all shadow DOM boundaries.\nThis handles nested shadow roots, slotted elements, and will return the actual\nfocused element regardless of how many shadow DOM levels exist."
|
|
1849
1713
|
},
|
|
1850
1714
|
{
|
|
1851
|
-
"kind": "
|
|
1852
|
-
"name": "
|
|
1853
|
-
"
|
|
1854
|
-
"
|
|
1855
|
-
|
|
1856
|
-
|
|
1715
|
+
"kind": "function",
|
|
1716
|
+
"name": "isElementInvisible",
|
|
1717
|
+
"return": {
|
|
1718
|
+
"type": {
|
|
1719
|
+
"text": ""
|
|
1720
|
+
}
|
|
1721
|
+
},
|
|
1722
|
+
"parameters": [
|
|
1723
|
+
{
|
|
1724
|
+
"name": "element",
|
|
1725
|
+
"type": {
|
|
1726
|
+
"text": "Element"
|
|
1727
|
+
},
|
|
1728
|
+
"description": "The DOM element to check"
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
"name": "exceptions",
|
|
1732
|
+
"default": "[\"dialog\", \"[popover]\"]",
|
|
1733
|
+
"type": {
|
|
1734
|
+
"text": "string[]"
|
|
1735
|
+
},
|
|
1736
|
+
"description": "Array of selectors to ignore when checking the element (e.g., 'dialog', '[popover]')"
|
|
1737
|
+
}
|
|
1738
|
+
],
|
|
1739
|
+
"description": "Checks if an element should be ignored due to visibility or accessibility attributes."
|
|
1857
1740
|
},
|
|
1858
1741
|
{
|
|
1859
|
-
"kind": "
|
|
1860
|
-
"name": "
|
|
1861
|
-
"
|
|
1862
|
-
"
|
|
1863
|
-
|
|
1864
|
-
|
|
1742
|
+
"kind": "function",
|
|
1743
|
+
"name": "isFocusable",
|
|
1744
|
+
"return": {
|
|
1745
|
+
"type": {
|
|
1746
|
+
"text": ""
|
|
1747
|
+
}
|
|
1748
|
+
},
|
|
1749
|
+
"parameters": [
|
|
1750
|
+
{
|
|
1751
|
+
"name": "element",
|
|
1752
|
+
"type": {
|
|
1753
|
+
"text": "Element"
|
|
1754
|
+
},
|
|
1755
|
+
"description": "The DOM element to check for focusability"
|
|
1756
|
+
}
|
|
1757
|
+
],
|
|
1758
|
+
"description": "Checks if an element is focusable. An element is considered focusable if it matches\nstandard focusable elements criteria (such as buttons, inputs, etc., that are not disabled\nand do not have a negative tabindex) or is a custom element with a shadow root that delegates focus.\nBased on https://gist.github.com/oscarmarina/9ce95f491a4c53ed01d989de4a87c0c9"
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
"kind": "function",
|
|
1762
|
+
"name": "tryFocus",
|
|
1763
|
+
"return": {
|
|
1764
|
+
"type": {
|
|
1765
|
+
"text": ""
|
|
1766
|
+
}
|
|
1767
|
+
},
|
|
1768
|
+
"parameters": [
|
|
1769
|
+
{
|
|
1770
|
+
"name": "element",
|
|
1771
|
+
"type": {
|
|
1772
|
+
"text": "Element | null | undefined"
|
|
1773
|
+
},
|
|
1774
|
+
"description": "The element to attempt to focus"
|
|
1775
|
+
},
|
|
1776
|
+
{
|
|
1777
|
+
"name": "exceptions",
|
|
1778
|
+
"optional": true,
|
|
1779
|
+
"type": {
|
|
1780
|
+
"text": "string[]"
|
|
1781
|
+
},
|
|
1782
|
+
"description": "Array of selectors to ignore when checking visibility (e.g., 'dialog', '[popover]')"
|
|
1783
|
+
}
|
|
1784
|
+
],
|
|
1785
|
+
"description": "Attempts to focus an element if it's focusable, visible, and not disabled.\nThis is an enhanced version that checks visibility, accessibility attributes,\nand proper focusability before attempting to set focus. It is shadow DOM aware\nand handles slotted elements correctly."
|
|
1865
1786
|
},
|
|
1787
|
+
{
|
|
1788
|
+
"kind": "function",
|
|
1789
|
+
"name": "walkComposedTree",
|
|
1790
|
+
"return": {
|
|
1791
|
+
"type": {
|
|
1792
|
+
"text": ""
|
|
1793
|
+
}
|
|
1794
|
+
},
|
|
1795
|
+
"parameters": [
|
|
1796
|
+
{
|
|
1797
|
+
"name": "node",
|
|
1798
|
+
"type": {
|
|
1799
|
+
"text": "Node"
|
|
1800
|
+
},
|
|
1801
|
+
"description": "The root node for traversal"
|
|
1802
|
+
},
|
|
1803
|
+
{
|
|
1804
|
+
"name": "whatToShow",
|
|
1805
|
+
"default": "0",
|
|
1806
|
+
"description": "NodeFilter code for node types to include (use 0 to retrieve all nodes)"
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
"name": "filter",
|
|
1810
|
+
"default": "() => true",
|
|
1811
|
+
"type": {
|
|
1812
|
+
"text": "(node: Node) => boolean"
|
|
1813
|
+
},
|
|
1814
|
+
"description": "Filters nodes. Child nodes are considered even if parent does not satisfy the filter"
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
"name": "skipNode",
|
|
1818
|
+
"default": "() => false",
|
|
1819
|
+
"type": {
|
|
1820
|
+
"text": "(node: Node) => boolean"
|
|
1821
|
+
},
|
|
1822
|
+
"description": "Determines whether to skip a node and its children"
|
|
1823
|
+
}
|
|
1824
|
+
],
|
|
1825
|
+
"description": "Traverse the composed tree from the root, selecting elements that meet the provided filter criteria.\nThis function properly handles Shadow DOM boundaries.\nBased on https://github.com/JanMiksovsky/elix/blob/main/src/core/dom.js#L320"
|
|
1826
|
+
},
|
|
1827
|
+
{
|
|
1828
|
+
"kind": "function",
|
|
1829
|
+
"name": "getFirstAndLastFocusableChildren",
|
|
1830
|
+
"return": {
|
|
1831
|
+
"type": {
|
|
1832
|
+
"text": ""
|
|
1833
|
+
}
|
|
1834
|
+
},
|
|
1835
|
+
"parameters": [
|
|
1836
|
+
{
|
|
1837
|
+
"name": "walker",
|
|
1838
|
+
"type": {
|
|
1839
|
+
"text": "IterableIterator<HTMLElement>"
|
|
1840
|
+
},
|
|
1841
|
+
"description": "The TreeWalker object used to traverse the node's children"
|
|
1842
|
+
}
|
|
1843
|
+
],
|
|
1844
|
+
"description": "Retrieves the first and last focusable children of a node using a TreeWalker."
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
"kind": "function",
|
|
1848
|
+
"name": "focusElementAfterRepaint",
|
|
1849
|
+
"return": {
|
|
1850
|
+
"type": {
|
|
1851
|
+
"text": "void"
|
|
1852
|
+
}
|
|
1853
|
+
},
|
|
1854
|
+
"parameters": [
|
|
1855
|
+
{
|
|
1856
|
+
"name": "searchRoot",
|
|
1857
|
+
"type": {
|
|
1858
|
+
"text": "Document | Element | ShadowRoot | DocumentFragment"
|
|
1859
|
+
},
|
|
1860
|
+
"description": "Root to query (`Element`, `ShadowRoot`, `Document`, or `DocumentFragment`, e.g. Lit `renderRoot`)"
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
"name": "selector",
|
|
1864
|
+
"type": {
|
|
1865
|
+
"text": "string"
|
|
1866
|
+
},
|
|
1867
|
+
"description": "CSS selector that resolves to the node to focus."
|
|
1868
|
+
}
|
|
1869
|
+
],
|
|
1870
|
+
"description": "Finds a descendant of `searchRoot` via `selector` and focuses it after the next\ntwo animation frames. Use when DOM updates (Lit, React, reorder) replace or move\nnodes so the previous focused element is detached (e.g. list pin/unpin).\n\nTries tryFocus first for visibility/focusability checks; if that does\nnot take focus (e.g. some custom element hosts), falls back to HTMLElement.focus."
|
|
1871
|
+
}
|
|
1872
|
+
],
|
|
1873
|
+
"exports": [
|
|
1866
1874
|
{
|
|
1867
1875
|
"kind": "js",
|
|
1868
|
-
"name": "
|
|
1876
|
+
"name": "getDeepActiveElement",
|
|
1869
1877
|
"declaration": {
|
|
1870
|
-
"name": "
|
|
1871
|
-
"module": "
|
|
1878
|
+
"name": "getDeepActiveElement",
|
|
1879
|
+
"module": "src/globals/utils/focus-utils.ts"
|
|
1872
1880
|
}
|
|
1873
1881
|
},
|
|
1874
1882
|
{
|
|
1875
1883
|
"kind": "js",
|
|
1876
|
-
"name": "
|
|
1884
|
+
"name": "isElementInvisible",
|
|
1877
1885
|
"declaration": {
|
|
1878
|
-
"name": "
|
|
1879
|
-
"module": "
|
|
1886
|
+
"name": "isElementInvisible",
|
|
1887
|
+
"module": "src/globals/utils/focus-utils.ts"
|
|
1880
1888
|
}
|
|
1881
1889
|
},
|
|
1882
1890
|
{
|
|
1883
1891
|
"kind": "js",
|
|
1884
|
-
"name": "
|
|
1892
|
+
"name": "isFocusable",
|
|
1885
1893
|
"declaration": {
|
|
1886
|
-
"name": "
|
|
1887
|
-
"module": "
|
|
1894
|
+
"name": "isFocusable",
|
|
1895
|
+
"module": "src/globals/utils/focus-utils.ts"
|
|
1888
1896
|
}
|
|
1889
1897
|
},
|
|
1890
1898
|
{
|
|
1891
1899
|
"kind": "js",
|
|
1892
|
-
"name": "
|
|
1900
|
+
"name": "tryFocus",
|
|
1893
1901
|
"declaration": {
|
|
1894
|
-
"name": "
|
|
1895
|
-
"module": "
|
|
1902
|
+
"name": "tryFocus",
|
|
1903
|
+
"module": "src/globals/utils/focus-utils.ts"
|
|
1896
1904
|
}
|
|
1897
1905
|
},
|
|
1898
1906
|
{
|
|
1899
1907
|
"kind": "js",
|
|
1900
|
-
"name": "
|
|
1908
|
+
"name": "walkComposedTree",
|
|
1901
1909
|
"declaration": {
|
|
1902
|
-
"name": "
|
|
1903
|
-
"module": "
|
|
1910
|
+
"name": "walkComposedTree",
|
|
1911
|
+
"module": "src/globals/utils/focus-utils.ts"
|
|
1904
1912
|
}
|
|
1905
1913
|
},
|
|
1906
1914
|
{
|
|
1907
1915
|
"kind": "js",
|
|
1908
|
-
"name": "
|
|
1916
|
+
"name": "getFirstAndLastFocusableChildren",
|
|
1909
1917
|
"declaration": {
|
|
1910
|
-
"name": "
|
|
1911
|
-
"module": "
|
|
1918
|
+
"name": "getFirstAndLastFocusableChildren",
|
|
1919
|
+
"module": "src/globals/utils/focus-utils.ts"
|
|
1912
1920
|
}
|
|
1913
1921
|
},
|
|
1914
1922
|
{
|
|
1915
1923
|
"kind": "js",
|
|
1916
|
-
"name": "
|
|
1917
|
-
"declaration": {
|
|
1918
|
-
"name": "
|
|
1919
|
-
"module": "
|
|
1924
|
+
"name": "focusElementAfterRepaint",
|
|
1925
|
+
"declaration": {
|
|
1926
|
+
"name": "focusElementAfterRepaint",
|
|
1927
|
+
"module": "src/globals/utils/focus-utils.ts"
|
|
1920
1928
|
}
|
|
1921
|
-
}
|
|
1929
|
+
}
|
|
1930
|
+
]
|
|
1931
|
+
},
|
|
1932
|
+
{
|
|
1933
|
+
"kind": "javascript-module",
|
|
1934
|
+
"path": "src/globals/utils/rtl-utils.ts",
|
|
1935
|
+
"declarations": [
|
|
1936
|
+
{
|
|
1937
|
+
"kind": "function",
|
|
1938
|
+
"name": "isDirectionRTL",
|
|
1939
|
+
"return": {
|
|
1940
|
+
"type": {
|
|
1941
|
+
"text": ""
|
|
1942
|
+
}
|
|
1943
|
+
},
|
|
1944
|
+
"description": "Determines if the document is in RTL (right-to-left) mode.\nChecks both document.dir and document.documentElement.dir for maximum compatibility."
|
|
1945
|
+
}
|
|
1946
|
+
],
|
|
1947
|
+
"exports": [
|
|
1922
1948
|
{
|
|
1923
1949
|
"kind": "js",
|
|
1924
|
-
"name": "
|
|
1950
|
+
"name": "isDirectionRTL",
|
|
1925
1951
|
"declaration": {
|
|
1926
|
-
"name": "
|
|
1927
|
-
"module": "
|
|
1952
|
+
"name": "isDirectionRTL",
|
|
1953
|
+
"module": "src/globals/utils/rtl-utils.ts"
|
|
1928
1954
|
}
|
|
1929
|
-
}
|
|
1955
|
+
}
|
|
1956
|
+
]
|
|
1957
|
+
},
|
|
1958
|
+
{
|
|
1959
|
+
"kind": "javascript-module",
|
|
1960
|
+
"path": "src/globals/utils/uuid.ts",
|
|
1961
|
+
"declarations": [
|
|
1962
|
+
{
|
|
1963
|
+
"kind": "function",
|
|
1964
|
+
"name": "uuid",
|
|
1965
|
+
"return": {
|
|
1966
|
+
"type": {
|
|
1967
|
+
"text": "string"
|
|
1968
|
+
}
|
|
1969
|
+
},
|
|
1970
|
+
"description": "Generates a v4 UUID. Uses `crypto.randomUUID` when available, otherwise falls back to a simple implementation."
|
|
1971
|
+
}
|
|
1972
|
+
],
|
|
1973
|
+
"exports": [
|
|
1930
1974
|
{
|
|
1931
1975
|
"kind": "js",
|
|
1932
|
-
"name": "
|
|
1976
|
+
"name": "uuid",
|
|
1933
1977
|
"declaration": {
|
|
1934
|
-
"name": "
|
|
1935
|
-
"module": "
|
|
1978
|
+
"name": "uuid",
|
|
1979
|
+
"module": "src/globals/utils/uuid.ts"
|
|
1936
1980
|
}
|
|
1937
1981
|
}
|
|
1938
1982
|
]
|
|
@@ -4646,6 +4690,17 @@
|
|
|
4646
4690
|
"attribute": "show-actions",
|
|
4647
4691
|
"reflects": true
|
|
4648
4692
|
},
|
|
4693
|
+
{
|
|
4694
|
+
"kind": "field",
|
|
4695
|
+
"name": "parentMenuExpanded",
|
|
4696
|
+
"type": {
|
|
4697
|
+
"text": "boolean"
|
|
4698
|
+
},
|
|
4699
|
+
"default": "true",
|
|
4700
|
+
"description": "`true` if the parent menu is expanded.\nThis is automatically set based on the parent history-panel-menu's expanded attribute.",
|
|
4701
|
+
"attribute": "parent-menu-expanded",
|
|
4702
|
+
"reflects": true
|
|
4703
|
+
},
|
|
4649
4704
|
{
|
|
4650
4705
|
"kind": "field",
|
|
4651
4706
|
"name": "input",
|
|
@@ -4722,6 +4777,24 @@
|
|
|
4722
4777
|
"privacy": "private",
|
|
4723
4778
|
"description": "MutationObserver to watch for changes to parent panel's always-show-actions attribute"
|
|
4724
4779
|
},
|
|
4780
|
+
{
|
|
4781
|
+
"kind": "field",
|
|
4782
|
+
"name": "_parentMenuToggleListener",
|
|
4783
|
+
"type": {
|
|
4784
|
+
"text": "EventListener | undefined"
|
|
4785
|
+
},
|
|
4786
|
+
"privacy": "private",
|
|
4787
|
+
"description": "Event listener for parent menu toggle events"
|
|
4788
|
+
},
|
|
4789
|
+
{
|
|
4790
|
+
"kind": "field",
|
|
4791
|
+
"name": "_parentMenu",
|
|
4792
|
+
"type": {
|
|
4793
|
+
"text": "HTMLElement | undefined"
|
|
4794
|
+
},
|
|
4795
|
+
"privacy": "private",
|
|
4796
|
+
"description": "Reference to parent menu element"
|
|
4797
|
+
},
|
|
4725
4798
|
{
|
|
4726
4799
|
"kind": "method",
|
|
4727
4800
|
"name": "_adjustMenuPosition",
|
|
@@ -4835,6 +4908,15 @@
|
|
|
4835
4908
|
"default": "false",
|
|
4836
4909
|
"description": "`true` to always show the actions menu for this item.\nWhen set, the actions menu will be visible without requiring hover or selection.\nCan be set directly on the item or inherited from the parent panel's `show-actions` attribute.",
|
|
4837
4910
|
"fieldName": "showActions"
|
|
4911
|
+
},
|
|
4912
|
+
{
|
|
4913
|
+
"name": "parent-menu-expanded",
|
|
4914
|
+
"type": {
|
|
4915
|
+
"text": "boolean"
|
|
4916
|
+
},
|
|
4917
|
+
"default": "true",
|
|
4918
|
+
"description": "`true` if the parent menu is expanded.\nThis is automatically set based on the parent history-panel-menu's expanded attribute.",
|
|
4919
|
+
"fieldName": "parentMenuExpanded"
|
|
4838
4920
|
}
|
|
4839
4921
|
],
|
|
4840
4922
|
"mixins": [
|
|
@@ -8957,6 +9039,16 @@
|
|
|
8957
9039
|
"description": "Fallback language to use when detection fails.",
|
|
8958
9040
|
"attribute": "default-language"
|
|
8959
9041
|
},
|
|
9042
|
+
{
|
|
9043
|
+
"kind": "field",
|
|
9044
|
+
"name": "detectLanguage",
|
|
9045
|
+
"type": {
|
|
9046
|
+
"text": "boolean"
|
|
9047
|
+
},
|
|
9048
|
+
"default": "false",
|
|
9049
|
+
"description": "Show the detected language label in the snippet header. When `false`\n(the default), only an explicit `language` attribute renders a label.",
|
|
9050
|
+
"attribute": "detect-language"
|
|
9051
|
+
},
|
|
8960
9052
|
{
|
|
8961
9053
|
"kind": "field",
|
|
8962
9054
|
"name": "copyText",
|
|
@@ -9339,6 +9431,15 @@
|
|
|
9339
9431
|
"description": "Fallback language to use when detection fails.",
|
|
9340
9432
|
"fieldName": "defaultLanguage"
|
|
9341
9433
|
},
|
|
9434
|
+
{
|
|
9435
|
+
"name": "detect-language",
|
|
9436
|
+
"type": {
|
|
9437
|
+
"text": "boolean"
|
|
9438
|
+
},
|
|
9439
|
+
"default": "false",
|
|
9440
|
+
"description": "Show the detected language label in the snippet header. When `false`\n(the default), only an explicit `language` attribute renders a label.",
|
|
9441
|
+
"fieldName": "detectLanguage"
|
|
9442
|
+
},
|
|
9342
9443
|
{
|
|
9343
9444
|
"name": "copy-text",
|
|
9344
9445
|
"type": {
|
|
@@ -10164,6 +10265,16 @@
|
|
|
10164
10265
|
},
|
|
10165
10266
|
"description": "The initial values to display in the feedback."
|
|
10166
10267
|
},
|
|
10268
|
+
{
|
|
10269
|
+
"kind": "field",
|
|
10270
|
+
"name": "maxLength",
|
|
10271
|
+
"type": {
|
|
10272
|
+
"text": "number | undefined"
|
|
10273
|
+
},
|
|
10274
|
+
"description": "The maximum number of characters allowed in the feedback text area.",
|
|
10275
|
+
"attribute": "max-length",
|
|
10276
|
+
"reflects": true
|
|
10277
|
+
},
|
|
10167
10278
|
{
|
|
10168
10279
|
"kind": "field",
|
|
10169
10280
|
"name": "title",
|
|
@@ -10390,6 +10501,14 @@
|
|
|
10390
10501
|
"description": "Indicates if the feedback details are readonly.",
|
|
10391
10502
|
"fieldName": "isReadonly"
|
|
10392
10503
|
},
|
|
10504
|
+
{
|
|
10505
|
+
"name": "max-length",
|
|
10506
|
+
"type": {
|
|
10507
|
+
"text": "number | undefined"
|
|
10508
|
+
},
|
|
10509
|
+
"description": "The maximum number of characters allowed in the feedback text area.",
|
|
10510
|
+
"fieldName": "maxLength"
|
|
10511
|
+
},
|
|
10393
10512
|
{
|
|
10394
10513
|
"name": "title",
|
|
10395
10514
|
"type": {
|
|
@@ -10511,10 +10630,40 @@
|
|
|
10511
10630
|
}
|
|
10512
10631
|
]
|
|
10513
10632
|
},
|
|
10633
|
+
{
|
|
10634
|
+
"kind": "javascript-module",
|
|
10635
|
+
"path": "src/components/markdown/src/markdown-renderer-types.ts",
|
|
10636
|
+
"declarations": [],
|
|
10637
|
+
"exports": []
|
|
10638
|
+
},
|
|
10514
10639
|
{
|
|
10515
10640
|
"kind": "javascript-module",
|
|
10516
10641
|
"path": "src/components/markdown/src/markdown-renderer.ts",
|
|
10517
10642
|
"declarations": [
|
|
10643
|
+
{
|
|
10644
|
+
"kind": "function",
|
|
10645
|
+
"name": "renderMarkdownTree",
|
|
10646
|
+
"return": {
|
|
10647
|
+
"type": {
|
|
10648
|
+
"text": "{\n template: TemplateResult;\n batch: MarkdownRendererSlotDescriptor[];\n}"
|
|
10649
|
+
}
|
|
10650
|
+
},
|
|
10651
|
+
"parameters": [
|
|
10652
|
+
{
|
|
10653
|
+
"name": "node",
|
|
10654
|
+
"type": {
|
|
10655
|
+
"text": "TokenTree"
|
|
10656
|
+
}
|
|
10657
|
+
},
|
|
10658
|
+
{
|
|
10659
|
+
"name": "options",
|
|
10660
|
+
"type": {
|
|
10661
|
+
"text": "RenderTokenTreeOptions"
|
|
10662
|
+
}
|
|
10663
|
+
}
|
|
10664
|
+
],
|
|
10665
|
+
"description": "Top-level entry: renders a markdown token tree to a Lit `TemplateResult`\nand returns the batch of custom-renderer slot descriptors collected along\nthe way. Callers receive both pieces in one call so the batch can't be\naccidentally dropped."
|
|
10666
|
+
},
|
|
10518
10667
|
{
|
|
10519
10668
|
"kind": "function",
|
|
10520
10669
|
"name": "renderTokenTree",
|
|
@@ -10537,10 +10686,74 @@
|
|
|
10537
10686
|
}
|
|
10538
10687
|
}
|
|
10539
10688
|
],
|
|
10540
|
-
"description": "Converts TokenTree to Lit TemplateResult."
|
|
10689
|
+
"description": "Converts TokenTree to Lit TemplateResult.\n\nRecursive renderer; external callers should use renderMarkdownTree\nwhich collects the slot-descriptor batch."
|
|
10541
10690
|
}
|
|
10542
10691
|
],
|
|
10543
10692
|
"exports": [
|
|
10693
|
+
{
|
|
10694
|
+
"kind": "js",
|
|
10695
|
+
"name": "MarkdownCustomRenderers",
|
|
10696
|
+
"declaration": {
|
|
10697
|
+
"name": "MarkdownCustomRenderers",
|
|
10698
|
+
"module": "./markdown-renderer-types.js"
|
|
10699
|
+
}
|
|
10700
|
+
},
|
|
10701
|
+
{
|
|
10702
|
+
"kind": "js",
|
|
10703
|
+
"name": "MarkdownRendererCodeBlockArgs",
|
|
10704
|
+
"declaration": {
|
|
10705
|
+
"name": "MarkdownRendererCodeBlockArgs",
|
|
10706
|
+
"module": "./markdown-renderer-types.js"
|
|
10707
|
+
}
|
|
10708
|
+
},
|
|
10709
|
+
{
|
|
10710
|
+
"kind": "js",
|
|
10711
|
+
"name": "MarkdownRendererCodeBlockData",
|
|
10712
|
+
"declaration": {
|
|
10713
|
+
"name": "MarkdownRendererCodeBlockData",
|
|
10714
|
+
"module": "./markdown-renderer-types.js"
|
|
10715
|
+
}
|
|
10716
|
+
},
|
|
10717
|
+
{
|
|
10718
|
+
"kind": "js",
|
|
10719
|
+
"name": "MarkdownRendererSlotDescriptor",
|
|
10720
|
+
"declaration": {
|
|
10721
|
+
"name": "MarkdownRendererSlotDescriptor",
|
|
10722
|
+
"module": "./markdown-renderer-types.js"
|
|
10723
|
+
}
|
|
10724
|
+
},
|
|
10725
|
+
{
|
|
10726
|
+
"kind": "js",
|
|
10727
|
+
"name": "MarkdownRendererTableArgs",
|
|
10728
|
+
"declaration": {
|
|
10729
|
+
"name": "MarkdownRendererTableArgs",
|
|
10730
|
+
"module": "./markdown-renderer-types.js"
|
|
10731
|
+
}
|
|
10732
|
+
},
|
|
10733
|
+
{
|
|
10734
|
+
"kind": "js",
|
|
10735
|
+
"name": "MarkdownRendererTableData",
|
|
10736
|
+
"declaration": {
|
|
10737
|
+
"name": "MarkdownRendererTableData",
|
|
10738
|
+
"module": "./markdown-renderer-types.js"
|
|
10739
|
+
}
|
|
10740
|
+
},
|
|
10741
|
+
{
|
|
10742
|
+
"kind": "js",
|
|
10743
|
+
"name": "RenderTokenTreeOptions",
|
|
10744
|
+
"declaration": {
|
|
10745
|
+
"name": "RenderTokenTreeOptions",
|
|
10746
|
+
"module": "./markdown-renderer-types.js"
|
|
10747
|
+
}
|
|
10748
|
+
},
|
|
10749
|
+
{
|
|
10750
|
+
"kind": "js",
|
|
10751
|
+
"name": "renderMarkdownTree",
|
|
10752
|
+
"declaration": {
|
|
10753
|
+
"name": "renderMarkdownTree",
|
|
10754
|
+
"module": "src/components/markdown/src/markdown-renderer.ts"
|
|
10755
|
+
}
|
|
10756
|
+
},
|
|
10544
10757
|
{
|
|
10545
10758
|
"kind": "js",
|
|
10546
10759
|
"name": "renderTokenTree",
|
|
@@ -10557,25 +10770,26 @@
|
|
|
10557
10770
|
"declarations": [
|
|
10558
10771
|
{
|
|
10559
10772
|
"kind": "function",
|
|
10560
|
-
"name": "
|
|
10773
|
+
"name": "getMarkdownIt",
|
|
10561
10774
|
"return": {
|
|
10562
10775
|
"type": {
|
|
10563
|
-
"text": "
|
|
10776
|
+
"text": "MarkdownIt"
|
|
10564
10777
|
}
|
|
10565
10778
|
},
|
|
10566
10779
|
"parameters": [
|
|
10567
10780
|
{
|
|
10568
|
-
"name": "
|
|
10781
|
+
"name": "plugins",
|
|
10782
|
+
"optional": true,
|
|
10569
10783
|
"type": {
|
|
10570
|
-
"text": "
|
|
10784
|
+
"text": "MarkdownItPlugin[]"
|
|
10571
10785
|
}
|
|
10572
10786
|
},
|
|
10573
10787
|
{
|
|
10574
|
-
"name": "
|
|
10575
|
-
"default": "
|
|
10788
|
+
"name": "removeHtml",
|
|
10789
|
+
"default": "false"
|
|
10576
10790
|
}
|
|
10577
10791
|
],
|
|
10578
|
-
"description": "
|
|
10792
|
+
"description": "Returns a (cached) markdown-it instance for the given plugin set, choosing the\nhtml-enabled variant or the html-disabled (HTML-neutralizing) variant based on\n`removeHtml`. Calling with the same `plugins` reference and `removeHtml` returns\nthe same instance."
|
|
10579
10793
|
},
|
|
10580
10794
|
{
|
|
10581
10795
|
"kind": "function",
|
|
@@ -10624,7 +10838,7 @@
|
|
|
10624
10838
|
"name": "markdownToTokenTree",
|
|
10625
10839
|
"return": {
|
|
10626
10840
|
"type": {
|
|
10627
|
-
"text": "
|
|
10841
|
+
"text": "MarkdownToTokenTreeResult"
|
|
10628
10842
|
}
|
|
10629
10843
|
},
|
|
10630
10844
|
"parameters": [
|
|
@@ -10636,25 +10850,27 @@
|
|
|
10636
10850
|
},
|
|
10637
10851
|
{
|
|
10638
10852
|
"name": "lastTree",
|
|
10639
|
-
"optional": true,
|
|
10640
10853
|
"type": {
|
|
10641
|
-
"text": "TokenTree"
|
|
10854
|
+
"text": "TokenTree | undefined"
|
|
10642
10855
|
}
|
|
10643
10856
|
},
|
|
10644
10857
|
{
|
|
10645
|
-
"name": "
|
|
10646
|
-
"default": "
|
|
10858
|
+
"name": "opts",
|
|
10859
|
+
"default": "{}",
|
|
10860
|
+
"type": {
|
|
10861
|
+
"text": "{ removeHtml?: boolean; markdownItPlugins?: MarkdownItPlugin[] }"
|
|
10862
|
+
}
|
|
10647
10863
|
}
|
|
10648
10864
|
],
|
|
10649
|
-
"description": "Converts markdown into a tree with keys on it for Lit."
|
|
10865
|
+
"description": "Converts markdown into a tree with keys on it for Lit. The returned `md` is the\n(cached) markdown-it instance keyed by `markdownItPlugins` identity and the\n`removeHtml` flag (html-enabled vs html-neutralizing variant)."
|
|
10650
10866
|
}
|
|
10651
10867
|
],
|
|
10652
10868
|
"exports": [
|
|
10653
10869
|
{
|
|
10654
10870
|
"kind": "js",
|
|
10655
|
-
"name": "
|
|
10871
|
+
"name": "getMarkdownIt",
|
|
10656
10872
|
"declaration": {
|
|
10657
|
-
"name": "
|
|
10873
|
+
"name": "getMarkdownIt",
|
|
10658
10874
|
"module": "src/components/markdown/src/markdown-token-tree.ts"
|
|
10659
10875
|
}
|
|
10660
10876
|
},
|
|
@@ -10718,7 +10934,7 @@
|
|
|
10718
10934
|
"declarations": [
|
|
10719
10935
|
{
|
|
10720
10936
|
"kind": "class",
|
|
10721
|
-
"description": "
|
|
10937
|
+
"description": "Renders markdown as Carbon-styled DOM. Streaming-friendly: incremental updates reparse the markdown source into a `TokenTree`, diff it against the prior tree to reuse stable subtrees, then walk it into a Lit `TemplateResult` — Lit's `repeat` directive keys off the diffed nodes so unchanged DOM stays put.\n\n### Lifecycle\n\n1. A property setter (or a light-DOM mutation) lands. `willUpdate` decides whether the change requires a reparse (`markdown`, `removeHTML`, `markdownItPlugins`) or only a re-render (translated strings, `streaming`, `sanitizeHTML`, `customRenderers`).\n2. `scheduleRender` throttles bursts to 100ms (leading + trailing).\n3. `renderMarkdown` parses (if needed) via markdownToTokenTree, then calls renderMarkdownTree to produce both a `TemplateResult` and a batch of MarkdownRendererSlotDescriptor records.\n4. After Lit commits, `updated()` runs `reconcileCustomRendererHosts` — that is where consumer-supplied `customRenderers` callbacks fire and plugin-fallback HTML is adopted into light-DOM slot hosts.\n\n### Extensibility\n\n- markdownItPlugins runs after the built-in markdown-it plugins (markdown-it-attrs, highlight, task-lists). A new array identity rebuilds the markdown-it instance and forces a full reparse. Tokens introduced by a plugin that the native dispatch can't handle — either an unknown tag, or a plugin-overridden rule on a curated allow-list of leaf tokens — route through `md.renderer.render()` via `./utils/plugin-fallback.ts` and surface as `pluginFallback` descriptors. Their rendered HTML is adopted into a light-DOM slot host so consumer-supplied CSS (e.g. a KaTeX stylesheet on the host page) reaches it.\n- customRenderers overrides per-element rendering for `table` and `codeBlock`. The renderer emits a named `<slot>` placeholder; the reconciler invokes the consumer's callback with the parsed data and appends the returned `HTMLElement` as a `<div slot=\"…\">` light-DOM child. Returning the same element reference across renders avoids DOM churn.\n\n### Light-DOM source adoption\n\nWhen the `markdown` property has never been set explicitly, the element treats its light-DOM text content as the initial source and watches for further mutations via a `MutationObserver`. Setting the property explicitly stops the observer — the property is then the authoritative source.\n\n### Related files\n\n- `./markdown-token-tree.ts` — markdown-it parse + tree builder + streaming-aware diff (with `cachedHtml` carry-forward for plugin-delegated tokens).\n- `./markdown-renderer.ts` — `TokenTree` → Lit `TemplateResult`, plus descriptor collection.\n- `./markdown-renderer-types.ts` — public (MarkdownCustomRenderers) and internal (MarkdownRendererSlotDescriptor, `RenderTokenTreeOptions`) contracts.\n- `./utils/plugin-fallback.ts` — delegation to `md.renderer.render()` for plugin-introduced tokens.\n- `./utils/streaming-table.ts` — heuristics that hold a streaming table in a skeleton \"loading\" state until its tail stabilizes.",
|
|
10722
10938
|
"name": "CDSAIChatMarkdown",
|
|
10723
10939
|
"members": [
|
|
10724
10940
|
{
|
|
@@ -10904,6 +11120,22 @@
|
|
|
10904
11120
|
},
|
|
10905
11121
|
"description": "Optional formatter for pagination status text."
|
|
10906
11122
|
},
|
|
11123
|
+
{
|
|
11124
|
+
"kind": "field",
|
|
11125
|
+
"name": "markdownItPlugins",
|
|
11126
|
+
"type": {
|
|
11127
|
+
"text": "MarkdownItPlugin[] | undefined"
|
|
11128
|
+
},
|
|
11129
|
+
"description": "Markdown-it plugins applied after the built-in plugins\n(markdown-it-attrs, markdown-it-highlight, markdown-it-task-lists).\nChanges force a reparse. Memoize this array — a new reference each render\nrebuilds the markdown-it instance."
|
|
11130
|
+
},
|
|
11131
|
+
{
|
|
11132
|
+
"kind": "field",
|
|
11133
|
+
"name": "customRenderers",
|
|
11134
|
+
"type": {
|
|
11135
|
+
"text": "MarkdownCustomRenderers | undefined"
|
|
11136
|
+
},
|
|
11137
|
+
"description": "Per-element render overrides. For each `kind` whose callback is provided,\nthe markdown element emits a named `<slot>` placeholder in its shadow\nDOM, then — after each render — invokes the callback with the parsed\ndata and adopts the returned `HTMLElement` as a `<div slot=\"…\">`\nlight-DOM child of this element. Return `null` to fall back to the\ndefault Carbon rendering. Returning the same element reference across\nrenders avoids DOM churn.\n\nThe consumer's returned element lives in this element's light DOM, not\nin its shadow root, so external CSS applies normally."
|
|
11138
|
+
},
|
|
10907
11139
|
{
|
|
10908
11140
|
"kind": "field",
|
|
10909
11141
|
"name": "hasRenderedStreamingTableLoadingFrame",
|
|
@@ -10966,6 +11198,20 @@
|
|
|
10966
11198
|
}
|
|
10967
11199
|
}
|
|
10968
11200
|
],
|
|
11201
|
+
"events": [
|
|
11202
|
+
{
|
|
11203
|
+
"name": "cds-aichat-markdown-plugin-host-unmount",
|
|
11204
|
+
"type": {
|
|
11205
|
+
"text": "CustomEvent"
|
|
11206
|
+
}
|
|
11207
|
+
},
|
|
11208
|
+
{
|
|
11209
|
+
"name": "cds-aichat-markdown-plugin-host-update",
|
|
11210
|
+
"type": {
|
|
11211
|
+
"text": "CustomEvent"
|
|
11212
|
+
}
|
|
11213
|
+
}
|
|
11214
|
+
],
|
|
10969
11215
|
"attributes": [
|
|
10970
11216
|
{
|
|
10971
11217
|
"name": "sanitize-html",
|
|
@@ -11102,73 +11348,38 @@
|
|
|
11102
11348
|
"fieldName": "tableDownloadLabelText"
|
|
11103
11349
|
},
|
|
11104
11350
|
{
|
|
11105
|
-
"name": "table-locale",
|
|
11106
|
-
"type": {
|
|
11107
|
-
"text": "string"
|
|
11108
|
-
},
|
|
11109
|
-
"default": "\"en\"",
|
|
11110
|
-
"description": "Locale used for table pagination and formatting.",
|
|
11111
|
-
"fieldName": "tableLocale"
|
|
11112
|
-
}
|
|
11113
|
-
],
|
|
11114
|
-
"superclass": {
|
|
11115
|
-
"name": "LitElement",
|
|
11116
|
-
"package": "lit"
|
|
11117
|
-
},
|
|
11118
|
-
"tagName": "cds-aichat-markdown",
|
|
11119
|
-
"customElement": true
|
|
11120
|
-
}
|
|
11121
|
-
],
|
|
11122
|
-
"exports": [
|
|
11123
|
-
{
|
|
11124
|
-
"kind": "js",
|
|
11125
|
-
"name": "CDSAIChatMarkdown",
|
|
11126
|
-
"declaration": {
|
|
11127
|
-
"name": "CDSAIChatMarkdown",
|
|
11128
|
-
"module": "src/components/markdown/src/markdown.ts"
|
|
11129
|
-
}
|
|
11130
|
-
},
|
|
11131
|
-
{
|
|
11132
|
-
"kind": "js",
|
|
11133
|
-
"name": "default",
|
|
11134
|
-
"declaration": {
|
|
11135
|
-
"name": "CDSAIChatMarkdown",
|
|
11136
|
-
"module": "src/components/markdown/src/markdown.ts"
|
|
11137
|
-
}
|
|
11138
|
-
}
|
|
11139
|
-
]
|
|
11140
|
-
},
|
|
11141
|
-
{
|
|
11142
|
-
"kind": "javascript-module",
|
|
11143
|
-
"path": "src/components/markdown/src/utils.ts",
|
|
11144
|
-
"declarations": [
|
|
11145
|
-
{
|
|
11146
|
-
"kind": "function",
|
|
11147
|
-
"name": "consoleError",
|
|
11148
|
-
"parameters": [
|
|
11149
|
-
{
|
|
11150
|
-
"name": "message",
|
|
11151
|
-
"type": {
|
|
11152
|
-
"text": "string"
|
|
11153
|
-
}
|
|
11154
|
-
},
|
|
11155
|
-
{
|
|
11156
|
-
"name": "args",
|
|
11351
|
+
"name": "table-locale",
|
|
11157
11352
|
"type": {
|
|
11158
|
-
"text": "
|
|
11159
|
-
}
|
|
11353
|
+
"text": "string"
|
|
11354
|
+
},
|
|
11355
|
+
"default": "\"en\"",
|
|
11356
|
+
"description": "Locale used for table pagination and formatting.",
|
|
11357
|
+
"fieldName": "tableLocale"
|
|
11160
11358
|
}
|
|
11161
11359
|
],
|
|
11162
|
-
"
|
|
11360
|
+
"superclass": {
|
|
11361
|
+
"name": "LitElement",
|
|
11362
|
+
"package": "lit"
|
|
11363
|
+
},
|
|
11364
|
+
"tagName": "cds-aichat-markdown",
|
|
11365
|
+
"customElement": true
|
|
11163
11366
|
}
|
|
11164
11367
|
],
|
|
11165
11368
|
"exports": [
|
|
11166
11369
|
{
|
|
11167
11370
|
"kind": "js",
|
|
11168
|
-
"name": "
|
|
11371
|
+
"name": "CDSAIChatMarkdown",
|
|
11372
|
+
"declaration": {
|
|
11373
|
+
"name": "CDSAIChatMarkdown",
|
|
11374
|
+
"module": "src/components/markdown/src/markdown.ts"
|
|
11375
|
+
}
|
|
11376
|
+
},
|
|
11377
|
+
{
|
|
11378
|
+
"kind": "js",
|
|
11379
|
+
"name": "default",
|
|
11169
11380
|
"declaration": {
|
|
11170
|
-
"name": "
|
|
11171
|
-
"module": "src/components/markdown/src/
|
|
11381
|
+
"name": "CDSAIChatMarkdown",
|
|
11382
|
+
"module": "src/components/markdown/src/markdown.ts"
|
|
11172
11383
|
}
|
|
11173
11384
|
}
|
|
11174
11385
|
]
|
|
@@ -15892,235 +16103,521 @@
|
|
|
15892
16103
|
},
|
|
15893
16104
|
{
|
|
15894
16105
|
"kind": "javascript-module",
|
|
15895
|
-
"path": "src/components/code-snippet/src/codemirror/theme.ts",
|
|
16106
|
+
"path": "src/components/code-snippet/src/codemirror/theme.ts",
|
|
16107
|
+
"declarations": [
|
|
16108
|
+
{
|
|
16109
|
+
"kind": "function",
|
|
16110
|
+
"name": "makeScrollerFocusable",
|
|
16111
|
+
"description": "Extension that makes the .cm-scroller element keyboard focusable.\nThis fixes the \"scrollable-region-focusable\" accessibility violation\nby changing tabindex from -1 (programmatic focus only) to 0 (keyboard focusable).",
|
|
16112
|
+
"return": {
|
|
16113
|
+
"type": {
|
|
16114
|
+
"text": ""
|
|
16115
|
+
}
|
|
16116
|
+
}
|
|
16117
|
+
},
|
|
16118
|
+
{
|
|
16119
|
+
"kind": "function",
|
|
16120
|
+
"name": "createCarbonTheme",
|
|
16121
|
+
"description": "Creates a CodeMirror theme that uses Carbon Design System CSS custom properties.\nThis allows the editor to automatically adapt to Carbon's light/dark themes.",
|
|
16122
|
+
"return": {
|
|
16123
|
+
"type": {
|
|
16124
|
+
"text": ""
|
|
16125
|
+
}
|
|
16126
|
+
}
|
|
16127
|
+
},
|
|
16128
|
+
{
|
|
16129
|
+
"kind": "function",
|
|
16130
|
+
"name": "createCarbonHighlightStyle",
|
|
16131
|
+
"description": "Creates syntax highlighting styles using Carbon Design System CSS custom properties.\nThis provides color theming for code syntax that adapts to Carbon's light/dark themes.\n\nAll syntax colors are defined using CSS custom properties (--cds-syntax-*) that can be\ncustomized via your Carbon theme. Fallback values mirror VSCode Light defaults.",
|
|
16132
|
+
"return": {
|
|
16133
|
+
"type": {
|
|
16134
|
+
"text": ""
|
|
16135
|
+
}
|
|
16136
|
+
}
|
|
16137
|
+
}
|
|
16138
|
+
],
|
|
16139
|
+
"exports": [
|
|
16140
|
+
{
|
|
16141
|
+
"kind": "js",
|
|
16142
|
+
"name": "makeScrollerFocusable",
|
|
16143
|
+
"declaration": {
|
|
16144
|
+
"name": "makeScrollerFocusable",
|
|
16145
|
+
"module": "src/components/code-snippet/src/codemirror/theme.ts"
|
|
16146
|
+
}
|
|
16147
|
+
},
|
|
16148
|
+
{
|
|
16149
|
+
"kind": "js",
|
|
16150
|
+
"name": "createCarbonTheme",
|
|
16151
|
+
"declaration": {
|
|
16152
|
+
"name": "createCarbonTheme",
|
|
16153
|
+
"module": "src/components/code-snippet/src/codemirror/theme.ts"
|
|
16154
|
+
}
|
|
16155
|
+
},
|
|
16156
|
+
{
|
|
16157
|
+
"kind": "js",
|
|
16158
|
+
"name": "createCarbonHighlightStyle",
|
|
16159
|
+
"declaration": {
|
|
16160
|
+
"name": "createCarbonHighlightStyle",
|
|
16161
|
+
"module": "src/components/code-snippet/src/codemirror/theme.ts"
|
|
16162
|
+
}
|
|
16163
|
+
}
|
|
16164
|
+
]
|
|
16165
|
+
},
|
|
16166
|
+
{
|
|
16167
|
+
"kind": "javascript-module",
|
|
16168
|
+
"path": "src/components/markdown/src/plugins/markdown-it-attrs.ts",
|
|
16169
|
+
"declarations": [
|
|
16170
|
+
{
|
|
16171
|
+
"kind": "function",
|
|
16172
|
+
"name": "markdownItAttrs",
|
|
16173
|
+
"return": {
|
|
16174
|
+
"type": {
|
|
16175
|
+
"text": "void"
|
|
16176
|
+
}
|
|
16177
|
+
},
|
|
16178
|
+
"parameters": [
|
|
16179
|
+
{
|
|
16180
|
+
"name": "md",
|
|
16181
|
+
"type": {
|
|
16182
|
+
"text": "MarkdownIt"
|
|
16183
|
+
}
|
|
16184
|
+
}
|
|
16185
|
+
],
|
|
16186
|
+
"description": "Markdown-it plugin that applies a fixed set of HTML attributes to links,\nheadings, and paragraphs using `{{key=value}}` syntax."
|
|
16187
|
+
}
|
|
16188
|
+
],
|
|
16189
|
+
"exports": [
|
|
16190
|
+
{
|
|
16191
|
+
"kind": "js",
|
|
16192
|
+
"name": "markdownItAttrs",
|
|
16193
|
+
"declaration": {
|
|
16194
|
+
"name": "markdownItAttrs",
|
|
16195
|
+
"module": "src/components/markdown/src/plugins/markdown-it-attrs.ts"
|
|
16196
|
+
}
|
|
16197
|
+
},
|
|
16198
|
+
{
|
|
16199
|
+
"kind": "js",
|
|
16200
|
+
"name": "default",
|
|
16201
|
+
"declaration": {
|
|
16202
|
+
"name": "markdownItAttrs",
|
|
16203
|
+
"module": "src/components/markdown/src/plugins/markdown-it-attrs.ts"
|
|
16204
|
+
}
|
|
16205
|
+
}
|
|
16206
|
+
]
|
|
16207
|
+
},
|
|
16208
|
+
{
|
|
16209
|
+
"kind": "javascript-module",
|
|
16210
|
+
"path": "src/components/markdown/src/plugins/markdown-it-highlight.ts",
|
|
16211
|
+
"declarations": [
|
|
16212
|
+
{
|
|
16213
|
+
"kind": "function",
|
|
16214
|
+
"name": "markdownItHighlight",
|
|
16215
|
+
"parameters": [
|
|
16216
|
+
{
|
|
16217
|
+
"name": "md",
|
|
16218
|
+
"type": {
|
|
16219
|
+
"text": "MarkdownIt"
|
|
16220
|
+
}
|
|
16221
|
+
}
|
|
16222
|
+
]
|
|
16223
|
+
}
|
|
16224
|
+
],
|
|
16225
|
+
"exports": [
|
|
16226
|
+
{
|
|
16227
|
+
"kind": "js",
|
|
16228
|
+
"name": "markdownItHighlight",
|
|
16229
|
+
"declaration": {
|
|
16230
|
+
"name": "markdownItHighlight",
|
|
16231
|
+
"module": "src/components/markdown/src/plugins/markdown-it-highlight.ts"
|
|
16232
|
+
}
|
|
16233
|
+
}
|
|
16234
|
+
]
|
|
16235
|
+
},
|
|
16236
|
+
{
|
|
16237
|
+
"kind": "javascript-module",
|
|
16238
|
+
"path": "src/components/markdown/src/plugins/markdown-it-task-lists.ts",
|
|
16239
|
+
"declarations": [
|
|
16240
|
+
{
|
|
16241
|
+
"kind": "function",
|
|
16242
|
+
"name": "markdownItTaskLists",
|
|
16243
|
+
"parameters": [
|
|
16244
|
+
{
|
|
16245
|
+
"name": "md",
|
|
16246
|
+
"type": {
|
|
16247
|
+
"text": "MarkdownIt"
|
|
16248
|
+
}
|
|
16249
|
+
}
|
|
16250
|
+
]
|
|
16251
|
+
}
|
|
16252
|
+
],
|
|
16253
|
+
"exports": [
|
|
16254
|
+
{
|
|
16255
|
+
"kind": "js",
|
|
16256
|
+
"name": "markdownItTaskLists",
|
|
16257
|
+
"declaration": {
|
|
16258
|
+
"name": "markdownItTaskLists",
|
|
16259
|
+
"module": "src/components/markdown/src/plugins/markdown-it-task-lists.ts"
|
|
16260
|
+
}
|
|
16261
|
+
}
|
|
16262
|
+
]
|
|
16263
|
+
},
|
|
16264
|
+
{
|
|
16265
|
+
"kind": "javascript-module",
|
|
16266
|
+
"path": "src/components/markdown/src/utils/html-helpers.ts",
|
|
16267
|
+
"declarations": [
|
|
16268
|
+
{
|
|
16269
|
+
"kind": "variable",
|
|
16270
|
+
"name": "HTML_CONTAINER_SLOT",
|
|
16271
|
+
"type": {
|
|
16272
|
+
"text": "string"
|
|
16273
|
+
},
|
|
16274
|
+
"default": "'<div data-aichat-markdown=\"\"></div>'",
|
|
16275
|
+
"description": "Marker element appended to opening HTML so markdown children mount inside the block."
|
|
16276
|
+
},
|
|
16277
|
+
{
|
|
16278
|
+
"kind": "function",
|
|
16279
|
+
"name": "combineConsecutiveHtmlInline",
|
|
16280
|
+
"return": {
|
|
16281
|
+
"type": {
|
|
16282
|
+
"text": "TokenTree[]"
|
|
16283
|
+
}
|
|
16284
|
+
},
|
|
16285
|
+
"parameters": [
|
|
16286
|
+
{
|
|
16287
|
+
"name": "children",
|
|
16288
|
+
"type": {
|
|
16289
|
+
"text": "TokenTree[]"
|
|
16290
|
+
}
|
|
16291
|
+
}
|
|
16292
|
+
]
|
|
16293
|
+
},
|
|
16294
|
+
{
|
|
16295
|
+
"kind": "function",
|
|
16296
|
+
"name": "combineSplitHtmlBlocks",
|
|
16297
|
+
"return": {
|
|
16298
|
+
"type": {
|
|
16299
|
+
"text": "TokenTree[]"
|
|
16300
|
+
}
|
|
16301
|
+
},
|
|
16302
|
+
"parameters": [
|
|
16303
|
+
{
|
|
16304
|
+
"name": "children",
|
|
16305
|
+
"type": {
|
|
16306
|
+
"text": "TokenTree[]"
|
|
16307
|
+
}
|
|
16308
|
+
}
|
|
16309
|
+
]
|
|
16310
|
+
}
|
|
16311
|
+
],
|
|
16312
|
+
"exports": [
|
|
16313
|
+
{
|
|
16314
|
+
"kind": "js",
|
|
16315
|
+
"name": "HTML_CONTAINER_SLOT",
|
|
16316
|
+
"declaration": {
|
|
16317
|
+
"name": "HTML_CONTAINER_SLOT",
|
|
16318
|
+
"module": "src/components/markdown/src/utils/html-helpers.ts"
|
|
16319
|
+
}
|
|
16320
|
+
},
|
|
16321
|
+
{
|
|
16322
|
+
"kind": "js",
|
|
16323
|
+
"name": "combineConsecutiveHtmlInline",
|
|
16324
|
+
"declaration": {
|
|
16325
|
+
"name": "combineConsecutiveHtmlInline",
|
|
16326
|
+
"module": "src/components/markdown/src/utils/html-helpers.ts"
|
|
16327
|
+
}
|
|
16328
|
+
},
|
|
16329
|
+
{
|
|
16330
|
+
"kind": "js",
|
|
16331
|
+
"name": "combineSplitHtmlBlocks",
|
|
16332
|
+
"declaration": {
|
|
16333
|
+
"name": "combineSplitHtmlBlocks",
|
|
16334
|
+
"module": "src/components/markdown/src/utils/html-helpers.ts"
|
|
16335
|
+
}
|
|
16336
|
+
}
|
|
16337
|
+
]
|
|
16338
|
+
},
|
|
16339
|
+
{
|
|
16340
|
+
"kind": "javascript-module",
|
|
16341
|
+
"path": "src/components/markdown/src/utils/lit-directives.ts",
|
|
15896
16342
|
"declarations": [
|
|
15897
16343
|
{
|
|
15898
|
-
"kind": "
|
|
15899
|
-
"name": "
|
|
15900
|
-
"description": "Extension that makes the .cm-scroller element keyboard focusable.\nThis fixes the \"scrollable-region-focusable\" accessibility violation\nby changing tabindex from -1 (programmatic focus only) to 0 (keyboard focusable).",
|
|
15901
|
-
"return": {
|
|
15902
|
-
"type": {
|
|
15903
|
-
"text": ""
|
|
15904
|
-
}
|
|
15905
|
-
}
|
|
16344
|
+
"kind": "variable",
|
|
16345
|
+
"name": "spread"
|
|
15906
16346
|
},
|
|
15907
16347
|
{
|
|
15908
16348
|
"kind": "function",
|
|
15909
|
-
"name": "
|
|
15910
|
-
"
|
|
15911
|
-
|
|
15912
|
-
|
|
15913
|
-
"
|
|
16349
|
+
"name": "sanitizeHtmlContent",
|
|
16350
|
+
"parameters": [
|
|
16351
|
+
{
|
|
16352
|
+
"name": "content",
|
|
16353
|
+
"type": {
|
|
16354
|
+
"text": "string"
|
|
16355
|
+
}
|
|
15914
16356
|
}
|
|
15915
|
-
|
|
16357
|
+
]
|
|
15916
16358
|
},
|
|
15917
16359
|
{
|
|
15918
|
-
"kind": "
|
|
15919
|
-
"name": "
|
|
15920
|
-
"description": "Creates syntax highlighting styles using Carbon Design System CSS custom properties.\nThis provides color theming for code syntax that adapts to Carbon's light/dark themes.\n\nAll syntax colors are defined using CSS custom properties (--cds-syntax-*) that can be\ncustomized via your Carbon theme. Fallback values mirror VSCode Light defaults.",
|
|
15921
|
-
"return": {
|
|
15922
|
-
"type": {
|
|
15923
|
-
"text": ""
|
|
15924
|
-
}
|
|
15925
|
-
}
|
|
16360
|
+
"kind": "variable",
|
|
16361
|
+
"name": "htmlContainer"
|
|
15926
16362
|
}
|
|
15927
16363
|
],
|
|
15928
16364
|
"exports": [
|
|
15929
16365
|
{
|
|
15930
16366
|
"kind": "js",
|
|
15931
|
-
"name": "
|
|
16367
|
+
"name": "spread",
|
|
15932
16368
|
"declaration": {
|
|
15933
|
-
"name": "
|
|
15934
|
-
"module": "src/components/
|
|
16369
|
+
"name": "spread",
|
|
16370
|
+
"module": "src/components/markdown/src/utils/lit-directives.ts"
|
|
15935
16371
|
}
|
|
15936
16372
|
},
|
|
15937
16373
|
{
|
|
15938
16374
|
"kind": "js",
|
|
15939
|
-
"name": "
|
|
16375
|
+
"name": "sanitizeHtmlContent",
|
|
15940
16376
|
"declaration": {
|
|
15941
|
-
"name": "
|
|
15942
|
-
"module": "src/components/
|
|
16377
|
+
"name": "sanitizeHtmlContent",
|
|
16378
|
+
"module": "src/components/markdown/src/utils/lit-directives.ts"
|
|
15943
16379
|
}
|
|
15944
16380
|
},
|
|
15945
16381
|
{
|
|
15946
16382
|
"kind": "js",
|
|
15947
|
-
"name": "
|
|
16383
|
+
"name": "htmlContainer",
|
|
15948
16384
|
"declaration": {
|
|
15949
|
-
"name": "
|
|
15950
|
-
"module": "src/components/
|
|
16385
|
+
"name": "htmlContainer",
|
|
16386
|
+
"module": "src/components/markdown/src/utils/lit-directives.ts"
|
|
15951
16387
|
}
|
|
15952
16388
|
}
|
|
15953
16389
|
]
|
|
15954
16390
|
},
|
|
15955
16391
|
{
|
|
15956
16392
|
"kind": "javascript-module",
|
|
15957
|
-
"path": "src/components/markdown/src/
|
|
16393
|
+
"path": "src/components/markdown/src/utils/plugin-fallback.ts",
|
|
15958
16394
|
"declarations": [
|
|
15959
16395
|
{
|
|
15960
16396
|
"kind": "function",
|
|
15961
|
-
"name": "
|
|
16397
|
+
"name": "isNativelyHandled",
|
|
15962
16398
|
"return": {
|
|
15963
16399
|
"type": {
|
|
15964
|
-
"text": "
|
|
16400
|
+
"text": "boolean"
|
|
16401
|
+
}
|
|
16402
|
+
},
|
|
16403
|
+
"parameters": [
|
|
16404
|
+
{
|
|
16405
|
+
"name": "token",
|
|
16406
|
+
"type": {
|
|
16407
|
+
"text": "Partial<Token>"
|
|
16408
|
+
}
|
|
16409
|
+
}
|
|
16410
|
+
],
|
|
16411
|
+
"description": "True when the renderer can dispatch `token` itself (hand-written Lit\ntemplate). False when an unknown plugin-introduced token type or tag should\nroute through `md.renderer.render()`."
|
|
16412
|
+
},
|
|
16413
|
+
{
|
|
16414
|
+
"kind": "function",
|
|
16415
|
+
"name": "shouldDelegateToPluginRule",
|
|
16416
|
+
"return": {
|
|
16417
|
+
"type": {
|
|
16418
|
+
"text": "boolean"
|
|
16419
|
+
}
|
|
16420
|
+
},
|
|
16421
|
+
"parameters": [
|
|
16422
|
+
{
|
|
16423
|
+
"name": "token",
|
|
16424
|
+
"type": {
|
|
16425
|
+
"text": "Partial<Token>"
|
|
16426
|
+
}
|
|
16427
|
+
},
|
|
16428
|
+
{
|
|
16429
|
+
"name": "md",
|
|
16430
|
+
"type": {
|
|
16431
|
+
"text": "MarkdownIt | undefined"
|
|
16432
|
+
}
|
|
16433
|
+
}
|
|
16434
|
+
],
|
|
16435
|
+
"description": "True when the token's type is in the curated delegation allow-list and a\nuser-supplied markdown-it plugin has overridden (or added) the matching\n`md.renderer.rules[type]`. Native dispatch sites consult this to decide\nwhether to route through `md.renderer.render()` instead of the hand-written\nLit template."
|
|
16436
|
+
},
|
|
16437
|
+
{
|
|
16438
|
+
"kind": "function",
|
|
16439
|
+
"name": "renderFallback",
|
|
16440
|
+
"return": {
|
|
16441
|
+
"type": {
|
|
16442
|
+
"text": "TemplateResult"
|
|
15965
16443
|
}
|
|
15966
16444
|
},
|
|
15967
16445
|
"parameters": [
|
|
16446
|
+
{
|
|
16447
|
+
"name": "token",
|
|
16448
|
+
"type": {
|
|
16449
|
+
"text": "Token"
|
|
16450
|
+
}
|
|
16451
|
+
},
|
|
16452
|
+
{
|
|
16453
|
+
"name": "node",
|
|
16454
|
+
"type": {
|
|
16455
|
+
"text": "TokenTree"
|
|
16456
|
+
}
|
|
16457
|
+
},
|
|
15968
16458
|
{
|
|
15969
16459
|
"name": "md",
|
|
15970
16460
|
"type": {
|
|
15971
16461
|
"text": "MarkdownIt"
|
|
15972
16462
|
}
|
|
16463
|
+
},
|
|
16464
|
+
{
|
|
16465
|
+
"name": "sanitize",
|
|
16466
|
+
"type": {
|
|
16467
|
+
"text": "boolean"
|
|
16468
|
+
}
|
|
16469
|
+
},
|
|
16470
|
+
{
|
|
16471
|
+
"name": "options",
|
|
16472
|
+
"type": {
|
|
16473
|
+
"text": "RenderTokenTreeOptions"
|
|
16474
|
+
}
|
|
15973
16475
|
}
|
|
15974
16476
|
],
|
|
15975
|
-
"description": "
|
|
16477
|
+
"description": "Renders an unknown token via markdown-it's HTML renderer and emits a named\n`<slot>` placeholder. The markdown element adopts a light-DOM\n`<div slot=\"…\">` host containing the sanitized HTML so consumer-supplied\nCSS (e.g. KaTeX's stylesheet) reaches the rendered output.\n\nFor leaf token types in PLUGIN_DELEGABLE_TOKEN_TYPES the rendered\nHTML is cached on the TokenTree node and inherited across\n`diffTokenTree` calls when the underlying token is unchanged — so a stable\nearlier-in-document fence/image/etc. doesn't re-invoke the plugin's rule on\nevery streaming chunk. The cache is tagged with the `MarkdownIt` instance\nthat produced it; a plugin swap (which builds a fresh instance) invalidates\nthe cache automatically."
|
|
15976
16478
|
}
|
|
15977
16479
|
],
|
|
15978
16480
|
"exports": [
|
|
15979
16481
|
{
|
|
15980
16482
|
"kind": "js",
|
|
15981
|
-
"name": "
|
|
16483
|
+
"name": "isNativelyHandled",
|
|
15982
16484
|
"declaration": {
|
|
15983
|
-
"name": "
|
|
15984
|
-
"module": "src/components/markdown/src/
|
|
16485
|
+
"name": "isNativelyHandled",
|
|
16486
|
+
"module": "src/components/markdown/src/utils/plugin-fallback.ts"
|
|
15985
16487
|
}
|
|
15986
16488
|
},
|
|
15987
16489
|
{
|
|
15988
16490
|
"kind": "js",
|
|
15989
|
-
"name": "
|
|
16491
|
+
"name": "shouldDelegateToPluginRule",
|
|
15990
16492
|
"declaration": {
|
|
15991
|
-
"name": "
|
|
15992
|
-
"module": "src/components/markdown/src/
|
|
16493
|
+
"name": "shouldDelegateToPluginRule",
|
|
16494
|
+
"module": "src/components/markdown/src/utils/plugin-fallback.ts"
|
|
16495
|
+
}
|
|
16496
|
+
},
|
|
16497
|
+
{
|
|
16498
|
+
"kind": "js",
|
|
16499
|
+
"name": "renderFallback",
|
|
16500
|
+
"declaration": {
|
|
16501
|
+
"name": "renderFallback",
|
|
16502
|
+
"module": "src/components/markdown/src/utils/plugin-fallback.ts"
|
|
15993
16503
|
}
|
|
15994
16504
|
}
|
|
15995
16505
|
]
|
|
15996
16506
|
},
|
|
15997
16507
|
{
|
|
15998
16508
|
"kind": "javascript-module",
|
|
15999
|
-
"path": "src/components/markdown/src/
|
|
16509
|
+
"path": "src/components/markdown/src/utils/streaming-table.ts",
|
|
16000
16510
|
"declarations": [
|
|
16001
16511
|
{
|
|
16002
16512
|
"kind": "function",
|
|
16003
|
-
"name": "
|
|
16513
|
+
"name": "hasTrailingTableToken",
|
|
16514
|
+
"return": {
|
|
16515
|
+
"type": {
|
|
16516
|
+
"text": "boolean"
|
|
16517
|
+
}
|
|
16518
|
+
},
|
|
16004
16519
|
"parameters": [
|
|
16005
16520
|
{
|
|
16006
|
-
"name": "
|
|
16521
|
+
"name": "node",
|
|
16007
16522
|
"type": {
|
|
16008
|
-
"text": "
|
|
16523
|
+
"text": "TokenTree"
|
|
16009
16524
|
}
|
|
16010
16525
|
}
|
|
16011
|
-
]
|
|
16012
|
-
|
|
16013
|
-
|
|
16014
|
-
"exports": [
|
|
16015
|
-
{
|
|
16016
|
-
"kind": "js",
|
|
16017
|
-
"name": "markdownItHighlight",
|
|
16018
|
-
"declaration": {
|
|
16019
|
-
"name": "markdownItHighlight",
|
|
16020
|
-
"module": "src/components/markdown/src/plugins/markdown-it-highlight.ts"
|
|
16021
|
-
}
|
|
16022
|
-
}
|
|
16023
|
-
]
|
|
16024
|
-
},
|
|
16025
|
-
{
|
|
16026
|
-
"kind": "javascript-module",
|
|
16027
|
-
"path": "src/components/markdown/src/plugins/markdown-it-task-lists.ts",
|
|
16028
|
-
"declarations": [
|
|
16526
|
+
],
|
|
16527
|
+
"description": "True if the right-most leaf of the tree is a `table` token. A trailing table\nis one that sits at the end of the current markdown output, not just at the\nend of an arbitrary subtree — so we follow only the rightmost branch."
|
|
16528
|
+
},
|
|
16029
16529
|
{
|
|
16030
16530
|
"kind": "function",
|
|
16031
|
-
"name": "
|
|
16531
|
+
"name": "hasNodeAfterTable",
|
|
16532
|
+
"return": {
|
|
16533
|
+
"type": {
|
|
16534
|
+
"text": "boolean"
|
|
16535
|
+
}
|
|
16536
|
+
},
|
|
16032
16537
|
"parameters": [
|
|
16033
16538
|
{
|
|
16034
|
-
"name": "
|
|
16539
|
+
"name": "node",
|
|
16035
16540
|
"type": {
|
|
16036
|
-
"text": "
|
|
16541
|
+
"text": "TokenTree"
|
|
16037
16542
|
}
|
|
16038
16543
|
}
|
|
16039
|
-
]
|
|
16040
|
-
|
|
16041
|
-
],
|
|
16042
|
-
"exports": [
|
|
16043
|
-
{
|
|
16044
|
-
"kind": "js",
|
|
16045
|
-
"name": "markdownItTaskLists",
|
|
16046
|
-
"declaration": {
|
|
16047
|
-
"name": "markdownItTaskLists",
|
|
16048
|
-
"module": "src/components/markdown/src/plugins/markdown-it-task-lists.ts"
|
|
16049
|
-
}
|
|
16050
|
-
}
|
|
16051
|
-
]
|
|
16052
|
-
},
|
|
16053
|
-
{
|
|
16054
|
-
"kind": "javascript-module",
|
|
16055
|
-
"path": "src/components/markdown/src/utils/html-helpers.ts",
|
|
16056
|
-
"declarations": [
|
|
16057
|
-
{
|
|
16058
|
-
"kind": "variable",
|
|
16059
|
-
"name": "HTML_CONTAINER_SLOT",
|
|
16060
|
-
"type": {
|
|
16061
|
-
"text": "string"
|
|
16062
|
-
},
|
|
16063
|
-
"default": "'<div data-aichat-markdown=\"\"></div>'",
|
|
16064
|
-
"description": "Marker element appended to opening HTML so markdown children mount inside the block."
|
|
16544
|
+
],
|
|
16545
|
+
"description": "True if any table token in the tree has a sibling that follows it. Used to\ndetect that the streaming author has moved past a table, so we can exit the\n\"table loading\" hold and render the live table."
|
|
16065
16546
|
},
|
|
16066
16547
|
{
|
|
16067
16548
|
"kind": "function",
|
|
16068
|
-
"name": "
|
|
16549
|
+
"name": "isTableAtStreamingTail",
|
|
16069
16550
|
"return": {
|
|
16070
16551
|
"type": {
|
|
16071
|
-
"text": "
|
|
16552
|
+
"text": "boolean"
|
|
16072
16553
|
}
|
|
16073
16554
|
},
|
|
16074
16555
|
"parameters": [
|
|
16075
16556
|
{
|
|
16076
|
-
"name": "
|
|
16557
|
+
"name": "parentChildren",
|
|
16077
16558
|
"type": {
|
|
16078
|
-
"text": "
|
|
16559
|
+
"text": "readonly unknown[]"
|
|
16560
|
+
}
|
|
16561
|
+
},
|
|
16562
|
+
{
|
|
16563
|
+
"name": "currentIndex",
|
|
16564
|
+
"type": {
|
|
16565
|
+
"text": "number"
|
|
16079
16566
|
}
|
|
16080
16567
|
}
|
|
16081
|
-
]
|
|
16568
|
+
],
|
|
16569
|
+
"description": "True when a table at `currentIndex` inside `parentChildren` has no\nsiblings after it — i.e. it is currently the last child of its parent.\nThe streaming-table renderer uses this to decide whether the live table\nshould show its skeleton/loading state."
|
|
16082
16570
|
},
|
|
16083
16571
|
{
|
|
16084
16572
|
"kind": "function",
|
|
16085
|
-
"name": "
|
|
16573
|
+
"name": "hasLikelyPartialTableTail",
|
|
16086
16574
|
"return": {
|
|
16087
16575
|
"type": {
|
|
16088
|
-
"text": "
|
|
16576
|
+
"text": "boolean"
|
|
16089
16577
|
}
|
|
16090
16578
|
},
|
|
16091
16579
|
"parameters": [
|
|
16092
16580
|
{
|
|
16093
|
-
"name": "
|
|
16581
|
+
"name": "markdown",
|
|
16094
16582
|
"type": {
|
|
16095
|
-
"text": "
|
|
16583
|
+
"text": "string"
|
|
16096
16584
|
}
|
|
16097
16585
|
}
|
|
16098
|
-
]
|
|
16586
|
+
],
|
|
16587
|
+
"description": "Heuristic that returns true when the last non-empty line of the markdown\nsource looks like an in-progress table row or separator. markdown-it can\nmomentarily stop recognizing the table token while a row is half-written, so\nthe streaming-table hold uses this to avoid flickering between table and\nnon-table renderings."
|
|
16099
16588
|
}
|
|
16100
16589
|
],
|
|
16101
16590
|
"exports": [
|
|
16102
16591
|
{
|
|
16103
16592
|
"kind": "js",
|
|
16104
|
-
"name": "
|
|
16593
|
+
"name": "hasTrailingTableToken",
|
|
16105
16594
|
"declaration": {
|
|
16106
|
-
"name": "
|
|
16107
|
-
"module": "src/components/markdown/src/utils/
|
|
16595
|
+
"name": "hasTrailingTableToken",
|
|
16596
|
+
"module": "src/components/markdown/src/utils/streaming-table.ts"
|
|
16108
16597
|
}
|
|
16109
16598
|
},
|
|
16110
16599
|
{
|
|
16111
16600
|
"kind": "js",
|
|
16112
|
-
"name": "
|
|
16601
|
+
"name": "hasNodeAfterTable",
|
|
16113
16602
|
"declaration": {
|
|
16114
|
-
"name": "
|
|
16115
|
-
"module": "src/components/markdown/src/utils/
|
|
16603
|
+
"name": "hasNodeAfterTable",
|
|
16604
|
+
"module": "src/components/markdown/src/utils/streaming-table.ts"
|
|
16116
16605
|
}
|
|
16117
16606
|
},
|
|
16118
16607
|
{
|
|
16119
16608
|
"kind": "js",
|
|
16120
|
-
"name": "
|
|
16609
|
+
"name": "isTableAtStreamingTail",
|
|
16121
16610
|
"declaration": {
|
|
16122
|
-
"name": "
|
|
16123
|
-
"module": "src/components/markdown/src/utils/
|
|
16611
|
+
"name": "isTableAtStreamingTail",
|
|
16612
|
+
"module": "src/components/markdown/src/utils/streaming-table.ts"
|
|
16613
|
+
}
|
|
16614
|
+
},
|
|
16615
|
+
{
|
|
16616
|
+
"kind": "js",
|
|
16617
|
+
"name": "hasLikelyPartialTableTail",
|
|
16618
|
+
"declaration": {
|
|
16619
|
+
"name": "hasLikelyPartialTableTail",
|
|
16620
|
+
"module": "src/components/markdown/src/utils/streaming-table.ts"
|
|
16124
16621
|
}
|
|
16125
16622
|
}
|
|
16126
16623
|
]
|
|
@@ -16188,6 +16685,54 @@
|
|
|
16188
16685
|
}
|
|
16189
16686
|
],
|
|
16190
16687
|
"description": "Recursively extracts plain text content from a TokenTree node.\n\nThis is used for table cells and other contexts where we need the\ntext content without HTML formatting."
|
|
16688
|
+
},
|
|
16689
|
+
{
|
|
16690
|
+
"kind": "function",
|
|
16691
|
+
"name": "renderTable",
|
|
16692
|
+
"return": {
|
|
16693
|
+
"type": {
|
|
16694
|
+
"text": "TemplateResult"
|
|
16695
|
+
}
|
|
16696
|
+
},
|
|
16697
|
+
"parameters": [
|
|
16698
|
+
{
|
|
16699
|
+
"name": "token",
|
|
16700
|
+
"type": {
|
|
16701
|
+
"text": "Token"
|
|
16702
|
+
}
|
|
16703
|
+
},
|
|
16704
|
+
{
|
|
16705
|
+
"name": "node",
|
|
16706
|
+
"type": {
|
|
16707
|
+
"text": "TokenTree"
|
|
16708
|
+
}
|
|
16709
|
+
},
|
|
16710
|
+
{
|
|
16711
|
+
"name": "attrs",
|
|
16712
|
+
"type": {
|
|
16713
|
+
"text": "Record<string, string>"
|
|
16714
|
+
}
|
|
16715
|
+
},
|
|
16716
|
+
{
|
|
16717
|
+
"name": "options",
|
|
16718
|
+
"type": {
|
|
16719
|
+
"text": "RenderTokenTreeOptions"
|
|
16720
|
+
}
|
|
16721
|
+
},
|
|
16722
|
+
{
|
|
16723
|
+
"name": "renderToken",
|
|
16724
|
+
"type": {
|
|
16725
|
+
"text": "(\n node: TokenTree,\n options: RenderTokenTreeOptions,\n ) => TemplateResult"
|
|
16726
|
+
}
|
|
16727
|
+
},
|
|
16728
|
+
{
|
|
16729
|
+
"name": "slotName",
|
|
16730
|
+
"type": {
|
|
16731
|
+
"text": "string | undefined"
|
|
16732
|
+
}
|
|
16733
|
+
}
|
|
16734
|
+
],
|
|
16735
|
+
"description": "Renders the body of the `case \"table\"` branch of `renderWithStaticTag`.\n\nLives outside the renderer's switch because it covers three flows: streaming\nloading state, default Carbon-table rendering, and the `customRenderers.table`\nslot override.\n\n`renderToken` is the recursive renderer the caller dispatched from, passed in\nto avoid a cycle with `markdown-renderer.ts`. `slotName` is non-undefined when\nthe consumer registered a `table` custom renderer, in which case the result is\nwrapped in a named `<slot>` and an override descriptor is reported via\n`recordCustomRender`."
|
|
16191
16736
|
}
|
|
16192
16737
|
],
|
|
16193
16738
|
"exports": [
|
|
@@ -16222,6 +16767,14 @@
|
|
|
16222
16767
|
"name": "extractTextContent",
|
|
16223
16768
|
"module": "src/components/markdown/src/utils/table-helpers.ts"
|
|
16224
16769
|
}
|
|
16770
|
+
},
|
|
16771
|
+
{
|
|
16772
|
+
"kind": "js",
|
|
16773
|
+
"name": "renderTable",
|
|
16774
|
+
"declaration": {
|
|
16775
|
+
"name": "renderTable",
|
|
16776
|
+
"module": "src/components/markdown/src/utils/table-helpers.ts"
|
|
16777
|
+
}
|
|
16225
16778
|
}
|
|
16226
16779
|
]
|
|
16227
16780
|
},
|