@coveo/atomic 3.33.8-pre.f71538d21f → 3.33.8-pre.fb9007a768

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 (30) 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/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +49 -7
  4. package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +25 -10
  5. package/dist/atomic/components/components/common/atomic-modal/atomic-modal.js +2 -0
  6. package/dist/atomic/components/global/environment.js +1 -1
  7. package/dist/atomic/{p-327df077.entry.js → p-180f43a9.entry.js} +2 -2
  8. package/dist/atomic/{p-9a451295.js → p-32c9043b.js} +2 -2
  9. package/dist/atomic/{p-c7040496.entry.js → p-a8bb29f5.entry.js} +2 -2
  10. package/dist/atomic/{p-09c4c7f2.entry.js → p-b27a1335.entry.js} +2 -2
  11. package/dist/cjs/{analytics-config-82f35f78.js → analytics-config-6a348342.js} +2 -2
  12. package/dist/cjs/{analytics-config-82f35f78.js.map → analytics-config-6a348342.js.map} +1 -1
  13. package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
  14. package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
  15. package/dist/cjs/atomic-search-interface.cjs.entry.js +1 -1
  16. package/dist/cjs/version.cjs.js +2 -2
  17. package/dist/esm/{analytics-config-7a822440.js → analytics-config-c66c52a8.js} +2 -2
  18. package/dist/esm/{analytics-config-7a822440.js.map → analytics-config-c66c52a8.js.map} +1 -1
  19. package/dist/esm/atomic-insight-interface.entry.js +1 -1
  20. package/dist/esm/atomic-recs-interface.entry.js +1 -1
  21. package/dist/esm/atomic-search-interface.entry.js +1 -1
  22. package/dist/esm/version.js +2 -2
  23. package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +29 -1
  24. package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +1 -0
  25. package/docs/atomic-docs.json +1 -1
  26. package/package.json +3 -3
  27. /package/dist/atomic/{p-327df077.entry.js.map → p-180f43a9.entry.js.map} +0 -0
  28. /package/dist/atomic/{p-9a451295.js.map → p-32c9043b.js.map} +0 -0
  29. /package/dist/atomic/{p-c7040496.entry.js.map → p-a8bb29f5.entry.js.map} +0 -0
  30. /package/dist/atomic/{p-09c4c7f2.entry.js.map → p-b27a1335.entry.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, s as setNonce, h, H as Host, g as getElement } from './index-3f35faca.js';
2
2
  import { m as markParentAsReady } from './init-queue-fbe942c3.js';
3
3
  import { buildResultsPerPage, loadFieldActions, buildInsightEngine } from '@coveo/headless/insight';
4
- import { g as getNextAnalyticsConfig, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance } from './analytics-config-7a822440.js';
4
+ import { g as getNextAnalyticsConfig, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance } from './analytics-config-c66c52a8.js';
5
5
  import { A as ArrayProp } from './props-utils-e97ad6bd.js';
6
6
  import { D as DEFAULT_MOBILE_BREAKPOINT } from './replace-breakpoint-utils-7a336631.js';
7
7
  import { u as unsetLoadingFlag, s as setLoadingFlag, r as registerFacet, g as getFacetElements, w as waitUntilAppLoaded, a as createBaseStore } from './store-015afa83.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, s as setNonce, h, g as getElement } from './index-3f35faca.js';
2
2
  import { m as markParentAsReady } from './init-queue-fbe942c3.js';
3
3
  import { loadRecommendationActions, loadSearchConfigurationActions, EcommerceDefaultFieldsToInclude, loadFieldActions, buildRecommendationEngine } from '@coveo/headless/recommendation';
