@modern-js/runtime 2.60.2 → 2.60.3
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/types/core/compatible.d.ts +1 -1
- package/dist/types/core/server/react/no-ssr-cache/index.d.ts +2 -2
- package/dist/types/document/Body.d.ts +1 -1
- package/dist/types/document/Comment.d.ts +2 -2
- package/dist/types/document/Head.d.ts +3 -3
- package/dist/types/document/Html.d.ts +1 -1
- package/dist/types/document/Links.d.ts +2 -2
- package/dist/types/document/Root.d.ts +2 -2
- package/dist/types/document/Script.d.ts +2 -2
- package/dist/types/document/Scripts.d.ts +2 -2
- package/dist/types/document/Style.d.ts +1 -1
- package/dist/types/document/Title.d.ts +1 -1
- package/dist/types/router/runtime/DefaultNotFound.d.ts +2 -2
- package/dist/types/router/runtime/DeferredDataScripts.node.d.ts +1 -1
- package/dist/types/router/runtime/withRouter.d.ts +1 -1
- package/package.json +12 -12
|
@@ -11,7 +11,7 @@ export type CreateAppOptions = {
|
|
|
11
11
|
runtime?: typeof runtime;
|
|
12
12
|
props?: any;
|
|
13
13
|
};
|
|
14
|
-
export declare const createApp: ({ plugins, runtime, props: globalProps, }: CreateAppOptions) => (App?: React.ComponentType<any>) => (props: any) => JSX.Element;
|
|
14
|
+
export declare const createApp: ({ plugins, runtime, props: globalProps, }: CreateAppOptions) => (App?: React.ComponentType<any>) => (props: any) => React.JSX.Element;
|
|
15
15
|
type BootStrap<T = unknown> = (App: React.ComponentType, id: string | HTMLElement | RuntimeContext, root?: any, ReactDOM?: {
|
|
16
16
|
render?: Renderer;
|
|
17
17
|
hydrate?: Renderer;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const NoSSRCache: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const NoSSRCache: () => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare function Body(props: React.DOMAttributes<HTMLBodyElement>): JSX.Element;
|
|
2
|
+
export declare function Body(props: React.DOMAttributes<HTMLBodyElement>): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare function Head(props: {
|
|
3
3
|
children?: any;
|
|
4
|
-
}): JSX.Element;
|
|
5
|
-
export declare function DefaultHead(): JSX.Element;
|
|
4
|
+
}): React.JSX.Element;
|
|
5
|
+
export declare function DefaultHead(): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function Links(): JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function Links(): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare function Root(props: {
|
|
3
3
|
rootId?: string;
|
|
4
|
-
} & React.DOMAttributes<HTMLDivElement>): JSX.Element;
|
|
4
|
+
} & React.DOMAttributes<HTMLDivElement>): React.JSX.Element;
|
|
5
5
|
export declare function DefaultRoot(props: {
|
|
6
6
|
children?: any;
|
|
7
|
-
}): JSX.Element;
|
|
7
|
+
}): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function Scripts(): JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function Scripts(): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare function Title(): JSX.Element;
|
|
2
|
+
export declare function Title(): import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const DefaultNotFound: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const DefaultNotFound: () => React.JSX.Element;
|
|
@@ -7,5 +7,5 @@ import type { StaticHandlerContext } from '@modern-js/runtime-utils/remix-router
|
|
|
7
7
|
declare const DeferredDataScripts: (props?: {
|
|
8
8
|
nonce?: string;
|
|
9
9
|
context: StaticHandlerContext;
|
|
10
|
-
}) => JSX.Element | null;
|
|
10
|
+
}) => import("react").JSX.Element | null;
|
|
11
11
|
export default DeferredDataScripts;
|
|
@@ -7,4 +7,4 @@ export interface WithRouterProps<Params extends {
|
|
|
7
7
|
params: Params;
|
|
8
8
|
navigate: ReturnType<typeof useNavigate>;
|
|
9
9
|
}
|
|
10
|
-
export declare const withRouter: <Props extends WithRouterProps<{}>>(Component: React.ComponentType<Props>) => (props: Omit<Props, keyof WithRouterProps<{}>>) => JSX.Element;
|
|
10
|
+
export declare const withRouter: <Props extends WithRouterProps<{}>>(Component: React.ComponentType<Props>) => (props: Omit<Props, keyof WithRouterProps<{}>>) => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.60.
|
|
18
|
+
"version": "2.60.3",
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=14.17.6"
|
|
21
21
|
},
|
|
@@ -199,11 +199,11 @@
|
|
|
199
199
|
"react-is": "^18",
|
|
200
200
|
"react-side-effect": "^2.1.1",
|
|
201
201
|
"styled-components": "^5.3.1",
|
|
202
|
-
"@modern-js/plugin
|
|
203
|
-
"@modern-js/plugin": "2.60.
|
|
204
|
-
"@modern-js/runtime-utils": "2.60.
|
|
205
|
-
"@modern-js/utils": "2.60.
|
|
206
|
-
"@modern-js/types": "2.60.
|
|
202
|
+
"@modern-js/plugin": "2.60.3",
|
|
203
|
+
"@modern-js/plugin-data-loader": "2.60.3",
|
|
204
|
+
"@modern-js/runtime-utils": "2.60.3",
|
|
205
|
+
"@modern-js/utils": "2.60.3",
|
|
206
|
+
"@modern-js/types": "2.60.3"
|
|
207
207
|
},
|
|
208
208
|
"peerDependencies": {
|
|
209
209
|
"react": ">=17",
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
},
|
|
212
212
|
"devDependencies": {
|
|
213
213
|
"@remix-run/web-fetch": "^4.1.3",
|
|
214
|
-
"@rsbuild/core": "1.0.
|
|
214
|
+
"@rsbuild/core": "~1.0.11",
|
|
215
215
|
"@testing-library/react": "^13.4.0",
|
|
216
216
|
"@types/cookie": "0.6.0",
|
|
217
217
|
"@types/invariant": "^2.2.30",
|
|
@@ -225,11 +225,11 @@
|
|
|
225
225
|
"react-dom": "^18",
|
|
226
226
|
"ts-jest": "^29.1.0",
|
|
227
227
|
"typescript": "^5",
|
|
228
|
-
"webpack": "^5.
|
|
229
|
-
"@modern-js/
|
|
230
|
-
"@scripts/
|
|
231
|
-
"@
|
|
232
|
-
"@
|
|
228
|
+
"webpack": "^5.95.0",
|
|
229
|
+
"@modern-js/app-tools": "2.60.3",
|
|
230
|
+
"@scripts/build": "2.60.3",
|
|
231
|
+
"@modern-js/core": "2.60.3",
|
|
232
|
+
"@scripts/jest-config": "2.60.3"
|
|
233
233
|
},
|
|
234
234
|
"sideEffects": false,
|
|
235
235
|
"publishConfig": {
|