@coveo/atomic 3.33.8-pre.351575b812 → 3.33.8-pre.3524c75f47
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/dist/atomic/_atomic.esm.js +1 -1
- package/dist/atomic/components/_index.js +2 -1
- package/dist/atomic/components/analytics-config.js +1 -1
- package/dist/atomic/components/atomic-category-facet.js +1 -1
- package/dist/atomic/components/atomic-facet.js +1 -1
- package/dist/atomic/components/atomic-format-currency.js +1 -1
- package/dist/atomic/components/atomic-format-number.js +1 -1
- package/dist/atomic/components/atomic-format-unit.js +1 -1
- package/dist/atomic/components/atomic-insight-search-box.js +3 -4
- package/dist/atomic/components/atomic-insight-search-box.js.map +1 -1
- package/dist/atomic/components/atomic-numeric-facet.js +1 -1
- package/dist/atomic/components/atomic-quickview-modal2.js +1 -1
- package/dist/atomic/components/atomic-quickview.js +1 -1
- package/dist/atomic/components/atomic-result-children.js +1 -1
- package/dist/atomic/components/atomic-result-fields-list.js +1 -1
- package/dist/atomic/components/atomic-result-link.js +1 -1
- package/dist/atomic/components/atomic-result-list.js +1 -1
- package/dist/atomic/components/atomic-search-box-instant-results.js +2 -2
- package/dist/atomic/components/atomic-search-box-instant-results.js.map +1 -1
- package/dist/atomic/components/atomic-search-box-query-suggestions2.js +2 -2
- package/dist/atomic/components/atomic-search-box-query-suggestions2.js.map +1 -1
- package/dist/atomic/components/atomic-search-box-recent-queries2.js +2 -2
- package/dist/atomic/components/atomic-search-box-recent-queries2.js.map +1 -1
- package/dist/atomic/components/atomic-search-box.js +16 -6
- package/dist/atomic/components/atomic-search-box.js.map +1 -1
- package/dist/atomic/components/atomic-smart-snippet-feedback-modal2.js +2 -2
- package/dist/atomic/components/atomic-sort-dropdown.js +2 -2
- package/dist/atomic/components/atomic-sort-expression.js +1 -1
- package/dist/atomic/components/atomic-suggestion-renderer2.js +1 -1
- package/dist/atomic/components/atomic-suggestion-renderer2.js.map +1 -1
- package/dist/atomic/components/atomic-tab-manager.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.js +18 -11
- package/dist/atomic/components/components/commerce/atomic-commerce-category-facet/atomic-commerce-category-facet.js +4 -4
- package/dist/atomic/components/components/commerce/atomic-commerce-did-you-mean/atomic-commerce-did-you-mean.js +2 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-facet/atomic-commerce-facet.js +6 -6
- package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +51 -14
- package/dist/atomic/components/components/commerce/atomic-commerce-layout/atomic-commerce-layout.js +19 -10
- package/dist/atomic/components/components/commerce/atomic-commerce-load-more-products/atomic-commerce-load-more-products.js +3 -3
- package/dist/atomic/components/components/commerce/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-pager/atomic-commerce-pager.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.js +2 -2
- package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +25 -10
- package/dist/atomic/components/components/commerce/atomic-commerce-refine-modal/atomic-commerce-refine-modal.js +2 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +17 -10
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.js +9 -6
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.js +3 -3
- package/dist/atomic/components/components/commerce/atomic-product/atomic-product.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-section-children/atomic-product-section-children.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-template/atomic-product-template.js +1 -1
- package/dist/atomic/components/components/common/atomic-modal/atomic-modal.js +2 -0
- package/dist/atomic/components/components/common/layout/layout-styles-controller.js +40 -0
- package/dist/atomic/components/components/common/layout/mobile-breakpoint-controller.js +26 -0
- package/dist/atomic/components/components/common/query-correction/trigger-correction.js +1 -1
- package/dist/atomic/components/components/common/refine-modal/modal.js +1 -1
- package/dist/atomic/components/components/common/suggestions/instant-item.js +6 -6
- package/dist/atomic/components/components/common/suggestions/suggestion-manager.js +1 -1
- package/dist/atomic/components/components/common/suggestions/{suggestions-common.js → suggestions-events.js} +16 -18
- package/dist/atomic/components/components/common/suggestions/suggestions-types.js +1 -0
- package/dist/atomic/components/components/common/suggestions/suggestions-utils.js +18 -0
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/index.js.map +1 -1
- package/dist/atomic/components/stencil-query-suggestions.js.map +1 -1
- package/dist/atomic/components/stencil-suggestion-manager.js +20 -2
- package/dist/atomic/components/stencil-suggestion-manager.js.map +1 -1
- package/dist/atomic/components/{suggestions-common.js → suggestions-events.js} +18 -20
- package/dist/atomic/components/suggestions-events.js.map +1 -0
- 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-75e00690.entry.js → p-089be992.entry.js} +2 -2
- package/dist/atomic/{p-4b3d253b.entry.js → p-09a3a067.entry.js} +2 -2
- package/dist/atomic/p-0a051b8d.js +2 -0
- package/dist/atomic/p-0a051b8d.js.map +1 -0
- package/dist/atomic/{p-ff015d24.entry.js → p-0d333ba3.entry.js} +2 -2
- package/dist/atomic/p-16f4ce98.js +2 -0
- package/dist/atomic/p-16f4ce98.js.map +1 -0
- package/dist/atomic/{p-7b899b57.entry.js → p-1d1f54a5.entry.js} +2 -2
- package/dist/atomic/{p-8867af82.entry.js → p-26a51a77.entry.js} +2 -2
- package/dist/atomic/p-26a51a77.entry.js.map +1 -0
- package/dist/atomic/{p-7a625c7e.entry.js → p-2ce8220a.entry.js} +2 -2
- package/dist/atomic/{p-877d35b1.entry.js → p-3b023e83.entry.js} +2 -2
- package/dist/atomic/{p-3cfed5f4.entry.js → p-3e433353.entry.js} +2 -2
- package/dist/atomic/{p-52ba404c.entry.js → p-49c38b27.entry.js} +2 -2
- package/dist/atomic/p-4b7a19db.js +2 -0
- package/dist/atomic/p-4b7a19db.js.map +1 -0
- package/dist/atomic/{p-c1bf43cf.entry.js → p-4c2f230f.entry.js} +2 -2
- package/dist/atomic/p-4c2f230f.entry.js.map +1 -0
- package/dist/atomic/{p-d00a12e9.entry.js → p-5f1fa581.entry.js} +2 -2
- package/dist/atomic/p-744da781.entry.js +2 -0
- package/dist/atomic/p-744da781.entry.js.map +1 -0
- package/dist/atomic/{p-9db3fb32.entry.js → p-77205925.entry.js} +2 -2
- package/dist/atomic/{p-a760d9f9.entry.js → p-7e2109e9.entry.js} +2 -2
- package/dist/atomic/{p-b28011e6.entry.js → p-89085429.entry.js} +2 -2
- package/dist/atomic/{p-aa2a81fd.entry.js → p-89ab44de.entry.js} +2 -2
- package/dist/atomic/{p-330e6e7c.entry.js → p-9c9b1965.entry.js} +2 -2
- package/dist/atomic/{p-78b70622.entry.js → p-a8882a2a.entry.js} +2 -2
- package/dist/atomic/p-af93b44c.js.map +1 -1
- package/dist/atomic/{p-f22bcb8c.entry.js → p-b6963bae.entry.js} +2 -2
- package/dist/atomic/{p-3c8d109e.entry.js → p-b7063a0d.entry.js} +2 -2
- package/dist/atomic/{p-36e71b99.entry.js → p-d0f47b33.entry.js} +2 -2
- package/dist/atomic/p-d0f47b33.entry.js.map +1 -0
- package/dist/atomic/{p-560738a0.js → p-df723535.js} +2 -2
- package/dist/atomic/{p-7b0b9e9b.entry.js → p-f289269f.entry.js} +2 -2
- package/dist/atomic/{p-aa4224ea.entry.js → p-fbfe913d.entry.js} +2 -2
- package/dist/atomic/p-fbfe913d.entry.js.map +1 -0
- package/dist/atomic/{p-c49cfa0c.entry.js → p-fda26113.entry.js} +2 -2
- package/dist/cjs/_index.cjs.js +5 -2
- package/dist/cjs/{analytics-config-ba1d1f13.js → analytics-config-7817986c.js} +2 -2
- package/dist/cjs/{analytics-config-ba1d1f13.js.map → analytics-config-7817986c.js.map} +1 -1
- package/dist/cjs/atomic-category-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-format-currency.cjs.entry.js +1 -1
- package/dist/cjs/atomic-format-number.cjs.entry.js +1 -1
- package/dist/cjs/atomic-format-unit.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-search-box.cjs.entry.js +5 -5
- package/dist/cjs/atomic-insight-search-box.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-numeric-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-quickview-modal.cjs.entry.js +1 -1
- package/dist/cjs/atomic-quickview.cjs.entry.js +1 -1
- package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-children.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-fields-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-link.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-search-box-instant-results.cjs.entry.js +3 -3
- package/dist/cjs/atomic-search-box-instant-results.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js +5 -5
- package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-search-box.cjs.entry.js +18 -7
- package/dist/cjs/atomic-search-box.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-search-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-smart-snippet-feedback-modal.cjs.entry.js +2 -2
- package/dist/cjs/atomic-sort-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/atomic-sort-expression.cjs.entry.js +1 -1
- package/dist/cjs/atomic-suggestion-renderer.cjs.entry.js +1 -1
- package/dist/cjs/atomic-suggestion-renderer.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-tab-manager.cjs.entry.js +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/stencil-query-suggestions-03268ecc.js.map +1 -1
- package/dist/cjs/{stencil-suggestion-manager-c0878ef2.js → stencil-suggestion-manager-2cba6d69.js} +4 -4
- package/dist/cjs/{stencil-suggestion-manager-c0878ef2.js.map → stencil-suggestion-manager-2cba6d69.js.map} +1 -1
- package/dist/cjs/{suggestions-common-5097a362.js → suggestions-events-63dd0640.js} +17 -21
- package/dist/cjs/suggestions-events-63dd0640.js.map +1 -0
- package/dist/cjs/suggestions-utils-61000808.js +25 -0
- package/dist/cjs/suggestions-utils-61000808.js.map +1 -0
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/_index.js +2 -1
- package/dist/esm/{analytics-config-ee936385.js → analytics-config-885c56e7.js} +2 -2
- package/dist/esm/{analytics-config-ee936385.js.map → analytics-config-885c56e7.js.map} +1 -1
- package/dist/esm/atomic-category-facet.entry.js +1 -1
- package/dist/esm/atomic-facet.entry.js +1 -1
- package/dist/esm/atomic-format-currency.entry.js +1 -1
- package/dist/esm/atomic-format-number.entry.js +1 -1
- package/dist/esm/atomic-format-unit.entry.js +1 -1
- package/dist/esm/atomic-insight-interface.entry.js +1 -1
- package/dist/esm/atomic-insight-search-box.entry.js +4 -4
- package/dist/esm/atomic-insight-search-box.entry.js.map +1 -1
- package/dist/esm/atomic-numeric-facet.entry.js +1 -1
- package/dist/esm/atomic-quickview-modal.entry.js +1 -1
- package/dist/esm/atomic-quickview.entry.js +1 -1
- package/dist/esm/atomic-recs-interface.entry.js +1 -1
- package/dist/esm/atomic-result-children.entry.js +1 -1
- package/dist/esm/atomic-result-fields-list.entry.js +1 -1
- package/dist/esm/atomic-result-link.entry.js +1 -1
- package/dist/esm/atomic-result-list.entry.js +1 -1
- package/dist/esm/atomic-search-box-instant-results.entry.js +2 -2
- package/dist/esm/atomic-search-box-instant-results.entry.js.map +1 -1
- package/dist/esm/atomic-search-box-query-suggestions_2.entry.js +3 -3
- package/dist/esm/atomic-search-box-query-suggestions_2.entry.js.map +1 -1
- package/dist/esm/atomic-search-box.entry.js +17 -6
- package/dist/esm/atomic-search-box.entry.js.map +1 -1
- package/dist/esm/atomic-search-interface.entry.js +1 -1
- package/dist/esm/atomic-smart-snippet-feedback-modal.entry.js +2 -2
- package/dist/esm/atomic-sort-dropdown.entry.js +2 -2
- package/dist/esm/atomic-sort-expression.entry.js +1 -1
- package/dist/esm/atomic-suggestion-renderer.entry.js +1 -1
- package/dist/esm/atomic-suggestion-renderer.entry.js.map +1 -1
- package/dist/esm/atomic-tab-manager.entry.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/stencil-query-suggestions-5d6a46d7.js.map +1 -1
- package/dist/esm/{stencil-suggestion-manager-486094dd.js → stencil-suggestion-manager-376f83e8.js} +2 -2
- package/dist/esm/{stencil-suggestion-manager-486094dd.js.map → stencil-suggestion-manager-376f83e8.js.map} +1 -1
- package/dist/esm/{suggestions-common-2b20db26.js → suggestions-events-b7a6f007.js} +18 -20
- package/dist/esm/suggestions-events-b7a6f007.js.map +1 -0
- package/dist/esm/suggestions-utils-591559a0.js +22 -0
- package/dist/esm/suggestions-utils-591559a0.js.map +1 -0
- package/dist/esm/version.js +2 -2
- package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +2 -1
- package/dist/types/components/commerce/atomic-commerce-category-facet/atomic-commerce-category-facet.d.ts +4 -4
- package/dist/types/components/commerce/atomic-commerce-did-you-mean/atomic-commerce-did-you-mean.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-facet/atomic-commerce-facet.d.ts +6 -6
- package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +29 -2
- package/dist/types/components/commerce/atomic-commerce-layout/atomic-commerce-layout.d.ts +3 -3
- package/dist/types/components/commerce/atomic-commerce-load-more-products/atomic-commerce-load-more-products.d.ts +3 -3
- package/dist/types/components/commerce/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-pager/atomic-commerce-pager.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +1 -0
- package/dist/types/components/commerce/atomic-commerce-refine-modal/atomic-commerce-refine-modal.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.d.ts +5 -4
- package/dist/types/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.d.ts +3 -3
- package/dist/types/components/commerce/atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.d.ts +3 -3
- package/dist/types/components/commerce/atomic-product/atomic-product.d.ts +1 -1
- package/dist/types/components/commerce/atomic-product-section-children/atomic-product-section-children.d.ts +1 -1
- package/dist/types/components/commerce/atomic-product-template/atomic-product-template.d.ts +7 -7
- package/dist/types/components/common/atomic-suggestion-renderer/atomic-suggestion-renderer.d.ts +1 -1
- package/dist/types/components/common/layout/layout-styles-controller.d.ts +22 -0
- package/dist/types/components/common/layout/mobile-breakpoint-controller.d.ts +18 -0
- package/dist/types/components/common/query-correction/trigger-correction.d.ts +2 -0
- package/dist/types/components/common/refine-modal/modal.d.ts +2 -0
- package/dist/types/components/common/suggestions/instant-item.d.ts +7 -4
- package/dist/types/components/common/suggestions/query-suggestions.d.ts +1 -1
- package/dist/types/components/common/suggestions/recent-queries.d.ts +1 -1
- package/dist/types/components/common/suggestions/stencil-instant-item.d.ts +1 -1
- package/dist/types/components/common/suggestions/stencil-query-suggestions.d.ts +1 -1
- package/dist/types/components/common/suggestions/stencil-recent-queries.d.ts +1 -1
- package/dist/types/components/common/suggestions/stencil-suggestion-manager.d.ts +1 -1
- package/dist/types/components/common/suggestions/suggestion-manager.d.ts +1 -1
- package/dist/types/components/common/suggestions/suggestions-events.d.ts +14 -0
- package/dist/types/components/common/suggestions/{suggestions-common.d.ts → suggestions-types.d.ts} +6 -16
- package/dist/types/components/common/suggestions/suggestions-utils.d.ts +15 -0
- package/dist/types/components/search/atomic-search-box/atomic-search-box.d.ts +2 -1
- package/dist/types/components/search/search-box-suggestions/atomic-search-box-instant-results/atomic-search-box-instant-results.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/dist/types/decorators/types.d.ts +1 -1
- package/dist/types/index.d.ts +3 -1
- package/docs/atomic-docs.json +3 -3
- package/package.json +3 -3
- package/dist/atomic/components/suggestions-common.js.map +0 -1
- package/dist/atomic/p-29fd6768.js +0 -2
- package/dist/atomic/p-29fd6768.js.map +0 -1
- package/dist/atomic/p-36e71b99.entry.js.map +0 -1
- package/dist/atomic/p-3d847e45.entry.js +0 -2
- package/dist/atomic/p-3d847e45.entry.js.map +0 -1
- package/dist/atomic/p-7601c3de.js +0 -2
- package/dist/atomic/p-7601c3de.js.map +0 -1
- package/dist/atomic/p-8867af82.entry.js.map +0 -1
- package/dist/atomic/p-aa4224ea.entry.js.map +0 -1
- package/dist/atomic/p-c1bf43cf.entry.js.map +0 -1
- package/dist/cjs/suggestions-common-5097a362.js.map +0 -1
- package/dist/esm/suggestions-common-2b20db26.js.map +0 -1
- /package/dist/atomic/{p-75e00690.entry.js.map → p-089be992.entry.js.map} +0 -0
- /package/dist/atomic/{p-4b3d253b.entry.js.map → p-09a3a067.entry.js.map} +0 -0
- /package/dist/atomic/{p-ff015d24.entry.js.map → p-0d333ba3.entry.js.map} +0 -0
- /package/dist/atomic/{p-7b899b57.entry.js.map → p-1d1f54a5.entry.js.map} +0 -0
- /package/dist/atomic/{p-7a625c7e.entry.js.map → p-2ce8220a.entry.js.map} +0 -0
- /package/dist/atomic/{p-877d35b1.entry.js.map → p-3b023e83.entry.js.map} +0 -0
- /package/dist/atomic/{p-3cfed5f4.entry.js.map → p-3e433353.entry.js.map} +0 -0
- /package/dist/atomic/{p-52ba404c.entry.js.map → p-49c38b27.entry.js.map} +0 -0
- /package/dist/atomic/{p-d00a12e9.entry.js.map → p-5f1fa581.entry.js.map} +0 -0
- /package/dist/atomic/{p-9db3fb32.entry.js.map → p-77205925.entry.js.map} +0 -0
- /package/dist/atomic/{p-a760d9f9.entry.js.map → p-7e2109e9.entry.js.map} +0 -0
- /package/dist/atomic/{p-b28011e6.entry.js.map → p-89085429.entry.js.map} +0 -0
- /package/dist/atomic/{p-aa2a81fd.entry.js.map → p-89ab44de.entry.js.map} +0 -0
- /package/dist/atomic/{p-330e6e7c.entry.js.map → p-9c9b1965.entry.js.map} +0 -0
- /package/dist/atomic/{p-78b70622.entry.js.map → p-a8882a2a.entry.js.map} +0 -0
- /package/dist/atomic/{p-f22bcb8c.entry.js.map → p-b6963bae.entry.js.map} +0 -0
- /package/dist/atomic/{p-3c8d109e.entry.js.map → p-b7063a0d.entry.js.map} +0 -0
- /package/dist/atomic/{p-560738a0.js.map → p-df723535.js.map} +0 -0
- /package/dist/atomic/{p-7b0b9e9b.entry.js.map → p-f289269f.entry.js.map} +0 -0
- /package/dist/atomic/{p-c49cfa0c.entry.js.map → p-fda26113.entry.js.map} +0 -0
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
import { c as closest } from './dom-utils-f6086cd3.js';
|
|
2
2
|
import { b as buildCustomEvent } from './event-utils-8de63ec3.js';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Dispatches an event which retrieves the `SearchBoxSuggestionsBindings` on a configured parent search box.
|
|
6
|
+
*
|
|
7
|
+
* @param event Event sent from the registered query suggestions to the parent search box
|
|
8
|
+
* @param element Element on which to dispatch the event, which must be the child of a configured search box
|
|
9
|
+
* @param allowedSearchBoxElements Optional array of allowed search box element selectors
|
|
10
|
+
*
|
|
11
|
+
* @throws Error if the element is not a child of an allowed search box element
|
|
12
|
+
*/
|
|
13
|
+
const dispatchSearchBoxSuggestionsEvent = (event, element, allowedSearchBoxElements = searchBoxElements) => {
|
|
14
|
+
const interfaceElement = closest(element, searchBoxElements.join(', '));
|
|
15
|
+
if (!interfaceElement) {
|
|
16
|
+
throw new Error(`The "${element.nodeName.toLowerCase()}" component was not handled, as it is not a child of the following elements: ${allowedSearchBoxElements.join(', ')}`);
|
|
17
|
+
}
|
|
18
|
+
void dispatchSearchBoxSuggestionsEventEventually(interfaceElement, element, event);
|
|
19
|
+
};
|
|
4
20
|
const searchBoxElements = [
|
|
5
21
|
'atomic-search-box',
|
|
6
22
|
'atomic-insight-search-box',
|
|
@@ -18,25 +34,7 @@ const dispatchSearchBoxSuggestionsEventEventually = async (interfaceElement, ele
|
|
|
18
34
|
}
|
|
19
35
|
element.dispatchEvent(buildCustomEvent('atomic/searchBoxSuggestion/register', event));
|
|
20
36
|
};
|
|
21
|
-
/**
|
|
22
|
-
* Dispatches an event which retrieves the `SearchBoxSuggestionsBindings` on a configured parent search box.
|
|
23
|
-
* @param event Event sent from the registered query suggestions to the parent search box.
|
|
24
|
-
* @param element Element on which to dispatch the event, which must be the child of a configured search box.
|
|
25
|
-
*/
|
|
26
|
-
const dispatchSearchBoxSuggestionsEvent = (event, element, allowedSearchBoxElements = searchBoxElements) => {
|
|
27
|
-
const interfaceElement = closest(element, searchBoxElements.join(', '));
|
|
28
|
-
if (!interfaceElement) {
|
|
29
|
-
throw new Error(`The "${element.nodeName.toLowerCase()}" component was not handled, as it is not a child of the following elements: ${allowedSearchBoxElements.join(', ')}`);
|
|
30
|
-
}
|
|
31
|
-
void dispatchSearchBoxSuggestionsEventEventually(interfaceElement, element, event);
|
|
32
|
-
};
|
|
33
|
-
function elementHasNoQuery(el) {
|
|
34
|
-
return !el.query || el.query.trim() === '';
|
|
35
|
-
}
|
|
36
|
-
function elementHasQuery(el) {
|
|
37
|
-
return !!el.query && el.query.trim() !== '';
|
|
38
|
-
}
|
|
39
37
|
|
|
40
|
-
export {
|
|
38
|
+
export { dispatchSearchBoxSuggestionsEvent as d };
|
|
41
39
|
|
|
42
|
-
//# sourceMappingURL=suggestions-
|
|
40
|
+
//# sourceMappingURL=suggestions-events-b7a6f007.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"suggestions-events-b7a6f007.js","mappings":";;;AAOA;;;;;;;;;MASa,iCAAiC,GAAG,CAI/C,KAA+D,EAC/D,OAAoB,EACpB,2BAA0E,iBAAiB;IAE3F,MAAM,gBAAgB,GAAG,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACxE,IAAI,CAAC,gBAAgB,EAAE;QACrB,MAAM,IAAI,KAAK,CACb,QAAQ,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,gFAAgF,wBAAwB,CAAC,IAAI,CACjJ,IAAI,CACL,EAAE,CACJ,CAAC;KACH;IACD,KAAK,2CAA2C,CAC9C,gBAAgB,EAChB,OAAO,EACP,KAAK,CACN,CAAC;AACJ,EAAE;AAEF,MAAM,iBAAiB,GAAG;IACxB,mBAAmB;IACnB,2BAA2B;IAC3B,4BAA4B;CACpB,CAAC;AAEX,MAAM,mBAAmB,GAAG,CAAC,SAAkB,KAC7C,gBAAgB,IAAK,SAAwB;IAC5C,SAAwB,CAAC,cAAc,YAAY,OAAO,CAAC;AAE9D,MAAM,2CAA2C,GAAG,OAIlD,gBAAyB,EACzB,OAAoB,EACpB,KAA+D;IAE/D,MAAM,cAAc,CAAC,WAAW,CAAC,gBAAgB,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC;IAC1E,IAAI,mBAAmB,CAAC,gBAAgB,CAAC,EAAE;QACzC,MAAM,gBAAgB,CAAC,cAAc,CAAC;KACvC;SAAM,IAAI,kBAAkB,IAAI,gBAAgB,EAAE;QACjD,MAAO,gBAAuC,CAAC,gBAAgB,EAAE,CAAC;KACnE;IACD,OAAO,CAAC,aAAa,CACnB,gBAAgB,CAAC,qCAAqC,EAAE,KAAK,CAAC,CAC/D,CAAC;AACJ,CAAC;;;;","names":[],"sources":["src/components/common/suggestions/suggestions-events.ts"],"sourcesContent":["import type {HTMLStencilElement} from '@stencil/core/internal';\nimport type {LitElement} from 'lit';\nimport {closest} from '../../../utils/dom-utils';\nimport {buildCustomEvent} from '../../../utils/event-utils';\nimport type {AnyBindings} from '../interface/bindings';\nimport type {SearchBoxSuggestionsEvent} from './suggestions-types';\n\n/**\n * Dispatches an event which retrieves the `SearchBoxSuggestionsBindings` on a configured parent search box.\n *\n * @param event Event sent from the registered query suggestions to the parent search box\n * @param element Element on which to dispatch the event, which must be the child of a configured search box\n * @param allowedSearchBoxElements Optional array of allowed search box element selectors\n *\n * @throws Error if the element is not a child of an allowed search box element\n */\nexport const dispatchSearchBoxSuggestionsEvent = <\n SearchBoxController,\n Bindings = AnyBindings,\n>(\n event: SearchBoxSuggestionsEvent<SearchBoxController, Bindings>,\n element: HTMLElement,\n allowedSearchBoxElements: readonly (typeof searchBoxElements)[number][] = searchBoxElements\n) => {\n const interfaceElement = closest(element, searchBoxElements.join(', '));\n if (!interfaceElement) {\n throw new Error(\n `The \"${element.nodeName.toLowerCase()}\" component was not handled, as it is not a child of the following elements: ${allowedSearchBoxElements.join(\n ', '\n )}`\n );\n }\n void dispatchSearchBoxSuggestionsEventEventually(\n interfaceElement,\n element,\n event\n );\n};\n\nconst searchBoxElements = [\n 'atomic-search-box',\n 'atomic-insight-search-box',\n 'atomic-commerce-search-box',\n] as const;\n\nconst isLitElementLoosely = (candidate: unknown): candidate is LitElement =>\n 'updateComplete' in (candidate as LitElement) &&\n (candidate as LitElement).updateComplete instanceof Promise;\n\nconst dispatchSearchBoxSuggestionsEventEventually = async <\n SearchBoxController,\n Bindings = AnyBindings,\n>(\n interfaceElement: Element,\n element: HTMLElement,\n event: SearchBoxSuggestionsEvent<SearchBoxController, Bindings>\n) => {\n await customElements.whenDefined(interfaceElement.nodeName.toLowerCase());\n if (isLitElementLoosely(interfaceElement)) {\n await interfaceElement.updateComplete;\n } else if ('componentOnReady' in interfaceElement) {\n await (interfaceElement as HTMLStencilElement).componentOnReady();\n }\n element.dispatchEvent(\n buildCustomEvent('atomic/searchBoxSuggestion/register', event)\n );\n};\n"],"version":3}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if a search box suggestion element has no query.
|
|
3
|
+
*
|
|
4
|
+
* @param el - The search box suggestion element to check
|
|
5
|
+
* @returns True if the element has no query or the query is whitespace-only
|
|
6
|
+
*/
|
|
7
|
+
function elementHasNoQuery(el) {
|
|
8
|
+
return !el.query || el.query.trim() === '';
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Checks if a search box suggestion element has a query.
|
|
12
|
+
*
|
|
13
|
+
* @param el - The search box suggestion element to check
|
|
14
|
+
* @returns True if the element has a non-empty, non-whitespace query
|
|
15
|
+
*/
|
|
16
|
+
function elementHasQuery(el) {
|
|
17
|
+
return !!el.query && el.query.trim() !== '';
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { elementHasQuery as a, elementHasNoQuery as e };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=suggestions-utils-591559a0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"suggestions-utils-591559a0.js","mappings":"AAEA;;;;;;SAMgB,iBAAiB,CAAC,EAA8B;IAC9D,OAAO,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;AAC7C,CAAC;AAED;;;;;;SAMgB,eAAe,CAAC,EAA8B;IAC5D,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;AAC9C;;;;","names":[],"sources":["src/components/common/suggestions/suggestions-utils.ts"],"sourcesContent":["import type {SearchBoxSuggestionElement} from './suggestions-types';\n\n/**\n * Checks if a search box suggestion element has no query.\n *\n * @param el - The search box suggestion element to check\n * @returns True if the element has no query or the query is whitespace-only\n */\nexport function elementHasNoQuery(el: SearchBoxSuggestionElement): boolean {\n return !el.query || el.query.trim() === '';\n}\n\n/**\n * Checks if a search box suggestion element has a query.\n *\n * @param el - The search box suggestion element to check\n * @returns True if the element has a non-empty, non-whitespace query\n */\nexport function elementHasQuery(el: SearchBoxSuggestionElement): boolean {\n return !!el.query && el.query.trim() !== '';\n}\n"],"version":3}
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const headlessVersion = '3.31.1-pre.
|
|
2
|
-
export const atomicVersion = '3.33.8-pre.
|
|
1
|
+
export const headlessVersion = '3.31.1-pre.3524c75f47';
|
|
2
|
+
export const atomicVersion = '3.33.8-pre.3524c75f47';
|
package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts
CHANGED
|
@@ -52,7 +52,8 @@ export declare class AtomicCommerceBreadbox extends LitElement implements Initia
|
|
|
52
52
|
*/
|
|
53
53
|
pathLimit: number;
|
|
54
54
|
initialize(): void;
|
|
55
|
-
|
|
55
|
+
willUpdate(changedProperties: Map<string, unknown>): void;
|
|
56
|
+
updated(): void;
|
|
56
57
|
private validateProps;
|
|
57
58
|
disconnectedCallback(): void;
|
|
58
59
|
private get breadcrumbs();
|
|
@@ -4,7 +4,7 @@ import { LitElement } from 'lit';
|
|
|
4
4
|
import type { CommerceBindings } from "../atomic-commerce-interface/atomic-commerce-interface";
|
|
5
5
|
import type { InitializableComponent } from "../../../decorators/types";
|
|
6
6
|
/**
|
|
7
|
-
* A facet is a list of values for a certain field occurring in the
|
|
7
|
+
* A facet is a list of values for a certain field occurring in the products.
|
|
8
8
|
* An `atomic-commerce-category-facet` displays a facet of values in a browsable, hierarchical fashion.
|
|
9
9
|
*
|
|
10
10
|
* @part facet - The wrapper for the entire facet.
|
|
@@ -20,9 +20,9 @@ import type { InitializableComponent } from "../../../decorators/types";
|
|
|
20
20
|
* @part more-matches - The label indicating there are more matches for the current facet search query.
|
|
21
21
|
* @part no-matches - The label indicating there are no matches for the current facet search query.
|
|
22
22
|
* @part matches-query - The highlighted query inside the matches labels.
|
|
23
|
-
* @part search-results - The search results container.
|
|
24
|
-
* @part search-result - The search result value.
|
|
25
|
-
* @part search-result-path - The search result path.
|
|
23
|
+
* @part search-results - The facet search results container.
|
|
24
|
+
* @part search-result - The facet search result value.
|
|
25
|
+
* @part search-result-path - The facet search result path.
|
|
26
26
|
* @part search-highlight - The highlighted query inside the facet values.
|
|
27
27
|
*
|
|
28
28
|
* @part parents - The container surrounding the whole hierarchy of values.
|
|
@@ -5,7 +5,7 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
5
5
|
/**
|
|
6
6
|
* The `atomic-commerce-did-you-mean` component is responsible for handling query corrections. When a query returns no products but finds a possible query correction, the component either suggests the correction or automatically triggers a new query with the suggested term.
|
|
7
7
|
*
|
|
8
|
-
* @part no-results - The text displayed when there are no
|
|
8
|
+
* @part no-results - The text displayed when there are no products.
|
|
9
9
|
* @part auto-corrected - The text displayed for the automatically corrected query.
|
|
10
10
|
* @part showing-results-for - The first paragraph of the text displayed when a query trigger changes a query.
|
|
11
11
|
* @part search-instead-for - The second paragraph of the text displayed when a query trigger changes a query.
|
|
@@ -13,10 +13,10 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
13
13
|
* @part clear-button - The button that resets the actively selected facet values.
|
|
14
14
|
* @part clear-button-icon - The clear button icon.
|
|
15
15
|
*
|
|
16
|
-
* @part search-wrapper - The search box wrapper.
|
|
17
|
-
* @part search-input - The search box input.
|
|
18
|
-
* @part search-icon - The search box submit button.
|
|
19
|
-
* @part search-clear-button - The button to clear the search box of input.
|
|
16
|
+
* @part search-wrapper - The facet search box wrapper.
|
|
17
|
+
* @part search-input - The facet search box input.
|
|
18
|
+
* @part search-icon - The facet search box submit button.
|
|
19
|
+
* @part search-clear-button - The button to clear the facet search box of input.
|
|
20
20
|
* @part more-matches - The label indicating there are more matches for the current facet search query.
|
|
21
21
|
* @part no-matches - The label indicating there are no matches for the current facet search query.
|
|
22
22
|
* @part matches-query - The highlighted query inside the matches labels.
|
|
@@ -31,8 +31,8 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
31
31
|
* @part value-checkbox-label - The facet value checkbox clickable label, available when display is 'checkbox'.
|
|
32
32
|
* @part value-checkbox-icon - The facet value checkbox icon, available when display is 'checkbox'.
|
|
33
33
|
*
|
|
34
|
-
* @part show-more - The show more
|
|
35
|
-
* @part show-less - The show less
|
|
34
|
+
* @part show-more - The show more values button.
|
|
35
|
+
* @part show-less - The show less values button.
|
|
36
36
|
* @part show-more-less-icon - The icons of the show more & show less buttons.
|
|
37
37
|
*/
|
|
38
38
|
export declare class AtomicCommerceFacet extends LitElement implements InitializableComponent<CommerceBindings> {
|
package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type CommerceEngine, type CommerceEngineConfiguration, type Context, type LogLevel, type ProductListing, type ProductListingSummaryState, type Search, type SearchSummaryState, type Summary, type UrlManager } from '@coveo/headless/commerce';
|
|
2
|
+
import type { CurrencyCodeISO4217 } from '@coveo/relay-event-types';
|
|
2
3
|
import { type i18n } from 'i18next';
|
|
3
4
|
import { type CSSResultGroup, LitElement } from 'lit';
|
|
4
5
|
import type { CommonBindings } from '../../common/interface/bindings';
|
|
@@ -49,7 +50,13 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
|
|
|
49
50
|
/**
|
|
50
51
|
* The commerce interface language.
|
|
51
52
|
*
|
|
52
|
-
* Will default to the value set in the Headless engine context if not
|
|
53
|
+
* Will default to the value set in the Headless engine context if not
|
|
54
|
+
* provided.
|
|
55
|
+
*
|
|
56
|
+
* @deprecated - This property will be removed in the next major version of
|
|
57
|
+
* Atomic (v4). Rather than using this property, set the initial language
|
|
58
|
+
* through the engine configuration when calling `initializeWithEngine`, and
|
|
59
|
+
* update the language as needed using the `updateLocale` method.
|
|
53
60
|
*/
|
|
54
61
|
language?: string;
|
|
55
62
|
/**
|
|
@@ -100,6 +107,26 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
|
|
|
100
107
|
* Executes the first request after initializing connection to the headless commerce engine.
|
|
101
108
|
*/
|
|
102
109
|
executeFirstRequest(): Promise<void>;
|
|
110
|
+
/**
|
|
111
|
+
* Updates the locale settings for the commerce interface and headless commerce
|
|
112
|
+
* engine. Only the provided parameters will be updated.
|
|
113
|
+
*
|
|
114
|
+
* Calling this method affects the localization of the interface as well as
|
|
115
|
+
* the catalog configuration being used by the Commerce API. If the resulting
|
|
116
|
+
* language-country-currency combination matches no existing catalog
|
|
117
|
+
* configuration in your Coveo organization, requests made through the
|
|
118
|
+
* commerce engine will start failing.
|
|
119
|
+
*
|
|
120
|
+
* @param language - (Optional) The IETF language code tag (e.g., `en`).
|
|
121
|
+
* @param country - (Optional) The ISO-3166-1 country tag (e.g., `US`).
|
|
122
|
+
* @param currency - (Optional) The ISO-4217 currency code (e.g., `USD`).
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* ```typescript
|
|
126
|
+
* interface.updateLocale('fr', 'CA', 'CAD');
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
129
|
+
updateLocale(language?: string, country?: string, currency?: CurrencyCodeISO4217): void;
|
|
103
130
|
toggleAnalytics(): void;
|
|
104
131
|
updateIconAssetsPath(): void;
|
|
105
132
|
updateLanguage(): void;
|
|
@@ -115,10 +142,10 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
|
|
|
115
142
|
private initSummary;
|
|
116
143
|
private initUrlManager;
|
|
117
144
|
private internalInitialization;
|
|
145
|
+
private isNewLocale;
|
|
118
146
|
private onHashChange;
|
|
119
147
|
scrollToTop(): void;
|
|
120
148
|
private updateHash;
|
|
121
|
-
private updateMobileBreakpoint;
|
|
122
149
|
}
|
|
123
150
|
declare global {
|
|
124
151
|
interface HTMLElementTagNameMap {
|
|
@@ -8,19 +8,19 @@ declare const AtomicCommerceLayout_base: import("../../../mixins/mixin-common").
|
|
|
8
8
|
* @cssprop --atomic-layout-max-search-box-input-width: The maximum width that the search box input will take.
|
|
9
9
|
* @cssprop --atomic-layout-max-search-box-double-suggestions-width: The maximum width that the search box suggestions will take when displaying a double list.
|
|
10
10
|
* @cssprop --atomic-layout-search-box-left-suggestions-width: The width of the left list when displaying a double list.
|
|
11
|
-
*
|
|
12
|
-
* @slot default - The default slot for the layout content.
|
|
13
11
|
*/
|
|
14
12
|
export declare class AtomicCommerceLayout extends AtomicCommerceLayout_base {
|
|
15
13
|
static styles: import("lit").CSSResult[];
|
|
16
|
-
private addStyles;
|
|
17
14
|
error: Error;
|
|
18
15
|
/**
|
|
19
16
|
* The viewport width at which the layout goes from desktop to mobile.
|
|
20
17
|
* E.g., 800px, 65rem.
|
|
21
18
|
*/
|
|
22
19
|
mobileBreakpoint: string;
|
|
20
|
+
private layoutStylesController;
|
|
23
21
|
connectedCallback(): void;
|
|
22
|
+
private emitBreakpointChangeEvent;
|
|
23
|
+
onMobileBreakpointChange(): void;
|
|
24
24
|
}
|
|
25
25
|
declare global {
|
|
26
26
|
interface HTMLElementTagNameMap {
|
|
@@ -8,11 +8,11 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
8
8
|
* @part container - The container of the component.
|
|
9
9
|
* @part showing-results - The summary displaying which products are shown and how many are available.
|
|
10
10
|
* @part highlight - The highlighted number of products displayed and number of products available.
|
|
11
|
-
* @part progress-bar - The progress bar displaying a percentage of
|
|
11
|
+
* @part progress-bar - The progress bar displaying a percentage of products shown over the total number of products available.
|
|
12
12
|
* @part load-more-results-button - The "Load more products" button.
|
|
13
13
|
*
|
|
14
|
-
* @cssprop --atomic-more-results-progress-bar-color-from - Color of the start of the gradient for the load more
|
|
15
|
-
* @cssprop --atomic-more-results-progress-bar-color-to - Color of the end of the gradient for the load more
|
|
14
|
+
* @cssprop --atomic-more-results-progress-bar-color-from - Color of the start of the gradient for the load more products progress bar.
|
|
15
|
+
* @cssprop --atomic-more-results-progress-bar-color-to - Color of the end of the gradient for the load more products progress bar.
|
|
16
16
|
*/
|
|
17
17
|
export declare class AtomicCommerceLoadMoreProducts extends LitElement implements InitializableComponent<CommerceBindings> {
|
|
18
18
|
bindings: CommerceBindings;
|
|
@@ -13,7 +13,7 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
13
13
|
* @part clear-button-icon - The icon displayed in the clear button.
|
|
14
14
|
* @part values - The list container for all facet values.
|
|
15
15
|
* @part value-label - The text label for individual facet values.
|
|
16
|
-
* @part value-count - The count indicator showing the number of
|
|
16
|
+
* @part value-count - The count indicator showing the number of products for each value.
|
|
17
17
|
* @part value-checkbox-label - The label associated with facet value checkboxes.
|
|
18
18
|
* @part value-exclude-button - The button to exclude specific facet values.
|
|
19
19
|
* @part input-form - The form container for numeric range inputs.
|
|
@@ -3,7 +3,7 @@ import { LitElement } from 'lit';
|
|
|
3
3
|
import type { InitializableComponent } from "../../../decorators/types";
|
|
4
4
|
import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
|
|
5
5
|
/**
|
|
6
|
-
* The `atomic-commerce-pager` component enables users to navigate through paginated
|
|
6
|
+
* The `atomic-commerce-pager` component enables users to navigate through paginated products.
|
|
7
7
|
*
|
|
8
8
|
* @part buttons - The list of all buttons rendered by the component.
|
|
9
9
|
* @part page-buttons - The list of all page buttons.
|
|
@@ -10,7 +10,7 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
10
10
|
* @part title - The title of the modal.
|
|
11
11
|
* @part close-button - The button in the header that closes the modal.
|
|
12
12
|
* @part close-icon - The icon of the close button.
|
|
13
|
-
* @part footer-content - The wrapper around the content inside the footer of the modal, containing the button to view
|
|
13
|
+
* @part footer-content - The wrapper around the content inside the footer of the modal, containing the button to view the products.
|
|
14
14
|
* @part footer-button - The button in the footer that closes the modal.
|
|
15
15
|
* @part footer-button-text - The text inside the button in the footer that closes the modal.
|
|
16
16
|
* @part footer-button-count - The count inside the button in the footer that closes the modal.
|
package/dist/types/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import '../atomic-commerce-search-box-instant-products/atomic-commerce-search-bo
|
|
|
7
7
|
import '../atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions';
|
|
8
8
|
import '../atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries';
|
|
9
9
|
/**
|
|
10
|
-
* The `atomic-commerce-search-box` component enables users to perform product searches with built-in query suggestions and optional redirection to a search
|
|
10
|
+
* The `atomic-commerce-search-box` component enables users to perform product searches with built-in query suggestions and optional redirection to a search page.
|
|
11
11
|
*
|
|
12
12
|
* @slot default - The default slot where you can add child components to the search box.
|
|
13
13
|
*
|
|
@@ -44,8 +44,8 @@ import '../atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-
|
|
|
44
44
|
* @part recent-query-title - The "recent searches" text of the clear button above suggestions from the `atomic-commerce-search-box-recent-queries` component.
|
|
45
45
|
* @part recent-query-clear - The "clear" text of the clear button above suggestions from the `atomic-commerce-search-box-recent-queries` component.
|
|
46
46
|
*
|
|
47
|
-
* @part instant-results-item - An instant
|
|
48
|
-
* @part instant-results-show-all - The clickable suggestion to show all items for the current instant
|
|
47
|
+
* @part instant-results-item - An instant product rendered by an `atomic-commerce-search-box-instant-products` component.
|
|
48
|
+
* @part instant-results-show-all - The clickable suggestion to show all items for the current instant product search rendered by an `atomic-commerce-search-box-instant-products` component.
|
|
49
49
|
* @part instant-results-show-all-button - The button inside the clickable suggestion from the `atomic-commerce-search-box-instant-products` component.
|
|
50
50
|
*
|
|
51
51
|
* @event redirect - Event that is emitted when a standalone search box redirection is triggered. By default, the search box will directly change the URL and redirect accordingly, so if you want to handle the redirection differently, use this event.
|
|
@@ -106,7 +106,7 @@ export declare class AtomicCommerceSearchBox extends LitElement implements Initi
|
|
|
106
106
|
minimumQueryLength: number;
|
|
107
107
|
/**
|
|
108
108
|
* Whether to clear all active query filters when the end user submits a new query from the search box.
|
|
109
|
-
* Setting this option to "false" is not recommended & can lead to an increasing number of queries returning no
|
|
109
|
+
* Setting this option to "false" is not recommended & can lead to an increasing number of queries returning no products.
|
|
110
110
|
*/
|
|
111
111
|
clearFilters: boolean;
|
|
112
112
|
connectedCallback(): void;
|
|
@@ -137,6 +137,7 @@ export declare class AtomicCommerceSearchBox extends LitElement implements Initi
|
|
|
137
137
|
private renderSuggestions;
|
|
138
138
|
private renderPanel;
|
|
139
139
|
private renderSuggestion;
|
|
140
|
+
private renderSlotContent;
|
|
140
141
|
render(): import("lit-html").TemplateResult<1>;
|
|
141
142
|
}
|
|
142
143
|
declare global {
|
|
@@ -2,7 +2,7 @@ import { type Product, type SearchBox } from '@coveo/headless/commerce';
|
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
3
|
import type { ItemRenderingFunction } from "../../common/item-list/item-list-common";
|
|
4
4
|
import type { ItemDisplayDensity, ItemDisplayImageSize } from "../../common/layout/display-options";
|
|
5
|
-
import {
|
|
5
|
+
import type { SearchBoxSuggestions, SearchBoxSuggestionsBindings } from "../../common/suggestions/suggestions-types";
|
|
6
6
|
import type { SearchBoxSuggestionsComponent } from "../../../decorators/types";
|
|
7
7
|
import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
|
|
8
8
|
export type AriaLabelGenerator = (bindings: CommerceBindings, product: Product) => string | undefined;
|
|
@@ -11,7 +11,7 @@ export type AriaLabelGenerator = (bindings: CommerceBindings, product: Product)
|
|
|
11
11
|
*
|
|
12
12
|
* This component is not supported on mobile.
|
|
13
13
|
*
|
|
14
|
-
* @part instant-results-show-all-button - The 'See all
|
|
14
|
+
* @part instant-results-show-all-button - The 'See all products' button.
|
|
15
15
|
* @part instant-results-item - The individual instant product item.
|
|
16
16
|
*
|
|
17
17
|
* @slot default - The default slot where the instant products are rendered.
|
|
@@ -26,7 +26,7 @@ export declare class AtomicCommerceSearchBoxInstantProducts extends LitElement i
|
|
|
26
26
|
error: Error;
|
|
27
27
|
private templateHasError;
|
|
28
28
|
/**
|
|
29
|
-
* Sets a rendering function to bypass the standard HTML template mechanism for rendering
|
|
29
|
+
* Sets a rendering function to bypass the standard HTML template mechanism for rendering products.
|
|
30
30
|
* You can use this function while working with web frameworks that don't use plain HTML syntax, e.g., React, Angular or Vue.
|
|
31
31
|
*
|
|
32
32
|
* Do not use this method if you integrate Atomic in a plain HTML deployment.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SearchBox } from '@coveo/headless/commerce';
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
|
-
import {
|
|
3
|
+
import type { SearchBoxSuggestions, SearchBoxSuggestionsBindings } from "../../common/suggestions/suggestions-types";
|
|
4
4
|
import type { SearchBoxSuggestionsComponent } from "../../../decorators/types";
|
|
5
5
|
import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type SearchBox } from '@coveo/headless/commerce';
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
3
|
import type { SearchBoxSuggestionsComponent } from "../../../decorators/types";
|
|
4
|
-
import {
|
|
4
|
+
import type { SearchBoxSuggestions, SearchBoxSuggestionsBindings } from '../../common/suggestions/suggestions-types';
|
|
5
5
|
import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
|
|
6
6
|
/**
|
|
7
7
|
* The `atomic-commerce-search-box-recent-queries` component can be added as a child of an `atomic-commerce-search-box` component, allowing for the configuration of recent query suggestions.
|
|
@@ -4,8 +4,8 @@ import type { InitializableComponent } from "../../../decorators/types";
|
|
|
4
4
|
import '../../common/atomic-facet-date-input/atomic-facet-date-input';
|
|
5
5
|
import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
|
|
6
6
|
/**
|
|
7
|
-
* A facet is a list of values for a certain field occurring in the
|
|
8
|
-
* An `atomic-commerce-timeframe-facet` displays a facet of the
|
|
7
|
+
* A facet is a list of values for a certain field occurring in the products.
|
|
8
|
+
* An `atomic-commerce-timeframe-facet` displays a facet of the products for the current query as date intervals.
|
|
9
9
|
*
|
|
10
10
|
* @part facet - The wrapper for the entire facet.
|
|
11
11
|
* @part label-button - The header button to expand/collapse the facet.
|
|
@@ -15,7 +15,7 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
15
15
|
* @part values - The container for the facet values list.
|
|
16
16
|
* @part value-link - A facet value button.
|
|
17
17
|
* @part value-link-selected - A selected facet value button.
|
|
18
|
-
* @part value-count - The
|
|
18
|
+
* @part value-count - The product count for a facet value.
|
|
19
19
|
* @part value-label - The label text of a facet value.
|
|
20
20
|
* @part input-label - The label for date input fields.
|
|
21
21
|
* @part input-start - The start date input field.
|
|
@@ -39,7 +39,7 @@ export declare class AtomicProduct extends AtomicProduct_base {
|
|
|
39
39
|
/**
|
|
40
40
|
* The product link to use when the product is clicked in a grid layout.
|
|
41
41
|
*
|
|
42
|
-
* @default - An `atomic-
|
|
42
|
+
* @default - An `atomic-product-link` without any customization.
|
|
43
43
|
*/
|
|
44
44
|
linkContent: ParentNode;
|
|
45
45
|
/**
|
|
@@ -4,7 +4,7 @@ declare const AtomicProductSectionChildren_base: typeof LitElement;
|
|
|
4
4
|
* This section is meant to render child products, available when using the <atomic-product-children> component.
|
|
5
5
|
*
|
|
6
6
|
* Behavior:
|
|
7
|
-
* * Shows children at the bottom of the
|
|
7
|
+
* * Shows children at the bottom of the product, indented and wrapped in a border.
|
|
8
8
|
*
|
|
9
9
|
* @slot default - The child products to display.
|
|
10
10
|
*/
|
|
@@ -3,7 +3,7 @@ import { LitElement } from 'lit';
|
|
|
3
3
|
import type { LitElementWithError } from "../../../decorators/types";
|
|
4
4
|
import '../atomic-product/atomic-product';
|
|
5
5
|
/**
|
|
6
|
-
* * A product template determines the format of the
|
|
6
|
+
* * A product template determines the format of the products, depending on the conditions that are defined for each template.
|
|
7
7
|
*
|
|
8
8
|
* A `template` element must be the child of an `atomic-product-template`. Furthermore, an `atomic-commerce-product-list`, `atomic-commerce-recommendation-list`, or `atomic-commerce-search-box-instant-products` must be the parent of each `atomic-product-template`.
|
|
9
9
|
*
|
|
@@ -25,17 +25,17 @@ export declare class AtomicProductTemplate extends LitElement implements LitElem
|
|
|
25
25
|
*/
|
|
26
26
|
conditions: ProductTemplateCondition[];
|
|
27
27
|
/**
|
|
28
|
-
* The field and values that define which
|
|
29
|
-
* For example, a template with the following attribute only applies to
|
|
30
|
-
* `must-match-
|
|
28
|
+
* The field and values that define which products the condition must be applied to.
|
|
29
|
+
* For example, a template with the following attribute only applies to products whose `ec_brand` is `Barca` or `Acme`:
|
|
30
|
+
* `must-match-ec_brand="Barca,Acme"`
|
|
31
31
|
* @type {Record<string, string[]>}
|
|
32
32
|
* @default {}
|
|
33
33
|
*/
|
|
34
34
|
mustMatch: Record<string, string[]>;
|
|
35
35
|
/**
|
|
36
|
-
* The field and values that define which
|
|
37
|
-
* For example, a template with the following attribute only applies to
|
|
38
|
-
* `must-not-match-
|
|
36
|
+
* The field and values that define which products the condition must not be applied to.
|
|
37
|
+
* For example, a template with the following attribute only applies to products whose `ec_brand` is not `Barca`:
|
|
38
|
+
* `must-not-match-ec_brand="Barca"`
|
|
39
39
|
* @type {Record<string, string[]>}
|
|
40
40
|
* @default {}
|
|
41
41
|
*/
|
package/dist/types/components/common/atomic-suggestion-renderer/atomic-suggestion-renderer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i18n } from 'i18next';
|
|
2
|
-
import { SearchBoxSuggestionElement } from '../suggestions/suggestions-
|
|
2
|
+
import { SearchBoxSuggestionElement } from '../suggestions/suggestions-types';
|
|
3
3
|
/**
|
|
4
4
|
* The `atomic-suggestion-renderer` component is used to render individual suggestions. It was created to isolate
|
|
5
5
|
* the rendering logic of the 'content' property of the `SearchBoxSuggestionElement` interface. This property can be Stencil
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
+
export interface LayoutStylesHost extends ReactiveControllerHost {
|
|
3
|
+
mobileBreakpoint: string;
|
|
4
|
+
getRootNode(): Node;
|
|
5
|
+
id?: string;
|
|
6
|
+
}
|
|
7
|
+
export type StylesBuilderFunction = (host: HTMLElement, mobileBreakpoint: string) => string;
|
|
8
|
+
/**
|
|
9
|
+
* A reactive controller that manages dynamic layout styles.
|
|
10
|
+
*/
|
|
11
|
+
export declare class LayoutStylesController implements ReactiveController {
|
|
12
|
+
private host;
|
|
13
|
+
private dynamicStyleSheet;
|
|
14
|
+
private stylesBuilder;
|
|
15
|
+
private componentPrefix;
|
|
16
|
+
constructor(host: LayoutStylesHost, stylesBuilder: StylesBuilderFunction, componentPrefix: string);
|
|
17
|
+
hostConnected(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Updates the dynamic styles based on the current mobile breakpoint
|
|
20
|
+
*/
|
|
21
|
+
updateStyles(): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
+
import type { BaseStore } from "../interface/store";
|
|
3
|
+
/**
|
|
4
|
+
* A reactive controller that manages mobile breakpoint changes through event communication.
|
|
5
|
+
* This controller listens for 'atomic-layout-breakpoint-change' events and updates a store
|
|
6
|
+
* with the new breakpoint value.
|
|
7
|
+
*/
|
|
8
|
+
export declare class MobileBreakpointController implements ReactiveController {
|
|
9
|
+
private host;
|
|
10
|
+
private store;
|
|
11
|
+
private eventListener;
|
|
12
|
+
constructor(host: ReactiveControllerHost, store: BaseStore<{
|
|
13
|
+
mobileBreakpoint: string;
|
|
14
|
+
}>);
|
|
15
|
+
hostConnected(): void;
|
|
16
|
+
hostDisconnected(): void;
|
|
17
|
+
private handleBreakpointChange;
|
|
18
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { i18n } from 'i18next';
|
|
2
2
|
import type { FunctionalComponent } from "../../../utils/functional-component-utils";
|
|
3
|
+
type TriggerCorrectionShowingItemsForKey = 'showing-products-for' | 'showing-results-for';
|
|
3
4
|
interface Props {
|
|
4
5
|
i18n: i18n;
|
|
6
|
+
i18nKeyShowingItemsFor: TriggerCorrectionShowingItemsForKey;
|
|
5
7
|
correctedQuery: string;
|
|
6
8
|
originalQuery: string;
|
|
7
9
|
onClick: () => void;
|
|
@@ -2,9 +2,11 @@ import type { i18n } from 'i18next';
|
|
|
2
2
|
import type { FunctionalComponentWithChildren } from "../../../utils/functional-component-utils";
|
|
3
3
|
import '../atomic-modal/atomic-modal';
|
|
4
4
|
import '../atomic-icon/atomic-icon';
|
|
5
|
+
type RefineModalFooterButtonTextKey = 'view-products' | 'view-results';
|
|
5
6
|
interface RefineModalProps {
|
|
6
7
|
host: HTMLElement;
|
|
7
8
|
i18n: i18n;
|
|
9
|
+
i18nFooterButtonTextKey: RefineModalFooterButtonTextKey;
|
|
8
10
|
onClose(): void;
|
|
9
11
|
title: string;
|
|
10
12
|
numberOfItems: number;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { i18n } from 'i18next';
|
|
2
|
-
import type { SearchBoxSuggestionElement } from './suggestions-
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
2
|
+
import type { SearchBoxSuggestionElement } from './suggestions-types';
|
|
3
|
+
type InstantItemSuggestionLabelKey = 'instant-results-suggestion-label' | 'instant-products-suggestion-label';
|
|
4
|
+
export declare const getPartialInstantItemElement: (i18n: i18n, i18nKey: InstantItemSuggestionLabelKey, itemTitle: string, itemUniqueId: string) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "part">;
|
|
5
|
+
type InstantItemShowAllLabelKey = 'show-all-products' | 'show-all-results';
|
|
6
|
+
export declare const getPartialInstantItemShowAllElement: (i18n: i18n, i18nKey: InstantItemShowAllLabelKey) => Pick<SearchBoxSuggestionElement, "key" | "part" | "ariaLabel">;
|
|
5
7
|
interface InstantItemShowAllButtonProps {
|
|
6
8
|
i18n: i18n;
|
|
9
|
+
i18nKey: InstantItemShowAllLabelKey;
|
|
7
10
|
}
|
|
8
|
-
export declare const renderInstantItemShowAllButton: ({ i18n, }: InstantItemShowAllButtonProps) => HTMLElement;
|
|
11
|
+
export declare const renderInstantItemShowAllButton: ({ i18n, i18nKey, }: InstantItemShowAllButtonProps) => HTMLElement;
|
|
9
12
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { i18n } from 'i18next';
|
|
2
|
-
import type { SearchBoxSuggestionElement } from './suggestions-
|
|
2
|
+
import type { SearchBoxSuggestionElement } from './suggestions-types';
|
|
3
3
|
export declare const getPartialRecentQueryElement: (value: string, i18n: i18n) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "query" | "part">;
|
|
4
4
|
export declare const getPartialRecentQueryClearElement: (i18n: i18n) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "part" | "hideIfLast">;
|
|
5
5
|
export interface RecentQueriesContainerProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionalComponent } from '../../../stencil-public-runtime';
|
|
2
2
|
import { i18n } from 'i18next';
|
|
3
|
-
import { SearchBoxSuggestionElement } from './suggestions-
|
|
3
|
+
import { SearchBoxSuggestionElement } from './suggestions-types';
|
|
4
4
|
export declare const getPartialInstantItemElement: (i18n: i18n, itemTitle: string, itemUniqueId: string) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "part">;
|
|
5
5
|
export declare const getPartialInstantItemShowAllElement: (i18n: i18n) => Pick<SearchBoxSuggestionElement, "key" | "part" | "ariaLabel">;
|
|
6
6
|
interface InstantItemShowAllButtonProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionalComponent } from '../../../stencil-public-runtime';
|
|
2
2
|
import { i18n } from 'i18next';
|
|
3
|
-
import { SearchBoxSuggestionElement } from './suggestions-
|
|
3
|
+
import { SearchBoxSuggestionElement } from './suggestions-types.js';
|
|
4
4
|
interface Suggestion {
|
|
5
5
|
highlightedValue: string;
|
|
6
6
|
rawValue: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionalComponent } from '../../../stencil-public-runtime';
|
|
2
2
|
import { i18n } from 'i18next';
|
|
3
|
-
import { SearchBoxSuggestionElement } from './suggestions-
|
|
3
|
+
import { SearchBoxSuggestionElement } from './suggestions-types';
|
|
4
4
|
export declare const getPartialRecentQueryElement: (value: string, i18n: i18n) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "query" | "part">;
|
|
5
5
|
export declare const getPartialRecentQueryClearElement: (i18n: i18n) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "part" | "hideIfLast">;
|
|
6
6
|
export declare const RecentQueriesContainer: FunctionalComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SearchBoxSuggestionElement, SearchBoxSuggestionsBindings, SearchBoxSuggestionsEvent } from './suggestions-types';
|
|
2
2
|
/**
|
|
3
3
|
* List of suggestions that will be displayed along other lists (e.g recent queries) when the search box's input is selected.
|
|
4
4
|
*/
|