ublo-lib 1.31.14 → 1.31.15

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.
@@ -2,6 +2,7 @@ import sendGoal from "./send-goal";
2
2
  const EVENT_NAMES = {
3
3
  view_item: "MseM: View item",
4
4
  add_to_cart: "MseM: Add to cart",
5
+ remove_from_cart: "MseM: Remove from cart",
5
6
  checkout: "MseM: Begin checkout",
6
7
  add_payment_info: "MseM: Checkout process",
7
8
  purchase: "MseM: Payment success",
@@ -65,6 +66,21 @@ export function MseM({
65
66
  }, revenue);
66
67
  break;
67
68
  }
69
+ case "remove_from_cart":
70
+ {
71
+ const formatedItems = formatPeekPerformancesItem(items);
72
+ const rawData = JSON.stringify({
73
+ products: formatedItems,
74
+ hoteId,
75
+ stay
76
+ });
77
+ sendGoal(name, {
78
+ ...firstProductProps,
79
+ stayFrom: stay?.from,
80
+ rawData
81
+ }, revenue);
82
+ break;
83
+ }
68
84
  case "checkout":
69
85
  {
70
86
  const formatedItems = formatPeekPerformancesItem(items);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.31.14",
3
+ "version": "1.31.15",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.8.3",
6
6
  "leaflet": "^1.9.1",