@rpcbase/client 0.393.0 → 0.395.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.d.ts CHANGED
@@ -11,5 +11,5 @@ export * from './components/RouteErrorBoundary';
11
11
  export * from './notifications';
12
12
  export * from './notificationsRealtime';
13
13
  export * from './errorReporting';
14
- export { STATIC_RPCBASE_RTS_HYDRATION_DATA_KEY, RtsSsrRuntimeProvider, clearHydratedRtsQueryData, hydrateRtsFromWindow, peekHydratedRtsQueryData, peekHydratedRtsQueryPageInfo, type RtsSsrHydrationQueryData, type RtsSsrQueryRegistration, type RtsSsrRuntime, type StaticRpcbaseRtsHydrationData, } from './rts/ssrHydration';
14
+ export { STATIC_RPCBASE_RTS_HYDRATION_DATA_KEY, RtsSsrRuntimeProvider, clearHydratedRtsQueryData, hydrateRtsFromWindow, peekHydratedRtsQueryData, peekHydratedRtsQueryPageInfo, peekHydratedRtsQueryTotalCount, type RtsSsrHydrationQueryData, type RtsSsrQueryRegistration, type RtsSsrRuntime, type StaticRpcbaseRtsHydrationData, } from './rts/ssrHydration';
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA;AAChC,OAAO,EACL,qCAAqC,EACrC,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,EACpB,wBAAwB,EACxB,4BAA4B,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,6BAA6B,GACnC,MAAM,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA;AAChC,OAAO,EACL,qCAAqC,EACrC,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,EACpB,wBAAwB,EACxB,4BAA4B,EAC5B,8BAA8B,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,6BAA6B,GACnC,MAAM,oBAAoB,CAAA"}
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, v as useQuery } from "./useQuery-CUjwBdkK.js";
10
- import { R, S, p, q, t } from "./useQuery-CUjwBdkK.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";
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
  }) => {
@@ -3065,6 +3071,7 @@ export {
3065
3071
  peekClientSsrErrorState,
3066
3072
  q as peekHydratedRtsQueryData,
3067
3073
  t as peekHydratedRtsQueryPageInfo,
3074
+ v as peekHydratedRtsQueryTotalCount,
3068
3075
  reportClientException,
3069
3076
  runNotificationDigest,
3070
3077
  serializeSsrErrorState,