@coveo/atomic 3.32.2-pre.7ebb22e39f → 3.32.2-pre.b8e515cd6a

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 (102) hide show
  1. package/dist/atomic/_atomic.esm.js +1 -1
  2. package/dist/atomic/components/analytics-config.js +12 -9
  3. package/dist/atomic/components/analytics-config.js.map +1 -1
  4. package/dist/atomic/components/atomic-sort-expression.js +1 -1
  5. package/dist/atomic/components/atomic-sort-expression.js.map +1 -1
  6. package/dist/atomic/components/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.js +0 -2
  7. package/dist/atomic/components/components/commerce/atomic-commerce-did-you-mean/atomic-commerce-did-you-mean.js +0 -2
  8. package/dist/atomic/components/components/commerce/atomic-commerce-facet/atomic-commerce-facet.js +0 -2
  9. package/dist/atomic/components/components/commerce/atomic-commerce-facets/atomic-commerce-facets.js +0 -1
  10. package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +3 -4
  11. package/dist/atomic/components/components/commerce/atomic-commerce-layout/atomic-commerce-layout.js +2 -1
  12. package/dist/atomic/components/components/commerce/atomic-commerce-no-products/atomic-commerce-no-products.js +0 -2
  13. package/dist/atomic/components/components/commerce/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.js +0 -3
  14. package/dist/atomic/components/components/commerce/atomic-commerce-pager/atomic-commerce-pager.js +0 -1
  15. package/dist/atomic/components/components/commerce/atomic-commerce-product-list/atomic-commerce-product-list.js +0 -2
  16. package/dist/atomic/components/components/commerce/atomic-commerce-products-per-page/atomic-commerce-products-per-page.js +0 -2
  17. package/dist/atomic/components/components/commerce/atomic-commerce-query-error/atomic-commerce-query-error.js +0 -2
  18. package/dist/atomic/components/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.js +0 -2
  19. package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +5 -3
  20. package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-list/atomic-commerce-recommendation-list.js +0 -1
  21. package/dist/atomic/components/components/commerce/atomic-commerce-refine-toggle/atomic-commerce-refine-toggle.js +0 -2
  22. package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +0 -2
  23. package/dist/atomic/components/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.js +1 -4
  24. package/dist/atomic/components/components/commerce/atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions.js +1 -2
  25. package/dist/atomic/components/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.js +0 -2
  26. package/dist/atomic/components/components/commerce/atomic-commerce-sort-dropdown/atomic-commerce-sort-dropdown.js +0 -2
  27. package/dist/atomic/components/components/commerce/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.js +0 -2
  28. package/dist/atomic/components/components/commerce/atomic-product-field-condition/atomic-product-field-condition.js +0 -2
  29. package/dist/atomic/components/components/commerce/atomic-product-link/atomic-product-link.js +2 -1
  30. package/dist/atomic/components/components/commerce/atomic-product-multi-value-text/atomic-product-multi-value-text.js +0 -2
  31. package/dist/atomic/components/components/commerce/atomic-product-numeric-field-value/atomic-product-numeric-field-value.js +0 -1
  32. package/dist/atomic/components/components/commerce/atomic-product-price/atomic-product-price.js +0 -1
  33. package/dist/atomic/components/components/commerce/atomic-product-rating/atomic-product-rating.js +0 -2
  34. package/dist/atomic/components/components/commerce/atomic-product-template/atomic-product-template.js +0 -2
  35. package/dist/atomic/components/components/common/interface/analytics-config.js +3 -3
  36. package/dist/atomic/components/components/common/interface/interface-controller.js +2 -2
  37. package/dist/atomic/components/global/environment.js +8 -6
  38. package/dist/atomic/{p-7b672d9f.entry.js → p-1dcf9585.entry.js} +2 -2
  39. package/dist/atomic/{p-01cedded.entry.js → p-22e61d7a.entry.js} +2 -2
  40. package/dist/atomic/p-22e61d7a.entry.js.map +1 -0
  41. package/dist/atomic/{p-727cc050.entry.js → p-8b111f3b.entry.js} +2 -2
  42. package/dist/atomic/{p-d840d3eb.js → p-c9e93bf4.js} +2 -2
  43. package/dist/atomic/p-c9e93bf4.js.map +1 -0
  44. package/dist/atomic/{p-e23a811e.entry.js → p-eebec7c7.entry.js} +2 -2
  45. package/dist/cjs/{analytics-config-5475c9f5.js → analytics-config-e9f853d6.js} +13 -10
  46. package/dist/cjs/analytics-config-e9f853d6.js.map +1 -0
  47. package/dist/cjs/atomic-insight-interface.cjs.entry.js +2 -2
  48. package/dist/cjs/atomic-recs-interface.cjs.entry.js +2 -2
  49. package/dist/cjs/atomic-search-interface.cjs.entry.js +1 -1
  50. package/dist/cjs/atomic-sort-expression.cjs.entry.js +1 -1
  51. package/dist/cjs/atomic-sort-expression.cjs.entry.js.map +1 -1
  52. package/dist/cjs/version.cjs.js +2 -2
  53. package/dist/esm/{analytics-config-d4cd9fcd.js → analytics-config-8a2cc9b4.js} +13 -10
  54. package/dist/esm/analytics-config-8a2cc9b4.js.map +1 -0
  55. package/dist/esm/atomic-insight-interface.entry.js +2 -2
  56. package/dist/esm/atomic-recs-interface.entry.js +2 -2
  57. package/dist/esm/atomic-search-interface.entry.js +1 -1
  58. package/dist/esm/atomic-sort-expression.entry.js +1 -1
  59. package/dist/esm/atomic-sort-expression.entry.js.map +1 -1
  60. package/dist/esm/version.js +2 -2
  61. package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +0 -2
  62. package/dist/types/components/commerce/atomic-commerce-did-you-mean/atomic-commerce-did-you-mean.d.ts +0 -2
  63. package/dist/types/components/commerce/atomic-commerce-facet/atomic-commerce-facet.d.ts +0 -2
  64. package/dist/types/components/commerce/atomic-commerce-facets/atomic-commerce-facets.d.ts +0 -1
  65. package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +1 -2
  66. package/dist/types/components/commerce/atomic-commerce-layout/atomic-commerce-layout.d.ts +2 -1
  67. package/dist/types/components/commerce/atomic-commerce-no-products/atomic-commerce-no-products.d.ts +0 -2
  68. package/dist/types/components/commerce/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.d.ts +0 -3
  69. package/dist/types/components/commerce/atomic-commerce-pager/atomic-commerce-pager.d.ts +0 -1
  70. package/dist/types/components/commerce/atomic-commerce-product-list/atomic-commerce-product-list.d.ts +0 -2
  71. package/dist/types/components/commerce/atomic-commerce-products-per-page/atomic-commerce-products-per-page.d.ts +0 -2
  72. package/dist/types/components/commerce/atomic-commerce-query-error/atomic-commerce-query-error.d.ts +0 -2
  73. package/dist/types/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.d.ts +0 -2
  74. package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +3 -1
  75. package/dist/types/components/commerce/atomic-commerce-recommendation-list/atomic-commerce-recommendation-list.d.ts +0 -1
  76. package/dist/types/components/commerce/atomic-commerce-refine-toggle/atomic-commerce-refine-toggle.d.ts +0 -2
  77. package/dist/types/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.d.ts +0 -2
  78. package/dist/types/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.d.ts +1 -4
  79. package/dist/types/components/commerce/atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions.d.ts +1 -2
  80. package/dist/types/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.d.ts +0 -2
  81. package/dist/types/components/commerce/atomic-commerce-sort-dropdown/atomic-commerce-sort-dropdown.d.ts +0 -2
  82. package/dist/types/components/commerce/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.d.ts +0 -2
  83. package/dist/types/components/commerce/atomic-product-field-condition/atomic-product-field-condition.d.ts +0 -2
  84. package/dist/types/components/commerce/atomic-product-link/atomic-product-link.d.ts +2 -1
  85. package/dist/types/components/commerce/atomic-product-multi-value-text/atomic-product-multi-value-text.d.ts +0 -2
  86. package/dist/types/components/commerce/atomic-product-numeric-field-value/atomic-product-numeric-field-value.d.ts +0 -1
  87. package/dist/types/components/commerce/atomic-product-price/atomic-product-price.d.ts +0 -1
  88. package/dist/types/components/commerce/atomic-product-rating/atomic-product-rating.d.ts +0 -2
  89. package/dist/types/components/commerce/atomic-product-template/atomic-product-template.d.ts +0 -2
  90. package/dist/types/components/common/interface/interface-controller.d.ts +1 -1
  91. package/dist/types/components/search/atomic-sort-expression/atomic-sort-expression.d.ts +2 -13
  92. package/dist/types/components.d.ts +2 -2
  93. package/dist/types/global/environment.d.ts +5 -3
  94. package/docs/atomic-docs.json +2 -2
  95. package/package.json +3 -3
  96. package/dist/atomic/p-01cedded.entry.js.map +0 -1
  97. package/dist/atomic/p-d840d3eb.js.map +0 -1
  98. package/dist/cjs/analytics-config-5475c9f5.js.map +0 -1
  99. package/dist/esm/analytics-config-d4cd9fcd.js.map +0 -1
  100. /package/dist/atomic/{p-7b672d9f.entry.js.map → p-1dcf9585.entry.js.map} +0 -0
  101. /package/dist/atomic/{p-727cc050.entry.js.map → p-8b111f3b.entry.js.map} +0 -0
  102. /package/dist/atomic/{p-e23a811e.entry.js.map → p-eebec7c7.entry.js.map} +0 -0
