@carbon/ai-chat-components 1.13.0-rc.2 → 1.14.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.
Files changed (194) hide show
  1. package/custom-elements.json +733 -48
  2. package/es/components/audio-player/src/audio-player.scss.js +1 -1
  3. package/es/components/audio-player/src/transcript.js +15 -0
  4. package/es/components/audio-player/src/transcript.js.map +1 -1
  5. package/es/components/card/src/card-footer.scss.js +1 -1
  6. package/es/components/card/src/card-steps.scss.js +1 -1
  7. package/es/components/card/src/card.scss.js +1 -1
  8. package/es/components/chat-button/src/chat-button.scss.js +1 -1
  9. package/es/components/chat-history/src/chat-history.scss.js +1 -1
  10. package/es/components/chat-shell/src/shell.scss.js +1 -1
  11. package/es/components/code-snippet/src/code-snippet.d.ts +3 -2
  12. package/es/components/code-snippet/src/code-snippet.js +4 -3
  13. package/es/components/code-snippet/src/code-snippet.js.map +1 -1
  14. package/es/components/code-snippet/src/code-snippet.scss.js +1 -1
  15. package/es/components/feedback/src/feedback.js +17 -3
  16. package/es/components/feedback/src/feedback.js.map +1 -1
  17. package/es/components/file-uploads/src/file-upload-item.scss.js +1 -1
  18. package/es/components/file-uploads/src/file-uploads.scss.js +1 -1
  19. package/es/components/launcher/src/launcher.scss.js +1 -1
  20. package/es/components/markdown/__tests__/inline-selection-fixture.d.ts +13 -0
  21. package/es/components/markdown/index.d.ts +2 -0
  22. package/es/components/markdown/index.js +3 -0
  23. package/es/components/markdown/index.js.map +1 -1
  24. package/es/components/markdown/src/inline-markdown.d.ts +41 -0
  25. package/es/components/markdown/src/inline-markdown.js +92 -0
  26. package/es/components/markdown/src/inline-markdown.js.map +1 -0
  27. package/es/components/markdown/src/inline-markdown.scss.js +13 -0
  28. package/es/components/markdown/src/inline-markdown.scss.js.map +1 -0
  29. package/es/components/markdown/src/inline-run-projection.scss.js +13 -0
  30. package/es/components/markdown/src/inline-run-projection.scss.js.map +1 -0
  31. package/es/components/markdown/src/markdown-renderer.js +131 -25
  32. package/es/components/markdown/src/markdown-renderer.js.map +1 -1
  33. package/es/components/markdown/src/markdown.js +1 -0
  34. package/es/components/markdown/src/markdown.js.map +1 -1
  35. package/es/components/markdown/src/markdown.scss.js +1 -1
  36. package/es/components/markdown/src/utils/inline-run-projection.d.ts +15 -0
  37. package/es/components/markdown/src/utils/inline-run-projection.js +196 -0
  38. package/es/components/markdown/src/utils/inline-run-projection.js.map +1 -0
  39. package/es/components/markdown/src/utils/inline-validation.d.ts +13 -0
  40. package/es/components/markdown/src/utils/inline-validation.js +97 -0
  41. package/es/components/markdown/src/utils/inline-validation.js.map +1 -0
  42. package/es/components/markdown/src/utils/plugin-fallback.js +20 -13
  43. package/es/components/markdown/src/utils/plugin-fallback.js.map +1 -1
  44. package/es/components/markdown/src/utils/plugin-host-container.d.ts +5 -6
  45. package/es/components/markdown/src/utils/plugin-host-container.js.map +1 -1
  46. package/es/components/messages-shell/index.d.ts +11 -0
  47. package/es/components/messages-shell/index.js +9 -0
  48. package/es/components/messages-shell/index.js.map +1 -0
  49. package/es/components/messages-shell/src/messages-shell.d.ts +57 -0
  50. package/es/components/messages-shell/src/messages-shell.js +141 -0
  51. package/es/components/messages-shell/src/messages-shell.js.map +1 -0
  52. package/es/components/messages-shell/src/messages-shell.scss.js +13 -0
  53. package/es/components/messages-shell/src/messages-shell.scss.js.map +1 -0
  54. package/es/components/processing/src/processing.scss.js +1 -1
  55. package/es/components/prompt-line/autocomplete/src/autocomplete.d.ts +26 -9
  56. package/es/components/prompt-line/autocomplete/src/autocomplete.js +116 -107
  57. package/es/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -1
  58. package/es/components/prompt-line/autocomplete/src/autocomplete.scss.js +1 -1
  59. package/es/components/prompt-line/src/autocomplete-controller-element.js +13 -1
  60. package/es/components/prompt-line/src/autocomplete-controller-element.js.map +1 -1
  61. package/es/components/prompt-line/src/autocomplete-controller.js +9 -2
  62. package/es/components/prompt-line/src/autocomplete-controller.js.map +1 -1
  63. package/es/components/prompt-line/src/prompt-line-controller.d.ts +7 -0
  64. package/es/components/prompt-line/src/prompt-line-rich-runtime.js +17 -0
  65. package/es/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
  66. package/es/components/prompt-line/src/prompt-line-shell.scss.js +1 -1
  67. package/es/components/prompt-line/src/prompt-line-textarea-runtime.d.ts +1 -0
  68. package/es/components/prompt-line/src/prompt-line-textarea-runtime.js +3 -0
  69. package/es/components/prompt-line/src/prompt-line-textarea-runtime.js.map +1 -1
  70. package/es/components/prompt-line/src/prompt-line.d.ts +7 -0
  71. package/es/components/prompt-line/src/prompt-line.js +9 -0
  72. package/es/components/prompt-line/src/prompt-line.js.map +1 -1
  73. package/es/components/prompt-line/src/send-control.scss.js +1 -1
  74. package/es/components/prompt-line/src/stop-streaming-button.scss.js +1 -1
  75. package/es/components/prompt-line/src/tiptap/carbon-mention.js +43 -21
  76. package/es/components/prompt-line/src/tiptap/carbon-mention.js.map +1 -1
  77. package/es/components/prompt-line/src/tiptap/plain-text-paste.js +8 -3
  78. package/es/components/prompt-line/src/tiptap/plain-text-paste.js.map +1 -1
  79. package/es/components/prompt-line/src/tiptap/strip-presentation-fields.d.ts +3 -3
  80. package/es/components/prompt-line/src/tiptap/strip-presentation-fields.js.map +1 -1
  81. package/es/components/prompt-line/src/tiptap/types.d.ts +27 -11
  82. package/es/components/reasoning-steps/src/reasoning-step.d.ts +3 -3
  83. package/es/components/reasoning-steps/src/reasoning-step.js +4 -4
  84. package/es/components/reasoning-steps/src/reasoning-step.js.map +1 -1
  85. package/es/components/reasoning-steps/src/reasoning-step.scss.js +1 -1
  86. package/es/components/reasoning-steps/src/reasoning-steps-toggle.scss.js +1 -1
  87. package/es/components/reasoning-steps/src/reasoning-steps.d.ts +5 -4
  88. package/es/components/reasoning-steps/src/reasoning-steps.js +5 -4
  89. package/es/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
  90. package/es/components/truncated-text/src/truncated-text.scss.js +1 -1
  91. package/es/components/video-player/src/video-player.scss.js +1 -1
  92. package/es/react/hooks/useChatAutocomplete.js +7 -1
  93. package/es/react/hooks/useChatAutocomplete.js.map +1 -1
  94. package/es/react/messages-shell.d.ts +3 -0
  95. package/es/react/messages-shell.js +32 -0
  96. package/es/react/messages-shell.js.map +1 -0
  97. package/es-custom/components/audio-player/src/audio-player.scss.js +1 -1
  98. package/es-custom/components/audio-player/src/transcript.js +15 -0
  99. package/es-custom/components/audio-player/src/transcript.js.map +1 -1
  100. package/es-custom/components/card/src/card-footer.scss.js +1 -1
  101. package/es-custom/components/card/src/card-steps.scss.js +1 -1
  102. package/es-custom/components/card/src/card.scss.js +1 -1
  103. package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
  104. package/es-custom/components/chat-history/src/chat-history.scss.js +1 -1
  105. package/es-custom/components/chat-shell/src/shell.scss.js +1 -1
  106. package/es-custom/components/code-snippet/src/code-snippet.d.ts +3 -2
  107. package/es-custom/components/code-snippet/src/code-snippet.js +4 -3
  108. package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
  109. package/es-custom/components/code-snippet/src/code-snippet.scss.js +1 -1
  110. package/es-custom/components/feedback/src/feedback.js +17 -3
  111. package/es-custom/components/feedback/src/feedback.js.map +1 -1
  112. package/es-custom/components/file-uploads/src/file-upload-item.scss.js +1 -1
  113. package/es-custom/components/file-uploads/src/file-uploads.scss.js +1 -1
  114. package/es-custom/components/launcher/src/launcher.scss.js +1 -1
  115. package/es-custom/components/markdown/__tests__/inline-selection-fixture.d.ts +13 -0
  116. package/es-custom/components/markdown/index.d.ts +2 -0
  117. package/es-custom/components/markdown/index.js +3 -0
  118. package/es-custom/components/markdown/index.js.map +1 -1
  119. package/es-custom/components/markdown/src/inline-markdown.d.ts +41 -0
  120. package/es-custom/components/markdown/src/inline-markdown.js +92 -0
  121. package/es-custom/components/markdown/src/inline-markdown.js.map +1 -0
  122. package/es-custom/components/markdown/src/inline-markdown.scss.js +13 -0
  123. package/es-custom/components/markdown/src/inline-markdown.scss.js.map +1 -0
  124. package/es-custom/components/markdown/src/inline-run-projection.scss.js +13 -0
  125. package/es-custom/components/markdown/src/inline-run-projection.scss.js.map +1 -0
  126. package/es-custom/components/markdown/src/markdown-renderer.js +131 -25
  127. package/es-custom/components/markdown/src/markdown-renderer.js.map +1 -1
  128. package/es-custom/components/markdown/src/markdown.js +1 -0
  129. package/es-custom/components/markdown/src/markdown.js.map +1 -1
  130. package/es-custom/components/markdown/src/markdown.scss.js +1 -1
  131. package/es-custom/components/markdown/src/utils/inline-run-projection.d.ts +15 -0
  132. package/es-custom/components/markdown/src/utils/inline-run-projection.js +196 -0
  133. package/es-custom/components/markdown/src/utils/inline-run-projection.js.map +1 -0
  134. package/es-custom/components/markdown/src/utils/inline-validation.d.ts +13 -0
  135. package/es-custom/components/markdown/src/utils/inline-validation.js +97 -0
  136. package/es-custom/components/markdown/src/utils/inline-validation.js.map +1 -0
  137. package/es-custom/components/markdown/src/utils/plugin-fallback.js +20 -13
  138. package/es-custom/components/markdown/src/utils/plugin-fallback.js.map +1 -1
  139. package/es-custom/components/markdown/src/utils/plugin-host-container.d.ts +5 -6
  140. package/es-custom/components/markdown/src/utils/plugin-host-container.js.map +1 -1
  141. package/es-custom/components/messages-shell/index.d.ts +11 -0
  142. package/es-custom/components/messages-shell/index.js +9 -0
  143. package/es-custom/components/messages-shell/index.js.map +1 -0
  144. package/es-custom/components/messages-shell/src/messages-shell.d.ts +57 -0
  145. package/es-custom/components/messages-shell/src/messages-shell.js +141 -0
  146. package/es-custom/components/messages-shell/src/messages-shell.js.map +1 -0
  147. package/es-custom/components/messages-shell/src/messages-shell.scss.js +13 -0
  148. package/es-custom/components/messages-shell/src/messages-shell.scss.js.map +1 -0
  149. package/es-custom/components/processing/src/processing.scss.js +1 -1
  150. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.d.ts +26 -9
  151. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js +116 -107
  152. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -1
  153. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.scss.js +1 -1
  154. package/es-custom/components/prompt-line/src/autocomplete-controller-element.js +13 -1
  155. package/es-custom/components/prompt-line/src/autocomplete-controller-element.js.map +1 -1
  156. package/es-custom/components/prompt-line/src/autocomplete-controller.js +9 -2
  157. package/es-custom/components/prompt-line/src/autocomplete-controller.js.map +1 -1
  158. package/es-custom/components/prompt-line/src/prompt-line-controller.d.ts +7 -0
  159. package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js +17 -0
  160. package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
  161. package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js +1 -1
  162. package/es-custom/components/prompt-line/src/prompt-line-textarea-runtime.d.ts +1 -0
  163. package/es-custom/components/prompt-line/src/prompt-line-textarea-runtime.js +3 -0
  164. package/es-custom/components/prompt-line/src/prompt-line-textarea-runtime.js.map +1 -1
  165. package/es-custom/components/prompt-line/src/prompt-line.d.ts +7 -0
  166. package/es-custom/components/prompt-line/src/prompt-line.js +9 -0
  167. package/es-custom/components/prompt-line/src/prompt-line.js.map +1 -1
  168. package/es-custom/components/prompt-line/src/send-control.scss.js +1 -1
  169. package/es-custom/components/prompt-line/src/stop-streaming-button.scss.js +1 -1
  170. package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js +43 -21
  171. package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js.map +1 -1
  172. package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js +8 -3
  173. package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js.map +1 -1
  174. package/es-custom/components/prompt-line/src/tiptap/strip-presentation-fields.d.ts +3 -3
  175. package/es-custom/components/prompt-line/src/tiptap/strip-presentation-fields.js.map +1 -1
  176. package/es-custom/components/prompt-line/src/tiptap/types.d.ts +27 -11
  177. package/es-custom/components/reasoning-steps/src/reasoning-step.d.ts +3 -3
  178. package/es-custom/components/reasoning-steps/src/reasoning-step.js +4 -4
  179. package/es-custom/components/reasoning-steps/src/reasoning-step.js.map +1 -1
  180. package/es-custom/components/reasoning-steps/src/reasoning-step.scss.js +1 -1
  181. package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.scss.js +1 -1
  182. package/es-custom/components/reasoning-steps/src/reasoning-steps.d.ts +5 -4
  183. package/es-custom/components/reasoning-steps/src/reasoning-steps.js +5 -4
  184. package/es-custom/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
  185. package/es-custom/components/truncated-text/src/truncated-text.scss.js +1 -1
  186. package/es-custom/components/video-player/src/video-player.scss.js +1 -1
  187. package/es-custom/react/hooks/useChatAutocomplete.js +7 -1
  188. package/es-custom/react/hooks/useChatAutocomplete.js.map +1 -1
  189. package/es-custom/react/messages-shell.d.ts +3 -0
  190. package/es-custom/react/messages-shell.js +32 -0
  191. package/es-custom/react/messages-shell.js.map +1 -0
  192. package/package.json +4 -4
  193. package/scss/_markdown-inline.scss +138 -0
  194. package/telemetry.yml +4 -0
