@liquidcommerce/elements-sdk 2.6.0-beta.32 → 2.6.0-beta.34
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 +11079 -10847
- package/dist/types/clients/base.d.ts +6 -0
- package/dist/types/clients/checkout.d.ts +2 -0
- package/dist/types/constants/core.constant.d.ts +1 -0
- package/dist/types/enums/core.enum.d.ts +1 -0
- package/dist/types/interfaces/configs/product-list.interface.d.ts +1 -0
- package/dist/types/modules/address/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/cart/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/checkout/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/product/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/product-list/components/card-components/product-fulfillments.d.ts +0 -3
- package/dist/types/modules/product-list/components/index.d.ts +2 -1
- package/dist/types/modules/product-list/components/product-list-engraving.component.d.ts +6 -0
- package/dist/types/modules/product-list/components/product-list-filters.component.d.ts +0 -1
- package/dist/types/modules/product-list/product-list-card.component.d.ts +2 -2
- package/dist/types/modules/product-list/product-list.component.d.ts +1 -1
- package/dist/types/modules/product-list/styles/product-list-card.style.d.ts +1 -0
- package/dist/types/modules/product-list/styles/product-list-filters.style.d.ts +1 -0
- package/dist/types/modules/product-list/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/theme-provider/services/style-registry.service.d.ts +16 -0
- package/dist/types/modules/theme-provider/services/stylesheet-generator.service.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/ui-components/engraving/engraving-form.component.d.ts +2 -1
- package/dist/types/modules/ui-components/modal/modal.component.d.ts +3 -1
- package/package.json +4 -3
- package/umd/elements-checkout.js +1 -1
- package/umd/elements.js +1 -1
- package/dist/index.checkout.esm.js +0 -16000
- package/dist/types/modules/theme-provider/styles/address/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/cart/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/checkout/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/product/index.d.ts +0 -3
- package/dist/types/modules/theme-provider/styles/product-list/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/ui/index.d.ts +0 -4
- /package/dist/types/modules/{theme-provider/styles/address → address/styles}/address.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/cart → cart/styles}/cart.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/checkout → checkout/styles}/checkout.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product → product/styles}/image-carousel.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product → product/styles}/product.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product → product/styles}/retailers.style.d.ts +0 -0
- /package/dist/types/modules/product-list/components/{product-list-retailers.d.ts → product-list-retailers.component.d.ts} +0 -0
- /package/dist/types/modules/{theme-provider/styles/product-list → product-list/styles}/product-list.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/drawer.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/loading.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/modal.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/promo-code-ticker.style.d.ts +0 -0
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import '@/modules/theme-provider/styles/register-styles';
|
|
2
|
+
import '@/modules/address/styles/register-styles';
|
|
3
|
+
import '@/modules/cart/styles/register-styles';
|
|
4
|
+
import '@/modules/checkout/styles/register-styles';
|
|
5
|
+
import '@/modules/product/styles/register-styles';
|
|
6
|
+
import '@/modules/product-list/styles/register-styles';
|
|
1
7
|
import { ApiClientService } from '@/core/api/api-client.service';
|
|
2
8
|
import { AuthClientService } from '@/core/api/auth-client.service';
|
|
3
9
|
import { ClientActionService } from '@/core/client/client-action.service';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { ICheckoutDetailsEventData } from '@/core/pubsub/interfaces/checkout.interface';
|
|
2
2
|
import type { IInjectedComponent, ILiquidCommerceElementsCheckoutClientConfig } from '@/interfaces/core.interface';
|
|
3
|
+
import '@/modules/theme-provider/styles/register-styles';
|
|
4
|
+
import '@/modules/checkout/styles/register-styles';
|
|
3
5
|
import type { BillingFieldName, CustomerFieldName, GiftFieldName } from '@/modules/checkout/constant';
|
|
4
6
|
export interface IElementsCheckoutActions {
|
|
5
7
|
applyPromoCode: (promoCode: string) => Promise<void>;
|
|
@@ -99,6 +99,7 @@ export declare const COMPONENT_TYPE: {
|
|
|
99
99
|
readonly PRODUCT_LIST_SEARCH: "product-list-search";
|
|
100
100
|
readonly PRODUCT_LIST_CARD_LOADING: "product-list-card-loading";
|
|
101
101
|
readonly PRODUCT_LIST_RETAILERS: "product-list-retailers";
|
|
102
|
+
readonly PRODUCT_LIST_ENGRAVING_FORM: "product-list-engraving-form";
|
|
102
103
|
readonly CART: "cart";
|
|
103
104
|
readonly CART_RETAILER: "cart-retailer";
|
|
104
105
|
readonly CART_ITEM: "cart-item";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/modules/product-list/components/card-components/product-fulfillments.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import type { IProductFulfillmentStore } from 'core/store/interfaces/product.interface';
|
|
2
|
-
import { type FulfillmentType } from '@/enums';
|
|
3
2
|
export interface IFulfillmentSectionParams {
|
|
4
3
|
shippingVariants: Record<string, IProductFulfillmentStore>;
|
|
5
4
|
onDemandVariants: Record<string, IProductFulfillmentStore>;
|
|
6
5
|
enableShippingFulfillment: boolean;
|
|
7
6
|
enableOnDemandFulfillment: boolean;
|
|
8
|
-
selectedFulfillmentType: FulfillmentType;
|
|
9
|
-
selectedFulfillmentRetailerName: string;
|
|
10
7
|
productId: string;
|
|
11
8
|
onDeliveryOptionsClick: (productId: string) => void | Promise<void>;
|
|
12
9
|
}
|
|
@@ -2,6 +2,7 @@ export * from '../product-list-card.component';
|
|
|
2
2
|
export * from './filter-components';
|
|
3
3
|
export * from './filter-components/product-list-apply-filter-button';
|
|
4
4
|
export * from './product-list-card-loading.component';
|
|
5
|
+
export * from './product-list-engraving.component';
|
|
5
6
|
export * from './product-list-filters.component';
|
|
6
|
-
export * from './product-list-retailers';
|
|
7
|
+
export * from './product-list-retailers.component';
|
|
7
8
|
export * from './product-list-search.component';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseComponent } from 'core/base-component.service';
|
|
2
|
+
import type { IEngravingFormComponentParams } from 'modules/ui-components/engraving';
|
|
3
|
+
export declare class ProductListEngravingComponent extends BaseComponent<IEngravingFormComponentParams> {
|
|
4
|
+
protected template(): HTMLElement;
|
|
5
|
+
private createHeader;
|
|
6
|
+
}
|
|
@@ -7,7 +7,6 @@ export declare class ProductListFiltersComponent extends BaseComponent<IProductL
|
|
|
7
7
|
private readonly DEFAULT_MIN_PRICE;
|
|
8
8
|
private readonly DEFAULT_MAX_PRICE;
|
|
9
9
|
private readonly FILTER_DEBOUNCE_DELAY_MS;
|
|
10
|
-
private readonly DESKTOP_BREAKPOINT;
|
|
11
10
|
private isRenderedInDrawerMode;
|
|
12
11
|
private permanentFilters;
|
|
13
12
|
private availableDynamicFilters;
|
|
@@ -11,11 +11,10 @@ export interface IProductListCardParams {
|
|
|
11
11
|
export declare class ProductListCardComponent extends BaseComponent<IProductListCardParams, IProductListComponent> {
|
|
12
12
|
private selectedSize;
|
|
13
13
|
private unsubscribeFromState?;
|
|
14
|
-
private readonly DESKTOP_BREAKPOINT;
|
|
15
14
|
constructor();
|
|
16
15
|
get hostClasses(): string[];
|
|
17
16
|
protected connected(): Promise<void>;
|
|
18
|
-
|
|
17
|
+
disconnected(): void;
|
|
19
18
|
private reRender;
|
|
20
19
|
private getAvailabilityData;
|
|
21
20
|
private isPresaleActive;
|
|
@@ -31,5 +30,6 @@ export declare class ProductListCardComponent extends BaseComponent<IProductList
|
|
|
31
30
|
private createSizesSection;
|
|
32
31
|
private handleDeliveryOptionsClick;
|
|
33
32
|
private createFulfillmentSectionWrapper;
|
|
33
|
+
createFulfillmentTextSection(selectedFulfillmentType: string, selectedFulfillmentRetailerName: string): HTMLElement;
|
|
34
34
|
private createAddToCartSection;
|
|
35
35
|
}
|
|
@@ -19,7 +19,7 @@ export declare class ProductListComponent extends BaseComponent<IProductListComp
|
|
|
19
19
|
get hostClasses(): string[];
|
|
20
20
|
constructor();
|
|
21
21
|
protected connected(): Promise<void>;
|
|
22
|
-
|
|
22
|
+
disconnected(): void;
|
|
23
23
|
private initializeComponent;
|
|
24
24
|
private handleStateUpdate;
|
|
25
25
|
private updateLoadingState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getProductListCardStyles: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getProductListFiltersStyles: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StylesheetType } from '../constants/css-variable-mappings';
|
|
2
|
+
export type StyleGetter = () => string;
|
|
3
|
+
declare class StyleRegistryService {
|
|
4
|
+
private static instance;
|
|
5
|
+
private registry;
|
|
6
|
+
private constructor();
|
|
7
|
+
static getInstance(): StyleRegistryService;
|
|
8
|
+
register(type: StylesheetType, getter: StyleGetter, priority?: number): void;
|
|
9
|
+
getStyleGetters(type: StylesheetType): StyleGetter[];
|
|
10
|
+
getStyles(type: StylesheetType): string[];
|
|
11
|
+
hasStyles(type: StylesheetType): boolean;
|
|
12
|
+
getRegisteredTypes(): StylesheetType[];
|
|
13
|
+
clear(): void;
|
|
14
|
+
}
|
|
15
|
+
export declare const styleRegistry: StyleRegistryService;
|
|
16
|
+
export { StyleRegistryService };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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' | 'product-list';
|
|
5
5
|
lines: string[];
|
|
6
6
|
maxLines: number;
|
|
7
7
|
maxCharsPerLine: number;
|
|
@@ -20,6 +20,7 @@ export declare class EngravingFormComponent extends BaseComponent<IEngravingForm
|
|
|
20
20
|
private calculateTotalPrice;
|
|
21
21
|
private productInformationSection;
|
|
22
22
|
private addToCartButtonText;
|
|
23
|
+
private getFulfillmentData;
|
|
23
24
|
private retailersSection;
|
|
24
25
|
private engravingLinesSection;
|
|
25
26
|
private actionButtonsSection;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
|
|
2
2
|
export declare class ModalComponent extends BaseComponent {
|
|
3
3
|
private isOpen;
|
|
4
|
+
private wrapperElement;
|
|
4
5
|
private modalElement;
|
|
6
|
+
private backdropElement;
|
|
5
7
|
private contentContainer;
|
|
6
8
|
private currentContentType;
|
|
7
9
|
private readonly boundHandleKeydown;
|
|
@@ -12,10 +14,10 @@ export declare class ModalComponent extends BaseComponent {
|
|
|
12
14
|
private open;
|
|
13
15
|
private close;
|
|
14
16
|
private cleanupCurrentContent;
|
|
15
|
-
private handleCancel;
|
|
16
17
|
private handleBackdropClick;
|
|
17
18
|
private handleKeydown;
|
|
18
19
|
private updateModalContentTypeClass;
|
|
20
|
+
private updateModalState;
|
|
19
21
|
private isElementsEnabled;
|
|
20
22
|
protected template(): HTMLElement;
|
|
21
23
|
}
|
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.34",
|
|
7
7
|
"homepage": "https://docs.liquidcommerce.co/elements-sdk",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -55,15 +55,16 @@
|
|
|
55
55
|
],
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "rollup -c",
|
|
58
|
+
"build:checkout": "rollup -c rollup.config.checkout.mjs",
|
|
58
59
|
"build:dev": "rollup -c --environment NODE_ENV:development",
|
|
59
60
|
"dev": "rollup -c -w",
|
|
60
61
|
"type-check": "tsc --noEmit",
|
|
61
62
|
"lint": "pnpm biome lint --write",
|
|
62
63
|
"format": "biome format --write",
|
|
63
64
|
"check": "pnpm biome check --write .",
|
|
64
|
-
"fl": "pnpm check && pnpm build:
|
|
65
|
+
"fl": "pnpm check && pnpm build && pnpm build:checkout",
|
|
65
66
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
|
66
|
-
"clean": "rm -rf dist umd node_modules && pnpm install && pnpm build",
|
|
67
|
+
"clean": "rm -rf dist umd node_modules && pnpm install && pnpm build && pnpm build:checkout",
|
|
67
68
|
"prepublishOnly": "pnpm run build",
|
|
68
69
|
"deprecate:old": "npm deprecate @liquidcommerceteam/elements-sdk@\"*\" \"Package moved to @liquidcommerce/elements-sdk\"",
|
|
69
70
|
"prepare": "husky"
|