react-mathtype-editor 1.0.4 → 1.0.6
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 +49 -2
- package/dist/index.cjs.js +3 -34
- package/dist/index.esm.js +200 -849
- package/dist/types/MathTypeEditor.d.ts +6 -1
- package/dist/types/MathTypeEditor.d.ts.map +1 -1
- package/dist/types/index.types.d.ts +1 -1
- package/dist/types/index.types.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import 'mathlive';
|
|
3
|
+
/** Namespaced CSS custom properties can be set without a type assertion. */
|
|
4
|
+
export type MathTypeEditorStyle = React.CSSProperties & {
|
|
5
|
+
[key: `--mathtype-${string}`]: string | number | undefined;
|
|
6
|
+
};
|
|
3
7
|
export interface MathTypeEditorProps {
|
|
4
8
|
defaultValue?: string;
|
|
5
9
|
onChange?: (value: string) => void;
|
|
6
|
-
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: MathTypeEditorStyle;
|
|
7
12
|
}
|
|
8
13
|
declare const MathTypeEditor: React.FC<MathTypeEditorProps>;
|
|
9
14
|
export default MathTypeEditor;
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,4EAA4E;AAC5E,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,aAAa,GAAG;IACtD,CAAC,GAAG,EAAE,cAAc,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;CAC3D,CAAA;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,mBAAmB,CAAA;CAC5B;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA+mBjD,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import MathTypeEditor from './MathTypeEditor';
|
|
2
2
|
export { MathTypeEditor };
|
|
3
3
|
export default MathTypeEditor;
|
|
4
|
-
export type { MathTypeEditorProps } from './MathTypeEditor';
|
|
4
|
+
export type { MathTypeEditorProps, MathTypeEditorStyle } from './MathTypeEditor';
|
|
5
5
|
//# sourceMappingURL=index.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.types.d.ts","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":"AAGA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,eAAe,cAAc,CAAC;AAG9B,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.types.d.ts","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":"AAGA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,eAAe,cAAc,CAAC;AAG9B,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-mathtype-editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
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",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"katex": "^0.16.0",
|
|
54
54
|
"mathlive": "^0.98.6",
|
|
55
|
-
"react": "^17.0.0 || ^18.0.0",
|
|
56
|
-
"react-dom": "^17.0.0 || ^18.0.0"
|
|
55
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
56
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/katex": "^0.16.0",
|