webc-miam 10.8.0 → 10.10.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.
@@ -182,6 +182,12 @@ export interface MealzInterface {
182
182
  * @deprecated Not used anymore
183
183
  */
184
184
  collapseUnavailableProductsByDefault: () => void;
185
+
186
+ /**
187
+ * Enable or disable the advertising disclosure modal opened by clicking the "Sponsorisé" badge on product cards.
188
+ * Defaults to disabled; call with `true` for retailers who must display this interaction.
189
+ */
190
+ enableSponsoredBadgeModal: (enabled: boolean) => void;
185
191
  };
186
192
 
187
193
  // ---------------------------------------------------------------------------------------------------
@@ -127,6 +127,10 @@ export interface MealzInternalInterface {
127
127
 
128
128
  config: {
129
129
  logLevel: Observable<string>;
130
+ /**
131
+ * Emits whether the sponsored badge opens the advertising disclosure modal (set by `features.enableSponsoredBadgeModal`)
132
+ */
133
+ sponsoredBadgeModalEnabled$: BehaviorSubject<boolean>;
130
134
  };
131
135
 
132
136
  // ---------------------------------------------------------------------------------------------------