@pollar/react 0.11.4-rc.1 → 0.11.4-rc.4
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.css +193 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +20 -4
- package/dist/index.d.ts +20 -4
- package/dist/index.js +954 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +954 -25
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -167,6 +167,12 @@ interface PollarContextValue {
|
|
|
167
167
|
earnWithdraw: (params: EarnTxParams) => Promise<SubmitOutcome>;
|
|
168
168
|
/** Open the Earn modal. */
|
|
169
169
|
openEarnModal: () => void;
|
|
170
|
+
/**
|
|
171
|
+
* Open the Cards modal: sign-up, identity verification, issuing, the card
|
|
172
|
+
* itself and its activity. The card calls live on {@link PollarClient}
|
|
173
|
+
* (`getCardProviders`, `issueCard`, `revealCardSecrets`, ...).
|
|
174
|
+
*/
|
|
175
|
+
openCardModal: () => void;
|
|
170
176
|
openDistributionRulesModal: () => void;
|
|
171
177
|
adapters?: PollarAdapters;
|
|
172
178
|
}
|
|
@@ -375,6 +381,8 @@ declare function useChains(): UseChainsResult;
|
|
|
375
381
|
|
|
376
382
|
interface KycModalProps {
|
|
377
383
|
corridorId?: string;
|
|
384
|
+
/** A card provider's steps, in place of a route's. */
|
|
385
|
+
cardProviderId?: string;
|
|
378
386
|
/** Open this option directly instead of listing the choices (the one a ramp's KYC gate names). */
|
|
379
387
|
providerId?: string;
|
|
380
388
|
onClose: () => void;
|
|
@@ -385,7 +393,7 @@ interface KycModalProps {
|
|
|
385
393
|
/** Called when KYC is successfully approved. */
|
|
386
394
|
onApproved?: () => void;
|
|
387
395
|
}
|
|
388
|
-
declare function KycModal({ onClose, country, level, onApproved, corridorId, providerId }: KycModalProps): react_jsx_runtime.JSX.Element;
|
|
396
|
+
declare function KycModal({ onClose, country, level, onApproved, corridorId, cardProviderId, providerId, }: KycModalProps): react_jsx_runtime.JSX.Element;
|
|
389
397
|
|
|
390
398
|
interface RequirementFormModalProps {
|
|
391
399
|
formId: string;
|
|
@@ -419,7 +427,10 @@ interface RegistryCheckModalProps {
|
|
|
419
427
|
declare function RegistryCheckModal({ optionId, progress, onClose, onApproved }: RegistryCheckModalProps): react_jsx_runtime.JSX.Element;
|
|
420
428
|
|
|
421
429
|
interface ProviderRegistrationModalProps {
|
|
422
|
-
|
|
430
|
+
/** The route whose ramp the user registers with. */
|
|
431
|
+
corridorId?: string;
|
|
432
|
+
/** Or the card provider. One of the two. */
|
|
433
|
+
cardProviderId?: string;
|
|
423
434
|
/** Position of this step over the route's steps, when known. */
|
|
424
435
|
progress?: {
|
|
425
436
|
position: number;
|
|
@@ -433,7 +444,7 @@ interface ProviderRegistrationModalProps {
|
|
|
433
444
|
* One PROVIDER_REGISTRATION step: what the ramp provider receives, listed before the
|
|
434
445
|
* user consents. Registering is the consent; nothing is sent until then.
|
|
435
446
|
*/
|
|
436
|
-
declare function ProviderRegistrationModal({ corridorId, progress, onClose, onRegistered }: ProviderRegistrationModalProps): react_jsx_runtime.JSX.Element;
|
|
447
|
+
declare function ProviderRegistrationModal({ corridorId, cardProviderId, progress, onClose, onRegistered, }: ProviderRegistrationModalProps): react_jsx_runtime.JSX.Element;
|
|
437
448
|
|
|
438
449
|
interface KycStatusProps {
|
|
439
450
|
status: KycStatus$1;
|
|
@@ -483,6 +494,11 @@ interface EarnModalProps {
|
|
|
483
494
|
}
|
|
484
495
|
declare function EarnModal({ onClose }: EarnModalProps): react_jsx_runtime.JSX.Element;
|
|
485
496
|
|
|
497
|
+
interface CardModalProps {
|
|
498
|
+
onClose: () => void;
|
|
499
|
+
}
|
|
500
|
+
declare function CardModal({ onClose }: CardModalProps): react_jsx_runtime.JSX.Element;
|
|
501
|
+
|
|
486
502
|
interface ReceiveModalProps {
|
|
487
503
|
onClose: () => void;
|
|
488
504
|
}
|
|
@@ -1000,4 +1016,4 @@ interface DistributionRulesModalTemplateProps {
|
|
|
1000
1016
|
}
|
|
1001
1017
|
declare function DistributionRulesModalTemplate({ theme, accentColor, styleOverrides, state, claimingId, claimErrors, claimedIds, onRefresh, onClaim, onClose, }: DistributionRulesModalTemplateProps): react_jsx_runtime.JSX.Element;
|
|
1002
1018
|
|
|
1003
|
-
export { type AuthModalProps, ChainSelect, type ChainSelectProps, type CustomTrustlineModalTemplateProps, DistributionRulesModal, DistributionRulesModalTemplate, EarnModal, EnabledAssetsModal, EnabledAssetsModalTemplate, type EnabledAssetsModalTemplateProps, KycModal, KycModalTemplate, KycStatus, type KycStep, type LoginButtonProps, LoginModalTemplate, type ModalChrome, type ModalStyleOverrides, type ModalVariant, type PollarConfig, PollarProvider, type PollarStyles, ProviderRegistrationModal, type RampStep, RampWidget, RampWidgetTemplate, ReceiveModal, ReceiveModalTemplate, type ReceiveModalTemplateProps, RegistryCheckModal, RequirementFormModal, RouteDisplay, SendModal, SendModalTemplate, type SendModalTemplateProps, SessionsModal, SessionsModalTemplate, type SessionsModalTemplateProps, type SwapAssetOption, SwapModal, SwapModalTemplate, type SwapModalTemplateProps, TransactionModalTemplate, type TransactionModalTemplateProps, TxHistoryModalTemplate, TxStatusView, type TxStatusViewProps, type UseChainsResult, WalletBalanceModal, WalletBalanceModalTemplate, type WalletBalanceModalTemplateProps, WalletButton, WalletButtonTemplate, type WalletButtonTemplateProps, addressForChain, browserPasskeyCeremony, browserPasskeySigner, buildModalCssVars, chainsOf, createPollarAdapterHook, modalChrome, readableTextOn, resolveChain, useChains, usePollar, walletNotReadyReason };
|
|
1019
|
+
export { type AuthModalProps, CardModal, ChainSelect, type ChainSelectProps, type CustomTrustlineModalTemplateProps, DistributionRulesModal, DistributionRulesModalTemplate, EarnModal, EnabledAssetsModal, EnabledAssetsModalTemplate, type EnabledAssetsModalTemplateProps, KycModal, KycModalTemplate, KycStatus, type KycStep, type LoginButtonProps, LoginModalTemplate, type ModalChrome, type ModalStyleOverrides, type ModalVariant, type PollarConfig, PollarProvider, type PollarStyles, ProviderRegistrationModal, type RampStep, RampWidget, RampWidgetTemplate, ReceiveModal, ReceiveModalTemplate, type ReceiveModalTemplateProps, RegistryCheckModal, RequirementFormModal, RouteDisplay, SendModal, SendModalTemplate, type SendModalTemplateProps, SessionsModal, SessionsModalTemplate, type SessionsModalTemplateProps, type SwapAssetOption, SwapModal, SwapModalTemplate, type SwapModalTemplateProps, TransactionModalTemplate, type TransactionModalTemplateProps, TxHistoryModalTemplate, TxStatusView, type TxStatusViewProps, type UseChainsResult, WalletBalanceModal, WalletBalanceModalTemplate, type WalletBalanceModalTemplateProps, WalletButton, WalletButtonTemplate, type WalletButtonTemplateProps, addressForChain, browserPasskeyCeremony, browserPasskeySigner, buildModalCssVars, chainsOf, createPollarAdapterHook, modalChrome, readableTextOn, resolveChain, useChains, usePollar, walletNotReadyReason };
|
package/dist/index.d.ts
CHANGED
|
@@ -167,6 +167,12 @@ interface PollarContextValue {
|
|
|
167
167
|
earnWithdraw: (params: EarnTxParams) => Promise<SubmitOutcome>;
|
|
168
168
|
/** Open the Earn modal. */
|
|
169
169
|
openEarnModal: () => void;
|
|
170
|
+
/**
|
|
171
|
+
* Open the Cards modal: sign-up, identity verification, issuing, the card
|
|
172
|
+
* itself and its activity. The card calls live on {@link PollarClient}
|
|
173
|
+
* (`getCardProviders`, `issueCard`, `revealCardSecrets`, ...).
|
|
174
|
+
*/
|
|
175
|
+
openCardModal: () => void;
|
|
170
176
|
openDistributionRulesModal: () => void;
|
|
171
177
|
adapters?: PollarAdapters;
|
|
172
178
|
}
|
|
@@ -375,6 +381,8 @@ declare function useChains(): UseChainsResult;
|
|
|
375
381
|
|
|
376
382
|
interface KycModalProps {
|
|
377
383
|
corridorId?: string;
|
|
384
|
+
/** A card provider's steps, in place of a route's. */
|
|
385
|
+
cardProviderId?: string;
|
|
378
386
|
/** Open this option directly instead of listing the choices (the one a ramp's KYC gate names). */
|
|
379
387
|
providerId?: string;
|
|
380
388
|
onClose: () => void;
|
|
@@ -385,7 +393,7 @@ interface KycModalProps {
|
|
|
385
393
|
/** Called when KYC is successfully approved. */
|
|
386
394
|
onApproved?: () => void;
|
|
387
395
|
}
|
|
388
|
-
declare function KycModal({ onClose, country, level, onApproved, corridorId, providerId }: KycModalProps): react_jsx_runtime.JSX.Element;
|
|
396
|
+
declare function KycModal({ onClose, country, level, onApproved, corridorId, cardProviderId, providerId, }: KycModalProps): react_jsx_runtime.JSX.Element;
|
|
389
397
|
|
|
390
398
|
interface RequirementFormModalProps {
|
|
391
399
|
formId: string;
|
|
@@ -419,7 +427,10 @@ interface RegistryCheckModalProps {
|
|
|
419
427
|
declare function RegistryCheckModal({ optionId, progress, onClose, onApproved }: RegistryCheckModalProps): react_jsx_runtime.JSX.Element;
|
|
420
428
|
|
|
421
429
|
interface ProviderRegistrationModalProps {
|
|
422
|
-
|
|
430
|
+
/** The route whose ramp the user registers with. */
|
|
431
|
+
corridorId?: string;
|
|
432
|
+
/** Or the card provider. One of the two. */
|
|
433
|
+
cardProviderId?: string;
|
|
423
434
|
/** Position of this step over the route's steps, when known. */
|
|
424
435
|
progress?: {
|
|
425
436
|
position: number;
|
|
@@ -433,7 +444,7 @@ interface ProviderRegistrationModalProps {
|
|
|
433
444
|
* One PROVIDER_REGISTRATION step: what the ramp provider receives, listed before the
|
|
434
445
|
* user consents. Registering is the consent; nothing is sent until then.
|
|
435
446
|
*/
|
|
436
|
-
declare function ProviderRegistrationModal({ corridorId, progress, onClose, onRegistered }: ProviderRegistrationModalProps): react_jsx_runtime.JSX.Element;
|
|
447
|
+
declare function ProviderRegistrationModal({ corridorId, cardProviderId, progress, onClose, onRegistered, }: ProviderRegistrationModalProps): react_jsx_runtime.JSX.Element;
|
|
437
448
|
|
|
438
449
|
interface KycStatusProps {
|
|
439
450
|
status: KycStatus$1;
|
|
@@ -483,6 +494,11 @@ interface EarnModalProps {
|
|
|
483
494
|
}
|
|
484
495
|
declare function EarnModal({ onClose }: EarnModalProps): react_jsx_runtime.JSX.Element;
|
|
485
496
|
|
|
497
|
+
interface CardModalProps {
|
|
498
|
+
onClose: () => void;
|
|
499
|
+
}
|
|
500
|
+
declare function CardModal({ onClose }: CardModalProps): react_jsx_runtime.JSX.Element;
|
|
501
|
+
|
|
486
502
|
interface ReceiveModalProps {
|
|
487
503
|
onClose: () => void;
|
|
488
504
|
}
|
|
@@ -1000,4 +1016,4 @@ interface DistributionRulesModalTemplateProps {
|
|
|
1000
1016
|
}
|
|
1001
1017
|
declare function DistributionRulesModalTemplate({ theme, accentColor, styleOverrides, state, claimingId, claimErrors, claimedIds, onRefresh, onClaim, onClose, }: DistributionRulesModalTemplateProps): react_jsx_runtime.JSX.Element;
|
|
1002
1018
|
|
|
1003
|
-
export { type AuthModalProps, ChainSelect, type ChainSelectProps, type CustomTrustlineModalTemplateProps, DistributionRulesModal, DistributionRulesModalTemplate, EarnModal, EnabledAssetsModal, EnabledAssetsModalTemplate, type EnabledAssetsModalTemplateProps, KycModal, KycModalTemplate, KycStatus, type KycStep, type LoginButtonProps, LoginModalTemplate, type ModalChrome, type ModalStyleOverrides, type ModalVariant, type PollarConfig, PollarProvider, type PollarStyles, ProviderRegistrationModal, type RampStep, RampWidget, RampWidgetTemplate, ReceiveModal, ReceiveModalTemplate, type ReceiveModalTemplateProps, RegistryCheckModal, RequirementFormModal, RouteDisplay, SendModal, SendModalTemplate, type SendModalTemplateProps, SessionsModal, SessionsModalTemplate, type SessionsModalTemplateProps, type SwapAssetOption, SwapModal, SwapModalTemplate, type SwapModalTemplateProps, TransactionModalTemplate, type TransactionModalTemplateProps, TxHistoryModalTemplate, TxStatusView, type TxStatusViewProps, type UseChainsResult, WalletBalanceModal, WalletBalanceModalTemplate, type WalletBalanceModalTemplateProps, WalletButton, WalletButtonTemplate, type WalletButtonTemplateProps, addressForChain, browserPasskeyCeremony, browserPasskeySigner, buildModalCssVars, chainsOf, createPollarAdapterHook, modalChrome, readableTextOn, resolveChain, useChains, usePollar, walletNotReadyReason };
|
|
1019
|
+
export { type AuthModalProps, CardModal, ChainSelect, type ChainSelectProps, type CustomTrustlineModalTemplateProps, DistributionRulesModal, DistributionRulesModalTemplate, EarnModal, EnabledAssetsModal, EnabledAssetsModalTemplate, type EnabledAssetsModalTemplateProps, KycModal, KycModalTemplate, KycStatus, type KycStep, type LoginButtonProps, LoginModalTemplate, type ModalChrome, type ModalStyleOverrides, type ModalVariant, type PollarConfig, PollarProvider, type PollarStyles, ProviderRegistrationModal, type RampStep, RampWidget, RampWidgetTemplate, ReceiveModal, ReceiveModalTemplate, type ReceiveModalTemplateProps, RegistryCheckModal, RequirementFormModal, RouteDisplay, SendModal, SendModalTemplate, type SendModalTemplateProps, SessionsModal, SessionsModalTemplate, type SessionsModalTemplateProps, type SwapAssetOption, SwapModal, SwapModalTemplate, type SwapModalTemplateProps, TransactionModalTemplate, type TransactionModalTemplateProps, TxHistoryModalTemplate, TxStatusView, type TxStatusViewProps, type UseChainsResult, WalletBalanceModal, WalletBalanceModalTemplate, type WalletBalanceModalTemplateProps, WalletButton, WalletButtonTemplate, type WalletButtonTemplateProps, addressForChain, browserPasskeyCeremony, browserPasskeySigner, buildModalCssVars, chainsOf, createPollarAdapterHook, modalChrome, readableTextOn, resolveChain, useChains, usePollar, walletNotReadyReason };
|