@liquidcommerce/elements-sdk 2.6.0-beta.19 → 2.6.0-beta.20
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 +9279 -9293
- package/dist/types/core/store/interfaces/checkout.interface.d.ts +1 -1
- package/dist/types/interfaces/api/checkout.interface.d.ts +2 -0
- package/dist/types/modules/checkout/components/checkout-items.component.d.ts +4 -3
- package/package.json +1 -1
- package/umd/elements.js +1 -1
- package/dist/types/interfaces/cloud/index.d.ts +0 -1
- package/dist/types/interfaces/cloud/retailer.interface.d.ts +0 -75
|
@@ -41,6 +41,7 @@ export interface ICheckoutStore {
|
|
|
41
41
|
shippingAddressTwo: string;
|
|
42
42
|
promoCode: ICheckoutPromoCode | null;
|
|
43
43
|
giftCards: ICheckoutGiftCard[];
|
|
44
|
+
itemsQuantity: number;
|
|
44
45
|
items: Record<string, ICheckoutItemStore>;
|
|
45
46
|
fulfillments: Record<string, ICheckoutFulfillment>;
|
|
46
47
|
retailers: Record<string, ICheckoutRetailer>;
|
|
@@ -54,6 +55,5 @@ export interface ICheckoutStore {
|
|
|
54
55
|
loading: boolean;
|
|
55
56
|
updating: boolean;
|
|
56
57
|
error: string | null;
|
|
57
|
-
warning: string[];
|
|
58
58
|
events: ICheckoutEvent[];
|
|
59
59
|
}
|
|
@@ -174,6 +174,7 @@ export interface ICheckoutFulfillment {
|
|
|
174
174
|
doesAllowPromos: boolean;
|
|
175
175
|
doesAllowGiftCards: boolean;
|
|
176
176
|
amounts: ICheckoutAmounts;
|
|
177
|
+
itemsQuantity: number;
|
|
177
178
|
}
|
|
178
179
|
export interface ICheckoutRetailer {
|
|
179
180
|
id: string;
|
|
@@ -205,6 +206,7 @@ export interface ICheckoutPrepare {
|
|
|
205
206
|
amounts: ICheckoutAmounts;
|
|
206
207
|
giftCards: ICheckoutGiftCard[];
|
|
207
208
|
presale: ICheckoutPresale | null;
|
|
209
|
+
itemsQuantity: number;
|
|
208
210
|
items: Record<string, ICheckoutItem>;
|
|
209
211
|
retailers: Record<string, ICheckoutRetailer>;
|
|
210
212
|
events: ICheckoutEvent[];
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
|
|
2
2
|
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
3
3
|
export declare class CheckoutItemsComponent extends BaseComponent<null, ICheckoutComponent> {
|
|
4
|
+
private togglerElement;
|
|
5
|
+
private togglerButton;
|
|
6
|
+
private togglerLabel;
|
|
7
|
+
private itemsList;
|
|
4
8
|
get hostClasses(): string[];
|
|
5
9
|
constructor();
|
|
6
10
|
private createItemElement;
|
|
7
|
-
private getItemsListContainer;
|
|
8
|
-
private getTogglerLabel;
|
|
9
11
|
private getCurrentItemsMap;
|
|
10
12
|
private syncItemsWithStore;
|
|
11
|
-
private updateItemCount;
|
|
12
13
|
onStoreChanged(changes: IOnStoreChanged[]): boolean | undefined;
|
|
13
14
|
private handleToggle;
|
|
14
15
|
private setupToggler;
|
package/package.json
CHANGED