@funkit/connect-rn 3.10.1 → 4.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 +46 -0
- package/dist/{chunk-4QKU6F5D.js → chunk-OI54J6E6.js} +363 -2
- package/dist/chunk-OI54J6E6.js.map +7 -0
- package/dist/{chunk-THWTURYZ.js → chunk-V4LN3XNI.js} +2 -2
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2461 -1185
- package/dist/index.js.map +4 -4
- package/dist/src/branding/BrandingContext.d.ts +15 -0
- package/dist/src/branding/BrandingContext.d.ts.map +1 -0
- package/dist/src/components/AttributionWatermark.d.ts +10 -0
- package/dist/src/components/AttributionWatermark.d.ts.map +1 -0
- package/dist/src/components/Grabber.d.ts +7 -1
- package/dist/src/components/Grabber.d.ts.map +1 -1
- package/dist/src/components/PillButton.d.ts +3 -1
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
- package/dist/src/components/v2/NumPad.d.ts.map +1 -1
- package/dist/src/fiat/FiatStatusScreen.d.ts +19 -0
- package/dist/src/fiat/FiatStatusScreen.d.ts.map +1 -0
- package/dist/src/fiat/SurfaceSlot.d.ts +8 -0
- package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -0
- package/dist/src/fiat/ctaLabel.d.ts +19 -0
- package/dist/src/fiat/ctaLabel.d.ts.map +1 -0
- package/dist/src/fiat/providers/TransakApplePaySurface.d.ts +7 -0
- package/dist/src/fiat/providers/TransakApplePaySurface.d.ts.map +1 -0
- package/dist/src/fiat/renderCaptureSurface.d.ts +12 -0
- package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -0
- package/dist/src/fiat/stepDetails.d.ts +18 -0
- package/dist/src/fiat/stepDetails.d.ts.map +1 -0
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts +1 -3
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +9 -0
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -0
- package/dist/src/flow/FlowSheet.d.ts +34 -5
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts +1 -4
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +24 -3
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
- package/dist/src/hooks/usePressScale.d.ts +18 -0
- package/dist/src/hooks/usePressScale.d.ts.map +1 -0
- package/dist/src/identity/IdentityContext.d.ts +10 -0
- package/dist/src/identity/IdentityContext.d.ts.map +1 -1
- package/dist/src/providers/FunkitProvider.d.ts +6 -5
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/providers/NativeCapabilitiesContext.d.ts +43 -0
- package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -0
- package/dist/src/screens/DepositAmountScreen.d.ts +27 -11
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts +36 -0
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -0
- package/dist/src/theme/buildFunkitTheme.d.ts +8 -0
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +264 -0
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +24 -0
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/tokens.d.ts +4 -1
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/utils/formatAmount.d.ts +5 -0
- package/dist/src/utils/formatAmount.d.ts.map +1 -1
- package/dist/src/utils/numpadInput.d.ts +2 -1
- package/dist/src/utils/numpadInput.d.ts.map +1 -1
- package/dist/src/utils/withAlpha.d.ts +13 -0
- package/dist/src/utils/withAlpha.d.ts.map +1 -0
- package/package.json +6 -4
- package/dist/chunk-4QKU6F5D.js.map +0 -7
- package/dist/src/components/v2/RollingAmount.d.ts +0 -20
- package/dist/src/components/v2/RollingAmount.d.ts.map +0 -1
- /package/dist/{chunk-THWTURYZ.js.map → chunk-V4LN3XNI.js.map} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* How the flow is branded, supplied by the host app. Separate from identity:
|
|
4
|
+
* this follows the host's agreement with Fun, not who the user is.
|
|
5
|
+
*/
|
|
6
|
+
export interface FunkitBranding {
|
|
7
|
+
/** The host's `hideAttribution` config, defaulted to false here. */
|
|
8
|
+
hideAttribution: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function FunkitBrandingProvider({ hideAttribution, children, }: {
|
|
11
|
+
hideAttribution?: boolean;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
|
+
export declare function useFunkitBranding(): FunkitBranding;
|
|
15
|
+
//# sourceMappingURL=BrandingContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrandingContext.d.ts","sourceRoot":"","sources":["../../../src/branding/BrandingContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAsC,MAAM,OAAO,CAAA;AAE1E;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,oEAAoE;IACpE,eAAe,EAAE,OAAO,CAAA;CACzB;AAOD,wBAAgB,sBAAsB,CAAC,EACrC,eAAuB,EACvB,QAAQ,GACT,EAAE;IACD,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAOA;AAED,wBAAgB,iBAAiB,IAAI,cAAc,CAElD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* "powered by Fun" at the foot of the flow (Figma: `AttributionWatermark`, node
|
|
3
|
+
* 2:1282). Set in `content/watermark` — legible enough to find, quiet enough to
|
|
4
|
+
* ignore — and hidden entirely when the host sets `hideAttribution`.
|
|
5
|
+
*
|
|
6
|
+
* Absolutely positioned, so it never enters the layout of the screen it sits
|
|
7
|
+
* under; a screen renders it last and pays it no space.
|
|
8
|
+
*/
|
|
9
|
+
export declare function AttributionWatermark(): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=AttributionWatermark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttributionWatermark.d.ts","sourceRoot":"","sources":["../../../src/components/AttributionWatermark.tsx"],"names":[],"mappings":"AAgBA;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,gCAuBnC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
export interface GrabberProps {
|
|
2
|
+
/** Bar width; the drawer variant is wider than a flow sheet's. */
|
|
3
|
+
width?: number;
|
|
4
|
+
/** Distance from the sheet's top edge. */
|
|
5
|
+
top?: number;
|
|
6
|
+
}
|
|
1
7
|
/**
|
|
2
8
|
* The bottom-sheet drag affordance. Absolutely positioned so each top bar lays
|
|
3
9
|
* out its own content independently. Sheets rendering this must pass
|
|
4
10
|
* `handleComponent={null}` to gorhom, or its default handle draws a second
|
|
5
11
|
* grabber above it.
|
|
6
12
|
*/
|
|
7
|
-
export declare function Grabber(): import("react").JSX.Element;
|
|
13
|
+
export declare function Grabber({ width, top, }: GrabberProps): import("react").JSX.Element;
|
|
8
14
|
//# sourceMappingURL=Grabber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grabber.d.ts","sourceRoot":"","sources":["../../../src/components/Grabber.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Grabber.d.ts","sourceRoot":"","sources":["../../../src/components/Grabber.tsx"],"names":[],"mappings":"AASA,MAAM,WAAW,YAAY;IAC3B,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0CAA0C;IAC1C,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,EACtB,KAAqB,EACrB,GAAiB,GAClB,EAAE,YAAY,+BAiBd"}
|
|
@@ -7,6 +7,8 @@ export interface PillButtonProps {
|
|
|
7
7
|
onPress: () => void;
|
|
8
8
|
/** Leading content inside the pill, e.g. a 16px icon. */
|
|
9
9
|
icon?: ReactNode;
|
|
10
|
+
/** Content pinned without shifting the centered label. */
|
|
11
|
+
trailingIcon?: ReactNode;
|
|
10
12
|
size?: PillButtonSize;
|
|
11
13
|
/** `secondary` is the quieter fill used for side-by-side actions. */
|
|
12
14
|
variant?: PillButtonVariant;
|
|
@@ -21,5 +23,5 @@ export interface PillButtonProps {
|
|
|
21
23
|
* The full-width primary action at the foot of a sheet — Confirm, Cancel, Done.
|
|
22
24
|
* Width comes from the container, so callers control the horizontal inset.
|
|
23
25
|
*/
|
|
24
|
-
export declare function PillButton({ label, onPress, icon, size, variant, radius, disabled, accessibilityLabel, }: PillButtonProps): import("react").JSX.Element;
|
|
26
|
+
export declare function PillButton({ label, onPress, icon, trailingIcon, size, variant, radius, disabled, accessibilityLabel, }: PillButtonProps): import("react").JSX.Element;
|
|
25
27
|
//# sourceMappingURL=PillButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PillButton.d.ts","sourceRoot":"","sources":["../../../src/components/PillButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D,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D;IACzD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,0DAA0D;IAC1D,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,qEAAqE;IACrE,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B;6CACyC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,WAAW,CAAC,aAAa,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAA;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2BAA2B;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,IAAiB,EACjB,OAAmB,EACnB,MAAiB,EACjB,QAAgB,EAChB,kBAAkB,GACnB,EAAE,eAAe,+BAkDjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmountDisplay.d.ts","sourceRoot":"","sources":["../../../../src/components/v2/AmountDisplay.tsx"],"names":[],"mappings":"AAgHA;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAKpE;AAED,MAAM,WAAW,kBAAkB;IACjC,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAA;IACb,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kFAAkF;IAClF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,MAAY,EACZ,QAAgB,EAChB,UAAkB,EAClB,kBAAkB,GACnB,EAAE,kBAAkB,+
|
|
1
|
+
{"version":3,"file":"AmountDisplay.d.ts","sourceRoot":"","sources":["../../../../src/components/v2/AmountDisplay.tsx"],"names":[],"mappings":"AAgHA;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAKpE;AAED,MAAM,WAAW,kBAAkB;IACjC,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAA;IACb,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kFAAkF;IAClF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,MAAY,EACZ,QAAgB,EAChB,UAAkB,EAClB,kBAAkB,GACnB,EAAE,kBAAkB,+BAyDpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumPad.d.ts","sourceRoot":"","sources":["../../../../src/components/v2/NumPad.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAoDxD,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,CAAC,GAAG,EAAE,SAAS,KAAK,IAAI,CAAA;IACpC,4EAA4E;IAC5E,2BAA2B,EAAE,MAAM,CAAA;CACpC;AAED;;;;;GAKG;AACH,eAAO,MAAM,MAAM,qFAGhB,WAAW,
|
|
1
|
+
{"version":3,"file":"NumPad.d.ts","sourceRoot":"","sources":["../../../../src/components/v2/NumPad.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAoDxD,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,CAAC,GAAG,EAAE,SAAS,KAAK,IAAI,CAAA;IACpC,4EAA4E;IAC5E,2BAA2B,EAAE,MAAM,CAAA;CACpC;AAED;;;;;GAKG;AACH,eAAO,MAAM,MAAM,qFAGhB,WAAW,iCAsCZ,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type FiatStatusTone = 'waiting' | 'success' | 'failure';
|
|
2
|
+
export interface FiatStatusScreenProps {
|
|
3
|
+
tone: FiatStatusTone;
|
|
4
|
+
title: string;
|
|
5
|
+
detail?: string;
|
|
6
|
+
/** The state's recovery CTA, when its step response carries one. */
|
|
7
|
+
cta?: {
|
|
8
|
+
label: string;
|
|
9
|
+
onPress: () => void;
|
|
10
|
+
};
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Every in-place fiat status: verifying, processing, terminal outcomes. One
|
|
15
|
+
* screen because the design keeps the whole Apple Pay flow on one canvas —
|
|
16
|
+
* these render where the entry was, not as navigations away from it.
|
|
17
|
+
*/
|
|
18
|
+
export declare function FiatStatusScreen({ tone, title, detail, cta, onClose, }: FiatStatusScreenProps): import("react").JSX.Element;
|
|
19
|
+
//# sourceMappingURL=FiatStatusScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiatStatusScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatStatusScreen.tsx"],"names":[],"mappings":"AAaA,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;AAE9D,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,cAAc,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oEAAoE;IACpE,GAAG,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IAC5C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,KAAK,EACL,MAAM,EACN,GAAG,EACH,OAAO,GACR,EAAE,qBAAqB,+BAgDvB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type PillButtonSize } from '../components/PillButton';
|
|
3
|
+
export declare function SurfaceSlot({ renderSurface, label, size, }: {
|
|
4
|
+
renderSurface: (onReady: () => void) => ReactNode;
|
|
5
|
+
label: string;
|
|
6
|
+
size: PillButtonSize;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=SurfaceSlot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SurfaceSlot.d.ts","sourceRoot":"","sources":["../../../src/fiat/SurfaceSlot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAA;AAGnE,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAO1E,wBAAgB,WAAW,CAAC,EAC1B,aAAa,EACb,KAAK,EACL,IAAI,GACL,EAAE;IACD,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAA;IACjD,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,cAAc,CAAA;CACrB,+BAkCA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { EntryCta, SubmitTransition } from '@funkit/connect-core';
|
|
2
|
+
import type { TFunction } from 'i18next';
|
|
3
|
+
/**
|
|
4
|
+
* Copy for a server-emitted CTA. `id` is the localization key (known ids get
|
|
5
|
+
* real translations), `labelFallback` covers ids this build predates — the
|
|
6
|
+
* contract's own fallback rule, so a new detour ships without a client
|
|
7
|
+
* release.
|
|
8
|
+
*/
|
|
9
|
+
export declare function ctaLabel(cta: SubmitTransition, t: TFunction): string;
|
|
10
|
+
/**
|
|
11
|
+
* The words on the amount screen's primary button.
|
|
12
|
+
*
|
|
13
|
+
* Paying is the app's own call to word — it owns that copy and its branding.
|
|
14
|
+
* Every other step is the server's to name, which is what lets a step this
|
|
15
|
+
* build has never seen still render sensibly. The screen asks this rather
|
|
16
|
+
* than inspecting `kind`, so intent stays separate from presentation.
|
|
17
|
+
*/
|
|
18
|
+
export declare function entryCtaLabel(entry: EntryCta, t: TFunction, appLabel: string): string;
|
|
19
|
+
//# sourceMappingURL=ctaLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ctaLabel.d.ts","sourceRoot":"","sources":["../../../src/fiat/ctaLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,gBAAgB,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAWpE;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,QAAQ,EACf,CAAC,EAAE,SAAS,EACZ,QAAQ,EAAE,MAAM,GACf,MAAM,CAMR"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ApplePayCallbacks, ApplePayEnvironment } from '@transak/ui-components-core';
|
|
2
|
+
export type TransakApplePaySurfaceProps = ApplePayCallbacks & {
|
|
3
|
+
sessionId: string;
|
|
4
|
+
environment: ApplePayEnvironment;
|
|
5
|
+
};
|
|
6
|
+
export declare function TransakApplePaySurface({ sessionId, environment, onReady, onSuccess, onError, }: TransakApplePaySurfaceProps): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=TransakApplePaySurface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransakApplePaySurface.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/TransakApplePaySurface.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,6BAA6B,CAAA;AAIpC,MAAM,MAAM,2BAA2B,GAAG,iBAAiB,GAAG;IAC5D,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,mBAAmB,CAAA;CACjC,CAAA;AAmBD,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,WAAW,EACX,OAAO,EACP,SAAS,EACT,OAAO,GACR,EAAE,2BAA2B,+BA4E7B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Surface, SurfaceResult } from '@funkit/connect-core';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export declare function supportsCaptureSurface(surface: Surface): boolean;
|
|
4
|
+
export declare function renderCaptureSurface({ surface, placement, onReady, onFailed, report, }: {
|
|
5
|
+
surface: Surface;
|
|
6
|
+
placement: 'INLINE' | 'SCREEN';
|
|
7
|
+
onReady: () => void;
|
|
8
|
+
/** The provider gave up on this attempt; its machine will not recover. */
|
|
9
|
+
onFailed: (code: string) => void;
|
|
10
|
+
report: (result: SurfaceResult) => void;
|
|
11
|
+
}): ReactNode;
|
|
12
|
+
//# sourceMappingURL=renderCaptureSurface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderCaptureSurface.d.ts","sourceRoot":"","sources":["../../../src/fiat/renderCaptureSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAElE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AA2CtC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEhE;AAED,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,SAAS,EACT,OAAO,EACP,QAAQ,EACR,MAAM,GACP,EAAE;IACD,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,0EAA0E;IAC1E,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAA;CACxC,GAAG,SAAS,CAsBZ"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { FiatFlow, Quote } from '@funkit/connect-core';
|
|
2
|
+
import type { TFunction } from 'i18next';
|
|
3
|
+
/**
|
|
4
|
+
* The live quote's fee, worded exactly as the static step words its computed
|
|
5
|
+
* one. The screen fades the whole line while a re-quote is due, so there is
|
|
6
|
+
* nothing here to hold still — no splitting the number out of the sentence.
|
|
7
|
+
* No fee renders until a quote priced this amount; the empty state keeps the
|
|
8
|
+
* quick amounts up instead.
|
|
9
|
+
*/
|
|
10
|
+
export declare function quoteFee(quote: Quote | undefined, amount: string, t: TFunction): string | undefined;
|
|
11
|
+
/** The state's own recovery, when its step response carries one. */
|
|
12
|
+
export declare function recoveryCta(flow: FiatFlow, t: TFunction): {
|
|
13
|
+
label: string;
|
|
14
|
+
onPress: () => void;
|
|
15
|
+
} | undefined;
|
|
16
|
+
/** The refreshed price a post-KYC review carries. */
|
|
17
|
+
export declare function reviewDetail(flow: FiatFlow): string | undefined;
|
|
18
|
+
//# sourceMappingURL=stepDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stepDetails.d.ts","sourceRoot":"","sources":["../../../src/fiat/stepDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAKxC;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAKpB;AAED,oEAAoE;AACpE,wBAAgB,WAAW,CACzB,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,GAAG,SAAS,CASpD;AAED,qDAAqD;AACrD,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAM/D"}
|
|
@@ -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":"AA6BA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACrB,MAAM,qBAAqB,CAAA;AAiB5B;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,GACV,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,SAAS,EAAE,oBAAoB,CAAA;CAChC,+BA2KA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type { ClipboardWriter } from '../transfer/clipboard';
|
|
3
2
|
import type { DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
|
|
4
3
|
import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
|
|
5
4
|
/**
|
|
@@ -8,11 +7,10 @@ import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
|
|
|
8
7
|
* with the resolved data. Kept separate from the provider so its
|
|
9
8
|
* hooks run only while the modal is open (it isn't mounted when closed).
|
|
10
9
|
*/
|
|
11
|
-
export declare function FlowContent({ config, current, nav,
|
|
10
|
+
export declare function FlowContent({ config, current, nav, onCopySuccess, callbacks, }: {
|
|
12
11
|
config: DepositFlowConfig;
|
|
13
12
|
current: FlowScreen | undefined;
|
|
14
13
|
nav: FlowNav;
|
|
15
|
-
copyToClipboard: ClipboardWriter;
|
|
16
14
|
onCopySuccess: () => void;
|
|
17
15
|
callbacks: DepositFlowCallbacks;
|
|
18
16
|
}): ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAoC,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAoC,MAAM,OAAO,CAAA;AA2CxE,OAAO,KAAK,EAEV,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAI5B,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AA6D/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,OAAO,EACP,GAAG,EACH,aAAa,EACb,SAAS,GACV,EAAE;IACD,MAAM,EAAE,iBAAiB,CAAA;IACzB,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CA0PZ"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DepositAmountEntryConfig, DepositCheckoutConfig, FiatRailConfig } from './depositFlowConfig';
|
|
2
|
+
export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dynamicRoutingId, onCloseFlow, }: {
|
|
3
|
+
config: DepositAmountEntryConfig;
|
|
4
|
+
fiat: FiatRailConfig;
|
|
5
|
+
checkoutConfig: DepositCheckoutConfig | undefined;
|
|
6
|
+
dynamicRoutingId: string | undefined;
|
|
7
|
+
onCloseFlow: () => void;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=FiatDepositAmountStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAW5B,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,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,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BAiBA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type BottomSheetBackgroundProps } from '@gorhom/bottom-sheet';
|
|
3
3
|
/**
|
|
4
|
-
* Host-supplied blur laid under the sheet's
|
|
4
|
+
* Host-supplied blur laid under the sheet's overlay. The package ships no blur
|
|
5
5
|
* module of its own — every option is native, so it would cost consumers a
|
|
6
6
|
* rebuild and a peer-dep bump. Rendered into a full-bleed container, so
|
|
7
7
|
* `flex: 1` or `StyleSheet.absoluteFill` fills the screen.
|
|
@@ -30,8 +30,11 @@ export interface FlowSheetProps {
|
|
|
30
30
|
enableSwipeToDismiss?: boolean;
|
|
31
31
|
/** Let the sheet reach the top of the screen for a screen that is a full window tall. */
|
|
32
32
|
fullHeight?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Draw the sheet as glass rather than a panel — the V2 deposit surface, which
|
|
35
|
+
* the design lays over the host app at 30%. See {@link GlassSheetBackground}.
|
|
36
|
+
*/
|
|
37
|
+
glass?: boolean;
|
|
35
38
|
}
|
|
36
39
|
/**
|
|
37
40
|
* Host for the managed deposit-flow surface: a `@gorhom/bottom-sheet` modal
|
|
@@ -43,7 +46,7 @@ export interface FlowSheetProps {
|
|
|
43
46
|
* `react-native-gesture-handler`, `react-native-reanimated`) and a
|
|
44
47
|
* `<GestureHandlerRootView>` at the app root.
|
|
45
48
|
*/
|
|
46
|
-
export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, enableSwipeToDismiss, fullHeight,
|
|
49
|
+
export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, enableSwipeToDismiss, fullHeight, glass, }: FlowSheetProps): import("react").JSX.Element;
|
|
47
50
|
/**
|
|
48
51
|
* Sheet surface for the flow modal. gorhom sizes the sheet body to its content,
|
|
49
52
|
* so a flat background fills only the content area; over-dragging the sheet
|
|
@@ -55,5 +58,31 @@ export declare function FlowSheet({ isOpen, session, onClose, content, children,
|
|
|
55
58
|
* `top: '100%'`, the extension tracks the body as it lifts, so the rubber-band
|
|
56
59
|
* over-drag reveals more surface instead of empty space — the bounce is kept.
|
|
57
60
|
*/
|
|
58
|
-
export declare function FlowSheetBackground(
|
|
61
|
+
export declare function FlowSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
|
|
62
|
+
/**
|
|
63
|
+
* {@link FlowSheetBackground} for the amount-first deposit surface, which the
|
|
64
|
+
* design draws as glass over the host app. Pair with the host's
|
|
65
|
+
* {@link BackdropBlurRenderer}: without a blur behind it the app shows through
|
|
66
|
+
* sharp, which is legible but not what the design draws.
|
|
67
|
+
*/
|
|
68
|
+
export declare function GlassSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
|
|
69
|
+
/**
|
|
70
|
+
* {@link FlowSheetBackground} for a drawer that opens over another sheet: the
|
|
71
|
+
* same surface, laid on at {@link DRAWER_SURFACE_OPACITY} so the screen it was
|
|
72
|
+
* opened from reads through it (dimmed by the drawer's own overlay).
|
|
73
|
+
*/
|
|
74
|
+
export declare function DrawerSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
|
|
75
|
+
/**
|
|
76
|
+
* Black at the sheet's top edge, clear a tenth of the way down — the shading the
|
|
77
|
+
* design lays under the header so the title and balance hold up against
|
|
78
|
+
* whatever host content is showing through the glass. Black, not the modal
|
|
79
|
+
* color: it is a shadow over the surface, not more of it.
|
|
80
|
+
*/
|
|
81
|
+
/**
|
|
82
|
+
* The dim a drawer is laid over (Figma node 2:1315): clear at the screen's top,
|
|
83
|
+
* half-black through the middle band, clear again before the bottom — so the
|
|
84
|
+
* screen it was opened from stays readable at its head while the drawer's own
|
|
85
|
+
* ground goes dark.
|
|
86
|
+
*/
|
|
87
|
+
export declare function DrawerOverlay(): import("react").JSX.Element;
|
|
59
88
|
//# sourceMappingURL=FlowSheet.d.ts.map
|
|
@@ -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;
|
|
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;AAU7B;;;;;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,yFAAyF;IACzF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAQD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,oBAA4B,EAC5B,oBAA2B,EAC3B,UAAkB,EAClB,KAAa,GACd,EAAE,cAAc,+BAoJhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,0BAA0B,+BAEpE;AAaD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,0BAA0B,+BAErE;AAOD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,+BAQtE;AA2DD;;;;;GAKG;AACH;;;;;GAKG;AACH,wBAAgB,aAAa,gCA4B5B"}
|
|
@@ -37,7 +37,7 @@ export declare function FunkitFlowProvider({ children, copyToClipboard, pasteFro
|
|
|
37
37
|
copyToClipboard?: ClipboardWriter;
|
|
38
38
|
/** Host clipboard-read override; defaults to the bare-RN clipboard peer. */
|
|
39
39
|
pasteFromClipboard?: ClipboardReader;
|
|
40
|
-
/** Host blur under the sheet's
|
|
40
|
+
/** Host blur under the sheet's overlay. See {@link BackdropBlurRenderer}. */
|
|
41
41
|
renderBackdropBlur?: BackdropBlurRenderer;
|
|
42
42
|
}): import("react").JSX.Element;
|
|
43
43
|
export declare function useFunkitFlow(): FunkitFlowContextValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAId,OAAO,E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AAM,IAAI,CAAA;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,eAAwC,EACxC,kBAA8C,EAC9C,kBAAkB,GACnB,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,uEAAuE;IACvE,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,4EAA4E;IAC5E,kBAAkB,CAAC,EAAE,eAAe,CAAA;IACpC,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;CAC1C,+BA2LA;AAID,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type { SafeClipboardReader } from '../transfer/clipboard';
|
|
3
2
|
import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
|
|
4
3
|
import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawalFlowConfig';
|
|
5
4
|
/**
|
|
@@ -10,12 +9,10 @@ import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawal
|
|
|
10
9
|
* FlowContent, mounted only while a withdrawal flow is open so its
|
|
11
10
|
* queries run only then.
|
|
12
11
|
*/
|
|
13
|
-
export declare function WithdrawalFlowContent({ config, callbacks, current, nav,
|
|
12
|
+
export declare function WithdrawalFlowContent({ config, callbacks, current, nav, }: {
|
|
14
13
|
config: WithdrawalFlowConfig;
|
|
15
14
|
callbacks: WithdrawalFlowCallbacks;
|
|
16
15
|
current: FlowScreen | undefined;
|
|
17
16
|
nav: FlowNav;
|
|
18
|
-
/** Fills the recipient field on the address step. Guarded upstream. */
|
|
19
|
-
pasteFromClipboard: SafeClipboardReader;
|
|
20
17
|
}): ReactNode;
|
|
21
18
|
//# sourceMappingURL=WithdrawalFlowContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawalFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/WithdrawalFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"WithdrawalFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/WithdrawalFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;AAmB7D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAW/B;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,GACJ,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;CACb,GAAG,SAAS,CAgPZ"}
|
|
@@ -45,13 +45,23 @@ export interface ChainOption {
|
|
|
45
45
|
/**
|
|
46
46
|
* The V2 amount-first deposit surface (Fun Mobile MVP). Present on
|
|
47
47
|
* {@link DepositFlowConfig.amountEntry}, it opens the flow on the full-screen
|
|
48
|
-
* amount screen instead of the Add money method list.
|
|
49
|
-
* the submit is not wired
|
|
48
|
+
* amount screen instead of the Add money method list. Without {@link fiat},
|
|
49
|
+
* the payment rail behind the submit is not wired — submission lands on
|
|
50
50
|
* {@link DepositFlowCallbacks.onSubmitAmount}.
|
|
51
51
|
*/
|
|
52
52
|
export interface DepositAmountEntryConfig {
|
|
53
|
-
/**
|
|
53
|
+
/**
|
|
54
|
+
* Fee charged on the entered amount, as a fraction (0.005 = 0.5%). With
|
|
55
|
+
* {@link fiat} configured the displayed fee comes from live quotes instead
|
|
56
|
+
* and this rate is unused.
|
|
57
|
+
*/
|
|
54
58
|
feeRate: number;
|
|
59
|
+
/**
|
|
60
|
+
* The payment rail the fee belongs to, e.g. `Apple Pay`. Names the rail in
|
|
61
|
+
* the fee-details drawer's written summary; without it the drawer opens on
|
|
62
|
+
* the figures alone.
|
|
63
|
+
*/
|
|
64
|
+
methodName?: string;
|
|
55
65
|
/** Submit CTA label naming the rail (e.g. "Deposit with Apple Pay"). */
|
|
56
66
|
submitLabel: string;
|
|
57
67
|
/** Quick-amount presets in whole dollars; defaults to 10/20/50/100. */
|
|
@@ -71,6 +81,17 @@ export interface DepositAmountEntryConfig {
|
|
|
71
81
|
/** Links back out to the host context (e.g. the profile page). */
|
|
72
82
|
onPress?: () => void;
|
|
73
83
|
};
|
|
84
|
+
/** Routes amount entry through the fiat backend. */
|
|
85
|
+
fiat?: FiatRailConfig;
|
|
86
|
+
}
|
|
87
|
+
/** The fiat onramp rail behind the V2 amount screen. */
|
|
88
|
+
export interface FiatRailConfig {
|
|
89
|
+
/** The rail quoted and fired, e.g. `apple_pay`. */
|
|
90
|
+
paymentMethod: string;
|
|
91
|
+
/** Token the fiat buys, as its ticker (e.g. `USDC`). */
|
|
92
|
+
cryptoCurrencyCode: string;
|
|
93
|
+
/** Destination chain id used for the quote. */
|
|
94
|
+
chainId: string;
|
|
74
95
|
}
|
|
75
96
|
/**
|
|
76
97
|
* Data the managed deposit flow renders.
|
|
@@ -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,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IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0EAA0E;IAC1E,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mEAAmE;IACnE,eAAe,CAAC,EAAE,cAAc,EAAE,CAAA;IAClC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB;AAED,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"}
|
|
@@ -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;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,aAAa,EACb,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;;;;;;;;;;;wBAgDU,MAAM;2BAYP,SAAS;
|
|
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;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,aAAa,EACb,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;;;;;;;;;;;wBAgDU,MAAM;2BAYP,SAAS;EAuBlB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Press feedback for a control the design gives no pressed fill: it dips under
|
|
3
|
+
* the finger on press-in and springs back on press-out. Scale takes the label
|
|
4
|
+
* and any icon with it, which is what makes it read as one physical object.
|
|
5
|
+
*
|
|
6
|
+
* Reduced motion holds the control still — the press already commits something
|
|
7
|
+
* visible, so nothing is lost by dropping the dip.
|
|
8
|
+
*/
|
|
9
|
+
export declare function usePressScale(): {
|
|
10
|
+
pressStyle: import("react-native-reanimated/lib/typescript/hook/commonTypes").AnimatedStyleHandle<{
|
|
11
|
+
transform: {
|
|
12
|
+
scale: number;
|
|
13
|
+
}[];
|
|
14
|
+
}>;
|
|
15
|
+
onPressIn: () => void;
|
|
16
|
+
onPressOut: () => void;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=usePressScale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePressScale.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePressScale.ts"],"names":[],"mappings":"AAeA;;;;;;;GAOG;AACH,wBAAgB,aAAa;;;;;;;;EAwB5B"}
|
|
@@ -18,6 +18,8 @@ export interface FunkitIdentity {
|
|
|
18
18
|
prefillFiatEmail?: string;
|
|
19
19
|
/** See {@link FunkitConfig.hideCryptoDeposit}. Defaulted to false here. */
|
|
20
20
|
hideCryptoDeposit: boolean;
|
|
21
|
+
/** See {@link FunkitConfig.getAuthToken}. */
|
|
22
|
+
getAuthToken?: () => Promise<string>;
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
25
|
* Host-facing identity config, mirroring the identity-relevant subset of the
|
|
@@ -51,6 +53,14 @@ export interface FunkitConfig {
|
|
|
51
53
|
* has no such option yet.
|
|
52
54
|
*/
|
|
53
55
|
hideCryptoDeposit?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Drop the "powered by Fun" mark from the foot of the flow. The design shows
|
|
58
|
+
* it by default; a host whose agreement covers unbranded use turns it off.
|
|
59
|
+
* Read through `useFunkitBranding`, not identity.
|
|
60
|
+
*/
|
|
61
|
+
hideAttribution?: boolean;
|
|
62
|
+
/** Mints the short-lived user auth token required by fiat requests. */
|
|
63
|
+
getAuthToken?: () => Promise<string>;
|
|
54
64
|
}
|
|
55
65
|
/**
|
|
56
66
|
* Stands in for `walletAddress` when the host supplies none. Not a valid
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityContext.d.ts","sourceRoot":"","sources":["../../../src/identity/IdentityContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAA;AAIjE;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,sCAAsC;IACtC,MAAM,EAAE,MAAM,CAAA;IACd,8DAA8D;IAC9D,aAAa,EAAE,MAAM,CAAA;IACrB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8EAA8E;IAC9E,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,2EAA2E;IAC3E,iBAAiB,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"IdentityContext.d.ts","sourceRoot":"","sources":["../../../src/identity/IdentityContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAA;AAIjE;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,sCAAsC;IACtC,MAAM,EAAE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
65
|
pasteFromClipboard?: ClipboardReader;
|
|
66
66
|
/**
|
|
67
|
-
* Blur behind the flow sheet's
|
|
67
|
+
* Blur behind the flow sheet's overlay. The SDK ships the overlay only (no native
|
|
68
68
|
* blur dependency), so pass your own blur view — e.g.
|
|
69
69
|
* `() => <BlurView style={StyleSheet.absoluteFill} />` — to complete the
|
|
70
70
|
* design's blurred backdrop.
|
|
@@ -84,10 +84,11 @@ export interface FunkitProviderProps {
|
|
|
84
84
|
* provider host apps mount around their tree.
|
|
85
85
|
*
|
|
86
86
|
* Composes the platform halves, mirroring the web `FunkitProvider` nesting
|
|
87
|
-
* (Statsig flags → React Query → identity → theme → i18n → the
|
|
88
|
-
* stays outermost so flags are available everywhere;
|
|
89
|
-
* hooks below it read identity from
|
|
90
|
-
*
|
|
87
|
+
* (Statsig flags → React Query → identity → branding → theme → i18n → the
|
|
88
|
+
* managed flow). Statsig stays outermost so flags are available everywhere;
|
|
89
|
+
* the deposit-flow query hooks below it read identity from
|
|
90
|
+
* {@link FunkitIdentityProvider} and run on the {@link QueryClientProvider}.
|
|
91
|
+
* Host integration stays a single
|
|
91
92
|
* `<FunkitProvider>`.
|
|
92
93
|
*/
|
|
93
94
|
export declare function FunkitProvider({ children, config, walletAddress, queryClient, themes, colorScheme, debug, locale, copyToClipboard, pasteFromClipboard, renderBackdropBlur, hapticFeedback, }: FunkitProviderProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunkitProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAA;AACxE,OAAO,EAAE,KAAK,SAAS,EAA8B,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"FunkitProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAuB,MAAM,uBAAuB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B,MAAM,EACN,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,GACf,EAAE,mBAAmB,+BA+DrB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { BackdropBlurRenderer } from '../flow/FlowSheet';
|
|
3
|
+
import { type ClipboardWriter, type SafeClipboardReader } from '../transfer/clipboard';
|
|
4
|
+
/**
|
|
5
|
+
* Host-injected, natively-backed abilities. The package ships no native modules
|
|
6
|
+
* of its own — each would cost consumers a rebuild and a peer-dep bump — so
|
|
7
|
+
* anything native-backed is handed in by the host and carried here, in reach of
|
|
8
|
+
* every screen rather than just where the host handed it in.
|
|
9
|
+
*/
|
|
10
|
+
export interface NativeCapabilities {
|
|
11
|
+
/**
|
|
12
|
+
* Blur material for the flow's translucent surfaces. A drawer that opens over
|
|
13
|
+
* a translucent sheet needs the same blur behind it, and it is presented from
|
|
14
|
+
* a step several levels below the host. See {@link BackdropBlurRenderer}.
|
|
15
|
+
*/
|
|
16
|
+
renderBackdropBlur?: BackdropBlurRenderer;
|
|
17
|
+
/**
|
|
18
|
+
* Clipboard write, host override or the bare-RN default. Unguarded: its
|
|
19
|
+
* `false`/throw is meaningful to callers that confirm the copy landed (see
|
|
20
|
+
* useCopyDepositAddress), so wrapping happens where the result is compared.
|
|
21
|
+
*/
|
|
22
|
+
copyToClipboard?: ClipboardWriter;
|
|
23
|
+
/** Clipboard read, already guarded — a denied or failed read is `undefined`. */
|
|
24
|
+
pasteFromClipboard?: SafeClipboardReader;
|
|
25
|
+
}
|
|
26
|
+
/** {@link NativeCapabilities} with the package defaults filled in. */
|
|
27
|
+
export type ResolvedNativeCapabilities = NativeCapabilities & {
|
|
28
|
+
copyToClipboard: ClipboardWriter;
|
|
29
|
+
pasteFromClipboard: SafeClipboardReader;
|
|
30
|
+
};
|
|
31
|
+
export declare function NativeCapabilitiesProvider({ capabilities, children, }: {
|
|
32
|
+
capabilities: NativeCapabilities;
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
}): import("react").JSX.Element;
|
|
35
|
+
/**
|
|
36
|
+
* The capabilities with the clipboard pair resolved to the bare-RN defaults, so
|
|
37
|
+
* a subtree rendered without the provider (unit tests, Storybook) still has a
|
|
38
|
+
* working clipboard. The blur has no package default — see the field's doc.
|
|
39
|
+
*/
|
|
40
|
+
export declare function useNativeCapabilities(): ResolvedNativeCapabilities;
|
|
41
|
+
/** The host's blur renderer, or `undefined` when it supplied none. */
|
|
42
|
+
export declare function useBackdropBlur(): BackdropBlurRenderer | undefined;
|
|
43
|
+
//# sourceMappingURL=NativeCapabilitiesContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeCapabilitiesContext.d.ts","sourceRoot":"","sources":["../../../src/providers/NativeCapabilitiesContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAsC,MAAM,OAAO,CAAA;AAE1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,mBAAmB,EAIzB,MAAM,uBAAuB,CAAA;AAE9B;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;IACzC;;;;OAIG;IACH,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,gFAAgF;IAChF,kBAAkB,CAAC,EAAE,mBAAmB,CAAA;CACzC;AAED,sEAAsE;AACtE,MAAM,MAAM,0BAA0B,GAAG,kBAAkB,GAAG;IAC5D,eAAe,EAAE,eAAe,CAAA;IAChC,kBAAkB,EAAE,mBAAmB,CAAA;CACxC,CAAA;AAMD,wBAAgB,0BAA0B,CAAC,EACzC,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,YAAY,EAAE,kBAAkB,CAAA;IAChC,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAMA;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,0BAA0B,CAWlE;AAED,sEAAsE;AACtE,wBAAgB,eAAe,IAAI,oBAAoB,GAAG,SAAS,CAElE"}
|