/** * AppConfig Service Module * * Servicio de configuración remota para aplicaciones Angular. * Lee configuración desde Firestore y provee feature flags, variables dinámicas, * y detección de actualizaciones. * * Soporta detección de versión cross-platform (web y mobile con Capacitor). * * @example * ```typescript * // main.ts - Con soporte cross-platform * import { provideValtechAppConfig, getAppVersion } from 'valtech-components'; * import { version } from '../package.json'; * * async function bootstrap() { * const appVersion = await getAppVersion(version); * * bootstrapApplication(AppComponent, { * providers: [ * provideValtechFirebase(environment.valtechFirebase), * provideValtechAppConfig({ * currentVersion: appVersion, * showUpdateBanner: true, * }), * ], * }); * } * bootstrap(); * * // component.ts * import { AppConfigService } from 'valtech-components'; * * @Component({...}) * export class MyComponent { * private appConfig = inject(AppConfigService); * * showFeature = computed(() => * this.appConfig.isFeatureEnabled('newDashboard') * ); * } * ``` */ export * from './types'; export { VALTECH_APP_CONFIG, provideValtechAppConfig } from './config'; export { AppConfigService } from './app-config.service'; export { getAppVersion, getAppInfo, type AppVersionInfo } from './version';