@aranova/tracking-react 0.22.2 → 0.22.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/index.mjs CHANGED
@@ -3320,7 +3320,12 @@ var saleCreateSchema = z12.object({
3320
3320
  customer_email: customerEmailSchema.nullable().optional(),
3321
3321
  // CASL consent attestation: the customer agreed to receive SMS. Recorded
3322
3322
  // with a timestamp server-side; every SMS send path gates on it.
3323
- sms_consent: z12.boolean().default(false)
3323
+ //
3324
+ // Tri-state: omit it (or send null) to let the server apply the business's
3325
+ // configured default-opt-in policy, honouring a returning customer's
3326
+ // remembered preference. Send an explicit boolean to assert consent state
3327
+ // yourself — `false` records a deliberate opt-out.
3328
+ sms_consent: z12.boolean().nullable().optional()
3324
3329
  }).strict().superRefine((val, ctx) => refineServiceXor(val, ctx, { requireAmount: true }));
3325
3330
  var saleUpdateSchema = z12.object({
3326
3331
  description: z12.string().nullable().optional(),
@@ -3696,7 +3701,7 @@ function GoogleAdsTracking(props) {
3696
3701
  import { createContext as createContext2, useContext as useContext2, useEffect as useEffect5, useMemo as useMemo4 } from "react";
3697
3702
 
3698
3703
  // package.json
3699
- var version = "0.22.2";
3704
+ var version = "0.22.3";
3700
3705
 
3701
3706
  // ../tracking-core/src/phone-react.tsx
3702
3707
  import {