posthog-js 1.282.0 → 1.283.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.
Files changed (41) hide show
  1. package/dist/all-external-dependencies.js.map +1 -1
  2. package/dist/array.full.es5.js +1 -1
  3. package/dist/array.full.es5.js.map +1 -1
  4. package/dist/array.full.js +1 -1
  5. package/dist/array.full.js.map +1 -1
  6. package/dist/array.full.no-external.js +1 -1
  7. package/dist/array.full.no-external.js.map +1 -1
  8. package/dist/array.js +1 -1
  9. package/dist/array.js.map +1 -1
  10. package/dist/array.no-external.js +1 -1
  11. package/dist/array.no-external.js.map +1 -1
  12. package/dist/customizations.full.js +1 -1
  13. package/dist/exception-autocapture.js.map +1 -1
  14. package/dist/lazy-recorder.js +1 -1
  15. package/dist/main.js +1 -1
  16. package/dist/main.js.map +1 -1
  17. package/dist/module.d.ts +6 -0
  18. package/dist/module.full.d.ts +6 -0
  19. package/dist/module.full.js +1 -1
  20. package/dist/module.full.js.map +1 -1
  21. package/dist/module.full.no-external.d.ts +6 -0
  22. package/dist/module.full.no-external.js +1 -1
  23. package/dist/module.full.no-external.js.map +1 -1
  24. package/dist/module.js +1 -1
  25. package/dist/module.js.map +1 -1
  26. package/dist/module.no-external.d.ts +6 -0
  27. package/dist/module.no-external.js +1 -1
  28. package/dist/module.no-external.js.map +1 -1
  29. package/dist/posthog-recorder.js +1 -1
  30. package/dist/src/types.d.ts +6 -0
  31. package/dist/src/utils/blocked-uas.d.ts +1 -5
  32. package/dist/surveys-preview.d.ts +6 -0
  33. package/lib/package.json +1 -1
  34. package/lib/src/posthog-core.js +12 -1
  35. package/lib/src/posthog-core.js.map +1 -1
  36. package/lib/src/types.d.ts +6 -0
  37. package/lib/src/types.js.map +1 -1
  38. package/lib/src/utils/blocked-uas.d.ts +1 -5
  39. package/lib/src/utils/blocked-uas.js +8 -106
  40. package/lib/src/utils/blocked-uas.js.map +1 -1
  41. package/package.json +2 -2
package/dist/module.d.ts CHANGED
@@ -1714,6 +1714,12 @@ interface PostHogConfig {
1714
1714
  * Disables sending credentials when using XHR requests.
1715
1715
  */
1716
1716
  __preview_disable_xhr_credentials?: boolean;
1717
+ /**
1718
+ * PREVIEW - MAY CHANGE WITHOUT WARNING - DO NOT USE IN PRODUCTION
1719
+ * Enables collection of bot traffic as $bot_pageview events with detailed bot detection
1720
+ * properties instead of dropping them entirely. Use it alongside opt_out_useragent_filter
1721
+ */
1722
+ __preview_capture_bot_pageviews?: boolean;
1717
1723
  /**
1718
1724
  * @deprecated - does nothing
1719
1725
  * was present only for PostHog testing of replay lazy loading
@@ -1714,6 +1714,12 @@ interface PostHogConfig {
1714
1714
  * Disables sending credentials when using XHR requests.
1715
1715
  */
1716
1716
  __preview_disable_xhr_credentials?: boolean;
1717
+ /**
1718
+ * PREVIEW - MAY CHANGE WITHOUT WARNING - DO NOT USE IN PRODUCTION
1719
+ * Enables collection of bot traffic as $bot_pageview events with detailed bot detection
1720
+ * properties instead of dropping them entirely. Use it alongside opt_out_useragent_filter
1721
+ */
1722
+ __preview_capture_bot_pageviews?: boolean;
1717
1723
  /**
1718
1724
  * @deprecated - does nothing
1719
1725
  * was present only for PostHog testing of replay lazy loading