@angular/fire 7.6.1 → 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.
- package/analytics/analytics.module.d.ts +2 -2
- package/analytics/is-analytics-supported-factory.d.ts +4 -0
- package/analytics/screen-tracking.service.d.ts +3 -3
- package/app-check/app-check.d.ts +0 -6
- package/app-check/app-check.module.d.ts +3 -4
- package/app-check/public_api.d.ts +2 -1
- package/auth/auth.module.d.ts +2 -2
- package/auth-guard/auth-guard.d.ts +6 -6
- package/compat/analytics/analytics.d.ts +1 -3
- package/compat/analytics/analytics.module.d.ts +1 -1
- package/compat/analytics/screen-tracking.service.d.ts +1 -1
- package/compat/analytics/user-tracking.service.d.ts +1 -1
- package/compat/auth/auth.d.ts +4 -4
- package/compat/auth-guard/auth-guard.d.ts +8 -6
- package/compat/database/database.d.ts +4 -4
- package/compat/database/interfaces.d.ts +14 -14
- package/compat/database/list/audit-trail.d.ts +1 -1
- package/compat/database/list/create-reference.d.ts +1 -1
- package/compat/database/list/data-operation.d.ts +1 -1
- package/compat/database/list/state-changes.d.ts +1 -1
- package/compat/database/object/create-reference.d.ts +1 -1
- package/compat/database/observable/fromRef.d.ts +1 -1
- package/compat/database/utils.d.ts +1 -1
- package/compat/firebase.app.module.d.ts +1 -1
- package/compat/firestore/collection/collection.d.ts +2 -2
- package/compat/firestore/collection-group/collection-group.d.ts +2 -2
- package/compat/firestore/document/document.d.ts +4 -4
- package/compat/firestore/firestore.d.ts +7 -7
- package/compat/firestore/interfaces.d.ts +19 -19
- package/compat/functions/functions.d.ts +3 -3
- package/compat/messaging/messaging.d.ts +2 -2
- package/compat/performance/performance.d.ts +2 -2
- package/compat/proxy.d.ts +8 -8
- package/compat/remote-config/interfaces.d.ts +1 -1
- package/compat/remote-config/remote-config.d.ts +15 -49
- package/compat/storage/interfaces.d.ts +8 -8
- package/compat/storage/observable/fromTask.d.ts +1 -2
- package/compat/storage/pipes/storageUrl.pipe.d.ts +1 -1
- package/compat/storage/ref.d.ts +1 -1
- package/compat/storage/storage.d.ts +3 -3
- package/compat/storage/task.d.ts +1 -1
- package/core.d.ts +8 -12
- package/database/database.module.d.ts +2 -2
- package/{esm2015/analytics/analytics.js → esm2022/analytics/analytics.mjs} +1 -1
- package/esm2022/analytics/analytics.module.mjs +94 -0
- package/esm2022/analytics/is-analytics-supported-factory.mjs +16 -0
- package/esm2022/analytics/overrides.mjs +3 -0
- package/esm2022/analytics/screen-tracking.service.mjs +148 -0
- package/esm2022/analytics/user-tracking.service.mjs +44 -0
- package/{esm2015/app/app.js → esm2022/app/app.mjs} +1 -1
- package/esm2022/app/app.module.mjs +85 -0
- package/esm2022/app-check/app-check.mjs +10 -0
- package/esm2022/app-check/app-check.module.mjs +78 -0
- package/esm2022/app-check/public_api.mjs +5 -0
- package/{esm2015/auth/auth.js → esm2022/auth/auth.mjs} +1 -1
- package/esm2022/auth/auth.module.mjs +71 -0
- package/esm2022/auth-guard/auth-guard.mjs +53 -0
- package/{esm2015/auth-guard/auth-guard.module.js → esm2022/auth-guard/auth-guard.module.mjs} +7 -7
- package/esm2022/compat/analytics/analytics.mjs +160 -0
- package/esm2022/compat/analytics/analytics.module.mjs +35 -0
- package/esm2022/compat/analytics/screen-tracking.service.mjs +49 -0
- package/esm2022/compat/analytics/user-tracking.service.mjs +53 -0
- package/esm2022/compat/auth/auth.mjs +161 -0
- package/{esm2015/compat/auth/auth.module.js → esm2022/compat/auth/auth.module.mjs} +7 -7
- package/{esm2015/compat/auth/public_api.js → esm2022/compat/auth/public_api.mjs} +1 -1
- package/esm2022/compat/auth-guard/auth-guard.mjs +53 -0
- package/{esm2015/compat/auth-guard/auth-guard.module.js → esm2022/compat/auth-guard/auth-guard.module.mjs} +7 -7
- package/{esm2015/compat/cache.js → esm2022/compat/cache.mjs} +4 -3
- package/esm2022/compat/database/database.mjs +119 -0
- package/{esm2015/compat/database/database.module.js → esm2022/compat/database/database.module.mjs} +7 -7
- package/esm2022/compat/database/interfaces.mjs +2 -0
- package/{esm2015/compat/database/list/audit-trail.js → esm2022/compat/database/list/audit-trail.mjs} +3 -3
- package/esm2022/compat/database/list/changes.mjs +85 -0
- package/esm2022/compat/database/list/create-reference.mjs +44 -0
- package/{esm2015/compat/database/list/data-operation.js → esm2022/compat/database/list/data-operation.mjs} +1 -1
- package/{esm2015/compat/database/list/snapshot-changes.js → esm2022/compat/database/list/snapshot-changes.mjs} +1 -1
- package/{esm2015/compat/database/list/state-changes.js → esm2022/compat/database/list/state-changes.mjs} +2 -2
- package/{esm2015/compat/database/object/create-reference.js → esm2022/compat/database/object/create-reference.mjs} +2 -2
- package/{esm2015/compat/database/object/snapshot-changes.js → esm2022/compat/database/object/snapshot-changes.mjs} +1 -1
- package/esm2022/compat/database/observable/fromRef.mjs +48 -0
- package/{esm2015/compat/database/utils.js → esm2022/compat/database/utils.mjs} +1 -1
- package/{esm2015/compat/firebase.app.js → esm2022/compat/firebase.app.mjs} +1 -1
- package/esm2022/compat/firebase.app.module.mjs +71 -0
- package/esm2022/compat/firestore/collection/changes.mjs +108 -0
- package/esm2022/compat/firestore/collection/collection.mjs +123 -0
- package/esm2022/compat/firestore/collection-group/collection-group.mjs +86 -0
- package/esm2022/compat/firestore/document/document.mjs +87 -0
- package/esm2022/compat/firestore/firestore.mjs +257 -0
- package/{esm2015/compat/firestore/firestore.module.js → esm2022/compat/firestore/firestore.module.mjs} +7 -7
- package/esm2022/compat/firestore/interfaces.mjs +2 -0
- package/esm2022/compat/firestore/observable/fromRef.mjs +40 -0
- package/esm2022/compat/functions/functions.mjs +69 -0
- package/{esm2015/compat/functions/functions.module.js → esm2022/compat/functions/functions.module.mjs} +7 -7
- package/{esm2015/compat/functions/public_api.js → esm2022/compat/functions/public_api.mjs} +1 -1
- package/esm2022/compat/messaging/messaging.mjs +81 -0
- package/{esm2015/compat/messaging/messaging.module.js → esm2022/compat/messaging/messaging.module.mjs} +7 -7
- package/esm2022/compat/performance/performance.mjs +105 -0
- package/esm2022/compat/performance/performance.module.mjs +27 -0
- package/esm2022/compat/performance/performance.service.mjs +28 -0
- package/esm2022/compat/proxy.mjs +58 -0
- package/esm2022/compat/remote-config/remote-config.mjs +206 -0
- package/{esm2015/compat/remote-config/remote-config.module.js → esm2022/compat/remote-config/remote-config.module.mjs} +7 -7
- package/esm2022/compat/storage/observable/fromTask.mjs +36 -0
- package/esm2022/compat/storage/pipes/storageUrl.pipe.mjs +58 -0
- package/{esm2015/compat/storage/ref.js → esm2022/compat/storage/ref.mjs} +3 -3
- package/esm2022/compat/storage/storage.mjs +95 -0
- package/esm2022/compat/storage/storage.module.mjs +22 -0
- package/{esm2015/compat/storage/task.js → esm2022/compat/storage/task.mjs} +2 -2
- package/esm2022/core.mjs +43 -0
- package/{esm2015/database/database.js → esm2022/database/database.mjs} +1 -1
- package/esm2022/database/database.module.mjs +74 -0
- package/{esm2015/firestore/firestore.js → esm2022/firestore/firestore.mjs} +1 -1
- package/esm2022/firestore/firestore.module.mjs +74 -0
- package/{esm2015/firestore/lite/lite.js → esm2022/firestore/lite/lite.mjs} +1 -1
- package/esm2022/firestore/lite/lite.module.mjs +73 -0
- package/esm2022/firestore/rxfire.mjs +15 -0
- package/{esm2015/functions/functions.js → esm2022/functions/functions.mjs} +1 -1
- package/esm2022/functions/functions.module.mjs +74 -0
- package/esm2022/messaging/is-messaging-supported-factory.mjs +16 -0
- package/{esm2015/messaging/messaging.js → esm2022/messaging/messaging.mjs} +1 -1
- package/esm2022/messaging/messaging.module.mjs +86 -0
- package/esm2022/messaging/overrides.mjs +3 -0
- package/{esm2015/performance/performance.js → esm2022/performance/performance.mjs} +1 -1
- package/esm2022/performance/performance.module.mjs +81 -0
- package/esm2022/remote-config/is-remote-config-supported-factory.mjs +16 -0
- package/esm2022/remote-config/overrides.mjs +3 -0
- package/{esm2015/remote-config/remote-config.js → esm2022/remote-config/remote-config.mjs} +1 -1
- package/esm2022/remote-config/remote-config.module.mjs +86 -0
- package/{esm2015/storage/storage.js → esm2022/storage/storage.mjs} +1 -1
- package/esm2022/storage/storage.module.mjs +74 -0
- package/esm2022/zones.mjs +194 -0
- package/{fesm2015/angular-fire-analytics.js → fesm2022/angular-fire-analytics.mjs} +64 -40
- package/fesm2022/angular-fire-analytics.mjs.map +1 -0
- package/{fesm2015/angular-fire-app-check.js → fesm2022/angular-fire-app-check.mjs} +16 -24
- package/fesm2022/angular-fire-app-check.mjs.map +1 -0
- package/{fesm2015/angular-fire-app.js → fesm2022/angular-fire-app.mjs} +10 -9
- package/fesm2022/angular-fire-app.mjs.map +1 -0
- package/{fesm2015/angular-fire-auth-guard.js → fesm2022/angular-fire-auth-guard.mjs} +31 -27
- package/fesm2022/angular-fire-auth-guard.mjs.map +1 -0
- package/{fesm2015/angular-fire-auth.js → fesm2022/angular-fire-auth.mjs} +10 -11
- package/fesm2022/angular-fire-auth.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-analytics.js → fesm2022/angular-fire-compat-analytics.mjs} +43 -41
- package/fesm2022/angular-fire-compat-analytics.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-auth-guard.js → fesm2022/angular-fire-compat-auth-guard.mjs} +30 -26
- package/fesm2022/angular-fire-compat-auth-guard.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-auth.js → fesm2022/angular-fire-compat-auth.mjs} +38 -16
- package/fesm2022/angular-fire-compat-auth.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-database.js → fesm2022/angular-fire-compat-database.mjs} +138 -132
- package/fesm2022/angular-fire-compat-database.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-firestore.js → fesm2022/angular-fire-compat-firestore.mjs} +119 -98
- package/fesm2022/angular-fire-compat-firestore.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-functions.js → fesm2022/angular-fire-compat-functions.mjs} +13 -12
- package/fesm2022/angular-fire-compat-functions.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-messaging.js → fesm2022/angular-fire-compat-messaging.mjs} +25 -19
- package/fesm2022/angular-fire-compat-messaging.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-performance.js → fesm2022/angular-fire-compat-performance.mjs} +29 -34
- package/fesm2022/angular-fire-compat-performance.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-remote-config.js → fesm2022/angular-fire-compat-remote-config.mjs} +35 -22
- package/fesm2022/angular-fire-compat-remote-config.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-storage.js → fesm2022/angular-fire-compat-storage.mjs} +30 -23
- package/fesm2022/angular-fire-compat-storage.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat.js → fesm2022/angular-fire-compat.mjs} +25 -25
- package/fesm2022/angular-fire-compat.mjs.map +1 -0
- package/{fesm2015/angular-fire-database.js → fesm2022/angular-fire-database.mjs} +11 -12
- package/fesm2022/angular-fire-database.mjs.map +1 -0
- package/{fesm2015/angular-fire-firestore-lite.js → fesm2022/angular-fire-firestore-lite.mjs} +11 -12
- package/fesm2022/angular-fire-firestore-lite.mjs.map +1 -0
- package/{fesm2015/angular-fire-firestore.js → fesm2022/angular-fire-firestore.mjs} +15 -14
- package/fesm2022/angular-fire-firestore.mjs.map +1 -0
- package/{fesm2015/angular-fire-functions.js → fesm2022/angular-fire-functions.mjs} +12 -13
- package/fesm2022/angular-fire-functions.mjs.map +1 -0
- package/{fesm2015/angular-fire-messaging.js → fesm2022/angular-fire-messaging.mjs} +33 -19
- package/fesm2022/angular-fire-messaging.mjs.map +1 -0
- package/{fesm2015/angular-fire-performance.js → fesm2022/angular-fire-performance.mjs} +11 -11
- package/fesm2022/angular-fire-performance.mjs.map +1 -0
- package/{fesm2015/angular-fire-remote-config.js → fesm2022/angular-fire-remote-config.mjs} +34 -20
- package/fesm2022/angular-fire-remote-config.mjs.map +1 -0
- package/{fesm2015/angular-fire-storage.js → fesm2022/angular-fire-storage.mjs} +10 -11
- package/fesm2022/angular-fire-storage.mjs.map +1 -0
- package/{fesm2015/angular-fire.js → fesm2022/angular-fire.mjs} +33 -58
- package/fesm2022/angular-fire.mjs.map +1 -0
- package/firestore/firestore.module.d.ts +2 -2
- package/firestore/lite/lite.module.d.ts +2 -2
- package/firestore/rxfire.d.ts +3 -1
- package/functions/functions.module.d.ts +2 -2
- package/messaging/is-messaging-supported-factory.d.ts +4 -0
- package/messaging/messaging.module.d.ts +2 -2
- package/package.json +158 -7
- package/performance/performance.module.d.ts +2 -2
- package/publish.sh +1 -0
- package/remote-config/is-remote-config-supported-factory.d.ts +4 -0
- package/remote-config/remote-config.module.d.ts +2 -2
- package/schematics/add/index.js +2 -2
- package/schematics/common.js +9 -5
- package/schematics/deploy/actions.js +69 -69
- package/schematics/deploy/builder.js +7 -7
- package/schematics/firebaseTools.js +9 -5
- package/schematics/setup/index.js +27 -27
- package/schematics/setup/prompts.js +22 -18
- package/schematics/update/index.js +1 -1
- package/schematics/update/v7/index.js +7 -7
- package/schematics/utils.js +34 -34
- package/storage/storage.module.d.ts +2 -2
- package/README.md +0 -216
- package/analytics/package.json +0 -11
- package/app/package.json +0 -11
- package/app-check/package.json +0 -11
- package/auth/package.json +0 -11
- package/auth-guard/package.json +0 -11
- package/bundles/angular-fire-analytics.umd.js +0 -673
- package/bundles/angular-fire-analytics.umd.js.map +0 -1
- package/bundles/angular-fire-app-check.umd.js +0 -465
- package/bundles/angular-fire-app-check.umd.js.map +0 -1
- package/bundles/angular-fire-app.umd.js +0 -477
- package/bundles/angular-fire-app.umd.js.map +0 -1
- package/bundles/angular-fire-auth-guard.umd.js +0 -109
- package/bundles/angular-fire-auth-guard.umd.js.map +0 -1
- package/bundles/angular-fire-auth.umd.js +0 -557
- package/bundles/angular-fire-auth.umd.js.map +0 -1
- package/bundles/angular-fire-compat-analytics.umd.js +0 -672
- package/bundles/angular-fire-compat-analytics.umd.js.map +0 -1
- package/bundles/angular-fire-compat-auth-guard.umd.js +0 -112
- package/bundles/angular-fire-compat-auth-guard.umd.js.map +0 -1
- package/bundles/angular-fire-compat-auth.umd.js +0 -559
- package/bundles/angular-fire-compat-auth.umd.js.map +0 -1
- package/bundles/angular-fire-compat-database.umd.js +0 -799
- package/bundles/angular-fire-compat-database.umd.js.map +0 -1
- package/bundles/angular-fire-compat-firestore.umd.js +0 -1073
- package/bundles/angular-fire-compat-firestore.umd.js.map +0 -1
- package/bundles/angular-fire-compat-functions.umd.js +0 -443
- package/bundles/angular-fire-compat-functions.umd.js.map +0 -1
- package/bundles/angular-fire-compat-messaging.umd.js +0 -465
- package/bundles/angular-fire-compat-messaging.umd.js.map +0 -1
- package/bundles/angular-fire-compat-performance.umd.js +0 -212
- package/bundles/angular-fire-compat-performance.umd.js.map +0 -1
- package/bundles/angular-fire-compat-remote-config.umd.js +0 -605
- package/bundles/angular-fire-compat-remote-config.umd.js.map +0 -1
- package/bundles/angular-fire-compat-storage.umd.js +0 -598
- package/bundles/angular-fire-compat-storage.umd.js.map +0 -1
- package/bundles/angular-fire-compat.umd.js +0 -535
- package/bundles/angular-fire-compat.umd.js.map +0 -1
- package/bundles/angular-fire-database.umd.js +0 -557
- package/bundles/angular-fire-database.umd.js.map +0 -1
- package/bundles/angular-fire-firestore-lite.umd.js +0 -531
- package/bundles/angular-fire-firestore-lite.umd.js.map +0 -1
- package/bundles/angular-fire-firestore.umd.js +0 -565
- package/bundles/angular-fire-firestore.umd.js.map +0 -1
- package/bundles/angular-fire-functions.umd.js +0 -461
- package/bundles/angular-fire-functions.umd.js.map +0 -1
- package/bundles/angular-fire-messaging.umd.js +0 -473
- package/bundles/angular-fire-messaging.umd.js.map +0 -1
- package/bundles/angular-fire-performance.umd.js +0 -473
- package/bundles/angular-fire-performance.umd.js.map +0 -1
- package/bundles/angular-fire-remote-config.umd.js +0 -499
- package/bundles/angular-fire-remote-config.umd.js.map +0 -1
- package/bundles/angular-fire-storage.umd.js +0 -485
- package/bundles/angular-fire-storage.umd.js.map +0 -1
- package/bundles/angular-fire.umd.js +0 -308
- package/bundles/angular-fire.umd.js.map +0 -1
- package/compat/analytics/package.json +0 -11
- package/compat/auth/package.json +0 -11
- package/compat/auth-guard/package.json +0 -11
- package/compat/database/package.json +0 -11
- package/compat/firestore/package.json +0 -11
- package/compat/functions/package.json +0 -11
- package/compat/messaging/package.json +0 -11
- package/compat/package.json +0 -11
- package/compat/performance/package.json +0 -11
- package/compat/remote-config/package.json +0 -11
- package/compat/storage/package.json +0 -11
- package/database/package.json +0 -11
- package/docs/analytics.md +0 -67
- package/docs/app-check.md +0 -53
- package/docs/auth.md +0 -165
- package/docs/compat/analytics/getting-started.md +0 -137
- package/docs/compat/auth/getting-started.md +0 -162
- package/docs/compat/auth/router-guards.md +0 -104
- package/docs/compat/emulators/emulators.md +0 -134
- package/docs/compat/firestore/collections.md +0 -326
- package/docs/compat/firestore/documents.md +0 -115
- package/docs/compat/firestore/offline-data.md +0 -39
- package/docs/compat/firestore/querying-collections.md +0 -204
- package/docs/compat/functions/functions.md +0 -166
- package/docs/compat/messaging/messaging.md +0 -232
- package/docs/compat/performance/getting-started.md +0 -132
- package/docs/compat/remote-config/getting-started.md +0 -134
- package/docs/compat/rtdb/lists.md +0 -257
- package/docs/compat/rtdb/objects.md +0 -182
- package/docs/compat/rtdb/querying-lists.md +0 -155
- package/docs/compat/storage/storage.md +0 -257
- package/docs/compat.md +0 -70
- package/docs/database.md +0 -175
- package/docs/deploy/getting-started.md +0 -204
- package/docs/firebase.json +0 -16
- package/docs/firestore.md +0 -148
- package/docs/functions.md +0 -52
- package/docs/images/analytics-illo_1x.png +0 -0
- package/docs/images/auth-illo_1x.png +0 -0
- package/docs/images/cloud-messaging-illo_1x.png +0 -0
- package/docs/images/database-illo_1x.png +0 -0
- package/docs/images/firestore-illo_1x.png +0 -0
- package/docs/images/functions-illo_1x.png +0 -0
- package/docs/images/hosting-illo_1x.png +0 -0
- package/docs/images/performance-illo_1x.png +0 -0
- package/docs/images/reCAPTCHA-logo@1x.png +0 -0
- package/docs/images/remote-config-illo_1x.png +0 -0
- package/docs/images/storage-illo_1x.png +0 -0
- package/docs/install-and-setup.md +0 -114
- package/docs/install-angular-cli-windows10.md +0 -82
- package/docs/messaging.md +0 -25
- package/docs/performance.md +0 -57
- package/docs/remote-config.md +0 -53
- package/docs/storage.md +0 -90
- package/docs/universal/cloud-functions.md +0 -75
- package/docs/universal/getting-started.md +0 -153
- package/docs/universal/prerendering.md +0 -72
- package/docs/version-4-upgrade.md +0 -119
- package/docs/version-5-upgrade.md +0 -82
- package/docs/version-6-upgrade.md +0 -16
- package/docs/version-7-upgrade.md +0 -298
- package/esm2015/analytics/analytics.module.js +0 -93
- package/esm2015/analytics/overrides.js +0 -3
- package/esm2015/analytics/screen-tracking.service.js +0 -139
- package/esm2015/analytics/user-tracking.service.js +0 -43
- package/esm2015/app/app.module.js +0 -84
- package/esm2015/app-check/app-check.js +0 -16
- package/esm2015/app-check/app-check.module.js +0 -81
- package/esm2015/app-check/public_api.js +0 -4
- package/esm2015/auth/auth.module.js +0 -71
- package/esm2015/auth-guard/auth-guard.js +0 -49
- package/esm2015/compat/analytics/analytics.js +0 -163
- package/esm2015/compat/analytics/analytics.module.js +0 -32
- package/esm2015/compat/analytics/screen-tracking.service.js +0 -49
- package/esm2015/compat/analytics/user-tracking.service.js +0 -52
- package/esm2015/compat/auth/auth.js +0 -139
- package/esm2015/compat/auth-guard/auth-guard.js +0 -49
- package/esm2015/compat/database/database.js +0 -117
- package/esm2015/compat/database/interfaces.js +0 -2
- package/esm2015/compat/database/list/changes.js +0 -85
- package/esm2015/compat/database/list/create-reference.js +0 -41
- package/esm2015/compat/database/observable/fromRef.js +0 -47
- package/esm2015/compat/firebase.app.module.js +0 -69
- package/esm2015/compat/firestore/collection/changes.js +0 -107
- package/esm2015/compat/firestore/collection/collection.js +0 -117
- package/esm2015/compat/firestore/collection-group/collection-group.js +0 -81
- package/esm2015/compat/firestore/document/document.js +0 -82
- package/esm2015/compat/firestore/firestore.js +0 -254
- package/esm2015/compat/firestore/interfaces.js +0 -2
- package/esm2015/compat/firestore/observable/fromRef.js +0 -39
- package/esm2015/compat/functions/functions.js +0 -68
- package/esm2015/compat/messaging/messaging.js +0 -75
- package/esm2015/compat/performance/performance.js +0 -110
- package/esm2015/compat/performance/performance.module.js +0 -28
- package/esm2015/compat/performance/performance.service.js +0 -27
- package/esm2015/compat/proxy.js +0 -61
- package/esm2015/compat/remote-config/remote-config.js +0 -193
- package/esm2015/compat/storage/observable/fromTask.js +0 -34
- package/esm2015/compat/storage/pipes/storageUrl.pipe.js +0 -54
- package/esm2015/compat/storage/storage.js +0 -94
- package/esm2015/compat/storage/storage.module.js +0 -22
- package/esm2015/core.js +0 -79
- package/esm2015/database/database.module.js +0 -74
- package/esm2015/firestore/firestore.module.js +0 -74
- package/esm2015/firestore/lite/lite.module.js +0 -74
- package/esm2015/firestore/rxfire.js +0 -13
- package/esm2015/functions/functions.module.js +0 -74
- package/esm2015/messaging/messaging.module.js +0 -85
- package/esm2015/messaging/overrides.js +0 -3
- package/esm2015/performance/performance.module.js +0 -81
- package/esm2015/remote-config/overrides.js +0 -3
- package/esm2015/remote-config/remote-config.module.js +0 -85
- package/esm2015/storage/storage.module.js +0 -74
- package/esm2015/zones.js +0 -183
- package/fesm2015/angular-fire-analytics.js.map +0 -1
- package/fesm2015/angular-fire-app-check.js.map +0 -1
- package/fesm2015/angular-fire-app.js.map +0 -1
- package/fesm2015/angular-fire-auth-guard.js.map +0 -1
- package/fesm2015/angular-fire-auth.js.map +0 -1
- package/fesm2015/angular-fire-compat-analytics.js.map +0 -1
- package/fesm2015/angular-fire-compat-auth-guard.js.map +0 -1
- package/fesm2015/angular-fire-compat-auth.js.map +0 -1
- package/fesm2015/angular-fire-compat-database.js.map +0 -1
- package/fesm2015/angular-fire-compat-firestore.js.map +0 -1
- package/fesm2015/angular-fire-compat-functions.js.map +0 -1
- package/fesm2015/angular-fire-compat-messaging.js.map +0 -1
- package/fesm2015/angular-fire-compat-performance.js.map +0 -1
- package/fesm2015/angular-fire-compat-remote-config.js.map +0 -1
- package/fesm2015/angular-fire-compat-storage.js.map +0 -1
- package/fesm2015/angular-fire-compat.js.map +0 -1
- package/fesm2015/angular-fire-database.js.map +0 -1
- package/fesm2015/angular-fire-firestore-lite.js.map +0 -1
- package/fesm2015/angular-fire-firestore.js.map +0 -1
- package/fesm2015/angular-fire-functions.js.map +0 -1
- package/fesm2015/angular-fire-messaging.js.map +0 -1
- package/fesm2015/angular-fire-performance.js.map +0 -1
- package/fesm2015/angular-fire-remote-config.js.map +0 -1
- package/fesm2015/angular-fire-storage.js.map +0 -1
- package/fesm2015/angular-fire.js.map +0 -1
- package/firestore/lite/package.json +0 -11
- package/firestore/package.json +0 -11
- package/firestore-protos.js +0 -4
- package/functions/package.json +0 -11
- package/messaging/package.json +0 -11
- package/performance/package.json +0 -11
- package/remote-config/package.json +0 -11
- package/schematics/add/schema.json +0 -16
- package/schematics/builders.json +0 -10
- package/schematics/collection.json +0 -15
- package/schematics/deploy/schema.json +0 -119
- package/schematics/migration.json +0 -15
- package/schematics/setup/schema.json +0 -16
- package/storage/package.json +0 -11
- /package/analytics/{angular-fire-analytics.d.ts → index.d.ts} +0 -0
- /package/app/{angular-fire-app.d.ts → index.d.ts} +0 -0
- /package/app-check/{angular-fire-app-check.d.ts → index.d.ts} +0 -0
- /package/auth/{angular-fire-auth.d.ts → index.d.ts} +0 -0
- /package/auth-guard/{angular-fire-auth-guard.d.ts → index.d.ts} +0 -0
- /package/compat/analytics/{angular-fire-compat-analytics.d.ts → index.d.ts} +0 -0
- /package/compat/auth/{angular-fire-compat-auth.d.ts → index.d.ts} +0 -0
- /package/compat/auth-guard/{angular-fire-compat-auth-guard.d.ts → index.d.ts} +0 -0
- /package/compat/database/{angular-fire-compat-database.d.ts → index.d.ts} +0 -0
- /package/compat/firestore/{angular-fire-compat-firestore.d.ts → index.d.ts} +0 -0
- /package/compat/functions/{angular-fire-compat-functions.d.ts → index.d.ts} +0 -0
- /package/compat/{angular-fire-compat.d.ts → index.d.ts} +0 -0
- /package/compat/messaging/{angular-fire-compat-messaging.d.ts → index.d.ts} +0 -0
- /package/compat/performance/{angular-fire-compat-performance.d.ts → index.d.ts} +0 -0
- /package/compat/remote-config/{angular-fire-compat-remote-config.d.ts → index.d.ts} +0 -0
- /package/compat/storage/{angular-fire-compat-storage.d.ts → index.d.ts} +0 -0
- /package/database/{angular-fire-database.d.ts → index.d.ts} +0 -0
- /package/{esm2015/analytics/angular-fire-analytics.js → esm2022/analytics/angular-fire-analytics.mjs} +0 -0
- /package/{esm2015/analytics/firebase.js → esm2022/analytics/firebase.mjs} +0 -0
- /package/{esm2015/analytics/public_api.js → esm2022/analytics/public_api.mjs} +0 -0
- /package/{esm2015/angular-fire.js → esm2022/angular-fire.mjs} +0 -0
- /package/{esm2015/app/angular-fire-app.js → esm2022/app/angular-fire-app.mjs} +0 -0
- /package/{esm2015/app/firebase.js → esm2022/app/firebase.mjs} +0 -0
- /package/{esm2015/app/public_api.js → esm2022/app/public_api.mjs} +0 -0
- /package/{esm2015/app-check/angular-fire-app-check.js → esm2022/app-check/angular-fire-app-check.mjs} +0 -0
- /package/{esm2015/app-check/firebase.js → esm2022/app-check/firebase.mjs} +0 -0
- /package/{esm2015/auth/angular-fire-auth.js → esm2022/auth/angular-fire-auth.mjs} +0 -0
- /package/{esm2015/auth/firebase.js → esm2022/auth/firebase.mjs} +0 -0
- /package/{esm2015/auth/public_api.js → esm2022/auth/public_api.mjs} +0 -0
- /package/{esm2015/auth/rxfire.js → esm2022/auth/rxfire.mjs} +0 -0
- /package/{esm2015/auth-guard/angular-fire-auth-guard.js → esm2022/auth-guard/angular-fire-auth-guard.mjs} +0 -0
- /package/{esm2015/auth-guard/public_api.js → esm2022/auth-guard/public_api.mjs} +0 -0
- /package/{esm2015/compat/analytics/angular-fire-compat-analytics.js → esm2022/compat/analytics/angular-fire-compat-analytics.mjs} +0 -0
- /package/{esm2015/compat/analytics/base.js → esm2022/compat/analytics/base.mjs} +0 -0
- /package/{esm2015/compat/analytics/public_api.js → esm2022/compat/analytics/public_api.mjs} +0 -0
- /package/{esm2015/compat/angular-fire-compat.js → esm2022/compat/angular-fire-compat.mjs} +0 -0
- /package/{esm2015/compat/auth/angular-fire-compat-auth.js → esm2022/compat/auth/angular-fire-compat-auth.mjs} +0 -0
- /package/{esm2015/compat/auth/base.js → esm2022/compat/auth/base.mjs} +0 -0
- /package/{esm2015/compat/auth-guard/angular-fire-compat-auth-guard.js → esm2022/compat/auth-guard/angular-fire-compat-auth-guard.mjs} +0 -0
- /package/{esm2015/compat/auth-guard/public_api.js → esm2022/compat/auth-guard/public_api.mjs} +0 -0
- /package/{esm2015/compat/database/angular-fire-compat-database.js → esm2022/compat/database/angular-fire-compat-database.mjs} +0 -0
- /package/{esm2015/compat/database/list/remove.js → esm2022/compat/database/list/remove.mjs} +0 -0
- /package/{esm2015/compat/database/list/utils.js → esm2022/compat/database/list/utils.mjs} +0 -0
- /package/{esm2015/compat/database/public_api.js → esm2022/compat/database/public_api.mjs} +0 -0
- /package/{esm2015/compat/firestore/angular-fire-compat-firestore.js → esm2022/compat/firestore/angular-fire-compat-firestore.mjs} +0 -0
- /package/{esm2015/compat/firestore/public_api.js → esm2022/compat/firestore/public_api.mjs} +0 -0
- /package/{esm2015/compat/functions/angular-fire-compat-functions.js → esm2022/compat/functions/angular-fire-compat-functions.mjs} +0 -0
- /package/{esm2015/compat/functions/base.js → esm2022/compat/functions/base.mjs} +0 -0
- /package/{esm2015/compat/messaging/angular-fire-compat-messaging.js → esm2022/compat/messaging/angular-fire-compat-messaging.mjs} +0 -0
- /package/{esm2015/compat/messaging/base.js → esm2022/compat/messaging/base.mjs} +0 -0
- /package/{esm2015/compat/messaging/public_api.js → esm2022/compat/messaging/public_api.mjs} +0 -0
- /package/{esm2015/compat/performance/angular-fire-compat-performance.js → esm2022/compat/performance/angular-fire-compat-performance.mjs} +0 -0
- /package/{esm2015/compat/performance/base.js → esm2022/compat/performance/base.mjs} +0 -0
- /package/{esm2015/compat/performance/public_api.js → esm2022/compat/performance/public_api.mjs} +0 -0
- /package/{esm2015/compat/public_api.js → esm2022/compat/public_api.mjs} +0 -0
- /package/{esm2015/compat/remote-config/angular-fire-compat-remote-config.js → esm2022/compat/remote-config/angular-fire-compat-remote-config.mjs} +0 -0
- /package/{esm2015/compat/remote-config/base.js → esm2022/compat/remote-config/base.mjs} +0 -0
- /package/{esm2015/compat/remote-config/interfaces.js → esm2022/compat/remote-config/interfaces.mjs} +0 -0
- /package/{esm2015/compat/remote-config/public_api.js → esm2022/compat/remote-config/public_api.mjs} +0 -0
- /package/{esm2015/compat/storage/angular-fire-compat-storage.js → esm2022/compat/storage/angular-fire-compat-storage.mjs} +0 -0
- /package/{esm2015/compat/storage/interfaces.js → esm2022/compat/storage/interfaces.mjs} +0 -0
- /package/{esm2015/compat/storage/public_api.js → esm2022/compat/storage/public_api.mjs} +0 -0
- /package/{esm2015/database/angular-fire-database.js → esm2022/database/angular-fire-database.mjs} +0 -0
- /package/{esm2015/database/firebase.js → esm2022/database/firebase.mjs} +0 -0
- /package/{esm2015/database/public_api.js → esm2022/database/public_api.mjs} +0 -0
- /package/{esm2015/database/rxfire.js → esm2022/database/rxfire.mjs} +0 -0
- /package/{esm2015/firestore/angular-fire-firestore.js → esm2022/firestore/angular-fire-firestore.mjs} +0 -0
- /package/{esm2015/firestore/firebase.js → esm2022/firestore/firebase.mjs} +0 -0
- /package/{esm2015/firestore/lite/angular-fire-firestore-lite.js → esm2022/firestore/lite/angular-fire-firestore-lite.mjs} +0 -0
- /package/{esm2015/firestore/lite/firebase.js → esm2022/firestore/lite/firebase.mjs} +0 -0
- /package/{esm2015/firestore/lite/public_api.js → esm2022/firestore/lite/public_api.mjs} +0 -0
- /package/{esm2015/firestore/lite/rxfire.js → esm2022/firestore/lite/rxfire.mjs} +0 -0
- /package/{esm2015/firestore/public_api.js → esm2022/firestore/public_api.mjs} +0 -0
- /package/{esm2015/functions/angular-fire-functions.js → esm2022/functions/angular-fire-functions.mjs} +0 -0
- /package/{esm2015/functions/firebase.js → esm2022/functions/firebase.mjs} +0 -0
- /package/{esm2015/functions/public_api.js → esm2022/functions/public_api.mjs} +0 -0
- /package/{esm2015/functions/rxfire.js → esm2022/functions/rxfire.mjs} +0 -0
- /package/{esm2015/messaging/angular-fire-messaging.js → esm2022/messaging/angular-fire-messaging.mjs} +0 -0
- /package/{esm2015/messaging/firebase.js → esm2022/messaging/firebase.mjs} +0 -0
- /package/{esm2015/messaging/public_api.js → esm2022/messaging/public_api.mjs} +0 -0
- /package/{esm2015/performance/angular-fire-performance.js → esm2022/performance/angular-fire-performance.mjs} +0 -0
- /package/{esm2015/performance/firebase.js → esm2022/performance/firebase.mjs} +0 -0
- /package/{esm2015/performance/public_api.js → esm2022/performance/public_api.mjs} +0 -0
- /package/{esm2015/performance/rxfire.js → esm2022/performance/rxfire.mjs} +0 -0
- /package/{esm2015/public_api.js → esm2022/public_api.mjs} +0 -0
- /package/{esm2015/remote-config/angular-fire-remote-config.js → esm2022/remote-config/angular-fire-remote-config.mjs} +0 -0
- /package/{esm2015/remote-config/firebase.js → esm2022/remote-config/firebase.mjs} +0 -0
- /package/{esm2015/remote-config/public_api.js → esm2022/remote-config/public_api.mjs} +0 -0
- /package/{esm2015/remote-config/rxfire.js → esm2022/remote-config/rxfire.mjs} +0 -0
- /package/{esm2015/storage/angular-fire-storage.js → esm2022/storage/angular-fire-storage.mjs} +0 -0
- /package/{esm2015/storage/firebase.js → esm2022/storage/firebase.mjs} +0 -0
- /package/{esm2015/storage/public_api.js → esm2022/storage/public_api.mjs} +0 -0
- /package/{esm2015/storage/rxfire.js → esm2022/storage/rxfire.mjs} +0 -0
- /package/firestore/{angular-fire-firestore.d.ts → index.d.ts} +0 -0
- /package/firestore/lite/{angular-fire-firestore-lite.d.ts → index.d.ts} +0 -0
- /package/functions/{angular-fire-functions.d.ts → index.d.ts} +0 -0
- /package/{angular-fire.d.ts → index.d.ts} +0 -0
- /package/messaging/{angular-fire-messaging.d.ts → index.d.ts} +0 -0
- /package/performance/{angular-fire-performance.d.ts → index.d.ts} +0 -0
- /package/remote-config/{angular-fire-remote-config.d.ts → index.d.ts} +0 -0
- /package/storage/{angular-fire-storage.d.ts → index.d.ts} +0 -0
|
@@ -1,673 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/fire'), require('rxjs'), require('rxjs/operators'), require('@angular/core'), require('@angular/fire/app'), require('firebase/app'), require('@angular/router'), require('firebase/analytics'), require('@angular/platform-browser'), require('@angular/fire/auth')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@angular/fire/analytics', ['exports', '@angular/fire', 'rxjs', 'rxjs/operators', '@angular/core', '@angular/fire/app', 'firebase/app', '@angular/router', 'firebase/analytics', '@angular/platform-browser', '@angular/fire/auth'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.angular = global.angular || {}, global.angular.fire = global.angular.fire || {}, global.angular.fire.analytics = {}), global.angular.fire, global.rxjs, global.rxjs.operators, global.ng.core, global.angular.fire.app, global.app, global.ng.router, global['firebase-analytics'], global.ng.platformBrowser, global.angular.fire.auth));
|
|
5
|
-
}(this, (function (exports, fire, rxjs, operators, i0, app$1, app, i1$1, analytics, i2, i1) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n['default'] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
29
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
30
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
31
|
-
|
|
32
|
-
var Analytics = /** @class */ (function () {
|
|
33
|
-
function Analytics(analytics) {
|
|
34
|
-
return analytics;
|
|
35
|
-
}
|
|
36
|
-
return Analytics;
|
|
37
|
-
}());
|
|
38
|
-
var ANALYTICS_PROVIDER_NAME = 'analytics';
|
|
39
|
-
var AnalyticsInstances = /** @class */ (function () {
|
|
40
|
-
function AnalyticsInstances() {
|
|
41
|
-
return fire.ɵgetAllInstancesOf(ANALYTICS_PROVIDER_NAME);
|
|
42
|
-
}
|
|
43
|
-
return AnalyticsInstances;
|
|
44
|
-
}());
|
|
45
|
-
var analyticInstance$ = rxjs.timer(0, 300).pipe(operators.concatMap(function () { return rxjs.from(fire.ɵgetAllInstancesOf(ANALYTICS_PROVIDER_NAME)); }), operators.distinct());
|
|
46
|
-
|
|
47
|
-
/*! *****************************************************************************
|
|
48
|
-
Copyright (c) Microsoft Corporation.
|
|
49
|
-
|
|
50
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
51
|
-
purpose with or without fee is hereby granted.
|
|
52
|
-
|
|
53
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
54
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
55
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
56
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
57
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
58
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
59
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
60
|
-
***************************************************************************** */
|
|
61
|
-
/* global Reflect, Promise */
|
|
62
|
-
var extendStatics = function (d, b) {
|
|
63
|
-
extendStatics = Object.setPrototypeOf ||
|
|
64
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
65
|
-
function (d, b) { for (var p in b)
|
|
66
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
67
|
-
d[p] = b[p]; };
|
|
68
|
-
return extendStatics(d, b);
|
|
69
|
-
};
|
|
70
|
-
function __extends(d, b) {
|
|
71
|
-
if (typeof b !== "function" && b !== null)
|
|
72
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
73
|
-
extendStatics(d, b);
|
|
74
|
-
function __() { this.constructor = d; }
|
|
75
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
76
|
-
}
|
|
77
|
-
var __assign = function () {
|
|
78
|
-
__assign = Object.assign || function __assign(t) {
|
|
79
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
80
|
-
s = arguments[i];
|
|
81
|
-
for (var p in s)
|
|
82
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
83
|
-
t[p] = s[p];
|
|
84
|
-
}
|
|
85
|
-
return t;
|
|
86
|
-
};
|
|
87
|
-
return __assign.apply(this, arguments);
|
|
88
|
-
};
|
|
89
|
-
function __rest(s, e) {
|
|
90
|
-
var t = {};
|
|
91
|
-
for (var p in s)
|
|
92
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
93
|
-
t[p] = s[p];
|
|
94
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
95
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
96
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
97
|
-
t[p[i]] = s[p[i]];
|
|
98
|
-
}
|
|
99
|
-
return t;
|
|
100
|
-
}
|
|
101
|
-
function __decorate(decorators, target, key, desc) {
|
|
102
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
103
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
104
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
105
|
-
else
|
|
106
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
107
|
-
if (d = decorators[i])
|
|
108
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
109
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
110
|
-
}
|
|
111
|
-
function __param(paramIndex, decorator) {
|
|
112
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
113
|
-
}
|
|
114
|
-
function __metadata(metadataKey, metadataValue) {
|
|
115
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
116
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
117
|
-
}
|
|
118
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
119
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
120
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
121
|
-
function fulfilled(value) { try {
|
|
122
|
-
step(generator.next(value));
|
|
123
|
-
}
|
|
124
|
-
catch (e) {
|
|
125
|
-
reject(e);
|
|
126
|
-
} }
|
|
127
|
-
function rejected(value) { try {
|
|
128
|
-
step(generator["throw"](value));
|
|
129
|
-
}
|
|
130
|
-
catch (e) {
|
|
131
|
-
reject(e);
|
|
132
|
-
} }
|
|
133
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
134
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
function __generator(thisArg, body) {
|
|
138
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
139
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
140
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
141
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
142
|
-
function step(op) {
|
|
143
|
-
if (f)
|
|
144
|
-
throw new TypeError("Generator is already executing.");
|
|
145
|
-
while (_)
|
|
146
|
-
try {
|
|
147
|
-
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)
|
|
148
|
-
return t;
|
|
149
|
-
if (y = 0, t)
|
|
150
|
-
op = [op[0] & 2, t.value];
|
|
151
|
-
switch (op[0]) {
|
|
152
|
-
case 0:
|
|
153
|
-
case 1:
|
|
154
|
-
t = op;
|
|
155
|
-
break;
|
|
156
|
-
case 4:
|
|
157
|
-
_.label++;
|
|
158
|
-
return { value: op[1], done: false };
|
|
159
|
-
case 5:
|
|
160
|
-
_.label++;
|
|
161
|
-
y = op[1];
|
|
162
|
-
op = [0];
|
|
163
|
-
continue;
|
|
164
|
-
case 7:
|
|
165
|
-
op = _.ops.pop();
|
|
166
|
-
_.trys.pop();
|
|
167
|
-
continue;
|
|
168
|
-
default:
|
|
169
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
170
|
-
_ = 0;
|
|
171
|
-
continue;
|
|
172
|
-
}
|
|
173
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
174
|
-
_.label = op[1];
|
|
175
|
-
break;
|
|
176
|
-
}
|
|
177
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
178
|
-
_.label = t[1];
|
|
179
|
-
t = op;
|
|
180
|
-
break;
|
|
181
|
-
}
|
|
182
|
-
if (t && _.label < t[2]) {
|
|
183
|
-
_.label = t[2];
|
|
184
|
-
_.ops.push(op);
|
|
185
|
-
break;
|
|
186
|
-
}
|
|
187
|
-
if (t[2])
|
|
188
|
-
_.ops.pop();
|
|
189
|
-
_.trys.pop();
|
|
190
|
-
continue;
|
|
191
|
-
}
|
|
192
|
-
op = body.call(thisArg, _);
|
|
193
|
-
}
|
|
194
|
-
catch (e) {
|
|
195
|
-
op = [6, e];
|
|
196
|
-
y = 0;
|
|
197
|
-
}
|
|
198
|
-
finally {
|
|
199
|
-
f = t = 0;
|
|
200
|
-
}
|
|
201
|
-
if (op[0] & 5)
|
|
202
|
-
throw op[1];
|
|
203
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
207
|
-
if (k2 === undefined)
|
|
208
|
-
k2 = k;
|
|
209
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
210
|
-
}) : (function (o, m, k, k2) {
|
|
211
|
-
if (k2 === undefined)
|
|
212
|
-
k2 = k;
|
|
213
|
-
o[k2] = m[k];
|
|
214
|
-
});
|
|
215
|
-
function __exportStar(m, o) {
|
|
216
|
-
for (var p in m)
|
|
217
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
218
|
-
__createBinding(o, m, p);
|
|
219
|
-
}
|
|
220
|
-
function __values(o) {
|
|
221
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
222
|
-
if (m)
|
|
223
|
-
return m.call(o);
|
|
224
|
-
if (o && typeof o.length === "number")
|
|
225
|
-
return {
|
|
226
|
-
next: function () {
|
|
227
|
-
if (o && i >= o.length)
|
|
228
|
-
o = void 0;
|
|
229
|
-
return { value: o && o[i++], done: !o };
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
233
|
-
}
|
|
234
|
-
function __read(o, n) {
|
|
235
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
236
|
-
if (!m)
|
|
237
|
-
return o;
|
|
238
|
-
var i = m.call(o), r, ar = [], e;
|
|
239
|
-
try {
|
|
240
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
241
|
-
ar.push(r.value);
|
|
242
|
-
}
|
|
243
|
-
catch (error) {
|
|
244
|
-
e = { error: error };
|
|
245
|
-
}
|
|
246
|
-
finally {
|
|
247
|
-
try {
|
|
248
|
-
if (r && !r.done && (m = i["return"]))
|
|
249
|
-
m.call(i);
|
|
250
|
-
}
|
|
251
|
-
finally {
|
|
252
|
-
if (e)
|
|
253
|
-
throw e.error;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
return ar;
|
|
257
|
-
}
|
|
258
|
-
/** @deprecated */
|
|
259
|
-
function __spread() {
|
|
260
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
261
|
-
ar = ar.concat(__read(arguments[i]));
|
|
262
|
-
return ar;
|
|
263
|
-
}
|
|
264
|
-
/** @deprecated */
|
|
265
|
-
function __spreadArrays() {
|
|
266
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
267
|
-
s += arguments[i].length;
|
|
268
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
269
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
270
|
-
r[k] = a[j];
|
|
271
|
-
return r;
|
|
272
|
-
}
|
|
273
|
-
function __spreadArray(to, from) {
|
|
274
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
275
|
-
to[j] = from[i];
|
|
276
|
-
return to;
|
|
277
|
-
}
|
|
278
|
-
function __await(v) {
|
|
279
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
280
|
-
}
|
|
281
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
282
|
-
if (!Symbol.asyncIterator)
|
|
283
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
284
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
285
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
286
|
-
function verb(n) { if (g[n])
|
|
287
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
288
|
-
function resume(n, v) { try {
|
|
289
|
-
step(g[n](v));
|
|
290
|
-
}
|
|
291
|
-
catch (e) {
|
|
292
|
-
settle(q[0][3], e);
|
|
293
|
-
} }
|
|
294
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
295
|
-
function fulfill(value) { resume("next", value); }
|
|
296
|
-
function reject(value) { resume("throw", value); }
|
|
297
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
298
|
-
resume(q[0][0], q[0][1]); }
|
|
299
|
-
}
|
|
300
|
-
function __asyncDelegator(o) {
|
|
301
|
-
var i, p;
|
|
302
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
303
|
-
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; }
|
|
304
|
-
}
|
|
305
|
-
function __asyncValues(o) {
|
|
306
|
-
if (!Symbol.asyncIterator)
|
|
307
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
308
|
-
var m = o[Symbol.asyncIterator], i;
|
|
309
|
-
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);
|
|
310
|
-
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); }); }; }
|
|
311
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
312
|
-
}
|
|
313
|
-
function __makeTemplateObject(cooked, raw) {
|
|
314
|
-
if (Object.defineProperty) {
|
|
315
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
316
|
-
}
|
|
317
|
-
else {
|
|
318
|
-
cooked.raw = raw;
|
|
319
|
-
}
|
|
320
|
-
return cooked;
|
|
321
|
-
}
|
|
322
|
-
;
|
|
323
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
324
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
325
|
-
}) : function (o, v) {
|
|
326
|
-
o["default"] = v;
|
|
327
|
-
};
|
|
328
|
-
function __importStar(mod) {
|
|
329
|
-
if (mod && mod.__esModule)
|
|
330
|
-
return mod;
|
|
331
|
-
var result = {};
|
|
332
|
-
if (mod != null)
|
|
333
|
-
for (var k in mod)
|
|
334
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
335
|
-
__createBinding(result, mod, k);
|
|
336
|
-
__setModuleDefault(result, mod);
|
|
337
|
-
return result;
|
|
338
|
-
}
|
|
339
|
-
function __importDefault(mod) {
|
|
340
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
341
|
-
}
|
|
342
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
343
|
-
if (kind === "a" && !f)
|
|
344
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
345
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
346
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
347
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
348
|
-
}
|
|
349
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
350
|
-
if (kind === "m")
|
|
351
|
-
throw new TypeError("Private method is not writable");
|
|
352
|
-
if (kind === "a" && !f)
|
|
353
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
354
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
355
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
356
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
var isSupported = fire.ɵisAnalyticsSupportedFactory.async;
|
|
360
|
-
|
|
361
|
-
// DO NOT MODIFY, this file is autogenerated by tools/build.ts
|
|
362
|
-
var getAnalytics = fire.ɵzoneWrap(analytics.getAnalytics, true);
|
|
363
|
-
var initializeAnalytics = fire.ɵzoneWrap(analytics.initializeAnalytics, true);
|
|
364
|
-
var logEvent = fire.ɵzoneWrap(analytics.logEvent, true);
|
|
365
|
-
var setAnalyticsCollectionEnabled = fire.ɵzoneWrap(analytics.setAnalyticsCollectionEnabled, true);
|
|
366
|
-
var setCurrentScreen = fire.ɵzoneWrap(analytics.setCurrentScreen, true);
|
|
367
|
-
var settings = fire.ɵzoneWrap(analytics.settings, true);
|
|
368
|
-
var setUserId = fire.ɵzoneWrap(analytics.setUserId, true);
|
|
369
|
-
var setUserProperties = fire.ɵzoneWrap(analytics.setUserProperties, true);
|
|
370
|
-
|
|
371
|
-
var UserTrackingService = /** @class */ (function () {
|
|
372
|
-
function UserTrackingService(auth, zone, injector) {
|
|
373
|
-
var _this = this;
|
|
374
|
-
this.disposables = [];
|
|
375
|
-
app.registerVersion('angularfire', fire.VERSION.full, 'user-tracking');
|
|
376
|
-
var resolveInitialized;
|
|
377
|
-
this.initialized = zone.runOutsideAngular(function () { return new Promise(function (resolve) { resolveInitialized = resolve; }); });
|
|
378
|
-
// The APP_INITIALIZER that is making isSupported() sync for the sake of convenient DI
|
|
379
|
-
// may not be done when services are initialized. Guard the functionality by first ensuring
|
|
380
|
-
// that the (global) promise has resolved, then get Analytics from the injector.
|
|
381
|
-
isSupported().then(function () {
|
|
382
|
-
var analytics = injector.get(Analytics);
|
|
383
|
-
if (analytics) {
|
|
384
|
-
_this.disposables = [
|
|
385
|
-
// TODO add credential tracking back in
|
|
386
|
-
i1.authState(auth).subscribe(function (user) {
|
|
387
|
-
setUserId(analytics, user === null || user === void 0 ? void 0 : user.uid);
|
|
388
|
-
resolveInitialized();
|
|
389
|
-
}),
|
|
390
|
-
];
|
|
391
|
-
}
|
|
392
|
-
else {
|
|
393
|
-
resolveInitialized();
|
|
394
|
-
}
|
|
395
|
-
});
|
|
396
|
-
}
|
|
397
|
-
UserTrackingService.prototype.ngOnDestroy = function () {
|
|
398
|
-
this.disposables.forEach(function (it) { return it.unsubscribe(); });
|
|
399
|
-
};
|
|
400
|
-
return UserTrackingService;
|
|
401
|
-
}());
|
|
402
|
-
UserTrackingService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: UserTrackingService, deps: [{ token: i1__namespace.Auth }, { token: i0__namespace.NgZone }, { token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
403
|
-
UserTrackingService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: UserTrackingService });
|
|
404
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: UserTrackingService, decorators: [{
|
|
405
|
-
type: i0.Injectable
|
|
406
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.Auth }, { type: i0__namespace.NgZone }, { type: i0__namespace.Injector }]; } });
|
|
407
|
-
|
|
408
|
-
var FIREBASE_EVENT_ORIGIN_KEY = 'firebase_event_origin';
|
|
409
|
-
var FIREBASE_PREVIOUS_SCREEN_CLASS_KEY = 'firebase_previous_class';
|
|
410
|
-
var FIREBASE_PREVIOUS_SCREEN_INSTANCE_ID_KEY = 'firebase_previous_id';
|
|
411
|
-
var FIREBASE_PREVIOUS_SCREEN_NAME_KEY = 'firebase_previous_screen';
|
|
412
|
-
var FIREBASE_SCREEN_CLASS_KEY = 'firebase_screen_class';
|
|
413
|
-
var FIREBASE_SCREEN_INSTANCE_ID_KEY = 'firebase_screen_id';
|
|
414
|
-
var FIREBASE_SCREEN_NAME_KEY = 'firebase_screen';
|
|
415
|
-
var OUTLET_KEY = 'outlet';
|
|
416
|
-
var PAGE_PATH_KEY = 'page_path';
|
|
417
|
-
var PAGE_TITLE_KEY = 'page_title';
|
|
418
|
-
var SCREEN_CLASS_KEY = 'screen_class';
|
|
419
|
-
var SCREEN_NAME_KEY = 'screen_name';
|
|
420
|
-
var SCREEN_VIEW_EVENT = 'screen_view';
|
|
421
|
-
var EVENT_ORIGIN_AUTO = 'auto';
|
|
422
|
-
var SCREEN_INSTANCE_DELIMITER = '#';
|
|
423
|
-
// this is an INT64 in iOS/Android but use INT32 cause javascript
|
|
424
|
-
var nextScreenInstanceID = Math.floor(Math.random() * (Math.pow(2, 32) - 1)) - Math.pow(2, 31);
|
|
425
|
-
var knownScreenInstanceIDs = {};
|
|
426
|
-
var getScreenInstanceID = function (params) {
|
|
427
|
-
// unique the screen class against the outlet name
|
|
428
|
-
var screenInstanceKey = [
|
|
429
|
-
params[SCREEN_CLASS_KEY],
|
|
430
|
-
params[OUTLET_KEY]
|
|
431
|
-
].join(SCREEN_INSTANCE_DELIMITER);
|
|
432
|
-
if (knownScreenInstanceIDs.hasOwnProperty(screenInstanceKey)) {
|
|
433
|
-
return knownScreenInstanceIDs[screenInstanceKey];
|
|
434
|
-
}
|
|
435
|
-
else {
|
|
436
|
-
var ret = nextScreenInstanceID++;
|
|
437
|
-
knownScreenInstanceIDs[screenInstanceKey] = ret;
|
|
438
|
-
return ret;
|
|
439
|
-
}
|
|
440
|
-
};
|
|
441
|
-
var ɵscreenViewEvent = function (router, title, componentFactoryResolver) {
|
|
442
|
-
var activationEndEvents = router.events.pipe(operators.filter(function (e) { return e instanceof i1$1.ActivationEnd; }));
|
|
443
|
-
return activationEndEvents.pipe(operators.switchMap(function (activationEnd) {
|
|
444
|
-
var _b, _c, _d;
|
|
445
|
-
var _a;
|
|
446
|
-
// router parseUrl is having trouble with outlets when they're empty
|
|
447
|
-
// e.g, /asdf/1(bob://sally:asdf), so put another slash in when empty
|
|
448
|
-
var urlTree = router.parseUrl(router.url.replace(/(?:\().+(?:\))/g, function (a) { return a.replace('://', ':///'); }));
|
|
449
|
-
var pagePath = ((_a = urlTree.root.children[activationEnd.snapshot.outlet]) === null || _a === void 0 ? void 0 : _a.toString()) || '';
|
|
450
|
-
var actualSnapshot = router.routerState.root.children.map(function (it) { return it; }).find(function (it) { return it.outlet === activationEnd.snapshot.outlet; });
|
|
451
|
-
if (!actualSnapshot) {
|
|
452
|
-
return rxjs.of(null);
|
|
453
|
-
}
|
|
454
|
-
var actualDeep = actualSnapshot;
|
|
455
|
-
while (actualDeep.firstChild) {
|
|
456
|
-
actualDeep = actualDeep.firstChild;
|
|
457
|
-
}
|
|
458
|
-
var screenName = actualDeep.pathFromRoot.map(function (s) { var _a; return (_a = s.routeConfig) === null || _a === void 0 ? void 0 : _a.path; }).filter(function (it) { return it; }).join('/') || '/';
|
|
459
|
-
var params = (_b = {},
|
|
460
|
-
_b[SCREEN_NAME_KEY] = screenName,
|
|
461
|
-
_b[PAGE_PATH_KEY] = "/" + pagePath,
|
|
462
|
-
_b[FIREBASE_EVENT_ORIGIN_KEY] = EVENT_ORIGIN_AUTO,
|
|
463
|
-
_b[FIREBASE_SCREEN_NAME_KEY] = screenName,
|
|
464
|
-
_b[OUTLET_KEY] = activationEnd.snapshot.outlet,
|
|
465
|
-
_b);
|
|
466
|
-
if (title) {
|
|
467
|
-
params[PAGE_TITLE_KEY] = title.getTitle();
|
|
468
|
-
}
|
|
469
|
-
var component = actualSnapshot.component;
|
|
470
|
-
if (component) {
|
|
471
|
-
if (component === i1$1.ɵEmptyOutletComponent) {
|
|
472
|
-
var deepSnapshot = activationEnd.snapshot;
|
|
473
|
-
// TODO when might there be mutple children, different outlets? explore
|
|
474
|
-
while (deepSnapshot.firstChild) {
|
|
475
|
-
deepSnapshot = deepSnapshot.firstChild;
|
|
476
|
-
}
|
|
477
|
-
component = deepSnapshot.component;
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
else {
|
|
481
|
-
component = activationEnd.snapshot.component;
|
|
482
|
-
}
|
|
483
|
-
if (typeof component === 'string') {
|
|
484
|
-
return rxjs.of(Object.assign(Object.assign({}, params), (_c = {}, _c[SCREEN_CLASS_KEY] = component, _c)));
|
|
485
|
-
}
|
|
486
|
-
else if (component) {
|
|
487
|
-
var componentFactory = componentFactoryResolver.resolveComponentFactory(component);
|
|
488
|
-
return rxjs.of(Object.assign(Object.assign({}, params), (_d = {}, _d[SCREEN_CLASS_KEY] = componentFactory.selector, _d)));
|
|
489
|
-
}
|
|
490
|
-
// lazy loads cause extra activations, ignore
|
|
491
|
-
return rxjs.of(null);
|
|
492
|
-
}), operators.filter(function (it) { return !!it; }), operators.map(function (params) {
|
|
493
|
-
var _b;
|
|
494
|
-
return (Object.assign((_b = {}, _b[FIREBASE_SCREEN_CLASS_KEY] = params[SCREEN_CLASS_KEY], _b[FIREBASE_SCREEN_INSTANCE_ID_KEY] = getScreenInstanceID(params), _b), params));
|
|
495
|
-
}), operators.groupBy(function (it) { return it[OUTLET_KEY]; }), operators.mergeMap(function (it) { return it.pipe(operators.distinctUntilChanged(function (a, b) { return JSON.stringify(a) === JSON.stringify(b); }), operators.startWith(undefined), operators.pairwise(), operators.map(function (_b) {
|
|
496
|
-
var _c;
|
|
497
|
-
var _d = __read(_b, 2), prior = _d[0], current = _d[1];
|
|
498
|
-
return prior ? Object.assign((_c = {}, _c[FIREBASE_PREVIOUS_SCREEN_CLASS_KEY] = prior[SCREEN_CLASS_KEY], _c[FIREBASE_PREVIOUS_SCREEN_NAME_KEY] = prior[SCREEN_NAME_KEY], _c[FIREBASE_PREVIOUS_SCREEN_INSTANCE_ID_KEY] = prior[FIREBASE_SCREEN_INSTANCE_ID_KEY], _c), current) : current;
|
|
499
|
-
})); }));
|
|
500
|
-
};
|
|
501
|
-
var ScreenTrackingService = /** @class */ (function () {
|
|
502
|
-
function ScreenTrackingService(router, title, componentFactoryResolver, zone, userTrackingService, injector) {
|
|
503
|
-
var _this = this;
|
|
504
|
-
app.registerVersion('angularfire', fire.VERSION.full, 'screen-tracking');
|
|
505
|
-
// The APP_INITIALIZER that is making isSupported() sync for the sake of convenient DI
|
|
506
|
-
// may not be done when services are initialized. Guard the functionality by first ensuring
|
|
507
|
-
// that the (global) promise has resolved, then get Analytics from the injector.
|
|
508
|
-
isSupported().then(function () {
|
|
509
|
-
var analytics = injector.get(Analytics);
|
|
510
|
-
if (!router || !analytics) {
|
|
511
|
-
return;
|
|
512
|
-
}
|
|
513
|
-
zone.runOutsideAngular(function () {
|
|
514
|
-
_this.disposable = ɵscreenViewEvent(router, title, componentFactoryResolver).pipe(operators.switchMap(function (params) { return __awaiter(_this, void 0, void 0, function () {
|
|
515
|
-
return __generator(this, function (_b) {
|
|
516
|
-
switch (_b.label) {
|
|
517
|
-
case 0:
|
|
518
|
-
if (!userTrackingService) return [3 /*break*/, 2];
|
|
519
|
-
return [4 /*yield*/, userTrackingService.initialized];
|
|
520
|
-
case 1:
|
|
521
|
-
_b.sent();
|
|
522
|
-
_b.label = 2;
|
|
523
|
-
case 2: return [2 /*return*/, logEvent(analytics, SCREEN_VIEW_EVENT, params)];
|
|
524
|
-
}
|
|
525
|
-
});
|
|
526
|
-
}); })).subscribe();
|
|
527
|
-
});
|
|
528
|
-
});
|
|
529
|
-
}
|
|
530
|
-
ScreenTrackingService.prototype.ngOnDestroy = function () {
|
|
531
|
-
if (this.disposable) {
|
|
532
|
-
this.disposable.unsubscribe();
|
|
533
|
-
}
|
|
534
|
-
};
|
|
535
|
-
return ScreenTrackingService;
|
|
536
|
-
}());
|
|
537
|
-
ScreenTrackingService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: ScreenTrackingService, deps: [{ token: i1__namespace$1.Router, optional: true }, { token: i2__namespace.Title, optional: true }, { token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.NgZone }, { token: UserTrackingService, optional: true }, { token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
538
|
-
ScreenTrackingService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: ScreenTrackingService });
|
|
539
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: ScreenTrackingService, decorators: [{
|
|
540
|
-
type: i0.Injectable
|
|
541
|
-
}], ctorParameters: function () {
|
|
542
|
-
return [{ type: i1__namespace$1.Router, decorators: [{
|
|
543
|
-
type: i0.Optional
|
|
544
|
-
}] }, { type: i2__namespace.Title, decorators: [{
|
|
545
|
-
type: i0.Optional
|
|
546
|
-
}] }, { type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.NgZone }, { type: UserTrackingService, decorators: [{
|
|
547
|
-
type: i0.Optional
|
|
548
|
-
}] }, { type: i0__namespace.Injector }];
|
|
549
|
-
} });
|
|
550
|
-
|
|
551
|
-
var PROVIDED_ANALYTICS_INSTANCES = new i0.InjectionToken('angularfire2.analytics-instances');
|
|
552
|
-
function defaultAnalyticsInstanceFactory(provided, defaultApp) {
|
|
553
|
-
if (!fire.ɵisAnalyticsSupportedFactory.sync()) {
|
|
554
|
-
return null;
|
|
555
|
-
}
|
|
556
|
-
var defaultAnalytics = fire.ɵgetDefaultInstanceOf(ANALYTICS_PROVIDER_NAME, provided, defaultApp);
|
|
557
|
-
return defaultAnalytics && new Analytics(defaultAnalytics);
|
|
558
|
-
}
|
|
559
|
-
function analyticsInstanceFactory(fn) {
|
|
560
|
-
return function (zone, injector) {
|
|
561
|
-
if (!fire.ɵisAnalyticsSupportedFactory.sync()) {
|
|
562
|
-
return null;
|
|
563
|
-
}
|
|
564
|
-
var analytics = zone.runOutsideAngular(function () { return fn(injector); });
|
|
565
|
-
return new Analytics(analytics);
|
|
566
|
-
};
|
|
567
|
-
}
|
|
568
|
-
var ANALYTICS_INSTANCES_PROVIDER = {
|
|
569
|
-
provide: AnalyticsInstances,
|
|
570
|
-
deps: [
|
|
571
|
-
[new i0.Optional(), PROVIDED_ANALYTICS_INSTANCES],
|
|
572
|
-
]
|
|
573
|
-
};
|
|
574
|
-
var DEFAULT_ANALYTICS_INSTANCE_PROVIDER = {
|
|
575
|
-
provide: Analytics,
|
|
576
|
-
useFactory: defaultAnalyticsInstanceFactory,
|
|
577
|
-
deps: [
|
|
578
|
-
[new i0.Optional(), PROVIDED_ANALYTICS_INSTANCES],
|
|
579
|
-
app$1.FirebaseApp,
|
|
580
|
-
]
|
|
581
|
-
};
|
|
582
|
-
var AnalyticsModule = /** @class */ (function () {
|
|
583
|
-
function AnalyticsModule(_screenTrackingService, _userTrackingService) {
|
|
584
|
-
app.registerVersion('angularfire', fire.VERSION.full, 'analytics');
|
|
585
|
-
}
|
|
586
|
-
return AnalyticsModule;
|
|
587
|
-
}());
|
|
588
|
-
AnalyticsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: AnalyticsModule, deps: [{ token: ScreenTrackingService, optional: true }, { token: UserTrackingService, optional: true }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
589
|
-
AnalyticsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: AnalyticsModule });
|
|
590
|
-
AnalyticsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: AnalyticsModule, providers: [
|
|
591
|
-
DEFAULT_ANALYTICS_INSTANCE_PROVIDER,
|
|
592
|
-
ANALYTICS_INSTANCES_PROVIDER,
|
|
593
|
-
{
|
|
594
|
-
provide: i0.APP_INITIALIZER,
|
|
595
|
-
useValue: fire.ɵisAnalyticsSupportedFactory.async,
|
|
596
|
-
multi: true,
|
|
597
|
-
}
|
|
598
|
-
] });
|
|
599
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: AnalyticsModule, decorators: [{
|
|
600
|
-
type: i0.NgModule,
|
|
601
|
-
args: [{
|
|
602
|
-
providers: [
|
|
603
|
-
DEFAULT_ANALYTICS_INSTANCE_PROVIDER,
|
|
604
|
-
ANALYTICS_INSTANCES_PROVIDER,
|
|
605
|
-
{
|
|
606
|
-
provide: i0.APP_INITIALIZER,
|
|
607
|
-
useValue: fire.ɵisAnalyticsSupportedFactory.async,
|
|
608
|
-
multi: true,
|
|
609
|
-
}
|
|
610
|
-
]
|
|
611
|
-
}]
|
|
612
|
-
}], ctorParameters: function () {
|
|
613
|
-
return [{ type: ScreenTrackingService, decorators: [{
|
|
614
|
-
type: i0.Optional
|
|
615
|
-
}] }, { type: UserTrackingService, decorators: [{
|
|
616
|
-
type: i0.Optional
|
|
617
|
-
}] }];
|
|
618
|
-
} });
|
|
619
|
-
function provideAnalytics(fn) {
|
|
620
|
-
var deps = [];
|
|
621
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
622
|
-
deps[_i - 1] = arguments[_i];
|
|
623
|
-
}
|
|
624
|
-
return {
|
|
625
|
-
ngModule: AnalyticsModule,
|
|
626
|
-
providers: [{
|
|
627
|
-
provide: PROVIDED_ANALYTICS_INSTANCES,
|
|
628
|
-
useFactory: analyticsInstanceFactory(fn),
|
|
629
|
-
multi: true,
|
|
630
|
-
deps: __spreadArray([
|
|
631
|
-
i0.NgZone,
|
|
632
|
-
i0.Injector,
|
|
633
|
-
fire.ɵAngularFireSchedulers,
|
|
634
|
-
app$1.FirebaseApps
|
|
635
|
-
], __read(deps))
|
|
636
|
-
}]
|
|
637
|
-
};
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
/**
|
|
641
|
-
* Generated bundle index. Do not edit.
|
|
642
|
-
*/
|
|
643
|
-
|
|
644
|
-
exports.Analytics = Analytics;
|
|
645
|
-
exports.AnalyticsInstances = AnalyticsInstances;
|
|
646
|
-
exports.AnalyticsModule = AnalyticsModule;
|
|
647
|
-
exports.ScreenTrackingService = ScreenTrackingService;
|
|
648
|
-
exports.UserTrackingService = UserTrackingService;
|
|
649
|
-
exports.analyticInstance$ = analyticInstance$;
|
|
650
|
-
exports.getAnalytics = getAnalytics;
|
|
651
|
-
exports.initializeAnalytics = initializeAnalytics;
|
|
652
|
-
exports.isSupported = isSupported;
|
|
653
|
-
exports.logEvent = logEvent;
|
|
654
|
-
exports.provideAnalytics = provideAnalytics;
|
|
655
|
-
exports.setAnalyticsCollectionEnabled = setAnalyticsCollectionEnabled;
|
|
656
|
-
exports.setCurrentScreen = setCurrentScreen;
|
|
657
|
-
exports.setUserId = setUserId;
|
|
658
|
-
exports.setUserProperties = setUserProperties;
|
|
659
|
-
exports.settings = settings;
|
|
660
|
-
exports.ɵscreenViewEvent = ɵscreenViewEvent;
|
|
661
|
-
Object.keys(analytics).forEach(function (k) {
|
|
662
|
-
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
663
|
-
enumerable: true,
|
|
664
|
-
get: function () {
|
|
665
|
-
return analytics[k];
|
|
666
|
-
}
|
|
667
|
-
});
|
|
668
|
-
});
|
|
669
|
-
|
|
670
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
671
|
-
|
|
672
|
-
})));
|
|
673
|
-
//# sourceMappingURL=angular-fire-analytics.umd.js.map
|