@yoopta/marks 4.9.9 → 6.0.0-beta.2
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/bold.d.ts +1 -1
- package/dist/components/bold.d.ts.map +1 -1
- package/dist/components/code.d.ts +1 -1
- package/dist/components/code.d.ts.map +1 -1
- package/dist/components/highlight.d.ts +1 -1
- package/dist/components/highlight.d.ts.map +1 -1
- package/dist/components/italic.d.ts +1 -1
- package/dist/components/italic.d.ts.map +1 -1
- package/dist/components/strike.d.ts +1 -1
- package/dist/components/strike.d.ts.map +1 -1
- package/dist/components/underline.d.ts +1 -1
- package/dist/components/underline.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +7 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bold.d.ts","sourceRoot":"","sources":["../../src/components/bold.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"bold.d.ts","sourceRoot":"","sources":["../../src/components/bold.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGtD,KAAK,aAAa,GAAG,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEtD,eAAO,MAAM,IAAI,oDAIf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../../src/components/code.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../../src/components/code.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGtD,KAAK,aAAa,GAAG,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEtD,eAAO,MAAM,QAAQ,oDAInB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../src/components/highlight.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../src/components/highlight.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGtD,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"italic.d.ts","sourceRoot":"","sources":["../../src/components/italic.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"italic.d.ts","sourceRoot":"","sources":["../../src/components/italic.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGtD,KAAK,eAAe,GAAG,eAAe,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAE1D,eAAO,MAAM,MAAM,sDAIjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strike.d.ts","sourceRoot":"","sources":["../../src/components/strike.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"strike.d.ts","sourceRoot":"","sources":["../../src/components/strike.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGtD,KAAK,eAAe,GAAG,eAAe,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAE1D,eAAO,MAAM,MAAM,sDAIjB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { YooptaMarkProps } from '@yoopta/editor';
|
|
1
|
+
import type { YooptaMarkProps } from '@yoopta/editor';
|
|
2
2
|
type UnderlineMarkProps = YooptaMarkProps<'underline', boolean>;
|
|
3
3
|
export declare const Underline: import("@yoopta/editor").YooptaMark<UnderlineMarkProps>;
|
|
4
4
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"underline.d.ts","sourceRoot":"","sources":["../../src/components/underline.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"underline.d.ts","sourceRoot":"","sources":["../../src/components/underline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGtD,KAAK,kBAAkB,GAAG,eAAe,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAEhE,eAAO,MAAM,SAAS,yDAIpB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{createYooptaMark as o}from"@yoopta/editor";!function(e,o){void 0===o&&(o={});var t=o.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===t&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".yoo-marks-italic{font-style:italic}.yoo-marks-underline{text-decoration-line:underline}.yoopta-mark-code{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity));border-radius:.25rem;font-size:75%;padding:3px 6px}");const t=o({type:"bold",hotkey:"mod+b",render:o=>e("strong",Object.assign({className:"yoo-marks-bold yoopta-mark-bold"},{children:o.children}))}),r=o({type:"italic",hotkey:"mod+i",render:o=>e("i",Object.assign({className:"yoo-marks-italic yoopta-mark-italic"},{children:o.children}))}),i=o({type:"underline",hotkey:"mod+u",render:o=>e("u",Object.assign({className:"yoo-marks-underline yoopta-mark-underline"},{children:o.children}))}),a=o({type:"strike",hotkey:"mod+shift+s",render:o=>e("s",Object.assign({className:"yoo-marks-stroke yoopta-mark-strike"},{children:o.children}))}),n=o({type:"code",hotkey:"mod+e",render:o=>e("code",Object.assign({className:"yoopta-mark-code"},{children:o.children}))}),d=o({type:"highlight",render:o=>{var t;const r=null===(t=o.leaf)||void 0===t?void 0:t.highlight,i={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 e("span",Object.assign({style:i,className:"yoopta-mark-highlight"},{children:o.children}))}});export{t as Bold,n as CodeMark,d as Highlight,r as Italic,a as Strike,i as Underline};
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{createYooptaMark as o}from"@yoopta/editor";!function(e,o){void 0===o&&(o={});var t=o.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===t&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".yoo-marks-italic{font-style:italic}.yoo-marks-underline{text-decoration-line:underline}.yoopta-mark-code{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity,1));border-radius:.25rem;font-size:75%;padding:3px 6px}");const t=o({type:"bold",hotkey:"mod+b",render:o=>e("strong",Object.assign({className:"yoo-marks-bold yoopta-mark-bold"},{children:o.children}))}),r=o({type:"italic",hotkey:"mod+i",render:o=>e("i",Object.assign({className:"yoo-marks-italic yoopta-mark-italic"},{children:o.children}))}),i=o({type:"underline",hotkey:"mod+u",render:o=>e("u",Object.assign({className:"yoo-marks-underline yoopta-mark-underline"},{children:o.children}))}),a=o({type:"strike",hotkey:"mod+shift+s",render:o=>e("s",Object.assign({className:"yoo-marks-stroke yoopta-mark-strike"},{children:o.children}))}),n=o({type:"code",hotkey:"mod+e",render:o=>e("code",Object.assign({className:"yoopta-mark-code"},{children:o.children}))}),d=o({type:"highlight",render:o=>{var t;const r=null===(t=o.leaf)||void 0===t?void 0:t.highlight,i={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 e("span",Object.assign({style:i,className:"yoopta-mark-highlight"},{children:o.children}))}});export{t as Bold,n as CodeMark,d as Highlight,r as Italic,a as Strike,i as Underline};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoopta/marks",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-beta.2",
|
|
4
4
|
"description": "Marks for Yoopta Editor",
|
|
5
5
|
"author": "Darginec05 <devopsbanda@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/Darginec05/Yoopta-Editor#readme",
|
|
@@ -14,12 +14,13 @@
|
|
|
14
14
|
"dist/"
|
|
15
15
|
],
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@yoopta/editor": ">=4.
|
|
18
|
-
"react": ">=
|
|
19
|
-
"react-dom": ">=
|
|
17
|
+
"@yoopta/editor": ">=4.9.9",
|
|
18
|
+
"react": ">=18.2.0",
|
|
19
|
+
"react-dom": ">=18.2.0"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
|
-
"registry": "https://registry.npmjs.org"
|
|
22
|
+
"registry": "https://registry.npmjs.org",
|
|
23
|
+
"access": "public"
|
|
23
24
|
},
|
|
24
25
|
"repository": {
|
|
25
26
|
"type": "git",
|
|
@@ -34,5 +35,5 @@
|
|
|
34
35
|
"bugs": {
|
|
35
36
|
"url": "https://github.com/Darginec05/Yoopta-Editor/issues"
|
|
36
37
|
},
|
|
37
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "58d2c0e3b3b615017e0adb353b80dc493a571186"
|
|
38
39
|
}
|