@mobielnl/elements 0.12.26 → 0.13.0
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/README.md +3 -1
- package/dist/elements.css +1 -1
- package/dist/elements.js +1 -1
- package/dist/elements.umd.cjs +68 -68
- package/dist/{index-YciEToXc.js → index-B11Hef2h.js} +1 -1
- package/dist/{index-C85ws3HF.js → index-uthJc1qy.js} +3905 -3850
- package/dist/index.d.ts +26 -25
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -1453,7 +1453,7 @@ declare type ProductHeaderClassNames = {
|
|
|
1453
1453
|
};
|
|
1454
1454
|
/** Stock status indicator – see ProductStockStatus */
|
|
1455
1455
|
productStockStatus?: NonNullable<MainImageClassNames['phoneImage']>['stockIndicator'];
|
|
1456
|
-
/** Wrapper container for the proposition header and promotion list */
|
|
1456
|
+
/** Wrapper container for the proposition header and promotion list and more bundle info link */
|
|
1457
1457
|
propositionHeaderPromotionListWrapper?: string;
|
|
1458
1458
|
/** Proposition header class styling slots */
|
|
1459
1459
|
propositionHeader?: PropositionHeaderClassNames;
|
|
@@ -1461,6 +1461,8 @@ declare type ProductHeaderClassNames = {
|
|
|
1461
1461
|
carousel?: CarouselClassNames;
|
|
1462
1462
|
/** PromotionList class styling slots (special promotions in header) - see type `PromotionListClassNames` */
|
|
1463
1463
|
promotionList?: PromotionListClassNames;
|
|
1464
|
+
/** More bundle info link class styling slots */
|
|
1465
|
+
moreBundleInfoLink?: string;
|
|
1464
1466
|
};
|
|
1465
1467
|
|
|
1466
1468
|
export declare function ProductResults({ classNames, initialSelectedFilters, initialProfile, onProfileChange, onError, onAction, ...props }: ProductResultsProps): JSX.Element;
|
|
@@ -1856,8 +1858,6 @@ export declare type PropositionSelectorClassNames = {
|
|
|
1856
1858
|
/** Alert class styling slots - see type `AlertClassNames`
|
|
1857
1859
|
* @note only visible for fixed propositions with the same fixed provider in profile */
|
|
1858
1860
|
sameFixedProviderAlert?: AlertClassNames;
|
|
1859
|
-
/** HandsetCreditSelector component class styling slots - see type `HandsetCreditSelectorClassNames` */
|
|
1860
|
-
handsetCreditSelector?: HandsetCreditSelectorClassNames;
|
|
1861
1861
|
/** ProductHeader class styling slots - see type `ProductHeaderClassNames` */
|
|
1862
1862
|
productHeader?: ProductHeaderClassNames;
|
|
1863
1863
|
/** StickySummary component class styling slots - see type `StickySummaryClassNames` */
|
|
@@ -1866,23 +1866,6 @@ export declare type PropositionSelectorClassNames = {
|
|
|
1866
1866
|
costOverview?: CostOverviewClassNames;
|
|
1867
1867
|
/** PromotionList component class styling slots (benefits section) - see type `PromotionListClassNames` */
|
|
1868
1868
|
promotionList?: PromotionListClassNames;
|
|
1869
|
-
/** PropositionSpecifications class styling slots (bundle info section) */
|
|
1870
|
-
propositionSpecifications?: {
|
|
1871
|
-
/** Base container for the bundle info section */
|
|
1872
|
-
base?: string;
|
|
1873
|
-
/** Title for the bundle info section */
|
|
1874
|
-
title?: string;
|
|
1875
|
-
/** Link for the bundle info section */
|
|
1876
|
-
link?: string;
|
|
1877
|
-
/** Wrapper container for the specifications */
|
|
1878
|
-
wrapper?: string;
|
|
1879
|
-
/** Specification item */
|
|
1880
|
-
item?: string;
|
|
1881
|
-
/** Specification icon */
|
|
1882
|
-
icon?: string;
|
|
1883
|
-
};
|
|
1884
|
-
/** VersionSelect component class styling slots (smartphone product version selector) - see type `VersionSelectClassNames` */
|
|
1885
|
-
versionSelect?: VersionSelectClassNames;
|
|
1886
1869
|
/** Extra costs section root container class */
|
|
1887
1870
|
extraCosts?: string;
|
|
1888
1871
|
/** Sidebar card containing the cost overview, CTA button and extra costs */
|
|
@@ -1908,10 +1891,28 @@ export declare type PropositionSelectorClassNames = {
|
|
|
1908
1891
|
};
|
|
1909
1892
|
/** BundleSelector component class styling slots - see type `BundleSelectorClassNames` */
|
|
1910
1893
|
bundleSelector?: BundleSelectorClassNames;
|
|
1894
|
+
/** VersionSelect component class styling slots (smartphone product version selector) - see type `VersionSelectClassNames`
|
|
1895
|
+
* @note only visible for smartphone propositions */
|
|
1896
|
+
versionSelect?: VersionSelectClassNames & {
|
|
1897
|
+
/** Section class styling slots - see type `SectionClassNames` */
|
|
1898
|
+
section?: SectionClassNames_2;
|
|
1899
|
+
};
|
|
1911
1900
|
/** Retention section class styling slots - see type `SectionClassNames` */
|
|
1912
|
-
retentionSelector?: SectionClassNames_2
|
|
1901
|
+
retentionSelector?: SectionClassNames_2 & {
|
|
1902
|
+
/** Radio group class styling slots - see type `RadioGroupClassNames` */
|
|
1903
|
+
radioGroup?: RadioGroupClassNames;
|
|
1904
|
+
};
|
|
1913
1905
|
/** Modification section class styling slots - see type `SectionClassNames` */
|
|
1914
|
-
modificationSelector?: SectionClassNames_2
|
|
1906
|
+
modificationSelector?: SectionClassNames_2 & {
|
|
1907
|
+
/** Radio group class styling slots - see type `RadioGroupClassNames` */
|
|
1908
|
+
radioGroup?: RadioGroupClassNames;
|
|
1909
|
+
};
|
|
1910
|
+
/** HandsetCreditSelector component class styling slots - see type `HandsetCreditSelectorClassNames`
|
|
1911
|
+
* @note only visible for smartphone propositions with handset credits */
|
|
1912
|
+
handsetCreditSelector?: HandsetCreditSelectorClassNames & {
|
|
1913
|
+
/** Section class styling slots - see type `SectionClassNames` */
|
|
1914
|
+
section?: SectionClassNames_2;
|
|
1915
|
+
};
|
|
1915
1916
|
/** BundleModal component class styling slots - see type `BundleModalClassNames` */
|
|
1916
1917
|
bundleModal?: BundleModalClassNames;
|
|
1917
1918
|
/** Profile buttons component class styling slots - see type `SelectorClassNames` */
|
|
@@ -1941,8 +1942,9 @@ export declare type PropositionSelectorProps = {
|
|
|
1941
1942
|
/** Initial user profile */
|
|
1942
1943
|
initialProfile?: Partial<Profile>;
|
|
1943
1944
|
/** Target for the click-out URL on mobiel.nl
|
|
1944
|
-
* @default
|
|
1945
|
-
|
|
1945
|
+
* @default "cart"
|
|
1946
|
+
* @note `"upsell"`: only smartphone propositions have upsell options, other propositions will redirect to the cart */
|
|
1947
|
+
clickOutTarget?: 'cart' | 'upsell' | 'checkout';
|
|
1946
1948
|
/** Custom ReactNode content below the CTA card component
|
|
1947
1949
|
*
|
|
1948
1950
|
* @note Desktop: Content will be displayed below the CTA card component in the sidebar/second column
|
|
@@ -2799,7 +2801,6 @@ export declare type Translations = {
|
|
|
2799
2801
|
sameFixedProviderDescription: string;
|
|
2800
2802
|
productVersionTitle: string;
|
|
2801
2803
|
benefitsTitle: string;
|
|
2802
|
-
bundleSelectorTitle: string;
|
|
2803
2804
|
moreBundleInfo: string;
|
|
2804
2805
|
totalCostsOverviewTitle: string;
|
|
2805
2806
|
cta: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mobielnl/elements",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Mobiel.nl Elements - React component library for partner websites",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -86,12 +86,14 @@
|
|
|
86
86
|
"@types/react": "^19.2.9",
|
|
87
87
|
"@types/react-dom": "^19.2.3",
|
|
88
88
|
"@vitejs/plugin-react-swc": "^4.0.0",
|
|
89
|
+
"@vitest/coverage-v8": "4.1.10",
|
|
89
90
|
"chromatic": "^13.3.5",
|
|
90
91
|
"cross-env": "^7.0.3",
|
|
91
92
|
"dotenv": "^17.4.2",
|
|
92
93
|
"globals": "^16.3.0",
|
|
93
94
|
"graphql": "^16.11.0",
|
|
94
95
|
"graphql-request": "^7.2.0",
|
|
96
|
+
"happy-dom": "^20.10.6",
|
|
95
97
|
"i18next": "^25.7.3",
|
|
96
98
|
"js-cookie": "^3.0.7",
|
|
97
99
|
"lodash": "^4.18.1",
|
|
@@ -110,7 +112,7 @@
|
|
|
110
112
|
"typescript": "~5.8.3",
|
|
111
113
|
"vite": "7.3.5",
|
|
112
114
|
"vite-plugin-dts": "^4.5.0",
|
|
113
|
-
"vitest": "
|
|
115
|
+
"vitest": "4.1.10",
|
|
114
116
|
"zod": "^4.1.12"
|
|
115
117
|
},
|
|
116
118
|
"msw": {
|