@carbon/ai-chat-components 0.6.1 → 0.7.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.
- package/custom-elements.json +2611 -3856
- package/dist/16-BZMv8BLP.js +91 -0
- package/dist/{16-DYDOiPFg.js → 16-D66oSSKJ.js} +24 -24
- package/dist/16-DTIyOew7.js +91 -0
- package/dist/button-VYkJ5dwm.js +157 -0
- package/dist/button-skeleton-C44ojFOx.js +131 -0
- package/dist/card.min.js +193 -0
- package/dist/chain-of-thought.min.js +176 -158
- package/dist/chat-button.min.js +26 -26
- package/dist/checkbox-skeleton-B1dsTlWl.js +166 -0
- package/dist/{lit-element-CALvSsJe.js → class-map-CAQcKAyP.js} +41 -25
- package/dist/code-snippet.min.js +24 -24
- package/dist/codemirror-runtime-DjJTvK74.js +173 -0
- package/dist/{dockerfile-DqeVY5Wu.js → dockerfile-C5Ju62-g.js} +24 -24
- package/dist/{factor-DT3csLlE.js → factor-BLzOdeEw.js} +24 -24
- package/dist/feedback.min.js +74 -93
- package/dist/icon-button-B9XqYdUx.js +143 -0
- package/dist/{icon-loader-BjBTslVK.js → icon-loader-tzlfALFt.js} +26 -26
- package/dist/{if-defined-BVYgSqhJ.js → if-defined-DvPtK2Df.js} +25 -25
- package/dist/index--QAAkyqA.js +91 -0
- package/dist/{index-DWCU-zPy.js → index-1zAoDu0L.js} +24 -24
- package/dist/{index-CsQW_IZu.js → index-B6ll86Y6.js} +24 -24
- package/dist/index-B9DVtGsv.js +278 -0
- package/dist/index-BPU5uHmK.js +91 -0
- package/dist/index-BbWtDXd9.js +91 -0
- package/dist/index-BjsxSbgO.js +91 -0
- package/dist/index-BwI8x9E4.js +91 -0
- package/dist/index-C3KNlXVv.js +168 -0
- package/dist/index-CAdio42O.js +91 -0
- package/dist/index-CSMhs9Fm.js +91 -0
- package/dist/index-CU0IEHyz.js +91 -0
- package/dist/index-Cj-ZmC-W.js +91 -0
- package/dist/index-Ctl66nQF.js +91 -0
- package/dist/index-D7MLs7w5.js +91 -0
- package/dist/index-DH8wnvUn.js +91 -0
- package/dist/index-DWn_nnHo.js +91 -0
- package/dist/index-DpqlVRJ7.js +91 -0
- package/dist/index-Dx9Ms_uJ.js +91 -0
- package/dist/index-EwTPqhmw.js +91 -0
- package/dist/index-P1vutKel.js +91 -0
- package/dist/index-WQxGinYJ.js +91 -0
- package/dist/index-cK4rXRw-.js +91 -0
- package/dist/index-o-THaGga.js +91 -0
- package/dist/loading-icon-CRrLjNZH.js +106 -0
- package/dist/markdown.min.js +75 -73
- package/dist/{nsis-B-vzq3eT.js → nsis-Biw-VyZu.js} +24 -24
- package/dist/processing.min.js +26 -26
- package/dist/{pug-Flk_Hgat.js → pug-BuYdIlne.js} +24 -24
- package/dist/reasoning-steps.min.js +72 -41
- package/dist/{state-kzgjVNgy.js → state-CBq0UPBm.js} +24 -24
- package/dist/table-runtime-CzXXhWmg.js +510 -0
- package/dist/table.min.js +24 -24
- package/dist/text-input-VC8mmTlR.js +158 -0
- package/dist/toolbar.min.js +57 -59
- package/dist/workspace-shell.min.js +49 -54
- package/es/components/card/index.d.ts +11 -0
- package/es/components/{tile-container → card}/index.js +3 -1
- package/es/components/{tile-container → card}/index.js.map +1 -1
- package/es/components/card/src/card-footer.d.ts +43 -0
- package/es/components/card/src/card-footer.js +140 -0
- package/es/components/card/src/card-footer.js.map +1 -0
- package/es/components/card/src/card-footer.scss.js +13 -0
- package/es/components/card/src/card-footer.scss.js.map +1 -0
- package/es/components/card/src/card-steps.d.ts +28 -0
- package/es/components/card/src/card-steps.js +90 -0
- package/es/components/card/src/card-steps.js.map +1 -0
- package/es/components/card/src/card-steps.scss.js +13 -0
- package/es/components/card/src/card-steps.scss.js.map +1 -0
- package/es/components/card/src/card.d.ts +27 -0
- package/es/components/card/src/card.js +65 -0
- package/es/components/card/src/card.js.map +1 -0
- package/es/components/card/src/card.scss.js +13 -0
- package/es/components/card/src/card.scss.js.map +1 -0
- package/es/components/chain-of-thought/defs.d.ts +54 -0
- package/es/components/chain-of-thought/{src/types.js → defs.js} +10 -1
- package/es/components/chain-of-thought/defs.js.map +1 -0
- package/es/components/chain-of-thought/index.d.ts +10 -4
- package/es/components/chain-of-thought/index.js +5 -3
- package/es/components/chain-of-thought/index.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-step.d.ts +43 -0
- package/es/components/chain-of-thought/src/chain-of-thought-step.js +351 -0
- package/es/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -0
- package/es/components/chain-of-thought/src/chain-of-thought-step.scss.js +13 -0
- package/es/components/chain-of-thought/src/chain-of-thought-step.scss.js.map +1 -0
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +33 -0
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js +107 -0
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -0
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.scss.js +13 -0
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.scss.js.map +1 -0
- package/es/components/chain-of-thought/src/chain-of-thought.d.ts +23 -69
- package/es/components/chain-of-thought/src/chain-of-thought.js +88 -145
- package/es/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought.scss.js +1 -1
- package/es/components/chain-of-thought/src/tool-call-data.d.ts +33 -0
- package/es/components/chain-of-thought/src/tool-call-data.js +179 -0
- package/es/components/chain-of-thought/src/tool-call-data.js.map +1 -0
- package/es/components/chain-of-thought/src/tool-call-data.scss.js +13 -0
- package/es/components/chain-of-thought/src/tool-call-data.scss.js.map +1 -0
- package/es/components/chat-button/src/chat-button.d.ts +11 -3
- package/es/components/chat-button/src/chat-button.js +15 -11
- package/es/components/chat-button/src/chat-button.js.map +1 -1
- package/es/components/chat-button/src/chat-button.scss.js +1 -1
- package/es/components/code-snippet/index.d.ts +2 -2
- package/es/components/code-snippet/index.js +1 -1
- package/es/components/code-snippet/src/code-snippet-card.d.ts +63 -0
- package/es/components/code-snippet/src/code-snippet-card.js +186 -0
- package/es/components/code-snippet/src/code-snippet-card.js.map +1 -0
- package/es/components/code-snippet/src/code-snippet.d.ts +43 -58
- package/es/components/code-snippet/src/code-snippet.js +115 -29
- package/es/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es/components/code-snippet/src/code-snippet.scss.js +1 -1
- package/es/components/feedback/index.d.ts +4 -7
- package/es/components/feedback/index.js +2 -4
- package/es/components/feedback/index.js.map +1 -1
- package/es/components/feedback/src/feedback-buttons.d.ts +9 -2
- package/es/components/feedback/src/feedback-buttons.js +24 -15
- package/es/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es/components/feedback/src/feedback-buttons.template.d.ts +2 -2
- package/es/components/feedback/src/feedback-buttons.template.js.map +1 -1
- package/es/components/feedback/src/feedback.d.ts +9 -10
- package/es/components/feedback/src/feedback.js +35 -22
- package/es/components/feedback/src/feedback.js.map +1 -1
- package/es/components/feedback/src/feedback.scss.js +1 -1
- package/es/components/feedback/src/feedback.template.d.ts +2 -2
- package/es/components/feedback/src/feedback.template.js +4 -4
- package/es/components/feedback/src/feedback.template.js.map +1 -1
- package/es/components/markdown/index.d.ts +2 -2
- package/es/components/markdown/index.js +1 -1
- package/es/components/markdown/src/markdown-renderer.d.ts +4 -0
- package/es/components/markdown/src/markdown-renderer.js +16 -11
- package/es/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es/components/markdown/src/markdown.d.ts +42 -14
- package/es/components/markdown/src/markdown.js +146 -42
- package/es/components/markdown/src/markdown.js.map +1 -1
- package/es/components/markdown/src/markdown.scss.js +1 -1
- package/es/components/markdown/src/markdown.template.d.ts +5 -2
- package/es/components/markdown/src/markdown.template.js +8 -3
- package/es/components/markdown/src/markdown.template.js.map +1 -1
- package/es/components/processing/src/processing.d.ts +8 -1
- package/es/components/processing/src/processing.js +7 -10
- package/es/components/processing/src/processing.js.map +1 -1
- package/es/components/processing/src/processing.scss.js +1 -1
- package/es/components/reasoning-steps/index.d.ts +4 -2
- package/es/components/reasoning-steps/index.js +3 -2
- package/es/components/reasoning-steps/index.js.map +1 -1
- package/es/components/reasoning-steps/src/{cds-aichat-reasoning-step.d.ts → reasoning-step.d.ts} +6 -7
- package/es/components/reasoning-steps/src/{cds-aichat-reasoning-step.js → reasoning-step.js} +24 -26
- package/es/components/reasoning-steps/src/reasoning-step.js.map +1 -0
- package/es/components/reasoning-steps/src/{cds-aichat-reasoning-step.scss.js → reasoning-step.scss.js} +1 -1
- package/es/components/reasoning-steps/src/reasoning-step.scss.js.map +1 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +36 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js +81 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.scss.js +13 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.scss.js.map +1 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.template.d.ts +3 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.template.js +43 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.template.js.map +1 -0
- package/es/components/reasoning-steps/src/{cds-aichat-reasoning-steps.d.ts → reasoning-steps.d.ts} +6 -1
- package/es/components/reasoning-steps/src/{cds-aichat-reasoning-steps.js → reasoning-steps.js} +9 -6
- package/es/components/reasoning-steps/src/reasoning-steps.js.map +1 -0
- package/es/components/reasoning-steps/src/{cds-aichat-reasoning-steps.scss.js → reasoning-steps.scss.js} +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps.scss.js.map +1 -0
- package/es/components/table/index.d.ts +2 -2
- package/es/components/table/index.js +1 -1
- package/es/components/table/src/table-pagination.template.d.ts +1 -1
- package/es/components/table/src/{cds-aichat-table.d.ts → table.d.ts} +12 -90
- package/es/components/table/src/{cds-aichat-table.js → table.js} +69 -37
- package/es/components/table/src/table.js.map +1 -0
- package/es/components/table/src/table.template.d.ts +2 -2
- package/es/components/table/src/table.template.js +2 -2
- package/es/components/table/src/table.template.js.map +1 -1
- package/es/components/toolbar/src/toolbar.d.ts +4 -5
- package/es/components/toolbar/src/toolbar.js +51 -40
- package/es/components/toolbar/src/toolbar.js.map +1 -1
- package/es/components/toolbar/src/toolbar.scss.js +1 -1
- package/es/components/workspace-shell/index.d.ts +0 -1
- package/es/components/workspace-shell/index.js +0 -1
- package/es/components/workspace-shell/index.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-body.d.ts +1 -0
- package/es/components/workspace-shell/src/workspace-shell-body.js +3 -4
- package/es/components/workspace-shell/src/workspace-shell-body.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-footer.d.ts +26 -5
- package/es/components/workspace-shell/src/workspace-shell-footer.js +101 -11
- package/es/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-footer.scss.js +13 -0
- package/es/components/workspace-shell/src/workspace-shell-footer.scss.js.map +1 -0
- package/es/components/workspace-shell/src/workspace-shell-header.d.ts +1 -0
- package/es/components/workspace-shell/src/workspace-shell-header.js +4 -4
- package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-header.scss.js +13 -0
- package/es/components/workspace-shell/src/workspace-shell-header.scss.js.map +1 -0
- package/es/components/workspace-shell/src/workspace-shell.d.ts +1 -2
- package/es/components/workspace-shell/src/workspace-shell.js +3 -30
- package/es/components/workspace-shell/src/workspace-shell.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell.scss.js +1 -1
- package/es/react/card.d.ts +9 -0
- package/es/react/card.js +43 -0
- package/es/react/card.js.map +1 -0
- package/es/react/chain-of-thought-step.d.ts +4 -0
- package/es/react/chain-of-thought-step.js +32 -0
- package/es/react/chain-of-thought-step.js.map +1 -0
- package/es/react/chain-of-thought-toggle.d.ts +6 -0
- package/es/react/chain-of-thought-toggle.js +31 -0
- package/es/react/chain-of-thought-toggle.js.map +1 -0
- package/es/react/chain-of-thought.d.ts +4 -4
- package/es/react/chain-of-thought.js +7 -3
- package/es/react/chain-of-thought.js.map +1 -1
- package/es/react/code-snippet-card.d.ts +4 -0
- package/es/react/{code-snippet-tile-container.js → code-snippet-card.js} +8 -7
- package/es/react/code-snippet-card.js.map +1 -0
- package/es/react/feedback-buttons.d.ts +2 -2
- package/es/react/feedback-buttons.js +2 -2
- package/es/react/feedback-buttons.js.map +1 -1
- package/es/react/feedback.d.ts +2 -2
- package/es/react/feedback.js +2 -2
- package/es/react/feedback.js.map +1 -1
- package/es/react/inline-notification.d.ts +4 -0
- package/es/react/inline-notification.js +28 -0
- package/es/react/inline-notification.js.map +1 -0
- package/es/react/markdown.d.ts +1 -1
- package/es/react/markdown.js +1 -1
- package/es/react/reasoning-step.d.ts +3 -5
- package/es/react/reasoning-step.js +6 -5
- package/es/react/reasoning-step.js.map +1 -1
- package/es/react/reasoning-steps-toggle.d.ts +6 -0
- package/es/react/reasoning-steps-toggle.js +31 -0
- package/es/react/reasoning-steps-toggle.js.map +1 -0
- package/es/react/reasoning-steps.d.ts +3 -2
- package/es/react/reasoning-steps.js +4 -3
- package/es/react/reasoning-steps.js.map +1 -1
- package/es/react/tag.d.ts +4 -0
- package/es/react/{tile-container.js → tag.js} +6 -6
- package/es/react/tag.js.map +1 -0
- package/es/react/tile.js +2 -2
- package/es/react/tile.js.map +1 -1
- package/es/react/tool-call-data.d.ts +4 -0
- package/es/react/tool-call-data.js +28 -0
- package/es/react/tool-call-data.js.map +1 -0
- package/es/react/workspace-shell.d.ts +11 -0
- package/es/react/workspace-shell.js +49 -0
- package/es/react/workspace-shell.js.map +1 -0
- package/package.json +4 -4
- package/dist/button-CBb7Jhi7.js +0 -157
- package/dist/button-skeleton-B4XMARh-.js +0 -116
- package/dist/checkbox-skeleton-DwMLLcdk.js +0 -166
- package/dist/class-map-C_OkZP0k.js +0 -106
- package/dist/codemirror-runtime-B436WsU5.js +0 -173
- package/dist/icon-button-OMMcBXs2.js +0 -143
- package/dist/index-4jRdBit9.js +0 -91
- package/dist/index-BM41YEqq.js +0 -91
- package/dist/index-BOh_nBln.js +0 -91
- package/dist/index-Bu9gWUiF.js +0 -91
- package/dist/index-C8bEg5Uj.js +0 -91
- package/dist/index-C8xRVVPE.js +0 -91
- package/dist/index-COYOBWaJ.js +0 -91
- package/dist/index-CSEyeHT9.js +0 -91
- package/dist/index-Ci2IAejb.js +0 -91
- package/dist/index-CmkRN7JA.js +0 -91
- package/dist/index-Cy4O64oM.js +0 -91
- package/dist/index-D2t8pNSN.js +0 -91
- package/dist/index-DBxz4i7M.js +0 -91
- package/dist/index-DXc2fPMn.js +0 -91
- package/dist/index-DcP0S8R8.js +0 -91
- package/dist/index-DeCI268E.js +0 -367
- package/dist/index-DebFxHTs.js +0 -91
- package/dist/index-DiiLbFxH.js +0 -91
- package/dist/index-EHu0fYXl.js +0 -91
- package/dist/index-ayWik3gi.js +0 -168
- package/dist/index-muXVkugt.js +0 -91
- package/dist/index-tnMbrHKo.js +0 -91
- package/dist/query-D35TocCM.js +0 -101
- package/dist/radio-group-manager-BpBQjS73.js +0 -91
- package/dist/repeat-Ck4tYPIW.js +0 -96
- package/dist/table-runtime-C9nhKjvI.js +0 -510
- package/dist/text-input-DBmpDGoh.js +0 -158
- package/dist/tile-container.min.js +0 -100
- package/es/components/chain-of-thought/src/cds-aichat-chain-of-thought.d.ts +0 -15
- package/es/components/chain-of-thought/src/cds-aichat-chain-of-thought.js +0 -36
- package/es/components/chain-of-thought/src/cds-aichat-chain-of-thought.js.map +0 -1
- package/es/components/chain-of-thought/src/chain-of-thought.template.d.ts +0 -5
- package/es/components/chain-of-thought/src/chain-of-thought.template.js +0 -206
- package/es/components/chain-of-thought/src/chain-of-thought.template.js.map +0 -1
- package/es/components/chain-of-thought/src/parse-unknown-data-to-markdown.d.ts +0 -10
- package/es/components/chain-of-thought/src/parse-unknown-data-to-markdown.js +0 -50
- package/es/components/chain-of-thought/src/parse-unknown-data-to-markdown.js.map +0 -1
- package/es/components/chain-of-thought/src/types.d.ts +0 -73
- package/es/components/chain-of-thought/src/types.js.map +0 -1
- package/es/components/code-snippet/src/code-snippet-tile-container.d.ts +0 -32
- package/es/components/code-snippet/src/code-snippet-tile-container.js +0 -143
- package/es/components/code-snippet/src/code-snippet-tile-container.js.map +0 -1
- package/es/components/feedback/src/cds-aichat-feedback-buttons.d.ts +0 -15
- package/es/components/feedback/src/cds-aichat-feedback-buttons.js +0 -36
- package/es/components/feedback/src/cds-aichat-feedback-buttons.js.map +0 -1
- package/es/components/feedback/src/cds-aichat-feedback.d.ts +0 -15
- package/es/components/feedback/src/cds-aichat-feedback.js +0 -36
- package/es/components/feedback/src/cds-aichat-feedback.js.map +0 -1
- package/es/components/markdown/src/cds-aichat-markdown.d.ts +0 -13
- package/es/components/markdown/src/cds-aichat-markdown.js +0 -35
- package/es/components/markdown/src/cds-aichat-markdown.js.map +0 -1
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.js.map +0 -1
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.scss.js.map +0 -1
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.js.map +0 -1
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.scss.js.map +0 -1
- package/es/components/table/src/cds-aichat-table.js.map +0 -1
- package/es/components/tile-container/index.d.ts +0 -1
- package/es/components/tile-container/src/styles.scss.js +0 -13
- package/es/components/tile-container/src/styles.scss.js.map +0 -1
- package/es/components/tile-container/src/tile-container.d.ts +0 -12
- package/es/components/tile-container/src/tile-container.js +0 -85
- package/es/components/tile-container/src/tile-container.js.map +0 -1
- package/es/components/tile-container/src/tile-container.scss.js +0 -13
- package/es/components/tile-container/src/tile-container.scss.js.map +0 -1
- package/es/components/workspace-shell/src/styles.scss.js +0 -13
- package/es/components/workspace-shell/src/styles.scss.js.map +0 -1
- package/es/components/workspace-shell/src/workspace-shell-toolbar.d.ts +0 -22
- package/es/components/workspace-shell/src/workspace-shell-toolbar.js +0 -61
- package/es/components/workspace-shell/src/workspace-shell-toolbar.js.map +0 -1
- package/es/react/code-snippet-tile-container.d.ts +0 -5
- package/es/react/code-snippet-tile-container.js.map +0 -1
- package/es/react/tile-container.d.ts +0 -4
- package/es/react/tile-container.js.map +0 -1
- package/dist/{apl-DqPKPgQT.js → apl-Cq2qnGBp.js} +23 -23
- package/dist/{asciiarmor-D-S0VxwT.js → asciiarmor-Cb5hNJXm.js} +23 -23
- package/dist/{asn1-CFFEZSZ_.js → asn1-ObfPhj90.js} +23 -23
- package/dist/{asterisk-C3IDaiGv.js → asterisk-CGEdhmtE.js} +23 -23
- package/dist/{carbon-element-qvUUzdlm.js → carbon-element-BHXvTuS8.js} +23 -23
- package/dist/{carbon-element-BrN6iUKF.js → carbon-element-CY_4MezR.js} +23 -23
- package/dist/{clike-CWAiRpcw.js → clike-D-W_e6Lj.js} +23 -23
- package/dist/{clojure-Ch3ZXkHC.js → clojure-BKr3NaqS.js} +23 -23
- package/dist/{cmake-DJ6-M7RZ.js → cmake-CCO4hHlz.js} +23 -23
- package/dist/{cobol-CefNQ_w0.js → cobol-BP7APbz-.js} +23 -23
- package/dist/{coffeescript-4qvUnmrT.js → coffeescript-DAdmYC08.js} +23 -23
- package/dist/{collection-helpers-DOm4PvT7.js → collection-helpers-CeBujCju.js} +23 -23
- package/dist/{commonlisp-k5lBHlrn.js → commonlisp-Bo8JYmEV.js} +23 -23
- package/dist/{crystal-DFd4Ih4u.js → crystal-Bm8pGIh6.js} +23 -23
- package/dist/{css-BhqlouBq.js → css-BJk1lVKu.js} +23 -23
- package/dist/{custom-element-BIWH1gT0.js → custom-element-DRG4IpGT.js} +23 -23
- package/dist/{cypher-BlVNs-s1.js → cypher-D-eVDQC7.js} +23 -23
- package/dist/{d-CM_npLQV.js → d-D9LdG4k3.js} +23 -23
- package/dist/{diff-7P1q5HUO.js → diff-DZtMXlRt.js} +23 -23
- package/dist/{dtd-CWbJaDIV.js → dtd-BkbtUIcB.js} +23 -23
- package/dist/{dylan-EbE5y8Qm.js → dylan-CCohaM4H.js} +23 -23
- package/dist/{ebnf-DbYI1jy4.js → ebnf-DtT6UrMv.js} +23 -23
- package/dist/{ecl-CFSa7Lym.js → ecl-C2GNxTt8.js} +23 -23
- package/dist/{eiffel-9Wtpmi2K.js → eiffel-BW4n6uyg.js} +23 -23
- package/dist/{elm-DWhcgMBd.js → elm-B9lXrM6D.js} +23 -23
- package/dist/{erlang-CR1HJySh.js → erlang-BKwBedv4.js} +23 -23
- package/dist/{fcl-CbvOTRm9.js → fcl-BGYmKRZe.js} +23 -23
- package/dist/{forth-BsE0kFPn.js → forth-DTbOVELu.js} +23 -23
- package/dist/{fortran-AWWy4gQC.js → fortran-Dr7q8x3V.js} +23 -23
- package/dist/{gas-DjE-0YRJ.js → gas-CsCwQ5DC.js} +23 -23
- package/dist/{gherkin-G3xXRA7g.js → gherkin-CAJyZEc1.js} +23 -23
- package/dist/{groovy-CNwvtTN8.js → groovy-CpFdbfFQ.js} +23 -23
- package/dist/{haskell-B--9zNgZ.js → haskell-V36thOn1.js} +23 -23
- package/dist/{haxe-BH6QOKpD.js → haxe-CeQWqhmF.js} +23 -23
- package/dist/{http-ZbVY0uts.js → http-Cm3L1exf.js} +23 -23
- package/dist/{idl-D7fBoMHw.js → idl-DyN-eyoA.js} +23 -23
- package/dist/{javascript-BynWom2t.js → javascript-B7L-ezNz.js} +23 -23
- package/dist/{julia-BgwMKKt8.js → julia-B_bgxt8f.js} +23 -23
- package/dist/{livescript-CfylQWC2.js → livescript-B0UjDUzz.js} +23 -23
- package/dist/{lua-bFmn3AKO.js → lua-Bs-1T_TR.js} +23 -23
- package/dist/{mathematica-Dws9P2fA.js → mathematica-QbiSkUw_.js} +23 -23
- package/dist/{mbox-BIh2BjAu.js → mbox-IxVDt6G7.js} +23 -23
- package/dist/{mirc-XnPCL3O-.js → mirc--MFZdywV.js} +23 -23
- package/dist/{mllike-l-LEbnhM.js → mllike-s7nUnXIp.js} +23 -23
- package/dist/{modelica-BbO92hea.js → modelica-BCpZ0s1C.js} +23 -23
- package/dist/{mscgen-CQJIxZ4W.js → mscgen-Br8J94Pi.js} +23 -23
- package/dist/{mumps-CktIo_vc.js → mumps-BsSCi6Lf.js} +23 -23
- package/dist/{nginx-BOcx_Qcw.js → nginx-ZiZlz_Vj.js} +23 -23
- package/dist/{ntriples-C1FRJSj6.js → ntriples-1fM-fgdb.js} +23 -23
- package/dist/{octave-BOQo3ezn.js → octave-nXauetiK.js} +23 -23
- package/dist/{oz-OnSdrfM9.js → oz-B13mLmyp.js} +23 -23
- package/dist/{pascal-4g6TYfFw.js → pascal-B_W4OXqj.js} +23 -23
- package/dist/{perl-Dgr-ngbg.js → perl-a1VQ4XvC.js} +23 -23
- package/dist/{pig-CZMi3-8m.js → pig-BtQy1wID.js} +23 -23
- package/dist/{powershell-DXvQ4x1m.js → powershell-uO49D63Q.js} +23 -23
- package/dist/{properties-FpKoskXV.js → properties-BhuX6-mY.js} +23 -23
- package/dist/{protobuf-MCw-m64T.js → protobuf-CNIIc7zI.js} +23 -23
- package/dist/{puppet-6S-P5OOW.js → puppet-ByObhsu2.js} +23 -23
- package/dist/{python-CngGfBf0.js → python-PHhd4JZq.js} +23 -23
- package/dist/{q-44edCNj4.js → q-qVcarjaG.js} +23 -23
- package/dist/{r-DIR8PHAo.js → r-Cd28Rn61.js} +23 -23
- package/dist/{rpm-BRQLtgp3.js → rpm-tHd62SNx.js} +23 -23
- package/dist/{ruby-D8RNHeY9.js → ruby-BWVi67xq.js} +23 -23
- package/dist/{sas-D5OczIPs.js → sas-BwjQFPr2.js} +23 -23
- package/dist/{scheme-B8-CRLJA.js → scheme-Czr-sVIy.js} +23 -23
- package/dist/{settings-llVPjFVY.js → settings-C6RJ_X7P.js} +23 -23
- package/dist/{shell-D8CunHXO.js → shell-BetDWStl.js} +23 -23
- package/dist/{sieve-Bf_yZtZi.js → sieve-rrPKwsBh.js} +23 -23
- package/dist/{simple-mode-U-UkJvaV.js → simple-mode-C8-rTa2M.js} +23 -23
- package/dist/{smalltalk-NwhojTAP.js → smalltalk-YAI5xh7_.js} +23 -23
- package/dist/{solr-DpsSZ9SG.js → solr-VDOKdk1b.js} +23 -23
- package/dist/{sparql-ClZP4ej6.js → sparql-zO1kYCog.js} +23 -23
- package/dist/{spreadsheet-DnW91EGa.js → spreadsheet-6g8nHE2j.js} +23 -23
- package/dist/{sql-DoWohZH_.js → sql-Biw9poPQ.js} +23 -23
- package/dist/{stex-CyIvgWqs.js → stex-THaXVwNW.js} +23 -23
- package/dist/{stylus-C8jtBncI.js → stylus-RHXL_HsJ.js} +23 -23
- package/dist/{swift-CaGCX2Dw.js → swift-lfFyPRRo.js} +23 -23
- package/dist/{sync-BXekdfhT.js → sync-D5E2V6_l.js} +23 -23
- package/dist/{tcl-CZLOxvIM.js → tcl-C4Tb2U0q.js} +23 -23
- package/dist/{textile-MK6Fa0rE.js → textile-CnQDonvJ.js} +23 -23
- package/dist/{throttle-Bam9Y9Iz.js → throttle-B7gS0Tg4.js} +23 -23
- package/dist/{tiddlywiki-DUbhySn3.js → tiddlywiki-BPc4WZCH.js} +23 -23
- package/dist/{tiki-DaH-6R3-.js → tiki-D4dz8j1V.js} +23 -23
- package/dist/{toml-SjzHK0kN.js → toml-88vYtIh1.js} +23 -23
- package/dist/{troff-Bz5Iai1v.js → troff-BgVjEoT-.js} +23 -23
- package/dist/{ttcn-C4gOnQYH.js → ttcn-DdYulzch.js} +23 -23
- package/dist/{ttcn-cfg-C8jO5Cys.js → ttcn-cfg-LwcHiYmJ.js} +23 -23
- package/dist/{turtle-C8Ccmmmk.js → turtle-CgiVr9yq.js} +23 -23
- package/dist/{vb-Cwma-1KF.js → vb-BWY0HckZ.js} +23 -23
- package/dist/{vbscript-DMhmzc0h.js → vbscript-BBJV-ooB.js} +23 -23
- package/dist/{velocity-RZxqTCZo.js → velocity-wom_bhlv.js} +23 -23
- package/dist/{verilog-Dld4vhaQ.js → verilog-BCY2xdlY.js} +23 -23
- package/dist/{vhdl-DMOFQvtW.js → vhdl-BjJYRa0a.js} +23 -23
- package/dist/{webidl-BgptLqNm.js → webidl-KE8LT1tN.js} +23 -23
- package/dist/{xquery-8Z_FGC6j.js → xquery-Ca5C9BJw.js} +23 -23
- package/dist/{yacas-C3ZexFYq.js → yacas-DGeGvU7X.js} +23 -23
- package/dist/{z80-Dz8lvJzy.js → z80-CEYQTt8_.js} +23 -23
|
@@ -1,206 +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 '../../markdown/src/cds-aichat-markdown.js';
|
|
9
|
-
import '@carbon/web-components/es/components/inline-loading/index.js';
|
|
10
|
-
import { iconLoader } from '@carbon/web-components/es/globals/internal/icon-loader.js';
|
|
11
|
-
import CheckmarkFilled16 from '@carbon/icons/es/checkmark--filled/16.js';
|
|
12
|
-
import ChevronRight16 from '@carbon/icons/es/chevron--right/16.js';
|
|
13
|
-
import ErrorFilled16 from '@carbon/icons/es/error--filled/16.js';
|
|
14
|
-
import { html } from 'lit';
|
|
15
|
-
import prefix from '../../../globals/settings.js';
|
|
16
|
-
import { ChainOfThoughtStepStatus } from './types.js';
|
|
17
|
-
import { parseUnknownDataToMarkdown } from './parse-unknown-data-to-markdown.js';
|
|
18
|
-
|
|
19
|
-
/*
|
|
20
|
-
* Copyright IBM Corp. 2025
|
|
21
|
-
*
|
|
22
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
23
|
-
* LICENSE file in the root directory of this source tree.
|
|
24
|
-
*
|
|
25
|
-
* @license
|
|
26
|
-
*/
|
|
27
|
-
const CSS_CLASS_ITEM_PREFIX = `${prefix}--chain-of-thought-item`;
|
|
28
|
-
const CSS_CLASS_STATUS_PREFIX = `${prefix}--chain-of-thought-accordion-item-header-status`;
|
|
29
|
-
/**
|
|
30
|
-
* Returns the correct icon given the status of the step. If there is no status, we assume it is successful.
|
|
31
|
-
*/
|
|
32
|
-
function stepStatus(status, statusSucceededLabelText, statusFailedLabelText, statusProcessingLabelText) {
|
|
33
|
-
switch (status) {
|
|
34
|
-
case ChainOfThoughtStepStatus.PROCESSING:
|
|
35
|
-
return html `<cds-inline-loading
|
|
36
|
-
status="active"
|
|
37
|
-
aria-label="${statusProcessingLabelText}"
|
|
38
|
-
></cds-inline-loading>`;
|
|
39
|
-
case ChainOfThoughtStepStatus.FAILURE:
|
|
40
|
-
return html `<span
|
|
41
|
-
class="${CSS_CLASS_STATUS_PREFIX}--${ChainOfThoughtStepStatus.FAILURE}"
|
|
42
|
-
aria-label="${statusFailedLabelText}"
|
|
43
|
-
>${iconLoader(ErrorFilled16)}</span
|
|
44
|
-
>`;
|
|
45
|
-
default:
|
|
46
|
-
return html `<span
|
|
47
|
-
class="${CSS_CLASS_STATUS_PREFIX}--${ChainOfThoughtStepStatus.SUCCESS}"
|
|
48
|
-
aria-label="${statusSucceededLabelText}"
|
|
49
|
-
>${iconLoader(CheckmarkFilled16)}</span
|
|
50
|
-
>`;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
function renderToolDataAsMarkdown(content, label, classPostfix, customElementClass) {
|
|
54
|
-
const { filterPlaceholderText, previousPageText, nextPageText, itemsPerPageText, locale, getPaginationSupplementalText, getPaginationStatusText, feedback, showLessText, showMoreText, tooltipContent, getLineCountText, } = customElementClass;
|
|
55
|
-
return html `<div
|
|
56
|
-
class="${CSS_CLASS_ITEM_PREFIX} ${CSS_CLASS_ITEM_PREFIX}-${classPostfix}"
|
|
57
|
-
>
|
|
58
|
-
<div class="${CSS_CLASS_ITEM_PREFIX}-label">${label}</div>
|
|
59
|
-
<cds-aichat-markdown
|
|
60
|
-
sanitize-html
|
|
61
|
-
markdown=${content}
|
|
62
|
-
filter-placeholder-text=${filterPlaceholderText}
|
|
63
|
-
previous-page-text=${previousPageText}
|
|
64
|
-
next-page-text=${nextPageText}
|
|
65
|
-
items-per-page-text=${itemsPerPageText}
|
|
66
|
-
locale=${locale}
|
|
67
|
-
.getPaginationSupplementalText=${getPaginationSupplementalText}
|
|
68
|
-
.getPaginationStatusText=${getPaginationStatusText}
|
|
69
|
-
feedback=${feedback}
|
|
70
|
-
show-less-text=${showLessText}
|
|
71
|
-
show-more-text=${showMoreText}
|
|
72
|
-
tooltip-content=${tooltipContent}
|
|
73
|
-
.getLineCountText=${getLineCountText}
|
|
74
|
-
></cds-aichat-markdown>
|
|
75
|
-
</div>`;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Takes the input/output data that is unknown and then renders it in the correct format or returns nothing.
|
|
79
|
-
*/
|
|
80
|
-
function renderToolData(data, label, classPostfix, customElementClass) {
|
|
81
|
-
const content = parseUnknownDataToMarkdown(data);
|
|
82
|
-
if (content) {
|
|
83
|
-
return renderToolDataAsMarkdown(content, label, classPostfix, customElementClass);
|
|
84
|
-
}
|
|
85
|
-
return html ``;
|
|
86
|
-
}
|
|
87
|
-
function accordionItemContent(customElementClass, item) {
|
|
88
|
-
const { inputLabelText, outputLabelText, toolLabelText, filterPlaceholderText, previousPageText, nextPageText, itemsPerPageText, locale, getPaginationSupplementalText, getPaginationStatusText, feedback, showLessText, showMoreText, tooltipContent, getLineCountText, } = customElementClass;
|
|
89
|
-
if (item.open) {
|
|
90
|
-
return html ` ${item.description
|
|
91
|
-
? html `<div
|
|
92
|
-
class="${CSS_CLASS_ITEM_PREFIX} ${CSS_CLASS_ITEM_PREFIX}-description"
|
|
93
|
-
>
|
|
94
|
-
<cds-aichat-markdown
|
|
95
|
-
sanitize-html
|
|
96
|
-
markdown=${item.description}
|
|
97
|
-
filter-placeholder-text=${filterPlaceholderText}
|
|
98
|
-
previous-page-text=${previousPageText}
|
|
99
|
-
next-page-text=${nextPageText}
|
|
100
|
-
items-per-page-text=${itemsPerPageText}
|
|
101
|
-
locale=${locale}
|
|
102
|
-
.getPaginationSupplementalText=${getPaginationSupplementalText}
|
|
103
|
-
.getPaginationStatusText=${getPaginationStatusText}
|
|
104
|
-
feedback=${feedback}
|
|
105
|
-
show-less-text=${showLessText}
|
|
106
|
-
show-more-text=${showMoreText}
|
|
107
|
-
tooltip-content=${tooltipContent}
|
|
108
|
-
.getLineCountText=${getLineCountText}
|
|
109
|
-
></cds-aichat-markdown>
|
|
110
|
-
</div>`
|
|
111
|
-
: null}
|
|
112
|
-
${item.tool_name
|
|
113
|
-
? html `<div
|
|
114
|
-
class="${CSS_CLASS_ITEM_PREFIX} ${CSS_CLASS_ITEM_PREFIX}-toolName"
|
|
115
|
-
>
|
|
116
|
-
<div class="${CSS_CLASS_ITEM_PREFIX}-label">${toolLabelText}</div>
|
|
117
|
-
${item.tool_name}
|
|
118
|
-
</div>`
|
|
119
|
-
: null}
|
|
120
|
-
${renderToolData(item.request?.args, inputLabelText, "input", customElementClass)}
|
|
121
|
-
${renderToolData(item.response?.content, outputLabelText, "output", customElementClass)}`;
|
|
122
|
-
}
|
|
123
|
-
return html ``;
|
|
124
|
-
}
|
|
125
|
-
function accordionContent(customElementClass) {
|
|
126
|
-
const { _steps, open, _chainOfThoughtPanelID, onStepToggle, formatStepLabelText, statusSucceededLabelText, statusFailedLabelText, statusProcessingLabelText, } = customElementClass;
|
|
127
|
-
if (open) {
|
|
128
|
-
return html `${_steps.map((item, index) => {
|
|
129
|
-
const stepNumber = index + 1;
|
|
130
|
-
const content_id = `${_chainOfThoughtPanelID}-step-${stepNumber}-content`;
|
|
131
|
-
const disabled = !item.description && !item.request && !item.response;
|
|
132
|
-
return html `<div class="${prefix}--chain-of-thought-accordion-item">
|
|
133
|
-
<button
|
|
134
|
-
class="${prefix}--chain-of-thought-accordion-item-header"
|
|
135
|
-
@click=${() => {
|
|
136
|
-
item.open = !item.open;
|
|
137
|
-
customElementClass.requestUpdate();
|
|
138
|
-
const element = customElementClass.shadowRoot?.querySelector(`#${content_id}`);
|
|
139
|
-
if (element) {
|
|
140
|
-
onStepToggle?.(item.open, element);
|
|
141
|
-
}
|
|
142
|
-
}}
|
|
143
|
-
aria-expanded=${item.open}
|
|
144
|
-
aria-controls=${content_id}
|
|
145
|
-
?disabled=${disabled}
|
|
146
|
-
>
|
|
147
|
-
<span
|
|
148
|
-
class="${prefix}--chain-of-thought-accordion-item-header-chevron"
|
|
149
|
-
?data-disabled=${disabled}
|
|
150
|
-
?data-open=${item.open}
|
|
151
|
-
>${iconLoader(ChevronRight16)}</span
|
|
152
|
-
>
|
|
153
|
-
<span class="${prefix}--chain-of-thought-accordion-item-header-title"
|
|
154
|
-
>${formatStepLabelText({
|
|
155
|
-
stepNumber,
|
|
156
|
-
stepTitle: item.title || item.tool_name || "",
|
|
157
|
-
})}</span
|
|
158
|
-
>
|
|
159
|
-
<span class="${CSS_CLASS_STATUS_PREFIX}"
|
|
160
|
-
>${stepStatus(item.status || ChainOfThoughtStepStatus.SUCCESS, statusSucceededLabelText, statusFailedLabelText, statusProcessingLabelText)}</span
|
|
161
|
-
>
|
|
162
|
-
</button>
|
|
163
|
-
<div
|
|
164
|
-
class="${prefix}--chain-of-thought-accordion-item-content"
|
|
165
|
-
id=${content_id}
|
|
166
|
-
?hidden=${!item.open}
|
|
167
|
-
>
|
|
168
|
-
${accordionItemContent(customElementClass, item)}
|
|
169
|
-
</div>
|
|
170
|
-
</div>`;
|
|
171
|
-
})}`;
|
|
172
|
-
}
|
|
173
|
-
return html ``;
|
|
174
|
-
}
|
|
175
|
-
function chainOfThoughtElementTemplate(customElementClass) {
|
|
176
|
-
const { _chainOfThoughtPanelID, explainabilityText, open, onToggle } = customElementClass;
|
|
177
|
-
function toggle() {
|
|
178
|
-
customElementClass.open = !customElementClass.open;
|
|
179
|
-
onToggle?.(customElementClass.open, customElementClass);
|
|
180
|
-
}
|
|
181
|
-
return html `<div class="${prefix}--chain-of-thought">
|
|
182
|
-
<button
|
|
183
|
-
class="${prefix}--chain-of-thought-button"
|
|
184
|
-
@click=${toggle}
|
|
185
|
-
aria-expanded=${open}
|
|
186
|
-
aria-controls=${_chainOfThoughtPanelID}
|
|
187
|
-
>
|
|
188
|
-
<span class="${prefix}--chain-of-thought-button-chevron"
|
|
189
|
-
>${iconLoader(ChevronRight16)}</span
|
|
190
|
-
>
|
|
191
|
-
${explainabilityText}
|
|
192
|
-
</button>
|
|
193
|
-
<div
|
|
194
|
-
id=${_chainOfThoughtPanelID}
|
|
195
|
-
class="${prefix}--chain-of-thought-content"
|
|
196
|
-
?hidden=${!open}
|
|
197
|
-
>
|
|
198
|
-
<div class="${prefix}--chain-of-thought-inner-content">
|
|
199
|
-
${accordionContent(customElementClass)}
|
|
200
|
-
</div>
|
|
201
|
-
</div>
|
|
202
|
-
</div>`;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export { chainOfThoughtElementTemplate };
|
|
206
|
-
//# sourceMappingURL=chain-of-thought.template.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chain-of-thought.template.js","sources":["../../../../src/components/chain-of-thought/src/chain-of-thought.template.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAmBH,MAAM,qBAAqB,GAAG,CAAA,EAAG,MAAM,yBAAyB;AAChE,MAAM,uBAAuB,GAAG,CAAA,EAAG,MAAM,iDAAiD;AAE1F;;AAEG;AACH,SAAS,UAAU,CACjB,MAAgC,EAChC,wBAAgC,EAChC,qBAA6B,EAC7B,yBAAiC,EAAA;IAEjC,QAAQ,MAAM;QACZ,KAAK,wBAAwB,CAAC,UAAU;AACtC,YAAA,OAAO,IAAI,CAAA,CAAA;;sBAEK,yBAAyB,CAAA;6BAClB;QACzB,KAAK,wBAAwB,CAAC,OAAO;AACnC,YAAA,OAAO,IAAI,CAAA,CAAA;iBACA,uBAAuB,CAAA,EAAA,EAAK,wBAAwB,CAAC,OAAO,CAAA;sBACvD,qBAAqB,CAAA;WAChC,UAAU,CAAC,aAAa,CAAC,CAAA;QA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CAAA;;;;mBAIM,MAAM,CAAA;eACV,UAAU;oBACL,CAAC,IAAI,CAAC,IAAI;;AAElB,UAAA,EAAA,oBAAoB,CAAC,kBAAkB,EAAE,IAAI,CAAC;;aAE7C;QACT,CAAC,CAAC,EAAE;IACN;IAEA,OAAO,IAAI,CAAA,CAAA,CAAE;AACf;AAEA,SAAS,6BAA6B,CACpC,kBAAyC,EAAA;IAEzC,MAAM,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,IAAI,EAAE,QAAQ,EAAE,GAClE,kBAAkB;AAEpB,IAAA,SAAS,MAAM,GAAA;AACb,QAAA,kBAAkB,CAAC,IAAI,GAAG,CAAC,kBAAkB,CAAC,IAAI;QAClD,QAAQ,GAAG,kBAAkB,CAAC,IAAI,EAAE,kBAAkB,CAAC;IACzD;IAEA,OAAO,IAAI,CAAA,CAAA,YAAA,EAAe,MAAM,CAAA;;eAEnB,MAAM,CAAA;eACN,MAAM;sBACC,IAAI;sBACJ,sBAAsB;;qBAEvB,MAAM,CAAA;WAChB,UAAU,CAAC,cAAc,CAAC,CAAA;;QAE7B,kBAAkB;;;WAGf,sBAAsB;eAClB,MAAM,CAAA;AACL,cAAA,EAAA,CAAC,IAAI;;oBAED,MAAM,CAAA;UAChB,gBAAgB,CAAC,kBAAkB,CAAC;;;SAGrC;AACT;;;;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Attempts to parse the given value into a markdown string. If the value is an object or a JSON string,
|
|
3
|
-
* it is pretty printed as a code block. Otherwise, string content is returned as-is and other primitives are
|
|
4
|
-
* converted to strings.
|
|
5
|
-
*
|
|
6
|
-
* @param data The value to normalize.
|
|
7
|
-
* @returns Markdown formatted string or `undefined` if the value cannot be represented.
|
|
8
|
-
*/
|
|
9
|
-
declare function parseUnknownDataToMarkdown(data: unknown): string | undefined;
|
|
10
|
-
export { parseUnknownDataToMarkdown };
|
|
@@ -1,50 +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
|
-
/*
|
|
9
|
-
* Copyright IBM Corp. 2025
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
12
|
-
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
*
|
|
14
|
-
* @license
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Attempts to parse the given value into a markdown string. If the value is an object or a JSON string,
|
|
18
|
-
* it is pretty printed as a code block. Otherwise, string content is returned as-is and other primitives are
|
|
19
|
-
* converted to strings.
|
|
20
|
-
*
|
|
21
|
-
* @param data The value to normalize.
|
|
22
|
-
* @returns Markdown formatted string or `undefined` if the value cannot be represented.
|
|
23
|
-
*/
|
|
24
|
-
function parseUnknownDataToMarkdown(data) {
|
|
25
|
-
if (!data) {
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
try {
|
|
29
|
-
if (typeof data === "object") {
|
|
30
|
-
return `\`\`\`\n${JSON.stringify(data, null, 2)}\n\`\`\`\n`;
|
|
31
|
-
}
|
|
32
|
-
if (typeof data === "string") {
|
|
33
|
-
try {
|
|
34
|
-
const parsed = JSON.parse(data);
|
|
35
|
-
return `\`\`\`\n${JSON.stringify(parsed, null, 2)}\n\`\`\`\n`;
|
|
36
|
-
}
|
|
37
|
-
catch (_error) {
|
|
38
|
-
return data;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return String(data);
|
|
42
|
-
}
|
|
43
|
-
catch (error) {
|
|
44
|
-
console.error("Cannot parse step content", error);
|
|
45
|
-
return undefined;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export { parseUnknownDataToMarkdown };
|
|
50
|
-
//# sourceMappingURL=parse-unknown-data-to-markdown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse-unknown-data-to-markdown.js","sources":["../../../../src/components/chain-of-thought/src/parse-unknown-data-to-markdown.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAEH;;;;;;;AAOG;AACH,SAAS,0BAA0B,CAAC,IAAa,EAAA;IAC/C,IAAI,CAAC,IAAI,EAAE;AACT,QAAA,OAAO,SAAS;IAClB;AAEA,IAAA,IAAI;AACF,QAAA,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;AAC5B,YAAA,OAAO,CAAA,QAAA,EAAW,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA,UAAA,CAAY;QAC7D;AAEA,QAAA,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;AAC5B,YAAA,IAAI;gBACF,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;AAC/B,gBAAA,OAAO,CAAA,QAAA,EAAW,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA,UAAA,CAAY;YAC/D;YAAE,OAAO,MAAM,EAAE;AACf,gBAAA,OAAO,IAAI;YACb;QACF;AAEA,QAAA,OAAO,MAAM,CAAC,IAAI,CAAC;IACrB;IAAE,OAAO,KAAK,EAAE;AACd,QAAA,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,CAAC;AACjD,QAAA,OAAO,SAAS;IAClB;AACF;;;;"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Status of the chain of thought step.
|
|
3
|
-
*
|
|
4
|
-
* @category Messaging
|
|
5
|
-
*/
|
|
6
|
-
declare enum ChainOfThoughtStepStatus {
|
|
7
|
-
PROCESSING = "processing",
|
|
8
|
-
FAILURE = "failure",
|
|
9
|
-
SUCCESS = "success"
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* A chain of thought step is meant to show tool calls and other steps made by your agent
|
|
13
|
-
* to reach its final answer.
|
|
14
|
-
*
|
|
15
|
-
* @category Messaging
|
|
16
|
-
*/
|
|
17
|
-
interface ChainOfThoughtStep {
|
|
18
|
-
/**
|
|
19
|
-
* The plain text name of the step.
|
|
20
|
-
*/
|
|
21
|
-
title?: string;
|
|
22
|
-
/**
|
|
23
|
-
* An optional human readable description of what the tool does.
|
|
24
|
-
*
|
|
25
|
-
* Accepts markdown formatted text.
|
|
26
|
-
*/
|
|
27
|
-
description?: string;
|
|
28
|
-
/**
|
|
29
|
-
* The plain text name of the tool called.
|
|
30
|
-
*/
|
|
31
|
-
tool_name?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Optional request metadata sent to a tool.
|
|
34
|
-
*/
|
|
35
|
-
request?: {
|
|
36
|
-
/**
|
|
37
|
-
* Arguments sent to the tool. If this is properly formed JSON, it will be shown as a code block.
|
|
38
|
-
*/
|
|
39
|
-
args?: unknown;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Optional response from a tool.
|
|
43
|
-
*/
|
|
44
|
-
response?: {
|
|
45
|
-
/**
|
|
46
|
-
* Content returned by the tool. If this is properly formed JSON, it will be shown as a code block.
|
|
47
|
-
*
|
|
48
|
-
* You can also return markdown compatible text here.
|
|
49
|
-
*/
|
|
50
|
-
content: unknown;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* Optionally, share the status of this step. An icon will appear in the view showing the status. If no status is
|
|
54
|
-
* shared, the UI will assume success.
|
|
55
|
-
*/
|
|
56
|
-
status?: ChainOfThoughtStepStatus;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* A function to allow the chat component to properly scroll to the element on toggle.
|
|
60
|
-
*
|
|
61
|
-
* @category Messaging
|
|
62
|
-
*/
|
|
63
|
-
type ChainOfThoughtOnToggle = (isOpen: boolean, scrollToElement: HTMLElement) => void;
|
|
64
|
-
/**
|
|
65
|
-
* @category Messaging
|
|
66
|
-
*/
|
|
67
|
-
interface ChainOfThoughtStepWithToggle extends ChainOfThoughtStep {
|
|
68
|
-
/**
|
|
69
|
-
* If the step is opened.
|
|
70
|
-
*/
|
|
71
|
-
open: boolean;
|
|
72
|
-
}
|
|
73
|
-
export { type ChainOfThoughtOnToggle, type ChainOfThoughtStep, ChainOfThoughtStepStatus, type ChainOfThoughtStepWithToggle, };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sources":["../../../../src/components/chain-of-thought/src/types.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAEH;;;;AAIG;AACH,IAAK;AAAL,CAAA,UAAK,wBAAwB,EAAA;AAC3B,IAAA,wBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AACzB,IAAA,wBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,wBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACrB,CAAC,EAJI,wBAAwB,KAAxB,wBAAwB,GAAA,EAAA,CAAA,CAAA;;;;"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
import "../../tile-container/index.js";
|
|
3
|
-
import "./code-snippet.js";
|
|
4
|
-
import "@carbon/web-components/es/components/tile/index.js";
|
|
5
|
-
import { type LineCountFormatter } from "./formatters.js";
|
|
6
|
-
/**
|
|
7
|
-
* AI Chat code snippet wrapper that places the snippet inside a Carbon tile.
|
|
8
|
-
* Custom element: cds-aichat-code-snippet-tile-container
|
|
9
|
-
*/
|
|
10
|
-
declare class CDSAIChatCodeSnippetTileContainer extends LitElement {
|
|
11
|
-
language: string;
|
|
12
|
-
editable: boolean;
|
|
13
|
-
highlight: boolean;
|
|
14
|
-
dark: boolean;
|
|
15
|
-
copyText: string;
|
|
16
|
-
disabled: boolean;
|
|
17
|
-
feedback: string;
|
|
18
|
-
feedbackTimeout: number;
|
|
19
|
-
hideCopyButton: boolean;
|
|
20
|
-
maxCollapsedNumberOfRows: number;
|
|
21
|
-
showLessText: string;
|
|
22
|
-
showMoreText: string;
|
|
23
|
-
tooltipContent: string;
|
|
24
|
-
wrapText: boolean;
|
|
25
|
-
getLineCountText: LineCountFormatter;
|
|
26
|
-
/**
|
|
27
|
-
* Handles the content-change event from the inner code snippet and re-dispatches it.
|
|
28
|
-
*/
|
|
29
|
-
private _handleContentChange;
|
|
30
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
31
|
-
}
|
|
32
|
-
export default CDSAIChatCodeSnippetTileContainer;
|
|
@@ -1,143 +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 { __decorate } from 'tslib';
|
|
9
|
-
import { LitElement, html } from 'lit';
|
|
10
|
-
import { property } from 'lit/decorators.js';
|
|
11
|
-
import { carbonElement } from '../../../globals/decorators/carbon-element.js';
|
|
12
|
-
import prefix from '../../../globals/settings.js';
|
|
13
|
-
import '../../tile-container/src/tile-container.js';
|
|
14
|
-
import './code-snippet.js';
|
|
15
|
-
import '@carbon/web-components/es/components/tile/index.js';
|
|
16
|
-
import { defaultLineCountText } from './formatters.js';
|
|
17
|
-
|
|
18
|
-
/*
|
|
19
|
-
* Copyright IBM Corp. 2025
|
|
20
|
-
*
|
|
21
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
22
|
-
* LICENSE file in the root directory of this source tree.
|
|
23
|
-
*
|
|
24
|
-
* @license
|
|
25
|
-
*/
|
|
26
|
-
/**
|
|
27
|
-
* AI Chat code snippet wrapper that places the snippet inside a Carbon tile.
|
|
28
|
-
* Custom element: cds-aichat-code-snippet-tile-container
|
|
29
|
-
*/
|
|
30
|
-
let CDSAIChatCodeSnippetTileContainer = class CDSAIChatCodeSnippetTileContainer extends LitElement {
|
|
31
|
-
constructor() {
|
|
32
|
-
super(...arguments);
|
|
33
|
-
// Forward all properties to the inner component
|
|
34
|
-
this.language = "";
|
|
35
|
-
this.editable = false;
|
|
36
|
-
this.highlight = false;
|
|
37
|
-
// Internal property - theme will be auto-detected in the future
|
|
38
|
-
this.dark = false;
|
|
39
|
-
this.copyText = "";
|
|
40
|
-
this.disabled = false;
|
|
41
|
-
this.feedback = "Copied!";
|
|
42
|
-
this.feedbackTimeout = 2000;
|
|
43
|
-
this.hideCopyButton = false;
|
|
44
|
-
this.maxCollapsedNumberOfRows = 15;
|
|
45
|
-
this.showLessText = "Show less";
|
|
46
|
-
this.showMoreText = "Show more";
|
|
47
|
-
this.tooltipContent = "Copy to clipboard";
|
|
48
|
-
this.wrapText = false;
|
|
49
|
-
this.getLineCountText = defaultLineCountText;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Handles the content-change event from the inner code snippet and re-dispatches it.
|
|
53
|
-
*/
|
|
54
|
-
_handleContentChange(event) {
|
|
55
|
-
this.dispatchEvent(new CustomEvent("content-change", {
|
|
56
|
-
detail: event.detail,
|
|
57
|
-
bubbles: true,
|
|
58
|
-
composed: true,
|
|
59
|
-
}));
|
|
60
|
-
}
|
|
61
|
-
render() {
|
|
62
|
-
return html `
|
|
63
|
-
<cds-aichat-tile-container>
|
|
64
|
-
<cds-tile data-rounded>
|
|
65
|
-
<div data-flush data-rounded>
|
|
66
|
-
<cds-aichat-code-snippet
|
|
67
|
-
data-rounded
|
|
68
|
-
language=${this.language}
|
|
69
|
-
?editable=${this.editable}
|
|
70
|
-
?highlight=${this.highlight}
|
|
71
|
-
@content-change=${this._handleContentChange}
|
|
72
|
-
copy-text=${this.copyText}
|
|
73
|
-
?disabled=${this.disabled}
|
|
74
|
-
feedback=${this.feedback}
|
|
75
|
-
feedback-timeout=${this.feedbackTimeout}
|
|
76
|
-
?hide-copy-button=${this.hideCopyButton}
|
|
77
|
-
max-collapsed-number-of-rows=${this.maxCollapsedNumberOfRows}
|
|
78
|
-
.getLineCountText=${this.getLineCountText}
|
|
79
|
-
show-less-text=${this.showLessText}
|
|
80
|
-
show-more-text=${this.showMoreText}
|
|
81
|
-
tooltip-content=${this.tooltipContent}
|
|
82
|
-
?wrap-text=${this.wrapText}
|
|
83
|
-
>
|
|
84
|
-
<slot></slot>
|
|
85
|
-
</cds-aichat-code-snippet>
|
|
86
|
-
</div>
|
|
87
|
-
</cds-tile>
|
|
88
|
-
</cds-aichat-tile-container>
|
|
89
|
-
`;
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
__decorate([
|
|
93
|
-
property({ type: String })
|
|
94
|
-
], CDSAIChatCodeSnippetTileContainer.prototype, "language", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
property({ type: Boolean })
|
|
97
|
-
], CDSAIChatCodeSnippetTileContainer.prototype, "editable", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
property({ type: Boolean })
|
|
100
|
-
], CDSAIChatCodeSnippetTileContainer.prototype, "highlight", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
property({ attribute: false })
|
|
103
|
-
], CDSAIChatCodeSnippetTileContainer.prototype, "dark", void 0);
|
|
104
|
-
__decorate([
|
|
105
|
-
property({ attribute: "copy-text" })
|
|
106
|
-
], CDSAIChatCodeSnippetTileContainer.prototype, "copyText", void 0);
|
|
107
|
-
__decorate([
|
|
108
|
-
property({ type: Boolean, reflect: true })
|
|
109
|
-
], CDSAIChatCodeSnippetTileContainer.prototype, "disabled", void 0);
|
|
110
|
-
__decorate([
|
|
111
|
-
property()
|
|
112
|
-
], CDSAIChatCodeSnippetTileContainer.prototype, "feedback", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
property({ type: Number, attribute: "feedback-timeout" })
|
|
115
|
-
], CDSAIChatCodeSnippetTileContainer.prototype, "feedbackTimeout", void 0);
|
|
116
|
-
__decorate([
|
|
117
|
-
property({ type: Boolean, reflect: true, attribute: "hide-copy-button" })
|
|
118
|
-
], CDSAIChatCodeSnippetTileContainer.prototype, "hideCopyButton", void 0);
|
|
119
|
-
__decorate([
|
|
120
|
-
property()
|
|
121
|
-
], CDSAIChatCodeSnippetTileContainer.prototype, "maxCollapsedNumberOfRows", void 0);
|
|
122
|
-
__decorate([
|
|
123
|
-
property({ attribute: "show-less-text" })
|
|
124
|
-
], CDSAIChatCodeSnippetTileContainer.prototype, "showLessText", void 0);
|
|
125
|
-
__decorate([
|
|
126
|
-
property({ attribute: "show-more-text" })
|
|
127
|
-
], CDSAIChatCodeSnippetTileContainer.prototype, "showMoreText", void 0);
|
|
128
|
-
__decorate([
|
|
129
|
-
property({ attribute: "tooltip-content" })
|
|
130
|
-
], CDSAIChatCodeSnippetTileContainer.prototype, "tooltipContent", void 0);
|
|
131
|
-
__decorate([
|
|
132
|
-
property({ type: Boolean, reflect: true, attribute: "wrap-text" })
|
|
133
|
-
], CDSAIChatCodeSnippetTileContainer.prototype, "wrapText", void 0);
|
|
134
|
-
__decorate([
|
|
135
|
-
property({ attribute: false })
|
|
136
|
-
], CDSAIChatCodeSnippetTileContainer.prototype, "getLineCountText", void 0);
|
|
137
|
-
CDSAIChatCodeSnippetTileContainer = __decorate([
|
|
138
|
-
carbonElement(`${prefix}-code-snippet-tile-container`)
|
|
139
|
-
], CDSAIChatCodeSnippetTileContainer);
|
|
140
|
-
var CDSAIChatCodeSnippetTileContainer$1 = CDSAIChatCodeSnippetTileContainer;
|
|
141
|
-
|
|
142
|
-
export { CDSAIChatCodeSnippetTileContainer$1 as default };
|
|
143
|
-
//# sourceMappingURL=code-snippet-tile-container.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-snippet-tile-container.js","sources":["../../../../src/components/code-snippet/src/code-snippet-tile-container.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAWH;;;AAGG;AAEH,IAAM,iCAAiC,GAAvC,MAAM,iCAAkC,SAAQ,UAAU,CAAA;AAA1D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xD,iCAAiC,GAAA,UAAA,CAAA;AADtC,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,4BAAA,CAA8B;AAChD,CAAA,EAAA,iCAAiC,CAqFtC;AAED,0CAAe,iCAAiC;;;;"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FeedbackButtonsElement } from "./feedback-buttons.js";
|
|
2
|
-
declare const FEEDBACK_BUTTONS_COMPONENT_TAG_NAME = "cds-aichat-feedback-buttons";
|
|
3
|
-
/**
|
|
4
|
-
* This class is used to display two feedback buttons (thumbs up and thumbs down).
|
|
5
|
-
*/
|
|
6
|
-
declare class CDSChatFeedbackButtonsElement extends FeedbackButtonsElement {
|
|
7
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
8
|
-
}
|
|
9
|
-
declare global {
|
|
10
|
-
interface HTMLElementTagNameMap {
|
|
11
|
-
"cds-aichat-feedback-buttons": CDSChatFeedbackButtonsElement;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export { FEEDBACK_BUTTONS_COMPONENT_TAG_NAME };
|
|
15
|
-
export default CDSChatFeedbackButtonsElement;
|
|
@@ -1,36 +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 { __decorate } from 'tslib';
|
|
9
|
-
import { carbonElement } from '../../../globals/decorators/carbon-element.js';
|
|
10
|
-
import { FeedbackButtonsElement } from './feedback-buttons.js';
|
|
11
|
-
import { feedbackButtonsElementTemplate } from './feedback-buttons.template.js';
|
|
12
|
-
|
|
13
|
-
/*
|
|
14
|
-
* Copyright IBM Corp. 2025
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*
|
|
19
|
-
* @license
|
|
20
|
-
*/
|
|
21
|
-
const FEEDBACK_BUTTONS_COMPONENT_TAG_NAME = "cds-aichat-feedback-buttons";
|
|
22
|
-
/**
|
|
23
|
-
* This class is used to display two feedback buttons (thumbs up and thumbs down).
|
|
24
|
-
*/
|
|
25
|
-
let CDSChatFeedbackButtonsElement = class CDSChatFeedbackButtonsElement extends FeedbackButtonsElement {
|
|
26
|
-
render() {
|
|
27
|
-
return feedbackButtonsElementTemplate(this);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
CDSChatFeedbackButtonsElement = __decorate([
|
|
31
|
-
carbonElement(FEEDBACK_BUTTONS_COMPONENT_TAG_NAME)
|
|
32
|
-
], CDSChatFeedbackButtonsElement);
|
|
33
|
-
var CDSChatFeedbackButtonsElement$1 = CDSChatFeedbackButtonsElement;
|
|
34
|
-
|
|
35
|
-
export { FEEDBACK_BUTTONS_COMPONENT_TAG_NAME, CDSChatFeedbackButtonsElement$1 as default };
|
|
36
|
-
//# sourceMappingURL=cds-aichat-feedback-buttons.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cds-aichat-feedback-buttons.js","sources":["../../../../src/components/feedback/src/cds-aichat-feedback-buttons.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAMH,MAAM,mCAAmC,GAAG;AAE5C;;AAEG;AAEH,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,sBAAsB,CAAA;IAChE,MAAM,GAAA;AACJ,QAAA,OAAO,8BAA8B,CAAC,IAAI,CAAC;IAC7C;CACD;AAJK,6BAA6B,GAAA,UAAA,CAAA;IADlC,aAAa,CAAC,mCAAmC;AAC5C,CAAA,EAAA,6BAA6B,CAIlC;AASD,sCAAe,6BAA6B;;;;"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FeedbackElement } from "./feedback.js";
|
|
2
|
-
declare const FEEDBACK_COMPONENT_TAG_NAME = "cds-aichat-feedback";
|
|
3
|
-
/**
|
|
4
|
-
* Custom element for rendering the feedback surface.
|
|
5
|
-
*/
|
|
6
|
-
declare class CDSChatFeedbackElement extends FeedbackElement {
|
|
7
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
8
|
-
}
|
|
9
|
-
declare global {
|
|
10
|
-
interface HTMLElementTagNameMap {
|
|
11
|
-
"cds-aichat-feedback": CDSChatFeedbackElement;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export { FEEDBACK_COMPONENT_TAG_NAME };
|
|
15
|
-
export default CDSChatFeedbackElement;
|
|
@@ -1,36 +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 { __decorate } from 'tslib';
|
|
9
|
-
import { carbonElement } from '../../../globals/decorators/carbon-element.js';
|
|
10
|
-
import { FeedbackElement } from './feedback.js';
|
|
11
|
-
import { feedbackElementTemplate } from './feedback.template.js';
|
|
12
|
-
|
|
13
|
-
/*
|
|
14
|
-
* Copyright IBM Corp. 2025
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*
|
|
19
|
-
* @license
|
|
20
|
-
*/
|
|
21
|
-
const FEEDBACK_COMPONENT_TAG_NAME = "cds-aichat-feedback";
|
|
22
|
-
/**
|
|
23
|
-
* Custom element for rendering the feedback surface.
|
|
24
|
-
*/
|
|
25
|
-
let CDSChatFeedbackElement = class CDSChatFeedbackElement extends FeedbackElement {
|
|
26
|
-
render() {
|
|
27
|
-
return feedbackElementTemplate(this);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
CDSChatFeedbackElement = __decorate([
|
|
31
|
-
carbonElement(FEEDBACK_COMPONENT_TAG_NAME)
|
|
32
|
-
], CDSChatFeedbackElement);
|
|
33
|
-
var CDSChatFeedbackElement$1 = CDSChatFeedbackElement;
|
|
34
|
-
|
|
35
|
-
export { FEEDBACK_COMPONENT_TAG_NAME, CDSChatFeedbackElement$1 as default };
|
|
36
|
-
//# sourceMappingURL=cds-aichat-feedback.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cds-aichat-feedback.js","sources":["../../../../src/components/feedback/src/cds-aichat-feedback.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAMH,MAAM,2BAA2B,GAAG;AAEpC;;AAEG;AAEH,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,eAAe,CAAA;IAClD,MAAM,GAAA;AACJ,QAAA,OAAO,uBAAuB,CAAC,IAAI,CAAC;IACtC;CACD;AAJK,sBAAsB,GAAA,UAAA,CAAA;IAD3B,aAAa,CAAC,2BAA2B;AACpC,CAAA,EAAA,sBAAsB,CAI3B;AASD,+BAAe,sBAAsB;;;;"}
|