@dargmuesli/nuxt-cookie-control 8.3.3 → 8.4.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.
Files changed (51) hide show
  1. package/README.md +1 -1
  2. package/dist/module.json +2 -2
  3. package/dist/module.mjs +1 -1
  4. package/dist/runtime/locale/index.js +70 -0
  5. package/dist/runtime/locale/sl.d.ts +3 -0
  6. package/dist/runtime/locale/sl.js +17 -0
  7. package/dist/runtime/types.d.ts +1 -1
  8. package/dist/runtime/{types.mjs → types.js} +1 -1
  9. package/dist/types.d.mts +382 -0
  10. package/dist/types.d.ts +382 -0
  11. package/package.json +12 -14
  12. package/dist/runtime/locale/index.mjs +0 -68
  13. /package/dist/runtime/{composables.mjs → composables.js} +0 -0
  14. /package/dist/runtime/{constants.mjs → constants.js} +0 -0
  15. /package/dist/runtime/locale/{ar.mjs → ar.js} +0 -0
  16. /package/dist/runtime/locale/{az.mjs → az.js} +0 -0
  17. /package/dist/runtime/locale/{be.mjs → be.js} +0 -0
  18. /package/dist/runtime/locale/{bg.mjs → bg.js} +0 -0
  19. /package/dist/runtime/locale/{ca.mjs → ca.js} +0 -0
  20. /package/dist/runtime/locale/{cs.mjs → cs.js} +0 -0
  21. /package/dist/runtime/locale/{da.mjs → da.js} +0 -0
  22. /package/dist/runtime/locale/{de.mjs → de.js} +0 -0
  23. /package/dist/runtime/locale/{en.mjs → en.js} +0 -0
  24. /package/dist/runtime/locale/{es.mjs → es.js} +0 -0
  25. /package/dist/runtime/locale/{fi.mjs → fi.js} +0 -0
  26. /package/dist/runtime/locale/{fr.mjs → fr.js} +0 -0
  27. /package/dist/runtime/locale/{hr.mjs → hr.js} +0 -0
  28. /package/dist/runtime/locale/{hu.mjs → hu.js} +0 -0
  29. /package/dist/runtime/locale/{id.mjs → id.js} +0 -0
  30. /package/dist/runtime/locale/{it.mjs → it.js} +0 -0
  31. /package/dist/runtime/locale/{ja.mjs → ja.js} +0 -0
  32. /package/dist/runtime/locale/{km.mjs → km.js} +0 -0
  33. /package/dist/runtime/locale/{ko.mjs → ko.js} +0 -0
  34. /package/dist/runtime/locale/{lt.mjs → lt.js} +0 -0
  35. /package/dist/runtime/locale/{nl.mjs → nl.js} +0 -0
  36. /package/dist/runtime/locale/{no.mjs → no.js} +0 -0
  37. /package/dist/runtime/locale/{oc.mjs → oc.js} +0 -0
  38. /package/dist/runtime/locale/{pl.mjs → pl.js} +0 -0
  39. /package/dist/runtime/locale/{pt.mjs → pt.js} +0 -0
  40. /package/dist/runtime/locale/{ro.mjs → ro.js} +0 -0
  41. /package/dist/runtime/locale/{rs.mjs → rs.js} +0 -0
  42. /package/dist/runtime/locale/{ru.mjs → ru.js} +0 -0
  43. /package/dist/runtime/locale/{sk.mjs → sk.js} +0 -0
  44. /package/dist/runtime/locale/{sv.mjs → sv.js} +0 -0
  45. /package/dist/runtime/locale/{tr.mjs → tr.js} +0 -0
  46. /package/dist/runtime/locale/{uk.mjs → uk.js} +0 -0
  47. /package/dist/runtime/locale/{zh-CN.mjs → zh-CN.js} +0 -0
  48. /package/dist/runtime/{methods.mjs → methods.js} +0 -0
  49. /package/dist/runtime/{plugin.mjs → plugin.js} +0 -0
  50. /package/dist/runtime/set-vars/{native.mjs → native.js} +0 -0
  51. /package/dist/runtime/set-vars/{ponyfill.mjs → ponyfill.js} +0 -0
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ![nuxt-cookie-control](https://drive.google.com/a/broj42.com/uc?id=19sFguJo7SKUvmH4xu9DhK9ZXzR6oWLX8)
8
8
 
9
- ✅ Translated for: ar, az, be, bg, ca, cs, da, de, en, es, fi, fr, hr, hu, id, it, ja, km, ko, lt, nl, no, oc, pt, pl, ro, rs, ru, sk, sv, tr, uk and zh-CN
9
+ ✅ Translated for: ar, az, be, bg, ca, cs, da, de, en, es, fi, fr, hr, hu, id, it, ja, km, ko, lt, nl, no, oc, pt, pl, ro, rs, ru, sk, sl, sv, tr, uk and zh-CN
10
10
 
11
11
  ✅ Vue 3 support
12
12
 
package/dist/module.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "8.3.3",
3
+ "version": "8.4.0",
4
4
  "configKey": "cookieControl",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.0.0"
7
7
  },
