Files
breakpilot-compliance/consent-sdk/src/angular/index.ts
T
Sharang Parnerkar 4ed39d2616 refactor(consent-sdk): split ConsentManager + framework adapters under 500 LOC
Phase 4: extract config defaults, Google Consent Mode helper, and framework
adapter internals into sibling files so every source file is under the
hard cap. Public API surface preserved; all 135 tests green, tsup build +
tsc typecheck clean.

- core/ConsentManager 525 -> 467 LOC (extract config + google helpers)
- react/index 511 LOC -> 199 LOC barrel + components/hooks/context
- vue/index 511 LOC -> 32 LOC barrel + components/composables/context/plugin
- angular/index 509 LOC -> 45 LOC barrel + interface/service/module/templates

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 22:25:44 +02:00

46 lines
1.2 KiB
TypeScript

/**
* Angular Integration fuer @breakpilot/consent-sdk
*
* Phase 4 refactor: thin barrel. Interface, service, module definition, and
* template snippets live in sibling files.
*
* @example
* ```typescript
* // app.module.ts
* import { ConsentModule } from '@breakpilot/consent-sdk/angular';
*
* @NgModule({
* imports: [
* ConsentModule.forRoot({
* apiEndpoint: 'https://consent.example.com/api/v1',
* siteId: 'site_abc123',
* }),
* ],
* })
* export class AppModule {}
* ```
*
* @remarks
* Angular hat ein komplexeres Build-System (ngc, ng-packagr). Diese Dateien
* definieren die Schnittstelle — fuer Production muss ein separates Angular
* Library Package erstellt werden (`ng generate library @breakpilot/consent-sdk-angular`).
*/
export type { IConsentService } from './interface';
export { ConsentServiceBase } from './service';
export {
CONSENT_CONFIG,
CONSENT_SERVICE,
ConsentModuleDefinition,
consentServiceFactory,
type ConsentModuleConfig,
} from './module';
export { CONSENT_BANNER_TEMPLATE, CONSENT_GATE_USAGE } from './templates';
export type {
ConsentCategories,
ConsentCategory,
ConsentConfig,
ConsentState,
} from '../types';