@codefast/tracking 0.5.0-canary.4 → 0.5.0-canary.6

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.
Files changed (277) hide show
  1. package/CHANGELOG.md +473 -0
  2. package/README.md +177 -95
  3. package/dist/adapters/tanstack-start.d.ts +80 -0
  4. package/dist/adapters/tanstack-start.d.ts.map +1 -0
  5. package/dist/adapters/tanstack-start.js +74 -0
  6. package/dist/adapters/tanstack-start.js.map +1 -0
  7. package/dist/client/ad-framework-consent.d.ts +62 -0
  8. package/dist/client/ad-framework-consent.d.ts.map +1 -0
  9. package/dist/client/ad-framework-consent.js +40 -0
  10. package/dist/client/ad-framework-consent.js.map +1 -0
  11. package/dist/client/browser-cookie.d.ts +9 -0
  12. package/dist/client/browser-cookie.d.ts.map +1 -0
  13. package/dist/client/browser-cookie.js +15 -0
  14. package/dist/client/browser-cookie.js.map +1 -0
  15. package/dist/client/consent-runtime.d.ts +53 -0
  16. package/dist/client/consent-runtime.d.ts.map +1 -0
  17. package/dist/client/consent-runtime.js +33 -0
  18. package/dist/client/consent-runtime.js.map +1 -0
  19. package/dist/client/{consent-storage.d.mts → consent-storage.d.ts} +8 -6
  20. package/dist/client/consent-storage.d.ts.map +1 -0
  21. package/dist/client/consent-storage.js +109 -0
  22. package/dist/client/consent-storage.js.map +1 -0
  23. package/dist/client/consent-withdrawal.d.ts +18 -0
  24. package/dist/client/consent-withdrawal.d.ts.map +1 -0
  25. package/dist/client/consent-withdrawal.js +17 -0
  26. package/dist/client/consent-withdrawal.js.map +1 -0
  27. package/dist/client/cookie-anonymous-id.d.ts +41 -0
  28. package/dist/client/cookie-anonymous-id.d.ts.map +1 -0
  29. package/dist/client/cookie-anonymous-id.js +65 -0
  30. package/dist/client/cookie-anonymous-id.js.map +1 -0
  31. package/dist/client/create-client-tracker.d.ts +60 -0
  32. package/dist/client/create-client-tracker.d.ts.map +1 -0
  33. package/dist/client/create-client-tracker.js +91 -0
  34. package/dist/client/create-client-tracker.js.map +1 -0
  35. package/dist/client/gpc.d.ts +10 -0
  36. package/dist/client/gpc.d.ts.map +1 -0
  37. package/dist/client/gpc.js +12 -0
  38. package/dist/client/gpc.js.map +1 -0
  39. package/dist/client/initial-consent-store.d.ts +63 -0
  40. package/dist/client/initial-consent-store.d.ts.map +1 -0
  41. package/dist/client/initial-consent-store.js +138 -0
  42. package/dist/client/initial-consent-store.js.map +1 -0
  43. package/dist/client/is-analytics-allowed.d.ts +26 -0
  44. package/dist/client/is-analytics-allowed.d.ts.map +1 -0
  45. package/dist/client/is-analytics-allowed.js +22 -0
  46. package/dist/client/is-analytics-allowed.js.map +1 -0
  47. package/dist/client/server-persisted-anonymous-id.d.ts +30 -0
  48. package/dist/client/server-persisted-anonymous-id.d.ts.map +1 -0
  49. package/dist/client/server-persisted-anonymous-id.js +72 -0
  50. package/dist/client/server-persisted-anonymous-id.js.map +1 -0
  51. package/dist/core/consent-config.d.ts +24 -0
  52. package/dist/core/consent-config.d.ts.map +1 -0
  53. package/dist/core/consent-config.js +9 -0
  54. package/dist/core/consent-config.js.map +1 -0
  55. package/dist/core/consent-receipt.d.ts +71 -0
  56. package/dist/core/consent-receipt.d.ts.map +1 -0
  57. package/dist/core/consent-receipt.js +39 -0
  58. package/dist/core/consent-receipt.js.map +1 -0
  59. package/dist/core/consent.d.ts +182 -0
  60. package/dist/core/consent.d.ts.map +1 -0
  61. package/dist/core/consent.js +159 -0
  62. package/dist/core/consent.js.map +1 -0
  63. package/dist/core/cookie.d.ts +15 -0
  64. package/dist/core/cookie.d.ts.map +1 -0
  65. package/dist/core/cookie.js +26 -0
  66. package/dist/core/cookie.js.map +1 -0
  67. package/dist/core/destination.d.ts +29 -0
  68. package/dist/core/destination.d.ts.map +1 -0
  69. package/dist/core/destination.js +2 -0
  70. package/dist/core/destination.js.map +1 -0
  71. package/dist/core/event-catalog.d.ts +35 -0
  72. package/dist/core/event-catalog.d.ts.map +1 -0
  73. package/dist/core/event-catalog.js +30 -0
  74. package/dist/core/event-catalog.js.map +1 -0
  75. package/dist/core/event-id.d.ts +7 -0
  76. package/dist/core/event-id.d.ts.map +1 -0
  77. package/dist/core/event-id.js +9 -0
  78. package/dist/core/event-id.js.map +1 -0
  79. package/dist/core/tracked-event.d.ts +15 -0
  80. package/dist/core/tracked-event.d.ts.map +1 -0
  81. package/dist/core/tracked-event.js +2 -0
  82. package/dist/core/tracked-event.js.map +1 -0
  83. package/dist/destinations/ad-consent.d.ts +23 -0
  84. package/dist/destinations/ad-consent.d.ts.map +1 -0
  85. package/dist/destinations/ad-consent.js +12 -0
  86. package/dist/destinations/ad-consent.js.map +1 -0
  87. package/dist/destinations/google-analytics.d.ts +148 -0
  88. package/dist/destinations/google-analytics.d.ts.map +1 -0
  89. package/dist/destinations/google-analytics.js +156 -0
  90. package/dist/destinations/google-analytics.js.map +1 -0
  91. package/dist/destinations/google-consent.d.ts +62 -0
  92. package/dist/destinations/google-consent.d.ts.map +1 -0
  93. package/dist/destinations/google-consent.js +109 -0
  94. package/dist/destinations/google-consent.js.map +1 -0
  95. package/dist/destinations/meta.d.ts +63 -0
  96. package/dist/destinations/meta.d.ts.map +1 -0
  97. package/dist/destinations/meta.js +44 -0
  98. package/dist/destinations/meta.js.map +1 -0
  99. package/dist/destinations/microsoft-uet.d.ts +56 -0
  100. package/dist/destinations/microsoft-uet.d.ts.map +1 -0
  101. package/dist/destinations/microsoft-uet.js +41 -0
  102. package/dist/destinations/microsoft-uet.js.map +1 -0
  103. package/dist/destinations/shared.d.ts +18 -0
  104. package/dist/destinations/shared.d.ts.map +1 -0
  105. package/dist/destinations/shared.js +19 -0
  106. package/dist/destinations/shared.js.map +1 -0
  107. package/dist/destinations/tiktok.d.ts +55 -0
  108. package/dist/destinations/tiktok.d.ts.map +1 -0
  109. package/dist/destinations/tiktok.js +40 -0
  110. package/dist/destinations/tiktok.js.map +1 -0
  111. package/dist/destinations/vercel-analytics.d.ts +25 -0
  112. package/dist/destinations/vercel-analytics.d.ts.map +1 -0
  113. package/dist/destinations/vercel-analytics.js +23 -0
  114. package/dist/destinations/vercel-analytics.js.map +1 -0
  115. package/dist/index.d.ts +64 -0
  116. package/dist/index.d.ts.map +1 -0
  117. package/dist/index.js +41 -0
  118. package/dist/index.js.map +1 -0
  119. package/dist/react/consent-banner.d.ts +155 -0
  120. package/dist/react/consent-banner.d.ts.map +1 -0
  121. package/dist/react/consent-banner.js +171 -0
  122. package/dist/react/consent-banner.js.map +1 -0
  123. package/dist/react/gtag-consent-bootstrap.d.ts +17 -0
  124. package/dist/react/gtag-consent-bootstrap.d.ts.map +1 -0
  125. package/dist/react/gtag-consent-bootstrap.js +22 -0
  126. package/dist/react/gtag-consent-bootstrap.js.map +1 -0
  127. package/dist/react/use-consent.d.ts +42 -0
  128. package/dist/react/use-consent.d.ts.map +1 -0
  129. package/dist/react/use-consent.js +60 -0
  130. package/dist/react/use-consent.js.map +1 -0
  131. package/dist/react/use-google-consent-sync.d.ts +20 -0
  132. package/dist/react/use-google-consent-sync.d.ts.map +1 -0
  133. package/dist/react/use-google-consent-sync.js +22 -0
  134. package/dist/react/use-google-consent-sync.js.map +1 -0
  135. package/dist/react/use-initial-consent.d.ts +11 -0
  136. package/dist/react/use-initial-consent.d.ts.map +1 -0
  137. package/dist/react/use-initial-consent.js +18 -0
  138. package/dist/react/use-initial-consent.js.map +1 -0
  139. package/dist/server/anonymous-id-cookie.d.ts +67 -0
  140. package/dist/server/anonymous-id-cookie.d.ts.map +1 -0
  141. package/dist/server/anonymous-id-cookie.js +71 -0
  142. package/dist/server/anonymous-id-cookie.js.map +1 -0
  143. package/dist/server/consent-receipt-store.d.ts +56 -0
  144. package/dist/server/consent-receipt-store.d.ts.map +1 -0
  145. package/dist/server/consent-receipt-store.js +44 -0
  146. package/dist/server/consent-receipt-store.js.map +1 -0
  147. package/dist/server/consent-receipt.d.ts +41 -0
  148. package/dist/server/consent-receipt.d.ts.map +1 -0
  149. package/dist/server/consent-receipt.js +60 -0
  150. package/dist/server/consent-receipt.js.map +1 -0
  151. package/dist/server/initial-consent.d.ts +26 -0
  152. package/dist/server/initial-consent.d.ts.map +1 -0
  153. package/dist/server/initial-consent.js +31 -0
  154. package/dist/server/initial-consent.js.map +1 -0
  155. package/dist/server/measurement-protocol.d.ts +69 -0
  156. package/dist/server/measurement-protocol.d.ts.map +1 -0
  157. package/dist/server/measurement-protocol.js +61 -0
  158. package/dist/server/measurement-protocol.js.map +1 -0
  159. package/dist/server/region.d.ts +27 -0
  160. package/dist/server/region.d.ts.map +1 -0
  161. package/dist/server/region.js +69 -0
  162. package/dist/server/region.js.map +1 -0
  163. package/dist/server/user-deletion.d.ts +64 -0
  164. package/dist/server/user-deletion.d.ts.map +1 -0
  165. package/dist/server/user-deletion.js +54 -0
  166. package/dist/server/user-deletion.js.map +1 -0
  167. package/dist/tooling/import-protection.d.ts +19 -0
  168. package/dist/tooling/import-protection.d.ts.map +1 -0
  169. package/dist/tooling/import-protection.js +23 -0
  170. package/dist/tooling/import-protection.js.map +1 -0
  171. package/package.json +202 -107
  172. package/src/adapters/tanstack-start.ts +135 -0
  173. package/src/client/ad-framework-consent.ts +86 -0
  174. package/src/client/browser-cookie.ts +16 -0
  175. package/src/client/consent-runtime.ts +80 -0
  176. package/src/client/consent-storage.ts +31 -1
  177. package/src/client/consent-withdrawal.ts +32 -0
  178. package/src/client/cookie-anonymous-id.ts +112 -0
  179. package/src/client/create-client-tracker.ts +128 -86
  180. package/src/client/gpc.ts +4 -2
  181. package/src/client/initial-consent-store.ts +218 -0
  182. package/src/client/is-analytics-allowed.ts +43 -0
  183. package/src/client/server-persisted-anonymous-id.ts +102 -0
  184. package/src/core/consent-config.ts +27 -0
  185. package/src/core/consent-receipt.ts +115 -0
  186. package/src/core/consent.ts +164 -10
  187. package/src/core/cookie.ts +29 -0
  188. package/src/core/destination.ts +17 -8
  189. package/src/core/event-catalog.ts +29 -15
  190. package/src/core/event-id.ts +1 -2
  191. package/src/core/tracked-event.ts +4 -4
  192. package/src/css/consent.css +119 -0
  193. package/src/destinations/ad-consent.ts +29 -0
  194. package/src/destinations/google-analytics.ts +196 -133
  195. package/src/destinations/google-consent.ts +164 -0
  196. package/src/destinations/meta.ts +96 -0
  197. package/src/destinations/microsoft-uet.ts +86 -0
  198. package/src/destinations/shared.ts +45 -0
  199. package/src/destinations/tiktok.ts +85 -0
  200. package/src/destinations/vercel-analytics.ts +23 -24
  201. package/src/index.ts +165 -8
  202. package/src/react/consent-banner.tsx +308 -111
  203. package/src/react/gtag-consent-bootstrap.tsx +48 -0
  204. package/src/react/use-consent.ts +53 -45
  205. package/src/react/use-google-consent-sync.ts +38 -0
  206. package/src/react/use-initial-consent.ts +22 -0
  207. package/src/server/anonymous-id-cookie.ts +103 -0
  208. package/src/server/consent-receipt-store.ts +79 -0
  209. package/src/server/consent-receipt.ts +89 -0
  210. package/src/server/initial-consent.ts +46 -0
  211. package/src/server/measurement-protocol.ts +114 -0
  212. package/src/server/region.ts +22 -15
  213. package/src/server/user-deletion.ts +93 -0
  214. package/src/tooling/import-protection.ts +22 -0
  215. package/dist/client/consent-storage.mjs +0 -63
  216. package/dist/client/create-client-tracker.d.mts +0 -37
  217. package/dist/client/create-client-tracker.mjs +0 -66
  218. package/dist/client/gpc.d.mts +0 -10
  219. package/dist/client/gpc.mjs +0 -12
  220. package/dist/client/index.d.mts +0 -8
  221. package/dist/client/index.mjs +0 -8
  222. package/dist/client/lifecycle.d.mts +0 -23
  223. package/dist/client/lifecycle.mjs +0 -30
  224. package/dist/client/local-storage.d.mts +0 -13
  225. package/dist/client/local-storage.mjs +0 -31
  226. package/dist/client/queue.d.mts +0 -49
  227. package/dist/client/queue.mjs +0 -71
  228. package/dist/client/router.d.mts +0 -30
  229. package/dist/client/router.mjs +0 -17
  230. package/dist/core/consent.d.mts +0 -89
  231. package/dist/core/consent.mjs +0 -57
  232. package/dist/core/destination.d.mts +0 -23
  233. package/dist/core/destination.mjs +0 -1
  234. package/dist/core/event-catalog.d.mts +0 -36
  235. package/dist/core/event-catalog.mjs +0 -12
  236. package/dist/core/event-id.d.mts +0 -10
  237. package/dist/core/event-id.mjs +0 -12
  238. package/dist/core/index.d.mts +0 -6
  239. package/dist/core/index.mjs +0 -4
  240. package/dist/core/tracked-event.d.mts +0 -17
  241. package/dist/core/tracked-event.mjs +0 -1
  242. package/dist/destinations/ga4-measurement-protocol.d.mts +0 -54
  243. package/dist/destinations/ga4-measurement-protocol.mjs +0 -89
  244. package/dist/destinations/google-analytics.d.mts +0 -98
  245. package/dist/destinations/google-analytics.mjs +0 -126
  246. package/dist/destinations/http-destination.d.mts +0 -20
  247. package/dist/destinations/http-destination.mjs +0 -25
  248. package/dist/destinations/index.d.mts +0 -5
  249. package/dist/destinations/index.mjs +0 -5
  250. package/dist/destinations/vercel-analytics.d.mts +0 -13
  251. package/dist/destinations/vercel-analytics.mjs +0 -30
  252. package/dist/index.d.mts +0 -6
  253. package/dist/index.mjs +0 -4
  254. package/dist/react/consent-banner.d.mts +0 -75
  255. package/dist/react/consent-banner.mjs +0 -114
  256. package/dist/react/index.d.mts +0 -3
  257. package/dist/react/index.mjs +0 -3
  258. package/dist/react/use-consent.d.mts +0 -49
  259. package/dist/react/use-consent.mjs +0 -54
  260. package/dist/server/create-server-tracker.d.mts +0 -42
  261. package/dist/server/create-server-tracker.mjs +0 -67
  262. package/dist/server/index.d.mts +0 -3
  263. package/dist/server/index.mjs +0 -3
  264. package/dist/server/region.d.mts +0 -20
  265. package/dist/server/region.mjs +0 -56
  266. package/src/client/index.ts +0 -17
  267. package/src/client/lifecycle.ts +0 -50
  268. package/src/client/local-storage.ts +0 -44
  269. package/src/client/queue.ts +0 -117
  270. package/src/client/router.ts +0 -37
  271. package/src/core/index.ts +0 -24
  272. package/src/destinations/ga4-measurement-protocol.ts +0 -166
  273. package/src/destinations/http-destination.ts +0 -33
  274. package/src/destinations/index.ts +0 -20
  275. package/src/react/index.ts +0 -5
  276. package/src/server/create-server-tracker.ts +0 -128
  277. package/src/server/index.ts +0 -4
