@coveo/atomic 3.33.0-pre.3f218e953a → 3.33.0-pre.4dbee2e113
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/atomic-sort-expression.js +1 -1
- package/dist/atomic/components/atomic-sort-expression.js.map +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-list/atomic-commerce-recommendation-list.js +2 -6
- package/dist/atomic/components/decorators/inject-styles-for-no-shadow-dom.js +10 -1
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/mixins/item-section-mixin.js +15 -6
- package/dist/atomic/{p-308c3a88.entry.js → p-09924944.entry.js} +2 -2
- package/dist/atomic/p-09924944.entry.js.map +1 -0
- package/dist/atomic/{p-b0e033bf.entry.js → p-1b525040.entry.js} +2 -2
- package/dist/atomic/{p-242732ea.entry.js → p-778361b4.entry.js} +2 -2
- package/dist/atomic/{p-96e52eee.js → p-83b221ac.js} +2 -2
- package/dist/atomic/{p-ab62c954.entry.js → p-dfa41f58.entry.js} +2 -2
- package/dist/cjs/{analytics-config-f1ea579c.js → analytics-config-8f26a01c.js} +2 -2
- package/dist/cjs/{analytics-config-f1ea579c.js.map → analytics-config-8f26a01c.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/atomic-sort-expression.cjs.entry.js +1 -1
- package/dist/cjs/atomic-sort-expression.cjs.entry.js.map +1 -1
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/{analytics-config-967420c8.js → analytics-config-1dea0fe2.js} +2 -2
- package/dist/esm/{analytics-config-967420c8.js.map → analytics-config-1dea0fe2.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/atomic-sort-expression.entry.js +1 -1
- package/dist/esm/atomic-sort-expression.entry.js.map +1 -1
- package/dist/esm/version.js +2 -2
- package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +2 -2
- package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +3 -3
- package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-recommendation-list/atomic-commerce-recommendation-list.d.ts +1 -1
- package/dist/types/components/search/atomic-sort-expression/atomic-sort-expression.d.ts +13 -2
- package/dist/types/components.d.ts +2 -2
- package/dist/types/decorators/inject-styles-for-no-shadow-dom.d.ts +3 -3
- package/dist/types/mixins/item-section-mixin.d.ts +3 -2
- package/docs/atomic-docs.json +2 -2
- package/package.json +3 -3
- package/dist/atomic/p-308c3a88.entry.js.map +0 -1
- /package/dist/atomic/{p-b0e033bf.entry.js.map → p-1b525040.entry.js.map} +0 -0
- /package/dist/atomic/{p-242732ea.entry.js.map → p-778361b4.entry.js.map} +0 -0
- /package/dist/atomic/{p-96e52eee.js.map → p-83b221ac.js.map} +0 -0
- /package/dist/atomic/{p-ab62c954.entry.js.map → p-dfa41f58.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-1dea0fe2.js';
|
|
5
5
|
import { A as ArrayProp } from './props-utils-76e19fa7.js';
|
|
6
6
|
import { D as DEFAULT_MOBILE_BREAKPOINT } from './replace-breakpoint-213367f8.js';
|
|
7
7
|
import { u as unsetLoadingFlag, s as setLoadingFlag, r as registerFacet, g as getFacetElements, w as waitUntilAppLoaded, a as createBaseStore } from './store-e14e2958.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-1dea0fe2.js';
|
|
5
5
|
import { A as ArrayProp } from './props-utils-76e19fa7.js';
|
|
6
6
|
import { u as unsetLoadingFlag, s as setLoadingFlag, a as createBaseStore } from './store-e14e2958.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-1dea0fe2.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-76e19fa7.js';
|
|
7
7
|
import { m as makeDesktopQuery, n as noResultsSelector, e as errorSelector, f as firstSearchExecutedSelector } from './search-layout-fdd7a917.js';
|
|
@@ -50,7 +50,7 @@ const AtomicSortExpression = class {
|
|
|
50
50
|
const dropdownComponent = 'atomic-sort-dropdown';
|
|
51
51
|
if (!this.host.closest(dropdownComponent)) {
|
|
52
52
|
const error = new Error(`The "${this.host.nodeName.toLowerCase()}" component has to be used inside an ${dropdownComponent} element.`);
|
|
53
|
-
return (h("atomic-component-error", { key: '
|
|
53
|
+
return (h("atomic-component-error", { key: '4492cc004facf655eaad9558db0c7a161535a8b6', element: this.host, error: error }));
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
get host() { return getElement(this); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"atomic-sort-expression.entry.js","mappings":";;;;;;;;;;;;;;;;;MAUa,oBAAoB;;;;;;;;;;;;
|
|
1
|
+
{"file":"atomic-sort-expression.entry.js","mappings":";;;;;;;;;;;;;;;;;MAUa,oBAAoB;;;;;;;;;;;;QA2CxB,iBAAY,GAAsB,IAAI,CAAC;;;;;;;;;;QAavC,iBAAY,GAAsB,IAAI,CAAC;;;4BAbL,IAAI;4BAaJ,IAAI;;IAEtC,MAAM;QACX,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE;YAChE,OAAO,CAAC,IAAI,CACV,qHAAqH,CACtH,CAAC;SACH;QAED,MAAM,iBAAiB,GAAG,sBAAsB,CAAC;QAEjD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE;YACzC,MAAM,KAAK,GAAG,IAAI,KAAK,CACrB,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,wCAAwC,iBAAiB,WAAW,CAC7G,CAAC;YACF,QACE,+EACE,OAAO,EAAE,IAAI,CAAC,IAAI,EAClB,KAAK,EAAE,KAAK,GACY,EAC1B;SACH;KACF;;;AAnCM;IAFN,SAAS,EAAE;0DAEkC;AAavC;IAFN,SAAS,EAAE;0DAEkC;;;;","names":[],"sources":["src/components/search/atomic-sort-expression/atomic-sort-expression.tsx"],"sourcesContent":["import {Component, Prop, Element, h} from '@stencil/core';\nimport {ArrayProp} from '../../../utils/props-utils';\n\n/**\n * The `atomic-sort-expression` component defines a sort expression. This component must be inside an `atomic-sort-dropdown` component.\n */\n@Component({\n tag: 'atomic-sort-expression',\n shadow: false,\n})\nexport class AtomicSortExpression {\n @Element() public host!: HTMLElement;\n\n /**\n * The non-localized label to display for this expression.\n */\n @Prop({reflect: true}) public label!: string;\n\n /**\n * One or more sort criteria that the end user can select or toggle between.\n *\n * The available sort criteria are:\n *\n * * `relevancy`\n * * `date ascending`/`date descending`\n * * `qre`\n * * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (`criteria=\"size ascending\"`).\n *\n * You can specify multiple sort criteria to be used in the same request by separating them with a comma (`criteria=\"size ascending, date ascending\"`).\n * \n * You can specify a list of comma-separated sort criteria which will be applied sequentially. For example, if there's a tie on the 1st criterion, the API uses the 2nd criterion to break the tie. However, this only works when combining:\n * * a relevancy criterion followed by one or more field or date criteria.\n * * a qre criterion followed by one or more field or date criteria.\n * * two or more field criteria (`<FIELD>` descending, `<FIELD>` descending).\n * * a single date criterion and one or more field criteria in any order (`<FIELD>` descending, date ascending).\n * \n * Examples:\n * * `relevancy`, `<FIELD> descending`\n * * `qre`, `<FIELD> ascending`\n * * `date descending`, `<FIELD> descending`, `<FIELD> ascending`\n */\n @Prop({reflect: true}) public expression!: string;\n /**\n * The tabs on which the sort expression can be displayed. This property should not be used at the same time as `tabs-excluded`.\n *\n * Set this property as a stringified JSON array, e.g.,\n * ```html\n * <atomic-sort-expression tabs-included='[\"tabIDA\", \"tabIDB\"]'></atomic-sort-expression snippet>\n * ```\n * If you don't set this property, the sort expression can be displayed on any tab. Otherwise, the sort expression can only be displayed on the specified tabs.\n */\n @ArrayProp()\n @Prop({reflect: true, mutable: true})\n public tabsIncluded: string[] | string = '[]';\n\n /**\n * The tabs on which the sort expression must not be displayed. This property should not be used at the same time as `tabs-included`.\n *\n * Set this property as a stringified JSON array, e.g.,\n * ```html\n * <atomic-sort-expression tabs-excluded='[\"tabIDA\", \"tabIDB\"]'></atomic-sort-expression>\n * ```\n * If you don't set this property, the sort expression can be displayed on any tab. Otherwise, the sort expression won't be displayed on any of the specified tabs.\n */\n @ArrayProp()\n @Prop({reflect: true, mutable: true})\n public tabsExcluded: string[] | string = '[]';\n\n public render() {\n if (this.tabsIncluded.length > 0 && this.tabsExcluded.length > 0) {\n console.warn(\n 'Values for both \"tabs-included\" and \"tabs-excluded\" have been provided. This is could lead to unexpected behaviors.'\n );\n }\n\n const dropdownComponent = 'atomic-sort-dropdown';\n\n if (!this.host.closest(dropdownComponent)) {\n const error = new Error(\n `The \"${this.host.nodeName.toLowerCase()}\" component has to be used inside an ${dropdownComponent} element.`\n );\n return (\n <atomic-component-error\n element={this.host}\n error={error}\n ></atomic-component-error>\n );\n }\n }\n}\n"],"version":3}
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const headlessVersion = '3.28.4-pre.
|
|
2
|
-
export const atomicVersion = '3.33.0-pre.
|
|
1
|
+
export const headlessVersion = '3.28.4-pre.4dbee2e113';
|
|
2
|
+
export const atomicVersion = '3.33.0-pre.4dbee2e113';
|
package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BreadcrumbManager, type BreadcrumbManagerState, type Context, type ContextState
|
|
1
|
+
import { type BreadcrumbManager, type BreadcrumbManagerState, type Context, type ContextState } from '@coveo/headless/commerce';
|
|
2
2
|
import { type CSSResultGroup, LitElement } from 'lit';
|
|
3
3
|
import type { InitializableComponent } from "../../../decorators/types";
|
|
4
4
|
import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
|
|
@@ -31,7 +31,7 @@ export declare class AtomicCommerceBreadbox extends LitElement implements Initia
|
|
|
31
31
|
breadcrumbManager: BreadcrumbManager;
|
|
32
32
|
context: Context;
|
|
33
33
|
contextState: ContextState;
|
|
34
|
-
searchOrListing
|
|
34
|
+
private searchOrListing;
|
|
35
35
|
breadcrumbManagerState: BreadcrumbManagerState;
|
|
36
36
|
error: Error;
|
|
37
37
|
private isCollapsed;
|
package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CommerceEngine, type CommerceEngineConfiguration, type Context, type LogLevel, type
|
|
1
|
+
import { type CommerceEngine, type CommerceEngineConfiguration, type Context, type LogLevel, type ProductListingSummaryState, type SearchSummaryState, type Summary, type UrlManager } from '@coveo/headless/commerce';
|
|
2
2
|
import { type i18n } from 'i18next';
|
|
3
3
|
import { type CSSResultGroup, LitElement } from 'lit';
|
|
4
4
|
import type { CommonBindings } from '../../common/interface/bindings';
|
|
@@ -17,13 +17,13 @@ declare const AtomicCommerceInterface_base: typeof LitElement;
|
|
|
17
17
|
*/
|
|
18
18
|
export declare class AtomicCommerceInterface extends AtomicCommerceInterface_base implements BaseAtomicInterface<CommerceEngine> {
|
|
19
19
|
urlManager: UrlManager;
|
|
20
|
-
searchOrListing
|
|
20
|
+
private searchOrListing;
|
|
21
21
|
summary: Summary<SearchSummaryState | ProductListingSummaryState>;
|
|
22
22
|
context: Context;
|
|
23
23
|
private unsubscribeUrlManager?;
|
|
24
24
|
private unsubscribeSummary?;
|
|
25
25
|
private initialized;
|
|
26
|
-
store
|
|
26
|
+
private store;
|
|
27
27
|
private interfaceController;
|
|
28
28
|
error: Error;
|
|
29
29
|
static styles: CSSResultGroup;
|
|
@@ -20,7 +20,7 @@ export declare class AtomicCommerceRecommendationInterface extends AtomicCommerc
|
|
|
20
20
|
bindings: CommerceBindings;
|
|
21
21
|
error: Error;
|
|
22
22
|
context: Context;
|
|
23
|
-
store
|
|
23
|
+
private store;
|
|
24
24
|
private interfaceController;
|
|
25
25
|
static styles: CSSResultGroup;
|
|
26
26
|
/**
|
|
@@ -45,7 +45,7 @@ export declare class AtomicCommerceRecommendationList extends AtomicCommerceReco
|
|
|
45
45
|
* You can configure recommendation lists and get their respective slot IDs through the Coveo Merchandising Hub (CMH).
|
|
46
46
|
* You can include multiple `atomic-commerce-recommendation-list` components with different slot IDs in the same page to display several recommendation lists.
|
|
47
47
|
*/
|
|
48
|
-
slotId
|
|
48
|
+
slotId?: string;
|
|
49
49
|
/**
|
|
50
50
|
* The unique identifier of the product to use for seeded recommendations.
|
|
51
51
|
*/
|
|
@@ -15,9 +15,20 @@ export declare class AtomicSortExpression {
|
|
|
15
15
|
* * `relevancy`
|
|
16
16
|
* * `date ascending`/`date descending`
|
|
17
17
|
* * `qre`
|
|
18
|
-
* * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (
|
|
18
|
+
* * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (`criteria="size ascending"`).
|
|
19
19
|
*
|
|
20
|
-
* You can specify multiple sort criteria to be used in the same request by separating them with a comma (
|
|
20
|
+
* You can specify multiple sort criteria to be used in the same request by separating them with a comma (`criteria="size ascending, date ascending"`).
|
|
21
|
+
*
|
|
22
|
+
* You can specify a list of comma-separated sort criteria which will be applied sequentially. For example, if there's a tie on the 1st criterion, the API uses the 2nd criterion to break the tie. However, this only works when combining:
|
|
23
|
+
* * a relevancy criterion followed by one or more field or date criteria.
|
|
24
|
+
* * a qre criterion followed by one or more field or date criteria.
|
|
25
|
+
* * two or more field criteria (`<FIELD>` descending, `<FIELD>` descending).
|
|
26
|
+
* * a single date criterion and one or more field criteria in any order (`<FIELD>` descending, date ascending).
|
|
27
|
+
*
|
|
28
|
+
* Examples:
|
|
29
|
+
* * `relevancy`, `<FIELD> descending`
|
|
30
|
+
* * `qre`, `<FIELD> ascending`
|
|
31
|
+
* * `date descending`, `<FIELD> descending`, `<FIELD> ascending`
|
|
21
32
|
*/
|
|
22
33
|
expression: string;
|
|
23
34
|
/**
|
|
@@ -2717,7 +2717,7 @@ export namespace Components {
|
|
|
2717
2717
|
*/
|
|
2718
2718
|
interface AtomicSortExpression {
|
|
2719
2719
|
/**
|
|
2720
|
-
* One or more sort criteria that the end user can select or toggle between. The available sort criteria are: * `relevancy` * `date ascending`/`date descending` * `qre` * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (
|
|
2720
|
+
* One or more sort criteria that the end user can select or toggle between. The available sort criteria are: * `relevancy` * `date ascending`/`date descending` * `qre` * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (`criteria="size ascending"`). You can specify multiple sort criteria to be used in the same request by separating them with a comma (`criteria="size ascending, date ascending"`). You can specify a list of comma-separated sort criteria which will be applied sequentially. For example, if there's a tie on the 1st criterion, the API uses the 2nd criterion to break the tie. However, this only works when combining: * a relevancy criterion followed by one or more field or date criteria. * a qre criterion followed by one or more field or date criteria. * two or more field criteria (`<FIELD>` descending, `<FIELD>` descending). * a single date criterion and one or more field criteria in any order (`<FIELD>` descending, date ascending). Examples: * `relevancy`, `<FIELD> descending` * `qre`, `<FIELD> ascending` * `date descending`, `<FIELD> descending`, `<FIELD> ascending`
|
|
2721
2721
|
*/
|
|
2722
2722
|
"expression": string;
|
|
2723
2723
|
/**
|
|
@@ -7235,7 +7235,7 @@ declare namespace LocalJSX {
|
|
|
7235
7235
|
*/
|
|
7236
7236
|
interface AtomicSortExpression {
|
|
7237
7237
|
/**
|
|
7238
|
-
* One or more sort criteria that the end user can select or toggle between. The available sort criteria are: * `relevancy` * `date ascending`/`date descending` * `qre` * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (
|
|
7238
|
+
* One or more sort criteria that the end user can select or toggle between. The available sort criteria are: * `relevancy` * `date ascending`/`date descending` * `qre` * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (`criteria="size ascending"`). You can specify multiple sort criteria to be used in the same request by separating them with a comma (`criteria="size ascending, date ascending"`). You can specify a list of comma-separated sort criteria which will be applied sequentially. For example, if there's a tie on the 1st criterion, the API uses the 2nd criterion to break the tie. However, this only works when combining: * a relevancy criterion followed by one or more field or date criteria. * a qre criterion followed by one or more field or date criteria. * two or more field criteria (`<FIELD>` descending, `<FIELD>` descending). * a single date criterion and one or more field criteria in any order (`<FIELD>` descending, date ascending). Examples: * `relevancy`, `<FIELD> descending` * `qre`, `<FIELD> ascending` * `date descending`, `<FIELD> descending`, `<FIELD> ascending`
|
|
7239
7239
|
*/
|
|
7240
7240
|
"expression": string;
|
|
7241
7241
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CSSResultGroup } from 'lit';
|
|
2
2
|
/**
|
|
3
3
|
* Decorator to inject styles into components that do not use Shadow DOM.
|
|
4
4
|
*
|
|
@@ -16,7 +16,7 @@ import type { CSSResult } from 'lit';
|
|
|
16
16
|
* @template T - A LitElement constructor with a static `styles` property.
|
|
17
17
|
*/
|
|
18
18
|
export declare const injectStylesForNoShadowDOM: <T extends {
|
|
19
|
-
styles
|
|
19
|
+
styles?: CSSResultGroup;
|
|
20
20
|
new (...args: any[]): any;
|
|
21
21
|
}>(Base: T) => {
|
|
22
22
|
new (...args: any[]): {
|
|
@@ -25,5 +25,5 @@ export declare const injectStylesForNoShadowDOM: <T extends {
|
|
|
25
25
|
connectedCallback(): void;
|
|
26
26
|
injectStyles(): void;
|
|
27
27
|
};
|
|
28
|
-
styles
|
|
28
|
+
styles?: CSSResultGroup;
|
|
29
29
|
} & T;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { LitElement } from 'lit';
|
|
1
|
+
import type { CSSResultGroup, LitElement } from 'lit';
|
|
2
2
|
import type { Constructor } from './mixin-common.js';
|
|
3
3
|
/**
|
|
4
4
|
* Mixin for product section components that provides common functionality.
|
|
5
5
|
* All product section components extend LitElement and call hideEmptySection in updated().
|
|
6
6
|
*
|
|
7
7
|
* @param superClass - The base class to extend
|
|
8
|
+
* @param styles - The styles to apply to the section.
|
|
8
9
|
* @returns A class that extends the superClass with product section functionality
|
|
9
10
|
*/
|
|
10
|
-
export declare function ItemSectionMixin<T extends Constructor<LitElement>>(superClass: T): T;
|
|
11
|
+
export declare function ItemSectionMixin<T extends Constructor<LitElement>>(superClass: T, styles?: CSSResultGroup): T;
|
package/docs/atomic-docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-08-
|
|
2
|
+
"timestamp": "2025-08-19T16:27:13",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.20.0",
|
|
@@ -14181,7 +14181,7 @@
|
|
|
14181
14181
|
"mutable": false,
|
|
14182
14182
|
"attr": "expression",
|
|
14183
14183
|
"reflectToAttr": true,
|
|
14184
|
-
"docs": "One or more sort criteria that the end user can select or toggle between.\n\nThe available sort criteria are:\n\n* `relevancy`\n* `date ascending`/`date descending`\n* `qre`\n* `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (
|
|
14184
|
+
"docs": "One or more sort criteria that the end user can select or toggle between.\n\nThe available sort criteria are:\n\n* `relevancy`\n* `date ascending`/`date descending`\n* `qre`\n* `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (`criteria=\"size ascending\"`).\n\nYou can specify multiple sort criteria to be used in the same request by separating them with a comma (`criteria=\"size ascending, date ascending\"`).\n\nYou can specify a list of comma-separated sort criteria which will be applied sequentially. For example, if there's a tie on the 1st criterion, the API uses the 2nd criterion to break the tie. However, this only works when combining:\n* a relevancy criterion followed by one or more field or date criteria.\n* a qre criterion followed by one or more field or date criteria.\n* two or more field criteria (`<FIELD>` descending, `<FIELD>` descending).\n* a single date criterion and one or more field criteria in any order (`<FIELD>` descending, date ascending).\n\nExamples:\n* `relevancy`, `<FIELD> descending`\n* `qre`, `<FIELD> ascending`\n* `date descending`, `<FIELD> descending`, `<FIELD> ascending`",
|
|
14185
14185
|
"docsTags": [],
|
|
14186
14186
|
"values": [
|
|
14187
14187
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coveo/atomic",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.33.0-pre.
|
|
4
|
+
"version": "3.33.0-pre.4dbee2e113",
|
|
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": {
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@coveo/bueno": "1.1.0",
|
|
85
|
-
"@coveo/headless": "3.28.4-pre.
|
|
85
|
+
"@coveo/headless": "3.28.4-pre.4dbee2e113",
|
|
86
86
|
"@lit/context": "1.1.6",
|
|
87
87
|
"@popperjs/core": "2.11.8",
|
|
88
88
|
"@salesforce-ux/design-system": "2.27.2",
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
},
|
|
170
170
|
"peerDependencies": {
|
|
171
171
|
"@coveo/bueno": "1.1.0",
|
|
172
|
-
"@coveo/headless": "3.28.4-pre.
|
|
172
|
+
"@coveo/headless": "3.28.4-pre.4dbee2e113",
|
|
173
173
|
"typescript": ">=5.0.0"
|
|
174
174
|
},
|
|
175
175
|
"peerDependenciesMeta": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["AtomicSortExpression","this","tabsIncluded","tabsExcluded","render","length","console","warn","dropdownComponent","host","closest","error","Error","nodeName","toLowerCase","h","key","element","__decorate","ArrayProp"],"sources":["src/components/search/atomic-sort-expression/atomic-sort-expression.tsx"],"sourcesContent":["import {Component, Prop, Element, h} from '@stencil/core';\nimport {ArrayProp} from '../../../utils/props-utils';\n\n/**\n * The `atomic-sort-expression` component defines a sort expression. This component must be inside an `atomic-sort-dropdown` component.\n */\n@Component({\n tag: 'atomic-sort-expression',\n shadow: false,\n})\nexport class AtomicSortExpression {\n @Element() public host!: HTMLElement;\n\n /**\n * The non-localized label to display for this expression.\n */\n @Prop({reflect: true}) public label!: string;\n\n /**\n * One or more sort criteria that the end user can select or toggle between.\n *\n * The available sort criteria are:\n *\n * * `relevancy`\n * * `date ascending`/`date descending`\n * * `qre`\n * * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (e.g., `criteria=\"size ascending\"`).\n *\n * You can specify multiple sort criteria to be used in the same request by separating them with a comma (e.g., `criteria=\"size ascending, date ascending\"`).\n */\n @Prop({reflect: true}) public expression!: string;\n /**\n * The tabs on which the sort expression can be displayed. This property should not be used at the same time as `tabs-excluded`.\n *\n * Set this property as a stringified JSON array, e.g.,\n * ```html\n * <atomic-sort-expression tabs-included='[\"tabIDA\", \"tabIDB\"]'></atomic-sort-expression snippet>\n * ```\n * If you don't set this property, the sort expression can be displayed on any tab. Otherwise, the sort expression can only be displayed on the specified tabs.\n */\n @ArrayProp()\n @Prop({reflect: true, mutable: true})\n public tabsIncluded: string[] | string = '[]';\n\n /**\n * The tabs on which the sort expression must not be displayed. This property should not be used at the same time as `tabs-included`.\n *\n * Set this property as a stringified JSON array, e.g.,\n * ```html\n * <atomic-sort-expression tabs-excluded='[\"tabIDA\", \"tabIDB\"]'></atomic-sort-expression>\n * ```\n * If you don't set this property, the sort expression can be displayed on any tab. Otherwise, the sort expression won't be displayed on any of the specified tabs.\n */\n @ArrayProp()\n @Prop({reflect: true, mutable: true})\n public tabsExcluded: string[] | string = '[]';\n\n public render() {\n if (this.tabsIncluded.length > 0 && this.tabsExcluded.length > 0) {\n console.warn(\n 'Values for both \"tabs-included\" and \"tabs-excluded\" have been provided. This is could lead to unexpected behaviors.'\n );\n }\n\n const dropdownComponent = 'atomic-sort-dropdown';\n\n if (!this.host.closest(dropdownComponent)) {\n const error = new Error(\n `The \"${this.host.nodeName.toLowerCase()}\" component has to be used inside an ${dropdownComponent} element.`\n );\n return (\n <atomic-component-error\n element={this.host}\n error={error}\n ></atomic-component-error>\n );\n }\n }\n}\n"],"mappings":"oiBAUaA,EAAoB,M,yBAgCxBC,KAAAC,aAAkC,KAalCD,KAAAE,aAAkC,K,iEAbA,K,kBAaA,I,CAElC,MAAAC,GACL,GAAIH,KAAKC,aAAaG,OAAS,GAAKJ,KAAKE,aAAaE,OAAS,EAAG,CAChEC,QAAQC,KACN,sH,CAIJ,MAAMC,EAAoB,uBAE1B,IAAKP,KAAKQ,KAAKC,QAAQF,GAAoB,CACzC,MAAMG,EAAQ,IAAIC,MAChB,QAAQX,KAAKQ,KAAKI,SAASC,qDAAqDN,cAElF,OACEO,EAAA,0BAAAC,IAAA,2CACEC,QAAShB,KAAKQ,KACdE,MAAOA,G,8BA/BRO,EAAA,CAFNC,K,mCAeMD,EAAA,CAFNC,K","ignoreList":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|