@@ -5,15 +5,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-757bc886.js');
6
6
  const initQueue = require('./init-queue-a18aa323.js');
7
7
  const insight = require('@coveo/headless/insight');
8
- const analyticsConfig = require('./analytics-config-5475c9f5.js');
8
+ const analyticsConfig = require('./analytics-config-e9f853d6.js');
9
9
  const propsUtils = require('./props-utils-1e4ba1b0.js');
10
10
  const replaceBreakpoint = require('./replace-breakpoint-9e1c0efa.js');
11
11
  const store = require('./store-82abd941.js');
12
12
  const insightLayout = require('./insight-layout-355a94dd.js');
13
13
  require('./dayjs.min-8b80e6d1.js');
14
14
  require('./_commonjsHelpers-b3309d7b.js');
15
- require('./purify-85b542e2.js');
16
15
  require('@coveo/headless');
16
+ require('./purify-85b542e2.js');
17
17
  require('@coveo/bueno');
18
18
  require('./utils-7153ae6b.js');
19
19
  require('./dom-utils-d4790328.js');
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-757bc886.js');
6
6
  const initQueue = require('./init-queue-a18aa323.js');
7
7
  const recommendation = require('@coveo/headless/recommendation');
8
- const analyticsConfig = require('./analytics-config-5475c9f5.js');
8
+ const analyticsConfig = require('./analytics-config-e9f853d6.js');
9
9
  const propsUtils = require('./props-utils-1e4ba1b0.js');
