@aranova/tracking-next 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
@@ -3126,7 +3126,12 @@ var saleCreateSchema = z12.object({
3126
3126
  customer_email: customerEmailSchema.nullable().optional(),
3127
3127
  // CASL consent attestation: the customer agreed to receive SMS. Recorded
3128
3128
  // with a timestamp server-side; every SMS send path gates on it.
3129
- sms_consent: z12.boolean().default(false)
3129
+ //
3130
+ // Tri-state: omit it (or send null) to let the server apply the business's
3131
+ // configured default-opt-in policy, honouring a returning customer's
3132
+ // remembered preference. Send an explicit boolean to assert consent state
3133
+ // yourself — `false` records a deliberate opt-out.
3134
+ sms_consent: z12.boolean().nullable().optional()
3130
3135
  }).strict().superRefine((val, ctx) => refineServiceXor(val, ctx, { requireAmount: true }));
3131
3136
  var saleUpdateSchema = z12.object({
3132
3137
  description: z12.string().nullable().optional(),
@@ -3515,7 +3520,7 @@ function GoogleAdsTracking(props) {
3515
3520
  import { usePathname, useSearchParams } from "next/navigation";
3516
3521
 
3517
3522
  // package.json
3518
- var version = "0.22.2";
3523
+ var version = "0.22.3";
3519
3524
 
3520
3525
  // src/factory.tsx
3521
3526
  import {