@carbon/ai-chat-components 1.1.0 → 1.2.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.
Files changed (141) hide show
  1. package/custom-elements.json +148 -775
  2. package/es/components/carousel/src/carousel.d.ts +1 -1
  3. package/es/components/carousel/src/carousel.js +5 -3
  4. package/es/components/carousel/src/carousel.js.map +1 -1
  5. package/es/components/chat-button/src/chat-button.scss.js +1 -1
  6. package/es/components/chat-history/src/chat-history.scss.js +1 -1
  7. package/es/components/chat-history/src/history-delete-panel.d.ts +10 -0
  8. package/es/components/chat-history/src/history-delete-panel.js +39 -0
  9. package/es/components/chat-history/src/history-delete-panel.js.map +1 -1
  10. package/es/components/chat-history/src/history-panel-item.js +1 -1
  11. package/es/components/chat-history/src/history-panel-item.js.map +1 -1
  12. package/es/components/chat-history/src/history-shell.d.ts +7 -0
  13. package/es/components/chat-history/src/history-shell.js +43 -0
  14. package/es/components/chat-history/src/history-shell.js.map +1 -1
  15. package/es/components/code-snippet/src/code-snippet.js +1 -0
  16. package/es/components/code-snippet/src/code-snippet.js.map +1 -1
  17. package/es/components/code-snippet/src/code-snippet.scss.js +1 -1
  18. package/es/components/code-snippet/src/codemirror/base-setup.d.ts +1 -0
  19. package/es/components/code-snippet/src/codemirror/base-setup.js +4 -1
  20. package/es/components/code-snippet/src/codemirror/base-setup.js.map +1 -1
  21. package/es/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +1 -0
  22. package/es/components/code-snippet/src/codemirror/codemirror-runtime.js +1 -0
  23. package/es/components/code-snippet/src/codemirror/codemirror-runtime.js.map +1 -1
  24. package/es/components/code-snippet/src/codemirror/diff-decorator.d.ts +30 -0
  25. package/es/components/code-snippet/src/codemirror/diff-decorator.js +80 -0
  26. package/es/components/code-snippet/src/codemirror/diff-decorator.js.map +1 -0
  27. package/es/components/code-snippet/src/codemirror/editor-manager.d.ts +2 -1
  28. package/es/components/code-snippet/src/codemirror/editor-manager.js +7 -2
  29. package/es/components/code-snippet/src/codemirror/editor-manager.js.map +1 -1
  30. package/es/components/markdown/src/markdown-token-tree.js +2 -10
  31. package/es/components/markdown/src/markdown-token-tree.js.map +1 -1
  32. package/es/components/markdown/src/plugins/markdown-it-attrs.d.ts +3 -3
  33. package/es/components/markdown/src/plugins/markdown-it-attrs.js +171 -57
  34. package/es/components/markdown/src/plugins/markdown-it-attrs.js.map +1 -1
  35. package/es/components/table/src/table.template.d.ts +1 -1
  36. package/es/components/table/src/table.template.js +6 -6
  37. package/es/components/table/src/table.template.js.map +1 -1
  38. package/es/globals/utils/focus-utils.d.ts +13 -1
  39. package/es/globals/utils/focus-utils.js +25 -1
  40. package/es/globals/utils/focus-utils.js.map +1 -1
  41. package/es/react/carousel.d.ts +4 -0
  42. package/es/react/carousel.js +31 -0
  43. package/es/react/carousel.js.map +1 -0
  44. package/es-custom/components/carousel/src/carousel.d.ts +1 -1
  45. package/es-custom/components/carousel/src/carousel.js +5 -3
  46. package/es-custom/components/carousel/src/carousel.js.map +1 -1
  47. package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
  48. package/es-custom/components/chat-history/src/chat-history.scss.js +1 -1
  49. package/es-custom/components/chat-history/src/history-delete-panel.d.ts +10 -0
  50. package/es-custom/components/chat-history/src/history-delete-panel.js +39 -0
  51. package/es-custom/components/chat-history/src/history-delete-panel.js.map +1 -1
  52. package/es-custom/components/chat-history/src/history-panel-item.js +1 -1
  53. package/es-custom/components/chat-history/src/history-panel-item.js.map +1 -1
  54. package/es-custom/components/chat-history/src/history-shell.d.ts +7 -0
  55. package/es-custom/components/chat-history/src/history-shell.js +43 -0
  56. package/es-custom/components/chat-history/src/history-shell.js.map +1 -1
  57. package/es-custom/components/code-snippet/src/code-snippet.js +1 -0
  58. package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
  59. package/es-custom/components/code-snippet/src/code-snippet.scss.js +1 -1
  60. package/es-custom/components/code-snippet/src/codemirror/base-setup.d.ts +1 -0
  61. package/es-custom/components/code-snippet/src/codemirror/base-setup.js +4 -1
  62. package/es-custom/components/code-snippet/src/codemirror/base-setup.js.map +1 -1
  63. package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +1 -0
  64. package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.js +1 -0
  65. package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.js.map +1 -1
  66. package/es-custom/components/code-snippet/src/codemirror/diff-decorator.d.ts +30 -0
  67. package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js +80 -0
  68. package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js.map +1 -0
  69. package/es-custom/components/code-snippet/src/codemirror/editor-manager.d.ts +2 -1
  70. package/es-custom/components/code-snippet/src/codemirror/editor-manager.js +7 -2
  71. package/es-custom/components/code-snippet/src/codemirror/editor-manager.js.map +1 -1
  72. package/es-custom/components/markdown/src/markdown-token-tree.js +2 -10
  73. package/es-custom/components/markdown/src/markdown-token-tree.js.map +1 -1
  74. package/es-custom/components/markdown/src/plugins/markdown-it-attrs.d.ts +3 -3
  75. package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js +171 -57
  76. package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js.map +1 -1
  77. package/es-custom/components/table/src/table.template.d.ts +1 -1
  78. package/es-custom/components/table/src/table.template.js +6 -6
  79. package/es-custom/components/table/src/table.template.js.map +1 -1
  80. package/es-custom/globals/utils/focus-utils.d.ts +13 -1
  81. package/es-custom/globals/utils/focus-utils.js +25 -1
  82. package/es-custom/globals/utils/focus-utils.js.map +1 -1
  83. package/es-custom/react/carousel.d.ts +4 -0
  84. package/es-custom/react/carousel.js +31 -0
  85. package/es-custom/react/carousel.js.map +1 -0
  86. package/package.json +4 -4
  87. package/telemetry.yml +2 -2
  88. package/es/components/markdown/src/plugins/markdownItAttrs/core.d.ts +0 -26
  89. package/es/components/markdown/src/plugins/markdownItAttrs/core.js +0 -330
  90. package/es/components/markdown/src/plugins/markdownItAttrs/core.js.map +0 -1
  91. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.d.ts +0 -6
  92. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.js +0 -63
  93. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.js.map +0 -1
  94. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/code.d.ts +0 -6
  95. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/code.js +0 -43
  96. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/code.js.map +0 -1
  97. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/index.d.ts +0 -5
  98. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/index.js +0 -55
  99. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/index.js.map +0 -1
  100. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/inline.d.ts +0 -19
  101. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/inline.js +0 -210
  102. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/inline.js.map +0 -1
  103. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/lists.d.ts +0 -13
  104. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/lists.js +0 -156
  105. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/lists.js.map +0 -1
  106. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/tables.d.ts +0 -13
  107. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/tables.js +0 -216
  108. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/tables.js.map +0 -1
  109. package/es/components/markdown/src/plugins/markdownItAttrs/types.d.ts +0 -34
  110. package/es/components/markdown/src/plugins/markdownItAttrs/types.js +0 -8
  111. package/es/components/markdown/src/plugins/markdownItAttrs/types.js.map +0 -1
  112. package/es/components/markdown/src/plugins/markdownItAttrs/utils.d.ts +0 -25
  113. package/es/components/markdown/src/plugins/markdownItAttrs/utils.js +0 -62
  114. package/es/components/markdown/src/plugins/markdownItAttrs/utils.js.map +0 -1
  115. package/es-custom/components/markdown/src/plugins/markdownItAttrs/core.d.ts +0 -26
  116. package/es-custom/components/markdown/src/plugins/markdownItAttrs/core.js +0 -330
  117. package/es-custom/components/markdown/src/plugins/markdownItAttrs/core.js.map +0 -1
  118. package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.d.ts +0 -6
  119. package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.js +0 -63
  120. package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.js.map +0 -1
  121. package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/code.d.ts +0 -6
  122. package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/code.js +0 -43
  123. package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/code.js.map +0 -1
  124. package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/index.d.ts +0 -5
  125. package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/index.js +0 -55
  126. package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/index.js.map +0 -1
  127. package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/inline.d.ts +0 -19
  128. package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/inline.js +0 -210
  129. package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/inline.js.map +0 -1
  130. package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/lists.d.ts +0 -13
  131. package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/lists.js +0 -156
  132. package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/lists.js.map +0 -1
  133. package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/tables.d.ts +0 -13
  134. package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/tables.js +0 -216
  135. package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/tables.js.map +0 -1
  136. package/es-custom/components/markdown/src/plugins/markdownItAttrs/types.d.ts +0 -34
  137. package/es-custom/components/markdown/src/plugins/markdownItAttrs/types.js +0 -8
  138. package/es-custom/components/markdown/src/plugins/markdownItAttrs/types.js.map +0 -1
  139. package/es-custom/components/markdown/src/plugins/markdownItAttrs/utils.d.ts +0 -25
  140. package/es-custom/components/markdown/src/plugins/markdownItAttrs/utils.js +0 -62
  141. package/es-custom/components/markdown/src/plugins/markdownItAttrs/utils.js.map +0 -1
