@shware/analytics 13.1.0 → 13.1.1

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 (403) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +1 -2
  2. package/dist/_virtual/_rolldown/runtime.mjs +1 -2
  3. package/dist/ads/google.cjs +1 -2
  4. package/dist/ads/google.d.cts +0 -2
  5. package/dist/ads/google.d.cts.map +1 -1
  6. package/dist/ads/google.d.mts +0 -2
  7. package/dist/ads/google.d.mts.map +1 -1
  8. package/dist/ads/google.mjs +1 -2
  9. package/dist/ads/meta.cjs +1 -2
  10. package/dist/ads/meta.d.cts +0 -2
  11. package/dist/ads/meta.d.cts.map +1 -1
  12. package/dist/ads/meta.d.mts +0 -2
  13. package/dist/ads/meta.d.mts.map +1 -1
  14. package/dist/ads/meta.mjs +1 -2
  15. package/dist/ads/time.cjs +1 -2
  16. package/dist/ads/time.d.cts +0 -2
  17. package/dist/ads/time.d.cts.map +1 -1
  18. package/dist/ads/time.d.mts +0 -2
  19. package/dist/ads/time.d.mts.map +1 -1
  20. package/dist/ads/time.mjs +1 -2
  21. package/dist/ads/types.d.cts +0 -2
  22. package/dist/ads/types.d.cts.map +1 -1
  23. package/dist/ads/types.d.mts +0 -2
  24. package/dist/ads/types.d.mts.map +1 -1
  25. package/dist/attribution/classify.cjs +1 -2
  26. package/dist/attribution/classify.d.cts +0 -2
  27. package/dist/attribution/classify.d.cts.map +1 -1
  28. package/dist/attribution/classify.d.mts +0 -2
  29. package/dist/attribution/classify.d.mts.map +1 -1
  30. package/dist/attribution/classify.mjs +1 -2
  31. package/dist/attribution/vocabulary.cjs +1 -2
  32. package/dist/attribution/vocabulary.d.cts +0 -2
  33. package/dist/attribution/vocabulary.d.cts.map +1 -1
  34. package/dist/attribution/vocabulary.d.mts +0 -2
  35. package/dist/attribution/vocabulary.d.mts.map +1 -1
  36. package/dist/attribution/vocabulary.mjs +1 -2
  37. package/dist/bot/generic.cjs +1 -2
  38. package/dist/bot/generic.d.cts +0 -2
  39. package/dist/bot/generic.d.cts.map +1 -1
  40. package/dist/bot/generic.d.mts +0 -2
  41. package/dist/bot/generic.d.mts.map +1 -1
  42. package/dist/bot/generic.mjs +1 -2
  43. package/dist/bot/index.cjs +1 -2
  44. package/dist/bot/index.d.cts +0 -2
  45. package/dist/bot/index.d.cts.map +1 -1
  46. package/dist/bot/index.d.mts +0 -2
  47. package/dist/bot/index.d.mts.map +1 -1
  48. package/dist/bot/index.mjs +1 -2
  49. package/dist/click-id/index.cjs +1 -2
  50. package/dist/click-id/index.d.cts +0 -2
  51. package/dist/click-id/index.d.cts.map +1 -1
  52. package/dist/click-id/index.d.mts +0 -2
  53. package/dist/click-id/index.d.mts.map +1 -1
  54. package/dist/click-id/index.mjs +1 -2
  55. package/dist/constants/storage.cjs +1 -2
  56. package/dist/constants/storage.d.cts +0 -2
  57. package/dist/constants/storage.d.cts.map +1 -1
  58. package/dist/constants/storage.d.mts +0 -2
  59. package/dist/constants/storage.d.mts.map +1 -1
  60. package/dist/constants/storage.mjs +1 -2
  61. package/dist/feedback/index.cjs +1 -2
  62. package/dist/feedback/index.d.cts +0 -2
  63. package/dist/feedback/index.d.cts.map +1 -1
  64. package/dist/feedback/index.d.mts +0 -2
  65. package/dist/feedback/index.d.mts.map +1 -1
  66. package/dist/feedback/index.mjs +1 -2
  67. package/dist/hooks/use-app-analytics.cjs +1 -2
  68. package/dist/hooks/use-app-analytics.d.cts +0 -2
  69. package/dist/hooks/use-app-analytics.d.cts.map +1 -1
  70. package/dist/hooks/use-app-analytics.d.mts +0 -2
  71. package/dist/hooks/use-app-analytics.d.mts.map +1 -1
  72. package/dist/hooks/use-app-analytics.mjs +1 -2
  73. package/dist/hooks/use-outbound-click-analytics.cjs +1 -2
  74. package/dist/hooks/use-outbound-click-analytics.d.cts +0 -2
  75. package/dist/hooks/use-outbound-click-analytics.d.cts.map +1 -1
  76. package/dist/hooks/use-outbound-click-analytics.d.mts +0 -2
  77. package/dist/hooks/use-outbound-click-analytics.d.mts.map +1 -1
  78. package/dist/hooks/use-outbound-click-analytics.mjs +1 -2
  79. package/dist/hooks/use-report-web-vitals.cjs +1 -2
  80. package/dist/hooks/use-report-web-vitals.d.cts +0 -2
  81. package/dist/hooks/use-report-web-vitals.d.cts.map +1 -1
  82. package/dist/hooks/use-report-web-vitals.d.mts +0 -2
  83. package/dist/hooks/use-report-web-vitals.d.mts.map +1 -1
  84. package/dist/hooks/use-report-web-vitals.mjs +1 -2
  85. package/dist/hooks/use-track-impression.cjs +1 -2
  86. package/dist/hooks/use-track-impression.d.cts +0 -2
  87. package/dist/hooks/use-track-impression.d.cts.map +1 -1
  88. package/dist/hooks/use-track-impression.d.mts +0 -2
  89. package/dist/hooks/use-track-impression.d.mts.map +1 -1
  90. package/dist/hooks/use-track-impression.mjs +1 -2
  91. package/dist/hooks/use-uet-id-sync.cjs +1 -2
  92. package/dist/hooks/use-uet-id-sync.d.cts +0 -2
  93. package/dist/hooks/use-uet-id-sync.d.cts.map +1 -1
  94. package/dist/hooks/use-uet-id-sync.d.mts +0 -2
  95. package/dist/hooks/use-uet-id-sync.d.mts.map +1 -1
  96. package/dist/hooks/use-uet-id-sync.mjs +1 -2
  97. package/dist/hooks/use-web-analytics.cjs +1 -2
  98. package/dist/hooks/use-web-analytics.d.cts +0 -2
  99. package/dist/hooks/use-web-analytics.d.cts.map +1 -1
  100. package/dist/hooks/use-web-analytics.d.mts +0 -2
  101. package/dist/hooks/use-web-analytics.d.mts.map +1 -1
  102. package/dist/hooks/use-web-analytics.mjs +1 -2
  103. package/dist/link/index.cjs +1 -2
  104. package/dist/link/index.d.cts +0 -2
  105. package/dist/link/index.d.cts.map +1 -1
  106. package/dist/link/index.d.mts +0 -2
  107. package/dist/link/index.d.mts.map +1 -1
  108. package/dist/link/index.mjs +1 -2
  109. package/dist/native/deep-link.cjs +1 -2
  110. package/dist/native/deep-link.d.cts +0 -2
  111. package/dist/native/deep-link.d.cts.map +1 -1
  112. package/dist/native/deep-link.d.mts +0 -2
  113. package/dist/native/deep-link.d.mts.map +1 -1
  114. package/dist/native/deep-link.mjs +1 -2
  115. package/dist/native/fbsdk.cjs +1 -2
  116. package/dist/native/fbsdk.d.cts +0 -2
  117. package/dist/native/fbsdk.d.cts.map +1 -1
  118. package/dist/native/fbsdk.d.mts +0 -2
  119. package/dist/native/fbsdk.d.mts.map +1 -1
  120. package/dist/native/fbsdk.mjs +1 -2
  121. package/dist/native/fingerprint.cjs +1 -2
  122. package/dist/native/fingerprint.d.cts +0 -2
  123. package/dist/native/fingerprint.d.cts.map +1 -1
  124. package/dist/native/fingerprint.d.mts +0 -2
  125. package/dist/native/fingerprint.d.mts.map +1 -1
  126. package/dist/native/fingerprint.mjs +1 -2
  127. package/dist/native/firebase.cjs +1 -2
  128. package/dist/native/firebase.d.cts +0 -2
  129. package/dist/native/firebase.d.cts.map +1 -1
  130. package/dist/native/firebase.d.mts +0 -2
  131. package/dist/native/firebase.d.mts.map +1 -1
  132. package/dist/native/firebase.mjs +1 -2
  133. package/dist/native/index.cjs +1 -1
  134. package/dist/native/index.mjs +1 -1
  135. package/dist/native/posthog.cjs +1 -2
  136. package/dist/native/posthog.d.cts +0 -2
  137. package/dist/native/posthog.d.cts.map +1 -1
  138. package/dist/native/posthog.d.mts +0 -2
  139. package/dist/native/posthog.d.mts.map +1 -1
  140. package/dist/native/posthog.mjs +1 -2
  141. package/dist/native/setup.cjs +1 -2
  142. package/dist/native/setup.d.cts +0 -2
  143. package/dist/native/setup.d.cts.map +1 -1
  144. package/dist/native/setup.d.mts +0 -2
  145. package/dist/native/setup.d.mts.map +1 -1
  146. package/dist/native/setup.mjs +1 -2
  147. package/dist/next/index.cjs +1 -2
  148. package/dist/next/index.d.cts +0 -2
  149. package/dist/next/index.d.cts.map +1 -1
  150. package/dist/next/index.d.mts +0 -2
  151. package/dist/next/index.d.mts.map +1 -1
  152. package/dist/next/index.mjs +1 -2
  153. package/dist/node_modules/.pnpm/bowser@2.14.1/node_modules/bowser/es5.cjs +1 -2
  154. package/dist/node_modules/.pnpm/bowser@2.14.1/node_modules/bowser/es5.mjs +1 -2
  155. package/dist/react-router/index.cjs +2 -3
  156. package/dist/react-router/index.d.cts +0 -2
  157. package/dist/react-router/index.d.cts.map +1 -1
  158. package/dist/react-router/index.d.mts +0 -2
  159. package/dist/react-router/index.d.mts.map +1 -1
  160. package/dist/react-router/index.mjs +2 -3
  161. package/dist/schema/index.cjs +1 -2
  162. package/dist/schema/index.d.cts +0 -2
  163. package/dist/schema/index.d.cts.map +1 -1
  164. package/dist/schema/index.d.mts +0 -2
  165. package/dist/schema/index.d.mts.map +1 -1
  166. package/dist/schema/index.mjs +1 -2
  167. package/dist/server/action-source.cjs +1 -2
  168. package/dist/server/action-source.d.cts +0 -2
  169. package/dist/server/action-source.d.cts.map +1 -1
  170. package/dist/server/action-source.d.mts +0 -2
  171. package/dist/server/action-source.d.mts.map +1 -1
  172. package/dist/server/action-source.mjs +1 -2
  173. package/dist/server/click-ids.cjs +1 -2
  174. package/dist/server/click-ids.d.cts +0 -2
  175. package/dist/server/click-ids.d.cts.map +1 -1
  176. package/dist/server/click-ids.d.mts +0 -2
  177. package/dist/server/click-ids.d.mts.map +1 -1
  178. package/dist/server/click-ids.mjs +1 -2
  179. package/dist/server/google-data-manager.cjs +1 -2
  180. package/dist/server/google-data-manager.d.cts +0 -2
  181. package/dist/server/google-data-manager.d.cts.map +1 -1
  182. package/dist/server/google-data-manager.d.mts +0 -2
  183. package/dist/server/google-data-manager.d.mts.map +1 -1
  184. package/dist/server/google-data-manager.mjs +1 -2
  185. package/dist/server/linkedin-conversions-api.cjs +1 -2
  186. package/dist/server/linkedin-conversions-api.d.cts +0 -2
  187. package/dist/server/linkedin-conversions-api.d.cts.map +1 -1
  188. package/dist/server/linkedin-conversions-api.d.mts +0 -2
  189. package/dist/server/linkedin-conversions-api.d.mts.map +1 -1
  190. package/dist/server/linkedin-conversions-api.mjs +1 -2
  191. package/dist/server/meta-capi.cjs +1 -2
  192. package/dist/server/meta-capi.d.cts +0 -2
  193. package/dist/server/meta-capi.d.cts.map +1 -1
  194. package/dist/server/meta-capi.d.mts +0 -2
  195. package/dist/server/meta-capi.d.mts.map +1 -1
  196. package/dist/server/meta-capi.mjs +1 -2
  197. package/dist/server/meta-conversions-api.cjs +1 -2
  198. package/dist/server/meta-conversions-api.d.cts +0 -2
  199. package/dist/server/meta-conversions-api.d.cts.map +1 -1
  200. package/dist/server/meta-conversions-api.d.mts +0 -2
  201. package/dist/server/meta-conversions-api.d.mts.map +1 -1
  202. package/dist/server/meta-conversions-api.mjs +1 -2
  203. package/dist/server/microsoft-conversions-api.cjs +1 -2
  204. package/dist/server/microsoft-conversions-api.d.cts +0 -2
  205. package/dist/server/microsoft-conversions-api.d.cts.map +1 -1
  206. package/dist/server/microsoft-conversions-api.d.mts +0 -2
  207. package/dist/server/microsoft-conversions-api.d.mts.map +1 -1
  208. package/dist/server/microsoft-conversions-api.mjs +1 -2
  209. package/dist/server/openai-conversions-api.cjs +1 -2
  210. package/dist/server/openai-conversions-api.d.cts +0 -2
  211. package/dist/server/openai-conversions-api.d.cts.map +1 -1
  212. package/dist/server/openai-conversions-api.d.mts +0 -2
  213. package/dist/server/openai-conversions-api.d.mts.map +1 -1
  214. package/dist/server/openai-conversions-api.mjs +1 -2
  215. package/dist/server/page-location.cjs +1 -2
  216. package/dist/server/page-location.d.cts +0 -2
  217. package/dist/server/page-location.d.cts.map +1 -1
  218. package/dist/server/page-location.d.mts +0 -2
  219. package/dist/server/page-location.d.mts.map +1 -1
  220. package/dist/server/page-location.mjs +1 -2
  221. package/dist/server/reddit-conversions-api.cjs +1 -2
  222. package/dist/server/reddit-conversions-api.d.cts +0 -2
  223. package/dist/server/reddit-conversions-api.d.cts.map +1 -1
  224. package/dist/server/reddit-conversions-api.d.mts +0 -2
  225. package/dist/server/reddit-conversions-api.d.mts.map +1 -1
  226. package/dist/server/reddit-conversions-api.mjs +1 -2
  227. package/dist/setup/index.cjs +1 -2
  228. package/dist/setup/index.d.cts +0 -2
  229. package/dist/setup/index.d.cts.map +1 -1
  230. package/dist/setup/index.d.mts +0 -2
  231. package/dist/setup/index.d.mts.map +1 -1
  232. package/dist/setup/index.mjs +1 -2
  233. package/dist/setup/session.cjs +1 -2
  234. package/dist/setup/session.d.cts +0 -2
  235. package/dist/setup/session.d.cts.map +1 -1
  236. package/dist/setup/session.d.mts +0 -2
  237. package/dist/setup/session.d.mts.map +1 -1
  238. package/dist/setup/session.mjs +1 -2
  239. package/dist/tanstack/analytics.cjs +2 -3
  240. package/dist/tanstack/analytics.d.cts +0 -2
  241. package/dist/tanstack/analytics.d.cts.map +1 -1
  242. package/dist/tanstack/analytics.d.mts +0 -2
  243. package/dist/tanstack/analytics.d.mts.map +1 -1
  244. package/dist/tanstack/analytics.mjs +2 -3
  245. package/dist/tanstack/middleware.cjs +1 -2
  246. package/dist/tanstack/middleware.d.cts +0 -2
  247. package/dist/tanstack/middleware.d.cts.map +1 -1
  248. package/dist/tanstack/middleware.d.mts +0 -2
  249. package/dist/tanstack/middleware.d.mts.map +1 -1
  250. package/dist/tanstack/middleware.mjs +1 -2
  251. package/dist/test/native-modules.d.cts +0 -2
  252. package/dist/test/native-modules.d.mts +0 -2
  253. package/dist/test/setup.cjs +1 -2
  254. package/dist/test/setup.d.cts +0 -2
  255. package/dist/test/setup.d.cts.map +1 -1
  256. package/dist/test/setup.d.mts +0 -2
  257. package/dist/test/setup.d.mts.map +1 -1
  258. package/dist/test/setup.mjs +1 -2
  259. package/dist/third-parties/google-analytics.cjs +1 -2
  260. package/dist/third-parties/google-analytics.d.cts +0 -2
  261. package/dist/third-parties/google-analytics.d.cts.map +1 -1
  262. package/dist/third-parties/google-analytics.d.mts +0 -2
  263. package/dist/third-parties/google-analytics.d.mts.map +1 -1
  264. package/dist/third-parties/google-analytics.mjs +1 -2
  265. package/dist/third-parties/ignored-events.cjs +1 -2
  266. package/dist/third-parties/ignored-events.d.cts +0 -2
  267. package/dist/third-parties/ignored-events.d.cts.map +1 -1
  268. package/dist/third-parties/ignored-events.d.mts +0 -2
  269. package/dist/third-parties/ignored-events.d.mts.map +1 -1
  270. package/dist/third-parties/ignored-events.mjs +1 -2
  271. package/dist/third-parties/linkedin-insight-tag.cjs +1 -2
  272. package/dist/third-parties/linkedin-insight-tag.d.cts +0 -2
  273. package/dist/third-parties/linkedin-insight-tag.d.cts.map +1 -1
  274. package/dist/third-parties/linkedin-insight-tag.d.mts +0 -2
  275. package/dist/third-parties/linkedin-insight-tag.d.mts.map +1 -1
  276. package/dist/third-parties/linkedin-insight-tag.mjs +1 -2
  277. package/dist/third-parties/meta-pixel.cjs +2 -3
  278. package/dist/third-parties/meta-pixel.d.cts +0 -2
  279. package/dist/third-parties/meta-pixel.d.cts.map +1 -1
  280. package/dist/third-parties/meta-pixel.d.mts +0 -2
  281. package/dist/third-parties/meta-pixel.d.mts.map +1 -1
  282. package/dist/third-parties/meta-pixel.mjs +2 -3
  283. package/dist/third-parties/microsoft-uet.cjs +1 -2
  284. package/dist/third-parties/microsoft-uet.d.cts +0 -2
  285. package/dist/third-parties/microsoft-uet.d.cts.map +1 -1
  286. package/dist/third-parties/microsoft-uet.d.mts +0 -2
  287. package/dist/third-parties/microsoft-uet.d.mts.map +1 -1
  288. package/dist/third-parties/microsoft-uet.mjs +1 -2
  289. package/dist/third-parties/openai-pixel.cjs +1 -2
  290. package/dist/third-parties/openai-pixel.d.cts +0 -2
  291. package/dist/third-parties/openai-pixel.d.cts.map +1 -1
  292. package/dist/third-parties/openai-pixel.d.mts +0 -2
  293. package/dist/third-parties/openai-pixel.d.mts.map +1 -1
  294. package/dist/third-parties/openai-pixel.mjs +1 -2
  295. package/dist/third-parties/posthog.cjs +1 -2
  296. package/dist/third-parties/posthog.d.cts +0 -2
  297. package/dist/third-parties/posthog.d.cts.map +1 -1
  298. package/dist/third-parties/posthog.d.mts +0 -2
  299. package/dist/third-parties/posthog.d.mts.map +1 -1
  300. package/dist/third-parties/posthog.mjs +1 -2
  301. package/dist/third-parties/reddit-pixel.cjs +1 -2
  302. package/dist/third-parties/reddit-pixel.d.cts +0 -2
  303. package/dist/third-parties/reddit-pixel.d.cts.map +1 -1
  304. package/dist/third-parties/reddit-pixel.d.mts +0 -2
  305. package/dist/third-parties/reddit-pixel.d.mts.map +1 -1
  306. package/dist/third-parties/reddit-pixel.mjs +1 -2
  307. package/dist/track/fbq.cjs +1 -2
  308. package/dist/track/fbq.d.cts +0 -2
  309. package/dist/track/fbq.d.cts.map +1 -1
  310. package/dist/track/fbq.d.mts +0 -2
  311. package/dist/track/fbq.d.mts.map +1 -1
  312. package/dist/track/fbq.mjs +1 -2
  313. package/dist/track/gtag.cjs +1 -2
  314. package/dist/track/gtag.d.cts +0 -2
  315. package/dist/track/gtag.d.cts.map +1 -1
  316. package/dist/track/gtag.d.mts +0 -2
  317. package/dist/track/gtag.d.mts.map +1 -1
  318. package/dist/track/gtag.mjs +1 -2
  319. package/dist/track/index.cjs +1 -2
  320. package/dist/track/index.d.cts +0 -2
  321. package/dist/track/index.d.cts.map +1 -1
  322. package/dist/track/index.d.mts +0 -2
  323. package/dist/track/index.d.mts.map +1 -1
  324. package/dist/track/index.mjs +1 -2
  325. package/dist/track/lintrk.d.cts +0 -2
  326. package/dist/track/lintrk.d.cts.map +1 -1
  327. package/dist/track/lintrk.d.mts +0 -2
  328. package/dist/track/lintrk.d.mts.map +1 -1
  329. package/dist/track/oaiq.cjs +1 -2
  330. package/dist/track/oaiq.d.cts +0 -2
  331. package/dist/track/oaiq.d.cts.map +1 -1
  332. package/dist/track/oaiq.d.mts +0 -2
  333. package/dist/track/oaiq.d.mts.map +1 -1
  334. package/dist/track/oaiq.mjs +1 -2
  335. package/dist/track/once.cjs +1 -2
  336. package/dist/track/once.d.cts +0 -2
  337. package/dist/track/once.d.cts.map +1 -1
  338. package/dist/track/once.d.mts +0 -2
  339. package/dist/track/once.d.mts.map +1 -1
  340. package/dist/track/once.mjs +1 -2
  341. package/dist/track/rdt.cjs +1 -2
  342. package/dist/track/rdt.d.cts +0 -2
  343. package/dist/track/rdt.d.cts.map +1 -1
  344. package/dist/track/rdt.d.mts +0 -2
  345. package/dist/track/rdt.d.mts.map +1 -1
  346. package/dist/track/rdt.mjs +1 -2
  347. package/dist/track/types.d.cts +0 -2
  348. package/dist/track/types.d.cts.map +1 -1
  349. package/dist/track/types.d.mts +0 -2
  350. package/dist/track/types.d.mts.map +1 -1
  351. package/dist/track/uetq.cjs +1 -2
  352. package/dist/track/uetq.d.cts +0 -2
  353. package/dist/track/uetq.d.cts.map +1 -1
  354. package/dist/track/uetq.d.mts +0 -2
  355. package/dist/track/uetq.d.mts.map +1 -1
  356. package/dist/track/uetq.mjs +1 -2
  357. package/dist/utils/field.cjs +1 -2
  358. package/dist/utils/field.d.cts +0 -2
  359. package/dist/utils/field.d.cts.map +1 -1
  360. package/dist/utils/field.d.mts +0 -2
  361. package/dist/utils/field.d.mts.map +1 -1
  362. package/dist/utils/field.mjs +1 -2
  363. package/dist/utils/redact-url.cjs +1 -2
  364. package/dist/utils/redact-url.d.cts +0 -2
  365. package/dist/utils/redact-url.d.cts.map +1 -1
  366. package/dist/utils/redact-url.d.mts +0 -2
  367. package/dist/utils/redact-url.d.mts.map +1 -1
  368. package/dist/utils/redact-url.mjs +1 -2
  369. package/dist/utils/sha256.cjs +1 -2
  370. package/dist/utils/sha256.d.cts +0 -2
  371. package/dist/utils/sha256.d.cts.map +1 -1
  372. package/dist/utils/sha256.d.mts +0 -2
  373. package/dist/utils/sha256.d.mts.map +1 -1
  374. package/dist/utils/sha256.mjs +1 -2
  375. package/dist/visitor/id.cjs +1 -2
  376. package/dist/visitor/id.d.cts +0 -2
  377. package/dist/visitor/id.d.cts.map +1 -1
  378. package/dist/visitor/id.d.mts +0 -2
  379. package/dist/visitor/id.d.mts.map +1 -1
  380. package/dist/visitor/id.mjs +1 -2
  381. package/dist/visitor/index.cjs +1 -2
  382. package/dist/visitor/index.d.cts +0 -2
  383. package/dist/visitor/index.d.cts.map +1 -1
  384. package/dist/visitor/index.d.mts +0 -2
  385. package/dist/visitor/index.d.mts.map +1 -1
  386. package/dist/visitor/index.mjs +1 -2
  387. package/dist/visitor/types.d.cts +0 -2
  388. package/dist/visitor/types.d.cts.map +1 -1
  389. package/dist/visitor/types.d.mts +0 -2
  390. package/dist/visitor/types.d.mts.map +1 -1
  391. package/dist/web/index.cjs +2 -3
  392. package/dist/web/index.d.cts +0 -2
  393. package/dist/web/index.d.cts.map +1 -1
  394. package/dist/web/index.d.mts +0 -2
  395. package/dist/web/index.d.mts.map +1 -1
  396. package/dist/web/index.mjs +2 -3
  397. package/dist/web/page-key.cjs +1 -2
  398. package/dist/web/page-key.d.cts +0 -2
  399. package/dist/web/page-key.d.cts.map +1 -1
  400. package/dist/web/page-key.d.mts +0 -2
  401. package/dist/web/page-key.d.mts.map +1 -1
  402. package/dist/web/page-key.mjs +1 -2
  403. package/package.json +9 -9
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/server/page-location.ts
2
+ // src/server/page-location.ts
3
3
  /**
4
4
  * The URL an event happened on, whichever name the client that sent it used.
5
5
  *
@@ -16,7 +16,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
16
16
  function pageLocation(tags) {
17
17
  return tags.page_location ?? tags.source_url;
18
18
  }
19
- //#endregion
20
19
  exports.pageLocation = pageLocation;
21
20
 
22
21
  //# sourceMappingURL=page-location.cjs.map
@@ -1,5 +1,4 @@
1
1
  import { TrackTags } from "../track/types.cjs";
2
- //#region src/server/page-location.d.ts
3
2
  /**
4
3
  * The URL an event happened on, whichever name the client that sent it used.
5
4
  *
@@ -14,5 +13,4 @@ import { TrackTags } from "../track/types.cjs";
14
13
  * a month of cache lifetime is the usual bound, and stored rows can be checked for it.
15
14
  */
