@dargmuesli/nuxt-cookie-control 8.1.2 → 8.1.3
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.mts +2 -2
- package/dist/module.d.ts +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/CookieControl.vue +1 -1
- package/dist/runtime/plugin.d.ts +1 -1
- package/dist/runtime/types.d.ts +2 -2
- package/package.json +11 -10
package/dist/module.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _nuxt_schema from '@nuxt/schema';
|
|
|
2
2
|
import { CookieOptions } from 'nuxt/app';
|
|
3
3
|
|
|
4
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-CN';
|
|
5
|
-
type PartialRecord<K extends
|
|
5
|
+
type PartialRecord<K extends string | number | symbol, T> = Partial<Record<K, T>>;
|
|
6
6
|
type Translatable = string | PartialRecord<Locale, string>;
|
|
7
7
|
interface Cookie {
|
|
8
8
|
description?: Translatable;
|
|
@@ -33,7 +33,7 @@ interface LocaleStrings {
|
|
|
33
33
|
interface ModuleOptions {
|
|
34
34
|
barPosition: 'top-left' | 'top-right' | 'top-full' | 'bottom-left' | 'bottom-right' | 'bottom-full';
|
|
35
35
|
closeModalOnClickOutside: boolean;
|
|
36
|
-
colors: false | Record<string,
|
|
36
|
+
colors: false | Record<string, unknown>;
|
|
37
37
|
cookieExpiryOffsetMs: number;
|
|
38
38
|
cookieNameCookiesEnabledIds: string;
|
|
39
39
|
cookieNameIsConsentGiven: string;
|
package/dist/module.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _nuxt_schema from '@nuxt/schema';
|
|
|
2
2
|
import { CookieOptions } from 'nuxt/app';
|
|
3
3
|
|
|
4
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-CN';
|
|
5
|
-
type PartialRecord<K extends
|
|
5
|
+
type PartialRecord<K extends string | number | symbol, T> = Partial<Record<K, T>>;
|
|
6
6
|
type Translatable = string | PartialRecord<Locale, string>;
|
|
7
7
|
interface Cookie {
|
|
8
8
|
description?: Translatable;
|
|
@@ -33,7 +33,7 @@ interface LocaleStrings {
|
|
|
33
33
|
interface ModuleOptions {
|
|
34
34
|
barPosition: 'top-left' | 'top-right' | 'top-full' | 'bottom-left' | 'bottom-right' | 'bottom-full';
|
|
35
35
|
closeModalOnClickOutside: boolean;
|
|
36
|
-
colors: false | Record<string,
|
|
36
|
+
colors: false | Record<string, unknown>;
|
|
37
37
|
cookieExpiryOffsetMs: number;
|
|
38
38
|
cookieNameCookiesEnabledIds: string;
|
|
39
39
|
cookieNameIsConsentGiven: string;
|
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 = "8.1.
|
|
6
|
+
const version = "8.1.3";
|
|
7
7
|
|
|
8
8
|
const en = {
|
|
9
9
|
accept: "Accept",
|
|
@@ -349,7 +349,7 @@ const toggleLabel = ($event: KeyboardEvent) => {
|
|
|
349
349
|
// lifecycle
|
|
350
350
|
onBeforeMount(() => {
|
|
351
351
|
if (moduleOptions.colors) {
|
|
352
|
-
const variables: Record<string,
|
|
352
|
+
const variables: Record<string, string> = {}
|
|
353
353
|
|
|
354
354
|
for (const key in moduleOptions.colors) {
|
|
355
355
|
variables[`cookie-control-${key}`] = `${moduleOptions.colors[key]}`
|
package/dist/runtime/plugin.d.ts
CHANGED
package/dist/runtime/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
2
|
import type { CookieOptions } from 'nuxt/app';
|
|
3
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';
|
|
4
|
-
export type PartialRecord<K extends
|
|
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 {
|
|
7
7
|
NECESSARY = "necessary",
|
|
@@ -36,7 +36,7 @@ export interface LocaleStrings {
|
|
|
36
36
|
export interface ModuleOptions {
|
|
37
37
|
barPosition: 'top-left' | 'top-right' | 'top-full' | 'bottom-left' | 'bottom-right' | 'bottom-full';
|
|
38
38
|
closeModalOnClickOutside: boolean;
|
|
39
|
-
colors: false | Record<string,
|
|
39
|
+
colors: false | Record<string, unknown>;
|
|
40
40
|
cookieExpiryOffsetMs: number;
|
|
41
41
|
cookieNameCookiesEnabledIds: string;
|
|
42
42
|
cookieNameIsConsentGiven: string;
|
package/package.json
CHANGED
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
},
|
|
11
11
|
"description": "Nuxt Cookie Control Module",
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@commitlint/cli": "19.
|
|
14
|
-
"@commitlint/config-conventional": "19.
|
|
13
|
+
"@commitlint/cli": "19.3.0",
|
|
14
|
+
"@commitlint/config-conventional": "19.2.2",
|
|
15
15
|
"@dargmuesli/nuxt-cookie-control": "link:",
|
|
16
|
+
"@nuxt/eslint-config": "0.3.9",
|
|
16
17
|
"@nuxt/module-builder": "0.5.5",
|
|
17
18
|
"@nuxt/schema": "3.11.2",
|
|
18
|
-
"
|
|
19
|
-
"eslint": "8.57.0",
|
|
19
|
+
"eslint": "9.1.1",
|
|
20
20
|
"eslint-config-prettier": "9.1.0",
|
|
21
21
|
"eslint-plugin-prettier": "5.1.3",
|
|
22
22
|
"husky": "9.0.11",
|
|
@@ -24,8 +24,9 @@
|
|
|
24
24
|
"nuxt": "3.11.2",
|
|
25
25
|
"prettier": "3.2.5",
|
|
26
26
|
"typescript": "5.4.5",
|
|
27
|
-
"
|
|
28
|
-
"vue
|
|
27
|
+
"vite": "5.2.10",
|
|
28
|
+
"vue": "3.4.24",
|
|
29
|
+
"vue-tsc": "2.0.14",
|
|
29
30
|
"webpack": "5.91.0"
|
|
30
31
|
},
|
|
31
32
|
"engines": {
|
|
@@ -61,7 +62,7 @@
|
|
|
61
62
|
"Jonas Thelemann"
|
|
62
63
|
],
|
|
63
64
|
"name": "@dargmuesli/nuxt-cookie-control",
|
|
64
|
-
"packageManager": "pnpm@
|
|
65
|
+
"packageManager": "pnpm@9.0.5",
|
|
65
66
|
"publishConfig": {
|
|
66
67
|
"access": "public"
|
|
67
68
|
},
|
|
@@ -72,12 +73,12 @@
|
|
|
72
73
|
"scripts": {
|
|
73
74
|
"build": "nuxt-module-build build",
|
|
74
75
|
"dev": "pnpm --dir playground run dev",
|
|
75
|
-
"lint": "eslint --
|
|
76
|
-
"lint:fix": "eslint --
|
|
76
|
+
"lint": "eslint --cache && nuxi typecheck",
|
|
77
|
+
"lint:fix": "eslint --cache --fix . && nuxi typecheck --fix",
|
|
77
78
|
"prepack": "pnpm build",
|
|
78
79
|
"prepare": "husky && nuxt-module-build prepare"
|
|
79
80
|
},
|
|
80
81
|
"type": "module",
|
|
81
82
|
"types": "./dist/module.d.ts",
|
|
82
|
-
"version": "8.1.
|
|
83
|
+
"version": "8.1.3"
|
|
83
84
|
}
|