@@ -558,6 +558,26 @@
558
558
  }
559
559
  ]
560
560
  },
561
+ {
562
+ "kind": "javascript-module",
563
+ "path": "src/react/messages-shell.ts",
564
+ "declarations": [
565
+ {
566
+ "kind": "variable",
567
+ "name": "MessagesShell"
568
+ }
569
+ ],
570
+ "exports": [
571
+ {
572
+ "kind": "js",
573
+ "name": "default",
574
+ "declaration": {
575
+ "name": "MessagesShell",
576
+ "module": "src/react/messages-shell.ts"
577
+ }
578
+ }
579
+ ]
580
+ },
561
581
  {
562
582
  "kind": "javascript-module",
563
583
  "path": "src/react/panel.ts",
@@ -1407,6 +1427,61 @@
1407
1427
  "name": "markdownToMarkdownItTokens",
1408
1428
  "module": "./src/markdown-token-tree.js"
1409
1429
  }
1430
+ },
1431
+ {
1432
+ "kind": "js",
1433
+ "name": "renderInlineMarkdown",
1434
+ "declaration": {
1435
+ "name": "renderInlineMarkdown",
1436
+ "module": "./src/inline-markdown.js"
1437
+ }
1438
+ },
1439
+ {
1440
+ "kind": "js",
1441
+ "name": "InlineMarkdownError",
1442
+ "declaration": {
1443
+ "name": "InlineMarkdownError",
1444
+ "module": "./src/inline-markdown.js"
1445
+ }
1446
+ },
1447
+ {
1448
+ "kind": "js",
1449
+ "name": "inlineMarkdownStyles",
1450
+ "declaration": {
1451
+ "name": "inlineMarkdownStyles",
1452
+ "module": "./src/inline-markdown.js"
1453
+ }
1454
+ },
1455
+ {
1456
+ "kind": "js",
1457
+ "name": "InlineMarkdownOptions",
1458
+ "declaration": {
1459
+ "name": "InlineMarkdownOptions",
1460
+ "module": "./src/inline-markdown.js"
1461
+ }
1462
+ }
1463
+ ]
1464
+ },
1465
+ {
1466
+ "kind": "javascript-module",
1467
+ "path": "src/components/messages-shell/index.ts",
1468
+ "declarations": [],
1469
+ "exports": [
1470
+ {
1471
+ "kind": "js",
1472
+ "name": "CDSAIChatMessagesShell",
1473
+ "declaration": {
1474
+ "name": "default",
1475
+ "module": "./src/messages-shell.js"
1476
+ }
1477
+ },
1478
+ {
1479
+ "kind": "js",
1480
+ "name": "MessagesShellScrollDetail",
1481
+ "declaration": {
1482
+ "name": "MessagesShellScrollDetail",
1483
+ "module": "./src/messages-shell.js"
1484
+ }
1410
1485
  }
1411
1486
  ]
1412
1487
  },
