@liquidcommerce/elements-sdk 2.6.0-beta.6 → 2.6.0-beta.9
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 +10045 -10114
- package/dist/types/core/api/api-client.service.d.ts +3 -4
- package/dist/types/core/client/client-action.service.d.ts +11 -7
- package/dist/types/core/command/common-command.service.d.ts +2 -1
- package/dist/types/core/google-tag-manager.service.d.ts +2 -0
- package/dist/types/core/pubsub/interfaces/cart.interface.d.ts +26 -63
- package/dist/types/core/pubsub/interfaces/checkout.interface.d.ts +11 -1
- package/dist/types/core/pubsub/interfaces/product.interface.d.ts +16 -75
- package/dist/types/core/store/interfaces/cart.interface.d.ts +16 -55
- package/dist/types/core/store/interfaces/checkout.interface.d.ts +2 -2
- package/dist/types/core/store/interfaces/core.interface.d.ts +3 -2
- package/dist/types/elements-base-client.d.ts +1 -1
- package/dist/types/interfaces/api/cart.interface.d.ts +91 -0
- package/dist/types/interfaces/cloud/checkout.interface.d.ts +9 -2
- package/dist/types/interfaces/cloud/index.d.ts +0 -1
- package/dist/types/interfaces/configs/product.interface.d.ts +1 -0
- package/dist/types/modules/cart/cart.commands.d.ts +0 -1
- package/dist/types/modules/cart/components/cart-body.component.d.ts +2 -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 +0 -2
- package/dist/types/modules/ui-components/purchase-min-alert/index.d.ts +0 -1
- package/dist/types/utils/helper.d.ts +2 -1
- package/package.json +3 -3
- package/umd/elements.js +1 -1
- package/dist/types/interfaces/cloud/cart.interface.d.ts +0 -132
- package/dist/types/modules/cart/cart.commands.helper.d.ts +0 -9
- package/dist/types/modules/ui-components/purchase-min-alert/helpers.d.ts +0 -7
|
@@ -2,6 +2,7 @@ import type { DeepPartial } from '@/interfaces/core.interface';
|
|
|
2
2
|
export type FulfillmentDisplayType = 'carousel' | 'popup';
|
|
3
3
|
export interface IProductLayout {
|
|
4
4
|
showImages: boolean;
|
|
5
|
+
showOnlyMainImage: boolean;
|
|
5
6
|
showTitle: boolean;
|
|
6
7
|
showDescription: boolean;
|
|
7
8
|
showQuantityCounter: boolean;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BaseCommand } from '@/core/command/base-command.service';
|
|
2
2
|
import type { IBaseCartEventData } from '@/core/pubsub/interfaces/cart.interface';
|
|
3
3
|
export interface AddItemParams {
|
|
4
|
-
upc: string;
|
|
5
4
|
fulfillmentId: string;
|
|
6
5
|
partNumber: string;
|
|
7
6
|
quantity: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
|
|
2
|
-
|
|
2
|
+
import type { ICartComponent } from '@/interfaces/configs';
|
|
3
|
+
export declare class CartBodyComponent extends BaseComponent<null, ICartComponent> {
|
|
3
4
|
get hostClasses(): string[];
|
|
4
5
|
constructor();
|
|
5
6
|
private createEmptyCartElement;
|
|
@@ -12,7 +12,6 @@ export declare class CartFooterComponent extends BaseComponent<ICartFooterCompon
|
|
|
12
12
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
13
13
|
afterRender(): void;
|
|
14
14
|
private isAnythingLoading;
|
|
15
|
-
private hasUnmetMinimum;
|
|
16
15
|
private shouldDisableCheckout;
|
|
17
16
|
private updateCheckoutButtonState;
|
|
18
17
|
private updateSubtotalItemsCount;
|
|
@@ -6,7 +6,6 @@ export declare class CartFulfillmentComponent extends BaseComponent<ICartFulfill
|
|
|
6
6
|
get hostClasses(): string[];
|
|
7
7
|
constructor();
|
|
8
8
|
private getFulfillmentId;
|
|
9
|
-
private getProductStore;
|
|
10
9
|
private handleItemsUpdate;
|
|
11
10
|
private setupItemElements;
|
|
12
11
|
private setupMinimumPurchaseAlert;
|
|
@@ -17,7 +16,6 @@ export declare class CartFulfillmentComponent extends BaseComponent<ICartFulfill
|
|
|
17
16
|
private isAnyItemUpdating;
|
|
18
17
|
private checkAndUpdateLoadingState;
|
|
19
18
|
onStoreChanged(changes: IOnStoreChanged[]): boolean | undefined;
|
|
20
|
-
private hasFulfillmentFeesChanged;
|
|
21
19
|
private hasFulfillmentDataChanged;
|
|
22
20
|
protected afterRender(): void;
|
|
23
21
|
protected disconnected(): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { CartEventEnum, CheckoutEventEnum } from 'enums';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ICheckoutEvents } from 'interfaces/cloud';
|
|
3
|
+
import type { ICartEvent } from '@/interfaces/api/cart.interface';
|
|
3
4
|
export type ElementEventLevel = 'success' | 'warning' | 'error';
|
|
4
5
|
export interface IElementsCartEvent {
|
|
5
6
|
type: CartEventEnum;
|
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.6.0-beta.
|
|
6
|
+
"version": "2.6.0-beta.9",
|
|
7
7
|
"homepage": "https://docs.liquidcommerce.co/elements-sdk",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
],
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@biomejs/biome": "2.3.5",
|
|
74
|
-
"@commitlint/cli": "^20.
|
|
75
|
-
"@commitlint/config-conventional": "^20.
|
|
74
|
+
"@commitlint/cli": "^20.2.0",
|
|
75
|
+
"@commitlint/config-conventional": "^20.2.0",
|
|
76
76
|
"@rollup/plugin-alias": "^6.0.0",
|
|
77
77
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
78
78
|
"@rollup/plugin-json": "^6.1.0",
|