@bigcommerce/checkout-sdk 1.405.1 → 1.405.2
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/checkout-button.js +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-sdk.d.ts +12 -12
- package/dist/checkout-sdk.js +1 -1
- package/dist/checkout-sdk.js.map +1 -1
- package/dist/checkout-sdk.umd.js +1 -1
- package/dist/checkout-sdk.umd.js.map +1 -1
- package/dist/extension.js.map +1 -1
- package/dist/extension.umd.js.map +1 -1
- package/docs/README.md +13 -13
- package/docs/classes/CheckoutService.md +37 -37
- package/docs/enums/ExtensionCommandType.md +29 -0
- package/docs/interfaces/ReloadCheckoutCommand.md +28 -0
- package/docs/interfaces/SetIframeStyleCommand.md +29 -0
- package/docs/interfaces/{ShowLoadingIndicatorEvent.md → ShowLoadingIndicatorCommand.md} +5 -5
- package/package.json +1 -1
- package/docs/enums/ExtensionCommand.md +0 -29
- package/docs/interfaces/ReloadCheckoutEvent.md +0 -28
- package/docs/interfaces/SetIframeStylePayload.md +0 -29
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -3450,7 +3450,7 @@ declare class CheckoutService {
|
|
|
3450
3450
|
* @param handler - The handler function for the extension command.
|
|
3451
3451
|
* @returns A function that, when called, will deregister the command handler.
|
|
3452
3452
|
*/
|
|
3453
|
-
|
|
3453
|
+
handleExtensionCommand(extensionId: string, command: ExtensionCommandType, handler: ExtensionCommandHandler): () => void;
|
|
3454
3454
|
/**
|
|
3455
3455
|
* Dispatches an action through the data store and returns the current state
|
|
3456
3456
|
* once the action is dispatched.
|
|
@@ -4982,16 +4982,16 @@ declare interface Extension {
|
|
|
4982
4982
|
url: string;
|
|
4983
4983
|
}
|
|
4984
4984
|
|
|
4985
|
-
declare
|
|
4985
|
+
declare type ExtensionCommand = ReloadCheckoutCommand | ShowLoadingIndicatorCommand | SetIframeStyleCommand;
|
|
4986
|
+
|
|
4987
|
+
declare type ExtensionCommandHandler = (data: ExtensionCommand) => void;
|
|
4988
|
+
|
|
4989
|
+
declare const enum ExtensionCommandType {
|
|
4986
4990
|
ReloadCheckout = "RELOAD_CHECKOUT",
|
|
4987
4991
|
ShowLoadingIndicator = "SHOW_LOADING_INDICATOR",
|
|
4988
4992
|
SetIframeStyle = "SET_IFRAME_STYLE"
|
|
4989
4993
|
}
|
|
4990
4994
|
|
|
4991
|
-
declare type ExtensionCommandHandler = (data: ExtensionOriginEvent) => void;
|
|
4992
|
-
|
|
4993
|
-
declare type ExtensionOriginEvent = ReloadCheckoutEvent | ShowLoadingIndicatorEvent | SetIframeStylePayload;
|
|
4994
|
-
|
|
4995
4995
|
declare const enum ExtensionRegion {
|
|
4996
4996
|
ShippingShippingAddressFormBefore = "shipping.shippingAddressForm.before",
|
|
4997
4997
|
ShippingShippingAddressFormAfter = "shipping.shippingAddressForm.after"
|
|
@@ -6983,8 +6983,8 @@ declare interface Region {
|
|
|
6983
6983
|
name: string;
|
|
6984
6984
|
}
|
|
6985
6985
|
|
|
6986
|
-
declare interface
|
|
6987
|
-
type:
|
|
6986
|
+
declare interface ReloadCheckoutCommand {
|
|
6987
|
+
type: ExtensionCommandType.ReloadCheckout;
|
|
6988
6988
|
payload: {
|
|
6989
6989
|
extensionId: string;
|
|
6990
6990
|
};
|
|
@@ -7044,8 +7044,8 @@ declare interface SepaPlaceHolder_2 {
|
|
|
7044
7044
|
ibanNumber?: string;
|
|
7045
7045
|
}
|
|
7046
7046
|
|
|
7047
|
-
declare interface
|
|
7048
|
-
type:
|
|
7047
|
+
declare interface SetIframeStyleCommand {
|
|
7048
|
+
type: ExtensionCommandType.SetIframeStyle;
|
|
7049
7049
|
payload: {
|
|
7050
7050
|
extensionId: string;
|
|
7051
7051
|
style: {
|
|
@@ -7112,8 +7112,8 @@ declare interface ShopperCurrency extends StoreCurrency {
|
|
|
7112
7112
|
isTransactional: boolean;
|
|
7113
7113
|
}
|
|
7114
7114
|
|
|
7115
|
-
declare interface
|
|
7116
|
-
type:
|
|
7115
|
+
declare interface ShowLoadingIndicatorCommand {
|
|
7116
|
+
type: ExtensionCommandType.ShowLoadingIndicator;
|
|
7117
7117
|
payload: {
|
|
7118
7118
|
extensionId: string;
|
|
7119
7119
|
show: boolean;
|