@liquidcommerce/elements-sdk 2.5.6-beta.2 → 2.5.6-beta.21
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/README.md +99 -25
- package/dist/index.esm.js +13044 -11746
- package/dist/types/constants/core.constant.d.ts +0 -1
- package/dist/types/core/{api-client.service.d.ts → api/api-client.service.d.ts} +3 -3
- package/dist/types/core/{auth.service.d.ts → api/auth-client.service.d.ts} +2 -3
- package/dist/types/core/api/http-client.service.d.ts +45 -0
- package/dist/types/core/client/client-action.service.d.ts +0 -4
- package/dist/types/core/client/client-config.service.d.ts +8 -0
- package/dist/types/core/command/base-command.service.d.ts +1 -1
- package/dist/types/core/fingerprint.service.d.ts +2 -1
- package/dist/types/core/google-tag-manager.service.d.ts +3 -20
- package/dist/types/core/logger/logger.service.d.ts +0 -2
- package/dist/types/core/pubsub/interfaces/cart.interface.d.ts +0 -2
- package/dist/types/core/pubsub/interfaces/checkout.interface.d.ts +0 -10
- package/dist/types/core/pubsub/interfaces/core.interface.d.ts +14 -8
- package/dist/types/core/pubsub/interfaces/product.interface.d.ts +0 -6
- package/dist/types/core/singleton-manager.service.d.ts +6 -1
- package/dist/types/core/store/interfaces/checkout.interface.d.ts +77 -80
- package/dist/types/core/store/interfaces/core.interface.d.ts +2 -2
- package/dist/types/core/store/store.constant.d.ts +1 -1
- package/dist/types/core/telemetry/telemetry.interface.d.ts +1 -1
- package/dist/types/core/telemetry/telemetry.service.d.ts +1 -0
- package/dist/types/elements-base-client.d.ts +3 -4
- package/dist/types/enums/core.enum.d.ts +15 -11
- package/dist/types/interfaces/cloud/checkout.interface.d.ts +1 -1
- package/dist/types/interfaces/configs/checkout.interface.d.ts +0 -1
- package/dist/types/interfaces/core.interface.d.ts +13 -7
- package/dist/types/modules/cart/components/cart-retailer.component.d.ts +0 -2
- package/dist/types/modules/checkout/checkout.commands.d.ts +28 -25
- package/dist/types/modules/checkout/components/checkout-billing.component.d.ts +14 -0
- package/dist/types/modules/checkout/components/checkout-buyer-summary.component.d.ts +7 -0
- package/dist/types/modules/checkout/components/{checkout-information-section.component.d.ts → checkout-buyer.component.d.ts} +5 -5
- package/dist/types/modules/checkout/components/checkout-deliver-to-summary.component.d.ts +7 -0
- package/dist/types/modules/checkout/components/checkout-deliver-to.component.d.ts +13 -0
- package/dist/types/modules/checkout/components/checkout-information.component.d.ts +17 -0
- package/dist/types/modules/checkout/components/{checkout-summary-section.component.d.ts → checkout-order-summary.component.d.ts} +1 -1
- package/dist/types/modules/checkout/components/checkout-payment-summary.component.d.ts +7 -0
- package/dist/types/modules/checkout/components/checkout-payment.component.d.ts +30 -0
- package/dist/types/modules/checkout/components/{summary/checkout-place-order-button.component.d.ts → checkout-place-order-button.component.d.ts} +1 -5
- package/dist/types/modules/checkout/components/checkout-send-as-gift.component.d.ts +7 -0
- package/dist/types/modules/checkout/components/{information/checkout-stripe-form.component.d.ts → checkout-stripe-form.component.d.ts} +5 -3
- package/dist/types/modules/checkout/components/checkout-stripe-handler.component.d.ts +50 -0
- package/dist/types/modules/checkout/components/index.d.ts +23 -18
- package/dist/types/modules/checkout/constant.d.ts +0 -1
- package/dist/types/modules/product/components/components.d.ts +1 -1
- package/dist/types/modules/product/utils/helpers.d.ts +0 -7
- package/dist/types/modules/ui-components/input/birthdate-input.component.d.ts +6 -4
- package/dist/types/modules/ui-components/input/input.component.d.ts +4 -4
- package/dist/types/modules/ui-components/purchase-min-alert/helpers.d.ts +3 -4
- package/docs/ACTIONS.md +29 -29
- package/docs/CONFIGURATION.md +20 -1
- package/docs/EVENTS.md +62 -29
- package/docs/THEMING.md +2 -5
- package/package.json +8 -8
- package/umd/elements.js +1 -1
- package/dist/types/core/utils.d.ts +0 -23
- package/dist/types/modules/checkout/checkout.commands.helper.d.ts +0 -13
- package/dist/types/modules/checkout/components/information/checkout-billing-form.component.d.ts +0 -18
- package/dist/types/modules/checkout/components/information/checkout-buyer-information-form.component.d.ts +0 -12
- package/dist/types/modules/checkout/components/information/checkout-delivery-information-form.component.d.ts +0 -17
- package/dist/types/modules/checkout/components/information/checkout-payment-form.component.d.ts +0 -21
- package/dist/types/modules/product/utils/index.d.ts +0 -2
- /package/dist/types/modules/checkout/components/{summary/checkout-amounts.component.d.ts → checkout-amounts.component.d.ts} +0 -0
- /package/dist/types/modules/checkout/components/{summary/checkout-completed.component.d.ts → checkout-completed.component.d.ts} +0 -0
- /package/dist/types/modules/checkout/components/{summary/checkout-gift-cards.component.d.ts → checkout-gift-cards.component.d.ts} +0 -0
- /package/dist/types/modules/checkout/components/{summary/checkout-item-quantity.component.d.ts → checkout-item-quantity.component.d.ts} +0 -0
- /package/dist/types/modules/checkout/components/{summary/checkout-item.component.d.ts → checkout-item.component.d.ts} +0 -0
- /package/dist/types/modules/checkout/components/{summary/checkout-items.component.d.ts → checkout-items.component.d.ts} +0 -0
- /package/dist/types/modules/checkout/components/{summary/checkout-presale-expired.component.d.ts → checkout-presale-expired.component.d.ts} +0 -0
- /package/dist/types/modules/checkout/components/{summary/checkout-promo-code.component.d.ts → checkout-promo-code.component.d.ts} +0 -0
- /package/dist/types/modules/checkout/components/{summary/checkout-tips.component.d.ts → checkout-tips.component.d.ts} +0 -0
- /package/dist/types/modules/checkout/components/{summary/promo-pc-gc.component.d.ts → promo-pc-gc.component.d.ts} +0 -0
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export type FetchFunction = typeof fetch;
|
|
2
|
-
export interface IHttpClientOptions {
|
|
3
|
-
method: string;
|
|
4
|
-
headers: Record<string, string>;
|
|
5
|
-
body?: string;
|
|
6
|
-
}
|
|
7
|
-
export type HttpClient = (url: string, options: IHttpClientOptions) => Promise<ICustomResponse>;
|
|
8
|
-
export interface IRequestOptions {
|
|
9
|
-
method: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
10
|
-
headers?: Record<string, string>;
|
|
11
|
-
body?: any;
|
|
12
|
-
}
|
|
13
|
-
export interface ICustomResponse {
|
|
14
|
-
ok: boolean;
|
|
15
|
-
status: number;
|
|
16
|
-
statusText: string;
|
|
17
|
-
headers: Record<string, string>;
|
|
18
|
-
json: () => Promise<any>;
|
|
19
|
-
text: () => Promise<string>;
|
|
20
|
-
}
|
|
21
|
-
export declare function fetchAdapter(fetchFunc: FetchFunction): HttpClient;
|
|
22
|
-
export declare const xhrFetch: HttpClient;
|
|
23
|
-
export declare function getFetchImplementation(): HttpClient;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ICheckoutBillingStore, ICheckoutCustomerStore, ICheckoutGiftRecipientStore } from '@/core/store/interfaces/checkout.interface';
|
|
2
|
-
export declare function validateCustomerInfo(customer: ICheckoutCustomerStore): {
|
|
3
|
-
isValid: boolean;
|
|
4
|
-
invalidFields: string[];
|
|
5
|
-
};
|
|
6
|
-
export declare function validateGiftRecipientInfo(giftInfo: ICheckoutGiftRecipientStore): {
|
|
7
|
-
isValid: boolean;
|
|
8
|
-
invalidFields: string[];
|
|
9
|
-
};
|
|
10
|
-
export declare function validateBillingInfo(billingInfo: ICheckoutBillingStore | null): {
|
|
11
|
-
isValid: boolean;
|
|
12
|
-
invalidFields: string[];
|
|
13
|
-
};
|
package/dist/types/modules/checkout/components/information/checkout-billing-form.component.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
-
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
3
|
-
export declare class CheckoutBillingFormComponent extends BaseComponent<null, ICheckoutComponent> {
|
|
4
|
-
get hostClasses(): string[];
|
|
5
|
-
constructor();
|
|
6
|
-
private handleFirstNameChange;
|
|
7
|
-
private handleLastNameChange;
|
|
8
|
-
private handleEmailChange;
|
|
9
|
-
private handlePhoneChange;
|
|
10
|
-
private handleCompanyChange;
|
|
11
|
-
private handleAddressOneChange;
|
|
12
|
-
private handleAddressTwoChange;
|
|
13
|
-
private handleCityChange;
|
|
14
|
-
private handleStateChange;
|
|
15
|
-
private handleZipCodeChange;
|
|
16
|
-
private billingSameAsShippingToggle;
|
|
17
|
-
protected template(): HTMLElement[];
|
|
18
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
-
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
3
|
-
export declare class CheckoutBuyerInformationComponent extends BaseComponent<null, ICheckoutComponent> {
|
|
4
|
-
get hostClasses(): string[];
|
|
5
|
-
private handleFirstNameChange;
|
|
6
|
-
private handleLastNameChange;
|
|
7
|
-
private handleEmailChange;
|
|
8
|
-
private handlePhoneChange;
|
|
9
|
-
private handleCompanyChange;
|
|
10
|
-
private handleDobChange;
|
|
11
|
-
protected template(): HTMLElement[];
|
|
12
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
-
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
3
|
-
export declare class CheckoutDeliveryInformationComponent extends BaseComponent<null, ICheckoutComponent> {
|
|
4
|
-
get hostClasses(): string[];
|
|
5
|
-
constructor();
|
|
6
|
-
private hasOnDemandFulfillments;
|
|
7
|
-
private handleDeliveryInstructionsChange;
|
|
8
|
-
private handleFirstNameChange;
|
|
9
|
-
private handleLastNameChange;
|
|
10
|
-
private handleEmailChange;
|
|
11
|
-
private handlePhoneChange;
|
|
12
|
-
private handleAddressTwoChange;
|
|
13
|
-
private handleCompanyChange;
|
|
14
|
-
private handleBirthdateChange;
|
|
15
|
-
private handleGiftMessageChange;
|
|
16
|
-
protected template(): HTMLElement[];
|
|
17
|
-
}
|
package/dist/types/modules/checkout/components/information/checkout-payment-form.component.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
|
|
2
|
-
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
3
|
-
export interface ICheckoutSendToFormComponentParams {
|
|
4
|
-
isIndependentComponent: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare class CheckoutPaymentFormComponent extends BaseComponent<ICheckoutSendToFormComponentParams, ICheckoutComponent> {
|
|
7
|
-
private stripeFormElement;
|
|
8
|
-
private rootComponent;
|
|
9
|
-
private isCreatingStripeForm;
|
|
10
|
-
get hostClasses(): string[];
|
|
11
|
-
constructor();
|
|
12
|
-
private findRootComponent;
|
|
13
|
-
private removeExistingStripeForm;
|
|
14
|
-
private doStripeConfig;
|
|
15
|
-
private createAndMountStripeForm;
|
|
16
|
-
afterRender(): Promise<void>;
|
|
17
|
-
private setupStripeFormEventListeners;
|
|
18
|
-
onStoreChanged(changes: IOnStoreChanged[]): boolean;
|
|
19
|
-
disconnected(): void;
|
|
20
|
-
protected template(): HTMLElement[];
|
|
21
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|