@pollar/react 0.12.1-rc.25 → 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 +387 -280
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +19 -4
- package/dist/index.d.ts +19 -4
- package/dist/index.js +1633 -1326
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1634 -1327
- 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,8 +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;
|
|
1360
|
-
|
|
1361
|
-
|
|
1366
|
+
/** The co-sign approval the running order waits on, drawn on the current step's screen. */
|
|
1367
|
+
cosignPrompt?: ReactNode;
|
|
1368
|
+
/** Cancels the running order; absent, leaving only closes or starts another. */
|
|
1369
|
+
onCancelOrder?: (() => void) | undefined;
|
|
1370
|
+
cancelling?: boolean;
|
|
1371
|
+
/** Why the order could not be cancelled. */
|
|
1372
|
+
cancelError?: string | null;
|
|
1373
|
+
}
|
|
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;
|
|
1362
1375
|
|
|
1363
1376
|
interface TransactionModalTemplateProps {
|
|
1364
1377
|
theme: string;
|
|
@@ -1667,8 +1680,10 @@ interface CosignModalTemplateProps {
|
|
|
1667
1680
|
confirmingClose?: boolean;
|
|
1668
1681
|
onKeepOpen?: () => void;
|
|
1669
1682
|
onCloseAnyway?: () => void;
|
|
1683
|
+
/** Inside another flow's modal: no card, no close button and no footer of its own. */
|
|
1684
|
+
inline?: boolean;
|
|
1670
1685
|
}
|
|
1671
|
-
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;
|
|
1672
1687
|
|
|
1673
1688
|
interface CustodyMigrationModalProps {
|
|
1674
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,8 +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;
|
|
1360
|
-
|
|
1361
|
-
|
|
1366
|
+
/** The co-sign approval the running order waits on, drawn on the current step's screen. */
|
|
1367
|
+
cosignPrompt?: ReactNode;
|
|
1368
|
+
/** Cancels the running order; absent, leaving only closes or starts another. */
|
|
1369
|
+
onCancelOrder?: (() => void) | undefined;
|
|
1370
|
+
cancelling?: boolean;
|
|
1371
|
+
/** Why the order could not be cancelled. */
|
|
1372
|
+
cancelError?: string | null;
|
|
1373
|
+
}
|
|
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;
|
|
1362
1375
|
|
|
1363
1376
|
interface TransactionModalTemplateProps {
|
|
1364
1377
|
theme: string;
|
|
@@ -1667,8 +1680,10 @@ interface CosignModalTemplateProps {
|
|
|
1667
1680
|
confirmingClose?: boolean;
|
|
1668
1681
|
onKeepOpen?: () => void;
|
|
1669
1682
|
onCloseAnyway?: () => void;
|
|
1683
|
+
/** Inside another flow's modal: no card, no close button and no footer of its own. */
|
|
1684
|
+
inline?: boolean;
|
|
1670
1685
|
}
|
|
1671
|
-
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;
|
|
1672
1687
|
|
|
1673
1688
|
interface CustodyMigrationModalProps {
|
|
1674
1689
|
state: CustodyMigrationState;
|