/
editors-defaults.ts
39 lines (34 loc) · 1022 Bytes
/
editors-defaults.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { DEFAULT_EDITOR_ID, WidgetNamespace } from './types'
export const EntryEditorWidgetTypes = {
DEFAULT_EDITOR: {
name: 'Editor',
id: DEFAULT_EDITOR_ID,
icon: 'Entry',
},
REFERENCE_TREE: {
name: 'References',
id: 'reference-tree',
icon: 'References',
},
TAGS_EDITOR: {
name: 'Tags',
id: 'tags-editor',
icon: 'Tags',
},
}
const DefaultEntryEditor = {
widgetId: EntryEditorWidgetTypes.DEFAULT_EDITOR.id,
widgetNamespace: WidgetNamespace.EDITOR_BUILTIN,
name: EntryEditorWidgetTypes.DEFAULT_EDITOR.name,
}
const ReferencesEntryEditor = {
widgetId: EntryEditorWidgetTypes.REFERENCE_TREE.id,
widgetNamespace: WidgetNamespace.EDITOR_BUILTIN,
name: EntryEditorWidgetTypes.REFERENCE_TREE.name,
}
const TagsEditor = {
widgetId: EntryEditorWidgetTypes.TAGS_EDITOR.id,
widgetNamespace: WidgetNamespace.EDITOR_BUILTIN,
name: EntryEditorWidgetTypes.TAGS_EDITOR.name,
}
export const EntryConfiguration = [DefaultEntryEditor, ReferencesEntryEditor, TagsEditor]