webc-miam 9.1.25 → 9.1.27

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.
@@ -221,6 +221,17 @@ export interface MealzInterface {
221
221
  * An EventEmitter that emits a value when the "Add all ingredients" CTA on recipe-details is clicked
222
222
  */
223
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;
224
235
  /**
225
236
  * Call with an url of a picture to change the default picture displayed if an ingredient doesn't have a picture
226
237
  * and if ingredients picture have been enabled with recipes.shouldDisplayIngredientPicturesOnRecipeCards(true)
@@ -75,14 +75,21 @@ export interface MealzInternalInterface {
75
75
  /**
76
76
  * Opens the recipe details by calling the `openRecipeDetails` method of the `recipesService`.
77
77
  */
78
- openDetails: (recipeId: string, guests: number, initialTabIndex: number, analyticsPath?: string, categoryId?: string) => void;
78
+ openDetails: (
79
+ recipeId: string,
80
+ guests: number,
81
+ initialTabIndex: number,
82
+ analyticsPath?: string,
83
+ plannerOrCategoryId?: boolean | string,
84
+ categoryId?: string
85
+ ) => void;
79
86
 
80
87
  /**
81
88
  * Updates or creates a recipe like entry.
82
89
  * If `recipeLikeId` is provided, it updates the existing like; otherwise, it creates a new one.
83
90
  * It also sets the `isPast` status and tracks the update event.
84
91
  */
85
- updateRecipeLike: (recipeLikeId: string, recipeId: string, isPast: boolean, path?: string) => void;
92
+ updateRecipeLike: (recipeLikeId: string, recipeId: string, isPast: boolean, path?: string, categoryId?: string) => void;
86
93
 
87
94
  /**
88
95
  * Gets the RecipeLike for the recipeId