@soul-refiner/design-system 2.14.117 → 2.14.119
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/custom/courses_selection/courses_selection.js +7 -5
- package/dist/components/editor/constants.js +1 -1
- package/dist/components/editor/minimal_editor/alignment_dropdown.js +4 -4
- 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/alignment_dropdown.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/blockquote.js +1 -1
- package/dist/components/editor/plugins/blocks/blocks.js +1 -1
- package/dist/components/editor/plugins/blocks/buttons.js +3 -3
- package/dist/components/editor/plugins/blocks/list.js +1 -1
- package/dist/components/editor/plugins/blocks/qa.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/simple_editor/navbar.js +4 -4
- package/dist/components/editor/simple_editor/plugins.js +1 -1
- package/dist/src/components/custom/courses_selection/courses_selection.d.ts.map +1 -1
- package/dist/src/components/editor/constants.d.ts +1 -1
- package/dist/src/components/editor/constants.d.ts.map +1 -1
- package/dist/src/components/editor/editor.d.ts +1 -1
- package/dist/src/components/editor/editor.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/minimal_editor.d.ts +1 -1
- package/dist/src/components/editor/minimal_editor/minimal_editor.d.ts.map +1 -1
- package/dist/src/components/editor/minimal_editor/navbar.d.ts.map +1 -1
- package/dist/src/components/editor/minimal_editor/plugins.d.ts +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/navbar/style_dropdown.d.ts +1 -1
- package/dist/src/components/editor/navbar/style_dropdown.d.ts.map +1 -1
- package/dist/src/components/editor/plugins/blocks/blockquote.d.ts +2 -1
- package/dist/src/components/editor/plugins/blocks/blockquote.d.ts.map +1 -1
- package/dist/src/components/editor/plugins/blocks/blocks.d.ts.map +1 -1
- package/dist/src/components/editor/plugins/blocks/list.d.ts +1 -1
- package/dist/src/components/editor/plugins/blocks/list.d.ts.map +1 -1
- package/dist/src/components/editor/plugins/blocks/qa.d.ts +3 -2
- package/dist/src/components/editor/plugins/blocks/qa.d.ts.map +1 -1
- package/dist/src/components/editor/plugins/blocks/text.d.ts +15 -14
- package/dist/src/components/editor/plugins/blocks/text.d.ts.map +1 -1
- package/dist/src/components/editor/plugins/leafs/leafs.d.ts.map +1 -1
- package/dist/src/components/editor/plugins/plate.d.ts +3 -83
- 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/simple_editor/navbar.d.ts.map +1 -1
- package/dist/src/components/editor/simple_editor/plugins.d.ts +1 -1
- package/dist/src/components/editor/simple_editor/plugins.d.ts.map +1 -1
- package/dist/src/components/editor/simple_editor/simple_editor.d.ts +1 -1
- package/dist/src/components/editor/simple_editor/simple_editor.d.ts.map +1 -1
- package/package.json +12 -4
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("react"),o=require("next/image"),
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("react"),o=require("next/image"),n=require("styled-components"),i=require("../../actions/button/button.js"),s=require("../../atoms/typography/paragraph.js"),t=require("../../atoms/box/box.js"),l=require("../../atoms/typography/heading.js"),a=require("../../../icons/basic/graduation_cap.js"),c=require("../../../icons/basic/search.js"),d=require("../../../icons/basic/plus.js"),u=require("../../../icons/basic/close.js");require("../../iconography/icon/icon.js");var p=require("../../../icons/arrow/chevron_down.js");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../../icons/basic/subtask.js"),require("../../../common/colors.js");var g=x(r),h=x(o);const b=n.styled.div`
|
|
3
3
|
position: relative;
|
|
4
4
|
display: block;
|
|
5
5
|
outline: none;
|
|
6
6
|
${({$sx:e})=>e||""}
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
${({$disabled:e})=>e?"\n opacity: 0.6;\n filter: grayscale(0.4) blur(1px);\n pointer-events: none;\n user-select: none;\n cursor: not-allowed;\n ":""}
|
|
9
|
+
`,$=n.styled.div`
|
|
8
10
|
min-width: 280px;
|
|
9
11
|
max-height: 600px;
|
|
10
12
|
display: flex;
|
|
@@ -22,7 +24,7 @@
|
|
|
22
24
|
${({$sx:e})=>e||""}
|
|
23
25
|
|
|
24
26
|
${({$offset:e})=>e?`transform: translate(${e[0]}px, ${e[1]}px);`:""}
|
|
25
|
-
`,
|
|
27
|
+
`,f=n.styled.div`
|
|
26
28
|
position: relative;
|
|
27
29
|
padding: 12px 16px;
|
|
28
30
|
user-select: none;
|
|
@@ -33,9 +35,9 @@
|
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
${({$disabled:e})=>e?"cursor: initial;\n color: var(--color-grey-7);\n background-color: var(--color-grey-10);":"\n &:hover {\n background-color: var(--color-grey-10);\n }\n\n &:active {\n background-color: var(--color-grey-8);\n }\n "}
|
|
36
|
-
|
|
38
|
+
`,j=n.styled.div`
|
|
37
39
|
padding: 12px;
|
|
38
40
|
border-radius: 8px;
|
|
39
41
|
background-color: ${({$color:e})=>e};
|
|
40
42
|
width: fit-content;
|
|
41
|
-
`;exports.CoursesSelection=({closeOnChange:r=!0,closeOnBlur:o=!0,disabled:
|
|
43
|
+
`;exports.CoursesSelection=({closeOnChange:r=!0,closeOnBlur:o=!0,disabled:n=!1,offset:x=[0,0],sx:y,containerSx:m,courses:v,label:q,courseIsSelected:w,setCourseIsSelected:C,subtitle:S,onlyOneCanBeSelected:k=!1,searchable:B=!0,...I})=>{const z=g.default.useRef(null),[O,P]=g.default.useState(!1);g.default.useEffect(()=>{n&&P(!1)},[n]);const D=v.filter(e=>w[e.id]),R=B?c.Search:p.ChevronDown;return e.jsxs(b,{$sx:y,$disabled:n,tabIndex:0,ref:z,onBlurCapture:e=>{o&&z?.current&&!z?.current?.contains(e.relatedTarget)&&P(!1)},...I,children:[e.jsxs(t.Box,{$gap:16,$align:"center",children:[e.jsx(j,{$color:"var(--color-hue-purple-2)",children:e.jsx(a.GraduationCap,{color:"hue-purple-1",size:24})}),e.jsx(l.H.Six,{$bold:!0,$color:"hue-purple-1",children:"Course"})]}),e.jsx(s.P,{$color:"grey-4",$fontSize:14,sx:"margin-top: 32px;",children:S}),e.jsx(i.Button,{type:"dropdown",isDropdownOpen:O,onClick:()=>{n||P(e=>!e)},customDropdownIcon:R,disabled:n,sx:"margin-top: 32px;",children:q}),O&&e.jsx($,{$offset:x,$sx:m,children:v.map(o=>e.jsx(f,{$disabled:n,onClick:()=>{n||(C(k?{[o.id]:!0}:{...w,[o.id]:!0}),r&&P(!1))},children:e.jsxs(t.Box,{$display:"flex",$align:"center",children:[e.jsx(s.P,{$color:"grey-4",$fontSize:14,$lineHeight:20,$mediumBold:!0,$textClampLines:1,children:o.name}),e.jsx(d.Plus,{sx:"margin-left: auto;"})]})},o.id))}),!!D.length&&e.jsx("ul",{style:{padding:0},children:D.map(r=>e.jsxs("li",{style:{listStyleType:"none",display:"flex",alignItems:"center",marginTop:"16px"},children:[e.jsx(h.default,{alt:"",height:64,width:114,src:r.imageSrc,quality:100,style:{borderRadius:"8px",marginRight:"16px"}}),e.jsx(s.P,{sx:"margin-left: 16px;",children:r.name}),!n&&e.jsx(u.Close,{sx:"cursor: pointer; margin-left: auto;",onClick:()=>C({...w,[r.id]:!1})})]},r.id))})]})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@udecode/plate");Object.defineProperty(exports,"ELEMENT_BLOCKQUOTE",{enumerable:!0,get:function(){return e.ELEMENT_BLOCKQUOTE}}),Object.defineProperty(exports,"ELEMENT_CODE_LINE",{enumerable:!0,get:function(){return e.ELEMENT_CODE_LINE}}),Object.defineProperty(exports,"ELEMENT_CODE_SYNTAX",{enumerable:!0,get:function(){return e.ELEMENT_CODE_SYNTAX}}),Object.defineProperty(exports,"ELEMENT_DEFAULT",{enumerable:!0,get:function(){return e.ELEMENT_DEFAULT}}),Object.defineProperty(exports,"ELEMENT_H1",{enumerable:!0,get:function(){return e.ELEMENT_H1}}),Object.defineProperty(exports,"ELEMENT_H2",{enumerable:!0,get:function(){return e.ELEMENT_H2}}),Object.defineProperty(exports,"ELEMENT_H3",{enumerable:!0,get:function(){return e.ELEMENT_H3}}),Object.defineProperty(exports,"ELEMENT_H4",{enumerable:!0,get:function(){return e.ELEMENT_H4}}),Object.defineProperty(exports,"ELEMENT_H5",{enumerable:!0,get:function(){return e.ELEMENT_H5}}),Object.defineProperty(exports,"ELEMENT_H6",{enumerable:!0,get:function(){return e.ELEMENT_H6}}),Object.defineProperty(exports,"ELEMENT_HR",{enumerable:!0,get:function(){return e.ELEMENT_HR}}),Object.defineProperty(exports,"ELEMENT_IMAGE",{enumerable:!0,get:function(){return e.ELEMENT_IMAGE}}),Object.defineProperty(exports,"ELEMENT_LI",{enumerable:!0,get:function(){return e.ELEMENT_LI}}),Object.defineProperty(exports,"ELEMENT_LIC",{enumerable:!0,get:function(){return e.ELEMENT_LIC}}),Object.defineProperty(exports,"ELEMENT_LINK",{enumerable:!0,get:function(){return e.ELEMENT_LINK}}),Object.defineProperty(exports,"ELEMENT_MEDIA",{enumerable:!0,get:function(){return e.ELEMENT_MEDIA}}),Object.defineProperty(exports,"ELEMENT_MEDIA_EMBED",{enumerable:!0,get:function(){return e.ELEMENT_MEDIA_EMBED}}),Object.defineProperty(exports,"ELEMENT_MENTION",{enumerable:!0,get:function(){return e.ELEMENT_MENTION}}),Object.defineProperty(exports,"ELEMENT_MENTION_INPUT",{enumerable:!0,get:function(){return e.ELEMENT_MENTION_INPUT}}),Object.defineProperty(exports,"ELEMENT_OL",{enumerable:!0,get:function(){return e.ELEMENT_OL}}),Object.defineProperty(exports,"ELEMENT_PARAGRAPH",{enumerable:!0,get:function(){return e.ELEMENT_PARAGRAPH}}),Object.defineProperty(exports,"ELEMENT_TABLE",{enumerable:!0,get:function(){return e.ELEMENT_TABLE}}),Object.defineProperty(exports,"ELEMENT_TD",{enumerable:!0,get:function(){return e.ELEMENT_TD}}),Object.defineProperty(exports,"ELEMENT_TH",{enumerable:!0,get:function(){return e.ELEMENT_TH}}),Object.defineProperty(exports,"ELEMENT_TODO_LI",{enumerable:!0,get:function(){return e.ELEMENT_TODO_LI}}),Object.defineProperty(exports,"ELEMENT_TR",{enumerable:!0,get:function(){return e.ELEMENT_TR}}),Object.defineProperty(exports,"ELEMENT_UL",{enumerable:!0,get:function(){return e.ELEMENT_UL}}),Object.defineProperty(exports,"MARK_BG_COLOR",{enumerable:!0,get:function(){return e.MARK_BG_COLOR}}),Object.defineProperty(exports,"MARK_BOLD",{enumerable:!0,get:function(){return e.MARK_BOLD}}),Object.defineProperty(exports,"MARK_CODE",{enumerable:!0,get:function(){return e.MARK_CODE}}),Object.defineProperty(exports,"MARK_COLOR",{enumerable:!0,get:function(){return e.MARK_COLOR}}),Object.defineProperty(exports,"MARK_FONT_FAMILY",{enumerable:!0,get:function(){return e.MARK_FONT_FAMILY}}),Object.defineProperty(exports,"MARK_FONT_SIZE",{enumerable:!0,get:function(){return e.MARK_FONT_SIZE}}),Object.defineProperty(exports,"MARK_FONT_WEIGHT",{enumerable:!0,get:function(){return e.MARK_FONT_WEIGHT}}),Object.defineProperty(exports,"MARK_HIGHLIGHT",{enumerable:!0,get:function(){return e.MARK_HIGHLIGHT}}),Object.defineProperty(exports,"MARK_ITALIC",{enumerable:!0,get:function(){return e.MARK_ITALIC}}),Object.defineProperty(exports,"MARK_KBD",{enumerable:!0,get:function(){return e.MARK_KBD}}),Object.defineProperty(exports,"MARK_SEARCH_HIGHLIGHT",{enumerable:!0,get:function(){return e.MARK_SEARCH_HIGHLIGHT}}),Object.defineProperty(exports,"MARK_STRIKETHROUGH",{enumerable:!0,get:function(){return e.MARK_STRIKETHROUGH}}),Object.defineProperty(exports,"MARK_SUBSCRIPT",{enumerable:!0,get:function(){return e.MARK_SUBSCRIPT}}),Object.defineProperty(exports,"MARK_SUPERSCRIPT",{enumerable:!0,get:function(){return e.MARK_SUPERSCRIPT}}),Object.defineProperty(exports,"MARK_UNDERLINE",{enumerable:!0,get:function(){return e.MARK_UNDERLINE}}),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_BUTTON="button",exports.ELEMENT_QA="q-n-a",exports.ELEMENT_VIDEO="video",exports.PLACEHOLDER="This is a placeholder";
|
|
1
|
+
"use strict";var e=require("@udecode/plate-common");Object.defineProperty(exports,"ELEMENT_BLOCKQUOTE",{enumerable:!0,get:function(){return e.ELEMENT_BLOCKQUOTE}}),Object.defineProperty(exports,"ELEMENT_CODE_LINE",{enumerable:!0,get:function(){return e.ELEMENT_CODE_LINE}}),Object.defineProperty(exports,"ELEMENT_CODE_SYNTAX",{enumerable:!0,get:function(){return e.ELEMENT_CODE_SYNTAX}}),Object.defineProperty(exports,"ELEMENT_DEFAULT",{enumerable:!0,get:function(){return e.ELEMENT_DEFAULT}}),Object.defineProperty(exports,"ELEMENT_H1",{enumerable:!0,get:function(){return e.ELEMENT_H1}}),Object.defineProperty(exports,"ELEMENT_H2",{enumerable:!0,get:function(){return e.ELEMENT_H2}}),Object.defineProperty(exports,"ELEMENT_H3",{enumerable:!0,get:function(){return e.ELEMENT_H3}}),Object.defineProperty(exports,"ELEMENT_H4",{enumerable:!0,get:function(){return e.ELEMENT_H4}}),Object.defineProperty(exports,"ELEMENT_H5",{enumerable:!0,get:function(){return e.ELEMENT_H5}}),Object.defineProperty(exports,"ELEMENT_H6",{enumerable:!0,get:function(){return e.ELEMENT_H6}}),Object.defineProperty(exports,"ELEMENT_HR",{enumerable:!0,get:function(){return e.ELEMENT_HR}}),Object.defineProperty(exports,"ELEMENT_IMAGE",{enumerable:!0,get:function(){return e.ELEMENT_IMAGE}}),Object.defineProperty(exports,"ELEMENT_LI",{enumerable:!0,get:function(){return e.ELEMENT_LI}}),Object.defineProperty(exports,"ELEMENT_LIC",{enumerable:!0,get:function(){return e.ELEMENT_LIC}}),Object.defineProperty(exports,"ELEMENT_LINK",{enumerable:!0,get:function(){return e.ELEMENT_LINK}}),Object.defineProperty(exports,"ELEMENT_MEDIA",{enumerable:!0,get:function(){return e.ELEMENT_MEDIA}}),Object.defineProperty(exports,"ELEMENT_MEDIA_EMBED",{enumerable:!0,get:function(){return e.ELEMENT_MEDIA_EMBED}}),Object.defineProperty(exports,"ELEMENT_MENTION",{enumerable:!0,get:function(){return e.ELEMENT_MENTION}}),Object.defineProperty(exports,"ELEMENT_MENTION_INPUT",{enumerable:!0,get:function(){return e.ELEMENT_MENTION_INPUT}}),Object.defineProperty(exports,"ELEMENT_OL",{enumerable:!0,get:function(){return e.ELEMENT_OL}}),Object.defineProperty(exports,"ELEMENT_PARAGRAPH",{enumerable:!0,get:function(){return e.ELEMENT_PARAGRAPH}}),Object.defineProperty(exports,"ELEMENT_TABLE",{enumerable:!0,get:function(){return e.ELEMENT_TABLE}}),Object.defineProperty(exports,"ELEMENT_TD",{enumerable:!0,get:function(){return e.ELEMENT_TD}}),Object.defineProperty(exports,"ELEMENT_TH",{enumerable:!0,get:function(){return e.ELEMENT_TH}}),Object.defineProperty(exports,"ELEMENT_TODO_LI",{enumerable:!0,get:function(){return e.ELEMENT_TODO_LI}}),Object.defineProperty(exports,"ELEMENT_TR",{enumerable:!0,get:function(){return e.ELEMENT_TR}}),Object.defineProperty(exports,"ELEMENT_UL",{enumerable:!0,get:function(){return e.ELEMENT_UL}}),Object.defineProperty(exports,"MARK_BG_COLOR",{enumerable:!0,get:function(){return e.MARK_BG_COLOR}}),Object.defineProperty(exports,"MARK_BOLD",{enumerable:!0,get:function(){return e.MARK_BOLD}}),Object.defineProperty(exports,"MARK_CODE",{enumerable:!0,get:function(){return e.MARK_CODE}}),Object.defineProperty(exports,"MARK_COLOR",{enumerable:!0,get:function(){return e.MARK_COLOR}}),Object.defineProperty(exports,"MARK_FONT_FAMILY",{enumerable:!0,get:function(){return e.MARK_FONT_FAMILY}}),Object.defineProperty(exports,"MARK_FONT_SIZE",{enumerable:!0,get:function(){return e.MARK_FONT_SIZE}}),Object.defineProperty(exports,"MARK_FONT_WEIGHT",{enumerable:!0,get:function(){return e.MARK_FONT_WEIGHT}}),Object.defineProperty(exports,"MARK_HIGHLIGHT",{enumerable:!0,get:function(){return e.MARK_HIGHLIGHT}}),Object.defineProperty(exports,"MARK_ITALIC",{enumerable:!0,get:function(){return e.MARK_ITALIC}}),Object.defineProperty(exports,"MARK_KBD",{enumerable:!0,get:function(){return e.MARK_KBD}}),Object.defineProperty(exports,"MARK_SEARCH_HIGHLIGHT",{enumerable:!0,get:function(){return e.MARK_SEARCH_HIGHLIGHT}}),Object.defineProperty(exports,"MARK_STRIKETHROUGH",{enumerable:!0,get:function(){return e.MARK_STRIKETHROUGH}}),Object.defineProperty(exports,"MARK_SUBSCRIPT",{enumerable:!0,get:function(){return e.MARK_SUBSCRIPT}}),Object.defineProperty(exports,"MARK_SUPERSCRIPT",{enumerable:!0,get:function(){return e.MARK_SUPERSCRIPT}}),Object.defineProperty(exports,"MARK_UNDERLINE",{enumerable:!0,get:function(){return e.MARK_UNDERLINE}}),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_BUTTON="button",exports.ELEMENT_QA="q-n-a",exports.ELEMENT_VIDEO="video",exports.PLACEHOLDER="This is a placeholder";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("styled-components"),o=require("@udecode/plate
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("styled-components"),o=require("@udecode/plate-alignment"),i=require("../../actions/dropdown/dropdown.js"),n=require("../../../icons/text/align_center.js"),t=require("../../../icons/text/align_justified.js"),l=require("../../../icons/text/align_left.js"),a=require("../../../icons/text/align_right.js"),s=require("../../../icons/arrow/chevron_down.js");const c=[{value:"left",icon:l.AlignLeft,label:"Align Left"},{value:"center",icon:n.AlignCenter,label:"Align Center"},{value:"right",icon:a.AlignRight,label:"Align Right"},{value:"justify",icon:t.AlignJustified,label:"Align Justify"}],d=r.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
|
-
`,
|
|
4
|
+
`,g=r.styled.button`
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: center;
|
|
7
7
|
justify-content: center;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
fill: var(--color-grey-7);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`,
|
|
36
|
+
`,u=r.styled.button`
|
|
37
37
|
display: flex;
|
|
38
38
|
align-items: center;
|
|
39
39
|
justify-content: center;
|
|
@@ -64,4 +64,4 @@
|
|
|
64
64
|
fill: var(--color-grey-7);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
`;exports.MinimalAlignmentDropdown=({editorRef:r})=>{const
|
|
67
|
+
`;exports.MinimalAlignmentDropdown=({editorRef:r})=>{const n=o.useAlignDropdownMenuState(),{radioGroupProps:t}=o.useAlignDropdownMenu(n),a=t.value||"left",v=c.find(e=>e.value===a)?.icon||l.AlignLeft;return e.jsx(d,{children:e.jsx(i.Dropdown,{onChange:e=>{const i=e.target.getAttribute("data-value");i&&o.setAlign(r,{value:i})},offset:[0,4],options:c.map(r=>({icon:e.jsx(u,{$active:a===r.value,children:e.jsx(r.icon,{size:16})}),value:r.value,sx:"gap: 0px; padding: 4px;"})),maintainState:!1,trigger:e.jsxs(g,{$active:!1,title:"Text Alignment",children:[e.jsx(v,{size:16}),e.jsx(s.ChevronDown,{size:16})]})})})};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("styled-components"),
|
|
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 u=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
|
+
`,h=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
|
+
`,x=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:p="var(--color-grey-9)",buttonWidth:$=28,buttonHeight:j=28})=>{const b=i.useEditorRef(),v=i.useEditorSelector(e=>i.isMarkActive(e,i.MARK_BOLD),[]),y=i.useEditorSelector(e=>i.isMarkActive(e,i.MARK_ITALIC),[]),k=i.useEditorSelector(e=>i.isMarkActive(e,i.MARK_UNDERLINE),[]),E=i.useEditorSelector(e=>i.someNode(e,{match:{type:i.getPluginType(e,i.ELEMENT_OL)}}),[]),C=i.useEditorSelector(e=>i.someNode(e,{match:{type:i.getPluginType(e,i.ELEMENT_UL)}}),[]);return e.jsxs(u,{$navBackgroundColor:r,$borderColor:p,children:[e.jsx(h,{$active:v,onClick:()=>{b&&i.toggleMark(b,{key:i.MARK_BOLD})},title:"Bold",$width:$,$height:j,children:e.jsx(o.Bold,{size:16})}),e.jsx(h,{$active:y,onClick:()=>{b&&i.toggleMark(b,{key:i.MARK_ITALIC})},title:"Italic",$width:$,$height:j,children:e.jsx(n.Italic,{size:16})}),e.jsx(h,{$active:k,onClick:()=>{b&&i.toggleMark(b,{key:i.MARK_UNDERLINE})},title:"Underline",$width:$,$height:j,children:e.jsx(d.Underline,{size:16})}),e.jsx(x,{$borderColor:p}),e.jsx(g.MinimalAlignmentDropdown,{editorRef:b}),e.jsx(x,{$borderColor:p}),e.jsx(h,{$active:C,onClick:()=>{b&&i.toggleNodeType(b,{activeType:i.getPluginType(b,i.ELEMENT_UL)})},title:"Bullet List",$width:$,$height:j,children:e.jsx(l.ListUnordered,{size:16})}),e.jsx(h,{$active:E,onClick:()=>{b&&i.toggleNodeType(b,{activeType:i.getPluginType(b,i.ELEMENT_OL)})},title:"Numbered List",$width:$,$height:j,children:e.jsx(s.ListOrdered,{size:16})}),e.jsx(x,{$borderColor:p}),e.jsx(h,{onClick:()=>{b&&t.outdent(b)},title:"Decrease Indent",$width:$,$height:j,children:e.jsx(a.IndentDecrease,{size:16})}),e.jsx(h,{onClick:()=>{b&&t.indent(b)},title:"Increase Indent",$width:$,$height:j,children:e.jsx(c.IndentIncrease,{size:16})})]})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@udecode/plate"),t=require("@udecode/plate-indent"),
|
|
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("../plugins/plate.js");const l=e.createPlugins([t.createParagraphPlugin(),t.createListPlugin(),t.createBoldPlugin(),t.createItalicPlugin(),t.createUnderlinePlugin(),i.createAlignPlugin({inject:{props:{validTypes:[e.ELEMENT_PARAGRAPH]}}}),n.createIndentPlugin({options:{offset:40,unit:"px"}}),t.createHistoryPlugin()],{components:r.plateUI});exports.plugins=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),i=require("@udecode/plate
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),i=require("@udecode/plate-alignment"),t=require("../../actions/dropdown/dropdown.js"),n=require("../../../icons/text/align_center.js"),r=require("../../../icons/text/align_justified.js"),o=require("../../../icons/text/align_left.js"),s=require("../../../icons/text/align_right.js"),l=require("../../../icons/audio_video/player_list_play.js"),u=require("../styles/menu_button.js");const a=[{value:"left",icon:o.AlignLeft},{value:"center",icon:n.AlignCenter},{value:"right",icon:s.AlignRight},{value:"justify",icon:r.AlignJustified}];exports.AlignmentDropdown=({editorRef:g})=>{const c=i.useAlignDropdownMenuState(),{radioGroupProps:d}=i.useAlignDropdownMenu(c),p=d.value,x=a.find(e=>e.value===d.value)?.icon??l.PlayerListPlay;return e.jsx(t.Dropdown,{onChange:e=>{const t=e.target?.getAttribute("data-value");t&&i.setAlign(g,{value:t})},offset:[0,0],options:[{icon:e.jsx(u.MenuButton,{$active:"left"===p,children:e.jsx(o.AlignLeft,{size:24,color:"grey-5"})}),sx:"gap: 0px; padding: 4px;",value:"left"},{icon:e.jsx(u.MenuButton,{$active:"center"===p,children:e.jsx(n.AlignCenter,{size:24,color:"grey-5"})}),sx:"gap: 0px; padding: 4px;",value:"center"},{icon:e.jsx(u.MenuButton,{$active:"right"===p,children:e.jsx(s.AlignRight,{size:24,color:"grey-5"})}),sx:"gap: 0px; padding: 4px;",value:"right"},{icon:e.jsx(u.MenuButton,{$active:"justify"===p,children:e.jsx(r.AlignJustified,{size:24,color:"grey-5"})}),sx:"gap: 0px; padding: 4px;",value:"justify"}],maintainState:!1,trigger:e.jsx(x,{size:24,color:"grey-5"})})};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),o=require("react"),
|
|
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("@udecode/plate-link"),c=require("../../feedback/tooltip/tooltip.js"),l=require("../../../icons/basic/bold.js"),s=require("../../../icons/file/file_code.js"),d=require("../../../icons/layout/grid.js"),a=require("../../../icons/audio_video/headphones.js"),p=require("../../../icons/basic/image.js"),u=require("../../../icons/basic/italic.js"),x=require("../../../icons/basic/link.js"),j=require("../../../icons/text/list_ordered.js"),g=require("../../../icons/text/list_unordered.js"),h=require("../../../icons/text/quote.js"),y=require("../../../icons/arrow/redo.js"),v=require("../../../icons/basic/strikethrough.js"),k=require("../../../icons/basic/underline.js"),T=require("../../../icons/arrow/undo.js"),E=require("../../../icons/basic/video.js"),b=require("../constants.js"),M=require("./style_dropdown.js"),f=require("./alignment_dropdown.js"),q=require("./button_modal.js");function R(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var L=R(o);const _=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
|
+
`,A=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
|
+
`,m=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
|
+
`,C=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
|
+
`,N=i.styled.div`
|
|
51
51
|
width: 1px;
|
|
52
52
|
height: 28px;
|
|
53
53
|
background-color: var(--color-grey-9);
|
|
54
|
-
`;exports.EditorBar=()=>{const o=
|
|
54
|
+
`;exports.EditorBar=()=>{const o=r.useEditorRef("main"),i=r.useEditorState(),R=L.default.useRef(null),$=L.default.useRef(null),z=L.default.useRef(null),K=r.useEditorSelector(e=>r.isMarkActive(e,r.MARK_BOLD),[]),I=r.useEditorSelector(e=>r.isMarkActive(e,r.MARK_ITALIC),[]),w=r.useEditorSelector(e=>r.isMarkActive(e,r.MARK_STRIKETHROUGH),[]),S=r.useEditorSelector(e=>r.isMarkActive(e,r.MARK_UNDERLINE),[]),U=r.useEditorSelector(e=>r.isMarkActive(e,r.MARK_CODE),[]),O=r.useEditorSelector(e=>r.isMarkActive(e,n.MARK_LINK),[]),B=r.useEditorSelector(e=>r.someNode(e,{match:{type:r.getPluginType(e,r.ELEMENT_OL)}}),[]),D=r.useEditorSelector(e=>r.someNode(e,{match:{type:r.getPluginType(e,r.ELEMENT_UL)}}),[]);return e.jsx(_,{children:e.jsxs(A,{"aria-label":"editor-navigation",children:[e.jsxs(m,{children:[e.jsx(c.Tooltip,{content:"Undo",place:"top",children:e.jsx(C,{$active:!1,onClick:()=>o.undo(),children:e.jsx(T.Undo,{size:24,color:"grey-5"})})}),e.jsx(c.Tooltip,{content:"Redo",place:"top",children:e.jsx(C,{$active:!1,onClick:()=>o.redo(),children:e.jsx(y.Redo,{size:24,color:"grey-5"})})})]}),e.jsx(N,{}),e.jsx(m,{children:e.jsx(M.StyleDropdown,{editorRef:o})}),e.jsx(N,{}),e.jsxs(m,{children:[e.jsx(c.Tooltip,{content:"Bold",place:"top",children:e.jsx(C,{$active:K,onClick:()=>{o&&r.toggleMark(o,{key:r.MARK_BOLD})},children:e.jsx(l.Bold,{size:24,color:"grey-5"})})}),e.jsx(c.Tooltip,{content:"Italic",place:"top",children:e.jsx(C,{$active:I,onClick:()=>{o&&r.toggleMark(o,{key:r.MARK_ITALIC})},children:e.jsx(u.Italic,{size:24,color:"grey-5"})})}),e.jsx(c.Tooltip,{content:"Underline",place:"top",children:e.jsx(C,{$active:S,onClick:()=>{o&&r.toggleMark(o,{key:r.MARK_UNDERLINE})},children:e.jsx(k.Underline,{size:24,color:"grey-5"})})}),e.jsx(c.Tooltip,{content:"Strikethrough",place:"top",children:e.jsx(C,{$active:w,onClick:()=>{o&&r.toggleMark(o,{key:r.MARK_STRIKETHROUGH})},children:e.jsx(v.Strikethrough,{size:24,color:"grey-5"})})}),e.jsx(c.Tooltip,{content:"Inline code",place:"top",children:e.jsx(C,{$active:U,onClick:()=>{o&&r.toggleMark(o,{key:r.MARK_CODE})},children:e.jsx(s.FileCode,{size:24,color:"grey-5"})})})]}),e.jsx(N,{}),e.jsx(m,{children:e.jsx(C,{$active:!1,as:"div",children:e.jsx(f.AlignmentDropdown,{editorRef:o})})}),e.jsx(N,{}),e.jsxs(m,{children:[e.jsx(c.Tooltip,{content:"Link",place:"top",children:e.jsx(C,{$active:O,onClick:()=>{const e=window.prompt("Enter URL:");e&&o&&r.toggleMark(o,{key:n.MARK_LINK,value:{url:e}})},children:e.jsx(x.Link,{size:24,color:"grey-5"})})}),e.jsx(c.Tooltip,{content:"Image",place:"top",children:e.jsx(C,{$active:!1,as:"label",children:e.jsxs("div",{children:[e.jsx("input",{accept:"image/*",ref:$,style:{display:"none"},type:"file"}),e.jsx(p.Image,{size:24,color:"grey-5"})]})})}),e.jsx(c.Tooltip,{content:"Video",place:"top",children:e.jsx(C,{$active:!1,as:"label",onChange:async()=>{z.current},children:e.jsxs("div",{onClick:()=>z.current?.click(),children:[e.jsx("input",{accept:"video/*",ref:z,style:{display:"none"},type:"file"}),e.jsx(E.Video,{size:24,color:"grey-5"})]})})}),e.jsx(c.Tooltip,{content:"Audio",place:"top",children:e.jsx(C,{$active:!1,as:"label",onChange:async e=>{e.target},children:e.jsxs("div",{onClick:()=>R.current?.click(),children:[e.jsx("input",{accept:"audio/*",ref:R,style:{display:"none"},type:"file"}),e.jsx(a.Headphones,{size:24,color:"grey-5"})]})})}),e.jsx(c.Tooltip,{content:"Blockquote",place:"top",children:e.jsx(C,{$active:!1,onClick:()=>{r.toggleNodeType(i,{activeType:r.ELEMENT_BLOCKQUOTE})},children:e.jsx(h.Quote,{size:24,color:"grey-5"})})}),e.jsx(c.Tooltip,{content:"Add a button",place:"top",children:e.jsx(q.ButtonModal,{onButtonInsert:e=>{r.insertNodes(o,[{type:r.getPluginType(o,b.ELEMENT_BUTTON),buttonType:e,children:[{text:"Subscribe"}]}])}})})]}),e.jsx(N,{}),e.jsxs(m,{children:[e.jsx(c.Tooltip,{content:"Unordered List",place:"top",children:e.jsx(C,{$active:D,onClick:()=>{o&&r.toggleNodeType(o,{activeType:r.getPluginType(o,r.ELEMENT_UL)})},children:e.jsx(g.ListUnordered,{size:24,color:"grey-5"})})}),e.jsx(c.Tooltip,{content:"Ordered List",place:"top",children:e.jsx(C,{$active:B,onClick:()=>{o&&r.toggleNodeType(o,{activeType:r.getPluginType(o,r.ELEMENT_OL)})},children:e.jsx(j.ListOrdered,{size:24,color:"grey-5"})})}),e.jsx(c.Tooltip,{content:"Add a button",place:"top",children:e.jsx(C,{$active:B,onClick:()=>{t.insertTable(o)},children:e.jsx(d.Grid,{size:24,color:"grey-5"})})})]})]})})},exports.MenuButton=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),a=require("@udecode/plate"),i=require("../../actions/button/button.js"),
|
|
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 t=[{value:a.ELEMENT_PARAGRAPH,label:"Paragraph",description:"Paragraph"},{value:a.ELEMENT_H1,label:"Heading 1",description:"Heading 1"},{value:a.ELEMENT_H2,label:"Heading 2",description:"Heading 2"},{value:a.ELEMENT_H3,label:"Heading 3",description:"Heading 3"},{value:a.ELEMENT_H4,label:"Heading 4",description:"Heading 4"},{value:a.ELEMENT_H5,label:"Heading 5",description:"Heading 5"},{value:a.ELEMENT_H6,label:"Heading 6",description:"Heading 6"}],l=t.find(e=>e.value===a.ELEMENT_PARAGRAPH);exports.StyleDropdown=({editorRef:o})=>{let r=a.ELEMENT_PARAGRAPH;if(a.isCollapsed(o?.selection)){const e=a.findNode(o,{match:e=>a.isBlock(o,e)});e&&(r=t.find(a=>a.value===e[0].type)?.value??a.ELEMENT_PARAGRAPH)}const d=t.find(e=>e.value===r)??l,{label:s}=d;return e.jsx(n.Dropdown,{maintainState:!1,onChange:e=>{const i=e.target.getAttribute("data-value");i&&a.toggleNodeType(o,{activeType:i})},options:t,trigger:e.jsx(i.Button,{type:"special",size:"small",sx:"padding: 1px 4px; & > * { color: var(--color-grey-5); }",children:s})})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("react"),t=require("@udecode/plate"),a=require("../../../atoms/typography/paragraph.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const u=o(r).default.forwardRef(({children:r,...o},u)=>e.jsx(t.PlateElement,{asChild:!0,ref:u,...o,children:e.jsx(a.P,{as:"blockquote",sx:"padding: 16px;border-radius: 8px; background: var(--color-grey-10);",children:r})}));exports.BlockquoteElement=u;
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("react"),t=require("@udecode/plate-common"),a=require("../../../atoms/typography/paragraph.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const u=o(r).default.forwardRef(({children:r,...o},u)=>e.jsx(t.PlateElement,{asChild:!0,ref:u,...o,children:e.jsx(a.P,{as:"blockquote",sx:"padding: 16px;border-radius: 8px; background: var(--color-grey-10);",children:r})}));exports.BlockquoteElement=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@udecode/plate"),t=require("./text.js"),
|
|
1
|
+
"use strict";var e=require("@udecode/plate-common"),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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),o=require("styled-components"),r=require("@udecode/plate-common"),n=require("../../../actions/button/button.js"),i=require("../../constants.js")
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),o=require("styled-components"),r=require("@udecode/plate-common"),n=require("../../../actions/button/button.js"),i=require("../../constants.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const l=a(t).default.forwardRef(({children:t,editor:o,element:a,...l},d)=>{const{buttonType:u,color:p}=a,m=!!o?.selection&&r.someNode(o,{match:{type:r.getPluginType(o,i.ELEMENT_BUTTON)}}),b=r.getBlockAbove(o,{at:o.selection?.focus,match:{type:r.getPluginType(o,i.ELEMENT_BUTTON),buttonType:u}}),g=!r.useEditorReadOnly();return e.jsx(r.PlateElement,{asChild:!0,editor:o,element:a,ref:d,...l,children:e.jsxs(e.Fragment,{children:[e.jsx(()=>m&&g?e.jsx(c,{contentEditable:!1,children:i.COLORS.map(t=>e.jsx(s,{$color:t,contentEditable:!1,onClick:e=>{e.stopPropagation(),(e=>{b&&r.setNodes(o,{color:e},{at:b?b[1]:void 0})})(t)}},t))}):null,{}),e.jsx(n.Button,{size:"small",sx:`\n margin-left: auto !important; \n margin-right: auto !important;\n background-color: ${p||"var(--color-blue-5)"} !important;\n border-color: ${p||"var(--color-blue-5)"} !important;\n &:hover {\n background-color: ${p||"var(--color-blue-5)"} !important;\n filter: brightness(85%);\n }\n `,children:t})]})})}),c=o.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
padding: 8px 16px;
|
|
12
12
|
box-shadow: var(--elevation-1);
|
|
13
13
|
background-color: var(--color-white);
|
|
14
|
-
`,
|
|
14
|
+
`,s=o.styled.div`
|
|
15
15
|
width: 24px;
|
|
16
16
|
height: 24px;
|
|
17
17
|
border-radius: 50%;
|
|
18
18
|
background-color: ${({$color:e})=>e};
|
|
19
19
|
cursor: pointer;
|
|
20
|
-
`,
|
|
20
|
+
`,d=r.createPluginFactory({key:i.ELEMENT_BUTTON,type:i.ELEMENT_BUTTON,isElement:!0,component:l,then:()=>({inject:{props:{classNames:void 0,validTypes:[r.ELEMENT_PARAGRAPH]}}})});exports.Button=l,exports.createButtonsPlugin=d;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("react"),t=require("@udecode/plate"),n=require("styled-components");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=l(r);const a=n.styled.li`
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("react"),t=require("@udecode/plate-common"),n=require("styled-components");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=l(r);const a=n.styled.li`
|
|
2
2
|
margin: 16px 0px;
|
|
3
3
|
padding-left: 8px;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("react"),t=require("@udecode/plate"),n=require("styled-components"),o=require("../../constants.js"),s=require("../../context.js"),i=require("../../../actions/button/button.js"),u=require("../../../atoms/box/box.js"),d=require("../../../atoms/hide/hide.js"),c=require("../../../atoms/typography/heading.js"),l=require("../../../../icons/arrow/chevron_down.js"),a=require("../../../../icons/arrow/chevron_up.js");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=x(r);const h=f.default.forwardRef(({children:n,element:o,...x},h)=>{const{questionAnswerId:m}=o,{defaultFilter:w="",commentInputLoader:j,commentLoader:g,filterComponent:v,hideShowAnswersButton:b,showAnswersBelowInput:q}=f.default.useContext(s.EditorContext),[y,E]=f.default.useState(!1),[A,C]=f.default.useState(w),[I,B]=f.default.useState(!1),T=f.default.useRef(null),$=f.default.useRef(null),F=f.default.useRef(!1);f.default.useEffect(()=>{if(!q)return void(F.current||(B(!0),F.current=!0));if("undefined"==typeof IntersectionObserver)return void(F.current||(B(!0),F.current=!0));if(!T.current||F.current)return;$.current&&$.current.disconnect();const e=new IntersectionObserver(r=>{r.forEach(r=>{r.isIntersecting&&!F.current&&(F.current=!0,B(!0),e.disconnect(),$.current=null)})},{rootMargin:"200px",threshold:.01});return $.current=e,e.observe(T.current),()=>{$.current&&($.current.disconnect(),$.current=null)}},[q]);const L=f.default.useCallback(e=>{const r=e.currentTarget.getAttribute("data-value");C(e=>e===r?w:r)},[]),R=f.default.useCallback(()=>C(w),[]);return e.jsx(t.PlateElement,{asChild:!0,element:o,ref:h,...x,children:e.jsxs(r.Fragment,{children:[e.jsx(p,{children:e.jsx(c.H,{as:"p",$fontSize:18,$lineHeight:26,$mediumBold:!0,children:n})}),e.jsx("div",{ref:T,children:e.jsxs(u.Box,{$dir:"column",$gap:"medium",sx:"padding: 8px 24px; @media (max-width: 500px) { padding: 8px 0; }",contentEditable:!1,children:[(!b||v)&&e.jsxs(u.Box,{sx:"width: 100%",$justify:"space-between",children:[!b&&e.jsx(i.Button,{as:"div",icon:y?e.jsx(a.ChevronUp,{color:"grey-3"}):e.jsx(l.ChevronDown,{color:"grey-3"}),onClick:()=>E(e=>!e),size:"small",sx:"\n width: fit-content;\n flex-direction: row-reverse;\n color: var(--color-grey-5);\n padding 7px 15px;\n &:not(:hover) svg {\n fill: var(--color-grey-3);\n }\n ",type:"text",contentEditable:!1,children:y?"Hide answers":"Show answers"}),v&&e.jsx(d.HideButRender,{show:y,children:e.jsx(v,{filter:A,onFilterChange:L,questionAnswerId:m})})]}),!q&&I&&e.jsx(d.HideButRender,{show:y,children:e.jsx(g,{questionAnswerId:m,filterType:A,resetFilter:R,waitToLoad:!y})}),I&&e.jsx(j,{questionAnswerId:m,onComment:()=>E(!0)}),q&&I&&e.jsx(g,{questionAnswerId:m,filterType:A,resetFilter:R,waitToLoad:!1},`comments-${m}`)]})})]})})}),p=n.styled.div`
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("react"),t=require("@udecode/plate-common"),n=require("styled-components"),o=require("../../constants.js"),s=require("../../context.js"),i=require("../../../actions/button/button.js"),u=require("../../../atoms/box/box.js"),d=require("../../../atoms/hide/hide.js"),c=require("../../../atoms/typography/heading.js"),l=require("../../../../icons/arrow/chevron_down.js"),a=require("../../../../icons/arrow/chevron_up.js");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=x(r);const h=f.default.forwardRef(({children:n,element:o,...x},h)=>{const{questionAnswerId:m}=o,{defaultFilter:w="",commentInputLoader:j,commentLoader:g,filterComponent:v,hideShowAnswersButton:b,showAnswersBelowInput:q}=f.default.useContext(s.EditorContext),[y,E]=f.default.useState(!1),[A,C]=f.default.useState(w),[I,B]=f.default.useState(!1),T=f.default.useRef(null),$=f.default.useRef(null),F=f.default.useRef(!1);f.default.useEffect(()=>{if(!q)return void(F.current||(B(!0),F.current=!0));if("undefined"==typeof IntersectionObserver)return void(F.current||(B(!0),F.current=!0));if(!T.current||F.current)return;$.current&&$.current.disconnect();const e=new IntersectionObserver(r=>{r.forEach(r=>{r.isIntersecting&&!F.current&&(F.current=!0,B(!0),e.disconnect(),$.current=null)})},{rootMargin:"200px",threshold:.01});return $.current=e,e.observe(T.current),()=>{$.current&&($.current.disconnect(),$.current=null)}},[q]);const L=f.default.useCallback(e=>{const r=e.currentTarget.getAttribute("data-value");C(e=>e===r?w:r)},[]),R=f.default.useCallback(()=>C(w),[]);return e.jsx(t.PlateElement,{asChild:!0,element:o,ref:h,...x,children:e.jsxs(r.Fragment,{children:[e.jsx(p,{children:e.jsx(c.H,{as:"p",$fontSize:18,$lineHeight:26,$mediumBold:!0,children:n})}),e.jsx("div",{ref:T,children:e.jsxs(u.Box,{$dir:"column",$gap:"medium",sx:"padding: 8px 24px; @media (max-width: 500px) { padding: 8px 0; }",contentEditable:!1,children:[(!b||v)&&e.jsxs(u.Box,{sx:"width: 100%",$justify:"space-between",children:[!b&&e.jsx(i.Button,{as:"div",icon:y?e.jsx(a.ChevronUp,{color:"grey-3"}):e.jsx(l.ChevronDown,{color:"grey-3"}),onClick:()=>E(e=>!e),size:"small",sx:"\n width: fit-content;\n flex-direction: row-reverse;\n color: var(--color-grey-5);\n padding 7px 15px;\n &:not(:hover) svg {\n fill: var(--color-grey-3);\n }\n ",type:"text",contentEditable:!1,children:y?"Hide answers":"Show answers"}),v&&e.jsx(d.HideButRender,{show:y,children:e.jsx(v,{filter:A,onFilterChange:L,questionAnswerId:m})})]}),!q&&I&&e.jsx(d.HideButRender,{show:y,children:e.jsx(g,{questionAnswerId:m,filterType:A,resetFilter:R,waitToLoad:!y})}),I&&e.jsx(j,{questionAnswerId:m,onComment:()=>E(!0)}),q&&I&&e.jsx(g,{questionAnswerId:m,filterType:A,resetFilter:R,waitToLoad:!1},`comments-${m}`)]})})]})})}),p=n.styled.div`
|
|
2
2
|
margin-bottom: 8px;
|
|
3
3
|
padding: 16px;
|
|
4
4
|
border-left: 8px solid var(--color-hue-blue-1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("@udecode/plate"),n=require("../../../atoms/typography/paragraph.js"),l=require("../../../atoms/typography/heading.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(t);const s=a.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})})})}),c=r.createPluginFactory({key:r.ELEMENT_PARAGRAPH,type:r.ELEMENT_PARAGRAPH,isElement:!0}),E=a.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})})})}),d=r.createPluginFactory({key:r.ELEMENT_H1,type:r.ELEMENT_H1,isElement:!0}),x=a.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})})})}),o=r.createPluginFactory({key:r.ELEMENT_H2,type:r.ELEMENT_H2,isElement:!0}),h=a.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})})})}),u=r.createPluginFactory({key:r.ELEMENT_H3,type:r.ELEMENT_H3,isElement:!0}),g=a.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})})})}),
|
|
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 i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(t);const s=a.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})})})}),c=r.createPluginFactory({key:r.ELEMENT_PARAGRAPH,type:r.ELEMENT_PARAGRAPH,isElement:!0}),E=a.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})})})}),d=r.createPluginFactory({key:r.ELEMENT_H1,type:r.ELEMENT_H1,isElement:!0}),x=a.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})})})}),o=r.createPluginFactory({key:r.ELEMENT_H2,type:r.ELEMENT_H2,isElement:!0}),h=a.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})})})}),u=r.createPluginFactory({key:r.ELEMENT_H3,type:r.ELEMENT_H3,isElement:!0}),g=a.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})})})}),m=r.createPluginFactory({key:r.ELEMENT_H4,type:r.ELEMENT_H4,isElement:!0}),f=a.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})})})}),p=r.createPluginFactory({key:r.ELEMENT_H5,type:r.ELEMENT_H5,isElement:!0}),y=a.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})})})}),H=r.createPluginFactory({key:r.ELEMENT_H6,type:r.ELEMENT_H6,isElement:!0});exports.HFiveElement=f,exports.HFourElement=g,exports.HOneElement=E,exports.HSixElement=y,exports.HThreeElement=h,exports.HTwoElement=x,exports.ParagraphElement=s,exports.createHFivePlugin=p,exports.createHFourPlugin=m,exports.createHOnePlugin=d,exports.createHSixPlugin=H,exports.createHThreePlugin=u,exports.createHTwoPlugin=o,exports.createParagraphPlugin=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),i=require("@udecode/plate-common"),r=require("../../constants.js"),
|
|
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:[i.ELEMENT_H2]}}})});exports.VideoTitleElement=l,exports.createVideoTitlePlugin=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@udecode/plate"),E=require("@udecode/plate-
|
|
1
|
+
"use strict";var e=require("@udecode/plate"),E=require("@udecode/plate-alignment"),i=require("@udecode/plate-indent"),r=require("@udecode/plate-link"),n=require("@udecode/plate-common"),t=require("./link.js");const l=[E.createAlignPlugin({inject:{props:{validTypes:[n.ELEMENT_PARAGRAPH,n.ELEMENT_H1,n.ELEMENT_H2,n.ELEMENT_H3,n.ELEMENT_H4,n.ELEMENT_H5,n.ELEMENT_H6]}}}),i.createIndentPlugin({inject:{props:{validTypes:[n.ELEMENT_PARAGRAPH,n.ELEMENT_H1]}}}),e.createLineHeightPlugin(),e.createCodePlugin(),r.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"),
|
|
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={[E.ELEMENT_PARAGRAPH]:i.ParagraphElement,[E.ELEMENT_H1]:i.HOneElement,[E.ELEMENT_H2]:i.HTwoElement,[E.ELEMENT_H3]:i.HThreeElement,[E.ELEMENT_H4]:i.HFourElement,[E.ELEMENT_H5]:i.HFiveElement,[E.ELEMENT_H6]:i.HSixElement,[E.ELEMENT_BLOCKQUOTE]:r.BlockquoteElement,[E.ELEMENT_LINK]:l.LinkElement,[E.ELEMENT_OL]:e.withProps(L.ListElement,{variant:E.ELEMENT_OL}),[E.ELEMENT_UL]:e.withProps(L.ListElement,{variant:E.ELEMENT_UL}),[E.ELEMENT_IMAGE]:T.ImageElement,[t.ELEMENT_BUTTON]:s.Button,[E.ELEMENT_TABLE]:o.TableElement,[E.ELEMENT_TD]:a.TableCellElement,[E.ELEMENT_TH]:a.TableCellHeaderElement,[E.ELEMENT_TR]:n.TableRowElement,[E.MARK_SUBSCRIPT]:e.withProps(E.PlateLeaf,{as:"sub"}),[E.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");const
|
|
1
|
+
"use strict";var e=require("@udecode/plate"),E=require("../../constants.js"),t=require("@udecode/plate-common");const r={options:{rules:[{hotkey:"mod+enter"},{hotkey:"mod+shift+enter",before:!0},{hotkey:"enter",query:{start:!0,end:!0,allow:[t.ELEMENT_BLOCKQUOTE,E.ELEMENT_BUTTON,t.ELEMENT_MEDIA,t.ELEMENT_MEDIA_EMBED,t.ELEMENT_OL,t.ELEMENT_UL,...e.KEYS_HEADING]}}]}};exports.exitBreakPlugin=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@udecode/plate");const
|
|
1
|
+
"use strict";var e=require("@udecode/plate"),t=require("@udecode/plate-common");const o={types:[t.ELEMENT_BLOCKQUOTE,t.ELEMENT_TODO_LI],defaultType:t.ELEMENT_PARAGRAPH},c={options:{rules:[{...o,hotkey:"Enter",predicate:e.isBlockAboveEmpty},{...o,hotkey:"Backspace",predicate:e.isSelectionAtBlockStart}]}};exports.resetBlockTypePlugin=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var E=require("@udecode/plate");const e={options:{query:{allow:[E.ELEMENT_HR,E.ELEMENT_IMAGE,E.ELEMENT_MEDIA_EMBED]}}};exports.selectOnBackspace=e;
|
|
1
|
+
"use strict";var E=require("@udecode/plate-common");const e={options:{query:{allow:[E.ELEMENT_HR,E.ELEMENT_IMAGE,E.ELEMENT_MEDIA_EMBED]}}};exports.selectOnBackspace=e;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),i=require("react"),t=require("styled-components"),o=require("@udecode/plate-common"),r=require("@udecode/plate-media"),n=require("@udecode/plate-link"),s=require("../../feedback/tooltip/tooltip.js"),c=require("../navbar/alignment_dropdown.js"),l=require("../navbar/style_dropdown.js"),d=require("../../../icons/basic/bold.js"),a=require("../../../icons/basic/image.js"),u=require("../../../icons/basic/italic.js"),p=require("../../../icons/basic/link.js"),x=require("../../../icons/text/list_ordered.js"),j=require("../../../icons/text/list_unordered.js"),g=require("../../../icons/arrow/redo.js"),h=require("../../../icons/basic/underline.js"),y=require("../../../icons/arrow/undo.js"),v=require("../styles/menu_button.js");function M(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var k=M(i);const E=t.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
|
-
`,
|
|
12
|
+
`,L=t.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
|
-
`,
|
|
18
|
+
`,T=t.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:i})=>{const t=o.useEditorRef("main"),M=k.default.useRef(null),m=o.useEditorSelector(e=>o.isMarkActive(e,o.MARK_BOLD),[]),b=o.useEditorSelector(e=>o.isMarkActive(e,o.MARK_ITALIC),[]),f=o.useEditorSelector(e=>o.isMarkActive(e,o.MARK_UNDERLINE),[]),q=o.useEditorSelector(e=>o.isMarkActive(e,n.MARK_LINK),[]),R=o.useEditorSelector(e=>o.someNode(e,{match:{type:o.getPluginType(e,o.ELEMENT_OL)}}),[]),A=o.useEditorSelector(e=>o.someNode(e,{match:{type:o.getPluginType(e,o.ELEMENT_UL)}}),[]);return e.jsxs(E,{"aria-label":"editor-navigation",children:[e.jsxs(L,{children:[e.jsx(s.Tooltip,{content:"Undo",place:"top",children:e.jsx(v.MenuButton,{$active:!1,onClick:()=>t.undo(),children:e.jsx(y.Undo,{size:24,color:"grey-5"})})}),e.jsx(s.Tooltip,{content:"Redo",place:"top",children:e.jsx(v.MenuButton,{$active:!1,onClick:()=>t.redo(),children:e.jsx(g.Redo,{size:24,color:"grey-5"})})})]}),e.jsx(T,{}),e.jsx(L,{children:e.jsx(l.StyleDropdown,{editorRef:t})}),e.jsx(T,{}),e.jsx(L,{children:e.jsx(v.MenuButton,{$active:!1,as:"div",children:e.jsx(c.AlignmentDropdown,{editorRef:t})})}),e.jsx(T,{}),e.jsxs(L,{children:[e.jsx(s.Tooltip,{content:"Bold",place:"top",children:e.jsx(v.MenuButton,{$active:m,onClick:()=>{t&&o.toggleMark(t,{key:o.MARK_BOLD})},children:e.jsx(d.Bold,{size:24,color:"grey-5"})})}),e.jsx(s.Tooltip,{content:"Italic",place:"top",children:e.jsx(v.MenuButton,{$active:b,onClick:()=>{t&&o.toggleMark(t,{key:o.MARK_ITALIC})},children:e.jsx(u.Italic,{size:24,color:"grey-5"})})}),e.jsx(s.Tooltip,{content:"Underline",place:"top",children:e.jsx(v.MenuButton,{$active:f,onClick:()=>{t&&o.toggleMark(t,{key:o.MARK_UNDERLINE})},children:e.jsx(h.Underline,{size:24,color:"grey-5"})})})]}),e.jsx(T,{}),e.jsxs(L,{children:[e.jsx(s.Tooltip,{content:"Link",place:"top",children:e.jsx(v.MenuButton,{$active:q,onClick:()=>{const e=window.prompt("Enter URL:");e&&t&&o.toggleMark(t,{key:n.MARK_LINK,value:{url:e}})},children:e.jsx(p.Link,{size:24,color:"grey-5"})})}),e.jsx(s.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 i(e);n&&(r.insertImage(t,n),o.insertNode(t,{type:o.ELEMENT_PARAGRAPH,children:[{text:" "}]}))},children:e.jsxs("div",{children:[e.jsx("input",{accept:"image/*",ref:M,style:{display:"none"},type:"file"}),e.jsx(a.Image,{size:24,color:"grey-5"})]})})})]}),e.jsx(T,{}),e.jsxs(L,{children:[e.jsx(s.Tooltip,{content:"Unordered List",place:"top",children:e.jsx(v.MenuButton,{$active:A,onClick:()=>{t&&o.toggleNodeType(t,{activeType:o.getPluginType(t,o.ELEMENT_UL)})},children:e.jsx(j.ListUnordered,{size:24,color:"grey-5"})})}),e.jsx(s.Tooltip,{content:"Ordered List",place:"top",children:e.jsx(v.MenuButton,{$active:R,onClick:()=>{t&&o.toggleNodeType(t,{activeType:o.getPluginType(t,o.ELEMENT_OL)})},children:e.jsx(x.ListOrdered,{size:24,color:"grey-5"})})})]})]})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@udecode/plate"),i=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("../plugins/blocks/text.js"),a=require("../plugins/leafs/link.js"),c=require("../plugins/plate.js"),E=require("../plugins/utils/exitBreak.js"),s=require("../plugins/utils/resetBlockType.js"),g=require("../plugins/utils/selectOnBackspace.js"),P=require("../plugins/utils/softBreak.js");const o=e.createPlugins([l.createImagePlugin({options:{disableUploadInsert:!0,disableEmbedInsert:!0}}),i.createTextIndentPlugin(),i.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]}}}),i.createListPlugin(),l.createMediaEmbedPlugin(),i.createParagraphPlugin(),u.createHOnePlugin(),u.createHTwoPlugin(),u.createHThreePlugin(),u.createHFourPlugin(),u.createHFivePlugin(),u.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:[e.ELEMENT_PARAGRAPH,e.ELEMENT_H1,e.ELEMENT_H2,e.ELEMENT_H3,e.ELEMENT_H4,e.ELEMENT_H5,e.ELEMENT_H6]}}}),r.createIndentPlugin({inject:{props:{validTypes:[e.ELEMENT_PARAGRAPH,e.ELEMENT_H1]}}}),i.createLineHeightPlugin(),n.createLinkPlugin({renderAfterEditable:a.LinkFloatingMenu}),i.createExitBreakPlugin(E.exitBreakPlugin),i.createHistoryPlugin(),i.createResetNodePlugin(s.resetBlockTypePlugin),i.createSelectOnBackspacePlugin(g.selectOnBackspace),i.createSoftBreakPlugin(P.softBreakPlugin)],{components:c.plateUI});exports.plugins=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"courses_selection.d.ts","sourceRoot":"","sources":["../../../../../src/components/custom/courses_selection/courses_selection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,KAAK,WAAW,GAAG,IAAI,CACrB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAClC,UAAU,GACV,QAAQ,GACR,eAAe,GACf,SAAS,GACT,UAAU,GACV,aAAa,GACb,oBAAoB,GACpB,cAAc,GACd,cAAc,GACd,YAAY,GACZ,aAAa,CAChB,CAAC;AAEF,KAAK,MAAM,GAAG;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,WAAW,qBACf,SAAQ,WAAW,EACjB,KAAK,CAAC,iBAAiB;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CACjC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAC9C,CAAC;IACF,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,gBAAgB,kLAe1B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"courses_selection.d.ts","sourceRoot":"","sources":["../../../../../src/components/custom/courses_selection/courses_selection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,KAAK,WAAW,GAAG,IAAI,CACrB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAClC,UAAU,GACV,QAAQ,GACR,eAAe,GACf,SAAS,GACT,UAAU,GACV,aAAa,GACb,oBAAoB,GACpB,cAAc,GACd,cAAc,GACd,YAAY,GACZ,aAAa,CAChB,CAAC;AAEF,KAAK,MAAM,GAAG;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,WAAW,qBACf,SAAQ,WAAW,EACjB,KAAK,CAAC,iBAAiB;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CACjC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAC9C,CAAC;IACF,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,gBAAgB,kLAe1B,qBAAqB,4CAoJvB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ELEMENT_BLOCKQUOTE, ELEMENT_CODE_LINE, ELEMENT_CODE_SYNTAX, ELEMENT_DEFAULT, ELEMENT_H1, ELEMENT_H2, ELEMENT_H3, ELEMENT_H4, ELEMENT_H5, ELEMENT_H6, ELEMENT_HR, ELEMENT_IMAGE, ELEMENT_LI, ELEMENT_LIC, ELEMENT_LINK, ELEMENT_MEDIA, ELEMENT_MEDIA_EMBED, ELEMENT_MENTION, ELEMENT_MENTION_INPUT, ELEMENT_OL, ELEMENT_PARAGRAPH, ELEMENT_TABLE, ELEMENT_TD, ELEMENT_TH, ELEMENT_TODO_LI, ELEMENT_TR, ELEMENT_UL, MARK_BG_COLOR, MARK_BOLD, MARK_CODE, MARK_COLOR, MARK_FONT_FAMILY, MARK_FONT_SIZE, MARK_FONT_WEIGHT, MARK_HIGHLIGHT, MARK_ITALIC, MARK_KBD, MARK_SEARCH_HIGHLIGHT, MARK_STRIKETHROUGH, MARK_SUBSCRIPT, MARK_SUPERSCRIPT, MARK_UNDERLINE, } from '@udecode/plate';
|
|
1
|
+
export { ELEMENT_BLOCKQUOTE, ELEMENT_CODE_LINE, ELEMENT_CODE_SYNTAX, ELEMENT_DEFAULT, ELEMENT_H1, ELEMENT_H2, ELEMENT_H3, ELEMENT_H4, ELEMENT_H5, ELEMENT_H6, ELEMENT_HR, ELEMENT_IMAGE, ELEMENT_LI, ELEMENT_LIC, ELEMENT_LINK, ELEMENT_MEDIA, ELEMENT_MEDIA_EMBED, ELEMENT_MENTION, ELEMENT_MENTION_INPUT, ELEMENT_OL, ELEMENT_PARAGRAPH, ELEMENT_TABLE, ELEMENT_TD, ELEMENT_TH, ELEMENT_TODO_LI, ELEMENT_TR, ELEMENT_UL, MARK_BG_COLOR, MARK_BOLD, MARK_CODE, MARK_COLOR, MARK_FONT_FAMILY, MARK_FONT_SIZE, MARK_FONT_WEIGHT, MARK_HIGHLIGHT, MARK_ITALIC, MARK_KBD, MARK_SEARCH_HIGHLIGHT, MARK_STRIKETHROUGH, MARK_SUBSCRIPT, MARK_SUPERSCRIPT, MARK_UNDERLINE, } from '@udecode/plate-common';
|
|
2
2
|
export declare const ELEMENT_BUTTON = "button";
|
|
3
3
|
export declare const ELEMENT_PAYWALL = "paywall";
|
|
4
4
|
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":"AAAA,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,aAAa,EACb,UAAU,EACV,WAAW,EACX,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,UAAU,EACV,eAAe,EACf,UAAU,EACV,UAAU,EACV,aAAa,EACb,SAAS,EACT,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,QAAQ,EACR,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,cAAc,GACf,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,aAAa,EACb,UAAU,EACV,WAAW,EACX,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,UAAU,EACV,eAAe,EACf,UAAU,EACV,UAAU,EACV,aAAa,EACb,SAAS,EACT,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,QAAQ,EACR,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,cAAc,GACf,MAAM,uBAAuB,CAAC;AAE/B,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,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TElement } from '@udecode/plate';
|
|
2
|
+
import { TElement } from '@udecode/plate-common';
|
|
3
3
|
import { CommentInputProps, CommentLoaderProps, FilterComponentProps } from './context';
|
|
4
4
|
export interface EditorProps {
|
|
5
5
|
commentInputLoader: (props: CommentInputProps) => React.ReactElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/editor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/editor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAIL,QAAQ,EACT,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAElB,oBAAoB,EACrB,MAAM,WAAW,CAAC;AAYnB,MAAM,WAAW,WAAW;IAC1B,kBAAkB,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,KAAK,CAAC,YAAY,CAAC;IACrE,aAAa,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,KAAK,CAAC,YAAY,CAAC;IACjE,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAChD,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IACzC,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,CAAC,KAAK,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,KAAK,KAAK,CAAC,YAAY,CAAC;IAC3E,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAC5D,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;AAErC,eAAO,MAAM,MAAM,kNAahB,WAAW,4CAwCb,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,EAAa,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAa/D,MAAM,WAAW,6BAA6B;IAC5C,SAAS,EAAE,WAAW,CAAC;CACxB;AA+BD,eAAO,MAAM,wBAAwB,mBAElC,6BAA6B,4CA2C/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minimal_editor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/minimal_editor/minimal_editor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"minimal_editor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/minimal_editor/minimal_editor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAKtE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;IAE7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,8KAyBvB,kBAAkB,4CA4CpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/minimal_editor/navbar.tsx"],"names":[],"mappings":"AAuBA,MAAM,WAAW,qBAAqB;IACpC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,gBAAgB,oEAK1B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/minimal_editor/navbar.tsx"],"names":[],"mappings":"AAuBA,MAAM,WAAW,qBAAqB;IACpC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,gBAAgB,oEAK1B,qBAAqB,4CAoKvB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const plugins:
|
|
1
|
+
export declare const plugins: import("@udecode/plate-common").PlatePlugin<import("@udecode/utils").AnyObject, import("@udecode/slate").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/slate").Value>>[];
|
|
2
2
|
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/minimal_editor/plugins.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,OAAO,
|
|
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,EAAa,WAAW,
|
|
1
|
+
{"version":3,"file":"alignment_dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/navbar/alignment_dropdown.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAc/D,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,WAAW,CAAC;CACxB;AAqBD,eAAO,MAAM,iBAAiB,kBAAmB,sBAAsB,4CAoEtE,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;
|
|
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,+CAsRrB,CAAC;AA6BF,eAAO,MAAM,UAAU;cACX,OAAO;GA8BlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style_dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/navbar/style_dropdown.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,WAAW,EAGZ,MAAM,
|
|
1
|
+
{"version":3,"file":"style_dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/navbar/style_dropdown.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,WAAW,EAGZ,MAAM,uBAAuB,CAAC;AAoD/B,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,WAAW,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,kBAAmB,aAAa,4CAyCzD,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { PlateElementProps } from '@udecode/plate-common';
|
|
3
|
+
export declare const BlockquoteElement: React.ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & React.RefAttributes<any>>;
|
|
3
4
|
//# sourceMappingURL=blockquote.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockquote.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/blocks/blockquote.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"blockquote.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/blocks/blockquote.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,iBAAiB,EAElB,MAAM,uBAAuB,CAAC;AAI/B,eAAO,MAAM,iBAAiB,4FAc5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/blocks/blocks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/blocks/blocks.ts"],"names":[],"mappings":"AAoCA,eAAO,MAAM,MAAM,OA0ClB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PlateElementProps } from '@udecode/plate';
|
|
1
|
+
import { PlateElementProps } from '@udecode/plate-common';
|
|
2
2
|
export declare const ListElement: ({ children, variant, ...props }: PlateElementProps & {
|
|
3
3
|
variant: 'ul' | 'ol';
|
|
4
4
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/blocks/list.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/blocks/list.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAGxE,eAAO,MAAM,WAAW,oCAIrB,iBAAiB,GAAG;IACrB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;CACtB,4CAcA,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
2
|
+
import { PlateElementProps } from '@udecode/plate-common';
|
|
3
|
+
export declare const QuestionAnswerElement: React.ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & React.RefAttributes<any>>;
|
|
4
|
+
export declare const createQAPlugin: <OP = import("@udecode/utils").AnyObject, OV extends import("@udecode/slate").Value = import("@udecode/slate").Value, OE extends import("@udecode/plate-common").PlateEditor<OV> = import("@udecode/plate-common").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-common").OverrideByKey<OV, OE>) => import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>;
|
|
4
5
|
//# sourceMappingURL=qa.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qa.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/blocks/qa.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"qa.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/blocks/qa.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAGL,iBAAiB,EAElB,MAAM,uBAAuB,CAAC;AAW/B,eAAO,MAAM,qBAAqB,4FA0KhC,CAAC;AAUH,eAAO,MAAM,cAAc,sgBAKzB,CAAC"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
2
|
+
import { PlateElementProps } from '@udecode/plate-common';
|
|
3
|
+
export declare const ParagraphElement: React.ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & React.RefAttributes<any>>;
|
|
4
|
+
export declare const createParagraphPlugin: <OP = import("@udecode/utils").AnyObject, OV extends import("@udecode/slate").Value = import("@udecode/slate").Value, OE extends import("@udecode/plate-common").PlateEditor<OV> = import("@udecode/plate-common").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-common").OverrideByKey<OV, OE>) => import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>;
|
|
5
|
+
export declare const HOneElement: React.ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & React.RefAttributes<any>>;
|
|
6
|
+
export declare const createHOnePlugin: <OP = import("@udecode/utils").AnyObject, OV extends import("@udecode/slate").Value = import("@udecode/slate").Value, OE extends import("@udecode/plate-common").PlateEditor<OV> = import("@udecode/plate-common").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-common").OverrideByKey<OV, OE>) => import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>;
|
|
7
|
+
export declare const HTwoElement: React.ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & React.RefAttributes<any>>;
|
|
8
|
+
export declare const createHTwoPlugin: <OP = import("@udecode/utils").AnyObject, OV extends import("@udecode/slate").Value = import("@udecode/slate").Value, OE extends import("@udecode/plate-common").PlateEditor<OV> = import("@udecode/plate-common").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-common").OverrideByKey<OV, OE>) => import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>;
|
|
9
|
+
export declare const HThreeElement: React.ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & React.RefAttributes<any>>;
|
|
10
|
+
export declare const createHThreePlugin: <OP = import("@udecode/utils").AnyObject, OV extends import("@udecode/slate").Value = import("@udecode/slate").Value, OE extends import("@udecode/plate-common").PlateEditor<OV> = import("@udecode/plate-common").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-common").OverrideByKey<OV, OE>) => import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>;
|
|
11
|
+
export declare const HFourElement: React.ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & React.RefAttributes<any>>;
|
|
12
|
+
export declare const createHFourPlugin: <OP = import("@udecode/utils").AnyObject, OV extends import("@udecode/slate").Value = import("@udecode/slate").Value, OE extends import("@udecode/plate-common").PlateEditor<OV> = import("@udecode/plate-common").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-common").OverrideByKey<OV, OE>) => import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>;
|
|
13
|
+
export declare const HFiveElement: React.ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & React.RefAttributes<any>>;
|
|
14
|
+
export declare const createHFivePlugin: <OP = import("@udecode/utils").AnyObject, OV extends import("@udecode/slate").Value = import("@udecode/slate").Value, OE extends import("@udecode/plate-common").PlateEditor<OV> = import("@udecode/plate-common").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-common").OverrideByKey<OV, OE>) => import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>;
|
|
15
|
+
export declare const HSixElement: React.ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & React.RefAttributes<any>>;
|
|
16
|
+
export declare const createHSixPlugin: <OP = import("@udecode/utils").AnyObject, OV extends import("@udecode/slate").Value = import("@udecode/slate").Value, OE extends import("@udecode/plate-common").PlateEditor<OV> = import("@udecode/plate-common").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-common").OverrideByKey<OV, OE>) => import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>;
|
|
16
17
|
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/blocks/text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/blocks/text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,iBAAiB,EAGlB,MAAM,uBAAuB,CAAC;AAS/B,eAAO,MAAM,gBAAgB,4FAiB3B,CAAC;AAEH,eAAO,MAAM,qBAAqB,sgBAIhC,CAAC;AAEH,eAAO,MAAM,WAAW,4FAYtB,CAAC;AAEH,eAAO,MAAM,gBAAgB,sgBAI3B,CAAC;AAEH,eAAO,MAAM,WAAW,4FAYtB,CAAC;AAEH,eAAO,MAAM,gBAAgB,sgBAI3B,CAAC;AAEH,eAAO,MAAM,aAAa,4FAYxB,CAAC;AAEH,eAAO,MAAM,kBAAkB,sgBAI7B,CAAC;AAEH,eAAO,MAAM,YAAY,4FAYvB,CAAC;AAEH,eAAO,MAAM,iBAAiB,sgBAI5B,CAAC;AAEH,eAAO,MAAM,YAAY,4FAYvB,CAAC;AAEH,eAAO,MAAM,iBAAiB,sgBAI5B,CAAC;AAEH,eAAO,MAAM,WAAW,4FAYtB,CAAC;AAEH,eAAO,MAAM,gBAAgB,sgBAI3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leafs.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/leafs/leafs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"leafs.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/leafs/leafs.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,KAAK,OA4BjB,CAAC"}
|
|
@@ -1,89 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const plateUI: {
|
|
3
|
-
|
|
4
|
-
h1: import("react").ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & import("react").RefAttributes<unknown>>;
|
|
5
|
-
h2: import("react").ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & import("react").RefAttributes<unknown>>;
|
|
6
|
-
h3: import("react").ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & import("react").RefAttributes<unknown>>;
|
|
7
|
-
h4: import("react").ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & import("react").RefAttributes<unknown>>;
|
|
8
|
-
h5: import("react").ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & import("react").RefAttributes<unknown>>;
|
|
9
|
-
h6: import("react").ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & import("react").RefAttributes<unknown>>;
|
|
10
|
-
blockquote: import("react").ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & import("react").RefAttributes<unknown>>;
|
|
11
|
-
a: import("react").ForwardRefExoticComponent<Omit<PlateElementProps<Value, import("@udecode/plate-link").TLinkElement>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
12
|
-
ol: import("react").ForwardRefExoticComponent<Omit<Omit<any, "ref">, "ref"> & import("react").RefAttributes<unknown>>;
|
|
13
|
-
ul: import("react").ForwardRefExoticComponent<Omit<Omit<any, "ref">, "ref"> & import("react").RefAttributes<unknown>>;
|
|
14
|
-
img: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
15
|
-
elementToAttributes?: (element: import("@udecode/slate").TElement) => any;
|
|
16
|
-
} & Omit<{
|
|
17
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
18
|
-
asChild?: boolean;
|
|
19
|
-
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
20
|
-
ref?: import("react").Ref<any>;
|
|
21
|
-
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/slate").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/slate").Value>> & {
|
|
22
|
-
element: import("@udecode/slate").TElement;
|
|
23
|
-
} & Omit<import("slate-react").RenderElementProps, "element"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
24
|
-
button: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate-common").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
25
|
-
table: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
26
|
-
elementToAttributes?: (element: import("@udecode/slate").TElement) => any;
|
|
27
|
-
} & Omit<{
|
|
28
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
29
|
-
asChild?: boolean;
|
|
30
|
-
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
31
|
-
ref?: import("react").Ref<any>;
|
|
32
|
-
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/slate").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/slate").Value>> & {
|
|
33
|
-
element: import("@udecode/slate").TElement;
|
|
34
|
-
} & Omit<import("slate-react").RenderElementProps, "element"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
35
|
-
td: import("react").ForwardRefExoticComponent<Omit<{
|
|
36
|
-
elementToAttributes?: (element: import("@udecode/slate").TElement) => any;
|
|
37
|
-
} & Omit<{
|
|
38
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
39
|
-
asChild?: boolean;
|
|
40
|
-
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
41
|
-
ref?: import("react").Ref<any>;
|
|
42
|
-
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/slate").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/slate").Value>> & {
|
|
43
|
-
element: import("@udecode/slate").TElement;
|
|
44
|
-
} & Omit<import("slate-react").RenderElementProps, "element"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
45
|
-
hideBorder?: boolean;
|
|
46
|
-
isHeader?: boolean;
|
|
47
|
-
} & import("react").RefAttributes<any>>;
|
|
48
|
-
th: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
49
|
-
elementToAttributes?: (element: import("@udecode/slate").TElement) => any;
|
|
50
|
-
} & Omit<{
|
|
51
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
52
|
-
asChild?: boolean;
|
|
53
|
-
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
54
|
-
ref?: import("react").Ref<any>;
|
|
55
|
-
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/slate").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/slate").Value>> & {
|
|
56
|
-
element: import("@udecode/slate").TElement;
|
|
57
|
-
} & Omit<import("slate-react").RenderElementProps, "element"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
58
|
-
hideBorder?: boolean;
|
|
59
|
-
isHeader?: boolean;
|
|
60
|
-
} & import("react").RefAttributes<any>, "ref"> & import("react").RefAttributes<any>>;
|
|
61
|
-
tr: import("react").ForwardRefExoticComponent<Omit<{
|
|
62
|
-
elementToAttributes?: (element: import("@udecode/slate").TElement) => any;
|
|
63
|
-
} & Omit<{
|
|
64
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
65
|
-
asChild?: boolean;
|
|
66
|
-
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
67
|
-
ref?: import("react").Ref<any>;
|
|
68
|
-
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/slate").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/slate").Value>> & {
|
|
69
|
-
element: import("@udecode/slate").TElement;
|
|
70
|
-
} & Omit<import("slate-react").RenderElementProps, "element"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
71
|
-
hideBorder?: boolean;
|
|
72
|
-
} & import("react").RefAttributes<any>>;
|
|
73
|
-
subscript: import("react").ForwardRefExoticComponent<Omit<{
|
|
3
|
+
[x: number]: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate-common").PlateElementProps, "ref"> & import("react").RefAttributes<any>> | import("react").ForwardRefExoticComponent<Omit<PlateElementProps<Value, import("@udecode/plate-link").TLinkElement>, "ref"> & import("react").RefAttributes<unknown>> | import("react").ForwardRefExoticComponent<Omit<{
|
|
74
4
|
leafToAttributes?: (leaf: import("@udecode/slate").TText) => any;
|
|
75
|
-
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/slate").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/slate").Value>> & Omit<import("slate-react").RenderLeafProps, "
|
|
76
|
-
leaf: import("@udecode/slate").TText;
|
|
77
|
-
text: import("@udecode/slate").TText;
|
|
78
|
-
} & Omit<{
|
|
79
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
80
|
-
asChild?: boolean;
|
|
81
|
-
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
82
|
-
ref?: import("react").Ref<any>;
|
|
83
|
-
} & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<any>>;
|
|
84
|
-
superscript: import("react").ForwardRefExoticComponent<Omit<{
|
|
85
|
-
leafToAttributes?: (leaf: import("@udecode/slate").TText) => any;
|
|
86
|
-
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/slate").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/slate").Value>> & Omit<import("slate-react").RenderLeafProps, "text" | "leaf"> & {
|
|
5
|
+
} & 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"> & {
|
|
87
6
|
leaf: import("@udecode/slate").TText;
|
|
88
7
|
text: import("@udecode/slate").TText;
|
|
89
8
|
} & Omit<{
|
|
@@ -92,5 +11,6 @@ export declare const plateUI: {
|
|
|
92
11
|
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
93
12
|
ref?: import("react").Ref<any>;
|
|
94
13
|
} & 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>>;
|
|
95
15
|
};
|
|
96
16
|
//# 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":"navbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/simple_editor/navbar.tsx"],"names":[],"mappings":"
|
|
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,4CA4K9D,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const plugins:
|
|
1
|
+
export declare const plugins: import("@udecode/plate-common").PlatePlugin<import("@udecode/utils").AnyObject, import("@udecode/slate").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/slate").Value>>[];
|
|
2
2
|
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/simple_editor/plugins.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/simple_editor/plugins.ts"],"names":[],"mappings":"AAoDA,eAAO,MAAM,OAAO,gMAiFnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simple_editor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/simple_editor/simple_editor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"simple_editor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/simple_editor/simple_editor.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAMtE,OAAO,EACL,gBAAgB,EAEjB,MAAM,gDAAgD,CAAC;AAExD,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACxD,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE;QACX,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,gBAAgB,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC9B;AAED,eAAO,MAAM,YAAY,gHAkBtB,iBAAiB,4CAkFnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soul-refiner/design-system",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.119",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
29
29
|
"@storybook/addon-docs": "~9.1.17",
|
|
30
30
|
"@storybook/addon-links": "^9.1.17",
|
|
31
|
-
"@storybook/addon-themes": "
|
|
31
|
+
"@storybook/addon-themes": "~9.1.17",
|
|
32
32
|
"@storybook/addons": "^7.6.7",
|
|
33
33
|
"@storybook/nextjs": "~9.1.17",
|
|
34
34
|
"@storybook/testing-library": "~0.2.0",
|
|
@@ -79,13 +79,20 @@
|
|
|
79
79
|
"@radix-ui/react-tooltip": "^1.0.7",
|
|
80
80
|
"@udecode/cn": "~29.0.1",
|
|
81
81
|
"@udecode/plate": "^36.5.9",
|
|
82
|
+
"@udecode/plate-alignment": "^36.0.0",
|
|
83
|
+
"@udecode/plate-common": "^36.0.0",
|
|
84
|
+
"@udecode/plate-indent": "^36.0.0",
|
|
85
|
+
"@udecode/plate-link": "^36.0.0",
|
|
86
|
+
"@udecode/plate-media": "^36.0.0",
|
|
87
|
+
"@udecode/plate-resizable": "^36.0.0",
|
|
88
|
+
"@udecode/plate-table": "^36.0.0",
|
|
82
89
|
"@udecode/react-utils": "^29.0.1",
|
|
83
90
|
"class-variance-authority": "~0.7.0",
|
|
84
91
|
"date-fns": "^3.4.0",
|
|
85
92
|
"embla-carousel-react": "^8.6.0",
|
|
86
93
|
"emoji-mart": "~5.5.2",
|
|
87
94
|
"lucide-react": "~0.307.0",
|
|
88
|
-
"next": "
|
|
95
|
+
"next": "15.5.9",
|
|
89
96
|
"react": "~18.2.0",
|
|
90
97
|
"react-dnd": "~16.0.1",
|
|
91
98
|
"react-dnd-html5-backend": "~16.0.1",
|
|
@@ -117,6 +124,7 @@
|
|
|
117
124
|
"js-yaml": "^4.1.1",
|
|
118
125
|
"glob": "^10.5.0",
|
|
119
126
|
"qs": "^6.14.1",
|
|
120
|
-
"validator": "^13.15.22"
|
|
127
|
+
"validator": "^13.15.22",
|
|
128
|
+
"diff": "^8.0.3"
|
|
121
129
|
}
|
|
122
130
|
}
|