@quantaroute/checkout 1.8.1 → 1.8.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/CHANGELOG.md +7 -0
- package/dist/embed/quantaroute-checkout.js +1 -1
- package/dist/lib/index.d.ts +2 -1
- package/dist/lib/quantaroute-checkout.es.js +35 -33
- package/dist/lib/quantaroute-checkout.umd.js +11 -9
- package/package.json +1 -1
- package/src/components/CheckoutWidget.tsx +4 -2
- package/src/components/SavedAddressStep.tsx +39 -5
- package/src/core/types.ts +2 -1
package/src/core/types.ts
CHANGED
|
@@ -519,7 +519,8 @@ export interface SavedAddressStepProps {
|
|
|
519
519
|
sessionToken: string;
|
|
520
520
|
functionBaseUrl: string;
|
|
521
521
|
merchantId: string;
|
|
522
|
-
|
|
522
|
+
/** May return a promise; the step shows a spinner until it settles and an error if it rejects. */
|
|
523
|
+
onSelectAddress: (address: import('./checkout-api').SavedAddress) => void | Promise<void>;
|
|
523
524
|
onAddNew: () => void;
|
|
524
525
|
}
|
|
525
526
|
|