@swype-org/react-sdk 0.1.208 → 0.1.209
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 +96 -96
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -31
- package/dist/index.d.ts +31 -31
- package/dist/index.js +89 -89
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -248,54 +248,54 @@ declare const darkTheme: ThemeTokens;
|
|
|
248
248
|
declare const lightTheme: ThemeTokens;
|
|
249
249
|
declare function getTheme(mode: ThemeMode): ThemeTokens;
|
|
250
250
|
|
|
251
|
-
interface
|
|
251
|
+
interface BlinkConfig {
|
|
252
252
|
apiBaseUrl: string;
|
|
253
253
|
theme: ThemeMode;
|
|
254
254
|
tokens: ThemeTokens;
|
|
255
|
-
/** Pre-set deposit amount (controlled by host app via
|
|
255
|
+
/** Pre-set deposit amount (controlled by host app via useBlinkDepositAmount) */
|
|
256
256
|
depositAmount: number | null;
|
|
257
257
|
/** Update the deposit amount from a host-app component */
|
|
258
258
|
setDepositAmount: (amount: number | null) => void;
|
|
259
259
|
}
|
|
260
|
-
interface
|
|
261
|
-
/** Base URL for the
|
|
260
|
+
interface BlinkProviderProps {
|
|
261
|
+
/** Base URL for the Blink API (e.g. "http://localhost:3000") */
|
|
262
262
|
apiBaseUrl: string;
|
|
263
263
|
/** Light or dark mode */
|
|
264
264
|
theme?: ThemeMode;
|
|
265
265
|
children: React.ReactNode;
|
|
266
266
|
}
|
|
267
267
|
/**
|
|
268
|
-
* Provides
|
|
268
|
+
* Provides Blink SDK configuration and all required infrastructure
|
|
269
269
|
* (Privy auth, wagmi, React Query) to child components.
|
|
270
270
|
*
|
|
271
|
-
* Must wrap any `<
|
|
271
|
+
* Must wrap any `<BlinkPayment>` usage. The integrator does **not** need
|
|
272
272
|
* to set up Privy, wagmi, or React Query — this provider handles it all.
|
|
273
273
|
*
|
|
274
274
|
* @example
|
|
275
275
|
* ```tsx
|
|
276
|
-
* <
|
|
277
|
-
* <
|
|
278
|
-
* </
|
|
276
|
+
* <BlinkProvider apiBaseUrl="https://api.blink.com">
|
|
277
|
+
* <BlinkPayment destination={dest} onComplete={handler} />
|
|
278
|
+
* </BlinkProvider>
|
|
279
279
|
* ```
|
|
280
280
|
*/
|
|
281
|
-
declare function
|
|
282
|
-
/** Access the
|
|
283
|
-
declare function
|
|
281
|
+
declare function BlinkProvider({ apiBaseUrl, theme, children, }: BlinkProviderProps): react_jsx_runtime.JSX.Element;
|
|
282
|
+
/** Access the Blink SDK configuration. Throws if used outside BlinkProvider. */
|
|
283
|
+
declare function useBlinkConfig(): BlinkConfig;
|
|
284
284
|
/**
|
|
285
285
|
* Hook for host apps to pre-set the deposit amount before showing the
|
|
286
|
-
* payment widget. When set, the amount field in
|
|
286
|
+
* payment widget. When set, the amount field in BlinkPayment is
|
|
287
287
|
* auto-populated.
|
|
288
288
|
*
|
|
289
289
|
* @example
|
|
290
290
|
* ```tsx
|
|
291
291
|
* function ProductPage() {
|
|
292
|
-
* const { setAmount } =
|
|
292
|
+
* const { setAmount } = useBlinkDepositAmount();
|
|
293
293
|
* useEffect(() => { setAmount(25.00); }, []);
|
|
294
|
-
* return <
|
|
294
|
+
* return <BlinkPayment destination={dest} />;
|
|
295
295
|
* }
|
|
296
296
|
* ```
|
|
297
297
|
*/
|
|
298
|
-
declare function
|
|
298
|
+
declare function useBlinkDepositAmount(): {
|
|
299
299
|
/** Current deposit amount, or null if not set */
|
|
300
300
|
amount: number | null;
|
|
301
301
|
/** Set the deposit amount (pass null to clear) */
|
|
@@ -404,7 +404,7 @@ declare namespace api {
|
|
|
404
404
|
export { type api_CreateAccountParams as CreateAccountParams, type api_CreateTransferParams as CreateTransferParams, api_createAccount as createAccount, api_createAccountAuthorizationSession as createAccountAuthorizationSession, api_createTransfer as createTransfer, api_fetchAccount as fetchAccount, api_fetchAccounts as fetchAccounts, api_fetchAuthorizationSession as fetchAuthorizationSession, api_fetchChains as fetchChains, api_fetchMerchantPublicKey as fetchMerchantPublicKey, api_fetchProviders as fetchProviders, api_fetchTransfer as fetchTransfer, api_fetchUserConfig as fetchUserConfig, api_registerPasskey as registerPasskey, api_reportActionCompletion as reportActionCompletion, api_reportPasskeyActivity as reportPasskeyActivity, api_signTransfer as signTransfer, api_updateUserConfig as updateUserConfig, api_updateUserConfigBySession as updateUserConfigBySession };
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
interface
|
|
407
|
+
interface BlinkPaymentProps {
|
|
408
408
|
destination: Destination;
|
|
409
409
|
onComplete?: (transfer: Transfer) => void;
|
|
410
410
|
onError?: (error: string) => void;
|
|
@@ -416,7 +416,7 @@ interface SwypePaymentProps {
|
|
|
416
416
|
onDismiss?: () => void;
|
|
417
417
|
autoCloseSeconds?: number;
|
|
418
418
|
}
|
|
419
|
-
declare function
|
|
419
|
+
declare function BlinkPayment(props: BlinkPaymentProps): react_jsx_runtime.JSX.Element;
|
|
420
420
|
|
|
421
421
|
/**
|
|
422
422
|
* Cross-origin iframe passkey helpers.
|
|
@@ -425,7 +425,7 @@ declare function SwypePayment(props: SwypePaymentProps): react_jsx_runtime.JSX.E
|
|
|
425
425
|
* ceremonies cannot execute from within the iframe on Safari. For passkey
|
|
426
426
|
* creation, we first attempt a direct `navigator.credentials.create()`
|
|
427
427
|
* call (works in Chrome/Firefox with the iframe permissions policy). If
|
|
428
|
-
* that fails (Safari), we open a same-origin pop-up window on the
|
|
428
|
+
* that fails (Safari), we open a same-origin pop-up window on the Blink
|
|
429
429
|
* domain to perform the ceremony. The popup writes the result to the
|
|
430
430
|
* server with a verification token, and the opener reads from the server
|
|
431
431
|
* after the popup closes.
|
|
@@ -433,7 +433,7 @@ declare function SwypePayment(props: SwypePaymentProps): react_jsx_runtime.JSX.E
|
|
|
433
433
|
/**
|
|
434
434
|
* Thrown when `navigator.credentials.create()` fails inside a
|
|
435
435
|
* cross-origin iframe (Safari). The UI layer should catch this and
|
|
436
|
-
* offer the user a button that opens the
|
|
436
|
+
* offer the user a button that opens the Blink passkey pop-up.
|
|
437
437
|
*/
|
|
438
438
|
declare class PasskeyIframeBlockedError extends Error {
|
|
439
439
|
constructor(message?: string);
|
|
@@ -463,7 +463,7 @@ interface PasskeyPopupOptions {
|
|
|
463
463
|
apiBaseUrl?: string;
|
|
464
464
|
}
|
|
465
465
|
/**
|
|
466
|
-
* Opens a same-origin pop-up window on the
|
|
466
|
+
* Opens a same-origin pop-up window on the Blink domain to perform
|
|
467
467
|
* passkey creation. Used as a fallback when Safari blocks
|
|
468
468
|
* `navigator.credentials.create()` inside a cross-origin iframe.
|
|
469
469
|
*
|
|
@@ -489,11 +489,11 @@ interface PasskeyVerifyPopupOptions {
|
|
|
489
489
|
apiBaseUrl?: string;
|
|
490
490
|
}
|
|
491
491
|
/**
|
|
492
|
-
* Opens a same-origin pop-up window on the
|
|
492
|
+
* Opens a same-origin pop-up window on the Blink domain to check whether
|
|
493
493
|
* any of the given passkey credential IDs exist on this device.
|
|
494
494
|
*
|
|
495
495
|
* Used as a fallback when Safari blocks `navigator.credentials.get()`
|
|
496
|
-
* inside a cross-origin iframe. The popup runs on the
|
|
496
|
+
* inside a cross-origin iframe. The popup runs on the Blink domain where
|
|
497
497
|
* the rpId matches, so WebAuthn works.
|
|
498
498
|
*
|
|
499
499
|
* The popup writes a verification token to the server. After the popup
|
|
@@ -588,7 +588,7 @@ interface UseAuthorizationExecutorResult {
|
|
|
588
588
|
executeSessionById: (sessionId: string) => Promise<void>;
|
|
589
589
|
}
|
|
590
590
|
interface UseAuthorizationExecutorOptions {
|
|
591
|
-
/** Optional API base URL override when used outside
|
|
591
|
+
/** Optional API base URL override when used outside BlinkProvider. */
|
|
592
592
|
apiBaseUrl?: string;
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
@@ -622,7 +622,7 @@ interface UseTransferSigningResult {
|
|
|
622
622
|
signTransfer: (transferId: string) => Promise<Transfer>;
|
|
623
623
|
}
|
|
624
624
|
interface UseTransferSigningOptions {
|
|
625
|
-
/** Optional API base URL override when used outside
|
|
625
|
+
/** Optional API base URL override when used outside BlinkProvider. */
|
|
626
626
|
apiBaseUrl?: string;
|
|
627
627
|
/** Optional access-token getter override (e.g. deeplink query token). */
|
|
628
628
|
getAccessToken?: AccessTokenGetter;
|
|
@@ -716,7 +716,7 @@ interface SpinnerProps {
|
|
|
716
716
|
}
|
|
717
717
|
declare function Spinner({ size, label }: SpinnerProps): react_jsx_runtime.JSX.Element;
|
|
718
718
|
|
|
719
|
-
declare function
|
|
719
|
+
declare function BlinkLoadingScreen(): react_jsx_runtime.JSX.Element;
|
|
720
720
|
|
|
721
721
|
interface PasskeyScreenProps {
|
|
722
722
|
onCreatePasskey: () => void;
|
|
@@ -726,7 +726,7 @@ interface PasskeyScreenProps {
|
|
|
726
726
|
error: string | null;
|
|
727
727
|
/** When true, direct passkey creation failed (Safari iframe restriction). */
|
|
728
728
|
popupFallback?: boolean;
|
|
729
|
-
/** Opens a pop-up window on the
|
|
729
|
+
/** Opens a pop-up window on the Blink domain for passkey registration. */
|
|
730
730
|
onCreatePasskeyViaPopup?: () => void;
|
|
731
731
|
}
|
|
732
732
|
declare function PasskeyScreen({ onCreatePasskey, onBack, onLogout, creating, error, popupFallback, onCreatePasskeyViaPopup, }: PasskeyScreenProps): react_jsx_runtime.JSX.Element;
|
|
@@ -819,8 +819,8 @@ declare function FlowPhaseProvider({ phase, children, }: {
|
|
|
819
819
|
children: ReactNode;
|
|
820
820
|
}): react_jsx_runtime.JSX.Element;
|
|
821
821
|
|
|
822
|
-
declare const
|
|
823
|
-
/** @deprecated Use
|
|
824
|
-
declare const
|
|
822
|
+
declare const BLINK_LOGO: string;
|
|
823
|
+
/** @deprecated Use BLINK_LOGO instead. Kept for backward compatibility. */
|
|
824
|
+
declare const BLINK_MASCOT: string;
|
|
825
825
|
|
|
826
|
-
export { type Account, type ActionExecutionResult, type AdvancedSettings, AdvancedSourceScreen, type Amount, type AuthorizationAction, type AuthorizationSession, type AuthorizationSessionDetail, type Chain, type Destination, type ErrorResponse, type FlowPhase, FlowPhaseProvider, IconCircle, InfoBanner, type ListResponse, type MerchantAuthorization, type MerchantPublicKey, OutlineButton, PasskeyIframeBlockedError, PasskeyScreen, type PaymentStep, PoweredByFooter, PrimaryButton, type Provider,
|
|
826
|
+
export { type Account, type ActionExecutionResult, type AdvancedSettings, AdvancedSourceScreen, type Amount, type AuthorizationAction, type AuthorizationSession, type AuthorizationSessionDetail, BLINK_LOGO, BLINK_MASCOT, BlinkLoadingScreen, BlinkPayment, type BlinkPaymentProps, BlinkProvider, type BlinkProviderProps, type Chain, type Destination, type ErrorResponse, type FlowPhase, FlowPhaseProvider, IconCircle, InfoBanner, type ListResponse, type MerchantAuthorization, type MerchantPublicKey, OutlineButton, PasskeyIframeBlockedError, PasskeyScreen, type PaymentStep, PoweredByFooter, PrimaryButton, type Provider, ScreenHeader, ScreenLayout, SelectSourceScreen, SettingsMenu, SetupScreen, type SourceOption, type SourceSelection, type SourceType, Spinner, type StepItem, StepList, type ThemeMode, type ThemeTokens, type TokenBalance, TokenPickerScreen, type Transfer, type TransferDestination, type UserConfig, type Wallet, type WalletSource, type WalletToken, api as blinkApi, buildPasskeyPopupOptions, createPasskeyCredential, createPasskeyViaPopup, darkTheme, deviceHasPasskey, findDevicePasskey, findDevicePasskeyViaPopup, getTheme, lightTheme, resolvePasskeyRpId, useAuthorizationExecutor, useBlinkConfig, useBlinkDepositAmount, useTransferPolling, useTransferSigning };
|
package/dist/index.d.ts
CHANGED
|
@@ -248,54 +248,54 @@ declare const darkTheme: ThemeTokens;
|
|
|
248
248
|
declare const lightTheme: ThemeTokens;
|
|
249
249
|
declare function getTheme(mode: ThemeMode): ThemeTokens;
|
|
250
250
|
|
|
251
|
-
interface
|
|
251
|
+
interface BlinkConfig {
|
|
252
252
|
apiBaseUrl: string;
|
|
253
253
|
theme: ThemeMode;
|
|
254
254
|
tokens: ThemeTokens;
|
|
255
|
-
/** Pre-set deposit amount (controlled by host app via
|
|
255
|
+
/** Pre-set deposit amount (controlled by host app via useBlinkDepositAmount) */
|
|
256
256
|
depositAmount: number | null;
|
|
257
257
|
/** Update the deposit amount from a host-app component */
|
|
258
258
|
setDepositAmount: (amount: number | null) => void;
|
|
259
259
|
}
|
|
260
|
-
interface
|
|
261
|
-
/** Base URL for the
|
|
260
|
+
interface BlinkProviderProps {
|
|
261
|
+
/** Base URL for the Blink API (e.g. "http://localhost:3000") */
|
|
262
262
|
apiBaseUrl: string;
|
|
263
263
|
/** Light or dark mode */
|
|
264
264
|
theme?: ThemeMode;
|
|
265
265
|
children: React.ReactNode;
|
|
266
266
|
}
|
|
267
267
|
/**
|
|
268
|
-
* Provides
|
|
268
|
+
* Provides Blink SDK configuration and all required infrastructure
|
|
269
269
|
* (Privy auth, wagmi, React Query) to child components.
|
|
270
270
|
*
|
|
271
|
-
* Must wrap any `<
|
|
271
|
+
* Must wrap any `<BlinkPayment>` usage. The integrator does **not** need
|
|
272
272
|
* to set up Privy, wagmi, or React Query — this provider handles it all.
|
|
273
273
|
*
|
|
274
274
|
* @example
|
|
275
275
|
* ```tsx
|
|
276
|
-
* <
|
|
277
|
-
* <
|
|
278
|
-
* </
|
|
276
|
+
* <BlinkProvider apiBaseUrl="https://api.blink.com">
|
|
277
|
+
* <BlinkPayment destination={dest} onComplete={handler} />
|
|
278
|
+
* </BlinkProvider>
|
|
279
279
|
* ```
|
|
280
280
|
*/
|
|
281
|
-
declare function
|
|
282
|
-
/** Access the
|
|
283
|
-
declare function
|
|
281
|
+
declare function BlinkProvider({ apiBaseUrl, theme, children, }: BlinkProviderProps): react_jsx_runtime.JSX.Element;
|
|
282
|
+
/** Access the Blink SDK configuration. Throws if used outside BlinkProvider. */
|
|
283
|
+
declare function useBlinkConfig(): BlinkConfig;
|
|
284
284
|
/**
|
|
285
285
|
* Hook for host apps to pre-set the deposit amount before showing the
|
|
286
|
-
* payment widget. When set, the amount field in
|
|
286
|
+
* payment widget. When set, the amount field in BlinkPayment is
|
|
287
287
|
* auto-populated.
|
|
288
288
|
*
|
|
289
289
|
* @example
|
|
290
290
|
* ```tsx
|
|
291
291
|
* function ProductPage() {
|
|
292
|
-
* const { setAmount } =
|
|
292
|
+
* const { setAmount } = useBlinkDepositAmount();
|
|
293
293
|
* useEffect(() => { setAmount(25.00); }, []);
|
|
294
|
-
* return <
|
|
294
|
+
* return <BlinkPayment destination={dest} />;
|
|
295
295
|
* }
|
|
296
296
|
* ```
|
|
297
297
|
*/
|
|
298
|
-
declare function
|
|
298
|
+
declare function useBlinkDepositAmount(): {
|
|
299
299
|
/** Current deposit amount, or null if not set */
|
|
300
300
|
amount: number | null;
|
|
301
301
|
/** Set the deposit amount (pass null to clear) */
|
|
@@ -404,7 +404,7 @@ declare namespace api {
|
|
|
404
404
|
export { type api_CreateAccountParams as CreateAccountParams, type api_CreateTransferParams as CreateTransferParams, api_createAccount as createAccount, api_createAccountAuthorizationSession as createAccountAuthorizationSession, api_createTransfer as createTransfer, api_fetchAccount as fetchAccount, api_fetchAccounts as fetchAccounts, api_fetchAuthorizationSession as fetchAuthorizationSession, api_fetchChains as fetchChains, api_fetchMerchantPublicKey as fetchMerchantPublicKey, api_fetchProviders as fetchProviders, api_fetchTransfer as fetchTransfer, api_fetchUserConfig as fetchUserConfig, api_registerPasskey as registerPasskey, api_reportActionCompletion as reportActionCompletion, api_reportPasskeyActivity as reportPasskeyActivity, api_signTransfer as signTransfer, api_updateUserConfig as updateUserConfig, api_updateUserConfigBySession as updateUserConfigBySession };
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
interface
|
|
407
|
+
interface BlinkPaymentProps {
|
|
408
408
|
destination: Destination;
|
|
409
409
|
onComplete?: (transfer: Transfer) => void;
|
|
410
410
|
onError?: (error: string) => void;
|
|
@@ -416,7 +416,7 @@ interface SwypePaymentProps {
|
|
|
416
416
|
onDismiss?: () => void;
|
|
417
417
|
autoCloseSeconds?: number;
|
|
418
418
|
}
|
|
419
|
-
declare function
|
|
419
|
+
declare function BlinkPayment(props: BlinkPaymentProps): react_jsx_runtime.JSX.Element;
|
|
420
420
|
|
|
421
421
|
/**
|
|
422
422
|
* Cross-origin iframe passkey helpers.
|
|
@@ -425,7 +425,7 @@ declare function SwypePayment(props: SwypePaymentProps): react_jsx_runtime.JSX.E
|
|
|
425
425
|
* ceremonies cannot execute from within the iframe on Safari. For passkey
|
|
426
426
|
* creation, we first attempt a direct `navigator.credentials.create()`
|
|
427
427
|
* call (works in Chrome/Firefox with the iframe permissions policy). If
|
|
428
|
-
* that fails (Safari), we open a same-origin pop-up window on the
|
|
428
|
+
* that fails (Safari), we open a same-origin pop-up window on the Blink
|
|
429
429
|
* domain to perform the ceremony. The popup writes the result to the
|
|
430
430
|
* server with a verification token, and the opener reads from the server
|
|
431
431
|
* after the popup closes.
|
|
@@ -433,7 +433,7 @@ declare function SwypePayment(props: SwypePaymentProps): react_jsx_runtime.JSX.E
|
|
|
433
433
|
/**
|
|
434
434
|
* Thrown when `navigator.credentials.create()` fails inside a
|
|
435
435
|
* cross-origin iframe (Safari). The UI layer should catch this and
|
|
436
|
-
* offer the user a button that opens the
|
|
436
|
+
* offer the user a button that opens the Blink passkey pop-up.
|
|
437
437
|
*/
|
|
438
438
|
declare class PasskeyIframeBlockedError extends Error {
|
|
439
439
|
constructor(message?: string);
|
|
@@ -463,7 +463,7 @@ interface PasskeyPopupOptions {
|
|
|
463
463
|
apiBaseUrl?: string;
|
|
464
464
|
}
|
|
465
465
|
/**
|
|
466
|
-
* Opens a same-origin pop-up window on the
|
|
466
|
+
* Opens a same-origin pop-up window on the Blink domain to perform
|
|
467
467
|
* passkey creation. Used as a fallback when Safari blocks
|
|
468
468
|
* `navigator.credentials.create()` inside a cross-origin iframe.
|
|
469
469
|
*
|
|
@@ -489,11 +489,11 @@ interface PasskeyVerifyPopupOptions {
|
|
|
489
489
|
apiBaseUrl?: string;
|
|
490
490
|
}
|
|
491
491
|
/**
|
|
492
|
-
* Opens a same-origin pop-up window on the
|
|
492
|
+
* Opens a same-origin pop-up window on the Blink domain to check whether
|
|
493
493
|
* any of the given passkey credential IDs exist on this device.
|
|
494
494
|
*
|
|
495
495
|
* Used as a fallback when Safari blocks `navigator.credentials.get()`
|
|
496
|
-
* inside a cross-origin iframe. The popup runs on the
|
|
496
|
+
* inside a cross-origin iframe. The popup runs on the Blink domain where
|
|
497
497
|
* the rpId matches, so WebAuthn works.
|
|
498
498
|
*
|
|
499
499
|
* The popup writes a verification token to the server. After the popup
|
|
@@ -588,7 +588,7 @@ interface UseAuthorizationExecutorResult {
|
|
|
588
588
|
executeSessionById: (sessionId: string) => Promise<void>;
|
|
589
589
|
}
|
|
590
590
|
interface UseAuthorizationExecutorOptions {
|
|
591
|
-
/** Optional API base URL override when used outside
|
|
591
|
+
/** Optional API base URL override when used outside BlinkProvider. */
|
|
592
592
|
apiBaseUrl?: string;
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
@@ -622,7 +622,7 @@ interface UseTransferSigningResult {
|
|
|
622
622
|
signTransfer: (transferId: string) => Promise<Transfer>;
|
|
623
623
|
}
|
|
624
624
|
interface UseTransferSigningOptions {
|
|
625
|
-
/** Optional API base URL override when used outside
|
|
625
|
+
/** Optional API base URL override when used outside BlinkProvider. */
|
|
626
626
|
apiBaseUrl?: string;
|
|
627
627
|
/** Optional access-token getter override (e.g. deeplink query token). */
|
|
628
628
|
getAccessToken?: AccessTokenGetter;
|
|
@@ -716,7 +716,7 @@ interface SpinnerProps {
|
|
|
716
716
|
}
|
|
717
717
|
declare function Spinner({ size, label }: SpinnerProps): react_jsx_runtime.JSX.Element;
|
|
718
718
|
|
|
719
|
-
declare function
|
|
719
|
+
declare function BlinkLoadingScreen(): react_jsx_runtime.JSX.Element;
|
|
720
720
|
|
|
721
721
|
interface PasskeyScreenProps {
|
|
722
722
|
onCreatePasskey: () => void;
|
|
@@ -726,7 +726,7 @@ interface PasskeyScreenProps {
|
|
|
726
726
|
error: string | null;
|
|
727
727
|
/** When true, direct passkey creation failed (Safari iframe restriction). */
|
|
728
728
|
popupFallback?: boolean;
|
|
729
|
-
/** Opens a pop-up window on the
|
|
729
|
+
/** Opens a pop-up window on the Blink domain for passkey registration. */
|
|
730
730
|
onCreatePasskeyViaPopup?: () => void;
|
|
731
731
|
}
|
|
732
732
|
declare function PasskeyScreen({ onCreatePasskey, onBack, onLogout, creating, error, popupFallback, onCreatePasskeyViaPopup, }: PasskeyScreenProps): react_jsx_runtime.JSX.Element;
|
|
@@ -819,8 +819,8 @@ declare function FlowPhaseProvider({ phase, children, }: {
|
|
|
819
819
|
children: ReactNode;
|
|
820
820
|
}): react_jsx_runtime.JSX.Element;
|
|
821
821
|
|
|
822
|
-
declare const
|
|
823
|
-
/** @deprecated Use
|
|
824
|
-
declare const
|
|
822
|
+
declare const BLINK_LOGO: string;
|
|
823
|
+
/** @deprecated Use BLINK_LOGO instead. Kept for backward compatibility. */
|
|
824
|
+
declare const BLINK_MASCOT: string;
|
|
825
825
|
|
|
826
|
-
export { type Account, type ActionExecutionResult, type AdvancedSettings, AdvancedSourceScreen, type Amount, type AuthorizationAction, type AuthorizationSession, type AuthorizationSessionDetail, type Chain, type Destination, type ErrorResponse, type FlowPhase, FlowPhaseProvider, IconCircle, InfoBanner, type ListResponse, type MerchantAuthorization, type MerchantPublicKey, OutlineButton, PasskeyIframeBlockedError, PasskeyScreen, type PaymentStep, PoweredByFooter, PrimaryButton, type Provider,
|
|
826
|
+
export { type Account, type ActionExecutionResult, type AdvancedSettings, AdvancedSourceScreen, type Amount, type AuthorizationAction, type AuthorizationSession, type AuthorizationSessionDetail, BLINK_LOGO, BLINK_MASCOT, BlinkLoadingScreen, BlinkPayment, type BlinkPaymentProps, BlinkProvider, type BlinkProviderProps, type Chain, type Destination, type ErrorResponse, type FlowPhase, FlowPhaseProvider, IconCircle, InfoBanner, type ListResponse, type MerchantAuthorization, type MerchantPublicKey, OutlineButton, PasskeyIframeBlockedError, PasskeyScreen, type PaymentStep, PoweredByFooter, PrimaryButton, type Provider, ScreenHeader, ScreenLayout, SelectSourceScreen, SettingsMenu, SetupScreen, type SourceOption, type SourceSelection, type SourceType, Spinner, type StepItem, StepList, type ThemeMode, type ThemeTokens, type TokenBalance, TokenPickerScreen, type Transfer, type TransferDestination, type UserConfig, type Wallet, type WalletSource, type WalletToken, api as blinkApi, buildPasskeyPopupOptions, createPasskeyCredential, createPasskeyViaPopup, darkTheme, deviceHasPasskey, findDevicePasskey, findDevicePasskeyViaPopup, getTheme, lightTheme, resolvePasskeyRpId, useAuthorizationExecutor, useBlinkConfig, useBlinkDepositAmount, useTransferPolling, useTransferSigning };
|