@carbon/ai-chat-components 1.10.0 → 1.11.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 (126) hide show
  1. package/custom-elements.json +736 -775
  2. package/es/components/audio-player/src/utils/url-detector.d.ts +0 -14
  3. package/es/components/audio-player/src/utils/url-detector.js +1 -19
  4. package/es/components/audio-player/src/utils/url-detector.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/code-snippet/src/codemirror/codemirror-loader.d.ts +0 -5
  9. package/es/components/code-snippet/src/codemirror/codemirror-loader.js +1 -8
  10. package/es/components/code-snippet/src/codemirror/codemirror-loader.js.map +1 -1
  11. package/es/components/markdown/src/markdown-token-tree.js +1 -1
  12. package/es/components/markdown/src/plugins/markdown-it-attrs.d.ts +0 -1
  13. package/es/components/markdown/src/plugins/markdown-it-attrs.js +1 -1
  14. package/es/components/markdown/src/plugins/markdown-it-attrs.js.map +1 -1
  15. package/es/components/markdown/src/utils/plugin-fallback.js +3 -1
  16. package/es/components/markdown/src/utils/plugin-fallback.js.map +1 -1
  17. package/es/components/markdown/src/utils/table-helpers.d.ts +0 -26
  18. package/es/components/markdown/src/utils/table-helpers.js +1 -4
  19. package/es/components/markdown/src/utils/table-helpers.js.map +1 -1
  20. package/es/components/prompt-line/autocomplete/src/autocomplete.scss.js +1 -1
  21. package/es/components/prompt-line/src/prompt-line-constants.d.ts +9 -1
  22. package/es/components/prompt-line/src/prompt-line-constants.js +10 -2
  23. package/es/components/prompt-line/src/prompt-line-constants.js.map +1 -1
  24. package/es/components/prompt-line/src/prompt-line-controller.d.ts +25 -78
  25. package/es/components/prompt-line/src/prompt-line-controller.js +0 -389
  26. package/es/components/prompt-line/src/prompt-line-controller.js.map +1 -1
  27. package/es/components/prompt-line/src/prompt-line-mouse-focus.d.ts +45 -0
  28. package/es/components/prompt-line/src/prompt-line-mouse-focus.js +83 -0
  29. package/es/components/prompt-line/src/prompt-line-mouse-focus.js.map +1 -0
  30. package/es/components/prompt-line/src/prompt-line-rich-runtime.d.ts +0 -2
  31. package/es/components/prompt-line/src/prompt-line-rich-runtime.js +30 -53
  32. package/es/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
  33. package/es/components/prompt-line/src/prompt-line-textarea-runtime.d.ts +87 -0
  34. package/es/components/prompt-line/src/prompt-line-textarea-runtime.js +390 -0
  35. package/es/components/prompt-line/src/prompt-line-textarea-runtime.js.map +1 -0
  36. package/es/components/prompt-line/src/prompt-line.d.ts +1 -1
  37. package/es/components/prompt-line/src/prompt-line.js +6 -5
  38. package/es/components/prompt-line/src/prompt-line.js.map +1 -1
  39. package/es/components/prompt-line/src/tiptap/extension-equivalence.d.ts +2 -1
  40. package/es/components/prompt-line/src/tiptap/extension-equivalence.js.map +1 -1
  41. package/es/components/prompt-line/src/tiptap/typing-indicator.js +1 -1
  42. package/es/components/prompt-line/src/tiptap/typing-indicator.js.map +1 -1
  43. package/es/components/truncated-text/src/truncated-text.js +2 -2
  44. package/es/components/truncated-text/src/truncated-text.js.map +1 -1
  45. package/es/components/video-player/src/utils/url-detector.d.ts +0 -28
  46. package/es/components/video-player/src/utils/url-detector.js +1 -37
  47. package/es/components/video-player/src/utils/url-detector.js.map +1 -1
  48. package/es/globals/utils/browser-utils.d.ts +3 -5
  49. package/es/globals/utils/browser-utils.js +1 -1
  50. package/es/globals/utils/browser-utils.js.map +1 -1
  51. package/es/globals/utils/csv.d.ts +0 -1
  52. package/es/globals/utils/csv.js.map +1 -1
  53. package/es/react/truncated-text.d.ts +12 -0
  54. package/es/react/truncated-text.js +28 -0
  55. package/es/react/truncated-text.js.map +1 -0
  56. package/es/testing/PageObjectId.d.ts +0 -4
  57. package/es/testing/PageObjectId.js.map +1 -1
  58. package/es/testing/load-all-lazy-deps.d.ts +1 -2
  59. package/es/testing/load-all-lazy-deps.js +3 -3
  60. package/es/testing/load-all-lazy-deps.js.map +1 -1
  61. package/es-custom/components/audio-player/src/utils/url-detector.d.ts +0 -14
  62. package/es-custom/components/audio-player/src/utils/url-detector.js +1 -19
  63. package/es-custom/components/audio-player/src/utils/url-detector.js.map +1 -1
  64. package/es-custom/components/card/src/card-footer.scss.js +1 -1
  65. package/es-custom/components/card/src/card-steps.scss.js +1 -1
  66. package/es-custom/components/card/src/card.scss.js +1 -1
  67. package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.d.ts +0 -5
  68. package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.js +1 -8
  69. package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.js.map +1 -1
  70. package/es-custom/components/markdown/src/markdown-token-tree.js +1 -1
  71. package/es-custom/components/markdown/src/plugins/markdown-it-attrs.d.ts +0 -1
  72. package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js +1 -1
  73. package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js.map +1 -1
  74. package/es-custom/components/markdown/src/utils/plugin-fallback.js +3 -1
  75. package/es-custom/components/markdown/src/utils/plugin-fallback.js.map +1 -1
  76. package/es-custom/components/markdown/src/utils/table-helpers.d.ts +0 -26
  77. package/es-custom/components/markdown/src/utils/table-helpers.js +1 -4
  78. package/es-custom/components/markdown/src/utils/table-helpers.js.map +1 -1
  79. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.scss.js +1 -1
  80. package/es-custom/components/prompt-line/src/prompt-line-constants.d.ts +9 -1
  81. package/es-custom/components/prompt-line/src/prompt-line-constants.js +10 -2
  82. package/es-custom/components/prompt-line/src/prompt-line-constants.js.map +1 -1
  83. package/es-custom/components/prompt-line/src/prompt-line-controller.d.ts +25 -78
  84. package/es-custom/components/prompt-line/src/prompt-line-controller.js +0 -389
  85. package/es-custom/components/prompt-line/src/prompt-line-controller.js.map +1 -1
  86. package/es-custom/components/prompt-line/src/prompt-line-mouse-focus.d.ts +45 -0
  87. package/es-custom/components/prompt-line/src/prompt-line-mouse-focus.js +83 -0
  88. package/es-custom/components/prompt-line/src/prompt-line-mouse-focus.js.map +1 -0
  89. package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.d.ts +0 -2
  90. package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js +30 -53
  91. package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
  92. package/es-custom/components/prompt-line/src/prompt-line-textarea-runtime.d.ts +87 -0
  93. package/es-custom/components/prompt-line/src/prompt-line-textarea-runtime.js +390 -0
  94. package/es-custom/components/prompt-line/src/prompt-line-textarea-runtime.js.map +1 -0
  95. package/es-custom/components/prompt-line/src/prompt-line.d.ts +1 -1
  96. package/es-custom/components/prompt-line/src/prompt-line.js +6 -5
  97. package/es-custom/components/prompt-line/src/prompt-line.js.map +1 -1
  98. package/es-custom/components/prompt-line/src/tiptap/extension-equivalence.d.ts +2 -1
  99. package/es-custom/components/prompt-line/src/tiptap/extension-equivalence.js.map +1 -1
  100. package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js +1 -1
  101. package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js.map +1 -1
  102. package/es-custom/components/truncated-text/src/truncated-text.js +2 -2
  103. package/es-custom/components/truncated-text/src/truncated-text.js.map +1 -1
  104. package/es-custom/components/video-player/src/utils/url-detector.d.ts +0 -28
  105. package/es-custom/components/video-player/src/utils/url-detector.js +1 -37
  106. package/es-custom/components/video-player/src/utils/url-detector.js.map +1 -1
  107. package/es-custom/globals/utils/browser-utils.d.ts +3 -5
  108. package/es-custom/globals/utils/browser-utils.js +1 -1
  109. package/es-custom/globals/utils/browser-utils.js.map +1 -1
  110. package/es-custom/globals/utils/csv.d.ts +0 -1
  111. package/es-custom/globals/utils/csv.js.map +1 -1
  112. package/es-custom/react/truncated-text.d.ts +12 -0
  113. package/es-custom/react/truncated-text.js +28 -0
  114. package/es-custom/react/truncated-text.js.map +1 -0
  115. package/es-custom/testing/PageObjectId.d.ts +0 -4
  116. package/es-custom/testing/PageObjectId.js.map +1 -1
  117. package/es-custom/testing/load-all-lazy-deps.d.ts +1 -2
  118. package/es-custom/testing/load-all-lazy-deps.js +3 -3
  119. package/es-custom/testing/load-all-lazy-deps.js.map +1 -1
  120. package/package.json +3 -4
  121. package/es/components/markdown/src/markdown.template.d.ts +0 -6
  122. package/es/components/markdown/src/markdown.template.js +0 -29
  123. package/es/components/markdown/src/markdown.template.js.map +0 -1
  124. package/es-custom/components/markdown/src/markdown.template.d.ts +0 -6
  125. package/es-custom/components/markdown/src/markdown.template.js +0 -29
  126. package/es-custom/components/markdown/src/markdown.template.js.map +0 -1
