@dargmuesli/nuxt-cookie-control 9.1.21 → 9.1.23
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 +1 -58
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -62
- package/dist/runtime/types.d.ts +1 -0
- package/dist/runtime/types.js +1 -0
- package/package.json +10 -20
package/dist/module.d.mts
CHANGED
|
@@ -1,62 +1,5 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import {
|
|
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-CN';
|
|
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
|
-
_isPrerendered: boolean | undefined;
|
|
35
|
-
barPosition: 'top-left' | 'top-right' | 'top-full' | 'bottom-left' | 'bottom-right' | 'bottom-full';
|
|
36
|
-
closeModalOnClickOutside: boolean;
|
|
37
|
-
colors: false | Record<string, unknown>;
|
|
38
|
-
cookieExpiryOffsetMs: number;
|
|
39
|
-
cookieNameCookiesEnabledIds: string;
|
|
40
|
-
cookieNameIsConsentGiven: string;
|
|
41
|
-
cookies: {
|
|
42
|
-
necessary: Cookie[];
|
|
43
|
-
optional: Cookie[];
|
|
44
|
-
};
|
|
45
|
-
cookieOptions: CookieOptions & {
|
|
46
|
-
readonly?: false;
|
|
47
|
-
};
|
|
48
|
-
isAcceptNecessaryButtonEnabled: boolean;
|
|
49
|
-
isControlButtonEnabled: boolean;
|
|
50
|
-
isCookieIdVisible: boolean;
|
|
51
|
-
isCssEnabled: boolean;
|
|
52
|
-
isCssPonyfillEnabled: boolean;
|
|
53
|
-
isDashInDescriptionEnabled: boolean;
|
|
54
|
-
isIframeBlocked: boolean;
|
|
55
|
-
isModalForced: boolean;
|
|
56
|
-
declineAllAcceptsNecessary: boolean;
|
|
57
|
-
locales: Locale[];
|
|
58
|
-
localeTexts: PartialRecord<Locale, Partial<LocaleStrings>>;
|
|
59
|
-
}
|
|
2
|
+
import { ModuleOptions } from '../dist/runtime/types.js';
|
|
60
3
|
|
|
61
4
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
62
5
|
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -2,9 +2,8 @@ import { resolve } from 'node:path';
|
|
|
2
2
|
import { pathToFileURL } from 'node:url';
|
|
3
3
|
import { createResolver, defineNuxtModule, addPlugin, addImports, addTypeTemplate, updateTemplates, extendWebpackConfig, extendViteConfig, resolvePath } from '@nuxt/kit';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
const CONFIG_KEY = "cookieControl";
|
|
5
|
+
import { CONFIG_KEY } from '../dist/runtime/constants.js';
|
|
6
|
+
import { DEFAULTS } from '../dist/runtime/types.js';
|
|
8
7
|
|
|
9
8
|
const execSrcReplacements = (src, replacements) => {
|
|
10
9
|
for (const replacement of replacements) {
|
|
@@ -46,66 +45,8 @@ const replaceCodePlugin = (config) => {
|
|
|
46
45
|
};
|
|
47
46
|
};
|
|
48
47
|
|
|
49
|
-
const DEFAULTS = {
|
|
50
|
-
_isPrerendered: void 0,
|
|
51
|
-
barPosition: "bottom-full",
|
|
52
|
-
closeModalOnClickOutside: false,
|
|
53
|
-
colors: {
|
|
54
|
-
barBackground: "#000",
|
|
55
|
-
barButtonBackground: "#fff",
|
|
56
|
-
barButtonColor: "#000",
|
|
57
|
-
barButtonHoverBackground: "#333",
|
|
58
|
-
barButtonHoverColor: "#fff",
|
|
59
|
-
barTextColor: "#fff",
|
|
60
|
-
checkboxActiveBackground: "#000",
|
|
61
|
-
checkboxActiveCircleBackground: "#fff",
|
|
62
|
-
checkboxDisabledBackground: "#ddd",
|
|
63
|
-
checkboxDisabledCircleBackground: "#fff",
|
|
64
|
-
checkboxInactiveBackground: "#000",
|
|
65
|
-
checkboxInactiveCircleBackground: "#fff",
|
|
66
|
-
controlButtonBackground: "#fff",
|
|
67
|
-
controlButtonHoverBackground: "#000",
|
|
68
|
-
controlButtonIconColor: "#000",
|
|
69
|
-
controlButtonIconHoverColor: "#fff",
|
|
70
|
-
focusRingColor: "#808080",
|
|
71
|
-
modalBackground: "#fff",
|
|
72
|
-
modalButtonBackground: "#000",
|
|
73
|
-
modalButtonColor: "#fff",
|
|
74
|
-
modalButtonHoverBackground: "#333",
|
|
75
|
-
modalButtonHoverColor: "#fff",
|
|
76
|
-
modalOverlay: "#000",
|
|
77
|
-
modalOverlayOpacity: 0.8,
|
|
78
|
-
modalTextColor: "#000",
|
|
79
|
-
modalUnsavedColor: "#fff"
|
|
80
|
-
},
|
|
81
|
-
cookies: {
|
|
82
|
-
necessary: [],
|
|
83
|
-
optional: []
|
|
84
|
-
},
|
|
85
|
-
cookieExpiryOffsetMs: 1e3 * 60 * 60 * 24 * 365,
|
|
86
|
-
// one year
|
|
87
|
-
cookieNameIsConsentGiven: "ncc_c",
|
|
88
|
-
cookieNameCookiesEnabledIds: "ncc_e",
|
|
89
|
-
cookieOptions: {
|
|
90
|
-
path: "/",
|
|
91
|
-
sameSite: "strict",
|
|
92
|
-
secure: process.env.NODE_ENV === "development" ? void 0 : true
|
|
93
|
-
},
|
|
94
|
-
isAcceptNecessaryButtonEnabled: true,
|
|
95
|
-
isControlButtonEnabled: true,
|
|
96
|
-
isCookieIdVisible: false,
|
|
97
|
-
isCssEnabled: true,
|
|
98
|
-
isCssPonyfillEnabled: false,
|
|
99
|
-
isDashInDescriptionEnabled: true,
|
|
100
|
-
isIframeBlocked: false,
|
|
101
|
-
isModalForced: false,
|
|
102
|
-
declineAllAcceptsNecessary: false,
|
|
103
|
-
locales: ["en"],
|
|
104
|
-
localeTexts: { en }
|
|
105
|
-
};
|
|
106
|
-
|
|
107
48
|
const name = "@dargmuesli/nuxt-cookie-control";
|
|
108
|
-
const version = "9.1.
|
|
49
|
+
const version = "9.1.23";
|
|
109
50
|
|
|
110
51
|
const resolver = createResolver(import.meta.url);
|
|
111
52
|
const runtimeDir = resolver.resolve("./runtime");
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export interface LocaleStrings {
|
|
|
34
34
|
settingsUnsaved: string;
|
|
35
35
|
}
|
|
36
36
|
export interface ModuleOptions {
|
|
37
|
+
_isPrerendered: boolean | undefined;
|
|
37
38
|
barPosition: 'top-left' | 'top-right' | 'top-full' | 'bottom-left' | 'bottom-right' | 'bottom-full';
|
|
38
39
|
closeModalOnClickOutside: boolean;
|
|
39
40
|
colors: false | Record<string, unknown>;
|
package/dist/runtime/types.js
CHANGED
package/package.json
CHANGED
|
@@ -11,23 +11,23 @@
|
|
|
11
11
|
},
|
|
12
12
|
"description": "Nuxt Cookie Control Module",
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@commitlint/cli": "20.5.
|
|
14
|
+
"@commitlint/cli": "20.5.2",
|
|
15
15
|
"@commitlint/config-conventional": "20.5.0",
|
|
16
16
|
"@dargmuesli/nuxt-cookie-control": "link:",
|
|
17
17
|
"@nuxt/eslint-config": "1.15.2",
|
|
18
18
|
"@nuxt/module-builder": "1.0.2",
|
|
19
19
|
"@nuxt/schema": "4.4.2",
|
|
20
|
-
"eslint": "10.2.
|
|
20
|
+
"eslint": "10.2.1",
|
|
21
21
|
"eslint-config-prettier": "10.1.8",
|
|
22
22
|
"eslint-plugin-prettier": "5.5.5",
|
|
23
23
|
"husky": "9.1.7",
|
|
24
|
-
"lint-staged": "
|
|
24
|
+
"lint-staged": "17.0.2",
|
|
25
25
|
"nuxt": "4.4.2",
|
|
26
|
-
"prettier": "3.8.
|
|
27
|
-
"vite": "8.0.
|
|
28
|
-
"vue": "3.5.
|
|
29
|
-
"vue-tsc": "3.2.
|
|
30
|
-
"webpack": "5.106.
|
|
26
|
+
"prettier": "3.8.3",
|
|
27
|
+
"vite": "8.0.10",
|
|
28
|
+
"vue": "3.5.33",
|
|
29
|
+
"vue-tsc": "3.2.7",
|
|
30
|
+
"webpack": "5.106.2"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
33
33
|
"node": ">=16"
|
|
@@ -56,17 +56,7 @@
|
|
|
56
56
|
"Jonas Thelemann"
|
|
57
57
|
],
|
|
58
58
|
"name": "@dargmuesli/nuxt-cookie-control",
|
|
59
|
-
"packageManager": "pnpm@
|
|
60
|
-
"pnpm": {
|
|
61
|
-
"ignoredBuiltDependencies": [
|
|
62
|
-
"@parcel/watcher",
|
|
63
|
-
"esbuild",
|
|
64
|
-
"unrs-resolver"
|
|
65
|
-
],
|
|
66
|
-
"overrides": {
|
|
67
|
-
"eslint-flat-config-utils": "3.0.2"
|
|
68
|
-
}
|
|
69
|
-
},
|
|
59
|
+
"packageManager": "pnpm@11.0.8",
|
|
70
60
|
"publishConfig": {
|
|
71
61
|
"access": "public"
|
|
72
62
|
},
|
|
@@ -89,5 +79,5 @@
|
|
|
89
79
|
]
|
|
90
80
|
}
|
|
91
81
|
},
|
|
92
|
-
"version": "9.1.
|
|
82
|
+
"version": "9.1.23"
|
|
93
83
|
}
|