@dargmuesli/nuxt-cookie-control 4.0.1 → 5.0.0-beta.1
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 +2 -2
- package/dist/module.d.ts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/CookieControl.vue +1 -1
- package/dist/runtime/locale/de.mjs +1 -1
- package/dist/runtime/types.d.ts +1 -1
- package/dist/runtime/types.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -162,8 +162,8 @@ isCookieIdVisible: false,
|
|
|
162
162
|
// If css is set to false, you will still be able to access your color variables.
|
|
163
163
|
isCssEnabled: true,
|
|
164
164
|
|
|
165
|
-
// Switch to toggle the css variables
|
|
166
|
-
|
|
165
|
+
// Switch to toggle the css variables ponyfill.
|
|
166
|
+
isCssPonyfillEnabled: false,
|
|
167
167
|
|
|
168
168
|
// Switch to toggle the separation of cookie name and description in the configuration modal by a dash.
|
|
169
169
|
isDashInDescriptionEnabled: true,
|
package/dist/module.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ interface ModuleOptions {
|
|
|
42
42
|
isControlButtonEnabled: boolean;
|
|
43
43
|
isCookieIdVisible: boolean;
|
|
44
44
|
isCssEnabled: boolean;
|
|
45
|
-
|
|
45
|
+
isCssPonyfillEnabled: boolean;
|
|
46
46
|
isDashInDescriptionEnabled: boolean;
|
|
47
47
|
isIframeBlocked: boolean | {
|
|
48
48
|
initialState: boolean;
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { resolve } from 'node:path';
|
|
|
2
2
|
import { createResolver, defineNuxtModule, addPlugin, addImports, addTemplate, extendWebpackConfig, resolvePath } from '@nuxt/kit';
|
|
3
3
|
|
|
4
4
|
const name = "@dargmuesli/nuxt-cookie-control";
|
|
5
|
-
const version = "
|
|
5
|
+
const version = "5.0.0-beta.1";
|
|
6
6
|
|
|
7
7
|
const en = {
|
|
8
8
|
accept: "Accept",
|
|
@@ -63,7 +63,7 @@ const DEFAULTS = {
|
|
|
63
63
|
isControlButtonEnabled: true,
|
|
64
64
|
isCookieIdVisible: false,
|
|
65
65
|
isCssEnabled: true,
|
|
66
|
-
|
|
66
|
+
isCssPonyfillEnabled: false,
|
|
67
67
|
isDashInDescriptionEnabled: true,
|
|
68
68
|
isIframeBlocked: false,
|
|
69
69
|
domain: "",
|
|
@@ -295,7 +295,7 @@ onBeforeMount(async () => {
|
|
|
295
295
|
variables[`cookie-control-${key}`] = `${moduleOptions.colors[key]}`
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
if (moduleOptions.
|
|
298
|
+
if (moduleOptions.isCssPonyfillEnabled) {
|
|
299
299
|
const module = await import('css-vars-ponyfill')
|
|
300
300
|
const cssVars = module.default
|
|
301
301
|
cssVars({ variables })
|
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
declineAll: "Alle ablehnen",
|
|
12
12
|
here: "hier",
|
|
13
13
|
iframeBlocked: "Um den Inhalt zu sehen, aktivieren Sie bitte funktionale Cookies",
|
|
14
|
-
manageCookies: "Mehr erfahren und
|
|
14
|
+
manageCookies: "Mehr erfahren und anpassen",
|
|
15
15
|
save: "Speichern",
|
|
16
16
|
settingsUnsaved: "Es gibt nicht gespeicherte Einstellungen"
|
|
17
17
|
};
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface ModuleOptions {
|
|
|
45
45
|
isControlButtonEnabled: boolean;
|
|
46
46
|
isCookieIdVisible: boolean;
|
|
47
47
|
isCssEnabled: boolean;
|
|
48
|
-
|
|
48
|
+
isCssPonyfillEnabled: boolean;
|
|
49
49
|
isDashInDescriptionEnabled: boolean;
|
|
50
50
|
isIframeBlocked: boolean | {
|
|
51
51
|
initialState: boolean;
|
package/dist/runtime/types.mjs
CHANGED