@funkit/connect-rn 5.0.0 → 6.0.0
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/CHANGELOG.md +66 -0
- package/dist/{chunk-X4RK3XTG.js → chunk-4ELC2W4D.js} +49 -17
- package/dist/chunk-4ELC2W4D.js.map +7 -0
- package/dist/{chunk-KPP7KXYB.js → chunk-XTK6HGJL.js} +2 -2
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +4 -4
- package/dist/clients/nado.js.map +2 -2
- package/dist/index.js +3641 -2372
- package/dist/index.js.map +4 -4
- package/dist/src/components/ActionLoading.d.ts +19 -0
- package/dist/src/components/ActionLoading.d.ts.map +1 -0
- package/dist/src/components/DepositActionMotion.d.ts +33 -2
- package/dist/src/components/DepositActionMotion.d.ts.map +1 -1
- package/dist/src/components/LoadingSpinner.d.ts +23 -0
- package/dist/src/components/LoadingSpinner.d.ts.map +1 -0
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/v2/AmountDisplay.d.ts +2 -8
- package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
- package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatActionButton.d.ts.map +1 -1
- package/dist/src/fiat/FiatChoiceList.d.ts +19 -0
- package/dist/src/fiat/FiatChoiceList.d.ts.map +1 -0
- package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatCountrySheet.d.ts +18 -0
- package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -0
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycFieldControl.d.ts +3 -1
- package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycNotice.d.ts +12 -2
- package/dist/src/fiat/FiatKycNotice.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOptionRow.d.ts +15 -0
- package/dist/src/fiat/FiatKycOptionRow.d.ts.map +1 -0
- package/dist/src/fiat/FiatKycOptionsScreen.d.ts +21 -0
- package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +1 -0
- package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -1
- package/dist/src/fiat/SurfaceSlot.d.ts +17 -4
- package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/countrySections.d.ts +25 -0
- package/dist/src/fiat/countrySections.d.ts.map +1 -0
- package/dist/src/fiat/formLayout.d.ts +1 -0
- package/dist/src/fiat/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/kycFormTheme.d.ts +19 -8
- package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
- package/dist/src/fiat/phoneCountries.d.ts +9 -2
- package/dist/src/fiat/phoneCountries.d.ts.map +1 -1
- package/dist/src/fiat/phoneDraft.d.ts +10 -3
- package/dist/src/fiat/phoneDraft.d.ts.map +1 -1
- package/dist/src/fiat/providers/HostedControlFrame.d.ts +23 -0
- package/dist/src/fiat/providers/HostedControlFrame.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbaseApplePay.d.ts.map +1 -1
- package/dist/src/fiat/providers/transakApplePay.d.ts.map +1 -1
- package/dist/src/fiat/stepDetails.d.ts +8 -5
- package/dist/src/fiat/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/useCountrySheet.d.ts +21 -0
- package/dist/src/fiat/useCountrySheet.d.ts.map +1 -0
- package/dist/src/fiat/useFiatDirectDelivery.d.ts +32 -0
- package/dist/src/fiat/useFiatDirectDelivery.d.ts.map +1 -0
- package/dist/src/flow/DepositAmountStep.d.ts +2 -1
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +4 -4
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +14 -1
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/hooks/useDelayedSpinner.d.ts +10 -0
- package/dist/src/hooks/useDelayedSpinner.d.ts.map +1 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts +19 -2
- package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
- package/dist/src/hooks/useMinimumAmountValidation.d.ts +17 -0
- package/dist/src/hooks/useMinimumAmountValidation.d.ts.map +1 -0
- package/dist/src/icons/KycStatusIcon.d.ts +10 -0
- package/dist/src/icons/KycStatusIcon.d.ts.map +1 -0
- package/dist/src/screens/DepositAmountScreen.d.ts +11 -1
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/theme/buttonRadius.d.ts +10 -0
- package/dist/src/theme/buttonRadius.d.ts.map +1 -0
- package/dist/src/theme/cornerCurve.d.ts +11 -0
- package/dist/src/theme/cornerCurve.d.ts.map +1 -0
- package/dist/src/transfer/hooks/useDepositRecipient.d.ts +29 -0
- package/dist/src/transfer/hooks/useDepositRecipient.d.ts.map +1 -0
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts +4 -0
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useTransferInit.d.ts +8 -1
- package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
- package/dist/src/utils/colorMotion.d.ts +14 -0
- package/dist/src/utils/colorMotion.d.ts.map +1 -0
- package/dist/src/utils/formatAmount.d.ts +10 -1
- package/dist/src/utils/formatAmount.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts +23 -0
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/dist/src/utils/v2/amountRowGeometry.d.ts +6 -0
- package/dist/src/utils/v2/amountRowGeometry.d.ts.map +1 -0
- package/dist/src/withdrawal/validation.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-X4RK3XTG.js.map +0 -7
- package/dist/src/fiat/FiatCountryDock.d.ts +0 -17
- package/dist/src/fiat/FiatCountryDock.d.ts.map +0 -1
- package/dist/src/fiat/useCountryDock.d.ts +0 -21
- package/dist/src/fiat/useCountryDock.d.ts.map +0 -1
- /package/dist/{chunk-KPP7KXYB.js.map → chunk-XTK6HGJL.js.map} +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type NestedSheet } from '../hooks/useNestedSheet';
|
|
2
|
+
export interface CountrySheet {
|
|
3
|
+
/**
|
|
4
|
+
* The field the list answers. Held after it closes: the sheet dismisses on
|
|
5
|
+
* its own animation, and the rows have to stay drawn while it plays out.
|
|
6
|
+
*/
|
|
7
|
+
fieldName?: string;
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
open: (fieldName: string) => void;
|
|
10
|
+
close: () => void;
|
|
11
|
+
/** The handle and backdrop the step feeds to its `BottomSheetModal`. */
|
|
12
|
+
sheet: NestedSheet<'countries'>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The country list a phone field raises, as a sheet over the step.
|
|
16
|
+
*
|
|
17
|
+
* Opening it drops the keyboard: the sheet covers the field it was typed into,
|
|
18
|
+
* and a keyboard left standing behind it is one the user has to dismiss twice.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useCountrySheet(): CountrySheet;
|
|
21
|
+
//# sourceMappingURL=useCountrySheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCountrySheet.d.ts","sourceRoot":"","sources":["../../../src/fiat/useCountrySheet.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAE1E,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,wEAAwE;IACxE,KAAK,EAAE,WAAW,CAAC,WAAW,CAAC,CAAA;CAChC;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,IAAI,YAAY,CA8B9C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type CheckoutTokenTransferConfig } from '@funkit/connect-core';
|
|
2
|
+
import type { DepositClientMetadata, FiatRailConfig } from '../flow/depositFlowConfig';
|
|
3
|
+
export interface UseFiatDirectDeliveryParams {
|
|
4
|
+
/** Destination chain/asset the deposit is headed for. */
|
|
5
|
+
checkoutConfig: CheckoutTokenTransferConfig | undefined;
|
|
6
|
+
rail: FiatRailConfig;
|
|
7
|
+
dynamicRoutingId: string | undefined;
|
|
8
|
+
checkoutId: string;
|
|
9
|
+
clientMetadata: DepositClientMetadata | undefined;
|
|
10
|
+
/** Host fallback for local/dev clients that mint no address of their own. */
|
|
11
|
+
depositAddressOverride?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface UseFiatDirectDeliveryResult {
|
|
14
|
+
/** Where the order delivers the crypto; `undefined` until one resolves. */
|
|
15
|
+
depositAddress: string | undefined;
|
|
16
|
+
/** The rail buys the destination asset itself, so no address was minted. */
|
|
17
|
+
isDirect: boolean;
|
|
18
|
+
/** Why no generated address resolved; always `undefined` on the direct route. */
|
|
19
|
+
depositAddressError: Error | undefined;
|
|
20
|
+
/** Re-requests the generated address; a no-op on the direct route. */
|
|
21
|
+
retryDepositAddress: () => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Resolves where a V2 fiat order delivers.
|
|
25
|
+
*
|
|
26
|
+
* The generated deposit address exists to swap what the rail bought into what
|
|
27
|
+
* the user asked for. When the rail buys that asset outright it has nothing to
|
|
28
|
+
* do, so the order names the recipient instead — the crypto lands where it is
|
|
29
|
+
* wanted rather than at a per-checkout address the backend has still to sweep.
|
|
30
|
+
*/
|
|
31
|
+
export declare function useFiatDirectDelivery({ checkoutConfig, rail, dynamicRoutingId, checkoutId, clientMetadata, depositAddressOverride, }: UseFiatDirectDeliveryParams): UseFiatDirectDeliveryResult;
|
|
32
|
+
//# sourceMappingURL=useFiatDirectDelivery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFiatDirectDelivery.d.ts","sourceRoot":"","sources":["../../../src/fiat/useFiatDirectDelivery.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,2BAA2B,EAKjC,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAOlC,MAAM,WAAW,2BAA2B;IAC1C,yDAAyD;IACzD,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD,IAAI,EAAE,cAAc,CAAA;IACpB,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,6EAA6E;IAC7E,sBAAsB,CAAC,EAAE,MAAM,CAAA;CAChC;AAED,MAAM,WAAW,2BAA2B;IAC1C,2EAA2E;IAC3E,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,4EAA4E;IAC5E,QAAQ,EAAE,OAAO,CAAA;IACjB,iFAAiF;IACjF,mBAAmB,EAAE,KAAK,GAAG,SAAS,CAAA;IACtC,sEAAsE;IACtE,mBAAmB,EAAE,MAAM,IAAI,CAAA;CAChC;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,cAAc,EACd,IAAI,EACJ,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,sBAAsB,GACvB,EAAE,2BAA2B,GAAG,2BAA2B,CA4D3D"}
|
|
@@ -5,7 +5,7 @@ import type { DepositAmountEntryConfig, DepositFlowCallbacks, DepositInitialAmou
|
|
|
5
5
|
* rail behind the submit is not part of this step — `onSubmitAmount` is the
|
|
6
6
|
* seam it will attach to.
|
|
7
7
|
*/
|
|
8
|
-
export declare function DepositAmountStep({ config, callbacks, initialAmount, lockAmount, }: {
|
|
8
|
+
export declare function DepositAmountStep({ config, callbacks, initialAmount, lockAmount, onCloseFlow, }: {
|
|
9
9
|
config: DepositAmountEntryConfig;
|
|
10
10
|
callbacks: DepositFlowCallbacks;
|
|
11
11
|
/** Prefills the typed amount. */
|
|
@@ -15,5 +15,6 @@ export declare function DepositAmountStep({ config, callbacks, initialAmount, lo
|
|
|
15
15
|
* quick-amount taps all reject.
|
|
16
16
|
*/
|
|
17
17
|
lockAmount?: boolean;
|
|
18
|
+
onCloseFlow: () => void;
|
|
18
19
|
}): import("react").JSX.Element;
|
|
19
20
|
//# sourceMappingURL=DepositAmountStep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,qBAAqB,CAAA;AAU5B;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,EACT,aAAa,EACb,UAAU,EACV,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,SAAS,EAAE,oBAAoB,CAAA;IAC/B,iCAAiC;IACjC,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BA4HA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAEA,OA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IACZ,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CA0QZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAoD5B,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,cAAc,CAAA;IACpB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,mEAAmE;IACnE,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BA2BA"}
|
|
@@ -70,11 +70,11 @@ export declare function GlassSheetBackground(props: BottomSheetBackgroundProps):
|
|
|
70
70
|
*/
|
|
71
71
|
export declare function DrawerSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* color: it is a shadow over the surface, not more of it.
|
|
73
|
+
* {@link FlowSheetBackground} for a screen stacked over another sheet — the
|
|
74
|
+
* country list (2531:8471). Glass rather than a panel, so the step it was
|
|
75
|
+
* raised from still reads faintly underneath it.
|
|
77
76
|
*/
|
|
77
|
+
export declare function StackedSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
|
|
78
78
|
/**
|
|
79
79
|
* The dim a drawer is laid over (Figma node 2:1315): clear at the screen's top,
|
|
80
80
|
* half-black through the middle band, clear again before the bottom — so the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AAGd,OAAO,EAEL,KAAK,0BAA0B,EAKhC,MAAM,sBAAsB,CAAA;AAa7B;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,SAAS,CAAA;AAElD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,kDAAkD;IAClD,OAAO,EAAE,SAAS,CAAA;IAClB,yDAAyD;IACzD,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,yFAAyF;IACzF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAsBD,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,oBAA4B,EAC5B,oBAA2B,EA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;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,+BActE;AAMD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,0BAA0B,+BAQvE;AAmED;;;;;GAKG;AACH,wBAAgB,aAAa,gCA4B5B"}
|
|
@@ -74,12 +74,19 @@ export interface DepositAmountEntryConfig {
|
|
|
74
74
|
* the figures alone.
|
|
75
75
|
*/
|
|
76
76
|
methodName?: string;
|
|
77
|
+
/** Header title; defaults to the SDK's own translated "Deposit". */
|
|
78
|
+
title?: string;
|
|
77
79
|
/** Submit CTA label naming the rail (e.g. "Deposit with Apple Pay"). */
|
|
78
80
|
submitLabel: string;
|
|
79
81
|
/** Quick-amount presets in whole dollars; defaults to 10/20/50/100. */
|
|
80
82
|
quickAmountsUsd?: string[];
|
|
81
83
|
/** Hard input cap in dollars; omit when the source defines no limit. */
|
|
82
84
|
limitUsd?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Smallest amount the source will take, in dollars. Below it the CTA names
|
|
87
|
+
* the floor instead of submitting; omit when the source defines none.
|
|
88
|
+
*/
|
|
89
|
+
minLimitUsd?: string;
|
|
83
90
|
/** Brand glyph beside the title; the title stands alone without one. */
|
|
84
91
|
brandIcon?: ReactNode;
|
|
85
92
|
/** Badge on the fee line's leading side (e.g. an Apple Pay mark). */
|
|
@@ -113,8 +120,14 @@ export interface DepositInitialAmount {
|
|
|
113
120
|
export interface FiatRailConfig {
|
|
114
121
|
/** The rail quoted and fired, e.g. `apple_pay`. */
|
|
115
122
|
paymentMethod: string;
|
|
116
|
-
/** Token the fiat buys, as its ticker (e.g. `USDC`). */
|
|
123
|
+
/** Token the fiat buys, as its ticker (e.g. `USDC`) — quotes are priced in it. */
|
|
117
124
|
cryptoCurrencyCode: string;
|
|
125
|
+
/**
|
|
126
|
+
* That same token's address, or SPL mint. What decides where an order
|
|
127
|
+
* delivers: matching `checkoutConfig.targetAsset` leaves nothing to swap, so
|
|
128
|
+
* the crypto goes to the recipient and no deposit address is minted.
|
|
129
|
+
*/
|
|
130
|
+
cryptoCurrencyAddress: string;
|
|
118
131
|
/** Destination chain id used for the quote. */
|
|
119
132
|
chainId: string;
|
|
120
133
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,6BAA6B,CAAA;AAEpC,YAAY,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAEvE;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC,kCAAkC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mEAAmE;IACnE,mBAAmB,CAAC,EAAE,GAAG,MAAM,EAAE,CAAA;CAClC;AAED;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,GAC7D,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAA;AAE5C;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,2BAA2B,EAAE,GAAG,SAAS,EACrD,gBAAgB,EAAE,MAAM,GAAG,SAAS,GACnC,2BAA2B,GAAG,SAAS,CAczC;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,0DAA0D;IAC1D,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAA;IACnB,uEAAuE;IACvE,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;IAC1B,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,wEAAwE;IACxE,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,qEAAqE;IACrE,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,qEAAqE;IACrE,cAAc,CAAC,EAAE;QACf,KAAK,EAAE,MAAM,CAAA;QACb,kDAAkD;QAClD,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,CAAC,EAAE,SAAS,CAAA;QAClB,kEAAkE;QAClE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;KACrB,CAAA;IACD,oDAAoD;IACpD,IAAI,CAAC,EAAE,cAAc,CAAA;CACtB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;IACnC,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAA;IACb,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,wDAAwD;AACxD,MAAM,WAAW,cAAc;IAC7B,mDAAmD;IACnD,aAAa,EAAE,MAAM,CAAA;IACrB,
|
|
1
|
+
{"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,6BAA6B,CAAA;AAEpC,YAAY,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAEvE;;;;;GAKG;AACH,M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ED,yDAAyD;AACzD,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a wait has run long enough to be worth drawing a ring for. A wait
|
|
3
|
+
* that resolves inside `delayMs` never draws one, so a re-quote that lands in
|
|
4
|
+
* a few frames doesn't flash a spinning animation.
|
|
5
|
+
*
|
|
6
|
+
* Reduced motion draws it straight away: there is no animation to suppress
|
|
7
|
+
* then, only a busy cue to hold back.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useDelayedSpinner(delayMs: number): boolean;
|
|
10
|
+
//# sourceMappingURL=useDelayedSpinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDelayedSpinner.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDelayedSpinner.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,WAWhD"}
|
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
import { type NumpadKey } from '../utils/numpadInput';
|
|
2
|
+
/**
|
|
3
|
+
* Which bound a refused value fell outside of, when it was a bound at all.
|
|
4
|
+
*
|
|
5
|
+
* Only the cap refuses. A floor is a state the amount is allowed to sit in —
|
|
6
|
+
* the screen answers that one, and the keypad stays out of its way.
|
|
7
|
+
*/
|
|
8
|
+
export type AmountRefusal = 'max' | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* The value sits under the source's floor. Empty and zero are the untouched
|
|
11
|
+
* state rather than a violation — there is nothing yet to be too small.
|
|
12
|
+
*/
|
|
13
|
+
export declare function isBelowMinimum(value: string, minLimitUsd?: string): boolean;
|
|
2
14
|
/**
|
|
3
15
|
* An amount screen's input policy, separate from its layout. Every way a value
|
|
4
|
-
* enters — a numpad key or a quick-amount chip — commits through
|
|
5
|
-
*
|
|
16
|
+
* enters — a numpad key or a quick-amount chip — commits through this hook, so
|
|
17
|
+
* the source's limits are enforced in exactly one place. Input the policy
|
|
6
18
|
* refuses — deleting from zero, typing past `limitUsd`, or any edit at all
|
|
7
19
|
* while `disabled` — answers with a side-to-side shake, a brief warning tint
|
|
8
20
|
* and a haptic instead of changing the value; a zero typed onto zero is a
|
|
9
21
|
* no-op that swells to acknowledge it.
|
|
22
|
+
*
|
|
23
|
+
* A floor is deliberately not enforced here: an amount below it is entered
|
|
24
|
+
* normally and answered by the screen, not refused by the keypad.
|
|
10
25
|
*/
|
|
11
26
|
export declare function useGuardedAmountInput({ input, onChangeInput, limitUsd, disabled, }: {
|
|
12
27
|
input: string;
|
|
@@ -17,6 +32,8 @@ export declare function useGuardedAmountInput({ input, onChangeInput, limitUsd,
|
|
|
17
32
|
disabled?: boolean;
|
|
18
33
|
}): {
|
|
19
34
|
hasWarning: boolean;
|
|
35
|
+
refusal: AmountRefusal;
|
|
36
|
+
isLocked: boolean;
|
|
20
37
|
feedbackStyle: import("react-native-reanimated/lib/typescript/hook/commonTypes").AnimatedStyleHandle<{
|
|
21
38
|
transform: ({
|
|
22
39
|
translateX: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGuardedAmountInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGuardedAmountInput.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,sBAAsB,CAAA;AAmBrE
|
|
1
|
+
{"version":3,"file":"useGuardedAmountInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGuardedAmountInput.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,sBAAsB,CAAA;AAmBrE;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,SAAS,CAAA;AAE7C;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAM3E;AAOD;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,aAAa,EACb,QAAQ,EACR,QAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;;;;;;;;;;;;;wBAmEU,MAAM;2BAuBP,SAAS;EAuClB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The floor's verdict on the typed amount, shared by everything that acts on
|
|
3
|
+
* it — the notice, the action that replaces the CTA, and the quote.
|
|
4
|
+
*
|
|
5
|
+
* `isResolved` is the seam that matters: while the typing is unsettled the
|
|
6
|
+
* verdict is not yet known, and a caller that would spend something on the
|
|
7
|
+
* amount (a quote) must wait for it rather than race it.
|
|
8
|
+
*
|
|
9
|
+
* One-directional on purpose. The verdict is withheld while typing, but a valid
|
|
10
|
+
* amount clears it at once — `isBelowMinimum` is checked against the live value
|
|
11
|
+
* too, so reaching the floor drops the notice without waiting out the debounce.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useMinimumAmountValidation(input: string, minLimitUsd?: string): {
|
|
14
|
+
belowMinimum: boolean;
|
|
15
|
+
isResolved: boolean;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=useMinimumAmountValidation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMinimumAmountValidation.d.ts","sourceRoot":"","sources":["../../../src/hooks/useMinimumAmountValidation.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,MAAM,GACnB;IAAE,YAAY,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE,CAmBhD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type KycStatusGlyph = 'complete' | 'pending' | 'soft' | 'hard';
|
|
2
|
+
export declare function KycStatusIcon({ glyph, color, faded, height: drawn, }: {
|
|
3
|
+
glyph: KycStatusGlyph;
|
|
4
|
+
color?: string;
|
|
5
|
+
/** The card's vertical fade; the banner leaves it off. */
|
|
6
|
+
faded?: boolean;
|
|
7
|
+
/** Drawn height; the width follows. The banner omits it, the card sets it. */
|
|
8
|
+
height?: number;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=KycStatusIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KycStatusIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycStatusIcon.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAA;AAgDrE,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,KAAK,EACL,KAAa,EACb,MAAM,EAAE,KAAK,GACd,EAAE;IACD,KAAK,EAAE,cAAc,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0DAA0D;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,+BAsBA"}
|
|
@@ -8,6 +8,14 @@ export interface DepositAmountScreenProps {
|
|
|
8
8
|
brandIcon?: ReactNode;
|
|
9
9
|
/** Host account context in the header's trailing corner. */
|
|
10
10
|
accountContext?: AccountBalanceChipProps;
|
|
11
|
+
/**
|
|
12
|
+
* The centred header's leading back control — a brand header keeps the host's
|
|
13
|
+
* own way out. Omit where the sheet is left by swipe alone.
|
|
14
|
+
*/
|
|
15
|
+
back?: {
|
|
16
|
+
onPress: () => void;
|
|
17
|
+
accessibilityLabel: string;
|
|
18
|
+
};
|
|
11
19
|
/** The typed dollar amount; held by the caller so it survives navigation. */
|
|
12
20
|
input: string;
|
|
13
21
|
onChangeInput: (input: string) => void;
|
|
@@ -15,6 +23,8 @@ export interface DepositAmountScreenProps {
|
|
|
15
23
|
quickAmounts?: QuickAmountOption[];
|
|
16
24
|
/** Hard input cap in dollars — the payment source's limit. */
|
|
17
25
|
limitUsd?: string;
|
|
26
|
+
/** Smallest amount the payment source takes, in dollars. */
|
|
27
|
+
minLimitUsd?: string;
|
|
18
28
|
/** Locks `input`: disables the numpad, backspace/clear, and quick amounts. */
|
|
19
29
|
disabled?: boolean;
|
|
20
30
|
/** The full fee line for the entered amount (e.g. `$0.50 fee`). */
|
|
@@ -57,5 +67,5 @@ export interface DepositAmountScreenProps {
|
|
|
57
67
|
* source's limit — answers with a side-to-side shake, a brief warning tint and
|
|
58
68
|
* a haptic. While `disabled`, the input controls themselves are non-interactive.
|
|
59
69
|
*/
|
|
60
|
-
export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, limitUsd, disabled, fee, feePending, onPressFee, feeAccessibilityLabel, methodBadge, notice, disclosure, submitLabel, canSubmit, onSubmit, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
|
|
70
|
+
export declare function DepositAmountScreen({ title, brandIcon, accountContext, back, input, onChangeInput, quickAmounts, limitUsd, minLimitUsd, disabled, fee, feePending, onPressFee, feeAccessibilityLabel, methodBadge, notice, disclosure, submitLabel, canSubmit, onSubmit, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
|
|
61
71
|
//# sourceMappingURL=DepositAmountScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;AAoB3D,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,kCAAkC,CAAA;AAiCzC,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAOhE;AAID,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,oDAAoD;IACpD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,uBAAuB,CAAA;IACxC;;;OAGG;IACH,IAAI,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,IAAI,CAAC;QAAC,kBAAkB,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1D,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,0DAA0D;IAC1D,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAClC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mEAAmE;IACnE,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,qDAAqD;IACrD,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,qEAAqE;IACrE,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,wDAAwD;IACxD,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,iDAAiD;IACjD,YAAY,CAAC,EAAE,MAAM,SAAS,CAAA;IAC9B,wBAAwB,EAAE,MAAM,CAAA;IAChC,2BAA2B,EAAE,MAAM,CAAA;IACnC,2DAA2D;IAC3D,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,SAAS,EACT,cAAc,EACd,IAAI,EACJ,KAAK,EACL,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,QAAgB,EAChB,GAAG,EACH,UAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,MAAM,EACN,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,eAAuB,GACxB,EAAE,wBAAwB,+BAuN1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FunkitTheme } from './toRestyleTheme';
|
|
2
|
+
/**
|
|
3
|
+
* The button token's corner radius at a given height, for controls that clip
|
|
4
|
+
* their own content and so need the number rather than the token name.
|
|
5
|
+
*
|
|
6
|
+
* Capped at half the height: the token's pill default (999) would otherwise
|
|
7
|
+
* clip past the control's own corners on anything but a `borderRadius` prop.
|
|
8
|
+
*/
|
|
9
|
+
export declare function buttonRadius(theme: FunkitTheme, height: number): number;
|
|
10
|
+
//# sourceMappingURL=buttonRadius.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buttonRadius.d.ts","sourceRoot":"","sources":["../../../src/theme/buttonRadius.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ViewStyle } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* Apple's continuous ("squircle") corner — Figma's 60% corner smoothing — for a
|
|
4
|
+
* control of this corner radius and height.
|
|
5
|
+
*
|
|
6
|
+
* - Only for a corner that leaves a straight edge to curve into: at half the
|
|
7
|
+
* height the radius already draws a stadium or a circle, and smoothing those
|
|
8
|
+
* ends flattens them instead of softening them.
|
|
9
|
+
*/
|
|
10
|
+
export declare function cornerCurve(radius: number, height: number): ViewStyle['borderCurve'];
|
|
11
|
+
//# sourceMappingURL=cornerCurve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cornerCurve.d.ts","sourceRoot":"","sources":["../../../src/theme/cornerCurve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C;;;;;;;GAOG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,SAAS,CAAC,aAAa,CAAC,CAE1B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { FunAddress } from '@funkit/api-base';
|
|
2
|
+
import type { CheckoutTokenTransferConfig } from '@funkit/connect-core';
|
|
3
|
+
export interface UseDepositRecipientResult {
|
|
4
|
+
/** Who ends up with the funds; `0x` when nothing names one. */
|
|
5
|
+
recipient: FunAddress;
|
|
6
|
+
/** A Lighter deposit whose main-account index has not resolved. */
|
|
7
|
+
isLighterWalletFallback: boolean;
|
|
8
|
+
isLighterDeposit: boolean;
|
|
9
|
+
/** The resolved L2 main-account index, when there is one. */
|
|
10
|
+
lighterRecipientOverride: string | undefined;
|
|
11
|
+
isLookupFetching: boolean;
|
|
12
|
+
lookupStatus: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Who a deposit pays, resolved once.
|
|
16
|
+
*
|
|
17
|
+
* Mirrors web's `useCheckoutTransferInit` priority: a resolved Lighter L2
|
|
18
|
+
* main-account index outranks an explicit `recipientAddr`, which outranks the
|
|
19
|
+
* host's configured `customRecipient`, which outranks the wallet. Its own hook
|
|
20
|
+
* so a caller can read the recipient *before* deciding whether to mint a
|
|
21
|
+
* deposit address for it.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useDepositRecipient({ checkoutConfig, recipientAddr, udaTargetChain, }: {
|
|
24
|
+
checkoutConfig: CheckoutTokenTransferConfig | undefined;
|
|
25
|
+
recipientAddr?: FunAddress;
|
|
26
|
+
/** Target chain of the resolved UDA params, which decides Lighter. */
|
|
27
|
+
udaTargetChain: string | undefined;
|
|
28
|
+
}): UseDepositRecipientResult;
|
|
29
|
+
//# sourceMappingURL=useDepositRecipient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDepositRecipient.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useDepositRecipient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAKvE,MAAM,WAAW,yBAAyB;IACxC,+DAA+D;IAC/D,SAAS,EAAE,UAAU,CAAA;IACrB,mEAAmE;IACnE,uBAAuB,EAAE,OAAO,CAAA;IAChC,gBAAgB,EAAE,OAAO,CAAA;IACzB,6DAA6D;IAC7D,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5C,gBAAgB,EAAE,OAAO,CAAA;IACzB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,cAAc,EACd,aAAa,EACb,cAAc,GACf,EAAE;IACD,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B,sEAAsE;IACtE,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;CACnC,GAAG,yBAAyB,CAyC5B"}
|
|
@@ -23,6 +23,10 @@ export interface UseTokenTransferResult {
|
|
|
23
23
|
qrCodeUri: QRCodeUri | undefined;
|
|
24
24
|
blockchain: TransferTokenQrCodeType;
|
|
25
25
|
isLoading: boolean;
|
|
26
|
+
/** The deposit-address lookup failed; nothing can be delivered without it. */
|
|
27
|
+
depositAddressError: Error | undefined;
|
|
28
|
+
/** Replays the deposit-address lookup. */
|
|
29
|
+
retryDepositAddress: () => void;
|
|
26
30
|
}
|
|
27
31
|
/**
|
|
28
32
|
* Thin RN reimplementation of `@funkit/connect`'s `useTokenTransfer`: resolves
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTokenTransfer.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useTokenTransfer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,UAAU,EACX,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,SAAS,EACd,KAAK,uBAAuB,EAG7B,MAAM,sBAAsB,CAAA;AAuB7B,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD,8CAA8C;IAC9C,eAAe,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mEAAmE;IACnE,cAAc,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,wCAAwC;IACxC,cAAc,EAAE,UAAU,GAAG,SAAS,CAAA;IACtC,gFAAgF;IAChF,YAAY,EAAE,iCAAiC,GAAG,SAAS,CAAA;IAC3D,sCAAsC;IACtC,aAAa,EAAE,MAAM,CAAA;IACrB,0CAA0C;IAC1C,kBAAkB,EAAE,MAAM,CAAA;IAC1B,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;IAChC,UAAU,EAAE,uBAAuB,CAAA;IACnC,SAAS,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"useTokenTransfer.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useTokenTransfer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,UAAU,EACX,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,SAAS,EACd,KAAK,uBAAuB,EAG7B,MAAM,sBAAsB,CAAA;AAuB7B,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD,8CAA8C;IAC9C,eAAe,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mEAAmE;IACnE,cAAc,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,wCAAwC;IACxC,cAAc,EAAE,UAAU,GAAG,SAAS,CAAA;IACtC,gFAAgF;IAChF,YAAY,EAAE,iCAAiC,GAAG,SAAS,CAAA;IAC3D,sCAAsC;IACtC,aAAa,EAAE,MAAM,CAAA;IACrB,0CAA0C;IAC1C,kBAAkB,EAAE,MAAM,CAAA;IAC1B,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;IAChC,UAAU,EAAE,uBAAuB,CAAA;IACnC,SAAS,EAAE,OAAO,CAAA;IAClB,8EAA8E;IAC9E,mBAAmB,EAAE,KAAK,GAAG,SAAS,CAAA;IACtC,0CAA0C;IAC1C,mBAAmB,EAAE,MAAM,IAAI,CAAA;CAChC;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,OAAO,GACR,EAAE,sBAAsB,GAAG,sBAAsB,CAoCjD"}
|
|
@@ -4,7 +4,10 @@ import type { DepositClientMetadata } from '../../flow/depositFlowConfig';
|
|
|
4
4
|
export interface UseTransferInitParams {
|
|
5
5
|
/** Destination chain/asset to derive the deposit address for. */
|
|
6
6
|
checkoutConfig: CheckoutTokenTransferConfig | undefined;
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Final recipient, outranking the config's `customRecipient`. Both default
|
|
9
|
+
* to the identity's wallet address.
|
|
10
|
+
*/
|
|
8
11
|
recipientAddr?: FunAddress;
|
|
9
12
|
/** Dynamic-routing id used to resolve UDA params. */
|
|
10
13
|
dynamicRoutingId?: string;
|
|
@@ -27,6 +30,10 @@ export interface UseTransferInitResult {
|
|
|
27
30
|
recipientAddr: FunAddress;
|
|
28
31
|
isLoading: boolean;
|
|
29
32
|
isFetching: boolean;
|
|
33
|
+
/** The `/eoa` call that mints the deposit address failed. */
|
|
34
|
+
error: Error | undefined;
|
|
35
|
+
/** Replays that call, for a caller that puts a retry on screen. */
|
|
36
|
+
retry: () => void;
|
|
30
37
|
}
|
|
31
38
|
/**
|
|
32
39
|
* Thin RN reimplementation of `@funkit/connect`'s `useCheckoutTransferInit`:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTransferInit.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useTransferInit.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iCAAiC,EACtC,KAAK,UAAU,EAEhB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,sBAAsB,CAAA;AAQ7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAErE,MAAM,WAAW,qBAAqB;IACpC,iEAAiE;IACjE,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD
|
|
1
|
+
{"version":3,"file":"useTransferInit.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useTransferInit.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iCAAiC,EACtC,KAAK,UAAU,EAEhB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,sBAAsB,CAAA;AAQ7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAErE,MAAM,WAAW,qBAAqB;IACpC,iEAAiE;IACjE,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD;;;OAGG;IACH,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,cAAc,CAAC,EAAE,qBAAqB,CAAA;IACtC,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,iCAAiC,GAAG,SAAS,CAAA;IAC3D,aAAa,EAAE,UAAU,CAAA;IACzB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,OAAO,CAAA;IACnB,6DAA6D;IAC7D,KAAK,EAAE,KAAK,GAAG,SAAS,CAAA;IACxB,mEAAmE;IACnE,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAC9B,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,OAAc,GACf,EAAE,qBAAqB,GAAG,qBAAqB,CAkF/C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Where each {@link hsbRamp} stop sits in a 0–1 crossing. */
|
|
2
|
+
export declare const RAMP_PROGRESS: number[];
|
|
3
|
+
/**
|
|
4
|
+
* The path from one fill colour to the next sampled through HSB, as stops a
|
|
5
|
+
* plain colour interpolation can follow on the UI thread (Neil, ENG-6125:
|
|
6
|
+
* white → green travels by brightness, not along the RGB line).
|
|
7
|
+
*
|
|
8
|
+
* An unsaturated colour has no hue of its own, so it borrows the other end's:
|
|
9
|
+
* white otherwise leaves at hue 0 and the crossing flashes yellow on its way
|
|
10
|
+
* to green. A colour `colord` cannot read crosses nowhere — every stop is the
|
|
11
|
+
* colour being crossed to, as a wrong colour is worse than no motion.
|
|
12
|
+
*/
|
|
13
|
+
export declare function hsbRamp(from: string, to: string): string[];
|
|
14
|
+
//# sourceMappingURL=colorMotion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorMotion.d.ts","sourceRoot":"","sources":["../../../src/utils/colorMotion.ts"],"names":[],"mappings":"AAMA,8DAA8D;AAC9D,eAAO,MAAM,aAAa,EAAE,MAAM,EAGjC,CAAA;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,CA4B1D"}
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
export declare function groupThousands(amount: string): string;
|
|
6
6
|
/**
|
|
7
7
|
* A rate as its percentage: `0.005` → `0.5%`. Trailing zeros are dropped, so a
|
|
8
|
-
* whole percent reads `1%` rather than `1.00%`.
|
|
8
|
+
* whole percent reads `1%` rather than `1.00%`. A rate too small to round to a
|
|
9
|
+
* tenth reads `<0.1%`, since the row beside it still charges a real amount.
|
|
9
10
|
*/
|
|
10
11
|
export declare function formatPercent(rate: number): string;
|
|
11
12
|
/**
|
|
@@ -25,4 +26,12 @@ export declare function formatTokenAmount(amount: string, maxDecimals?: number):
|
|
|
25
26
|
export declare function formatUsd(value: number): string;
|
|
26
27
|
/** `99.94, 'AUD'` → `A$99.94`. Fiat amounts are not always dollars. */
|
|
27
28
|
export declare function formatFiat(value: number, currency: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* `2, 'USD'` → `$2`, `2.5, 'USD'` → `$2.50`.
|
|
31
|
+
*
|
|
32
|
+
* For the deposit limit disclaimers only: a threshold reads the way the rail
|
|
33
|
+
* states it ("the minimum for this purchase is 2 USD"), and cents the user
|
|
34
|
+
* never has to think about are noise. Amounts they pay keep {@link formatFiat}.
|
|
35
|
+
*/
|
|
36
|
+
export declare function formatFiatWhole(value: number, currency: string): string;
|
|
28
37
|
//# sourceMappingURL=formatAmount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatAmount.d.ts","sourceRoot":"","sources":["../../../src/utils/formatAmount.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIrD;
|
|
1
|
+
{"version":3,"file":"formatAmount.d.ts","sourceRoot":"","sources":["../../../src/utils/formatAmount.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIrD;AAQD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQlD;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,IAAI,CAAA;AAE/B;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,WAAW,GAAE,MAAuB,GACnC,MAAM,CAKR;AAED,8EAA8E;AAC9E,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/C;AAmBD,uEAAuE;AACvE,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAElE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGvE"}
|
|
@@ -6,6 +6,7 @@ export declare const MOTION_TIMING: {
|
|
|
6
6
|
duration: number;
|
|
7
7
|
easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
8
8
|
};
|
|
9
|
+
export declare const SPINNER_APPEAR_DELAY_MS = 150;
|
|
9
10
|
export declare const GLYPH_LAYOUT: LinearTransition;
|
|
10
11
|
export declare const DIGIT_ENTER_SCALE = 0.5;
|
|
11
12
|
export declare const DIGIT_TRAVEL_RATIO = 0.4;
|
|
@@ -19,6 +20,17 @@ export declare function digitKeyframes(travel: number, delay?: number): {
|
|
|
19
20
|
exiting: import("react-native-reanimated").ReanimatedKeyframe;
|
|
20
21
|
};
|
|
21
22
|
export declare const SMOOTH_EASING: import("react-native-reanimated").EasingFunctionFactory;
|
|
23
|
+
/**
|
|
24
|
+
* The deposit action changing phase: its fill crosses between phase colours on
|
|
25
|
+
* the amount screen's own clock, and the label and spinner arrive once that
|
|
26
|
+
* crossing is visibly under way rather than with it.
|
|
27
|
+
*/
|
|
28
|
+
export declare const CONTENT_FADE_DELAY = 60;
|
|
29
|
+
export declare const CONTENT_FADE_DURATION = 120;
|
|
30
|
+
export declare const CONTENT_FADE_TIMING: {
|
|
31
|
+
duration: number;
|
|
32
|
+
easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
33
|
+
};
|
|
22
34
|
/**
|
|
23
35
|
* A keyboard action rising into place. Deposit amount fills use
|
|
24
36
|
* DepositActionLayers so state changes can replay without remounting.
|
|
@@ -58,4 +70,15 @@ export declare const CHECK_ROTATE_FROM = "80deg";
|
|
|
58
70
|
export declare const CHECK_BOB_DISTANCE = 40;
|
|
59
71
|
export declare const CHECK_BOB_EASING: import("react-native-reanimated").EasingFunctionFactory;
|
|
60
72
|
export declare const CHECK_ENTERING: import("react-native-reanimated").ReanimatedKeyframe;
|
|
73
|
+
/**
|
|
74
|
+
* A keyboard action arriving. Short travel on purpose: a longer rise reads as
|
|
75
|
+
* the button coming out from behind the keyboard, and the fade carries the
|
|
76
|
+
* arrival instead.
|
|
77
|
+
*/
|
|
78
|
+
export declare const ACTION_ENTER_TRAVEL = 12;
|
|
79
|
+
export declare const ACTION_ENTER_DURATION = 300;
|
|
80
|
+
export declare const ACTION_ENTER_TIMING: {
|
|
81
|
+
duration: number;
|
|
82
|
+
easing: import("react-native-reanimated").EasingFunction;
|
|
83
|
+
};
|
|
61
84
|
//# sourceMappingURL=motion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../../src/utils/motion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI5E,eAAO,MAAM,eAAe,MAAM,CAAA;AAClC,eAAO,MAAM,aAAa,yDAAkC,CAAA;AAC5D,mFAAmF;AACnF,eAAO,MAAM,aAAa;;;CAGzB,CAAA;AAID,eAAO,MAAM,YAAY,kBACyC,CAAA;AAKlE,eAAO,MAAM,iBAAiB,MAAM,CAAA;AACpC,eAAO,MAAM,kBAAkB,MAAM,CAAA;AAIrC,eAAO,MAAM,aAAa,KAAK,CAAA;AAE/B;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,SAAI;;;EAwBvD;AAKD,eAAO,MAAM,aAAa,yDAAkC,CAAA;AAE5D;;;GAGG;AACH,eAAO,MAAM,WAAW,KAAK,CAAA;AAC7B,eAAO,MAAM,aAAa,sDAGE,CAAA;AAC5B,eAAO,MAAM,YAAY,sDAOG,CAAA;AAE5B;;;GAGG;AACH,eAAO,MAAM,mBAAmB,MAAM,CAAA;AACtC,eAAO,MAAM,oBAAo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 -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAQhC,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EACV,oBAAoB,EACpB,eAAe,EAChB,MAAM,8BAA8B,CAAA;AAMrC;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAC1B,iBAAiB,GACjB,uBAAuB,GACvB,0BAA0B,GAC1B,cAAc,GACd,cAAc,GACd,oBAAoB,GACpB,mBAAmB,CAAA;AAEvB;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,WAAW,EACX,mBAAmB,EACnB,mBAAmB,EACnB,MAAM,EACN,OAAO,GACR,EAAE;IACD,MAAM,EAAE,IAAI,CACV,oBAAoB,EAClB,wBAAwB,GACxB,qBAAqB,GACrB,qBAAqB,GACrB,wBAAwB,CAC3B,CAAA;IACD,WAAW,EAAE,eAAe,CAAA;IAC5B,0DAA0D;IAC1D,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,4EAA4E;IAC5E,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B,GAAG,0BAA0B,CAmC7B;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,WAAW,GACZ,EAAE;IACD,gBAAgB,EAAE,MAAM,CAAA;IACxB,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,eAAe,CAAA;IAC5B,gBAAgB,EAAE,eAAe,GAAG,SAAS,CAAA;IAC7C,WAAW,EAAE,OAAO,CAAA;CACrB,GAAG,OAAO,CAgBV;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,MAAM,EACN,gBAAgB,EAChB,gBAAgB,GACjB,EAAE;IACD,gBAAgB,EAAE,MAAM,CAAA;IACxB,sBAAsB,EAAE,OAAO,CAAA;IAC/B,uBAAuB,EAAE,OAAO,CAAA;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,gBAAgB,EAAE,0BAA0B,CAAA;IAC5C,gBAAgB,EAAE,eAAe,GAAG,SAAS,CAAA;CAC9C,GAAG,kBAAkB,GAAG,SAAS,CA6BjC;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,cAAc,EACd,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B,GAAG,OAAO,CAiBV"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect-rn",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "React Native bindings for @funkit/connect. Re-exports the headless @funkit/connect-core logic; the RN platform halves (Restyle theme, WebView Swapped transport, Transfer/Swapped screens, logging) land in later releases.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"colord": "2.10.0",
|
|
43
43
|
"libphonenumber-js": "1.13.6",
|
|
44
44
|
"react-i18next": "12.3.1",
|
|
45
|
-
"@funkit/api-base": "8.3.
|
|
46
|
-
"@funkit/
|
|
47
|
-
"@funkit/
|
|
45
|
+
"@funkit/api-base": "8.3.1",
|
|
46
|
+
"@funkit/chains": "2.4.0",
|
|
47
|
+
"@funkit/connect-core": "8.0.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@gorhom/bottom-sheet": ">=5",
|