@dargmuesli/nuxt-cookie-control 9.0.0-beta.1 → 9.0.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.
@@ -0,0 +1,223 @@
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';
4
+ type __VLS_Props = {
5
+ locale?: Locale;
6
+ };
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
+ declare var __VLS_9: {}, __VLS_11: {}, __VLS_17: {}, __VLS_19: {
179
+ cookie: any;
180
+ };
181
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
182
+ bar?: (props: typeof __VLS_9) => any;
183
+ } & {
184
+ controlButton?: (props: typeof __VLS_11) => any;
185
+ } & {
186
+ modal?: (props: typeof __VLS_17) => any;
187
+ } & {
188
+ 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>;
212
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
213
+ accept: () => void;
214
+ acceptPartial: () => void;
215
+ decline: () => void;
216
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
217
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
218
+ export default _default;
219
+ type __VLS_WithSlots<T, S> = T & {
220
+ new (): {
221
+ $slots: S;
222
+ };
223
+ };
@@ -1,38 +1,36 @@
1
1
  <template>
2
- <iframe
3
- v-if="isCookieFunctionalEnabled"
4
- :cookie-enabled="null"
5
- v-bind="$attrs"
6
- />
7
- <div v-else class="cookieControl__BlockedIframe">
8
- <p>
9
- {{ localeStrings?.iframeBlocked }}
10
- <a
11
- href="#"
12
- @click.prevent="isModalActive = true"
13
- v-text="localeStrings?.here"
14
- />
15
- </p>
16
- </div>
2
+ <ClientOnlyPrerender>
3
+ <iframe
4
+ v-if="isCookieFunctionalEnabled"
5
+ :cookie-enabled="null"
6
+ v-bind="$attrs"
7
+ />
8
+ <div v-else class="cookieControl__BlockedIframe">
9
+ <slot name="iframe">
10
+ <p>
11
+ {{ localeStrings?.iframeBlocked }}
12
+ <a
13
+ href="#"
14
+ @click.prevent="isModalActive = true"
15
+ v-text="localeStrings?.here"
16
+ />
17
+ </p>
18
+ </slot>
19
+ </div>
20
+ </ClientOnlyPrerender>
17
21
  </template>
18
22
 
19
- <script setup lang="ts">
20
- import { computed } from 'vue'
21
-
22
- import type { Cookie } from '#cookie-control/types'
23
- import { useNuxtApp, useCookieControl } from '#imports'
24
-
25
- const { cookiesEnabled, isModalActive, moduleOptions } = useCookieControl()
26
- const nuxtApp = useNuxtApp()
27
-
28
- // computations
23
+ <script setup>
24
+ import { computed } from "vue";
25
+ import { useNuxtApp, useCookieControl } from "#imports";
26
+ const { cookiesEnabled, isModalActive, moduleOptions } = useCookieControl();
27
+ const nuxtApp = useNuxtApp();
29
28
  const isCookieFunctionalEnabled = computed(
30
- () =>
31
- (cookiesEnabled.value || []).filter(
32
- (cookieEnabled: Cookie) => cookieEnabled.name === 'functional',
33
- ).length > 0,
34
- )
29
+ () => (cookiesEnabled.value || []).filter(
30
+ (cookieEnabled) => cookieEnabled.name === "functional"
31
+ ).length > 0
32
+ );
35
33
  const localeStrings = computed(
36
- () => moduleOptions.localeTexts[nuxtApp.$cookies.locale.value],
37
- )
34
+ () => moduleOptions.localeTexts[nuxtApp.$cookies.locale.value]
35
+ );
38
36
  </script>
@@ -0,0 +1,23 @@
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
+ declare var __VLS_5: {};
7
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
8
+ 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>;
16
+ 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
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -1 +1 @@
1
- export declare const locales: import("../types").LocaleStrings[];
1
+ export declare const locales: import("../types.js").LocaleStrings[];
@@ -31,7 +31,7 @@ import sl from "./sl.js";
31
31
  import sv from "./sv.js";
32
32
  import tr from "./tr.js";
33
33
  import uk from "./uk.js";
