@carbon/ai-chat-components 1.10.0 → 1.11.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 (126) hide show
  1. package/custom-elements.json +2063 -2102
  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
@@ -1 +1 @@
1
- {"version":3,"file":"load-all-lazy-deps.js","sources":["../../src/testing/load-all-lazy-deps.ts"],"sourcesContent":["/*\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\nimport { loadCodeSnippetDeps } from '../components/code-snippet/src/codemirror/codemirror-loader.js';\nimport { loadTableDeps } from '../components/table/src/table-loader.js';\n\n/**\n * Preloads all lazily loaded dependencies so test environments (like Jest)\n * can ensure the heavy components are ready before rendering.\n *\n * Consumers can call this once during their test setup files.\n */\nexport async function loadAllLazyDeps(): Promise<void> {\n await Promise.all([loadCodeSnippetDeps(), loadTableDeps()]);\n}\n\nexport { loadCodeSnippetDeps, loadTableDeps };\n"],"names":[],"mappings":";;;;;;;;;;AAAA;;;;;;;AAOG;AAKH;;;;;AAKG;AACI,eAAe,eAAe,GAAA;AACnC,IAAA,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,mBAAmB,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC;AAC7D;;"}
1
+ {"version":3,"file":"load-all-lazy-deps.js","sources":["../../src/testing/load-all-lazy-deps.ts"],"sourcesContent":["/*\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\nimport { loadCodeMirrorRuntime } from '../components/code-snippet/src/codemirror/codemirror-loader.js';\nimport { loadTableDeps } from '../components/table/src/table-loader.js';\n\n/**\n * Preloads all lazily loaded dependencies so test environments (like Jest)\n * can ensure the heavy components are ready before rendering.\n *\n * Consumers can call this once during their test setup files.\n */\nexport async function loadAllLazyDeps(): Promise<void> {\n await Promise.all([loadCodeMirrorRuntime(), loadTableDeps()]);\n}\n\nexport { loadTableDeps };\n"],"names":[],"mappings":";;;;;;;;;;AAAA;;;;;;;AAOG;AAKH;;;;;AAKG;AACI,eAAe,eAAe,GAAA;AACnC,IAAA,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,qBAAqB,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC;AAC/D;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ai-chat-components",
3
3
  "description": "AI Chat Components",
4
- "version": "1.10.0",
4
+ "version": "1.11.0-rc.0",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -156,8 +156,7 @@
156
156
  "storybook": "^10.2.8",
157
157
  "typescript": "^5.2.2",
158
158
  "vite": "^8.0.16",
159
- "web-dev-server-plugin-lit-css": "^4.0.0",
160
- "webpack-dev-server": "^5.2.5"
159
+ "web-dev-server-plugin-lit-css": "^4.0.0"
161
160
  },
162
- "gitHead": "f9776c4fee0d81e7561b1bf7c6690ed03c238704"
161
+ "gitHead": "07756e4954ec84aadcbbfff83e1e81e265944f3b"
163
162
  }
