@unifold/ui-react 0.1.63 → 0.1.64
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.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +822 -484
- package/dist/index.mjs +772 -432
- package/dist/styles-base.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -27,6 +27,15 @@ interface UseDepositPollingOptions {
|
|
|
27
27
|
depositConfirmationMode?: DepositConfirmationMode;
|
|
28
28
|
/** Deposit wallet ID used to trigger the backend poll endpoint */
|
|
29
29
|
depositWalletId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Multiple deposit wallet IDs to nudge `/poll` for. Used when the deposit chain
|
|
32
|
+
* isn't known up front (e.g. the mobile redirect flow, where the user may
|
|
33
|
+
* deposit on any supported chain) — we iterate the wallets from
|
|
34
|
+
* `/deposit_addresses` and poll each. Detection itself is via the single
|
|
35
|
+
* `/query` by `external_user_id` (which already spans all chains). Takes
|
|
36
|
+
* precedence over `depositWalletId` when non-empty.
|
|
37
|
+
*/
|
|
38
|
+
depositWalletIds?: string[];
|
|
30
39
|
enabled?: boolean;
|
|
31
40
|
onDepositSuccess?: (data: {
|
|
32
41
|
message: string;
|
|
@@ -55,7 +64,7 @@ interface UseDepositPollingResult {
|
|
|
55
64
|
/** Call this when user clicks "I've made the deposit" (manual mode) */
|
|
56
65
|
handleIveDeposited: () => void;
|
|
57
66
|
}
|
|
58
|
-
declare function useDepositPolling({ userId, publishableKey, clientSecret, depositConfirmationMode, depositWalletId, enabled, immediateDirectPolling, onDepositSuccess, onDepositError, }: UseDepositPollingOptions): UseDepositPollingResult;
|
|
67
|
+
declare function useDepositPolling({ userId, publishableKey, clientSecret, depositConfirmationMode, depositWalletId, depositWalletIds, enabled, immediateDirectPolling, onDepositSuccess, onDepositError, }: UseDepositPollingOptions): UseDepositPollingResult;
|
|
59
68
|
|
|
60
69
|
declare global {
|
|
61
70
|
interface Window {
|
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,15 @@ interface UseDepositPollingOptions {
|
|
|
27
27
|
depositConfirmationMode?: DepositConfirmationMode;
|
|
28
28
|
/** Deposit wallet ID used to trigger the backend poll endpoint */
|
|
29
29
|
depositWalletId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Multiple deposit wallet IDs to nudge `/poll` for. Used when the deposit chain
|
|
32
|
+
* isn't known up front (e.g. the mobile redirect flow, where the user may
|
|
33
|
+
* deposit on any supported chain) — we iterate the wallets from
|
|
34
|
+
* `/deposit_addresses` and poll each. Detection itself is via the single
|
|
35
|
+
* `/query` by `external_user_id` (which already spans all chains). Takes
|
|
36
|
+
* precedence over `depositWalletId` when non-empty.
|
|
37
|
+
*/
|
|
38
|
+
depositWalletIds?: string[];
|
|
30
39
|
enabled?: boolean;
|
|
31
40
|
onDepositSuccess?: (data: {
|
|
32
41
|
message: string;
|
|
@@ -55,7 +64,7 @@ interface UseDepositPollingResult {
|
|
|
55
64
|
/** Call this when user clicks "I've made the deposit" (manual mode) */
|
|
56
65
|
handleIveDeposited: () => void;
|
|
57
66
|
}
|
|
58
|
-
declare function useDepositPolling({ userId, publishableKey, clientSecret, depositConfirmationMode, depositWalletId, enabled, immediateDirectPolling, onDepositSuccess, onDepositError, }: UseDepositPollingOptions): UseDepositPollingResult;
|
|
67
|
+
declare function useDepositPolling({ userId, publishableKey, clientSecret, depositConfirmationMode, depositWalletId, depositWalletIds, enabled, immediateDirectPolling, onDepositSuccess, onDepositError, }: UseDepositPollingOptions): UseDepositPollingResult;
|
|
59
68
|
|
|
60
69
|
declare global {
|
|
61
70
|
interface Window {
|