@coveo/atomic 3.32.3-pre.d8395b7e5a → 3.32.3-pre.d8ef4547c4

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.
Files changed (129) hide show
  1. package/dist/atomic/_atomic.esm.js +1 -1
  2. package/dist/atomic/components/analytics-config.js +1 -1
  3. package/dist/atomic/components/atomic-generated-answer.js +2 -4
  4. package/dist/atomic/components/atomic-generated-answer.js.map +1 -1
  5. package/dist/atomic/components/atomic-insight-generated-answer.js +2 -3
  6. package/dist/atomic/components/atomic-insight-generated-answer.js.map +1 -1
  7. package/dist/atomic/components/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.js +0 -2
  8. package/dist/atomic/components/components/commerce/atomic-commerce-category-facet/atomic-commerce-category-facet.js +3 -2
  9. package/dist/atomic/components/components/commerce/atomic-commerce-did-you-mean/atomic-commerce-did-you-mean.js +0 -2
  10. package/dist/atomic/components/components/commerce/atomic-commerce-facet/atomic-commerce-facet.js +4 -5
  11. package/dist/atomic/components/components/commerce/atomic-commerce-facets/atomic-commerce-facets.js +0 -1
  12. package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +1 -2
  13. package/dist/atomic/components/components/commerce/atomic-commerce-layout/atomic-commerce-layout.js +2 -1
  14. package/dist/atomic/components/components/commerce/atomic-commerce-layout/atomic-commerce-layout.tw.css.js +1 -1
  15. package/dist/atomic/components/components/commerce/atomic-commerce-no-products/atomic-commerce-no-products.js +0 -2
  16. package/dist/atomic/components/components/commerce/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.js +3 -5
  17. package/dist/atomic/components/components/commerce/atomic-commerce-pager/atomic-commerce-pager.js +0 -1
  18. package/dist/atomic/components/components/commerce/atomic-commerce-product-list/atomic-commerce-product-list.js +0 -2
  19. package/dist/atomic/components/components/commerce/atomic-commerce-products-per-page/atomic-commerce-products-per-page.js +0 -2
  20. package/dist/atomic/components/components/commerce/atomic-commerce-query-error/atomic-commerce-query-error.js +0 -2
  21. package/dist/atomic/components/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.js +0 -2
  22. package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +3 -1
  23. package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-list/atomic-commerce-recommendation-list.js +0 -1
  24. package/dist/atomic/components/components/commerce/atomic-commerce-refine-toggle/atomic-commerce-refine-toggle.js +0 -2
  25. package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +0 -2
  26. package/dist/atomic/components/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.js +1 -4
  27. package/dist/atomic/components/components/commerce/atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions.js +1 -2
  28. package/dist/atomic/components/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.js +0 -2
  29. package/dist/atomic/components/components/commerce/atomic-commerce-sort-dropdown/atomic-commerce-sort-dropdown.js +0 -2
  30. package/dist/atomic/components/components/commerce/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.js +3 -4
  31. package/dist/atomic/components/components/commerce/atomic-product-field-condition/atomic-product-field-condition.js +0 -2
  32. package/dist/atomic/components/components/commerce/atomic-product-link/atomic-product-link.js +2 -1
  33. package/dist/atomic/components/components/commerce/atomic-product-multi-value-text/atomic-product-multi-value-text.js +0 -2
  34. package/dist/atomic/components/components/commerce/atomic-product-numeric-field-value/atomic-product-numeric-field-value.js +0 -1
  35. package/dist/atomic/components/components/commerce/atomic-product-price/atomic-product-price.js +0 -1
  36. package/dist/atomic/components/components/commerce/atomic-product-rating/atomic-product-rating.js +0 -2
  37. package/dist/atomic/components/components/commerce/atomic-product-template/atomic-product-template.js +0 -2
  38. package/dist/atomic/components/components/common/atomic-facet-date-input/atomic-facet-date-input.js +4 -2
  39. package/dist/atomic/components/components/common/facets/facet-value-checkbox/facet-value-checkbox.js +1 -0
  40. package/dist/atomic/components/components/common/facets/facet-value-link/facet-value-link.js +1 -0
  41. package/dist/atomic/components/generated-answer-common.js +0 -23
  42. package/dist/atomic/components/generated-answer-common.js.map +1 -1
  43. package/dist/atomic/components/global/environment.js +1 -1
  44. package/dist/atomic/{p-8ace8433.entry.js → p-1fbcf15f.entry.js} +2 -2
  45. package/dist/atomic/p-2857ab2b.js +2 -0
  46. package/dist/atomic/p-2857ab2b.js.map +1 -0
  47. package/dist/atomic/p-50dc4fa2.entry.js +2 -0
  48. package/dist/atomic/p-50dc4fa2.entry.js.map +1 -0
  49. package/dist/atomic/{p-4fb01481.entry.js → p-7f62a39d.entry.js} +2 -2
  50. package/dist/atomic/{p-e74a4a8c.entry.js → p-81f316a4.entry.js} +2 -2
  51. package/dist/atomic/{p-0dc126bb.entry.js → p-e2135441.entry.js} +2 -2
  52. package/dist/atomic/p-e2135441.entry.js.map +1 -0
  53. package/dist/atomic/{p-320ab8c0.js → p-f0ec2e17.js} +2 -2
  54. package/dist/cjs/_loader.cjs.js +1 -1
  55. package/dist/cjs/{analytics-config-879b5a35.js → analytics-config-c1e1e561.js} +2 -2
  56. package/dist/cjs/{analytics-config-879b5a35.js.map → analytics-config-c1e1e561.js.map} +1 -1
  57. package/dist/cjs/atomic-generated-answer.cjs.entry.js +2 -4
  58. package/dist/cjs/atomic-generated-answer.cjs.entry.js.map +1 -1
  59. package/dist/cjs/atomic-insight-generated-answer.cjs.entry.js +2 -4
  60. package/dist/cjs/atomic-insight-generated-answer.cjs.entry.js.map +1 -1
  61. package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
  62. package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
  63. package/dist/cjs/atomic-search-interface.cjs.entry.js +1 -1
  64. package/dist/cjs/atomic.cjs.js +1 -1
  65. package/dist/cjs/{generated-answer-common-1f24d687.js → generated-answer-common-1f7e3c88.js} +1 -24
  66. package/dist/cjs/generated-answer-common-1f7e3c88.js.map +1 -0
  67. package/dist/cjs/version.cjs.js +2 -2
  68. package/dist/esm/_loader.js +1 -1
  69. package/dist/esm/{analytics-config-3175e6f5.js → analytics-config-38f7c123.js} +2 -2
  70. package/dist/esm/{analytics-config-3175e6f5.js.map → analytics-config-38f7c123.js.map} +1 -1
  71. package/dist/esm/atomic-generated-answer.entry.js +2 -4
  72. package/dist/esm/atomic-generated-answer.entry.js.map +1 -1
  73. package/dist/esm/atomic-insight-generated-answer.entry.js +2 -4
  74. package/dist/esm/atomic-insight-generated-answer.entry.js.map +1 -1
  75. package/dist/esm/atomic-insight-interface.entry.js +1 -1
  76. package/dist/esm/atomic-recs-interface.entry.js +1 -1
  77. package/dist/esm/atomic-search-interface.entry.js +1 -1
  78. package/dist/esm/atomic.js +1 -1
  79. package/dist/esm/{generated-answer-common-83e389e1.js → generated-answer-common-ee9bfc67.js} +1 -24
  80. package/dist/esm/generated-answer-common-ee9bfc67.js.map +1 -0
  81. package/dist/esm/version.js +2 -2
  82. package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +0 -2
  83. package/dist/types/components/commerce/atomic-commerce-category-facet/atomic-commerce-category-facet.d.ts +1 -3
  84. package/dist/types/components/commerce/atomic-commerce-did-you-mean/atomic-commerce-did-you-mean.d.ts +0 -2
  85. package/dist/types/components/commerce/atomic-commerce-facet/atomic-commerce-facet.d.ts +1 -5
  86. package/dist/types/components/commerce/atomic-commerce-facets/atomic-commerce-facets.d.ts +0 -1
  87. package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +1 -2
  88. package/dist/types/components/commerce/atomic-commerce-layout/atomic-commerce-layout.d.ts +2 -1
  89. package/dist/types/components/commerce/atomic-commerce-no-products/atomic-commerce-no-products.d.ts +0 -2
  90. package/dist/types/components/commerce/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.d.ts +1 -6
  91. package/dist/types/components/commerce/atomic-commerce-pager/atomic-commerce-pager.d.ts +0 -1
  92. package/dist/types/components/commerce/atomic-commerce-product-list/atomic-commerce-product-list.d.ts +0 -2
  93. package/dist/types/components/commerce/atomic-commerce-products-per-page/atomic-commerce-products-per-page.d.ts +0 -2
  94. package/dist/types/components/commerce/atomic-commerce-query-error/atomic-commerce-query-error.d.ts +0 -2
  95. package/dist/types/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.d.ts +0 -2
  96. package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +3 -1
  97. package/dist/types/components/commerce/atomic-commerce-recommendation-list/atomic-commerce-recommendation-list.d.ts +0 -1
  98. package/dist/types/components/commerce/atomic-commerce-refine-toggle/atomic-commerce-refine-toggle.d.ts +0 -2
  99. package/dist/types/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.d.ts +0 -2
  100. package/dist/types/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.d.ts +1 -4
  101. package/dist/types/components/commerce/atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions.d.ts +1 -2
  102. package/dist/types/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.d.ts +0 -2
  103. package/dist/types/components/commerce/atomic-commerce-sort-dropdown/atomic-commerce-sort-dropdown.d.ts +0 -2
  104. package/dist/types/components/commerce/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.d.ts +1 -5
  105. package/dist/types/components/commerce/atomic-product-field-condition/atomic-product-field-condition.d.ts +0 -2
  106. package/dist/types/components/commerce/atomic-product-link/atomic-product-link.d.ts +2 -1
  107. package/dist/types/components/commerce/atomic-product-multi-value-text/atomic-product-multi-value-text.d.ts +0 -2
  108. package/dist/types/components/commerce/atomic-product-numeric-field-value/atomic-product-numeric-field-value.d.ts +0 -1
  109. package/dist/types/components/commerce/atomic-product-price/atomic-product-price.d.ts +0 -1
  110. package/dist/types/components/commerce/atomic-product-rating/atomic-product-rating.d.ts +0 -2
  111. package/dist/types/components/commerce/atomic-product-template/atomic-product-template.d.ts +0 -2
  112. package/dist/types/components/common/atomic-facet-date-input/atomic-facet-date-input.d.ts +2 -3
  113. package/dist/types/components/common/generated-answer/generated-answer-common.d.ts +0 -1
  114. package/dist/types/components/insight/atomic-insight-generated-answer/atomic-insight-generated-answer.d.ts +3 -3
  115. package/dist/types/components/search/atomic-generated-answer/atomic-generated-answer.d.ts +3 -3
  116. package/dist/types/components.d.ts +8 -8
  117. package/docs/atomic-docs.json +6 -6
  118. package/package.json +3 -3
  119. package/dist/atomic/p-0dc126bb.entry.js.map +0 -1
  120. package/dist/atomic/p-c6e1a7ab.entry.js +0 -2
  121. package/dist/atomic/p-c6e1a7ab.entry.js.map +0 -1
  122. package/dist/atomic/p-cf3b7218.js +0 -2
  123. package/dist/atomic/p-cf3b7218.js.map +0 -1
  124. package/dist/cjs/generated-answer-common-1f24d687.js.map +0 -1
  125. package/dist/esm/generated-answer-common-83e389e1.js.map +0 -1
  126. /package/dist/atomic/{p-8ace8433.entry.js.map → p-1fbcf15f.entry.js.map} +0 -0
  127. /package/dist/atomic/{p-4fb01481.entry.js.map → p-7f62a39d.entry.js.map} +0 -0
  128. /package/dist/atomic/{p-e74a4a8c.entry.js.map → p-81f316a4.entry.js.map} +0 -0
  129. /package/dist/atomic/{p-320ab8c0.js.map → p-f0ec2e17.js.map} +0 -0