@@ -0,0 +1,56 @@
1
+ import type { ConsentDecision } from "#/core/consent";
2
+ import type { Destination } from "#/core/destination";
3
+ import type { FlatPropertyValue } from "#/destinations/shared";
4
+ /**
5
+ * Microsoft UET consent. UET enforces **only** `ad_storage` — it has no `analytics_storage`,
6
+ * and its `ad_user_data`/`ad_personalization` fields have no documented behavior, so this
7
+ * models the one enforced signal (spec-destinations §5). Pushed via
8
+ * `uetq.push('consent','update', …)`.
9
+ *
10
+ * @since 1.0.0-canary.7
11
+ */
12
+ export interface MicrosoftUetConsent {
13
+ ad_storage: "denied" | "granted";
14
+ }
15
+ /**
16
+ * Maps a `ConsentDecision` to UET's enforced `ad_storage` signal via the shared ad lever, so
17
+ * it can't drift from Meta/TikTok — `ad_storage` is the inverse of Limited Data Use.
18
+ *
19
+ * @since 1.0.0-canary.7
20
+ */
21
+ export declare function toMicrosoftUetConsent(decision: ConsentDecision): MicrosoftUetConsent;
22
+ /**
23
+ * The mapped per-event payload handed to a UET transport (`uetq.push`).
24
+ *
25
+ * @since 1.0.0-canary.7
26
+ */
27
+ export interface MicrosoftUetEventPayload {
28
+ consent: MicrosoftUetConsent;
29
+ name: string;
30
+ properties: Record<string, FlatPropertyValue>;
31
+ }
32
+ /**
33
+ * @since 1.0.0-canary.7
34
+ */
35
+ export interface MicrosoftUetDestinationOptions {
36
+ /** Erasure cookie-clear seam — UET exposes no per-visitor deletion API, so erasure is cookie-clear + stop-send (DSR-V4). */
37
+ clearCookies?: (() => void) | undefined;
38
+ /** Read per event so an `ads` change updates `ad_storage` without recreating the destination. */
39
+ getDecision: () => ConsentDecision;
40
+ name?: string | undefined;
41
+ /**
42
+ * Delivers one mapped event — the transport seam. Wire it to `uetq.push(...)`; this package
43
+ * ships the consent mapping, never the tag id or network client.
44
+ */
45
+ transport: (payload: MicrosoftUetEventPayload) => Promise<void> | void;
46
+ }
47
+ /**
48
+ * Reference ad destination for Microsoft UET: maps each event and the live `ads` decision to
49
+ * UET's `ad_storage` signal, then hands it to an injected transport. Consent-restriction
50
+ * mapping only — the tag id and `uetq` transport are the integrator's. `consentRequirement`
51
+ * stays `"required"`.
52
+ *
53
+ * @since 1.0.0-canary.7
54
+ */
55
+ export declare function createMicrosoftUetDestination(options: MicrosoftUetDestinationOptions): Destination;
56
+ //# sourceMappingURL=microsoft-uet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"microsoft-uet.d.ts","sourceRoot":"","sources":["../../src/destinations/microsoft-uet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG/D;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,QAAQ,GAAG,SAAS,CAAC;CAClC;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,eAAe,GAAG,mBAAmB,CAEpF;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,mBAAmB,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,4HAA4H;IAC5H,YAAY,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACxC,iGAAiG;IACjG,WAAW,EAAE,MAAM,eAAe,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;;OAGG;IACH,SAAS,EAAE,CAAC,OAAO,EAAE,wBAAwB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CACxE;AAED;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,8BAA8B,GAAG,WAAW,CAsBlG"}
@@ -0,0 +1,41 @@
1
+ import { toAdConsentState } from "#/destinations/ad-consent";
2
+ import { flattenEventProps } from "#/destinations/shared";
3
+ /**
4
+ * Maps a `ConsentDecision` to UET's enforced `ad_storage` signal via the shared ad lever, so
5
+ * it can't drift from Meta/TikTok — `ad_storage` is the inverse of Limited Data Use.
6
+ *
7
+ * @since 1.0.0-canary.7
8
+ */
9
+ export function toMicrosoftUetConsent(decision) {
10
+ return { ad_storage: toAdConsentState(decision).limitedDataUse ? "denied" : "granted" };
11
+ }
12
+ /**
13
+ * Reference ad destination for Microsoft UET: maps each event and the live `ads` decision to
14
+ * UET's `ad_storage` signal, then hands it to an injected transport. Consent-restriction
15
+ * mapping only — the tag id and `uetq` transport are the integrator's. `consentRequirement`
16
+ * stays `"required"`.
17
+ *
18
+ * @since 1.0.0-canary.7
19
+ */
20
+ export function createMicrosoftUetDestination(options) {
21
+ let stopped = false;
22
+ return {
23
+ consentRequirement: "required",
24
+ name: options.name ?? "microsoft-uet",
25
+ onErasure() {
26
+ stopped = true;
27
+ options.clearCookies?.();
28
+ },
29
+ async send(event) {
30
+ if (stopped) {
31
+ return;
32
+ }
33
+ await options.transport({
34
+ consent: toMicrosoftUetConsent(options.getDecision()),
35
+ name: event.name,
36
+ properties: flattenEventProps(event.properties),
37
+ });
38
+ },
39
+ };
40
+ }
41
+ //# sourceMappingURL=microsoft-uet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"microsoft-uet.js","sourceRoot":"","sources":["../../src/destinations/microsoft-uet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAc1D;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CAAC,QAAyB;IAC7D,OAAO,EAAE,UAAU,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;AAC1F,CAAC;AA6BD;;;;;;;GAOG;AACH,MAAM,UAAU,6BAA6B,CAAC,OAAuC;IACnF,IAAI,OAAO,GAAG,KAAK,CAAC;IAEpB,OAAO;QACL,kBAAkB,EAAE,UAAU;QAC9B,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,eAAe;QACrC,SAAS;YACP,OAAO,GAAG,IAAI,CAAC;YACf,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;QAC3B,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,KAAK;YACd,IAAI,OAAO,EAAE,CAAC;gBACZ,OAAO;YACT,CAAC;YAED,MAAM,OAAO,CAAC,SAAS,CAAC;gBACtB,OAAO,EAAE,qBAAqB,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;gBACrD,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,UAAU,EAAE,iBAAiB,CAAC,KAAK,CAAC,UAAU,CAAC;aAChD,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @since 1.0.0-canary.6
3
+ */
4
+ export type FlatPropertyValue = boolean | number | string;
5
+ /**
6
+ * Event params must be flat string/number/boolean (optionally `null`) — stringify
7
+ * anything else instead of letting the destination silently drop it.
8
+ *
9
+ * @since 1.0.0-canary.6
10
+ */
11
+ export declare function flattenEventProps(properties: Record<string, unknown>): Record<string, FlatPropertyValue>;
12
+ /**
13
+ * @since 1.0.0-canary.6
14
+ */
15
+ export declare function flattenEventProps(properties: Record<string, unknown>, options: {
16
+ allowNull: true;
17
+ }): Record<string, FlatPropertyValue | null>;
18
+ //# sourceMappingURL=shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/destinations/shared.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAO1D;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC1G;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,OAAO,EAAE;IAAE,SAAS,EAAE,IAAI,CAAA;CAAE,GAC3B,MAAM,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @since 1.0.0-canary.6
3
+ */
4
+ export function flattenEventProps(properties, options = {}) {
5
+ const result = {};
6
+ for (const [key, value] of Object.entries(properties)) {
7
+ if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
8
+ result[key] = value;
9
+ }
10
+ else if (options.allowNull === true && value === null) {
11
+ result[key] = null;
12
+ }
13
+ else if (value !== undefined && value !== null) {
14
+ result[key] = JSON.stringify(value);
15
+ }
16
+ }
17
+ return result;
18
+ }
19
+ //# sourceMappingURL=shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/destinations/shared.ts"],"names":[],"mappings":"AAwBA;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAC/B,UAAmC,EACnC,OAAO,GAA6B,EAAE;IAEtC,MAAM,MAAM,GAA6C,EAAE,CAAC;IAE5D,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;QACtD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE,CAAC;YACzF,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACtB,CAAC;aAAM,IAAI,OAAO,CAAC,SAAS,KAAK,IAAI,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACxD,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;QACrB,CAAC;aAAM,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACjD,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,55 @@
1
+ import type { ConsentDecision } from "#/core/consent";
2
+ import type { Destination } from "#/core/destination";
3
+ import type { FlatPropertyValue } from "#/destinations/shared";
4
+ /**
5
+ * TikTok consent. TikTok uses a **single Limited Data Use boolean**, not Meta's
6
+ * `dataProcessingOptions` structure and no signal object (spec-destinations §5). Its
7
+ * transmission gate (`ttq.grantConsent()`/`revokeConsent()`) follows `analytics` and is the
8
+ * tracker's job; this models the `ads`-driven LDU lever.
9
+ *
10
+ * @since 1.0.0-canary.7
11
+ */
12
+ export interface TiktokConsent {
13
+ limited_data_use: boolean;
14
+ }
15
+ /**
16
+ * Maps a `ConsentDecision` to TikTok's LDU boolean — on when `ads` is denied.
17
+ *
18
+ * @since 1.0.0-canary.7
19
+ */
20
+ export declare function toTiktokConsent(decision: ConsentDecision): TiktokConsent;
21
+ /**
22
+ * The mapped per-event payload handed to a TikTok transport (`ttq.track` / Events API).
23
+ *
24
+ * @since 1.0.0-canary.7
25
+ */
26
+ export interface TiktokEventPayload {
27
+ consent: TiktokConsent;
28
+ name: string;
29
+ properties: Record<string, FlatPropertyValue>;
30
+ }
31
+ /**
32
+ * @since 1.0.0-canary.7
33
+ */
34
+ export interface TiktokDestinationOptions {
35
+ /** Erasure cookie-clear seam — TikTok exposes no per-visitor deletion API, so erasure is cookie-clear + stop-send (DSR-V4). */
36
+ clearCookies?: (() => void) | undefined;
37
+ /** Read per event so an `ads` change flips LDU without recreating the destination. */
38
+ getDecision: () => ConsentDecision;
39
+ name?: string | undefined;
40
+ /**
41
+ * Delivers one mapped event — the transport seam. Wire it to `ttq.track(...)` (Pixel) or the
42
+ * Events API; this package ships the consent mapping, never the pixel id or network client.
43
+ */
44
+ transport: (payload: TiktokEventPayload) => Promise<void> | void;
45
+ }
46
+ /**
47
+ * Reference ad destination for TikTok: maps each event and the live `ads` decision to
48
+ * TikTok's LDU boolean, then hands it to an injected transport. Consent-restriction mapping
49
+ * only — the pixel id and `ttq` transport are the integrator's. `consentRequirement` stays
50
+ * `"required"`.
51
+ *
52
+ * @since 1.0.0-canary.7
53
+ */
54
+ export declare function createTiktokDestination(options: TiktokDestinationOptions): Destination;
55
+ //# sourceMappingURL=tiktok.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tiktok.d.ts","sourceRoot":"","sources":["../../src/destinations/tiktok.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG/D;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,eAAe,GAAG,aAAa,CAExE;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,aAAa,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,+HAA+H;IAC/H,YAAY,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACxC,sFAAsF;IACtF,WAAW,EAAE,MAAM,eAAe,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;;OAGG;IACH,SAAS,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAClE;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,wBAAwB,GAAG,WAAW,CAsBtF"}
@@ -0,0 +1,40 @@
1
+ import { toAdConsentState } from "#/destinations/ad-consent";
2
+ import { flattenEventProps } from "#/destinations/shared";
3
+ /**
4
+ * Maps a `ConsentDecision` to TikTok's LDU boolean — on when `ads` is denied.
5
+ *
6
+ * @since 1.0.0-canary.7
7
+ */
8
+ export function toTiktokConsent(decision) {
9
+ return { limited_data_use: toAdConsentState(decision).limitedDataUse };
10
+ }
11
+ /**
12
+ * Reference ad destination for TikTok: maps each event and the live `ads` decision to
13
+ * TikTok's LDU boolean, then hands it to an injected transport. Consent-restriction mapping
14
+ * only — the pixel id and `ttq` transport are the integrator's. `consentRequirement` stays
15
+ * `"required"`.
16
+ *
17
+ * @since 1.0.0-canary.7
18
+ */
19
+ export function createTiktokDestination(options) {
20
+ let stopped = false;
21
+ return {
22
+ consentRequirement: "required",
23
+ name: options.name ?? "tiktok",
24
+ onErasure() {
25
+ stopped = true;
26
+ options.clearCookies?.();
27
+ },
28
+ async send(event) {
29
+ if (stopped) {
30
+ return;
31
+ }
32
+ await options.transport({
33
+ consent: toTiktokConsent(options.getDecision()),
34
+ name: event.name,
35
+ properties: flattenEventProps(event.properties),
36
+ });
37
+ },
38
+ };
39
+ }
40
+ //# sourceMappingURL=tiktok.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tiktok.js","sourceRoot":"","sources":["../../src/destinations/tiktok.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAc1D;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,QAAyB;IACvD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC,cAAc,EAAE,CAAC;AACzE,CAAC;AA6BD;;;;;;;GAOG;AACH,MAAM,UAAU,uBAAuB,CAAC,OAAiC;IACvE,IAAI,OAAO,GAAG,KAAK,CAAC;IAEpB,OAAO;QACL,kBAAkB,EAAE,UAAU;QAC9B,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,QAAQ;QAC9B,SAAS;YACP,OAAO,GAAG,IAAI,CAAC;YACf,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;QAC3B,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,KAAK;YACd,IAAI,OAAO,EAAE,CAAC;gBACZ,OAAO;YACT,CAAC;YAED,MAAM,OAAO,CAAC,SAAS,CAAC;gBACtB,OAAO,EAAE,eAAe,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;gBAC/C,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,UAAU,EAAE,iBAAiB,CAAC,KAAK,CAAC,UAAU,CAAC;aAChD,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { Destination } from "#/core/destination";
2
+ /**
3
+ * @since 1.0.0-canary.6
4
+ */
5
+ export interface VercelAnalyticsDestinationOptions {
6
+ /**
7
+ * Vercel Analytics is cookieless and its events carry no identifier from this
8
+ * package, so it qualifies for `"exempt"` — it then keeps receiving events while the
9
+ * tracker's analytics gate is closed. Defaults to `"required"` so pre-consent delivery
10
+ * stays an explicit opt-in.
11
+ */
12
+ consentRequirement?: "exempt" | "required" | undefined;
13
+ name?: string | undefined;
14
+ }
15
+ /**
16
+ * `track()` only pushes onto Vercel's own in-page queue (`window.va`/`window.vaq`), which
17
+ * handles batching and unload delivery itself. Requires the Vercel Analytics script to be
18
+ * loaded once elsewhere in the app (`<Analytics />` from `@vercel/analytics/react`, or the
19
+ * framework-agnostic `inject()`) — this destination only queues events, so it imports the
20
+ * base `@vercel/analytics` package and has no React dependency of its own.
21
+ *
22
+ * @since 0.5.0-canary.4
23
+ */
24
+ export declare function createVercelAnalyticsDestination(options?: VercelAnalyticsDestinationOptions): Destination;
25
+ //# sourceMappingURL=vercel-analytics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vercel-analytics.d.ts","sourceRoot":"","sources":["../../src/destinations/vercel-analytics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;IACvD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED;;;;;;;;GAQG;AACH,wBAAgB,gCAAgC,CAAC,OAAO,GAAE,iCAAsC,GAAG,WAAW,CAU7G"}
@@ -0,0 +1,23 @@
1
+ import { track } from "@vercel/analytics";
2
+ import { flattenEventProps } from "#/destinations/shared";
3
+ /**
4
+ * `track()` only pushes onto Vercel's own in-page queue (`window.va`/`window.vaq`), which
5
+ * handles batching and unload delivery itself. Requires the Vercel Analytics script to be
6
+ * loaded once elsewhere in the app (`<Analytics />` from `@vercel/analytics/react`, or the
7
+ * framework-agnostic `inject()`) — this destination only queues events, so it imports the
8
+ * base `@vercel/analytics` package and has no React dependency of its own.
9
+ *
10
+ * @since 0.5.0-canary.4
11
+ */
12
+ export function createVercelAnalyticsDestination(options = {}) {
13
+ return {
14
+ consentRequirement: options.consentRequirement ?? "required",
15
+ name: options.name ?? "vercel-analytics",
16
+ // Synchronous today, but declared async so a throw here rejects the returned Promise
17
+ // instead of escaping as a synchronous throw — matches Destination.send's contract.
18
+ async send(event) {
19
+ track(event.name, flattenEventProps(event.properties, { allowNull: true }));
20
+ },
21
+ };
22
+ }
23
+ //# sourceMappingURL=vercel-analytics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vercel-analytics.js","sourceRoot":"","sources":["../../src/destinations/vercel-analytics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAgB1D;;;;;;;;GAQG;AACH,MAAM,UAAU,gCAAgC,CAAC,OAAO,GAAsC,EAAE;IAC9F,OAAO;QACL,kBAAkB,EAAE,OAAO,CAAC,kBAAkB,IAAI,UAAU;QAC5D,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,kBAAkB;QACxC,qFAAqF;QACrF,oFAAoF;QACpF,KAAK,CAAC,IAAI,CAAC,KAAK;YACd,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,iBAAiB,CAAC,KAAK,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;QAC9E,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * \@codefast/tracking
3
+ *
4
+ * Consent-gated, type-safe event tracking for TanStack Start apps: define an event
5
+ * catalog over any Standard Schema library, wire a `ConsentConfig` + `createConsentRuntime`,
6
+ * and fan tracked events out to gtag / Vercel Analytics destinations.
7
+ *
8
+ * This root is the client entry: it re-exports the isomorphic core plus the whole
9
+ * browser-side surface (tracker, consent runtime, React bindings, client destinations).
10
+ * Server-only lanes are their own subpaths and never belong here — `@codefast/tracking/server/*`
11
+ * and `@codefast/tracking/adapters/*` (deny them in the client environment via
12
+ * `SERVER_ONLY_SUBPATHS`). The Vercel destination stays on `@codefast/tracking/destinations/
13
+ * vercel-analytics` so its `@vercel/analytics` peer is only pulled in when used.
14
+ */
15
+ export type { ConsentCategory, ConsentDecision, ConsentMode, ConsentRecord, ConsentRegion, ConsentStorage, InitialConsent, ResolveDefaultConsentOptions, ResolveEffectiveConsentOptions, } from "#/core/consent";
16
+ export { CONSENT_CATEGORIES, CONSENT_REGIONS, createConsentDecision, isConsentDecision, isConsentRecord, isConsentRegion, isInitialConsent, normalizeConsentDecision, readStoredDecision, resolveConsentMode, resolveDefaultConsent, resolveEffectiveConsent, STRICTEST_INITIAL_CONSENT, } from "#/core/consent";
17
+ export type { ConsentConfig } from "#/core/consent-config";
18
+ export { defineConsentConfig } from "#/core/consent-config";
19
+ export type { ConsentReceipt, ConsentReceiptEventType, ConsentReceiptInput, ConsentReceiptMethod, ConsentReceiptSubjectIdType, } from "#/core/consent-receipt";
20
+ export { isConsentReceiptInput } from "#/core/consent-receipt";
21
+ export { readCookieValue } from "#/core/cookie";
22
+ export type { Destination } from "#/core/destination";
23
+ export type { EventCatalog, EventDefinition } from "#/core/event-catalog";
24
+ export { assertValidEventProperties, defineEventCatalog } from "#/core/event-catalog";
25
+ export { generateEventId } from "#/core/event-id";
26
+ export type { TrackedEvent } from "#/core/tracked-event";
27
+ export type { CmpConsentSignal, CmpStatus, ReconcileAdFrameworkConsentOptions } from "#/client/ad-framework-consent";
28
+ export { hasGppApi, hasTcfApi, reconcileAdFrameworkConsent } from "#/client/ad-framework-consent";
29
+ export type { ConsentRuntime, ConsentRuntimeOptions } from "#/client/consent-runtime";
30
+ export { createConsentRuntime } from "#/client/consent-runtime";
31
+ export { createLocalStorageConsentStorage } from "#/client/consent-storage";
32
+ export type { ConsentWithdrawalHandlerOptions } from "#/client/consent-withdrawal";
33
+ export { createConsentWithdrawalHandler } from "#/client/consent-withdrawal";
34
+ export type { CookieAnonymousId, CookieAnonymousIdOptions } from "#/client/cookie-anonymous-id";
35
+ export { createCookieAnonymousId } from "#/client/cookie-anonymous-id";
36
+ export type { ClientTracker, ClientTrackerOptions, DeliveryErrorContext } from "#/client/create-client-tracker";
37
+ export { createClientTracker } from "#/client/create-client-tracker";
38
+ export { hasGlobalPrivacyControlSignal } from "#/client/gpc";
39
+ export type { InitialConsentSnapshot, InitialConsentStore, InitialConsentStoreOptions, } from "#/client/initial-consent-store";
40
+ export { createInitialConsentStore } from "#/client/initial-consent-store";
41
+ export type { IsAnalyticsAllowedOptions } from "#/client/is-analytics-allowed";
42
+ export { createIsAnalyticsAllowed } from "#/client/is-analytics-allowed";
43
+ export type { ServerPersistedAnonymousIdOptions } from "#/client/server-persisted-anonymous-id";
44
+ export { createServerPersistedAnonymousId } from "#/client/server-persisted-anonymous-id";
45
+ export type { ConsentBannerAcceptProps, ConsentBannerActionsProps, ConsentBannerCategoryProps, ConsentBannerCustomizeProps, ConsentBannerDescriptionProps, ConsentBannerPreferencesProps, ConsentBannerProps, ConsentBannerRejectProps, ConsentBannerSaveProps, ConsentBannerTitleProps, ConsentToggleProps, } from "#/react/consent-banner";
46
+ export { ConsentBanner, ConsentBannerAccept, ConsentBannerActions, ConsentBannerCategory, ConsentBannerCustomize, ConsentBannerDescription, ConsentBannerPreferences, ConsentBannerReject, ConsentBannerSave, ConsentBannerTitle, ConsentToggle, } from "#/react/consent-banner";
47
+ export type { GtagConsentBootstrapProps } from "#/react/gtag-consent-bootstrap";
48
+ export { GtagConsentBootstrap } from "#/react/gtag-consent-bootstrap";
49
+ export type { UseConsentOptions, UseConsentResult } from "#/react/use-consent";
50
+ export { useConsent } from "#/react/use-consent";
51
+ export type { UseGoogleConsentSyncOptions } from "#/react/use-google-consent-sync";
52
+ export { useGoogleConsentSync } from "#/react/use-google-consent-sync";
53
+ export { useInitialConsent } from "#/react/use-initial-consent";
54
+ export type { AdConsentState } from "#/destinations/ad-consent";
55
+ export { toAdConsentState } from "#/destinations/ad-consent";
56
+ export type { EnsureGtagOptions, GoogleAnalyticsDestinationOptions, GtagConsentBootstrapOptions, GtagFunction, LoadGtagScriptOptions, } from "#/destinations/google-analytics";
57
+ export { buildGtagConsentBootstrapScript, clearGoogleAnalyticsCookies, createGoogleAnalyticsDestination, ensureGtag, loadGtagScript, updateGoogleConsent, } from "#/destinations/google-analytics";
58
+ export type { MetaDataProcessingOptions, MetaDestinationOptions, MetaEventPayload } from "#/destinations/meta";
59
+ export { createMetaDestination, toMetaDataProcessingOptions } from "#/destinations/meta";
60
+ export type { MicrosoftUetConsent, MicrosoftUetDestinationOptions, MicrosoftUetEventPayload, } from "#/destinations/microsoft-uet";
61
+ export { createMicrosoftUetDestination, toMicrosoftUetConsent } from "#/destinations/microsoft-uet";
62
+ export type { TiktokConsent, TiktokDestinationOptions, TiktokEventPayload } from "#/destinations/tiktok";
63
+ export { createTiktokDestination, toTiktokConsent } from "#/destinations/tiktok";
64
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,YAAY,EACV,eAAe,EACf,eAAe,EACf,WAAW,EACX,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,4BAA4B,EAC5B,8BAA8B,GAC/B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,GAC1B,MAAM,gBAAgB,CAAC;AAExB,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,YAAY,EACV,cAAc,EACd,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EA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qBAAqB,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAEzF,YAAY,EACV,mBAAmB,EACnB,8BAA8B,EAC9B,wBAAwB,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,6BAA6B,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAEpG,YAAY,EAAE,aAAa,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACzG,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,41 @@
1
+ /**
2
+ * \@codefast/tracking
3
+ *
4
+ * Consent-gated, type-safe event tracking for TanStack Start apps: define an event
5
+ * catalog over any Standard Schema library, wire a `ConsentConfig` + `createConsentRuntime`,
6
+ * and fan tracked events out to gtag / Vercel Analytics destinations.
7
+ *
8
+ * This root is the client entry: it re-exports the isomorphic core plus the whole
9
+ * browser-side surface (tracker, consent runtime, React bindings, client destinations).
10
+ * Server-only lanes are their own subpaths and never belong here — `@codefast/tracking/server/*`
11
+ * and `@codefast/tracking/adapters/*` (deny them in the client environment via
12
+ * `SERVER_ONLY_SUBPATHS`). The Vercel destination stays on `@codefast/tracking/destinations/
13
+ * vercel-analytics` so its `@vercel/analytics` peer is only pulled in when used.
14
+ */
15
+ export { CONSENT_CATEGORIES, CONSENT_REGIONS, createConsentDecision, isConsentDecision, isConsentRecord, isConsentRegion, isInitialConsent, normalizeConsentDecision, readStoredDecision, resolveConsentMode, resolveDefaultConsent, resolveEffectiveConsent, STRICTEST_INITIAL_CONSENT, } from "#/core/consent";
16
+ export { defineConsentConfig } from "#/core/consent-config";
17
+ export { isConsentReceiptInput } from "#/core/consent-receipt";
18
+ export { readCookieValue } from "#/core/cookie";
19
+ export { assertValidEventProperties, defineEventCatalog } from "#/core/event-catalog";
20
+ export { generateEventId } from "#/core/event-id";
21
+ export { hasGppApi, hasTcfApi, reconcileAdFrameworkConsent } from "#/client/ad-framework-consent";
22
+ export { createConsentRuntime } from "#/client/consent-runtime";
23
+ export { createLocalStorageConsentStorage } from "#/client/consent-storage";
24
+ export { createConsentWithdrawalHandler } from "#/client/consent-withdrawal";
25
+ export { createCookieAnonymousId } from "#/client/cookie-anonymous-id";
26
+ export { createClientTracker } from "#/client/create-client-tracker";
27
+ export { hasGlobalPrivacyControlSignal } from "#/client/gpc";
28
+ export { createInitialConsentStore } from "#/client/initial-consent-store";
29
+ export { createIsAnalyticsAllowed } from "#/client/is-analytics-allowed";
30
+ export { createServerPersistedAnonymousId } from "#/client/server-persisted-anonymous-id";
31
+ export { ConsentBanner, ConsentBannerAccept, ConsentBannerActions, ConsentBannerCategory, ConsentBannerCustomize, ConsentBannerDescription, ConsentBannerPreferences, ConsentBannerReject, ConsentBannerSave, ConsentBannerTitle, ConsentToggle, } from "#/react/consent-banner";
32
+ export { GtagConsentBootstrap } from "#/react/gtag-consent-bootstrap";
33
+ export { useConsent } from "#/react/use-consent";
34
+ export { useGoogleConsentSync } from "#/react/use-google-consent-sync";
35
+ export { useInitialConsent } from "#/react/use-initial-consent";
36
+ export { toAdConsentState } from "#/destinations/ad-consent";
37
+ export { buildGtagConsentBootstrapScript, clearGoogleAnalyticsCookies, createGoogleAnalyticsDestination, ensureGtag, loadGtagScript, updateGoogleConsent, } from "#/destinations/google-analytics";
38
+ export { createMetaDestination, toMetaDataProcessingOptions } from "#/destinations/meta";
39
+ export { createMicrosoftUetDestination, toMicrosoftUetConsent } from "#/destinations/microsoft-uet";
40
+ export { createTiktokDestination, toTiktokConsent } from "#/destinations/tiktok";
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAcH,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,wB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AqB,CAAC;AAGjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAEvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAIhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAS7D,OAAO,EACL,+BAA+B,EAC/B,2BAA2B,EAC3B,gCAAgC,EAChC,UAAU,EACV,cAAc,EACd,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAOzF,OAAO,EAAE,6BAA6B,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAGpG,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,155 @@
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ import type { ConsentCategory } from "#/core/consent";
3
+ import type { UseConsentResult } from "#/react/use-consent";
4
+ /**
5
+ * @since 0.5.0-canary.4
6
+ */
7
+ export interface ConsentBannerProps extends ComponentProps<"section"> {
8
+ consent: UseConsentResult;
9
+ /** Overrides the default `isPromptNeeded` gating — e.g. to reopen the banner as a settings panel. */
10
+ open?: boolean | undefined;
11
+ }
12
+ /**
13
+ * Non-blocking opt-in prompt for GDPR/PDPL (VN) regions, as composable parts — the root owns
14
+ * the visibility gating and the preferences-layer state; the `Accept`/`Reject`/`Customize`/
15
+ * `Save` parts wire their own clicks to the consent hook, so any markup (including a
16
+ * design system's button styles via `className`) slots in. Renders nothing once a decision
17
+ * exists or the region defaults to opt-out (`consent.isPromptNeeded`), unless `open` says
18
+ * otherwise. Rendered as a labeled region, not a `<dialog>`: an open non-modal dialog
19
+ * neither traps focus nor blocks the page, so the dialog semantics would over-promise.
20
+ * Unstyled by default — style via `className`/`data-slot` selectors, or import the
21
+ * optional `@codefast/tracking/css/consent.css` theme. `data-state` on the root flips
22
+ * between `prompt` and `preferences` for state-dependent styling.
23
+ *
24
+ * @since 0.5.0-canary.4
25
+ */
26
+ export declare function ConsentBanner({ children, consent, open, ...props }: ConsentBannerProps): ReactNode;
27
+ /**
28
+ * @since 0.5.0-canary.5
29
+ */
30
+ export interface ConsentBannerTitleProps extends ComponentProps<"h2"> {
31
+ }
32
+ /**
33
+ * @since 0.5.0-canary.5
34
+ */
35
+ export declare function ConsentBannerTitle({ children, ...props }: ConsentBannerTitleProps): ReactNode;
36
+ /**
37
+ * @since 0.5.0-canary.5
38
+ */
39
+ export interface ConsentBannerDescriptionProps extends ComponentProps<"p"> {
40
+ }
41
+ /**
42
+ * Hosts the message and the privacy-policy link informed consent requires.
43
+ *
44
+ * @since 0.5.0-canary.5
45
+ */
46
+ export declare function ConsentBannerDescription(props: ConsentBannerDescriptionProps): ReactNode;
47
+ /**
48
+ * @since 0.5.0-canary.5
49
+ */
50
+ export interface ConsentBannerActionsProps extends ComponentProps<"div"> {
51
+ }
52
+ /**
53
+ * @since 0.5.0-canary.5
54
+ */
55
+ export declare function ConsentBannerActions(props: ConsentBannerActionsProps): ReactNode;
56
+ /**
57
+ * @since 0.5.0-canary.5
58
+ */
59
+ export interface ConsentBannerAcceptProps extends Omit<ComponentProps<"button">, "type"> {
60
+ }
61
+ /**
62
+ * Grants the categories the app requested (`useConsent`'s `requestedCategories`) — never more.
63
+ *
64
+ * @since 0.5.0-canary.5
65
+ */
66
+ export declare function ConsentBannerAccept({ onClick, ...props }: ConsentBannerAcceptProps): ReactNode;
67
+ /**
68
+ * @since 0.5.0-canary.5
69
+ */
70
+ export interface ConsentBannerRejectProps extends Omit<ComponentProps<"button">, "type"> {
71
+ }
72
+ /**
73
+ * @since 0.5.0-canary.5
74
+ */
75
+ export declare function ConsentBannerReject({ onClick, ...props }: ConsentBannerRejectProps): ReactNode;
76
+ /**
77
+ * @since 0.5.0-canary.5
78
+ */
79
+ export interface ConsentBannerCustomizeProps extends Omit<ComponentProps<"button">, "type"> {
80
+ }
81
+ /**
82
+ * Opens the per-category preferences layer, starting from the current effective state so
83
+ * nothing arrives pre-ticked in an opt-in region (pre-ticked consent is invalid under
84
+ * GDPR). Hidden while the layer is open — `ConsentBannerSave` takes over.
85
+ *
86
+ * @since 0.5.0-canary.5
87
+ */
88
+ export declare function ConsentBannerCustomize({ onClick, ...props }: ConsentBannerCustomizeProps): ReactNode;
89
+ /**
90
+ * @since 0.5.0-canary.5
91
+ */
92
+ export interface ConsentBannerPreferencesProps extends ComponentProps<"div"> {
93
+ }
94
+ /**
95
+ * Container for the per-category rows — renders only while the preferences layer is open.
96
+ *
97
+ * @since 0.5.0-canary.5
98
+ */
99
+ export declare function ConsentBannerPreferences(props: ConsentBannerPreferencesProps): ReactNode;
100
+ /**
101
+ * @since 0.5.0-canary.5
102
+ */
103
+ export interface ConsentBannerCategoryProps extends ComponentProps<"label"> {
104
+ category: ConsentCategory;
105
+ }
106
+ /**
107
+ * One checkbox row of the preferences layer — `children` is the visitor-facing wording.
108
+ *
109
+ * @since 0.5.0-canary.5
110
+ */
111
+ export declare function ConsentBannerCategory({ category, children, ...props }: ConsentBannerCategoryProps): ReactNode;
112
+ /**
113
+ * @since 0.5.0-canary.5
114
+ */
115
+ export interface ConsentBannerSaveProps extends Omit<ComponentProps<"button">, "type"> {
116
+ }
117
+ /**
118
+ * Persists the pending per-category selection — renders only while the preferences layer is open.
119
+ *
120
+ * @since 0.5.0-canary.5
121
+ */
122
+ export declare function ConsentBannerSave({ onClick, ...props }: ConsentBannerSaveProps): ReactNode;
123
+ /**
124
+ * @since 0.5.0-canary.4
125
+ */
126
+ export interface ConsentToggleProps extends Omit<ComponentProps<"button">, "children" | "onClick" | "type"> {
127
+ /**
128
+ * Label shown while the scoped categories are denied — clicking grants them. Defaults
129
+ * to "Allow tracking".
130
+ */
131
+ allowLabel?: string | undefined;
132
+ consent: UseConsentResult;
133
+ /**
134
+ * Label shown while any scoped category is granted — clicking denies them. Defaults to
135
+ * CCPA/CPRA "Do Not Sell or Share My Personal Information".
136
+ */
137
+ denyLabel?: string | undefined;
138
+ /**
139
+ * Purposes this control flips. Defaults to `["ads"]` — CCPA/CPRA "Do Not Sell or Share"
140
+ * mirrors GPC (ads denied, first-party analytics left alone). Pass `["analytics"]` (or
141
+ * both) for a broader opt-out. Distinct from `useConsent`'s `requestedCategories` (what the
142
+ * prompt asks about / `grantAll` grants).
143
+ */
144
+ toggledCategories?: ReadonlyArray<ConsentCategory> | undefined;
145
+ }
146
+ /**
147
+ * Always-visible control for opt-out regions — CCPA/CPRA requires a persistent
148
+ * "Do Not Sell or Share My Personal Information" mechanism, not just a one-time prompt.
149
+ * By default it only flips `ads` (same scope as a GPC signal); pass `toggledCategories`
150
+ * to include analytics or both.
151
+ *
152
+ * @since 0.5.0-canary.4
153
+ */
154
+ export declare function ConsentToggle({ allowLabel, consent, denyLabel, toggledCategories, ...props }: ConsentToggleProps): ReactNode;
155
+ //# sourceMappingURL=consent-banner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consent-banner.d.ts","sourceRoot":"","sources":["../../src/react/consent-banner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAY,SAAS,EAAkB,MAAM,OAAO,CAAC;AAGjF,OAAO,KAAK,EAAE,eAAe,EAAmB,MAAM,gBAAgB,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAqB5D;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,SAAS,CAAC;IACnE,OAAO,EAAE,gBAAgB,CAAC;IAC1B,qGAAqG;IACrG,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC5B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,GAAG,SAAS,CA4BlG;AAED;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,cAAc,CAAC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