Danijel Martinek
9b6deac954
feat(core-consent): add ConsentProvider + useConsent() React subpath
Adds the ./react subpath to @repo/core-consent following the same
pattern as @repo/core-analytics/react:
- ConsentProvider wraps IConsent in React context
- useConsent() returns the injected IConsent or throws ConsentContextError
- RTL tests cover context propagation, grant/withdraw delegation,
isGranted state reflection, getCategories, and missing-provider error
- package.json: ./react export + React optional peerDep + RTL devDeps
- tsconfig: extend react-library.json, include .tsx
- vitest.config: jsdom environment for .test.tsx + jsdom setup
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-19 19:19:47 +00:00
..
2026-05-19 12:39:31 +00:00
2026-05-18 19:08:04 +00:00
2026-05-18 15:54:30 +00:00
2026-05-06 00:29:05 +02:00
2026-05-13 09:51:45 +02:00
2026-05-09 14:13:12 +02:00
2026-05-19 19:19:47 +00:00
2026-05-19 11:51:30 +00:00
2026-05-19 11:01:17 +00:00
2026-05-19 12:48:50 +00:00
2026-05-05 19:51:34 +02:00
2026-05-18 19:12:17 +00:00
2026-05-18 19:16:23 +00:00
2026-05-18 19:19:54 +00:00