@shware/analytics 13.1.0 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/_virtual/_rolldown/runtime.mjs +1 -2
- package/dist/ads/google.cjs +1 -2
- package/dist/ads/google.d.cts +0 -2
- package/dist/ads/google.d.cts.map +1 -1
- package/dist/ads/google.d.mts +0 -2
- package/dist/ads/google.d.mts.map +1 -1
- package/dist/ads/google.mjs +1 -2
- package/dist/ads/meta.cjs +1 -2
- package/dist/ads/meta.d.cts +0 -2
- package/dist/ads/meta.d.cts.map +1 -1
- package/dist/ads/meta.d.mts +0 -2
- package/dist/ads/meta.d.mts.map +1 -1
- package/dist/ads/meta.mjs +1 -2
- package/dist/ads/time.cjs +1 -2
- package/dist/ads/time.d.cts +0 -2
- package/dist/ads/time.d.cts.map +1 -1
- package/dist/ads/time.d.mts +0 -2
- package/dist/ads/time.d.mts.map +1 -1
- package/dist/ads/time.mjs +1 -2
- package/dist/ads/types.d.cts +0 -2
- package/dist/ads/types.d.cts.map +1 -1
- package/dist/ads/types.d.mts +0 -2
- package/dist/ads/types.d.mts.map +1 -1
- package/dist/attribution/classify.cjs +1 -2
- package/dist/attribution/classify.d.cts +0 -2
- package/dist/attribution/classify.d.cts.map +1 -1
- package/dist/attribution/classify.d.mts +0 -2
- package/dist/attribution/classify.d.mts.map +1 -1
- package/dist/attribution/classify.mjs +1 -2
- package/dist/attribution/vocabulary.cjs +1 -2
- package/dist/attribution/vocabulary.d.cts +0 -2
- package/dist/attribution/vocabulary.d.cts.map +1 -1
- package/dist/attribution/vocabulary.d.mts +0 -2
- package/dist/attribution/vocabulary.d.mts.map +1 -1
- package/dist/attribution/vocabulary.mjs +1 -2
- package/dist/bot/generic.cjs +1 -2
- package/dist/bot/generic.d.cts +0 -2
- package/dist/bot/generic.d.cts.map +1 -1
- package/dist/bot/generic.d.mts +0 -2
- package/dist/bot/generic.d.mts.map +1 -1
- package/dist/bot/generic.mjs +1 -2
- package/dist/bot/index.cjs +1 -2
- package/dist/bot/index.d.cts +0 -2
- package/dist/bot/index.d.cts.map +1 -1
- package/dist/bot/index.d.mts +0 -2
- package/dist/bot/index.d.mts.map +1 -1
- package/dist/bot/index.mjs +1 -2
- package/dist/click-id/index.cjs +1 -2
- package/dist/click-id/index.d.cts +0 -2
- package/dist/click-id/index.d.cts.map +1 -1
- package/dist/click-id/index.d.mts +0 -2
- package/dist/click-id/index.d.mts.map +1 -1
- package/dist/click-id/index.mjs +1 -2
- package/dist/constants/storage.cjs +1 -2
- package/dist/constants/storage.d.cts +0 -2
- package/dist/constants/storage.d.cts.map +1 -1
- package/dist/constants/storage.d.mts +0 -2
- package/dist/constants/storage.d.mts.map +1 -1
- package/dist/constants/storage.mjs +1 -2
- package/dist/feedback/index.cjs +7 -2
- package/dist/feedback/index.cjs.map +1 -1
- package/dist/feedback/index.d.cts +6 -2
- package/dist/feedback/index.d.cts.map +1 -1
- package/dist/feedback/index.d.mts +6 -2
- package/dist/feedback/index.d.mts.map +1 -1
- package/dist/feedback/index.mjs +7 -2
- package/dist/feedback/index.mjs.map +1 -1
- package/dist/hooks/use-app-analytics.cjs +1 -2
- package/dist/hooks/use-app-analytics.d.cts +0 -2
- package/dist/hooks/use-app-analytics.d.cts.map +1 -1
- package/dist/hooks/use-app-analytics.d.mts +0 -2
- package/dist/hooks/use-app-analytics.d.mts.map +1 -1
- package/dist/hooks/use-app-analytics.mjs +1 -2
- package/dist/hooks/use-outbound-click-analytics.cjs +1 -2
- package/dist/hooks/use-outbound-click-analytics.d.cts +0 -2
- package/dist/hooks/use-outbound-click-analytics.d.cts.map +1 -1
- package/dist/hooks/use-outbound-click-analytics.d.mts +0 -2
- package/dist/hooks/use-outbound-click-analytics.d.mts.map +1 -1
- package/dist/hooks/use-outbound-click-analytics.mjs +1 -2
- package/dist/hooks/use-report-web-vitals.cjs +1 -2
- package/dist/hooks/use-report-web-vitals.d.cts +0 -2
- package/dist/hooks/use-report-web-vitals.d.cts.map +1 -1
- package/dist/hooks/use-report-web-vitals.d.mts +0 -2
- package/dist/hooks/use-report-web-vitals.d.mts.map +1 -1
- package/dist/hooks/use-report-web-vitals.mjs +1 -2
- package/dist/hooks/use-track-impression.cjs +1 -2
- package/dist/hooks/use-track-impression.d.cts +0 -2
- package/dist/hooks/use-track-impression.d.cts.map +1 -1
- package/dist/hooks/use-track-impression.d.mts +0 -2
- package/dist/hooks/use-track-impression.d.mts.map +1 -1
- package/dist/hooks/use-track-impression.mjs +1 -2
- package/dist/hooks/use-uet-id-sync.cjs +1 -2
- package/dist/hooks/use-uet-id-sync.d.cts +0 -2
- package/dist/hooks/use-uet-id-sync.d.cts.map +1 -1
- package/dist/hooks/use-uet-id-sync.d.mts +0 -2
- package/dist/hooks/use-uet-id-sync.d.mts.map +1 -1
- package/dist/hooks/use-uet-id-sync.mjs +1 -2
- package/dist/hooks/use-web-analytics.cjs +1 -2
- package/dist/hooks/use-web-analytics.d.cts +0 -2
- package/dist/hooks/use-web-analytics.d.cts.map +1 -1
- package/dist/hooks/use-web-analytics.d.mts +0 -2
- package/dist/hooks/use-web-analytics.d.mts.map +1 -1
- package/dist/hooks/use-web-analytics.mjs +1 -2
- package/dist/link/index.cjs +1 -2
- package/dist/link/index.d.cts +0 -2
- package/dist/link/index.d.cts.map +1 -1
- package/dist/link/index.d.mts +0 -2
- package/dist/link/index.d.mts.map +1 -1
- package/dist/link/index.mjs +1 -2
- package/dist/native/deep-link.cjs +1 -2
- package/dist/native/deep-link.d.cts +0 -2
- package/dist/native/deep-link.d.cts.map +1 -1
- package/dist/native/deep-link.d.mts +0 -2
- package/dist/native/deep-link.d.mts.map +1 -1
- package/dist/native/deep-link.mjs +1 -2
- package/dist/native/fbsdk.cjs +1 -2
- package/dist/native/fbsdk.d.cts +0 -2
- package/dist/native/fbsdk.d.cts.map +1 -1
- package/dist/native/fbsdk.d.mts +0 -2
- package/dist/native/fbsdk.d.mts.map +1 -1
- package/dist/native/fbsdk.mjs +1 -2
- package/dist/native/fingerprint.cjs +1 -2
- package/dist/native/fingerprint.d.cts +0 -2
- package/dist/native/fingerprint.d.cts.map +1 -1
- package/dist/native/fingerprint.d.mts +0 -2
- package/dist/native/fingerprint.d.mts.map +1 -1
- package/dist/native/fingerprint.mjs +1 -2
- package/dist/native/firebase.cjs +1 -2
- package/dist/native/firebase.d.cts +0 -2
- package/dist/native/firebase.d.cts.map +1 -1
- package/dist/native/firebase.d.mts +0 -2
- package/dist/native/firebase.d.mts.map +1 -1
- package/dist/native/firebase.mjs +1 -2
- package/dist/native/index.cjs +1 -1
- package/dist/native/index.mjs +1 -1
- package/dist/native/posthog.cjs +1 -2
- package/dist/native/posthog.d.cts +0 -2
- package/dist/native/posthog.d.cts.map +1 -1
- package/dist/native/posthog.d.mts +0 -2
- package/dist/native/posthog.d.mts.map +1 -1
- package/dist/native/posthog.mjs +1 -2
- package/dist/native/setup.cjs +1 -2
- package/dist/native/setup.d.cts +0 -2
- package/dist/native/setup.d.cts.map +1 -1
- package/dist/native/setup.d.mts +0 -2
- package/dist/native/setup.d.mts.map +1 -1
- package/dist/native/setup.mjs +1 -2
- package/dist/next/index.cjs +1 -2
- package/dist/next/index.d.cts +0 -2
- package/dist/next/index.d.cts.map +1 -1
- package/dist/next/index.d.mts +0 -2
- package/dist/next/index.d.mts.map +1 -1
- package/dist/next/index.mjs +1 -2
- package/dist/node_modules/.pnpm/bowser@2.14.1/node_modules/bowser/es5.cjs +1 -2
- package/dist/node_modules/.pnpm/bowser@2.14.1/node_modules/bowser/es5.mjs +1 -2
- package/dist/react-router/index.cjs +2 -3
- package/dist/react-router/index.d.cts +0 -2
- package/dist/react-router/index.d.cts.map +1 -1
- package/dist/react-router/index.d.mts +0 -2
- package/dist/react-router/index.d.mts.map +1 -1
- package/dist/react-router/index.mjs +2 -3
- package/dist/schema/index.cjs +9 -3
- package/dist/schema/index.cjs.map +1 -1
- package/dist/schema/index.d.cts +1 -2
- package/dist/schema/index.d.cts.map +1 -1
- package/dist/schema/index.d.mts +1 -2
- package/dist/schema/index.d.mts.map +1 -1
- package/dist/schema/index.mjs +9 -3
- package/dist/schema/index.mjs.map +1 -1
- package/dist/server/action-source.cjs +1 -2
- package/dist/server/action-source.d.cts +0 -2
- package/dist/server/action-source.d.cts.map +1 -1
- package/dist/server/action-source.d.mts +0 -2
- package/dist/server/action-source.d.mts.map +1 -1
- package/dist/server/action-source.mjs +1 -2
- package/dist/server/click-ids.cjs +1 -2
- package/dist/server/click-ids.d.cts +0 -2
- package/dist/server/click-ids.d.cts.map +1 -1
- package/dist/server/click-ids.d.mts +0 -2
- package/dist/server/click-ids.d.mts.map +1 -1
- package/dist/server/click-ids.mjs +1 -2
- package/dist/server/google-data-manager.cjs +1 -2
- package/dist/server/google-data-manager.d.cts +0 -2
- package/dist/server/google-data-manager.d.cts.map +1 -1
- package/dist/server/google-data-manager.d.mts +0 -2
- package/dist/server/google-data-manager.d.mts.map +1 -1
- package/dist/server/google-data-manager.mjs +1 -2
- package/dist/server/linkedin-conversions-api.cjs +1 -2
- package/dist/server/linkedin-conversions-api.d.cts +0 -2
- package/dist/server/linkedin-conversions-api.d.cts.map +1 -1
- package/dist/server/linkedin-conversions-api.d.mts +0 -2
- package/dist/server/linkedin-conversions-api.d.mts.map +1 -1
- package/dist/server/linkedin-conversions-api.mjs +1 -2
- package/dist/server/meta-capi.cjs +1 -2
- package/dist/server/meta-capi.d.cts +0 -2
- package/dist/server/meta-capi.d.cts.map +1 -1
- package/dist/server/meta-capi.d.mts +0 -2
- package/dist/server/meta-capi.d.mts.map +1 -1
- package/dist/server/meta-capi.mjs +1 -2
- package/dist/server/meta-conversions-api.cjs +1 -2
- package/dist/server/meta-conversions-api.d.cts +0 -2
- package/dist/server/meta-conversions-api.d.cts.map +1 -1
- package/dist/server/meta-conversions-api.d.mts +0 -2
- package/dist/server/meta-conversions-api.d.mts.map +1 -1
- package/dist/server/meta-conversions-api.mjs +1 -2
- package/dist/server/microsoft-conversions-api.cjs +1 -2
- package/dist/server/microsoft-conversions-api.d.cts +0 -2
- package/dist/server/microsoft-conversions-api.d.cts.map +1 -1
- package/dist/server/microsoft-conversions-api.d.mts +0 -2
- package/dist/server/microsoft-conversions-api.d.mts.map +1 -1
- package/dist/server/microsoft-conversions-api.mjs +1 -2
- package/dist/server/openai-conversions-api.cjs +1 -2
- package/dist/server/openai-conversions-api.d.cts +0 -2
- package/dist/server/openai-conversions-api.d.cts.map +1 -1
- package/dist/server/openai-conversions-api.d.mts +0 -2
- package/dist/server/openai-conversions-api.d.mts.map +1 -1
- package/dist/server/openai-conversions-api.mjs +1 -2
- package/dist/server/page-location.cjs +1 -2
- package/dist/server/page-location.d.cts +0 -2
- package/dist/server/page-location.d.cts.map +1 -1
- package/dist/server/page-location.d.mts +0 -2
- package/dist/server/page-location.d.mts.map +1 -1
- package/dist/server/page-location.mjs +1 -2
- package/dist/server/reddit-conversions-api.cjs +1 -2
- package/dist/server/reddit-conversions-api.d.cts +0 -2
- package/dist/server/reddit-conversions-api.d.cts.map +1 -1
- package/dist/server/reddit-conversions-api.d.mts +0 -2
- package/dist/server/reddit-conversions-api.d.mts.map +1 -1
- package/dist/server/reddit-conversions-api.mjs +1 -2
- package/dist/setup/index.cjs +1 -2
- package/dist/setup/index.d.cts +0 -2
- package/dist/setup/index.d.cts.map +1 -1
- package/dist/setup/index.d.mts +0 -2
- package/dist/setup/index.d.mts.map +1 -1
- package/dist/setup/index.mjs +1 -2
- package/dist/setup/session.cjs +1 -2
- package/dist/setup/session.d.cts +0 -2
- package/dist/setup/session.d.cts.map +1 -1
- package/dist/setup/session.d.mts +0 -2
- package/dist/setup/session.d.mts.map +1 -1
- package/dist/setup/session.mjs +1 -2
- package/dist/tanstack/analytics.cjs +2 -3
- package/dist/tanstack/analytics.d.cts +0 -2
- package/dist/tanstack/analytics.d.cts.map +1 -1
- package/dist/tanstack/analytics.d.mts +0 -2
- package/dist/tanstack/analytics.d.mts.map +1 -1
- package/dist/tanstack/analytics.mjs +2 -3
- package/dist/tanstack/middleware.cjs +1 -2
- package/dist/tanstack/middleware.d.cts +0 -2
- package/dist/tanstack/middleware.d.cts.map +1 -1
- package/dist/tanstack/middleware.d.mts +0 -2
- package/dist/tanstack/middleware.d.mts.map +1 -1
- package/dist/tanstack/middleware.mjs +1 -2
- package/dist/test/native-modules.d.cts +0 -2
- package/dist/test/native-modules.d.mts +0 -2
- package/dist/test/setup.cjs +1 -2
- package/dist/test/setup.d.cts +0 -2
- package/dist/test/setup.d.cts.map +1 -1
- package/dist/test/setup.d.mts +0 -2
- package/dist/test/setup.d.mts.map +1 -1
- package/dist/test/setup.mjs +1 -2
- package/dist/third-parties/google-analytics.cjs +1 -2
- package/dist/third-parties/google-analytics.d.cts +0 -2
- package/dist/third-parties/google-analytics.d.cts.map +1 -1
- package/dist/third-parties/google-analytics.d.mts +0 -2
- package/dist/third-parties/google-analytics.d.mts.map +1 -1
- package/dist/third-parties/google-analytics.mjs +1 -2
- package/dist/third-parties/ignored-events.cjs +1 -2
- package/dist/third-parties/ignored-events.d.cts +0 -2
- package/dist/third-parties/ignored-events.d.cts.map +1 -1
- package/dist/third-parties/ignored-events.d.mts +0 -2
- package/dist/third-parties/ignored-events.d.mts.map +1 -1
- package/dist/third-parties/ignored-events.mjs +1 -2
- package/dist/third-parties/linkedin-insight-tag.cjs +1 -2
- package/dist/third-parties/linkedin-insight-tag.d.cts +0 -2
- package/dist/third-parties/linkedin-insight-tag.d.cts.map +1 -1
- package/dist/third-parties/linkedin-insight-tag.d.mts +0 -2
- package/dist/third-parties/linkedin-insight-tag.d.mts.map +1 -1
- package/dist/third-parties/linkedin-insight-tag.mjs +1 -2
- package/dist/third-parties/meta-pixel.cjs +2 -3
- package/dist/third-parties/meta-pixel.d.cts +0 -2
- package/dist/third-parties/meta-pixel.d.cts.map +1 -1
- package/dist/third-parties/meta-pixel.d.mts +0 -2
- package/dist/third-parties/meta-pixel.d.mts.map +1 -1
- package/dist/third-parties/meta-pixel.mjs +2 -3
- package/dist/third-parties/microsoft-uet.cjs +1 -2
- package/dist/third-parties/microsoft-uet.d.cts +0 -2
- package/dist/third-parties/microsoft-uet.d.cts.map +1 -1
- package/dist/third-parties/microsoft-uet.d.mts +0 -2
- package/dist/third-parties/microsoft-uet.d.mts.map +1 -1
- package/dist/third-parties/microsoft-uet.mjs +1 -2
- package/dist/third-parties/openai-pixel.cjs +1 -2
- package/dist/third-parties/openai-pixel.d.cts +0 -2
- package/dist/third-parties/openai-pixel.d.cts.map +1 -1
- package/dist/third-parties/openai-pixel.d.mts +0 -2
- package/dist/third-parties/openai-pixel.d.mts.map +1 -1
- package/dist/third-parties/openai-pixel.mjs +1 -2
- package/dist/third-parties/posthog.cjs +1 -2
- package/dist/third-parties/posthog.d.cts +0 -2
- package/dist/third-parties/posthog.d.cts.map +1 -1
- package/dist/third-parties/posthog.d.mts +0 -2
- package/dist/third-parties/posthog.d.mts.map +1 -1
- package/dist/third-parties/posthog.mjs +1 -2
- package/dist/third-parties/reddit-pixel.cjs +1 -2
- package/dist/third-parties/reddit-pixel.d.cts +0 -2
- package/dist/third-parties/reddit-pixel.d.cts.map +1 -1
- package/dist/third-parties/reddit-pixel.d.mts +0 -2
- package/dist/third-parties/reddit-pixel.d.mts.map +1 -1
- package/dist/third-parties/reddit-pixel.mjs +1 -2
- package/dist/track/fbq.cjs +1 -2
- package/dist/track/fbq.d.cts +0 -2
- package/dist/track/fbq.d.cts.map +1 -1
- package/dist/track/fbq.d.mts +0 -2
- package/dist/track/fbq.d.mts.map +1 -1
- package/dist/track/fbq.mjs +1 -2
- package/dist/track/gtag.cjs +1 -2
- package/dist/track/gtag.d.cts +0 -2
- package/dist/track/gtag.d.cts.map +1 -1
- package/dist/track/gtag.d.mts +0 -2
- package/dist/track/gtag.d.mts.map +1 -1
- package/dist/track/gtag.mjs +1 -2
- package/dist/track/index.cjs +1 -2
- package/dist/track/index.d.cts +0 -2
- package/dist/track/index.d.cts.map +1 -1
- package/dist/track/index.d.mts +0 -2
- package/dist/track/index.d.mts.map +1 -1
- package/dist/track/index.mjs +1 -2
- package/dist/track/lintrk.d.cts +0 -2
- package/dist/track/lintrk.d.cts.map +1 -1
- package/dist/track/lintrk.d.mts +0 -2
- package/dist/track/lintrk.d.mts.map +1 -1
- package/dist/track/oaiq.cjs +1 -2
- package/dist/track/oaiq.d.cts +0 -2
- package/dist/track/oaiq.d.cts.map +1 -1
- package/dist/track/oaiq.d.mts +0 -2
- package/dist/track/oaiq.d.mts.map +1 -1
- package/dist/track/oaiq.mjs +1 -2
- package/dist/track/once.cjs +1 -2
- package/dist/track/once.d.cts +0 -2
- package/dist/track/once.d.cts.map +1 -1
- package/dist/track/once.d.mts +0 -2
- package/dist/track/once.d.mts.map +1 -1
- package/dist/track/once.mjs +1 -2
- package/dist/track/rdt.cjs +1 -2
- package/dist/track/rdt.d.cts +0 -2
- package/dist/track/rdt.d.cts.map +1 -1
- package/dist/track/rdt.d.mts +0 -2
- package/dist/track/rdt.d.mts.map +1 -1
- package/dist/track/rdt.mjs +1 -2
- package/dist/track/types.d.cts +0 -2
- package/dist/track/types.d.cts.map +1 -1
- package/dist/track/types.d.mts +0 -2
- package/dist/track/types.d.mts.map +1 -1
- package/dist/track/uetq.cjs +1 -2
- package/dist/track/uetq.d.cts +0 -2
- package/dist/track/uetq.d.cts.map +1 -1
- package/dist/track/uetq.d.mts +0 -2
- package/dist/track/uetq.d.mts.map +1 -1
- package/dist/track/uetq.mjs +1 -2
- package/dist/utils/field.cjs +1 -2
- package/dist/utils/field.d.cts +0 -2
- package/dist/utils/field.d.cts.map +1 -1
- package/dist/utils/field.d.mts +0 -2
- package/dist/utils/field.d.mts.map +1 -1
- package/dist/utils/field.mjs +1 -2
- package/dist/utils/redact-url.cjs +1 -2
- package/dist/utils/redact-url.d.cts +0 -2
- package/dist/utils/redact-url.d.cts.map +1 -1
- package/dist/utils/redact-url.d.mts +0 -2
- package/dist/utils/redact-url.d.mts.map +1 -1
- package/dist/utils/redact-url.mjs +1 -2
- package/dist/utils/sha256.cjs +1 -2
- package/dist/utils/sha256.d.cts +0 -2
- package/dist/utils/sha256.d.cts.map +1 -1
- package/dist/utils/sha256.d.mts +0 -2
- package/dist/utils/sha256.d.mts.map +1 -1
- package/dist/utils/sha256.mjs +1 -2
- package/dist/visitor/id.cjs +1 -2
- package/dist/visitor/id.d.cts +0 -2
- package/dist/visitor/id.d.cts.map +1 -1
- package/dist/visitor/id.d.mts +0 -2
- package/dist/visitor/id.d.mts.map +1 -1
- package/dist/visitor/id.mjs +1 -2
- package/dist/visitor/index.cjs +1 -2
- package/dist/visitor/index.d.cts +0 -2
- package/dist/visitor/index.d.cts.map +1 -1
- package/dist/visitor/index.d.mts +0 -2
- package/dist/visitor/index.d.mts.map +1 -1
- package/dist/visitor/index.mjs +1 -2
- package/dist/visitor/types.d.cts +0 -2
- package/dist/visitor/types.d.cts.map +1 -1
- package/dist/visitor/types.d.mts +0 -2
- package/dist/visitor/types.d.mts.map +1 -1
- package/dist/web/index.cjs +2 -3
- package/dist/web/index.d.cts +0 -2
- package/dist/web/index.d.cts.map +1 -1
- package/dist/web/index.d.mts +0 -2
- package/dist/web/index.d.mts.map +1 -1
- package/dist/web/index.mjs +2 -3
- package/dist/web/page-key.cjs +1 -2
- package/dist/web/page-key.d.cts +0 -2
- package/dist/web/page-key.d.cts.map +1 -1
- package/dist/web/page-key.d.mts +0 -2
- package/dist/web/page-key.d.mts.map +1 -1
- package/dist/web/page-key.mjs +1 -2
- package/package.json +9 -9
package/dist/setup/session.d.mts
CHANGED
|
@@ -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":"
|
|
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"}
|
package/dist/setup/session.mjs
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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":"
|
|
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":"
|
|
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
|
-
|
|
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
|
-
|
|
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":"
|
|
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":"
|
|
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
|
-
|
|
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
|
package/dist/test/setup.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
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;
|
package/dist/test/setup.d.cts
CHANGED
|
@@ -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":"
|
|
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"}
|
package/dist/test/setup.d.mts
CHANGED
|
@@ -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":"
|
|
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"}
|
package/dist/test/setup.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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":"
|
|
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":"
|
|
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
|
-
|
|
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
|
-
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ignored-events.d.cts","names":[],"sources":["../../src/third-parties/ignored-events.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ignored-events.d.cts","names":[],"sources":["../../src/third-parties/ignored-events.ts"],"mappings":"A,qBAkDa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ignored-events.d.mts","names":[],"sources":["../../src/third-parties/ignored-events.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ignored-events.d.mts","names":[],"sources":["../../src/third-parties/ignored-events.ts"],"mappings":"A,qBAkDa"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/third-parties/ignored-events.ts
|
|
2
2
|
const METRICS_EVENTS = [
|
|
3
3
|
"CLS",
|
|
4
4
|
"FCP",
|
|
@@ -37,7 +37,6 @@ const IGNORED_EVENTS = [
|
|
|
37
37
|
...AUTOMATICALLY_COLLECTED_EVENTS,
|
|
38
38
|
...SDK_EVENTS
|
|
39
39
|
];
|
|
40
|
-
//#endregion
|
|
41
40
|
export { IGNORED_EVENTS };
|
|
42
41
|
|
|
43
42
|
//# sourceMappingURL=ignored-events.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_utils_field = require("../utils/field.cjs");
|
|
3
|
-
|
|
3
|
+
// src/third-parties/linkedin-insight-tag.ts
|
|
4
4
|
function sendLinkedinEvent(config) {
|
|
5
5
|
return (name, _properties, event_id) => {
|
|
6
6
|
if (typeof window === "undefined" || !window.lintrk) {
|
|
@@ -26,7 +26,6 @@ function setLinkedinUser({ user_data }) {
|
|
|
26
26
|
if (!email) return;
|
|
27
27
|
window.lintrk("setUserData", { email });
|
|
28
28
|
}
|
|
29
|
-
//#endregion
|
|
30
29
|
exports.sendLinkedinEvent = sendLinkedinEvent;
|
|
31
30
|
exports.setLinkedinUser = setLinkedinUser;
|
|
32
31
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventName, TrackName, TrackProperties } from "../track/types.cjs";
|
|
2
2
|
import { UpdateVisitorDTO } from "../schema/index.cjs";
|
|
3
3
|
import { Lintrk } from "../track/lintrk.cjs";
|
|
4
|
-
//#region src/third-parties/linkedin-insight-tag.d.ts
|
|
5
4
|
declare global {
|
|
6
5
|
interface Window {
|
|
7
6
|
/** Undefined until the LinkedIn Insight Tag script has loaded. */
|
|
@@ -20,5 +19,4 @@ declare global {
|
|
|
20
19
|
export type LinkedinConversionConfig = Record<Lowercase<string>, number>;
|
|
21
20
|
export declare function sendLinkedinEvent(config: LinkedinConversionConfig): <T extends EventName>(name: TrackName<T>, _properties?: TrackProperties<T>, event_id?: string) => false | undefined;
|
|
22
21
|
export declare function setLinkedinUser({ user_data }: UpdateVisitorDTO): void;
|
|
23
|
-
//#endregion
|
|
24
22
|
//# sourceMappingURL=linkedin-insight-tag.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkedin-insight-tag.d.cts","names":[],"sources":["../../src/third-parties/linkedin-insight-tag.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"linkedin-insight-tag.d.cts","names":[],"sources":["../../src/third-parties/linkedin-insight-tag.ts"],"mappings":";;;QAKQ;YACI;;IAER,SAAS;;;;;;;;;;;;YAaD,2BAA2B,OAAO;wBAE9B,kBAAkB,QAAQ,4BAChC,UAAU,WAAS,MACnB,UAAU,IAAE,cACJ,gBAAgB,IAAE;wBAgBpB,kBAAkB,aAAa"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventName, TrackName, TrackProperties } from "../track/types.mjs";
|
|
2
2
|
import { UpdateVisitorDTO } from "../schema/index.mjs";
|
|
3
3
|
import { Lintrk } from "../track/lintrk.mjs";
|
|
4
|
-
//#region src/third-parties/linkedin-insight-tag.d.ts
|
|
5
4
|
declare global {
|
|
6
5
|
interface Window {
|
|
7
6
|
/** Undefined until the LinkedIn Insight Tag script has loaded. */
|
|
@@ -20,5 +19,4 @@ declare global {
|
|
|
20
19
|
export type LinkedinConversionConfig = Record<Lowercase<string>, number>;
|
|
21
20
|
export declare function sendLinkedinEvent(config: LinkedinConversionConfig): <T extends EventName>(name: TrackName<T>, _properties?: TrackProperties<T>, event_id?: string) => false | undefined;
|
|
22
21
|
export declare function setLinkedinUser({ user_data }: UpdateVisitorDTO): void;
|
|
23
|
-
//#endregion
|
|
24
22
|
//# sourceMappingURL=linkedin-insight-tag.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkedin-insight-tag.d.mts","names":[],"sources":["../../src/third-parties/linkedin-insight-tag.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"linkedin-insight-tag.d.mts","names":[],"sources":["../../src/third-parties/linkedin-insight-tag.ts"],"mappings":";;;QAKQ;YACI;;IAER,SAAS;;;;;;;;;;;;YAaD,2BAA2B,OAAO;wBAE9B,kBAAkB,QAAQ,4BAChC,UAAU,WAAS,MACnB,UAAU,IAAE,cACJ,gBAAgB,IAAE;wBAgBpB,kBAAkB,aAAa"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getFirst } from "../utils/field.mjs";
|
|
2
|
-
|
|
2
|
+
// src/third-parties/linkedin-insight-tag.ts
|
|
3
3
|
function sendLinkedinEvent(config) {
|
|
4
4
|
return (name, _properties, event_id) => {
|
|
5
5
|
if (typeof window === "undefined" || !window.lintrk) {
|
|
@@ -25,7 +25,6 @@ function setLinkedinUser({ user_data }) {
|
|
|
25
25
|
if (!email) return;
|
|
26
26
|
window.lintrk("setUserData", { email });
|
|
27
27
|
}
|
|
28
|
-
//#endregion
|
|
29
28
|
export { sendLinkedinEvent, setLinkedinUser };
|
|
30
29
|
|
|
31
30
|
//# sourceMappingURL=linkedin-insight-tag.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_track_fbq = require("../track/fbq.cjs");
|
|
3
2
|
const require_utils_field = require("../utils/field.cjs");
|
|
4
|
-
|
|
3
|
+
const require_track_fbq = require("../track/fbq.cjs");
|
|
4
|
+
// src/third-parties/meta-pixel.ts
|
|
5
5
|
const metrics = [
|
|
6
6
|
"CLS",
|
|
7
7
|
"FCP",
|
|
@@ -43,7 +43,6 @@ function setFBUser(pixelId) {
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
//#endregion
|
|
47
46
|
exports.sendFBEvent = sendFBEvent;
|
|
48
47
|
exports.setFBUser = setFBUser;
|
|
49
48
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventName, TrackName, TrackProperties } from "../track/types.cjs";
|
|
2
2
|
import { UpdateVisitorDTO } from "../schema/index.cjs";
|
|
3
3
|
import { FBQ, PixelId } from "../track/fbq.cjs";
|
|
4
|
-
//#region src/third-parties/meta-pixel.d.ts
|
|
5
4
|
declare global {
|
|
6
5
|
interface Window {
|
|
7
6
|
/** Undefined until the Meta Pixel script has loaded. */
|
|
@@ -10,5 +9,4 @@ declare global {
|
|
|
10
9
|
}
|
|
11
10
|
export declare function sendFBEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>, event_id?: string): false | undefined;
|
|
12
11
|
export declare function setFBUser(pixelId: PixelId): ({ user_id, user_data }: UpdateVisitorDTO) => void;
|
|
13
|
-
//#endregion
|
|
14
12
|
//# sourceMappingURL=meta-pixel.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta-pixel.d.cts","names":[],"sources":["../../src/third-parties/meta-pixel.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"meta-pixel.d.cts","names":[],"sources":["../../src/third-parties/meta-pixel.ts"],"mappings":";;;QAKQ;YACI;;IAER,MAAM;;;wBAMM,YAAY,UAAU,WACpC,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B;wBAuBc,UAAU,SAAS,aAAO,SAAA,aACR"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventName, TrackName, TrackProperties } from "../track/types.mjs";
|
|
2
2
|
import { UpdateVisitorDTO } from "../schema/index.mjs";
|
|
3
3
|
import { FBQ, PixelId } from "../track/fbq.mjs";
|
|
4
|
-
//#region src/third-parties/meta-pixel.d.ts
|
|
5
4
|
declare global {
|
|
6
5
|
interface Window {
|
|
7
6
|
/** Undefined until the Meta Pixel script has loaded. */
|
|
@@ -10,5 +9,4 @@ declare global {
|
|
|
10
9
|
}
|
|
11
10
|
export declare function sendFBEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>, event_id?: string): false | undefined;
|
|
12
11
|
export declare function setFBUser(pixelId: PixelId): ({ user_id, user_data }: UpdateVisitorDTO) => void;
|
|
13
|
-
//#endregion
|
|
14
12
|
//# sourceMappingURL=meta-pixel.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta-pixel.d.mts","names":[],"sources":["../../src/third-parties/meta-pixel.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"meta-pixel.d.mts","names":[],"sources":["../../src/third-parties/meta-pixel.ts"],"mappings":";;;QAKQ;YACI;;IAER,MAAM;;;wBAMM,YAAY,UAAU,WACpC,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B;wBAuBc,UAAU,SAAS,aAAO,SAAA,aACR"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { mapFBEvent } from "../track/fbq.mjs";
|
|
2
1
|
import { getFirst } from "../utils/field.mjs";
|
|
3
|
-
|
|
2
|
+
import { mapFBEvent } from "../track/fbq.mjs";
|
|
3
|
+
// src/third-parties/meta-pixel.ts
|
|
4
4
|
const metrics = [
|
|
5
5
|
"CLS",
|
|
6
6
|
"FCP",
|
|
@@ -42,7 +42,6 @@ function setFBUser(pixelId) {
|
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
//#endregion
|
|
46
45
|
export { sendFBEvent, setFBUser };
|
|
47
46
|
|
|
48
47
|
//# sourceMappingURL=meta-pixel.mjs.map
|
|
@@ -3,7 +3,7 @@ const require_visitor_id = require("../visitor/id.cjs");
|
|
|
3
3
|
const require_track_uetq = require("../track/uetq.cjs");
|
|
4
4
|
const require_utils_field = require("../utils/field.cjs");
|
|
5
5
|
const require_utils_sha256 = require("../utils/sha256.cjs");
|
|
6
|
-
|
|
6
|
+
// src/third-parties/microsoft-uet.ts
|
|
7
7
|
const metrics = [
|
|
8
8
|
"CLS",
|
|
9
9
|
"FCP",
|
|
@@ -133,7 +133,6 @@ function sendUETIdSync(options) {
|
|
|
133
133
|
}
|
|
134
134
|
require_utils_sha256.sha256(options.userId).then(fire, () => fire());
|
|
135
135
|
}
|
|
136
|
-
//#endregion
|
|
137
136
|
exports.configureUET = configureUET;
|
|
138
137
|
exports.sendUETEvent = sendUETEvent;
|
|
139
138
|
exports.sendUETIdSync = sendUETIdSync;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventName, TrackName, TrackProperties } from "../track/types.cjs";
|
|
2
2
|
import { UpdateVisitorDTO } from "../schema/index.cjs";
|
|
3
3
|
import { UETConsent, UETQ } from "../track/uetq.cjs";
|
|
4
|
-
//#region src/third-parties/microsoft-uet.d.ts
|
|
5
4
|
declare global {
|
|
6
5
|
interface Window {
|
|
7
6
|
/**
|
|
@@ -59,5 +58,4 @@ export declare function sendUETIdSync(options: {
|
|
|
59
58
|
/** The signed-in user's id, raw; hashed before it leaves the page. */
|
|
60
59
|
userId?: string;
|
|
61
60
|
}): void;
|
|
62
|
-
//#endregion
|
|
63
61
|
//# sourceMappingURL=microsoft-uet.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"microsoft-uet.d.cts","names":[],"sources":["../../src/third-parties/microsoft-uet.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"microsoft-uet.d.cts","names":[],"sources":["../../src/third-parties/microsoft-uet.ts"],"mappings":";;;QAOQ;YACI;;;;;IAKR,OAAO;;;;;;;;;;;;;;;wBA4BK,aAAa,UAAU,WACrC,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B;;;;;;;;;;;;wBAwBc,aAAa,SAAS,aAAa;;;;;;;wBAsBnC,cAAc,4BAA4B,SAAS;wBA6BnD,aAAa;EAAW;;;;;;;;wBAUlB,eAAe,kBAAkB;wBAKvC,cAAc;EAC5B;EACA;;EAEA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventName, TrackName, TrackProperties } from "../track/types.mjs";
|
|
2
2
|
import { UpdateVisitorDTO } from "../schema/index.mjs";
|
|
3
3
|
import { UETConsent, UETQ } from "../track/uetq.mjs";
|
|
4
|
-
//#region src/third-parties/microsoft-uet.d.ts
|
|
5
4
|
declare global {
|
|
6
5
|
interface Window {
|
|
7
6
|
/**
|
|
@@ -59,5 +58,4 @@ export declare function sendUETIdSync(options: {
|
|
|
59
58
|
/** The signed-in user's id, raw; hashed before it leaves the page. */
|
|
60
59
|
userId?: string;
|
|
61
60
|
}): void;
|
|
62
|
-
//#endregion
|
|
63
61
|
//# sourceMappingURL=microsoft-uet.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"microsoft-uet.d.mts","names":[],"sources":["../../src/third-parties/microsoft-uet.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"microsoft-uet.d.mts","names":[],"sources":["../../src/third-parties/microsoft-uet.ts"],"mappings":";;;QAOQ;YACI;;;;;IAKR,OAAO;;;;;;;;;;;;;;;wBA4BK,aAAa,UAAU,WACrC,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B;;;;;;;;;;;;wBAwBc,aAAa,SAAS,aAAa;;;;;;;wBAsBnC,cAAc,4BAA4B,SAAS;wBA6BnD,aAAa;EAAW;;;;;;;;wBAUlB,eAAe,kBAAkB;wBAKvC,cAAc;EAC5B;EACA;;EAEA"}
|