@titaui/pc 1.10.39 → 1.10.43
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/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +18 -3
- package/lib/components/upload/index.js +2 -4
- package/lib/index.js +0 -8
- package/package.json +2 -20
- package/lib/components/rich-editor/basic/schema.js +0 -47
- package/lib/components/rich-editor/consts/events.js +0 -12
- package/lib/components/rich-editor/enums.js +0 -42
- package/lib/components/rich-editor/index.js +0 -58
- package/lib/components/rich-editor/keymap.js +0 -119
- package/lib/components/rich-editor/keymaps/index.js +0 -241
- package/lib/components/rich-editor/models/controller.js +0 -18
- package/lib/components/rich-editor/models/editor.js +0 -47
- package/lib/components/rich-editor/models/plugin.js +0 -20
- package/lib/components/rich-editor/models/schema.js +0 -121
- package/lib/components/rich-editor/plugins/block/block-quote/commond.js +0 -27
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +0 -126
- package/lib/components/rich-editor/plugins/block/heading/commonds.js +0 -31
- package/lib/components/rich-editor/plugins/block/heading/index.js +0 -188
- package/lib/components/rich-editor/plugins/block/index.js +0 -57
- package/lib/components/rich-editor/plugins/block/lists/actions/conversions.js +0 -172
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list-items-selected.js +0 -163
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list.js +0 -59
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-forward.js +0 -74
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/index.js +0 -45
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +0 -104
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +0 -92
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +0 -89
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-paragraph-with-list.js +0 -48
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-sibling-list-items.js +0 -61
- package/lib/components/rich-editor/plugins/block/lists/actions/merge-lists.js +0 -34
- package/lib/components/rich-editor/plugins/block/lists/actions/outdent-list-items-selected.js +0 -289
- package/lib/components/rich-editor/plugins/block/lists/actions/wrap-and-join-lists.js +0 -180
- package/lib/components/rich-editor/plugins/block/lists/baseCommand.js +0 -328
- package/lib/components/rich-editor/plugins/block/lists/commond/indent-list.js +0 -60
- package/lib/components/rich-editor/plugins/block/lists/commond/index.js +0 -398
- package/lib/components/rich-editor/plugins/block/lists/commond/join-list-item-forward.js +0 -45
- package/lib/components/rich-editor/plugins/block/lists/commond/listBackspace.js +0 -302
- package/lib/components/rich-editor/plugins/block/lists/commond/outdent-list.js +0 -43
- package/lib/components/rich-editor/plugins/block/lists/index.js +0 -222
- package/lib/components/rich-editor/plugins/block/lists/messages.js +0 -38
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/input-rule.js +0 -152
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/keymap.js +0 -33
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/main.js +0 -94
- package/lib/components/rich-editor/plugins/block/lists/styles.js +0 -15
- package/lib/components/rich-editor/plugins/block/lists/transforms.js +0 -347
- package/lib/components/rich-editor/plugins/block/lists/utils/analytics.js +0 -48
- package/lib/components/rich-editor/plugins/block/lists/utils/find.js +0 -126
- package/lib/components/rich-editor/plugins/block/lists/utils/indentation.js +0 -87
- package/lib/components/rich-editor/plugins/block/lists/utils/node.js +0 -144
- package/lib/components/rich-editor/plugins/block/lists/utils/replace-content.js +0 -31
- package/lib/components/rich-editor/plugins/block/lists/utils/selection.js +0 -201
- package/lib/components/rich-editor/plugins/block/lists/utils.js +0 -52
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +0 -91
- package/lib/components/rich-editor/plugins/core/index.js +0 -90
- package/lib/components/rich-editor/plugins/core/pm-plugins/focus-handler.js +0 -67
- package/lib/components/rich-editor/plugins/core/pm-plugins/keymap.js +0 -29
- package/lib/components/rich-editor/plugins/core/pm-plugins/reactNodeView.js +0 -80
- package/lib/components/rich-editor/plugins/extension/alignment/commond.js +0 -24
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +0 -111
- package/lib/components/rich-editor/plugins/extension/alignment/utils.js +0 -19
- package/lib/components/rich-editor/plugins/extension/index.js +0 -18
- package/lib/components/rich-editor/plugins/index.js +0 -44
- package/lib/components/rich-editor/plugins/inline/color/commond.js +0 -128
- package/lib/components/rich-editor/plugins/inline/color/consts.js +0 -43
- package/lib/components/rich-editor/plugins/inline/color/index.css +0 -61
- package/lib/components/rich-editor/plugins/inline/color/index.js +0 -209
- package/lib/components/rich-editor/plugins/inline/color/selector.js +0 -252
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +0 -147
- package/lib/components/rich-editor/plugins/inline/em/index.js +0 -93
- package/lib/components/rich-editor/plugins/inline/index.js +0 -83
- package/lib/components/rich-editor/plugins/inline/link/commands.js +0 -256
- package/lib/components/rich-editor/plugins/inline/link/index.js +0 -149
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/fake-cursor-for-toolbar.js +0 -77
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/main.js +0 -293
- package/lib/components/rich-editor/plugins/inline/link/ui/index.css +0 -79
- package/lib/components/rich-editor/plugins/inline/link/ui/linkEditor.js +0 -148
- package/lib/components/rich-editor/plugins/inline/link/ui/linkToolbar.js +0 -88
- package/lib/components/rich-editor/plugins/inline/link/ui/toolbarBtn.js +0 -117
- package/lib/components/rich-editor/plugins/inline/link/utils.js +0 -33
- package/lib/components/rich-editor/plugins/inline/strong/index.js +0 -137
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +0 -145
- package/lib/components/rich-editor/plugins/util.js +0 -281
- package/lib/components/rich-editor/react/reactNodeView.js +0 -383
- package/lib/components/rich-editor/react/uiProvider.js +0 -185
- package/lib/components/rich-editor/schemas/basic.js +0 -309
- package/lib/components/rich-editor/schemas/index.js +0 -19
- package/lib/components/rich-editor/schemas/list.js +0 -342
- package/lib/components/rich-editor/types/commond.js +0 -5
- package/lib/components/rich-editor/types/index.js +0 -18
- package/lib/components/rich-editor/ui/Popup/index.js +0 -247
- package/lib/components/rich-editor/ui/Popup/utils.js +0 -399
- package/lib/components/rich-editor/ui/editor/index.css +0 -141
- package/lib/components/rich-editor/ui/editor/index.js +0 -130
- package/lib/components/rich-editor/ui/normal-toolbar/index.css +0 -28
- package/lib/components/rich-editor/ui/normal-toolbar/index.js +0 -109
- package/lib/components/rich-editor/utils/browser.js +0 -35
- package/lib/components/rich-editor/utils/commands.js +0 -266
- package/lib/components/rich-editor/utils/document.js +0 -160
- package/lib/components/rich-editor/utils/event.js +0 -79
- package/lib/components/rich-editor/utils/helpers.js +0 -16
- package/lib/components/rich-editor/utils/mark.js +0 -168
- package/lib/components/rich-editor/utils/slice.js +0 -85
- package/lib/components/rich-editor/utils/toolbar.js +0 -228
- package/yarn-error.log +0 -22184
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
9
|
-
|
|
10
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
11
|
-
|
|
12
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
-
|
|
14
|
-
var BaseController = /*#__PURE__*/_createClass(function BaseController() {
|
|
15
|
-
_classCallCheck(this, BaseController);
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
exports["default"] = BaseController;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
|
-
|
|
10
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
11
|
-
|
|
12
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
-
|
|
14
|
-
var TitaRichEditor = /*#__PURE__*/function () {
|
|
15
|
-
function TitaRichEditor(_ref) {
|
|
16
|
-
var view = _ref.view,
|
|
17
|
-
controllers = _ref.controllers,
|
|
18
|
-
dispatcher = _ref.dispatcher;
|
|
19
|
-
|
|
20
|
-
_classCallCheck(this, TitaRichEditor);
|
|
21
|
-
|
|
22
|
-
this.view = view;
|
|
23
|
-
this.controllers = controllers;
|
|
24
|
-
this.eventDispatcher = dispatcher;
|
|
25
|
-
this.on = dispatcher.on.bind(dispatcher);
|
|
26
|
-
this.off = dispatcher.off.bind(dispatcher);
|
|
27
|
-
this.emit = dispatcher.emit.bind(dispatcher);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
_createClass(TitaRichEditor, [{
|
|
31
|
-
key: "state",
|
|
32
|
-
get: function get() {
|
|
33
|
-
return this.view.state;
|
|
34
|
-
}
|
|
35
|
-
}, {
|
|
36
|
-
key: "destroy",
|
|
37
|
-
value: function destroy() {
|
|
38
|
-
this.eventDispatcher.destroy();
|
|
39
|
-
this.view.destroy();
|
|
40
|
-
this.controllers = [];
|
|
41
|
-
}
|
|
42
|
-
}]);
|
|
43
|
-
|
|
44
|
-
return TitaRichEditor;
|
|
45
|
-
}();
|
|
46
|
-
|
|
47
|
-
exports["default"] = TitaRichEditor;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
9
|
-
|
|
10
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
11
|
-
|
|
12
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
-
|
|
14
|
-
var BasePlugin = /*#__PURE__*/_createClass(function BasePlugin() {
|
|
15
|
-
_classCallCheck(this, BasePlugin);
|
|
16
|
-
|
|
17
|
-
this.name = '';
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
exports["default"] = BasePlugin;
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.InlineSchema = exports.BlockSchema = exports.BaseSchema = exports.AtomSchema = void 0;
|
|
9
|
-
|
|
10
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11
|
-
|
|
12
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
13
|
-
|
|
14
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
15
|
-
|
|
16
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
17
|
-
|
|
18
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
19
|
-
|
|
20
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
21
|
-
|
|
22
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
23
|
-
|
|
24
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
25
|
-
|
|
26
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
|
-
|
|
28
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
|
-
|
|
30
|
-
// const createWrapperDOM = (tagName: string, attrs = {}, hasContent = false): DOMOutputSpec => {
|
|
31
|
-
// const pDOM: DOMOutputSpecArray = [tagName, attrs];
|
|
32
|
-
// if (hasContent) pDOM[2] = 0;
|
|
33
|
-
// return pDOM;
|
|
34
|
-
// };
|
|
35
|
-
var BaseSchema = /*#__PURE__*/_createClass(function BaseSchema() {
|
|
36
|
-
_classCallCheck(this, BaseSchema);
|
|
37
|
-
|
|
38
|
-
this.priority = 50;
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
exports.BaseSchema = BaseSchema;
|
|
42
|
-
|
|
43
|
-
var BlockSchema = /*#__PURE__*/function (_BaseSchema) {
|
|
44
|
-
_inherits(BlockSchema, _BaseSchema);
|
|
45
|
-
|
|
46
|
-
var _super = _createSuper(BlockSchema);
|
|
47
|
-
|
|
48
|
-
function BlockSchema() {
|
|
49
|
-
var _this;
|
|
50
|
-
|
|
51
|
-
_classCallCheck(this, BlockSchema);
|
|
52
|
-
|
|
53
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
54
|
-
args[_key] = arguments[_key];
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.group = 'block', _this.content = 'inline*', _this.inline = false, _this.defining = true, _this.draggable = false, _this.selectable = false, _assertThisInitialized(_this)));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
_createClass(BlockSchema, [{
|
|
61
|
-
key: "tagName",
|
|
62
|
-
value: function tagName() {
|
|
63
|
-
return 'div';
|
|
64
|
-
}
|
|
65
|
-
}]);
|
|
66
|
-
|
|
67
|
-
return BlockSchema;
|
|
68
|
-
}(BaseSchema);
|
|
69
|
-
|
|
70
|
-
exports.BlockSchema = BlockSchema;
|
|
71
|
-
|
|
72
|
-
var InlineSchema = /*#__PURE__*/function (_BaseSchema2) {
|
|
73
|
-
_inherits(InlineSchema, _BaseSchema2);
|
|
74
|
-
|
|
75
|
-
var _super2 = _createSuper(InlineSchema);
|
|
76
|
-
|
|
77
|
-
function InlineSchema() {
|
|
78
|
-
var _this2;
|
|
79
|
-
|
|
80
|
-
_classCallCheck(this, InlineSchema);
|
|
81
|
-
|
|
82
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
83
|
-
args[_key2] = arguments[_key2];
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.group = 'inline', _this2.inclusive = true, _assertThisInitialized(_this2)));
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
_createClass(InlineSchema, [{
|
|
90
|
-
key: "tagName",
|
|
91
|
-
value: function tagName() {
|
|
92
|
-
return 'span';
|
|
93
|
-
}
|
|
94
|
-
}]);
|
|
95
|
-
|
|
96
|
-
return InlineSchema;
|
|
97
|
-
}(BaseSchema);
|
|
98
|
-
|
|
99
|
-
exports.InlineSchema = InlineSchema;
|
|
100
|
-
|
|
101
|
-
var AtomSchema = /*#__PURE__*/function (_BaseSchema3) {
|
|
102
|
-
_inherits(AtomSchema, _BaseSchema3);
|
|
103
|
-
|
|
104
|
-
var _super3 = _createSuper(AtomSchema);
|
|
105
|
-
|
|
106
|
-
function AtomSchema() {
|
|
107
|
-
var _this3;
|
|
108
|
-
|
|
109
|
-
_classCallCheck(this, AtomSchema);
|
|
110
|
-
|
|
111
|
-
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
112
|
-
args[_key3] = arguments[_key3];
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.isLeaf = true, _this3.draggable = true, _assertThisInitialized(_this3)));
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
return _createClass(AtomSchema);
|
|
119
|
-
}(BaseSchema);
|
|
120
|
-
|
|
121
|
-
exports.AtomSchema = AtomSchema;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.wrapInBlockquote = wrapInBlockquote;
|
|
7
|
-
|
|
8
|
-
var _commands = require("../../../utils/commands");
|
|
9
|
-
|
|
10
|
-
var _prosemirrorCommands = require("prosemirror-commands");
|
|
11
|
-
|
|
12
|
-
function wrapInBlockquote(editor) {
|
|
13
|
-
var state = editor.state;
|
|
14
|
-
var schema = editor.state.schema;
|
|
15
|
-
var $from = state.selection.$from;
|
|
16
|
-
var parent = $from.node($from.depth - 1);
|
|
17
|
-
|
|
18
|
-
if (parent.type === schema.nodes.blockquote) {
|
|
19
|
-
(0, _commands.clearNodes)()(state, editor.view.dispatch);
|
|
20
|
-
editor.view.focus();
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
(0, _commands.chainTransactions)((0, _commands.clearNodes)(), (0, _prosemirrorCommands.wrapIn)(schema.nodes.blockquote))(state, editor.view.dispatch);
|
|
25
|
-
editor.view.focus();
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.BlockquoteSchema = exports.BlockquotePlugin = exports.BlockquoteController = void 0;
|
|
9
|
-
|
|
10
|
-
var _controller = _interopRequireDefault(require("../../../models/controller"));
|
|
11
|
-
|
|
12
|
-
var _plugin = _interopRequireDefault(require("../../../models/plugin"));
|
|
13
|
-
|
|
14
|
-
var _schema = require("../../../models/schema");
|
|
15
|
-
|
|
16
|
-
var _util = require("../../util");
|
|
17
|
-
|
|
18
|
-
var _commond = require("./commond");
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
-
|
|
22
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
-
|
|
24
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
25
|
-
|
|
26
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
|
-
|
|
28
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
|
-
|
|
30
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
|
-
|
|
32
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
33
|
-
|
|
34
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
35
|
-
|
|
36
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
37
|
-
|
|
38
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
39
|
-
|
|
40
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
|
-
|
|
42
|
-
var PLUGIN_NAME = 'blockquote';
|
|
43
|
-
|
|
44
|
-
var BlockquoteSchema = /*#__PURE__*/function (_BlockSchema) {
|
|
45
|
-
_inherits(BlockquoteSchema, _BlockSchema);
|
|
46
|
-
|
|
47
|
-
var _super = _createSuper(BlockquoteSchema);
|
|
48
|
-
|
|
49
|
-
function BlockquoteSchema() {
|
|
50
|
-
var _this;
|
|
51
|
-
|
|
52
|
-
_classCallCheck(this, BlockquoteSchema);
|
|
53
|
-
|
|
54
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
55
|
-
args[_key] = arguments[_key];
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.content = "block+", _this.parseDOM = [{
|
|
59
|
-
tag: "blockquote"
|
|
60
|
-
}], _assertThisInitialized(_this)));
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
_createClass(BlockquoteSchema, [{
|
|
64
|
-
key: "toDOM",
|
|
65
|
-
value: function toDOM() {
|
|
66
|
-
return ["blockquote", 0];
|
|
67
|
-
}
|
|
68
|
-
}]);
|
|
69
|
-
|
|
70
|
-
return BlockquoteSchema;
|
|
71
|
-
}(_schema.BlockSchema);
|
|
72
|
-
|
|
73
|
-
exports.BlockquoteSchema = BlockquoteSchema;
|
|
74
|
-
|
|
75
|
-
var BlockquoteController = /*#__PURE__*/function (_BaseController) {
|
|
76
|
-
_inherits(BlockquoteController, _BaseController);
|
|
77
|
-
|
|
78
|
-
var _super2 = _createSuper(BlockquoteController);
|
|
79
|
-
|
|
80
|
-
function BlockquoteController() {
|
|
81
|
-
var _this2;
|
|
82
|
-
|
|
83
|
-
_classCallCheck(this, BlockquoteController);
|
|
84
|
-
|
|
85
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
86
|
-
args[_key2] = arguments[_key2];
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
|
|
90
|
-
title: '引用',
|
|
91
|
-
icon: 'tu-icon-text-quotel',
|
|
92
|
-
handler: function handler(editor) {
|
|
93
|
-
(0, _commond.wrapInBlockquote)(editor);
|
|
94
|
-
},
|
|
95
|
-
active: function active(state) {
|
|
96
|
-
return (0, _util.isBlockActive)(state, PLUGIN_NAME);
|
|
97
|
-
}
|
|
98
|
-
}, _assertThisInitialized(_this2)));
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return _createClass(BlockquoteController);
|
|
102
|
-
}(_controller["default"]);
|
|
103
|
-
|
|
104
|
-
exports.BlockquoteController = BlockquoteController;
|
|
105
|
-
|
|
106
|
-
var BlockquotePlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
107
|
-
_inherits(BlockquotePlugin, _BasePlugin);
|
|
108
|
-
|
|
109
|
-
var _super3 = _createSuper(BlockquotePlugin);
|
|
110
|
-
|
|
111
|
-
function BlockquotePlugin() {
|
|
112
|
-
var _this3;
|
|
113
|
-
|
|
114
|
-
_classCallCheck(this, BlockquotePlugin);
|
|
115
|
-
|
|
116
|
-
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
117
|
-
args[_key3] = arguments[_key3];
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = BlockquoteSchema, _this3.controller = BlockquoteController, _assertThisInitialized(_this3)));
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
return _createClass(BlockquotePlugin);
|
|
124
|
-
}(_plugin["default"]);
|
|
125
|
-
|
|
126
|
-
exports.BlockquotePlugin = BlockquotePlugin;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.setHeadLine = setHeadLine;
|
|
7
|
-
|
|
8
|
-
var _commands = require("../../../utils/commands");
|
|
9
|
-
|
|
10
|
-
var _prosemirrorCommands = require("prosemirror-commands");
|
|
11
|
-
|
|
12
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
13
|
-
|
|
14
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
|
-
|
|
16
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
|
-
|
|
18
|
-
function setHeadLine(editor, level) {
|
|
19
|
-
var state = editor.state;
|
|
20
|
-
var schema = editor.state.schema;
|
|
21
|
-
var $from = state.selection.$from;
|
|
22
|
-
var node = $from.node();
|
|
23
|
-
|
|
24
|
-
if (node.type === schema.nodes.heading && level === node.attrs.level) {
|
|
25
|
-
return (0, _prosemirrorCommands.setBlockType)(schema.nodes.paragraph, node.attrs)(state, editor.view.dispatch);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return (0, _commands.chainTransactions)((0, _commands.clearNodes)(), (0, _prosemirrorCommands.setBlockType)(schema.nodes.heading, _objectSpread(_objectSpread({}, node.attrs), {}, {
|
|
29
|
-
level: level
|
|
30
|
-
})))(state, editor.view.dispatch);
|
|
31
|
-
}
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.HeadingSchema = exports.HeadingPlugin = void 0;
|
|
9
|
-
|
|
10
|
-
var _controller = _interopRequireDefault(require("../../../models/controller"));
|
|
11
|
-
|
|
12
|
-
var _plugin = _interopRequireDefault(require("../../../models/plugin"));
|
|
13
|
-
|
|
14
|
-
var _schema = require("../../../models/schema");
|
|
15
|
-
|
|
16
|
-
var _util = require("../../util");
|
|
17
|
-
|
|
18
|
-
var _commonds = require("./commonds");
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
-
|
|
22
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
-
|
|
24
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
25
|
-
|
|
26
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
|
-
|
|
28
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
|
-
|
|
30
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
|
-
|
|
32
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
33
|
-
|
|
34
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
35
|
-
|
|
36
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
37
|
-
|
|
38
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
39
|
-
|
|
40
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
|
-
|
|
42
|
-
var PLUGIN_NAME = 'heading';
|
|
43
|
-
|
|
44
|
-
var HeadingSchema = /*#__PURE__*/function (_BlockSchema) {
|
|
45
|
-
_inherits(HeadingSchema, _BlockSchema);
|
|
46
|
-
|
|
47
|
-
var _super = _createSuper(HeadingSchema);
|
|
48
|
-
|
|
49
|
-
function HeadingSchema() {
|
|
50
|
-
var _this;
|
|
51
|
-
|
|
52
|
-
_classCallCheck(this, HeadingSchema);
|
|
53
|
-
|
|
54
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
55
|
-
args[_key] = arguments[_key];
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.attrs = {
|
|
59
|
-
level: {
|
|
60
|
-
"default": 1
|
|
61
|
-
},
|
|
62
|
-
textAlign: {
|
|
63
|
-
"default": 'left'
|
|
64
|
-
}
|
|
65
|
-
}, _this.parseDOM = [{
|
|
66
|
-
tag: 'h1',
|
|
67
|
-
attrs: {
|
|
68
|
-
level: 1
|
|
69
|
-
}
|
|
70
|
-
}, {
|
|
71
|
-
tag: 'h2',
|
|
72
|
-
attrs: {
|
|
73
|
-
level: 2
|
|
74
|
-
}
|
|
75
|
-
}, {
|
|
76
|
-
tag: 'h3',
|
|
77
|
-
attrs: {
|
|
78
|
-
level: 3
|
|
79
|
-
}
|
|
80
|
-
}, {
|
|
81
|
-
tag: 'h4',
|
|
82
|
-
attrs: {
|
|
83
|
-
level: 4
|
|
84
|
-
}
|
|
85
|
-
}, {
|
|
86
|
-
tag: 'h5',
|
|
87
|
-
attrs: {
|
|
88
|
-
level: 5
|
|
89
|
-
}
|
|
90
|
-
}, {
|
|
91
|
-
tag: 'h6',
|
|
92
|
-
attrs: {
|
|
93
|
-
level: 6
|
|
94
|
-
}
|
|
95
|
-
}], _assertThisInitialized(_this)));
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
_createClass(HeadingSchema, [{
|
|
99
|
-
key: "toDOM",
|
|
100
|
-
value: function toDOM(node) {
|
|
101
|
-
return ["h".concat(node.attrs.level), {
|
|
102
|
-
style: "text-align:".concat(node.attrs["textAlign"])
|
|
103
|
-
}, 0];
|
|
104
|
-
}
|
|
105
|
-
}]);
|
|
106
|
-
|
|
107
|
-
return HeadingSchema;
|
|
108
|
-
}(_schema.BlockSchema);
|
|
109
|
-
|
|
110
|
-
exports.HeadingSchema = HeadingSchema;
|
|
111
|
-
|
|
112
|
-
var HeadingController = /*#__PURE__*/function (_BaseController) {
|
|
113
|
-
_inherits(HeadingController, _BaseController);
|
|
114
|
-
|
|
115
|
-
var _super2 = _createSuper(HeadingController);
|
|
116
|
-
|
|
117
|
-
function HeadingController() {
|
|
118
|
-
var _this2;
|
|
119
|
-
|
|
120
|
-
_classCallCheck(this, HeadingController);
|
|
121
|
-
|
|
122
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
123
|
-
args[_key2] = arguments[_key2];
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = [{
|
|
127
|
-
title: '一级标题',
|
|
128
|
-
icon: 'tu-icon-text-H1',
|
|
129
|
-
handler: function handler(editor) {
|
|
130
|
-
(0, _commonds.setHeadLine)(editor, 1);
|
|
131
|
-
editor.view.focus();
|
|
132
|
-
},
|
|
133
|
-
active: function active(state) {
|
|
134
|
-
return (0, _util.isBlockActive)(state, PLUGIN_NAME, {
|
|
135
|
-
level: 1
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
}, {
|
|
139
|
-
title: '二级标题',
|
|
140
|
-
icon: 'tu-icon-text-H2',
|
|
141
|
-
handler: function handler(editor) {
|
|
142
|
-
(0, _commonds.setHeadLine)(editor, 2);
|
|
143
|
-
editor.view.focus();
|
|
144
|
-
},
|
|
145
|
-
active: function active(state) {
|
|
146
|
-
return (0, _util.isBlockActive)(state, PLUGIN_NAME, {
|
|
147
|
-
level: 2
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
}, {
|
|
151
|
-
title: '三级标题',
|
|
152
|
-
icon: 'tu-icon-text-H3',
|
|
153
|
-
handler: function handler(editor) {
|
|
154
|
-
(0, _commonds.setHeadLine)(editor, 3);
|
|
155
|
-
editor.view.focus();
|
|
156
|
-
},
|
|
157
|
-
active: function active(state) {
|
|
158
|
-
return (0, _util.isBlockActive)(state, PLUGIN_NAME, {
|
|
159
|
-
level: 3
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
}], _assertThisInitialized(_this2)));
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
return _createClass(HeadingController);
|
|
166
|
-
}(_controller["default"]);
|
|
167
|
-
|
|
168
|
-
var HeadingPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
169
|
-
_inherits(HeadingPlugin, _BasePlugin);
|
|
170
|
-
|
|
171
|
-
var _super3 = _createSuper(HeadingPlugin);
|
|
172
|
-
|
|
173
|
-
function HeadingPlugin() {
|
|
174
|
-
var _this3;
|
|
175
|
-
|
|
176
|
-
_classCallCheck(this, HeadingPlugin);
|
|
177
|
-
|
|
178
|
-
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
179
|
-
args[_key3] = arguments[_key3];
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = HeadingSchema, _this3.controller = HeadingController, _assertThisInitialized(_this3)));
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
return _createClass(HeadingPlugin);
|
|
186
|
-
}(_plugin["default"]);
|
|
187
|
-
|
|
188
|
-
exports.HeadingPlugin = HeadingPlugin;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _blockQuote = require("./block-quote");
|
|
8
|
-
|
|
9
|
-
Object.keys(_blockQuote).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
if (key in exports && exports[key] === _blockQuote[key]) return;
|
|
12
|
-
Object.defineProperty(exports, key, {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _blockQuote[key];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
var _heading = require("./heading");
|
|
21
|
-
|
|
22
|
-
Object.keys(_heading).forEach(function (key) {
|
|
23
|
-
if (key === "default" || key === "__esModule") return;
|
|
24
|
-
if (key in exports && exports[key] === _heading[key]) return;
|
|
25
|
-
Object.defineProperty(exports, key, {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function get() {
|
|
28
|
-
return _heading[key];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
var _paragraph = require("./paragraph");
|
|
34
|
-
|
|
35
|
-
Object.keys(_paragraph).forEach(function (key) {
|
|
36
|
-
if (key === "default" || key === "__esModule") return;
|
|
37
|
-
if (key in exports && exports[key] === _paragraph[key]) return;
|
|
38
|
-
Object.defineProperty(exports, key, {
|
|
39
|
-
enumerable: true,
|
|
40
|
-
get: function get() {
|
|
41
|
-
return _paragraph[key];
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
var _lists = require("./lists");
|
|
47
|
-
|
|
48
|
-
Object.keys(_lists).forEach(function (key) {
|
|
49
|
-
if (key === "default" || key === "__esModule") return;
|
|
50
|
-
if (key in exports && exports[key] === _lists[key]) return;
|
|
51
|
-
Object.defineProperty(exports, key, {
|
|
52
|
-
enumerable: true,
|
|
53
|
-
get: function get() {
|
|
54
|
-
return _lists[key];
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
});
|