16
15
  export declare function pageLocation(tags: TrackTags): string | undefined;
17
- //#endregion
18
16
  //# sourceMappingURL=page-location.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"page-location.d.cts","names":[],"sources":["../../src/server/page-location.ts"],"mappings":";;;;;;;;;;;;;;;wBAegB,aAAa,MAAM"}
1
+ {"version":3,"file":"page-location.d.cts","names":[],"sources":["../../src/server/page-location.ts"],"mappings":";;;;;;;;;;;;;;wBAegB,aAAa,MAAM"}
@@ -1,5 +1,4 @@
1
1
  import { TrackTags } from "../track/types.mjs";
2
- //#region src/server/page-location.d.ts
3
2
  /**
4
3
  * The URL an event happened on, whichever name the client that sent it used.
5
4
  *
@@ -14,5 +13,4 @@ import { TrackTags } from "../track/types.mjs";
14
13
  * a month of cache lifetime is the usual bound, and stored rows can be checked for it.
15
14
  */
16
15
  export declare function pageLocation(tags: TrackTags): string | undefined;
17
- //#endregion
18
16
  //# sourceMappingURL=page-location.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"page-location.d.mts","names":[],"sources":["../../src/server/page-location.ts"],"mappings":";;;;;;;;;;;;;;;wBAegB,aAAa,MAAM"}
