@soul-refiner/design-system 2.14.126 → 2.14.128
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/editor/constants.js +1 -1
- package/dist/components/editor/minimal_editor/navbar.js +4 -4
- package/dist/components/editor/minimal_editor/plugins.js +1 -1
- package/dist/components/editor/navbar/navbar.js +6 -6
- package/dist/components/editor/navbar/style_dropdown.js +1 -1
- package/dist/components/editor/plugins/blocks/blocks.js +1 -1
- package/dist/components/editor/plugins/blocks/buttons.js +1 -1
- package/dist/components/editor/plugins/blocks/text.js +1 -1
- package/dist/components/editor/plugins/blocks/video.js +1 -1
- package/dist/components/editor/plugins/leafs/leafs.js +1 -1
- package/dist/components/editor/plugins/plate.js +1 -1
- package/dist/components/editor/plugins/utils/exitBreak.js +1 -1
- package/dist/components/editor/plugins/utils/resetBlockType.js +1 -1
- package/dist/components/editor/plugins/utils/selectOnBackspace.js +1 -1
- package/dist/components/editor/plugins/utils/softBreak.js +1 -1
- package/dist/components/editor/simple_editor/navbar.js +4 -4
- package/dist/components/editor/simple_editor/plugins.js +1 -1
- package/dist/src/components/editor/constants.d.ts +43 -1
- package/dist/src/components/editor/constants.d.ts.map +1 -1
- package/dist/src/components/editor/minimal_editor/alignment_dropdown.d.ts +1 -1
- package/dist/src/components/editor/minimal_editor/alignment_dropdown.d.ts.map +1 -1
- package/dist/src/components/editor/minimal_editor/plugins.d.ts.map +1 -1
- package/dist/src/components/editor/navbar/alignment_dropdown.d.ts +1 -1
- package/dist/src/components/editor/navbar/alignment_dropdown.d.ts.map +1 -1
- package/dist/src/components/editor/navbar/navbar.d.ts.map +1 -1
- package/dist/src/components/editor/plugins/plate.d.ts +104 -2
- package/dist/src/components/editor/plugins/plate.d.ts.map +1 -1
- package/dist/src/components/editor/plugins/utils/exitBreak.d.ts +1 -1
- package/dist/src/components/editor/plugins/utils/resetBlockType.d.ts +2 -2
- package/dist/src/components/editor/plugins/utils/selectOnBackspace.d.ts +1 -1
- package/dist/src/components/editor/plugins/utils/softBreak.d.ts.map +1 -1
- package/dist/src/components/editor/simple_editor/navbar.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";exports.BUTTON_LINK="button-link",exports.BUTTON_SUBSCRIBE="button-subscribe",exports.COLORS=["var(--color-turquoise-5)","var(--color-green-5)","var(--color-blue-5)","var(--color-purple-5)","var(--color-yellow-5)","var(--color-orange-5)","var(--color-red-5)"],exports.ELEMENT_BLOCKQUOTE="blockquote",exports.ELEMENT_BUTTON="button",exports.ELEMENT_H1="h1",exports.ELEMENT_H2="h2",exports.ELEMENT_H3="h3",exports.ELEMENT_H4="h4",exports.ELEMENT_H5="h5",exports.ELEMENT_H6="h6",exports.ELEMENT_HR="hr",exports.ELEMENT_IMAGE="img",exports.ELEMENT_LINK="a",exports.ELEMENT_MEDIA="media",exports.ELEMENT_MEDIA_EMBED="media_embed",exports.ELEMENT_OL="ol",exports.ELEMENT_PARAGRAPH="p",exports.ELEMENT_QA="q-n-a",exports.ELEMENT_TABLE="table",exports.ELEMENT_TD="td",exports.ELEMENT_TH="th",exports.ELEMENT_TODO_LI="todo_li",exports.ELEMENT_TR="tr",exports.ELEMENT_UL="ul",exports.ELEMENT_VIDEO="video",exports.MARK_BOLD="bold",exports.MARK_CODE="code",exports.MARK_ITALIC="italic",exports.MARK_LINK="link",exports.MARK_STRIKETHROUGH="strikethrough",exports.MARK_SUBSCRIPT="subscript",exports.MARK_SUPERSCRIPT="superscript",exports.MARK_UNDERLINE="underline",exports.PLACEHOLDER="This is a placeholder";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("styled-components"),i=require("@udecode/plate-common"),t=require("@udecode/plate-indent"),o=require("../../../icons/basic/bold.js"),n=require("../../../icons/basic/italic.js"),d=require("../../../icons/basic/underline.js"),s=require("../../../icons/text/list_ordered.js"),l=require("../../../icons/text/list_unordered.js"),c=require("../../../icons/text/indent_increase.js"),a=require("../../../icons/text/indent_decrease.js"),g=require("./alignment_dropdown.js");const
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("styled-components"),i=require("@udecode/plate-common"),t=require("@udecode/plate-indent"),o=require("../../../icons/basic/bold.js"),n=require("../../../icons/basic/italic.js"),d=require("../../../icons/basic/underline.js"),s=require("../../../icons/text/list_ordered.js"),l=require("../../../icons/text/list_unordered.js"),c=require("../../../icons/text/indent_increase.js"),a=require("../../../icons/text/indent_decrease.js"),g=require("../constants.js"),u=require("./alignment_dropdown.js");const h=r.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: 4px;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
background-color: ${({$navBackgroundColor:e})=>e};
|
|
7
7
|
border-radius: 4px 4px 0 0;
|
|
8
8
|
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
|
|
9
|
-
`,
|
|
9
|
+
`,x=r.styled.button`
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
12
12
|
justify-content: center;
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
fill: var(--color-grey-7);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
`,
|
|
40
|
+
`,p=r.styled.div`
|
|
41
41
|
width: 1px;
|
|
42
42
|
height: 20px;
|
|
43
43
|
background-color: ${({$borderColor:e})=>e};
|
|
44
44
|
margin: 0 4px;
|
|
45
|
-
`;exports.MinimalEditorBar=({navBackgroundColor:r="var(--color-white)",borderColor
|
|
45
|
+
`;exports.MinimalEditorBar=({navBackgroundColor:r="var(--color-white)",borderColor:$="var(--color-grey-9)",buttonWidth:j=28,buttonHeight:b=28})=>{const v=i.useEditorRef(),y=i.useEditorSelector(e=>i.isMarkActive(e,g.MARK_BOLD),[]),k=i.useEditorSelector(e=>i.isMarkActive(e,g.MARK_ITALIC),[]),E=i.useEditorSelector(e=>i.isMarkActive(e,g.MARK_UNDERLINE),[]),C=i.useEditorSelector(e=>i.someNode(e,{match:{type:i.getPluginType(e,g.ELEMENT_OL)}}),[]),L=i.useEditorSelector(e=>i.someNode(e,{match:{type:i.getPluginType(e,g.ELEMENT_UL)}}),[]);return e.jsxs(h,{$navBackgroundColor:r,$borderColor:$,children:[e.jsx(x,{$active:y,onClick:()=>{v&&i.toggleMark(v,{key:g.MARK_BOLD})},title:"Bold",$width:j,$height:b,children:e.jsx(o.Bold,{size:16})}),e.jsx(x,{$active:k,onClick:()=>{v&&i.toggleMark(v,{key:g.MARK_ITALIC})},title:"Italic",$width:j,$height:b,children:e.jsx(n.Italic,{size:16})}),e.jsx(x,{$active:E,onClick:()=>{v&&i.toggleMark(v,{key:g.MARK_UNDERLINE})},title:"Underline",$width:j,$height:b,children:e.jsx(d.Underline,{size:16})}),e.jsx(p,{$borderColor:$}),e.jsx(u.MinimalAlignmentDropdown,{editorRef:v}),e.jsx(p,{$borderColor:$}),e.jsx(x,{$active:L,onClick:()=>{v&&i.toggleNodeType(v,{activeType:i.getPluginType(v,g.ELEMENT_UL)})},title:"Bullet List",$width:j,$height:b,children:e.jsx(l.ListUnordered,{size:16})}),e.jsx(x,{$active:C,onClick:()=>{v&&i.toggleNodeType(v,{activeType:i.getPluginType(v,g.ELEMENT_OL)})},title:"Numbered List",$width:j,$height:b,children:e.jsx(s.ListOrdered,{size:16})}),e.jsx(p,{$borderColor:$}),e.jsx(x,{onClick:()=>{v&&t.outdent(v)},title:"Decrease Indent",$width:j,$height:b,children:e.jsx(a.IndentDecrease,{size:16})}),e.jsx(x,{onClick:()=>{v&&t.indent(v)},title:"Increase Indent",$width:j,$height:b,children:e.jsx(c.IndentIncrease,{size:16})})]})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@udecode/plate-common"),t=require("@udecode/plate"),i=require("@udecode/plate-
|
|
1
|
+
"use strict";var e=require("@udecode/plate-common"),t=require("@udecode/plate"),i=require("@udecode/plate-alignment"),n=require("@udecode/plate-indent"),r=require("../constants.js"),a=require("../plugins/plate.js");const l=e.createPlugins([t.createParagraphPlugin(),t.createListPlugin(),t.createBoldPlugin(),t.createItalicPlugin(),t.createUnderlinePlugin(),i.createAlignPlugin({inject:{props:{validTypes:[r.ELEMENT_PARAGRAPH]}}}),n.createIndentPlugin({options:{offset:40,unit:"px"}}),t.createHistoryPlugin()],{components:a.plateUI});exports.plugins=l;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),o=require("react"),i=require("styled-components"),r=require("@udecode/plate-common"),t=require("@udecode/plate-table"),n=require("
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),o=require("react"),i=require("styled-components"),r=require("@udecode/plate-common"),t=require("@udecode/plate-table"),n=require("../../feedback/tooltip/tooltip.js"),c=require("../../../icons/basic/bold.js"),l=require("../../../icons/file/file_code.js"),s=require("../../../icons/layout/grid.js"),d=require("../../../icons/audio_video/headphones.js"),a=require("../../../icons/basic/image.js"),p=require("../../../icons/basic/italic.js"),u=require("../../../icons/basic/link.js"),x=require("../../../icons/text/list_ordered.js"),j=require("../../../icons/text/list_unordered.js"),g=require("../../../icons/text/quote.js"),h=require("../../../icons/arrow/redo.js"),y=require("../../../icons/basic/strikethrough.js"),v=require("../../../icons/basic/underline.js"),k=require("../../../icons/arrow/undo.js"),T=require("../../../icons/basic/video.js"),E=require("../constants.js"),b=require("./style_dropdown.js"),M=require("./alignment_dropdown.js"),f=require("./button_modal.js");function q(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var R=q(o);const L=i.styled.div`
|
|
2
2
|
position: sticky;
|
|
3
3
|
z-index: 2;
|
|
4
4
|
left: 0;
|
|
5
5
|
right: 0;
|
|
6
6
|
top: 0;
|
|
7
|
-
`,
|
|
7
|
+
`,_=i.styled.nav`
|
|
8
8
|
display: flex;
|
|
9
9
|
gap: 12px;
|
|
10
10
|
justify-content: center;
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
margin: 0 auto;
|
|
14
14
|
padding: 14px 24px;
|
|
15
15
|
background-color: var(--color-white);
|
|
16
|
-
`,
|
|
16
|
+
`,A=i.styled.div`
|
|
17
17
|
display: flex;
|
|
18
18
|
gap: 16px;
|
|
19
19
|
align-items: center;
|
|
20
20
|
width: fit-content;
|
|
21
21
|
flex-shrink: 0;
|
|
22
|
-
`,
|
|
22
|
+
`,m=i.styled.button`
|
|
23
23
|
padding: 2px;
|
|
24
24
|
border: none;
|
|
25
25
|
outline: none;
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
background-color: ${({$active:e})=>e?"var(--color-grey-9)":"transparent"};
|
|
50
|
-
`,
|
|
50
|
+
`,C=i.styled.div`
|
|
51
51
|
width: 1px;
|
|
52
52
|
height: 28px;
|
|
53
53
|
background-color: var(--color-grey-9);
|
|
54
|
-
`;exports.EditorBar=()=>{const o=r.useEditorRef("main"),i=r.useEditorState(),R
|
|
54
|
+
`;exports.EditorBar=()=>{const o=r.useEditorRef("main"),i=r.useEditorState(),q=R.default.useRef(null),N=R.default.useRef(null),$=R.default.useRef(null),z=r.useEditorSelector(e=>r.isMarkActive(e,E.MARK_BOLD),[]),K=r.useEditorSelector(e=>r.isMarkActive(e,E.MARK_ITALIC),[]),I=r.useEditorSelector(e=>r.isMarkActive(e,E.MARK_STRIKETHROUGH),[]),w=r.useEditorSelector(e=>r.isMarkActive(e,E.MARK_UNDERLINE),[]),S=r.useEditorSelector(e=>r.isMarkActive(e,E.MARK_CODE),[]),U=r.useEditorSelector(e=>r.isMarkActive(e,E.MARK_LINK),[]),O=r.useEditorSelector(e=>r.someNode(e,{match:{type:r.getPluginType(e,E.ELEMENT_OL)}}),[]),B=r.useEditorSelector(e=>r.someNode(e,{match:{type:r.getPluginType(e,E.ELEMENT_UL)}}),[]);return e.jsx(L,{children:e.jsxs(_,{"aria-label":"editor-navigation",children:[e.jsxs(A,{children:[e.jsx(n.Tooltip,{content:"Undo",place:"top",children:e.jsx(m,{$active:!1,onClick:()=>o.undo(),children:e.jsx(k.Undo,{size:24,color:"grey-5"})})}),e.jsx(n.Tooltip,{content:"Redo",place:"top",children:e.jsx(m,{$active:!1,onClick:()=>o.redo(),children:e.jsx(h.Redo,{size:24,color:"grey-5"})})})]}),e.jsx(C,{}),e.jsx(A,{children:e.jsx(b.StyleDropdown,{editorRef:o})}),e.jsx(C,{}),e.jsxs(A,{children:[e.jsx(n.Tooltip,{content:"Bold",place:"top",children:e.jsx(m,{$active:z,onClick:()=>{o&&r.toggleMark(o,{key:E.MARK_BOLD})},children:e.jsx(c.Bold,{size:24,color:"grey-5"})})}),e.jsx(n.Tooltip,{content:"Italic",place:"top",children:e.jsx(m,{$active:K,onClick:()=>{o&&r.toggleMark(o,{key:E.MARK_ITALIC})},children:e.jsx(p.Italic,{size:24,color:"grey-5"})})}),e.jsx(n.Tooltip,{content:"Underline",place:"top",children:e.jsx(m,{$active:w,onClick:()=>{o&&r.toggleMark(o,{key:E.MARK_UNDERLINE})},children:e.jsx(v.Underline,{size:24,color:"grey-5"})})}),e.jsx(n.Tooltip,{content:"Strikethrough",place:"top",children:e.jsx(m,{$active:I,onClick:()=>{o&&r.toggleMark(o,{key:E.MARK_STRIKETHROUGH})},children:e.jsx(y.Strikethrough,{size:24,color:"grey-5"})})}),e.jsx(n.Tooltip,{content:"Inline code",place:"top",children:e.jsx(m,{$active:S,onClick:()=>{o&&r.toggleMark(o,{key:E.MARK_CODE})},children:e.jsx(l.FileCode,{size:24,color:"grey-5"})})})]}),e.jsx(C,{}),e.jsx(A,{children:e.jsx(m,{$active:!1,as:"div",children:e.jsx(M.AlignmentDropdown,{editorRef:o})})}),e.jsx(C,{}),e.jsxs(A,{children:[e.jsx(n.Tooltip,{content:"Link",place:"top",children:e.jsx(m,{$active:U,onClick:()=>{const e=window.prompt("Enter URL:");e&&o&&r.toggleMark(o,{key:E.MARK_LINK,value:{url:e}})},children:e.jsx(u.Link,{size:24,color:"grey-5"})})}),e.jsx(n.Tooltip,{content:"Image",place:"top",children:e.jsx(m,{$active:!1,as:"label",children:e.jsxs("div",{children:[e.jsx("input",{accept:"image/*",ref:N,style:{display:"none"},type:"file"}),e.jsx(a.Image,{size:24,color:"grey-5"})]})})}),e.jsx(n.Tooltip,{content:"Video",place:"top",children:e.jsx(m,{$active:!1,as:"label",onChange:async()=>{$.current},children:e.jsxs("div",{onClick:()=>$.current?.click(),children:[e.jsx("input",{accept:"video/*",ref:$,style:{display:"none"},type:"file"}),e.jsx(T.Video,{size:24,color:"grey-5"})]})})}),e.jsx(n.Tooltip,{content:"Audio",place:"top",children:e.jsx(m,{$active:!1,as:"label",onChange:async e=>{e.target},children:e.jsxs("div",{onClick:()=>q.current?.click(),children:[e.jsx("input",{accept:"audio/*",ref:q,style:{display:"none"},type:"file"}),e.jsx(d.Headphones,{size:24,color:"grey-5"})]})})}),e.jsx(n.Tooltip,{content:"Blockquote",place:"top",children:e.jsx(m,{$active:!1,onClick:()=>{r.toggleNodeType(i,{activeType:E.ELEMENT_BLOCKQUOTE})},children:e.jsx(g.Quote,{size:24,color:"grey-5"})})}),e.jsx(n.Tooltip,{content:"Add a button",place:"top",children:e.jsx(f.ButtonModal,{onButtonInsert:e=>{r.insertNodes(o,[{type:r.getPluginType(o,E.ELEMENT_BUTTON),buttonType:e,children:[{text:"Subscribe"}]}])}})})]}),e.jsx(C,{}),e.jsxs(A,{children:[e.jsx(n.Tooltip,{content:"Unordered List",place:"top",children:e.jsx(m,{$active:B,onClick:()=>{o&&r.toggleNodeType(o,{activeType:r.getPluginType(o,E.ELEMENT_UL)})},children:e.jsx(j.ListUnordered,{size:24,color:"grey-5"})})}),e.jsx(n.Tooltip,{content:"Ordered List",place:"top",children:e.jsx(m,{$active:O,onClick:()=>{o&&r.toggleNodeType(o,{activeType:r.getPluginType(o,E.ELEMENT_OL)})},children:e.jsx(x.ListOrdered,{size:24,color:"grey-5"})})}),e.jsx(n.Tooltip,{content:"Add a button",place:"top",children:e.jsx(m,{$active:O,onClick:()=>{t.insertTable(o)},children:e.jsx(s.Grid,{size:24,color:"grey-5"})})})]})]})})},exports.MenuButton=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),a=require("@udecode/plate-common"),i=require("../../actions/button/button.js"),n=require("../../actions/dropdown/dropdown.js");const
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),a=require("@udecode/plate-common"),i=require("../../actions/button/button.js"),n=require("../../actions/dropdown/dropdown.js"),t=require("../constants.js");const o=[{value:t.ELEMENT_PARAGRAPH,label:"Paragraph",description:"Paragraph"},{value:t.ELEMENT_H1,label:"Heading 1",description:"Heading 1"},{value:t.ELEMENT_H2,label:"Heading 2",description:"Heading 2"},{value:t.ELEMENT_H3,label:"Heading 3",description:"Heading 3"},{value:t.ELEMENT_H4,label:"Heading 4",description:"Heading 4"},{value:t.ELEMENT_H5,label:"Heading 5",description:"Heading 5"},{value:t.ELEMENT_H6,label:"Heading 6",description:"Heading 6"}],l=o.find(e=>e.value===t.ELEMENT_PARAGRAPH);exports.StyleDropdown=({editorRef:r})=>{let d=t.ELEMENT_PARAGRAPH;if(a.isCollapsed(r?.selection)){const e=a.findNode(r,{match:e=>a.isBlock(r,e)});e&&(d=o.find(a=>a.value===e[0].type)?.value??t.ELEMENT_PARAGRAPH)}const s=o.find(e=>e.value===d)??l,{label:E}=s;return e.jsx(n.Dropdown,{maintainState:!1,onChange:e=>{const i=e.target.getAttribute("data-value");i&&a.toggleNodeType(r,{activeType:i})},options:o,trigger:e.jsx(i.Button,{type:"special",size:"small",sx:"padding: 1px 4px; & > * { color: var(--color-grey-5); }",children:E})})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("
|
|
1
|
+
"use strict";var e=require("../../constants.js"),t=require("@udecode/plate"),r=require("@udecode/plate-media"),i=require("@udecode/plate-table"),a=require("./text.js"),u=require("./buttons.js"),l=require("./qa.js"),n=require("./video.js");const c=[u.createButtonsPlugin(),t.createBlockquotePlugin(),t.createCodeBlockPlugin(),t.createHorizontalRulePlugin(),r.createImagePlugin({options:{disableUploadInsert:!0,disableEmbedInsert:!0}}),l.createQAPlugin(),t.createTextIndentPlugin(),t.createIndentListPlugin({inject:{props:{validTypes:[e.ELEMENT_PARAGRAPH,e.ELEMENT_H1,e.ELEMENT_H2,e.ELEMENT_H3,e.ELEMENT_H4,e.ELEMENT_H5,e.ELEMENT_H6,e.ELEMENT_OL,e.ELEMENT_UL]}}}),t.createListPlugin(),r.createMediaEmbedPlugin(),a.createParagraphPlugin(),a.createHOnePlugin(),a.createHTwoPlugin(),a.createHThreePlugin(),a.createHFourPlugin(),a.createHFivePlugin(),a.createHSixPlugin(),t.createResetNodePlugin(),i.createTablePlugin(),n.createVideoTitlePlugin()];exports.blocks=c;
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
border-radius: 50%;
|
|
18
18
|
background-color: ${({$color:e})=>e};
|
|
19
19
|
cursor: pointer;
|
|
20
|
-
`,d=r.createPluginFactory({key:i.ELEMENT_BUTTON,type:i.ELEMENT_BUTTON,isElement:!0,component:l,then:()=>({inject:{props:{classNames:void 0,validTypes:[
|
|
20
|
+
`,d=r.createPluginFactory({key:i.ELEMENT_BUTTON,type:i.ELEMENT_BUTTON,isElement:!0,component:l,then:()=>({inject:{props:{classNames:void 0,validTypes:[i.ELEMENT_PARAGRAPH]}}})});exports.Button=l,exports.createButtonsPlugin=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("@udecode/plate-common"),n=require("../../../atoms/typography/paragraph.js"),l=require("../../../atoms/typography/heading.js");function
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("@udecode/plate-common"),n=require("../../../atoms/typography/paragraph.js"),l=require("../../../atoms/typography/heading.js"),i=require("../../constants.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(t);const c=s.default.forwardRef(({children:t,...l},i)=>{const a=l?.style?.textAlign,s=l.element?.indent||0,c=s>0?`padding-left: ${40*s}px;`:"";return e.jsx(r.PlateElement,{asChild:!0,ref:i,...l,children:e.jsx(e.Fragment,{children:e.jsx(n.P,{as:"div",$textAlign:a,$sx:c,children:t})})})}),E=r.createPluginFactory({key:i.ELEMENT_PARAGRAPH,type:i.ELEMENT_PARAGRAPH,isElement:!0}),d=s.default.forwardRef(({children:t,...n},i)=>{const a=n?.style?.textAlign;return e.jsx(r.PlateElement,{asChild:!0,ref:i,...n,children:e.jsx(e.Fragment,{children:e.jsx(l.H.One,{$textAlign:a,children:t})})})}),x=r.createPluginFactory({key:i.ELEMENT_H1,type:i.ELEMENT_H1,isElement:!0}),o=s.default.forwardRef(({children:t,...n},i)=>{const a=n?.style?.textAlign;return e.jsx(r.PlateElement,{asChild:!0,ref:i,...n,children:e.jsx(e.Fragment,{children:e.jsx(l.H.Two,{$textAlign:a,children:t})})})}),h=r.createPluginFactory({key:i.ELEMENT_H2,type:i.ELEMENT_H2,isElement:!0}),u=s.default.forwardRef(({children:t,...n},i)=>{const a=n?.style?.textAlign;return e.jsx(r.PlateElement,{asChild:!0,ref:i,...n,children:e.jsx(e.Fragment,{children:e.jsx(l.H.Three,{$textAlign:a,children:t})})})}),g=r.createPluginFactory({key:i.ELEMENT_H3,type:i.ELEMENT_H3,isElement:!0}),m=s.default.forwardRef(({children:t,...n},i)=>{const a=n?.style?.textAlign;return e.jsx(r.PlateElement,{asChild:!0,ref:i,...n,children:e.jsx(e.Fragment,{children:e.jsx(l.H.Four,{$textAlign:a,children:t})})})}),f=r.createPluginFactory({key:i.ELEMENT_H4,type:i.ELEMENT_H4,isElement:!0}),p=s.default.forwardRef(({children:t,...n},i)=>{const a=n?.style?.textAlign;return e.jsx(r.PlateElement,{asChild:!0,ref:i,...n,children:e.jsx(e.Fragment,{children:e.jsx(l.H.Five,{$textAlign:a,children:t})})})}),y=r.createPluginFactory({key:i.ELEMENT_H5,type:i.ELEMENT_H5,isElement:!0}),H=s.default.forwardRef(({children:t,...n},i)=>{const a=n?.style?.textAlign;return e.jsx(r.PlateElement,{asChild:!0,ref:i,...n,children:e.jsx(e.Fragment,{children:e.jsx(l.H.Six,{$textAlign:a,children:t})})})}),P=r.createPluginFactory({key:i.ELEMENT_H6,type:i.ELEMENT_H6,isElement:!0});exports.HFiveElement=p,exports.HFourElement=m,exports.HOneElement=d,exports.HSixElement=H,exports.HThreeElement=u,exports.HTwoElement=o,exports.ParagraphElement=c,exports.createHFivePlugin=y,exports.createHFourPlugin=f,exports.createHOnePlugin=x,exports.createHSixPlugin=P,exports.createHThreePlugin=g,exports.createHTwoPlugin=h,exports.createParagraphPlugin=E;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),i=require("@udecode/plate-common"),r=require("../../constants.js"),n=require("../../context.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=o(t);const l=d.default.forwardRef(function({editor:t,element:r,...o},l){const s=!i.useEditorReadOnly(),{id:a}=r,{handleVideoClick:c,videoTitleLoader:u}=d.default.useContext(n.EditorContext);return e.jsx(i.PlateElement,{asChild:!0,editor:t,element:r,ref:l,...o,children:e.jsx("div",{contentEditable:!1,onClick:()=>{c&&!s&&c(a)},style:{cursor:s?"initial":"pointer"},children:e.jsx(u,{courseMediaId:a})})})}),s=i.createPluginFactory({key:r.ELEMENT_VIDEO,type:r.ELEMENT_VIDEO,isElement:!0,isVoid:!0,component:l,then:()=>({inject:{props:{classNames:void 0,validTypes:[
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),i=require("@udecode/plate-common"),r=require("../../constants.js"),n=require("../../context.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=o(t);const l=d.default.forwardRef(function({editor:t,element:r,...o},l){const s=!i.useEditorReadOnly(),{id:a}=r,{handleVideoClick:c,videoTitleLoader:u}=d.default.useContext(n.EditorContext);return e.jsx(i.PlateElement,{asChild:!0,editor:t,element:r,ref:l,...o,children:e.jsx("div",{contentEditable:!1,onClick:()=>{c&&!s&&c(a)},style:{cursor:s?"initial":"pointer"},children:e.jsx(u,{courseMediaId:a})})})}),s=i.createPluginFactory({key:r.ELEMENT_VIDEO,type:r.ELEMENT_VIDEO,isElement:!0,isVoid:!0,component:l,then:()=>({inject:{props:{classNames:void 0,validTypes:[r.ELEMENT_H2]}}})});exports.VideoTitleElement=l,exports.createVideoTitlePlugin=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@udecode/plate"),E=require("@udecode/plate-alignment"),i=require("@udecode/plate-indent"),
|
|
1
|
+
"use strict";var e=require("@udecode/plate"),E=require("@udecode/plate-alignment"),i=require("@udecode/plate-indent"),n=require("@udecode/plate-link"),r=require("../../constants.js"),t=require("./link.js");const l=[E.createAlignPlugin({inject:{props:{validTypes:[r.ELEMENT_PARAGRAPH,r.ELEMENT_H1,r.ELEMENT_H2,r.ELEMENT_H3,r.ELEMENT_H4,r.ELEMENT_H5,r.ELEMENT_H6]}}}),i.createIndentPlugin({inject:{props:{validTypes:[r.ELEMENT_PARAGRAPH,r.ELEMENT_H1]}}}),e.createLineHeightPlugin(),e.createCodePlugin(),n.createLinkPlugin({renderBeforeEditable:t.LinkFloatingMenu})];exports.leafs=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@udecode/cn"),E=require("@udecode/plate-common"),l=require("./leafs/link.js"),t=require("../constants.js"),r=require("./blocks/blockquote.js"),s=require("./blocks/buttons.js"),T=require("./blocks/image.js"),L=require("./blocks/list.js"),o=require("./blocks/table.js"),a=require("./blocks/table-cell.js"),n=require("./blocks/table-row.js"),i=require("./blocks/text.js");const u={[
|
|
1
|
+
"use strict";var e=require("@udecode/cn"),E=require("@udecode/plate-common"),l=require("./leafs/link.js"),t=require("../constants.js"),r=require("./blocks/blockquote.js"),s=require("./blocks/buttons.js"),T=require("./blocks/image.js"),L=require("./blocks/list.js"),o=require("./blocks/table.js"),a=require("./blocks/table-cell.js"),n=require("./blocks/table-row.js"),i=require("./blocks/text.js");const u={[t.ELEMENT_PARAGRAPH]:i.ParagraphElement,[t.ELEMENT_H1]:i.HOneElement,[t.ELEMENT_H2]:i.HTwoElement,[t.ELEMENT_H3]:i.HThreeElement,[t.ELEMENT_H4]:i.HFourElement,[t.ELEMENT_H5]:i.HFiveElement,[t.ELEMENT_H6]:i.HSixElement,[t.ELEMENT_BLOCKQUOTE]:r.BlockquoteElement,[t.ELEMENT_LINK]:l.LinkElement,[t.ELEMENT_OL]:e.withProps(L.ListElement,{variant:t.ELEMENT_OL}),[t.ELEMENT_UL]:e.withProps(L.ListElement,{variant:t.ELEMENT_UL}),[t.ELEMENT_IMAGE]:T.ImageElement,[t.ELEMENT_BUTTON]:s.Button,[t.ELEMENT_TABLE]:o.TableElement,[t.ELEMENT_TD]:a.TableCellElement,[t.ELEMENT_TH]:a.TableCellHeaderElement,[t.ELEMENT_TR]:n.TableRowElement,[t.MARK_SUBSCRIPT]:e.withProps(E.PlateLeaf,{as:"sub"}),[t.MARK_SUPERSCRIPT]:e.withProps(E.PlateLeaf,{as:"sup"})};exports.plateUI=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@udecode/plate"),E=require("../../constants.js")
|
|
1
|
+
"use strict";var e=require("@udecode/plate"),E=require("../../constants.js");const t={options:{rules:[{hotkey:"mod+enter"},{hotkey:"mod+shift+enter",before:!0},{hotkey:"enter",query:{start:!0,end:!0,allow:[E.ELEMENT_BLOCKQUOTE,E.ELEMENT_BUTTON,E.ELEMENT_MEDIA,E.ELEMENT_MEDIA_EMBED,E.ELEMENT_OL,E.ELEMENT_UL,...e.KEYS_HEADING]}}]}};exports.exitBreakPlugin=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@udecode/plate"),t=require("
|
|
1
|
+
"use strict";var e=require("@udecode/plate"),t=require("../../constants.js");const s={types:[t.ELEMENT_BLOCKQUOTE,t.ELEMENT_TODO_LI],defaultType:t.ELEMENT_PARAGRAPH},o={options:{rules:[{...s,hotkey:"Enter",predicate:e.isBlockAboveEmpty},{...s,hotkey:"Backspace",predicate:e.isSelectionAtBlockStart}]}};exports.resetBlockTypePlugin=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var E=require("
|
|
1
|
+
"use strict";var E=require("../../constants.js");const s={options:{query:{allow:[E.ELEMENT_HR,E.ELEMENT_IMAGE,E.ELEMENT_MEDIA_EMBED]}}};exports.selectOnBackspace=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@udecode/plate");const
|
|
1
|
+
"use strict";var e=require("@udecode/plate"),t=require("../../constants.js");const r={options:{rules:[{hotkey:"shift+enter"},{hotkey:"enter",query:{allow:[e.ELEMENT_CODE_BLOCK,t.ELEMENT_BLOCKQUOTE,t.ELEMENT_TD]}}]}};exports.softBreakPlugin=r;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),i=require("styled-components"),o=require("@udecode/plate-common"),r=require("@udecode/plate-media"),n=require("../../feedback/tooltip/tooltip.js"),s=require("../navbar/alignment_dropdown.js"),c=require("../navbar/style_dropdown.js"),l=require("../../../icons/basic/bold.js"),d=require("../../../icons/basic/image.js"),a=require("../../../icons/basic/italic.js"),u=require("../../../icons/basic/link.js"),p=require("../../../icons/text/list_ordered.js"),x=require("../../../icons/text/list_unordered.js"),j=require("../../../icons/arrow/redo.js"),g=require("../../../icons/basic/underline.js"),h=require("../../../icons/arrow/undo.js"),y=require("../constants.js"),v=require("../styles/menu_button.js");function M(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var E=M(t);const k=i.styled.nav`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: 12px;
|
|
4
4
|
justify-content: center;
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
border-radius: 8px 8px 0px 0px;
|
|
11
11
|
box-shadow: var(--elevation-1);
|
|
12
|
-
`,L=
|
|
12
|
+
`,L=i.styled.div`
|
|
13
13
|
display: flex;
|
|
14
14
|
gap: 16px;
|
|
15
15
|
align-items: center;
|
|
16
16
|
width: fit-content;
|
|
17
17
|
flex-shrink: 0;
|
|
18
|
-
`,T=
|
|
18
|
+
`,T=i.styled.div`
|
|
19
19
|
width: 1px;
|
|
20
20
|
height: 28px;
|
|
21
21
|
background-color: var(--color-grey-9);
|
|
22
|
-
`;exports.EditorBar=({handleUploadImage:
|
|
22
|
+
`;exports.EditorBar=({handleUploadImage:t})=>{const i=o.useEditorRef("main"),M=E.default.useRef(null),m=o.useEditorSelector(e=>o.isMarkActive(e,y.MARK_BOLD),[]),b=o.useEditorSelector(e=>o.isMarkActive(e,y.MARK_ITALIC),[]),f=o.useEditorSelector(e=>o.isMarkActive(e,y.MARK_UNDERLINE),[]),q=o.useEditorSelector(e=>o.isMarkActive(e,y.MARK_LINK),[]),R=o.useEditorSelector(e=>o.someNode(e,{match:{type:o.getPluginType(e,y.ELEMENT_OL)}}),[]),A=o.useEditorSelector(e=>o.someNode(e,{match:{type:o.getPluginType(e,y.ELEMENT_UL)}}),[]);return e.jsxs(k,{"aria-label":"editor-navigation",children:[e.jsxs(L,{children:[e.jsx(n.Tooltip,{content:"Undo",place:"top",children:e.jsx(v.MenuButton,{$active:!1,onClick:()=>i.undo(),children:e.jsx(h.Undo,{size:24,color:"grey-5"})})}),e.jsx(n.Tooltip,{content:"Redo",place:"top",children:e.jsx(v.MenuButton,{$active:!1,onClick:()=>i.redo(),children:e.jsx(j.Redo,{size:24,color:"grey-5"})})})]}),e.jsx(T,{}),e.jsx(L,{children:e.jsx(c.StyleDropdown,{editorRef:i})}),e.jsx(T,{}),e.jsx(L,{children:e.jsx(v.MenuButton,{$active:!1,as:"div",children:e.jsx(s.AlignmentDropdown,{editorRef:i})})}),e.jsx(T,{}),e.jsxs(L,{children:[e.jsx(n.Tooltip,{content:"Bold",place:"top",children:e.jsx(v.MenuButton,{$active:m,onClick:()=>{i&&o.toggleMark(i,{key:y.MARK_BOLD})},children:e.jsx(l.Bold,{size:24,color:"grey-5"})})}),e.jsx(n.Tooltip,{content:"Italic",place:"top",children:e.jsx(v.MenuButton,{$active:b,onClick:()=>{i&&o.toggleMark(i,{key:y.MARK_ITALIC})},children:e.jsx(a.Italic,{size:24,color:"grey-5"})})}),e.jsx(n.Tooltip,{content:"Underline",place:"top",children:e.jsx(v.MenuButton,{$active:f,onClick:()=>{i&&o.toggleMark(i,{key:y.MARK_UNDERLINE})},children:e.jsx(g.Underline,{size:24,color:"grey-5"})})})]}),e.jsx(T,{}),e.jsxs(L,{children:[e.jsx(n.Tooltip,{content:"Link",place:"top",children:e.jsx(v.MenuButton,{$active:q,onClick:()=>{const e=window.prompt("Enter URL:");e&&i&&o.toggleMark(i,{key:y.MARK_LINK,value:{url:e}})},children:e.jsx(u.Link,{size:24,color:"grey-5"})})}),e.jsx(n.Tooltip,{content:"Image",place:"top",children:e.jsx(v.MenuButton,{$active:!1,as:"label",onChange:async()=>{const e=M.current?.files;if(!e)return;const n=await t(e);n&&(r.insertImage(i,n),o.insertNode(i,{type:y.ELEMENT_PARAGRAPH,children:[{text:" "}]}))},children:e.jsxs("div",{children:[e.jsx("input",{accept:"image/*",ref:M,style:{display:"none"},type:"file"}),e.jsx(d.Image,{size:24,color:"grey-5"})]})})})]}),e.jsx(T,{}),e.jsxs(L,{children:[e.jsx(n.Tooltip,{content:"Unordered List",place:"top",children:e.jsx(v.MenuButton,{$active:A,onClick:()=>{i&&o.toggleNodeType(i,{activeType:o.getPluginType(i,y.ELEMENT_UL)})},children:e.jsx(x.ListUnordered,{size:24,color:"grey-5"})})}),e.jsx(n.Tooltip,{content:"Ordered List",place:"top",children:e.jsx(v.MenuButton,{$active:R,onClick:()=>{i&&o.toggleNodeType(i,{activeType:o.getPluginType(i,y.ELEMENT_OL)})},children:e.jsx(p.ListOrdered,{size:24,color:"grey-5"})})})]})]})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@udecode/plate-common"),i=require("@udecode/plate"),t=require("@udecode/plate-alignment"),r=require("@udecode/plate-indent"),n=require("@udecode/plate-link"),l=require("@udecode/plate-media"),u=require("../plugins/blocks/text.js"),
|
|
1
|
+
"use strict";var e=require("@udecode/plate-common"),i=require("@udecode/plate"),t=require("@udecode/plate-alignment"),r=require("@udecode/plate-indent"),n=require("@udecode/plate-link"),l=require("@udecode/plate-media"),u=require("../constants.js"),a=require("../plugins/blocks/text.js"),c=require("../plugins/leafs/link.js"),E=require("../plugins/plate.js"),s=require("../plugins/utils/exitBreak.js"),g=require("../plugins/utils/resetBlockType.js"),P=require("../plugins/utils/selectOnBackspace.js"),o=require("../plugins/utils/softBreak.js");const p=e.createPlugins([l.createImagePlugin({options:{disableUploadInsert:!0,disableEmbedInsert:!0}}),i.createTextIndentPlugin(),i.createIndentListPlugin({inject:{props:{validTypes:[u.ELEMENT_PARAGRAPH,u.ELEMENT_H1,u.ELEMENT_H2,u.ELEMENT_H3,u.ELEMENT_H4,u.ELEMENT_H5,u.ELEMENT_H6,u.ELEMENT_OL,u.ELEMENT_UL]}}}),i.createListPlugin(),l.createMediaEmbedPlugin(),i.createParagraphPlugin(),a.createHOnePlugin(),a.createHTwoPlugin(),a.createHThreePlugin(),a.createHFourPlugin(),a.createHFivePlugin(),a.createHSixPlugin(),i.createResetNodePlugin(),i.createBoldPlugin(),i.createCodePlugin(),i.createFontBackgroundColorPlugin(),i.createFontSizePlugin(),i.createFontFamilyPlugin(),i.createItalicPlugin(),i.createStrikethroughPlugin(),i.createSubscriptPlugin(),i.createSuperscriptPlugin(),i.createUnderlinePlugin(),t.createAlignPlugin({inject:{props:{validTypes:[u.ELEMENT_PARAGRAPH,u.ELEMENT_H1,u.ELEMENT_H2,u.ELEMENT_H3,u.ELEMENT_H4,u.ELEMENT_H5,u.ELEMENT_H6]}}}),r.createIndentPlugin({inject:{props:{validTypes:[u.ELEMENT_PARAGRAPH,u.ELEMENT_H1]}}}),i.createLineHeightPlugin(),n.createLinkPlugin({renderAfterEditable:c.LinkFloatingMenu}),i.createExitBreakPlugin(s.exitBreakPlugin),i.createHistoryPlugin(),i.createResetNodePlugin(g.resetBlockTypePlugin),i.createSelectOnBackspacePlugin(P.selectOnBackspace),i.createSoftBreakPlugin(o.softBreakPlugin)],{components:E.plateUI});exports.plugins=p;
|
|
@@ -1,4 +1,46 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const ELEMENT_BLOCKQUOTE = "blockquote";
|
|
2
|
+
export declare const ELEMENT_CODE_LINE = "code_line";
|
|
3
|
+
export declare const ELEMENT_CODE_SYNTAX = "code_syntax";
|
|
4
|
+
export declare const ELEMENT_DEFAULT = "p";
|
|
5
|
+
export declare const ELEMENT_H1 = "h1";
|
|
6
|
+
export declare const ELEMENT_H2 = "h2";
|
|
7
|
+
export declare const ELEMENT_H3 = "h3";
|
|
8
|
+
export declare const ELEMENT_H4 = "h4";
|
|
9
|
+
export declare const ELEMENT_H5 = "h5";
|
|
10
|
+
export declare const ELEMENT_H6 = "h6";
|
|
11
|
+
export declare const ELEMENT_HR = "hr";
|
|
12
|
+
export declare const ELEMENT_IMAGE = "img";
|
|
13
|
+
export declare const ELEMENT_LI = "li";
|
|
14
|
+
export declare const ELEMENT_LIC = "lic";
|
|
15
|
+
export declare const ELEMENT_LINK = "a";
|
|
16
|
+
export declare const ELEMENT_MEDIA = "media";
|
|
17
|
+
export declare const ELEMENT_MEDIA_EMBED = "media_embed";
|
|
18
|
+
export declare const ELEMENT_MENTION = "mention";
|
|
19
|
+
export declare const ELEMENT_MENTION_INPUT = "mention_input";
|
|
20
|
+
export declare const ELEMENT_OL = "ol";
|
|
21
|
+
export declare const ELEMENT_PARAGRAPH = "p";
|
|
22
|
+
export declare const ELEMENT_TABLE = "table";
|
|
23
|
+
export declare const ELEMENT_TD = "td";
|
|
24
|
+
export declare const ELEMENT_TH = "th";
|
|
25
|
+
export declare const ELEMENT_TODO_LI = "todo_li";
|
|
26
|
+
export declare const ELEMENT_TR = "tr";
|
|
27
|
+
export declare const ELEMENT_UL = "ul";
|
|
28
|
+
export declare const MARK_BG_COLOR = "bgColor";
|
|
29
|
+
export declare const MARK_BOLD = "bold";
|
|
30
|
+
export declare const MARK_CODE = "code";
|
|
31
|
+
export declare const MARK_COLOR = "color";
|
|
32
|
+
export declare const MARK_FONT_FAMILY = "fontFamily";
|
|
33
|
+
export declare const MARK_FONT_SIZE = "fontSize";
|
|
34
|
+
export declare const MARK_FONT_WEIGHT = "fontWeight";
|
|
35
|
+
export declare const MARK_HIGHLIGHT = "highlight";
|
|
36
|
+
export declare const MARK_ITALIC = "italic";
|
|
37
|
+
export declare const MARK_KBD = "kbd";
|
|
38
|
+
export declare const MARK_SEARCH_HIGHLIGHT = "search_highlight";
|
|
39
|
+
export declare const MARK_STRIKETHROUGH = "strikethrough";
|
|
40
|
+
export declare const MARK_SUBSCRIPT = "subscript";
|
|
41
|
+
export declare const MARK_SUPERSCRIPT = "superscript";
|
|
42
|
+
export declare const MARK_UNDERLINE = "underline";
|
|
43
|
+
export declare const MARK_LINK = "link";
|
|
2
44
|
export declare const ELEMENT_BUTTON = "button";
|
|
3
45
|
export declare const ELEMENT_PAYWALL = "paywall";
|
|
4
46
|
export declare const ELEMENT_QA = "q-n-a";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAC/C,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAC7C,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AACjD,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,aAAa,QAAQ,CAAC;AACnC,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,WAAW,QAAQ,CAAC;AACjC,eAAO,MAAM,YAAY,MAAM,CAAC;AAChC,eAAO,MAAM,aAAa,UAAU,CAAC;AACrC,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AACjD,eAAO,MAAM,eAAe,YAAY,CAAC;AACzC,eAAO,MAAM,qBAAqB,kBAAkB,CAAC;AACrD,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,iBAAiB,MAAM,CAAC;AACrC,eAAO,MAAM,aAAa,UAAU,CAAC;AACrC,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,eAAe,YAAY,CAAC;AACzC,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,SAAS,SAAS,CAAC;AAChC,eAAO,MAAM,SAAS,SAAS,CAAC;AAChC,eAAO,MAAM,UAAU,UAAU,CAAC;AAClC,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,cAAc,cAAc,CAAC;AAC1C,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,QAAQ,QAAQ,CAAC;AAC9B,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AACxD,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAClD,eAAO,MAAM,cAAc,cAAc,CAAC;AAC1C,eAAO,MAAM,gBAAgB,gBAAgB,CAAC;AAC9C,eAAO,MAAM,cAAc,cAAc,CAAC;AAC1C,eAAO,MAAM,SAAS,SAAS,CAAC;AAEhC,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,eAAO,MAAM,eAAe,YAAY,CAAC;AACzC,eAAO,MAAM,UAAU,UAAU,CAAC;AAClC,eAAO,MAAM,aAAa,UAAU,CAAC;AAErC,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD,eAAO,MAAM,MAAM,UAQlB,CAAC;AAEF,eAAO,MAAM,WAAW,0BAA0B,CAAC;AAEnD,eAAO,MAAM,eAAe;;;;;GAS3B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;GAUzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;GAUzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alignment_dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/minimal_editor/alignment_dropdown.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"alignment_dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/minimal_editor/alignment_dropdown.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAazD,MAAM,WAAW,6BAA6B;IAC5C,SAAS,EAAE,WAAW,CAAC;CACxB;AAiCD,eAAO,MAAM,wBAAwB,mBAElC,6BAA6B,4CA2C/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/minimal_editor/plugins.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/minimal_editor/plugins.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,OAAO,gMAyBnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alignment_dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/navbar/alignment_dropdown.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"alignment_dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/navbar/alignment_dropdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAczD,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,WAAW,CAAC;CACxB;AAqBD,eAAO,MAAM,iBAAiB,kBAAmB,sBAAsB,4CAuEtE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/navbar/navbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA4C1B,eAAO,MAAM,SAAS,+
|
|
1
|
+
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/navbar/navbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA4C1B,eAAO,MAAM,SAAS,+CAwRrB,CAAC;AA6BF,eAAO,MAAM,UAAU;cACX,OAAO;GA8BlB,CAAC"}
|
|
@@ -1,6 +1,109 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const plateUI: {
|
|
3
|
-
|
|
3
|
+
p: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate-common").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
4
|
+
h1: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate-common").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
5
|
+
h2: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate-common").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
6
|
+
h3: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate-common").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
7
|
+
h4: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate-common").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
8
|
+
h5: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate-common").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
9
|
+
h6: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate-common").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
10
|
+
blockquote: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate-common").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
11
|
+
a: import("react").ForwardRefExoticComponent<Omit<PlateElementProps<Value, import("@udecode/plate-link").TLinkElement>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
12
|
+
ol: import("react").ForwardRefExoticComponent<Omit<{
|
|
13
|
+
elementToAttributes?: (element: import("@udecode/slate").TElement) => any;
|
|
14
|
+
} & Omit<{
|
|
15
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
16
|
+
asChild?: boolean;
|
|
17
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
18
|
+
ref?: import("react").Ref<any>;
|
|
19
|
+
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/slate").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/slate").Value>> & {
|
|
20
|
+
element: import("@udecode/slate").TElement;
|
|
21
|
+
} & Omit<import("slate-react").RenderElementProps, "element"> & {
|
|
22
|
+
variant: "ol" | "ul";
|
|
23
|
+
}, "ref"> & import("react").RefAttributes<any>>;
|
|
24
|
+
ul: import("react").ForwardRefExoticComponent<Omit<{
|
|
25
|
+
elementToAttributes?: (element: import("@udecode/slate").TElement) => any;
|
|
26
|
+
} & Omit<{
|
|
27
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
28
|
+
asChild?: boolean;
|
|
29
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
30
|
+
ref?: import("react").Ref<any>;
|
|
31
|
+
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/slate").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/slate").Value>> & {
|
|
32
|
+
element: import("@udecode/slate").TElement;
|
|
33
|
+
} & Omit<import("slate-react").RenderElementProps, "element"> & {
|
|
34
|
+
variant: "ol" | "ul";
|
|
35
|
+
}, "ref"> & import("react").RefAttributes<any>>;
|
|
36
|
+
img: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
37
|
+
elementToAttributes?: (element: import("@udecode/slate").TElement) => any;
|
|
38
|
+
} & Omit<{
|
|
39
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
40
|
+
asChild?: boolean;
|
|
41
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
42
|
+
ref?: import("react").Ref<any>;
|
|
43
|
+
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/slate").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/slate").Value>> & {
|
|
44
|
+
element: import("@udecode/slate").TElement;
|
|
45
|
+
} & Omit<import("slate-react").RenderElementProps, "element"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
46
|
+
button: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate-common").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
47
|
+
table: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
48
|
+
elementToAttributes?: (element: import("@udecode/slate").TElement) => any;
|
|
49
|
+
} & Omit<{
|
|
50
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
51
|
+
asChild?: boolean;
|
|
52
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
53
|
+
ref?: import("react").Ref<any>;
|
|
54
|
+
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/slate").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/slate").Value>> & {
|
|
55
|
+
element: import("@udecode/slate").TElement;
|
|
56
|
+
} & Omit<import("slate-react").RenderElementProps, "element"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
57
|
+
td: import("react").ForwardRefExoticComponent<Omit<{
|
|
58
|
+
elementToAttributes?: (element: import("@udecode/slate").TElement) => any;
|
|
59
|
+
} & Omit<{
|
|
60
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
61
|
+
asChild?: boolean;
|
|
62
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
63
|
+
ref?: import("react").Ref<any>;
|
|
64
|
+
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/slate").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/slate").Value>> & {
|
|
65
|
+
element: import("@udecode/slate").TElement;
|
|
66
|
+
} & Omit<import("slate-react").RenderElementProps, "element"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
67
|
+
hideBorder?: boolean;
|
|
68
|
+
isHeader?: boolean;
|
|
69
|
+
} & import("react").RefAttributes<any>>;
|
|
70
|
+
th: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
71
|
+
elementToAttributes?: (element: import("@udecode/slate").TElement) => any;
|
|
72
|
+
} & Omit<{
|
|
73
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
74
|
+
asChild?: boolean;
|
|
75
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
76
|
+
ref?: import("react").Ref<any>;
|
|
77
|
+
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/slate").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/slate").Value>> & {
|
|
78
|
+
element: import("@udecode/slate").TElement;
|
|
79
|
+
} & Omit<import("slate-react").RenderElementProps, "element"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
80
|
+
hideBorder?: boolean;
|
|
81
|
+
isHeader?: boolean;
|
|
82
|
+
} & import("react").RefAttributes<any>, "ref"> & import("react").RefAttributes<any>>;
|
|
83
|
+
tr: import("react").ForwardRefExoticComponent<Omit<{
|
|
84
|
+
elementToAttributes?: (element: import("@udecode/slate").TElement) => any;
|
|
85
|
+
} & Omit<{
|
|
86
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
87
|
+
asChild?: boolean;
|
|
88
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
89
|
+
ref?: import("react").Ref<any>;
|
|
90
|
+
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/slate").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/slate").Value>> & {
|
|
91
|
+
element: import("@udecode/slate").TElement;
|
|
92
|
+
} & Omit<import("slate-react").RenderElementProps, "element"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
93
|
+
hideBorder?: boolean;
|
|
94
|
+
} & import("react").RefAttributes<any>>;
|
|
95
|
+
subscript: import("react").ForwardRefExoticComponent<Omit<{
|
|
96
|
+
leafToAttributes?: (leaf: import("@udecode/slate").TText) => any;
|
|
97
|
+
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/slate").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/slate").Value>> & Omit<import("slate-react").RenderLeafProps, "leaf" | "text"> & {
|
|
98
|
+
leaf: import("@udecode/slate").TText;
|
|
99
|
+
text: import("@udecode/slate").TText;
|
|
100
|
+
} & Omit<{
|
|
101
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
102
|
+
asChild?: boolean;
|
|
103
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
104
|
+
ref?: import("react").Ref<any>;
|
|
105
|
+
} & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<any>>;
|
|
106
|
+
superscript: import("react").ForwardRefExoticComponent<Omit<{
|
|
4
107
|
leafToAttributes?: (leaf: import("@udecode/slate").TText) => any;
|
|
5
108
|
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/slate").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/slate").Value>> & Omit<import("slate-react").RenderLeafProps, "leaf" | "text"> & {
|
|
6
109
|
leaf: import("@udecode/slate").TText;
|
|
@@ -11,6 +114,5 @@ export declare const plateUI: {
|
|
|
11
114
|
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
12
115
|
ref?: import("react").Ref<any>;
|
|
13
116
|
} & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<any>>;
|
|
14
|
-
button: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate-common").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
15
117
|
};
|
|
16
118
|
//# sourceMappingURL=plate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plate.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/plugins/plate.ts"],"names":[],"mappings":";AAoBA,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"plate.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/plugins/plate.ts"],"names":[],"mappings":";AAoBA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softBreak.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/utils/softBreak.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"softBreak.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/utils/softBreak.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe;;;;;;;;;;;;CAY3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/simple_editor/navbar.tsx"],"names":[],"mappings":"AAmCA,MAAM,WAAW,cAAc;IAC7B,iBAAiB,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CACzD;AAED,eAAO,MAAM,SAAS,0BAA2B,cAAc,
|
|
1
|
+
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/simple_editor/navbar.tsx"],"names":[],"mappings":"AAmCA,MAAM,WAAW,cAAc;IAC7B,iBAAiB,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CACzD;AAED,eAAO,MAAM,SAAS,0BAA2B,cAAc,4CA8K9D,CAAC"}
|