webc-miam 9.1.31 → 9.1.32

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.
@@ -6,6 +6,10 @@ import {
6
6
  AttachRecipeCardShowTrackingOptions,
7
7
  RecipeCardShowTrackingHandle
8
8
  } from '../../_utils/attach-recipe-card-show-tracking';
9
+ import {
10
+ AttachProductShowTrackingOptions,
11
+ ProductShowTrackingHandle
12
+ } from '../../_utils/attach-product-show-tracking';
9
13
  import { ComparableProduct } from './comparable-product';
10
14
 
11
15
  export interface MealzInterface {
@@ -44,6 +48,15 @@ export interface MealzInterface {
44
48
  attachRecipeCardShowTracking: (
45
49
  options: AttachRecipeCardShowTrackingOptions
46
50
  ) => RecipeCardShowTrackingHandle;
51
+
52
+ /**
53
+ * Attach viewport-based `product.show` tracking on a recipe details product card root element.
54
+ * Same behaviour as `ng-miam-product-card` (80% visible for 1s, deduped per recipe/item).
55
+ * Call the returned handle's `disconnect()` when the element is removed.
56
+ */
57
+ attachProductShowTracking: (
58
+ options: AttachProductShowTrackingOptions
59
+ ) => ProductShowTrackingHandle;
47
60
  };
48
61
 
49
62
  // ---------------------------------------------------------------------------------------------------