@micromerce/formbuilder-react 1.0.1009 → 1.0.1010

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.
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The vat-id subtype (COP-4587), the editor's copy of the server check (VatIds in form-xhtmlform):
3
+ * a VAT or business tax number with its country prefix — the EU prefix (DE, EL or GR for Greece, XI
4
+ * for Northern Ireland), CHE for Switzerland, otherwise the ISO 3166 code (AU51824753556). Separators
5
+ * and case do not matter. Check digits for EU-27, XI, GB, CH, NO, AU, NZ, CA, IN, BR, MX (shape and
6
+ * date), JP, CN, SG, TR, ported from python-stdnum 2.1; US and ZA by shape; any other ISO country 2 to
7
+ * 20 letters or digits. vatId.test.ts runs the same vectors as the server (vat-id-vectors.json).
8
+ */
9
+ export type VatIdProblem = "format" | "country" | "checksum";
10
+ /** The value without separators, upper case — how the editor stores it. */
11
+ export declare const compactVatId: (value: string) => string;
12
+ /** Why a value is no valid VAT number, or undefined when it is one. */
13
+ export declare const vatIdProblem: (value: string) => VatIdProblem | undefined;