@moneko/react 3.0.1 → 3.0.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/base.json +1 -1
- package/dev/mdx.d.ts +14 -0
- package/package.json +9 -9
package/base.json
CHANGED
package/dev/mdx.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3
|
+
type RecordObject = Record<string, any>;
|
|
4
|
+
export interface MDXComponents {
|
|
5
|
+
[k: string]: (props: RecordObject) => React.JSX.Element;
|
|
6
|
+
}
|
|
7
|
+
export interface MDXProviderProps extends React.Component {
|
|
8
|
+
children: React.JSX.Element;
|
|
9
|
+
components: MDXComponents | ((props: RecordObject) => MDXComponents);
|
|
10
|
+
disableParentContext?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function useMDXComponents(components: MDXComponents | ((props: RecordObject) => MDXComponents)): MDXComponents;
|
|
13
|
+
export declare function MDXProvider({ components, disableParentContext, children }: MDXProviderProps): React.JSX.Element;
|
|
14
|
+
export { };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/react",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "react",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -28,21 +28,21 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@pmmmwh/react-refresh-webpack-plugin": "0.6.
|
|
31
|
+
"@pmmmwh/react-refresh-webpack-plugin": "0.6.2",
|
|
32
32
|
"react-refresh": "0.18.0",
|
|
33
33
|
"react-refresh-typescript": "2.0.11",
|
|
34
34
|
"react-router": "6.3.0",
|
|
35
35
|
"react-router-dom": "6.3.0",
|
|
36
|
-
"shared-store-object": "1.4.
|
|
36
|
+
"shared-store-object": "1.4.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@moneko/convert": "1.
|
|
40
|
-
"@moneko/eslint": "1.
|
|
41
|
-
"@moneko/transform-imports": "1.
|
|
39
|
+
"@moneko/convert": "1.2.0",
|
|
40
|
+
"@moneko/eslint": "1.11.1",
|
|
41
|
+
"@moneko/transform-imports": "1.4.0",
|
|
42
42
|
"@moneko/utils": "0.3.3",
|
|
43
|
-
"@swc/core": "1.15.
|
|
44
|
-
"@types/react": "19.2.
|
|
45
|
-
"react": "19.2.
|
|
43
|
+
"@swc/core": "1.15.11",
|
|
44
|
+
"@types/react": "19.2.14",
|
|
45
|
+
"react": "19.2.4",
|
|
46
46
|
"typescript": "5.9.3"
|
|
47
47
|
},
|
|
48
48
|
"files": [
|