@@ -10655,7 +10730,7 @@
10655
10730
  "kind": "method",
10656
10731
  "name": "emitRenderSettled",
10657
10732
  "privacy": "private",
10658
- "description": "Announces that this snippet's async render (CodeMirror init and/or font load) has\nsettled, so a host scroll manager can recalculate scroll geometry against the final\nheight. Composed + bubbling so it crosses the shadow boundary up to the message list."
10733
+ "description": "Announces that this snippet's async render (CodeMirror init and/or font load) has\nsettled, so host listeners can recalculate layout against the final height. The event is\npublic; the message list's scroll controller no longer listens to it. Composed + bubbling\nso it crosses the shadow boundary."
10659
10734
  },
10660
10735
  {
10661
10736
  "kind": "method",
@@ -13080,6 +13155,234 @@
13080
13155
  }
13081
13156
  ]
13082
13157
  },
13158
+ {
13159
+ "kind": "javascript-module",
13160
+ "path": "src/components/markdown/__tests__/inline-selection-fixture.ts",
13161
+ "declarations": [
13162
+ {
13163
+ "kind": "function",
13164
+ "name": "wordPlugin",
13165
+ "parameters": [
13166
+ {
13167
+ "name": "md",
13168
+ "type": {
13169
+ "text": "MarkdownIt"
13170
+ }
13171
+ }
13172
+ ]
13173
+ },
13174
+ {
13175
+ "kind": "function",
13176
+ "name": "selectionFixture",
13177
+ "parameters": [
13178
+ {
13179
+ "name": "depth",
13180
+ "type": {
13181
+ "text": "number"
13182
+ }
13183
+ },
13184
+ {
13185
+ "name": "projected",
13186
+ "default": "false"
13187
+ }
13188
+ ]
13189
+ },
13190
+ {
13191
+ "kind": "function",
13192
+ "name": "point",
13193
+ "return": {
13194
+ "type": {
13195
+ "text": "[number, number]"
13196
+ }
13197
+ },
13198
+ "parameters": [
13199
+ {
13200
+ "name": "text",
13201
+ "type": {
13202
+ "text": "Text"
13203
+ }
13204
+ },
13205
+ {
13206
+ "name": "offset",
13207
+ "type": {
13208
+ "text": "number"
13209
+ }
13210
+ }
13211
+ ]
13212
+ },
13213
+ {
13214
+ "kind": "function",
13215
+ "name": "selectedText",
13216
+ "return": {
13217
+ "type": {
13218
+ "text": "string"
13219
+ }
13220
+ },
13221
+ "parameters": [
13222
+ {
13223
+ "name": "host",
13224
+ "type": {
13225
+ "text": "HTMLElement"
13226
+ }
13227
+ },
13228
+ {
13229
+ "name": "roots",
13230
+ "type": {
13231
+ "text": "ShadowRoot[]"
13232
+ }
13233
+ }
13234
+ ]
13235
+ },
13236
+ {
13237
+ "kind": "function",
13238
+ "name": "drag",
13239
+ "parameters": [
13240
+ {
13241
+ "name": "start",
13242
+ "type": {
13243
+ "text": "[number, number]"
13244
+ }
13245
+ },
13246
+ {
13247
+ "name": "end",
13248
+ "type": {
13249
+ "text": "[number, number]"
13250
+ }
13251
+ }
13252
+ ]
13253
+ }
13254
+ ],
13255
+ "exports": [
13256
+ {
13257
+ "kind": "js",
13258
+ "name": "wordPlugin",
13259
+ "declaration": {
13260
+ "name": "wordPlugin",
13261
+ "module": "src/components/markdown/__tests__/inline-selection-fixture.ts"
13262
+ }
13263
+ },
13264
+ {
13265
+ "kind": "js",
13266
+ "name": "selectionFixture",
13267
+ "declaration": {
13268
+ "name": "selectionFixture",
13269
+ "module": "src/components/markdown/__tests__/inline-selection-fixture.ts"
13270
+ }
13271
+ },
13272
+ {
13273
+ "kind": "js",
13274
+ "name": "point",
13275
+ "declaration": {
13276
+ "name": "point",
13277
+ "module": "src/components/markdown/__tests__/inline-selection-fixture.ts"
13278
+ }
13279
+ },
13280
+ {
13281
+ "kind": "js",
13282
+ "name": "selectedText",
13283
+ "declaration": {
13284
+ "name": "selectedText",
13285
+ "module": "src/components/markdown/__tests__/inline-selection-fixture.ts"
13286
+ }
13287
+ },
13288
+ {
13289
+ "kind": "js",
13290
+ "name": "drag",
13291
+ "declaration": {
13292
+ "name": "drag",
13293
+ "module": "src/components/markdown/__tests__/inline-selection-fixture.ts"
13294
+ }
13295
+ }
13296
+ ]
13297
+ },
13298
+ {
13299
+ "kind": "javascript-module",
13300
+ "path": "src/components/markdown/src/inline-markdown.ts",
13301
+ "declarations": [
13302
+ {
13303
+ "kind": "function",
13304
+ "name": "renderInlineMarkdown",
13305
+ "return": {
13306
+ "type": {
13307
+ "text": "TemplateResult"
13308
+ }
13309
+ },
13310
+ "parameters": [
13311
+ {
13312
+ "name": "source",
13313
+ "type": {
13314
+ "text": "string"
13315
+ }
13316
+ },
13317
+ {
13318
+ "name": "options",
13319
+ "default": "{}",
13320
+ "type": {
13321
+ "text": "InlineMarkdownOptions"
13322
+ }
13323
+ }
13324
+ ],
13325
+ "description": "Returns a template for one inline paragraph, preserving edge spaces. Render\nit into your own root and install inlineMarkdownStyles there.\nParsing, callbacks, and validation finish before this function returns."
13326
+ },
13327
+ {
13328
+ "kind": "function",
13329
+ "name": "renderInlineMarkdownInRun",
13330
+ "return": {
13331
+ "type": {
13332
+ "text": "TemplateResult"
13333
+ }
13334
+ },
13335
+ "parameters": [
13336
+ {
13337
+ "name": "source",
13338
+ "type": {
13339
+ "text": "string"
13340
+ }
13341
+ },
13342
+ {
13343
+ "name": "options",
13344
+ "type": {
13345
+ "text": "InlineMarkdownOptions"
13346
+ }
13347
+ }
13348
+ ]
13349
+ }
13350
+ ],
13351
+ "exports": [
13352
+ {
13353
+ "kind": "js",
13354
+ "name": "InlineMarkdownError",
13355
+ "declaration": {
13356
+ "name": "InlineMarkdownError",
13357
+ "module": "./utils/inline-validation.js"
13358
+ }
13359
+ },
13360
+ {
13361
+ "kind": "js",
13362
+ "name": "inlineMarkdownStyles",
13363
+ "declaration": {
13364
+ "name": "default",
13365
+ "module": "./inline-markdown.scss?lit"
13366
+ }
13367
+ },
13368
+ {
13369
+ "kind": "js",
13370
+ "name": "renderInlineMarkdown",
13371
+ "declaration": {
13372
+ "name": "renderInlineMarkdown",
13373
+ "module": "src/components/markdown/src/inline-markdown.ts"
13374
+ }
13375
+ },
13376
+ {
13377
+ "kind": "js",
13378
+ "name": "renderInlineMarkdownInRun",
13379
+ "declaration": {
13380
+ "name": "renderInlineMarkdownInRun",
13381
+ "module": "src/components/markdown/src/inline-markdown.ts"
13382
+ }
13383
+ }
13384
+ ]
13385
+ },
13083
13386
  {
13084
13387
  "kind": "javascript-module",
13085
13388
  "path": "src/components/markdown/src/markdown-renderer-types.ts",
@@ -13886,18 +14189,174 @@
13886
14189
  },
