Rework cookie-banner exports: themed banner as default, headless as subpath

Make the themed banner the default "." export and move the headless
components to "./headless". Remove unused VERSION export.

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-22 10:49:22 +04:00
parent 0cb48a4f33
commit 4a88cc5902
5 changed files with 24 additions and 11 deletions

View File

@@ -34,7 +34,7 @@ This automatically renders a fully styled consent dialog and a floating settings
Import the pre-built themed banner as an ES module for use in bundled applications (React, Vue, Svelte, etc.):
```js
import { registerThemedBanner } from "@probo/cookie-banner/themed-banner";
import { registerThemedBanner } from "@probo/cookie-banner";
registerThemedBanner();
```
@@ -92,7 +92,7 @@ Dark mode example:
For complete control over the UI, import the headless Web Components directly. This entrypoint gives you unstyled building blocks that you compose and style yourself:
```js
import { registerComponents } from "@probo/cookie-banner";
import { registerComponents } from "@probo/cookie-banner/headless";
registerComponents();
```