@dargmuesli/nuxt-cookie-control 8.4.21 → 8.5.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
@@ -260,6 +260,16 @@ Every property that includes a `{ en: ... }` value is a translatable property th
260
260
  </CookieControl>
261
261
  ```
262
262
 
263
+ #### Iframe
264
+
265
+ ```html
266
+ <CookieIframe>
267
+ <template #iframe>
268
+ Content to display if iframes are blocked.
269
+ </template>
270
+ </CookieIframe>
271
+ ```
272
+
263
273
  ### Props
264
274
 
265
275
  - locale: `['en']`
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "8.4.21",
3
+ "version": "8.5.1",
4
4
  "configKey": "cookieControl",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.0.0"
package/dist/module.mjs CHANGED
@@ -105,7 +105,7 @@ const DEFAULTS = {
105
105
  };
106
106
 
107
107
  const name = "@dargmuesli/nuxt-cookie-control";
108
- const version = "8.4.21";
108
+ const version = "8.5.1";
109
109
 
110
110
  const resolver = createResolver(import.meta.url);
111
111
  const runtimeDir = resolver.resolve("./runtime");
@@ -212,22 +212,22 @@
212
212
  <script setup lang="ts">
213
213
  import { ref, computed, onBeforeMount, watch } from 'vue'
214
214
 
215
- import {
216
- type Cookie,
217
- CookieType,
218
- type Locale,
219
- type Translatable,
220
- } from '#cookie-control/types'
215
+ import ClientOnlyPrerender from '#cookie-control/components/ClientOnlyPrerender.vue'
216
+ import { COOKIE_ID_SEPARATOR } from '#cookie-control/constants'
221
217
  import {
222
218
  getAllCookieIdsString,
223
219
  getCookieIds,
224
220
  removeCookie,
225
221
  resolveTranslatable,
226
222
  } from '#cookie-control/methods'
227
- import { COOKIE_ID_SEPARATOR } from '#cookie-control/constants'
228
223
  import setCssVariables from '#cookie-control/set-vars'
224
+ import {
225
+ type Cookie,
226
+ CookieType,
227
+ type Locale,
228
+ type Translatable,
229
+ } from '#cookie-control/types'
229
230
  import { useCookieControl, useCookie, useNuxtApp } from '#imports'
230
- import ClientOnlyPrerender from '#cookie-control/components/ClientOnlyPrerender.vue'
231
231
 
232
232
  export interface Props {
233
233
  locale?: Locale
@@ -6,14 +6,16 @@
6
6
  v-bind="$attrs"
7
7
  />
8
8
  <div v-else class="cookieControl__BlockedIframe">
9
- <p>
10
- {{ localeStrings?.iframeBlocked }}
11
- <a
12
- href="#"
13
- @click.prevent="isModalActive = true"
14
- v-text="localeStrings?.here"
15
- />
16
- </p>
9
+ <slot name="iframe">
10
+ <p>
11
+ {{ localeStrings?.iframeBlocked }}
12
+ <a
13
+ href="#"
14
+ @click.prevent="isModalActive = true"
15
+ v-text="localeStrings?.here"
16
+ />
17
+ </p>
18
+ </slot>
17
19
  </div>
18
20
  </ClientOnlyPrerender>
19
21
  </template>
@@ -22,8 +24,8 @@
22
24
  import { computed } from 'vue'
23
25
 
24
26
  import type { Cookie } from '#cookie-control/types'
25
- import { useNuxtApp, useCookieControl } from '#imports'
26
27
  import ClientOnlyPrerender from '#cookie-control/components/ClientOnlyPrerender.vue'
28
+ import { useNuxtApp, useCookieControl } from '#imports'
27
29
 
28
30
  const { cookiesEnabled, isModalActive, moduleOptions } = useCookieControl()
29
31
  const nuxtApp = useNuxtApp()
package/package.json CHANGED
@@ -14,24 +14,24 @@
14
14
  "@commitlint/cli": "19.6.1",
15
15
  "@commitlint/config-conventional": "19.6.0",
16
16
  "@dargmuesli/nuxt-cookie-control": "link:",
17
- "@nuxt/eslint-config": "0.7.5",
17
+ "@nuxt/eslint-config": "0.7.6",
18
18
  "@nuxt/module-builder": "0.8.4",
19
- "@nuxt/schema": "3.15.1",
19
+ "@nuxt/schema": "3.15.4",
20
20
  "@semantic-release/changelog": "6.0.3",
21
21
  "@semantic-release/commit-analyzer": "13.0.1",
22
22
  "@semantic-release/git": "10.0.1",
23
23
  "@semantic-release/github": "11.0.1",
24
24
  "@semantic-release/npm": "12.0.1",
25
25
  "@semantic-release/release-notes-generator": "14.0.3",
26
- "eslint": "9.18.0",
26
+ "eslint": "9.19.0",
27
27
  "eslint-config-prettier": "10.0.1",
28
- "eslint-plugin-prettier": "5.2.1",
28
+ "eslint-plugin-prettier": "5.2.3",
29
29
  "husky": "9.1.7",
30
- "lint-staged": "15.3.0",
31
- "nuxt": "3.15.1",
30
+ "lint-staged": "15.4.3",
31
+ "nuxt": "3.15.4",
32
32
  "prettier": "3.4.2",
33
33
  "semantic-release": "24.2.1",
34
- "vite": "6.0.7",
34
+ "vite": "6.0.11",
35
35
  "vue": "3.5.13",
36
36
  "vue-tsc": "2.2.0",
37
37
  "webpack": "5.97.1"
@@ -80,7 +80,7 @@
80
80
  },
81
81
  "repository": "https://github.com/dargmuesli/nuxt-cookie-control",
82
82
  "resolutions": {
83
- "@nuxt/kit": "3.15.1"
83
+ "@nuxt/kit": "3.15.4"
84
84
  },
85
85
  "scripts": {
86
86
  "build": "nuxt-module-build build",
@@ -94,5 +94,5 @@
94
94
  },
95
95
  "type": "module",
96
96
  "types": "./dist/types.d.ts",
97
- "version": "8.4.21"
97
+ "version": "8.5.1"
98
98
  }