@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moonpay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpay.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"moonpay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpay.tsx"],"names":[],"mappings":"AAkBA,OAAO,EACL,KAAK,SAAS,EAQf,MAAM,OAAO,CAAA;AAOd,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AA4F/D,eAAO,MAAM,OAAO,EAAE,cAqCrB,CAAA;AAkGD,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAMvE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TraceableTransport } from './moonpayTrace';
|
|
2
|
+
/** Consumes the page's paint report so MoonPay's router never sees it. */
|
|
3
|
+
export declare function wrapPaintSignal(proto: TraceableTransport): void;
|
|
4
|
+
/** Guarded like the trace tap: a MoonPay release without the export must not break the flow. */
|
|
5
|
+
export declare function installApplePayPaintSignal(): void;
|
|
6
|
+
export declare function onApplePayPainted(token: string, listener: () => void): () => void;
|
|
7
|
+
//# sourceMappingURL=moonpayApplePayPainted.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpayApplePayPainted.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpayApplePayPainted.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAUxD,0EAA0E;AAC1E,wBAAgB,eAAe,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAe/D;AAED,gGAAgG;AAChG,wBAAgB,0BAA0B,IAAI,IAAI,CAQjD;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,IAAI,GACnB,MAAM,IAAI,CAOZ"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ApplePayButtonMetrics } from './applePayButtonMetrics';
|
|
2
|
+
/**
|
|
3
|
+
* Styles MoonPay's hosted Apple Pay button to the slot it stands in.
|
|
4
|
+
*
|
|
5
|
+
* MoonPay renders Apple's `apple-pay-button` element with a `<style>` block of
|
|
6
|
+
* its own (44px tall, 16px radius, 8px 16px padding) placed after anything in
|
|
7
|
+
* `<head>`, so a stylesheet alone loses the cascade. The size is set inline on
|
|
8
|
+
* the element with `!important` instead, and re-applied whenever the frame
|
|
9
|
+
* re-renders it.
|
|
10
|
+
*/
|
|
11
|
+
export declare function applePayButtonStyle(metrics: ApplePayButtonMetrics): string;
|
|
12
|
+
//# sourceMappingURL=moonpayApplePayStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpayApplePayStyle.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpayApplePayStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAI3B,MAAM,yBAAyB,CAAA;AAEhC;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAwC1E"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { Surface } from '@funkit/connect-core';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
import type { SurfaceAdapter, SurfaceContext, SurfaceControlModel } from './providers/adapter';
|
|
4
|
+
/** Every registered adapter's host, around the screen that renders surfaces. */
|
|
5
|
+
export declare function SurfaceHosts({ children }: {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}): ReactNode;
|
|
4
8
|
/**
|
|
5
9
|
* How this surface is operated, or `undefined` when nothing can draw it.
|
|
6
10
|
* Asked before rendering, because the two models want different chrome.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderCaptureSurface.d.ts","sourceRoot":"","sources":["../../../src/fiat/renderCaptureSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAEV,cAAc,EACd,cAAc,EACd,mBAAmB,
|
|
1
|
+
{"version":3,"file":"renderCaptureSurface.d.ts","sourceRoot":"","sources":["../../../src/fiat/renderCaptureSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAEV,cAAc,EACd,cAAc,EACd,mBAAmB,EAEpB,MAAM,qBAAqB,CAAA;AAsB5B,gFAAgF;AAChF,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,aAKjE;AAmBD;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,EAChB,QAAQ,GAAE,SAAS,cAAc,EAAO,GACvC,mBAAmB,GAAG,SAAS,CAEjC;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAQ,EACR,GAAG,OAAO,EACX,EAAE,cAAc,GAAG;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,cAAc,EAAE,CAAA;CACrC,GAAG,SAAS,CAEZ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A country's ISO 3166-2 subdivisions as choices, keyed by the code the
|
|
3
|
+
* providers take for a state (`CA` for California, not `US-CA`). `undefined`
|
|
4
|
+
* for a country the table has none for, which is left to type.
|
|
5
|
+
*/
|
|
6
|
+
export declare function subdivisionOptions(alpha2: string | undefined): {
|
|
7
|
+
id: string;
|
|
8
|
+
labelFallback: string;
|
|
9
|
+
}[] | undefined;
|
|
10
|
+
/** The states a region field picks from, when it is the residential one. */
|
|
11
|
+
export declare function regionOptions(fieldId: string, alpha2: string | undefined): {
|
|
12
|
+
id: string;
|
|
13
|
+
labelFallback: string;
|
|
14
|
+
}[] | undefined;
|
|
15
|
+
//# sourceMappingURL=subdivisions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subdivisions.d.ts","sourceRoot":"","sources":["../../../src/fiat/subdivisions.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,SAAS,CAcrD;AAED,4EAA4E;AAC5E,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,SAAS,CAIrD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFiatCheckoutPreparation.d.ts","sourceRoot":"","sources":["../../../src/fiat/useFiatCheckoutPreparation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useFiatCheckoutPreparation.d.ts","sourceRoot":"","sources":["../../../src/fiat/useFiatCheckoutPreparation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EAEb,MAAM,sBAAsB,CAAA;AAwD7B,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,OAAO,GACR,EAAE;IACD,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,QAAQ,EAAE,QAAQ,CAAA;IAClB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,GAAG,OAAO,CAkCV"}
|
|
@@ -3,22 +3,40 @@ import type { NestedSheet } from '../hooks/useNestedSheet';
|
|
|
3
3
|
export interface DrawerProps<TScreen extends string> {
|
|
4
4
|
sheet: NestedSheet<TScreen>;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Stand at the full drawer height rather than sizing to the content: the
|
|
7
|
+
* window below the status bar, or, opened from another drawer, that
|
|
8
|
+
* drawer's height less `NESTED_DRAWER_INSET`. A drawer whose content scrolls
|
|
9
|
+
* has to take a fixed detent, because a gorhom scrollable reports only its
|
|
10
|
+
* own height (see `sheetSizing`).
|
|
9
11
|
*/
|
|
10
12
|
fullHeight?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* A plain panel in place of the glass: pure white or pure black, so nothing
|
|
15
|
+
* of the step behind it reads through. What a drawer holding a whole answer
|
|
16
|
+
* takes; the glass is for a drawer read alongside the step it covers.
|
|
17
|
+
*/
|
|
18
|
+
solid?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* A bar laid over the content's head in place of the grabber. It is the
|
|
21
|
+
* drawer's handle: a pull anywhere on it moves the drawer however far the
|
|
22
|
+
* list under it is scrolled, and its own controls still take their taps.
|
|
23
|
+
*/
|
|
24
|
+
header?: ReactNode;
|
|
11
25
|
children: ReactNode;
|
|
12
26
|
}
|
|
13
27
|
/**
|
|
14
28
|
* Every drawer that opens over the deposit sheet: the fee breakdown, the
|
|
15
29
|
* country list and the KYC choosers all present through this one component, so
|
|
16
|
-
* they are dismissed the same way
|
|
30
|
+
* they are dismissed the same way. `solid` picks which surface they are drawn
|
|
31
|
+
* on.
|
|
17
32
|
*
|
|
18
|
-
* The drawer owns its grabber,
|
|
19
|
-
* it stays put while a list scrolls under it.
|
|
20
|
-
*
|
|
21
|
-
*
|
|
33
|
+
* The drawer owns its grabber, in gorhom's handle slot but laid over the
|
|
34
|
+
* content rather than above it, so it stays put while a list scrolls under it.
|
|
35
|
+
* The slot matters: a pull on the content only moves the drawer while the list
|
|
36
|
+
* under it is at its top, a pull on the handle moves it wherever the list is.
|
|
37
|
+
* A close button is the screen's to draw where the design gives it one (the
|
|
38
|
+
* fee breakdown does); the gesture, the grabber and the backdrop are the
|
|
39
|
+
* drawer's.
|
|
22
40
|
*/
|
|
23
|
-
export declare function Drawer<TScreen extends string>({ sheet, fullHeight, children, }: DrawerProps<TScreen>): import("react").JSX.Element;
|
|
41
|
+
export declare function Drawer<TScreen extends string>({ sheet, fullHeight, solid, header, children, }: DrawerProps<TScreen>): import("react").JSX.Element;
|
|
24
42
|
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/flow/Drawer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EAGf,MAAM,OAAO,CAAA;AAKd,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/flow/Drawer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EAGf,MAAM,OAAO,CAAA;AAKd,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAmB1D,MAAM,WAAW,WAAW,CAAC,OAAO,SAAS,MAAM;IACjD,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC3B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,MAAM,CAAC,OAAO,SAAS,MAAM,EAAE,EAC7C,KAAK,EACL,UAAkB,EAClB,KAAa,EACb,MAAM,EACN,QAAQ,GACT,EAAE,WAAW,CAAC,OAAO,CAAC,+BAwFtB"}
|
|
@@ -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":"AA0JA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EAEpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAgG/D,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,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,mEAAmE;IACnE,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,gBAAgB,CAAC,CAAA;IAC9E,yEAAyE;IACzE,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BA2DA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type PageMotion } from './pageMotion';
|
|
3
|
+
import type { PageTurn } from './pageTurn';
|
|
4
|
+
export interface FlowPageProps {
|
|
5
|
+
motion: PageMotion;
|
|
6
|
+
turn: PageTurn;
|
|
7
|
+
/** Off for the page a flow opens on: there is nothing for it to turn from. */
|
|
8
|
+
animateIn?: boolean;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* One page of a flow, so a move between pages is a turn rather than a cut.
|
|
13
|
+
*
|
|
14
|
+
* A pushed page is a screen: it fills its frame absolutely, so the one
|
|
15
|
+
* leaving and the one arriving stand in it together, and a page that arrived
|
|
16
|
+
* forward stays over one that is returning. A nudged page is a block in its
|
|
17
|
+
* screen's own flow.
|
|
18
|
+
*/
|
|
19
|
+
export declare function FlowPage({ motion, turn, animateIn, children, }: FlowPageProps): import("react").JSX.Element;
|
|
20
|
+
//# sourceMappingURL=FlowPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowPage.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,EACL,KAAK,UAAU,EAIhB,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAE1C,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,QAAQ,CAAA;IACd,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,EACvB,MAAM,EACN,IAAI,EACJ,SAAgB,EAChB,QAAQ,GACT,EAAE,aAAa,+BA2Bf"}
|
|
@@ -65,8 +65,15 @@ export declare function FlowSheetBackground(props: BottomSheetBackgroundProps):
|
|
|
65
65
|
export declare function GlassSheetBackground({ pointerEvents, style, }: BottomSheetBackgroundProps): import("react").JSX.Element;
|
|
66
66
|
/**
|
|
67
67
|
* {@link FlowSheetBackground} for a screen stacked over another sheet — the
|
|
68
|
-
*
|
|
68
|
+
* fee breakdown (4006:4707). Glass rather than a panel, so the step it was
|
|
69
69
|
* raised from still reads faintly underneath it.
|
|
70
70
|
*/
|
|
71
71
|
export declare function StackedSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
|
|
72
|
+
/**
|
|
73
|
+
* {@link StackedSheetBackground} as a plain panel: the `drawer` fill alone, no
|
|
74
|
+
* material and no glass. A drawer the whole answer is read out of covers the
|
|
75
|
+
* step it was raised from rather than refracting it.
|
|
76
|
+
*/
|
|
77
|
+
export declare function SolidStackedSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
|
|
78
|
+
export declare const STACKED_TOP_RADIUS = 32;
|
|
72
79
|
//# 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,0BAA0B,EAKhC,MAAM,sBAAsB,CAAA;AAC7B,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,0BAA0B,EAKhC,MAAM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|
/**
|
|
3
|
-
* The
|
|
4
|
-
*
|
|
3
|
+
* The corner everything React Native draws for the material takes, since only
|
|
4
|
+
* the glass can follow the screen's: the device's own, which a full-bleed slab
|
|
5
|
+
* meets without a seam.
|
|
6
|
+
*/
|
|
7
|
+
export declare const MATERIAL_CORNER_RADIUS = 65;
|
|
8
|
+
/**
|
|
9
|
+
* The material under every translucent flow surface: a blur of the host app
|
|
10
|
+
* with iOS 26 Liquid Glass refracting through it where the binary links the
|
|
5
11
|
* SDK's pod. Elsewhere the blur stands alone and the surface paints its fill.
|
|
12
|
+
*
|
|
13
|
+
* Dark or light as the theme's modal fill is, since the glass drops that fill
|
|
14
|
+
* out from under the surface and stands in for it.
|
|
6
15
|
*/
|
|
7
|
-
export declare function SheetMaterial({
|
|
8
|
-
|
|
16
|
+
export declare function SheetMaterial({ corner, }: {
|
|
17
|
+
/**
|
|
18
|
+
* A fixed corner for the whole material, for a surface that never meets the
|
|
19
|
+
* screen edge (a drawer stacked on the sheet). Left out, the material takes
|
|
20
|
+
* the screen's corner: the slab at the device's, the glass concentric with it.
|
|
21
|
+
*/
|
|
22
|
+
corner?: number;
|
|
9
23
|
}): import("react").JSX.Element;
|
|
10
24
|
export declare const renderSheetMaterial: BackdropBlurRenderer;
|
|
11
25
|
//# sourceMappingURL=SheetMaterial.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetMaterial.d.ts","sourceRoot":"","sources":["../../../src/flow/SheetMaterial.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SheetMaterial.d.ts","sourceRoot":"","sources":["../../../src/flow/SheetMaterial.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIvD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,KAAK,CAAA;AAiBxC;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,EAC5B,MAAM,GACP,EAAE;IACD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,+BA+BA;AAED,eAAO,MAAM,mBAAmB,EAAE,oBAA8C,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ReduceMotion } from 'react-native-reanimated';
|
|
2
|
+
/** +1 is a turn forward through the flow, -1 a return. */
|
|
3
|
+
export type Direction = 1 | -1;
|
|
4
|
+
/**
|
|
5
|
+
* How a page moves when a turn brings it in or takes it away.
|
|
6
|
+
*
|
|
7
|
+
* - `push`: a screen over another, as a navigation stack turns — the page in
|
|
8
|
+
* front crosses the whole width, the one behind a third of it and fades.
|
|
9
|
+
* - `nudge`: transitions.dev "Page side-by-side" — a short shift with a fade,
|
|
10
|
+
* for the pages of one screen turning inside it.
|
|
11
|
+
*/
|
|
12
|
+
export type PageMotion = 'push' | 'nudge';
|
|
13
|
+
export declare const PUSH_DURATION = 350;
|
|
14
|
+
export declare const PUSH_BEHIND_RATIO: number;
|
|
15
|
+
export declare const NUDGE_DURATION = 250;
|
|
16
|
+
export declare const NUDGE_DISTANCE = 40;
|
|
17
|
+
/** The nudge as a `withTiming` config, for whatever moves in step with one. */
|
|
18
|
+
export declare const NUDGE_TIMING: {
|
|
19
|
+
duration: number;
|
|
20
|
+
easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
21
|
+
reduceMotion: ReduceMotion;
|
|
22
|
+
};
|
|
23
|
+
export declare function pageTiming(motion: PageMotion): {
|
|
24
|
+
duration: number;
|
|
25
|
+
easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
26
|
+
reduceMotion: ReduceMotion;
|
|
27
|
+
};
|
|
28
|
+
export interface PageRest {
|
|
29
|
+
x: number;
|
|
30
|
+
opacity: number;
|
|
31
|
+
}
|
|
32
|
+
/** Where a page waits before a turn in `direction` brings it in. */
|
|
33
|
+
export declare function arrivalRest(motion: PageMotion, direction: Direction, width: number): PageRest;
|
|
34
|
+
/** Where a page comes to rest once a turn in `direction` has taken it away. */
|
|
35
|
+
export declare function departureRest(motion: PageMotion, direction: Direction, width: number): PageRest;
|
|
36
|
+
export declare function arrivalKeyframe(motion: PageMotion, direction: Direction, width: number): import("react-native-reanimated").ReanimatedKeyframe;
|
|
37
|
+
//# sourceMappingURL=pageMotion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageMotion.d.ts","sourceRoot":"","sources":["../../../src/flow/pageMotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAIhE,0DAA0D;AAC1D,MAAM,MAAM,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;AAE9B;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,CAAA;AAEzC,eAAO,MAAM,aAAa,MAAM,CAAA;AAChC,eAAO,MAAM,iBAAiB,QAAQ,CAAA;AACtC,eAAO,MAAM,cAAc,MAAM,CAAA;AACjC,eAAO,MAAM,cAAc,KAAK,CAAA;AAChC,+EAA+E;AAC/E,eAAO,MAAM,YAAY;;;;CAIxB,CAAA;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU;;;;EAI5C;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,CAAA;IACT,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,oEAAoE;AACpE,wBAAgB,WAAW,CACzB,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,MAAM,GACZ,QAAQ,CAQV;AAED,+EAA+E;AAC/E,wBAAgB,aAAa,CAC3B,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,MAAM,GACZ,QAAQ,CAQV;AAED,wBAAgB,eAAe,CAC7B,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,MAAM,wDASd"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type SharedValue } from 'react-native-reanimated';
|
|
2
|
+
import type { Direction } from './pageMotion';
|
|
3
|
+
/**
|
|
4
|
+
* The turn a page takes part in: the direction it arrives by, and the one it
|
|
5
|
+
* will leave by. The latter is unknowable until the turn that removes the page
|
|
6
|
+
* happens, so it is read on the UI thread as the page goes; a page whose
|
|
7
|
+
* departure is fixed carries a plain direction instead.
|
|
8
|
+
*/
|
|
9
|
+
export interface PageTurn {
|
|
10
|
+
enter: Direction;
|
|
11
|
+
exit: Direction | SharedValue<Direction>;
|
|
12
|
+
/** False until the first turn away from the page the flow opened on. */
|
|
13
|
+
moved: boolean;
|
|
14
|
+
}
|
|
15
|
+
/** The page a flow opens on and returns to: covered by a turn forward, uncovered by a return. */
|
|
16
|
+
export declare const OPENING_PAGE: PageTurn;
|
|
17
|
+
export interface PageStack {
|
|
18
|
+
keys: readonly string[];
|
|
19
|
+
direction: Direction;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Moving to `key`: a key on the stack is returned to, and everything above it
|
|
23
|
+
* is dropped; a new one is pushed. The same key again is no turn.
|
|
24
|
+
*/
|
|
25
|
+
export declare function turnTo(stack: PageStack, key: string): PageStack;
|
|
26
|
+
/** The turn that brought the page named `key` up, judged against the pages visited before it. */
|
|
27
|
+
export declare function usePageTurn(key: string): PageTurn;
|
|
28
|
+
//# sourceMappingURL=pageTurn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageTurn.d.ts","sourceRoot":"","sources":["../../../src/flow/pageTurn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAE1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C;;;;;GAKG;AACH,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,SAAS,CAAA;IAChB,IAAI,EAAE,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC,CAAA;IACxC,wEAAwE;IACxE,KAAK,EAAE,OAAO,CAAA;CACf;AAED,iGAAiG;AACjG,eAAO,MAAM,YAAY,EAAE,QAA8C,CAAA;AAEzE,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;CACrB;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAS/D;AAID,iGAAiG;AACjG,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAajD"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
export type SheetDetent = number | `${number}%`;
|
|
1
2
|
/**
|
|
2
3
|
* Sizing props for a `BottomSheetModal`; `topInset` stays with the caller. A
|
|
3
4
|
* gorhom scrollable reports only its own height, so a screen with one can't be
|
|
4
|
-
* measured — it takes
|
|
5
|
+
* measured — it takes the fixed `detent` and sizes itself.
|
|
5
6
|
*/
|
|
6
|
-
export declare function sheetSizing({
|
|
7
|
-
|
|
7
|
+
export declare function sheetSizing({ detent }: {
|
|
8
|
+
detent?: SheetDetent;
|
|
8
9
|
}): {
|
|
9
10
|
enableDynamicSizing: boolean;
|
|
10
|
-
snapPoints
|
|
11
|
+
snapPoints?: undefined;
|
|
11
12
|
} | {
|
|
12
13
|
enableDynamicSizing: boolean;
|
|
13
|
-
snapPoints
|
|
14
|
+
snapPoints: SheetDetent[];
|
|
14
15
|
};
|
|
15
16
|
/**
|
|
16
17
|
* `focusHook` that keeps `BottomSheetView`'s measuring but drops its
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheetSizing.d.ts","sourceRoot":"","sources":["../../../src/flow/sheetSizing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sheetSizing.d.ts","sourceRoot":"","sources":["../../../src/flow/sheetSizing.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,GAAG,MAAM,GAAG,CAAA;AAK/C;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAA;CAAE;;;;;;EAU/D;AAID;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,IAAI,QAE5D"}
|
|
@@ -68,6 +68,11 @@ export interface WithdrawalFlowConfig {
|
|
|
68
68
|
* source — `sourceToken` is then the only option and no picker is shown.
|
|
69
69
|
*/
|
|
70
70
|
sourceTokens?: WithdrawalSourceTokenOption[];
|
|
71
|
+
/**
|
|
72
|
+
* Currency for fiat entry on the crypto amount screen. Defaults to USD.
|
|
73
|
+
* Users can switch between this currency and source-token units.
|
|
74
|
+
*/
|
|
75
|
+
displayCurrency?: 'USD' | 'EUR';
|
|
71
76
|
/**
|
|
72
77
|
* Crypto rail: spendable balance of a source token, in that token's units.
|
|
73
78
|
* The integrator is authoritative — it knows about locks, pending orders and
|
|
@@ -84,13 +89,21 @@ export interface WithdrawalFlowConfig {
|
|
|
84
89
|
* not base units. Takes priority over {@link getMinWithdrawalUSD}.
|
|
85
90
|
*/
|
|
86
91
|
getMinWithdrawalAmount?: (params: WithdrawalSourceTokenParams) => number;
|
|
87
|
-
/** Crypto rail: maximum withdrawal in USD. Unlimited when omitted. */
|
|
88
|
-
getMaxWithdrawalUSD?: (params: WithdrawalSourceTokenParams) => number;
|
|
89
92
|
/**
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
+
* Fiat-denominated maximum for the selected source token. Takes priority over
|
|
94
|
+
* {@link getMaxWithdrawalUSD}. Return undefined to use the legacy USD maximum
|
|
95
|
+
* for this source, or no monetary maximum if that callback is also absent.
|
|
93
96
|
*/
|
|
97
|
+
getMaxWithdrawalFiat?: (params: WithdrawalSourceTokenParams) => {
|
|
98
|
+
amount: number;
|
|
99
|
+
currency: string;
|
|
100
|
+
} | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* Crypto rail: maximum withdrawal in USD. Used unless
|
|
103
|
+
* {@link getMaxWithdrawalFiat} is configured; unlimited when omitted.
|
|
104
|
+
*/
|
|
105
|
+
getMaxWithdrawalUSD?: (params: WithdrawalSourceTokenParams) => number;
|
|
106
|
+
/** Maximum in source-token units. Takes priority over fiat and USD maximums. */
|
|
94
107
|
getMaxWithdrawalAmount?: (params: WithdrawalSourceTokenParams) => number;
|
|
95
108
|
/** Crypto rail: token symbol to preselect as the destination. */
|
|
96
109
|
defaultReceiveToken?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withdrawalFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/withdrawalFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC;;;;GAIG;AACH;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,MAAM,EAAE,oBAAoB,CAAA;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,qDAAqD;IACrD,MAAM,EAAE,MAAM,CAAA;IACd,sEAAsE;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,eAAe,CAAA;IACtB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAA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AM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAA;IACzD;;;;;;;OAOG;IACH,qBAAqB,CAAC,EAAE,CACtB,OAAO,EAAE,MAAM,EACf,oBAAoB,EAAE,MAAM,KACzB,IAAI,CAAA;IACT;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC9C,wEAAwE;IACxE,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CACzD"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
/** How far short of its parent's head a drawer opened from another drawer stops, so both heads stay in view. */
|
|
2
|
+
export declare const NESTED_DRAWER_INSET = 48;
|
|
3
|
+
/** The height of the drawer the subtree is drawn in; `undefined` outside one. */
|
|
4
|
+
export declare const DrawerFrame: import("react").Context<number | undefined>;
|
|
1
5
|
/**
|
|
2
|
-
* Fills a nested sheet
|
|
3
|
-
*
|
|
4
|
-
* that cap (`topInset={0}`) and takes the whole window
|
|
6
|
+
* Fills a nested sheet: the drawer's own height, which is also the cap its
|
|
7
|
+
* `BottomSheetModal` takes, so the screen and the sheet can't drift apart. A
|
|
8
|
+
* `FlowSheet` step waives that cap (`topInset={0}`) and takes the whole window
|
|
9
|
+
* instead.
|
|
5
10
|
*/
|
|
6
11
|
export declare function useNestedSheetHeight(): number;
|
|
12
|
+
/** What a full drawer opened from here stands at: the window below the status bar, or its parent drawer less the inset. */
|
|
13
|
+
export declare function useDrawerHeight(): number;
|
|
7
14
|
/**
|
|
8
15
|
* Fills a `FlowSheet` step, which waives that cap (`topInset={0}`) and spans
|
|
9
16
|
* the whole window — so the step owes the inset its sheet no longer pays.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNestedSheetHeight.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNestedSheetHeight.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useNestedSheetHeight.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNestedSheetHeight.ts"],"names":[],"mappings":"AAIA,gHAAgH;AAChH,eAAO,MAAM,mBAAmB,KAAK,CAAA;AAErC,iFAAiF;AACjF,eAAO,MAAM,WAAW,6CAA+C,CAAA;AAQvE;;;;;GAKG;AACH,wBAAgB,oBAAoB,WAInC;AAED,2HAA2H;AAC3H,wBAAgB,eAAe,WAI9B;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB;;;EAI/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSheetFade.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSheetFade.ts"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,OAAO,UAAO;;
|
|
1
|
+
{"version":3,"file":"useSheetFade.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSheetFade.ts"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,OAAO,UAAO;;GAqB1C"}
|
|
@@ -40,6 +40,11 @@ export interface DepositAmountScreenProps {
|
|
|
40
40
|
notice?: ReactNode;
|
|
41
41
|
/** Consent copy beneath the keypad, replacing attribution while required. */
|
|
42
42
|
disclosure?: ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* Holds the consent copy back until the action it describes is ready, so it
|
|
45
|
+
* takes over from the attribution with the fee and the button.
|
|
46
|
+
*/
|
|
47
|
+
disclosurePending?: boolean;
|
|
43
48
|
submitLabel: string;
|
|
44
49
|
canSubmit: boolean;
|
|
45
50
|
onSubmit: () => void;
|
|
@@ -59,5 +64,5 @@ export interface DepositAmountScreenProps {
|
|
|
59
64
|
* source's limit — answers with a side-to-side shake, a brief warning tint and
|
|
60
65
|
* a haptic. While `disabled`, the input controls themselves are non-interactive.
|
|
61
66
|
*/
|
|
62
|
-
export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, limitUsd, minLimitUsd, disabled, fee, feePending, onPressFee, feeAccessibilityLabel, methodBadge, notice, disclosure, submitLabel, canSubmit, onSubmit, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
|
|
67
|
+
export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, limitUsd, minLimitUsd, disabled, fee, feePending, onPressFee, feeAccessibilityLabel, methodBadge, notice, disclosure, disclosurePending, submitLabel, canSubmit, onSubmit, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
|
|
63
68
|
//# sourceMappingURL=DepositAmountScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;AAmB3D,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,kCAAkC,CAAA;AAiCzC,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAOhE;AAID,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,oDAAoD;IACpD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,uBAAuB,CAAA;IACxC,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK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O,CAAA;IAC3B,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,WAAW,EACX,QAAgB,EAChB,GAAG,EACH,UAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,MAAM,EACN,UAAU,EACV,iBAAyB,EACzB,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,eAAuB,GACxB,EAAE,wBAAwB,+BAgP1B"}
|
|
@@ -37,6 +37,9 @@ export interface WithdrawAddressScreenProps {
|
|
|
37
37
|
onSubmit: () => void;
|
|
38
38
|
/** An unrecoverable failure from the last attempt. */
|
|
39
39
|
executionErrorText?: string;
|
|
40
|
+
/** An amount invalidated after leaving the amount screen. */
|
|
41
|
+
amountErrorText?: string;
|
|
42
|
+
onEditAmount?: () => void;
|
|
40
43
|
onBack: () => void;
|
|
41
44
|
onClose: () => void;
|
|
42
45
|
}
|
|
@@ -44,5 +47,5 @@ export interface WithdrawAddressScreenProps {
|
|
|
44
47
|
* Step two of the crypto withdrawal: where the money goes, and what it arrives
|
|
45
48
|
* as. The amount was taken on the step before and is named in the title.
|
|
46
49
|
*/
|
|
47
|
-
export declare function WithdrawAddressScreen({ title, recipient, onChangeRecipient, isAddress, onPaste, isPasting, onUseConnected, errorText, warningText, destinationToken, onPressReceive, usdLabel, tokenLabel, onPressBreakdown, quoteErrorText, canSubmit, isBusy, isSubmitting, onSubmit, executionErrorText, onBack, onClose, }: WithdrawAddressScreenProps): import("react").JSX.Element;
|
|
50
|
+
export declare function WithdrawAddressScreen({ title, recipient, onChangeRecipient, isAddress, onPaste, isPasting, onUseConnected, errorText, warningText, destinationToken, onPressReceive, usdLabel, tokenLabel, onPressBreakdown, quoteErrorText, canSubmit, isBusy, isSubmitting, onSubmit, executionErrorText, amountErrorText, onEditAmount, onBack, onClose, }: WithdrawAddressScreenProps): import("react").JSX.Element;
|
|
48
51
|
//# sourceMappingURL=WithdrawAddressScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawAddressScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawAddressScreen.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AA6BnE,MAAM,WAAW,0BAA0B;IACzC,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAA;IACb,2BAA2B;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,2EAA2E;IAC3E,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,kDAAkD;IAClD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iEAAiE;IACjE,gBAAgB,EAAE,eAAe,GAAG,SAAS,CAAA;IAC7C,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,oEAAoE;IACpE,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,uEAAuE;IACvE,MAAM,EAAE,OAAO,CAAA;IACf,0EAA0E;IAC1E,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,SAAS,EACT,iBAAiB,EACjB,SAAS,EACT,OAAO,EACP,SAAS,EACT,cAAc,EACd,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,kBAAkB,EAClB,MAAM,EACN,OAAO,GACR,EAAE,0BAA0B,+
|
|
1
|
+
{"version":3,"file":"WithdrawAddressScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawAddressScreen.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AA6BnE,MAAM,WAAW,0BAA0B;IACzC,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAA;IACb,2BAA2B;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,2EAA2E;IAC3E,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,kDAAkD;IAClD,cAAc,CAAC,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the amount outright, in source-token units (Use Max). */
|
|
15
15
|
onChangeAmount: (amount: string) => void;
|
|
16
16
|
/**
|
|
17
|
-
* The number in the amount display, which the numpad edits —
|
|
18
|
-
* {@link
|
|
17
|
+
* The number in the amount display, which the numpad edits — fiat units when
|
|
18
|
+
* {@link inFiat}, else source-token units. Held by the caller so it survives
|
|
19
19
|
* this screen leaving the stack.
|
|
20
20
|
*/
|
|
21
21
|
input: string;
|
|
22
22
|
onChangeInput: (input: string) => void;
|
|
23
|
-
/** Whether the amount is being typed in
|
|
24
|
-
|
|
25
|
-
/** The amount in
|
|
26
|
-
|
|
23
|
+
/** Whether the amount is being typed in fiat units rather than token units. */
|
|
24
|
+
inFiat: boolean;
|
|
25
|
+
/** The amount in fiat units. `undefined` when nothing prices it. */
|
|
26
|
+
fiatLabel: string | undefined;
|
|
27
|
+
displayCurrency?: 'USD' | 'EUR';
|
|
27
28
|
/** Switches denomination. `undefined` drops the swap entirely. */
|
|
28
29
|
onSwapDenomination: (() => void) | undefined;
|
|
29
30
|
/** Fraction digits the source token carries; caps what the numpad accepts. */
|
|
30
31
|
sourceDecimals?: number;
|
|
31
|
-
/** Spendable balance in source-token units
|
|
32
|
+
/** Spendable balance in source-token units, displayed on the source card. */
|
|
32
33
|
balance?: string;
|
|
34
|
+
/** Pre-resolved source-token amount picked by Use Max. */
|
|
35
|
+
maxAmount?: string;
|
|
36
|
+
/** The amount exceeds the balance or a configured withdrawal ceiling. */
|
|
37
|
+
isAboveMaximum?: boolean;
|
|
38
|
+
statusText?: string;
|
|
39
|
+
onRetryMaximum?: () => void;
|
|
40
|
+
isMaximumLoading?: boolean;
|
|
33
41
|
/** What the withdrawal is drawn from. */
|
|
34
42
|
source: WithdrawAmountSource;
|
|
35
43
|
/** Opens the source picker. Omit when the host offers a single source. */
|
|
@@ -49,5 +57,5 @@ export interface WithdrawAmountScreenProps {
|
|
|
49
57
|
* The amount is driven by an in-app numpad rather than the system keyboard, so
|
|
50
58
|
* the sheet never has to move out from under it.
|
|
51
59
|
*/
|
|
52
|
-
export declare function WithdrawAmountScreen({ title, amount, onChangeAmount, input, onChangeInput,
|
|
60
|
+
export declare function WithdrawAmountScreen({ title, amount, onChangeAmount, input, onChangeInput, inFiat, fiatLabel, displayCurrency, onSwapDenomination, sourceDecimals, balance, maxAmount, isAboveMaximum, statusText, onRetryMaximum, isMaximumLoading, source, onPressSource, errorText, canContinue, onContinue, onBack, onClose, }: WithdrawAmountScreenProps): import("react").JSX.Element;
|
|
53
61
|
//# sourceMappingURL=WithdrawAmountScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawAmountScreen.tsx"],"names":[],"mappings":"AA6CA,MAAM,WAAW,oBAAoB;IACnC,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAA;IACb,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAA;IACd,iEAAiE;IACjE,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC
|
|
1
|
+
{"version":3,"file":"WithdrawAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawAmountScreen.tsx"],"names":[],"mappings":"AA6CA,MAAM,WAAW,oBAAoB;IACnC,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,mEAAmE;IACnE,OAAO,CA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N,cAAc,EACd,KAAK,EACL,aAAa,EACb,MAAM,EACN,SAAS,EACT,eAAuB,EACvB,kBAAkB,EAClB,cAAc,EACd,OAAO,EACP,SAAS,EACT,cAAsB,EACtB,UAAU,EACV,cAAc,EACd,gBAAwB,EACxB,MAAM,EACN,aAAa,EACb,SAAS,EACT,WAAW,EACX,UAAU,EACV,MAAM,EACN,OAAO,GACR,EAAE,yBAAyB,+BAiK3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawCryptoSteps.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoSteps.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,8BAA8B,CAAA;AAKrC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"WithdrawCryptoSteps.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoSteps.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,8BAA8B,CAAA;AAKrC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAQhE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAA;AAWtF;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,EACH,mBAAmB,EACnB,oBAA2B,EAC3B,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB,sEAAsE;IACtE,kBAAkB,EAAE,mBAAmB,CAAA;IACvC,WAAW,EAAE,CAAC,MAAM,EAAE;QACpB,oBAAoB,EAAE,oBAAoB,CAAA;QAC1C,WAAW,EAAE,MAAM,CAAA;QACnB,2EAA2E;QAC3E,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;QAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;KAC/B,KAAK,IAAI,CAAA;CACX,+BAuOA"}
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyHpD"}
|