@coveo/atomic 3.34.0-pre.3c8eaa1ba6 → 3.34.0-pre.42475a96e4
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-breadbox/atomic-commerce-breadbox.js +17 -32
- package/dist/atomic/components/components/common/validate-props-controller/validate-props-controller.js +50 -0
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/utils/compare-utils.js +49 -0
- package/dist/atomic/{p-1a960ce1.entry.js → p-1e0704aa.entry.js} +2 -2
- package/dist/atomic/{p-2ccbf224.entry.js → p-334327ae.entry.js} +2 -2
- package/dist/atomic/{p-015baf5e.js → p-9e1d876a.js} +2 -2
- package/dist/cjs/{analytics-config-66ad35d3.js → analytics-config-6a6f8cd5.js} +2 -2
- package/dist/cjs/{analytics-config-66ad35d3.js.map → analytics-config-6a6f8cd5.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/version.cjs.js +1 -1
- package/dist/esm/{analytics-config-7553c871.js → analytics-config-d9f4db52.js} +2 -2
- package/dist/esm/{analytics-config-7553c871.js.map → analytics-config-d9f4db52.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/version.js +1 -1
- package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +2 -3
- package/dist/types/components/common/facets/facet-search/facet-search-input-guard.d.ts +1 -1
- package/dist/types/components/common/no-items/guard.d.ts +1 -1
- package/dist/types/components/common/refine-modal/guard.d.ts +1 -1
- package/dist/types/components/common/sort/sort-guard.d.ts +1 -1
- package/dist/types/components/common/validate-props-controller/validate-props-controller.d.ts +32 -0
- package/dist/types/directives/hierarchical-path.d.ts +1 -1
- package/dist/types/utils/compare-utils.d.ts +9 -0
- package/docs/atomic-docs.json +1 -1
- package/package.json +2 -2
- /package/dist/atomic/{p-1a960ce1.entry.js.map → p-1e0704aa.entry.js.map} +0 -0
- /package/dist/atomic/{p-2ccbf224.entry.js.map → p-334327ae.entry.js.map} +0 -0
- /package/dist/atomic/{p-015baf5e.js.map → p-9e1d876a.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-d9f4db52.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-d9f4db52.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';
|
package/dist/esm/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
export const headlessVersion = '3.31.1';
|
2
|
-
export const atomicVersion = '3.34.0-pre.
|
2
|
+
export const atomicVersion = '3.34.0-pre.42475a96e4';
|
package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts
CHANGED
@@ -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";
|
3
4
|
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,10 +51,9 @@ export declare class AtomicCommerceBreadbox extends LitElement implements Initia
|
|
51
51
|
* @defaultValue `3`
|
52
52
|
*/
|
53
53
|
pathLimit: number;
|
54
|
+
constructor();
|
54
55
|
initialize(): void;
|
55
|
-
willUpdate(changedProperties: Map<string, unknown>): void;
|
56
56
|
updated(): void;
|
57
|
-
private validateProps;
|
58
57
|
disconnectedCallback(): void;
|
59
58
|
private get breadcrumbs();
|
60
59
|
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):
|
9
|
+
render({ canShowMoreValues, numberOfDisplayedValues, withSearch, }: FacetSearchInputGuardProps, content: () => unknown): import("lit-html").TemplateResult<1> | typeof nothing;
|
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):
|
9
|
+
render({ firstSearchExecuted, isLoading, hasResults }: NoItemsGuardProps, content: () => unknown): import("lit-html").TemplateResult<1> | typeof nothing;
|
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):
|
9
|
+
render({ hasError, firstRequestExecuted, hasItems }: RefineToggleGuardProps, content: () => unknown): import("lit-html").TemplateResult<1> | typeof nothing;
|
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) => typeof nothing |
|
8
|
+
export declare const sortGuard: ({ firstSearchExecuted, hasError, hasResults, isLoading }: SortGuardProps, sortTemplate: () => TemplateResult) => TemplateResult | typeof nothing | typeof noChange;
|
9
9
|
export {};
|
@@ -0,0 +1,32 @@
|
|
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
|
+
}
|
@@ -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<1>[]
|
15
|
+
render(props: HierarchicalPathProps): string | TemplateResult | TemplateResult<1>[];
|
16
16
|
private getEllipsedPath;
|
17
17
|
}
|
18
18
|
export declare const hierarchicalPath: (props: HierarchicalPathProps) => import("lit-html/directive.js").DirectiveResult<typeof HierarchicalPathDirective>;
|
@@ -0,0 +1,9 @@
|
|
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;
|
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.34.0-pre.
|
4
|
+
"version": "3.34.0-pre.42475a96e4",
|
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": {
|
@@ -149,7 +149,7 @@
|
|
149
149
|
"typescript": "5.8.3",
|
150
150
|
"vite": "7.0.6",
|
151
151
|
"vitest": "3.2.4",
|
152
|
-
"wait-on": "
|
152
|
+
"wait-on": "8.0.4"
|
153
153
|
},
|
154
154
|
"peerDependencies": {
|
155
155
|
"@coveo/bueno": "1.1.2",
|
File without changes
|
File without changes
|
File without changes
|