@veribenim/nuxt 1.0.0 → 3.0.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 ADDED
@@ -0,0 +1,53 @@
1
+ # @veribenim/nuxt
2
+
3
+ > Veribenim KVKK & GDPR çerez onayı SDK — Nuxt 3
4
+
5
+ [![npm](https://img.shields.io/npm/v/@veribenim/nuxt)](https://www.npmjs.com/package/@veribenim/nuxt)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
7
+
8
+ ## Kurulum
9
+
10
+ ```bash
11
+ npm install @veribenim/nuxt
12
+ ```
13
+
14
+ ## Kurulum (nuxt.config.ts)
15
+
16
+ ```ts
17
+ export default defineNuxtConfig({
18
+ modules: ['@veribenim/nuxt'],
19
+ veribenim: {
20
+ token: process.env.NUXT_PUBLIC_VERIBENIM_TOKEN,
21
+ lang: 'tr',
22
+ },
23
+ });
24
+ ```
25
+
26
+ ## .env
27
+
28
+ ```env
29
+ NUXT_PUBLIC_VERIBENIM_TOKEN=buraya_token_yapistirin
30
+ ```
31
+
32
+ Token'ı [Veribenim Paneli](https://app.veribenim.com)'nden alın: Siteniz → Entegrasyon.
33
+
34
+ ## Composable (otomatik import)
35
+
36
+ ```vue
37
+ <script setup>
38
+ const { preferences, accept, decline } = useVeribenim();
39
+ </script>
40
+
41
+ <template>
42
+ <div v-if="!preferences">
43
+ <button @click="accept()">Tümünü Kabul Et</button>
44
+ <button @click="decline">Reddet</button>
45
+ </div>
46
+ </template>
47
+ ```
48
+
49
+ `useVeribenim` composable'ı Nuxt'un auto-import sistemi sayesinde import'a gerek kalmadan doğrudan kullanılabilir.
50
+
51
+ ## Lisans
52
+
53
+ MIT © [Pariette](https://veribenim.com)
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "1.0.0",
7
+ "version": "3.0.0",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "unknown"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veribenim/nuxt",
3
- "version": "1.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Veribenim KVKK/GDPR çerez onayı SDK - Nuxt 3 Modülü",
5
5
  "keywords": [
6
6
  "kvkk",
@@ -22,12 +22,13 @@
22
22
  }
23
23
  },
24
24
  "files": [
25
- "dist"
25
+ "dist",
26
+ "README.md"
26
27
  ],
27
28
  "dependencies": {
28
29
  "@nuxt/kit": "^3.0.0",
29
- "@veribenim/core": "1.0.0",
30
- "@veribenim/vue": "1.0.0"
30
+ "@veribenim/core": "3.0.0",
31
+ "@veribenim/vue": "3.0.0"
31
32
  },
32
33
  "peerDependencies": {
33
34
  "nuxt": ">=3.0.0"