@coveo/atomic 3.33.8-pre.f62f2d7753 → 3.33.8-pre.f790c888d3

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 (40) 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-breadbox/atomic-commerce-breadbox.js +18 -11
  4. package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +51 -14
  5. package/dist/atomic/components/components/commerce/atomic-commerce-layout/atomic-commerce-layout.js +19 -10
  6. package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +25 -10
  7. package/dist/atomic/components/components/common/atomic-modal/atomic-modal.js +2 -0
  8. package/dist/atomic/components/components/common/layout/layout-styles-controller.js +40 -0
  9. package/dist/atomic/components/components/common/layout/mobile-breakpoint-controller.js +26 -0
  10. package/dist/atomic/components/components/search/atomic-search-box-query-suggestions/atomic-search-box-query-suggestions.js +12 -4
  11. package/dist/atomic/components/global/environment.js +1 -1
  12. package/dist/atomic/{p-b87dbae7.js → p-015cd25d.js} +2 -2
  13. package/dist/atomic/{p-9d6b988d.entry.js → p-2d07cd77.entry.js} +2 -2
  14. package/dist/atomic/{p-b24d432b.entry.js → p-aef7574d.entry.js} +2 -2
  15. package/dist/atomic/{p-e5352270.entry.js → p-e670c0cd.entry.js} +2 -2
  16. package/dist/cjs/{analytics-config-de93a689.js → analytics-config-822477c4.js} +2 -2
  17. package/dist/cjs/{analytics-config-de93a689.js.map → analytics-config-822477c4.js.map} +1 -1
  18. package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
  19. package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
  20. package/dist/cjs/atomic-search-interface.cjs.entry.js +1 -1
  21. package/dist/cjs/version.cjs.js +2 -2
  22. package/dist/esm/{analytics-config-018337bf.js → analytics-config-3703007d.js} +2 -2
  23. package/dist/esm/{analytics-config-018337bf.js.map → analytics-config-3703007d.js.map} +1 -1
  24. package/dist/esm/atomic-insight-interface.entry.js +1 -1
  25. package/dist/esm/atomic-recs-interface.entry.js +1 -1
  26. package/dist/esm/atomic-search-interface.entry.js +1 -1
  27. package/dist/esm/version.js +2 -2
  28. package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +2 -1
  29. package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +29 -2
  30. package/dist/types/components/commerce/atomic-commerce-layout/atomic-commerce-layout.d.ts +3 -3
  31. package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +1 -0
  32. package/dist/types/components/common/layout/layout-styles-controller.d.ts +22 -0
  33. package/dist/types/components/common/layout/mobile-breakpoint-controller.d.ts +18 -0
  34. package/dist/types/components/search/atomic-search-box-query-suggestions/atomic-search-box-query-suggestions.d.ts +4 -4
  35. package/docs/atomic-docs.json +1 -1
  36. package/package.json +3 -3
  37. /package/dist/atomic/{p-b87dbae7.js.map → p-015cd25d.js.map} +0 -0
  38. /package/dist/atomic/{p-9d6b988d.entry.js.map → p-2d07cd77.entry.js.map} +0 -0
  39. /package/dist/atomic/{p-b24d432b.entry.js.map → p-aef7574d.entry.js.map} +0 -0
  40. /package/dist/atomic/{p-e5352270.entry.js.map → p-e670c0cd.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-018337bf.js';
4
+ import { g as getNextAnalyticsConfig, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance } from './analytics-config-3703007d.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-018337bf.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-3703007d.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-018337bf.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-3703007d.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.f62f2d7753';
2
- export const atomicVersion = '3.33.8-pre.f62f2d7753';
1
+ export const headlessVersion = '3.31.1-pre.f790c888d3';
2
+ export const atomicVersion = '3.33.8-pre.f790c888d3';
@@ -52,7 +52,8 @@ export declare class AtomicCommerceBreadbox extends LitElement implements Initia
52
52
  */
53
53
  pathLimit: number;
54
54
  initialize(): void;
55
- updated(changedProperties: Map<string, unknown>): void;
55
+ willUpdate(changedProperties: Map<string, unknown>): void;
56
+ updated(): void;
56
57
  private validateProps;
57
58
  disconnectedCallback(): void;
58
59
  private get breadcrumbs();
@@ -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,10 +142,10 @@ 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;
121
- private updateMobileBreakpoint;
122
149
  }