@@ -24,13 +24,12 @@ import { errorSelector, firstSearchExecutedSelector, noProductsSelector, } from
24
24
  import { getAnalyticsConfig } from './analytics-config';
25
25
  const FirstRequestExecutedFlag = 'firstRequestExecuted';
26
26
  /**
27
- * @alpha
28
27
  * The `atomic-commerce-interface` component is the parent to all other atomic commerce components in a commerce page
29
28
  * (except for `atomic-commerce-recommendation-list`, which must have
30
29
  * `atomic-commerce-recommendation-interface` as a parent). It handles the headless commerce engine and localization
31
30
  * configurations.
32
31
  *
33
- * @slot default - The default slot where you can add child components to the search box.
32
+ * @slot default - The default slot where you can add child components to the interface.
34
33
  */
35
34
  let AtomicCommerceInterface = class AtomicCommerceInterface extends ChildrenUpdateCompleteMixin(LitElement) {
36
35
  constructor() {
@@ -12,7 +12,8 @@ import { DEFAULT_MOBILE_BREAKPOINT } from '../../../utils/replace-breakpoint';
12
12
  import styles from './atomic-commerce-layout.tw.css';
13
13
  /**
14
14
  * The `atomic-commerce-layout` helps organize elements in the commerce page.
15
- * @alpha
15
+ *
16
+ * @slot default - The default slot where you can add child components to the layout.
16
17
  */
17
18
  let AtomicCommerceLayout = class AtomicCommerceLayout extends CommerceLayoutMixin(LitElement, unsafeCSS(styles)) {
18
19
  constructor() {
@@ -1,2 +1,2 @@
1
- const css = `.atomic-modal-opened{overflow-y:hidden}atomic-layout-section[section=search]{grid-area:atomic-section-search}atomic-layout-section[section=facets]{grid-area:atomic-section-facets}atomic-layout-section[section=main]{grid-area:atomic-section-main}atomic-layout-section[section=status]{grid-area:atomic-section-status}atomic-layout-section[section=pagination]{grid-area:atomic-section-pagination}atomic-commerce-layout{grid-template-areas:".atomic-section-search."".atomic-section-main.";grid-template-columns:var(--atomic-layout-spacing-x)minmax(0,1fr)var(--atomic-layout-spacing-x);width:100%;height:100%;display:none;& atomic-layout-section[section=search]{margin:var(--atomic-layout-spacing-y)0;max-width:var(--atomic-layout-max-search-box-input-width,678px);justify-self:center;width:100%;& atomic-commerce-search-box{&::part(suggestions-double-list){width:125%;max-width:var(--atomic-layout-max-search-box-double-suggestions-width,800px)}&::part(suggestions-left){flex-basis:var(--atomic-layout-search-box-left-suggestions-width,30%)}&::part(suggestions-right){flex-basis:calc(100% - var(--atomic-layout-search-box-left-suggestions-width,30%))}}}& atomic-layout-section[section=facets]{display:none;& atomic-commerce-facets *{margin-bottom:var(--atomic-layout-spacing-y)}}& atomic-layout-section[section=main]{margin-bottom:var(--atomic-layout-spacing-y)}& atomic-layout-section[section=horizontal-facets]{margin-bottom:var(--atomic-layout-spacing-y);flex-wrap:wrap;row-gap:.5rem;display:flex;&>atomic-popover{margin-right:.5rem;display:none}}& atomic-layout-section[section=horizontal-facets]>*{max-width:100%}& atomic-layout-section[section=status]{grid-template-areas:"atomic-breadbox atomic-breadbox""atomic-query-summary atomic-sort""atomic-did-you-mean atomic-did-you-mean""atomic-notifications atomic-notifications";justify-content:space-between;display:grid;& atomic-commerce-breadbox{grid-area:atomic-breadbox}& atomic-commerce-query-summary{grid-area:atomic-query-summary;align-self:center;overflow:hidden}& atomic-commerce-sort-dropdown{grid-area:atomic-sort;justify-self:end}& atomic-commerce-refine-toggle{grid-area:atomic-sort}& atomic-commerce-did-you-mean{grid-area:atomic-did-you-mean}& atomic-commerce-notifications{grid-area:atomic-notifications}}& atomic-layout-section[section=status]>*{margin-top:var(--atomic-layout-spacing-y)}& atomic-layout-section[section=pagination]{flex-direction:column;justify-content:space-between;align-items:center;display:flex;& atomic-commerce-load-more-products{width:100%}&:has(:only-child){justify-content:center}@media only screen and (width>=50rem){&{flex-direction:row}}}& atomic-layout-section[section=pagination]>*{margin-top:var(--atomic-layout-spacing-y)}}`;
1
+ const css = `.atomic-modal-opened{overflow-y:hidden}atomic-layout-section[section=search]{grid-area:atomic-section-search}atomic-layout-section[section=facets]{grid-area:atomic-section-facets}atomic-layout-section[section=main]{grid-area:atomic-section-main}atomic-layout-section[section=status]{grid-area:atomic-section-status}atomic-layout-section[section=pagination]{grid-area:atomic-section-pagination}atomic-commerce-layout{grid-template-areas:".atomic-section-search."".atomic-section-main.";grid-template-columns:var(--atomic-layout-spacing-x)minmax(0,1fr)var(--atomic-layout-spacing-x);width:100%;height:100%;display:none;& atomic-layout-section[section=search]{margin:var(--atomic-layout-spacing-y)0;max-width:var(--atomic-layout-max-search-box-input-width,678px);justify-self:center;width:100%;& atomic-commerce-search-box{&::part(suggestions-double-list){width:125%;max-width:var(--atomic-layout-max-search-box-double-suggestions-width,800px)}&::part(suggestions-left){flex-basis:var(--atomic-layout-search-box-left-suggestions-width,30%)}&::part(suggestions-right){flex-basis:calc(100% - var(--atomic-layout-search-box-left-suggestions-width,30%))}}}& atomic-layout-section[section=facets]{display:none;& atomic-commerce-facets *{margin-bottom:var(--atomic-layout-spacing-y)}}& atomic-layout-section[section=main]{margin-bottom:var(--atomic-layout-spacing-y)}& atomic-layout-section[section=horizontal-facets]{margin-bottom:var(--atomic-layout-spacing-y);flex-wrap:wrap;row-gap:.5rem;display:flex;&>atomic-popover{margin-right:.5rem;display:none}}& atomic-layout-section[section=horizontal-facets]>*{max-width:100%}& atomic-layout-section[section=status]{grid-template-areas:"atomic-breadbox atomic-breadbox""atomic-query-summary atomic-sort""atomic-did-you-mean atomic-did-you-mean""atomic-notifications atomic-notifications";justify-content:space-between;display:grid;& atomic-commerce-breadbox{grid-area:atomic-breadbox}& atomic-commerce-query-summary{grid-area:atomic-query-summary;align-self:center;overflow:hidden}& atomic-commerce-sort-dropdown{grid-area:atomic-sort;justify-self:end}& atomic-commerce-refine-toggle{grid-area:atomic-sort}& atomic-commerce-did-you-mean{grid-area:atomic-did-you-mean}& atomic-commerce-notifications{grid-area:atomic-notifications}}& atomic-layout-section[section=status]>*{margin-bottom:var(--atomic-layout-spacing-y)}& atomic-layout-section[section=pagination]{flex-direction:column;justify-content:space-between;align-items:center;display:flex;& atomic-commerce-load-more-products{width:100%}&:has(:only-child){justify-content:center}@media only screen and (width>=50rem){&{flex-direction:row}}}& atomic-layout-section[section=pagination]>*{margin-top:var(--atomic-layout-spacing-y)}}`;
2
2
  export default css;
@@ -20,8 +20,6 @@ import { renderNoItems } from '../../common/no-items/no-items.js';
20
20
  import { renderSearchTips } from '../../common/no-items/tips.js';
21
21
  import { getSummary } from '../../common/no-items/utils.js';
22
22
  /**
23
- * @alpha
24
- *
25
23
  * The `atomic-commerce-no-products` component displays search tips when there are no products. Any additional content slotted inside of its element will be displayed as well.
26
24
  *
27
25
  * @part no-results - The text indicating that no products were found for the search.
@@ -14,7 +14,6 @@ import { bindStateToController } from "../../../decorators/bind-state";
14
14
  import { bindingGuard } from "../../../decorators/binding-guard";
15
15
  import { errorGuard } from "../../../decorators/error-guard";
16
16
  import { withTailwindStyles } from "../../../decorators/with-tailwind-styles";
17
- import { InitializeBindingsMixin } from "../../../mixins/bindings-mixin";
18
17
  import { FocusTargetController } from "../../../utils/accessibility-utils";
19
18
  import { shouldDisplayInputForFacetRange } from '../../common/facets/facet-common';
20
19
  import { renderFacetContainer } from '../../common/facets/facet-container/facet-container';
@@ -22,6 +21,7 @@ import { renderFacetHeader } from '../../common/facets/facet-header/facet-header
22
21
  import { renderNumericFacetValue } from '../../common/facets/numeric-facet/value-link';
23
22
  import { defaultCurrencyFormatter, defaultNumberFormatter, } from '../../common/formats/format-common';
24
23
  import '../atomic-commerce-facet-number-input/atomic-commerce-facet-number-input';
24
+ import { bindings } from "../../../decorators/bindings";
25
25
  import styles from './atomic-commerce-numeric-facet.tw.css';
26
26
  /**
27
27
  * The `atomic-commerce-numeric-facet` component renders a commerce facet that allows the user to filter products using numeric ranges.
@@ -42,11 +42,8 @@ import styles from './atomic-commerce-numeric-facet.tw.css';
42
42
  * @part label-end - The label for the maximum value input field.
43
43
  * @part input-end - The input field to enter the maximum numeric value.
44
44
  * @part input-apply-button - The button to apply custom numeric range values.
45
- *
46
- * @internal
47
- *
48
45
  */
49
- let AtomicCommerceNumericFacet = class AtomicCommerceNumericFacet extends InitializeBindingsMixin(LitElement) {
46
+ let AtomicCommerceNumericFacet = class AtomicCommerceNumericFacet extends LitElement {
50
47
  constructor() {
51
48
  super(...arguments);
52
49
  /**
@@ -228,6 +225,7 @@ __decorate([
228
225
  ], AtomicCommerceNumericFacet.prototype, "render", null);
229
226
  AtomicCommerceNumericFacet = __decorate([
230
227
  customElement('atomic-commerce-numeric-facet'),
228
+ bindings(),
231
229
  withTailwindStyles
232
230
  ], AtomicCommerceNumericFacet);
233
231
  export { AtomicCommerceNumericFacet };
@@ -34,7 +34,6 @@ import { getCurrentPagesRange } from './commerce-pager-utils';
34
34
  * @part next-button-icon - The "next page" button icon.
35
35
  *
36
36
  * @event atomic/scrollToTop - Emitted when the user clicks the next or previous button, or a page button.
37
- * @alpha
38
37
  */
39
38
  let AtomicCommercePager = class AtomicCommercePager extends LitElement {
40
39
  constructor() {
@@ -46,8 +46,6 @@ import styles from './atomic-commerce-product-list.tw.css';
46
46
  * @part result-table-cell - The td elements nested under each tbody > tr when the display prop is set to "table".
47
47
  *
48
48
  * @slot default - The default slot where the product templates are defined.
49
- *
50
- * @alpha
51
49
  */
52
50
  let AtomicCommerceProductList = class AtomicCommerceProductList extends ChildrenUpdateCompleteMixin(LitElement) {
53
51
  constructor() {
@@ -26,8 +26,6 @@ import { randomID } from "../../../utils/utils.js";
26
26
  * @part buttons - The list of buttons.
27
27
  * @part button - The individual products per page buttons.
28
28
  * @part active-button - The active products per page button.
29
- *
30
- * @alpha
31
29
  */
32
30
  let AtomicCommerceProductsPerPage = class AtomicCommerceProductsPerPage extends LitElement {
33
31
  constructor() {
@@ -32,8 +32,6 @@ import { getAriaMessageFromErrorType } from '../../common/query-error/utils';
32
32
  * @part doc-link - A link to the relevant documentation.
33
33
  * @part more-info-btn - A button to request additional error information.
34
34
  * @part error-info - Additional error information.
35
- *
36
- * @alpha
37
35
  */
38
36
  let AtomicCommerceQueryError = class AtomicCommerceQueryError extends LitElement {
39
37
  constructor() {
@@ -24,8 +24,6 @@ import { getProductQuerySummaryI18nParameters } from '../../common/query-summary
24
24
  * @part highlight - The summary highlights.
25
25
  * @part query - The summary highlighted query.
26
26
  * @part placeholder - The query summary placeholder used while the search interface is initializing.
27
- *
28
- * @alpha
29
27
  */
30
28
  let AtomicCommerceQuerySummary = class AtomicCommerceQuerySummary extends LitElement {
31
29
  constructor() {
@@ -22,8 +22,10 @@ import { createCommerceRecommendationStore, } from './store.js';
22
22
  /**
23
23
  * The `atomic-commerce-recommendation-interface` component is meant to be used
24
24
  * as the parent of one or more `atomic-commerce-recommendation-list`
25
- * components. It handles the headless search engine and localization
25
+ * components. It handles the headless engine and localization
26
26
  * configurations.
27
+ *
28
+ * @slot default - The default slot where you can add child components to the interface.
27
29
  */
28
30
  let AtomicCommerceRecommendationInterface = class AtomicCommerceRecommendationInterface extends ChildrenUpdateCompleteMixin(LitElement) {
29
31
  constructor() {
@@ -32,7 +32,6 @@ import { randomID } from "../../../utils/utils";
32
32
  import styles from './atomic-commerce-recommendation-list.tw.css';
33
33
  /**
34
34
  * The `atomic-commerce-recommendation-list` component displays a list of product recommendations by applying one or more product templates.
35
- * @alpha
36
35
  *
37
36
  * @part result-list - The element containing the list of product recommendations.
38
37
  * @part result-list-grid-clickable-container - The parent of a recommended product and the clickable link encompassing it.
@@ -21,8 +21,6 @@ import { refineToggleGuard } from '../../common/refine-modal/guard';
21
21
  *
22
22
  * @part button - The refine toggle button.
23
23
  * @part placeholder - The placeholder shown while the first request is being executed.
24
- *
25
- * @alpha
26
24
  */
27
25
  let AtomicCommerceRefineToggle = class AtomicCommerceRefineToggle extends LitElement {
28
26
  initialize() {
@@ -73,8 +73,6 @@ import '../atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-
73
73
  * @part instant-results-show-all-button - The button inside the clickable suggestion from the `atomic-commerce-search-box-instant-products` component.
74
74
  *
75
75
  * @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.
76
- *
77
- * @alpha
78
76
  */
79
77
  let AtomicCommerceSearchBox = class AtomicCommerceSearchBox extends LitElement {
80
78
  constructor() {
@@ -15,9 +15,7 @@ import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js"
15
15
  import { encodeForDomAttribute } from "../../../utils/string-utils";
16
16
  import { ProductTemplateProvider } from '../product-list/product-template-provider';
17
17
  /**
18
- * The `atomic-commerce-search-box-instant-products` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of instant products behavior.
19
- *
20
- * This component does not support accessibility out-of-the-box. To do so, see [Instant Results Accessibility](https://docs.coveo.com/en/atomic/latest/usage/accessibility/#instant-results-accessibility).
18
+ * The `atomic-commerce-search-box-instant-products` component can be added as a child of an `atomic-commerce-search-box` component, allowing for the configuration of instant products behavior.
21
19
  *
22
20
  * This component is not supported on mobile.
23
21
  *
@@ -25,7 +23,6 @@ import { ProductTemplateProvider } from '../product-list/product-template-provid
25
23
  * @part instant-results-item - The individual instant product item.
26
24
  *
27
25
  * @slot default - The default slot where the instant products are rendered.
28
- * @alpha
29
26
  */
30
27
  let AtomicCommerceSearchBoxInstantProducts = class AtomicCommerceSearchBoxInstantProducts extends LitElement {
31
28
  constructor() {
@@ -12,8 +12,7 @@ import { dispatchSearchBoxSuggestionsEvent, } from "../../common/suggestions/sug
12
12
  import { errorGuard } from "../../../decorators/error-guard";
13
13
  const SearchIcon = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m6.4 0c3.5 0 6.4 2.9 6.4 6.4 0 1.4-.4 2.7-1.2 3.7l4 4c.4.4.4 1 .1 1.5l-.1.1c-.2.2-.5.3-.8.3s-.6-.1-.8-.3l-4-4c-1 .7-2.3 1.2-3.7 1.2-3.4-.1-6.3-3-6.3-6.5s2.9-6.4 6.4-6.4zm0 2.1c-2.3 0-4.3 1.9-4.3 4.3s1.9 4.3 4.3 4.3 4.3-1.9 4.3-4.3-1.9-4.3-4.3-4.3z\"/></svg>";
14
14
  /**
15
- * The `atomic-commerce-search-box-query-suggestions` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of query suggestion behavior.
16
- * @alpha
15
+ * The `atomic-commerce-search-box-query-suggestions` component can be added as a child of an `atomic-commerce-search-box` component, allowing for the configuration of query suggestion behavior.
17
16
  */
18
17
  let AtomicCommerceSearchBoxQuerySuggestions = class AtomicCommerceSearchBoxQuerySuggestions extends LitElement {
19
18
  constructor() {
@@ -15,8 +15,6 @@ import { getPartialRecentQueryClearElement, getPartialRecentQueryElement, render
15
15
  import { dispatchSearchBoxSuggestionsEvent, } from '../../common/suggestions/suggestions-common';
16
16
  /**
17
17
  * 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.
18
- *
19
- * @alpha
20
18
  */
21
19
  let AtomicCommerceSearchBoxRecentQueries = class AtomicCommerceSearchBoxRecentQueries extends LitElement {
22
20
  constructor() {
@@ -27,8 +27,6 @@ import { getSortByLabel, renderCommerceSortOption } from '../sort/option';
27
27
  * @part select - The `<select>` element of the dropdown list.
28
28
  * @part select-separator - The element separating the select from the icon.
29
29
  * @part placeholder - The dropdown placeholder for while the interface is initializing.
30
- *
31
- * @alpha
32
30
  */
33
31
  let AtomicCommerceSortDropdown = class AtomicCommerceSortDropdown extends LitElement {
34
32
  constructor() {
@@ -18,10 +18,10 @@ import { bindStateToController } from "../../../decorators/bind-state";
18
18
  import { bindingGuard } from "../../../decorators/binding-guard";
19
19
  import { errorGuard } from "../../../decorators/error-guard";
20
20
  import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
21
- import { InitializeBindingsMixin } from "../../../mixins/bindings-mixin";
22
21
  import { FocusTargetController } from "../../../utils/accessibility-utils";
23
22
  import { parseDate } from "../../../utils/date-utils";
24
23
  import '../../common/atomic-facet-date-input/atomic-facet-date-input';
24
+ import { bindings } from "../../../decorators/bindings";
25
25
  import { shouldDisplayInputForFacetRange } from '../../common/facets/facet-common';
26
26
  import styles from './atomic-commerce-timeframe-facet.tw.css';
27
27
  /**
@@ -42,10 +42,8 @@ import styles from './atomic-commerce-timeframe-facet.tw.css';
42
42
  * @part input-start - The start date input field.
43
43
  * @part input-end - The end date input field.
44
44
  * @part input-apply-button - The button to apply date range selection.
45
- *
46
- * @internal
47
45
  */
48
- let AtomicCommerceTimeframeFacet = class AtomicCommerceTimeframeFacet extends InitializeBindingsMixin(LitElement) {
46
+ let AtomicCommerceTimeframeFacet = class AtomicCommerceTimeframeFacet extends LitElement {
49
47
  constructor() {
50
48
  super(...arguments);
51
49
  /**
@@ -260,6 +258,7 @@ __decorate([
260
258
  ], AtomicCommerceTimeframeFacet.prototype, "render", null);
261
259
  AtomicCommerceTimeframeFacet = __decorate([
262
260
  customElement('atomic-commerce-timeframe-facet'),
261
+ bindings(),
263
262
  withTailwindStyles
264
263
  ], AtomicCommerceTimeframeFacet);
265
264
  export { AtomicCommerceTimeframeFacet };
@@ -16,8 +16,6 @@ import { makeDefinedConditions, makeMatchConditions, } from '../../common/produc
16
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
17
  *
18
18
  * @slot default - The content to render if the conditions are met.
19
- *
20
- * @alpha
21
19
  */
22
20
  let AtomicProductFieldCondition = class AtomicProductFieldCondition extends LitElement {
23
21
  constructor() {
@@ -22,7 +22,8 @@ import '../atomic-product-text/atomic-product-text';
22
22
  import { SlotsForNoShadowDOMMixin, } from "../../../mixins/slots-for-no-shadow-dom-mixin";
23
23
  import styles from './atomic-product-link.tw.css';
24
24
  /**
25
- * The `atomic-product-link` component automatically transforms a search product title into a clickable link that points to the original item.
25
+ * The `atomic-product-link` component automatically transforms a product `ec_name` into a clickable link that points to the original item.
26
+ *
26
27
  * @slot default - The content to display inside the link.
27
28
  * @slot attributes - Use `<a slot="attributes" target="_blank"></a>` to pass custom attributes to the generated link.
28
29
  */
@@ -15,8 +15,6 @@ import { withTailwindStyles } from "../../../decorators/with-tailwind-styles";
15
15
  import { getFieldValueCaption } from '../../../utils/field-utils';
16
16
  import { titleToKebab } from '../../../utils/utils';
17
17
  /**
18
- * @alpha
19
- *
20
18
  * The `atomic-product-multi-value-text` component renders the values of a multi-value string field.
21
19
  *
22
20
  * @part product-multi-value-text-list - The list of field values.
@@ -18,7 +18,6 @@ import { parseValue } from '../product-template-component-utils/product-utils.js
18
18
  * The `atomic-product-numeric-field-value` component renders the value of a number product field.
19
19
  *
20
20
  * The number can be formatted by adding a `atomic-format-number`, `atomic-format-currency` or `atomic-format-unit` component into this component.
21
- * @alpha
22
21
  */
23
22
  let AtomicProductNumericFieldValue = class AtomicProductNumericFieldValue extends LitElement {
24
23
  constructor() {
@@ -20,7 +20,6 @@ import { defaultCurrencyFormatter } from '../../common/formats/format-common.js'
20
20
  import { parseValue } from '../product-template-component-utils/product-utils.js';
21
21
  /**
22
22
  * The `atomic-product-price` component renders the price of a product.
23
- * @alpha
24
23
  */
25
24
  let AtomicProductPrice = class AtomicProductPrice extends LitElement {
26
25
  constructor() {
@@ -24,8 +24,6 @@ import { computeNumberOfStars, renderRating, } from '../../common/atomic-rating/
24
24
  * @cssprop --atomic-rating-icon-active-color - Color of the icon when active.
25
25
  * @cssprop --atomic-rating-icon-inactive-color - Color of the icon when inactive.
26
26
  * @cssprop --atomic-rating-icon-outline - Outline color of the icon.
27
- *
28
- * @alpha
29
27
  */
30
28
  let AtomicProductRating = class AtomicProductRating extends LitElement {
31
29
  constructor() {
@@ -33,8 +33,6 @@ import '../atomic-product-rating/atomic-product-rating';
33
33
  * @MapProp name: mustNotMatch;attr: must-not-match;docs: The field and values that must not be matched by a product item for the template to apply. For example, a template with the following attribute only applies to product items whose `filetype` is not `lithiummessage`: `must-not-match-filetype="lithiummessage";type: Record<string, string[]> ;default: {}
34
34
  * @slot default - The default slot where to insert the template element.
35
35
  * @slot link - A `template` element that contains a single `atomic-product-link` component.
36
- *
37
- * @alpha
38
36
  */
39
37
  let AtomicProductTemplate = class AtomicProductTemplate extends LitElement {
40
38
  constructor() {
@@ -11,9 +11,9 @@ import { ifDefined } from 'lit/directives/if-defined.js';
11
11
  import { createRef, ref } from 'lit/directives/ref.js';
12
12
  import { renderButton } from "../button";
13
13
  import { bindingGuard } from "../../../decorators/binding-guard";
14
+ import { bindings } from "../../../decorators/bindings";
14
15
  import { errorGuard } from "../../../decorators/error-guard";
15
16
  import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
16
- import { InitializeBindingsMixin } from "../../../mixins/bindings-mixin";
17
17
  import { parseDate } from "../../../utils/date-utils";
18
18
  /**
19
19
  * Internal component made to be integrated in a TimeframeFacet.
@@ -23,12 +23,13 @@ import { parseDate } from "../../../utils/date-utils";
23
23
  *
24
24
  * @internal
25
25
  */
26
- let AtomicFacetDateInput = class AtomicFacetDateInput extends InitializeBindingsMixin(LitElement) {
26
+ let AtomicFacetDateInput = class AtomicFacetDateInput extends LitElement {
27
27
  constructor() {
28
28
  super(...arguments);
29
29
  this.startRef = createRef();
30
30
  this.endRef = createRef();
31
31
  }
32
+ initialize() { }
32
33
  connectedCallback() {
33
34
  super.connectedCallback();
34
35
  this.validateParentComponent();
@@ -218,6 +219,7 @@ __decorate([
218
219
  ], AtomicFacetDateInput.prototype, "render", null);
219
220
  AtomicFacetDateInput = __decorate([
220
221
  customElement('atomic-facet-date-input'),
222
+ bindings(),
221
223
  withTailwindStyles
222
224
  ], AtomicFacetDateInput);
223
225
  export { AtomicFacetDateInput };
@@ -12,6 +12,7 @@ export const renderFacetValueCheckbox = ({ props }) => (children) => {
12
12
  const ariaLabelAttributes = {
13
13
  value: props.displayValue,
14
14
  count: props.numberOfResults,
15
+ formattedCount: count,
15
16
  interpolation: { escapeValue: false },
16
17
  };
17
18
  const selectedAriaLabel = props.i18n.t('facet-value', ariaLabelAttributes);
@@ -7,6 +7,7 @@ export const renderFacetValueLink = ({ props }) => (children) => {
7
7
  const ariaLabel = props.i18n.t('facet-value', {
8
8
  value: props.displayValue,
9
9
  count: props.numberOfResults,
10
+ formattedCount: count,
10
11
  interpolation: { escapeValue: false },
11
12
  });
12
13
  let part = props.part ??
@@ -1,4 +1,3 @@
1
- import { Schema, Value, BooleanValue } from '@coveo/bueno';
2
1
  import { h } from '@stencil/core/internal/client';
3
2
  import { a as SafeStorage, S as StorageItems } from './local-storage-utils.js';
4
3
  import { a as getNamedSlotFromHost } from './slot-utils.js';
@@ -2921,28 +2920,6 @@ class GeneratedAnswerCommon {
2921
2920
  h("aside", { class: contentClasses, part: "container" },
2922
2921
  h("article", null, this.renderContent()))));
2923
2922
  }
2924
- validateProps() {
2925
- const schema = new Schema({
2926
- host: new Value({ required: true }),
2927
- withToggle: new BooleanValue({ required: false, default: true }),
2928
- collapsible: new BooleanValue({ required: false, default: true }),
2929
- disableCitationAnchoring: new BooleanValue({
2930
- required: false,
2931
- default: false,
2932
- }),
2933
- getGeneratedAnswer: new Value({ required: true }),
2934
- getGeneratedAnswerState: new Value({ required: true }),
2935
- getSearchStatusState: new Value({ required: true }),
2936
- getBindings: new Value({ required: true }),
2937
- getCopied: new Value({ required: true }),
2938
- setCopied: new Value({ required: true }),
2939
- getCopyError: new Value({ required: true }),
2940
- setCopyError: new Value({ required: true }),
2941
- setAriaMessage: new Value({ required: true }),
2942
- buildInteractiveCitation: new Value({ required: true }),
2943
- });
2944
- schema.validate(this.props);
2945
- }
2946
2923
  }
2947
2924
 
2948
2925
  export { GeneratedAnswerCommon as G };