webc-miam 10.4.0 → 10.5.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.
@@ -1,6 +1,6 @@
1
1
  import { PlausibleProps } from 'mealz-shared-analytics';
2
2
  import { DocumentCollection } from 'miam-jsonapi';
3
- import { BehaviorSubject, Observable } from 'rxjs';
3
+ import { BehaviorSubject, Observable, ReplaySubject } from 'rxjs';
4
4
  import { Basket, BasketEntry, Ingredient, Item, Menu, MenuRecipe, PointOfSale, Recipe, RecipeLike, SponsorBlock, Supplier } from '../../_models';
5
5
  import { RecipePricing } from '../../_models/recipe-pricing';
6
6
  import { Tag } from '../../_models/tag';
@@ -279,7 +279,14 @@ export interface MealzInternalInterface {
279
279
  /**
280
280
  * Opens the recipe details by calling the `openRecipeDetails` method of the `recipesService`.
281
281
  */
282
- openDetails: (recipeId: string, guests: number, initialTabIndex?: number, analyticsPath?: string, categoryId?: string) => void;
282
+ openDetails: (
283
+ recipeId: string,
284
+ guests: number,
285
+ initialTabIndex?: number,
286
+ analyticsPath?: string,
287
+ plannerOrCategoryId?: boolean | string,
288
+ categoryId?: string
289
+ ) => void;
283
290
 
284
291
  /**
285
292
  * Loads and setups a recipe
@@ -391,7 +398,7 @@ export interface MealzInternalInterface {
391
398
  * If `recipeLikeId` is provided, it updates the existing like; otherwise, it creates a new one.
392
399
  * It also sets the `isPast` status and tracks the update event.
393
400
  */
394
- updateRecipeLike: (recipeLikeId: string, recipeId: string, isPast: boolean, path?: string) => void;
401
+ updateRecipeLike: (recipeLikeId: string, recipeId: string, isPast: boolean, path?: string, categoryId?: string) => void;
395
402
 
396
403
  /**
397
404
  * Emits an observable that notifies subscribers when a recipe like has been updated.
@@ -568,6 +575,11 @@ export interface MealzInternalInterface {
568
575
  * Retrieves if the retailer is not a supplier
569
576
  */
570
577
  isNoSupplier: () => boolean;
578
+
579
+ /**
580
+ * Emits once the no-supplier mode has been resolved from `setupWithToken`.
581
+ */
582
+ noSupplier$: ReplaySubject<boolean>;
571
583
  };
572
584
 
573
585
  // ---------------------------------------------------------------------------------------------------
@@ -659,7 +671,7 @@ export interface MealzInternalInterface {
659
671
  /**
660
672
  * method that returns Like button HTML from SSR
661
673
  */
662
- like: (recipeId: string) => Observable<string>;
674
+ like: (recipeId: string, path?: string, categoryId?: string) => Observable<string>;
663
675
  };
664
676
 
665
677
  getStickyHeaderHeight: () => Observable<number>;