10
10
  const store = require('./store-82abd941.js');
11
11
  require('./dayjs.min-8b80e6d1.js');
12
12
  require('./_commonjsHelpers-b3309d7b.js');
13
- require('./purify-85b542e2.js');
14
13
  require('@coveo/headless');
14
+ require('./purify-85b542e2.js');
15
15
  require('@coveo/bueno');
16
16
  require('./utils-7153ae6b.js');
17
17
 
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-757bc886.js');
6
6
  const initQueue = require('./init-queue-a18aa323.js');
7
7
  const headless = require('@coveo/headless');
8
- const analyticsConfig = require('./analytics-config-5475c9f5.js');
8
+ const analyticsConfig = require('./analytics-config-e9f853d6.js');
9
9
  const localStorageUtils = require('./local-storage-utils-380ce22b.js');
10
10
  const propsUtils = require('./props-utils-1e4ba1b0.js');
11
11
  const searchLayout = require('./search-layout-419e7eb4.js');
@@ -54,7 +54,7 @@ const AtomicSortExpression = class {
54
54
  const dropdownComponent = 'atomic-sort-dropdown';
55
55
  if (!this.host.closest(dropdownComponent)) {
56
56
  const error = new Error(`The "${this.host.nodeName.toLowerCase()}" component has to be used inside an ${dropdownComponent} element.`);
57
- return (index.h("atomic-component-error", { key: '643ab419127b2ef5eec353203d74b9463d7c14c1', element: this.host, error: error }));
57
+ return (index.h("atomic-component-error", { key: '745dd01b0ba0c5b66e60ef9b8c8d66b46658f356', element: this.host, error: error }));
58
58
  }
59
59
  }
60
60
  get host() { return index.getElement(this); }
