@dargmuesli/nuxt-cookie-control 8.2.1 → 8.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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "8.2.1",
3
+ "version": "8.2.2",
4
4
  "configKey": "cookieControl",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.0.0"
package/dist/module.mjs CHANGED
@@ -121,7 +121,7 @@ const DEFAULTS = {
121
121
  };
122
122
 
123
123
  const name = "@dargmuesli/nuxt-cookie-control";
124
- const version = "8.2.1";
124
+ const version = "8.2.2";
125
125
 
126
126
  const resolver = createResolver(import.meta.url);
127
127
  const runtimeDir = resolver.resolve("./runtime");
@@ -58,6 +58,7 @@ export interface ModuleOptions {
58
58
  locales: Locale[];
59
59
  localeTexts: PartialRecord<Locale, Partial<LocaleStrings>>;
60
60
  }
61
+ export declare const DEFAULTS: Required<ModuleOptions>;
61
62
  export interface State {
62
63
  cookiesEnabled: Ref<Cookie[] | undefined>;
63
64
  cookiesEnabledIds: Ref<string[] | undefined>;
@@ -1,5 +1,62 @@
1
+ import en from "./locale/en.mjs";
1
2
  export var CookieType = /* @__PURE__ */ ((CookieType2) => {
2
3
  CookieType2["NECESSARY"] = "necessary";
3
4
  CookieType2["OPTIONAL"] = "optional";
4
5
  return CookieType2;
5
6
  })(CookieType || {});
7
+ export const DEFAULTS = {
8
+ barPosition: "bottom-full",
9
+ closeModalOnClickOutside: false,
10
+ colors: {
11
+ barBackground: "#000",
12
+ barButtonBackground: "#fff",
13
+ barButtonColor: "#000",
14
+ barButtonHoverBackground: "#333",
15
+ barButtonHoverColor: "#fff",
16
+ barTextColor: "#fff",
17
+ checkboxActiveBackground: "#000",
18
+ checkboxActiveCircleBackground: "#fff",
19
+ checkboxDisabledBackground: "#ddd",
20
+ checkboxDisabledCircleBackground: "#fff",
21
+ checkboxInactiveBackground: "#000",
22
+ checkboxInactiveCircleBackground: "#fff",
23
+ controlButtonBackground: "#fff",
24
+ controlButtonHoverBackground: "#000",
25
+ controlButtonIconColor: "#000",
26
+ controlButtonIconHoverColor: "#fff",
27
+ focusRingColor: "#808080",
28
+ modalBackground: "#fff",
29
+ modalButtonBackground: "#000",
30
+ modalButtonColor: "#fff",
31
+ modalButtonHoverBackground: "#333",
32
+ modalButtonHoverColor: "#fff",
33
+ modalOverlay: "#000",
34
+ modalOverlayOpacity: 0.8,
35
+ modalTextColor: "#000",
36
+ modalUnsavedColor: "#fff"
37
+ },
38
+ cookies: {
39
+ necessary: [],
40
+ optional: []
41
+ },
42
+ cookieExpiryOffsetMs: 1e3 * 60 * 60 * 24 * 365,
43
+ // one year
44
+ cookieNameIsConsentGiven: "ncc_c",
45
+ cookieNameCookiesEnabledIds: "ncc_e",
46
+ cookieOptions: {
47
+ path: "/",
48
+ sameSite: "strict",
49
+ secure: process.env.NODE_ENV === "development" ? void 0 : true
50
+ },
51
+ isAcceptNecessaryButtonEnabled: true,
52
+ isControlButtonEnabled: true,
53
+ isCookieIdVisible: false,
54
+ isCssEnabled: true,
55
+ isCssPonyfillEnabled: false,
56
+ isDashInDescriptionEnabled: true,
57
+ isIframeBlocked: false,
58
+ isModalForced: false,
59
+ locales: ["en"],
60
+ // TODO: use Nuxt module "i18n"
61
+ localeTexts: { en }
62
+ };
package/package.json CHANGED
@@ -89,5 +89,5 @@
89
89
  },
90
90
  "type": "module",
91
91
  "types": "./dist/types.d.ts",
92
- "version": "8.2.1"
92
+ "version": "8.2.2"
93
93
  }