@webority/mobile-core 0.0.28 → 0.1.0

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 (139) hide show
  1. package/lib/commonjs/api/baseUrl.js +1 -34
  2. package/lib/commonjs/api/curl.js +1 -109
  3. package/lib/commonjs/api/multipart.js +1 -21
  4. package/lib/commonjs/api/publicClient.js +1 -79
  5. package/lib/commonjs/api/responseBodyText.js +1 -0
  6. package/lib/commonjs/api/retry.js +1 -91
  7. package/lib/commonjs/api/tokenRefresh.js +1 -205
  8. package/lib/commonjs/api/userClient.js +1 -265
  9. package/lib/commonjs/auth/authStore.js +1 -265
  10. package/lib/commonjs/auth/index.js +1 -44
  11. package/lib/commonjs/auth/jwt.js +1 -112
  12. package/lib/commonjs/config/index.js +1 -72
  13. package/lib/commonjs/deepLink/index.js +1 -286
  14. package/lib/commonjs/download/adapters/expoFs.js +1 -69
  15. package/lib/commonjs/download/adapters/shared.js +1 -13
  16. package/lib/commonjs/download/index.js +1 -250
  17. package/lib/commonjs/formatters/currency.js +1 -70
  18. package/lib/commonjs/formatters/date.js +1 -167
  19. package/lib/commonjs/formatters/dateMath.js +1 -311
  20. package/lib/commonjs/formatters/index.js +1 -246
  21. package/lib/commonjs/formatters/initials.js +1 -32
  22. package/lib/commonjs/formatters/intlCache.js +1 -37
  23. package/lib/commonjs/formatters/number.js +1 -89
  24. package/lib/commonjs/formatters/phone.js +1 -369
  25. package/lib/commonjs/formatters/windowsToIanaTable.js +1 -164
  26. package/lib/commonjs/geolocation/adapters/expoLocation.js +1 -126
  27. package/lib/commonjs/geolocation/index.js +1 -355
  28. package/lib/commonjs/index.js +1 -644
  29. package/lib/commonjs/initSDK.js +1 -66
  30. package/lib/commonjs/initUserAuth.js +1 -37
  31. package/lib/commonjs/logger/crashlytics.js +1 -0
  32. package/lib/commonjs/logger/index.js +1 -301
  33. package/lib/commonjs/logger/redact.js +1 -50
  34. package/lib/commonjs/network/index.js +1 -31
  35. package/lib/commonjs/network/networkStatus.js +1 -171
  36. package/lib/commonjs/permissions/calendar.js +1 -14
  37. package/lib/commonjs/permissions/camera.js +1 -14
  38. package/lib/commonjs/permissions/contacts.js +1 -10
  39. package/lib/commonjs/permissions/index.js +1 -133
  40. package/lib/commonjs/permissions/location.js +1 -14
  41. package/lib/commonjs/permissions/mediaLibrary.js +1 -10
  42. package/lib/commonjs/permissions/notifications.js +1 -10
  43. package/lib/commonjs/permissions/photos.js +1 -14
  44. package/lib/commonjs/phone/countries.js +1 -265
  45. package/lib/commonjs/push/index.js +1 -61
  46. package/lib/commonjs/push/push.js +1 -443
  47. package/lib/commonjs/push/status.js +1 -0
  48. package/lib/commonjs/push/task.js +1 -43
  49. package/lib/commonjs/secureScreen/index.js +1 -0
  50. package/lib/commonjs/share/index.js +1 -70
  51. package/lib/commonjs/smsRetriever/index.js +1 -91
  52. package/lib/commonjs/specs/NativeSmsRetriever.js +1 -15
  53. package/lib/commonjs/sqlite/adapters/expo.js +1 -53
  54. package/lib/commonjs/sqlite/index.js +1 -604
  55. package/lib/commonjs/storage/index.js +1 -214
  56. package/lib/commonjs/types/axios.js +1 -4
  57. package/lib/commonjs/types/globals.d.js +1 -6
  58. package/lib/commonjs/utils/base64.js +1 -24
  59. package/lib/commonjs/utils/imageCompression.js +1 -389
  60. package/lib/commonjs/utils/index.js +1 -19
  61. package/lib/commonjs/validators/index.js +1 -227
  62. package/lib/commonjs/versionCheck/index.js +1 -419
  63. package/lib/module/api/baseUrl.js +1 -30
  64. package/lib/module/api/curl.js +1 -104
  65. package/lib/module/api/multipart.js +1 -16
  66. package/lib/module/api/publicClient.js +1 -75
  67. package/lib/module/api/responseBodyText.js +1 -0
  68. package/lib/module/api/retry.js +1 -85
  69. package/lib/module/api/tokenRefresh.js +1 -192
  70. package/lib/module/api/userClient.js +1 -243
  71. package/lib/module/auth/authStore.js +1 -257
  72. package/lib/module/auth/index.js +1 -5
  73. package/lib/module/auth/jwt.js +1 -106
  74. package/lib/module/config/index.js +1 -64
  75. package/lib/module/deepLink/index.js +1 -280
  76. package/lib/module/download/adapters/expoFs.js +1 -64
  77. package/lib/module/download/adapters/shared.js +1 -8
  78. package/lib/module/download/index.js +1 -242
  79. package/lib/module/formatters/currency.js +1 -65
  80. package/lib/module/formatters/date.js +1 -159
  81. package/lib/module/formatters/dateMath.js +1 -295
  82. package/lib/module/formatters/index.js +1 -9
  83. package/lib/module/formatters/initials.js +1 -27
  84. package/lib/module/formatters/intlCache.js +1 -30
  85. package/lib/module/formatters/number.js +1 -82
  86. package/lib/module/formatters/phone.js +1 -302
  87. package/lib/module/formatters/windowsToIanaTable.js +1 -160
  88. package/lib/module/geolocation/adapters/expoLocation.js +1 -121
  89. package/lib/module/geolocation/index.js +1 -347
  90. package/lib/module/index.js +1 -57
  91. package/lib/module/initSDK.js +1 -61
  92. package/lib/module/initUserAuth.js +1 -33
  93. package/lib/module/logger/crashlytics.js +1 -0
  94. package/lib/module/logger/index.js +1 -295
  95. package/lib/module/logger/redact.js +1 -44
  96. package/lib/module/network/index.js +1 -4
  97. package/lib/module/network/networkStatus.js +1 -161
  98. package/lib/module/permissions/calendar.js +1 -15
  99. package/lib/module/permissions/camera.js +1 -15
  100. package/lib/module/permissions/contacts.js +1 -11
  101. package/lib/module/permissions/index.js +1 -128
  102. package/lib/module/permissions/location.js +1 -15
  103. package/lib/module/permissions/mediaLibrary.js +1 -11
  104. package/lib/module/permissions/notifications.js +1 -11
  105. package/lib/module/permissions/photos.js +1 -15
  106. package/lib/module/phone/countries.js +1 -261
  107. package/lib/module/push/index.js +1 -4
  108. package/lib/module/push/push.js +1 -427
  109. package/lib/module/push/status.js +1 -0
  110. package/lib/module/push/task.js +1 -38
  111. package/lib/module/secureScreen/index.js +1 -0
  112. package/lib/module/share/index.js +1 -64
  113. package/lib/module/smsRetriever/index.js +1 -86
  114. package/lib/module/specs/NativeSmsRetriever.js +1 -13
  115. package/lib/module/sqlite/adapters/expo.js +1 -48
  116. package/lib/module/sqlite/index.js +1 -594
  117. package/lib/module/storage/index.js +1 -208
  118. package/lib/module/types/axios.js +1 -4
  119. package/lib/module/types/globals.d.js +1 -10
  120. package/lib/module/utils/base64.js +1 -19
  121. package/lib/module/utils/imageCompression.js +1 -383
  122. package/lib/module/utils/index.js +1 -4
  123. package/lib/module/validators/index.js +1 -205
  124. package/lib/module/versionCheck/index.js +1 -413
  125. package/lib/typescript/commonjs/api/responseBodyText.d.ts +6 -0
  126. package/lib/typescript/commonjs/index.d.ts +5 -0
  127. package/lib/typescript/commonjs/logger/crashlytics.d.ts +31 -0
  128. package/lib/typescript/commonjs/push/index.d.ts +3 -1
  129. package/lib/typescript/commonjs/push/push.d.ts +9 -1
  130. package/lib/typescript/commonjs/push/status.d.ts +9 -0
  131. package/lib/typescript/commonjs/secureScreen/index.d.ts +25 -0
  132. package/lib/typescript/module/api/responseBodyText.d.ts +6 -0
  133. package/lib/typescript/module/index.d.ts +5 -0
  134. package/lib/typescript/module/logger/crashlytics.d.ts +31 -0
  135. package/lib/typescript/module/push/index.d.ts +3 -1
  136. package/lib/typescript/module/push/push.d.ts +9 -1
  137. package/lib/typescript/module/push/status.d.ts +9 -0
  138. package/lib/typescript/module/secureScreen/index.d.ts +25 -0
  139. package/package.json +23 -4
