@dargmuesli/nuxt-cookie-control 8.1.1 → 8.1.3

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.mts CHANGED
@@ -2,7 +2,7 @@ import * as _nuxt_schema from '@nuxt/schema';
2
2
  import { CookieOptions } from 'nuxt/app';
3
3
 
4
4
  type Locale = 'ar' | 'az' | 'be' | 'bg' | 'ca' | 'cs' | 'da' | 'de' | 'en' | 'es' | 'fi' | 'fr' | 'hr' | 'hu' | 'id' | 'it' | 'ja' | 'km' | 'ko' | 'lt' | 'nl' | 'no' | 'oc' | 'pt' | 'pl' | 'ro' | 'rs' | 'ru' | 'sk' | 'sv' | 'tr' | 'uk' | 'zh-CN';
5
- type PartialRecord<K extends keyof any, T> = Partial<Record<K, T>>;
5
+ type PartialRecord<K extends string | number | symbol, T> = Partial<Record<K, T>>;
6
6
  type Translatable = string | PartialRecord<Locale, string>;
7
7
  interface Cookie {
8
8
  description?: Translatable;
@@ -33,7 +33,7 @@ interface LocaleStrings {
33
33
  interface ModuleOptions {
34
34
  barPosition: 'top-left' | 'top-right' | 'top-full' | 'bottom-left' | 'bottom-right' | 'bottom-full';
35
35
  closeModalOnClickOutside: boolean;
36
- colors: false | Record<string, any>;
36
+ colors: false | Record<string, unknown>;
37
37
  cookieExpiryOffsetMs: number;
38
38
  cookieNameCookiesEnabledIds: string;
39
39
  cookieNameIsConsentGiven: string;
package/dist/module.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as _nuxt_schema from '@nuxt/schema';
2
2
  import { CookieOptions } from 'nuxt/app';
3
3
 
4
4
  type Locale = 'ar' | 'az' | 'be' | 'bg' | 'ca' | 'cs' | 'da' | 'de' | 'en' | 'es' | 'fi' | 'fr' | 'hr' | 'hu' | 'id' | 'it' | 'ja' | 'km' | 'ko' | 'lt' | 'nl' | 'no' | 'oc' | 'pt' | 'pl' | 'ro' | 'rs' | 'ru' | 'sk' | 'sv' | 'tr' | 'uk' | 'zh-CN';
5
- type PartialRecord<K extends keyof any, T> = Partial<Record<K, T>>;
5
+ type PartialRecord<K extends string | number | symbol, T> = Partial<Record<K, T>>;
6
6
  type Translatable = string | PartialRecord<Locale, string>;
7
7
  interface Cookie {
8
8
  description?: Translatable;
@@ -33,7 +33,7 @@ interface LocaleStrings {
33
33
  interface ModuleOptions {
34
34
  barPosition: 'top-left' | 'top-right' | 'top-full' | 'bottom-left' | 'bottom-right' | 'bottom-full';
35
35
  closeModalOnClickOutside: boolean;
36
- colors: false | Record<string, any>;
36
+ colors: false | Record<string, unknown>;
37
37
  cookieExpiryOffsetMs: number;
38
38
  cookieNameCookiesEnabledIds: string;
39
39
  cookieNameIsConsentGiven: string;
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "8.1.1",
3
+ "version": "8.1.3",
4
4
  "configKey": "cookieControl",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.0.0"
package/dist/module.mjs CHANGED
@@ -3,7 +3,7 @@ import { pathToFileURL } from 'node:url';
3
3
  import { createResolver, defineNuxtModule, addPlugin, addImports, addTemplate, extendWebpackConfig, extendViteConfig, resolvePath } from '@nuxt/kit';
4
4
 
5
5
  const name = "@dargmuesli/nuxt-cookie-control";
6
- const version = "8.1.1";
6
+ const version = "8.1.3";
7
7
 
8
8
  const en = {
9
9
  accept: "Accept",
@@ -349,7 +349,7 @@ const toggleLabel = ($event: KeyboardEvent) => {
349
349
  // lifecycle
350
350
  onBeforeMount(() => {
351
351
  if (moduleOptions.colors) {
352
- const variables: Record<string, any> = {}
352
+ const variables: Record<string, string> = {}
353
353
 
354
354
  for (const key in moduleOptions.colors) {
355
355
  variables[`cookie-control-${key}`] = `${moduleOptions.colors[key]}`
@@ -1,16 +1,16 @@
1
1
  export default {
2
2
  accept: "Terima",
3
3
  acceptAll: "Terima semua",
4
- bannerDescription: "Kami menggunakan cookie kami sendiri dan cookie pihak ketiga agar kami dapat menampilkan situs web ini dengan benar dan lebih memahami bagaimana situs web ini digunakan, dengan tujuan untuk meningkatkan layanan yang kami tawarkan. Keputusan mengenai izin penggunaan cookie dapat diubah kapan saja menggunakan tombol cookie yang akan muncul setelah seleksi dibuat pada banner ini.",
5
- bannerTitle: "Cookie",
4
+ bannerDescription: "Kami menggunakan kuki kami sendiri dan kuki pihak ketiga agar kami dapat menampilkan situs web ini dengan benar dan lebih memahami bagaimana situs web ini digunakan, dengan tujuan untuk meningkatkan layanan yang kami tawarkan. Keputusan mengenai izin penggunaan kuki dapat diubah kapan saja menggunakan tombol kuki yang akan muncul setelah seleksi dibuat pada banner ini.",
5
+ bannerTitle: "Kuki",
6
6
  close: "Tutup",
7
- cookiesFunctional: "Cookie fungsional",
8
- cookiesNecessary: "Cookie yang diperlukan",
9
- cookiesOptional: "Cookie opsional",
7
+ cookiesFunctional: "Kuki fungsional",
8
+ cookiesNecessary: "Kuki yang diperlukan",
9
+ cookiesOptional: "Kuki opsional",
10
10
  decline: "Tolak",
11
11
  declineAll: "Tolak semua",
12
12
  here: "di sini",
13
- iframeBlocked: "Untuk melihat ini, harap aktifkan cookie fungsional",
13
+ iframeBlocked: "Untuk melihat ini, harap aktifkan kuki fungsional",
14
14
  manageCookies: "Pelajari lebih lanjut dan sesuaikan",
15
15
  save: "Simpan",
16
16
  settingsUnsaved: "Anda memiliki pengaturan yang belum disimpan"
@@ -1,5 +1,5 @@
1
- import type { Plugin } from '#app';
2
1
  import type { State } from './types';
2
+ import type { Plugin } from '#app';
3
3
  declare const plugin: Plugin<{
4
4
  cookies: State;
5
5
  }>;
@@ -1,7 +1,7 @@
1
1
  import type { Ref } from 'vue';
2
2
  import type { CookieOptions } from 'nuxt/app';
3
3
  export type Locale = 'ar' | 'az' | 'be' | 'bg' | 'ca' | 'cs' | 'da' | 'de' | 'en' | 'es' | 'fi' | 'fr' | 'hr' | 'hu' | 'id' | 'it' | 'ja' | 'km' | 'ko' | 'lt' | 'nl' | 'no' | 'oc' | 'pt' | 'pl' | 'ro' | 'rs' | 'ru' | 'sk' | 'sv' | 'tr' | 'uk' | 'zh-CN';
4
- export type PartialRecord<K extends keyof any, T> = Partial<Record<K, T>>;
4
+ export type PartialRecord<K extends string | number | symbol, T> = Partial<Record<K, T>>;
5
5
  export type Translatable = string | PartialRecord<Locale, string>;
6
6
  export declare enum CookieType {
7
7
  NECESSARY = "necessary",
@@ -36,7 +36,7 @@ export interface LocaleStrings {
36
36
  export interface ModuleOptions {
37
37
  barPosition: 'top-left' | 'top-right' | 'top-full' | 'bottom-left' | 'bottom-right' | 'bottom-full';
38
38
  closeModalOnClickOutside: boolean;
39
- colors: false | Record<string, any>;
39
+ colors: false | Record<string, unknown>;
40
40
  cookieExpiryOffsetMs: number;
41
41
  cookieNameCookiesEnabledIds: string;
42
42
  cookieNameIsConsentGiven: string;
package/package.json CHANGED
@@ -10,22 +10,23 @@
10
10
  },
11
11
  "description": "Nuxt Cookie Control Module",
12
12
  "devDependencies": {
13
- "@commitlint/cli": "19.2.1",
14
- "@commitlint/config-conventional": "19.1.0",
13
+ "@commitlint/cli": "19.3.0",
14
+ "@commitlint/config-conventional": "19.2.2",
15
15
  "@dargmuesli/nuxt-cookie-control": "link:",
16
+ "@nuxt/eslint-config": "0.3.9",
16
17
  "@nuxt/module-builder": "0.5.5",
17
18
  "@nuxt/schema": "3.11.2",
18
- "@nuxtjs/eslint-config-typescript": "12.1.0",
19
- "eslint": "8.57.0",
19
+ "eslint": "9.1.1",
20
20
  "eslint-config-prettier": "9.1.0",
21
21
  "eslint-plugin-prettier": "5.1.3",
22
22
  "husky": "9.0.11",
23
23
  "lint-staged": "15.2.2",
24
24
  "nuxt": "3.11.2",
25
25
  "prettier": "3.2.5",
26
- "typescript": "5.4.4",
27
- "vue": "3.4.21",
28
- "vue-tsc": "2.0.11",
26
+ "typescript": "5.4.5",
27
+ "vite": "5.2.10",
28
+ "vue": "3.4.24",
29
+ "vue-tsc": "2.0.14",
29
30
  "webpack": "5.91.0"
30
31
  },
31
32
  "engines": {
@@ -61,7 +62,7 @@
61
62
  "Jonas Thelemann"
62
63
  ],
63
64
  "name": "@dargmuesli/nuxt-cookie-control",
64
- "packageManager": "pnpm@8.15.6",
65
+ "packageManager": "pnpm@9.0.5",
65
66
  "publishConfig": {
66
67
  "access": "public"
67
68
  },
@@ -72,12 +73,12 @@
72
73
  "scripts": {
73
74
  "build": "nuxt-module-build build",
74
75
  "dev": "pnpm --dir playground run dev",
75
- "lint": "eslint --ext .js,.ts,.vue . && nuxi typecheck",
76
- "lint:fix": "eslint --ext .js,.ts,.vue --fix . && nuxi typecheck --fix",
76
+ "lint": "eslint --cache && nuxi typecheck",
77
+ "lint:fix": "eslint --cache --fix . && nuxi typecheck --fix",
77
78
  "prepack": "pnpm build",
78
79
  "prepare": "husky && nuxt-module-build prepare"
79
80
  },
80
81
  "type": "module",
81
82
  "types": "./dist/module.d.ts",
82
- "version": "8.1.1"
83
+ "version": "8.1.3"
83
84
  }