@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.
@@ -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
- listenExtensionCommand(extensionId: string, command: ExtensionCommand, handler: ExtensionCommandHandler): () => void;
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 const enum ExtensionCommand {
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 ReloadCheckoutEvent {
6987
- type: ExtensionCommand.ReloadCheckout;
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 SetIframeStylePayload {
7048
- type: ExtensionCommand.SetIframeStyle;
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 ShowLoadingIndicatorEvent {
7116
- type: ExtensionCommand.ShowLoadingIndicator;
7115
+ declare interface ShowLoadingIndicatorCommand {
7116
+ type: ExtensionCommandType.ShowLoadingIndicator;
7117
7117
  payload: {
7118
7118
  extensionId: string;
7119
7119
  show: boolean;