@coveo/atomic 3.47.1 → 3.49.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 +47988 -0
- package/dist/atomic/_atomic.esm.js +1 -1
- package/dist/atomic/atomic.esm.js.map +1 -1
- package/dist/atomic/components/_index.d.ts +0 -34
- package/dist/atomic/components/_index.js +36 -21
- package/dist/atomic/components/atomic-insight-generated-answer.js +16 -5
- package/dist/atomic/components/atomic-insight-generated-answer.js.map +1 -1
- package/dist/atomic/components/atomic-insight-result-action.js +7 -4
- package/dist/atomic/components/atomic-insight-result-action.js.map +1 -1
- package/dist/atomic/components/atomic-insight-result-attach-to-case-action.js +2 -3
- package/dist/atomic/components/atomic-insight-result-attach-to-case-action.js.map +1 -1
- package/dist/atomic/components/atomic-insight-result-children-template.js +2 -2
- package/dist/atomic/components/atomic-insight-result-children-template.js.map +1 -1
- package/dist/atomic/components/atomic-insight-timeframe-facet.js +15 -9
- package/dist/atomic/components/atomic-insight-timeframe-facet.js.map +1 -1
- package/dist/atomic/components/atomic-ipx-recs-list.js +323 -10
- package/dist/atomic/components/atomic-ipx-recs-list.js.map +1 -1
- package/dist/atomic/components/atomic-ipx-refine-modal2.js +59 -5
- package/dist/atomic/components/atomic-ipx-refine-modal2.js.map +1 -1
- package/dist/atomic/components/atomic-ipx-refine-toggle.js +2 -2
- package/dist/atomic/components/atomic-ipx-refine-toggle.js.map +1 -1
- package/dist/atomic/components/atomic-stencil-facet-date-input.js +3 -3
- package/dist/atomic/components/attach.js +108 -1
- package/dist/atomic/components/attach.js.map +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-refine-modal/atomic-commerce-refine-modal.js +1 -0
- package/dist/atomic/components/components/commerce/atomic-commerce-refine-toggle/atomic-commerce-refine-toggle.js +1 -0
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +4 -3
- package/dist/atomic/components/components/commerce/atomic-product-link/atomic-product-link.js +4 -1
- package/dist/atomic/components/components/common/atomic-generated-answer-feedback-modal/atomic-generated-answer-feedback-modal.js +414 -0
- package/dist/atomic/components/components/common/atomic-rating/rating.js +1 -0
- package/dist/atomic/components/components/common/atomic-result-placeholder/atomic-result-placeholder.js +6 -0
- package/dist/atomic/components/components/common/atomic-smart-snippet-expandable-answer/atomic-smart-snippet-expandable-answer.js +1 -1
- package/dist/atomic/components/components/common/breadbox/breadcrumb-content.js +1 -0
- package/dist/atomic/components/components/common/generated-answer/generated-answer-controller.js +1 -0
- package/dist/atomic/components/components/common/generated-answer/render-answer-content.js +32 -65
- package/dist/atomic/components/components/common/generated-answer/render-card-header.js +41 -0
- package/dist/atomic/components/components/common/generated-answer/render-custom-no-answer-message.js +2 -15
- package/dist/atomic/components/components/common/generated-answer/render-disclaimer.js +1 -1
- package/dist/atomic/components/components/common/generated-answer/show-button.js +1 -0
- package/dist/atomic/components/components/common/index.js +1 -0
- package/dist/atomic/components/components/common/item-list/result-template-provider.js +2 -0
- package/dist/atomic/components/components/common/item-list/table-layout.js +1 -0
- package/dist/atomic/components/components/common/lazy-index.js +1 -0
- package/dist/atomic/components/components/common/no-items/magnifying-glass.js +1 -0
- package/dist/atomic/components/components/common/refine-modal/cloned-facet-elements.js +21 -0
- package/dist/atomic/components/components/common/search-box/submit-button.js +1 -0
- package/dist/atomic/components/components/common/search-box/text-area-clear-button.js +1 -0
- package/dist/atomic/components/components/common/smart-snippets/smart-snippet-feedback-banner.js +1 -0
- package/dist/atomic/components/components/common/suggestions/query-suggestions.js +1 -0
- package/dist/atomic/components/components/common/suggestions/recent-queries.js +1 -0
- package/dist/atomic/components/components/insight/atomic-insight-folded-result-list/atomic-insight-folded-result-list.js +309 -0
- package/dist/atomic/components/components/insight/atomic-insight-refine-modal/atomic-insight-refine-modal.js +211 -0
- package/dist/atomic/components/components/insight/atomic-insight-refine-toggle/atomic-insight-refine-toggle.js +1 -0
- package/dist/atomic/components/components/insight/atomic-insight-result-action-bar/atomic-insight-result-action-bar.js +20 -0
- package/dist/atomic/components/components/insight/atomic-insight-result-attach-to-case-indicator/atomic-insight-result-attach-to-case-indicator.js +75 -0
- package/dist/atomic/components/components/insight/atomic-insight-result-children/atomic-insight-result-children.js +3 -3
- package/dist/atomic/components/components/insight/atomic-insight-result-list/atomic-insight-result-list.js +261 -0
- package/dist/atomic/components/components/insight/atomic-insight-result-list/insight-list-display.tw.css.js +3 -0
- package/dist/atomic/components/components/insight/atomic-insight-result-quickview-action/atomic-insight-result-quickview-action.js +167 -0
- package/dist/atomic/components/components/insight/atomic-insight-search-box/atomic-insight-search-box.js +1 -0
- package/dist/atomic/components/components/insight/atomic-insight-smart-snippet/atomic-insight-smart-snippet.js +203 -0
- package/dist/atomic/components/components/insight/atomic-insight-smart-snippet/atomic-insight-smart-snippet.tw.css.js +3 -0
- package/dist/atomic/components/components/insight/atomic-insight-smart-snippet-suggestions/atomic-insight-smart-snippet-suggestions.js +198 -0
- package/dist/atomic/components/components/insight/atomic-insight-smart-snippet-suggestions/atomic-insight-smart-snippet-suggestions.tw.css.js +3 -0
- package/dist/atomic/components/components/insight/atomic-insight-user-actions-modal/atomic-insight-user-actions-modal.js +204 -0
- package/dist/atomic/components/components/insight/atomic-insight-user-actions-session/atomic-insight-user-actions-session.js +173 -0
- package/dist/atomic/components/components/insight/atomic-insight-user-actions-session/user-action.js +78 -0
- package/dist/atomic/components/components/insight/atomic-insight-user-actions-timeline/atomic-insight-user-actions-timeline.js +250 -0
- package/dist/atomic/components/components/insight/atomic-insight-user-actions-toggle/atomic-insight-user-actions-toggle.js +1 -0
- package/dist/atomic/components/components/insight/index.js +11 -0
- package/dist/atomic/components/components/insight/lazy-index.js +11 -0
- package/dist/atomic/components/components/ipx/atomic-ipx-body/ipx-body-styles.js +2 -0
- package/dist/atomic/components/components/ipx/atomic-ipx-body/ipx-body.js +49 -0
- package/dist/atomic/components/components/ipx/atomic-ipx-embedded/atomic-ipx-embedded.js +27 -5
- package/dist/atomic/components/components/ipx/atomic-ipx-modal/atomic-ipx-modal.js +158 -0
- package/dist/atomic/components/components/ipx/atomic-ipx-result-link/atomic-ipx-result-link.js +141 -0
- package/dist/atomic/components/components/ipx/atomic-ipx-result-link/atomic-ipx-result-link.tw.css.js +3 -0
- package/dist/atomic/components/components/ipx/index.js +2 -0
- package/dist/atomic/components/components/ipx/lazy-index.js +2 -0
- package/dist/atomic/components/components/recommendations/atomic-recs-list/atomic-recs-list.js +437 -0
- package/dist/atomic/components/components/recommendations/index.js +1 -0
- package/dist/atomic/components/components/recommendations/lazy-index.js +1 -0
- package/dist/atomic/components/components/search/atomic-breadbox/atomic-breadbox.js +1 -1
- package/dist/atomic/components/components/search/atomic-generated-answer/atomic-generated-answer.js +44 -18
- package/dist/atomic/components/components/search/atomic-notifications/atomic-notifications.js +1 -0
- package/dist/atomic/components/components/search/atomic-quickview/atomic-quickview.js +1 -0
- package/dist/atomic/components/components/search/atomic-refine-modal/atomic-refine-modal.js +2 -1
- package/dist/atomic/components/components/search/atomic-refine-toggle/atomic-refine-toggle.js +1 -0
- package/dist/atomic/components/components/search/atomic-result-children/atomic-result-children.js +1 -1
- package/dist/atomic/components/components/search/atomic-result-link/atomic-result-link.js +4 -4
- package/dist/atomic/components/components/search/atomic-search-box/atomic-search-box.js +4 -3
- package/dist/atomic/components/components/search/atomic-smart-snippet/atomic-smart-snippet.js +1 -0
- package/dist/atomic/components/date-utils.js +1 -46
- package/dist/atomic/components/date-utils.js.map +1 -1
- package/dist/atomic/components/directives/multi-class-map.js +4 -0
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/index.js.map +1 -1
- package/dist/atomic/components/initialization-utils.js +2 -8
- package/dist/atomic/components/initialization-utils.js.map +1 -1
- package/dist/atomic/components/popover-type.js +4 -2
- package/dist/atomic/components/popover-type.js.map +1 -1
- package/dist/atomic/components/props-utils.js +1 -1
- package/dist/atomic/components/stencil-button.js +22 -2
- package/dist/atomic/components/stencil-button.js.map +1 -1
- package/dist/atomic/components/stencil-heading.js +157 -1
- package/dist/atomic/components/stencil-heading.js.map +1 -1
- package/dist/atomic/components/store.js +0 -2
- package/dist/atomic/components/store.js.map +1 -1
- package/dist/atomic/components/utils/coveo.tw.css.js +3 -1
- package/dist/atomic/components/utils/custom-element-tags.js +15 -0
- package/dist/atomic/components/utils/tailwind.global.tw.css.js +3 -3
- package/dist/atomic/components/utils.js +1360 -11
- package/dist/atomic/components/utils.js.map +1 -1
- package/dist/atomic/index.esm.js +1 -1
- package/dist/atomic/index.esm.js.map +1 -1
- package/dist/atomic/lang/cs.json +1 -1
- package/dist/atomic/lang/da.json +1 -1
- package/dist/atomic/lang/de.json +1 -1
- package/dist/atomic/lang/dev.json +1 -1
- package/dist/atomic/lang/el.json +1 -1
- package/dist/atomic/lang/en.json +1 -1
- package/dist/atomic/lang/es.json +1 -1
- package/dist/atomic/lang/fi.json +1 -1
- package/dist/atomic/lang/fr.json +1 -1
- package/dist/atomic/lang/hu.json +1 -1
- package/dist/atomic/lang/id.json +1 -1
- package/dist/atomic/lang/it.json +1 -1
- package/dist/atomic/lang/ja.json +1 -1
- package/dist/atomic/lang/ko.json +1 -1
- package/dist/atomic/lang/nl.json +1 -1
- package/dist/atomic/lang/no.json +1 -1
- package/dist/atomic/lang/pl.json +1 -1
- package/dist/atomic/lang/pt-BR.json +1 -1
- package/dist/atomic/lang/pt.json +1 -1
- package/dist/atomic/lang/ru.json +1 -1
- package/dist/atomic/lang/sv.json +1 -1
- package/dist/atomic/lang/th.json +1 -1
- package/dist/atomic/lang/tr.json +1 -1
- package/dist/atomic/lang/zh-CN.json +1 -1
- package/dist/atomic/lang/zh-TW.json +1 -1
- package/dist/atomic/lang/zh.json +1 -1
- package/dist/atomic/{p-1da0ec8c.entry.js → p-0698ccf1.entry.js} +2 -2
- package/dist/atomic/p-2c08a419.entry.js +2 -0
- package/dist/atomic/{p-a3edbb0a.entry.js.map → p-2c08a419.entry.js.map} +1 -1
- package/dist/atomic/p-4117289b.entry.js +2 -0
- package/dist/atomic/{p-6e706321.entry.js.map → p-4117289b.entry.js.map} +1 -1
- package/dist/atomic/{p-94976bed.js → p-4a32511f.js} +2 -2
- package/dist/atomic/p-52d14165.entry.js +2 -0
- package/dist/atomic/p-52d14165.entry.js.map +1 -0
- package/dist/atomic/{p-0454df94.js → p-578d761c.js} +2 -2
- package/dist/atomic/p-64f83898.entry.js +2 -0
- package/dist/atomic/{p-90f23fb3.entry.js.map → p-64f83898.entry.js.map} +1 -1
- package/dist/atomic/{p-be8cc132.js → p-677f9c40.js} +2 -2
- package/dist/atomic/p-70cc18a1.js +2 -0
- package/dist/atomic/{p-406f7e5a.js.map → p-70cc18a1.js.map} +1 -1
- package/dist/atomic/p-81d6e743.js +2 -0
- package/dist/atomic/p-81d6e743.js.map +1 -0
- package/dist/atomic/{p-4a2e7926.js → p-9c5ec170.js} +2 -2
- package/dist/atomic/p-9dfe5ab1.js +2 -0
- package/dist/atomic/p-9dfe5ab1.js.map +1 -0
- package/dist/atomic/{p-3df103c1.js → p-b09433bb.js} +2 -2
- package/dist/atomic/p-b09433bb.js.map +1 -0
- package/dist/atomic/p-b4cfedf1.js +2 -0
- package/dist/atomic/p-b4cfedf1.js.map +1 -0
- package/dist/atomic/p-c8452548.entry.js +2 -0
- package/dist/atomic/p-c8452548.entry.js.map +1 -0
- package/dist/atomic/p-c95ac794.entry.js +2 -0
- package/dist/atomic/{p-f3a9a28b.entry.js.map → p-c95ac794.entry.js.map} +1 -1
- package/dist/atomic/p-d8230482.entry.js +9 -0
- package/dist/atomic/p-d8230482.entry.js.map +1 -0
- package/dist/atomic/p-dac60354.js +2 -0
- package/dist/atomic/p-dac60354.js.map +1 -0
- package/dist/atomic/p-e94ba0e1.entry.js +2 -0
- package/dist/atomic/p-e94ba0e1.entry.js.map +1 -0
- package/dist/atomic/p-ec1c5f46.js +3 -0
- package/dist/atomic/p-ec1c5f46.js.map +1 -0
- package/dist/atomic/p-f321aab0.js +2 -0
- package/dist/atomic/{p-141bf64c.js.map → p-f321aab0.js.map} +1 -1
- package/dist/atomic/themes/accessible.css +2 -0
- package/dist/atomic/themes/coveo.css +2 -0
- package/dist/cjs/_index.cjs.js +36 -6
- package/dist/cjs/_loader.cjs.js +2 -2
- package/dist/cjs/atomic-insight-generated-answer.cjs.entry.js +23 -13
- package/dist/cjs/atomic-insight-generated-answer.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-result-action.cjs.entry.js +14 -10
- package/dist/cjs/atomic-insight-result-action.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-result-attach-to-case-action.cjs.entry.js +7 -7
- package/dist/cjs/atomic-insight-result-attach-to-case-action.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-result-children-template.cjs.entry.js +5 -6
- package/dist/cjs/atomic-insight-result-children-template.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-timeframe-facet.cjs.entry.js +25 -20
- package/dist/cjs/atomic-insight-timeframe-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-ipx-recs-list.cjs.entry.js +330 -21
- package/dist/cjs/atomic-ipx-recs-list.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-ipx-refine-modal.cjs.entry.js +62 -14
- package/dist/cjs/atomic-ipx-refine-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-ipx-refine-toggle.cjs.entry.js +7 -7
- package/dist/cjs/atomic-ipx-refine-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-stencil-facet-date-input.cjs.entry.js +6 -6
- package/dist/cjs/atomic.cjs.js +2 -2
- package/dist/cjs/{date-utils-b362ad60.js → date-utils-aae1d713.js} +1 -47
- package/dist/cjs/{date-utils-b362ad60.js.map → date-utils-aae1d713.js.map} +1 -1
- package/dist/cjs/{index-515ca559.js → index-3532822e.js} +11 -371
- package/dist/cjs/index-3532822e.js.map +1 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/{initialization-lit-stencil-common-utils-4ef7bf9c.js → initialization-lit-stencil-common-utils-f19f74c0.js} +1 -8
- package/dist/cjs/initialization-lit-stencil-common-utils-f19f74c0.js.map +1 -0
- package/dist/cjs/{initialization-utils-3a62b483.js → initialization-utils-51a423fe.js} +3 -3
- package/dist/cjs/{initialization-utils-3a62b483.js.map → initialization-utils-51a423fe.js.map} +1 -1
- package/dist/cjs/{popover-type-b1385b27.js → popover-type-22f285e1.js} +4 -1
- package/dist/cjs/popover-type-22f285e1.js.map +1 -0
- package/dist/cjs/{props-utils-4cc79d26.js → props-utils-bc5feb04.js} +3 -3
- package/dist/cjs/{props-utils-4cc79d26.js.map → props-utils-bc5feb04.js.map} +1 -1
- package/dist/cjs/{stencil-button-580d6869.js → stencil-button-f39da03e.js} +2 -5
- package/dist/cjs/stencil-button-f39da03e.js.map +1 -0
- package/dist/cjs/{stencil-accessibility-utils-1dcfe64c.js → stencil-heading-ecec9ab3.js} +12 -2
- package/dist/cjs/stencil-heading-ecec9ab3.js.map +1 -0
- package/dist/cjs/{stencil-iconButton-8e927184.js → stencil-iconButton-f8b9fda0.js} +3 -3
- package/dist/cjs/{stencil-iconButton-8e927184.js.map → stencil-iconButton-f8b9fda0.js.map} +1 -1
- package/dist/cjs/{stencil-result-template-decorators-df459ee3.js → stencil-result-template-decorators-1f099c15.js} +3 -24
- package/dist/cjs/stencil-result-template-decorators-1f099c15.js.map +1 -0
- package/dist/cjs/{store-9d4daf92.js → store-70fff5e6.js} +1 -3
- package/dist/cjs/store-70fff5e6.js.map +1 -0
- package/dist/cjs/{purify-d8fb6acd.js → utils-e845f262.js} +67 -1
- package/dist/cjs/utils-e845f262.js.map +1 -0
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/_index.js +38 -8
- package/dist/esm/_loader.js +3 -3
- package/dist/esm/atomic-insight-generated-answer.entry.js +20 -10
- package/dist/esm/atomic-insight-generated-answer.entry.js.map +1 -1
- package/dist/esm/atomic-insight-result-action.entry.js +12 -8
- package/dist/esm/atomic-insight-result-action.entry.js.map +1 -1
- package/dist/esm/atomic-insight-result-attach-to-case-action.entry.js +7 -7
- package/dist/esm/atomic-insight-result-attach-to-case-action.entry.js.map +1 -1
- package/dist/esm/atomic-insight-result-children-template.entry.js +5 -6
- package/dist/esm/atomic-insight-result-children-template.entry.js.map +1 -1
- package/dist/esm/atomic-insight-timeframe-facet.entry.js +22 -17
- package/dist/esm/atomic-insight-timeframe-facet.entry.js.map +1 -1
- package/dist/esm/atomic-ipx-recs-list.entry.js +325 -16
- package/dist/esm/atomic-ipx-recs-list.entry.js.map +1 -1
- package/dist/esm/atomic-ipx-refine-modal.entry.js +61 -13
- package/dist/esm/atomic-ipx-refine-modal.entry.js.map +1 -1
- package/dist/esm/atomic-ipx-refine-toggle.entry.js +7 -7
- package/dist/esm/atomic-ipx-refine-toggle.entry.js.map +1 -1
- package/dist/esm/atomic-stencil-facet-date-input.entry.js +6 -6
- package/dist/esm/atomic.js +3 -3
- package/dist/esm/{date-utils-5656dd8f.js → date-utils-3b955e79.js} +2 -47
- package/dist/esm/{date-utils-5656dd8f.js.map → date-utils-3b955e79.js.map} +1 -1
- package/dist/esm/{index-0bcc50f8.js → index-3eb0b28e.js} +11 -371
- package/dist/esm/index-3eb0b28e.js.map +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/{initialization-lit-stencil-common-utils-097c357b.js → initialization-lit-stencil-common-utils-e7755434.js} +2 -8
- package/dist/esm/initialization-lit-stencil-common-utils-e7755434.js.map +1 -0
- package/dist/esm/{initialization-utils-958635e9.js → initialization-utils-82d28c63.js} +3 -3
- package/dist/esm/{initialization-utils-958635e9.js.map → initialization-utils-82d28c63.js.map} +1 -1
- package/dist/esm/popover-type-c85677ef.js +12 -0
- package/dist/esm/popover-type-c85677ef.js.map +1 -0
- package/dist/esm/{props-utils-a6744ec8.js → props-utils-d343133b.js} +3 -3
- package/dist/esm/{props-utils-a6744ec8.js.map → props-utils-d343133b.js.map} +1 -1
- package/dist/esm/{stencil-button-f96c2b81.js → stencil-button-c25899df.js} +3 -3
- package/dist/esm/{stencil-button-f96c2b81.js.map → stencil-button-c25899df.js.map} +1 -1
- package/dist/esm/{stencil-accessibility-utils-2253e89c.js → stencil-heading-98a5f23f.js} +12 -3
- package/dist/{atomic/p-f2243b33.js.map → esm/stencil-heading-98a5f23f.js.map} +1 -1
- package/dist/esm/{stencil-iconButton-16be999d.js → stencil-iconButton-ed5804d3.js} +3 -3
- package/dist/esm/{stencil-iconButton-16be999d.js.map → stencil-iconButton-ed5804d3.js.map} +1 -1
- package/dist/esm/{stencil-result-template-decorators-e758f409.js → stencil-result-template-decorators-9cbe1e1c.js} +4 -24
- package/dist/esm/stencil-result-template-decorators-9cbe1e1c.js.map +1 -0
- package/dist/esm/{store-3bc9050f.js → store-50d170c8.js} +1 -3
- package/dist/esm/store-50d170c8.js.map +1 -0
- package/dist/esm/{purify-985ba52e.js → utils-b5bab369.js} +60 -2
- package/dist/esm/utils-b5bab369.js.map +1 -0
- package/dist/esm/version.js +2 -2
- package/dist/types/components/commerce/atomic-commerce-refine-modal/atomic-commerce-refine-modal.d.ts +1 -0
- package/dist/types/components/commerce/atomic-commerce-refine-toggle/atomic-commerce-refine-toggle.d.ts +1 -0
- package/dist/types/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.d.ts +1 -0
- package/dist/types/components/commerce/atomic-product-link/atomic-product-link.d.ts +1 -0
- package/dist/types/components/common/atomic-generated-answer-feedback-modal/atomic-generated-answer-feedback-modal.d.ts +72 -0
- package/dist/types/components/common/atomic-rating/rating.d.ts +1 -0
- package/dist/types/components/common/atomic-result-placeholder/atomic-result-placeholder.d.ts +6 -0
- package/dist/types/components/common/atomic-smart-snippet-expandable-answer/atomic-smart-snippet-expandable-answer.d.ts +1 -1
- package/dist/types/components/common/breadbox/breadcrumb-content.d.ts +1 -0
- package/dist/types/components/common/generated-answer/generated-answer-controller.d.ts +1 -0
- package/dist/types/components/common/generated-answer/render-answer-content.d.ts +8 -9
- package/dist/types/components/common/generated-answer/render-card-header.d.ts +14 -0
- package/dist/types/components/common/generated-answer/render-custom-no-answer-message.d.ts +1 -6
- package/dist/types/components/common/generated-answer/render-follow-up-input.d.ts +17 -0
- package/dist/types/components/common/generated-answer/show-button.d.ts +1 -0
- package/dist/types/components/common/index.d.ts +1 -0
- package/dist/types/components/common/item-list/table-layout.d.ts +1 -0
- package/dist/types/components/common/layout/item-layout-sections.d.ts +1 -1
- package/dist/types/components/common/no-items/magnifying-glass.d.ts +1 -0
- package/dist/types/components/common/search-box/submit-button.d.ts +1 -0
- package/dist/types/components/common/search-box/text-area-clear-button.d.ts +1 -0
- package/dist/types/components/common/smart-snippets/smart-snippet-feedback-banner.d.ts +1 -0
- package/dist/types/components/common/suggestions/query-suggestions.d.ts +1 -0
- package/dist/types/components/common/suggestions/recent-queries.d.ts +1 -0
- package/dist/types/components/insight/atomic-insight-folded-result-list/atomic-insight-folded-result-list.d.ts +99 -0
- package/dist/types/components/insight/atomic-insight-refine-modal/atomic-insight-refine-modal.d.ts +51 -12
- package/dist/types/components/insight/atomic-insight-refine-toggle/atomic-insight-refine-toggle.d.ts +1 -0
- package/dist/types/components/insight/atomic-insight-result-action-bar/atomic-insight-result-action-bar.d.ts +12 -4
- package/dist/types/components/insight/atomic-insight-result-attach-to-case-indicator/atomic-insight-result-attach-to-case-indicator.d.ts +15 -10
- package/dist/types/components/insight/atomic-insight-result-list/atomic-insight-result-list.d.ts +72 -0
- package/dist/types/components/insight/atomic-insight-result-list/insight-list-display.tw.css.d.ts +2 -0
- package/dist/types/components/insight/atomic-insight-result-quickview-action/atomic-insight-result-quickview-action.d.ts +41 -18
- package/dist/types/components/insight/atomic-insight-search-box/atomic-insight-search-box.d.ts +1 -0
- package/dist/types/components/insight/atomic-insight-smart-snippet/atomic-insight-smart-snippet.d.ts +73 -0
- package/dist/types/components/insight/atomic-insight-smart-snippet/atomic-insight-smart-snippet.tw.css.d.ts +2 -0
- package/dist/types/components/insight/atomic-insight-smart-snippet-suggestions/atomic-insight-smart-snippet-suggestions.d.ts +83 -0
- package/dist/types/components/insight/atomic-insight-smart-snippet-suggestions/atomic-insight-smart-snippet-suggestions.tw.css.d.ts +2 -0
- package/dist/types/components/insight/atomic-insight-user-actions-modal/atomic-insight-user-actions-modal.d.ts +67 -0
- package/dist/types/components/insight/atomic-insight-user-actions-session/atomic-insight-user-actions-session.d.ts +46 -0
- package/dist/types/components/insight/{user-actions/atomic-insight-user-actions-session → atomic-insight-user-actions-session}/user-action.d.ts +2 -2
- package/dist/types/components/insight/atomic-insight-user-actions-timeline/atomic-insight-user-actions-timeline.d.ts +57 -0
- package/dist/types/components/insight/atomic-insight-user-actions-toggle/atomic-insight-user-actions-toggle.d.ts +1 -0
- package/dist/types/components/insight/index.d.ts +11 -0
- package/dist/types/components/ipx/atomic-ipx-body/ipx-body-styles.d.ts +1 -0
- package/dist/types/components/ipx/atomic-ipx-body/ipx-body.d.ts +13 -0
- package/dist/types/components/ipx/atomic-ipx-embedded/atomic-ipx-embedded.d.ts +8 -0
- package/dist/types/components/ipx/atomic-ipx-modal/atomic-ipx-modal.d.ts +51 -18
- package/dist/types/components/ipx/atomic-ipx-result-link/atomic-ipx-result-link.d.ts +34 -15
- package/dist/types/components/ipx/atomic-ipx-result-link/atomic-ipx-result-link.tw.css.d.ts +2 -0
- package/dist/types/components/ipx/index.d.ts +2 -0
- package/dist/types/components/recommendations/atomic-recs-list/atomic-recs-list.d.ts +40 -23
- package/dist/types/components/recommendations/index.d.ts +1 -0
- package/dist/types/components/search/atomic-generated-answer/atomic-generated-answer.d.ts +12 -4
- package/dist/types/components/search/atomic-notifications/atomic-notifications.d.ts +1 -0
- package/dist/types/components/search/atomic-quickview/atomic-quickview.d.ts +1 -0
- package/dist/types/components/search/atomic-refine-modal/atomic-refine-modal.d.ts +1 -0
- package/dist/types/components/search/atomic-refine-toggle/atomic-refine-toggle.d.ts +1 -0
- package/dist/types/components/search/atomic-result-link/atomic-result-link.d.ts +2 -2
- package/dist/types/components/search/atomic-search-box/atomic-search-box.d.ts +1 -0
- package/dist/types/components/search/atomic-smart-snippet/atomic-smart-snippet.d.ts +1 -0
- package/dist/types/components.d.ts +8 -745
- package/docs/atomic-docs.json +15 -708
- package/package.json +10 -3
- package/dist/atomic/components/arrow-right.js +0 -8
- package/dist/atomic/components/arrow-right.js.map +0 -1
- package/dist/atomic/components/atomic-generated-answer-feedback-modal.d.ts +0 -11
- package/dist/atomic/components/atomic-generated-answer-feedback-modal.js +0 -435
- package/dist/atomic/components/atomic-generated-answer-feedback-modal.js.map +0 -1
- package/dist/atomic/components/atomic-insight-folded-result-list.d.ts +0 -11
- package/dist/atomic/components/atomic-insight-folded-result-list.js +0 -202
- package/dist/atomic/components/atomic-insight-folded-result-list.js.map +0 -1
- package/dist/atomic/components/atomic-insight-refine-modal.d.ts +0 -11
- package/dist/atomic/components/atomic-insight-refine-modal.js +0 -127
- package/dist/atomic/components/atomic-insight-refine-modal.js.map +0 -1
- package/dist/atomic/components/atomic-insight-result-action-bar.d.ts +0 -11
- package/dist/atomic/components/atomic-insight-result-action-bar.js +0 -41
- package/dist/atomic/components/atomic-insight-result-action-bar.js.map +0 -1
- package/dist/atomic/components/atomic-insight-result-attach-to-case-indicator.d.ts +0 -11
- package/dist/atomic/components/atomic-insight-result-attach-to-case-indicator.js +0 -75
- package/dist/atomic/components/atomic-insight-result-attach-to-case-indicator.js.map +0 -1
- package/dist/atomic/components/atomic-insight-result-list.d.ts +0 -11
- package/dist/atomic/components/atomic-insight-result-list.js +0 -170
- package/dist/atomic/components/atomic-insight-result-list.js.map +0 -1
- package/dist/atomic/components/atomic-insight-result-quickview-action.d.ts +0 -11
- package/dist/atomic/components/atomic-insight-result-quickview-action.js +0 -149
- package/dist/atomic/components/atomic-insight-result-quickview-action.js.map +0 -1
- package/dist/atomic/components/atomic-insight-smart-snippet-suggestions.d.ts +0 -11
- package/dist/atomic/components/atomic-insight-smart-snippet-suggestions.js +0 -150
- package/dist/atomic/components/atomic-insight-smart-snippet-suggestions.js.map +0 -1
- package/dist/atomic/components/atomic-insight-smart-snippet.d.ts +0 -11
- package/dist/atomic/components/atomic-insight-smart-snippet.js +0 -186
- package/dist/atomic/components/atomic-insight-smart-snippet.js.map +0 -1
- package/dist/atomic/components/atomic-insight-user-actions-modal.d.ts +0 -11
- package/dist/atomic/components/atomic-insight-user-actions-modal.js +0 -129
- package/dist/atomic/components/atomic-insight-user-actions-modal.js.map +0 -1
- package/dist/atomic/components/atomic-insight-user-actions-session.d.ts +0 -11
- package/dist/atomic/components/atomic-insight-user-actions-session.js +0 -8
- package/dist/atomic/components/atomic-insight-user-actions-session.js.map +0 -1
- package/dist/atomic/components/atomic-insight-user-actions-session2.js +0 -185
- package/dist/atomic/components/atomic-insight-user-actions-session2.js.map +0 -1
- package/dist/atomic/components/atomic-insight-user-actions-timeline.d.ts +0 -11
- package/dist/atomic/components/atomic-insight-user-actions-timeline.js +0 -8
- package/dist/atomic/components/atomic-insight-user-actions-timeline.js.map +0 -1
- package/dist/atomic/components/atomic-insight-user-actions-timeline2.js +0 -307
- package/dist/atomic/components/atomic-insight-user-actions-timeline2.js.map +0 -1
- package/dist/atomic/components/atomic-ipx-body.d.ts +0 -11
- package/dist/atomic/components/atomic-ipx-body.js +0 -8
- package/dist/atomic/components/atomic-ipx-body.js.map +0 -1
- package/dist/atomic/components/atomic-ipx-body2.js +0 -91
- package/dist/atomic/components/atomic-ipx-body2.js.map +0 -1
- package/dist/atomic/components/atomic-ipx-modal.d.ts +0 -11
- package/dist/atomic/components/atomic-ipx-modal.js +0 -110
- package/dist/atomic/components/atomic-ipx-modal.js.map +0 -1
- package/dist/atomic/components/atomic-ipx-result-link.d.ts +0 -11
- package/dist/atomic/components/atomic-ipx-result-link.js +0 -198
- package/dist/atomic/components/atomic-ipx-result-link.js.map +0 -1
- package/dist/atomic/components/atomic-recs-list.d.ts +0 -11
- package/dist/atomic/components/atomic-recs-list.js +0 -304
- package/dist/atomic/components/atomic-recs-list.js.map +0 -1
- package/dist/atomic/components/atomic-suggestion-renderer.d.ts +0 -11
- package/dist/atomic/components/atomic-suggestion-renderer.js +0 -123
- package/dist/atomic/components/atomic-suggestion-renderer.js.map +0 -1
- package/dist/atomic/components/attributes-slot.js +0 -30
- package/dist/atomic/components/attributes-slot.js.map +0 -1
- package/dist/atomic/components/close.js +0 -5
- package/dist/atomic/components/close.js.map +0 -1
- package/dist/atomic/components/display-options.js +0 -239
- package/dist/atomic/components/display-options.js.map +0 -1
- package/dist/atomic/components/event-utils.js +0 -24
- package/dist/atomic/components/event-utils.js.map +0 -1
- package/dist/atomic/components/export-parts.js +0 -5
- package/dist/atomic/components/export-parts.js.map +0 -1
- package/dist/atomic/components/preview.js +0 -8
- package/dist/atomic/components/preview.js.map +0 -1
- package/dist/atomic/components/purify.js +0 -1363
- package/dist/atomic/components/purify.js.map +0 -1
- package/dist/atomic/components/replace-breakpoint-utils.js +0 -41
- package/dist/atomic/components/replace-breakpoint-utils.js.map +0 -1
- package/dist/atomic/components/slot-utils.js +0 -20
- package/dist/atomic/components/slot-utils.js.map +0 -1
- package/dist/atomic/components/stencil-accessibility-utils.js +0 -160
- package/dist/atomic/components/stencil-accessibility-utils.js.map +0 -1
- package/dist/atomic/components/stencil-carousel.js +0 -50
- package/dist/atomic/components/stencil-carousel.js.map +0 -1
- package/dist/atomic/components/stencil-fieldset-group.js +0 -12
- package/dist/atomic/components/stencil-fieldset-group.js.map +0 -1
- package/dist/atomic/components/stencil-item-list-guard.js +0 -17
- package/dist/atomic/components/stencil-item-list-guard.js.map +0 -1
- package/dist/atomic/components/stencil-modal.js +0 -61
- package/dist/atomic/components/stencil-modal.js.map +0 -1
- package/dist/atomic/components/stencil-radio-button.js +0 -75
- package/dist/atomic/components/stencil-radio-button.js.map +0 -1
- package/dist/atomic/components/stencil-result-template-decorators.js +0 -130
- package/dist/atomic/components/stencil-result-template-decorators.js.map +0 -1
- package/dist/atomic/p-01e5fdc1.entry.js +0 -2
- package/dist/atomic/p-01e5fdc1.entry.js.map +0 -1
- package/dist/atomic/p-02089c14.js +0 -2
- package/dist/atomic/p-02089c14.js.map +0 -1
- package/dist/atomic/p-0d58f131.entry.js +0 -2
- package/dist/atomic/p-0d58f131.entry.js.map +0 -1
- package/dist/atomic/p-0f466ffb.js +0 -2
- package/dist/atomic/p-0f466ffb.js.map +0 -1
- package/dist/atomic/p-141bf64c.js +0 -2
- package/dist/atomic/p-2ad5f46e.entry.js +0 -2
- package/dist/atomic/p-2ad5f46e.entry.js.map +0 -1
- package/dist/atomic/p-3b46c4c2.entry.js +0 -2
- package/dist/atomic/p-3b46c4c2.entry.js.map +0 -1
- package/dist/atomic/p-3df103c1.js.map +0 -1
- package/dist/atomic/p-406f7e5a.js +0 -2
- package/dist/atomic/p-42d7acb3.js +0 -2
- package/dist/atomic/p-42d7acb3.js.map +0 -1
- package/dist/atomic/p-44eda272.entry.js +0 -2
- package/dist/atomic/p-44eda272.entry.js.map +0 -1
- package/dist/atomic/p-519b3517.entry.js +0 -2
- package/dist/atomic/p-519b3517.entry.js.map +0 -1
- package/dist/atomic/p-5b41c16c.js +0 -2
- package/dist/atomic/p-5b41c16c.js.map +0 -1
- package/dist/atomic/p-66d84fd8.js +0 -2
- package/dist/atomic/p-66d84fd8.js.map +0 -1
- package/dist/atomic/p-6b66c9da.entry.js +0 -2
- package/dist/atomic/p-6b66c9da.entry.js.map +0 -1
- package/dist/atomic/p-6bb72ce5.entry.js +0 -2
- package/dist/atomic/p-6bb72ce5.entry.js.map +0 -1
- package/dist/atomic/p-6bbff681.entry.js +0 -2
- package/dist/atomic/p-6bbff681.entry.js.map +0 -1
- package/dist/atomic/p-6e706321.entry.js +0 -2
- package/dist/atomic/p-74975270.js +0 -2
- package/dist/atomic/p-74975270.js.map +0 -1
- package/dist/atomic/p-7a4bad93.entry.js +0 -2
- package/dist/atomic/p-7a4bad93.entry.js.map +0 -1
- package/dist/atomic/p-7ac9072b.js +0 -2
- package/dist/atomic/p-7ac9072b.js.map +0 -1
- package/dist/atomic/p-898fd613.js +0 -3
- package/dist/atomic/p-898fd613.js.map +0 -1
- package/dist/atomic/p-8b9982db.entry.js +0 -2
- package/dist/atomic/p-8b9982db.entry.js.map +0 -1
- package/dist/atomic/p-904f3adb.js +0 -2
- package/dist/atomic/p-904f3adb.js.map +0 -1
- package/dist/atomic/p-90f23fb3.entry.js +0 -2
- package/dist/atomic/p-91a9b3f1.js +0 -2
- package/dist/atomic/p-91a9b3f1.js.map +0 -1
- package/dist/atomic/p-92156d1b.entry.js +0 -2
- package/dist/atomic/p-92156d1b.entry.js.map +0 -1
- package/dist/atomic/p-a3edbb0a.entry.js +0 -2
- package/dist/atomic/p-a62f2bf9.js +0 -2
- package/dist/atomic/p-a62f2bf9.js.map +0 -1
- package/dist/atomic/p-b01312d5.entry.js +0 -2
- package/dist/atomic/p-b01312d5.entry.js.map +0 -1
- package/dist/atomic/p-b56e0b21.entry.js +0 -2
- package/dist/atomic/p-b56e0b21.entry.js.map +0 -1
- package/dist/atomic/p-b9caa130.entry.js +0 -2
- package/dist/atomic/p-b9caa130.entry.js.map +0 -1
- package/dist/atomic/p-bedd6d62.js +0 -2
- package/dist/atomic/p-bedd6d62.js.map +0 -1
- package/dist/atomic/p-c785d72d.entry.js +0 -2
- package/dist/atomic/p-c785d72d.entry.js.map +0 -1
- package/dist/atomic/p-ce30fcf5.entry.js +0 -2
- package/dist/atomic/p-ce30fcf5.entry.js.map +0 -1
- package/dist/atomic/p-cfa9c12b.js +0 -2
- package/dist/atomic/p-cfa9c12b.js.map +0 -1
- package/dist/atomic/p-d03289b0.entry.js +0 -2
- package/dist/atomic/p-d03289b0.entry.js.map +0 -1
- package/dist/atomic/p-d0ec450e.entry.js +0 -2
- package/dist/atomic/p-d0ec450e.entry.js.map +0 -1
- package/dist/atomic/p-d637dcbe.js +0 -2
- package/dist/atomic/p-d637dcbe.js.map +0 -1
- package/dist/atomic/p-d7bf3aa2.js +0 -2
- package/dist/atomic/p-d7bf3aa2.js.map +0 -1
- package/dist/atomic/p-dcd04374.js +0 -2
- package/dist/atomic/p-dcd04374.js.map +0 -1
- package/dist/atomic/p-e283bb5a.js +0 -2
- package/dist/atomic/p-e283bb5a.js.map +0 -1
- package/dist/atomic/p-e2e4d4f3.entry.js +0 -9
- package/dist/atomic/p-e2e4d4f3.entry.js.map +0 -1
- package/dist/atomic/p-e9fff991.js +0 -2
- package/dist/atomic/p-e9fff991.js.map +0 -1
- package/dist/atomic/p-ec99339b.js +0 -2
- package/dist/atomic/p-ec99339b.js.map +0 -1
- package/dist/atomic/p-f2243b33.js +0 -2
- package/dist/atomic/p-f2b42434.entry.js +0 -2
- package/dist/atomic/p-f2b42434.entry.js.map +0 -1
- package/dist/atomic/p-f3a9a28b.entry.js +0 -2
- package/dist/atomic/p-fafae456.js +0 -2
- package/dist/atomic/p-fafae456.js.map +0 -1
- package/dist/cjs/arrow-right-a3be291c.js +0 -10
- package/dist/cjs/arrow-right-a3be291c.js.map +0 -1
- package/dist/cjs/atomic-generated-answer-feedback-modal.cjs.entry.js +0 -415
- package/dist/cjs/atomic-generated-answer-feedback-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-insight-folded-result-list.cjs.entry.js +0 -181
- package/dist/cjs/atomic-insight-folded-result-list.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-insight-refine-modal.cjs.entry.js +0 -112
- package/dist/cjs/atomic-insight-refine-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-insight-result-action-bar.cjs.entry.js +0 -30
- package/dist/cjs/atomic-insight-result-action-bar.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-insight-result-attach-to-case-indicator.cjs.entry.js +0 -61
- package/dist/cjs/atomic-insight-result-attach-to-case-indicator.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-insight-result-list.cjs.entry.js +0 -152
- package/dist/cjs/atomic-insight-result-list.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-insight-result-quickview-action.cjs.entry.js +0 -138
- package/dist/cjs/atomic-insight-result-quickview-action.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-insight-smart-snippet-suggestions.cjs.entry.js +0 -137
- package/dist/cjs/atomic-insight-smart-snippet-suggestions.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-insight-smart-snippet.cjs.entry.js +0 -170
- package/dist/cjs/atomic-insight-smart-snippet.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-insight-user-actions-modal.cjs.entry.js +0 -95
- package/dist/cjs/atomic-insight-user-actions-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-insight-user-actions-session.cjs.entry.js +0 -170
- package/dist/cjs/atomic-insight-user-actions-session.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-insight-user-actions-timeline.cjs.entry.js +0 -285
- package/dist/cjs/atomic-insight-user-actions-timeline.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-ipx-body.cjs.entry.js +0 -80
- package/dist/cjs/atomic-ipx-body.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-ipx-modal.cjs.entry.js +0 -86
- package/dist/cjs/atomic-ipx-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-ipx-result-link.cjs.entry.js +0 -126
- package/dist/cjs/atomic-ipx-result-link.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-recs-list.cjs.entry.js +0 -278
- package/dist/cjs/atomic-recs-list.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-suggestion-renderer.cjs.entry.js +0 -99
- package/dist/cjs/atomic-suggestion-renderer.cjs.entry.js.map +0 -1
- package/dist/cjs/attributes-slot-bb450885.js +0 -32
- package/dist/cjs/attributes-slot-bb450885.js.map +0 -1
- package/dist/cjs/close-20739950.js +0 -7
- package/dist/cjs/close-20739950.js.map +0 -1
- package/dist/cjs/display-options-dad31135.js +0 -246
- package/dist/cjs/display-options-dad31135.js.map +0 -1
- package/dist/cjs/export-parts-878c454a.js +0 -7
- package/dist/cjs/export-parts-878c454a.js.map +0 -1
- package/dist/cjs/index-515ca559.js.map +0 -1
- package/dist/cjs/initialization-lit-stencil-common-utils-4ef7bf9c.js.map +0 -1
- package/dist/cjs/popover-type-b1385b27.js.map +0 -1
- package/dist/cjs/preview-8eebe5d5.js +0 -10
- package/dist/cjs/preview-8eebe5d5.js.map +0 -1
- package/dist/cjs/purify-d8fb6acd.js.map +0 -1
- package/dist/cjs/replace-breakpoint-utils-c365392f.js +0 -43
- package/dist/cjs/replace-breakpoint-utils-c365392f.js.map +0 -1
- package/dist/cjs/result-utils-30919a35.js +0 -67
- package/dist/cjs/result-utils-30919a35.js.map +0 -1
- package/dist/cjs/slot-utils-086dacac.js +0 -23
- package/dist/cjs/slot-utils-086dacac.js.map +0 -1
- package/dist/cjs/stencil-accessibility-utils-1dcfe64c.js.map +0 -1
- package/dist/cjs/stencil-button-580d6869.js.map +0 -1
- package/dist/cjs/stencil-carousel-27149c5b.js +0 -53
- package/dist/cjs/stencil-carousel-27149c5b.js.map +0 -1
- package/dist/cjs/stencil-fieldset-group-c1b075b6.js +0 -14
- package/dist/cjs/stencil-fieldset-group-c1b075b6.js.map +0 -1
- package/dist/cjs/stencil-heading-41ec283d.js +0 -15
- package/dist/cjs/stencil-heading-41ec283d.js.map +0 -1
- package/dist/cjs/stencil-item-list-guard-4dfa8e37.js +0 -19
- package/dist/cjs/stencil-item-list-guard-4dfa8e37.js.map +0 -1
- package/dist/cjs/stencil-modal-9035d38e.js +0 -64
- package/dist/cjs/stencil-modal-9035d38e.js.map +0 -1
- package/dist/cjs/stencil-radio-button-6a4181f4.js +0 -77
- package/dist/cjs/stencil-radio-button-6a4181f4.js.map +0 -1
- package/dist/cjs/stencil-result-template-decorators-df459ee3.js.map +0 -1
- package/dist/cjs/store-9d4daf92.js.map +0 -1
- package/dist/cjs/utils-ba796684.js +0 -82
- package/dist/cjs/utils-ba796684.js.map +0 -1
- package/dist/esm/arrow-right-cb365b01.js +0 -8
- package/dist/esm/arrow-right-cb365b01.js.map +0 -1
- package/dist/esm/atomic-generated-answer-feedback-modal.entry.js +0 -411
- package/dist/esm/atomic-generated-answer-feedback-modal.entry.js.map +0 -1
- package/dist/esm/atomic-insight-folded-result-list.entry.js +0 -177
- package/dist/esm/atomic-insight-folded-result-list.entry.js.map +0 -1
- package/dist/esm/atomic-insight-refine-modal.entry.js +0 -108
- package/dist/esm/atomic-insight-refine-modal.entry.js.map +0 -1
- package/dist/esm/atomic-insight-result-action-bar.entry.js +0 -26
- package/dist/esm/atomic-insight-result-action-bar.entry.js.map +0 -1
- package/dist/esm/atomic-insight-result-attach-to-case-indicator.entry.js +0 -57
- package/dist/esm/atomic-insight-result-attach-to-case-indicator.entry.js.map +0 -1
- package/dist/esm/atomic-insight-result-list.entry.js +0 -148
- package/dist/esm/atomic-insight-result-list.entry.js.map +0 -1
- package/dist/esm/atomic-insight-result-quickview-action.entry.js +0 -134
- package/dist/esm/atomic-insight-result-quickview-action.entry.js.map +0 -1
- package/dist/esm/atomic-insight-smart-snippet-suggestions.entry.js +0 -133
- package/dist/esm/atomic-insight-smart-snippet-suggestions.entry.js.map +0 -1
- package/dist/esm/atomic-insight-smart-snippet.entry.js +0 -166
- package/dist/esm/atomic-insight-smart-snippet.entry.js.map +0 -1
- package/dist/esm/atomic-insight-user-actions-modal.entry.js +0 -91
- package/dist/esm/atomic-insight-user-actions-modal.entry.js.map +0 -1
- package/dist/esm/atomic-insight-user-actions-session.entry.js +0 -166
- package/dist/esm/atomic-insight-user-actions-session.entry.js.map +0 -1
- package/dist/esm/atomic-insight-user-actions-timeline.entry.js +0 -281
- package/dist/esm/atomic-insight-user-actions-timeline.entry.js.map +0 -1
- package/dist/esm/atomic-ipx-body.entry.js +0 -76
- package/dist/esm/atomic-ipx-body.entry.js.map +0 -1
- package/dist/esm/atomic-ipx-modal.entry.js +0 -82
- package/dist/esm/atomic-ipx-modal.entry.js.map +0 -1
- package/dist/esm/atomic-ipx-result-link.entry.js +0 -122
- package/dist/esm/atomic-ipx-result-link.entry.js.map +0 -1
- package/dist/esm/atomic-recs-list.entry.js +0 -274
- package/dist/esm/atomic-recs-list.entry.js.map +0 -1
- package/dist/esm/atomic-suggestion-renderer.entry.js +0 -95
- package/dist/esm/atomic-suggestion-renderer.entry.js.map +0 -1
- package/dist/esm/attributes-slot-b43923b8.js +0 -30
- package/dist/esm/attributes-slot-b43923b8.js.map +0 -1
- package/dist/esm/close-ff816971.js +0 -5
- package/dist/esm/close-ff816971.js.map +0 -1
- package/dist/esm/display-options-63f2ec3c.js +0 -239
- package/dist/esm/display-options-63f2ec3c.js.map +0 -1
- package/dist/esm/export-parts-14a53e2c.js +0 -5
- package/dist/esm/export-parts-14a53e2c.js.map +0 -1
- package/dist/esm/index-0bcc50f8.js.map +0 -1
- package/dist/esm/initialization-lit-stencil-common-utils-097c357b.js.map +0 -1
- package/dist/esm/popover-type-895c0e24.js +0 -10
- package/dist/esm/popover-type-895c0e24.js.map +0 -1
- package/dist/esm/preview-bb7e7a89.js +0 -8
- package/dist/esm/preview-bb7e7a89.js.map +0 -1
- package/dist/esm/purify-985ba52e.js.map +0 -1
- package/dist/esm/replace-breakpoint-utils-2626a500.js +0 -41
- package/dist/esm/replace-breakpoint-utils-2626a500.js.map +0 -1
- package/dist/esm/result-utils-8978d15e.js +0 -64
- package/dist/esm/result-utils-8978d15e.js.map +0 -1
- package/dist/esm/slot-utils-3a3874a2.js +0 -20
- package/dist/esm/slot-utils-3a3874a2.js.map +0 -1
- package/dist/esm/stencil-accessibility-utils-2253e89c.js.map +0 -1
- package/dist/esm/stencil-carousel-bb5606d8.js +0 -50
- package/dist/esm/stencil-carousel-bb5606d8.js.map +0 -1
- package/dist/esm/stencil-fieldset-group-6a9a867f.js +0 -12
- package/dist/esm/stencil-fieldset-group-6a9a867f.js.map +0 -1
- package/dist/esm/stencil-heading-5ac0f5ff.js +0 -13
- package/dist/esm/stencil-heading-5ac0f5ff.js.map +0 -1
- package/dist/esm/stencil-item-list-guard-7eaabe92.js +0 -17
- package/dist/esm/stencil-item-list-guard-7eaabe92.js.map +0 -1
- package/dist/esm/stencil-modal-0471908f.js +0 -61
- package/dist/esm/stencil-modal-0471908f.js.map +0 -1
- package/dist/esm/stencil-radio-button-647a8428.js +0 -75
- package/dist/esm/stencil-radio-button-647a8428.js.map +0 -1
- package/dist/esm/stencil-result-template-decorators-e758f409.js.map +0 -1
- package/dist/esm/store-3bc9050f.js.map +0 -1
- package/dist/esm/utils-4b7a065d.js +0 -72
- package/dist/esm/utils-4b7a065d.js.map +0 -1
- package/dist/types/components/common/atomic-suggestion-renderer/atomic-suggestion-renderer.d.ts +0 -29
- package/dist/types/components/common/generated-answer/atomic-generated-answer-feedback/atomic-generated-answer-feedback-modal.d.ts +0 -61
- package/dist/types/components/insight/result-lists/atomic-insight-folded-result-list/atomic-insight-folded-result-list.d.ts +0 -68
- package/dist/types/components/insight/result-lists/atomic-insight-result-list/atomic-insight-result-list.d.ts +0 -49
- package/dist/types/components/insight/smart-snippets/atomic-insight-smart-snippet/atomic-insight-smart-snippet.d.ts +0 -48
- package/dist/types/components/insight/smart-snippets/atomic-insight-smart-snippet-suggestions/atomic-insight-smart-snippet-suggestions.d.ts +0 -38
- package/dist/types/components/insight/user-actions/atomic-insight-user-actions-modal/atomic-insight-user-actions-modal.d.ts +0 -34
- package/dist/types/components/insight/user-actions/atomic-insight-user-actions-session/atomic-insight-user-actions-session.d.ts +0 -32
- package/dist/types/components/insight/user-actions/atomic-insight-user-actions-session/stencil-user-action.d.ts +0 -12
- package/dist/types/components/insight/user-actions/atomic-insight-user-actions-timeline/atomic-insight-user-actions-timeline.d.ts +0 -46
- package/dist/types/components/ipx/atomic-ipx-body/atomic-ipx-body.d.ts +0 -23
- /package/dist/atomic/{p-1da0ec8c.entry.js.map → p-0698ccf1.entry.js.map} +0 -0
- /package/dist/atomic/{p-94976bed.js.map → p-4a32511f.js.map} +0 -0
- /package/dist/atomic/{p-0454df94.js.map → p-578d761c.js.map} +0 -0
- /package/dist/atomic/{p-be8cc132.js.map → p-677f9c40.js.map} +0 -0
- /package/dist/atomic/{p-4a2e7926.js.map → p-9c5ec170.js.map} +0 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var AtomicInsightResultQuickviewAction_1;
|
|
8
|
+
import { Schema, StringValue } from '@coveo/bueno';
|
|
9
|
+
import { buildQuickview } from '@coveo/headless';
|
|
10
|
+
import { LitElement } from 'lit';
|
|
11
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
12
|
+
import { createRef } from 'lit/directives/ref.js';
|
|
13
|
+
import { when } from 'lit/directives/when.js';
|
|
14
|
+
import { renderIconButton } from "../../common/icon-button";
|
|
15
|
+
import { ValidatePropsController } from "../../common/validate-props-controller/validate-props-controller";
|
|
16
|
+
import "../../search/atomic-quickview-modal/atomic-quickview-modal";
|
|
17
|
+
import { createResultContextController } from "../../search/result-template-component-utils/context/result-context-controller";
|
|
18
|
+
import { bindStateToController } from "../../../decorators/bind-state";
|
|
19
|
+
import { bindings } from "../../../decorators/bindings";
|
|
20
|
+
import { LightDomMixin } from "../../../mixins/light-dom";
|
|
21
|
+
import { AriaLiveRegionController, FocusTargetController, } from "../../../utils/accessibility-utils";
|
|
22
|
+
const QuickviewIcon = "<svg width=\"27\" height=\"26\" viewBox=\"0 0 27 26\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M25.9125 13.05C23.5625 8.3 18.6625 5 13.0125 5C7.3625 5 2.4625 8.3 0.1125 13.05C-0.0375 13.35 -0.0375 13.7 0.1125 13.95C2.4625 18.7 7.3625 22 13.0125 22C18.6625 22 23.5625 18.7 25.9125 13.95C26.0625 13.65 26.0625 13.35 25.9125 13.05ZM13.0125 19C9.9625 19 7.5125 16.55 7.5125 13.5C7.5125 10.45 9.9625 8 13.0125 8C16.0625 8 18.5125 10.45 18.5125 13.5C18.5125 16.55 16.0625 19 13.0125 19ZM13.0125 10C11.0625 10 9.5125 11.55 9.5125 13.5C9.5125 15.45 11.0625 17 13.0125 17C14.9625 17 16.5125 15.45 16.5125 13.5C16.5125 11.55 14.9625 10 13.0125 10Z\"/>\n</svg>\n";
|
|
23
|
+
/**
|
|
24
|
+
* The `atomic-insight-result-quickview-action` component renders a button that, when clicked,
|
|
25
|
+
* opens a modal containing a preview of the result document. This allows users to quickly
|
|
26
|
+
* view the content of a document without navigating away from the insight panel.
|
|
27
|
+
*
|
|
28
|
+
* This component must be used inside an `atomic-insight-result-template` component.
|
|
29
|
+
*
|
|
30
|
+
* @part result-action-container - The container wrapping the button.
|
|
31
|
+
* @part result-action-button - The button that opens the quickview modal.
|
|
32
|
+
* @part result-action-icon - The icon displayed in the button.
|
|
33
|
+
*/
|
|
34
|
+
let AtomicInsightResultQuickviewAction = AtomicInsightResultQuickviewAction_1 = class AtomicInsightResultQuickviewAction extends LightDomMixin(LitElement) {
|
|
35
|
+
constructor() {
|
|
36
|
+
super();
|
|
37
|
+
/**
|
|
38
|
+
* The `sandbox` attribute to apply to the quickview iframe.
|
|
39
|
+
*
|
|
40
|
+
* The quickview is loaded inside an iframe with a [`sandbox`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attr-sandbox) attribute for security reasons.
|
|
41
|
+
*
|
|
42
|
+
* This attribute exists primarily to protect against potential XSS attacks that could originate from the document being displayed.
|
|
43
|
+
*
|
|
44
|
+
* By default, the sandbox attributes are: `allow-popups allow-top-navigation allow-same-origin`.
|
|
45
|
+
*
|
|
46
|
+
* `allow-same-origin` is not optional, and must always be included in the list of allowed capabilities for the component to function properly.
|
|
47
|
+
*/
|
|
48
|
+
this.sandbox = 'allow-popups allow-top-navigation allow-same-origin';
|
|
49
|
+
this.resultContext = createResultContextController(this);
|
|
50
|
+
this.ariaLiveRegion = new AriaLiveRegionController(this, 'quickview');
|
|
51
|
+
this.buttonRef = createRef();
|
|
52
|
+
this.nextQuickviewHandler = (evt) => {
|
|
53
|
+
evt.stopImmediatePropagation();
|
|
54
|
+
this.quickview.next();
|
|
55
|
+
};
|
|
56
|
+
this.previousQuickviewHandler = (evt) => {
|
|
57
|
+
evt.stopImmediatePropagation();
|
|
58
|
+
this.quickview.previous();
|
|
59
|
+
};
|
|
60
|
+
new ValidatePropsController(this, () => ({ sandbox: this.sandbox }), AtomicInsightResultQuickviewAction_1.propsSchema);
|
|
61
|
+
}
|
|
62
|
+
initialize() {
|
|
63
|
+
const item = this.resultContext?.item;
|
|
64
|
+
if (!item) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
this.result = 'result' in item ? item.result : item;
|
|
68
|
+
this.buttonFocusTarget = new FocusTargetController(this, this.bindings);
|
|
69
|
+
this.quickview = buildQuickview(this.bindings.engine, {
|
|
70
|
+
options: { result: this.result },
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
connectedCallback() {
|
|
74
|
+
super.connectedCallback();
|
|
75
|
+
document.body.addEventListener('atomic/quickview/next', this.nextQuickviewHandler);
|
|
76
|
+
document.body.addEventListener('atomic/quickview/previous', this.previousQuickviewHandler);
|
|
77
|
+
}
|
|
78
|
+
disconnectedCallback() {
|
|
79
|
+
super.disconnectedCallback();
|
|
80
|
+
document.body.removeEventListener('atomic/quickview/next', this.nextQuickviewHandler);
|
|
81
|
+
document.body.removeEventListener('atomic/quickview/previous', this.previousQuickviewHandler);
|
|
82
|
+
}
|
|
83
|
+
addQuickviewModalIfNeeded() {
|
|
84
|
+
if (this.quickviewModalRef || !this.bindings?.interfaceElement) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const quickviewModal = this.bindings.interfaceElement.querySelector('atomic-quickview-modal');
|
|
88
|
+
if (quickviewModal) {
|
|
89
|
+
this.quickviewModalRef = quickviewModal;
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
this.quickviewModalRef = document.createElement('atomic-quickview-modal');
|
|
93
|
+
this.quickviewModalRef.setAttribute('sandbox', this.sandbox);
|
|
94
|
+
this.bindings.interfaceElement.appendChild(this.quickviewModalRef);
|
|
95
|
+
}
|
|
96
|
+
updateModalContent() {
|
|
97
|
+
if (this.quickviewModalRef && this.quickview.state.content) {
|
|
98
|
+
this.quickviewModalRef.content = this.quickview.state.content;
|
|
99
|
+
this.quickviewModalRef.result = this.result;
|
|
100
|
+
this.quickviewModalRef.total = this.quickviewState.totalResults;
|
|
101
|
+
this.quickviewModalRef.current = this.quickviewState.currentResult;
|
|
102
|
+
this.quickviewModalRef.modalCloseCallback = () => this.buttonFocusTarget.focus();
|
|
103
|
+
this.ariaLiveRegion.message = this.quickviewState.isLoading
|
|
104
|
+
? this.bindings.i18n.t('quickview-loading')
|
|
105
|
+
: this.bindings.i18n.t('quickview-loaded', {
|
|
106
|
+
first: this.quickviewState.currentResult,
|
|
107
|
+
last: this.quickviewState.totalResults,
|
|
108
|
+
title: this.result.title,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
onClick(event) {
|
|
113
|
+
event?.stopPropagation();
|
|
114
|
+
this.quickview.fetchResultContent();
|
|
115
|
+
}
|
|
116
|
+
get shouldRenderQuickview() {
|
|
117
|
+
return this.quickviewState?.resultHasPreview;
|
|
118
|
+
}
|
|
119
|
+
updated() {
|
|
120
|
+
this.addQuickviewModalIfNeeded();
|
|
121
|
+
if (this.quickviewState) {
|
|
122
|
+
this.updateModalContent();
|
|
123
|
+
}
|
|
124
|
+
if (this.buttonRef.value && this.buttonFocusTarget) {
|
|
125
|
+
this.buttonFocusTarget.setTarget(this.buttonRef.value);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
render() {
|
|
129
|
+
return when(this.shouldRenderQuickview, () => renderIconButton({
|
|
130
|
+
props: {
|
|
131
|
+
partPrefix: 'result-action',
|
|
132
|
+
style: 'outline-neutral',
|
|
133
|
+
buttonRef: this.buttonRef,
|
|
134
|
+
icon: QuickviewIcon,
|
|
135
|
+
title: this.bindings.i18n.t('quickview'),
|
|
136
|
+
onClick: (event) => this.onClick(event),
|
|
137
|
+
},
|
|
138
|
+
}));
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
AtomicInsightResultQuickviewAction.propsSchema = new Schema({
|
|
142
|
+
sandbox: new StringValue({
|
|
143
|
+
required: true,
|
|
144
|
+
regex: /allow-same-origin/,
|
|
145
|
+
}),
|
|
146
|
+
});
|
|
147
|
+
__decorate([
|
|
148
|
+
property({ type: String })
|
|
149
|
+
], AtomicInsightResultQuickviewAction.prototype, "sandbox", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
state()
|
|
152
|
+
], AtomicInsightResultQuickviewAction.prototype, "bindings", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
state()
|
|
155
|
+
], AtomicInsightResultQuickviewAction.prototype, "error", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
state()
|
|
158
|
+
], AtomicInsightResultQuickviewAction.prototype, "result", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
bindStateToController('quickview'),
|
|
161
|
+
state()
|
|
162
|
+
], AtomicInsightResultQuickviewAction.prototype, "quickviewState", void 0);
|
|
163
|
+
AtomicInsightResultQuickviewAction = AtomicInsightResultQuickviewAction_1 = __decorate([
|
|
164
|
+
customElement('atomic-insight-result-quickview-action'),
|
|
165
|
+
bindings()
|
|
166
|
+
], AtomicInsightResultQuickviewAction);
|
|
167
|
+
export { AtomicInsightResultQuickviewAction };
|
|
@@ -25,6 +25,7 @@ const SearchSlimIcon = "<svg width=\"17\" height=\"17\" viewBox=\"0 0 17 17\" fi
|
|
|
25
25
|
import "../../common/atomic-icon/atomic-icon";
|
|
26
26
|
import { bindingGuard } from "../../../decorators/binding-guard";
|
|
27
27
|
import styles from './atomic-insight-search-box.tw.css';
|
|
28
|
+
import '@coveo/atomic-legacy/atomic-suggestion-renderer';
|
|
28
29
|
/**
|
|
29
30
|
* The `atomic-insight-search-box` component allows users to enter and submit search queries within the Insight interface.
|
|
30
31
|
* It provides query suggestions as the user types.
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { buildSmartSnippet as buildInsightSmartSnippet, } from '@coveo/headless/insight';
|
|
8
|
+
import { html, LitElement, nothing } from 'lit';
|
|
9
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
10
|
+
import { getAttributesFromLinkSlotContent } from "../../common/item-link/attributes-slot";
|
|
11
|
+
import { renderSnippetFooter } from "../../common/smart-snippets/atomic-smart-snippet/snippet-footer";
|
|
12
|
+
import { renderSnippetQuestion } from "../../common/smart-snippets/atomic-smart-snippet/snippet-question";
|
|
13
|
+
import { renderSnippetWrapper } from "../../common/smart-snippets/atomic-smart-snippet/snippet-wrapper";
|
|
14
|
+
import { renderSmartSnippetFeedbackBanner } from "../../common/smart-snippets/smart-snippet-feedback-banner";
|
|
15
|
+
import { bindStateToController } from "../../../decorators/bind-state";
|
|
16
|
+
import { bindingGuard } from "../../../decorators/binding-guard";
|
|
17
|
+
import { bindings } from "../../../decorators/bindings";
|
|
18
|
+
import { errorGuard } from "../../../decorators/error-guard";
|
|
19
|
+
import { randomID } from "../../../utils/utils";
|
|
20
|
+
import "../../common/atomic-smart-snippet-collapse-wrapper/atomic-smart-snippet-collapse-wrapper";
|
|
21
|
+
import "../../common/atomic-smart-snippet-expandable-answer/atomic-smart-snippet-expandable-answer";
|
|
22
|
+
import "../../common/atomic-smart-snippet-source/atomic-smart-snippet-source";
|
|
23
|
+
import { when } from 'lit/directives/when.js';
|
|
24
|
+
import "../atomic-insight-smart-snippet-feedback-modal/atomic-insight-smart-snippet-feedback-modal";
|
|
25
|
+
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles";
|
|
26
|
+
import styles from './atomic-insight-smart-snippet.tw.css.js';
|
|
27
|
+
/**
|
|
28
|
+
* The `atomic-insight-smart-snippet` component displays a smart snippet for an Insight Panel query.
|
|
29
|
+
* Smart snippets are generated answers extracted from relevant documents.
|
|
30
|
+
*
|
|
31
|
+
* @part smart-snippet - The container for the smart snippet.
|
|
32
|
+
* @part body - The expandable answer body.
|
|
33
|
+
* @part feedback-banner - The feedback banner container.
|
|
34
|
+
* @part feedback-inquiry - The feedback inquiry text.
|
|
35
|
+
* @part feedback-buttons - The container for feedback buttons.
|
|
36
|
+
* @part feedback-like-button - The like button.
|
|
37
|
+
* @part feedback-dislike-button - The dislike button.
|
|
38
|
+
* @part feedback-thank-you-wrapper - The thank you message wrapper.
|
|
39
|
+
* @part feedback-thank-you - The thank you message.
|
|
40
|
+
* @part feedback-explain-why-button - The explain why button.
|
|
41
|
+
*
|
|
42
|
+
* @slot source-anchor-attributes - Slot for attributes to apply to the source anchor element.
|
|
43
|
+
*/
|
|
44
|
+
let AtomicInsightSmartSnippet = class AtomicInsightSmartSnippet extends LitElement {
|
|
45
|
+
constructor() {
|
|
46
|
+
super(...arguments);
|
|
47
|
+
this.feedbackSent = false;
|
|
48
|
+
this.feedbackSentHandler = () => {
|
|
49
|
+
this.feedbackSent = true;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* The [heading level](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements) to use for the question at the top of the snippet, from 1 to 5.
|
|
53
|
+
*/
|
|
54
|
+
this.headingLevel = 0;
|
|
55
|
+
/**
|
|
56
|
+
* The maximum height (in pixels) a snippet can have before the component truncates it and displays a "show more" button.
|
|
57
|
+
*/
|
|
58
|
+
this.maximumHeight = 250;
|
|
59
|
+
/**
|
|
60
|
+
* When the answer is partly hidden, how much of its height (in pixels) should be visible.
|
|
61
|
+
*/
|
|
62
|
+
this.collapsedHeight = 180;
|
|
63
|
+
}
|
|
64
|
+
initialize() {
|
|
65
|
+
this.smartSnippetId ||= randomID();
|
|
66
|
+
this.smartSnippet = buildInsightSmartSnippet(this.bindings.engine);
|
|
67
|
+
}
|
|
68
|
+
disconnectedCallback() {
|
|
69
|
+
super.disconnectedCallback();
|
|
70
|
+
if (this.modalRef) {
|
|
71
|
+
this.modalRef.removeEventListener('feedbackSent', this.feedbackSentHandler);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
willUpdate() {
|
|
75
|
+
if (!this.smartSnippetState) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
if (!(this.smartSnippetState.liked || this.smartSnippetState.disliked)) {
|
|
79
|
+
this.feedbackSent = false;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
loadModal() {
|
|
83
|
+
if (this.modalRef) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
const modalRef = document.createElement('atomic-insight-smart-snippet-feedback-modal');
|
|
87
|
+
modalRef.addEventListener('feedbackSent', this.feedbackSentHandler);
|
|
88
|
+
this.modalRef = modalRef;
|
|
89
|
+
this.renderRoot.parentElement?.insertAdjacentElement('beforebegin', modalRef);
|
|
90
|
+
}
|
|
91
|
+
renderSource() {
|
|
92
|
+
const source = this.smartSnippetState.source;
|
|
93
|
+
if (!source) {
|
|
94
|
+
return nothing;
|
|
95
|
+
}
|
|
96
|
+
return html `<atomic-smart-snippet-source
|
|
97
|
+
.anchorAttributes=${getAttributesFromLinkSlotContent(this, 'source-anchor-attributes')}
|
|
98
|
+
.onBeginDelayedSelectSource=${this.smartSnippet.beginDelayedSelectSource}
|
|
99
|
+
.onCancelPendingSelectSource=${this.smartSnippet.cancelPendingSelectSource}
|
|
100
|
+
.onSelectSource=${this.smartSnippet.selectSource}
|
|
101
|
+
.source=${source}
|
|
102
|
+
></atomic-smart-snippet-source>`;
|
|
103
|
+
}
|
|
104
|
+
renderFeedbackBanner() {
|
|
105
|
+
const explainWhyRef = (button) => {
|
|
106
|
+
if (this.modalRef && button) {
|
|
107
|
+
this.modalRef.source = button;
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
return renderSmartSnippetFeedbackBanner({
|
|
111
|
+
props: {
|
|
112
|
+
disliked: this.smartSnippetState.disliked,
|
|
113
|
+
explainWhyRef,
|
|
114
|
+
feedbackSent: this.feedbackSent,
|
|
115
|
+
id: this.smartSnippetId,
|
|
116
|
+
i18n: this.bindings.i18n,
|
|
117
|
+
liked: this.smartSnippetState.liked,
|
|
118
|
+
onDislike: () => {
|
|
119
|
+
this.loadModal();
|
|
120
|
+
this.smartSnippet.dislike();
|
|
121
|
+
},
|
|
122
|
+
onLike: () => this.smartSnippet.like(),
|
|
123
|
+
onPressExplainWhy: () => {
|
|
124
|
+
if (this.modalRef) {
|
|
125
|
+
this.modalRef.isOpen = true;
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
render() {
|
|
132
|
+
const shouldDisplay = this.smartSnippetState?.answerFound ?? false;
|
|
133
|
+
this.classList.toggle('atomic-hidden', !shouldDisplay);
|
|
134
|
+
return html `
|
|
135
|
+
${when(shouldDisplay, () => renderSnippetWrapper({
|
|
136
|
+
props: {
|
|
137
|
+
headingLevel: this.headingLevel,
|
|
138
|
+
i18n: this.bindings.i18n,
|
|
139
|
+
},
|
|
140
|
+
})(html `
|
|
141
|
+
<atomic-smart-snippet-collapse-wrapper>
|
|
142
|
+
${renderSnippetQuestion({
|
|
143
|
+
props: {
|
|
144
|
+
headingLevel: this.headingLevel,
|
|
145
|
+
question: this.smartSnippetState.question,
|
|
146
|
+
},
|
|
147
|
+
})}
|
|
148
|
+
<atomic-smart-snippet-expandable-answer
|
|
149
|
+
.collapsedHeight=${this.collapsedHeight}
|
|
150
|
+
.expanded=${this.smartSnippetState.expanded}
|
|
151
|
+
exportparts="answer,show-more-button,show-less-button,truncated-answer"
|
|
152
|
+
.htmlContent=${this.smartSnippetState.answer}
|
|
153
|
+
.maximumHeight=${this.maximumHeight}
|
|
154
|
+
@collapse=${() => this.smartSnippet.collapse()}
|
|
155
|
+
@expand=${() => this.smartSnippet.expand()}
|
|
156
|
+
part="body"
|
|
157
|
+
.snippetStyle=${this.snippetStyle}
|
|
158
|
+
></atomic-smart-snippet-expandable-answer>
|
|
159
|
+
${renderSnippetFooter({
|
|
160
|
+
props: {
|
|
161
|
+
i18n: this.bindings.i18n,
|
|
162
|
+
},
|
|
163
|
+
})(html ` ${this.renderSource()} ${this.renderFeedbackBanner()} `)}
|
|
164
|
+
</atomic-smart-snippet-collapse-wrapper>
|
|
165
|
+
`))}`;
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
AtomicInsightSmartSnippet.styles = styles;
|
|
169
|
+
__decorate([
|
|
170
|
+
state()
|
|
171
|
+
], AtomicInsightSmartSnippet.prototype, "bindings", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
state()
|
|
174
|
+
], AtomicInsightSmartSnippet.prototype, "error", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
bindStateToController('smartSnippet'),
|
|
177
|
+
state()
|
|
178
|
+
], AtomicInsightSmartSnippet.prototype, "smartSnippetState", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
state()
|
|
181
|
+
], AtomicInsightSmartSnippet.prototype, "feedbackSent", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
property({ type: Number, reflect: true, attribute: 'heading-level' })
|
|
184
|
+
], AtomicInsightSmartSnippet.prototype, "headingLevel", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
property({ type: Number, reflect: true, attribute: 'maximum-height' })
|
|
187
|
+
], AtomicInsightSmartSnippet.prototype, "maximumHeight", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
property({ type: Number, reflect: true, attribute: 'collapsed-height' })
|
|
190
|
+
], AtomicInsightSmartSnippet.prototype, "collapsedHeight", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
property({ type: String, reflect: true, attribute: 'snippet-style' })
|
|
193
|
+
], AtomicInsightSmartSnippet.prototype, "snippetStyle", void 0);
|
|
194
|
+
__decorate([
|
|
195
|
+
errorGuard(),
|
|
196
|
+
bindingGuard()
|
|
197
|
+
], AtomicInsightSmartSnippet.prototype, "render", null);
|
|
198
|
+
AtomicInsightSmartSnippet = __decorate([
|
|
199
|
+
customElement('atomic-insight-smart-snippet'),
|
|
200
|
+
bindings(),
|
|
201
|
+
withTailwindStyles
|
|
202
|
+
], AtomicInsightSmartSnippet);
|
|
203
|
+
export { AtomicInsightSmartSnippet };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
const styles = css`/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */[part=source-url]{color:var(--atomic-on-background);--font-size:var(--atomic-text-base);font-size:var(--font-size);--line-height:calc(var(--font-size)*var(--atomic-line-height-ratio));line-height:var(--line-height);&:focus-visible,&:hover{color:var(--atomic-primary);text-decoration:underline}&:focus{outline:none}&:visited{color:var(--atomic-visited)}}[part=source-title]{color:var(--atomic-on-background);--font-size:var(--atomic-text-xl);font-size:var(--font-size);--line-height:calc(var(--font-size)*var(--atomic-line-height-ratio));line-height:var(--line-height);margin-bottom:calc(var(--spacing, .25rem)*6);&:focus-visible,&:hover{color:var(--atomic-primary);text-decoration:underline}&:focus{outline:none}&:visited{color:var(--atomic-visited)}}footer:before{background-color:var(--atomic-neutral);content:" ";display:block;height:1px;margin-bottom:1.5rem}`;
|
|
3
|
+
export default styles;
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var AtomicInsightSmartSnippetSuggestions_1;
|
|
8
|
+
import { NumberValue, Schema } from '@coveo/bueno';
|
|
9
|
+
import { buildSmartSnippetQuestionsList } from '@coveo/headless/insight';
|
|
10
|
+
import { html, LitElement, nothing } from 'lit';
|
|
11
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
12
|
+
import { when } from 'lit/directives/when.js';
|
|
13
|
+
import { getAttributesFromLinkSlotContent } from "../../common/item-link/attributes-slot";
|
|
14
|
+
import { renderAnswerAndSourceWrapper } from "../../common/smart-snippets/atomic-smart-snippet-suggestions/answer-and-source-wrapper";
|
|
15
|
+
import { renderFooter } from "../../common/smart-snippets/atomic-smart-snippet-suggestions/footer";
|
|
16
|
+
import { getQuestionPart } from "../../common/smart-snippets/atomic-smart-snippet-suggestions/get-question-part";
|
|
17
|
+
import { renderQuestion } from "../../common/smart-snippets/atomic-smart-snippet-suggestions/question";
|
|
18
|
+
import { renderQuestionWrapper } from "../../common/smart-snippets/atomic-smart-snippet-suggestions/question-wrapper";
|
|
19
|
+
import { renderSuggestionsWrapper } from "../../common/smart-snippets/atomic-smart-snippet-suggestions/suggestions-wrapper";
|
|
20
|
+
import { ValidatePropsController } from "../../common/validate-props-controller/validate-props-controller";
|
|
21
|
+
import { bindStateToController } from "../../../decorators/bind-state";
|
|
22
|
+
import { bindingGuard } from "../../../decorators/binding-guard";
|
|
23
|
+
import { bindings } from "../../../decorators/bindings";
|
|
24
|
+
import { errorGuard } from "../../../decorators/error-guard";
|
|
25
|
+
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles";
|
|
26
|
+
const ArrowDown = "<svg width=\"11\" height=\"6\" viewBox=\"0 0 11 6\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M1.18998 0.52682L5.43262 4.76946L9.67526 0.526821\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n";
|
|
27
|
+
const ArrowRight = "<svg viewBox=\"0 0 7 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M1.09619 10.5962L5.69239 6L1.09619 1.40381\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n";
|
|
28
|
+
import { randomID } from "../../../utils/utils";
|
|
29
|
+
import "../../common/atomic-icon/atomic-icon";
|
|
30
|
+
import "../../common/atomic-smart-snippet-source/atomic-smart-snippet-source";
|
|
31
|
+
import "../../common/atomic-smart-snippet-answer/atomic-smart-snippet-answer";
|
|
32
|
+
import styles from './atomic-insight-smart-snippet-suggestions.tw.css';
|
|
33
|
+
/**
|
|
34
|
+
* The `atomic-insight-smart-snippet-suggestions` component displays an accordion of questions related to the query with their corresponding answers.
|
|
35
|
+
*
|
|
36
|
+
* You can style the snippets either with the `snippetStyle` prop, or by inserting a template element like this:
|
|
37
|
+
* ```html
|
|
38
|
+
* <atomic-insight-smart-snippet-suggestions>
|
|
39
|
+
* <template>
|
|
40
|
+
* <style>
|
|
41
|
+
* b {
|
|
42
|
+
* color: blue;
|
|
43
|
+
* }
|
|
44
|
+
* </style>
|
|
45
|
+
* </template>
|
|
46
|
+
* </atomic-insight-smart-snippet-suggestions>
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @slot source-anchor-attributes - Lets you pass [attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attributes) down to anchor elements, overriding other attributes.
|
|
50
|
+
* To be used exclusively in anchor elements, such as: `<a slot="source-anchor-attributes" target="_blank"></a>`.
|
|
51
|
+
*
|
|
52
|
+
* @part container - The wrapper with a border around the entire component.
|
|
53
|
+
* @part heading - The heading above the list of related questions.
|
|
54
|
+
* @part questions - The list of related questions.
|
|
55
|
+
* @part question-answer-expanded - An expanded related question.
|
|
56
|
+
* @part question-answer-collapsed - A collapsed related question.
|
|
57
|
+
* @part question-button-expanded - The button to collapse a related question.
|
|
58
|
+
* @part question-button-collapsed - The button to expand a related question.
|
|
59
|
+
* @part question-icon-expanded - The caret of an expanded related question.
|
|
60
|
+
* @part question-icon-collapsed - The caret of a collapsed related question.
|
|
61
|
+
* @part question-text-expanded - The title of an expanded related question.
|
|
62
|
+
* @part question-text-collapsed - The title of a collapsed related question.
|
|
63
|
+
* @part answer-and-source - The wrapper around the answer and source of a related question.
|
|
64
|
+
* @part answer - The container displaying the full document excerpt of a related question's answer.
|
|
65
|
+
* @part footer - The wrapper around the source of a related question's answer.
|
|
66
|
+
* @part source-url - The URL to the document a related question's answer is extracted from.
|
|
67
|
+
* @part source-title - The title of the document a related question's answer is extracted from.
|
|
68
|
+
*/
|
|
69
|
+
let AtomicInsightSmartSnippetSuggestions = AtomicInsightSmartSnippetSuggestions_1 = class AtomicInsightSmartSnippetSuggestions extends LitElement {
|
|
70
|
+
constructor() {
|
|
71
|
+
super();
|
|
72
|
+
/**
|
|
73
|
+
* The [heading level](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements) to use for the "People also ask" heading over the snippets, from 1 to 5.
|
|
74
|
+
*/
|
|
75
|
+
this.headingLevel = 0;
|
|
76
|
+
new ValidatePropsController(this, () => ({ headingLevel: this.headingLevel }), AtomicInsightSmartSnippetSuggestions_1.propsSchema, false);
|
|
77
|
+
}
|
|
78
|
+
initialize() {
|
|
79
|
+
this.accordionId = randomID('atomic-smart-snippet-suggestions-');
|
|
80
|
+
this.smartSnippetQuestionsList = buildSmartSnippetQuestionsList(this.bindings.engine);
|
|
81
|
+
}
|
|
82
|
+
render() {
|
|
83
|
+
const shouldDisplay = this.smartSnippetQuestionsListState.questions.length > 0;
|
|
84
|
+
return html `${when(shouldDisplay, () => renderSuggestionsWrapper({
|
|
85
|
+
props: {
|
|
86
|
+
headingLevel: this.headingLevel,
|
|
87
|
+
i18n: this.bindings.i18n,
|
|
88
|
+
},
|
|
89
|
+
})(html `
|
|
90
|
+
${this.smartSnippetQuestionsListState.questions.map((relatedQuestion, i) => this.renderRelatedQuestion(relatedQuestion, i))}
|
|
91
|
+
`), () => nothing)}`;
|
|
92
|
+
}
|
|
93
|
+
renderRelatedQuestion(relatedQuestion, index) {
|
|
94
|
+
return renderQuestionWrapper({
|
|
95
|
+
props: {
|
|
96
|
+
expanded: relatedQuestion.expanded,
|
|
97
|
+
key: relatedQuestion.questionAnswerId,
|
|
98
|
+
},
|
|
99
|
+
})(html `
|
|
100
|
+
${this.renderQuestionButton(relatedQuestion, index)}
|
|
101
|
+
${when(relatedQuestion.expanded, () => this.renderAnswer(relatedQuestion, index))}
|
|
102
|
+
`);
|
|
103
|
+
}
|
|
104
|
+
renderQuestionButton(relatedQuestion, index) {
|
|
105
|
+
return renderQuestion({
|
|
106
|
+
props: {
|
|
107
|
+
ariaControls: `${this.accordionId}-${index}`,
|
|
108
|
+
expanded: relatedQuestion.expanded,
|
|
109
|
+
headingLevel: this.headingLevel,
|
|
110
|
+
onClick: () => this.toggleQuestion(relatedQuestion),
|
|
111
|
+
question: relatedQuestion.question,
|
|
112
|
+
},
|
|
113
|
+
})(html `
|
|
114
|
+
<atomic-icon
|
|
115
|
+
.icon=${relatedQuestion.expanded ? ArrowDown : ArrowRight}
|
|
116
|
+
part=${getQuestionPart('icon', relatedQuestion.expanded)}
|
|
117
|
+
class="mr-3 w-2.5 stroke-[1.25]"
|
|
118
|
+
></atomic-icon>
|
|
119
|
+
`);
|
|
120
|
+
}
|
|
121
|
+
renderAnswer(relatedQuestion, index) {
|
|
122
|
+
return renderAnswerAndSourceWrapper({
|
|
123
|
+
props: {
|
|
124
|
+
id: `${this.accordionId}-${index}`,
|
|
125
|
+
},
|
|
126
|
+
})(html `
|
|
127
|
+
<atomic-smart-snippet-answer
|
|
128
|
+
exportparts="answer"
|
|
129
|
+
.htmlContent=${relatedQuestion.answer}
|
|
130
|
+
.innerStyle=${this.computedSnippetStyle}
|
|
131
|
+
@selectInlineLink=${(e) => this.smartSnippetQuestionsList.selectInlineLink(relatedQuestion.questionAnswerId, e.detail)}
|
|
132
|
+
@beginDelayedSelectInlineLink=${(e) => this.smartSnippetQuestionsList.beginDelayedSelectInlineLink(relatedQuestion.questionAnswerId, e.detail)}
|
|
133
|
+
@cancelPendingSelectInlineLink=${(e) => this.smartSnippetQuestionsList.cancelPendingSelectInlineLink(relatedQuestion.questionAnswerId, e.detail)}
|
|
134
|
+
></atomic-smart-snippet-answer>
|
|
135
|
+
${when(relatedQuestion.source, () => this.renderSource(relatedQuestion.questionAnswerId, relatedQuestion.source))}
|
|
136
|
+
`);
|
|
137
|
+
}
|
|
138
|
+
renderSource(questionAnswerId, source) {
|
|
139
|
+
return renderFooter({
|
|
140
|
+
props: {
|
|
141
|
+
i18n: this.bindings.i18n,
|
|
142
|
+
},
|
|
143
|
+
})(html `
|
|
144
|
+
<atomic-smart-snippet-source
|
|
145
|
+
.anchorAttributes=${getAttributesFromLinkSlotContent(this, 'source-anchor-attributes')}
|
|
146
|
+
@beginDelayedSelectSource=${() => this.smartSnippetQuestionsList.beginDelayedSelectSource(questionAnswerId)}
|
|
147
|
+
@cancelPendingSelectSource=${() => this.smartSnippetQuestionsList.cancelPendingSelectSource(questionAnswerId)}
|
|
148
|
+
@selectSource=${() => this.smartSnippetQuestionsList.selectSource(questionAnswerId)}
|
|
149
|
+
.source=${source}
|
|
150
|
+
></atomic-smart-snippet-source>
|
|
151
|
+
`);
|
|
152
|
+
}
|
|
153
|
+
get computedSnippetStyle() {
|
|
154
|
+
const styleTag = this.querySelector('template')?.content.querySelector('style');
|
|
155
|
+
if (!styleTag) {
|
|
156
|
+
return this.snippetStyle;
|
|
157
|
+
}
|
|
158
|
+
return styleTag.innerHTML;
|
|
159
|
+
}
|
|
160
|
+
toggleQuestion(relatedQuestion) {
|
|
161
|
+
if (relatedQuestion.expanded) {
|
|
162
|
+
this.smartSnippetQuestionsList.collapse(relatedQuestion.questionAnswerId);
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
this.smartSnippetQuestionsList.expand(relatedQuestion.questionAnswerId);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
AtomicInsightSmartSnippetSuggestions.propsSchema = new Schema({
|
|
170
|
+
headingLevel: new NumberValue({ min: 0, max: 5, required: false }),
|
|
171
|
+
});
|
|
172
|
+
AtomicInsightSmartSnippetSuggestions.styles = styles;
|
|
173
|
+
__decorate([
|
|
174
|
+
state()
|
|
175
|
+
], AtomicInsightSmartSnippetSuggestions.prototype, "bindings", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
state()
|
|
178
|
+
], AtomicInsightSmartSnippetSuggestions.prototype, "error", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
bindStateToController('smartSnippetQuestionsList'),
|
|
181
|
+
state()
|
|
182
|
+
], AtomicInsightSmartSnippetSuggestions.prototype, "smartSnippetQuestionsListState", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
property({ reflect: true, type: Number, attribute: 'heading-level' })
|
|
185
|
+
], AtomicInsightSmartSnippetSuggestions.prototype, "headingLevel", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
property({ type: String, attribute: 'snippet-style' })
|
|
188
|
+
], AtomicInsightSmartSnippetSuggestions.prototype, "snippetStyle", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
errorGuard(),
|
|
191
|
+
bindingGuard()
|
|
192
|
+
], AtomicInsightSmartSnippetSuggestions.prototype, "render", null);
|
|
193
|
+
AtomicInsightSmartSnippetSuggestions = AtomicInsightSmartSnippetSuggestions_1 = __decorate([
|
|
194
|
+
customElement('atomic-insight-smart-snippet-suggestions'),
|
|
195
|
+
bindings(),
|
|
196
|
+
withTailwindStyles
|
|
197
|
+
], AtomicInsightSmartSnippetSuggestions);
|
|
198
|
+
export { AtomicInsightSmartSnippetSuggestions };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
const styles = css`/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */:host{display:block}:host [part=footer]:before{background-color:var(--atomic-neutral);content:" ";display:block;height:1px;margin-bottom:1.5rem}[part=answer-and-source]{margin-top:-.5rem}[part=source-title],[part=source-url]{color:var(--atomic-on-background);display:block;&:focus-visible,&:hover{color:var(--atomic-primary);text-decoration:underline}&:focus{outline:none}&:visited{color:var(--atomic-visited)}}[part=source-url]{--font-size:var(--atomic-text-base);--line-height:calc(var(--font-size)*var(--atomic-line-height-ratio))}[part=source-title],[part=source-url]{font-size:var(--font-size);line-height:var(--line-height)}[part=source-title]{--font-size:var(--atomic-text-xl);--line-height:calc(var(--font-size)*var(--atomic-line-height-ratio))}`;
|
|
3
|
+
export default styles;
|