@moneko/react 1.7.0-beta.0 → 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 +0 -1
- package/lib/error-boundary.d.ts +1 -1
- package/package.json +2 -2
- 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.7.0-beta.
|
|
3
|
+
"version": "1.7.0-beta.1",
|
|
4
4
|
"description": "react",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
|
|
16
16
|
"react-refresh": "0.16.0",
|
|
17
|
-
"react-refresh-typescript": "2.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 * as 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): any;
|
|
10
|
-
export default renderApp;
|
package/lib/entry.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import*as r from"react";import t from"@app/info";import o from"@app/fallback";import a from"@app/routes";import{RouterProvider as n,createBrowserRouter as i,createHashRouter as m}from"react-router-dom";let p=parseFloat(t.frameworkVersion),u=require(t.ReactDomEntry),s="hash"===t.routerMode,l=s?m:i;export function App(i){let m=r.useRef(Object.assign({v7_relativeSplatPath:!1},"browser"===t.routerMode?{v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:t.ssr,v7_skipActionErrorRevalidation:!1}:{}));return /*#__PURE__*/e(r.StrictMode,{children:/*#__PURE__*/e(n,{router:l(a,{basename:s?"/":i.basename,window:window,future:m.current}),future:{v7_startTransition:!1},fallbackElement:o&&/*#__PURE__*/e(o,{})})})}export default function(r={}){let{container:o,basename:a=t.base,language:n,...i}=r,m=o?.querySelector("#root")||document.getElementById("root");if(p<18)return(module.hot?u.render:u.hydrate)(/*#__PURE__*/e(App,{basename:a,language:n}),m),()=>{u.unmountComponentAtNode(m)};{let r=u.createRoot(m);return"micro"===t.type&&(window.mainApp={...i,container:m}),r.render(/*#__PURE__*/e(App,{basename:a,language:n})),r.unmount}}
|