@rxap/firebase 21.0.1 → 22.0.0-dev.1
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/CHANGELOG.md +31 -0
- package/README.md +1 -1
- package/compodoc/architecture.html +222 -0
- package/compodoc/changelog.html +75 -5
- package/compodoc/dependencies.html +104 -27
- package/compodoc/index.html +47 -6
- package/compodoc/injectables/AppCheckService.html +121 -116
- package/compodoc/injectables/RxapFirebaseMessagingService.html +198 -59
- package/compodoc/interceptors/FirebaseAppCheckHttpInterceptor.html +89 -34
- package/compodoc/interfaces/FirebaseConfig.html +114 -64
- package/compodoc/interfaces/Message.html +256 -159
- package/compodoc/js/architecture-graph.js +288 -0
- package/compodoc/js/libs/bootstrap-native.js +4 -2
- package/compodoc/js/libs/jszip.min.js +13 -0
- package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
- package/compodoc/js/libs/tablesort.min.js +3 -3
- package/compodoc/js/libs/tablesort.number.min.js +3 -3
- package/compodoc/js/libs/vis-network.min.js +78 -0
- package/compodoc/js/menu-wc.js +25 -12
- package/compodoc/js/menu.js +10 -11
- package/compodoc/js/routes/routes_index.js +1 -0
- package/compodoc/js/routes.js +142 -34
- package/compodoc/js/search/search-lunr.js +6 -8
- package/compodoc/js/search/search.js +118 -66
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/js/tabs.js +98 -15
- package/compodoc/js/tree.js +44 -7
- package/compodoc/license.html +48 -6
- package/compodoc/llms.txt +215 -0
- package/compodoc/miscellaneous/functions.html +860 -117
- package/compodoc/miscellaneous/variables.html +614 -127
- package/compodoc/modules.html +44 -3
- package/compodoc/overview.html +54 -3
- package/compodoc/properties.html +45 -4
- package/compodoc/routes.html +227 -0
- package/compodoc/styles/compodoc.css +365 -44
- package/compodoc/styles/dark.css +16 -0
- package/compodoc/template-playground/default-templates.json +192 -0
- package/compodoc/template-playground/hbs-render.service.ts +217 -0
- package/compodoc/template-playground/main.ts +9 -0
- package/compodoc/template-playground/template-editor.service.ts +173 -0
- package/compodoc/template-playground/template-playground.component.ts +614 -0
- package/compodoc/template-playground/template-playground.module.ts +29 -0
- package/compodoc/template-playground/zip-export.service.ts +86 -0
- package/compodoc/template-playground-app/app.js +1389 -0
- package/compodoc/template-playground-app/index.html +462 -0
- package/docs/documentation.json +3419 -1369
- package/docs/html/assets/highlight.css +1 -1
- package/docs/html/assets/icons.js +1 -1
- package/docs/html/assets/icons.svg +1 -1
- package/docs/html/assets/main.js +5 -5
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/assets/style.css +265 -228
- package/docs/html/classes/AppCheckService.html +106 -5
- package/docs/html/classes/FirebaseAppCheckHttpInterceptor.html +107 -8
- package/docs/html/classes/RxapFirebaseMessagingService.html +123 -7
- package/docs/html/functions/AnalyticsEnabledFactory.html +42 -1
- package/docs/html/functions/AppCheckEnabledFactory.html +42 -1
- package/docs/html/functions/AppCheckSiteKeyFactory.html +42 -1
- package/docs/html/functions/AppIsTokenAutoRefreshEnabledFactory.html +42 -1
- package/docs/html/functions/AuthLanguageCodeFactory.html +42 -1
- package/docs/html/functions/AuthPersistenceFactory.html +42 -1
- package/docs/html/functions/AuthSettingsFactory.html +42 -1
- package/docs/html/functions/AuthTenantIdFactory.html +42 -1
- package/docs/html/functions/AuthUseDeviceLanguageFactory.html +42 -1
- package/docs/html/functions/DataCollectionEnabledFactory.html +42 -1
- package/docs/html/functions/EnablePersistenceTokenFactory.html +42 -1
- package/docs/html/functions/FirebaseAnalyticsFactory.html +45 -0
- package/docs/html/functions/FirebaseAppCheckFactory.html +47 -0
- package/docs/html/functions/FirebaseAppFactory.html +45 -0
- package/docs/html/functions/FirebaseAuthFactory.html +43 -0
- package/docs/html/functions/FirebaseFirestoreFactory.html +43 -0
- package/docs/html/functions/FirebaseFunctionsFactory.html +43 -0
- package/docs/html/functions/FirebaseMessagingFactory.html +44 -0
- package/docs/html/functions/FirebaseNameOrConfigTokenFactory.html +42 -1
- package/docs/html/functions/FirebaseOptionsTokenFactory.html +42 -1
- package/docs/html/functions/FirebasePerformanceFactory.html +43 -0
- package/docs/html/functions/FirebaseStorageFactory.html +43 -0
- package/docs/html/functions/FirestoreSettingsTokenFactory.html +42 -1
- package/docs/html/functions/FunctionsNewOriginBehaviorFactory.html +42 -1
- package/docs/html/functions/FunctionsOriginFactory.html +42 -1
- package/docs/html/functions/FunctionsRegionFactory.html +42 -1
- package/docs/html/functions/GetAnalyticsAppName.html +42 -1
- package/docs/html/functions/InstrumentationEnabledFactory.html +42 -1
- package/docs/html/functions/PersistenceSettingsTokenFactory.html +42 -1
- package/docs/html/functions/ServiceWorkerFactory.html +38 -1
- package/docs/html/functions/StorageBucketFactory.html +42 -1
- package/docs/html/functions/StorageMaxOperationRetryTimeFactory.html +42 -1
- package/docs/html/functions/StorageMaxUploadRetryTimeFactory.html +42 -1
- package/docs/html/functions/UseAuthEmulatorFactory.html +42 -1
- package/docs/html/functions/UseFirestoreEmulatorFactory.html +42 -1
- package/docs/html/functions/UseFunctionsEmulatorFactory.html +42 -1
- package/docs/html/functions/VapidKeyFactory.html +42 -1
- package/docs/html/functions/provideFirebaseAppCheck.html +40 -0
- package/docs/html/functions/provideFirebaseStorageEmulator.html +40 -0
- package/docs/html/hierarchy.html +29 -0
- package/docs/html/index.html +41 -5
- package/docs/html/interfaces/FirebaseConfig.html +123 -9
- package/docs/html/interfaces/Message.html +67 -4
- package/docs/html/modules.html +48 -1
- package/docs/html/variables/APP_CHECK_ENABLED.html +33 -1
- package/docs/html/variables/APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED.html +33 -1
- package/docs/html/variables/APP_CHECK_SITE_KEY.html +33 -1
- package/docs/html/variables/FIREBASE_ANALYTICS.html +35 -0
- package/docs/html/variables/FIREBASE_ANALYTICS_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_APP.html +33 -0
- package/docs/html/variables/FIREBASE_APP_CHECK.html +35 -0
- package/docs/html/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR.html +33 -1
- package/docs/html/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN.html +33 -1
- package/docs/html/variables/FIREBASE_APP_CHECK_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_APP_NAME.html +35 -0
- package/docs/html/variables/FIREBASE_APP_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_AUTH.html +33 -0
- package/docs/html/variables/FIREBASE_AUTH_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_FIRESTORE.html +33 -0
- package/docs/html/variables/FIREBASE_FIRESTORE_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_FUNCTIONS.html +33 -0
- package/docs/html/variables/FIREBASE_FUNCTIONS_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_MESSAGING.html +35 -0
- package/docs/html/variables/FIREBASE_MESSAGING_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_MESSAGING_VAPID_KEY.html +33 -0
- package/docs/html/variables/FIREBASE_OPTIONS.html +35 -0
- package/docs/html/variables/FIREBASE_PERFORMANCE.html +33 -0
- package/docs/html/variables/FIREBASE_PERFORMANCE_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_STORAGE.html +33 -0
- package/docs/html/variables/FIREBASE_STORAGE_PROVIDERS.html +33 -1
- package/docs/html/variables/RXAP_REQUEST_CLOUD_MESSAGING_TOKEN.html +33 -1
- package/docs/html/variables/USE_STORAGE_EMULATOR.html +33 -1
- package/docs/html/variables/provideAngularFireAppCheck.html +47 -0
- package/docs/html/variables/provideAngularFireStorageEmulator.html +47 -0
- package/docs/markdown/README.md +2 -2
- package/docs/markdown/classes/AppCheckService.md +10 -12
- package/docs/markdown/classes/FirebaseAppCheckHttpInterceptor.md +9 -9
- package/docs/markdown/classes/RxapFirebaseMessagingService.md +23 -15
- package/docs/markdown/functions/AnalyticsEnabledFactory.md +2 -2
- package/docs/markdown/functions/AppCheckEnabledFactory.md +2 -2
- package/docs/markdown/functions/AppCheckSiteKeyFactory.md +2 -2
- package/docs/markdown/functions/AppIsTokenAutoRefreshEnabledFactory.md +2 -2
- package/docs/markdown/functions/AuthLanguageCodeFactory.md +2 -2
- package/docs/markdown/functions/AuthPersistenceFactory.md +2 -2
- package/docs/markdown/functions/AuthSettingsFactory.md +2 -2
- package/docs/markdown/functions/AuthTenantIdFactory.md +2 -2
- package/docs/markdown/functions/AuthUseDeviceLanguageFactory.md +2 -2
- package/docs/markdown/functions/DataCollectionEnabledFactory.md +2 -2
- package/docs/markdown/functions/EnablePersistenceTokenFactory.md +2 -2
- package/docs/markdown/functions/FirebaseAnalyticsFactory.md +27 -0
- package/docs/markdown/functions/FirebaseAppCheckFactory.md +35 -0
- package/docs/markdown/functions/FirebaseAppFactory.md +27 -0
- package/docs/markdown/functions/FirebaseAuthFactory.md +25 -0
- package/docs/markdown/functions/FirebaseFirestoreFactory.md +25 -0
- package/docs/markdown/functions/FirebaseFunctionsFactory.md +25 -0
- package/docs/markdown/functions/FirebaseMessagingFactory.md +23 -0
- package/docs/markdown/functions/FirebaseNameOrConfigTokenFactory.md +2 -2
- package/docs/markdown/functions/FirebaseOptionsTokenFactory.md +2 -2
- package/docs/markdown/functions/FirebasePerformanceFactory.md +25 -0
- package/docs/markdown/functions/FirebaseStorageFactory.md +25 -0
- package/docs/markdown/functions/FirestoreSettingsTokenFactory.md +2 -2
- package/docs/markdown/functions/FunctionsNewOriginBehaviorFactory.md +2 -2
- package/docs/markdown/functions/FunctionsOriginFactory.md +2 -2
- package/docs/markdown/functions/FunctionsRegionFactory.md +2 -2
- package/docs/markdown/functions/GetAnalyticsAppName.md +4 -4
- package/docs/markdown/functions/InstrumentationEnabledFactory.md +2 -2
- package/docs/markdown/functions/PersistenceSettingsTokenFactory.md +2 -2
- package/docs/markdown/functions/ServiceWorkerFactory.md +4 -4
- package/docs/markdown/functions/StorageBucketFactory.md +2 -2
- package/docs/markdown/functions/StorageMaxOperationRetryTimeFactory.md +2 -2
- package/docs/markdown/functions/StorageMaxUploadRetryTimeFactory.md +2 -2
- package/docs/markdown/functions/UseAuthEmulatorFactory.md +2 -2
- package/docs/markdown/functions/UseFirestoreEmulatorFactory.md +2 -2
- package/docs/markdown/functions/UseFunctionsEmulatorFactory.md +2 -2
- package/docs/markdown/functions/VapidKeyFactory.md +2 -2
- package/docs/markdown/functions/provideFirebaseAppCheck.md +17 -0
- package/docs/markdown/functions/provideFirebaseStorageEmulator.md +17 -0
- package/docs/markdown/globals.md +27 -4
- package/docs/markdown/interfaces/FirebaseConfig.md +88 -84
- package/docs/markdown/interfaces/Message.md +5 -5
- package/docs/markdown/variables/APP_CHECK_ENABLED.md +2 -2
- package/docs/markdown/variables/APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED.md +2 -2
- package/docs/markdown/variables/APP_CHECK_SITE_KEY.md +2 -2
- package/docs/markdown/variables/FIREBASE_ANALYTICS.md +13 -0
- package/docs/markdown/variables/FIREBASE_ANALYTICS_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_APP.md +11 -0
- package/docs/markdown/variables/FIREBASE_APP_CHECK.md +13 -0
- package/docs/markdown/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR.md +2 -2
- package/docs/markdown/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN.md +2 -2
- package/docs/markdown/variables/FIREBASE_APP_CHECK_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_APP_NAME.md +13 -0
- package/docs/markdown/variables/FIREBASE_APP_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_AUTH.md +11 -0
- package/docs/markdown/variables/FIREBASE_AUTH_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_FIRESTORE.md +11 -0
- package/docs/markdown/variables/FIREBASE_FIRESTORE_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_FUNCTIONS.md +11 -0
- package/docs/markdown/variables/FIREBASE_FUNCTIONS_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_MESSAGING.md +13 -0
- package/docs/markdown/variables/FIREBASE_MESSAGING_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_MESSAGING_VAPID_KEY.md +11 -0
- package/docs/markdown/variables/FIREBASE_OPTIONS.md +13 -0
- package/docs/markdown/variables/FIREBASE_PERFORMANCE.md +11 -0
- package/docs/markdown/variables/FIREBASE_PERFORMANCE_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_STORAGE.md +11 -0
- package/docs/markdown/variables/FIREBASE_STORAGE_PROVIDERS.md +2 -2
- package/docs/markdown/variables/RXAP_REQUEST_CLOUD_MESSAGING_TOKEN.md +2 -2
- package/docs/markdown/variables/USE_STORAGE_EMULATOR.md +2 -2
- package/docs/markdown/variables/provideAngularFireAppCheck.md +21 -0
- package/docs/markdown/variables/provideAngularFireStorageEmulator.md +21 -0
- package/docs/wiki/Class.AppCheckService.md +9 -11
- package/docs/wiki/Class.FirebaseAppCheckHttpInterceptor.md +8 -8
- package/docs/wiki/Class.RxapFirebaseMessagingService.md +22 -14
- package/docs/wiki/Function.AnalyticsEnabledFactory.md +1 -1
- package/docs/wiki/Function.AppCheckEnabledFactory.md +1 -1
- package/docs/wiki/Function.AppCheckSiteKeyFactory.md +1 -1
- package/docs/wiki/Function.AppIsTokenAutoRefreshEnabledFactory.md +1 -1
- package/docs/wiki/Function.AuthLanguageCodeFactory.md +1 -1
- package/docs/wiki/Function.AuthPersistenceFactory.md +1 -1
- package/docs/wiki/Function.AuthSettingsFactory.md +1 -1
- package/docs/wiki/Function.AuthTenantIdFactory.md +1 -1
- package/docs/wiki/Function.AuthUseDeviceLanguageFactory.md +1 -1
- package/docs/wiki/Function.DataCollectionEnabledFactory.md +1 -1
- package/docs/wiki/Function.EnablePersistenceTokenFactory.md +1 -1
- package/docs/wiki/Function.FirebaseAnalyticsFactory.md +23 -0
- package/docs/wiki/Function.FirebaseAppCheckFactory.md +31 -0
- package/docs/wiki/Function.FirebaseAppFactory.md +23 -0
- package/docs/wiki/Function.FirebaseAuthFactory.md +21 -0
- package/docs/wiki/Function.FirebaseFirestoreFactory.md +21 -0
- package/docs/wiki/Function.FirebaseFunctionsFactory.md +21 -0
- package/docs/wiki/Function.FirebaseMessagingFactory.md +19 -0
- package/docs/wiki/Function.FirebaseNameOrConfigTokenFactory.md +1 -1
- package/docs/wiki/Function.FirebaseOptionsTokenFactory.md +1 -1
- package/docs/wiki/Function.FirebasePerformanceFactory.md +21 -0
- package/docs/wiki/Function.FirebaseStorageFactory.md +21 -0
- package/docs/wiki/Function.FirestoreSettingsTokenFactory.md +1 -1
- package/docs/wiki/Function.FunctionsNewOriginBehaviorFactory.md +1 -1
- package/docs/wiki/Function.FunctionsOriginFactory.md +1 -1
- package/docs/wiki/Function.FunctionsRegionFactory.md +1 -1
- package/docs/wiki/Function.GetAnalyticsAppName.md +3 -3
- package/docs/wiki/Function.InstrumentationEnabledFactory.md +1 -1
- package/docs/wiki/Function.PersistenceSettingsTokenFactory.md +1 -1
- package/docs/wiki/Function.ServiceWorkerFactory.md +3 -3
- package/docs/wiki/Function.StorageBucketFactory.md +1 -1
- package/docs/wiki/Function.StorageMaxOperationRetryTimeFactory.md +1 -1
- package/docs/wiki/Function.StorageMaxUploadRetryTimeFactory.md +1 -1
- package/docs/wiki/Function.UseAuthEmulatorFactory.md +1 -1
- package/docs/wiki/Function.UseFirestoreEmulatorFactory.md +1 -1
- package/docs/wiki/Function.UseFunctionsEmulatorFactory.md +1 -1
- package/docs/wiki/Function.VapidKeyFactory.md +1 -1
- package/docs/wiki/Function.provideFirebaseAppCheck.md +13 -0
- package/docs/wiki/Function.provideFirebaseStorageEmulator.md +13 -0
- package/docs/wiki/Home.md +1 -1
- package/docs/wiki/Interface.FirebaseConfig.md +87 -83
- package/docs/wiki/Interface.Message.md +4 -4
- package/docs/wiki/Variable.APP_CHECK_ENABLED.md +1 -1
- package/docs/wiki/Variable.APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED.md +1 -1
- package/docs/wiki/Variable.APP_CHECK_SITE_KEY.md +1 -1
- package/docs/wiki/Variable.FIREBASE_ANALYTICS.md +9 -0
- package/docs/wiki/Variable.FIREBASE_ANALYTICS_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_APP.md +7 -0
- package/docs/wiki/Variable.FIREBASE_APP_CHECK.md +9 -0
- package/docs/wiki/Variable.FIREBASE_APP_CHECK_HTTP_INTERCEPTOR.md +1 -1
- package/docs/wiki/Variable.FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN.md +1 -1
- package/docs/wiki/Variable.FIREBASE_APP_CHECK_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_APP_NAME.md +9 -0
- package/docs/wiki/Variable.FIREBASE_APP_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_AUTH.md +7 -0
- package/docs/wiki/Variable.FIREBASE_AUTH_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_FIRESTORE.md +7 -0
- package/docs/wiki/Variable.FIREBASE_FIRESTORE_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_FUNCTIONS.md +7 -0
- package/docs/wiki/Variable.FIREBASE_FUNCTIONS_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_MESSAGING.md +9 -0
- package/docs/wiki/Variable.FIREBASE_MESSAGING_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_MESSAGING_VAPID_KEY.md +7 -0
- package/docs/wiki/Variable.FIREBASE_OPTIONS.md +9 -0
- package/docs/wiki/Variable.FIREBASE_PERFORMANCE.md +7 -0
- package/docs/wiki/Variable.FIREBASE_PERFORMANCE_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_STORAGE.md +7 -0
- package/docs/wiki/Variable.FIREBASE_STORAGE_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.RXAP_REQUEST_CLOUD_MESSAGING_TOKEN.md +1 -1
- package/docs/wiki/Variable.USE_STORAGE_EMULATOR.md +1 -1
- package/docs/wiki/Variable.provideAngularFireAppCheck.md +17 -0
- package/docs/wiki/Variable.provideAngularFireStorageEmulator.md +17 -0
- package/docs/wiki/_Sidebar.md +25 -2
- package/docs/wiki/globals.md +26 -3
- package/fesm2022/rxap-firebase-auth.mjs +110 -97
- package/fesm2022/rxap-firebase-auth.mjs.map +1 -1
- package/fesm2022/rxap-firebase.mjs +399 -385
- package/fesm2022/rxap-firebase.mjs.map +1 -1
- package/package.json +16 -29
- package/types/rxap-firebase-auth.d.ts +36 -29
- package/types/rxap-firebase.d.ts +237 -185
- package/docs/html/functions/provideAngularFireAppCheck.html +0 -3
- package/docs/html/functions/provideAngularFireStorageEmulator.html +0 -3
- package/docs/markdown/functions/provideAngularFireAppCheck.md +0 -18
- package/docs/markdown/functions/provideAngularFireStorageEmulator.md +0 -18
- package/docs/wiki/Function.provideAngularFireAppCheck.md +0 -14
- package/docs/wiki/Function.provideAngularFireStorageEmulator.md +0 -14
|
@@ -61,6 +61,20 @@
|
|
|
61
61
|
}
|
|
62
62
|
toggleDarkMode(darkModeState);
|
|
63
63
|
</script>
|
|
64
|
+
<script>
|
|
65
|
+
// --- Iframe navigation tracking for Template Playground ---
|
|
66
|
+
function sendCurrentUrlToParent() {
|
|
67
|
+
if (window.parent && window.parent !== window) {
|
|
68
|
+
window.parent.postMessage({
|
|
69
|
+
type: 'compodoc-iframe-navigate',
|
|
70
|
+
url: window.location.pathname + window.location.hash
|
|
71
|
+
}, '*');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
window.addEventListener('hashchange', sendCurrentUrlToParent, false);
|
|
75
|
+
window.addEventListener('popstate', sendCurrentUrlToParent, false);
|
|
76
|
+
window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
|
|
77
|
+
</script>
|
|
64
78
|
|
|
65
79
|
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
66
80
|
<div class="d-flex">
|
|
@@ -70,7 +84,14 @@
|
|
|
70
84
|
</div>
|
|
71
85
|
|
|
72
86
|
<div class="xs-menu menu" id="mobile-menu">
|
|
73
|
-
<div id="book-search-input" role="search"
|
|
87
|
+
<div id="book-search-input" role="search">
|
|
88
|
+
<input type="text" placeholder="Type to search">
|
|
89
|
+
<button type="button"
|
|
90
|
+
class="search-input-clear"
|
|
91
|
+
aria-label="Clear search"
|
|
92
|
+
data-search-input-clear>×</button>
|
|
93
|
+
</div>
|
|
94
|
+
<compodoc-menu></compodoc-menu>
|
|
74
95
|
</div>
|
|
75
96
|
|
|
76
97
|
<div class="container-fluid main">
|
|
@@ -89,11 +110,20 @@
|
|
|
89
110
|
|
|
90
111
|
|
|
91
112
|
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
92
117
|
<ol class="breadcrumb">
|
|
93
118
|
<li class="breadcrumb-item">Injectables</li>
|
|
94
119
|
<li class="breadcrumb-item" >RxapFirebaseMessagingService</li>
|
|
95
120
|
</ol>
|
|
96
121
|
|
|
122
|
+
<div class="io-file io-file-path" data-compodoc="entity-file-path">
|
|
123
|
+
<span class="icon ion-ios-document" aria-hidden="true"></span>
|
|
124
|
+
<code>src/lib/firebase-messaging.service.ts</code>
|
|
125
|
+
</div>
|
|
126
|
+
|
|
97
127
|
<ul class="nav nav-tabs" role="tablist">
|
|
98
128
|
<li class="nav-item">
|
|
99
129
|
<a href="#info"
|
|
@@ -101,6 +131,12 @@
|
|
|
101
131
|
class="nav-link active"
|
|
102
132
|
role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
|
|
103
133
|
</li>
|
|
134
|
+
<li class="nav-item">
|
|
135
|
+
<a href="#api"
|
|
136
|
+
class="nav-link"
|
|
137
|
+
|
|
138
|
+
role="tab" id="api-tab" data-bs-toggle="tab" data-link="api">API</a>
|
|
139
|
+
</li>
|
|
104
140
|
<li class="nav-item">
|
|
105
141
|
<a href="#source"
|
|
106
142
|
class="nav-link"
|
|
@@ -111,71 +147,90 @@
|
|
|
111
147
|
|
|
112
148
|
<div class="tab-content">
|
|
113
149
|
<div class="tab-pane fade active in" id="info">
|
|
114
|
-
<p class="comment">
|
|
115
|
-
<h3>File</h3>
|
|
116
|
-
</p>
|
|
117
|
-
<p class="comment">
|
|
118
|
-
<code>src/lib/firebase-messaging.service.ts</code>
|
|
119
|
-
</p>
|
|
120
150
|
|
|
121
151
|
|
|
122
152
|
|
|
153
|
+
<section data-compodoc="block-metadata">
|
|
154
|
+
<h3>Metadata</h3>
|
|
155
|
+
<table class="table table-sm table-hover metadata">
|
|
156
|
+
<tbody>
|
|
157
|
+
<tr>
|
|
158
|
+
<td class="col-md-3">providedIn</td>
|
|
159
|
+
<td class="col-md-9"><code>root</code></td>
|
|
160
|
+
</tr>
|
|
161
|
+
</tbody>
|
|
162
|
+
</table>
|
|
163
|
+
</section>
|
|
164
|
+
|
|
123
165
|
|
|
166
|
+
</div>
|
|
124
167
|
|
|
168
|
+
<div class="tab-pane fade " id="api">
|
|
125
169
|
<section data-compodoc="block-index">
|
|
126
170
|
<h3 id="index">Index</h3>
|
|
127
|
-
|
|
128
|
-
|
|
171
|
+
<table class="table table-sm table-bordered index-table">
|
|
172
|
+
<tbody>
|
|
129
173
|
<tr>
|
|
130
|
-
<td class="col-md-
|
|
174
|
+
<td class="col-md-3">
|
|
131
175
|
<h6><b>Properties</b></h6>
|
|
132
176
|
</td>
|
|
133
|
-
|
|
134
|
-
<tr>
|
|
135
|
-
<td class="col-md-4">
|
|
177
|
+
<td class="col-md-9">
|
|
136
178
|
<ul class="index-list">
|
|
137
179
|
<li>
|
|
180
|
+
<span class="reference-badge reference-badge--property" aria-hidden="true">P</span>
|
|
138
181
|
<span class="modifier">Readonly</span>
|
|
139
182
|
<a href="#messaging" >messaging</a>
|
|
140
183
|
</li>
|
|
141
184
|
<li>
|
|
185
|
+
<span class="reference-badge reference-badge--property" aria-hidden="true">P</span>
|
|
142
186
|
<span class="modifier">Readonly</span>
|
|
143
187
|
<a href="#requestPermissionImminently" >requestPermissionImminently</a>
|
|
144
188
|
</li>
|
|
145
189
|
<li>
|
|
190
|
+
<span class="reference-badge reference-badge--property" aria-hidden="true">P</span>
|
|
146
191
|
<span class="modifier">Public</span>
|
|
147
192
|
<a href="#token$" >token$</a>
|
|
148
193
|
</li>
|
|
194
|
+
<li>
|
|
195
|
+
<span class="reference-badge reference-badge--property" aria-hidden="true">P</span>
|
|
196
|
+
<span class="modifier">Readonly</span>
|
|
197
|
+
<a href="#vapidKey" >vapidKey</a>
|
|
198
|
+
</li>
|
|
149
199
|
</ul>
|
|
150
200
|
</td>
|
|
151
201
|
</tr>
|
|
202
|
+
</tbody>
|
|
203
|
+
</table>
|
|
152
204
|
|
|
205
|
+
<table class="table table-sm table-bordered index-table">
|
|
206
|
+
<tbody>
|
|
153
207
|
<tr>
|
|
154
|
-
<td class="col-md-
|
|
208
|
+
<td class="col-md-3">
|
|
155
209
|
<h6><b>Methods</b></h6>
|
|
156
210
|
</td>
|
|
157
|
-
|
|
158
|
-
<tr>
|
|
159
|
-
<td class="col-md-4">
|
|
211
|
+
<td class="col-md-9">
|
|
160
212
|
<ul class="index-list">
|
|
161
213
|
<li>
|
|
214
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
162
215
|
<span class="modifier">Public</span>
|
|
216
|
+
<span class="modifier">Async</span>
|
|
163
217
|
<a href="#requestPermission" >requestPermission</a>
|
|
164
218
|
</li>
|
|
165
219
|
<li>
|
|
220
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
166
221
|
<span class="modifier">Public</span>
|
|
167
222
|
<a href="#showNotification" >showNotification</a>
|
|
168
223
|
</li>
|
|
169
224
|
</ul>
|
|
170
225
|
</td>
|
|
171
226
|
</tr>
|
|
227
|
+
</tbody>
|
|
228
|
+
</table>
|
|
172
229
|
|
|
173
230
|
|
|
174
231
|
|
|
175
232
|
|
|
176
233
|
|
|
177
|
-
</tbody>
|
|
178
|
-
</table>
|
|
179
234
|
</section>
|
|
180
235
|
|
|
181
236
|
<section data-compodoc="block-constructor">
|
|
@@ -189,7 +244,7 @@
|
|
|
189
244
|
</tr>
|
|
190
245
|
<tr>
|
|
191
246
|
<td class="col-md-4">
|
|
192
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
247
|
+
<div class="io-line">Defined in <a href="" data-line="32" class="link-to-prism">src/lib/firebase-messaging.service.ts:32</a></div>
|
|
193
248
|
</td>
|
|
194
249
|
</tr>
|
|
195
250
|
|
|
@@ -209,6 +264,7 @@
|
|
|
209
264
|
<a name="requestPermission"></a>
|
|
210
265
|
<span class="name">
|
|
211
266
|
<span class="modifier">Public</span>
|
|
267
|
+
<span class="modifier">Async</span>
|
|
212
268
|
<span ><b>requestPermission</b></span>
|
|
213
269
|
<a href="#requestPermission"><span class="icon ion-ios-link"></span></a>
|
|
214
270
|
</span>
|
|
@@ -224,8 +280,8 @@
|
|
|
224
280
|
|
|
225
281
|
<tr>
|
|
226
282
|
<td class="col-md-4">
|
|
227
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
228
|
-
class="link-to-prism">src/lib/firebase-messaging.service.ts:
|
|
283
|
+
<div class="io-line">Defined in <a href="" data-line="47"
|
|
284
|
+
class="link-to-prism">src/lib/firebase-messaging.service.ts:47</a></div>
|
|
229
285
|
</td>
|
|
230
286
|
</tr>
|
|
231
287
|
|
|
@@ -234,7 +290,7 @@
|
|
|
234
290
|
<td class="col-md-4">
|
|
235
291
|
|
|
236
292
|
<div class="io-description">
|
|
237
|
-
<b>Returns : </b>
|
|
293
|
+
<b>Returns : </b> <code>Promise<void></code>
|
|
238
294
|
|
|
239
295
|
</div>
|
|
240
296
|
</td>
|
|
@@ -263,8 +319,8 @@
|
|
|
263
319
|
|
|
264
320
|
<tr>
|
|
265
321
|
<td class="col-md-4">
|
|
266
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
267
|
-
class="link-to-prism">src/lib/firebase-messaging.service.ts:
|
|
322
|
+
<div class="io-line">Defined in <a href="" data-line="72"
|
|
323
|
+
class="link-to-prism">src/lib/firebase-messaging.service.ts:72</a></div>
|
|
268
324
|
</td>
|
|
269
325
|
</tr>
|
|
270
326
|
|
|
@@ -323,6 +379,7 @@
|
|
|
323
379
|
</tbody>
|
|
324
380
|
</table>
|
|
325
381
|
</section>
|
|
382
|
+
|
|
326
383
|
<section data-compodoc="block-properties">
|
|
327
384
|
|
|
328
385
|
<h3 id="inputs">
|
|
@@ -342,12 +399,18 @@
|
|
|
342
399
|
</tr>
|
|
343
400
|
<tr>
|
|
344
401
|
<td class="col-md-4">
|
|
345
|
-
<i>
|
|
402
|
+
<i>Type : </i> <code>unknown</code>
|
|
403
|
+
|
|
404
|
+
</td>
|
|
405
|
+
</tr>
|
|
406
|
+
<tr>
|
|
407
|
+
<td class="col-md-4">
|
|
408
|
+
<i>Default value : </i><code>inject(FIREBASE_MESSAGING, { optional: true }) ?? null</code>
|
|
346
409
|
</td>
|
|
347
410
|
</tr>
|
|
348
411
|
<tr>
|
|
349
412
|
<td class="col-md-4">
|
|
350
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
413
|
+
<div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">src/lib/firebase-messaging.service.ts:28</a></div>
|
|
351
414
|
</td>
|
|
352
415
|
</tr>
|
|
353
416
|
|
|
@@ -366,6 +429,12 @@
|
|
|
366
429
|
</span>
|
|
367
430
|
</td>
|
|
368
431
|
</tr>
|
|
432
|
+
<tr>
|
|
433
|
+
<td class="col-md-4">
|
|
434
|
+
<i>Type : </i> <code>unknown</code>
|
|
435
|
+
|
|
436
|
+
</td>
|
|
437
|
+
</tr>
|
|
369
438
|
<tr>
|
|
370
439
|
<td class="col-md-4">
|
|
371
440
|
<i>Default value : </i><code>inject(RXAP_REQUEST_CLOUD_MESSAGING_TOKEN, { optional: true }) ?? false</code>
|
|
@@ -373,7 +442,7 @@
|
|
|
373
442
|
</tr>
|
|
374
443
|
<tr>
|
|
375
444
|
<td class="col-md-4">
|
|
376
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
445
|
+
<div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/lib/firebase-messaging.service.ts:30</a></div>
|
|
377
446
|
</td>
|
|
378
447
|
</tr>
|
|
379
448
|
|
|
@@ -392,6 +461,12 @@
|
|
|
392
461
|
</span>
|
|
393
462
|
</td>
|
|
394
463
|
</tr>
|
|
464
|
+
<tr>
|
|
465
|
+
<td class="col-md-4">
|
|
466
|
+
<i>Type : </i> <code>unknown</code>
|
|
467
|
+
|
|
468
|
+
</td>
|
|
469
|
+
</tr>
|
|
395
470
|
<tr>
|
|
396
471
|
<td class="col-md-4">
|
|
397
472
|
<i>Default value : </i><code>new ReplaySubject<string | null>(1)</code>
|
|
@@ -399,7 +474,39 @@
|
|
|
399
474
|
</tr>
|
|
400
475
|
<tr>
|
|
401
476
|
<td class="col-md-4">
|
|
402
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
477
|
+
<div class="io-line">Defined in <a href="" data-line="32" class="link-to-prism">src/lib/firebase-messaging.service.ts:32</a></div>
|
|
478
|
+
</td>
|
|
479
|
+
</tr>
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
</tbody>
|
|
483
|
+
</table>
|
|
484
|
+
<table class="table table-sm table-bordered">
|
|
485
|
+
<tbody>
|
|
486
|
+
<tr>
|
|
487
|
+
<td class="col-md-4">
|
|
488
|
+
<a name="vapidKey"></a>
|
|
489
|
+
<span class="name">
|
|
490
|
+
<span class="modifier">Readonly</span>
|
|
491
|
+
<span ><b>vapidKey</b></span>
|
|
492
|
+
<a href="#vapidKey"><span class="icon ion-ios-link"></span></a>
|
|
493
|
+
</span>
|
|
494
|
+
</td>
|
|
495
|
+
</tr>
|
|
496
|
+
<tr>
|
|
497
|
+
<td class="col-md-4">
|
|
498
|
+
<i>Type : </i> <code>unknown</code>
|
|
499
|
+
|
|
500
|
+
</td>
|
|
501
|
+
</tr>
|
|
502
|
+
<tr>
|
|
503
|
+
<td class="col-md-4">
|
|
504
|
+
<i>Default value : </i><code>inject(FIREBASE_MESSAGING_VAPID_KEY, { optional: true }) ?? null</code>
|
|
505
|
+
</td>
|
|
506
|
+
</tr>
|
|
507
|
+
<tr>
|
|
508
|
+
<td class="col-md-4">
|
|
509
|
+
<div class="io-line">Defined in <a href="" data-line="29" class="link-to-prism">src/lib/firebase-messaging.service.ts:29</a></div>
|
|
403
510
|
</td>
|
|
404
511
|
</tr>
|
|
405
512
|
|
|
@@ -412,14 +519,20 @@
|
|
|
412
519
|
|
|
413
520
|
|
|
414
521
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
415
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
522
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
523
|
+
inject,
|
|
524
|
+
Injectable,
|
|
525
|
+
} from '@angular/core';
|
|
526
|
+
import {
|
|
527
|
+
getToken,
|
|
528
|
+
onMessage,
|
|
529
|
+
} from 'firebase/messaging';
|
|
416
530
|
import { ReplaySubject } from 'rxjs';
|
|
417
531
|
import {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
import { AngularFireMessaging } from '@angular/fire/compat/messaging';
|
|
532
|
+
FIREBASE_MESSAGING,
|
|
533
|
+
FIREBASE_MESSAGING_VAPID_KEY,
|
|
534
|
+
RXAP_REQUEST_CLOUD_MESSAGING_TOKEN,
|
|
535
|
+
} from './tokens';
|
|
423
536
|
|
|
424
537
|
export interface Message {
|
|
425
538
|
collapse_key: string;
|
|
@@ -433,38 +546,48 @@ export interface Message {
|
|
|
433
546
|
|
|
434
547
|
@Injectable({ providedIn: 'root' })
|
|
435
548
|
export class RxapFirebaseMessagingService {
|
|
436
|
-
readonly messaging = inject
|
|
549
|
+
readonly messaging = inject(FIREBASE_MESSAGING, { optional: true }) ?? null;
|
|
550
|
+
readonly vapidKey = inject(FIREBASE_MESSAGING_VAPID_KEY, { optional: true }) ?? null;
|
|
437
551
|
readonly requestPermissionImminently = inject(RXAP_REQUEST_CLOUD_MESSAGING_TOKEN, { optional: true }) ?? false;
|
|
438
552
|
|
|
439
553
|
public token$ = new ReplaySubject<string | null>(1);
|
|
440
554
|
|
|
441
555
|
constructor() {
|
|
442
|
-
this.messaging
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
),
|
|
450
|
-
)
|
|
451
|
-
.subscribe();
|
|
556
|
+
if (this.messaging) {
|
|
557
|
+
onMessage(this.messaging, message => {
|
|
558
|
+
if (message.notification?.title) {
|
|
559
|
+
this.showNotification(message.notification.title, message.notification.body ?? '');
|
|
560
|
+
}
|
|
561
|
+
});
|
|
562
|
+
}
|
|
452
563
|
if (this.requestPermissionImminently) {
|
|
453
|
-
this.requestPermission();
|
|
564
|
+
void this.requestPermission();
|
|
454
565
|
}
|
|
455
566
|
}
|
|
456
567
|
|
|
457
|
-
public requestPermission() {
|
|
568
|
+
public async requestPermission(): Promise<void> {
|
|
569
|
+
if (!this.messaging) {
|
|
570
|
+
console.warn('firebase cloud messaging is not supported in this environment');
|
|
571
|
+
return;
|
|
572
|
+
}
|
|
458
573
|
console.log('request notification permission');
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
574
|
+
try {
|
|
575
|
+
const permission = await Notification.requestPermission();
|
|
576
|
+
if (permission !== 'granted') {
|
|
577
|
+
throw new Error('notification permission is not granted');
|
|
578
|
+
}
|
|
579
|
+
const serviceWorkerRegistration = typeof navigator !== 'undefined' && navigator.serviceWorker ?
|
|
580
|
+
await navigator.serviceWorker.getRegistration() :
|
|
581
|
+
undefined;
|
|
582
|
+
const token = await getToken(this.messaging, {
|
|
583
|
+
vapidKey: this.vapidKey ?? undefined,
|
|
584
|
+
serviceWorkerRegistration,
|
|
585
|
+
});
|
|
586
|
+
console.info('cloud messaging permission is granted');
|
|
587
|
+
this.token$.next(token);
|
|
588
|
+
} catch (error) {
|
|
589
|
+
console.error('cloud messaging permission is denied', error);
|
|
590
|
+
}
|
|
468
591
|
}
|
|
469
592
|
|
|
470
593
|
public showNotification(title: string, body: string): void {
|
|
@@ -531,6 +654,24 @@ export class RxapFirebaseMessagingService {
|
|
|
531
654
|
|
|
532
655
|
<script>
|
|
533
656
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
657
|
+
var updateDarkModeSwitchOffset = function () {
|
|
658
|
+
var content = document.querySelector('.content');
|
|
659
|
+
var scrollbarWidth = 0;
|
|
660
|
+
|
|
661
|
+
if (content) {
|
|
662
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
document.documentElement.style.setProperty(
|
|
666
|
+
'--content-scrollbar-width',
|
|
667
|
+
scrollbarWidth + 'px'
|
|
668
|
+
);
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
updateDarkModeSwitchOffset();
|
|
672
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
673
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
674
|
+
|
|
534
675
|
checkToggle(darkModeState);
|
|
535
676
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
536
677
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -546,14 +687,12 @@ export class RxapFirebaseMessagingService {
|
|
|
546
687
|
<script src="../js/libs/lit-html.js"></script>
|
|
547
688
|
|
|
548
689
|
<script src="../js/menu-wc.js" defer></script>
|
|
549
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
550
690
|
|
|
551
691
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
552
692
|
|
|
553
693
|
<script src="../js/libs/es6-shim.min.js"></script>
|
|
554
694
|
<script src="../js/libs/EventDispatcher.js"></script>
|
|
555
695
|
<script src="../js/libs/promise.min.js"></script>
|
|
556
|
-
<script src="../js/libs/zepto.min.js"></script>
|
|
557
696
|
|
|
558
697
|
<script src="../js/compodoc.js"></script>
|
|
559
698
|
|