@dargmuesli/nuxt-cookie-control 5.0.0-beta.5 → 5.0.0-beta.7

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/dist/module.d.ts CHANGED
@@ -7,6 +7,7 @@ interface Cookie {
7
7
  description?: Translatable;
8
8
  id?: string;
9
9
  name: Translatable;
10
+ links?: Record<string, string | null>;
10
11
  src?: string;
11
12
  targetCookieIds?: string[];
12
13
  }
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "5.0.0-beta.5",
3
+ "version": "5.0.0-beta.7",
4
4
  "configKey": "cookieControl",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.0.0"
package/dist/module.mjs CHANGED
@@ -2,7 +2,7 @@ import { resolve } from 'node:path';
2
2
  import { createResolver, defineNuxtModule, addPlugin, addImports, addTemplate, extendWebpackConfig, resolvePath } from '@nuxt/kit';
3
3
 
4
4
  const name = "@dargmuesli/nuxt-cookie-control";
5
- const version = "5.0.0-beta.5";
5
+ const version = "5.0.0-beta.7";
6
6
 
7
7
  const en = {
8
8
  accept: "Accept",
@@ -119,13 +119,27 @@
119
119
  cookie.targetCookieIds
120
120
  "
121
121
  >
122
+ <br />
122
123
  {{
123
- ' IDs: ' +
124
+ 'IDs: ' +
124
125
  cookie.targetCookieIds
125
126
  .map((id: string) => `"${id}"`)
126
127
  .join(', ')
127
128
  }}
128
129
  </span>
130
+ <template
131
+ v-if="Object.entries(cookie.links || {}).length"
132
+ >
133
+ <span
134
+ v-for="entry in Object.entries(
135
+ cookie.links || {}
136
+ )"
137
+ :key="entry[0]"
138
+ >
139
+ <br />
140
+ <a :href="entry[0]">{{ entry[1] || entry[0] }}</a>
141
+ </span>
142
+ </template>
129
143
  </label>
130
144
  </div>
131
145
  </li>
@@ -193,7 +193,6 @@
193
193
  .cookieControl__ModalContent {
194
194
  position: relative;
195
195
  width: 100%;
196
- padding: 40px;
197
196
  max-width: 550px;
198
197
  max-height: 80vh;
199
198
  text-align: left;
@@ -274,6 +273,7 @@
274
273
  display: flex;
275
274
  flex-direction: column;
276
275
  gap: 10px;
276
+ padding: 40px;
277
277
  }
278
278
  .cookieControl__ModalInputWrapper {
279
279
  display: flex;
@@ -343,6 +343,8 @@
343
343
  bottom: 0;
344
344
  max-width: none;
345
345
  max-height: 100%;
346
+ }
347
+ .cookieControl__ModalContentInner {
346
348
  padding: 20px;
347
349
  }
348
350
  .cookieControl__BarButtons {
@@ -360,7 +362,7 @@
360
362
  .cookieControl__BarContainer,
361
363
  .cookieControl__ModalButtons {
362
364
  flex-direction: column;
363
- gap: 0;
365
+ gap: 10px;
364
366
  }
365
367
  .cookieControl__ModalButtons button {
366
368
  width: 100%;
@@ -10,6 +10,7 @@ export interface Cookie {
10
10
  description?: Translatable;
11
11
  id?: string;
12
12
  name: Translatable;
13
+ links?: Record<string, string | null>;
13
14
  src?: string;
14
15
  targetCookieIds?: string[];
15
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "5.0.0-beta.5",
3
+ "version": "5.0.0-beta.7",
4
4
  "description": "Nuxt Cookies Control Module",
5
5
  "author": "Dario Ferderber <dario.ferderber@broj42.com>",
6
6
  "maintainers": [