/** * Minimal libphonenumber-js polyfill * * This module provides a zero-dependency replacement for the subset of * `libphonenumber-js` used by `vega-input-phone-number`. * * Exported API surface: * - getCountryCallingCode(country) * - getCountries() * - parseIncompletePhoneNumber(text) * - formatIncompletePhoneNumber(number, country?) * - parsePhoneNumber(text, optionsOrCountry?) * - PhoneNumber (class) * - AsYouType (class) * - PARSE_ERROR_NOT_A_NUMBER (constant) * - PARSE_ERROR_INVALID_COUNTRY (constant) */ export { getCountryCallingCode, getCountries } from './metadata'; export { parseIncompletePhoneNumber, parsePhoneNumber } from './parse-phone-number'; export { formatIncompletePhoneNumber, AsYouType } from './as-you-type'; export { PhoneNumber } from './phone-number'; export { PARSE_ERROR_NOT_A_NUMBER, PARSE_ERROR_INVALID_COUNTRY } from './types';