gotrip-fx-transaction-form 1.0.281-dev → 1.0.284-dev

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gotrip-fx-transaction-form",
3
- "version": "1.0.281-dev",
3
+ "version": "1.0.284-dev",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -5,6 +5,7 @@ type InitProps = {
5
5
  apiKey: string;
6
6
  type?: ESdkFormType;
7
7
  scrollable?: boolean;
8
+ utm?: Record<string, string> | null;
8
9
  };
9
10
  interface GoTripSDKProps {
10
11
  init: (props: InitProps) => void;
@@ -1,8 +1,10 @@
1
1
  import { TrackingDto } from '../types/tracking.dto';
2
2
  export type TrackingState = {
3
3
  anonymousId: string | null;
4
+ utm: Record<string, string> | null;
4
5
  getAnonymousUid: () => string;
5
6
  getTrackingData: () => TrackingDto;
7
+ setUtm: (utm: Record<string, string> | null) => void;
6
8
  _saveAnonymousUid: (uid: string) => void;
7
9
  };
8
10
  export declare const useTrackingStore: import('zustand').UseBoundStore<import('zustand').StoreApi<TrackingState>>;
@@ -11,6 +11,8 @@ export interface TrackingDto {
11
11
  fbid?: string;
12
12
  /** Campaign identifier */
13
13
  campaign?: string;
14
+ /** UTM and ad network parameters (utm_source, utm_campaign, gclid, fbclid, ttclid, etc.) */
15
+ utm?: Record<string, string>;
14
16
  }
15
17
  /**
16
18
  * Type helper to extend any DTO with tracking fields
@@ -13,16 +13,6 @@ export declare const saveAnonymousUid: (uid: string) => void;
13
13
  * If not found, generates a new one and saves it
14
14
  */
15
15
  export declare const getAnonymousUid: () => string;
16
- /**
17
- * Parse tracking parameters from URL query string
18
- * Extracts gclid, fbid, campaign, etc. from URL
19
- */
20
- export declare const parseTrackingParamsFromUrl: () => {
21
- gclid?: string;
22
- fbid?: string;
23
- campaign?: string;
24
- [key: string]: string | undefined;
25
- };
26
16
  /**
27
17
  * Validate tracking data
28
18
  */