@coveo/atomic 3.33.8-pre.f71538d21f → 3.33.8-pre.f81e59572c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atomic/_atomic.esm.js +1 -1
- package/dist/atomic/components/analytics-config.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +49 -7
- package/dist/atomic/components/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.js +2 -2
- package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +25 -10
- package/dist/atomic/components/components/common/atomic-modal/atomic-modal.js +2 -0
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/{p-c7040496.entry.js → p-0713d94d.entry.js} +2 -2
- package/dist/atomic/{p-327df077.entry.js → p-26c4e8cd.entry.js} +2 -2
- package/dist/atomic/{p-09c4c7f2.entry.js → p-9dcfc60a.entry.js} +2 -2
- package/dist/atomic/{p-9a451295.js → p-fcf71a7b.js} +2 -2
- package/dist/cjs/{analytics-config-82f35f78.js → analytics-config-9143f7e0.js} +2 -2
- package/dist/cjs/{analytics-config-82f35f78.js.map → analytics-config-9143f7e0.js.map} +1 -1
- package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-search-interface.cjs.entry.js +1 -1
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/{analytics-config-7a822440.js → analytics-config-cdf2a4bf.js} +2 -2
- package/dist/esm/{analytics-config-7a822440.js.map → analytics-config-cdf2a4bf.js.map} +1 -1
- package/dist/esm/atomic-insight-interface.entry.js +1 -1
- package/dist/esm/atomic-recs-interface.entry.js +1 -1
- package/dist/esm/atomic-search-interface.entry.js +1 -1
- package/dist/esm/version.js +2 -2
- package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +29 -1
- package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +1 -0
- package/docs/atomic-docs.json +1 -1
- package/package.json +3 -3
- /package/dist/atomic/{p-c7040496.entry.js.map → p-0713d94d.entry.js.map} +0 -0
- /package/dist/atomic/{p-327df077.entry.js.map → p-26c4e8cd.entry.js.map} +0 -0
- /package/dist/atomic/{p-09c4c7f2.entry.js.map → p-9dcfc60a.entry.js.map} +0 -0
- /package/dist/atomic/{p-9a451295.js.map → p-fcf71a7b.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-
|
4
|
+
import { g as getNextAnalyticsConfig, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance } from './analytics-config-cdf2a4bf.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-
|
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-cdf2a4bf.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-
|
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-cdf2a4bf.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';
|
package/dist/esm/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export const headlessVersion = '3.
|
2
|
-
export const atomicVersion = '3.33.8-pre.
|
1
|
+
export const headlessVersion = '3.32.0-pre.f81e59572c';
|
2
|
+
export const atomicVersion = '3.33.8-pre.f81e59572c';
|
package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { type CommerceEngine, type CommerceEngineConfiguration, type Context, type LogLevel, type ProductListing, type ProductListingSummaryState, type Search, type SearchSummaryState, type Summary, type UrlManager } from '@coveo/headless/commerce';
|
2
|
+
import type { CurrencyCodeISO4217 } from '@coveo/relay-event-types';
|
2
3
|
import { type i18n } from 'i18next';
|
3
4
|
import { type CSSResultGroup, LitElement } from 'lit';
|
4
5
|
import type { CommonBindings } from '../../common/interface/bindings';
|
@@ -49,7 +50,13 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
|
|
49
50
|
/**
|
50
51
|
* The commerce interface language.
|
51
52
|
*
|
52
|
-
* Will default to the value set in the Headless engine context if not
|
53
|
+
* Will default to the value set in the Headless engine context if not
|
54
|
+
* provided.
|
55
|
+
*
|
56
|
+
* @deprecated - This property will be removed in the next major version of
|
57
|
+
* Atomic (v4). Rather than using this property, set the initial language
|
58
|
+
* through the engine configuration when calling `initializeWithEngine`, and
|
59
|
+
* update the language as needed using the `updateLocale` method.
|
53
60
|
*/
|
54
61
|
language?: string;
|
55
62
|
/**
|
@@ -100,6 +107,26 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
|
|
100
107
|
* Executes the first request after initializing connection to the headless commerce engine.
|
101
108
|
*/
|
102
109
|
executeFirstRequest(): Promise<void>;
|
110
|
+
/**
|
111
|
+
* Updates the locale settings for the commerce interface and headless commerce
|
112
|
+
* engine. Only the provided parameters will be updated.
|
113
|
+
*
|
114
|
+
* Calling this method affects the localization of the interface as well as
|
115
|
+
* the catalog configuration being used by the Commerce API. If the resulting
|
116
|
+
* language-country-currency combination matches no existing catalog
|
117
|
+
* configuration in your Coveo organization, requests made through the
|
118
|
+
* commerce engine will start failing.
|
119
|
+
*
|
120
|
+
* @param language - (Optional) The IETF language code tag (e.g., `en`).
|
121
|
+
* @param country - (Optional) The ISO-3166-1 country tag (e.g., `US`).
|
122
|
+
* @param currency - (Optional) The ISO-4217 currency code (e.g., `USD`).
|
123
|
+
*
|
124
|
+
* @example
|
125
|
+
* ```typescript
|
126
|
+
* interface.updateLocale('fr', 'CA', 'CAD');
|
127
|
+
* ```
|
128
|
+
*/
|
129
|
+
updateLocale(language?: string, country?: string, currency?: CurrencyCodeISO4217): void;
|
103
130
|
toggleAnalytics(): void;
|
104
131
|
updateIconAssetsPath(): void;
|
105
132
|
updateLanguage(): void;
|
@@ -115,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;
|
package/docs/atomic-docs.json
CHANGED
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.
|
4
|
+
"version": "3.33.8-pre.f81e59572c",
|
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.
|
84
|
+
"@coveo/headless": "3.32.0-pre.f81e59572c",
|
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.
|
156
|
+
"@coveo/headless": "3.32.0-pre.f81e59572c",
|
157
157
|
"typescript": ">=5.0.0"
|
158
158
|
},
|
159
159
|
"peerDependenciesMeta": {
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|