@dargmuesli/nuxt-cookie-control 9.0.0 → 9.0.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/dist/module.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "9.0.0",
3
+ "version": "9.0.2",
4
4
  "configKey": "cookieControl",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.0.0"
7
7
  },
8
8
  "builder": {
9
- "@nuxt/module-builder": "1.0.0",
9
+ "@nuxt/module-builder": "1.0.1",
10
10
  "unbuild": "unknown"
11
11
  }
12
12
  }
package/dist/module.mjs CHANGED
@@ -104,7 +104,7 @@ const DEFAULTS = {
104
104
  };
105
105
 
106
106
  const name = "@dargmuesli/nuxt-cookie-control";
107
- const version = "9.0.0";
107
+ const version = "9.0.2";
108
108
 
109
109
  const resolver = createResolver(import.meta.url);
110
110
  const runtimeDir = resolver.resolve("./runtime");
@@ -1,14 +1,9 @@
1
- declare const isPrerendered: any;
2
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
3
1
  declare var __VLS_1: {}, __VLS_8: {};
4
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
2
+ type __VLS_Slots = {} & {
5
3
  default?: (props: typeof __VLS_1) => any;
6
4
  } & {
7
5
  default?: (props: typeof __VLS_8) => any;
8
- }>;
9
- declare const __VLS_self: import("vue").DefineComponent<{}, {
10
- isPrerendered: typeof isPrerendered;
11
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ };
12
7
  declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
13
8
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
14
9
  export default _default;
@@ -199,6 +199,7 @@
199
199
 
200
200
  <script setup>
201
201
  import { ref, computed, onBeforeMount, watch } from "vue";
202
+ import ClientOnlyPrerender from "#cookie-control/components/ClientOnlyPrerender.vue";
202
203
  import { COOKIE_ID_SEPARATOR } from "#cookie-control/constants";
