ng-miam 9.1.30 → 9.1.31

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.
@@ -1988,19 +1988,19 @@
1988
1988
  return ViewportListener;
1989
1989
  }());
1990
1990
 
1991
- var RECIPE_CARD_SHOW_ANALYTICS_PATH = '/recipes';
1992
1991
  /** Same visibility rule as `mealz-recipe-card`: IntersectionObserver ratio ≥ this value. */
1993
1992
  var RECIPE_CARD_SHOW_VISIBILITY_THRESHOLD = 0.8;
1994
1993
  /** Same timing as `mealz-recipe-card`: debounce on intersection stream (ms). */
1995
1994
  var RECIPE_CARD_SHOW_DEBOUNCE_MS = 1000;
1996
1995
  /**
1997
1996
  * Same `recipe.show` pipeline as `mealz-recipe-card`: viewport visibility + deduped tracking.
1997
+ * Always sends the current page URL (`location.href`); path is not configurable.
1998
1998
  * Call `disconnect()` when the host node is removed (virtual lists, SPA navigation).
1999
1999
  */
2000
2000
  function attachRecipeCardShowTracking(options) {
2001
- var element = options.element, recipeId = options.recipeId, _a = options.analyticsPath, analyticsPath = _a === void 0 ? RECIPE_CARD_SHOW_ANALYTICS_PATH : _a, _b = options.categoryId, categoryId = _b === void 0 ? '' : _b;
2001
+ var element = options.element, recipeId = options.recipeId, _a = options.categoryId, categoryId = _a === void 0 ? '' : _a;
2002
2002
  var listener = new ViewportListener(element, function () {
2003
- RecipeCardShowTracker.getInstance().trackRecipeShow(recipeId, analyticsPath, categoryId);
2003
+ RecipeCardShowTracker.getInstance().trackRecipeShow(recipeId, '', categoryId);
2004
2004
  }, {
2005
2005
  threshold: RECIPE_CARD_SHOW_VISIBILITY_THRESHOLD,
2006
2006
  debounce: RECIPE_CARD_SHOW_DEBOUNCE_MS
@@ -3823,7 +3823,7 @@
3823
3823
  EventJourney["EMPTY"] = "";
3824
3824
  })(EventJourney || (EventJourney = {}));
3825
3825
 
3826
- var VERSION = "9.1.30"; // TODO: replace by ##VERSION## and update it in the CI/CD
3826
+ var VERSION = "9.1.31"; // TODO: replace by ##VERSION## and update it in the CI/CD
3827
3827
 
3828
3828
  var ContextRegistryService = /** @class */ (function () {
3829
3829
  function ContextRegistryService() {