@liquidcommerce/elements-sdk 2.6.0-beta.94 → 2.6.0-beta.95
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.checkout.esm.js +7834 -7121
- package/dist/index.esm.js +12809 -11594
- package/dist/types/core/a11y/announcer.service.d.ts +16 -0
- package/dist/types/core/a11y/focus-manager.service.d.ts +21 -0
- package/dist/types/core/a11y/focusable.d.ts +5 -0
- package/dist/types/core/a11y/index.d.ts +3 -0
- package/dist/types/core/base-component.service.d.ts +2 -0
- package/dist/types/interfaces/configs/global.interface.d.ts +2 -0
- package/dist/types/modules/address/address-input.component.d.ts +10 -1
- package/dist/types/modules/cart/components/cart-body.component.d.ts +1 -0
- package/dist/types/modules/cart/components/cart-item-quantity-price.component.d.ts +5 -0
- package/dist/types/modules/cart/components/cart-item.component.d.ts +6 -0
- package/dist/types/modules/checkout/components/checkout-completed.component.d.ts +2 -0
- package/dist/types/modules/checkout/components/checkout-item-quantity.component.d.ts +1 -0
- package/dist/types/modules/checkout/components/checkout-payment.component.d.ts +1 -0
- package/dist/types/modules/checkout/components/checkout-place-order-button.component.d.ts +2 -0
- package/dist/types/modules/product/components/product-drawer.component.d.ts +6 -0
- package/dist/types/modules/product/product.commands.d.ts +2 -2
- package/dist/types/modules/product-list/components/card-components/product-price-and-personalization.d.ts +2 -1
- package/dist/types/modules/product-list/components/card-components/product-sizes-list.d.ts +1 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-fulfillment-filter.d.ts +1 -0
- package/dist/types/modules/product-list/components/product-list-filters.component.d.ts +1 -0
- package/dist/types/modules/product-list/components/product-list-product-pre-cart.component.d.ts +2 -0
- package/dist/types/modules/product-list/product-list.commands.d.ts +1 -1
- package/dist/types/modules/product-list/product-list.component.d.ts +3 -0
- package/dist/types/modules/ui-components/alert/alert.component.d.ts +1 -1
- package/dist/types/modules/ui-components/buttons/buttons-open-cart.component.d.ts +5 -0
- package/dist/types/modules/ui-components/drawer/drawer.component.d.ts +14 -0
- package/dist/types/modules/ui-components/engraving/engraving-form.component.d.ts +2 -0
- package/dist/types/modules/ui-components/engraving/engraving-view.component.d.ts +1 -0
- package/dist/types/modules/ui-components/input/input.component.d.ts +4 -0
- package/dist/types/modules/ui-components/ui.commands.d.ts +3 -1
- package/package.json +43 -14
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type AnnouncementPoliteness = 'polite' | 'assertive';
|
|
2
|
+
export declare class AnnouncerService {
|
|
3
|
+
private politeRegion;
|
|
4
|
+
private assertiveRegion;
|
|
5
|
+
private pendingTimeouts;
|
|
6
|
+
private readonly queues;
|
|
7
|
+
private readonly draining;
|
|
8
|
+
private lastMessage;
|
|
9
|
+
private lastMessageAt;
|
|
10
|
+
static getInstance(): AnnouncerService;
|
|
11
|
+
announce(message: string, politeness?: AnnouncementPoliteness): void;
|
|
12
|
+
private drain;
|
|
13
|
+
clear(): void;
|
|
14
|
+
destroy(): void;
|
|
15
|
+
private ensureRegion;
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const A11Y_PERSIST_ATTRIBUTE = "data-lce-a11y-persist";
|
|
2
|
+
export type FocusScope = 'drawer' | 'product-drawer';
|
|
3
|
+
export declare class FocusManagerService {
|
|
4
|
+
private readonly triggerStacks;
|
|
5
|
+
private hiddenBackground;
|
|
6
|
+
static getInstance(): FocusManagerService;
|
|
7
|
+
captureTrigger(scope: FocusScope, trigger?: Element | null, fallback?: () => HTMLElement | null): void;
|
|
8
|
+
restoreFocus(scope: FocusScope): boolean;
|
|
9
|
+
releaseTrigger(scope: FocusScope): void;
|
|
10
|
+
hasTrigger(scope: FocusScope): boolean;
|
|
11
|
+
hasRestorableTrigger(scope: FocusScope): boolean;
|
|
12
|
+
private resolveTrigger;
|
|
13
|
+
focusInitial(container: HTMLElement, preferredSelector?: string): boolean;
|
|
14
|
+
restoreFocusWhenReady(root: ParentNode, selector: string, maxFrames?: number): () => void;
|
|
15
|
+
containsFocus(container: HTMLElement): boolean;
|
|
16
|
+
trapFocus(container: HTMLElement): () => void;
|
|
17
|
+
private getDeepActiveElement;
|
|
18
|
+
hideBackground(overlayRoot: Element | null): void;
|
|
19
|
+
showBackground(): void;
|
|
20
|
+
destroy(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function isVisible(element: HTMLElement): boolean;
|
|
2
|
+
export declare function isFocusable(element: HTMLElement, root?: ParentNode): boolean;
|
|
3
|
+
export declare function getFocusableElements(root: ParentNode): HTMLElement[];
|
|
4
|
+
export declare function isFocusTarget(element: HTMLElement): boolean;
|
|
5
|
+
export declare function safeFocus(element: HTMLElement | null | undefined): boolean;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { type AnnouncementPoliteness, AnnouncerService } from '@/core/a11y/announcer.service';
|
|
2
|
+
export { A11Y_PERSIST_ATTRIBUTE, FocusManagerService } from '@/core/a11y/focus-manager.service';
|
|
3
|
+
export { getFocusableElements, isFocusable, isVisible, safeFocus } from '@/core/a11y/focusable';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AnnouncerService } from '@/core/a11y';
|
|
1
2
|
import { ClientConfigService } from '@/core/client/client-config.service';
|
|
2
3
|
import { LoggerFactory } from '@/core/logger/logger-factory';
|
|
3
4
|
import { PubSubService } from '@/core/pubsub/pubsub.service';
|
|
@@ -34,6 +35,7 @@ export declare abstract class BaseComponent<TParams = Record<string, any>, TConf
|
|
|
34
35
|
protected readonly logger: ReturnType<typeof LoggerFactory.get>;
|
|
35
36
|
protected readonly clientConfig: ClientConfigService;
|
|
36
37
|
protected readonly telemetry: TelemetryService;
|
|
38
|
+
protected readonly announcer: AnnouncerService;
|
|
37
39
|
private initialized;
|
|
38
40
|
private isDestroyed;
|
|
39
41
|
private renderScheduled;
|
|
@@ -25,10 +25,19 @@ export declare class AddressInputComponent extends BaseComponent<IAddressInputCo
|
|
|
25
25
|
private handleCancel;
|
|
26
26
|
private handleCheckAvailability;
|
|
27
27
|
private handleSuggestionClick;
|
|
28
|
-
private
|
|
28
|
+
private suggestionsStatus;
|
|
29
|
+
private activeSuggestionIndex;
|
|
30
|
+
private handleRootClick;
|
|
31
|
+
private handleFocusOut;
|
|
29
32
|
private searchAddresses;
|
|
30
33
|
private updateErrorDisplay;
|
|
31
34
|
private updateSuggestionsDisplay;
|
|
35
|
+
private updateSuggestionsStatus;
|
|
36
|
+
private getSuggestionOptions;
|
|
37
|
+
private moveActiveSuggestion;
|
|
38
|
+
private setActiveSuggestion;
|
|
39
|
+
private isSuggestionListOpen;
|
|
40
|
+
private handleComboboxKeydown;
|
|
32
41
|
private showSuggestions;
|
|
33
42
|
private hideSuggestions;
|
|
34
43
|
private createElement;
|
|
@@ -10,6 +10,7 @@ export declare class CartBodyComponent extends BaseComponent<null, ICartComponen
|
|
|
10
10
|
private getRetailerElementById;
|
|
11
11
|
private getLoadingElement;
|
|
12
12
|
private showEmptyCartState;
|
|
13
|
+
private preserveDialogFocus;
|
|
13
14
|
private addLoadingOverlay;
|
|
14
15
|
private removeLoadingOverlay;
|
|
15
16
|
private setupEmptyCartListeners;
|
|
@@ -7,14 +7,19 @@ export declare class CartItemQuantityPriceComponent extends BaseComponent<ICartI
|
|
|
7
7
|
private qtyIncreaseButton;
|
|
8
8
|
private qtyDecreaseButton;
|
|
9
9
|
private quantitySpan;
|
|
10
|
+
private priceElement;
|
|
11
|
+
private unitPriceElement;
|
|
10
12
|
get hostClasses(): string[];
|
|
11
13
|
constructor();
|
|
14
|
+
onStoreChanged(changes: IOnStoreChanged[]): boolean;
|
|
12
15
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
13
16
|
private getItemStore;
|
|
14
17
|
private calculateQuantityLimits;
|
|
15
18
|
private getAvailableQuantity;
|
|
16
19
|
private updateButtonStates;
|
|
17
20
|
private handleQuantityChange;
|
|
21
|
+
private updatePriceText;
|
|
22
|
+
private applyUnitPrice;
|
|
18
23
|
private createQuantityContainer;
|
|
19
24
|
private createPriceContainer;
|
|
20
25
|
protected template(): HTMLElement[];
|
|
@@ -6,6 +6,12 @@ export declare class CartItemComponent extends BaseComponent<ICartItemComponentP
|
|
|
6
6
|
get hostClasses(): string[];
|
|
7
7
|
get hostAttributes(): Record<string, string>;
|
|
8
8
|
constructor();
|
|
9
|
+
private lastFocusedKey;
|
|
10
|
+
private cancelFocusRestore;
|
|
11
|
+
protected connected(): void;
|
|
12
|
+
protected disconnected(): void;
|
|
13
|
+
private readonly handleFocusIn;
|
|
14
|
+
protected afterRender(): void;
|
|
9
15
|
private handleOpenEngravingForm;
|
|
10
16
|
protected template(): HTMLElement[];
|
|
11
17
|
}
|
|
@@ -12,5 +12,7 @@ export interface ICheckoutCompletedComponentParams {
|
|
|
12
12
|
}
|
|
13
13
|
export declare class CheckoutCompletedComponent extends BaseComponent<ICheckoutCompletedComponentParams, ICheckoutComponent> {
|
|
14
14
|
get hostClasses(): string[];
|
|
15
|
+
private hasAnnouncedCompletion;
|
|
16
|
+
protected afterRender(): void;
|
|
15
17
|
protected template(): HTMLElement[];
|
|
16
18
|
}
|
|
@@ -14,6 +14,7 @@ export declare class CheckoutItemQuantityComponent extends BaseComponent<IChecko
|
|
|
14
14
|
private getProductStoreByLiquidId;
|
|
15
15
|
private getAvailableQuantity;
|
|
16
16
|
private calculateQuantityLimits;
|
|
17
|
+
private get itemName();
|
|
17
18
|
private updateButtonStates;
|
|
18
19
|
private handleQuantityChange;
|
|
19
20
|
protected template(): HTMLElement[];
|
|
@@ -21,6 +21,7 @@ export declare class CheckoutPaymentComponent extends BaseComponent<ICheckoutSen
|
|
|
21
21
|
private handleBillingSameAsShippingChange;
|
|
22
22
|
afterRender(): Promise<void>;
|
|
23
23
|
private updateSaveButtonState;
|
|
24
|
+
private lastAnnouncedPaymentError;
|
|
24
25
|
private updateErrorMessage;
|
|
25
26
|
private showError;
|
|
26
27
|
protected template(): HTMLElement[];
|
|
@@ -4,6 +4,8 @@ export declare class CheckoutPlaceOrderButtonComponent extends BaseComponent<nul
|
|
|
4
4
|
private placeOrderButton;
|
|
5
5
|
private errorContainer;
|
|
6
6
|
private errorTimeoutId;
|
|
7
|
+
private lastButtonState;
|
|
8
|
+
private lastAnnouncedError;
|
|
7
9
|
get hostClasses(): string[];
|
|
8
10
|
constructor();
|
|
9
11
|
afterRender(): void;
|
|
@@ -8,12 +8,18 @@ export declare class ProductDrawerComponent extends BaseComponent<IProductDrawer
|
|
|
8
8
|
private isOpen;
|
|
9
9
|
private contentContainer;
|
|
10
10
|
private currentContentType;
|
|
11
|
+
private focusEntryFrame;
|
|
12
|
+
private readonly focusManager;
|
|
13
|
+
private readonly boundHandleKeydown;
|
|
11
14
|
constructor();
|
|
15
|
+
private handleKeydown;
|
|
16
|
+
disconnected(): void;
|
|
12
17
|
private getProductId;
|
|
13
18
|
onStoreChanged(changes: IOnStoreChanged[]): boolean;
|
|
14
19
|
private openWithContent;
|
|
15
20
|
private open;
|
|
16
21
|
private close;
|
|
22
|
+
private moveFocusIntoPanel;
|
|
17
23
|
private updateDrawerState;
|
|
18
24
|
protected template(): HTMLElement;
|
|
19
25
|
}
|
|
@@ -19,10 +19,10 @@ export declare class ProductCommands extends BaseCommand {
|
|
|
19
19
|
updateQuantity(productId: string, delta: number): Promise<void>;
|
|
20
20
|
changeFulfillmentType(productId: string, newFulfillmentType: FulfillmentType): Promise<void>;
|
|
21
21
|
removeProduct(productId: string): Promise<void>;
|
|
22
|
-
openProductDrawer(productId: string, contentType: IProductDrawerContentConfig['type'], data?: Record<string, any
|
|
22
|
+
openProductDrawer(productId: string, contentType: IProductDrawerContentConfig['type'], data?: Record<string, any>, trigger?: HTMLElement | null): Promise<void>;
|
|
23
23
|
closeProductDrawer(productId: string): Promise<void>;
|
|
24
24
|
rerenderAllProducts(): Promise<void>;
|
|
25
|
-
addToCart(productId: string, params: AddItemParams): Promise<void>;
|
|
25
|
+
addToCart(productId: string, params: AddItemParams, trigger?: HTMLElement | null): Promise<void>;
|
|
26
26
|
addPresaleToCart(productId: string, params: AddItemParams): Promise<void>;
|
|
27
27
|
productDataForEventFromStore(identifier: string): IBaseProductEventData;
|
|
28
28
|
}
|
|
@@ -8,6 +8,7 @@ export interface IPricePersonalizationSectionParams {
|
|
|
8
8
|
priceClassName?: string;
|
|
9
9
|
personalizeClassName?: string;
|
|
10
10
|
personalizeText?: string;
|
|
11
|
+
productName?: string;
|
|
11
12
|
onPersonalizeClick?: () => void;
|
|
12
13
|
}
|
|
13
|
-
export declare const createPricePersonalizationSection: ({ price, showPrice, hasPersonalization, showPersonalization, hasAddress, wrapperClassName, priceClassName, personalizeClassName, personalizeText, onPersonalizeClick, }: IPricePersonalizationSectionParams) => HTMLElement | null;
|
|
14
|
+
export declare const createPricePersonalizationSection: ({ price, showPrice, hasPersonalization, showPersonalization, hasAddress, wrapperClassName, priceClassName, personalizeClassName, personalizeText, productName, onPersonalizeClick, }: IPricePersonalizationSectionParams) => HTMLElement | null;
|
|
@@ -7,6 +7,7 @@ export interface IProductListSizeSelectorParams {
|
|
|
7
7
|
}
|
|
8
8
|
export declare class ProductListSizeSelectorComponent extends BaseComponent<IProductListSizeSelectorParams> {
|
|
9
9
|
private onOutsideClick;
|
|
10
|
+
private readonly uid;
|
|
10
11
|
get hostClasses(): string[];
|
|
11
12
|
protected disconnected?(): void;
|
|
12
13
|
protected template(): HTMLElement[];
|
|
@@ -50,6 +50,7 @@ export declare class ProductListFiltersComponent extends BaseComponent<IProductL
|
|
|
50
50
|
private isEngravingCurrentlyDisabled;
|
|
51
51
|
private buildEngravingFilterElements;
|
|
52
52
|
private isSameDayDeliveryCurrentlyDisabled;
|
|
53
|
+
private fulfillmentFilterHeaderButton;
|
|
53
54
|
private toggleFulfillmentFilterCollapse;
|
|
54
55
|
private buildFulfillmentFilterElements;
|
|
55
56
|
private togglePriceFilterCollapse;
|
package/dist/types/modules/product-list/components/product-list-product-pre-cart.component.d.ts
CHANGED
|
@@ -19,9 +19,11 @@ export declare class ProductListProductPreCartComponent extends BaseComponent<IP
|
|
|
19
19
|
constructor();
|
|
20
20
|
private getListConfig;
|
|
21
21
|
protected connected?(): void;
|
|
22
|
+
private pendingViewFocus;
|
|
22
23
|
private handleRetailersBack;
|
|
23
24
|
private handleEngravingBack;
|
|
24
25
|
private handleEngravingEdit;
|
|
26
|
+
protected afterRender(): void;
|
|
25
27
|
protected disconnected?(): void;
|
|
26
28
|
private getSelectedSize;
|
|
27
29
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
@@ -22,7 +22,7 @@ export declare class ProductListCommands extends BaseCommand {
|
|
|
22
22
|
getItemsPerPage(slug: string): number;
|
|
23
23
|
updatePagination(navigation: INavigationResponse | undefined): IPagination;
|
|
24
24
|
createInitialPagination(): IPagination;
|
|
25
|
-
addToCart(slug: string, productId: string, params: AddItemParams): Promise<void>;
|
|
25
|
+
addToCart(slug: string, productId: string, params: AddItemParams, trigger?: HTMLElement | null): Promise<void>;
|
|
26
26
|
selectSize(slug: string, productId: string, sizeId: string): Promise<void>;
|
|
27
27
|
changeFulfillmentType: (slug: string, productId: string, newFulfillmentType: FulfillmentType) => Promise<void>;
|
|
28
28
|
selectFulfillment: (slug: string, productId: string, selectedFulfillmentId: string) => Promise<void>;
|
|
@@ -31,7 +31,10 @@ export declare class ProductListComponent extends BaseComponent<IProductListComp
|
|
|
31
31
|
private loadMoreProducts;
|
|
32
32
|
private createCardsContainer;
|
|
33
33
|
private renderLoadingState;
|
|
34
|
+
private hasRenderedProductsOnce;
|
|
35
|
+
private lastAnnouncedSentinelState;
|
|
34
36
|
private renderProducts;
|
|
37
|
+
private announceResultCount;
|
|
35
38
|
private appendNewProducts;
|
|
36
39
|
private setupInfiniteScroll;
|
|
37
40
|
private createScrollSentinel;
|
|
@@ -9,8 +9,8 @@ export interface IAlertComponentParams {
|
|
|
9
9
|
export declare class AlertComponent extends BaseComponent<IAlertComponentParams, null> {
|
|
10
10
|
private hideTimeout;
|
|
11
11
|
private elements;
|
|
12
|
+
private lastAnnouncedKey;
|
|
12
13
|
get hostClasses(): string[];
|
|
13
|
-
get hostAttributes(): Record<string, string>;
|
|
14
14
|
beforeSetupStoreWatchers(): void;
|
|
15
15
|
afterRender(): void;
|
|
16
16
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
@@ -5,7 +5,12 @@ export interface IButtonsOpenCartComponentParams {
|
|
|
5
5
|
}
|
|
6
6
|
export declare class ButtonsOpenCartComponent extends BaseComponent<IButtonsOpenCartComponentParams, null> {
|
|
7
7
|
get hostClasses(): string[];
|
|
8
|
+
private buttonElement;
|
|
9
|
+
private badgeElement;
|
|
10
|
+
private unwatchQuantity;
|
|
8
11
|
protected template(): HTMLElement[];
|
|
9
12
|
protected afterRender(): void;
|
|
13
|
+
protected disconnected(): void;
|
|
10
14
|
private setupCartBadge;
|
|
15
|
+
private applyCartQuantity;
|
|
11
16
|
}
|
|
@@ -8,7 +8,14 @@ export declare class DrawerComponent extends BaseComponent {
|
|
|
8
8
|
private currentContentType;
|
|
9
9
|
private mode;
|
|
10
10
|
private isTransitioning;
|
|
11
|
+
private readonly focusManager;
|
|
12
|
+
private releaseFocusTrap;
|
|
13
|
+
private focusEntryFrame;
|
|
14
|
+
private contentTeardownTimeout;
|
|
15
|
+
private previousBodyOverflow;
|
|
16
|
+
private pendingFocusKey;
|
|
11
17
|
private readonly boundHandleKeydown;
|
|
18
|
+
private readonly boundHandleBackdropClick;
|
|
12
19
|
constructor();
|
|
13
20
|
disconnected(): void;
|
|
14
21
|
onStoreChanged(changes: IOnStoreChanged[]): boolean;
|
|
@@ -16,6 +23,13 @@ export declare class DrawerComponent extends BaseComponent {
|
|
|
16
23
|
private animateContentSwap;
|
|
17
24
|
private open;
|
|
18
25
|
private close;
|
|
26
|
+
private applyDialogSemantics;
|
|
27
|
+
private setupOverlaySemantics;
|
|
28
|
+
private teardownOverlaySemantics;
|
|
29
|
+
private moveFocusIntoDrawer;
|
|
30
|
+
private getTopLevelHost;
|
|
31
|
+
private scheduleContentTeardown;
|
|
32
|
+
private cancelPendingContentTeardown;
|
|
19
33
|
private cleanupCurrentContent;
|
|
20
34
|
private handleBackdropClick;
|
|
21
35
|
private handleKeydown;
|
|
@@ -10,6 +10,7 @@ export interface IEngravingFormComponentParams {
|
|
|
10
10
|
fee: number;
|
|
11
11
|
location?: string;
|
|
12
12
|
displayMode?: DisplayModeType;
|
|
13
|
+
returnFocusKey?: string;
|
|
13
14
|
}
|
|
14
15
|
export declare class EngravingFormComponent extends BaseComponent<IEngravingFormComponentParams, null> {
|
|
15
16
|
get hostClasses(): string[];
|
|
@@ -26,6 +27,7 @@ export declare class EngravingFormComponent extends BaseComponent<IEngravingForm
|
|
|
26
27
|
private getFulfillmentData;
|
|
27
28
|
private retailersSection;
|
|
28
29
|
private engravingLinesSection;
|
|
30
|
+
private returnToCart;
|
|
29
31
|
private actionButtonsSection;
|
|
30
32
|
protected template(): HTMLElement[];
|
|
31
33
|
}
|
|
@@ -13,6 +13,7 @@ export declare class EngravingViewComponent extends BaseComponent<IEngravingView
|
|
|
13
13
|
private engravingQuantityFee;
|
|
14
14
|
private engravingLines;
|
|
15
15
|
private isEngravingRequired;
|
|
16
|
+
private get editFocusKey();
|
|
16
17
|
private handleEdit;
|
|
17
18
|
private handleRemove;
|
|
18
19
|
protected template(): HTMLElement | HTMLElement[] | string;
|
|
@@ -25,10 +25,14 @@ export interface IInputComponentParams {
|
|
|
25
25
|
disabled?: boolean;
|
|
26
26
|
}
|
|
27
27
|
export declare class InputComponent extends BaseComponent<IInputComponentParams, null> {
|
|
28
|
+
private readonly uid;
|
|
28
29
|
get hostClasses(): string[];
|
|
30
|
+
private get controlId();
|
|
31
|
+
private get errorContainerId();
|
|
29
32
|
private inputElement;
|
|
30
33
|
private errorContainer;
|
|
31
34
|
private validationTimeout;
|
|
35
|
+
private announceNextErrors;
|
|
32
36
|
private handlePhoneKeydown;
|
|
33
37
|
private formatPhoneNumber;
|
|
34
38
|
private formatDate;
|
|
@@ -2,10 +2,12 @@ import { BaseCommand } from '@/core/command/base-command.service';
|
|
|
2
2
|
import type { IDrawerContentConfig } from '@/core/store/interfaces/core.interface';
|
|
3
3
|
export declare class UICommands extends BaseCommand {
|
|
4
4
|
static getInstance(): UICommands;
|
|
5
|
-
openDrawer({ mode, contentType, data, }: {
|
|
5
|
+
openDrawer({ mode, contentType, data, trigger, triggerFallback, }: {
|
|
6
6
|
mode?: 'drawer' | 'modal';
|
|
7
7
|
contentType: IDrawerContentConfig['type'];
|
|
8
8
|
data?: Record<string, any>;
|
|
9
|
+
trigger?: HTMLElement | null;
|
|
10
|
+
triggerFallback?: () => HTMLElement | null;
|
|
9
11
|
}): void;
|
|
10
12
|
closeDrawer(): void;
|
|
11
13
|
}
|
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.95",
|
|
7
7
|
"homepage": "https://docs.liquidcommerce.co/elements-sdk",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"module": "./dist/index.esm.js",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
|
-
"packageManager": "pnpm@11.
|
|
17
|
+
"packageManager": "pnpm@11.18.0",
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
@@ -68,17 +68,46 @@
|
|
|
68
68
|
},
|
|
69
69
|
"keywords": [
|
|
70
70
|
"liquidcommerce",
|
|
71
|
+
"vesper",
|
|
72
|
+
"vesper-commerce",
|
|
73
|
+
"accelpay",
|
|
74
|
+
"reservebar",
|
|
75
|
+
"minibar",
|
|
71
76
|
"alcohol",
|
|
72
77
|
"beverage",
|
|
73
|
-
"alcohol tech",
|
|
74
78
|
"elements",
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
+
"alcohol-ecommerce",
|
|
80
|
+
"ecommerce",
|
|
81
|
+
"ecommerce-sdk",
|
|
82
|
+
"headless-commerce",
|
|
83
|
+
"embeddable-commerce",
|
|
84
|
+
"embeddable-components",
|
|
85
|
+
"web-components",
|
|
86
|
+
"custom-elements",
|
|
87
|
+
"shadow-dom",
|
|
88
|
+
"framework-agnostic",
|
|
89
|
+
"typescript",
|
|
90
|
+
"zero-dependencies",
|
|
91
|
+
"product-display",
|
|
92
|
+
"product-list",
|
|
93
|
+
"shopping-cart",
|
|
94
|
+
"cart-drawer",
|
|
95
|
+
"checkout",
|
|
96
|
+
"hosted-checkout",
|
|
97
|
+
"stripe",
|
|
98
|
+
"payments",
|
|
99
|
+
"promo-codes",
|
|
100
|
+
"gift-cards",
|
|
101
|
+
"address-autocomplete",
|
|
102
|
+
"delivery",
|
|
103
|
+
"shipping",
|
|
104
|
+
"pickup",
|
|
105
|
+
"presale",
|
|
106
|
+
"fulfillment",
|
|
107
|
+
"theming"
|
|
79
108
|
],
|
|
80
109
|
"devDependencies": {
|
|
81
|
-
"@biomejs/biome": "^2.5.
|
|
110
|
+
"@biomejs/biome": "^2.5.6",
|
|
82
111
|
"@commitlint/cli": "^21.2.1",
|
|
83
112
|
"@commitlint/config-conventional": "^21.2.0",
|
|
84
113
|
"@rollup/plugin-alias": "^6.0.0",
|
|
@@ -87,21 +116,21 @@
|
|
|
87
116
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
88
117
|
"@rollup/plugin-replace": "^6.0.3",
|
|
89
118
|
"@rollup/plugin-terser": "^1.0.0",
|
|
90
|
-
"@semantic-release/changelog": "^
|
|
119
|
+
"@semantic-release/changelog": "^7.0.0",
|
|
91
120
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
92
|
-
"@semantic-release/git": "^
|
|
121
|
+
"@semantic-release/git": "^11.0.1",
|
|
93
122
|
"@semantic-release/github": "^12.0.9",
|
|
94
123
|
"@semantic-release/npm": "^13.1.5",
|
|
95
124
|
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
96
125
|
"@types/core-js": "^2.5.8",
|
|
97
|
-
"@types/node": "^26.1.
|
|
98
|
-
"conventional-changelog": "8.0
|
|
126
|
+
"@types/node": "^26.1.2",
|
|
127
|
+
"conventional-changelog": "8.1.0",
|
|
99
128
|
"husky": "^9.1.7",
|
|
100
129
|
"process": "^0.11.10",
|
|
101
|
-
"rollup": "^4.62.
|
|
130
|
+
"rollup": "^4.62.3",
|
|
102
131
|
"rollup-obfuscator": "^4.1.1",
|
|
103
132
|
"rollup-plugin-typescript2": "^0.37.0",
|
|
104
|
-
"semantic-release": "^25.0.
|
|
133
|
+
"semantic-release": "^25.0.8",
|
|
105
134
|
"ts-node": "^10.9.2",
|
|
106
135
|
"typescript": "6.0.3"
|
|
107
136
|
},
|