webc-miam 10.5.9 → 10.5.10
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 +3 -0
- package/interfaces/mealz-interface.ts +26 -4
- package/interfaces/mealz-internal-interface.ts +19 -645
- 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
|
@@ -57,10 +57,8 @@ export interface MealzInterface {
|
|
|
57
57
|
recipeCount: () => Observable<number>;
|
|
58
58
|
/**
|
|
59
59
|
* Opens the preview by calling the `openBasket` method of the `recipesService`.
|
|
60
|
-
* @param analyticsPath The path to the analytics event
|
|
61
|
-
* @param selectedTab The tab to select in the preview
|
|
62
60
|
*/
|
|
63
|
-
openPreview: (analyticsPath?: string
|
|
61
|
+
openPreview: (analyticsPath?: string) => void;
|
|
64
62
|
/**
|
|
65
63
|
* /!\ Debug only: If no-supplier mode is activated, override the base of the transfer url with an other url
|
|
66
64
|
* ex: if transfer url is 'https://test.com/recipes?param1=x,param2=y'
|
|
@@ -126,6 +124,10 @@ export interface MealzInterface {
|
|
|
126
124
|
* Call to enable recipes to display a video instead of their picture, if there is a video for the recipe
|
|
127
125
|
*/
|
|
128
126
|
enableVideoRecipes: () => void;
|
|
127
|
+
/**
|
|
128
|
+
* Call to enable the catalog to display articles, if their are packages that contain any articles
|
|
129
|
+
*/
|
|
130
|
+
enableArticlesInCatalog: () => void;
|
|
129
131
|
/**
|
|
130
132
|
* Call to authorize Mealz to ask for user preferences the first time users view the recipe catalog
|
|
131
133
|
*/
|
|
@@ -145,7 +147,11 @@ export interface MealzInterface {
|
|
|
145
147
|
/**
|
|
146
148
|
* Call to enable SEO (Title and meta tags on recipe display)
|
|
147
149
|
*/
|
|
148
|
-
enableSeo: () => void
|
|
150
|
+
enableSeo: () => void
|
|
151
|
+
/**
|
|
152
|
+
* Call to enable guests input on my-meals cards
|
|
153
|
+
*/
|
|
154
|
+
enableGuestsInputOnMyMeals: () => void;
|
|
149
155
|
|
|
150
156
|
/**
|
|
151
157
|
* Call to enable collapsing of unavailable products by default
|
|
@@ -197,6 +203,11 @@ export interface MealzInterface {
|
|
|
197
203
|
*/
|
|
198
204
|
getByCoordinates: (latitude: number, longitude: number, radius: number, suppliers: string[]) => Observable<DocumentCollection<PointOfSale>>;
|
|
199
205
|
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Opens the no supplier onboarding popup
|
|
209
|
+
*/
|
|
210
|
+
openNoSupplierOnboarding: () => void;
|
|
200
211
|
};
|
|
201
212
|
|
|
202
213
|
// ---------------------------------------------------------------------------------------------------
|
|
@@ -210,6 +221,17 @@ export interface MealzInterface {
|
|
|
210
221
|
* An EventEmitter that emits a value when the "Add all ingredients" CTA on recipe-details is clicked
|
|
211
222
|
*/
|
|
212
223
|
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;
|
|
213
235
|
/**
|
|
214
236
|
* Call with an url of a picture to change the default picture displayed if an ingredient doesn't have a picture
|
|
215
237
|
* and if ingredients picture have been enabled with recipes.shouldDisplayIngredientPicturesOnRecipeCards(true)
|