8
8
  "builder": {
9
- "@nuxt/module-builder": "0.6.0",
9
+ "@nuxt/module-builder": "0.7.0",
10
10
  "unbuild": "unknown"
11
11
  }
12
12
  }
package/dist/module.mjs CHANGED
@@ -122,7 +122,7 @@ const DEFAULTS = {
122
122
  };
123
123
 
124
124
  const name = "@dargmuesli/nuxt-cookie-control";
125
- const version = "8.3.3";
125
+ const version = "8.4.0";
126
126
 
127
127
  const resolver = createResolver(import.meta.url);
128
128
  const runtimeDir = resolver.resolve("./runtime");
@@ -0,0 +1,70 @@
1
+ import ar from "./ar.js";
2
+ import az from "./az.js";
3
+ import be from "./be.js";
4
+ import bg from "./bg.js";
5
+ import ca from "./ca.js";
6
+ import cs from "./cs.js";
7
+ import da from "./da.js";
8
+ import de from "./de.js";
9
+ import en from "./en.js";
10
+ import es from "./es.js";
11
+ import fi from "./fi.js";
12
+ import fr from "./fr.js";
13
+ import hr from "./hr.js";
14
+ import hu from "./hu.js";
15
+ import id from "./id.js";
16
+ import it from "./it.js";
17
+ import ja from "./ja.js";
18
+ import km from "./km.js";
19
+ import ko from "./ko.js";
20
+ import lt from "./lt.js";
21
+ import nl from "./nl.js";
22
+ import no from "./no.js";
23
+ import oc from "./oc.js";
24
+ import pt from "./pt.js";
25
+ import pl from "./pl.js";
26
+ import ro from "./ro.js";
27
+ import rs from "./rs.js";
28
+ import ru from "./ru.js";
29
+ import sk from "./sk.js";
30
+ import sl from "./sl.js";
31
+ import sv from "./sv.js";
32
+ import tr from "./tr.js";
33
+ import uk from "./uk.js";
34
+ import zhCN from "./zh-CN.js";
35
+ export const locales = [
36
+ ar,
37
+ az,
38
+ be,
39
+ bg,
40
+ ca,
41
+ cs,
42
+ da,
43
+ de,
44
+ en,
45
+ es,
46
+ fi,
47
+ fr,
48
+ hr,
49
+ hu,
50
+ id,
51
+ it,
52
+ ja,
53
+ km,
54
+ ko,
55
+ lt,
56
+ nl,
57
+ no,
58
+ oc,
59
+ pt,
60
+ pl,
61
+ ro,
62
+ rs,
63
+ ru,
64
+ sk,
65
+ sl,
66
+ sv,
67
+ tr,
68
+ uk,
69
+ zhCN
70
+ ];
@@ -0,0 +1,3 @@
1
+ import type { LocaleStrings } from '#cookie-control/types';
2
+ declare const _default: LocaleStrings;
3
+ export default _default;
@@ -0,0 +1,17 @@
1
+ export default {
2
+ accept: "Sprejmi",
3
+ acceptAll: "Sprejmi vse",
4
+ bannerDescription: "Uporabljamo lastne pi\u0161kotke in pi\u0161kotke tretjih oseb, da lahko pravilno prika\u017Eemo to spletno mesto in bolje razumemo, kako se to spletno mesto uporablja, z namenom izbolj\u0161anja storitev, ki jih ponujamo. Odlo\u010Ditev o dovoljenjih za uporabo pi\u0161kotkov lahko kadar koli spremenite z uporabo gumba za pi\u0161kotke, ki se prika\u017Ee po izbiri na tej pasici.",
5
+ bannerTitle: "Pi\u0161kotki",
6
+ close: "Zapri",
7
+ cookiesFunctional: "Funkcionalni pi\u0161kotki",
8
+ cookiesNecessary: "Obvezni pi\u0161kotki",
9
+ cookiesOptional: "Poljubni pi\u0161kotki",
10
+ decline: "Zavrni",
11
+ declineAll: "Zavrni vse",
12
+ here: "tukaj",
13
+ iframeBlocked: "\u010Ce \u017Eelite to videti, omogo\u010Dite funkcionalne pi\u0161kotke",
14
+ manageCookies: "Izvedite ve\u010D in prilagodite",
15
+ save: "Shrani",
16
+ settingsUnsaved: "Imate neshranjene nastavitve"
17
+ };
@@ -1,6 +1,6 @@
1
1
  import type { Ref } from 'vue';
2
2
  import type { CookieOptions } from 'nuxt/app';
