@rpcbase/client 0.280.0 → 0.282.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/client",
3
- "version": "0.280.0",
3
+ "version": "0.282.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "scripts": {
@@ -0,0 +1,15 @@
1
+ import posthog from "posthog-js"
2
+ import { PostHogProvider } from "posthog-js/react"
3
+
4
+ import { useApplyScroll } from "../utils/useApplyScroll"
5
+
6
+
7
+ export const RootProvider = ({children}) => {
8
+ useApplyScroll()
9
+
10
+ return (
11
+ <PostHogProvider client={posthog}>
12
+ {children}
13
+ </PostHogProvider>
14
+ )
15
+ }
@@ -1,3 +1,2 @@
1
1
  export * from "./useThrottledMeasure"
2
- export * from "./useApplyScroll"
3
2
  export * from "./useMediaQuery"
package/src/index.ts CHANGED
@@ -2,3 +2,4 @@ export * from "./apiClient"
2
2
  export * from "./initWithRoutes"
3
3
  export * from "./types"
4
4
  export * from "./getFeatureFlag"
5
+ export * from "./RootProvider"
@@ -11,6 +11,7 @@ const isProduction = import.meta.env.MODE === "production"
11
11
 
12
12
  type ReactErrorInfo = { componentStack?: string }
13
13
 
14
+
14
15
  /* eslint-disable @typescript-eslint/no-explicit-any */
15
16
  const showErrorOverlay = (err: { title: string, message: string, reason: string, plugin: string }) => {
16
17
  const ErrorOverlay = customElements.get("vite-error-overlay")
File without changes