4ed39d2616
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>
33 lines
808 B
TypeScript
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';
|