@@ -742,6 +742,34 @@
742
742
  }
743
743
  ]
744
744
  },
745
+ {
746
+ "kind": "javascript-module",
747
+ "path": "src/react/truncated-text.ts",
748
+ "declarations": [
749
+ {
750
+ "kind": "variable",
751
+ "name": "TruncatedText"
752
+ }
753
+ ],
754
+ "exports": [
755
+ {
756
+ "kind": "js",
757
+ "name": "TruncatedText",
758
+ "declaration": {
759
+ "name": "TruncatedText",
760
+ "module": "src/react/truncated-text.ts"
761
+ }
762
+ },
763
+ {
764
+ "kind": "js",
765
+ "name": "default",
766
+ "declaration": {
767
+ "name": "TruncatedText",
768
+ "module": "src/react/truncated-text.ts"
769
+ }
770
+ }
771
+ ]
772
+ },
745
773
  {
746
774
  "kind": "javascript-module",
747
775
  "path": "src/react/video-player.ts",
@@ -856,14 +884,6 @@
856
884
  "module": "src/testing/load-all-lazy-deps.ts"
857
885
  }
858
886
  },
859
- {
860
- "kind": "js",
861
- "name": "loadCodeSnippetDeps",
862
- "declaration": {
863
- "name": "loadCodeSnippetDeps",
864
- "module": "src/testing/load-all-lazy-deps.ts"
865
- }
866
- },
867
887
  {
868
888
  "kind": "js",
869
889
  "name": "loadTableDeps",
@@ -2227,14 +2247,6 @@
2227
2247
  },
2228
2248
  "description": "Device detection utilities."
2229
2249
  },
2230
- {
2231
- "kind": "variable",
2232
- "name": "IS_IOS"
2233
- },
2234
- {
2235
- "kind": "variable",
2236
- "name": "IS_ANDROID"
2237
- },
2238
2250
  {
2239
2251
  "kind": "variable",
2240
2252
  "name": "IS_MOBILE"
@@ -2251,33 +2263,25 @@
2251
2263
  "exports": [
2252
2264
  {
2253
2265
  "kind": "js",
2254
- "name": "isBrowser",
2255
- "declaration": {
2256
- "name": "isBrowser",
2257
- "module": "src/globals/utils/browser-utils.ts"
2258
- }
2259
- },
2260
- {
2261
- "kind": "js",
2262
- "name": "IS_IOS",
2266
+ "name": "IS_MOBILE",
2263
2267
  "declaration": {
2264
- "name": "IS_IOS",
2268
+ "name": "IS_MOBILE",
2265
2269
  "module": "src/globals/utils/browser-utils.ts"
2266
2270
  }
2267
2271
  },
2268
2272
  {
2269
2273
  "kind": "js",
2270
- "name": "IS_ANDROID",
2274
+ "name": "IS_PHONE_IN_PORTRAIT_MODE",
2271
2275
  "declaration": {
2272
- "name": "IS_ANDROID",
2276
+ "name": "IS_PHONE_IN_PORTRAIT_MODE",
2273
2277
  "module": "src/globals/utils/browser-utils.ts"
2274
2278
  }
2275
2279
  },
2276
2280
  {
2277
2281
  "kind": "js",
2278
- "name": "IS_MOBILE",
2282
+ "name": "isBrowser",
2279
2283
  "declaration": {
2280
- "name": "IS_MOBILE",
2284
+ "name": "isBrowser",
2281
2285
  "module": "src/globals/utils/browser-utils.ts"
2282
2286
  }
2283
2287
  },
@@ -2288,14 +2292,6 @@
2288
2292
  "name": "IS_PHONE",
2289
2293
  "module": "src/globals/utils/browser-utils.ts"
2290
2294
  }
2291
- },
2292
- {
2293
- "kind": "js",
2294
- "name": "IS_PHONE_IN_PORTRAIT_MODE",
2295
- "declaration": {
2296
- "name": "IS_PHONE_IN_PORTRAIT_MODE",
2297
- "module": "src/globals/utils/browser-utils.ts"
2298
- }
2299
2295
  }
2300
2296
  ]
2301
2297
  },
@@ -2330,14 +2326,6 @@
2330
2326
  "name": "stringifyCSV",
2331
2327
  "module": "src/globals/utils/csv.ts"
2332
2328
  }
2333
- },
2334
- {
2335
- "kind": "js",
2336
- "name": "CSVValue",
2337
- "declaration": {
2338
- "name": "CSVValue",
2339
- "module": "src/globals/utils/csv.ts"
2340
- }
2341
2329
  }
2342
2330
  ]
2343
2331
  },
@@ -12982,34 +12970,6 @@
12982
12970
  }
12983
12971
  ]
12984
12972
  },
12985
- {
12986
- "kind": "javascript-module",
12987
- "path": "src/components/markdown/src/markdown.template.ts",
12988
- "declarations": [
12989
- {
12990
- "kind": "function",
12991
- "name": "markdownTemplate",
12992
- "parameters": [
12993
- {
12994
- "name": "{\n slotRef,\n onSlotChange,\n renderedContent,\n}",
12995
- "type": {
12996
- "text": "{\n slotRef: any;\n onSlotChange: () => void;\n renderedContent: unknown;\n}"
12997
- }
12998
- }
12999
- ]
13000
- }
13001
- ],
13002
- "exports": [
13003
- {
13004
- "kind": "js",
13005
- "name": "markdownTemplate",
13006
- "declaration": {
13007
- "name": "markdownTemplate",
13008
- "module": "src/components/markdown/src/markdown.template.ts"
13009
- }
13010
- }
13011
- ]
13012
- },
13013
12973
  {
13014
12974
  "kind": "javascript-module",
13015
12975
  "path": "src/components/markdown/src/markdown.ts",
@@ -14320,7 +14280,7 @@
14320
14280
  "text": "string"
14321
14281
  },
14322
14282
  "default": "'157px'",
14323
- "description": "Max block size the prompt line grows to before it caps and shows a vertical\nscrollbar. Shared by both editing surfaces — the lite `<textarea>`\n([./prompt-line-controller.ts]) and the rich Tiptap content node\n([./tiptap/editor-styles.ts]) — so the two modes cap at the same height and\nthe textarea→rich swap stays imperceptible. Keep them reading this one\nconstant so they can't drift."
14283
+ "description": "Max block size the prompt line grows to before it caps and shows a vertical\nscrollbar. Shared by both editing surfaces — the lite `<textarea>`\n([./prompt-line-textarea-runtime.ts]) and the rich Tiptap content node\n([./tiptap/editor-styles.ts]) — so the two modes cap at the same height and\nthe textarea→rich swap stays imperceptible. Keep them reading this one\nconstant so they can't drift."
14324
14284
  },
14325
14285
  {
14326
14286
  "kind": "variable",
@@ -14330,6 +14290,15 @@
14330
14290
  },
