@coveo/atomic 3.57.2 → 3.58.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 +13213 -13207
- package/dist/cjs/cdn.cjs +2 -2
- package/dist/cjs/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.cjs +1 -1
- package/dist/cjs/components/commerce/atomic-commerce-layout/commerce-layout.cjs +3 -3
- package/dist/cjs/components/commerce/index.cjs +37 -37
- package/dist/cjs/components/commerce/product-template-component-utils/product-utils.cjs +2 -2
- package/dist/cjs/components/commerce/sort/option.cjs +2 -2
- package/dist/cjs/components/common/atomic-agent-stream-of-thought/atomic-agent-stream-of-thought.cjs +241 -0
- package/dist/cjs/components/common/atomic-agent-stream-of-thought/atomic-agent-stream-of-thought.tw.css.cjs +109 -0
- package/dist/cjs/components/common/atomic-generated-answer-content/atomic-generated-answer-content.cjs +6 -8
- package/dist/cjs/components/common/atomic-generated-answer-feedback-modal/atomic-generated-answer-feedback-modal.cjs +1 -1
- package/dist/cjs/components/common/atomic-generated-answer-thread/atomic-generated-answer-thread.cjs +2 -2
- package/dist/cjs/components/common/atomic-generated-answer-thread-item/atomic-generated-answer-thread-item.cjs +36 -5
- package/dist/cjs/components/common/atomic-icon/fetch-icon.cjs +2 -2
- package/dist/cjs/components/common/facets/facet-search/facet-search-utils.cjs +1 -1
- package/dist/cjs/components/common/facets/popover/popover-type.cjs +2 -2
- package/dist/cjs/components/common/formats/format-common.cjs +2 -2
- package/dist/cjs/components/common/generated-answer/generated-content-container.cjs +1 -1
- package/dist/cjs/components/common/generated-answer/styles/generated-answer.tw.css.cjs +4 -26
- package/dist/cjs/components/common/index.cjs +20 -16
- package/dist/cjs/components/common/interface/analytics-config.cjs +2 -2
- package/dist/cjs/components/common/interface/i18n.cjs +1 -1
- package/dist/cjs/components/common/interface/store.cjs +3 -3
- package/dist/cjs/components/common/item-list/context/folded-item-list-context-controller.cjs +2 -2
- package/dist/cjs/components/common/item-list/item-list-common.cjs +2 -2
- package/dist/cjs/components/common/item-list/table-layout.cjs +1 -1
- package/dist/cjs/components/common/items-per-page/validate.cjs +2 -2
- package/dist/cjs/components/common/layout/item-layout-sections.cjs +2 -2
- package/dist/cjs/components/common/layout/item-layout-utils.cjs +2 -2
- package/dist/cjs/components/common/lazy-index.cjs +1 -0
- package/dist/cjs/components/common/pager/pager-buttons.cjs +2 -2
- package/dist/cjs/components/common/query-summary/utils.cjs +2 -2
- package/dist/cjs/components/common/refine-modal/filters.cjs +2 -2
- package/dist/cjs/components/common/suggestions/recent-queries.cjs +3 -3
- package/dist/cjs/components/common/template-controller/template-utils.cjs +2 -2
- package/dist/cjs/components/insight/index.cjs +29 -29
- package/dist/cjs/components/ipx/index.cjs +5 -5
- package/dist/cjs/components/recommendations/index.cjs +2 -2
- package/dist/cjs/components/search/atomic-generated-answer/atomic-generated-answer.cjs +11 -2
- package/dist/cjs/components/search/atomic-search-layout/search-layout.cjs +3 -3
- package/dist/cjs/components/search/index.cjs +66 -66
- package/dist/cjs/components/search/result-template-components/quickview-word-highlight/iframe-parser.cjs +2 -2
- package/dist/cjs/components/search/result-template-components/quickview-word-highlight/quickview-word-highlight.cjs +2 -2
- package/dist/cjs/global/environment.cjs +1 -1
- package/dist/cjs/utils/accessibility-utils.cjs +1 -1
- package/dist/cjs/utils/coveo.tw.css.cjs +1 -1
- package/dist/cjs/utils/custom-element-tags.cjs +1 -0
- package/dist/cjs/utils/date-utils.cjs +2 -2
- package/dist/cjs/utils/event-utils.cjs +1 -1
- package/dist/cjs/utils/initialization-common-utils.cjs +3 -3
- package/dist/cjs/utils/props-utils.cjs +2 -2
- package/dist/cjs/utils/result-utils.cjs +1 -1
- package/dist/cjs/utils/tailwind.global.tw.css.cjs +1 -1
- package/dist/cjs/utils/utils.cjs +16 -16
- package/dist/cjs/versions.cjs +3 -3
- package/dist/esm/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.js +2 -2
- package/dist/esm/components/commerce/atomic-commerce-category-facet/atomic-commerce-category-facet.js +1 -1
- package/dist/esm/components/commerce/atomic-commerce-product-list/atomic-commerce-product-list.js +1 -1
- package/dist/esm/components/commerce/atomic-commerce-recommendation-list/atomic-commerce-recommendation-list.js +1 -1
- package/dist/esm/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +1 -1
- package/dist/esm/components/commerce/atomic-product/atomic-product.tw.css.js +1 -1
- package/dist/esm/components/commerce/atomic-product-link/atomic-product-link.tw.css.js +1 -1
- package/dist/esm/components/commerce/atomic-product-section-actions/atomic-product-section-actions.js +1 -1
- package/dist/esm/components/commerce/atomic-product-section-badges/atomic-product-section-badges.js +1 -1
- package/dist/esm/components/commerce/atomic-product-section-bottom-metadata/atomic-product-section-bottom-metadata.js +1 -1
- package/dist/esm/components/commerce/atomic-product-section-children/atomic-product-section-children.js +1 -1
- package/dist/esm/components/commerce/atomic-product-section-description/atomic-product-section-description.js +1 -1
- package/dist/esm/components/commerce/atomic-product-section-emphasized/atomic-product-section-emphasized.js +1 -1
- package/dist/esm/components/commerce/atomic-product-section-metadata/atomic-product-section-metadata.js +1 -1
- package/dist/esm/components/commerce/atomic-product-section-name/atomic-product-section-name.js +1 -1
- package/dist/esm/components/commerce/atomic-product-section-visual/atomic-product-section-visual.js +1 -1
- package/dist/esm/components/common/atomic-agent-stream-of-thought/atomic-agent-stream-of-thought.js +194 -0
- package/dist/esm/components/common/atomic-agent-stream-of-thought/atomic-agent-stream-of-thought.tw.css.js +4 -0
- package/dist/esm/components/common/atomic-ask-follow-up-input/atomic-ask-follow-up-input.tw.css.js +1 -1
- package/dist/esm/components/common/atomic-citation/atomic-citation.tw.css.js +1 -1
- package/dist/esm/components/common/atomic-generated-answer-content/atomic-generated-answer-content.js +6 -8
- package/dist/esm/components/common/atomic-generated-answer-feedback-modal/atomic-generated-answer-feedback-modal.js +2 -2
- package/dist/esm/components/common/atomic-generated-answer-inline-link/atomic-generated-answer-inline-link.tw.css.js +1 -1
- package/dist/esm/components/common/atomic-generated-answer-thread/atomic-generated-answer-thread.js +2 -2
- package/dist/esm/components/common/atomic-generated-answer-thread-item/atomic-generated-answer-thread-item.js +36 -5
- package/dist/esm/components/common/atomic-modal/atomic-modal.js +1 -1
- package/dist/esm/components/common/atomic-rating/atomic-rating.tw.css.js +1 -1
- package/dist/esm/components/common/atomic-result-placeholder/atomic-result-placeholder.js +1 -1
- package/dist/esm/components/common/atomic-smart-snippet-answer/atomic-smart-snippet-answer.tw.css.js +1 -1
- package/dist/esm/components/common/atomic-smart-snippet-expandable-answer/atomic-smart-snippet-expandable-answer.tw.css.js +1 -1
- package/dist/esm/components/common/atomic-tab-bar/atomic-tab-bar.js +1 -1
- package/dist/esm/components/common/facets/facet-common.tw.css.js +1 -1
- package/dist/esm/components/common/facets/facet-search/facet-search.tw.css.js +1 -1
- package/dist/esm/components/common/facets/facet-value-box/facet-value-box.tw.css.js +1 -1
- package/dist/esm/components/common/facets/facet-value-checkbox/facet-value-checkbox.tw.css.js +1 -1
- package/dist/esm/components/common/generated-answer/generated-content/generated-markdown-content.tw.css.js +1 -1
- package/dist/esm/components/common/generated-answer/generated-content-container.js +1 -1
- package/dist/esm/components/common/generated-answer/styles/generated-answer.tw.css.js +1 -1
- package/dist/esm/components/common/generated-answer/styles/generated-text.tw.css.js +1 -1
- package/dist/esm/components/common/index.js +1 -0
- package/dist/esm/components/common/item-list/styles/grid-display.tw.css.js +1 -1
- package/dist/esm/components/common/item-list/styles/list-display.tw.css.js +1 -1
- package/dist/esm/components/common/item-list/styles/table-display.tw.css.js +1 -1
- package/dist/esm/components/common/lazy-index.js +1 -0
- package/dist/esm/components/insight/atomic-insight-full-search-button/atomic-insight-full-search-button.js +1 -1
- package/dist/esm/components/insight/atomic-insight-pager/atomic-insight-pager.js +1 -1
- package/dist/esm/components/insight/atomic-insight-result/atomic-insight-result.js +1 -1
- package/dist/esm/components/insight/atomic-insight-result-action/atomic-insight-result-action.js +1 -1
- package/dist/esm/components/insight/atomic-insight-result-action-bar/atomic-insight-result-action-bar.js +1 -1
- package/dist/esm/components/insight/atomic-insight-result-children/atomic-insight-result-children.js +1 -1
- package/dist/esm/components/insight/atomic-insight-result-list/insight-list-display.tw.css.js +1 -1
- package/dist/esm/components/insight/atomic-insight-search-box/atomic-insight-search-box.tw.css.js +1 -1
- package/dist/esm/components/insight/atomic-insight-smart-snippet/atomic-insight-smart-snippet.tw.css.js +1 -1
- package/dist/esm/components/insight/atomic-insight-smart-snippet-feedback-modal/atomic-insight-smart-snippet-feedback-modal.tw.css.js +1 -1
- package/dist/esm/components/insight/atomic-insight-smart-snippet-suggestions/atomic-insight-smart-snippet-suggestions.tw.css.js +1 -1
- package/dist/esm/components/insight/atomic-insight-tab/atomic-insight-tab.js +1 -1
- package/dist/esm/components/insight/atomic-insight-user-actions-modal/atomic-insight-user-actions-modal.js +1 -1
- package/dist/esm/components/insight/atomic-insight-user-actions-session/atomic-insight-user-actions-session.js +1 -1
- package/dist/esm/components/insight/atomic-insight-user-actions-timeline/atomic-insight-user-actions-timeline.js +1 -1
- package/dist/esm/components/ipx/atomic-ipx-button/atomic-ipx-button.js +1 -1
- package/dist/esm/components/ipx/atomic-ipx-embedded/atomic-ipx-embedded.js +1 -1
- package/dist/esm/components/ipx/atomic-ipx-modal/atomic-ipx-modal.js +1 -1
- package/dist/esm/components/ipx/atomic-ipx-recs-list/atomic-ipx-recs-list.js +1 -1
- package/dist/esm/components/ipx/atomic-ipx-refine-modal/atomic-ipx-refine-modal.js +1 -1
- package/dist/esm/components/ipx/atomic-ipx-refine-toggle/atomic-ipx-refine-toggle.js +1 -1
- package/dist/esm/components/ipx/atomic-ipx-result-link/atomic-ipx-result-link.tw.css.js +1 -1
- package/dist/esm/components/ipx/atomic-ipx-tab/atomic-ipx-tab.js +1 -1
- package/dist/esm/components/recommendations/atomic-recs-list/atomic-recs-list.js +1 -1
- package/dist/esm/components/recommendations/atomic-recs-result/atomic-recs-result.js +1 -1
- package/dist/esm/components/search/atomic-breadbox/atomic-breadbox.js +1 -1
- package/dist/esm/components/search/atomic-category-facet/atomic-category-facet.js +1 -1
- package/dist/esm/components/search/atomic-generated-answer/atomic-generated-answer.js +11 -2
- package/dist/esm/components/search/atomic-quickview-modal/atomic-quickview-modal.js +1 -1
- package/dist/esm/components/search/atomic-refine-modal/atomic-refine-modal.js +1 -1
- package/dist/esm/components/search/atomic-result/atomic-result.js +1 -1
- package/dist/esm/components/search/atomic-result-children/atomic-result-children.js +1 -1
- package/dist/esm/components/search/atomic-result-link/atomic-result-link.tw.css.js +1 -1
- package/dist/esm/components/search/atomic-result-section-actions/atomic-result-section-actions.js +1 -1
- package/dist/esm/components/search/atomic-result-section-badges/atomic-result-section-badges.js +1 -1
- package/dist/esm/components/search/atomic-result-section-bottom-metadata/atomic-result-section-bottom-metadata.js +1 -1
- package/dist/esm/components/search/atomic-result-section-children/atomic-result-section-children.js +1 -1
- package/dist/esm/components/search/atomic-result-section-emphasized/atomic-result-section-emphasized.js +1 -1
- package/dist/esm/components/search/atomic-result-section-excerpt/atomic-result-section-excerpt.js +1 -1
- package/dist/esm/components/search/atomic-result-section-title/atomic-result-section-title.js +1 -1
- package/dist/esm/components/search/atomic-result-section-title-metadata/atomic-result-section-title-metadata.js +1 -1
- package/dist/esm/components/search/atomic-result-section-visual/atomic-result-section-visual.js +1 -1
- package/dist/esm/components/search/atomic-result-table-placeholder/atomic-result-table-placeholder.js +1 -1
- package/dist/esm/components/search/atomic-search-box/atomic-search-box.js +1 -1
- package/dist/esm/components/search/atomic-smart-snippet/atomic-smart-snippet.tw.css.js +1 -1
- package/dist/esm/components/search/atomic-smart-snippet-feedback-modal/atomic-smart-snippet-feedback-modal.tw.css.js +1 -1
- package/dist/esm/components/search/atomic-smart-snippet-suggestions/atomic-smart-snippet-suggestions.tw.css.js +1 -1
- package/dist/esm/components/search/atomic-tab-manager/atomic-tab-manager.tw.css.js +1 -1
- package/dist/esm/components/search/facets/facet-segmented-value/facet-segmented-value.tw.css.js +1 -1
- package/dist/esm/global/environment.js +1 -1
- package/dist/esm/utils/coveo.tw.css.js +1 -1
- package/dist/esm/utils/custom-element-tags.js +1 -0
- package/dist/esm/utils/tailwind.global.tw.css.js +1 -1
- package/dist/esm/versions.js +1 -1
- package/dist/lang/cs.json +1 -1
- package/dist/lang/da.json +1 -1
- package/dist/lang/de.json +1 -1
- package/dist/lang/dev.json +1 -1
- package/dist/lang/el.json +1 -1
- package/dist/lang/en.json +1 -1
- package/dist/lang/es.json +1 -1
- package/dist/lang/fi.json +1 -1
- package/dist/lang/fr.json +1 -1
- package/dist/lang/hu.json +1 -1
- package/dist/lang/id.json +1 -1
- package/dist/lang/it.json +1 -1
- package/dist/lang/ja.json +1 -1
- package/dist/lang/ko.json +1 -1
- package/dist/lang/nl.json +1 -1
- package/dist/lang/no.json +1 -1
- package/dist/lang/pl.json +1 -1
- package/dist/lang/pt-BR.json +1 -1
- package/dist/lang/pt.json +1 -1
- package/dist/lang/ru.json +1 -1
- package/dist/lang/sv.json +1 -1
- package/dist/lang/th.json +1 -1
- package/dist/lang/tr.json +1 -1
- package/dist/lang/zh-CN.json +1 -1
- package/dist/lang/zh-TW.json +1 -1
- package/dist/lang/zh.json +1 -1
- package/dist/themes/accessible.css +1 -1
- package/dist/themes/coveo.css +1 -1
- package/dist/types/components/common/atomic-agent-stream-of-thought/atomic-agent-stream-of-thought.d.ts +41 -0
- package/dist/types/components/common/atomic-agent-stream-of-thought/atomic-agent-stream-of-thought.tw.css.d.ts +2 -0
- package/dist/types/components/common/atomic-generated-answer-content/atomic-generated-answer-content.d.ts +1 -0
- package/dist/types/components/common/index.d.ts +1 -0
- package/dist/types/components/common/interface/interface-controller.d.ts +2 -1
- package/dist/types/components/common/layout/item-layout-controller.d.ts +2 -1
- package/dist/types/components/common/template-provider/template-provider.d.ts +2 -1
- package/dist/types/decorators/types.d.ts +2 -1
- package/package.json +24 -24
- package/dist/cjs/components/common/generated-answer/render-agent-generation-steps.cjs +0 -65
- package/dist/esm/components/common/generated-answer/render-agent-generation-steps.js +0 -28
- package/dist/types/components/common/generated-answer/render-agent-generation-steps.d.ts +0 -16
package/dist/esm/components/commerce/atomic-product-section-visual/atomic-product-section-visual.js
CHANGED
|
@@ -10,7 +10,7 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
10
10
|
function _ts_metadata(k, v) {
|
|
11
11
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
12
12
|
}
|
|
13
|
-
class AtomicProductSectionVisual extends ItemSectionMixin(LitElement, css`/*! tailwindcss v4.
|
|
13
|
+
class AtomicProductSectionVisual extends ItemSectionMixin(LitElement, css`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */atomic-product-section-visual.with-sections{grid-area:visual;overflow:hidden;text-overflow:ellipsis}atomic-product-section-visual.with-sections.image-icon{border-radius:var(--atomic-border-radius);height:2rem;width:2rem}atomic-product-section-visual.with-sections.image-none{display:none}@media (min-width:1024px){atomic-product-section-visual.with-sections.display-list{margin-right:1rem}atomic-product-section-visual.with-sections.display-list.density-comfortable{margin-right:1.5rem}atomic-product-section-visual.with-sections.display-list.image-large.density-compact{height:10rem;width:10rem}atomic-product-section-visual.with-sections.display-list.image-large.density-comfortable,atomic-product-section-visual.with-sections.display-list.image-large.density-normal{height:20.375rem;width:20.375rem}atomic-product-section-visual.with-sections.display-list.image-small{height:10rem;width:10rem}atomic-product-section-visual.with-sections.display-grid{margin-bottom:.5rem}:is(atomic-product-section-visual.with-sections.display-grid.image-large,atomic-product-section-visual.with-sections.display-grid.image-small).density-comfortable{margin:0 auto 2rem}:is(atomic-product-section-visual.with-sections.display-grid.image-large,atomic-product-section-visual.with-sections.display-grid.image-small).density-normal{margin:0 auto 1.5rem}:is(atomic-product-section-visual.with-sections.display-grid.image-large,atomic-product-section-visual.with-sections.display-grid.image-small).density-compact{margin:0 auto 1rem}atomic-product-section-visual.with-sections.display-grid.image-large,atomic-product-section-visual.with-sections.display-grid.image-small{width:100%}atomic-product-section-visual.with-sections.display-grid.image-large{aspect-ratio:1;height:auto}@supports not (aspect-ratio:1/1){atomic-product-section-visual.with-sections.display-grid.image-large{height:19.75rem}}atomic-product-section-visual.with-sections.display-grid.image-small{aspect-ratio:1;height:auto}@supports not (aspect-ratio:1/1){atomic-product-section-visual.with-sections.display-grid.image-small{height:14rem}}}@media not all and (min-width:1024px){atomic-product-section-visual.with-sections.display-list{margin-right:1rem}atomic-product-section-visual.with-sections.display-list.image-large{aspect-ratio:1;height:auto}@supports not (aspect-ratio:1/1){atomic-product-section-visual.with-sections.display-list.image-large{height:7.25rem}}atomic-product-section-visual.with-sections.display-list.image-large{margin-bottom:1rem;margin-right:0;width:100%}atomic-product-section-visual.with-sections.display-list.image-small{height:24vw;margin-bottom:1rem;width:24vw}atomic-product-section-visual.with-sections.display-list.image-icon{margin-bottom:0}atomic-product-section-visual.with-sections.display-grid.image-large{margin-right:1rem}atomic-product-section-visual.with-sections.display-grid.image-large.image-large{aspect-ratio:1;height:auto}@supports not (aspect-ratio:1/1){atomic-product-section-visual.with-sections.display-grid.image-large.image-large{height:7.25rem}}atomic-product-section-visual.with-sections.display-grid.image-large.image-large{margin-bottom:1rem;margin-right:0;width:100%}atomic-product-section-visual.with-sections.display-grid.image-large.image-small{height:24vw;margin-bottom:1rem;width:24vw}atomic-product-section-visual.with-sections.display-grid.image-large.image-icon{margin-bottom:0}:is(:is(atomic-product-section-visual.with-sections.display-grid.image-small,atomic-product-section-visual.with-sections.display-grid.image-icon,atomic-product-section-visual.with-sections.display-grid.image-none).image-large,:is(atomic-product-section-visual.with-sections.display-grid.image-small,atomic-product-section-visual.with-sections.display-grid.image-icon,atomic-product-section-visual.with-sections.display-grid.image-none).image-small).density-comfortable{margin-bottom:1rem}:is(:is(atomic-product-section-visual.with-sections.display-grid.image-small,atomic-product-section-visual.with-sections.display-grid.image-icon,atomic-product-section-visual.with-sections.display-grid.image-none).image-large,:is(atomic-product-section-visual.with-sections.display-grid.image-small,atomic-product-section-visual.with-sections.display-grid.image-icon,atomic-product-section-visual.with-sections.display-grid.image-none).image-small).density-normal{margin-bottom:.75rem}:is(:is(atomic-product-section-visual.with-sections.display-grid.image-small,atomic-product-section-visual.with-sections.display-grid.image-icon,atomic-product-section-visual.with-sections.display-grid.image-none).image-large,:is(atomic-product-section-visual.with-sections.display-grid.image-small,atomic-product-section-visual.with-sections.display-grid.image-icon,atomic-product-section-visual.with-sections.display-grid.image-none).image-small).density-compact{margin-bottom:.5rem}:is(atomic-product-section-visual.with-sections.display-grid.image-small,atomic-product-section-visual.with-sections.display-grid.image-icon,atomic-product-section-visual.with-sections.display-grid.image-none).image-large,:is(atomic-product-section-visual.with-sections.display-grid.image-small,atomic-product-section-visual.with-sections.display-grid.image-icon,atomic-product-section-visual.with-sections.display-grid.image-none).image-small{width:100%}:is(atomic-product-section-visual.with-sections.display-grid.image-small,atomic-product-section-visual.with-sections.display-grid.image-icon,atomic-product-section-visual.with-sections.display-grid.image-none).image-small{aspect-ratio:1;height:auto}@supports not (aspect-ratio:1/1){:is(atomic-product-section-visual.with-sections.display-grid.image-small,atomic-product-section-visual.with-sections.display-grid.image-icon,atomic-product-section-visual.with-sections.display-grid.image-none).image-small{height:9rem}}:is(atomic-product-section-visual.with-sections.display-grid.image-small,atomic-product-section-visual.with-sections.display-grid.image-icon,atomic-product-section-visual.with-sections.display-grid.image-none).image-small{height:10.25rem;width:10.25rem}}atomic-product-section-visual.with-sections.display-table{margin-right:1rem}atomic-product-section-visual.with-sections.display-table.density-comfortable{margin-right:1.5rem}atomic-product-section-visual.with-sections.display-table.image-large.density-compact{height:10rem;width:10rem}atomic-product-section-visual.with-sections.display-table.image-large.density-comfortable,atomic-product-section-visual.with-sections.display-table.image-large.density-normal{height:20.375rem;width:20.375rem}atomic-product-section-visual.with-sections.display-table.image-small{height:10rem;width:10rem}atomic-product-section-visual .with-sections.image-icon atomic-product-image::part(indicator),atomic-product-section-visual .with-sections.image-icon atomic-product-image::part(next-button),atomic-product-section-visual .with-sections.image-icon atomic-product-image::part(previous-button){display:none}`) {
|
|
14
14
|
}
|
|
15
15
|
_ts_decorate([
|
|
16
16
|
property({
|
package/dist/esm/components/common/atomic-agent-stream-of-thought/atomic-agent-stream-of-thought.js
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { LitElement, html, nothing } from "lit";
|
|
2
|
+
import { customElement, property, state } from "lit/decorators.js";
|
|
3
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
4
|
+
import { map } from "lit/directives/map.js";
|
|
5
|
+
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
|
|
6
|
+
import atomic_agent_stream_of_thought_tw_css from "./atomic-agent-stream-of-thought.tw.css.js";
|
|
7
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
8
|
+
var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12
|
+
}
|
|
13
|
+
function _ts_metadata(k, v) {
|
|
14
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15
|
+
}
|
|
16
|
+
const stepLabelKeys = {
|
|
17
|
+
'thinking-before-search': {
|
|
18
|
+
active: 'agent-generation-step-analyzing-question',
|
|
19
|
+
completed: 'agent-generation-step-analyzing-question-completed'
|
|
20
|
+
},
|
|
21
|
+
searching: {
|
|
22
|
+
active: 'agent-generation-step-search',
|
|
23
|
+
completed: 'agent-generation-step-search-completed'
|
|
24
|
+
},
|
|
25
|
+
'thinking-after-search': {
|
|
26
|
+
active: 'agent-generation-step-analyzing-results',
|
|
27
|
+
completed: 'agent-generation-step-analyzing-results-completed'
|
|
28
|
+
},
|
|
29
|
+
answering: {
|
|
30
|
+
active: 'agent-generation-step-answering',
|
|
31
|
+
completed: 'agent-generation-step-answering-completed'
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
class AtomicAgentStreamOfThought extends LitElement {
|
|
35
|
+
willUpdate(changed) {
|
|
36
|
+
if (changed.has('isStreaming')) this.expanded = this.isStreaming;
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
const resolvedSteps = resolveSteps(this.agentSteps);
|
|
40
|
+
if (0 === resolvedSteps.length) return nothing;
|
|
41
|
+
const isComplete = !this.isStreaming;
|
|
42
|
+
const isCollapsible = resolvedSteps.length > 1;
|
|
43
|
+
if (isComplete && !this.expanded && isCollapsible) return html`
|
|
44
|
+
<div class="timeline">${this.renderCollapsedTimelineSummary()}</div>
|
|
45
|
+
`;
|
|
46
|
+
return html`
|
|
47
|
+
<div class="timeline">
|
|
48
|
+
${map(resolvedSteps, (step)=>this.renderStep(step))}
|
|
49
|
+
${isComplete && isCollapsible ? this.renderToggleButton() : nothing}
|
|
50
|
+
</div>
|
|
51
|
+
`;
|
|
52
|
+
}
|
|
53
|
+
renderStep(step) {
|
|
54
|
+
const labelKey = 'active' === step.status ? stepLabelKeys[step.type].active : stepLabelKeys[step.type].completed;
|
|
55
|
+
const label = this.i18n.t(labelKey);
|
|
56
|
+
return html`
|
|
57
|
+
<div class="step">
|
|
58
|
+
${'active' === step.status ? this.renderSpinner() : this.renderCheckmark()}
|
|
59
|
+
<span class="step-label">${label}</span>
|
|
60
|
+
</div>
|
|
61
|
+
`;
|
|
62
|
+
}
|
|
63
|
+
renderCollapsedTimelineSummary() {
|
|
64
|
+
const resolvedSteps = resolveSteps(this.agentSteps);
|
|
65
|
+
if (0 === resolvedSteps.length) return nothing;
|
|
66
|
+
const step = resolvedSteps[resolvedSteps.length - 1];
|
|
67
|
+
const labelKey = stepLabelKeys[step.type].completed;
|
|
68
|
+
const label = this.i18n.t(labelKey);
|
|
69
|
+
return html`
|
|
70
|
+
<button
|
|
71
|
+
class="collapsed-timeline-summary"
|
|
72
|
+
@click=${this.handleToggle}
|
|
73
|
+
aria-expanded=${this.expanded}
|
|
74
|
+
type="button"
|
|
75
|
+
>
|
|
76
|
+
${this.renderCheckmark()}
|
|
77
|
+
<span class="step-label">${label}</span>
|
|
78
|
+
${this.renderChevron()}
|
|
79
|
+
</button>
|
|
80
|
+
`;
|
|
81
|
+
}
|
|
82
|
+
renderToggleButton() {
|
|
83
|
+
return html`
|
|
84
|
+
<button
|
|
85
|
+
class="toggle-button"
|
|
86
|
+
@click=${this.handleToggle}
|
|
87
|
+
aria-expanded=${this.expanded}
|
|
88
|
+
type="button"
|
|
89
|
+
>
|
|
90
|
+
<span class="toggle-label">${this.i18n.t('collapse')}</span>
|
|
91
|
+
${this.renderChevron()}
|
|
92
|
+
</button>
|
|
93
|
+
`;
|
|
94
|
+
}
|
|
95
|
+
renderSpinner() {
|
|
96
|
+
return html`<span class="step-icon"
|
|
97
|
+
><span class="spinner" aria-hidden="true"></span
|
|
98
|
+
></span>`;
|
|
99
|
+
}
|
|
100
|
+
renderCheckmark() {
|
|
101
|
+
return html`
|
|
102
|
+
<span class="step-icon checkmark-icon">
|
|
103
|
+
<svg
|
|
104
|
+
width="12"
|
|
105
|
+
height="9"
|
|
106
|
+
viewBox="0 0 12 9"
|
|
107
|
+
fill="none"
|
|
108
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
109
|
+
aria-hidden="true"
|
|
110
|
+
>
|
|
111
|
+
<path
|
|
112
|
+
d="M1 4.33333L4.33333 7.66667L11 1"
|
|
113
|
+
stroke="currentColor"
|
|
114
|
+
stroke-width="2"
|
|
115
|
+
stroke-linecap="round"
|
|
116
|
+
stroke-linejoin="round"
|
|
117
|
+
/>
|
|
118
|
+
</svg>
|
|
119
|
+
</span>
|
|
120
|
+
`;
|
|
121
|
+
}
|
|
122
|
+
renderChevron() {
|
|
123
|
+
return html`
|
|
124
|
+
<span class=${classMap({
|
|
125
|
+
chevron: true,
|
|
126
|
+
'chevron-up': this.expanded
|
|
127
|
+
})}>
|
|
128
|
+
<svg
|
|
129
|
+
width="11"
|
|
130
|
+
height="6"
|
|
131
|
+
viewBox="0 0 11 6"
|
|
132
|
+
fill="none"
|
|
133
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
134
|
+
aria-hidden="true"
|
|
135
|
+
>
|
|
136
|
+
<path
|
|
137
|
+
d="M1.18998 0.52682L5.43262 4.76946L9.67526 0.526821"
|
|
138
|
+
stroke="currentColor"
|
|
139
|
+
stroke-linecap="round"
|
|
140
|
+
stroke-linejoin="round"
|
|
141
|
+
/>
|
|
142
|
+
</svg>
|
|
143
|
+
</span>
|
|
144
|
+
`;
|
|
145
|
+
}
|
|
146
|
+
handleToggle() {
|
|
147
|
+
this.expanded = !this.expanded;
|
|
148
|
+
}
|
|
149
|
+
constructor(...args){
|
|
150
|
+
super(...args), this.agentSteps = [], this.isStreaming = false, this.expanded = true;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
AtomicAgentStreamOfThought.styles = [
|
|
154
|
+
atomic_agent_stream_of_thought_tw_css
|
|
155
|
+
];
|
|
156
|
+
_ts_decorate([
|
|
157
|
+
property({
|
|
158
|
+
attribute: false
|
|
159
|
+
}),
|
|
160
|
+
_ts_metadata("design:type", "u" < typeof i18n ? Object : i18n)
|
|
161
|
+
], AtomicAgentStreamOfThought.prototype, "i18n", void 0);
|
|
162
|
+
_ts_decorate([
|
|
163
|
+
property({
|
|
164
|
+
attribute: false
|
|
165
|
+
}),
|
|
166
|
+
_ts_metadata("design:type", Array)
|
|
167
|
+
], AtomicAgentStreamOfThought.prototype, "agentSteps", void 0);
|
|
168
|
+
_ts_decorate([
|
|
169
|
+
property({
|
|
170
|
+
attribute: false
|
|
171
|
+
})
|
|
172
|
+
], AtomicAgentStreamOfThought.prototype, "isStreaming", void 0);
|
|
173
|
+
_ts_decorate([
|
|
174
|
+
state()
|
|
175
|
+
], AtomicAgentStreamOfThought.prototype, "expanded", void 0);
|
|
176
|
+
AtomicAgentStreamOfThought = _ts_decorate([
|
|
177
|
+
customElement('atomic-agent-stream-of-thought'),
|
|
178
|
+
withTailwindStyles
|
|
179
|
+
], AtomicAgentStreamOfThought);
|
|
180
|
+
function resolveSteps(steps) {
|
|
181
|
+
let searchWasPerformed = false;
|
|
182
|
+
return steps.map((step)=>{
|
|
183
|
+
let type;
|
|
184
|
+
if ('searching' === step.name) {
|
|
185
|
+
searchWasPerformed = true;
|
|
186
|
+
type = 'searching';
|
|
187
|
+
} else type = 'answering' === step.name ? 'answering' : searchWasPerformed ? 'thinking-after-search' : 'thinking-before-search';
|
|
188
|
+
return {
|
|
189
|
+
type,
|
|
190
|
+
status: step.status
|
|
191
|
+
};
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
export { AtomicAgentStreamOfThought, resolveSteps };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
const styles = css`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-font-weight:initial;--tw-outline-style:solid}}}:host{display:block}@keyframes spin{to{transform:rotate(1turn)}}.timeline{font-size:var(--atomic-text-sm);gap:calc(var(--spacing,.25rem)*1);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857));padding-block:calc(var(--spacing,.25rem)*1);--tw-font-weight:var(--font-weight-light,300);color:var(--atomic-neutral-dark);display:flex;flex-direction:column;font-weight:var(--font-weight-light,300)}.collapsed-timeline-summary,.step{align-items:center;display:flex;gap:calc(var(--spacing,.25rem)*2)}.collapsed-timeline-summary{cursor:pointer;--tw-border-style:none;background-color:#0000;border-style:none;color:inherit;font:inherit;padding:calc(var(--spacing,.25rem)*0);text-align:left}.collapsed-timeline-summary:focus-visible{border-radius:var(--atomic-border-radius);outline-color:var(--atomic-primary);outline-offset:2px;outline-style:var(--tw-outline-style);outline-width:2px}.toggle-button{align-items:center;cursor:pointer;gap:calc(var(--spacing,.25rem)*1);--tw-border-style:none;background-color:#0000;border-style:none;color:inherit;display:flex;font:inherit;padding:calc(var(--spacing,.25rem)*0)}.toggle-button:focus-visible{border-radius:var(--atomic-border-radius);outline-color:var(--atomic-primary);outline-offset:2px;outline-style:var(--tw-outline-style);outline-width:2px}.step-icon{align-items:center;display:flex;flex-shrink:0;height:14px;justify-content:center;width:14px}.checkmark-icon{color:var(--atomic-success,#1b8057)}.spinner{animation:spin .8s linear infinite;border:2px solid;border-radius:3.40282e+38px;border-top:2px solid #0000;display:inline-block;height:12px;width:12px}.chevron{align-items:center;display:flex;margin-left:calc(var(--spacing,.25rem)*1);transition:transform .2s}.chevron-up{transform:rotate(180deg)}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`;
|
|
3
|
+
const atomic_agent_stream_of_thought_tw_css = styles;
|
|
4
|
+
export default atomic_agent_stream_of_thought_tw_css;
|
package/dist/esm/components/common/atomic-ask-follow-up-input/atomic-ask-follow-up-input.tw.css.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
const styles = css`/*! tailwindcss v4.
|
|
2
|
+
const styles = css`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}[part=input-container]{min-height:calc(2.5rem + 2px)}[part=textarea-expander]:after{content:attr(data-replicated-value) " ";visibility:hidden}[part=textarea-expander]{margin-right:calc(var(--spacing,.25rem)*10)}[part=textarea-expander]:after,[part=textarea-expander]>[part=input-field]{-ms-overflow-style:none;scrollbar-width:none}:is([part=textarea-expander]>[part=input-field])::-webkit-scrollbar{display:none}[part=textarea-expander]:after,[part=textarea-expander]>[part=input-field]{background-color:#0000;overflow:hidden;padding-block:calc(var(--spacing,.25rem)*2);padding-inline:calc(var(--spacing,.25rem)*4);resize:none;white-space:nowrap}:is([part=textarea-expander]>[part=input-field])::placeholder{color:var(--atomic-neutral-dark)}[part=textarea-expander]:after,[part=textarea-expander]>[part=input-field]{--tw-outline-style:none;grid-area:1/1/2/2;min-height:2.5rem;outline-style:none;padding-right:3rem}[part=textarea-expander].expanded{background-color:var(--atomic-background);border-color:var(--atomic-primary);border-radius:var(--atomic-border-radius-md);border-style:var(--tw-border-style);border-width:1px;margin-right:calc(var(--spacing,.25rem)*0);--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-ring-color:var(--atomic-primary);bottom:-1px;left:-1px;overflow:visible;position:absolute;right:-1px;z-index:10}[part=textarea-expander].expanded:after,[part=textarea-expander].expanded>[part=input-field]{max-height:8rem;overflow-y:auto;white-space:pre-wrap}[part=submit-button]{z-index:11}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}`;
|
|
3
3
|
const atomic_ask_follow_up_input_tw_css = styles;
|
|
4
4
|
export default atomic_ask_follow_up_input_tw_css;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
const styles = css`/*! tailwindcss v4.
|
|
2
|
+
const styles = css`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */:host{display:contents;position:relative}[part=citation]{--height:2.2em;--index-height:1.1em;--max-citation-width:400px;height:var(--height);max-width:var(--max-citation-width)}[part=citation-popover]{--popover-width:350px;width:var(--popover-width)}[part=citation-popover] p{--font-size:var(--atomic-text-sm);font-size:var(--font-size);--line-height:calc(var(--font-size)*var(--atomic-line-height-ratio));line-height:var(--line-height)}`;
|
|
3
3
|
const atomic_citation_tw_css = styles;
|
|
4
4
|
export default atomic_citation_tw_css;
|
|
@@ -4,8 +4,8 @@ import { customElement, property, state } from "lit/decorators.js";
|
|
|
4
4
|
import { when } from "lit/directives/when.js";
|
|
5
5
|
import atomic_generated_answer_tw_css from "../../search/atomic-generated-answer/atomic-generated-answer.tw.css.js";
|
|
6
6
|
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
|
|
7
|
+
import "../atomic-agent-stream-of-thought/atomic-agent-stream-of-thought.js";
|
|
7
8
|
import { renderGeneratedContentContainer } from "../generated-answer/generated-content-container.js";
|
|
8
|
-
import { renderAgentGenerationSteps } from "../generated-answer/render-agent-generation-steps.js";
|
|
9
9
|
import { renderFeedbackAndCopyButtons } from "../generated-answer/render-feedback-and-copy-buttons.js";
|
|
10
10
|
import { renderSourceCitations } from "../generated-answer/source-citations.js";
|
|
11
11
|
import { answerContext } from "./answer-context.js";
|
|
@@ -33,13 +33,11 @@ class AtomicGeneratedAnswerContent extends LitElement {
|
|
|
33
33
|
const shouldRenderFeedbackAndCopyButtons = Boolean(answer) && !isStreaming;
|
|
34
34
|
return html`
|
|
35
35
|
<div>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
})}
|
|
36
|
+
<atomic-agent-stream-of-thought
|
|
37
|
+
.i18n=${this.i18n}
|
|
38
|
+
.agentSteps=${generationSteps ?? []}
|
|
39
|
+
.isStreaming=${Boolean(isStreaming)}
|
|
40
|
+
></atomic-agent-stream-of-thought>
|
|
43
41
|
<div>
|
|
44
42
|
${renderGeneratedContentContainer({
|
|
45
43
|
props: {
|
|
@@ -121,7 +121,7 @@ class AtomicGeneratedAnswerFeedbackModal extends LitElement {
|
|
|
121
121
|
onChecked: ()=>{
|
|
122
122
|
this.setCurrentAnswer(correspondingAnswer, option);
|
|
123
123
|
},
|
|
124
|
-
class: `min-w-20 flex items-center justify-center px-3 py-1.5 mr-1 text-neutral-dark ${isSelected ? 'active' : ''}`,
|
|
124
|
+
class: `min-w-20 flex items-center justify-center whitespace-nowrap px-3 py-1.5 mr-1 text-neutral-dark ${isSelected ? 'active' : ''}`,
|
|
125
125
|
text: this.bindings.i18n.t(option)
|
|
126
126
|
}
|
|
127
127
|
});
|
|
@@ -384,7 +384,7 @@ AtomicGeneratedAnswerFeedbackModal.options = [
|
|
|
384
384
|
correspondingAnswer: 'readable'
|
|
385
385
|
}
|
|
386
386
|
];
|
|
387
|
-
AtomicGeneratedAnswerFeedbackModal.styles = css`/*! tailwindcss v4.
|
|
387
|
+
AtomicGeneratedAnswerFeedbackModal.styles = css`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */[part=generated-answer-feedback-modal]::part(container){min-width:calc(var(--spacing,.25rem)*170)}[part=generated-answer-feedback-modal]::part(body),[part=generated-answer-feedback-modal]::part(footer),[part=generated-answer-feedback-modal]::part(header){max-width:calc(var(--spacing,.25rem)*170)}@media not all and (min-width:1024px){[part=generated-answer-feedback-modal]::part(container){min-width:100%;width:auto}[part=generated-answer-feedback-modal]::part(body),[part=generated-answer-feedback-modal]::part(footer),[part=generated-answer-feedback-modal]::part(header){max-width:100%}[part=generated-answer-feedback-modal] [part=buttons] .required-label{font-size:var(--atomic-text-sm);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857))}[part=generated-answer-feedback-modal] [part=form] .answer-evaluation{display:block}[part=generated-answer-feedback-modal] [part=form] .options{margin-top:calc(var(--spacing,.25rem)*2)}[part=generated-answer-feedback-modal] [part=modal-header] .hide{display:none}}[part=form] .active{background-color:var(--atomic-primary-background);border-color:var(--atomic-primary-light);color:var(--atomic-primary-light)}[part=form] .text-error-red{color:var(--atomic-inline-code)}`;
|
|
388
388
|
_ts_decorate([
|
|
389
389
|
property({
|
|
390
390
|
type: Boolean,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
const styles = css`/*! tailwindcss v4.
|
|
2
|
+
const styles = css`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */:host{display:inline}a{color:var(--atomic-primary);text-decoration-line:none}a [part=answer-link-text]{text-decoration-line:underline}.icon-wrapper{display:inline-block;height:1em;vertical-align:text-bottom;width:1em}`;
|
|
3
3
|
const atomic_generated_answer_inline_link_tw_css = styles;
|
|
4
4
|
export default atomic_generated_answer_inline_link_tw_css;
|
package/dist/esm/components/common/atomic-generated-answer-thread/atomic-generated-answer-thread.js
CHANGED
|
@@ -26,7 +26,7 @@ class AtomicGeneratedAnswerThread extends LitElement {
|
|
|
26
26
|
if (this.generatedAnswers.length > MIN_ANSWERS_TO_COLLAPSE && !this.allGeneratedAnswersDisplayed) {
|
|
27
27
|
const lastGeneratedAnswer = this.generatedAnswers[this.generatedAnswers.length - 1];
|
|
28
28
|
return html`
|
|
29
|
-
<ul
|
|
29
|
+
<ul>
|
|
30
30
|
${this.renderShowPreviousAnswersButton()}
|
|
31
31
|
${this.renderThread([
|
|
32
32
|
lastGeneratedAnswer
|
|
@@ -35,7 +35,7 @@ class AtomicGeneratedAnswerThread extends LitElement {
|
|
|
35
35
|
`;
|
|
36
36
|
}
|
|
37
37
|
return html`
|
|
38
|
-
<ul
|
|
38
|
+
<ul>
|
|
39
39
|
${this.renderThread(this.generatedAnswers)}
|
|
40
40
|
</ul>
|
|
41
41
|
`;
|
|
@@ -14,6 +14,8 @@ class AtomicGeneratedAnswerThreadItem extends LitElement {
|
|
|
14
14
|
if (!this.hasUpdated) this.isExpanded = this.disableCollapse ? true : this.isExpanded;
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
+
const isTimelineDotInteractive = !this.disableCollapse && this.showTimelineDot;
|
|
18
|
+
const isTimelineLineInteractive = !this.disableCollapse && !this.hideLine;
|
|
17
19
|
const clampedTitleStyles = 'display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-height: calc(4.5rem + 1px);';
|
|
18
20
|
const titleBaseClasses = {
|
|
19
21
|
'text-on-background': true,
|
|
@@ -51,8 +53,29 @@ class AtomicGeneratedAnswerThreadItem extends LitElement {
|
|
|
51
53
|
'h-2': true,
|
|
52
54
|
'w-2': true,
|
|
53
55
|
'rounded-full': true,
|
|
56
|
+
'transition-colors': true,
|
|
54
57
|
'bg-neutral-dark': this.isExpanded,
|
|
55
|
-
'bg-neutral-dim': !this.isExpanded
|
|
58
|
+
'bg-neutral-dim': !this.isExpanded,
|
|
59
|
+
'cursor-pointer': isTimelineDotInteractive,
|
|
60
|
+
'group-hover:bg-neutral-dark': !this.isExpanded && isTimelineDotInteractive
|
|
61
|
+
});
|
|
62
|
+
const timelineDotToggleClasses = classMap({
|
|
63
|
+
flex: true,
|
|
64
|
+
'w-[10px]': true,
|
|
65
|
+
'shrink-0': true,
|
|
66
|
+
'justify-center': true,
|
|
67
|
+
'items-center': true
|
|
68
|
+
});
|
|
69
|
+
const timelineLineToggleClasses = classMap({
|
|
70
|
+
flex: true,
|
|
71
|
+
'w-[10px]': true,
|
|
72
|
+
'shrink-0': true,
|
|
73
|
+
'justify-center': true,
|
|
74
|
+
'items-center': true,
|
|
75
|
+
group: isTimelineLineInteractive,
|
|
76
|
+
'cursor-pointer': isTimelineLineInteractive,
|
|
77
|
+
'py-2': true,
|
|
78
|
+
'-my-2': true
|
|
56
79
|
});
|
|
57
80
|
const timelineBodyRowClasses = classMap({
|
|
58
81
|
flex: true,
|
|
@@ -60,12 +83,17 @@ class AtomicGeneratedAnswerThreadItem extends LitElement {
|
|
|
60
83
|
'gap-3': true,
|
|
61
84
|
'min-h-3': !this.isExpanded
|
|
62
85
|
});
|
|
63
|
-
const timelineConnectorClasses = "relative h-full w-px bg-neutral before:absolute before:left-0 before:top-[-8px] before:h-[8px] before:w-px before:bg-neutral before:content-[''] after:absolute after:bottom-[-8px] after:left-0 after:h-[8px] after:w-px after:bg-neutral after:content-['']";
|
|
86
|
+
const timelineConnectorClasses = "relative h-full w-px bg-neutral transition-colors duration-150 group-hover:bg-neutral-dark before:absolute before:left-0 before:top-[-8px] before:h-[8px] before:w-px before:bg-neutral before:transition-colors before:duration-150 group-hover:before:bg-neutral-dark before:content-[''] after:absolute after:bottom-[-8px] after:left-0 after:h-[8px] after:w-px after:bg-neutral after:transition-colors after:duration-150 group-hover:after:bg-neutral-dark after:content-['']";
|
|
64
87
|
return html`
|
|
65
88
|
<li class="grid min-w-0">
|
|
66
89
|
<div class="flex min-w-0 items-center gap-3">
|
|
67
|
-
<div class
|
|
68
|
-
${when(this.showTimelineDot, ()=>html`
|
|
90
|
+
<div class=${timelineDotToggleClasses}>
|
|
91
|
+
${when(this.showTimelineDot, ()=>html`
|
|
92
|
+
<span
|
|
93
|
+
class=${timelineDotClasses}
|
|
94
|
+
@click=${isTimelineDotInteractive ? this.toggle : null}
|
|
95
|
+
></span>
|
|
96
|
+
`)}
|
|
69
97
|
</div>
|
|
70
98
|
<div class="flex min-w-0 flex-col">
|
|
71
99
|
${when(!this.disableCollapse, ()=>html`<button
|
|
@@ -87,7 +115,10 @@ class AtomicGeneratedAnswerThreadItem extends LitElement {
|
|
|
87
115
|
</div>
|
|
88
116
|
</div>
|
|
89
117
|
<div class=${timelineBodyRowClasses}>
|
|
90
|
-
<div
|
|
118
|
+
<div
|
|
119
|
+
class=${timelineLineToggleClasses}
|
|
120
|
+
@click=${isTimelineLineInteractive ? this.toggle : null}
|
|
121
|
+
>
|
|
91
122
|
${when(this.hideLine, ()=>html``, ()=>html`<span class=${timelineConnectorClasses}> </span>`)}
|
|
92
123
|
</div>
|
|
93
124
|
<div id=${this.contentId} class="min-w-0 pl-2 py-1.5">
|
|
@@ -204,7 +204,7 @@ class AtomicModal extends InitializeBindingsMixin(LitElement) {
|
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
AtomicModal.styles = css`/*! tailwindcss v4.
|
|
207
|
+
AtomicModal.styles = css`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@keyframes scaleUp{0%{opacity:0;transform:scale(.7)translateY(150vh)}to{opacity:1;transform:scale(1)translateY(0)}}@keyframes slideDown{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(150vh)}}article.animate-open{animation:var(--animate-scale-up-modal,scaleUp .5s cubic-bezier(.165,.84,.44,1) forwards)}article.animate-close{animation:var(--animate-slide-down-modal,slideDown .5s linear forwards)}.grid-template-modal{grid-template:". . ."1fr".modal."". . ."3fr/1fr min(30rem,100%) 1fr}`;
|
|
208
208
|
_ts_decorate([
|
|
209
209
|
state(),
|
|
210
210
|
_ts_metadata("design:type", "u" < typeof AnyBindings ? Object : AnyBindings)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
const styles = css`/*! tailwindcss v4.
|
|
2
|
+
const styles = css`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer components{:is(:is(atomic-product-rating,atomic-result-rating) .text-rating-icon-active,:is(atomic-product-rating,atomic-result-rating) .text-rating-icon-inactive) svg path{stroke:var(--atomic-rating-icon-outline-color,none)}}`;
|
|
3
3
|
const atomic_rating_tw_css = styles;
|
|
4
4
|
export default atomic_rating_tw_css;
|