@mobielnl/elements 0.13.5 → 0.13.6

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-CrTnLElc.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-C93P8_P-.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
@@ -699,6 +699,8 @@ export declare type FixedBlock = {
699
699
  };
700
700
  };
701
701
 
702
+ export declare type FixedProviderSlug = Extract<ProviderSlug, 'kpn' | 'ziggo' | 'odido' | 'delta' | 'budget' | 'youfone'>;
703
+
702
704
  declare type GeneralClassNames = {
703
705
  /** The base slot of the general section, it is the container of the general section */
704
706
  base?: string;
@@ -708,9 +710,13 @@ export declare type GiftConfig = {
708
710
  /** Initial bundle set unit key used to find an available fixed proposition
709
711
  * @example '1636-11788' */
710
712
  initialBundleSetUnitKey: string;
711
- /** Optional fixed provider slug to narrow the gift proposition search
713
+ /** Optional fixed provider slug to narrow the gift proposition search to only one fixed provider
714
+ * @example 'odido' */
715
+ fixedProviderSlug?: FixedProviderSlug;
716
+ /** Locks customer benefit (klantvoordeel) to a single mobile provider. Skips the CombiDeal modal and
717
+ * mobile provider picker. Yes/No only asks whether the visitor is already a mobile customer of this provider.
712
718
  * @example 'odido' */
713
- fixedProviderSlug?: string;
719
+ mobileProviderSlug?: MobileProviderSlug;
714
720
  /** Custom ReactNode content shown when no matching fixed proposition is found for the `initialBundleSetUnitKey` and address
715
721
  * @note This will override the default not found state */
716
722
  notFoundState?: ReactNode;
@@ -827,6 +833,8 @@ declare type MainImageClassNames = {
827
833
  };
828
834
  };
829
835
 
836
+ export declare type MobileProviderSlug = Extract<ProviderSlug, 'odido' | 'vodafone' | 'kpn' | 'hollandsnieuwe' | 'ben' | 'simyo' | 'budget' | 'youfone' | 'delta'>;
837
+
830
838
  declare type ModalClassNames = {
831
839
  /** The backdrop slot, it is displayed behind the modal */
832
840
  backdrop?: string;
@@ -2132,6 +2140,8 @@ declare type PropositionSelectorQuery = {
2132
2140
  } | null;
2133
2141
  };
2134
2142
 
2143
+ export declare type ProviderName = Providers[ProviderSlug];
2144
+
2135
2145
  export declare type ProviderOption = {
2136
2146
  slug: string;
2137
2147
  name: string;
@@ -2139,7 +2149,29 @@ export declare type ProviderOption = {
2139
2149
  Icon?: ElementType;
2140
2150
  };
2141
2151
 
2142
- export declare const PROVIDERS: Record<string, string>;
2152
+ export declare const PROVIDERS: {
2153
+ readonly odido: "Odido";
2154
+ readonly kpn: "KPN";
2155
+ readonly vodafone: "Vodafone";
2156
+ readonly ben: "Ben";
2157
+ readonly hollandsnieuwe: "hollandsnieuwe";
2158
+ readonly lebara: "Lebara";
2159
+ readonly youfone: "Youfone";
2160
+ readonly simyo: "Simyo";
2161
+ readonly delta: "Delta";
2162
+ readonly caiway: "Caiway";
2163
+ readonly budget: "Budget Mobiel";
2164
+ readonly 'budget-alles-in-1': "Budget Alles-in-1";
2165
+ readonly 'budget-internet': "Budget Internet";
2166
+ readonly '50plusmobiel': "50+ Mobiel";
2167
+ readonly ziggo: "Ziggo";
2168
+ readonly other: "Andere / geen provider";
2169
+ readonly 'other/moving': "Geen i.v.m. verhuizing";
2170
+ };
2171
+
2172
+ declare type Providers = typeof PROVIDERS;
2173
+
2174
+ export declare type ProviderSlug = keyof Providers;
2143
2175
 
2144
2176
  /**
2145
2177
  * ClassNames for styling different parts of the `RadioFilter` component
@@ -2871,6 +2903,7 @@ export declare type Translations = {
2871
2903
  modificationTitle: string;
2872
2904
  modificationDescription: string;
2873
2905
  modificationFixedDescription: string;
2906
+ modificationLockedDescription: string;
2874
2907
  modificationYes: string;
2875
2908
  modificationNo: string;
2876
2909
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobielnl/elements",
3
- "version": "0.13.5",
3
+ "version": "0.13.6",
4
4
  "description": "Mobiel.nl Elements - React component library for partner websites",
5
5
  "private": false,
6
6
  "type": "module",