@@ -1,6 +0,0 @@
1
- declare function markdownTemplate({ slotRef, onSlotChange, renderedContent, }: {
2
- slotRef: any;
3
- onSlotChange: () => void;
4
- renderedContent: unknown;
5
- }): import("lit-html").TemplateResult<1>;
6
- export { markdownTemplate };
@@ -1,29 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2025
3
- *
4
- * This source code is licensed under the Apache-2.0 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- import { html } from 'lit';
9
- import { ref } from 'lit/directives/ref.js';
10
-
11
- /*
12
- * Copyright IBM Corp. 2025, 2026
13
- *
14
- * This source code is licensed under the Apache-2.0 license found in the
15
- * LICENSE file in the root directory of this source tree.
16
- *
17
- * @license
18
- */
19
- function markdownTemplate({ slotRef, onSlotChange, renderedContent, }) {
20
- return html `
21
- <div class="cds-aichat-markdown-stack">${renderedContent}</div>
22
- <div aria-hidden="true" hidden>
23
- <slot ${ref(slotRef)} @slotchange=${onSlotChange}></slot>
24
- </div>
25
- `;
26
- }
27
-
28
- export { markdownTemplate };
29
- //# sourceMappingURL=markdown.template.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdown.template.js","sources":["../../../../src/components/markdown/src/markdown.template.ts"],"sourcesContent":["/*\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\nimport { html } from 'lit';\nimport { ref } from 'lit/directives/ref.js';\n\nfunction markdownTemplate({\n slotRef,\n onSlotChange,\n renderedContent,\n}: {\n slotRef: any;\n onSlotChange: () => void;\n renderedContent: unknown;\n}) {\n return html`\n <div class=\"cds-aichat-markdown-stack\">${renderedContent}</div>\n <div aria-hidden=\"true\" hidden>\n <slot ${ref(slotRef)} @slotchange=${onSlotChange}></slot>\n </div>\n `;\n}\n\nexport { markdownTemplate };\n"],"names":[],"mappings":";;;;;;;;;;AAAA;;;;;;;AAOG;AAKH,SAAS,gBAAgB,CAAC,EACxB,OAAO,EACP,YAAY,EACZ,eAAe,GAKhB,EAAA;AACC,IAAA,OAAO,IAAI,CAAA;6CACgC,eAAe,CAAA;;AAE9C,YAAA,EAAA,GAAG,CAAC,OAAO,CAAC,CAAA,aAAA,EAAgB,YAAY,CAAA;;GAEnD;AACH;;"}
@@ -1,6 +0,0 @@
1
- declare function markdownTemplate({ slotRef, onSlotChange, renderedContent, }: {
2
- slotRef: any;
3
- onSlotChange: () => void;
4
- renderedContent: unknown;
5
- }): import("lit-html").TemplateResult<1>;
6
- export { markdownTemplate };
@@ -1,29 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2025
3
- *
4
- * This source code is licensed under the Apache-2.0 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- import { html } from 'lit';
9
- import { ref } from 'lit/directives/ref.js';
10
-
11
- /*
12
- * Copyright IBM Corp. 2025, 2026
13
- *
14
- * This source code is licensed under the Apache-2.0 license found in the
15
- * LICENSE file in the root directory of this source tree.
16
- *
17
- * @license
18
- */
19
- function markdownTemplate({ slotRef, onSlotChange, renderedContent, }) {
20
- return html `
21
- <div class="cds-custom-aichat-markdown-stack">${renderedContent}</div>
22
- <div aria-hidden="true" hidden>
23
- <slot ${ref(slotRef)} @slotchange=${onSlotChange}></slot>
24
- </div>
25
- `;
26
- }
27
-
28
- export { markdownTemplate };
29
- //# sourceMappingURL=markdown.template.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdown.template.js","sources":["../../../../src/components/markdown/src/markdown.template.ts"],"sourcesContent":["/*\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\nimport { html } from 'lit';\nimport { ref } from 'lit/directives/ref.js';\n\nfunction markdownTemplate({\n slotRef,\n onSlotChange,\n renderedContent,\n}: {\n slotRef: any;\n onSlotChange: () => void;\n renderedContent: unknown;\n}) {\n return html`\n <div class=\"cds-custom-aichat-markdown-stack\">${renderedContent}</div>\n <div aria-hidden=\"true\" hidden>\n <slot ${ref(slotRef)} @slotchange=${onSlotChange}></slot>\n </div>\n `;\n}\n\nexport { markdownTemplate };\n"],"names":[],"mappings":";;;;;;;;;;AAAA;;;;;;;AAOG;AAKH,SAAS,gBAAgB,CAAC,EACxB,OAAO,EACP,YAAY,EACZ,eAAe,GAKhB,EAAA;AACC,IAAA,OAAO,IAAI,CAAA;6CACgC,eAAe,CAAA;;AAE9C,YAAA,EAAA,GAAG,CAAC,OAAO,CAAC,CAAA,aAAA,EAAgB,YAAY,CAAA;;GAEnD;AACH;;"}