13887
14190
  {
13888
14191
  "kind": "javascript-module",
13889
- "path": "src/components/processing/src/processing.ts",
14192
+ "path": "src/components/messages-shell/src/messages-shell.ts",
13890
14193
  "declarations": [
13891
14194
  {
13892
14195
  "kind": "class",
13893
- "description": "Processing component",
13894
- "name": "CDSAIChatProcessing",
14196
+ "description": "Layout container for the chat message list. It provides named slots for the\nrows and the controls around them, and reports scroll position. Autoscroll\nand row navigation are not part of this element yet.",
14197
+ "name": "CDSAIChatMessagesShell",
14198
+ "slots": [
14199
+ {
14200
+ "description": "Sticky notices above the scroller (e.g. human-agent banners).",
14201
+ "name": "notifications"
14202
+ },
14203
+ {
14204
+ "description": "Default slot. Message rows go here, inside the scroll container.",
14205
+ "name": ""
14206
+ },
14207
+ {
14208
+ "description": "The typing / processing indicator, inside the scroll container.",
14209
+ "name": "processing"
14210
+ },
14211
+ {
14212
+ "description": "The scroll-to-bottom control. Rendered sticky inside the scroller.",
14213
+ "name": "scroll-down"
14214
+ },
14215
+ {
14216
+ "description": "Footer errors anchored below the scroller.",
14217
+ "name": "error"
14218
+ }
14219
+ ],
13895
14220
  "members": [
13896
14221
  {
13897
14222
  "kind": "field",
13898
- "name": "loop",
14223
+ "name": "eventScroll",
14224
+ "static": true,
14225
+ "description": "Name of the event fired when the list scrolls.",
14226
+ "readonly": true
14227
+ },
14228
+ {
14229
+ "kind": "field",
14230
+ "name": "topHandleLabel",
13899
14231
  "type": {
13900
- "text": "boolean"
14232
+ "text": "string"
14233
+ },
14234
+ "default": "''",
14235
+ "description": "Visible and accessible label for the top scroll handle.\nProvide a translated string for the host's locale. The handle is omitted when empty.",
14236
+ "attribute": "top-handle-label"
14237
+ },
14238
+ {
14239
+ "kind": "field",
14240
+ "name": "bottomHandleLabel",
14241
+ "type": {
14242
+ "text": "string"
14243
+ },
14244
+ "default": "''",
14245
+ "description": "Visible and accessible label for the bottom scroll handle.\nProvide a translated string for the host's locale. The handle is omitted when empty.",
14246
+ "attribute": "bottom-handle-label"
14247
+ },
14248
+ {
14249
+ "kind": "field",
14250
+ "name": "_scroller",
14251
+ "type": {
14252
+ "text": "HTMLElement"
14253
+ },
14254
+ "privacy": "private"
14255
+ },
14256
+ {
14257
+ "kind": "field",
14258
+ "name": "_handleScroll",
14259
+ "privacy": "private"
14260
+ },
14261
+ {
14262
+ "kind": "field",
14263
+ "name": "_onHandleFocus",
14264
+ "privacy": "private"
14265
+ },
14266
+ {
14267
+ "kind": "field",
14268
+ "name": "_onHandleBlur",
14269
+ "privacy": "private"
14270
+ },
14271
+ {
14272
+ "kind": "field",
14273
+ "name": "_onHandleKeyDown",
14274
+ "privacy": "private"
14275
+ },
14276
+ {
14277
+ "kind": "method",
14278
+ "name": "_renderScrollHandle",
14279
+ "privacy": "private",
14280
+ "parameters": [
14281
+ {
14282
+ "name": "label",
14283
+ "type": {
14284
+ "text": "string"
14285
+ }
14286
+ }
14287
+ ]
14288
+ }
14289
+ ],
14290
+ "events": [
14291
+ {
14292
+ "type": {
14293
+ "text": "CustomEvent<MessagesShellScrollDetail>"
14294
+ },
14295
+ "description": "Fired on every scroll event. Detail carries position and geometry readings.",
14296
+ "name": "cds-aichat-messages-shell-scroll"
14297
+ }
14298
+ ],
14299
+ "attributes": [
14300
+ {
14301
+ "name": "top-handle-label",
14302
+ "type": {
14303
+ "text": "string"
14304
+ },
14305
+ "default": "''",
14306
+ "description": "Visible and accessible label for the top scroll handle.\nProvide a translated string for the host's locale. The handle is omitted when empty.",
14307
+ "fieldName": "topHandleLabel"
14308
+ },
14309
+ {
14310
+ "name": "bottom-handle-label",
14311
+ "type": {
14312
+ "text": "string"
14313
+ },
14314
+ "default": "''",
14315
+ "description": "Visible and accessible label for the bottom scroll handle.\nProvide a translated string for the host's locale. The handle is omitted when empty.",
14316
+ "fieldName": "bottomHandleLabel"
14317
+ }
14318
+ ],
14319
+ "superclass": {
14320
+ "name": "LitElement",
14321
+ "package": "lit"
14322
+ },
14323
+ "tagName": "cds-aichat-messages-shell",
14324
+ "customElement": true
14325
+ }
14326
+ ],
14327
+ "exports": [
14328
+ {
14329
+ "kind": "js",
14330
+ "name": "CDSAIChatMessagesShell",
14331
+ "declaration": {
14332
+ "name": "CDSAIChatMessagesShell",
14333
+ "module": "src/components/messages-shell/src/messages-shell.ts"
14334
+ }
14335
+ },
14336
+ {
14337
+ "kind": "js",
14338
+ "name": "default",
14339
+ "declaration": {
14340
+ "name": "CDSAIChatMessagesShell",
14341
+ "module": "src/components/messages-shell/src/messages-shell.ts"
14342
+ }
14343
+ }
14344
+ ]
14345
+ },
14346
+ {
14347
+ "kind": "javascript-module",
14348
+ "path": "src/components/processing/src/processing.ts",
14349
+ "declarations": [
14350
+ {
14351
+ "kind": "class",
14352
+ "description": "Processing component",
14353
+ "name": "CDSAIChatProcessing",
14354
+ "members": [
14355
+ {
14356
+ "kind": "field",
14357
+ "name": "loop",
14358
+ "type": {
14359
+ "text": "boolean"
13901
14360
  },
13902
14361
  "default": "false",
13903
14362
  "description": "Enables the linear looping animation variant.",
@@ -15678,6 +16137,15 @@
15678
16137
  }
15679
16138
  }
15680
16139
  },
16140
+ {
16141
+ "kind": "method",
16142
+ "name": "resetHistory",
16143
+ "return": {
16144
+ "type": {
16145
+ "text": "void"
16146
+ }
16147
+ }
16148
+ },
15681
16149
  {
15682
16150
  "kind": "field",
15683
16151
  "name": "_onInput",
@@ -16353,6 +16821,16 @@
16353
16821
  }
16354
16822
  }
16355
16823
  },
