decane-connect-kit 2.7.4 → 2.7.5

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/index.d.cts CHANGED
@@ -86,6 +86,23 @@ interface SocialConfig {
86
86
  apiBaseUrl?: string;
87
87
  chains?: string[];
88
88
  rpcUrls?: Record<string, string>;
89
+ /**
90
+ * Show the built-in full-screen status overlay while a wallet is being
91
+ * created or unlocked. Default **true**.
92
+ *
93
+ * The overlay exists because those flows can take several seconds and often
94
+ * run right after a Google redirect, when no modal of yours is mounted — so
95
+ * without it the page can look frozen. It is rendered by `<DecaneKit>` itself,
96
+ * as a portal, and injects its own theme tokens.
97
+ *
98
+ * Set false to suppress it and render your own. Everything it displays is
99
+ * already available to you: `useSocialAuth()` exposes `phase`
100
+ * (`"creating" | "unlocking" | null`) plus the `isCreatingWallet` /
101
+ * `isUnlockingWallet` booleans, and the client emits `wallet-creating` and
102
+ * `wallet-unlocking` events. If you suppress it, show something of your own —
103
+ * a silent multi-second pause reads as a broken page.
104
+ */
105
+ showStatusOverlay?: boolean;
89
106
  /**
90
107
  * Require a fresh WebAuthn assertion for every signature rather than letting
91
108
  * an unlocked session sign freely until it expires. Enforced inside the TEE.
package/dist/index.d.ts CHANGED
@@ -86,6 +86,23 @@ interface SocialConfig {
86
86
  apiBaseUrl?: string;
87
87
  chains?: string[];
88
88
  rpcUrls?: Record<string, string>;
89
+ /**
90
+ * Show the built-in full-screen status overlay while a wallet is being
91
+ * created or unlocked. Default **true**.
92
+ *
93
+ * The overlay exists because those flows can take several seconds and often
94
+ * run right after a Google redirect, when no modal of yours is mounted — so
95
+ * without it the page can look frozen. It is rendered by `<DecaneKit>` itself,
96
+ * as a portal, and injects its own theme tokens.
97
+ *
98
+ * Set false to suppress it and render your own. Everything it displays is
99
+ * already available to you: `useSocialAuth()` exposes `phase`
100
+ * (`"creating" | "unlocking" | null`) plus the `isCreatingWallet` /
101
+ * `isUnlockingWallet` booleans, and the client emits `wallet-creating` and
102
+ * `wallet-unlocking` events. If you suppress it, show something of your own —
103
+ * a silent multi-second pause reads as a broken page.
104
+ */
105
+ showStatusOverlay?: boolean;
89
106
  /**
90
107
  * Require a fresh WebAuthn assertion for every signature rather than letting
91
108
  * an unlocked session sign freely until it expires. Enforced inside the TEE.
package/dist/index.js CHANGED
@@ -6696,7 +6696,7 @@ function DecaneKit({ config, children }) {
6696
6696
  chains: config?.social?.chains
6697
6697
  }
6698
6698
  ),
6699
- /* @__PURE__ */ React5.createElement(WalletStatusOverlay, { phase: socialAuth.phase, theme })
6699
+ config?.social?.showStatusOverlay !== false && /* @__PURE__ */ React5.createElement(WalletStatusOverlay, { phase: socialAuth.phase, theme })
6700
6700
  );
6701
6701
  }
6702
6702
  function useDecaneContext() {