@cookieyes/nextjs 0.1.0 → 0.3.0

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/README.md CHANGED
@@ -1,10 +1,53 @@
1
- # @cookieyes/nextjs
1
+ <p align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/cookieyes/cookieyes/main/.github/assets/banner-dark.svg">
4
+ <img src="https://raw.githubusercontent.com/cookieyes/cookieyes/main/.github/assets/banner-light.svg" alt="CookieYes consent banner rendered in a Next.js app" width="820">
5
+ </picture>
6
+ </p>
2
7
 
3
- Next.js adapter for the CookieYes consent SDK. It re-exports the entire
4
- `@cookieyes/react` surface, pre-marked with `"use client"` so it composes
5
- cleanly with the App Router and Server Components.
8
+ <h1 align="center">@cookieyes/nextjs</h1>
6
9
 
7
- ## Install
10
+ <p align="center"><strong>Cookie consent for Next.js — App Router and Pages Router, SSR-safe.</strong></p>
11
+
12
+ <p align="center">The full <code>@cookieyes/react</code> surface, pre-marked <code>"use client"</code> so it composes cleanly with Server Components.</p>
13
+
14
+ <p align="center">
15
+ <a href="https://www.npmjs.com/package/@cookieyes/nextjs"><img src="https://img.shields.io/npm/v/@cookieyes/nextjs" alt="npm version"></a>
16
+ <a href="https://www.npmjs.com/package/@cookieyes/nextjs"><img src="https://img.shields.io/npm/dw/@cookieyes/nextjs" alt="npm downloads"></a>
17
+ <a href="https://github.com/cookieyes/cookieyes/actions/workflows/ci.yml"><img src="https://github.com/cookieyes/cookieyes/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
18
+ <a href="./LICENSE"><img src="https://img.shields.io/npm/l/@cookieyes/nextjs" alt="license"></a>
19
+ </p>
20
+
21
+ <p align="center">
22
+ <a href="#quick-start">Quick start</a> ·
23
+ <a href="#pages-router">Pages Router</a> ·
24
+ <a href="#troubleshooting">Troubleshooting</a> ·
25
+ <a href="https://github.com/cookieyes/cookieyes/blob/main/docs/configuration.md">Docs</a>
26
+ </p>
27
+
28
+ ---
29
+
30
+ > **Free-tier note:** the "Powered by CookieYes" attribution in the banner may not be removed
31
+ > on the free tier. Paid plans remove it.
32
+
33
+ ---
34
+
35
+ ## Key features
36
+
37
+ - **App Router & Pages Router** — one component works in both.
38
+ - **SSR-safe** — the banner is server-rendered into the first paint with no hydration mismatch.
39
+ - **GDPR & CCPA** — opt-in and "Do Not Sell" opt-out flows.
40
+ - **1:1 with `@cookieyes/react`** — every component, hook, and primitive, re-exported.
41
+
42
+ ## Prerequisites
43
+
44
+ - **Node.js** ≥ 20
45
+ - **Next.js** ≥ 14 (App Router or Pages Router)
46
+ - **React** ≥ 18 and **React DOM** ≥ 18 (peer dependencies)
47
+
48
+ ## Quick start
49
+
50
+ **1. Install the package**
8
51
 
9
52
  ```bash
10
53
  npm install @cookieyes/nextjs
@@ -13,13 +56,18 @@ yarn add @cookieyes/nextjs
13
56
  bun add @cookieyes/nextjs
14
57
  ```
15
58
 
16
- **Peer dependencies:** Next.js ≥ 14, React ≥ 18, React DOM ≥ 18
59
+ **2. Create a client consent-manager component**
17
60
 
18
- ## Setup (App Router)
61
+ Because `initCookieYes()` and the components are client-side, this file **must** start with
62
+ `"use client"`.
19
63
 
