@mobielnl/elements 0.13.6 → 0.13.8

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/dist/index.d.ts CHANGED
@@ -707,17 +707,18 @@ declare type GeneralClassNames = {
707
707
  } & SectionClassNames;
708
708
 
709
709
  export declare type GiftConfig = {
710
- /** Initial bundle set unit key used to find an available fixed proposition
711
- * @example '1636-11788' */
712
- initialBundleSetUnitKey: string;
713
- /** Optional fixed provider slug to narrow the gift proposition search to only one fixed provider
710
+ /** Optional gift bundle set unit key used to find the most popular available fixed proposition that includes this gift
711
+ * @example '1636-11788'
712
+ * @note When omitted, the most popular available fixed proposition at the address is used */
713
+ initialBundleSetUnitKey?: string;
714
+ /** Optional fixed provider slug to narrow the proposition search to only one fixed provider
714
715
  * @example 'odido' */
715
716
  fixedProviderSlug?: FixedProviderSlug;
716
717
  /** Locks customer benefit (klantvoordeel) to a single mobile provider. Skips the CombiDeal modal and
717
718
  * mobile provider picker. Yes/No only asks whether the visitor is already a mobile customer of this provider.
718
719
  * @example 'odido' */
719
720
  mobileProviderSlug?: MobileProviderSlug;
720
- /** Custom ReactNode content shown when no matching fixed proposition is found for the `initialBundleSetUnitKey` and address
721
+ /** Custom ReactNode content shown when no matching fixed proposition is found
721
722
  * @note This will override the default not found state */
722
723
  notFoundState?: ReactNode;
723
724
  };
@@ -1741,6 +1742,25 @@ declare type PromotionListClassNames = {
1741
1742
  /** The content slot of the chip, it is the container of the text */
1742
1743
  content?: string;
1743
1744
  };
1745
+ /** Class names for styling the promotion modal */
1746
+ modal?: {
1747
+ /** The backdrop slot, it is displayed behind the modal */
1748
+ backdrop?: string;
1749
+ /** The wrapper slot of the modal. It wraps the base and the backdrop slots */
1750
+ wrapper?: string;
1751
+ /** The main slot of the modal content */
1752
+ base?: string;
1753
+ /** The header of the modal, it is displayed at the top of the modal */
1754
+ header?: string;
1755
+ /** The body of the modal, it is displayed in the middle of the modal */
1756
+ body?: string;
1757
+ /** The footer of the modal, it is displayed at the bottom of the modal */
1758
+ footer?: string;
1759
+ /** The close button (X) of the modal in top-right corner */
1760
+ closeButton?: string;
1761
+ /** The primary button of the modal, it is displayed at the bottom of the modal */
1762
+ primaryButton?: string;
1763
+ };
1744
1764
  };
1745
1765
 
1746
1766
  /**
@@ -1892,7 +1912,7 @@ export declare type PropositionSelectorClassNames = {
1892
1912
  * @note only visible for fixed propositions with the same fixed provider in profile */
1893
1913
  sameFixedProviderAlert?: AlertClassNames;
1894
1914
  /** Alert class styling slots - see type `AlertClassNames`
1895
- * @note only visible when `giftConfig.initialBundleSetUnitKey` prop returns no matching fixed proposition for the address */
1915
+ * @note only visible when a `giftConfig` search returns no matching fixed proposition */
1896
1916
  noMatchingPropositionAlert?: AlertClassNames;
1897
1917
  /** ProductHeader class styling slots - see type `ProductHeaderClassNames` */
1898
1918
  productHeader?: ProductHeaderClassNames;
@@ -2251,12 +2271,14 @@ declare type RadioGroupClassNames = {
2251
2271
  declare type RequiredProps = {
2252
2272
  /** Initial proposition key
2253
2273
  * @example '1412-10116|1413-10646|plv-398'
2254
- * @note Required unless `giftConfig` is provided with a valid address in `initialProfile` */
2274
+ * @note Required unless `giftConfig` is provided */
2255
2275
  propositionKey: string;
2256
2276
  giftConfig?: never;
2257
2277
  } | {
2258
2278
  propositionKey?: never;
2259
- /** Configuration for pre-selected gift bundle set unit key and provider used to find an available fixed proposition
2279
+ /** Configuration used to find the most popular available fixed proposition.
2280
+ * Optionally include a gift unit key and/or an address in `initialProfile`.
2281
+ * Without an address, the Mobiel.nl service point (2266AD / 22) is used for the search for normal proposition results.
2260
2282
  * @note Cannot be used together with `propositionKey` prop. Only applicable for fixed propositions */
2261
2283
  giftConfig: GiftConfig;
2262
2284
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobielnl/elements",
3
- "version": "0.13.6",
3
+ "version": "0.13.8",
4
4
  "description": "Mobiel.nl Elements - React component library for partner websites",
5
5
  "private": false,
6
6
  "type": "module",