@angular/fire 17.1.0 → 18.0.0-canary.c866d08
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 +10 -0
- package/compat/proxy.d.ts +2 -2
- package/compat/storage/pipes/storageUrl.pipe.d.ts +1 -2
- package/docs/analytics.md +14 -20
- package/docs/app-check.md +12 -9
- package/docs/auth.md +44 -9
- package/docs/database.md +12 -12
- package/docs/firestore.md +15 -23
- package/docs/functions.md +11 -9
- package/docs/messaging.md +30 -8
- package/docs/performance.md +11 -9
- package/docs/remote-config.md +11 -9
- package/docs/storage.md +11 -10
- package/docs/vertexai.md +53 -0
- package/esm2022/analytics/analytics.module.mjs +5 -5
- package/esm2022/analytics/is-analytics-supported-factory.mjs +1 -1
- package/esm2022/analytics/screen-tracking.service.mjs +4 -4
- package/esm2022/analytics/user-tracking.service.mjs +4 -4
- package/esm2022/app/app.module.mjs +5 -5
- package/esm2022/app-check/app-check.module.mjs +5 -5
- package/esm2022/auth/auth.module.mjs +5 -5
- package/esm2022/auth-guard/auth-guard.mjs +4 -4
- package/esm2022/auth-guard/auth-guard.module.mjs +5 -5
- package/esm2022/compat/analytics/analytics.mjs +4 -4
- package/esm2022/compat/analytics/analytics.module.mjs +5 -5
- package/esm2022/compat/analytics/screen-tracking.service.mjs +4 -4
- package/esm2022/compat/analytics/user-tracking.service.mjs +4 -4
- package/esm2022/compat/auth/auth.mjs +4 -4
- package/esm2022/compat/auth/auth.module.mjs +5 -5
- package/esm2022/compat/auth-guard/auth-guard.mjs +4 -4
- package/esm2022/compat/auth-guard/auth-guard.module.mjs +5 -5
- package/esm2022/compat/cache.mjs +1 -1
- package/esm2022/compat/database/database.mjs +4 -4
- package/esm2022/compat/database/database.module.mjs +5 -5
- package/esm2022/compat/database/list/changes.mjs +1 -1
- package/esm2022/compat/database/list/create-reference.mjs +1 -1
- package/esm2022/compat/database/list/remove.mjs +1 -1
- package/esm2022/compat/database/list/utils.mjs +1 -1
- package/esm2022/compat/database/observable/fromRef.mjs +1 -1
- package/esm2022/compat/database/utils.mjs +1 -1
- package/esm2022/compat/firebase.app.module.mjs +5 -5
- package/esm2022/compat/firestore/collection/changes.mjs +1 -1
- package/esm2022/compat/firestore/collection/collection.mjs +1 -1
- package/esm2022/compat/firestore/collection-group/collection-group.mjs +1 -1
- package/esm2022/compat/firestore/firestore.mjs +4 -4
- package/esm2022/compat/firestore/firestore.module.mjs +5 -5
- package/esm2022/compat/firestore/observable/fromRef.mjs +1 -1
- package/esm2022/compat/functions/functions.mjs +4 -4
- package/esm2022/compat/functions/functions.module.mjs +5 -5
- package/esm2022/compat/messaging/messaging.mjs +4 -4
- package/esm2022/compat/messaging/messaging.module.mjs +5 -5
- package/esm2022/compat/performance/performance.mjs +4 -4
- package/esm2022/compat/performance/performance.module.mjs +5 -5
- package/esm2022/compat/performance/performance.service.mjs +4 -4
- package/esm2022/compat/proxy.mjs +1 -1
- package/esm2022/compat/remote-config/remote-config.mjs +4 -4
- package/esm2022/compat/remote-config/remote-config.module.mjs +5 -5
- package/esm2022/compat/storage/pipes/storageUrl.pipe.mjs +10 -12
- package/esm2022/compat/storage/storage.mjs +4 -4
- package/esm2022/compat/storage/storage.module.mjs +5 -5
- package/esm2022/core.mjs +1 -1
- package/esm2022/database/database.module.mjs +5 -5
- package/esm2022/firestore/firestore.module.mjs +5 -5
- package/esm2022/firestore/lite/lite.module.mjs +5 -5
- package/esm2022/functions/functions.module.mjs +5 -5
- package/esm2022/messaging/is-messaging-supported-factory.mjs +1 -1
- package/esm2022/messaging/messaging.module.mjs +5 -5
- package/esm2022/performance/performance.module.mjs +5 -5
- package/esm2022/remote-config/is-remote-config-supported-factory.mjs +1 -1
- package/esm2022/remote-config/remote-config.module.mjs +5 -5
- package/esm2022/storage/storage.module.mjs +5 -5
- package/esm2022/vertexai-preview/vertexai.module.mjs +5 -5
- package/esm2022/zones.mjs +4 -4
- package/fesm2022/angular-fire-analytics.mjs +410 -297
- package/fesm2022/angular-fire-analytics.mjs.map +7 -1
- package/fesm2022/angular-fire-app-check.mjs +162 -91
- package/fesm2022/angular-fire-app-check.mjs.map +7 -1
- package/fesm2022/angular-fire-app.mjs +181 -108
- package/fesm2022/angular-fire-app.mjs.map +7 -1
- package/fesm2022/angular-fire-auth-guard.mjs +83 -73
- package/fesm2022/angular-fire-auth-guard.mjs.map +7 -1
- package/fesm2022/angular-fire-auth.mjs +421 -142
- package/fesm2022/angular-fire-auth.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-analytics.mjs +261 -270
- package/fesm2022/angular-fire-compat-analytics.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-auth-guard.mjs +83 -72
- package/fesm2022/angular-fire-compat-auth-guard.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-auth.mjs +214 -213
- package/fesm2022/angular-fire-compat-auth.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-database.mjs +375 -378
- package/fesm2022/angular-fire-compat-database.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-firestore.mjs +537 -677
- package/fesm2022/angular-fire-compat-firestore.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-functions.mjs +97 -93
- package/fesm2022/angular-fire-compat-functions.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-messaging.mjs +106 -106
- package/fesm2022/angular-fire-compat-messaging.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-performance.mjs +157 -151
- package/fesm2022/angular-fire-compat-performance.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-remote-config.mjs +215 -231
- package/fesm2022/angular-fire-compat-remote-config.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-storage.mjs +226 -233
- package/fesm2022/angular-fire-compat-storage.mjs.map +7 -1
- package/fesm2022/angular-fire-compat.mjs +140 -153
- package/fesm2022/angular-fire-compat.mjs.map +7 -1
- package/fesm2022/angular-fire-database.mjs +376 -136
- package/fesm2022/angular-fire-database.mjs.map +7 -1
- package/fesm2022/angular-fire-firestore-lite.mjs +388 -139
- package/fesm2022/angular-fire-firestore-lite.mjs.map +7 -1
- package/fesm2022/angular-fire-firestore.mjs +526 -167
- package/fesm2022/angular-fire-firestore.mjs.map +7 -1
- package/fesm2022/angular-fire-functions.mjs +166 -93
- package/fesm2022/angular-fire-functions.mjs.map +7 -1
- package/fesm2022/angular-fire-messaging.mjs +196 -118
- package/fesm2022/angular-fire-messaging.mjs.map +7 -1
- package/fesm2022/angular-fire-performance.mjs +178 -104
- package/fesm2022/angular-fire-performance.mjs.map +7 -1
- package/fesm2022/angular-fire-remote-config.mjs +254 -132
- package/fesm2022/angular-fire-remote-config.mjs.map +7 -1
- package/fesm2022/angular-fire-storage.mjs +225 -105
- package/fesm2022/angular-fire-storage.mjs.map +7 -1
- package/fesm2022/angular-fire-vertexai-preview.mjs +146 -85
- package/fesm2022/angular-fire-vertexai-preview.mjs.map +7 -1
- package/fesm2022/angular-fire.mjs +183 -213
- package/fesm2022/angular-fire.mjs.map +7 -1
- package/package.json +7 -7
- package/schematics/deploy/actions.js +2 -2
- package/schematics/setup/prompts.js +1 -1
|
@@ -1,137 +1,215 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from2, except, desc) => {
|
|
10
|
+
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from2))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc(from2, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
10
18
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
// angular-fire-messaging.mjs
|
|
20
|
+
var angular_fire_messaging_exports = {};
|
|
21
|
+
__export(angular_fire_messaging_exports, {
|
|
22
|
+
Messaging: () => Messaging,
|
|
23
|
+
MessagingInstances: () => MessagingInstances,
|
|
24
|
+
MessagingModule: () => MessagingModule,
|
|
25
|
+
deleteToken: () => deleteToken,
|
|
26
|
+
getMessaging: () => getMessaging,
|
|
27
|
+
getToken: () => getToken,
|
|
28
|
+
isSupported: () => isSupported2,
|
|
29
|
+
messagingInstance$: () => messagingInstance$,
|
|
30
|
+
onMessage: () => onMessage,
|
|
31
|
+
provideMessaging: () => provideMessaging
|
|
32
|
+
});
|
|
23
33
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
// public_api.mjs
|
|
35
|
+
var public_api_exports = {};
|
|
36
|
+
__export(public_api_exports, {
|
|
37
|
+
Messaging: () => Messaging,
|
|
38
|
+
MessagingInstances: () => MessagingInstances,
|
|
39
|
+
MessagingModule: () => MessagingModule,
|
|
40
|
+
deleteToken: () => deleteToken,
|
|
41
|
+
getMessaging: () => getMessaging,
|
|
42
|
+
getToken: () => getToken,
|
|
43
|
+
isSupported: () => isSupported2,
|
|
44
|
+
messagingInstance$: () => messagingInstance$,
|
|
45
|
+
onMessage: () => onMessage,
|
|
46
|
+
provideMessaging: () => provideMessaging
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
// messaging.mjs
|
|
50
|
+
import { ɵgetAllInstancesOf } from "@angular/fire";
|
|
51
|
+
import { from, timer } from "rxjs";
|
|
52
|
+
import { concatMap, distinct } from "rxjs/operators";
|
|
53
|
+
var Messaging = class {
|
|
54
|
+
constructor(messaging) {
|
|
55
|
+
return messaging;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
var MESSAGING_PROVIDER_NAME = "messaging";
|
|
59
|
+
var MessagingInstances = class {
|
|
60
|
+
constructor() {
|
|
61
|
+
return ɵgetAllInstancesOf(MESSAGING_PROVIDER_NAME);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
var messagingInstance$ = timer(0, 300).pipe(concatMap(() => from(ɵgetAllInstancesOf(MESSAGING_PROVIDER_NAME))), distinct());
|
|
65
|
+
|
|
66
|
+
// is-messaging-supported-factory.mjs
|
|
67
|
+
import { ɵisSupportedError } from "@angular/fire";
|
|
68
|
+
import { isSupported } from "firebase/messaging";
|
|
69
|
+
var isMessagingSupportedPromiseSymbol = "__angularfire_symbol__messagingIsSupported";
|
|
70
|
+
var isMessagingSupportedValueSymbol = "__angularfire_symbol__messagingIsSupportedValue";
|
|
71
|
+
globalThis[isMessagingSupportedPromiseSymbol] ||= isSupported().then((it) => globalThis[isMessagingSupportedValueSymbol] = it).catch(() => globalThis[isMessagingSupportedValueSymbol] = false);
|
|
72
|
+
var isMessagingSupportedFactory = {
|
|
73
|
+
async: () => globalThis[isMessagingSupportedPromiseSymbol],
|
|
74
|
+
sync: () => {
|
|
75
|
+
const ret = globalThis[isMessagingSupportedValueSymbol];
|
|
76
|
+
if (ret === void 0) {
|
|
77
|
+
throw new Error(ɵisSupportedError("Messaging"));
|
|
35
78
|
}
|
|
79
|
+
return ret;
|
|
80
|
+
}
|
|
36
81
|
};
|
|
37
82
|
|
|
38
|
-
|
|
83
|
+
// messaging.module.mjs
|
|
84
|
+
import { APP_INITIALIZER, InjectionToken, Injector, NgModule, NgZone, Optional, makeEnvironmentProviders } from "@angular/core";
|
|
85
|
+
import { VERSION, ɵAngularFireSchedulers, ɵgetDefaultInstanceOf } from "@angular/fire";
|
|
86
|
+
import { FirebaseApp, FirebaseApps } from "@angular/fire/app";
|
|
87
|
+
import { registerVersion } from "firebase/app";
|
|
88
|
+
import * as i0 from "@angular/core";
|
|
89
|
+
var PROVIDED_MESSAGING_INSTANCES = new InjectionToken("angularfire2.messaging-instances");
|
|
39
90
|
function defaultMessagingInstanceFactory(provided, defaultApp) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
91
|
+
if (!isMessagingSupportedFactory.sync()) {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
const defaultMessaging = ɵgetDefaultInstanceOf(MESSAGING_PROVIDER_NAME, provided, defaultApp);
|
|
95
|
+
return defaultMessaging && new Messaging(defaultMessaging);
|
|
45
96
|
}
|
|
46
97
|
function messagingInstanceFactory(fn) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
98
|
+
return (zone, injector) => {
|
|
99
|
+
if (!isMessagingSupportedFactory.sync()) {
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
102
|
+
const messaging = zone.runOutsideAngular(() => fn(injector));
|
|
103
|
+
return new Messaging(messaging);
|
|
104
|
+
};
|
|
54
105
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
106
|
+
var MESSAGING_INSTANCES_PROVIDER = {
|
|
107
|
+
provide: MessagingInstances,
|
|
108
|
+
deps: [
|
|
109
|
+
[new Optional(), PROVIDED_MESSAGING_INSTANCES]
|
|
110
|
+
]
|
|
60
111
|
};
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
112
|
+
var DEFAULT_MESSAGING_INSTANCE_PROVIDER = {
|
|
113
|
+
provide: Messaging,
|
|
114
|
+
useFactory: defaultMessagingInstanceFactory,
|
|
115
|
+
deps: [
|
|
116
|
+
[new Optional(), PROVIDED_MESSAGING_INSTANCES],
|
|
117
|
+
FirebaseApp
|
|
118
|
+
]
|
|
68
119
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
120
|
+
var MessagingModule = class _MessagingModule {
|
|
121
|
+
constructor() {
|
|
122
|
+
registerVersion("angularfire", VERSION.full, "fcm");
|
|
123
|
+
}
|
|
124
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.3", ngImport: i0, type: _MessagingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
125
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-rc.3", ngImport: i0, type: _MessagingModule });
|
|
126
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-rc.3", ngImport: i0, type: _MessagingModule, providers: [
|
|
127
|
+
DEFAULT_MESSAGING_INSTANCE_PROVIDER,
|
|
128
|
+
MESSAGING_INSTANCES_PROVIDER,
|
|
129
|
+
{
|
|
130
|
+
provide: APP_INITIALIZER,
|
|
131
|
+
useValue: isMessagingSupportedFactory.async,
|
|
132
|
+
multi: true
|
|
72
133
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
DEFAULT_MESSAGING_INSTANCE_PROVIDER,
|
|
90
|
-
MESSAGING_INSTANCES_PROVIDER,
|
|
91
|
-
{
|
|
92
|
-
provide: APP_INITIALIZER,
|
|
93
|
-
useValue: isMessagingSupportedFactory.async,
|
|
94
|
-
multi: true,
|
|
95
|
-
},
|
|
96
|
-
]
|
|
97
|
-
}]
|
|
98
|
-
}], ctorParameters: () => [] });
|
|
134
|
+
] });
|
|
135
|
+
};
|
|
136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.3", ngImport: i0, type: MessagingModule, decorators: [{
|
|
137
|
+
type: NgModule,
|
|
138
|
+
args: [{
|
|
139
|
+
providers: [
|
|
140
|
+
DEFAULT_MESSAGING_INSTANCE_PROVIDER,
|
|
141
|
+
MESSAGING_INSTANCES_PROVIDER,
|
|
142
|
+
{
|
|
143
|
+
provide: APP_INITIALIZER,
|
|
144
|
+
useValue: isMessagingSupportedFactory.async,
|
|
145
|
+
multi: true
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}]
|
|
149
|
+
}], ctorParameters: () => [] });
|
|
99
150
|
function provideMessaging(fn, ...deps) {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
151
|
+
registerVersion("angularfire", VERSION.full, "fcm");
|
|
152
|
+
return makeEnvironmentProviders([
|
|
153
|
+
DEFAULT_MESSAGING_INSTANCE_PROVIDER,
|
|
154
|
+
MESSAGING_INSTANCES_PROVIDER,
|
|
155
|
+
{
|
|
156
|
+
provide: APP_INITIALIZER,
|
|
157
|
+
useValue: isMessagingSupportedFactory.async,
|
|
158
|
+
multi: true
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
provide: PROVIDED_MESSAGING_INSTANCES,
|
|
162
|
+
useFactory: messagingInstanceFactory(fn),
|
|
163
|
+
multi: true,
|
|
164
|
+
deps: [
|
|
165
|
+
NgZone,
|
|
166
|
+
Injector,
|
|
167
|
+
ɵAngularFireSchedulers,
|
|
168
|
+
FirebaseApps,
|
|
169
|
+
...deps
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
]);
|
|
122
173
|
}
|
|
123
174
|
|
|
124
|
-
|
|
175
|
+
// firebase.mjs
|
|
176
|
+
var firebase_exports = {};
|
|
177
|
+
__export(firebase_exports, {
|
|
178
|
+
deleteToken: () => deleteToken,
|
|
179
|
+
getMessaging: () => getMessaging,
|
|
180
|
+
getToken: () => getToken,
|
|
181
|
+
isSupported: () => isSupported2,
|
|
182
|
+
onMessage: () => onMessage
|
|
183
|
+
});
|
|
125
184
|
|
|
126
|
-
//
|
|
127
|
-
|
|
128
|
-
const getMessaging = ɵzoneWrap(getMessaging$1, true);
|
|
129
|
-
const getToken = ɵzoneWrap(getToken$1, true);
|
|
130
|
-
const onMessage = ɵzoneWrap(onMessage$1, false);
|
|
185
|
+
// overrides.mjs
|
|
186
|
+
var isSupported2 = isMessagingSupportedFactory.async;
|
|
131
187
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
188
|
+
// firebase.mjs
|
|
189
|
+
__reExport(firebase_exports, messaging_star);
|
|
190
|
+
import * as messaging_star from "firebase/messaging";
|
|
191
|
+
import { ɵzoneWrap } from "@angular/fire";
|
|
192
|
+
import { deleteToken as _deleteToken, getMessaging as _getMessaging, getToken as _getToken, onMessage as _onMessage } from "firebase/messaging";
|
|
193
|
+
var deleteToken = ɵzoneWrap(_deleteToken, true);
|
|
194
|
+
var getMessaging = ɵzoneWrap(_getMessaging, true);
|
|
195
|
+
var getToken = ɵzoneWrap(_getToken, true);
|
|
196
|
+
var onMessage = ɵzoneWrap(_onMessage, false);
|
|
135
197
|
|
|
136
|
-
|
|
198
|
+
// public_api.mjs
|
|
199
|
+
__reExport(public_api_exports, firebase_exports);
|
|
200
|
+
|
|
201
|
+
// angular-fire-messaging.mjs
|
|
202
|
+
__reExport(angular_fire_messaging_exports, public_api_exports);
|
|
203
|
+
export {
|
|
204
|
+
Messaging,
|
|
205
|
+
MessagingInstances,
|
|
206
|
+
MessagingModule,
|
|
207
|
+
deleteToken,
|
|
208
|
+
getMessaging,
|
|
209
|
+
getToken,
|
|
210
|
+
isSupported2 as isSupported,
|
|
211
|
+
messagingInstance$,
|
|
212
|
+
onMessage,
|
|
213
|
+
provideMessaging
|
|
214
|
+
};
|
|
137
215
|
//# sourceMappingURL=angular-fire-messaging.mjs.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/messaging/angular-fire-messaging.ts", "../../../src/messaging/public_api.ts", "../../../src/messaging/messaging.ts", "../../../src/messaging/is-messaging-supported-factory.ts", "../../../src/messaging/messaging.module.ts", "../../../src/messaging/firebase.ts", "../../../src/messaging/overrides.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n", "export { MessagingInstances, Messaging, messagingInstance$ } from './messaging';\nexport { provideMessaging, MessagingModule } from './messaging.module';\nexport * from './firebase';\n", "import { ɵgetAllInstancesOf } from '@angular/fire';\nimport { Messaging as FirebaseMessaging } from 'firebase/messaging';\nimport { from, timer } from 'rxjs';\nimport { concatMap, distinct } from 'rxjs/operators';\n\n// see notes in core/firebase.app.module.ts for why we're building the class like this\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface Messaging extends FirebaseMessaging {}\n\nexport class Messaging {\n constructor(messaging: FirebaseMessaging) {\n return messaging;\n }\n}\n\nexport const MESSAGING_PROVIDER_NAME = 'messaging';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface MessagingInstances extends Array<FirebaseMessaging> {}\n\nexport class MessagingInstances {\n constructor() {\n return ɵgetAllInstancesOf<FirebaseMessaging>(MESSAGING_PROVIDER_NAME);\n }\n}\n\nexport const messagingInstance$ = timer(0, 300).pipe(\n concatMap(() => from(ɵgetAllInstancesOf<FirebaseMessaging>(MESSAGING_PROVIDER_NAME))),\n distinct(),\n);\n", "import { ɵisSupportedError } from '@angular/fire';\nimport { isSupported } from 'firebase/messaging';\n\nconst isMessagingSupportedPromiseSymbol = '__angularfire_symbol__messagingIsSupported';\nconst isMessagingSupportedValueSymbol = '__angularfire_symbol__messagingIsSupportedValue';\n\nglobalThis[isMessagingSupportedPromiseSymbol] ||= isSupported().then(it =>\n globalThis[isMessagingSupportedValueSymbol] = it\n).catch(() =>\n globalThis[isMessagingSupportedValueSymbol] = false\n);\n\nexport const isMessagingSupportedFactory = {\n async: () => globalThis[isMessagingSupportedPromiseSymbol],\n sync: () => {\n const ret = globalThis[isMessagingSupportedValueSymbol];\n if (ret === undefined) { throw new Error(ɵisSupportedError('Messaging')); }\n return ret;\n }\n};\n", "import {\n APP_INITIALIZER, EnvironmentProviders,\n InjectionToken,\n Injector,\n NgModule,\n NgZone,\n Optional,\n makeEnvironmentProviders,\n} from '@angular/core';\nimport { VERSION, ɵAngularFireSchedulers, ɵgetDefaultInstanceOf } from '@angular/fire';\nimport { FirebaseApp, FirebaseApps } from '@angular/fire/app';\nimport { registerVersion } from 'firebase/app';\nimport { Messaging as FirebaseMessaging } from 'firebase/messaging';\nimport { isMessagingSupportedFactory } from './is-messaging-supported-factory';\nimport { MESSAGING_PROVIDER_NAME, Messaging, MessagingInstances } from './messaging';\n\nconst PROVIDED_MESSAGING_INSTANCES = new InjectionToken<Messaging[]>('angularfire2.messaging-instances');\n\nexport function defaultMessagingInstanceFactory(provided: FirebaseMessaging[]|undefined, defaultApp: FirebaseApp) {\n if (!isMessagingSupportedFactory.sync()) { return null; }\n const defaultMessaging = ɵgetDefaultInstanceOf<FirebaseMessaging>(MESSAGING_PROVIDER_NAME, provided, defaultApp);\n return defaultMessaging && new Messaging(defaultMessaging);\n}\n\nexport function messagingInstanceFactory(fn: (injector: Injector) => FirebaseMessaging) {\n return (zone: NgZone, injector: Injector) => {\n if (!isMessagingSupportedFactory.sync()) { return null; }\n const messaging = zone.runOutsideAngular(() => fn(injector));\n return new Messaging(messaging);\n };\n}\n\nconst MESSAGING_INSTANCES_PROVIDER = {\n provide: MessagingInstances,\n deps: [\n [new Optional(), PROVIDED_MESSAGING_INSTANCES ],\n ]\n};\n\nconst DEFAULT_MESSAGING_INSTANCE_PROVIDER = {\n provide: Messaging,\n useFactory: defaultMessagingInstanceFactory,\n deps: [\n [new Optional(), PROVIDED_MESSAGING_INSTANCES ],\n FirebaseApp,\n ]\n};\n\n@NgModule({\n providers: [\n DEFAULT_MESSAGING_INSTANCE_PROVIDER,\n MESSAGING_INSTANCES_PROVIDER,\n {\n provide: APP_INITIALIZER,\n useValue: isMessagingSupportedFactory.async,\n multi: true,\n },\n ]\n})\nexport class MessagingModule {\n constructor() {\n registerVersion('angularfire', VERSION.full, 'fcm');\n }\n}\n\nexport function provideMessaging(fn: (injector: Injector) => FirebaseMessaging, ...deps: any[]): EnvironmentProviders {\n registerVersion('angularfire', VERSION.full, 'fcm');\n\n return makeEnvironmentProviders([\n DEFAULT_MESSAGING_INSTANCE_PROVIDER,\n MESSAGING_INSTANCES_PROVIDER,\n {\n provide: APP_INITIALIZER,\n useValue: isMessagingSupportedFactory.async,\n multi: true,\n },\n {\n provide: PROVIDED_MESSAGING_INSTANCES,\n useFactory: messagingInstanceFactory(fn),\n multi: true,\n deps: [\n NgZone,\n Injector,\n ɵAngularFireSchedulers,\n FirebaseApps,\n ...deps,\n ],\n }\n ]);\n}\n", "// DO NOT MODIFY, this file is autogenerated by tools/build.ts\nexport * from 'firebase/messaging';\nimport { ɵzoneWrap } from '@angular/fire';\nimport {\n deleteToken as _deleteToken,\n getMessaging as _getMessaging,\n getToken as _getToken,\n onMessage as _onMessage\n} from 'firebase/messaging';\n\nexport {\n isSupported\n} from './overrides';\n\nexport const deleteToken = ɵzoneWrap(_deleteToken, true);\nexport const getMessaging = ɵzoneWrap(_getMessaging, true);\nexport const getToken = ɵzoneWrap(_getToken, true);\nexport const onMessage = ɵzoneWrap(_onMessage, false);\n", "import { isMessagingSupportedFactory } from './is-messaging-supported-factory';\n\nexport const isSupported = isMessagingSupportedFactory.async;\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["isSupported", "isSupported", "isSupported", "isSupported"]
|
|
7
|
+
}
|