@funkit/connect-rn 12.4.0 → 12.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +66 -0
- package/LICENSE +4 -0
- package/dist/{chunk-LJHYIZUN.js → chunk-3GZVX2F5.js} +2 -2
- package/dist/{chunk-ACECDE3B.js → chunk-P7MUPGEE.js} +9 -26
- package/dist/chunk-P7MUPGEE.js.map +7 -0
- package/dist/{chunk-DDFBGRBX.js → chunk-P7NQCIGY.js} +189 -125
- package/dist/chunk-P7NQCIGY.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.js +10018 -8930
- package/dist/index.js.map +4 -4
- package/dist/preview.js +69 -16
- package/dist/preview.js.map +2 -2
- package/dist/src/fiat/common/FiatTermsNotice.d.ts +1 -1
- package/dist/src/fiat/common/FiatTermsNotice.d.ts.map +1 -1
- package/dist/src/fiat/contact/FiatContactScreen.d.ts +2 -2
- package/dist/src/fiat/contact/FiatContactScreen.d.ts.map +1 -1
- package/dist/src/fiat/contact/FiatPhoneField.d.ts +1 -1
- package/dist/src/fiat/contact/FiatPhoneField.d.ts.map +1 -1
- package/dist/src/fiat/contact/normalizedPhoneEdit.d.ts +7 -0
- package/dist/src/fiat/contact/normalizedPhoneEdit.d.ts.map +1 -0
- package/dist/src/fiat/country/FiatCountrySheet.d.ts +1 -1
- package/dist/src/fiat/country/FiatCountrySheet.d.ts.map +1 -1
- package/dist/src/fiat/country/countrySections.d.ts +1 -1
- package/dist/src/fiat/country/countrySections.d.ts.map +1 -1
- package/dist/src/fiat/entry/useEntryQuote.d.ts.map +1 -1
- package/dist/src/fiat/entry/useFiatDirectDelivery.d.ts +5 -0
- package/dist/src/fiat/entry/useFiatDirectDelivery.d.ts.map +1 -1
- package/dist/src/fiat/form/FiatFormScreen.d.ts +3 -1
- package/dist/src/fiat/form/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/form/formLayout.d.ts +5 -1
- package/dist/src/fiat/form/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/kyc/FiatKycFieldControl.d.ts.map +1 -1
- package/dist/src/fiat/kyc/FiatKycPhoneField.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFieldValidators.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormState.d.ts +0 -8
- package/dist/src/fiat/kyc/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/payment/failoverKind.d.ts +2 -1
- package/dist/src/fiat/payment/failoverKind.d.ts.map +1 -1
- package/dist/src/fiat/payment/insufficientFundsAmount.d.ts +15 -5
- package/dist/src/fiat/payment/insufficientFundsAmount.d.ts.map +1 -1
- package/dist/src/fiat/payment/methodName.d.ts.map +1 -1
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts +2 -0
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts.map +1 -1
- package/dist/src/fiat/payment/useHandoffTerms.d.ts +12 -0
- package/dist/src/fiat/payment/useHandoffTerms.d.ts.map +1 -0
- package/dist/src/fiat/processing/DepositCardSheet.d.ts +25 -5
- package/dist/src/fiat/processing/DepositCardSheet.d.ts.map +1 -1
- package/dist/src/fiat/processing/FailoverPrompt.d.ts +9 -0
- package/dist/src/fiat/processing/FailoverPrompt.d.ts.map +1 -1
- package/dist/src/fiat/processing/cardSurface.d.ts +16 -1
- package/dist/src/fiat/processing/cardSurface.d.ts.map +1 -1
- package/dist/src/fiat/processing/useBankTransferCardSheet.d.ts +32 -0
- package/dist/src/fiat/processing/useBankTransferCardSheet.d.ts.map +1 -0
- package/dist/src/fiat/providerFlow.d.ts +55 -3
- package/dist/src/fiat/providerFlow.d.ts.map +1 -1
- package/dist/src/fiat/providers/adapter.d.ts +1 -0
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/alchemypay/useAlchemyPayCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/bankTransfer/detailsLabels.d.ts +10 -0
- package/dist/src/fiat/providers/bankTransfer/detailsLabels.d.ts.map +1 -0
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts +11 -1
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts.map +1 -1
- package/dist/src/fiat/providers/checkout/useRoutingReadyResponse.d.ts +17 -0
- package/dist/src/fiat/providers/checkout/useRoutingReadyResponse.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/coinbaseClosedOrderWatch.d.ts +13 -0
- package/dist/src/fiat/providers/coinbase/next/coinbaseClosedOrderWatch.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/next/index.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts +8 -3
- package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/checkoutScreens.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/kycChallenge.d.ts +3 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/kycChallenge.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutCalls.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutModel.d.ts +2 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutModel.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/useCheckoutCalls.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheckoutModel.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/Checkout.d.ts +0 -2
- package/dist/src/fiat/providers/stripe/next/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeCheckoutCalls.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeKycForm.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeOrderSlot.d.ts +3 -1
- package/dist/src/fiat/providers/stripe/next/useStripeOrderSlot.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripePayment.d.ts +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts +3 -1
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/transak/next/useTransakCheckout.d.ts.map +1 -1
- package/dist/src/fiat/quote/quoteRouting.d.ts +6 -0
- package/dist/src/fiat/quote/quoteRouting.d.ts.map +1 -1
- package/dist/src/fiat/quote/useRefreshCheckoutRouting.d.ts +3 -0
- package/dist/src/fiat/quote/useRefreshCheckoutRouting.d.ts.map +1 -0
- package/dist/src/fiat/settlement/closedDepositWatch.d.ts +28 -0
- package/dist/src/fiat/settlement/closedDepositWatch.d.ts.map +1 -0
- package/dist/src/fiat/settlement/depositSettlement.d.ts.map +1 -1
- package/dist/src/fiat/settlement/useDepositSettlement.d.ts +9 -1
- package/dist/src/fiat/settlement/useDepositSettlement.d.ts.map +1 -1
- package/dist/src/fiat/useProviderCheckout.d.ts +11 -3
- package/dist/src/fiat/useProviderCheckout.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DepositReceivedToast.d.ts +17 -0
- package/dist/src/flow/DepositReceivedToast.d.ts.map +1 -0
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowPage.d.ts +5 -3
- package/dist/src/flow/FlowPage.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/TakeoverPages.d.ts +16 -5
- package/dist/src/flow/TakeoverPages.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +7 -0
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/depositMethods.d.ts.map +1 -1
- package/dist/src/flow/depositRailCopy.d.ts +14 -1
- package/dist/src/flow/depositRailCopy.d.ts.map +1 -1
- package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -1
- package/dist/src/flow/pageMotion.d.ts +60 -7
- package/dist/src/flow/pageMotion.d.ts.map +1 -1
- package/dist/src/flow/pageTurn.d.ts +16 -15
- package/dist/src/flow/pageTurn.d.ts.map +1 -1
- package/dist/src/flow/quickAmounts.d.ts.map +1 -1
- package/dist/src/flow/renderFiatFlowScreen.d.ts +4 -2
- package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
- package/dist/src/flow/swappedDrawerPage.d.ts +3 -1
- package/dist/src/flow/swappedDrawerPage.d.ts.map +1 -1
- package/dist/src/flow/swipeBack.d.ts +2 -1
- package/dist/src/flow/swipeBack.d.ts.map +1 -1
- package/dist/src/flow/useDepositNotice.d.ts +15 -0
- package/dist/src/flow/useDepositNotice.d.ts.map +1 -0
- package/dist/src/flow/useFeeDetails.d.ts +4 -1
- package/dist/src/flow/useFeeDetails.d.ts.map +1 -1
- package/dist/src/flow/useRegionAmount.d.ts +3 -1
- package/dist/src/flow/useRegionAmount.d.ts.map +1 -1
- package/dist/src/flow/walletMethods.d.ts +3 -0
- package/dist/src/flow/walletMethods.d.ts.map +1 -1
- package/dist/src/hooks/track/FlowAnalyticsLifetime.d.ts +7 -0
- package/dist/src/hooks/track/FlowAnalyticsLifetime.d.ts.map +1 -0
- package/dist/src/hooks/track/StepViewProvider.d.ts +3 -1
- package/dist/src/hooks/track/StepViewProvider.d.ts.map +1 -1
- package/dist/src/hooks/track/events.d.ts +27 -6
- package/dist/src/hooks/track/events.d.ts.map +1 -1
- package/dist/src/hooks/track/swappedErrorCode.d.ts +5 -0
- package/dist/src/hooks/track/swappedErrorCode.d.ts.map +1 -0
- package/dist/src/hooks/track/useModalCloseAnalytics.d.ts +11 -0
- package/dist/src/hooks/track/useModalCloseAnalytics.d.ts.map +1 -0
- package/dist/src/hooks/track/usePaymentButtonEvents.d.ts +1 -0
- package/dist/src/hooks/track/usePaymentButtonEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useSwappedDepositOutcomes.d.ts +10 -0
- package/dist/src/hooks/track/useSwappedDepositOutcomes.d.ts.map +1 -0
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts +15 -0
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackV2.d.ts +2 -0
- package/dist/src/hooks/track/useTrackV2.d.ts.map +1 -1
- package/dist/src/preview/fixtures/stripeCheckout.d.ts +1 -0
- package/dist/src/preview/fixtures/stripeCheckout.d.ts.map +1 -1
- package/dist/src/preview/flowPreview.d.ts +2 -0
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/scenarioCatalog.d.ts +19 -1
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts +2 -1
- package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreen.d.ts +3 -1
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
- package/package.json +7 -6
- package/dist/chunk-ACECDE3B.js.map +0 -7
- package/dist/chunk-DDFBGRBX.js.map +0 -7
- package/dist/src/fiat/contact/phoneCountries.d.ts +0 -61
- package/dist/src/fiat/contact/phoneCountries.d.ts.map +0 -1
- package/dist/src/fiat/contact/phoneDraft.d.ts +0 -37
- package/dist/src/fiat/contact/phoneDraft.d.ts.map +0 -1
- package/dist/src/fiat/country/postalCodeCountries.d.ts +0 -16
- package/dist/src/fiat/country/postalCodeCountries.d.ts.map +0 -1
- package/dist/src/fiat/country/subdivisions.d.ts +0 -21
- package/dist/src/fiat/country/subdivisions.d.ts.map +0 -1
- /package/dist/{chunk-LJHYIZUN.js.map → chunk-3GZVX2F5.js.map} +0 -0
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Every country a phone number can be issued in, with the calling code it is
|
|
3
|
-
* reached on and the trunk digit it is dialled with at home.
|
|
4
|
-
*
|
|
5
|
-
* The whole ITU list, not the countries whose currency the rail quotes: where
|
|
6
|
-
* a buyer's money comes from says nothing about where their SIM does, and a
|
|
7
|
-
* shorter list makes a valid number unsendable.
|
|
8
|
-
*
|
|
9
|
-
* Generated from libphonenumber's metadata (v4, via libphonenumber-js 1.13.6)
|
|
10
|
-
* and named by `Intl.DisplayNames`. Calling codes and trunk prefixes are ITU
|
|
11
|
-
* and national-regulator facts; regenerate rather than hand-edit a row.
|
|
12
|
-
*/
|
|
13
|
-
export interface PhoneCountry {
|
|
14
|
-
/** ISO 3166-1 alpha-2, which is also what the geo lookup answers. */
|
|
15
|
-
alpha2: string;
|
|
16
|
-
/** E.164 calling code, `+` included. */
|
|
17
|
-
dialCode: string;
|
|
18
|
-
/** English name, used when the platform can name no other. */
|
|
19
|
-
name: string;
|
|
20
|
-
/**
|
|
21
|
-
* The digit a national number is dialled with at home and never carries
|
|
22
|
-
* internationally — `0` in most of Europe, `1` in the NANP, `8` in Russia.
|
|
23
|
-
* Absent where the country has none: an Italian number keeps its zero.
|
|
24
|
-
*/
|
|
25
|
-
trunkPrefix?: string;
|
|
26
|
-
}
|
|
27
|
-
/** Ordered by English name, which is the order the list draws them in. */
|
|
28
|
-
export declare const PHONE_COUNTRIES: readonly PhoneCountry[];
|
|
29
|
-
export declare function phoneCountry(alpha2: string | undefined): PhoneCountry | undefined;
|
|
30
|
-
/** The country the field opens on, from wherever the buyer is. */
|
|
31
|
-
export declare function defaultPhoneCountry(alpha2: string | undefined): PhoneCountry;
|
|
32
|
-
/**
|
|
33
|
-
* `\u{1F1E6}\u{1F1FA}` from `AU`: alpha-2 letters map onto the
|
|
34
|
-
* regional-indicator block, so the flag needs no asset and no per-country
|
|
35
|
-
* entry.
|
|
36
|
-
*/
|
|
37
|
-
export declare function countryFlag(alpha2: string): string;
|
|
38
|
-
/**
|
|
39
|
-
* The country's name in the app's language.
|
|
40
|
-
*
|
|
41
|
-
* Read off the platform rather than the translation files: 245 countries in 8
|
|
42
|
-
* locales is copy nobody would review, and every runtime that ships ICU
|
|
43
|
-
* already knows them. The table's English is the fallback where it does not.
|
|
44
|
-
*/
|
|
45
|
-
export declare function countryName(country: PhoneCountry, locale: string): string;
|
|
46
|
-
/**
|
|
47
|
-
* The wire value: the code and the digits typed under it, with nothing
|
|
48
|
-
* between. An unanswered field stays empty rather than becoming a bare code —
|
|
49
|
-
* `+61` alone is not an incomplete number, it is no number.
|
|
50
|
-
*/
|
|
51
|
-
export declare function toE164(country: PhoneCountry, national: string): string;
|
|
52
|
-
/** The code a number opens with, read off digits carrying no `+`. */
|
|
53
|
-
export declare function leadingDialCode(digits: string): string | undefined;
|
|
54
|
-
/** The chip keeps a code it already carries; else the code's own country. */
|
|
55
|
-
export declare function countryOnDialCode(code: string, preferred: PhoneCountry): PhoneCountry;
|
|
56
|
-
/**
|
|
57
|
-
* What the box shows: the number less any code the table knows, not only the
|
|
58
|
-
* chip's — autofill hands the contact over with its own.
|
|
59
|
-
*/
|
|
60
|
-
export declare function nationalPart(value: string): string;
|
|
61
|
-
//# sourceMappingURL=phoneCountries.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"phoneCountries.d.ts","sourceRoot":"","sources":["../../../../src/fiat/contact/phoneCountries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,YAAY;IAC3B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;IACd,wCAAwC;IACxC,QAAQ,EAAE,MAAM,CAAA;IAChB,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AA6PD,0EAA0E;AAC1E,eAAO,MAAM,eAAe,EAAE,SAAS,YAAY,EAOlD,CAAA;AAKD,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB,YAAY,GAAG,SAAS,CAM1B;AAED,kEAAkE;AAClE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,CAE5E;AAMD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAMlD;AAID;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEzE;AAqBD;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGtE;AAuBD,qEAAqE;AACrE,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAElE;AAuBD,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,YAAY,GACtB,YAAY,CASd;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAOlD"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { type PhoneCountry } from './phoneCountries';
|
|
2
|
-
/**
|
|
3
|
-
* The number as the country writes it, `(408) 460-6031` for the US, grouped as
|
|
4
|
-
* it is typed. A pasted number keeps its own punctuation past the dial code, so
|
|
5
|
-
* the groups are cut from the digits rather than the raw characters.
|
|
6
|
-
*/
|
|
7
|
-
export declare function formatPhoneDraft(country: PhoneCountry, value: string): string;
|
|
8
|
-
/**
|
|
9
|
-
* The digits, less any past the longest number the country issues: a digit that
|
|
10
|
-
* cannot belong to the number is not taken, as the platforms' own fields do.
|
|
11
|
-
*/
|
|
12
|
-
export declare function capPhoneDigits(country: PhoneCountry, national: string, previous?: string): string;
|
|
13
|
-
/** Removing a formatting character must still let Backspace remove a digit. */
|
|
14
|
-
export declare function editPhoneDraft(previous: string, next: string): string;
|
|
15
|
-
/** A number split where its calling code ends. */
|
|
16
|
-
export interface DialledPhone {
|
|
17
|
-
country: PhoneCountry;
|
|
18
|
-
national: string;
|
|
19
|
-
}
|
|
20
|
-
/** A pasted international number moves its prefix into the country selector. */
|
|
21
|
-
export declare function pastedPhone(value: string): DialledPhone | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* A number arriving whole, with the code it carries moved to the chip:
|
|
24
|
-
* `pastedPhone` moves one only out of a number libphonenumber calls valid.
|
|
25
|
-
*/
|
|
26
|
-
export declare function insertedPhone(previous: string, next: string, selected: PhoneCountry): DialledPhone | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* `insertedPhone`, logged when the number moves the chip — the only trace of
|
|
29
|
-
* an autofill that disagreed with the buyer's region. No digits are logged.
|
|
30
|
-
*/
|
|
31
|
-
export declare function normalizedPhoneEdit(previous: string, next: string, chip: PhoneCountry): DialledPhone | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Whether an edit brought the number in one go rather than a key at a time.
|
|
34
|
-
* Counts digits, so spaces, dashes and brackets never read as a paste.
|
|
35
|
-
*/
|
|
36
|
-
export declare function arrivedWhole(previous: string, next: string): boolean;
|
|
37
|
-
//# sourceMappingURL=phoneDraft.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"phoneDraft.d.ts","sourceRoot":"","sources":["../../../../src/fiat/contact/phoneDraft.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,KAAK,YAAY,EAKlB,MAAM,kBAAkB,CAAA;AAEzB;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAQ7E;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,MAAM,EAChB,QAAQ,SAAK,GACZ,MAAM,CAgBR;AAKD,+EAA+E;AAC/E,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAiBrE;AAWD,kDAAkD;AAClD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,YAAY,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,gFAAgF;AAChF,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAanE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,YAAY,GACrB,YAAY,GAAG,SAAS,CAmB1B;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,YAAY,GACjB,YAAY,GAAG,SAAS,CAS1B;AAyDD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAEpE"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* How a country writes its postal codes, where Google's address metadata
|
|
3
|
-
* (libaddressinput, chromium-i18n.appspot.com/ssl-address/data) and
|
|
4
|
-
* `postcode-validator` agree. Anywhere they disagree is on neither list, so
|
|
5
|
-
* the keyboard stays letters (`postalCodeCountries.drift.test.ts`).
|
|
6
|
-
*
|
|
7
|
-
* - `digits`: codes are written as digits alone. The US ZIP+4 extension and
|
|
8
|
-
* FR's space are optional, and neither is how the post office writes them.
|
|
9
|
-
* - `separated`: digits the country writes split by a hyphen or space
|
|
10
|
-
* (`12345-678`, `123 45`), which a number pad cannot type.
|
|
11
|
-
* - A country whose codes carry any letter (GB, CA, NL, IE, AR, MT, LV…), or
|
|
12
|
-
* that has no postal code, is on neither list.
|
|
13
|
-
*/
|
|
14
|
-
export type PostalCodeForm = 'digits' | 'separated';
|
|
15
|
-
export declare function postalCodeForm(alpha2: string | undefined): PostalCodeForm | undefined;
|
|
16
|
-
//# sourceMappingURL=postalCodeCountries.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postalCodeCountries.d.ts","sourceRoot":"","sources":["../../../../src/fiat/country/postalCodeCountries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,WAAW,CAAA;AAkBnD,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB,cAAc,GAAG,SAAS,CAS5B"}
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
/**
|
|
16
|
-
* Whether a picked state survives a move of the residence country.
|
|
17
|
-
* - Kept only where the new country lists the same code; anywhere else the
|
|
18
|
-
* picker would draw it blank while the store still posted it.
|
|
19
|
-
*/
|
|
20
|
-
export declare function keepsRegion(region: string, alpha2: string | undefined): boolean;
|
|
21
|
-
//# sourceMappingURL=subdivisions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subdivisions.d.ts","sourceRoot":"","sources":["../../../../src/fiat/country/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;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB,OAAO,CAMT"}
|
|
File without changes
|