@coveo/atomic 3.32.2-pre.7ebb22e39f → 3.32.2-pre.b8e515cd6a
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 +12 -9
- package/dist/atomic/components/analytics-config.js.map +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-breadbox/atomic-commerce-breadbox.js +0 -2
- package/dist/atomic/components/components/commerce/atomic-commerce-did-you-mean/atomic-commerce-did-you-mean.js +0 -2
- package/dist/atomic/components/components/commerce/atomic-commerce-facet/atomic-commerce-facet.js +0 -2
- package/dist/atomic/components/components/commerce/atomic-commerce-facets/atomic-commerce-facets.js +0 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +3 -4
- package/dist/atomic/components/components/commerce/atomic-commerce-layout/atomic-commerce-layout.js +2 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-no-products/atomic-commerce-no-products.js +0 -2
- package/dist/atomic/components/components/commerce/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.js +0 -3
- package/dist/atomic/components/components/commerce/atomic-commerce-pager/atomic-commerce-pager.js +0 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-product-list/atomic-commerce-product-list.js +0 -2
- package/dist/atomic/components/components/commerce/atomic-commerce-products-per-page/atomic-commerce-products-per-page.js +0 -2
- package/dist/atomic/components/components/commerce/atomic-commerce-query-error/atomic-commerce-query-error.js +0 -2
- package/dist/atomic/components/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.js +0 -2
- package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +5 -3
- package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-list/atomic-commerce-recommendation-list.js +0 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-refine-toggle/atomic-commerce-refine-toggle.js +0 -2
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +0 -2
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.js +1 -4
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions.js +1 -2
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.js +0 -2
- package/dist/atomic/components/components/commerce/atomic-commerce-sort-dropdown/atomic-commerce-sort-dropdown.js +0 -2
- package/dist/atomic/components/components/commerce/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.js +0 -2
- package/dist/atomic/components/components/commerce/atomic-product-field-condition/atomic-product-field-condition.js +0 -2
- package/dist/atomic/components/components/commerce/atomic-product-link/atomic-product-link.js +2 -1
- package/dist/atomic/components/components/commerce/atomic-product-multi-value-text/atomic-product-multi-value-text.js +0 -2
- package/dist/atomic/components/components/commerce/atomic-product-numeric-field-value/atomic-product-numeric-field-value.js +0 -1
- package/dist/atomic/components/components/commerce/atomic-product-price/atomic-product-price.js +0 -1
- package/dist/atomic/components/components/commerce/atomic-product-rating/atomic-product-rating.js +0 -2
- package/dist/atomic/components/components/commerce/atomic-product-template/atomic-product-template.js +0 -2
- package/dist/atomic/components/components/common/interface/analytics-config.js +3 -3
- package/dist/atomic/components/components/common/interface/interface-controller.js +2 -2
- package/dist/atomic/components/global/environment.js +8 -6
- package/dist/atomic/{p-7b672d9f.entry.js → p-1dcf9585.entry.js} +2 -2
- package/dist/atomic/{p-01cedded.entry.js → p-22e61d7a.entry.js} +2 -2
- package/dist/atomic/p-22e61d7a.entry.js.map +1 -0
- package/dist/atomic/{p-727cc050.entry.js → p-8b111f3b.entry.js} +2 -2
- package/dist/atomic/{p-d840d3eb.js → p-c9e93bf4.js} +2 -2
- package/dist/atomic/p-c9e93bf4.js.map +1 -0
- package/dist/atomic/{p-e23a811e.entry.js → p-eebec7c7.entry.js} +2 -2
- package/dist/cjs/{analytics-config-5475c9f5.js → analytics-config-e9f853d6.js} +13 -10
- package/dist/cjs/analytics-config-e9f853d6.js.map +1 -0
- package/dist/cjs/atomic-insight-interface.cjs.entry.js +2 -2
- package/dist/cjs/atomic-recs-interface.cjs.entry.js +2 -2
- 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-d4cd9fcd.js → analytics-config-8a2cc9b4.js} +13 -10
- package/dist/esm/analytics-config-8a2cc9b4.js.map +1 -0
- package/dist/esm/atomic-insight-interface.entry.js +2 -2
- package/dist/esm/atomic-recs-interface.entry.js +2 -2
- 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 +0 -2
- package/dist/types/components/commerce/atomic-commerce-did-you-mean/atomic-commerce-did-you-mean.d.ts +0 -2
- package/dist/types/components/commerce/atomic-commerce-facet/atomic-commerce-facet.d.ts +0 -2
- package/dist/types/components/commerce/atomic-commerce-facets/atomic-commerce-facets.d.ts +0 -1
- package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +1 -2
- package/dist/types/components/commerce/atomic-commerce-layout/atomic-commerce-layout.d.ts +2 -1
- package/dist/types/components/commerce/atomic-commerce-no-products/atomic-commerce-no-products.d.ts +0 -2
- package/dist/types/components/commerce/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.d.ts +0 -3
- package/dist/types/components/commerce/atomic-commerce-pager/atomic-commerce-pager.d.ts +0 -1
- package/dist/types/components/commerce/atomic-commerce-product-list/atomic-commerce-product-list.d.ts +0 -2
- package/dist/types/components/commerce/atomic-commerce-products-per-page/atomic-commerce-products-per-page.d.ts +0 -2
- package/dist/types/components/commerce/atomic-commerce-query-error/atomic-commerce-query-error.d.ts +0 -2
- package/dist/types/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.d.ts +0 -2
- package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +3 -1
- package/dist/types/components/commerce/atomic-commerce-recommendation-list/atomic-commerce-recommendation-list.d.ts +0 -1
- package/dist/types/components/commerce/atomic-commerce-refine-toggle/atomic-commerce-refine-toggle.d.ts +0 -2
- package/dist/types/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.d.ts +0 -2
- package/dist/types/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.d.ts +1 -4
- package/dist/types/components/commerce/atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions.d.ts +1 -2
- package/dist/types/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.d.ts +0 -2
- package/dist/types/components/commerce/atomic-commerce-sort-dropdown/atomic-commerce-sort-dropdown.d.ts +0 -2
- package/dist/types/components/commerce/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.d.ts +0 -2
- package/dist/types/components/commerce/atomic-product-field-condition/atomic-product-field-condition.d.ts +0 -2
- package/dist/types/components/commerce/atomic-product-link/atomic-product-link.d.ts +2 -1
- package/dist/types/components/commerce/atomic-product-multi-value-text/atomic-product-multi-value-text.d.ts +0 -2
- package/dist/types/components/commerce/atomic-product-numeric-field-value/atomic-product-numeric-field-value.d.ts +0 -1
- package/dist/types/components/commerce/atomic-product-price/atomic-product-price.d.ts +0 -1
- package/dist/types/components/commerce/atomic-product-rating/atomic-product-rating.d.ts +0 -2
- package/dist/types/components/commerce/atomic-product-template/atomic-product-template.d.ts +0 -2
- package/dist/types/components/common/interface/interface-controller.d.ts +1 -1
- package/dist/types/components/search/atomic-sort-expression/atomic-sort-expression.d.ts +2 -13
- package/dist/types/components.d.ts +2 -2
- package/dist/types/global/environment.d.ts +5 -3
- package/docs/atomic-docs.json +2 -2
- package/package.json +3 -3
- package/dist/atomic/p-01cedded.entry.js.map +0 -1
- package/dist/atomic/p-d840d3eb.js.map +0 -1
- package/dist/cjs/analytics-config-5475c9f5.js.map +0 -1
- package/dist/esm/analytics-config-d4cd9fcd.js.map +0 -1
- /package/dist/atomic/{p-7b672d9f.entry.js.map → p-1dcf9585.entry.js.map} +0 -0
- /package/dist/atomic/{p-727cc050.entry.js.map → p-8b111f3b.entry.js.map} +0 -0
- /package/dist/atomic/{p-e23a811e.entry.js.map → p-eebec7c7.entry.js.map} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
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-8a2cc9b4.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';
|
|
8
8
|
import { m as makeDesktopQuery } from './insight-layout-776b87f2.js';
|
|
9
9
|
import './dayjs.min-d04628c6.js';
|
|
10
10
|
import './_commonjsHelpers-1789f0cf.js';
|
|
11
|
-
import './purify-c7ebd240.js';
|
|
12
11
|
import '@coveo/headless';
|
|
12
|
+
import './purify-c7ebd240.js';
|
|
13
13
|
import '@coveo/bueno';
|
|
14
14
|
import './utils-7ac76ba7.js';
|
|
15
15
|
import './dom-utils-f6086cd3.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
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-8a2cc9b4.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';
|
|
8
8
|
import './_commonjsHelpers-1789f0cf.js';
|
|
9
|
-
import './purify-c7ebd240.js';
|
|
10
9
|
import '@coveo/headless';
|
|
10
|
+
import './purify-c7ebd240.js';
|
|
11
11
|
import '@coveo/bueno';
|
|
12
12
|
import './utils-7ac76ba7.js';
|
|
13
13
|
|
|
@@ -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-8a2cc9b4.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-1e3bd9fd.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: '745dd01b0ba0c5b66e60ef9b8c8d66b46658f356', 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;;;;;;;;;;;;QAgCxB,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 (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"],"version":3}
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const headlessVersion = '3.28.
|
|
2
|
-
export const atomicVersion = '3.32.2-pre.
|
|
1
|
+
export const headlessVersion = '3.28.2-pre.b8e515cd6a';
|
|
2
|
+
export const atomicVersion = '3.32.2-pre.b8e515cd6a';
|
package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts
CHANGED
|
@@ -16,8 +16,6 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
16
16
|
* @part show-less - The button to display less breadcrumbs.
|
|
17
17
|
* @part label - The "Filters" label.
|
|
18
18
|
* @part clear - The button to clear all filters.
|
|
19
|
-
*
|
|
20
|
-
* @alpha
|
|
21
19
|
*/
|
|
22
20
|
export declare class AtomicCommerceBreadbox extends LitElement implements InitializableComponent<CommerceBindings> {
|
|
23
21
|
static styles: CSSResultGroup;
|
|
@@ -3,8 +3,6 @@ import { LitElement } from 'lit';
|
|
|
3
3
|
import type { InitializableComponent } from "../../../decorators/types";
|
|
4
4
|
import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
|
|
5
5
|
/**
|
|
6
|
-
* @alpha
|
|
7
|
-
*
|
|
8
6
|
* The `atomic-commerce-did-you-mean` component is responsible for handling query corrections. When a query returns no products but finds a possible query correction, the component either suggests the correction or automatically triggers a new query with the suggested term.
|
|
9
7
|
*
|
|
10
8
|
* @part no-results - The text displayed when there are no results.
|
|
@@ -35,8 +35,6 @@ declare const AtomicCommerceFacet_base: typeof LitElement;
|
|
|
35
35
|
* @part show-more - The show more results button.
|
|
36
36
|
* @part show-less - The show less results button.
|
|
37
37
|
* @part show-more-less-icon - The icons of the show more & show less buttons.
|
|
38
|
-
*
|
|
39
|
-
* @alpha
|
|
40
38
|
*/
|
|
41
39
|
export declare class AtomicCommerceFacet extends AtomicCommerceFacet_base implements InitializableComponent<CommerceBindings> {
|
|
42
40
|
/**
|
|
@@ -9,7 +9,6 @@ import '../atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet';
|
|
|
9
9
|
/**
|
|
10
10
|
* The `atomic-commerce-facets` component automatically renders commerce facets based on the Commerce API response.
|
|
11
11
|
* Unlike regular facets, which require explicit definition and request in the query, the `atomic-commerce-facets` component dynamically generates facets.
|
|
12
|
-
*
|
|
13
12
|
*/
|
|
14
13
|
export declare class AtomicCommerceFacets extends LitElement implements InitializableComponent<CommerceBindings> {
|
|
15
14
|
bindings: CommerceBindings;
|
package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts
CHANGED
|
@@ -8,13 +8,12 @@ export type CommerceInitializationOptions = CommerceEngineConfiguration;
|
|
|
8
8
|
export type CommerceBindings = CommonBindings<CommerceEngine, CommerceStore, AtomicCommerceInterface>;
|
|
9
9
|
declare const AtomicCommerceInterface_base: typeof LitElement;
|
|
10
10
|
/**
|
|
11
|
-
* @alpha
|
|
12
11
|
* The `atomic-commerce-interface` component is the parent to all other atomic commerce components in a commerce page
|
|
13
12
|
* (except for `atomic-commerce-recommendation-list`, which must have
|
|
14
13
|
* `atomic-commerce-recommendation-interface` as a parent). It handles the headless commerce engine and localization
|
|
15
14
|
* configurations.
|
|
16
15
|
*
|
|
17
|
-
* @slot default - The default slot where you can add child components to the
|
|
16
|
+
* @slot default - The default slot where you can add child components to the interface.
|
|
18
17
|
*/
|
|
19
18
|
export declare class AtomicCommerceInterface extends AtomicCommerceInterface_base implements BaseAtomicInterface<CommerceEngine> {
|
|
20
19
|
urlManager: UrlManager;
|
|
@@ -2,7 +2,8 @@ import { LitElement } from 'lit';
|
|
|
2
2
|
declare const AtomicCommerceLayout_base: typeof LitElement;
|
|
3
3
|
/**
|
|
4
4
|
* The `atomic-commerce-layout` helps organize elements in the commerce page.
|
|
5
|
-
*
|
|
5
|
+
*
|
|
6
|
+
* @slot default - The default slot where you can add child components to the layout.
|
|
6
7
|
*/
|
|
7
8
|
export declare class AtomicCommerceLayout extends AtomicCommerceLayout_base {
|
|
8
9
|
error: Error;
|
package/dist/types/components/commerce/atomic-commerce-no-products/atomic-commerce-no-products.d.ts
CHANGED
|
@@ -4,8 +4,6 @@ import type { InitializableComponent } from "../../../decorators/types.js";
|
|
|
4
4
|
import { AriaLiveRegionController } from "../../../utils/accessibility-utils.js";
|
|
5
5
|
import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface.js';
|
|
6
6
|
/**
|
|
7
|
-
* @alpha
|
|
8
|
-
*
|
|
9
7
|
* The `atomic-commerce-no-products` component displays search tips when there are no products. Any additional content slotted inside of its element will be displayed as well.
|
|
10
8
|
*
|
|
11
9
|
* @part no-results - The text indicating that no products were found for the search.
|
|
@@ -23,9 +23,6 @@ declare const AtomicCommerceNumericFacet_base: typeof LitElement;
|
|
|
23
23
|
* @part label-end - The label for the maximum value input field.
|
|
24
24
|
* @part input-end - The input field to enter the maximum numeric value.
|
|
25
25
|
* @part input-apply-button - The button to apply custom numeric range values.
|
|
26
|
-
*
|
|
27
|
-
* @internal
|
|
28
|
-
*
|
|
29
26
|
*/
|
|
30
27
|
export declare class AtomicCommerceNumericFacet extends AtomicCommerceNumericFacet_base implements InitializableComponent<CommerceBindings> {
|
|
31
28
|
/**
|
|
@@ -15,7 +15,6 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
15
15
|
* @part next-button-icon - The "next page" button icon.
|
|
16
16
|
*
|
|
17
17
|
* @event atomic/scrollToTop - Emitted when the user clicks the next or previous button, or a page button.
|
|
18
|
-
* @alpha
|
|
19
18
|
*/
|
|
20
19
|
export declare class AtomicCommercePager extends LitElement implements InitializableComponent<CommerceBindings> {
|
|
21
20
|
bindings: CommerceBindings;
|
|
@@ -22,8 +22,6 @@ declare const AtomicCommerceProductList_base: typeof LitElement;
|
|
|
22
22
|
* @part result-table-cell - The td elements nested under each tbody > tr when the display prop is set to "table".
|
|
23
23
|
*
|
|
24
24
|
* @slot default - The default slot where the product templates are defined.
|
|
25
|
-
*
|
|
26
|
-
* @alpha
|
|
27
25
|
*/
|
|
28
26
|
export declare class AtomicCommerceProductList extends AtomicCommerceProductList_base implements InitializableComponent<CommerceBindings> {
|
|
29
27
|
static styles: CSSResultGroup;
|
|
@@ -9,8 +9,6 @@ import type { InitializableComponent } from "../../../decorators/types.js";
|
|
|
9
9
|
* @part buttons - The list of buttons.
|
|
10
10
|
* @part button - The individual products per page buttons.
|
|
11
11
|
* @part active-button - The active products per page button.
|
|
12
|
-
*
|
|
13
|
-
* @alpha
|
|
14
12
|
*/
|
|
15
13
|
export declare class AtomicCommerceProductsPerPage extends LitElement implements InitializableComponent<CommerceBindings> {
|
|
16
14
|
bindings: CommerceBindings;
|
package/dist/types/components/commerce/atomic-commerce-query-error/atomic-commerce-query-error.d.ts
CHANGED
|
@@ -12,8 +12,6 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
12
12
|
* @part doc-link - A link to the relevant documentation.
|
|
13
13
|
* @part more-info-btn - A button to request additional error information.
|
|
14
14
|
* @part error-info - Additional error information.
|
|
15
|
-
*
|
|
16
|
-
* @alpha
|
|
17
15
|
*/
|
|
18
16
|
export declare class AtomicCommerceQueryError extends LitElement implements InitializableComponent<CommerceBindings> {
|
|
19
17
|
bindings: CommerceBindings;
|
|
@@ -10,8 +10,6 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
10
10
|
* @part highlight - The summary highlights.
|
|
11
11
|
* @part query - The summary highlighted query.
|
|
12
12
|
* @part placeholder - The query summary placeholder used while the search interface is initializing.
|
|
13
|
-
*
|
|
14
|
-
* @alpha
|
|
15
13
|
*/
|
|
16
14
|
export declare class AtomicCommerceQuerySummary extends LitElement implements InitializableComponent<CommerceBindings> {
|
|
17
15
|
bindings: CommerceBindings;
|
|
@@ -11,8 +11,10 @@ declare const AtomicCommerceRecommendationInterface_base: typeof LitElement;
|
|
|
11
11
|
/**
|
|
12
12
|
* The `atomic-commerce-recommendation-interface` component is meant to be used
|
|
13
13
|
* as the parent of one or more `atomic-commerce-recommendation-list`
|
|
14
|
-
* components. It handles the headless
|
|
14
|
+
* components. It handles the headless engine and localization
|
|
15
15
|
* configurations.
|
|
16
|
+
*
|
|
17
|
+
* @slot default - The default slot where you can add child components to the interface.
|
|
16
18
|
*/
|
|
17
19
|
export declare class AtomicCommerceRecommendationInterface extends AtomicCommerceRecommendationInterface_base implements BaseAtomicInterface<CommerceEngine> {
|
|
18
20
|
bindings: CommerceBindings;
|
|
@@ -7,7 +7,6 @@ import type { CommerceBindings } from '../atomic-commerce-recommendation-interfa
|
|
|
7
7
|
declare const AtomicCommerceRecommendationList_base: typeof LitElement;
|
|
8
8
|
/**
|
|
9
9
|
* The `atomic-commerce-recommendation-list` component displays a list of product recommendations by applying one or more product templates.
|
|
10
|
-
* @alpha
|
|
11
10
|
*
|
|
12
11
|
* @part result-list - The element containing the list of product recommendations.
|
|
13
12
|
* @part result-list-grid-clickable-container - The parent of a recommended product and the clickable link encompassing it.
|
|
@@ -9,8 +9,6 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
9
9
|
*
|
|
10
10
|
* @part button - The refine toggle button.
|
|
11
11
|
* @part placeholder - The placeholder shown while the first request is being executed.
|
|
12
|
-
*
|
|
13
|
-
* @alpha
|
|
14
12
|
*/
|
|
15
13
|
export declare class AtomicCommerceRefineToggle extends LitElement implements InitializableComponent<CommerceBindings> {
|
|
16
14
|
bindings: CommerceBindings;
|
package/dist/types/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.d.ts
CHANGED
|
@@ -49,8 +49,6 @@ import '../atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-
|
|
|
49
49
|
* @part instant-results-show-all-button - The button inside the clickable suggestion from the `atomic-commerce-search-box-instant-products` component.
|
|
50
50
|
*
|
|
51
51
|
* @event redirect - Event that is emitted when a standalone search box redirection is triggered. By default, the search box will directly change the URL and redirect accordingly, so if you want to handle the redirection differently, use this event.
|
|
52
|
-
*
|
|
53
|
-
* @alpha
|
|
54
52
|
*/
|
|
55
53
|
export declare class AtomicCommerceSearchBox extends LitElement implements InitializableComponent<CommerceBindings> {
|
|
56
54
|
static styles: CSSResultGroup;
|
|
@@ -7,9 +7,7 @@ import type { SearchBoxSuggestionsComponent } from "../../../decorators/types";
|
|
|
7
7
|
import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
|
|
8
8
|
export type AriaLabelGenerator = (bindings: CommerceBindings, product: Product) => string | undefined;
|
|
9
9
|
/**
|
|
10
|
-
* The `atomic-commerce-search-box-instant-products` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of instant products behavior.
|
|
11
|
-
*
|
|
12
|
-
* This component does not support accessibility out-of-the-box. To do so, see [Instant Results Accessibility](https://docs.coveo.com/en/atomic/latest/usage/accessibility/#instant-results-accessibility).
|
|
10
|
+
* The `atomic-commerce-search-box-instant-products` component can be added as a child of an `atomic-commerce-search-box` component, allowing for the configuration of instant products behavior.
|
|
13
11
|
*
|
|
14
12
|
* This component is not supported on mobile.
|
|
15
13
|
*
|
|
@@ -17,7 +15,6 @@ export type AriaLabelGenerator = (bindings: CommerceBindings, product: Product)
|
|
|
17
15
|
* @part instant-results-item - The individual instant product item.
|
|
18
16
|
*
|
|
19
17
|
* @slot default - The default slot where the instant products are rendered.
|
|
20
|
-
* @alpha
|
|
21
18
|
*/
|
|
22
19
|
export declare class AtomicCommerceSearchBoxInstantProducts extends LitElement implements SearchBoxSuggestionsComponent<CommerceBindings> {
|
|
23
20
|
bindings: SearchBoxSuggestionsBindings<SearchBox, CommerceBindings>;
|
|
@@ -4,8 +4,7 @@ import { type SearchBoxSuggestions, type SearchBoxSuggestionsBindings } from "..
|
|
|
4
4
|
import type { SearchBoxSuggestionsComponent } from "../../../decorators/types";
|
|
5
5
|
import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
|
|
6
6
|
/**
|
|
7
|
-
* The `atomic-commerce-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
|
-
* @alpha
|
|
7
|
+
* The `atomic-commerce-search-box-query-suggestions` component can be added as a child of an `atomic-commerce-search-box` component, allowing for the configuration of query suggestion behavior.
|
|
9
8
|
*/
|
|
10
9
|
export declare class AtomicCommerceSearchBoxQuerySuggestions extends LitElement implements SearchBoxSuggestionsComponent<CommerceBindings> {
|
|
11
10
|
bindings: SearchBoxSuggestionsBindings<SearchBox, CommerceBindings>;
|
|
@@ -5,8 +5,6 @@ import { type SearchBoxSuggestions, type SearchBoxSuggestionsBindings } from '..
|
|
|
5
5
|
import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
|
|
6
6
|
/**
|
|
7
7
|
* The `atomic-commerce-search-box-recent-queries` component can be added as a child of an `atomic-commerce-search-box` component, allowing for the configuration of recent query suggestions.
|
|
8
|
-
*
|
|
9
|
-
* @alpha
|
|
10
8
|
*/
|
|
11
9
|
export declare class AtomicCommerceSearchBoxRecentQueries extends LitElement implements SearchBoxSuggestionsComponent<CommerceBindings> {
|
|
12
10
|
bindings: SearchBoxSuggestionsBindings<SearchBox, CommerceBindings>;
|
|
@@ -10,8 +10,6 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
10
10
|
* @part select - The `<select>` element of the dropdown list.
|
|
11
11
|
* @part select-separator - The element separating the select from the icon.
|
|
12
12
|
* @part placeholder - The dropdown placeholder for while the interface is initializing.
|
|
13
|
-
*
|
|
14
|
-
* @alpha
|
|
15
13
|
*/
|
|
16
14
|
export declare class AtomicCommerceSortDropdown extends LitElement implements InitializableComponent<CommerceBindings> {
|
|
17
15
|
bindings: CommerceBindings;
|
|
@@ -22,8 +22,6 @@ declare const AtomicCommerceTimeframeFacet_base: typeof LitElement;
|
|
|
22
22
|
* @part input-start - The start date input field.
|
|
23
23
|
* @part input-end - The end date input field.
|
|
24
24
|
* @part input-apply-button - The button to apply date range selection.
|
|
25
|
-
*
|
|
26
|
-
* @internal
|
|
27
25
|
*/
|
|
28
26
|
export declare class AtomicCommerceTimeframeFacet extends AtomicCommerceTimeframeFacet_base implements InitializableComponent<CommerceBindings> {
|
|
29
27
|
static styles: CSSResultGroup;
|
|
@@ -6,8 +6,6 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
6
6
|
* The condition properties can be based on any top-level product property of the `product` object, not restricted to fields (e.g., `ec_name`).
|
|
7
7
|
*
|
|
8
8
|
* @slot default - The content to render if the conditions are met.
|
|
9
|
-
*
|
|
10
|
-
* @alpha
|
|
11
9
|
*/
|
|
12
10
|
export declare class AtomicProductFieldCondition extends LitElement implements InitializableComponent<CommerceBindings> {
|
|
13
11
|
createRenderRoot(): this;
|
|
@@ -6,7 +6,8 @@ import '../atomic-product-text/atomic-product-text';
|
|
|
6
6
|
import { type LightDOMWithSlots } from "../../../mixins/slots-for-no-shadow-dom-mixin";
|
|
7
7
|
declare const AtomicProductLink_base: typeof LitElement & import("../../../mixins/mixin-common").Constructor<LightDOMWithSlots>;
|
|
8
8
|
/**
|
|
9
|
-
* The `atomic-product-link` component automatically transforms a
|
|
9
|
+
* The `atomic-product-link` component automatically transforms a product `ec_name` into a clickable link that points to the original item.
|
|
10
|
+
*
|
|
10
11
|
* @slot default - The content to display inside the link.
|
|
11
12
|
* @slot attributes - Use `<a slot="attributes" target="_blank"></a>` to pass custom attributes to the generated link.
|
|
12
13
|
*/
|
|
@@ -3,8 +3,6 @@ import { LitElement, type TemplateResult } from 'lit';
|
|
|
3
3
|
import type { InitializableComponent } from "../../../decorators/types";
|
|
4
4
|
import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
|
|
5
5
|
/**
|
|
6
|
-
* @alpha
|
|
7
|
-
*
|
|
8
6
|
* The `atomic-product-multi-value-text` component renders the values of a multi-value string field.
|
|
9
7
|
*
|
|
10
8
|
* @part product-multi-value-text-list - The list of field values.
|
|
@@ -5,7 +5,6 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
5
5
|
* The `atomic-product-numeric-field-value` component renders the value of a number product field.
|
|
6
6
|
*
|
|
7
7
|
* The number can be formatted by adding a `atomic-format-number`, `atomic-format-currency` or `atomic-format-unit` component into this component.
|
|
8
|
-
* @alpha
|
|
9
8
|
*/
|
|
10
9
|
export declare class AtomicProductNumericFieldValue extends LitElement implements InitializableComponent<CommerceBindings> {
|
|
11
10
|
createRenderRoot(): this;
|
|
@@ -4,7 +4,6 @@ import type { InitializableComponent } from "../../../decorators/types.js";
|
|
|
4
4
|
import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface.js';
|
|
5
5
|
/**
|
|
6
6
|
* The `atomic-product-price` component renders the price of a product.
|
|
7
|
-
* @alpha
|
|
8
7
|
*/
|
|
9
8
|
export declare class AtomicProductPrice extends LitElement implements InitializableComponent<CommerceBindings> {
|
|
10
9
|
static styles: import("lit").CSSResult;
|
|
@@ -10,8 +10,6 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
10
10
|
* @cssprop --atomic-rating-icon-active-color - Color of the icon when active.
|
|
11
11
|
* @cssprop --atomic-rating-icon-inactive-color - Color of the icon when inactive.
|
|
12
12
|
* @cssprop --atomic-rating-icon-outline - Outline color of the icon.
|
|
13
|
-
*
|
|
14
|
-
* @alpha
|
|
15
13
|
*/
|
|
16
14
|
export declare class AtomicProductRating extends LitElement implements InitializableComponent<CommerceBindings> {
|
|
17
15
|
bindings: CommerceBindings;
|
|
@@ -24,8 +24,6 @@ import '../atomic-product-rating/atomic-product-rating';
|
|
|
24
24
|
* @MapProp name: mustNotMatch;attr: must-not-match;docs: The field and values that must not be matched by a product item for the template to apply. For example, a template with the following attribute only applies to product items whose `filetype` is not `lithiummessage`: `must-not-match-filetype="lithiummessage";type: Record<string, string[]> ;default: {}
|
|
25
25
|
* @slot default - The default slot where to insert the template element.
|
|
26
26
|
* @slot link - A `template` element that contains a single `atomic-product-link` component.
|
|
27
|
-
*
|
|
28
|
-
* @alpha
|
|
29
27
|
*/
|
|
30
28
|
export declare class AtomicProductTemplate extends LitElement implements LitElementWithError {
|
|
31
29
|
private productTemplateController;
|
|
@@ -21,7 +21,7 @@ export declare class InterfaceController<EngineType extends AnyEngineType> imple
|
|
|
21
21
|
private host;
|
|
22
22
|
private i18nPromise;
|
|
23
23
|
private hangingComponentsInitialization;
|
|
24
|
-
constructor(host: LitElement & BaseAtomicInterface<EngineType>, globalVariableName: string);
|
|
24
|
+
constructor(host: LitElement & BaseAtomicInterface<EngineType>, globalVariableName: string, headlessVersion: string);
|
|
25
25
|
hostConnected(): void;
|
|
26
26
|
hostDisconnected(): void;
|
|
27
27
|
onComponentInitializing(event: InitializeEvent): void;
|
|
@@ -15,20 +15,9 @@ 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 (`criteria="size ascending"`).
|
|
18
|
+
* * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (e.g., `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 (`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`
|
|
20
|
+
* 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"`).
|
|
32
21
|
*/
|
|
33
22
|
expression: string;
|
|
34
23
|
/**
|
|
@@ -2731,7 +2731,7 @@ export namespace Components {
|
|
|
2731
2731
|
*/
|
|
2732
2732
|
interface AtomicSortExpression {
|
|
2733
2733
|
/**
|
|
2734
|
-
* 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"`).
|
|
2734
|
+
* 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 (e.g., `criteria="size ascending"`). 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"`).
|
|
2735
2735
|
*/
|
|
2736
2736
|
"expression": string;
|
|
2737
2737
|
/**
|
|
@@ -7289,7 +7289,7 @@ declare namespace LocalJSX {
|
|
|
7289
7289
|
*/
|
|
7290
7290
|
interface AtomicSortExpression {
|
|
7291
7291
|
/**
|
|
7292
|
-
* 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"`).
|
|
7292
|
+
* 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 (e.g., `criteria="size ascending"`). 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"`).
|
|
7293
7293
|
*/
|
|
7294
7294
|
"expression": string;
|
|
7295
7295
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
interface AtomicEnvironment {
|
|
2
2
|
version: string;
|
|
3
3
|
headlessVersion: string;
|
|
4
4
|
}
|
|
@@ -7,5 +7,7 @@ declare global {
|
|
|
7
7
|
[anyGlobalVariable: string]: AtomicEnvironment;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export declare function getAtomicEnvironment(): AtomicEnvironment;
|
|
11
|
-
export declare function
|
|
10
|
+
export declare function getAtomicEnvironment(headlessVersion: string): AtomicEnvironment;
|
|
11
|
+
export declare function getAtomicVersion(): string;
|
|
12
|
+
export declare function setCoveoGlobal(globalVariableName: string, headlessVersion: string): void;
|
|
13
|
+
export {};
|
package/docs/atomic-docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-08-
|
|
2
|
+
"timestamp": "2025-08-11T15:04:18",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.20.0",
|
|
@@ -14300,7 +14300,7 @@
|
|
|
14300
14300
|
"mutable": false,
|
|
14301
14301
|
"attr": "expression",
|
|
14302
14302
|
"reflectToAttr": true,
|
|
14303
|
-
"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\"`)
|
|
14303
|
+
"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 (e.g., `criteria=\"size ascending\"`).\n\nYou 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\"`).",
|
|
14304
14304
|
"docsTags": [],
|
|
14305
14305
|
"values": [
|
|
14306
14306
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coveo/atomic",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.32.2-pre.
|
|
4
|
+
"version": "3.32.2-pre.b8e515cd6a",
|
|
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.
|
|
85
|
+
"@coveo/headless": "3.28.2-pre.b8e515cd6a",
|
|
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.
|
|
172
|
+
"@coveo/headless": "3.28.2-pre.b8e515cd6a",
|
|
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 (`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"],"mappings":"oiBAUaA,EAAoB,M,yBA2CxBC,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":[]}
|