@sneat/core 0.7.0 → 0.9.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment-config.js","sourceRoot":"","sources":["../../../../../libs/core/src/lib/environment-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"environment-config.js","sourceRoot":"","sources":["../../../../../libs/core/src/lib/environment-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AA0D/C,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,cAAc,CACnD,gBAAgB,CACjB,CAAC;AACF,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,cAAc,CAC9C,WAAW,CACZ,CAAC","sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { BrowserOptions } from '@sentry/browser';\nimport { PostHogConfig } from 'posthog-js';\n\nexport interface IFirebaseEmulatorConfig {\n authPort: number;\n authHost?: string;\n firestorePort: number;\n firestoreHost?: string;\n}\n\nexport interface IFirebaseConfig {\n emulator?: IFirebaseEmulatorConfig;\n //\n projectId: string;\n appId: string;\n measurementId?: string;\n messagingSenderId?: string;\n apiKey: string;\n // Optional: when omitted, appEnvironmentConfig() defaults it to the current\n // origin (location.hostname) so the OAuth redirect stays same-origin /\n // first-party. Set it explicitly only to force a specific auth domain (e.g.\n // Capacitor, or a shared SSO domain).\n authDomain?: string;\n databaseURL?: string;\n storageBucket?: string;\n}\n\ntype OnlyValidKeys<T, Shape> = T extends Shape\n ? Exclude<keyof T, keyof Shape> extends never\n ? T\n : never\n : never;\n\nexport interface IPosthogSettings {\n readonly token: string;\n readonly config?: OnlyValidKeys<\n Partial<PostHogConfig>,\n Partial<PostHogConfig>\n >;\n}\n\nexport interface IEnvironmentConfig {\n production: boolean;\n useNgrok?: boolean;\n posthog?: IPosthogSettings;\n sentry?: BrowserOptions;\n agents: Record<string, string>;\n firebaseConfig: IFirebaseConfig;\n firebaseBaseUrl?: string;\n // Web OAuth sign-in strategy. Defaults to 'popup'. Use 'redirect' for apps\n // served at their own same-origin authDomain where signInWithPopup is\n // unreliable under current Chrome COOP behavior (the popup closes but its\n // result never reaches the opener). Redirect completion is handled at startup\n // by BaseAppComponent's getRedirectResult() call.\n signInMethod?: 'popup' | 'redirect';\n}\n\nexport const FirebaseConfigToken = new InjectionToken<IFirebaseConfig>(\n 'firebaseConfig',\n);\nexport const EnvConfigToken = new InjectionToken<IEnvironmentConfig>(\n 'envConfig',\n);\n"]}
|