1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-24 17:23:07 +01:00
slate/lib/index.js

79 lines
1.0 KiB
JavaScript
Raw Normal View History

2016-06-15 12:07:12 -07:00
2016-06-15 20:00:41 -07:00
/**
2016-07-06 14:21:11 -07:00
* Components.
2016-06-15 20:00:41 -07:00
*/
2016-07-07 19:37:34 -07:00
import Editor from './components/editor'
2016-07-11 18:36:45 -07:00
import Placeholder from './components/placeholder'
2016-06-15 20:00:41 -07:00
/**
* Models.
*/
2016-07-07 19:37:34 -07:00
import Block from './models/block'
import Character from './models/character'
import Data from './models/data'
import Document from './models/document'
import Inline from './models/inline'
import Mark from './models/mark'
import Selection from './models/selection'
import State from './models/state'
import Text from './models/text'
2016-06-15 12:07:12 -07:00
2016-06-17 18:20:26 -07:00
/**
* Serializers.
*/
2016-07-07 19:37:34 -07:00
import Html from './serializers/html'
import Raw from './serializers/raw'
/**
* Utils.
*/
import Key from './utils/key'
2016-07-11 18:36:45 -07:00
import findDOMNode from './utils/find-dom-node'
2016-07-07 19:37:34 -07:00
2016-07-11 18:36:45 -07:00
const Utils = {
Key,
findDOMNode
}
2016-07-07 19:37:34 -07:00
/**
* Export.
*/
export {
Block,
Character,
Data,
Document,
Editor,
Html,
Inline,
Mark,
2016-07-11 18:36:45 -07:00
Placeholder,
2016-07-07 19:37:34 -07:00
Raw,
Selection,
State,
Text,
Utils
}
export default {
Block,
Character,
Data,
Document,
Editor,
Html,
Inline,
Mark,
2016-07-11 18:36:45 -07:00
Placeholder,
2016-07-07 19:37:34 -07:00
Raw,
Selection,
State,
Text,
Utils
}