@umijs/renderer-react 4.3.11 → 4.3.12

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/browser.d.ts CHANGED
@@ -88,4 +88,4 @@ export declare type RenderClientOpts = {
88
88
  * @param {RenderClientOpts} opts - 插件相关的配置
89
89
  * @returns void
90
90
  */
91
- export declare function renderClient(opts: RenderClientOpts): (() => React.JSX.Element) | undefined;
91
+ export declare function renderClient(opts: RenderClientOpts): (() => JSX.Element) | undefined;
package/dist/html.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { IHtmlProps } from './types';
3
- export declare function Html({ children, loaderData, manifest, htmlPageOpts, __INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, mountElementId, }: React.PropsWithChildren<IHtmlProps>): React.JSX.Element;
3
+ export declare function Html({ children, loaderData, manifest, htmlPageOpts, __INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, mountElementId, }: React.PropsWithChildren<IHtmlProps>): JSX.Element;
package/dist/link.d.ts CHANGED
@@ -2,4 +2,4 @@ import React, { PropsWithChildren } from 'react';
2
2
  import { LinkProps } from 'react-router-dom';
3
3
  export declare function LinkWithPrefetch(props: PropsWithChildren<{
4
4
  prefetch?: boolean;
5
- } & LinkProps & React.RefAttributes<HTMLAnchorElement>>): React.JSX.Element | null;
5
+ } & LinkProps & React.RefAttributes<HTMLAnchorElement>>): JSX.Element | null;
package/dist/server.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
1
  import { IRootComponentOptions } from './types';
3
- export declare function getClientRootComponent(opts: IRootComponentOptions): Promise<React.JSX.Element>;
2
+ export declare function getClientRootComponent(opts: IRootComponentOptions): Promise<JSX.Element>;
@@ -14,4 +14,4 @@ export interface RouteComponentProps<T = ReturnType<typeof useParams>> {
14
14
  params?: T;
15
15
  navigate?: ReturnType<typeof useNavigate>;
16
16
  }
17
- export declare function withRouter<P extends RouteComponentProps<P>>(Component: React.ComponentType<P>): (props: P) => React.JSX.Element;
17
+ export declare function withRouter<P extends RouteComponentProps<P>>(Component: React.ComponentType<P>): (props: P) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/renderer-react",
3
- "version": "4.3.11",
3
+ "version": "4.3.12",
4
4
  "description": "@umijs/renderer-react",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/renderer-react#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",