@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">
|
|
@@ -94,6 +115,10 @@
|
|
|
94
115
|
|
|
95
116
|
|
|
96
117
|
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
97
122
|
<ol class="breadcrumb">
|
|
98
123
|
<li class="breadcrumb-item">Interfaces</li>
|
|
99
124
|
<li class="breadcrumb-item"
|
|
@@ -101,6 +126,11 @@
|
|
|
101
126
|
Message</li>
|
|
102
127
|
</ol>
|
|
103
128
|
|
|
129
|
+
<div class="io-file io-file-path" data-compodoc="entity-file-path">
|
|
130
|
+
<span class="icon ion-ios-document" aria-hidden="true"></span>
|
|
131
|
+
<code>src/lib/firebase-messaging.service.ts</code>
|
|
132
|
+
</div>
|
|
133
|
+
|
|
104
134
|
<ul class="nav nav-tabs" role="tablist">
|
|
105
135
|
<li class="nav-item">
|
|
106
136
|
<a href="#info"
|
|
@@ -108,6 +138,12 @@
|
|
|
108
138
|
class="nav-link active"
|
|
109
139
|
role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
|
|
110
140
|
</li>
|
|
141
|
+
<li class="nav-item">
|
|
142
|
+
<a href="#api"
|
|
143
|
+
class="nav-link"
|
|
144
|
+
|
|
145
|
+
role="tab" id="api-tab" data-bs-toggle="tab" data-link="api">API</a>
|
|
146
|
+
</li>
|
|
111
147
|
<li class="nav-item">
|
|
112
148
|
<a href="#source"
|
|
113
149
|
class="nav-link"
|
|
@@ -118,169 +154,204 @@
|
|
|
118
154
|
|
|
119
155
|
<div class="tab-content">
|
|
120
156
|
<div class="tab-pane fade active in" id="info">
|
|
121
|
-
<p class="comment">
|
|
122
|
-
<h3>File</h3>
|
|
123
|
-
</p>
|
|
124
|
-
<p class="comment">
|
|
125
|
-
<code>src/lib/firebase-messaging.service.ts</code>
|
|
126
|
-
</p>
|
|
127
|
-
|
|
128
157
|
|
|
129
158
|
|
|
130
159
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
160
|
+
</div>
|
|
161
|
+
|
|
162
|
+
<div class="tab-pane fade " id="api"><section data-compodoc="block-index">
|
|
163
|
+
<h3 id="index">Index</h3>
|
|
164
|
+
<table class="table table-sm table-bordered index-table">
|
|
165
|
+
<tbody>
|
|
166
|
+
<tr>
|
|
167
|
+
<td class="col-md-3">
|
|
168
|
+
<h6><b>Properties</b></h6>
|
|
169
|
+
</td>
|
|
170
|
+
<td class="col-md-9">
|
|
171
|
+
<ul class="index-list">
|
|
172
|
+
<li>
|
|
173
|
+
<a href="#collapse_key" class="reference-link ">
|
|
174
|
+
<span class="reference-badge reference-badge--property" aria-hidden="true">P</span><span class="reference-link-label">collapse_key</span>
|
|
175
|
+
</a>
|
|
176
|
+
</li>
|
|
177
|
+
<li>
|
|
178
|
+
<a href="#from" class="reference-link ">
|
|
179
|
+
<span class="reference-badge reference-badge--property" aria-hidden="true">P</span><span class="reference-link-label">from</span>
|
|
180
|
+
</a>
|
|
181
|
+
</li>
|
|
182
|
+
<li>
|
|
183
|
+
<a href="#notification" class="reference-link ">
|
|
184
|
+
<span class="reference-badge reference-badge--property" aria-hidden="true">P</span><span class="reference-link-label">notification</span>
|
|
185
|
+
</a>
|
|
186
|
+
</li>
|
|
187
|
+
</ul>
|
|
188
|
+
</td>
|
|
189
|
+
</tr>
|
|
190
|
+
</tbody>
|
|
191
|
+
</table>
|
|
192
|
+
</section>
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
<section data-compodoc="block-properties">
|
|
197
|
+
<h3 id="inputs">Properties</h3>
|
|
198
|
+
<table class="table table-sm table-bordered">
|
|
134
199
|
<tbody>
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
>
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
</li>
|
|
149
|
-
<li>
|
|
150
|
-
<a href="#from"
|
|
151
|
-
>
|
|
152
|
-
from
|
|
153
|
-
</a>
|
|
154
|
-
</li>
|
|
155
|
-
<li>
|
|
156
|
-
<a href="#notification"
|
|
157
|
-
>
|
|
158
|
-
notification
|
|
159
|
-
</a>
|
|
160
|
-
</li>
|
|
161
|
-
</ul>
|
|
162
|
-
</td>
|
|
163
|
-
</tr>
|
|
164
|
-
</tbody>
|
|
165
|
-
</table>
|
|
166
|
-
</section>
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
<section data-compodoc="block-properties">
|
|
171
|
-
<h3 id="inputs">Properties</h3>
|
|
172
|
-
<table class="table table-sm table-bordered">
|
|
173
|
-
<tbody>
|
|
174
|
-
<tr>
|
|
175
|
-
<td class="col-md-4">
|
|
176
|
-
<a name="collapse_key"></a>
|
|
177
|
-
<span class="name "><b>collapse_key</b>
|
|
178
|
-
<a href="#collapse_key">
|
|
179
|
-
<span class="icon ion-ios-link"></span>
|
|
180
|
-
</a>
|
|
181
|
-
</span>
|
|
182
|
-
</td>
|
|
183
|
-
</tr>
|
|
184
|
-
<tr>
|
|
185
|
-
<td class="col-md-4">
|
|
186
|
-
<code>collapse_key: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
200
|
+
<tr>
|
|
201
|
+
<td class="col-md-4">
|
|
202
|
+
<a name="collapse_key"></a>
|
|
203
|
+
<span class="name "><b>collapse_key</b>
|
|
204
|
+
<a href="#collapse_key">
|
|
205
|
+
<span class="icon ion-ios-link"></span>
|
|
206
|
+
</a>
|
|
207
|
+
</span>
|
|
208
|
+
</td>
|
|
209
|
+
</tr>
|
|
210
|
+
<tr>
|
|
211
|
+
<td class="col-md-4">
|
|
212
|
+
<code>collapse_key: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
187
213
|
</code>
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
214
|
+
</td>
|
|
215
|
+
</tr>
|
|
191
216
|
|
|
192
|
-
<tr>
|
|
193
|
-
<td class="col-md-4">
|
|
194
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
195
217
|
|
|
196
|
-
|
|
197
|
-
|
|
218
|
+
<tr>
|
|
219
|
+
<td class="col-md-4">
|
|
220
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
198
221
|
|
|
222
|
+
</td>
|
|
223
|
+
</tr>
|
|
199
224
|
|
|
200
225
|
|
|
201
226
|
|
|
202
227
|
|
|
203
|
-
</tbody>
|
|
204
|
-
</table>
|
|
205
|
-
<table class="table table-sm table-bordered">
|
|
206
|
-
<tbody>
|
|
207
|
-
<tr>
|
|
208
|
-
<td class="col-md-4">
|
|
209
|
-
<a name="from"></a>
|
|
210
|
-
<span class="name "><b>from</b>
|
|
211
|
-
<a href="#from">
|
|
212
|
-
<span class="icon ion-ios-link"></span>
|
|
213
|
-
</a>
|
|
214
|
-
</span>
|
|
215
|
-
</td>
|
|
216
|
-
</tr>
|
|
217
|
-
<tr>
|
|
218
|
-
<td class="col-md-4">
|
|
219
|
-
<code>from: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
220
|
-
</code>
|
|
221
|
-
</td>
|
|
222
|
-
</tr>
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
<tr>
|
|
226
|
-
<td class="col-md-4">
|
|
227
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
228
|
-
|
|
229
|
-
</td>
|
|
230
|
-
</tr>
|
|
231
|
-
|
|
232
228
|
|
|
229
|
+
<tr>
|
|
230
|
+
<td class="col-md-4">
|
|
231
|
+
<div class="io-line">Defined in <a href="" data-line="17" class="link-to-prism">src/lib/firebase-messaging.service.ts:17</a></div>
|
|
232
|
+
</td>
|
|
233
|
+
</tr>
|
|
233
234
|
|
|
235
|
+
</tbody>
|
|
236
|
+
</table>
|
|
237
|
+
<table class="table table-sm table-bordered">
|
|
238
|
+
<tbody>
|
|
239
|
+
<tr>
|
|
240
|
+
<td class="col-md-4">
|
|
241
|
+
<a name="from"></a>
|
|
242
|
+
<span class="name "><b>from</b>
|
|
243
|
+
<a href="#from">
|
|
244
|
+
<span class="icon ion-ios-link"></span>
|
|
245
|
+
</a>
|
|
246
|
+
</span>
|
|
247
|
+
</td>
|
|
248
|
+
</tr>
|
|
249
|
+
<tr>
|
|
250
|
+
<td class="col-md-4">
|
|
251
|
+
<code>from: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
252
|
+
</code>
|
|
253
|
+
</td>
|
|
254
|
+
</tr>
|
|
234
255
|
|
|
235
256
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
<tbody>
|
|
240
|
-
<tr>
|
|
241
|
-
<td class="col-md-4">
|
|
242
|
-
<a name="notification"></a>
|
|
243
|
-
<span class="name "><b>notification</b>
|
|
244
|
-
<a href="#notification">
|
|
245
|
-
<span class="icon ion-ios-link"></span>
|
|
246
|
-
</a>
|
|
247
|
-
</span>
|
|
248
|
-
</td>
|
|
249
|
-
</tr>
|
|
250
|
-
<tr>
|
|
251
|
-
<td class="col-md-4">
|
|
252
|
-
<code>notification: <code>literal type</code>
|
|
253
|
-
</code>
|
|
254
|
-
</td>
|
|
255
|
-
</tr>
|
|
257
|
+
<tr>
|
|
258
|
+
<td class="col-md-4">
|
|
259
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
256
260
|
|
|
261
|
+
</td>
|
|
262
|
+
</tr>
|
|
257
263
|
|
|
258
|
-
<tr>
|
|
259
|
-
<td class="col-md-4">
|
|
260
|
-
<i>Type : </i> <code>literal type</code>
|
|
261
264
|
|
|
262
|
-
</td>
|
|
263
|
-
</tr>
|
|
264
265
|
|
|
265
266
|
|
|
266
267
|
|
|
268
|
+
<tr>
|
|
269
|
+
<td class="col-md-4">
|
|
270
|
+
<div class="io-line">Defined in <a href="" data-line="18" class="link-to-prism">src/lib/firebase-messaging.service.ts:18</a></div>
|
|
271
|
+
</td>
|
|
272
|
+
</tr>
|
|
267
273
|
|
|
274
|
+
</tbody>
|
|
275
|
+
</table>
|
|
276
|
+
<table class="table table-sm table-bordered">
|
|
277
|
+
<tbody>
|
|
278
|
+
<tr>
|
|
279
|
+
<td class="col-md-4">
|
|
280
|
+
<a name="notification"></a>
|
|
281
|
+
<span class="name "><b>notification</b>
|
|
282
|
+
<a href="#notification">
|
|
283
|
+
<span class="icon ion-ios-link"></span>
|
|
284
|
+
</a>
|
|
285
|
+
</span>
|
|
286
|
+
</td>
|
|
287
|
+
</tr>
|
|
288
|
+
<tr>
|
|
289
|
+
<td class="col-md-4">
|
|
290
|
+
<code>notification: <code>{ body: string; click_action: string; title: string }</code>
|
|
291
|
+
</code>
|
|
292
|
+
</td>
|
|
293
|
+
</tr>
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
<tr>
|
|
297
|
+
<td class="col-md-4">
|
|
298
|
+
<i>Type : </i> <code>{ body: string; click_action: string; title: string }</code>
|
|
299
|
+
|
|
300
|
+
</td>
|
|
301
|
+
</tr>
|
|
302
|
+
|
|
303
|
+
<tr>
|
|
304
|
+
<td class="col-md-4">
|
|
305
|
+
<div class="io-nested-properties">
|
|
306
|
+
<i>Properties :</i>
|
|
307
|
+
<ul class="index-list">
|
|
308
|
+
<li>
|
|
309
|
+
<span class="io-nested-property-name"><code>body: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
310
|
+
</code></span>
|
|
311
|
+
</li>
|
|
312
|
+
<li>
|
|
313
|
+
<span class="io-nested-property-name"><code>click_action: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
314
|
+
</code></span>
|
|
315
|
+
</li>
|
|
316
|
+
<li>
|
|
317
|
+
<span class="io-nested-property-name"><code>title: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
318
|
+
</code></span>
|
|
319
|
+
</li>
|
|
320
|
+
</ul>
|
|
321
|
+
</div>
|
|
322
|
+
</td>
|
|
323
|
+
</tr>
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
<tr>
|
|
329
|
+
<td class="col-md-4">
|
|
330
|
+
<div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">src/lib/firebase-messaging.service.ts:19</a></div>
|
|
331
|
+
</td>
|
|
332
|
+
</tr>
|
|
268
333
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
334
|
+
</tbody>
|
|
335
|
+
</table>
|
|
336
|
+
</section>
|
|
337
|
+
</div>
|
|
273
338
|
|
|
274
339
|
|
|
275
340
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
276
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
341
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
342
|
+
inject,
|
|
343
|
+
Injectable,
|
|
344
|
+
} from '@angular/core';
|
|
345
|
+
import {
|
|
346
|
+
getToken,
|
|
347
|
+
onMessage,
|
|
348
|
+
} from 'firebase/messaging';
|
|
277
349
|
import { ReplaySubject } from 'rxjs';
|
|
278
350
|
import {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
import { AngularFireMessaging } from '@angular/fire/compat/messaging';
|
|
351
|
+
FIREBASE_MESSAGING,
|
|
352
|
+
FIREBASE_MESSAGING_VAPID_KEY,
|
|
353
|
+
RXAP_REQUEST_CLOUD_MESSAGING_TOKEN,
|
|
354
|
+
} from './tokens';
|
|
284
355
|
|
|
285
356
|
export interface Message {
|
|
286
357
|
collapse_key: string;
|
|
@@ -294,38 +365,48 @@ export interface Message {
|
|
|
294
365
|
|
|
295
366
|
@Injectable({ providedIn: 'root' })
|
|
296
367
|
export class RxapFirebaseMessagingService {
|
|
297
|
-
readonly messaging = inject
|
|
368
|
+
readonly messaging = inject(FIREBASE_MESSAGING, { optional: true }) ?? null;
|
|
369
|
+
readonly vapidKey = inject(FIREBASE_MESSAGING_VAPID_KEY, { optional: true }) ?? null;
|
|
298
370
|
readonly requestPermissionImminently = inject(RXAP_REQUEST_CLOUD_MESSAGING_TOKEN, { optional: true }) ?? false;
|
|
299
371
|
|
|
300
372
|
public token$ = new ReplaySubject<string | null>(1);
|
|
301
373
|
|
|
302
374
|
constructor() {
|
|
303
|
-
this.messaging
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
),
|
|
311
|
-
)
|
|
312
|
-
.subscribe();
|
|
375
|
+
if (this.messaging) {
|
|
376
|
+
onMessage(this.messaging, message => {
|
|
377
|
+
if (message.notification?.title) {
|
|
378
|
+
this.showNotification(message.notification.title, message.notification.body ?? '');
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
}
|
|
313
382
|
if (this.requestPermissionImminently) {
|
|
314
|
-
this.requestPermission();
|
|
383
|
+
void this.requestPermission();
|
|
315
384
|
}
|
|
316
385
|
}
|
|
317
386
|
|
|
318
|
-
public requestPermission() {
|
|
387
|
+
public async requestPermission(): Promise<void> {
|
|
388
|
+
if (!this.messaging) {
|
|
389
|
+
console.warn('firebase cloud messaging is not supported in this environment');
|
|
390
|
+
return;
|
|
391
|
+
}
|
|
319
392
|
console.log('request notification permission');
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
393
|
+
try {
|
|
394
|
+
const permission = await Notification.requestPermission();
|
|
395
|
+
if (permission !== 'granted') {
|
|
396
|
+
throw new Error('notification permission is not granted');
|
|
397
|
+
}
|
|
398
|
+
const serviceWorkerRegistration = typeof navigator !== 'undefined' && navigator.serviceWorker ?
|
|
399
|
+
await navigator.serviceWorker.getRegistration() :
|
|
400
|
+
undefined;
|
|
401
|
+
const token = await getToken(this.messaging, {
|
|
402
|
+
vapidKey: this.vapidKey ?? undefined,
|
|
403
|
+
serviceWorkerRegistration,
|
|
404
|
+
});
|
|
405
|
+
console.info('cloud messaging permission is granted');
|
|
406
|
+
this.token$.next(token);
|
|
407
|
+
} catch (error) {
|
|
408
|
+
console.error('cloud messaging permission is denied', error);
|
|
409
|
+
}
|
|
329
410
|
}
|
|
330
411
|
|
|
331
412
|
public showNotification(title: string, body: string): void {
|
|
@@ -386,6 +467,24 @@ export class RxapFirebaseMessagingService {
|
|
|
386
467
|
|
|
387
468
|
<script>
|
|
388
469
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
470
|
+
var updateDarkModeSwitchOffset = function () {
|
|
471
|
+
var content = document.querySelector('.content');
|
|
472
|
+
var scrollbarWidth = 0;
|
|
473
|
+
|
|
474
|
+
if (content) {
|
|
475
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
document.documentElement.style.setProperty(
|
|
479
|
+
'--content-scrollbar-width',
|
|
480
|
+
scrollbarWidth + 'px'
|
|
481
|
+
);
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
updateDarkModeSwitchOffset();
|
|
485
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
486
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
487
|
+
|
|
389
488
|
checkToggle(darkModeState);
|
|
390
489
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
391
490
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -401,14 +500,12 @@ export class RxapFirebaseMessagingService {
|
|
|
401
500
|
<script src="../js/libs/lit-html.js"></script>
|
|
402
501
|
|
|
403
502
|
<script src="../js/menu-wc.js" defer></script>
|
|
404
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
405
503
|
|
|
406
504
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
407
505
|
|
|
408
506
|
<script src="../js/libs/es6-shim.min.js"></script>
|
|
409
507
|
<script src="../js/libs/EventDispatcher.js"></script>
|
|
410
508
|
<script src="../js/libs/promise.min.js"></script>
|
|
411
|
-
<script src="../js/libs/zepto.min.js"></script>
|
|
412
509
|
|
|
413
510
|
<script src="../js/compodoc.js"></script>
|
|
414
511
|
|