@coveo/atomic 3.28.0-pre.df6c8a3eb3 → 3.28.0-pre.e87aa33543
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/atomic.esm.js.map +1 -1
- package/dist/atomic/components/_index.d.ts +0 -6
- package/dist/atomic/components/_index.js +0 -3
- package/dist/atomic/components/atomic-product-children.js +1 -7
- package/dist/atomic/components/atomic-product-children.js.map +1 -1
- package/dist/atomic/components/atomic-product-description.js +1 -13
- package/dist/atomic/components/atomic-product-description.js.map +1 -1
- package/dist/atomic/components/atomic-product-excerpt.js +1 -13
- package/dist/atomic/components/atomic-product-excerpt.js.map +1 -1
- package/dist/atomic/components/atomic-product-link.js +1 -13
- package/dist/atomic/components/atomic-product-link.js.map +1 -1
- package/dist/atomic/components/atomic-result-text2.js +45 -2
- package/dist/atomic/components/atomic-result-text2.js.map +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-text/atomic-commerce-text.js +54 -0
- package/dist/atomic/components/components/commerce/atomic-product-template/atomic-product-template.js +2 -0
- package/dist/atomic/components/components/commerce/atomic-product-text/atomic-product-text.js +135 -0
- package/dist/atomic/components/components/commerce/index.js +2 -0
- package/dist/atomic/components/components/commerce/lazy-index.js +2 -0
- package/dist/atomic/components/components/commerce/product-template-component-utils/error.js +6 -0
- package/dist/atomic/components/components/commerce/product-template-component-utils/product-utils.js +35 -0
- package/dist/atomic/components/components/common/atomic-layout-section/atomic-layout-section.js +31 -0
- package/dist/atomic/components/components/common/index.js +1 -0
- package/dist/atomic/components/components/common/item-text/field-warning.js +6 -0
- package/dist/atomic/components/components/common/item-text/item-text-fallback.js +15 -0
- package/dist/atomic/components/components/common/item-text/item-text-highlighted.js +17 -0
- package/dist/atomic/components/components/common/item-text/render-highlights.js +13 -0
- package/dist/atomic/components/components/common/lazy-index.js +1 -0
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/index.js.map +1 -1
- package/dist/atomic/components/interface-common-stencil.js +1 -1
- package/dist/atomic/components/product-utils.js +1 -8
- package/dist/atomic/components/product-utils.js.map +1 -1
- package/dist/atomic/components/sections.js.map +1 -1
- package/dist/atomic/components/utils/object-utils.js +13 -0
- package/dist/atomic/{p-c0b3720d.entry.js → p-191ac0fe.entry.js} +2 -2
- package/dist/atomic/{p-3195fa42.entry.js → p-545f7fb1.entry.js} +2 -2
- package/dist/atomic/{p-e46517e9.entry.js → p-8a3f0405.entry.js} +2 -2
- package/dist/atomic/{p-f68cee5d.entry.js → p-8f1ab6ff.entry.js} +2 -2
- package/dist/atomic/{p-5e73a3e8.js → p-8fa5129d.js} +2 -2
- package/dist/atomic/p-9c7dbbdf.js.map +1 -1
- package/dist/atomic/p-a1c4ac09.js +2 -0
- package/dist/atomic/p-a1c4ac09.js.map +1 -0
- package/dist/atomic/{p-7ed31f46.js → p-b64f4619.js} +2 -2
- package/dist/atomic/p-d76c5232.entry.js +2 -0
- package/dist/atomic/{p-22a0d1b9.entry.js → p-ea5d2736.entry.js} +2 -2
- package/dist/atomic/p-f1bbe060.entry.js +2 -0
- package/dist/atomic/p-f1bbe060.entry.js.map +1 -0
- package/dist/atomic/{p-3cc601ad.entry.js → p-f67a6ad6.entry.js} +2 -2
- package/dist/cjs/_loader.cjs.js +1 -1
- package/dist/cjs/{analytics-config-f82932e2.js → analytics-config-f331427b.js} +2 -2
- package/dist/cjs/{analytics-config-f82932e2.js.map → analytics-config-f331427b.js.map} +1 -1
- package/dist/cjs/atomic-commerce-recommendation-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-interface.cjs.entry.js +2 -2
- package/dist/cjs/atomic-product-link.cjs.entry.js +1 -1
- package/dist/cjs/atomic-product-numeric-field-value.cjs.entry.js +1 -1
- package/dist/cjs/atomic-product-price.cjs.entry.js +1 -1
- package/dist/cjs/atomic-recs-interface.cjs.entry.js +2 -2
- package/dist/cjs/atomic-result-text_2.cjs.entry.js +46 -4
- package/dist/cjs/atomic-result-text_2.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-search-interface.cjs.entry.js +2 -2
- package/dist/cjs/atomic.cjs.js +1 -1
- package/dist/cjs/index-757bc886.js +0 -8
- package/dist/cjs/{interface-common-stencil-98f073f6.js → interface-common-stencil-c2474e53.js} +2 -2
- package/dist/cjs/{interface-common-stencil-98f073f6.js.map → interface-common-stencil-c2474e53.js.map} +1 -1
- package/dist/cjs/{product-utils-9507462c.js → product-utils-f6c780e3.js} +1 -9
- package/dist/cjs/product-utils-f6c780e3.js.map +1 -0
- package/dist/cjs/sections-4b4af2f8.js.map +1 -1
- package/dist/cjs/version.cjs.js +1 -1
- package/dist/esm/_loader.js +1 -1
- package/dist/esm/{analytics-config-253004a0.js → analytics-config-6dc04e7b.js} +2 -2
- package/dist/esm/{analytics-config-253004a0.js.map → analytics-config-6dc04e7b.js.map} +1 -1
- package/dist/esm/atomic-commerce-recommendation-interface.entry.js +1 -1
- package/dist/esm/atomic-insight-interface.entry.js +2 -2
- package/dist/esm/atomic-product-link.entry.js +1 -1
- package/dist/esm/atomic-product-numeric-field-value.entry.js +1 -1
- package/dist/esm/atomic-product-price.entry.js +1 -1
- package/dist/esm/atomic-recs-interface.entry.js +2 -2
- package/dist/esm/atomic-result-text_2.entry.js +45 -3
- package/dist/esm/atomic-result-text_2.entry.js.map +1 -1
- package/dist/esm/atomic-search-interface.entry.js +2 -2
- package/dist/esm/atomic.js +1 -1
- package/dist/esm/index-3f35faca.js +0 -8
- package/dist/esm/{interface-common-stencil-4bb4d80c.js → interface-common-stencil-185b53eb.js} +2 -2
- package/dist/esm/{interface-common-stencil-4bb4d80c.js.map → interface-common-stencil-185b53eb.js.map} +1 -1
- package/dist/esm/{product-utils-8348689f.js → product-utils-85109d2e.js} +2 -9
- package/dist/esm/product-utils-85109d2e.js.map +1 -0
- package/dist/esm/sections-ae00b53a.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/components/commerce/atomic-commerce-text/atomic-commerce-text.d.ts +13 -5
- package/dist/types/components/commerce/atomic-product-template/atomic-product-template.d.ts +2 -0
- package/dist/types/components/commerce/atomic-product-text/atomic-product-text.d.ts +29 -15
- package/dist/types/components/commerce/index.d.ts +2 -0
- package/dist/types/components/common/atomic-layout-section/atomic-layout-section.d.ts +11 -2
- package/dist/types/components/common/atomic-layout-section/sections.d.ts +2 -1
- package/dist/types/components/common/index.d.ts +1 -0
- package/dist/types/components.d.ts +0 -143
- package/docs/atomic-docs.json +9 -364
- package/package.json +1 -1
- package/dist/atomic/components/atomic-commerce-text.d.ts +0 -11
- package/dist/atomic/components/atomic-commerce-text.js +0 -8
- package/dist/atomic/components/atomic-commerce-text.js.map +0 -1
- package/dist/atomic/components/atomic-commerce-text2.js +0 -60
- package/dist/atomic/components/atomic-commerce-text2.js.map +0 -1
- package/dist/atomic/components/atomic-layout-section.d.ts +0 -11
- package/dist/atomic/components/atomic-layout-section.js +0 -35
- package/dist/atomic/components/atomic-layout-section.js.map +0 -1
- package/dist/atomic/components/atomic-product-text.d.ts +0 -11
- package/dist/atomic/components/atomic-product-text.js +0 -8
- package/dist/atomic/components/atomic-product-text.js.map +0 -1
- package/dist/atomic/components/atomic-product-text2.js +0 -83
- package/dist/atomic/components/atomic-product-text2.js.map +0 -1
- package/dist/atomic/components/stencil-item-text-highlighted.js +0 -49
- package/dist/atomic/components/stencil-item-text-highlighted.js.map +0 -1
- package/dist/atomic/p-39223a2a.entry.js +0 -2
- package/dist/atomic/p-39223a2a.entry.js.map +0 -1
- package/dist/atomic/p-5cf5bb98.entry.js +0 -2
- package/dist/atomic/p-67ef14ac.entry.js +0 -2
- package/dist/atomic/p-67ef14ac.entry.js.map +0 -1
- package/dist/atomic/p-733252f1.entry.js +0 -2
- package/dist/atomic/p-733252f1.entry.js.map +0 -1
- package/dist/atomic/p-b1a7d837.js +0 -2
- package/dist/atomic/p-b1a7d837.js.map +0 -1
- package/dist/atomic/p-bb081d4e.js +0 -2
- package/dist/atomic/p-bb081d4e.js.map +0 -1
- package/dist/cjs/atomic-commerce-text_2.cjs.entry.js +0 -106
- package/dist/cjs/atomic-commerce-text_2.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-layout-section.cjs.entry.js +0 -18
- package/dist/cjs/atomic-layout-section.cjs.entry.js.map +0 -1
- package/dist/cjs/product-utils-9507462c.js.map +0 -1
- package/dist/cjs/stencil-item-text-highlighted-91fd0fe8.js +0 -52
- package/dist/cjs/stencil-item-text-highlighted-91fd0fe8.js.map +0 -1
- package/dist/esm/atomic-commerce-text_2.entry.js +0 -101
- package/dist/esm/atomic-commerce-text_2.entry.js.map +0 -1
- package/dist/esm/atomic-layout-section.entry.js +0 -14
- package/dist/esm/atomic-layout-section.entry.js.map +0 -1
- package/dist/esm/product-utils-8348689f.js.map +0 -1
- package/dist/esm/stencil-item-text-highlighted-0e1c6c08.js +0 -49
- package/dist/esm/stencil-item-text-highlighted-0e1c6c08.js.map +0 -1
- /package/dist/atomic/{p-c0b3720d.entry.js.map → p-191ac0fe.entry.js.map} +0 -0
- /package/dist/atomic/{p-3195fa42.entry.js.map → p-545f7fb1.entry.js.map} +0 -0
- /package/dist/atomic/{p-e46517e9.entry.js.map → p-8a3f0405.entry.js.map} +0 -0
- /package/dist/atomic/{p-f68cee5d.entry.js.map → p-8f1ab6ff.entry.js.map} +0 -0
- /package/dist/atomic/{p-5e73a3e8.js.map → p-8fa5129d.js.map} +0 -0
- /package/dist/atomic/{p-7ed31f46.js.map → p-b64f4619.js.map} +0 -0
- /package/dist/atomic/{p-5cf5bb98.entry.js.map → p-d76c5232.entry.js.map} +0 -0
- /package/dist/atomic/{p-22a0d1b9.entry.js.map → p-ea5d2736.entry.js.map} +0 -0
- /package/dist/atomic/{p-3cc601ad.entry.js.map → p-f67a6ad6.entry.js.map} +0 -0
|
@@ -13,13 +13,6 @@ function parseValue(product, field) {
|
|
|
13
13
|
}
|
|
14
14
|
return valueAsNumber;
|
|
15
15
|
}
|
|
16
|
-
function getStringValueFromProductOrNull(product, field) {
|
|
17
|
-
const value = ProductTemplatesHelpers.getProductProperty(product, field);
|
|
18
|
-
if (typeof value !== 'string' || value.trim() === '') {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
return value;
|
|
22
|
-
}
|
|
23
16
|
function buildStringTemplateFromProduct(template, product, bindings) {
|
|
24
17
|
return template.replace(/\${(.*?)}/g, (value) => {
|
|
25
18
|
const key = value.substring(2, value.length - 1);
|
|
@@ -35,6 +28,6 @@ function buildStringTemplateFromProduct(template, product, bindings) {
|
|
|
35
28
|
});
|
|
36
29
|
}
|
|
37
30
|
|
|
38
|
-
export { buildStringTemplateFromProduct as b,
|
|
31
|
+
export { buildStringTemplateFromProduct as b, parseValue as p };
|
|
39
32
|
|
|
40
|
-
//# sourceMappingURL=product-utils-
|
|
33
|
+
//# sourceMappingURL=product-utils-85109d2e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"product-utils-85109d2e.js","mappings":";;;;SAKgB,UAAU,CAAC,OAAgB,EAAE,KAAa;IACxD,MAAM,KAAK,GAAG,uBAAuB,CAAC,kBAAkB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACzE,IAAI,KAAK,KAAK,IAAI,EAAE;QAClB,OAAO,IAAI,CAAC;KACb;IACD,MAAM,aAAa,GAAG,UAAU,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC;IAC7C,IAAI,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE;QAC/B,MAAM,IAAI,oBAAoB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;KAC9C;IACD,OAAO,aAAa,CAAC;AACvB,CAAC;SAee,8BAA8B,CAC5C,QAAgB,EAChB,OAAgB,EAChB,QAA0B;IAE1B,OAAO,QAAQ,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,KAAa;QAClD,MAAM,GAAG,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACjD,IAAI,QAAQ,GAAG,cAAc,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QAC5C,IAAI,CAAC,QAAQ,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;YAC9C,QAAQ,GAAG,cAAc,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;SACxC;QAED,IAAI,CAAC,QAAQ,EAAE;YACb,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CACzB,GAAG,GAAG,6DAA6D,OAAO,CAAC,WAAW,+CAA+C,CACtI,CAAC;YACF,OAAO,EAAE,CAAC;SACX;QAED,OAAO,QAAQ,CAAC;KACjB,CAAC,CAAC;AACL;;;;","names":[],"sources":["src/components/commerce/product-template-component-utils/product-utils.ts"],"sourcesContent":["import {readFromObject} from '@/src/utils/object-utils';\nimport {Product, ProductTemplatesHelpers} from '@coveo/headless/commerce';\nimport {CommerceBindings} from '../atomic-commerce-interface/atomic-commerce-interface';\nimport {FieldValueIsNaNError} from './error';\n\nexport function parseValue(product: Product, field: string) {\n const value = ProductTemplatesHelpers.getProductProperty(product, field);\n if (value === null) {\n return null;\n }\n const valueAsNumber = parseFloat(`${value}`);\n if (Number.isNaN(valueAsNumber)) {\n throw new FieldValueIsNaNError(field, value);\n }\n return valueAsNumber;\n}\n\nexport function getStringValueFromProductOrNull(\n product: Product,\n field: string\n) {\n const value = ProductTemplatesHelpers.getProductProperty(product, field);\n\n if (typeof value !== 'string' || value.trim() === '') {\n return null;\n }\n\n return value;\n}\n\nexport function buildStringTemplateFromProduct(\n template: string,\n product: Product,\n bindings: CommerceBindings\n) {\n return template.replace(/\\${(.*?)}/g, (value: string) => {\n const key = value.substring(2, value.length - 1);\n let newValue = readFromObject(product, key);\n if (!newValue && typeof window !== 'undefined') {\n newValue = readFromObject(window, key);\n }\n\n if (!newValue) {\n bindings.engine.logger.warn(\n `${key} used in the href template is undefined for this product: ${product.permanentid} and could not be found in the window object.`\n );\n return '';\n }\n\n return newValue;\n });\n}\n"],"version":3}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"sections-ae00b53a.js","mappings":"
|
|
1
|
+
{"file":"sections-ae00b53a.js","mappings":"SAYgB,WAAW,CAAC,OAAoB,EAAE,OAAgB;IAChE,OAAO,OAAO,CAAC,aAAa,CAC1B,eAAe,CAAC,OAAO,CAAC,CACK,CAAC;AAClC,CAAC;SAEe,eAAe,CAAC,OAAgB;IAC9C,OAAO,kCAAkC,OAAO,IAAI,CAAC;AACvD;;;;","names":[],"sources":["src/components/common/atomic-layout-section/sections.ts"],"sourcesContent":["import {AtomicLayoutSection} from './atomic-layout-section';\n\nexport type Section =\n | 'search'\n | 'facets'\n | 'main'\n | 'status'\n | 'results'\n | 'horizontal-facets'\n | 'products'\n | 'pagination';\n\nexport function findSection(element: HTMLElement, section: Section) {\n return element.querySelector(\n sectionSelector(section)\n ) as AtomicLayoutSection | null;\n}\n\nexport function sectionSelector(section: Section) {\n return `atomic-layout-section[section=\"${section}\"]`;\n}\n"],"version":3}
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const headlessVersion = '3.27.1';
|
|
2
|
-
export const atomicVersion = '3.28.0-pre.
|
|
2
|
+
export const atomicVersion = '3.28.0-pre.e87aa33543';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { InitializableComponent } from
|
|
1
|
+
import { InitializableComponent } from "../../../decorators/types";
|
|
2
|
+
import { LitElement } from 'lit';
|
|
2
3
|
import { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
|
|
4
|
+
declare const AtomicCommerceText_base: typeof LitElement;
|
|
3
5
|
/**
|
|
4
6
|
* @alpha
|
|
5
7
|
* The `atomic-commerce-text` component leverages the I18n translation module through the atomic-commerce-interface.
|
|
6
8
|
*/
|
|
7
|
-
export declare class AtomicCommerceText implements InitializableComponent<CommerceBindings> {
|
|
9
|
+
export declare class AtomicCommerceText extends AtomicCommerceText_base implements InitializableComponent<CommerceBindings> {
|
|
8
10
|
bindings: CommerceBindings;
|
|
9
|
-
private strings;
|
|
10
11
|
error: Error;
|
|
11
12
|
/**
|
|
12
13
|
* The string key value.
|
|
@@ -17,6 +18,13 @@ export declare class AtomicCommerceText implements InitializableComponent<Commer
|
|
|
17
18
|
* @type {number}
|
|
18
19
|
*/
|
|
19
20
|
count?: number;
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
private get strings();
|
|
22
|
+
initialize(): void;
|
|
23
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
22
24
|
}
|
|
25
|
+
declare global {
|
|
26
|
+
interface HTMLElementTagNameMap {
|
|
27
|
+
'atomic-commerce-text': AtomicCommerceText;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { LitElementWithError } from "../../../decorators/types";
|
|
2
2
|
import { ProductTemplate, ProductTemplateCondition } from '@coveo/headless/commerce';
|
|
3
3
|
import { LitElement } from 'lit';
|
|
4
|
+
import '../atomic-commerce-text/atomic-commerce-text';
|
|
5
|
+
import '../atomic-product-text/atomic-product-text';
|
|
4
6
|
import '../atomic-product/atomic-product';
|
|
5
7
|
/**
|
|
6
8
|
* @alpha
|
|
@@ -1,29 +1,43 @@
|
|
|
1
|
-
import { InitializableComponent } from
|
|
1
|
+
import { InitializableComponent } from "../../../decorators/types";
|
|
2
|
+
import { LitElement } from 'lit';
|
|
2
3
|
import { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
|
|
4
|
+
import '../atomic-commerce-text/atomic-commerce-text';
|
|
5
|
+
declare const AtomicProductText_base: typeof LitElement;
|
|
3
6
|
/**
|
|
4
|
-
*
|
|
5
|
-
* The `atomic-product-text` component renders the value of a string product field.
|
|
7
|
+
* The `atomic-product-text` component renders the value of a string field for a given product.
|
|
6
8
|
*/
|
|
7
|
-
export declare class AtomicProductText implements InitializableComponent<CommerceBindings> {
|
|
8
|
-
bindings: CommerceBindings;
|
|
9
|
-
error: Error;
|
|
10
|
-
private product;
|
|
11
|
-
private host;
|
|
9
|
+
export declare class AtomicProductText extends AtomicProductText_base implements InitializableComponent<CommerceBindings> {
|
|
12
10
|
/**
|
|
13
|
-
* The
|
|
14
|
-
*
|
|
11
|
+
* The string field whose value the component should render.
|
|
12
|
+
* The component will look for the specified field in the product's properties first, and then in the product's `additionalFields` property.
|
|
15
13
|
*/
|
|
16
14
|
field: string;
|
|
17
15
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
16
|
+
* Whether to highlight the string field value.
|
|
17
|
+
*
|
|
18
|
+
* Only works if the `field` property is set to `excerpt` or `ec_name`.
|
|
20
19
|
*/
|
|
21
20
|
shouldHighlight: boolean;
|
|
22
21
|
/**
|
|
23
|
-
* The locale key for
|
|
22
|
+
* The locale key to use for displaying default text when the specified field has no value for the product.
|
|
24
23
|
*/
|
|
25
24
|
default?: string;
|
|
25
|
+
private product;
|
|
26
|
+
private productController;
|
|
27
|
+
bindings: CommerceBindings;
|
|
28
|
+
error: Error;
|
|
29
|
+
initialize(): void;
|
|
26
30
|
private get shouldRenderHighlights();
|
|
27
|
-
isFieldSupportedForHighlighting
|
|
28
|
-
|
|
31
|
+
private isFieldSupportedForHighlighting;
|
|
32
|
+
private get highlightKeywords();
|
|
33
|
+
private renderFallback;
|
|
34
|
+
private renderProductText;
|
|
35
|
+
private renderProductTextValue;
|
|
36
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
37
|
+
}
|
|
38
|
+
declare global {
|
|
39
|
+
interface HTMLElementTagNameMap {
|
|
40
|
+
'atomic-product-text': AtomicProductText;
|
|
41
|
+
}
|
|
29
42
|
}
|
|
43
|
+
export {};
|
|
@@ -12,5 +12,7 @@ export { AtomicCommerceSearchBoxInstantProducts } from './atomic-commerce-search
|
|
|
12
12
|
export { AtomicCommerceSearchBoxQuerySuggestions } from './atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions.js';
|
|
13
13
|
export { AtomicCommerceSearchBoxRecentQueries } from './atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.js';
|
|
14
14
|
export { AtomicCommerceSortDropdown } from './atomic-commerce-sort-dropdown/atomic-commerce-sort-dropdown.js';
|
|
15
|
+
export { AtomicCommerceText } from './atomic-commerce-text/atomic-commerce-text.js';
|
|
15
16
|
export { AtomicProduct } from './atomic-product/atomic-product.js';
|
|
16
17
|
export { AtomicProductTemplate } from './atomic-product-template/atomic-product-template.js';
|
|
18
|
+
export { AtomicProductText } from './atomic-product-text/atomic-product-text.js';
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
1
2
|
import { Section } from './sections';
|
|
2
3
|
/**
|
|
3
|
-
* The `atomic-layout-section` lets you identify various sections for the related `atomic-layout` component.
|
|
4
|
+
* The `atomic-layout-section` lets you identify various sections for the related `atomic-search-layout` or `atomic-commerce-layout` component.
|
|
5
|
+
*
|
|
6
|
+
* @slot default - The default slot where you can add child components to the section.
|
|
4
7
|
*/
|
|
5
|
-
export declare class AtomicLayoutSection {
|
|
8
|
+
export declare class AtomicLayoutSection extends LitElement {
|
|
6
9
|
/**
|
|
7
10
|
* The name of the layout section.
|
|
8
11
|
*/
|
|
@@ -17,4 +20,10 @@ export declare class AtomicLayoutSection {
|
|
|
17
20
|
* E.g. '300px'
|
|
18
21
|
*/
|
|
19
22
|
maxWidth?: string;
|
|
23
|
+
createRenderRoot(): this;
|
|
24
|
+
}
|
|
25
|
+
declare global {
|
|
26
|
+
interface HTMLElementTagNameMap {
|
|
27
|
+
'atomic-layout-section': AtomicLayoutSection;
|
|
28
|
+
}
|
|
20
29
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AtomicLayoutSection } from './atomic-layout-section';
|
|
1
2
|
export type Section = 'search' | 'facets' | 'main' | 'status' | 'results' | 'horizontal-facets' | 'products' | 'pagination';
|
|
2
|
-
export declare function findSection(element: HTMLElement, section: Section):
|
|
3
|
+
export declare function findSection(element: HTMLElement, section: Section): AtomicLayoutSection | null;
|
|
3
4
|
export declare function sectionSelector(section: Section): string;
|
|
@@ -20,7 +20,6 @@ import { InsightInitializationOptions } from "./components/insight/atomic-insigh
|
|
|
20
20
|
import { InsightStore } from "./components/insight/atomic-insight-interface/store";
|
|
21
21
|
import { Actions, InsightResultActionClickedEvent } from "./components/insight/atomic-insight-result-action/atomic-insight-result-action";
|
|
22
22
|
import { InsightResultAttachToCaseEvent } from "./components/insight/atomic-insight-result-attach-to-case-action/atomic-insight-result-attach-to-case-action";
|
|
23
|
-
import { Section } from "./components/common/atomic-layout-section/sections";
|
|
24
23
|
import { SelectChildProductEventArgs } from "./components/commerce/atomic-product-children/select-child-product-event";
|
|
25
24
|
import { TruncateAfter } from "./components/common/expandable-text/stencil-expandable-text";
|
|
26
25
|
import { ItemDisplayImageSize as ItemDisplayImageSize1 } from "./components.d";
|
|
@@ -49,7 +48,6 @@ export { InsightInitializationOptions } from "./components/insight/atomic-insigh
|
|
|
49
48
|
export { InsightStore } from "./components/insight/atomic-insight-interface/store";
|
|
50
49
|
export { Actions, InsightResultActionClickedEvent } from "./components/insight/atomic-insight-result-action/atomic-insight-result-action";
|
|
51
50
|
export { InsightResultAttachToCaseEvent } from "./components/insight/atomic-insight-result-attach-to-case-action/atomic-insight-result-attach-to-case-action";
|
|
52
|
-
export { Section } from "./components/common/atomic-layout-section/sections";
|
|
53
51
|
export { SelectChildProductEventArgs } from "./components/commerce/atomic-product-children/select-child-product-event";
|
|
54
52
|
export { TruncateAfter } from "./components/common/expandable-text/stencil-expandable-text";
|
|
55
53
|
export { ItemDisplayImageSize as ItemDisplayImageSize1 } from "./components.d";
|
|
@@ -446,20 +444,6 @@ export namespace Components {
|
|
|
446
444
|
*/
|
|
447
445
|
interface AtomicCommerceRefineToggle {
|
|
448
446
|
}
|
|
449
|
-
/**
|
|
450
|
-
* @alpha The `atomic-commerce-text` component leverages the I18n translation module through the atomic-commerce-interface.
|
|
451
|
-
*/
|
|
452
|
-
interface AtomicCommerceText {
|
|
453
|
-
/**
|
|
454
|
-
* The count value used for plurals.
|
|
455
|
-
* @type {number}
|
|
456
|
-
*/
|
|
457
|
-
"count"?: number;
|
|
458
|
-
/**
|
|
459
|
-
* The string key value.
|
|
460
|
-
*/
|
|
461
|
-
"value": string;
|
|
462
|
-
}
|
|
463
447
|
/**
|
|
464
448
|
* A facet is a list of values for a certain field occurring in the results.
|
|
465
449
|
* An `atomic-commerce-timeframe-facet` displays a facet of the results for the current query as date intervals.
|
|
@@ -1521,23 +1505,6 @@ export namespace Components {
|
|
|
1521
1505
|
}
|
|
1522
1506
|
interface AtomicIpxTabs {
|
|
1523
1507
|
}
|
|
1524
|
-
/**
|
|
1525
|
-
* The `atomic-layout-section` lets you identify various sections for the related `atomic-layout` component.
|
|
1526
|
-
*/
|
|
1527
|
-
interface AtomicLayoutSection {
|
|
1528
|
-
/**
|
|
1529
|
-
* For column sections, the maximum horizontal space it should take. E.g. '300px'
|
|
1530
|
-
*/
|
|
1531
|
-
"maxWidth"?: string;
|
|
1532
|
-
/**
|
|
1533
|
-
* For column sections, the minimum horizontal space it should take. E.g. '300px'
|
|
1534
|
-
*/
|
|
1535
|
-
"minWidth"?: string;
|
|
1536
|
-
/**
|
|
1537
|
-
* The name of the layout section.
|
|
1538
|
-
*/
|
|
1539
|
-
"section": Section;
|
|
1540
|
-
}
|
|
1541
1508
|
/**
|
|
1542
1509
|
* The `atomic-load-more-results` component allows the user to load additional results if more are available.
|
|
1543
1510
|
*/
|
|
@@ -1951,23 +1918,6 @@ export namespace Components {
|
|
|
1951
1918
|
*/
|
|
1952
1919
|
"imageSize"?: Omit<ItemDisplayImageSize, 'icon'>;
|
|
1953
1920
|
}
|
|
1954
|
-
/**
|
|
1955
|
-
* @alpha The `atomic-product-text` component renders the value of a string product field.
|
|
1956
|
-
*/
|
|
1957
|
-
interface AtomicProductText {
|
|
1958
|
-
/**
|
|
1959
|
-
* The locale key for the text to display when the configured field has no value.
|
|
1960
|
-
*/
|
|
1961
|
-
"default"?: string;
|
|
1962
|
-
/**
|
|
1963
|
-
* The product field which the component should use. This will look in the Product object first, and then in the product.additionalFields object for the fields.
|
|
1964
|
-
*/
|
|
1965
|
-
"field": string;
|
|
1966
|
-
/**
|
|
1967
|
-
* When this is set to `true`, the component attempts to highlight text based on the highlighting properties provided by the search API response. This property only works for the product excerpt and the ec_name field.
|
|
1968
|
-
*/
|
|
1969
|
-
"shouldHighlight": boolean;
|
|
1970
|
-
}
|
|
1971
1921
|
/**
|
|
1972
1922
|
* The `atomic-query-error` component handles fatal errors when performing a query on the index or Search API. When the error is known, it displays a link to relevant documentation link for debugging purposes. When the error is unknown, it displays a small text area with the JSON content of the error.
|
|
1973
1923
|
*/
|
|
@@ -3721,15 +3671,6 @@ declare global {
|
|
|
3721
3671
|
prototype: HTMLAtomicCommerceRefineToggleElement;
|
|
3722
3672
|
new (): HTMLAtomicCommerceRefineToggleElement;
|
|
3723
3673
|
};
|
|
3724
|
-
/**
|
|
3725
|
-
* @alpha The `atomic-commerce-text` component leverages the I18n translation module through the atomic-commerce-interface.
|
|
3726
|
-
*/
|
|
3727
|
-
interface HTMLAtomicCommerceTextElement extends Components.AtomicCommerceText, HTMLStencilElement {
|
|
3728
|
-
}
|
|
3729
|
-
var HTMLAtomicCommerceTextElement: {
|
|
3730
|
-
prototype: HTMLAtomicCommerceTextElement;
|
|
3731
|
-
new (): HTMLAtomicCommerceTextElement;
|
|
3732
|
-
};
|
|
3733
3674
|
/**
|
|
3734
3675
|
* A facet is a list of values for a certain field occurring in the results.
|
|
3735
3676
|
* An `atomic-commerce-timeframe-facet` displays a facet of the results for the current query as date intervals.
|
|
@@ -4281,15 +4222,6 @@ declare global {
|
|
|
4281
4222
|
prototype: HTMLAtomicIpxTabsElement;
|
|
4282
4223
|
new (): HTMLAtomicIpxTabsElement;
|
|
4283
4224
|
};
|
|
4284
|
-
/**
|
|
4285
|
-
* The `atomic-layout-section` lets you identify various sections for the related `atomic-layout` component.
|
|
4286
|
-
*/
|
|
4287
|
-
interface HTMLAtomicLayoutSectionElement extends Components.AtomicLayoutSection, HTMLStencilElement {
|
|
4288
|
-
}
|
|
4289
|
-
var HTMLAtomicLayoutSectionElement: {
|
|
4290
|
-
prototype: HTMLAtomicLayoutSectionElement;
|
|
4291
|
-
new (): HTMLAtomicLayoutSectionElement;
|
|
4292
|
-
};
|
|
4293
4225
|
/**
|
|
4294
4226
|
* The `atomic-load-more-results` component allows the user to load additional results if more are available.
|
|
4295
4227
|
*/
|
|
@@ -4614,15 +4546,6 @@ declare global {
|
|
|
4614
4546
|
prototype: HTMLAtomicProductSectionVisualElement;
|
|
4615
4547
|
new (): HTMLAtomicProductSectionVisualElement;
|
|
4616
4548
|
};
|
|
4617
|
-
/**
|
|
4618
|
-
* @alpha The `atomic-product-text` component renders the value of a string product field.
|
|
4619
|
-
*/
|
|
4620
|
-
interface HTMLAtomicProductTextElement extends Components.AtomicProductText, HTMLStencilElement {
|
|
4621
|
-
}
|
|
4622
|
-
var HTMLAtomicProductTextElement: {
|
|
4623
|
-
prototype: HTMLAtomicProductTextElement;
|
|
4624
|
-
new (): HTMLAtomicProductTextElement;
|
|
4625
|
-
};
|
|
4626
4549
|
/**
|
|
4627
4550
|
* The `atomic-query-error` component handles fatal errors when performing a query on the index or Search API. When the error is known, it displays a link to relevant documentation link for debugging purposes. When the error is unknown, it displays a small text area with the JSON content of the error.
|
|
4628
4551
|
*/
|
|
@@ -5507,7 +5430,6 @@ declare global {
|
|
|
5507
5430
|
"atomic-commerce-recommendation-interface": HTMLAtomicCommerceRecommendationInterfaceElement;
|
|
5508
5431
|
"atomic-commerce-refine-modal": HTMLAtomicCommerceRefineModalElement;
|
|
5509
5432
|
"atomic-commerce-refine-toggle": HTMLAtomicCommerceRefineToggleElement;
|
|
5510
|
-
"atomic-commerce-text": HTMLAtomicCommerceTextElement;
|
|
5511
5433
|
"atomic-commerce-timeframe-facet": HTMLAtomicCommerceTimeframeFacetElement;
|
|
5512
5434
|
"atomic-did-you-mean": HTMLAtomicDidYouMeanElement;
|
|
5513
5435
|
"atomic-external": HTMLAtomicExternalElement;
|
|
@@ -5570,7 +5492,6 @@ declare global {
|
|
|
5570
5492
|
"atomic-ipx-result-link": HTMLAtomicIpxResultLinkElement;
|
|
5571
5493
|
"atomic-ipx-tab": HTMLAtomicIpxTabElement;
|
|
5572
5494
|
"atomic-ipx-tabs": HTMLAtomicIpxTabsElement;
|
|
5573
|
-
"atomic-layout-section": HTMLAtomicLayoutSectionElement;
|
|
5574
5495
|
"atomic-load-more-results": HTMLAtomicLoadMoreResultsElement;
|
|
5575
5496
|
"atomic-modal": HTMLAtomicModalElement;
|
|
5576
5497
|
"atomic-no-results": HTMLAtomicNoResultsElement;
|
|
@@ -5598,7 +5519,6 @@ declare global {
|
|
|
5598
5519
|
"atomic-product-section-metadata": HTMLAtomicProductSectionMetadataElement;
|
|
5599
5520
|
"atomic-product-section-name": HTMLAtomicProductSectionNameElement;
|
|
5600
5521
|
"atomic-product-section-visual": HTMLAtomicProductSectionVisualElement;
|
|
5601
|
-
"atomic-product-text": HTMLAtomicProductTextElement;
|
|
5602
5522
|
"atomic-query-error": HTMLAtomicQueryErrorElement;
|
|
5603
5523
|
"atomic-query-summary": HTMLAtomicQuerySummaryElement;
|
|
5604
5524
|
"atomic-quickview": HTMLAtomicQuickviewElement;
|
|
@@ -6045,20 +5965,6 @@ declare namespace LocalJSX {
|
|
|
6045
5965
|
*/
|
|
6046
5966
|
interface AtomicCommerceRefineToggle {
|
|
6047
5967
|
}
|
|
6048
|
-
/**
|
|
6049
|
-
* @alpha The `atomic-commerce-text` component leverages the I18n translation module through the atomic-commerce-interface.
|
|
6050
|
-
*/
|
|
6051
|
-
interface AtomicCommerceText {
|
|
6052
|
-
/**
|
|
6053
|
-
* The count value used for plurals.
|
|
6054
|
-
* @type {number}
|
|
6055
|
-
*/
|
|
6056
|
-
"count"?: number;
|
|
6057
|
-
/**
|
|
6058
|
-
* The string key value.
|
|
6059
|
-
*/
|
|
6060
|
-
"value": string;
|
|
6061
|
-
}
|
|
6062
5968
|
/**
|
|
6063
5969
|
* A facet is a list of values for a certain field occurring in the results.
|
|
6064
5970
|
* An `atomic-commerce-timeframe-facet` displays a facet of the results for the current query as date intervals.
|
|
@@ -7067,23 +6973,6 @@ declare namespace LocalJSX {
|
|
|
7067
6973
|
}
|
|
7068
6974
|
interface AtomicIpxTabs {
|
|
7069
6975
|
}
|
|
7070
|
-
/**
|
|
7071
|
-
* The `atomic-layout-section` lets you identify various sections for the related `atomic-layout` component.
|
|
7072
|
-
*/
|
|
7073
|
-
interface AtomicLayoutSection {
|
|
7074
|
-
/**
|
|
7075
|
-
* For column sections, the maximum horizontal space it should take. E.g. '300px'
|
|
7076
|
-
*/
|
|
7077
|
-
"maxWidth"?: string;
|
|
7078
|
-
/**
|
|
7079
|
-
* For column sections, the minimum horizontal space it should take. E.g. '300px'
|
|
7080
|
-
*/
|
|
7081
|
-
"minWidth"?: string;
|
|
7082
|
-
/**
|
|
7083
|
-
* The name of the layout section.
|
|
7084
|
-
*/
|
|
7085
|
-
"section": Section;
|
|
7086
|
-
}
|
|
7087
6976
|
/**
|
|
7088
6977
|
* The `atomic-load-more-results` component allows the user to load additional results if more are available.
|
|
7089
6978
|
*/
|
|
@@ -7487,23 +7376,6 @@ declare namespace LocalJSX {
|
|
|
7487
7376
|
*/
|
|
7488
7377
|
"imageSize"?: Omit<ItemDisplayImageSize, 'icon'>;
|
|
7489
7378
|
}
|
|
7490
|
-
/**
|
|
7491
|
-
* @alpha The `atomic-product-text` component renders the value of a string product field.
|
|
7492
|
-
*/
|
|
7493
|
-
interface AtomicProductText {
|
|
7494
|
-
/**
|
|
7495
|
-
* The locale key for the text to display when the configured field has no value.
|
|
7496
|
-
*/
|
|
7497
|
-
"default"?: string;
|
|
7498
|
-
/**
|
|
7499
|
-
* The product field which the component should use. This will look in the Product object first, and then in the product.additionalFields object for the fields.
|
|
7500
|
-
*/
|
|
7501
|
-
"field": string;
|
|
7502
|
-
/**
|
|
7503
|
-
* When this is set to `true`, the component attempts to highlight text based on the highlighting properties provided by the search API response. This property only works for the product excerpt and the ec_name field.
|
|
7504
|
-
*/
|
|
7505
|
-
"shouldHighlight"?: boolean;
|
|
7506
|
-
}
|
|
7507
7379
|
/**
|
|
7508
7380
|
* The `atomic-query-error` component handles fatal errors when performing a query on the index or Search API. When the error is known, it displays a link to relevant documentation link for debugging purposes. When the error is unknown, it displays a small text area with the JSON content of the error.
|
|
7509
7381
|
*/
|
|
@@ -8923,7 +8795,6 @@ declare namespace LocalJSX {
|
|
|
8923
8795
|
"atomic-commerce-recommendation-interface": AtomicCommerceRecommendationInterface;
|
|
8924
8796
|
"atomic-commerce-refine-modal": AtomicCommerceRefineModal;
|
|
8925
8797
|
"atomic-commerce-refine-toggle": AtomicCommerceRefineToggle;
|
|
8926
|
-
"atomic-commerce-text": AtomicCommerceText;
|
|
8927
8798
|
"atomic-commerce-timeframe-facet": AtomicCommerceTimeframeFacet;
|
|
8928
8799
|
"atomic-did-you-mean": AtomicDidYouMean;
|
|
8929
8800
|
"atomic-external": AtomicExternal;
|
|
@@ -8986,7 +8857,6 @@ declare namespace LocalJSX {
|
|
|
8986
8857
|
"atomic-ipx-result-link": AtomicIpxResultLink;
|
|
8987
8858
|
"atomic-ipx-tab": AtomicIpxTab;
|
|
8988
8859
|
"atomic-ipx-tabs": AtomicIpxTabs;
|
|
8989
|
-
"atomic-layout-section": AtomicLayoutSection;
|
|
8990
8860
|
"atomic-load-more-results": AtomicLoadMoreResults;
|
|
8991
8861
|
"atomic-modal": AtomicModal;
|
|
8992
8862
|
"atomic-no-results": AtomicNoResults;
|
|
@@ -9014,7 +8884,6 @@ declare namespace LocalJSX {
|
|
|
9014
8884
|
"atomic-product-section-metadata": AtomicProductSectionMetadata;
|
|
9015
8885
|
"atomic-product-section-name": AtomicProductSectionName;
|
|
9016
8886
|
"atomic-product-section-visual": AtomicProductSectionVisual;
|
|
9017
|
-
"atomic-product-text": AtomicProductText;
|
|
9018
8887
|
"atomic-query-error": AtomicQueryError;
|
|
9019
8888
|
"atomic-query-summary": AtomicQuerySummary;
|
|
9020
8889
|
"atomic-quickview": AtomicQuickview;
|
|
@@ -9187,10 +9056,6 @@ declare module "@stencil/core" {
|
|
|
9187
9056
|
* @alpha
|
|
9188
9057
|
*/
|
|
9189
9058
|
"atomic-commerce-refine-toggle": LocalJSX.AtomicCommerceRefineToggle & JSXBase.HTMLAttributes<HTMLAtomicCommerceRefineToggleElement>;
|
|
9190
|
-
/**
|
|
9191
|
-
* @alpha The `atomic-commerce-text` component leverages the I18n translation module through the atomic-commerce-interface.
|
|
9192
|
-
*/
|
|
9193
|
-
"atomic-commerce-text": LocalJSX.AtomicCommerceText & JSXBase.HTMLAttributes<HTMLAtomicCommerceTextElement>;
|
|
9194
9059
|
/**
|
|
9195
9060
|
* A facet is a list of values for a certain field occurring in the results.
|
|
9196
9061
|
* An `atomic-commerce-timeframe-facet` displays a facet of the results for the current query as date intervals.
|
|
@@ -9321,10 +9186,6 @@ declare module "@stencil/core" {
|
|
|
9321
9186
|
"atomic-ipx-result-link": LocalJSX.AtomicIpxResultLink & JSXBase.HTMLAttributes<HTMLAtomicIpxResultLinkElement>;
|
|
9322
9187
|
"atomic-ipx-tab": LocalJSX.AtomicIpxTab & JSXBase.HTMLAttributes<HTMLAtomicIpxTabElement>;
|
|
9323
9188
|
"atomic-ipx-tabs": LocalJSX.AtomicIpxTabs & JSXBase.HTMLAttributes<HTMLAtomicIpxTabsElement>;
|
|
9324
|
-
/**
|
|
9325
|
-
* The `atomic-layout-section` lets you identify various sections for the related `atomic-layout` component.
|
|
9326
|
-
*/
|
|
9327
|
-
"atomic-layout-section": LocalJSX.AtomicLayoutSection & JSXBase.HTMLAttributes<HTMLAtomicLayoutSectionElement>;
|
|
9328
9189
|
/**
|
|
9329
9190
|
* The `atomic-load-more-results` component allows the user to load additional results if more are available.
|
|
9330
9191
|
*/
|
|
@@ -9481,10 +9342,6 @@ declare module "@stencil/core" {
|
|
|
9481
9342
|
* * Always has a 1:1 aspect ratio.
|
|
9482
9343
|
*/
|
|
9483
9344
|
"atomic-product-section-visual": LocalJSX.AtomicProductSectionVisual & JSXBase.HTMLAttributes<HTMLAtomicProductSectionVisualElement>;
|
|
9484
|
-
/**
|
|
9485
|
-
* @alpha The `atomic-product-text` component renders the value of a string product field.
|
|
9486
|
-
*/
|
|
9487
|
-
"atomic-product-text": LocalJSX.AtomicProductText & JSXBase.HTMLAttributes<HTMLAtomicProductTextElement>;
|
|
9488
9345
|
/**
|
|
9489
9346
|
* The `atomic-query-error` component handles fatal errors when performing a query on the index or Search API. When the error is known, it displays a link to relevant documentation link for debugging purposes. When the error is unknown, it displays a small text area with the JSON content of the error.
|
|
9490
9347
|
*/
|