@hellotext/hellotext 2.5.4 → 2.5.5
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.
|
@@ -85,16 +85,6 @@ let _default = /*#__PURE__*/function (_Controller) {
|
|
|
85
85
|
quantity: 1
|
|
86
86
|
};
|
|
87
87
|
if (this.hasUtmValue) _hellotext.default.page.utm.save(this.utmValue);
|
|
88
|
-
_hellotext.default.track('cart.added', {
|
|
89
|
-
object_parameters: {
|
|
90
|
-
items: [item]
|
|
91
|
-
},
|
|
92
|
-
source: {
|
|
93
|
-
kind: this.kindValue,
|
|
94
|
-
message_id: this.idValue,
|
|
95
|
-
button_id: currentTarget.dataset.id
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
88
|
_hellotext.default.eventEmitter.dispatch('cart.added', {
|
|
99
89
|
object_parameters: {
|
|
100
90
|
items: [{
|
|
@@ -106,6 +96,11 @@ let _default = /*#__PURE__*/function (_Controller) {
|
|
|
106
96
|
source
|
|
107
97
|
})
|
|
108
98
|
}]
|
|
99
|
+
},
|
|
100
|
+
source: {
|
|
101
|
+
kind: this.kindValue,
|
|
102
|
+
message_id: this.idValue,
|
|
103
|
+
button_id: currentTarget.dataset.id
|
|
109
104
|
}
|
|
110
105
|
});
|
|
111
106
|
}
|
|
@@ -84,16 +84,6 @@ var _default = /*#__PURE__*/function (_Controller) {
|
|
|
84
84
|
quantity: 1
|
|
85
85
|
};
|
|
86
86
|
if (this.hasUtmValue) Hellotext.page.utm.save(this.utmValue);
|
|
87
|
-
Hellotext.track('cart.added', {
|
|
88
|
-
object_parameters: {
|
|
89
|
-
items: [item]
|
|
90
|
-
},
|
|
91
|
-
source: {
|
|
92
|
-
kind: this.kindValue,
|
|
93
|
-
message_id: this.idValue,
|
|
94
|
-
button_id: currentTarget.dataset.id
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
87
|
Hellotext.eventEmitter.dispatch('cart.added', {
|
|
98
88
|
object_parameters: {
|
|
99
89
|
items: [_objectSpread(_objectSpread(_objectSpread({}, item), reference && {
|
|
@@ -101,6 +91,11 @@ var _default = /*#__PURE__*/function (_Controller) {
|
|
|
101
91
|
}), source && {
|
|
102
92
|
source
|
|
103
93
|
})]
|
|
94
|
+
},
|
|
95
|
+
source: {
|
|
96
|
+
kind: this.kindValue,
|
|
97
|
+
message_id: this.idValue,
|
|
98
|
+
button_id: currentTarget.dataset.id
|
|
104
99
|
}
|
|
105
100
|
});
|
|
106
101
|
}
|
package/package.json
CHANGED
|
@@ -55,15 +55,6 @@ export default class extends Controller {
|
|
|
55
55
|
|
|
56
56
|
if (this.hasUtmValue) Hellotext.page.utm.save(this.utmValue)
|
|
57
57
|
|
|
58
|
-
Hellotext.track('cart.added', {
|
|
59
|
-
object_parameters: { items: [item] },
|
|
60
|
-
source: {
|
|
61
|
-
kind: this.kindValue,
|
|
62
|
-
message_id: this.idValue,
|
|
63
|
-
button_id: currentTarget.dataset.id,
|
|
64
|
-
},
|
|
65
|
-
})
|
|
66
|
-
|
|
67
58
|
Hellotext.eventEmitter.dispatch('cart.added', {
|
|
68
59
|
object_parameters: {
|
|
69
60
|
items: [
|
|
@@ -74,6 +65,11 @@ export default class extends Controller {
|
|
|
74
65
|
},
|
|
75
66
|
],
|
|
76
67
|
},
|
|
68
|
+
source: {
|
|
69
|
+
kind: this.kindValue,
|
|
70
|
+
message_id: this.idValue,
|
|
71
|
+
button_id: currentTarget.dataset.id,
|
|
72
|
+
},
|
|
77
73
|
})
|
|
78
74
|
}
|
|
79
75
|
|