@angular/fire 18.0.1-canary.f379433 → 19.0.0-canary.35e0a98
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/README.md +11 -30
- package/analytics/analytics.module.d.ts +2 -2
- package/analytics/firebase.d.ts +2 -2
- package/analytics/screen-tracking.service.d.ts +1 -1
- package/app-check/app-check.d.ts +6 -0
- package/app-check/public_api.d.ts +1 -2
- package/auth/firebase.d.ts +1 -2
- package/compat/auth/auth.d.ts +1 -0
- package/compat/database/database.d.ts +2 -1
- package/compat/database/list/create-reference.d.ts +2 -1
- package/compat/database/object/create-reference.d.ts +2 -1
- package/compat/firestore/collection/collection.d.ts +1 -0
- package/compat/firestore/collection-group/collection-group.d.ts +1 -0
- package/compat/firestore/document/document.d.ts +1 -0
- package/compat/firestore/firestore.d.ts +2 -1
- package/compat/remote-config/remote-config.d.ts +1 -0
- package/compat/storage/pipes/storageUrl.pipe.d.ts +2 -2
- package/compat/storage/ref.d.ts +2 -1
- package/compat/storage/storage.d.ts +2 -1
- package/compat/storage/storage.module.d.ts +1 -1
- package/core.d.ts +0 -7
- package/data-connect/data-connect.d.ts +9 -0
- package/data-connect/data-connect.module.d.ts +13 -0
- package/data-connect/firebase.d.ts +12 -0
- package/{vertexai-preview → data-connect}/index.d.ts +1 -1
- package/data-connect/package.json +3 -0
- package/data-connect/public_api.d.ts +3 -0
- package/database/firebase.d.ts +1 -2
- package/docs/install-and-setup.md +10 -5
- package/docs/vertexai.md +3 -3
- package/docs/zones.md +39 -0
- package/fesm2022/angular-fire-analytics.mjs +31 -58
- package/fesm2022/angular-fire-analytics.mjs.map +1 -1
- package/fesm2022/angular-fire-app-check.mjs +16 -11
- package/fesm2022/angular-fire-app-check.mjs.map +1 -1
- package/fesm2022/angular-fire-app.mjs +4 -4
- package/fesm2022/angular-fire-app.mjs.map +1 -1
- package/fesm2022/angular-fire-auth-guard.mjs +7 -7
- package/fesm2022/angular-fire-auth-guard.mjs.map +1 -1
- package/fesm2022/angular-fire-auth.mjs +46 -46
- package/fesm2022/angular-fire-auth.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-analytics.mjs +15 -15
- package/fesm2022/angular-fire-compat-analytics.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-auth-guard.mjs +7 -7
- package/fesm2022/angular-fire-compat-auth-guard.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-auth.mjs +12 -10
- package/fesm2022/angular-fire-compat-auth.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-database.mjs +25 -23
- package/fesm2022/angular-fire-compat-database.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-firestore.mjs +27 -22
- package/fesm2022/angular-fire-compat-firestore.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-functions.mjs +7 -7
- package/fesm2022/angular-fire-compat-functions.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-messaging.mjs +7 -7
- package/fesm2022/angular-fire-compat-messaging.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-performance.mjs +10 -10
- package/fesm2022/angular-fire-compat-performance.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-remote-config.mjs +12 -10
- package/fesm2022/angular-fire-compat-remote-config.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-storage.mjs +28 -25
- package/fesm2022/angular-fire-compat-storage.mjs.map +1 -1
- package/fesm2022/angular-fire-compat.mjs +4 -4
- package/fesm2022/angular-fire-compat.mjs.map +1 -1
- package/fesm2022/angular-fire-data-connect.mjs +100 -0
- package/fesm2022/angular-fire-data-connect.mjs.map +1 -0
- package/fesm2022/angular-fire-database.mjs +31 -31
- package/fesm2022/angular-fire-database.mjs.map +1 -1
- package/fesm2022/angular-fire-firestore-lite.mjs +38 -41
- package/fesm2022/angular-fire-firestore-lite.mjs.map +1 -1
- package/fesm2022/angular-fire-firestore.mjs +39 -48
- package/fesm2022/angular-fire-firestore.mjs.map +1 -1
- package/fesm2022/angular-fire-functions.mjs +7 -6
- package/fesm2022/angular-fire-functions.mjs.map +1 -1
- package/fesm2022/angular-fire-messaging.mjs +16 -43
- package/fesm2022/angular-fire-messaging.mjs.map +1 -1
- package/fesm2022/angular-fire-performance.mjs +5 -5
- package/fesm2022/angular-fire-performance.mjs.map +1 -1
- package/fesm2022/angular-fire-remote-config.mjs +18 -44
- package/fesm2022/angular-fire-remote-config.mjs.map +1 -1
- package/fesm2022/angular-fire-storage.mjs +10 -9
- package/fesm2022/angular-fire-storage.mjs.map +1 -1
- package/fesm2022/{angular-fire-vertexai-preview.mjs → angular-fire-vertexai.mjs} +10 -9
- package/fesm2022/angular-fire-vertexai.mjs.map +1 -0
- package/fesm2022/angular-fire.mjs +58 -80
- package/fesm2022/angular-fire.mjs.map +1 -1
- package/firestore/firebase.d.ts +2 -12
- package/firestore/lite/firebase.d.ts +2 -6
- package/messaging/firebase.d.ts +2 -2
- package/messaging/messaging.module.d.ts +2 -2
- package/package.json +21 -76
- package/remote-config/firebase.d.ts +3 -2
- package/remote-config/remote-config.module.d.ts +2 -2
- package/schematics/add/index.js +1 -13
- package/schematics/deploy/actions.js +138 -394
- package/schematics/deploy/builder.js +139 -61
- package/schematics/setup/index.js +94 -64
- package/schematics/update/index.js +1 -7
- package/schematics/update/v7/index.js +1 -67
- package/schematics/versions.json +2 -3
- package/{vertexai-preview → vertexai}/firebase.d.ts +2 -2
- package/vertexai/index.d.ts +5 -0
- package/vertexai/package.json +3 -0
- package/{vertexai-preview → vertexai}/vertexai.d.ts +1 -1
- package/{vertexai-preview → vertexai}/vertexai.module.d.ts +1 -1
- package/zones.d.ts +9 -16
- package/analytics/is-analytics-supported-factory.d.ts +0 -4
- package/analytics/overrides.d.ts +0 -1
- package/esm2022/analytics/analytics.mjs +0 -16
- package/esm2022/analytics/analytics.module.mjs +0 -101
- package/esm2022/analytics/angular-fire-analytics.mjs +0 -5
- package/esm2022/analytics/firebase.mjs +0 -17
- package/esm2022/analytics/is-analytics-supported-factory.mjs +0 -16
- package/esm2022/analytics/overrides.mjs +0 -3
- package/esm2022/analytics/public_api.mjs +0 -6
- package/esm2022/analytics/screen-tracking.service.mjs +0 -148
- package/esm2022/analytics/user-tracking.service.mjs +0 -44
- package/esm2022/angular-fire.mjs +0 -5
- package/esm2022/app/angular-fire-app.mjs +0 -5
- package/esm2022/app/app.mjs +0 -15
- package/esm2022/app/app.module.mjs +0 -91
- package/esm2022/app/firebase.mjs +0 -13
- package/esm2022/app/public_api.mjs +0 -4
- package/esm2022/app-check/angular-fire-app-check.mjs +0 -5
- package/esm2022/app-check/app-check.mjs +0 -10
- package/esm2022/app-check/app-check.module.mjs +0 -80
- package/esm2022/app-check/firebase.mjs +0 -10
- package/esm2022/app-check/public_api.mjs +0 -5
- package/esm2022/auth/angular-fire-auth.mjs +0 -5
- package/esm2022/auth/auth.mjs +0 -16
- package/esm2022/auth/auth.module.mjs +0 -73
- package/esm2022/auth/firebase.mjs +0 -59
- package/esm2022/auth/public_api.mjs +0 -5
- package/esm2022/auth/rxfire.mjs +0 -7
- package/esm2022/auth-guard/angular-fire-auth-guard.mjs +0 -5
- package/esm2022/auth-guard/auth-guard.mjs +0 -53
- package/esm2022/auth-guard/auth-guard.module.mjs +0 -20
- package/esm2022/auth-guard/public_api.mjs +0 -3
- package/esm2022/compat/analytics/analytics.mjs +0 -160
- package/esm2022/compat/analytics/analytics.module.mjs +0 -35
- package/esm2022/compat/analytics/angular-fire-compat-analytics.mjs +0 -5
- package/esm2022/compat/analytics/base.mjs +0 -11
- package/esm2022/compat/analytics/public_api.mjs +0 -5
- package/esm2022/compat/analytics/screen-tracking.service.mjs +0 -49
- package/esm2022/compat/analytics/user-tracking.service.mjs +0 -53
- package/esm2022/compat/angular-fire-compat.mjs +0 -5
- package/esm2022/compat/auth/angular-fire-compat-auth.mjs +0 -5
- package/esm2022/compat/auth/auth.mjs +0 -161
- package/esm2022/compat/auth/auth.module.mjs +0 -20
- package/esm2022/compat/auth/base.mjs +0 -39
- package/esm2022/compat/auth/public_api.mjs +0 -4
- package/esm2022/compat/auth-guard/angular-fire-compat-auth-guard.mjs +0 -5
- package/esm2022/compat/auth-guard/auth-guard.mjs +0 -53
- package/esm2022/compat/auth-guard/auth-guard.module.mjs +0 -20
- package/esm2022/compat/auth-guard/public_api.mjs +0 -3
- package/esm2022/compat/cache.mjs +0 -33
- package/esm2022/compat/database/angular-fire-compat-database.mjs +0 -5
- package/esm2022/compat/database/database.mjs +0 -119
- package/esm2022/compat/database/database.module.mjs +0 -20
- package/esm2022/compat/database/interfaces.mjs +0 -2
- package/esm2022/compat/database/list/audit-trail.mjs +0 -47
- package/esm2022/compat/database/list/changes.mjs +0 -85
- package/esm2022/compat/database/list/create-reference.mjs +0 -44
- package/esm2022/compat/database/list/data-operation.mjs +0 -11
- package/esm2022/compat/database/list/remove.mjs +0 -16
- package/esm2022/compat/database/list/snapshot-changes.mjs +0 -7
- package/esm2022/compat/database/list/state-changes.mjs +0 -9
- package/esm2022/compat/database/list/utils.mjs +0 -8
- package/esm2022/compat/database/object/create-reference.mjs +0 -19
- package/esm2022/compat/database/object/snapshot-changes.mjs +0 -7
- package/esm2022/compat/database/observable/fromRef.mjs +0 -48
- package/esm2022/compat/database/public_api.mjs +0 -9
- package/esm2022/compat/database/utils.mjs +0 -36
- package/esm2022/compat/firebase.app.mjs +0 -6
- package/esm2022/compat/firebase.app.module.mjs +0 -71
- package/esm2022/compat/firestore/angular-fire-compat-firestore.mjs +0 -5
- package/esm2022/compat/firestore/collection/changes.mjs +0 -108
- package/esm2022/compat/firestore/collection/collection.mjs +0 -123
- package/esm2022/compat/firestore/collection-group/collection-group.mjs +0 -86
- package/esm2022/compat/firestore/document/document.mjs +0 -87
- package/esm2022/compat/firestore/firestore.mjs +0 -257
- package/esm2022/compat/firestore/firestore.module.mjs +0 -32
- package/esm2022/compat/firestore/interfaces.mjs +0 -2
- package/esm2022/compat/firestore/observable/fromRef.mjs +0 -40
- package/esm2022/compat/firestore/public_api.mjs +0 -9
- package/esm2022/compat/functions/angular-fire-compat-functions.mjs +0 -5
- package/esm2022/compat/functions/base.mjs +0 -8
- package/esm2022/compat/functions/functions.mjs +0 -69
- package/esm2022/compat/functions/functions.module.mjs +0 -20
- package/esm2022/compat/functions/public_api.mjs +0 -4
- package/esm2022/compat/messaging/angular-fire-compat-messaging.mjs +0 -5
- package/esm2022/compat/messaging/base.mjs +0 -9
- package/esm2022/compat/messaging/messaging.mjs +0 -81
- package/esm2022/compat/messaging/messaging.module.mjs +0 -20
- package/esm2022/compat/messaging/public_api.mjs +0 -3
- package/esm2022/compat/performance/angular-fire-compat-performance.mjs +0 -5
- package/esm2022/compat/performance/base.mjs +0 -9
- package/esm2022/compat/performance/performance.mjs +0 -105
- package/esm2022/compat/performance/performance.module.mjs +0 -27
- package/esm2022/compat/performance/performance.service.mjs +0 -28
- package/esm2022/compat/performance/public_api.mjs +0 -4
- package/esm2022/compat/proxy.mjs +0 -58
- package/esm2022/compat/public_api.mjs +0 -5
- package/esm2022/compat/remote-config/angular-fire-compat-remote-config.mjs +0 -5
- package/esm2022/compat/remote-config/base.mjs +0 -20
- package/esm2022/compat/remote-config/interfaces.mjs +0 -2
- package/esm2022/compat/remote-config/public_api.mjs +0 -3
- package/esm2022/compat/remote-config/remote-config.mjs +0 -206
- package/esm2022/compat/remote-config/remote-config.module.mjs +0 -20
- package/esm2022/compat/storage/angular-fire-compat-storage.mjs +0 -5
- package/esm2022/compat/storage/interfaces.mjs +0 -2
- package/esm2022/compat/storage/observable/fromTask.mjs +0 -36
- package/esm2022/compat/storage/pipes/storageUrl.pipe.mjs +0 -56
- package/esm2022/compat/storage/public_api.mjs +0 -7
- package/esm2022/compat/storage/ref.mjs +0 -28
- package/esm2022/compat/storage/storage.mjs +0 -95
- package/esm2022/compat/storage/storage.module.mjs +0 -22
- package/esm2022/compat/storage/task.mjs +0 -21
- package/esm2022/core.mjs +0 -43
- package/esm2022/database/angular-fire-database.mjs +0 -5
- package/esm2022/database/database.mjs +0 -16
- package/esm2022/database/database.module.mjs +0 -76
- package/esm2022/database/firebase.mjs +0 -44
- package/esm2022/database/public_api.mjs +0 -5
- package/esm2022/database/rxfire.mjs +0 -13
- package/esm2022/firestore/angular-fire-firestore.mjs +0 -5
- package/esm2022/firestore/firebase.mjs +0 -73
- package/esm2022/firestore/firestore.mjs +0 -16
- package/esm2022/firestore/firestore.module.mjs +0 -76
- package/esm2022/firestore/lite/angular-fire-firestore-lite.mjs +0 -5
- package/esm2022/firestore/lite/firebase.mjs +0 -48
- package/esm2022/firestore/lite/lite.mjs +0 -16
- package/esm2022/firestore/lite/lite.module.mjs +0 -75
- package/esm2022/firestore/lite/public_api.mjs +0 -5
- package/esm2022/firestore/lite/rxfire.mjs +0 -12
- package/esm2022/firestore/public_api.mjs +0 -5
- package/esm2022/firestore/rxfire.mjs +0 -15
- package/esm2022/functions/angular-fire-functions.mjs +0 -5
- package/esm2022/functions/firebase.mjs +0 -9
- package/esm2022/functions/functions.mjs +0 -16
- package/esm2022/functions/functions.module.mjs +0 -76
- package/esm2022/functions/public_api.mjs +0 -5
- package/esm2022/functions/rxfire.mjs +0 -5
- package/esm2022/messaging/angular-fire-messaging.mjs +0 -5
- package/esm2022/messaging/firebase.mjs +0 -10
- package/esm2022/messaging/is-messaging-supported-factory.mjs +0 -16
- package/esm2022/messaging/messaging.mjs +0 -16
- package/esm2022/messaging/messaging.module.mjs +0 -93
- package/esm2022/messaging/overrides.mjs +0 -3
- package/esm2022/messaging/public_api.mjs +0 -4
- package/esm2022/performance/angular-fire-performance.mjs +0 -5
- package/esm2022/performance/firebase.mjs +0 -8
- package/esm2022/performance/performance.mjs +0 -16
- package/esm2022/performance/performance.module.mjs +0 -83
- package/esm2022/performance/public_api.mjs +0 -5
- package/esm2022/performance/rxfire.mjs +0 -8
- package/esm2022/public_api.mjs +0 -3
- package/esm2022/remote-config/angular-fire-remote-config.mjs +0 -5
- package/esm2022/remote-config/firebase.mjs +0 -17
- package/esm2022/remote-config/is-remote-config-supported-factory.mjs +0 -16
- package/esm2022/remote-config/overrides.mjs +0 -3
- package/esm2022/remote-config/public_api.mjs +0 -5
- package/esm2022/remote-config/remote-config.mjs +0 -16
- package/esm2022/remote-config/remote-config.module.mjs +0 -93
- package/esm2022/remote-config/rxfire.mjs +0 -9
- package/esm2022/storage/angular-fire-storage.mjs +0 -5
- package/esm2022/storage/firebase.mjs +0 -20
- package/esm2022/storage/public_api.mjs +0 -5
- package/esm2022/storage/rxfire.mjs +0 -6
- package/esm2022/storage/storage.mjs +0 -16
- package/esm2022/storage/storage.module.mjs +0 -76
- package/esm2022/vertexai-preview/angular-fire-vertexai-preview.mjs +0 -5
- package/esm2022/vertexai-preview/firebase.mjs +0 -7
- package/esm2022/vertexai-preview/public_api.mjs +0 -4
- package/esm2022/vertexai-preview/vertexai.mjs +0 -16
- package/esm2022/vertexai-preview/vertexai.module.mjs +0 -73
- package/esm2022/zones.mjs +0 -174
- package/fesm2022/angular-fire-vertexai-preview.mjs.map +0 -1
- package/messaging/is-messaging-supported-factory.d.ts +0 -4
- package/messaging/overrides.d.ts +0 -1
- package/remote-config/is-remote-config-supported-factory.d.ts +0 -4
- package/remote-config/overrides.d.ts +0 -1
- package/schematics/common.js +0 -81
- package/schematics/deploy/functions-templates.js +0 -57
- package/schematics/firebaseTools.js +0 -78
- package/schematics/interfaces.js +0 -16
- package/schematics/setup/prompts.js +0 -195
- package/schematics/utils.js +0 -189
- package/vertexai-preview/package.json +0 -3
- /package/{vertexai-preview → vertexai}/public_api.d.ts +0 -0
package/README.md
CHANGED
|
@@ -33,9 +33,9 @@ export const appConfig: ApplicationConfig = {
|
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
```ts
|
|
36
|
+
import { AsyncPipe } from '@angular/common';
|
|
36
37
|
import { inject } from '@angular/core';
|
|
37
38
|
import { Firestore, collectionData, collection } from '@angular/fire/firestore';
|
|
38
|
-
import { Observable } from 'rxjs';
|
|
39
39
|
|
|
40
40
|
interface Item {
|
|
41
41
|
name: string,
|
|
@@ -44,7 +44,6 @@ interface Item {
|
|
|
44
44
|
|
|
45
45
|
@Component({
|
|
46
46
|
selector: 'app-root',
|
|
47
|
-
standalone: true,
|
|
48
47
|
template: `
|
|
49
48
|
<ul>
|
|
50
49
|
@for (item of (item$ | async); track item) {
|
|
@@ -53,30 +52,16 @@ interface Item {
|
|
|
53
52
|
</li>
|
|
54
53
|
}
|
|
55
54
|
</ul>
|
|
56
|
-
|
|
55
|
+
`,
|
|
56
|
+
imports: [AsyncPipe]
|
|
57
57
|
})
|
|
58
58
|
export class AppComponent {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
constructor() {
|
|
63
|
-
const itemCollection = collection(this.firestore, 'items');
|
|
64
|
-
this.item$ = collectionData<Item>(itemCollection);
|
|
65
|
-
}
|
|
59
|
+
firestore = inject(Firestore);
|
|
60
|
+
itemCollection = collection(this.firestore, 'items');
|
|
61
|
+
item$ = collectionData<Item>(itemCollection);
|
|
66
62
|
}
|
|
67
63
|
```
|
|
68
64
|
|
|
69
|
-
### Polyfills
|
|
70
|
-
|
|
71
|
-
Neither AngularFire nor Firebase ship with polyfills. To have compatibility across a wide-range of environments, we suggest the following polyfills be added to your application:
|
|
72
|
-
|
|
73
|
-
| API | Environments | Suggested Polyfill | License |
|
|
74
|
-
|-----|--------------|--------------------|---------|
|
|
75
|
-
| Various ES5+ features | Safari < 10 | [`core-js/stable`](https://github.com/zloirock/core-js#readme) | MIT |
|
|
76
|
-
| `globalThis` | [Chrome < 71<br>Safari < 12.1<br>iOS < 12.2<br>Node < 12](https://caniuse.com/mdn-javascript_builtins_globalthis) | [`globalThis`](https://github.com/es-shims/globalThis#readme) | MIT |
|
|
77
|
-
| `Proxy` | [Safari < 10](https://caniuse.com/proxy) | [`proxy-polyfill`](https://github.com/GoogleChrome/proxy-polyfill#readme) | Apache 2.0 |
|
|
78
|
-
| `fetch` | [Safari < 10.1<br>iOS < 10.3](https://caniuse.com/fetch) | [`cross-fetch`](https://github.com/lquixada/cross-fetch#readme) | MIT |
|
|
79
|
-
|
|
80
65
|
## Resources
|
|
81
66
|
|
|
82
67
|
[Quickstart](docs/install-and-setup.md) - Get your first application up and running by following our quickstart guide.
|
|
@@ -85,15 +70,11 @@ Neither AngularFire nor Firebase ship with polyfills. To have compatibility acro
|
|
|
85
70
|
|
|
86
71
|
[Stackblitz Template](https://stackblitz.com/edit/angular-fire-start) - Remember to set your Firebase configuration in `app/app.module.ts`.
|
|
87
72
|
|
|
88
|
-
[Upgrading
|
|
89
|
-
|
|
90
|
-
### Sample apps
|
|
73
|
+
[Upgrading from v6.0? Check out our guide.](docs/version-7-upgrade.md)
|
|
91
74
|
|
|
92
|
-
|
|
75
|
+
### Sample app
|
|
93
76
|
|
|
94
|
-
|
|
95
|
-
1. [`samples/modular`](samples/modular) a kitchen sink application that demonstrates the new tree-shakable API
|
|
96
|
-
1. [`samples/advanced`](samples/advanced) the same app as `samples/modular` but demonstrates more advanced concepts such as Angular Universal state-transfer, dynamically importing Firebase feature modules, and Firestore data bundling.
|
|
77
|
+
The [`sample`](sample) folder contains a kitchen sink application that demonstrates use of the "modular" API, in a zoneless server-rendered application, with all the bells and whistles.
|
|
97
78
|
|
|
98
79
|
### Having troubles?
|
|
99
80
|
|
|
@@ -193,9 +174,9 @@ import { } from '@angular/fire/app-check';
|
|
|
193
174
|
<tr>
|
|
194
175
|
<td>
|
|
195
176
|
|
|
196
|
-
#### [Vertex AI](docs/vertexai.md#vertex-ai
|
|
177
|
+
#### [Vertex AI](docs/vertexai.md#vertex-ai)
|
|
197
178
|
```ts
|
|
198
|
-
import { } from '@angular/fire/vertexai
|
|
179
|
+
import { } from '@angular/fire/vertexai';
|
|
199
180
|
```
|
|
200
181
|
</td>
|
|
201
182
|
|
|
@@ -6,8 +6,8 @@ import { ScreenTrackingService } from './screen-tracking.service';
|
|
|
6
6
|
import { UserTrackingService } from './user-tracking.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare const PROVIDED_ANALYTICS_INSTANCES: InjectionToken<Analytics[]>;
|
|
9
|
-
export declare function defaultAnalyticsInstanceFactory(provided: FirebaseAnalytics[] | undefined, defaultApp: FirebaseApp): Analytics;
|
|
10
|
-
export declare function analyticsInstanceFactory(fn: (injector: Injector) => FirebaseAnalytics): (zone: NgZone, injector: Injector) => Analytics;
|
|
9
|
+
export declare function defaultAnalyticsInstanceFactory(provided: FirebaseAnalytics[] | undefined, defaultApp: FirebaseApp, platformId: object): Analytics;
|
|
10
|
+
export declare function analyticsInstanceFactory(fn: (injector: Injector) => FirebaseAnalytics): (zone: NgZone, injector: Injector, platformId: object) => Analytics;
|
|
11
11
|
export declare class AnalyticsModule {
|
|
12
12
|
constructor(_screenTrackingService: ScreenTrackingService, _userTrackingService: UserTrackingService);
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnalyticsModule, [{ optional: true; }, { optional: true; }]>;
|
package/analytics/firebase.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * from 'firebase/analytics';
|
|
2
|
-
import { getAnalytics as _getAnalytics, getGoogleAnalyticsClientId as _getGoogleAnalyticsClientId, initializeAnalytics as _initializeAnalytics, logEvent as _logEvent, setAnalyticsCollectionEnabled as _setAnalyticsCollectionEnabled, setConsent as _setConsent, setCurrentScreen as _setCurrentScreen, setDefaultEventParameters as _setDefaultEventParameters, setUserId as _setUserId, setUserProperties as _setUserProperties, settings as _settings } from 'firebase/analytics';
|
|
3
|
-
export { isSupported } from './overrides';
|
|
2
|
+
import { getAnalytics as _getAnalytics, getGoogleAnalyticsClientId as _getGoogleAnalyticsClientId, initializeAnalytics as _initializeAnalytics, isSupported as _isSupported, logEvent as _logEvent, setAnalyticsCollectionEnabled as _setAnalyticsCollectionEnabled, setConsent as _setConsent, setCurrentScreen as _setCurrentScreen, setDefaultEventParameters as _setDefaultEventParameters, setUserId as _setUserId, setUserProperties as _setUserProperties, settings as _settings } from 'firebase/analytics';
|
|
4
3
|
export declare const getAnalytics: typeof _getAnalytics;
|
|
5
4
|
export declare const getGoogleAnalyticsClientId: typeof _getGoogleAnalyticsClientId;
|
|
6
5
|
export declare const initializeAnalytics: typeof _initializeAnalytics;
|
|
6
|
+
export declare const isSupported: typeof _isSupported;
|
|
7
7
|
export declare const logEvent: typeof _logEvent;
|
|
8
8
|
export declare const setAnalyticsCollectionEnabled: typeof _setAnalyticsCollectionEnabled;
|
|
9
9
|
export declare const setConsent: typeof _setConsent;
|
|
@@ -19,7 +19,7 @@ declare const SCREEN_NAME_KEY = "screen_name";
|
|
|
19
19
|
export declare const ɵscreenViewEvent: (router: Router, title: Title | null, componentFactoryResolver: ComponentFactoryResolver) => Observable<{
|
|
20
20
|
[SCREEN_NAME_KEY]: string;
|
|
21
21
|
[PAGE_PATH_KEY]: string;
|
|
22
|
-
[FIREBASE_EVENT_ORIGIN_KEY]:
|
|
22
|
+
[FIREBASE_EVENT_ORIGIN_KEY]: "auto";
|
|
23
23
|
[FIREBASE_SCREEN_NAME_KEY]: string;
|
|
24
24
|
[OUTLET_KEY]: string;
|
|
25
25
|
[PAGE_TITLE_KEY]?: string;
|
package/app-check/app-check.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { AppCheck as FirebaseAppCheck } from 'firebase/app-check';
|
|
2
|
+
export declare const APP_CHECK_PROVIDER_NAME = "app-check";
|
|
2
3
|
export interface AppCheck extends FirebaseAppCheck {
|
|
3
4
|
}
|
|
4
5
|
export declare class AppCheck {
|
|
5
6
|
constructor(appCheck: FirebaseAppCheck);
|
|
6
7
|
}
|
|
8
|
+
export interface AppCheckInstances extends Array<AppCheck> {
|
|
9
|
+
}
|
|
10
|
+
export declare class AppCheckInstances {
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
7
13
|
export declare const appCheckInstance$: import("rxjs").Observable<FirebaseAppCheck>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { AppCheck, appCheckInstance
|
|
2
|
-
export { ɵAppCheckInstances as AppCheckInstances } from '@angular/fire';
|
|
1
|
+
export { AppCheck, appCheckInstance$, AppCheckInstances } from './app-check';
|
|
3
2
|
export { provideAppCheck, AppCheckModule } from './app-check.module';
|
|
4
3
|
export * from './firebase';
|
package/auth/firebase.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from 'firebase/auth';
|
|
2
|
-
import { applyActionCode as _applyActionCode, beforeAuthStateChanged as _beforeAuthStateChanged, checkActionCode as _checkActionCode, confirmPasswordReset as _confirmPasswordReset, connectAuthEmulator as _connectAuthEmulator, createUserWithEmailAndPassword as _createUserWithEmailAndPassword, deleteUser as _deleteUser, fetchSignInMethodsForEmail as _fetchSignInMethodsForEmail, getAdditionalUserInfo as _getAdditionalUserInfo, getAuth as _getAuth, getIdToken as _getIdToken, getIdTokenResult as _getIdTokenResult, getMultiFactorResolver as _getMultiFactorResolver, getRedirectResult as _getRedirectResult, initializeAuth as _initializeAuth, initializeRecaptchaConfig as _initializeRecaptchaConfig, isSignInWithEmailLink as _isSignInWithEmailLink, linkWithCredential as _linkWithCredential, linkWithPhoneNumber as _linkWithPhoneNumber, linkWithPopup as _linkWithPopup, linkWithRedirect as _linkWithRedirect,
|
|
2
|
+
import { applyActionCode as _applyActionCode, beforeAuthStateChanged as _beforeAuthStateChanged, checkActionCode as _checkActionCode, confirmPasswordReset as _confirmPasswordReset, connectAuthEmulator as _connectAuthEmulator, createUserWithEmailAndPassword as _createUserWithEmailAndPassword, deleteUser as _deleteUser, fetchSignInMethodsForEmail as _fetchSignInMethodsForEmail, getAdditionalUserInfo as _getAdditionalUserInfo, getAuth as _getAuth, getIdToken as _getIdToken, getIdTokenResult as _getIdTokenResult, getMultiFactorResolver as _getMultiFactorResolver, getRedirectResult as _getRedirectResult, initializeAuth as _initializeAuth, initializeRecaptchaConfig as _initializeRecaptchaConfig, isSignInWithEmailLink as _isSignInWithEmailLink, linkWithCredential as _linkWithCredential, linkWithPhoneNumber as _linkWithPhoneNumber, linkWithPopup as _linkWithPopup, linkWithRedirect as _linkWithRedirect, onAuthStateChanged as _onAuthStateChanged, onIdTokenChanged as _onIdTokenChanged, parseActionCodeURL as _parseActionCodeURL, reauthenticateWithCredential as _reauthenticateWithCredential, reauthenticateWithPhoneNumber as _reauthenticateWithPhoneNumber, reauthenticateWithPopup as _reauthenticateWithPopup, reauthenticateWithRedirect as _reauthenticateWithRedirect, reload as _reload, revokeAccessToken as _revokeAccessToken, sendEmailVerification as _sendEmailVerification, sendPasswordResetEmail as _sendPasswordResetEmail, sendSignInLinkToEmail as _sendSignInLinkToEmail, setPersistence as _setPersistence, signInAnonymously as _signInAnonymously, signInWithCredential as _signInWithCredential, signInWithCustomToken as _signInWithCustomToken, signInWithEmailAndPassword as _signInWithEmailAndPassword, signInWithEmailLink as _signInWithEmailLink, signInWithPhoneNumber as _signInWithPhoneNumber, signInWithPopup as _signInWithPopup, signInWithRedirect as _signInWithRedirect, signOut as _signOut, unlink as _unlink, updateCurrentUser as _updateCurrentUser, updateEmail as _updateEmail, updatePassword as _updatePassword, updatePhoneNumber as _updatePhoneNumber, updateProfile as _updateProfile, useDeviceLanguage as _useDeviceLanguage, validatePassword as _validatePassword, verifyBeforeUpdateEmail as _verifyBeforeUpdateEmail, verifyPasswordResetCode as _verifyPasswordResetCode } from 'firebase/auth';
|
|
3
3
|
export declare const applyActionCode: typeof _applyActionCode;
|
|
4
4
|
export declare const beforeAuthStateChanged: typeof _beforeAuthStateChanged;
|
|
5
5
|
export declare const checkActionCode: typeof _checkActionCode;
|
|
@@ -21,7 +21,6 @@ export declare const linkWithCredential: typeof _linkWithCredential;
|
|
|
21
21
|
export declare const linkWithPhoneNumber: typeof _linkWithPhoneNumber;
|
|
22
22
|
export declare const linkWithPopup: typeof _linkWithPopup;
|
|
23
23
|
export declare const linkWithRedirect: typeof _linkWithRedirect;
|
|
24
|
-
export declare const multiFactor: typeof _multiFactor;
|
|
25
24
|
export declare const onAuthStateChanged: typeof _onAuthStateChanged;
|
|
26
25
|
export declare const onIdTokenChanged: typeof _onIdTokenChanged;
|
|
27
26
|
export declare const parseActionCodeURL: typeof _parseActionCodeURL;
|
package/compat/auth/auth.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare const USE_DEVICE_LANGUAGE: InjectionToken<boolean>;
|
|
|
18
18
|
export declare const PERSISTENCE: InjectionToken<string>;
|
|
19
19
|
export declare const ɵauthFactory: (app: FirebaseApp, zone: NgZone, useEmulator: UseEmulatorArguments | null, tenantId: string, languageCode: string | null, useDeviceLanguage: boolean | null, settings: firebase.auth.AuthSettings | null, persistence: string | null) => firebase.auth.Auth;
|
|
20
20
|
export declare class AngularFireAuth {
|
|
21
|
+
private readonly injector;
|
|
21
22
|
/**
|
|
22
23
|
* Observable of authentication state; as of Firebase 4.0 this is only triggered via sign-in/out
|
|
23
24
|
*/
|
|
@@ -10,11 +10,12 @@ import 'firebase/compat/database';
|
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare const URL: InjectionToken<string>;
|
|
12
12
|
export declare const USE_EMULATOR: InjectionToken<[host: string, port: number, options?: {
|
|
13
|
-
mockUserToken?:
|
|
13
|
+
mockUserToken?: firebase.database.EmulatorMockTokenOptions | string;
|
|
14
14
|
}]>;
|
|
15
15
|
export declare class AngularFireDatabase {
|
|
16
16
|
schedulers: ɵAngularFireSchedulers;
|
|
17
17
|
readonly database: firebase.database.Database;
|
|
18
|
+
private readonly injector;
|
|
18
19
|
constructor(options: FirebaseOptions, name: string | null | undefined, databaseURL: string | null, platformId: Object, zone: NgZone, schedulers: ɵAngularFireSchedulers, _useEmulator: any, // tuple isn't working here
|
|
19
20
|
auth: AngularFireAuth, useAuthEmulator: any, authSettings: any, // can't use firebase.auth.AuthSettings here
|
|
20
21
|
tenantId: string | null, languageCode: string | null, useDeviceLanguage: boolean | null, persistence: string | null, _appCheckInstances: AppCheckInstances);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
1
2
|
import { AngularFireDatabase } from '../database';
|
|
2
3
|
import { AngularFireList, DatabaseQuery } from '../interfaces';
|
|
3
|
-
export declare function createListReference<T = any>(query: DatabaseQuery, afDatabase: AngularFireDatabase): AngularFireList<T>;
|
|
4
|
+
export declare function createListReference<T = any>(query: DatabaseQuery, afDatabase: AngularFireDatabase, injector?: Injector): AngularFireList<T>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
1
2
|
import { AngularFireDatabase } from '../database';
|
|
2
3
|
import { AngularFireObject, DatabaseQuery } from '../interfaces';
|
|
3
|
-
export declare function createObjectReference<T = any>(query: DatabaseQuery, afDatabase: AngularFireDatabase): AngularFireObject<T>;
|
|
4
|
+
export declare function createObjectReference<T = any>(query: DatabaseQuery, afDatabase: AngularFireDatabase, injector?: Injector): AngularFireObject<T>;
|
|
@@ -31,6 +31,7 @@ export declare class AngularFirestoreCollection<T = DocumentData> {
|
|
|
31
31
|
readonly ref: CollectionReference<T>;
|
|
32
32
|
private readonly query;
|
|
33
33
|
private readonly afs;
|
|
34
|
+
private readonly injector;
|
|
34
35
|
/**
|
|
35
36
|
* The constructor takes in a CollectionReference and Query to provide wrapper methods
|
|
36
37
|
* for data operations and data streaming.
|
|
@@ -23,6 +23,7 @@ import { DocumentChangeAction, DocumentChangeType, DocumentData, Query } from '.
|
|
|
23
23
|
export declare class AngularFirestoreCollectionGroup<T = DocumentData> {
|
|
24
24
|
private readonly query;
|
|
25
25
|
private readonly afs;
|
|
26
|
+
private readonly injector;
|
|
26
27
|
/**
|
|
27
28
|
* The constructor takes in a CollectionGroupQuery to provide wrapper methods
|
|
28
29
|
* for data operations and data streaming.
|
|
@@ -28,6 +28,7 @@ import { Action, DocumentData, DocumentReference, DocumentSnapshot, QueryFn, Set
|
|
|
28
28
|
export declare class AngularFirestoreDocument<T = DocumentData> {
|
|
29
29
|
ref: DocumentReference<T>;
|
|
30
30
|
private afs;
|
|
31
|
+
private readonly injector;
|
|
31
32
|
/**
|
|
32
33
|
* The constructor takes in a DocumentReference to provide wrapper methods
|
|
33
34
|
* for data operations, data streaming, and Symbol.observable.
|
|
@@ -19,7 +19,7 @@ export declare const ENABLE_PERSISTENCE: InjectionToken<boolean>;
|
|
|
19
19
|
export declare const PERSISTENCE_SETTINGS: InjectionToken<firebase.firestore.PersistenceSettings>;
|
|
20
20
|
export declare const SETTINGS: InjectionToken<firebase.firestore.Settings>;
|
|
21
21
|
export declare const USE_EMULATOR: InjectionToken<[host: string, port: number, options?: {
|
|
22
|
-
mockUserToken?:
|
|
22
|
+
mockUserToken?: firebase.firestore.EmulatorMockTokenOptions | string;
|
|
23
23
|
}]>;
|
|
24
24
|
/**
|
|
25
25
|
* A utility methods for associating a collection reference with
|
|
@@ -93,6 +93,7 @@ export declare class AngularFirestore {
|
|
|
93
93
|
schedulers: ɵAngularFireSchedulers;
|
|
94
94
|
readonly firestore: firebase.firestore.Firestore;
|
|
95
95
|
readonly persistenceEnabled$: Observable<boolean>;
|
|
96
|
+
private readonly ngZone;
|
|
96
97
|
/**
|
|
97
98
|
* Each Feature of AngularFire has a FirebaseApp injected. This way we
|
|
98
99
|
* don't rely on the main Firebase App instance and we can create named
|
|
@@ -34,6 +34,7 @@ export declare class AngularFireRemoteConfig {
|
|
|
34
34
|
readonly numbers: Observable<Record<string, number | undefined>> & Record<string, Observable<number>>;
|
|
35
35
|
readonly booleans: Observable<Record<string, boolean | undefined>> & Record<string, Observable<boolean>>;
|
|
36
36
|
readonly strings: Observable<Record<string, string | undefined>> & Record<string, Observable<string | undefined>>;
|
|
37
|
+
private readonly injector;
|
|
37
38
|
constructor(options: FirebaseOptions, name: string | null | undefined, settings: Settings | null, defaultConfig: ConfigTemplate | null, zone: NgZone, schedulers: ɵAngularFireSchedulers, platformId: Object);
|
|
38
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireRemoteConfig, [null, { optional: true; }, { optional: true; }, { optional: true; }, null, null, null]>;
|
|
39
40
|
static ɵprov: i0.ɵɵInjectableDeclaration<AngularFireRemoteConfig>;
|
|
@@ -12,10 +12,10 @@ export declare class GetDownloadURLPipe implements PipeTransform, OnDestroy {
|
|
|
12
12
|
transform(path: string): any;
|
|
13
13
|
ngOnDestroy(): void;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetDownloadURLPipe, [null, null, { optional: true; }]>;
|
|
15
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<GetDownloadURLPipe, "getDownloadURL",
|
|
15
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<GetDownloadURLPipe, "getDownloadURL", true>;
|
|
16
16
|
}
|
|
17
17
|
export declare class GetDownloadURLPipeModule {
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetDownloadURLPipeModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<GetDownloadURLPipeModule, [typeof GetDownloadURLPipe],
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GetDownloadURLPipeModule, never, [typeof GetDownloadURLPipe], [typeof GetDownloadURLPipe]>;
|
|
20
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<GetDownloadURLPipeModule>;
|
|
21
21
|
}
|
package/compat/storage/ref.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
1
2
|
import { Observable } from 'rxjs';
|
|
2
3
|
import { ListOptions, ListResult, Reference, SettableMetadata, UploadMetadata } from './interfaces';
|
|
3
4
|
import { AngularFireUploadTask } from './task';
|
|
@@ -16,4 +17,4 @@ export interface AngularFireStorageReference {
|
|
|
16
17
|
* Create an AngularFire wrapped Storage Reference. This object
|
|
17
18
|
* creates observable methods from promise based methods.
|
|
18
19
|
*/
|
|
19
|
-
export declare function createStorageRef(ref: Reference): AngularFireStorageReference;
|
|
20
|
+
export declare function createStorageRef(ref: Reference, injector?: Injector): AngularFireStorageReference;
|
|
@@ -10,7 +10,7 @@ export declare const BUCKET: InjectionToken<string>;
|
|
|
10
10
|
export declare const MAX_UPLOAD_RETRY_TIME: InjectionToken<number>;
|
|
11
11
|
export declare const MAX_OPERATION_RETRY_TIME: InjectionToken<number>;
|
|
12
12
|
export declare const USE_EMULATOR: InjectionToken<[host: string, port: number, options?: {
|
|
13
|
-
mockUserToken?:
|
|
13
|
+
mockUserToken?: firebase.EmulatorMockTokenOptions | string;
|
|
14
14
|
}]>;
|
|
15
15
|
/**
|
|
16
16
|
* AngularFireStorage Service
|
|
@@ -21,6 +21,7 @@ export declare const USE_EMULATOR: InjectionToken<[host: string, port: number, o
|
|
|
21
21
|
*/
|
|
22
22
|
export declare class AngularFireStorage {
|
|
23
23
|
readonly storage: firebase.storage.Storage;
|
|
24
|
+
private readonly injector;
|
|
24
25
|
constructor(options: FirebaseOptions, name: string | null | undefined, storageBucket: string | null, platformId: Object, zone: NgZone, schedulers: ɵAngularFireSchedulers, maxUploadRetryTime: any, maxOperationRetryTime: any, _useEmulator: any, _appCheckInstances: AppCheckInstances);
|
|
25
26
|
ref(path: string): import("./ref").AngularFireStorageReference;
|
|
26
27
|
refFromURL(path: string): import("./ref").AngularFireStorageReference;
|
|
@@ -3,6 +3,6 @@ import * as i1 from "./pipes/storageUrl.pipe";
|
|
|
3
3
|
export declare class AngularFireStorageModule {
|
|
4
4
|
constructor();
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireStorageModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFireStorageModule, never,
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFireStorageModule, never, [typeof i1.GetDownloadURLPipeModule], [typeof i1.GetDownloadURLPipeModule]>;
|
|
7
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<AngularFireStorageModule>;
|
|
8
8
|
}
|
package/core.d.ts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { Version } from '@angular/core';
|
|
2
2
|
import { FirebaseApp } from 'firebase/app';
|
|
3
|
-
import type { AppCheck } from 'firebase/app-check';
|
|
4
3
|
export declare const VERSION: Version;
|
|
5
4
|
export declare const ɵisSupportedError: (module: string) => string;
|
|
6
5
|
export declare function ɵgetDefaultInstanceOf<T = unknown>(identifier: string, provided: T[] | undefined, defaultApp: FirebaseApp): T | undefined;
|
|
7
6
|
export declare const ɵgetAllInstancesOf: <T = unknown>(identifier: string, app?: FirebaseApp) => T[];
|
|
8
|
-
export interface ɵAppCheckInstances extends Array<AppCheck> {
|
|
9
|
-
}
|
|
10
|
-
export declare class ɵAppCheckInstances {
|
|
11
|
-
constructor();
|
|
12
|
-
}
|
|
13
|
-
export declare const ɵAPP_CHECK_PROVIDER_NAME = "app-check";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DataConnect } from 'firebase/data-connect';
|
|
2
|
+
export { DataConnect };
|
|
3
|
+
export declare const DATA_CONNECT_PROVIDER_NAME = "data-connect";
|
|
4
|
+
export interface DataConnectInstances extends Array<DataConnect> {
|
|
5
|
+
}
|
|
6
|
+
export declare class DataConnectInstances {
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
9
|
+
export declare const dataConnectInstance$: import("rxjs").Observable<DataConnect>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EnvironmentProviders, Injector, NgZone } from '@angular/core';
|
|
2
|
+
import { FirebaseApp } from '@angular/fire/app';
|
|
3
|
+
import { DataConnect } from './data-connect';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare function defaultDataConnectInstanceFactory(provided: DataConnect[] | undefined, defaultApp: FirebaseApp): DataConnect;
|
|
6
|
+
export declare function dataConnectInstanceFactory(fn: (injector: Injector) => DataConnect): (zone: NgZone, injector: Injector) => DataConnect;
|
|
7
|
+
export declare class DataConnectModule {
|
|
8
|
+
constructor();
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataConnectModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DataConnectModule, never, never, never>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DataConnectModule>;
|
|
12
|
+
}
|
|
13
|
+
export declare function provideDataConnect(fn: (injector: Injector) => DataConnect, ...deps: any[]): EnvironmentProviders;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from 'firebase/data-connect';
|
|
2
|
+
import { connectDataConnectEmulator as _connectDataConnectEmulator, executeMutation as _executeMutation, executeQuery as _executeQuery, getDataConnect as _getDataConnect, mutationRef as _mutationRef, queryRef as _queryRef, setLogLevel as _setLogLevel, subscribe as _subscribe, terminate as _terminate, toQueryRef as _toQueryRef } from 'firebase/data-connect';
|
|
3
|
+
export declare const connectDataConnectEmulator: typeof _connectDataConnectEmulator;
|
|
4
|
+
export declare const executeMutation: typeof _executeMutation;
|
|
5
|
+
export declare const executeQuery: typeof _executeQuery;
|
|
6
|
+
export declare const getDataConnect: typeof _getDataConnect;
|
|
7
|
+
export declare const mutationRef: typeof _mutationRef;
|
|
8
|
+
export declare const queryRef: typeof _queryRef;
|
|
9
|
+
export declare const setLogLevel: typeof _setLogLevel;
|
|
10
|
+
export declare const subscribe: typeof _subscribe;
|
|
11
|
+
export declare const terminate: typeof _terminate;
|
|
12
|
+
export declare const toQueryRef: typeof _toQueryRef;
|
package/database/firebase.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from 'firebase/database';
|
|
2
|
-
import { child as _child, connectDatabaseEmulator as _connectDatabaseEmulator, enableLogging as _enableLogging, endAt as _endAt, endBefore as _endBefore, equalTo as _equalTo, forceLongPolling as _forceLongPolling, forceWebSockets as _forceWebSockets, get as _get, getDatabase as _getDatabase, goOffline as _goOffline, goOnline as _goOnline, increment as _increment, limitToFirst as _limitToFirst, limitToLast as _limitToLast, off as _off, onChildAdded as _onChildAdded, onChildChanged as _onChildChanged, onChildMoved as _onChildMoved, onChildRemoved as _onChildRemoved, onDisconnect as _onDisconnect, onValue as _onValue, orderByChild as _orderByChild, orderByKey as _orderByKey, orderByPriority as _orderByPriority, orderByValue as _orderByValue, push as _push, query as _query, ref as _ref, refFromURL as _refFromURL, remove as _remove, runTransaction as _runTransaction,
|
|
2
|
+
import { child as _child, connectDatabaseEmulator as _connectDatabaseEmulator, enableLogging as _enableLogging, endAt as _endAt, endBefore as _endBefore, equalTo as _equalTo, forceLongPolling as _forceLongPolling, forceWebSockets as _forceWebSockets, get as _get, getDatabase as _getDatabase, goOffline as _goOffline, goOnline as _goOnline, increment as _increment, limitToFirst as _limitToFirst, limitToLast as _limitToLast, off as _off, onChildAdded as _onChildAdded, onChildChanged as _onChildChanged, onChildMoved as _onChildMoved, onChildRemoved as _onChildRemoved, onDisconnect as _onDisconnect, onValue as _onValue, orderByChild as _orderByChild, orderByKey as _orderByKey, orderByPriority as _orderByPriority, orderByValue as _orderByValue, push as _push, query as _query, ref as _ref, refFromURL as _refFromURL, remove as _remove, runTransaction as _runTransaction, set as _set, setPriority as _setPriority, setWithPriority as _setWithPriority, startAfter as _startAfter, startAt as _startAt, update as _update } from 'firebase/database';
|
|
3
3
|
export declare const child: typeof _child;
|
|
4
4
|
export declare const connectDatabaseEmulator: typeof _connectDatabaseEmulator;
|
|
5
5
|
export declare const enableLogging: typeof _enableLogging;
|
|
@@ -32,7 +32,6 @@ export declare const ref: typeof _ref;
|
|
|
32
32
|
export declare const refFromURL: typeof _refFromURL;
|
|
33
33
|
export declare const remove: typeof _remove;
|
|
34
34
|
export declare const runTransaction: typeof _runTransaction;
|
|
35
|
-
export declare const serverTimestamp: typeof _serverTimestamp;
|
|
36
35
|
export declare const set: typeof _set;
|
|
37
36
|
export declare const setPriority: typeof _setPriority;
|
|
38
37
|
export declare const setWithPriority: typeof _setWithPriority;
|
|
@@ -42,12 +42,14 @@ Open `/src/app/app.component.ts`, and make the following changes to :
|
|
|
42
42
|
|
|
43
43
|
```ts
|
|
44
44
|
import { Component, inject } from '@angular/core';
|
|
45
|
+
import { AsyncPipe } from '@angular/common';
|
|
45
46
|
import { Firestore } from '@angular/fire/firestore';
|
|
46
47
|
|
|
47
48
|
@Component({
|
|
48
49
|
selector: 'app-root',
|
|
49
50
|
templateUrl: 'app.component.html',
|
|
50
|
-
styleUrls: ['app.component.css']
|
|
51
|
+
styleUrls: ['app.component.css'],
|
|
52
|
+
imports: [AsyncPipe],
|
|
51
53
|
})
|
|
52
54
|
export class AppComponent {
|
|
53
55
|
firestore: Firestore = inject(Firestore);
|
|
@@ -64,11 +66,14 @@ In `/src/app/app.component.ts`:
|
|
|
64
66
|
|
|
65
67
|
```ts
|
|
66
68
|
import { Component, inject } from '@angular/core';
|
|
67
|
-
import {
|
|
69
|
+
import { AsyncPipe } from '@angular/common';
|
|
68
70
|
import { Observable } from 'rxjs';
|
|
71
|
+
import { Firestore, collection, collectionData } from '@angular/fire/firestore';
|
|
69
72
|
|
|
70
73
|
@Component({
|
|
71
74
|
selector: 'app-root',
|
|
75
|
+
standalone: true,
|
|
76
|
+
imports: [AsyncPipe],
|
|
72
77
|
templateUrl: 'app.component.html',
|
|
73
78
|
styleUrls: ['app.component.css']
|
|
74
79
|
})
|
|
@@ -87,9 +92,9 @@ Open `/src/app/app.component.html`:
|
|
|
87
92
|
|
|
88
93
|
```html
|
|
89
94
|
<ul>
|
|
90
|
-
|
|
91
|
-
{{item.name}}
|
|
92
|
-
|
|
95
|
+
@for (item of items$ | async; track item) {
|
|
96
|
+
<li>{{ item.name }}</li>
|
|
97
|
+
}
|
|
93
98
|
</ul>
|
|
94
99
|
```
|
|
95
100
|
|
package/docs/vertexai.md
CHANGED
|
@@ -35,7 +35,7 @@ Next inject `VertexAI` into your component:
|
|
|
35
35
|
|
|
36
36
|
```typescript
|
|
37
37
|
import { Component, inject } from '@angular/core';
|
|
38
|
-
import { VertexAI } from '@angular/fire/vertexai
|
|
38
|
+
import { VertexAI } from '@angular/fire/vertexai';
|
|
39
39
|
|
|
40
40
|
@Component({ ... })
|
|
41
41
|
export class MyComponent {
|
|
@@ -48,6 +48,6 @@ export class MyComponent {
|
|
|
48
48
|
|
|
49
49
|
AngularFire wraps the Firebase JS SDK to ensure proper functionality in Angular, while providing the same API.
|
|
50
50
|
|
|
51
|
-
Update the imports from `import { ... } from 'firebase/vertexai
|
|
51
|
+
Update the imports from `import { ... } from 'firebase/vertexai'` to `import { ... } from '@angular/fire/vertexai'` and follow the official documentation.
|
|
52
52
|
|
|
53
|
-
[Getting Started](https://firebase.google.com/docs/vertex-ai/get-started?platform=web) | [API Reference](https://firebase.google.com/docs/reference/js/vertexai
|
|
53
|
+
[Getting Started](https://firebase.google.com/docs/vertex-ai/get-started?platform=web) | [API Reference](https://firebase.google.com/docs/reference/js/vertexai)
|
package/docs/zones.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<small>
|
|
2
|
+
<a href="https://github.com/angular/angularfire">AngularFire</a> ❱ <a href="../README.md#developer-guide">Developer Guide</a> ❱ Zone Wrappers
|
|
3
|
+
</small>
|
|
4
|
+
|
|
5
|
+
# Zone Wrappers
|
|
6
|
+
|
|
7
|
+
AngularFire wraps the [framework agnostic Firebase JS SDK](https://github.com/firebase/firebase-js-sdk) and [RxFire](https://github.com/firebaseextended/rxfire) to ensure proper functionality in Zone and Zoneless applications alike.
|
|
8
|
+
|
|
9
|
+
These wrappers ensure Firebase APIs are called outside of the Angular zone. This isolates side-effects such as timers so that they do not destabilize your application.
|
|
10
|
+
|
|
11
|
+
Observables, Promise-based APIs, and those with callbacks will purposely destabilize your application until a initial value is returned, this ensures that server-side rendering (SSR) and static site generation (SSG/pre-rendering) wait for data before rendering the page's HTML.
|
|
12
|
+
|
|
13
|
+
## Consequences of not Zone wrapping
|
|
14
|
+
|
|
15
|
+
When using a Firebase or RxFire API without importing from AngularFire or if AngularFire APIs are used outside of an injection context you _may_ experience instability.
|
|
16
|
+
|
|
17
|
+
When an application is unstable change-detection, two-way binding, and rehydration may not work as expected—leading to both subtle and non-subtle bugs in your application. Further, server-side rendering (SSR) and static site generation (SSG/pre-rendering) may timeout or render a blank page.
|
|
18
|
+
|
|
19
|
+
There are a number of situations where AngularFire's Zone wrapping is inconsequential such adding/deleting/updating a document in response to user-input, signing a user in, calling a Cloud Function, etc. So long as no long-lived side-effects are kicked off, your application should be ok. Most Promise based APIs are fairly safe without zone wrapping.
|
|
20
|
+
|
|
21
|
+
## Logging
|
|
22
|
+
|
|
23
|
+
You may see a log warning, `Calling Firebase APIs outside of an Injection context may destabilize your application leading to subtle change-detection and hydration bugs. Find more at https://github.com/angular/angularfire/blob/main/docs/zones.md` when developing your application.
|
|
24
|
+
|
|
25
|
+
Instability can be difficult to track down. To help with debugging, AngularFire emits warnings when it is unable to Zone wrap an API while in dev-mode. **Often these messages can be safely ignored** but we'd rather be verbose.
|
|
26
|
+
|
|
27
|
+
There are three logging levels in AngularFire:
|
|
28
|
+
|
|
29
|
+
* **Silent**: when the logging level is set to silent only the above banner is displayed when AngularFire APIs are called outside of an injection context, this is the default when using Zoneless change-detection.
|
|
30
|
+
* **Warn**: when the logging level is set to warn, only blocking reads, long-lived tasks, and APIs with high risk of destabilizing your application are called, this is the default when using ZoneJS.
|
|
31
|
+
* **Verbose**: when the logging level is set to verbose, all AngularFire APIs called outside of an injection context are logged—helping you track down APIs that may be destabilizing your application
|
|
32
|
+
|
|
33
|
+
You can change the log-level like so:
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
import { setLogLevel, LogLevel } from "@angular/fire";
|
|
37
|
+
|
|
38
|
+
setLogLevel(LogLevel.VERBOSE);
|
|
39
|
+
```
|