@yoopta/marks 4.0.0-rc.1 → 4.0.0-rc.11
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/highlight.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +5 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../src/components/highlight.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAoB,MAAM,gBAAgB,CAAC;AAEnE,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../src/components/highlight.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAoB,MAAM,gBAAgB,CAAC;AAEnE,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,SAAS,mFAmBpB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{createYooptaMark as e}from"@yoopta/editor";!function(o,e){void 0===e&&(e={});var t=e.insertAt;if(o&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===t&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=o:a.appendChild(document.createTextNode(o))}}("#yoopta-editor .yoo-marks-rounded{border-radius:.25rem}#yoopta-editor .yoo-marks-bg-\\[\\#F2F2F2\\]{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity))}#yoopta-editor .yoo-marks-px-\\[6px\\]{padding-left:6px;padding-right:6px}#yoopta-editor .yoo-marks-py-\\[3px\\]{padding-bottom:3px;padding-top:3px}#yoopta-editor .yoo-marks-text-\\[12px\\]{font-size:12px}#yoopta-editor .yoo-marks-italic{font-style:italic}#yoopta-editor .yoo-marks-underline{text-decoration-line:underline}");const t=e({type:"bold",hotkey:"mod+b",render:e=>o("strong",Object.assign({className:"yoo-marks-bold yoopta-mark-bold"},{children:e.children}))}),r=e({type:"italic",hotkey:"mod+i",render:e=>o("i",Object.assign({className:"yoo-marks-italic yoopta-mark-italic"},{children:e.children}))}),a=e({type:"underline",hotkey:"mod+u",render:e=>o("u",Object.assign({className:"yoo-marks-underline yoopta-mark-underline"},{children:e.children}))}),i=e({type:"strike",hotkey:"mod+shift+s",render:e=>o("s",Object.assign({className:"yoo-marks-stroke yoopta-mark-strike"},{children:e.children}))}),d=e({type:"code",hotkey:"mod+e",render:e=>o("code",Object.assign({className:"yoo-marks-bg-[#F2F2F2] yoo-marks-py-[3px] yoo-marks-px-[6px] yoo-marks-rounded yoo-marks-text-[12px] yoopta-mark-code"},{children:e.children}))}),n=e({type:"highlight",render:e=>{var t;const r=null===(t=e.leaf)||void 0===t?void 0:t.highlight,a={color:null==r?void 0:r.color,backgroundColor:null==r?void 0:r.backgroundColor,backgroundImage:null==r?void 0:r.backgroundImage,WebkitTextFillColor:null==r?void 0:r.webkitTextFillColor,backgroundClip:null==r?void 0:r.backgroundClip};return o("span",Object.assign({style:a,className:"yoopta-mark-highlight"},{children:e.children}))}});export{t as Bold,d as CodeMark,n as Highlight,r as Italic,i as Strike,a as Underline};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoopta/marks",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "4.0.0-rc.11",
|
|
4
|
+
"description": "Marks for Yoopta Editor",
|
|
5
5
|
"author": "Darginec05 <devopsbanda@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/Darginec05/Editor-Yoopta#readme",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"private": false,
|
|
9
|
-
"type": "module",
|
|
10
9
|
"main": "dist/index.js",
|
|
10
|
+
"type": "module",
|
|
11
11
|
"module": "dist/index.js",
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"files": [
|
|
@@ -16,9 +16,7 @@
|
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@yoopta/editor": ">=4.0.0-rc.0",
|
|
18
18
|
"react": ">=17.0.2",
|
|
19
|
-
"react-dom": ">=17.0.2"
|
|
20
|
-
"slate": ">=0.99.0",
|
|
21
|
-
"slate-react": ">=0.99.0"
|
|
19
|
+
"react-dom": ">=17.0.2"
|
|
22
20
|
},
|
|
23
21
|
"publishConfig": {
|
|
24
22
|
"registry": "https://registry.yarnpkg.com"
|
|
@@ -36,8 +34,5 @@
|
|
|
36
34
|
"bugs": {
|
|
37
35
|
"url": "https://github.com/Darginec05/Editor-Yoopta/issues"
|
|
38
36
|
},
|
|
39
|
-
"
|
|
40
|
-
"body-scroll-lock": "^4.0.0-beta.0"
|
|
41
|
-
},
|
|
42
|
-
"gitHead": "c46f09afdb5f60f98f2065e24305a9d02ed57ca7"
|
|
37
|
+
"gitHead": "9e69d54d6822b1e76f4218510f07be46bf910756"
|
|
43
38
|
}
|