@carbon/ai-chat-components 0.5.0 → 0.6.0-rc.1
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-B6dpbhwk.js +91 -0
- package/dist/apl-Bkd9Mf6P.js +91 -0
- package/dist/asciiarmor-DL4R2aFc.js +91 -0
- package/dist/asn1-BNuq0wMN.js +91 -0
- package/dist/asterisk-CKsJI4Xo.js +91 -0
- package/dist/button-Cl3aa-QH.js +157 -0
- package/dist/button-skeleton-DpmYT5sr.js +116 -0
- package/dist/carbon-element-DtQeYrv7.js +91 -0
- package/dist/carbon-element-wyoWZuGw.js +91 -0
- package/dist/chain-of-thought.min.js +276 -0
- package/dist/chat-button.min.js +71 -81
- package/dist/checkbox-skeleton-77m2gyNb.js +166 -0
- package/dist/class-map-BgQK6m9u.js +106 -0
- package/dist/clike-7TJ9zfKW.js +91 -0
- package/dist/clojure-9jpZ60Lu.js +91 -0
- package/dist/cmake-UY0DwvRL.js +91 -0
- package/dist/cobol-DhfZi79a.js +91 -0
- package/dist/code-snippet.min.js +91 -0
- package/dist/codemirror-runtime-ClX6d06H.js +173 -0
- package/dist/coffeescript-mDf6LSpC.js +91 -0
- package/dist/collection-helpers-DTO_rBxT.js +91 -0
- package/dist/commonlisp-Qa7gZPAc.js +91 -0
- package/dist/crystal-C1gbEnje.js +91 -0
- package/dist/css-BLorXS28.js +91 -0
- package/dist/custom-element-C-oe1CPQ.js +96 -0
- package/dist/cypher-BY0J-JQD.js +91 -0
- package/dist/d-zkooxxUz.js +91 -0
- package/dist/diff-CrCOHpAq.js +91 -0
- package/dist/dockerfile-D7x4UVxN.js +91 -0
- package/dist/dtd-Cp_rfrvO.js +91 -0
- package/dist/dylan-BWjG5gpG.js +91 -0
- package/dist/ebnf-JN5Vq0lF.js +91 -0
- package/dist/ecl-De3xBvSp.js +91 -0
- package/dist/eiffel-BUg3McKi.js +91 -0
- package/dist/elm-BzEpaycL.js +91 -0
- package/dist/erlang-CRda3Szm.js +91 -0
- package/dist/factor-HH6tZH2o.js +91 -0
- package/dist/fcl-DethtZZ9.js +91 -0
- package/dist/feedback.min.js +300 -0
- package/dist/forth-CvRI4Fp8.js +91 -0
- package/dist/fortran-BlOOIWks.js +91 -0
- package/dist/gas-D13dt2I8.js +91 -0
- package/dist/gherkin-DeOVdg90.js +91 -0
- package/dist/groovy-HwkbYX11.js +91 -0
- package/dist/haskell-BrtcJMpO.js +91 -0
- package/dist/haxe-DLraHdYm.js +91 -0
- package/dist/http-DZFwp0rs.js +91 -0
- package/dist/icon-button-DLTQYCDh.js +143 -0
- package/dist/icon-loader-DNSGSUXr.js +101 -0
- package/dist/idl-9eLgsa_L.js +91 -0
- package/dist/if-defined-D_Efffcr.js +96 -0
- package/dist/index-07U-x-DZ.js +91 -0
- package/dist/index-B-leT4Qo.js +91 -0
- package/dist/index-BCIOZ3Iv.js +91 -0
- package/dist/index-BJcdJS87.js +91 -0
- package/dist/index-BlpbVMq_.js +91 -0
- package/dist/index-CB8fQWmx.js +91 -0
- package/dist/index-CDmjsjkj.js +91 -0
- package/dist/index-CHI0qSLN.js +91 -0
- package/dist/index-CHor-HRv.js +91 -0
- package/dist/index-C_x1WGc6.js +91 -0
- package/dist/index-Cg3MLvVN.js +91 -0
- package/dist/index-Cp5sEHjB.js +367 -0
- package/dist/index-CtUoNlIM.js +91 -0
- package/dist/index-CusUYvgE.js +91 -0
- package/dist/index-CvvPafwM.js +168 -0
- package/dist/index-DDjGfF24.js +91 -0
- package/dist/index-DxS06aLY.js +91 -0
- package/dist/index-FwP_JV-c.js +91 -0
- package/dist/index-Hcd_VCMd.js +91 -0
- package/dist/index-LlI0lXKE.js +91 -0
- package/dist/index-Q34JRmNZ.js +91 -0
- package/dist/index-f7UAoB15.js +91 -0
- package/dist/index-mQZVoo3c.js +91 -0
- package/dist/index-yd1vgygF.js +91 -0
- package/dist/javascript-hgM39w7C.js +91 -0
- package/dist/julia-DtM_gc7j.js +91 -0
- package/dist/{settings-XW6XylsZ.js → lit-element-BnGYooZk.js} +70 -12
- package/dist/livescript-BySrhTUe.js +91 -0
- package/dist/lua-ChD7R8km.js +91 -0
- package/dist/markdown.min.js +296 -0
- package/dist/mathematica-kcP6Cajy.js +91 -0
- package/dist/mbox-Bw_KHaUe.js +91 -0
- package/dist/mirc-jvko25mJ.js +91 -0
- package/dist/mllike-CNKOuVeX.js +91 -0
- package/dist/modelica-YfrFDmxR.js +91 -0
- package/dist/mscgen-Bok75bzR.js +91 -0
- package/dist/mumps-BTuSBaU1.js +91 -0
- package/dist/nginx-DwZuHJnC.js +91 -0
- package/dist/nsis-CIx93lk7.js +91 -0
- package/dist/ntriples-Djj269Be.js +91 -0
- package/dist/octave-CrdvfVOv.js +91 -0
- package/dist/oz-C4bYf6je.js +91 -0
- package/dist/pascal-D2KPt6vl.js +91 -0
- package/dist/perl-5YDHx0ay.js +91 -0
- package/dist/pig-DzmRINVg.js +91 -0
- package/dist/powershell-BT_ybnoW.js +91 -0
- package/dist/processing.min.js +71 -4
- package/dist/properties-4YytEGly.js +91 -0
- package/dist/protobuf-CI-p1B8j.js +91 -0
- package/dist/pug-DLHGbkXU.js +91 -0
- package/dist/puppet-BbNNtXxr.js +91 -0
- package/dist/python-D3PSFk0-.js +91 -0
- package/dist/q-ObXF982D.js +91 -0
- package/dist/query-DLqIY4Wn.js +101 -0
- package/dist/r-DiZLK5qY.js +91 -0
- package/dist/radio-group-manager-GuAarpdg.js +91 -0
- package/dist/reasoning-steps.min.js +171 -0
- package/dist/repeat-DQkjGru3.js +96 -0
- package/dist/rpm-BA1XlISV.js +91 -0
- package/dist/ruby-o3bYJp8s.js +91 -0
- package/dist/sas-YW-OKZPX.js +91 -0
- package/dist/scheme-D5iPrCDC.js +91 -0
- package/dist/settings-BfbbHBjJ.js +99 -0
- package/dist/shell-BMwJ8_g7.js +91 -0
- package/dist/sieve-BE4sKTG2.js +91 -0
- package/dist/simple-mode-2GmZ0AR1.js +91 -0
- package/dist/smalltalk-CI3t8V3g.js +91 -0
- package/dist/solr-xhjjvvCE.js +91 -0
- package/dist/sparql-D64FGxiD.js +91 -0
- package/dist/spreadsheet-CnwQq-zp.js +91 -0
- package/dist/sql-CWCB15es.js +91 -0
- package/dist/state-BF51fRID.js +96 -0
- package/dist/stex-DqIfOYF1.js +91 -0
- package/dist/stylus-xz-vruRQ.js +91 -0
- package/dist/swift-BPHP66va.js +91 -0
- package/dist/sync-HIZypRbs.js +91 -0
- package/dist/table-runtime-C7apcdgu.js +510 -0
- package/dist/table.min.js +91 -0
- package/dist/tcl-BSDESp20.js +91 -0
- package/dist/text-input-Ca8K1Ydg.js +158 -0
- package/dist/textile-COeIYMRW.js +91 -0
- package/dist/throttle-CN5lMS8t.js +91 -0
- package/dist/tiddlywiki-Bs5PoKQf.js +91 -0
- package/dist/tiki-DqKGtwP5.js +91 -0
- package/dist/tile-container.min.js +70 -14
- package/dist/toml-DA5Yl8WK.js +91 -0
- package/dist/toolbar.min.js +180 -0
- package/dist/troff-BRNQrjuW.js +91 -0
- package/dist/ttcn-Bn8eKWOh.js +91 -0
- package/dist/ttcn-cfg-BO-9W9JU.js +91 -0
- package/dist/turtle-CxuhUAyA.js +91 -0
- package/dist/vb-C40-VEDj.js +91 -0
- package/dist/vbscript-BogOMGMf.js +91 -0
- package/dist/velocity-CQs7G9b4.js +91 -0
- package/dist/verilog-CelFoyTQ.js +91 -0
- package/dist/vhdl-BlCs0iAG.js +91 -0
- package/dist/webidl-VWB4mjSa.js +91 -0
- package/dist/workspace-shell.min.js +162 -0
- package/dist/xquery-B8qd1YwF.js +91 -0
- package/dist/yacas-OhfCFLfI.js +91 -0
- package/dist/z80-oZfTgdDp.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 +354 -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,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2025
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @license
|
|
11
|
+
*
|
|
12
|
+
* This bundle contains the following third-party dependencies:
|
|
13
|
+
*
|
|
14
|
+
* Also refer to the following links for the license of other third-party dependencies:
|
|
15
|
+
*
|
|
16
|
+
* https://www.npmjs.com/package/tslib
|
|
17
|
+
* https://www.npmjs.com/package/lit
|
|
18
|
+
* https://www.npmjs.com/package/markdown-it
|
|
19
|
+
* https://www.npmjs.com/package/lodash-es
|
|
20
|
+
* https://www.npmjs.com/package/dompurify
|
|
21
|
+
* https://www.npmjs.com/package/lit-html
|
|
22
|
+
* https://www.npmjs.com/package/csv-stringify
|
|
23
|
+
* https://www.npmjs.com/package/@carbon/web-components
|
|
24
|
+
* https://www.npmjs.com/package/codemirror
|
|
25
|
+
* https://www.npmjs.com/package/@codemirror/state
|
|
26
|
+
* https://www.npmjs.com/package/@codemirror/language
|
|
27
|
+
* https://www.npmjs.com/package/@codemirror/lang-cpp
|
|
28
|
+
* https://www.npmjs.com/package/@codemirror/lang-sql
|
|
29
|
+
* https://www.npmjs.com/package/@codemirror/lang-css
|
|
30
|
+
* https://www.npmjs.com/package/@codemirror/lang-java
|
|
31
|
+
* https://www.npmjs.com/package/@codemirror/lang-go
|
|
32
|
+
* https://www.npmjs.com/package/@codemirror/lang-html
|
|
33
|
+
* https://www.npmjs.com/package/@codemirror/lang-javascript
|
|
34
|
+
* https://www.npmjs.com/package/@codemirror/lang-json
|
|
35
|
+
* https://www.npmjs.com/package/@codemirror/lang-jinja
|
|
36
|
+
* https://www.npmjs.com/package/@codemirror/lang-liquid
|
|
37
|
+
* https://www.npmjs.com/package/@codemirror/lang-less
|
|
38
|
+
* https://www.npmjs.com/package/@codemirror/lang-php
|
|
39
|
+
* https://www.npmjs.com/package/@codemirror/lang-markdown
|
|
40
|
+
* https://www.npmjs.com/package/@codemirror/lang-rust
|
|
41
|
+
* https://www.npmjs.com/package/@codemirror/lang-wast
|
|
42
|
+
* https://www.npmjs.com/package/@codemirror/lang-python
|
|
43
|
+
* https://www.npmjs.com/package/@codemirror/lang-sass
|
|
44
|
+
* https://www.npmjs.com/package/@codemirror/lang-xml
|
|
45
|
+
* https://www.npmjs.com/package/@codemirror/legacy-modes
|
|
46
|
+
* https://www.npmjs.com/package/@codemirror/lang-yaml
|
|
47
|
+
* https://www.npmjs.com/package/@codemirror/lang-angular
|
|
48
|
+
* https://www.npmjs.com/package/@codemirror/lang-vue
|
|
49
|
+
* https://www.npmjs.com/package/@codemirror/commands
|
|
50
|
+
* https://www.npmjs.com/package/@codemirror/lint
|
|
51
|
+
* https://www.npmjs.com/package/@codemirror/autocomplete
|
|
52
|
+
* https://www.npmjs.com/package/@lezer/highlight
|
|
53
|
+
* https://www.npmjs.com/package/@codemirror/view
|
|
54
|
+
* https://www.npmjs.com/package/@carbon/icons
|
|
55
|
+
* https://www.npmjs.com/package/@carbon/utilities
|
|
56
|
+
* https://www.npmjs.com/package/@carbon/icon-helpers
|
|
57
|
+
* https://www.npmjs.com/package/program-language-detector
|
|
58
|
+
* https://www.npmjs.com/package/lit-element
|
|
59
|
+
* https://www.npmjs.com/package/@lit/reactive-element
|
|
60
|
+
* https://www.npmjs.com/package/@codemirror/search
|
|
61
|
+
* https://www.npmjs.com/package/crelt
|
|
62
|
+
* https://www.npmjs.com/package/w3c-keyname
|
|
63
|
+
* https://www.npmjs.com/package/style-mod
|
|
64
|
+
* https://www.npmjs.com/package/@marijn/find-cluster-break
|
|
65
|
+
* https://www.npmjs.com/package/@lezer/common
|
|
66
|
+
* https://www.npmjs.com/package/@lezer/cpp
|
|
67
|
+
* https://www.npmjs.com/package/@lezer/lr
|
|
68
|
+
* https://www.npmjs.com/package/@lezer/java
|
|
69
|
+
* https://www.npmjs.com/package/@lezer/css
|
|
70
|
+
* https://www.npmjs.com/package/@lezer/go
|
|
71
|
+
* https://www.npmjs.com/package/@lezer/html
|
|
72
|
+
* https://www.npmjs.com/package/@lezer/javascript
|
|
73
|
+
* https://www.npmjs.com/package/@lezer/json
|
|
74
|
+
* https://www.npmjs.com/package/@lezer/rust
|
|
75
|
+
* https://www.npmjs.com/package/@lezer/python
|
|
76
|
+
* https://www.npmjs.com/package/@lezer/xml
|
|
77
|
+
* https://www.npmjs.com/package/@lezer/php
|
|
78
|
+
* https://www.npmjs.com/package/@lezer/markdown
|
|
79
|
+
* https://www.npmjs.com/package/@lezer/sass
|
|
80
|
+
* https://www.npmjs.com/package/@lezer/yaml
|
|
81
|
+
* https://www.npmjs.com/package/@internationalized/number
|
|
82
|
+
* https://www.npmjs.com/package/linkify-it
|
|
83
|
+
* https://www.npmjs.com/package/mdurl
|
|
84
|
+
* https://www.npmjs.com/package/punycode.js
|
|
85
|
+
* https://www.npmjs.com/package/uc.micro
|
|
86
|
+
* https://www.npmjs.com/package/@floating-ui/dom
|
|
87
|
+
* https://www.npmjs.com/package/@floating-ui/utils
|
|
88
|
+
* https://www.npmjs.com/package/@floating-ui/core
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
function e(e){var t,r;e?(t=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i,r=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i):(t=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,r=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);var i=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,n=/^(n?[zc]|p[oe]?|m)\b/i,l=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,a=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{name:"z80",startState:function(){return{context:0}},token:function(c,s){if(c.column()||(s.context=0),c.eatSpace())return null;var o;if(c.eatWhile(/\w/)){if(e&&c.eat(".")&&c.eatWhile(/\w/),o=c.current(),!c.indentation())return c.match(a)?"number":null;if((1==s.context||4==s.context)&&i.test(o))return s.context=4,"variable";if(2==s.context&&n.test(o))return s.context=4,"variableName.special";if(t.test(o))return s.context=1,"keyword";if(r.test(o))return s.context=2,"keyword";if(4==s.context&&a.test(o))return"number";if(l.test(o))return"error"}else{if(c.eat(";"))return c.skipToEnd(),"comment";if(c.eat('"')){for(;(o=c.next())&&'"'!=o;)"\\"==o&&c.next();return"string"}if(c.eat("'")){if(c.match(/\\?.'/))return"number"}else if(c.eat(".")||c.sol()&&c.eat("#")){if(s.context=5,c.eatWhile(/\w/))return"def"}else if(c.eat("$")){if(c.eatWhile(/[\da-f]/i))return"number"}else if(c.eat("%")){if(c.eatWhile(/[01]/))return"number"}else c.next()}return null}}}const t=e(!1);e(!0);export{t as z80};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "./src/cds-aichat-chain-of-thought.js";
|
|
2
|
+
export { default } from "./src/cds-aichat-chain-of-thought.js";
|
|
3
|
+
export { ChainOfThoughtElement } from "./src/chain-of-thought.js";
|
|
4
|
+
export { type ChainOfThoughtOnToggle, type ChainOfThoughtStep, ChainOfThoughtStepStatus, type ChainOfThoughtStepWithToggle, } from "./src/types.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
export { default } from './src/cds-aichat-chain-of-thought.js';
|
|
9
|
+
export { ChainOfThoughtElement } from './src/chain-of-thought.js';
|
|
10
|
+
export { ChainOfThoughtStepStatus } from './src/types.js';
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ChainOfThoughtElement } from "./chain-of-thought.js";
|
|
2
|
+
declare const CHAIN_OF_THOUGHT_COMPONENT_TAG_NAME = "cds-aichat-chain-of-thought";
|
|
3
|
+
/**
|
|
4
|
+
* Custom element wrapper that wires the template to the base element implementation.
|
|
5
|
+
*/
|
|
6
|
+
declare class CDSChatChainOfThoughtElement extends ChainOfThoughtElement {
|
|
7
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLElementTagNameMap {
|
|
11
|
+
[CHAIN_OF_THOUGHT_COMPONENT_TAG_NAME]: CDSChatChainOfThoughtElement;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export { CHAIN_OF_THOUGHT_COMPONENT_TAG_NAME };
|
|
15
|
+
export default CDSChatChainOfThoughtElement;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { __decorate } from 'tslib';
|
|
9
|
+
import { carbonElement } from '../../../globals/decorators/carbon-element.js';
|
|
10
|
+
import { ChainOfThoughtElement } from './chain-of-thought.js';
|
|
11
|
+
import { chainOfThoughtElementTemplate } from './chain-of-thought.template.js';
|
|
12
|
+
|
|
13
|
+
/*
|
|
14
|
+
* Copyright IBM Corp. 2025
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*
|
|
19
|
+
* @license
|
|
20
|
+
*/
|
|
21
|
+
const CHAIN_OF_THOUGHT_COMPONENT_TAG_NAME = "cds-aichat-chain-of-thought";
|
|
22
|
+
/**
|
|
23
|
+
* Custom element wrapper that wires the template to the base element implementation.
|
|
24
|
+
*/
|
|
25
|
+
let CDSChatChainOfThoughtElement = class CDSChatChainOfThoughtElement extends ChainOfThoughtElement {
|
|
26
|
+
render() {
|
|
27
|
+
return chainOfThoughtElementTemplate(this);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
CDSChatChainOfThoughtElement = __decorate([
|
|
31
|
+
carbonElement(CHAIN_OF_THOUGHT_COMPONENT_TAG_NAME)
|
|
32
|
+
], CDSChatChainOfThoughtElement);
|
|
33
|
+
var CDSChatChainOfThoughtElement$1 = CDSChatChainOfThoughtElement;
|
|
34
|
+
|
|
35
|
+
export { CHAIN_OF_THOUGHT_COMPONENT_TAG_NAME, CDSChatChainOfThoughtElement$1 as default };
|
|
36
|
+
//# sourceMappingURL=cds-aichat-chain-of-thought.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cds-aichat-chain-of-thought.js","sources":["../../../../src/components/chain-of-thought/src/cds-aichat-chain-of-thought.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAMH,MAAM,mCAAmC,GAAG;AAE5C;;AAEG;AAEH,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,qBAAqB,CAAA;IAC9D,MAAM,GAAA;AACJ,QAAA,OAAO,6BAA6B,CAAC,IAAI,CAAC;IAC5C;CACD;AAJK,4BAA4B,GAAA,UAAA,CAAA;IADjC,aAAa,CAAC,mCAAmC;AAC5C,CAAA,EAAA,4BAA4B,CAIjC;AASD,qCAAe,4BAA4B;;;;"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from "lit";
|
|
2
|
+
import { type ChainOfThoughtOnToggle, type ChainOfThoughtStep, type ChainOfThoughtStepWithToggle } from "./types.js";
|
|
3
|
+
declare class ChainOfThoughtElement extends LitElement {
|
|
4
|
+
static styles: any;
|
|
5
|
+
/**
|
|
6
|
+
* Indicates if the details panel for the chain of thought is open.
|
|
7
|
+
*/
|
|
8
|
+
open: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Array of steps in the chain of thought.
|
|
11
|
+
*/
|
|
12
|
+
steps: ChainOfThoughtStep[];
|
|
13
|
+
/**
|
|
14
|
+
* Formatting for label of each step item.
|
|
15
|
+
*/
|
|
16
|
+
formatStepLabelText: ({ stepNumber, stepTitle, }: {
|
|
17
|
+
stepNumber: number;
|
|
18
|
+
stepTitle: string;
|
|
19
|
+
}) => string;
|
|
20
|
+
/**
|
|
21
|
+
* Text string used to label step input.
|
|
22
|
+
*/
|
|
23
|
+
inputLabelText: string;
|
|
24
|
+
/**
|
|
25
|
+
* Text string used to label step output.
|
|
26
|
+
*/
|
|
27
|
+
outputLabelText: string;
|
|
28
|
+
/**
|
|
29
|
+
* Text string used to label the tool.
|
|
30
|
+
*/
|
|
31
|
+
toolLabelText: string;
|
|
32
|
+
/**
|
|
33
|
+
* Text string used to label the button to open the chain of thought panel.
|
|
34
|
+
*/
|
|
35
|
+
explainabilityText: string;
|
|
36
|
+
/**
|
|
37
|
+
* Optional function to call if chain of thought visibility is toggled.
|
|
38
|
+
*/
|
|
39
|
+
onToggle?: ChainOfThoughtOnToggle;
|
|
40
|
+
/**
|
|
41
|
+
* Optional function to call if a chain of thought step visibility is toggled.
|
|
42
|
+
*/
|
|
43
|
+
onStepToggle?: ChainOfThoughtOnToggle;
|
|
44
|
+
/**
|
|
45
|
+
* Text string used to label the succeeded status icon.
|
|
46
|
+
*/
|
|
47
|
+
statusSucceededLabelText: string;
|
|
48
|
+
/**
|
|
49
|
+
* Text string used to label the failed status icon.
|
|
50
|
+
*/
|
|
51
|
+
statusFailedLabelText: string;
|
|
52
|
+
/**
|
|
53
|
+
* Text string used to label the processing status icon.
|
|
54
|
+
*/
|
|
55
|
+
statusProcessingLabelText: string;
|
|
56
|
+
filterPlaceholderText?: string;
|
|
57
|
+
previousPageText?: string;
|
|
58
|
+
nextPageText?: string;
|
|
59
|
+
itemsPerPageText?: string;
|
|
60
|
+
locale?: string;
|
|
61
|
+
getPaginationSupplementalText?: ({ count }: {
|
|
62
|
+
count: number;
|
|
63
|
+
}) => string;
|
|
64
|
+
getPaginationStatusText?: ({ start, end, count, }: {
|
|
65
|
+
start: number;
|
|
66
|
+
end: number;
|
|
67
|
+
count: number;
|
|
68
|
+
}) => string;
|
|
69
|
+
feedback?: string;
|
|
70
|
+
showLessText?: string;
|
|
71
|
+
showMoreText?: string;
|
|
72
|
+
tooltipContent?: string;
|
|
73
|
+
getLineCountText?: ({ count }: {
|
|
74
|
+
count: number;
|
|
75
|
+
}) => string;
|
|
76
|
+
/**
|
|
77
|
+
* Steps, but we add in whether the step is open or not.
|
|
78
|
+
*/
|
|
79
|
+
_steps: ChainOfThoughtStepWithToggle[];
|
|
80
|
+
/**
|
|
81
|
+
* ID we use for a11y.
|
|
82
|
+
*/
|
|
83
|
+
_chainOfThoughtPanelID: string;
|
|
84
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
85
|
+
protected updated(changedProperties: PropertyValues<this>): void;
|
|
86
|
+
}
|
|
87
|
+
export { ChainOfThoughtElement };
|
|
@@ -0,0 +1,189 @@
|
|
|
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 } from 'lit';
|
|
10
|
+
import { property, state } from 'lit/decorators.js';
|
|
11
|
+
import styles from './chain-of-thought.scss.js';
|
|
12
|
+
import prefix from '../../../globals/settings.js';
|
|
13
|
+
import { uuid } from '../../../globals/utils/uuid.js';
|
|
14
|
+
|
|
15
|
+
/*
|
|
16
|
+
* Copyright IBM Corp. 2025
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
19
|
+
* LICENSE file in the root directory of this source tree.
|
|
20
|
+
*
|
|
21
|
+
* @license
|
|
22
|
+
*/
|
|
23
|
+
const numberFormatter = new Intl.NumberFormat("en-US");
|
|
24
|
+
const formatStepLabelTextDefault = ({ stepNumber, stepTitle, }) => {
|
|
25
|
+
const formattedNumber = numberFormatter.format(stepNumber);
|
|
26
|
+
const formattedTitle = stepTitle || "";
|
|
27
|
+
return `${formattedNumber}: ${formattedTitle}`;
|
|
28
|
+
};
|
|
29
|
+
class ChainOfThoughtElement extends LitElement {
|
|
30
|
+
constructor() {
|
|
31
|
+
super(...arguments);
|
|
32
|
+
/**
|
|
33
|
+
* Indicates if the details panel for the chain of thought is open.
|
|
34
|
+
*/
|
|
35
|
+
this.open = false;
|
|
36
|
+
/**
|
|
37
|
+
* Array of steps in the chain of thought.
|
|
38
|
+
*/
|
|
39
|
+
this.steps = [];
|
|
40
|
+
/**
|
|
41
|
+
* Formatting for label of each step item.
|
|
42
|
+
*/
|
|
43
|
+
this.formatStepLabelText = formatStepLabelTextDefault;
|
|
44
|
+
/**
|
|
45
|
+
* Text string used to label step input.
|
|
46
|
+
*/
|
|
47
|
+
this.inputLabelText = "Input";
|
|
48
|
+
/**
|
|
49
|
+
* Text string used to label step output.
|
|
50
|
+
*/
|
|
51
|
+
this.outputLabelText = "Output";
|
|
52
|
+
/**
|
|
53
|
+
* Text string used to label the tool.
|
|
54
|
+
*/
|
|
55
|
+
this.toolLabelText = "Tool";
|
|
56
|
+
/**
|
|
57
|
+
* Text string used to label the button to open the chain of thought panel.
|
|
58
|
+
*/
|
|
59
|
+
this.explainabilityText = "Show chain of thought";
|
|
60
|
+
/**
|
|
61
|
+
* Text string used to label the succeeded status icon.
|
|
62
|
+
*/
|
|
63
|
+
this.statusSucceededLabelText = "Succeeded";
|
|
64
|
+
/**
|
|
65
|
+
* Text string used to label the failed status icon.
|
|
66
|
+
*/
|
|
67
|
+
this.statusFailedLabelText = "Failed";
|
|
68
|
+
/**
|
|
69
|
+
* Text string used to label the processing status icon.
|
|
70
|
+
*/
|
|
71
|
+
this.statusProcessingLabelText = "Processing";
|
|
72
|
+
/**
|
|
73
|
+
* Steps, but we add in whether the step is open or not.
|
|
74
|
+
*/
|
|
75
|
+
this._steps = [];
|
|
76
|
+
/**
|
|
77
|
+
* ID we use for a11y.
|
|
78
|
+
*/
|
|
79
|
+
this._chainOfThoughtPanelID = `${prefix}-chain-of-thought-panel-id-${uuid()}`;
|
|
80
|
+
}
|
|
81
|
+
firstUpdated(_changedProperties) {
|
|
82
|
+
const steps = this.steps ?? [];
|
|
83
|
+
this._steps = steps.map((item) => ({ ...item, open: false }));
|
|
84
|
+
}
|
|
85
|
+
updated(changedProperties) {
|
|
86
|
+
if (changedProperties.has("steps")) {
|
|
87
|
+
const incomingSteps = this.steps ?? [];
|
|
88
|
+
const currentSteps = this._steps ?? [];
|
|
89
|
+
this._steps = incomingSteps.map((item, index) => ({
|
|
90
|
+
...item,
|
|
91
|
+
open: currentSteps[index]?.open ?? false,
|
|
92
|
+
}));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
ChainOfThoughtElement.styles = styles;
|
|
97
|
+
__decorate([
|
|
98
|
+
property({ type: Boolean, attribute: "open", reflect: true })
|
|
99
|
+
], ChainOfThoughtElement.prototype, "open", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
property({ type: Array, attribute: "steps", reflect: true })
|
|
102
|
+
], ChainOfThoughtElement.prototype, "steps", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
property({ type: Function, attribute: false })
|
|
105
|
+
], ChainOfThoughtElement.prototype, "formatStepLabelText", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
property({ type: String, attribute: "input-label-text", reflect: true })
|
|
108
|
+
], ChainOfThoughtElement.prototype, "inputLabelText", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
property({ type: String, attribute: "output-label-text", reflect: true })
|
|
111
|
+
], ChainOfThoughtElement.prototype, "outputLabelText", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
property({ type: String, attribute: "tool-label-text", reflect: true })
|
|
114
|
+
], ChainOfThoughtElement.prototype, "toolLabelText", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
property({ type: String, attribute: "explainability-text", reflect: true })
|
|
117
|
+
], ChainOfThoughtElement.prototype, "explainabilityText", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
property({ type: Function, attribute: false })
|
|
120
|
+
], ChainOfThoughtElement.prototype, "onToggle", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
property({ type: Function, attribute: false })
|
|
123
|
+
], ChainOfThoughtElement.prototype, "onStepToggle", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
property({
|
|
126
|
+
type: String,
|
|
127
|
+
attribute: "status-succeeded-label-text",
|
|
128
|
+
reflect: true,
|
|
129
|
+
})
|
|
130
|
+
], ChainOfThoughtElement.prototype, "statusSucceededLabelText", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
property({
|
|
133
|
+
type: String,
|
|
134
|
+
attribute: "status-failed-label-text",
|
|
135
|
+
reflect: true,
|
|
136
|
+
})
|
|
137
|
+
], ChainOfThoughtElement.prototype, "statusFailedLabelText", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
property({
|
|
140
|
+
type: String,
|
|
141
|
+
attribute: "status-processing-label-text",
|
|
142
|
+
reflect: true,
|
|
143
|
+
})
|
|
144
|
+
], ChainOfThoughtElement.prototype, "statusProcessingLabelText", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
property({ type: String, attribute: "filter-placeholder-text" })
|
|
147
|
+
], ChainOfThoughtElement.prototype, "filterPlaceholderText", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
property({ type: String, attribute: "previous-page-text" })
|
|
150
|
+
], ChainOfThoughtElement.prototype, "previousPageText", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
property({ type: String, attribute: "next-page-text" })
|
|
153
|
+
], ChainOfThoughtElement.prototype, "nextPageText", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
property({ type: String, attribute: "items-per-page-text" })
|
|
156
|
+
], ChainOfThoughtElement.prototype, "itemsPerPageText", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
property({ type: String, attribute: "locale" })
|
|
159
|
+
], ChainOfThoughtElement.prototype, "locale", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
property({ type: Object, attribute: false })
|
|
162
|
+
], ChainOfThoughtElement.prototype, "getPaginationSupplementalText", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
property({ type: Object, attribute: false })
|
|
165
|
+
], ChainOfThoughtElement.prototype, "getPaginationStatusText", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
property({ type: String, attribute: "feedback" })
|
|
168
|
+
], ChainOfThoughtElement.prototype, "feedback", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
property({ type: String, attribute: "show-less-text" })
|
|
171
|
+
], ChainOfThoughtElement.prototype, "showLessText", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
property({ type: String, attribute: "show-more-text" })
|
|
174
|
+
], ChainOfThoughtElement.prototype, "showMoreText", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
property({ type: String, attribute: "tooltip-content" })
|
|
177
|
+
], ChainOfThoughtElement.prototype, "tooltipContent", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
property({ type: Object, attribute: false })
|
|
180
|
+
], ChainOfThoughtElement.prototype, "getLineCountText", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
state()
|
|
183
|
+
], ChainOfThoughtElement.prototype, "_steps", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
state()
|
|
186
|
+
], ChainOfThoughtElement.prototype, "_chainOfThoughtPanelID", void 0);
|
|
187
|
+
|
|
188
|
+
export { ChainOfThoughtElement };
|
|
189
|
+
//# sourceMappingURL=chain-of-thought.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain-of-thought.js","sources":["../../../../src/components/chain-of-thought/src/chain-of-thought.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAcH,MAAM,eAAe,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC;AAEtD,MAAM,0BAA0B,GAAG,CAAC,EAClC,UAAU,EACV,SAAS,GAIV,KAAI;IACH,MAAM,eAAe,GAAG,eAAe,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
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { css } from 'lit';
|
|
9
|
+
|
|
10
|
+
var styles = css([":host{display:block;margin-block-start:1rem}:host([open]) .cds-aichat--chain-of-thought-content{display:block;max-block-size:-moz-fit-content;max-block-size:fit-content;opacity:1;overflow:visible}:host([open]) .cds-aichat--chain-of-thought-button-chevron svg{transform:rotate(-90deg)}.cds-aichat--chain-of-thought-button-chevron{display:flex;flex-basis:1.5rem}@media screen and (prefers-reduced-motion:reduce){.cds-aichat--chain-of-thought-button-chevron svg{transform:rotate(-270deg);transition:none}}.cds-aichat--chain-of-thought-button-chevron svg{transform:rotate(-270deg);transition:all .11s cubic-bezier(.2,0,.38,.9)}.cds-aichat--chain-of-thought-content{display:none;max-block-size:0;opacity:0;overflow:hidden;transition:all allow-discrete .11s cubic-bezier(0,0,.38,.9)}.cds-aichat--chain-of-thought-inner-content{background-color:var(--cds-layer-01,#f4f4f4);border:1px solid var(--cds-border-subtle-01,#c6c6c6);margin-block-start:.5rem}.cds-aichat--chain-of-thought-item:not(:last-child){padding-block-end:.75rem}.cds-aichat--chain-of-thought-item cds-aichat-markdown:not(:first-child){padding-block-start:.5rem}.cds-aichat--chain-of-thought-item-label{font-size:var(--cds-heading-01-font-size,.875rem);font-weight:var(--cds-heading-01-font-weight,600);letter-spacing:var(--cds-heading-01-letter-spacing,.16px);line-height:var(--cds-heading-01-line-height,1.42857)}button.cds-aichat--chain-of-thought-button{box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;vertical-align:baseline}button.cds-aichat--chain-of-thought-button *,button.cds-aichat--chain-of-thought-button :after,button.cds-aichat--chain-of-thought-button :before{box-sizing:inherit}button.cds-aichat--chain-of-thought-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;inline-size:100%;padding:0;text-align:start}button.cds-aichat--chain-of-thought-button::-moz-focus-inner{border:0}button.cds-aichat--chain-of-thought-button{align-items:center;color:var(--cds-text-primary,#161616);display:flex;font-size:var(--cds-heading-01-font-size,.875rem);font-weight:var(--cds-heading-01-font-weight,600);letter-spacing:var(--cds-heading-01-letter-spacing,.16px);line-height:var(--cds-heading-01-line-height,1.42857)}button.cds-aichat--chain-of-thought-button:focus,button.cds-aichat--chain-of-thought-button:focus-visible{outline:2px solid var(--cds-focus,#0f62fe)}.cds-aichat--chain-of-thought-accordion-item-content{background:var(--cds-layer-01,#f4f4f4);color:var(--cds-text-primary,#161616);display:block;max-block-size:-moz-fit-content;max-block-size:fit-content;opacity:1;overflow:visible;transition:all allow-discrete .11s cubic-bezier(0,0,.38,.9)}.cds-aichat--chain-of-thought-item{padding-block:1rem;padding-inline:2rem 1rem}.cds-aichat--chain-of-thought-accordion-item-content[hidden]{display:none;max-block-size:0;opacity:0;overflow:hidden;padding-block:0;padding-inline:0}.cds-aichat--chain-of-thought-accordion-item-header-chevron{color:var(--cds-text-primary,#161616);display:flex;flex:0 1 2rem;justify-content:center}@media screen and (prefers-reduced-motion:reduce){.cds-aichat--chain-of-thought-accordion-item-header-chevron svg{fill:var(--cds-text-primary,#161616);transform:rotate(-270deg);transition:none}}.cds-aichat--chain-of-thought-accordion-item-header-chevron svg{fill:var(--cds-text-primary,#161616);transform:rotate(-270deg);transition:all .11s cubic-bezier(.2,0,.38,.9)}.cds-aichat--chain-of-thought-accordion-item-header-chevron[data-open] svg{transform:rotate(-90deg)}.cds-aichat--chain-of-thought-accordion-item-header-chevron[data-disabled] svg{visibility:hidden}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header{box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;vertical-align:baseline}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header *,.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header :after,.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header :before{box-sizing:inherit}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;inline-size:100%;padding:0;text-align:start}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header::-moz-focus-inner{border:0}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header{align-items:center;background:var(--cds-layer-accent-02,#e0e0e0);block-size:2rem;display:flex;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857);padding:.5rem 0}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header[disabled]{cursor:default}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header:focus,.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header:focus-visible{box-shadow:0 -1px 0 0 var(--cds-focus,#0f62fe),inset 0 1px 0 0 var(--cds-focus,#0f62fe),inset 2px 0 0 0 var(--cds-focus,#0f62fe),0 1px 0 0 var(--cds-focus,#0f62fe),inset 0 -1px 0 0 var(--cds-focus,#0f62fe),inset -2px 0 0 0 var(--cds-focus,#0f62fe);outline:none;position:relative;z-index:2}.cds-aichat--chain-of-thought-accordion-item:nth-child(odd) button.cds-aichat--chain-of-thought-accordion-item-header{background:var(--cds-layer-02,#fff)}.cds-aichat--chain-of-thought-accordion-item-header-title{color:var(--cds-text-primary,#161616);flex:1 1;margin-inline-end:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cds-aichat--chain-of-thought-accordion-item-header-status{align-items:center;display:flex;flex:0 0 1.5rem;justify-content:center}.cds-aichat--chain-of-thought-accordion-item-header-status--failure{align-items:center;display:flex;justify-content:center;margin-inline-end:.5rem}.cds-aichat--chain-of-thought-accordion-item-header-status--failure svg{fill:var(--cds-support-error,#da1e28)}.cds-aichat--chain-of-thought-accordion-item-header-status--success{align-items:center;display:flex;justify-content:center;margin-inline-end:.5rem}.cds-aichat--chain-of-thought-accordion-item-header-status--success svg{fill:var(--cds-support-success,#24a148)}"]);
|
|
11
|
+
|
|
12
|
+
export { styles as default };
|
|
13
|
+
//# sourceMappingURL=chain-of-thought.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain-of-thought.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "../../markdown/index.js";
|
|
2
|
+
import "@carbon/web-components/es/components/inline-loading/index.js";
|
|
3
|
+
import { ChainOfThoughtElement } from "./chain-of-thought.js";
|
|
4
|
+
declare function chainOfThoughtElementTemplate(customElementClass: ChainOfThoughtElement): import("lit-html").TemplateResult<1>;
|
|
5
|
+
export { chainOfThoughtElementTemplate };
|