ng-miam 10.0.0 → 10.0.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/bundles/ng-miam.umd.js +6 -5
- package/bundles/ng-miam.umd.js.map +1 -1
- package/bundles/ng-miam.umd.min.js +1 -1
- package/bundles/ng-miam.umd.min.js.map +1 -1
- package/esm2015/lib/_services/analytics.service.js +5 -4
- package/esm2015/lib/_services/context.service.js +2 -2
- package/esm2015/lib/environments/version.js +2 -2
- package/fesm2015/ng-miam.js +6 -5
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_services/analytics.service.d.ts +1 -1
- package/lib/_services/analytics.service.d.ts.map +1 -1
- package/lib/environments/version.d.ts +1 -1
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -3286,7 +3286,7 @@
|
|
|
3286
3286
|
EventJourney["EMPTY"] = "";
|
|
3287
3287
|
})(EventJourney || (EventJourney = {}));
|
|
3288
3288
|
|
|
3289
|
-
var VERSION = "10.0.
|
|
3289
|
+
var VERSION = "10.0.1"; // TODO: replace by ##VERSION## and update it in the CI/CD
|
|
3290
3290
|
|
|
3291
3291
|
var ContextRegistryService = /** @class */ (function () {
|
|
3292
3292
|
function ContextRegistryService() {
|
|
@@ -3385,7 +3385,7 @@
|
|
|
3385
3385
|
}
|
|
3386
3386
|
this.alreadyInitialized$.next(true);
|
|
3387
3387
|
};
|
|
3388
|
-
AnalyticsService.prototype.sendEvent = function (name, path, props) {
|
|
3388
|
+
AnalyticsService.prototype.sendEvent = function (name, path, props, journey) {
|
|
3389
3389
|
if (this.contextRegistryService.disabledAnalytics && this.contextRegistryService.forbidProfiling) {
|
|
3390
3390
|
return;
|
|
3391
3391
|
}
|
|
@@ -3393,8 +3393,9 @@
|
|
|
3393
3393
|
if (environment$1.env === 'dev' && environment$1.analyticsEnabled === false) {
|
|
3394
3394
|
return;
|
|
3395
3395
|
}
|
|
3396
|
-
|
|
3397
|
-
|
|
3396
|
+
if (!journey) {
|
|
3397
|
+
journey = this.isMealzPage ? EventJourney.MEALZ : EventJourney.EMPTY;
|
|
3398
|
+
}
|
|
3398
3399
|
this.callMethodOrAddToQueue(function () { return mealzSharedAnalytics.sendEvent(name, url(path), journey, props); });
|
|
3399
3400
|
};
|
|
3400
3401
|
/** ************************************************* SEND EVENT FOR BASKET ACTIONS ************************************************* **/
|
|
@@ -10928,7 +10929,7 @@
|
|
|
10928
10929
|
};
|
|
10929
10930
|
this.mealzInternal = {
|
|
10930
10931
|
analytics: {
|
|
10931
|
-
sendEvent: function (name, path, props) { return _this.analyticsService.sendEvent(name, path, props); },
|
|
10932
|
+
sendEvent: function (name, path, props, journey) { return _this.analyticsService.sendEvent(name, path, props, journey); },
|
|
10932
10933
|
setIsMealzPage: function (isMealzPage) {
|
|
10933
10934
|
_this.analyticsService.isMealzPage = isMealzPage;
|
|
10934
10935
|
}
|