@liquidcommerce/elements-sdk 2.2.0-beta.4 → 2.2.0-beta.41
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/README.md +1715 -569
- package/dist/index.esm.js +14589 -10538
- package/dist/types/constants/core.constant.d.ts +32 -0
- package/dist/types/constants/index.d.ts +0 -1
- package/dist/types/{modules/api-client → core}/api-client.service.d.ts +4 -2
- package/dist/types/core/auth.service.d.ts +31 -4
- package/dist/types/core/base-component.service.d.ts +7 -3
- package/dist/types/core/circuit-breaker.service.d.ts +54 -0
- package/dist/types/core/client/client-action.service.d.ts +19 -14
- package/dist/types/core/client/client-config.service.d.ts +5 -3
- package/dist/types/core/command/base-command.service.d.ts +5 -3
- package/dist/types/core/command/command.service.d.ts +2 -0
- package/dist/types/core/command/common-command.service.d.ts +2 -1
- package/dist/types/core/debug-panel/debug-panel.service.d.ts +43 -0
- package/dist/types/core/debug-panel/debug-panel.styles.d.ts +1 -0
- package/dist/types/core/fingerprint.service.d.ts +4 -9
- package/dist/types/core/google-tag-manager.service.d.ts +128 -2
- package/dist/types/core/logger/logger-factory.d.ts +3 -0
- package/dist/types/core/logger/logger.service.d.ts +8 -5
- package/dist/types/core/pubsub/interfaces/cart.interface.d.ts +1 -0
- package/dist/types/core/pubsub/interfaces/checkout.interface.d.ts +46 -6
- package/dist/types/core/pubsub/interfaces/core.interface.d.ts +5 -3
- package/dist/types/core/pubsub/interfaces/product.interface.d.ts +43 -6
- package/dist/types/core/pubsub/pubsub.service.d.ts +3 -2
- package/dist/types/core/sdk-error-handler.d.ts +1 -0
- package/dist/types/core/singleton-manager.service.d.ts +3 -3
- package/dist/types/core/store/interfaces/cart.interface.d.ts +1 -1
- package/dist/types/core/store/interfaces/checkout.interface.d.ts +0 -1
- package/dist/types/core/store/interfaces/core.interface.d.ts +5 -3
- package/dist/types/core/store/interfaces/product.interface.d.ts +18 -7
- package/dist/types/core/store/store.constant.d.ts +5 -1
- package/dist/types/core/store/store.service.d.ts +4 -2
- package/dist/types/core/telemetry/telemetry.interface.d.ts +80 -0
- package/dist/types/core/telemetry/telemetry.service.d.ts +27 -0
- package/dist/types/core/utils.d.ts +0 -4
- package/dist/types/elements-base-client.d.ts +49 -0
- package/dist/types/elements-builder-client.d.ts +2 -0
- package/dist/types/elements-client-helper.d.ts +3 -0
- package/dist/types/enums/core.enum.d.ts +9 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.umd.d.ts +2 -2
- package/dist/types/interfaces/cloud/catalog.interface.d.ts +43 -0
- package/dist/types/interfaces/cloud/index.d.ts +1 -0
- package/dist/types/interfaces/cloud/product.interface.d.ts +2 -0
- package/dist/types/interfaces/configs/checkout.interface.d.ts +1 -1
- package/dist/types/interfaces/configs/product.interface.d.ts +2 -0
- package/dist/types/interfaces/core.interface.d.ts +47 -19
- package/dist/types/modules/address/address.command.d.ts +1 -3
- package/dist/types/modules/cart/cart.commands.d.ts +2 -3
- package/dist/types/modules/cart/cart.commands.helper.d.ts +3 -2
- package/dist/types/modules/cart/cart.component.d.ts +1 -2
- package/dist/types/modules/cart/components/cart-footer.component.d.ts +1 -0
- package/dist/types/modules/cart/components/cart-item.component.d.ts +2 -6
- package/dist/types/modules/cart/components/index.d.ts +2 -0
- package/dist/types/modules/checkout/checkout.commands.d.ts +4 -4
- package/dist/types/modules/checkout/checkout.commands.helper.d.ts +1 -1
- package/dist/types/modules/checkout/checkout.component.d.ts +1 -2
- package/dist/types/modules/checkout/components/checkout-summary-section.component.d.ts +2 -0
- package/dist/types/modules/checkout/components/information/checkout-delivery-information-form.component.d.ts +1 -1
- package/dist/types/modules/checkout/components/summary/checkout-item-quantity.component.d.ts +0 -2
- package/dist/types/modules/checkout/components/summary/checkout-item.component.d.ts +2 -1
- package/dist/types/modules/checkout/components/summary/checkout-items.component.d.ts +1 -0
- package/dist/types/modules/checkout/components/summary/checkout-place-order-button.component.d.ts +0 -1
- package/dist/types/modules/checkout/constant.d.ts +0 -1
- package/dist/types/modules/product/components/components.d.ts +1 -1
- package/dist/types/modules/product/components/index.d.ts +1 -0
- package/dist/types/modules/product/components/product-add-to-cart-section.component.d.ts +1 -0
- package/dist/types/modules/product/components/product-interactions.component.d.ts +4 -1
- package/dist/types/modules/product/components/product-price.component.d.ts +1 -0
- package/dist/types/modules/product/components/product-retailers.component.d.ts +1 -0
- package/dist/types/modules/product/product.commands.d.ts +3 -4
- package/dist/types/modules/product/utils/helpers.d.ts +1 -1
- package/dist/types/modules/product/utils/retailer-hours.d.ts +1 -1
- package/dist/types/modules/product-list/components/index.d.ts +2 -0
- package/dist/types/modules/product-list/components/product-list-card.component.d.ts +36 -0
- package/dist/types/modules/product-list/components/product-list-filters.component.d.ts +21 -0
- package/dist/types/modules/product-list/product-list.commands.d.ts +12 -0
- package/dist/types/modules/product-list/product-list.component.d.ts +76 -0
- package/dist/types/modules/theme-provider/constants/component-groupings.d.ts +0 -2
- package/dist/types/modules/theme-provider/services/font-manager.service.d.ts +1 -0
- package/dist/types/modules/theme-provider/styles/product-list/index.d.ts +1 -0
- package/dist/types/modules/theme-provider/styles/product-list/product-list.style.d.ts +1 -0
- package/dist/types/modules/ui-components/alert/alert.component.d.ts +1 -1
- package/dist/types/modules/ui-components/engraving/engraving-form.component.d.ts +13 -11
- package/dist/types/modules/ui-components/engraving/engraving-view.component.d.ts +4 -9
- package/dist/types/modules/ui-components/lce-element/lce-element.component.d.ts +2 -0
- package/dist/types/modules/ui-components/purchase-min-alert/helpers.d.ts +1 -1
- package/dist/types/modules/ui-components/ui.commands.d.ts +1 -1
- package/dist/types/static/icon/index.d.ts +0 -1
- package/dist/types/utils/format.d.ts +2 -1
- package/docs/ACTIONS.md +1300 -0
- package/docs/BROWSER_SUPPORT.md +279 -0
- package/docs/CONFIGURATION.md +740 -0
- package/docs/DOCUMENTATION_INDEX.md +311 -0
- package/docs/EVENTS.md +765 -0
- package/docs/PROXY.md +228 -0
- package/docs/THEMING.md +592 -0
- package/docs/TROUBLESHOOTING.md +793 -0
- package/package.json +20 -17
- package/umd/elements.js +1 -1
- package/dist/types/constants/z-index.constant.d.ts +0 -24
- package/dist/types/core/pubsub/index.d.ts +0 -2
- package/dist/types/core/pubsub/interfaces/index.d.ts +0 -5
- package/dist/types/core/store/index.d.ts +0 -2
- package/dist/types/core/store/interfaces/index.d.ts +0 -5
- package/dist/types/modules/address/index.d.ts +0 -4
- package/dist/types/modules/api-client/api-client.interface.d.ts +0 -21
- package/dist/types/modules/api-client/index.d.ts +0 -2
- package/dist/types/modules/cart/index.d.ts +0 -1
- package/dist/types/modules/checkout/index.d.ts +0 -1
- package/dist/types/modules/product/constant.d.ts +0 -2
- package/dist/types/modules/product/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/index.d.ts +0 -2
- package/dist/types/static/icon/completed.icon.d.ts +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseComponent } from '@/core/base-component.service';
|
|
2
2
|
export interface IEngravingFormComponentParams {
|
|
3
3
|
identifier: string;
|
|
4
|
-
context: 'product' | 'cart'
|
|
4
|
+
context: 'product' | 'cart';
|
|
5
5
|
lines: string[];
|
|
6
6
|
maxLines: number;
|
|
7
7
|
maxCharsPerLine: number;
|
|
@@ -9,16 +9,18 @@ export interface IEngravingFormComponentParams {
|
|
|
9
9
|
location?: string;
|
|
10
10
|
}
|
|
11
11
|
export declare class EngravingFormComponent extends BaseComponent<IEngravingFormComponentParams, null> {
|
|
12
|
-
private inputs;
|
|
13
|
-
private charCountElements;
|
|
14
12
|
get hostClasses(): string[];
|
|
15
|
-
|
|
16
|
-
private
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
|
|
21
|
-
private
|
|
22
|
-
private
|
|
13
|
+
private engravingLines;
|
|
14
|
+
private productPriceSpan;
|
|
15
|
+
private addToCartButton;
|
|
16
|
+
private fulfillmentId;
|
|
17
|
+
private partNumber;
|
|
18
|
+
beforeConnected(): void;
|
|
19
|
+
private calculateTotalPrice;
|
|
20
|
+
private productInformationSection;
|
|
21
|
+
private addToCartButtonText;
|
|
22
|
+
private retailersSection;
|
|
23
|
+
private engravingLinesSection;
|
|
24
|
+
private actionButtonsSection;
|
|
23
25
|
protected template(): HTMLElement[];
|
|
24
26
|
}
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
-
import type { StorePaths } from '@/core/store';
|
|
3
2
|
import type { IProductComponent } from '@/interfaces/configs';
|
|
4
3
|
export interface IEngravingViewComponentParams {
|
|
5
4
|
identifier: string;
|
|
6
|
-
context: '
|
|
7
|
-
watchStorePaths?: StorePaths[];
|
|
5
|
+
context: 'cart' | 'checkout';
|
|
8
6
|
}
|
|
9
7
|
export declare class EngravingViewComponent extends BaseComponent<IEngravingViewComponentParams, IProductComponent> {
|
|
10
8
|
get hostClasses(): string[];
|
|
11
|
-
|
|
12
|
-
private createEngravingFormParams;
|
|
13
|
-
private openEngravingDrawer;
|
|
14
|
-
private createEngravingContainer;
|
|
15
|
-
private isEngravingAvailable;
|
|
16
|
-
private engravingFee;
|
|
9
|
+
private engravingQuantityFee;
|
|
17
10
|
private engravingLines;
|
|
11
|
+
private handleEdit;
|
|
12
|
+
private handleRemove;
|
|
18
13
|
protected template(): HTMLElement | HTMLElement[] | string;
|
|
19
14
|
}
|
|
@@ -2,8 +2,10 @@ import type { ComponentType } from '@/enums';
|
|
|
2
2
|
export declare class LceElementComponent extends HTMLElement {
|
|
3
3
|
private _initialized;
|
|
4
4
|
protected _container: ShadowRoot | null;
|
|
5
|
+
private _wrappedComponentRerender;
|
|
5
6
|
constructor();
|
|
6
7
|
initialize(contentType: ComponentType, contentElement: HTMLElement): void;
|
|
8
|
+
rerender(context?: string): void;
|
|
7
9
|
private applyBasicStyles;
|
|
8
10
|
private isCSSStyleSheetSupported;
|
|
9
11
|
private applyThemeStyles;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IRetailerFulfillmentStore } from '@/core/store';
|
|
1
|
+
import type { IRetailerFulfillmentStore } from '@/core/store/interfaces/cart.interface';
|
|
2
2
|
export declare const shouldShowMinimumPurchaseAlert: (fulfillment: IRetailerFulfillmentStore, isPack?: boolean) => boolean;
|
|
3
3
|
export declare const getMinimumPurchaseMessage: (fulfillment: IRetailerFulfillmentStore, isPack?: boolean) => {
|
|
4
4
|
message: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseCommand } from '@/core/command/base-command.service';
|
|
2
|
-
import type { IDrawerContentConfig } from '@/core/store';
|
|
2
|
+
import type { IDrawerContentConfig } from '@/core/store/interfaces/core.interface';
|
|
3
3
|
export declare class UICommands extends BaseCommand {
|
|
4
4
|
static getInstance(): UICommands;
|
|
5
5
|
openDrawer(contentType: IDrawerContentConfig['type'], data?: Record<string, any>): void;
|
|
@@ -4,7 +4,6 @@ export * from './checkbox.icon';
|
|
|
4
4
|
export * from './chevron-down.icon';
|
|
5
5
|
export * from './chevron-left.icon';
|
|
6
6
|
export * from './close.icon';
|
|
7
|
-
export * from './completed.icon';
|
|
8
7
|
export * from './error-info.icon';
|
|
9
8
|
export * from './icon.types';
|
|
10
9
|
export * from './info.icon';
|
|
@@ -16,7 +16,8 @@ export declare function buildFormattedAddressString(address: {
|
|
|
16
16
|
zip: string;
|
|
17
17
|
country?: string;
|
|
18
18
|
}): string;
|
|
19
|
-
export declare function
|
|
19
|
+
export declare function capitalizeFirstLetter(text: string): string;
|
|
20
|
+
export declare function splitCategoryPath(catPath?: string): {
|
|
20
21
|
category: string;
|
|
21
22
|
category2: string;
|
|
22
23
|
category3: string;
|