@yoopta/marks 1.9.0-rc
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/README.md +11 -0
- package/dist/components/Marks.d.ts +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/utils/selectionRect.d.ts +1 -0
- package/package.json +39 -0
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const Bold: import("@yoopta/editor").YoptaMark;
|
|
2
|
+
export declare const Italic: import("@yoopta/editor").YoptaMark;
|
|
3
|
+
export declare const Underline: import("@yoopta/editor").YoptaMark;
|
|
4
|
+
export declare const Strike: import("@yoopta/editor").YoptaMark;
|
|
5
|
+
export declare const CodeMark: import("@yoopta/editor").YoptaMark;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Bold, Italic, Underline, Strike, CodeMark } from './components/Marks';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createYoptaMark as e}from"@yoopta/editor";var o="doUI64CQ",t="l-JZUAo-",d="_5SCxD00I",a="_7vXfdYaS",r="_7YZYr7Zb";!function(e,o){void 0===o&&(o={});var t=o.insertAt;if(e&&"undefined"!=typeof document){var d=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===t&&d.firstChild?d.insertBefore(a,d.firstChild):d.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}(".doUI64CQ{font-weight:700}.l-JZUAo-{font-style:italic}._5SCxD00I{text-decoration:line-through}._7vXfdYaS{word-wrap:break-word;border-bottom:.05em solid}._7YZYr7Zb{background:#f7f7f7;border:1px solid rgba(0,0,0,.1);border-radius:5px;color:#000;font-family:SFMono-Regular,Menlo,Consolas,PT Mono,Liberation Mono,Courier,monospace;font-size:75%;margin:3px 2px;padding:2px 6px}");const i=e({type:"bold",hotkey:"mod+b",className:o}),n=e({type:"italic",hotkey:"mod+i",className:t}),s=e({type:"underline",hotkey:"mod+u",className:a}),l=e({type:"strike",hotkey:"mod+shift+s",className:d}),m=e({type:"code",hotkey:"mod+e",className:r});export{i as Bold,m as CodeMark,n as Italic,l as Strike,s as Underline};
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getRectByCurrentSelection(): DOMRect;
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yoopta/marks",
|
|
3
|
+
"version": "1.9.0-rc",
|
|
4
|
+
"description": "> TODO: description",
|
|
5
|
+
"author": "Darginec05 <devopsbanda@gmail.com>",
|
|
6
|
+
"homepage": "https://github.com/Darginec05/Editor-Yopta#readme",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"private": false,
|
|
9
|
+
"type": "module",
|
|
10
|
+
"main": "dist/index.js",
|
|
11
|
+
"module": "dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist/"
|
|
15
|
+
],
|
|
16
|
+
"peerDependencies": {
|
|
17
|
+
"@yoopta/editor": "1.9.0-rc",
|
|
18
|
+
"react": ">=17.0.2",
|
|
19
|
+
"react-dom": ">=17.0.2",
|
|
20
|
+
"slate": ">=0.72.3",
|
|
21
|
+
"slate-react": ">=0.72.4"
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"registry": "https://registry.yarnpkg.com"
|
|
25
|
+
},
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/Darginec05/Editor-Yopta.git"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"test": "node ./__tests__/@yoopta/paragraph.test.js"
|
|
32
|
+
},
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "https://github.com/Darginec05/Editor-Yopta/issues"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"body-scroll-lock": "^4.0.0-beta.0"
|
|
38
|
+
}
|
|
39
|
+
}
|