4
- import { g as getNextAnalyticsConfig, c as augmentAnalyticsConfigWithDocument, d as augmentAnalyticsConfigWithAtomicVersion, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config-7a822440.js';
4
+ import { g as getNextAnalyticsConfig, c as augmentAnalyticsConfigWithDocument, d as augmentAnalyticsConfigWithAtomicVersion, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config-c66c52a8.js';
5
5
  import { A as ArrayProp } from './props-utils-e97ad6bd.js';
6
6
  import { u as unsetLoadingFlag, s as setLoadingFlag, a as createBaseStore } from './store-015afa83.js';
7
7
  import './dayjs.min-d04628c6.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, s as setNonce, h, g as getElement } from './index-3f35faca.js';
2
2
  import { m as markParentAsReady } from './init-queue-fbe942c3.js';
3
3
  import { loadSearchConfigurationActions, loadQueryActions, EcommerceDefaultFieldsToInclude, loadFieldActions, buildSearchEngine, buildUrlManager, buildSearchStatus } from '@coveo/headless';
4
- import { g as getNextAnalyticsConfig, d as augmentAnalyticsConfigWithAtomicVersion, c as augmentAnalyticsConfigWithDocument, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config-7a822440.js';
4
+ import { g as getNextAnalyticsConfig, d as augmentAnalyticsConfigWithAtomicVersion, c as augmentAnalyticsConfigWithDocument, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config-c66c52a8.js';
5
5
  import { a as StorageItems, S as SafeStorage } from './local-storage-utils-410269e6.js';
6
6
  import { A as ArrayProp } from './props-utils-e97ad6bd.js';
7
7
  import { D as DEFAULT_MOBILE_BREAKPOINT } from './replace-breakpoint-utils-7a336631.js';
@@ -1,2 +1,2 @@
1
- export const headlessVersion = '3.31.1-pre.f71538d21f';
2
- export const atomicVersion = '3.33.8-pre.f71538d21f';
1
+ export const headlessVersion = '3.31.1-pre.fb9007a768';
2
+ export const atomicVersion = '3.33.8-pre.fb9007a768';
@@ -1,4 +1,5 @@
1
1
  import { type CommerceEngine, type CommerceEngineConfiguration, type Context, type LogLevel, type ProductListing, type ProductListingSummaryState, type Search, type SearchSummaryState, type Summary, type UrlManager } from '@coveo/headless/commerce';
2
+ import type { CurrencyCodeISO4217 } from '@coveo/relay-event-types';
2
3
  import { type i18n } from 'i18next';
3
4
  import { type CSSResultGroup, LitElement } from 'lit';
4
5
  import type { CommonBindings } from '../../common/interface/bindings';
@@ -49,7 +50,13 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
49
50
  /**
50
51
  * The commerce interface language.
51
52
  *
52
- * Will default to the value set in the Headless engine context if not provided.
53
+ * Will default to the value set in the Headless engine context if not
54
+ * provided.
55
+ *
56
+ * @deprecated - This property will be removed in the next major version of
57
+ * Atomic (v4). Rather than using this property, set the initial language
58
+ * through the engine configuration when calling `initializeWithEngine`, and
59
+ * update the language as needed using the `updateLocale` method.
53
60
  */
54
61
  language?: string;
55
62
  /**
@@ -100,6 +107,26 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
100
107
  * Executes the first request after initializing connection to the headless commerce engine.
101
108
  */
102
109
  executeFirstRequest(): Promise<void>;
110
+ /**
111
+ * Updates the locale settings for the commerce interface and headless commerce
112
+ * engine. Only the provided parameters will be updated.
113
+ *
114
+ * Calling this method affects the localization of the interface as well as
115
+ * the catalog configuration being used by the Commerce API. If the resulting
116
+ * language-country-currency combination matches no existing catalog
117
+ * configuration in your Coveo organization, requests made through the
118
+ * commerce engine will start failing.
119
+ *
120
+ * @param language - (Optional) The IETF language code tag (e.g., `en`).
121
+ * @param country - (Optional) The ISO-3166-1 country tag (e.g., `US`).
122
+ * @param currency - (Optional) The ISO-4217 currency code (e.g., `USD`).
123
+ *
124
+ * @example
125
+ * ```typescript
126
+ * interface.updateLocale('fr', 'CA', 'CAD');
127
+ * ```
128
+ */
129
+ updateLocale(language?: string, country?: string, currency?: CurrencyCodeISO4217): void;
103
130
  toggleAnalytics(): void;
104
131
  updateIconAssetsPath(): void;
105
132
  updateLanguage(): void;
@@ -115,6 +142,7 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
115
142
  private initSummary;
116
143
  private initUrlManager;
117
144
  private internalInitialization;
145
+ private isNewLocale;
118
146
  private onHashChange;
119
147
  scrollToTop(): void;
120
148
  private updateHash;
@@ -103,6 +103,7 @@ export declare class AtomicCommerceRecommendationInterface extends AtomicCommerc
103
103
  private initContext;
104
104
  private getBindings;
105
105
  private initLanguage;
106
+ private isNewLocale;
106
107
  }
107
108
  declare global {
108
109
  interface HTMLElementTagNameMap {
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-09-26T16:52:20",
2
+ "timestamp": "2025-09-29T15:39:18",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.20.0",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coveo/atomic",
3
3
  "type": "module",
4
- "version": "3.33.8-pre.f71538d21f",
4
+ "version": "3.33.8-pre.fb9007a768",
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": {
@@ -81,7 +81,7 @@
81
81
  },
82
82
  "dependencies": {
83
83
  "@coveo/bueno": "1.1.2",
84
- "@coveo/headless": "3.31.1-pre.f71538d21f",
84
+ "@coveo/headless": "3.31.1-pre.fb9007a768",
85
85
  "@lit/context": "1.1.6",
86
86
  "@open-wc/lit-helpers": "0.7.0",
87
87
  "@popperjs/core": "2.11.8",
@@ -153,7 +153,7 @@
153
153
  },
154
154
  "peerDependencies": {
155
155
  "@coveo/bueno": "1.1.2",
156
- "@coveo/headless": "3.31.1-pre.f71538d21f",
156
+ "@coveo/headless": "3.31.1-pre.fb9007a768",
157
157
  "typescript": ">=5.0.0"
158
158
  },
159
159
  "peerDependenciesMeta": {