@funkit/connect-rn 4.1.0 → 4.3.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 +65 -0
- package/dist/{chunk-EZBXZZJG.js → chunk-5YSMFPBG.js} +4 -3
- package/dist/chunk-5YSMFPBG.js.map +7 -0
- package/dist/{chunk-SCMY3DZK.js → chunk-PIAR365R.js} +449 -41
- package/dist/chunk-PIAR365R.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.js +5020 -972
- package/dist/index.js.map +4 -4
- package/dist/src/components/SelectableAssetRow.d.ts +3 -1
- package/dist/src/components/SelectableAssetRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatBackButton.d.ts +11 -0
- package/dist/src/fiat/FiatBackButton.d.ts.map +1 -0
- package/dist/src/fiat/FiatConsentCheck.d.ts +11 -0
- package/dist/src/fiat/FiatConsentCheck.d.ts.map +1 -0
- package/dist/src/fiat/FiatContactScreen.d.ts +23 -0
- package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -0
- package/dist/src/fiat/FiatCountryDock.d.ts +17 -0
- package/dist/src/fiat/FiatCountryDock.d.ts.map +1 -0
- package/dist/src/fiat/FiatDatePickerDock.d.ts +26 -0
- package/dist/src/fiat/FiatDatePickerDock.d.ts.map +1 -0
- package/dist/src/fiat/FiatFormAdvance.d.ts +17 -0
- package/dist/src/fiat/FiatFormAdvance.d.ts.map +1 -0
- package/dist/src/fiat/FiatFormConsent.d.ts +6 -0
- package/dist/src/fiat/FiatFormConsent.d.ts.map +1 -0
- package/dist/src/fiat/FiatFormFieldRow.d.ts +66 -0
- package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -0
- package/dist/src/fiat/FiatFormScreen.d.ts +32 -0
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -0
- package/dist/src/fiat/FiatGradientTitle.d.ts +15 -0
- package/dist/src/fiat/FiatGradientTitle.d.ts.map +1 -0
- package/dist/src/fiat/FiatKycIntroScreen.d.ts +16 -0
- package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -0
- package/dist/src/fiat/FiatKycNotice.d.ts +12 -0
- package/dist/src/fiat/FiatKycNotice.d.ts.map +1 -0
- package/dist/src/fiat/FiatOtpScreen.d.ts +33 -0
- package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -0
- package/dist/src/fiat/FiatPhoneField.d.ts +28 -0
- package/dist/src/fiat/FiatPhoneField.d.ts.map +1 -0
- package/dist/src/fiat/FiatProviderTerms.d.ts +12 -0
- package/dist/src/fiat/FiatProviderTerms.d.ts.map +1 -0
- package/dist/src/fiat/FiatQuotePrice.d.ts +12 -0
- package/dist/src/fiat/FiatQuotePrice.d.ts.map +1 -0
- package/dist/src/fiat/FiatTermsNotice.d.ts +13 -0
- package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -0
- package/dist/src/fiat/calendarDate.d.ts +40 -0
- package/dist/src/fiat/calendarDate.d.ts.map +1 -0
- package/dist/src/fiat/ctaLabel.d.ts +11 -0
- package/dist/src/fiat/ctaLabel.d.ts.map +1 -1
- package/dist/src/fiat/fieldAutofill.d.ts +17 -0
- package/dist/src/fiat/fieldAutofill.d.ts.map +1 -0
- package/dist/src/fiat/formLayout.d.ts +55 -0
- package/dist/src/fiat/formLayout.d.ts.map +1 -0
- package/dist/src/fiat/formNotice.d.ts +13 -0
- package/dist/src/fiat/formNotice.d.ts.map +1 -0
- package/dist/src/fiat/formScreenProps.d.ts +17 -0
- package/dist/src/fiat/formScreenProps.d.ts.map +1 -0
- package/dist/src/fiat/keyboardReturnKey.d.ts +7 -0
- package/dist/src/fiat/keyboardReturnKey.d.ts.map +1 -0
- package/dist/src/fiat/knownContacts.d.ts +27 -0
- package/dist/src/fiat/knownContacts.d.ts.map +1 -0
- package/dist/src/fiat/kycFormTheme.d.ts +94 -0
- package/dist/src/fiat/kycFormTheme.d.ts.map +1 -0
- package/dist/src/fiat/legalLinks.d.ts +22 -0
- package/dist/src/fiat/legalLinks.d.ts.map +1 -0
- package/dist/src/fiat/nativeDatePicker.d.ts +43 -0
- package/dist/src/fiat/nativeDatePicker.d.ts.map +1 -0
- package/dist/src/fiat/otpScreenProps.d.ts +18 -0
- package/dist/src/fiat/otpScreenProps.d.ts.map +1 -0
- package/dist/src/fiat/phoneCountries.d.ts +54 -0
- package/dist/src/fiat/phoneCountries.d.ts.map +1 -0
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +23 -0
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -0
- package/dist/src/fiat/providers/SumsubKycSurface.d.ts +22 -0
- package/dist/src/fiat/providers/SumsubKycSurface.d.ts.map +1 -0
- package/dist/src/fiat/providers/adapter.d.ts +29 -7
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/banxaRedirect.d.ts +4 -0
- package/dist/src/fiat/providers/banxaRedirect.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbaseApplePay.d.ts +8 -0
- package/dist/src/fiat/providers/coinbaseApplePay.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts +37 -0
- package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts.map +1 -0
- package/dist/src/fiat/providers/sumsubKyc.d.ts +19 -0
- package/dist/src/fiat/providers/sumsubKyc.d.ts.map +1 -0
- package/dist/src/fiat/providers/transakApplePay.d.ts.map +1 -1
- package/dist/src/fiat/renderCaptureSurface.d.ts +13 -3
- package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
- package/dist/src/fiat/sectionDetail.d.ts +11 -0
- package/dist/src/fiat/sectionDetail.d.ts.map +1 -0
- package/dist/src/fiat/sessionContact.d.ts +35 -0
- package/dist/src/fiat/sessionContact.d.ts.map +1 -0
- package/dist/src/fiat/stepDetails.d.ts +18 -1
- package/dist/src/fiat/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/useCountryDock.d.ts +21 -0
- package/dist/src/fiat/useCountryDock.d.ts.map +1 -0
- package/dist/src/fiat/useDatePickerDock.d.ts +29 -0
- package/dist/src/fiat/useDatePickerDock.d.ts.map +1 -0
- package/dist/src/fiat/useStaleQuoteRecovery.d.ts +24 -0
- package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +1 -0
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/geo/useUserIpInfo.d.ts.map +1 -1
- package/dist/src/hooks/useNestedSheetHeight.d.ts +10 -0
- package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -1
- package/dist/src/identity/IdentityContext.d.ts +8 -4
- package/dist/src/identity/IdentityContext.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +8 -1
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts +3 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts +7 -2
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWithdrawScreen.d.ts.map +1 -1
- package/dist/src/theme/buildFunkitTheme.d.ts +16 -0
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/isDarkColor.d.ts +9 -0
- package/dist/src/theme/isDarkColor.d.ts.map +1 -0
- package/dist/src/theme/restyle.d.ts +528 -0
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +48 -0
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/tokens.d.ts +40 -0
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/package.json +14 -10
- package/dist/chunk-EZBXZZJG.js.map +0 -7
- package/dist/chunk-SCMY3DZK.js.map +0 -7
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { EntryCta } from '@funkit/connect-core';
|
|
2
|
+
/** Where the one-time code is sent, which decides keyboard and copy. */
|
|
3
|
+
export type ContactKind = 'PHONE' | 'EMAIL';
|
|
4
|
+
export interface SessionContactField {
|
|
5
|
+
/** The transition's own input name — the key the answer is sent back under. */
|
|
6
|
+
name: string;
|
|
7
|
+
kind: ContactKind;
|
|
8
|
+
/** The server's pattern for the value, when it declares one. */
|
|
9
|
+
regex?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Every value the session-opening transition asks the user for, in the order
|
|
13
|
+
* it declares them.
|
|
14
|
+
*
|
|
15
|
+
* All of them: a step that wants a number *and* an address verifies each on a
|
|
16
|
+
* round of its own, and collecting only the first opens a session the server
|
|
17
|
+
* cannot finish. The name is the body key, so gating on a known name is how
|
|
18
|
+
* the client stops sending a field the server asked for.
|
|
19
|
+
*/
|
|
20
|
+
export declare function sessionContactFields(entry: EntryCta): readonly SessionContactField[];
|
|
21
|
+
export declare function isUnfamiliarContactName(name: string): boolean;
|
|
22
|
+
/** Nothing opens the session until every field it declares is answered. */
|
|
23
|
+
export declare function areContactsComplete(fields: readonly SessionContactField[], values: Readonly<Record<string, string>>): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* A number always has to be E.164 — `/fiat/*` rejects anything else on any
|
|
26
|
+
* route, so it is the rule whether or not this step restates it. A pattern the
|
|
27
|
+
* step declares narrows that further; it never widens it.
|
|
28
|
+
*/
|
|
29
|
+
export declare function isCompleteContact(field: SessionContactField, value: string): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Deliberately loose — a stricter pattern rejects addresses that are perfectly
|
|
32
|
+
* valid.
|
|
33
|
+
*/
|
|
34
|
+
export declare function looksLikeEmail(value: string): boolean;
|
|
35
|
+
//# sourceMappingURL=sessionContact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessionContact.d.ts","sourceRoot":"","sources":["../../../src/fiat/sessionContact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,wEAAwE;AACxE,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,OAAO,CAAA;AAE3C,MAAM,WAAW,mBAAmB;IAClC,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,WAAW,CAAA;IACjB,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,QAAQ,GACd,SAAS,mBAAmB,EAAE,CAWhC;AAgBD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE7D;AAED,2EAA2E;AAC3E,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,SAAS,mBAAmB,EAAE,EACtC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACvC,OAAO,CAIT;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,MAAM,GACZ,OAAO,CAYT;AAkBD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAErD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FiatFlow, Quote } from '@funkit/connect-core';
|
|
1
|
+
import type { FailureReason, FiatFlow, Quote } from '@funkit/connect-core';
|
|
2
2
|
import type { TFunction } from 'i18next';
|
|
3
3
|
import type { FeeDetailsRow } from '../screens/FeeDetailsScreen';
|
|
4
4
|
/**
|
|
@@ -24,4 +24,21 @@ export declare function reviewDetail(flow: FiatFlow): string | undefined;
|
|
|
24
24
|
* keys them by have no entry in this package's catalogue.
|
|
25
25
|
*/
|
|
26
26
|
export declare function quoteFeeRows(quote: Quote | undefined, t: TFunction): FeeDetailsRow[];
|
|
27
|
+
/**
|
|
28
|
+
* A step's own error, worded for the banner it renders as. The contract sends
|
|
29
|
+
* no message — `code` is a copy key — so the category is what the copy keys off.
|
|
30
|
+
*/
|
|
31
|
+
export declare function roundErrorMessage(error: FailureReason | undefined, t: TFunction): string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* A cooling-off hold's comeback date, worded as the ISO day it names.
|
|
34
|
+
*
|
|
35
|
+
* The day rather than the instant, and unformatted: connect-rn takes no Intl
|
|
36
|
+
* dependency, and a locale-guessed date is worse than an unambiguous one.
|
|
37
|
+
*/
|
|
38
|
+
export declare function onHoldDetail(flow: FiatFlow, t: TFunction): string;
|
|
39
|
+
/**
|
|
40
|
+
* What a rejection leaves the user. Only the terminal variant carries a
|
|
41
|
+
* recovery, and support is the only one it names.
|
|
42
|
+
*/
|
|
43
|
+
export declare function rejectedDetail(flow: FiatFlow, t: TFunction): string | undefined;
|
|
27
44
|
//# sourceMappingURL=stepDetails.d.ts.map
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"stepDetails.d.ts","sourceRoot":"","sources":["../../../src/fiat/stepDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAIhE;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB;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;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,CAAC,EAAE,SAAS,GACX,aAAa,EAAE,CAoCjB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,aAAa,GAAG,SAAS,EAChC,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAsBpB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAKjE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Animated } from 'react-native';
|
|
2
|
+
export interface CountryDock {
|
|
3
|
+
/**
|
|
4
|
+
* The field the list answers. Kept after it closes: the panel has to stay
|
|
5
|
+
* mounted to slide back out, the way the date picker's does.
|
|
6
|
+
*/
|
|
7
|
+
fieldName?: string;
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
open: (fieldName: string) => void;
|
|
10
|
+
close: () => void;
|
|
11
|
+
/** 0 closed, 1 open, on the keyboard's own curve. */
|
|
12
|
+
slide: Animated.Value;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The country list a phone field raises, in the keyboard's slot.
|
|
16
|
+
*
|
|
17
|
+
* Opening it drops the keyboard first: the list is taking that room, and two
|
|
18
|
+
* panels sliding past each other reads as a glitch.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useCountryDock(): CountryDock;
|
|
21
|
+
//# sourceMappingURL=useCountryDock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCountryDock.d.ts","sourceRoot":"","sources":["../../../src/fiat/useCountryDock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAoB,MAAM,cAAc,CAAA;AAEzD,MAAM,WAAW,WAAW;IAC1B;;;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,qDAAqD;IACrD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAA;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,IAAI,WAAW,CA2B5C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { FormField } from '@funkit/connect-core';
|
|
2
|
+
import { Animated } from 'react-native';
|
|
3
|
+
import type { KycSectionPage } from './formLayout';
|
|
4
|
+
import { type NativeDatePicker } from './nativeDatePicker';
|
|
5
|
+
export interface DatePickerDock {
|
|
6
|
+
/** The page's date a picker answers, absent when none can. */
|
|
7
|
+
field?: FormField;
|
|
8
|
+
/** Set whenever a picker could answer this page's date, open or not. */
|
|
9
|
+
Picker?: NativeDatePicker;
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
/** Pressing the field raises the picker, and presses it away again. */
|
|
12
|
+
toggle: () => void;
|
|
13
|
+
close: () => void;
|
|
14
|
+
/** Room the picker takes while up; 0 on a page that has none. */
|
|
15
|
+
height: number;
|
|
16
|
+
/** 0 closed, 1 open, on the keyboard's own curve. */
|
|
17
|
+
slide: Animated.Value;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The date picker a form page stands over.
|
|
21
|
+
*
|
|
22
|
+
* Held here rather than in the screen so the form does not carry the rules
|
|
23
|
+
* about which platform draws what: the screen only needs to know how much
|
|
24
|
+
* room to give up and what to draw in it.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useDatePickerDock(
|
|
27
|
+
/** Absent while the form is on its faceplate, or has no page to draw. */
|
|
28
|
+
page: KycSectionPage | undefined, step: number): DatePickerDock;
|
|
29
|
+
//# sourceMappingURL=useDatePickerDock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDatePickerDock.d.ts","sourceRoot":"","sources":["../../../src/fiat/useDatePickerDock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,EAAE,QAAQ,EAAU,MAAM,cAAc,CAAA;AAE/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAGlD,OAAO,EAEL,KAAK,gBAAgB,EAEtB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,WAAW,cAAc;IAC7B,8DAA8D;IAC9D,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,wEAAwE;IACxE,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,MAAM,EAAE,OAAO,CAAA;IACf,uEAAuE;IACvE,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,iEAAiE;IACjE,MAAM,EAAE,MAAM,CAAA;IACd,qDAAqD;IACrD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAA;CACtB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB;AAC/B,yEAAyE;AACzE,IAAI,EAAE,cAAc,GAAG,SAAS,EAChC,IAAI,EAAE,MAAM,GACX,cAAc,CA6ChB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { FiatFlow, UseFiatQuoteResult } from '@funkit/connect-core';
|
|
2
|
+
type RecoverableFlow = Pick<FiatFlow, 'phase' | 'submitError' | 'stepResponse'>;
|
|
3
|
+
type RecoverableQuote = Pick<UseFiatQuoteResult, 'quote' | 'isQuoteFresh' | 'quoteError' | 'retryQuote' | 'submitQuote'>;
|
|
4
|
+
export interface StaleQuoteRecovery {
|
|
5
|
+
/** A replacement price is on its way, so the entry screen holds. */
|
|
6
|
+
isReplacing: boolean;
|
|
7
|
+
/** Asks for another replacement — what a retry means on a dead ref. */
|
|
8
|
+
replaceQuote: () => void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Re-sends an entry submission the server answered with a dead quoteRef.
|
|
12
|
+
*
|
|
13
|
+
* - The ref is the server's, carried in the transition it hands back, so a
|
|
14
|
+
* replay cannot fix it. A new price brings a new transition naming a live
|
|
15
|
+
* one, and what the user typed rides on the flow rather than the round.
|
|
16
|
+
* - Automatic once, then only when asked. A provider that declined answers
|
|
17
|
+
* with the same 404, so a self-driven loop never reaches a different answer.
|
|
18
|
+
* - Only while the client owns the quote. Once the flow holds a round the
|
|
19
|
+
* query is off, so there is no replacement to wait for, and the way to a new
|
|
20
|
+
* price is giving the round up.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useStaleQuoteRecovery(flow: RecoverableFlow, quote: RecoverableQuote): StaleQuoteRecovery;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=useStaleQuoteRecovery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useStaleQuoteRecovery.d.ts","sourceRoot":"","sources":["../../../src/fiat/useStaleQuoteRecovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAMxE,KAAK,eAAe,GAAG,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,aAAa,GAAG,cAAc,CAAC,CAAA;AAE/E,KAAK,gBAAgB,GAAG,IAAI,CAC1B,kBAAkB,EAClB,OAAO,GAAG,cAAc,GAAG,YAAY,GAAG,YAAY,GAAG,aAAa,CACvE,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,oEAAoE;IACpE,WAAW,EAAE,OAAO,CAAA;IACpB,uEAAuE;IACvE,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,eAAe,EACrB,KAAK,EAAE,gBAAgB,GACtB,kBAAkB,CAwEpB"}
|
|
@@ -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":"AAwEA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAuB5B,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUserIpInfo.d.ts","sourceRoot":"","sources":["../../../src/geo/useUserIpInfo.ts"],"names":[],"mappings":"AAOA,YAAY,EACV,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,sBAAsB,CAAA;AAO7B,wBAAgB,aAAa,
|
|
1
|
+
{"version":3,"file":"useUserIpInfo.d.ts","sourceRoot":"","sources":["../../../src/geo/useUserIpInfo.ts"],"names":[],"mappings":"AAOA,YAAY,EACV,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,sBAAsB,CAAA;AAO7B,wBAAgB,aAAa,uDAa5B"}
|
|
@@ -4,4 +4,14 @@
|
|
|
4
4
|
* that cap (`topInset={0}`) and takes the whole window instead.
|
|
5
5
|
*/
|
|
6
6
|
export declare function useNestedSheetHeight(): number;
|
|
7
|
+
/**
|
|
8
|
+
* Fills a `FlowSheet` step, which waives that cap (`topInset={0}`) and spans
|
|
9
|
+
* the whole window — so the step owes the inset its sheet no longer pays.
|
|
10
|
+
* Without it the first thing a step draws, the back disc, sits under the
|
|
11
|
+
* status bar.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useFlowStepFrame(): {
|
|
14
|
+
height: number;
|
|
15
|
+
paddingTop: number;
|
|
16
|
+
};
|
|
7
17
|
//# sourceMappingURL=useNestedSheetHeight.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNestedSheetHeight.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNestedSheetHeight.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAgB,oBAAoB,WAInC"}
|
|
1
|
+
{"version":3,"file":"useNestedSheetHeight.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNestedSheetHeight.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAgB,oBAAoB,WAInC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB;;;EAI/B"}
|
|
@@ -14,7 +14,7 @@ export interface FunkitIdentity {
|
|
|
14
14
|
walletAddress: string;
|
|
15
15
|
/** How the user authenticated, if known (analytics only). */
|
|
16
16
|
loginType?: string;
|
|
17
|
-
/**
|
|
17
|
+
/** The host's email for this user; see {@link FunkitConfig.prefillFiatEmail}. */
|
|
18
18
|
prefillFiatEmail?: string;
|
|
19
19
|
/** See {@link FunkitConfig.hideCryptoDeposit}. Defaulted to false here. */
|
|
20
20
|
hideCryptoDeposit: boolean;
|
|
@@ -41,9 +41,13 @@ export interface FunkitConfig {
|
|
|
41
41
|
/** How the user authenticated, if known (analytics only). */
|
|
42
42
|
loginType?: string;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
44
|
+
* The host's email for this user. Prefilled into the Swapped fiat
|
|
45
|
+
* onramp/offramp so it need not be retyped (web parity).
|
|
46
|
+
*
|
|
47
|
+
* Alongside {@link FunkitConfig.getIdentityAssertion} it is also the address
|
|
48
|
+
* a fiat code screen names, since the assertion is what declares this user
|
|
49
|
+
* to the rail — so set it to the email that assertion carries. Dropped when
|
|
50
|
+
* it is not an address; it never blocks a flow.
|
|
47
51
|
*/
|
|
48
52
|
prefillFiatEmail?: string;
|
|
49
53
|
/**
|
|
@@ -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,
|
|
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,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,2EAA2E;IAC3E,iBAAiB,EAAE,OAAO,CAAA;IAC1B,qDAAqD;IACrD,oBAAoB,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;CAC7C;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,0EAA0E;IAC1E,oBAAoB,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;CAC7C;AAgBD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,OAAO,CAAA;AASxC;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAQ1E;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,YAAY,EACpB,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,cAAc,CAchB;AAID,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,cAAc,CAAA;IACxB,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAMA;AAED,wBAAgB,iBAAiB,IAAI,cAAc,CAQlD"}
|
|
@@ -40,6 +40,13 @@ export interface DepositAmountScreenProps {
|
|
|
40
40
|
feeAccessibilityLabel?: string;
|
|
41
41
|
/** Badge on the fee line's leading side (e.g. an Apple Pay mark). */
|
|
42
42
|
methodBadge?: ReactNode;
|
|
43
|
+
/** Banner between the header and the amount, e.g. an identity hold. */
|
|
44
|
+
notice?: ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* A line the action needs read before it is taken, sat directly above the
|
|
47
|
+
* button rather than beside the title — terms, most often.
|
|
48
|
+
*/
|
|
49
|
+
disclosure?: ReactNode;
|
|
43
50
|
submitLabel: string;
|
|
44
51
|
canSubmit: boolean;
|
|
45
52
|
onSubmit: () => void;
|
|
@@ -59,5 +66,5 @@ export interface DepositAmountScreenProps {
|
|
|
59
66
|
* limit — answers with a side-to-side shake, a brief warning tint and a haptic
|
|
60
67
|
* instead of changing the value.
|
|
61
68
|
*/
|
|
62
|
-
export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, limitUsd, fee, feePending, onPressFee, feeAccessibilityLabel, methodBadge, submitLabel, canSubmit, onSubmit, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
|
|
69
|
+
export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, limitUsd, fee, feePending, onPressFee, feeAccessibilityLabel, methodBadge, notice, disclosure, submitLabel, canSubmit, onSubmit, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
|
|
63
70
|
//# sourceMappingURL=DepositAmountScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAA;AAcjD,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,kCAAkC,CAAA;AAsBzC;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAOhE;AAoBD,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,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,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,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,KAAK,EACL,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,GAAG,EACH,UAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,eAAuB,GACxB,EAAE,wBAAwB,+
|
|
1
|
+
{"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAA;AAcjD,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,kCAAkC,CAAA;AAsBzC;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAOhE;AAoBD,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,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,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,uEAAuE;IACvE,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB;;;OAGG;IACH,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,KAAK,EACL,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,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,+BA2H1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwappedScreen.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreen.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB;IAChE,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,GAAG,EACH,OAAO,EACP,MAAM,EACN,SAAS,GACV,EAAE,kBAAkB,+
|
|
1
|
+
{"version":3,"file":"SwappedScreen.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreen.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB;IAChE,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,GAAG,EACH,OAAO,EACP,MAAM,EACN,SAAS,GACV,EAAE,kBAAkB,+BAmCpB"}
|
|
@@ -11,6 +11,8 @@ export interface SwappedScreenBaseProps {
|
|
|
11
11
|
interface SwappedScreenShellProps {
|
|
12
12
|
url: string;
|
|
13
13
|
onMessage: (msg: SwappedInboundMessage) => void;
|
|
14
|
+
/** Android hardware back with no WebView history to pop (see SwappedWebView). */
|
|
15
|
+
onBack: () => void;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* Full-screen host frame for the Swapped embedded payment flow
|
|
@@ -20,6 +22,6 @@ interface SwappedScreenShellProps {
|
|
|
20
22
|
* mode-specific dispatch lives in `SwappedScreen` (deposit) and
|
|
21
23
|
* `SwappedWithdrawScreen` (withdrawal).
|
|
22
24
|
*/
|
|
23
|
-
export declare function SwappedScreenShell({ url, onMessage, }: SwappedScreenShellProps): import("react").JSX.Element;
|
|
25
|
+
export declare function SwappedScreenShell({ url, onMessage, onBack, }: SwappedScreenShellProps): import("react").JSX.Element;
|
|
24
26
|
export {};
|
|
25
27
|
//# sourceMappingURL=SwappedScreenShell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwappedScreenShell.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreenShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"SwappedScreenShell.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreenShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAUjE,yEAAyE;AACzE,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,GAAG,EAAE,MAAM,CAAA;IACX,kEAAkE;IAClE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,qDAAqD;IACrD,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED,UAAU,uBAAuB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C,iFAAiF;IACjF,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,GAAG,EACH,SAAS,EACT,MAAM,GACP,EAAE,uBAAuB,+BAmEzB"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type SwappedInboundMessage } from '@funkit/connect-core';
|
|
2
2
|
import { type ViewStyle } from 'react-native';
|
|
3
3
|
export interface SwappedWebViewProps {
|
|
4
4
|
/** The selected FOP's `embeddedFlowUrl` (a swapped.com/.dev widget URL). */
|
|
5
5
|
url: string;
|
|
6
6
|
/** Typed, origin-validated inbound messages from the embed. */
|
|
7
7
|
onMessage: (msg: SwappedInboundMessage) => void;
|
|
8
|
+
/**
|
|
9
|
+
* Android hardware back once the WebView has no page history left to pop —
|
|
10
|
+
* the same destination as the embed's own `SWAPPED_GO_BACK`.
|
|
11
|
+
*/
|
|
12
|
+
onBack?: () => void;
|
|
8
13
|
style?: ViewStyle;
|
|
9
14
|
}
|
|
10
15
|
/**
|
|
@@ -14,5 +19,5 @@ export interface SwappedWebViewProps {
|
|
|
14
19
|
* redirects the embed's `postMessage` to the native channel; `onMessage` is
|
|
15
20
|
* parsed + origin-validated before reaching the handler.
|
|
16
21
|
*/
|
|
17
|
-
export declare function SwappedWebView({ url, onMessage, style }: SwappedWebViewProps): import("react").JSX.Element;
|
|
22
|
+
export declare function SwappedWebView({ url, onMessage, onBack, style, }: SwappedWebViewProps): import("react").JSX.Element;
|
|
18
23
|
//# sourceMappingURL=SwappedWebView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwappedWebView.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedWebView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"SwappedWebView.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedWebView.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,cAAc,CAAA;AAiBrB,MAAM,WAAW,mBAAmB;IAClC,4EAA4E;IAC5E,GAAG,EAAE,MAAM,CAAA;IACX,+DAA+D;IAC/D,SAAS,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,SAAS,EACT,MAAM,EACN,KAAK,GACN,EAAE,mBAAmB,+BAoOrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwappedWithdrawScreen.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedWithdrawScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oBAAoB,EAE1B,MAAM,sBAAsB,CAAA;AAI7B,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,0BAA2B,SAAQ,sBAAsB;IACxE,2DAA2D;IAC3D,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,iEAAiE;IACjE,mBAAmB,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC9C,6FAA6F;IAC7F,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAA;CACpD;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,GAAG,EACH,OAAO,EACP,MAAM,EACN,eAAe,EACf,mBAAmB,EACnB,WAAW,GACZ,EAAE,0BAA0B,+
|
|
1
|
+
{"version":3,"file":"SwappedWithdrawScreen.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedWithdrawScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oBAAoB,EAE1B,MAAM,sBAAsB,CAAA;AAI7B,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,0BAA2B,SAAQ,sBAAsB;IACxE,2DAA2D;IAC3D,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,iEAAiE;IACjE,mBAAmB,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC9C,6FAA6F;IAC7F,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAA;CACpD;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,GAAG,EACH,OAAO,EACP,MAAM,EACN,eAAe,EACf,mBAAmB,EACnB,WAAW,GACZ,EAAE,0BAA0B,+BAiD5B"}
|
|
@@ -42,6 +42,8 @@ export declare function buildFunkitTheme(tokens: FunkitTokens): {
|
|
|
42
42
|
hyperlink: string;
|
|
43
43
|
warning: string;
|
|
44
44
|
watermark: string;
|
|
45
|
+
tertiary: string;
|
|
46
|
+
ghosted: string;
|
|
45
47
|
};
|
|
46
48
|
button: {
|
|
47
49
|
primary: {
|
|
@@ -98,6 +100,20 @@ export declare function buildFunkitTheme(tokens: FunkitTokens): {
|
|
|
98
100
|
disabled: number;
|
|
99
101
|
};
|
|
100
102
|
font: import("./tokens").FunkitFontTokens;
|
|
103
|
+
form: {
|
|
104
|
+
field: string;
|
|
105
|
+
fieldNext: string;
|
|
106
|
+
divider: string;
|
|
107
|
+
fieldInvalid: {
|
|
108
|
+
fill: string;
|
|
109
|
+
content: string;
|
|
110
|
+
placeholder: string;
|
|
111
|
+
};
|
|
112
|
+
errorNotice: {
|
|
113
|
+
fill: string;
|
|
114
|
+
content: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
101
117
|
spacing: {
|
|
102
118
|
none: number;
|
|
103
119
|
elementsHorizontal: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildFunkitTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/buildFunkitTheme.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,UAAU,CAAA;AAYjB;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"buildFunkitTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/buildFunkitTheme.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,UAAU,CAAA;AAYjB;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuHpD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the sheet this sits in is dark.
|
|
3
|
+
*
|
|
4
|
+
* Read off the modal's own fill rather than the system scheme: a host can pin
|
|
5
|
+
* one theme for both schemes — fomo draws dark on a light phone — and the SDK
|
|
6
|
+
* has to match the surface it is drawn on, not the OS.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isDarkColor(color: string): boolean;
|
|
9
|
+
//# sourceMappingURL=isDarkColor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isDarkColor.d.ts","sourceRoot":"","sources":["../../../src/theme/isDarkColor.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAYlD"}
|