1
+ {"version":3,"file":"page-location.d.mts","names":[],"sources":["../../src/server/page-location.ts"],"mappings":";;;;;;;;;;;;;;wBAegB,aAAa,MAAM"}
@@ -1,4 +1,4 @@
1
- //#region src/server/page-location.ts
1
+ // src/server/page-location.ts
2
2
  /**
3
3
  * The URL an event happened on, whichever name the client that sent it used.
4
4
  *
@@ -15,7 +15,6 @@
15
15
  function pageLocation(tags) {
16
16
  return tags.page_location ?? tags.source_url;
17
17
  }
18
- //#endregion
19
18
  export { pageLocation };
20
19
 
21
20
  //# sourceMappingURL=page-location.mjs.map
@@ -6,7 +6,7 @@ const require_server_click_ids = require("./click-ids.cjs");
6
6
  const require_server_page_location = require("./page-location.cjs");
7
7
  const require_track_rdt = require("../track/rdt.cjs");
8
8
  let _shware_utils = require("@shware/utils");
9
- //#region src/server/reddit-conversions-api.ts
9
+ // src/server/reddit-conversions-api.ts
10
10
  function getServerEvent(event, data, actionSource) {
11
11
  const { id, name, properties, tags, platform, created_at } = event;
12
12
  const [type, params] = require_track_rdt.mapRDTEvent(name, properties, id);
@@ -70,7 +70,6 @@ async function sendEvents(accessToken, pixelId, events, data = {}, testId, actio
70
70
  console.error("Failed to send Reddit conversion, network error:", error);
71
71
  }
72
72
  }
73
- //#endregion
74
73
  exports.getServerEvent = getServerEvent;
75
74
  exports.sendEvents = sendEvents;
76
75
 
@@ -1,7 +1,6 @@
1
1
  import { TrackEvent, UserProvidedData } from "../track/types.cjs";
2
2
  import { ServerStandardEvent } from "../track/rdt.cjs";
3
3
  import { EventActionSource } from "./action-source.cjs";
4
- //#region src/server/reddit-conversions-api.d.ts
5
4
  /**
6
5
  * https://ads-api.reddit.com/docs/v3/operations/Post%20Conversion%20Events
7
6
  * https://business.reddithelp.com/s/article/map-a-catalog-to-a-signal-source
@@ -80,5 +79,4 @@ export interface CreateRedditEventDTO {
80
79
  }
81
80
  export declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, actionSource?: EventActionSource): RedditEvent;
82
81
  export declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, testId?: string, actionSource?: EventActionSource): Promise<void>;
83
- //#endregion
84
82
  //# sourceMappingURL=reddit-conversions-api.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reddit-conversions-api.d.cts","names":[],"sources":["../../src/server/reddit-conversions-api.ts"],"mappings":";;;;;;;;iBAaiB;;EAEf;;EAGA;;;;;EAMA;;;;;EAMA;EAEA;IACE,eAAe;IACf;;;;;;;EAQF;IACE;IACA;IACA;IACA;IACA;MAAa;MAAY;MAAe;;;EAG1C;IACE;IACA;IACA;IACA;IACA;;IAGA;;IAGA;;;;;;IAMA;IAEA;MAAsB;MAAe;;;;;;IAMrC;MACE;MACA;MACA;;;;iBAKW;EACf;IAAQ;IAAkB,QAAQ;;;wBAGpB,eAEd,OAAO,iBACP,MAAM,kBACN,eAAe,oBACd;wBAoDmB,WACpB,qBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,iBACA,eAAe,oBAAiB"}
1
+ {"version":3,"file":"reddit-conversions-api.d.cts","names":[],"sources":["../../src/server/reddit-conversions-api.ts"],"mappings":";;;;;;;iBAaiB;;EAEf;;EAGA;;;;;EAMA;;;;;EAMA;EAEA;IACE,eAAe;IACf;;;;;;;EAQF;IACE;IACA;IACA;IACA;IACA;MAAa;MAAY;MAAe;;;EAG1C;IACE;IACA;IACA;IACA;IACA;;IAGA;;IAGA;;;;;;IAMA;IAEA;MAAsB;MAAe;;;;;;IAMrC;MACE;MACA;MACA;;;;iBAKW;EACf;IAAQ;IAAkB,QAAQ;;;wBAGpB,eAEd,OAAO,iBACP,MAAM,kBACN,eAAe,oBACd;wBAoDmB,WACpB,qBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,iBACA,eAAe,oBAAiB"}
@@ -1,7 +1,6 @@
1
1
  import { TrackEvent, UserProvidedData } from "../track/types.mjs";
2
2
  import { ServerStandardEvent } from "../track/rdt.mjs";
3
3
  import { EventActionSource } from "./action-source.mjs";
4
- //#region src/server/reddit-conversions-api.d.ts
5
4
  /**
6
5
  * https://ads-api.reddit.com/docs/v3/operations/Post%20Conversion%20Events
7
6
  * https://business.reddithelp.com/s/article/map-a-catalog-to-a-signal-source
@@ -80,5 +79,4 @@ export interface CreateRedditEventDTO {
80
79
  }
81
80
  export declare function getServerEvent(event: TrackEvent<any>, data: UserProvidedData, actionSource?: EventActionSource): RedditEvent;
82
81
  export declare function sendEvents(accessToken: string, pixelId: string, events: TrackEvent<any>[], data?: UserProvidedData, testId?: string, actionSource?: EventActionSource): Promise<void>;
83
- //#endregion
84
82
  //# sourceMappingURL=reddit-conversions-api.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reddit-conversions-api.d.mts","names":[],"sources":["../../src/server/reddit-conversions-api.ts"],"mappings":";;;;;;;;iBAaiB;;EAEf;;EAGA;;;;;EAMA;;;;;EAMA;EAEA;IACE,eAAe;IACf;;;;;;;EAQF;IACE;IACA;IACA;IACA;IACA;MAAa;MAAY;MAAe;;;EAG1C;IACE;IACA;IACA;IACA;IACA;;IAGA;;IAGA;;;;;;IAMA;IAEA;MAAsB;MAAe;;;;;;IAMrC;MACE;MACA;MACA;;;;iBAKW;EACf;IAAQ;IAAkB,QAAQ;;;wBAGpB,eAEd,OAAO,iBACP,MAAM,kBACN,eAAe,oBACd;wBAoDmB,WACpB,qBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,iBACA,eAAe,oBAAiB"}
1
+ {"version":3,"file":"reddit-conversions-api.d.mts","names":[],"sources":["../../src/server/reddit-conversions-api.ts"],"mappings":";;;;;;;iBAaiB;;EAEf;;EAGA;;;;;EAMA;;;;;EAMA;EAEA;IACE,eAAe;IACf;;;;;;;EAQF;IACE;IACA;IACA;IACA;IACA;MAAa;MAAY;MAAe;;;EAG1C;IACE;IACA;IACA;IACA;IACA;;IAGA;;IAGA;;;;;;IAMA;IAEA;MAAsB;MAAe;;;;;;IAMrC;MACE;MACA;MACA;;;;iBAKW;EACf;IAAQ;IAAkB,QAAQ;;;wBAGpB,eAEd,OAAO,iBACP,MAAM,kBACN,eAAe,oBACd;wBAoDmB,WACpB,qBACA,iBAEA,QAAQ,mBACR,OAAM,kBACN,iBACA,eAAe,oBAAiB"}
@@ -5,7 +5,7 @@ import { redditClickId, redditUuid } from "./click-ids.mjs";
5
5
  import { pageLocation } from "./page-location.mjs";
6
6
  import { mapRDTEvent, mapServerStandardEvent } from "../track/rdt.mjs";
7
7
  import { fetch } from "@shware/utils";
8
- //#region src/server/reddit-conversions-api.ts
8
+ // src/server/reddit-conversions-api.ts
9
9
  function getServerEvent(event, data, actionSource) {
10
10
  const { id, name, properties, tags, platform, created_at } = event;
11
11
  const [type, params] = mapRDTEvent(name, properties, id);
@@ -69,7 +69,6 @@ async function sendEvents(accessToken, pixelId, events, data = {}, testId, actio
69
69
  console.error("Failed to send Reddit conversion, network error:", error);
70
70
  }
71
71
  }
72
- //#endregion
73
72
  export { getServerEvent, sendEvents };
74
73
 
75
74
  //# sourceMappingURL=reddit-conversions-api.mjs.map
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/setup/index.ts
2
+ // src/setup/index.ts
3
3
  const cache = { tags: null };
4
4
  const config = {
5
5
  endpoint: "",
@@ -35,7 +35,6 @@ function setupAnalytics(init) {
35
35
  console.error("analytics deepLink.listen failed", error);
36
36
  }
37
37
  }
38
- //#endregion
39
38
  exports.cache = cache;
40
39
  exports.config = config;
41
40
  exports.setupAnalytics = setupAnalytics;
@@ -1,6 +1,5 @@
1
1
  import { Environment, Platform, ThirdPartyTracker, TrackTags } from "../track/types.cjs";
2
2
  import { ThirdPartyUserSetter } from "../visitor/types.cjs";
3
- //#region src/setup/index.d.ts
4
3
  export interface Storage {
5
4
  getItem: (key: string) => string | null;
6
5
  setItem: (key: string, value: string) => void;
@@ -49,6 +48,5 @@ interface Cache {
49
48
  export declare const cache: Cache;
50
49
  export declare const config: Config;
51
50
  export declare function setupAnalytics(init: Options): void;
52
- //#endregion
53
51
  export {};
54
52
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/setup/index.ts"],"mappings":";;;iBAGiB;EACf,UAAU;EACV,UAAU,aAAa;;;;;;;iBAQR;;EAEf;;EAEA,eAAe,YAAY,QAAQ;;iBAGpB;EACf;EACA,SAAS;EACT;EACA,UAAU;EACV,aAAa;EACb,eAAe,YAAY,QAAQ;EACnC,4BAA4B;EAC5B,mBAAmB,yBAAyB,QAAQ;EACpD,qBAAqB;EACrB,wBAAwB;;EAExB,WAAW;;UAGH;EACR;EACA;EACA,SAAS;EACT,UAAU;EACV,aAAa;EACb,eAAe,YAAY,QAAQ;EACnC,4BAA4B;EAC5B,kBAAkB,yBAAyB,QAAQ;EACnD,oBAAoB;EACpB,uBAAuB;EACvB,UAAU;;UAGF;EACR,MAAM;;qBAGK,OAAO;qBAKP,QAAQ;wBAeL,eAAe,MAAM"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/setup/index.ts"],"mappings":";;iBAGiB;EACf,UAAU;EACV,UAAU,aAAa;;;;;;;iBAQR;;EAEf;;EAEA,eAAe,YAAY,QAAQ;;iBAGpB;EACf;EACA,SAAS;EACT;EACA,UAAU;EACV,aAAa;EACb,eAAe,YAAY,QAAQ;EACnC,4BAA4B;EAC5B,mBAAmB,yBAAyB,QAAQ;EACpD,qBAAqB;EACrB,wBAAwB;;EAExB,WAAW;;UAGH;EACR;EACA;EACA,SAAS;EACT,UAAU;EACV,aAAa;EACb,eAAe,YAAY,QAAQ;EACnC,4BAA4B;EAC5B,kBAAkB,yBAAyB,QAAQ;EACnD,oBAAoB;EACpB,uBAAuB;EACvB,UAAU;;UAGF;EACR,MAAM;;qBAGK,OAAO;qBAKP,QAAQ;wBAeL,eAAe,MAAM"}
@@ -1,6 +1,5 @@
1
1
  import { Environment, Platform, ThirdPartyTracker, TrackTags } from "../track/types.mjs";
2
2
  import { ThirdPartyUserSetter } from "../visitor/types.mjs";
3
- //#region src/setup/index.d.ts
4
3
  export interface Storage {
5
4
  getItem: (key: string) => string | null;
6
5
  setItem: (key: string, value: string) => void;
@@ -49,6 +48,5 @@ interface Cache {
49
48
  export declare const cache: Cache;
50
49
  export declare const config: Config;
51
50
  export declare function setupAnalytics(init: Options): void;
52
- //#endregion
53
51
  export {};
54
52
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/setup/index.ts"],"mappings":";;;iBAGiB;EACf,UAAU;EACV,UAAU,aAAa;;;;;;;iBAQR;;EAEf;;EAEA,eAAe,YAAY,QAAQ;;iBAGpB;EACf;EACA,SAAS;EACT;EACA,UAAU;EACV,aAAa;EACb,eAAe,YAAY,QAAQ;EACnC,4BAA4B;EAC5B,mBAAmB,yBAAyB,QAAQ;EACpD,qBAAqB;EACrB,wBAAwB;;EAExB,WAAW;;UAGH;EACR;EACA;EACA,SAAS;EACT,UAAU;EACV,aAAa;EACb,eAAe,YAAY,QAAQ;EACnC,4BAA4B;EAC5B,kBAAkB,yBAAyB,QAAQ;EACnD,oBAAoB;EACpB,uBAAuB;EACvB,UAAU;;UAGF;EACR,MAAM;;qBAGK,OAAO;qBAKP,QAAQ;wBAeL,eAAe,MAAM"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/setup/index.ts"],"mappings":";;iBAGiB;EACf,UAAU;EACV,UAAU,aAAa;;;;;;;iBAQR;;EAEf;;EAEA,eAAe,YAAY,QAAQ;;iBAGpB;EACf;EACA,SAAS;EACT;EACA,UAAU;EACV,aAAa;EACb,eAAe,YAAY,QAAQ;EACnC,4BAA4B;EAC5B,mBAAmB,yBAAyB,QAAQ;EACpD,qBAAqB;EACrB,wBAAwB;;EAExB,WAAW;;UAGH;EACR;EACA;EACA,SAAS;EACT,UAAU;EACV,aAAa;EACb,eAAe,YAAY,QAAQ;EACnC,4BAA4B;EAC5B,kBAAkB,yBAAyB,QAAQ;EACnD,oBAAoB;EACpB,uBAAuB;EACvB,UAAU;;UAGF;EACR,MAAM;;qBAGK,OAAO;qBAKP,QAAQ;wBAeL,eAAe,MAAM"}
@@ -1,4 +1,4 @@
1
- //#region src/setup/index.ts
1
+ // src/setup/index.ts
2
2
  const cache = { tags: null };
3
3
  const config = {
4
4
  endpoint: "",
@@ -34,7 +34,6 @@ function setupAnalytics(init) {
34
34
  console.error("analytics deepLink.listen failed", error);
35
35
  }
36
36
  }
37
- //#endregion
38
37
  export { cache, config, setupAnalytics };
39
38
 
40
39
  //# sourceMappingURL=index.mjs.map
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_setup_index = require("./index.cjs");
3
3
  const require_constants_storage = require("../constants/storage.cjs");
4
4
  let uuid = require("uuid");
5
- //#region src/setup/session.ts
5
+ // src/setup/session.ts
6
6
  const SESSION_TIMEOUT = 18e5;
7
7
  /**
8
8
  * `<version>.<id>.<lastEventTime>`, compact and cookie-safe rather than JSON: `{`, `"`
@@ -138,7 +138,6 @@ let session;
138
138
  function getSession() {
139
139
  return session ??= new Session();
140
140
  }
141
- //#endregion
142
141
  exports.SESSION_TIMEOUT = SESSION_TIMEOUT;
143
142
  exports.getSession = getSession;
144
143
 
@@ -1,4 +1,3 @@
1
- //#region src/setup/session.d.ts
2
1
  export declare const SESSION_TIMEOUT: number;
3
2
  /** The session an event belongs to, and whether that event is the one that started it. */
