@mobielnl/elements 0.13.9 → 0.13.10

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
@@ -1883,7 +1883,7 @@ declare type PropositionOverviewClassNames = {
1883
1883
  creditInfo?: CreditInfoClassNames_2;
1884
1884
  };
1885
1885
 
1886
- export declare function PropositionSelector({ propositionKey, giftConfig, classNames, initialProfile, onProfileChange, onPropositionKeyChange, onError, onAction, ...props }: PropositionSelectorProps): JSX.Element;
1886
+ export declare function PropositionSelector({ propositionKey, giftConfig, classNames, initialProfile, onProfileChange, onPropositionKeyChange, onError, onAction, filters, ...props }: PropositionSelectorProps): JSX.Element;
1887
1887
 
1888
1888
  /**
1889
1889
  * ClassNames for styling different parts of the `PropositionSelector` component
@@ -1996,6 +1996,24 @@ export declare type PropositionSelectorClassNames = {
1996
1996
  };
1997
1997
  };
1998
1998
 
1999
+ export declare type PropositionSelectorFilters = {
2000
+ /** Allowed contract terms in months. Omitted = all terms from the API.
2001
+ * @example [24] */
2002
+ contractTerms?: number[];
2003
+ /**
2004
+ * Minimum download speed in Mbit/s for fixed internet options.
2005
+ * @example { min: 400 }
2006
+ */
2007
+ fixedInternetDataSpeedDown?: {
2008
+ min: number;
2009
+ };
2010
+ /**
2011
+ * Hide bundle options by exact `name` or `label`.
2012
+ * @example ['Eerste maanden korting']
2013
+ */
2014
+ hiddenBundleSets?: string[];
2015
+ };
2016
+
1999
2017
  export declare type PropositionSelectorProps = RequiredProps & {
2000
2018
  /** Class slots for styling */
2001
2019
  classNames?: PropositionSelectorClassNames;
@@ -2025,6 +2043,17 @@ export declare type PropositionSelectorProps = RequiredProps & {
2025
2043
  *
2026
2044
  * @example collapsibleBundleTypeSets={['Kies je welkomstcadeau']} */
2027
2045
  collapsibleBundleTypeSets?: string[];
2046
+ /**
2047
+ * Restrict which contract terms, internet speeds, and bundle options are offered in the selector.
2048
+ *
2049
+ * @example
2050
+ * filters={{
2051
+ * contractTerms: [24],
2052
+ * fixedInternetDataSpeedDown: { min: 400 },
2053
+ * hiddenBundleSets: ['Eerste maanden korting'],
2054
+ * }}
2055
+ */
2056
+ filters?: PropositionSelectorFilters;
2028
2057
  /** Callback function to handle proposition key changes */
2029
2058
  onPropositionKeyChange?: (propositionKey: string) => void;
2030
2059
  /** Callback function to handle profile changes */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobielnl/elements",
3
- "version": "0.13.9",
3
+ "version": "0.13.10",
4
4
  "description": "Mobiel.nl Elements - React component library for partner websites",
5
5
  "private": false,
6
6
  "type": "module",