@carbon/ai-chat-components 0.5.0 → 0.6.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 +9201 -295
- package/dist/16-dhcD1XnN.js +91 -0
- package/dist/apl-DqFn9Cbk.js +91 -0
- package/dist/asciiarmor-CQVR_D9L.js +91 -0
- package/dist/asn1-Bdl290ll.js +91 -0
- package/dist/asterisk-CHhwduFx.js +91 -0
- package/dist/button-C7jiyqgq.js +157 -0
- package/dist/button-skeleton-CmP7IJd9.js +116 -0
- package/dist/carbon-element-Bx5dT_rO.js +91 -0
- package/dist/carbon-element-GZbOyRvd.js +91 -0
- package/dist/chain-of-thought.min.js +276 -0
- package/dist/chat-button.min.js +71 -81
- package/dist/checkbox-skeleton-DwliWSxe.js +166 -0
- package/dist/class-map-C991A_SZ.js +106 -0
- package/dist/clike-D_BRCCKx.js +91 -0
- package/dist/clojure-DJgQfSNr.js +91 -0
- package/dist/cmake-B-ZvYGPj.js +91 -0
- package/dist/cobol-DQkSt8H4.js +91 -0
- package/dist/code-snippet.min.js +91 -0
- package/dist/codemirror-runtime-BNdgITbn.js +173 -0
- package/dist/coffeescript-BLbmGaLw.js +91 -0
- package/dist/collection-helpers-CFQuvZZA.js +91 -0
- package/dist/commonlisp-C9udfub_.js +91 -0
- package/dist/crystal-Cx264mZy.js +91 -0
- package/dist/css-C3wBe_UD.js +91 -0
- package/dist/custom-element-Cn0sJQhF.js +96 -0
- package/dist/cypher-B6v9gzB5.js +91 -0
- package/dist/d-TP3OUaM_.js +91 -0
- package/dist/diff-Y92SrBOy.js +91 -0
- package/dist/dockerfile-b9e_zbYe.js +91 -0
- package/dist/dtd-CyzcM_UR.js +91 -0
- package/dist/dylan-CLgWKLaP.js +91 -0
- package/dist/ebnf-Cj21Kqae.js +91 -0
- package/dist/ecl-BcwtDAaq.js +91 -0
- package/dist/eiffel-Dgs2eMt8.js +91 -0
- package/dist/elm-Lz8luKdH.js +91 -0
- package/dist/erlang-M1-xYwsL.js +91 -0
- package/dist/factor-DMuLpKP7.js +91 -0
- package/dist/fcl-6D51jO4g.js +91 -0
- package/dist/feedback.min.js +300 -0
- package/dist/forth-C50AZvgy.js +91 -0
- package/dist/fortran-Dpu0QrPi.js +91 -0
- package/dist/gas-B9QnMcpy.js +91 -0
- package/dist/gherkin-DTyHG7By.js +91 -0
- package/dist/groovy-C5hIRvZS.js +91 -0
- package/dist/haskell-riE-Rg6U.js +91 -0
- package/dist/haxe-BKi5Bt6T.js +91 -0
- package/dist/http-CCf5f1Lw.js +91 -0
- package/dist/icon-button-slcp5_YI.js +143 -0
- package/dist/icon-loader-B470ctm0.js +101 -0
- package/dist/idl-ChujC8hT.js +91 -0
- package/dist/if-defined-KYZWA80L.js +96 -0
- package/dist/index-BE2hQiYV.js +91 -0
- package/dist/index-BJSu7ZrY.js +91 -0
- package/dist/index-BNCWBho3.js +91 -0
- package/dist/index-Bo9Cedlp.js +91 -0
- package/dist/index-BtGjzzQh.js +91 -0
- package/dist/index-BvcTcg8N.js +91 -0
- package/dist/index-CL7jwlI7.js +91 -0
- package/dist/index-CPho0oBg.js +91 -0
- package/dist/index-CSzVoPB_.js +91 -0
- package/dist/index-CbsQNetX.js +91 -0
- package/dist/index-CdZ_a1WB.js +91 -0
- package/dist/index-Ce_RTZPK.js +91 -0
- package/dist/index-Cic4krlv.js +91 -0
- package/dist/index-CqP0C8Q_.js +91 -0
- package/dist/index-CsEIBvob.js +91 -0
- package/dist/index-D5o8uLCI.js +168 -0
- package/dist/index-D8SIiSq6.js +367 -0
- package/dist/index-DP_9bMys.js +91 -0
- package/dist/index-DofS9KDk.js +91 -0
- package/dist/index-Duo7vkZg.js +91 -0
- package/dist/index-DxcNpyu9.js +91 -0
- package/dist/index-ET89Rloy.js +91 -0
- package/dist/index-LQA85hjt.js +91 -0
- package/dist/index-T4fwu_xG.js +91 -0
- package/dist/javascript-BXzknqbJ.js +91 -0
- package/dist/julia-Ks6uUXS_.js +91 -0
- package/dist/{settings-XW6XylsZ.js → lit-element-Cj6JUqRW.js} +70 -12
- package/dist/livescript-C-N_oa0B.js +91 -0
- package/dist/lua-DyvKK1uJ.js +91 -0
- package/dist/markdown.min.js +296 -0
- package/dist/mathematica-DEg7Ra1Y.js +91 -0
- package/dist/mbox-DreqCmNH.js +91 -0
- package/dist/mirc-Cf2JTO1B.js +91 -0
- package/dist/mllike-BrIsM2v2.js +91 -0
- package/dist/modelica-B8SYrhCg.js +91 -0
- package/dist/mscgen-Ci9STQqX.js +91 -0
- package/dist/mumps-DdZIEnoV.js +91 -0
- package/dist/nginx-csHLvOI4.js +91 -0
- package/dist/nsis-BJ14NiV_.js +91 -0
- package/dist/ntriples-r4TsB1vg.js +91 -0
- package/dist/octave-DAywLo7W.js +91 -0
- package/dist/oz-DF39EOLJ.js +91 -0
- package/dist/pascal-Cdx2JBFI.js +91 -0
- package/dist/perl-CUDzEjb5.js +91 -0
- package/dist/pig-BgGDN3Fs.js +91 -0
- package/dist/powershell-yf7ZzrwA.js +91 -0
- package/dist/processing.min.js +71 -4
- package/dist/properties-Cna57Jh2.js +91 -0
- package/dist/protobuf-CWUMO8BP.js +91 -0
- package/dist/pug-D44aRpDl.js +91 -0
- package/dist/puppet-9oZPpLZK.js +91 -0
- package/dist/python-BzmgDs2d.js +91 -0
- package/dist/q-DDRrIilQ.js +91 -0
- package/dist/query-CIc5rDzI.js +101 -0
- package/dist/r-DT4JIpvb.js +91 -0
- package/dist/radio-group-manager-Dy7yXQky.js +91 -0
- package/dist/reasoning-steps.min.js +171 -0
- package/dist/repeat-DA7noZfi.js +96 -0
- package/dist/rpm-Q94njsnC.js +91 -0
- package/dist/ruby-p6VwoSsc.js +91 -0
- package/dist/sas-C8r72_Ai.js +91 -0
- package/dist/scheme-Bw1qfPdY.js +91 -0
- package/dist/settings-Bx1fCry0.js +99 -0
- package/dist/shell-B0162WXP.js +91 -0
- package/dist/sieve-DcAl9TNY.js +91 -0
- package/dist/simple-mode-dBIHJK_w.js +91 -0
- package/dist/smalltalk-BRpoyy0q.js +91 -0
- package/dist/solr-CntivwdY.js +91 -0
- package/dist/sparql-CPxRv-GB.js +91 -0
- package/dist/spreadsheet-DiWzltX0.js +91 -0
- package/dist/sql-BZFWK8-D.js +91 -0
- package/dist/state-ldHJ0lGt.js +96 -0
- package/dist/stex-DVnajZzj.js +91 -0
- package/dist/stylus-BCkTgCvi.js +91 -0
- package/dist/swift-DumH6rGA.js +91 -0
- package/dist/sync-BrWXU4C6.js +91 -0
- package/dist/table-runtime-C-85Ozvo.js +510 -0
- package/dist/table.min.js +91 -0
- package/dist/tcl-Ds60z3Ro.js +91 -0
- package/dist/text-input-BNmEJ8ys.js +158 -0
- package/dist/textile-CgTb_UUX.js +91 -0
- package/dist/throttle-CT5ZAUBU.js +91 -0
- package/dist/tiddlywiki-D0BukLzX.js +91 -0
- package/dist/tiki-DlrtqA5_.js +91 -0
- package/dist/tile-container.min.js +70 -14
- package/dist/toml-CG0tgYZ1.js +91 -0
- package/dist/toolbar.min.js +180 -0
- package/dist/troff-DZdS2uzR.js +91 -0
- package/dist/ttcn-D2NdeEoM.js +91 -0
- package/dist/ttcn-cfg-dCpHFW8J.js +91 -0
- package/dist/turtle-DBImhCBD.js +91 -0
- package/dist/vb-BdASAZha.js +91 -0
- package/dist/vbscript-DlJph2V7.js +91 -0
- package/dist/velocity-ds6Akj1B.js +91 -0
- package/dist/verilog-KFajwNWD.js +91 -0
- package/dist/vhdl-DWozufY6.js +91 -0
- package/dist/webidl-BSUbcB__.js +91 -0
- package/dist/workspace-shell.min.js +162 -0
- package/dist/xquery-CvISDSSw.js +91 -0
- package/dist/yacas-BNn6e9ff.js +91 -0
- package/dist/z80-BwinLJKG.js +91 -0
- package/es/components/chain-of-thought/index.d.ts +4 -0
- package/es/components/chain-of-thought/index.js +11 -0
- package/es/components/chain-of-thought/index.js.map +1 -0
- package/es/components/chain-of-thought/src/cds-aichat-chain-of-thought.d.ts +15 -0
- package/es/components/chain-of-thought/src/cds-aichat-chain-of-thought.js +36 -0
- package/es/components/chain-of-thought/src/cds-aichat-chain-of-thought.js.map +1 -0
- package/es/components/chain-of-thought/src/chain-of-thought.d.ts +87 -0
- package/es/components/chain-of-thought/src/chain-of-thought.js +189 -0
- package/es/components/chain-of-thought/src/chain-of-thought.js.map +1 -0
- package/es/components/chain-of-thought/src/chain-of-thought.scss.js +13 -0
- package/es/components/chain-of-thought/src/chain-of-thought.scss.js.map +1 -0
- package/es/components/chain-of-thought/src/chain-of-thought.template.d.ts +5 -0
- package/es/components/chain-of-thought/src/chain-of-thought.template.js +206 -0
- package/es/components/chain-of-thought/src/chain-of-thought.template.js.map +1 -0
- package/es/components/chain-of-thought/src/parse-unknown-data-to-markdown.d.ts +10 -0
- package/es/components/chain-of-thought/src/parse-unknown-data-to-markdown.js +50 -0
- package/es/components/chain-of-thought/src/parse-unknown-data-to-markdown.js.map +1 -0
- package/es/components/chain-of-thought/src/types.d.ts +73 -0
- package/es/components/chain-of-thought/src/types.js +29 -0
- package/es/components/chain-of-thought/src/types.js.map +1 -0
- package/es/components/chat-button/defs.d.ts +25 -0
- package/es/components/chat-button/defs.js +36 -0
- package/es/components/chat-button/defs.js.map +1 -0
- package/es/components/chat-button/index.d.ts +1 -1
- package/es/components/chat-button/index.js +1 -1
- package/es/components/chat-button/src/chat-button.d.ts +32 -0
- package/es/components/chat-button/{chat-button.js → src/chat-button.js} +16 -10
- package/es/components/chat-button/src/chat-button.js.map +1 -0
- package/es/components/chat-button/src/chat-button.scss.js +1 -1
- package/es/components/code-snippet/index.d.ts +3 -0
- package/es/components/code-snippet/index.js +10 -0
- package/es/components/code-snippet/index.js.map +1 -0
- package/es/components/code-snippet/src/code-snippet-tile-container.d.ts +32 -0
- package/es/components/code-snippet/src/code-snippet-tile-container.js +143 -0
- package/es/components/code-snippet/src/code-snippet-tile-container.js.map +1 -0
- package/es/components/code-snippet/src/code-snippet.d.ts +482 -0
- package/es/components/code-snippet/src/code-snippet.js +592 -0
- package/es/components/code-snippet/src/code-snippet.js.map +1 -0
- package/es/components/code-snippet/src/code-snippet.scss.js +13 -0
- package/es/components/code-snippet/src/code-snippet.scss.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/base-setup.d.ts +12 -0
- package/es/components/code-snippet/src/codemirror/base-setup.js +65 -0
- package/es/components/code-snippet/src/codemirror/base-setup.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/codemirror-loader.d.ts +12 -0
- package/es/components/code-snippet/src/codemirror/codemirror-loader.js +36 -0
- package/es/components/code-snippet/src/codemirror/codemirror-loader.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +7 -0
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.js +13 -0
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/content-sync.d.ts +12 -0
- package/es/components/code-snippet/src/codemirror/content-sync.js +72 -0
- package/es/components/code-snippet/src/codemirror/content-sync.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/editor-manager.d.ts +28 -0
- package/es/components/code-snippet/src/codemirror/editor-manager.js +75 -0
- package/es/components/code-snippet/src/codemirror/editor-manager.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/language-controller.d.ts +38 -0
- package/es/components/code-snippet/src/codemirror/language-controller.js +220 -0
- package/es/components/code-snippet/src/codemirror/language-controller.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/language-data.d.ts +6 -0
- package/es/components/code-snippet/src/codemirror/language-data.js +1043 -0
- package/es/components/code-snippet/src/codemirror/language-data.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/language-utils.d.ts +79 -0
- package/es/components/code-snippet/src/codemirror/language-utils.js +219 -0
- package/es/components/code-snippet/src/codemirror/language-utils.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/marker-utils.d.ts +123 -0
- package/es/components/code-snippet/src/codemirror/marker-utils.js +183 -0
- package/es/components/code-snippet/src/codemirror/marker-utils.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/theme.d.ts +54 -0
- package/es/components/code-snippet/src/codemirror/theme.js +320 -0
- package/es/components/code-snippet/src/codemirror/theme.js.map +1 -0
- package/es/components/code-snippet/src/dom-utils.d.ts +24 -0
- package/es/components/code-snippet/src/dom-utils.js +63 -0
- package/es/components/code-snippet/src/dom-utils.js.map +1 -0
- package/es/components/code-snippet/src/formatters.d.ts +4 -0
- package/es/components/code-snippet/src/formatters.js +19 -0
- package/es/components/code-snippet/src/formatters.js.map +1 -0
- package/es/components/code-snippet/src/layout-utils.d.ts +22 -0
- package/es/components/code-snippet/src/layout-utils.js +63 -0
- package/es/components/code-snippet/src/layout-utils.js.map +1 -0
- package/es/components/code-snippet/src/streaming-manager.d.ts +24 -0
- package/es/components/code-snippet/src/streaming-manager.js +120 -0
- package/es/components/code-snippet/src/streaming-manager.js.map +1 -0
- package/es/components/feedback/index.d.ts +7 -0
- package/es/components/feedback/index.js +12 -0
- package/es/components/feedback/index.js.map +1 -0
- package/es/components/feedback/src/cds-aichat-feedback-buttons.d.ts +15 -0
- package/es/components/feedback/src/cds-aichat-feedback-buttons.js +36 -0
- package/es/components/feedback/src/cds-aichat-feedback-buttons.js.map +1 -0
- package/es/components/feedback/src/cds-aichat-feedback.d.ts +15 -0
- package/es/components/feedback/src/cds-aichat-feedback.js +36 -0
- package/es/components/feedback/src/cds-aichat-feedback.js.map +1 -0
- package/es/components/feedback/src/feedback-buttons.d.ts +56 -0
- package/es/components/feedback/src/feedback-buttons.js +104 -0
- package/es/components/feedback/src/feedback-buttons.js.map +1 -0
- package/es/components/feedback/src/feedback-buttons.scss.js +13 -0
- package/es/components/feedback/src/feedback-buttons.scss.js.map +1 -0
- package/es/components/feedback/src/feedback-buttons.template.d.ts +4 -0
- package/es/components/feedback/src/feedback-buttons.template.js +79 -0
- package/es/components/feedback/src/feedback-buttons.template.js.map +1 -0
- package/es/components/feedback/src/feedback.d.ts +114 -0
- package/es/components/feedback/src/feedback.js +182 -0
- package/es/components/feedback/src/feedback.js.map +1 -0
- package/es/components/feedback/src/feedback.scss.js +13 -0
- package/es/components/feedback/src/feedback.scss.js.map +1 -0
- package/es/components/feedback/src/feedback.template.d.ts +12 -0
- package/es/components/feedback/src/feedback.template.js +115 -0
- package/es/components/feedback/src/feedback.template.js.map +1 -0
- package/es/components/markdown/index.d.ts +2 -0
- package/es/components/markdown/index.js +9 -0
- package/es/components/markdown/index.js.map +1 -0
- package/es/components/markdown/src/cds-aichat-markdown.d.ts +13 -0
- package/es/components/markdown/src/cds-aichat-markdown.js +35 -0
- package/es/components/markdown/src/cds-aichat-markdown.js.map +1 -0
- package/es/components/markdown/src/markdown-renderer.d.ts +62 -0
- package/es/components/markdown/src/markdown-renderer.js +353 -0
- package/es/components/markdown/src/markdown-renderer.js.map +1 -0
- package/es/components/markdown/src/markdown-token-tree.d.ts +32 -0
- package/es/components/markdown/src/markdown-token-tree.js +178 -0
- package/es/components/markdown/src/markdown-token-tree.js.map +1 -0
- package/es/components/markdown/src/markdown.d.ts +44 -0
- package/es/components/markdown/src/markdown.js +238 -0
- package/es/components/markdown/src/markdown.js.map +1 -0
- package/es/components/markdown/src/markdown.scss.js +13 -0
- package/es/components/markdown/src/markdown.scss.js.map +1 -0
- package/es/components/markdown/src/markdown.template.d.ts +3 -0
- package/es/components/markdown/src/markdown.template.js +24 -0
- package/es/components/markdown/src/markdown.template.js.map +1 -0
- package/es/components/markdown/src/plugins/markdown-it-attrs.d.ts +7 -0
- package/es/components/markdown/src/plugins/markdown-it-attrs.js +84 -0
- package/es/components/markdown/src/plugins/markdown-it-attrs.js.map +1 -0
- package/es/components/markdown/src/plugins/markdown-it-highlight.d.ts +7 -0
- package/es/components/markdown/src/plugins/markdown-it-highlight.js +59 -0
- package/es/components/markdown/src/plugins/markdown-it-highlight.js.map +1 -0
- package/es/components/markdown/src/plugins/markdown-it-task-lists.d.ts +12 -0
- package/es/components/markdown/src/plugins/markdown-it-task-lists.js +73 -0
- package/es/components/markdown/src/plugins/markdown-it-task-lists.js.map +1 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/core.d.ts +26 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/core.js +330 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/core.js.map +1 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.d.ts +6 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.js +63 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.js.map +1 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/code.d.ts +6 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/code.js +43 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/code.js.map +1 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/index.d.ts +5 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/index.js +55 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/index.js.map +1 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/inline.d.ts +19 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/inline.js +210 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/inline.js.map +1 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/lists.d.ts +13 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/lists.js +156 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/lists.js.map +1 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/tables.d.ts +13 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/tables.js +216 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/tables.js.map +1 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/types.d.ts +34 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/types.js +8 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/types.js.map +1 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/utils.d.ts +25 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/utils.js +62 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/utils.js.map +1 -0
- package/es/components/markdown/src/utils/html-helpers.d.ts +2 -0
- package/es/components/markdown/src/utils/html-helpers.js +204 -0
- package/es/components/markdown/src/utils/html-helpers.js.map +1 -0
- package/es/components/markdown/src/utils/table-helpers.d.ts +31 -0
- package/es/components/markdown/src/utils/table-helpers.js +106 -0
- package/es/components/markdown/src/utils/table-helpers.js.map +1 -0
- package/es/components/markdown/src/utils.d.ts +8 -0
- package/es/components/markdown/src/utils.js +31 -0
- package/es/components/markdown/src/utils.js.map +1 -0
- package/es/components/reasoning-steps/index.d.ts +2 -0
- package/es/components/reasoning-steps/index.js +10 -0
- package/es/components/reasoning-steps/index.js.map +1 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.d.ts +29 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.js +231 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.js.map +1 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.scss.js +13 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.scss.js.map +1 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.d.ts +13 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.js +96 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.js.map +1 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.scss.js +13 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.scss.js.map +1 -0
- package/es/components/table/index.d.ts +3 -0
- package/es/components/table/index.js +9 -0
- package/es/components/table/index.js.map +1 -0
- package/es/components/table/src/cds-aichat-table.d.ts +262 -0
- package/es/components/table/src/cds-aichat-table.js +511 -0
- package/es/components/table/src/cds-aichat-table.js.map +1 -0
- package/es/components/table/src/table-loader.d.ts +4 -0
- package/es/components/table/src/table-loader.js +28 -0
- package/es/components/table/src/table-loader.js.map +1 -0
- package/es/components/table/src/table-pagination.template.d.ts +27 -0
- package/es/components/table/src/table-pagination.template.js +55 -0
- package/es/components/table/src/table-pagination.template.js.map +1 -0
- package/es/components/table/src/table-runtime.d.ts +2 -0
- package/es/components/table/src/table-runtime.js +10 -0
- package/es/components/table/src/table-runtime.js.map +1 -0
- package/es/components/table/src/table-skeleton.template.d.ts +6 -0
- package/es/components/table/src/table-skeleton.template.js +34 -0
- package/es/components/table/src/table-skeleton.template.js.map +1 -0
- package/es/components/table/src/table.scss.js +13 -0
- package/es/components/table/src/table.scss.js.map +1 -0
- package/es/components/table/src/table.template.d.ts +10 -0
- package/es/components/table/src/table.template.js +89 -0
- package/es/components/table/src/table.template.js.map +1 -0
- package/es/components/table/src/types.d.ts +13 -0
- package/es/components/table/src/types.js +8 -0
- package/es/components/table/src/types.js.map +1 -0
- package/es/components/tile-container/src/styles.scss.js +1 -1
- package/es/components/toolbar/index.d.ts +1 -0
- package/es/components/toolbar/index.js +9 -0
- package/es/components/toolbar/index.js.map +1 -0
- package/es/components/toolbar/src/toolbar.d.ts +39 -0
- package/es/components/toolbar/src/toolbar.js +179 -0
- package/es/components/toolbar/src/toolbar.js.map +1 -0
- package/es/components/toolbar/src/toolbar.scss.js +13 -0
- package/es/components/toolbar/src/toolbar.scss.js.map +1 -0
- package/es/components/workspace-shell/index.d.ts +5 -0
- package/es/components/workspace-shell/index.js +13 -0
- package/es/components/workspace-shell/index.js.map +1 -0
- package/es/components/workspace-shell/src/styles.scss.js +13 -0
- package/es/components/workspace-shell/src/styles.scss.js.map +1 -0
- package/es/components/workspace-shell/src/workspace-shell-body.d.ts +16 -0
- package/es/components/workspace-shell/src/workspace-shell-body.js +50 -0
- package/es/components/workspace-shell/src/workspace-shell-body.js.map +1 -0
- package/es/components/workspace-shell/src/workspace-shell-footer.d.ts +19 -0
- package/es/components/workspace-shell/src/workspace-shell-footer.js +53 -0
- package/es/components/workspace-shell/src/workspace-shell-footer.js.map +1 -0
- package/es/components/workspace-shell/src/workspace-shell-header.d.ts +27 -0
- package/es/components/workspace-shell/src/workspace-shell-header.js +77 -0
- package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -0
- package/es/components/workspace-shell/src/workspace-shell-toolbar.d.ts +22 -0
- package/es/components/workspace-shell/src/workspace-shell-toolbar.js +61 -0
- package/es/components/workspace-shell/src/workspace-shell-toolbar.js.map +1 -0
- package/es/components/workspace-shell/src/workspace-shell.d.ts +20 -0
- package/es/components/workspace-shell/src/workspace-shell.js +83 -0
- package/es/components/workspace-shell/src/workspace-shell.js.map +1 -0
- package/es/components/workspace-shell/src/workspace-shell.scss.js +13 -0
- package/es/components/workspace-shell/src/workspace-shell.scss.js.map +1 -0
- package/es/globals/utils/uuid.d.ts +5 -0
- package/es/globals/utils/uuid.js +32 -0
- package/es/globals/utils/uuid.js.map +1 -0
- package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js +9 -0
- package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js.map +1 -0
- package/es/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js +11 -0
- package/es/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js.map +1 -0
- package/es/node_modules/@codemirror/autocomplete/dist/index.js +258 -0
- package/es/node_modules/@codemirror/autocomplete/dist/index.js.map +1 -0
- package/es/node_modules/@codemirror/commands/dist/index.js +1140 -0
- package/es/node_modules/@codemirror/commands/dist/index.js.map +1 -0
- package/es/node_modules/@codemirror/lint/dist/index.js +636 -0
- package/es/node_modules/@codemirror/lint/dist/index.js.map +1 -0
- package/es/node_modules/@lezer/common/dist/index.js +253 -0
- package/es/node_modules/@lezer/common/dist/index.js.map +1 -0
- package/es/node_modules/crelt/index.js +37 -0
- package/es/node_modules/crelt/index.js.map +1 -0
- package/es/react/ai-label.d.ts +2 -1
- package/es/react/ai-label.js +3 -2
- package/es/react/ai-label.js.map +1 -1
- package/es/react/button.d.ts +2 -1
- package/es/react/button.js +3 -2
- package/es/react/button.js.map +1 -1
- package/es/react/chain-of-thought.d.ts +7 -0
- package/es/react/chain-of-thought.js +29 -0
- package/es/react/chain-of-thought.js.map +1 -0
- package/es/react/chat-button.d.ts +4 -4
- package/es/react/chat-button.js +6 -4
- package/es/react/chat-button.js.map +1 -1
- package/es/react/code-snippet-tile-container.d.ts +5 -0
- package/es/react/code-snippet-tile-container.js +30 -0
- package/es/react/code-snippet-tile-container.js.map +1 -0
- package/es/react/code-snippet.d.ts +4 -0
- package/es/react/code-snippet.js +31 -0
- package/es/react/code-snippet.js.map +1 -0
- package/es/react/content-switcher.d.ts +7 -0
- package/es/react/content-switcher.js +37 -0
- package/es/react/content-switcher.js.map +1 -0
- package/es/react/feedback-buttons.d.ts +4 -0
- package/es/react/feedback-buttons.js +28 -0
- package/es/react/feedback-buttons.js.map +1 -0
- package/es/react/feedback.d.ts +6 -0
- package/es/react/feedback.js +32 -0
- package/es/react/feedback.js.map +1 -0
- package/es/react/icon-button.d.ts +2 -1
- package/es/react/icon-button.js +3 -2
- package/es/react/icon-button.js.map +1 -1
- package/es/react/icon.d.ts +4 -0
- package/es/react/icon.js +28 -0
- package/es/react/icon.js.map +1 -0
- package/es/react/markdown.d.ts +4 -0
- package/es/react/markdown.js +28 -0
- package/es/react/markdown.js.map +1 -0
- package/es/react/overflow-menu.d.ts +9 -0
- package/es/react/overflow-menu.js +40 -0
- package/es/react/overflow-menu.js.map +1 -0
- package/es/react/processing.d.ts +2 -1
- package/es/react/processing.js +3 -2
- package/es/react/processing.js.map +1 -1
- package/es/react/reasoning-step.d.ts +6 -0
- package/es/react/reasoning-step.js +31 -0
- package/es/react/reasoning-step.js.map +1 -0
- package/es/react/reasoning-steps.d.ts +3 -0
- package/es/react/reasoning-steps.js +27 -0
- package/es/react/reasoning-steps.js.map +1 -0
- package/es/react/tile-container.d.ts +2 -1
- package/es/react/tile-container.js +3 -2
- package/es/react/tile-container.js.map +1 -1
- package/es/react/tile.d.ts +3 -2
- package/es/react/tile.js +5 -4
- package/es/react/tile.js.map +1 -1
- package/es/react/toolbar.d.ts +4 -0
- package/es/react/toolbar.js +28 -0
- package/es/react/toolbar.js.map +1 -0
- package/es/react/utils/withWebComponentBridge.d.ts +15 -0
- package/es/react/utils/withWebComponentBridge.js +95 -0
- package/es/react/utils/withWebComponentBridge.js.map +1 -0
- package/es/testing/load-all-lazy-deps.d.ts +10 -0
- package/es/testing/load-all-lazy-deps.js +30 -0
- package/es/testing/load-all-lazy-deps.js.map +1 -0
- package/package.json +39 -5
- package/dist/carbon-element-CMR7BOhG.js +0 -24
- package/dist/class-map-h7IEvsL_.js +0 -39
- package/es/components/chat-button/chat-button.d.ts +0 -23
- package/es/components/chat-button/chat-button.js.map +0 -1
- package/es/components/chat-button/src/chat-button.template.d.ts +0 -16
- package/es/components/chat-button/src/chat-button.template.js +0 -27
- package/es/components/chat-button/src/chat-button.template.js.map +0 -1
|
@@ -0,0 +1,143 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-snippet-tile-container.js","sources":["../../../../src/components/code-snippet/src/code-snippet-tile-container.ts"],"sourcesContent":[null],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { type LineCountFormatter } from "./formatters.js";
|
|
3
|
+
import "@carbon/web-components/es/components/skeleton-text/index.js";
|
|
4
|
+
import "@carbon/web-components/es/components/copy-button/index.js";
|
|
5
|
+
import "@carbon/web-components/es/components/copy/copy.js";
|
|
6
|
+
import "@carbon/web-components/es/components/button/button.js";
|
|
7
|
+
declare const CDSAIChatCodeSnippet_base: (new (...args: any[]) => {
|
|
8
|
+
focus(): void;
|
|
9
|
+
accessKey: string;
|
|
10
|
+
readonly accessKeyLabel: string;
|
|
11
|
+
autocapitalize: string;
|
|
12
|
+
autocorrect: boolean;
|
|
13
|
+
dir: string;
|
|
14
|
+
draggable: boolean;
|
|
15
|
+
hidden: boolean;
|
|
16
|
+
inert: boolean;
|
|
17
|
+
innerText: string;
|
|
18
|
+
lang: string;
|
|
19
|
+
readonly offsetHeight: number;
|
|
20
|
+
readonly offsetLeft: number;
|
|
21
|
+
readonly offsetParent: Element | null;
|
|
22
|
+
readonly offsetTop: number;
|
|
23
|
+
readonly offsetWidth: number;
|
|
24
|
+
outerText: string;
|
|
25
|
+
popover: string | null;
|
|
26
|
+
spellcheck: boolean;
|
|
27
|
+
title: string;
|
|
28
|
+
translate: boolean;
|
|
29
|
+
writingSuggestions: string;
|
|
30
|
+
attachInternals(): ElementInternals;
|
|
31
|
+
click(): void;
|
|
32
|
+
hidePopover(): void;
|
|
33
|
+
showPopover(): void;
|
|
34
|
+
togglePopover(options?: boolean): boolean;
|
|
35
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
36
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
37
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
38
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
39
|
+
readonly attributes: NamedNodeMap;
|
|
40
|
+
get classList(): DOMTokenList;
|
|
41
|
+
set classList(value: string): any;
|
|
42
|
+
className: string;
|
|
43
|
+
readonly clientHeight: number;
|
|
44
|
+
readonly clientLeft: number;
|
|
45
|
+
readonly clientTop: number;
|
|
46
|
+
readonly clientWidth: number;
|
|
47
|
+
readonly currentCSSZoom: number;
|
|
48
|
+
id: string;
|
|
49
|
+
innerHTML: string;
|
|
50
|
+
readonly localName: string;
|
|
51
|
+
readonly namespaceURI: string | null;
|
|
52
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
53
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
54
|
+
outerHTML: string;
|
|
55
|
+
readonly ownerDocument: Document;
|
|
56
|
+
get part(): DOMTokenList;
|
|
57
|
+
set part(value: string): any;
|
|
58
|
+
readonly prefix: string | null;
|
|
59
|
+
readonly scrollHeight: number;
|
|
60
|
+
scrollLeft: number;
|
|
61
|
+
scrollTop: number;
|
|
62
|
+
readonly scrollWidth: number;
|
|
63
|
+
readonly shadowRoot: ShadowRoot | null;
|
|
64
|
+
slot: string;
|
|
65
|
+
readonly tagName: string;
|
|
66
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
67
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
68
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
|
69
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
|
70
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
|
71
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
|
72
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
|
73
|
+
getAttribute(qualifiedName: string): string | null;
|
|
74
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
75
|
+
getAttributeNames(): string[];
|
|
76
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
|
77
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
78
|
+
getBoundingClientRect(): DOMRect;
|
|
79
|
+
getClientRects(): DOMRectList;
|
|
80
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
81
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
82
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
83
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
|
84
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
85
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
86
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
87
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
88
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
89
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
90
|
+
getHTML(options?: GetHTMLOptions): string;
|
|
91
|
+
hasAttribute(qualifiedName: string): boolean;
|
|
92
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
93
|
+
hasAttributes(): boolean;
|
|
94
|
+
hasPointerCapture(pointerId: number): boolean;
|
|
95
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
96
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
97
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
98
|
+
matches(selectors: string): boolean;
|
|
99
|
+
releasePointerCapture(pointerId: number): void;
|
|
100
|
+
removeAttribute(qualifiedName: string): void;
|
|
101
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
102
|
+
removeAttributeNode(attr: Attr): Attr;
|
|
103
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
104
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
|
105
|
+
scroll(options?: ScrollToOptions): void;
|
|
106
|
+
scroll(x: number, y: number): void;
|
|
107
|
+
scrollBy(options?: ScrollToOptions): void;
|
|
108
|
+
scrollBy(x: number, y: number): void;
|
|
109
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
110
|
+
scrollTo(options?: ScrollToOptions): void;
|
|
111
|
+
scrollTo(x: number, y: number): void;
|
|
112
|
+
setAttribute(qualifiedName: string, value: string): void;
|
|
113
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
114
|
+
setAttributeNode(attr: Attr): Attr | null;
|
|
115
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
116
|
+
setHTMLUnsafe(html: string): void;
|
|
117
|
+
setPointerCapture(pointerId: number): void;
|
|
118
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
119
|
+
webkitMatchesSelector(selectors: string): boolean;
|
|
120
|
+
get textContent(): string;
|
|
121
|
+
set textContent(value: string | null): any;
|
|
122
|
+
readonly baseURI: string;
|
|
123
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
124
|
+
readonly firstChild: ChildNode | null;
|
|
125
|
+
readonly isConnected: boolean;
|
|
126
|
+
readonly lastChild: ChildNode | null;
|
|
127
|
+
readonly nextSibling: ChildNode | null;
|
|
128
|
+
readonly nodeName: string;
|
|
129
|
+
readonly nodeType: number;
|
|
130
|
+
nodeValue: string | null;
|
|
131
|
+
readonly parentElement: HTMLElement | null;
|
|
132
|
+
readonly parentNode: ParentNode | null;
|
|
133
|
+
readonly previousSibling: ChildNode | null;
|
|
134
|
+
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
135
|
+
cloneNode(subtree?: boolean): Node;
|
|
136
|
+
compareDocumentPosition(other: Node): number;
|
|
137
|
+
contains(other: Node | null): boolean;
|
|
138
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
|
139
|
+
hasChildNodes(): boolean;
|
|
140
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
|
141
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
|
142
|
+
isEqualNode(otherNode: Node | null): boolean;
|
|
143
|
+
isSameNode(otherNode: Node | null): boolean;
|
|
144
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
|
145
|
+
lookupPrefix(namespace: string | null): string | null;
|
|
146
|
+
normalize(): void;
|
|
147
|
+
removeChild<T_1 extends Node>(child: T_1): T_1;
|
|
148
|
+
replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
|
|
149
|
+
readonly ELEMENT_NODE: 1;
|
|
150
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
151
|
+
readonly TEXT_NODE: 3;
|
|
152
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
153
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
154
|
+
readonly ENTITY_NODE: 6;
|
|
155
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
156
|
+
readonly COMMENT_NODE: 8;
|
|
157
|
+
readonly DOCUMENT_NODE: 9;
|
|
158
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
159
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
160
|
+
readonly NOTATION_NODE: 12;
|
|
161
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
162
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
163
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
164
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
165
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
166
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
167
|
+
dispatchEvent(event: Event): boolean;
|
|
168
|
+
ariaActiveDescendantElement: Element | null;
|
|
169
|
+
ariaAtomic: string | null;
|
|
170
|
+
ariaAutoComplete: string | null;
|
|
171
|
+
ariaBrailleLabel: string | null;
|
|
172
|
+
ariaBrailleRoleDescription: string | null;
|
|
173
|
+
ariaBusy: string | null;
|
|
174
|
+
ariaChecked: string | null;
|
|
175
|
+
ariaColCount: string | null;
|
|
176
|
+
ariaColIndex: string | null;
|
|
177
|
+
ariaColIndexText: string | null;
|
|
178
|
+
ariaColSpan: string | null;
|
|
179
|
+
ariaControlsElements: ReadonlyArray<Element> | null;
|
|
180
|
+
ariaCurrent: string | null;
|
|
181
|
+
ariaDescribedByElements: ReadonlyArray<Element> | null;
|
|
182
|
+
ariaDescription: string | null;
|
|
183
|
+
ariaDetailsElements: ReadonlyArray<Element> | null;
|
|
184
|
+
ariaDisabled: string | null;
|
|
185
|
+
ariaErrorMessageElements: ReadonlyArray<Element> | null;
|
|
186
|
+
ariaExpanded: string | null;
|
|
187
|
+
ariaFlowToElements: ReadonlyArray<Element> | null;
|
|
188
|
+
ariaHasPopup: string | null;
|
|
189
|
+
ariaHidden: string | null;
|
|
190
|
+
ariaInvalid: string | null;
|
|
191
|
+
ariaKeyShortcuts: string | null;
|
|
192
|
+
ariaLabel: string | null;
|
|
193
|
+
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
194
|
+
ariaLevel: string | null;
|
|
195
|
+
ariaLive: string | null;
|
|
196
|
+
ariaModal: string | null;
|
|
197
|
+
ariaMultiLine: string | null;
|
|
198
|
+
ariaMultiSelectable: string | null;
|
|
199
|
+
ariaOrientation: string | null;
|
|
200
|
+
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
201
|
+
ariaPlaceholder: string | null;
|
|
202
|
+
ariaPosInSet: string | null;
|
|
203
|
+
ariaPressed: string | null;
|
|
204
|
+
ariaReadOnly: string | null;
|
|
205
|
+
ariaRelevant: string | null;
|
|
206
|
+
ariaRequired: string | null;
|
|
207
|
+
ariaRoleDescription: string | null;
|
|
208
|
+
ariaRowCount: string | null;
|
|
209
|
+
ariaRowIndex: string | null;
|
|
210
|
+
ariaRowIndexText: string | null;
|
|
211
|
+
ariaRowSpan: string | null;
|
|
212
|
+
ariaSelected: string | null;
|
|
213
|
+
ariaSetSize: string | null;
|
|
214
|
+
ariaSort: string | null;
|
|
215
|
+
ariaValueMax: string | null;
|
|
216
|
+
ariaValueMin: string | null;
|
|
217
|
+
ariaValueNow: string | null;
|
|
218
|
+
ariaValueText: string | null;
|
|
219
|
+
role: string | null;
|
|
220
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
221
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
222
|
+
after(...nodes: (Node | string)[]): void;
|
|
223
|
+
before(...nodes: (Node | string)[]): void;
|
|
224
|
+
remove(): void;
|
|
225
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
|
226
|
+
readonly nextElementSibling: Element | null;
|
|
227
|
+
readonly previousElementSibling: Element | null;
|
|
228
|
+
readonly childElementCount: number;
|
|
229
|
+
readonly children: HTMLCollection;
|
|
230
|
+
readonly firstElementChild: Element | null;
|
|
231
|
+
readonly lastElementChild: Element | null;
|
|
232
|
+
append(...nodes: (Node | string)[]): void;
|
|
233
|
+
prepend(...nodes: (Node | string)[]): void;
|
|
234
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
235
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
236
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
237
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
238
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
239
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
240
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
241
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
242
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
243
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
244
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
|
245
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
246
|
+
readonly attributeStyleMap: StylePropertyMap;
|
|
247
|
+
get style(): CSSStyleDeclaration;
|
|
248
|
+
set style(cssText: string): any;
|
|
249
|
+
contentEditable: string;
|
|
250
|
+
enterKeyHint: string;
|
|
251
|
+
inputMode: string;
|
|
252
|
+
readonly isContentEditable: boolean;
|
|
253
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
254
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
255
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
256
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
257
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
258
|
+
onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
259
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
260
|
+
onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
261
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
262
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
263
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
264
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
265
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
266
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
267
|
+
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
268
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
269
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
270
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
271
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
272
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
273
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
274
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
275
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
276
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
277
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
278
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
279
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
280
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
281
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
282
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
283
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
284
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
285
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
286
|
+
onerror: OnErrorEventHandler;
|
|
287
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
288
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
289
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
290
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
291
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
292
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
293
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
294
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
295
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
296
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
297
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
298
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
299
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
300
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
301
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
302
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
303
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
304
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
305
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
306
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
307
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
308
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
309
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
310
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
311
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
312
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
313
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
314
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
315
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
316
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
317
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
318
|
+
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
319
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
320
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
321
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
322
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
323
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
324
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
325
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
326
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
327
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
328
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
329
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
330
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
331
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
332
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
333
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
334
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
335
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
336
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
337
|
+
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
338
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
339
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
340
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
341
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
342
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
343
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
344
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
345
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
346
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
347
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
348
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
349
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
350
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
351
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
352
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
353
|
+
autofocus: boolean;
|
|
354
|
+
readonly dataset: DOMStringMap;
|
|
355
|
+
nonce?: string;
|
|
356
|
+
tabIndex: number;
|
|
357
|
+
blur(): void;
|
|
358
|
+
}) & typeof LitElement;
|
|
359
|
+
/**
|
|
360
|
+
* AI Chat code snippet orchestrator that keeps CodeMirror in sync with streamed slot content,
|
|
361
|
+
* automatically detects and loads language highlighting, and optionally exposes an editable surface
|
|
362
|
+
* with live language re-detection and change notifications.
|
|
363
|
+
*/
|
|
364
|
+
declare class CDSAIChatCodeSnippet extends CDSAIChatCodeSnippet_base {
|
|
365
|
+
static styles: any[];
|
|
366
|
+
language: string;
|
|
367
|
+
editable: boolean;
|
|
368
|
+
highlight: boolean;
|
|
369
|
+
defaultLanguage: string;
|
|
370
|
+
copyText: string;
|
|
371
|
+
disabled: boolean;
|
|
372
|
+
feedback: string;
|
|
373
|
+
feedbackTimeout: number;
|
|
374
|
+
hideCopyButton: boolean;
|
|
375
|
+
maxCollapsedNumberOfRows: number;
|
|
376
|
+
maxExpandedNumberOfRows: number;
|
|
377
|
+
minCollapsedNumberOfRows: number;
|
|
378
|
+
minExpandedNumberOfRows: number;
|
|
379
|
+
showLessText: string;
|
|
380
|
+
showMoreText: string;
|
|
381
|
+
tooltipContent: string;
|
|
382
|
+
wrapText: boolean;
|
|
383
|
+
foldCollapseLabel: string;
|
|
384
|
+
foldExpandLabel: string;
|
|
385
|
+
/**
|
|
386
|
+
* The function used to format the line count text.
|
|
387
|
+
* Receives the line count and returns a formatted string.
|
|
388
|
+
* Defaults to `${count} lines` in en-US.
|
|
389
|
+
*/
|
|
390
|
+
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
|
+
constructor();
|
|
414
|
+
private _applyLanguageState;
|
|
415
|
+
/**
|
|
416
|
+
* Copies the visible snippet so downstream chat experiences can share code without exposing the editor internals.
|
|
417
|
+
*/
|
|
418
|
+
private _handleCopyClick;
|
|
419
|
+
/**
|
|
420
|
+
* Toggles the expanded state so long snippets can collapse inside chat tiles while still offering full visibility on demand.
|
|
421
|
+
*/
|
|
422
|
+
private _handleClickExpanded;
|
|
423
|
+
private ensureCodeMirrorRuntime;
|
|
424
|
+
/**
|
|
425
|
+
* Tears down the CodeMirror view when the component is destroyed to avoid leaking editors between chat messages.
|
|
426
|
+
*/
|
|
427
|
+
private destroyEditor;
|
|
428
|
+
/**
|
|
429
|
+
* Synchronizes CodeMirror with the latest props and streamed slot content while minimizing unnecessary re-creation work and only appending diffs when possible.
|
|
430
|
+
*/
|
|
431
|
+
private updateEditor;
|
|
432
|
+
/**
|
|
433
|
+
* Builds the CodeMirror instance that powers the formatted snippet surface inside the chat response tile.
|
|
434
|
+
*/
|
|
435
|
+
private createEditor;
|
|
436
|
+
/**
|
|
437
|
+
* Calculates the inline styles for the snippet container based on expanded state and min/max row constraints.
|
|
438
|
+
*/
|
|
439
|
+
private _getContainerStyles;
|
|
440
|
+
/**
|
|
441
|
+
* Shows or hides the expand button so the chat message can adapt to long snippets without overwhelming the layout.
|
|
442
|
+
*/
|
|
443
|
+
private _checkShowMoreButton;
|
|
444
|
+
private renderEditorFallback;
|
|
445
|
+
/**
|
|
446
|
+
* Wires up resize and content observers so the snippet reacts to streaming updates and layout changes as soon as it attaches.
|
|
447
|
+
*/
|
|
448
|
+
connectedCallback(): void;
|
|
449
|
+
/**
|
|
450
|
+
* Hooks into the rendered slot once Lit has stamped the template so we can observe streaming updates.
|
|
451
|
+
*/
|
|
452
|
+
protected firstUpdated(): void;
|
|
453
|
+
/**
|
|
454
|
+
* Ensures we capture any pre-rendered slot content before the initial paint, keeping the editor in sync from the first frame.
|
|
455
|
+
*/
|
|
456
|
+
willUpdate(_changedProperties: Map<string, any>): void;
|
|
457
|
+
/**
|
|
458
|
+
* Responds to slot churn caused by streaming tokens emitted from the chat pipeline, forcing a full rescan when the slot re-projects.
|
|
459
|
+
*/
|
|
460
|
+
private _handleSlotChange;
|
|
461
|
+
/**
|
|
462
|
+
* Cleans up observers, throttles, and the editor when the chat snippet unmounts.
|
|
463
|
+
*/
|
|
464
|
+
disconnectedCallback(): void;
|
|
465
|
+
/**
|
|
466
|
+
* Drives incremental editor updates after Lit commits.
|
|
467
|
+
*/
|
|
468
|
+
updated(changedProperties: Map<string, any>): void;
|
|
469
|
+
/**
|
|
470
|
+
* Renders the CodeMirror host along with the controls that make the chat snippet interactive and accessible.
|
|
471
|
+
*/
|
|
472
|
+
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
|
+
}
|
|
482
|
+
export default CDSAIChatCodeSnippet;
|