@mobielnl/elements 0.12.12 → 0.12.14
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/elements.css +1 -1
- package/dist/elements.js +1 -1
- package/dist/elements.umd.cjs +137 -143
- package/dist/{index-BissEopX.js → index-BUS4DTzJ.js} +2 -2
- package/dist/{index-DiP60P_K.js → index-CY7WBx-7.js} +11518 -11290
- package/dist/index.d.ts +15 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -937,6 +937,13 @@ declare type NumberPreservationModalClassNames = {
|
|
|
937
937
|
/** Radio styling */
|
|
938
938
|
radio?: string;
|
|
939
939
|
};
|
|
940
|
+
/** Extra benefit section */
|
|
941
|
+
extraBenefit?: {
|
|
942
|
+
/** Extra benefit title styling */
|
|
943
|
+
title?: string;
|
|
944
|
+
/** Extra benefit description styling */
|
|
945
|
+
description?: string;
|
|
946
|
+
};
|
|
940
947
|
/** Submit button styling */
|
|
941
948
|
submitButton?: string;
|
|
942
949
|
};
|
|
@@ -1599,7 +1606,9 @@ declare const profileSchema: z.ZodObject<{
|
|
|
1599
1606
|
scope: z.ZodString;
|
|
1600
1607
|
value: z.ZodString;
|
|
1601
1608
|
}, z.core.$strip>>>;
|
|
1609
|
+
birthdate: z.ZodOptional<z.ZodString>;
|
|
1602
1610
|
customerSegment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1611
|
+
customerSegmentUpdatedAt: z.ZodOptional<z.ZodString>;
|
|
1603
1612
|
address: z.ZodOptional<z.ZodObject<{
|
|
1604
1613
|
postcode: z.ZodString;
|
|
1605
1614
|
number: z.ZodString;
|
|
@@ -1765,7 +1774,7 @@ declare type PropositionOverviewClassNames = {
|
|
|
1765
1774
|
creditInfo?: CreditInfoClassNames_2;
|
|
1766
1775
|
};
|
|
1767
1776
|
|
|
1768
|
-
export declare function PropositionSelector({ propositionKey, classNames, initialProfile, onProfileChange, onError, onAction, ...props }: PropositionSelectorProps): JSX.Element;
|
|
1777
|
+
export declare function PropositionSelector({ propositionKey, classNames, initialProfile, onProfileChange, onPropositionKeyChange, onError, onAction, ...props }: PropositionSelectorProps): JSX.Element;
|
|
1769
1778
|
|
|
1770
1779
|
/**
|
|
1771
1780
|
* ClassNames for styling different parts of the `PropositionSelector` component
|
|
@@ -1836,6 +1845,8 @@ export declare type PropositionSelectorProps = {
|
|
|
1836
1845
|
/** Target for the click-out URL on mobiel.nl
|
|
1837
1846
|
* @default 'cart' */
|
|
1838
1847
|
clickOutTarget?: 'cart' | 'checkout';
|
|
1848
|
+
/** Callback function to handle proposition key changes */
|
|
1849
|
+
onPropositionKeyChange?: (propositionKey: string) => void;
|
|
1839
1850
|
/** Callback function to handle profile changes */
|
|
1840
1851
|
onProfileChange?: (profile: Partial<Profile>) => void;
|
|
1841
1852
|
/** Callback function to add search params for the click-out URL */
|
|
@@ -2238,6 +2249,9 @@ export declare type Translations = {
|
|
|
2238
2249
|
question: string;
|
|
2239
2250
|
yes: string;
|
|
2240
2251
|
no: string;
|
|
2252
|
+
invalidBirthdate: string;
|
|
2253
|
+
extraBenefitTitle: string;
|
|
2254
|
+
extraBenefitDescription: string;
|
|
2241
2255
|
};
|
|
2242
2256
|
combiDeal: {
|
|
2243
2257
|
title: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mobielnl/elements",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.14",
|
|
4
4
|
"description": "Mobiel.nl Elements - React component library for partner websites",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@testing-library/react": "^16.3.1",
|
|
80
80
|
"@types/jest": "^30.0.0",
|
|
81
81
|
"@types/js-cookie": "^3.0.6",
|
|
82
|
-
"@types/lodash": "^4.17.
|
|
82
|
+
"@types/lodash": "^4.17.24",
|
|
83
83
|
"@types/node": "^22.13.1",
|
|
84
84
|
"@types/postcss-prefix-selector": "^1.16.3",
|
|
85
85
|
"@types/react": "^19.2.9",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"graphql-request": "^7.2.0",
|
|
93
93
|
"i18next": "^25.7.3",
|
|
94
94
|
"js-cookie": "^3.0.5",
|
|
95
|
-
"lodash": "^4.
|
|
95
|
+
"lodash": "^4.18.1",
|
|
96
96
|
"msw": "^2.12.7",
|
|
97
97
|
"msw-storybook-addon": "^2.0.6",
|
|
98
98
|
"postcss-prefix-selector": "^2.1.1",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"swr": "^2.3.2",
|
|
106
106
|
"tailwindcss": "^4.1.18",
|
|
107
107
|
"typescript": "~5.8.3",
|
|
108
|
-
"vite": "7.
|
|
108
|
+
"vite": "7.3.2",
|
|
109
109
|
"vite-plugin-dts": "^4.5.0",
|
|
110
110
|
"vitest": "^3.2.4",
|
|
111
111
|
"zod": "^4.1.12"
|