-
Notifications
You must be signed in to change notification settings - Fork 184
Expand file tree
/
Copy pathapiEntries.ts
More file actions
47 lines (43 loc) · 1.32 KB
/
apiEntries.ts
File metadata and controls
47 lines (43 loc) · 1.32 KB
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
40
41
42
43
44
45
46
47
import * as React from 'react';
import CreateModelFromHtmlPane from './createModelFromHtml/CreateModelFromHtmlPane';
import HintTextPane from './hintText/hintTextPane';
import InsertCustomContainerPane from './insertCustomContainer/InsertCustomContainerPane';
import InsertEntityPane from './insertEntity/InsertEntityPane';
import PastePane from './paste/PastePane';
import { ApiPaneProps, ApiPlaygroundComponent } from './ApiPaneProps';
export interface ApiPlaygroundReactComponent
extends React.Component<ApiPaneProps, any>,
ApiPlaygroundComponent {}
interface ApiEntry {
name: string;
component?: { new (props: ApiPaneProps): ApiPlaygroundReactComponent };
}
const apiEntries: { [key: string]: ApiEntry } = {
empty: {
name: 'Please select',
},
entity: {
name: 'Insert Entity',
component: InsertEntityPane,
},
paste: {
name: 'Paste',
component: PastePane,
},
createModelFromHtml: {
name: 'Create Model from HTML',
component: CreateModelFromHtmlPane,
},
customContainer: {
name: 'Insert Custom Container',
component: InsertCustomContainerPane,
},
hintText: {
name: 'Hint Text',
component: HintTextPane,
},
more: {
name: 'Coming soon...',
},
};
export default apiEntries;