@coveo/atomic 3.33.9-pre.93c986e63b → 3.33.9-pre.a3f403762b
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 +24 -12
- package/dist/atomic/components/components/common/index.js +0 -1
- package/dist/atomic/components/components/common/lazy-index.js +0 -1
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/{p-cccf9070.entry.js → p-3ba27d6a.entry.js} +2 -2
- package/dist/atomic/{p-77166ea4.js → p-63dd5e46.js} +2 -2
- package/dist/atomic/{p-c9ce1b8b.entry.js → p-7b1cd0b5.entry.js} +2 -2
- package/dist/cjs/{analytics-config-8907b0be.js → analytics-config-9c9d5e75.js} +2 -2
- package/dist/cjs/{analytics-config-8907b0be.js.map → analytics-config-9c9d5e75.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-c7b844df.js → analytics-config-a3308fef.js} +2 -2
- package/dist/esm/{analytics-config-c7b844df.js.map → analytics-config-a3308fef.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 -1
- package/dist/types/components/common/index.d.ts +0 -1
- package/docs/atomic-docs.json +1 -1
- package/package.json +1 -1
- package/dist/atomic/components/components/common/validate-props-controller/validate-props-controller.js +0 -36
- package/dist/types/components/common/validate-props-controller/validate-props-controller.d.ts +0 -17
- /package/dist/atomic/{p-cccf9070.entry.js.map → p-3ba27d6a.entry.js.map} +0 -0
- /package/dist/atomic/{p-77166ea4.js.map → p-63dd5e46.js.map} +0 -0
- /package/dist/atomic/{p-c9ce1b8b.entry.js.map → p-7b1cd0b5.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-
|
4
|
+
import { g as getNextAnalyticsConfig, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance } from './analytics-config-a3308fef.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-a3308fef.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.33.9-pre.
|
2
|
+
export const atomicVersion = '3.33.9-pre.a3f403762b';
|
package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts
CHANGED
@@ -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();
|
@@ -5,4 +5,3 @@ export { AtomicFacetPlaceholder } from './atomic-facet-placeholder/atomic-facet-
|
|
5
5
|
export { AtomicIcon } from './atomic-icon/atomic-icon.js';
|
6
6
|
export { AtomicLayoutSection } from './atomic-layout-section/atomic-layout-section.js';
|
7
7
|
export { AtomicModal } from './atomic-modal/atomic-modal.js';
|
8
|
-
export { ValidatePropsController } from './validate-props-controller/validate-props-controller.js';
|
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.9-pre.
|
4
|
+
"version": "3.33.9-pre.a3f403762b",
|
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,36 +0,0 @@
|
|
1
|
-
export class ValidatePropsController {
|
2
|
-
constructor(host, options) {
|
3
|
-
this.host = host;
|
4
|
-
this.getProps = options.getProps;
|
5
|
-
this.schema = options.schema;
|
6
|
-
this.previousProps = {};
|
7
|
-
host.addController(this);
|
8
|
-
}
|
9
|
-
hostConnected() {
|
10
|
-
this._validateProps(this.getProps());
|
11
|
-
}
|
12
|
-
hostUpdate() {
|
13
|
-
const props = this.getProps();
|
14
|
-
if (this._propsHaveChanged(props)) {
|
15
|
-
this._validateProps(props);
|
16
|
-
}
|
17
|
-
}
|
18
|
-
_validateProps(props) {
|
19
|
-
try {
|
20
|
-
this.schema.validate(props);
|
21
|
-
}
|
22
|
-
catch (error) {
|
23
|
-
this.host.error = error;
|
24
|
-
}
|
25
|
-
this.previousProps = props;
|
26
|
-
}
|
27
|
-
_propsHaveChanged(newProps) {
|
28
|
-
const newKeys = Object.keys(newProps);
|
29
|
-
const oldKeys = Object.keys(this.previousProps);
|
30
|
-
if (newKeys.length !== oldKeys.length) {
|
31
|
-
return true;
|
32
|
-
}
|
33
|
-
return newKeys.some((key) => newProps[key] !==
|
34
|
-
this.previousProps[key]);
|
35
|
-
}
|
36
|
-
}
|
package/dist/types/components/common/validate-props-controller/validate-props-controller.d.ts
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
import type { Schema } from '@coveo/bueno';
|
2
|
-
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
3
|
-
import type { LitElementWithError } from "../../../decorators/types";
|
4
|
-
export declare class ValidatePropsController implements ReactiveController {
|
5
|
-
private host;
|
6
|
-
private getProps;
|
7
|
-
private schema;
|
8
|
-
private previousProps;
|
9
|
-
constructor(host: ReactiveControllerHost & LitElementWithError, options: {
|
10
|
-
getProps: () => Object;
|
11
|
-
schema: Schema<Object>;
|
12
|
-
});
|
13
|
-
hostConnected(): void;
|
14
|
-
hostUpdate(): void;
|
15
|
-
private _validateProps;
|
16
|
-
private _propsHaveChanged;
|
17
|
-
}
|
File without changes
|
File without changes
|
File without changes
|