20
- Create a client component that configures the runtime and renders the consent
21
- UI. Because `createCookieYes()` and the components are client-side, this file
22
- **must** start with `"use client"`.
64
+ > **Which API should I read consent with?** This package re-exports
65
+ > `@cookieyes/react` verbatim, so the same guidance applies: **`useConsent()`**
66
+ > in client components, and for Server Components or route handlers (no React
67
+ > hooks available), read the raw cookie with `parseCookie` from
68
+ > `@cookieyes/core`. See the [shared decision tree](../../docs/which-api-should-i-use.md)
69
+ > and [`@cookieyes/react`'s Hooks section](../react/README.md#hooks) for the
70
+ > full low-level surface.
23
71
 
24
72
  ```tsx
25
73
  // components/consent-manager.tsx
@@ -29,14 +77,15 @@ import {
29
77
  CookieBanner,
30
78
  CookiePreferences,
31
79
  RecallButton,
32
- createCookieYes,
80
+ initCookieYes,
33
81
  } from "@cookieyes/nextjs";
82
+ import "@cookieyes/react/styles.css";
34
83
 
35
- createCookieYes()
36
- .mode("offline") // "offline" (cookie-only) | "self-hosted"
37
- .regulation("GDPR") // "GDPR" | "CCPA"
38
- .colorScheme("system") // "light" | "dark" | "system"
39
- .mount();
84
+ initCookieYes({
85
+ mode: "cookie-only", // "cookie-only" | "self-hosted"
86
+ regulation: "GDPR", // "GDPR" | "CCPA" | "DEFAULT"
87
+ colorScheme: "system", // "light" | "dark" | "system"
88
+ });
40
89
 
41
90
  export function CookieYesRoot() {
42
91
  return (
@@ -49,7 +98,12 @@ export function CookieYesRoot() {
49
98
  }
50
99
  ```
51
100
 
52
- Then mount it in your root layout — the layout itself stays a Server Component:
101
+ The `@cookieyes/react/styles.css` import is required — the components ship
102
+ no inline styling, so without it they render unstyled. It's exposed from
103
+ `@cookieyes/react` (a dependency of this package) rather than duplicated
104
+ under `@cookieyes/nextjs`.
105
+
106
+ **3. Mount it in your root layout** — the layout itself stays a Server Component:
53
107
 
54
108
  ```tsx
55
109
  // app/layout.tsx
@@ -59,18 +113,22 @@ export default function RootLayout({ children }: { children: React.ReactNode })
59
113
  return (
60
114
  <html lang="en">
61
115
  <body>
62
- {children}
63
116
  <CookieYesRoot />
117
+ {children}
64
118
  </body>
65
119
  </html>
66
120
  );
67
121
  }
68
122
  ```
69
123
 
124
+ **4. Done.** The banner appears on first load. If it doesn't, see [Troubleshooting](#troubleshooting).
125
+
126
+ > Prefer zero manual setup? Run `npx @cookieyes/cli init` — it detects Next.js (App or Pages
127
+ > Router) and wires this up for you.
128
+
70
129
  ## Pages Router
71
130
 
72
- The same `CookieYesRoot` component works in the Pages Router — render it in
73
- `pages/_app.tsx` alongside your app:
131
+ The same `CookieYesRoot` component works in the Pages Router — render it in `pages/_app.tsx`:
74
132
 
75
133
  ```tsx
76
134
  import type { AppProps } from "next/app";
@@ -88,7 +146,7 @@ export default function App({ Component, pageProps }: AppProps) {
88
146
 
89
147
  ## CCPA
90
148
 
91
- For `regulation("CCPA")`, also render the opt-out dialog:
149
+ For `regulation: "CCPA"`, also render the opt-out dialog:
92
150
 
93
151
  ```tsx
94
152
  import { CookieBanner, CookiePreferences, CookieOptOut, RecallButton } from "@cookieyes/nextjs";
@@ -104,13 +162,56 @@ import { CookieBanner, CookiePreferences, CookieOptOut, RecallButton } from "@co
104
162
 
105
163
  ## API
106
164
 
107
- This package re-exports everything from `@cookieyes/react` — the builder
108
- (`createCookieYes`), components (`CookieBanner`, `CookiePreferences`,
109
- `CookieOptOut`, `RecallButton`, `GatedScript`, `GatedFrame`), headless
110
- primitives (`Banner`, `Preferences`, `OptOut`), and all hooks (`useConsent`,
111
- `useConsentActions`, `useConsentCategory`, `useRegulation`, …). See the
112
- [`@cookieyes/react` README](../react#readme) for the full reference.
165
+ This package re-exports the entire `@cookieyes/react` surface — the setup function
166
+ (`initCookieYes`), components (`CookieBanner`, `CookiePreferences`, `CookieOptOut`,
167
+ `RecallButton`, `GatedScript`, `GatedFrame`), headless primitives (`Banner`, `Preferences`,
168
+ `OptOut`), and all hooks (`useConsent`, `useConsentActions`, …).
169
+
170
+ - Full option reference: **[Configuration](https://github.com/cookieyes/cookieyes/blob/main/docs/configuration.md)**.
171
+ - Component/hook reference: the **[`@cookieyes/react` README](https://github.com/cookieyes/cookieyes/tree/main/sdk/react#readme)**.
172
+
173
+ ## Troubleshooting
174
+
175
+ **The banner doesn't appear.**
176
+ Ensure `<CookieYesRoot />` is mounted in your root `layout.tsx` (App Router) or `_app.tsx`
177
+ (Pages Router), and that `initCookieYes(...)` runs in the `"use client"` consent-manager module.
178
+ The banner only shows while the user hasn't acted — clear the `cookieyes-consent` cookie and
179
+ reload while testing.
180
+
181
+ **I get a `"use client"` error.**
182
+ The consent-manager file (the one calling `initCookieYes` and importing the components) must
183
+ start with `"use client"`. Keep your `layout.tsx` a Server Component and import
184
+ `<CookieYesRoot />` into it — don't add `"use client"` to the layout itself.
185
+
186
+ **Hydration mismatch on load.**
187
+ Use `@cookieyes/nextjs` (not `@cookieyes/react`) so the banner is pre-marked `"use client"`.
188
+ The server-rendered banner carries your configured `regulation`, so keep that value stable —
189
+ rendering with a different regulation on the client than on the server causes a mismatch.
190
+
191
+ Still stuck? [Open an issue](https://github.com/cookieyes/cookieyes/issues).
192
+
193
+ ## Community & support
194
+
195
+ - [Open an issue](https://github.com/cookieyes/cookieyes/issues) — bug reports and feature requests.
196
+ - Email — [support@cookieyes.com](mailto:support@cookieyes.com).
197
+ - [Full documentation](https://github.com/cookieyes/cookieyes/blob/main/docs/configuration.md).
198
+
199
+ _(A community chat channel is on the roadmap.)_
200
+
201
+ ## Contributing
202
+
203
+ Contributions are welcome. Read our
204
+ [Contributing Guidelines](https://github.com/cookieyes/cookieyes/blob/main/CONTRIBUTING.md) and
205
+ [Code of Conduct](https://github.com/cookieyes/cookieyes/blob/main/CODE_OF_CONDUCT.md), then open
206
+ a pull request.
207
+
208
+ ### Security
209
+
210
+ Found a vulnerability? **Do not open a public issue** — follow our
211
+ [Security Policy](https://github.com/cookieyes/cookieyes/blob/main/SECURITY.md) and use GitHub's
212
+ private vulnerability reporting.
113
213
 
114
214
  ## License
115
215
 
116
- MIT — see [LICENSE](./LICENSE). The "Powered by CookieYes" attribution may not be removed on the free tier.
216
+ MIT — see [LICENSE](./LICENSE). The "Powered by CookieYes" attribution may not be removed on the
217
+ free tier.
package/dist/index.cjs CHANGED
@@ -1,109 +1,3 @@
1
1
  "use client";
2
- 'use strict';
3
-
4
- var react = require('@cookieyes/react');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "Banner", {
9
- enumerable: true,
10
- get: function () { return react.Banner; }
11
- });
12
- Object.defineProperty(exports, "CookieBanner", {
13
- enumerable: true,
14
- get: function () { return react.CookieBanner; }
15
- });
16
- Object.defineProperty(exports, "CookieOptOut", {
17
- enumerable: true,
18
- get: function () { return react.CookieOptOut; }
19
- });
20
- Object.defineProperty(exports, "CookiePreferences", {
21
- enumerable: true,
22
- get: function () { return react.CookiePreferences; }
23
- });
24
- Object.defineProperty(exports, "GatedFrame", {
25
- enumerable: true,
26
- get: function () { return react.GatedFrame; }
27
- });
28
- Object.defineProperty(exports, "GatedScript", {
29
- enumerable: true,
30
- get: function () { return react.GatedScript; }
31
- });
32
- Object.defineProperty(exports, "OptOut", {
33
- enumerable: true,
34
- get: function () { return react.OptOut; }
35
- });
36
- Object.defineProperty(exports, "Preferences", {
37
- enumerable: true,
38
- get: function () { return react.Preferences; }
39
- });
40
- Object.defineProperty(exports, "RecallButton", {
41
- enumerable: true,
42
- get: function () { return react.RecallButton; }
43
- });
44
- Object.defineProperty(exports, "createCookieYes", {
45
- enumerable: true,
46
- get: function () { return react.createCookieYes; }
47
- });
48
- Object.defineProperty(exports, "defaultTranslations", {
49
- enumerable: true,
50
- get: function () { return react.defaultTranslations; }
51
- });
52
- Object.defineProperty(exports, "getCookieYes", {
53
- enumerable: true,
54
- get: function () { return react.getCookieYes; }
55
- });
56
- Object.defineProperty(exports, "getOrCreateConsentRuntime", {
57
- enumerable: true,
58
- get: function () { return react.getOrCreateConsentRuntime; }
59
- });
60
- Object.defineProperty(exports, "resetConsentRuntime", {
61
- enumerable: true,
62
- get: function () { return react.resetConsentRuntime; }
63
- });
64
- Object.defineProperty(exports, "resetCookieYes", {
65
- enumerable: true,
66
- get: function () { return react.resetCookieYes; }
67
- });
68
- Object.defineProperty(exports, "resolveTranslations", {
69
- enumerable: true,
70
- get: function () { return react.resolveTranslations; }
71
- });
72
- Object.defineProperty(exports, "useBannerVisibility", {
73
- enumerable: true,
74
- get: function () { return react.useBannerVisibility; }
75
- });
76
- Object.defineProperty(exports, "useConsent", {
77
- enumerable: true,
78
- get: function () { return react.useConsent; }
79
- });
80
- Object.defineProperty(exports, "useConsentActions", {
81
- enumerable: true,
82
- get: function () { return react.useConsentActions; }
83
- });
84
- Object.defineProperty(exports, "useConsentCategory", {
85
- enumerable: true,
86
- get: function () { return react.useConsentCategory; }
87
- });
88
- Object.defineProperty(exports, "useConsentRuntime", {
89
- enumerable: true,
90
- get: function () { return react.useConsentRuntime; }
91
- });
92
- Object.defineProperty(exports, "useOptOutOpen", {
93
- enumerable: true,
94
- get: function () { return react.useOptOutOpen; }
95
- });
96
- Object.defineProperty(exports, "usePreferencesOpen", {
97
- enumerable: true,
98
- get: function () { return react.usePreferencesOpen; }
99
- });
100
- Object.defineProperty(exports, "useRegulation", {
101
- enumerable: true,
102
- get: function () { return react.useRegulation; }
103
- });
104
- Object.defineProperty(exports, "useTranslations", {
105
- enumerable: true,
106
- get: function () { return react.useTranslations; }
107
- });
2
+ "use strict";var e=require("@cookieyes/react");Object.defineProperty(exports,"Banner",{enumerable:!0,get:function(){return e.Banner}}),Object.defineProperty(exports,"CookieBanner",{enumerable:!0,get:function(){return e.CookieBanner}}),Object.defineProperty(exports,"CookieOptOut",{enumerable:!0,get:function(){return e.CookieOptOut}}),Object.defineProperty(exports,"CookiePreferences",{enumerable:!0,get:function(){return e.CookiePreferences}}),Object.defineProperty(exports,"DEFAULT_CATEGORIES",{enumerable:!0,get:function(){return e.DEFAULT_CATEGORIES}}),Object.defineProperty(exports,"GatedFrame",{enumerable:!0,get:function(){return e.GatedFrame}}),Object.defineProperty(exports,"GatedScript",{enumerable:!0,get:function(){return e.GatedScript}}),Object.defineProperty(exports,"OptOut",{enumerable:!0,get:function(){return e.OptOut}}),Object.defineProperty(exports,"Preferences",{enumerable:!0,get:function(){return e.Preferences}}),Object.defineProperty(exports,"RecallButton",{enumerable:!0,get:function(){return e.RecallButton}}),Object.defineProperty(exports,"ReloadNotice",{enumerable:!0,get:function(){return e.ReloadNotice}}),Object.defineProperty(exports,"createCookieYes",{enumerable:!0,get:function(){return e.createCookieYes}}),Object.defineProperty(exports,"defaultTranslations",{enumerable:!0,get:function(){return e.defaultTranslations}}),Object.defineProperty(exports,"getCookieYes",{enumerable:!0,get:function(){return e.getCookieYes}}),Object.defineProperty(exports,"getOrCreateConsentRuntime",{enumerable:!0,get:function(){return e.getOrCreateConsentRuntime}}),Object.defineProperty(exports,"initCookieYes",{enumerable:!0,get:function(){return e.initCookieYes}}),Object.defineProperty(exports,"registerStopHandler",{enumerable:!0,get:function(){return e.registerStopHandler}}),Object.defineProperty(exports,"resetConsentRuntime",{enumerable:!0,get:function(){return e.resetConsentRuntime}}),Object.defineProperty(exports,"resetCookieYes",{enumerable:!0,get:function(){return e.resetCookieYes}}),Object.defineProperty(exports,"resolveBuiltInIntegration",{enumerable:!0,get:function(){return e.resolveBuiltInIntegration}}),Object.defineProperty(exports,"resolveCategories",{enumerable:!0,get:function(){return e.resolveCategories}}),Object.defineProperty(exports,"resolveTranslations",{enumerable:!0,get:function(){return e.resolveTranslations}}),Object.defineProperty(exports,"useBannerVisibility",{enumerable:!0,get:function(){return e.useBannerVisibility}}),Object.defineProperty(exports,"useCategories",{enumerable:!0,get:function(){return e.useCategories}}),Object.defineProperty(exports,"useConsent",{enumerable:!0,get:function(){return e.useConsent}}),Object.defineProperty(exports,"useConsentActions",{enumerable:!0,get:function(){return e.useConsentActions}}),Object.defineProperty(exports,"useConsentCategory",{enumerable:!0,get:function(){return e.useConsentCategory}}),Object.defineProperty(exports,"useConsentRuntime",{enumerable:!0,get:function(){return e.useConsentRuntime}}),Object.defineProperty(exports,"useOptOutOpen",{enumerable:!0,get:function(){return e.useOptOutOpen}}),Object.defineProperty(exports,"usePreferencesOpen",{enumerable:!0,get:function(){return e.usePreferencesOpen}}),Object.defineProperty(exports,"useRegulation",{enumerable:!0,get:function(){return e.useRegulation}}),Object.defineProperty(exports,"useReloadNotice",{enumerable:!0,get:function(){return e.useReloadNotice}}),Object.defineProperty(exports,"useTranslations",{enumerable:!0,get:function(){return e.useTranslations}});
108
3
  //# sourceMappingURL=index.cjs.map
109
- //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs","sourcesContent":[]}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { ActiveUI, Banner, Builder, ColorSchemePref, ConsentActions, ConsentBackend, ConsentCategory, ConsentChangePayload, ConsentConfig, ConsentManager, ConsentPayload, ConsentRuntime, ConsentRuntimeMode, ConsentRuntimeOptions, ConsentSnapshot, ConsentStore, ConsentStoreState, CookieBanner, CookieOptOut, CookiePreferences, CookieYesRuntime, CookieYesSnapshot, GatedFrame, GatedScript, I18nConfig, OptOut, Preferences, RecallButton, Regulation, RuntimeMode, ScriptEntry, ThemeConfig, TranslationMap, createCookieYes, defaultTranslations, getCookieYes, getOrCreateConsentRuntime, resetConsentRuntime, resetCookieYes, resolveTranslations, useBannerVisibility, useConsent, useConsentActions, useConsentCategory, useConsentRuntime, useOptOutOpen, usePreferencesOpen, useRegulation, useTranslations } from '@cookieyes/react';
1
+ export { ActiveUI, AnyStopHandler, Banner, Builder, BuiltInIntegration, CategoryDef, ColorScheme, ColorSchemePref, ConsentActions, ConsentBackend, ConsentCategory, ConsentChangePayload, ConsentConfig, ConsentManager, ConsentPayload, ConsentRuntime, ConsentRuntimeMode, ConsentRuntimeOptions, ConsentSnapshot, ConsentStore, ConsentStoreState, CookieBanner, CookieOptOut, CookiePreferences, CookieYesConfig, CookieYesOfflineConfig, CookieYesRuntime, CookieYesSelfHostedConfig, CookieYesSnapshot, DEFAULT_CATEGORIES, GatedFrame, GatedScript, GoogleConsentSignal, I18nConfig, OptOut, Preferences, RecallButton, Regulation, ReloadNotice, ReloadNoticeState, ReloadOnlyHandler, ResolvedCategories, RuntimeMode, ScriptEntry, StopHandler, ThemeConfig, TranslationMap, UseReloadNoticeResult, createCookieYes, defaultTranslations, getCookieYes, getOrCreateConsentRuntime, initCookieYes, registerStopHandler, resetConsentRuntime, resetCookieYes, resolveBuiltInIntegration, resolveCategories, resolveTranslations, useBannerVisibility, useCategories, useConsent, useConsentActions, useConsentCategory, useConsentRuntime, useOptOutOpen, usePreferencesOpen, useRegulation, useReloadNotice, useTranslations } from '@cookieyes/react';
package/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
1
  "use client";
2
- export { Banner, CookieBanner, CookieOptOut, CookiePreferences, GatedFrame, GatedScript, OptOut, Preferences, RecallButton, createCookieYes, defaultTranslations, getCookieYes, getOrCreateConsentRuntime, resetConsentRuntime, resetCookieYes, resolveTranslations, useBannerVisibility, useConsent, useConsentActions, useConsentCategory, useConsentRuntime, useOptOutOpen, usePreferencesOpen, useRegulation, useTranslations } from '@cookieyes/react';
2
+ export{Banner,CookieBanner,CookieOptOut,CookiePreferences,DEFAULT_CATEGORIES,GatedFrame,GatedScript,OptOut,Preferences,RecallButton,ReloadNotice,createCookieYes,defaultTranslations,getCookieYes,getOrCreateConsentRuntime,initCookieYes,registerStopHandler,resetConsentRuntime,resetCookieYes,resolveBuiltInIntegration,resolveCategories,resolveTranslations,useBannerVisibility,useCategories,useConsent,useConsentActions,useConsentCategory,useConsentRuntime,useOptOutOpen,usePreferencesOpen,useRegulation,useReloadNotice,useTranslations}from"@cookieyes/react";
3
3
  //# sourceMappingURL=index.js.map
4
- //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cookieyes/nextjs",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Next.js App Router adapter for the CookieYes consent SDK",
5
5
  "keywords": [
6
6
  "cookie consent",
@@ -47,7 +47,8 @@
47
47
  "node": ">=20"
48
48
  },
49
49
  "publishConfig": {
50
- "access": "public"
50
+ "access": "public",
51
+ "provenance": true
51
52
  },
52
53
  "peerDependencies": {
53
54
  "next": ">=14.0.0",
@@ -55,8 +56,8 @@
55
56
  "react-dom": ">=18.0.0"
56
57
  },
57
58
  "dependencies": {
58
- "@cookieyes/react": "0.1.0",
59
- "@cookieyes/core": "0.1.0"
59
+ "@cookieyes/core": "0.2.0",
60
+ "@cookieyes/react": "0.3.0"
60
61
  },
61
62
  "devDependencies": {
62
63
  "@types/node": "^24.12.4",
@@ -66,13 +67,12 @@
66
67
  "next": "^16.2.6",
67
68
  "react": "^19.2.6",
68
69
  "react-dom": "^19.2.6",
69
- "tsup": "^8.5.1",
70
70
  "typescript": "^6.0.3",
71
71
  "vitest": "^4.1.7"
72
72
  },
73
73
  "scripts": {
74
- "build": "tsup",
75
- "dev": "tsup --watch",
74
+ "build": "rm -rf dist && rollup -c",
75
+ "dev": "rollup -c -w",
76
76
  "typecheck": "tsc --noEmit",
77
77
  "test": "vitest run --coverage",
78
78
  "clean": "rm -rf dist"
package/dist/index.d.cts DELETED
@@ -1 +0,0 @@
1
- export { ActiveUI, Banner, Builder, ColorSchemePref, ConsentActions, ConsentBackend, ConsentCategory, ConsentChangePayload, ConsentConfig, ConsentManager, ConsentPayload, ConsentRuntime, ConsentRuntimeMode, ConsentRuntimeOptions, ConsentSnapshot, ConsentStore, ConsentStoreState, CookieBanner, CookieOptOut, CookiePreferences, CookieYesRuntime, CookieYesSnapshot, GatedFrame, GatedScript, I18nConfig, OptOut, Preferences, RecallButton, Regulation, RuntimeMode, ScriptEntry, ThemeConfig, TranslationMap, createCookieYes, defaultTranslations, getCookieYes, getOrCreateConsentRuntime, resetConsentRuntime, resetCookieYes, resolveTranslations, useBannerVisibility, useConsent, useConsentActions, useConsentCategory, useConsentRuntime, useOptOutOpen, usePreferencesOpen, useRegulation, useTranslations } from '@cookieyes/react';