@dargmuesli/nuxt-cookie-control 8.4.21 → 8.5.0
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
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.
|
|
108
|
+
const version = "8.5.0";
|
|
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
|
-
|
|
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
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@semantic-release/release-notes-generator": "14.0.3",
|
|
26
26
|
"eslint": "9.18.0",
|
|
27
27
|
"eslint-config-prettier": "10.0.1",
|
|
28
|
-
"eslint-plugin-prettier": "5.2.
|
|
28
|
+
"eslint-plugin-prettier": "5.2.2",
|
|
29
29
|
"husky": "9.1.7",
|
|
30
30
|
"lint-staged": "15.3.0",
|
|
31
31
|
"nuxt": "3.15.1",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
},
|
|
95
95
|
"type": "module",
|
|
96
96
|
"types": "./dist/types.d.ts",
|
|
97
|
-
"version": "8.
|
|
97
|
+
"version": "8.5.0"
|
|
98
98
|
}
|