@@ -106,6 +106,34 @@
106
106
  }
107
107
  ]
108
108
  },
109
+ {
110
+ "kind": "javascript-module",
111
+ "path": "src/react/carousel.ts",
112
+ "declarations": [
113
+ {
114
+ "kind": "variable",
115
+ "name": "Carousel"
116
+ }
117
+ ],
118
+ "exports": [
119
+ {
120
+ "kind": "js",
121
+ "name": "Carousel",
122
+ "declaration": {
123
+ "name": "Carousel",
124
+ "module": "src/react/carousel.ts"
125
+ }
126
+ },
127
+ {
128
+ "kind": "js",
129
+ "name": "default",
130
+ "declaration": {
131
+ "name": "Carousel",
132
+ "module": "src/react/carousel.ts"
133
+ }
134
+ }
135
+ ]
136
+ },
109
137
  {
110
138
  "kind": "javascript-module",
111
139
  "path": "src/react/chain-of-thought-step.ts",
@@ -1277,6 +1305,32 @@
1277
1305
  }
1278
1306
  ],
1279
1307
  "description": "Retrieves the first and last focusable children of a node using a TreeWalker."
1308
+ },
1309
+ {
1310
+ "kind": "function",
1311
+ "name": "focusElementAfterRepaint",
1312
+ "return": {
1313
+ "type": {
1314
+ "text": "void"
1315
+ }
1316
+ },
1317
+ "parameters": [
1318
+ {
1319
+ "name": "searchRoot",
1320
+ "type": {
1321
+ "text": "Document | Element | ShadowRoot | DocumentFragment"
1322
+ },
1323
+ "description": "Root to query (`Element`, `ShadowRoot`, `Document`, or `DocumentFragment`, e.g. Lit `renderRoot`)"
1324
+ },
1325
+ {
1326
+ "name": "selector",
1327
+ "type": {
1328
+ "text": "string"
1329
+ },
1330
+ "description": "CSS selector that resolves to the node to focus."
1331
+ }
1332
+ ],
1333
+ "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."
1280
1334
  }