16824
+ {
16825
+ "kind": "method",
16826
+ "name": "resetHistory",
16827
+ "return": {
16828
+ "type": {
16829
+ "text": "void"
16830
+ }
16831
+ },
16832
+ "description": "Drops the editor's undo and redo history, keeping the live editor,\nits focus, and its plugin state. Emits Tiptap's `transaction` event but\nno `update`, value-change, typing, or token events. No-op in plain\ntextarea mode."
16833
+ },
16356
16834
  {
16357
16835
  "kind": "method",
16358
16836
  "name": "_wantsRich",
@@ -17109,7 +17587,7 @@
17109
17587
  "kind": "method",
17110
17588
  "name": "emitAnimationEndWhenSettled",
17111
17589
  "privacy": "private",
17112
- "description": "The panel animates `grid-template-rows` when the step expands/collapses. We wait for\nany in-flight transition on the panel to finish, then emit a composed event so\nconsumers (e.g. the message list's scroll manager) can recalculate scroll geometry\nagainst the settled layout.\n\nUsing the Web Animations API (`getAnimations`) handles both cases with one path: when a\ntransition runs we resolve on its `finished` promise, and when nothing animates (reduced\nmotion, or a collapse that snaps without a transition) there are no animations so we emit\nimmediately. The rAF lets the just-changed style flush so a pending transition is\nregistered before we read it."
17590
+ "description": "The panel animates `grid-template-rows` when the step expands/collapses. We wait for\nany in-flight transition on the panel to finish, then emit a composed event so host\nlisteners can recalculate layout against the settled geometry. The event is public; the\nmessage list's scroll controller no longer listens to it.\n\nUsing the Web Animations API (`getAnimations`) handles both cases with one path: when a\ntransition runs we resolve on its `finished` promise, and when nothing animates (reduced\nmotion, or a collapse that snaps without a transition) there are no animations so we emit\nimmediately. The rAF lets the just-changed style flush so a pending transition is\nregistered before we read it."
17113
17591
  },