14331
14291
  "default": "{ depth: 100, newGroupDelay: 500 }",
14332
14292
  "description": "Undo/redo tuning for the rich editor's `UndoRedo` extension. Lives here rather\nthan in the tiptap barrel so [./prompt-line-rich-runtime.ts] can read it\nwithout importing the barrel — that would pull the whole curated bundle into\nthe lazily-imported Tiptap chunk. Re-exported from [./tiptap/index.ts]."
14293
+ },
14294
+ {
14295
+ "kind": "variable",
14296
+ "name": "TYPING_TIMEOUT_MS",
14297
+ "type": {
14298
+ "text": "number"
14299
+ },
14300
+ "default": "5000",
14301
+ "description": "How long (in milliseconds) to wait after the last keystroke before the\n`cds-aichat-prompt-typing` event fires with `isTyping = false`. Shared by\nthe textarea controller ([./prompt-line-textarea-runtime.ts]) and the\nTiptap typing-indicator extension ([./tiptap/typing-indicator.ts]) so the\ntwo surfaces can't drift."
14333
14302
  }
14334
14303
  ],
14335
14304
  "exports": [
@@ -14348,84 +14317,70 @@
14348
14317
  "name": "HISTORY_DEFAULTS",
14349
14318
  "module": "src/components/prompt-line/src/prompt-line-constants.ts"
14350
14319
  }
14320
+ },
14321
+ {
14322
+ "kind": "js",
14323
+ "name": "TYPING_TIMEOUT_MS",
14324
+ "declaration": {
14325
+ "name": "TYPING_TIMEOUT_MS",
14326
+ "module": "src/components/prompt-line/src/prompt-line-constants.ts"
14327
+ }
14351
14328
  }
14352
14329
  ]
14353
14330
  },
