@mobielnl/elements 0.13.15 → 0.13.17

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,5 +1,5 @@
1
1
  "use client";
2
- import { n as ne, i as Ot, a as z, m as ie, r as $e, h as je, b as Ft, w as se, c as Te, d as Ce, e as qe, f as de, g as De, t as L, j as Rt, k as H, l as E, o as $, p as Kt, s as R, v as Lt, M as j, W as ze, q as xe, N as Et, u as Bt, x as Gt, y as Nt, z as Ht, K as Xe, A as _t, B as Ae, C as Wt, D as Ut, E as $t, F as jt, G as Ye, H as qt, I as zt, J as Xt, L as Pe, O as ke, P as Y, Q as Ie, R as Yt, V as Zt, S as Jt, T as Qt, U as en, X as tn, Y as nn, Z as Ze, _ as sn, $ as rn, a0 as on, a1 as an, a2 as cn, a3 as Je, a4 as Qe, a5 as et, a6 as tt, a7 as ln } from "./index-DKF70IHZ.js";
2
+ import { n as ne, i as Ot, a as z, m as ie, r as $e, h as je, b as Ft, w as se, c as Te, d as Ce, e as qe, f as de, g as De, t as L, j as Rt, k as H, l as E, o as $, p as Kt, s as R, v as Lt, M as j, W as ze, q as xe, N as Et, u as Bt, x as Gt, y as Nt, z as Ht, K as Xe, A as _t, B as Ae, C as Wt, D as Ut, E as $t, F as jt, G as Ye, H as qt, I as zt, J as Xt, L as Pe, O as ke, P as Y, Q as Ie, R as Yt, V as Zt, S as Jt, T as Qt, U as en, X as tn, Y as nn, Z as Ze, _ as sn, $ as rn, a0 as on, a1 as an, a2 as cn, a3 as Je, a4 as Qe, a5 as et, a6 as tt, a7 as ln } from "./index-BD-rBtRq.js";
3
3
  import { Fragment as un } from "react";
4
4
  var It = typeof globalThis < "u" && globalThis.process ? globalThis.process : { env: { NODE_ENV: "production" } };
5
5
  const re = (...t) => t.reduce((e, n) => (i) => n(e(i))), nt = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
package/dist/index.d.ts CHANGED
@@ -718,6 +718,10 @@ export declare type GiftConfig = {
718
718
  * mobile provider picker. Yes/No only asks whether the visitor is already a mobile customer of this provider.
719
719
  * @example 'odido' */
720
720
  mobileProviderSlug?: MobileProviderSlug;
721
+ /** Modification block scopes that always apply to this inflow, on top of the blocks from the profile.
722
+ * They are not stored in the profile, so they only apply within this `PropositionSelector`
723
+ * @example ['segment/odido/odidocadeau'] */
724
+ modificationBlocks?: string[];
721
725
  /** Custom ReactNode content shown when no matching fixed proposition is found
722
726
  * @note This will override the default not found state */
723
727
  notFoundState?: ReactNode;
@@ -1655,11 +1659,17 @@ export declare type ProductResultsProps = {
1655
1659
 
1656
1660
  /** Product version lifecycle status */
1657
1661
  declare enum ProductVersionStatusEnum {
1662
+ /** Product version is available and active. */
1658
1663
  Available = "AVAILABLE",
1664
+ /** Not used by the product service. */
1659
1665
  AvailableIfStock = "AVAILABLE_IF_STOCK",
1666
+ /** Product version is being prepared and is not yet active. */
1660
1667
  Preparing = "PREPARING",
1668
+ /** Product version is announced (pre-release) and active. */
1661
1669
  Prerelease = "PRERELEASE",
1670
+ /** Product version is terminated (end of life) and inactive. */
1662
1671
  Terminated = "TERMINATED",
1672
+ /** Product version is retired and inactive. */
1663
1673
  Unavailable = "UNAVAILABLE"
1664
1674
  }
1665
1675
 
@@ -2006,6 +2016,19 @@ export declare type PropositionSelectorClassNames = {
2006
2016
  };
2007
2017
  };
2008
2018
 
2019
+ export declare type PropositionSelectorContentSlots = {
2020
+ sidebarCard?: {
2021
+ /** Custom content below the CTA card in the sidebar (desktop) or at the bottom (mobile). */
2022
+ after?: ReactNode;
2023
+ ctaButton?: {
2024
+ /** Custom content directly before the main order button, outside its clickable area. */
2025
+ before?: ReactNode;
2026
+ /** Custom content directly after the main order button, outside its clickable area. */
2027
+ after?: ReactNode;
2028
+ };
2029
+ };
2030
+ };
2031
+
2009
2032
  export declare type PropositionSelectorFilters = {
2010
2033
  /** Allowed contract terms in months. Omitted = all terms from the API.
2011
2034
  * @example [24] */
@@ -2035,13 +2058,18 @@ export declare type PropositionSelectorProps = RequiredProps & {
2035
2058
  clickOutTarget?: 'cart' | 'upsell' | 'checkout';
2036
2059
  /** Custom loading UI ReactNode content shown during postcode check, proposition search and data fetch */
2037
2060
  loadingState?: ReactNode;
2038
- /** Custom ReactNode content below the CTA card component
2061
+ /**
2062
+ * Custom ReactNode content below the CTA card component.
2063
+ *
2064
+ * @deprecated Use `contentSlots.sidebarCard.after` instead. Will be removed in version 0.14.0.
2039
2065
  *
2040
2066
  * @note Desktop: Content will be displayed below the CTA card component in the sidebar/second column
2041
2067
  * @note Mobile: Content will be displayed below the CTA card component at the bottom of the screen
2042
2068
  * @default null
2043
2069
  */
2044
2070
  contentBelowCTA?: ReactNode;
2071
+ /** Optional custom content around the main order button and CTA card. */
2072
+ contentSlots?: PropositionSelectorContentSlots;
2045
2073
  /** Boolean to hide number retention question when profile if filled. Does not apply to fixed propositions */
2046
2074
  hideRetentionOnFilledProfile?: boolean;
2047
2075
  /**
@@ -2179,6 +2207,7 @@ declare type PropositionSelectorQuery = {
2179
2207
  unitKey: string;
2180
2208
  name: string;
2181
2209
  label: string;
2210
+ tooltipText?: string | null;
2182
2211
  usps: Array<string>;
2183
2212
  requiredBundleTypeSetId?: string | null;
2184
2213
  requiredModificationGroupId?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobielnl/elements",
3
- "version": "0.13.15",
3
+ "version": "0.13.17",
4
4
  "description": "Mobiel.nl Elements - React component library for partner websites",
5
5
  "private": false,
6
6
  "type": "module",