intl-tel-input 25.10.7 → 25.10.9

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.
Files changed (35) hide show
  1. package/README.md +5 -5
  2. package/angular/README.md +1 -1
  3. package/angular/build/IntlTelInput.js +386 -320
  4. package/angular/build/IntlTelInputWithUtils.js +437 -342
  5. package/angular/build/types/intl-tel-input/angular.d.ts +2 -1
  6. package/angular/build/types/intl-tel-input/angularWithUtils.d.ts +2 -1
  7. package/angular/build/types/intl-tel-input/data.d.ts +3 -1
  8. package/angular/build/types/intl-tel-input/i18n/types.d.ts +2 -245
  9. package/angular/build/types/intl-tel-input.d.ts +16 -87
  10. package/angular/build/types/modules/core/options.d.ts +3 -0
  11. package/angular/build/types/modules/data/country-data.d.ts +12 -0
  12. package/angular/build/types/modules/data/nanp-regionless.d.ts +2 -0
  13. package/angular/build/types/modules/format/caret.d.ts +1 -0
  14. package/angular/build/types/modules/format/formatting.d.ts +3 -0
  15. package/angular/build/types/modules/types/public-api.d.ts +79 -0
  16. package/angular/build/types/modules/utils/dom.d.ts +1 -0
  17. package/angular/build/types/modules/utils/string.d.ts +2 -0
  18. package/build/js/data.js +3 -2
  19. package/build/js/data.min.js +2 -2
  20. package/build/js/intlTelInput.d.ts +99 -292
  21. package/build/js/intlTelInput.js +432 -361
  22. package/build/js/intlTelInput.min.js +13 -13
  23. package/build/js/intlTelInputWithUtils.js +483 -383
  24. package/build/js/intlTelInputWithUtils.min.js +13 -13
  25. package/build/js/utils.js +18 -15
  26. package/package.json +1 -1
  27. package/react/README.md +1 -1
  28. package/react/build/IntlTelInput.cjs +431 -360
  29. package/react/build/IntlTelInput.d.ts +103 -294
  30. package/react/build/IntlTelInput.js +431 -360
  31. package/react/build/IntlTelInputWithUtils.cjs +482 -382
  32. package/react/build/IntlTelInputWithUtils.js +482 -382
  33. package/vue/README.md +1 -1
  34. package/vue/build/IntlTelInput.mjs +483 -443
  35. package/vue/build/IntlTelInputWithUtils.mjs +1128 -1059