14354
14331
  {
14355
14332
  "kind": "javascript-module",
14356
14333
  "path": "src/components/prompt-line/src/prompt-line-controller.ts",
14334
+ "declarations": [],
14335
+ "exports": []
14336
+ },
14337
+ {
14338
+ "kind": "javascript-module",
14339
+ "path": "src/components/prompt-line/src/prompt-line-mouse-focus.ts",
14357
14340
  "declarations": [
14358
14341
  {
14359
14342
  "kind": "class",
14360
- "description": "`<textarea>`-backed controller. Tiptap-free; emits the same prompt events as\nthe rich editor. Auto-grows via a hidden mirror, capped at\n`PROMPT_LINE_MAX_BLOCK_SIZE` with the field scrolling past it — the same cap\nthe rich contenteditable applies (see ./tiptap/editor-styles.ts), so the\ntextarea→rich swap is imperceptible.",
14361
- "name": "TextareaController",
14343
+ "description": "Shared mouse-focus tracking used by both `TextareaController` and\n`RichController`. Pointer/touch events before focus mark it as mouse-driven\nso the keyboard-focus outline is suppressed.\n\nSubclasses should:\n - call `this._attachMouseFocusListeners(host)` in `mount()`\n - call `this._detachMouseFocusListeners(host)` in `destroy()`\n - call `this._consumeMouseFocus()` when the focus event fires to get the\n `wasMouseFocus` boolean and latch it into `_lastFocusFromMouse`\n - call `this._setNextFocusOrigin(keyboardFocus)` in `focus(keyboardFocus)` before delegating",
14344
+ "name": "MouseFocusController",
14362
14345
  "members": [
14363
- {
14364
- "kind": "field",
14365
- "name": "_wrap",
14366
- "type": {
14367
- "text": "HTMLDivElement | null"
14368
- },
14369
- "privacy": "private",
14370
- "default": "null"
14371
- },
14372
- {
14373
- "kind": "field",
14374
- "name": "_textarea",
14375
- "type": {
14376
- "text": "HTMLTextAreaElement | null"
14377
- },
14378
- "privacy": "private",
14379
- "default": "null"
14380
- },
14381
- {
14382
- "kind": "field",
14383
- "name": "_mirror",
14384
- "type": {
14385
- "text": "HTMLDivElement | null"
14386
- },
14387
- "privacy": "private",
14388
- "default": "null"
14389
- },
14390
- {
14391
- "kind": "field",
14392
- "name": "_host",
14393
- "type": {
14394
- "text": "HTMLElement | null"
14395
- },
14396
- "privacy": "private",
14397
- "default": "null"
14398
- },
14399
14346
  {
14400
14347
  "kind": "field",
14401
14348
  "name": "_focusFromMouse",
14402
14349
  "type": {
14403
14350
  "text": "boolean"
14404
14351
  },
14405
- "privacy": "private",
14352
+ "privacy": "protected",
14406
14353
  "default": "false"
14407
14354
  },
14408
14355
  {
14409
14356
  "kind": "field",
14410
- "name": "_isTyping",
14357
+ "name": "_lastFocusFromMouse",
14411
14358
  "type": {
14412
14359
  "text": "boolean"
14413
14360
  },
14414
- "privacy": "private",
14361
+ "privacy": "protected",
14415
14362
  "default": "false"
14416
14363
  },
14417
14364
  {
14418
14365
  "kind": "field",
14419
- "name": "_typingTimer",
14366
+ "name": "_nextFocusOriginKeyboard",
14420
14367
  "type": {
14421
- "text": "ReturnType<typeof setTimeout> | null"
14368
+ "text": "boolean | null"
14422
14369
  },
14423
14370
  "privacy": "private",
14424
- "default": "null"
14371
+ "default": "null",
14372
+ "description": "Set by `focus(keyboardFocus)` to pin the keyboard value for the next focus\nevent, bypassing pointer-event tracking. Takes priority over\n`_focusFromMouse` so a programmatic focus call cannot be clobbered by a\nsynthetic pointer event fired during the same `.focus()` call (observed in\nChromium/Firefox headless)."
14373
+ },
14374
+ {
14375
+ "kind": "field",
14376
+ "name": "_setMouseFlag",
14377
+ "privacy": "protected",
14378
+ "readonly": true
14425
14379
  },
14426
14380
  {
14427
14381
  "kind": "method",
14428
- "name": "mount",
14382
+ "name": "_setNextFocusOrigin",
14383
+ "privacy": "protected",
14429
14384
  "return": {
14430
14385
  "type": {
14431
14386
  "text": "void"
@@ -14433,40 +14388,38 @@
14433
14388
  },
14434
14389
  "parameters": [
14435
14390
  {
14436
- "name": "host",
14437
- "type": {
14438
- "text": "HTMLElement"
14439
- }
14440
- },
14441
- {
14442
- "name": "init",
14391
+ "name": "keyboard",
14443
14392
  "type": {
14444
- "text": "PromptLineControllerInit"
14393
+ "text": "boolean"
14445
14394
  }
14446
14395
  }
14447
- ]
14396
+ ],
14397
+ "description": "Pins the keyboard value for the next focus event. Call this in\n`focus(keyboardFocus)` before delegating to the native `.focus()`."
14448
14398
  },
14449
14399
  {
14450
14400
  "kind": "method",
14451
- "name": "destroy",
14401
+ "name": "_consumeMouseFocus",
14402
+ "privacy": "protected",
14452
14403
  "return": {
14453
14404
  "type": {
14454
- "text": "void"
14405
+ "text": "boolean"
14455
14406
  }
14456
- }
14407
+ },
14408
+ "description": "Called at the start of the focus event. Consumes `_focusFromMouse` (or the\npinned origin set by `_setNextFocusOrigin()`), latches the result into\n`_lastFocusFromMouse`, and returns whether focus was mouse-driven."
14457
14409
  },
14458
14410
  {
14459
14411
  "kind": "method",
14460
- "name": "getValue",
14412
+ "name": "getKeyboardFocus",
14461
14413
  "return": {
14462
14414
  "type": {
14463
- "text": "string"
14415
+ "text": "boolean"
14464
14416
  }
14465
14417
  }
14466
14418
  },
14467
14419
  {
14468
14420
  "kind": "method",
14469
- "name": "setContent",
14421
+ "name": "_attachMouseFocusListeners",
14422
+ "privacy": "protected",
14470
14423
  "return": {
14471
14424
  "type": {
14472
14425
  "text": "void"
@@ -14474,16 +14427,17 @@
14474
14427
  },
14475
14428
  "parameters": [
14476
14429
  {
14477
- "name": "next",
14430
+ "name": "host",
14478
14431
  "type": {
14479
- "text": "JSONContent | string | SetContentUpdater"
14432
+ "text": "HTMLElement"
14480
14433
  }
14481
14434
  }
14482
14435
  ]
14483
14436
  },
14484
14437
  {
14485
14438
  "kind": "method",
14486
- "name": "insertContent",
14439
+ "name": "_detachMouseFocusListeners",
14440
+ "privacy": "protected",
14487
14441
  "return": {
14488
14442
  "type": {
14489
14443
  "text": "void"
@@ -14491,331 +14445,9 @@
14491
14445
  },
14492
14446
  "parameters": [
14493
14447
  {
14494
- "name": "content",
14495
- "type": {
14496
- "text": "JSONContent | string"
14497
- }
14498
- },
14499
- {
14500
- "name": "opts",
14501
- "default": "{}",
14448
+ "name": "host",
14502
14449
  "type": {
14503
- "text": "{ at?: number }"
14504
- }
14505
- }
14506
- ]
14507
- },
14508
- {
14509
- "kind": "method",
14510
- "name": "clearContent",
14511
- "return": {
14512
- "type": {
14513
- "text": "void"
14514
- }
14515
- }
14516
- },
14517
- {
14518
- "kind": "method",
14519
- "name": "getEditor",
14520
- "return": {
14521
- "type": {
14522
- "text": "Editor | null"
14523
- }
14524
- }
14525
- },
14526
- {
14527
- "kind": "method",
14528
- "name": "focus",
14529
- "return": {
14530
- "type": {
14531
- "text": "void"
14532
- }
14533
- }
14534
- },
14535
- {
14536
- "kind": "method",
14537
- "name": "blur",
14538
- "return": {
14539
- "type": {
14540
- "text": "void"
14541
- }
14542
- }
14543
- },
14544
- {
14545
- "kind": "method",
14546
- "name": "hasFocus",
14547
- "return": {
14548
- "type": {
14549
- "text": "boolean"
14550
- }
14551
- }
14552
- },
14553
- {
14554
- "kind": "method",
14555
- "name": "getSelection",
14556
- "return": {
14557
- "type": {
14558
- "text": "{ from: number; to: number }"
14559
- }
14560
- }
14561
- },
14562
- {
14563
- "kind": "method",
14564
- "name": "setTextSelection",
14565
- "return": {
14566
- "type": {
14567
- "text": "void"
14568
- }
14569
- },
14570
- "parameters": [
14571
- {
14572
- "name": "pos",
14573
- "type": {
14574
- "text": "number | { from: number; to: number }"
14575
- }
14576
- }
14577
- ]
14578
- },
14579
- {
14580
- "kind": "method",
14581
- "name": "selectAll",
14582
- "return": {
14583
- "type": {
14584
- "text": "void"
14585
- }
14586
- }
14587
- },
14588
- {
14589
- "kind": "method",
14590
- "name": "setEditable",
14591
- "return": {
14592
- "type": {
14593
- "text": "void"
14594
- }
14595
- },
14596
- "parameters": [
14597
- {
14598
- "name": "editable",
14599
- "type": {
14600
- "text": "boolean"
14601
- }
14602
- }
14603
- ]
14604
- },
14605
- {
14606
- "kind": "method",
14607
- "name": "setPlaceholder",
14608
- "return": {
14609
- "type": {
14610
- "text": "void"
14611
- }
14612
- },
14613
- "parameters": [
14614
- {
14615
- "name": "placeholder",
14616
- "type": {
14617
- "text": "string"
14618
- }
14619
- }
14620
- ]
14621
- },
14622
- {
14623
- "kind": "method",
14624
- "name": "setAriaLabel",
14625
- "return": {
14626
- "type": {
14627
- "text": "void"
14628
- }
14629
- },
14630
- "parameters": [
14631
- {
14632
- "name": "ariaLabel",
14633
- "type": {
14634
- "text": "string"
14635
- }
14636
- }
14637
- ]
14638
- },
14639
- {
14640
- "kind": "method",
14641
- "name": "setTestId",
14642
- "return": {
14643
- "type": {
14644
- "text": "void"
14645
- }
14646
- },
14647
- "parameters": [
14648
- {
14649
- "name": "testId",
14650
- "type": {
14651
- "text": "string"
14652
- }
14653
- }
14654
- ]
14655
- },
14656
- {
14657
- "kind": "method",
14658
- "name": "setExtensions",
14659
- "return": {
14660
- "type": {
14661
- "text": "void"
14662
- }
14663
- },
14664
- "parameters": [
14665
- {
14666
- "name": "_extensions",
14667
- "type": {
14668
- "text": "Extension[]"
14669
- }
14670
- }
14671
- ]
14672
- },
14673
- {
14674
- "kind": "method",
14675
- "name": "setComposing",
14676
- "return": {
14677
- "type": {
14678
- "text": "void"
14679
- }
14680
- },
14681
- "parameters": [
14682
- {
14683
- "name": "_composing",
14684
- "type": {
14685
- "text": "boolean"
14686
- }
14687
- }
14688
- ]
14689
- },
14690
- {
14691
- "kind": "method",
14692
- "name": "undo",
14693
- "return": {
14694
- "type": {
14695
- "text": "boolean"
14696
- }
14697
- }
14698
- },
14699
- {
14700
- "kind": "method",
14701
- "name": "redo",
14702
- "return": {
14703
- "type": {
14704
- "text": "boolean"
14705
- }
14706
- }
14707
- },
14708
- {
14709
- "kind": "field",
14710
- "name": "_onInput",
14711
- "privacy": "private"
14712
- },
14713
- {
14714
- "kind": "field",
14715
- "name": "_onKeydown",
14716
- "privacy": "private"
14717
- },
14718
- {
14719
- "kind": "field",
14720
- "name": "_setMouseFlag",
14721
- "privacy": "private"
14722
- },
14723
- {
14724
- "kind": "field",
14725
- "name": "_onFocus",
14726
- "privacy": "private"
14727
- },
14728
- {
14729
- "kind": "field",
14730
- "name": "_onBlur",
14731
- "privacy": "private"
14732
- },
14733
- {
14734
- "kind": "method",
14735
- "name": "_setValue",
14736
- "privacy": "private",
14737
- "return": {
14738
- "type": {
14739
- "text": "void"
14740
- }
14741
- },
14742
- "parameters": [
14743
- {
14744
- "name": "text",
14745
- "type": {
14746
- "text": "string"
14747
- }
14748
- },
14749
- {
14750
- "name": "emit",
14751
- "type": {
14752
- "text": "boolean"
14753
- }
14754
- }
14755
- ],
14756
- "description": "Programmatic value write: updates the field, mirror, and emits change."
14757
- },
14758
- {
14759
- "kind": "method",
14760
- "name": "_emitChange",
14761
- "privacy": "private",
14762
- "return": {
14763
- "type": {
14764
- "text": "void"
14765
- }
14766
- }
14767
- },
14768
- {
14769
- "kind": "method",
14770
- "name": "_syncMirror",
14771
- "privacy": "private",
14772
- "return": {
14773
- "type": {
14774
- "text": "void"
14775
- }
14776
- }
14777
- },
14778
- {
14779
- "kind": "method",
14780
- "name": "_markTyping",
14781
- "privacy": "private",
14782
- "return": {
14783
- "type": {
14784
- "text": "void"
14785
- }
14786
- }
14787
- },
14788
- {
14789
- "kind": "method",
14790
- "name": "_clearTypingTimer",
14791
- "privacy": "private",
14792
- "return": {
14793
- "type": {
14794
- "text": "void"
14795
- }
14796
- }
14797
- },
14798
- {
14799
- "kind": "method",
14800
- "name": "_dispatch",
14801
- "privacy": "private",
14802
- "return": {
14803
- "type": {
14804
- "text": "void"
14805
- }
14806
- },
14807
- "parameters": [
14808
- {
14809
- "name": "name",
14810
- "type": {
14811
- "text": "string"
14812
- }
14813
- },
14814
- {
14815
- "name": "detail",
14816
- "optional": true,
14817
- "type": {
14818
- "text": "unknown"
14450
+ "text": "HTMLElement"
14819
14451
  }
14820
14452
  }
14821
14453
  ]
@@ -14826,10 +14458,10 @@
14826
14458
  "exports": [
14827
14459
  {
14828
14460
  "kind": "js",
14829
- "name": "TextareaController",
14461
+ "name": "MouseFocusController",
14830
14462
  "declaration": {
14831
- "name": "TextareaController",
14832
- "module": "src/components/prompt-line/src/prompt-line-controller.ts"
14463
+ "name": "MouseFocusController",
14464
+ "module": "src/components/prompt-line/src/prompt-line-mouse-focus.ts"
14833
14465
  }
14834
14466
  }
14835
14467
  ]
@@ -14908,15 +14540,6 @@
14908
14540
  "kind": "javascript-module",
14909
14541
  "path": "src/components/prompt-line/src/prompt-line-rich-runtime.ts",
14910
14542
  "declarations": [
14911
- {
14912
- "kind": "variable",
14913
- "name": "PM_KEYBOARD_FOCUS_CLASS",
14914
- "type": {
14915
- "text": "string"
14916
- },
14917
- "default": "'cds-aichat--input-pm-content--keyboard-focus'",
14918
- "description": "Exported so tests assert the ring without retyping the literal."
14919
- },
14920
14543
  {
14921
14544
  "kind": "function",
14922
14545
  "name": "createRichController",
@@ -14929,14 +14552,6 @@
14929
14552
  }
14930
14553
  ],
14931
14554
  "exports": [
14932
- {
14933
- "kind": "js",
14934
- "name": "PM_KEYBOARD_FOCUS_CLASS",
14935
- "declaration": {
14936
- "name": "PM_KEYBOARD_FOCUS_CLASS",
14937
- "module": "src/components/prompt-line/src/prompt-line-rich-runtime.ts"
14938
- }
14939
- },
14940
14555
  {
14941
14556
  "kind": "js",
14942
14557
  "name": "createRichController",
@@ -15112,26 +14727,652 @@
15112
14727
  "type": {
15113
14728
  "text": "boolean"
15114
14729
  },
15115
- "default": "false",
15116
- "description": "Whether the prompt-line shell is disabled.",
15117
- "fieldName": "disabled"
14730
+ "default": "false",
14731
+ "description": "Whether the prompt-line shell is disabled.",
14732
+ "fieldName": "disabled"
14733
+ }
14734
+ ],
14735
+ "superclass": {
14736
+ "name": "LitElement",
14737
+ "package": "lit"
14738
+ },
14739
+ "tagName": "cds-aichat-prompt-line-shell",
14740
+ "customElement": true
14741
+ }
14742
+ ],
14743
+ "exports": [
14744
+ {
14745
+ "kind": "js",
14746
+ "name": "default",
14747
+ "declaration": {
14748
+ "name": "PromptLineShellElement",
14749
+ "module": "src/components/prompt-line/src/prompt-line-shell.ts"
14750
+ }
14751
+ }
14752
+ ]
14753
+ },
14754
+ {
14755
+ "kind": "javascript-module",
14756
+ "path": "src/components/prompt-line/src/prompt-line-textarea-runtime.ts",
14757
+ "declarations": [
14758
+ {
14759
+ "kind": "class",
14760
+ "description": "`<textarea>`-backed controller. Tiptap-free; emits the same prompt events as\nthe rich editor. Auto-grows via a hidden mirror, capped at\n`PROMPT_LINE_MAX_BLOCK_SIZE` with the field scrolling past it — the same cap\nthe rich contenteditable applies (see ./tiptap/editor-styles.ts), so the\ntextarea→rich swap is imperceptible.",
14761
+ "name": "TextareaController",
14762
+ "members": [
14763
+ {
14764
+ "kind": "field",
14765
+ "name": "_wrap",
14766
+ "type": {
14767
+ "text": "HTMLDivElement | null"
14768
+ },
14769
+ "privacy": "private",
14770
+ "default": "null"
14771
+ },
14772
+ {
14773
+ "kind": "field",
14774
+ "name": "_textarea",
14775
+ "type": {
14776
+ "text": "HTMLTextAreaElement | null"
14777
+ },
14778
+ "privacy": "private",
14779
+ "default": "null"
14780
+ },
14781
+ {
14782
+ "kind": "field",
14783
+ "name": "_mirror",
14784
+ "type": {
14785
+ "text": "HTMLDivElement | null"
14786
+ },
14787
+ "privacy": "private",
14788
+ "default": "null"
14789
+ },
14790
+ {
14791
+ "kind": "field",
14792
+ "name": "_host",
14793
+ "type": {
14794
+ "text": "HTMLElement | null"
14795
+ },
14796
+ "privacy": "private",
14797
+ "default": "null"
14798
+ },
14799
+ {
14800
+ "kind": "field",
14801
+ "name": "_isTyping",
14802
+ "type": {
14803
+ "text": "boolean"
14804
+ },
14805
+ "privacy": "private",
14806
+ "default": "false"
14807
+ },
14808
+ {
14809
+ "kind": "field",
14810
+ "name": "_typingTimer",
14811
+ "type": {
14812
+ "text": "ReturnType<typeof setTimeout> | null"
14813
+ },
14814
+ "privacy": "private",
14815
+ "default": "null"
14816
+ },
14817
+ {
14818
+ "kind": "method",
14819
+ "name": "mount",
14820
+ "return": {
14821
+ "type": {
14822
+ "text": "void"
14823
+ }
14824
+ },
14825
+ "parameters": [
14826
+ {
14827
+ "name": "host",
14828
+ "type": {
14829
+ "text": "HTMLElement"
14830
+ }
14831
+ },
14832
+ {
14833
+ "name": "init",
14834
+ "type": {
14835
+ "text": "PromptLineControllerInit"
14836
+ }
14837
+ }
14838
+ ]
14839
+ },
14840
+ {
14841
+ "kind": "method",
14842
+ "name": "destroy",
14843
+ "return": {
14844
+ "type": {
14845
+ "text": "void"
14846
+ }
14847
+ }
14848
+ },
14849
+ {
14850
+ "kind": "method",
14851
+ "name": "getValue",
14852
+ "return": {
14853
+ "type": {
14854
+ "text": "string"
14855
+ }
14856
+ }
14857
+ },
14858
+ {
14859
+ "kind": "method",
14860
+ "name": "setContent",
14861
+ "return": {
14862
+ "type": {
14863
+ "text": "void"
14864
+ }
14865
+ },
14866
+ "parameters": [
14867
+ {
14868
+ "name": "next",
14869
+ "type": {
14870
+ "text": "JSONContent | string | SetContentUpdater"
14871
+ }
14872
+ }
14873
+ ]
14874
+ },
14875
+ {
14876
+ "kind": "method",
14877
+ "name": "insertContent",
14878
+ "return": {
14879
+ "type": {
14880
+ "text": "void"
14881
+ }
14882
+ },
14883
+ "parameters": [
14884
+ {
14885
+ "name": "content",
14886
+ "type": {
14887
+ "text": "JSONContent | string"
14888
+ }
14889
+ },
14890
+ {
14891
+ "name": "opts",
14892
+ "default": "{}",
14893
+ "type": {
14894
+ "text": "{ at?: number }"
14895
+ }
14896
+ }
14897
+ ]
14898
+ },
14899
+ {
14900
+ "kind": "method",
14901
+ "name": "clearContent",
14902
+ "return": {
14903
+ "type": {
14904
+ "text": "void"
14905
+ }
14906
+ }
14907
+ },
14908
+ {
14909
+ "kind": "method",
14910
+ "name": "getEditor",
14911
+ "return": {
14912
+ "type": {
14913
+ "text": "Editor | null"
14914
+ }
14915
+ }
14916
+ },
14917
+ {
14918
+ "kind": "method",
14919
+ "name": "focus",
14920
+ "return": {
14921
+ "type": {
14922
+ "text": "void"
14923
+ }
14924
+ },
14925
+ "parameters": [
14926
+ {
14927
+ "name": "keyboardFocus",
14928
+ "type": {
14929
+ "text": "boolean"
14930
+ }
14931
+ }
14932
+ ]
14933
+ },
14934
+ {
14935
+ "kind": "method",
14936
+ "name": "blur",
14937
+ "return": {
14938
+ "type": {
14939
+ "text": "void"
14940
+ }
14941
+ }
14942
+ },
14943
+ {
14944
+ "kind": "method",
14945
+ "name": "hasFocus",
14946
+ "return": {
14947
+ "type": {
14948
+ "text": "boolean"
14949
+ }
14950
+ }
14951
+ },
14952
+ {
14953
+ "kind": "method",
14954
+ "name": "getSelection",
14955
+ "return": {
14956
+ "type": {
14957
+ "text": "{ from: number; to: number }"
14958
+ }
14959
+ }
14960
+ },
14961
+ {
14962
+ "kind": "method",
14963
+ "name": "setTextSelection",
14964
+ "return": {
14965
+ "type": {
14966
+ "text": "void"
14967
+ }
14968
+ },
14969
+ "parameters": [
14970
+ {
14971
+ "name": "pos",
14972
+ "type": {
14973
+ "text": "number | { from: number; to: number }"
14974
+ }
14975
+ }
14976
+ ]
14977
+ },
14978
+ {
14979
+ "kind": "method",
14980
+ "name": "selectAll",
14981
+ "return": {
14982
+ "type": {
14983
+ "text": "void"
14984
+ }
14985
+ }
14986
+ },
14987
+ {
14988
+ "kind": "method",
14989
+ "name": "setEditable",
14990
+ "return": {
14991
+ "type": {
14992
+ "text": "void"
14993
+ }
14994
+ },
14995
+ "parameters": [
14996
+ {
14997
+ "name": "editable",
14998
+ "type": {
14999
+ "text": "boolean"
15000
+ }
15001
+ }
15002
+ ]
15003
+ },
15004
+ {
15005
+ "kind": "method",
15006
+ "name": "setPlaceholder",
15007
+ "return": {
15008
+ "type": {
15009
+ "text": "void"
15010
+ }
15011
+ },
15012
+ "parameters": [
15013
+ {
15014
+ "name": "placeholder",
15015
+ "type": {
15016
+ "text": "string"
15017
+ }
15018
+ }
15019
+ ]
15020
+ },
15021
+ {
15022
+ "kind": "method",
15023
+ "name": "setAriaLabel",
15024
+ "return": {
15025
+ "type": {
15026
+ "text": "void"
15027
+ }
15028
+ },
15029
+ "parameters": [
15030
+ {
15031
+ "name": "ariaLabel",
15032
+ "type": {
15033
+ "text": "string"
15034
+ }
15035
+ }
15036
+ ]
15037
+ },
15038
+ {
15039
+ "kind": "method",
15040
+ "name": "setTestId",
15041
+ "return": {
15042
+ "type": {
15043
+ "text": "void"
15044
+ }
15045
+ },
15046
+ "parameters": [
15047
+ {
15048
+ "name": "testId",
15049
+ "type": {
15050
+ "text": "string"
15051
+ }
15052
+ }
15053
+ ]
15054
+ },
15055
+ {
15056
+ "kind": "method",
15057
+ "name": "setExtensions",
15058
+ "return": {
15059
+ "type": {
15060
+ "text": "void"
15061
+ }
15062
+ },
15063
+ "parameters": [
15064
+ {
15065
+ "name": "_extensions",
15066
+ "type": {
15067
+ "text": "Extension[]"
15068
+ }
15069
+ }
15070
+ ]
15071
+ },
15072
+ {
15073
+ "kind": "method",
15074
+ "name": "setComposing",
15075
+ "return": {
15076
+ "type": {
15077
+ "text": "void"
15078
+ }
15079
+ },
15080
+ "parameters": [
15081
+ {
15082
+ "name": "_composing",
15083
+ "type": {
15084
+ "text": "boolean"
15085
+ }
15086
+ }
15087
+ ]
15088
+ },
15089
+ {
15090
+ "kind": "method",
15091
+ "name": "undo",
15092
+ "return": {
15093
+ "type": {
15094
+ "text": "boolean"
15095
+ }
15096
+ }
15097
+ },
15098
+ {
15099
+ "kind": "method",
15100
+ "name": "redo",
15101
+ "return": {
15102
+ "type": {
15103
+ "text": "boolean"
15104
+ }
15105
+ }
15106
+ },
15107
+ {
15108
+ "kind": "field",
15109
+ "name": "_onInput",
15110
+ "privacy": "private"
15111
+ },
15112
+ {
15113
+ "kind": "field",
15114
+ "name": "_onKeydown",
15115
+ "privacy": "private"
15116
+ },
15117
+ {
15118
+ "kind": "field",
15119
+ "name": "_onFocus",
15120
+ "privacy": "private"
15121
+ },
15122
+ {
15123
+ "kind": "field",
15124
+ "name": "_onBlur",
15125
+ "privacy": "private"
15126
+ },
15127
+ {
15128
+ "kind": "method",
15129
+ "name": "_setValue",
15130
+ "privacy": "private",
15131
+ "return": {
15132
+ "type": {
15133
+ "text": "void"
15134
+ }
15135
+ },
15136
+ "parameters": [
15137
+ {
15138
+ "name": "text",
15139
+ "type": {
15140
+ "text": "string"
15141
+ }
15142
+ },
15143
+ {
15144
+ "name": "emit",
15145
+ "type": {
15146
+ "text": "boolean"
15147
+ }
15148
+ }
15149
+ ],
15150
+ "description": "Programmatic value write: updates the field, mirror, and emits change."
15151
+ },
15152
+ {
15153
+ "kind": "method",
15154
+ "name": "_emitChange",
15155
+ "privacy": "private",
15156
+ "return": {
15157
+ "type": {
15158
+ "text": "void"
15159
+ }
15160
+ }
15161
+ },
15162
+ {
15163
+ "kind": "method",
15164
+ "name": "_syncMirror",
15165
+ "privacy": "private",
15166
+ "return": {
15167
+ "type": {
15168
+ "text": "void"
15169
+ }
15170
+ }
15171
+ },
15172
+ {
15173
+ "kind": "method",
15174
+ "name": "_markTyping",
15175
+ "privacy": "private",
15176
+ "return": {
15177
+ "type": {
15178
+ "text": "void"
15179
+ }
15180
+ }
15181
+ },
15182
+ {
15183
+ "kind": "method",
15184
+ "name": "_clearTypingTimer",
15185
+ "privacy": "private",
15186
+ "return": {
15187
+ "type": {
15188
+ "text": "void"
15189
+ }
15190
+ }
15191
+ },
15192
+ {
15193
+ "kind": "method",
15194
+ "name": "_dispatch",
15195
+ "privacy": "private",
15196
+ "return": {
15197
+ "type": {
15198
+ "text": "void"
15199
+ }
15200
+ },
15201
+ "parameters": [
15202
+ {
15203
+ "name": "name",
15204
+ "type": {
15205
+ "text": "string"
15206
+ }
15207
+ },
15208
+ {
15209
+ "name": "detail",
15210
+ "optional": true,
15211
+ "type": {
15212
+ "text": "unknown"
15213
+ }
15214
+ }
15215
+ ]
15216
+ },
15217
+ {
15218
+ "kind": "field",
15219
+ "name": "_focusFromMouse",
15220
+ "type": {
15221
+ "text": "boolean"
15222
+ },
15223
+ "privacy": "protected",
15224
+ "default": "false",
15225
+ "inheritedFrom": {
15226
+ "name": "MouseFocusController",
15227
+ "module": "src/components/prompt-line/src/prompt-line-mouse-focus.ts"
15228
+ }
15229
+ },
15230
+ {
15231
+ "kind": "field",
15232
+ "name": "_lastFocusFromMouse",
15233
+ "type": {
15234
+ "text": "boolean"
15235
+ },
15236
+ "privacy": "protected",
15237
+ "default": "false",
15238
+ "inheritedFrom": {
15239
+ "name": "MouseFocusController",
15240
+ "module": "src/components/prompt-line/src/prompt-line-mouse-focus.ts"
15241
+ }
15242
+ },
15243
+ {
15244
+ "kind": "field",
15245
+ "name": "_nextFocusOriginKeyboard",
15246
+ "type": {
15247
+ "text": "boolean | null"
15248
+ },
15249
+ "privacy": "private",
15250
+ "default": "null",
15251
+ "description": "Set by `focus(keyboardFocus)` to pin the keyboard value for the next focus\nevent, bypassing pointer-event tracking. Takes priority over\n`_focusFromMouse` so a programmatic focus call cannot be clobbered by a\nsynthetic pointer event fired during the same `.focus()` call (observed in\nChromium/Firefox headless).",
15252
+ "inheritedFrom": {
15253
+ "name": "MouseFocusController",
15254
+ "module": "src/components/prompt-line/src/prompt-line-mouse-focus.ts"
15255
+ }
15256
+ },
15257
+ {
15258
+ "kind": "field",
15259
+ "name": "_setMouseFlag",
15260
+ "privacy": "protected",
15261
+ "readonly": true,
15262
+ "inheritedFrom": {
15263
+ "name": "MouseFocusController",
15264
+ "module": "src/components/prompt-line/src/prompt-line-mouse-focus.ts"
15265
+ }
15266
+ },
15267
+ {
15268
+ "kind": "method",
15269
+ "name": "_setNextFocusOrigin",
15270
+ "privacy": "protected",
15271
+ "return": {
15272
+ "type": {
15273
+ "text": "void"
15274
+ }
15275
+ },
15276
+ "parameters": [
15277
+ {
15278
+ "name": "keyboard",
15279
+ "type": {
15280
+ "text": "boolean"
15281
+ }
15282
+ }
15283
+ ],
15284
+ "description": "Pins the keyboard value for the next focus event. Call this in\n`focus(keyboardFocus)` before delegating to the native `.focus()`.",
15285
+ "inheritedFrom": {
15286
+ "name": "MouseFocusController",
15287
+ "module": "src/components/prompt-line/src/prompt-line-mouse-focus.ts"
15288
+ }
15289
+ },
15290
+ {
15291
+ "kind": "method",
15292
+ "name": "_consumeMouseFocus",
15293
+ "privacy": "protected",
15294
+ "return": {
15295
+ "type": {
15296
+ "text": "boolean"
15297
+ }
15298
+ },
15299
+ "description": "Called at the start of the focus event. Consumes `_focusFromMouse` (or the\npinned origin set by `_setNextFocusOrigin()`), latches the result into\n`_lastFocusFromMouse`, and returns whether focus was mouse-driven.",
15300
+ "inheritedFrom": {
15301
+ "name": "MouseFocusController",
15302
+ "module": "src/components/prompt-line/src/prompt-line-mouse-focus.ts"
15303
+ }
15304
+ },
15305
+ {
15306
+ "kind": "method",
15307
+ "name": "getKeyboardFocus",
15308
+ "return": {
15309
+ "type": {
15310
+ "text": "boolean"
15311
+ }
15312
+ },
15313
+ "inheritedFrom": {
15314
+ "name": "MouseFocusController",
15315
+ "module": "src/components/prompt-line/src/prompt-line-mouse-focus.ts"
15316
+ }
15317
+ },
15318
+ {
15319
+ "kind": "method",
15320
+ "name": "_attachMouseFocusListeners",
15321
+ "privacy": "protected",
15322
+ "return": {
15323
+ "type": {
15324
+ "text": "void"
15325
+ }
15326
+ },
15327
+ "parameters": [
15328
+ {
15329
+ "name": "host",
15330
+ "type": {
15331
+ "text": "HTMLElement"
15332
+ }
15333
+ }
15334
+ ],
15335
+ "inheritedFrom": {
15336
+ "name": "MouseFocusController",
15337
+ "module": "src/components/prompt-line/src/prompt-line-mouse-focus.ts"
15338
+ }
15339
+ },
15340
+ {
15341
+ "kind": "method",
15342
+ "name": "_detachMouseFocusListeners",
15343
+ "privacy": "protected",
15344
+ "return": {
15345
+ "type": {
15346
+ "text": "void"
15347
+ }
15348
+ },
15349
+ "parameters": [
15350
+ {
15351
+ "name": "host",
15352
+ "type": {
15353
+ "text": "HTMLElement"
15354
+ }
15355
+ }
15356
+ ],
15357
+ "inheritedFrom": {
15358
+ "name": "MouseFocusController",
15359
+ "module": "src/components/prompt-line/src/prompt-line-mouse-focus.ts"
15360
+ }
15118
15361
  }
15119
15362
  ],
15120
15363
  "superclass": {
15121
- "name": "LitElement",
15122
- "package": "lit"
15123
- },
15124
- "tagName": "cds-aichat-prompt-line-shell",
15125
- "customElement": true
15364
+ "name": "MouseFocusController",
15365
+ "module": "/src/components/prompt-line/src/prompt-line-mouse-focus.js"
15366
+ }
15126
15367
  }
15127
15368
  ],
15128
15369
  "exports": [
15129
15370
  {
15130
15371
  "kind": "js",
15131
- "name": "default",
15372
+ "name": "TextareaController",
15132
15373
  "declaration": {
15133
- "name": "PromptLineShellElement",
15134
- "module": "src/components/prompt-line/src/prompt-line-shell.ts"
15374
+ "name": "TextareaController",
15375
+ "module": "src/components/prompt-line/src/prompt-line-textarea-runtime.ts"
15135
15376
  }
15136
15377
  }
15137
15378
  ]
@@ -15200,7 +15441,7 @@
15200
15441
  "type": {
15201
15442
  "text": "string"
15202
15443
  },
15203
- "default": "''",
15444
+ "default": "'Message'",
15204
15445
  "description": "Accessible label for the editing surface.",
15205
15446
  "attribute": "aria-label",
15206
15447
  "reflects": true
@@ -15683,7 +15924,7 @@
15683
15924
  "type": {
15684
15925
  "text": "string"
15685
15926
  },
15686
- "default": "''",
15927
+ "default": "'Message'",
15687
15928
  "description": "Accessible label for the editing surface.",
15688
15929
  "fieldName": "ariaLabel"
15689
15930
  },
@@ -20080,44 +20321,6 @@
20080
20321
  }
20081
20322
  ],
