@mobielnl/elements 0.13.7 → 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
  };
@@ -1911,7 +1912,7 @@ export declare type PropositionSelectorClassNames = {
1911
1912
  * @note only visible for fixed propositions with the same fixed provider in profile */
1912
1913
  sameFixedProviderAlert?: AlertClassNames;
1913
1914
  /** Alert class styling slots - see type `AlertClassNames`
1914
- * @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 */
1915
1916
  noMatchingPropositionAlert?: AlertClassNames;
1916
1917
  /** ProductHeader class styling slots - see type `ProductHeaderClassNames` */
1917
1918
  productHeader?: ProductHeaderClassNames;
@@ -2270,12 +2271,14 @@ declare type RadioGroupClassNames = {
2270
2271
  declare type RequiredProps = {
2271
2272
  /** Initial proposition key
2272
2273
  * @example '1412-10116|1413-10646|plv-398'
2273
- * @note Required unless `giftConfig` is provided with a valid address in `initialProfile` */
2274
+ * @note Required unless `giftConfig` is provided */
2274
2275
  propositionKey: string;
2275
2276
  giftConfig?: never;
2276
2277
  } | {
2277
2278
  propositionKey?: never;
2278
- /** 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.
2279
2282
  * @note Cannot be used together with `propositionKey` prop. Only applicable for fixed propositions */
2280
2283
  giftConfig: GiftConfig;
2281
2284
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobielnl/elements",
3
- "version": "0.13.7",
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",