@yoopta/marks 4.0.0-rc.1 → 4.0.0-rc.3
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.map +1 -0
- package/package.json +3 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../node_modules/style-inject/dist/style-inject.es.js","../src/components/bold.tsx","../src/components/italic.tsx","../src/components/underline.tsx","../src/components/strike.tsx","../src/components/code.tsx","../src/components/highlight.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import { createYooptaMark, YooptaMarkProps } from '@yoopta/editor';\n\ntype BoldMarkProps = YooptaMarkProps<'bold', boolean>;\n\nexport const Bold = createYooptaMark<BoldMarkProps>({\n type: 'bold',\n hotkey: 'mod+b',\n render: (props) => <strong className=\"yoo-marks-bold\">{props.children}</strong>,\n});\n","import { createYooptaMark, YooptaMarkProps } from '@yoopta/editor';\n\ntype ItalicMarkProps = YooptaMarkProps<'italic', boolean>;\n\nexport const Italic = createYooptaMark<ItalicMarkProps>({\n type: 'italic',\n hotkey: 'mod+i',\n render: (props) => <i className=\"yoo-marks-italic\">{props.children}</i>,\n});\n","import { createYooptaMark, YooptaMarkProps } from '@yoopta/editor';\n\ntype UnderlineMarkProps = YooptaMarkProps<'underline', boolean>;\n\nexport const Underline = createYooptaMark<UnderlineMarkProps>({\n type: 'underline',\n hotkey: 'mod+u',\n render: (props) => <u className=\"yoo-marks-underline\">{props.children}</u>,\n});\n","import { createYooptaMark, YooptaMarkProps } from '@yoopta/editor';\n\ntype StrikeMarkProps = YooptaMarkProps<'strike', boolean>;\n\nexport const Strike = createYooptaMark<StrikeMarkProps>({\n type: 'strike',\n hotkey: 'mod+shift+s',\n render: (props) => <s className=\"yoo-marks-stroke\">{props.children}</s>,\n});\n","import { YooptaMarkProps, createYooptaMark } from '@yoopta/editor';\n\ntype CodeMarkProps = YooptaMarkProps<'code', boolean>;\n\nexport const CodeMark = createYooptaMark<CodeMarkProps>({\n type: 'code',\n hotkey: 'mod+e',\n render: (props) => (\n <code className=\"yoo-marks-bg-[#F2F2F2] yoo-marks-py-[2px] yoo-marks-px-[4px] yoo-marks-rounded yoo-marks-text-[75%]\">\n {props.children}\n </code>\n ),\n});\n","import { YooptaMarkProps, createYooptaMark } from '@yoopta/editor';\n\nexport type LeafColorProps = {\n color: string;\n backgroundColor: string;\n backgroundImage?: string;\n backgroundClip?: string;\n webkitTextFillColor?: string;\n};\n\nexport const Highlight = createYooptaMark<YooptaMarkProps<'highlight', LeafColorProps>>({\n type: 'highlight',\n render: (props) => {\n const highlight = props.leaf?.highlight;\n\n const style = {\n color: highlight?.color,\n backgroundColor: highlight?.backgroundColor,\n backgroundImage: highlight?.backgroundImage,\n WebkitTextFillColor: highlight?.webkitTextFillColor,\n backgroundClip: highlight?.backgroundClip,\n };\n\n return <span style={style}>{props.children}</span>;\n },\n});\n"],"names":["_jsx"],"mappings":";;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CA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AA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAE,SAAS,CAAC;AAExC,QAAA,MAAM,KAAK,GAAG;AACZ,YAAA,KAAK,EAAE,SAAS,KAAA,IAAA,IAAT,SAAS,KAAT,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,SAAS,CAAE,KAAK;AACvB,YAAA,eAAe,EAAE,SAAS,KAAA,IAAA,IAAT,SAAS,KAAT,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,SAAS,CAAE,eAAe;AAC3C,YAAA,eAAe,EAAE,SAAS,KAAA,IAAA,IAAT,SAAS,KAAT,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,SAAS,CAAE,eAAe;AAC3C,YAAA,mBAAmB,EAAE,SAAS,KAAA,IAAA,IAAT,SAAS,KAAT,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,SAAS,CAAE,mBAAmB;AACnD,YAAA,cAAc,EAAE,SAAS,KAAA,IAAA,IAAT,SAAS,KAAT,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,SAAS,CAAE,cAAc;SAC1C,CAAC;QAEF,OAAOA,GAAA,CAAA,MAAA,EAAA,MAAA,CAAA,MAAA,CAAA,EAAM,KAAK,EAAE,KAAK,gBAAG,KAAK,CAAC,QAAQ,EAAA,CAAA,CAAQ,CAAC;KACpD;AACF,CAAA;;;;","x_google_ignoreList":[0]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoopta/marks",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.3",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "Darginec05 <devopsbanda@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/Darginec05/Editor-Yoopta#readme",
|
|
@@ -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": "08b263f1b00f0691fa90158dfe5e4521e83c9278"
|
|
43
38
|
}
|