@dargmuesli/nuxt-cookie-control 5.5.0 → 5.7.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 +1 -1
- package/dist/module.d.ts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/CookieControl.vue +7 -1
- package/dist/runtime/locale/index.mjs +2 -0
- package/dist/runtime/locale/oc.d.ts +3 -0
- package/dist/runtime/locale/oc.mjs +17 -0
- package/dist/runtime/types.d.ts +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
✅ Translated for: ar, az, cs, da, de, en, es, fi, fr, hr, hu, it, ja, ko, lt, nl, no, pt, pl, ru, sk, sv, tr and uk
|
|
7
|
+
✅ Translated for: ar, az, cs, da, de, en, es, fi, fr, hr, hu, it, ja, ko, lt, nl, no, oc, pt, pl, ru, sk, sv, tr and uk
|
|
8
8
|
|
|
9
9
|
✅ Vue 3 support
|
|
10
10
|
|
package/dist/module.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
|
|
3
|
-
type Locale = 'ar' | 'az' | 'cs' | 'da' | 'de' | 'en' | 'es' | 'fi' | 'fr' | 'hr' | 'hu' | 'it' | 'ja' | 'ko' | 'lt' | 'nl' | 'no' | 'pt' | 'pl' | 'ru' | 'sk' | 'sv' | 'tr' | 'uk';
|
|
3
|
+
type Locale = 'ar' | 'az' | 'cs' | 'da' | 'de' | 'en' | 'es' | 'fi' | 'fr' | 'hr' | 'hu' | 'it' | 'ja' | 'ko' | 'lt' | 'nl' | 'no' | 'oc' | 'pt' | 'pl' | 'ru' | 'sk' | 'sv' | 'tr' | 'uk';
|
|
4
4
|
type PartialRecord<K extends keyof any, T> = Partial<Record<K, T>>;
|
|
5
5
|
type Translatable = string | PartialRecord<Locale, string>;
|
|
6
6
|
interface Cookie {
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { pathToFileURL } from 'node:url';
|
|
|
3
3
|
import { createResolver, defineNuxtModule, addPlugin, addImports, addTemplate, extendWebpackConfig, resolvePath } from '@nuxt/kit';
|
|
4
4
|
|
|
5
5
|
const name = "@dargmuesli/nuxt-cookie-control";
|
|
6
|
-
const version = "5.
|
|
6
|
+
const version = "5.7.0";
|
|
7
7
|
|
|
8
8
|
const en = {
|
|
9
9
|
accept: "Accept",
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
</template>
|
|
191
191
|
|
|
192
192
|
<script setup lang="ts">
|
|
193
|
-
import { ref, computed, onBeforeMount, watch } from 'vue'
|
|
193
|
+
import { ref, computed, onBeforeMount, watch, defineExpose } from 'vue'
|
|
194
194
|
|
|
195
195
|
import { Cookie, CookieType, Locale, Translatable } from '../types'
|
|
196
196
|
import {
|
|
@@ -417,6 +417,12 @@ watch(isConsentGiven, (current, _previous) => {
|
|
|
417
417
|
}
|
|
418
418
|
})
|
|
419
419
|
|
|
420
|
+
defineExpose({
|
|
421
|
+
accept,
|
|
422
|
+
acceptPartial,
|
|
423
|
+
decline,
|
|
424
|
+
})
|
|
425
|
+
|
|
420
426
|
// initialization
|
|
421
427
|
init()
|
|
422
428
|
</script>
|
|
@@ -15,6 +15,7 @@ import ko from "./ko.mjs";
|
|
|
15
15
|
import lt from "./lt.mjs";
|
|
16
16
|
import nl from "./nl.mjs";
|
|
17
17
|
import no from "./no.mjs";
|
|
18
|
+
import oc from "./oc.mjs";
|
|
18
19
|
import pt from "./pt.mjs";
|
|
19
20
|
import pl from "./pl.mjs";
|
|
20
21
|
import ru from "./ru.mjs";
|
|
@@ -40,6 +41,7 @@ export const locales = [
|
|
|
40
41
|
lt,
|
|
41
42
|
nl,
|
|
42
43
|
no,
|
|
44
|
+
oc,
|
|
43
45
|
pt,
|
|
44
46
|
pl,
|
|
45
47
|
ru,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
accept: "Acceptar",
|
|
3
|
+
acceptAll: "Tot acceptar",
|
|
4
|
+
bannerDescription: "Utilizam de cookies d\u2019origina e de cookies t\xE8rces. Aquestes cookies son destinats a vos ofrir una navegacion optimizada sus aqueste site web de nos donar un apercebut de son utilizacion, per melhorar los servicis que vos provesiss\xE8m. En contunhant v\xF2stra navegacion, consideram qu\u2019acceptatz l\u2019usatge de cookies.",
|
|
5
|
+
bannerTitle: "Cookies",
|
|
6
|
+
close: "Tancar",
|
|
7
|
+
cookiesFunctional: "Cookies foncionals",
|
|
8
|
+
cookiesNecessary: "Los cookies obligat\xF2ris",
|
|
9
|
+
cookiesOptional: "Los cookies opcionals",
|
|
10
|
+
decline: "Acc\xE8pti \xE7\xF2 necessari",
|
|
11
|
+
declineAll: "Tot refusar",
|
|
12
|
+
here: "aqu\xED",
|
|
13
|
+
iframeBlocked: "Per veire aqu\xF2, merc\xE9s d\u2019activar los cookies foncionals",
|
|
14
|
+
manageCookies: "Gerir los cookies",
|
|
15
|
+
save: "Salvagardar",
|
|
16
|
+
settingsUnsaved: "Av\xE8tz de param\xE8tres non salvagardats"
|
|
17
|
+
};
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
export type Locale = 'ar' | 'az' | 'cs' | 'da' | 'de' | 'en' | 'es' | 'fi' | 'fr' | 'hr' | 'hu' | 'it' | 'ja' | 'ko' | 'lt' | 'nl' | 'no' | 'pt' | 'pl' | 'ru' | 'sk' | 'sv' | 'tr' | 'uk';
|
|
2
|
+
export type Locale = 'ar' | 'az' | 'cs' | 'da' | 'de' | 'en' | 'es' | 'fi' | 'fr' | 'hr' | 'hu' | 'it' | 'ja' | 'ko' | 'lt' | 'nl' | 'no' | 'oc' | 'pt' | 'pl' | 'ru' | 'sk' | 'sv' | 'tr' | 'uk';
|
|
3
3
|
export type PartialRecord<K extends keyof any, T> = Partial<Record<K, T>>;
|
|
4
4
|
export type Translatable = string | PartialRecord<Locale, string>;
|
|
5
5
|
export declare enum CookieType {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dargmuesli/nuxt-cookie-control",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.0",
|
|
4
4
|
"description": "Nuxt Cookies Control Module",
|
|
5
5
|
"author": "Dario Ferderber <dario.ferderber@broj42.com>",
|
|
6
6
|
"maintainers": [
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"lint": "pnpm prepack && eslint --ext .js,.ts,.vue . && nuxi typecheck playground"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@nuxt/kit": "3.4.
|
|
39
|
+
"@nuxt/kit": "3.4.2",
|
|
40
40
|
"@sindresorhus/slugify": "2.2.0",
|
|
41
41
|
"css-vars-ponyfill": "2.4.8",
|
|
42
42
|
"js-cookie": "3.0.1",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"eslint-plugin-prettier": "4.2.1",
|
|
53
53
|
"husky": "8.0.3",
|
|
54
54
|
"lint-staged": "13.2.1",
|
|
55
|
-
"nuxt": "3.4.
|
|
55
|
+
"nuxt": "3.4.2",
|
|
56
56
|
"prettier": "2.8.7",
|
|
57
57
|
"typescript": "5.0.4",
|
|
58
58
|
"vue": "3.2.47",
|
|
59
59
|
"vue-tsc": "1.2.0",
|
|
60
|
-
"webpack": "5.
|
|
60
|
+
"webpack": "5.80.0"
|
|
61
61
|
},
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|