@moneko/react 1.6.13 → 1.7.0-beta.1
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/env.d.ts +1 -0
- package/lib/error-boundary.d.ts +1 -1
- package/package.json +3 -3
- package/lib/entry.d.ts +0 -10
- package/lib/entry.js +0 -1
package/env.d.ts
CHANGED
package/lib/error-boundary.d.ts
CHANGED
|
@@ -20,6 +20,6 @@ export interface ErrorBoundaryState {
|
|
|
20
20
|
declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, Partial<ErrorBoundaryState>> {
|
|
21
21
|
constructor(props: ErrorBoundaryProps);
|
|
22
22
|
componentDidCatch(error: ErrorBoundaryState['error'], errorInfo: ErrorBoundaryState['errorInfo']): void;
|
|
23
|
-
render(): string | number | boolean | React.
|
|
23
|
+
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
24
24
|
}
|
|
25
25
|
export default ErrorBoundary;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0-beta.1",
|
|
4
4
|
"description": "react",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
|
|
16
|
-
"react-refresh": "0.
|
|
17
|
-
"react-refresh-typescript": "2.0.
|
|
16
|
+
"react-refresh": "0.16.0",
|
|
17
|
+
"react-refresh-typescript": "2.0.10",
|
|
18
18
|
"react-router": "6.27.0",
|
|
19
19
|
"react-router-dom": "6.27.0",
|
|
20
20
|
"shared-store-object": "1.1.4"
|
package/lib/entry.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type RenderAppProps = {
|
|
3
|
-
container?: HTMLElement;
|
|
4
|
-
basename?: string;
|
|
5
|
-
fallback?: React.ReactElement;
|
|
6
|
-
language?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare function App(props: RenderAppProps): React.JSX.Element;
|
|
9
|
-
declare function renderApp(props?: RenderAppProps): () => void;
|
|
10
|
-
export default renderApp;
|
package/lib/entry.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{StrictMode as r,useRef as t}from"react";import o from"@app/info";import a from"@app/fallback";import n from"@app/routes";import{createRoot as i}from"react-dom/client";import{RouterProvider as m,createBrowserRouter as p,createHashRouter as s}from"react-router-dom";"development"===process.env.NODE_ENV&&process.env.injectRemoteReactRefresh&&await import("./inject-react-refresh.js");let c="hash"===o.routerMode,u=c?s:p;export function App(i){let p=t(Object.assign({v7_relativeSplatPath:!1},"browser"===o.routerMode?{v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:o.ssr,v7_skipActionErrorRevalidation:!1}:{}));return /*#__PURE__*/e(r,{children:/*#__PURE__*/e(m,{router:u(n,{basename:c?"/":i.basename,window:window,future:p.current}),future:{v7_startTransition:!1},fallbackElement:a&&/*#__PURE__*/e(a,{})})})}export default function(r={}){let{container:t,basename:a=o.base,language:n,...m}=r,p=t?.querySelector("#root")||document.getElementById("root"),s=i(p);return"micro"===o.type&&(window.mainApp={...m,container:p}),s.render(/*#__PURE__*/e(App,{basename:a,language:n})),s.unmount}
|