1281
1335
  ],
1282
1336
  "exports": [
@@ -1327,6 +1381,14 @@
1327
1381
  "name": "getFirstAndLastFocusableChildren",
1328
1382
  "module": "src/globals/utils/focus-utils.ts"
1329
1383
  }
1384
+ },
1385
+ {
1386
+ "kind": "js",
1387
+ "name": "focusElementAfterRepaint",
1388
+ "declaration": {
1389
+ "name": "focusElementAfterRepaint",
1390
+ "module": "src/globals/utils/focus-utils.ts"
1391
+ }
1330
1392
  }
1331
1393
  ]
1332
1394
  },
@@ -1356,6 +1418,12 @@
1356
1418
  }
1357
1419
  ]
1358
1420
  },
1421
+ {
1422
+ "kind": "javascript-module",
1423
+ "path": "src/react/__tests__/jest.setup.ts",
1424
+ "declarations": [],
1425
+ "exports": []
1426
+ },
1359
1427
  {
1360
1428
  "kind": "javascript-module",
1361
1429
  "path": "src/react/history/history-content.ts",
@@ -1699,12 +1767,6 @@
1699
1767
  }
1700
1768
  ]
1701
1769
  },
1702
- {
1703
- "kind": "javascript-module",
1704
- "path": "src/react/__tests__/jest.setup.ts",
1705
- "declarations": [],
1706
- "exports": []
1707
- },
1708
1770
  {
1709
1771
  "kind": "javascript-module",
1710
1772
  "path": "src/components/audio-player/src/audio-player.ts",
@@ -3755,10 +3817,35 @@
3755
3817
  "attribute": "delete-text",
3756
3818
  "reflects": true
3757
3819
  },
3820
+ {
3821
+ "kind": "field",
3822
+ "name": "itemId",
3823
+ "type": {
3824
+ "text": "string"
3825
+ },
3826
+ "default": "\"\"",
3827
+ "description": "Id of the chat item being deleted.",
3828
+ "attribute": "item-id",
3829
+ "reflects": true
3830
+ },
3758
3831
  {
3759
3832
  "kind": "field",
3760
3833
  "name": "_deleteButton"
3761
3834
  },
3835
+ {
3836
+ "kind": "method",
3837
+ "name": "_getFocusDetailForDeletedItem",
3838
+ "privacy": "private",
3839
+ "parameters": [
3840
+ {
3841
+ "name": "itemId",
3842
+ "type": {
3843
+ "text": "string"
3844
+ }
3845
+ }
3846
+ ],
3847
+ "description": "Finds the next chat item id after deleting `itemId`, and whether the removed chat item was * selected / active.\n\nCall before updating data so the DOM still reflects the chat item being removed."
3848
+ },
3762
3849
  {
3763
3850
  "kind": "field",
3764
3851
  "name": "_handleCancelClick",
@@ -3786,6 +3873,15 @@
3786
3873
  },
3787
3874
  "default": "\"Delete\"",
3788
3875
  "fieldName": "deleteText"
3876
+ },
3877
+ {
3878
+ "name": "item-id",
3879
+ "type": {
3880
+ "text": "string"
3881
+ },
3882
+ "default": "\"\"",
3883
+ "description": "Id of the chat item being deleted.",
3884
+ "fieldName": "itemId"
3789
3885
  }
3790
3886
  ],
3791
3887
  "superclass": {
@@ -4313,7 +4409,8 @@
4313
4409
  "kind": "field",
4314
4410
  "name": "id",
4315
4411
  "description": "id of chat history item element",
4316
- "attribute": "id"
4412
+ "attribute": "id",
4413
+ "reflects": true
4317
4414
  },
4318
4415
  {
4319
4416
  "kind": "field",
@@ -4795,7 +4892,14 @@
4795
4892
  "name": "content"
4796
4893
  }
4797
4894
  ],