3
- export type Locale = 'ar' | 'az' | 'be' | 'bg' | 'ca' | 'cs' | 'da' | 'de' | 'en' | 'es' | 'fi' | 'fr' | 'hr' | 'hu' | 'id' | 'it' | 'ja' | 'km' | 'ko' | 'lt' | 'nl' | 'no' | 'oc' | 'pt' | 'pl' | 'ro' | 'rs' | 'ru' | 'sk' | 'sv' | 'tr' | 'uk' | 'zh-CN';
3
+ export type Locale = 'ar' | 'az' | 'be' | 'bg' | 'ca' | 'cs' | 'da' | 'de' | 'en' | 'es' | 'fi' | 'fr' | 'hr' | 'hu' | 'id' | 'it' | 'ja' | 'km' | 'ko' | 'lt' | 'nl' | 'no' | 'oc' | 'pt' | 'pl' | 'ro' | 'rs' | 'ru' | 'sk' | 'sl' | 'sv' | 'tr' | 'uk' | 'zh-CN';
4
4
  export type PartialRecord<K extends string | number | symbol, T> = Partial<Record<K, T>>;
5
5
  export type Translatable = string | PartialRecord<Locale, string>;
6
6
  export declare enum CookieType {
@@ -1,4 +1,4 @@
1
- import en from "./locale/en.mjs";
1
+ import en from "./locale/en.js";
2
2
  export var CookieType = /* @__PURE__ */ ((CookieType2) => {
3
3
  CookieType2["NECESSARY"] = "necessary";
4
4
  CookieType2["OPTIONAL"] = "optional";
package/dist/types.d.mts CHANGED
@@ -2,7 +2,389 @@
2
2
  import type { } from './module.js'
3
3
 
4
4
 
5
+ declare module '@nuxt/schema' {
6
+ export interface ModuleOptions {
7
+ /** @default "bottom-full" */
8
+ barPosition: string,
5
9
 
10
+ /** @default false */
11
+ closeModalOnClickOutside: boolean,
12
+
13
+ colors: {
14
+ /** @default "#000" */
15
+ barBackground: string,
16
+
17
+ /** @default "#fff" */
18
+ barButtonBackground: string,
19
+
20
+ /** @default "#000" */
21
+ barButtonColor: string,
22
+
23
+ /** @default "#333" */
24
+ barButtonHoverBackground: string,
25
+
26
+ /** @default "#fff" */
27
+ barButtonHoverColor: string,
28
+
29
+ /** @default "#fff" */
30
+ barTextColor: string,
31
+
32
+ /** @default "#000" */
33
+ checkboxActiveBackground: string,
34
+
35
+ /** @default "#fff" */
36
+ checkboxActiveCircleBackground: string,
37
+
38
+ /** @default "#ddd" */
39
+ checkboxDisabledBackground: string,
40
+
41
+ /** @default "#fff" */
42
+ checkboxDisabledCircleBackground: string,
43
+
44
+ /** @default "#000" */
45
+ checkboxInactiveBackground: string,
46
+
47
+ /** @default "#fff" */
48
+ checkboxInactiveCircleBackground: string,
49
+
50
+ /** @default "#fff" */
51
+ controlButtonBackground: string,
52
+
53
+ /** @default "#000" */
54
+ controlButtonHoverBackground: string,
55
+
56
+ /** @default "#000" */
57
+ controlButtonIconColor: string,
58
+
59
+ /** @default "#fff" */
60
+ controlButtonIconHoverColor: string,
61
+
62
+ /** @default "#808080" */
63
+ focusRingColor: string,
64
+
65
+ /** @default "#fff" */
66
+ modalBackground: string,
67
+
68
+ /** @default "#000" */
69
+ modalButtonBackground: string,
70
+
71
+ /** @default "#fff" */
72
+ modalButtonColor: string,
73
+
74
+ /** @default "#333" */
75
+ modalButtonHoverBackground: string,
76
+
77
+ /** @default "#fff" */
78
+ modalButtonHoverColor: string,
79
+
80
+ /** @default "#000" */
81
+ modalOverlay: string,
82
+
83
+ /** @default 0.8 */
84
+ modalOverlayOpacity: number,
85
+
86
+ /** @default "#000" */
87
+ modalTextColor: string,
88
+
89
+ /** @default "#fff" */
90
+ modalUnsavedColor: string,
91
+ },
92
+
93
+ cookies: {
94
+ necessary: Array<any>,
95
+
96
+ optional: Array<any>,
97
+ },
98
+
99
+ /** @default 31536000000 */
100
+ cookieExpiryOffsetMs: number,
101
+
102
+ /** @default "ncc_c" */
103
+ cookieNameIsConsentGiven: string,
104
+
105
+ /** @default "ncc_e" */
106
+ cookieNameCookiesEnabledIds: string,
107
+
108
+ cookieOptions: {
109
+ /** @default "/" */
110
+ path: string,
111
+
112
+ /** @default "strict" */
113
+ sameSite: string,
114
+
115
+ /** @default true */
116
+ secure: boolean,
117
+ },
118
+
119
+ /** @default true */
120
+ isAcceptNecessaryButtonEnabled: boolean,
121
+
122
+ /** @default true */
123
+ isControlButtonEnabled: boolean,
124
+
125
+ /** @default false */
126
+ isCookieIdVisible: boolean,
127
+
128
+ /** @default true */
129
+ isCssEnabled: boolean,
130
+
131
+ /** @default false */
132
+ isCssPonyfillEnabled: boolean,
133
+
134
+ /** @default true */
135
+ isDashInDescriptionEnabled: boolean,
136
+
137
+ /** @default false */
138
+ isIframeBlocked: boolean,
139
+
140
+ /** @default false */
141
+ isModalForced: boolean,
142
+
143
+ /** @default ["en"] */
144
+ locales: Array<string>,
145
+
146
+ localeTexts: {
147
+ en: {
148
+ /** @default "Accept" */
149
+ accept: string,
150
+
151
+ /** @default "Accept all" */
152
+ acceptAll: string,
153
+
154
+ /** @default "We use our own cookies and third-party cookies so that we can display this website correctly and better understand how this website is used, with a view to improving the services we offer. A decision on cookie usage permissions can be changed anytime using the cookie button that will appear after a selection has been made on this banner." */
155
+ bannerDescription: string,
156
+
157
+ /** @default "Cookies" */
158
+ bannerTitle: string,
159
+
160
+ /** @default "Close" */
161
+ close: string,
162
+
163
+ /** @default "Functional cookies" */
164
+ cookiesFunctional: string,
165
+
166
+ /** @default "Necessary cookies" */
167
+ cookiesNecessary: string,
168
+
169
+ /** @default "Optional cookies" */
170
+ cookiesOptional: string,
171
+
172
+ /** @default "Decline" */
173
+ decline: string,
174
+
175
+ /** @default "Decline all" */
176
+ declineAll: string,
177
+
178
+ /** @default "here" */
179
+ here: string,
180
+
181
+ /** @default "To see this, please enable functional cookies" */
182
+ iframeBlocked: string,
183
+
184
+ /** @default "Learn more and customize" */
185
+ manageCookies: string,
186
+
187
+ /** @default "Save" */
188
+ save: string,
189
+
190
+ /** @default "You have unsaved settings" */
191
+ settingsUnsaved: string,
192
+ },
193
+ },
194
+ }
195
+ }
196
+
197
+ declare module 'nuxt/schema' {
198
+ export interface ModuleOptions {
199
+ /** @default "bottom-full" */
200
+ barPosition: string,
201
+
202
+ /** @default false */
203
+ closeModalOnClickOutside: boolean,
204
+
205
+ colors: {
206
+ /** @default "#000" */
207
+ barBackground: string,
208
+
209
+ /** @default "#fff" */
210
+ barButtonBackground: string,
211
+
212
+ /** @default "#000" */
213
+ barButtonColor: string,
214
+
215
+ /** @default "#333" */
216
+ barButtonHoverBackground: string,
217
+
218
+ /** @default "#fff" */
219
+ barButtonHoverColor: string,
220
+
221
+ /** @default "#fff" */
222
+ barTextColor: string,
223
+
224
+ /** @default "#000" */
225
+ checkboxActiveBackground: string,
226
+
227
+ /** @default "#fff" */
228
+ checkboxActiveCircleBackground: string,
229
+
230
+ /** @default "#ddd" */
231
+ checkboxDisabledBackground: string,
232
+
233
+ /** @default "#fff" */
234
+ checkboxDisabledCircleBackground: string,
235
+
236
+ /** @default "#000" */
237
+ checkboxInactiveBackground: string,
238
+
239
+ /** @default "#fff" */
240
+ checkboxInactiveCircleBackground: string,
241
+
242
+ /** @default "#fff" */
243
+ controlButtonBackground: string,
244
+
245
+ /** @default "#000" */
246
+ controlButtonHoverBackground: string,
247
+
248
+ /** @default "#000" */
249
+ controlButtonIconColor: string,
250
+
251
+ /** @default "#fff" */
252
+ controlButtonIconHoverColor: string,
253
+
254
+ /** @default "#808080" */
255
+ focusRingColor: string,
256
+
257
+ /** @default "#fff" */
258
+ modalBackground: string,
259
+
260
+ /** @default "#000" */
261
+ modalButtonBackground: string,
262
+
263
+ /** @default "#fff" */
264
+ modalButtonColor: string,
265
+
266
+ /** @default "#333" */
267
+ modalButtonHoverBackground: string,
268
+
269
+ /** @default "#fff" */
270
+ modalButtonHoverColor: string,
271
+
272
+ /** @default "#000" */
273
+ modalOverlay: string,
274
+
275
+ /** @default 0.8 */
276
+ modalOverlayOpacity: number,
277
+
278
+ /** @default "#000" */
279
+ modalTextColor: string,
280
+
281
+ /** @default "#fff" */
282
+ modalUnsavedColor: string,
283
+ },
284
+
285
+ cookies: {
286
+ necessary: Array<any>,
287
+
288
+ optional: Array<any>,
289
+ },
290
+
291
+ /** @default 31536000000 */
292
+ cookieExpiryOffsetMs: number,
293
+
294
+ /** @default "ncc_c" */
295
+ cookieNameIsConsentGiven: string,
296
+
297
+ /** @default "ncc_e" */
298
+ cookieNameCookiesEnabledIds: string,
299
+
300
+ cookieOptions: {
301
+ /** @default "/" */
302
+ path: string,
303
+
304
+ /** @default "strict" */
305
+ sameSite: string,
306
+
307
+ /** @default true */
308
+ secure: boolean,
309
+ },
310
+
311
+ /** @default true */
312
+ isAcceptNecessaryButtonEnabled: boolean,
313
+
314
+ /** @default true */
315
+ isControlButtonEnabled: boolean,
316
+
317
+ /** @default false */
318
+ isCookieIdVisible: boolean,
319
+
320
+ /** @default true */
321
+ isCssEnabled: boolean,
322
+
323
+ /** @default false */
324
+ isCssPonyfillEnabled: boolean,
325
+
326
+ /** @default true */
327
+ isDashInDescriptionEnabled: boolean,
328
+
329
+ /** @default false */
330
+ isIframeBlocked: boolean,
331
+
332
+ /** @default false */
333
+ isModalForced: boolean,
334
+
335
+ /** @default ["en"] */
336
+ locales: Array<string>,
337
+
338
+ localeTexts: {
339
+ en: {
340
+ /** @default "Accept" */
341
+ accept: string,
342
+
343
+ /** @default "Accept all" */
344
+ acceptAll: string,
345
+
346
+ /** @default "We use our own cookies and third-party cookies so that we can display this website correctly and better understand how this website is used, with a view to improving the services we offer. A decision on cookie usage permissions can be changed anytime using the cookie button that will appear after a selection has been made on this banner." */
347
+ bannerDescription: string,
348
+
349
+ /** @default "Cookies" */
350
+ bannerTitle: string,
351
+
352
+ /** @default "Close" */
353
+ close: string,
354
+
355
+ /** @default "Functional cookies" */
356
+ cookiesFunctional: string,
357
+
358
+ /** @default "Necessary cookies" */
359
+ cookiesNecessary: string,
360
+
361
+ /** @default "Optional cookies" */
362
+ cookiesOptional: string,
363
+
364
+ /** @default "Decline" */
365
+ decline: string,
366
+
367
+ /** @default "Decline all" */
368
+ declineAll: string,
369
+
370
+ /** @default "here" */
371
+ here: string,
372
+
373
+ /** @default "To see this, please enable functional cookies" */
374
+ iframeBlocked: string,
375
+
376
+ /** @default "Learn more and customize" */
377
+ manageCookies: string,
378
+
379
+ /** @default "Save" */
380
+ save: string,
381
+
382
+ /** @default "You have unsaved settings" */
383
+ settingsUnsaved: string,
384
+ },
385
+ },
386
+ }
387
+ }
6
388
 
7
389
 
8
390
  export type { default } from './module.js'
package/dist/types.d.ts CHANGED
@@ -2,7 +2,389 @@
2
2
  import type { } from './module'
3
3
 
4
4
 
5
+ declare module '@nuxt/schema' {
6
+ export interface ModuleOptions {
7
+ /** @default "bottom-full" */
8
+ barPosition: string,
5
9
 
10
+ /** @default false */
11
+ closeModalOnClickOutside: boolean,
12
+
13
+ colors: {
14
+ /** @default "#000" */
15
+ barBackground: string,
16
+
17
+ /** @default "#fff" */
18
+ barButtonBackground: string,
19
+
20
+ /** @default "#000" */
21
+ barButtonColor: string,
22
+
23
+ /** @default "#333" */
24
+ barButtonHoverBackground: string,
25
+
26
+ /** @default "#fff" */
27
+ barButtonHoverColor: string,
28
+
29
+ /** @default "#fff" */
30
+ barTextColor: string,
31
+
32
+ /** @default "#000" */
33
+ checkboxActiveBackground: string,
34
+
35
+ /** @default "#fff" */
36
+ checkboxActiveCircleBackground: string,
37
+
38
+ /** @default "#ddd" */
39
+ checkboxDisabledBackground: string,
40
+
41
+ /** @default "#fff" */
42
+ checkboxDisabledCircleBackground: string,
43
+
44
+ /** @default "#000" */
45
+ checkboxInactiveBackground: string,
46
+
47
+ /** @default "#fff" */
48
+ checkboxInactiveCircleBackground: string,
49
+
50
+ /** @default "#fff" */
51
+ controlButtonBackground: string,
52
+
53
+ /** @default "#000" */
54
+ controlButtonHoverBackground: string,
55
+
56
+ /** @default "#000" */
57
+ controlButtonIconColor: string,
58
+
59
+ /** @default "#fff" */
60
+ controlButtonIconHoverColor: string,
61
+
62
+ /** @default "#808080" */
63
+ focusRingColor: string,
64
+
65
+ /** @default "#fff" */
66
+ modalBackground: string,
67
+
68
+ /** @default "#000" */
69
+ modalButtonBackground: string,
70
+
71
+ /** @default "#fff" */
72
+ modalButtonColor: string,
73
+
74
+ /** @default "#333" */
75
+ modalButtonHoverBackground: string,
76
+
77
+ /** @default "#fff" */
78
+ modalButtonHoverColor: string,
79
+
80
+ /** @default "#000" */
81
+ modalOverlay: string,
82
+
83
+ /** @default 0.8 */
84
+ modalOverlayOpacity: number,
85
+
86
+ /** @default "#000" */
87
+ modalTextColor: string,
88
+
89
+ /** @default "#fff" */
90
+ modalUnsavedColor: string,
91
+ },
92
+
93
+ cookies: {
94
+ necessary: Array<any>,
95
+
96
+ optional: Array<any>,
97
+ },
98
+
99
+ /** @default 31536000000 */
100
+ cookieExpiryOffsetMs: number,
101
+
102
+ /** @default "ncc_c" */
103
+ cookieNameIsConsentGiven: string,
104
+
105
+ /** @default "ncc_e" */
106
+ cookieNameCookiesEnabledIds: string,
107
+
108
+ cookieOptions: {
109
+ /** @default "/" */
110
+ path: string,
111
+
112
+ /** @default "strict" */
113
+ sameSite: string,
114
+
115
+ /** @default true */
116
+ secure: boolean,
117
+ },
118
+
119
+ /** @default true */
120
+ isAcceptNecessaryButtonEnabled: boolean,
121
+
122
+ /** @default true */
123
+ isControlButtonEnabled: boolean,
124
+
125
+ /** @default false */
126
+ isCookieIdVisible: boolean,
127
+
128
+ /** @default true */
129
+ isCssEnabled: boolean,
130
+
131
+ /** @default false */
132
+ isCssPonyfillEnabled: boolean,
133
+
134
+ /** @default true */
135
+ isDashInDescriptionEnabled: boolean,
136
+
137
+ /** @default false */
138
+ isIframeBlocked: boolean,
139
+
140
+ /** @default false */
141
+ isModalForced: boolean,
142
+
143
+ /** @default ["en"] */
144
+ locales: Array<string>,
145
+
146
+ localeTexts: {
147
+ en: {
148
+ /** @default "Accept" */
149
+ accept: string,
150
+
151
+ /** @default "Accept all" */
152
+ acceptAll: string,
153
+
154
+ /** @default "We use our own cookies and third-party cookies so that we can display this website correctly and better understand how this website is used, with a view to improving the services we offer. A decision on cookie usage permissions can be changed anytime using the cookie button that will appear after a selection has been made on this banner." */
155
+ bannerDescription: string,
156
+
157
+ /** @default "Cookies" */
158
+ bannerTitle: string,
159
+
160
+ /** @default "Close" */
161
+ close: string,
162
+
163
+ /** @default "Functional cookies" */
164
+ cookiesFunctional: string,
165
+
166
+ /** @default "Necessary cookies" */
167
+ cookiesNecessary: string,
168
+
169
+ /** @default "Optional cookies" */
170
+ cookiesOptional: string,
171
+
172
+ /** @default "Decline" */
173
+ decline: string,
174
+
175
+ /** @default "Decline all" */
176
+ declineAll: string,
177
+
178
+ /** @default "here" */
179
+ here: string,
180
+
181
+ /** @default "To see this, please enable functional cookies" */
182
+ iframeBlocked: string,
183
+
184
+ /** @default "Learn more and customize" */
185
+ manageCookies: string,
186
+
187
+ /** @default "Save" */
188
+ save: string,
189
+
190
+ /** @default "You have unsaved settings" */
191
+ settingsUnsaved: string,
192
+ },
193
+ },
194
+ }
195
+ }
196
+
197
+ declare module 'nuxt/schema' {
198
+ export interface ModuleOptions {
199
+ /** @default "bottom-full" */
200
+ barPosition: string,
201
+
202
+ /** @default false */
203
+ closeModalOnClickOutside: boolean,
204
+
205
+ colors: {
206
+ /** @default "#000" */
207
+ barBackground: string,
208
+
209
+ /** @default "#fff" */
210
+ barButtonBackground: string,
211
+
212
+ /** @default "#000" */
213
+ barButtonColor: string,
214
+
215
+ /** @default "#333" */
216
+ barButtonHoverBackground: string,
217
+
218
+ /** @default "#fff" */
219
+ barButtonHoverColor: string,
220
+
221
+ /** @default "#fff" */
222
+ barTextColor: string,
223
+
224
+ /** @default "#000" */
225
+ checkboxActiveBackground: string,
226
+
227
+ /** @default "#fff" */
228
+ checkboxActiveCircleBackground: string,
229
+
230
+ /** @default "#ddd" */
231
+ checkboxDisabledBackground: string,
232
+
233
+ /** @default "#fff" */
234
+ checkboxDisabledCircleBackground: string,
235
+
236
+ /** @default "#000" */
237
+ checkboxInactiveBackground: string,
238
+
239
+ /** @default "#fff" */
240
+ checkboxInactiveCircleBackground: string,
241
+
242
+ /** @default "#fff" */
243
+ controlButtonBackground: string,
244
+
245
+ /** @default "#000" */
246
+ controlButtonHoverBackground: string,
247
+
248
+ /** @default "#000" */
249
+ controlButtonIconColor: string,
250
+
251
+ /** @default "#fff" */
252
+ controlButtonIconHoverColor: string,
253
+
254
+ /** @default "#808080" */
255
+ focusRingColor: string,
256
+
257
+ /** @default "#fff" */
258
+ modalBackground: string,
259
+
260
+ /** @default "#000" */
261
+ modalButtonBackground: string,
262
+
263
+ /** @default "#fff" */
264
+ modalButtonColor: string,
265
+
266
+ /** @default "#333" */
267
+ modalButtonHoverBackground: string,
268
+
269
+ /** @default "#fff" */
270
+ modalButtonHoverColor: string,
271
+
272
+ /** @default "#000" */
273
+ modalOverlay: string,
274
+
275
+ /** @default 0.8 */
276
+ modalOverlayOpacity: number,
277
+
278
+ /** @default "#000" */
279
+ modalTextColor: string,
280
+
281
+ /** @default "#fff" */
282
+ modalUnsavedColor: string,
283
+ },
284
+
285
+ cookies: {
286
+ necessary: Array<any>,
287
+
288
+ optional: Array<any>,
289
+ },
290
+
291
+ /** @default 31536000000 */
292
+ cookieExpiryOffsetMs: number,
293
+
294
+ /** @default "ncc_c" */
295
+ cookieNameIsConsentGiven: string,
296
+
297
+ /** @default "ncc_e" */
298
+ cookieNameCookiesEnabledIds: string,
299
+
300
+ cookieOptions: {
301
+ /** @default "/" */
302
+ path: string,
303
+
304
+ /** @default "strict" */
305
+ sameSite: string,
306
+
307
+ /** @default true */
308
+ secure: boolean,
309
+ },
310
+
311
+ /** @default true */
312
+ isAcceptNecessaryButtonEnabled: boolean,
313
+
314
+ /** @default true */
315
+ isControlButtonEnabled: boolean,
316
+
317
+ /** @default false */
318
+ isCookieIdVisible: boolean,
319
+
320
+ /** @default true */
321
+ isCssEnabled: boolean,
322
+
323
+ /** @default false */
324
+ isCssPonyfillEnabled: boolean,
325
+
326
+ /** @default true */
327
+ isDashInDescriptionEnabled: boolean,
328
+
329
+ /** @default false */
330
+ isIframeBlocked: boolean,
331
+
332
+ /** @default false */
333
+ isModalForced: boolean,
334
+
335
+ /** @default ["en"] */
336
+ locales: Array<string>,
337
+
338
+ localeTexts: {
339
+ en: {
340
+ /** @default "Accept" */
341
+ accept: string,
342
+
343
+ /** @default "Accept all" */
344
+ acceptAll: string,
345
+
346
+ /** @default "We use our own cookies and third-party cookies so that we can display this website correctly and better understand how this website is used, with a view to improving the services we offer. A decision on cookie usage permissions can be changed anytime using the cookie button that will appear after a selection has been made on this banner." */
347
+ bannerDescription: string,
348
+
349
+ /** @default "Cookies" */
350
+ bannerTitle: string,
351
+
352
+ /** @default "Close" */
353
+ close: string,
354
+
355
+ /** @default "Functional cookies" */
356
+ cookiesFunctional: string,
357
+
358
+ /** @default "Necessary cookies" */
359
+ cookiesNecessary: string,
360
+
361
+ /** @default "Optional cookies" */
362
+ cookiesOptional: string,
363
+
364
+ /** @default "Decline" */
365
+ decline: string,
366
+
367
+ /** @default "Decline all" */
368
+ declineAll: string,
369
+
370
+ /** @default "here" */
371
+ here: string,
372
+
373
+ /** @default "To see this, please enable functional cookies" */
374
+ iframeBlocked: string,
375
+
376
+ /** @default "Learn more and customize" */
377
+ manageCookies: string,
378
+
379
+ /** @default "Save" */
380
+ save: string,
381
+
382
+ /** @default "You have unsaved settings" */
383
+ settingsUnsaved: string,
384
+ },
385
+ },
386
+ }
387
+ }
6
388
 
7
389
 
8
390
  export type { default } from './module'
package/package.json CHANGED
@@ -15,24 +15,23 @@
15
15
  "@commitlint/config-conventional": "19.2.2",
16
16
  "@dargmuesli/nuxt-cookie-control": "link:",
17
17
  "@nuxt/eslint-config": "0.3.13",
18
- "@nuxt/module-builder": "0.6.0",
18
+ "@nuxt/module-builder": "0.7.0",
19
19
  "@nuxt/schema": "3.11.2",
20
20
  "@semantic-release/changelog": "6.0.3",
21
- "@semantic-release/commit-analyzer": "12.0.0",
21
+ "@semantic-release/commit-analyzer": "13.0.0",
22
22
  "@semantic-release/git": "10.0.1",
23
- "@semantic-release/github": "10.0.4",
23
+ "@semantic-release/github": "10.0.5",
24
24
  "@semantic-release/npm": "12.0.1",
25
- "@semantic-release/release-notes-generator": "13.0.0",
26
- "eslint": "9.3.0",
25
+ "@semantic-release/release-notes-generator": "14.0.0",
26
+ "eslint": "9.4.0",
27
27
  "eslint-config-prettier": "9.1.0",
28
28
  "eslint-plugin-prettier": "5.1.3",
29
29
  "husky": "9.0.11",
30
- "lint-staged": "15.2.2",
30
+ "lint-staged": "15.2.5",
31
31
  "nuxt": "3.11.2",
32
- "prettier": "3.2.5",
33
- "semantic-release": "23.1.1",
34
- "typescript": "5.4.5",
35
- "vite": "5.2.11",
32
+ "prettier": "3.3.0",
33
+ "semantic-release": "24.0.0",
34
+ "vite": "5.2.12",
36
35
  "vue": "3.4.27",
37
36
  "vue-tsc": "2.0.19",
38
37
  "webpack": "5.91.0"
@@ -47,8 +46,7 @@
47
46
  "types": "./dist/types.d.ts"
48
47
  },
49
48
  "./runtime/*": {
50
- "import": "./dist/runtime/*.mjs",
51
- "require": "./dist/runtime/*.mjs",
49
+ "import": "./dist/runtime/*.js",
52
50
  "types": "./dist/runtime/*.d.ts"
53
51
  }
54
52
  },
@@ -70,7 +68,7 @@
70
68
  "Jonas Thelemann"
71
69
  ],
