@stridge/kit 0.1.0-alpha.3 → 0.1.0-alpha.30
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/README.md +22 -6
- package/dist/KitProvider.d.ts +29 -0
- package/dist/KitProvider.js +1 -1
- package/dist/_internal/withdraw/driver/index.d.ts +2 -2
- package/dist/deposit/compound/index.d.ts +2 -2
- package/dist/drivers/stridge/createStridgeDepositDriver.js +1 -1
- package/dist/drivers/stridge/createStridgeWithdrawDriver.d.ts +10 -12
- package/dist/drivers/stridge/createStridgeWithdrawDriver.js +1 -1
- package/dist/drivers/stridge/internal/metadata.js +1 -1
- package/dist/drivers/stridge/types.d.ts +7 -4
- package/dist/drivers/stridge-mock/createStridgeMockWithdrawDriver.d.ts +3 -3
- package/dist/drivers/stridge-mock/createStridgeMockWithdrawDriver.js +1 -1
- package/dist/drivers/stridge-mock/fixtures.d.ts +7 -5
- package/dist/drivers/stridge-mock/fixtures.js +1 -1
- package/dist/flows/deposit/dialog/DepositDialog.js +1 -1
- package/dist/flows/deposit/orchestrator/controller.js +1 -1
- package/dist/flows/deposit/orchestrator/types.d.ts +30 -1
- package/dist/flows/deposit/orchestrator/useDeposit.d.ts +18 -1
- package/dist/flows/deposit/orchestrator/useDeposit.js +1 -1
- package/dist/flows/deposit/widgets/deposit/Deposit.js +1 -1
- package/dist/flows/deposit/widgets/deposit/compound/components/Method.d.ts +6 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/Method.js +1 -1
- package/dist/flows/deposit/widgets/deposit/compound/types.d.ts +6 -3
- package/dist/flows/deposit/widgets/deposit-status-banner/DepositStatusBanner.d.ts +7 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/DepositStatusBanner.js +1 -1
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.js +1 -1
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Hero.js +1 -1
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/PrimaryAction.js +1 -1
- package/dist/flows/deposit/widgets/processing-state/ProcessingState.js +1 -1
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Address.js +1 -1
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Disclosure.d.ts +2 -1
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Disclosure.js +1 -1
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/QrCode.d.ts +4 -10
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/QrCode.js +1 -1
- package/dist/flows/shared/transformers/pickRelevantSettlement.js +1 -1
- package/dist/flows/withdraw/bindings/WithdrawBindings.d.ts +92 -0
- package/dist/flows/withdraw/bindings/WithdrawBindings.js +1 -0
- package/dist/flows/withdraw/bindings/index.d.ts +1 -0
- package/dist/flows/withdraw/bindings/index.js +1 -0
- package/dist/flows/withdraw/dialog/WithdrawDialog.d.ts +58 -12
- package/dist/flows/withdraw/dialog/WithdrawDialog.js +1 -1
- package/dist/flows/withdraw/driver/payloads.d.ts +16 -1
- package/dist/flows/withdraw/driver/transformers/settlementToWithdrawalPayload.js +1 -1
- package/dist/flows/withdraw/driver/transformers/supportedAssetsToReceiveOptionsPayload.js +1 -1
- package/dist/flows/withdraw/driver/types.d.ts +53 -11
- package/dist/flows/withdraw/orchestrator/controller.js +1 -1
- package/dist/flows/withdraw/orchestrator/index.d.ts +1 -1
- package/dist/flows/withdraw/orchestrator/reducer.js +1 -1
- package/dist/flows/withdraw/orchestrator/types.d.ts +106 -32
- package/dist/flows/withdraw/orchestrator/useWithdraw.d.ts +18 -1
- package/dist/flows/withdraw/orchestrator/useWithdraw.js +1 -1
- package/dist/flows/withdraw/widgets/withdraw-form/WithdrawForm.js +1 -1
- package/dist/flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.js +1 -1
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/RecipientField.d.ts +7 -5
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/RecipientField.js +1 -1
- package/dist/flows/withdraw/widgets/withdraw-form/compound/types.d.ts +15 -5
- package/dist/flows/withdraw/widgets/withdraw-form/validation.js +1 -1
- package/dist/flows/withdraw/widgets/withdraw-in-progress/WithdrawInProgress.d.ts +2 -1
- package/dist/flows/withdraw/widgets/withdraw-in-progress/WithdrawInProgress.js +1 -1
- package/dist/i18n/index.d.ts +5 -4
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/locales/ar.js +1 -1
- package/dist/i18n/locales/es.js +1 -1
- package/dist/i18n/locales/source-keys.d.ts +12 -0
- package/dist/i18n/locales/source-keys.js +0 -0
- package/dist/icons/index.d.ts +2 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +12 -8
- package/dist/index.js +1 -1
- package/dist/package.js +1 -0
- package/dist/scope/KitPortalScope.js +1 -1
- package/dist/scope/KitScope.d.ts +18 -1
- package/dist/scope/KitScope.js +1 -1
- package/dist/scope/context.d.ts +17 -1
- package/dist/scope/index.d.ts +1 -1
- package/dist/shared/attribution/Attribution.js +1 -0
- package/dist/shared/attribution/Attribution.slots.js +1 -0
- package/dist/shared/attribution/Attribution.styles.js +1 -0
- package/dist/shared/attribution/index.js +1 -0
- package/dist/shared/chains/index.d.ts +48 -29
- package/dist/shared/chains/index.js +1 -1
- package/dist/shared/constants/brand-intercom.js +1 -0
- package/dist/shared/cuer/Cuer.js +1 -0
- package/dist/shared/cuer/QrCode.js +1 -0
- package/dist/shared/cuer/index.js +1 -0
- package/dist/shared/dialog/Frame.js +1 -1
- package/dist/shared/dialog/StepTransition.js +1 -1
- package/dist/shared/driver/types.d.ts +4 -3
- package/dist/shared/i18n/KitI18nProvider.d.ts +11 -8
- package/dist/shared/i18n/KitI18nProvider.js +1 -1
- package/dist/shared/i18n/createKitI18n.d.ts +79 -16
- package/dist/shared/i18n/createKitI18n.js +1 -1
- package/dist/shared/i18n/useLingui.d.ts +11 -3
- package/dist/shared/icons/LogoIcon.d.ts +13 -0
- package/dist/shared/icons/LogoIcon.js +1 -0
- package/dist/shared/orchestrator/useSettlementWatcher.js +1 -1
- package/dist/shared/primitives/TxHashValue/TxHashValue.js +1 -1
- package/dist/shared/support/SupportButton.d.ts +1 -0
- package/dist/shared/support/SupportButton.js +1 -0
- package/dist/shared/support/SupportConfigContext.d.ts +1 -0
- package/dist/shared/support/SupportConfigContext.js +1 -0
- package/dist/shared/support/SupportLink.d.ts +1 -0
- package/dist/shared/support/SupportLink.js +1 -0
- package/dist/shared/support/SupportSpinner.d.ts +1 -0
- package/dist/shared/support/SupportSpinner.js +1 -0
- package/dist/shared/support/index.d.ts +2 -0
- package/dist/shared/support/index.js +1 -0
- package/dist/shared/support/intercom-loader.d.ts +17 -0
- package/dist/shared/support/intercom-loader.js +1 -0
- package/dist/shared/support/resolveSupport.d.ts +1 -0
- package/dist/shared/support/resolveSupport.js +1 -0
- package/dist/shared/support/types.d.ts +43 -0
- package/dist/shared/support/useIntercomMerchantContext.d.ts +27 -0
- package/dist/shared/support/useIntercomMerchantContext.js +1 -0
- package/dist/shared/support/useIntercomShutdownOnUnmount.js +1 -0
- package/dist/shared/support/useMerchantContext.d.ts +1 -0
- package/dist/shared/support/useMerchantContext.js +1 -0
- package/dist/shared/support/useSupportTrigger.js +1 -0
- package/dist/shared/terms/TermsButton.d.ts +1 -0
- package/dist/shared/terms/TermsButton.js +1 -0
- package/dist/shared/terms/TermsConfigContext.d.ts +1 -0
- package/dist/shared/terms/TermsConfigContext.js +1 -0
- package/dist/shared/terms/TermsLink.d.ts +1 -0
- package/dist/shared/terms/TermsLink.js +1 -0
- package/dist/shared/terms/index.d.ts +1 -0
- package/dist/shared/terms/index.js +1 -0
- package/dist/shared/terms/resolveTerms.d.ts +1 -0
- package/dist/shared/terms/resolveTerms.js +1 -0
- package/dist/shared/terms/types.d.ts +43 -0
- package/dist/shared/ui/Card/Card.styles.js +1 -1
- package/dist/shared/ui/Details/Details.d.ts +9 -1
- package/dist/shared/ui/Details/Details.styles.js +1 -1
- package/dist/shared/ui/Dialog/Dialog.js +1 -1
- package/dist/shared/ui/Dialog/Dialog.styles.js +1 -1
- package/dist/shared/ui/ExternalLink/ExternalLink.js +1 -1
- package/dist/shared/ui/Select/Select.js +1 -1
- package/dist/shared/ui/WalletRow/WalletRow.d.ts +1 -1
- package/dist/shared/ui/WalletRow/WalletRow.js +1 -1
- package/dist/shared/widgets/amount-entry/compound/components/Hero/Hero.js +1 -1
- package/dist/shared/widgets/amount-entry/compound/components/Hero/SwapBackdrop.js +1 -1
- package/dist/shared/widgets/confirm-transfer/compound/components/Disclaimer.d.ts +4 -3
- package/dist/shared/widgets/confirm-transfer/compound/components/Disclaimer.js +1 -1
- package/dist/shared/widgets/error-state/compound/components/AssetValue.js +1 -1
- package/dist/shared/widgets/error-state/compound/components/HelpInfo.js +1 -1
- package/dist/shared/widgets/error-state/compound/components/StatusValue.js +1 -1
- package/dist/shared/widgets/processing-state/compound/ProcessingState.d.ts +1 -5
- package/dist/shared/widgets/processing-state/compound/ProcessingState.js +1 -1
- package/dist/shared/widgets/processing-state/compound/ProcessingState.slots.d.ts +0 -1
- package/dist/shared/widgets/processing-state/compound/ProcessingState.slots.js +1 -1
- package/dist/shared/widgets/processing-state/compound/ProcessingState.styles.js +1 -1
- package/dist/shared/widgets/processing-state/compound/components/Details.d.ts +6 -1
- package/dist/shared/widgets/processing-state/compound/components/Details.js +1 -1
- package/dist/shared/widgets/processing-state/compound/components/Header.d.ts +4 -3
- package/dist/shared/widgets/processing-state/compound/components/Header.js +1 -1
- package/dist/shared/widgets/processing-state/compound/components/Hero.d.ts +11 -7
- package/dist/shared/widgets/processing-state/compound/components/Hero.js +1 -1
- package/dist/shared/widgets/processing-state/compound/components/Rows.js +1 -1
- package/dist/shared/widgets/processing-state/compound/components/StatusPill.js +1 -1
- package/dist/shared/widgets/processing-state/compound/components/splitAmount.js +1 -0
- package/dist/shared/widgets/processing-state/compound/index.d.ts +1 -1
- package/dist/shared/widgets/processing-state/compound/types.d.ts +7 -26
- package/dist/shared/widgets/success-state/compound/components/Actions.js +1 -1
- package/dist/shared/widgets/success-state/compound/components/AssetValue.js +1 -1
- package/dist/shared/widgets/success-state/compound/components/RouteValue.js +1 -1
- package/dist/shared/widgets/success-state/compound/components/StatusPill.js +1 -1
- package/dist/stridge/StridgeProvider.d.ts +147 -15
- package/dist/stridge/StridgeProvider.js +1 -1
- package/dist/stridge/optionalWagmi.js +1 -0
- package/dist/stridge/stubs.js +1 -1
- package/dist/styles/index.css +58 -12
- package/dist/types.d.ts +5 -4
- package/dist/ui/index.js +1 -1
- package/dist/withdraw/compound/index.d.ts +2 -2
- package/dist/withdraw/dialog/index.d.ts +3 -1
- package/package.json +10 -11
- package/dist/kit/package.js +0 -1
- package/dist/shared/widgets/processing-state/compound/components/Actions.d.ts +0 -17
- package/dist/shared/widgets/processing-state/compound/components/Actions.js +0 -1
- /package/dist/{utils/src/use-copy-to-clipboard.js → shared/utils/useCopyToClipboard.js} +0 -0
|
@@ -58,6 +58,12 @@ type ProcessingStateDialogProps = ProcessingStateProps & DialogShellControls;
|
|
|
58
58
|
interface ProcessingStateProps {
|
|
59
59
|
/** Pre-formatted hero amount string (e.g. `"1.99580"`). Pure layout — no widget-side format. */
|
|
60
60
|
amount: string;
|
|
61
|
+
/**
|
|
62
|
+
* Optional pre-formatted USD hero figure (e.g. `"$4.01"`, `"< $0.01"`). When set, the Hero
|
|
63
|
+
* promotes it to the primary line and demotes `amount` + `creditedAsset.symbol` to a subline.
|
|
64
|
+
* When omitted, the Hero renders the token amount as the primary line (default).
|
|
65
|
+
*/
|
|
66
|
+
amountUsd?: string;
|
|
61
67
|
/**
|
|
62
68
|
* The asset that's crediting. Drives the Hero icon, the Hero amount-line symbol, and the default destination
|
|
63
69
|
* caption.
|
|
@@ -107,15 +113,6 @@ interface ProcessingStateProps {
|
|
|
107
113
|
* inside `<ProcessingState.DetectedAtRow />`.
|
|
108
114
|
*/
|
|
109
115
|
detectedAt?: string;
|
|
110
|
-
/**
|
|
111
|
-
* Click handler routed to {@link ProcessingState.Actions}.
|
|
112
|
-
*/
|
|
113
|
-
onClose?: () => void;
|
|
114
|
-
/**
|
|
115
|
-
* Optional override for the Actions CTA label. Defaults to
|
|
116
|
-
* `"Close — we'll notify you"`.
|
|
117
|
-
*/
|
|
118
|
-
closeLabel?: string;
|
|
119
116
|
/**
|
|
120
117
|
* Compound parts; see `ProcessingState.Header`, `ProcessingState.Hero`, etc.
|
|
121
118
|
*/
|
|
@@ -196,21 +193,5 @@ interface ProcessingStateRowProps {
|
|
|
196
193
|
/** Override the row label. */
|
|
197
194
|
label?: string;
|
|
198
195
|
}
|
|
199
|
-
/**
|
|
200
|
-
* Props for `ProcessingState.Actions`.
|
|
201
|
-
*/
|
|
202
|
-
interface ProcessingStateActionsProps {
|
|
203
|
-
/**
|
|
204
|
-
* Optional override for the CTA click handler. Defaults to the
|
|
205
|
-
* `onClose` set on the {@link ProcessingState} root.
|
|
206
|
-
*/
|
|
207
|
-
onClose?: () => void;
|
|
208
|
-
/**
|
|
209
|
-
* Optional override for the CTA label. Defaults to the `closeLabel`
|
|
210
|
-
* set on the {@link ProcessingState} root, falling back to
|
|
211
|
-
* `"Close — we'll notify you"`.
|
|
212
|
-
*/
|
|
213
|
-
closeLabel?: string;
|
|
214
|
-
}
|
|
215
196
|
//#endregion
|
|
216
|
-
export {
|
|
197
|
+
export { ProcessingStateAsset, ProcessingStateBodyProps, ProcessingStateDetailProps, ProcessingStateDetailsProps, ProcessingStateDialogProps, ProcessingStateHeaderProps, ProcessingStateHeroProps, ProcessingStateProps, ProcessingStateRowProps, ProcessingStateSourceWallet, ProcessingStateStatusPillProps, ProcessingStateTxRef };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{ExternalLink as t}from"../../../../ui/ExternalLink/ExternalLink.js";import"../../../../ui/ExternalLink/index.js";import{ExternalLinkIcon as n}from"../../../../icons/ExternalLinkIcon.js";import"../../../../../icons/index.js";import{Button as r}from"../../../../ui/Button/Button.js";import"../../../../ui/Button/index.js";import{text as i}from"../../../../ui/Text/Text.js";import"../../../../../ui/index.js";import{useSuccessStateContext as a}from"../context.js";import{SUCCESS_STATE_SLOTS as o}from"../SuccessState.slots.js";import{styles as s}from"../SuccessState.styles.js";import{jsx as c,jsxs as l}from"react/jsx-runtime";import*as u from"@stylexjs/stylex";function d({onDone:d,onClose:f,doneLabel:p,closeLabel:m}={}){let h=a(`SuccessState.Actions`),{_:g}=e(),_=d??h.onDone,v=f??h.onClose,y=typeof _==`function`,b=typeof v==`function`,x=p??h.doneLabel??g({id:`DPfwMq`,message:`Done`}),S=m??h.closeLabel??g({id:`yz7wBu`,message:`Close`});return l(`div`,{"data-stridge-slot":o.actions,...u.props(s.actions),children:[l(`div`,{...u.props(s.actionRow,b&&s.actionRowPair),children:[b?c(r,{size:`cta`,variant:`secondary`,onClick:v,...u.props(s.closeButton,s.doneButtonInteractive),children:c(i.span,{size:`callout`,fontWeight:`semibold`,leading:`tight`,tracking:`tight`,color:`inherit`,children:S})}):null,c(r,{size:`cta`,onClick:y?_:void 0,...u.props(s.doneButton,y?s.doneButtonInteractive:s.doneButtonInert),children:c(i.span,{size:`callout`,fontWeight:`semibold`,leading:`tight`,tracking:`tight`,color:`inherit`,children:x})})]}),h.explorer?c(t,{href:h.explorer.url,suffix:c(n,{"aria-hidden":!0}),...u.props(s.explorerLink),children:c(i.span,{size:`meta`,fontWeight:`medium`,leading:`tight`,color:`inherit`,children:h.explorer.label??g({id:`Sjplg3`,message:`View on Explorer`})})}):null]})}export{d as SuccessStateActions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{text as e}from"../../../../ui/Text/Text.js";import{TokenLogo as t}from"../../../../ui/TokenLogo/TokenLogo.js";import"../../../../ui/TokenLogo/index.js";import"../../../../../ui/index.js";import{SUCCESS_STATE_SLOTS as n}from"../SuccessState.slots.js";import{styles as r}from"../SuccessState.styles.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";import*as o from"@stylexjs/stylex";function s({amount:s,symbol:c,chainId:l,address:u,isNative:d,logoUrl:f}){return a(`span`,{"data-stridge-slot":n.assetValue,...o.props(r.assetValue),children:[i(t,{size:`md`,symbol:c,...l===void 0?{}:{chainId:l},...u===void 0?{}:{address:u},...d===void 0?{}:{isNative:d},...f===void 0?{}:{logoUrl:f},hideChainBadge:!0}),i(e.span,{size:`
|
|
1
|
+
"use client";import{text as e}from"../../../../ui/Text/Text.js";import{TokenLogo as t}from"../../../../ui/TokenLogo/TokenLogo.js";import"../../../../ui/TokenLogo/index.js";import"../../../../../ui/index.js";import{SUCCESS_STATE_SLOTS as n}from"../SuccessState.slots.js";import{styles as r}from"../SuccessState.styles.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";import*as o from"@stylexjs/stylex";function s({amount:s,symbol:c,chainId:l,address:u,isNative:d,logoUrl:f}){return a(`span`,{"data-stridge-slot":n.assetValue,...o.props(r.assetValue),children:[i(t,{size:`md`,symbol:c,...l===void 0?{}:{chainId:l},...u===void 0?{}:{address:u},...d===void 0?{}:{isNative:d},...f===void 0?{}:{logoUrl:f},hideChainBadge:!0}),i(e.span,{size:`xs`,fontWeight:`semibold`,leading:`tight`,children:s}),i(e.span,{size:`xs`,fontWeight:`medium`,leading:`tight`,color:`subdued`,children:c})]})}export{s as SuccessStateAssetValue};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{ArrowRightIcon as e}from"../../../../icons/ArrowRightIcon.js";import"../../../../../icons/index.js";import{text as t}from"../../../../ui/Text/Text.js";import"../../../../../ui/index.js";import{SUCCESS_STATE_SLOTS as n}from"../SuccessState.slots.js";import{styles as r}from"../SuccessState.styles.js";import{Fragment as i}from"react";import{jsx as a,jsxs as o}from"react/jsx-runtime";import*as s from"@stylexjs/stylex";function c({hops:c}){return a(`span`,{"data-stridge-slot":n.routeValue,...s.props(r.routeValue),children:c.map((n,c)=>o(i,{children:[c>0?a(e,{"aria-hidden":!0,...s.props(r.routeArrow)}):null,a(t.span,{size:`
|
|
1
|
+
"use client";import{ArrowRightIcon as e}from"../../../../icons/ArrowRightIcon.js";import"../../../../../icons/index.js";import{text as t}from"../../../../ui/Text/Text.js";import"../../../../../ui/index.js";import{SUCCESS_STATE_SLOTS as n}from"../SuccessState.slots.js";import{styles as r}from"../SuccessState.styles.js";import{Fragment as i}from"react";import{jsx as a,jsxs as o}from"react/jsx-runtime";import*as s from"@stylexjs/stylex";function c({hops:c}){return a(`span`,{"data-stridge-slot":n.routeValue,...s.props(r.routeValue),children:c.map((n,c)=>o(i,{children:[c>0?a(e,{"aria-hidden":!0,...s.props(r.routeArrow)}):null,a(t.span,{size:`xs`,fontWeight:`semibold`,leading:`tight`,children:n})]},`${n}-${c}`))})}export{c as SuccessStateRouteValue};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{text as t}from"../../../../ui/Text/Text.js";import"../../../../../ui/index.js";import{SUCCESS_STATE_SLOTS as n}from"../SuccessState.slots.js";import{jsx as r}from"react/jsx-runtime";function i({children:i}){let{_:a}=e(),o=i??a({id:`olEUh2`,message:`Successful`});return r(t.span,{"data-stridge-slot":n.statusPill,size:`
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{text as t}from"../../../../ui/Text/Text.js";import"../../../../../ui/index.js";import{SUCCESS_STATE_SLOTS as n}from"../SuccessState.slots.js";import{jsx as r}from"react/jsx-runtime";function i({children:i}){let{_:a}=e(),o=i??a({id:`olEUh2`,message:`Successful`});return r(t.span,{"data-stridge-slot":n.statusPill,size:`xs`,fontWeight:`semibold`,leading:`tight`,tracking:`tight`,color:`success`,children:o})}export{i as SuccessStateStatusPill};
|
|
@@ -1,29 +1,68 @@
|
|
|
1
|
+
import { DepositMethodConfig, DepositMethodsConfig } from "../flows/deposit/orchestrator/types.js";
|
|
1
2
|
import { KitI18nConfig } from "../shared/i18n/createKitI18n.js";
|
|
3
|
+
import { SupportConfig } from "../shared/support/types.js";
|
|
4
|
+
import { TermsConfig } from "../shared/terms/types.js";
|
|
2
5
|
import { StridgeEnvironment } from "../drivers/stridge/types.js";
|
|
3
|
-
import {
|
|
6
|
+
import { Address } from "viem";
|
|
4
7
|
import { ReactNode } from "react";
|
|
5
8
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
9
|
|
|
7
10
|
//#region src/stridge/StridgeProvider.d.ts
|
|
8
11
|
/**
|
|
9
|
-
* Settlement-asset tuple. `
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
12
|
+
* Settlement-asset tuple. `networkId` is the Stridge network id — the wire value the gateway
|
|
13
|
+
* routes against, read straight off `Uda.supportedAssets()` (`"9006"` for BSC, `"195"` for
|
|
14
|
+
* Tron, …). The kit forwards it to `gateway/start` verbatim; it does not ship a chain catalog,
|
|
15
|
+
* so any network the backend lists works without a kit release. `symbol` is the asset symbol
|
|
16
|
+
* on that network (e.g. `"USDC"`).
|
|
13
17
|
*
|
|
14
18
|
* The same `asset` drives both flows:
|
|
15
19
|
*
|
|
16
|
-
* - **Deposit** settles to this `(
|
|
17
|
-
* - **Withdraw** sources from this `(
|
|
20
|
+
* - **Deposit** settles to this `(networkId, symbol)` at the connected wallet (same-owner pattern).
|
|
21
|
+
* - **Withdraw** sources from this `(networkId, symbol)` of the user's on-chain balance.
|
|
18
22
|
*/
|
|
19
23
|
interface StridgeAsset {
|
|
20
|
-
|
|
24
|
+
networkId: string;
|
|
21
25
|
symbol: string;
|
|
22
26
|
}
|
|
23
27
|
/**
|
|
24
|
-
*
|
|
28
|
+
* Settlement destination for the deposit flow. The kit does not infer a destination from any
|
|
29
|
+
* connected wagmi wallet — businesses pass the treasury / settlement address where deposited
|
|
30
|
+
* funds should land.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* If the gateway-kit admin config has "Same-owner only" enabled (default), `address` must
|
|
34
|
+
* equal {@link StridgeDepositFlowConfig.owner | the deposit owner}. Turn the toggle off — and
|
|
35
|
+
* optionally pair it with a destination whitelist — to route funds to an address that differs
|
|
36
|
+
* from the owner.
|
|
37
|
+
*/
|
|
38
|
+
interface StridgeDepositDestination {
|
|
39
|
+
address: Address;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Stridge `gateway/start.owner` identifier for a single flow. Scopes UDA provisioning and the
|
|
43
|
+
* proactive `gateway/{owner}` settlement poll. The kit treats the address as opaque — businesses
|
|
44
|
+
* pick whatever per-customer (real EOA, derived per-user EOA) or shared (treasury) granularity
|
|
45
|
+
* fits their model.
|
|
46
|
+
*/
|
|
47
|
+
interface StridgeFlowOwner {
|
|
48
|
+
address: Address;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Per-flow deposit tuning.
|
|
25
52
|
*/
|
|
26
53
|
interface StridgeDepositFlowConfig {
|
|
54
|
+
/**
|
|
55
|
+
* Settlement destination address — where settled brand-currency funds land at completion.
|
|
56
|
+
* Required when the deposit flow is enabled.
|
|
57
|
+
*/
|
|
58
|
+
destination: StridgeDepositDestination;
|
|
59
|
+
/**
|
|
60
|
+
* Owner used as `gateway/start.owner` for deposit UDAs. Optional — falls back to the
|
|
61
|
+
* connected wagmi wallet address, then to `dev.userAddressOverride`. Set explicitly when
|
|
62
|
+
* the customer is identified by something other than their wagmi address (e.g. a derived
|
|
63
|
+
* per-user identifier, or a shared business owner that is not the wagmi-connected EOA).
|
|
64
|
+
*/
|
|
65
|
+
owner?: StridgeFlowOwner;
|
|
27
66
|
/**
|
|
28
67
|
* Low-balance / amount-entry USD floor. Defaults to the kit's internal default
|
|
29
68
|
* (`STRIDGE_DEFAULT_MIN_DEPOSIT_USD`) when omitted.
|
|
@@ -34,11 +73,54 @@ interface StridgeDepositFlowConfig {
|
|
|
34
73
|
* and webhook payloads. Treat as untrusted display data.
|
|
35
74
|
*/
|
|
36
75
|
metadata?: Record<string, unknown>;
|
|
76
|
+
/**
|
|
77
|
+
* Per-method host disable lever for the deposit-method picker. The kit ships no built-in
|
|
78
|
+
* inference (embedded-wallet detection, KYC tier, region, …) — the host decides eligibility
|
|
79
|
+
* and passes `{ disabled: true, disabledHint: "…" }` per method. Disabled tiles stay in the
|
|
80
|
+
* picker (preserves "I can see my options" UX), render natively disabled, and show
|
|
81
|
+
* `disabledHint` inline as the tile's meta line — replacing the address+balance reading on
|
|
82
|
+
* the wallet tile and the `"No limit · Instant"` reading on the transfer tile so the
|
|
83
|
+
* explanation is unmissable. Omitting the field keeps both methods enabled.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```tsx
|
|
87
|
+
* <StridgeProvider
|
|
88
|
+
* flows={{
|
|
89
|
+
* deposit: {
|
|
90
|
+
* destination: { address: treasuryAddress },
|
|
91
|
+
* methods: {
|
|
92
|
+
* wallet: isEmbeddedWallet
|
|
93
|
+
* ? { disabled: true, disabledHint: "Use Transfer Crypto, or connect an external wallet to pay from a wallet balance." }
|
|
94
|
+
* : undefined,
|
|
95
|
+
* },
|
|
96
|
+
* },
|
|
97
|
+
* }}
|
|
98
|
+
* >
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
methods?: StridgeDepositMethodsConfig;
|
|
37
102
|
}
|
|
38
103
|
/**
|
|
39
|
-
*
|
|
104
|
+
* Host-supplied disable lever for a single payment method on the deposit-method picker. Identical
|
|
105
|
+
* shape to the kit-internal {@link DepositMethodConfig} — re-exported under a Stridge-prefixed
|
|
106
|
+
* name so all `flows.deposit.*` types live alongside the provider.
|
|
107
|
+
*/
|
|
108
|
+
type StridgeDepositMethodConfig = DepositMethodConfig;
|
|
109
|
+
/**
|
|
110
|
+
* Per-method host configuration for the deposit picker. Omitting a method keeps default behavior.
|
|
111
|
+
* Re-export of {@link DepositMethodsConfig} under a Stridge-prefixed name.
|
|
112
|
+
*/
|
|
113
|
+
type StridgeDepositMethodsConfig = DepositMethodsConfig;
|
|
114
|
+
/**
|
|
115
|
+
* Per-flow withdraw tuning.
|
|
40
116
|
*/
|
|
41
117
|
interface StridgeWithdrawFlowConfig {
|
|
118
|
+
/**
|
|
119
|
+
* Owner used as `gateway/start.owner` for every withdraw UDA the flow provisions. Required —
|
|
120
|
+
* the withdraw flow has no wagmi fallback because the business (not the end-user) is the
|
|
121
|
+
* party broadcasting the source-chain tx to the UDA.
|
|
122
|
+
*/
|
|
123
|
+
owner: StridgeFlowOwner;
|
|
42
124
|
/**
|
|
43
125
|
* Metadata persisted on every UDA the withdraw flow provisions. Merged under the kit-set
|
|
44
126
|
* `kit_flow` / `kit_version` / `source` keys (kit keys win).
|
|
@@ -61,6 +143,32 @@ interface StridgeAppearance {
|
|
|
61
143
|
* (`"rtl"` for Arabic, Hebrew, Persian, Urdu) when omitted.
|
|
62
144
|
*/
|
|
63
145
|
direction?: "ltr" | "rtl";
|
|
146
|
+
/**
|
|
147
|
+
* Controls the "Powered by Stridge" attribution row inside every gateway widget frame.
|
|
148
|
+
* `"visible"` (default) auto-mounts the brand row at the bottom of every step; `"hidden"`
|
|
149
|
+
* suppresses the auto-mount for white-label installs.
|
|
150
|
+
*/
|
|
151
|
+
attribution?: "visible" | "hidden";
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Development / preview-only knobs. Grouped under a single `dev` prop so production integrations
|
|
155
|
+
* never reach for these accidentally and `Cmd-F dev` finds every preview-only escape hatch in one
|
|
156
|
+
* place. Read-only paths under `dev.userAddressOverride` (gateway/start, balances, addresses,
|
|
157
|
+
* brand) work end-to-end; signing still requires a real wagmi connector.
|
|
158
|
+
*/
|
|
159
|
+
interface StridgeDevConfig {
|
|
160
|
+
/**
|
|
161
|
+
* Address-only override used when no wagmi account is connected. Lets demos, sample apps, and
|
|
162
|
+
* read-only previews bootstrap the kit (gateway/start, balances, deposit addresses, brand)
|
|
163
|
+
* against a pasted EOA without firing up a wallet. The wagmi-connected account always wins —
|
|
164
|
+
* the override only fills in when `useAccount()` returns no address.
|
|
165
|
+
*
|
|
166
|
+
* Signing still requires a real connector. The submit and broadcast paths call into
|
|
167
|
+
* `createWagmiSigner`, which surfaces a user-readable "Connect a wallet to sign and submit
|
|
168
|
+
* the deposit." error if it's invoked without an active connector. Read-only paths
|
|
169
|
+
* (balances, addresses, brand, quotes) work end-to-end under the override.
|
|
170
|
+
*/
|
|
171
|
+
userAddressOverride?: Address;
|
|
64
172
|
}
|
|
65
173
|
/**
|
|
66
174
|
* Persistence configuration for the kit's per-tab state (settlement banner acks, future
|
|
@@ -95,8 +203,8 @@ declare namespace StridgeProvider {
|
|
|
95
203
|
*/
|
|
96
204
|
environment?: StridgeEnvironment;
|
|
97
205
|
/**
|
|
98
|
-
* Settlement asset — the single source of truth for which `(
|
|
99
|
-
* operates in. Deposit settles to this asset; withdraw sources from this asset.
|
|
206
|
+
* Settlement asset — the single source of truth for which `(networkId, symbol)` the
|
|
207
|
+
* gateway operates in. Deposit settles to this asset; withdraw sources from this asset.
|
|
100
208
|
*/
|
|
101
209
|
asset: StridgeAsset;
|
|
102
210
|
/**
|
|
@@ -113,6 +221,27 @@ declare namespace StridgeProvider {
|
|
|
113
221
|
i18n?: KitI18nConfig;
|
|
114
222
|
/** Persistence configuration for kit-internal state. */
|
|
115
223
|
storage?: StridgeStorageConfig;
|
|
224
|
+
/**
|
|
225
|
+
* Development / preview-only knobs. Grouped under `dev` so production integrations never
|
|
226
|
+
* reach for them accidentally — every preview escape hatch surfaces with the same `dev.`
|
|
227
|
+
* prefix at the call site.
|
|
228
|
+
*/
|
|
229
|
+
dev?: StridgeDevConfig;
|
|
230
|
+
/**
|
|
231
|
+
* Customer-support entry point configuration.
|
|
232
|
+
*
|
|
233
|
+
* Omit to use Stridge Intercom. Provide `url`, `onOpen`, or both to use merchant-owned
|
|
234
|
+
* support and opt out of Stridge messenger globals.
|
|
235
|
+
*/
|
|
236
|
+
support?: SupportConfig;
|
|
237
|
+
/**
|
|
238
|
+
* Terms link configuration.
|
|
239
|
+
*
|
|
240
|
+
* Omit to point the kit's "terms" links at Stridge's terms page. Provide `url`,
|
|
241
|
+
* `onSelect`, or both to swap in merchant-owned legal copy. Covers both the
|
|
242
|
+
* confirm-deposit disclaimer and the transfer-crypto address row.
|
|
243
|
+
*/
|
|
244
|
+
terms?: TermsConfig;
|
|
116
245
|
/** Optional className applied to the kit's scope root `<div>`. */
|
|
117
246
|
className?: string;
|
|
118
247
|
children?: ReactNode;
|
|
@@ -129,12 +258,12 @@ declare namespace StridgeProvider {
|
|
|
129
258
|
*
|
|
130
259
|
* @example
|
|
131
260
|
* ```tsx
|
|
132
|
-
* import { StridgeProvider
|
|
261
|
+
* import { StridgeProvider } from "@stridge/kit";
|
|
133
262
|
* import { DepositDialog } from "@stridge/kit/deposit/dialog";
|
|
134
263
|
*
|
|
135
264
|
* <StridgeProvider
|
|
136
265
|
* gatewayKey={process.env.NEXT_PUBLIC_STRIDGE_GATEWAY_KEY!}
|
|
137
|
-
* asset={{
|
|
266
|
+
* asset={{ networkId: "9006", symbol: "USDC" }}
|
|
138
267
|
* flows={{ deposit: {} }}
|
|
139
268
|
* appearance={{ theme: "dark", accent: "oklch(78% 0.15 240)", radius: "rounded" }}
|
|
140
269
|
* >
|
|
@@ -151,8 +280,11 @@ declare function StridgeProvider({
|
|
|
151
280
|
appearance,
|
|
152
281
|
i18n,
|
|
153
282
|
storage,
|
|
283
|
+
dev,
|
|
284
|
+
support,
|
|
285
|
+
terms,
|
|
154
286
|
className,
|
|
155
287
|
children
|
|
156
288
|
}: StridgeProvider.Props): _$react_jsx_runtime0.JSX.Element;
|
|
157
289
|
//#endregion
|
|
158
|
-
export { StridgeAppearance, StridgeAsset, StridgeDepositFlowConfig, StridgeProvider, StridgeStorageConfig, StridgeWithdrawFlowConfig };
|
|
290
|
+
export { StridgeAppearance, StridgeAsset, StridgeDepositDestination, StridgeDepositFlowConfig, StridgeDepositMethodConfig, StridgeDepositMethodsConfig, StridgeFlowOwner, StridgeProvider, StridgeStorageConfig, StridgeWithdrawFlowConfig };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{
|
|
1
|
+
"use client";import{createKitI18n as e}from"../shared/i18n/createKitI18n.js";import"../i18n/index.js";import{StridgeContext as t}from"./StridgeContext.js";import{createStridgeDepositDriver as n}from"../drivers/stridge/createStridgeDepositDriver.js";import{createStridgeWithdrawDriver as r}from"../drivers/stridge/createStridgeWithdrawDriver.js";import"../_internal/drivers/stridge/index.js";import{KitProvider as i}from"../KitProvider.js";import{resolveSupport as a}from"../shared/support/resolveSupport.js";import{useIntercomMerchantContext as o}from"../shared/support/useIntercomMerchantContext.js";import{useMerchantContext as s}from"../shared/support/useMerchantContext.js";import"../shared/support/index.js";import{useOptionalWagmi as c}from"./optionalWagmi.js";import{createStubDepositDriver as l,createStubWithdrawDriver as u}from"./stubs.js";import{useMemo as d,useRef as f,useSyncExternalStore as p}from"react";import{jsx as m}from"react/jsx-runtime";function h({gatewayKey:h,environment:g,asset:_,flows:v,appearance:y,i18n:b,storage:x,dev:S,support:C,terms:w,className:T,children:E}){if(!v.deposit&&!v.withdraw)throw Error("<StridgeProvider /> requires at least one of `flows.deposit` or `flows.withdraw`.");if(!_)throw Error("<StridgeProvider /> requires `asset: { networkId, symbol }`.");let{config:D,address:O}=c(),k=d(()=>e(b??{}),[b?.locale,b?.messages]),A=f(k);A.current=k;let j=_.networkId,M=_.symbol,N=v.deposit,P=v.withdraw,F=N?.owner?.address??O??S?.userAddressOverride,I=P?.owner.address,L=d(()=>{if(!(!N||!F))return n({userAddress:F,projectKey:h,destination:{network_id:j,asset_symbol:M,to_address:N.destination.address},wagmiConfig:D,getI18n:()=>A.current,...g?{environment:g}:{},...N.minDepositUsd===void 0?{}:{minDepositUsd:N.minDepositUsd},...N.metadata?{metadata:N.metadata}:{}})},[N,F,h,g,j,M,D]),R=d(()=>l(),[]),z=N?L??R:void 0,B=d(()=>{if(!(!P||!I))return r({userAddress:I,projectKey:h,currency:{networkId:j,assetSymbol:M},wagmiConfig:D,getI18n:()=>A.current,...g?{environment:g}:{},...P.metadata?{metadata:P.metadata}:{}})},[P,I,h,g,j,M,D]),V=d(()=>u(),[]),H=P?B??V:void 0,U=L??B,W=p(e=>U?.subscribe(e)??(()=>{}),()=>{if(L){let e=L.getSnapshot();return e.brand.status===`ready`&&e.target.status===`ready`}return B?B.getSnapshot().receiveOptions.status===`ready`:!1},()=>!1),G=F??I,K=s({gatewayKey:h,environment:g??`production`,assetChain:j,assetSymbol:M,...G?{userAddress:G}:{},...L?{depositDriver:L}:{}});return o(a(C).kind===`stridge`?K:null),m(t,{value:d(()=>({isReady:W,driver:L}),[W,L]),children:m(i,{theme:y?.theme,accent:y?.accent,radius:y?.radius,direction:y?.direction,attribution:y?.attribution,i18n:b,storage:x?.driver,storageNamespace:x?.namespace,className:T,support:C,merchantContext:K,terms:w,...z?{deposit:z}:{},...N?.methods?{depositMethods:N.methods}:{},...H?{withdraw:H}:{},children:E})})}export{h as StridgeProvider};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{use as e,useCallback as t,useSyncExternalStore as n}from"react";import{getAccount as r,watchAccount as i}from"wagmi/actions";import{WagmiContext as a}from"wagmi";function o(){let o=e(a);return{config:o,address:n(t(e=>o?i(o,{onChange:()=>e()}):()=>{},[o]),t(()=>{if(o)return r(o).address},[o]),()=>void 0)}}export{o as useOptionalWagmi};
|
package/dist/stridge/stubs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=Object.freeze({status:`idle`}),t=Object.freeze({brand:e,target:e,addresses:e,balances:e,quote:e,settlement:e,wallet:e}),n=Object.freeze({withdrawableBalances:e,receiveOptions:e,quote:e,settlement:e}),r=()=>{};function i(){if(typeof DOMException==`function`)return new DOMException(`Aborted`,`AbortError`);let e=Error(`Aborted`);return e.name=`AbortError`,e}function a(e){return new Promise((t,n)=>{if(e.aborted){n(i());return}e.addEventListener(`abort`,()=>n(i()),{once:!0})})}function o(){return{getSnapshot:()=>t,subscribe:()=>r,requestQuote:(e,t)=>a(t),submitDeposit:(e,t)=>a(t),watchSettlement:()=>{},fetchActiveSettlement:async()=>null}}function s(){return{getSnapshot:()=>n,subscribe:()=>r,requestQuote:(e,t)=>a(t),
|
|
1
|
+
const e=Object.freeze({status:`idle`}),t=Object.freeze({brand:e,target:e,addresses:e,balances:e,quote:e,settlement:e,wallet:e}),n=Object.freeze({withdrawableBalances:e,receiveOptions:e,quote:e,settlement:e}),r=()=>{};function i(){if(typeof DOMException==`function`)return new DOMException(`Aborted`,`AbortError`);let e=Error(`Aborted`);return e.name=`AbortError`,e}function a(e){return new Promise((t,n)=>{if(e.aborted){n(i());return}e.addEventListener(`abort`,()=>n(i()),{once:!0})})}function o(){return{getSnapshot:()=>t,subscribe:()=>r,requestQuote:(e,t)=>a(t),submitDeposit:(e,t)=>a(t),watchSettlement:()=>{},fetchActiveSettlement:async()=>null}}function s(){return{getSnapshot:()=>n,subscribe:()=>r,requestQuote:(e,t)=>a(t),prepareWithdrawal:(e,t)=>a(t),watchSettlement:()=>{}}}export{o as createStubDepositDriver,s as createStubWithdrawDriver};
|
package/dist/styles/index.css
CHANGED
|
@@ -198,6 +198,9 @@
|
|
|
198
198
|
--stridge-kit-card-shadow: 0 30px 80px oklch(0% 0 0 / .6), 0 2px 6px oklch(0% 0 0 / .4);
|
|
199
199
|
--stridge-kit-skeleton-base: oklch(29.55% .01 285.72);
|
|
200
200
|
--stridge-kit-skeleton-highlight: oklch(35.16% .01 285.67);
|
|
201
|
+
--stridge-kit-attribution-prefix-color: oklch(62% .005 286);
|
|
202
|
+
--stridge-kit-attribution-mark-color: oklch(72% .005 286);
|
|
203
|
+
--stridge-kit-attribution-wordmark-color: oklch(76% .005 286);
|
|
201
204
|
--stridge-kit-shadow-xs: 0 1px 1px 0 oklch(0% 0 0 / .125);
|
|
202
205
|
--stridge-kit-shadow-sm: 0 4px 4px -1px oklch(0% 0 0 / .04), 0 1px 1px 0 oklch(0% 0 0 / .08);
|
|
203
206
|
--stridge-kit-shadow-md: 0 3px 8px oklch(0% 0 0 / .125), 0 2px 5px oklch(0% 0 0 / .125), 0 1px 1px oklch(0% 0 0 / .125);
|
|
@@ -256,6 +259,9 @@
|
|
|
256
259
|
--stridge-kit-card-shadow: 0 30px 80px oklch(0% 0 0 / .16), 0 2px 6px oklch(0% 0 0 / .08);
|
|
257
260
|
--stridge-kit-skeleton-base: oklch(91% 0 286);
|
|
258
261
|
--stridge-kit-skeleton-highlight: oklch(95% 0 286);
|
|
262
|
+
--stridge-kit-attribution-prefix-color: oklch(50% .01 286);
|
|
263
|
+
--stridge-kit-attribution-mark-color: oklch(42% .01 286);
|
|
264
|
+
--stridge-kit-attribution-wordmark-color: oklch(36% .01 286);
|
|
259
265
|
--stridge-kit-shadow-xs: 0 1px 2px 0 oklch(0% 0 0 / .04);
|
|
260
266
|
--stridge-kit-shadow-sm: 0 1px 1px 0 oklch(0% 0 0 / .04), 0 1px 3px 0 oklch(0% 0 0 / .05);
|
|
261
267
|
--stridge-kit-shadow-md: 0 6px 12px -3px oklch(0% 0 0 / .06), 0 2px 4px -1px oklch(0% 0 0 / .04);
|
|
@@ -478,6 +484,10 @@
|
|
|
478
484
|
border-width: 2px;
|
|
479
485
|
}
|
|
480
486
|
|
|
487
|
+
.xkz0k9k {
|
|
488
|
+
flex: 0 auto;
|
|
489
|
+
}
|
|
490
|
+
|
|
481
491
|
.x845mor {
|
|
482
492
|
flex: 1;
|
|
483
493
|
}
|
|
@@ -698,6 +708,10 @@
|
|
|
698
708
|
padding-inline: var(--stridge-kit-space-3);
|
|
699
709
|
}
|
|
700
710
|
|
|
711
|
+
.x1ujb8i1 {
|
|
712
|
+
padding-inline: var(--stridge-kit-space-5);
|
|
713
|
+
}
|
|
714
|
+
|
|
701
715
|
.xxztuhb {
|
|
702
716
|
padding-inline: var(--stridge-kit-space-2);
|
|
703
717
|
}
|
|
@@ -718,10 +732,18 @@
|
|
|
718
732
|
border-radius: var(--stridge-kit-radius-sm);
|
|
719
733
|
}
|
|
720
734
|
|
|
735
|
+
.x1gvykhg:focus-visible {
|
|
736
|
+
outline: 2px solid var(--stridge-kit-ring);
|
|
737
|
+
}
|
|
738
|
+
|
|
721
739
|
.x67ar3w:focus-visible {
|
|
722
740
|
outline: 2px solid var(--stridge-kit-foreground);
|
|
723
741
|
}
|
|
724
742
|
|
|
743
|
+
.x1l0eogd:is(a:hover, a:focus-visible) [data-stridge-slot~="attribution-wordmark"] {
|
|
744
|
+
text-decoration: underline;
|
|
745
|
+
}
|
|
746
|
+
|
|
725
747
|
.xnyhjf:has( > input:focus-visible, > textarea:focus-visible) {
|
|
726
748
|
border-color: var(--stridge-kit-ring);
|
|
727
749
|
}
|
|
@@ -1250,6 +1272,10 @@
|
|
|
1250
1272
|
color: var(--stridge-kit-info);
|
|
1251
1273
|
}
|
|
1252
1274
|
|
|
1275
|
+
.x9irweu {
|
|
1276
|
+
color: var(--stridge-kit-attribution-mark-color);
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1253
1279
|
.x1vits3x {
|
|
1254
1280
|
color: var(--stridge-kit-card-foreground);
|
|
1255
1281
|
}
|
|
@@ -1258,6 +1284,10 @@
|
|
|
1258
1284
|
color: var(--stridge-kit-secondary-foreground);
|
|
1259
1285
|
}
|
|
1260
1286
|
|
|
1287
|
+
.x1nxg1fm {
|
|
1288
|
+
color: var(--stridge-kit-attribution-wordmark-color);
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1261
1291
|
.x1me39qh {
|
|
1262
1292
|
color: var(--stridge-kit-primary);
|
|
1263
1293
|
}
|
|
@@ -1282,6 +1312,10 @@
|
|
|
1282
1312
|
color: var(--stridge-kit-details-label);
|
|
1283
1313
|
}
|
|
1284
1314
|
|
|
1315
|
+
.xd2gg92 {
|
|
1316
|
+
color: var(--stridge-kit-attribution-prefix-color);
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1285
1319
|
.x1kqivnd {
|
|
1286
1320
|
color: var(--stridge-kit-tile-foreground);
|
|
1287
1321
|
}
|
|
@@ -1962,6 +1996,10 @@
|
|
|
1962
1996
|
touch-action: none;
|
|
1963
1997
|
}
|
|
1964
1998
|
|
|
1999
|
+
.x1764fhq {
|
|
2000
|
+
transform-box: fill-box;
|
|
2001
|
+
}
|
|
2002
|
+
|
|
1965
2003
|
.x1g0ag68 {
|
|
1966
2004
|
transform-origin: center;
|
|
1967
2005
|
}
|
|
@@ -1978,10 +2016,6 @@
|
|
|
1978
2016
|
transform: rotate(90deg);
|
|
1979
2017
|
}
|
|
1980
2018
|
|
|
1981
|
-
.x3oybdh {
|
|
1982
|
-
transform: scale(1);
|
|
1983
|
-
}
|
|
1984
|
-
|
|
1985
2019
|
.xx6bhzk {
|
|
1986
2020
|
transition-duration: .15s;
|
|
1987
2021
|
}
|
|
@@ -2038,6 +2072,10 @@
|
|
|
2038
2072
|
transition-property: box-shadow;
|
|
2039
2073
|
}
|
|
2040
2074
|
|
|
2075
|
+
.xt3l3uh {
|
|
2076
|
+
transition-property: color;
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2041
2079
|
.x1vma9ed {
|
|
2042
2080
|
transition-property: font-size, width;
|
|
2043
2081
|
}
|
|
@@ -2111,10 +2149,6 @@
|
|
|
2111
2149
|
will-change: height;
|
|
2112
2150
|
}
|
|
2113
2151
|
|
|
2114
|
-
.x6my1t9 {
|
|
2115
|
-
will-change: opacity,transform;
|
|
2116
|
-
}
|
|
2117
|
-
|
|
2118
2152
|
.x1q1rmc8 {
|
|
2119
2153
|
will-change: transform,opacity;
|
|
2120
2154
|
}
|
|
@@ -2219,6 +2253,18 @@
|
|
|
2219
2253
|
box-shadow: var(--stridge-kit-shadow-ring-focus);
|
|
2220
2254
|
}
|
|
2221
2255
|
|
|
2256
|
+
.x1perupi:is(a:hover, a:focus-visible) [data-stridge-slot~="attribution-mark"] {
|
|
2257
|
+
color: color-mix(in oklab,var(--stridge-kit-attribution-mark-color) 78%,var(--stridge-kit-foreground));
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
.x19k0ldo:is(a:hover, a:focus-visible) [data-stridge-slot~="attribution-wordmark"] {
|
|
2261
|
+
color: color-mix(in oklab,var(--stridge-kit-attribution-wordmark-color) 78%,var(--stridge-kit-foreground));
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
.x1wa2jhk:is(a:hover, a:focus-visible) [data-stridge-slot~="attribution-prefix"] {
|
|
2265
|
+
color: color-mix(in oklab,var(--stridge-kit-attribution-prefix-color) 78%,var(--stridge-kit-foreground));
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2222
2268
|
.x111phvh:active:not(:disabled), .x70x1a4:hover:not(:disabled) {
|
|
2223
2269
|
color: var(--stridge-kit-foreground);
|
|
2224
2270
|
}
|
|
@@ -2247,6 +2293,10 @@
|
|
|
2247
2293
|
outline-width: 2px;
|
|
2248
2294
|
}
|
|
2249
2295
|
|
|
2296
|
+
.x1diuls0:is(a:hover, a:focus-visible) [data-stridge-slot~="attribution-wordmark"] {
|
|
2297
|
+
text-underline-offset: 2px;
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2250
2300
|
.x1yi73pz:has( > input:focus-visible, > textarea:focus-visible) {
|
|
2251
2301
|
box-shadow: var(--stridge-kit-shadow-ring-focus);
|
|
2252
2302
|
}
|
|
@@ -2767,10 +2817,6 @@
|
|
|
2767
2817
|
overflow-y: auto;
|
|
2768
2818
|
}
|
|
2769
2819
|
|
|
2770
|
-
.x1rife3k {
|
|
2771
|
-
overflow-y: scroll;
|
|
2772
|
-
}
|
|
2773
|
-
|
|
2774
2820
|
.xnw97ix {
|
|
2775
2821
|
padding-bottom: .125rem;
|
|
2776
2822
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { Entity, SettlementFailureKind, TxRef } from "./shared/driver/types.js";
|
|
2
2
|
import { AcceptedAssetPayload, AddressItemPayload, AssetPayload, BalanceItemPayload, BrandPayload, ChainPayload, QuoteBreakdownPayload, QuotePayload, QuoteRoutePayload, SettlementFailurePayload, SettlementPayload, SettlementPendingPayload, SettlementSuccessPayload, SourceWalletPayload, TargetPayload, WalletInfo, WalletPayload } from "./flows/deposit/driver/payloads.js";
|
|
3
3
|
import { DepositSnapshot } from "./flows/deposit/driver/types.js";
|
|
4
|
+
import { FailureInfo } from "./shared/orchestrator/types.js";
|
|
5
|
+
import { ConfirmDepositPhase, DepositActions, DepositController, DepositMethod, DepositState, DepositStateName, GatewayEvent, OpenInput, ResolvedOpenInput, RetryTargetSpec } from "./flows/deposit/orchestrator/types.js";
|
|
4
6
|
import { ReceiveOptionDto, ReceiveOptionsResponse, WithdrawableBalanceDto, WithdrawableBalancesResponse, WithdrawalQuoteDto, WithdrawalQuoteResponse, WithdrawalSettlementDto, WithdrawalSettlementResponse } from "./flows/withdraw/driver/dto.js";
|
|
5
7
|
import { ReceiveChainPayload, ReceiveTokenOptionPayload, WithdrawableBalanceItemPayload, WithdrawalQuoteBreakdownPayload, WithdrawalQuotePayload, WithdrawalReceiveAssetPayload, WithdrawalSettlementFailurePayload, WithdrawalSettlementPayload, WithdrawalSettlementPendingPayload, WithdrawalSettlementSuccessPayload } from "./flows/withdraw/driver/payloads.js";
|
|
6
8
|
import { WithdrawSnapshot } from "./flows/withdraw/driver/types.js";
|
|
7
9
|
import { KitConfig, KitDirection, KitRadius, KitTarget, KitTheme } from "./scope/context.js";
|
|
8
10
|
import { KitStorageAdapter, KitStoragePersistence } from "./storage/types.js";
|
|
9
11
|
import { KitStorage } from "./storage/createKitStorage.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { WithdrawActions, WithdrawController, WithdrawEvent, WithdrawState, WithdrawStateName, WithdrawalFormSnapshot } from "./flows/withdraw/orchestrator/types.js";
|
|
12
|
+
import { WithdrawActions, WithdrawController, WithdrawEvent, WithdrawState, WithdrawStateName, WithdrawSubmitActions, WithdrawSubmitCallback, WithdrawSubmitInput, WithdrawalFormSnapshot } from "./flows/withdraw/orchestrator/types.js";
|
|
13
|
+
import { WithdrawBalanceInput, WithdrawBindings, WithdrawSuggestedRecipient } from "./flows/withdraw/bindings/WithdrawBindings.js";
|
|
13
14
|
import { BannerAckBucket } from "./banners/useBannerAck.js";
|
|
14
15
|
import { STEPS_WITH_OWN_SETTLEMENT_VIEW, stepRendersSettlement } from "./flows/deposit/orchestrator/steps.js";
|
|
15
|
-
export { type AcceptedAssetPayload, type AddressItemPayload, type AssetPayload, type BalanceItemPayload, type BannerAckBucket, type BrandPayload, type ChainPayload, type ConfirmDepositPhase, type DepositActions, type DepositController, type DepositMethod, type DepositSnapshot, type DepositState, type DepositStateName, type Entity, type FailureInfo, type GatewayEvent, type KitConfig, type KitDirection, type KitRadius, type KitStorage, type KitStorageAdapter, type KitStoragePersistence, type KitTarget, type KitTheme, type OpenInput, type QuoteBreakdownPayload, type QuotePayload, type QuoteRoutePayload, type ReceiveChainPayload, type ReceiveOptionDto, type ReceiveOptionsResponse, type ReceiveTokenOptionPayload, type ResolvedOpenInput, type RetryTargetSpec, STEPS_WITH_OWN_SETTLEMENT_VIEW, type SettlementFailureKind, type SettlementFailurePayload, type SettlementPayload, type SettlementPendingPayload, type SettlementSuccessPayload, type SourceWalletPayload, type TargetPayload, type TxRef, type WalletInfo, type WalletPayload, type WithdrawActions, type WithdrawController, type WithdrawEvent, type WithdrawSnapshot, type WithdrawState, type WithdrawStateName, type WithdrawableBalanceDto, type WithdrawableBalanceItemPayload, type WithdrawableBalancesResponse, type WithdrawalFormSnapshot, type WithdrawalQuoteBreakdownPayload, type WithdrawalQuoteDto, type WithdrawalQuotePayload, type WithdrawalQuoteResponse, type WithdrawalReceiveAssetPayload, type WithdrawalSettlementDto, type WithdrawalSettlementFailurePayload, type WithdrawalSettlementPayload, type WithdrawalSettlementPendingPayload, type WithdrawalSettlementResponse, type WithdrawalSettlementSuccessPayload, stepRendersSettlement };
|
|
16
|
+
export { type AcceptedAssetPayload, type AddressItemPayload, type AssetPayload, type BalanceItemPayload, type BannerAckBucket, type BrandPayload, type ChainPayload, type ConfirmDepositPhase, type DepositActions, type DepositController, type DepositMethod, type DepositSnapshot, type DepositState, type DepositStateName, type Entity, type FailureInfo, type GatewayEvent, type KitConfig, type KitDirection, type KitRadius, type KitStorage, type KitStorageAdapter, type KitStoragePersistence, type KitTarget, type KitTheme, type OpenInput, type QuoteBreakdownPayload, type QuotePayload, type QuoteRoutePayload, type ReceiveChainPayload, type ReceiveOptionDto, type ReceiveOptionsResponse, type ReceiveTokenOptionPayload, type ResolvedOpenInput, type RetryTargetSpec, STEPS_WITH_OWN_SETTLEMENT_VIEW, type SettlementFailureKind, type SettlementFailurePayload, type SettlementPayload, type SettlementPendingPayload, type SettlementSuccessPayload, type SourceWalletPayload, type TargetPayload, type TxRef, type WalletInfo, type WalletPayload, type WithdrawActions, type WithdrawBalanceInput, type WithdrawBindings, type WithdrawController, type WithdrawEvent, type WithdrawSnapshot, type WithdrawState, type WithdrawStateName, type WithdrawSubmitActions, type WithdrawSubmitCallback, type WithdrawSubmitInput, type WithdrawSuggestedRecipient, type WithdrawableBalanceDto, type WithdrawableBalanceItemPayload, type WithdrawableBalancesResponse, type WithdrawalFormSnapshot, type WithdrawalQuoteBreakdownPayload, type WithdrawalQuoteDto, type WithdrawalQuotePayload, type WithdrawalQuoteResponse, type WithdrawalReceiveAssetPayload, type WithdrawalSettlementDto, type WithdrawalSettlementFailurePayload, type WithdrawalSettlementPayload, type WithdrawalSettlementPendingPayload, type WithdrawalSettlementResponse, type WithdrawalSettlementSuccessPayload, stepRendersSettlement };
|
package/dist/ui/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{EXTERNAL_LINK_SLOTS as e}from"../shared/ui/ExternalLink/ExternalLink.slots.js";import{ExternalLink as t}from"../shared/ui/ExternalLink/ExternalLink.js";import"../shared/ui/ExternalLink/index.js";import{BUTTON_SLOTS as n}from"../shared/ui/Button/Button.slots.js";import{Button as r}from"../shared/ui/Button/Button.js";import"../shared/ui/Button/index.js";import{ICON_BUTTON_SLOTS as i}from"../shared/ui/IconButton/IconButton.slots.js";import{IconButton as a}from"../shared/ui/IconButton/IconButton.js";import"../shared/ui/IconButton/index.js";import{SCROLL_AREA_SLOTS as o}from"../shared/ui/ScrollArea/ScrollArea.slots.js";import{ScrollArea as s}from"../shared/ui/ScrollArea/ScrollArea.js";import"../shared/ui/ScrollArea/index.js";import{DIALOG_SLOTS as c}from"../shared/ui/Dialog/Dialog.slots.js";import{Dialog as l,useIsInsideDialogContent as u}from"../shared/ui/Dialog/Dialog.js";import"../shared/ui/Dialog/index.js";import{ALERT_SLOTS as d}from"../shared/ui/Alert/Alert.slots.js";import{Alert as f}from"../shared/ui/Alert/Alert.js";import"../shared/ui/Alert/index.js";import{AMOUNT_INPUT_SLOTS as p}from"../shared/ui/AmountInput/AmountInput.slots.js";import{formatAmountForInput as m,parseAmountInputValue as h}from"../shared/ui/AmountInput/utils.js";import{AmountInput as g}from"../shared/ui/AmountInput/AmountInput.js";import"../shared/ui/AmountInput/index.js";import{BADGE_SLOTS as _}from"../shared/ui/Badge/Badge.slots.js";import{Badge as v}from"../shared/ui/Badge/Badge.js";import"../shared/ui/Badge/index.js";import{CARD_SLOTS as y}from"../shared/ui/Card/Card.slots.js";import{Card as b}from"../shared/ui/Card/Card.js";import"../shared/ui/Card/index.js";import{COLLAPSIBLE_SLOTS as x}from"../shared/ui/Collapsible/Collapsible.slots.js";import{Collapsible as S}from"../shared/ui/Collapsible/Collapsible.js";import"../shared/ui/Collapsible/index.js";import{DETAILS_SLOTS as C}from"../shared/ui/Details/Details.slots.js";import{Details as w}from"../shared/ui/Details/Details.js";import"../shared/ui/Details/index.js";import{FIELD_SLOTS as T}from"../shared/ui/Field/Field.slots.js";import{Field as E}from"../shared/ui/Field/Field.js";import"../shared/ui/Field/index.js";import{IMAGE_SLOTS as D}from"../shared/ui/Image/Image.slots.js";import{Image as O}from"../shared/ui/Image/Image.js";import"../shared/ui/Image/index.js";import{INPUT_GROUP_SLOTS as k}from"../shared/ui/InputGroup/InputGroup.slots.js";import{InputGroup as A}from"../shared/ui/InputGroup/InputGroup.js";import"../shared/ui/InputGroup/index.js";import{LtrAtom as j}from"../shared/ui/LtrAtom/LtrAtom.js";import"../shared/ui/LtrAtom/index.js";import{SELECT_SLOTS as M}from"../shared/ui/Select/Select.slots.js";import{Select as N}from"../shared/ui/Select/Select.js";import"../shared/ui/Select/index.js";import{SELECTABLE_TILE_SLOTS as P}from"../shared/ui/SelectableTile/SelectableTile.slots.js";import{SelectableTile as F}from"../shared/ui/SelectableTile/SelectableTile.js";import{SelectableTileGroup as I}from"../shared/ui/SelectableTile/SelectableTileGroup.js";import"../shared/ui/SelectableTile/index.js";import{SKELETON_SLOTS as L}from"../shared/ui/Skeleton/Skeleton.slots.js";import{Skeleton as R}from"../shared/ui/Skeleton/Skeleton.js";import"../shared/ui/Skeleton/index.js";import{TEXT_SLOTS as z}from"../shared/ui/Text/Text.slots.js";import{text as B}from"../shared/ui/Text/Text.js";import"../shared/ui/Text/index.js";import{TokenLogo as V}from"../shared/ui/TokenLogo/TokenLogo.js";import"../shared/ui/TokenLogo/index.js";import{TOOLTIP_SLOTS as H}from"../shared/ui/Tooltip/Tooltip.slots.js";import{Tooltip as U}from"../shared/ui/Tooltip/Tooltip.js";import"../shared/ui/Tooltip/index.js";import{WALLET_ROW_SLOTS as W}from"../shared/ui/WalletRow/WalletRow.slots.js";import{WalletRow as G}from"../shared/ui/WalletRow/WalletRow.js";import"../shared/ui/WalletRow/index.js";export{d as ALERT_SLOTS,p as AMOUNT_INPUT_SLOTS,f as Alert,g as AmountInput,_ as BADGE_SLOTS,n as BUTTON_SLOTS,v as Badge,r as Button,y as CARD_SLOTS,x as COLLAPSIBLE_SLOTS,b as Card,S as Collapsible,C as DETAILS_SLOTS,c as DIALOG_SLOTS,w as Details,l as Dialog,e as EXTERNAL_LINK_SLOTS,t as ExternalLink,T as FIELD_SLOTS,E as Field,i as ICON_BUTTON_SLOTS,D as IMAGE_SLOTS,k as INPUT_GROUP_SLOTS,a as IconButton,O as Image,A as InputGroup,j as LtrAtom,o as SCROLL_AREA_SLOTS,P as SELECTABLE_TILE_SLOTS,M as SELECT_SLOTS,L as SKELETON_SLOTS,s as ScrollArea,N as Select,F as SelectableTile,I as SelectableTileGroup,R as Skeleton,z as TEXT_SLOTS,H as TOOLTIP_SLOTS,V as TokenLogo,U as Tooltip,W as WALLET_ROW_SLOTS,G as WalletRow,m as formatAmountForInput,h as parseAmountInputValue,B as text,u as useIsInsideDialogContent};
|
|
@@ -10,7 +10,7 @@ import { ASSET_PICKER_SLOTS, AssetPickerSlot } from "../../shared/widgets/asset-
|
|
|
10
10
|
import { ErrorStateActionsProps, ErrorStateAsset, ErrorStateAssetValueProps, ErrorStateBodyProps, ErrorStateDestination, ErrorStateDetailProps, ErrorStateDetailsProps, ErrorStateDialogProps, ErrorStateDisclosureChevronProps, ErrorStateHeaderProps, ErrorStateHelp, ErrorStateHelpInfoProps, ErrorStateHeroProps, ErrorStateMoreDetailsProps, ErrorStateProps, ErrorStateRowProps, ErrorStateSourceWallet, ErrorStateStatusValueProps, ErrorStateTxRef } from "../../shared/widgets/error-state/compound/types.js";
|
|
11
11
|
import { ErrorState } from "../../shared/widgets/error-state/compound/ErrorState.js";
|
|
12
12
|
import { ERROR_STATE_SLOTS, ErrorStateSlot } from "../../shared/widgets/error-state/compound/ErrorState.slots.js";
|
|
13
|
-
import {
|
|
13
|
+
import { ProcessingStateAsset, ProcessingStateBodyProps, ProcessingStateDetailProps, ProcessingStateDetailsProps, ProcessingStateDialogProps, ProcessingStateHeaderProps, ProcessingStateHeroProps, ProcessingStateProps, ProcessingStateRowProps, ProcessingStateSourceWallet, ProcessingStateStatusPillProps, ProcessingStateTxRef } from "../../shared/widgets/processing-state/compound/types.js";
|
|
14
14
|
import { ProcessingState } from "../../shared/widgets/processing-state/compound/ProcessingState.js";
|
|
15
15
|
import { PROCESSING_STATE_SLOTS, ProcessingStateSlot } from "../../shared/widgets/processing-state/compound/ProcessingState.slots.js";
|
|
16
16
|
import { SuccessStateActionsProps, SuccessStateAsset, SuccessStateAssetValueProps, SuccessStateBodyProps, SuccessStateDetailProps, SuccessStateDetailsProps, SuccessStateDialogProps, SuccessStateExplorer, SuccessStateHeaderProps, SuccessStateHeadlineProps, SuccessStateMoreDetailsProps, SuccessStateProps, SuccessStateRouteValueProps, SuccessStateRowProps, SuccessStateSourceWallet, SuccessStateStatusPillProps, SuccessStateTxRef } from "../../shared/widgets/success-state/compound/types.js";
|
|
@@ -19,4 +19,4 @@ import { SUCCESS_STATE_SLOTS, SuccessStateSlot } from "../../shared/widgets/succ
|
|
|
19
19
|
import { WithdrawFormAsset, WithdrawFormBalance, WithdrawFormBodyProps, WithdrawFormBreakdown, WithdrawFormDialogProps, WithdrawFormHeaderProps, WithdrawFormProps } from "../../flows/withdraw/widgets/withdraw-form/compound/types.js";
|
|
20
20
|
import { WithdrawForm } from "../../flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.js";
|
|
21
21
|
import { WITHDRAW_FORM_SLOTS, WithdrawFormSlot } from "../../flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.slots.js";
|
|
22
|
-
export { AMOUNT_ENTRY_SLOTS, ASSET_PICKER_SLOTS, AmountEntry, AmountEntryBodyProps, AmountEntryDialogProps, AmountEntryFlowProps, AmountEntryFooterProps, AmountEntryHeaderProps, AmountEntryHeroProps, AmountEntryPercentPreset, AmountEntryPillsProps, AmountEntryProps, AmountEntrySlot, AmountEntryToken, AssetOption, AssetPicker, AssetPickerAssetProps, AssetPickerBodyProps, AssetPickerDialogProps, AssetPickerFooterProps, AssetPickerHeaderProps, AssetPickerListProps, AssetPickerProps, AssetPickerSlot, AssetPickerToken, CONFIRM_TRANSFER_SLOTS, ConfirmTransfer, ConfirmTransferAmountsProps, ConfirmTransferBodyProps, ConfirmTransferBreakdown, ConfirmTransferBreakdownPercentRow, ConfirmTransferBreakdownProps, ConfirmTransferBreakdownTextRow, ConfirmTransferBreakdownUsdRow, ConfirmTransferDialogProps, ConfirmTransferDisclaimerProps, ConfirmTransferFooterProps, ConfirmTransferHeaderProps, ConfirmTransferHeroProps, ConfirmTransferMetaProps, ConfirmTransferProps, ConfirmTransferSlot, ConfirmTransferToken, ConfirmTransferTransfer, ERROR_STATE_SLOTS, ErrorState, ErrorStateActionsProps, ErrorStateAsset, ErrorStateAssetValueProps, ErrorStateBodyProps, ErrorStateDestination, ErrorStateDetailProps, ErrorStateDetailsProps, ErrorStateDialogProps, ErrorStateDisclosureChevronProps, ErrorStateHeaderProps, ErrorStateHelp, ErrorStateHelpInfoProps, ErrorStateHeroProps, ErrorStateMoreDetailsProps, ErrorStateProps, ErrorStateRowProps, ErrorStateSlot, ErrorStateSourceWallet, ErrorStateStatusValueProps, ErrorStateTxRef, PROCESSING_STATE_SLOTS, ProcessingState,
|
|
22
|
+
export { AMOUNT_ENTRY_SLOTS, ASSET_PICKER_SLOTS, AmountEntry, AmountEntryBodyProps, AmountEntryDialogProps, AmountEntryFlowProps, AmountEntryFooterProps, AmountEntryHeaderProps, AmountEntryHeroProps, AmountEntryPercentPreset, AmountEntryPillsProps, AmountEntryProps, AmountEntrySlot, AmountEntryToken, AssetOption, AssetPicker, AssetPickerAssetProps, AssetPickerBodyProps, AssetPickerDialogProps, AssetPickerFooterProps, AssetPickerHeaderProps, AssetPickerListProps, AssetPickerProps, AssetPickerSlot, AssetPickerToken, CONFIRM_TRANSFER_SLOTS, ConfirmTransfer, ConfirmTransferAmountsProps, ConfirmTransferBodyProps, ConfirmTransferBreakdown, ConfirmTransferBreakdownPercentRow, ConfirmTransferBreakdownProps, ConfirmTransferBreakdownTextRow, ConfirmTransferBreakdownUsdRow, ConfirmTransferDialogProps, ConfirmTransferDisclaimerProps, ConfirmTransferFooterProps, ConfirmTransferHeaderProps, ConfirmTransferHeroProps, ConfirmTransferMetaProps, ConfirmTransferProps, ConfirmTransferSlot, ConfirmTransferToken, ConfirmTransferTransfer, ERROR_STATE_SLOTS, ErrorState, ErrorStateActionsProps, ErrorStateAsset, ErrorStateAssetValueProps, ErrorStateBodyProps, ErrorStateDestination, ErrorStateDetailProps, ErrorStateDetailsProps, ErrorStateDialogProps, ErrorStateDisclosureChevronProps, ErrorStateHeaderProps, ErrorStateHelp, ErrorStateHelpInfoProps, ErrorStateHeroProps, ErrorStateMoreDetailsProps, ErrorStateProps, ErrorStateRowProps, ErrorStateSlot, ErrorStateSourceWallet, ErrorStateStatusValueProps, ErrorStateTxRef, PROCESSING_STATE_SLOTS, ProcessingState, ProcessingStateAsset, ProcessingStateBodyProps, ProcessingStateDetailProps, ProcessingStateDetailsProps, ProcessingStateDialogProps, ProcessingStateHeaderProps, ProcessingStateHeroProps, ProcessingStateProps, ProcessingStateRowProps, ProcessingStateSlot, ProcessingStateSourceWallet, ProcessingStateStatusPillProps, ProcessingStateTxRef, SUCCESS_STATE_SLOTS, SuccessState, SuccessStateActionsProps, SuccessStateAsset, SuccessStateAssetValueProps, SuccessStateBodyProps, SuccessStateDetailProps, SuccessStateDetailsProps, SuccessStateDialogProps, SuccessStateExplorer, SuccessStateHeaderProps, SuccessStateHeadlineProps, SuccessStateMoreDetailsProps, SuccessStateProps, SuccessStateRouteValueProps, SuccessStateRowProps, SuccessStateSlot, SuccessStateSourceWallet, SuccessStateStatusPillProps, SuccessStateTxRef, WITHDRAW_FORM_SLOTS, WithdrawForm, WithdrawFormAsset, WithdrawFormBalance, WithdrawFormBodyProps, WithdrawFormBreakdown, WithdrawFormDialogProps, WithdrawFormHeaderProps, WithdrawFormProps, WithdrawFormSlot };
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
import { WithdrawSubmitActions, WithdrawSubmitCallback, WithdrawSubmitInput } from "../../flows/withdraw/orchestrator/types.js";
|
|
2
|
+
import { WithdrawBalanceInput, WithdrawBindings, WithdrawSuggestedRecipient } from "../../flows/withdraw/bindings/WithdrawBindings.js";
|
|
1
3
|
import { WithdrawDialog } from "../../flows/withdraw/dialog/WithdrawDialog.js";
|
|
2
|
-
export { WithdrawDialog };
|
|
4
|
+
export { type WithdrawBalanceInput, type WithdrawBindings, WithdrawDialog, type WithdrawSubmitActions, type WithdrawSubmitCallback, type WithdrawSubmitInput, type WithdrawSuggestedRecipient };
|