@team-monolith/cds 1.10.6 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CodleDesignSystemProvider.d.ts +0 -12
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/InputComponent.js +24 -15
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SegmentedInput.d.ts +12 -0
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SegmentedInput.js +95 -0
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/TextInput.d.ts +6 -0
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/TextInput.js +28 -0
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox.js +5 -0
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/SettingForm.js +1 -1
- package/package.json +4 -17
- package/dist/patterns/ReactEditorJS/Layout.d.ts +0 -8
- package/dist/patterns/ReactEditorJS/Layout.js +0 -91
- package/dist/patterns/ReactEditorJS/ReactEditorJS.d.ts +0 -15
- package/dist/patterns/ReactEditorJS/ReactEditorJS.js +0 -87
- package/dist/patterns/ReactEditorJS/customTools/block/Callout.d.ts +0 -38
- package/dist/patterns/ReactEditorJS/customTools/block/Callout.js +0 -162
- package/dist/patterns/ReactEditorJS/customTools/block/Delimiter.d.ts +0 -10
- package/dist/patterns/ReactEditorJS/customTools/block/Delimiter.js +0 -26
- package/dist/patterns/ReactEditorJS/customTools/block/Header.d.ts +0 -60
- package/dist/patterns/ReactEditorJS/customTools/block/Header.js +0 -122
- package/dist/patterns/ReactEditorJS/customTools/block/Image.d.ts +0 -22
- package/dist/patterns/ReactEditorJS/customTools/block/Image.js +0 -61
- package/dist/patterns/ReactEditorJS/customTools/block/NestedList.d.ts +0 -28
- package/dist/patterns/ReactEditorJS/customTools/block/NestedList.js +0 -74
- package/dist/patterns/ReactEditorJS/customTools/block/Quote.d.ts +0 -42
- package/dist/patterns/ReactEditorJS/customTools/block/Quote.js +0 -171
- package/dist/patterns/ReactEditorJS/customTools/block/Raw.d.ts +0 -30
- package/dist/patterns/ReactEditorJS/customTools/block/Raw.js +0 -107
- package/dist/patterns/ReactEditorJS/customTools/block/Table.d.ts +0 -9
- package/dist/patterns/ReactEditorJS/customTools/block/Table.js +0 -28
- package/dist/patterns/ReactEditorJS/customTools/index.d.ts +0 -16
- package/dist/patterns/ReactEditorJS/customTools/index.js +0 -16
- package/dist/patterns/ReactEditorJS/customTools/inline/Bold.d.ts +0 -52
- package/dist/patterns/ReactEditorJS/customTools/inline/Bold.js +0 -83
- package/dist/patterns/ReactEditorJS/customTools/inline/InlineCode.d.ts +0 -4
- package/dist/patterns/ReactEditorJS/customTools/inline/InlineCode.js +0 -7
- package/dist/patterns/ReactEditorJS/customTools/inline/Italic.d.ts +0 -48
- package/dist/patterns/ReactEditorJS/customTools/inline/Italic.js +0 -79
- package/dist/patterns/ReactEditorJS/customTools/inline/StrikeThrough.d.ts +0 -4
- package/dist/patterns/ReactEditorJS/customTools/inline/StrikeThrough.js +0 -7
- package/dist/patterns/ReactEditorJS/customTools/inline/Underline.d.ts +0 -4
- package/dist/patterns/ReactEditorJS/customTools/inline/Underline.js +0 -7
- package/dist/patterns/ReactEditorJS/customTools/tunes/Delete.d.ts +0 -30
- package/dist/patterns/ReactEditorJS/customTools/tunes/Delete.js +0 -36
- package/dist/patterns/ReactEditorJS/customTools/tunes/MoveDown.d.ts +0 -34
- package/dist/patterns/ReactEditorJS/customTools/tunes/MoveDown.js +0 -58
- package/dist/patterns/ReactEditorJS/customTools/tunes/MoveUp.d.ts +0 -34
- package/dist/patterns/ReactEditorJS/customTools/tunes/MoveUp.js +0 -68
- package/dist/patterns/ReactEditorJS/i18n.d.ts +0 -128
- package/dist/patterns/ReactEditorJS/i18n.js +0 -128
- package/dist/patterns/ReactEditorJS/index.d.ts +0 -3
- package/dist/patterns/ReactEditorJS/index.js +0 -3
- package/dist/patterns/ReactEditorJS/tools.d.ts +0 -80
- package/dist/patterns/ReactEditorJS/tools.js +0 -106
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import Paragraph from "@editorjs/paragraph";
|
|
2
|
-
import { textSvg } from "../../icons";
|
|
3
|
-
import { Bold, HeaderBig, HeaderMedium, HeaderSmall, ListOrdered, ListUnordered, Raw, Delimiter, Table, Image, Quote, Callout, Italic, InlineCode, StrikeThrough, Underline, MoveDown, MoveUp, Delete, } from "./customTools";
|
|
4
|
-
const INLINE_TOOLBAR = [
|
|
5
|
-
"bold",
|
|
6
|
-
"italic",
|
|
7
|
-
"underline",
|
|
8
|
-
"strikeThrough",
|
|
9
|
-
"inlineCode",
|
|
10
|
-
"link",
|
|
11
|
-
];
|
|
12
|
-
const TOOLS = {
|
|
13
|
-
// 블록 툴: 순서대로 툴바에 나열됩니다.
|
|
14
|
-
paragraph: {
|
|
15
|
-
class: Paragraph,
|
|
16
|
-
// https://github.com/editor-js/paragraph/blob/master/src/index.js
|
|
17
|
-
toolbox: {
|
|
18
|
-
icon: `<img src="${textSvg}" />`,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
header: {
|
|
22
|
-
class: HeaderBig,
|
|
23
|
-
inlineToolbar: INLINE_TOOLBAR,
|
|
24
|
-
},
|
|
25
|
-
sub_header: {
|
|
26
|
-
class: HeaderMedium,
|
|
27
|
-
inlineToolbar: INLINE_TOOLBAR,
|
|
28
|
-
},
|
|
29
|
-
sub_sub_header: {
|
|
30
|
-
class: HeaderSmall,
|
|
31
|
-
inlineToolbar: INLINE_TOOLBAR,
|
|
32
|
-
},
|
|
33
|
-
bulleted_list: {
|
|
34
|
-
class: ListUnordered,
|
|
35
|
-
inlineToolbar: INLINE_TOOLBAR,
|
|
36
|
-
pasteConfig: {
|
|
37
|
-
tags: ["UL", "LI"],
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
numbered_list: {
|
|
41
|
-
class: ListOrdered,
|
|
42
|
-
inlineToolbar: INLINE_TOOLBAR,
|
|
43
|
-
config: {
|
|
44
|
-
defaultStyle: "ordered",
|
|
45
|
-
},
|
|
46
|
-
pasteConfig: {
|
|
47
|
-
tags: ["OL", "LI"],
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
// 현재 토글에 버그가 있어 기능을 비활성화 합니다.
|
|
51
|
-
// toggle: {
|
|
52
|
-
// class: Toggle,
|
|
53
|
-
// inlineToolbar: INLINE_TOOLBAR,
|
|
54
|
-
// toolbox: {
|
|
55
|
-
// icon: `<img src="${arrowRightSFillSvg}" />`,
|
|
56
|
-
// },
|
|
57
|
-
// config: {
|
|
58
|
-
// placeholder: "토글",
|
|
59
|
-
// defaultContent: "토글 내부 항목",
|
|
60
|
-
// },
|
|
61
|
-
// },
|
|
62
|
-
quote: Quote,
|
|
63
|
-
callout: Callout,
|
|
64
|
-
raw: {
|
|
65
|
-
class: Raw,
|
|
66
|
-
config: {
|
|
67
|
-
placeholder: "코드를 입력하세요.",
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
delimiter: Delimiter,
|
|
71
|
-
table: {
|
|
72
|
-
class: Table,
|
|
73
|
-
config: {
|
|
74
|
-
withHeadings: true,
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
image: {
|
|
78
|
-
class: Image,
|
|
79
|
-
},
|
|
80
|
-
// 인라인 툴 : ReactEditorJS에서 inlineToolbar를 지정하여 노출합니다.
|
|
81
|
-
bold: {
|
|
82
|
-
class: Bold,
|
|
83
|
-
shortcut: "CMD+B",
|
|
84
|
-
},
|
|
85
|
-
italic: {
|
|
86
|
-
class: Italic,
|
|
87
|
-
shortcut: "CMD+I",
|
|
88
|
-
},
|
|
89
|
-
inlineCode: {
|
|
90
|
-
class: InlineCode,
|
|
91
|
-
shortcut: "CMD+SHIFT+M",
|
|
92
|
-
},
|
|
93
|
-
strikeThrough: {
|
|
94
|
-
class: StrikeThrough,
|
|
95
|
-
shortcut: "CMD+SHIFT+X",
|
|
96
|
-
},
|
|
97
|
-
underline: {
|
|
98
|
-
class: Underline,
|
|
99
|
-
shortcut: "CMD+SHIFT+U",
|
|
100
|
-
},
|
|
101
|
-
// 블록 변경(tune) 툴
|
|
102
|
-
moveUp: MoveUp,
|
|
103
|
-
delete: Delete,
|
|
104
|
-
moveDown: MoveDown,
|
|
105
|
-
};
|
|
106
|
-
export default TOOLS;
|