webc-miam 10.5.11 → 10.6.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.
- package/interfaces/mealz-interface.ts +13 -0
- package/main-es2015.js +1 -1
- package/main-es5.js +1 -1
- package/package.json +1 -1
- package/webc-miam-de.js +1 -1
- package/webc-miam-en.js +1 -1
- package/webc-miam-es.js +1 -1
- package/webc-miam-fr.js +1 -1
- package/webc-miam-it.js +1 -1
- package/webc-miam-nl.js +1 -1
- package/webc-miam-pt.js +1 -1
- package/webc-miam-ro.js +1 -1
|
@@ -2,6 +2,10 @@ import { EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { DocumentCollection } from 'miam-jsonapi';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { PointOfSale, Supplier } from '../../_models';
|
|
5
|
+
import {
|
|
6
|
+
AttachRecipeCardShowTrackingOptions,
|
|
7
|
+
RecipeCardShowTrackingHandle
|
|
8
|
+
} from '../../_utils/attach-recipe-card-show-tracking';
|
|
5
9
|
import { ComparableProduct } from './comparable-product';
|
|
6
10
|
|
|
7
11
|
export interface MealzInterface {
|
|
@@ -31,6 +35,15 @@ export interface MealzInterface {
|
|
|
31
35
|
* Must be called before init
|
|
32
36
|
*/
|
|
33
37
|
setAbTestKey: (key: string) => void;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Attach viewport-based `recipe.show` tracking on a custom recipe card root element.
|
|
41
|
+
* Same behaviour as the native `mealz-recipe-card` (80% visible for 1s, deduped after scroll).
|
|
42
|
+
* Call the returned handle's `disconnect()` when the element is removed.
|
|
43
|
+
*/
|
|
44
|
+
attachRecipeCardShowTracking: (
|
|
45
|
+
options: AttachRecipeCardShowTrackingOptions
|
|
46
|
+
) => RecipeCardShowTrackingHandle;
|
|
34
47
|
};
|
|
35
48
|
|
|
36
49
|
// ---------------------------------------------------------------------------------------------------
|