webc-miam 10.5.10 → 10.6.0
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/3rdpartylicenses.txt +0 -3
- package/interfaces/mealz-interface.ts +17 -26
- package/interfaces/mealz-internal-interface.ts +652 -19
- package/main-es2015.js +1 -1
- package/main-es5.js +1 -1
- package/miam-style.css +1 -1
- package/package.json +1 -1
- package/polyfills-es5.js +1 -1
- package/runtime-es2015.js +1 -1
- package/runtime-es5.js +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
package/3rdpartylicenses.txt
CHANGED
|
@@ -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
|
// ---------------------------------------------------------------------------------------------------
|
|
@@ -57,8 +70,10 @@ export interface MealzInterface {
|
|
|
57
70
|
recipeCount: () => Observable<number>;
|
|
58
71
|
/**
|
|
59
72
|
* Opens the preview by calling the `openBasket` method of the `recipesService`.
|
|
73
|
+
* @param analyticsPath The path to the analytics event
|
|
74
|
+
* @param selectedTab The tab to select in the preview
|
|
60
75
|
*/
|
|
61
|
-
openPreview: (analyticsPath?: string) => void;
|
|
76
|
+
openPreview: (analyticsPath?: string, selectedTab?: number) => void;
|
|
62
77
|
/**
|
|
63
78
|
* /!\ Debug only: If no-supplier mode is activated, override the base of the transfer url with an other url
|
|
64
79
|
* ex: if transfer url is 'https://test.com/recipes?param1=x,param2=y'
|
|
@@ -124,10 +139,6 @@ export interface MealzInterface {
|
|
|
124
139
|
* Call to enable recipes to display a video instead of their picture, if there is a video for the recipe
|
|
125
140
|
*/
|
|
126
141
|
enableVideoRecipes: () => void;
|
|
127
|
-
/**
|
|
128
|
-
* Call to enable the catalog to display articles, if their are packages that contain any articles
|
|
129
|
-
*/
|
|
130
|
-
enableArticlesInCatalog: () => void;
|
|
131
142
|
/**
|
|
132
143
|
* Call to authorize Mealz to ask for user preferences the first time users view the recipe catalog
|
|
133
144
|
*/
|
|
@@ -147,11 +158,7 @@ export interface MealzInterface {
|
|
|
147
158
|
/**
|
|
148
159
|
* Call to enable SEO (Title and meta tags on recipe display)
|
|
149
160
|
*/
|
|
150
|
-
enableSeo: () => void
|
|
151
|
-
/**
|
|
152
|
-
* Call to enable guests input on my-meals cards
|
|
153
|
-
*/
|
|
154
|
-
enableGuestsInputOnMyMeals: () => void;
|
|
161
|
+
enableSeo: () => void;
|
|
155
162
|
|
|
156
163
|
/**
|
|
157
164
|
* Call to enable collapsing of unavailable products by default
|
|
@@ -203,11 +210,6 @@ export interface MealzInterface {
|
|
|
203
210
|
*/
|
|
204
211
|
getByCoordinates: (latitude: number, longitude: number, radius: number, suppliers: string[]) => Observable<DocumentCollection<PointOfSale>>;
|
|
205
212
|
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Opens the no supplier onboarding popup
|
|
209
|
-
*/
|
|
210
|
-
openNoSupplierOnboarding: () => void;
|
|
211
213
|
};
|
|
212
214
|
|
|
213
215
|
// ---------------------------------------------------------------------------------------------------
|
|
@@ -221,17 +223,6 @@ export interface MealzInterface {
|
|
|
221
223
|
* An EventEmitter that emits a value when the "Add all ingredients" CTA on recipe-details is clicked
|
|
222
224
|
*/
|
|
223
225
|
addAllIngredientsCTAWasClicked: EventEmitter<{ ingredientsAdded: number; ingredientsTotal: number }>;
|
|
224
|
-
/**
|
|
225
|
-
* Opens the recipe details by calling the `openRecipeDetails` method of the `recipesService`.
|
|
226
|
-
*/
|
|
227
|
-
openDetails: (
|
|
228
|
-
recipeId: string,
|
|
229
|
-
guests: number,
|
|
230
|
-
initialTabIndex: number,
|
|
231
|
-
analyticsPath?: string,
|
|
232
|
-
plannerOrCategoryId?: boolean | string,
|
|
233
|
-
categoryId?: string
|
|
234
|
-
) => void;
|
|
235
226
|
/**
|
|
236
227
|
* Call with an url of a picture to change the default picture displayed if an ingredient doesn't have a picture
|
|
237
228
|
* and if ingredients picture have been enabled with recipes.shouldDisplayIngredientPicturesOnRecipeCards(true)
|