17114
17592
  {
17115
17593
  "kind": "method",
@@ -17406,7 +17884,7 @@
17406
17884
  "kind": "method",
17407
17885
  "name": "emitAnimationEndWhenSettled",
17408
17886
  "privacy": "private",
17409
- "description": "The wrapper animates `grid-template-rows` when the container expands/collapses.\nWe wait for any in-flight transition on the wrapper to finish, then emit a composed\nevent so consumers (e.g. the message list's scroll manager) can recalculate scroll\ngeometry against the settled layout.\n\nUsing the Web Animations API (`getAnimations`) handles both cases with one path: when\na transition runs we resolve on its `finished` promise, and when nothing animates\n(reduced motion, or an auto-collapse that snaps without a transition) there are no\nanimations so we emit immediately. The rAF lets the just-changed style flush so a\npending transition is registered before we read it."
17887
+ "description": "The wrapper animates `grid-template-rows` when the container expands/collapses.\nWe wait for any in-flight transition on the wrapper to finish, then emit a composed\nevent so host listeners can recalculate layout against the settled geometry. The event is\npublic; the message list's scroll controller no longer listens to it.\n\nUsing the Web Animations API (`getAnimations`) handles both cases with one path: when\na transition runs we resolve on its `finished` promise, and when nothing animates\n(reduced motion, or an auto-collapse that snaps without a transition) there are no\nanimations so we emit immediately. The rAF lets the just-changed style flush so a\npending transition is registered before we read it."
17410
17888
  }
