@mobielnl/elements 0.13.13 → 0.13.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/index.d.ts CHANGED
@@ -1577,7 +1577,18 @@ export declare type ProductResultsProps = {
1577
1577
  initialProfile?: Partial<Profile>;
1578
1578
  /** Callback function to handle profile changes */
1579
1579
  onProfileChange?: (profile: Partial<Profile>) => void;
1580
- /** Callback function to add search params for the click-out URL */
1580
+ /** Callback function to add search params for the click-out URL
1581
+ *
1582
+ * @note Add additional unsupported fields as a stringified JSON object to the `partner_metadata` search param.
1583
+ * @example
1584
+ * addClickoutSearchParams={searchParams => {
1585
+ * searchParams.set('partner_metadata', JSON.stringify({
1586
+ * click_id: '123',
1587
+ * affiliate_id: '456',
1588
+ * }))
1589
+ * return searchParams
1590
+ * }}
1591
+ */
1581
1592
  addClickoutSearchParams?: (searchParams: URLSearchParams) => URLSearchParams;
1582
1593
  /** Callback function called when an error occurs */
1583
1594
  onError?: (error: Error) => void;
@@ -1644,17 +1655,11 @@ export declare type ProductResultsProps = {
1644
1655
 
1645
1656
  /** Product version lifecycle status */
1646
1657
  declare enum ProductVersionStatusEnum {
1647
- /** Product version is available and active. */
1648
1658
  Available = "AVAILABLE",
1649
- /** Not used by the product service. */
1650
1659
  AvailableIfStock = "AVAILABLE_IF_STOCK",
1651
- /** Product version is being prepared and is not yet active. */
1652
1660
  Preparing = "PREPARING",
1653
- /** Product version is announced (pre-release) and active. */
1654
1661
  Prerelease = "PRERELEASE",
1655
- /** Product version is terminated (end of life) and inactive. */
1656
1662
  Terminated = "TERMINATED",
1657
- /** Product version is retired and inactive. */
1658
1663
  Unavailable = "UNAVAILABLE"
1659
1664
  }
1660
1665
 
@@ -2063,7 +2068,18 @@ export declare type PropositionSelectorProps = RequiredProps & {
2063
2068
  onPropositionKeyChange?: (propositionKey: string) => void;
2064
2069
  /** Callback function to handle profile changes */
2065
2070
  onProfileChange?: (profile: Partial<Profile>) => void;
2066
- /** Callback function to add search params for the click-out URL */
2071
+ /** Callback function to add search params for the click-out URL
2072
+ *
2073
+ * @note Add additional unsupported fields as a stringified JSON object to the `partner_metadata` search param.
2074
+ * @example
2075
+ * addClickoutSearchParams={searchParams => {
2076
+ * searchParams.set('partner_metadata', JSON.stringify({
2077
+ * click_id: '123',
2078
+ * affiliate_id: '456',
2079
+ * }))
2080
+ * return searchParams
2081
+ * }}
2082
+ */
2067
2083
  addClickoutSearchParams?: (searchParams: URLSearchParams) => URLSearchParams;
2068
2084
  /** Callback function called when an error occurs */
2069
2085
  onError?: (error: Error) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobielnl/elements",
3
- "version": "0.13.13",
3
+ "version": "0.13.14",
4
4
  "description": "Mobiel.nl Elements - React component library for partner websites",
5
5
  "private": false,
6
6
  "type": "module",