@dargmuesli/nuxt-cookie-control 6.4.6 → 7.0.0-beta.2
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 +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/CookieControl.vue +4 -4
- package/dist/runtime/styles.css +5 -5
- package/package.json +1 -1
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
|
+
<h2>Bar title</h2>
|
|
231
231
|
<p>Bar description (you can use $cookies.text.barDescription)</p>
|
|
232
232
|
<n-link>Go somewhere</n-link>
|
|
233
233
|
</template>
|
|
@@ -239,7 +239,7 @@ Every property that includes a `{ en: ... }` value is a translatable property th
|
|
|
239
239
|
```html
|
|
240
240
|
<CookieControl>
|
|
241
241
|
<template #modal>
|
|
242
|
-
<
|
|
242
|
+
<h2>Modal title</h2>
|
|
243
243
|
<p>Modal description</p>
|
|
244
244
|
</template>
|
|
245
245
|
</CookieControl>
|
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
|
+
const version = "7.0.0-beta.2";
|
|
7
7
|
|
|
8
8
|
const en = {
|
|
9
9
|
accept: "Accept",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<client-only>
|
|
3
|
-
<
|
|
3
|
+
<aside 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
|
+
<h2 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
|
+
<h2
|
|
68
68
|
v-text="
|
|
69
69
|
localeStrings &&
|
|
70
70
|
(cookieType === CookieType.NECESSARY
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
</div>
|
|
180
180
|
</div>
|
|
181
181
|
</transition>
|
|
182
|
-
</
|
|
182
|
+
</aside>
|
|
183
183
|
</client-only>
|
|
184
184
|
</template>
|
|
185
185
|
|
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 h2,
|
|
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 h2 {
|
|
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 h2 {
|
|
209
209
|
font-size: 24px;
|
|
210
210
|
margin: 15px 0px;
|
|
211
211
|
}
|
|
212
|
-
.cookieControl__ModalContent
|
|
212
|
+
.cookieControl__ModalContent h2: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 h2 {
|
|
326
326
|
max-width: 100%;
|
|
327
327
|
}
|
|
328
328
|
.cookieControl__Bar--top-full,
|