@dargmuesli/nuxt-cookie-control 6.4.4-beta.1 → 6.4.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
|
@@ -227,7 +227,7 @@ Every property that includes a `{ en: ... }` value is a translatable property th
|
|
|
227
227
|
```html
|
|
228
228
|
<CookieControl>
|
|
229
229
|
<template #bar>
|
|
230
|
-
<
|
|
230
|
+
<h3>Bar title</h3>
|
|
231
231
|
<p>Bar description (you can use $cookies.text.barDescription)</p>
|
|
232
232
|
<n-link>Go somewhere</n-link>
|
|
233
233
|
</template>
|
|
@@ -238,7 +238,7 @@ Every property that includes a `{ en: ... }` value is a translatable property th
|
|
|
238
238
|
|
|
239
239
|
```html
|
|
240
240
|
<template #modal>
|
|
241
|
-
<
|
|
241
|
+
<h3>Modal title</h3>
|
|
242
242
|
<p>Modal description</p>
|
|
243
243
|
</template>
|
|
244
244
|
```
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { pathToFileURL } from 'node:url';
|
|
|
3
3
|
import { createResolver, defineNuxtModule, addPlugin, addImports, addTemplate, extendWebpackConfig, extendViteConfig, resolvePath } from '@nuxt/kit';
|
|
4
4
|
|
|
5
5
|
const name = "@dargmuesli/nuxt-cookie-control";
|
|
6
|
-
const version = "6.4.
|
|
6
|
+
const version = "6.4.5";
|
|
7
7
|
|
|
8
8
|
const en = {
|
|
9
9
|
accept: "Accept",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<client-only>
|
|
3
|
-
<
|
|
3
|
+
<section class="cookieControl">
|
|
4
4
|
<transition :name="`cookieControl__Bar--${moduleOptions.barPosition}`">
|
|
5
5
|
<div
|
|
6
6
|
v-if="!isConsentGiven && !moduleOptions.isModalForced"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<div class="cookieControl__BarContainer">
|
|
10
10
|
<div>
|
|
11
11
|
<slot name="bar">
|
|
12
|
-
<
|
|
12
|
+
<h3 v-text="localeStrings?.bannerTitle" />
|
|
13
13
|
<p v-text="localeStrings?.bannerDescription" />
|
|
14
14
|
</slot>
|
|
15
15
|
</div>
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
/>
|
|
65
65
|
<template v-for="cookieType in CookieType" :key="cookieType">
|
|
66
66
|
<template v-if="moduleOptions.cookies[cookieType].length">
|
|
67
|
-
<
|
|
67
|
+
<h3
|
|
68
68
|
v-text="
|
|
69
69
|
localeStrings &&
|
|
70
70
|
(cookieType === CookieType.NECESSARY
|
|
@@ -179,13 +179,15 @@
|
|
|
179
179
|
</div>
|
|
180
180
|
</div>
|
|
181
181
|
</transition>
|
|
182
|
-
</
|
|
182
|
+
</section>
|
|
183
183
|
</client-only>
|
|
184
184
|
</template>
|
|
185
185
|
|
|
186
186
|
<script setup lang="ts">
|
|
187
187
|
import { ref, computed, onBeforeMount, watch } from 'vue'
|
|
188
188
|
|
|
189
|
+
import { useNuxtApp } from '#app'
|
|
190
|
+
|
|
189
191
|
import { Cookie, CookieType, Locale, Translatable } from '../types'
|
|
190
192
|
import {
|
|
191
193
|
getAllCookieIdsString,
|
|
@@ -195,7 +197,6 @@ import {
|
|
|
195
197
|
resolveTranslatable,
|
|
196
198
|
} from '../methods'
|
|
197
199
|
|
|
198
|
-
import { useNuxtApp } from '#app'
|
|
199
200
|
import setCssVariables from '#cookie-control/set-vars'
|
|
200
201
|
import { useCookieControl, useCookie } from '#imports'
|
|
201
202
|
|
|
@@ -21,9 +21,10 @@
|
|
|
21
21
|
<script setup lang="ts">
|
|
22
22
|
import { computed } from 'vue'
|
|
23
23
|
|
|
24
|
+
import { useNuxtApp } from '#app'
|
|
25
|
+
|
|
24
26
|
import { Cookie } from '../types'
|
|
25
27
|
|
|
26
|
-
import { useNuxtApp } from '#app'
|
|
27
28
|
import { useCookieControl } from '#imports'
|
|
28
29
|
|
|
29
30
|
const { cookiesEnabled, isModalActive, moduleOptions } = useCookieControl()
|
package/dist/runtime/plugin.d.ts
CHANGED
package/dist/runtime/styles.css
CHANGED
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
background-color: var(--cookie-control-barBackground);
|
|
66
66
|
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
|
|
67
67
|
}
|
|
68
|
-
.cookieControl__Bar
|
|
68
|
+
.cookieControl__Bar h3,
|
|
69
69
|
.cookieControl__Bar p {
|
|
70
70
|
color: var(--cookie-control-barTextColor);
|
|
71
71
|
max-width: 900px;
|
|
72
72
|
}
|
|
73
|
-
.cookieControl__Bar
|
|
73
|
+
.cookieControl__Bar h3 {
|
|
74
74
|
margin: 0;
|
|
75
75
|
font-size: 20px;
|
|
76
76
|
}
|
|
@@ -205,11 +205,11 @@
|
|
|
205
205
|
.cookieControl__ModalContent *:not(button) {
|
|
206
206
|
color: var(--cookie-control-modalTextColor);
|
|
207
207
|
}
|
|
208
|
-
.cookieControl__ModalContent
|
|
208
|
+
.cookieControl__ModalContent h3 {
|
|
209
209
|
font-size: 24px;
|
|
210
210
|
margin: 15px 0px;
|
|
211
211
|
}
|
|
212
|
-
.cookieControl__ModalContent
|
|
212
|
+
.cookieControl__ModalContent h3:first-of-type {
|
|
213
213
|
margin-top: 0;
|
|
214
214
|
}
|
|
215
215
|
.cookieControl__ModalContent ul {
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
right: 0;
|
|
323
323
|
}
|
|
324
324
|
.cookieControl__Bar p,
|
|
325
|
-
.cookieControl__Bar
|
|
325
|
+
.cookieControl__Bar h3 {
|
|
326
326
|
max-width: 100%;
|
|
327
327
|
}
|
|
328
328
|
.cookieControl__Bar--top-full,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dargmuesli/nuxt-cookie-control",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.5",
|
|
4
4
|
"description": "Nuxt Cookie Control Module",
|
|
5
5
|
"author": "Dario Ferderber <dario.ferderber@broj42.com>",
|
|
6
6
|
"maintainers": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=16"
|
|
23
23
|
},
|
|
24
|
-
"packageManager": "pnpm@8.
|
|
24
|
+
"packageManager": "pnpm@8.9.0",
|
|
25
25
|
"exports": {
|
|
26
26
|
".": {
|
|
27
27
|
"import": "./dist/module.mjs",
|
|
@@ -50,21 +50,22 @@
|
|
|
50
50
|
"string-replace-loader": "^3.1.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@commitlint/cli": "17.7.
|
|
53
|
+
"@commitlint/cli": "17.7.2",
|
|
54
54
|
"@commitlint/config-conventional": "17.7.0",
|
|
55
55
|
"@dargmuesli/nuxt-cookie-control": "link:",
|
|
56
|
-
"@nuxt/module-builder": "0.5.
|
|
56
|
+
"@nuxt/module-builder": "0.5.2",
|
|
57
57
|
"@nuxtjs/eslint-config-typescript": "12.1.0",
|
|
58
|
-
"
|
|
58
|
+
"conventional-changelog-conventionalcommits": "7.0.2",
|
|
59
|
+
"eslint": "8.51.0",
|
|
59
60
|
"eslint-config-prettier": "9.0.0",
|
|
60
61
|
"eslint-plugin-prettier": "5.0.0",
|
|
61
62
|
"husky": "8.0.3",
|
|
62
63
|
"lint-staged": "14.0.1",
|
|
63
|
-
"nuxt": "3.7.
|
|
64
|
+
"nuxt": "3.7.4",
|
|
64
65
|
"prettier": "3.0.3",
|
|
65
66
|
"typescript": "5.2.2",
|
|
66
67
|
"vue": "3.3.4",
|
|
67
|
-
"vue-tsc": "1.8.
|
|
68
|
+
"vue-tsc": "1.8.18",
|
|
68
69
|
"webpack": "5.88.2"
|
|
69
70
|
},
|
|
70
71
|
"publishConfig": {
|