34
- import zh from "./zh.js";
34
+ import zhCN from "./zh-CN.js";
35
35
  export const locales = [
36
36
  ar,
37
37
  az,
@@ -66,5 +66,5 @@ export const locales = [
66
66
  sv,
67
67
  tr,
68
68
  uk,
69
- zh
69
+ zhCN
70
70
  ];
@@ -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' | 'sl' | 'sv' | 'tr' | 'uk' | 'zh';
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 {
package/dist/types.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { NuxtModule } from '@nuxt/schema'
2
2
 
3
- import type { default as Module } from './module.js'
3
+ import type { default as Module } from './module.mjs'
4
4
 
5
5
  export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
6
 
7
- export { default } from './module.js'
7
+ export { default } from './module.mjs'
package/package.json CHANGED
@@ -11,45 +11,40 @@
11
11
  },
12
12
  "description": "Nuxt Cookie Control Module",
13
13
  "devDependencies": {
14
- "@commitlint/cli": "19.6.0",
15
- "@commitlint/config-conventional": "19.6.0",
14
+ "@commitlint/cli": "19.8.0",
15
+ "@commitlint/config-conventional": "19.8.0",
16
16
  "@dargmuesli/nuxt-cookie-control": "link:",
17
- "@nuxt/eslint-config": "0.7.2",
18
- "@nuxt/module-builder": "0.8.4",
19
- "@nuxt/schema": "3.14.1592",
17
+ "@nuxt/eslint-config": "1.3.0",
18
+ "@nuxt/module-builder": "1.0.0",
19
+ "@nuxt/schema": "3.16.2",
20
20
  "@semantic-release/changelog": "6.0.3",
21
- "@semantic-release/commit-analyzer": "13.0.0",
21
+ "@semantic-release/commit-analyzer": "13.0.1",
22
22
  "@semantic-release/git": "10.0.1",
23
23
  "@semantic-release/github": "11.0.1",
24
24
  "@semantic-release/npm": "12.0.1",
25
- "@semantic-release/release-notes-generator": "14.0.1",
26
- "eslint": "9.16.0",
27
- "eslint-config-prettier": "9.1.0",
28
- "eslint-plugin-prettier": "5.2.1",
25
+ "@semantic-release/release-notes-generator": "14.0.3",
26
+ "eslint": "9.24.0",
27
+ "eslint-config-prettier": "10.1.1",
28
+ "eslint-plugin-prettier": "5.2.6",
29
29
  "husky": "9.1.7",
30
- "lint-staged": "15.2.11",
31
- "nuxt": "3.14.1592",
32
- "prettier": "3.4.2",
33
- "semantic-release": "24.2.0",
34
- "vite": "6.0.3",
30
+ "lint-staged": "15.5.0",
31
+ "nuxt": "3.16.2",
32
+ "prettier": "3.5.3",
33
+ "semantic-release": "24.2.3",
34
+ "vite": "6.2.5",
35
35
  "vue": "3.5.13",
36
- "vue-tsc": "2.1.10",
37
- "webpack": "5.97.1"
36
+ "vue-tsc": "2.2.8",
37
+ "webpack": "5.98.0"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=16"
41
41
  },
42
42
  "exports": {
43
43
  ".": {
44
- "import": "./dist/module.mjs",
45
- "require": "./dist/module.cjs",
46
- "types": "./dist/types.d.ts"
44
+ "types": "./dist/types.d.mts",
45
+ "import": "./dist/module.mjs"
47
46
  },
48
- "./runtime/*": {
49
- "import": "./dist/runtime/*.js",
50
- "require": "./dist/runtime/*.js",
51
- "types": "./dist/runtime/*.d.ts"
52
- }
47
+ "./runtime/*": "./dist/runtime/*"
53
48
  },
54
49
  "files": [
55
50
  "dist/**/*"
@@ -64,35 +59,44 @@
64
59
  "nuxt gdpr consent"
65
60
  ],
66
61
  "license": "MIT",
67
- "main": "./dist/module.cjs",
68
62
  "maintainers": [
69
63
  "Jonas Thelemann"
70
64
  ],
71
65
  "name": "@dargmuesli/nuxt-cookie-control",
72
- "packageManager": "pnpm@9.15.0",
73
- "publishConfig": {
74
- "access": "public"
75
- },
66
+ "packageManager": "pnpm@10.7.1",
76
67
  "pnpm": {
68
+ "ignoredBuiltDependencies": [
69
+ "@parcel/watcher",
70
+ "esbuild"
71
+ ],
77
72
  "overrides": {
78
73
  "typescript": "5.6.3"
79
74
  }
80
75
  },
76
+ "publishConfig": {
77
+ "access": "public"
78
+ },
81
79
  "repository": "https://github.com/dargmuesli/nuxt-cookie-control",
82
80
  "resolutions": {
83
- "@nuxt/kit": "3.14.1592"
81
+ "@nuxt/kit": "3.16.2"
84
82
  },
85
83
  "scripts": {
86
84
  "build": "nuxt-module-build build",
87
85
  "dev": "pnpm --dir playground run dev",
88
86
  "lint": "pnpm run lint:js && pnpm run lint:ts",
89
- "lint:fix": "pnpm run lint:js --fix . && pnpm run lint:ts --fix",
87
+ "lint:fix": "pnpm run lint:js --fix .",
90
88
  "lint:js": "eslint --cache",
91
89
  "lint:ts": "vue-tsc --noEmit",
92
90
  "prepack": "pnpm build",
93
91
  "prepare": "husky && nuxt-module-build prepare"
94
92
  },
95
93
  "type": "module",
96
- "types": "./dist/types.d.ts",
97
- "version": "9.0.0-beta.1"
94
+ "typesVersions": {
95
+ "*": {
96
+ ".": [
97
+ "./dist/types.d.mts"
98
+ ]
99
+ }
100
+ },
101
+ "version": "9.0.0"
98
102
  }