203
204
  import {
204
205
  getAllCookieIdsString,
@@ -207,12 +208,12 @@ import {
207
208
  resolveTranslatable
208
209
  } from "#cookie-control/methods";
209
210
  import setCssVariables from "#cookie-control/set-vars";
211
+ import {
212
+ CookieType
213
+ } from "#cookie-control/types";
210
214
  import { useCookieControl, useCookie, useNuxtApp } from "#imports";
211
215
  const { locale = "en" } = defineProps({
212
- locale: {
213
- type: String,
214
- required: false
215
- }
216
+ locale: { type: String, required: false }
216
217
  });
217
218
  const {
218
219
  cookiesEnabled,
@@ -1,184 +1,11 @@
1
- import ClientOnlyPrerender from '#cookie-control/components/ClientOnlyPrerender.vue';
2
- import { getCookieIds, resolveTranslatable } from '#cookie-control/methods';
3
- import { type Cookie, CookieType, type Locale, type Translatable } from '#cookie-control/types';
1
+ import { type Locale } from '#cookie-control/types';
4
2
  type __VLS_Props = {
5
3
  locale?: Locale;
6
4
  };
7
- declare const isConsentGiven: import("vue").Ref<boolean | undefined, boolean | undefined>, isModalActive: import("vue").Ref<boolean, boolean>, moduleOptions: import("#cookie-control/types").ModuleOptions;
8
- declare const localCookiesEnabled: import("vue").Ref<{
9
- description?: string | {
10
- ar?: string | undefined;
11
- az?: string | undefined;
12
- be?: string | undefined;
13
- bg?: string | undefined;
14
- ca?: string | undefined;
15
- cs?: string | undefined;
16
- da?: string | undefined;
17
- de?: string | undefined;
18
- en?: string | undefined;
19
- es?: string | undefined;
20
- fi?: string | undefined;
21
- fr?: string | undefined;
22
- hr?: string | undefined;
23
- hu?: string | undefined;
24
- id?: string | undefined;
25
- it?: string | undefined;
26
- ja?: string | undefined;
27
- km?: string | undefined;
28
- ko?: string | undefined;
29
- lt?: string | undefined;
30
- nl?: string | undefined;
31
- no?: string | undefined;
32
- oc?: string | undefined;
33
- pt?: string | undefined;
34
- pl?: string | undefined;
35
- ro?: string | undefined;
36
- rs?: string | undefined;
37
- ru?: string | undefined;
38
- sk?: string | undefined;
39
- sl?: string | undefined;
40
- sv?: string | undefined;
41
- tr?: string | undefined;
42
- uk?: string | undefined;
43
- "zh-CN"?: string | undefined;
44
- } | undefined;
45
- id: string;
46
- isPreselected?: boolean | undefined;
47
- name: string | {
48
- ar?: string | undefined;
49
- az?: string | undefined;
50
- be?: string | undefined;
51
- bg?: string | undefined;
52
- ca?: string | undefined;
53
- cs?: string | undefined;
54
- da?: string | undefined;
55
- de?: string | undefined;
56
- en?: string | undefined;
57
- es?: string | undefined;
58
- fi?: string | undefined;
59
- fr?: string | undefined;
60
- hr?: string | undefined;
61
- hu?: string | undefined;
62
- id?: string | undefined;
63
- it?: string | undefined;
64
- ja?: string | undefined;
65
- km?: string | undefined;
66
- ko?: string | undefined;
67
- lt?: string | undefined;
68
- nl?: string | undefined;
69
- no?: string | undefined;
70
- oc?: string | undefined;
71
- pt?: string | undefined;
72
- pl?: string | undefined;
73
- ro?: string | undefined;
74
- rs?: string | undefined;
75
- ru?: string | undefined;
76
- sk?: string | undefined;
77
- sl?: string | undefined;
78
- sv?: string | undefined;
79
- tr?: string | undefined;
80
- uk?: string | undefined;
81
- "zh-CN"?: string | undefined;
82
- };
83
- links?: Record<string, string | null> | undefined;
84
- src?: string | undefined;
85
- targetCookieIds?: string[] | undefined;
86
- }[], Cookie[] | {
87
- description?: string | {
88
- ar?: string | undefined;
89
- az?: string | undefined;
90
- be?: string | undefined;
91
- bg?: string | undefined;
92
- ca?: string | undefined;
93
- cs?: string | undefined;
94
- da?: string | undefined;
95
- de?: string | undefined;
96
- en?: string | undefined;
97
- es?: string | undefined;
98
- fi?: string | undefined;
99
- fr?: string | undefined;
100
- hr?: string | undefined;
101
- hu?: string | undefined;
102
- id?: string | undefined;
103
- it?: string | undefined;
104
- ja?: string | undefined;
105
- km?: string | undefined;
106
- ko?: string | undefined;
107
- lt?: string | undefined;
108
- nl?: string | undefined;
109
- no?: string | undefined;
110
- oc?: string | undefined;
111
- pt?: string | undefined;
112
- pl?: string | undefined;
113
- ro?: string | undefined;
114
- rs?: string | undefined;
115
- ru?: string | undefined;
116
- sk?: string | undefined;
117
- sl?: string | undefined;
118
- sv?: string | undefined;
119
- tr?: string | undefined;
120
- uk?: string | undefined;
121
- "zh-CN"?: string | undefined;
122
- } | undefined;
123
- id: string;
124
- isPreselected?: boolean | undefined;
125
- name: string | {
126
- ar?: string | undefined;
127
- az?: string | undefined;
128
- be?: string | undefined;
129
- bg?: string | undefined;
130
- ca?: string | undefined;
131
- cs?: string | undefined;
132
- da?: string | undefined;
133
- de?: string | undefined;
134
- en?: string | undefined;
135
- es?: string | undefined;
136
- fi?: string | undefined;
137
- fr?: string | undefined;
138
- hr?: string | undefined;
139
- hu?: string | undefined;
140
- id?: string | undefined;
141
- it?: string | undefined;
142
- ja?: string | undefined;
143
- km?: string | undefined;
144
- ko?: string | undefined;
145
- lt?: string | undefined;
146
- nl?: string | undefined;
147
- no?: string | undefined;
148
- oc?: string | undefined;
149
- pt?: string | undefined;
150
- pl?: string | undefined;
151
- ro?: string | undefined;
152
- rs?: string | undefined;
153
- ru?: string | undefined;
154
- sk?: string | undefined;
155
- sl?: string | undefined;
156
- sv?: string | undefined;
157
- tr?: string | undefined;
158
- uk?: string | undefined;
159
- "zh-CN"?: string | undefined;
160
- };
161
- links?: Record<string, string | null> | undefined;
162
- src?: string | undefined;
163
- targetCookieIds?: string[] | undefined;
164
- }[]>;
165
- declare const isSaved: import("vue").ComputedRef<boolean>;
166
- declare const localeStrings: import("vue").ComputedRef<Partial<import("#cookie-control/types").LocaleStrings> | undefined>;
167
- declare const acceptAll: () => void;
168
- declare const acceptPartial: () => void;
169
- declare const acceptNecessary: () => void;
170
- declare const acceptNone: () => void;
171
- declare const getDescription: (description: Translatable) => string;
172
- declare const getName: (name: Translatable) => string | undefined;
173
- declare const onModalClick: () => void;
174
- declare const toggleButton: ($event: MouseEvent) => void;
175
- declare const toogleCookie: (cookie: Cookie) => void;
176
- declare const toggleLabel: ($event: KeyboardEvent) => void;
177
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
178
5
  declare var __VLS_9: {}, __VLS_11: {}, __VLS_17: {}, __VLS_19: {
179
6
  cookie: any;
180
7
  };
181
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
8
+ type __VLS_Slots = {} & {
182
9
  bar?: (props: typeof __VLS_9) => any;
183
10
  } & {
184
11
  controlButton?: (props: typeof __VLS_11) => any;
@@ -186,29 +13,7 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
186
13
  modal?: (props: typeof __VLS_17) => any;
187
14
  } & {
188
15
  cookie?: (props: typeof __VLS_19) => any;
189
- }>;
190
- declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
191
- ClientOnlyPrerender: typeof ClientOnlyPrerender;
192
- getCookieIds: typeof getCookieIds;
193
- resolveTranslatable: typeof resolveTranslatable;
194
- CookieType: typeof CookieType;
195
- isConsentGiven: typeof isConsentGiven;
196
- isModalActive: typeof isModalActive;
197
- moduleOptions: typeof moduleOptions;
198
- localCookiesEnabled: typeof localCookiesEnabled;
199
- isSaved: typeof isSaved;
200
- localeStrings: typeof localeStrings;
201
- acceptAll: typeof acceptAll;
202
- acceptPartial: typeof acceptPartial;
203
- acceptNecessary: typeof acceptNecessary;
204
- acceptNone: typeof acceptNone;
205
- getDescription: typeof getDescription;
206
- getName: typeof getName;
207
- onModalClick: typeof onModalClick;
208
- toggleButton: typeof toggleButton;
209
- toogleCookie: typeof toogleCookie;
210
- toggleLabel: typeof toggleLabel;
211
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ };
212
17
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
213
18
  accept: () => void;
214
19
  acceptPartial: () => void;
@@ -22,6 +22,7 @@
22
22
 
23
23
  <script setup>
24
24
  import { computed } from "vue";
25
+ import ClientOnlyPrerender from "#cookie-control/components/ClientOnlyPrerender.vue";
25
26
  import { useNuxtApp, useCookieControl } from "#imports";
26
27
  const { cookiesEnabled, isModalActive, moduleOptions } = useCookieControl();
27
28
  const nuxtApp = useNuxtApp();
@@ -1,18 +1,7 @@
1
- import ClientOnlyPrerender from '#cookie-control/components/ClientOnlyPrerender.vue';
2
- declare const isModalActive: import("vue").Ref<boolean, boolean>;
3
- declare const isCookieFunctionalEnabled: import("vue").ComputedRef<boolean>;
4
- declare const localeStrings: import("vue").ComputedRef<Partial<import("#cookie-control/types").LocaleStrings> | undefined>;
5
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
6
1
  declare var __VLS_5: {};
7
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
2
+ type __VLS_Slots = {} & {
8
3
  iframe?: (props: typeof __VLS_5) => any;
9
- }>;
10
- declare const __VLS_self: import("vue").DefineComponent<{}, {
11
- ClientOnlyPrerender: typeof ClientOnlyPrerender;
12
- isModalActive: typeof isModalActive;
13
- isCookieFunctionalEnabled: typeof isCookieFunctionalEnabled;
14
- localeStrings: typeof localeStrings;
15
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
+ };
16
5
  declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
17
6
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
7
  export default _default;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "@commitlint/config-conventional": "19.8.0",
16
16
  "@dargmuesli/nuxt-cookie-control": "link:",
17
17
  "@nuxt/eslint-config": "1.3.0",
18
- "@nuxt/module-builder": "1.0.0",
18
+ "@nuxt/module-builder": "1.0.1",
19
19
  "@nuxt/schema": "3.16.2",
20
20
  "@semantic-release/changelog": "6.0.3",
21
21
  "@semantic-release/commit-analyzer": "13.0.1",
@@ -23,18 +23,18 @@
23
23
  "@semantic-release/github": "11.0.1",
24
24
  "@semantic-release/npm": "12.0.1",
25
25
  "@semantic-release/release-notes-generator": "14.0.3",
26
- "eslint": "9.24.0",
27
- "eslint-config-prettier": "10.1.1",
26
+ "eslint": "9.25.1",
27
+ "eslint-config-prettier": "10.1.2",
28
28
  "eslint-plugin-prettier": "5.2.6",
29
29
  "husky": "9.1.7",
30
- "lint-staged": "15.5.0",
30
+ "lint-staged": "15.5.1",
31
31
  "nuxt": "3.16.2",
32
32
  "prettier": "3.5.3",
33
33
  "semantic-release": "24.2.3",
34
- "vite": "6.2.5",
34
+ "vite": "6.3.2",
35
35
  "vue": "3.5.13",
36
- "vue-tsc": "2.2.8",
37
- "webpack": "5.98.0"
36
+ "vue-tsc": "2.2.10",
37
+ "webpack": "5.99.6"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=16"
@@ -63,7 +63,7 @@
63
63
  "Jonas Thelemann"
64
64
  ],
65
65
  "name": "@dargmuesli/nuxt-cookie-control",
66
- "packageManager": "pnpm@10.7.1",
66
+ "packageManager": "pnpm@10.9.0",
67
67
  "pnpm": {
68
68
  "ignoredBuiltDependencies": [
69
69
  "@parcel/watcher",
@@ -98,5 +98,5 @@
98
98
  ]
99
99
  }
100
100
  },
101
- "version": "9.0.0"
101
+ "version": "9.0.2"
102
102
  }