react-mathtype-editor 1.0.2 → 1.0.4
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/README.md +32 -6
- package/dist/index.cjs.js +34 -3
- package/dist/index.esm.js +863 -195
- package/dist/types/MathTypeEditor.d.ts.map +1 -1
- package/dist/types/const.d.ts.map +1 -1
- package/package.json +12 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MathTypeEditor.d.ts","sourceRoot":"","sources":["../../src/MathTypeEditor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MathTypeEditor.d.ts","sourceRoot":"","sources":["../../src/MathTypeEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAuD,MAAM,OAAO,CAAA;AAE3E,OAAO,UAAU,CAAA;AAEjB,MAAM,WAAW,mBAAmB;IAClC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAilBjD,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../src/const.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS;;;
|
|
1
|
+
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../src/const.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS;;;GAkVrB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-mathtype-editor",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "A standalone MathType formula editor component based on React,
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "A standalone MathType formula editor component based on React, MathLive, and KaTeX",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
7
7
|
"types": "dist/types/index.types.d.ts",
|
|
8
|
-
"
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/types/index.types.d.ts",
|
|
11
|
+
"import": "./dist/index.esm.js",
|
|
12
|
+
"require": "./dist/index.cjs.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"sideEffects": ["**/*.css", "**/*.less"],
|
|
9
16
|
"files": [
|
|
10
17
|
"dist/**/*",
|
|
11
18
|
"README.md",
|
|
@@ -29,7 +36,6 @@
|
|
|
29
36
|
"formula",
|
|
30
37
|
"editor",
|
|
31
38
|
"react",
|
|
32
|
-
"antd",
|
|
33
39
|
"mathematics",
|
|
34
40
|
"equation"
|
|
35
41
|
],
|
|
@@ -44,14 +50,11 @@
|
|
|
44
50
|
},
|
|
45
51
|
"homepage": "https://github.com/yujun9008/MathTypeEditor#readme",
|
|
46
52
|
"peerDependencies": {
|
|
47
|
-
"
|
|
53
|
+
"katex": "^0.16.0",
|
|
54
|
+
"mathlive": "^0.98.6",
|
|
48
55
|
"react": "^17.0.0 || ^18.0.0",
|
|
49
56
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
50
57
|
},
|
|
51
|
-
"dependencies": {
|
|
52
|
-
"katex": "^0.16.0",
|
|
53
|
-
"mathlive": "^0.98.6"
|
|
54
|
-
},
|
|
55
58
|
"devDependencies": {
|
|
56
59
|
"@types/katex": "^0.16.0",
|
|
57
60
|
"@types/node": "^18.0.0",
|