@rpcbase/client 0.394.0 → 0.396.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/dist/index.js CHANGED
@@ -6,8 +6,8 @@ import { getNavigationGuards, createRoutesFromElements, createBrowserRouter, Rou
6
6
  import { hydrateRoot } from "react-dom/client";
7
7
  import { r as reportClientException } from "./errorReporting-CVoUUKxW.js";
8
8
  import { s } from "./errorReporting-CVoUUKxW.js";
9
- import { n as hydrateRtsFromWindow, w as useQuery } from "./useQuery-Q5Bygu9_.js";
10
- import { R, S, p, q, t, v } from "./useQuery-Q5Bygu9_.js";
9
+ import { n as hydrateRtsFromWindow, w as useQuery } from "./useQuery-RjGxHubQ.js";
10
+ import { R, S, p, q, t, v } from "./useQuery-RjGxHubQ.js";
11
11
  const emptyUnsubscribe = () => {
12
12
  };
13
13
  const useMediaQuery = (query) => {
@@ -502,6 +502,12 @@ const isDesktopDevice = () => {
502
502
  const hasTouch = typeof navigator !== "undefined" && navigator.maxTouchPoints > 0;
503
503
  return hasDesktopPointer && !hasTouch;
504
504
  };
505
+ const isPlaywrightTestEnvironment = () => {
506
+ if (typeof navigator === "undefined") {
507
+ return false;
508
+ }
509
+ return navigator.webdriver === true;
510
+ };
505
511
  const DEFAULT_PRIORITY = 0;
506
512
  const canBlockNavigation = (guard, {
507
513
  isPathnameChange,
@@ -968,7 +974,7 @@ const initWithRoutes = async (routesElement, opts) => {
968
974
  /* @__PURE__ */ jsx(ClientOnly, { children: /* @__PURE__ */ jsx(Toaster, {}) })
969
975
  ] }) }), hydrationOptions);
970
976
  };
971
- if (!isProduction && !env.SSR && isDesktopDevice()) {
977
+ if (!isProduction && !env.SSR && isDesktopDevice() && !isPlaywrightTestEnvironment()) {
972
978
  import("react-grab/core").then(({
973
979
  init
974
980
  }) => {