@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.
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +26 -4
- package/dist/build.js.map +5 -5
- package/dist/index.js +26 -4
- package/dist/index.js.map +5 -5
- package/dist/react/browser.js +19 -2
- package/dist/react/browser.js.map +3 -3
- package/dist/react/index.js +19 -2
- package/dist/react/index.js.map +3 -3
- package/dist/src/dev/clientManager.d.ts +1 -0
- package/dist/src/react/UniversalRouter.d.ts +1 -30
- package/package.json +1 -1
|
@@ -7,33 +7,4 @@ export type UniversalRouterProps = {
|
|
|
7
7
|
url?: string;
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
};
|
|
10
|
-
|
|
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