4798
- "members": [],
4895
+ "members": [
4896
+ {
4897
+ "kind": "field",
4898
+ "name": "_handleHistoryDeleteConfirm",
4899
+ "privacy": "private",
4900
+ "description": "After the app removes the deleted row, move focus to the next row and optionally fire `history-item-selected`\nwhen the deleted row was selected (detail from `cds-aichat-history-delete-panel` with `item-id` set)."
4901
+ }
4902
+ ],
4799
4903
  "superclass": {
4800
4904
  "name": "LitElement",
4801
4905
  "package": "lit"
@@ -14886,6 +14990,14 @@
14886
14990
  "module": "./editor-manager.js"
14887
14991
  }
14888
14992
  },
14993
+ {
14994
+ "kind": "js",
14995
+ "name": "createDiffDecorator",
14996
+ "declaration": {
14997
+ "name": "createDiffDecorator",
14998
+ "module": "./diff-decorator.js"
14999
+ }
15000
+ },
14889
15001
  {
14890
15002
  "kind": "js",
14891
15003
  "name": "EditorView",
@@ -14937,6 +15049,32 @@
14937
15049
  }
14938
15050
  ]
14939
15051
  },
15052
+ {
15053
+ "kind": "javascript-module",
15054
+ "path": "src/components/code-snippet/src/codemirror/diff-decorator.ts",
15055
+ "declarations": [
15056
+ {
15057
+ "kind": "function",
15058
+ "name": "createDiffDecorator",
15059
+ "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 '@@'.",
15060
+ "return": {
15061
+ "type": {
15062
+ "text": ""
15063
+ }
15064
+ }
15065
+ }
15066
+ ],
15067
+ "exports": [
15068
+ {
15069
+ "kind": "js",
15070
+ "name": "createDiffDecorator",
15071
+ "declaration": {
15072
+ "name": "createDiffDecorator",
15073
+ "module": "src/components/code-snippet/src/codemirror/diff-decorator.ts"
15074
+ }
15075
+ }
15076
+ ]
15077
+ },
14940
15078
  {
14941
15079
  "kind": "javascript-module",
14942
15080
  "path": "src/components/code-snippet/src/codemirror/editor-manager.ts",
@@ -14951,7 +15089,7 @@
14951
15089
  },
14952
15090
  "parameters": [
14953
15091
  {
14954
- "name": "{\n container,\n doc,\n languageSupport,\n languageCompartment,\n readOnlyCompartment,\n wrapCompartment,\n contentAttributesCompartment,\n editable,\n disabled,\n ariaLabel,\n onDocChanged,\n setupOptions,\n}",
15092
+ "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}",
14955
15093
  "type": {
14956
15094
  "text": "EditorCreationOptions"
14957
15095
  }
@@ -15431,16 +15569,9 @@
15431
15569
  "type": {
15432
15570
  "text": "MarkdownIt"
15433
15571
  }
15434
- },
15435
- {
15436
- "name": "options_",
15437
- "optional": true,
15438
- "type": {
15439
- "text": "MarkdownItAttrsOptions"
15440
- }
15441
15572
  }
15442
15573
  ],
15443
- "description": "Markdown-it plugin that adds support for applying attributes to markdown elements using curly brace syntax."
15574
+ "description": "Markdown-it plugin that applies a fixed set of HTML attributes to links,\nheadings, and paragraphs using `{{key=value}}` syntax."
15444
15575
  }
15445
15576
  ],
15446
15577
  "exports": [
@@ -17974,764 +18105,6 @@
17974
18105
  }
17975
18106
  }
17976
18107
  ]
