@c15t/react 2.0.0-rc.3 → 2.0.0-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/components/consent-banner.js +4 -0
- package/client/components/consent-dialog-link.js +3 -0
- package/client/components/consent-dialog-trigger.js +3 -0
- package/client/components/consent-dialog.js +4 -0
- package/client/components/consent-widget.js +4 -0
- package/client/components/frame.js +3 -0
- package/client/components/iab-consent-banner.js +4 -0
- package/client/components/iab-consent-dialog.js +4 -0
- package/dist/components/consent-banner/atoms/root.cjs +1 -1
- package/dist/components/consent-banner/atoms/root.js +1 -1
- package/dist/components/consent-banner/consent-banner.cjs +1 -1
- package/dist/components/consent-banner/consent-banner.js +1 -1
- package/dist/components/consent-dialog/atoms/root.cjs +1 -1
- package/dist/components/consent-dialog/atoms/root.js +1 -1
- package/dist/components/consent-dialog/consent-dialog.cjs +1 -1
- package/dist/components/consent-dialog/consent-dialog.js +1 -1
- package/dist/components/consent-dialog-link/index.cjs +1 -0
- package/dist/components/consent-dialog-link/index.js +1 -0
- package/dist/components/consent-dialog-trigger/atoms/button.cjs +1 -1
- package/dist/components/consent-dialog-trigger/atoms/button.js +1 -1
- package/dist/components/consent-dialog-trigger/atoms/root.cjs +1 -1
- package/dist/components/consent-dialog-trigger/atoms/root.js +1 -1
- package/dist/components/consent-preferences-link/consent-preferences-link.cjs +1 -0
- package/dist/components/consent-preferences-link/consent-preferences-link.js +1 -0
- package/dist/components/consent-preferences-link/index.cjs +1 -0
- package/dist/components/consent-preferences-link/index.js +1 -0
- package/dist/components/consent-widget/atoms/button.cjs +1 -1
- package/dist/components/consent-widget/atoms/button.js +1 -1
- package/dist/components/consent-widget/consent-widget.cjs +1 -1
- package/dist/components/consent-widget/consent-widget.js +1 -1
- package/dist/components/frame/frame.cjs +1 -1
- package/dist/components/frame/frame.js +1 -1
- package/dist/components/iab-consent-banner/atoms/root.cjs +1 -1
- package/dist/components/iab-consent-banner/atoms/root.js +1 -1
- package/dist/components/iab-consent-banner/iab-consent-banner.cjs +1 -1
- package/dist/components/iab-consent-banner/iab-consent-banner.js +1 -1
- package/dist/components/iab-consent-dialog/atoms/footer.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/footer.js +1 -1
- package/dist/components/iab-consent-dialog/atoms/root.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/root.js +1 -1
- package/dist/components/iab-consent-dialog/iab-consent-dialog.cjs +1 -1
- package/dist/components/iab-consent-dialog/iab-consent-dialog.js +1 -1
- package/dist/components/shared/libs/policy-actions.cjs +1 -0
- package/dist/components/shared/libs/policy-actions.js +1 -0
- package/dist/components/shared/primitives/button.cjs +1 -1
- package/dist/components/shared/primitives/button.js +1 -1
- package/dist/headless.cjs +1 -1
- package/dist/headless.js +1 -1
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-consent-dialog-trigger.cjs +1 -0
- package/dist/hooks/use-consent-dialog-trigger.js +1 -0
- package/dist/hooks/use-consent-manager.cjs +1 -1
- package/dist/hooks/use-consent-manager.js +1 -1
- package/dist/hooks/use-headless-consent-ui.cjs +1 -0
- package/dist/hooks/use-headless-consent-ui.js +1 -0
- package/dist/hooks/use-headless-iab-consent-ui.cjs +1 -0
- package/dist/hooks/use-headless-iab-consent-ui.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/providers/consent-manager-provider.cjs +1 -1
- package/dist/providers/consent-manager-provider.js +1 -1
- package/dist/server/fetch-ssr-data.cjs +1 -1
- package/dist/server/fetch-ssr-data.js +1 -1
- package/dist/server/headers.cjs +1 -1
- package/dist/server/headers.js +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/init-cache-key.cjs +1 -0
- package/dist/server/init-cache-key.js +1 -0
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/{dist → dist-types}/components/consent-banner/atoms/overlay.d.ts +0 -1
- package/{dist → dist-types}/components/consent-banner/atoms/root.d.ts +1 -2
- package/{dist → dist-types}/components/consent-banner/components.d.ts +0 -1
- package/{dist → dist-types}/components/consent-banner/consent-banner.d.ts +8 -7
- package/{dist → dist-types}/components/consent-banner/error-boundary.d.ts +0 -1
- package/{dist → dist-types}/components/consent-banner/index.d.ts +0 -1
- package/{dist → dist-types}/components/consent-dialog/atoms/card.d.ts +0 -1
- package/{dist → dist-types}/components/consent-dialog/atoms/overlay.d.ts +0 -1
- package/{dist → dist-types}/components/consent-dialog/atoms/root.d.ts +1 -2
- package/{dist → dist-types}/components/consent-dialog/consent-dialog.d.ts +1 -2
- package/{dist → dist-types}/components/consent-dialog/index.d.ts +0 -1
- package/dist-types/components/consent-dialog-link/index.d.ts +1 -0
- package/{dist → dist-types}/components/consent-dialog-trigger/atoms/button.d.ts +0 -1
- package/{dist → dist-types}/components/consent-dialog-trigger/atoms/icon.d.ts +0 -1
- package/{dist → dist-types}/components/consent-dialog-trigger/atoms/root.d.ts +0 -1
- package/{dist → dist-types}/components/consent-dialog-trigger/atoms/text.d.ts +0 -1
- package/{dist → dist-types}/components/consent-dialog-trigger/consent-dialog-trigger.d.ts +0 -1
- package/{dist → dist-types}/components/consent-dialog-trigger/index.d.ts +0 -1
- package/{dist → dist-types}/components/consent-dialog-trigger/types.d.ts +1 -2
- package/{dist → dist-types}/components/consent-dialog-trigger/use-draggable.d.ts +1 -2
- package/dist-types/components/consent-preferences-link/consent-preferences-link.d.ts +15 -0
- package/dist-types/components/consent-preferences-link/index.d.ts +1 -0
- package/{dist → dist-types}/components/consent-widget/atoms/accordion.d.ts +0 -1
- package/{dist → dist-types}/components/consent-widget/atoms/button.d.ts +0 -1
- package/{dist → dist-types}/components/consent-widget/atoms/footer.d.ts +0 -1
- package/{dist → dist-types}/components/consent-widget/atoms/root.d.ts +0 -1
- package/{dist → dist-types}/components/consent-widget/consent-widget.d.ts +0 -1
- package/{dist → dist-types}/components/consent-widget/index.d.ts +0 -1
- package/{dist → dist-types}/components/consent-widget/types.d.ts +0 -1
- package/{dist → dist-types}/components/frame/atoms.d.ts +1 -2
- package/{dist → dist-types}/components/frame/frame.d.ts +0 -1
- package/{dist → dist-types}/components/frame/index.d.ts +0 -1
- package/{dist → dist-types}/components/frame/types.d.ts +1 -2
- package/{dist → dist-types}/components/iab-consent-banner/atoms/button-group.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-banner/atoms/card.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-banner/atoms/description.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-banner/atoms/footer.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-banner/atoms/header.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-banner/atoms/overlay.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-banner/atoms/root.d.ts +1 -2
- package/{dist → dist-types}/components/iab-consent-banner/atoms/title.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-banner/iab-consent-banner.d.ts +1 -2
- package/{dist → dist-types}/components/iab-consent-banner/index.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/card.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/content.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/footer.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/header.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/overlay.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/purpose-item.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/root.d.ts +1 -2
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/stack-item.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/tabs.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/atoms/vendor-list.d.ts +1 -2
- package/{dist → dist-types}/components/iab-consent-dialog/hooks/use-gvl-data.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/iab-consent-dialog.d.ts +1 -2
- package/{dist → dist-types}/components/iab-consent-dialog/index.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/types.d.ts +0 -1
- package/{dist → dist-types}/components/iab-consent-dialog/use-iab-translations.d.ts +0 -1
- package/dist-types/components/shared/libs/policy-actions.d.ts +26 -0
- package/{dist → dist-types}/components/shared/libs/polymorphic.d.ts +0 -1
- package/{dist → dist-types}/components/shared/libs/recursive-clone-children.d.ts +0 -1
- package/{dist → dist-types}/components/shared/primitives/box.d.ts +0 -1
- package/{dist → dist-types}/components/shared/primitives/button.d.ts +5 -2
- package/{dist → dist-types}/components/shared/primitives/button.types.d.ts +17 -1
- package/{dist → dist-types}/components/shared/primitives/legal-links/index.d.ts +1 -2
- package/{dist → dist-types}/components/shared/ui/accordion/accordion.d.ts +1 -2
- package/{dist → dist-types}/components/shared/ui/accordion/accordion.types.d.ts +1 -2
- package/{dist → dist-types}/components/shared/ui/accordion/index.d.ts +0 -1
- package/{dist → dist-types}/components/shared/ui/animated-collapse/animated-collapse.d.ts +0 -1
- package/{dist → dist-types}/components/shared/ui/animated-collapse/index.d.ts +0 -1
- package/{dist → dist-types}/components/shared/ui/button/button.d.ts +1 -2
- package/{dist → dist-types}/components/shared/ui/button/button.types.d.ts +0 -1
- package/{dist → dist-types}/components/shared/ui/button/index.d.ts +0 -1
- package/{dist → dist-types}/components/shared/ui/icon.d.ts +0 -1
- package/{dist → dist-types}/components/shared/ui/logo.d.ts +0 -1
- package/{dist → dist-types}/components/shared/ui/switch/index.d.ts +0 -1
- package/{dist → dist-types}/components/shared/ui/switch/switch.d.ts +1 -2
- package/{dist → dist-types}/components/shared/ui/switch/switch.types.d.ts +1 -2
- package/{dist → dist-types}/context/consent-manager-context.d.ts +1 -2
- package/{dist → dist-types}/context/consent-tracking-context.d.ts +0 -1
- package/{dist → dist-types}/context/theme-context.d.ts +0 -1
- package/dist-types/headless.d.ts +10 -0
- package/{dist → dist-types}/hooks/index.d.ts +3 -1
- package/{dist → dist-types}/hooks/use-color-scheme.d.ts +0 -1
- package/{dist → dist-types}/hooks/use-component-config.d.ts +1 -2
- package/dist-types/hooks/use-consent-dialog-trigger.d.ts +10 -0
- package/{dist → dist-types}/hooks/use-consent-manager.d.ts +1 -2
- package/{dist → dist-types}/hooks/use-focus-trap.d.ts +0 -1
- package/dist-types/hooks/use-headless-consent-ui.d.ts +46 -0
- package/dist-types/hooks/use-headless-iab-consent-ui.d.ts +41 -0
- package/{dist → dist-types}/hooks/use-reduced-motion.d.ts +0 -1
- package/{dist → dist-types}/hooks/use-scroll-lock.d.ts +0 -1
- package/{dist → dist-types}/hooks/use-ssr-status.d.ts +0 -1
- package/{dist → dist-types}/hooks/use-styles.d.ts +0 -1
- package/{dist → dist-types}/hooks/use-text-direction.d.ts +0 -1
- package/{dist → dist-types}/hooks/use-theme.d.ts +0 -1
- package/{dist → dist-types}/hooks/use-translations.d.ts +1 -2
- package/{dist → dist-types}/index.d.ts +6 -3
- package/{dist → dist-types}/providers/consent-manager-provider.d.ts +0 -1
- package/{dist → dist-types}/server/fetch-ssr-data.d.ts +1 -2
- package/{dist → dist-types}/server/headers.d.ts +2 -2
- package/{dist → dist-types}/server/index.d.ts +1 -1
- package/dist-types/server/init-cache-key.d.ts +21 -0
- package/{dist → dist-types}/server/normalize-url.d.ts +0 -1
- package/{dist → dist-types}/server/types.d.ts +1 -2
- package/{dist → dist-types}/types/consent-manager.d.ts +8 -2
- package/{dist → dist-types}/types/theme/index.d.ts +0 -1
- package/dist-types/types/theme/style-keys.d.ts +1 -0
- package/{dist → dist-types}/types/theme/style-types.d.ts +4 -3
- package/{dist → dist-types}/utils/cn.d.ts +1 -2
- package/{dist → dist-types}/utils/merge-styles.d.ts +0 -1
- package/{dist → dist-types}/utils/test-helpers.d.ts +0 -1
- package/{dist → dist-types}/utils/theme-utils.d.ts +1 -2
- package/dist-types/version.d.ts +1 -0
- package/docs/README.md +76 -0
- package/docs/building-headless-components.md +245 -0
- package/docs/callbacks.md +117 -0
- package/docs/components/consent-banner.md +174 -0
- package/docs/components/consent-dialog-link.md +59 -0
- package/docs/components/consent-dialog-trigger.md +103 -0
- package/docs/components/consent-dialog.md +137 -0
- package/docs/components/consent-manager-provider.md +422 -0
- package/docs/components/consent-widget.md +78 -0
- package/docs/components/dev-tools.md +63 -0
- package/docs/components/frame.md +73 -0
- package/docs/concepts/client-modes.md +163 -0
- package/docs/concepts/consent-categories.md +97 -0
- package/docs/concepts/consent-models.md +112 -0
- package/docs/concepts/cookie-management.md +122 -0
- package/docs/concepts/glossary.md +23 -0
- package/docs/concepts/initialization-flow.md +141 -0
- package/docs/concepts/policy-packs.md +227 -0
- package/docs/headless.md +184 -0
- package/docs/hooks/use-color-scheme.md +40 -0
- package/docs/hooks/use-consent-manager/checking-consent.md +94 -0
- package/docs/hooks/use-consent-manager/location-info.md +95 -0
- package/docs/hooks/use-consent-manager/overview.md +390 -0
- package/docs/hooks/use-consent-manager/setting-consent.md +92 -0
- package/docs/hooks/use-draggable.md +57 -0
- package/docs/hooks/use-focus-trap.md +41 -0
- package/docs/hooks/use-reduced-motion.md +35 -0
- package/docs/hooks/use-ssr-status.md +31 -0
- package/docs/hooks/use-text-direction.md +49 -0
- package/docs/hooks/use-translations.md +116 -0
- package/docs/iab/consent-banner.md +95 -0
- package/docs/iab/consent-dialog.md +135 -0
- package/docs/iab/overview.md +119 -0
- package/docs/iab/use-gvl-data.md +208 -0
- package/docs/iframe-blocking.md +107 -0
- package/docs/integrations/databuddy.md +186 -0
- package/docs/integrations/google-tag-manager.md +153 -0
- package/docs/integrations/google-tag.md +149 -0
- package/docs/integrations/linkedin-insights.md +109 -0
- package/docs/integrations/meta-pixel.md +342 -0
- package/docs/integrations/microsoft-uet.md +112 -0
- package/docs/integrations/overview.md +89 -0
- package/docs/integrations/posthog.md +177 -0
- package/docs/integrations/tiktok-pixel.md +113 -0
- package/docs/integrations/x-pixel.md +143 -0
- package/docs/internationalization.md +197 -0
- package/docs/network-blocker.md +178 -0
- package/docs/optimization.md +117 -0
- package/docs/policy-packs.md +240 -0
- package/docs/quickstart.md +136 -0
- package/docs/script-loader.md +300 -0
- package/docs/server-side.md +153 -0
- package/docs/styling/classnames.md +84 -0
- package/docs/styling/color-scheme.md +82 -0
- package/docs/styling/css-variables.md +92 -0
- package/docs/styling/overview.md +315 -0
- package/docs/styling/slots.md +93 -0
- package/docs/styling/tailwind.md +86 -0
- package/docs/styling/tokens.md +214 -0
- package/docs/troubleshooting.md +137 -0
- package/package.json +64 -17
- package/dist/components/__tests__/active-ui-transitions.e2e.test.cjs +0 -1
- package/dist/components/__tests__/active-ui-transitions.e2e.test.js +0 -1
- package/dist/components/__tests__/consent-flow.e2e.test.cjs +0 -1
- package/dist/components/__tests__/consent-flow.e2e.test.js +0 -1
- package/dist/components/__tests__/models-prop.e2e.test.cjs +0 -1
- package/dist/components/__tests__/models-prop.e2e.test.js +0 -1
- package/dist/components/__tests__/ui-source-tracking.e2e.test.cjs +0 -1
- package/dist/components/__tests__/ui-source-tracking.e2e.test.js +0 -1
- package/dist/components/consent-banner/atoms/overlay.d.ts.map +0 -1
- package/dist/components/consent-banner/atoms/root.d.ts.map +0 -1
- package/dist/components/consent-banner/components.d.ts.map +0 -1
- package/dist/components/consent-banner/consent-banner.d.ts.map +0 -1
- package/dist/components/consent-banner/error-boundary.d.ts.map +0 -1
- package/dist/components/consent-banner/index.d.ts.map +0 -1
- package/dist/components/consent-dialog/atoms/card.d.ts.map +0 -1
- package/dist/components/consent-dialog/atoms/overlay.d.ts.map +0 -1
- package/dist/components/consent-dialog/atoms/root.d.ts.map +0 -1
- package/dist/components/consent-dialog/consent-dialog.d.ts.map +0 -1
- package/dist/components/consent-dialog/index.d.ts.map +0 -1
- package/dist/components/consent-dialog-trigger/atoms/button.d.ts.map +0 -1
- package/dist/components/consent-dialog-trigger/atoms/icon.d.ts.map +0 -1
- package/dist/components/consent-dialog-trigger/atoms/root.d.ts.map +0 -1
- package/dist/components/consent-dialog-trigger/atoms/text.d.ts.map +0 -1
- package/dist/components/consent-dialog-trigger/consent-dialog-trigger.d.ts.map +0 -1
- package/dist/components/consent-dialog-trigger/index.d.ts.map +0 -1
- package/dist/components/consent-dialog-trigger/types.d.ts.map +0 -1
- package/dist/components/consent-dialog-trigger/use-draggable.d.ts.map +0 -1
- package/dist/components/consent-widget/atoms/accordion.d.ts.map +0 -1
- package/dist/components/consent-widget/atoms/button.d.ts.map +0 -1
- package/dist/components/consent-widget/atoms/footer.d.ts.map +0 -1
- package/dist/components/consent-widget/atoms/root.d.ts.map +0 -1
- package/dist/components/consent-widget/consent-widget.d.ts.map +0 -1
- package/dist/components/consent-widget/index.d.ts.map +0 -1
- package/dist/components/consent-widget/types.d.ts.map +0 -1
- package/dist/components/frame/atoms.d.ts.map +0 -1
- package/dist/components/frame/frame.d.ts.map +0 -1
- package/dist/components/frame/index.d.ts.map +0 -1
- package/dist/components/frame/types.d.ts.map +0 -1
- package/dist/components/iab/__tests__/e2e-setup.cjs +0 -1
- package/dist/components/iab/__tests__/e2e-setup.js +0 -1
- package/dist/components/iab/__tests__/fixtures/mock-consent-state.cjs +0 -1
- package/dist/components/iab/__tests__/fixtures/mock-consent-state.d.ts +0 -212
- package/dist/components/iab/__tests__/fixtures/mock-consent-state.d.ts.map +0 -1
- package/dist/components/iab/__tests__/fixtures/mock-consent-state.js +0 -1
- package/dist/components/iab/__tests__/iab-banner.e2e.test.cjs +0 -1
- package/dist/components/iab/__tests__/iab-banner.e2e.test.js +0 -1
- package/dist/components/iab/__tests__/iab-consent-flow.e2e.test.cjs +0 -1
- package/dist/components/iab/__tests__/iab-consent-flow.e2e.test.js +0 -1
- package/dist/components/iab/__tests__/iab-events.e2e.test.cjs +0 -1
- package/dist/components/iab/__tests__/iab-events.e2e.test.js +0 -1
- package/dist/components/iab/__tests__/iab-gvl.e2e.test.cjs +0 -1
- package/dist/components/iab/__tests__/iab-gvl.e2e.test.js +0 -1
- package/dist/components/iab/__tests__/iab-preference-center.e2e.test.cjs +0 -1
- package/dist/components/iab/__tests__/iab-preference-center.e2e.test.js +0 -1
- package/dist/components/iab/__tests__/iab-storage.e2e.test.cjs +0 -1
- package/dist/components/iab/__tests__/iab-storage.e2e.test.js +0 -1
- package/dist/components/iab/__tests__/iab-stub.e2e.test.cjs +0 -1
- package/dist/components/iab/__tests__/iab-stub.e2e.test.js +0 -1
- package/dist/components/iab/__tests__/iab-tcfapi.e2e.test.cjs +0 -1
- package/dist/components/iab/__tests__/iab-tcfapi.e2e.test.js +0 -1
- package/dist/components/iab/__tests__/msw-handlers.cjs +0 -1
- package/dist/components/iab/__tests__/msw-handlers.js +0 -1
- package/dist/components/iab-consent-banner/__tests__/iab-consent-banner.test.cjs +0 -1
- package/dist/components/iab-consent-banner/__tests__/iab-consent-banner.test.js +0 -1
- package/dist/components/iab-consent-banner/atoms/button-group.d.ts.map +0 -1
- package/dist/components/iab-consent-banner/atoms/card.d.ts.map +0 -1
- package/dist/components/iab-consent-banner/atoms/description.d.ts.map +0 -1
- package/dist/components/iab-consent-banner/atoms/footer.d.ts.map +0 -1
- package/dist/components/iab-consent-banner/atoms/header.d.ts.map +0 -1
- package/dist/components/iab-consent-banner/atoms/overlay.d.ts.map +0 -1
- package/dist/components/iab-consent-banner/atoms/root.d.ts.map +0 -1
- package/dist/components/iab-consent-banner/atoms/title.d.ts.map +0 -1
- package/dist/components/iab-consent-banner/iab-consent-banner.d.ts.map +0 -1
- package/dist/components/iab-consent-banner/index.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/__tests__/legitimate-interest-ui.test.cjs +0 -1
- package/dist/components/iab-consent-dialog/__tests__/legitimate-interest-ui.test.js +0 -1
- package/dist/components/iab-consent-dialog/__tests__/preference-center.test.cjs +0 -1
- package/dist/components/iab-consent-dialog/__tests__/preference-center.test.js +0 -1
- package/dist/components/iab-consent-dialog/__tests__/purposes-tab.test.cjs +0 -1
- package/dist/components/iab-consent-dialog/__tests__/purposes-tab.test.js +0 -1
- package/dist/components/iab-consent-dialog/__tests__/vendors-tab.test.cjs +0 -1
- package/dist/components/iab-consent-dialog/__tests__/vendors-tab.test.js +0 -1
- package/dist/components/iab-consent-dialog/atoms/card.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/atoms/content.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/atoms/footer.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/atoms/header.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/atoms/overlay.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/atoms/purpose-item.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/atoms/root.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/atoms/stack-item.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/atoms/tabs.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/atoms/vendor-list.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/hooks/use-gvl-data.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/iab-consent-dialog.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/index.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/types.d.ts.map +0 -1
- package/dist/components/iab-consent-dialog/use-iab-translations.d.ts.map +0 -1
- package/dist/components/shared/libs/polymorphic.d.ts.map +0 -1
- package/dist/components/shared/libs/recursive-clone-children.d.ts.map +0 -1
- package/dist/components/shared/primitives/box.d.ts.map +0 -1
- package/dist/components/shared/primitives/button.d.ts.map +0 -1
- package/dist/components/shared/primitives/button.types.d.ts.map +0 -1
- package/dist/components/shared/primitives/legal-links/index.d.ts.map +0 -1
- package/dist/components/shared/ui/__tests__/primitives.test.cjs +0 -1
- package/dist/components/shared/ui/__tests__/primitives.test.js +0 -1
- package/dist/components/shared/ui/accordion/accordion.d.ts.map +0 -1
- package/dist/components/shared/ui/accordion/accordion.types.d.ts.map +0 -1
- package/dist/components/shared/ui/accordion/index.d.ts.map +0 -1
- package/dist/components/shared/ui/animated-collapse/animated-collapse.d.ts.map +0 -1
- package/dist/components/shared/ui/animated-collapse/index.d.ts.map +0 -1
- package/dist/components/shared/ui/button/button.d.ts.map +0 -1
- package/dist/components/shared/ui/button/button.types.d.ts.map +0 -1
- package/dist/components/shared/ui/button/index.d.ts.map +0 -1
- package/dist/components/shared/ui/icon.d.ts.map +0 -1
- package/dist/components/shared/ui/logo.d.ts.map +0 -1
- package/dist/components/shared/ui/switch/index.d.ts.map +0 -1
- package/dist/components/shared/ui/switch/switch.d.ts.map +0 -1
- package/dist/components/shared/ui/switch/switch.types.d.ts.map +0 -1
- package/dist/context/consent-manager-context.d.ts.map +0 -1
- package/dist/context/consent-tracking-context.d.ts.map +0 -1
- package/dist/context/theme-context.d.ts.map +0 -1
- package/dist/headless.d.ts +0 -8
- package/dist/headless.d.ts.map +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-cleans-up-system-preference-listener-on-unmount-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-cleans-up-system-preference-listener-on-unmount-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-handles-default-theme-based-on-document-class-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-handles-default-theme-based-on-document-class-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-responds-to-system-preference-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-responds-to-system-preference-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-sets-dark-theme-correctly-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-sets-dark-theme-correctly-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-updates-theme-when-default-theme-changes-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-updates-theme-when-default-theme-changes-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-updates-theme-when-system-preference-changes-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-color-scheme.test.tsx/useColorScheme-updates-theme-when-system-preference-changes-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-consent-manager.test.tsx/useConsentManager-provides-manager-object-when-configured-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-consent-manager.test.tsx/useConsentManager-provides-manager-object-when-configured-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-styles.test.tsx/useStyles-handles-string-className-correctly-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-styles.test.tsx/useStyles-handles-string-className-correctly-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-styles.test.tsx/useStyles-merges-theme-and-component-styles-correctly-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-styles.test.tsx/useStyles-merges-theme-and-component-styles-correctly-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-styles.test.tsx/useStyles-should-remove-base-default-styles-but-keep-theme-and-component-classNames-when-noStyle--true-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-styles.test.tsx/useStyles-should-remove-base-default-styles-but-keep-theme-and-component-classNames-when-noStyle--true-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-styles.test.tsx/useStyles-should-remove-default-styles-but-keep-custom-classNames-when-theme-object-provides-noStyle--true-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-styles.test.tsx/useStyles-should-remove-default-styles-but-keep-custom-classNames-when-theme-object-provides-noStyle--true-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-theme.test.tsx/useTheme-local-theme-takes-precedence-over-global-theme-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-theme.test.tsx/useTheme-local-theme-takes-precedence-over-global-theme-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-translations.test.tsx/useTranslations-Custom-English-instead-of-English-when-German-is-selected-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-translations.test.tsx/useTranslations-Custom-English-instead-of-English-when-German-is-selected-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-translations.test.tsx/useTranslations-falls-back-to-English-when-selected-language-is-not-available-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-translations.test.tsx/useTranslations-falls-back-to-English-when-selected-language-is-not-available-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-translations.test.tsx/useTranslations-merges-custom-translations-with-defaults-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-translations.test.tsx/useTranslations-merges-custom-translations-with-defaults-1.js +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-translations.test.tsx/useTranslations-returns-English-translations-by-default-1.cjs +0 -1
- package/dist/hooks/__tests__/__screenshots__/use-translations.test.tsx/useTranslations-returns-English-translations-by-default-1.js +0 -1
- package/dist/hooks/__tests__/use-color-scheme.test.cjs +0 -1
- package/dist/hooks/__tests__/use-color-scheme.test.js +0 -1
- package/dist/hooks/__tests__/use-consent-manager.test.cjs +0 -1
- package/dist/hooks/__tests__/use-consent-manager.test.js +0 -1
- package/dist/hooks/__tests__/use-focus-trap.test.cjs +0 -1
- package/dist/hooks/__tests__/use-focus-trap.test.js +0 -1
- package/dist/hooks/__tests__/use-scroll-lock.test.cjs +0 -1
- package/dist/hooks/__tests__/use-scroll-lock.test.js +0 -1
- package/dist/hooks/__tests__/use-styles.test.cjs +0 -1
- package/dist/hooks/__tests__/use-styles.test.js +0 -1
- package/dist/hooks/__tests__/use-theme.test.cjs +0 -1
- package/dist/hooks/__tests__/use-theme.test.js +0 -1
- package/dist/hooks/__tests__/use-translations.test.cjs +0 -1
- package/dist/hooks/__tests__/use-translations.test.js +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/use-color-scheme.d.ts.map +0 -1
- package/dist/hooks/use-component-config.d.ts.map +0 -1
- package/dist/hooks/use-consent-manager.d.ts.map +0 -1
- package/dist/hooks/use-focus-trap.d.ts.map +0 -1
- package/dist/hooks/use-reduced-motion.d.ts.map +0 -1
- package/dist/hooks/use-scroll-lock.d.ts.map +0 -1
- package/dist/hooks/use-ssr-status.d.ts.map +0 -1
- package/dist/hooks/use-styles.d.ts.map +0 -1
- package/dist/hooks/use-text-direction.d.ts.map +0 -1
- package/dist/hooks/use-theme.d.ts.map +0 -1
- package/dist/hooks/use-translations.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/mockServiceWorker.js +0 -349
- package/dist/providers/__tests__/__screenshots__/provider-basic.test.tsx/ConsentManagerProvider-Basic-Request-Behavior-should-make-a-new-request-when-core-options-change-1.cjs +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-basic.test.tsx/ConsentManagerProvider-Basic-Request-Behavior-should-make-a-new-request-when-core-options-change-1.js +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-basic.test.tsx/ConsentManagerProvider-Basic-Request-Behavior-should-not-make-additional-requests-when-props-change-but-core-options-remain-same-1.cjs +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-basic.test.tsx/ConsentManagerProvider-Basic-Request-Behavior-should-not-make-additional-requests-when-props-change-but-core-options-remain-same-1.js +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-basic.test.tsx/ConsentManagerProvider-Basic-Request-Behavior-should-only-make-one-initial-request-for-consent-banner-status-1.cjs +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-basic.test.tsx/ConsentManagerProvider-Basic-Request-Behavior-should-only-make-one-initial-request-for-consent-banner-status-1.js +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-hydration.test.tsx/ConsentManagerProvider-Hydration-Behavior-should-handle-rapid-re-renders-without-blocking-children-1.cjs +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-hydration.test.tsx/ConsentManagerProvider-Hydration-Behavior-should-handle-rapid-re-renders-without-blocking-children-1.js +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-hydration.test.tsx/ConsentManagerProvider-Hydration-Behavior-should-not-block-SSR-provider-content-when-SSR-provider-wraps-ConsentManager-1.cjs +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-hydration.test.tsx/ConsentManagerProvider-Hydration-Behavior-should-not-block-SSR-provider-content-when-SSR-provider-wraps-ConsentManager-1.js +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-hydration.test.tsx/ConsentManagerProvider-Hydration-Behavior-should-render-children-immediately-without-blocking-during-hydration-1.cjs +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-hydration.test.tsx/ConsentManagerProvider-Hydration-Behavior-should-render-children-immediately-without-blocking-during-hydration-1.js +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-hydration.test.tsx/ConsentManagerProvider-Hydration-Behavior-should-use-startTransition-for-non-blocking-state-updates-during-hydration-1.cjs +0 -1
- package/dist/providers/__tests__/__screenshots__/provider-hydration.test.tsx/ConsentManagerProvider-Hydration-Behavior-should-use-startTransition-for-non-blocking-state-updates-during-hydration-1.js +0 -1
- package/dist/providers/__tests__/provider-basic.test.cjs +0 -1
- package/dist/providers/__tests__/provider-basic.test.js +0 -1
- package/dist/providers/__tests__/provider-context.test.cjs +0 -1
- package/dist/providers/__tests__/provider-context.test.js +0 -1
- package/dist/providers/__tests__/provider-errors.test.cjs +0 -1
- package/dist/providers/__tests__/provider-errors.test.js +0 -1
- package/dist/providers/__tests__/provider-hydration.test.cjs +0 -1
- package/dist/providers/__tests__/provider-hydration.test.js +0 -1
- package/dist/providers/__tests__/test-helpers.cjs +0 -1
- package/dist/providers/__tests__/test-helpers.js +0 -1
- package/dist/providers/consent-manager-provider.d.ts.map +0 -1
- package/dist/server/fetch-ssr-data.d.ts.map +0 -1
- package/dist/server/headers.d.ts.map +0 -1
- package/dist/server/headers.test.cjs +0 -1
- package/dist/server/headers.test.d.ts +0 -2
- package/dist/server/headers.test.d.ts.map +0 -1
- package/dist/server/headers.test.js +0 -1
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/normalize-url.d.ts.map +0 -1
- package/dist/server/normalize-url.test.cjs +0 -1
- package/dist/server/normalize-url.test.d.ts +0 -2
- package/dist/server/normalize-url.test.d.ts.map +0 -1
- package/dist/server/normalize-url.test.js +0 -1
- package/dist/server/types.d.ts.map +0 -1
- package/dist/static/image/ConsentManagerProvider-Basic-Request-Behavior-should-make-a-new-request-when-core-options-change-1.png +0 -0
- package/dist/static/image/ConsentManagerProvider-Basic-Request-Behavior-should-not-make-additional-requests-when-props-change-but-core-options-remain-same-1.png +0 -0
- package/dist/static/image/ConsentManagerProvider-Basic-Request-Behavior-should-only-make-one-initial-request-for-consent-banner-status-1.png +0 -0
- package/dist/static/image/ConsentManagerProvider-Hydration-Behavior-should-handle-rapid-re-renders-without-blocking-children-1.png +0 -0
- package/dist/static/image/ConsentManagerProvider-Hydration-Behavior-should-not-block-SSR-provider-content-when-SSR-provider-wraps-ConsentManager-1.png +0 -0
- package/dist/static/image/ConsentManagerProvider-Hydration-Behavior-should-render-children-immediately-without-blocking-during-hydration-1.png +0 -0
- package/dist/static/image/ConsentManagerProvider-Hydration-Behavior-should-use-startTransition-for-non-blocking-state-updates-during-hydration-1.png +0 -0
- package/dist/static/image/useColorScheme-cleans-up-system-preference-listener-on-unmount-1.png +0 -0
- package/dist/static/image/useColorScheme-handles-default-theme-based-on-document-class-1.png +0 -0
- package/dist/static/image/useColorScheme-responds-to-system-preference-1.png +0 -0
- package/dist/static/image/useColorScheme-sets-dark-theme-correctly-1.png +0 -0
- package/dist/static/image/useColorScheme-updates-theme-when-default-theme-changes-1.png +0 -0
- package/dist/static/image/useColorScheme-updates-theme-when-system-preference-changes-1.png +0 -0
- package/dist/static/image/useConsentManager-provides-manager-object-when-configured-1.png +0 -0
- package/dist/static/image/useStyles-handles-string-className-correctly-1.png +0 -0
- package/dist/static/image/useStyles-merges-theme-and-component-styles-correctly-1.png +0 -0
- package/dist/static/image/useStyles-should-remove-base-default-styles-but-keep-theme-and-component-classNames-when-noStyle--true-1.png +0 -0
- package/dist/static/image/useStyles-should-remove-default-styles-but-keep-custom-classNames-when-theme-object-provides-noStyle--true-1.png +0 -0
- package/dist/static/image/useTheme-local-theme-takes-precedence-over-global-theme-1.png +0 -0
- package/dist/static/image/useTranslations-Custom-English-instead-of-English-when-German-is-selected-1.png +0 -0
- package/dist/static/image/useTranslations-falls-back-to-English-when-selected-language-is-not-available-1.png +0 -0
- package/dist/static/image/useTranslations-merges-custom-translations-with-defaults-1.png +0 -0
- package/dist/static/image/useTranslations-returns-English-translations-by-default-1.png +0 -0
- package/dist/test-setup.browser.cjs +0 -1
- package/dist/test-setup.browser.d.ts +0 -8
- package/dist/test-setup.browser.d.ts.map +0 -1
- package/dist/test-setup.browser.js +0 -1
- package/dist/types/consent-manager.d.ts.map +0 -1
- package/dist/types/theme/index.d.ts.map +0 -1
- package/dist/types/theme/style-keys.d.ts +0 -2
- package/dist/types/theme/style-keys.d.ts.map +0 -1
- package/dist/types/theme/style-types.d.ts.map +0 -1
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/merge-styles.d.ts.map +0 -1
- package/dist/utils/test-helpers.d.ts.map +0 -1
- package/dist/utils/theme-utils.d.ts.map +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/version.d.ts.map +0 -1
|
@@ -11,4 +11,3 @@ import { type ReactNode } from 'react';
|
|
|
11
11
|
* @returns The cloned node(s) with the additional props applied to the matched components.
|
|
12
12
|
*/
|
|
13
13
|
export declare function recursiveCloneChildren(children: ReactNode, additionalProps: Record<string, unknown>, displayNames: string[], uniqueId: string, asChild?: boolean): ReactNode | ReactNode[];
|
|
14
|
-
//# sourceMappingURL=recursive-clone-children.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { AllConsentNames } from '
|
|
1
|
+
import type { AllConsentNames } from '../../../../../core/dist-types/index.d.ts';
|
|
2
2
|
import * as Button from '../ui/button';
|
|
3
3
|
import type { ConsentButtonProps } from './button.types';
|
|
4
|
+
type ConsentActionThemeKey = 'accept' | 'reject' | 'customize';
|
|
4
5
|
/**
|
|
5
6
|
* Button component that allows users to reject non-essential cookies.
|
|
6
7
|
*
|
|
@@ -17,9 +18,11 @@ import type { ConsentButtonProps } from './button.types';
|
|
|
17
18
|
* @public
|
|
18
19
|
*/
|
|
19
20
|
export declare const ConsentButton: import("react").ForwardRefExoticComponent<ConsentButtonProps & Button.ButtonVariantsProps & {
|
|
21
|
+
consentAction?: ConsentActionThemeKey;
|
|
22
|
+
isPrimary?: boolean;
|
|
20
23
|
action: "accept-consent" | "reject-consent" | "custom-consent" | "open-consent-dialog" | "set-consent";
|
|
21
24
|
category?: AllConsentNames;
|
|
22
25
|
closeConsentDialog?: boolean;
|
|
23
26
|
closeConsentBanner?: boolean;
|
|
24
27
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
25
|
-
|
|
28
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ButtonMode } from '../../../../../ui/dist-types/styles/primitives/index.d.ts';
|
|
1
2
|
import type { ComponentRef, HTMLAttributes, MouseEvent } from 'react';
|
|
2
3
|
import type { CSSVariables, ExtendThemeKeys } from '../../../types/theme';
|
|
3
4
|
export type ConsentButtonElement = ComponentRef<'button'>;
|
|
@@ -29,5 +30,20 @@ export interface ConsentButtonProps extends Omit<HTMLAttributes<HTMLButtonElemen
|
|
|
29
30
|
* @default 'neutral'
|
|
30
31
|
*/
|
|
31
32
|
variant?: 'primary' | 'neutral';
|
|
33
|
+
/**
|
|
34
|
+
* @remarks
|
|
35
|
+
* The visual mode of the button.
|
|
36
|
+
* @default 'stroke'
|
|
37
|
+
*/
|
|
38
|
+
mode?: ButtonMode;
|
|
39
|
+
/**
|
|
40
|
+
* @remarks
|
|
41
|
+
* Semantic consent action type for theme-based button styling.
|
|
42
|
+
*/
|
|
43
|
+
consentAction?: 'accept' | 'reject' | 'customize';
|
|
44
|
+
/**
|
|
45
|
+
* @remarks
|
|
46
|
+
* Whether this button is the primary action for the current surface.
|
|
47
|
+
*/
|
|
48
|
+
isPrimary?: boolean;
|
|
32
49
|
}
|
|
33
|
-
//# sourceMappingURL=button.types.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LegalLinks as LegalLinksType } from '
|
|
1
|
+
import type { LegalLinks as LegalLinksType } from '../../../../../../core/dist-types/index.d.ts';
|
|
2
2
|
import type { AllThemeKeys } from '../../../../types/theme/style-keys';
|
|
3
3
|
/**
|
|
4
4
|
* Hook to filter legal links based on the provided links prop.
|
|
@@ -48,4 +48,3 @@ export declare function InlineLegalLinks({ links, themeKey, testIdPrefix, }: Inl
|
|
|
48
48
|
*/
|
|
49
49
|
type LegalLinksThemeKey = AllThemeKeys;
|
|
50
50
|
export {};
|
|
51
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AccordionSize, type AccordionVariant, type AccordionVariantsProps, accordionVariants } from '
|
|
1
|
+
import { type AccordionSize, type AccordionVariant, type AccordionVariantsProps, accordionVariants } from '../../../../../../ui/dist-types/styles/primitives/index.d.ts';
|
|
2
2
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
3
|
import { type ComponentPropsWithoutRef, type ElementType, type HTMLAttributes } from 'react';
|
|
4
4
|
import type { PolymorphicComponentProps } from '../../libs/polymorphic';
|
|
@@ -107,4 +107,3 @@ export interface AccordionContentProps extends ComponentPropsWithoutRef<typeof A
|
|
|
107
107
|
}
|
|
108
108
|
declare const AccordionContent: import("react").ForwardRefExoticComponent<AccordionContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
109
109
|
export { AccordionRoot as Root, AccordionHeader as Header, AccordionItem as Item, AccordionTrigger as Trigger, AccordionIcon as Icon, AccordionArrow as Arrow, AccordionContent as Content, };
|
|
110
|
-
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -2,5 +2,4 @@
|
|
|
2
2
|
* Re-export accordion variant types from @c15t/ui for convenience.
|
|
3
3
|
* The canonical definitions are in @c15t/ui/styles/primitives.
|
|
4
4
|
*/
|
|
5
|
-
export type { AccordionColorCSSVariables, AccordionContentCSSVariables, AccordionCSSVariables, AccordionIconCSSVariables, AccordionItemCSSVariables, AccordionLayoutCSSVariables, AccordionRootCSSVariables, AccordionSize, AccordionTriggerCSSVariables, AccordionVariant, AccordionVariantsProps, } from '
|
|
6
|
-
//# sourceMappingURL=accordion.types.d.ts.map
|
|
5
|
+
export type { AccordionColorCSSVariables, AccordionContentCSSVariables, AccordionCSSVariables, AccordionIconCSSVariables, AccordionItemCSSVariables, AccordionLayoutCSSVariables, AccordionRootCSSVariables, AccordionSize, AccordionTriggerCSSVariables, AccordionVariant, AccordionVariantsProps, } from '../../../../../../ui/dist-types/styles/primitives/index.d.ts';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ButtonMode, type ButtonSize, type ButtonVariant, type ButtonVariantsProps, buttonVariants } from '
|
|
1
|
+
import { type ButtonMode, type ButtonSize, type ButtonVariant, type ButtonVariantsProps, buttonVariants } from '../../../../../../ui/dist-types/styles/primitives/index.d.ts';
|
|
2
2
|
import { type ButtonHTMLAttributes, type ElementType } from 'react';
|
|
3
3
|
import type { PolymorphicComponentProps } from '../../libs/polymorphic';
|
|
4
4
|
export type { ButtonMode, ButtonSize, ButtonVariant, ButtonVariantsProps };
|
|
@@ -73,4 +73,3 @@ declare namespace ButtonIcon {
|
|
|
73
73
|
* @public
|
|
74
74
|
*/
|
|
75
75
|
export { ButtonRoot as Root, ButtonIcon as Icon };
|
|
76
|
-
//# sourceMappingURL=button.d.ts.map
|
|
@@ -30,4 +30,3 @@ export declare const FingerprintIcon: ({ title, titleId, ...props }: SVGProps<SV
|
|
|
30
30
|
*/
|
|
31
31
|
export declare const SettingsIcon: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
export {};
|
|
33
|
-
//# sourceMappingURL=logo.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type SwitchSize, type SwitchVariantsProps, switchVariants } from '
|
|
1
|
+
import { type SwitchSize, type SwitchVariantsProps, switchVariants } from '../../../../../../ui/dist-types/styles/primitives/index.d.ts';
|
|
2
2
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
3
3
|
import { type ComponentPropsWithoutRef } from 'react';
|
|
4
4
|
import type { AllThemeKeys, ThemeValue } from '../../../../types/theme';
|
|
@@ -42,4 +42,3 @@ export interface SwitchProps extends ComponentPropsWithoutRef<typeof SwitchPrimi
|
|
|
42
42
|
*/
|
|
43
43
|
declare const Switch: import("react").ForwardRefExoticComponent<SwitchProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
44
44
|
export { Switch as Root };
|
|
45
|
-
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -2,5 +2,4 @@
|
|
|
2
2
|
* Re-export switch variant types from @c15t/ui for convenience.
|
|
3
3
|
* The canonical definitions are in @c15t/ui/styles/primitives.
|
|
4
4
|
*/
|
|
5
|
-
export type { SwitchCSSVariables, SwitchRootCSSVariables, SwitchSize, SwitchThumbCSSVariables, SwitchTrackCSSVariables, SwitchVariantsProps, } from '
|
|
6
|
-
//# sourceMappingURL=switch.types.d.ts.map
|
|
5
|
+
export type { SwitchCSSVariables, SwitchRootCSSVariables, SwitchSize, SwitchThumbCSSVariables, SwitchTrackCSSVariables, SwitchVariantsProps, } from '../../../../../../ui/dist-types/styles/primitives/index.d.ts';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @packageDocumentation
|
|
3
3
|
* Provides the context for sharing consent management state across components.
|
|
4
4
|
*/
|
|
5
|
-
import type { ConsentManagerInterface, ConsentStoreState } from '
|
|
5
|
+
import type { ConsentManagerInterface, ConsentStoreState } from '../../../core/dist-types/index.d.ts';
|
|
6
6
|
/**
|
|
7
7
|
* The context value provided by ConsentManagerProvider.
|
|
8
8
|
*/
|
|
@@ -29,4 +29,3 @@ export interface ConsentStateContextValue {
|
|
|
29
29
|
* Context for sharing consent management state across components.
|
|
30
30
|
*/
|
|
31
31
|
export declare const ConsentStateContext: import("react").Context<ConsentStateContextValue | undefined>;
|
|
32
|
-
//# sourceMappingURL=consent-manager-context.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { type ConsentManagerInterface, configureConsentManager, defaultTranslationConfig, detectBrowserLanguage, type EuropePolicyMode, mergeTranslationConfigs, type PolicyPackPresets, policyPackPresets, prepareTranslationConfig, } from '../../core/dist-types/index.d.ts';
|
|
2
|
+
export { useColorScheme } from './hooks/use-color-scheme';
|
|
3
|
+
export { type ConsentDialogTriggerVisibility, type UseConsentDialogTriggerOptions, type UseConsentDialogTriggerResult, useConsentDialogTrigger, } from './hooks/use-consent-dialog-trigger';
|
|
4
|
+
export { useConsentManager } from './hooks/use-consent-manager';
|
|
5
|
+
export { useFocusTrap } from './hooks/use-focus-trap';
|
|
6
|
+
export { type HeadlessConsentBannerAction, type HeadlessConsentBannerState, type HeadlessConsentDialogAction, type HeadlessConsentDialogState, type HeadlessConsentSurface, type HeadlessConsentSurfaceAction, type HeadlessConsentSurfaceState, type HeadlessConsentWriteAction, type UseHeadlessConsentUIResult, useHeadlessConsentUI, } from './hooks/use-headless-consent-ui';
|
|
7
|
+
export { type HeadlessIABBannerAction, type HeadlessIABBannerState, type HeadlessIABDialogAction, type HeadlessIABDialogState, type HeadlessIABPreferenceTab, type UseHeadlessIABConsentUIResult, useHeadlessIABConsentUI, } from './hooks/use-headless-iab-consent-ui';
|
|
8
|
+
export { useTranslations } from './hooks/use-translations';
|
|
9
|
+
export { ConsentManagerProvider } from './providers/consent-manager-provider';
|
|
10
|
+
export type { ConsentManagerOptions, ConsentManagerProviderProps, } from './types/consent-manager';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export * from './use-component-config';
|
|
2
|
+
export * from './use-consent-dialog-trigger';
|
|
2
3
|
export * from './use-consent-manager';
|
|
3
4
|
export * from './use-focus-trap';
|
|
5
|
+
export * from './use-headless-consent-ui';
|
|
6
|
+
export * from './use-headless-iab-consent-ui';
|
|
4
7
|
export * from './use-reduced-motion';
|
|
5
8
|
export * from './use-ssr-status';
|
|
6
9
|
export * from './use-text-direction';
|
|
7
10
|
export * from './use-theme';
|
|
8
11
|
export * from './use-translations';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UIOptions } from '
|
|
1
|
+
import type { UIOptions } from '../../../ui/dist-types/theme/index.d.ts';
|
|
2
2
|
/**
|
|
3
3
|
* Subset of UIOptions that can be overridden at the component level.
|
|
4
4
|
*
|
|
@@ -52,4 +52,3 @@ export type ResolvedComponentConfig = Required<ComponentConfig>;
|
|
|
52
52
|
* @public
|
|
53
53
|
*/
|
|
54
54
|
export declare function useComponentConfig(localOverrides?: ComponentConfig): ResolvedComponentConfig;
|
|
55
|
-
//# sourceMappingURL=use-component-config.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type ConsentDialogTriggerVisibility = 'always' | 'after-consent' | 'never';
|
|
2
|
+
export interface UseConsentDialogTriggerOptions {
|
|
3
|
+
showWhen?: ConsentDialogTriggerVisibility;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
}
|
|
6
|
+
export interface UseConsentDialogTriggerResult {
|
|
7
|
+
isVisible: boolean;
|
|
8
|
+
openDialog: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function useConsentDialogTrigger(options?: UseConsentDialogTriggerOptions): UseConsentDialogTriggerResult;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @packageDocumentation
|
|
3
3
|
* Hook for accessing and managing consent state.
|
|
4
4
|
*/
|
|
5
|
-
import type { ConsentManagerInterface, ConsentStoreState } from '
|
|
5
|
+
import type { ConsentManagerInterface, ConsentStoreState } from '../../../core/dist-types/index.d.ts';
|
|
6
6
|
/**
|
|
7
7
|
* Hook for accessing and managing consent state.
|
|
8
8
|
*
|
|
@@ -25,4 +25,3 @@ import type { ConsentManagerInterface, ConsentStoreState } from 'c15t';
|
|
|
25
25
|
export declare function useConsentManager(): ConsentStoreState & {
|
|
26
26
|
manager: ConsentManagerInterface | null;
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=use-consent-manager.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type PolicyUiAction, type PolicyUiActionDirection, type PolicyUiActionGroup, type PolicyUiProfile } from '../components/shared/libs/policy-actions';
|
|
2
|
+
import { useConsentManager } from './use-consent-manager';
|
|
3
|
+
export type HeadlessConsentSurface = 'banner' | 'dialog';
|
|
4
|
+
export type HeadlessConsentSurfaceAction = PolicyUiAction;
|
|
5
|
+
export type HeadlessConsentWriteAction = 'accept' | 'reject';
|
|
6
|
+
export type HeadlessConsentBannerAction = HeadlessConsentSurfaceAction;
|
|
7
|
+
export type HeadlessConsentDialogAction = HeadlessConsentSurfaceAction;
|
|
8
|
+
export interface HeadlessConsentSurfaceState<TAction extends string = HeadlessConsentSurfaceAction> {
|
|
9
|
+
allowedActions: TAction[];
|
|
10
|
+
orderedActions: TAction[];
|
|
11
|
+
actionGroups: TAction[][];
|
|
12
|
+
primaryAction?: TAction;
|
|
13
|
+
layout?: PolicyUiActionGroup[];
|
|
14
|
+
direction: PolicyUiActionDirection;
|
|
15
|
+
uiProfile?: PolicyUiProfile;
|
|
16
|
+
scrollLock?: boolean;
|
|
17
|
+
hasPolicyHints: boolean;
|
|
18
|
+
shouldFillActions: boolean;
|
|
19
|
+
isVisible: boolean;
|
|
20
|
+
}
|
|
21
|
+
export type HeadlessConsentBannerState = HeadlessConsentSurfaceState<HeadlessConsentBannerAction>;
|
|
22
|
+
export type HeadlessConsentDialogState = HeadlessConsentSurfaceState<HeadlessConsentDialogAction>;
|
|
23
|
+
export interface UseHeadlessConsentUIResult {
|
|
24
|
+
activeUI: ReturnType<typeof useConsentManager>['activeUI'];
|
|
25
|
+
banner: HeadlessConsentBannerState;
|
|
26
|
+
dialog: HeadlessConsentDialogState;
|
|
27
|
+
openBanner: (options?: {
|
|
28
|
+
force?: boolean;
|
|
29
|
+
}) => void;
|
|
30
|
+
openDialog: () => void;
|
|
31
|
+
closeUI: () => void;
|
|
32
|
+
performAction: (action: HeadlessConsentWriteAction, options: {
|
|
33
|
+
surface: HeadlessConsentSurface;
|
|
34
|
+
uiSource?: string;
|
|
35
|
+
}) => Promise<void>;
|
|
36
|
+
performBannerAction: (action: HeadlessConsentWriteAction, options?: {
|
|
37
|
+
uiSource?: string;
|
|
38
|
+
}) => Promise<void>;
|
|
39
|
+
performDialogAction: (action: HeadlessConsentWriteAction, options?: {
|
|
40
|
+
uiSource?: string;
|
|
41
|
+
}) => Promise<void>;
|
|
42
|
+
saveCustomPreferences: (options?: {
|
|
43
|
+
uiSource?: string;
|
|
44
|
+
}) => Promise<void>;
|
|
45
|
+
}
|
|
46
|
+
export declare function useHeadlessConsentUI(): UseHeadlessConsentUIResult;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { useConsentManager } from './use-consent-manager';
|
|
2
|
+
export type HeadlessIABPreferenceTab = 'purposes' | 'vendors';
|
|
3
|
+
export type HeadlessIABBannerAction = 'accept' | 'reject' | 'customize';
|
|
4
|
+
export type HeadlessIABDialogAction = 'accept' | 'reject' | 'customize';
|
|
5
|
+
export interface HeadlessIABBannerState {
|
|
6
|
+
isVisible: boolean;
|
|
7
|
+
isReady: boolean;
|
|
8
|
+
vendorCount: number;
|
|
9
|
+
displayItems: string[];
|
|
10
|
+
remainingCount: number;
|
|
11
|
+
scrollLock?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface HeadlessIABDialogState {
|
|
14
|
+
isVisible: boolean;
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
activeTab: HeadlessIABPreferenceTab;
|
|
17
|
+
scrollLock?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface UseHeadlessIABConsentUIResult {
|
|
20
|
+
activeUI: ReturnType<typeof useConsentManager>['activeUI'];
|
|
21
|
+
model: ReturnType<typeof useConsentManager>['model'];
|
|
22
|
+
iab: ReturnType<typeof useConsentManager>['iab'];
|
|
23
|
+
isIABEnabled: boolean;
|
|
24
|
+
banner: HeadlessIABBannerState;
|
|
25
|
+
dialog: HeadlessIABDialogState;
|
|
26
|
+
openBanner: (options?: {
|
|
27
|
+
force?: boolean;
|
|
28
|
+
}) => void;
|
|
29
|
+
openDialog: (options?: {
|
|
30
|
+
tab?: HeadlessIABPreferenceTab;
|
|
31
|
+
}) => void;
|
|
32
|
+
openPurposesDialog: () => void;
|
|
33
|
+
openVendorsDialog: () => void;
|
|
34
|
+
closeUI: () => void;
|
|
35
|
+
acceptAll: () => Promise<void> | void;
|
|
36
|
+
rejectAll: () => Promise<void> | void;
|
|
37
|
+
savePreferences: () => Promise<void> | void;
|
|
38
|
+
performBannerAction: (action: HeadlessIABBannerAction) => Promise<void> | void;
|
|
39
|
+
performDialogAction: (action: HeadlessIABDialogAction) => Promise<void> | void;
|
|
40
|
+
}
|
|
41
|
+
export declare function useHeadlessIABConsentUI(): UseHeadlessIABConsentUIResult;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Translations } from '
|
|
1
|
+
import type { Translations } from '../../../core/dist-types/index.d.ts';
|
|
2
2
|
/**
|
|
3
3
|
* Hook for accessing translations in the current language.
|
|
4
4
|
*
|
|
@@ -26,4 +26,3 @@ import type { Translations } from 'c15t';
|
|
|
26
26
|
* @public
|
|
27
27
|
*/
|
|
28
28
|
export declare function useTranslations(): Translations;
|
|
29
|
-
//# sourceMappingURL=use-translations.d.ts.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export type { AllConsentNames, ConsentManagerInterface, ConsentStoreState, ConsentType, Overrides, Translations, } from '
|
|
2
|
-
export { configureConsentManager, defaultTranslationConfig, detectBrowserLanguage, mergeTranslationConfigs, prepareTranslationConfig, } from '
|
|
1
|
+
export type { AllConsentNames, ConsentManagerInterface, ConsentStoreState, ConsentType, EuropePolicyMode, Overrides, PolicyPackPresets, Translations, } from '../../core/dist-types/index.d.ts';
|
|
2
|
+
export { configureConsentManager, defaultTranslationConfig, detectBrowserLanguage, mergeTranslationConfigs, policyPackPresets, prepareTranslationConfig, } from '../../core/dist-types/index.d.ts';
|
|
3
3
|
export { ConsentBanner, type ConsentBannerProps, } from './components/consent-banner';
|
|
4
4
|
export * from './components/consent-banner/components';
|
|
5
5
|
export { ConsentDialog, type ConsentDialogProps, } from './components/consent-dialog';
|
|
6
|
+
export { ConsentDialogLink, type ConsentDialogLinkProps, } from './components/consent-dialog-link';
|
|
6
7
|
export { ConsentDialogTrigger, type ConsentDialogTriggerCompound, type ConsentDialogTriggerProps, TriggerButton, type TriggerButtonProps, TriggerIcon, type TriggerIconProps, type TriggerIconType, TriggerRoot, type TriggerRootProps, type TriggerSize, TriggerText, type TriggerTextProps, type TriggerVisibility, type UseDraggableOptions, type UseDraggableReturn, useDraggable, useTriggerContext, } from './components/consent-dialog-trigger';
|
|
7
8
|
export { ConsentWidget, type ConsentWidgetProps, } from './components/consent-widget';
|
|
8
9
|
export { Frame, type FrameProps } from './components/frame';
|
|
@@ -10,11 +11,13 @@ export { IABConsentBanner, type IABConsentBannerProps, } from './components/iab-
|
|
|
10
11
|
export { IABConsentDialog, type IABConsentDialogProps, } from './components/iab-consent-dialog';
|
|
11
12
|
export { ConsentButton } from './components/shared/primitives/button';
|
|
12
13
|
export { useColorScheme } from './hooks/use-color-scheme';
|
|
14
|
+
export { type ConsentDialogTriggerVisibility, type UseConsentDialogTriggerOptions, type UseConsentDialogTriggerResult, useConsentDialogTrigger, } from './hooks/use-consent-dialog-trigger';
|
|
13
15
|
export { useConsentManager } from './hooks/use-consent-manager';
|
|
14
16
|
export { useFocusTrap } from './hooks/use-focus-trap';
|
|
17
|
+
export { type HeadlessConsentBannerAction, type HeadlessConsentBannerState, type HeadlessConsentDialogAction, type HeadlessConsentDialogState, type HeadlessConsentSurface, type HeadlessConsentSurfaceAction, type HeadlessConsentSurfaceState, type HeadlessConsentWriteAction, type UseHeadlessConsentUIResult, useHeadlessConsentUI, } from './hooks/use-headless-consent-ui';
|
|
18
|
+
export { type HeadlessIABBannerAction, type HeadlessIABBannerState, type HeadlessIABDialogAction, type HeadlessIABDialogState, type HeadlessIABPreferenceTab, type UseHeadlessIABConsentUIResult, useHeadlessIABConsentUI, } from './hooks/use-headless-iab-consent-ui';
|
|
15
19
|
export { useSSRStatus } from './hooks/use-ssr-status';
|
|
16
20
|
export { useTranslations } from './hooks/use-translations';
|
|
17
21
|
export { ConsentManagerProvider } from './providers/consent-manager-provider';
|
|
18
22
|
export type { ConsentManagerOptions, ConsentManagerProviderProps, } from './types/consent-manager';
|
|
19
23
|
export type { ColorTokens, ComponentSlots, MotionTokens, RadiusTokens, ShadowTokens, SlotStyle, SpacingTokens, Theme, TypographyTokens, } from './types/theme';
|
|
20
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -38,4 +38,3 @@ export declare function clearConsentRuntimeCache(): void;
|
|
|
38
38
|
* @public
|
|
39
39
|
*/
|
|
40
40
|
export declare function ConsentManagerProvider({ children, options, }: ConsentManagerProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
//# sourceMappingURL=consent-manager-provider.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SSRInitialData } from '
|
|
1
|
+
import type { SSRInitialData } from '../../../core/dist-types/index.d.ts';
|
|
2
2
|
import type { FetchSSRDataOptions } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Fetches initial consent data on the server for SSR hydration.
|
|
@@ -40,4 +40,3 @@ import type { FetchSSRDataOptions } from './types';
|
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
42
|
export declare function fetchSSRData(options: FetchSSRDataOptions): Promise<SSRInitialData | undefined>;
|
|
43
|
-
//# sourceMappingURL=fetch-ssr-data.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const FORWARDED_HEADERS: readonly ["cf-ipcountry", "x-vercel-ip-country", "x-amz-cf-ipcountry", "x-country-code", "x-vercel-ip-country-region", "x-region-code", "accept-language", "user-agent", "x-forwarded-host", "x-forwarded-for", "sec-gpc"];
|
|
1
|
+
declare const FORWARDED_HEADERS: readonly ["cf-ipcountry", "x-vercel-ip-country", "x-amz-cf-ipcountry", "x-country-code", "x-vercel-ip-country-region", "x-region-code", "accept-language", "user-agent", "x-forwarded-host", "x-forwarded-for", "sec-gpc", "purpose", "sec-purpose", "next-router-prefetch", "x-middleware-prefetch"];
|
|
2
2
|
type ForwardedHeader = (typeof FORWARDED_HEADERS)[number] | 'x-c15t-country' | 'x-c15t-region';
|
|
3
3
|
type RelevantHeaders = Partial<Record<ForwardedHeader, string>>;
|
|
4
4
|
/**
|
|
@@ -13,6 +13,7 @@ type RelevantHeaders = Partial<Record<ForwardedHeader, string>>;
|
|
|
13
13
|
* - Country headers (cf-ipcountry, x-vercel-ip-country, etc.)
|
|
14
14
|
* - Region headers (x-vercel-ip-country-region, x-region-code)
|
|
15
15
|
* - Standard headers (accept-language, user-agent, x-forwarded-*)
|
|
16
|
+
* - Prefetch headers (purpose, sec-purpose, next-router-prefetch, x-middleware-prefetch)
|
|
16
17
|
*
|
|
17
18
|
* @param headersList - The Headers object from the incoming request
|
|
18
19
|
* @returns An object containing the relevant headers for consent management
|
|
@@ -29,4 +30,3 @@ type RelevantHeaders = Partial<Record<ForwardedHeader, string>>;
|
|
|
29
30
|
*/
|
|
30
31
|
export declare function extractRelevantHeaders(headersList: Headers): RelevantHeaders;
|
|
31
32
|
export {};
|
|
32
|
-
//# sourceMappingURL=headers.d.ts.map
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
*/
|
|
27
27
|
export { fetchSSRData } from './fetch-ssr-data';
|
|
28
28
|
export { extractRelevantHeaders } from './headers';
|
|
29
|
+
export { createSSRInitCacheKey } from './init-cache-key';
|
|
29
30
|
export { normalizeBackendURL, validateBackendURL } from './normalize-url';
|
|
30
31
|
export type { FetchSSRDataOptions, FetchSSRDataOptionsBase, FetchSSRDataResult, } from './types';
|
|
31
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Overrides } from '../../../core/dist-types/index.d.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a stable cache key for SSR init responses.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* This is framework-agnostic and can be used by wrappers (e.g. Next.js)
|
|
7
|
+
* to align cache key construction with the headers/override semantics used
|
|
8
|
+
* for SSR init fetching.
|
|
9
|
+
*
|
|
10
|
+
* @param normalizedURL - Normalized backend URL for /init
|
|
11
|
+
* @param headers - Request headers
|
|
12
|
+
* @param overrides - Optional location/language overrides
|
|
13
|
+
* @returns A stable JSON string key
|
|
14
|
+
*
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export declare function createSSRInitCacheKey({ normalizedURL, headers, overrides, }: {
|
|
18
|
+
normalizedURL: string;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
overrides?: Overrides;
|
|
21
|
+
}): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Overrides, SSRInitialData } from '
|
|
1
|
+
import type { Overrides, SSRInitialData } from '../../../core/dist-types/index.d.ts';
|
|
2
2
|
/**
|
|
3
3
|
* Base options for SSR data fetching, shared across framework integrations.
|
|
4
4
|
*
|
|
@@ -48,4 +48,3 @@ export interface FetchSSRDataOptions extends FetchSSRDataOptionsBase {
|
|
|
48
48
|
* Result of the SSR data fetch.
|
|
49
49
|
*/
|
|
50
50
|
export type FetchSSRDataResult = SSRInitialData | undefined;
|
|
51
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseConsentManagerOptions, UIOptions } from '
|
|
1
|
+
import type { BaseConsentManagerOptions, UIOptions } from '../../../ui/dist-types/theme/index.d.ts';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* React-specific configuration options
|
|
@@ -12,6 +12,11 @@ export interface ReactUIOptions extends UIOptions {
|
|
|
12
12
|
* This type composes:
|
|
13
13
|
* - Base framework-agnostic options from {@link BaseConsentManagerOptions}
|
|
14
14
|
* - React-specific UI configuration
|
|
15
|
+
*
|
|
16
|
+
* In offline mode this also includes `offlinePolicy` configuration for
|
|
17
|
+
* local policy previews.
|
|
18
|
+
*
|
|
19
|
+
* @see {@link https://v2.c15t.com/docs/frameworks/react/policy-packs}
|
|
15
20
|
*/
|
|
16
21
|
export type ConsentManagerOptions = BaseConsentManagerOptions & ReactUIOptions;
|
|
17
22
|
/**
|
|
@@ -27,7 +32,8 @@ export interface ConsentManagerProviderProps {
|
|
|
27
32
|
/**
|
|
28
33
|
* Configuration options for the consent manager.
|
|
29
34
|
* This includes core, React, store, and translation settings.
|
|
35
|
+
*
|
|
36
|
+
* @see {@link https://v2.c15t.com/docs/frameworks/react/components/consent-manager-provider}
|
|
30
37
|
*/
|
|
31
38
|
options: ConsentManagerOptions;
|
|
32
39
|
}
|
|
33
|
-
//# sourceMappingURL=consent-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AllThemeKeys } from '../../../../ui/dist-types/theme/index.d.ts';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ClassNameStyle as BaseClassNameStyle, Theme as BaseTheme } from '
|
|
1
|
+
import type { ClassNameStyle as BaseClassNameStyle, Theme as BaseTheme } from '../../../../ui/dist-types/theme/index.d.ts';
|
|
2
2
|
import type { CSSProperties } from 'react';
|
|
3
3
|
import type { AllThemeKeys } from './style-keys';
|
|
4
|
-
export type { ColorTokens, ComponentSlots, CSSVariables, MotionTokens, RadiusTokens, ShadowTokens, SlotStyle, SpacingTokens, TypographyTokens, } from '
|
|
4
|
+
export type { ColorTokens, ComponentSlots, CSSVariables, MotionTokens, RadiusTokens, ShadowTokens, SlotStyle, SpacingTokens, TypographyTokens, } from '../../../../ui/dist-types/theme/index.d.ts';
|
|
5
5
|
/**
|
|
6
6
|
* Represents CSS properties with optional CSS variables.
|
|
7
7
|
* @public
|
|
@@ -33,6 +33,8 @@ export interface ExtendThemeKeys<VariableMap = Record<string, string | number>>
|
|
|
33
33
|
* @public
|
|
34
34
|
*/
|
|
35
35
|
export interface Theme extends Omit<BaseTheme, 'slots'> {
|
|
36
|
+
/** Semantic button styling for consent actions. */
|
|
37
|
+
consentActions?: BaseTheme['consentActions'];
|
|
36
38
|
/** Component-specific style overrides. */
|
|
37
39
|
slots?: BaseTheme['slots'];
|
|
38
40
|
}
|
|
@@ -41,4 +43,3 @@ export interface Theme extends Omit<BaseTheme, 'slots'> {
|
|
|
41
43
|
* @public
|
|
42
44
|
*/
|
|
43
45
|
export declare function defineTheme<ThemeType extends Theme>(theme: ThemeType): ThemeType;
|
|
44
|
-
//# sourceMappingURL=style-types.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { ClassValue } from '
|
|
1
|
+
import type { ClassValue } from '../../../ui/dist-types/utils/index.d.ts';
|
|
2
2
|
export type { ClassValue };
|
|
3
3
|
/**
|
|
4
4
|
* Utilizes framework-agnostic `cn` from @c15t/ui.
|
|
5
5
|
*/
|
|
6
6
|
export declare function cnExt(...classes: ClassValue[]): string;
|
|
7
|
-
//# sourceMappingURL=cn.d.ts.map
|