17411
17889
  ],
17412
17890
  "events": [
@@ -21852,6 +22330,208 @@
21852
22330
  }
21853
22331
  ]
21854
22332
  },
22333
+ {
22334
+ "kind": "javascript-module",
22335
+ "path": "src/components/markdown/src/utils/inline-run-projection.ts",
22336
+ "declarations": [
22337
+ {
22338
+ "kind": "function",
22339
+ "name": "installInlineRunStyles",
22340
+ "return": {
22341
+ "type": {
22342
+ "text": "() => void"
22343
+ }
22344
+ },
22345
+ "parameters": [
22346
+ {
22347
+ "name": "host",
22348
+ "type": {
22349
+ "text": "HTMLElement"
22350
+ }
22351
+ }
22352
+ ]
22353
+ },
22354
+ {
22355
+ "kind": "variable",
22356
+ "name": "projectedInlinePlugin"
22357
+ },
22358
+ {
22359
+ "kind": "function",
22360
+ "name": "projectInlineRun",
22361
+ "return": {
22362
+ "type": {
22363
+ "text": "TemplateResult"
22364
+ }
22365
+ },
22366
+ "parameters": [
22367
+ {
22368
+ "name": "content",
22369
+ "type": {
22370
+ "text": "TemplateResult"
22371
+ }
22372
+ },
22373
+ {
22374
+ "name": "options",
22375
+ "type": {
22376
+ "text": "InlineRunOptions"
22377
+ }
22378
+ }
22379
+ ]
22380
+ }
22381
+ ],
22382
+ "exports": [
22383
+ {
22384
+ "kind": "js",
22385
+ "name": "installInlineRunStyles",
22386
+ "declaration": {
22387
+ "name": "installInlineRunStyles",
22388
+ "module": "src/components/markdown/src/utils/inline-run-projection.ts"
22389
+ }
22390
+ },
22391
+ {
22392
+ "kind": "js",
22393
+ "name": "projectedInlinePlugin",
22394
+ "declaration": {
22395
+ "name": "projectedInlinePlugin",
22396
+ "module": "src/components/markdown/src/utils/inline-run-projection.ts"
22397
+ }
22398
+ },
22399
+ {
22400
+ "kind": "js",
22401
+ "name": "projectInlineRun",
22402
+ "declaration": {
22403
+ "name": "projectInlineRun",
22404
+ "module": "src/components/markdown/src/utils/inline-run-projection.ts"
22405
+ }
22406
+ }
22407
+ ]
22408
+ },
22409
+ {
22410
+ "kind": "javascript-module",
22411
+ "path": "src/components/markdown/src/utils/inline-validation.ts",
22412
+ "declarations": [
22413
+ {
22414
+ "kind": "class",
22415
+ "description": "Reports source or output that cannot join an inline paragraph.",
22416
+ "name": "InlineMarkdownError",
22417
+ "members": [
22418
+ {
22419
+ "kind": "field",
22420
+ "name": "code",
22421
+ "type": {
22422
+ "text": "'block-content' | 'non-inline-output'"
22423
+ },
22424
+ "readonly": true,
22425
+ "description": "Stable reason for rejecting the complete run.",
22426
+ "default": "code"
22427
+ },
22428
+ {
22429
+ "kind": "field",
22430
+ "name": "name",
22431
+ "type": {
22432
+ "text": "string"
22433
+ },
22434
+ "default": "'InlineMarkdownError'"
22435
+ }
22436
+ ],
22437
+ "superclass": {
22438
+ "name": "Error",
22439
+ "module": "src/components/markdown/src/utils/inline-validation.ts"
22440
+ }
22441
+ },
22442
+ {
22443
+ "kind": "function",
22444
+ "name": "validateInlineTree",
22445
+ "return": {
22446
+ "type": {
22447
+ "text": "TokenTree | undefined"
22448
+ }
22449
+ },
22450
+ "parameters": [
22451
+ {
22452
+ "name": "tree",
22453
+ "type": {
22454
+ "text": "TokenTree"
22455
+ }
22456
+ },
22457
+ {
22458
+ "name": "source",
22459
+ "type": {
22460
+ "text": "string"
22461
+ }
22462
+ }
22463
+ ]
22464
+ },
22465
+ {
22466
+ "kind": "function",
22467
+ "name": "validateInlineAttributes",
22468
+ "return": {
22469
+ "type": {
22470
+ "text": "void"
22471
+ }
22472
+ },
22473
+ "parameters": [
22474
+ {
22475
+ "name": "attributes",
22476
+ "type": {
22477
+ "text": "Record<string, string>"
22478
+ }
22479
+ }
22480
+ ]
22481
+ },
22482
+ {
22483
+ "kind": "function",
22484
+ "name": "validateInlineHTML",
22485
+ "return": {
22486
+ "type": {
22487
+ "text": "void"
22488
+ }
22489
+ },
22490
+ "parameters": [
22491
+ {
22492
+ "name": "html",
22493
+ "type": {
22494
+ "text": "string"
22495
+ }
22496
+ }
22497
+ ]
22498
+ }
22499
+ ],
22500
+ "exports": [
22501
+ {
22502
+ "kind": "js",
22503
+ "name": "InlineMarkdownError",
22504
+ "declaration": {
22505
+ "name": "InlineMarkdownError",
22506
+ "module": "src/components/markdown/src/utils/inline-validation.ts"
22507
+ }
22508
+ },
22509
+ {
22510
+ "kind": "js",
22511
+ "name": "validateInlineTree",
22512
+ "declaration": {
22513
+ "name": "validateInlineTree",
22514
+ "module": "src/components/markdown/src/utils/inline-validation.ts"
22515
+ }
22516
+ },
22517
+ {
22518
+ "kind": "js",
22519
+ "name": "validateInlineAttributes",
22520
+ "declaration": {
22521
+ "name": "validateInlineAttributes",
22522
+ "module": "src/components/markdown/src/utils/inline-validation.ts"
22523
+ }
22524
+ },
22525
+ {
22526
+ "kind": "js",
22527
+ "name": "validateInlineHTML",
22528
+ "declaration": {
22529
+ "name": "validateInlineHTML",
22530
+ "module": "src/components/markdown/src/utils/inline-validation.ts"
22531
+ }
22532
+ }
22533
+ ]
22534
+ },
21855
22535
  {
21856
22536
  "kind": "javascript-module",
21857
22537
  "path": "src/components/markdown/src/utils/lit-directives.ts",
@@ -22422,6 +23102,16 @@
22422
23102
  "default": "null",
22423
23103
  "description": "Pending arrow-move announcement timer. Held-key rapid fires are collapsed:\nonly the last pending label is spoken."
22424
23104
  },
