gotrip-fx-transaction-form 1.0.283-dev → 1.0.285-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.283-dev",
3
+ "version": "1.0.285-dev",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -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>>;
@@ -118,4 +118,5 @@ export interface InsuranceTransaction {
118
118
  updatedAt: string;
119
119
  quote?: InsuranceQuote;
120
120
  policyInsureds?: PolicyInsured[];
121
+ utm?: Record<string, string>;
121
122
  }
@@ -13,24 +13,7 @@ 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 UTM and ad network parameters from URL query string
18
- * Extracts all UTM params (utm_source, utm_campaign, etc.) and ad network params (gclid, fbclid, ttclid, etc.)
19
- */
20
- export declare const parseUTMParamsFromUrl: () => Record<string, string>;
21
16
  /**
22
17
  * Validate tracking data
23
18
  */
24
19
  export declare const validateTrackingData: (data: any) => boolean;
25
- /**
26
- * Capture UTM and ad network parameters into a 7-day cookie
27
- * If params are explicitly provided, use them; otherwise read from URL params
28
- * Always overrides existing params (last-click wins)
29
- * Expires in 7 days
30
- */
31
- export declare const captureUTMParams: (explicitParams?: Record<string, string> | null) => void;
32
- /**
33
- * Get UTM and ad network parameters from cookie
34
- * Returns empty object if not found or expired
35
- */
36
- export declare const getUTMParams: () => Record<string, string>;