@mobielnl/elements 0.13.12 → 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;
@@ -1698,7 +1709,6 @@ declare const profileSchema: z.ZodObject<{
1698
1709
  }, z.core.$strip>>>;
1699
1710
  birthdate: z.ZodOptional<z.ZodString>;
1700
1711
  customerSegment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1701
- customerSegmentUpdatedAt: z.ZodOptional<z.ZodString>;
1702
1712
  address: z.ZodOptional<z.ZodObject<{
1703
1713
  postcode: z.ZodString;
1704
1714
  number: z.ZodString;
@@ -2058,7 +2068,18 @@ export declare type PropositionSelectorProps = RequiredProps & {
2058
2068
  onPropositionKeyChange?: (propositionKey: string) => void;
2059
2069
  /** Callback function to handle profile changes */
2060
2070
  onProfileChange?: (profile: Partial<Profile>) => void;
2061
- /** 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
+ */
2062
2083
  addClickoutSearchParams?: (searchParams: URLSearchParams) => URLSearchParams;
2063
2084
  /** Callback function called when an error occurs */
2064
2085
  onError?: (error: Error) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobielnl/elements",
3
- "version": "0.13.12",
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",