@pollar/react 0.12.1-rc.23 → 0.12.1-rc.26
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 +175 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +621 -97
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +622 -98
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1357,8 +1357,13 @@ interface RampWidgetTemplateProps {
|
|
|
1357
1357
|
onClose: () => void;
|
|
1358
1358
|
/** A leg's signature waiting for the user's yes, answered in the status view. */
|
|
1359
1359
|
confirmation?: PendingConfirmation | null | undefined;
|
|
1360
|
+
/** Cancels the running order; absent, leaving only closes or starts another. */
|
|
1361
|
+
onCancelOrder?: (() => void) | undefined;
|
|
1362
|
+
cancelling?: boolean;
|
|
1363
|
+
/** Why the order could not be cancelled. */
|
|
1364
|
+
cancelError?: string | null;
|
|
1360
1365
|
}
|
|
1361
|
-
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, }: RampWidgetTemplateProps): react_jsx_runtime.JSX.Element;
|
|
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;
|
|
1362
1367
|
|
|
1363
1368
|
interface TransactionModalTemplateProps {
|
|
1364
1369
|
theme: string;
|
|
@@ -1725,6 +1730,8 @@ interface RecoveryModalTemplateProps {
|
|
|
1725
1730
|
notice: string | null;
|
|
1726
1731
|
emailDraft: string;
|
|
1727
1732
|
codeSent: boolean;
|
|
1733
|
+
/** Seconds until the address in view may get another code; 0 when it may now. */
|
|
1734
|
+
sendWaitSeconds: number;
|
|
1728
1735
|
/** The recovery phrase, once exported. */
|
|
1729
1736
|
phrase: string | null;
|
|
1730
1737
|
onView: (view: RecoveryView) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1357,8 +1357,13 @@ interface RampWidgetTemplateProps {
|
|
|
1357
1357
|
onClose: () => void;
|
|
1358
1358
|
/** A leg's signature waiting for the user's yes, answered in the status view. */
|
|
1359
1359
|
confirmation?: PendingConfirmation | null | undefined;
|
|
1360
|
+
/** Cancels the running order; absent, leaving only closes or starts another. */
|
|
1361
|
+
onCancelOrder?: (() => void) | undefined;
|
|
1362
|
+
cancelling?: boolean;
|
|
1363
|
+
/** Why the order could not be cancelled. */
|
|
1364
|
+
cancelError?: string | null;
|
|
1360
1365
|
}
|
|
1361
|
-
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, }: RampWidgetTemplateProps): react_jsx_runtime.JSX.Element;
|
|
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;
|
|
1362
1367
|
|
|
1363
1368
|
interface TransactionModalTemplateProps {
|
|
1364
1369
|
theme: string;
|
|
@@ -1725,6 +1730,8 @@ interface RecoveryModalTemplateProps {
|
|
|
1725
1730
|
notice: string | null;
|
|
1726
1731
|
emailDraft: string;
|
|
1727
1732
|
codeSent: boolean;
|
|
1733
|
+
/** Seconds until the address in view may get another code; 0 when it may now. */
|
|
1734
|
+
sendWaitSeconds: number;
|
|
1728
1735
|
/** The recovery phrase, once exported. */
|
|
1729
1736
|
phrase: string | null;
|
|
1730
1737
|
onView: (view: RecoveryView) => void;
|