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.
@@ -3286,7 +3286,7 @@
3286
3286
  EventJourney["EMPTY"] = "";
3287
3287
  })(EventJourney || (EventJourney = {}));
3288
3288
 
3289
- var VERSION = "10.0.0"; // TODO: replace by ##VERSION## and update it in the CI/CD
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
- // Currently no way to know if it is search or shelves
3397
- var journey = this.isMealzPage ? EventJourney.MEALZ : EventJourney.EMPTY;
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
  }