23105
+ {
23106
+ "kind": "field",
23107
+ "name": "_flatList",
23108
+ "type": {
23109
+ "text": "FlatEntry[]"
23110
+ },
23111
+ "privacy": "private",
23112
+ "default": "[]",
23113
+ "description": "Cached flat item list, rebuilt on every update via willUpdate."
23114
+ },
22425
23115
  {
22426
23116
  "kind": "field",
22427
23117
  "name": "_openAnnounced",
@@ -22432,6 +23122,26 @@
22432
23122
  "default": "false",
22433
23123
  "description": "Whether the open announcement has already fired for this show."
22434
23124
  },
23125
+ {
23126
+ "kind": "field",
23127
+ "name": "_previousTotalItems",
23128
+ "type": {
23129
+ "text": "number"
23130
+ },
23131
+ "privacy": "private",
23132
+ "default": "0",
23133
+ "description": "Total item count from the last announcement, used to detect count changes."
23134
+ },
23135
+ {
23136
+ "kind": "field",
23137
+ "name": "_filterAnnouncePending",
23138
+ "type": {
23139
+ "text": "number | null"
23140
+ },
23141
+ "privacy": "private",
23142
+ "default": "null",
23143
+ "description": "Pending timer for filtered count announcement. Keystroke updates are debounced\nso rapid typing does not interrupt typing echo with an announcement on every key."
23144
+ },
22435
23145
  {
22436
23146
  "kind": "method",
22437
23147
  "name": "hasNavigated",
@@ -22444,44 +23154,31 @@
22444
23154
  },
22445
23155
  {
22446
23156
  "kind": "method",
22447
- "name": "_getTotalItemCount",
23157
+ "name": "_buildFlatList",
22448
23158
  "privacy": "private",
22449
23159
  "return": {
22450
23160
  "type": {
22451
- "text": "number"
23161
+ "text": "FlatEntry[]"
22452
23162
  }
22453
23163
  },
22454
- "description": "Get the total count of all items (flat items + items in groups)"
23164
+ "description": "Build a flat list of all items in render order: ungrouped items first,\nthen each group's items in group order. Called unconditionally from\nwillUpdate so in-place mutations followed by requestUpdate() are reflected."
22455
23165
  },
22456
23166
  {
22457
23167
  "kind": "method",
22458
- "name": "_getItemAtIndex",
23168
+ "name": "_navigateTo",
22459
23169
  "privacy": "private",
22460
23170
  "return": {
22461
23171
  "type": {
22462
- "text": "SuggestionItem | null"
23172
+ "text": "number"
22463
23173
  }
22464
23174
  },
22465
23175
  "parameters": [
22466
23176
  {
22467
- "name": "index",
23177
+ "name": "list",
22468
23178
  "type": {
22469
- "text": "number"
23179
+ "text": "FlatEntry[]"
22470
23180
  }
22471
- }
22472
- ],
22473
- "description": "Get the item at a specific index (accounting for both flat items and groups)"
22474
- },
22475
- {
22476
- "kind": "method",
22477
- "name": "_navigateTo",
22478
- "privacy": "private",
22479
- "return": {
22480
- "type": {
22481
- "text": "number"
22482
- }
22483
- },
22484
- "parameters": [
23181
+ },
22485
23182
  {
22486
23183
  "name": "from",
22487
23184
  "type": {
@@ -22495,7 +23192,7 @@
22495
23192
  }
22496
23193
  }
22497
23194
  ],
22498
- "description": "Move focus to the next enabled item in the given direction (+1 / -1),\nskipping over any disabled items. Mirrors the Carbon Dropdown `_navigate`\npattern. Returns the resolved index, or the current index if no enabled\nitem exists in that direction."
23195
+ "description": "Move focus to the next enabled item in the given direction (+1 / -1),\nskipping over any disabled items. Mirrors the Carbon Dropdown `_navigate`\npattern. Returns the resolved index, or `from` if no enabled item exists\nin that direction."
22499
23196
  },
22500
23197
  {
22501
23198
  "kind": "field",
@@ -22537,6 +23234,12 @@
22537
23234
  "type": {
22538
23235
  "text": "number"
22539
23236
  }
23237
+ },
23238
+ {
23239
+ "name": "item",
23240
+ "type": {
23241
+ "text": "SuggestionItem"
23242
+ }
22540
23243
  }
22541
23244
  ]
22542
23245
  },
@@ -22619,24 +23322,6 @@
22619
23322
  }
22620
23323
  }
22621
23324
  },
22622
- {
22623
- "kind": "method",
22624
- "name": "_getGroupTitleAtIndex",
22625
- "privacy": "private",
22626
- "return": {
22627
- "type": {
22628
- "text": "string | undefined"
22629
- }
22630
- },
22631
- "parameters": [
22632
- {
22633
- "name": "index",
22634
- "type": {
22635
- "text": "number"
22636
- }
22637
- }
22638
- ]
22639
- },
22640
23325
  {
22641
23326
  "kind": "method",
22642
23327
  "name": "_getLabelParts",