72
70
  "name": "@dargmuesli/nuxt-cookie-control",
73
- "packageManager": "pnpm@9.1.1",
71
+ "packageManager": "pnpm@9.1.4",
74
72
  "publishConfig": {
75
73
  "access": "public"
76
74
  },
@@ -90,5 +88,5 @@
90
88
  },
91
89
  "type": "module",
92
90
  "types": "./dist/types.d.ts",
93
- "version": "8.3.3"
91
+ "version": "8.4.0"
94
92
  }
@@ -1,68 +0,0 @@
1
- import ar from "./ar.mjs";
2
- import az from "./az.mjs";
3
- import be from "./be.mjs";
4
- import bg from "./bg.mjs";
5
- import ca from "./ca.mjs";
6
- import cs from "./cs.mjs";
7
- import da from "./da.mjs";
8
- import de from "./de.mjs";
9
- import en from "./en.mjs";
10
- import es from "./es.mjs";
11
- import fi from "./fi.mjs";
12
- import fr from "./fr.mjs";
13
- import hr from "./hr.mjs";
14
- import hu from "./hu.mjs";
15
- import id from "./id.mjs";
16
- import it from "./it.mjs";
17
- import ja from "./ja.mjs";
18
- import km from "./km.mjs";
19
- import ko from "./ko.mjs";
20
- import lt from "./lt.mjs";
21
- import nl from "./nl.mjs";
22
- import no from "./no.mjs";
23
- import oc from "./oc.mjs";
24
- import pt from "./pt.mjs";
25
- import pl from "./pl.mjs";
26
- import ro from "./ro.mjs";
27
- import rs from "./rs.mjs";
28
- import ru from "./ru.mjs";
29
- import sk from "./sk.mjs";
30
- import sv from "./sv.mjs";
31
- import tr from "./tr.mjs";
32
- import uk from "./uk.mjs";
33
- import zhCN from "./zh-CN.mjs";
34
- export const locales = [
35
- ar,
36
- az,
37
- be,
38
- bg,
39
- ca,
40
- cs,
41
- da,
42
- de,
43
- en,
44
- es,
45
- fi,
46
- fr,
47
- hr,
48
- hu,
49
- id,
50
- it,
51
- ja,
52
- km,
53
- ko,
54
- lt,
55
- nl,
56
- no,
57
- oc,
58
- pt,
59
- pl,
60
- ro,
61
- rs,
62
- ru,
63
- sk,
64
- sv,
65
- tr,
66
- uk,
67
- zhCN
68
- ];
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes