@carbon/ai-chat-components 1.4.0-rc.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 +1620 -1067
- 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
|
-
},
|
|
1521
|
-
{
|
|
1522
|
-
"kind": "js",
|
|
1523
|
-
"name": "getFirstAndLastFocusableChildren",
|
|
1524
|
-
"declaration": {
|
|
1525
|
-
"name": "getFirstAndLastFocusableChildren",
|
|
1526
|
-
"module": "src/globals/utils/focus-utils.ts"
|
|
1527
|
-
}
|
|
1528
|
-
},
|
|
1372
|
+
"kind": "variable",
|
|
1373
|
+
"name": "HistoryPanelItems"
|
|
1374
|
+
}
|
|
1375
|
+
],
|
|
1376
|
+
"exports": [
|
|
1529
1377
|
{
|
|
1530
1378
|
"kind": "js",
|
|
1531
|
-
"name": "
|
|
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"
|
|
1753
1562
|
}
|
|
1754
|
-
}
|
|
1755
|
-
]
|
|
1756
|
-
},
|
|
1757
|
-
{
|
|
1758
|
-
"kind": "javascript-module",
|
|
1759
|
-
"path": "src/react/history/history-panel.ts",
|
|
1760
|
-
"declarations": [
|
|
1563
|
+
},
|
|
1761
1564
|
{
|
|
1762
|
-
"kind": "
|
|
1763
|
-
"name": "
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1565
|
+
"kind": "js",
|
|
1566
|
+
"name": "HistorySearchItem",
|
|
1567
|
+
"declaration": {
|
|
1568
|
+
"name": "default",
|
|
1569
|
+
"module": "./history-search-item.js"
|
|
1570
|
+
}
|
|
1571
|
+
},
|
|
1767
1572
|
{
|
|
1768
1573
|
"kind": "js",
|
|
1769
|
-
"name": "
|
|
1574
|
+
"name": "HistoryPanelItemInput",
|
|
1770
1575
|
"declaration": {
|
|
1771
|
-
"name": "
|
|
1772
|
-
"module": "
|
|
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"
|
|
1773
1586
|
}
|
|
1774
1587
|
}
|
|
1775
1588
|
]
|
|
1776
1589
|
},
|
|
1777
1590
|
{
|
|
1778
1591
|
"kind": "javascript-module",
|
|
1779
|
-
"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",
|
|
1780
1599
|
"declarations": [
|
|
1781
1600
|
{
|
|
1782
|
-
"kind": "
|
|
1783
|
-
"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"
|
|
1784
1613
|
}
|
|
1785
1614
|
],
|
|
1786
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
|
+
},
|
|
1787
1632
|
{
|
|
1788
1633
|
"kind": "js",
|
|
1789
|
-
"name": "
|
|
1634
|
+
"name": "carbonElement",
|
|
1790
1635
|
"declaration": {
|
|
1791
|
-
"name": "
|
|
1792
|
-
"module": "src/
|
|
1636
|
+
"name": "carbonElement",
|
|
1637
|
+
"module": "src/globals/decorators/carbon-element.ts"
|
|
1793
1638
|
}
|
|
1794
1639
|
}
|
|
1795
1640
|
]
|
|
1796
1641
|
},
|
|
1797
1642
|
{
|
|
1798
1643
|
"kind": "javascript-module",
|
|
1799
|
-
"path": "src/
|
|
1800
|
-
"declarations": [
|
|
1801
|
-
{
|
|
1802
|
-
"kind": "variable",
|
|
1803
|
-
"name": "HistoryShell"
|
|
1804
|
-
}
|
|
1805
|
-
],
|
|
1644
|
+
"path": "src/globals/decorators/index.ts",
|
|
1645
|
+
"declarations": [],
|
|
1806
1646
|
"exports": [
|
|
1807
1647
|
{
|
|
1808
1648
|
"kind": "js",
|
|
1809
|
-
"name": "
|
|
1649
|
+
"name": "carbonElement",
|
|
1810
1650
|
"declaration": {
|
|
1811
|
-
"name": "
|
|
1812
|
-
"module": "
|
|
1651
|
+
"name": "carbonElement",
|
|
1652
|
+
"module": "./carbon-element.js"
|
|
1813
1653
|
}
|
|
1814
1654
|
}
|
|
1815
1655
|
]
|
|
1816
1656
|
},
|
|
1817
1657
|
{
|
|
1818
1658
|
"kind": "javascript-module",
|
|
1819
|
-
"path": "src/
|
|
1659
|
+
"path": "src/globals/internal/storybook-cdn.ts",
|
|
1820
1660
|
"declarations": [
|
|
1821
1661
|
{
|
|
1822
|
-
"kind": "
|
|
1823
|
-
"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"
|
|
1824
1679
|
}
|
|
1825
1680
|
],
|
|
1826
1681
|
"exports": [
|
|
1827
1682
|
{
|
|
1828
1683
|
"kind": "js",
|
|
1829
|
-
"name": "
|
|
1684
|
+
"name": "cdnJs",
|
|
1830
1685
|
"declaration": {
|
|
1831
|
-
"name": "
|
|
1832
|
-
"module": "src/
|
|
1686
|
+
"name": "cdnJs",
|
|
1687
|
+
"module": "src/globals/internal/storybook-cdn.ts"
|
|
1688
|
+
}
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
"kind": "js",
|
|
1692
|
+
"name": "cdnCss",
|
|
1693
|
+
"declaration": {
|
|
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."
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
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."
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
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."
|
|
1849
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": [
|
|
1850
1874
|
{
|
|
1851
1875
|
"kind": "js",
|
|
1852
|
-
"name": "
|
|
1876
|
+
"name": "getDeepActiveElement",
|
|
1853
1877
|
"declaration": {
|
|
1854
|
-
"name": "
|
|
1855
|
-
"module": "
|
|
1878
|
+
"name": "getDeepActiveElement",
|
|
1879
|
+
"module": "src/globals/utils/focus-utils.ts"
|
|
1856
1880
|
}
|
|
1857
1881
|
},
|
|
1858
1882
|
{
|
|
1859
1883
|
"kind": "js",
|
|
1860
|
-
"name": "
|
|
1884
|
+
"name": "isElementInvisible",
|
|
1861
1885
|
"declaration": {
|
|
1862
|
-
"name": "
|
|
1863
|
-
"module": "
|
|
1886
|
+
"name": "isElementInvisible",
|
|
1887
|
+
"module": "src/globals/utils/focus-utils.ts"
|
|
1864
1888
|
}
|
|
1865
1889
|
},
|
|
1866
1890
|
{
|
|
1867
1891
|
"kind": "js",
|
|
1868
|
-
"name": "
|
|
1892
|
+
"name": "isFocusable",
|
|
1869
1893
|
"declaration": {
|
|
1870
|
-
"name": "
|
|
1871
|
-
"module": "
|
|
1894
|
+
"name": "isFocusable",
|
|
1895
|
+
"module": "src/globals/utils/focus-utils.ts"
|
|
1872
1896
|
}
|
|
1873
1897
|
},
|
|
1874
1898
|
{
|
|
1875
1899
|
"kind": "js",
|
|
1876
|
-
"name": "
|
|
1900
|
+
"name": "tryFocus",
|
|
1877
1901
|
"declaration": {
|
|
1878
|
-
"name": "
|
|
1879
|
-
"module": "
|
|
1902
|
+
"name": "tryFocus",
|
|
1903
|
+
"module": "src/globals/utils/focus-utils.ts"
|
|
1880
1904
|
}
|
|
1881
1905
|
},
|
|
1882
1906
|
{
|
|
1883
1907
|
"kind": "js",
|
|
1884
|
-
"name": "
|
|
1908
|
+
"name": "walkComposedTree",
|
|
1885
1909
|
"declaration": {
|
|
1886
|
-
"name": "
|
|
1887
|
-
"module": "
|
|
1910
|
+
"name": "walkComposedTree",
|
|
1911
|
+
"module": "src/globals/utils/focus-utils.ts"
|
|
1888
1912
|
}
|
|
1889
1913
|
},
|
|
1890
1914
|
{
|
|
1891
1915
|
"kind": "js",
|
|
1892
|
-
"name": "
|
|
1916
|
+
"name": "getFirstAndLastFocusableChildren",
|
|
1893
1917
|
"declaration": {
|
|
1894
|
-
"name": "
|
|
1895
|
-
"module": "
|
|
1918
|
+
"name": "getFirstAndLastFocusableChildren",
|
|
1919
|
+
"module": "src/globals/utils/focus-utils.ts"
|
|
1896
1920
|
}
|
|
1897
1921
|
},
|
|
1898
1922
|
{
|
|
1899
1923
|
"kind": "js",
|
|
1900
|
-
"name": "
|
|
1924
|
+
"name": "focusElementAfterRepaint",
|
|
1901
1925
|
"declaration": {
|
|
1902
|
-
"name": "
|
|
1903
|
-
"module": "
|
|
1926
|
+
"name": "focusElementAfterRepaint",
|
|
1927
|
+
"module": "src/globals/utils/focus-utils.ts"
|
|
1904
1928
|
}
|
|
1905
|
-
}
|
|
1929
|
+
}
|
|
1930
|
+
]
|
|
1931
|
+
},
|
|
1932
|
+
{
|
|
1933
|
+
"kind": "javascript-module",
|
|
1934
|
+
"path": "src/globals/utils/rtl-utils.ts",
|
|
1935
|
+
"declarations": [
|
|
1906
1936
|
{
|
|
1907
|
-
"kind": "
|
|
1908
|
-
"name": "
|
|
1909
|
-
"
|
|
1910
|
-
"
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
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": [
|
|
1914
1948
|
{
|
|
1915
1949
|
"kind": "js",
|
|
1916
|
-
"name": "
|
|
1950
|
+
"name": "isDirectionRTL",
|
|
1917
1951
|
"declaration": {
|
|
1918
|
-
"name": "
|
|
1919
|
-
"module": "
|
|
1952
|
+
"name": "isDirectionRTL",
|
|
1953
|
+
"module": "src/globals/utils/rtl-utils.ts"
|
|
1920
1954
|
}
|
|
1921
|
-
}
|
|
1955
|
+
}
|
|
1956
|
+
]
|
|
1957
|
+
},
|
|
1958
|
+
{
|
|
1959
|
+
"kind": "javascript-module",
|
|
1960
|
+
"path": "src/globals/utils/uuid.ts",
|
|
1961
|
+
"declarations": [
|
|
1922
1962
|
{
|
|
1923
|
-
"kind": "
|
|
1924
|
-
"name": "
|
|
1925
|
-
"
|
|
1926
|
-
"
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
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",
|
|
@@ -11138,41 +11384,6 @@
|
|
|
11138
11384
|
}
|
|
11139
11385
|
]
|
|
11140
11386
|
},
|
|
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",
|
|
11157
|
-
"type": {
|
|
11158
|
-
"text": "any[]"
|
|
11159
|
-
}
|
|
11160
|
-
}
|
|
11161
|
-
],
|
|
11162
|
-
"description": "Console error with prefix"
|
|
11163
|
-
}
|
|
11164
|
-
],
|
|
11165
|
-
"exports": [
|
|
11166
|
-
{
|
|
11167
|
-
"kind": "js",
|
|
11168
|
-
"name": "consoleError",
|
|
11169
|
-
"declaration": {
|
|
11170
|
-
"name": "consoleError",
|
|
11171
|
-
"module": "src/components/markdown/src/utils.ts"
|
|
11172
|
-
}
|
|
11173
|
-
}
|
|
11174
|
-
]
|
|
11175
|
-
},
|
|
11176
11387
|
{
|
|
11177
11388
|
"kind": "javascript-module",
|
|
11178
11389
|
"path": "src/components/processing/src/processing.ts",
|
|
@@ -15237,232 +15448,346 @@
|
|
|
15237
15448
|
},
|
|
15238
15449
|
{
|
|
15239
15450
|
"kind": "javascript-module",
|
|
15240
|
-
"path": "src/components/
|
|
15451
|
+
"path": "src/components/code-snippet/src/codemirror/base-setup.ts",
|
|
15241
15452
|
"declarations": [
|
|
15242
15453
|
{
|
|
15243
15454
|
"kind": "function",
|
|
15244
|
-
"name": "
|
|
15455
|
+
"name": "baseCodeMirrorSetup",
|
|
15245
15456
|
"return": {
|
|
15246
15457
|
"type": {
|
|
15247
|
-
"text": "
|
|
15458
|
+
"text": "Extension"
|
|
15248
15459
|
}
|
|
15249
15460
|
},
|
|
15250
15461
|
"parameters": [
|
|
15251
15462
|
{
|
|
15252
|
-
"name": "
|
|
15463
|
+
"name": "options",
|
|
15464
|
+
"default": "{}",
|
|
15253
15465
|
"type": {
|
|
15254
|
-
"text": "
|
|
15466
|
+
"text": "BaseCodeMirrorSetupOptions"
|
|
15255
15467
|
}
|
|
15256
15468
|
}
|
|
15257
15469
|
],
|
|
15258
|
-
"description": "
|
|
15470
|
+
"description": "Minimal editor affordances for snippets:\n - keep the layout oriented (gutters, folding)\n - preserve indentation and basic syntax cues\n - avoid heavier behaviors like search, autocomplete, multi-caret history"
|
|
15259
15471
|
}
|
|
15260
15472
|
],
|
|
15261
15473
|
"exports": [
|
|
15262
15474
|
{
|
|
15263
15475
|
"kind": "js",
|
|
15264
|
-
"name": "
|
|
15265
|
-
"declaration": {
|
|
15266
|
-
"name": "markdownItAttrs",
|
|
15267
|
-
"module": "src/components/markdown/src/plugins/markdown-it-attrs.ts"
|
|
15268
|
-
}
|
|
15269
|
-
},
|
|
15270
|
-
{
|
|
15271
|
-
"kind": "js",
|
|
15272
|
-
"name": "default",
|
|
15476
|
+
"name": "baseCodeMirrorSetup",
|
|
15273
15477
|
"declaration": {
|
|
15274
|
-
"name": "
|
|
15275
|
-
"module": "src/components/
|
|
15478
|
+
"name": "baseCodeMirrorSetup",
|
|
15479
|
+
"module": "src/components/code-snippet/src/codemirror/base-setup.ts"
|
|
15276
15480
|
}
|
|
15277
15481
|
}
|
|
15278
15482
|
]
|
|
15279
15483
|
},
|
|
15280
15484
|
{
|
|
15281
15485
|
"kind": "javascript-module",
|
|
15282
|
-
"path": "src/components/
|
|
15486
|
+
"path": "src/components/code-snippet/src/codemirror/codemirror-loader.ts",
|
|
15283
15487
|
"declarations": [
|
|
15284
15488
|
{
|
|
15285
15489
|
"kind": "function",
|
|
15286
|
-
"name": "
|
|
15287
|
-
"
|
|
15288
|
-
{
|
|
15289
|
-
"
|
|
15290
|
-
"type": {
|
|
15291
|
-
"text": "MarkdownIt"
|
|
15292
|
-
}
|
|
15490
|
+
"name": "loadCodeMirrorRuntime",
|
|
15491
|
+
"return": {
|
|
15492
|
+
"type": {
|
|
15493
|
+
"text": "Promise<CodeMirrorRuntimeModule>"
|
|
15293
15494
|
}
|
|
15294
|
-
|
|
15495
|
+
},
|
|
15496
|
+
"description": "Lazily loads the CodeMirror runtime so that heavy editor dependencies are only\npulled into the bundle when the code-snippet component is actually rendered."
|
|
15497
|
+
},
|
|
15498
|
+
{
|
|
15499
|
+
"kind": "function",
|
|
15500
|
+
"name": "loadCodeSnippetDeps",
|
|
15501
|
+
"return": {
|
|
15502
|
+
"type": {
|
|
15503
|
+
"text": "Promise<CodeMirrorRuntimeModule>"
|
|
15504
|
+
}
|
|
15505
|
+
},
|
|
15506
|
+
"description": "Public helper so tests or higher-level packages can preload the heavy\nCodeMirror dependencies ahead of time (e.g., in Jest setup files)."
|
|
15295
15507
|
}
|
|
15296
15508
|
],
|
|
15297
15509
|
"exports": [
|
|
15298
15510
|
{
|
|
15299
15511
|
"kind": "js",
|
|
15300
|
-
"name": "
|
|
15512
|
+
"name": "loadCodeMirrorRuntime",
|
|
15301
15513
|
"declaration": {
|
|
15302
|
-
"name": "
|
|
15303
|
-
"module": "src/components/
|
|
15514
|
+
"name": "loadCodeMirrorRuntime",
|
|
15515
|
+
"module": "src/components/code-snippet/src/codemirror/codemirror-loader.ts"
|
|
15304
15516
|
}
|
|
15305
|
-
}
|
|
15306
|
-
]
|
|
15307
|
-
},
|
|
15308
|
-
{
|
|
15309
|
-
"kind": "javascript-module",
|
|
15310
|
-
"path": "src/components/markdown/src/plugins/markdown-it-task-lists.ts",
|
|
15311
|
-
"declarations": [
|
|
15517
|
+
},
|
|
15312
15518
|
{
|
|
15313
|
-
"kind": "
|
|
15314
|
-
"name": "
|
|
15315
|
-
"
|
|
15316
|
-
|
|
15317
|
-
|
|
15318
|
-
|
|
15319
|
-
|
|
15320
|
-
}
|
|
15321
|
-
}
|
|
15322
|
-
]
|
|
15323
|
-
}
|
|
15324
|
-
],
|
|
15325
|
-
"exports": [
|
|
15519
|
+
"kind": "js",
|
|
15520
|
+
"name": "loadCodeSnippetDeps",
|
|
15521
|
+
"declaration": {
|
|
15522
|
+
"name": "loadCodeSnippetDeps",
|
|
15523
|
+
"module": "src/components/code-snippet/src/codemirror/codemirror-loader.ts"
|
|
15524
|
+
}
|
|
15525
|
+
},
|
|
15326
15526
|
{
|
|
15327
15527
|
"kind": "js",
|
|
15328
|
-
"name": "
|
|
15528
|
+
"name": "CodeMirrorRuntimeModule",
|
|
15329
15529
|
"declaration": {
|
|
15330
|
-
"name": "
|
|
15331
|
-
"module": "src/components/
|
|
15530
|
+
"name": "CodeMirrorRuntimeModule",
|
|
15531
|
+
"module": "src/components/code-snippet/src/codemirror/codemirror-loader.ts"
|
|
15332
15532
|
}
|
|
15333
15533
|
}
|
|
15334
15534
|
]
|
|
15335
15535
|
},
|
|
15336
15536
|
{
|
|
15337
15537
|
"kind": "javascript-module",
|
|
15338
|
-
"path": "src/components/code-snippet/src/codemirror/
|
|
15339
|
-
"declarations": [
|
|
15340
|
-
{
|
|
15341
|
-
"kind": "function",
|
|
15342
|
-
"name": "baseCodeMirrorSetup",
|
|
15343
|
-
"return": {
|
|
15344
|
-
"type": {
|
|
15345
|
-
"text": "Extension"
|
|
15346
|
-
}
|
|
15347
|
-
},
|
|
15348
|
-
"parameters": [
|
|
15349
|
-
{
|
|
15350
|
-
"name": "options",
|
|
15351
|
-
"default": "{}",
|
|
15352
|
-
"type": {
|
|
15353
|
-
"text": "BaseCodeMirrorSetupOptions"
|
|
15354
|
-
}
|
|
15355
|
-
}
|
|
15356
|
-
],
|
|
15357
|
-
"description": "Minimal editor affordances for snippets:\n - keep the layout oriented (gutters, folding)\n - preserve indentation and basic syntax cues\n - avoid heavier behaviors like search, autocomplete, multi-caret history"
|
|
15358
|
-
}
|
|
15359
|
-
],
|
|
15538
|
+
"path": "src/components/code-snippet/src/codemirror/codemirror-runtime.ts",
|
|
15539
|
+
"declarations": [],
|
|
15360
15540
|
"exports": [
|
|
15361
15541
|
{
|
|
15362
15542
|
"kind": "js",
|
|
15363
|
-
"name": "
|
|
15543
|
+
"name": "LanguageController",
|
|
15364
15544
|
"declaration": {
|
|
15365
|
-
"name": "
|
|
15366
|
-
"module": "
|
|
15545
|
+
"name": "LanguageController",
|
|
15546
|
+
"module": "./language-controller.js"
|
|
15547
|
+
}
|
|
15548
|
+
},
|
|
15549
|
+
{
|
|
15550
|
+
"kind": "js",
|
|
15551
|
+
"name": "LanguageStateUpdate",
|
|
15552
|
+
"declaration": {
|
|
15553
|
+
"name": "LanguageStateUpdate",
|
|
15554
|
+
"module": "./language-controller.js"
|
|
15555
|
+
}
|
|
15556
|
+
},
|
|
15557
|
+
{
|
|
15558
|
+
"kind": "js",
|
|
15559
|
+
"name": "createContentSync",
|
|
15560
|
+
"declaration": {
|
|
15561
|
+
"name": "createContentSync",
|
|
15562
|
+
"module": "./content-sync.js"
|
|
15563
|
+
}
|
|
15564
|
+
},
|
|
15565
|
+
{
|
|
15566
|
+
"kind": "js",
|
|
15567
|
+
"name": "ContentSyncHandle",
|
|
15568
|
+
"declaration": {
|
|
15569
|
+
"name": "ContentSyncHandle",
|
|
15570
|
+
"module": "./content-sync.js"
|
|
15571
|
+
}
|
|
15572
|
+
},
|
|
15573
|
+
{
|
|
15574
|
+
"kind": "js",
|
|
15575
|
+
"name": "createEditorView",
|
|
15576
|
+
"declaration": {
|
|
15577
|
+
"name": "createEditorView",
|
|
15578
|
+
"module": "./editor-manager.js"
|
|
15579
|
+
}
|
|
15580
|
+
},
|
|
15581
|
+
{
|
|
15582
|
+
"kind": "js",
|
|
15583
|
+
"name": "applyLanguageSupport",
|
|
15584
|
+
"declaration": {
|
|
15585
|
+
"name": "applyLanguageSupport",
|
|
15586
|
+
"module": "./editor-manager.js"
|
|
15587
|
+
}
|
|
15588
|
+
},
|
|
15589
|
+
{
|
|
15590
|
+
"kind": "js",
|
|
15591
|
+
"name": "updateReadOnlyConfiguration",
|
|
15592
|
+
"declaration": {
|
|
15593
|
+
"name": "updateReadOnlyConfiguration",
|
|
15594
|
+
"module": "./editor-manager.js"
|
|
15595
|
+
}
|
|
15596
|
+
},
|
|
15597
|
+
{
|
|
15598
|
+
"kind": "js",
|
|
15599
|
+
"name": "updateContentAttributes",
|
|
15600
|
+
"declaration": {
|
|
15601
|
+
"name": "updateContentAttributes",
|
|
15602
|
+
"module": "./editor-manager.js"
|
|
15603
|
+
}
|
|
15604
|
+
},
|
|
15605
|
+
{
|
|
15606
|
+
"kind": "js",
|
|
15607
|
+
"name": "createDiffDecorator",
|
|
15608
|
+
"declaration": {
|
|
15609
|
+
"name": "createDiffDecorator",
|
|
15610
|
+
"module": "./diff-decorator.js"
|
|
15611
|
+
}
|
|
15612
|
+
},
|
|
15613
|
+
{
|
|
15614
|
+
"kind": "js",
|
|
15615
|
+
"name": "EditorView",
|
|
15616
|
+
"declaration": {
|
|
15617
|
+
"name": "EditorView",
|
|
15618
|
+
"module": "@codemirror/view"
|
|
15619
|
+
}
|
|
15620
|
+
},
|
|
15621
|
+
{
|
|
15622
|
+
"kind": "js",
|
|
15623
|
+
"name": "Compartment",
|
|
15624
|
+
"declaration": {
|
|
15625
|
+
"name": "Compartment",
|
|
15626
|
+
"module": "@codemirror/state"
|
|
15367
15627
|
}
|
|
15368
15628
|
}
|
|
15369
15629
|
]
|
|
15370
15630
|
},
|
|
15371
15631
|
{
|
|
15372
15632
|
"kind": "javascript-module",
|
|
15373
|
-
"path": "src/components/code-snippet/src/codemirror/
|
|
15633
|
+
"path": "src/components/code-snippet/src/codemirror/content-sync.ts",
|
|
15374
15634
|
"declarations": [
|
|
15375
15635
|
{
|
|
15376
15636
|
"kind": "function",
|
|
15377
|
-
"name": "
|
|
15637
|
+
"name": "createContentSync",
|
|
15378
15638
|
"return": {
|
|
15379
15639
|
"type": {
|
|
15380
|
-
"text": "
|
|
15640
|
+
"text": "ContentSyncHandle"
|
|
15381
15641
|
}
|
|
15382
15642
|
},
|
|
15383
|
-
"
|
|
15384
|
-
|
|
15385
|
-
|
|
15386
|
-
|
|
15387
|
-
|
|
15388
|
-
|
|
15389
|
-
"type": {
|
|
15390
|
-
"text": "Promise<CodeMirrorRuntimeModule>"
|
|
15643
|
+
"parameters": [
|
|
15644
|
+
{
|
|
15645
|
+
"name": "{\n getEditorView,\n onAfterApply,\n throttleMs = 200,\n}",
|
|
15646
|
+
"type": {
|
|
15647
|
+
"text": "ContentSyncHooks"
|
|
15648
|
+
}
|
|
15391
15649
|
}
|
|
15392
|
-
|
|
15393
|
-
"description": "Public helper so tests or higher-level packages can preload the heavy\nCodeMirror dependencies ahead of time (e.g., in Jest setup files)."
|
|
15650
|
+
]
|
|
15394
15651
|
}
|
|
15395
15652
|
],
|
|
15396
15653
|
"exports": [
|
|
15397
15654
|
{
|
|
15398
15655
|
"kind": "js",
|
|
15399
|
-
"name": "
|
|
15656
|
+
"name": "createContentSync",
|
|
15400
15657
|
"declaration": {
|
|
15401
|
-
"name": "
|
|
15402
|
-
"module": "src/components/code-snippet/src/codemirror/
|
|
15658
|
+
"name": "createContentSync",
|
|
15659
|
+
"module": "src/components/code-snippet/src/codemirror/content-sync.ts"
|
|
15403
15660
|
}
|
|
15404
|
-
}
|
|
15661
|
+
}
|
|
15662
|
+
]
|
|
15663
|
+
},
|
|
15664
|
+
{
|
|
15665
|
+
"kind": "javascript-module",
|
|
15666
|
+
"path": "src/components/code-snippet/src/codemirror/diff-decorator.ts",
|
|
15667
|
+
"declarations": [
|
|
15405
15668
|
{
|
|
15406
|
-
"kind": "
|
|
15407
|
-
"name": "
|
|
15408
|
-
"
|
|
15409
|
-
|
|
15410
|
-
"
|
|
15669
|
+
"kind": "function",
|
|
15670
|
+
"name": "createDiffDecorator",
|
|
15671
|
+
"description": "Creates a CodeMirror decorator that applies line-level background colors\nto diff syntax (inserted and deleted lines).\n\nThis decorator identifies lines starting with '+' (insertions) or '-' (deletions)\nand applies appropriate CSS classes for background coloring. It excludes diff\nmetadata lines like '+++', '---', and '@@'.",
|
|
15672
|
+
"return": {
|
|
15673
|
+
"type": {
|
|
15674
|
+
"text": ""
|
|
15675
|
+
}
|
|
15411
15676
|
}
|
|
15412
|
-
}
|
|
15677
|
+
}
|
|
15678
|
+
],
|
|
15679
|
+
"exports": [
|
|
15413
15680
|
{
|
|
15414
15681
|
"kind": "js",
|
|
15415
|
-
"name": "
|
|
15682
|
+
"name": "createDiffDecorator",
|
|
15416
15683
|
"declaration": {
|
|
15417
|
-
"name": "
|
|
15418
|
-
"module": "src/components/code-snippet/src/codemirror/
|
|
15684
|
+
"name": "createDiffDecorator",
|
|
15685
|
+
"module": "src/components/code-snippet/src/codemirror/diff-decorator.ts"
|
|
15419
15686
|
}
|
|
15420
15687
|
}
|
|
15421
15688
|
]
|
|
15422
15689
|
},
|
|
15423
15690
|
{
|
|
15424
15691
|
"kind": "javascript-module",
|
|
15425
|
-
"path": "src/components/code-snippet/src/codemirror/
|
|
15426
|
-
"declarations": [
|
|
15427
|
-
"exports": [
|
|
15692
|
+
"path": "src/components/code-snippet/src/codemirror/editor-manager.ts",
|
|
15693
|
+
"declarations": [
|
|
15428
15694
|
{
|
|
15429
|
-
"kind": "
|
|
15430
|
-
"name": "
|
|
15431
|
-
"
|
|
15432
|
-
"
|
|
15433
|
-
|
|
15434
|
-
|
|
15695
|
+
"kind": "function",
|
|
15696
|
+
"name": "createEditorView",
|
|
15697
|
+
"return": {
|
|
15698
|
+
"type": {
|
|
15699
|
+
"text": "EditorView"
|
|
15700
|
+
}
|
|
15701
|
+
},
|
|
15702
|
+
"parameters": [
|
|
15703
|
+
{
|
|
15704
|
+
"name": "{\n container,\n doc,\n languageSupport,\n languageCompartment,\n readOnlyCompartment,\n wrapCompartment,\n contentAttributesCompartment,\n editable,\n disabled,\n ariaLabel,\n detectedLanguage,\n onDocChanged,\n setupOptions,\n}",
|
|
15705
|
+
"type": {
|
|
15706
|
+
"text": "EditorCreationOptions"
|
|
15707
|
+
}
|
|
15708
|
+
}
|
|
15709
|
+
]
|
|
15435
15710
|
},
|
|
15436
15711
|
{
|
|
15437
|
-
"kind": "
|
|
15438
|
-
"name": "
|
|
15439
|
-
"
|
|
15440
|
-
|
|
15441
|
-
|
|
15442
|
-
|
|
15712
|
+
"kind": "function",
|
|
15713
|
+
"name": "applyLanguageSupport",
|
|
15714
|
+
"parameters": [
|
|
15715
|
+
{
|
|
15716
|
+
"name": "view",
|
|
15717
|
+
"type": {
|
|
15718
|
+
"text": "EditorView | undefined"
|
|
15719
|
+
}
|
|
15720
|
+
},
|
|
15721
|
+
{
|
|
15722
|
+
"name": "languageCompartment",
|
|
15723
|
+
"type": {
|
|
15724
|
+
"text": "Compartment"
|
|
15725
|
+
}
|
|
15726
|
+
},
|
|
15727
|
+
{
|
|
15728
|
+
"name": "support",
|
|
15729
|
+
"type": {
|
|
15730
|
+
"text": "LanguageSupport | null"
|
|
15731
|
+
}
|
|
15732
|
+
}
|
|
15733
|
+
]
|
|
15443
15734
|
},
|
|
15444
15735
|
{
|
|
15445
|
-
"kind": "
|
|
15446
|
-
"name": "
|
|
15447
|
-
"
|
|
15448
|
-
|
|
15449
|
-
|
|
15450
|
-
|
|
15736
|
+
"kind": "function",
|
|
15737
|
+
"name": "updateReadOnlyConfiguration",
|
|
15738
|
+
"parameters": [
|
|
15739
|
+
{
|
|
15740
|
+
"name": "view",
|
|
15741
|
+
"type": {
|
|
15742
|
+
"text": "EditorView | undefined"
|
|
15743
|
+
}
|
|
15744
|
+
},
|
|
15745
|
+
{
|
|
15746
|
+
"name": "readOnlyCompartment",
|
|
15747
|
+
"type": {
|
|
15748
|
+
"text": "Compartment"
|
|
15749
|
+
}
|
|
15750
|
+
},
|
|
15751
|
+
{
|
|
15752
|
+
"name": "{ editable, disabled }",
|
|
15753
|
+
"type": {
|
|
15754
|
+
"text": "{ editable: boolean; disabled: boolean }"
|
|
15755
|
+
}
|
|
15756
|
+
}
|
|
15757
|
+
]
|
|
15451
15758
|
},
|
|
15452
15759
|
{
|
|
15453
|
-
"kind": "
|
|
15454
|
-
"name": "
|
|
15455
|
-
"
|
|
15456
|
-
|
|
15457
|
-
|
|
15458
|
-
|
|
15459
|
-
|
|
15760
|
+
"kind": "function",
|
|
15761
|
+
"name": "updateContentAttributes",
|
|
15762
|
+
"parameters": [
|
|
15763
|
+
{
|
|
15764
|
+
"name": "view",
|
|
15765
|
+
"type": {
|
|
15766
|
+
"text": "EditorView | undefined"
|
|
15767
|
+
}
|
|
15768
|
+
},
|
|
15769
|
+
{
|
|
15770
|
+
"name": "contentAttributesCompartment",
|
|
15771
|
+
"type": {
|
|
15772
|
+
"text": "Compartment"
|
|
15773
|
+
}
|
|
15774
|
+
},
|
|
15775
|
+
{
|
|
15776
|
+
"name": "ariaLabel",
|
|
15777
|
+
"type": {
|
|
15778
|
+
"text": "string"
|
|
15779
|
+
}
|
|
15780
|
+
}
|
|
15781
|
+
]
|
|
15782
|
+
}
|
|
15783
|
+
],
|
|
15784
|
+
"exports": [
|
|
15460
15785
|
{
|
|
15461
15786
|
"kind": "js",
|
|
15462
15787
|
"name": "createEditorView",
|
|
15463
15788
|
"declaration": {
|
|
15464
15789
|
"name": "createEditorView",
|
|
15465
|
-
"module": "
|
|
15790
|
+
"module": "src/components/code-snippet/src/codemirror/editor-manager.ts"
|
|
15466
15791
|
}
|
|
15467
15792
|
},
|
|
15468
15793
|
{
|
|
@@ -15470,7 +15795,7 @@
|
|
|
15470
15795
|
"name": "applyLanguageSupport",
|
|
15471
15796
|
"declaration": {
|
|
15472
15797
|
"name": "applyLanguageSupport",
|
|
15473
|
-
"module": "
|
|
15798
|
+
"module": "src/components/code-snippet/src/codemirror/editor-manager.ts"
|
|
15474
15799
|
}
|
|
15475
15800
|
},
|
|
15476
15801
|
{
|
|
@@ -15478,84 +15803,278 @@
|
|
|
15478
15803
|
"name": "updateReadOnlyConfiguration",
|
|
15479
15804
|
"declaration": {
|
|
15480
15805
|
"name": "updateReadOnlyConfiguration",
|
|
15481
|
-
"module": "
|
|
15806
|
+
"module": "src/components/code-snippet/src/codemirror/editor-manager.ts"
|
|
15482
15807
|
}
|
|
15483
15808
|
},
|
|
15484
15809
|
{
|
|
15485
15810
|
"kind": "js",
|
|
15486
|
-
"name": "updateContentAttributes",
|
|
15811
|
+
"name": "updateContentAttributes",
|
|
15812
|
+
"declaration": {
|
|
15813
|
+
"name": "updateContentAttributes",
|
|
15814
|
+
"module": "src/components/code-snippet/src/codemirror/editor-manager.ts"
|
|
15815
|
+
}
|
|
15816
|
+
}
|
|
15817
|
+
]
|
|
15818
|
+
},
|
|
15819
|
+
{
|
|
15820
|
+
"kind": "javascript-module",
|
|
15821
|
+
"path": "src/components/code-snippet/src/codemirror/language-controller.ts",
|
|
15822
|
+
"declarations": [
|
|
15823
|
+
{
|
|
15824
|
+
"kind": "class",
|
|
15825
|
+
"description": "",
|
|
15826
|
+
"name": "LanguageController",
|
|
15827
|
+
"members": [
|
|
15828
|
+
{
|
|
15829
|
+
"kind": "field",
|
|
15830
|
+
"name": "pendingLanguageLoad",
|
|
15831
|
+
"type": {
|
|
15832
|
+
"text": "Promise<void> | null"
|
|
15833
|
+
},
|
|
15834
|
+
"privacy": "private",
|
|
15835
|
+
"default": "null"
|
|
15836
|
+
},
|
|
15837
|
+
{
|
|
15838
|
+
"kind": "field",
|
|
15839
|
+
"name": "languageDetectionTimeout",
|
|
15840
|
+
"type": {
|
|
15841
|
+
"text": "number | null"
|
|
15842
|
+
},
|
|
15843
|
+
"privacy": "private",
|
|
15844
|
+
"default": "null"
|
|
15845
|
+
},
|
|
15846
|
+
{
|
|
15847
|
+
"kind": "field",
|
|
15848
|
+
"name": "highlightingDetectionTimeout",
|
|
15849
|
+
"type": {
|
|
15850
|
+
"text": "number | null"
|
|
15851
|
+
},
|
|
15852
|
+
"privacy": "private",
|
|
15853
|
+
"default": "null"
|
|
15854
|
+
},
|
|
15855
|
+
{
|
|
15856
|
+
"kind": "field",
|
|
15857
|
+
"name": "editableLanguageDetectionTimeout",
|
|
15858
|
+
"type": {
|
|
15859
|
+
"text": "number | null"
|
|
15860
|
+
},
|
|
15861
|
+
"privacy": "private",
|
|
15862
|
+
"default": "null"
|
|
15863
|
+
},
|
|
15864
|
+
{
|
|
15865
|
+
"kind": "field",
|
|
15866
|
+
"name": "canDetectForHighlighting",
|
|
15867
|
+
"type": {
|
|
15868
|
+
"text": "boolean"
|
|
15869
|
+
},
|
|
15870
|
+
"privacy": "private",
|
|
15871
|
+
"default": "true"
|
|
15872
|
+
},
|
|
15873
|
+
{
|
|
15874
|
+
"kind": "method",
|
|
15875
|
+
"name": "resolveLanguageSupport",
|
|
15876
|
+
"return": {
|
|
15877
|
+
"type": {
|
|
15878
|
+
"text": "Promise<LanguageSupport | null>"
|
|
15879
|
+
}
|
|
15880
|
+
}
|
|
15881
|
+
},
|
|
15882
|
+
{
|
|
15883
|
+
"kind": "method",
|
|
15884
|
+
"name": "handleStreamingLanguageDetection",
|
|
15885
|
+
"return": {
|
|
15886
|
+
"type": {
|
|
15887
|
+
"text": "Promise<void>"
|
|
15888
|
+
}
|
|
15889
|
+
}
|
|
15890
|
+
},
|
|
15891
|
+
{
|
|
15892
|
+
"kind": "method",
|
|
15893
|
+
"name": "detectLanguageForEditable",
|
|
15894
|
+
"parameters": [
|
|
15895
|
+
{
|
|
15896
|
+
"name": "content",
|
|
15897
|
+
"type": {
|
|
15898
|
+
"text": "string"
|
|
15899
|
+
}
|
|
15900
|
+
}
|
|
15901
|
+
]
|
|
15902
|
+
},
|
|
15903
|
+
{
|
|
15904
|
+
"kind": "method",
|
|
15905
|
+
"name": "reset"
|
|
15906
|
+
},
|
|
15907
|
+
{
|
|
15908
|
+
"kind": "method",
|
|
15909
|
+
"name": "dispose"
|
|
15910
|
+
},
|
|
15911
|
+
{
|
|
15912
|
+
"kind": "method",
|
|
15913
|
+
"name": "lockDetectedLanguageFromContent",
|
|
15914
|
+
"privacy": "private"
|
|
15915
|
+
},
|
|
15916
|
+
{
|
|
15917
|
+
"kind": "method",
|
|
15918
|
+
"name": "scheduleHighlightingDetectionReset",
|
|
15919
|
+
"privacy": "private"
|
|
15920
|
+
},
|
|
15921
|
+
{
|
|
15922
|
+
"kind": "method",
|
|
15923
|
+
"name": "clearLanguageDetectionTimeout",
|
|
15924
|
+
"privacy": "private"
|
|
15925
|
+
},
|
|
15926
|
+
{
|
|
15927
|
+
"kind": "method",
|
|
15928
|
+
"name": "clearHighlightingDetectionTimeout",
|
|
15929
|
+
"privacy": "private"
|
|
15930
|
+
},
|
|
15931
|
+
{
|
|
15932
|
+
"kind": "method",
|
|
15933
|
+
"name": "clearEditableDetectionTimeout",
|
|
15934
|
+
"privacy": "private"
|
|
15935
|
+
},
|
|
15936
|
+
{
|
|
15937
|
+
"kind": "method",
|
|
15938
|
+
"name": "disposeTimers",
|
|
15939
|
+
"privacy": "private"
|
|
15940
|
+
}
|
|
15941
|
+
]
|
|
15942
|
+
}
|
|
15943
|
+
],
|
|
15944
|
+
"exports": [
|
|
15945
|
+
{
|
|
15946
|
+
"kind": "js",
|
|
15947
|
+
"name": "LanguageController",
|
|
15487
15948
|
"declaration": {
|
|
15488
|
-
"name": "
|
|
15489
|
-
"module": "
|
|
15949
|
+
"name": "LanguageController",
|
|
15950
|
+
"module": "src/components/code-snippet/src/codemirror/language-controller.ts"
|
|
15490
15951
|
}
|
|
15491
15952
|
},
|
|
15492
15953
|
{
|
|
15493
15954
|
"kind": "js",
|
|
15494
|
-
"name": "
|
|
15955
|
+
"name": "LanguageStateUpdate",
|
|
15495
15956
|
"declaration": {
|
|
15496
|
-
"name": "
|
|
15497
|
-
"module": "
|
|
15957
|
+
"name": "LanguageStateUpdate",
|
|
15958
|
+
"module": "src/components/code-snippet/src/codemirror/language-controller.ts"
|
|
15498
15959
|
}
|
|
15499
|
-
}
|
|
15960
|
+
}
|
|
15961
|
+
]
|
|
15962
|
+
},
|
|
15963
|
+
{
|
|
15964
|
+
"kind": "javascript-module",
|
|
15965
|
+
"path": "src/components/code-snippet/src/codemirror/language-data.ts",
|
|
15966
|
+
"declarations": [
|
|
15500
15967
|
{
|
|
15501
|
-
"kind": "
|
|
15502
|
-
"name": "
|
|
15503
|
-
"
|
|
15504
|
-
"
|
|
15505
|
-
|
|
15506
|
-
}
|
|
15507
|
-
|
|
15968
|
+
"kind": "variable",
|
|
15969
|
+
"name": "languages",
|
|
15970
|
+
"type": {
|
|
15971
|
+
"text": "array"
|
|
15972
|
+
},
|
|
15973
|
+
"default": "[ // New-style language modes LanguageDescription.of({ name: \"C\", extensions: [\"c\", \"h\", \"ino\"], load() { return import(\"@codemirror/lang-cpp\").then((m) => m.cpp()); }, }), LanguageDescription.of({ name: \"C++\", alias: [\"cpp\"], extensions: [\"cpp\", \"c++\", \"cc\", \"cxx\", \"hpp\", \"h++\", \"hh\", \"hxx\"], load() { return import(\"@codemirror/lang-cpp\").then((m) => m.cpp()); }, }), LanguageDescription.of({ name: \"CQL\", alias: [\"cassandra\"], extensions: [\"cql\"], load() { return sql(\"Cassandra\"); }, }), LanguageDescription.of({ name: \"CSS\", extensions: [\"css\"], load() { return import(\"@codemirror/lang-css\").then((m) => m.css()); }, }), LanguageDescription.of({ name: \"Go\", extensions: [\"go\"], load() { return import(\"@codemirror/lang-go\").then((m) => m.go()); }, }), LanguageDescription.of({ name: \"HTML\", alias: [\"xhtml\"], extensions: [\"html\", \"htm\", \"handlebars\", \"hbs\"], load() { return import(\"@codemirror/lang-html\").then((m) => m.html()); }, }), LanguageDescription.of({ name: \"Java\", extensions: [\"java\"], load() { return import(\"@codemirror/lang-java\").then((m) => m.java()); }, }), LanguageDescription.of({ name: \"JavaScript\", alias: [\"ecmascript\", \"js\", \"node\"], extensions: [\"js\", \"mjs\", \"cjs\"], load() { return import(\"@codemirror/lang-javascript\").then((m) => m.javascript()); }, }), LanguageDescription.of({ name: \"Jinja\", extensions: [\"j2\", \"jinja\", \"jinja2\"], load() { return import(\"@codemirror/lang-jinja\").then((m) => m.jinja()); }, }), LanguageDescription.of({ name: \"JSON\", alias: [\"json5\"], extensions: [\"json\", \"map\"], load() { return import(\"@codemirror/lang-json\").then((m) => m.json()); }, }), LanguageDescription.of({ name: \"JSX\", extensions: [\"jsx\"], load() { return import(\"@codemirror/lang-javascript\").then((m) => m.javascript({ jsx: true }), ); }, }), LanguageDescription.of({ name: \"LESS\", extensions: [\"less\"], load() { return import(\"@codemirror/lang-less\").then((m) => m.less()); }, }), LanguageDescription.of({ name: \"Liquid\", extensions: [\"liquid\"], load() { return import(\"@codemirror/lang-liquid\").then((m) => m.liquid()); }, }), LanguageDescription.of({ name: \"MariaDB SQL\", load() { return sql(\"MariaSQL\"); }, }), LanguageDescription.of({ name: \"Markdown\", extensions: [\"md\", \"markdown\", \"mkd\"], load() { return import(\"@codemirror/lang-markdown\").then((m) => m.markdown()); }, }), LanguageDescription.of({ name: \"MS SQL\", load() { return sql(\"MSSQL\"); }, }), LanguageDescription.of({ name: \"MySQL\", load() { return sql(\"MySQL\"); }, }), LanguageDescription.of({ name: \"PHP\", extensions: [\"php\", \"php3\", \"php4\", \"php5\", \"php7\", \"phtml\"], load() { return import(\"@codemirror/lang-php\").then((m) => m.php()); }, }), LanguageDescription.of({ name: \"PLSQL\", extensions: [\"pls\"], load() { return sql(\"PLSQL\"); }, }), LanguageDescription.of({ name: \"PostgreSQL\", load() { return sql(\"PostgreSQL\"); }, }), LanguageDescription.of({ name: \"Python\", extensions: [\"BUILD\", \"bzl\", \"py\", \"pyw\"], filename: /^(BUCK|BUILD)$/, load() { return import(\"@codemirror/lang-python\").then((m) => m.python()); }, }), LanguageDescription.of({ name: \"Rust\", extensions: [\"rs\"], load() { return import(\"@codemirror/lang-rust\").then((m) => m.rust()); }, }), LanguageDescription.of({ name: \"Sass\", extensions: [\"sass\"], load() { return import(\"@codemirror/lang-sass\").then((m) => m.sass({ indented: true }), ); }, }), LanguageDescription.of({ name: \"SCSS\", extensions: [\"scss\"], load() { return import(\"@codemirror/lang-sass\").then((m) => m.sass()); }, }), LanguageDescription.of({ name: \"SQL\", extensions: [\"sql\"], load() { return sql(\"StandardSQL\"); }, }), LanguageDescription.of({ name: \"SQLite\", load() { return sql(\"SQLite\"); }, }), LanguageDescription.of({ name: \"TSX\", extensions: [\"tsx\"], load() { return import(\"@codemirror/lang-javascript\").then((m) => m.javascript({ jsx: true, typescript: true }), ); }, }), LanguageDescription.of({ name: \"TypeScript\", alias: [\"ts\"], extensions: [\"ts\", \"mts\", \"cts\"], load() { return import(\"@codemirror/lang-javascript\").then((m) => m.javascript({ typescript: true }), ); }, }), LanguageDescription.of({ name: \"WebAssembly\", extensions: [\"wat\", \"wast\"], load() { return import(\"@codemirror/lang-wast\").then((m) => m.wast()); }, }), LanguageDescription.of({ name: \"XML\", alias: [\"rss\", \"wsdl\", \"xsd\"], extensions: [\"xml\", \"xsl\", \"xsd\", \"svg\"], load() { return import(\"@codemirror/lang-xml\").then((m) => m.xml()); }, }), LanguageDescription.of({ name: \"YAML\", alias: [\"yml\"], extensions: [\"yaml\", \"yml\"], load() { return import(\"@codemirror/lang-yaml\").then((m) => m.yaml()); }, }), // Legacy modes ported from CodeMirror 5 LanguageDescription.of({ name: \"APL\", extensions: [\"dyalog\", \"apl\"], load() { return import(\"@codemirror/legacy-modes/mode/apl\").then((m) => legacy(m.apl), ); }, }), LanguageDescription.of({ name: \"PGP\", alias: [\"asciiarmor\"], extensions: [\"asc\", \"pgp\", \"sig\"], load() { return import(\"@codemirror/legacy-modes/mode/asciiarmor\").then((m) => legacy(m.asciiArmor), ); }, }), LanguageDescription.of({ name: \"ASN.1\", extensions: [\"asn\", \"asn1\"], load() { return import(\"@codemirror/legacy-modes/mode/asn1\").then((m) => legacy(m.asn1({})), ); }, }), LanguageDescription.of({ name: \"Asterisk\", filename: /^extensions\\.conf$/i, load() { return import(\"@codemirror/legacy-modes/mode/asterisk\").then((m) => legacy(m.asterisk), ); }, }), LanguageDescription.of({ name: \"Cobol\", extensions: [\"cob\", \"cpy\"], load() { return import(\"@codemirror/legacy-modes/mode/cobol\").then((m) => legacy(m.cobol), ); }, }), LanguageDescription.of({ name: \"C#\", alias: [\"csharp\", \"cs\"], extensions: [\"cs\"], load() { return import(\"@codemirror/legacy-modes/mode/clike\").then((m) => legacy(m.csharp), ); }, }), LanguageDescription.of({ name: \"Clojure\", extensions: [\"clj\", \"cljc\", \"cljx\"], load() { return import(\"@codemirror/legacy-modes/mode/clojure\").then((m) => legacy(m.clojure), ); }, }), LanguageDescription.of({ name: \"ClojureScript\", extensions: [\"cljs\"], load() { return import(\"@codemirror/legacy-modes/mode/clojure\").then((m) => legacy(m.clojure), ); }, }), LanguageDescription.of({ name: \"Closure Stylesheets (GSS)\", extensions: [\"gss\"], load() { return import(\"@codemirror/legacy-modes/mode/css\").then((m) => legacy(m.gss), ); }, }), LanguageDescription.of({ name: \"CMake\", extensions: [\"cmake\", \"cmake.in\"], filename: /^CMakeLists\\.txt$/, load() { return import(\"@codemirror/legacy-modes/mode/cmake\").then((m) => legacy(m.cmake), ); }, }), LanguageDescription.of({ name: \"CoffeeScript\", alias: [\"coffee\", \"coffee-script\"], extensions: [\"coffee\"], load() { return import(\"@codemirror/legacy-modes/mode/coffeescript\").then((m) => legacy(m.coffeeScript), ); }, }), LanguageDescription.of({ name: \"Common Lisp\", alias: [\"lisp\"], extensions: [\"cl\", \"lisp\", \"el\"], load() { return import(\"@codemirror/legacy-modes/mode/commonlisp\").then((m) => legacy(m.commonLisp), ); }, }), LanguageDescription.of({ name: \"Cypher\", extensions: [\"cyp\", \"cypher\"], load() { return import(\"@codemirror/legacy-modes/mode/cypher\").then((m) => legacy(m.cypher), ); }, }), LanguageDescription.of({ name: \"Cython\", extensions: [\"pyx\", \"pxd\", \"pxi\"], load() { return import(\"@codemirror/legacy-modes/mode/python\").then((m) => legacy(m.cython), ); }, }), LanguageDescription.of({ name: \"Crystal\", extensions: [\"cr\"], load() { return import(\"@codemirror/legacy-modes/mode/crystal\").then((m) => legacy(m.crystal), ); }, }), LanguageDescription.of({ name: \"D\", extensions: [\"d\"], load() { return import(\"@codemirror/legacy-modes/mode/d\").then((m) => legacy(m.d)); }, }), LanguageDescription.of({ name: \"Dart\", extensions: [\"dart\"], load() { return import(\"@codemirror/legacy-modes/mode/clike\").then((m) => legacy(m.dart), ); }, }), LanguageDescription.of({ name: \"diff\", extensions: [\"diff\", \"patch\"], load() { return import(\"@codemirror/legacy-modes/mode/diff\").then((m) => legacy(m.diff), ); }, }), LanguageDescription.of({ name: \"Dockerfile\", filename: /^Dockerfile$/, load() { return import(\"@codemirror/legacy-modes/mode/dockerfile\").then((m) => legacy(m.dockerFile), ); }, }), LanguageDescription.of({ name: \"DTD\", extensions: [\"dtd\"], load() { return import(\"@codemirror/legacy-modes/mode/dtd\").then((m) => legacy(m.dtd), ); }, }), LanguageDescription.of({ name: \"Dylan\", extensions: [\"dylan\", \"dyl\", \"intr\"], load() { return import(\"@codemirror/legacy-modes/mode/dylan\").then((m) => legacy(m.dylan), ); }, }), LanguageDescription.of({ name: \"EBNF\", load() { return import(\"@codemirror/legacy-modes/mode/ebnf\").then((m) => legacy(m.ebnf), ); }, }), LanguageDescription.of({ name: \"ECL\", extensions: [\"ecl\"], load() { return import(\"@codemirror/legacy-modes/mode/ecl\").then((m) => legacy(m.ecl), ); }, }), LanguageDescription.of({ name: \"edn\", extensions: [\"edn\"], load() { return import(\"@codemirror/legacy-modes/mode/clojure\").then((m) => legacy(m.clojure), ); }, }), LanguageDescription.of({ name: \"Eiffel\", extensions: [\"e\"], load() { return import(\"@codemirror/legacy-modes/mode/eiffel\").then((m) => legacy(m.eiffel), ); }, }), LanguageDescription.of({ name: \"Elm\", extensions: [\"elm\"], load() { return import(\"@codemirror/legacy-modes/mode/elm\").then((m) => legacy(m.elm), ); }, }), LanguageDescription.of({ name: \"Erlang\", extensions: [\"erl\"], load() { return import(\"@codemirror/legacy-modes/mode/erlang\").then((m) => legacy(m.erlang), ); }, }), LanguageDescription.of({ name: \"Esper\", load() { return import(\"@codemirror/legacy-modes/mode/sql\").then((m) => legacy(m.esper), ); }, }), LanguageDescription.of({ name: \"Factor\", extensions: [\"factor\"], load() { return import(\"@codemirror/legacy-modes/mode/factor\").then((m) => legacy(m.factor), ); }, }), LanguageDescription.of({ name: \"FCL\", load() { return import(\"@codemirror/legacy-modes/mode/fcl\").then((m) => legacy(m.fcl), ); }, }), LanguageDescription.of({ name: \"Forth\", extensions: [\"forth\", \"fth\", \"4th\"], load() { return import(\"@codemirror/legacy-modes/mode/forth\").then((m) => legacy(m.forth), ); }, }), LanguageDescription.of({ name: \"Fortran\", extensions: [\"f\", \"for\", \"f77\", \"f90\", \"f95\"], load() { return import(\"@codemirror/legacy-modes/mode/fortran\").then((m) => legacy(m.fortran), ); }, }), LanguageDescription.of({ name: \"F#\", alias: [\"fsharp\"], extensions: [\"fs\"], load() { return import(\"@codemirror/legacy-modes/mode/mllike\").then((m) => legacy(m.fSharp), ); }, }), LanguageDescription.of({ name: \"Gas\", extensions: [\"s\"], load() { return import(\"@codemirror/legacy-modes/mode/gas\").then((m) => legacy(m.gas), ); }, }), LanguageDescription.of({ name: \"Gherkin\", extensions: [\"feature\"], load() { return import(\"@codemirror/legacy-modes/mode/gherkin\").then((m) => legacy(m.gherkin), ); }, }), LanguageDescription.of({ name: \"Groovy\", extensions: [\"groovy\", \"gradle\"], filename: /^Jenkinsfile$/, load() { return import(\"@codemirror/legacy-modes/mode/groovy\").then((m) => legacy(m.groovy), ); }, }), LanguageDescription.of({ name: \"Haskell\", extensions: [\"hs\"], load() { return import(\"@codemirror/legacy-modes/mode/haskell\").then((m) => legacy(m.haskell), ); }, }), LanguageDescription.of({ name: \"Haxe\", extensions: [\"hx\"], load() { return import(\"@codemirror/legacy-modes/mode/haxe\").then((m) => legacy(m.haxe), ); }, }), LanguageDescription.of({ name: \"HXML\", extensions: [\"hxml\"], load() { return import(\"@codemirror/legacy-modes/mode/haxe\").then((m) => legacy(m.hxml), ); }, }), LanguageDescription.of({ name: \"HTTP\", load() { return import(\"@codemirror/legacy-modes/mode/http\").then((m) => legacy(m.http), ); }, }), LanguageDescription.of({ name: \"IDL\", extensions: [\"pro\"], load() { return import(\"@codemirror/legacy-modes/mode/idl\").then((m) => legacy(m.idl), ); }, }), LanguageDescription.of({ name: \"JSON-LD\", alias: [\"jsonld\"], extensions: [\"jsonld\"], load() { return import(\"@codemirror/legacy-modes/mode/javascript\").then((m) => legacy(m.jsonld), ); }, }), LanguageDescription.of({ name: \"Julia\", extensions: [\"jl\"], load() { return import(\"@codemirror/legacy-modes/mode/julia\").then((m) => legacy(m.julia), ); }, }), LanguageDescription.of({ name: \"Kotlin\", extensions: [\"kt\", \"kts\"], load() { return import(\"@codemirror/legacy-modes/mode/clike\").then((m) => legacy(m.kotlin), ); }, }), LanguageDescription.of({ name: \"LiveScript\", alias: [\"ls\"], extensions: [\"ls\"], load() { return import(\"@codemirror/legacy-modes/mode/livescript\").then((m) => legacy(m.liveScript), ); }, }), LanguageDescription.of({ name: \"Lua\", extensions: [\"lua\"], load() { return import(\"@codemirror/legacy-modes/mode/lua\").then((m) => legacy(m.lua), ); }, }), LanguageDescription.of({ name: \"mIRC\", extensions: [\"mrc\"], load() { return import(\"@codemirror/legacy-modes/mode/mirc\").then((m) => legacy(m.mirc), ); }, }), LanguageDescription.of({ name: \"Mathematica\", extensions: [\"m\", \"nb\", \"wl\", \"wls\"], load() { return import(\"@codemirror/legacy-modes/mode/mathematica\").then((m) => legacy(m.mathematica), ); }, }), LanguageDescription.of({ name: \"Modelica\", extensions: [\"mo\"], load() { return import(\"@codemirror/legacy-modes/mode/modelica\").then((m) => legacy(m.modelica), ); }, }), LanguageDescription.of({ name: \"MUMPS\", extensions: [\"mps\"], load() { return import(\"@codemirror/legacy-modes/mode/mumps\").then((m) => legacy(m.mumps), ); }, }), LanguageDescription.of({ name: \"Mbox\", extensions: [\"mbox\"], load() { return import(\"@codemirror/legacy-modes/mode/mbox\").then((m) => legacy(m.mbox), ); }, }), LanguageDescription.of({ name: \"Nginx\", filename: /nginx.*\\.conf$/i, load() { return import(\"@codemirror/legacy-modes/mode/nginx\").then((m) => legacy(m.nginx), ); }, }), LanguageDescription.of({ name: \"NSIS\", extensions: [\"nsh\", \"nsi\"], load() { return import(\"@codemirror/legacy-modes/mode/nsis\").then((m) => legacy(m.nsis), ); }, }), LanguageDescription.of({ name: \"NTriples\", extensions: [\"nt\", \"nq\"], load() { return import(\"@codemirror/legacy-modes/mode/ntriples\").then((m) => legacy(m.ntriples), ); }, }), LanguageDescription.of({ name: \"Objective-C\", alias: [\"objective-c\", \"objc\"], extensions: [\"m\"], load() { return import(\"@codemirror/legacy-modes/mode/clike\").then((m) => legacy(m.objectiveC), ); }, }), LanguageDescription.of({ name: \"Objective-C++\", alias: [\"objective-c++\", \"objc++\"], extensions: [\"mm\"], load() { return import(\"@codemirror/legacy-modes/mode/clike\").then((m) => legacy(m.objectiveCpp), ); }, }), LanguageDescription.of({ name: \"OCaml\", extensions: [\"ml\", \"mli\", \"mll\", \"mly\"], load() { return import(\"@codemirror/legacy-modes/mode/mllike\").then((m) => legacy(m.oCaml), ); }, }), LanguageDescription.of({ name: \"Octave\", extensions: [\"m\"], load() { return import(\"@codemirror/legacy-modes/mode/octave\").then((m) => legacy(m.octave), ); }, }), LanguageDescription.of({ name: \"Oz\", extensions: [\"oz\"], load() { return import(\"@codemirror/legacy-modes/mode/oz\").then((m) => legacy(m.oz), ); }, }), LanguageDescription.of({ name: \"Pascal\", extensions: [\"p\", \"pas\"], load() { return import(\"@codemirror/legacy-modes/mode/pascal\").then((m) => legacy(m.pascal), ); }, }), LanguageDescription.of({ name: \"Perl\", extensions: [\"pl\", \"pm\"], load() { return import(\"@codemirror/legacy-modes/mode/perl\").then((m) => legacy(m.perl), ); }, }), LanguageDescription.of({ name: \"Pig\", extensions: [\"pig\"], load() { return import(\"@codemirror/legacy-modes/mode/pig\").then((m) => legacy(m.pig), ); }, }), LanguageDescription.of({ name: \"PowerShell\", extensions: [\"ps1\", \"psd1\", \"psm1\"], load() { return import(\"@codemirror/legacy-modes/mode/powershell\").then((m) => legacy(m.powerShell), ); }, }), LanguageDescription.of({ name: \"Properties files\", alias: [\"ini\", \"properties\"], extensions: [\"properties\", \"ini\", \"in\"], load() { return import(\"@codemirror/legacy-modes/mode/properties\").then((m) => legacy(m.properties), ); }, }), LanguageDescription.of({ name: \"ProtoBuf\", extensions: [\"proto\"], load() { return import(\"@codemirror/legacy-modes/mode/protobuf\").then((m) => legacy(m.protobuf), ); }, }), LanguageDescription.of({ name: \"Pug\", alias: [\"jade\"], extensions: [\"pug\", \"jade\"], load() { return import(\"@codemirror/legacy-modes/mode/pug\").then((m) => legacy(m.pug), ); }, }), LanguageDescription.of({ name: \"Puppet\", extensions: [\"pp\"], load() { return import(\"@codemirror/legacy-modes/mode/puppet\").then((m) => legacy(m.puppet), ); }, }), LanguageDescription.of({ name: \"Q\", extensions: [\"q\"], load() { return import(\"@codemirror/legacy-modes/mode/q\").then((m) => legacy(m.q)); }, }), LanguageDescription.of({ name: \"R\", alias: [\"rscript\"], extensions: [\"r\", \"R\"], load() { return import(\"@codemirror/legacy-modes/mode/r\").then((m) => legacy(m.r)); }, }), LanguageDescription.of({ name: \"RPM Changes\", load() { return import(\"@codemirror/legacy-modes/mode/rpm\").then((m) => legacy(m.rpmChanges), ); }, }), LanguageDescription.of({ name: \"RPM Spec\", extensions: [\"spec\"], load() { return import(\"@codemirror/legacy-modes/mode/rpm\").then((m) => legacy(m.rpmSpec), ); }, }), LanguageDescription.of({ name: \"Ruby\", alias: [\"jruby\", \"macruby\", \"rake\", \"rb\", \"rbx\"], extensions: [\"rb\"], filename: /^(Gemfile|Rakefile)$/, load() { return import(\"@codemirror/legacy-modes/mode/ruby\").then((m) => legacy(m.ruby), ); }, }), LanguageDescription.of({ name: \"SAS\", extensions: [\"sas\"], load() { return import(\"@codemirror/legacy-modes/mode/sas\").then((m) => legacy(m.sas), ); }, }), LanguageDescription.of({ name: \"Scala\", extensions: [\"scala\"], load() { return import(\"@codemirror/legacy-modes/mode/clike\").then((m) => legacy(m.scala), ); }, }), LanguageDescription.of({ name: \"Scheme\", extensions: [\"scm\", \"ss\"], load() { return import(\"@codemirror/legacy-modes/mode/scheme\").then((m) => legacy(m.scheme), ); }, }), LanguageDescription.of({ name: \"Shell\", alias: [\"bash\", \"sh\", \"zsh\"], extensions: [\"sh\", \"ksh\", \"bash\"], filename: /^PKGBUILD$/, load() { return import(\"@codemirror/legacy-modes/mode/shell\").then((m) => legacy(m.shell), ); }, }), LanguageDescription.of({ name: \"Sieve\", extensions: [\"siv\", \"sieve\"], load() { return import(\"@codemirror/legacy-modes/mode/sieve\").then((m) => legacy(m.sieve), ); }, }), LanguageDescription.of({ name: \"Smalltalk\", extensions: [\"st\"], load() { return import(\"@codemirror/legacy-modes/mode/smalltalk\").then((m) => legacy(m.smalltalk), ); }, }), LanguageDescription.of({ name: \"Solr\", load() { return import(\"@codemirror/legacy-modes/mode/solr\").then((m) => legacy(m.solr), ); }, }), LanguageDescription.of({ name: \"SML\", extensions: [\"sml\", \"sig\", \"fun\", \"smackspec\"], load() { return import(\"@codemirror/legacy-modes/mode/mllike\").then((m) => legacy(m.sml), ); }, }), LanguageDescription.of({ name: \"SPARQL\", alias: [\"sparul\"], extensions: [\"rq\", \"sparql\"], load() { return import(\"@codemirror/legacy-modes/mode/sparql\").then((m) => legacy(m.sparql), ); }, }), LanguageDescription.of({ name: \"Spreadsheet\", alias: [\"excel\", \"formula\"], load() { return import(\"@codemirror/legacy-modes/mode/spreadsheet\").then((m) => legacy(m.spreadsheet), ); }, }), LanguageDescription.of({ name: \"Squirrel\", extensions: [\"nut\"], load() { return import(\"@codemirror/legacy-modes/mode/clike\").then((m) => legacy(m.squirrel), ); }, }), LanguageDescription.of({ name: \"Stylus\", extensions: [\"styl\"], load() { return import(\"@codemirror/legacy-modes/mode/stylus\").then((m) => legacy(m.stylus), ); }, }), LanguageDescription.of({ name: \"Swift\", extensions: [\"swift\"], load() { return import(\"@codemirror/legacy-modes/mode/swift\").then((m) => legacy(m.swift), ); }, }), LanguageDescription.of({ name: \"sTeX\", load() { return import(\"@codemirror/legacy-modes/mode/stex\").then((m) => legacy(m.stex), ); }, }), LanguageDescription.of({ name: \"LaTeX\", alias: [\"tex\"], extensions: [\"text\", \"ltx\", \"tex\"], load() { return import(\"@codemirror/legacy-modes/mode/stex\").then((m) => legacy(m.stex), ); }, }), LanguageDescription.of({ name: \"SystemVerilog\", extensions: [\"v\", \"sv\", \"svh\"], load() { return import(\"@codemirror/legacy-modes/mode/verilog\").then((m) => legacy(m.verilog), ); }, }), LanguageDescription.of({ name: \"Tcl\", extensions: [\"tcl\"], load() { return import(\"@codemirror/legacy-modes/mode/tcl\").then((m) => legacy(m.tcl), ); }, }), LanguageDescription.of({ name: \"Textile\", extensions: [\"textile\"], load() { return import(\"@codemirror/legacy-modes/mode/textile\").then((m) => legacy(m.textile), ); }, }), LanguageDescription.of({ name: \"TiddlyWiki\", load() { return import(\"@codemirror/legacy-modes/mode/tiddlywiki\").then((m) => legacy(m.tiddlyWiki), ); }, }), LanguageDescription.of({ name: \"Tiki wiki\", load() { return import(\"@codemirror/legacy-modes/mode/tiki\").then((m) => legacy(m.tiki), ); }, }), LanguageDescription.of({ name: \"TOML\", extensions: [\"toml\"], load() { return import(\"@codemirror/legacy-modes/mode/toml\").then((m) => legacy(m.toml), ); }, }), LanguageDescription.of({ name: \"Troff\", extensions: [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"], load() { return import(\"@codemirror/legacy-modes/mode/troff\").then((m) => legacy(m.troff), ); }, }), LanguageDescription.of({ name: \"TTCN\", extensions: [\"ttcn\", \"ttcn3\", \"ttcnpp\"], load() { return import(\"@codemirror/legacy-modes/mode/ttcn\").then((m) => legacy(m.ttcn), ); }, }), LanguageDescription.of({ name: \"TTCN_CFG\", extensions: [\"cfg\"], load() { return import(\"@codemirror/legacy-modes/mode/ttcn-cfg\").then((m) => legacy(m.ttcnCfg), ); }, }), LanguageDescription.of({ name: \"Turtle\", extensions: [\"ttl\"], load() { return import(\"@codemirror/legacy-modes/mode/turtle\").then((m) => legacy(m.turtle), ); }, }), LanguageDescription.of({ name: \"Web IDL\", extensions: [\"webidl\"], load() { return import(\"@codemirror/legacy-modes/mode/webidl\").then((m) => legacy(m.webIDL), ); }, }), LanguageDescription.of({ name: \"VB.NET\", extensions: [\"vb\"], load() { return import(\"@codemirror/legacy-modes/mode/vb\").then((m) => legacy(m.vb), ); }, }), LanguageDescription.of({ name: \"VBScript\", extensions: [\"vbs\"], load() { return import(\"@codemirror/legacy-modes/mode/vbscript\").then((m) => legacy(m.vbScript), ); }, }), LanguageDescription.of({ name: \"Velocity\", extensions: [\"vtl\"], load() { return import(\"@codemirror/legacy-modes/mode/velocity\").then((m) => legacy(m.velocity), ); }, }), LanguageDescription.of({ name: \"Verilog\", extensions: [\"v\"], load() { return import(\"@codemirror/legacy-modes/mode/verilog\").then((m) => legacy(m.verilog), ); }, }), LanguageDescription.of({ name: \"VHDL\", extensions: [\"vhd\", \"vhdl\"], load() { return import(\"@codemirror/legacy-modes/mode/vhdl\").then((m) => legacy(m.vhdl), ); }, }), LanguageDescription.of({ name: \"XQuery\", extensions: [\"xy\", \"xquery\", \"xq\", \"xqm\", \"xqy\"], load() { return import(\"@codemirror/legacy-modes/mode/xquery\").then((m) => legacy(m.xQuery), ); }, }), LanguageDescription.of({ name: \"Yacas\", extensions: [\"ys\"], load() { return import(\"@codemirror/legacy-modes/mode/yacas\").then((m) => legacy(m.yacas), ); }, }), LanguageDescription.of({ name: \"Z80\", extensions: [\"z80\"], load() { return import(\"@codemirror/legacy-modes/mode/z80\").then((m) => legacy(m.z80), ); }, }), LanguageDescription.of({ name: \"MscGen\", extensions: [\"mscgen\", \"mscin\", \"msc\"], load() { return import(\"@codemirror/legacy-modes/mode/mscgen\").then((m) => legacy(m.mscgen), ); }, }), LanguageDescription.of({ name: \"Xù\", extensions: [\"xu\"], load() { return import(\"@codemirror/legacy-modes/mode/mscgen\").then((m) => legacy(m.xu), ); }, }), LanguageDescription.of({ name: \"MsGenny\", extensions: [\"msgenny\"], load() { return import(\"@codemirror/legacy-modes/mode/mscgen\").then((m) => legacy(m.msgenny), ); }, }), LanguageDescription.of({ name: \"Vue\", extensions: [\"vue\"], load() { return import(\"@codemirror/lang-vue\").then((m) => m.vue()); }, }), LanguageDescription.of({ name: \"Angular Template\", load() { return import(\"@codemirror/lang-angular\").then((m) => m.angular()); }, }), ]",
|
|
15974
|
+
"description": "An array of language descriptions for known language packages."
|
|
15975
|
+
}
|
|
15976
|
+
],
|
|
15977
|
+
"exports": [
|
|
15508
15978
|
{
|
|
15509
15979
|
"kind": "js",
|
|
15510
|
-
"name": "
|
|
15980
|
+
"name": "languages",
|
|
15511
15981
|
"declaration": {
|
|
15512
|
-
"name": "
|
|
15513
|
-
"module": "
|
|
15982
|
+
"name": "languages",
|
|
15983
|
+
"module": "src/components/code-snippet/src/codemirror/language-data.ts"
|
|
15514
15984
|
}
|
|
15515
15985
|
}
|
|
15516
15986
|
]
|
|
15517
15987
|
},
|
|
15518
15988
|
{
|
|
15519
15989
|
"kind": "javascript-module",
|
|
15520
|
-
"path": "src/components/code-snippet/src/codemirror/
|
|
15990
|
+
"path": "src/components/code-snippet/src/codemirror/language-utils.ts",
|
|
15521
15991
|
"declarations": [
|
|
15522
15992
|
{
|
|
15523
15993
|
"kind": "function",
|
|
15524
|
-
"name": "
|
|
15994
|
+
"name": "mapLanguageName",
|
|
15525
15995
|
"return": {
|
|
15526
15996
|
"type": {
|
|
15527
|
-
"text": "
|
|
15997
|
+
"text": ""
|
|
15528
15998
|
}
|
|
15529
15999
|
},
|
|
15530
16000
|
"parameters": [
|
|
15531
16001
|
{
|
|
15532
|
-
"name": "
|
|
16002
|
+
"name": "name",
|
|
15533
16003
|
"type": {
|
|
15534
|
-
"text": "
|
|
15535
|
-
}
|
|
16004
|
+
"text": "string | null | undefined"
|
|
16005
|
+
},
|
|
16006
|
+
"description": "The language name or alias to map"
|
|
15536
16007
|
}
|
|
15537
|
-
]
|
|
16008
|
+
],
|
|
16009
|
+
"description": "Maps common language name aliases to their canonical CodeMirror language names.\n\nThis utility helps normalize various language identifiers (file extensions, common aliases)\nto the standard names recognized by CodeMirror's language-data package."
|
|
16010
|
+
},
|
|
16011
|
+
{
|
|
16012
|
+
"kind": "function",
|
|
16013
|
+
"name": "detectLanguage",
|
|
16014
|
+
"return": {
|
|
16015
|
+
"type": {
|
|
16016
|
+
"text": ""
|
|
16017
|
+
}
|
|
16018
|
+
},
|
|
16019
|
+
"parameters": [
|
|
16020
|
+
{
|
|
16021
|
+
"name": "code",
|
|
16022
|
+
"type": {
|
|
16023
|
+
"text": "string"
|
|
16024
|
+
},
|
|
16025
|
+
"description": "The code content to analyze"
|
|
16026
|
+
}
|
|
16027
|
+
],
|
|
16028
|
+
"description": "Detects the programming language from code content using pattern matching and ML-based detection.\n\nThis function uses a multi-strategy approach:\n1. Pattern-based detection for Markdown, JSON, diff files, and shell scripts\n2. ML-based detection using the program-language-detector library\n3. TypeScript-specific hints to distinguish TypeScript from JavaScript"
|
|
15538
16029
|
}
|
|
15539
16030
|
],
|
|
15540
16031
|
"exports": [
|
|
15541
16032
|
{
|
|
15542
16033
|
"kind": "js",
|
|
15543
|
-
"name": "
|
|
16034
|
+
"name": "mapLanguageName",
|
|
15544
16035
|
"declaration": {
|
|
15545
|
-
"name": "
|
|
15546
|
-
"module": "src/components/code-snippet/src/codemirror/
|
|
16036
|
+
"name": "mapLanguageName",
|
|
16037
|
+
"module": "src/components/code-snippet/src/codemirror/language-utils.ts"
|
|
16038
|
+
}
|
|
16039
|
+
},
|
|
16040
|
+
{
|
|
16041
|
+
"kind": "js",
|
|
16042
|
+
"name": "detectLanguage",
|
|
16043
|
+
"declaration": {
|
|
16044
|
+
"name": "detectLanguage",
|
|
16045
|
+
"module": "src/components/code-snippet/src/codemirror/language-utils.ts"
|
|
15547
16046
|
}
|
|
15548
16047
|
}
|
|
15549
16048
|
]
|
|
15550
16049
|
},
|
|
15551
16050
|
{
|
|
15552
16051
|
"kind": "javascript-module",
|
|
15553
|
-
"path": "src/components/code-snippet/src/codemirror/
|
|
16052
|
+
"path": "src/components/code-snippet/src/codemirror/marker-utils.ts",
|
|
15554
16053
|
"declarations": [
|
|
15555
16054
|
{
|
|
15556
16055
|
"kind": "function",
|
|
15557
|
-
"name": "
|
|
15558
|
-
"
|
|
16056
|
+
"name": "createCarbonFoldMarker",
|
|
16057
|
+
"return": {
|
|
16058
|
+
"type": {
|
|
16059
|
+
"text": ""
|
|
16060
|
+
}
|
|
16061
|
+
},
|
|
16062
|
+
"parameters": [
|
|
16063
|
+
{
|
|
16064
|
+
"name": "options",
|
|
16065
|
+
"default": "{}",
|
|
16066
|
+
"type": {
|
|
16067
|
+
"text": "CarbonFoldMarkerOptions"
|
|
16068
|
+
},
|
|
16069
|
+
"description": "Configuration options for labels"
|
|
16070
|
+
}
|
|
16071
|
+
],
|
|
16072
|
+
"description": "Creates a Carbon Design System styled fold marker for CodeMirror's foldGutter.\n\nThis function returns a `markerDOM` function that can be used with CodeMirror's\n`foldGutter()` extension to display Carbon's chevron icon as fold indicators.\nThe markers include proper accessibility attributes and keyboard support.\n\n**Note:** This function only provides the fold marker DOM. You must also include\n`createCarbonTheme()` to get the proper styling (icon size, rotation, focus states)."
|
|
16073
|
+
},
|
|
16074
|
+
{
|
|
16075
|
+
"kind": "function",
|
|
16076
|
+
"name": "carbonFoldMarkerKeyHandler",
|
|
16077
|
+
"description": "Creates a keyboard event handler for Carbon fold markers.\n\nThis extension enables keyboard accessibility for fold markers created with\n`createCarbonFoldMarker()`. It allows users to toggle code folding by pressing\nEnter or Space when a fold marker is focused.",
|
|
15559
16078
|
"return": {
|
|
15560
16079
|
"type": {
|
|
15561
16080
|
"text": ""
|
|
@@ -15566,264 +16085,139 @@
|
|
|
15566
16085
|
"exports": [
|
|
15567
16086
|
{
|
|
15568
16087
|
"kind": "js",
|
|
15569
|
-
"name": "
|
|
16088
|
+
"name": "createCarbonFoldMarker",
|
|
15570
16089
|
"declaration": {
|
|
15571
|
-
"name": "
|
|
15572
|
-
"module": "src/components/code-snippet/src/codemirror/
|
|
16090
|
+
"name": "createCarbonFoldMarker",
|
|
16091
|
+
"module": "src/components/code-snippet/src/codemirror/marker-utils.ts"
|
|
16092
|
+
}
|
|
16093
|
+
},
|
|
16094
|
+
{
|
|
16095
|
+
"kind": "js",
|
|
16096
|
+
"name": "carbonFoldMarkerKeyHandler",
|
|
16097
|
+
"declaration": {
|
|
16098
|
+
"name": "carbonFoldMarkerKeyHandler",
|
|
16099
|
+
"module": "src/components/code-snippet/src/codemirror/marker-utils.ts"
|
|
15573
16100
|
}
|
|
15574
16101
|
}
|
|
15575
16102
|
]
|
|
15576
16103
|
},
|
|
15577
16104
|
{
|
|
15578
16105
|
"kind": "javascript-module",
|
|
15579
|
-
"path": "src/components/code-snippet/src/codemirror/
|
|
16106
|
+
"path": "src/components/code-snippet/src/codemirror/theme.ts",
|
|
15580
16107
|
"declarations": [
|
|
15581
16108
|
{
|
|
15582
16109
|
"kind": "function",
|
|
15583
|
-
"name": "
|
|
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).",
|
|
15584
16112
|
"return": {
|
|
15585
16113
|
"type": {
|
|
15586
|
-
"text": "
|
|
15587
|
-
}
|
|
15588
|
-
},
|
|
15589
|
-
"parameters": [
|
|
15590
|
-
{
|
|
15591
|
-
"name": "{\n container,\n doc,\n languageSupport,\n languageCompartment,\n readOnlyCompartment,\n wrapCompartment,\n contentAttributesCompartment,\n editable,\n disabled,\n ariaLabel,\n detectedLanguage,\n onDocChanged,\n setupOptions,\n}",
|
|
15592
|
-
"type": {
|
|
15593
|
-
"text": "EditorCreationOptions"
|
|
15594
|
-
}
|
|
15595
|
-
}
|
|
15596
|
-
]
|
|
15597
|
-
},
|
|
15598
|
-
{
|
|
15599
|
-
"kind": "function",
|
|
15600
|
-
"name": "applyLanguageSupport",
|
|
15601
|
-
"parameters": [
|
|
15602
|
-
{
|
|
15603
|
-
"name": "view",
|
|
15604
|
-
"type": {
|
|
15605
|
-
"text": "EditorView | undefined"
|
|
15606
|
-
}
|
|
15607
|
-
},
|
|
15608
|
-
{
|
|
15609
|
-
"name": "languageCompartment",
|
|
15610
|
-
"type": {
|
|
15611
|
-
"text": "Compartment"
|
|
15612
|
-
}
|
|
15613
|
-
},
|
|
15614
|
-
{
|
|
15615
|
-
"name": "support",
|
|
15616
|
-
"type": {
|
|
15617
|
-
"text": "LanguageSupport | null"
|
|
15618
|
-
}
|
|
16114
|
+
"text": ""
|
|
15619
16115
|
}
|
|
15620
|
-
|
|
16116
|
+
}
|
|
15621
16117
|
},
|
|
15622
16118
|
{
|
|
15623
16119
|
"kind": "function",
|
|
15624
|
-
"name": "
|
|
15625
|
-
"
|
|
15626
|
-
|
|
15627
|
-
|
|
15628
|
-
"
|
|
15629
|
-
"text": "EditorView | undefined"
|
|
15630
|
-
}
|
|
15631
|
-
},
|
|
15632
|
-
{
|
|
15633
|
-
"name": "readOnlyCompartment",
|
|
15634
|
-
"type": {
|
|
15635
|
-
"text": "Compartment"
|
|
15636
|
-
}
|
|
15637
|
-
},
|
|
15638
|
-
{
|
|
15639
|
-
"name": "{ editable, disabled }",
|
|
15640
|
-
"type": {
|
|
15641
|
-
"text": "{ editable: boolean; disabled: boolean }"
|
|
15642
|
-
}
|
|
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": ""
|
|
15643
16125
|
}
|
|
15644
|
-
|
|
15645
|
-
},
|
|
15646
|
-
{
|
|
15647
|
-
"kind": "function",
|
|
15648
|
-
"name": "
|
|
15649
|
-
"
|
|
15650
|
-
|
|
15651
|
-
|
|
15652
|
-
"
|
|
15653
|
-
"text": "EditorView | undefined"
|
|
15654
|
-
}
|
|
15655
|
-
},
|
|
15656
|
-
{
|
|
15657
|
-
"name": "contentAttributesCompartment",
|
|
15658
|
-
"type": {
|
|
15659
|
-
"text": "Compartment"
|
|
15660
|
-
}
|
|
15661
|
-
},
|
|
15662
|
-
{
|
|
15663
|
-
"name": "ariaLabel",
|
|
15664
|
-
"type": {
|
|
15665
|
-
"text": "string"
|
|
15666
|
-
}
|
|
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": ""
|
|
15667
16135
|
}
|
|
15668
|
-
|
|
16136
|
+
}
|
|
15669
16137
|
}
|
|
15670
16138
|
],
|
|
15671
16139
|
"exports": [
|
|
15672
16140
|
{
|
|
15673
16141
|
"kind": "js",
|
|
15674
|
-
"name": "
|
|
16142
|
+
"name": "makeScrollerFocusable",
|
|
15675
16143
|
"declaration": {
|
|
15676
|
-
"name": "
|
|
15677
|
-
"module": "src/components/code-snippet/src/codemirror/
|
|
16144
|
+
"name": "makeScrollerFocusable",
|
|
16145
|
+
"module": "src/components/code-snippet/src/codemirror/theme.ts"
|
|
15678
16146
|
}
|
|
15679
16147
|
},
|
|
15680
16148
|
{
|
|
15681
16149
|
"kind": "js",
|
|
15682
|
-
"name": "
|
|
16150
|
+
"name": "createCarbonTheme",
|
|
15683
16151
|
"declaration": {
|
|
15684
|
-
"name": "
|
|
15685
|
-
"module": "src/components/code-snippet/src/codemirror/
|
|
16152
|
+
"name": "createCarbonTheme",
|
|
16153
|
+
"module": "src/components/code-snippet/src/codemirror/theme.ts"
|
|
15686
16154
|
}
|
|
15687
16155
|
},
|
|
15688
16156
|
{
|
|
15689
16157
|
"kind": "js",
|
|
15690
|
-
"name": "
|
|
16158
|
+
"name": "createCarbonHighlightStyle",
|
|
15691
16159
|
"declaration": {
|
|
15692
|
-
"name": "
|
|
15693
|
-
"module": "src/components/code-snippet/src/codemirror/
|
|
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"
|
|
15694
16196
|
}
|
|
15695
16197
|
},
|
|
15696
16198
|
{
|
|
15697
16199
|
"kind": "js",
|
|
15698
|
-
"name": "
|
|
16200
|
+
"name": "default",
|
|
15699
16201
|
"declaration": {
|
|
15700
|
-
"name": "
|
|
15701
|
-
"module": "src/components/
|
|
16202
|
+
"name": "markdownItAttrs",
|
|
16203
|
+
"module": "src/components/markdown/src/plugins/markdown-it-attrs.ts"
|
|
15702
16204
|
}
|
|
15703
16205
|
}
|
|
15704
16206
|
]
|
|
15705
16207
|
},
|
|
15706
16208
|
{
|
|
15707
16209
|
"kind": "javascript-module",
|
|
15708
|
-
"path": "src/components/
|
|
16210
|
+
"path": "src/components/markdown/src/plugins/markdown-it-highlight.ts",
|
|
15709
16211
|
"declarations": [
|
|
15710
16212
|
{
|
|
15711
|
-
"kind": "
|
|
15712
|
-
"
|
|
15713
|
-
"
|
|
15714
|
-
"members": [
|
|
15715
|
-
{
|
|
15716
|
-
"kind": "field",
|
|
15717
|
-
"name": "pendingLanguageLoad",
|
|
15718
|
-
"type": {
|
|
15719
|
-
"text": "Promise<void> | null"
|
|
15720
|
-
},
|
|
15721
|
-
"privacy": "private",
|
|
15722
|
-
"default": "null"
|
|
15723
|
-
},
|
|
15724
|
-
{
|
|
15725
|
-
"kind": "field",
|
|
15726
|
-
"name": "languageDetectionTimeout",
|
|
15727
|
-
"type": {
|
|
15728
|
-
"text": "number | null"
|
|
15729
|
-
},
|
|
15730
|
-
"privacy": "private",
|
|
15731
|
-
"default": "null"
|
|
15732
|
-
},
|
|
15733
|
-
{
|
|
15734
|
-
"kind": "field",
|
|
15735
|
-
"name": "highlightingDetectionTimeout",
|
|
15736
|
-
"type": {
|
|
15737
|
-
"text": "number | null"
|
|
15738
|
-
},
|
|
15739
|
-
"privacy": "private",
|
|
15740
|
-
"default": "null"
|
|
15741
|
-
},
|
|
15742
|
-
{
|
|
15743
|
-
"kind": "field",
|
|
15744
|
-
"name": "editableLanguageDetectionTimeout",
|
|
15745
|
-
"type": {
|
|
15746
|
-
"text": "number | null"
|
|
15747
|
-
},
|
|
15748
|
-
"privacy": "private",
|
|
15749
|
-
"default": "null"
|
|
15750
|
-
},
|
|
16213
|
+
"kind": "function",
|
|
16214
|
+
"name": "markdownItHighlight",
|
|
16215
|
+
"parameters": [
|
|
15751
16216
|
{
|
|
15752
|
-
"
|
|
15753
|
-
"name": "canDetectForHighlighting",
|
|
16217
|
+
"name": "md",
|
|
15754
16218
|
"type": {
|
|
15755
|
-
"text": "
|
|
15756
|
-
},
|
|
15757
|
-
"privacy": "private",
|
|
15758
|
-
"default": "true"
|
|
15759
|
-
},
|
|
15760
|
-
{
|
|
15761
|
-
"kind": "method",
|
|
15762
|
-
"name": "resolveLanguageSupport",
|
|
15763
|
-
"return": {
|
|
15764
|
-
"type": {
|
|
15765
|
-
"text": "Promise<LanguageSupport | null>"
|
|
15766
|
-
}
|
|
15767
|
-
}
|
|
15768
|
-
},
|
|
15769
|
-
{
|
|
15770
|
-
"kind": "method",
|
|
15771
|
-
"name": "handleStreamingLanguageDetection",
|
|
15772
|
-
"return": {
|
|
15773
|
-
"type": {
|
|
15774
|
-
"text": "Promise<void>"
|
|
15775
|
-
}
|
|
16219
|
+
"text": "MarkdownIt"
|
|
15776
16220
|
}
|
|
15777
|
-
},
|
|
15778
|
-
{
|
|
15779
|
-
"kind": "method",
|
|
15780
|
-
"name": "detectLanguageForEditable",
|
|
15781
|
-
"parameters": [
|
|
15782
|
-
{
|
|
15783
|
-
"name": "content",
|
|
15784
|
-
"type": {
|
|
15785
|
-
"text": "string"
|
|
15786
|
-
}
|
|
15787
|
-
}
|
|
15788
|
-
]
|
|
15789
|
-
},
|
|
15790
|
-
{
|
|
15791
|
-
"kind": "method",
|
|
15792
|
-
"name": "reset"
|
|
15793
|
-
},
|
|
15794
|
-
{
|
|
15795
|
-
"kind": "method",
|
|
15796
|
-
"name": "dispose"
|
|
15797
|
-
},
|
|
15798
|
-
{
|
|
15799
|
-
"kind": "method",
|
|
15800
|
-
"name": "lockDetectedLanguageFromContent",
|
|
15801
|
-
"privacy": "private"
|
|
15802
|
-
},
|
|
15803
|
-
{
|
|
15804
|
-
"kind": "method",
|
|
15805
|
-
"name": "scheduleHighlightingDetectionReset",
|
|
15806
|
-
"privacy": "private"
|
|
15807
|
-
},
|
|
15808
|
-
{
|
|
15809
|
-
"kind": "method",
|
|
15810
|
-
"name": "clearLanguageDetectionTimeout",
|
|
15811
|
-
"privacy": "private"
|
|
15812
|
-
},
|
|
15813
|
-
{
|
|
15814
|
-
"kind": "method",
|
|
15815
|
-
"name": "clearHighlightingDetectionTimeout",
|
|
15816
|
-
"privacy": "private"
|
|
15817
|
-
},
|
|
15818
|
-
{
|
|
15819
|
-
"kind": "method",
|
|
15820
|
-
"name": "clearEditableDetectionTimeout",
|
|
15821
|
-
"privacy": "private"
|
|
15822
|
-
},
|
|
15823
|
-
{
|
|
15824
|
-
"kind": "method",
|
|
15825
|
-
"name": "disposeTimers",
|
|
15826
|
-
"privacy": "private"
|
|
15827
16221
|
}
|
|
15828
16222
|
]
|
|
15829
16223
|
}
|
|
@@ -15831,296 +16225,399 @@
|
|
|
15831
16225
|
"exports": [
|
|
15832
16226
|
{
|
|
15833
16227
|
"kind": "js",
|
|
15834
|
-
"name": "
|
|
15835
|
-
"declaration": {
|
|
15836
|
-
"name": "LanguageController",
|
|
15837
|
-
"module": "src/components/code-snippet/src/codemirror/language-controller.ts"
|
|
15838
|
-
}
|
|
15839
|
-
},
|
|
15840
|
-
{
|
|
15841
|
-
"kind": "js",
|
|
15842
|
-
"name": "LanguageStateUpdate",
|
|
16228
|
+
"name": "markdownItHighlight",
|
|
15843
16229
|
"declaration": {
|
|
15844
|
-
"name": "
|
|
15845
|
-
"module": "src/components/
|
|
16230
|
+
"name": "markdownItHighlight",
|
|
16231
|
+
"module": "src/components/markdown/src/plugins/markdown-it-highlight.ts"
|
|
15846
16232
|
}
|
|
15847
16233
|
}
|
|
15848
16234
|
]
|
|
15849
16235
|
},
|
|
15850
16236
|
{
|
|
15851
16237
|
"kind": "javascript-module",
|
|
15852
|
-
"path": "src/components/
|
|
16238
|
+
"path": "src/components/markdown/src/plugins/markdown-it-task-lists.ts",
|
|
15853
16239
|
"declarations": [
|
|
15854
16240
|
{
|
|
15855
|
-
"kind": "
|
|
15856
|
-
"name": "
|
|
15857
|
-
"
|
|
15858
|
-
|
|
15859
|
-
|
|
15860
|
-
"default": "[ // New-style language modes LanguageDescription.of({ name: \"C\", extensions: [\"c\", \"h\", \"ino\"], load() { return import(\"@codemirror/lang-cpp\").then((m) => m.cpp()); }, }), LanguageDescription.of({ name: \"C++\", alias: [\"cpp\"], extensions: [\"cpp\", \"c++\", \"cc\", \"cxx\", \"hpp\", \"h++\", \"hh\", \"hxx\"], load() { return import(\"@codemirror/lang-cpp\").then((m) => m.cpp()); }, }), LanguageDescription.of({ name: \"CQL\", alias: [\"cassandra\"], extensions: [\"cql\"], load() { return sql(\"Cassandra\"); }, }), LanguageDescription.of({ name: \"CSS\", extensions: [\"css\"], load() { return import(\"@codemirror/lang-css\").then((m) => m.css()); }, }), LanguageDescription.of({ name: \"Go\", extensions: [\"go\"], load() { return import(\"@codemirror/lang-go\").then((m) => m.go()); }, }), LanguageDescription.of({ name: \"HTML\", alias: [\"xhtml\"], extensions: [\"html\", \"htm\", \"handlebars\", \"hbs\"], load() { return import(\"@codemirror/lang-html\").then((m) => m.html()); }, }), LanguageDescription.of({ name: \"Java\", extensions: [\"java\"], load() { return import(\"@codemirror/lang-java\").then((m) => m.java()); }, }), LanguageDescription.of({ name: \"JavaScript\", alias: [\"ecmascript\", \"js\", \"node\"], extensions: [\"js\", \"mjs\", \"cjs\"], load() { return import(\"@codemirror/lang-javascript\").then((m) => m.javascript()); }, }), LanguageDescription.of({ name: \"Jinja\", extensions: [\"j2\", \"jinja\", \"jinja2\"], load() { return import(\"@codemirror/lang-jinja\").then((m) => m.jinja()); }, }), LanguageDescription.of({ name: \"JSON\", alias: [\"json5\"], extensions: [\"json\", \"map\"], load() { return import(\"@codemirror/lang-json\").then((m) => m.json()); }, }), LanguageDescription.of({ name: \"JSX\", extensions: [\"jsx\"], load() { return import(\"@codemirror/lang-javascript\").then((m) => m.javascript({ jsx: true }), ); }, }), LanguageDescription.of({ name: \"LESS\", extensions: [\"less\"], load() { return import(\"@codemirror/lang-less\").then((m) => m.less()); }, }), LanguageDescription.of({ name: \"Liquid\", extensions: [\"liquid\"], load() { return import(\"@codemirror/lang-liquid\").then((m) => m.liquid()); }, }), LanguageDescription.of({ name: \"MariaDB SQL\", load() { return sql(\"MariaSQL\"); }, }), LanguageDescription.of({ name: \"Markdown\", extensions: [\"md\", \"markdown\", \"mkd\"], load() { return import(\"@codemirror/lang-markdown\").then((m) => m.markdown()); }, }), LanguageDescription.of({ name: \"MS SQL\", load() { return sql(\"MSSQL\"); }, }), LanguageDescription.of({ name: \"MySQL\", load() { return sql(\"MySQL\"); }, }), LanguageDescription.of({ name: \"PHP\", extensions: [\"php\", \"php3\", \"php4\", \"php5\", \"php7\", \"phtml\"], load() { return import(\"@codemirror/lang-php\").then((m) => m.php()); }, }), LanguageDescription.of({ name: \"PLSQL\", extensions: [\"pls\"], load() { return sql(\"PLSQL\"); }, }), LanguageDescription.of({ name: \"PostgreSQL\", load() { return sql(\"PostgreSQL\"); }, }), LanguageDescription.of({ name: \"Python\", extensions: [\"BUILD\", \"bzl\", \"py\", \"pyw\"], filename: /^(BUCK|BUILD)$/, load() { return import(\"@codemirror/lang-python\").then((m) => m.python()); }, }), LanguageDescription.of({ name: \"Rust\", extensions: [\"rs\"], load() { return import(\"@codemirror/lang-rust\").then((m) => m.rust()); }, }), LanguageDescription.of({ name: \"Sass\", extensions: [\"sass\"], load() { return import(\"@codemirror/lang-sass\").then((m) => m.sass({ indented: true }), ); }, }), LanguageDescription.of({ name: \"SCSS\", extensions: [\"scss\"], load() { return import(\"@codemirror/lang-sass\").then((m) => m.sass()); }, }), LanguageDescription.of({ name: \"SQL\", extensions: [\"sql\"], load() { return sql(\"StandardSQL\"); }, }), LanguageDescription.of({ name: \"SQLite\", load() { return sql(\"SQLite\"); }, }), LanguageDescription.of({ name: \"TSX\", extensions: [\"tsx\"], load() { return import(\"@codemirror/lang-javascript\").then((m) => m.javascript({ jsx: true, typescript: true }), ); }, }), LanguageDescription.of({ name: \"TypeScript\", alias: [\"ts\"], extensions: [\"ts\", \"mts\", \"cts\"], load() { return import(\"@codemirror/lang-javascript\").then((m) => m.javascript({ typescript: true }), ); }, }), LanguageDescription.of({ name: \"WebAssembly\", extensions: [\"wat\", \"wast\"], load() { return import(\"@codemirror/lang-wast\").then((m) => m.wast()); }, }), LanguageDescription.of({ name: \"XML\", alias: [\"rss\", \"wsdl\", \"xsd\"], extensions: [\"xml\", \"xsl\", \"xsd\", \"svg\"], load() { return import(\"@codemirror/lang-xml\").then((m) => m.xml()); }, }), LanguageDescription.of({ name: \"YAML\", alias: [\"yml\"], extensions: [\"yaml\", \"yml\"], load() { return import(\"@codemirror/lang-yaml\").then((m) => m.yaml()); }, }), // Legacy modes ported from CodeMirror 5 LanguageDescription.of({ name: \"APL\", extensions: [\"dyalog\", \"apl\"], load() { return import(\"@codemirror/legacy-modes/mode/apl\").then((m) => legacy(m.apl), ); }, }), LanguageDescription.of({ name: \"PGP\", alias: [\"asciiarmor\"], extensions: [\"asc\", \"pgp\", \"sig\"], load() { return import(\"@codemirror/legacy-modes/mode/asciiarmor\").then((m) => legacy(m.asciiArmor), ); }, }), LanguageDescription.of({ name: \"ASN.1\", extensions: [\"asn\", \"asn1\"], load() { return import(\"@codemirror/legacy-modes/mode/asn1\").then((m) => legacy(m.asn1({})), ); }, }), LanguageDescription.of({ name: \"Asterisk\", filename: /^extensions\\.conf$/i, load() { return import(\"@codemirror/legacy-modes/mode/asterisk\").then((m) => legacy(m.asterisk), ); }, }), LanguageDescription.of({ name: \"Cobol\", extensions: [\"cob\", \"cpy\"], load() { return import(\"@codemirror/legacy-modes/mode/cobol\").then((m) => legacy(m.cobol), ); }, }), LanguageDescription.of({ name: \"C#\", alias: [\"csharp\", \"cs\"], extensions: [\"cs\"], load() { return import(\"@codemirror/legacy-modes/mode/clike\").then((m) => legacy(m.csharp), ); }, }), LanguageDescription.of({ name: \"Clojure\", extensions: [\"clj\", \"cljc\", \"cljx\"], load() { return import(\"@codemirror/legacy-modes/mode/clojure\").then((m) => legacy(m.clojure), ); }, }), LanguageDescription.of({ name: \"ClojureScript\", extensions: [\"cljs\"], load() { return import(\"@codemirror/legacy-modes/mode/clojure\").then((m) => legacy(m.clojure), ); }, }), LanguageDescription.of({ name: \"Closure Stylesheets (GSS)\", extensions: [\"gss\"], load() { return import(\"@codemirror/legacy-modes/mode/css\").then((m) => legacy(m.gss), ); }, }), LanguageDescription.of({ name: \"CMake\", extensions: [\"cmake\", \"cmake.in\"], filename: /^CMakeLists\\.txt$/, load() { return import(\"@codemirror/legacy-modes/mode/cmake\").then((m) => legacy(m.cmake), ); }, }), LanguageDescription.of({ name: \"CoffeeScript\", alias: [\"coffee\", \"coffee-script\"], extensions: [\"coffee\"], load() { return import(\"@codemirror/legacy-modes/mode/coffeescript\").then((m) => legacy(m.coffeeScript), ); }, }), LanguageDescription.of({ name: \"Common Lisp\", alias: [\"lisp\"], extensions: [\"cl\", \"lisp\", \"el\"], load() { return import(\"@codemirror/legacy-modes/mode/commonlisp\").then((m) => legacy(m.commonLisp), ); }, }), LanguageDescription.of({ name: \"Cypher\", extensions: [\"cyp\", \"cypher\"], load() { return import(\"@codemirror/legacy-modes/mode/cypher\").then((m) => legacy(m.cypher), ); }, }), LanguageDescription.of({ name: \"Cython\", extensions: [\"pyx\", \"pxd\", \"pxi\"], load() { return import(\"@codemirror/legacy-modes/mode/python\").then((m) => legacy(m.cython), ); }, }), LanguageDescription.of({ name: \"Crystal\", extensions: [\"cr\"], load() { return import(\"@codemirror/legacy-modes/mode/crystal\").then((m) => legacy(m.crystal), ); }, }), LanguageDescription.of({ name: \"D\", extensions: [\"d\"], load() { return import(\"@codemirror/legacy-modes/mode/d\").then((m) => legacy(m.d)); }, }), LanguageDescription.of({ name: \"Dart\", extensions: [\"dart\"], load() { return import(\"@codemirror/legacy-modes/mode/clike\").then((m) => legacy(m.dart), ); }, }), LanguageDescription.of({ name: \"diff\", extensions: [\"diff\", \"patch\"], load() { return import(\"@codemirror/legacy-modes/mode/diff\").then((m) => legacy(m.diff), ); }, }), LanguageDescription.of({ name: \"Dockerfile\", filename: /^Dockerfile$/, load() { return import(\"@codemirror/legacy-modes/mode/dockerfile\").then((m) => legacy(m.dockerFile), ); }, }), LanguageDescription.of({ name: \"DTD\", extensions: [\"dtd\"], load() { return import(\"@codemirror/legacy-modes/mode/dtd\").then((m) => legacy(m.dtd), ); }, }), LanguageDescription.of({ name: \"Dylan\", extensions: [\"dylan\", \"dyl\", \"intr\"], load() { return import(\"@codemirror/legacy-modes/mode/dylan\").then((m) => legacy(m.dylan), ); }, }), LanguageDescription.of({ name: \"EBNF\", load() { return import(\"@codemirror/legacy-modes/mode/ebnf\").then((m) => legacy(m.ebnf), ); }, }), LanguageDescription.of({ name: \"ECL\", extensions: [\"ecl\"], load() { return import(\"@codemirror/legacy-modes/mode/ecl\").then((m) => legacy(m.ecl), ); }, }), LanguageDescription.of({ name: \"edn\", extensions: [\"edn\"], load() { return import(\"@codemirror/legacy-modes/mode/clojure\").then((m) => legacy(m.clojure), ); }, }), LanguageDescription.of({ name: \"Eiffel\", extensions: [\"e\"], load() { return import(\"@codemirror/legacy-modes/mode/eiffel\").then((m) => legacy(m.eiffel), ); }, }), LanguageDescription.of({ name: \"Elm\", extensions: [\"elm\"], load() { return import(\"@codemirror/legacy-modes/mode/elm\").then((m) => legacy(m.elm), ); }, }), LanguageDescription.of({ name: \"Erlang\", extensions: [\"erl\"], load() { return import(\"@codemirror/legacy-modes/mode/erlang\").then((m) => legacy(m.erlang), ); }, }), LanguageDescription.of({ name: \"Esper\", load() { return import(\"@codemirror/legacy-modes/mode/sql\").then((m) => legacy(m.esper), ); }, }), LanguageDescription.of({ name: \"Factor\", extensions: [\"factor\"], load() { return import(\"@codemirror/legacy-modes/mode/factor\").then((m) => legacy(m.factor), ); }, }), LanguageDescription.of({ name: \"FCL\", load() { return import(\"@codemirror/legacy-modes/mode/fcl\").then((m) => legacy(m.fcl), ); }, }), LanguageDescription.of({ name: \"Forth\", extensions: [\"forth\", \"fth\", \"4th\"], load() { return import(\"@codemirror/legacy-modes/mode/forth\").then((m) => legacy(m.forth), ); }, }), LanguageDescription.of({ name: \"Fortran\", extensions: [\"f\", \"for\", \"f77\", \"f90\", \"f95\"], load() { return import(\"@codemirror/legacy-modes/mode/fortran\").then((m) => legacy(m.fortran), ); }, }), LanguageDescription.of({ name: \"F#\", alias: [\"fsharp\"], extensions: [\"fs\"], load() { return import(\"@codemirror/legacy-modes/mode/mllike\").then((m) => legacy(m.fSharp), ); }, }), LanguageDescription.of({ name: \"Gas\", extensions: [\"s\"], load() { return import(\"@codemirror/legacy-modes/mode/gas\").then((m) => legacy(m.gas), ); }, }), LanguageDescription.of({ name: \"Gherkin\", extensions: [\"feature\"], load() { return import(\"@codemirror/legacy-modes/mode/gherkin\").then((m) => legacy(m.gherkin), ); }, }), LanguageDescription.of({ name: \"Groovy\", extensions: [\"groovy\", \"gradle\"], filename: /^Jenkinsfile$/, load() { return import(\"@codemirror/legacy-modes/mode/groovy\").then((m) => legacy(m.groovy), ); }, }), LanguageDescription.of({ name: \"Haskell\", extensions: [\"hs\"], load() { return import(\"@codemirror/legacy-modes/mode/haskell\").then((m) => legacy(m.haskell), ); }, }), LanguageDescription.of({ name: \"Haxe\", extensions: [\"hx\"], load() { return import(\"@codemirror/legacy-modes/mode/haxe\").then((m) => legacy(m.haxe), ); }, }), LanguageDescription.of({ name: \"HXML\", extensions: [\"hxml\"], load() { return import(\"@codemirror/legacy-modes/mode/haxe\").then((m) => legacy(m.hxml), ); }, }), LanguageDescription.of({ name: \"HTTP\", load() { return import(\"@codemirror/legacy-modes/mode/http\").then((m) => legacy(m.http), ); }, }), LanguageDescription.of({ name: \"IDL\", extensions: [\"pro\"], load() { return import(\"@codemirror/legacy-modes/mode/idl\").then((m) => legacy(m.idl), ); }, }), LanguageDescription.of({ name: \"JSON-LD\", alias: [\"jsonld\"], extensions: [\"jsonld\"], load() { return import(\"@codemirror/legacy-modes/mode/javascript\").then((m) => legacy(m.jsonld), ); }, }), LanguageDescription.of({ name: \"Julia\", extensions: [\"jl\"], load() { return import(\"@codemirror/legacy-modes/mode/julia\").then((m) => legacy(m.julia), ); }, }), LanguageDescription.of({ name: \"Kotlin\", extensions: [\"kt\", \"kts\"], load() { return import(\"@codemirror/legacy-modes/mode/clike\").then((m) => legacy(m.kotlin), ); }, }), LanguageDescription.of({ name: \"LiveScript\", alias: [\"ls\"], extensions: [\"ls\"], load() { return import(\"@codemirror/legacy-modes/mode/livescript\").then((m) => legacy(m.liveScript), ); }, }), LanguageDescription.of({ name: \"Lua\", extensions: [\"lua\"], load() { return import(\"@codemirror/legacy-modes/mode/lua\").then((m) => legacy(m.lua), ); }, }), LanguageDescription.of({ name: \"mIRC\", extensions: [\"mrc\"], load() { return import(\"@codemirror/legacy-modes/mode/mirc\").then((m) => legacy(m.mirc), ); }, }), LanguageDescription.of({ name: \"Mathematica\", extensions: [\"m\", \"nb\", \"wl\", \"wls\"], load() { return import(\"@codemirror/legacy-modes/mode/mathematica\").then((m) => legacy(m.mathematica), ); }, }), LanguageDescription.of({ name: \"Modelica\", extensions: [\"mo\"], load() { return import(\"@codemirror/legacy-modes/mode/modelica\").then((m) => legacy(m.modelica), ); }, }), LanguageDescription.of({ name: \"MUMPS\", extensions: [\"mps\"], load() { return import(\"@codemirror/legacy-modes/mode/mumps\").then((m) => legacy(m.mumps), ); }, }), LanguageDescription.of({ name: \"Mbox\", extensions: [\"mbox\"], load() { return import(\"@codemirror/legacy-modes/mode/mbox\").then((m) => legacy(m.mbox), ); }, }), LanguageDescription.of({ name: \"Nginx\", filename: /nginx.*\\.conf$/i, load() { return import(\"@codemirror/legacy-modes/mode/nginx\").then((m) => legacy(m.nginx), ); }, }), LanguageDescription.of({ name: \"NSIS\", extensions: [\"nsh\", \"nsi\"], load() { return import(\"@codemirror/legacy-modes/mode/nsis\").then((m) => legacy(m.nsis), ); }, }), LanguageDescription.of({ name: \"NTriples\", extensions: [\"nt\", \"nq\"], load() { return import(\"@codemirror/legacy-modes/mode/ntriples\").then((m) => legacy(m.ntriples), ); }, }), LanguageDescription.of({ name: \"Objective-C\", alias: [\"objective-c\", \"objc\"], extensions: [\"m\"], load() { return import(\"@codemirror/legacy-modes/mode/clike\").then((m) => legacy(m.objectiveC), ); }, }), LanguageDescription.of({ name: \"Objective-C++\", alias: [\"objective-c++\", \"objc++\"], extensions: [\"mm\"], load() { return import(\"@codemirror/legacy-modes/mode/clike\").then((m) => legacy(m.objectiveCpp), ); }, }), LanguageDescription.of({ name: \"OCaml\", extensions: [\"ml\", \"mli\", \"mll\", \"mly\"], load() { return import(\"@codemirror/legacy-modes/mode/mllike\").then((m) => legacy(m.oCaml), ); }, }), LanguageDescription.of({ name: \"Octave\", extensions: [\"m\"], load() { return import(\"@codemirror/legacy-modes/mode/octave\").then((m) => legacy(m.octave), ); }, }), LanguageDescription.of({ name: \"Oz\", extensions: [\"oz\"], load() { return import(\"@codemirror/legacy-modes/mode/oz\").then((m) => legacy(m.oz), ); }, }), LanguageDescription.of({ name: \"Pascal\", extensions: [\"p\", \"pas\"], load() { return import(\"@codemirror/legacy-modes/mode/pascal\").then((m) => legacy(m.pascal), ); }, }), LanguageDescription.of({ name: \"Perl\", extensions: [\"pl\", \"pm\"], load() { return import(\"@codemirror/legacy-modes/mode/perl\").then((m) => legacy(m.perl), ); }, }), LanguageDescription.of({ name: \"Pig\", extensions: [\"pig\"], load() { return import(\"@codemirror/legacy-modes/mode/pig\").then((m) => legacy(m.pig), ); }, }), LanguageDescription.of({ name: \"PowerShell\", extensions: [\"ps1\", \"psd1\", \"psm1\"], load() { return import(\"@codemirror/legacy-modes/mode/powershell\").then((m) => legacy(m.powerShell), ); }, }), LanguageDescription.of({ name: \"Properties files\", alias: [\"ini\", \"properties\"], extensions: [\"properties\", \"ini\", \"in\"], load() { return import(\"@codemirror/legacy-modes/mode/properties\").then((m) => legacy(m.properties), ); }, }), LanguageDescription.of({ name: \"ProtoBuf\", extensions: [\"proto\"], load() { return import(\"@codemirror/legacy-modes/mode/protobuf\").then((m) => legacy(m.protobuf), ); }, }), LanguageDescription.of({ name: \"Pug\", alias: [\"jade\"], extensions: [\"pug\", \"jade\"], load() { return import(\"@codemirror/legacy-modes/mode/pug\").then((m) => legacy(m.pug), ); }, }), LanguageDescription.of({ name: \"Puppet\", extensions: [\"pp\"], load() { return import(\"@codemirror/legacy-modes/mode/puppet\").then((m) => legacy(m.puppet), ); }, }), LanguageDescription.of({ name: \"Q\", extensions: [\"q\"], load() { return import(\"@codemirror/legacy-modes/mode/q\").then((m) => legacy(m.q)); }, }), LanguageDescription.of({ name: \"R\", alias: [\"rscript\"], extensions: [\"r\", \"R\"], load() { return import(\"@codemirror/legacy-modes/mode/r\").then((m) => legacy(m.r)); }, }), LanguageDescription.of({ name: \"RPM Changes\", load() { return import(\"@codemirror/legacy-modes/mode/rpm\").then((m) => legacy(m.rpmChanges), ); }, }), LanguageDescription.of({ name: \"RPM Spec\", extensions: [\"spec\"], load() { return import(\"@codemirror/legacy-modes/mode/rpm\").then((m) => legacy(m.rpmSpec), ); }, }), LanguageDescription.of({ name: \"Ruby\", alias: [\"jruby\", \"macruby\", \"rake\", \"rb\", \"rbx\"], extensions: [\"rb\"], filename: /^(Gemfile|Rakefile)$/, load() { return import(\"@codemirror/legacy-modes/mode/ruby\").then((m) => legacy(m.ruby), ); }, }), LanguageDescription.of({ name: \"SAS\", extensions: [\"sas\"], load() { return import(\"@codemirror/legacy-modes/mode/sas\").then((m) => legacy(m.sas), ); }, }), LanguageDescription.of({ name: \"Scala\", extensions: [\"scala\"], load() { return import(\"@codemirror/legacy-modes/mode/clike\").then((m) => legacy(m.scala), ); }, }), LanguageDescription.of({ name: \"Scheme\", extensions: [\"scm\", \"ss\"], load() { return import(\"@codemirror/legacy-modes/mode/scheme\").then((m) => legacy(m.scheme), ); }, }), LanguageDescription.of({ name: \"Shell\", alias: [\"bash\", \"sh\", \"zsh\"], extensions: [\"sh\", \"ksh\", \"bash\"], filename: /^PKGBUILD$/, load() { return import(\"@codemirror/legacy-modes/mode/shell\").then((m) => legacy(m.shell), ); }, }), LanguageDescription.of({ name: \"Sieve\", extensions: [\"siv\", \"sieve\"], load() { return import(\"@codemirror/legacy-modes/mode/sieve\").then((m) => legacy(m.sieve), ); }, }), LanguageDescription.of({ name: \"Smalltalk\", extensions: [\"st\"], load() { return import(\"@codemirror/legacy-modes/mode/smalltalk\").then((m) => legacy(m.smalltalk), ); }, }), LanguageDescription.of({ name: \"Solr\", load() { return import(\"@codemirror/legacy-modes/mode/solr\").then((m) => legacy(m.solr), ); }, }), LanguageDescription.of({ name: \"SML\", extensions: [\"sml\", \"sig\", \"fun\", \"smackspec\"], load() { return import(\"@codemirror/legacy-modes/mode/mllike\").then((m) => legacy(m.sml), ); }, }), LanguageDescription.of({ name: \"SPARQL\", alias: [\"sparul\"], extensions: [\"rq\", \"sparql\"], load() { return import(\"@codemirror/legacy-modes/mode/sparql\").then((m) => legacy(m.sparql), ); }, }), LanguageDescription.of({ name: \"Spreadsheet\", alias: [\"excel\", \"formula\"], load() { return import(\"@codemirror/legacy-modes/mode/spreadsheet\").then((m) => legacy(m.spreadsheet), ); }, }), LanguageDescription.of({ name: \"Squirrel\", extensions: [\"nut\"], load() { return import(\"@codemirror/legacy-modes/mode/clike\").then((m) => legacy(m.squirrel), ); }, }), LanguageDescription.of({ name: \"Stylus\", extensions: [\"styl\"], load() { return import(\"@codemirror/legacy-modes/mode/stylus\").then((m) => legacy(m.stylus), ); }, }), LanguageDescription.of({ name: \"Swift\", extensions: [\"swift\"], load() { return import(\"@codemirror/legacy-modes/mode/swift\").then((m) => legacy(m.swift), ); }, }), LanguageDescription.of({ name: \"sTeX\", load() { return import(\"@codemirror/legacy-modes/mode/stex\").then((m) => legacy(m.stex), ); }, }), LanguageDescription.of({ name: \"LaTeX\", alias: [\"tex\"], extensions: [\"text\", \"ltx\", \"tex\"], load() { return import(\"@codemirror/legacy-modes/mode/stex\").then((m) => legacy(m.stex), ); }, }), LanguageDescription.of({ name: \"SystemVerilog\", extensions: [\"v\", \"sv\", \"svh\"], load() { return import(\"@codemirror/legacy-modes/mode/verilog\").then((m) => legacy(m.verilog), ); }, }), LanguageDescription.of({ name: \"Tcl\", extensions: [\"tcl\"], load() { return import(\"@codemirror/legacy-modes/mode/tcl\").then((m) => legacy(m.tcl), ); }, }), LanguageDescription.of({ name: \"Textile\", extensions: [\"textile\"], load() { return import(\"@codemirror/legacy-modes/mode/textile\").then((m) => legacy(m.textile), ); }, }), LanguageDescription.of({ name: \"TiddlyWiki\", load() { return import(\"@codemirror/legacy-modes/mode/tiddlywiki\").then((m) => legacy(m.tiddlyWiki), ); }, }), LanguageDescription.of({ name: \"Tiki wiki\", load() { return import(\"@codemirror/legacy-modes/mode/tiki\").then((m) => legacy(m.tiki), ); }, }), LanguageDescription.of({ name: \"TOML\", extensions: [\"toml\"], load() { return import(\"@codemirror/legacy-modes/mode/toml\").then((m) => legacy(m.toml), ); }, }), LanguageDescription.of({ name: \"Troff\", extensions: [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"], load() { return import(\"@codemirror/legacy-modes/mode/troff\").then((m) => legacy(m.troff), ); }, }), LanguageDescription.of({ name: \"TTCN\", extensions: [\"ttcn\", \"ttcn3\", \"ttcnpp\"], load() { return import(\"@codemirror/legacy-modes/mode/ttcn\").then((m) => legacy(m.ttcn), ); }, }), LanguageDescription.of({ name: \"TTCN_CFG\", extensions: [\"cfg\"], load() { return import(\"@codemirror/legacy-modes/mode/ttcn-cfg\").then((m) => legacy(m.ttcnCfg), ); }, }), LanguageDescription.of({ name: \"Turtle\", extensions: [\"ttl\"], load() { return import(\"@codemirror/legacy-modes/mode/turtle\").then((m) => legacy(m.turtle), ); }, }), LanguageDescription.of({ name: \"Web IDL\", extensions: [\"webidl\"], load() { return import(\"@codemirror/legacy-modes/mode/webidl\").then((m) => legacy(m.webIDL), ); }, }), LanguageDescription.of({ name: \"VB.NET\", extensions: [\"vb\"], load() { return import(\"@codemirror/legacy-modes/mode/vb\").then((m) => legacy(m.vb), ); }, }), LanguageDescription.of({ name: \"VBScript\", extensions: [\"vbs\"], load() { return import(\"@codemirror/legacy-modes/mode/vbscript\").then((m) => legacy(m.vbScript), ); }, }), LanguageDescription.of({ name: \"Velocity\", extensions: [\"vtl\"], load() { return import(\"@codemirror/legacy-modes/mode/velocity\").then((m) => legacy(m.velocity), ); }, }), LanguageDescription.of({ name: \"Verilog\", extensions: [\"v\"], load() { return import(\"@codemirror/legacy-modes/mode/verilog\").then((m) => legacy(m.verilog), ); }, }), LanguageDescription.of({ name: \"VHDL\", extensions: [\"vhd\", \"vhdl\"], load() { return import(\"@codemirror/legacy-modes/mode/vhdl\").then((m) => legacy(m.vhdl), ); }, }), LanguageDescription.of({ name: \"XQuery\", extensions: [\"xy\", \"xquery\", \"xq\", \"xqm\", \"xqy\"], load() { return import(\"@codemirror/legacy-modes/mode/xquery\").then((m) => legacy(m.xQuery), ); }, }), LanguageDescription.of({ name: \"Yacas\", extensions: [\"ys\"], load() { return import(\"@codemirror/legacy-modes/mode/yacas\").then((m) => legacy(m.yacas), ); }, }), LanguageDescription.of({ name: \"Z80\", extensions: [\"z80\"], load() { return import(\"@codemirror/legacy-modes/mode/z80\").then((m) => legacy(m.z80), ); }, }), LanguageDescription.of({ name: \"MscGen\", extensions: [\"mscgen\", \"mscin\", \"msc\"], load() { return import(\"@codemirror/legacy-modes/mode/mscgen\").then((m) => legacy(m.mscgen), ); }, }), LanguageDescription.of({ name: \"Xù\", extensions: [\"xu\"], load() { return import(\"@codemirror/legacy-modes/mode/mscgen\").then((m) => legacy(m.xu), ); }, }), LanguageDescription.of({ name: \"MsGenny\", extensions: [\"msgenny\"], load() { return import(\"@codemirror/legacy-modes/mode/mscgen\").then((m) => legacy(m.msgenny), ); }, }), LanguageDescription.of({ name: \"Vue\", extensions: [\"vue\"], load() { return import(\"@codemirror/lang-vue\").then((m) => m.vue()); }, }), LanguageDescription.of({ name: \"Angular Template\", load() { return import(\"@codemirror/lang-angular\").then((m) => m.angular()); }, }), ]",
|
|
15861
|
-
|
|
16241
|
+
"kind": "function",
|
|
16242
|
+
"name": "markdownItTaskLists",
|
|
16243
|
+
"parameters": [
|
|
16244
|
+
{
|
|
16245
|
+
"name": "md",
|
|
16246
|
+
"type": {
|
|
16247
|
+
"text": "MarkdownIt"
|
|
16248
|
+
}
|
|
16249
|
+
}
|
|
16250
|
+
]
|
|
15862
16251
|
}
|
|
15863
16252
|
],
|
|
15864
16253
|
"exports": [
|
|
15865
16254
|
{
|
|
15866
16255
|
"kind": "js",
|
|
15867
|
-
"name": "
|
|
16256
|
+
"name": "markdownItTaskLists",
|
|
15868
16257
|
"declaration": {
|
|
15869
|
-
"name": "
|
|
15870
|
-
"module": "src/components/
|
|
16258
|
+
"name": "markdownItTaskLists",
|
|
16259
|
+
"module": "src/components/markdown/src/plugins/markdown-it-task-lists.ts"
|
|
15871
16260
|
}
|
|
15872
16261
|
}
|
|
15873
16262
|
]
|
|
15874
16263
|
},
|
|
15875
16264
|
{
|
|
15876
16265
|
"kind": "javascript-module",
|
|
15877
|
-
"path": "src/components/
|
|
16266
|
+
"path": "src/components/markdown/src/utils/html-helpers.ts",
|
|
15878
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
|
+
},
|
|
15879
16277
|
{
|
|
15880
16278
|
"kind": "function",
|
|
15881
|
-
"name": "
|
|
16279
|
+
"name": "combineConsecutiveHtmlInline",
|
|
15882
16280
|
"return": {
|
|
15883
16281
|
"type": {
|
|
15884
|
-
"text": ""
|
|
16282
|
+
"text": "TokenTree[]"
|
|
15885
16283
|
}
|
|
15886
16284
|
},
|
|
15887
16285
|
"parameters": [
|
|
15888
16286
|
{
|
|
15889
|
-
"name": "
|
|
16287
|
+
"name": "children",
|
|
15890
16288
|
"type": {
|
|
15891
|
-
"text": "
|
|
15892
|
-
}
|
|
15893
|
-
"description": "The language name or alias to map"
|
|
16289
|
+
"text": "TokenTree[]"
|
|
16290
|
+
}
|
|
15894
16291
|
}
|
|
15895
|
-
]
|
|
15896
|
-
"description": "Maps common language name aliases to their canonical CodeMirror language names.\n\nThis utility helps normalize various language identifiers (file extensions, common aliases)\nto the standard names recognized by CodeMirror's language-data package."
|
|
16292
|
+
]
|
|
15897
16293
|
},
|
|
15898
16294
|
{
|
|
15899
16295
|
"kind": "function",
|
|
15900
|
-
"name": "
|
|
16296
|
+
"name": "combineSplitHtmlBlocks",
|
|
15901
16297
|
"return": {
|
|
15902
16298
|
"type": {
|
|
15903
|
-
"text": ""
|
|
16299
|
+
"text": "TokenTree[]"
|
|
15904
16300
|
}
|
|
15905
16301
|
},
|
|
15906
16302
|
"parameters": [
|
|
15907
16303
|
{
|
|
15908
|
-
"name": "
|
|
16304
|
+
"name": "children",
|
|
15909
16305
|
"type": {
|
|
15910
|
-
"text": "
|
|
15911
|
-
}
|
|
15912
|
-
"description": "The code content to analyze"
|
|
16306
|
+
"text": "TokenTree[]"
|
|
16307
|
+
}
|
|
15913
16308
|
}
|
|
15914
|
-
]
|
|
15915
|
-
"description": "Detects the programming language from code content using pattern matching and ML-based detection.\n\nThis function uses a multi-strategy approach:\n1. Pattern-based detection for Markdown, JSON, diff files, and shell scripts\n2. ML-based detection using the program-language-detector library\n3. TypeScript-specific hints to distinguish TypeScript from JavaScript"
|
|
16309
|
+
]
|
|
15916
16310
|
}
|
|
15917
16311
|
],
|
|
15918
16312
|
"exports": [
|
|
15919
16313
|
{
|
|
15920
16314
|
"kind": "js",
|
|
15921
|
-
"name": "
|
|
16315
|
+
"name": "HTML_CONTAINER_SLOT",
|
|
15922
16316
|
"declaration": {
|
|
15923
|
-
"name": "
|
|
15924
|
-
"module": "src/components/
|
|
16317
|
+
"name": "HTML_CONTAINER_SLOT",
|
|
16318
|
+
"module": "src/components/markdown/src/utils/html-helpers.ts"
|
|
15925
16319
|
}
|
|
15926
16320
|
},
|
|
15927
16321
|
{
|
|
15928
16322
|
"kind": "js",
|
|
15929
|
-
"name": "
|
|
16323
|
+
"name": "combineConsecutiveHtmlInline",
|
|
15930
16324
|
"declaration": {
|
|
15931
|
-
"name": "
|
|
15932
|
-
"module": "src/components/
|
|
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"
|
|
15933
16335
|
}
|
|
15934
16336
|
}
|
|
15935
16337
|
]
|
|
15936
16338
|
},
|
|
15937
16339
|
{
|
|
15938
16340
|
"kind": "javascript-module",
|
|
15939
|
-
"path": "src/components/
|
|
16341
|
+
"path": "src/components/markdown/src/utils/lit-directives.ts",
|
|
15940
16342
|
"declarations": [
|
|
16343
|
+
{
|
|
16344
|
+
"kind": "variable",
|
|
16345
|
+
"name": "spread"
|
|
16346
|
+
},
|
|
15941
16347
|
{
|
|
15942
16348
|
"kind": "function",
|
|
15943
|
-
"name": "
|
|
15944
|
-
"return": {
|
|
15945
|
-
"type": {
|
|
15946
|
-
"text": ""
|
|
15947
|
-
}
|
|
15948
|
-
},
|
|
16349
|
+
"name": "sanitizeHtmlContent",
|
|
15949
16350
|
"parameters": [
|
|
15950
16351
|
{
|
|
15951
|
-
"name": "
|
|
15952
|
-
"default": "{}",
|
|
16352
|
+
"name": "content",
|
|
15953
16353
|
"type": {
|
|
15954
|
-
"text": "
|
|
15955
|
-
}
|
|
15956
|
-
"description": "Configuration options for labels"
|
|
16354
|
+
"text": "string"
|
|
16355
|
+
}
|
|
15957
16356
|
}
|
|
15958
|
-
]
|
|
15959
|
-
"description": "Creates a Carbon Design System styled fold marker for CodeMirror's foldGutter.\n\nThis function returns a `markerDOM` function that can be used with CodeMirror's\n`foldGutter()` extension to display Carbon's chevron icon as fold indicators.\nThe markers include proper accessibility attributes and keyboard support.\n\n**Note:** This function only provides the fold marker DOM. You must also include\n`createCarbonTheme()` to get the proper styling (icon size, rotation, focus states)."
|
|
16357
|
+
]
|
|
15960
16358
|
},
|
|
15961
16359
|
{
|
|
15962
|
-
"kind": "
|
|
15963
|
-
"name": "
|
|
15964
|
-
"description": "Creates a keyboard event handler for Carbon fold markers.\n\nThis extension enables keyboard accessibility for fold markers created with\n`createCarbonFoldMarker()`. It allows users to toggle code folding by pressing\nEnter or Space when a fold marker is focused.",
|
|
15965
|
-
"return": {
|
|
15966
|
-
"type": {
|
|
15967
|
-
"text": ""
|
|
15968
|
-
}
|
|
15969
|
-
}
|
|
16360
|
+
"kind": "variable",
|
|
16361
|
+
"name": "htmlContainer"
|
|
15970
16362
|
}
|
|
15971
16363
|
],
|
|
15972
16364
|
"exports": [
|
|
15973
16365
|
{
|
|
15974
16366
|
"kind": "js",
|
|
15975
|
-
"name": "
|
|
16367
|
+
"name": "spread",
|
|
15976
16368
|
"declaration": {
|
|
15977
|
-
"name": "
|
|
15978
|
-
"module": "src/components/
|
|
16369
|
+
"name": "spread",
|
|
16370
|
+
"module": "src/components/markdown/src/utils/lit-directives.ts"
|
|
15979
16371
|
}
|
|
15980
16372
|
},
|
|
15981
16373
|
{
|
|
15982
16374
|
"kind": "js",
|
|
15983
|
-
"name": "
|
|
16375
|
+
"name": "sanitizeHtmlContent",
|
|
15984
16376
|
"declaration": {
|
|
15985
|
-
"name": "
|
|
15986
|
-
"module": "src/components/
|
|
16377
|
+
"name": "sanitizeHtmlContent",
|
|
16378
|
+
"module": "src/components/markdown/src/utils/lit-directives.ts"
|
|
16379
|
+
}
|
|
16380
|
+
},
|
|
16381
|
+
{
|
|
16382
|
+
"kind": "js",
|
|
16383
|
+
"name": "htmlContainer",
|
|
16384
|
+
"declaration": {
|
|
16385
|
+
"name": "htmlContainer",
|
|
16386
|
+
"module": "src/components/markdown/src/utils/lit-directives.ts"
|
|
15987
16387
|
}
|
|
15988
16388
|
}
|
|
15989
16389
|
]
|
|
15990
16390
|
},
|
|
15991
16391
|
{
|
|
15992
16392
|
"kind": "javascript-module",
|
|
15993
|
-
"path": "src/components/
|
|
16393
|
+
"path": "src/components/markdown/src/utils/plugin-fallback.ts",
|
|
15994
16394
|
"declarations": [
|
|
15995
16395
|
{
|
|
15996
16396
|
"kind": "function",
|
|
15997
|
-
"name": "
|
|
15998
|
-
"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).",
|
|
16397
|
+
"name": "isNativelyHandled",
|
|
15999
16398
|
"return": {
|
|
16000
16399
|
"type": {
|
|
16001
|
-
"text": ""
|
|
16400
|
+
"text": "boolean"
|
|
16002
16401
|
}
|
|
16003
|
-
}
|
|
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()`."
|
|
16004
16412
|
},
|
|
16005
16413
|
{
|
|
16006
16414
|
"kind": "function",
|
|
16007
|
-
"name": "
|
|
16008
|
-
"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.",
|
|
16415
|
+
"name": "shouldDelegateToPluginRule",
|
|
16009
16416
|
"return": {
|
|
16010
16417
|
"type": {
|
|
16011
|
-
"text": ""
|
|
16418
|
+
"text": "boolean"
|
|
16012
16419
|
}
|
|
16013
|
-
}
|
|
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."
|
|
16014
16436
|
},
|
|
16015
16437
|
{
|
|
16016
16438
|
"kind": "function",
|
|
16017
|
-
"name": "
|
|
16018
|
-
"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.",
|
|
16439
|
+
"name": "renderFallback",
|
|
16019
16440
|
"return": {
|
|
16020
16441
|
"type": {
|
|
16021
|
-
"text": ""
|
|
16442
|
+
"text": "TemplateResult"
|
|
16022
16443
|
}
|
|
16023
|
-
}
|
|
16444
|
+
},
|
|
16445
|
+
"parameters": [
|
|
16446
|
+
{
|
|
16447
|
+
"name": "token",
|
|
16448
|
+
"type": {
|
|
16449
|
+
"text": "Token"
|
|
16450
|
+
}
|
|
16451
|
+
},
|
|
16452
|
+
{
|
|
16453
|
+
"name": "node",
|
|
16454
|
+
"type": {
|
|
16455
|
+
"text": "TokenTree"
|
|
16456
|
+
}
|
|
16457
|
+
},
|
|
16458
|
+
{
|
|
16459
|
+
"name": "md",
|
|
16460
|
+
"type": {
|
|
16461
|
+
"text": "MarkdownIt"
|
|
16462
|
+
}
|
|
16463
|
+
},
|
|
16464
|
+
{
|
|
16465
|
+
"name": "sanitize",
|
|
16466
|
+
"type": {
|
|
16467
|
+
"text": "boolean"
|
|
16468
|
+
}
|
|
16469
|
+
},
|
|
16470
|
+
{
|
|
16471
|
+
"name": "options",
|
|
16472
|
+
"type": {
|
|
16473
|
+
"text": "RenderTokenTreeOptions"
|
|
16474
|
+
}
|
|
16475
|
+
}
|
|
16476
|
+
],
|
|
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."
|
|
16024
16478
|
}
|
|
16025
16479
|
],
|
|
16026
16480
|
"exports": [
|
|
16027
16481
|
{
|
|
16028
16482
|
"kind": "js",
|
|
16029
|
-
"name": "
|
|
16483
|
+
"name": "isNativelyHandled",
|
|
16030
16484
|
"declaration": {
|
|
16031
|
-
"name": "
|
|
16032
|
-
"module": "src/components/
|
|
16485
|
+
"name": "isNativelyHandled",
|
|
16486
|
+
"module": "src/components/markdown/src/utils/plugin-fallback.ts"
|
|
16033
16487
|
}
|
|
16034
16488
|
},
|
|
16035
16489
|
{
|
|
16036
16490
|
"kind": "js",
|
|
16037
|
-
"name": "
|
|
16491
|
+
"name": "shouldDelegateToPluginRule",
|
|
16038
16492
|
"declaration": {
|
|
16039
|
-
"name": "
|
|
16040
|
-
"module": "src/components/
|
|
16493
|
+
"name": "shouldDelegateToPluginRule",
|
|
16494
|
+
"module": "src/components/markdown/src/utils/plugin-fallback.ts"
|
|
16041
16495
|
}
|
|
16042
16496
|
},
|
|
16043
16497
|
{
|
|
16044
16498
|
"kind": "js",
|
|
16045
|
-
"name": "
|
|
16499
|
+
"name": "renderFallback",
|
|
16046
16500
|
"declaration": {
|
|
16047
|
-
"name": "
|
|
16048
|
-
"module": "src/components/
|
|
16501
|
+
"name": "renderFallback",
|
|
16502
|
+
"module": "src/components/markdown/src/utils/plugin-fallback.ts"
|
|
16049
16503
|
}
|
|
16050
16504
|
}
|
|
16051
16505
|
]
|
|
16052
16506
|
},
|
|
16053
16507
|
{
|
|
16054
16508
|
"kind": "javascript-module",
|
|
16055
|
-
"path": "src/components/markdown/src/utils/
|
|
16509
|
+
"path": "src/components/markdown/src/utils/streaming-table.ts",
|
|
16056
16510
|
"declarations": [
|
|
16057
16511
|
{
|
|
16058
|
-
"kind": "
|
|
16059
|
-
"name": "
|
|
16060
|
-
"
|
|
16061
|
-
"
|
|
16512
|
+
"kind": "function",
|
|
16513
|
+
"name": "hasTrailingTableToken",
|
|
16514
|
+
"return": {
|
|
16515
|
+
"type": {
|
|
16516
|
+
"text": "boolean"
|
|
16517
|
+
}
|
|
16062
16518
|
},
|
|
16063
|
-
"
|
|
16064
|
-
|
|
16519
|
+
"parameters": [
|
|
16520
|
+
{
|
|
16521
|
+
"name": "node",
|
|
16522
|
+
"type": {
|
|
16523
|
+
"text": "TokenTree"
|
|
16524
|
+
}
|
|
16525
|
+
}
|
|
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."
|
|
16065
16528
|
},
|
|
16066
16529
|
{
|
|
16067
16530
|
"kind": "function",
|
|
16068
|
-
"name": "
|
|
16531
|
+
"name": "hasNodeAfterTable",
|
|
16069
16532
|
"return": {
|
|
16070
16533
|
"type": {
|
|
16071
|
-
"text": "
|
|
16534
|
+
"text": "boolean"
|
|
16072
16535
|
}
|
|
16073
16536
|
},
|
|
16074
16537
|
"parameters": [
|
|
16075
16538
|
{
|
|
16076
|
-
"name": "
|
|
16539
|
+
"name": "node",
|
|
16077
16540
|
"type": {
|
|
16078
|
-
"text": "TokenTree
|
|
16541
|
+
"text": "TokenTree"
|
|
16079
16542
|
}
|
|
16080
16543
|
}
|
|
16081
|
-
]
|
|
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."
|
|
16082
16546
|
},
|
|
16083
16547
|
{
|
|
16084
16548
|
"kind": "function",
|
|
16085
|
-
"name": "
|
|
16549
|
+
"name": "isTableAtStreamingTail",
|
|
16086
16550
|
"return": {
|
|
16087
16551
|
"type": {
|
|
16088
|
-
"text": "
|
|
16552
|
+
"text": "boolean"
|
|
16089
16553
|
}
|
|
16090
16554
|
},
|
|
16091
16555
|
"parameters": [
|
|
16092
16556
|
{
|
|
16093
|
-
"name": "
|
|
16557
|
+
"name": "parentChildren",
|
|
16094
16558
|
"type": {
|
|
16095
|
-
"text": "
|
|
16559
|
+
"text": "readonly unknown[]"
|
|
16560
|
+
}
|
|
16561
|
+
},
|
|
16562
|
+
{
|
|
16563
|
+
"name": "currentIndex",
|
|
16564
|
+
"type": {
|
|
16565
|
+
"text": "number"
|
|
16096
16566
|
}
|
|
16097
16567
|
}
|
|
16098
|
-
]
|
|
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."
|
|
16570
|
+
},
|
|
16571
|
+
{
|
|
16572
|
+
"kind": "function",
|
|
16573
|
+
"name": "hasLikelyPartialTableTail",
|
|
16574
|
+
"return": {
|
|
16575
|
+
"type": {
|
|
16576
|
+
"text": "boolean"
|
|
16577
|
+
}
|
|
16578
|
+
},
|
|
16579
|
+
"parameters": [
|
|
16580
|
+
{
|
|
16581
|
+
"name": "markdown",
|
|
16582
|
+
"type": {
|
|
16583
|
+
"text": "string"
|
|
16584
|
+
}
|
|
16585
|
+
}
|
|
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
|
},
|