@dargmuesli/nuxt-cookie-control 2.2.0 → 2.2.2
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/dist/module.d.ts +1 -16
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/CookieControl.vue +2 -2
- package/dist/runtime/constants.d.ts +1 -1
- package/dist/runtime/constants.mjs +1 -2
- package/dist/runtime/types.d.ts +1 -16
- package/dist/runtime/types.mjs +1 -18
- package/package.json +5 -4
package/dist/module.d.ts
CHANGED
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
AR = "ar",
|
|
5
|
-
DE = "de",
|
|
6
|
-
EN = "en",
|
|
7
|
-
ES = "es",
|
|
8
|
-
FR = "fr",
|
|
9
|
-
HR = "hr",
|
|
10
|
-
HU = "hu",
|
|
11
|
-
IT = "it",
|
|
12
|
-
JA = "ja",
|
|
13
|
-
NL = "nl",
|
|
14
|
-
NO = "no",
|
|
15
|
-
PT = "pt",
|
|
16
|
-
RU = "ru",
|
|
17
|
-
UK = "uk"
|
|
18
|
-
}
|
|
3
|
+
type Locale = 'ar' | 'de' | 'en' | 'es' | 'fr' | 'hr' | 'hu' | 'it' | 'ja' | 'nl' | 'no' | 'pt' | 'ru' | 'uk';
|
|
19
4
|
type PartialRecord<K extends keyof any, T> = Partial<Record<K, T>>;
|
|
20
5
|
type Translatable = string | PartialRecord<Locale, string>;
|
|
21
6
|
interface Cookie {
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -11,7 +11,7 @@ const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
|
11
11
|
const __dirname = __cjs_path__.dirname(__filename);
|
|
12
12
|
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
13
13
|
const name = "@dargmuesli/nuxt-cookie-control";
|
|
14
|
-
const version = "2.2.
|
|
14
|
+
const version = "2.2.2";
|
|
15
15
|
|
|
16
16
|
const en = {
|
|
17
17
|
acceptAll: "Accept all",
|
|
@@ -71,7 +71,7 @@ const DEFAULTS = {
|
|
|
71
71
|
isDashInDescriptionEnabled: true,
|
|
72
72
|
isIframeBlocked: false,
|
|
73
73
|
domain: "",
|
|
74
|
-
locales: ["en"
|
|
74
|
+
locales: ["en"],
|
|
75
75
|
localeTexts: { en }
|
|
76
76
|
};
|
|
77
77
|
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
{{
|
|
105
105
|
' IDs: ' +
|
|
106
106
|
cookie.targetCookieIds
|
|
107
|
-
.map((id) => `"${id}"`)
|
|
107
|
+
.map((id: string) => `"${id}"`)
|
|
108
108
|
.join(', ')
|
|
109
109
|
}}
|
|
110
110
|
</span>
|
|
@@ -159,7 +159,7 @@ export interface Props {
|
|
|
159
159
|
locale?: Locale
|
|
160
160
|
}
|
|
161
161
|
const props = withDefaults(defineProps<Props>(), {
|
|
162
|
-
locale:
|
|
162
|
+
locale: 'en',
|
|
163
163
|
})
|
|
164
164
|
|
|
165
165
|
const { cookiesEnabledIds, isConsentGiven, isModalActive, moduleOptions } =
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Locale } from './types';
|
|
2
|
-
export declare const LOCALE_DEFAULT
|
|
2
|
+
export declare const LOCALE_DEFAULT: Locale;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export const LOCALE_DEFAULT = Locale.EN;
|
|
1
|
+
export const LOCALE_DEFAULT = "en";
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -1,20 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
export
|
|
3
|
-
AR = "ar",
|
|
4
|
-
DE = "de",
|
|
5
|
-
EN = "en",
|
|
6
|
-
ES = "es",
|
|
7
|
-
FR = "fr",
|
|
8
|
-
HR = "hr",
|
|
9
|
-
HU = "hu",
|
|
10
|
-
IT = "it",
|
|
11
|
-
JA = "ja",
|
|
12
|
-
NL = "nl",
|
|
13
|
-
NO = "no",
|
|
14
|
-
PT = "pt",
|
|
15
|
-
RU = "ru",
|
|
16
|
-
UK = "uk"
|
|
17
|
-
}
|
|
2
|
+
export type Locale = 'ar' | 'de' | 'en' | 'es' | 'fr' | 'hr' | 'hu' | 'it' | 'ja' | 'nl' | 'no' | 'pt' | 'ru' | 'uk';
|
|
18
3
|
export type PartialRecord<K extends keyof any, T> = Partial<Record<K, T>>;
|
|
19
4
|
export type Translatable = string | PartialRecord<Locale, string>;
|
|
20
5
|
export declare enum CookieType {
|
package/dist/runtime/types.mjs
CHANGED
|
@@ -1,21 +1,4 @@
|
|
|
1
1
|
import en from "./locale/en.mjs";
|
|
2
|
-
export var Locale = /* @__PURE__ */ ((Locale2) => {
|
|
3
|
-
Locale2["AR"] = "ar";
|
|
4
|
-
Locale2["DE"] = "de";
|
|
5
|
-
Locale2["EN"] = "en";
|
|
6
|
-
Locale2["ES"] = "es";
|
|
7
|
-
Locale2["FR"] = "fr";
|
|
8
|
-
Locale2["HR"] = "hr";
|
|
9
|
-
Locale2["HU"] = "hu";
|
|
10
|
-
Locale2["IT"] = "it";
|
|
11
|
-
Locale2["JA"] = "ja";
|
|
12
|
-
Locale2["NL"] = "nl";
|
|
13
|
-
Locale2["NO"] = "no";
|
|
14
|
-
Locale2["PT"] = "pt";
|
|
15
|
-
Locale2["RU"] = "ru";
|
|
16
|
-
Locale2["UK"] = "uk";
|
|
17
|
-
return Locale2;
|
|
18
|
-
})(Locale || {});
|
|
19
2
|
export var CookieType = /* @__PURE__ */ ((CookieType2) => {
|
|
20
3
|
CookieType2["NECESSARY"] = "necessary";
|
|
21
4
|
CookieType2["OPTIONAL"] = "optional";
|
|
@@ -61,6 +44,6 @@ export const DEFAULTS = {
|
|
|
61
44
|
isDashInDescriptionEnabled: true,
|
|
62
45
|
isIframeBlocked: false,
|
|
63
46
|
domain: "",
|
|
64
|
-
locales: ["en"
|
|
47
|
+
locales: ["en"],
|
|
65
48
|
localeTexts: { en }
|
|
66
49
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dargmuesli/nuxt-cookie-control",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "Nuxt Cookies Control Module",
|
|
5
5
|
"author": "Dario Ferderber <dario.ferderber@broj42.com>",
|
|
6
6
|
"maintainers": [
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@nuxt/module-builder": "0.2.1",
|
|
47
47
|
"@nuxtjs/eslint-config-typescript": "12.0.0",
|
|
48
48
|
"@types/js-cookie": "3.0.2",
|
|
49
|
-
"eslint": "8.
|
|
49
|
+
"eslint": "8.30.0",
|
|
50
50
|
"eslint-config-prettier": "8.5.0",
|
|
51
51
|
"eslint-plugin-prettier": "4.2.1",
|
|
52
52
|
"husky": "8.0.2",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"prettier": "2.8.1",
|
|
56
56
|
"typescript": "4.9.4",
|
|
57
57
|
"vue": "3.2.45",
|
|
58
|
-
"vue-tsc": "1.0.
|
|
58
|
+
"vue-tsc": "1.0.18",
|
|
59
59
|
"webpack": "5.75.0"
|
|
60
60
|
},
|
|
61
61
|
"resolutions": {
|
|
@@ -63,5 +63,6 @@
|
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
|
-
}
|
|
66
|
+
},
|
|
67
|
+
"scheduleVersion": "2.2.2"
|
|
67
68
|
}
|