@dargmuesli/nuxt-cookie-control 6.4.4 → 6.4.6
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 +11 -7
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/CookieControl.vue +6 -1
- package/dist/runtime/components/CookieIframe.vue +1 -1
- package/dist/runtime/composables.d.ts +1 -1
- package/dist/runtime/constants.d.ts +1 -1
- package/dist/runtime/locale/ar.d.ts +1 -1
- package/dist/runtime/locale/az.d.ts +1 -1
- package/dist/runtime/locale/bg.d.ts +1 -1
- package/dist/runtime/locale/ca.d.ts +1 -1
- package/dist/runtime/locale/cs.d.ts +1 -1
- package/dist/runtime/locale/da.d.ts +1 -1
- package/dist/runtime/locale/de.d.ts +1 -1
- package/dist/runtime/locale/en.d.ts +1 -1
- package/dist/runtime/locale/es.d.ts +1 -1
- package/dist/runtime/locale/fi.d.ts +1 -1
- package/dist/runtime/locale/fr.d.ts +1 -1
- package/dist/runtime/locale/hr.d.ts +1 -1
- package/dist/runtime/locale/hu.d.ts +1 -1
- package/dist/runtime/locale/it.d.ts +1 -1
- package/dist/runtime/locale/ja.d.ts +1 -1
- package/dist/runtime/locale/ko.d.ts +1 -1
- package/dist/runtime/locale/lt.d.ts +1 -1
- package/dist/runtime/locale/nl.d.ts +1 -1
- package/dist/runtime/locale/no.d.ts +1 -1
- package/dist/runtime/locale/oc.d.ts +1 -1
- package/dist/runtime/locale/pl.d.ts +1 -1
- package/dist/runtime/locale/pt.d.ts +1 -1
- package/dist/runtime/locale/ro.d.ts +1 -1
- package/dist/runtime/locale/rs.d.ts +1 -1
- package/dist/runtime/locale/ru.d.ts +1 -1
- package/dist/runtime/locale/sk.d.ts +1 -1
- package/dist/runtime/locale/sv.d.ts +1 -1
- package/dist/runtime/locale/tr.d.ts +1 -1
- package/dist/runtime/locale/uk.d.ts +1 -1
- package/dist/runtime/methods.d.ts +1 -1
- package/dist/runtime/plugin.d.ts +2 -2
- package/dist/runtime/types.d.ts +2 -2
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -237,18 +237,22 @@ Every property that includes a `{ en: ... }` value is a translatable property th
|
|
|
237
237
|
#### Modal
|
|
238
238
|
|
|
239
239
|
```html
|
|
240
|
-
<
|
|
241
|
-
<
|
|
242
|
-
|
|
243
|
-
</
|
|
240
|
+
<CookieControl>
|
|
241
|
+
<template #modal>
|
|
242
|
+
<h3>Modal title</h3>
|
|
243
|
+
<p>Modal description</p>
|
|
244
|
+
</template>
|
|
245
|
+
</CookieControl>
|
|
244
246
|
```
|
|
245
247
|
|
|
246
248
|
#### Cookie
|
|
247
249
|
|
|
248
250
|
```html
|
|
249
|
-
<
|
|
250
|
-
<
|
|
251
|
-
|
|
251
|
+
<CookieControl>
|
|
252
|
+
<template #cookie="{config}">
|
|
253
|
+
<span v-for="c in config" :key="c.id" v-text="c.cookies" />
|
|
254
|
+
</template>
|
|
255
|
+
</CookieControl>
|
|
252
256
|
```
|
|
253
257
|
|
|
254
258
|
### Props
|
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.4.
|
|
6
|
+
const version = "6.4.6";
|
|
7
7
|
|
|
8
8
|
const en = {
|
|
9
9
|
accept: "Accept",
|
|
@@ -152,7 +152,7 @@ const module = defineNuxtModule({
|
|
|
152
152
|
addTemplate({
|
|
153
153
|
filename: "cookie-control-options.ts",
|
|
154
154
|
write: true,
|
|
155
|
-
getContents: () => `import { ModuleOptions } from '#cookie-control/types'
|
|
155
|
+
getContents: () => `import type { ModuleOptions } from '#cookie-control/types'
|
|
156
156
|
|
|
157
157
|
export default ${JSON.stringify(
|
|
158
158
|
moduleOptions,
|
|
@@ -188,7 +188,12 @@ import { ref, computed, onBeforeMount, watch } from 'vue'
|
|
|
188
188
|
|
|
189
189
|
import { useNuxtApp } from '#app'
|
|
190
190
|
|
|
191
|
-
import {
|
|
191
|
+
import {
|
|
192
|
+
type Cookie,
|
|
193
|
+
CookieType,
|
|
194
|
+
type Locale,
|
|
195
|
+
type Translatable,
|
|
196
|
+
} from '../types'
|
|
192
197
|
import {
|
|
193
198
|
getAllCookieIdsString,
|
|
194
199
|
getCookieId,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { State } from './types';
|
|
1
|
+
import type { State } from './types';
|
|
2
2
|
export declare const useCookieControl: () => State;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Locale } from './types';
|
|
1
|
+
import type { Locale } from './types';
|
|
2
2
|
export declare const LOCALE_DEFAULT: Locale;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cookie, ModuleOptions, Translatable } from './types';
|
|
1
|
+
import type { Cookie, ModuleOptions, Translatable } from './types';
|
|
2
2
|
export declare const getAllCookieIdsString: (moduleOptions: ModuleOptions) => string;
|
|
3
3
|
export declare const getCookieId: (cookie: Cookie) => string;
|
|
4
4
|
export declare const getCookieIds: (cookies: Cookie[]) => string[];
|
package/dist/runtime/plugin.d.ts
CHANGED
package/dist/runtime/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { CookieOptions } from 'nuxt/app';
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import type { CookieOptions } from 'nuxt/app';
|
|
3
3
|
export type Locale = 'ar' | 'az' | 'bg' | 'ca' | 'cs' | 'da' | 'de' | 'en' | 'es' | 'fi' | 'fr' | 'hr' | 'hu' | 'it' | 'ja' | 'ko' | 'lt' | 'nl' | 'no' | 'oc' | 'pt' | 'pl' | 'ro' | 'rs' | 'ru' | 'sk' | 'sv' | 'tr' | 'uk';
|
|
4
4
|
export type PartialRecord<K extends keyof any, T> = Partial<Record<K, T>>;
|
|
5
5
|
export type Translatable = string | PartialRecord<Locale, string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dargmuesli/nuxt-cookie-control",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.6",
|
|
4
4
|
"description": "Nuxt Cookie Control Module",
|
|
5
5
|
"author": "Dario Ferderber <dario.ferderber@broj42.com>",
|
|
6
6
|
"maintainers": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=16"
|
|
23
23
|
},
|
|
24
|
-
"packageManager": "pnpm@8.
|
|
24
|
+
"packageManager": "pnpm@8.9.2",
|
|
25
25
|
"exports": {
|
|
26
26
|
".": {
|
|
27
27
|
"import": "./dist/module.mjs",
|
|
@@ -44,29 +44,29 @@
|
|
|
44
44
|
"prepare": "husky install"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@nuxt/kit": "^3.
|
|
47
|
+
"@nuxt/kit": "^3.8.0",
|
|
48
48
|
"@sindresorhus/slugify": "^2.2.1",
|
|
49
49
|
"css-vars-ponyfill": "^2.4.8",
|
|
50
50
|
"string-replace-loader": "^3.1.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@commitlint/cli": "17.
|
|
54
|
-
"@commitlint/config-conventional": "17.
|
|
53
|
+
"@commitlint/cli": "17.8.0",
|
|
54
|
+
"@commitlint/config-conventional": "17.8.0",
|
|
55
55
|
"@dargmuesli/nuxt-cookie-control": "link:",
|
|
56
|
-
"@nuxt/module-builder": "0.5.
|
|
56
|
+
"@nuxt/module-builder": "0.5.2",
|
|
57
57
|
"@nuxtjs/eslint-config-typescript": "12.1.0",
|
|
58
58
|
"conventional-changelog-conventionalcommits": "7.0.2",
|
|
59
|
-
"eslint": "8.
|
|
59
|
+
"eslint": "8.51.0",
|
|
60
60
|
"eslint-config-prettier": "9.0.0",
|
|
61
|
-
"eslint-plugin-prettier": "5.0.
|
|
61
|
+
"eslint-plugin-prettier": "5.0.1",
|
|
62
62
|
"husky": "8.0.3",
|
|
63
|
-
"lint-staged": "
|
|
64
|
-
"nuxt": "3.
|
|
63
|
+
"lint-staged": "15.0.2",
|
|
64
|
+
"nuxt": "3.8.0",
|
|
65
65
|
"prettier": "3.0.3",
|
|
66
66
|
"typescript": "5.2.2",
|
|
67
67
|
"vue": "3.3.4",
|
|
68
|
-
"vue-tsc": "1.8.
|
|
69
|
-
"webpack": "5.
|
|
68
|
+
"vue-tsc": "1.8.19",
|
|
69
|
+
"webpack": "5.89.0"
|
|
70
70
|
},
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|