@odus/checkout 1.8.0 → 1.8.2
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/dist/checkout.es.js +166 -145
- package/dist/components/checkout/card-elements/CardCvvElement.d.ts.map +1 -1
- package/dist/components/checkout/card-elements/CardNumberElement.d.ts.map +1 -1
- package/dist/components/checkout/form/AddressSection.d.ts +10 -0
- package/dist/components/checkout/form/AddressSection.d.ts.map +1 -1
- package/dist/components/checkout/form/CardSection.d.ts +14 -1
- package/dist/components/checkout/form/CardSection.d.ts.map +1 -1
- package/dist/components/checkout/form/CardholderSection.d.ts.map +1 -1
- package/dist/components/checkout/form/FormComponentManager.d.ts +1 -0
- package/dist/components/checkout/form/FormComponentManager.d.ts.map +1 -1
- package/dist/components/checkout/form/PaymentMethods.d.ts.map +1 -1
- package/dist/components/common/HelperText.d.ts +2 -0
- package/dist/components/common/HelperText.d.ts.map +1 -1
- package/dist/components/common/Input.d.ts +14 -2
- package/dist/components/common/Input.d.ts.map +1 -1
- package/dist/components/common/Select.d.ts +7 -0
- package/dist/components/common/Select.d.ts.map +1 -1
- package/dist/elements/ApplePayElement.d.ts.map +1 -1
- package/dist/elements/CardElement.d.ts +1 -0
- package/dist/elements/CardElement.d.ts.map +1 -1
- package/dist/elements/card/VgsCardAdapter.d.ts +6 -0
- package/dist/elements/card/VgsCardAdapter.d.ts.map +1 -1
- package/dist/elements.es.js +184 -173
- package/dist/index.css +1 -1
- package/dist/locales/cs.json.d.ts +1 -1
- package/dist/locales/de.json.d.ts +1 -1
- package/dist/locales/en.json.d.ts +1 -1
- package/dist/locales/es.json.d.ts +1 -1
- package/dist/locales/fr.json.d.ts +1 -1
- package/dist/locales/it.json.d.ts +1 -1
- package/dist/locales/nl.json.d.ts +1 -1
- package/dist/locales/pl.json.d.ts +1 -1
- package/dist/locales/pt.json.d.ts +1 -1
- package/dist/locales/sk.json.d.ts +1 -1
- package/dist/locales/tr.json.d.ts +1 -1
- package/dist/phone.js +29 -29
- package/dist/shared.js +169 -151
- package/dist/utils/country/isCountryAllowed.util.d.ts +17 -0
- package/dist/utils/country/isCountryAllowed.util.d.ts.map +1 -0
- package/dist/utils/helpers/vgsFieldMetrics.util.d.ts +9 -0
- package/dist/utils/helpers/vgsFieldMetrics.util.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decides whether a shopper's country satisfies a per-payment-method
|
|
3
|
+
* `countries` allow-list.
|
|
4
|
+
*
|
|
5
|
+
* Shared by every gate that reads one, because the two original call sites
|
|
6
|
+
* disagreed: the Apple Pay element upper-cased both sides while the drop-in
|
|
7
|
+
* payment method filter compared raw strings, so `countries: ['us']` rendered
|
|
8
|
+
* Apple Pay and hid PayPal from the same configuration (#4187). The list is
|
|
9
|
+
* merchant-supplied and documented only as "ISO country codes", so the case is
|
|
10
|
+
* not ours to dictate — normalise instead of trusting it.
|
|
11
|
+
*
|
|
12
|
+
* An absent or empty list means "no restriction". A list that is present but
|
|
13
|
+
* matches nothing is a restriction the merchant asked for, so an unknown
|
|
14
|
+
* `countryCode` fails it rather than being waved through.
|
|
15
|
+
*/
|
|
16
|
+
export declare const isCountryAllowed: (allowedCountries: string[] | undefined, countryCode: string | undefined) => boolean;
|
|
17
|
+
//# sourceMappingURL=isCountryAllowed.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isCountryAllowed.util.d.ts","sourceRoot":"","sources":["../../../src/utils/country/isCountryAllowed.util.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,GAC3B,kBAAkB,MAAM,EAAE,GAAG,SAAS,EACtC,aAAa,MAAM,GAAG,SAAS,KAC9B,OAcF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VGS renders its inputs inside iframes we cannot measure, so every wrapper and
|
|
3
|
+
* loading skeleton has to predict the field height from the same inputs VGS is
|
|
4
|
+
* given. Keeping that arithmetic in one place is what stops the skeleton and the
|
|
5
|
+
* mounted field from disagreeing and shifting the layout mid-load.
|
|
6
|
+
*/
|
|
7
|
+
export declare const DEFAULT_VGS_FIELD_PADDING = "8px 12px";
|
|
8
|
+
export declare function computeVgsFieldHeight(padding: string, fontSize: number): string;
|
|
9
|
+
//# sourceMappingURL=vgsFieldMetrics.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vgsFieldMetrics.util.d.ts","sourceRoot":"","sources":["../../../src/utils/helpers/vgsFieldMetrics.util.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,aAAa,CAAC;AAUpD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAOtE"}
|