@plentymarkets/shop-core 1.2.0 → 1.2.1

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,7 +1,7 @@
1
1
  {
2
2
  "name": "shop-core",
3
3
  "configKey": "shopCore",
4
- "version": "1.2.0",
4
+ "version": "1.2.1",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -9,7 +9,7 @@ import type { Cookie, CookieGroupFromNuxtConfig } from '../types/index.js';
9
9
  * ```
10
10
  */
11
11
  export declare const useCookieBar: () => {
12
- changeVisibilityState: ChangeVisibilityState;
12
+ changeVisibilityState: () => void;
13
13
  setConsent: () => void;
14
14
  initializeCookies: () => void;
15
15
  setAllCookiesState: (accepted: boolean) => void;
@@ -120,8 +120,6 @@ export const fetchScripts = (scripts) => {
120
120
  scriptElement.setAttribute("src", script);
121
121
  scriptElement.setAttribute("type", "text/javascript");
122
122
  document.head.append(scriptElement);
123
- } else if (cookieScripts[script]) {
124
- cookieScripts[script]();
125
123
  }
126
124
  } catch (error) {
127
125
  console.error(error);
@@ -21,3 +21,8 @@ export type CookieGroupFromNuxtConfig = {
21
21
  barTitle: string;
22
22
  barDescription: string;
23
23
  };
24
+ export type JsonCookie = {
25
+ [key: string]: {
26
+ [key: string]: boolean;
27
+ };
28
+ };
@@ -1,4 +1,4 @@
1
- import type { CookieGroup } from '~/configuration/cookie.config';
1
+ import type { CookieGroup } from '../types/index.js';
2
2
  export declare const cookieBarHelper: () => {
3
3
  getMinimumLifeSpan: (cookieJsonFromConfig: CookieGroup[]) => number;
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plentymarkets/shop-core",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Core module for PlentyONE Shop",
5
5
  "repository": {
6
6
  "type": "git",