@plentymarkets/shop-core 1.1.1 → 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 +1 -1
- package/dist/runtime/composables/useCookieBar.d.ts +1 -1
- package/dist/runtime/composables/useCookieBar.js +0 -2
- package/dist/runtime/types/cookies.d.ts +5 -0
- package/dist/runtime/types/events.d.ts +5 -1
- package/dist/runtime/utils/cookieBarHelper.d.ts +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -9,7 +9,7 @@ import type { Cookie, CookieGroupFromNuxtConfig } from '../types/index.js';
|
|
|
9
9
|
* ```
|
|
10
10
|
*/
|
|
11
11
|
export declare const useCookieBar: () => {
|
|
12
|
-
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);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Order, CartItem, DoAddItemParams, DeleteCartItemParams, User, Cart, AfterBasketChanged, CheckoutChanged, AfterAccountAuthentication, FrontendUpdateCustomerSettings } from '@plentymarkets/shop-api';
|
|
2
2
|
export type Events = {
|
|
3
3
|
'frontend:addToCart': {
|
|
4
4
|
item: CartItem;
|
|
@@ -23,4 +23,8 @@ export type Events = {
|
|
|
23
23
|
};
|
|
24
24
|
'frontend:orderCreated': Order;
|
|
25
25
|
'frontend:searchProduct': string;
|
|
26
|
+
'backend:AfterBasketChanged': AfterBasketChanged;
|
|
27
|
+
'backend:CheckoutChanged': CheckoutChanged;
|
|
28
|
+
'backend:AfterAccountAuthentication': AfterAccountAuthentication;
|
|
29
|
+
'backend:FrontendUpdateCustomerSettings': FrontendUpdateCustomerSettings;
|
|
26
30
|
};
|