@@ -1,128 +1 @@
1
- "use strict";
2
-
3
- import { Linking } from 'react-native';
4
- import { Logger } from "../logger/index.js";
5
-
6
- // Android only — legacy WRITE_EXTERNAL_STORAGE
7
-
8
- /** The shared response shape every Expo permission function returns. */
9
-
10
- let backend = null;
11
-
12
- /**
13
- * Inject a custom permissions backend at runtime. Pass `null` to reset to the
14
- * default per-kind Expo resolution.
15
- *
16
- * Two legitimate reasons to call this: tests/the showcase reaching a denied,
17
- * blocked or unavailable path a healthy device never takes; and an app that
18
- * genuinely needs `bluetooth` or `storage`, which no Expo module covers.
19
- */
20
- export const setPermissionsImplementation = impl => {
21
- backend = impl;
22
- };
23
-
24
- /**
25
- * Populated by the per-package entry points (`./camera`, `./photos`, …), never
26
- * by this file. This module names NO Expo package — Metro resolves every
27
- * literal require() reachable from the static import graph regardless of
28
- * which switch branch would have run, so naming seven packages here would
29
- * make each one a mandatory install for every consumer, whichever kinds they
30
- * actually use. An app wires only the kinds it needs:
31
- *
32
- * import '@webority/mobile-core/permissions/camera';
33
- * import '@webority/mobile-core/permissions/location';
34
- *
35
- * `bluetooth` and `storage` have no Expo module and are never registered here
36
- * — they resolve through `setPermissionsImplementation` only.
37
- */
38
- const registry = new Map();
39
-
40
- /** Called by the per-package entry points to register their kind(s). Not for app code. */
41
- export const registerPermissionAdapter = (kind, fns) => {
42
- registry.set(kind, fns);
43
- };
44
- const resolveExpoModule = kind => registry.get(kind) ?? null;
45
- const toStatus = response => {
46
- if (!response) {
47
- return 'unavailable';
48
- }
49
- if (response.accessPrivileges === 'limited') {
50
- return 'limited';
51
- }
52
- if (response.status === 'granted') {
53
- return 'granted';
54
- }
55
- if (response.status === 'denied') {
56
- return response.canAskAgain ? 'denied' : 'blocked';
57
- }
58
- // 'undetermined' — never asked yet. Treated as 'denied' so callers using
59
- // Permissions.ensure() correctly trigger a request() rather than stalling.
60
- return 'denied';
61
- };
62
- const checkPermission = async kind => {
63
- if (backend) {
64
- return backend.check(kind);
65
- }
66
- const fns = resolveExpoModule(kind);
67
- if (!fns) {
68
- return 'unavailable';
69
- }
70
- try {
71
- return toStatus(await fns.check());
72
- } catch (error) {
73
- Logger.error(`[permissions] check(${kind}) failed`, error);
74
- return 'unavailable';
75
- }
76
- };
77
- const requestPermission = async kind => {
78
- if (backend) {
79
- return backend.request(kind);
80
- }
81
- const fns = resolveExpoModule(kind);
82
- if (!fns) {
83
- return 'unavailable';
84
- }
85
- try {
86
- return toStatus(await fns.request());
87
- } catch (error) {
88
- Logger.error(`[permissions] request(${kind}) failed`, error);
89
- return 'unavailable';
90
- }
91
- };
92
- const openAppSettings = async () => {
93
- try {
94
- await Linking.openSettings();
95
- return true;
96
- } catch (error) {
97
- Logger.error('[permissions] openAppSettings failed', error);
98
- return false;
99
- }
100
- };
101
-
102
- /**
103
- * Cross-platform permissions wrapper. Maps an abstract `PermissionKind`
104
- * (camera, photos, location, notifications, …) to whichever Expo adapter an
105
- * app has registered by importing that kind's entry point — expo-camera,
106
- * expo-image-picker, expo-location, expo-contacts, expo-calendar,
107
- * expo-notifications, expo-media-library. An app imports only the entry
108
- * points for the kinds it actually asks for.
109
- */
110
- export const Permissions = {
111
- check: checkPermission,
112
- request: requestPermission,
113
- /** Convenience: returns true when the permission is `granted` or `limited`. */
114
- isAuthorized: async kind => {
115
- const s = await checkPermission(kind);
116
- return s === 'granted' || s === 'limited';
117
- },
118
- /** Convenience: check, and request only if not yet granted. */
119
- ensure: async kind => {
120
- const s = await checkPermission(kind);
121
- if (s === 'granted' || s === 'limited' || s === 'blocked' || s === 'unavailable') {
122
- return s;
123
- }
124
- return requestPermission(kind);
125
- },
126
- openSettings: openAppSettings
127
- };
128
- //# sourceMappingURL=index.js.map
1
+ import{Linking as e}from"react-native";import{Logger as t}from"../logger/index.js";let r=null;export const setPermissionsImplementation=e=>{r=e};const n=new Map;export const registerPermissionAdapter=(e,t)=>{n.set(e,t)};const resolveExpoModule=e=>n.get(e)??null,toStatus=e=>e?"limited"===e.accessPrivileges?"limited":"granted"===e.status?"granted":"denied"===e.status?e.canAskAgain?"denied":"blocked":"denied":"unavailable",checkPermission=async e=>{if(r)return r.check(e);const n=resolveExpoModule(e);if(!n)return"unavailable";try{return toStatus(await n.check())}catch(r){return t.error(`[permissions] check(${e}) failed`,r),"unavailable"}},requestPermission=async e=>{if(r)return r.request(e);const n=resolveExpoModule(e);if(!n)return"unavailable";try{return toStatus(await n.request())}catch(r){return t.error(`[permissions] request(${e}) failed`,r),"unavailable"}};export const Permissions={check:checkPermission,request:requestPermission,isAuthorized:async e=>{const t=await checkPermission(e);return"granted"===t||"limited"===t},ensure:async e=>{const t=await checkPermission(e);return"granted"===t||"limited"===t||"blocked"===t||"unavailable"===t?t:requestPermission(e)},openSettings:async()=>{try{return await e.openSettings(),!0}catch(e){return t.error("[permissions] openAppSettings failed",e),!1}}};
@@ -1,15 +1 @@
1
- "use strict";
2
-
3
- import { registerPermissionAdapter } from "./index.js";
4
-
5
- /** The one place `expo-location` is named. Import only if you use location/locationAlways. */
6
- const m = require('expo-location');
7
- registerPermissionAdapter('location', {
8
- check: m.getForegroundPermissionsAsync,
9
- request: m.requestForegroundPermissionsAsync
10
- });
11
- registerPermissionAdapter('locationAlways', {
12
- check: m.getBackgroundPermissionsAsync,
13
- request: m.requestBackgroundPermissionsAsync
14
- });
15
- //# sourceMappingURL=location.js.map
1
+ import{registerPermissionAdapter as s}from"./index.js";const e=require("expo-location");s("location",{check:e.getForegroundPermissionsAsync,request:e.requestForegroundPermissionsAsync}),s("locationAlways",{check:e.getBackgroundPermissionsAsync,request:e.requestBackgroundPermissionsAsync});
@@ -1,11 +1 @@
1
- "use strict";
2
-
3
- import { registerPermissionAdapter } from "./index.js";
4
-
5
- /** The one place `expo-media-library` is named. Import only if you use mediaLibrary. */
6
- const m = require('expo-media-library');
7
- registerPermissionAdapter('mediaLibrary', {
8
- check: m.getPermissionsAsync,
9
- request: m.requestPermissionsAsync
10
- });
11
- //# sourceMappingURL=mediaLibrary.js.map
1
+ import{registerPermissionAdapter as e}from"./index.js";const r=require("expo-media-library");e("mediaLibrary",{check:r.getPermissionsAsync,request:r.requestPermissionsAsync});
@@ -1,11 +1 @@
1
- "use strict";
2
-
3
- import { registerPermissionAdapter } from "./index.js";
4
-
5
- /** The one place `expo-notifications` is named. Import only if you use notifications. */
6
- const m = require('expo-notifications');
7
- registerPermissionAdapter('notifications', {
8
- check: m.getPermissionsAsync,
9
- request: m.requestPermissionsAsync
10
- });
11
- //# sourceMappingURL=notifications.js.map
1
+ import{registerPermissionAdapter as s}from"./index.js";const i=require("expo-notifications");s("notifications",{check:i.getPermissionsAsync,request:i.requestPermissionsAsync});
@@ -1,15 +1 @@
1
- "use strict";
2
-
3
- import { registerPermissionAdapter } from "./index.js";
4
-
5
- /** The one place `expo-image-picker` is named. Import only if you use photos/photosAdd. */
6
- const m = require('expo-image-picker');
7
- registerPermissionAdapter('photos', {
8
- check: () => m.getMediaLibraryPermissionsAsync(false),
9
- request: () => m.requestMediaLibraryPermissionsAsync(false)
10
- });
11
- registerPermissionAdapter('photosAdd', {
12
- check: () => m.getMediaLibraryPermissionsAsync(true),
13
- request: () => m.requestMediaLibraryPermissionsAsync(true)
14
- });
15
- //# sourceMappingURL=photos.js.map
1
+ import{registerPermissionAdapter as e}from"./index.js";const s=require("expo-image-picker");e("photos",{check:()=>s.getMediaLibraryPermissionsAsync(!1),request:()=>s.requestMediaLibraryPermissionsAsync(!1)}),e("photosAdd",{check:()=>s.getMediaLibraryPermissionsAsync(!0),request:()=>s.requestMediaLibraryPermissionsAsync(!0)});
@@ -1,261 +1 @@
1
- "use strict";
2
-
3
- /**
4
- * English display names for every country libphonenumber-js knows, keyed by
5
- * ISO 3166-1 alpha-2. GENERATED by scripts/gen-phone-countries.mjs from Node's
6
- * Intl.DisplayNames('en', { type: 'region' }) over getCountries() on 2026-09-14;
7
- * '&' is written as 'and'. Re-run the script rather than editing by hand.
8
- *
9
- * Lives on its own import path (mobile-core/phone/countries) so an app that
10
- * never opens a full country list does not carry these 245 strings in its
11
- * bundle. Pair with getPhoneCountries() from the package root for the calling
12
- * codes; a country picker that needs another language supplies its own names.
13
- */
14
- export const PHONE_COUNTRY_NAMES = {
15
- AF: 'Afghanistan',
16
- AX: 'Åland Islands',
17
- AL: 'Albania',
18
- DZ: 'Algeria',
19
- AS: 'American Samoa',
20
- AD: 'Andorra',
21
- AO: 'Angola',
22
- AI: 'Anguilla',
23
- AG: 'Antigua and Barbuda',
24
- AR: 'Argentina',
25
- AM: 'Armenia',
26
- AW: 'Aruba',
27
- AC: 'Ascension Island',
28
- AU: 'Australia',
29
- AT: 'Austria',
30
- AZ: 'Azerbaijan',
31
- BS: 'Bahamas',
32
- BH: 'Bahrain',
33
- BD: 'Bangladesh',
34
- BB: 'Barbados',
35
- BY: 'Belarus',
36
- BE: 'Belgium',
37
- BZ: 'Belize',
38
- BJ: 'Benin',
39
- BM: 'Bermuda',
40
- BT: 'Bhutan',
41
- BO: 'Bolivia',
42
- BA: 'Bosnia and Herzegovina',
43
- BW: 'Botswana',
44
- BR: 'Brazil',
45
- IO: 'British Indian Ocean Territory',
46
- VG: 'British Virgin Islands',
47
- BN: 'Brunei',
48
- BG: 'Bulgaria',
49
- BF: 'Burkina Faso',
50
- BI: 'Burundi',
51
- KH: 'Cambodia',
52
- CM: 'Cameroon',
53
- CA: 'Canada',
54
- CV: 'Cape Verde',
55
- BQ: 'Caribbean Netherlands',
56
- KY: 'Cayman Islands',
57
- CF: 'Central African Republic',
58
- TD: 'Chad',
59
- CL: 'Chile',
60
- CN: 'China',
61
- CX: 'Christmas Island',
62
- CC: 'Cocos (Keeling) Islands',
63
- CO: 'Colombia',
64
- KM: 'Comoros',
65
- CG: 'Congo - Brazzaville',
66
- CD: 'Congo - Kinshasa',
67
- CK: 'Cook Islands',
68
- CR: 'Costa Rica',
69
- CI: 'Côte d’Ivoire',
70
- HR: 'Croatia',
71
- CU: 'Cuba',
72
- CW: 'Curaçao',
73
- CY: 'Cyprus',
74
- CZ: 'Czechia',
75
- DK: 'Denmark',
76
- DJ: 'Djibouti',
77
- DM: 'Dominica',
78
- DO: 'Dominican Republic',
79
- EC: 'Ecuador',
80
- EG: 'Egypt',
81
- SV: 'El Salvador',
82
- GQ: 'Equatorial Guinea',
83
- ER: 'Eritrea',
84
- EE: 'Estonia',
85
- SZ: 'Eswatini',
86
- ET: 'Ethiopia',
87
- FK: 'Falkland Islands',
88
- FO: 'Faroe Islands',
89
- FJ: 'Fiji',
90
- FI: 'Finland',
91
- FR: 'France',
92
- GF: 'French Guiana',
93
- PF: 'French Polynesia',
94
- GA: 'Gabon',
95
- GM: 'Gambia',
96
- GE: 'Georgia',
97
- DE: 'Germany',
98
- GH: 'Ghana',
99
- GI: 'Gibraltar',
100
- GR: 'Greece',
101
- GL: 'Greenland',
102
- GD: 'Grenada',
103
- GP: 'Guadeloupe',
104
- GU: 'Guam',
105
- GT: 'Guatemala',
106
- GG: 'Guernsey',
107
- GN: 'Guinea',
108
- GW: 'Guinea-Bissau',
109
- GY: 'Guyana',
110
- HT: 'Haiti',
111
- HN: 'Honduras',
112
- HK: 'Hong Kong SAR China',
113
- HU: 'Hungary',
114
- IS: 'Iceland',
115
- IN: 'India',
116
- ID: 'Indonesia',
117
- IR: 'Iran',
118
- IQ: 'Iraq',
119
- IE: 'Ireland',
120
- IM: 'Isle of Man',
121
- IL: 'Israel',
122
- IT: 'Italy',
123
- JM: 'Jamaica',
124
- JP: 'Japan',
125
- JE: 'Jersey',
126
- JO: 'Jordan',
127
- KZ: 'Kazakhstan',
128
- KE: 'Kenya',
129
- KI: 'Kiribati',
130
- XK: 'Kosovo',
131
- KW: 'Kuwait',
132
- KG: 'Kyrgyzstan',
133
- LA: 'Laos',
134
- LV: 'Latvia',
135
- LB: 'Lebanon',
136
- LS: 'Lesotho',
137
- LR: 'Liberia',
138
- LY: 'Libya',
139
- LI: 'Liechtenstein',
140
- LT: 'Lithuania',
141
- LU: 'Luxembourg',
142
- MO: 'Macao SAR China',
143
- MG: 'Madagascar',
144
- MW: 'Malawi',
145
- MY: 'Malaysia',
146
- MV: 'Maldives',
147
- ML: 'Mali',
148
- MT: 'Malta',
149
- MH: 'Marshall Islands',
150
- MQ: 'Martinique',
151
- MR: 'Mauritania',
152
- MU: 'Mauritius',
153
- YT: 'Mayotte',
154
- MX: 'Mexico',
155
- FM: 'Micronesia',
156
- MD: 'Moldova',
157
- MC: 'Monaco',
158
- MN: 'Mongolia',
159
- ME: 'Montenegro',
160
- MS: 'Montserrat',
161
- MA: 'Morocco',
162
- MZ: 'Mozambique',
163
- MM: 'Myanmar (Burma)',
164
- NA: 'Namibia',
165
- NR: 'Nauru',
166
- NP: 'Nepal',
167
- NL: 'Netherlands',
168
- NC: 'New Caledonia',
169
- NZ: 'New Zealand',
170
- NI: 'Nicaragua',
171
- NE: 'Niger',
172
- NG: 'Nigeria',
173
- NU: 'Niue',
174
- NF: 'Norfolk Island',
175
- KP: 'North Korea',
176
- MK: 'North Macedonia',
177
- MP: 'Northern Mariana Islands',
178
- NO: 'Norway',
179
- OM: 'Oman',
180
- PK: 'Pakistan',
181
- PW: 'Palau',
182
- PS: 'Palestinian Territories',
183
- PA: 'Panama',
184
- PG: 'Papua New Guinea',
185
- PY: 'Paraguay',
186
- PE: 'Peru',
187
- PH: 'Philippines',
188
- PL: 'Poland',
189
- PT: 'Portugal',
190
- PR: 'Puerto Rico',
191
- QA: 'Qatar',
192
- RE: 'Réunion',
193
- RO: 'Romania',
194
- RU: 'Russia',
195
- RW: 'Rwanda',
196
- WS: 'Samoa',
197
- SM: 'San Marino',
198
- ST: 'São Tomé and Príncipe',
199
- SA: 'Saudi Arabia',
200
- SN: 'Senegal',
201
- RS: 'Serbia',
202
- SC: 'Seychelles',
203
- SL: 'Sierra Leone',
204
- SG: 'Singapore',
205
- SX: 'Sint Maarten',
206
- SK: 'Slovakia',
207
- SI: 'Slovenia',
208
- SB: 'Solomon Islands',
209
- SO: 'Somalia',
210
- ZA: 'South Africa',
211
- KR: 'South Korea',
212
- SS: 'South Sudan',
213
- ES: 'Spain',
214
- LK: 'Sri Lanka',
215
- BL: 'St. Barthélemy',
216
- SH: 'St. Helena',
217
- KN: 'St. Kitts and Nevis',
218
- LC: 'St. Lucia',
219
- MF: 'St. Martin',
220
- PM: 'St. Pierre and Miquelon',
221
- VC: 'St. Vincent and Grenadines',
222
- SD: 'Sudan',
223
- SR: 'Suriname',
224
- SJ: 'Svalbard and Jan Mayen',
225
- SE: 'Sweden',
226
- CH: 'Switzerland',
227
- SY: 'Syria',
228
- TW: 'Taiwan',
229
- TJ: 'Tajikistan',
230
- TZ: 'Tanzania',
231
- TH: 'Thailand',
232
- TL: 'Timor-Leste',
233
- TG: 'Togo',
234
- TK: 'Tokelau',
235
- TO: 'Tonga',
236
- TT: 'Trinidad and Tobago',
237
- TA: 'Tristan da Cunha',
238
- TN: 'Tunisia',
239
- TR: 'Türkiye',
240
- TM: 'Turkmenistan',
241
- TC: 'Turks and Caicos Islands',
242
- TV: 'Tuvalu',
243
- VI: 'U.S. Virgin Islands',
244
- UG: 'Uganda',
245
- UA: 'Ukraine',
246
- AE: 'United Arab Emirates',
247
- GB: 'United Kingdom',
248
- US: 'United States',
249
- UY: 'Uruguay',
250
- UZ: 'Uzbekistan',
251
- VU: 'Vanuatu',
252
- VA: 'Vatican City',
253
- VE: 'Venezuela',
254
- VN: 'Vietnam',
255
- WF: 'Wallis and Futuna',
256
- EH: 'Western Sahara',
257
- YE: 'Yemen',
258
- ZM: 'Zambia',
259
- ZW: 'Zimbabwe'
260
- };
261
- //# sourceMappingURL=countries.js.map
1
+ export const PHONE_COUNTRY_NAMES={AF:"Afghanistan",AX:"Åland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AC:"Ascension Island",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BA:"Bosnia and Herzegovina",BW:"Botswana",BR:"Brazil",IO:"British Indian Ocean Territory",VG:"British Virgin Islands",BN:"Brunei",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",BQ:"Caribbean Netherlands",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo - Brazzaville",CD:"Congo - Kinshasa",CK:"Cook Islands",CR:"Costa Rica",CI:"Côte d’Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curaçao",CY:"Cyprus",CZ:"Czechia",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",SZ:"Eswatini",ET:"Ethiopia",FK:"Falkland Islands",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HN:"Honduras",HK:"Hong Kong SAR China",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",XK:"Kosovo",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Laos",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao SAR China",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia",MD:"Moldova",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar (Burma)",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",KP:"North Korea",MK:"North Macedonia",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestinian Territories",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Réunion",RO:"Romania",RU:"Russia",RW:"Rwanda",WS:"Samoa",SM:"San Marino",ST:"São Tomé and Príncipe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",KR:"South Korea",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",BL:"St. Barthélemy",SH:"St. Helena",KN:"St. Kitts and Nevis",LC:"St. Lucia",MF:"St. Martin",PM:"St. Pierre and Miquelon",VC:"St. Vincent and Grenadines",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SE:"Sweden",CH:"Switzerland",SY:"Syria",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TA:"Tristan da Cunha",TN:"Tunisia",TR:"Türkiye",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",VI:"U.S. Virgin Islands",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VA:"Vatican City",VE:"Venezuela",VN:"Vietnam",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"};
@@ -1,4 +1 @@
1
- "use strict";
2
-
3
- export { disablePush, enablePush, initPush, notifyLocal, onAction, setBadgeCount, setCategories, setPushImplementation, usePush } from "./push.js";
4
- //# sourceMappingURL=index.js.map
1
+ export{disablePush,enablePush,initPush,notifyLocal,onAction,setBadgeCount,setCategories,setPushImplementation,usePush}from"./push.js";export{PUSH_STATUS}from"./status.js";