@webority/mobile-core 0.0.29 → 0.2.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 (242) hide show
  1. package/README.md +32 -0
  2. package/lib/commonjs/api/baseUrl.js +1 -34
  3. package/lib/commonjs/api/clientHeaders.js +1 -0
  4. package/lib/commonjs/api/curl.js +1 -109
  5. package/lib/commonjs/api/minAppVersion.js +1 -0
  6. package/lib/commonjs/api/multipart.js +1 -21
  7. package/lib/commonjs/api/publicClient.js +1 -79
  8. package/lib/commonjs/api/requestDefaults.js +1 -0
  9. package/lib/commonjs/api/responseBodyText.js +1 -0
  10. package/lib/commonjs/api/retry.js +1 -91
  11. package/lib/commonjs/api/tokenRefresh.js +1 -205
  12. package/lib/commonjs/api/userClient.js +1 -265
  13. package/lib/commonjs/auth/authStore.js +1 -265
  14. package/lib/commonjs/auth/index.js +1 -44
  15. package/lib/commonjs/auth/jwt.js +1 -112
  16. package/lib/commonjs/config/index.js +1 -72
  17. package/lib/commonjs/deepLink/index.js +1 -286
  18. package/lib/commonjs/download/adapters/expoFs.js +1 -69
  19. package/lib/commonjs/download/adapters/shared.js +1 -13
  20. package/lib/commonjs/download/index.js +1 -250
  21. package/lib/commonjs/errors/extractApiError.js +1 -0
  22. package/lib/commonjs/errors/index.js +1 -0
  23. package/lib/commonjs/formatters/currency.js +1 -70
  24. package/lib/commonjs/formatters/date.js +1 -167
  25. package/lib/commonjs/formatters/dateMath.js +1 -311
  26. package/lib/commonjs/formatters/formatConfig.js +1 -0
  27. package/lib/commonjs/formatters/house.js +1 -0
  28. package/lib/commonjs/formatters/index.js +1 -246
  29. package/lib/commonjs/formatters/initials.js +1 -32
  30. package/lib/commonjs/formatters/intlCache.js +1 -37
  31. package/lib/commonjs/formatters/number.js +1 -89
  32. package/lib/commonjs/formatters/phone.js +1 -369
  33. package/lib/commonjs/formatters/windowsToIanaTable.js +1 -164
  34. package/lib/commonjs/geolocation/adapters/expoLocation.js +1 -126
  35. package/lib/commonjs/geolocation/index.js +1 -355
  36. package/lib/commonjs/index.js +1 -644
  37. package/lib/commonjs/initSDK.js +1 -66
  38. package/lib/commonjs/initUserAuth.js +1 -37
  39. package/lib/commonjs/logger/crashlytics.js +1 -0
  40. package/lib/commonjs/logger/index.js +1 -301
  41. package/lib/commonjs/logger/redact.js +1 -50
  42. package/lib/commonjs/network/index.js +1 -31
  43. package/lib/commonjs/network/networkStatus.js +1 -171
  44. package/lib/commonjs/permissions/calendar.js +1 -14
  45. package/lib/commonjs/permissions/camera.js +1 -14
  46. package/lib/commonjs/permissions/contacts.js +1 -10
  47. package/lib/commonjs/permissions/index.js +1 -133
  48. package/lib/commonjs/permissions/location.js +1 -14
  49. package/lib/commonjs/permissions/mediaLibrary.js +1 -10
  50. package/lib/commonjs/permissions/notifications.js +1 -10
  51. package/lib/commonjs/permissions/photos.js +1 -14
  52. package/lib/commonjs/phone/countries.js +1 -265
  53. package/lib/commonjs/push/index.js +1 -61
  54. package/lib/commonjs/push/push.js +1 -468
  55. package/lib/commonjs/push/status.js +1 -0
  56. package/lib/commonjs/push/task.js +1 -43
  57. package/lib/commonjs/query/apiBaseQuery.js +1 -0
  58. package/lib/commonjs/query/createAppApi.js +1 -0
  59. package/lib/commonjs/query/index.js +1 -0
  60. package/lib/commonjs/query/listeners.js +1 -0
  61. package/lib/commonjs/query/paging.js +1 -0
  62. package/lib/commonjs/query/tags.js +1 -0
  63. package/lib/commonjs/redux/errorToastMiddleware.js +1 -0
  64. package/lib/commonjs/redux/index.js +1 -0
  65. package/lib/commonjs/redux/rootReducer.js +1 -0
  66. package/lib/commonjs/redux/serializableCheck.js +1 -0
  67. package/lib/commonjs/secureScreen/index.js +1 -0
  68. package/lib/commonjs/share/index.js +1 -70
  69. package/lib/commonjs/smsRetriever/index.js +1 -91
  70. package/lib/commonjs/specs/NativeSmsRetriever.js +1 -15
  71. package/lib/commonjs/sqlite/adapters/expo.js +1 -53
  72. package/lib/commonjs/sqlite/index.js +1 -604
  73. package/lib/commonjs/storage/index.js +1 -214
  74. package/lib/commonjs/types/axios.js +1 -4
  75. package/lib/commonjs/types/globals.d.js +1 -6
  76. package/lib/commonjs/utils/base64.js +1 -24
  77. package/lib/commonjs/utils/imageCompression.js +1 -389
  78. package/lib/commonjs/utils/index.js +1 -19
  79. package/lib/commonjs/validators/index.js +1 -227
  80. package/lib/commonjs/versionCheck/buildNumber.js +1 -0
  81. package/lib/commonjs/versionCheck/index.js +1 -419
  82. package/lib/module/api/baseUrl.js +1 -30
  83. package/lib/module/api/clientHeaders.js +1 -0
  84. package/lib/module/api/curl.js +1 -104
  85. package/lib/module/api/minAppVersion.js +1 -0
  86. package/lib/module/api/multipart.js +1 -16
  87. package/lib/module/api/publicClient.js +1 -75
  88. package/lib/module/api/requestDefaults.js +1 -0
  89. package/lib/module/api/responseBodyText.js +1 -0
  90. package/lib/module/api/retry.js +1 -85
  91. package/lib/module/api/tokenRefresh.js +1 -192
  92. package/lib/module/api/userClient.js +1 -243
  93. package/lib/module/auth/authStore.js +1 -257
  94. package/lib/module/auth/index.js +1 -5
  95. package/lib/module/auth/jwt.js +1 -106
  96. package/lib/module/config/index.js +1 -64
  97. package/lib/module/deepLink/index.js +1 -280
  98. package/lib/module/download/adapters/expoFs.js +1 -64
  99. package/lib/module/download/adapters/shared.js +1 -8
  100. package/lib/module/download/index.js +1 -242
  101. package/lib/module/errors/extractApiError.js +1 -0
  102. package/lib/module/errors/index.js +1 -0
  103. package/lib/module/formatters/currency.js +1 -65
  104. package/lib/module/formatters/date.js +1 -159
  105. package/lib/module/formatters/dateMath.js +1 -295
  106. package/lib/module/formatters/formatConfig.js +1 -0
  107. package/lib/module/formatters/house.js +1 -0
  108. package/lib/module/formatters/index.js +1 -9
  109. package/lib/module/formatters/initials.js +1 -27
  110. package/lib/module/formatters/intlCache.js +1 -30
  111. package/lib/module/formatters/number.js +1 -82
  112. package/lib/module/formatters/phone.js +1 -302
  113. package/lib/module/formatters/windowsToIanaTable.js +1 -160
  114. package/lib/module/geolocation/adapters/expoLocation.js +1 -121
  115. package/lib/module/geolocation/index.js +1 -347
  116. package/lib/module/index.js +1 -57
  117. package/lib/module/initSDK.js +1 -61
  118. package/lib/module/initUserAuth.js +1 -33
  119. package/lib/module/logger/crashlytics.js +1 -0
  120. package/lib/module/logger/index.js +1 -295
  121. package/lib/module/logger/redact.js +1 -44
  122. package/lib/module/network/index.js +1 -4
  123. package/lib/module/network/networkStatus.js +1 -161
  124. package/lib/module/permissions/calendar.js +1 -15
  125. package/lib/module/permissions/camera.js +1 -15
  126. package/lib/module/permissions/contacts.js +1 -11
  127. package/lib/module/permissions/index.js +1 -128
  128. package/lib/module/permissions/location.js +1 -15
  129. package/lib/module/permissions/mediaLibrary.js +1 -11
  130. package/lib/module/permissions/notifications.js +1 -11
  131. package/lib/module/permissions/photos.js +1 -15
  132. package/lib/module/phone/countries.js +1 -261
  133. package/lib/module/push/index.js +1 -4
  134. package/lib/module/push/push.js +1 -452
  135. package/lib/module/push/status.js +1 -0
  136. package/lib/module/push/task.js +1 -38
  137. package/lib/module/query/apiBaseQuery.js +1 -0
  138. package/lib/module/query/createAppApi.js +1 -0
  139. package/lib/module/query/index.js +1 -0
  140. package/lib/module/query/listeners.js +1 -0
  141. package/lib/module/query/paging.js +1 -0
  142. package/lib/module/query/tags.js +1 -0
  143. package/lib/module/redux/errorToastMiddleware.js +1 -0
  144. package/lib/module/redux/index.js +1 -0
  145. package/lib/module/redux/rootReducer.js +1 -0
  146. package/lib/module/redux/serializableCheck.js +1 -0
  147. package/lib/module/secureScreen/index.js +1 -0
  148. package/lib/module/share/index.js +1 -64
  149. package/lib/module/smsRetriever/index.js +1 -86
  150. package/lib/module/specs/NativeSmsRetriever.js +1 -13
  151. package/lib/module/sqlite/adapters/expo.js +1 -48
  152. package/lib/module/sqlite/index.js +1 -594
  153. package/lib/module/storage/index.js +1 -208
  154. package/lib/module/types/axios.js +1 -4
  155. package/lib/module/types/globals.d.js +1 -10
  156. package/lib/module/utils/base64.js +1 -19
  157. package/lib/module/utils/imageCompression.js +1 -383
  158. package/lib/module/utils/index.js +1 -4
  159. package/lib/module/validators/index.js +1 -205
  160. package/lib/module/versionCheck/buildNumber.js +1 -0
  161. package/lib/module/versionCheck/index.js +1 -413
  162. package/lib/typescript/commonjs/api/clientHeaders.d.ts +25 -0
  163. package/lib/typescript/commonjs/api/minAppVersion.d.ts +24 -0
  164. package/lib/typescript/commonjs/api/requestDefaults.d.ts +21 -0
  165. package/lib/typescript/commonjs/api/responseBodyText.d.ts +6 -0
  166. package/lib/typescript/commonjs/api/retry.d.ts +23 -9
  167. package/lib/typescript/commonjs/api/tokenRefresh.d.ts +14 -2
  168. package/lib/typescript/commonjs/api/userClient.d.ts +1 -1
  169. package/lib/typescript/commonjs/auth/authStore.d.ts +76 -0
  170. package/lib/typescript/commonjs/auth/index.d.ts +2 -2
  171. package/lib/typescript/commonjs/config/index.d.ts +31 -2
  172. package/lib/typescript/commonjs/errors/extractApiError.d.ts +69 -0
  173. package/lib/typescript/commonjs/errors/index.d.ts +3 -0
  174. package/lib/typescript/commonjs/formatters/currency.d.ts +22 -7
  175. package/lib/typescript/commonjs/formatters/date.d.ts +13 -13
  176. package/lib/typescript/commonjs/formatters/dateMath.d.ts +4 -2
  177. package/lib/typescript/commonjs/formatters/formatConfig.d.ts +48 -0
  178. package/lib/typescript/commonjs/formatters/house.d.ts +143 -0
  179. package/lib/typescript/commonjs/formatters/index.d.ts +4 -0
  180. package/lib/typescript/commonjs/formatters/number.d.ts +15 -5
  181. package/lib/typescript/commonjs/index.d.ts +26 -8
  182. package/lib/typescript/commonjs/initSDK.d.ts +18 -6
  183. package/lib/typescript/commonjs/initUserAuth.d.ts +29 -0
  184. package/lib/typescript/commonjs/logger/crashlytics.d.ts +31 -0
  185. package/lib/typescript/commonjs/logger/index.d.ts +17 -0
  186. package/lib/typescript/commonjs/push/index.d.ts +3 -1
  187. package/lib/typescript/commonjs/push/push.d.ts +1 -1
  188. package/lib/typescript/commonjs/push/status.d.ts +9 -0
  189. package/lib/typescript/commonjs/query/apiBaseQuery.d.ts +55 -0
  190. package/lib/typescript/commonjs/query/createAppApi.d.ts +21 -0
  191. package/lib/typescript/commonjs/query/index.d.ts +9 -0
  192. package/lib/typescript/commonjs/query/listeners.d.ts +11 -0
  193. package/lib/typescript/commonjs/query/paging.d.ts +42 -0
  194. package/lib/typescript/commonjs/query/tags.d.ts +31 -0
  195. package/lib/typescript/commonjs/redux/errorToastMiddleware.d.ts +51 -0
  196. package/lib/typescript/commonjs/redux/index.d.ts +6 -0
  197. package/lib/typescript/commonjs/redux/rootReducer.d.ts +19 -0
  198. package/lib/typescript/commonjs/redux/serializableCheck.d.ts +14 -0
  199. package/lib/typescript/commonjs/secureScreen/index.d.ts +25 -0
  200. package/lib/typescript/commonjs/versionCheck/buildNumber.d.ts +14 -0
  201. package/lib/typescript/commonjs/versionCheck/index.d.ts +28 -17
  202. package/lib/typescript/module/api/clientHeaders.d.ts +25 -0
  203. package/lib/typescript/module/api/minAppVersion.d.ts +24 -0
  204. package/lib/typescript/module/api/requestDefaults.d.ts +21 -0
  205. package/lib/typescript/module/api/responseBodyText.d.ts +6 -0
  206. package/lib/typescript/module/api/retry.d.ts +23 -9
  207. package/lib/typescript/module/api/tokenRefresh.d.ts +14 -2
  208. package/lib/typescript/module/api/userClient.d.ts +1 -1
  209. package/lib/typescript/module/auth/authStore.d.ts +76 -0
  210. package/lib/typescript/module/auth/index.d.ts +2 -2
  211. package/lib/typescript/module/config/index.d.ts +31 -2
  212. package/lib/typescript/module/errors/extractApiError.d.ts +69 -0
  213. package/lib/typescript/module/errors/index.d.ts +3 -0
  214. package/lib/typescript/module/formatters/currency.d.ts +22 -7
  215. package/lib/typescript/module/formatters/date.d.ts +13 -13
  216. package/lib/typescript/module/formatters/dateMath.d.ts +4 -2
  217. package/lib/typescript/module/formatters/formatConfig.d.ts +48 -0
  218. package/lib/typescript/module/formatters/house.d.ts +143 -0
  219. package/lib/typescript/module/formatters/index.d.ts +4 -0
  220. package/lib/typescript/module/formatters/number.d.ts +15 -5
  221. package/lib/typescript/module/index.d.ts +26 -8
  222. package/lib/typescript/module/initSDK.d.ts +18 -6
  223. package/lib/typescript/module/initUserAuth.d.ts +29 -0
  224. package/lib/typescript/module/logger/crashlytics.d.ts +31 -0
  225. package/lib/typescript/module/logger/index.d.ts +17 -0
  226. package/lib/typescript/module/push/index.d.ts +3 -1
  227. package/lib/typescript/module/push/push.d.ts +1 -1
  228. package/lib/typescript/module/push/status.d.ts +9 -0
  229. package/lib/typescript/module/query/apiBaseQuery.d.ts +55 -0
  230. package/lib/typescript/module/query/createAppApi.d.ts +21 -0
  231. package/lib/typescript/module/query/index.d.ts +9 -0
  232. package/lib/typescript/module/query/listeners.d.ts +11 -0
  233. package/lib/typescript/module/query/paging.d.ts +42 -0
  234. package/lib/typescript/module/query/tags.d.ts +31 -0
  235. package/lib/typescript/module/redux/errorToastMiddleware.d.ts +51 -0
  236. package/lib/typescript/module/redux/index.d.ts +6 -0
  237. package/lib/typescript/module/redux/rootReducer.d.ts +19 -0
  238. package/lib/typescript/module/redux/serializableCheck.d.ts +14 -0
  239. package/lib/typescript/module/secureScreen/index.d.ts +25 -0
  240. package/lib/typescript/module/versionCheck/buildNumber.d.ts +14 -0
  241. package/lib/typescript/module/versionCheck/index.d.ts +28 -17
  242. package/package.json +52 -5
