@monza-editor/preact 0.5.14 → 0.6.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/index.js +1 -1
- package/package.json +6 -6
- package/CHANGELOG.md +0 -13
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{initialize as e,styles as t}from"monza-editor";import{useEffect as n,useRef as r}from"preact/hooks";import{jsx as i,jsxs as a}from"preact/jsx-runtime";const o=({id:o,onHighlight:s,value:c,...l})=>{let u=r(null),d=r(null),f=r(null);return n(()=>{u.current&&d.current&&f.current&&e({...l,code:f.current,highlight:s,pre:d.current,textarea:u.current})},[u.current,d.current,f.current]),a(`div`,{class:`${t.
|
|
1
|
+
import{initialize as e,styles as t}from"monza-editor";import{useEffect as n,useRef as r}from"preact/hooks";import{jsx as i,jsxs as a}from"preact/jsx-runtime";const o=({id:o,onHighlight:s,value:c,...l})=>{let u=r(null),d=r(null),f=r(null);return n(()=>{u.current&&d.current&&f.current&&e({...l,code:f.current,highlight:s,pre:d.current,textarea:u.current})},[u.current,d.current,f.current]),a(`div`,{class:`${t.root} ${l.class}`,id:o,children:[i(`textarea`,{class:t.textarea,ref:u,children:c}),i(`pre`,{class:t.pre,ref:d,children:i(`code`,{class:t.code,ref:f})})]})};export{o as Editor};
|
package/package.json
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monza-editor/preact",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Preact component of Monza editor",
|
|
5
|
+
"license": "MIT",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
7
8
|
"url": "https://github.com/raviqqe/monza-editor"
|
|
8
9
|
},
|
|
9
|
-
"license": "MIT",
|
|
10
|
-
"publishConfig": {
|
|
11
|
-
"provenance": true
|
|
12
|
-
},
|
|
13
10
|
"type": "module",
|
|
14
11
|
"exports": {
|
|
15
12
|
".": {
|
|
@@ -17,8 +14,11 @@
|
|
|
17
14
|
"default": "./dist/index.js"
|
|
18
15
|
}
|
|
19
16
|
},
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"provenance": true
|
|
19
|
+
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"monza-editor": "^0.
|
|
21
|
+
"monza-editor": "^0.6.0",
|
|
22
22
|
"preact": "^10.29.8"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|