@swype-org/react-sdk 0.2.242 → 0.2.261
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.cjs +1191 -1017
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +1192 -1018
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -60,6 +60,15 @@ interface Wallet {
|
|
|
60
60
|
}
|
|
61
61
|
/** Connected account containing wallets */
|
|
62
62
|
interface Account {
|
|
63
|
+
/**
|
|
64
|
+
* Stable client-side handle for this Account. Server defers Account-row
|
|
65
|
+
* creation until OPEN_PROVIDER completes; until then, the SDK's
|
|
66
|
+
* `createAccount` fills `id` with the provisional UUID it sent to the
|
|
67
|
+
* server (which the server uses as the eventual row id when no existing
|
|
68
|
+
* Account at the connected wallet address is found). After OPEN_PROVIDER,
|
|
69
|
+
* the session-polling response carries the resolved account id, which may
|
|
70
|
+
* differ from the provisional one when an existing Account is reused.
|
|
71
|
+
*/
|
|
63
72
|
id: string;
|
|
64
73
|
name: string;
|
|
65
74
|
/** Optional user-chosen display name for this account. */
|
|
@@ -258,6 +267,7 @@ interface ManualTransferSourceOption {
|
|
|
258
267
|
tokenLogoUri: string | null;
|
|
259
268
|
decimals: number;
|
|
260
269
|
minAmountUsd: string;
|
|
270
|
+
canonical: boolean;
|
|
261
271
|
}
|
|
262
272
|
interface ManualTransferSlippageSnapshot {
|
|
263
273
|
estimatedOutput: string;
|
|
@@ -762,7 +772,6 @@ interface BlinkPaymentProps {
|
|
|
762
772
|
destination: Destination;
|
|
763
773
|
/** Dev/testing shortcut: skip directly to a specific screen on first render. */
|
|
764
774
|
initialScreen?: 'manual-transfer';
|
|
765
|
-
mock?: boolean;
|
|
766
775
|
onComplete?: (transfer: Transfer) => void;
|
|
767
776
|
onError?: (error: string) => void;
|
|
768
777
|
useWalletConnector?: boolean;
|
|
@@ -1541,7 +1550,6 @@ interface StepRendererFlowProps {
|
|
|
1541
1550
|
destination: Destination;
|
|
1542
1551
|
merchantAuthorization?: CreateManualTransferParams['merchantAuthorization'];
|
|
1543
1552
|
idempotencyKey?: string;
|
|
1544
|
-
mock?: boolean;
|
|
1545
1553
|
/** Host-level completion callback, forwarded to ManualTransferFlow. */
|
|
1546
1554
|
onComplete?: (transfer: Transfer) => void;
|
|
1547
1555
|
/** Host-level error callback, forwarded to ManualTransferFlow. */
|
|
@@ -1955,8 +1963,9 @@ interface SetupScreenProps {
|
|
|
1955
1963
|
loading?: boolean;
|
|
1956
1964
|
loadingShimmersEnabled?: boolean;
|
|
1957
1965
|
error: string | null;
|
|
1966
|
+
selectedTokenSymbol?: string;
|
|
1958
1967
|
}
|
|
1959
|
-
declare function SetupScreen({ onSetupOneTap, onBack, onLogout, loading, loadingShimmersEnabled, error, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
1968
|
+
declare function SetupScreen({ onSetupOneTap, onBack, onLogout, loading, loadingShimmersEnabled, error, selectedTokenSymbol, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
1960
1969
|
|
|
1961
1970
|
/**
|
|
1962
1971
|
* A single {token, chain} pair the user may pick as the deposit source on
|
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,15 @@ interface Wallet {
|
|
|
60
60
|
}
|
|
61
61
|
/** Connected account containing wallets */
|
|
62
62
|
interface Account {
|
|
63
|
+
/**
|
|
64
|
+
* Stable client-side handle for this Account. Server defers Account-row
|
|
65
|
+
* creation until OPEN_PROVIDER completes; until then, the SDK's
|
|
66
|
+
* `createAccount` fills `id` with the provisional UUID it sent to the
|
|
67
|
+
* server (which the server uses as the eventual row id when no existing
|
|
68
|
+
* Account at the connected wallet address is found). After OPEN_PROVIDER,
|
|
69
|
+
* the session-polling response carries the resolved account id, which may
|
|
70
|
+
* differ from the provisional one when an existing Account is reused.
|
|
71
|
+
*/
|
|
63
72
|
id: string;
|
|
64
73
|
name: string;
|
|
65
74
|
/** Optional user-chosen display name for this account. */
|
|
@@ -258,6 +267,7 @@ interface ManualTransferSourceOption {
|
|
|
258
267
|
tokenLogoUri: string | null;
|
|
259
268
|
decimals: number;
|
|
260
269
|
minAmountUsd: string;
|
|
270
|
+
canonical: boolean;
|
|
261
271
|
}
|
|
262
272
|
interface ManualTransferSlippageSnapshot {
|
|
263
273
|
estimatedOutput: string;
|
|
@@ -762,7 +772,6 @@ interface BlinkPaymentProps {
|
|
|
762
772
|
destination: Destination;
|
|
763
773
|
/** Dev/testing shortcut: skip directly to a specific screen on first render. */
|
|
764
774
|
initialScreen?: 'manual-transfer';
|
|
765
|
-
mock?: boolean;
|
|
766
775
|
onComplete?: (transfer: Transfer) => void;
|
|
767
776
|
onError?: (error: string) => void;
|
|
768
777
|
useWalletConnector?: boolean;
|
|
@@ -1541,7 +1550,6 @@ interface StepRendererFlowProps {
|
|
|
1541
1550
|
destination: Destination;
|
|
1542
1551
|
merchantAuthorization?: CreateManualTransferParams['merchantAuthorization'];
|
|
1543
1552
|
idempotencyKey?: string;
|
|
1544
|
-
mock?: boolean;
|
|
1545
1553
|
/** Host-level completion callback, forwarded to ManualTransferFlow. */
|
|
1546
1554
|
onComplete?: (transfer: Transfer) => void;
|
|
1547
1555
|
/** Host-level error callback, forwarded to ManualTransferFlow. */
|
|
@@ -1955,8 +1963,9 @@ interface SetupScreenProps {
|
|
|
1955
1963
|
loading?: boolean;
|
|
1956
1964
|
loadingShimmersEnabled?: boolean;
|
|
1957
1965
|
error: string | null;
|
|
1966
|
+
selectedTokenSymbol?: string;
|
|
1958
1967
|
}
|
|
1959
|
-
declare function SetupScreen({ onSetupOneTap, onBack, onLogout, loading, loadingShimmersEnabled, error, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
1968
|
+
declare function SetupScreen({ onSetupOneTap, onBack, onLogout, loading, loadingShimmersEnabled, error, selectedTokenSymbol, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
1960
1969
|
|
|
1961
1970
|
/**
|
|
1962
1971
|
* A single {token, chain} pair the user may pick as the deposit source on
|