@pollar/react 0.12.1-rc.26 → 0.12.1-rc.27
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 +315 -295
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +1675 -1609
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1676 -1610
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -520,6 +520,12 @@ interface PollarContextValue {
|
|
|
520
520
|
* Returns the unregister.
|
|
521
521
|
*/
|
|
522
522
|
registerConfirmationHost: () => () => void;
|
|
523
|
+
/**
|
|
524
|
+
* A flow that shows its co-sign approvals inside its own modal (the ramp's running
|
|
525
|
+
* order): while one is registered the provider does not open `CosignModal` over it.
|
|
526
|
+
* Returns the unregister.
|
|
527
|
+
*/
|
|
528
|
+
registerCosignHost: () => () => void;
|
|
523
529
|
appConfig: PollarConfig;
|
|
524
530
|
styles: PollarStyles;
|
|
525
531
|
/** Remote app-config load state. 'loading' while the initial fetch is in
|
|
@@ -1140,7 +1146,7 @@ interface CosignModalProps {
|
|
|
1140
1146
|
* against Turnkey before enabling Approve, so the user only ever confirms a
|
|
1141
1147
|
* transaction the device checked itself.
|
|
1142
1148
|
*/
|
|
1143
|
-
declare function CosignModal(
|
|
1149
|
+
declare function CosignModal(props: CosignModalProps): react_jsx_runtime.JSX.Element;
|
|
1144
1150
|
|
|
1145
1151
|
interface RecoveryModalProps {
|
|
1146
1152
|
onClose: () => void;
|
|
@@ -1357,13 +1363,15 @@ interface RampWidgetTemplateProps {
|
|
|
1357
1363
|
onClose: () => void;
|
|
1358
1364
|
/** A leg's signature waiting for the user's yes, answered in the status view. */
|
|
1359
1365
|
confirmation?: PendingConfirmation | null | undefined;
|
|
1366
|
+
/** The co-sign approval the running order waits on, drawn on the current step's screen. */
|
|
1367
|
+
cosignPrompt?: ReactNode;
|
|
1360
1368
|
/** Cancels the running order; absent, leaving only closes or starts another. */
|
|
1361
1369
|
onCancelOrder?: (() => void) | undefined;
|
|
1362
1370
|
cancelling?: boolean;
|
|
1363
1371
|
/** Why the order could not be cancelled. */
|
|
1364
1372
|
cancelError?: string | null;
|
|
1365
1373
|
}
|
|
1366
|
-
declare function RampWidgetTemplate({ theme, accentColor, styleOverrides, network, step, flowSteps, flowStepIndex, direction, routesLoading, countries, country, fiats, fiat, assets, asset, amount, sellAvailable, quotes, rejected, startingQuoteId, fields, fieldValues, order, pendingOrders, isLoading, refreshing, signing, errorMsg, notice, onDirectionChange, onCountryChange, onFiatChange, onAssetChange, onAmountChange, onFindRoute, quoting, routeChoice, chosenQuote, onRouteChoice, onContinue, onSelectQuote, onVerifyRoute, trustingAsset, onTrustAsset, walletBusy, custodyChoice, onWalletStep, noChains, retrying, onRetryOrder, onRequote, onSetUpRecovery, recoveryMissing, support, checkingPayment, onCheckPayment, pollTrouble, onFieldChange, onContactContinue, onSign, onApprove, onResumeOrder, onNewOrder, onBack, onStepSelect, onRetry, onRefresh, onClose, language: languageProp, confirmation, onCancelOrder, cancelling, cancelError, }: RampWidgetTemplateProps): react_jsx_runtime.JSX.Element;
|
|
1374
|
+
declare function RampWidgetTemplate({ theme, accentColor, styleOverrides, network, step, flowSteps, flowStepIndex, direction, routesLoading, countries, country, fiats, fiat, assets, asset, amount, sellAvailable, quotes, rejected, startingQuoteId, fields, fieldValues, order, pendingOrders, isLoading, refreshing, signing, errorMsg, notice, onDirectionChange, onCountryChange, onFiatChange, onAssetChange, onAmountChange, onFindRoute, quoting, routeChoice, chosenQuote, onRouteChoice, onContinue, onSelectQuote, onVerifyRoute, trustingAsset, onTrustAsset, walletBusy, custodyChoice, onWalletStep, noChains, retrying, onRetryOrder, onRequote, onSetUpRecovery, recoveryMissing, support, checkingPayment, onCheckPayment, pollTrouble, onFieldChange, onContactContinue, onSign, onApprove, onResumeOrder, onNewOrder, onBack, onStepSelect, onRetry, onRefresh, onClose, language: languageProp, confirmation, onCancelOrder, cosignPrompt, cancelling, cancelError, }: RampWidgetTemplateProps): react_jsx_runtime.JSX.Element;
|
|
1367
1375
|
|
|
1368
1376
|
interface TransactionModalTemplateProps {
|
|
1369
1377
|
theme: string;
|
|
@@ -1672,8 +1680,10 @@ interface CosignModalTemplateProps {
|
|
|
1672
1680
|
confirmingClose?: boolean;
|
|
1673
1681
|
onKeepOpen?: () => void;
|
|
1674
1682
|
onCloseAnyway?: () => void;
|
|
1683
|
+
/** Inside another flow's modal: no card, no close button and no footer of its own. */
|
|
1684
|
+
inline?: boolean;
|
|
1675
1685
|
}
|
|
1676
|
-
declare function CosignModalTemplate({ theme, accentColor, styleOverrides, pending, current, verification, busy, error, approveBlocked, deviceNotLinked, onLinkDevice, lastResolved, history, explorerUrlOf, closesIn, nextStep, language: languageProp, network, onSelect, onApprove, onReject, onClose, confirmingClose, onKeepOpen, onCloseAnyway, }: CosignModalTemplateProps): react_jsx_runtime.JSX.Element;
|
|
1686
|
+
declare function CosignModalTemplate({ theme, accentColor, styleOverrides, pending, current, verification, busy, error, approveBlocked, deviceNotLinked, onLinkDevice, lastResolved, history, explorerUrlOf, closesIn, nextStep, language: languageProp, network, onSelect, onApprove, onReject, onClose, confirmingClose, onKeepOpen, onCloseAnyway, inline, }: CosignModalTemplateProps): react_jsx_runtime.JSX.Element;
|
|
1677
1687
|
|
|
1678
1688
|
interface CustodyMigrationModalProps {
|
|
1679
1689
|
state: CustodyMigrationState;
|
package/dist/index.d.ts
CHANGED
|
@@ -520,6 +520,12 @@ interface PollarContextValue {
|
|
|
520
520
|
* Returns the unregister.
|
|
521
521
|
*/
|
|
522
522
|
registerConfirmationHost: () => () => void;
|
|
523
|
+
/**
|
|
524
|
+
* A flow that shows its co-sign approvals inside its own modal (the ramp's running
|
|
525
|
+
* order): while one is registered the provider does not open `CosignModal` over it.
|
|
526
|
+
* Returns the unregister.
|
|
527
|
+
*/
|
|
528
|
+
registerCosignHost: () => () => void;
|
|
523
529
|
appConfig: PollarConfig;
|
|
524
530
|
styles: PollarStyles;
|
|
525
531
|
/** Remote app-config load state. 'loading' while the initial fetch is in
|
|
@@ -1140,7 +1146,7 @@ interface CosignModalProps {
|
|
|
1140
1146
|
* against Turnkey before enabling Approve, so the user only ever confirms a
|
|
1141
1147
|
* transaction the device checked itself.
|
|
1142
1148
|
*/
|
|
1143
|
-
declare function CosignModal(
|
|
1149
|
+
declare function CosignModal(props: CosignModalProps): react_jsx_runtime.JSX.Element;
|
|
1144
1150
|
|
|
1145
1151
|
interface RecoveryModalProps {
|
|
1146
1152
|
onClose: () => void;
|
|
@@ -1357,13 +1363,15 @@ interface RampWidgetTemplateProps {
|
|
|
1357
1363
|
onClose: () => void;
|
|
1358
1364
|
/** A leg's signature waiting for the user's yes, answered in the status view. */
|
|
1359
1365
|
confirmation?: PendingConfirmation | null | undefined;
|
|
1366
|
+
/** The co-sign approval the running order waits on, drawn on the current step's screen. */
|
|
1367
|
+
cosignPrompt?: ReactNode;
|
|
1360
1368
|
/** Cancels the running order; absent, leaving only closes or starts another. */
|
|
1361
1369
|
onCancelOrder?: (() => void) | undefined;
|
|
1362
1370
|
cancelling?: boolean;
|
|
1363
1371
|
/** Why the order could not be cancelled. */
|
|
1364
1372
|
cancelError?: string | null;
|
|
1365
1373
|
}
|
|
1366
|
-
declare function RampWidgetTemplate({ theme, accentColor, styleOverrides, network, step, flowSteps, flowStepIndex, direction, routesLoading, countries, country, fiats, fiat, assets, asset, amount, sellAvailable, quotes, rejected, startingQuoteId, fields, fieldValues, order, pendingOrders, isLoading, refreshing, signing, errorMsg, notice, onDirectionChange, onCountryChange, onFiatChange, onAssetChange, onAmountChange, onFindRoute, quoting, routeChoice, chosenQuote, onRouteChoice, onContinue, onSelectQuote, onVerifyRoute, trustingAsset, onTrustAsset, walletBusy, custodyChoice, onWalletStep, noChains, retrying, onRetryOrder, onRequote, onSetUpRecovery, recoveryMissing, support, checkingPayment, onCheckPayment, pollTrouble, onFieldChange, onContactContinue, onSign, onApprove, onResumeOrder, onNewOrder, onBack, onStepSelect, onRetry, onRefresh, onClose, language: languageProp, confirmation, onCancelOrder, cancelling, cancelError, }: RampWidgetTemplateProps): react_jsx_runtime.JSX.Element;
|
|
1374
|
+
declare function RampWidgetTemplate({ theme, accentColor, styleOverrides, network, step, flowSteps, flowStepIndex, direction, routesLoading, countries, country, fiats, fiat, assets, asset, amount, sellAvailable, quotes, rejected, startingQuoteId, fields, fieldValues, order, pendingOrders, isLoading, refreshing, signing, errorMsg, notice, onDirectionChange, onCountryChange, onFiatChange, onAssetChange, onAmountChange, onFindRoute, quoting, routeChoice, chosenQuote, onRouteChoice, onContinue, onSelectQuote, onVerifyRoute, trustingAsset, onTrustAsset, walletBusy, custodyChoice, onWalletStep, noChains, retrying, onRetryOrder, onRequote, onSetUpRecovery, recoveryMissing, support, checkingPayment, onCheckPayment, pollTrouble, onFieldChange, onContactContinue, onSign, onApprove, onResumeOrder, onNewOrder, onBack, onStepSelect, onRetry, onRefresh, onClose, language: languageProp, confirmation, onCancelOrder, cosignPrompt, cancelling, cancelError, }: RampWidgetTemplateProps): react_jsx_runtime.JSX.Element;
|
|
1367
1375
|
|
|
1368
1376
|
interface TransactionModalTemplateProps {
|
|
1369
1377
|
theme: string;
|
|
@@ -1672,8 +1680,10 @@ interface CosignModalTemplateProps {
|
|
|
1672
1680
|
confirmingClose?: boolean;
|
|
1673
1681
|
onKeepOpen?: () => void;
|
|
1674
1682
|
onCloseAnyway?: () => void;
|
|
1683
|
+
/** Inside another flow's modal: no card, no close button and no footer of its own. */
|
|
1684
|
+
inline?: boolean;
|
|
1675
1685
|
}
|
|
1676
|
-
declare function CosignModalTemplate({ theme, accentColor, styleOverrides, pending, current, verification, busy, error, approveBlocked, deviceNotLinked, onLinkDevice, lastResolved, history, explorerUrlOf, closesIn, nextStep, language: languageProp, network, onSelect, onApprove, onReject, onClose, confirmingClose, onKeepOpen, onCloseAnyway, }: CosignModalTemplateProps): react_jsx_runtime.JSX.Element;
|
|
1686
|
+
declare function CosignModalTemplate({ theme, accentColor, styleOverrides, pending, current, verification, busy, error, approveBlocked, deviceNotLinked, onLinkDevice, lastResolved, history, explorerUrlOf, closesIn, nextStep, language: languageProp, network, onSelect, onApprove, onReject, onClose, confirmingClose, onKeepOpen, onCloseAnyway, inline, }: CosignModalTemplateProps): react_jsx_runtime.JSX.Element;
|
|
1677
1687
|
|
|
1678
1688
|
interface CustodyMigrationModalProps {
|
|
1679
1689
|
state: CustodyMigrationState;
|