@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,598 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs'), require('rxjs/operators'), require('@angular/fire'), require('@angular/core'), require('@angular/fire/compat'), require('firebase/compat/storage'), require('@angular/fire/app-check'), require('@angular/common'), require('@angular/platform-browser'), require('firebase/compat/app')) :
3
- typeof define === 'function' && define.amd ? define('@angular/fire/compat/storage', ['exports', 'rxjs', 'rxjs/operators', '@angular/fire', '@angular/core', '@angular/fire/compat', 'firebase/compat/storage', '@angular/fire/app-check', '@angular/common', '@angular/platform-browser', 'firebase/compat/app'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.angular = global.angular || {}, global.angular.fire = global.angular.fire || {}, global.angular.fire.compat = global.angular.fire.compat || {}, global.angular.fire.compat.storage = {}), global.rxjs, global.rxjs.operators, global.angular.fire, global.ng.core, global.angular.fire.compat, null, global.angular.fire['app-check'], global.ng.common, global.ng.platformBrowser, global.firebase));
5
- }(this, (function (exports, rxjs, operators, i1, i0, compat, storage, i2, common, i2$1, firebase) { 'use strict';
6
-
7
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
-
9
- function _interopNamespace(e) {
10
- if (e && e.__esModule) return e;
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () {
19
- return e[k];
20
- }
21
- });
22
- }
23
- });
24
- }
25
- n['default'] = e;
26
- return Object.freeze(n);
27
- }
28
-
29
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
30
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
31
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
32
- var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
33
- var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
34
-
35
- // Things aren't working great, I'm having to put in a lot of work-arounds for what
36
- // appear to be Firebase JS SDK bugs https://github.com/firebase/firebase-js-sdk/issues/4158
37
- function fromTask(task) {
38
- return new rxjs.Observable(function (subscriber) {
39
- var progress = function (snap) { return subscriber.next(snap); };
40
- var error = function (e) { return subscriber.error(e); };
41
- var complete = function () { return subscriber.complete(); };
42
- // emit the current snapshot, so they don't have to wait for state_changes
43
- // to fire next... this is stale if the task is no longer running :(
44
- progress(task.snapshot);
45
- var unsub = task.on('state_changed', progress);
46
- // it turns out that neither task snapshot nor 'state_changed' fire the last
47
- // snapshot before completion, the one with status 'success" and 100% progress
48
- // so let's use the promise form of the task for that
49
- task.then(function (snapshot) {
50
- progress(snapshot);
51
- complete();
52
- }, function (e) {
53
- // TODO investigate, again this is stale, we never fire a canceled or error it seems
54
- progress(task.snapshot);
55
- error(e);
56
- });
57
- // on's type if Function, rather than () => void, need to wrap
58
- return function unsubscribe() {
59
- unsub();
60
- };
61
- }).pipe(
62
- // deal with sync emissions from first emitting `task.snapshot`, this makes sure
63
- // that if the task is already finished we don't emit the old running state
64
- operators.debounceTime(0));
65
- }
66
-
67
- /**
68
- * Create an AngularFireUploadTask from a regular UploadTask from the Storage SDK.
69
- * This method creates an observable of the upload and returns on object that provides
70
- * multiple methods for controlling and monitoring the file upload.
71
- */
72
- function createUploadTask(task) {
73
- var inner$ = fromTask(task);
74
- return {
75
- task: task,
76
- then: task.then.bind(task),
77
- catch: task.catch.bind(task),
78
- pause: task.pause.bind(task),
79
- cancel: task.cancel.bind(task),
80
- resume: task.resume.bind(task),
81
- snapshotChanges: function () { return inner$; },
82
- percentageChanges: function () { return inner$.pipe(operators.map(function (s) { return s.bytesTransferred / s.totalBytes * 100; })); }
83
- };
84
- }
85
-
86
- /**
87
- * Create an AngularFire wrapped Storage Reference. This object
88
- * creates observable methods from promise based methods.
89
- */
90
- function createStorageRef(ref) {
91
- return {
92
- getDownloadURL: function () { return rxjs.of(undefined).pipe(i1.observeOutsideAngular, operators.switchMap(function () { return ref.getDownloadURL(); }), i1.keepUnstableUntilFirst); },
93
- getMetadata: function () { return rxjs.of(undefined).pipe(i1.observeOutsideAngular, operators.switchMap(function () { return ref.getMetadata(); }), i1.keepUnstableUntilFirst); },
94
- delete: function () { return rxjs.from(ref.delete()); },
95
- child: function (path) { return createStorageRef(ref.child(path)); },
96
- updateMetadata: function (meta) { return rxjs.from(ref.updateMetadata(meta)); },
97
- put: function (data, metadata) {
98
- var task = ref.put(data, metadata);
99
- return createUploadTask(task);
100
- },
101
- putString: function (data, format, metadata) {
102
- var task = ref.putString(data, format, metadata);
103
- return createUploadTask(task);
104
- },
105
- list: function (options) { return rxjs.from(ref.list(options)); },
106
- listAll: function () { return rxjs.from(ref.listAll()); }
107
- };
108
- }
109
-
110
- /*! *****************************************************************************
111
- Copyright (c) Microsoft Corporation.
112
-
113
- Permission to use, copy, modify, and/or distribute this software for any
114
- purpose with or without fee is hereby granted.
115
-
116
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
117
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
118
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
119
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
120
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
121
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
122
- PERFORMANCE OF THIS SOFTWARE.
123
- ***************************************************************************** */
124
- /* global Reflect, Promise */
125
- var extendStatics = function (d, b) {
126
- extendStatics = Object.setPrototypeOf ||
127
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
128
- function (d, b) { for (var p in b)
129
- if (Object.prototype.hasOwnProperty.call(b, p))
130
- d[p] = b[p]; };
131
- return extendStatics(d, b);
132
- };
133
- function __extends(d, b) {
134
- if (typeof b !== "function" && b !== null)
135
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
136
- extendStatics(d, b);
137
- function __() { this.constructor = d; }
138
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
139
- }
140
- var __assign = function () {
141
- __assign = Object.assign || function __assign(t) {
142
- for (var s, i = 1, n = arguments.length; i < n; i++) {
143
- s = arguments[i];
144
- for (var p in s)
145
- if (Object.prototype.hasOwnProperty.call(s, p))
146
- t[p] = s[p];
147
- }
148
- return t;
149
- };
150
- return __assign.apply(this, arguments);
151
- };
152
- function __rest(s, e) {
153
- var t = {};
154
- for (var p in s)
155
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
156
- t[p] = s[p];
157
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
158
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
159
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
160
- t[p[i]] = s[p[i]];
161
- }
162
- return t;
163
- }
164
- function __decorate(decorators, target, key, desc) {
165
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
166
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
167
- r = Reflect.decorate(decorators, target, key, desc);
168
- else
169
- for (var i = decorators.length - 1; i >= 0; i--)
170
- if (d = decorators[i])
171
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
172
- return c > 3 && r && Object.defineProperty(target, key, r), r;
173
- }
174
- function __param(paramIndex, decorator) {
175
- return function (target, key) { decorator(target, key, paramIndex); };
176
- }
177
- function __metadata(metadataKey, metadataValue) {
178
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
179
- return Reflect.metadata(metadataKey, metadataValue);
180
- }
181
- function __awaiter(thisArg, _arguments, P, generator) {
182
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
183
- return new (P || (P = Promise))(function (resolve, reject) {
184
- function fulfilled(value) { try {
185
- step(generator.next(value));
186
- }
187
- catch (e) {
188
- reject(e);
189
- } }
190
- function rejected(value) { try {
191
- step(generator["throw"](value));
192
- }
193
- catch (e) {
194
- reject(e);
195
- } }
196
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
197
- step((generator = generator.apply(thisArg, _arguments || [])).next());
198
- });
199
- }
200
- function __generator(thisArg, body) {
201
- var _ = { label: 0, sent: function () { if (t[0] & 1)
202
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
203
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
204
- function verb(n) { return function (v) { return step([n, v]); }; }
205
- function step(op) {
206
- if (f)
207
- throw new TypeError("Generator is already executing.");
208
- while (_)
209
- try {
210
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
211
- return t;
212
- if (y = 0, t)
213
- op = [op[0] & 2, t.value];
214
- switch (op[0]) {
215
- case 0:
216
- case 1:
217
- t = op;
218
- break;
219
- case 4:
220
- _.label++;
221
- return { value: op[1], done: false };
222
- case 5:
223
- _.label++;
224
- y = op[1];
225
- op = [0];
226
- continue;
227
- case 7:
228
- op = _.ops.pop();
229
- _.trys.pop();
230
- continue;
231
- default:
232
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
233
- _ = 0;
234
- continue;
235
- }
236
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
237
- _.label = op[1];
238
- break;
239
- }
240
- if (op[0] === 6 && _.label < t[1]) {
241
- _.label = t[1];
242
- t = op;
243
- break;
244
- }
245
- if (t && _.label < t[2]) {
246
- _.label = t[2];
247
- _.ops.push(op);
248
- break;
249
- }
250
- if (t[2])
251
- _.ops.pop();
252
- _.trys.pop();
253
- continue;
254
- }
255
- op = body.call(thisArg, _);
256
- }
257
- catch (e) {
258
- op = [6, e];
259
- y = 0;
260
- }
261
- finally {
262
- f = t = 0;
263
- }
264
- if (op[0] & 5)
265
- throw op[1];
266
- return { value: op[0] ? op[1] : void 0, done: true };
267
- }
268
- }
269
- var __createBinding = Object.create ? (function (o, m, k, k2) {
270
- if (k2 === undefined)
271
- k2 = k;
272
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
273
- }) : (function (o, m, k, k2) {
274
- if (k2 === undefined)
275
- k2 = k;
276
- o[k2] = m[k];
277
- });
278
- function __exportStar(m, o) {
279
- for (var p in m)
280
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
281
- __createBinding(o, m, p);
282
- }
283
- function __values(o) {
284
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
285
- if (m)
286
- return m.call(o);
287
- if (o && typeof o.length === "number")
288
- return {
289
- next: function () {
290
- if (o && i >= o.length)
291
- o = void 0;
292
- return { value: o && o[i++], done: !o };
293
- }
294
- };
295
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
296
- }
297
- function __read(o, n) {
298
- var m = typeof Symbol === "function" && o[Symbol.iterator];
299
- if (!m)
300
- return o;
301
- var i = m.call(o), r, ar = [], e;
302
- try {
303
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
304
- ar.push(r.value);
305
- }
306
- catch (error) {
307
- e = { error: error };
308
- }
309
- finally {
310
- try {
311
- if (r && !r.done && (m = i["return"]))
312
- m.call(i);
313
- }
314
- finally {
315
- if (e)
316
- throw e.error;
317
- }
318
- }
319
- return ar;
320
- }
321
- /** @deprecated */
322
- function __spread() {
323
- for (var ar = [], i = 0; i < arguments.length; i++)
324
- ar = ar.concat(__read(arguments[i]));
325
- return ar;
326
- }
327
- /** @deprecated */
328
- function __spreadArrays() {
329
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
330
- s += arguments[i].length;
331
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
332
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
333
- r[k] = a[j];
334
- return r;
335
- }
336
- function __spreadArray(to, from) {
337
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
338
- to[j] = from[i];
339
- return to;
340
- }
341
- function __await(v) {
342
- return this instanceof __await ? (this.v = v, this) : new __await(v);
343
- }
344
- function __asyncGenerator(thisArg, _arguments, generator) {
345
- if (!Symbol.asyncIterator)
346
- throw new TypeError("Symbol.asyncIterator is not defined.");
347
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
348
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
349
- function verb(n) { if (g[n])
350
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
351
- function resume(n, v) { try {
352
- step(g[n](v));
353
- }
354
- catch (e) {
355
- settle(q[0][3], e);
356
- } }
357
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
358
- function fulfill(value) { resume("next", value); }
359
- function reject(value) { resume("throw", value); }
360
- function settle(f, v) { if (f(v), q.shift(), q.length)
361
- resume(q[0][0], q[0][1]); }
362
- }
363
- function __asyncDelegator(o) {
364
- var i, p;
365
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
366
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
367
- }
368
- function __asyncValues(o) {
369
- if (!Symbol.asyncIterator)
370
- throw new TypeError("Symbol.asyncIterator is not defined.");
371
- var m = o[Symbol.asyncIterator], i;
372
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
373
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
374
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
375
- }
376
- function __makeTemplateObject(cooked, raw) {
377
- if (Object.defineProperty) {
378
- Object.defineProperty(cooked, "raw", { value: raw });
379
- }
380
- else {
381
- cooked.raw = raw;
382
- }
383
- return cooked;
384
- }
385
- ;
386
- var __setModuleDefault = Object.create ? (function (o, v) {
387
- Object.defineProperty(o, "default", { enumerable: true, value: v });
388
- }) : function (o, v) {
389
- o["default"] = v;
390
- };
391
- function __importStar(mod) {
392
- if (mod && mod.__esModule)
393
- return mod;
394
- var result = {};
395
- if (mod != null)
396
- for (var k in mod)
397
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
398
- __createBinding(result, mod, k);
399
- __setModuleDefault(result, mod);
400
- return result;
401
- }
402
- function __importDefault(mod) {
403
- return (mod && mod.__esModule) ? mod : { default: mod };
404
- }
405
- function __classPrivateFieldGet(receiver, state, kind, f) {
406
- if (kind === "a" && !f)
407
- throw new TypeError("Private accessor was defined without a getter");
408
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
409
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
410
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
411
- }
412
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
413
- if (kind === "m")
414
- throw new TypeError("Private method is not writable");
415
- if (kind === "a" && !f)
416
- throw new TypeError("Private accessor was defined without a setter");
417
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
418
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
419
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
420
- }
421
-
422
- var BUCKET = new i0.InjectionToken('angularfire2.storageBucket');
423
- var MAX_UPLOAD_RETRY_TIME = new i0.InjectionToken('angularfire2.storage.maxUploadRetryTime');
424
- var MAX_OPERATION_RETRY_TIME = new i0.InjectionToken('angularfire2.storage.maxOperationRetryTime');
425
- var USE_EMULATOR = new i0.InjectionToken('angularfire2.storage.use-emulator');
426
- /**
427
- * AngularFireStorage Service
428
- *
429
- * This service is the main entry point for this feature module. It provides
430
- * an API for uploading and downloading binary files from Cloud Storage for
431
- * Firebase.
432
- */
433
- var AngularFireStorage = /** @class */ (function () {
434
- function AngularFireStorage(options, name, storageBucket,
435
- // tslint:disable-next-line:ban-types
436
- platformId, zone, schedulers, maxUploadRetryTime, maxOperationRetryTime, _useEmulator, _appCheckInstances) {
437
- var app = compat.ɵfirebaseAppFactory(options, zone, name);
438
- this.storage = compat.ɵcacheInstance(app.name + ".storage." + storageBucket, 'AngularFireStorage', app.name, function () {
439
- var storage = zone.runOutsideAngular(function () { return app.storage(storageBucket || undefined); });
440
- var useEmulator = _useEmulator;
441
- if (useEmulator) {
442
- storage.useEmulator.apply(storage, __spreadArray([], __read(useEmulator)));
443
- }
444
- if (maxUploadRetryTime) {
445
- storage.setMaxUploadRetryTime(maxUploadRetryTime);
446
- }
447
- if (maxOperationRetryTime) {
448
- storage.setMaxOperationRetryTime(maxOperationRetryTime);
449
- }
450
- return storage;
451
- }, [maxUploadRetryTime, maxOperationRetryTime]);
452
- }
453
- AngularFireStorage.prototype.ref = function (path) {
454
- return createStorageRef(this.storage.ref(path));
455
- };
456
- AngularFireStorage.prototype.refFromURL = function (path) {
457
- return createStorageRef(this.storage.refFromURL(path));
458
- };
459
- AngularFireStorage.prototype.upload = function (path, data, metadata) {
460
- var storageRef = this.storage.ref(path);
461
- var ref = createStorageRef(storageRef);
462
- return ref.put(data, metadata);
463
- };
464
- return AngularFireStorage;
465
- }());
466
- AngularFireStorage.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: AngularFireStorage, deps: [{ token: compat.FIREBASE_OPTIONS }, { token: compat.FIREBASE_APP_NAME, optional: true }, { token: BUCKET, optional: true }, { token: i0.PLATFORM_ID }, { token: i0__namespace.NgZone }, { token: i1__namespace.ɵAngularFireSchedulers }, { token: MAX_UPLOAD_RETRY_TIME, optional: true }, { token: MAX_OPERATION_RETRY_TIME, optional: true }, { token: USE_EMULATOR, optional: true }, { token: i2__namespace.AppCheckInstances, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
467
- AngularFireStorage.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: AngularFireStorage, providedIn: 'any' });
468
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: AngularFireStorage, decorators: [{
469
- type: i0.Injectable,
470
- args: [{
471
- providedIn: 'any'
472
- }]
473
- }], ctorParameters: function () {
474
- return [{ type: undefined, decorators: [{
475
- type: i0.Inject,
476
- args: [compat.FIREBASE_OPTIONS]
477
- }] }, { type: undefined, decorators: [{
478
- type: i0.Optional
479
- }, {
480
- type: i0.Inject,
481
- args: [compat.FIREBASE_APP_NAME]
482
- }] }, { type: undefined, decorators: [{
483
- type: i0.Optional
484
- }, {
485
- type: i0.Inject,
486
- args: [BUCKET]
487
- }] }, { type: Object, decorators: [{
488
- type: i0.Inject,
489
- args: [i0.PLATFORM_ID]
490
- }] }, { type: i0__namespace.NgZone }, { type: i1__namespace.ɵAngularFireSchedulers }, { type: undefined, decorators: [{
491
- type: i0.Optional
492
- }, {
493
- type: i0.Inject,
494
- args: [MAX_UPLOAD_RETRY_TIME]
495
- }] }, { type: undefined, decorators: [{
496
- type: i0.Optional
497
- }, {
498
- type: i0.Inject,
499
- args: [MAX_OPERATION_RETRY_TIME]
500
- }] }, { type: undefined, decorators: [{
501
- type: i0.Optional
502
- }, {
503
- type: i0.Inject,
504
- args: [USE_EMULATOR]
505
- }] }, { type: i2__namespace.AppCheckInstances, decorators: [{
506
- type: i0.Optional
507
- }] }];
508
- } });
509
-
510
- /** to be used with in combination with | async */
511
- var GetDownloadURLPipe = /** @class */ (function () {
512
- function GetDownloadURLPipe(storage, cdr, state) {
513
- this.storage = storage;
514
- this.state = state;
515
- this.asyncPipe = new common.AsyncPipe(cdr);
516
- }
517
- GetDownloadURLPipe.prototype.transform = function (path) {
518
- var _this = this;
519
- var _a;
520
- if (path !== this.path) {
521
- this.path = path;
522
- var key_1 = i2$1.makeStateKey("|getDownloadURL|" + path);
523
- var existing = (_a = this.state) === null || _a === void 0 ? void 0 : _a.get(key_1, undefined);
524
- this.downloadUrl$ = existing ? rxjs.of(existing) : this.storage.ref(path).getDownloadURL().pipe(operators.tap(function (it) { var _a; return (_a = _this.state) === null || _a === void 0 ? void 0 : _a.set(key_1, it); }));
525
- }
526
- return this.asyncPipe.transform(this.downloadUrl$);
527
- };
528
- GetDownloadURLPipe.prototype.ngOnDestroy = function () {
529
- this.asyncPipe.ngOnDestroy();
530
- };
531
- return GetDownloadURLPipe;
532
- }());
533
- GetDownloadURLPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: GetDownloadURLPipe, deps: [{ token: AngularFireStorage }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace$1.TransferState, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
534
- GetDownloadURLPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: GetDownloadURLPipe, name: "getDownloadURL", pure: false });
535
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: GetDownloadURLPipe, decorators: [{
536
- type: i0.Pipe,
537
- args: [{
538
- name: 'getDownloadURL',
539
- pure: false,
540
- }]
541
- }], ctorParameters: function () {
542
- return [{ type: AngularFireStorage }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace$1.TransferState, decorators: [{
543
- type: i0.Optional
544
- }] }];
545
- } });
546
- var GetDownloadURLPipeModule = /** @class */ (function () {
547
- function GetDownloadURLPipeModule() {
548
- }
549
- return GetDownloadURLPipeModule;
550
- }());
551
- GetDownloadURLPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: GetDownloadURLPipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
552
- GetDownloadURLPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: GetDownloadURLPipeModule, declarations: [GetDownloadURLPipe], exports: [GetDownloadURLPipe] });
553
- GetDownloadURLPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: GetDownloadURLPipeModule });
554
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: GetDownloadURLPipeModule, decorators: [{
555
- type: i0.NgModule,
556
- args: [{
557
- declarations: [GetDownloadURLPipe],
558
- exports: [GetDownloadURLPipe],
559
- }]
560
- }] });
561
-
562
- var AngularFireStorageModule = /** @class */ (function () {
563
- function AngularFireStorageModule() {
564
- firebase__default['default'].registerVersion('angularfire', i1.VERSION.full, 'gcs-compat');
565
- }
566
- return AngularFireStorageModule;
567
- }());
568
- AngularFireStorageModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: AngularFireStorageModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
569
- AngularFireStorageModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: AngularFireStorageModule, exports: [GetDownloadURLPipeModule] });
570
- AngularFireStorageModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: AngularFireStorageModule, providers: [AngularFireStorage], imports: [GetDownloadURLPipeModule] });
571
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: AngularFireStorageModule, decorators: [{
572
- type: i0.NgModule,
573
- args: [{
574
- exports: [GetDownloadURLPipeModule],
575
- providers: [AngularFireStorage]
576
- }]
577
- }], ctorParameters: function () { return []; } });
578
-
579
- /**
580
- * Generated bundle index. Do not edit.
581
- */
582
-
583
- exports.AngularFireStorage = AngularFireStorage;
584
- exports.AngularFireStorageModule = AngularFireStorageModule;
585
- exports.BUCKET = BUCKET;
586
- exports.GetDownloadURLPipe = GetDownloadURLPipe;
587
- exports.GetDownloadURLPipeModule = GetDownloadURLPipeModule;
588
- exports.MAX_OPERATION_RETRY_TIME = MAX_OPERATION_RETRY_TIME;
589
- exports.MAX_UPLOAD_RETRY_TIME = MAX_UPLOAD_RETRY_TIME;
590
- exports.USE_EMULATOR = USE_EMULATOR;
591
- exports.createStorageRef = createStorageRef;
592
- exports.createUploadTask = createUploadTask;
593
- exports.fromTask = fromTask;
594
-
595
- Object.defineProperty(exports, '__esModule', { value: true });
596
-
597
- })));
598
- //# sourceMappingURL=angular-fire-compat-storage.umd.js.map