@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
|
@@ -0,0 +1,186 @@
|
|
|
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 '../../card/src/card.js';
|
|
13
|
+
import '../../card/src/card-footer.js';
|
|
14
|
+
import '../../card/src/card-steps.js';
|
|
15
|
+
import './code-snippet.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
|
+
*
|
|
29
|
+
* @element cds-aichat-code-snippet-card
|
|
30
|
+
*/
|
|
31
|
+
let CDSAIChatCodeSnippetCard = class CDSAIChatCodeSnippetCard extends LitElement {
|
|
32
|
+
constructor() {
|
|
33
|
+
super(...arguments);
|
|
34
|
+
/** Language used for syntax highlighting. */
|
|
35
|
+
this.language = "";
|
|
36
|
+
/** Whether the snippet should be editable. */
|
|
37
|
+
this.editable = false;
|
|
38
|
+
/** Whether to enable syntax highlighting. */
|
|
39
|
+
this.highlight = false;
|
|
40
|
+
/** Fallback language to use when detection fails. */
|
|
41
|
+
this.defaultLanguage = "javascript";
|
|
42
|
+
/** Text to copy when clicking the copy button. Defaults to slotted content. */
|
|
43
|
+
this.copyText = "";
|
|
44
|
+
/** Disable interactions on the snippet. */
|
|
45
|
+
this.disabled = false;
|
|
46
|
+
/** Feedback text shown after copy. */
|
|
47
|
+
this.feedback = "Copied!";
|
|
48
|
+
/** Duration (ms) to show feedback text. */
|
|
49
|
+
this.feedbackTimeout = 2000;
|
|
50
|
+
/** Hide the copy button. */
|
|
51
|
+
this.hideCopyButton = false;
|
|
52
|
+
/** Maximum rows to show when collapsed. */
|
|
53
|
+
this.maxCollapsedNumberOfRows = 15;
|
|
54
|
+
/** Maximum rows to show when expanded (0 = unlimited). */
|
|
55
|
+
this.maxExpandedNumberOfRows = 0;
|
|
56
|
+
/** Minimum rows to show when collapsed. */
|
|
57
|
+
this.minCollapsedNumberOfRows = 3;
|
|
58
|
+
/** Minimum rows to show when expanded. */
|
|
59
|
+
this.minExpandedNumberOfRows = 16;
|
|
60
|
+
/** Label for the “show less” control. */
|
|
61
|
+
this.showLessText = "Show less";
|
|
62
|
+
/** Label for the “show more” control. */
|
|
63
|
+
this.showMoreText = "Show more";
|
|
64
|
+
/** Tooltip label for the copy action. */
|
|
65
|
+
this.tooltipContent = "Copy to clipboard";
|
|
66
|
+
/** Wrap text instead of horizontal scrolling. */
|
|
67
|
+
this.wrapText = false;
|
|
68
|
+
/** Label for folding/collapsing code. */
|
|
69
|
+
this.foldCollapseLabel = "Collapse code block";
|
|
70
|
+
/** Label for unfolding/expanding code. */
|
|
71
|
+
this.foldExpandLabel = "Expand code block";
|
|
72
|
+
/** Formatter for the line count display. */
|
|
73
|
+
this.getLineCountText = defaultLineCountText;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Handles the content-change event from the inner code snippet and re-dispatches it.
|
|
77
|
+
*/
|
|
78
|
+
_handleContentChange(event) {
|
|
79
|
+
this.dispatchEvent(new CustomEvent("content-change", {
|
|
80
|
+
detail: event.detail,
|
|
81
|
+
bubbles: true,
|
|
82
|
+
composed: true,
|
|
83
|
+
}));
|
|
84
|
+
}
|
|
85
|
+
render() {
|
|
86
|
+
return html `
|
|
87
|
+
<cds-aichat-card>
|
|
88
|
+
<div slot="body">
|
|
89
|
+
<cds-aichat-code-snippet
|
|
90
|
+
data-rounded
|
|
91
|
+
language=${this.language}
|
|
92
|
+
default-language=${this.defaultLanguage}
|
|
93
|
+
?editable=${this.editable}
|
|
94
|
+
?highlight=${this.highlight}
|
|
95
|
+
@content-change=${this._handleContentChange}
|
|
96
|
+
copy-text=${this.copyText}
|
|
97
|
+
?disabled=${this.disabled}
|
|
98
|
+
feedback=${this.feedback}
|
|
99
|
+
feedback-timeout=${this.feedbackTimeout}
|
|
100
|
+
?hide-copy-button=${this.hideCopyButton}
|
|
101
|
+
max-collapsed-number-of-rows=${this.maxCollapsedNumberOfRows}
|
|
102
|
+
max-expanded-number-of-rows=${this.maxExpandedNumberOfRows}
|
|
103
|
+
min-collapsed-number-of-rows=${this.minCollapsedNumberOfRows}
|
|
104
|
+
min-expanded-number-of-rows=${this.minExpandedNumberOfRows}
|
|
105
|
+
.getLineCountText=${this.getLineCountText}
|
|
106
|
+
show-less-text=${this.showLessText}
|
|
107
|
+
show-more-text=${this.showMoreText}
|
|
108
|
+
tooltip-content=${this.tooltipContent}
|
|
109
|
+
?wrap-text=${this.wrapText}
|
|
110
|
+
fold-collapse-label=${this.foldCollapseLabel}
|
|
111
|
+
fold-expand-label=${this.foldExpandLabel}
|
|
112
|
+
>
|
|
113
|
+
<slot></slot>
|
|
114
|
+
</cds-aichat-code-snippet>
|
|
115
|
+
</div>
|
|
116
|
+
</cds-aichat-card>
|
|
117
|
+
`;
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
__decorate([
|
|
121
|
+
property({ type: String })
|
|
122
|
+
], CDSAIChatCodeSnippetCard.prototype, "language", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
property({ type: Boolean })
|
|
125
|
+
], CDSAIChatCodeSnippetCard.prototype, "editable", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
property({ type: Boolean })
|
|
128
|
+
], CDSAIChatCodeSnippetCard.prototype, "highlight", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
property({ type: String, attribute: "default-language" })
|
|
131
|
+
], CDSAIChatCodeSnippetCard.prototype, "defaultLanguage", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
property({ attribute: "copy-text" })
|
|
134
|
+
], CDSAIChatCodeSnippetCard.prototype, "copyText", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
property({ type: Boolean, reflect: true })
|
|
137
|
+
], CDSAIChatCodeSnippetCard.prototype, "disabled", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
property()
|
|
140
|
+
], CDSAIChatCodeSnippetCard.prototype, "feedback", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
property({ type: Number, attribute: "feedback-timeout" })
|
|
143
|
+
], CDSAIChatCodeSnippetCard.prototype, "feedbackTimeout", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
property({ type: Boolean, reflect: true, attribute: "hide-copy-button" })
|
|
146
|
+
], CDSAIChatCodeSnippetCard.prototype, "hideCopyButton", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
property({ attribute: "max-collapsed-number-of-rows" })
|
|
149
|
+
], CDSAIChatCodeSnippetCard.prototype, "maxCollapsedNumberOfRows", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
property({ attribute: "max-expanded-number-of-rows" })
|
|
152
|
+
], CDSAIChatCodeSnippetCard.prototype, "maxExpandedNumberOfRows", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
property({ attribute: "min-collapsed-number-of-rows" })
|
|
155
|
+
], CDSAIChatCodeSnippetCard.prototype, "minCollapsedNumberOfRows", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
property({ attribute: "min-expanded-number-of-rows" })
|
|
158
|
+
], CDSAIChatCodeSnippetCard.prototype, "minExpandedNumberOfRows", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
property({ attribute: "show-less-text" })
|
|
161
|
+
], CDSAIChatCodeSnippetCard.prototype, "showLessText", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
property({ attribute: "show-more-text" })
|
|
164
|
+
], CDSAIChatCodeSnippetCard.prototype, "showMoreText", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
property({ attribute: "tooltip-content" })
|
|
167
|
+
], CDSAIChatCodeSnippetCard.prototype, "tooltipContent", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
property({ type: Boolean, reflect: true, attribute: "wrap-text" })
|
|
170
|
+
], CDSAIChatCodeSnippetCard.prototype, "wrapText", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
property({ attribute: "fold-collapse-label" })
|
|
173
|
+
], CDSAIChatCodeSnippetCard.prototype, "foldCollapseLabel", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
property({ attribute: "fold-expand-label" })
|
|
176
|
+
], CDSAIChatCodeSnippetCard.prototype, "foldExpandLabel", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
property({ attribute: false })
|
|
179
|
+
], CDSAIChatCodeSnippetCard.prototype, "getLineCountText", void 0);
|
|
180
|
+
CDSAIChatCodeSnippetCard = __decorate([
|
|
181
|
+
carbonElement("cds-aichat-code-snippet-card")
|
|
182
|
+
], CDSAIChatCodeSnippetCard);
|
|
183
|
+
var CDSAIChatCodeSnippetCard$1 = CDSAIChatCodeSnippetCard;
|
|
184
|
+
|
|
185
|
+
export { CDSAIChatCodeSnippetCard, CDSAIChatCodeSnippetCard$1 as default };
|
|
186
|
+
//# sourceMappingURL=code-snippet-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file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AA,EAAA,wBAAA,CAAA,SAAA,EAAA,iBAAA,EAAA,MAAA,CAAA;AAItC,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;AAC8B,CAAA,EAAA,wBAAA,CAAA,SAAA,EAAA,kBAAA,EAAA,MAAA,CAAA;AA5ExD,wBAAwB,GAAA,UAAA,CAAA;IAD7B,aAAa,CAAC,8BAA8B;AACvC,CAAA,EAAA,wBAAwB,CA6H7B;AASD,iCAAe,wBAAwB;;;;"}
|
|
@@ -9,7 +9,6 @@ declare const CDSAIChatCodeSnippet_base: (new (...args: any[]) => {
|
|
|
9
9
|
accessKey: string;
|
|
10
10
|
readonly accessKeyLabel: string;
|
|
11
11
|
autocapitalize: string;
|
|
12
|
-
autocorrect: boolean;
|
|
13
12
|
dir: string;
|
|
14
13
|
draggable: boolean;
|
|
15
14
|
hidden: boolean;
|
|
@@ -31,14 +30,13 @@ declare const CDSAIChatCodeSnippet_base: (new (...args: any[]) => {
|
|
|
31
30
|
click(): void;
|
|
32
31
|
hidePopover(): void;
|
|
33
32
|
showPopover(): void;
|
|
34
|
-
togglePopover(
|
|
33
|
+
togglePopover(force?: boolean): boolean;
|
|
35
34
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
36
35
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
37
36
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
38
37
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
39
38
|
readonly attributes: NamedNodeMap;
|
|
40
|
-
|
|
41
|
-
set classList(value: string): any;
|
|
39
|
+
readonly classList: DOMTokenList;
|
|
42
40
|
className: string;
|
|
43
41
|
readonly clientHeight: number;
|
|
44
42
|
readonly clientLeft: number;
|
|
@@ -53,8 +51,7 @@ declare const CDSAIChatCodeSnippet_base: (new (...args: any[]) => {
|
|
|
53
51
|
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
54
52
|
outerHTML: string;
|
|
55
53
|
readonly ownerDocument: Document;
|
|
56
|
-
|
|
57
|
-
set part(value: string): any;
|
|
54
|
+
readonly part: DOMTokenList;
|
|
58
55
|
readonly prefix: string | null;
|
|
59
56
|
readonly scrollHeight: number;
|
|
60
57
|
scrollLeft: number;
|
|
@@ -102,7 +99,13 @@ declare const CDSAIChatCodeSnippet_base: (new (...args: any[]) => {
|
|
|
102
99
|
removeAttributeNode(attr: Attr): Attr;
|
|
103
100
|
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
104
101
|
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
|
105
|
-
scroll(options
|
|
102
|
+
scroll(options
|
|
103
|
+
/**
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
? /**
|
|
107
|
+
* @internal
|
|
108
|
+
*/: ScrollToOptions): void;
|
|
106
109
|
scroll(x: number, y: number): void;
|
|
107
110
|
scrollBy(options?: ScrollToOptions): void;
|
|
108
111
|
scrollBy(x: number, y: number): void;
|
|
@@ -117,8 +120,6 @@ declare const CDSAIChatCodeSnippet_base: (new (...args: any[]) => {
|
|
|
117
120
|
setPointerCapture(pointerId: number): void;
|
|
118
121
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
119
122
|
webkitMatchesSelector(selectors: string): boolean;
|
|
120
|
-
get textContent(): string;
|
|
121
|
-
set textContent(value: string | null): any;
|
|
122
123
|
readonly baseURI: string;
|
|
123
124
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
124
125
|
readonly firstChild: ChildNode | null;
|
|
@@ -131,8 +132,9 @@ declare const CDSAIChatCodeSnippet_base: (new (...args: any[]) => {
|
|
|
131
132
|
readonly parentElement: HTMLElement | null;
|
|
132
133
|
readonly parentNode: ParentNode | null;
|
|
133
134
|
readonly previousSibling: ChildNode | null;
|
|
135
|
+
textContent: string | null;
|
|
134
136
|
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
135
|
-
cloneNode(
|
|
137
|
+
cloneNode(deep?: boolean): Node;
|
|
136
138
|
compareDocumentPosition(other: Node): number;
|
|
137
139
|
contains(other: Node | null): boolean;
|
|
138
140
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
@@ -165,7 +167,6 @@ declare const CDSAIChatCodeSnippet_base: (new (...args: any[]) => {
|
|
|
165
167
|
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
166
168
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
167
169
|
dispatchEvent(event: Event): boolean;
|
|
168
|
-
ariaActiveDescendantElement: Element | null;
|
|
169
170
|
ariaAtomic: string | null;
|
|
170
171
|
ariaAutoComplete: string | null;
|
|
171
172
|
ariaBrailleLabel: string | null;
|
|
@@ -176,33 +177,25 @@ declare const CDSAIChatCodeSnippet_base: (new (...args: any[]) => {
|
|
|
176
177
|
ariaColIndex: string | null;
|
|
177
178
|
ariaColIndexText: string | null;
|
|
178
179
|
ariaColSpan: string | null;
|
|
179
|
-
ariaControlsElements: ReadonlyArray<Element> | null;
|
|
180
180
|
ariaCurrent: string | null;
|
|
181
|
-
ariaDescribedByElements: ReadonlyArray<Element> | null;
|
|
182
181
|
ariaDescription: string | null;
|
|
183
|
-
ariaDetailsElements: ReadonlyArray<Element> | null;
|
|
184
182
|
ariaDisabled: string | null;
|
|
185
|
-
ariaErrorMessageElements: ReadonlyArray<Element> | null;
|
|
186
183
|
ariaExpanded: string | null;
|
|
187
|
-
ariaFlowToElements: ReadonlyArray<Element> | null;
|
|
188
184
|
ariaHasPopup: string | null;
|
|
189
185
|
ariaHidden: string | null;
|
|
190
186
|
ariaInvalid: string | null;
|
|
191
187
|
ariaKeyShortcuts: string | null;
|
|
192
188
|
ariaLabel: string | null;
|
|
193
|
-
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
194
189
|
ariaLevel: string | null;
|
|
195
190
|
ariaLive: string | null;
|
|
196
191
|
ariaModal: string | null;
|
|
197
192
|
ariaMultiLine: string | null;
|
|
198
193
|
ariaMultiSelectable: string | null;
|
|
199
194
|
ariaOrientation: string | null;
|
|
200
|
-
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
201
195
|
ariaPlaceholder: string | null;
|
|
202
196
|
ariaPosInSet: string | null;
|
|
203
197
|
ariaPressed: string | null;
|
|
204
198
|
ariaReadOnly: string | null;
|
|
205
|
-
ariaRelevant: string | null;
|
|
206
199
|
ariaRequired: string | null;
|
|
207
200
|
ariaRoleDescription: string | null;
|
|
208
201
|
ariaRowCount: string | null;
|
|
@@ -244,8 +237,7 @@ declare const CDSAIChatCodeSnippet_base: (new (...args: any[]) => {
|
|
|
244
237
|
replaceChildren(...nodes: (Node | string)[]): void;
|
|
245
238
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
246
239
|
readonly attributeStyleMap: StylePropertyMap;
|
|
247
|
-
|
|
248
|
-
set style(cssText: string): any;
|
|
240
|
+
readonly style: CSSStyleDeclaration;
|
|
249
241
|
contentEditable: string;
|
|
250
242
|
enterKeyHint: string;
|
|
251
243
|
inputMode: string;
|
|
@@ -255,19 +247,18 @@ declare const CDSAIChatCodeSnippet_base: (new (...args: any[]) => {
|
|
|
255
247
|
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
256
248
|
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
257
249
|
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
258
|
-
onauxclick: ((this: GlobalEventHandlers, ev:
|
|
250
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
259
251
|
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
260
|
-
|
|
261
|
-
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
252
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
262
253
|
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
263
254
|
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
264
255
|
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
265
256
|
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
266
257
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
267
|
-
onclick: ((this: GlobalEventHandlers, ev:
|
|
258
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
268
259
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
269
260
|
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
270
|
-
oncontextmenu: ((this: GlobalEventHandlers, ev:
|
|
261
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
271
262
|
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
272
263
|
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
273
264
|
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -315,7 +306,6 @@ declare const CDSAIChatCodeSnippet_base: (new (...args: any[]) => {
|
|
|
315
306
|
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
316
307
|
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
317
308
|
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
318
|
-
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
319
309
|
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
320
310
|
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
321
311
|
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -334,7 +324,7 @@ declare const CDSAIChatCodeSnippet_base: (new (...args: any[]) => {
|
|
|
334
324
|
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
335
325
|
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
336
326
|
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
337
|
-
ontoggle: ((this: GlobalEventHandlers, ev:
|
|
327
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
338
328
|
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
339
329
|
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
340
330
|
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
@@ -363,24 +353,43 @@ declare const CDSAIChatCodeSnippet_base: (new (...args: any[]) => {
|
|
|
363
353
|
*/
|
|
364
354
|
declare class CDSAIChatCodeSnippet extends CDSAIChatCodeSnippet_base {
|
|
365
355
|
static styles: any[];
|
|
356
|
+
/** Language used for syntax highlighting. */
|
|
366
357
|
language: string;
|
|
358
|
+
/** Whether the snippet should be editable. */
|
|
367
359
|
editable: boolean;
|
|
360
|
+
/** Whether to enable syntax highlighting. */
|
|
368
361
|
highlight: boolean;
|
|
362
|
+
/** Fallback language to use when detection fails. */
|
|
369
363
|
defaultLanguage: string;
|
|
364
|
+
/** Text to copy when clicking the copy button. Defaults to slotted content. */
|
|
370
365
|
copyText: string;
|
|
366
|
+
/** Disable interactions on the snippet. */
|
|
371
367
|
disabled: boolean;
|
|
368
|
+
/** Feedback text shown after copy. */
|
|
372
369
|
feedback: string;
|
|
370
|
+
/** Duration (ms) to show feedback text. */
|
|
373
371
|
feedbackTimeout: number;
|
|
372
|
+
/** Hide the copy button. */
|
|
374
373
|
hideCopyButton: boolean;
|
|
374
|
+
/** Maximum rows to show when collapsed. */
|
|
375
375
|
maxCollapsedNumberOfRows: number;
|
|
376
|
+
/** Maximum rows to show when expanded (0 = unlimited). */
|
|
376
377
|
maxExpandedNumberOfRows: number;
|
|
378
|
+
/** Minimum rows to show when collapsed. */
|
|
377
379
|
minCollapsedNumberOfRows: number;
|
|
380
|
+
/** Minimum rows to show when expanded. */
|
|
378
381
|
minExpandedNumberOfRows: number;
|
|
382
|
+
/** Label for the “show less” control. */
|
|
379
383
|
showLessText: string;
|
|
384
|
+
/** Label for the “show more” control. */
|
|
380
385
|
showMoreText: string;
|
|
386
|
+
/** Tooltip label for the copy action. */
|
|
381
387
|
tooltipContent: string;
|
|
388
|
+
/** Wrap text instead of horizontal scrolling. */
|
|
382
389
|
wrapText: boolean;
|
|
390
|
+
/** Label for folding/collapsing code. */
|
|
383
391
|
foldCollapseLabel: string;
|
|
392
|
+
/** Label for unfolding/expanding code. */
|
|
384
393
|
foldExpandLabel: string;
|
|
385
394
|
/**
|
|
386
395
|
* The function used to format the line count text.
|
|
@@ -388,28 +397,6 @@ declare class CDSAIChatCodeSnippet extends CDSAIChatCodeSnippet_base {
|
|
|
388
397
|
* Defaults to `${count} lines` in en-US.
|
|
389
398
|
*/
|
|
390
399
|
getLineCountText: LineCountFormatter;
|
|
391
|
-
private _slottedContent;
|
|
392
|
-
private _detectedLanguage;
|
|
393
|
-
private _languageLabelLockedIn;
|
|
394
|
-
private _lineCount;
|
|
395
|
-
private editorView?;
|
|
396
|
-
private _isEditorLoading;
|
|
397
|
-
private _expandedCode;
|
|
398
|
-
private _shouldShowMoreLessBtn;
|
|
399
|
-
private _hObserveResize;
|
|
400
|
-
private _rowHeightInPixels;
|
|
401
|
-
private _isCreatingEditor;
|
|
402
|
-
private contentSlot;
|
|
403
|
-
private editorContainer;
|
|
404
|
-
private languageCompartment;
|
|
405
|
-
private readOnlyCompartment;
|
|
406
|
-
private wrapCompartment;
|
|
407
|
-
private contentSync?;
|
|
408
|
-
private languageController;
|
|
409
|
-
private streamingManager;
|
|
410
|
-
private codemirrorRuntime;
|
|
411
|
-
private codemirrorRuntimePromise;
|
|
412
|
-
private _resizeObserver;
|
|
413
400
|
constructor();
|
|
414
401
|
private _applyLanguageState;
|
|
415
402
|
/**
|
|
@@ -470,13 +457,11 @@ declare class CDSAIChatCodeSnippet extends CDSAIChatCodeSnippet_base {
|
|
|
470
457
|
* Renders the CodeMirror host along with the controls that make the chat snippet interactive and accessible.
|
|
471
458
|
*/
|
|
472
459
|
render(): import("lit-html").TemplateResult<1>;
|
|
473
|
-
static shadowRootOptions: {
|
|
474
|
-
delegatesFocus: boolean;
|
|
475
|
-
clonable?: boolean;
|
|
476
|
-
customElementRegistry?: CustomElementRegistry;
|
|
477
|
-
mode: ShadowRootMode;
|
|
478
|
-
serializable?: boolean;
|
|
479
|
-
slotAssignment?: SlotAssignmentMode;
|
|
480
|
-
};
|
|
481
460
|
}
|
|
461
|
+
declare global {
|
|
462
|
+
interface HTMLElementTagNameMap {
|
|
463
|
+
"cds-aichat-code-snippet": CDSAIChatCodeSnippet;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
export { CDSAIChatCodeSnippet };
|
|
482
467
|
export default CDSAIChatCodeSnippet;
|