@@ -1 +1 @@
1
- {"file":"atomic-sort-expression.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;MAUa,oBAAoB;;;;;;;;;;;;QA2CxB,iBAAY,GAAsB,IAAI,CAAC;;;;;;;;;;QAavC,iBAAY,GAAsB,IAAI,CAAC;;;4BAbL,IAAI;4BAaJ,IAAI;;IAEtC,MAAM;QACX,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE;YAChE,OAAO,CAAC,IAAI,CACV,qHAAqH,CACtH,CAAC;SACH;QAED,MAAM,iBAAiB,GAAG,sBAAsB,CAAC;QAEjD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE;YACzC,MAAM,KAAK,GAAG,IAAI,KAAK,CACrB,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,wCAAwC,iBAAiB,WAAW,CAC7G,CAAC;YACF,QACEA,qFACE,OAAO,EAAE,IAAI,CAAC,IAAI,EAClB,KAAK,EAAE,KAAK,GACY,EAC1B;SACH;KACF;;;AAnCM;IAFNC,oBAAS,EAAE;0DAEkC;AAavC;IAFNA,oBAAS,EAAE;0DAEkC;;;;","names":["h","ArrayProp"],"sources":["src/components/search/atomic-sort-expression/atomic-sort-expression.tsx"],"sourcesContent":["import {Component, Prop, Element, h} from '@stencil/core';\nimport {ArrayProp} from '../../../utils/props-utils';\n\n/**\n * The `atomic-sort-expression` component defines a sort expression. This component must be inside an `atomic-sort-dropdown` component.\n */\n@Component({\n tag: 'atomic-sort-expression',\n shadow: false,\n})\nexport class AtomicSortExpression {\n @Element() public host!: HTMLElement;\n\n /**\n * The non-localized label to display for this expression.\n */\n @Prop({reflect: true}) public label!: string;\n\n /**\n * One or more sort criteria that the end user can select or toggle between.\n *\n * The available sort criteria are:\n *\n * * `relevancy`\n * * `date ascending`/`date descending`\n * * `qre`\n * * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (`criteria=\"size ascending\"`).\n *\n * You can specify multiple sort criteria to be used in the same request by separating them with a comma (`criteria=\"size ascending, date ascending\"`).\n * \n * You can specify a list of comma-separated sort criteria which will be applied sequentially. For example, if there's a tie on the 1st criterion, the API uses the 2nd criterion to break the tie. However, this only works when combining:\n * * a relevancy criterion followed by one or more field or date criteria.\n * * a qre criterion followed by one or more field or date criteria.\n * * two or more field criteria (`<FIELD>` descending, `<FIELD>` descending).\n * * a single date criterion and one or more field criteria in any order (`<FIELD>` descending, date ascending).\n * \n * Examples:\n * * `relevancy`, `<FIELD> descending`\n * * `qre`, `<FIELD> ascending`\n * * `date descending`, `<FIELD> descending`, `<FIELD> ascending`\n */\n @Prop({reflect: true}) public expression!: string;\n /**\n * The tabs on which the sort expression can be displayed. This property should not be used at the same time as `tabs-excluded`.\n *\n * Set this property as a stringified JSON array, e.g.,\n * ```html\n * <atomic-sort-expression tabs-included='[\"tabIDA\", \"tabIDB\"]'></atomic-sort-expression snippet>\n * ```\n * If you don't set this property, the sort expression can be displayed on any tab. Otherwise, the sort expression can only be displayed on the specified tabs.\n */\n @ArrayProp()\n @Prop({reflect: true, mutable: true})\n public tabsIncluded: string[] | string = '[]';\n\n /**\n * The tabs on which the sort expression must not be displayed. This property should not be used at the same time as `tabs-included`.\n *\n * Set this property as a stringified JSON array, e.g.,\n * ```html\n * <atomic-sort-expression tabs-excluded='[\"tabIDA\", \"tabIDB\"]'></atomic-sort-expression>\n * ```\n * If you don't set this property, the sort expression can be displayed on any tab. Otherwise, the sort expression won't be displayed on any of the specified tabs.\n */\n @ArrayProp()\n @Prop({reflect: true, mutable: true})\n public tabsExcluded: string[] | string = '[]';\n\n public render() {\n if (this.tabsIncluded.length > 0 && this.tabsExcluded.length > 0) {\n console.warn(\n 'Values for both \"tabs-included\" and \"tabs-excluded\" have been provided. This is could lead to unexpected behaviors.'\n );\n }\n\n const dropdownComponent = 'atomic-sort-dropdown';\n\n if (!this.host.closest(dropdownComponent)) {\n const error = new Error(\n `The \"${this.host.nodeName.toLowerCase()}\" component has to be used inside an ${dropdownComponent} element.`\n );\n return (\n <atomic-component-error\n element={this.host}\n error={error}\n ></atomic-component-error>\n );\n }\n }\n}\n"],"version":3}
1
+ {"file":"atomic-sort-expression.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;MAUa,oBAAoB;;;;;;;;;;;;QAgCxB,iBAAY,GAAsB,IAAI,CAAC;;;;;;;;;;QAavC,iBAAY,GAAsB,IAAI,CAAC;;;4BAbL,IAAI;4BAaJ,IAAI;;IAEtC,MAAM;QACX,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE;YAChE,OAAO,CAAC,IAAI,CACV,qHAAqH,CACtH,CAAC;SACH;QAED,MAAM,iBAAiB,GAAG,sBAAsB,CAAC;QAEjD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE;YACzC,MAAM,KAAK,GAAG,IAAI,KAAK,CACrB,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,wCAAwC,iBAAiB,WAAW,CAC7G,CAAC;YACF,QACEA,qFACE,OAAO,EAAE,IAAI,CAAC,IAAI,EAClB,KAAK,EAAE,KAAK,GACY,EAC1B;SACH;KACF;;;AAnCM;IAFNC,oBAAS,EAAE;0DAEkC;AAavC;IAFNA,oBAAS,EAAE;0DAEkC;;;;","names":["h","ArrayProp"],"sources":["src/components/search/atomic-sort-expression/atomic-sort-expression.tsx"],"sourcesContent":["import {Component, Prop, Element, h} from '@stencil/core';\nimport {ArrayProp} from '../../../utils/props-utils';\n\n/**\n * The `atomic-sort-expression` component defines a sort expression. This component must be inside an `atomic-sort-dropdown` component.\n */\n@Component({\n tag: 'atomic-sort-expression',\n shadow: false,\n})\nexport class AtomicSortExpression {\n @Element() public host!: HTMLElement;\n\n /**\n * The non-localized label to display for this expression.\n */\n @Prop({reflect: true}) public label!: string;\n\n /**\n * One or more sort criteria that the end user can select or toggle between.\n *\n * The available sort criteria are:\n *\n * * `relevancy`\n * * `date ascending`/`date descending`\n * * `qre`\n * * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (e.g., `criteria=\"size ascending\"`).\n *\n * You can specify multiple sort criteria to be used in the same request by separating them with a comma (e.g., `criteria=\"size ascending, date ascending\"`).\n */\n @Prop({reflect: true}) public expression!: string;\n /**\n * The tabs on which the sort expression can be displayed. This property should not be used at the same time as `tabs-excluded`.\n *\n * Set this property as a stringified JSON array, e.g.,\n * ```html\n * <atomic-sort-expression tabs-included='[\"tabIDA\", \"tabIDB\"]'></atomic-sort-expression snippet>\n * ```\n * If you don't set this property, the sort expression can be displayed on any tab. Otherwise, the sort expression can only be displayed on the specified tabs.\n */\n @ArrayProp()\n @Prop({reflect: true, mutable: true})\n public tabsIncluded: string[] | string = '[]';\n\n /**\n * The tabs on which the sort expression must not be displayed. This property should not be used at the same time as `tabs-included`.\n *\n * Set this property as a stringified JSON array, e.g.,\n * ```html\n * <atomic-sort-expression tabs-excluded='[\"tabIDA\", \"tabIDB\"]'></atomic-sort-expression>\n * ```\n * If you don't set this property, the sort expression can be displayed on any tab. Otherwise, the sort expression won't be displayed on any of the specified tabs.\n */\n @ArrayProp()\n @Prop({reflect: true, mutable: true})\n public tabsExcluded: string[] | string = '[]';\n\n public render() {\n if (this.tabsIncluded.length > 0 && this.tabsExcluded.length > 0) {\n console.warn(\n 'Values for both \"tabs-included\" and \"tabs-excluded\" have been provided. This is could lead to unexpected behaviors.'\n );\n }\n\n const dropdownComponent = 'atomic-sort-dropdown';\n\n if (!this.host.closest(dropdownComponent)) {\n const error = new Error(\n `The \"${this.host.nodeName.toLowerCase()}\" component has to be used inside an ${dropdownComponent} element.`\n );\n return (\n <atomic-component-error\n element={this.host}\n error={error}\n ></atomic-component-error>\n );\n }\n }\n}\n"],"version":3}
@@ -1,2 +1,2 @@
1
- module.exports.headlessVersion = '3.28.1';
2
- module.exports.atomicVersion = '3.32.2-pre.7ebb22e39f';
1
+ module.exports.headlessVersion = '3.28.2-pre.b8e515cd6a';
2
+ module.exports.atomicVersion = '3.32.2-pre.b8e515cd6a';
@@ -1,7 +1,7 @@
1
1
  import { d as dayjs } from './dayjs.min-d04628c6.js';