package/dist/module.cjs DELETED
@@ -1,5 +0,0 @@
1
- module.exports = function(...args) {
2
- return import('./module.mjs').then(m => m.default.call(this, ...args))
3
- }
4
- const _meta = module.exports.meta = require('./module.json')
5
- module.exports.getMeta = () => Promise.resolve(_meta)
package/dist/module.d.ts DELETED
@@ -1,67 +0,0 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
2
- import { CookieOptions } from 'nuxt/app';
3
-
4
- 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';
5
- type PartialRecord<K extends string | number | symbol, T> = Partial<Record<K, T>>;
6
- type Translatable = string | PartialRecord<Locale, string>;
7
- interface Cookie {
8
- description?: Translatable;
9
- id: string;
10
- isPreselected?: boolean;
11
- name: Translatable;
12
- links?: Record<string, string | null>;
13
- src?: string;
14
- targetCookieIds?: string[];
15
- }
16
- interface LocaleStrings {
17
- accept: string;
18
- acceptAll: string;
19
- bannerDescription: string;
20
- bannerTitle: string;
21
- close: string;
22
- cookiesFunctional: string;
23
- cookiesNecessary: string;
24
- cookiesOptional: string;
25
- iframeBlocked: string;
26
- decline: string;
27
- declineAll: string;
28
- here: string;
29
- manageCookies: string;
30
- save: string;
31
- settingsUnsaved: string;
32
- }
33
- interface ModuleOptions {
34
- barPosition: 'top-left' | 'top-right' | 'top-full' | 'bottom-left' | 'bottom-right' | 'bottom-full';
35
- closeModalOnClickOutside: boolean;
36
- colors: false | Record<string, unknown>;
37
- cookieExpiryOffsetMs: number;
38
- cookieNameCookiesEnabledIds: string;
39
- cookieNameIsConsentGiven: string;
40
- cookies: {
41
- necessary: Cookie[];
42
- optional: Cookie[];
43
- };
44
- cookieOptions: CookieOptions & {
45
- readonly?: false;
46
- };
47
- isAcceptNecessaryButtonEnabled: boolean;
48
- isControlButtonEnabled: boolean;
49
- isCookieIdVisible: boolean;
50
- isCssEnabled: boolean;
51
- isCssPonyfillEnabled: boolean;
52
- isDashInDescriptionEnabled: boolean;
53
- isIframeBlocked: boolean;
54
- isModalForced: boolean;
55
- locales: Locale[];
56
- localeTexts: PartialRecord<Locale, Partial<LocaleStrings>>;
57
- }
58
-
59
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
60
-
61
- declare module '@nuxt/schema' {
62
- interface PublicRuntimeConfig {
63
- cookieControl: ModuleOptions;
64
- }
65
- }
66
-
67
- export { _default as default };
package/dist/types.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import type { NuxtModule } from '@nuxt/schema'
2
-
3
- import type { default as Module } from './module'
4
-
5
- export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
-
7
- export { default } from './module'
File without changes
File without changes