17977
- },
17978
- {
17979
- "kind": "javascript-module",
17980
- "path": "src/components/markdown/src/plugins/markdownItAttrs/core.ts",
17981
- "declarations": [
17982
- {
17983
- "kind": "function",
17984
- "name": "getAttrs",
17985
- "return": {
17986
- "type": {
17987
- "text": "AttributePair[]"
17988
- }
17989
- },
17990
- "parameters": [
17991
- {
17992
- "name": "str",
17993
- "type": {
17994
- "text": "string"
17995
- }
17996
- },
17997
- {
17998
- "name": "start",
17999
- "type": {
18000
- "text": "number"
18001
- }
18002
- },
18003
- {
18004
- "name": "options",
18005
- "type": {
18006
- "text": "Required<MarkdownItAttrsOptions>"
18007
- }
18008
- }
18009
- ],
18010
- "description": "Parses attribute strings in the format {.class #id key=val} and returns an array of attribute key-value pairs."
18011
- },
18012
- {
18013
- "kind": "function",
18014
- "name": "addAttrs",
18015
- "return": {
18016
- "type": {
18017
- "text": "Token"
18018
- }
18019
- },
18020
- "parameters": [
18021
- {
18022
- "name": "attrs",
18023
- "type": {
18024
- "text": "AttributePair[]"
18025
- }
18026
- },
18027
- {
18028
- "name": "token",
18029
- "type": {
18030
- "text": "Token"
18031
- }
18032
- }
18033
- ],
18034
- "description": "Applies an array of attribute pairs to a token, handling special cases for class and css-module attributes."
18035
- },
18036
- {
18037
- "kind": "function",
18038
- "name": "hasDelimiters",
18039
- "return": {
18040
- "type": {
18041
- "text": "DetectingStrRule"
18042
- }
18043
- },
18044
- "parameters": [
18045
- {
18046
- "name": "where",
18047
- "type": {
18048
- "text": "\"start\" | \"end\" | \"only\""
18049
- }
18050
- },
18051
- {
18052
- "name": "options",
18053
- "type": {
18054
- "text": "Required<MarkdownItAttrsOptions>"
18055
- }
18056
- }
18057
- ],
18058
- "description": "Creates a function that tests whether a string contains attribute delimiters at a specified position (start, end, or only)."
18059
- },
18060
- {
18061
- "kind": "function",
18062
- "name": "removeDelimiter",
18063
- "return": {
18064
- "type": {
18065
- "text": "string"
18066
- }
18067
- },
18068
- "parameters": [
18069
- {
18070
- "name": "str",
18071
- "type": {
18072
- "text": "string"
18073
- }
18074
- },
18075
- {
18076
- "name": "options",
18077
- "type": {
18078
- "text": "Required<MarkdownItAttrsOptions>"
18079
- }
18080
- }
18081
- ],
18082
- "description": "Removes attribute delimiters and their contents from the end of a string."
18083
- },
18084
- {
18085
- "kind": "function",
18086
- "name": "getMatchingOpeningToken",
18087
- "return": {
18088
- "type": {
18089
- "text": "Token | false"
18090
- }
18091
- },
18092
- "parameters": [
18093
- {
18094
- "name": "tokens",
18095
- "type": {
18096
- "text": "Token[]"
18097
- }
18098
- },
18099
- {
18100
- "name": "closingTokenIndex",
18101
- "type": {
18102
- "text": "number"
18103
- }
18104
- }
18105
- ],
18106
- "description": "Finds the matching opening token for a given closing token by searching backwards through the token array."
18107
- },
18108
- {
18109
- "kind": "function",
18110
- "name": "test",
18111
- "return": {
18112
- "type": {
18113
- "text": "MatchedResult"
18114
- }
18115
- },
18116
- "parameters": [
18117
- {
18118
- "name": "tokens",
18119
- "type": {
18120
- "text": "Token[]"
18121
- }
18122
- },
18123
- {
18124
- "name": "baseIndex",
18125
- "type": {
18126
- "text": "number"
18127
- }
18128
- },
18129
- {
18130
- "name": "rule",
18131
- "type": {
18132
- "text": "DetectingRule"
18133
- }
18134
- }
18135
- ],
18136
- "description": "Tests whether a token at a given index matches a detecting rule, recursively checking nested rules."
18137
- }
18138
- ],
18139
- "exports": [
18140
- {
18141
- "kind": "js",
18142
- "name": "getAttrs",
18143
- "declaration": {
18144
- "name": "getAttrs",
18145
- "module": "src/components/markdown/src/plugins/markdownItAttrs/core.ts"
18146
- }
18147
- },
18148
- {
18149
- "kind": "js",
18150
- "name": "addAttrs",
18151
- "declaration": {
18152
- "name": "addAttrs",
18153
- "module": "src/components/markdown/src/plugins/markdownItAttrs/core.ts"
18154
- }
18155
- },
18156
- {
18157
- "kind": "js",
18158
- "name": "hasDelimiters",
18159
- "declaration": {
18160
- "name": "hasDelimiters",
18161
- "module": "src/components/markdown/src/plugins/markdownItAttrs/core.ts"
18162
- }
18163
- },
18164
- {
18165
- "kind": "js",
18166
- "name": "removeDelimiter",
18167
- "declaration": {
18168
- "name": "removeDelimiter",
18169
- "module": "src/components/markdown/src/plugins/markdownItAttrs/core.ts"
18170
- }
18171
- },
18172
- {
18173
- "kind": "js",
18174
- "name": "getMatchingOpeningToken",
18175
- "declaration": {
18176
- "name": "getMatchingOpeningToken",
18177
- "module": "src/components/markdown/src/plugins/markdownItAttrs/core.ts"
18178
- }
18179
- },
18180
- {
18181
- "kind": "js",
18182
- "name": "test",
18183
- "declaration": {
18184
- "name": "test",
18185
- "module": "src/components/markdown/src/plugins/markdownItAttrs/core.ts"
18186
- }
18187
- }
18188
- ]
18189
- },
18190
- {
18191
- "kind": "javascript-module",
18192
- "path": "src/components/markdown/src/plugins/markdownItAttrs/types.ts",
18193
- "declarations": [],
18194
- "exports": []
18195
- },
18196
- {
18197
- "kind": "javascript-module",
18198
- "path": "src/components/markdown/src/plugins/markdownItAttrs/utils.ts",
18199
- "declarations": [
18200
- {
18201
- "kind": "function",
18202
- "name": "escapeRegExp",
18203
- "return": {
18204
- "type": {
18205
- "text": "string"
18206
- }
18207
- },
18208
- "parameters": [
18209
- {
18210
- "name": "s",
18211
- "type": {
18212
- "text": "string"
18213
- }
18214
- }
18215
- ],
18216
- "description": "Escapes special regex characters in a string for use in regular expressions."
18217
- },
18218
- {
18219
- "kind": "function",
18220
- "name": "get",
18221
- "return": {
18222
- "type": {
18223
- "text": "T | undefined"
18224
- }
18225
- },
18226
- "parameters": [
18227
- {
18228
- "name": "arr",
18229
- "type": {
18230
- "text": "T[]"
18231
- }
18232
- },
18233
- {
18234
- "name": "n",
18235
- "type": {
18236
- "text": "number"
18237
- }
18238
- }
18239
- ],
18240
- "description": "Gets an element from an array, supporting negative indices for accessing from the end."
18241
- },
18242
- {
18243
- "kind": "function",
18244
- "name": "last",
18245
- "return": {
18246
- "type": {
18247
- "text": "T"
18248
- }
18249
- },
18250
- "parameters": [
18251
- {
18252
- "name": "arr",
18253
- "type": {
18254
- "text": "T[]"
18255
- }
18256
- }
18257
- ],
18258
- "description": "Returns the last element of an array, or an empty object if the array is empty."
18259
- },
18260
- {
18261
- "kind": "function",
18262
- "name": "isArrayOfObjects",
18263
- "return": {
18264
- "type": {
18265
- "text": "arr is Record<string, unknown>[]"
18266
- }
18267
- },
18268
- "parameters": [
18269
- {
18270
- "name": "arr",
18271
- "type": {
18272
- "text": "unknown"
18273
- }
18274
- }
18275
- ],
18276
- "description": "Type guard to check if a value is a non-empty array of objects."
18277
- },
18278
- {
18279
- "kind": "function",
18280
- "name": "isArrayOfFunctions",
18281
- "return": {
18282
- "type": {
18283
- "text": "arr is ((arg: unknown) => boolean)[]"
18284
- }
18285
- },
18286
- "parameters": [
18287
- {
18288
- "name": "arr",
18289
- "type": {
18290
- "text": "unknown"
18291
- }
18292
- }
18293
- ],
18294
- "description": "Type guard to check if a value is a non-empty array of functions."
18295
- },
18296
- {
18297
- "kind": "function",
18298
- "name": "hidden",
18299
- "return": {
18300
- "type": {
18301
- "text": "void"
18302
- }
18303
- },
18304
- "parameters": [
18305
- {
18306
- "name": "token",
18307
- "type": {
18308
- "text": "Token"
18309
- }
18310
- }
18311
- ],
18312
- "description": "Recursively hides a token and all its children by setting their hidden flag and clearing content."
18313
- }
18314
- ],
18315
- "exports": [
18316
- {
18317
- "kind": "js",
18318
- "name": "escapeRegExp",
18319
- "declaration": {
18320
- "name": "escapeRegExp",
18321
- "module": "src/components/markdown/src/plugins/markdownItAttrs/utils.ts"
18322
- }
18323
- },
18324
- {
18325
- "kind": "js",
18326
- "name": "get",
18327
- "declaration": {
18328
- "name": "get",
18329
- "module": "src/components/markdown/src/plugins/markdownItAttrs/utils.ts"
18330
- }
18331
- },
18332
- {
18333
- "kind": "js",
18334
- "name": "last",
18335
- "declaration": {
18336
- "name": "last",
18337
- "module": "src/components/markdown/src/plugins/markdownItAttrs/utils.ts"
18338
- }
18339
- },
18340
- {
18341
- "kind": "js",
18342
- "name": "isArrayOfObjects",
18343
- "declaration": {
18344
- "name": "isArrayOfObjects",
18345
- "module": "src/components/markdown/src/plugins/markdownItAttrs/utils.ts"
18346
- }
18347
- },
18348
- {
18349
- "kind": "js",
18350
- "name": "isArrayOfFunctions",
18351
- "declaration": {
18352
- "name": "isArrayOfFunctions",
18353
- "module": "src/components/markdown/src/plugins/markdownItAttrs/utils.ts"
18354
- }
18355
- },
18356
- {
18357
- "kind": "js",
18358
- "name": "hidden",
18359
- "declaration": {
18360
- "name": "hidden",
18361
- "module": "src/components/markdown/src/plugins/markdownItAttrs/utils.ts"
18362
- }
18363
- }
18364
- ]
18365
- },
18366
- {
18367
- "kind": "javascript-module",
18368
- "path": "src/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.ts",
18369
- "declarations": [
18370
- {
18371
- "kind": "function",
18372
- "name": "createHorizontalRulePattern",
18373
- "return": {
18374
- "type": {
18375
- "text": "CurlyAttrsPattern"
18376
- }
18377
- },
18378
- "parameters": [
18379
- {
18380
- "name": "options",
18381
- "type": {
18382
- "text": "Required<MarkdownItAttrsOptions>"
18383
- }
18384
- }
18385
- ],
18386
- "description": "Pattern for horizontal rules with attributes.\nExample: --- {.class}"
18387
- }
18388
- ],
18389
- "exports": [
18390
- {
18391
- "kind": "js",
18392
- "name": "createHorizontalRulePattern",
18393
- "declaration": {
18394
- "name": "createHorizontalRulePattern",
18395
- "module": "src/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.ts"
18396
- }
18397
- }
18398
- ]
18399
- },
18400
- {
18401
- "kind": "javascript-module",
18402
- "path": "src/components/markdown/src/plugins/markdownItAttrs/patterns/code.ts",
18403
- "declarations": [
18404
- {
18405
- "kind": "function",
18406
- "name": "createFencedCodeBlockPattern",
18407
- "return": {
18408
- "type": {
18409
- "text": "CurlyAttrsPattern"
18410
- }
18411
- },
18412
- "parameters": [
18413
- {
18414
- "name": "options",
18415
- "type": {
18416
- "text": "Required<MarkdownItAttrsOptions>"
18417
- }
18418
- }
18419
- ],
18420
- "description": "Pattern for fenced code blocks with attributes.\nExample: ```js {.highlight}"
18421
- }
18422
- ],
18423
- "exports": [
18424
- {
18425
- "kind": "js",
18426
- "name": "createFencedCodeBlockPattern",
18427
- "declaration": {
18428
- "name": "createFencedCodeBlockPattern",
18429
- "module": "src/components/markdown/src/plugins/markdownItAttrs/patterns/code.ts"
18430
- }
18431
- }
18432
- ]
18433
- },
18434
- {
18435
- "kind": "javascript-module",
18436
- "path": "src/components/markdown/src/plugins/markdownItAttrs/patterns/index.ts",
18437
- "declarations": [
18438
- {
18439
- "kind": "function",
18440
- "name": "createPatterns",
18441
- "return": {
18442
- "type": {
18443
- "text": "CurlyAttrsPattern[]"
18444
- }
18445
- },
18446
- "parameters": [
18447
- {
18448
- "name": "options",
18449
- "type": {
18450
- "text": "Required<MarkdownItAttrsOptions>"
18451
- }
18452
- }
18453
- ],
18454
- "description": "Creates an array of patterns used to detect and transform markdown tokens with attribute syntax."
18455
- }
18456
- ],
18457
- "exports": [
18458
- {
18459
- "kind": "js",
18460
- "name": "createPatterns",
18461
- "declaration": {
18462
- "name": "createPatterns",
18463
- "module": "src/components/markdown/src/plugins/markdownItAttrs/patterns/index.ts"
18464
- }
18465
- }
18466
- ]
18467
- },
18468
- {
18469
- "kind": "javascript-module",
18470
- "path": "src/components/markdown/src/plugins/markdownItAttrs/patterns/inline.ts",
18471
- "declarations": [
18472
- {
18473
- "kind": "function",
18474
- "name": "createInlineNesting0Pattern",
18475
- "return": {
18476
- "type": {
18477
- "text": "CurlyAttrsPattern"
18478
- }
18479
- },
18480
- "parameters": [
18481
- {
18482
- "name": "options",
18483
- "type": {
18484
- "text": "Required<MarkdownItAttrsOptions>"
18485
- }
18486
- }
18487
- ],
18488
- "description": "Pattern for inline elements with nesting level 0 (images, inline code).\nExample: ![alt](img.jpg){.class} or `code`{.class}"
18489
- },
18490
- {
18491
- "kind": "function",
18492
- "name": "createInlineAttributesPattern",
18493
- "return": {
18494
- "type": {
18495
- "text": "CurlyAttrsPattern"
18496
- }
18497
- },
18498
- "parameters": [
18499
- {
18500
- "name": "options",
18501
- "type": {
18502
- "text": "Required<MarkdownItAttrsOptions>"
18503
- }
18504
- }
18505
- ],
18506
- "description": "Pattern for inline attributes on emphasized/strong text.\nExample: **bold**{.class}"
18507
- },
18508
- {
18509
- "kind": "function",
18510
- "name": "createSoftbreakCurlyPattern",
18511
- "return": {
18512
- "type": {
18513
- "text": "CurlyAttrsPattern"
18514
- }
18515
- },
18516
- "parameters": [
18517
- {
18518
- "name": "options",
18519
- "type": {
18520
- "text": "Required<MarkdownItAttrsOptions>"
18521
- }
18522
- }
18523
- ],
18524
- "description": "Pattern for softbreak followed by attributes at start of line."
18525
- },
18526
- {
18527
- "kind": "function",
18528
- "name": "createEndOfBlockPattern",
18529
- "return": {
18530
- "type": {
18531
- "text": "CurlyAttrsPattern"
18532
- }
18533
- },
18534
- "parameters": [
18535
- {
18536
- "name": "options",
18537
- "type": {
18538
- "text": "Required<MarkdownItAttrsOptions>"
18539
- }
18540
- }
18541
- ],
18542
- "description": "Pattern for attributes at the end of a block."
18543
- }
18544
- ],
18545
- "exports": [
18546
- {
18547
- "kind": "js",
18548
- "name": "createInlineNesting0Pattern",
18549
- "declaration": {
18550
- "name": "createInlineNesting0Pattern",
18551
- "module": "src/components/markdown/src/plugins/markdownItAttrs/patterns/inline.ts"
18552
- }
18553
- },
18554
- {
18555
- "kind": "js",
18556
- "name": "createInlineAttributesPattern",
18557
- "declaration": {
18558
- "name": "createInlineAttributesPattern",
18559
- "module": "src/components/markdown/src/plugins/markdownItAttrs/patterns/inline.ts"
18560
- }
18561
- },
18562
- {
18563
- "kind": "js",
18564
- "name": "createSoftbreakCurlyPattern",
18565
- "declaration": {
18566
- "name": "createSoftbreakCurlyPattern",
18567
- "module": "src/components/markdown/src/plugins/markdownItAttrs/patterns/inline.ts"
18568
- }
18569
- },
18570
- {
18571
- "kind": "js",
18572
- "name": "createEndOfBlockPattern",
18573
- "declaration": {
18574
- "name": "createEndOfBlockPattern",
18575
- "module": "src/components/markdown/src/plugins/markdownItAttrs/patterns/inline.ts"
18576
- }
18577
- }
18578
- ]
18579
- },
18580
- {
18581
- "kind": "javascript-module",
18582
- "path": "src/components/markdown/src/plugins/markdownItAttrs/patterns/lists.ts",
18583
- "declarations": [
18584
- {
18585
- "kind": "function",
18586
- "name": "createListSoftbreakPattern",
18587
- "return": {
18588
- "type": {
18589
- "text": "CurlyAttrsPattern"
18590
- }
18591
- },
18592
- "parameters": [
18593
- {
18594
- "name": "options",
18595
- "type": {
18596
- "text": "Required<MarkdownItAttrsOptions>"
18597
- }
18598
- }
18599
- ],
18600
- "description": "Pattern for list items with attributes after softbreak."
18601
- },
18602
- {
18603
- "kind": "function",
18604
- "name": "createListDoubleSoftbreakPattern",
18605
- "return": {
18606
- "type": {
18607
- "text": "CurlyAttrsPattern"
18608
- }
18609
- },
18610
- "parameters": [
18611
- {
18612
- "name": "options",
18613
- "type": {
18614
- "text": "Required<MarkdownItAttrsOptions>"
18615
- }
18616
- }
18617
- ],
18618
- "description": "Pattern for lists with double softbreak before attributes."
18619
- },
18620
- {
18621
- "kind": "function",
18622
- "name": "createListItemEndPattern",
18623
- "return": {
18624
- "type": {
18625
- "text": "CurlyAttrsPattern"
18626
- }
18627
- },
18628
- "parameters": [
18629
- {
18630
- "name": "options",
18631
- "type": {
18632
- "text": "Required<MarkdownItAttrsOptions>"
18633
- }
18634
- }
18635
- ],
18636
- "description": "Pattern for list items with attributes at the end."
18637
- }
18638
- ],
18639
- "exports": [
18640
- {
18641
- "kind": "js",
18642
- "name": "createListSoftbreakPattern",
18643
- "declaration": {
18644
- "name": "createListSoftbreakPattern",
18645
- "module": "src/components/markdown/src/plugins/markdownItAttrs/patterns/lists.ts"
18646
- }
18647
- },
18648
- {
18649
- "kind": "js",
18650
- "name": "createListDoubleSoftbreakPattern",
18651
- "declaration": {
18652
- "name": "createListDoubleSoftbreakPattern",
18653
- "module": "src/components/markdown/src/plugins/markdownItAttrs/patterns/lists.ts"
18654
- }
18655
- },
18656
- {
18657
- "kind": "js",
18658
- "name": "createListItemEndPattern",
18659
- "declaration": {
18660
- "name": "createListItemEndPattern",
18661
- "module": "src/components/markdown/src/plugins/markdownItAttrs/patterns/lists.ts"
18662
- }
18663
- }
18664
- ]
18665
- },
18666
- {
18667
- "kind": "javascript-module",
18668
- "path": "src/components/markdown/src/plugins/markdownItAttrs/patterns/tables.ts",
18669
- "declarations": [
18670
- {
18671
- "kind": "function",
18672
- "name": "createTablePattern",
18673
- "return": {
18674
- "type": {
18675
- "text": "CurlyAttrsPattern"
18676
- }
18677
- },
18678
- "parameters": [
18679
- {
18680
- "name": "options",
18681
- "type": {
18682
- "text": "Required<MarkdownItAttrsOptions>"
18683
- }
18684
- }
18685
- ],
18686
- "description": "Pattern for table attributes."
18687
- },
18688
- {
18689
- "kind": "function",
18690
- "name": "createTableTheadMetadataPattern",
18691
- "return": {
18692
- "type": {
18693
- "text": "CurlyAttrsPattern"
18694
- }
18695
- },
18696
- "description": "Pattern for table header metadata calculation (used for colspan/rowspan)."
18697
- },
18698
- {
18699
- "kind": "function",
18700
- "name": "createTableTbodyCalculatePattern",
18701
- "return": {
18702
- "type": {
18703
- "text": "CurlyAttrsPattern"
18704
- }
18705
- },
18706
- "description": "Pattern for table body calculation for handling colspan/rowspan."
18707
- }
18708
- ],
18709
- "exports": [
18710
- {
18711
- "kind": "js",
18712
- "name": "createTablePattern",
18713
- "declaration": {
18714
- "name": "createTablePattern",
18715
- "module": "src/components/markdown/src/plugins/markdownItAttrs/patterns/tables.ts"
18716
- }
18717
- },
18718
- {
18719
- "kind": "js",
18720
- "name": "createTableTheadMetadataPattern",
18721
- "declaration": {
18722
- "name": "createTableTheadMetadataPattern",
18723
- "module": "src/components/markdown/src/plugins/markdownItAttrs/patterns/tables.ts"
18724
- }
18725
- },
18726
- {
18727
- "kind": "js",
18728
- "name": "createTableTbodyCalculatePattern",
18729
- "declaration": {
18730
- "name": "createTableTbodyCalculatePattern",
18731
- "module": "src/components/markdown/src/plugins/markdownItAttrs/patterns/tables.ts"
18732
- }
18733
- }
18734
- ]
18735
18108
  }
18736
18109
  ]
18737
18110
  }