@funkit/connect-rn 8.1.0 → 8.2.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 +21 -0
- package/README.md +20 -0
- package/dist/{chunk-75U7A2Q5.js → chunk-GG2WCQ6N.js} +2 -2
- package/dist/{chunk-75U7A2Q5.js.map → chunk-GG2WCQ6N.js.map} +2 -2
- package/dist/{chunk-4YNYOJJK.js → chunk-J5K2FSAI.js} +65 -17
- package/dist/chunk-J5K2FSAI.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.js +3627 -2417
- package/dist/index.js.map +4 -4
- package/dist/src/components/BlurBand.d.ts +14 -0
- package/dist/src/components/BlurBand.d.ts.map +1 -0
- package/dist/src/components/GlassSurface.d.ts +14 -0
- package/dist/src/components/GlassSurface.d.ts.map +1 -0
- package/dist/src/components/ScrollingDots.d.ts +24 -0
- package/dist/src/components/ScrollingDots.d.ts.map +1 -0
- package/dist/src/fiat/FiatBackButton.d.ts +4 -0
- package/dist/src/fiat/FiatBackButton.d.ts.map +1 -1
- package/dist/src/fiat/FiatBirthDateField.d.ts.map +1 -1
- package/dist/src/fiat/FiatChoiceField.d.ts +8 -1
- package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
- package/dist/src/fiat/FiatCountrySheet.d.ts +22 -7
- package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -1
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts +2 -1
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormScreen.d.ts +1 -1
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycFieldControl.d.ts +4 -0
- package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycIntroScreen.d.ts +3 -1
- package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycPosition.d.ts +5 -3
- package/dist/src/fiat/FiatKycPosition.d.ts.map +1 -1
- package/dist/src/fiat/FiatTermsNotice.d.ts +1 -0
- package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
- package/dist/src/fiat/countryListEntries.d.ts +9 -13
- package/dist/src/fiat/countryListEntries.d.ts.map +1 -1
- package/dist/src/fiat/countrySections.d.ts +12 -6
- package/dist/src/fiat/countrySections.d.ts.map +1 -1
- package/dist/src/fiat/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/kycFieldValidators.d.ts +5 -1
- package/dist/src/fiat/kycFieldValidators.d.ts.map +1 -1
- package/dist/src/fiat/kycFormTheme.d.ts +0 -2
- package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
- package/dist/src/fiat/kycWalk.d.ts +22 -0
- package/dist/src/fiat/kycWalk.d.ts.map +1 -0
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/HostedControlFrame.d.ts.map +1 -1
- package/dist/src/fiat/providers/adapter.d.ts +15 -1
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/applePayButtonMetrics.d.ts +28 -0
- package/dist/src/fiat/providers/applePayButtonMetrics.d.ts.map +1 -0
- package/dist/src/fiat/providers/applePayPaintGate.d.ts +21 -0
- package/dist/src/fiat/providers/applePayPaintGate.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay.d.ts +4 -0
- package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayApplePayPainted.d.ts +7 -0
- package/dist/src/fiat/providers/moonpayApplePayPainted.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpayApplePayStyle.d.ts +12 -0
- package/dist/src/fiat/providers/moonpayApplePayStyle.d.ts.map +1 -0
- package/dist/src/fiat/renderCaptureSurface.d.ts +4 -0
- package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
- package/dist/src/fiat/subdivisions.d.ts +15 -0
- package/dist/src/fiat/subdivisions.d.ts.map +1 -0
- package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +1 -1
- package/dist/src/flow/Drawer.d.ts +27 -9
- package/dist/src/flow/Drawer.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowPage.d.ts +20 -0
- package/dist/src/flow/FlowPage.d.ts.map +1 -0
- package/dist/src/flow/FlowSheet.d.ts +8 -1
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/SheetMaterial.d.ts +18 -4
- package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
- package/dist/src/flow/pageMotion.d.ts +37 -0
- package/dist/src/flow/pageMotion.d.ts.map +1 -0
- package/dist/src/flow/pageTurn.d.ts +28 -0
- package/dist/src/flow/pageTurn.d.ts.map +1 -0
- package/dist/src/flow/sheetSizing.d.ts +6 -5
- package/dist/src/flow/sheetSizing.d.ts.map +1 -1
- package/dist/src/flow/withdrawalFlowConfig.d.ts +18 -5
- package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
- package/dist/src/hooks/useNestedSheetHeight.d.ts +10 -3
- package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -1
- package/dist/src/hooks/useSheetFade.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +6 -1
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawAddressScreen.d.ts +4 -1
- package/dist/src/screens/WithdrawAddressScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawAmountScreen.d.ts +16 -8
- package/dist/src/screens/WithdrawAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -1
- package/dist/src/theme/buildFunkitTheme.d.ts +1 -0
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +33 -0
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +3 -0
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/tokens.d.ts +6 -0
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useFiatExchangeRates.d.ts +5 -4
- package/dist/src/transfer/hooks/useFiatExchangeRates.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts +0 -15
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/dist/src/withdrawal/maxWithdrawAmount.d.ts +43 -0
- package/dist/src/withdrawal/maxWithdrawAmount.d.ts.map +1 -0
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +6 -1
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts +6 -1
- package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts.map +1 -1
- package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts +2 -1
- package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalAmountInput.d.ts +8 -5
- package/dist/src/withdrawal/useWithdrawalAmountInput.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalFiatPrice.d.ts +6 -0
- package/dist/src/withdrawal/useWithdrawalFiatPrice.d.ts.map +1 -0
- package/dist/src/withdrawal/useWithdrawalMaximum.d.ts +19 -0
- package/dist/src/withdrawal/useWithdrawalMaximum.d.ts.map +1 -0
- package/dist/src/withdrawal/validation.d.ts +6 -2
- package/dist/src/withdrawal/validation.d.ts.map +1 -1
- package/package.json +6 -4
- package/dist/chunk-4YNYOJJK.js.map +0 -7
- package/dist/src/fiat/kycFormPosition.d.ts +0 -28
- package/dist/src/fiat/kycFormPosition.d.ts.map +0 -1
- package/dist/src/flow/StepPage.d.ts +0 -16
- package/dist/src/flow/StepPage.d.ts.map +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type BandEdge = 'top' | 'bottom';
|
|
2
|
+
/**
|
|
3
|
+
* The band a list passes through under a floating control: blurred by degrees
|
|
4
|
+
* and washed into the sheet towards `edge`, the way iOS fades a list under its
|
|
5
|
+
* search and its bar. Fills the view it is placed in.
|
|
6
|
+
*
|
|
7
|
+
* Slices laid end to end across the band, each blurred a step less than the one
|
|
8
|
+
* below it, so the rows blur more the closer they sit to `edge`; the wash grades
|
|
9
|
+
* over the same band.
|
|
10
|
+
*/
|
|
11
|
+
export declare function BlurBand({ edge }: {
|
|
12
|
+
edge: BandEdge;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=BlurBand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlurBand.d.ts","sourceRoot":"","sources":["../../../src/components/BlurBand.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAA;AAEvC;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,+BAuCpD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
export interface GlassSurfaceProps {
|
|
4
|
+
/** What paints the surface on a binary without the SDK's glass pod. */
|
|
5
|
+
fallback: string;
|
|
6
|
+
style?: StyleProp<ViewStyle>;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A control's surface over content scrolling under it: Liquid Glass where the
|
|
11
|
+
* binary links the SDK's pod, a plain fill elsewhere.
|
|
12
|
+
*/
|
|
13
|
+
export declare function GlassSurface({ fallback, style, children }: GlassSurfaceProps): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=GlassSurface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlassSurface.d.ts","sourceRoot":"","sources":["../../../src/components/GlassSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,KAAK,SAAS,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAMnE,MAAM,WAAW,iBAAiB;IAChC,uEAAuE;IACvE,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC5B,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,iBAAiB,+BAiB5E"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ViewStyle } from 'react-native';
|
|
2
|
+
/** Which of the three visible dots is lit, left to right. */
|
|
3
|
+
export type DotSlot = 0 | 1 | 2;
|
|
4
|
+
export interface ScrollingDotsProps {
|
|
5
|
+
count: number;
|
|
6
|
+
/** 0-based. */
|
|
7
|
+
index: number;
|
|
8
|
+
/** Where the lit dot sits, when the page's place in the walk should not decide it. */
|
|
9
|
+
slot?: DotSlot;
|
|
10
|
+
size: number;
|
|
11
|
+
gap: number;
|
|
12
|
+
activeColor: string;
|
|
13
|
+
inactiveColor: string;
|
|
14
|
+
style?: ViewStyle;
|
|
15
|
+
}
|
|
16
|
+
/** The first page lights the first dot, the last the last, and every page between them the middle one. */
|
|
17
|
+
export declare function windowSlot(index: number, count: number): DotSlot;
|
|
18
|
+
/**
|
|
19
|
+
* A page indicator that shows three dots of a longer walk: the strip of every
|
|
20
|
+
* page's dot slides behind a three-dot window so the lit one lands in its
|
|
21
|
+
* slot, and the dots that leave the window shrink away at its edges.
|
|
22
|
+
*/
|
|
23
|
+
export declare function ScrollingDots({ count, index, slot, size, gap, activeColor, inactiveColor, style, }: ScrollingDotsProps): import("react").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=ScrollingDots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScrollingDots.d.ts","sourceRoot":"","sources":["../../../src/components/ScrollingDots.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAa/D,6DAA6D;AAC7D,MAAM,MAAM,OAAO,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAE/B,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,eAAe;IACf,KAAK,EAAE,MAAM,CAAA;IACb,sFAAsF;IACtF,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAKD,0GAA0G;AAC1G,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAKhE;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,WAAW,EACX,aAAa,EACb,KAAK,GACN,EAAE,kBAAkB,+BA6CpB"}
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
* It pays no status-bar inset of its own — the screen that draws it does, via
|
|
5
5
|
* `useFlowStepFrame`. Insetting here too dropped it a full bar past the 5 the
|
|
6
6
|
* frames leave it: 79 below the Dynamic Island where the design says 16.
|
|
7
|
+
*
|
|
8
|
+
* Leaving drops the keyboard with it: the field it was typed into goes with
|
|
9
|
+
* the screen, and a keyboard left standing over the page behind is one the
|
|
10
|
+
* user has to dismiss themselves.
|
|
7
11
|
*/
|
|
8
12
|
export declare function FiatBackButton({ onPress }: {
|
|
9
13
|
onPress: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatBackButton.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatBackButton.tsx"],"names":[],"mappings":"AAOA
|
|
1
|
+
{"version":3,"file":"FiatBackButton.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatBackButton.tsx"],"names":[],"mappings":"AAOA;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,+BAqBlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatBirthDateField.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatBirthDateField.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAE1D,4EAA4E;AAC5E,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,KAAK,EACL,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,gBAAgB,CAAA;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,2DAA2D;IAC3D,WAAW,EAAE,MAAM,CAAA;IACnB,8EAA8E;IAC9E,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC,+
|
|
1
|
+
{"version":3,"file":"FiatBirthDateField.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatBirthDateField.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAE1D,4EAA4E;AAC5E,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,KAAK,EACL,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,gBAAgB,CAAA;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,2DAA2D;IAC3D,WAAW,EAAE,MAAM,CAAA;IACnB,8EAA8E;IAC9E,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC,+BA8CA"}
|
|
@@ -9,14 +9,21 @@ export interface FiatChoiceFieldProps {
|
|
|
9
9
|
editable: boolean;
|
|
10
10
|
invalid: boolean;
|
|
11
11
|
grouped?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Shares its row with another field: the chevron sits by the label and
|
|
14
|
+
* points down (1631:7256, "State"), rather than at the far edge.
|
|
15
|
+
*/
|
|
16
|
+
paired?: boolean;
|
|
12
17
|
/**
|
|
13
18
|
* The options are ISO 3166-1 alpha-2 codes. Every country on earth is
|
|
14
19
|
* further than a plain list can be read through, so the drawer is the
|
|
15
20
|
* searchable list with the index rail the phone flow already draws.
|
|
16
21
|
*/
|
|
17
22
|
country?: boolean;
|
|
23
|
+
/** More options than a plain list can be read through: the same searchable list, over these. */
|
|
24
|
+
searchable?: boolean;
|
|
18
25
|
onChange: (value: string) => void;
|
|
19
26
|
}
|
|
20
27
|
/** KYC R2 selection drawer, shared by country and provider questionnaires. */
|
|
21
|
-
export declare function FiatChoiceField({ label, title, value, options, editable, invalid, grouped, country, onChange, }: FiatChoiceFieldProps): import("react").JSX.Element;
|
|
28
|
+
export declare function FiatChoiceField({ label, title, value, options, editable, invalid, grouped, paired, country, searchable, onChange, }: FiatChoiceFieldProps): import("react").JSX.Element;
|
|
22
29
|
//# sourceMappingURL=FiatChoiceField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatChoiceField.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatChoiceField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FiatChoiceField.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatChoiceField.tsx"],"names":[],"mappings":"AA+BA,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,SAAS;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACzD,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,gGAAgG;IAChG,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC;AAED,8EAA8E;AAC9E,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,OAAO,EACP,MAAc,EACd,OAAe,EACf,UAAkB,EAClB,QAAQ,GACT,EAAE,oBAAoB,+BAsGtB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { NestedSheet } from '../hooks/useNestedSheet';
|
|
2
|
+
import { type ListSection } from './countrySections';
|
|
2
3
|
import { type PhoneCountry } from './phoneCountries';
|
|
3
4
|
export interface FiatCountrySheetProps {
|
|
4
5
|
sheet: NestedSheet<'countries'>;
|
|
@@ -15,15 +16,29 @@ export interface FiatCountrySheetProps {
|
|
|
15
16
|
* gives the list the whole screen and its own search.
|
|
16
17
|
*/
|
|
17
18
|
export declare function FiatCountrySheet({ sheet, selected, onSelect, }: FiatCountrySheetProps): import("react").JSX.Element;
|
|
19
|
+
/** Every country, named and filed for the reading locale. */
|
|
20
|
+
export declare function FiatCountryList(props: Omit<FiatSearchListProps, 'sections' | 'searchLabel'>): import("react").JSX.Element;
|
|
18
21
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
22
|
+
* The bar a searchable list is headed and closed from, for the drawer's
|
|
23
|
+
* `header`: the title centred over the rows blurring into the sheet as they
|
|
24
|
+
* pass beneath it, and the way out at its right hand in glass.
|
|
21
25
|
*/
|
|
22
|
-
export declare function
|
|
23
|
-
|
|
24
|
-
onSelect: (country: PhoneCountry) => void;
|
|
25
|
-
/** The question the list answers, for a field that asks one of its own. */
|
|
26
|
-
heading?: string;
|
|
26
|
+
export declare function FiatSearchListHeader({ title, onClose, }: {
|
|
27
|
+
title: string;
|
|
27
28
|
onClose: () => void;
|
|
28
29
|
}): import("react").JSX.Element;
|
|
30
|
+
export interface FiatSearchListProps {
|
|
31
|
+
sections: readonly ListSection[];
|
|
32
|
+
/** The key the field carries, checked where it stands in the list. */
|
|
33
|
+
selected: string;
|
|
34
|
+
onSelect: (key: string) => void;
|
|
35
|
+
searchLabel: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A searchable list as a stacked sheet, read the way a contacts list is: the
|
|
39
|
+
* items under the initial they file under with the index rail down the right
|
|
40
|
+
* edge, and the search the list is filtered by floating over its foot. Headed by {@link FiatSearchListHeader}, which the
|
|
41
|
+
* rows scroll under.
|
|
42
|
+
*/
|
|
43
|
+
export declare function FiatSearchList({ sections, selected, onSelect, searchLabel, }: FiatSearchListProps): import("react").JSX.Element;
|
|
29
44
|
//# sourceMappingURL=FiatCountrySheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatCountrySheet.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatCountrySheet.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FiatCountrySheet.d.ts","sourceRoot":"","sources":["../../../src/fiat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mount the provider only after its introduction has been acknowledged. */
|
|
4
|
-
export declare function FiatDocumentCaptureStep({ children, kycProvider, onBack, }: {
|
|
4
|
+
export declare function FiatDocumentCaptureStep({ children, kycProvider, correctionReason, onBack, }: {
|
|
5
5
|
children: () => ReactNode;
|
|
6
6
|
kycProvider?: KYCProvider;
|
|
7
|
+
correctionReason?: string;
|
|
7
8
|
onBack: () => void;
|
|
8
9
|
}): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
9
10
|
//# sourceMappingURL=FiatDocumentCaptureStep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatDocumentCaptureStep.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatDocumentCaptureStep.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAGvD,4EAA4E;AAC5E,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,WAAW,EACX,MAAM,GACP,EAAE;IACD,QAAQ,EAAE,MAAM,SAAS,CAAA;IACzB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,+
|
|
1
|
+
{"version":3,"file":"FiatDocumentCaptureStep.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatDocumentCaptureStep.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAGvD,4EAA4E;AAC5E,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,WAAW,EACX,gBAAgB,EAChB,MAAM,GACP,EAAE;I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Walk } from './
|
|
1
|
+
import { type KycWalk } from './kycWalk';
|
|
2
2
|
import type { FiatProvider, FormDescriptor, FormValues, JsonValue, Quote } from '@funkit/connect-core';
|
|
3
3
|
import { type KycSectionPage } from './formLayout';
|
|
4
4
|
export interface FiatFormScreenProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatFormScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatFormScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"FiatFormScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatFormScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAwB,MAAM,WAAW,CAAA;AAG9D,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EAEd,UAAU,EACV,SAAS,EACT,KAAK,EACN,MAAM,sBAAsB,CAAA;AA0B7B,OAAO,EAGL,KAAK,cAAc,EAQpB,MAAM,cAAc,CAAA;AA0BrB,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,cAAc,CAAA;IACpB,gFAAgF;IAChF,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,qEAAqE;IACrE,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,MAAM,EAAE,UAAU,CAAA;IAClB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,4EAA4E;IAC5E,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,KAAK,IAAI,CAAA;IAC1D,oEAAoE;IACpE,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAA;IACxC,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,+BA+CxD;AAED,UAAU,oBAAqB,SAAQ,mBAAmB;IACxD,KAAK,EAAE,cAAc,EAAE,CAAA;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAC/B;AAED,mFAAmF;AACnF,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,MAAM,EACN,cAAc,EACd,aAAa,EACb,YAAY,EACZ,IAAI,EACJ,YAAY,EACZ,aAAa,EACb,SAAS,EACT,QAAQ,EACR,OAAO,EACP,KAAK,EACL,IAAI,EACJ,MAAM,GACP,EAAE,oBAAoB,sCAilBtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatIdentityStep.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatIdentityStep.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"FiatIdentityStep.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatIdentityStep.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAQ3E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,mBAAmB,+BAmB1D"}
|
|
@@ -13,6 +13,10 @@ interface KycFieldControlProps extends FiatFormFieldRowProps {
|
|
|
13
13
|
isDatePickerLoading?: boolean;
|
|
14
14
|
/** The page draws its answers itself, rather than behind a chooser. */
|
|
15
15
|
inlineChoice?: boolean;
|
|
16
|
+
/** Shares its row with another field — see `FiatChoiceField`. */
|
|
17
|
+
paired?: boolean;
|
|
18
|
+
/** The country the address is in, whose states the region field lists. */
|
|
19
|
+
country?: string;
|
|
16
20
|
}
|
|
17
21
|
export declare function FiatKycFieldControl({ caption, ...props }: KycFieldControlProps & {
|
|
18
22
|
/** Named above the control, where the page's own line does not name it. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatKycFieldControl.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycFieldControl.tsx"],"names":[],"mappings":"AASA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"FiatKycFieldControl.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycFieldControl.tsx"],"names":[],"mappings":"AASA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAG1D,UAAU,oBAAqB,SAAQ,qBAAqB;IAC1D,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;IACjB,yEAAyE;IACzE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,2DAA2D;IAC3D,KAAK,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;IACvC,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,uEAAuE;IACvE,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,iEAAiE;IACjE,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,GAAG,KAAK,EACT,EAAE,oBAAoB,GAAG;IACxB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,+BAiBA"}
|
|
@@ -5,9 +5,11 @@ export interface FiatKycIntroScreenProps {
|
|
|
5
5
|
kycProvider?: KYCProvider;
|
|
6
6
|
additionalInformation?: boolean;
|
|
7
7
|
documentVerification?: boolean;
|
|
8
|
+
/** Provider guidance shown before a rejected document round is reopened. */
|
|
9
|
+
correctionReason?: string;
|
|
8
10
|
isSubmitting?: boolean;
|
|
9
11
|
onContinue: () => void;
|
|
10
12
|
onCancel: () => void;
|
|
11
13
|
}
|
|
12
|
-
export declare function FiatKycIntroScreen({ provider, kycProvider, additionalInformation, documentVerification, isSubmitting, onContinue, onCancel, }: FiatKycIntroScreenProps): import("react").JSX.Element;
|
|
14
|
+
export declare function FiatKycIntroScreen({ provider, kycProvider, additionalInformation, documentVerification, correctionReason, isSubmitting, onContinue, onCancel, }: FiatKycIntroScreenProps): import("react").JSX.Element;
|
|
13
15
|
//# sourceMappingURL=FiatKycIntroScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatKycIntroScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycIntroScreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAoBrE,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,qEAAqE;IACrE,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,WAAW,EACX,qBAA6B,EAC7B,oBAA4B,EAC5B,YAAoB,EACpB,UAAU,EACV,QAAQ,GACT,EAAE,uBAAuB,+
|
|
1
|
+
{"version":3,"file":"FiatKycIntroScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycIntroScreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAoBrE,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,qEAAqE;IACrE,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,WAAW,EACX,qBAA6B,EAC7B,oBAA4B,EAC5B,gBAAgB,EAChB,YAAoB,EACpB,UAAU,EACV,QAAQ,GACT,EAAE,uBAAuB,+BAoIzB"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { type KycWalkOrder } from './kycWalk';
|
|
2
|
+
/** The design's three-dot indicator, centred on the back button's row. */
|
|
3
|
+
export declare function FiatKycPosition({ index, count, last, }: KycWalkOrder & {
|
|
4
|
+
/** The SSN page — see `kycDotSlot`. */
|
|
5
|
+
last?: boolean;
|
|
4
6
|
}): import("react").JSX.Element;
|
|
5
7
|
//# sourceMappingURL=FiatKycPosition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatKycPosition.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycPosition.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"FiatKycPosition.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycPosition.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,YAAY,EAAc,MAAM,WAAW,CAAA;AAMzD,0EAA0E;AAC1E,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,KAAK,EACL,IAAY,GACb,EAAE,YAAY,GAAG;IAChB,uCAAuC;IACvC,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,+BAqBA"}
|
|
@@ -4,6 +4,7 @@ export interface FiatTermsNoticeProps {
|
|
|
4
4
|
terms: TermsToAccept | Pick<TermsToAccept, 'documentUrl'>;
|
|
5
5
|
}
|
|
6
6
|
export declare const COINBASE_USER_AGREEMENT_URL = "https://www.coinbase.com/legal/user_agreement";
|
|
7
|
+
export declare const MOONPAY_TERMS_URL = "https://www.moonpay.com/legal/terms";
|
|
7
8
|
/** The server requests consent; the footer explains what the next tap accepts. */
|
|
8
9
|
export declare function FiatTermsNotice({ terms }: FiatTermsNoticeProps): import("react").JSX.Element;
|
|
9
10
|
//# sourceMappingURL=FiatTermsNotice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatTermsNotice.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatTermsNotice.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AASzD,MAAM,WAAW,oBAAoB;IACnC,wFAAwF;IACxF,KAAK,EAAE,aAAa,GAAG,IAAI,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;CAC1D;AAED,eAAO,MAAM,2BAA2B,kDACS,CAAA;
|
|
1
|
+
{"version":3,"file":"FiatTermsNotice.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatTermsNotice.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AASzD,MAAM,WAAW,oBAAoB;IACnC,wFAAwF;IACxF,KAAK,EAAE,aAAa,GAAG,IAAI,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;CAC1D;AAED,eAAO,MAAM,2BAA2B,kDACS,CAAA;AAEjD,eAAO,MAAM,iBAAiB,wCAAwC,CAAA;AAiEtE,kFAAkF;AAClF,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE,oBAAoB,+BAa9D"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
/** A heading, or one country under it. */
|
|
1
|
+
import type { ListItem, ListSection } from './countrySections';
|
|
2
|
+
/** A letter heading, or one country under it. */
|
|
4
3
|
export type ListEntry = {
|
|
5
4
|
kind: 'header';
|
|
6
5
|
key: string;
|
|
7
6
|
gap: boolean;
|
|
8
|
-
/** Whether the index rail lists it — the pinned heading is not a letter. */
|
|
9
|
-
indexed: boolean;
|
|
10
7
|
} | {
|
|
11
8
|
kind: 'row';
|
|
12
9
|
key: string;
|
|
13
|
-
item:
|
|
10
|
+
item: ListItem;
|
|
14
11
|
/** Which corners the row rounds, and whether it rules off below. */
|
|
15
12
|
first: boolean;
|
|
16
13
|
last: boolean;
|
|
@@ -23,15 +20,14 @@ export interface EntryHeights {
|
|
|
23
20
|
gap: number;
|
|
24
21
|
}
|
|
25
22
|
/**
|
|
26
|
-
* The sections flattened into rows a single list draws,
|
|
27
|
-
*
|
|
23
|
+
* The sections flattened into rows a single list draws, every country in its
|
|
24
|
+
* place under its letter.
|
|
28
25
|
*
|
|
29
|
-
* A search
|
|
30
|
-
*
|
|
26
|
+
* A search keeps the letters: its answers stay filed under their initials in
|
|
27
|
+
* the list's own order, best answer first within each, so "rus" reads B
|
|
28
|
+
* (Belarus), C (Cyprus), R (Russia).
|
|
31
29
|
*/
|
|
32
|
-
export declare function
|
|
33
|
-
/** What heads the pinned card — "Country:", in the reading language. */
|
|
34
|
-
pinnedHeading: string): ListEntry[];
|
|
30
|
+
export declare function listEntries(sections: readonly ListSection[], query: string): ListEntry[];
|
|
35
31
|
/**
|
|
36
32
|
* The heading a list scrolled this far down is reading under, so the rail can
|
|
37
33
|
* say where the list is. `undefined` above the first one, where the pinned
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countryListEntries.d.ts","sourceRoot":"","sources":["../../../src/fiat/countryListEntries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"countryListEntries.d.ts","sourceRoot":"","sources":["../../../src/fiat/countryListEntries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE9D,iDAAiD;AACjD,MAAM,MAAM,SAAS,GACjB;IACE,IAAI,EAAE,QAAQ,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;CACb,GACD;IACE,IAAI,EAAE,KAAK,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,QAAQ,CAAA;IACd,oEAAoE;IACpE,KAAK,EAAE,OAAO,CAAA;IACd,IAAI,EAAE,OAAO,CAAA;CACd,CAAA;AAEL,6EAA6E;AAC7E,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,4CAA4C;IAC5C,GAAG,EAAE,MAAM,CAAA;CACZ;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,SAAS,WAAW,EAAE,EAChC,KAAK,EAAE,MAAM,GACZ,SAAS,EAAE,CAab;AAyDD;;;;GAIG;AACH,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,GAAG,EAAE,MAAM,GACV,MAAM,GAAG,SAAS,CAUpB;AAED,0DAA0D;AAC1D,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,mEAAmE;AACnE,MAAM,WAAW,QAAQ;IACvB;kFAC8E;IAC9E,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,gEAAgE;IAChE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,wDAAwD;IACxD,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,SAAS,SAAS,EAAE,EAC7B,OAAO,EAAE,YAAY,GACpB,QAAQ,CAkBV"}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { type PhoneCountry } from './phoneCountries';
|
|
2
|
-
/**
|
|
3
|
-
export interface
|
|
4
|
-
|
|
2
|
+
/** One choice in a searchable list, named in the reading locale — what a row draws. */
|
|
3
|
+
export interface ListItem {
|
|
4
|
+
/** What the choice is stored as. */
|
|
5
|
+
key: string;
|
|
5
6
|
name: string;
|
|
7
|
+
flag?: string;
|
|
8
|
+
/** A second thing the item answers a search by, spoken rather than drawn. */
|
|
9
|
+
hint?: string;
|
|
6
10
|
}
|
|
7
11
|
/** One initial's worth of the list, under the heading that names it. */
|
|
8
|
-
export interface
|
|
12
|
+
export interface ListSection {
|
|
9
13
|
/** The heading, and the label the index rail scrubs to. */
|
|
10
14
|
key: string;
|
|
11
|
-
data:
|
|
15
|
+
data: ListItem[];
|
|
12
16
|
}
|
|
13
17
|
/** Heads everything no letter does — digits, punctuation — and reads last. */
|
|
14
18
|
export declare const OTHER_SECTION_KEY = "#";
|
|
@@ -21,5 +25,7 @@ export declare const OTHER_SECTION_KEY = "#";
|
|
|
21
25
|
* Japanese reader's 日本 is not filed under J, and sorted by a collator rather
|
|
22
26
|
* than by code unit, so Åland lands beside Albania instead of past Zimbabwe.
|
|
23
27
|
*/
|
|
24
|
-
export declare function countrySections(countries: readonly PhoneCountry[], locale: string):
|
|
28
|
+
export declare function countrySections(countries: readonly PhoneCountry[], locale: string): ListSection[];
|
|
29
|
+
/** Any items, ordered by the locale's collation and cut into sections at the initial. */
|
|
30
|
+
export declare function listSections(items: readonly ListItem[], locale: string): ListSection[];
|
|
25
31
|
//# sourceMappingURL=countrySections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countrySections.d.ts","sourceRoot":"","sources":["../../../src/fiat/countrySections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"countrySections.d.ts","sourceRoot":"","sources":["../../../src/fiat/countrySections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAA4B,MAAM,kBAAkB,CAAA;AAE9E,uFAAuF;AACvF,MAAM,WAAW,QAAQ;IACvB,oCAAoC;IACpC,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,6EAA6E;IAC7E,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,wEAAwE;AACxE,MAAM,WAAW,WAAW;IAC1B,2DAA2D;IAC3D,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,QAAQ,EAAE,CAAA;CACjB;AAED,8EAA8E;AAC9E,eAAO,MAAM,iBAAiB,MAAM,CAAA;AAEpC;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,SAAS,YAAY,EAAE,EAClC,MAAM,EAAE,MAAM,GACb,WAAW,EAAE,CAUf;AAED,yFAAyF;AACzF,wBAAgB,YAAY,CAC1B,KAAK,EAAE,SAAS,QAAQ,EAAE,EAC1B,MAAM,EAAE,MAAM,GACb,WAAW,EAAE,CAwBf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formLayout.d.ts","sourceRoot":"","sources":["../../../src/fiat/formLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,sBAAsB,CAAA;AAEjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAElD;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,KAAK,GACL,aAAa,GACb,SAAS,GACT,SAAS,GACT,KAAK,GACL,OAAO,GACP,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,kBAAkB,GAClB,QAAQ,GACR,UAAU,GACV,SAAS,CAAA;AAEb,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,UAAU,CAAA;IACnB,2EAA2E;IAC3E,OAAO,EAAE,OAAO,CAAA;IAChB,uEAAuE;IACvE,IAAI,EAAE,SAAS,EAAE,EAAE,CAAA;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,kEACiC,CAAA;AACjE,eAAO,MAAM,yBAAyB,kFAC2C,CAAA;AACjF,eAAO,MAAM,sBAAsB,6EACyC,CAAA;
|
|
1
|
+
{"version":3,"file":"formLayout.d.ts","sourceRoot":"","sources":["../../../src/fiat/formLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,sBAAsB,CAAA;AAEjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAElD;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,KAAK,GACL,aAAa,GACb,SAAS,GACT,SAAS,GACT,KAAK,GACL,OAAO,GACP,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,kBAAkB,GAClB,QAAQ,GACR,UAAU,GACV,SAAS,CAAA;AAEb,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,UAAU,CAAA;IACnB,2EAA2E;IAC3E,OAAO,EAAE,OAAO,CAAA;IAChB,uEAAuE;IACvE,IAAI,EAAE,SAAS,EAAE,EAAE,CAAA;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,kEACiC,CAAA;AACjE,eAAO,MAAM,yBAAyB,kFAC2C,CAAA;AACjF,eAAO,MAAM,sBAAsB,6EACyC,CAAA;AAwG5E;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAGzD;AAiBD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAElE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,SAAS,CAI3E;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAE1D;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,SAAS,GACf,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAE5C;AAED,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAEvD;AAED,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAE3D;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,GAAG,SAAS,EAAE,CAE3E;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,GAAG,cAAc,EAAE,CAwC3E"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { FormField } from '@funkit/connect-core';
|
|
2
2
|
import { type KycFieldIssue } from './kycFormState';
|
|
3
|
-
export declare function kycFieldValidators(field: FormField, ssnDigits?: 4 | 9
|
|
3
|
+
export declare function kycFieldValidators(field: FormField, ssnDigits?: 4 | 9,
|
|
4
|
+
/** The only answers the field takes; see `regionOptions`. */
|
|
5
|
+
choices?: readonly {
|
|
6
|
+
id: string;
|
|
7
|
+
}[]): {
|
|
4
8
|
onMount: (input: {
|
|
5
9
|
value: string | undefined;
|
|
6
10
|
}) => KycFieldIssue | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kycFieldValidators.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycFieldValidators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,KAAK,aAAa,EAA8B,MAAM,gBAAgB,CAAA;AAE/E,wBAAgB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"kycFieldValidators.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycFieldValidators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,KAAK,aAAa,EAA8B,MAAM,gBAAgB,CAAA;AAE/E,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,SAAS,EAChB,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC;AACjB,6DAA6D;AAC7D,OAAO,CAAC,EAAE,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE;qBAEb;QACpB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;KAC1B,KAAK,aAAa,GAAG,SAAS;sBAFT;QACpB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;KAC1B,KAAK,aAAa,GAAG,SAAS;cAmBhC"}
|
|
@@ -7,8 +7,6 @@ export declare const KYC_FORM_METRICS: {
|
|
|
7
7
|
readonly fieldHeight: 56;
|
|
8
8
|
readonly fieldRadius: 16;
|
|
9
9
|
readonly fieldPaddingHorizontal: 16;
|
|
10
|
-
/** An optional field's caption needs the extra 4px, so it insets less. */
|
|
11
|
-
readonly optionalPaddingHorizontal: 12;
|
|
12
10
|
/** Where that caption sits, clear of the placeholder above it. */
|
|
13
11
|
readonly optionalCaptionBottom: 7;
|
|
14
12
|
/** Between the rows of one section. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kycFormTheme.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycFormTheme.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,eAAO,MAAM,gBAAgB;IAC3B,oDAAoD;;;;IAIpD,
|
|
1
|
+
{"version":3,"file":"kycFormTheme.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycFormTheme.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,eAAO,MAAM,gBAAgB;IAC3B,oDAAoD;;;;IAIpD,kEAAkE;;IAElE,uCAAuC;;;;IAQvC,6CAA6C;;;;;;IAW7C,8EAA8E;;;;;IAK9E,oEAAoE;;;;IAIpE,8EAA8E;;IAE9E,qDAAqD;;;;IASrD,yCAAyC;;IAEzC,4EAA4E;;IAE5E,mEAAmE;;;;IAInE,mDAAmD;;IAEnD,iEAAiE;;IAEjE,2BAA2B;;IAE3B,sDAAsD;;IAEtD,mDAAmD;;IAEnD,6EAA6E;;;IAG7E,kEAAkE;;IAElE;;;OAGG;;;;IAIH,6EAA6E;;IAO7E,0DAA0D;;IAE1D,0EAA0E;;;;IAI1E,oDAAoD;;IAEpD,2DAA2D;;;IAG3D;;;OAGG;;IAEH,+DAA+D;;;IAG/D,sEAAsE;;IAEtE,oEAAoE;;IAEpE,yDAAyD;;IAEzD,yEAAyE;;;;;IASzE,oEAAoE;;;;CAI5D,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { DotSlot } from '../components/ScrollingDots';
|
|
2
|
+
/** Where a page stands in the pages walked so far, this round's included. */
|
|
3
|
+
export interface KycWalkOrder {
|
|
4
|
+
/** 0-based. */
|
|
5
|
+
index: number;
|
|
6
|
+
count: number;
|
|
7
|
+
}
|
|
8
|
+
/** The pages walked before this round, and this round's own, so a later round's dots carry on from the earlier ones. */
|
|
9
|
+
export interface KycWalk {
|
|
10
|
+
formId: string;
|
|
11
|
+
before: number;
|
|
12
|
+
pages: number;
|
|
13
|
+
}
|
|
14
|
+
export declare function walkRound(walk: KycWalk | undefined, formId: string, pages: number): KycWalk;
|
|
15
|
+
export declare function walkOrder(walk: KycWalk, step: number): KycWalkOrder;
|
|
16
|
+
/**
|
|
17
|
+
* Which dot a page lights. A later round can always follow, so the end of the
|
|
18
|
+
* pages seen so far is not the end of the walk: only the SSN page, which the
|
|
19
|
+
* design closes the walk with, lights the last dot.
|
|
20
|
+
*/
|
|
21
|
+
export declare function kycDotSlot(index: number, last: boolean): DotSlot;
|
|
22
|
+
//# sourceMappingURL=kycWalk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kycWalk.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycWalk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAE1D,6EAA6E;AAC7E,MAAM,WAAW,YAAY;IAC3B,eAAe;IACf,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED,wHAAwH;AACxH,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,SAAS,CACvB,IAAI,EAAE,OAAO,GAAG,SAAS,EACzB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACZ,OAAO,CAQT;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,YAAY,CAEnE;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAKhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoinbaseCheckoutSurface.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/CoinbaseCheckoutSurface.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoinbaseCheckoutSurface.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/CoinbaseCheckoutSurface.tsx"],"names":[],"mappings":"AAwBA,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAA;IACnB,8CAA8C;IAC9C,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,8DAA8D;IAC9D,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,yCAAyC;IACzC,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAClD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,EACX,WAAW,EACX,OAAO,EACP,MAAM,EACN,WAAW,EACX,QAAQ,GACT,EAAE,4BAA4B,+BA2H9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HostedControlFrame.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/HostedControlFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"HostedControlFrame.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/HostedControlFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAO/C;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,SAAS,EACT,SAAS,EACT,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC,CAAA;IACtC,QAAQ,EAAE,SAAS,CAAA;CACpB,+BA6BA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Surface, SurfaceResult } from '@funkit/connect-core';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* Who operates the control.
|
|
5
5
|
*
|
|
@@ -24,6 +24,12 @@ export interface SurfaceContext {
|
|
|
24
24
|
onFailed: (code: string, detail?: string) => void;
|
|
25
25
|
/** Leaves the flow — a handoff draws its own chrome, close included. */
|
|
26
26
|
onClose: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* An `INLINE` control found it needs the buyer and the whole canvas (a
|
|
29
|
+
* sign-in to work through). The screen turns to a page of the provider's
|
|
30
|
+
* and renders the surface again with `placement: 'SCREEN'`.
|
|
31
|
+
*/
|
|
32
|
+
onHandoff?: () => void;
|
|
27
33
|
/**
|
|
28
34
|
* The provider's own page says the crypto is sent. Optional both ways: only
|
|
29
35
|
* a rail that watches its transfer can say it, and only a screen that can
|
|
@@ -32,6 +38,14 @@ export interface SurfaceContext {
|
|
|
32
38
|
onSettled?: () => void;
|
|
33
39
|
report: (result: SurfaceResult) => void;
|
|
34
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Mounted once by a screen, above every place its surfaces can render — the
|
|
43
|
+
* amount slot and the page a handoff turns to — for state those mounts share.
|
|
44
|
+
* MoonPay keeps a session's credentials inside one provider instance.
|
|
45
|
+
*/
|
|
46
|
+
export type SurfaceHost = ComponentType<{
|
|
47
|
+
children: ReactNode;
|
|
48
|
+
}>;
|
|
35
49
|
export interface ClaimedSurface {
|
|
36
50
|
control: SurfaceControlModel;
|
|
37
51
|
render: (context: SurfaceContext) => ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,SAAS,CAAA;AAExD,8DAA8D;AAC9D,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAC9B,wEAAwE;IACxE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;;;;OAMG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACjD,wEAAwE;IACxE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAA;CACxC;AAED;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,aAAa,CAAC;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,CAAC,CAAA;AAEhE,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,mBAAmB,CAAA;IAC5B,MAAM,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,SAAS,CAAA;CAC/C;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,cAAc,GAAG,SAAS,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { FunkitTheme } from '../../theme/toRestyleTheme';
|
|
2
|
+
/**
|
|
3
|
+
* How a provider's hosted Apple Pay button is drawn, shared by every frame
|
|
4
|
+
* that clips one: the slot it fills and the CSS that sizes Apple's element
|
|
5
|
+
* to it.
|
|
6
|
+
*/
|
|
7
|
+
export interface ApplePayButtonMetrics {
|
|
8
|
+
height: number;
|
|
9
|
+
radius: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Apple draws the label to the element's inner height, so this vertical inset
|
|
13
|
+
* is what sets the text size, and every provider's button uses the same one.
|
|
14
|
+
*/
|
|
15
|
+
export declare const APPLE_PAY_LABEL_INSET = 10;
|
|
16
|
+
/** The slot's size: the theme's large button, at its radius. */
|
|
17
|
+
export declare function applePayButtonMetrics(theme: FunkitTheme): ApplePayButtonMetrics;
|
|
18
|
+
/**
|
|
19
|
+
* Apple's documented custom properties for the `apple-pay-button` element,
|
|
20
|
+
* valued for the slot. Only these go on the element: its shadow button reads
|
|
21
|
+
* them, and plain box styles on the host would inset it a second time.
|
|
22
|
+
*/
|
|
23
|
+
export declare function applePayElementProperties({ height, radius, }: ApplePayButtonMetrics): Record<string, string>;
|
|
24
|
+
/** The same shape for a button drawn with `-webkit-appearance`. */
|
|
25
|
+
export declare function applePayNativeStyles({ height, radius, }: ApplePayButtonMetrics): Record<string, string>;
|
|
26
|
+
/** The element's properties as one rule for an injected stylesheet. */
|
|
27
|
+
export declare function applePayButtonRule(metrics: ApplePayButtonMetrics): string;
|
|
28
|
+
//# sourceMappingURL=applePayButtonMetrics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applePayButtonMetrics.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/applePayButtonMetrics.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAE7D;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAA;AAEvC,gEAAgE;AAChE,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,WAAW,GACjB,qBAAqB,CAGvB;AAID;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,MAAM,EACN,MAAM,GACP,EAAE,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAQhD;AAED,mEAAmE;AACnE,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,MAAM,GACP,EAAE,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAQhD;AAED,uEAAuE;AACvE,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAKzE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** The token a page's paint report names, if `data` is one. */
|
|
2
|
+
export declare function readApplePayPaintReport(data: string): string | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* Runs in the hosted page. Apple's element is only drawn once its script has
|
|
5
|
+
* defined it, so a box of the right size is not yet a button; two frames after
|
|
6
|
+
* that is when it is on screen.
|
|
7
|
+
*/
|
|
8
|
+
export declare function applePayPaintedScript(token: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Ready once the page has said so and Apple's button is on screen, so the
|
|
11
|
+
* slot, the fee and the footer all appear with the button rather than before.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useApplePayPaintGate(onReady: () => void, log: {
|
|
14
|
+
provider: string;
|
|
15
|
+
environment: string;
|
|
16
|
+
}): {
|
|
17
|
+
paintToken: string;
|
|
18
|
+
markPageReady: () => void;
|
|
19
|
+
markPainted: () => void;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=applePayPaintGate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applePayPaintGate.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/applePayPaintGate.ts"],"names":[],"mappings":"AAmBA,+DAA+D;AAC/D,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAcxE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CA0C3D;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,IAAI,EACnB,GAAG,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GAC7C;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,CAkCA"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
1
2
|
import type { SurfaceAdapter } from './adapter';
|
|
2
3
|
export declare const moonpay: SurfaceAdapter;
|
|
4
|
+
export declare function MoonPaySurfaceHost({ children }: {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
3
7
|
//# sourceMappingURL=moonpay.d.ts.map
|