@coveo/atomic 3.31.2-pre.1c8be76f9e → 3.31.2-pre.214bb00aea
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/atomic.esm.js.map +1 -1
- package/dist/atomic/components/_index.d.ts +4 -0
- package/dist/atomic/components/_index.js +2 -0
- package/dist/atomic/components/analytics-config.js +1 -1
- package/dist/atomic/components/atomic-aria-live.d.ts +11 -0
- package/dist/atomic/components/atomic-aria-live.js +8 -0
- package/dist/atomic/components/atomic-aria-live.js.map +1 -0
- package/dist/atomic/components/atomic-aria-live2.js +87 -0
- package/dist/atomic/components/atomic-aria-live2.js.map +1 -0
- 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-numeric-facet.js +1 -1
- package/dist/atomic/components/atomic-product-field-condition.d.ts +11 -0
- package/dist/atomic/components/atomic-product-field-condition.js +131 -0
- package/dist/atomic/components/atomic-product-field-condition.js.map +1 -0
- 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-query-suggestions2.js +1 -1
- package/dist/atomic/components/atomic-search-box-recent-queries2.js +1 -1
- package/dist/atomic/components/atomic-search-interface.js +7 -1
- package/dist/atomic/components/atomic-search-interface.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-tab-manager.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +26 -15
- package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-layout/atomic-commerce-layout.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-load-more-products/atomic-commerce-load-more-products.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-product-list/atomic-commerce-product-list.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +35 -16
- package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-list/atomic-commerce-recommendation-list.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-refine-modal/atomic-commerce-refine-modal.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-refine-toggle/atomic-commerce-refine-toggle.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +0 -3
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-sort-dropdown/atomic-commerce-sort-dropdown.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product/atomic-product.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-children/atomic-product-children.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-description/atomic-product-description.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-excerpt/atomic-product-excerpt.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-link/atomic-product-link.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-multi-value-text/atomic-product-multi-value-text.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-price/atomic-product-price.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-template/atomic-product-template.js +0 -1
- package/dist/atomic/components/components/commerce/index.js +0 -1
- package/dist/atomic/components/components/commerce/lazy-index.js +0 -1
- package/dist/atomic/components/components/common/atomic-icon/atomic-icon.tw.css.js +1 -1
- package/dist/atomic/components/components/common/facets/facet-common.tw.css.js +1 -1
- package/dist/atomic/components/components/common/facets/facet-search/facet-search.tw.css.js +1 -1
- package/dist/atomic/components/components/common/facets/facet-value-box/facet-value-box.tw.css.js +1 -1
- package/dist/atomic/components/components/common/facets/facet-value-checkbox/facet-value-checkbox.tw.css.js +1 -1
- package/dist/atomic/components/components/common/facets/facet-value-exclude/facet-value-exclude.tw.css.js +1 -1
- package/dist/atomic/components/components/common/index.js +0 -1
- package/dist/atomic/components/components/common/interface/interface-common.js +95 -0
- package/dist/atomic/components/components/common/lazy-index.js +0 -1
- package/dist/atomic/components/components/common/refine-modal/refine-modal-common.tw.css.js +1 -1
- package/dist/atomic/components/debounce-utils.js +34 -1
- package/dist/atomic/components/debounce-utils.js.map +1 -1
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/global/tailwind.default.css.js +1 -1
- package/dist/atomic/components/index.js.map +1 -1
- package/dist/atomic/components/stencil-accessibility-utils.js.map +1 -1
- package/dist/atomic/components/themes/accessible.css.js +1 -1
- package/dist/atomic/components/themes/coveo.css.js +1 -1
- package/dist/atomic/components/utils/coveo.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind-utilities/aspect-square.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind-utilities/components.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind-utilities/hide-scrollbar.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind-utilities/link-style.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind-utilities/set-font-size.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind-utilities/utilities.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind.global.tw.css.js +1 -1
- package/dist/atomic/{p-1b329f85.entry.js → p-0674783d.entry.js} +2 -2
- package/dist/atomic/{p-731f82ed.entry.js → p-0ed0e8b8.entry.js} +2 -2
- package/dist/atomic/{p-6f8ae3d2.entry.js → p-1176959c.entry.js} +2 -2
- package/dist/atomic/{p-b1f7ac63.entry.js → p-11dd759c.entry.js} +2 -2
- package/dist/atomic/{p-0af927f0.entry.js → p-1b491649.entry.js} +2 -2
- package/dist/atomic/{p-8434625a.entry.js → p-1e0f2e91.entry.js} +2 -2
- package/dist/atomic/{p-7a07530d.entry.js → p-25f8b8d8.entry.js} +2 -2
- package/dist/atomic/{p-91d52cad.entry.js → p-29c272bb.entry.js} +2 -2
- package/dist/atomic/p-37b7705c.js +2 -0
- package/dist/atomic/p-37b7705c.js.map +1 -0
- package/dist/atomic/{p-f9bfd18b.entry.js → p-391c26ba.entry.js} +2 -2
- package/dist/atomic/{p-b573855a.entry.js → p-39aaf514.entry.js} +2 -2
- package/dist/atomic/p-3f2442d3.entry.js +2 -0
- package/dist/atomic/p-3f2442d3.entry.js.map +1 -0
- package/dist/atomic/{p-e406cacd.entry.js → p-494c57a0.entry.js} +2 -2
- package/dist/atomic/{p-89721f11.entry.js → p-5b888121.entry.js} +2 -2
- package/dist/atomic/{p-bf5d5c79.entry.js → p-5fc9f751.entry.js} +2 -2
- package/dist/atomic/{p-16aba904.entry.js → p-68026af1.entry.js} +2 -2
- package/dist/atomic/{p-c0025d4c.entry.js → p-716e9e1d.entry.js} +2 -2
- package/dist/atomic/p-96a6f84f.js.map +1 -1
- package/dist/atomic/{p-4c5702ba.entry.js → p-a0445771.entry.js} +2 -2
- package/dist/atomic/p-a0b3c6e2.entry.js +2 -0
- package/dist/atomic/p-a0b3c6e2.entry.js.map +1 -0
- package/dist/atomic/{p-53bcc515.js → p-acc4d5de.js} +2 -2
- package/dist/atomic/{p-0b9cd281.entry.js → p-b043958c.entry.js} +2 -2
- package/dist/atomic/{p-5cb01552.js → p-beb5a809.js} +2 -2
- package/dist/atomic/{p-7a5d346b.entry.js → p-c8d47706.entry.js} +2 -2
- package/dist/atomic/{p-5f64bbe0.entry.js → p-e2560da8.entry.js} +2 -2
- package/dist/atomic/{p-0f5ae66e.entry.js → p-e44ba87e.entry.js} +2 -2
- package/dist/atomic/p-e790d557.entry.js +2 -0
- package/dist/atomic/p-efd2bb5f.entry.js +2 -0
- package/dist/atomic/{p-9e77e09f.entry.js → p-f8fbac35.entry.js} +2 -2
- package/dist/atomic/{p-6638ca39.entry.js → p-fc73190d.entry.js} +2 -2
- package/dist/cjs/_loader.cjs.js +1 -1
- package/dist/cjs/{analytics-config-aabaf235.js → analytics-config-0d371fdf.js} +2 -2
- package/dist/cjs/{analytics-config-aabaf235.js.map → analytics-config-0d371fdf.js.map} +1 -1
- package/dist/cjs/{atomic-relevance-inspector.cjs.entry.js → atomic-aria-live_2.cjs.entry.js} +68 -1
- package/dist/cjs/atomic-aria-live_2.cjs.entry.js.map +1 -0
- 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-generated-answer.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-generated-answer.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 +2 -2
- package/dist/cjs/atomic-numeric-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-product-field-condition.cjs.entry.js +119 -0
- package/dist/cjs/atomic-product-field-condition.cjs.entry.js.map +1 -0
- 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-query-suggestions_2.cjs.entry.js +2 -2
- package/dist/cjs/atomic-search-box.cjs.entry.js +2 -2
- 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-tab-manager.cjs.entry.js +1 -1
- package/dist/cjs/atomic.cjs.js +1 -1
- package/dist/cjs/debounce-utils-e014935f.js +49 -0
- package/dist/cjs/debounce-utils-e014935f.js.map +1 -0
- package/dist/cjs/index-757bc886.js +8 -4
- package/dist/cjs/stencil-accessibility-utils-aa4c9f6c.js.map +1 -1
- package/dist/cjs/{stencil-suggestion-manager-5fa3ac70.js → stencil-suggestion-manager-6f778cf0.js} +2 -2
- package/dist/cjs/{stencil-suggestion-manager-5fa3ac70.js.map → stencil-suggestion-manager-6f778cf0.js.map} +1 -1
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/_loader.js +1 -1
- package/dist/esm/{analytics-config-8adc1641.js → analytics-config-1f342b1e.js} +2 -2
- package/dist/esm/{analytics-config-8adc1641.js.map → analytics-config-1f342b1e.js.map} +1 -1
- package/dist/esm/{atomic-relevance-inspector.entry.js → atomic-aria-live_2.entry.js} +69 -3
- package/dist/esm/atomic-aria-live_2.entry.js.map +1 -0
- 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-generated-answer.entry.js +1 -1
- package/dist/esm/atomic-insight-generated-answer.entry.js +1 -1
- package/dist/esm/atomic-insight-interface.entry.js +1 -1
- package/dist/esm/atomic-insight-search-box.entry.js +2 -2
- package/dist/esm/atomic-numeric-facet.entry.js +1 -1
- package/dist/esm/atomic-product-field-condition.entry.js +115 -0
- package/dist/esm/atomic-product-field-condition.entry.js.map +1 -0
- 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-query-suggestions_2.entry.js +2 -2
- package/dist/esm/atomic-search-box.entry.js +2 -2
- 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-tab-manager.entry.js +1 -1
- package/dist/esm/atomic.js +1 -1
- package/dist/esm/debounce-utils-efa015c0.js +46 -0
- package/dist/esm/{debounce-utils-8619dece.js.map → debounce-utils-efa015c0.js.map} +1 -1
- package/dist/esm/index-3f35faca.js +8 -4
- package/dist/esm/stencil-accessibility-utils-bc273be5.js.map +1 -1
- package/dist/esm/{stencil-suggestion-manager-f52c6e39.js → stencil-suggestion-manager-91706623.js} +2 -2
- package/dist/esm/{stencil-suggestion-manager-f52c6e39.js.map → stencil-suggestion-manager-91706623.js.map} +1 -1
- package/dist/esm/version.js +2 -2
- package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +4 -3
- package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +6 -5
- package/dist/types/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.d.ts +0 -3
- package/dist/types/components/commerce/atomic-product-field-condition/atomic-product-field-condition.d.ts +13 -24
- package/dist/types/components/commerce/atomic-product-template/atomic-product-template.d.ts +0 -1
- package/dist/types/components/commerce/index.d.ts +0 -1
- package/dist/types/components/common/index.d.ts +0 -1
- package/dist/types/components/common/interface/i18n.d.ts +1 -1
- package/dist/types/components/common/interface/{interface-controller.d.ts → interface-common.d.ts} +11 -14
- package/dist/types/components/search/atomic-search-interface/atomic-aria-live.d.ts +23 -0
- package/dist/types/components.d.ts +96 -0
- package/dist/types/utils/accessibility-utils.d.ts +1 -2
- package/dist/types/utils/stencil-accessibility-utils.d.ts +1 -2
- package/docs/atomic-docs.json +197 -31
- package/package.json +3 -3
- package/dist/atomic/components/components/commerce/atomic-product-field-condition/atomic-product-field-condition.js +0 -70
- package/dist/atomic/components/components/common/atomic-aria-live/atomic-aria-live.js +0 -102
- package/dist/atomic/components/components/common/interface/interface-controller.js +0 -89
- package/dist/atomic/p-01c91b69.js +0 -2
- package/dist/atomic/p-01c91b69.js.map +0 -1
- package/dist/atomic/p-271cf67e.entry.js +0 -2
- package/dist/atomic/p-271cf67e.entry.js.map +0 -1
- package/dist/atomic/p-306161d1.entry.js +0 -2
- package/dist/atomic/p-f0e861c5.entry.js +0 -2
- package/dist/cjs/atomic-relevance-inspector.cjs.entry.js.map +0 -1
- package/dist/cjs/debounce-utils-d26bcad4.js +0 -15
- package/dist/cjs/debounce-utils-d26bcad4.js.map +0 -1
- package/dist/esm/atomic-relevance-inspector.entry.js.map +0 -1
- package/dist/esm/debounce-utils-8619dece.js +0 -13
- package/dist/types/components/common/atomic-aria-live/atomic-aria-live.d.ts +0 -38
- /package/dist/atomic/{p-1b329f85.entry.js.map → p-0674783d.entry.js.map} +0 -0
- /package/dist/atomic/{p-731f82ed.entry.js.map → p-0ed0e8b8.entry.js.map} +0 -0
- /package/dist/atomic/{p-6f8ae3d2.entry.js.map → p-1176959c.entry.js.map} +0 -0
- /package/dist/atomic/{p-b1f7ac63.entry.js.map → p-11dd759c.entry.js.map} +0 -0
- /package/dist/atomic/{p-0af927f0.entry.js.map → p-1b491649.entry.js.map} +0 -0
- /package/dist/atomic/{p-8434625a.entry.js.map → p-1e0f2e91.entry.js.map} +0 -0
- /package/dist/atomic/{p-7a07530d.entry.js.map → p-25f8b8d8.entry.js.map} +0 -0
- /package/dist/atomic/{p-91d52cad.entry.js.map → p-29c272bb.entry.js.map} +0 -0
- /package/dist/atomic/{p-f9bfd18b.entry.js.map → p-391c26ba.entry.js.map} +0 -0
- /package/dist/atomic/{p-b573855a.entry.js.map → p-39aaf514.entry.js.map} +0 -0
- /package/dist/atomic/{p-e406cacd.entry.js.map → p-494c57a0.entry.js.map} +0 -0
- /package/dist/atomic/{p-89721f11.entry.js.map → p-5b888121.entry.js.map} +0 -0
- /package/dist/atomic/{p-bf5d5c79.entry.js.map → p-5fc9f751.entry.js.map} +0 -0
- /package/dist/atomic/{p-16aba904.entry.js.map → p-68026af1.entry.js.map} +0 -0
- /package/dist/atomic/{p-c0025d4c.entry.js.map → p-716e9e1d.entry.js.map} +0 -0
- /package/dist/atomic/{p-4c5702ba.entry.js.map → p-a0445771.entry.js.map} +0 -0
- /package/dist/atomic/{p-53bcc515.js.map → p-acc4d5de.js.map} +0 -0
- /package/dist/atomic/{p-0b9cd281.entry.js.map → p-b043958c.entry.js.map} +0 -0
- /package/dist/atomic/{p-5cb01552.js.map → p-beb5a809.js.map} +0 -0
- /package/dist/atomic/{p-7a5d346b.entry.js.map → p-c8d47706.entry.js.map} +0 -0
- /package/dist/atomic/{p-5f64bbe0.entry.js.map → p-e2560da8.entry.js.map} +0 -0
- /package/dist/atomic/{p-0f5ae66e.entry.js.map → p-e44ba87e.entry.js.map} +0 -0
- /package/dist/atomic/{p-f0e861c5.entry.js.map → p-e790d557.entry.js.map} +0 -0
- /package/dist/atomic/{p-306161d1.entry.js.map → p-efd2bb5f.entry.js.map} +0 -0
- /package/dist/atomic/{p-9e77e09f.entry.js.map → p-f8fbac35.entry.js.map} +0 -0
- /package/dist/atomic/{p-6638ca39.entry.js.map → p-fc73190d.entry.js.map} +0 -0
package/docs/atomic-docs.json
CHANGED
|
@@ -1,11 +1,42 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-07-
|
|
2
|
+
"timestamp": "2025-07-31T12:49:20",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.20.0",
|
|
6
6
|
"typescriptVersion": "5.5.3"
|
|
7
7
|
},
|
|
8
8
|
"components": [
|
|
9
|
+
{
|
|
10
|
+
"filePath": "src/components/search/atomic-search-interface/atomic-aria-live.tsx",
|
|
11
|
+
"encapsulation": "none",
|
|
12
|
+
"tag": "atomic-aria-live",
|
|
13
|
+
"docs": "The `atomic-aria-live` component notifies screen readers of changes in the search interface.",
|
|
14
|
+
"docsTags": [],
|
|
15
|
+
"usage": {},
|
|
16
|
+
"props": [],
|
|
17
|
+
"methods": [],
|
|
18
|
+
"events": [],
|
|
19
|
+
"listeners": [
|
|
20
|
+
{
|
|
21
|
+
"event": "atomic/accessibility/findAriaLive",
|
|
22
|
+
"target": "document",
|
|
23
|
+
"capture": false,
|
|
24
|
+
"passive": false
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"styles": [],
|
|
28
|
+
"slots": [],
|
|
29
|
+
"parts": [],
|
|
30
|
+
"dependents": [
|
|
31
|
+
"atomic-search-interface"
|
|
32
|
+
],
|
|
33
|
+
"dependencies": [],
|
|
34
|
+
"dependencyGraph": {
|
|
35
|
+
"atomic-search-interface": [
|
|
36
|
+
"atomic-aria-live"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
9
40
|
{
|
|
10
41
|
"filePath": "src/components/search/facets/atomic-automatic-facet/atomic-automatic-facet.tsx",
|
|
11
42
|
"encapsulation": "shadow",
|
|
@@ -6562,6 +6593,139 @@
|
|
|
6562
6593
|
]
|
|
6563
6594
|
}
|
|
6564
6595
|
},
|
|
6596
|
+
{
|
|
6597
|
+
"filePath": "src/components/commerce/atomic-product-field-condition/atomic-product-field-condition.tsx",
|
|
6598
|
+
"encapsulation": "none",
|
|
6599
|
+
"tag": "atomic-product-field-condition",
|
|
6600
|
+
"docs": "The `atomic-product-field-condition` component takes a list of conditions that, if fulfilled, apply the template in which it's defined.\nThe condition properties can be based on any top-level product property of the `product` object, not restricted to fields (e.g., `ec_name`).",
|
|
6601
|
+
"docsTags": [
|
|
6602
|
+
{
|
|
6603
|
+
"name": "alpha"
|
|
6604
|
+
}
|
|
6605
|
+
],
|
|
6606
|
+
"usage": {},
|
|
6607
|
+
"props": [
|
|
6608
|
+
{
|
|
6609
|
+
"name": "ifDefined",
|
|
6610
|
+
"type": "string | undefined",
|
|
6611
|
+
"complexType": {
|
|
6612
|
+
"original": "string",
|
|
6613
|
+
"resolved": "string | undefined",
|
|
6614
|
+
"references": {}
|
|
6615
|
+
},
|
|
6616
|
+
"mutable": false,
|
|
6617
|
+
"attr": "if-defined",
|
|
6618
|
+
"reflectToAttr": true,
|
|
6619
|
+
"docs": "Verifies whether the specified fields are defined.",
|
|
6620
|
+
"docsTags": [],
|
|
6621
|
+
"values": [
|
|
6622
|
+
{
|
|
6623
|
+
"type": "string"
|
|
6624
|
+
},
|
|
6625
|
+
{
|
|
6626
|
+
"type": "undefined"
|
|
6627
|
+
}
|
|
6628
|
+
],
|
|
6629
|
+
"optional": true,
|
|
6630
|
+
"required": false
|
|
6631
|
+
},
|
|
6632
|
+
{
|
|
6633
|
+
"name": "ifNotDefined",
|
|
6634
|
+
"type": "string | undefined",
|
|
6635
|
+
"complexType": {
|
|
6636
|
+
"original": "string",
|
|
6637
|
+
"resolved": "string | undefined",
|
|
6638
|
+
"references": {}
|
|
6639
|
+
},
|
|
6640
|
+
"mutable": false,
|
|
6641
|
+
"attr": "if-not-defined",
|
|
6642
|
+
"reflectToAttr": true,
|
|
6643
|
+
"docs": "Verifies whether the specified fields are not defined.",
|
|
6644
|
+
"docsTags": [],
|
|
6645
|
+
"values": [
|
|
6646
|
+
{
|
|
6647
|
+
"type": "string"
|
|
6648
|
+
},
|
|
6649
|
+
{
|
|
6650
|
+
"type": "undefined"
|
|
6651
|
+
}
|
|
6652
|
+
],
|
|
6653
|
+
"optional": true,
|
|
6654
|
+
"required": false
|
|
6655
|
+
},
|
|
6656
|
+
{
|
|
6657
|
+
"name": "mustMatch",
|
|
6658
|
+
"type": "{ [x: string]: string[]; }",
|
|
6659
|
+
"complexType": {
|
|
6660
|
+
"original": "Record<string, string[]>",
|
|
6661
|
+
"resolved": "{ [x: string]: string[]; }",
|
|
6662
|
+
"references": {
|
|
6663
|
+
"Record": {
|
|
6664
|
+
"location": "global",
|
|
6665
|
+
"id": "global::Record"
|
|
6666
|
+
}
|
|
6667
|
+
}
|
|
6668
|
+
},
|
|
6669
|
+
"mutable": false,
|
|
6670
|
+
"reflectToAttr": false,
|
|
6671
|
+
"docs": "Verifies whether the specified fields match the specified values.",
|
|
6672
|
+
"docsTags": [
|
|
6673
|
+
{
|
|
6674
|
+
"name": "type",
|
|
6675
|
+
"text": "{Record<string, string[]>}"
|
|
6676
|
+
}
|
|
6677
|
+
],
|
|
6678
|
+
"default": "{}",
|
|
6679
|
+
"values": [
|
|
6680
|
+
{
|
|
6681
|
+
"type": "{ [x: string]: string[]; }"
|
|
6682
|
+
}
|
|
6683
|
+
],
|
|
6684
|
+
"optional": false,
|
|
6685
|
+
"required": false
|
|
6686
|
+
},
|
|
6687
|
+
{
|
|
6688
|
+
"name": "mustNotMatch",
|
|
6689
|
+
"type": "{ [x: string]: string[]; }",
|
|
6690
|
+
"complexType": {
|
|
6691
|
+
"original": "Record<string, string[]>",
|
|
6692
|
+
"resolved": "{ [x: string]: string[]; }",
|
|
6693
|
+
"references": {
|
|
6694
|
+
"Record": {
|
|
6695
|
+
"location": "global",
|
|
6696
|
+
"id": "global::Record"
|
|
6697
|
+
}
|
|
6698
|
+
}
|
|
6699
|
+
},
|
|
6700
|
+
"mutable": false,
|
|
6701
|
+
"reflectToAttr": false,
|
|
6702
|
+
"docs": "Verifies whether the specified fields do not match the specified values.",
|
|
6703
|
+
"docsTags": [
|
|
6704
|
+
{
|
|
6705
|
+
"name": "type",
|
|
6706
|
+
"text": "{Record<string, string[]>}"
|
|
6707
|
+
}
|
|
6708
|
+
],
|
|
6709
|
+
"default": "{}",
|
|
6710
|
+
"values": [
|
|
6711
|
+
{
|
|
6712
|
+
"type": "{ [x: string]: string[]; }"
|
|
6713
|
+
}
|
|
6714
|
+
],
|
|
6715
|
+
"optional": false,
|
|
6716
|
+
"required": false
|
|
6717
|
+
}
|
|
6718
|
+
],
|
|
6719
|
+
"methods": [],
|
|
6720
|
+
"events": [],
|
|
6721
|
+
"listeners": [],
|
|
6722
|
+
"styles": [],
|
|
6723
|
+
"slots": [],
|
|
6724
|
+
"parts": [],
|
|
6725
|
+
"dependents": [],
|
|
6726
|
+
"dependencies": [],
|
|
6727
|
+
"dependencyGraph": {}
|
|
6728
|
+
},
|
|
6565
6729
|
{
|
|
6566
6730
|
"filePath": "src/components/commerce/atomic-product-image/atomic-product-image.tsx",
|
|
6567
6731
|
"encapsulation": "shadow",
|
|
@@ -7076,10 +7240,10 @@
|
|
|
7076
7240
|
"props": [
|
|
7077
7241
|
{
|
|
7078
7242
|
"name": "imageSize",
|
|
7079
|
-
"type": "undefined | ({ readonly [x: number]: string; [Symbol.iterator]: () => IterableIterator<string>;
|
|
7243
|
+
"type": "undefined | ({ readonly [x: number]: string; [Symbol.iterator]: () => IterableIterator<string>; normalize: { (form: \"NFC\" | \"NFD\" | \"NFKC\" | \"NFKD\"): string; (form?: string | undefined): string; }; charAt: (pos: number) => string; charCodeAt: (index: number) => number; concat: (...strings: string[]) => string; indexOf: (searchString: string, position?: number | undefined) => number; lastIndexOf: (searchString: string, position?: number | undefined) => number; localeCompare: { (that: string): number; (that: string, locales?: string | string[] | undefined, options?: CollatorOptions | undefined): number; (that: string, locales?: LocalesArgument, options?: CollatorOptions | undefined): number; }; match: { (regexp: string | RegExp): RegExpMatchArray | null; (matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null; }; replace: { (searchValue: string | RegExp, replaceValue: string): string; (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; (searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string; (searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string; }; search: { (regexp: string | RegExp): number; (searcher: { [Symbol.search](string: string): number; }): number; }; slice: (start?: number | undefined, end?: number | undefined) => string; split: { (separator: string | RegExp, limit?: number | undefined): string[]; (splitter: { [Symbol.split](string: string, limit?: number | undefined): string[]; }, limit?: number | undefined): string[]; }; substring: (start: number, end?: number | undefined) => string; toLowerCase: () => string; toLocaleLowerCase: { (locales?: string | string[] | undefined): string; (locales?: LocalesArgument): string; }; toUpperCase: () => string; toLocaleUpperCase: { (locales?: string | string[] | undefined): string; (locales?: LocalesArgument): string; }; trim: () => string; readonly length: number; substr: (from: number, length?: number | undefined) => string; codePointAt: (pos: number) => number | undefined; includes: (searchString: string, position?: number | undefined) => boolean; endsWith: (searchString: string, endPosition?: number | undefined) => boolean; repeat: (count: number) => string; startsWith: (searchString: string, position?: number | undefined) => boolean; anchor: (name: string) => string; big: () => string; blink: () => string; bold: () => string; fixed: () => string; fontcolor: (color: string) => string; fontsize: { (size: number): string; (size: string): string; }; italics: () => string; link: (url: string) => string; small: () => string; strike: () => string; sub: () => string; sup: () => string; padStart: { (maxLength: number, fillString?: string | undefined): string; (length: number, fillStr?: string | undefined): string; }; padEnd: { (maxLength: number, fillString?: string | undefined): string; (length: number, fillStr?: string | undefined): string; }; trimEnd: () => string; trimStart: () => string; trimLeft: () => string; trimRight: () => string; matchAll: (regexp: RegExp) => IterableIterator<RegExpExecArray>; replaceAll: { (searchValue: string | RegExp, replaceValue: string): string; (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; }; at: { (index: number): string | undefined; (index: number): string; }; escapeHTML: () => string; unescapeHTML: () => string; toString: () => string; valueOf: () => string; })",
|
|
7080
7244
|
"complexType": {
|
|
7081
7245
|
"original": "Omit<ItemDisplayImageSize, 'icon'>",
|
|
7082
|
-
"resolved": "undefined | ({ readonly [x: number]: string; [Symbol.iterator]: () => IterableIterator<string>;
|
|
7246
|
+
"resolved": "undefined | ({ readonly [x: number]: string; [Symbol.iterator]: () => IterableIterator<string>; normalize: { (form: \"NFC\" | \"NFD\" | \"NFKC\" | \"NFKD\"): string; (form?: string | undefined): string; }; charAt: (pos: number) => string; charCodeAt: (index: number) => number; concat: (...strings: string[]) => string; indexOf: (searchString: string, position?: number | undefined) => number; lastIndexOf: (searchString: string, position?: number | undefined) => number; localeCompare: { (that: string): number; (that: string, locales?: string | string[] | undefined, options?: CollatorOptions | undefined): number; (that: string, locales?: LocalesArgument, options?: CollatorOptions | undefined): number; }; match: { (regexp: string | RegExp): RegExpMatchArray | null; (matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null; }; replace: { (searchValue: string | RegExp, replaceValue: string): string; (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; (searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string; (searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string; }; search: { (regexp: string | RegExp): number; (searcher: { [Symbol.search](string: string): number; }): number; }; slice: (start?: number | undefined, end?: number | undefined) => string; split: { (separator: string | RegExp, limit?: number | undefined): string[]; (splitter: { [Symbol.split](string: string, limit?: number | undefined): string[]; }, limit?: number | undefined): string[]; }; substring: (start: number, end?: number | undefined) => string; toLowerCase: () => string; toLocaleLowerCase: { (locales?: string | string[] | undefined): string; (locales?: LocalesArgument): string; }; toUpperCase: () => string; toLocaleUpperCase: { (locales?: string | string[] | undefined): string; (locales?: LocalesArgument): string; }; trim: () => string; readonly length: number; substr: (from: number, length?: number | undefined) => string; codePointAt: (pos: number) => number | undefined; includes: (searchString: string, position?: number | undefined) => boolean; endsWith: (searchString: string, endPosition?: number | undefined) => boolean; repeat: (count: number) => string; startsWith: (searchString: string, position?: number | undefined) => boolean; anchor: (name: string) => string; big: () => string; blink: () => string; bold: () => string; fixed: () => string; fontcolor: (color: string) => string; fontsize: { (size: number): string; (size: string): string; }; italics: () => string; link: (url: string) => string; small: () => string; strike: () => string; sub: () => string; sup: () => string; padStart: { (maxLength: number, fillString?: string | undefined): string; (length: number, fillStr?: string | undefined): string; }; padEnd: { (maxLength: number, fillString?: string | undefined): string; (length: number, fillStr?: string | undefined): string; }; trimEnd: () => string; trimStart: () => string; trimLeft: () => string; trimRight: () => string; matchAll: (regexp: RegExp) => IterableIterator<RegExpExecArray>; replaceAll: { (searchValue: string | RegExp, replaceValue: string): string; (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; }; at: { (index: number): string | undefined; (index: number): string; }; escapeHTML: () => string; unescapeHTML: () => string; toString: () => string; valueOf: () => string; })",
|
|
7083
7247
|
"references": {
|
|
7084
7248
|
"Omit": {
|
|
7085
7249
|
"location": "global",
|
|
@@ -7101,28 +7265,7 @@
|
|
|
7101
7265
|
"type": "undefined"
|
|
7102
7266
|
},
|
|
7103
7267
|
{
|
|
7104
|
-
"type": "({ readonly [x: number]: string; [Symbol.iterator]: () => IterableIterator<string>;
|
|
7105
|
-
},
|
|
7106
|
-
{
|
|
7107
|
-
"type": "undefined, end?: number"
|
|
7108
|
-
},
|
|
7109
|
-
{
|
|
7110
|
-
"type": "undefined) => string; indexOf: (searchString: string, position?: number"
|
|
7111
|
-
},
|
|
7112
|
-
{
|
|
7113
|
-
"type": "undefined) => number; lastIndexOf: (searchString: string, position?: number"
|
|
7114
|
-
},
|
|
7115
|
-
{
|
|
7116
|
-
"type": "undefined) => number; includes: (searchString: string, position?: number"
|
|
7117
|
-
},
|
|
7118
|
-
{
|
|
7119
|
-
"type": "undefined) => boolean; at: { (index: number): string"
|
|
7120
|
-
},
|
|
7121
|
-
{
|
|
7122
|
-
"type": "undefined; (index: number): string; }; link: (url: string) => string; search: { (regexp: string"
|
|
7123
|
-
},
|
|
7124
|
-
{
|
|
7125
|
-
"type": "RegExp): number; (searcher: { [Symbol.search](string: string): number; }): number; }; small: () => string; sub: () => string; sup: () => string; big: () => string; blink: () => string; strike: () => string; normalize: { (form: \"NFC\""
|
|
7268
|
+
"type": "({ readonly [x: number]: string; [Symbol.iterator]: () => IterableIterator<string>; normalize: { (form: \"NFC\""
|
|
7126
7269
|
},
|
|
7127
7270
|
{
|
|
7128
7271
|
"value": "NFD",
|
|
@@ -7136,7 +7279,13 @@
|
|
|
7136
7279
|
"type": "\"NFKD\"): string; (form?: string"
|
|
7137
7280
|
},
|
|
7138
7281
|
{
|
|
7139
|
-
"type": "undefined): string; }; charAt: (pos: number) => string; charCodeAt: (index: number) => number;
|
|
7282
|
+
"type": "undefined): string; }; charAt: (pos: number) => string; charCodeAt: (index: number) => number; concat: (...strings: string[]) => string; indexOf: (searchString: string, position?: number"
|
|
7283
|
+
},
|
|
7284
|
+
{
|
|
7285
|
+
"type": "undefined) => number; lastIndexOf: (searchString: string, position?: number"
|
|
7286
|
+
},
|
|
7287
|
+
{
|
|
7288
|
+
"type": "undefined) => number; localeCompare: { (that: string): number; (that: string, locales?: string"
|
|
7140
7289
|
},
|
|
7141
7290
|
{
|
|
7142
7291
|
"type": "string[]"
|
|
@@ -7166,7 +7315,16 @@
|
|
|
7166
7315
|
"type": "RegExp, replaceValue: string): string; (searchValue: string"
|
|
7167
7316
|
},
|
|
7168
7317
|
{
|
|
7169
|
-
"type": "RegExp, replacer: (substring: string, ...args: any[]) => string): string; (searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string; (searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string; };
|
|
7318
|
+
"type": "RegExp, replacer: (substring: string, ...args: any[]) => string): string; (searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string; (searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string; }; search: { (regexp: string"
|
|
7319
|
+
},
|
|
7320
|
+
{
|
|
7321
|
+
"type": "RegExp): number; (searcher: { [Symbol.search](string: string): number; }): number; }; slice: (start?: number"
|
|
7322
|
+
},
|
|
7323
|
+
{
|
|
7324
|
+
"type": "undefined, end?: number"
|
|
7325
|
+
},
|
|
7326
|
+
{
|
|
7327
|
+
"type": "undefined) => string; split: { (separator: string"
|
|
7170
7328
|
},
|
|
7171
7329
|
{
|
|
7172
7330
|
"type": "RegExp, limit?: number"
|
|
@@ -7193,19 +7351,22 @@
|
|
|
7193
7351
|
"type": "string[]"
|
|
7194
7352
|
},
|
|
7195
7353
|
{
|
|
7196
|
-
"type": "undefined): string; (locales?: LocalesArgument): string; }; trim: () => string; substr: (from: number, length?: number"
|
|
7354
|
+
"type": "undefined): string; (locales?: LocalesArgument): string; }; trim: () => string; readonly length: number; substr: (from: number, length?: number"
|
|
7197
7355
|
},
|
|
7198
7356
|
{
|
|
7199
7357
|
"type": "undefined) => string; codePointAt: (pos: number) => number"
|
|
7200
7358
|
},
|
|
7201
7359
|
{
|
|
7202
|
-
"type": "undefined;
|
|
7360
|
+
"type": "undefined; includes: (searchString: string, position?: number"
|
|
7361
|
+
},
|
|
7362
|
+
{
|
|
7363
|
+
"type": "undefined) => boolean; endsWith: (searchString: string, endPosition?: number"
|
|
7203
7364
|
},
|
|
7204
7365
|
{
|
|
7205
7366
|
"type": "undefined) => boolean; repeat: (count: number) => string; startsWith: (searchString: string, position?: number"
|
|
7206
7367
|
},
|
|
7207
7368
|
{
|
|
7208
|
-
"type": "undefined) => boolean; anchor: (name: string) => string; bold: () => string; fixed: () => string; fontcolor: (color: string) => string; fontsize: { (size: number): string; (size: string): string; }; italics: () => string; padStart: { (maxLength: number, fillString?: string"
|
|
7369
|
+
"type": "undefined) => boolean; anchor: (name: string) => string; big: () => string; blink: () => string; bold: () => string; fixed: () => string; fontcolor: (color: string) => string; fontsize: { (size: number): string; (size: string): string; }; italics: () => string; link: (url: string) => string; small: () => string; strike: () => string; sub: () => string; sup: () => string; padStart: { (maxLength: number, fillString?: string"
|
|
7209
7370
|
},
|
|
7210
7371
|
{
|
|
7211
7372
|
"type": "undefined): string; (length: number, fillStr?: string"
|
|
@@ -7223,7 +7384,10 @@
|
|
|
7223
7384
|
"type": "RegExp, replaceValue: string): string; (searchValue: string"
|
|
7224
7385
|
},
|
|
7225
7386
|
{
|
|
7226
|
-
"type": "RegExp, replacer: (substring: string, ...args: any[]) => string): string; };
|
|
7387
|
+
"type": "RegExp, replacer: (substring: string, ...args: any[]) => string): string; }; at: { (index: number): string"
|
|
7388
|
+
},
|
|
7389
|
+
{
|
|
7390
|
+
"type": "undefined; (index: number): string; }; escapeHTML: () => string; unescapeHTML: () => string; toString: () => string; valueOf: () => string; })"
|
|
7227
7391
|
}
|
|
7228
7392
|
],
|
|
7229
7393
|
"optional": true,
|
|
@@ -14778,10 +14942,12 @@
|
|
|
14778
14942
|
"parts": [],
|
|
14779
14943
|
"dependents": [],
|
|
14780
14944
|
"dependencies": [
|
|
14945
|
+
"atomic-aria-live",
|
|
14781
14946
|
"atomic-relevance-inspector"
|
|
14782
14947
|
],
|
|
14783
14948
|
"dependencyGraph": {
|
|
14784
14949
|
"atomic-search-interface": [
|
|
14950
|
+
"atomic-aria-live",
|
|
14785
14951
|
"atomic-relevance-inspector"
|
|
14786
14952
|
],
|
|
14787
14953
|
"atomic-relevance-inspector": [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coveo/atomic",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.31.2-pre.
|
|
4
|
+
"version": "3.31.2-pre.214bb00aea",
|
|
5
5
|
"description": "A web-component library for building modern UIs interfacing with the Coveo platform",
|
|
6
6
|
"homepage": "https://docs.coveo.com/en/atomic/latest/",
|
|
7
7
|
"repository": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@lit/context": "1.1.6",
|
|
74
74
|
"@coveo/bueno": "1.0.24",
|
|
75
|
-
"@coveo/headless": "3.27.8-pre.
|
|
75
|
+
"@coveo/headless": "3.27.8-pre.214bb00aea",
|
|
76
76
|
"@popperjs/core": "2.11.8",
|
|
77
77
|
"@salesforce-ux/design-system": "2.27.2",
|
|
78
78
|
"@stencil/core": "4.20.0",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
},
|
|
159
159
|
"peerDependencies": {
|
|
160
160
|
"@coveo/bueno": "1.0.24",
|
|
161
|
-
"@coveo/headless": "3.27.8-pre.
|
|
161
|
+
"@coveo/headless": "3.27.8-pre.214bb00aea",
|
|
162
162
|
"typescript": ">=5.0.0"
|
|
163
163
|
},
|
|
164
164
|
"peerDependenciesMeta": {
|
|
@@ -1,70 +0,0 @@
|
|
|
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 { html, LitElement } from 'lit';
|
|
8
|
-
import { customElement, property, state } from 'lit/decorators.js';
|
|
9
|
-
import { bindings } from "../../../decorators/bindings";
|
|
10
|
-
import { createProductContextController } from "../../../decorators/commerce/product-template-decorators";
|
|
11
|
-
import { errorGuard } from "../../../decorators/error-guard";
|
|
12
|
-
import { mapProperty } from "../../../utils/props-utils";
|
|
13
|
-
import { makeDefinedConditions, makeMatchConditions, } from '../../common/product-template/product-template-common';
|
|
14
|
-
/**
|
|
15
|
-
* The `atomic-product-field-condition` component renders its children only when all of the conditions specified through its props are satisfied.
|
|
16
|
-
* The condition properties can be based on any top-level product property of the `product` object, not restricted to fields (e.g., `ec_name`).
|
|
17
|
-
*
|
|
18
|
-
* @slot default - The content to render if the conditions are met.
|
|
19
|
-
*
|
|
20
|
-
* @alpha
|
|
21
|
-
*/
|
|
22
|
-
let AtomicProductFieldCondition = class AtomicProductFieldCondition extends LitElement {
|
|
23
|
-
constructor() {
|
|
24
|
-
super(...arguments);
|
|
25
|
-
this.productController = createProductContextController(this);
|
|
26
|
-
}
|
|
27
|
-
createRenderRoot() {
|
|
28
|
-
return this;
|
|
29
|
-
}
|
|
30
|
-
initialize() { }
|
|
31
|
-
get conditions() {
|
|
32
|
-
return [
|
|
33
|
-
...makeDefinedConditions(this.ifDefined, this.ifNotDefined),
|
|
34
|
-
...makeMatchConditions(this.mustMatch, this.mustNotMatch),
|
|
35
|
-
];
|
|
36
|
-
}
|
|
37
|
-
render() {
|
|
38
|
-
const product = this.productController.item;
|
|
39
|
-
if (!product || !this.conditions.every((condition) => condition(product))) {
|
|
40
|
-
this.remove();
|
|
41
|
-
}
|
|
42
|
-
return html `<slot></slot>`;
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
__decorate([
|
|
46
|
-
state()
|
|
47
|
-
], AtomicProductFieldCondition.prototype, "bindings", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
state()
|
|
50
|
-
], AtomicProductFieldCondition.prototype, "error", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
property({ type: String, attribute: 'if-defined' })
|
|
53
|
-
], AtomicProductFieldCondition.prototype, "ifDefined", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
property({ type: String, attribute: 'if-not-defined' })
|
|
56
|
-
], AtomicProductFieldCondition.prototype, "ifNotDefined", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
mapProperty({ splitValues: true, attributePrefix: 'must-match' })
|
|
59
|
-
], AtomicProductFieldCondition.prototype, "mustMatch", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
mapProperty({ splitValues: true, attributePrefix: 'must-not-match' })
|
|
62
|
-
], AtomicProductFieldCondition.prototype, "mustNotMatch", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
errorGuard()
|
|
65
|
-
], AtomicProductFieldCondition.prototype, "render", null);
|
|
66
|
-
AtomicProductFieldCondition = __decorate([
|
|
67
|
-
customElement('atomic-product-field-condition'),
|
|
68
|
-
bindings()
|
|
69
|
-
], AtomicProductFieldCondition);
|
|
70
|
-
export { AtomicProductFieldCondition };
|
|
@@ -1,102 +0,0 @@
|
|
|
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 { html, LitElement } from 'lit';
|
|
8
|
-
import { customElement, state } from 'lit/decorators.js';
|
|
9
|
-
import { styleMap } from 'lit/directives/style-map.js';
|
|
10
|
-
import { buildDebouncedQueue } from '../../../utils/debounce-utils';
|
|
11
|
-
import { randomID } from '../../../utils/utils';
|
|
12
|
-
/**
|
|
13
|
-
* The `atomic-aria-live` component notifies screen readers of changes in the search and commerce interfaces.
|
|
14
|
-
*
|
|
15
|
-
* @event atomic/accessibility/findAriaLive - Dispatches an event to find the `atomic-aria-live` element.
|
|
16
|
-
*/
|
|
17
|
-
let AtomicAriaLive = class AtomicAriaLive extends LitElement {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.regions = {};
|
|
21
|
-
this.messagesQueue = buildDebouncedQueue({ delay: 500 });
|
|
22
|
-
this.onFindAriaLive = (event) => {
|
|
23
|
-
const customEvent = event;
|
|
24
|
-
customEvent.detail.element = this;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
createRenderRoot() {
|
|
28
|
-
return this;
|
|
29
|
-
}
|
|
30
|
-
connectedCallback() {
|
|
31
|
-
super.connectedCallback();
|
|
32
|
-
this.ariaLiveId = randomID('atomic-aria-live-');
|
|
33
|
-
document.addEventListener('atomic/accessibility/findAriaLive', this.onFindAriaLive);
|
|
34
|
-
}
|
|
35
|
-
disconnectedCallback() {
|
|
36
|
-
super.disconnectedCallback();
|
|
37
|
-
this.messagesQueue.clear();
|
|
38
|
-
document.removeEventListener('atomic/accessibility/findAriaLive', this.onFindAriaLive);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Updates the message and assertiveness for a specific ARIA live region.
|
|
42
|
-
* If a message is provided, the update is debounced to avoid rapid changes.
|
|
43
|
-
* If the message is empty, any pending update is canceled and the region is cleared immediately.
|
|
44
|
-
*
|
|
45
|
-
* @param region - The name of the ARIA live region to update.
|
|
46
|
-
* @param message - The message to announce in the region.
|
|
47
|
-
* @param assertive - Whether the region should use 'assertive' or 'polite' mode.
|
|
48
|
-
*/
|
|
49
|
-
updateMessage(region, message, assertive) {
|
|
50
|
-
const updateRegion = () => {
|
|
51
|
-
this.regions = { ...this.regions, [region]: { assertive, message } };
|
|
52
|
-
};
|
|
53
|
-
if (message) {
|
|
54
|
-
this.messagesQueue.enqueue(updateRegion, region);
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
this.messagesQueue.cancelActionIfQueued(region);
|
|
58
|
-
updateRegion();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Registers a new ARIA live region if it does not already exist.
|
|
63
|
-
*
|
|
64
|
-
* @param region - The name of the ARIA live region to register.
|
|
65
|
-
* @param assertive - Whether the region should use 'assertive' or 'polite' mode.
|
|
66
|
-
*/
|
|
67
|
-
registerRegion(region, assertive) {
|
|
68
|
-
if (region in this.regions) {
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
this.regions = { ...this.regions, [region]: { assertive, message: '' } };
|
|
72
|
-
}
|
|
73
|
-
render() {
|
|
74
|
-
const hostStyles = {
|
|
75
|
-
position: 'absolute',
|
|
76
|
-
display: 'block',
|
|
77
|
-
height: '0',
|
|
78
|
-
overflow: 'hidden',
|
|
79
|
-
margin: '0',
|
|
80
|
-
};
|
|
81
|
-
return html `
|
|
82
|
-
<div style=${styleMap(hostStyles)}>
|
|
83
|
-
${Object.entries(this.regions).map(([regionName, { assertive, message }]) => html `
|
|
84
|
-
<div
|
|
85
|
-
id="${this.ariaLiveId}-${regionName}"
|
|
86
|
-
aria-live="${assertive ? 'assertive' : 'polite'}"
|
|
87
|
-
role="status"
|
|
88
|
-
>
|
|
89
|
-
${message}
|
|
90
|
-
</div>
|
|
91
|
-
`)}
|
|
92
|
-
</div>
|
|
93
|
-
`;
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
__decorate([
|
|
97
|
-
state()
|
|
98
|
-
], AtomicAriaLive.prototype, "regions", void 0);
|
|
99
|
-
AtomicAriaLive = __decorate([
|
|
100
|
-
customElement('atomic-aria-live')
|
|
101
|
-
], AtomicAriaLive);
|
|
102
|
-
export { AtomicAriaLive };
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import Backend from 'i18next-http-backend';
|
|
2
|
-
import { setCoveoGlobal } from "../../../global/environment";
|
|
3
|
-
import { loadDayjsLocale } from "../../../utils/dayjs-locales";
|
|
4
|
-
import { i18nBackendOptions, i18nTranslationNamespace, init18n } from './i18n';
|
|
5
|
-
export class InterfaceController {
|
|
6
|
-
constructor(host, globalVariableName) {
|
|
7
|
-
this.hangingComponentsInitialization = [];
|
|
8
|
-
this.host = host;
|
|
9
|
-
this.host.addController(this);
|
|
10
|
-
setCoveoGlobal(globalVariableName);
|
|
11
|
-
}
|
|
12
|
-
hostConnected() {
|
|
13
|
-
this.i18nPromise = init18n(this.host);
|
|
14
|
-
this.initAriaLive();
|
|
15
|
-
}
|
|
16
|
-
hostDisconnected() {
|
|
17
|
-
this.removeAriaLive();
|
|
18
|
-
}
|
|
19
|
-
onComponentInitializing(event) {
|
|
20
|
-
event.preventDefault();
|
|
21
|
-
event.stopPropagation();
|
|
22
|
-
if (this.host.engine) {
|
|
23
|
-
event.detail(this.host.bindings);
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
this.hangingComponentsInitialization.push(event);
|
|
27
|
-
}
|
|
28
|
-
async onInitialization(initEngine) {
|
|
29
|
-
if (this.host.engine) {
|
|
30
|
-
this.host.engine.logger.warn(`The ${this.interfaceTagname} component "initialize" has already been called.`, this.host);
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
this.host.updateIconAssetsPath();
|
|
34
|
-
initEngine();
|
|
35
|
-
if (this.host.registerFieldsToInclude) {
|
|
36
|
-
this.host.registerFieldsToInclude();
|
|
37
|
-
}
|
|
38
|
-
loadDayjsLocale(this.host.language || 'en');
|
|
39
|
-
await this.i18nPromise;
|
|
40
|
-
this.initComponents();
|
|
41
|
-
}
|
|
42
|
-
onAnalyticsChange() {
|
|
43
|
-
const { engine, analytics } = this.host;
|
|
44
|
-
if (!this.engineIsCreated(engine)) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
if (!analytics) {
|
|
48
|
-
engine.disableAnalytics();
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
engine.enableAnalytics();
|
|
52
|
-
}
|
|
53
|
-
onLanguageChange(newLanguage) {
|
|
54
|
-
const language = newLanguage ?? this.host.language;
|
|
55
|
-
const languageWithFallback = language ?? 'en';
|
|
56
|
-
const { i18n } = this.host;
|
|
57
|
-
loadDayjsLocale(languageWithFallback);
|
|
58
|
-
new Backend(i18n.services, i18nBackendOptions(this.host)).read(languageWithFallback.split('-')[0], i18nTranslationNamespace, (_, data) => {
|
|
59
|
-
i18n.addResourceBundle(languageWithFallback.split('-')[0], i18nTranslationNamespace, data, true, false);
|
|
60
|
-
i18n.changeLanguage(language);
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
engineIsCreated(engine) {
|
|
64
|
-
if (!engine) {
|
|
65
|
-
console.error(`You have to call "initialize" on the ${this.interfaceTagname} component before modifying the props or calling other public methods.`, this.host);
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
return true;
|
|
69
|
-
}
|
|
70
|
-
get interfaceTagname() {
|
|
71
|
-
return this.host.tagName.toLowerCase();
|
|
72
|
-
}
|
|
73
|
-
initComponents() {
|
|
74
|
-
this.hangingComponentsInitialization.forEach((event) => event.detail(this.host.bindings));
|
|
75
|
-
}
|
|
76
|
-
initAriaLive() {
|
|
77
|
-
if (Array.from(this.host.children).some((element) => element.tagName === 'ATOMIC-ARIA-LIVE')) {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
const ariaLive = document.createElement('atomic-aria-live');
|
|
81
|
-
this.host.prepend(ariaLive);
|
|
82
|
-
}
|
|
83
|
-
removeAriaLive() {
|
|
84
|
-
const ariaLive = this.host.querySelector('atomic-aria-live');
|
|
85
|
-
if (ariaLive) {
|
|
86
|
-
ariaLive.remove();
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["debounce","execute","wait","timer","args","clearTimeout","Promise","resolve","setTimeout"],"sources":["src/utils/debounce-utils.ts"],"sourcesContent":["export interface DebouncedQueueOptions {\n delay: number;\n}\n\nexport interface DebouncedQueue {\n enqueue(execute: () => void, uniqueId?: string): void;\n clear(): void;\n cancelActionIfQueued(id: string): void;\n}\n\ninterface QueuedAction {\n id?: string;\n execute: () => void;\n}\n\nexport function buildDebouncedQueue(\n options: DebouncedQueueOptions\n): DebouncedQueue {\n let actions: QueuedAction[] = [];\n let intervalId: ReturnType<typeof setInterval> | null = null;\n\n function dequeueAction() {\n const action = actions.shift();\n if (action) {\n action.execute();\n } else {\n clearInterval(intervalId!);\n intervalId = null;\n }\n }\n\n function cancelActionIfQueued(id: string) {\n actions = actions.filter((action) => action.id !== id);\n }\n\n return {\n enqueue(execute: () => void, uniqueId?: string) {\n if (uniqueId) {\n cancelActionIfQueued(uniqueId);\n }\n actions.push({id: uniqueId, execute});\n if (intervalId === null) {\n dequeueAction();\n intervalId = setInterval(dequeueAction, options.delay);\n }\n },\n clear() {\n actions = [];\n },\n cancelActionIfQueued,\n };\n}\n\nexport function debounce<\n ExecuteParameters extends unknown[],\n ExecuteReturnType,\n>(\n execute: (\n ...args: ExecuteParameters\n ) => Promise<ExecuteReturnType> | ExecuteReturnType,\n wait: number\n) {\n let timer: ReturnType<typeof setTimeout>;\n\n return (...args: ExecuteParameters): Promise<ExecuteReturnType> => {\n clearTimeout(timer);\n return new Promise((resolve) => {\n timer = setTimeout(() => resolve(execute(...args)), wait);\n });\n };\n}\n"],"mappings":"SAqDgBA,EAIdC,EAGAC,GAEA,IAAIC,EAEJ,MAAO,IAAIC,KACTC,aAAaF,GACb,OAAO,IAAIG,SAASC,IAClBJ,EAAQK,YAAW,IAAMD,EAAQN,KAAWG,KAAQF,EAAK,GACzD,CAEN,Q","ignoreList":[]}
|