@monza-editor/react 0.1.4 → 0.1.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/package.json +5 -5
- package/dist/index.d.ts +0 -9
- package/dist/index.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monza-editor/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "React component of Monza editor",
|
|
5
5
|
"repository": "https://github.com/raviqqe/monza-editor",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"react": "^19.1.1",
|
|
19
|
-
"monza-editor": "0.
|
|
19
|
+
"monza-editor": "0.5.3"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@raviqqe/react-tsconfig": "^2.0.0",
|
|
23
23
|
"@raviqqe/tsconfig": "^2.0.1",
|
|
24
|
-
"@rsbuild/plugin-react": "^1.
|
|
25
|
-
"@rslib/core": "^0.12.
|
|
24
|
+
"@rsbuild/plugin-react": "^1.4.0",
|
|
25
|
+
"@rslib/core": "^0.12.4",
|
|
26
26
|
"@testing-library/react": "^16.3.0",
|
|
27
|
-
"@types/react": "^19.1.
|
|
27
|
+
"@types/react": "^19.1.12",
|
|
28
28
|
"typescript": "^5.9.2",
|
|
29
29
|
"vitest": "^3.0.2"
|
|
30
30
|
},
|
package/dist/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type RenderOptions } from "monza-editor";
|
|
2
|
-
import { type JSX } from "react";
|
|
3
|
-
interface Props extends Omit<RenderOptions, "highlight"> {
|
|
4
|
-
className?: string;
|
|
5
|
-
id?: string;
|
|
6
|
-
onHighlight: RenderOptions["highlight"];
|
|
7
|
-
}
|
|
8
|
-
export declare const Editor: ({ className, id, onHighlight, ...rest }: Props) => JSX.Element;
|
|
9
|
-
export {};
|
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as r,jsxs as e}from"react/jsx-runtime";import{initialize as t,styles as c}from"monza-editor";import{useEffect as a,useRef as n}from"react";let l=({className:l,id:u,onHighlight:i,...m})=>{let o=n(null),d=n(null),s=n(null);return a(()=>{o.current&&d.current&&s.current&&t({...m,code:s.current,highlight:i,pre:d.current,textarea:o.current})},[o.current,d.current,s.current]),e("div",{className:`${c.main} ${l}`,id:u,children:[r("textarea",{className:c.textarea,ref:o}),r("pre",{className:c.pre,ref:d,children:r("code",{className:c.code,ref:s})})]})};export{l as Editor};
|