20082
20323
  "description": "Detect the audio source type from a URL"
20083
- },
20084
- {
20085
- "kind": "function",
20086
- "name": "isSoundCloudUrl",
20087
- "return": {
20088
- "type": {
20089
- "text": ""
20090
- }
20091
- },
20092
- "parameters": [
20093
- {
20094
- "name": "url",
20095
- "type": {
20096
- "text": "string"
20097
- },
20098
- "description": "The URL to check"
20099
- }
20100
- ],
20101
- "description": "Check if a URL is a SoundCloud audio"
20102
- },
20103
- {
20104
- "kind": "function",
20105
- "name": "isNativeAudioUrl",
20106
- "return": {
20107
- "type": {
20108
- "text": ""
20109
- }
20110
- },
20111
- "parameters": [
20112
- {
20113
- "name": "url",
20114
- "type": {
20115
- "text": "string"
20116
- },
20117
- "description": "The URL to check"
20118
- }
20119
- ],
20120
- "description": "Check if a URL is a native audio file"
20121
20324
  }
20122
20325
  ],
20123
20326
  "exports": [
@@ -20128,22 +20331,6 @@
20128
20331
  "name": "detectAudioSource",
20129
20332
  "module": "src/components/audio-player/src/utils/url-detector.ts"
20130
20333
  }
