ng-miam 9.1.24 → 9.1.26

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.
@@ -815,9 +815,14 @@
815
815
  var detectJourney = function (mappings, document, location) {
816
816
  var e_1, _b;
817
817
  var doc = document !== null && document !== void 0 ? document : (typeof window !== 'undefined' ? window.document : null);
818
- if (!doc) {
818
+ var loc = location !== null && location !== void 0 ? location : (typeof window !== 'undefined' ? window.location : null);
819
+ if (!doc || !loc) {
819
820
  return null;
820
821
  }
822
+ var urlParams = new URLSearchParams(loc.search);
823
+ if (urlParams.has('from') && urlParams.get('from') === 'header') {
824
+ return 'meals-space-header';
825
+ }
821
826
  var journeyMappings = mappings !== null && mappings !== void 0 ? mappings : defaultJourneyMappings;
822
827
  try {
823
828
  // Check each journey mapping
@@ -1827,7 +1832,7 @@
1827
1832
  env: 'prod',
1828
1833
  miamAPI: 'https://api.miam.tech',
1829
1834
  miamWeb: 'https://miam.tech',
1830
- mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@1.2/dist',
1835
+ mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@1.3/dist',
1831
1836
  mealzSsrApi: 'https://ssr-api.mealz.ai',
1832
1837
  lang: 'fr',
1833
1838
  analyticsEnabled: true // Only used in DEV mode
@@ -3646,7 +3651,7 @@
3646
3651
  EventJourney["EMPTY"] = "";
3647
3652
  })(EventJourney || (EventJourney = {}));
3648
3653
 
3649
- var VERSION = '9.1.22'; // TODO: replace by ##VERSION## and update it in the CI/CD
3654
+ var VERSION = '9.1.25'; // TODO: replace by ##VERSION## and update it in the CI/CD
3650
3655
 
3651
3656
  var ContextRegistryService = /** @class */ (function () {
3652
3657
  function ContextRegistryService() {
@@ -8228,6 +8233,11 @@
8228
8233
  recipes: {
8229
8234
  hidden: this.recipesService.hidden,
8230
8235
  addAllIngredientsCTAWasClicked: this.addAllProductsWasClicked,
8236
+ openDetails: function (recipeId, guests, initialTabIndex, path, categoryId) {
8237
+ if (path === void 0) { path = ''; }
8238
+ if (categoryId === void 0) { categoryId = null; }
8239
+ return _this.recipesService.openRecipeDetails(recipeId, guests, initialTabIndex, path, categoryId);
8240
+ },
8231
8241
  setDefaultIngredientPicture: function (url) { return _this.defaultIngredientPicture = url; },
8232
8242
  setDefaultRecipePicture: function (url) { return _this.defaultRecipePicture = url; },
8233
8243
  // We keep those just in case
@@ -8396,7 +8406,7 @@
8396
8406
  };
8397
8407
  this.mealzInternal = {
8398
8408
  analytics: {
8399
- sendEvent: function (name, path, props) { return _this.analyticsService.sendEvent(name, path, props); },
8409
+ sendEvent: function (name, path, props, journey) { return _this.analyticsService.sendEvent(name, path, props, journey); },
8400
8410
  setIsMealzPage: function (isMealzPage) {
8401
8411
  _this.analyticsService.isMealzPage = isMealzPage;
8402
8412
  }
@@ -10236,7 +10246,7 @@
10236
10246
  env: 'prod',
10237
10247
  miamAPI: 'https://api.miam.tech',
10238
10248
  miamWeb: 'https://miam.tech',
10239
- mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@1.2/dist',
10249
+ mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@1.3/dist',
10240
10250
  mealzSsrApi: 'https://ssr-api.mealz.ai',
10241
10251
  lang: 'fr',
10242
10252
  analyticsEnabled: true // Only used in DEV mode