@makeen.io/material-ui-kit
Version:
Makeen UI components kit. Based on material-ui.
27 lines (26 loc) • 2.04 kB
JavaScript
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";import _inherits from "@babel/runtime/helpers/inherits";import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";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);};}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;}}import { Quill } from "react-quill";
var Delta = Quill.import("delta");
var Break = Quill.import("blots/break");
var Embed = Quill.import("blots/embed");
export var lineBreakMatcher = function lineBreakMatcher() {
var newDelta = new Delta();
newDelta.insert({ break: "" });
return newDelta;
};var
SmartBreak = /*#__PURE__*/function (_Break) {_inherits(SmartBreak, _Break);var _super = _createSuper(SmartBreak);
function SmartBreak() {var _this;_classCallCheck(this, SmartBreak);
_this = _super.apply(this, arguments);
_this.length = function () {
return 1;
};
_this.value = function () {
return "\n";
};
_this.insertInto = function (parent, ref) {
Embed.prototype.insertInto.call(_assertThisInitialized(_this), parent, ref);
};return _this;
}return SmartBreak;}(Break);
SmartBreak.blotName = "break";
SmartBreak.tagName = "BR";
export default SmartBreak;
//# sourceMappingURL=smartBreak.js.map