suioutkit 1.0.2 → 1.0.3

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.
Binary file
@@ -1,18 +1,21 @@
1
1
  import "@mysten/dapp-kit-core/web";
2
- import { CheckoutSession } from "../types/index.js";
2
+ import { CheckoutSession, SuiOutKitModalOptions } from "../types/index.js";
3
3
  export declare class SuiOutKitModal {
4
4
  private overlay;
5
5
  private session;
6
6
  private backendUrl;
7
7
  private pollInterval;
8
8
  private walletConnectionUnsubscribe;
9
- private onCloseCallback;
9
+ private onCloseCallback?;
10
+ private onPaymentCompleteCallback?;
11
+ private redirectUrl?;
12
+ private autoCloseOnSuccess?;
10
13
  private cryptoIntent;
11
14
  private dAppKit;
12
15
  private paymentClient;
13
16
  private stripeInstance;
14
17
  private stripeElements;
15
- constructor(session: CheckoutSession, backendUrl: string, onClose: () => void);
18
+ constructor(session: CheckoutSession, backendUrl: string, options?: SuiOutKitModalOptions);
16
19
  private injectStyles;
17
20
  private renderIcons;
18
21
  private createModal;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CheckoutSession, CheckoutSessionOptions, CryptoConfirmResponse } from "./types/index.js";
1
+ import { CheckoutSession, CheckoutSessionOptions, CryptoConfirmResponse, SuiOutKitModalOptions } from "./types/index.js";
2
2
  import { SuiOutKitModal } from "./components/modal.js";
3
3
  export { DEFAULT_API_ORIGIN, API_V1_PREFIX } from "./config/api.js";
4
4
  export declare class SuiOutKit {
@@ -15,7 +15,7 @@ export declare class SuiOutKit {
15
15
  /**
16
16
  * Spawns the interactive RainbowKit-style checkout modal.
17
17
  */
18
- openModal(session: CheckoutSession, onClose?: () => void): SuiOutKitModal;
18
+ openModal(session: CheckoutSession, options?: SuiOutKitModalOptions): SuiOutKitModal;
19
19
  /**
20
20
  * Confirms a crypto payment after wallet execution by submitting the tx digest.
21
21
  */