@coveo/atomic 3.34.0-pre.42475a96e4 → 3.34.0-pre.4a7feb628b

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 (34) 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 +32 -17
  4. package/dist/atomic/components/components/search/atomic-search-interface/atomic-search-interface.js +7 -1
  5. package/dist/atomic/components/global/environment.js +1 -1
  6. package/dist/atomic/{p-9e1d876a.js → p-63730cab.js} +2 -2
  7. package/dist/atomic/{p-334327ae.entry.js → p-8854f462.entry.js} +2 -2
  8. package/dist/atomic/{p-1e0704aa.entry.js → p-d261930a.entry.js} +2 -2
  9. package/dist/cjs/{analytics-config-6a6f8cd5.js → analytics-config-a706a13c.js} +2 -2
  10. package/dist/cjs/{analytics-config-6a6f8cd5.js.map → analytics-config-a706a13c.js.map} +1 -1
  11. package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
  12. package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
  13. package/dist/cjs/version.cjs.js +1 -1
  14. package/dist/esm/{analytics-config-d9f4db52.js → analytics-config-507f419f.js} +2 -2
  15. package/dist/esm/{analytics-config-d9f4db52.js.map → analytics-config-507f419f.js.map} +1 -1
  16. package/dist/esm/atomic-insight-interface.entry.js +1 -1
  17. package/dist/esm/atomic-recs-interface.entry.js +1 -1
  18. package/dist/esm/version.js +1 -1
  19. package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +3 -2
  20. package/dist/types/components/common/facets/facet-search/facet-search-input-guard.d.ts +1 -1
  21. package/dist/types/components/common/no-items/guard.d.ts +1 -1
  22. package/dist/types/components/common/refine-modal/guard.d.ts +1 -1
  23. package/dist/types/components/common/sort/sort-guard.d.ts +1 -1
  24. package/dist/types/components/search/atomic-search-interface/atomic-search-interface.d.ts +1 -0
  25. package/dist/types/directives/hierarchical-path.d.ts +1 -1
  26. package/docs/atomic-docs.json +1 -1
  27. package/package.json +1 -1
  28. package/dist/atomic/components/components/common/validate-props-controller/validate-props-controller.js +0 -50
  29. package/dist/atomic/components/utils/compare-utils.js +0 -49
  30. package/dist/types/components/common/validate-props-controller/validate-props-controller.d.ts +0 -32
  31. package/dist/types/utils/compare-utils.d.ts +0 -9
  32. /package/dist/atomic/{p-9e1d876a.js.map → p-63730cab.js.map} +0 -0
  33. /package/dist/atomic/{p-334327ae.entry.js.map → p-8854f462.entry.js.map} +0 -0
  34. /package/dist/atomic/{p-1e0704aa.entry.js.map → p-d261930a.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-d9f4db52.js';
4
+ import { g as getNextAnalyticsConfig, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance } from './analytics-config-507f419f.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-d9f4db52.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-507f419f.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,2 +1,2 @@
1
1
  export const headlessVersion = '3.31.1';
2
- export const atomicVersion = '3.34.0-pre.42475a96e4';
2
+ export const atomicVersion = '3.34.0-pre.4a7feb628b';
@@ -1,7 +1,7 @@
1
1
  import { type BreadcrumbManager, type BreadcrumbManagerState, type Context, type ContextState } from '@coveo/headless/commerce';
2
2
  import { type CSSResultGroup, LitElement } from 'lit';
3
- import type { CommerceBindings } from "../atomic-commerce-interface/atomic-commerce-interface";
4
3
  import type { InitializableComponent } from "../../../decorators/types";
4
+ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
5
5
  /**
6
6
  * The `atomic-commerce-breadbox` component creates breadcrumbs that display a summary of the currently active facet values.
7
7
  *
@@ -51,9 +51,10 @@ export declare class AtomicCommerceBreadbox extends LitElement implements Initia
51
51
  * @defaultValue `3`
52
52
  */
53
53
  pathLimit: number;
54
- constructor();
55
54
  initialize(): void;
55
+ willUpdate(changedProperties: Map<string, unknown>): void;
56
56
  updated(): void;
57
+ private validateProps;
57
58
  disconnectedCallback(): void;
58
59
  private get breadcrumbs();
59
60
  private get showMoreButton();
@@ -6,7 +6,7 @@ export interface FacetSearchInputGuardProps {
6
6
  numberOfDisplayedValues: number;
7
7
  }
8
8
  declare class FacetSearchInputGuardDirective extends Directive {
9
- render({ canShowMoreValues, numberOfDisplayedValues, withSearch, }: FacetSearchInputGuardProps, content: () => unknown): import("lit-html").TemplateResult<1> | typeof nothing;
9
+ render({ canShowMoreValues, numberOfDisplayedValues, withSearch, }: FacetSearchInputGuardProps, content: () => unknown): typeof nothing | import("lit-html").TemplateResult<1>;
10
10
  }
11
11
  export declare const facetSearchInputGuard: (values_0: FacetSearchInputGuardProps, content: () => unknown) => import("lit-html/directive.js").DirectiveResult<typeof FacetSearchInputGuardDirective>;
12
12
  export {};
@@ -6,7 +6,7 @@ interface NoItemsGuardProps {
6
6
  hasResults: boolean;
7
7
  }
8
8
  declare class NoItemsGuardDirective extends Directive {
9
- render({ firstSearchExecuted, isLoading, hasResults }: NoItemsGuardProps, content: () => unknown): import("lit-html").TemplateResult<1> | typeof nothing;
9
+ render({ firstSearchExecuted, isLoading, hasResults }: NoItemsGuardProps, content: () => unknown): typeof nothing | import("lit-html").TemplateResult<1>;
10
10
  }
11
11
  export declare const noItemsGuard: (values_0: NoItemsGuardProps, content: () => unknown) => import("lit-html/directive.js").DirectiveResult<typeof NoItemsGuardDirective>;
12
12
  export {};
@@ -6,7 +6,7 @@ export interface RefineToggleGuardProps {
6
6
  hasItems: boolean;
7
7
  }
8
8
  declare class RefineToggleGuardDirective extends Directive {
9
- render({ hasError, firstRequestExecuted, hasItems }: RefineToggleGuardProps, content: () => unknown): import("lit-html").TemplateResult<1> | typeof nothing;
9
+ render({ hasError, firstRequestExecuted, hasItems }: RefineToggleGuardProps, content: () => unknown): typeof nothing | import("lit-html").TemplateResult<1>;
10
10
  }
11
11
  export declare const refineToggleGuard: (values_0: RefineToggleGuardProps, content: () => unknown) => import("lit-html/directive.js").DirectiveResult<typeof RefineToggleGuardDirective>;
12
12
  export {};
@@ -5,5 +5,5 @@ interface SortGuardProps {
5
5
  hasError: boolean;
6
6
  isLoading: boolean;
7
7
  }
8
- export declare const sortGuard: ({ firstSearchExecuted, hasError, hasResults, isLoading }: SortGuardProps, sortTemplate: () => TemplateResult) => TemplateResult | typeof nothing | typeof noChange;
8
+ export declare const sortGuard: ({ firstSearchExecuted, hasError, hasResults, isLoading }: SortGuardProps, sortTemplate: () => TemplateResult) => typeof nothing | TemplateResult | typeof noChange;
9
9
  export {};
@@ -143,6 +143,7 @@ export declare class AtomicSearchInterface extends AtomicSearchInterface_base im
143
143
  updateIconAssetsPath(): void;
144
144
  private getBindings;
145
145
  private initFieldsToInclude;
146
+ private updateFieldsToInclude;
146
147
  registerFieldsToInclude(): void;
147
148
  private initEngine;
148
149
  private getSearchConfiguration;
@@ -12,7 +12,7 @@ export interface HierarchicalPathProps {
12
12
  }
13
13
  declare class HierarchicalPathDirective extends Directive {
14
14
  constructor(partInfo: PartInfo);
15
- render(props: HierarchicalPathProps): string | TemplateResult | TemplateResult<1>[];
15
+ render(props: HierarchicalPathProps): string | TemplateResult<1>[] | TemplateResult;
16
16
  private getEllipsedPath;
17
17
  }
18
18
  export declare const hierarchicalPath: (props: HierarchicalPathProps) => import("lit-html/directive.js").DirectiveResult<typeof HierarchicalPathDirective>;
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-10-03T20:09:22",
2
+ "timestamp": "2025-10-06T14:38:17",
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.34.0-pre.42475a96e4",
4
+ "version": "3.34.0-pre.4a7feb628b",
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": {
@@ -1,50 +0,0 @@
1
- import { deepEqual } from "../../../utils/compare-utils";
2
- /**
3
- * A reactive controller that validates the props of a Lit component against a
4
- * provided Bueno schema.
5
- *
6
- * It validates the props when the host is connected to the DOM and whenever
7
- * the host updates, revalidating only if the props have changed since the last
8
- * validation.
9
- *
10
- * If validation fails, the controller sets the `error` property on the host.
11
- */
12
- export class ValidatePropsController {
13
- /**
14
- * Creates a `ValidatePropsController`.
15
- *
16
- * @param host The host element.
17
- * @param getProps A function that returns the current props to validate.
18
- * @param schema The Bueno schema to validate the props against.
19
- */
20
- constructor(host, getProps, schema) {
21
- this.host = host;
22
- this.getProps = getProps;
23
- this.schema = schema;
24
- host.addController(this);
25
- }
26
- hostConnected() {
27
- this.currentProps = this.getProps();
28
- this._validateProps();
29
- }
30
- hostUpdate() {
31
- this.currentProps = this.getProps();
32
- if (deepEqual(this.currentProps, this.previousProps)) {
33
- return;
34
- }
35
- // @ts-expect-error: we need to clear the error.
36
- this.host.error = undefined;
37
- this._validateProps();
38
- }
39
- _validateProps() {
40
- try {
41
- this.schema.validate(this.currentProps);
42
- }
43
- catch (error) {
44
- this.host.error = error;
45
- }
46
- finally {
47
- this.previousProps = this.currentProps;
48
- }
49
- }
50
- }
@@ -1,49 +0,0 @@
1
- /**
2
- * Performs a deep equality comparison between two values.
3
- * Handles primitives, null/undefined, arrays, and objects.
4
- *
5
- * @param a - First value to compare
6
- * @param b - Second value to compare
7
- * @returns true if values are deeply equal, false otherwise
8
- */
9
- export function deepEqual(a, b) {
10
- if (a === b) {
11
- return true;
12
- }
13
- if (a == null || b == null) {
14
- return false;
15
- }
16
- const typeA = typeof a;
17
- const typeB = typeof b;
18
- if (typeA !== typeB) {
19
- return false;
20
- }
21
- if (Array.isArray(a)) {
22
- if (!Array.isArray(b) || a.length !== b.length) {
23
- return false;
24
- }
25
- for (let i = 0; i < a.length; i++) {
26
- if (!deepEqual(a[i], b[i])) {
27
- return false;
28
- }
29
- }
30
- return true;
31
- }
32
- if (typeA === 'object') {
33
- const aObj = a;
34
- const bObj = b;
35
- const aKeys = Object.keys(aObj);
36
- const bKeys = Object.keys(bObj);
37
- if (aKeys.length !== bKeys.length) {
38
- return false;
39
- }
40
- for (let i = 0; i < aKeys.length; i++) {
41
- const key = aKeys[i];
42
- if (!deepEqual(aObj[key], bObj[key])) {
43
- return false;
44
- }
45
- }
46
- return true;
47
- }
48
- return false;
49
- }
@@ -1,32 +0,0 @@
1
- import type { Schema } from '@coveo/bueno';
2
- import type { ReactiveController, ReactiveControllerHost } from 'lit';
3
- /**
4
- * A reactive controller that validates the props of a Lit component against a
5
- * provided Bueno schema.
6
- *
7
- * It validates the props when the host is connected to the DOM and whenever
8
- * the host updates, revalidating only if the props have changed since the last
9
- * validation.
10
- *
11
- * If validation fails, the controller sets the `error` property on the host.
12
- */
13
- export declare class ValidatePropsController<TProps extends Record<string, unknown>> implements ReactiveController {
14
- private host;
15
- private getProps;
16
- private schema;
17
- private currentProps?;
18
- private previousProps?;
19
- /**
20
- * Creates a `ValidatePropsController`.
21
- *
22
- * @param host The host element.
23
- * @param getProps A function that returns the current props to validate.
24
- * @param schema The Bueno schema to validate the props against.
25
- */
26
- constructor(host: ReactiveControllerHost & HTMLElement & {
27
- error: Error;
28
- }, getProps: () => TProps, schema: Schema<TProps>);
29
- hostConnected(): void;
30
- hostUpdate(): void;
31
- private _validateProps;
32
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Performs a deep equality comparison between two values.
3
- * Handles primitives, null/undefined, arrays, and objects.
4
- *
5
- * @param a - First value to compare
6
- * @param b - Second value to compare
7
- * @returns true if values are deeply equal, false otherwise
8
- */
9
- export declare function deepEqual(a: unknown, b: unknown): boolean;