Files
breakpilot-compliance/consent-sdk/src/vue/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

33 lines
808 B
TypeScript

/**
* Vue 3 Integration fuer @breakpilot/consent-sdk
*
* Phase 4 refactor: thin barrel. Composables, components, plugin, and the
* injection key live in sibling files.
*
* @example
* ```vue
* <script setup>
* import { useConsent, ConsentBanner, ConsentGate } from '@breakpilot/consent-sdk/vue';
*
* const { hasConsent, acceptAll, rejectAll } = useConsent();
* </script>
*
* <template>
* <ConsentBanner />
* <ConsentGate category="analytics">
* <AnalyticsComponent />
* </ConsentGate>
* </template>
* ```
*/
export { CONSENT_KEY, type ConsentContext } from './context';
export { useConsent, provideConsent } from './composables';
export {
ConsentProvider,
ConsentGate,
ConsentPlaceholder,
ConsentBanner,
} from './components';
export { ConsentPlugin } from './plugin';