UNPKG

1.57 kBJavaScriptView Raw
1'use strict';
2
3function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4
5function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
6
7function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
8
9var _require = require('immutable'),
10 Record = _require.Record;
11
12var DEFAULTS = {
13 // The possibles types for list containers
14 types: ['ul_list', 'ol_list'],
15 // The type of list items
16 typeItem: 'list_item',
17 // The type of default block in items
18 typeDefault: 'paragraph'
19};
20
21/**
22 * The plugin options
23 */
24
25var Options = function (_ref) {
26 _inherits(Options, _ref);
27
28 function Options() {
29 _classCallCheck(this, Options);
30
31 return _possibleConstructorReturn(this, (Options.__proto__ || Object.getPrototypeOf(Options)).apply(this, arguments));
32 }
33
34 return Options;
35}(new Record(DEFAULTS));
36
37module.exports = Options;
\No newline at end of file