@bigcommerce/checkout-sdk 1.701.2 → 1.702.0
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 +9 -3
- 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 +1 -1
- package/dist/extension.js.map +1 -1
- package/dist/extension.umd.js +1 -1
- package/dist/extension.umd.js.map +1 -1
- package/dist/hosted-form-v2-iframe-host.js +1 -1
- package/dist/hosted-form-v2-iframe-host.umd.js +1 -1
- package/docs/README.md +1 -0
- package/docs/classes/CheckoutService.md +2 -2
- package/docs/enums/ExtensionCommandType.md +7 -0
- package/docs/interfaces/ExtensionCommandMap.md +7 -0
- package/docs/interfaces/ReRenderShippingForm.md +15 -0
- package/package.json +1 -1
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -3191,7 +3191,7 @@ declare class CheckoutService {
|
|
|
3191
3191
|
* @param handler - The handler function for the extension command.
|
|
3192
3192
|
* @returns A function that, when called, will deregister the command handler.
|
|
3193
3193
|
*/
|
|
3194
|
-
handleExtensionCommand<T extends keyof ExtensionCommandMap>(extensionId: string, command: T, handler: (command: ExtensionCommandMap[T]) => void): () => void;
|
|
3194
|
+
handleExtensionCommand<T extends keyof ExtensionCommandMap>(extensionId: string, command: T, handler: (command: ExtensionCommandMap[T]) => Promise<void> | void): () => void;
|
|
3195
3195
|
/**
|
|
3196
3196
|
* Manages the query handler for an extension.
|
|
3197
3197
|
*
|
|
@@ -3201,7 +3201,7 @@ declare class CheckoutService {
|
|
|
3201
3201
|
* @param handler - The handler function for the extension query.
|
|
3202
3202
|
* @returns A function that, when called, will deregister the query handler.
|
|
3203
3203
|
*/
|
|
3204
|
-
handleExtensionQuery<T extends keyof ExtensionQueryMap>(extensionId: string, query: T, handler: (command: ExtensionQueryMap[T]) => void): () => void;
|
|
3204
|
+
handleExtensionQuery<T extends keyof ExtensionQueryMap>(extensionId: string, query: T, handler: (command: ExtensionQueryMap[T]) => Promise<void> | void): () => void;
|
|
3205
3205
|
/**
|
|
3206
3206
|
* Dispatches an action through the data store and returns the current state
|
|
3207
3207
|
* once the action is dispatched.
|
|
@@ -4826,12 +4826,14 @@ declare interface ExtensionCommandMap {
|
|
|
4826
4826
|
[ExtensionCommandType.ReloadCheckout]: ReloadCheckoutCommand;
|
|
4827
4827
|
[ExtensionCommandType.ShowLoadingIndicator]: ShowLoadingIndicatorCommand;
|
|
4828
4828
|
[ExtensionCommandType.SetIframeStyle]: SetIframeStyleCommand;
|
|
4829
|
+
[ExtensionCommandType.ReRenderShippingForm]: ReRenderShippingForm;
|
|
4829
4830
|
}
|
|
4830
4831
|
|
|
4831
4832
|
export declare enum ExtensionCommandType {
|
|
4832
4833
|
ReloadCheckout = "EXTENSION:RELOAD_CHECKOUT",
|
|
4833
4834
|
ShowLoadingIndicator = "EXTENSION:SHOW_LOADING_INDICATOR",
|
|
4834
|
-
SetIframeStyle = "EXTENSION:SET_IFRAME_STYLE"
|
|
4835
|
+
SetIframeStyle = "EXTENSION:SET_IFRAME_STYLE",
|
|
4836
|
+
ReRenderShippingForm = "EXTENSION:RE_RENDER_SHIPPING_FORM"
|
|
4835
4837
|
}
|
|
4836
4838
|
|
|
4837
4839
|
declare type ExtensionEvent = ConsignmentsChangedEvent;
|
|
@@ -7395,6 +7397,10 @@ declare enum RadiusUnit {
|
|
|
7395
7397
|
MI = "MI"
|
|
7396
7398
|
}
|
|
7397
7399
|
|
|
7400
|
+
declare interface ReRenderShippingForm {
|
|
7401
|
+
type: ExtensionCommandType.ReRenderShippingForm;
|
|
7402
|
+
}
|
|
7403
|
+
|
|
7398
7404
|
declare type ReadableCheckoutStore = ReadableDataStore<InternalCheckoutSelectors>;
|
|
7399
7405
|
|
|
7400
7406
|
declare interface RecaptchaResult {
|