20131
- },
20132
- {
20133
- "kind": "js",
20134
- "name": "isSoundCloudUrl",
20135
- "declaration": {
20136
- "name": "isSoundCloudUrl",
20137
- "module": "src/components/audio-player/src/utils/url-detector.ts"
20138
- }
20139
- },
20140
- {
20141
- "kind": "js",
20142
- "name": "isNativeAudioUrl",
20143
- "declaration": {
20144
- "name": "isNativeAudioUrl",
20145
- "module": "src/components/audio-player/src/utils/url-detector.ts"
20146
- }
20147
20334
  }
20148
20335
  ]
20149
20336
  },
@@ -20195,16 +20382,6 @@
20195
20382
  }
20196
20383
  },
20197
20384
  "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."
20198
- },
20199
- {
20200
- "kind": "function",
20201
- "name": "loadCodeSnippetDeps",
20202
- "return": {
20203
- "type": {
20204
- "text": "Promise<CodeMirrorRuntimeModule>"
20205
- }
20206
- },
20207
- "description": "Public helper so tests or higher-level packages can preload the heavy\nCodeMirror dependencies ahead of time (e.g., in Jest setup files)."
20208
20385
  }
20209
20386
  ],
20210
20387
  "exports": [
@@ -20216,14 +20393,6 @@
20216
20393
  "module": "src/components/code-snippet/src/codemirror/codemirror-loader.ts"
20217
20394
  }