123
150
  declare global {
124
151
  interface HTMLElementTagNameMap {
@@ -8,19 +8,19 @@ declare const AtomicCommerceLayout_base: import("../../../mixins/mixin-common").
8
8
  * @cssprop --atomic-layout-max-search-box-input-width: The maximum width that the search box input will take.
9
9
  * @cssprop --atomic-layout-max-search-box-double-suggestions-width: The maximum width that the search box suggestions will take when displaying a double list.
10
10
  * @cssprop --atomic-layout-search-box-left-suggestions-width: The width of the left list when displaying a double list.
11
- *
12
- * @slot default - The default slot for the layout content.
13
11
  */
14
12
  export declare class AtomicCommerceLayout extends AtomicCommerceLayout_base {
15
13
  static styles: import("lit").CSSResult[];
16
- private addStyles;
17
14
  error: Error;
18
15
  /**
19
16
  * The viewport width at which the layout goes from desktop to mobile.
20
17
  * E.g., 800px, 65rem.
21
18
  */
22
19
  mobileBreakpoint: string;
20
+ private layoutStylesController;
23
21
  connectedCallback(): void;
22
+ private emitBreakpointChangeEvent;
23
+ onMobileBreakpointChange(): void;
24
24
  }
25
25
  declare global {
26
26
  interface HTMLElementTagNameMap {
@@ -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 {
@@ -0,0 +1,22 @@
1
+ import type { ReactiveController, ReactiveControllerHost } from 'lit';
2
+ export interface LayoutStylesHost extends ReactiveControllerHost {
3
+ mobileBreakpoint: string;
4
+ getRootNode(): Node;
5
+ id?: string;
6
+ }
7
+ export type StylesBuilderFunction = (host: HTMLElement, mobileBreakpoint: string) => string;
8
+ /**
9
+ * A reactive controller that manages dynamic layout styles.
10
+ */
11
+ export declare class LayoutStylesController implements ReactiveController {
12
+ private host;
13
+ private dynamicStyleSheet;
14
+ private stylesBuilder;
15
+ private componentPrefix;
16
+ constructor(host: LayoutStylesHost, stylesBuilder: StylesBuilderFunction, componentPrefix: string);
17
+ hostConnected(): void;
18
+ /**
19
+ * Updates the dynamic styles based on the current mobile breakpoint
20
+ */
21
+ updateStyles(): void;
22
+ }
@@ -0,0 +1,18 @@
1
+ import type { ReactiveController, ReactiveControllerHost } from 'lit';
2
+ import type { BaseStore } from "../interface/store";
3
+ /**
4
+ * A reactive controller that manages mobile breakpoint changes through event communication.
5
+ * This controller listens for 'atomic-layout-breakpoint-change' events and updates a store
6
+ * with the new breakpoint value.
7
+ */
8
+ export declare class MobileBreakpointController implements ReactiveController {
9
+ private host;
10
+ private store;
11
+ private eventListener;
12
+ constructor(host: ReactiveControllerHost, store: BaseStore<{
13
+ mobileBreakpoint: string;
14
+ }>);
15
+ hostConnected(): void;
16
+ hostDisconnected(): void;
17
+ private handleBreakpointChange;
18
+ }
@@ -1,14 +1,14 @@
1
1
  import { type SearchBox } from '@coveo/headless';
2
2
  import { LitElement } from 'lit';
3
- import type { SearchBoxSuggestions, SearchBoxSuggestionsBindings } from "../../common/suggestions/suggestions-types.js";
4
- import type { SearchBoxSuggestionsComponent } from "../../../decorators/types.js";
5
- import type { Bindings } from '../atomic-search-interface/interfaces.js';
3
+ import type { SearchBoxSuggestions, SearchBoxSuggestionsBindings } from "../../common/suggestions/suggestions-types";
4
+ import type { Bindings } from "../atomic-search-interface/interfaces";
5
+ import type { SearchBoxSuggestionsComponent } from "../../../decorators/types";
6
6
  /**
7
7
  * The `atomic-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.
8
8
  */
9
9
  export declare class AtomicSearchBoxQuerySuggestions extends LitElement implements SearchBoxSuggestionsComponent<Bindings> {
10
- bindings: SearchBoxSuggestionsBindings<SearchBox, Bindings>;
11
10
  error: Error;
11
+ bindings: SearchBoxSuggestionsBindings<SearchBox, Bindings>;
12
12
  /**
13
13
  * The SVG icon to display.
14
14
  *
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-09-24T20:06:28",
2
+ "timestamp": "2025-09-30T13:55:48",
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.f62f2d7753",
4
+ "version": "3.33.8-pre.f790c888d3",
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.f62f2d7753",
84
+ "@coveo/headless": "3.31.1-pre.f790c888d3",
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.f62f2d7753",
156
+ "@coveo/headless": "3.31.1-pre.f790c888d3",
157
157
  "typescript": ">=5.0.0"
158
158
  },
159
159
  "peerDependenciesMeta": {