@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.
- package/custom-elements.json +736 -775
- package/es/components/audio-player/src/utils/url-detector.d.ts +0 -14
- package/es/components/audio-player/src/utils/url-detector.js +1 -19
- package/es/components/audio-player/src/utils/url-detector.js.map +1 -1
- package/es/components/card/src/card-footer.scss.js +1 -1
- package/es/components/card/src/card-steps.scss.js +1 -1
- package/es/components/card/src/card.scss.js +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-loader.d.ts +0 -5
- package/es/components/code-snippet/src/codemirror/codemirror-loader.js +1 -8
- package/es/components/code-snippet/src/codemirror/codemirror-loader.js.map +1 -1
- package/es/components/markdown/src/markdown-token-tree.js +1 -1
- package/es/components/markdown/src/plugins/markdown-it-attrs.d.ts +0 -1
- package/es/components/markdown/src/plugins/markdown-it-attrs.js +1 -1
- package/es/components/markdown/src/plugins/markdown-it-attrs.js.map +1 -1
- package/es/components/markdown/src/utils/plugin-fallback.js +3 -1
- package/es/components/markdown/src/utils/plugin-fallback.js.map +1 -1
- package/es/components/markdown/src/utils/table-helpers.d.ts +0 -26
- package/es/components/markdown/src/utils/table-helpers.js +1 -4
- package/es/components/markdown/src/utils/table-helpers.js.map +1 -1
- package/es/components/prompt-line/autocomplete/src/autocomplete.scss.js +1 -1
- package/es/components/prompt-line/src/prompt-line-constants.d.ts +9 -1
- package/es/components/prompt-line/src/prompt-line-constants.js +10 -2
- package/es/components/prompt-line/src/prompt-line-constants.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-controller.d.ts +25 -78
- package/es/components/prompt-line/src/prompt-line-controller.js +0 -389
- package/es/components/prompt-line/src/prompt-line-controller.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-mouse-focus.d.ts +45 -0
- package/es/components/prompt-line/src/prompt-line-mouse-focus.js +83 -0
- package/es/components/prompt-line/src/prompt-line-mouse-focus.js.map +1 -0
- package/es/components/prompt-line/src/prompt-line-rich-runtime.d.ts +0 -2
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js +30 -53
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-textarea-runtime.d.ts +87 -0
- package/es/components/prompt-line/src/prompt-line-textarea-runtime.js +390 -0
- package/es/components/prompt-line/src/prompt-line-textarea-runtime.js.map +1 -0
- package/es/components/prompt-line/src/prompt-line.d.ts +1 -1
- package/es/components/prompt-line/src/prompt-line.js +6 -5
- package/es/components/prompt-line/src/prompt-line.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/extension-equivalence.d.ts +2 -1
- package/es/components/prompt-line/src/tiptap/extension-equivalence.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/typing-indicator.js +1 -1
- package/es/components/prompt-line/src/tiptap/typing-indicator.js.map +1 -1
- package/es/components/truncated-text/src/truncated-text.js +2 -2
- package/es/components/truncated-text/src/truncated-text.js.map +1 -1
- package/es/components/video-player/src/utils/url-detector.d.ts +0 -28
- package/es/components/video-player/src/utils/url-detector.js +1 -37
- package/es/components/video-player/src/utils/url-detector.js.map +1 -1
- package/es/globals/utils/browser-utils.d.ts +3 -5
- package/es/globals/utils/browser-utils.js +1 -1
- package/es/globals/utils/browser-utils.js.map +1 -1
- package/es/globals/utils/csv.d.ts +0 -1
- package/es/globals/utils/csv.js.map +1 -1
- package/es/react/truncated-text.d.ts +12 -0
- package/es/react/truncated-text.js +28 -0
- package/es/react/truncated-text.js.map +1 -0
- package/es/testing/PageObjectId.d.ts +0 -4
- package/es/testing/PageObjectId.js.map +1 -1
- package/es/testing/load-all-lazy-deps.d.ts +1 -2
- package/es/testing/load-all-lazy-deps.js +3 -3
- package/es/testing/load-all-lazy-deps.js.map +1 -1
- package/es-custom/components/audio-player/src/utils/url-detector.d.ts +0 -14
- package/es-custom/components/audio-player/src/utils/url-detector.js +1 -19
- package/es-custom/components/audio-player/src/utils/url-detector.js.map +1 -1
- package/es-custom/components/card/src/card-footer.scss.js +1 -1
- package/es-custom/components/card/src/card-steps.scss.js +1 -1
- package/es-custom/components/card/src/card.scss.js +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.d.ts +0 -5
- package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.js +1 -8
- package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.js.map +1 -1
- package/es-custom/components/markdown/src/markdown-token-tree.js +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.d.ts +0 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js.map +1 -1
- package/es-custom/components/markdown/src/utils/plugin-fallback.js +3 -1
- package/es-custom/components/markdown/src/utils/plugin-fallback.js.map +1 -1
- package/es-custom/components/markdown/src/utils/table-helpers.d.ts +0 -26
- package/es-custom/components/markdown/src/utils/table-helpers.js +1 -4
- package/es-custom/components/markdown/src/utils/table-helpers.js.map +1 -1
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.scss.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-constants.d.ts +9 -1
- package/es-custom/components/prompt-line/src/prompt-line-constants.js +10 -2
- package/es-custom/components/prompt-line/src/prompt-line-constants.js.map +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-controller.d.ts +25 -78
- package/es-custom/components/prompt-line/src/prompt-line-controller.js +0 -389
- package/es-custom/components/prompt-line/src/prompt-line-controller.js.map +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-mouse-focus.d.ts +45 -0
- package/es-custom/components/prompt-line/src/prompt-line-mouse-focus.js +83 -0
- package/es-custom/components/prompt-line/src/prompt-line-mouse-focus.js.map +1 -0
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.d.ts +0 -2
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js +30 -53
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-textarea-runtime.d.ts +87 -0
- package/es-custom/components/prompt-line/src/prompt-line-textarea-runtime.js +390 -0
- package/es-custom/components/prompt-line/src/prompt-line-textarea-runtime.js.map +1 -0
- package/es-custom/components/prompt-line/src/prompt-line.d.ts +1 -1
- package/es-custom/components/prompt-line/src/prompt-line.js +6 -5
- package/es-custom/components/prompt-line/src/prompt-line.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/extension-equivalence.d.ts +2 -1
- package/es-custom/components/prompt-line/src/tiptap/extension-equivalence.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js +1 -1
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js.map +1 -1
- package/es-custom/components/truncated-text/src/truncated-text.js +2 -2
- package/es-custom/components/truncated-text/src/truncated-text.js.map +1 -1
- package/es-custom/components/video-player/src/utils/url-detector.d.ts +0 -28
- package/es-custom/components/video-player/src/utils/url-detector.js +1 -37
- package/es-custom/components/video-player/src/utils/url-detector.js.map +1 -1
- package/es-custom/globals/utils/browser-utils.d.ts +3 -5
- package/es-custom/globals/utils/browser-utils.js +1 -1
- package/es-custom/globals/utils/browser-utils.js.map +1 -1
- package/es-custom/globals/utils/csv.d.ts +0 -1
- package/es-custom/globals/utils/csv.js.map +1 -1
- package/es-custom/react/truncated-text.d.ts +12 -0
- package/es-custom/react/truncated-text.js +28 -0
- package/es-custom/react/truncated-text.js.map +1 -0
- package/es-custom/testing/PageObjectId.d.ts +0 -4
- package/es-custom/testing/PageObjectId.js.map +1 -1
- package/es-custom/testing/load-all-lazy-deps.d.ts +1 -2
- package/es-custom/testing/load-all-lazy-deps.js +3 -3
- package/es-custom/testing/load-all-lazy-deps.js.map +1 -1
- package/package.json +3 -4
- package/es/components/markdown/src/markdown.template.d.ts +0 -6
- package/es/components/markdown/src/markdown.template.js +0 -29
- package/es/components/markdown/src/markdown.template.js.map +0 -1
- package/es-custom/components/markdown/src/markdown.template.d.ts +0 -6
- package/es-custom/components/markdown/src/markdown.template.js +0 -29
- 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 {
|
|
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.
|
|
4
|
+
"version": "1.11.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": "
|
|
161
|
+
"gitHead": "27001f31bd5bc3d286e672818c4214156366f603"
|
|
163
162
|
}
|
|
@@ -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,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;;"}
|