@@ -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
+ "use strict";import{Linking}from"react-native";import{Logger}from"../logger/index.js";let backend=null;export const setPermissionsImplementation=e=>{backend=e};const registry=new Map;export const registerPermissionAdapter=(e,t)=>{registry.set(e,t)};const resolveExpoModule=e=>registry.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(backend)return backend.check(e);const t=resolveExpoModule(e);if(!t)return"unavailable";try{return toStatus(await t.check())}catch(t){return Logger.error(`[permissions] check(${e}) failed`,t),"unavailable"}},requestPermission=async e=>{if(backend)return backend.request(e);const t=resolveExpoModule(e);if(!t)return"unavailable";try{return toStatus(await t.request())}catch(t){return Logger.error(`[permissions] request(${e}) failed`,t),"unavailable"}},openAppSettings=async()=>{try{return await Linking.openSettings(),!0}catch(e){return Logger.error("[permissions] openAppSettings failed",e),!1}};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:openAppSettings};
@@ -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
+ "use strict";import{registerPermissionAdapter}from"./index.js";const m=require("expo-location");registerPermissionAdapter("location",{check:m.getForegroundPermissionsAsync,request:m.requestForegroundPermissionsAsync}),registerPermissionAdapter("locationAlways",{check:m.getBackgroundPermissionsAsync,request:m.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
+ "use strict";import{registerPermissionAdapter}from"./index.js";const m=require("expo-media-library");registerPermissionAdapter("mediaLibrary",{check:m.getPermissionsAsync,request:m.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
+ "use strict";import{registerPermissionAdapter}from"./index.js";const m=require("expo-notifications");registerPermissionAdapter("notifications",{check:m.getPermissionsAsync,request:m.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
+ "use strict";import{registerPermissionAdapter}from"./index.js";const m=require("expo-image-picker");registerPermissionAdapter("photos",{check:()=>m.getMediaLibraryPermissionsAsync(!1),request:()=>m.requestMediaLibraryPermissionsAsync(!1)}),registerPermissionAdapter("photosAdd",{check:()=>m.getMediaLibraryPermissionsAsync(!0),request:()=>m.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
+ "use strict";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
+ "use strict";export{disablePush,enablePush,initPush,notifyLocal,onAction,setBadgeCount,setCategories,setPushImplementation,usePush}from"./push.js";export{PUSH_STATUS}from"./status.js";