@angular/fire 7.6.0 → 16.0.0-canary.4172abd

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 (513) hide show
  1. package/analytics/analytics.module.d.ts +2 -2
  2. package/analytics/is-analytics-supported-factory.d.ts +4 -0
  3. package/analytics/screen-tracking.service.d.ts +3 -3
  4. package/app-check/app-check.d.ts +0 -6
  5. package/app-check/app-check.module.d.ts +3 -4
  6. package/app-check/public_api.d.ts +2 -1
  7. package/auth/auth.module.d.ts +2 -2
  8. package/auth-guard/auth-guard.d.ts +6 -6
  9. package/compat/analytics/analytics.d.ts +1 -3
  10. package/compat/analytics/analytics.module.d.ts +1 -1
  11. package/compat/analytics/screen-tracking.service.d.ts +1 -1
  12. package/compat/analytics/user-tracking.service.d.ts +1 -1
  13. package/compat/auth/auth.d.ts +4 -4
  14. package/compat/auth-guard/auth-guard.d.ts +8 -6
  15. package/compat/database/database.d.ts +4 -4
  16. package/compat/database/interfaces.d.ts +14 -14
  17. package/compat/database/list/audit-trail.d.ts +1 -1
  18. package/compat/database/list/create-reference.d.ts +1 -1
  19. package/compat/database/list/data-operation.d.ts +1 -1
  20. package/compat/database/list/state-changes.d.ts +1 -1
  21. package/compat/database/object/create-reference.d.ts +1 -1
  22. package/compat/database/observable/fromRef.d.ts +1 -1
  23. package/compat/database/utils.d.ts +1 -1
  24. package/compat/firebase.app.module.d.ts +1 -1
  25. package/compat/firestore/collection/collection.d.ts +2 -2
  26. package/compat/firestore/collection-group/collection-group.d.ts +2 -2
  27. package/compat/firestore/document/document.d.ts +4 -4
  28. package/compat/firestore/firestore.d.ts +7 -7
  29. package/compat/firestore/interfaces.d.ts +19 -19
  30. package/compat/functions/functions.d.ts +3 -3
  31. package/compat/messaging/messaging.d.ts +2 -2
  32. package/compat/performance/performance.d.ts +2 -2
  33. package/compat/proxy.d.ts +8 -8
  34. package/compat/remote-config/interfaces.d.ts +1 -1
  35. package/compat/remote-config/remote-config.d.ts +15 -49
  36. package/compat/storage/interfaces.d.ts +8 -8
  37. package/compat/storage/observable/fromTask.d.ts +1 -2
  38. package/compat/storage/pipes/storageUrl.pipe.d.ts +1 -1
  39. package/compat/storage/ref.d.ts +1 -1
  40. package/compat/storage/storage.d.ts +3 -3
  41. package/compat/storage/task.d.ts +1 -1
  42. package/core.d.ts +8 -12
  43. package/database/database.module.d.ts +2 -2
  44. package/{esm2015/analytics/analytics.js → esm2022/analytics/analytics.mjs} +1 -1
  45. package/esm2022/analytics/analytics.module.mjs +94 -0
  46. package/esm2022/analytics/is-analytics-supported-factory.mjs +16 -0
  47. package/esm2022/analytics/overrides.mjs +3 -0
  48. package/esm2022/analytics/screen-tracking.service.mjs +148 -0
  49. package/esm2022/analytics/user-tracking.service.mjs +44 -0
  50. package/{esm2015/app/app.js → esm2022/app/app.mjs} +1 -1
  51. package/esm2022/app/app.module.mjs +85 -0
  52. package/esm2022/app-check/app-check.mjs +10 -0
  53. package/esm2022/app-check/app-check.module.mjs +78 -0
  54. package/esm2022/app-check/public_api.mjs +5 -0
  55. package/{esm2015/auth/auth.js → esm2022/auth/auth.mjs} +1 -1
  56. package/esm2022/auth/auth.module.mjs +71 -0
  57. package/esm2022/auth-guard/auth-guard.mjs +53 -0
  58. package/{esm2015/auth-guard/auth-guard.module.js → esm2022/auth-guard/auth-guard.module.mjs} +7 -7
  59. package/esm2022/compat/analytics/analytics.mjs +160 -0
  60. package/esm2022/compat/analytics/analytics.module.mjs +35 -0
  61. package/esm2022/compat/analytics/screen-tracking.service.mjs +49 -0
  62. package/esm2022/compat/analytics/user-tracking.service.mjs +53 -0
  63. package/esm2022/compat/auth/auth.mjs +161 -0
  64. package/{esm2015/compat/auth/auth.module.js → esm2022/compat/auth/auth.module.mjs} +7 -7
  65. package/{esm2015/compat/auth/public_api.js → esm2022/compat/auth/public_api.mjs} +1 -1
  66. package/esm2022/compat/auth-guard/auth-guard.mjs +53 -0
  67. package/{esm2015/compat/auth-guard/auth-guard.module.js → esm2022/compat/auth-guard/auth-guard.module.mjs} +7 -7
  68. package/{esm2015/compat/cache.js → esm2022/compat/cache.mjs} +4 -3
  69. package/esm2022/compat/database/database.mjs +119 -0
  70. package/{esm2015/compat/database/database.module.js → esm2022/compat/database/database.module.mjs} +7 -7
  71. package/esm2022/compat/database/interfaces.mjs +2 -0
  72. package/{esm2015/compat/database/list/audit-trail.js → esm2022/compat/database/list/audit-trail.mjs} +3 -3
  73. package/esm2022/compat/database/list/changes.mjs +85 -0
  74. package/esm2022/compat/database/list/create-reference.mjs +44 -0
  75. package/{esm2015/compat/database/list/data-operation.js → esm2022/compat/database/list/data-operation.mjs} +1 -1
  76. package/{esm2015/compat/database/list/snapshot-changes.js → esm2022/compat/database/list/snapshot-changes.mjs} +1 -1
  77. package/{esm2015/compat/database/list/state-changes.js → esm2022/compat/database/list/state-changes.mjs} +2 -2
  78. package/{esm2015/compat/database/object/create-reference.js → esm2022/compat/database/object/create-reference.mjs} +2 -2
  79. package/{esm2015/compat/database/object/snapshot-changes.js → esm2022/compat/database/object/snapshot-changes.mjs} +1 -1
  80. package/esm2022/compat/database/observable/fromRef.mjs +48 -0
  81. package/{esm2015/compat/database/utils.js → esm2022/compat/database/utils.mjs} +1 -1
  82. package/{esm2015/compat/firebase.app.js → esm2022/compat/firebase.app.mjs} +1 -1
  83. package/esm2022/compat/firebase.app.module.mjs +71 -0
  84. package/esm2022/compat/firestore/collection/changes.mjs +108 -0
  85. package/esm2022/compat/firestore/collection/collection.mjs +123 -0
  86. package/esm2022/compat/firestore/collection-group/collection-group.mjs +86 -0
  87. package/esm2022/compat/firestore/document/document.mjs +87 -0
  88. package/esm2022/compat/firestore/firestore.mjs +257 -0
  89. package/{esm2015/compat/firestore/firestore.module.js → esm2022/compat/firestore/firestore.module.mjs} +7 -7
  90. package/esm2022/compat/firestore/interfaces.mjs +2 -0
  91. package/esm2022/compat/firestore/observable/fromRef.mjs +40 -0
  92. package/esm2022/compat/functions/functions.mjs +69 -0
  93. package/{esm2015/compat/functions/functions.module.js → esm2022/compat/functions/functions.module.mjs} +7 -7
  94. package/{esm2015/compat/functions/public_api.js → esm2022/compat/functions/public_api.mjs} +1 -1
  95. package/esm2022/compat/messaging/messaging.mjs +81 -0
  96. package/{esm2015/compat/messaging/messaging.module.js → esm2022/compat/messaging/messaging.module.mjs} +7 -7
  97. package/esm2022/compat/performance/performance.mjs +105 -0
  98. package/esm2022/compat/performance/performance.module.mjs +27 -0
  99. package/esm2022/compat/performance/performance.service.mjs +28 -0
  100. package/esm2022/compat/proxy.mjs +58 -0
  101. package/esm2022/compat/remote-config/remote-config.mjs +206 -0
  102. package/{esm2015/compat/remote-config/remote-config.module.js → esm2022/compat/remote-config/remote-config.module.mjs} +7 -7
  103. package/esm2022/compat/storage/observable/fromTask.mjs +36 -0
  104. package/esm2022/compat/storage/pipes/storageUrl.pipe.mjs +58 -0
  105. package/{esm2015/compat/storage/ref.js → esm2022/compat/storage/ref.mjs} +3 -3
  106. package/esm2022/compat/storage/storage.mjs +95 -0
  107. package/esm2022/compat/storage/storage.module.mjs +22 -0
  108. package/{esm2015/compat/storage/task.js → esm2022/compat/storage/task.mjs} +2 -2
  109. package/esm2022/core.mjs +43 -0
  110. package/{esm2015/database/database.js → esm2022/database/database.mjs} +1 -1
  111. package/esm2022/database/database.module.mjs +74 -0
  112. package/{esm2015/firestore/firestore.js → esm2022/firestore/firestore.mjs} +1 -1
  113. package/esm2022/firestore/firestore.module.mjs +74 -0
  114. package/{esm2015/firestore/lite/lite.js → esm2022/firestore/lite/lite.mjs} +1 -1
  115. package/esm2022/firestore/lite/lite.module.mjs +73 -0
  116. package/esm2022/firestore/rxfire.mjs +15 -0
  117. package/{esm2015/functions/functions.js → esm2022/functions/functions.mjs} +1 -1
  118. package/esm2022/functions/functions.module.mjs +74 -0
  119. package/esm2022/messaging/is-messaging-supported-factory.mjs +16 -0
  120. package/{esm2015/messaging/messaging.js → esm2022/messaging/messaging.mjs} +1 -1
  121. package/esm2022/messaging/messaging.module.mjs +86 -0
  122. package/esm2022/messaging/overrides.mjs +3 -0
  123. package/{esm2015/performance/performance.js → esm2022/performance/performance.mjs} +1 -1
  124. package/esm2022/performance/performance.module.mjs +81 -0
  125. package/esm2022/remote-config/is-remote-config-supported-factory.mjs +16 -0
  126. package/esm2022/remote-config/overrides.mjs +3 -0
  127. package/{esm2015/remote-config/remote-config.js → esm2022/remote-config/remote-config.mjs} +1 -1
  128. package/esm2022/remote-config/remote-config.module.mjs +86 -0
  129. package/{esm2015/storage/storage.js → esm2022/storage/storage.mjs} +1 -1
  130. package/esm2022/storage/storage.module.mjs +74 -0
  131. package/esm2022/zones.mjs +194 -0
  132. package/{fesm2015/angular-fire-analytics.js → fesm2022/angular-fire-analytics.mjs} +64 -40
  133. package/fesm2022/angular-fire-analytics.mjs.map +1 -0
  134. package/{fesm2015/angular-fire-app-check.js → fesm2022/angular-fire-app-check.mjs} +16 -24
  135. package/fesm2022/angular-fire-app-check.mjs.map +1 -0
  136. package/{fesm2015/angular-fire-app.js → fesm2022/angular-fire-app.mjs} +10 -9
  137. package/fesm2022/angular-fire-app.mjs.map +1 -0
  138. package/{fesm2015/angular-fire-auth-guard.js → fesm2022/angular-fire-auth-guard.mjs} +31 -27
  139. package/fesm2022/angular-fire-auth-guard.mjs.map +1 -0
  140. package/{fesm2015/angular-fire-auth.js → fesm2022/angular-fire-auth.mjs} +10 -11
  141. package/fesm2022/angular-fire-auth.mjs.map +1 -0
  142. package/{fesm2015/angular-fire-compat-analytics.js → fesm2022/angular-fire-compat-analytics.mjs} +43 -41
  143. package/fesm2022/angular-fire-compat-analytics.mjs.map +1 -0
  144. package/{fesm2015/angular-fire-compat-auth-guard.js → fesm2022/angular-fire-compat-auth-guard.mjs} +30 -26
  145. package/fesm2022/angular-fire-compat-auth-guard.mjs.map +1 -0
  146. package/{fesm2015/angular-fire-compat-auth.js → fesm2022/angular-fire-compat-auth.mjs} +38 -16
  147. package/fesm2022/angular-fire-compat-auth.mjs.map +1 -0
  148. package/{fesm2015/angular-fire-compat-database.js → fesm2022/angular-fire-compat-database.mjs} +138 -132
  149. package/fesm2022/angular-fire-compat-database.mjs.map +1 -0
  150. package/{fesm2015/angular-fire-compat-firestore.js → fesm2022/angular-fire-compat-firestore.mjs} +119 -98
  151. package/fesm2022/angular-fire-compat-firestore.mjs.map +1 -0
  152. package/{fesm2015/angular-fire-compat-functions.js → fesm2022/angular-fire-compat-functions.mjs} +13 -12
  153. package/fesm2022/angular-fire-compat-functions.mjs.map +1 -0
  154. package/{fesm2015/angular-fire-compat-messaging.js → fesm2022/angular-fire-compat-messaging.mjs} +25 -19
  155. package/fesm2022/angular-fire-compat-messaging.mjs.map +1 -0
  156. package/{fesm2015/angular-fire-compat-performance.js → fesm2022/angular-fire-compat-performance.mjs} +29 -34
  157. package/fesm2022/angular-fire-compat-performance.mjs.map +1 -0
  158. package/{fesm2015/angular-fire-compat-remote-config.js → fesm2022/angular-fire-compat-remote-config.mjs} +35 -22
  159. package/fesm2022/angular-fire-compat-remote-config.mjs.map +1 -0
  160. package/{fesm2015/angular-fire-compat-storage.js → fesm2022/angular-fire-compat-storage.mjs} +30 -23
  161. package/fesm2022/angular-fire-compat-storage.mjs.map +1 -0
  162. package/{fesm2015/angular-fire-compat.js → fesm2022/angular-fire-compat.mjs} +25 -25
  163. package/fesm2022/angular-fire-compat.mjs.map +1 -0
  164. package/{fesm2015/angular-fire-database.js → fesm2022/angular-fire-database.mjs} +11 -12
  165. package/fesm2022/angular-fire-database.mjs.map +1 -0
  166. package/{fesm2015/angular-fire-firestore-lite.js → fesm2022/angular-fire-firestore-lite.mjs} +11 -12
  167. package/fesm2022/angular-fire-firestore-lite.mjs.map +1 -0
  168. package/{fesm2015/angular-fire-firestore.js → fesm2022/angular-fire-firestore.mjs} +15 -14
  169. package/fesm2022/angular-fire-firestore.mjs.map +1 -0
  170. package/{fesm2015/angular-fire-functions.js → fesm2022/angular-fire-functions.mjs} +12 -13
  171. package/fesm2022/angular-fire-functions.mjs.map +1 -0
  172. package/{fesm2015/angular-fire-messaging.js → fesm2022/angular-fire-messaging.mjs} +33 -19
  173. package/fesm2022/angular-fire-messaging.mjs.map +1 -0
  174. package/{fesm2015/angular-fire-performance.js → fesm2022/angular-fire-performance.mjs} +11 -11
  175. package/fesm2022/angular-fire-performance.mjs.map +1 -0
  176. package/{fesm2015/angular-fire-remote-config.js → fesm2022/angular-fire-remote-config.mjs} +34 -20
  177. package/fesm2022/angular-fire-remote-config.mjs.map +1 -0
  178. package/{fesm2015/angular-fire-storage.js → fesm2022/angular-fire-storage.mjs} +10 -11
  179. package/fesm2022/angular-fire-storage.mjs.map +1 -0
  180. package/{fesm2015/angular-fire.js → fesm2022/angular-fire.mjs} +33 -58
  181. package/fesm2022/angular-fire.mjs.map +1 -0
  182. package/firestore/firestore.module.d.ts +2 -2
  183. package/firestore/lite/lite.module.d.ts +2 -2
  184. package/firestore/rxfire.d.ts +3 -1
  185. package/functions/functions.module.d.ts +2 -2
  186. package/messaging/is-messaging-supported-factory.d.ts +4 -0
  187. package/messaging/messaging.module.d.ts +2 -2
  188. package/package.json +159 -9
  189. package/performance/performance.module.d.ts +2 -2
  190. package/publish.sh +1 -0
  191. package/remote-config/is-remote-config-supported-factory.d.ts +4 -0
  192. package/remote-config/remote-config.module.d.ts +2 -2
  193. package/schematics/add/index.js +2 -2
  194. package/schematics/common.js +9 -5
  195. package/schematics/deploy/actions.js +69 -69
  196. package/schematics/deploy/builder.js +7 -7
  197. package/schematics/firebaseTools.js +9 -5
  198. package/schematics/setup/index.js +27 -27
  199. package/schematics/setup/prompts.js +22 -18
  200. package/schematics/update/index.js +1 -1
  201. package/schematics/update/v7/index.js +7 -7
  202. package/schematics/utils.js +34 -34
  203. package/storage/storage.module.d.ts +2 -2
  204. package/README.md +0 -216
  205. package/analytics/package.json +0 -11
  206. package/app/package.json +0 -11
  207. package/app-check/package.json +0 -11
  208. package/auth/package.json +0 -11
  209. package/auth-guard/package.json +0 -11
  210. package/bundles/angular-fire-analytics.umd.js +0 -673
  211. package/bundles/angular-fire-analytics.umd.js.map +0 -1
  212. package/bundles/angular-fire-app-check.umd.js +0 -465
  213. package/bundles/angular-fire-app-check.umd.js.map +0 -1
  214. package/bundles/angular-fire-app.umd.js +0 -477
  215. package/bundles/angular-fire-app.umd.js.map +0 -1
  216. package/bundles/angular-fire-auth-guard.umd.js +0 -109
  217. package/bundles/angular-fire-auth-guard.umd.js.map +0 -1
  218. package/bundles/angular-fire-auth.umd.js +0 -557
  219. package/bundles/angular-fire-auth.umd.js.map +0 -1
  220. package/bundles/angular-fire-compat-analytics.umd.js +0 -672
  221. package/bundles/angular-fire-compat-analytics.umd.js.map +0 -1
  222. package/bundles/angular-fire-compat-auth-guard.umd.js +0 -112
  223. package/bundles/angular-fire-compat-auth-guard.umd.js.map +0 -1
  224. package/bundles/angular-fire-compat-auth.umd.js +0 -559
  225. package/bundles/angular-fire-compat-auth.umd.js.map +0 -1
  226. package/bundles/angular-fire-compat-database.umd.js +0 -799
  227. package/bundles/angular-fire-compat-database.umd.js.map +0 -1
  228. package/bundles/angular-fire-compat-firestore.umd.js +0 -1073
  229. package/bundles/angular-fire-compat-firestore.umd.js.map +0 -1
  230. package/bundles/angular-fire-compat-functions.umd.js +0 -443
  231. package/bundles/angular-fire-compat-functions.umd.js.map +0 -1
  232. package/bundles/angular-fire-compat-messaging.umd.js +0 -465
  233. package/bundles/angular-fire-compat-messaging.umd.js.map +0 -1
  234. package/bundles/angular-fire-compat-performance.umd.js +0 -212
  235. package/bundles/angular-fire-compat-performance.umd.js.map +0 -1
  236. package/bundles/angular-fire-compat-remote-config.umd.js +0 -605
  237. package/bundles/angular-fire-compat-remote-config.umd.js.map +0 -1
  238. package/bundles/angular-fire-compat-storage.umd.js +0 -598
  239. package/bundles/angular-fire-compat-storage.umd.js.map +0 -1
  240. package/bundles/angular-fire-compat.umd.js +0 -535
  241. package/bundles/angular-fire-compat.umd.js.map +0 -1
  242. package/bundles/angular-fire-database.umd.js +0 -557
  243. package/bundles/angular-fire-database.umd.js.map +0 -1
  244. package/bundles/angular-fire-firestore-lite.umd.js +0 -531
  245. package/bundles/angular-fire-firestore-lite.umd.js.map +0 -1
  246. package/bundles/angular-fire-firestore.umd.js +0 -565
  247. package/bundles/angular-fire-firestore.umd.js.map +0 -1
  248. package/bundles/angular-fire-functions.umd.js +0 -461
  249. package/bundles/angular-fire-functions.umd.js.map +0 -1
  250. package/bundles/angular-fire-messaging.umd.js +0 -473
  251. package/bundles/angular-fire-messaging.umd.js.map +0 -1
  252. package/bundles/angular-fire-performance.umd.js +0 -473
  253. package/bundles/angular-fire-performance.umd.js.map +0 -1
  254. package/bundles/angular-fire-remote-config.umd.js +0 -499
  255. package/bundles/angular-fire-remote-config.umd.js.map +0 -1
  256. package/bundles/angular-fire-storage.umd.js +0 -485
  257. package/bundles/angular-fire-storage.umd.js.map +0 -1
  258. package/bundles/angular-fire.umd.js +0 -308
  259. package/bundles/angular-fire.umd.js.map +0 -1
  260. package/compat/analytics/package.json +0 -11
  261. package/compat/auth/package.json +0 -11
  262. package/compat/auth-guard/package.json +0 -11
  263. package/compat/database/package.json +0 -11
  264. package/compat/firestore/package.json +0 -11
  265. package/compat/functions/package.json +0 -11
  266. package/compat/messaging/package.json +0 -11
  267. package/compat/package.json +0 -11
  268. package/compat/performance/package.json +0 -11
  269. package/compat/remote-config/package.json +0 -11
  270. package/compat/storage/package.json +0 -11
  271. package/database/package.json +0 -11
  272. package/docs/analytics.md +0 -67
  273. package/docs/app-check.md +0 -53
  274. package/docs/auth.md +0 -165
  275. package/docs/compat/analytics/getting-started.md +0 -137
  276. package/docs/compat/auth/getting-started.md +0 -162
  277. package/docs/compat/auth/router-guards.md +0 -104
  278. package/docs/compat/emulators/emulators.md +0 -134
  279. package/docs/compat/firestore/collections.md +0 -326
  280. package/docs/compat/firestore/documents.md +0 -115
  281. package/docs/compat/firestore/offline-data.md +0 -39
  282. package/docs/compat/firestore/querying-collections.md +0 -204
  283. package/docs/compat/functions/functions.md +0 -166
  284. package/docs/compat/messaging/messaging.md +0 -232
  285. package/docs/compat/performance/getting-started.md +0 -132
  286. package/docs/compat/remote-config/getting-started.md +0 -134
  287. package/docs/compat/rtdb/lists.md +0 -257
  288. package/docs/compat/rtdb/objects.md +0 -182
  289. package/docs/compat/rtdb/querying-lists.md +0 -155
  290. package/docs/compat/storage/storage.md +0 -257
  291. package/docs/compat.md +0 -70
  292. package/docs/database.md +0 -175
  293. package/docs/deploy/getting-started.md +0 -204
  294. package/docs/firebase.json +0 -16
  295. package/docs/firestore.md +0 -148
  296. package/docs/functions.md +0 -52
  297. package/docs/images/analytics-illo_1x.png +0 -0
  298. package/docs/images/auth-illo_1x.png +0 -0
  299. package/docs/images/cloud-messaging-illo_1x.png +0 -0
  300. package/docs/images/database-illo_1x.png +0 -0
  301. package/docs/images/firestore-illo_1x.png +0 -0
  302. package/docs/images/functions-illo_1x.png +0 -0
  303. package/docs/images/hosting-illo_1x.png +0 -0
  304. package/docs/images/performance-illo_1x.png +0 -0
  305. package/docs/images/reCAPTCHA-logo@1x.png +0 -0
  306. package/docs/images/remote-config-illo_1x.png +0 -0
  307. package/docs/images/storage-illo_1x.png +0 -0
  308. package/docs/install-and-setup.md +0 -114
  309. package/docs/install-angular-cli-windows10.md +0 -82
  310. package/docs/messaging.md +0 -25
  311. package/docs/performance.md +0 -57
  312. package/docs/remote-config.md +0 -53
  313. package/docs/storage.md +0 -90
  314. package/docs/universal/cloud-functions.md +0 -75
  315. package/docs/universal/getting-started.md +0 -153
  316. package/docs/universal/prerendering.md +0 -72
  317. package/docs/version-4-upgrade.md +0 -119
  318. package/docs/version-5-upgrade.md +0 -82
  319. package/docs/version-6-upgrade.md +0 -16
  320. package/docs/version-7-upgrade.md +0 -298
  321. package/esm2015/analytics/analytics.module.js +0 -93
  322. package/esm2015/analytics/overrides.js +0 -3
  323. package/esm2015/analytics/screen-tracking.service.js +0 -139
  324. package/esm2015/analytics/user-tracking.service.js +0 -43
  325. package/esm2015/app/app.module.js +0 -84
  326. package/esm2015/app-check/app-check.js +0 -16
  327. package/esm2015/app-check/app-check.module.js +0 -81
  328. package/esm2015/app-check/public_api.js +0 -4
  329. package/esm2015/auth/auth.module.js +0 -71
  330. package/esm2015/auth-guard/auth-guard.js +0 -49
  331. package/esm2015/compat/analytics/analytics.js +0 -163
  332. package/esm2015/compat/analytics/analytics.module.js +0 -32
  333. package/esm2015/compat/analytics/screen-tracking.service.js +0 -49
  334. package/esm2015/compat/analytics/user-tracking.service.js +0 -52
  335. package/esm2015/compat/auth/auth.js +0 -139
  336. package/esm2015/compat/auth-guard/auth-guard.js +0 -49
  337. package/esm2015/compat/database/database.js +0 -117
  338. package/esm2015/compat/database/interfaces.js +0 -2
  339. package/esm2015/compat/database/list/changes.js +0 -85
  340. package/esm2015/compat/database/list/create-reference.js +0 -41
  341. package/esm2015/compat/database/observable/fromRef.js +0 -47
  342. package/esm2015/compat/firebase.app.module.js +0 -69
  343. package/esm2015/compat/firestore/collection/changes.js +0 -107
  344. package/esm2015/compat/firestore/collection/collection.js +0 -117
  345. package/esm2015/compat/firestore/collection-group/collection-group.js +0 -81
  346. package/esm2015/compat/firestore/document/document.js +0 -82
  347. package/esm2015/compat/firestore/firestore.js +0 -254
  348. package/esm2015/compat/firestore/interfaces.js +0 -2
  349. package/esm2015/compat/firestore/observable/fromRef.js +0 -39
  350. package/esm2015/compat/functions/functions.js +0 -68
  351. package/esm2015/compat/messaging/messaging.js +0 -75
  352. package/esm2015/compat/performance/performance.js +0 -110
  353. package/esm2015/compat/performance/performance.module.js +0 -28
  354. package/esm2015/compat/performance/performance.service.js +0 -27
  355. package/esm2015/compat/proxy.js +0 -61
  356. package/esm2015/compat/remote-config/remote-config.js +0 -193
  357. package/esm2015/compat/storage/observable/fromTask.js +0 -34
  358. package/esm2015/compat/storage/pipes/storageUrl.pipe.js +0 -54
  359. package/esm2015/compat/storage/storage.js +0 -94
  360. package/esm2015/compat/storage/storage.module.js +0 -22
  361. package/esm2015/core.js +0 -79
  362. package/esm2015/database/database.module.js +0 -74
  363. package/esm2015/firestore/firestore.module.js +0 -74
  364. package/esm2015/firestore/lite/lite.module.js +0 -74
  365. package/esm2015/firestore/rxfire.js +0 -13
  366. package/esm2015/functions/functions.module.js +0 -74
  367. package/esm2015/messaging/messaging.module.js +0 -85
  368. package/esm2015/messaging/overrides.js +0 -3
  369. package/esm2015/performance/performance.module.js +0 -81
  370. package/esm2015/remote-config/overrides.js +0 -3
  371. package/esm2015/remote-config/remote-config.module.js +0 -85
  372. package/esm2015/storage/storage.module.js +0 -74
  373. package/esm2015/zones.js +0 -183
  374. package/fesm2015/angular-fire-analytics.js.map +0 -1
  375. package/fesm2015/angular-fire-app-check.js.map +0 -1
  376. package/fesm2015/angular-fire-app.js.map +0 -1
  377. package/fesm2015/angular-fire-auth-guard.js.map +0 -1
  378. package/fesm2015/angular-fire-auth.js.map +0 -1
  379. package/fesm2015/angular-fire-compat-analytics.js.map +0 -1
  380. package/fesm2015/angular-fire-compat-auth-guard.js.map +0 -1
  381. package/fesm2015/angular-fire-compat-auth.js.map +0 -1
  382. package/fesm2015/angular-fire-compat-database.js.map +0 -1
  383. package/fesm2015/angular-fire-compat-firestore.js.map +0 -1
  384. package/fesm2015/angular-fire-compat-functions.js.map +0 -1
  385. package/fesm2015/angular-fire-compat-messaging.js.map +0 -1
  386. package/fesm2015/angular-fire-compat-performance.js.map +0 -1
  387. package/fesm2015/angular-fire-compat-remote-config.js.map +0 -1
  388. package/fesm2015/angular-fire-compat-storage.js.map +0 -1
  389. package/fesm2015/angular-fire-compat.js.map +0 -1
  390. package/fesm2015/angular-fire-database.js.map +0 -1
  391. package/fesm2015/angular-fire-firestore-lite.js.map +0 -1
  392. package/fesm2015/angular-fire-firestore.js.map +0 -1
  393. package/fesm2015/angular-fire-functions.js.map +0 -1
  394. package/fesm2015/angular-fire-messaging.js.map +0 -1
  395. package/fesm2015/angular-fire-performance.js.map +0 -1
  396. package/fesm2015/angular-fire-remote-config.js.map +0 -1
  397. package/fesm2015/angular-fire-storage.js.map +0 -1
  398. package/fesm2015/angular-fire.js.map +0 -1
  399. package/firestore/lite/package.json +0 -11
  400. package/firestore/package.json +0 -11
  401. package/firestore-protos.js +0 -4
  402. package/functions/package.json +0 -11
  403. package/messaging/package.json +0 -11
  404. package/performance/package.json +0 -11
  405. package/remote-config/package.json +0 -11
  406. package/schematics/add/schema.json +0 -16
  407. package/schematics/builders.json +0 -10
  408. package/schematics/collection.json +0 -15
  409. package/schematics/deploy/schema.json +0 -119
  410. package/schematics/migration.json +0 -15
  411. package/schematics/setup/schema.json +0 -16
  412. package/storage/package.json +0 -11
  413. /package/analytics/{angular-fire-analytics.d.ts → index.d.ts} +0 -0
  414. /package/app/{angular-fire-app.d.ts → index.d.ts} +0 -0
  415. /package/app-check/{angular-fire-app-check.d.ts → index.d.ts} +0 -0
  416. /package/auth/{angular-fire-auth.d.ts → index.d.ts} +0 -0
  417. /package/auth-guard/{angular-fire-auth-guard.d.ts → index.d.ts} +0 -0
  418. /package/compat/analytics/{angular-fire-compat-analytics.d.ts → index.d.ts} +0 -0
  419. /package/compat/auth/{angular-fire-compat-auth.d.ts → index.d.ts} +0 -0
  420. /package/compat/auth-guard/{angular-fire-compat-auth-guard.d.ts → index.d.ts} +0 -0
  421. /package/compat/database/{angular-fire-compat-database.d.ts → index.d.ts} +0 -0
  422. /package/compat/firestore/{angular-fire-compat-firestore.d.ts → index.d.ts} +0 -0
  423. /package/compat/functions/{angular-fire-compat-functions.d.ts → index.d.ts} +0 -0
  424. /package/compat/{angular-fire-compat.d.ts → index.d.ts} +0 -0
  425. /package/compat/messaging/{angular-fire-compat-messaging.d.ts → index.d.ts} +0 -0
  426. /package/compat/performance/{angular-fire-compat-performance.d.ts → index.d.ts} +0 -0
  427. /package/compat/remote-config/{angular-fire-compat-remote-config.d.ts → index.d.ts} +0 -0
  428. /package/compat/storage/{angular-fire-compat-storage.d.ts → index.d.ts} +0 -0
  429. /package/database/{angular-fire-database.d.ts → index.d.ts} +0 -0
  430. /package/{esm2015/analytics/angular-fire-analytics.js → esm2022/analytics/angular-fire-analytics.mjs} +0 -0
  431. /package/{esm2015/analytics/firebase.js → esm2022/analytics/firebase.mjs} +0 -0
  432. /package/{esm2015/analytics/public_api.js → esm2022/analytics/public_api.mjs} +0 -0
  433. /package/{esm2015/angular-fire.js → esm2022/angular-fire.mjs} +0 -0
  434. /package/{esm2015/app/angular-fire-app.js → esm2022/app/angular-fire-app.mjs} +0 -0
  435. /package/{esm2015/app/firebase.js → esm2022/app/firebase.mjs} +0 -0
  436. /package/{esm2015/app/public_api.js → esm2022/app/public_api.mjs} +0 -0
  437. /package/{esm2015/app-check/angular-fire-app-check.js → esm2022/app-check/angular-fire-app-check.mjs} +0 -0
  438. /package/{esm2015/app-check/firebase.js → esm2022/app-check/firebase.mjs} +0 -0
  439. /package/{esm2015/auth/angular-fire-auth.js → esm2022/auth/angular-fire-auth.mjs} +0 -0
  440. /package/{esm2015/auth/firebase.js → esm2022/auth/firebase.mjs} +0 -0
  441. /package/{esm2015/auth/public_api.js → esm2022/auth/public_api.mjs} +0 -0
  442. /package/{esm2015/auth/rxfire.js → esm2022/auth/rxfire.mjs} +0 -0
  443. /package/{esm2015/auth-guard/angular-fire-auth-guard.js → esm2022/auth-guard/angular-fire-auth-guard.mjs} +0 -0
  444. /package/{esm2015/auth-guard/public_api.js → esm2022/auth-guard/public_api.mjs} +0 -0
  445. /package/{esm2015/compat/analytics/angular-fire-compat-analytics.js → esm2022/compat/analytics/angular-fire-compat-analytics.mjs} +0 -0
  446. /package/{esm2015/compat/analytics/base.js → esm2022/compat/analytics/base.mjs} +0 -0
  447. /package/{esm2015/compat/analytics/public_api.js → esm2022/compat/analytics/public_api.mjs} +0 -0
  448. /package/{esm2015/compat/angular-fire-compat.js → esm2022/compat/angular-fire-compat.mjs} +0 -0
  449. /package/{esm2015/compat/auth/angular-fire-compat-auth.js → esm2022/compat/auth/angular-fire-compat-auth.mjs} +0 -0
  450. /package/{esm2015/compat/auth/base.js → esm2022/compat/auth/base.mjs} +0 -0
  451. /package/{esm2015/compat/auth-guard/angular-fire-compat-auth-guard.js → esm2022/compat/auth-guard/angular-fire-compat-auth-guard.mjs} +0 -0
  452. /package/{esm2015/compat/auth-guard/public_api.js → esm2022/compat/auth-guard/public_api.mjs} +0 -0
  453. /package/{esm2015/compat/database/angular-fire-compat-database.js → esm2022/compat/database/angular-fire-compat-database.mjs} +0 -0
  454. /package/{esm2015/compat/database/list/remove.js → esm2022/compat/database/list/remove.mjs} +0 -0
  455. /package/{esm2015/compat/database/list/utils.js → esm2022/compat/database/list/utils.mjs} +0 -0
  456. /package/{esm2015/compat/database/public_api.js → esm2022/compat/database/public_api.mjs} +0 -0
  457. /package/{esm2015/compat/firestore/angular-fire-compat-firestore.js → esm2022/compat/firestore/angular-fire-compat-firestore.mjs} +0 -0
  458. /package/{esm2015/compat/firestore/public_api.js → esm2022/compat/firestore/public_api.mjs} +0 -0
  459. /package/{esm2015/compat/functions/angular-fire-compat-functions.js → esm2022/compat/functions/angular-fire-compat-functions.mjs} +0 -0
  460. /package/{esm2015/compat/functions/base.js → esm2022/compat/functions/base.mjs} +0 -0
  461. /package/{esm2015/compat/messaging/angular-fire-compat-messaging.js → esm2022/compat/messaging/angular-fire-compat-messaging.mjs} +0 -0
  462. /package/{esm2015/compat/messaging/base.js → esm2022/compat/messaging/base.mjs} +0 -0
  463. /package/{esm2015/compat/messaging/public_api.js → esm2022/compat/messaging/public_api.mjs} +0 -0
  464. /package/{esm2015/compat/performance/angular-fire-compat-performance.js → esm2022/compat/performance/angular-fire-compat-performance.mjs} +0 -0
  465. /package/{esm2015/compat/performance/base.js → esm2022/compat/performance/base.mjs} +0 -0
  466. /package/{esm2015/compat/performance/public_api.js → esm2022/compat/performance/public_api.mjs} +0 -0
  467. /package/{esm2015/compat/public_api.js → esm2022/compat/public_api.mjs} +0 -0
  468. /package/{esm2015/compat/remote-config/angular-fire-compat-remote-config.js → esm2022/compat/remote-config/angular-fire-compat-remote-config.mjs} +0 -0
  469. /package/{esm2015/compat/remote-config/base.js → esm2022/compat/remote-config/base.mjs} +0 -0
  470. /package/{esm2015/compat/remote-config/interfaces.js → esm2022/compat/remote-config/interfaces.mjs} +0 -0
  471. /package/{esm2015/compat/remote-config/public_api.js → esm2022/compat/remote-config/public_api.mjs} +0 -0
  472. /package/{esm2015/compat/storage/angular-fire-compat-storage.js → esm2022/compat/storage/angular-fire-compat-storage.mjs} +0 -0
  473. /package/{esm2015/compat/storage/interfaces.js → esm2022/compat/storage/interfaces.mjs} +0 -0
  474. /package/{esm2015/compat/storage/public_api.js → esm2022/compat/storage/public_api.mjs} +0 -0
  475. /package/{esm2015/database/angular-fire-database.js → esm2022/database/angular-fire-database.mjs} +0 -0
  476. /package/{esm2015/database/firebase.js → esm2022/database/firebase.mjs} +0 -0
  477. /package/{esm2015/database/public_api.js → esm2022/database/public_api.mjs} +0 -0
  478. /package/{esm2015/database/rxfire.js → esm2022/database/rxfire.mjs} +0 -0
  479. /package/{esm2015/firestore/angular-fire-firestore.js → esm2022/firestore/angular-fire-firestore.mjs} +0 -0
  480. /package/{esm2015/firestore/firebase.js → esm2022/firestore/firebase.mjs} +0 -0
  481. /package/{esm2015/firestore/lite/angular-fire-firestore-lite.js → esm2022/firestore/lite/angular-fire-firestore-lite.mjs} +0 -0
  482. /package/{esm2015/firestore/lite/firebase.js → esm2022/firestore/lite/firebase.mjs} +0 -0
  483. /package/{esm2015/firestore/lite/public_api.js → esm2022/firestore/lite/public_api.mjs} +0 -0
  484. /package/{esm2015/firestore/lite/rxfire.js → esm2022/firestore/lite/rxfire.mjs} +0 -0
  485. /package/{esm2015/firestore/public_api.js → esm2022/firestore/public_api.mjs} +0 -0
  486. /package/{esm2015/functions/angular-fire-functions.js → esm2022/functions/angular-fire-functions.mjs} +0 -0
  487. /package/{esm2015/functions/firebase.js → esm2022/functions/firebase.mjs} +0 -0
  488. /package/{esm2015/functions/public_api.js → esm2022/functions/public_api.mjs} +0 -0
  489. /package/{esm2015/functions/rxfire.js → esm2022/functions/rxfire.mjs} +0 -0
  490. /package/{esm2015/messaging/angular-fire-messaging.js → esm2022/messaging/angular-fire-messaging.mjs} +0 -0
  491. /package/{esm2015/messaging/firebase.js → esm2022/messaging/firebase.mjs} +0 -0
  492. /package/{esm2015/messaging/public_api.js → esm2022/messaging/public_api.mjs} +0 -0
  493. /package/{esm2015/performance/angular-fire-performance.js → esm2022/performance/angular-fire-performance.mjs} +0 -0
  494. /package/{esm2015/performance/firebase.js → esm2022/performance/firebase.mjs} +0 -0
  495. /package/{esm2015/performance/public_api.js → esm2022/performance/public_api.mjs} +0 -0
  496. /package/{esm2015/performance/rxfire.js → esm2022/performance/rxfire.mjs} +0 -0
  497. /package/{esm2015/public_api.js → esm2022/public_api.mjs} +0 -0
  498. /package/{esm2015/remote-config/angular-fire-remote-config.js → esm2022/remote-config/angular-fire-remote-config.mjs} +0 -0
  499. /package/{esm2015/remote-config/firebase.js → esm2022/remote-config/firebase.mjs} +0 -0
  500. /package/{esm2015/remote-config/public_api.js → esm2022/remote-config/public_api.mjs} +0 -0
  501. /package/{esm2015/remote-config/rxfire.js → esm2022/remote-config/rxfire.mjs} +0 -0
  502. /package/{esm2015/storage/angular-fire-storage.js → esm2022/storage/angular-fire-storage.mjs} +0 -0
  503. /package/{esm2015/storage/firebase.js → esm2022/storage/firebase.mjs} +0 -0
  504. /package/{esm2015/storage/public_api.js → esm2022/storage/public_api.mjs} +0 -0
  505. /package/{esm2015/storage/rxfire.js → esm2022/storage/rxfire.mjs} +0 -0
  506. /package/firestore/{angular-fire-firestore.d.ts → index.d.ts} +0 -0
  507. /package/firestore/lite/{angular-fire-firestore-lite.d.ts → index.d.ts} +0 -0
  508. /package/functions/{angular-fire-functions.d.ts → index.d.ts} +0 -0
  509. /package/{angular-fire.d.ts → index.d.ts} +0 -0
  510. /package/messaging/{angular-fire-messaging.d.ts → index.d.ts} +0 -0
  511. /package/performance/{angular-fire-performance.d.ts → index.d.ts} +0 -0
  512. /package/remote-config/{angular-fire-remote-config.d.ts → index.d.ts} +0 -0
  513. /package/storage/{angular-fire-storage.d.ts → index.d.ts} +0 -0