2
+ import { VERSION } from '@coveo/headless';
2
3
  import { h } from './index-3f35faca.js';
3
4
  import { D as DOMPurify } from './purify-c7ebd240.js';
4
- import { VERSION } from '@coveo/headless';
5
5
 
6
6
  const isString = obj => typeof obj === 'string';
7
7
  const defer = () => {
@@ -2154,17 +2154,20 @@ instance.createInstance = I18n.createInstance;
2154
2154
  function getWindow() {
2155
2155
  return window;
2156
2156
  }
2157
- function getAtomicEnvironment() {
2157
+ function getAtomicEnvironment(headlessVersion) {
2158
2158
  return {
2159
- version: "3.32.2-pre.7ebb22e39f",
2160
- headlessVersion: VERSION,
2159
+ version: "3.32.2-pre.b8e515cd6a",
2160
+ headlessVersion,
2161
2161
  };
2162
2162
  }
2163
- function setCoveoGlobal(globalVariableName) {
2163
+ function getAtomicVersion() {
2164
+ return getAtomicEnvironment('').version;
2165
+ }
2166
+ function setCoveoGlobal(globalVariableName, headlessVersion) {
2164
2167
  if (getWindow()[globalVariableName]) {
2165
2168
  return;
2166
2169
  }
2167
- getWindow()[globalVariableName] = getAtomicEnvironment();
2170
+ getWindow()[globalVariableName] = getAtomicEnvironment(headlessVersion);
2168
2171
  }
2169
2172
 
2170
2173
  const locales = {
@@ -2795,7 +2798,7 @@ class CommonAtomicInterfaceHelper {
2795
2798
  constructor(atomicInterface, globalVariableName) {
2796
2799
  this.atomicInterface = atomicInterface;
2797
2800
  this.hangingComponentsInitialization = [];
2798
- setCoveoGlobal(globalVariableName);
2801
+ setCoveoGlobal(VERSION, globalVariableName);
2799
2802
  const { connectedCallback: originalConnectedCallback, render: originalRender, } = atomicInterface;
2800
2803
  atomicInterface.connectedCallback = () => {
2801
2804
  this.i18nPromise = init18n(atomicInterface);
@@ -2880,7 +2883,7 @@ function augmentWithExternalMiddleware(event, payload, config) {
2880
2883
  }
2881
2884
  function augmentAnalyticsWithAtomicVersion(payload) {
2882
2885
  if (payload.customData) {
2883
- payload.customData.coveoAtomicVersion = getAtomicEnvironment().version;
2886
+ payload.customData.coveoAtomicVersion = getAtomicVersion();
2884
2887
  }
2885
2888
  return payload;
2886
2889
  }
@@ -2894,7 +2897,7 @@ const versionMatcher = /^(\d+\.\d+\.\d+)/;
2894
2897
  function augmentAnalyticsConfigWithAtomicVersion() {
2895
2898
  return {
2896
2899
  source: {
2897
- '@coveo/atomic': versionMatcher.exec(getAtomicEnvironment().version)?.[0] || '0.0.0',
2900
+ '@coveo/atomic': versionMatcher.exec(getAtomicVersion())?.[0] || '0.0.0',
2898
2901
  },
2899
2902
  };
2900
2903
  }
@@ -2912,4 +2915,4 @@ function getNextAnalyticsConfig(searchEngineConfig, enabled) {
2912
2915
 
2913
2916
  export { CommonAtomicInterfaceHelper as C, augmentWithExternalMiddleware as a, augmentAnalyticsWithAtomicVersion as b, augmentAnalyticsConfigWithDocument as c, augmentAnalyticsConfigWithAtomicVersion as d, getNextAnalyticsConfig as g, instance as i, mismatchedInterfaceAndEnginePropError as m };
2914
2917
 
2915
- //# sourceMappingURL=analytics-config-d4cd9fcd.js.map
2918
+ //# sourceMappingURL=analytics-config-8a2cc9b4.js.map