vike-react 0.5.9 → 0.5.11

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.
@@ -1,6 +1,7 @@
1
1
  export { getPageElement };
2
+ import React from 'react';
2
3
  import type { PageContext } from 'vike/types';
3
4
  declare function getPageElement(pageContext: PageContext): {
4
- page: JSX.Element;
5
+ page: React.JSX.Element;
5
6
  renderPromise: Promise<void>;
6
7
  };
@@ -137,15 +137,7 @@ declare global {
137
137
  */
138
138
  ssr?: boolean;
139
139
  /**
140
- * Whether to stream the page's HTML.
141
- *
142
- * Requires Server-Side Rendering (`ssr: true`).
143
- *
144
- * A Node.js Stream is used whenever possible, falling back to a Web Stream otherwise.
145
- *
146
- * By setting the value to `web` or `node`, you force the usage of a Web Stream or Node.js Stream.
147
- *
148
- * @default false
140
+ * Enable or disable HTML Streaming.
149
141
  *
150
142
  * https://vike.dev/stream
151
143
  */
@@ -1,5 +1,4 @@
1
1
  import type React from 'react';
2
- import type { JSX } from 'react';
3
2
  import type ReactDOM from 'react-dom/client';
4
3
  import type { ConfigFromHookResolved } from './Config.js';
5
4
  import type { PageHtmlStream } from '../integration/onRenderHtml.js';
@@ -9,7 +8,7 @@ declare global {
9
8
  /** The root React component of the page */
10
9
  Page?: () => React.ReactNode;
11
10
  /** The root React element of the page */
12
- page?: JSX.Element;
11
+ page?: React.JSX.Element;
13
12
  /** The React root DOM container */
14
13
  root?: ReactDOM.Root;
15
14
  /** The +Page.jsx component rendered to the HTML string. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike-react",
3
- "version": "0.5.9",
3
+ "version": "0.5.11",
4
4
  "repository": "https://github.com/vikejs/vike-react",
5
5
  "type": "module",
6
6
  "exports": {