@@ -1,6 +1,8 @@
1
1
  declare module "intl-tel-input/data" {
2
+ export const rawCountryData: readonly [readonly ["af", "93"], readonly ["ax", "358", 1], readonly ["al", "355"], readonly ["dz", "213"], readonly ["as", "1", 5, readonly ["684"]], readonly ["ad", "376"], readonly ["ao", "244"], readonly ["ai", "1", 6, readonly ["264"]], readonly ["ag", "1", 7, readonly ["268"]], readonly ["ar", "54"], readonly ["am", "374"], readonly ["aw", "297"], readonly ["ac", "247"], readonly ["au", "61", 0, any, "0"], readonly ["at", "43"], readonly ["az", "994"], readonly ["bs", "1", 8, readonly ["242"]], readonly ["bh", "973"], readonly ["bd", "880"], readonly ["bb", "1", 9, readonly ["246"]], readonly ["by", "375"], readonly ["be", "32"], readonly ["bz", "501"], readonly ["bj", "229"], readonly ["bm", "1", 10, readonly ["441"]], readonly ["bt", "975"], readonly ["bo", "591"], readonly ["ba", "387"], readonly ["bw", "267"], readonly ["br", "55"], readonly ["io", "246"], readonly ["vg", "1", 11, readonly ["284"]], readonly ["bn", "673"], readonly ["bg", "359"], readonly ["bf", "226"], readonly ["bi", "257"], readonly ["kh", "855"], readonly ["cm", "237"], readonly ["ca", "1", 1, readonly ["204", "226", "236", "249", "250", "263", "289", "306", "343", "354", "365", "367", "368", "382", "387", "403", "416", "418", "428", "431", "437", "438", "450", "584", "468", "474", "506", "514", "519", "548", "579", "581", "584", "587", "604", "613", "639", "647", "672", "683", "705", "709", "742", "753", "778", "780", "782", "807", "819", "825", "867", "873", "879", "902", "905"]], readonly ["cv", "238"], readonly ["bq", "599", 1, readonly ["3", "4", "7"]], readonly ["ky", "1", 12, readonly ["345"]], readonly ["cf", "236"], readonly ["td", "235"], readonly ["cl", "56"], readonly ["cn", "86"], readonly ["cx", "61", 2, readonly ["89164"], "0"], readonly ["cc", "61", 1, readonly ["89162"], "0"], readonly ["co", "57"], readonly ["km", "269"], readonly ["cg", "242"], readonly ["cd", "243"], readonly ["ck", "682"], readonly ["cr", "506"], readonly ["ci", "225"], readonly ["hr", "385"], readonly ["cu", "53"], readonly ["cw", "599", 0], readonly ["cy", "357"], readonly ["cz", "420"], readonly ["dk", "45"], readonly ["dj", "253"], readonly ["dm", "1", 13, readonly ["767"]], readonly ["do", "1", 2, readonly ["809", "829", "849"]], readonly ["ec", "593"], readonly ["eg", "20"], readonly ["sv", "503"], readonly ["gq", "240"], readonly ["er", "291"], readonly ["ee", "372"], readonly ["sz", "268"], readonly ["et", "251"], readonly ["fk", "500"], readonly ["fo", "298"], readonly ["fj", "679"], readonly ["fi", "358", 0], readonly ["fr", "33"], readonly ["gf", "594"], readonly ["pf", "689"], readonly ["ga", "241"], readonly ["gm", "220"], readonly ["ge", "995"], readonly ["de", "49"], readonly ["gh", "233"], readonly ["gi", "350"], readonly ["gr", "30"], readonly ["gl", "299"], readonly ["gd", "1", 14, readonly ["473"]], readonly ["gp", "590", 0], readonly ["gu", "1", 15, readonly ["671"]], readonly ["gt", "502"], readonly ["gg", "44", 1, readonly ["1481", "7781", "7839", "7911"], "0"], readonly ["gn", "224"], readonly ["gw", "245"], readonly ["gy", "592"], readonly ["ht", "509"], readonly ["hn", "504"], readonly ["hk", "852"], readonly ["hu", "36"], readonly ["is", "354"], readonly ["in", "91"], readonly ["id", "62"], readonly ["ir", "98"], readonly ["iq", "964"], readonly ["ie", "353"], readonly ["im", "44", 2, readonly ["1624", "74576", "7524", "7924", "7624"], "0"], readonly ["il", "972"], readonly ["it", "39", 0], readonly ["jm", "1", 4, readonly ["876", "658"]], readonly ["jp", "81"], readonly ["je", "44", 3, readonly ["1534", "7509", "7700", "7797", "7829", "7937"], "0"], readonly ["jo", "962"], readonly ["kz", "7", 1, readonly ["33", "7"], "8"], readonly ["ke", "254"], readonly ["ki", "686"], readonly ["xk", "383"], readonly ["kw", "965"], readonly ["kg", "996"], readonly ["la", "856"], readonly ["lv", "371"], readonly ["lb", "961"], readonly ["ls", "266"], readonly ["lr", "231"], readonly ["ly", "218"], readonly ["li", "423"], readonly ["lt", "370"], readonly ["lu", "352"], readonly ["mo", "853"], readonly ["mg", "261"], readonly ["mw", "265"], readonly ["my", "60"], readonly ["mv", "960"], readonly ["ml", "223"], readonly ["mt", "356"], readonly ["mh", "692"], readonly ["mq", "596"], readonly ["mr", "222"], readonly ["mu", "230"], readonly ["yt", "262", 1, readonly ["269", "639"], "0"], readonly ["mx", "52"], readonly ["fm", "691"], readonly ["md", "373"], readonly ["mc", "377"], readonly ["mn", "976"], readonly ["me", "382"], readonly ["ms", "1", 16, readonly ["664"]], readonly ["ma", "212", 0, any, "0"], readonly ["mz", "258"], readonly ["mm", "95"], readonly ["na", "264"], readonly ["nr", "674"], readonly ["np", "977"], readonly ["nl", "31"], readonly ["nc", "687"], readonly ["nz", "64"], readonly ["ni", "505"], readonly ["ne", "227"], readonly ["ng", "234"], readonly ["nu", "683"], readonly ["nf", "672"], readonly ["kp", "850"], readonly ["mk", "389"], readonly ["mp", "1", 17, readonly ["670"]], readonly ["no", "47", 0], readonly ["om", "968"], readonly ["pk", "92"], readonly ["pw", "680"], readonly ["ps", "970"], readonly ["pa", "507"], readonly ["pg", "675"], readonly ["py", "595"], readonly ["pe", "51"], readonly ["ph", "63"], readonly ["pl", "48"], readonly ["pt", "351"], readonly ["pr", "1", 3, readonly ["787", "939"]], readonly ["qa", "974"], readonly ["re", "262", 0, any, "0"], readonly ["ro", "40"], readonly ["ru", "7", 0, any, "8"], readonly ["rw", "250"], readonly ["ws", "685"], readonly ["sm", "378"], readonly ["st", "239"], readonly ["sa", "966"], readonly ["sn", "221"], readonly ["rs", "381"], readonly ["sc", "248"], readonly ["sl", "232"], readonly ["sg", "65"], readonly ["sx", "1", 21, readonly ["721"]], readonly ["sk", "421"], readonly ["si", "386"], readonly ["sb", "677"], readonly ["so", "252"], readonly ["za", "27"], readonly ["kr", "82"], readonly ["ss", "211"], readonly ["es", "34"], readonly ["lk", "94"], readonly ["bl", "590", 1], readonly ["sh", "290"], readonly ["kn", "1", 18, readonly ["869"]], readonly ["lc", "1", 19, readonly ["758"]], readonly ["mf", "590", 2], readonly ["pm", "508"], readonly ["vc", "1", 20, readonly ["784"]], readonly ["sd", "249"], readonly ["sr", "597"], readonly ["sj", "47", 1, readonly ["79"]], readonly ["se", "46"], readonly ["ch", "41"], readonly ["sy", "963"], readonly ["tw", "886"], readonly ["tj", "992"], readonly ["tz", "255"], readonly ["th", "66"], readonly ["tl", "670"], readonly ["tg", "228"], readonly ["tk", "690"], readonly ["to", "676"], readonly ["tt", "1", 22, readonly ["868"]], readonly ["tn", "216"], readonly ["tr", "90"], readonly ["tm", "993"], readonly ["tc", "1", 23, readonly ["649"]], readonly ["tv", "688"], readonly ["vi", "1", 24, readonly ["340"]], readonly ["ug", "256"], readonly ["ua", "380"], readonly ["ae", "971"], readonly ["gb", "44", 0, any, "0"], readonly ["us", "1", 0], readonly ["uy", "598"], readonly ["uz", "998"], readonly ["vu", "678"], readonly ["va", "39", 1, readonly ["06698"]], readonly ["ve", "58"], readonly ["vn", "84"], readonly ["wf", "681"], readonly ["eh", "212", 1, readonly ["5288", "5289"], "0"], readonly ["ye", "967"], readonly ["zm", "260"], readonly ["zw", "263"]];
3
+ export type Iso2 = typeof rawCountryData[number][0];
2
4
  export type Country = {
3
- iso2: string;
5
+ iso2: Iso2;
4
6
  dialCode: string;
5
7
  priority: number;
6
8
  areaCodes: string[] | null;
@@ -17,251 +19,8 @@ declare module "intl-tel-input/data" {
17
19
  export default allCountries;
18
20
  }
19
21
  declare module "intl-tel-input/i18n/types" {
20
- export type I18n = {
21
- af?: string;
22
- al?: string;
23
- dz?: string;
24
- as?: string;
25
- ad?: string;
26
- ao?: string;
27
- ai?: string;
28
- ag?: string;
29
- ar?: string;
30
- am?: string;
31
- aw?: string;
32
- ac?: string;
33
- au?: string;
34
- at?: string;
35
- az?: string;
36
- bs?: string;
37
- bh?: string;
38
- bd?: string;
39
- bb?: string;
40
- by?: string;
41
- be?: string;
42
- bz?: string;
43
- bj?: string;
44
- bm?: string;
45
- bt?: string;
46
- bo?: string;
47
- ba?: string;
48
- bw?: string;
49
- br?: string;
50
- io?: string;
51
- vg?: string;
52
- bn?: string;
53
- bg?: string;
54
- bf?: string;
55
- bi?: string;
56
- kh?: string;
57
- cm?: string;
58
- ca?: string;
59
- cv?: string;
60
- bq?: string;
61
- ky?: string;
62
- cf?: string;
63
- td?: string;
64
- cl?: string;
65
- cn?: string;
66
- cx?: string;
67
- cc?: string;
68
- co?: string;
69
- km?: string;
70
- cg?: string;
71
- cd?: string;
72
- ck?: string;
73
- cr?: string;
74
- hr?: string;
75
- cu?: string;
76
- cw?: string;
77
- cy?: string;
78
- cz?: string;
79
- ci?: string;
80
- dk?: string;
81
- dj?: string;
82
- dm?: string;
83
- do?: string;
84
- ec?: string;
85
- eg?: string;
86
- sv?: string;
87
- gq?: string;
88
- er?: string;
89
- ee?: string;
90
- sz?: string;
91
- et?: string;
92
- fk?: string;
93
- fo?: string;
94
- fj?: string;
95
- fi?: string;
96
- fr?: string;
97
- gf?: string;
98
- pf?: string;
99
- ga?: string;
100
- gm?: string;
101
- ge?: string;
102
- de?: string;
103
- gh?: string;
104
- gi?: string;
105
- gr?: string;
106
- gl?: string;
107
- gd?: string;
108
- gp?: string;
109
- gu?: string;
110
- gt?: string;
111
- gg?: string;
112
- gn?: string;
113
- gw?: string;
114
- gy?: string;
115
- ht?: string;
116
- hn?: string;
117
- hk?: string;
118
- hu?: string;
119
- is?: string;
120
- in?: string;
121
- id?: string;
122
- ir?: string;
123
- iq?: string;
124
- ie?: string;
125
- im?: string;
126
- il?: string;
127
- it?: string;
128
- jm?: string;
129
- jp?: string;
130
- je?: string;
131
- jo?: string;
132
- kz?: string;
133
- ke?: string;
134
- ki?: string;
135
- xk?: string;
136
- kw?: string;
137
- kg?: string;
138
- la?: string;
139
- lv?: string;
140
- lb?: string;
141
- ls?: string;
142
- lr?: string;
143
- ly?: string;
144
- li?: string;
145
- lt?: string;
146
- lu?: string;
147
- mo?: string;
148
- mg?: string;
149
- mw?: string;
150
- my?: string;
151
- mv?: string;
152
- ml?: string;
153
- mt?: string;
154
- mh?: string;
155
- mq?: string;
156
- mr?: string;
157
- mu?: string;
158
- yt?: string;
159
- mx?: string;
160
- fm?: string;
161
- md?: string;
162
- mc?: string;
163
- mn?: string;
164
- me?: string;
165
- ms?: string;
166
- ma?: string;
167
- mz?: string;
168
- mm?: string;
169
- na?: string;
170
- nr?: string;
171
- np?: string;
172
- nl?: string;
173
- nc?: string;
174
- nz?: string;
175
- ni?: string;
176
- ne?: string;
177
- ng?: string;
178
- nu?: string;
179
- nf?: string;
180
- kp?: string;
181
- mk?: string;
182
- mp?: string;
183
- no?: string;
184
- om?: string;
185
- pk?: string;
186
- pw?: string;
187
- ps?: string;
188
- pa?: string;
189
- pg?: string;
190
- py?: string;
191
- pe?: string;
192
- ph?: string;
193
- pl?: string;
194
- pt?: string;
195
- pr?: string;
196
- qa?: string;
197
- ro?: string;
198
- ru?: string;
199
- rw?: string;
200
- re?: string;
201
- ws?: string;
202
- sm?: string;
203
- sa?: string;
204
- sn?: string;
205
- rs?: string;
206
- sc?: string;
207
- sl?: string;
208
- sg?: string;
209
- sx?: string;
210
- sk?: string;
211
- si?: string;
212
- sb?: string;
213
- so?: string;
214
- za?: string;
215
- kr?: string;
216
- ss?: string;
217
- es?: string;
218
- lk?: string;
219
- bl?: string;
220
- sh?: string;
221
- kn?: string;
222
- lc?: string;
223
- mf?: string;
224
- pm?: string;
225
- vc?: string;
226
- sd?: string;
227
- sr?: string;
228
- sj?: string;
229
- se?: string;
230
- ch?: string;
231
- sy?: string;
232
- st?: string;
233
- tw?: string;
234
- tj?: string;
235
- tz?: string;
236
- th?: string;
237
- tl?: string;
238
- tg?: string;
239
- tk?: string;
240
- to?: string;
241
- tt?: string;
242
- tn?: string;
243
- tr?: string;
244
- tm?: string;
245
- tc?: string;
246
- tv?: string;
247
- vi?: string;
248
- ug?: string;
249
- ua?: string;
250
- ae?: string;
251
- gb?: string;
252
- us?: string;
253
- uy?: string;
254
- uz?: string;
255
- vu?: string;
256
- va?: string;
257
- ve?: string;
258
- vn?: string;
259
- wf?: string;
260
- eh?: string;
261
- ye?: string;
262
- zm?: string;
263
- zw?: string;
264
- ax?: string;
22
+ import type { Iso2 } from "intl-tel-input/data";
23
+ export type I18n = Partial<Record<Iso2, string>> & {
265
24
  selectedCountryAriaLabel?: string;
266
25
  searchPlaceholder?: string;
267
26
  clearSearchAriaLabel?: string;
@@ -291,34 +50,14 @@ declare module "intl-tel-input/i18n/en" {
291
50
  const allTranslations: I18n;
292
51
  export default allTranslations;
293
52
  }
294
- declare module "intl-tel-input" {
295
- import { Country } from "intl-tel-input/data";
296
- import { I18n } from "intl-tel-input/i18n/types";
297
- global {
298
- interface HTMLInputElement {
299
- iti?: Iti;
300
- }
301
- }
302
- type UtilsLoader = () => Promise<{
53
+ declare module "modules/types/public-api" {
54
+ import type { Country, Iso2 } from "intl-tel-input/data";
55
+ import type { I18n } from "intl-tel-input/i18n/types";
56
+ import type { Iti } from "intl-tel-input";
57
+ export type UtilsLoader = () => Promise<{
303
58
  default: ItiUtils;
304
59
  }>;
305
- interface IntlTelInputInterface {
306
- (input: HTMLInputElement, options?: SomeOptions): Iti;
307
- autoCountry?: string;
308
- defaults: AllOptions;
309
- documentReady: () => boolean;
310
- getCountryData: () => Country[];
311
- getInstance: (input: HTMLInputElement) => Iti | null;
312
- instances: {
313
- [key: string]: Iti;
314
- };
315
- attachUtils: (source: UtilsLoader) => Promise<unknown> | null;
316
- startedLoadingAutoCountry: boolean;
317
- startedLoadingUtilsScript: boolean;
318
- version: string | undefined;
319
- utils?: ItiUtils;
320
- }
321
- type ItiUtils = {
60
+ export type ItiUtils = {
322
61
  formatNumber(number: string, iso2: string | undefined, format?: number): string;
323
62
  formatNumberAsYouType(number: string, iso2: string | undefined): string;
324
63
  getCoreNumber(number: string, iso2: string | undefined): string;
@@ -334,39 +73,39 @@ declare module "intl-tel-input" {
334
73
  E164: number;
335
74
  RFC3966: number;
336
75
  };
337
- numberType: object;
76
+ numberType: Record<string, number>;
338
77
  };
339
- type NumberType = "FIXED_LINE_OR_MOBILE" | "FIXED_LINE" | "MOBILE" | "PAGER" | "PERSONAL_NUMBER" | "PREMIUM_RATE" | "SHARED_COST" | "TOLL_FREE" | "UAN" | "UNKNOWN" | "VOICEMAIL" | "VOIP";
340
- type SelectedCountryData = {
78
+ export type NumberType = "FIXED_LINE_OR_MOBILE" | "FIXED_LINE" | "MOBILE" | "PAGER" | "PERSONAL_NUMBER" | "PREMIUM_RATE" | "SHARED_COST" | "TOLL_FREE" | "UAN" | "UNKNOWN" | "VOICEMAIL" | "VOIP";
79
+ export type SelectedCountryData = {
341
80
  name?: string;
342
- iso2?: string;
81
+ iso2?: Iso2;
343
82
  dialCode?: string;
344
83
  areaCodes?: string[];
345
84
  nationalPrefix?: string;
346
85
  };
347
- interface AllOptions {
86
+ export interface AllOptions {
348
87
  allowDropdown: boolean;
349
88
  allowPhonewords: boolean;
350
89
  autoPlaceholder: string;
351
90
  containerClass: string;
352
- countryOrder: string[];
91
+ countryOrder: Iso2[] | null;
353
92
  countrySearch: boolean;
354
93
  customPlaceholder: ((selectedCountryPlaceholder: string, selectedCountryData: object) => string) | null;
355
94
  dropdownContainer: HTMLElement | null;
356
- excludeCountries: string[];
95
+ excludeCountries: Iso2[];
357
96
  fixDropdownWidth: boolean;
358
97
  formatAsYouType: boolean;
359
98
  formatOnDisplay: boolean;
360
- geoIpLookup: ((success: (iso2: string) => void, failure: () => void) => void) | null;
99
+ geoIpLookup: ((success: (iso2: Iso2) => void, failure: () => void) => void) | null;
361
100
  hiddenInput: ((telInputName: string) => {
362
101
  phone: string;
363
102
  country?: string;
364
103
  }) | null;
365
104
  i18n: I18n;
366
- initialCountry: string;
367
- loadUtils: UtilsLoader;
105
+ initialCountry: Iso2 | "auto" | "";
106
+ loadUtils: UtilsLoader | null;
368
107
  nationalMode: boolean;
369
- onlyCountries: string[];
108
+ onlyCountries: Iso2[];
370
109
  placeholderNumberType: NumberType;
371
110
  showFlags: boolean;
372
111
  separateDialCode: boolean;
@@ -375,6 +114,69 @@ declare module "intl-tel-input" {
375
114
  validationNumberTypes: NumberType[] | null;
376
115
  }
377
116
  export type SomeOptions = Partial<AllOptions>;
117
+ export interface IntlTelInputInterface {
118
+ (input: HTMLInputElement, options?: SomeOptions): Iti;
119
+ autoCountry?: Iso2;
120
+ defaults: AllOptions;
121
+ documentReady: () => boolean;
122
+ getCountryData: () => Country[];
123
+ getInstance: (input: HTMLInputElement) => Iti | null;
124
+ instances: {
125
+ [key: string]: Iti;
126
+ };
127
+ attachUtils: (source: UtilsLoader) => Promise<unknown> | null;
128
+ startedLoadingAutoCountry: boolean;
129
+ startedLoadingUtilsScript: boolean;
130
+ version: string | undefined;
131
+ utils?: ItiUtils;
132
+ }
133
+ }
134
+ declare module "modules/core/options" {
135
+ import type { AllOptions } from "modules/types/public-api";
136
+ export const defaults: AllOptions;
137
+ export function applyOptionSideEffects(o: AllOptions): void;
138
+ }
139
+ declare module "modules/utils/string" {
140
+ export const getNumeric: (s: string) => string;
141
+ export const normaliseString: (s?: string) => string;
142
+ }
143
+ declare module "modules/utils/dom" {
144
+ export const createEl: (tagName: string, attrs?: object | null, container?: HTMLElement) => HTMLElement;
145
+ }
146
+ declare module "modules/data/country-data" {
147
+ import { Country, Iso2 } from "intl-tel-input/data";
148
+ import type { AllOptions } from "modules/types/public-api";
149
+ export interface DialCodeProcessingResult {
150
+ dialCodes: Set<string>;
151
+ dialCodeMaxLen: number;
152
+ dialCodeToIso2Map: Record<string, Iso2[]>;
153
+ }
154
+ export function processAllCountries(options: AllOptions): Country[];
155
+ export function translateCountryNames(countries: Country[], options: AllOptions): void;
156
+ export function processDialCodes(countries: Country[], options: AllOptions): DialCodeProcessingResult;
157
+ export function sortCountries(countries: Country[], options: AllOptions): void;
158
+ export function cacheSearchTokens(countries: Country[]): void;
159
+ }
160
+ declare module "modules/format/formatting" {
161
+ import { SelectedCountryData } from "modules/types/public-api";
162
+ export function beforeSetNumber(fullNumber: string, dialCode: string, separateDialCode: boolean, selectedCountryData: SelectedCountryData): string;
163
+ export function formatNumberAsYouType(fullNumber: string, telInputValue: string, utils: any, selectedCountryData: SelectedCountryData, separateDialCode: boolean): string;
164
+ }
165
+ declare module "modules/format/caret" {
166
+ export function translateCursorPosition(relevantChars: number, formattedValue: string, prevCaretPos: number, isDeleteForwards: boolean): number;
167
+ }
168
+ declare module "modules/data/nanp-regionless" {
169
+ export const regionlessNanpNumbers: string[];
170
+ export const isRegionlessNanp: (number: string) => boolean;
171
+ }
172
+ declare module "intl-tel-input" {
173
+ import { Iso2 } from "intl-tel-input/data";
174
+ import type { NumberType, SelectedCountryData, SomeOptions, IntlTelInputInterface } from "modules/types/public-api";
175
+ global {
176
+ interface HTMLInputElement {
177
+ iti?: Iti;
178
+ }
179
+ }
378
180
  export class Iti {
379
181
  id: number;
380
182
  promise: Promise<[unknown, unknown]>;
@@ -435,15 +237,18 @@ declare module "intl-tel-input" {
435
237
  */
436
238
  private static _buildClassNames;
437
239
  constructor(input: HTMLInputElement, customOptions?: SomeOptions);
240
+ private _detectEnvironmentAndLayout;
241
+ private _createInitPromises;
438
242
  _init(): void;
439
243
  private _processCountryData;
440
- private _cacheSearchTokens;
441
- private _sortCountries;
442
- private _addToDialCodeMap;
443
- private _processAllCountries;
444
- private _translateCountryNames;
445
- private _processDialCodes;
446
244
  private _generateMarkup;
245
+ private _prepareTelInput;
246
+ private _createWrapperAndInsert;
247
+ private _maybeBuildCountryContainer;
248
+ private _buildDropdownContent;
249
+ private _buildSearchUI;
250
+ private _maybeUpdateInputPaddingAndReveal;
251
+ private _maybeBuildHiddenInputs;
447
252
  private _appendListItems;
448
253
  private _setInitialState;
449
254
  private _initListeners;
@@ -453,6 +258,9 @@ declare module "intl-tel-input" {
453
258
  private _loadAutoCountry;
454
259
  private _openDropdownWithPlus;
455
260
  private _initTelInputListeners;
261
+ private _bindInputListener;
262
+ private _maybeBindKeydownListener;
263
+ private _maybeBindPasteListener;
456
264
  private _cap;
457
265
  private _trigger;
458
266
  private _openDropdown;
@@ -460,6 +268,7 @@ declare module "intl-tel-input" {
460
268
  private _bindDropdownListeners;
461
269
  private _searchForCountry;
462
270
  private _filterCountries;
271
+ private _getMatchedCountries;
463
272
  private _updateSearchResultsA11yText;
464
273
  private _handleUpDownKey;
465
274
  private _handleEnterKey;
@@ -468,7 +277,6 @@ declare module "intl-tel-input" {
468
277
  private _ensureHasDialCode;
469
278
  private _getNewCountryFromNumber;
470
279
  private _highlightListItem;
471
- private _getCountryData;
472
280
  private _setCountry;
473
281
  private _updateInputPadding;
474
282
  private _updateMaxLength;
@@ -482,7 +290,6 @@ declare module "intl-tel-input" {
482
290
  private _getFullNumber;
483
291
  private _beforeSetNumber;
484
292
  private _triggerCountryChange;
485
- private _formatNumberAsYouType;
486
293
  handleAutoCountry(): void;
487
294
  handleUtils(): void;
488
295
  destroy(): void;
@@ -496,7 +303,7 @@ declare module "intl-tel-input" {
496
303
  private _utilsIsPossibleNumber;
497
304
  private _validateNumber;
498
305
  private _utilsIsValidNumber;
499
- setCountry(iso2: string): void;
306
+ setCountry(iso2: Iso2): void;
500
307
  setNumber(number: string): void;
501
308
  setPlaceholderNumberType(type: NumberType): void;
502
309
  setDisabled(disabled: boolean): void;