20218
20395
  },
20219
- {
20220
- "kind": "js",
20221
- "name": "loadCodeSnippetDeps",
20222
- "declaration": {
20223
- "name": "loadCodeSnippetDeps",
20224
- "module": "src/components/code-snippet/src/codemirror/codemirror-loader.ts"
20225
- }
20226
- },
20227
20396
  {
20228
20397
  "kind": "js",
20229
20398
  "name": "CodeMirrorRuntimeModule",
@@ -20929,14 +21098,6 @@
20929
21098
  "name": "markdownItAttrs",
20930
21099
  "module": "src/components/markdown/src/plugins/markdown-it-attrs.ts"
20931
21100
  }
20932
- },
20933
- {
20934
- "kind": "js",
20935
- "name": "default",
20936
- "declaration": {
20937
- "name": "markdownItAttrs",
20938
- "module": "src/components/markdown/src/plugins/markdown-it-attrs.ts"
20939
- }
20940
21101
  }
20941
21102
  ]
20942
21103
  },
@@ -21434,66 +21595,6 @@
21434
21595
  "kind": "javascript-module",
21435
21596
  "path": "src/components/markdown/src/utils/table-helpers.ts",
21436
21597
  "declarations": [
21437
- {
21438
- "kind": "function",
21439
- "name": "DEFAULT_PAGINATION_SUPPLEMENTAL_TEXT",
21440
- "parameters": [
21441
- {
21442
- "name": "{\n count,\n}",
21443
- "type": {
21444
- "text": "{\n count: number;\n}"
21445
- }
21446
- }
21447
- ]
21448
- },
21449
- {
21450
- "kind": "function",
21451
- "name": "DEFAULT_PAGINATION_STATUS_TEXT",
21452
- "parameters": [
21453
- {
21454
- "name": "{\n start,\n end,\n count,\n}",
21455
- "type": {
21456
- "text": "{\n start: number;\n end: number;\n count: number;\n}"
21457
- }
21458
- }
21459
- ]
21460
- },
21461
- {
21462
- "kind": "function",
21463
- "name": "extractTableData",
21464
- "return": {
21465
- "type": {
21466
- "text": "{\n headers: TableCellData[];\n rows: TableCellData[][];\n}"
21467
- }
21468
- },
21469
- "parameters": [
21470
- {
21471
- "name": "tableNode",
21472
- "type": {
21473
- "text": "TokenTree"
21474
- }
21475
- }
21476
- ],
21477
- "description": "Extracts tabular data from a table TokenTree node.\n\nConverts the hierarchical markdown table structure into the flat\nheader/rows format expected by the cds-aichat-table component while retaining\nthe TokenTree children required for rich rendering within cells."
21478
- },
21479
- {
21480
- "kind": "function",
21481
- "name": "extractTextContent",
21482
- "return": {
21483
- "type": {
21484
- "text": "string"
21485
- }
21486
- },
21487
- "parameters": [
21488
- {
21489
- "name": "node",
21490
- "type": {
21491
- "text": "TokenTree"
21492
- }
21493
- }
21494
- ],
21495
- "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."
21496
- },
21497
21598
  {
21498
21599
  "kind": "function",
21499
21600
  "name": "renderTable",
@@ -21544,38 +21645,6 @@
21544
21645
  }
21545
21646
  ],
