@yoopta/marks 2.0.1 → 4.0.0-rc.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/components/bold.d.ts +2 -0
- package/dist/components/bold.d.ts.map +1 -0
- package/dist/components/code.d.ts +2 -0
- package/dist/components/code.d.ts.map +1 -0
- package/dist/components/highlight.d.ts +9 -0
- package/dist/components/highlight.d.ts.map +1 -0
- package/dist/components/italic.d.ts +2 -0
- package/dist/components/italic.d.ts.map +1 -0
- package/dist/components/strike.d.ts +2 -0
- package/dist/components/strike.d.ts.map +1 -0
- package/dist/components/underline.d.ts +2 -0
- package/dist/components/underline.d.ts.map +1 -0
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/package.json +6 -3
- package/dist/components/Marks.d.ts +0 -5
- package/dist/types.d.ts +0 -1
- package/dist/utils/selectionRect.d.ts +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bold.d.ts","sourceRoot":"","sources":["../../src/components/bold.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,KAIf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../../src/components/code.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ,KAQnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../src/components/highlight.tsx"],"names":[],"mappings":"AAEA,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,KAepB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"italic.d.ts","sourceRoot":"","sources":["../../src/components/italic.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,KAIjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strike.d.ts","sourceRoot":"","sources":["../../src/components/strike.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,KAIjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"underline.d.ts","sourceRoot":"","sources":["../../src/components/underline.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,KAIpB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import './styles.css';
|
|
2
|
+
export { Bold } from './components/bold';
|
|
3
|
+
export { Italic } from './components/italic';
|
|
4
|
+
export { Underline } from './components/underline';
|
|
5
|
+
export { Strike } from './components/strike';
|
|
6
|
+
export { CodeMark } from './components/code';
|
|
7
|
+
export { Highlight } from './components/highlight';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{createYooptaMark as o}from"@yoopta/editor";!function(e,o){void 0===o&&(o={});var r=o.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.type="text/css","top"===r&&t.firstChild?t.insertBefore(d,t.firstChild):t.appendChild(d),d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e))}}(".yoo-marks-rounded{border-radius:.25rem}.yoo-marks-bg-\\[\\#F2F2F2\\]{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity))}.yoo-marks-px-\\[4px\\]{padding-left:4px;padding-right:4px}.yoo-marks-py-\\[2px\\]{padding-bottom:2px;padding-top:2px}.yoo-marks-text-\\[75\\%\\]{font-size:75%}.yoo-marks-italic{font-style:italic}.yoo-marks-underline{text-decoration-line:underline}");const r=o({type:"bold",hotkey:"mod+b",render:o=>e("strong",Object.assign({className:"yoo-marks-bold"},{children:o.children}))}),t=o({type:"italic",hotkey:"mod+i",render:o=>e("i",Object.assign({className:"yoo-marks-italic"},{children:o.children}))}),d=o({type:"underline",hotkey:"mod+u",render:o=>e("u",Object.assign({className:"yoo-marks-underline"},{children:o.children}))}),i=o({type:"strike",hotkey:"mod+shift+s",render:o=>e("s",Object.assign({className:"yoo-marks-stroke"},{children:o.children}))}),n=o({type:"code",hotkey:"mod+e",render:o=>e("code",Object.assign({className:"yoo-marks-bg-[#F2F2F2] yoo-marks-py-[2px] yoo-marks-px-[4px] yoo-marks-rounded yoo-marks-text-[75%]"},{children:o.children}))}),a=o({type:"highlight",render:o=>{var r;const t=null===(r=o.leaf)||void 0===r?void 0:r.highlight,d={color:null==t?void 0:t.color,backgroundColor:null==t?void 0:t.backgroundColor,backgroundImage:null==t?void 0:t.backgroundImage,WebkitTextFillColor:null==t?void 0:t.webkitTextFillColor,backgroundClip:null==t?void 0:t.backgroundClip};return e("span",Object.assign({style:d},{children:o.children}))}});export{r as Bold,n as CodeMark,a as Highlight,t as Italic,i as Strike,d as Underline};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoopta/marks",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-rc.0",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "Darginec05 <devopsbanda@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/Darginec05/Editor-Yoopta#readme",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dist/"
|
|
15
15
|
],
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@yoopta/editor": ">=
|
|
17
|
+
"@yoopta/editor": ">=4.0.0-rc.0",
|
|
18
18
|
"react": ">=17.0.2",
|
|
19
19
|
"react-dom": ">=17.0.2",
|
|
20
20
|
"slate": ">=0.72.3",
|
|
@@ -28,7 +28,10 @@
|
|
|
28
28
|
"url": "git+https://github.com/Darginec05/Editor-Yoopta.git"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
|
-
"test": "node ./__tests__/@yoopta/paragraph.test.js"
|
|
31
|
+
"test": "node ./__tests__/@yoopta/paragraph.test.js",
|
|
32
|
+
"start": "rollup --config rollup.config.js --watch --bundleConfigAsCjs --environment NODE_ENV:development",
|
|
33
|
+
"build": "rollup --config rollup.config.js --bundleConfigAsCjs --environment NODE_ENV:production",
|
|
34
|
+
"publish": "yarn build && npm publish --access public"
|
|
32
35
|
},
|
|
33
36
|
"bugs": {
|
|
34
37
|
"url": "https://github.com/Darginec05/Editor-Yoopta/issues"
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const Bold: import("@yoopta/editor").YooptaMark;
|
|
2
|
-
export declare const Italic: import("@yoopta/editor").YooptaMark;
|
|
3
|
-
export declare const Underline: import("@yoopta/editor").YooptaMark;
|
|
4
|
-
export declare const Strike: import("@yoopta/editor").YooptaMark;
|
|
5
|
-
export declare const CodeMark: import("@yoopta/editor").YooptaMark;
|
package/dist/types.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getRectByCurrentSelection(): DOMRect;
|