@recursive-robot/react-jsx-parser 1.41.4 → 2.0.0
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/components/JsxParser.d.ts +32 -32
- package/dist/constants/attributeNames.d.ts +2 -2
- package/dist/constants/specialTags.d.ts +4 -4
- package/dist/helpers/camelCase.d.ts +7 -7
- package/dist/helpers/functionProxy.d.ts +5 -5
- package/dist/helpers/functionUtilities.d.ts +7 -7
- package/dist/helpers/hash.d.ts +10 -10
- package/dist/helpers/parseStyle.d.ts +8 -8
- package/dist/helpers/resolvePath.d.ts +9 -9
- package/dist/index.d.ts +4 -5
- package/dist/react-jsx-parser.js +7502 -0
- package/dist/react-jsx-parser.js.map +1 -0
- package/package.json +38 -58
- package/dist/cjs/react-jsx-parser.min.js +0 -2
- package/dist/cjs/react-jsx-parser.min.js.map +0 -1
- package/dist/demo.d.ts +0 -1
- package/dist/es5/react-jsx-parser.min.js +0 -2
- package/dist/es5/react-jsx-parser.min.js.map +0 -1
- package/dist/umd/react-jsx-parser.min.js +0 -2
- package/dist/umd/react-jsx-parser.min.js.map +0 -1
package/package.json
CHANGED
|
@@ -10,81 +10,61 @@
|
|
|
10
10
|
"jsx"
|
|
11
11
|
],
|
|
12
12
|
"license": "MIT",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"type": "module",
|
|
14
|
+
"main": "./dist/react-jsx-parser.js",
|
|
15
|
+
"module": "./dist/react-jsx-parser.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/react-jsx-parser.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
15
23
|
"name": "@recursive-robot/react-jsx-parser",
|
|
16
24
|
"repository": "RecursiveRobot/react-jsx-parser",
|
|
17
|
-
"version": "
|
|
25
|
+
"version": "2.0.0",
|
|
18
26
|
"dependencies": {
|
|
19
|
-
"
|
|
20
|
-
"acorn": "
|
|
21
|
-
"acorn-jsx": "^5.3.1",
|
|
22
|
-
"browserslist": "^4.14.5",
|
|
23
|
-
"core-js": "^3.8.3"
|
|
27
|
+
"acorn": "^8.17.0",
|
|
28
|
+
"acorn-jsx": "5.3.1"
|
|
24
29
|
},
|
|
25
30
|
"devDependencies": {
|
|
26
|
-
"@
|
|
27
|
-
"@
|
|
28
|
-
"@
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"@types/acorn": "^4.0.5",
|
|
34
|
-
"@types/enzyme": "^3.10.8",
|
|
35
|
-
"@types/jest": "^26.0.20",
|
|
31
|
+
"@testing-library/dom": "^10.4.1",
|
|
32
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
33
|
+
"@testing-library/react": "^16.3.2",
|
|
34
|
+
"@testing-library/user-event": "^14.6.1",
|
|
35
|
+
"@types/node": "^24.0.0",
|
|
36
|
+
"@types/react": "^19.0.0",
|
|
37
|
+
"@types/react-dom": "^19.0.0",
|
|
36
38
|
"@typescript-eslint/eslint-plugin": "^4.14.2",
|
|
37
39
|
"@typescript-eslint/parser": "^4.14.2",
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"babel-loader": "^8.2.2",
|
|
41
|
-
"concurrently": "^5.3.0",
|
|
42
|
-
"cross-env": "^7.0.3",
|
|
43
|
-
"enzyme": "^3.11.0",
|
|
44
|
-
"enzyme-adapter-react-16": "^1.15.6",
|
|
40
|
+
"@vitejs/plugin-react": "^6.0.3",
|
|
41
|
+
"@vitest/coverage-v8": "^4.1.9",
|
|
45
42
|
"eslint": "^7.19.0",
|
|
46
43
|
"eslint-config-airbnb": "^18.2.1",
|
|
47
44
|
"eslint-plugin-import": "^2.22.1",
|
|
48
45
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
49
46
|
"eslint-plugin-react": "^7.22.0",
|
|
50
47
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"typescript": "^4.1.3",
|
|
60
|
-
"webpack": "^5.21.2",
|
|
61
|
-
"webpack-cli": "^4.5.0",
|
|
62
|
-
"webpack-dev-server": "^3.11.2"
|
|
63
|
-
},
|
|
64
|
-
"optionalDependencies": {
|
|
65
|
-
"@types/react": "^17.0.1",
|
|
66
|
-
"@types/react-dom": "^17.0.0"
|
|
48
|
+
"jsdom": "^29.1.1",
|
|
49
|
+
"patch-package": "^8.0.1",
|
|
50
|
+
"react": "^19.0.0",
|
|
51
|
+
"react-dom": "^19.0.0",
|
|
52
|
+
"typescript": "^6.0.3",
|
|
53
|
+
"vite": "^8.1.0",
|
|
54
|
+
"vite-plugin-dts": "^5.0.2",
|
|
55
|
+
"vitest": "^4.1.9"
|
|
67
56
|
},
|
|
68
57
|
"peerDependencies": {
|
|
69
|
-
"react": ">=
|
|
70
|
-
"react-dom": ">=
|
|
71
|
-
},
|
|
72
|
-
"resolutions": {
|
|
73
|
-
"@types/react": "^17.0.1",
|
|
74
|
-
"@types/react-dom": "^17.0.0",
|
|
75
|
-
"browserslist": "^4.14.5",
|
|
76
|
-
"extend": "^3.0.2",
|
|
77
|
-
"merge": "^1.2.1"
|
|
58
|
+
"react": ">=19",
|
|
59
|
+
"react-dom": ">=19"
|
|
78
60
|
},
|
|
79
61
|
"scripts": {
|
|
80
|
-
"build": "
|
|
81
|
-
"
|
|
82
|
-
"lint": "
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"test": "yarn lint && jest",
|
|
87
|
-
"types": "tsc -p ./tsconfig.json -d --emitDeclarationOnly"
|
|
62
|
+
"build": "patch-package && vite build",
|
|
63
|
+
"dev": "vite",
|
|
64
|
+
"lint": "eslint --ext .js,.ts,.tsx source/",
|
|
65
|
+
"prepare": "patch-package",
|
|
66
|
+
"test": "vitest run",
|
|
67
|
+
"test:watch": "vitest"
|
|
88
68
|
},
|
|
89
69
|
"contributors": [
|
|
90
70
|
{
|