@mirrormedia/lilith-draft-editor 1.1.0-alpha.26 → 1.1.0-alpha.27
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.
|
@@ -67,6 +67,8 @@ var _postSelector = require("./selector/post-selector");
|
|
|
67
67
|
|
|
68
68
|
var _audioSelector = require("./selector/audio-selector");
|
|
69
69
|
|
|
70
|
+
var _sharedStyle = require("./shared-style");
|
|
71
|
+
|
|
70
72
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
71
73
|
|
|
72
74
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -273,6 +275,12 @@ const DraftEditorWrapper = _styledComponents.default.div`
|
|
|
273
275
|
padding: 0 1rem 1rem;
|
|
274
276
|
font-size: 18px;
|
|
275
277
|
line-height: 2;
|
|
278
|
+
letter-spacing: 0.3px;
|
|
279
|
+
|
|
280
|
+
.public-DraftStyleDefault-block {
|
|
281
|
+
${_sharedStyle.defaultMarginBottom}
|
|
282
|
+
}
|
|
283
|
+
|
|
276
284
|
/* Draft built-in buttons' style */
|
|
277
285
|
.public-DraftStyleDefault-header-two {
|
|
278
286
|
font-size: 36px;
|
|
@@ -287,10 +295,12 @@ const DraftEditorWrapper = _styledComponents.default.div`
|
|
|
287
295
|
.public-DraftStyleDefault-blockquote {
|
|
288
296
|
}
|
|
289
297
|
.public-DraftStyleDefault-ul {
|
|
298
|
+
${_sharedStyle.defaultMarginBottom}
|
|
290
299
|
}
|
|
291
300
|
.public-DraftStyleDefault-unorderedListItem {
|
|
292
301
|
}
|
|
293
302
|
.public-DraftStyleDefault-ol {
|
|
303
|
+
${_sharedStyle.defaultMarginBottom}
|
|
294
304
|
}
|
|
295
305
|
.public-DraftStyleDefault-orderedListItem {
|
|
296
306
|
}
|
|
@@ -803,6 +813,7 @@ class RichTextEditor extends _react.default.Component {
|
|
|
803
813
|
var _this$refs$editor;
|
|
804
814
|
|
|
805
815
|
// eslint-disable-next-line prettier/prettier
|
|
816
|
+
;
|
|
806
817
|
(_this$refs$editor = this.refs.editor) === null || _this$refs$editor === void 0 ? void 0 : _this$refs$editor.focus();
|
|
807
818
|
}
|
|
808
819
|
}, /*#__PURE__*/_react.default.createElement(_draftJs.Editor, {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.defaultMarginTop = exports.defaultMarginBottom = void 0;
|
|
7
|
+
|
|
8
|
+
var _styledComponents = require("styled-components");
|
|
9
|
+
|
|
10
|
+
const defaultMarginTop = (0, _styledComponents.css)`
|
|
11
|
+
margin-top: 32px;
|
|
12
|
+
`;
|
|
13
|
+
exports.defaultMarginTop = defaultMarginTop;
|
|
14
|
+
const defaultMarginBottom = (0, _styledComponents.css)`
|
|
15
|
+
margin-bottom: 32px;
|
|
16
|
+
`;
|
|
17
|
+
exports.defaultMarginBottom = defaultMarginBottom;
|