21546
21647
  "exports": [
21547
- {
21548
- "kind": "js",
21549
- "name": "DEFAULT_PAGINATION_SUPPLEMENTAL_TEXT",
21550
- "declaration": {
21551
- "name": "DEFAULT_PAGINATION_SUPPLEMENTAL_TEXT",
21552
- "module": "src/components/markdown/src/utils/table-helpers.ts"
21553
- }
21554
- },
21555
- {
21556
- "kind": "js",
21557
- "name": "DEFAULT_PAGINATION_STATUS_TEXT",
21558
- "declaration": {
21559
- "name": "DEFAULT_PAGINATION_STATUS_TEXT",
21560
- "module": "src/components/markdown/src/utils/table-helpers.ts"
21561
- }
21562
- },
21563
- {
21564
- "kind": "js",
21565
- "name": "extractTableData",
21566
- "declaration": {
21567
- "name": "extractTableData",
21568
- "module": "src/components/markdown/src/utils/table-helpers.ts"
21569
- }
21570
- },
21571
- {
21572
- "kind": "js",
21573
- "name": "extractTextContent",
21574
- "declaration": {
21575
- "name": "extractTextContent",
21576
- "module": "src/components/markdown/src/utils/table-helpers.ts"
21577
- }
21578
- },
21579
21648
  {
21580
21649
  "kind": "js",
21581
21650
  "name": "renderTable",
@@ -25604,82 +25673,6 @@
25604
25673
  }
25605
25674
  ],
25606
25675
  "description": "Detect the video source type from a URL"
25607
- },
25608
- {
25609
- "kind": "function",
25610
- "name": "isYouTubeUrl",
25611
- "return": {
25612
- "type": {
25613
- "text": ""
25614
- }
25615
- },
25616
- "parameters": [
25617
- {
25618
- "name": "url",
25619
- "type": {
25620
- "text": "string"
25621
- },
25622
- "description": "The URL to check"
25623
- }
25624
- ],
25625
- "description": "Check if a URL is a YouTube video"
25626
- },
25627
- {
25628
- "kind": "function",
25629
- "name": "isVimeoUrl",
25630
- "return": {
25631
- "type": {
25632
- "text": ""
25633
- }
25634
- },
25635
- "parameters": [
25636
- {
25637
- "name": "url",
25638
- "type": {
25639
- "text": "string"
25640
- },
25641
- "description": "The URL to check"
25642
- }
25643
- ],
25644
- "description": "Check if a URL is a Vimeo video"
25645
- },
25646
- {
25647
- "kind": "function",
25648
- "name": "isKalturaUrl",
25649
- "return": {
25650
- "type": {
25651
- "text": ""
25652
- }
25653
- },
25654
- "parameters": [
25655
- {
25656
- "name": "url",
25657
- "type": {
25658
- "text": "string"
25659
- },
25660
- "description": "The URL to check"
25661
- }
25662
- ],
25663
- "description": "Check if a URL is a Kaltura video"
25664
- },
25665
- {
25666
- "kind": "function",
25667
- "name": "isNativeVideoUrl",
25668
- "return": {
25669
- "type": {
25670
- "text": ""
25671
- }
25672
- },
25673
- "parameters": [
25674
- {
25675
- "name": "url",
25676
- "type": {
25677
- "text": "string"
25678
- },
25679
- "description": "The URL to check"
25680
- }
25681
- ],
25682
- "description": "Check if a URL is a native video file"
25683
25676
  }
25684
25677
  ],
25685
25678
  "exports": [
@@ -25690,38 +25683,6 @@
25690
25683
  "name": "detectVideoSource",
25691
25684
  "module": "src/components/video-player/src/utils/url-detector.ts"
25692
25685
  }
25693
- },
25694
- {
25695
- "kind": "js",
25696
- "name": "isYouTubeUrl",
25697
- "declaration": {
25698
- "name": "isYouTubeUrl",
25699
- "module": "src/components/video-player/src/utils/url-detector.ts"
25700
- }
25701
- },
25702
- {
25703
- "kind": "js",
25704
- "name": "isVimeoUrl",
25705
- "declaration": {
25706
- "name": "isVimeoUrl",
25707
- "module": "src/components/video-player/src/utils/url-detector.ts"
25708
- }
25709
- },
25710
- {
25711
- "kind": "js",
25712
- "name": "isKalturaUrl",
25713
- "declaration": {
25714
- "name": "isKalturaUrl",
25715
- "module": "src/components/video-player/src/utils/url-detector.ts"
25716
- }
25717
- },
25718
- {
25719
- "kind": "js",
25720
- "name": "isNativeVideoUrl",
25721
- "declaration": {
25722
- "name": "isNativeVideoUrl",
25723
- "module": "src/components/video-player/src/utils/url-detector.ts"
25724
- }
25725
25686
  }
25726
25687
  ]
25727
25688
  }