4
3
  interface SessionForEvent {
@@ -70,6 +69,5 @@ declare class Session {
70
69
  * visitor across every request the isolate serves. Import it there; do not track.
71
70
  */
72
71
  export declare function getSession(): Session;
73
- //#endregion
74
72
  export {};
75
73
  //# sourceMappingURL=session.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"session.d.cts","names":[],"sources":["../../src/setup/session.ts"],"mappings":";qBAIa;;UAiBH;EACR;EACA;;cA8BI;;;;;;;;;UASI;UACA;UAEA;UACA;UACA;EAER;;;;;;;EAeA,QAAK,mBAAqB,2BAA8B;;;;;;;;EA6BxD;EAWA;EAEA,eAAY;EAIZ;EAWA;EAKA;EAKA;EAKA;EAKA,mBAAgB,OAAW;EAK3B;;;;;;;;;;;;;;;;;;;;;;;;;;wBAkCc,cAAU"}
1
+ {"version":3,"file":"session.d.cts","names":[],"sources":["../../src/setup/session.ts"],"mappings":"A,qBAIa;;UAiBH;EACR;EACA;;cA8BI;;;;;;;;;UASI;UACA;UAEA;UACA;UACA;EAER;;;;;;;EAeA,QAAK,mBAAqB,2BAA8B;;;;;;;;EA6BxD;EAWA;EAEA,eAAY;EAIZ;EAWA;EAKA;EAKA;EAKA;EAKA,mBAAgB,OAAW;EAK3B;;;;;;;;;;;;;;;;;;;;;;;;;;wBAkCc,cAAU"}
@@ -1,4 +1,3 @@
1
- //#region src/setup/session.d.ts
2
1
  export declare const SESSION_TIMEOUT: number;
3
2
  /** The session an event belongs to, and whether that event is the one that started it. */
4
3
  interface SessionForEvent {
@@ -70,6 +69,5 @@ declare class Session {
70
69
  * visitor across every request the isolate serves. Import it there; do not track.
71
70
  */
72
71
  export declare function getSession(): Session;
73
- //#endregion
74
72
  export {};
75
73
  //# sourceMappingURL=session.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"session.d.mts","names":[],"sources":["../../src/setup/session.ts"],"mappings":";qBAIa;;UAiBH;EACR;EACA;;cA8BI;;;;;;;;;UASI;UACA;UAEA;UACA;UACA;EAER;;;;;;;EAeA,QAAK,mBAAqB,2BAA8B;;;;;;;;EA6BxD;EAWA;EAEA,eAAY;EAIZ;EAWA;EAKA;EAKA;EAKA;EAKA,mBAAgB,OAAW;EAK3B;;;;;;;;;;;;;;;;;;;;;;;;;;wBAkCc,cAAU"}
1
+ {"version":3,"file":"session.d.mts","names":[],"sources":["../../src/setup/session.ts"],"mappings":"A,qBAIa;;UAiBH;EACR;EACA;;cA8BI;;;;;;;;;UASI;UACA;UAEA;UACA;UACA;EAER;;;;;;;EAeA,QAAK,mBAAqB,2BAA8B;;;;;;;;EA6BxD;EAWA;EAEA,eAAY;EAIZ;EAWA;EAKA;EAKA;EAKA;EAKA,mBAAgB,OAAW;EAK3B;;;;;;;;;;;;;;;;;;;;;;;;;;wBAkCc,cAAU"}
@@ -1,7 +1,7 @@
1
1
  import { config } from "./index.mjs";
2
2
  import { keys } from "../constants/storage.mjs";
3
3
  import { v7 } from "uuid";
4
- //#region src/setup/session.ts
4
+ // src/setup/session.ts
5
5
  const SESSION_TIMEOUT = 18e5;
6
6
  /**
7
7
  * `<version>.<id>.<lastEventTime>`, compact and cookie-safe rather than JSON: `{`, `"`
@@ -137,7 +137,6 @@ let session;
137
137
  function getSession() {
138
138
  return session ??= new Session();
139
139
  }
140
- //#endregion
141
140
  export { SESSION_TIMEOUT, getSession };
142
141
 
143
142
  //# sourceMappingURL=session.mjs.map
@@ -1,12 +1,12 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_track_index = require("../track/index.cjs");
3
3
  const require_hooks_use_outbound_click_analytics = require("../hooks/use-outbound-click-analytics.cjs");
4
+ const require_hooks_use_report_web_vitals = require("../hooks/use-report-web-vitals.cjs");
4
5
  const require_hooks_use_uet_id_sync = require("../hooks/use-uet-id-sync.cjs");
5
6
  const require_hooks_use_web_analytics = require("../hooks/use-web-analytics.cjs");
6
- const require_hooks_use_report_web_vitals = require("../hooks/use-report-web-vitals.cjs");
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
8
8
  let _tanstack_react_router = require("@tanstack/react-router");
9
- //#region src/tanstack/analytics.tsx
9
+ // src/tanstack/analytics.tsx
10
10
  function Analytics({ gaId, gaSrc, nonce, debugMode, metaPixelId, openaiPixelId, redditPixelId, linkedInPartnerId, uetTagId, uetCustomerId, uetConsent = { ad_storage: "granted" }, hotjarId, facebookAppId, reportWebVitals = true }) {
11
11
  const { pathname, searchStr } = (0, _tanstack_react_router.useLocation)();
12
12
  require_hooks_use_web_analytics.useWebAnalytics(pathname, searchStr);
@@ -179,7 +179,6 @@ function Analytics({ gaId, gaSrc, nonce, debugMode, metaPixelId, openaiPixelId,
179
179
  })
180
180
  ] });
181
181
  }
182
- //#endregion
183
182
  exports.Analytics = Analytics;
184
183
 
185
184
  //# sourceMappingURL=analytics.cjs.map
@@ -2,7 +2,6 @@ import { GaId } from "../track/gtag.cjs";
2
2
  import { PixelId } from "../track/fbq.cjs";
3
3
  import { PixelId as PixelId$1 } from "../track/rdt.cjs";
4
4
  import { UETConsent } from "../track/uetq.cjs";
5
- //#region src/tanstack/analytics.d.ts
6
5
  interface Props {
7
6
  gaId?: GaId;
8
7
  gaSrc?: string;
@@ -30,6 +29,5 @@ interface Props {
30
29
  reportWebVitals?: boolean;
31
30
  }
32
31
  export declare function Analytics({ gaId, gaSrc, nonce, debugMode, metaPixelId, openaiPixelId, redditPixelId, linkedInPartnerId, uetTagId, uetCustomerId, uetConsent, hotjarId, facebookAppId, reportWebVitals }: Props): import("react").JSX.Element;
33
- //#endregion
34
32
  export {};
35
33
  //# sourceMappingURL=analytics.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"analytics.d.cts","names":["MetaPixelId","RedditPixelId"],"sources":["../../src/tanstack/analytics.tsx"],"mappings":";;;;;UAWU;EACR,OAAO;EACP;EACA,cAAcA;EACd;EACA,gBAAgBC;EAChB;;EAEA;;EAEA;;;;;;;;;EASA,aAAa;EACb;EACA;EACA;EACA;EACA;;wBAGc,YACd,MACA,OACA,OACA,WACA,aACA,eACA,eACA,mBACA,UACA,eACA,YACA,UACA,eACA,mBACC,wBAAK,IAAA"}
1
+ {"version":3,"file":"analytics.d.cts","names":["MetaPixelId","RedditPixelId"],"sources":["../../src/tanstack/analytics.tsx"],"mappings":";;;;UAWU;EACR,OAAO;EACP;EACA,cAAcA;EACd;EACA,gBAAgBC;EAChB;;EAEA;;EAEA;;;;;;;;;EASA,aAAa;EACb;EACA;EACA;EACA;EACA;;wBAGc,YACd,MACA,OACA,OACA,WACA,aACA,eACA,eACA,mBACA,UACA,eACA,YACA,UACA,eACA,mBACC,wBAAK,IAAA"}
@@ -2,7 +2,6 @@ import { GaId } from "../track/gtag.mjs";
2
2
  import { PixelId } from "../track/fbq.mjs";
3
3
  import { PixelId as PixelId$1 } from "../track/rdt.mjs";
4
4
  import { UETConsent } from "../track/uetq.mjs";
5
- //#region src/tanstack/analytics.d.ts
6
5
  interface Props {
7
6
  gaId?: GaId;
8
7
  gaSrc?: string;
@@ -30,6 +29,5 @@ interface Props {
30
29
  reportWebVitals?: boolean;
31
30
  }
32
31
  export declare function Analytics({ gaId, gaSrc, nonce, debugMode, metaPixelId, openaiPixelId, redditPixelId, linkedInPartnerId, uetTagId, uetCustomerId, uetConsent, hotjarId, facebookAppId, reportWebVitals }: Props): import("react").JSX.Element;
33
- //#endregion
34
32
  export {};
35
33
  //# sourceMappingURL=analytics.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"analytics.d.mts","names":["MetaPixelId","RedditPixelId"],"sources":["../../src/tanstack/analytics.tsx"],"mappings":";;;;;UAWU;EACR,OAAO;EACP;EACA,cAAcA;EACd;EACA,gBAAgBC;EAChB;;EAEA;;EAEA;;;;;;;;;EASA,aAAa;EACb;EACA;EACA;EACA;EACA;;wBAGc,YACd,MACA,OACA,OACA,WACA,aACA,eACA,eACA,mBACA,UACA,eACA,YACA,UACA,eACA,mBACC,wBAAK,IAAA"}
1
+ {"version":3,"file":"analytics.d.mts","names":["MetaPixelId","RedditPixelId"],"sources":["../../src/tanstack/analytics.tsx"],"mappings":";;;;UAWU;EACR,OAAO;EACP;EACA,cAAcA;EACd;EACA,gBAAgBC;EAChB;;EAEA;;EAEA;;;;;;;;;EASA,aAAa;EACb;EACA;EACA;EACA;EACA;;wBAGc,YACd,MACA,OACA,OACA,WACA,aACA,eACA,eACA,mBACA,UACA,eACA,YACA,UACA,eACA,mBACC,wBAAK,IAAA"}
@@ -1,11 +1,11 @@
1
1
  import { track } from "../track/index.mjs";
2
2
  import { useOutboundClickAnalytics } from "../hooks/use-outbound-click-analytics.mjs";
3
+ import { useReportWebVitals } from "../hooks/use-report-web-vitals.mjs";
3
4
  import { useUETIdSync } from "../hooks/use-uet-id-sync.mjs";
4
5
  import { useWebAnalytics } from "../hooks/use-web-analytics.mjs";
5
- import { useReportWebVitals } from "../hooks/use-report-web-vitals.mjs";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  import { useLocation } from "@tanstack/react-router";
8
- //#region src/tanstack/analytics.tsx
8
+ // src/tanstack/analytics.tsx
9
9
  function Analytics({ gaId, gaSrc, nonce, debugMode, metaPixelId, openaiPixelId, redditPixelId, linkedInPartnerId, uetTagId, uetCustomerId, uetConsent = { ad_storage: "granted" }, hotjarId, facebookAppId, reportWebVitals = true }) {
10
10
  const { pathname, searchStr } = useLocation();
11
11
  useWebAnalytics(pathname, searchStr);
@@ -178,7 +178,6 @@ function Analytics({ gaId, gaSrc, nonce, debugMode, metaPixelId, openaiPixelId,
178
178
  })
179
179
  ] });
180
180
  }
181
- //#endregion
182
181
  export { Analytics };
183
182
 
184
183
  //# sourceMappingURL=analytics.mjs.map
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_click_id_index = require("../click-id/index.cjs");
3
3
  let _tanstack_react_start = require("@tanstack/react-start");
4
- //#region src/tanstack/middleware.ts
4
+ // src/tanstack/middleware.ts
5
5
  /**
6
6
  * Whether a response could be stored by a shared cache (a CDN) under its `Cache-Control`. One
7
7
  * that is `private` or `no-store` already cannot, so a per-user `Set-Cookie` on it is safe as it
@@ -60,7 +60,6 @@ function createClickIdMiddleware(options) {
60
60
  return result;
61
61
  });
62
62
  }
63
- //#endregion
64
63
  exports.createClickIdMiddleware = createClickIdMiddleware;
65
64
 
66
65
  //# sourceMappingURL=middleware.cjs.map
@@ -1,4 +1,3 @@
1
- //#region src/tanstack/middleware.d.ts
2
1
  export interface ClickIdMiddlewareOptions {
3
2
  /**
4
3
  * `Domain` attribute for the cookies: the site's registrable domain, e.g. `.shware.io`, where the
@@ -59,5 +58,4 @@ export interface ClickIdMiddlewareOptions {
59
58
  * reference: https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/fbp-and-fbc
60
59
  */
61
60
  export declare function createClickIdMiddleware(options: ClickIdMiddlewareOptions): import("@tanstack/react-start").RequestMiddlewareAfterServer<{}, undefined, undefined>;
62
- //#endregion
63
61
  //# sourceMappingURL=middleware.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.d.cts","names":[],"sources":["../../src/tanstack/middleware.ts"],"mappings":";iBAGiB;;;;;;EAMf;;EAEA;;EAEA;;;;;;;;;EASA;;;;;;;;EAQA;;;;;EAKA,iBAAiB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgDZ,wBAAwB,SAAS,2DAAwB"}
1
+ {"version":3,"file":"middleware.d.cts","names":[],"sources":["../../src/tanstack/middleware.ts"],"mappings":"A,iBAGiB;;;;;;EAMf;;EAEA;;EAEA;;;;;;;;;EASA;;;;;;;;EAQA;;;;;EAKA,iBAAiB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgDZ,wBAAwB,SAAS,2DAAwB"}
@@ -1,4 +1,3 @@
1
- //#region src/tanstack/middleware.d.ts
2
1
  export interface ClickIdMiddlewareOptions {
3
2
  /**
4
3
  * `Domain` attribute for the cookies: the site's registrable domain, e.g. `.shware.io`, where the
@@ -59,5 +58,4 @@ export interface ClickIdMiddlewareOptions {
59
58
  * reference: https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/fbp-and-fbc
60
59
  */
61
60
  export declare function createClickIdMiddleware(options: ClickIdMiddlewareOptions): import("@tanstack/react-start").RequestMiddlewareAfterServer<{}, undefined, undefined>;
62
- //#endregion
63
61
  //# sourceMappingURL=middleware.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.d.mts","names":[],"sources":["../../src/tanstack/middleware.ts"],"mappings":";iBAGiB;;;;;;EAMf;;EAEA;;EAEA;;;;;;;;;EASA;;;;;;;;EAQA;;;;;EAKA,iBAAiB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgDZ,wBAAwB,SAAS,2DAAwB"}
1
+ {"version":3,"file":"middleware.d.mts","names":[],"sources":["../../src/tanstack/middleware.ts"],"mappings":"A,iBAGiB;;;;;;EAMf;;EAEA;;EAEA;;;;;;;;;EASA;;;;;;;;EAQA;;;;;EAKA,iBAAiB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgDZ,wBAAwB,SAAS,2DAAwB"}
@@ -1,6 +1,6 @@
1
1
  import { resolveClickIdCookies, toSetCookieHeaders } from "../click-id/index.mjs";
2
2
  import { createMiddleware } from "@tanstack/react-start";
3
- //#region src/tanstack/middleware.ts
3
+ // src/tanstack/middleware.ts
4
4
  /**
5
5
  * Whether a response could be stored by a shared cache (a CDN) under its `Cache-Control`. One
6
6
  * that is `private` or `no-store` already cannot, so a per-user `Set-Cookie` on it is safe as it
@@ -59,7 +59,6 @@ function createClickIdMiddleware(options) {
59
59
  return result;
60
60
  });
61
61
  }
62
- //#endregion
63
62
  export { createClickIdMiddleware };
64
63
 
65
64
  //# sourceMappingURL=middleware.mjs.map
@@ -1,6 +1,4 @@
1
- //#region src/test/native-modules.d.ts
2
1
  // This Expo entry point only installs the localStorage shim and exports no values.
3
2
  declare module 'expo-sqlite/localStorage/install' {}
4
- //#endregion
5
3
  export {};
6
4
  //# sourceMappingURL=native-modules.d.cts.map
@@ -1,6 +1,4 @@
1
- //#region src/test/native-modules.d.ts
2
1
  // This Expo entry point only installs the localStorage shim and exports no values.
3
2
  declare module 'expo-sqlite/localStorage/install' {}
4
- //#endregion
5
3
  export {};
6
4
  //# sourceMappingURL=native-modules.d.mts.map
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/test/setup.ts
2
+ // src/test/setup.ts
3
3
  /**
4
4
  * The SDK's state — `config`, `cache`, the session singleton, the track queue — lives in module
5
5
  * scope, exactly as it does in a browser. Tests therefore load the modules fresh per test with
@@ -44,7 +44,6 @@ function textRequestBody(init) {
44
44
  if (typeof init?.body !== "string") throw new Error("Expected a text request body");
45
45
  return init.body;
46
46
  }
47
- //#endregion
48
47
  exports.baseOptions = baseOptions;
49
48
  exports.jsonResponse = jsonResponse;
50
49
  exports.memoryStorage = memoryStorage;
@@ -1,5 +1,4 @@
1
1
  import { Options } from "../setup/index.cjs";
2
- //#region src/test/setup.d.ts
3
2
  /**
4
3
  * The SDK's state — `config`, `cache`, the session singleton, the track queue — lives in module
5
4
  * scope, exactly as it does in a browser. Tests therefore load the modules fresh per test with
@@ -18,5 +17,4 @@ export declare function jsonResponse(data: unknown, status?: number): Response;
18
17
  export declare function requestUrl(input: Parameters<typeof globalThis.fetch>[0]): string;
19
18
  /** These transports serialize JSON to a text body; an absent or binary body is a test failure. */
20
19
  export declare function textRequestBody(init: RequestInit | undefined): string;
21
- //#endregion
22
20
  //# sourceMappingURL=setup.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setup.d.cts","names":[],"sources":["../../src/test/setup.ts"],"mappings":";;;;;;;;wBASgB,cAAc,OAAM;;EAIjB,UAAA;EACA,UAAA,aAAM;;wBAMT,YAAY,YAAW,QAAQ,WAAgB;;wBAc/C,aAAa,eAAe,kBAAY;;wBAQxC,WAAW,OAAO,kBAAkB,WAAW;;wBAK/C,gBAAgB,MAAM"}
1
+ {"version":3,"file":"setup.d.cts","names":[],"sources":["../../src/test/setup.ts"],"mappings":";;;;;;;wBASgB,cAAc,OAAM;;EAIjB,UAAA;EACA,UAAA,aAAM;;wBAMT,YAAY,YAAW,QAAQ,WAAgB;;wBAc/C,aAAa,eAAe,kBAAY;;wBAQxC,WAAW,OAAO,kBAAkB,WAAW;;wBAK/C,gBAAgB,MAAM"}
@@ -1,5 +1,4 @@
1
1
  import { Options } from "../setup/index.mjs";
2
- //#region src/test/setup.d.ts
3
2
  /**
4
3
  * The SDK's state — `config`, `cache`, the session singleton, the track queue — lives in module
5
4
  * scope, exactly as it does in a browser. Tests therefore load the modules fresh per test with
@@ -18,5 +17,4 @@ export declare function jsonResponse(data: unknown, status?: number): Response;
18
17
  export declare function requestUrl(input: Parameters<typeof globalThis.fetch>[0]): string;
19
18
  /** These transports serialize JSON to a text body; an absent or binary body is a test failure. */
20
19
  export declare function textRequestBody(init: RequestInit | undefined): string;
21
- //#endregion
22
20
  //# sourceMappingURL=setup.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setup.d.mts","names":[],"sources":["../../src/test/setup.ts"],"mappings":";;;;;;;;wBASgB,cAAc,OAAM;;EAIjB,UAAA;EACA,UAAA,aAAM;;wBAMT,YAAY,YAAW,QAAQ,WAAgB;;wBAc/C,aAAa,eAAe,kBAAY;;wBAQxC,WAAW,OAAO,kBAAkB,WAAW;;wBAK/C,gBAAgB,MAAM"}
1
+ {"version":3,"file":"setup.d.mts","names":[],"sources":["../../src/test/setup.ts"],"mappings":";;;;;;;wBASgB,cAAc,OAAM;;EAIjB,UAAA;EACA,UAAA,aAAM;;wBAMT,YAAY,YAAW,QAAQ,WAAgB;;wBAc/C,aAAa,eAAe,kBAAY;;wBAQxC,WAAW,OAAO,kBAAkB,WAAW;;wBAK/C,gBAAgB,MAAM"}
@@ -1,4 +1,4 @@
1
- //#region src/test/setup.ts
1
+ // src/test/setup.ts
2
2
  /**
3
3
  * The SDK's state — `config`, `cache`, the session singleton, the track queue — lives in module
4
4
  * scope, exactly as it does in a browser. Tests therefore load the modules fresh per test with
@@ -43,7 +43,6 @@ function textRequestBody(init) {
43
43
  if (typeof init?.body !== "string") throw new Error("Expected a text request body");
44
44
  return init.body;
45
45
  }
46
- //#endregion
47
46
  export { baseOptions, jsonResponse, memoryStorage, requestUrl, textRequestBody };
48
47
 
49
48
  //# sourceMappingURL=setup.mjs.map
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/third-parties/google-analytics.ts
2
+ // src/third-parties/google-analytics.ts
3
3
  function sendGAEvent(name, properties) {
4
4
  if (typeof window === "undefined" || !window.gtag) {
5
5
  console.warn("GA has not been initialized");
@@ -15,7 +15,6 @@ function setGAUser({ user_id, user_data }) {
15
15
  window.gtag("set", "user_id", user_id || null);
16
16
  if (user_data) window.gtag("set", "user_data", user_data);
17
17
  }
18
- //#endregion
19
18
  exports.sendGAEvent = sendGAEvent;
20
19
  exports.setGAUser = setGAUser;
21
20
 
@@ -1,7 +1,6 @@
1
1
  import { Gtag } from "../track/gtag.cjs";
2
2
  import { EventName, TrackName, TrackProperties } from "../track/types.cjs";
3
3
  import { UpdateVisitorDTO } from "../schema/index.cjs";
4
- //#region src/third-parties/google-analytics.d.ts
5
4
  declare global {
6
5
  interface Window {
7
6
  /** Undefined until the Google tag (gtag.js) script has loaded. */
@@ -10,5 +9,4 @@ declare global {
10
9
  }
11
10
  export declare function sendGAEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): false | undefined;
12
11
  export declare function setGAUser({ user_id, user_data }: UpdateVisitorDTO): void;
13
- //#endregion
14
12
  //# sourceMappingURL=google-analytics.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"google-analytics.d.cts","names":[],"sources":["../../src/third-parties/google-analytics.ts"],"mappings":";;;;QAIQ;YACI;;IAER,OAAO;;;wBAIK,YAAY,UAAU,WACpC,MAAM,UAAU,IAChB,aAAa,gBAAgB;wBASf,YAAY,SAAS,aAAa"}
1
+ {"version":3,"file":"google-analytics.d.cts","names":[],"sources":["../../src/third-parties/google-analytics.ts"],"mappings":";;;QAIQ;YACI;;IAER,OAAO;;;wBAIK,YAAY,UAAU,WACpC,MAAM,UAAU,IAChB,aAAa,gBAAgB;wBASf,YAAY,SAAS,aAAa"}
@@ -1,7 +1,6 @@
1
1
  import { Gtag } from "../track/gtag.mjs";
2
2
  import { EventName, TrackName, TrackProperties } from "../track/types.mjs";
3
3
  import { UpdateVisitorDTO } from "../schema/index.mjs";
4
- //#region src/third-parties/google-analytics.d.ts
5
4
  declare global {
6
5
  interface Window {
7
6
  /** Undefined until the Google tag (gtag.js) script has loaded. */
@@ -10,5 +9,4 @@ declare global {
10
9
  }
11
10
  export declare function sendGAEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): false | undefined;
12
11
  export declare function setGAUser({ user_id, user_data }: UpdateVisitorDTO): void;
13
- //#endregion
14
12
  //# sourceMappingURL=google-analytics.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"google-analytics.d.mts","names":[],"sources":["../../src/third-parties/google-analytics.ts"],"mappings":";;;;QAIQ;YACI;;IAER,OAAO;;;wBAIK,YAAY,UAAU,WACpC,MAAM,UAAU,IAChB,aAAa,gBAAgB;wBASf,YAAY,SAAS,aAAa"}
1
+ {"version":3,"file":"google-analytics.d.mts","names":[],"sources":["../../src/third-parties/google-analytics.ts"],"mappings":";;;QAIQ;YACI;;IAER,OAAO;;;wBAIK,YAAY,UAAU,WACpC,MAAM,UAAU,IAChB,aAAa,gBAAgB;wBASf,YAAY,SAAS,aAAa"}
@@ -1,4 +1,4 @@
1
- //#region src/third-parties/google-analytics.ts
1
+ // src/third-parties/google-analytics.ts
2
2
  function sendGAEvent(name, properties) {
3
3
  if (typeof window === "undefined" || !window.gtag) {
4
4
  console.warn("GA has not been initialized");
@@ -14,7 +14,6 @@ function setGAUser({ user_id, user_data }) {
14
14
  window.gtag("set", "user_id", user_id || null);
15
15
  if (user_data) window.gtag("set", "user_data", user_data);
16
16
  }
17
- //#endregion
18
17
  export { sendGAEvent, setGAUser };
19
18
 
20
19
  //# sourceMappingURL=google-analytics.mjs.map
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/third-parties/ignored-events.ts
2
+ // src/third-parties/ignored-events.ts
3
3
  const METRICS_EVENTS = [
4
4
  "CLS",
5
5
  "FCP",
@@ -38,7 +38,6 @@ const IGNORED_EVENTS = [
38
38
  ...AUTOMATICALLY_COLLECTED_EVENTS,
39
39
  ...SDK_EVENTS
40
40
  ];
41
- //#endregion
42
41
  exports.IGNORED_EVENTS = IGNORED_EVENTS;
43
42
 
44
43
  //# sourceMappingURL=ignored-events.cjs.map
@@ -1,4 +1,2 @@
1
- //#region src/third-parties/ignored-events.d.ts
2
1
  export declare const IGNORED_EVENTS: string[];
3
- //#endregion
4
2
  //# sourceMappingURL=ignored-events.d.cts.map