@rxap/firebase 22.0.0-dev.0 → 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.
Files changed (300) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +1 -1
  3. package/compodoc/architecture.html +222 -0
  4. package/compodoc/changelog.html +70 -5
  5. package/compodoc/dependencies.html +104 -27
  6. package/compodoc/index.html +47 -6
  7. package/compodoc/injectables/AppCheckService.html +121 -116
  8. package/compodoc/injectables/RxapFirebaseMessagingService.html +198 -59
  9. package/compodoc/interceptors/FirebaseAppCheckHttpInterceptor.html +89 -34
  10. package/compodoc/interfaces/FirebaseConfig.html +114 -64
  11. package/compodoc/interfaces/Message.html +256 -159
  12. package/compodoc/js/architecture-graph.js +288 -0
  13. package/compodoc/js/libs/bootstrap-native.js +4 -2
  14. package/compodoc/js/libs/jszip.min.js +13 -0
  15. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
  16. package/compodoc/js/libs/tablesort.min.js +3 -3
  17. package/compodoc/js/libs/tablesort.number.min.js +3 -3
  18. package/compodoc/js/libs/vis-network.min.js +78 -0
  19. package/compodoc/js/menu-wc.js +25 -12
  20. package/compodoc/js/menu.js +10 -11
  21. package/compodoc/js/routes/routes_index.js +1 -0
  22. package/compodoc/js/routes.js +142 -34
  23. package/compodoc/js/search/search-lunr.js +6 -8
  24. package/compodoc/js/search/search.js +118 -66
  25. package/compodoc/js/search/search_index.js +2 -2
  26. package/compodoc/js/tabs.js +98 -15
  27. package/compodoc/js/tree.js +44 -7
  28. package/compodoc/license.html +48 -6
  29. package/compodoc/llms.txt +215 -0
  30. package/compodoc/miscellaneous/functions.html +860 -117
  31. package/compodoc/miscellaneous/variables.html +614 -127
  32. package/compodoc/modules.html +44 -3
  33. package/compodoc/overview.html +54 -3
  34. package/compodoc/properties.html +45 -4
  35. package/compodoc/routes.html +227 -0
  36. package/compodoc/styles/compodoc.css +365 -44
  37. package/compodoc/styles/dark.css +16 -0
  38. package/compodoc/template-playground/default-templates.json +192 -0
  39. package/compodoc/template-playground/hbs-render.service.ts +217 -0
  40. package/compodoc/template-playground/main.ts +9 -0
  41. package/compodoc/template-playground/template-editor.service.ts +173 -0
  42. package/compodoc/template-playground/template-playground.component.ts +614 -0
  43. package/compodoc/template-playground/template-playground.module.ts +29 -0
  44. package/compodoc/template-playground/zip-export.service.ts +86 -0
  45. package/compodoc/template-playground-app/app.js +1389 -0
  46. package/compodoc/template-playground-app/index.html +462 -0
  47. package/docs/documentation.json +3419 -1369
  48. package/docs/html/assets/highlight.css +1 -1
  49. package/docs/html/assets/icons.js +1 -1
  50. package/docs/html/assets/icons.svg +1 -1
  51. package/docs/html/assets/main.js +5 -5
  52. package/docs/html/assets/navigation.js +1 -1
  53. package/docs/html/assets/search.js +1 -1
  54. package/docs/html/assets/style.css +265 -228
  55. package/docs/html/classes/AppCheckService.html +106 -5
  56. package/docs/html/classes/FirebaseAppCheckHttpInterceptor.html +107 -8
  57. package/docs/html/classes/RxapFirebaseMessagingService.html +123 -7
  58. package/docs/html/functions/AnalyticsEnabledFactory.html +42 -1
  59. package/docs/html/functions/AppCheckEnabledFactory.html +42 -1
  60. package/docs/html/functions/AppCheckSiteKeyFactory.html +42 -1
  61. package/docs/html/functions/AppIsTokenAutoRefreshEnabledFactory.html +42 -1
  62. package/docs/html/functions/AuthLanguageCodeFactory.html +42 -1
  63. package/docs/html/functions/AuthPersistenceFactory.html +42 -1
  64. package/docs/html/functions/AuthSettingsFactory.html +42 -1
  65. package/docs/html/functions/AuthTenantIdFactory.html +42 -1
  66. package/docs/html/functions/AuthUseDeviceLanguageFactory.html +42 -1
  67. package/docs/html/functions/DataCollectionEnabledFactory.html +42 -1
  68. package/docs/html/functions/EnablePersistenceTokenFactory.html +42 -1
  69. package/docs/html/functions/FirebaseAnalyticsFactory.html +45 -0
  70. package/docs/html/functions/FirebaseAppCheckFactory.html +47 -0
  71. package/docs/html/functions/FirebaseAppFactory.html +45 -0
  72. package/docs/html/functions/FirebaseAuthFactory.html +43 -0
  73. package/docs/html/functions/FirebaseFirestoreFactory.html +43 -0
  74. package/docs/html/functions/FirebaseFunctionsFactory.html +43 -0
  75. package/docs/html/functions/FirebaseMessagingFactory.html +44 -0
  76. package/docs/html/functions/FirebaseNameOrConfigTokenFactory.html +42 -1
  77. package/docs/html/functions/FirebaseOptionsTokenFactory.html +42 -1
  78. package/docs/html/functions/FirebasePerformanceFactory.html +43 -0
  79. package/docs/html/functions/FirebaseStorageFactory.html +43 -0
  80. package/docs/html/functions/FirestoreSettingsTokenFactory.html +42 -1
  81. package/docs/html/functions/FunctionsNewOriginBehaviorFactory.html +42 -1
  82. package/docs/html/functions/FunctionsOriginFactory.html +42 -1
  83. package/docs/html/functions/FunctionsRegionFactory.html +42 -1
  84. package/docs/html/functions/GetAnalyticsAppName.html +42 -1
  85. package/docs/html/functions/InstrumentationEnabledFactory.html +42 -1
  86. package/docs/html/functions/PersistenceSettingsTokenFactory.html +42 -1
  87. package/docs/html/functions/ServiceWorkerFactory.html +38 -1
  88. package/docs/html/functions/StorageBucketFactory.html +42 -1
  89. package/docs/html/functions/StorageMaxOperationRetryTimeFactory.html +42 -1
  90. package/docs/html/functions/StorageMaxUploadRetryTimeFactory.html +42 -1
  91. package/docs/html/functions/UseAuthEmulatorFactory.html +42 -1
  92. package/docs/html/functions/UseFirestoreEmulatorFactory.html +42 -1
  93. package/docs/html/functions/UseFunctionsEmulatorFactory.html +42 -1
  94. package/docs/html/functions/VapidKeyFactory.html +42 -1
  95. package/docs/html/functions/provideFirebaseAppCheck.html +40 -0
  96. package/docs/html/functions/provideFirebaseStorageEmulator.html +40 -0
  97. package/docs/html/hierarchy.html +29 -0
  98. package/docs/html/index.html +41 -5
  99. package/docs/html/interfaces/FirebaseConfig.html +123 -9
  100. package/docs/html/interfaces/Message.html +67 -4
  101. package/docs/html/modules.html +48 -1
  102. package/docs/html/variables/APP_CHECK_ENABLED.html +33 -1
  103. package/docs/html/variables/APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED.html +33 -1
  104. package/docs/html/variables/APP_CHECK_SITE_KEY.html +33 -1
  105. package/docs/html/variables/FIREBASE_ANALYTICS.html +35 -0
  106. package/docs/html/variables/FIREBASE_ANALYTICS_PROVIDERS.html +33 -1
  107. package/docs/html/variables/FIREBASE_APP.html +33 -0
  108. package/docs/html/variables/FIREBASE_APP_CHECK.html +35 -0
  109. package/docs/html/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR.html +33 -1
  110. package/docs/html/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN.html +33 -1
  111. package/docs/html/variables/FIREBASE_APP_CHECK_PROVIDERS.html +33 -1
  112. package/docs/html/variables/FIREBASE_APP_NAME.html +35 -0
  113. package/docs/html/variables/FIREBASE_APP_PROVIDERS.html +33 -1
  114. package/docs/html/variables/FIREBASE_AUTH.html +33 -0
  115. package/docs/html/variables/FIREBASE_AUTH_PROVIDERS.html +33 -1
  116. package/docs/html/variables/FIREBASE_FIRESTORE.html +33 -0
  117. package/docs/html/variables/FIREBASE_FIRESTORE_PROVIDERS.html +33 -1
  118. package/docs/html/variables/FIREBASE_FUNCTIONS.html +33 -0
  119. package/docs/html/variables/FIREBASE_FUNCTIONS_PROVIDERS.html +33 -1
  120. package/docs/html/variables/FIREBASE_MESSAGING.html +35 -0
  121. package/docs/html/variables/FIREBASE_MESSAGING_PROVIDERS.html +33 -1
  122. package/docs/html/variables/FIREBASE_MESSAGING_VAPID_KEY.html +33 -0
  123. package/docs/html/variables/FIREBASE_OPTIONS.html +35 -0
  124. package/docs/html/variables/FIREBASE_PERFORMANCE.html +33 -0
  125. package/docs/html/variables/FIREBASE_PERFORMANCE_PROVIDERS.html +33 -1
  126. package/docs/html/variables/FIREBASE_PROVIDERS.html +33 -1
  127. package/docs/html/variables/FIREBASE_STORAGE.html +33 -0
  128. package/docs/html/variables/FIREBASE_STORAGE_PROVIDERS.html +33 -1
  129. package/docs/html/variables/RXAP_REQUEST_CLOUD_MESSAGING_TOKEN.html +33 -1
  130. package/docs/html/variables/USE_STORAGE_EMULATOR.html +33 -1
  131. package/docs/html/variables/provideAngularFireAppCheck.html +47 -0
  132. package/docs/html/variables/provideAngularFireStorageEmulator.html +47 -0
  133. package/docs/markdown/README.md +2 -2
  134. package/docs/markdown/classes/AppCheckService.md +10 -12
  135. package/docs/markdown/classes/FirebaseAppCheckHttpInterceptor.md +9 -9
  136. package/docs/markdown/classes/RxapFirebaseMessagingService.md +23 -15
  137. package/docs/markdown/functions/AnalyticsEnabledFactory.md +2 -2
  138. package/docs/markdown/functions/AppCheckEnabledFactory.md +2 -2
  139. package/docs/markdown/functions/AppCheckSiteKeyFactory.md +2 -2
  140. package/docs/markdown/functions/AppIsTokenAutoRefreshEnabledFactory.md +2 -2
  141. package/docs/markdown/functions/AuthLanguageCodeFactory.md +2 -2
  142. package/docs/markdown/functions/AuthPersistenceFactory.md +2 -2
  143. package/docs/markdown/functions/AuthSettingsFactory.md +2 -2
  144. package/docs/markdown/functions/AuthTenantIdFactory.md +2 -2
  145. package/docs/markdown/functions/AuthUseDeviceLanguageFactory.md +2 -2
  146. package/docs/markdown/functions/DataCollectionEnabledFactory.md +2 -2
  147. package/docs/markdown/functions/EnablePersistenceTokenFactory.md +2 -2
  148. package/docs/markdown/functions/FirebaseAnalyticsFactory.md +27 -0
  149. package/docs/markdown/functions/FirebaseAppCheckFactory.md +35 -0
  150. package/docs/markdown/functions/FirebaseAppFactory.md +27 -0
  151. package/docs/markdown/functions/FirebaseAuthFactory.md +25 -0
  152. package/docs/markdown/functions/FirebaseFirestoreFactory.md +25 -0
  153. package/docs/markdown/functions/FirebaseFunctionsFactory.md +25 -0
  154. package/docs/markdown/functions/FirebaseMessagingFactory.md +23 -0
  155. package/docs/markdown/functions/FirebaseNameOrConfigTokenFactory.md +2 -2
  156. package/docs/markdown/functions/FirebaseOptionsTokenFactory.md +2 -2
  157. package/docs/markdown/functions/FirebasePerformanceFactory.md +25 -0
  158. package/docs/markdown/functions/FirebaseStorageFactory.md +25 -0
  159. package/docs/markdown/functions/FirestoreSettingsTokenFactory.md +2 -2
  160. package/docs/markdown/functions/FunctionsNewOriginBehaviorFactory.md +2 -2
  161. package/docs/markdown/functions/FunctionsOriginFactory.md +2 -2
  162. package/docs/markdown/functions/FunctionsRegionFactory.md +2 -2
  163. package/docs/markdown/functions/GetAnalyticsAppName.md +4 -4
  164. package/docs/markdown/functions/InstrumentationEnabledFactory.md +2 -2
  165. package/docs/markdown/functions/PersistenceSettingsTokenFactory.md +2 -2
  166. package/docs/markdown/functions/ServiceWorkerFactory.md +4 -4
  167. package/docs/markdown/functions/StorageBucketFactory.md +2 -2
  168. package/docs/markdown/functions/StorageMaxOperationRetryTimeFactory.md +2 -2
  169. package/docs/markdown/functions/StorageMaxUploadRetryTimeFactory.md +2 -2
  170. package/docs/markdown/functions/UseAuthEmulatorFactory.md +2 -2
  171. package/docs/markdown/functions/UseFirestoreEmulatorFactory.md +2 -2
  172. package/docs/markdown/functions/UseFunctionsEmulatorFactory.md +2 -2
  173. package/docs/markdown/functions/VapidKeyFactory.md +2 -2
  174. package/docs/markdown/functions/provideFirebaseAppCheck.md +17 -0
  175. package/docs/markdown/functions/provideFirebaseStorageEmulator.md +17 -0
  176. package/docs/markdown/globals.md +27 -4
  177. package/docs/markdown/interfaces/FirebaseConfig.md +88 -84
  178. package/docs/markdown/interfaces/Message.md +5 -5
  179. package/docs/markdown/variables/APP_CHECK_ENABLED.md +2 -2
  180. package/docs/markdown/variables/APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED.md +2 -2
  181. package/docs/markdown/variables/APP_CHECK_SITE_KEY.md +2 -2
  182. package/docs/markdown/variables/FIREBASE_ANALYTICS.md +13 -0
  183. package/docs/markdown/variables/FIREBASE_ANALYTICS_PROVIDERS.md +2 -2
  184. package/docs/markdown/variables/FIREBASE_APP.md +11 -0
  185. package/docs/markdown/variables/FIREBASE_APP_CHECK.md +13 -0
  186. package/docs/markdown/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR.md +2 -2
  187. package/docs/markdown/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN.md +2 -2
  188. package/docs/markdown/variables/FIREBASE_APP_CHECK_PROVIDERS.md +2 -2
  189. package/docs/markdown/variables/FIREBASE_APP_NAME.md +13 -0
  190. package/docs/markdown/variables/FIREBASE_APP_PROVIDERS.md +2 -2
  191. package/docs/markdown/variables/FIREBASE_AUTH.md +11 -0
  192. package/docs/markdown/variables/FIREBASE_AUTH_PROVIDERS.md +2 -2
  193. package/docs/markdown/variables/FIREBASE_FIRESTORE.md +11 -0
  194. package/docs/markdown/variables/FIREBASE_FIRESTORE_PROVIDERS.md +2 -2
  195. package/docs/markdown/variables/FIREBASE_FUNCTIONS.md +11 -0
  196. package/docs/markdown/variables/FIREBASE_FUNCTIONS_PROVIDERS.md +2 -2
  197. package/docs/markdown/variables/FIREBASE_MESSAGING.md +13 -0
  198. package/docs/markdown/variables/FIREBASE_MESSAGING_PROVIDERS.md +2 -2
  199. package/docs/markdown/variables/FIREBASE_MESSAGING_VAPID_KEY.md +11 -0
  200. package/docs/markdown/variables/FIREBASE_OPTIONS.md +13 -0
  201. package/docs/markdown/variables/FIREBASE_PERFORMANCE.md +11 -0
  202. package/docs/markdown/variables/FIREBASE_PERFORMANCE_PROVIDERS.md +2 -2
  203. package/docs/markdown/variables/FIREBASE_PROVIDERS.md +2 -2
  204. package/docs/markdown/variables/FIREBASE_STORAGE.md +11 -0
  205. package/docs/markdown/variables/FIREBASE_STORAGE_PROVIDERS.md +2 -2
  206. package/docs/markdown/variables/RXAP_REQUEST_CLOUD_MESSAGING_TOKEN.md +2 -2
  207. package/docs/markdown/variables/USE_STORAGE_EMULATOR.md +2 -2
  208. package/docs/markdown/variables/provideAngularFireAppCheck.md +21 -0
  209. package/docs/markdown/variables/provideAngularFireStorageEmulator.md +21 -0
  210. package/docs/wiki/Class.AppCheckService.md +9 -11
  211. package/docs/wiki/Class.FirebaseAppCheckHttpInterceptor.md +8 -8
  212. package/docs/wiki/Class.RxapFirebaseMessagingService.md +22 -14
  213. package/docs/wiki/Function.AnalyticsEnabledFactory.md +1 -1
  214. package/docs/wiki/Function.AppCheckEnabledFactory.md +1 -1
  215. package/docs/wiki/Function.AppCheckSiteKeyFactory.md +1 -1
  216. package/docs/wiki/Function.AppIsTokenAutoRefreshEnabledFactory.md +1 -1
  217. package/docs/wiki/Function.AuthLanguageCodeFactory.md +1 -1
  218. package/docs/wiki/Function.AuthPersistenceFactory.md +1 -1
  219. package/docs/wiki/Function.AuthSettingsFactory.md +1 -1
  220. package/docs/wiki/Function.AuthTenantIdFactory.md +1 -1
  221. package/docs/wiki/Function.AuthUseDeviceLanguageFactory.md +1 -1
  222. package/docs/wiki/Function.DataCollectionEnabledFactory.md +1 -1
  223. package/docs/wiki/Function.EnablePersistenceTokenFactory.md +1 -1
  224. package/docs/wiki/Function.FirebaseAnalyticsFactory.md +23 -0
  225. package/docs/wiki/Function.FirebaseAppCheckFactory.md +31 -0
  226. package/docs/wiki/Function.FirebaseAppFactory.md +23 -0
  227. package/docs/wiki/Function.FirebaseAuthFactory.md +21 -0
  228. package/docs/wiki/Function.FirebaseFirestoreFactory.md +21 -0
  229. package/docs/wiki/Function.FirebaseFunctionsFactory.md +21 -0
  230. package/docs/wiki/Function.FirebaseMessagingFactory.md +19 -0
  231. package/docs/wiki/Function.FirebaseNameOrConfigTokenFactory.md +1 -1
  232. package/docs/wiki/Function.FirebaseOptionsTokenFactory.md +1 -1
  233. package/docs/wiki/Function.FirebasePerformanceFactory.md +21 -0
  234. package/docs/wiki/Function.FirebaseStorageFactory.md +21 -0
  235. package/docs/wiki/Function.FirestoreSettingsTokenFactory.md +1 -1
  236. package/docs/wiki/Function.FunctionsNewOriginBehaviorFactory.md +1 -1
  237. package/docs/wiki/Function.FunctionsOriginFactory.md +1 -1
  238. package/docs/wiki/Function.FunctionsRegionFactory.md +1 -1
  239. package/docs/wiki/Function.GetAnalyticsAppName.md +3 -3
  240. package/docs/wiki/Function.InstrumentationEnabledFactory.md +1 -1
  241. package/docs/wiki/Function.PersistenceSettingsTokenFactory.md +1 -1
  242. package/docs/wiki/Function.ServiceWorkerFactory.md +3 -3
  243. package/docs/wiki/Function.StorageBucketFactory.md +1 -1
  244. package/docs/wiki/Function.StorageMaxOperationRetryTimeFactory.md +1 -1
  245. package/docs/wiki/Function.StorageMaxUploadRetryTimeFactory.md +1 -1
  246. package/docs/wiki/Function.UseAuthEmulatorFactory.md +1 -1
  247. package/docs/wiki/Function.UseFirestoreEmulatorFactory.md +1 -1
  248. package/docs/wiki/Function.UseFunctionsEmulatorFactory.md +1 -1
  249. package/docs/wiki/Function.VapidKeyFactory.md +1 -1
  250. package/docs/wiki/Function.provideFirebaseAppCheck.md +13 -0
  251. package/docs/wiki/Function.provideFirebaseStorageEmulator.md +13 -0
  252. package/docs/wiki/Home.md +1 -1
  253. package/docs/wiki/Interface.FirebaseConfig.md +87 -83
  254. package/docs/wiki/Interface.Message.md +4 -4
  255. package/docs/wiki/Variable.APP_CHECK_ENABLED.md +1 -1
  256. package/docs/wiki/Variable.APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED.md +1 -1
  257. package/docs/wiki/Variable.APP_CHECK_SITE_KEY.md +1 -1
  258. package/docs/wiki/Variable.FIREBASE_ANALYTICS.md +9 -0
  259. package/docs/wiki/Variable.FIREBASE_ANALYTICS_PROVIDERS.md +1 -1
  260. package/docs/wiki/Variable.FIREBASE_APP.md +7 -0
  261. package/docs/wiki/Variable.FIREBASE_APP_CHECK.md +9 -0
  262. package/docs/wiki/Variable.FIREBASE_APP_CHECK_HTTP_INTERCEPTOR.md +1 -1
  263. package/docs/wiki/Variable.FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN.md +1 -1
  264. package/docs/wiki/Variable.FIREBASE_APP_CHECK_PROVIDERS.md +1 -1
  265. package/docs/wiki/Variable.FIREBASE_APP_NAME.md +9 -0
  266. package/docs/wiki/Variable.FIREBASE_APP_PROVIDERS.md +1 -1
  267. package/docs/wiki/Variable.FIREBASE_AUTH.md +7 -0
  268. package/docs/wiki/Variable.FIREBASE_AUTH_PROVIDERS.md +1 -1
  269. package/docs/wiki/Variable.FIREBASE_FIRESTORE.md +7 -0
  270. package/docs/wiki/Variable.FIREBASE_FIRESTORE_PROVIDERS.md +1 -1
  271. package/docs/wiki/Variable.FIREBASE_FUNCTIONS.md +7 -0
  272. package/docs/wiki/Variable.FIREBASE_FUNCTIONS_PROVIDERS.md +1 -1
  273. package/docs/wiki/Variable.FIREBASE_MESSAGING.md +9 -0
  274. package/docs/wiki/Variable.FIREBASE_MESSAGING_PROVIDERS.md +1 -1
  275. package/docs/wiki/Variable.FIREBASE_MESSAGING_VAPID_KEY.md +7 -0
  276. package/docs/wiki/Variable.FIREBASE_OPTIONS.md +9 -0
  277. package/docs/wiki/Variable.FIREBASE_PERFORMANCE.md +7 -0
  278. package/docs/wiki/Variable.FIREBASE_PERFORMANCE_PROVIDERS.md +1 -1
  279. package/docs/wiki/Variable.FIREBASE_PROVIDERS.md +1 -1
  280. package/docs/wiki/Variable.FIREBASE_STORAGE.md +7 -0
  281. package/docs/wiki/Variable.FIREBASE_STORAGE_PROVIDERS.md +1 -1
  282. package/docs/wiki/Variable.RXAP_REQUEST_CLOUD_MESSAGING_TOKEN.md +1 -1
  283. package/docs/wiki/Variable.USE_STORAGE_EMULATOR.md +1 -1
  284. package/docs/wiki/Variable.provideAngularFireAppCheck.md +17 -0
  285. package/docs/wiki/Variable.provideAngularFireStorageEmulator.md +17 -0
  286. package/docs/wiki/_Sidebar.md +25 -2
  287. package/docs/wiki/globals.md +26 -3
  288. package/fesm2022/rxap-firebase-auth.mjs +19 -7
  289. package/fesm2022/rxap-firebase-auth.mjs.map +1 -1
  290. package/fesm2022/rxap-firebase.mjs +183 -160
  291. package/fesm2022/rxap-firebase.mjs.map +1 -1
  292. package/package.json +13 -26
  293. package/types/rxap-firebase-auth.d.ts +9 -1
  294. package/types/rxap-firebase.d.ts +75 -16
  295. package/docs/html/functions/provideAngularFireAppCheck.html +0 -3
  296. package/docs/html/functions/provideAngularFireStorageEmulator.html +0 -3
  297. package/docs/markdown/functions/provideAngularFireAppCheck.md +0 -18
  298. package/docs/markdown/functions/provideAngularFireStorageEmulator.md +0 -18
  299. package/docs/wiki/Function.provideAngularFireAppCheck.md +0 -14
  300. package/docs/wiki/Function.provideAngularFireStorageEmulator.md +0 -14
