@dargmuesli/nuxt-cookie-control 4.0.2 → 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 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 polyfill.
166
- isCssPolyfillEnabled: true,
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
- isCssPolyfillEnabled: boolean;
45
+ isCssPonyfillEnabled: boolean;
46
46
  isDashInDescriptionEnabled: boolean;
47
47
  isIframeBlocked: boolean | {
48
48
  initialState: boolean;
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "4.0.2",
3
+ "version": "5.0.0-beta.1",
4
4
  "configKey": "cookieControl",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.0.0"
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 = "4.0.2";
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
- isCssPolyfillEnabled: true,
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.isCssPolyfillEnabled) {
298
+ if (moduleOptions.isCssPonyfillEnabled) {
299
299
  const module = await import('css-vars-ponyfill')
300
300
  const cssVars = module.default
301
301
  cssVars({ variables })
@@ -45,7 +45,7 @@ export interface ModuleOptions {
45
45
  isControlButtonEnabled: boolean;
46
46
  isCookieIdVisible: boolean;
47
47
  isCssEnabled: boolean;
48
- isCssPolyfillEnabled: boolean;
48
+ isCssPonyfillEnabled: boolean;
49
49
  isDashInDescriptionEnabled: boolean;
50
50
  isIframeBlocked: boolean | {
51
51
  initialState: boolean;
@@ -45,7 +45,7 @@ export const DEFAULTS = {
45
45
  isControlButtonEnabled: true,
46
46
  isCookieIdVisible: false,
47
47
  isCssEnabled: true,
48
- isCssPolyfillEnabled: true,
48
+ isCssPonyfillEnabled: false,
49
49
  isDashInDescriptionEnabled: true,
50
50
  isIframeBlocked: false,
51
51
  domain: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "4.0.2",
3
+ "version": "5.0.0-beta.1",
4
4
  "description": "Nuxt Cookies Control Module",
5
5
  "author": "Dario Ferderber <dario.ferderber@broj42.com>",
6
6
  "maintainers": [