@c15t/react 1.0.2 → 1.0.4

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
@@ -5,7 +5,7 @@
5
5
 
6
6
  [![GitHub stars](https://img.shields.io/github/stars/c15t/c15t?style=flat-square)](https://github.com/c15t/c15t)
7
7
  [![CI](https://img.shields.io/github/actions/workflow/status/c15t/c15t/ci.yml?style=flat-square)](https://github.com/c15t/c15t/actions/workflows/ci.yml)
8
- [![License](https://img.shields.io/badge/license-GPL--3.0-blue.svg?style=flat-square)](LICENSE)
8
+ [![License](https://img.shields.io/badge/license-GPL--3.0-blue.svg?style=flat-square)]([LICENSE.md](https://github.com/c15t/c15t/blob/main/LICENSE.md))
9
9
  [![Discord](https://img.shields.io/discord/1312171102268690493?style=flat-square)](https://c15t.com/discord)
10
10
  </div>
11
11
 
@@ -22,26 +22,31 @@ React components for building privacy-first user interfaces.
22
22
  ## Documentation
23
23
 
24
24
  For detailed documentation and examples, visit:
25
- [https://c15t.com/docs/framework/react](https://c15t.com/docs/framework/react)
25
+ [https://c15t.com/docs/react/quickstart](https://c15t.com/docs/react/quickstart)
26
26
 
27
- ## Installation
27
+ ## ⚡ Quick Start Via CLI
28
28
 
29
29
  ```bash
30
- npm install @c15t/react
31
- # or
32
- yarn add @c15t/react
33
- # or
34
- pnpm add @c15t/react
30
+ # Generates the schema + code
31
+ npx @c15t/cli generate
32
+ pnpm dlx @c15t/cli generate
33
+ bunx --bun @c15t/cli generate
34
+
35
+ # Database Migrations (If you're self hosting c15t)
36
+ npx @c15t/cli migrate
37
+ pnpm dlx @c15t/cli migrate
38
+ bunx --bun @c15t/cli migrate
35
39
  ```
36
40
 
37
- ## Quick Start
41
+ After running the CLI, you can use the following code to get started:
38
42
 
39
43
  ```tsx
40
44
  import { ConsentManagerProvider, CookieBanner, ConsentManagerDialog } from "@c15t/react";
45
+ import { c15tConfig } from "./c15t.client";
41
46
 
42
47
  export default function App() {
43
48
  return (
44
- <ConsentManagerProvider>
49
+ <ConsentManagerProvider config={c15tConfig}>
45
50
  <CookieBanner />
46
51
  <ConsentManagerDialog/>
47
52
  {/* Your app content */}
@@ -50,6 +55,12 @@ export default function App() {
50
55
  }
51
56
  ```
52
57
 
53
- ## License
58
+ ## 📜 License
59
+
60
+ [GNU General Public License v3.0](https://github.com/c15t/c15t/blob/main/LICENSE.md) - See [LICENSE]([LICENSE.md](https://github.com/c15t/c15t/blob/main/LICENSE.md)) for details.
61
+
62
+ ---
54
63
 
55
- [GNU General Public License v3.0](https://github.com/c15t/c15t/blob/main/LICENSE)
64
+ <div align="center">
65
+ <strong>Built with ❤️ by the <a href="www.consent.io"/>consent.io</a> team</strong>
66
+ </div>
@@ -1,4 +1,20 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE__use_theme_js_d12716c7__ from "./use-theme.js";
1
2
  export * from "./use-consent-manager.js";
2
3
  export * from "./use-focus-trap.js";
3
- export * from "./use-theme.js";
4
4
  export * from "./use-translations.js";
5
+ var __webpack_modules__ = {
6
+ "~/hooks/use-theme": function(module) {
7
+ module.exports = __WEBPACK_EXTERNAL_MODULE__use_theme_js_d12716c7__;
8
+ }
9
+ };
10
+ var __webpack_module_cache__ = {};
11
+ function __webpack_require__(moduleId) {
12
+ var cachedModule = __webpack_module_cache__[moduleId];
13
+ if (void 0 !== cachedModule) return cachedModule.exports;
14
+ var module = __webpack_module_cache__[moduleId] = {
15
+ exports: {}
16
+ };
17
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
18
+ return module.exports;
19
+ }
20
+ __webpack_require__("~/hooks/use-theme");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c15t/react",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "license": "GPL-3.0-only",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -65,12 +65,12 @@
65
65
  "motion": "^12.6.5",
66
66
  "tailwind-variants": "^1.0.0",
67
67
  "zustand": "^5.0.3",
68
- "c15t": "1.0.2"
68
+ "c15t": "1.0.4"
69
69
  },
70
70
  "devDependencies": {
71
- "@c15t/vitest-config": "1.0.0",
72
71
  "@c15t/backend": "1.0.0",
73
- "@c15t/typescript-config": "0.0.1-beta.1"
72
+ "@c15t/typescript-config": "0.0.1-beta.1",
73
+ "@c15t/vitest-config": "1.0.0"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",