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.
- package/bundles/ng-miam.umd.js +4 -4
- 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/_utils/attach-recipe-card-show-tracking.js +4 -4
- package/esm2015/lib/environments/version.js +2 -2
- package/fesm2015/ng-miam.js +4 -4
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_utils/attach-recipe-card-show-tracking.d.ts +1 -3
- package/lib/_utils/attach-recipe-card-show-tracking.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
|
@@ -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.
|
|
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,
|
|
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.
|
|
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() {
|