@liquidcommerce/elements-sdk 2.1.0 → 2.1.1-beta.2
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 +6149 -6074
- package/dist/types/constants/z-index.constant.d.ts +3 -3
- package/dist/types/core/component-factory.service.d.ts +1 -2
- package/dist/types/core/fingerprint.service.d.ts +1 -1
- package/dist/types/interfaces/configs/configurations.interface.d.ts +0 -2
- package/dist/types/interfaces/configs/global.interface.d.ts +2 -0
- package/dist/types/interfaces/core.interface.d.ts +1 -1
- package/dist/types/modules/cart/components/cart-footer.component.d.ts +0 -1
- package/dist/types/modules/cart/components/cart-fulfillment.component.d.ts +1 -2
- package/dist/types/modules/cart/components/cart-item.component.d.ts +2 -0
- package/dist/types/modules/ui-components/drawer/drawer.component.d.ts +2 -0
- package/dist/types/modules/ui-components/error-view/error-view.d.ts +4 -3
- package/dist/types/modules/ui-components/powered-by/powered-by.component.d.ts +2 -2
- package/package.json +9 -6
- package/umd/elements.js +1 -1
|
@@ -13,9 +13,9 @@ export declare const Z_INDEX: {
|
|
|
13
13
|
readonly CAROUSEL_CONTROLS: 5580;
|
|
14
14
|
readonly TOOLTIP: 5570;
|
|
15
15
|
readonly PROGRESS_BAR: 5560;
|
|
16
|
-
readonly CHECKOUT_HEADER:
|
|
17
|
-
readonly INDEPENDENT_BUTTON:
|
|
18
|
-
readonly CART_HEADER:
|
|
16
|
+
readonly CHECKOUT_HEADER: 5920;
|
|
17
|
+
readonly INDEPENDENT_BUTTON: 5910;
|
|
18
|
+
readonly CART_HEADER: 5920;
|
|
19
19
|
readonly TOGGLE_SLIDER: 5150;
|
|
20
20
|
readonly FORM_CONTROLS: 5130;
|
|
21
21
|
readonly ADDRESS_ACTIONS: 5050;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type ComponentType } from '@/enums';
|
|
2
2
|
import type { IBaseComponentConfig } from './base-component.service';
|
|
3
3
|
interface ICreateComponentParams extends Omit<IBaseComponentConfig, 'tagName'> {
|
|
4
|
-
tagName?: string;
|
|
5
4
|
productId?: string;
|
|
6
5
|
cartId?: string;
|
|
7
6
|
checkoutId?: string;
|
|
@@ -22,6 +21,6 @@ export declare class ComponentFactoryService {
|
|
|
22
21
|
componentType: ComponentType;
|
|
23
22
|
message: string;
|
|
24
23
|
}): HTMLElement;
|
|
25
|
-
static
|
|
24
|
+
static getComponentTagName(type: ComponentType): string;
|
|
26
25
|
}
|
|
27
26
|
export {};
|
|
@@ -8,6 +8,7 @@ interface FingerprintData {
|
|
|
8
8
|
export declare class FingerPrintService {
|
|
9
9
|
private readonly keyPrefix;
|
|
10
10
|
private isLocalStorageAvailable;
|
|
11
|
+
private fingerprintCache;
|
|
11
12
|
static getInstance(): FingerPrintService;
|
|
12
13
|
getId(partnerCode: string): Promise<string>;
|
|
13
14
|
getFingerprintData(): Promise<FingerprintData>;
|
|
@@ -22,7 +23,6 @@ export declare class FingerPrintService {
|
|
|
22
23
|
private _getBrowser;
|
|
23
24
|
private _getTimezone;
|
|
24
25
|
private _hash;
|
|
25
|
-
private _quickHash;
|
|
26
26
|
private _simpleHash;
|
|
27
27
|
}
|
|
28
28
|
export {};
|
|
@@ -28,6 +28,8 @@ export interface IGlobalLayout {
|
|
|
28
28
|
personalizationCardStyle: 'outlined' | 'filled';
|
|
29
29
|
allowPromoCodes: boolean;
|
|
30
30
|
inputFieldStyle: 'outlined' | 'filled';
|
|
31
|
+
showPoweredBy: boolean;
|
|
32
|
+
poweredByMode: 'light' | 'dark';
|
|
31
33
|
}
|
|
32
34
|
export interface IComponentGlobalConfigs {
|
|
33
35
|
theme: IGlobalTheme;
|
|
@@ -60,7 +60,7 @@ export interface IProcessInjectElementParams {
|
|
|
60
60
|
export interface ILiquidCommerceElementsUIMethod {
|
|
61
61
|
cartButton(containerId: string, showItemsCount?: boolean): void;
|
|
62
62
|
floatingCartButton(showItemsCount?: boolean): void;
|
|
63
|
-
|
|
63
|
+
cartSubtotal(elementId: string): void;
|
|
64
64
|
cartItemsCount(elementId: string): void;
|
|
65
65
|
}
|
|
66
66
|
export interface ILiquidCommerceElementsActions {
|
|
@@ -8,7 +8,6 @@ export declare class CartFooterComponent extends BaseComponent<ICartFooterCompon
|
|
|
8
8
|
private subtotalText;
|
|
9
9
|
private subtotalPrice;
|
|
10
10
|
private checkoutButton;
|
|
11
|
-
private loadingIndicator;
|
|
12
11
|
constructor();
|
|
13
12
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
14
13
|
afterRender(): void;
|
|
@@ -7,7 +7,6 @@ export declare class CartFulfillmentComponent extends BaseComponent<ICartFulfill
|
|
|
7
7
|
constructor();
|
|
8
8
|
private getFulfillmentId;
|
|
9
9
|
private getProductStore;
|
|
10
|
-
private addItemElement;
|
|
11
10
|
private handleItemsUpdate;
|
|
12
11
|
private setupItemElements;
|
|
13
12
|
private setupMinimumPurchaseAlert;
|
|
@@ -22,5 +21,5 @@ export declare class CartFulfillmentComponent extends BaseComponent<ICartFulfill
|
|
|
22
21
|
private hasFulfillmentDataChanged;
|
|
23
22
|
protected afterRender(): void;
|
|
24
23
|
protected disconnected(): void;
|
|
25
|
-
protected template(): HTMLElement;
|
|
24
|
+
protected template(): HTMLElement[];
|
|
26
25
|
}
|
|
@@ -8,6 +8,8 @@ export declare class CartItemComponent extends BaseComponent<ICartItemComponentP
|
|
|
8
8
|
constructor();
|
|
9
9
|
private getItemId;
|
|
10
10
|
onStoreChanged(changes: IOnStoreChanged[]): boolean | undefined;
|
|
11
|
+
private handleEngravingElement;
|
|
11
12
|
private updateShippingTime;
|
|
12
13
|
protected template(): HTMLElement[];
|
|
14
|
+
afterRender(): void;
|
|
13
15
|
}
|
|
@@ -18,6 +18,8 @@ export declare class DrawerComponent extends BaseComponent {
|
|
|
18
18
|
private cleanupCurrentContent;
|
|
19
19
|
private handleBackdropClick;
|
|
20
20
|
private handleKeydown;
|
|
21
|
+
private updateDrawerContentTypeClass;
|
|
21
22
|
private updateDrawerState;
|
|
23
|
+
private isElementsEnabled;
|
|
22
24
|
protected template(): HTMLElement;
|
|
23
25
|
}
|
|
@@ -3,7 +3,8 @@ export declare function componentError({ componentType, message }: {
|
|
|
3
3
|
componentType: ComponentType;
|
|
4
4
|
message: string;
|
|
5
5
|
}): HTMLElement;
|
|
6
|
-
export declare function productionComponentError({
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
export declare function productionComponentError({ title, message, componentType, }: {
|
|
7
|
+
title: string;
|
|
8
|
+
message: string;
|
|
9
|
+
componentType: ComponentType;
|
|
9
10
|
}): HTMLElement;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IComponentGlobalConfigs } from '@/interfaces/configs';
|
|
3
3
|
export interface IPoweredByComponentParams {
|
|
4
4
|
context: 'checkout' | 'general';
|
|
5
5
|
}
|
|
6
|
-
export declare class PoweredByComponent extends BaseComponent<IPoweredByComponentParams,
|
|
6
|
+
export declare class PoweredByComponent extends BaseComponent<IPoweredByComponentParams, IComponentGlobalConfigs> {
|
|
7
7
|
get hostClasses(): string[];
|
|
8
8
|
private createPoweredBySection;
|
|
9
9
|
private createDisclaimerSection;
|
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.1.
|
|
6
|
+
"version": "2.1.1-beta.2",
|
|
7
7
|
"homepage": "https://docs.liquidcommerce.co/elements-sdk",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -78,20 +78,20 @@
|
|
|
78
78
|
"@rollup/plugin-replace": "^6.0.2",
|
|
79
79
|
"@rollup/plugin-terser": "^0.4.4",
|
|
80
80
|
"@semantic-release/changelog": "^6.0.3",
|
|
81
|
-
"@semantic-release/commit-analyzer": "^13.0.
|
|
81
|
+
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
82
82
|
"@semantic-release/git": "^10.0.1",
|
|
83
83
|
"@semantic-release/github": "^11.0.6",
|
|
84
84
|
"@semantic-release/npm": "^12.0.2",
|
|
85
|
-
"@semantic-release/release-notes-generator": "^14.
|
|
85
|
+
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
86
86
|
"@types/core-js": "^2.5.8",
|
|
87
87
|
"@types/node": "^24.5.2",
|
|
88
88
|
"conventional-changelog-cli": "^5.0.0",
|
|
89
89
|
"husky": "^9.1.7",
|
|
90
90
|
"process": "^0.11.10",
|
|
91
|
-
"rollup": "^4.
|
|
91
|
+
"rollup": "^4.52.2",
|
|
92
92
|
"rollup-obfuscator": "^4.1.1",
|
|
93
93
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
94
|
-
"semantic-release": "^24.2.
|
|
94
|
+
"semantic-release": "^24.2.9",
|
|
95
95
|
"ts-node": "^10.9.2",
|
|
96
96
|
"typescript": "^5.9.2"
|
|
97
97
|
},
|
|
@@ -105,6 +105,9 @@
|
|
|
105
105
|
"onlyBuiltDependencies": [
|
|
106
106
|
"@biomejs/biome",
|
|
107
107
|
"javascript-obfuscator"
|
|
108
|
-
]
|
|
108
|
+
],
|
|
109
|
+
"overrides": {
|
|
110
|
+
"@conventional-changelog/git-client@<2.0.0": ">=2.0.0"
|
|
111
|
+
}
|
|
109
112
|
}
|
|
110
113
|
}
|