All four files split into focused sibling modules so every file lands
comfortably under the 300-LOC soft target (hard cap 500):
hooks.ts (474→43) → hooks-core / hooks-dsgvo / hooks-compliance
hooks-rag-security / hooks-ui
dsr-portal.ts (464→129) → dsr-portal-translations / dsr-portal-render
provider.tsx (462→247) → provider-effects / provider-callbacks
sync.ts (435→299) → sync-storage / sync-conflict
Zero behaviour changes. All public APIs remain importable from the
original paths (hooks.ts re-exports every hook, provider.tsx keeps all
named exports, sync.ts preserves StateSyncManager + factory).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
44 lines
973 B
TypeScript
44 lines
973 B
TypeScript
'use client'
|
|
|
|
/**
|
|
* Public re-export barrel for all React hooks.
|
|
* All hooks remain importable from this path — split into focused sibling files:
|
|
* hooks-core.ts — useCompliance, useComplianceState, useComplianceDispatch
|
|
* hooks-dsgvo.ts — useDSGVO, useConsent, useDSR
|
|
* hooks-compliance.ts — useComplianceModule, useControls, useEvidence, useRisks
|
|
* hooks-rag-security.ts — useRAG, useSecurity
|
|
* hooks-ui.ts — useSDKNavigation, useSync, useCheckpoints, useExport, useCommandBar
|
|
*/
|
|
|
|
export {
|
|
useCompliance,
|
|
useComplianceState,
|
|
useComplianceDispatch,
|
|
} from './hooks-core'
|
|
|
|
export {
|
|
useDSGVO,
|
|
useConsent,
|
|
useDSR,
|
|
} from './hooks-dsgvo'
|
|
|
|
export {
|
|
useComplianceModule,
|
|
useControls,
|
|
useEvidence,
|
|
useRisks,
|
|
} from './hooks-compliance'
|
|
|
|
export {
|
|
useRAG,
|
|
useSecurity,
|
|
} from './hooks-rag-security'
|
|
|
|
export {
|
|
useSDKNavigation,
|
|
useSync,
|
|
useCheckpoints,
|
|
useExport,
|
|
useCommandBar,
|
|
} from './hooks-ui'
|