@@ -1,11 +1,11 @@
1
- import { ɵgetAllInstancesOf, ɵisMessagingSupportedFactory, ɵgetDefaultInstanceOf, VERSION, ɵAngularFireSchedulers, ɵzoneWrap } from '@angular/fire';
1
+ import { ɵgetAllInstancesOf, ɵisSupportedError, ɵgetDefaultInstanceOf, VERSION, ɵAngularFireSchedulers, ɵzoneWrap } from '@angular/fire';
2
2
  import { timer, from } from 'rxjs';
3
3
  import { concatMap, distinct } from 'rxjs/operators';
4
4
  import * as i0 from '@angular/core';
5
5
  import { InjectionToken, Optional, APP_INITIALIZER, NgModule, NgZone, Injector } from '@angular/core';
6
6
  import { FirebaseApp, FirebaseApps } from '@angular/fire/app';
7
7
  import { registerVersion } from 'firebase/app';
8
- import { deleteToken as deleteToken$1, getMessaging as getMessaging$1, getToken as getToken$1, onMessage as onMessage$1 } from 'firebase/messaging';
8
+ import { isSupported as isSupported$1, deleteToken as deleteToken$1, getMessaging as getMessaging$1, getToken as getToken$1, onMessage as onMessage$1 } from 'firebase/messaging';
9
9
  export * from 'firebase/messaging';