@@ -0,0 +1,614 @@
1
+ import { Component, OnInit, ViewChild, ElementRef, OnDestroy } from '@angular/core';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { TemplateEditorService } from './template-editor.service';
4
+ import { ZipExportService } from './zip-export.service';
5
+ import { HbsRenderService } from './hbs-render.service';
6
+
7
+ interface Template {
8
+ name: string;
9
+ path: string;
10
+ type: 'template' | 'partial';
11
+ }
12
+
13
+ interface Session {
14
+ sessionId: string;
15
+ success: boolean;
16
+ message: string;
17
+ }
18
+
19
+ interface CompoDocConfig {
20
+ hideGenerator?: boolean;
21
+ disableSourceCode?: boolean;
22
+ disableGraph?: boolean;
23
+ disableCoverage?: boolean;
24
+ disablePrivate?: boolean;
25
+ disableProtected?: boolean;
26
+ disableInternal?: boolean;
27
+ disableLifeCycleHooks?: boolean;
28
+ disableConstructors?: boolean;
29
+ disableRoutesGraph?: boolean;
30
+ disableSearch?: boolean;
31
+ disableDependencies?: boolean;
32
+ disableProperties?: boolean;
33
+ disableDomTree?: boolean;
34
+ disableTemplateTab?: boolean;
35
+ disableStyleTab?: boolean;
36
+ disableMainGraph?: boolean;
37
+ disableFilePath?: boolean;
38
+ disableOverview?: boolean;
39
+ hideDarkModeToggle?: boolean;
40
+ minimal?: boolean;
41
+ customFavicon?: string;
42
+ includes?: string;
43
+ includesName?: string;
44
+ }
45
+
46
+ @Component({
47
+ selector: 'template-playground-root',
48
+ template: `
49
+ <div class="template-playground">
50
+ <div class="template-playground-header">
51
+ <h2>Template Playground</h2>
52
+ <div class="template-playground-status">
53
+ <span *ngIf="sessionId" class="session-info">Session: {{sessionId.substring(0, 8)}}...</span>
54
+ <span *ngIf="saving" class="saving-indicator">Saving...</span>
55
+ <span *ngIf="lastSaved" class="last-saved">Last saved: {{lastSaved | date:'short'}}</span>
56
+ </div>
57
+ <div class="template-playground-actions">
58
+ <button class="btn btn-secondary" (click)="toggleConfigPanel()">⚙️ Config</button>
59
+ <button class="btn btn-primary" (click)="resetToDefault()">Reset to Default</button>
60
+ <button class="btn btn-success" (click)="exportZip()">Download Templates</button>
61
+ </div>
62
+ </div>
63
+
64
+ <!-- Configuration Panel -->
65
+ <div class="config-panel" [class.collapsed]="!showConfigPanel">
66
+ <h3>CompoDoc Configuration</h3>
67
+ <div class="config-options">
68
+ <label><input type="checkbox" [(ngModel)]="config.hideGenerator" (change)="updateConfig()"> Hide Generator</label>
69
+ <label><input type="checkbox" [(ngModel)]="config.hideDarkModeToggle" (change)="updateConfig()"> Hide Dark Mode Toggle</label>
70
+ <label><input type="checkbox" [(ngModel)]="config.minimal" (change)="updateConfig()"> Minimal Mode</label>
71
+ <label><input type="checkbox" [(ngModel)]="config.disableOverview" (change)="updateConfig()"> Disable Overview</label>
72
+ <label><input type="checkbox" [(ngModel)]="config.disableFilePath" (change)="updateConfig()"> Disable File Path</label>
73
+ <label><input type="checkbox" [(ngModel)]="config.disableSourceCode" (change)="updateConfig()"> Disable Source Code</label>
74
+ <label><input type="checkbox" [(ngModel)]="config.disableGraph" (change)="updateConfig()"> Disable Graph</label>
75
+ <label><input type="checkbox" [(ngModel)]="config.disableMainGraph" (change)="updateConfig()"> Disable Main Graph</label>
76
+ <label><input type="checkbox" [(ngModel)]="config.disableRoutesGraph" (change)="updateConfig()"> Disable Routes Graph</label>
77
+ <label><input type="checkbox" [(ngModel)]="config.disableCoverage" (change)="updateConfig()"> Disable Coverage</label>
78
+ <label><input type="checkbox" [(ngModel)]="config.disableSearch" (change)="updateConfig()"> Disable Search</label>
79
+ <label><input type="checkbox" [(ngModel)]="config.disableDependencies" (change)="updateConfig()"> Disable Dependencies</label>
80
+ <label><input type="checkbox" [(ngModel)]="config.disablePrivate" (change)="updateConfig()"> Disable Private</label>
81
+ <label><input type="checkbox" [(ngModel)]="config.disableProtected" (change)="updateConfig()"> Disable Protected</label>
82
+ <label><input type="checkbox" [(ngModel)]="config.disableInternal" (change)="updateConfig()"> Disable Internal</label>
83
+ <label><input type="checkbox" [(ngModel)]="config.disableLifeCycleHooks" (change)="updateConfig()"> Disable Lifecycle Hooks</label>
84
+ <label><input type="checkbox" [(ngModel)]="config.disableConstructors" (change)="updateConfig()"> Disable Constructors</label>
85
+ <label><input type="checkbox" [(ngModel)]="config.disableProperties" (change)="updateConfig()"> Disable Properties</label>
86
+ <label><input type="checkbox" [(ngModel)]="config.disableDomTree" (change)="updateConfig()"> Disable DOM Tree</label>
87
+ <label><input type="checkbox" [(ngModel)]="config.disableTemplateTab" (change)="updateConfig()"> Disable Template Tab</label>
88
+ <label><input type="checkbox" [(ngModel)]="config.disableStyleTab" (change)="updateConfig()"> Disable Style Tab</label>
89
+ </div>
90
+ </div>
91
+
92
+ <div class="template-playground-body">
93
+ <div class="template-playground-sidebar">
94
+ <div class="template-file-list">
95
+ <h3>Templates</h3>
96
+ <ul class="file-list">
97
+ <li *ngFor="let template of templates; trackBy: trackByName"
98
+ [class.active]="selectedFile === template"
99
+ (click)="selectFile(template)">
100
+ <i class="file-icon ion-document-text"></i>
101
+ {{template.name}}
102
+ <span class="file-type">{{template.type}}</span>
103
+ </li>
104
+ </ul>
105
+
106
+ <div *ngIf="templates.length === 0" class="loading-templates">
107
+ Loading templates...
108
+ </div>
109
+ </div>
110
+ </div>
111
+
112
+ <div class="template-playground-main">
113
+ <div class="template-playground-editor">
114
+ <div class="editor-header" *ngIf="selectedFile">
115
+ <h4>{{selectedFile.path}}</h4>
116
+ <span class="file-type-badge">{{selectedFile.type}}</span>
117
+ </div>
118
+ <div #editorContainer class="editor-container"></div>
119
+ </div>
120
+
121
+ <div class="template-playground-preview">
122
+ <div class="preview-header">
123
+ <h4>Live Preview</h4>
124
+ <button class="btn btn-sm btn-secondary" (click)="refreshPreview()">🔄 Refresh</button>
125
+ </div>
126
+ <iframe #previewFrame class="preview-frame" [src]="previewUrl"></iframe>
127
+ </div>
128
+ </div>
129
+ </div>
130
+ </div>
131
+ `,
132
+ styles: [`
133
+ .template-playground {
134
+ display: flex;
135
+ flex-direction: column;
136
+ height: 100vh;
137
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
138
+ }
139
+
140
+ .template-playground-header {
141
+ display: flex;
142
+ justify-content: space-between;
143
+ align-items: center;
144
+ padding: 1rem 2rem;
145
+ background: #f8f9fa;
146
+ border-bottom: 1px solid #dee2e6;
147
+ }
148
+
149
+ .template-playground-status {
150
+ display: flex;
151
+ align-items: center;
152
+ gap: 1rem;
153
+ font-size: 0.875rem;
154
+ }
155
+
156
+ .session-info {
157
+ color: #6c757d;
158
+ font-family: monospace;
159
+ }
160
+
161
+ .saving-indicator {
162
+ color: #ffc107;
163
+ font-weight: bold;
164
+ }
165
+
166
+ .last-saved {
167
+ color: #28a745;
168
+ }
169
+
170
+ .template-playground-actions {
171
+ display: flex;
172
+ gap: 0.5rem;
173
+ }
174
+
175
+ .config-panel {
176
+ background: #e9ecef;
177
+ padding: 1rem 2rem;
178
+ border-bottom: 1px solid #dee2e6;
179
+ transition: all 0.3s ease;
180
+ max-height: 200px;
181
+ overflow: hidden;
182
+ }
183
+
184
+ .config-panel.collapsed {
185
+ max-height: 0;
186
+ padding: 0 2rem;
187
+ }
188
+
189
+ .config-options {
190
+ display: grid;
191
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
192
+ gap: 0.5rem;
193
+ margin-top: 0.5rem;
194
+ }
195
+
196
+ .config-options label {
197
+ display: flex;
198
+ align-items: center;
199
+ gap: 0.5rem;
200
+ font-size: 0.875rem;
201
+ }
202
+
203
+ .template-playground-body {
204
+ display: flex;
205
+ flex: 1;
206
+ overflow: hidden;
207
+ }
208
+
209
+ .template-playground-sidebar {
210
+ width: 250px;
211
+ background: #f8f9fa;
212
+ border-right: 1px solid #dee2e6;
213
+ overflow-y: auto;
214
+ }
215
+
216
+ .template-file-list {
217
+ padding: 1rem;
218
+ }
219
+
220
+ .template-file-list h3 {
221
+ margin: 0 0 0.5rem 0;
222
+ font-size: 0.875rem;
223
+ font-weight: 600;
224
+ color: #495057;
225
+ text-transform: uppercase;
226
+ letter-spacing: 0.5px;
227
+ }
228
+
229
+ .file-list {
230
+ list-style: none;
231
+ padding: 0;
232
+ margin: 0 0 1.5rem 0;
233
+ }
234
+
235
+ .file-list li {
236
+ display: flex;
237
+ align-items: center;
238
+ padding: 0.5rem;
239
+ cursor: pointer;
240
+ border-radius: 4px;
241
+ font-size: 0.875rem;
242
+ transition: background-color 0.15s ease;
243
+ }
244
+
245
+ .file-list li:hover {
246
+ background: #e9ecef;
247
+ }
248
+
249
+ .file-list li.active {
250
+ background: #007bff;
251
+ color: white;
252
+ }
253
+
254
+ .file-icon {
255
+ margin-right: 0.5rem;
256
+ opacity: 0.7;
257
+ }
258
+
259
+ .file-type {
260
+ margin-left: auto;
261
+ font-size: 0.75rem;
262
+ opacity: 0.7;
263
+ text-transform: uppercase;
264
+ }
265
+
266
+ .loading-templates {
267
+ text-align: center;
268
+ color: #6c757d;
269
+ font-style: italic;
270
+ padding: 2rem;
271
+ }
272
+
273
+ .template-playground-main {
274
+ flex: 1;
275
+ display: flex;
276
+ overflow: hidden;
277
+ }
278
+
279
+ .template-playground-editor {
280
+ width: 50%;
281
+ display: flex;
282
+ flex-direction: column;
283
+ border-right: 1px solid #dee2e6;
284
+ }
285
+
286
+ .editor-header {
287
+ display: flex;
288
+ justify-content: space-between;
289
+ align-items: center;
290
+ padding: 0.75rem 1rem;
291
+ background: #f8f9fa;
292
+ border-bottom: 1px solid #dee2e6;
293
+ }
294
+
295
+ .editor-header h4 {
296
+ margin: 0;
297
+ font-size: 0.875rem;
298
+ font-weight: 600;
299
+ }
300
+
301
+ .file-type-badge {
302
+ background: #6c757d;
303
+ color: white;
304
+ padding: 0.125rem 0.5rem;
305
+ border-radius: 12px;
306
+ font-size: 0.75rem;
307
+ text-transform: uppercase;
308
+ }
309
+
310
+ .editor-container {
311
+ flex: 1;
312
+ position: relative;
313
+ }
314
+
315
+ .template-playground-preview {
316
+ width: 50%;
317
+ display: flex;
318
+ flex-direction: column;
319
+ }
320
+
321
+ .preview-header {
322
+ display: flex;
323
+ justify-content: space-between;
324
+ align-items: center;
325
+ padding: 0.75rem 1rem;
326
+ background: #f8f9fa;
327
+ border-bottom: 1px solid #dee2e6;
328
+ }
329
+
330
+ .preview-header h4 {
331
+ margin: 0;
332
+ font-size: 0.875rem;
333
+ font-weight: 600;
334
+ }
335
+
336
+ .preview-frame {
337
+ flex: 1;
338
+ border: none;
339
+ background: white;
340
+ }
341
+
342
+ .btn {
343
+ padding: 0.375rem 0.75rem;
344
+ border: 1px solid transparent;
345
+ border-radius: 0.25rem;
346
+ font-size: 0.875rem;
347
+ font-weight: 500;
348
+ text-decoration: none;
349
+ cursor: pointer;
350
+ transition: all 0.15s ease;
351
+ }
352
+
353
+ .btn-primary {
354
+ background: #007bff;
355
+ border-color: #007bff;
356
+ color: white;
357
+ }
358
+
359
+ .btn-primary:hover {
360
+ background: #0056b3;
361
+ border-color: #004085;
362
+ }
363
+
364
+ .btn-secondary {
365
+ background: #6c757d;
366
+ border-color: #6c757d;
367
+ color: white;
368
+ }
369
+
370
+ .btn-secondary:hover {
371
+ background: #545b62;
372
+ border-color: #4e555b;
373
+ }
374
+
375
+ .btn-success {
376
+ background: #28a745;
377
+ border-color: #28a745;
378
+ color: white;
379
+ }
380
+
381
+ .btn-success:hover {
382
+ background: #1e7e34;
383
+ border-color: #1c7430;
384
+ }
385
+
386
+ .btn-sm {
387
+ padding: 0.25rem 0.5rem;
388
+ font-size: 0.75rem;
389
+ }
390
+ `]
391
+ })
392
+ export class TemplatePlaygroundComponent implements OnInit, OnDestroy {
393
+ @ViewChild('editorContainer', { static: true }) editorContainer!: ElementRef;
394
+ @ViewChild('previewFrame', { static: true }) previewFrame!: ElementRef;
395
+
396
+ sessionId: string = '';
397
+ templates: Template[] = [];
398
+ selectedFile: Template | null = null;
399
+ config: CompoDocConfig = {};
400
+ showConfigPanel: boolean = false;
401
+ saving: boolean = false;
402
+ lastSaved: Date | null = null;
403
+
404
+ private saveTimeout?: number;
405
+ private readonly SAVE_DELAY = 300; // 300ms debounce
406
+
407
+ get previewUrl(): string {
408
+ return this.sessionId ? `/api/session/${this.sessionId}/docs/` : '';
409
+ }
410
+
411
+ constructor(
412
+ private http: HttpClient,
413
+ private editorService: TemplateEditorService,
414
+ private zipService: ZipExportService,
415
+ private hbsService: HbsRenderService
416
+ ) {}
417
+
418
+ async ngOnInit() {
419
+ try {
420
+ await this.createSession();
421
+ await this.loadSessionTemplates();
422
+ await this.loadSessionConfig();
423
+ this.initializeEditor();
424
+ } catch (error) {
425
+ console.error('Error initializing template playground:', error);
426
+ }
427
+ }
428
+
429
+ ngOnDestroy() {
430
+ if (this.saveTimeout) {
431
+ clearTimeout(this.saveTimeout);
432
+ }
433
+ }
434
+
435
+ private async createSession(): Promise<void> {
436
+ const response = await this.http.post<Session>('/api/session/create', {}).toPromise();
437
+ if (response && response.success) {
438
+ this.sessionId = response.sessionId;
439
+ console.log('Session created:', this.sessionId);
440
+ } else {
441
+ throw new Error('Failed to create session');
442
+ }
443
+ }
444
+
445
+ private async loadSessionTemplates(): Promise<void> {
446
+ if (!this.sessionId) return;
447
+
448
+ const response = await this.http.get<{templates: Template[], success: boolean}>(`/api/session/${this.sessionId}/templates`).toPromise();
449
+ if (response && response.success) {
450
+ this.templates = response.templates;
451
+
452
+ // Auto-select the first template
453
+ if (this.templates.length > 0 && !this.selectedFile) {
454
+ this.selectFile(this.templates[0]);
455
+ }
456
+ }
457
+ }
458
+
459
+ private async loadSessionConfig(): Promise<void> {
460
+ if (!this.sessionId) return;
461
+
462
+ const response = await this.http.get<{config: CompoDocConfig, success: boolean}>(`/api/session/${this.sessionId}/config`).toPromise();
463
+ if (response && response.success) {
464
+ this.config = response.config;
465
+ }
466
+ }
467
+
468
+ initializeEditor() {
469
+ this.editorService.initializeEditor(this.editorContainer.nativeElement);
470
+
471
+ // Set up debounced save on content change
472
+ this.editorService.setOnChangeCallback((content: string) => {
473
+ this.scheduleAutoSave(content);
474
+ });
475
+ }
476
+
477
+ async selectFile(template: Template) {
478
+ this.selectedFile = template;
479
+
480
+ if (!this.sessionId) return;
481
+
482
+ try {
483
+ const response = await this.http.get<{content: string, success: boolean}>(`/api/session/${this.sessionId}/template/${template.path}`).toPromise();
484
+ if (response && response.success) {
485
+ this.editorService.setEditorContent(response.content, template.type === 'template' ? 'handlebars' : 'handlebars');
486
+ }
487
+ } catch (error) {
488
+ console.error('Error loading template:', error);
489
+ }
490
+ }
491
+
492
+ private scheduleAutoSave(content: string): void {
493
+ if (!this.selectedFile || !this.sessionId) return;
494
+
495
+ // Clear existing timeout
496
+ if (this.saveTimeout) {
497
+ clearTimeout(this.saveTimeout);
498
+ }
499
+
500
+ // Set saving indicator
501
+ this.saving = true;
502
+
503
+ // Schedule new save
504
+ this.saveTimeout = window.setTimeout(async () => {
505
+ try {
506
+ await this.saveTemplate(content);
507
+ this.saving = false;
508
+ this.lastSaved = new Date();
509
+ } catch (error) {
510
+ console.error('Error saving template:', error);
511
+ this.saving = false;
512
+ }
513
+ }, this.SAVE_DELAY);
514
+ }
515
+
516
+ private async saveTemplate(content: string): Promise<void> {
517
+ if (!this.selectedFile || !this.sessionId) return;
518
+
519
+ const response = await this.http.post<{success: boolean}>(`/api/session/${this.sessionId}/template/${this.selectedFile.path}`, {
520
+ content
521
+ }).toPromise();
522
+
523
+ if (!response || !response.success) {
524
+ throw new Error('Failed to save template');
525
+ }
526
+ }
527
+
528
+ async updateConfig(): Promise<void> {
529
+ if (!this.sessionId) return;
530
+
531
+ try {
532
+ const response = await this.http.post<{success: boolean}>(`/api/session/${this.sessionId}/config`, {
533
+ config: this.config
534
+ }).toPromise();
535
+
536
+ if (response && response.success) {
537
+ // Config updated, documentation will be regenerated automatically
538
+ }
539
+ } catch (error) {
540
+ console.error('Error updating config:', error);
541
+ }
542
+ }
543
+
544
+ toggleConfigPanel(): void {
545
+ this.showConfigPanel = !this.showConfigPanel;
546
+ }
547
+
548
+ refreshPreview(): void {
549
+ if (this.previewFrame?.nativeElement) {
550
+ this.previewFrame.nativeElement.src = this.previewFrame.nativeElement.src;
551
+ }
552
+ }
553
+
554
+ resetToDefault(): void {
555
+ // Implementation for resetting to default templates
556
+ if (confirm('Are you sure you want to reset all templates to their default values? This action cannot be undone.')) {
557
+ // TODO: Implement reset functionality
558
+ console.log('Reset to default templates');
559
+ }
560
+ }
561
+
562
+ async exportZip(): Promise<void> {
563
+ try {
564
+ if (!this.sessionId) {
565
+ console.error('No active session. Please refresh the page and try again.');
566
+ return;
567
+ }
568
+
569
+ console.log('Creating template package...');
570
+
571
+ // Call server-side ZIP creation endpoint for all templates
572
+ const response = await this.http.post(`/api/session/${this.sessionId}/download-all-templates`, {}, {
573
+ responseType: 'blob',
574
+ observe: 'response'
575
+ }).toPromise();
576
+
577
+ if (!response || !response.body) {
578
+ throw new Error('Failed to create template package');
579
+ }
580
+
581
+ // Get the ZIP file as a blob
582
+ const zipBlob = response.body;
583
+
584
+ // Get filename from response headers or construct it
585
+ const contentDisposition = response.headers.get('Content-Disposition');
586
+ let filename = `compodoc-templates-${this.sessionId}.zip`;
587
+
588
+ if (contentDisposition) {
589
+ const filenameMatch = contentDisposition.match(/filename="([^"]+)"/);
590
+ if (filenameMatch) {
591
+ filename = filenameMatch[1];
592
+ }
593
+ }
594
+
595
+ // Create download link and trigger download
596
+ const url = URL.createObjectURL(zipBlob);
597
+ const a = document.createElement('a');
598
+ a.href = url;
599
+ a.download = filename;
600
+ document.body.appendChild(a);
601
+ a.click();
602
+ document.body.removeChild(a);
603
+ URL.revokeObjectURL(url);
604
+
605
+ console.log('Template package downloaded successfully!');
606
+ } catch (error) {
607
+ console.error('Error downloading template package:', error);
608
+ }
609
+ }
610
+
611
+ trackByName(index: number, item: Template): string {
612
+ return item.name;
613
+ }
614
+ }
@@ -0,0 +1,29 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { BrowserModule } from '@angular/platform-browser';
3
+ import { CommonModule } from '@angular/common';
4
+ import { FormsModule } from '@angular/forms';
5
+ import { HttpClientModule } from '@angular/common/http';
6
+
7
+ import { TemplatePlaygroundComponent } from './template-playground.component';
8
+ import { TemplateEditorService } from './template-editor.service';
9
+ import { ZipExportService } from './zip-export.service';
10
+ import { HbsRenderService } from './hbs-render.service';
11
+
12
+ @NgModule({
13
+ declarations: [
14
+ TemplatePlaygroundComponent
15
+ ],
16
+ imports: [
17
+ BrowserModule,
18
+ CommonModule,
19
+ FormsModule,
20
+ HttpClientModule
21
+ ],
22
+ providers: [
23
+ TemplateEditorService,
24
+ ZipExportService,
25
+ HbsRenderService
26
+ ],
27
+ bootstrap: [TemplatePlaygroundComponent]
28
+ })
29
+ export class TemplatePlaygroundModule { }