@aranova/tracking-react 1.2.1 → 1.2.3

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/client.d.mts CHANGED
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ReactNode, CSSProperties, InputHTMLAttributes, ChangeEvent, FocusEvent } from 'react';
3
3
  import { G as GtagEnvironmentMap, M as MetaPixelEnvironmentMap, h as ConsentState, f as ConsentChoiceState, g as ConsentSource, T as TrackingParams, b as TrackingEnvironment, k as PhoneConfig, P as ParsedPhone, l as PhoneDisplayFormat } from './phone-utils-C0ds6cqZ.mjs';
4
4
  import { T as TrackingConfigReference, C as ConversionConfig } from './tracking-config-runtime-C6H7ofmo.mjs';
5
- import { V as TriggerRegistryConfig, X as TypedTrackingClient } from './ingest-typed-UA13xTfI.mjs';
5
+ import { X as TriggerRegistryConfig, Z as TypedTrackingClient } from './ingest-typed-CCjpmxzo.mjs';
6
6
  import { CountryCode } from 'libphonenumber-js';
7
7
  import 'zod/mini';
8
8
  import 'src';
@@ -236,9 +236,9 @@ interface CreateTrackingOptions<TRegistry extends TriggerRegistryConfig> {
236
236
  */
237
237
  environment?: TrackingEnvironment;
238
238
  /**
239
- * When true, the typed client validates every `trackEvent()` metadata
240
- * payload through the Zod schema before forwarding. Errors are thrown
241
- * loudly. Leave off in prod; turn on in dev to catch shape bugs early.
239
+ * When true, `trackEvent()` metadata that fails its Zod schema throws. When
240
+ * off, the invalid event is dropped with a console warning. Turn on in dev
241
+ * to catch shape bugs early.
242
242
  */
243
243
  debug?: boolean;
244
244
  /**
package/dist/client.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ReactNode, CSSProperties, InputHTMLAttributes, ChangeEvent, FocusEvent } from 'react';
3
3
  import { G as GtagEnvironmentMap, M as MetaPixelEnvironmentMap, h as ConsentState, f as ConsentChoiceState, g as ConsentSource, T as TrackingParams, b as TrackingEnvironment, k as PhoneConfig, P as ParsedPhone, l as PhoneDisplayFormat } from './phone-utils-C0ds6cqZ.js';
4
4
  import { T as TrackingConfigReference, C as ConversionConfig } from './tracking-config-runtime-C6H7ofmo.js';
5
- import { V as TriggerRegistryConfig, X as TypedTrackingClient } from './ingest-typed-MBuMe9Pn.js';
5
+ import { X as TriggerRegistryConfig, Z as TypedTrackingClient } from './ingest-typed-DRuUbg-r.js';
6
6
  import { CountryCode } from 'libphonenumber-js';
7
7
  import 'zod/mini';
8
8
  import 'src';
@@ -236,9 +236,9 @@ interface CreateTrackingOptions<TRegistry extends TriggerRegistryConfig> {
236
236
  */
237
237
  environment?: TrackingEnvironment;
238
238
  /**
239
- * When true, the typed client validates every `trackEvent()` metadata
240
- * payload through the Zod schema before forwarding. Errors are thrown
241
- * loudly. Leave off in prod; turn on in dev to catch shape bugs early.
239
+ * When true, `trackEvent()` metadata that fails its Zod schema throws. When
240
+ * off, the invalid event is dropped with a console warning. Turn on in dev
241
+ * to catch shape bugs early.
242
242
  */
243
243
  debug?: boolean;
244
244
  /**