10
10
 
11
11
  class Messaging {
@@ -21,9 +21,23 @@ class MessagingInstances {
21
21
  }
22
22
  const messagingInstance$ = timer(0, 300).pipe(concatMap(() => from(ɵgetAllInstancesOf(MESSAGING_PROVIDER_NAME))), distinct());
23
23
 
24
+ const isMessagingSupportedPromiseSymbol = '__angularfire_symbol__messagingIsSupported';
25
+ const isMessagingSupportedValueSymbol = '__angularfire_symbol__messagingIsSupportedValue';
26
+ globalThis[isMessagingSupportedPromiseSymbol] ||= isSupported$1().then(it => globalThis[isMessagingSupportedValueSymbol] = it).catch(() => globalThis[isMessagingSupportedValueSymbol] = false);
27
+ const isMessagingSupportedFactory = {
28
+ async: () => globalThis[isMessagingSupportedPromiseSymbol],
29
+ sync: () => {
30
+ const ret = globalThis[isMessagingSupportedValueSymbol];
31
+ if (ret === undefined) {
32
+ throw new Error(ɵisSupportedError('Messaging'));
33
+ }
34
+ return ret;
35
+ }
36
+ };
37
+
24
38
  const PROVIDED_MESSAGING_INSTANCES = new InjectionToken('angularfire2.messaging-instances');
25
39
  function defaultMessagingInstanceFactory(provided, defaultApp) {
26
- if (isMessagingSupportedFactory.sync()) {
40
+ if (!isMessagingSupportedFactory.sync()) {
27
41
  return null;
28
42
  }
29
43
  const defaultMessaging = ɵgetDefaultInstanceOf(MESSAGING_PROVIDER_NAME, provided, defaultApp);
@@ -31,7 +45,7 @@ function defaultMessagingInstanceFactory(provided, defaultApp) {
31
45
  }
32
46
  function messagingInstanceFactory(fn) {
33
47
  return (zone, injector) => {
34
- if (isMessagingSupportedFactory.sync()) {
48
+ if (!isMessagingSupportedFactory.sync()) {
35
49
  return null;
36
50
  }
37
51
  const messaging = zone.runOutsideAngular(() => fn(injector));
@@ -56,19 +70,19 @@ class MessagingModule {
56
70
  constructor() {
57
71
  registerVersion('angularfire', VERSION.full, 'fcm');
58
72
  }
73
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: MessagingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
74
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: MessagingModule });
75
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: MessagingModule, providers: [
76
+ DEFAULT_MESSAGING_INSTANCE_PROVIDER,
77
+ MESSAGING_INSTANCES_PROVIDER,
78
+ {
79
+ provide: APP_INITIALIZER,
80
+ useValue: isMessagingSupportedFactory.async,
81
+ multi: true,
82
+ },
83
+ ] });
59
84
  }
60
- MessagingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: MessagingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
61
- MessagingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: MessagingModule });
62
- MessagingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: MessagingModule, providers: [
63
- DEFAULT_MESSAGING_INSTANCE_PROVIDER,
64
- MESSAGING_INSTANCES_PROVIDER,
65
- {
66
- provide: APP_INITIALIZER,
67
- useValue: ɵisMessagingSupportedFactory.async,
68
- multi: true,
69
- },
70
- ] });
71
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: MessagingModule, decorators: [{
85
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: MessagingModule, decorators: [{
72
86
  type: NgModule,
73
87
  args: [{
74
88
  providers: [
@@ -76,7 +90,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImpor
76
90
  MESSAGING_INSTANCES_PROVIDER,
77
91
  {
78
92
  provide: APP_INITIALIZER,
79
- useValue: ɵisMessagingSupportedFactory.async,
93
+ useValue: isMessagingSupportedFactory.async,
80
94
  multi: true,
81
95
  },
82
96
  ]
@@ -100,7 +114,7 @@ function provideMessaging(fn, ...deps) {
100
114
  };
101
115
  }
102
116
 
103
- const isSupported = ɵisMessagingSupportedFactory.async;
117
+ const isSupported = isMessagingSupportedFactory.async;
104
118
 
105
119
  // DO NOT MODIFY, this file is autogenerated by tools/build.ts
106
120
  const deleteToken = ɵzoneWrap(deleteToken$1, true);
@@ -113,4 +127,4 @@ const onMessage = ɵzoneWrap(onMessage$1, false);
113
127
  */
114
128
 
115
129
  export { Messaging, MessagingInstances, MessagingModule, deleteToken, getMessaging, getToken, isSupported, messagingInstance$, onMessage, provideMessaging };
116
- //# sourceMappingURL=angular-fire-messaging.js.map
130
+ //# sourceMappingURL=angular-fire-messaging.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-fire-messaging.mjs","sources":["../../../src/messaging/messaging.ts","../../../src/messaging/is-messaging-supported-factory.ts","../../../src/messaging/messaging.module.ts","../../../src/messaging/overrides.ts","../../../src/messaging/firebase.ts","../../../src/messaging/angular-fire-messaging.ts"],"sourcesContent":["import { ɵgetAllInstancesOf } from '@angular/fire';\nimport { Messaging as FirebaseMessaging } from 'firebase/messaging';\nimport { from, timer } from 'rxjs';\nimport { concatMap, distinct } from 'rxjs/operators';\n\n// see notes in core/firebase.app.module.ts for why we're building the class like this\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface Messaging extends FirebaseMessaging {}\n\nexport class Messaging {\n constructor(messaging: FirebaseMessaging) {\n return messaging;\n }\n}\n\nexport const MESSAGING_PROVIDER_NAME = 'messaging';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface MessagingInstances extends Array<FirebaseMessaging> {}\n\nexport class MessagingInstances {\n constructor() {\n return ɵgetAllInstancesOf<FirebaseMessaging>(MESSAGING_PROVIDER_NAME);\n }\n}\n\nexport const messagingInstance$ = timer(0, 300).pipe(\n concatMap(() => from(ɵgetAllInstancesOf<FirebaseMessaging>(MESSAGING_PROVIDER_NAME))),\n distinct(),\n);\n","import { ɵisSupportedError } from '@angular/fire';\nimport { isSupported } from 'firebase/messaging';\n\nconst isMessagingSupportedPromiseSymbol = '__angularfire_symbol__messagingIsSupported';\nconst isMessagingSupportedValueSymbol = '__angularfire_symbol__messagingIsSupportedValue';\n\nglobalThis[isMessagingSupportedPromiseSymbol] ||= isSupported().then(it =>\n globalThis[isMessagingSupportedValueSymbol] = it\n).catch(() =>\n globalThis[isMessagingSupportedValueSymbol] = false\n);\n\nexport const isMessagingSupportedFactory = {\n async: () => globalThis[isMessagingSupportedPromiseSymbol],\n sync: () => {\n const ret = globalThis[isMessagingSupportedValueSymbol];\n if (ret === undefined) { throw new Error(ɵisSupportedError('Messaging')); }\n return ret;\n }\n};\n","import { APP_INITIALIZER, InjectionToken, Injector, ModuleWithProviders, NgModule, NgZone, Optional } from '@angular/core';\nimport { VERSION, ɵAngularFireSchedulers, ɵgetDefaultInstanceOf } from '@angular/fire';\nimport { FirebaseApp, FirebaseApps } from '@angular/fire/app';\nimport { registerVersion } from 'firebase/app';\nimport { Messaging as FirebaseMessaging } from 'firebase/messaging';\nimport { isMessagingSupportedFactory } from './is-messaging-supported-factory';\nimport { MESSAGING_PROVIDER_NAME, Messaging, MessagingInstances } from './messaging';\n\nconst PROVIDED_MESSAGING_INSTANCES = new InjectionToken<Messaging[]>('angularfire2.messaging-instances');\n\nexport function defaultMessagingInstanceFactory(provided: FirebaseMessaging[]|undefined, defaultApp: FirebaseApp) {\n if (!isMessagingSupportedFactory.sync()) { return null; }\n const defaultMessaging = ɵgetDefaultInstanceOf<FirebaseMessaging>(MESSAGING_PROVIDER_NAME, provided, defaultApp);\n return defaultMessaging && new Messaging(defaultMessaging);\n}\n\nexport function messagingInstanceFactory(fn: (injector: Injector) => FirebaseMessaging) {\n return (zone: NgZone, injector: Injector) => {\n if (!isMessagingSupportedFactory.sync()) { return null; }\n const messaging = zone.runOutsideAngular(() => fn(injector));\n return new Messaging(messaging);\n };\n}\n\nconst MESSAGING_INSTANCES_PROVIDER = {\n provide: MessagingInstances,\n deps: [\n [new Optional(), PROVIDED_MESSAGING_INSTANCES ],\n ]\n};\n\nconst DEFAULT_MESSAGING_INSTANCE_PROVIDER = {\n provide: Messaging,\n useFactory: defaultMessagingInstanceFactory,\n deps: [\n [new Optional(), PROVIDED_MESSAGING_INSTANCES ],\n FirebaseApp,\n ]\n};\n\n@NgModule({\n providers: [\n DEFAULT_MESSAGING_INSTANCE_PROVIDER,\n MESSAGING_INSTANCES_PROVIDER,\n {\n provide: APP_INITIALIZER,\n useValue: isMessagingSupportedFactory.async,\n multi: true,\n },\n ]\n})\nexport class MessagingModule {\n constructor() {\n registerVersion('angularfire', VERSION.full, 'fcm');\n }\n}\n\nexport function provideMessaging(fn: (injector: Injector) => FirebaseMessaging, ...deps: any[]): ModuleWithProviders<MessagingModule> {\n return {\n ngModule: MessagingModule,\n providers: [{\n provide: PROVIDED_MESSAGING_INSTANCES,\n useFactory: messagingInstanceFactory(fn),\n multi: true,\n deps: [\n NgZone,\n Injector,\n ɵAngularFireSchedulers,\n FirebaseApps,\n ...deps,\n ],\n }]\n };\n}\n","import { isMessagingSupportedFactory } from './is-messaging-supported-factory';\n\nexport const isSupported = isMessagingSupportedFactory.async;\n","// DO NOT MODIFY, this file is autogenerated by tools/build.ts\nexport * from 'firebase/messaging';\nimport { ɵzoneWrap } from '@angular/fire';\nimport {\n deleteToken as _deleteToken,\n getMessaging as _getMessaging,\n getToken as _getToken,\n onMessage as _onMessage\n} from 'firebase/messaging';\n\nexport {\n isSupported\n} from './overrides';\n\nexport const deleteToken = ɵzoneWrap(_deleteToken, true);\nexport const getMessaging = ɵzoneWrap(_getMessaging, true);\nexport const getToken = ɵzoneWrap(_getToken, true);\nexport const onMessage = ɵzoneWrap(_onMessage, false);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["isSupported","_deleteToken","_getMessaging","_getToken","_onMessage"],"mappings":";;;;;;;;;;MASa,SAAS,CAAA;AACpB,IAAA,WAAA,CAAY,SAA4B,EAAA;AACtC,QAAA,OAAO,SAAS,CAAC;KAClB;AACF,CAAA;AAEM,MAAM,uBAAuB,GAAG,WAAW,CAAC;MAKtC,kBAAkB,CAAA;AAC7B,IAAA,WAAA,GAAA;AACE,QAAA,OAAO,kBAAkB,CAAoB,uBAAuB,CAAC,CAAC;KACvE;AACF,CAAA;AAEM,MAAM,kBAAkB,GAAG,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAClD,SAAS,CAAC,MAAM,IAAI,CAAC,kBAAkB,CAAoB,uBAAuB,CAAC,CAAC,CAAC,EACrF,QAAQ,EAAE;;ACzBZ,MAAM,iCAAiC,GAAG,4CAA4C,CAAC;AACvF,MAAM,+BAA+B,G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AAO,EAAE,eAAe;4BACxB,QAAQ,EAAE,2BAA2B,CAAC,KAAK;AAC3C,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACF,qBAAA;AACF,iBAAA,CAAA;;SAOe,gBAAgB,CAAC,EAA6C,EAAE,GAAG,IAAW,EAAA;IAC5F,OAAO;AACL,QAAA,QAAQ,EAAE,eAAe;AACzB,QAAA,SAAS,EAAE,CAAC;AACV,gBAAA,OAAO,EAAE,4BAA4B;AACrC,gBAAA,UAAU,EAAE,wBAAwB,CAAC,EAAE,CAAC;AACxC,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,IAAI,EAAE;oBACJ,MAAM;oBACN,QAAQ;oBACR,sBAAsB;oBACtB,YAAY;AACZ,oBAAA,GAAG,IAAI;AACR,iBAAA;aACF,CAAC;KACH,CAAC;AACJ;;ACvEa,MAAA,WAAW,GAAG,2BAA2B,CAAC;;ACFvD;AAca,MAAA,WAAW,GAAG,SAAS,CAACC,aAAY,EAAE,IAAI,EAAE;AAC5C,MAAA,YAAY,GAAG,SAAS,CAACC,cAAa,EAAE,IAAI,EAAE;AAC9C,MAAA,QAAQ,GAAG,SAAS,CAACC,UAAS,EAAE,IAAI,EAAE;AACtC,MAAA,SAAS,GAAG,SAAS,CAACC,WAAU,EAAE,KAAK;;ACjBpD;;AAEG;;;;"}
@@ -1,11 +1,11 @@
1
1
  import { ɵgetAllInstancesOf, ɵgetDefaultInstanceOf, VERSION, ɵAngularFireSchedulers, ɵzoneWrap } from '@angular/fire';
2
2
  import { timer, from } from 'rxjs';
3
3
  import { concatMap, distinct } from 'rxjs/operators';
4
+ import { isPlatformBrowser } from '@angular/common';
4
5
  import * as i0 from '@angular/core';
5
6
  import { InjectionToken, Optional, PLATFORM_ID, NgModule, NgZone, Injector } from '@angular/core';
6
7
  import { FirebaseApp, FirebaseApps } from '@angular/fire/app';
7
8
  import { registerVersion } from 'firebase/app';
8
- import { isPlatformBrowser } from '@angular/common';
9
9
  import { traceUntil as traceUntil$1, traceWhile as traceWhile$1, traceUntilComplete as traceUntilComplete$1, traceUntilFirst as traceUntilFirst$1 } from 'rxfire/performance';
10
10
  import { getPerformance as getPerformance$1, initializePerformance as initializePerformance$1, trace as trace$1 } from 'firebase/performance';
11
11
  export * from 'firebase/performance';
@@ -25,7 +25,7 @@ const performanceInstance$ = timer(0, 300).pipe(concatMap(() => from(ɵgetAllIns
25
25
 
26
26
  const PROVIDED_PERFORMANCE_INSTANCES = new InjectionToken('angularfire2.performance-instances');
27
27
  function defaultPerformanceInstanceFactory(provided, defaultApp,
28
- // tslint:disable-next-line:ban-types
28
+ // eslint-disable-next-line @typescript-eslint/ban-types
29
29
  platform) {
30
30
  if (!isPlatformBrowser(platform)) {
31
31
  return null;
@@ -34,7 +34,7 @@ platform) {
34
34
  return defaultPerformance && new Performance(defaultPerformance);
35
35
  }
36
36
  function performanceInstanceFactory(fn) {
37
- // tslint:disable-next-line:ban-types
37
+ // eslint-disable-next-line @typescript-eslint/ban-types
38
38
  return (zone, platform, injector) => {
39
39
  if (!isPlatformBrowser(platform)) {
40
40
  return null;
@@ -62,14 +62,14 @@ class PerformanceModule {
62
62
  constructor() {
63
63
  registerVersion('angularfire', VERSION.full, 'perf');
64
64
  }
65
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: PerformanceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
66
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: PerformanceModule });
67
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: PerformanceModule, providers: [
68
+ DEFAULT_PERFORMANCE_INSTANCE_PROVIDER,
69
+ PERFORMANCE_INSTANCES_PROVIDER,
70
+ ] });
65
71
  }
66
- PerformanceModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: PerformanceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
67
- PerformanceModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: PerformanceModule });
68
- PerformanceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: PerformanceModule, providers: [
69
- DEFAULT_PERFORMANCE_INSTANCE_PROVIDER,
70
- PERFORMANCE_INSTANCES_PROVIDER,
71
- ] });
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: PerformanceModule, decorators: [{
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: PerformanceModule, decorators: [{
73
73
  type: NgModule,
74
74
  args: [{
75
75
  providers: [
@@ -113,4 +113,4 @@ const trace = ɵzoneWrap(trace$1, true);
113
113
  */
114
114
 
115
115
  export { Performance, PerformanceInstances, PerformanceModule, getPerformance, initializePerformance, performanceInstance$, providePerformance, trace, traceUntil, traceUntilComplete, traceUntilFirst, traceWhile };
116
- //# sourceMappingURL=angular-fire-performance.js.map
116
+ //# sourceMappingURL=angular-fire-performance.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-fire-performance.mjs","sources":["../../../src/performance/performance.ts","../../../src/performance/performance.module.ts","../../../src/performance/rxfire.ts","../../../src/performance/firebase.ts","../../../src/performance/angular-fire-performance.ts"],"sourcesContent":["import { ɵgetAllInstancesOf } from '@angular/fire';\nimport { FirebasePerformance } from 'firebase/performance';\nimport { from, timer } from 'rxjs';\nimport { concatMap, distinct } from 'rxjs/operators';\n\n// see notes in core/firebase.app.module.ts for why we're building the class like this\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface Performance extends FirebasePerformance {}\n\nexport class Performance {\n constructor(performance: FirebasePerformance) {\n return performance;\n }\n}\n\nexport const PERFORMANCE_PROVIDER_NAME = 'performance';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface PerformanceInstances extends Array<FirebasePerformance> {}\n\nexport class PerformanceInstances {\n constructor() {\n return ɵgetAllInstancesOf<FirebasePerformance>(PERFORMANCE_PROVIDER_NAME);\n }\n}\n\nexport const performanceInstance$ = timer(0, 300).pipe(\n concatMap(() => from(ɵgetAllInstancesOf<FirebasePerformance>(PERFORMANCE_PROVIDER_NAME))),\n distinct(),\n);\n","import { isPlatformBrowser } from '@angular/common';\nimport { InjectionToken, Injector, ModuleWithProviders, NgModule, NgZone, Optional, PLATFORM_ID } from '@angular/core';\nimport { VERSION, ɵAngularFireSchedulers, ɵgetDefaultInstanceOf } from '@angular/fire';\nimport { FirebaseApp, FirebaseApps } from '@angular/fire/app';\nimport { registerVersion } from 'firebase/app';\nimport { FirebasePerformance } from 'firebase/performance';\nimport { PERFORMANCE_PROVIDER_NAME, Performance, PerformanceInstances } from './performance';\n\nexport const PROVIDED_PERFORMANCE_INSTANCES = new InjectionToken<Performance[]>('angularfire2.performance-instances');\n\nexport function defaultPerformanceInstanceFactory(\n provided: FirebasePerformance[]|undefined,\n defaultApp: FirebaseApp,\n // eslint-disable-next-line @typescript-eslint/ban-types\n platform: Object\n) {\n if (!isPlatformBrowser(platform)) { return null; }\n const defaultPerformance = ɵgetDefaultInstanceOf<FirebasePerformance>(PERFORMANCE_PROVIDER_NAME, provided, defaultApp);\n return defaultPerformance && new Performance(defaultPerformance);\n}\n\nexport function performanceInstanceFactory(fn: (injector: Injector) => FirebasePerformance) {\n // eslint-disable-next-line @typescript-eslint/ban-types\n return (zone: NgZone, platform: Object, injector: Injector) => {\n if (!isPlatformBrowser(platform)) { return null; }\n const performance = zone.runOutsideAngular(() => fn(injector));\n return new Performance(performance);\n };\n}\n\nconst PERFORMANCE_INSTANCES_PROVIDER = {\n provide: PerformanceInstances,\n deps: [\n [new Optional(), PROVIDED_PERFORMANCE_INSTANCES ],\n ]\n};\n\nconst DEFAULT_PERFORMANCE_INSTANCE_PROVIDER = {\n provide: Performance,\n useFactory: defaultPerformanceInstanceFactory,\n deps: [\n [new Optional(), PROVIDED_PERFORMANCE_INSTANCES ],\n FirebaseApp,\n PLATFORM_ID,\n ]\n};\n\n@NgModule({\n providers: [\n DEFAULT_PERFORMANCE_INSTANCE_PROVIDER,\n PERFORMANCE_INSTANCES_PROVIDER,\n ]\n})\nexport class PerformanceModule {\n constructor() {\n registerVersion('angularfire', VERSION.full, 'perf');\n }\n}\n\nexport function providePerformance(\n fn: (injector: Injector) => FirebasePerformance, ...deps: any[]\n): ModuleWithProviders<PerformanceModule> {\n return {\n ngModule: PerformanceModule,\n providers: [{\n provide: PROVIDED_PERFORMANCE_INSTANCES,\n useFactory: performanceInstanceFactory(fn),\n multi: true,\n deps: [\n NgZone,\n PLATFORM_ID,\n Injector,\n ɵAngularFireSchedulers,\n FirebaseApps,\n ...deps,\n ]\n }]\n };\n}\n","// DO NOT MODIFY, this file is autogenerated by tools/build.ts\nimport { ɵzoneWrap } from '@angular/fire';\nimport {\n traceUntil as _traceUntil,\n traceWhile as _traceWhile,\n traceUntilComplete as _traceUntilComplete,\n traceUntilFirst as _traceUntilFirst\n} from 'rxfire/performance';\n\nexport const traceUntil = ɵzoneWrap(_traceUntil, true);\nexport const traceWhile = ɵzoneWrap(_traceWhile, true);\nexport const traceUntilComplete = ɵzoneWrap(_traceUntilComplete, true);\nexport const traceUntilFirst = ɵzoneWrap(_traceUntilFirst, true);\n","// DO NOT MODIFY, this file is autogenerated by tools/build.ts\nexport * from 'firebase/performance';\nimport { ɵzoneWrap } from '@angular/fire';\nimport {\n getPerformance as _getPerformance,\n initializePerformance as _initializePerformance,\n trace as _trace\n} from 'firebase/performance';\n\nexport const getPerformance = ɵzoneWrap(_getPerformance, true);\nexport const initializePerformance = ɵzoneWrap(_initializePerformance, true);\nexport const trace = ɵzoneWrap(_trace, true);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["_traceUntil","_traceWhile","_traceUntilComplete","_traceU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AC;AACV,gBAAA,OAAO,EAAE,8BAA8B;AACvC,gBAAA,UAAU,EAAE,0BAA0B,CAAC,EAAE,CAAC;AAC1C,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,IAAI,EAAE;oBACJ,MAAM;oBACN,WAAW;oBACX,QAAQ;oBACR,sBAAsB;oBACtB,YAAY;AACZ,oBAAA,GAAG,IAAI;AACR,iBAAA;aACF,CAAC;KACH,CAAC;AACJ;;AC9EA;AASa,MAAA,UAAU,GAAG,SAAS,CAACA,YAAW,EAAE,IAAI,EAAE;AAC1C,MAAA,UAAU,GAAG,SAAS,CAACC,YAAW,EAAE,IAAI,EAAE;AAC1C,MAAA,kBAAkB,GAAG,SAAS,CAACC,oBAAmB,EAAE,IAAI,EAAE;AAC1D,MAAA,eAAe,GAAG,SAAS,CAACC,iBAAgB,EAAE,IAAI;;ACZ/D;AASa,MAAA,cAAc,GAAG,SAAS,CAACC,gBAAe,EAAE,IAAI,EAAE;AAClD,MAAA,qBAAqB,GAAG,SAAS,CAACC,uBAAsB,EAAE,IAAI,EAAE;AAChE,MAAA,KAAK,GAAG,SAAS,CAACC,OAAM,EAAE,IAAI;;ACX3C;;AAEG;;;;"}
@@ -1,13 +1,13 @@
1
- import { ɵgetAllInstancesOf, ɵisRemoteConfigSupportedFactory, ɵgetDefaultInstanceOf, VERSION, ɵAngularFireSchedulers, ɵzoneWrap } from '@angular/fire';
1
+ import { ɵgetAllInstancesOf, ɵisSupportedError, ɵgetDefaultInstanceOf, VERSION, ɵAngularFireSchedulers, ɵzoneWrap } from '@angular/fire';
2
2
  import { timer, from } from 'rxjs';
3
3
  import { concatMap, distinct } from 'rxjs/operators';
4
4
  import * as i0 from '@angular/core';
5
5
  import { InjectionToken, Optional, APP_INITIALIZER, NgModule, NgZone, Injector } from '@angular/core';
6
6
  import { FirebaseApp, FirebaseApps } from '@angular/fire/app';
7
7
  import { registerVersion } from 'firebase/app';
8
- import { getValue as getValue$1, getString as getString$1, getNumber as getNumber$1, getBoolean as getBoolean$1, getAll as getAll$1 } from 'rxfire/remote-config';
9
- import { activate as activate$1, ensureInitialized as ensureInitialized$1, fetchAndActivate as fetchAndActivate$1, fetchConfig as fetchConfig$1, getAll as getAll$2, getBoolean as getBoolean$2, getNumber as getNumber$2, getRemoteConfig as getRemoteConfig$1, getString as getString$2, getValue as getValue$2, setLogLevel as setLogLevel$1 } from 'firebase/remote-config';
8
+ import { isSupported as isSupported$1, activate as activate$1, ensureInitialized as ensureInitialized$1, fetchAndActivate as fetchAndActivate$1, fetchConfig as fetchConfig$1, getAll as getAll$2, getBoolean as getBoolean$2, getNumber as getNumber$2, getRemoteConfig as getRemoteConfig$1, getString as getString$2, getValue as getValue$2, setLogLevel as setLogLevel$1 } from 'firebase/remote-config';
10
9
  export * from 'firebase/remote-config';
10
+ import { getValue as getValue$1, getString as getString$1, getNumber as getNumber$1, getBoolean as getBoolean$1, getAll as getAll$1 } from 'rxfire/remote-config';
11
11
 
12
12
  class RemoteConfig {
13
13
  constructor(remoteConfig) {
@@ -22,9 +22,23 @@ class RemoteConfigInstances {
22
22
  }
23
23
  const remoteConfigInstance$ = timer(0, 300).pipe(concatMap(() => from(ɵgetAllInstancesOf(REMOTE_CONFIG_PROVIDER_NAME))), distinct());
24
24
 
25
+ const isRemoteConfigSupportedValueSymbol = '__angularfire_symbol__remoteConfigIsSupportedValue';
26
+ const isRemoteConfigSupportedPromiseSymbol = '__angularfire_symbol__remoteConfigIsSupported';
27
+ globalThis[isRemoteConfigSupportedPromiseSymbol] ||= isSupported$1().then(it => globalThis[isRemoteConfigSupportedValueSymbol] = it).catch(() => globalThis[isRemoteConfigSupportedValueSymbol] = false);
28
+ const isRemoteConfigSupportedFactory = {
29
+ async: () => globalThis[isRemoteConfigSupportedPromiseSymbol],
30
+ sync: () => {
31
+ const ret = globalThis[isRemoteConfigSupportedValueSymbol];
32
+ if (ret === undefined) {
33
+ throw new Error(ɵisSupportedError('RemoteConfig'));
34
+ }
35
+ return ret;
36
+ }
37
+ };
38
+
25
39
  const PROVIDED_REMOTE_CONFIG_INSTANCES = new InjectionToken('angularfire2.remote-config-instances');
26
40
  function defaultRemoteConfigInstanceFactory(provided, defaultApp) {
27
- if (isRemoteConfigSupportedFactory.sync()) {
41
+ if (!isRemoteConfigSupportedFactory.sync()) {
28
42
  return null;
29
43
  }
30
44
  const defaultRemoteConfig = ɵgetDefaultInstanceOf(REMOTE_CONFIG_PROVIDER_NAME, provided, defaultApp);
@@ -32,7 +46,7 @@ function defaultRemoteConfigInstanceFactory(provided, defaultApp) {
32
46
  }
33
47
  function remoteConfigInstanceFactory(fn) {
34
48
  return (zone, injector) => {
35
- if (isRemoteConfigSupportedFactory.sync()) {
49
+ if (!isRemoteConfigSupportedFactory.sync()) {
36
50
  return null;
37
51
  }
38
52
  const remoteConfig = zone.runOutsideAngular(() => fn(injector));
@@ -57,19 +71,19 @@ class RemoteConfigModule {
57
71
  constructor() {
58
72
  registerVersion('angularfire', VERSION.full, 'rc');
59
73
  }
74
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: RemoteConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
75
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: RemoteConfigModule });
76
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: RemoteConfigModule, providers: [
77
+ DEFAULT_REMOTE_CONFIG_INSTANCE_PROVIDER,
78
+ REMOTE_CONFIG_INSTANCES_PROVIDER,
79
+ {
80
+ provide: APP_INITIALIZER,
81
+ useValue: isRemoteConfigSupportedFactory.async,
82
+ multi: true,
83
+ },
84
+ ] });
60
85
  }
61
- RemoteConfigModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: RemoteConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
62
- RemoteConfigModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: RemoteConfigModule });
63
- RemoteConfigModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: RemoteConfigModule, providers: [
64
- DEFAULT_REMOTE_CONFIG_INSTANCE_PROVIDER,
65
- REMOTE_CONFIG_INSTANCES_PROVIDER,
66
- {
67
- provide: APP_INITIALIZER,
68
- useValue: ɵisRemoteConfigSupportedFactory.async,
69
- multi: true,
70
- },
71
- ] });
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: RemoteConfigModule, decorators: [{
86
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: RemoteConfigModule, decorators: [{
73
87
  type: NgModule,
74
88
  args: [{
75
89
  providers: [
@@ -77,7 +91,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImpor
77
91
  REMOTE_CONFIG_INSTANCES_PROVIDER,
78
92
  {
79
93
  provide: APP_INITIALIZER,
80
- useValue: ɵisRemoteConfigSupportedFactory.async,
94
+ useValue: isRemoteConfigSupportedFactory.async,
81
95
  multi: true,
82
96
  },
83
97
  ]
@@ -108,7 +122,7 @@ const getNumberChanges = ɵzoneWrap(getNumber$1, true);
108
122
  const getBooleanChanges = ɵzoneWrap(getBoolean$1, true);
109
123
  const getAllChanges = ɵzoneWrap(getAll$1, true);
110
124
 
111
- const isSupported = ɵisRemoteConfigSupportedFactory.async;
125
+ const isSupported = isRemoteConfigSupportedFactory.async;
112
126
 
113
127
  // DO NOT MODIFY, this file is autogenerated by tools/build.ts
114
128
  const activate = ɵzoneWrap(activate$1, true);
@@ -128,4 +142,4 @@ const setLogLevel = ɵzoneWrap(setLogLevel$1, true);
128
142
  */
129
143
 
130
144
  export { RemoteConfig, RemoteConfigInstances, RemoteConfigModule, activate, ensureInitialized, fetchAndActivate, fetchConfig, getAll, getAllChanges, getBoolean, getBooleanChanges, getNumber, getNumberChanges, getRemoteConfig, getString, getStringChanges, getValue, getValueChanges, isSupported, provideRemoteConfig, remoteConfigInstance$, setLogLevel };
131
- //# sourceMappingURL=angular-fire-remote-config.js.map
145
+ //# sourceMappingURL=angular-fire-remote-config.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-fire-remote-config.mjs","sources":["../../../src/remote-config/remote-config.ts","../../../src/remote-config/is-remote-config-supported-factory.ts","../../../src/remote-config/remote-config.module.ts","../../../src/remote-config/rxfire.ts","../../../src/remote-config/overrides.ts","../../../src/remote-config/firebase.ts","../../../src/remote-config/angular-fire-remote-config.ts"],"sourcesContent":["import { ɵgetAllInstancesOf } from '@angular/fire';\nimport { RemoteConfig as FirebaseRemoteConfig } from 'firebase/remote-config';\nimport { from, timer } from 'rxjs';\nimport { concatMap, distinct } from 'rxjs/operators';\n\n// see notes in core/firebase.app.module.ts for why we're building the class like this\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface RemoteConfig extends FirebaseRemoteConfig {}\n\nexport class RemoteConfig {\n constructor(remoteConfig: FirebaseRemoteConfig) {\n return remoteConfig;\n }\n}\n\nexport const REMOTE_CONFIG_PROVIDER_NAME = 'remote-config';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface RemoteConfigInstances extends Array<FirebaseRemoteConfig> {}\n\nexport class RemoteConfigInstances {\n constructor() {\n return ɵgetAllInstancesOf<FirebaseRemoteConfig>(REMOTE_CONFIG_PROVIDER_NAME);\n }\n}\n\nexport const remoteConfigInstance$ = timer(0, 300).pipe(\n concatMap(() => from(ɵgetAllInstancesOf<FirebaseRemoteConfig>(REMOTE_CONFIG_PROVIDER_NAME))),\n distinct(),\n);\n","import { ɵisSupportedError } from '@angular/fire';\nimport { isSupported } from 'firebase/remote-config';\n\nconst isRemoteConfigSupportedValueSymbol = '__angularfire_symbol__remoteConfigIsSupportedValue';\nconst isRemoteConfigSupportedPromiseSymbol = '__angularfire_symbol__remoteConfigIsSupported';\n\nglobalThis[isRemoteConfigSupportedPromiseSymbol] ||= isSupported().then(it =>\n globalThis[isRemoteConfigSupportedValueSymbol] = it\n).catch(() =>\n globalThis[isRemoteConfigSupportedValueSymbol] = false\n);\n\nexport const isRemoteConfigSupportedFactory = {\n async: () => globalThis[isRemoteConfigSupportedPromiseSymbol],\n sync: () => {\n const ret = globalThis[isRemoteConfigSupportedValueSymbol];\n if (ret === undefined) { throw new Error(ɵisSupportedError('RemoteConfig')); }\n return ret;\n }\n};\n","import { APP_INITIALIZER, InjectionToken, Injector, ModuleWithProviders, NgModule, NgZone, Optional } from '@angular/core';\nimport { VERSION, ɵAngularFireSchedulers, ɵgetDefaultInstanceOf } from '@angular/fire';\nimport { FirebaseApp, FirebaseApps } from '@angular/fire/app';\nimport { registerVersion } from 'firebase/app';\nimport { RemoteConfig as FirebaseRemoteConfig } from 'firebase/remote-config';\nimport { isRemoteConfigSupportedFactory } from './is-remote-config-supported-factory';\nimport { REMOTE_CONFIG_PROVIDER_NAME, RemoteConfig, RemoteConfigInstances } from './remote-config';\n\nexport const PROVIDED_REMOTE_CONFIG_INSTANCES = new InjectionToken<RemoteConfig[]>('angularfire2.remote-config-instances');\n\nexport function defaultRemoteConfigInstanceFactory(\n provided: FirebaseRemoteConfig[]|undefined,\n defaultApp: FirebaseApp,\n) {\n if (!isRemoteConfigSupportedFactory.sync()) { return null; }\n const defaultRemoteConfig = ɵgetDefaultInstanceOf<FirebaseRemoteConfig>(REMOTE_CONFIG_PROVIDER_NAME, provided, defaultApp);\n return defaultRemoteConfig && new RemoteConfig(defaultRemoteConfig);\n}\n\nexport function remoteConfigInstanceFactory(fn: (injector: Injector) => FirebaseRemoteConfig) {\n return (zone: NgZone, injector: Injector) => {\n if (!isRemoteConfigSupportedFactory.sync()) { return null; }\n const remoteConfig = zone.runOutsideAngular(() => fn(injector));\n return new RemoteConfig(remoteConfig);\n };\n}\n\nconst REMOTE_CONFIG_INSTANCES_PROVIDER = {\n provide: RemoteConfigInstances,\n deps: [\n [new Optional(), PROVIDED_REMOTE_CONFIG_INSTANCES ],\n ]\n};\n\nconst DEFAULT_REMOTE_CONFIG_INSTANCE_PROVIDER = {\n provide: RemoteConfig,\n useFactory: defaultRemoteConfigInstanceFactory,\n deps: [\n [new Optional(), PROVIDED_REMOTE_CONFIG_INSTANCES ],\n FirebaseApp,\n ]\n};\n\n@NgModule({\n providers: [\n DEFAULT_REMOTE_CONFIG_INSTANCE_PROVIDER,\n REMOTE_CONFIG_INSTANCES_PROVIDER,\n {\n provide: APP_INITIALIZER,\n useValue: isRemoteConfigSupportedFactory.async,\n multi: true,\n },\n ]\n})\nexport class RemoteConfigModule {\n constructor() {\n registerVersion('angularfire', VERSION.full, 'rc');\n }\n}\n\nexport function provideRemoteConfig(\n fn: (injector: Injector) => FirebaseRemoteConfig, ...deps: any[]\n): ModuleWithProviders<RemoteConfigModule> {\n return {\n ngModule: RemoteConfigModule,\n providers: [{\n provide: PROVIDED_REMOTE_CONFIG_INSTANCES,\n useFactory: remoteConfigInstanceFactory(fn),\n multi: true,\n deps: [\n NgZone,\n Injector,\n ɵAngularFireSchedulers,\n FirebaseApps,\n ...deps,\n ]\n }]\n };\n}\n","// DO NOT MODIFY, this file is autogenerated by tools/build.ts\nimport { ɵzoneWrap } from '@angular/fire';\nimport {\n getValue as _getValue,\n getString as _getString,\n getNumber as _getNumber,\n getBoolean as _getBoolean,\n getAll as _getAll\n} from 'rxfire/remote-config';\n\nexport const getValueChanges = ɵzoneWrap(_getValue, true);\nexport const getStringChanges = ɵzoneWrap(_getString, true);\nexport const getNumberChanges = ɵzoneWrap(_getNumber, true);\nexport const getBooleanChanges = ɵzoneWrap(_getBoolean, true);\nexport const getAllChanges = ɵzoneWrap(_getAll, true);\n","import { isRemoteConfigSupportedFactory } from './is-remote-config-supported-factory';\n\nexport const isSupported = isRemoteConfigSupportedFactory.async;\n","// DO NOT MODIFY, this file is autogenerated by tools/build.ts\nexport * from 'firebase/remote-config';\nimport { ɵzoneWrap } from '@angular/fire';\nimport {\n activate as _activate,\n ensureInitialized as _ensureInitialized,\n fetchAndActivate as _fetchAndActivate,\n fetchConfig as _fetchConfig,\n getAll as _getAll,\n getBoolean as _getBoolean,\n getNumber as _getNumber,\n getRemoteConfig as _getRemoteConfig,\n getString as _getString,\n getValue as _getValue,\n setLogLevel as _setLogLevel\n} from 'firebase/remote-config';\n\nexport {\n isSupported\n} from './overrides';\n\nexport const activate = ɵzoneWrap(_activate, true);\nexport const ensureInitialized = ɵzoneWrap(_ensureInitialized, true);\nexport const fetchAndActivate = ɵzoneWrap(_fetchAndActivate, true);\nexport const fetchConfig = ɵzoneWrap(_fetchConfig, true);\nexport const getAll = ɵzoneWrap(_getAll, true);\nexport const getBoolean = ɵzoneWrap(_getBoolean, true);\nexport const getNumber = ɵzoneWrap(_getNumber, true);\nexport const getRemoteConfig = ɵzoneWrap(_getRemoteConfig, true);\nexport const getString = ɵzoneWrap(_getString, true);\nexport const getValue = ɵzoneWrap(_getValue, true);\nexport const setLogLevel = ɵzoneWrap(_setLogLevel, true);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["isSupported","_getValue","_getString","_getNumber","_getBoolean","_getAll","_activate","_ensureInitialized","_fetchAndActivate","_fetchConfig","_getRemoteConfig","_setLogLevel"],"mappings":";;;;;;;;;;;MASa,YAAY,CAAA;AACvB,IAAA,WAAA,CAAY,YAAkC,EAAA;AAC5C,QAAA,OAAO,YAAY,CAAC;KACrB;AACF,CAAA;AAEM,MAAM,2BAA2B,GAAG,eAAe,CAAC;MAK9C,qBAAqB,CAAA;AAChC,IAAA,WAAA,GAAA;AACE,QAAA,OAAO,kBAAkB,CAAuB,2BAA2B,CAAC,CAAC;KAC9E;AACF,CAAA;AAEM,MAAM,qBAAqB,GAAG,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CACrD,SAAS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B,EAAE,IAAI,EAAE;AACtD,MAAA,WAAW,GAAG,SAAS,CAACC,aAAY,EAAE,IAAI,EAAE;AAC5C,MAAA,MAAM,GAAG,SAAS,CAACJ,QAAO,EAAE,IAAI,EAAE;AAClC,MAAA,UAAU,GAAG,SAAS,CAACD,YAAW,EAAE,IAAI,EAAE;AAC1C,MAAA,SAAS,GAAG,SAAS,CAACD,WAAU,EAAE,IAAI,EAAE;AACxC,MAAA,eAAe,GAAG,SAAS,CAACO,iBAAgB,EAAE,IAAI,EAAE;AACpD,MAAA,SAAS,GAAG,SAAS,CAACR,WAAU,EAAE,IAAI,EAAE;AACxC,MAAA,QAAQ,GAAG,SAAS,CAACD,UAAS,EAAE,IAAI,EAAE;AACtC,MAAA,WAAW,GAAG,SAAS,CAACU,aAAY,EAAE,IAAI;;AC/BvD;;AAEG;;;;"}
@@ -1,4 +1,4 @@
1
- import { ɵgetAllInstancesOf, ɵgetDefaultInstanceOf, VERSION, ɵAngularFireSchedulers, ɵzoneWrap } from '@angular/fire';
1
+ import { ɵgetAllInstancesOf, ɵgetDefaultInstanceOf, VERSION, ɵAngularFireSchedulers, ɵAppCheckInstances, ɵzoneWrap } from '@angular/fire';
2
2
  import { timer, from } from 'rxjs';
3
3
  import { concatMap, distinct } from 'rxjs/operators';
4
4
  import * as i0 from '@angular/core';
@@ -6,7 +6,6 @@ import { InjectionToken, Optional, NgModule, NgZone, Injector } from '@angular/c
6
6
  import { FirebaseApp, FirebaseApps } from '@angular/fire/app';
7
7
  import { AuthInstances } from '@angular/fire/auth';
8
8
  import { registerVersion } from 'firebase/app';
9
- import { AppCheckInstances } from '@angular/fire/app-check';
10
9
  import { fromTask as fromTask$1, percentage as percentage$1 } from 'rxfire/storage';
11
10
  import { connectStorageEmulator as connectStorageEmulator$1, deleteObject as deleteObject$1, getBlob as getBlob$1, getBytes as getBytes$1, getDownloadURL as getDownloadURL$1, getMetadata as getMetadata$1, getStorage as getStorage$1, getStream as getStream$1, list as list$1, listAll as listAll$1, ref as ref$1, updateMetadata as updateMetadata$1, uploadBytes as uploadBytes$1, uploadBytesResumable as uploadBytesResumable$1, uploadString as uploadString$1 } from 'firebase/storage';
12
11
  export * from 'firebase/storage';
@@ -53,14 +52,14 @@ class StorageModule {
53
52
  constructor() {
54
53
  registerVersion('angularfire', VERSION.full, 'gcs');
55
54
  }
55
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: StorageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
56
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: StorageModule });
57
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: StorageModule, providers: [
58
+ DEFAULT_STORAGE_INSTANCE_PROVIDER,
59
+ STORAGE_INSTANCES_PROVIDER,
60
+ ] });
56
61
  }
57
- StorageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: StorageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
58
- StorageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: StorageModule });
59
- StorageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: StorageModule, providers: [
60
- DEFAULT_STORAGE_INSTANCE_PROVIDER,
61
- STORAGE_INSTANCES_PROVIDER,
62
- ] });
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: StorageModule, decorators: [{
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: StorageModule, decorators: [{
64
63
  type: NgModule,
65
64
  args: [{
66
65
  providers: [
@@ -83,7 +82,7 @@ function provideStorage(fn, ...deps) {
83
82
  FirebaseApps,
84
83
  // Defensively load Auth first, if provided
85
84
  [new Optional(), AuthInstances],
86
- [new Optional(), AppCheckInstances],
85
+ [new Optional(), ɵAppCheckInstances],
87
86
  ...deps,
88
87
  ]
89
88
  }]
@@ -116,4 +115,4 @@ const uploadString = ɵzoneWrap(uploadString$1, true);
116
115
  */
117
116
 
118
117
  export { Storage, StorageInstances, StorageModule, connectStorageEmulator, deleteObject, fromTask, getBlob, getBytes, getDownloadURL, getMetadata, getStorage, getStream, list, listAll, percentage, provideStorage, ref, storageInstance$, updateMetadata, uploadBytes, uploadBytesResumable, uploadString };
119
- //# sourceMappingURL=angular-fire-storage.js.map
118
+ //# sourceMappingURL=angular-fire-storage.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-fire-storage.mjs","sources":["../../../src/storage/storage.ts","../../../src/storage/storage.module.ts","../../../src/storage/rxfire.ts","../../../src/storage/firebase.ts","../../../src/storage/angular-fire-storage.ts"],"sourcesContent":["import { ɵgetAllInstancesOf } from '@angular/fire';\nimport { FirebaseStorage } from 'firebase/storage';\nimport { from, timer } from 'rxjs';\nimport { concatMap, distinct } from 'rxjs/operators';\n\n// see notes in core/firebase.app.module.ts for why we're building the class like this\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface Storage extends FirebaseStorage {}\n\nexport class Storage {\n constructor(auth: FirebaseStorage) {\n return auth;\n }\n}\n\nexport const STORAGE_PROVIDER_NAME = 'storage';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface StorageInstances extends Array<FirebaseStorage> {}\n\nexport class StorageInstances {\n constructor() {\n return ɵgetAllInstancesOf<FirebaseStorage>(STORAGE_PROVIDER_NAME);\n }\n}\n\nexport const storageInstance$ = timer(0, 300).pipe(\n concatMap(() => from(ɵgetAllInstancesOf<FirebaseStorage>(STORAGE_PROVIDER_NAME))),\n distinct(),\n);\n","import { InjectionToken, Injector, ModuleWithProviders, NgModule, NgZone, Optional } from '@angular/core';\nimport { VERSION, ɵAngularFireSchedulers, ɵgetDefaultInstanceOf } from '@angular/fire';\nimport { ɵAppCheckInstances } from '@angular/fire';\nimport { FirebaseApp, FirebaseApps } from '@angular/fire/app';\nimport { AuthInstances } from '@angular/fire/auth';\nimport { registerVersion } from 'firebase/app';\nimport { FirebaseStorage } from 'firebase/storage';\nimport { STORAGE_PROVIDER_NAME, Storage, StorageInstances } from './storage';\n\nexport const PROVIDED_STORAGE_INSTANCES = new InjectionToken<Storage[]>('angularfire2.storage-instances');\n\nexport function defaultStorageInstanceFactory(provided: FirebaseStorage[]|undefined, defaultApp: FirebaseApp) {\n const defaultStorage = ɵgetDefaultInstanceOf<FirebaseStorage>(STORAGE_PROVIDER_NAME, provided, defaultApp);\n return defaultStorage && new Storage(defaultStorage);\n}\n\nexport function storageInstanceFactory(fn: (injector: Injector) => FirebaseStorage) {\n return (zone: NgZone, injector: Injector) => {\n const storage = zone.runOutsideAngular(() => fn(injector));\n return new Storage(storage);\n };\n}\n\nconst STORAGE_INSTANCES_PROVIDER = {\n provide: StorageInstances,\n deps: [\n [new Optional(), PROVIDED_STORAGE_INSTANCES ],\n ]\n};\n\nconst DEFAULT_STORAGE_INSTANCE_PROVIDER = {\n provide: Storage,\n useFactory: defaultStorageInstanceFactory,\n deps: [\n [new Optional(), PROVIDED_STORAGE_INSTANCES ],\n FirebaseApp,\n ]\n};\n\n@NgModule({\n providers: [\n DEFAULT_STORAGE_INSTANCE_PROVIDER,\n STORAGE_INSTANCES_PROVIDER,\n ]\n})\nexport class StorageModule {\n constructor() {\n registerVersion('angularfire', VERSION.full, 'gcs');\n }\n}\n\nexport function provideStorage(fn: (injector: Injector) => FirebaseStorage, ...deps: any[]): ModuleWithProviders<StorageModule> {\n return {\n ngModule: StorageModule,\n providers: [{\n provide: PROVIDED_STORAGE_INSTANCES,\n useFactory: storageInstanceFactory(fn),\n multi: true,\n deps: [\n NgZone,\n Injector,\n ɵAngularFireSchedulers,\n FirebaseApps,\n // Defensively load Auth first, if provided\n [new Optional(), AuthInstances ],\n [new Optional(), ɵAppCheckInstances ],\n ...deps,\n ]\n }]\n };\n}\n","// DO NOT MODIFY, this file is autogenerated by tools/build.ts\nimport { ɵzoneWrap } from '@angular/fire';\nimport {\n fromTask as _fromTask,\n percentage as _percentage\n} from 'rxfire/storage';\n\nexport const fromTask = ɵzoneWrap(_fromTask, true);\nexport const percentage = ɵzoneWrap(_percentage, true);\n","// DO NOT MODIFY, this file is autogenerated by tools/build.ts\nexport * from 'firebase/storage';\nimport { ɵzoneWrap } from '@angular/fire';\nimport {\n connectStorageEmulator as _connectStorageEmulator,\n deleteObject as _deleteObject,\n getBlob as _getBlob,\n getBytes as _getBytes,\n getDownloadURL as _getDownloadURL,\n getMetadata as _getMetadata,\n getStorage as _getStorage,\n getStream as _getStream,\n list as _list,\n listAll as _listAll,\n ref as _ref,\n updateMetadata as _updateMetadata,\n uploadBytes as _uploadBytes,\n uploadBytesResumable as _uploadBytesResumable,\n uploadString as _uploadString\n} from 'firebase/storage';\n\nexport const connectStorageEmulator = ɵzoneWrap(_connectStorageEmulator, true);\nexport const deleteObject = ɵzoneWrap(_deleteObject, true);\nexport const getBlob = ɵzoneWrap(_getBlob, true);\nexport const getBytes = ɵzoneWrap(_getBytes, true);\nexport const getDownloadURL = ɵzoneWrap(_getDownloadURL, true);\nexport const getMetadata = ɵzoneWrap(_getMetadata, true);\nexport const getStorage = ɵzoneWrap(_getStorage, true);\nexport const getStream = ɵzoneWrap(_getStream, true);\nexport const list = ɵzoneWrap(_list, true);\nexport const listAll = ɵzoneWrap(_listAll, true);\nexport const ref = ɵzoneWrap(_ref, true);\nexport const updateMetadata = ɵzoneWrap(_updateMetadata, true);\nexport const uploadBytes = ɵzoneWrap(_uploadBytes, true);\nexport const uploadBytesResumable = ɵzoneWrap(_uploadBytesResumable, true);\nexport const uploadString = ɵzoneWrap(_uploadString, true);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["_fromTask","_percentage","_connectStorageEmulator","_deleteObject","_getBlob","_getBytes","_getDownloadURL","_getMetadata","_getStorage","_getStream","_list","_listAll","_ref","_updateMetadata","_uploadBytes","_uploadBytesResumable","_uploadString"],"mappings":";;;;;;;;;;;;MASa,OAAO,CAAA;AAClB,IAAA,WAAA,CAAY,IAAqB,EAAA;AAC/B,QAAA,OAAO,IAAI,CAAC;KACb;AACF,CAAA;AAEM,MAAM,qBAAqB,GAAG,SAAS,CAAC;MAKlC,gBAAgB,CAAA;AAC3B,IAAA,WAAA,GAAA;AACE,QAAA,OAAO,kBAAkB,CAAkB,qBAAqB,CAAC,CAAC;KACnE;AACF,CAAA;AAEM,MAAM,gBAAgB,GAAG,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAChD,SAAS,CAAC,MAAM,IAAI,CAAC,kBAAkB,CAAkB,qBAAqB,CAAC,CAAC,CAAC,EACjF,QAAQ,EAAE;;ACnBL,MAAM,0BAA0B,GAAG,IAAI,cAAc,CAAY,gCAAgC,CAAC,CAAC;AAE1F,SAAA,6BAA6B,CAAC,QAAqC,EAAE,UAAuB,EAAA;IAC1G,MAAM,cAAc,GAAG,qBAAqB,CAAkB,qBAAqB,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;AAC3G,IAAA,OAAO,cAAc,IAAI,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;AACvD,CAAC;AAEK,SAAU,sBAAsB,CAAC,EAA2C,EAAA;AAChF,IAAA,OAAO,CAAC,IAAY,EAAE,QAAkB,KAAI;AAC1C,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC3D,QAAA,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;AAC9B,KAAC,CAAC;AACJ,CAAC;AAED,MAAM,0BAA0B,GAAG;AACjC,IAAA,OAAO,EAAE,gBAAgB;AACzB,IAAA,IAAI,EAAE;AACJ,QAAA,CAAC,IAAI,QAAQ,EAAE,EAAE,0BAA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;"}
@@ -1,55 +1,13 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Version, Injectable } from '@angular/core';
3
3
  import { getApps } from 'firebase/app';
4
- import { isSupported as isSupported$2 } from 'firebase/remote-config';
5
- import { isSupported as isSupported$1 } from 'firebase/messaging';
6
- import { isSupported } from 'firebase/analytics';
7
4
  import { queueScheduler, asyncScheduler, Observable } from 'rxjs';
8
5
  import { tap, observeOn, subscribeOn } from 'rxjs/operators';
9
6
 
10
- const VERSION = new Version('7.6.0');
11
- const isAnalyticsSupportedValueSymbol = '__angularfire_symbol__analyticsIsSupportedValue';
12
- const isAnalyticsSupportedPromiseSymbol = '__angularfire_symbol__analyticsIsSupported';
13
- const isRemoteConfigSupportedValueSymbol = '__angularfire_symbol__remoteConfigIsSupportedValue';
14
- const isRemoteConfigSupportedPromiseSymbol = '__angularfire_symbol__remoteConfigIsSupported';
15
- const isMessagingSupportedValueSymbol = '__angularfire_symbol__messagingIsSupportedValue';
16
- const isMessagingSupportedPromiseSymbol = '__angularfire_symbol__messagingIsSupported';
17
- globalThis[isAnalyticsSupportedPromiseSymbol] || (globalThis[isAnalyticsSupportedPromiseSymbol] = isSupported().then(it => globalThis[isAnalyticsSupportedValueSymbol] = it).catch(() => globalThis[isAnalyticsSupportedValueSymbol] = false));
18
- globalThis[isMessagingSupportedPromiseSymbol] || (globalThis[isMessagingSupportedPromiseSymbol] = isSupported$1().then(it => globalThis[isMessagingSupportedValueSymbol] = it).catch(() => globalThis[isMessagingSupportedValueSymbol] = false));
19
- globalThis[isRemoteConfigSupportedPromiseSymbol] || (globalThis[isRemoteConfigSupportedPromiseSymbol] = isSupported$2().then(it => globalThis[isRemoteConfigSupportedValueSymbol] = it).catch(() => globalThis[isRemoteConfigSupportedValueSymbol] = false));
20
- const isSupportedError = (module) => `The APP_INITIALIZER that is "making" isSupported() sync for the sake of convenient DI has not resolved in this
7
+ const VERSION = new Version('ANGULARFIRE2_VERSION');
8
+ const ɵisSupportedError = (module) => `The APP_INITIALIZER that is "making" isSupported() sync for the sake of convenient DI has not resolved in this
21
9
  context. Rather than injecting ${module} in the constructor, first ensure that ${module} is supported by calling
22
10
  \`await isSupported()\`, then retrieve the instance from the injector manually \`injector.get(${module})\`.`;
23
- const ɵisMessagingSupportedFactory = {
24
- async: () => globalThis[isMessagingSupportedPromiseSymbol],
25
- sync: () => {
26
- const ret = globalThis[isMessagingSupportedValueSymbol];
27
- if (ret === undefined) {
28
- throw new Error(isSupportedError('Messaging'));
29
- }
30
- return ret;
31
- }
32
- };
33
- const ɵisRemoteConfigSupportedFactory = {
34
- async: () => globalThis[isRemoteConfigSupportedPromiseSymbol],
35
- sync: () => {
36
- const ret = globalThis[isRemoteConfigSupportedValueSymbol];
37
- if (ret === undefined) {
38
- throw new Error(isSupportedError('RemoteConfig'));
39
- }
40
- return ret;
41
- }
42
- };
43
- const ɵisAnalyticsSupportedFactory = {
44
- async: () => globalThis[isAnalyticsSupportedPromiseSymbol],
45
- sync: () => {
46
- const ret = globalThis[isAnalyticsSupportedValueSymbol];
47
- if (ret === undefined) {
48
- throw new Error(isSupportedError('Analytics'));
49
- }
50
- return ret;
51
- }
52
- };
53
11
  function ɵgetDefaultInstanceOf(identifier, provided, defaultApp) {
54
12
  if (provided) {
55
13
  // Was provide* only called once? If so grab that
@@ -80,14 +38,23 @@ const ɵgetAllInstancesOf = (identifier, app) => {
80
38
  });
81
39
  return instances;
82
40
  };
41
+ class ɵAppCheckInstances {
42
+ constructor() {
43
+ return ɵgetAllInstancesOf(ɵAPP_CHECK_PROVIDER_NAME);
44
+ }
45
+ }
46
+ const ɵAPP_CHECK_PROVIDER_NAME = 'app-check';
83
47
 
48
+ /* eslint-disable @typescript-eslint/ban-ts-comment */
49
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
84
50
  function noop() {
85
51
  }
86
52
  /**
87
53
  * Schedules tasks so that they are invoked inside the Zone that is passed in the constructor.
88
54
  */
89
- // tslint:disable-next-line:class-name
90
55
  class ɵZoneScheduler {
56
+ zone;
57
+ delegate;
91
58
  constructor(zone, delegate = queueScheduler) {
92
59
  this.zone = zone;
93
60
  this.delegate = delegate;
@@ -111,12 +78,15 @@ class ɵZoneScheduler {
111
78
  }
112
79
  }
113
80
  class BlockUntilFirstOperator {
81
+ zone;
82
+ // @ts-ignore
83
+ task = null;
114
84
  constructor(zone) {
115
85
  this.zone = zone;
116
- this.task = null;
117
86
  }
118
87
  call(subscriber, source) {
119
88
  const unscheduleTask = this.unscheduleTask.bind(this);
89
+ // @ts-ignore
120
90
  this.task = this.zone.run(() => Zone.current.scheduleMacroTask('firebaseZoneBlock', noop, {}, noop, noop));
121
91
  return source.pipe(tap({ next: unscheduleTask, complete: unscheduleTask, error: unscheduleTask })).subscribe(subscriber).add(unscheduleTask);
122
92
  }
@@ -131,18 +101,22 @@ class BlockUntilFirstOperator {
131
101
  }, 10);
132
102
  }
133
103
  }
134
- // tslint:disable-next-line:class-name
135
104
  class ɵAngularFireSchedulers {
105
+ ngZone;
106
+ outsideAngular;
107
+ insideAngular;
136
108
  constructor(ngZone) {
137
109
  this.ngZone = ngZone;
110
+ // @ts-ignore
138
111
  this.outsideAngular = ngZone.runOutsideAngular(() => new ɵZoneScheduler(Zone.current));
112
+ // @ts-ignore
139
113
  this.insideAngular = ngZone.run(() => new ɵZoneScheduler(Zone.current, asyncScheduler));
140
- globalThis.ɵAngularFireScheduler || (globalThis.ɵAngularFireScheduler = this);
114
+ globalThis.ɵAngularFireScheduler ||= this;
141
115
  }
116
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: ɵAngularFireSchedulers, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
117
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: ɵAngularFireSchedulers, providedIn: 'root' });
142
118
  }
143
- ɵAngularFireSchedulers.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: ɵAngularFireSchedulers, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
144
- ɵAngularFireSchedulers.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: ɵAngularFireSchedulers, providedIn: 'root' });
145
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: ɵAngularFireSchedulers, decorators: [{
119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: ɵAngularFireSchedulers, decorators: [{
146
120
  type: Injectable,
147
121
  args: [{
148
122
  providedIn: 'root',
@@ -169,7 +143,6 @@ function observeInsideAngular(obs$) {
169
143
  return obs$.pipe(observeOn(getSchedulers().insideAngular));
170
144
  }
171
145
  function keepUnstableUntilFirst(obs$) {
172
- const scheduler = getSchedulers();
173
146
  return ɵkeepUnstableUntilFirstFactory(getSchedulers())(obs$);
174
147
  }
175
148
  /**
@@ -191,10 +164,11 @@ function ɵkeepUnstableUntilFirstFactory(schedulers) {
191
164
  );
192
165
  };
193
166
  }
167
+ // @ts-ignore
194
168
  const zoneWrapFn = (it, macrotask) => {
169
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
195
170
  const _this = this;
196
171
  // function() is needed for the arguments object
197
- // tslint:disable-next-line:only-arrow-functions
198
172
  return function () {
199
173
  const _arguments = arguments;
200
174
  if (macrotask) {
@@ -209,8 +183,8 @@ const zoneWrapFn = (it, macrotask) => {
209
183
  };
210
184
  const ɵzoneWrap = (it, blockUntilFirst) => {
211
185
  // function() is needed for the arguments object
212
- // tslint:disable-next-line:only-arrow-functions
213
186
  return function () {
187
+ // @ts-ignore
214
188
  let macrotask;
215
189
  const _arguments = arguments;
216
190
  // if this is a callback function, e.g, onSnapshot, we should create a microtask and invoke it
@@ -218,7 +192,8 @@ const ɵzoneWrap = (it, blockUntilFirst) => {
218
192
  for (let i = 0; i < arguments.length; i++) {
219
193
  if (typeof _arguments[i] === 'function') {
220
194
  if (blockUntilFirst) {
221
- macrotask || (macrotask = run(() => Zone.current.scheduleMacroTask('firebaseZoneBlock', noop, {}, noop, noop)));
195
+ // @ts-ignore
196
+ macrotask ||= run(() => Zone.current.scheduleMacroTask('firebaseZoneBlock', noop, {}, noop, noop));
222
197
  }
223
198
  // TODO create a microtask to track callback functions
224
199
  _arguments[i] = zoneWrapFn(_arguments[i], macrotask);
@@ -238,12 +213,12 @@ const ɵzoneWrap = (it, blockUntilFirst) => {
238
213
  return ret.pipe(keepUnstableUntilFirst);
239
214
  }
240
215
  else if (ret instanceof Promise) {
216
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
241
217
  return run(() => new Promise((resolve, reject) => ret.then(it => run(() => resolve(it)), reason => run(() => reject(reason)))));
242
218
  }
243
219
  else if (typeof ret === 'function' && macrotask) {
244
220
  // Handle unsubscribe
245
221
  // function() is needed for the arguments object
246
- // tslint:disable-next-line:only-arrow-functions
247
222
  return function () {
248
223
  setTimeout(() => {
249
224
  if (macrotask && macrotask.state === 'scheduled') {
@@ -264,5 +239,5 @@ const ɵzoneWrap = (it, blockUntilFirst) => {
264
239
  * Generated bundle index. Do not edit.
265
240
  */
266
241
 
267
- export { VERSION, keepUnstableUntilFirst, observeInsideAngular, observeOutsideAngular, ɵAngularFireSchedulers, ɵZoneScheduler, ɵgetAllInstancesOf, ɵgetDefaultInstanceOf, ɵisAnalyticsSupportedFactory, ɵisMessagingSupportedFactory, ɵisRemoteConfigSupportedFactory, ɵkeepUnstableUntilFirstFactory, ɵzoneWrap };
268
- //# sourceMappingURL=angular-fire.js.map
242
+ export { VERSION, keepUnstableUntilFirst, observeInsideAngular, observeOutsideAngular, ɵAPP_CHECK_PROVIDER_NAME, ɵAngularFireSchedulers, ɵAppCheckInstances, ɵZoneScheduler, ɵgetAllInstancesOf, ɵgetDefaultInstanceOf, ɵisSupportedError, ɵkeepUnstableUntilFirstFactory, ɵzoneWrap };
243
+ //# sourceMappingURL=angular-fire.mjs.map