@liquidcommerce/elements-sdk 2.2.0-beta.2 → 2.2.0-beta.21
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/index.esm.js +9509 -7755
- package/dist/types/core/auth.service.d.ts +10 -4
- package/dist/types/core/base-component.service.d.ts +3 -0
- package/dist/types/core/circuit-breaker.service.d.ts +54 -0
- package/dist/types/core/client/client-action.service.d.ts +13 -11
- package/dist/types/core/client/client-config.service.d.ts +5 -3
- package/dist/types/core/command/common-command.service.d.ts +0 -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 +126 -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/store/interfaces/cart.interface.d.ts +0 -1
- package/dist/types/core/store/interfaces/checkout.interface.d.ts +0 -1
- package/dist/types/core/store/interfaces/core.interface.d.ts +2 -2
- package/dist/types/core/store/store.service.d.ts +1 -0
- 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/enums/debug.enum.d.ts +6 -0
- package/dist/types/enums/index.d.ts +1 -0
- package/dist/types/interfaces/core.interface.d.ts +2 -2
- package/dist/types/modules/address/address.command.d.ts +1 -3
- package/dist/types/modules/cart/cart.commands.d.ts +1 -1
- package/dist/types/modules/cart/cart.component.d.ts +1 -2
- package/dist/types/modules/checkout/checkout.commands.d.ts +1 -1
- package/dist/types/modules/checkout/checkout.component.d.ts +1 -2
- package/dist/types/modules/checkout/components/information/checkout-delivery-information-form.component.d.ts +1 -1
- 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/product-add-to-cart-section.component.d.ts +1 -0
- 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 +1 -0
- package/dist/types/static/icon/index.d.ts +0 -1
- package/dist/types/utils/format.d.ts +2 -1
- package/package.json +4 -4
- package/umd/elements.js +1 -1
- package/dist/types/static/icon/completed.icon.d.ts +0 -2
|
@@ -10,8 +10,6 @@ export declare class AddressCommands extends BaseCommand {
|
|
|
10
10
|
getAddressDetails(addressId: string): Promise<IAddressDetailsResult>;
|
|
11
11
|
setSelectedAddress(addressData: IAddressData): Promise<void>;
|
|
12
12
|
setAddressManually(address: Omit<IAddress, 'id'>, coordinates: ICoords): Promise<void>;
|
|
13
|
-
clearSelectedAddress(): void
|
|
14
|
-
private shouldResetCartForAddressChange;
|
|
15
|
-
private persistSessionData;
|
|
13
|
+
clearSelectedAddress(): Promise<void>;
|
|
16
14
|
getDetails(): IAddressData | null;
|
|
17
15
|
}
|
|
@@ -23,13 +23,13 @@ export declare class CartCommands extends BaseCommand {
|
|
|
23
23
|
handleGoToCheckout(): Promise<void>;
|
|
24
24
|
applyPromoCode(promoCode: string): Promise<void>;
|
|
25
25
|
removePromoCode(): Promise<void>;
|
|
26
|
-
clearPromoCodeError(): Promise<void>;
|
|
27
26
|
rerenderCart(): void;
|
|
28
27
|
resetCart(): Promise<void>;
|
|
29
28
|
getDetails(): IBaseCartEventData;
|
|
30
29
|
private buildItemUpdate;
|
|
31
30
|
private syncItemsFromApiResponse;
|
|
32
31
|
private syncCartMetaFromApiResponse;
|
|
32
|
+
private syncRetailersFromApiResponse;
|
|
33
33
|
private updateFulfillment;
|
|
34
34
|
private addNewFulfillmentAndRetailer;
|
|
35
35
|
private cleanupAfterItemRemoval;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseComponent
|
|
1
|
+
import { BaseComponent } from '@/core/base-component.service';
|
|
2
2
|
import type { ICartComponent } from '@/interfaces/configs';
|
|
3
3
|
export interface ICartComponentParams {
|
|
4
4
|
isIndependentComponent: boolean;
|
|
@@ -6,6 +6,5 @@ export interface ICartComponentParams {
|
|
|
6
6
|
export declare class CartComponent extends BaseComponent<ICartComponentParams, ICartComponent> {
|
|
7
7
|
get hostClasses(): string[];
|
|
8
8
|
constructor();
|
|
9
|
-
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
10
9
|
protected template(): HTMLElement[];
|
|
11
10
|
}
|
|
@@ -22,7 +22,7 @@ export declare class CheckoutCommands extends BaseCommand {
|
|
|
22
22
|
applyPromoCode(code: string): Promise<void>;
|
|
23
23
|
clearPromoCodeError(): Promise<void>;
|
|
24
24
|
removePromoCode(): Promise<void>;
|
|
25
|
-
applyGiftCard(code
|
|
25
|
+
applyGiftCard(code: string): Promise<void>;
|
|
26
26
|
clearGiftCardError(): Promise<void>;
|
|
27
27
|
removeGiftCard(code: string): Promise<void>;
|
|
28
28
|
updateCustomerInfo(fieldName: CustomerFieldName, fieldValue: string): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseComponent
|
|
1
|
+
import { BaseComponent } from '@/core/base-component.service';
|
|
2
2
|
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
3
3
|
export interface ICheckoutComponentParams {
|
|
4
4
|
checkoutId: string;
|
|
@@ -6,6 +6,5 @@ export interface ICheckoutComponentParams {
|
|
|
6
6
|
}
|
|
7
7
|
export declare class CheckoutComponent extends BaseComponent<ICheckoutComponentParams, ICheckoutComponent> {
|
|
8
8
|
constructor();
|
|
9
|
-
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
10
9
|
protected template(): HTMLElement[];
|
|
11
10
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseComponent } from '@/core/base-component.service';
|
|
2
2
|
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
3
3
|
export declare class CheckoutDeliveryInformationComponent extends BaseComponent<null, ICheckoutComponent> {
|
|
4
|
-
constructor();
|
|
5
4
|
get hostClasses(): string[];
|
|
5
|
+
constructor();
|
|
6
6
|
private hasOnDemandFulfillments;
|
|
7
7
|
private handleDeliveryInstructionsChange;
|
|
8
8
|
private handleFirstNameChange;
|
package/dist/types/modules/checkout/components/summary/checkout-place-order-button.component.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ export declare class CheckoutPlaceOrderButtonComponent extends BaseComponent<nul
|
|
|
16
16
|
private determineButtonState;
|
|
17
17
|
private applyButtonState;
|
|
18
18
|
private handlePlaceOrderClick;
|
|
19
|
-
private focusFirstInvalidField;
|
|
20
19
|
private showPaymentError;
|
|
21
20
|
private handleCheckoutReadyForSubmit;
|
|
22
21
|
protected template(): HTMLElement[];
|
|
@@ -9,6 +9,7 @@ export declare class ProductAddToCartSectionComponent extends BaseComponent<IAdd
|
|
|
9
9
|
private qtyDecreaseButton;
|
|
10
10
|
private quantityText;
|
|
11
11
|
get hostClasses(): string[];
|
|
12
|
+
get hostAttributes(): Record<string, string>;
|
|
12
13
|
constructor();
|
|
13
14
|
private getProductId;
|
|
14
15
|
private getAvailableQuantity;
|
|
@@ -5,6 +5,7 @@ export interface IProductPriceComponentParams {
|
|
|
5
5
|
}
|
|
6
6
|
export declare class ProductPriceComponent extends BaseComponent<IProductPriceComponentParams, IProductComponent> {
|
|
7
7
|
get hostClasses(): string[];
|
|
8
|
+
get hostAttributes(): Record<string, string>;
|
|
8
9
|
constructor();
|
|
9
10
|
private getProductId;
|
|
10
11
|
protected template(): string;
|
|
@@ -6,6 +6,7 @@ export interface IProductRetailersComponent {
|
|
|
6
6
|
export declare class ProductRetailersComponent extends BaseComponent<IProductRetailersComponent, IProductComponent> {
|
|
7
7
|
get hostClasses(): string[];
|
|
8
8
|
constructor();
|
|
9
|
+
get hostAttributes(): Record<string, string>;
|
|
9
10
|
private getProductId;
|
|
10
11
|
protected template(): HTMLElement | HTMLElement[];
|
|
11
12
|
}
|
|
@@ -25,5 +25,6 @@ export declare class ProductCommands extends BaseCommand {
|
|
|
25
25
|
addToCart(productId: string, params: AddItemParams): Promise<void>;
|
|
26
26
|
addPresaleToCart(productId: string, params: AddItemParams): Promise<void>;
|
|
27
27
|
productDataForEventFromStore(identifier: string): IBaseProductEventData;
|
|
28
|
+
private findFirstAvailableSize;
|
|
28
29
|
private loadProductStoreUpdate;
|
|
29
30
|
}
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "LiquidCommerce Elements SDK",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": "LiquidCommerce Team",
|
|
6
|
-
"version": "2.2.0-beta.
|
|
6
|
+
"version": "2.2.0-beta.21",
|
|
7
7
|
"homepage": "https://docs.liquidcommerce.co/elements-sdk",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -84,16 +84,16 @@
|
|
|
84
84
|
"@semantic-release/npm": "^12.0.2",
|
|
85
85
|
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
86
86
|
"@types/core-js": "^2.5.8",
|
|
87
|
-
"@types/node": "^24.
|
|
87
|
+
"@types/node": "^24.6.2",
|
|
88
88
|
"conventional-changelog-cli": "^5.0.0",
|
|
89
89
|
"husky": "^9.1.7",
|
|
90
90
|
"process": "^0.11.10",
|
|
91
|
-
"rollup": "^4.52.
|
|
91
|
+
"rollup": "^4.52.3",
|
|
92
92
|
"rollup-obfuscator": "^4.1.1",
|
|
93
93
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
94
94
|
"semantic-release": "^24.2.9",
|
|
95
95
|
"ts-node": "^10.9.2",
|
|
96
|
-
"typescript": "^5.9.
|
|
96
|
+
"typescript": "^5.9.3"
|
|
97
97
|
},
|
|
98
98
|
"engines": {
|
|
99
99
|
"node": ">=20"
|