@trackunit/react-modal 2.1.8-alpha-13587994969.0 → 2.1.9

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/index.cjs.js CHANGED
@@ -829,6 +829,12 @@ const getCloseTimeoutReportFrameScheduler = () => {
829
829
  if (typeof document !== "undefined" && document.visibilityState !== "visible") {
830
830
  return undefined;
831
831
  }
832
+ // navigator.webdriver is true in Chrome driven by automation (Playwright, Puppeteer, CDP).
833
+ // Modern headless Chrome reports visibilityState "visible" and executes rAF callbacks, so
834
+ // the visibility + rAF checks above are not sufficient to exclude screenshot/report renderers.
835
+ if (typeof navigator !== "undefined" && navigator.webdriver) {
836
+ return undefined;
837
+ }
832
838
  if (typeof window !== "undefined" && typeof window.matchMedia === "function") {
833
839
  if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
834
840
  return undefined;
package/index.esm.js CHANGED
@@ -827,6 +827,12 @@ const getCloseTimeoutReportFrameScheduler = () => {
827
827
  if (typeof document !== "undefined" && document.visibilityState !== "visible") {
828
828
  return undefined;
829
829
  }
830
+ // navigator.webdriver is true in Chrome driven by automation (Playwright, Puppeteer, CDP).
831
+ // Modern headless Chrome reports visibilityState "visible" and executes rAF callbacks, so
832
+ // the visibility + rAF checks above are not sufficient to exclude screenshot/report renderers.
833
+ if (typeof navigator !== "undefined" && navigator.webdriver) {
834
+ return undefined;
835
+ }
830
836
  if (typeof window !== "undefined" && typeof window.matchMedia === "function") {
831
837
  if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
832
838
  return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-modal",
3
- "version": "2.1.8-alpha-13587994969.0",
3
+ "version": "2.1.9",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -8,12 +8,12 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@floating-ui/react": "^0.26.25",
11
- "@trackunit/react-components": "2.1.6-alpha-13587994969.0",
12
- "@trackunit/css-class-variance-utilities": "1.13.16-alpha-13587994969.0",
13
- "@trackunit/shared-utils": "1.15.16-alpha-13587994969.0",
11
+ "@trackunit/react-components": "2.1.7",
12
+ "@trackunit/css-class-variance-utilities": "1.13.17",
13
+ "@trackunit/shared-utils": "1.15.17",
14
14
  "@floating-ui/react-dom": "2.1.2",
15
- "@trackunit/react-core-contexts-api": "1.17.16-alpha-13587994969.0",
16
- "@trackunit/i18n-library-translation": "2.0.8-alpha-13587994969.0"
15
+ "@trackunit/react-core-contexts-api": "1.17.17",
16
+ "@trackunit/i18n-library-translation": "2.0.9"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "@tanstack/react-router": "^1.114.29",