@c15t/react 1.0.3 → 1.0.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/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>
@@ -11,14 +11,14 @@
11
11
  --banner-shadow: 0 16px 32px -12px #0e121b1a;
12
12
  --banner-shadow-dark: 0 16px 32px -12px #0e121b1a;
13
13
  --banner-background-color: #fff;
14
- --banner-background-color-dark: hsl(0 0% 9.02);
14
+ --banner-background-color-dark: #171717;
15
15
  --banner-footer-background-color: #f7f7f7;
16
16
  --banner-footer-background-color-dark: #1c1c1c;
17
- --banner-text-color: hsl(0 0% 9.02);
17
+ --banner-text-color: #171717;
18
18
  --banner-text-color-dark: #e6e6e6;
19
19
  --banner-border-color: #ebebeb;
20
20
  --banner-border-color-dark: #333;
21
- --banner-title-color: hsl(0 0% 9.02);
21
+ --banner-title-color: #171717;
22
22
  --banner-title-color-dark: #e6e6e6;
23
23
  --banner-description-color: #5c5c5c;
24
24
  --banner-description-color-dark: #999;
@@ -6,7 +6,7 @@ var __webpack_modules__ = {
6
6
  "./use-focus-trap": function(module) {
7
7
  module.exports = require("./use-focus-trap.cjs");
8
8
  },
9
- "~/hooks/use-theme": function(module) {
9
+ "./use-theme": function(module) {
10
10
  module.exports = require("./use-theme.cjs");
11
11
  },
12
12
  "./use-translations": function(module) {
@@ -68,7 +68,7 @@ var __webpack_exports__ = {};
68
68
  return _use_focus_trap__WEBPACK_IMPORTED_MODULE_1__[key];
69
69
  }).bind(0, __WEBPACK_IMPORT_KEY__);
70
70
  __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
71
- var _use_theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("~/hooks/use-theme");
71
+ var _use_theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./use-theme");
72
72
  var __WEBPACK_REEXPORT_OBJECT__ = {};
73
73
  for(var __WEBPACK_IMPORT_KEY__ in _use_theme__WEBPACK_IMPORTED_MODULE_2__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
74
74
  return _use_theme__WEBPACK_IMPORTED_MODULE_2__[key];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c15t/react",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
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.3"
68
+ "c15t": "1.0.5"
69
69
  },
70
70
  "devDependencies": {
71
+ "@c15t/backend": "1.0.0",
71
72
  "@c15t/typescript-config": "0.0.1-beta.1",
72
- "@c15t/vitest-config": "1.0.0",
73
- "@c15t/backend": "1.0.0"
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",