@absolutejs/absolute 0.19.0-beta.849 → 0.19.0-beta.850

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.
@@ -7,33 +7,4 @@ export type UniversalRouterProps = {
7
7
  url?: string;
8
8
  children?: ReactNode;
9
9
  };
10
- /** SSR-safe wrapper around react-router that picks `<StaticRouter>` on the
11
- * server and `<BrowserRouter>` in the browser. Without it, every SPA page
12
- * has to write its own `typeof window === 'undefined'` branch and import
13
- * both routers — boilerplate that's the same in every page.
14
- *
15
- * Usage:
16
- *
17
- * export const MySpa = ({ url }: { url?: string }) => (
18
- * <html>
19
- * <Head />
20
- * <body>
21
- * <UniversalRouter url={url}>
22
- * <Routes>
23
- * <Route path="/foo" element={<Foo />} />
24
- * </Routes>
25
- * </UniversalRouter>
26
- * </body>
27
- * </html>
28
- * );
29
- *
30
- * Implementation note: `<BrowserRouter>` reads `window.history` at
31
- * construction, so it throws if instantiated on the server. The
32
- * `typeof window` check has to live at render time (not import time)
33
- * because the module is loaded in both environments — only the
34
- * unselected branch's JSX is what the check skips. */
35
- export declare const UniversalRouter: ({ url, children }: UniversalRouterProps) => import("react").CElement<{}, import("react").Component<{}, any, any>> | import("react").CElement<{
36
- location: string;
37
- }, import("react").Component<{
38
- location: string;
39
- }, any, any>>;
10
+ export declare const UniversalRouter: ({ url, children }: UniversalRouterProps) => import("react").DetailedReactHTMLElement<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
package/package.json CHANGED
@@ -384,5 +384,5 @@
384
384
  ]
385
385
  }
386
386
  },
387
- "version": "0.19.0-beta.849"
387
+ "version": "0.19.0-beta.850"
388
388
  }