Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

update quill

ammarahm-edbe337c28fae1
diff --git a/apps/mobile/android/app/src/main/assets/texteditor.html b/apps/mobile/android/app/src/main/assets/texteditor.html
index a64153438..8afa0cd7e 100644
--- a/apps/mobile/android/app/src/main/assets/texteditor.html
+++ b/apps/mobile/android/app/src/main/assets/texteditor.html
@@ -660,7 +660,6 @@
text-decoration: underline;
}
-
.ql-snow .ql-editor pre {
white-space: pre-wrap;
margin-bottom: 5px;
@@ -1140,10 +1139,6 @@
document.body.appendChild(node);
Quill.register("modules/imageCompressor", imageCompressor);
-
-
-
-
const editor = new Quill('#editor', {
modules: {
toolbar: [
@@ -1229,12 +1224,6 @@
window.ReactNativeWebView.postMessage(JSON.stringify(titleMessage));
}
-
-
-
-
-
-
function onChangetitle() {
editor.focus();
@@ -1243,14 +1232,7 @@
value: document.getElementById('titleInput').value
}
window.ReactNativeWebView.postMessage(JSON.stringify(titleMessage));
-
-
-
}
-
-
-
-
const setTheme = function () {
@@ -1780,12 +1762,13 @@
}, { "quill": 2 }], 2: [function (require, module, exports) {
(function (Buffer) {
+
/*!
- * Quill Editor v1.3.6
- * https://quilljs.com/
- * Copyright (c) 2014, Jason Chen
- * Copyright (c) 2013, salesforce.com
- */
+ * Quill Editor v1.3.7
+ * https://quilljs.com/
+ * Copyright (c) 2014, Jason Chen
+ * Copyright (c) 2013, salesforce.com
+ */
(function webpackUniversalModuleDefinition(root, factory) {
if (typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
@@ -1865,7 +1848,7 @@
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
-/******/ return __webpack_require__(__webpack_require__.s = 109);
+/******/ return __webpack_require__(__webpack_require__.s = 133);
/******/
})
/************************************************************************/
@@ -1879,16 +1862,16 @@
var container_1 = __webpack_require__(17);
var format_1 = __webpack_require__(18);
var leaf_1 = __webpack_require__(19);
- var scroll_1 = __webpack_require__(45);
- var inline_1 = __webpack_require__(46);
- var block_1 = __webpack_require__(47);
- var embed_1 = __webpack_require__(48);
- var text_1 = __webpack_require__(49);
+ var scroll_1 = __webpack_require__(51);
+ var inline_1 = __webpack_require__(52);
+ var block_1 = __webpack_require__(53);
+ var embed_1 = __webpack_require__(54);
+ var text_1 = __webpack_require__(55);
var attributor_1 = __webpack_require__(12);
- var class_1 = __webpack_require__(32);
- var style_1 = __webpack_require__(33);
- var store_1 = __webpack_require__(31);
- var Registry = __webpack_require__(1);
+ var class_1 = __webpack_require__(34);
+ var style_1 = __webpack_require__(35);
+ var store_1 = __webpack_require__(33);
+ var Registry = __webpack_require__(2);
var Parchment = {
Scope: Registry.Scope,
create: Registry.create,
@@ -1918,166 +1901,10 @@
/* 1 */
/***/ (function (module, exports, __webpack_require__) {
- "use strict";
-
- var __extends = (this && this.__extends) || (function () {
- var extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
- return function (d, b) {
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
- })();
- Object.defineProperty(exports, "__esModule", { value: true });
- var ParchmentError = /** @class */ (function (_super) {
- __extends(ParchmentError, _super);
- function ParchmentError(message) {
- var _this = this;
- message = '[Parchment] ' + message;
- _this = _super.call(this, message) || this;
- _this.message = message;
- _this.name = _this.constructor.name;
- return _this;
- }
- return ParchmentError;
- }(Error));
- exports.ParchmentError = ParchmentError;
- var attributes = {};
- var classes = {};
- var tags = {};
- var types = {};
- exports.DATA_KEY = '__blot';
- var Scope;
- (function (Scope) {
- Scope[Scope["TYPE"] = 3] = "TYPE";
- Scope[Scope["LEVEL"] = 12] = "LEVEL";
- Scope[Scope["ATTRIBUTE"] = 13] = "ATTRIBUTE";
- Scope[Scope["BLOT"] = 14] = "BLOT";
- Scope[Scope["INLINE"] = 7] = "INLINE";
- Scope[Scope["BLOCK"] = 11] = "BLOCK";
- Scope[Scope["BLOCK_BLOT"] = 10] = "BLOCK_BLOT";
- Scope[Scope["INLINE_BLOT"] = 6] = "INLINE_BLOT";
- Scope[Scope["BLOCK_ATTRIBUTE"] = 9] = "BLOCK_ATTRIBUTE";
- Scope[Scope["INLINE_ATTRIBUTE"] = 5] = "INLINE_ATTRIBUTE";
- Scope[Scope["ANY"] = 15] = "ANY";
- })(Scope = exports.Scope || (exports.Scope = {}));
- function create(input, value) {
- var match = query(input);
- if (match == null) {
- throw new ParchmentError("Unable to create " + input + " blot");
- }
- var BlotClass = match;
- var node =
- // @ts-ignore
- input instanceof Node || input['nodeType'] === Node.TEXT_NODE ? input : BlotClass.create(value);
- return new BlotClass(node, value);
- }
- exports.create = create;
- function find(node, bubble) {
- if (bubble === void 0) { bubble = false; }
- if (node == null)
- return null;
- // @ts-ignore
- if (node[exports.DATA_KEY] != null)
- return node[exports.DATA_KEY].blot;
- if (bubble)
- return find(node.parentNode, bubble);
- return null;
- }
- exports.find = find;
- function query(query, scope) {
- if (scope === void 0) { scope = Scope.ANY; }
- var match;
- if (typeof query === 'string') {
- match = types[query] || attributes[query];
- // @ts-ignore
- }
- else if (query instanceof Text || query['nodeType'] === Node.TEXT_NODE) {
- match = types['text'];
- }
- else if (typeof query === 'number') {
- if (query & Scope.LEVEL & Scope.BLOCK) {
- match = types['block'];
- }
- else if (query & Scope.LEVEL & Scope.INLINE) {
- match = types['inline'];
- }
- }
- else if (query instanceof HTMLElement) {
- var names = (query.getAttribute('class') || '').split(/\s+/);
- for (var i in names) {
- match = classes[names[i]];
- if (match)
- break;
- }
- match = match || tags[query.tagName];
- }
- if (match == null)
- return null;
- // @ts-ignore
- if (scope & Scope.LEVEL & match.scope && scope & Scope.TYPE & match.scope)
- return match;
- return null;
- }
- exports.query = query;
- function register() {
- var Definitions = [];
- for (var _i = 0; _i < arguments.length; _i++) {
- Definitions[_i] = arguments[_i];
- }
- if (Definitions.length > 1) {
- return Definitions.map(function (d) {
- return register(d);
- });
- }
- var Definition = Definitions[0];
- if (typeof Definition.blotName !== 'string' && typeof Definition.attrName !== 'string') {
- throw new ParchmentError('Invalid definition');
- }
- else if (Definition.blotName === 'abstract') {
- throw new ParchmentError('Cannot register abstract class');
- }
- types[Definition.blotName || Definition.attrName] = Definition;
- if (typeof Definition.keyName === 'string') {
- attributes[Definition.keyName] = Definition;
- }
- else {
- if (Definition.className != null) {
- classes[Definition.className] = Definition;
- }
- if (Definition.tagName != null) {
- if (Array.isArray(Definition.tagName)) {
- Definition.tagName = Definition.tagName.map(function (tagName) {
- return tagName.toUpperCase();
- });
- }
- else {
- Definition.tagName = Definition.tagName.toUpperCase();
- }
- var tagNames = Array.isArray(Definition.tagName) ? Definition.tagName : [Definition.tagName];
- tagNames.forEach(function (tag) {
- if (tags[tag] == null || Definition.className == null) {
- tags[tag] = Definition;
- }
- });
- }
- }
- return Definition;
- }
- exports.register = register;
-
-
- /***/
- }),
-/* 2 */
-/***/ (function (module, exports, __webpack_require__) {
-
- var diff = __webpack_require__(51);
+ var diff = __webpack_require__(57);
var equal = __webpack_require__(11);
var extend = __webpack_require__(3);
- var op = __webpack_require__(20);
+ var op = __webpack_require__(22);
var NULL_CHARACTER = String.fromCharCode(0); // Placeholder char for embed in diff()
@@ -2231,7 +2058,19 @@
Delta.prototype.compose = function (other) {
var thisIter = op.iterator(this.ops);
var otherIter = op.iterator(other.ops);
- var delta = new Delta();
+ var ops = [];
+ var firstOther = otherIter.peek();
+ if (firstOther != null && typeof firstOther.retain === 'number' && firstOther.attributes == null) {
+ var firstLeft = firstOther.retain;
+ while (thisIter.peekType() === 'insert' && thisIter.peekLength() <= firstLeft) {
+ firstLeft -= thisIter.peekLength();
+ ops.push(thisIter.next());
+ }
+ if (firstOther.retain - firstLeft > 0) {
+ otherIter.next(firstOther.retain - firstLeft);
+ }
+ }
+ var delta = new Delta(ops);
while (thisIter.hasNext() || otherIter.hasNext()) {
if (otherIter.peekType() === 'insert') {
delta.push(otherIter.next());
@@ -2252,6 +2091,13 @@
var attributes = op.attributes.compose(thisOp.attributes, otherOp.attributes, typeof thisOp.retain === 'number');
if (attributes) newOp.attributes = attributes;
delta.push(newOp);
+
+ // Optimization if rest of other is just retain
+ if (!otherIter.hasNext() && equal(delta.ops[delta.ops.length - 1], newOp)) {
+ var rest = new Delta(thisIter.rest());
+ return delta.concat(rest).chop();
+ }
+
// Other op should be delete, we could be an insert or retain
// Insert + delete cancels out
} else if (typeof otherOp['delete'] === 'number' && typeof thisOp.retain === 'number') {
@@ -2375,30 +2221,186 @@
}
}
}
- return delta.chop();
- };
-
- Delta.prototype.transformPosition = function (index, priority) {
- priority = !!priority;
- var thisIter = op.iterator(this.ops);
- var offset = 0;
- while (thisIter.hasNext() && offset <= index) {
- var length = thisIter.peekLength();
- var nextType = thisIter.peekType();
- thisIter.next();
- if (nextType === 'delete') {
- index -= Math.min(length, index - offset);
- continue;
- } else if (nextType === 'insert' && (offset < index || !priority)) {
- index += length;
- }
- offset += length;
- }
- return index;
- };
-
-
- module.exports = Delta;
+ return delta.chop();
+ };
+
+ Delta.prototype.transformPosition = function (index, priority) {
+ priority = !!priority;
+ var thisIter = op.iterator(this.ops);
+ var offset = 0;
+ while (thisIter.hasNext() && offset <= index) {
+ var length = thisIter.peekLength();
+ var nextType = thisIter.peekType();
+ thisIter.next();
+ if (nextType === 'delete') {
+ index -= Math.min(length, index - offset);
+ continue;
+ } else if (nextType === 'insert' && (offset < index || !priority)) {
+ index += length;
+ }
+ offset += length;
+ }
+ return index;
+ };
+
+
+ module.exports = Delta;
+
+
+ /***/
+ }),
+/* 2 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+ var __extends = (this && this.__extends) || (function () {
+ var extendStatics = Object.setPrototypeOf ||
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
+ return function (d, b) {
+ extendStatics(d, b);
+ function __() { this.constructor = d; }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+ };
+ })();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ var ParchmentError = /** @class */ (function (_super) {
+ __extends(ParchmentError, _super);
+ function ParchmentError(message) {
+ var _this = this;
+ message = '[Parchment] ' + message;
+ _this = _super.call(this, message) || this;
+ _this.message = message;
+ _this.name = _this.constructor.name;
+ return _this;
+ }
+ return ParchmentError;
+ }(Error));
+ exports.ParchmentError = ParchmentError;
+ var attributes = {};
+ var classes = {};
+ var tags = {};
+ var types = {};
+ exports.DATA_KEY = '__blot';
+ var Scope;
+ (function (Scope) {
+ Scope[Scope["TYPE"] = 3] = "TYPE";
+ Scope[Scope["LEVEL"] = 12] = "LEVEL";
+ Scope[Scope["ATTRIBUTE"] = 13] = "ATTRIBUTE";
+ Scope[Scope["BLOT"] = 14] = "BLOT";
+ Scope[Scope["INLINE"] = 7] = "INLINE";
+ Scope[Scope["BLOCK"] = 11] = "BLOCK";
+ Scope[Scope["BLOCK_BLOT"] = 10] = "BLOCK_BLOT";
+ Scope[Scope["INLINE_BLOT"] = 6] = "INLINE_BLOT";
+ Scope[Scope["BLOCK_ATTRIBUTE"] = 9] = "BLOCK_ATTRIBUTE";
+ Scope[Scope["INLINE_ATTRIBUTE"] = 5] = "INLINE_ATTRIBUTE";
+ Scope[Scope["ANY"] = 15] = "ANY";
+ })(Scope = exports.Scope || (exports.Scope = {}));
+ function create(input, value) {
+ var match = query(input);
+ if (match == null) {
+ throw new ParchmentError("Unable to create " + input + " blot");
+ }
+ var BlotClass = match;
+ var node =
+ // @ts-ignore
+ input instanceof Node || input['nodeType'] === Node.TEXT_NODE ? input : BlotClass.create(value);
+ return new BlotClass(node, value);
+ }
+ exports.create = create;
+ function find(node, bubble) {
+ if (bubble === void 0) { bubble = false; }
+ if (node == null)
+ return null;
+ // @ts-ignore
+ if (node[exports.DATA_KEY] != null)
+ return node[exports.DATA_KEY].blot;
+ if (bubble)
+ return find(node.parentNode, bubble);
+ return null;
+ }
+ exports.find = find;
+ function query(query, scope) {
+ if (scope === void 0) { scope = Scope.ANY; }
+ var match;
+ if (typeof query === 'string') {
+ match = types[query] || attributes[query];
+ // @ts-ignore
+ }
+ else if (query instanceof Text || query['nodeType'] === Node.TEXT_NODE) {
+ match = types['text'];
+ }
+ else if (typeof query === 'number') {
+ if (query & Scope.LEVEL & Scope.BLOCK) {
+ match = types['block'];
+ }
+ else if (query & Scope.LEVEL & Scope.INLINE) {
+ match = types['inline'];
+ }
+ }
+ else if (query instanceof HTMLElement) {
+ var names = (query.getAttribute('class') || '').split(/\s+/);
+ for (var i in names) {
+ match = classes[names[i]];
+ if (match)
+ break;
+ }
+ match = match || tags[query.tagName];
+ }
+ if (match == null)
+ return null;
+ // @ts-ignore
+ if (scope & Scope.LEVEL & match.scope && scope & Scope.TYPE & match.scope)
+ return match;
+ return null;
+ }
+ exports.query = query;
+ function register() {
+ var Definitions = [];
+ for (var _i = 0; _i < arguments.length; _i++) {
+ Definitions[_i] = arguments[_i];
+ }
+ if (Definitions.length > 1) {
+ return Definitions.map(function (d) {
+ return register(d);
+ });
+ }
+ var Definition = Definitions[0];
+ if (typeof Definition.blotName !== 'string' && typeof Definition.attrName !== 'string') {
+ throw new ParchmentError('Invalid definition');
+ }
+ else if (Definition.blotName === 'abstract') {
+ throw new ParchmentError('Cannot register abstract class');
+ }
+ types[Definition.blotName || Definition.attrName] = Definition;
+ if (typeof Definition.keyName === 'string') {
+ attributes[Definition.keyName] = Definition;
+ }
+ else {
+ if (Definition.className != null) {
+ classes[Definition.className] = Definition;
+ }
+ if (Definition.tagName != null) {
+ if (Array.isArray(Definition.tagName)) {
+ Definition.tagName = Definition.tagName.map(function (tagName) {
+ return tagName.toUpperCase();
+ });
+ }
+ else {
+ Definition.tagName = Definition.tagName.toUpperCase();
+ }
+ var tagNames = Array.isArray(Definition.tagName) ? Definition.tagName : [Definition.tagName];
+ tagNames.forEach(function (tag) {
+ if (tags[tag] == null || Definition.className == null) {
+ tags[tag] = Definition;
+ }
+ });
+ }
+ }
+ return Definition;
+ }
+ exports.register = register;
/***/
@@ -2410,6 +2412,8 @@
var hasOwn = Object.prototype.hasOwnProperty;
var toStr = Object.prototype.toString;
+ var defineProperty = Object.defineProperty;
+ var gOPD = Object.getOwnPropertyDescriptor;
var isArray = function isArray(arr) {
if (typeof Array.isArray === 'function') {
@@ -2439,6 +2443,35 @@
return typeof key === 'undefined' || hasOwn.call(obj, key);
};
+ // If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target
+ var setProperty = function setProperty(target, options) {
+ if (defineProperty && options.name === '__proto__') {
+ defineProperty(target, options.name, {
+ enumerable: true,
+ configurable: true,
+ value: options.newValue,
+ writable: true
+ });
+ } else {
+ target[options.name] = options.newValue;
+ }
+ };
+
+ // Return undefined instead of __proto__ if '__proto__' is not an own property
+ var getProperty = function getProperty(obj, name) {
+ if (name === '__proto__') {
+ if (!hasOwn.call(obj, name)) {
+ return void 0;
+ } else if (gOPD) {
+ // In early versions of node, obj['__proto__'] is buggy when obj has
+ // __proto__ as an own property. Object.getOwnPropertyDescriptor() works.
+ return gOPD(obj, name).value;
+ }
+ }
+
+ return obj[name];
+ };
+
module.exports = function extend() {
var options, name, src, copy, copyIsArray, clone;
var target = arguments[0];
@@ -2463,8 +2496,8 @@
if (options != null) {
// Extend the base object
for (name in options) {
- src = target[name];
- copy = options[name];
+ src = getProperty(target, name);
+ copy = getProperty(options, name);
// Prevent never-ending loop
if (target !== copy) {
@@ -2478,11 +2511,11 @@
}
// Never move original objects, clone them
- target[name] = extend(deep, clone, copy);
+ setProperty(target, { name: name, newValue: extend(deep, clone, copy) });
// Don't bring in undefined values
} else if (typeof copy !== 'undefined') {
- target[name] = copy;
+ setProperty(target, { name: name, newValue: copy });
}
}
}
@@ -2515,7 +2548,7 @@
var _extend2 = _interopRequireDefault(_extend);
- var _quillDelta = __webpack_require__(2);
+ var _quillDelta = __webpack_require__(1);
var _quillDelta2 = _interopRequireDefault(_quillDelta);
@@ -2764,7 +2797,7 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
- exports.default = exports.overload = exports.expandConfig = undefined;
+ exports.DeltaTransformer = exports.default = exports.overload = exports.expandConfig = undefined;
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
@@ -2772,9 +2805,9 @@
var _createClass = function () { 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
- __webpack_require__(50);
+ __webpack_require__(56);
- var _quillDelta = __webpack_require__(2);
+ var _quillDelta = __webpack_require__(1);
var _quillDelta2 = _interopRequireDefault(_quillDelta);
@@ -2806,52 +2839,56 @@
var _logger2 = _interopRequireDefault(_logger);
- var _theme = __webpack_require__(34);
+ var _theme = __webpack_require__(40);
var _theme2 = _interopRequireDefault(_theme);
+ var _delta = __webpack_require__(73);
+
+ var _delta2 = _interopRequireDefault(_delta);
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- var debug = (0, _logger2.default)('quill');
+ var debug = (0, _logger2.default)("quill");
var Quill = function () {
_createClass(Quill, null, [{
- key: 'debug',
+ key: "debug",
value: function debug(limit) {
if (limit === true) {
- limit = 'log';
+ limit = "log";
}
_logger2.default.level(limit);
}
}, {
- key: 'find',
+ key: "find",
value: function find(node) {
return node.__quill || _parchment2.default.find(node);
}
}, {
- key: 'import',
+ key: "import",
value: function _import(name) {
if (this.imports[name] == null) {
- debug.error('Cannot import ' + name + '. Are you sure it was registered?');
+ debug.error("Cannot import " + name + ". Are you sure it was registered?");
}
return this.imports[name];
}
}, {
- key: 'register',
+ key: "register",
value: function register(path, target) {
var _this = this;
var overwrite = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
- if (typeof path !== 'string') {
+ if (typeof path !== "string") {
var name = path.attrName || path.blotName;
- if (typeof name === 'string') {
+ if (typeof name === "string") {
// register(Blot | Attributor, overwrite)
- this.register('formats/' + name, path, target);
+ this.register("formats/" + name, path, target);
} else {
Object.keys(path).forEach(function (key) {
_this.register(key, path[key], target);
@@ -2859,12 +2896,12 @@
}
} else {
if (this.imports[path] != null && !overwrite) {
- debug.warn('Overwriting ' + path + ' with', target);
+ debug.warn("Overwriting " + path + " with", target);
}
this.imports[path] = target;
- if ((path.startsWith('blots/') || path.startsWith('formats/')) && target.blotName !== 'abstract') {
+ if ((path.startsWith("blots/") || path.startsWith("formats/")) && target.blotName !== "abstract") {
_parchment2.default.register(target);
- } else if (path.startsWith('modules') && typeof target.register === 'function') {
+ } else if (path.startsWith("modules") && typeof target.register === "function") {
target.register();
}
}
@@ -2881,18 +2918,18 @@
this.options = expandConfig(container, options);
this.container = this.options.container;
if (this.container == null) {
- return debug.error('Invalid Quill container', container);
+ return debug.error("Invalid Quill container", container);
}
if (this.options.debug) {
Quill.debug(this.options.debug);
}
var html = this.container.innerHTML.trim();
- this.container.classList.add('ql-container');
- this.container.innerHTML = '';
+ this.container.classList.add("ql-container");
+ this.container.innerHTML = "";
this.container.__quill = this;
- this.root = this.addContainer('ql-editor');
- this.root.classList.add('ql-blank');
- this.root.setAttribute('data-gramm', false);
+ this.root = this.addContainer("ql-editor");
+ this.root.classList.add("ql-blank");
+ this.root.setAttribute("data-gramm", false);
this.scrollingContainer = this.options.scrollingContainer || this.root;
this.emitter = new _emitter4.default();
this.scroll = _parchment2.default.create(this.root, {
@@ -2902,13 +2939,13 @@
this.editor = new _editor2.default(this.scroll);
this.selection = new _selection2.default(this.scroll, this.emitter);
this.theme = new this.options.theme(this, this.options);
- this.keyboard = this.theme.addModule('keyboard');
- this.clipboard = this.theme.addModule('clipboard');
- this.history = this.theme.addModule('history');
+ this.keyboard = this.theme.addModule("keyboard");
+ this.clipboard = this.theme.addModule("clipboard");
+ this.history = this.theme.addModule("history");
this.theme.init();
this.emitter.on(_emitter4.default.events.EDITOR_CHANGE, function (type) {
if (type === _emitter4.default.events.TEXT_CHANGE) {
- _this2.root.classList.toggle('ql-blank', _this2.editor.isBlank());
+ _this2.root.classList.toggle("ql-blank", _this2.editor.isBlank());
}
});
this.emitter.on(_emitter4.default.events.SCROLL_UPDATE, function (source, mutations) {
@@ -2918,11 +2955,11 @@
return _this2.editor.update(null, mutations, index);
}, source);
});
- var contents = this.clipboard.convert('<div class=\'ql-editor\' style="white-space: normal;">' + html + '<p><br></p></div>');
+ var contents = this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">" + html + "<p><br></p></div>");
this.setContents(contents);
this.history.clear();
if (this.options.placeholder) {
- this.root.setAttribute('data-placeholder', this.options.placeholder);
+ this.root.setAttribute("data-placeholder", this.options.placeholder);
}
if (this.options.readOnly) {
this.disable();
@@ -2930,25 +2967,25 @@
}
_createClass(Quill, [{
- key: 'addContainer',
+ key: "addContainer",
value: function addContainer(container) {
var refNode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
- if (typeof container === 'string') {
+ if (typeof container === "string") {
var className = container;
- container = document.createElement('div');
+ container = document.createElement("div");
container.classList.add(className);
}
this.container.insertBefore(container, refNode);
return container;
}
}, {
- key: 'blur',
+ key: "blur",
value: function blur() {
this.selection.setRange(null);
}
}, {
- key: 'deleteText',
+ key: "deleteText",
value: function deleteText(index, length, source) {
var _this3 = this;
@@ -2965,20 +3002,20 @@
}, source, index, -1 * length);
}
}, {
- key: 'disable',
+ key: "disable",
value: function disable() {
this.enable(false);
}
}, {
- key: 'enable',
+ key: "enable",
value: function enable() {
var enabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
this.scroll.enable(enabled);
- this.container.classList.toggle('ql-disabled', !enabled);
+ this.container.classList.toggle("ql-disabled", !enabled);
}
}, {
- key: 'focus',
+ key: "focus",
value: function focus() {
var scrollTop = this.scrollingContainer.scrollTop;
this.selection.focus();
@@ -2986,7 +3023,7 @@
this.scrollIntoView();
}
}, {
- key: 'format',
+ key: "format",
value: function format(name, value) {
var _this4 = this;
@@ -3010,7 +3047,7 @@
}, source);
}
}, {
- key: 'formatLine',
+ key: "formatLine",
value: function formatLine(index, length, name, value, source) {
var _this5 = this;
@@ -3030,7 +3067,7 @@
}, source, index, 0);
}
}, {
- key: 'formatText',
+ key: "formatText",
value: function formatText(index, length, name, value, source) {
var _this6 = this;
@@ -3050,12 +3087,12 @@
}, source, index, 0);
}
}, {
- key: 'getBounds',
+ key: "getBounds",
value: function getBounds(index) {
var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var bounds = void 0;
- if (typeof index === 'number') {
+ if (typeof index === "number") {
bounds = this.selection.getBounds(index, length);
} else {
bounds = this.selection.getBounds(index.index, index.length);
@@ -3071,7 +3108,7 @@
};
}
}, {
- key: 'getContents',
+ key: "getContents",
value: function getContents() {
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getLength() - index;
@@ -3086,56 +3123,56 @@
return this.editor.getContents(index, length);
}
}, {
- key: 'getFormat',
+ key: "getFormat",
value: function getFormat() {
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.getSelection(true);
var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
- if (typeof index === 'number') {
+ if (typeof index === "number") {
return this.editor.getFormat(index, length);
} else {
return this.editor.getFormat(index.index, index.length);
}
}
}, {
- key: 'getIndex',
+ key: "getIndex",
value: function getIndex(blot) {
return blot.offset(this.scroll);
}
}, {
- key: 'getLength',
+ key: "getLength",
value: function getLength() {
return this.scroll.length();
}
}, {
- key: 'getLeaf',
+ key: "getLeaf",
value: function getLeaf(index) {
return this.scroll.leaf(index);
}
}, {
- key: 'getLine',
+ key: "getLine",
value: function getLine(index) {
return this.scroll.line(index);
}
}, {
- key: 'getLines',
+ key: "getLines",
value: function getLines() {
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.MAX_VALUE;
- if (typeof index !== 'number') {
+ if (typeof index !== "number") {
return this.scroll.lines(index.index, index.length);
} else {
return this.scroll.lines(index, length);
}
}
}, {
- key: 'getModule',
+ key: "getModule",
value: function getModule(name) {
return this.theme.modules[name];
}
}, {
- key: 'getSelection',
+ key: "getSelection",
value: function getSelection() {
var focus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
@@ -3144,7 +3181,7 @@
return this.selection.getRange()[0];
}
}, {
- key: 'getText',
+ key: "getText",
value: function getText() {
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getLength() - index;
@@ -3159,12 +3196,12 @@
return this.editor.getText(index, length);
}
}, {
- key: 'hasFocus',
+ key: "hasFocus",
value: function hasFocus() {
return this.selection.hasFocus();
}
}, {
- key: 'insertEmbed',
+ key: "insertEmbed",
value: function insertEmbed(index, embed, value) {
var _this7 = this;
@@ -3175,7 +3212,7 @@
}, source, index);
}
}, {
- key: 'insertText',
+ key: "insertText",
value: function insertText(index, text, name, value, source) {
var _this8 = this;
@@ -3194,32 +3231,32 @@
}, source, index, text.length);
}
}, {
- key: 'isEnabled',
+ key: "isEnabled",
value: function isEnabled() {
- return !this.container.classList.contains('ql-disabled');
+ return !this.container.classList.contains("ql-disabled");
}
}, {
- key: 'off',
+ key: "off",
value: function off() {
return this.emitter.off.apply(this.emitter, arguments);
}
}, {
- key: 'on',
+ key: "on",
value: function on() {
return this.emitter.on.apply(this.emitter, arguments);
}
}, {
- key: 'once',
+ key: "once",
value: function once() {
return this.emitter.once.apply(this.emitter, arguments);
}
}, {
- key: 'pasteHTML',
+ key: "pasteHTML",
value: function pasteHTML(index, html, source) {
this.clipboard.dangerouslyPasteHTML(index, html, source);
}
}, {
- key: 'removeFormat',
+ key: "removeFormat",
value: function removeFormat(index, length, source) {
var _this9 = this;
@@ -3236,12 +3273,12 @@
}, source, index);
}
}, {
- key: 'scrollIntoView',
+ key: "scrollIntoView",
value: function scrollIntoView() {
this.selection.scrollIntoView(this.scrollingContainer);
}
}, {
- key: 'setContents',
+ key: "setContents",
value: function setContents(delta) {
var _this10 = this;
@@ -3253,7 +3290,7 @@
var deleted = _this10.editor.deleteText(0, length);
var applied = _this10.editor.applyDelta(delta);
var lastOp = applied.ops[applied.ops.length - 1];
- if (lastOp != null && typeof lastOp.insert === 'string' && lastOp.insert[lastOp.insert.length - 1] === '\n') {
+ if (lastOp != null && typeof lastOp.insert === "string" && lastOp.insert[lastOp.insert.length - 1] === "\n") {
_this10.editor.deleteText(_this10.getLength() - 1, 1);
applied.delete(1);
}
@@ -3262,7 +3299,7 @@
}, source);
}
}, {
- key: 'setSelection',
+ key: "setSelection",
value: function setSelection(index, length, source) {
if (index == null) {
this.selection.setRange(null, length || Quill.sources.API);
@@ -3282,7 +3319,7 @@
}
}
}, {
- key: 'setText',
+ key: "setText",
value: function setText(text) {
var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _emitter4.default.sources.API;
@@ -3290,7 +3327,7 @@
return this.setContents(delta, source);
}
}, {
- key: 'update',
+ key: "update",
value: function update() {
var source = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _emitter4.default.sources.USER;
@@ -3299,7 +3336,7 @@
return change;
}
}, {
- key: 'updateContents',
+ key: "updateContents",
value: function updateContents(delta) {
var _this11 = this;
@@ -3319,22 +3356,22 @@
bounds: null,
formats: null,
modules: {},
- placeholder: '',
+ placeholder: "",
readOnly: false,
scrollingContainer: null,
strict: true,
- theme: 'default'
+ theme: "default"
};
Quill.events = _emitter4.default.events;
Quill.sources = _emitter4.default.sources;
// eslint-disable-next-line no-undef
- Quill.version = false ? 'dev' : "1.3.6";
+ Quill.version = false ? "dev" : "1.3.7";
Quill.imports = {
- 'delta': _quillDelta2.default,
- 'parchment': _parchment2.default,
- 'core/module': _module2.default,
- 'core/theme': _theme2.default
+ delta: _quillDelta2.default,
+ parchment: _parchment2.default,
+ "core/module": _module2.default,
+ "core/theme": _theme2.default
};
function expandConfig(container, userConfig) {
@@ -3349,9 +3386,9 @@
if (!userConfig.theme || userConfig.theme === Quill.DEFAULTS.theme) {
userConfig.theme = _theme2.default;
} else {
- userConfig.theme = Quill.import('themes/' + userConfig.theme);
+ userConfig.theme = Quill.import("themes/" + userConfig.theme);
if (userConfig.theme == null) {
- throw new Error('Invalid theme ' + userConfig.theme + '. Did you register it?');
+ throw new Error("Invalid theme " + userConfig.theme + ". Did you register it?");
}
}
var themeConfig = (0, _extend2.default)(true, {}, userConfig.theme.DEFAULTS);
@@ -3365,9 +3402,9 @@
});
var moduleNames = Object.keys(themeConfig.modules).concat(Object.keys(userConfig.modules));
var moduleConfig = moduleNames.reduce(function (config, name) {
- var moduleClass = Quill.import('modules/' + name);
+ var moduleClass = Quill.import("modules/" + name);
if (moduleClass == null) {
- debug.error('Cannot load ' + name + ' module. Are you sure you registered it?');
+ debug.error("Cannot load " + name + " module. Are you sure you registered it?");
} else {
config[name] = moduleClass.DEFAULTS || {};
}
@@ -3380,8 +3417,8 @@
};
}
userConfig = (0, _extend2.default)(true, {}, Quill.DEFAULTS, { modules: moduleConfig }, themeConfig, userConfig);
- ['bounds', 'container', 'scrollingContainer'].forEach(function (key) {
- if (typeof userConfig[key] === 'string') {
+ ["bounds", "container", "scrollingContainer"].forEach(function (key) {
+ if (typeof userConfig[key] === "string") {
userConfig[key] = document.querySelector(userConfig[key]);
}
});
@@ -3428,21 +3465,21 @@
function overload(index, length, name, value, source) {
var formats = {};
- if (typeof index.index === 'number' && typeof index.length === 'number') {
+ if (typeof index.index === "number" && typeof index.length === "number") {
// Allow for throwaway end (used by insertText/insertEmbed)
- if (typeof length !== 'number') {
+ if (typeof length !== "number") {
source = value, value = name, name = length, length = index.length, index = index.index;
} else {
length = index.length, index = index.index;
}
- } else if (typeof length !== 'number') {
+ } else if (typeof length !== "number") {
source = value, value = name, name = length, length = 0;
}
// Handle format being object, two format name/value strings or excluded
- if ((typeof name === 'undefined' ? 'undefined' : _typeof(name)) === 'object') {
+ if ((typeof name === "undefined" ? "undefined" : _typeof(name)) === "object") {
formats = name;
source = value;
- } else if (typeof name === 'string') {
+ } else if (typeof name === "string") {
if (value != null) {
formats[name] = value;
} else {
@@ -3488,6 +3525,7 @@
exports.expandConfig = expandConfig;
exports.overload = overload;
exports.default = Quill;
+ exports.DeltaTransformer = _delta2.default;
/***/
}),
@@ -3634,7 +3672,7 @@
var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
- var _eventemitter = __webpack_require__(54);
+ var _eventemitter = __webpack_require__(72);
var _eventemitter2 = _interopRequireDefault(_eventemitter);
@@ -3806,33 +3844,38 @@
/* 11 */
/***/ (function (module, exports, __webpack_require__) {
- var pSlice = Array.prototype.slice;
- var objectKeys = __webpack_require__(52);
- var isArguments = __webpack_require__(53);
+ var objectKeys = __webpack_require__(36);
+ var isArguments = __webpack_require__(59);
+ var is = __webpack_require__(60);
+ var isRegex = __webpack_require__(61);
+ var flags = __webpack_require__(64);
+ var isDate = __webpack_require__(71);
- var deepEqual = module.exports = function (actual, expected, opts) {
- if (!opts) opts = {};
- // 7.1. All identical values are equivalent, as determined by ===.
- if (actual === expected) {
- return true;
+ var getTime = Date.prototype.getTime;
- } else if (actual instanceof Date && expected instanceof Date) {
- return actual.getTime() === expected.getTime();
+ function deepEqual(actual, expected, options) {
+ var opts = options || {};
- // 7.3. Other pairs that do not both pass typeof value == 'object',
- // equivalence is determined by ==.
- } else if (!actual || !expected || typeof actual != 'object' && typeof expected != 'object') {
- return opts.strict ? actual === expected : actual == expected;
+ // 7.1. All identical values are equivalent, as determined by ===.
+ if (opts.strict ? is(actual, expected) : actual === expected) {
+ return true;
+ }
- // 7.4. For all other Object pairs, including Array objects, equivalence is
- // determined by having the same number of owned properties (as verified
- // with Object.prototype.hasOwnProperty.call), the same set of keys
- // (although not necessarily the same order), equivalent values for every
- // corresponding key, and an identical 'prototype' property. Note: this
- // accounts for both named and indexed properties on Arrays.
- } else {
- return objEquiv(actual, expected, opts);
+ // 7.3. Other pairs that do not both pass typeof value == 'object', equivalence is determined by ==.
+ if (!actual || !expected || (typeof actual !== 'object' && typeof expected !== 'object')) {
+ return opts.strict ? is(actual, expected) : actual == expected;
}
+
+ /*
+ * 7.4. For all other Object pairs, including Array objects, equivalence is
+ * determined by having the same number of owned properties (as verified
+ * with Object.prototype.hasOwnProperty.call), the same set of keys
+ * (although not necessarily the same order), equivalent values for every
+ * corresponding key, and an identical 'prototype' property. Note: this
+ * accounts for both named and indexed properties on Arrays.
+ */
+ // eslint-disable-next-line no-use-before-define
+ return objEquiv(actual, expected, opts);
}
function isUndefinedOrNull(value) {
@@ -3840,67 +3883,80 @@
}
function isBuffer(x) {
- if (!x || typeof x !== 'object' || typeof x.length !== 'number') return false;
+ if (!x || typeof x !== 'object' || typeof x.length !== 'number') {
+ return false;
+ }
if (typeof x.copy !== 'function' || typeof x.slice !== 'function') {
return false;
}
- if (x.length > 0 && typeof x[0] !== 'number') return false;
+ if (x.length > 0 && typeof x[0] !== 'number') {
+ return false;
+ }
return true;
}
function objEquiv(a, b, opts) {
+ /* eslint max-statements: [2, 50] */
var i, key;
- if (isUndefinedOrNull(a) || isUndefinedOrNull(b))
- return false;
+ if (typeof a !== typeof b) { return false; }
+ if (isUndefinedOrNull(a) || isUndefinedOrNull(b)) { return false; }
+
// an identical 'prototype' property.
- if (a.prototype !== b.prototype) return false;
- //~~~I've managed to break Object.keys through screwy arguments passing.
- // Converting to array solves the problem.
- if (isArguments(a)) {
- if (!isArguments(b)) {
- return false;
- }
- a = pSlice.call(a);
- b = pSlice.call(b);
- return deepEqual(a, b, opts);
+ if (a.prototype !== b.prototype) { return false; }
+
+ if (isArguments(a) !== isArguments(b)) { return false; }
+
+ var aIsRegex = isRegex(a);
+ var bIsRegex = isRegex(b);
+ if (aIsRegex !== bIsRegex) { return false; }
+ if (aIsRegex || bIsRegex) {
+ return a.source === b.source && flags(a) === flags(b);
}
- if (isBuffer(a)) {
- if (!isBuffer(b)) {
- return false;
- }
- if (a.length !== b.length) return false;
+
+ if (isDate(a) && isDate(b)) {
+ return getTime.call(a) === getTime.call(b);
+ }
+
+ var aIsBuffer = isBuffer(a);
+ var bIsBuffer = isBuffer(b);
+ if (aIsBuffer !== bIsBuffer) { return false; }
+ if (aIsBuffer || bIsBuffer) { // && would work too, because both are true or both false here
+ if (a.length !== b.length) { return false; }
for (i = 0; i < a.length; i++) {
- if (a[i] !== b[i]) return false;
+ if (a[i] !== b[i]) { return false; }
}
return true;
}
+
+ if (typeof a !== typeof b) { return false; }
+
try {
- var ka = objectKeys(a),
- kb = objectKeys(b);
- } catch (e) {//happens when one is a string literal and the other isn't
+ var ka = objectKeys(a);
+ var kb = objectKeys(b);
+ } catch (e) { // happens when one is a string literal and the other isn't
return false;
}
- // having the same number of owned properties (keys incorporates
- // hasOwnProperty)
- if (ka.length != kb.length)
- return false;
- //the same set of keys (although not necessarily the same order),
+ // having the same number of owned properties (keys incorporates hasOwnProperty)
+ if (ka.length !== kb.length) { return false; }
+
+ // the same set of keys (although not necessarily the same order),
ka.sort();
kb.sort();
- //~~~cheap key test
+ // ~~~cheap key test
for (i = ka.length - 1; i >= 0; i--) {
- if (ka[i] != kb[i])
- return false;
+ if (ka[i] != kb[i]) { return false; }
}
- //equivalent values for every corresponding key, and
- //~~~possibly expensive deep test
+ // equivalent values for every corresponding key, and ~~~possibly expensive deep test
for (i = ka.length - 1; i >= 0; i--) {
key = ka[i];
- if (!deepEqual(a[key], b[key], opts)) return false;
+ if (!deepEqual(a[key], b[key], opts)) { return false; }
}
- return typeof a === typeof b;
+
+ return true;
}
+ module.exports = deepEqual;
+
/***/
}),
@@ -3910,7 +3966,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- var Registry = __webpack_require__(1);
+ var Registry = __webpack_require__(2);
var Attributor = /** @class */ (function () {
function Attributor(attrName, keyName, options) {
if (options === void 0) { options = {}; }
@@ -3985,7 +4041,7 @@
var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
- var _quillDelta = __webpack_require__(2);
+ var _quillDelta = __webpack_require__(1);
var _quillDelta2 = _interopRequireDefault(_quillDelta);
@@ -4187,11 +4243,11 @@
var _createClass = function () { 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
- var _quillDelta = __webpack_require__(2);
+ var _quillDelta = __webpack_require__(1);
var _quillDelta2 = _interopRequireDefault(_quillDelta);
- var _op = __webpack_require__(20);
+ var _op = __webpack_require__(22);
var _op2 = _interopRequireDefault(_op);
@@ -4203,7 +4259,7 @@
var _code2 = _interopRequireDefault(_code);
- var _cursor = __webpack_require__(24);
+ var _cursor = __webpack_require__(26);
var _cursor2 = _interopRequireDefault(_cursor);
@@ -4215,7 +4271,7 @@
var _break2 = _interopRequireDefault(_break);
- var _clone = __webpack_require__(21);
+ var _clone = __webpack_require__(23);
var _clone2 = _interopRequireDefault(_clone);
@@ -4559,7 +4615,7 @@
var _parchment2 = _interopRequireDefault(_parchment);
- var _clone = __webpack_require__(21);
+ var _clone = __webpack_require__(23);
var _clone2 = _interopRequireDefault(_clone);
@@ -5117,9 +5173,9 @@
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
- var linked_list_1 = __webpack_require__(44);
- var shadow_1 = __webpack_require__(30);
- var Registry = __webpack_require__(1);
+ var linked_list_1 = __webpack_require__(50);
+ var shadow_1 = __webpack_require__(32);
+ var Registry = __webpack_require__(2);
var ContainerBlot = /** @class */ (function (_super) {
__extends(ContainerBlot, _super);
function ContainerBlot(domNode) {
@@ -5385,9 +5441,9 @@
})();
Object.defineProperty(exports, "__esModule", { value: true });
var attributor_1 = __webpack_require__(12);
- var store_1 = __webpack_require__(31);
+ var store_1 = __webpack_require__(33);
var container_1 = __webpack_require__(17);
- var Registry = __webpack_require__(1);
+ var Registry = __webpack_require__(2);
var FormatBlot = /** @class */ (function (_super) {
__extends(FormatBlot, _super);
function FormatBlot(domNode) {
@@ -5467,8 +5523,8 @@
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
- var shadow_1 = __webpack_require__(30);
- var Registry = __webpack_require__(1);
+ var shadow_1 = __webpack_require__(32);
+ var Registry = __webpack_require__(2);
var LeafBlot = /** @class */ (function (_super) {
__extends(LeafBlot, _super);
function LeafBlot() {
@@ -5491,8 +5547,8 @@
return [this.parent.domNode, offset];
};
LeafBlot.prototype.value = function () {
- return _a = {}, _a[this.statics.blotName] = this.statics.value(this.domNode) || true, _a;
var _a;
+ return _a = {}, _a[this.statics.blotName] = this.statics.value(this.domNode) || true, _a;
};
LeafBlot.scope = Registry.Scope.INLINE_BLOT;
return LeafBlot;
@@ -5503,6 +5559,85 @@
/***/
}),
/* 20 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ var implementation = __webpack_require__(63);
+
+ module.exports = Function.prototype.bind || implementation;
+
+
+ /***/
+ }),
+/* 21 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ var keys = __webpack_require__(36);
+ var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
+
+ var toStr = Object.prototype.toString;
+ var concat = Array.prototype.concat;
+ var origDefineProperty = Object.defineProperty;
+
+ var isFunction = function (fn) {
+ return typeof fn === 'function' && toStr.call(fn) === '[object Function]';
+ };
+
+ var arePropertyDescriptorsSupported = function () {
+ var obj = {};
+ try {
+ origDefineProperty(obj, 'x', { enumerable: false, value: obj });
+ // eslint-disable-next-line no-unused-vars, no-restricted-syntax
+ for (var _ in obj) { // jscs:ignore disallowUnusedVariables
+ return false;
+ }
+ return obj.x === obj;
+ } catch (e) { /* this is IE 8. */
+ return false;
+ }
+ };
+ var supportsDescriptors = origDefineProperty && arePropertyDescriptorsSupported();
+
+ var defineProperty = function (object, name, value, predicate) {
+ if (name in object && (!isFunction(predicate) || !predicate())) {
+ return;
+ }
+ if (supportsDescriptors) {
+ origDefineProperty(object, name, {
+ configurable: true,
+ enumerable: false,
+ value: value,
+ writable: true
+ });
+ } else {
+ object[name] = value;
+ }
+ };
+
+ var defineProperties = function (object, map) {
+ var predicates = arguments.length > 2 ? arguments[2] : {};
+ var props = keys(map);
+ if (hasSymbols) {
+ props = concat.call(props, Object.getOwnPropertySymbols(map));
+ }
+ for (var i = 0; i < props.length; i += 1) {
+ defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
+ }
+ };
+
+ defineProperties.supportsDescriptors = !!supportsDescriptors;
+
+ module.exports = defineProperties;
+
+
+ /***/
+ }),
+/* 22 */
/***/ (function (module, exports, __webpack_require__) {
var equal = __webpack_require__(11);
@@ -5642,13 +5777,29 @@
return 'retain';
};
+ Iterator.prototype.rest = function () {
+ if (!this.hasNext()) {
+ return [];
+ } else if (this.offset === 0) {
+ return this.ops.slice(this.index);
+ } else {
+ var offset = this.offset;
+ var index = this.index;
+ var next = this.next();
+ var rest = this.ops.slice(this.index);
+ this.offset = offset;
+ this.index = index;
+ return [next].concat(rest);
+ }
+ };
+
module.exports = lib;
/***/
}),
-/* 21 */
+/* 23 */
/***/ (function (module, exports) {
var clone = (function () {
@@ -5757,7 +5908,13 @@
} else if (clone.__isDate(parent)) {
child = new Date(parent.getTime());
} else if (useBuffer && Buffer.isBuffer(parent)) {
- child = new Buffer(parent.length);
+ if (Buffer.allocUnsafe) {
+ // Node.js >= 4.5.0
+ child = Buffer.allocUnsafe(parent.length);
+ } else {
+ // Older Node.js versions
+ child = new Buffer(parent.length);
+ }
parent.copy(child);
return child;
} else if (_instanceof(parent, Error)) {
@@ -5906,7 +6063,7 @@
/***/
}),
-/* 22 */
+/* 24 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -5942,7 +6099,7 @@
var _code2 = _interopRequireDefault(_code);
- var _container = __webpack_require__(25);
+ var _container = __webpack_require__(27);
var _container2 = _interopRequireDefault(_container);
@@ -6160,7 +6317,7 @@
/***/
}),
-/* 23 */
+/* 25 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -6177,7 +6334,7 @@
var _createClass = function () { 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
- var _clone = __webpack_require__(21);
+ var _clone = __webpack_require__(23);
var _clone2 = _interopRequireDefault(_clone);
@@ -6189,11 +6346,11 @@
var _extend2 = _interopRequireDefault(_extend);
- var _quillDelta = __webpack_require__(2);
+ var _quillDelta = __webpack_require__(1);
var _quillDelta2 = _interopRequireDefault(_quillDelta);
- var _op = __webpack_require__(20);
+ var _op = __webpack_require__(22);
var _op2 = _interopRequireDefault(_op);
@@ -6767,7 +6924,7 @@
/***/
}),
-/* 24 */
+/* 26 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -6951,7 +7108,7 @@
/***/
}),
-/* 25 */
+/* 27 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -6995,7 +7152,7 @@
/***/
}),
-/* 26 */
+/* 28 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -7059,7 +7216,7 @@
/***/
}),
-/* 27 */
+/* 29 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -7108,6 +7265,7 @@
var node = _get(Link.__proto__ || Object.getPrototypeOf(Link), 'create', this).call(this, value);
value = this.sanitize(value);
node.setAttribute('href', value);
+ node.setAttribute('rel', 'noopener noreferrer');
node.setAttribute('target', '_blank');
return node;
}
@@ -7143,7 +7301,7 @@
/***/
}),
-/* 28 */
+/* 30 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -7157,13 +7315,13 @@
var _createClass = function () { 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
- var _keyboard = __webpack_require__(23);
+ var _keyboard = __webpack_require__(25);
var _keyboard2 = _interopRequireDefault(_keyboard);
- var _dropdown = __webpack_require__(107);
+ var _unfoldMoreHorizontal = __webpack_require__(131);
- var _dropdown2 = _interopRequireDefault(_dropdown);
+ var _unfoldMoreHorizontal2 = _interopRequireDefault(_unfoldMoreHorizontal);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -7172,7 +7330,7 @@
var optionsCounter = 0;
function toggleAriaAttribute(element, attribute) {
- element.setAttribute(attribute, !(element.getAttribute(attribute) === 'true'));
+ element.setAttribute(attribute, !(element.getAttribute(attribute) === "true"));
}
var Picker = function () {
@@ -7182,15 +7340,15 @@
_classCallCheck(this, Picker);
this.select = select;
- this.container = document.createElement('span');
+ this.container = document.createElement("span");
this.buildPicker();
- this.select.style.display = 'none';
+ this.select.style.display = "none";
this.select.parentNode.insertBefore(this.container, this.select);
- this.label.addEventListener('mousedown', function () {
+ this.label.addEventListener("mousedown", function () {
_this.togglePicker();
});
- this.label.addEventListener('keydown', function (event) {
+ this.label.addEventListener("keydown", function (event) {
switch (event.keyCode) {
// Allows the "Enter" key to open the picker
case _keyboard2.default.keys.ENTER:
@@ -7205,37 +7363,37 @@
default:
}
});
- this.select.addEventListener('change', this.update.bind(this));
+ this.select.addEventListener("change", this.update.bind(this));
}
_createClass(Picker, [{
- key: 'togglePicker',
+ key: "togglePicker",
value: function togglePicker() {
- this.container.classList.toggle('ql-expanded');
+ this.container.classList.toggle("ql-expanded");
// Toggle aria-expanded and aria-hidden to make the picker accessible
- toggleAriaAttribute(this.label, 'aria-expanded');
- toggleAriaAttribute(this.options, 'aria-hidden');
+ toggleAriaAttribute(this.label, "aria-expanded");
+ toggleAriaAttribute(this.options, "aria-hidden");
}
}, {
- key: 'buildItem',
+ key: "buildItem",
value: function buildItem(option) {
var _this2 = this;
- var item = document.createElement('span');
- item.tabIndex = '0';
- item.setAttribute('role', 'button');
+ var item = document.createElement("span");
+ item.tabIndex = "0";
+ item.setAttribute("role", "button");
- item.classList.add('ql-picker-item');
- if (option.hasAttribute('value')) {
- item.setAttribute('data-value', option.getAttribute('value'));
+ item.classList.add("ql-picker-item");
+ if (option.hasAttribute("value")) {
+ item.setAttribute("data-value", option.getAttribute("value"));
}
if (option.textContent) {
- item.setAttribute('data-label', option.textContent);
+ item.setAttribute("data-label", option.textContent);
}
- item.addEventListener('click', function () {
+ item.addEventListener("click", function () {
_this2.selectItem(item, true);
});
- item.addEventListener('keydown', function (event) {
+ item.addEventListener("keydown", function (event) {
switch (event.keyCode) {
// Allows the "Enter" key to select an item
case _keyboard2.default.keys.ENTER:
@@ -7255,33 +7413,33 @@
return item;
}
}, {
- key: 'buildLabel',
+ key: "buildLabel",
value: function buildLabel() {
- var label = document.createElement('span');
- label.classList.add('ql-picker-label');
- label.innerHTML = _dropdown2.default;
- label.tabIndex = '0';
- label.setAttribute('role', 'button');
- label.setAttribute('aria-expanded', 'false');
+ var label = document.createElement("span");
+ label.classList.add("ql-picker-label");
+ label.innerHTML = _unfoldMoreHorizontal2.default;
+ label.tabIndex = "0";
+ label.setAttribute("role", "button");
+ label.setAttribute("aria-expanded", "false");
this.container.appendChild(label);
return label;
}
}, {
- key: 'buildOptions',
+ key: "buildOptions",
value: function buildOptions() {
var _this3 = this;
- var options = document.createElement('span');
- options.classList.add('ql-picker-options');
+ var options = document.createElement("span");
+ options.classList.add("ql-picker-options");
// Don't want screen readers to read this until options are visible
- options.setAttribute('aria-hidden', 'true');
- options.tabIndex = '-1';
+ options.setAttribute("aria-hidden", "true");
+ options.tabIndex = "-1";
// Need a unique id for aria-controls
- options.id = 'ql-picker-options-' + optionsCounter;
+ options.id = "ql-picker-options-" + optionsCounter;
optionsCounter += 1;
- this.label.setAttribute('aria-controls', options.id);
+ this.label.setAttribute("aria-controls", options.id);
this.options = options;
@@ -7295,19 +7453,19 @@
this.container.appendChild(options);
}
}, {
- key: 'buildPicker',
+ key: "buildPicker",
value: function buildPicker() {
var _this4 = this;
[].slice.call(this.select.attributes).forEach(function (item) {
_this4.container.setAttribute(item.name, item.value);
});
- this.container.classList.add('ql-picker');
+ this.container.classList.add("ql-picker");
this.label = this.buildLabel();
this.buildOptions();
}
}, {
- key: 'escape',
+ key: "escape",
value: function escape() {
var _this5 = this;
@@ -7320,60 +7478,60 @@
}, 1);
}
}, {
- key: 'close',
+ key: "close",
value: function close() {
- this.container.classList.remove('ql-expanded');
- this.label.setAttribute('aria-expanded', 'false');
- this.options.setAttribute('aria-hidden', 'true');
+ this.container.classList.remove("ql-expanded");
+ this.label.setAttribute("aria-expanded", "false");
+ this.options.setAttribute("aria-hidden", "true");
}
}, {
- key: 'selectItem',
+ key: "selectItem",
value: function selectItem(item) {
var trigger = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- var selected = this.container.querySelector('.ql-selected');
+ var selected = this.container.querySelector(".ql-selected");
if (item === selected) return;
if (selected != null) {
- selected.classList.remove('ql-selected');
+ selected.classList.remove("ql-selected");
}
if (item == null) return;
- item.classList.add('ql-selected');
+ item.classList.add("ql-selected");
this.select.selectedIndex = [].indexOf.call(item.parentNode.children, item);
- if (item.hasAttribute('data-value')) {
- this.label.setAttribute('data-value', item.getAttribute('data-value'));
+ if (item.hasAttribute("data-value")) {
+ this.label.setAttribute("data-value", item.getAttribute("data-value"));
} else {
- this.label.removeAttribute('data-value');
+ this.label.removeAttribute("data-value");
}
- if (item.hasAttribute('data-label')) {
- this.label.setAttribute('data-label', item.getAttribute('data-label'));
+ if (item.hasAttribute("data-label")) {
+ this.label.setAttribute("data-label", item.getAttribute("data-label"));
} else {
- this.label.removeAttribute('data-label');
+ this.label.removeAttribute("data-label");
}
if (trigger) {
- if (typeof Event === 'function') {
- this.select.dispatchEvent(new Event('change'));
- } else if ((typeof Event === 'undefined' ? 'undefined' : _typeof(Event)) === 'object') {
+ if (typeof Event === "function") {
+ this.select.dispatchEvent(new Event("change"));
+ } else if ((typeof Event === "undefined" ? "undefined" : _typeof(Event)) === "object") {
// IE11
- var event = document.createEvent('Event');
- event.initEvent('change', true, true);
+ var event = document.createEvent("Event");
+ event.initEvent("change", true, true);
this.select.dispatchEvent(event);
}
this.close();
}
}
}, {
- key: 'update',
+ key: "update",
value: function update() {
var option = void 0;
if (this.select.selectedIndex > -1) {
- var item = this.container.querySelector('.ql-picker-options').children[this.select.selectedIndex];
+ var item = this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];
option = this.select.options[this.select.selectedIndex];
this.selectItem(item);
} else {
this.selectItem(null);
}
- var isActive = option != null && option !== this.select.querySelector('option[selected]');
- this.label.classList.toggle('ql-active', isActive);
+ var isActive = option != null && option !== this.select.querySelector("option[selected]");
+ this.label.classList.toggle("ql-active", isActive);
}
}]);
@@ -7384,7 +7542,7 @@
/***/
}),
-/* 29 */
+/* 31 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -7410,15 +7568,15 @@
var _break2 = _interopRequireDefault(_break);
- var _container = __webpack_require__(25);
+ var _container = __webpack_require__(27);
var _container2 = _interopRequireDefault(_container);
- var _cursor = __webpack_require__(24);
+ var _cursor = __webpack_require__(26);
var _cursor2 = _interopRequireDefault(_cursor);
- var _embed = __webpack_require__(35);
+ var _embed = __webpack_require__(41);
var _embed2 = _interopRequireDefault(_embed);
@@ -7426,7 +7584,7 @@
var _inline2 = _interopRequireDefault(_inline);
- var _scroll = __webpack_require__(22);
+ var _scroll = __webpack_require__(24);
var _scroll2 = _interopRequireDefault(_scroll);
@@ -7434,15 +7592,15 @@
var _text2 = _interopRequireDefault(_text);
- var _clipboard = __webpack_require__(55);
+ var _clipboard = __webpack_require__(74);
var _clipboard2 = _interopRequireDefault(_clipboard);
- var _history = __webpack_require__(42);
+ var _history = __webpack_require__(48);
var _history2 = _interopRequireDefault(_history);
- var _keyboard = __webpack_require__(23);
+ var _keyboard = __webpack_require__(25);
var _keyboard2 = _interopRequireDefault(_keyboard);
@@ -7470,13 +7628,13 @@
/***/
}),
-/* 30 */
+/* 32 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- var Registry = __webpack_require__(1);
+ var Registry = __webpack_require__(2);
var ShadowBlot = /** @class */ (function () {
function ShadowBlot(domNode) {
this.domNode = domNode;
@@ -7634,16 +7792,16 @@
/***/
}),
-/* 31 */
+/* 33 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var attributor_1 = __webpack_require__(12);
- var class_1 = __webpack_require__(32);
- var style_1 = __webpack_require__(33);
- var Registry = __webpack_require__(1);
+ var class_1 = __webpack_require__(34);
+ var style_1 = __webpack_require__(35);
+ var Registry = __webpack_require__(2);
var AttributorStore = /** @class */ (function () {
function AttributorStore(domNode) {
this.attributes = {};
@@ -7712,7 +7870,7 @@
/***/
}),
-/* 32 */
+/* 34 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -7776,7 +7934,7 @@
/***/
}),
-/* 33 */
+/* 35 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -7840,7 +7998,138 @@
/***/
}),
-/* 34 */
+/* 36 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ var slice = Array.prototype.slice;
+ var isArgs = __webpack_require__(37);
+
+ var origKeys = Object.keys;
+ var keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__(58);
+
+ var originalKeys = Object.keys;
+
+ keysShim.shim = function shimObjectKeys() {
+ if (Object.keys) {
+ var keysWorksWithArguments = (function () {
+ // Safari 5.0 bug
+ var args = Object.keys(arguments);
+ return args && args.length === arguments.length;
+ }(1, 2));
+ if (!keysWorksWithArguments) {
+ Object.keys = function keys(object) { // eslint-disable-line func-name-matching
+ if (isArgs(object)) {
+ return originalKeys(slice.call(object));
+ }
+ return originalKeys(object);
+ };
+ }
+ } else {
+ Object.keys = keysShim;
+ }
+ return Object.keys || keysShim;
+ };
+
+ module.exports = keysShim;
+
+
+ /***/
+ }),
+/* 37 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ var toStr = Object.prototype.toString;
+
+ module.exports = function isArguments(value) {
+ var str = toStr.call(value);
+ var isArgs = str === '[object Arguments]';
+ if (!isArgs) {
+ isArgs = str !== '[object Array]' &&
+ value !== null &&
+ typeof value === 'object' &&
+ typeof value.length === 'number' &&
+ value.length >= 0 &&
+ toStr.call(value.callee) === '[object Function]';
+ }
+ return isArgs;
+ };
+
+
+ /***/
+ }),
+/* 38 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ var $Object = Object;
+ var $TypeError = TypeError;
+
+ module.exports = function flags() {
+ if (this != null && this !== $Object(this)) {
+ throw new $TypeError('RegExp.prototype.flags getter called on non-object');
+ }
+ var result = '';
+ if (this.global) {
+ result += 'g';
+ }
+ if (this.ignoreCase) {
+ result += 'i';
+ }
+ if (this.multiline) {
+ result += 'm';
+ }
+ if (this.dotAll) {
+ result += 's';
+ }
+ if (this.unicode) {
+ result += 'u';
+ }
+ if (this.sticky) {
+ result += 'y';
+ }
+ return result;
+ };
+
+
+ /***/
+ }),
+/* 39 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ var implementation = __webpack_require__(38);
+
+ var supportsDescriptors = __webpack_require__(21).supportsDescriptors;
+ var $gOPD = Object.getOwnPropertyDescriptor;
+ var $TypeError = TypeError;
+
+ module.exports = function getPolyfill() {
+ if (!supportsDescriptors) {
+ throw new $TypeError('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');
+ }
+ if ((/a/mig).flags === 'gim') {
+ var descriptor = $gOPD(RegExp.prototype, 'flags');
+ if (descriptor && typeof descriptor.get === 'function' && typeof (/a/).dotAll === 'boolean') {
+ return descriptor.get;
+ }
+ }
+ return implementation;
+ };
+
+
+ /***/
+ }),
+/* 40 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -7897,7 +8186,7 @@
/***/
}),
-/* 35 */
+/* 41 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -8019,7 +8308,7 @@
/***/
}),
-/* 36 */
+/* 42 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -8051,7 +8340,7 @@
/***/
}),
-/* 37 */
+/* 43 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -8060,29 +8349,38 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
- exports.BackgroundStyle = exports.BackgroundClass = undefined;
+ exports.DiffStyle = exports.DiffClass = exports.BackgroundStyle = exports.BackgroundClass = undefined;
var _parchment = __webpack_require__(0);
var _parchment2 = _interopRequireDefault(_parchment);
- var _color = __webpack_require__(26);
+ var _color = __webpack_require__(28);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- var BackgroundClass = new _parchment2.default.Attributor.Class('background', 'ql-bg', {
+ var BackgroundClass = new _parchment2.default.Attributor.Class("background", "ql-bg", {
+ scope: _parchment2.default.Scope.INLINE
+ });
+ var BackgroundStyle = new _color.ColorAttributor("background", "background-color", {
+ scope: _parchment2.default.Scope.INLINE
+ });
+
+ var DiffClass = new _parchment2.default.Attributor.Class("diff", "ql-diff", {
scope: _parchment2.default.Scope.INLINE
});
- var BackgroundStyle = new _color.ColorAttributor('background', 'background-color', {
+ var DiffStyle = new _color.ColorAttributor("diff", "background-color", {
scope: _parchment2.default.Scope.INLINE
});
exports.BackgroundClass = BackgroundClass;
exports.BackgroundStyle = BackgroundStyle;
+ exports.DiffClass = DiffClass;
+ exports.DiffStyle = DiffStyle;
/***/
}),
-/* 38 */
+/* 44 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -8114,7 +8412,7 @@
/***/
}),
-/* 39 */
+/* 45 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -8174,7 +8472,7 @@
/***/
}),
-/* 40 */
+/* 46 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -8205,65 +8503,69 @@
/***/
}),
-/* 41 */
+/* 47 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
module.exports = {
- 'align': {
- '': __webpack_require__(76),
- 'center': __webpack_require__(77),
- 'right': __webpack_require__(78),
- 'justify': __webpack_require__(79)
+ align: {
+ "": __webpack_require__(94),
+ center: __webpack_require__(95),
+ right: __webpack_require__(96),
+ justify: __webpack_require__(97)
},
- 'background': __webpack_require__(80),
- 'blockquote': __webpack_require__(81),
- 'bold': __webpack_require__(82),
- 'clean': __webpack_require__(83),
- 'code': __webpack_require__(58),
- 'code-block': __webpack_require__(58),
- 'color': __webpack_require__(84),
- 'direction': {
- '': __webpack_require__(85),
- 'rtl': __webpack_require__(86)
+ background: __webpack_require__(98),
+ blockquote: __webpack_require__(99),
+ bold: __webpack_require__(100),
+ clean: __webpack_require__(101),
+ code: __webpack_require__(102),
+ "code-block": __webpack_require__(103),
+ color: __webpack_require__(104),
+ direction: {
+ "": __webpack_require__(105),
+ rtl: __webpack_require__(106)
},
- 'float': {
- 'center': __webpack_require__(87),
- 'full': __webpack_require__(88),
- 'left': __webpack_require__(89),
- 'right': __webpack_require__(90)
+ float: {
+ center: __webpack_require__(107),
+ full: __webpack_require__(108),
+ left: __webpack_require__(109),
+ right: __webpack_require__(110)
},
- 'formula': __webpack_require__(91),
- 'header': {
- '1': __webpack_require__(92),
- '2': __webpack_require__(93)
+ formula: __webpack_require__(111),
+ header: {
+ "1": __webpack_require__(112),
+ "2": __webpack_require__(113),
+ "3": __webpack_require__(114),
+ "4": __webpack_require__(115),
+ "5": __webpack_require__(116),
+ "6": __webpack_require__(117)
},
- 'italic': __webpack_require__(94),
- 'image': __webpack_require__(95),
- 'indent': {
- '+1': __webpack_require__(96),
- '-1': __webpack_require__(97)
+ italic: __webpack_require__(118),
+ image: __webpack_require__(119),
+ indent: {
+ "+1": __webpack_require__(120),
+ "-1": __webpack_require__(121)
},
- 'link': __webpack_require__(98),
- 'list': {
- 'ordered': __webpack_require__(99),
- 'bullet': __webpack_require__(100),
- 'check': __webpack_require__(101)
+ link: __webpack_require__(122),
+ list: {
+ ordered: __webpack_require__(123),
+ bullet: __webpack_require__(124),
+ check: __webpack_require__(125)
},
- 'script': {
- 'sub': __webpack_require__(102),
- 'super': __webpack_require__(103)
+ script: {
+ sub: __webpack_require__(126),
+ super: __webpack_require__(127)
},
- 'strike': __webpack_require__(104),
- 'underline': __webpack_require__(105),
- 'video': __webpack_require__(106)
+ strike: __webpack_require__(128),
+ underline: __webpack_require__(129),
+ video: __webpack_require__(130)
};
/***/
}),
-/* 42 */
+/* 48 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -8432,7 +8734,7 @@
/***/
}),
-/* 43 */
+/* 49 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -8451,7 +8753,7 @@
var _extend2 = _interopRequireDefault(_extend);
- var _quillDelta = __webpack_require__(2);
+ var _quillDelta = __webpack_require__(1);
var _quillDelta2 = _interopRequireDefault(_quillDelta);
@@ -8459,27 +8761,27 @@
var _emitter2 = _interopRequireDefault(_emitter);
- var _keyboard = __webpack_require__(23);
+ var _keyboard = __webpack_require__(25);
var _keyboard2 = _interopRequireDefault(_keyboard);
- var _theme = __webpack_require__(34);
+ var _theme = __webpack_require__(40);
var _theme2 = _interopRequireDefault(_theme);
- var _colorPicker = __webpack_require__(59);
+ var _colorPicker = __webpack_require__(77);
var _colorPicker2 = _interopRequireDefault(_colorPicker);
- var _iconPicker = __webpack_require__(60);
+ var _iconPicker = __webpack_require__(78);
var _iconPicker2 = _interopRequireDefault(_iconPicker);
- var _picker = __webpack_require__(28);
+ var _picker = __webpack_require__(30);
var _picker2 = _interopRequireDefault(_picker);
- var _tooltip = __webpack_require__(61);
+ var _tooltip = __webpack_require__(79);
var _tooltip2 = _interopRequireDefault(_tooltip);
@@ -8776,7 +9078,7 @@
/***/
}),
-/* 44 */
+/* 50 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -8918,7 +9220,7 @@
/***/
}),
-/* 45 */
+/* 51 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -8935,7 +9237,7 @@
})();
Object.defineProperty(exports, "__esModule", { value: true });
var container_1 = __webpack_require__(17);
- var Registry = __webpack_require__(1);
+ var Registry = __webpack_require__(2);
var OBSERVER_CONFIG = {
attributes: true,
characterData: true,
@@ -9103,7 +9405,7 @@
/***/
}),
-/* 46 */
+/* 52 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -9120,7 +9422,7 @@
})();
Object.defineProperty(exports, "__esModule", { value: true });
var format_1 = __webpack_require__(18);
- var Registry = __webpack_require__(1);
+ var Registry = __webpack_require__(2);
// Shallow object comparison
function isEqual(obj1, obj2) {
if (Object.keys(obj1).length !== Object.keys(obj2).length)
@@ -9189,7 +9491,7 @@
/***/
}),
-/* 47 */
+/* 53 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -9206,7 +9508,7 @@
})();
Object.defineProperty(exports, "__esModule", { value: true });
var format_1 = __webpack_require__(18);
- var Registry = __webpack_require__(1);
+ var Registry = __webpack_require__(2);
var BlockBlot = /** @class */ (function (_super) {
__extends(BlockBlot, _super);
function BlockBlot() {
@@ -9266,7 +9568,7 @@
/***/
}),
-/* 48 */
+/* 54 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -9315,7 +9617,7 @@
/***/
}),
-/* 49 */
+/* 55 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -9332,7 +9634,7 @@
})();
Object.defineProperty(exports, "__esModule", { value: true });
var leaf_1 = __webpack_require__(19);
- var Registry = __webpack_require__(1);
+ var Registry = __webpack_require__(2);
var TextBlot = /** @class */ (function (_super) {
__extends(TextBlot, _super);
function TextBlot(node) {
@@ -9419,7 +9721,7 @@
/***/
}),
-/* 50 */
+/* 56 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -9491,7 +9793,7 @@
/***/
}),
-/* 51 */
+/* 57 */
/***/ (function (module, exports) {
/**
@@ -10230,56 +10532,773 @@
}
}
}
- return diffs;
- }
+ return diffs;
+ }
+
+
+ /***/
+ }),
+/* 58 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ var keysShim;
+ if (!Object.keys) {
+ // modified from https://github.com/es-shims/es5-shim
+ var has = Object.prototype.hasOwnProperty;
+ var toStr = Object.prototype.toString;
+ var isArgs = __webpack_require__(37); // eslint-disable-line global-require
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
+ var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString');
+ var hasProtoEnumBug = isEnumerable.call(function () { }, 'prototype');
+ var dontEnums = [
+ 'toString',
+ 'toLocaleString',
+ 'valueOf',
+ 'hasOwnProperty',
+ 'isPrototypeOf',
+ 'propertyIsEnumerable',
+ 'constructor'
+ ];
+ var equalsConstructorPrototype = function (o) {
+ var ctor = o.constructor;
+ return ctor && ctor.prototype === o;
+ };
+ var excludedKeys = {
+ $applicationCache: true,
+ $console: true,
+ $external: true,
+ $frame: true,
+ $frameElement: true,
+ $frames: true,
+ $innerHeight: true,
+ $innerWidth: true,
+ $onmozfullscreenchange: true,
+ $onmozfullscreenerror: true,
+ $outerHeight: true,
+ $outerWidth: true,
+ $pageXOffset: true,
+ $pageYOffset: true,
+ $parent: true,
+ $scrollLeft: true,
+ $scrollTop: true,
+ $scrollX: true,
+ $scrollY: true,
+ $self: true,
+ $webkitIndexedDB: true,
+ $webkitStorageInfo: true,
+ $window: true
+ };
+ var hasAutomationEqualityBug = (function () {
+ /* global window */
+ if (typeof window === 'undefined') { return false; }
+ for (var k in window) {
+ try {
+ if (!excludedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') {
+ try {
+ equalsConstructorPrototype(window[k]);
+ } catch (e) {
+ return true;
+ }
+ }
+ } catch (e) {
+ return true;
+ }
+ }
+ return false;
+ }());
+ var equalsConstructorPrototypeIfNotBuggy = function (o) {
+ /* global window */
+ if (typeof window === 'undefined' || !hasAutomationEqualityBug) {
+ return equalsConstructorPrototype(o);
+ }
+ try {
+ return equalsConstructorPrototype(o);
+ } catch (e) {
+ return false;
+ }
+ };
+
+ keysShim = function keys(object) {
+ var isObject = object !== null && typeof object === 'object';
+ var isFunction = toStr.call(object) === '[object Function]';
+ var isArguments = isArgs(object);
+ var isString = isObject && toStr.call(object) === '[object String]';
+ var theKeys = [];
+
+ if (!isObject && !isFunction && !isArguments) {
+ throw new TypeError('Object.keys called on a non-object');
+ }
+
+ var skipProto = hasProtoEnumBug && isFunction;
+ if (isString && object.length > 0 && !has.call(object, 0)) {
+ for (var i = 0; i < object.length; ++i) {
+ theKeys.push(String(i));
+ }
+ }
+
+ if (isArguments && object.length > 0) {
+ for (var j = 0; j < object.length; ++j) {
+ theKeys.push(String(j));
+ }
+ } else {
+ for (var name in object) {
+ if (!(skipProto && name === 'prototype') && has.call(object, name)) {
+ theKeys.push(String(name));
+ }
+ }
+ }
+
+ if (hasDontEnumBug) {
+ var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);
+
+ for (var k = 0; k < dontEnums.length; ++k) {
+ if (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) {
+ theKeys.push(dontEnums[k]);
+ }
+ }
+ }
+ return theKeys;
+ };
+ }
+ module.exports = keysShim;
+
+
+ /***/
+ }),
+/* 59 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
+ var toStr = Object.prototype.toString;
+
+ var isStandardArguments = function isArguments(value) {
+ if (hasToStringTag && value && typeof value === 'object' && Symbol.toStringTag in value) {
+ return false;
+ }
+ return toStr.call(value) === '[object Arguments]';
+ };
+
+ var isLegacyArguments = function isArguments(value) {
+ if (isStandardArguments(value)) {
+ return true;
+ }
+ return value !== null &&
+ typeof value === 'object' &&
+ typeof value.length === 'number' &&
+ value.length >= 0 &&
+ toStr.call(value) !== '[object Array]' &&
+ toStr.call(value.callee) === '[object Function]';
+ };
+
+ var supportsStandardArguments = (function () {
+ return isStandardArguments(arguments);
+ }());
+
+ isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
+
+ module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
+
+
+ /***/
+ }),
+/* 60 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ // http://www.ecma-international.org/ecma-262/6.0/#sec-object.is
+
+ var numberIsNaN = function (value) {
+ return value !== value;
+ };
+
+ module.exports = function is(a, b) {
+ if (a === 0 && b === 0) {
+ return 1 / a === 1 / b;
+ }
+ if (a === b) {
+ return true;
+ }
+ if (numberIsNaN(a) && numberIsNaN(b)) {
+ return true;
+ }
+ return false;
+ };
+
+
+
+ /***/
+ }),
+/* 61 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ var has = __webpack_require__(62);
+ var regexExec = RegExp.prototype.exec;
+ var gOPD = Object.getOwnPropertyDescriptor;
+
+ var tryRegexExecCall = function tryRegexExec(value) {
+ try {
+ var lastIndex = value.lastIndex;
+ value.lastIndex = 0; // eslint-disable-line no-param-reassign
+
+ regexExec.call(value);
+ return true;
+ } catch (e) {
+ return false;
+ } finally {
+ value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
+ }
+ };
+ var toStr = Object.prototype.toString;
+ var regexClass = '[object RegExp]';
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
+
+ module.exports = function isRegex(value) {
+ if (!value || typeof value !== 'object') {
+ return false;
+ }
+ if (!hasToStringTag) {
+ return toStr.call(value) === regexClass;
+ }
+
+ var descriptor = gOPD(value, 'lastIndex');
+ var hasLastIndexDataProperty = descriptor && has(descriptor, 'value');
+ if (!hasLastIndexDataProperty) {
+ return false;
+ }
+
+ return tryRegexExecCall(value);
+ };
+
+
+ /***/
+ }),
+/* 62 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ var bind = __webpack_require__(20);
+
+ module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
+
+
+ /***/
+ }),
+/* 63 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ /* eslint no-invalid-this: 1 */
+
+ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
+ var slice = Array.prototype.slice;
+ var toStr = Object.prototype.toString;
+ var funcType = '[object Function]';
+
+ module.exports = function bind(that) {
+ var target = this;
+ if (typeof target !== 'function' || toStr.call(target) !== funcType) {
+ throw new TypeError(ERROR_MESSAGE + target);
+ }
+ var args = slice.call(arguments, 1);
+
+ var bound;
+ var binder = function () {
+ if (this instanceof bound) {
+ var result = target.apply(
+ this,
+ args.concat(slice.call(arguments))
+ );
+ if (Object(result) === result) {
+ return result;
+ }
+ return this;
+ } else {
+ return target.apply(
+ that,
+ args.concat(slice.call(arguments))
+ );
+ }
+ };
+
+ var boundLength = Math.max(0, target.length - args.length);
+ var boundArgs = [];
+ for (var i = 0; i < boundLength; i++) {
+ boundArgs.push('$' + i);
+ }
+
+ bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
+
+ if (target.prototype) {
+ var Empty = function Empty() { };
+ Empty.prototype = target.prototype;
+ bound.prototype = new Empty();
+ Empty.prototype = null;
+ }
+
+ return bound;
+ };
+
+
+ /***/
+ }),
+/* 64 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ var define = __webpack_require__(21);
+ var callBind = __webpack_require__(65);
+
+ var implementation = __webpack_require__(38);
+ var getPolyfill = __webpack_require__(39);
+ var shim = __webpack_require__(70);
+
+ var flagsBound = callBind(implementation);
+
+ define(flagsBound, {
+ getPolyfill: getPolyfill,
+ implementation: implementation,
+ shim: shim
+ });
+
+ module.exports = flagsBound;
+
+
+ /***/
+ }),
+/* 65 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ var bind = __webpack_require__(20);
+
+ var GetIntrinsic = __webpack_require__(66);
+
+ var $Function = GetIntrinsic('%Function%');
+ var $apply = $Function.apply;
+ var $call = $Function.call;
+
+ module.exports = function callBind() {
+ return bind.apply($call, arguments);
+ };
+
+ module.exports.apply = function applyBind() {
+ return bind.apply($apply, arguments);
+ };
+
+
+ /***/
+ }),
+/* 66 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ /* globals
+ Atomics,
+ SharedArrayBuffer,
+ */
+
+ var undefined;
+
+ var $TypeError = TypeError;
+
+ var $gOPD = Object.getOwnPropertyDescriptor;
+ if ($gOPD) {
+ try {
+ $gOPD({}, '');
+ } catch (e) {
+ $gOPD = null; // this is IE 8, which has a broken gOPD
+ }
+ }
+
+ var throwTypeError = function () { throw new $TypeError(); };
+ var ThrowTypeError = $gOPD
+ ? (function () {
+ try {
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
+ arguments.callee; // IE 8 does not throw here
+ return throwTypeError;
+ } catch (calleeThrows) {
+ try {
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
+ return $gOPD(arguments, 'callee').get;
+ } catch (gOPDthrows) {
+ return throwTypeError;
+ }
+ }
+ }())
+ : throwTypeError;
+
+ var hasSymbols = __webpack_require__(67)();
+
+ var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
+
+ var generator; // = function * () {};
+ var generatorFunction = generator ? getProto(generator) : undefined;
+ var asyncFn; // async function() {};
+ var asyncFunction = asyncFn ? asyncFn.constructor : undefined;
+ var asyncGen; // async function * () {};
+ var asyncGenFunction = asyncGen ? getProto(asyncGen) : undefined;
+ var asyncGenIterator = asyncGen ? asyncGen() : undefined;
+
+ var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
+
+ var INTRINSICS = {
+ '%Array%': Array,
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
+ '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer.prototype,
+ '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
+ '%ArrayPrototype%': Array.prototype,
+ '%ArrayProto_entries%': Array.prototype.entries,
+ '%ArrayProto_forEach%': Array.prototype.forEach,
+ '%ArrayProto_keys%': Array.prototype.keys,
+ '%ArrayProto_values%': Array.prototype.values,
+ '%AsyncFromSyncIteratorPrototype%': undefined,
+ '%AsyncFunction%': asyncFunction,
+ '%AsyncFunctionPrototype%': asyncFunction ? asyncFunction.prototype : undefined,
+ '%AsyncGenerator%': asyncGen ? getProto(asyncGenIterator) : undefined,
+ '%AsyncGeneratorFunction%': asyncGenFunction,
+ '%AsyncGeneratorPrototype%': asyncGenFunction ? asyncGenFunction.prototype : undefined,
+ '%AsyncIteratorPrototype%': asyncGenIterator && hasSymbols && Symbol.asyncIterator ? asyncGenIterator[Symbol.asyncIterator]() : undefined,
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
+ '%Boolean%': Boolean,
+ '%BooleanPrototype%': Boolean.prototype,
+ '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
+ '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined : DataView.prototype,
+ '%Date%': Date,
+ '%DatePrototype%': Date.prototype,
+ '%decodeURI%': decodeURI,
+ '%decodeURIComponent%': decodeURIComponent,
+ '%encodeURI%': encodeURI,
+ '%encodeURIComponent%': encodeURIComponent,
+ '%Error%': Error,
+ '%ErrorPrototype%': Error.prototype,
+ '%eval%': eval, // eslint-disable-line no-eval
+ '%EvalError%': EvalError,
+ '%EvalErrorPrototype%': EvalError.prototype,
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
+ '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined : Float32Array.prototype,
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
+ '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined : Float64Array.prototype,
+ '%Function%': Function,
+ '%FunctionPrototype%': Function.prototype,
+ '%Generator%': generator ? getProto(generator()) : undefined,
+ '%GeneratorFunction%': generatorFunction,
+ '%GeneratorPrototype%': generatorFunction ? generatorFunction.prototype : undefined,
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
+ '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined : Int8Array.prototype,
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
+ '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined : Int8Array.prototype,
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
+ '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined : Int32Array.prototype,
+ '%isFinite%': isFinite,
+ '%isNaN%': isNaN,
+ '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined,
+ '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined,
+ '%Map%': typeof Map === 'undefined' ? undefined : Map,
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
+ '%MapPrototype%': typeof Map === 'undefined' ? undefined : Map.prototype,
+ '%Math%': Math,
+ '%Number%': Number,
+ '%NumberPrototype%': Number.prototype,
+ '%Object%': Object,
+ '%ObjectPrototype%': Object.prototype,
+ '%ObjProto_toString%': Object.prototype.toString,
+ '%ObjProto_valueOf%': Object.prototype.valueOf,
+ '%parseFloat%': parseFloat,
+ '%parseInt%': parseInt,
+ '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
+ '%PromisePrototype%': typeof Promise === 'undefined' ? undefined : Promise.prototype,
+ '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined : Promise.prototype.then,
+ '%Promise_all%': typeof Promise === 'undefined' ? undefined : Promise.all,
+ '%Promise_reject%': typeof Promise === 'undefined' ? undefined : Promise.reject,
+ '%Promise_resolve%': typeof Promise === 'undefined' ? undefined : Promise.resolve,
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
+ '%RangeError%': RangeError,
+ '%RangeErrorPrototype%': RangeError.prototype,
+ '%ReferenceError%': ReferenceError,
+ '%ReferenceErrorPrototype%': ReferenceError.prototype,
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
+ '%RegExp%': RegExp,
+ '%RegExpPrototype%': RegExp.prototype,
+ '%Set%': typeof Set === 'undefined' ? undefined : Set,
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
+ '%SetPrototype%': typeof Set === 'undefined' ? undefined : Set.prototype,
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
+ '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer.prototype,
+ '%String%': String,
+ '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
+ '%StringPrototype%': String.prototype,
+ '%Symbol%': hasSymbols ? Symbol : undefined,
+ '%SymbolPrototype%': hasSymbols ? Symbol.prototype : undefined,
+ '%SyntaxError%': SyntaxError,
+ '%SyntaxErrorPrototype%': SyntaxError.prototype,
+ '%ThrowTypeError%': ThrowTypeError,
+ '%TypedArray%': TypedArray,
+ '%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined,
+ '%TypeError%': $TypeError,
+ '%TypeErrorPrototype%': $TypeError.prototype,
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
+ '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array.prototype,
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
+ '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray.prototype,
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
+ '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array.prototype,
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
+ '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array.prototype,
+ '%URIError%': URIError,
+ '%URIErrorPrototype%': URIError.prototype,
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
+ '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined : WeakMap.prototype,
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
+ '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined : WeakSet.prototype
+ };
+
+ var bind = __webpack_require__(20);
+ var $replace = bind.call(Function.call, String.prototype.replace);
+
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
+ var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
+ var stringToPath = function stringToPath(string) {
+ var result = [];
+ $replace(string, rePropName, function (match, number, quote, subString) {
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);
+ });
+ return result;
+ };
+ /* end adaptation */
+
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
+ if (!(name in INTRINSICS)) {
+ throw new SyntaxError('intrinsic ' + name + ' does not exist!');
+ }
+
+ // istanbul ignore if // hopefully this is impossible to test :-)
+ if (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
+ }
+
+ return INTRINSICS[name];
+ };
+
+ module.exports = function GetIntrinsic(name, allowMissing) {
+ if (typeof name !== 'string' || name.length === 0) {
+ throw new TypeError('intrinsic name must be a non-empty string');
+ }
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
+ throw new TypeError('"allowMissing" argument must be a boolean');
+ }
+
+ var parts = stringToPath(name);
+
+ var value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
+ for (var i = 1; i < parts.length; i += 1) {
+ if (value != null) {
+ if ($gOPD && (i + 1) >= parts.length) {
+ var desc = $gOPD(value, parts[i]);
+ if (!allowMissing && !(parts[i] in value)) {
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
+ }
+ value = desc ? (desc.get || desc.value) : value[parts[i]];
+ } else {
+ value = value[parts[i]];
+ }
+ }
+ }
+ return value;
+ };
/***/
}),
-/* 52 */
+/* 67 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+/* WEBPACK VAR INJECTION */(function (global) {
+
+ var origSymbol = global.Symbol;
+ var hasSymbolSham = __webpack_require__(69);
+
+ module.exports = function hasNativeSymbols() {
+ if (typeof origSymbol !== 'function') { return false; }
+ if (typeof Symbol !== 'function') { return false; }
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
+
+ return hasSymbolSham();
+ };
+
+ /* WEBPACK VAR INJECTION */
+ }.call(exports, __webpack_require__(68)))
+
+ /***/
+ }),
+/* 68 */
/***/ (function (module, exports) {
- exports = module.exports = typeof Object.keys === 'function'
- ? Object.keys : shim;
+ var g;
+
+ // This works in non-strict mode
+ g = (function () {
+ return this;
+ })();
- exports.shim = shim;
- function shim(obj) {
- var keys = [];
- for (var key in obj) keys.push(key);
- return keys;
+ try {
+ // This works if eval is allowed (see CSP)
+ g = g || Function("return this")() || (1, eval)("this");
+ } catch (e) {
+ // This works if the window reference is available
+ if (typeof window === "object")
+ g = window;
}
+ // g can still be undefined, but nothing to do about it...
+ // We return undefined, instead of nothing here, so it's
+ // easier to handle this case. if(!global) { ...}
+
+ module.exports = g;
+
/***/
}),
-/* 53 */
-/***/ (function (module, exports) {
+/* 69 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
+ module.exports = function hasSymbols() {
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
+ if (typeof Symbol.iterator === 'symbol') { return true; }
+
+ var obj = {};
+ var sym = Symbol('test');
+ var symObj = Object(sym);
+ if (typeof sym === 'string') { return false; }
+
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
- var supportsArgumentsClass = (function () {
- return Object.prototype.toString.call(arguments)
- })() == '[object Arguments]';
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
+ // if (sym instanceof Symbol) { return false; }
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
+ // if (!(symObj instanceof Symbol)) { return false; }
- exports = module.exports = supportsArgumentsClass ? supported : unsupported;
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
- exports.supported = supported;
- function supported(object) {
- return Object.prototype.toString.call(object) == '[object Arguments]';
+ var symVal = 42;
+ obj[sym] = symVal;
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
+
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
+
+ var syms = Object.getOwnPropertySymbols(obj);
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
+
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
+
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
+ }
+
+ return true;
};
- exports.unsupported = unsupported;
- function unsupported(object) {
- return object &&
- typeof object == 'object' &&
- typeof object.length == 'number' &&
- Object.prototype.hasOwnProperty.call(object, 'callee') &&
- !Object.prototype.propertyIsEnumerable.call(object, 'callee') ||
- false;
+
+ /***/
+ }),
+/* 70 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ var supportsDescriptors = __webpack_require__(21).supportsDescriptors;
+ var getPolyfill = __webpack_require__(39);
+ var gOPD = Object.getOwnPropertyDescriptor;
+ var defineProperty = Object.defineProperty;
+ var TypeErr = TypeError;
+ var getProto = Object.getPrototypeOf;
+ var regex = /a/;
+
+ module.exports = function shimFlags() {
+ if (!supportsDescriptors || !getProto) {
+ throw new TypeErr('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');
+ }
+ var polyfill = getPolyfill();
+ var proto = getProto(regex);
+ var descriptor = gOPD(proto, 'flags');
+ if (!descriptor || descriptor.get !== polyfill) {
+ defineProperty(proto, 'flags', {
+ configurable: true,
+ enumerable: false,
+ get: polyfill
+ });
+ }
+ return polyfill;
};
/***/
}),
-/* 54 */
+/* 71 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ var getDay = Date.prototype.getDay;
+ var tryDateObject = function tryDateGetDayCall(value) {
+ try {
+ getDay.call(value);
+ return true;
+ } catch (e) {
+ return false;
+ }
+ };
+
+ var toStr = Object.prototype.toString;
+ var dateClass = '[object Date]';
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
+
+ module.exports = function isDateObject(value) {
+ if (typeof value !== 'object' || value === null) {
+ return false;
+ }
+ return hasToStringTag ? tryDateObject(value) : toStr.call(value) === dateClass;
+ };
+
+
+ /***/
+ }),
+/* 72 */
/***/ (function (module, exports) {
'use strict';
@@ -10597,7 +11616,67 @@
/***/
}),
-/* 55 */
+/* 73 */
+/***/ (function (module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _createClass = function () { 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+ var _quillDelta = __webpack_require__(1);
+
+ var _quillDelta2 = _interopRequireDefault(_quillDelta);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ var DeltaTransformer = function () {
+ function DeltaTransformer() {
+ _classCallCheck(this, DeltaTransformer);
+ }
+
+ _createClass(DeltaTransformer, [{
+ key: "highlightDifference",
+ value: function highlightDifference(first, second, color) {
+ var firstDelta = new _quillDelta2.default(first);
+ var secondDelta = new _quillDelta2.default(second);
+ var diff = secondDelta.diff(firstDelta);
+ var colored = diff.map(function (op) {
+ if (op.insert) {
+ if (!op.attributes) op.attributes = {};
+ if (op.attributes.background) return op;
+ op.attributes.diff = color;
+ }
+ return op;
+ });
+ return secondDelta.compose(new _quillDelta2.default(colored));
+ }
+ }, {
+ key: "cleanDifference",
+ value: function cleanDifference(delta) {
+ return delta.ops.map(function (op) {
+ if (op.attributes && op.attributes.diff) {
+ delete op.attributes.diff;
+ }
+ return op;
+ });
+ }
+ }]);
+
+ return DeltaTransformer;
+ }();
+
+ exports.default = DeltaTransformer;
+
+ /***/
+ }),
+/* 74 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -10618,7 +11697,7 @@
var _extend3 = _interopRequireDefault(_extend2);
- var _quillDelta = __webpack_require__(2);
+ var _quillDelta = __webpack_require__(1);
var _quillDelta2 = _interopRequireDefault(_quillDelta);
@@ -10638,21 +11717,21 @@
var _module2 = _interopRequireDefault(_module);
- var _align = __webpack_require__(36);
+ var _align = __webpack_require__(42);
- var _background = __webpack_require__(37);
+ var _background = __webpack_require__(43);
var _code = __webpack_require__(13);
var _code2 = _interopRequireDefault(_code);
- var _color = __webpack_require__(26);
+ var _color = __webpack_require__(28);
- var _direction = __webpack_require__(38);
+ var _direction = __webpack_require__(44);
- var _font = __webpack_require__(39);
+ var _font = __webpack_require__(45);
- var _size = __webpack_require__(40);
+ var _size = __webpack_require__(46);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -10664,11 +11743,11 @@
function _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; }
- var debug = (0, _logger2.default)('quill:clipboard');
+ var debug = (0, _logger2.default)("quill:clipboard");
- var DOM_KEY = '__ql-matcher';
+ var DOM_KEY = "__ql-matcher";
- var CLIPBOARD_CONFIG = [[Node.TEXT_NODE, matchText], [Node.TEXT_NODE, matchNewline], ['br', matchBreak], [Node.ELEMENT_NODE, matchNewline], [Node.ELEMENT_NODE, matchBlot], [Node.ELEMENT_NODE, matchSpacing], [Node.ELEMENT_NODE, matchAttributor], [Node.ELEMENT_NODE, matchStyles], ['li', matchIndent], ['b', matchAlias.bind(matchAlias, 'bold')], ['i', matchAlias.bind(matchAlias, 'italic')], ['style', matchIgnore]];
+ var CLIPBOARD_CONFIG = [[Node.TEXT_NODE, matchText], [Node.TEXT_NODE, matchNewline], ["br", matchBreak], [Node.ELEMENT_NODE, matchNewline], [Node.ELEMENT_NODE, matchBlot], [Node.ELEMENT_NODE, matchSpacing], [Node.ELEMENT_NODE, matchAttributor], [Node.ELEMENT_NODE, matchStyles], ["li", matchIndent], ["b", matchAlias.bind(matchAlias, "bold")], ["i", matchAlias.bind(matchAlias, "italic")], ["style", matchIgnore]];
var ATTRIBUTE_ATTRIBUTORS = [_align.AlignAttribute, _direction.DirectionAttribute].reduce(function (memo, attr) {
memo[attr.keyName] = attr;
@@ -10688,10 +11767,10 @@
var _this = _possibleConstructorReturn(this, (Clipboard.__proto__ || Object.getPrototypeOf(Clipboard)).call(this, quill, options));
- _this.quill.root.addEventListener('paste', _this.onPaste.bind(_this));
- _this.container = _this.quill.addContainer('ql-clipboard');
- _this.container.setAttribute('contenteditable', true);
- _this.container.setAttribute('tabindex', -1);
+ _this.quill.root.addEventListener("paste", _this.onPaste.bind(_this));
+ _this.container = _this.quill.addContainer("ql-clipboard");
+ _this.container.setAttribute("contenteditable", true);
+ _this.container.setAttribute("tabindex", -1);
_this.matchers = [];
CLIPBOARD_CONFIG.concat(_this.options.matchers).forEach(function (_ref) {
var _ref2 = _slicedToArray(_ref, 2),
@@ -10705,21 +11784,21 @@
}
_createClass(Clipboard, [{
- key: 'addMatcher',
+ key: "addMatcher",
value: function addMatcher(selector, matcher) {
this.matchers.push([selector, matcher]);
}
}, {
- key: 'convert',
+ key: "convert",
value: function convert(html) {
- if (typeof html === 'string') {
- this.container.innerHTML = html.replace(/\>\r?\n +\</g, '><'); // Remove spaces between tags
+ if (typeof html === "string") {
+ this.container.innerHTML = html.replace(/\>\r?\n +\</g, "><"); // Remove spaces between tags
return this.convert();
}
var formats = this.quill.getFormat(this.quill.selection.savedRange.index);
if (formats[_code2.default.blotName]) {
var text = this.container.innerText;
- this.container.innerHTML = '';
+ this.container.innerHTML = "";
return new _quillDelta2.default().insert(text, _defineProperty({}, _code2.default.blotName, formats[_code2.default.blotName]));
}
@@ -10730,19 +11809,19 @@
var delta = traverse(this.container, elementMatchers, textMatchers);
// Remove trailing newline
- if (deltaEndsWith(delta, '\n') && delta.ops[delta.ops.length - 1].attributes == null) {
+ if (deltaEndsWith(delta, "\n") && delta.ops[delta.ops.length - 1].attributes == null) {
delta = delta.compose(new _quillDelta2.default().retain(delta.length() - 1).delete(1));
}
- debug.log('convert', this.container.innerHTML, delta);
- this.container.innerHTML = '';
+ debug.log("convert", this.container.innerHTML, delta);
+ this.container.innerHTML = "";
return delta;
}
}, {
- key: 'dangerouslyPasteHTML',
+ key: "dangerouslyPasteHTML",
value: function dangerouslyPasteHTML(index, html) {
var source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _quill2.default.sources.API;
- if (typeof index === 'string') {
+ if (typeof index === "string") {
this.quill.setContents(this.convert(index), html);
this.quill.setSelection(0, _quill2.default.sources.SILENT);
} else {
@@ -10752,27 +11831,40 @@
}
}
}, {
- key: 'onPaste',
+ key: "onPaste",
value: function onPaste(e) {
var _this2 = this;
- if (e.defaultPrevented || !this.quill.isEnabled()) return;
+ var text = e.clipboardData.getData("Text");
+ var isVeryLargeText = false;
+ if (text.length > 25000) {
+ e.preventDefault();
+ this.container.innerHTML = text;
+ isVeryLargeText = true;
+ }
+ if (!this.quill.isEnabled()) return;
var range = this.quill.getSelection();
var delta = new _quillDelta2.default().retain(range.index);
var scrollTop = this.quill.scrollingContainer.scrollTop;
this.container.focus();
this.quill.selection.update(_quill2.default.sources.SILENT);
setTimeout(function () {
- delta = delta.concat(_this2.convert()).delete(range.length);
- _this2.quill.updateContents(delta, _quill2.default.sources.USER);
- // range.length contributes to delta.length()
- _this2.quill.setSelection(delta.length() - range.length, _quill2.default.sources.SILENT);
+ if (isVeryLargeText) {
+ _this2.quill.deleteText(range.index, range.length, _quill2.default.sources.SILENT);
+ _this2.quill.insertText(range.index, _this2.container.innerHTML, _quill2.default.sources.USER);
+ _this2.quill.setSelection(range.index + _this2.container.innerHTML.length, _quill2.default.sources.SILENT);
+ } else {
+ delta = delta.concat(_this2.convert()).delete(range.length);
+ _this2.quill.updateContents(delta, _quill2.default.sources.USER);
+ // range.length contributes to delta.length()
+ _this2.quill.setSelection(delta.length() - range.length, _quill2.default.sources.SILENT);
+ }
_this2.quill.scrollingContainer.scrollTop = scrollTop;
_this2.quill.focus();
}, 1);
}
}, {
- key: 'prepareMatching',
+ key: "prepareMatching",
value: function prepareMatching() {
var _this3 = this;
@@ -10812,7 +11904,7 @@
};
function applyFormat(delta, format, value) {
- if ((typeof format === 'undefined' ? 'undefined' : _typeof(format)) === 'object') {
+ if ((typeof format === "undefined" ? "undefined" : _typeof(format)) === "object") {
return Object.keys(format).reduce(function (delta, key) {
return applyFormat(delta, key, format[key]);
}, delta);
@@ -10829,7 +11921,7 @@
function computeStyle(node) {
if (node.nodeType !== Node.ELEMENT_NODE) return {};
- var DOM_KEY = '__ql-computed-style';
+ var DOM_KEY = "__ql-computed-style";
return node[DOM_KEY] || (node[DOM_KEY] = window.getComputedStyle(node));
}
@@ -10837,7 +11929,7 @@
var endText = "";
for (var i = delta.ops.length - 1; i >= 0 && endText.length < text.length; --i) {
var op = delta.ops[i];
- if (typeof op.insert !== 'string') break;
+ if (typeof op.insert !== "string") break;
endText = op.insert + endText;
}
return endText.slice(-1 * text.length) === text;
@@ -10846,7 +11938,7 @@
function isLine(node) {
if (node.childNodes.length === 0) return false; // Exclude embed blocks
var style = computeStyle(node);
- return ['block', 'list-item'].indexOf(style.display) > -1;
+ return ["block", "list-item"].indexOf(style.display) > -1;
}
function traverse(node, elementMatchers, textMatchers) {
@@ -10914,15 +12006,15 @@
embed[match.blotName] = value;
delta = new _quillDelta2.default().insert(embed, match.formats(node));
}
- } else if (typeof match.formats === 'function') {
+ } else if (typeof match.formats === "function") {
delta = applyFormat(delta, match.blotName, match.formats(node));
}
return delta;
}
function matchBreak(node, delta) {
- if (!deltaEndsWith(delta, '\n')) {
- delta.insert('\n');
+ if (!deltaEndsWith(delta, "\n")) {
+ delta.insert("\n");
}
return delta;
}
@@ -10933,13 +12025,13 @@
function matchIndent(node, delta) {
var match = _parchment2.default.query(node);
- if (match == null || match.blotName !== 'list-item' || !deltaEndsWith(delta, '\n')) {
+ if (match == null || match.blotName !== "list-item" || !deltaEndsWith(delta, "\n")) {
return delta;
}
var indent = -1,
parent = node.parentNode;
- while (!parent.classList.contains('ql-clipboard')) {
- if ((_parchment2.default.query(parent) || {}).blotName === 'list') {
+ while (!parent.classList.contains("ql-clipboard")) {
+ if ((_parchment2.default.query(parent) || {}).blotName === "list") {
indent += 1;
}
parent = parent.parentNode;
@@ -10949,19 +12041,19 @@
}
function matchNewline(node, delta) {
- if (!deltaEndsWith(delta, '\n')) {
+ if (!deltaEndsWith(delta, "\n")) {
if (isLine(node) || delta.length() > 0 && node.nextSibling && isLine(node.nextSibling)) {
- delta.insert('\n');
+ delta.insert("\n");
}
}
return delta;
}
function matchSpacing(node, delta) {
- if (isLine(node) && node.nextElementSibling != null && !deltaEndsWith(delta, '\n\n')) {
+ if (isLine(node) && node.nextElementSibling != null && !deltaEndsWith(delta, "\n\n")) {
var nodeHeight = node.offsetHeight + parseFloat(computeStyle(node).marginTop) + parseFloat(computeStyle(node).marginBottom);
if (node.nextElementSibling.offsetTop > node.offsetTop + nodeHeight * 1.5) {
- delta.insert('\n');
+ delta.insert("\n");
}
}
return delta;
@@ -10970,10 +12062,10 @@
function matchStyles(node, delta) {
var formats = {};
var style = node.style || {};
- if (style.fontStyle && computeStyle(node).fontStyle === 'italic') {
+ if (style.fontStyle && computeStyle(node).fontStyle === "italic") {
formats.italic = true;
}
- if (style.fontWeight && (computeStyle(node).fontWeight.startsWith('bold') || parseInt(computeStyle(node).fontWeight) >= 700)) {
+ if (style.fontWeight && (computeStyle(node).fontWeight.startsWith("bold") || parseInt(computeStyle(node).fontWeight) >= 700)) {
formats.bold = true;
}
if (Object.keys(formats).length > 0) {
@@ -10981,7 +12073,7 @@
}
if (parseFloat(style.textIndent || 0) > 0) {
// Could be 0.5in
- delta = new _quillDelta2.default().insert('\t').concat(delta);
+ delta = new _quillDelta2.default().insert("\t").concat(delta);
}
return delta;
}
@@ -10989,19 +12081,19 @@
function matchText(node, delta) {
var text = node.data;
// Word represents empty line with <o:p>&nbsp;</o:p>
- if (node.parentNode.tagName === 'O:P') {
+ if (node.parentNode.tagName === "O:P") {
return delta.insert(text.trim());
}
- if (text.trim().length === 0 && node.parentNode.classList.contains('ql-clipboard')) {
+ if (text.trim().length === 0 && node.parentNode.classList.contains("ql-clipboard")) {
return delta;
}
- if (!computeStyle(node.parentNode).whiteSpace.startsWith('pre')) {
+ if (!computeStyle(node.parentNode).whiteSpace.startsWith("pre")) {
// eslint-disable-next-line func-style
var replacer = function replacer(collapse, match) {
- match = match.replace(/[^\u00a0]/g, ''); // \u00a0 is nbsp;
- return match.length < 1 && collapse ? ' ' : match;
+ match = match.replace(/[^\u00a0]/g, ""); // \u00a0 is nbsp;
+ return match.length < 1 && collapse ? " " : match;
};
- text = text.replace(/\r\n/g, ' ').replace(/\n/g, ' ');
+ text = text.replace(/\r\n/g, " ").replace(/\n/g, " ");
text = text.replace(/\s\s+/g, replacer.bind(replacer, true)); // collapse whitespace
if (node.previousSibling == null && isLine(node.parentNode) || node.previousSibling != null && isLine(node.previousSibling)) {
text = text.replace(/^\s+/, replacer.bind(replacer, false));
@@ -11022,7 +12114,7 @@
/***/
}),
-/* 56 */
+/* 75 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -11087,7 +12179,7 @@
/***/
}),
-/* 57 */
+/* 76 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -11102,7 +12194,7 @@
var _createClass = function () { 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
- var _quillDelta = __webpack_require__(2);
+ var _quillDelta = __webpack_require__(1);
var _quillDelta2 = _interopRequireDefault(_quillDelta);
@@ -11413,14 +12505,7 @@
/***/
}),
-/* 58 */
-/***/ (function (module, exports) {
-
- module.exports = "<svg viewbox=\"0 0 18 18\"> <polyline class=\"ql-even ql-stroke\" points=\"5 7 3 9 5 11\"></polyline> <polyline class=\"ql-even ql-stroke\" points=\"13 7 15 9 13 11\"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>";
-
- /***/
- }),
-/* 59 */
+/* 77 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -11434,7 +12519,7 @@
var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
- var _picker = __webpack_require__(28);
+ var _picker = __webpack_require__(30);
var _picker2 = _interopRequireDefault(_picker);
@@ -11492,7 +12577,7 @@
/***/
}),
-/* 60 */
+/* 78 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -11506,7 +12591,7 @@
var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
- var _picker = __webpack_require__(28);
+ var _picker = __webpack_require__(30);
var _picker2 = _interopRequireDefault(_picker);
@@ -11551,7 +12636,7 @@
/***/
}),
-/* 61 */
+/* 79 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -11631,7 +12716,7 @@
/***/
}),
-/* 62 */
+/* 80 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -11655,17 +12740,17 @@
var _emitter2 = _interopRequireDefault(_emitter);
- var _base = __webpack_require__(43);
+ var _base = __webpack_require__(49);
var _base2 = _interopRequireDefault(_base);
- var _link = __webpack_require__(27);
+ var _link = __webpack_require__(29);
var _link2 = _interopRequireDefault(_link);
var _selection = __webpack_require__(15);
- var _icons = __webpack_require__(41);
+ var _icons = __webpack_require__(47);
var _icons2 = _interopRequireDefault(_icons);
@@ -11806,13 +12891,13 @@
return SnowTooltip;
}(_base.BaseTooltip);
- SnowTooltip.TEMPLATE = ['<a class="ql-preview" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join('');
+ SnowTooltip.TEMPLATE = ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join('');
exports.default = SnowTheme;
/***/
}),
-/* 63 */
+/* 81 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -11822,65 +12907,65 @@
value: true
});
- var _core = __webpack_require__(29);
+ var _core = __webpack_require__(31);
var _core2 = _interopRequireDefault(_core);
- var _align = __webpack_require__(36);
+ var _align = __webpack_require__(42);
- var _direction = __webpack_require__(38);
+ var _direction = __webpack_require__(44);
- var _indent = __webpack_require__(64);
+ var _indent = __webpack_require__(82);
- var _blockquote = __webpack_require__(65);
+ var _blockquote = __webpack_require__(83);
var _blockquote2 = _interopRequireDefault(_blockquote);
- var _header = __webpack_require__(66);
+ var _header = __webpack_require__(84);
var _header2 = _interopRequireDefault(_header);
- var _list = __webpack_require__(67);
+ var _list = __webpack_require__(85);
var _list2 = _interopRequireDefault(_list);
- var _background = __webpack_require__(37);
+ var _background = __webpack_require__(43);
- var _color = __webpack_require__(26);
+ var _color = __webpack_require__(28);
- var _font = __webpack_require__(39);
+ var _font = __webpack_require__(45);
- var _size = __webpack_require__(40);
+ var _size = __webpack_require__(46);
- var _bold = __webpack_require__(56);
+ var _bold = __webpack_require__(75);
var _bold2 = _interopRequireDefault(_bold);
- var _italic = __webpack_require__(68);
+ var _italic = __webpack_require__(86);
var _italic2 = _interopRequireDefault(_italic);
- var _link = __webpack_require__(27);
+ var _link = __webpack_require__(29);
var _link2 = _interopRequireDefault(_link);
- var _script = __webpack_require__(69);
+ var _script = __webpack_require__(87);
var _script2 = _interopRequireDefault(_script);
- var _strike = __webpack_require__(70);
+ var _strike = __webpack_require__(88);
var _strike2 = _interopRequireDefault(_strike);
- var _underline = __webpack_require__(71);
+ var _underline = __webpack_require__(89);
var _underline2 = _interopRequireDefault(_underline);
- var _image = __webpack_require__(72);
+ var _image = __webpack_require__(90);
var _image2 = _interopRequireDefault(_image);
- var _video = __webpack_require__(73);
+ var _video = __webpack_require__(91);
var _video2 = _interopRequireDefault(_video);
@@ -11888,113 +12973,116 @@
var _code2 = _interopRequireDefault(_code);
- var _formula = __webpack_require__(74);
+ var _formula = __webpack_require__(92);
var _formula2 = _interopRequireDefault(_formula);
- var _syntax = __webpack_require__(75);
+ var _syntax = __webpack_require__(93);
var _syntax2 = _interopRequireDefault(_syntax);
- var _toolbar = __webpack_require__(57);
+ var _toolbar = __webpack_require__(76);
var _toolbar2 = _interopRequireDefault(_toolbar);
- var _icons = __webpack_require__(41);
+ var _icons = __webpack_require__(47);
var _icons2 = _interopRequireDefault(_icons);
- var _picker = __webpack_require__(28);
+ var _picker = __webpack_require__(30);
var _picker2 = _interopRequireDefault(_picker);
- var _colorPicker = __webpack_require__(59);
+ var _colorPicker = __webpack_require__(77);
var _colorPicker2 = _interopRequireDefault(_colorPicker);
- var _iconPicker = __webpack_require__(60);
+ var _iconPicker = __webpack_require__(78);
var _iconPicker2 = _interopRequireDefault(_iconPicker);
- var _tooltip = __webpack_require__(61);
+ var _tooltip = __webpack_require__(79);
var _tooltip2 = _interopRequireDefault(_tooltip);
- var _bubble = __webpack_require__(108);
+ var _bubble = __webpack_require__(132);
var _bubble2 = _interopRequireDefault(_bubble);
- var _snow = __webpack_require__(62);
+ var _snow = __webpack_require__(80);
var _snow2 = _interopRequireDefault(_snow);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
_core2.default.register({
- 'attributors/attribute/direction': _direction.DirectionAttribute,
-
- 'attributors/class/align': _align.AlignClass,
- 'attributors/class/background': _background.BackgroundClass,
- 'attributors/class/color': _color.ColorClass,
- 'attributors/class/direction': _direction.DirectionClass,
- 'attributors/class/font': _font.FontClass,
- 'attributors/class/size': _size.SizeClass,
-
- 'attributors/style/align': _align.AlignStyle,
- 'attributors/style/background': _background.BackgroundStyle,
- 'attributors/style/color': _color.ColorStyle,
- 'attributors/style/direction': _direction.DirectionStyle,
- 'attributors/style/font': _font.FontStyle,
- 'attributors/style/size': _size.SizeStyle
+ "attributors/attribute/direction": _direction.DirectionAttribute,
+
+ "attributors/class/align": _align.AlignClass,
+ "attributors/class/background": _background.BackgroundClass,
+ "attributors/class/diff": _background.DiffClass,
+ "attributors/class/color": _color.ColorClass,
+ "attributors/class/direction": _direction.DirectionClass,
+ "attributors/class/font": _font.FontClass,
+ "attributors/class/size": _size.SizeClass,
+
+ "attributors/style/align": _align.AlignStyle,
+ "attributors/style/background": _background.BackgroundStyle,
+ "attributors/style/diff": _background.DiffStyle,
+ "attributors/style/color": _color.ColorStyle,
+ "attributors/style/direction": _direction.DirectionStyle,
+ "attributors/style/font": _font.FontStyle,
+ "attributors/style/size": _size.SizeStyle
}, true);
_core2.default.register({
- 'formats/align': _align.AlignClass,
- 'formats/direction': _direction.DirectionClass,
- 'formats/indent': _indent.IndentClass,
-
- 'formats/background': _background.BackgroundStyle,
- 'formats/color': _color.ColorStyle,
- 'formats/font': _font.FontClass,
- 'formats/size': _size.SizeClass,
-
- 'formats/blockquote': _blockquote2.default,
- 'formats/code-block': _code2.default,
- 'formats/header': _header2.default,
- 'formats/list': _list2.default,
-
- 'formats/bold': _bold2.default,
- 'formats/code': _code.Code,
- 'formats/italic': _italic2.default,
- 'formats/link': _link2.default,
- 'formats/script': _script2.default,
- 'formats/strike': _strike2.default,
- 'formats/underline': _underline2.default,
-
- 'formats/image': _image2.default,
- 'formats/video': _video2.default,
-
- 'formats/list/item': _list.ListItem,
-
- 'modules/formula': _formula2.default,
- 'modules/syntax': _syntax2.default,
- 'modules/toolbar': _toolbar2.default,
-
- 'themes/bubble': _bubble2.default,
- 'themes/snow': _snow2.default,
-
- 'ui/icons': _icons2.default,
- 'ui/picker': _picker2.default,
- 'ui/icon-picker': _iconPicker2.default,
- 'ui/color-picker': _colorPicker2.default,
- 'ui/tooltip': _tooltip2.default
+ "formats/align": _align.AlignClass,
+ "formats/direction": _direction.DirectionClass,
+ "formats/indent": _indent.IndentClass,
+
+ "formats/background": _background.BackgroundStyle,
+ "formats/diff": _background.DiffStyle,
+ "formats/color": _color.ColorStyle,
+ "formats/font": _font.FontClass,
+ "formats/size": _size.SizeClass,
+
+ "formats/blockquote": _blockquote2.default,
+ "formats/code-block": _code2.default,
+ "formats/header": _header2.default,
+ "formats/list": _list2.default,
+
+ "formats/bold": _bold2.default,
+ "formats/code": _code.Code,
+ "formats/italic": _italic2.default,
+ "formats/link": _link2.default,
+ "formats/script": _script2.default,
+ "formats/strike": _strike2.default,
+ "formats/underline": _underline2.default,
+
+ "formats/image": _image2.default,
+ "formats/video": _video2.default,
+
+ "formats/list/item": _list.ListItem,
+
+ "modules/formula": _formula2.default,
+ "modules/syntax": _syntax2.default,
+ "modules/toolbar": _toolbar2.default,
+
+ "themes/bubble": _bubble2.default,
+ "themes/snow": _snow2.default,
+
+ "ui/icons": _icons2.default,
+ "ui/picker": _picker2.default,
+ "ui/icon-picker": _iconPicker2.default,
+ "ui/color-picker": _colorPicker2.default,
+ "ui/tooltip": _tooltip2.default
}, true);
exports.default = _core2.default;
/***/
}),
-/* 64 */
+/* 82 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -12068,7 +13156,7 @@
/***/
}),
-/* 65 */
+/* 83 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -12109,7 +13197,7 @@
/***/
}),
-/* 66 */
+/* 84 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -12159,7 +13247,7 @@
/***/
}),
-/* 67 */
+/* 85 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -12182,7 +13270,7 @@
var _block2 = _interopRequireDefault(_block);
- var _container = __webpack_require__(25);
+ var _container = __webpack_require__(27);
var _container2 = _interopRequireDefault(_container);
@@ -12357,7 +13445,7 @@
/***/
}),
-/* 68 */
+/* 86 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -12367,7 +13455,7 @@
value: true
});
- var _bold = __webpack_require__(56);
+ var _bold = __webpack_require__(75);
var _bold2 = _interopRequireDefault(_bold);
@@ -12398,7 +13486,7 @@
/***/
}),
-/* 69 */
+/* 87 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -12463,7 +13551,7 @@
/***/
}),
-/* 70 */
+/* 88 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -12504,7 +13592,7 @@
/***/
}),
-/* 71 */
+/* 89 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -12545,7 +13633,7 @@
/***/
}),
-/* 72 */
+/* 90 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -12563,7 +13651,7 @@
var _parchment2 = _interopRequireDefault(_parchment);
- var _link = __webpack_require__(27);
+ var _link = __webpack_require__(29);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -12644,7 +13732,7 @@
/***/
}),
-/* 73 */
+/* 91 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -12660,7 +13748,7 @@
var _block = __webpack_require__(4);
- var _link = __webpack_require__(27);
+ var _link = __webpack_require__(29);
var _link2 = _interopRequireDefault(_link);
@@ -12738,7 +13826,7 @@
/***/
}),
-/* 74 */
+/* 92 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -12753,7 +13841,7 @@
var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
- var _embed = __webpack_require__(35);
+ var _embed = __webpack_require__(41);
var _embed2 = _interopRequireDefault(_embed);
@@ -12838,7 +13926,7 @@
/***/
}),
-/* 75 */
+/* 93 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -12986,231 +14074,273 @@
/***/
}),
-/* 76 */
+/* 94 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-align-left width=24 height=24 viewBox=\"0 0 24 24\"><path d=M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z /></svg>";
/***/
}),
-/* 77 */
+/* 95 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-align-center width=24 height=24 viewBox=\"0 0 24 24\"><path d=M3,3H21V5H3V3M7,7H17V9H7V7M3,11H21V13H3V11M7,15H17V17H7V15M3,19H21V21H3V19Z /></svg>";
/***/
}),
-/* 78 */
+/* 96 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-align-right width=24 height=24 viewBox=\"0 0 24 24\"><path d=M3,3H21V5H3V3M9,7H21V9H9V7M3,11H21V13H3V11M9,15H21V17H9V15M3,19H21V21H3V19Z /></svg>";
/***/
}),
-/* 79 */
+/* 97 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-align-justify width=24 height=24 viewBox=\"0 0 24 24\"><path d=M3,3H21V5H3V3M3,7H21V9H3V7M3,11H21V13H3V11M3,15H21V17H3V15M3,19H21V21H3V19Z /></svg>";
/***/
}),
-/* 80 */
+/* 98 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <g class=\"ql-fill ql-color-label\"> <polygon points=\"6 6.868 6 6 5 6 5 7 5.942 7 6 6.868\"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points=\"6.817 5 6 5 6 6 6.38 6 6.817 5\"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points=\"4 11.439 4 11 3 11 3 12 3.755 12 4 11.439\"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points=\"4.63 10 4 10 4 11 4.192 11 4.63 10\"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points=\"13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174\"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points=\"12 6.868 12 6 11.62 6 12 6.868\"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points=\"12.933 9 13 9 13 8 12.495 8 12.933 9\"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points=\"5.5 13 9 5 12.5 13\"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-color-highlight width=24 height=24 viewBox=\"0 0 24 24\"><path d=\"M4,17L6.75,14.25L6.72,14.23C6.14,13.64 6.14,12.69 6.72,12.11L11.46,7.37L15.7,11.61L10.96,16.35C10.39,16.93 9.46,16.93 8.87,16.37L8.24,17H4M15.91,2.91C16.5,2.33 17.45,2.33 18.03,2.91L20.16,5.03C20.74,5.62 20.74,6.57 20.16,7.16L16.86,10.45L12.62,6.21L15.91,2.91Z\"/></svg>";
/***/
}),
-/* 81 */
+/* 99 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <rect class=\"ql-fill ql-stroke\" height=3 width=3 x=4 y=5></rect> <rect class=\"ql-fill ql-stroke\" height=3 width=3 x=11 y=5></rect> <path class=\"ql-even ql-fill ql-stroke\" d=M7,8c0,4.031-3,5-3,5></path> <path class=\"ql-even ql-fill ql-stroke\" d=M14,8c0,4.031-3,5-3,5></path> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-quote-open width=24 height=24 viewBox=\"0 0 24 24\"><path d=M10,7L8,11H11V17H5V11L7,7H10M18,7L16,11H19V17H13V11L15,7H18Z /></svg>";
/***/
}),
-/* 82 */
+/* 100 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-bold width=24 height=24 viewBox=\"0 0 24 24\"><path d=\"M13.5,15.5H10V12.5H13.5A1.5,1.5 0 0,1 15,14A1.5,1.5 0 0,1 13.5,15.5M10,6.5H13A1.5,1.5 0 0,1 14.5,8A1.5,1.5 0 0,1 13,9.5H10M15.6,10.79C16.57,10.11 17.25,9 17.25,8C17.25,5.74 15.5,4 13.25,4H7V18H14.04C16.14,18 17.75,16.3 17.75,14.21C17.75,12.69 16.89,11.39 15.6,10.79Z\"/></svg>";
/***/
}),
-/* 83 */
+/* 101 */
/***/ (function (module, exports) {
- module.exports = "<svg class=\"\" viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-clear width=24 height=24 viewBox=\"0 0 24 24\"><path d=M6,5V5.18L8.82,8H11.22L10.5,9.68L12.6,11.78L14.21,8H20V5H6M3.27,5L2,6.27L8.97,13.24L6.5,19H9.5L11.07,15.34L16.73,21L18,19.73L3.55,5.27L3.27,5Z /></svg>";
/***/
}),
-/* 84 */
+/* 102 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=\"ql-color-label ql-stroke ql-transparent\" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points=\"5.5 11 9 3 12.5 11\"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-code-tags width=24 height=24 viewBox=\"0 0 24 24\"><path d=M14.6,16.6L19.2,12L14.6,7.4L16,6L22,12L16,18L14.6,16.6M9.4,16.6L4.8,12L9.4,7.4L8,6L2,12L8,18L9.4,16.6Z /></svg>";
/***/
}),
-/* 85 */
+/* 103 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <polygon class=\"ql-stroke ql-fill\" points=\"3 11 5 9 3 7 3 11\"></polygon> <line class=\"ql-stroke ql-fill\" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-code-braces width=24 height=24 viewBox=\"0 0 24 24\"><path d=\"M8,3A2,2 0 0,0 6,5V9A2,2 0 0,1 4,11H3V13H4A2,2 0 0,1 6,15V19A2,2 0 0,0 8,21H10V19H8V14A2,2 0 0,0 6,12A2,2 0 0,0 8,10V5H10V3M16,3A2,2 0 0,1 18,5V9A2,2 0 0,0 20,11H21V13H20A2,2 0 0,0 18,15V19A2,2 0 0,1 16,21H14V19H16V14A2,2 0 0,1 18,12A2,2 0 0,1 16,10V5H14V3H16Z\"/></svg>";
/***/
}),
-/* 86 */
+/* 104 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <polygon class=\"ql-stroke ql-fill\" points=\"15 12 13 10 15 8 15 12\"></polygon> <line class=\"ql-stroke ql-fill\" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-color-text width=24 height=24 viewBox=\"0 0 24 24\"><path d=M9.62,12L12,5.67L14.37,12M11,3L5.5,17H7.75L8.87,14H15.12L16.25,17H18.5L13,3H11Z /></svg>";
/***/
}),
-/* 87 */
+/* 105 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-textdirection-l-to-r width=24 height=24 viewBox=\"0 0 24 24\"><path d=\"M21,18L17,14V17H5V19H17V22M9,10V15H11V4H13V15H15V4H17V2H9A4,4 0 0,0 5,6A4,4 0 0,0 9,10Z\"/></svg>";
/***/
}),
-/* 88 */
+/* 106 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-textdirection-r-to-l width=24 height=24 viewBox=\"0 0 24 24\"><path d=\"M8,17V14L4,18L8,22V19H20V17M10,10V15H12V4H14V15H16V4H18V2H10A4,4 0 0,0 6,6A4,4 0 0,0 10,10Z\"/></svg>";
/***/
}),
-/* 89 */
+/* 107 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-float-center width=24 height=24 viewBox=\"0 0 24 24\"><path d=M9,7H15V13H9V7M3,3H21V5H3V3M3,15H21V17H3V15M3,19H17V21H3V19Z /></svg>";
/***/
}),
-/* 90 */
+/* 108 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform=\"translate(24 18) rotate(-180)\"/> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-float-none width=24 height=24 viewBox=\"0 0 24 24\"><path d=M3,7H9V13H3V7M3,3H21V5H3V3M21,11V13H11V11H21M3,15H17V17H3V15M3,19H21V21H3V19Z /></svg>";
/***/
}),
-/* 91 */
+/* 109 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-float-left width=24 height=24 viewBox=\"0 0 24 24\"><path d=M3,7H9V13H3V7M3,3H21V5H3V3M21,7V9H11V7H21M21,11V13H11V11H21M3,15H17V17H3V15M3,19H21V21H3V19Z /></svg>";
/***/
}),
-/* 92 */
+/* 110 */
/***/ (function (module, exports) {
- module.exports = "<svg viewBox=\"0 0 18 18\"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-float-right width=24 height=24 viewBox=\"0 0 24 24\"><path d=M15,7H21V13H15V7M3,3H21V5H3V3M13,7V9H3V7H13M9,11V13H3V11H9M3,15H17V17H3V15M3,19H21V21H3V19Z /></svg>";
/***/
}),
-/* 93 */
+/* 111 */
/***/ (function (module, exports) {
- module.exports = "<svg viewBox=\"0 0 18 18\"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-function-variant width=24 height=24 viewBox=\"0 0 24 24\"><path d=\"M12.42,5.29C11.32,5.19 10.35,6 10.25,7.11L10,10H12.82V12H9.82L9.38,17.07C9.18,19.27 7.24,20.9 5.04,20.7C3.79,20.59 2.66,19.9 2,18.83L3.5,17.33C3.83,18.38 4.96,18.97 6,18.63C6.78,18.39 7.33,17.7 7.4,16.89L7.82,12H4.82V10H8L8.27,6.93C8.46,4.73 10.39,3.1 12.6,3.28C13.86,3.39 15,4.09 15.66,5.17L14.16,6.67C13.91,5.9 13.23,5.36 12.42,5.29M22,13.65L20.59,12.24L17.76,15.07L14.93,12.24L13.5,13.65L16.35,16.5L13.5,19.31L14.93,20.72L17.76,17.89L20.59,20.72L22,19.31L19.17,16.5L22,13.65Z\"/></svg>";
/***/
}),
-/* 94 */
+/* 112 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-header-1 width=24 height=24 viewBox=\"0 0 24 24\"><path d=M3,4H5V10H9V4H11V18H9V12H5V18H3V4M14,18V16H16V6.31L13.5,7.75V5.44L16,4H18V16H20V18H14Z /></svg>";
/***/
}),
-/* 95 */
+/* 113 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class=\"ql-even ql-fill\" points=\"5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12\"></polyline> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-header-2 width=24 height=24 viewBox=\"0 0 24 24\"><path d=\"M3,4H5V10H9V4H11V18H9V12H5V18H3V4M21,18H15A2,2 0 0,1 13,16C13,15.47 13.2,15 13.54,14.64L18.41,9.41C18.78,9.05 19,8.55 19,8A2,2 0 0,0 17,6A2,2 0 0,0 15,8H13A4,4 0 0,1 17,4A4,4 0 0,1 21,8C21,9.1 20.55,10.1 19.83,10.83L15,16H21V18Z\"/></svg>";
/***/
}),
-/* 96 */
+/* 114 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=\"ql-fill ql-stroke\" points=\"3 7 3 11 5 9 3 7\"></polyline> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-header-3 width=24 height=24 viewBox=\"0 0 24 24\"><path d=\"M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H19A2,2 0 0,1 21,6V16A2,2 0 0,1 19,18H15A2,2 0 0,1 13,16V15H15V16H19V12H15V10H19V6H15V7H13V6A2,2 0 0,1 15,4Z\"/></svg>";
/***/
}),
-/* 97 */
+/* 115 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points=\"5 7 5 11 3 9 5 7\"></polyline> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-header-4 width=24 height=24 viewBox=\"0 0 24 24\"><path d=M3,4H5V10H9V4H11V18H9V12H5V18H3V4M18,18V13H13V11L18,4H20V11H21V13H20V18H18M18,11V7.42L15.45,11H18Z /></svg>";
/***/
}),
-/* 98 */
+/* 116 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class=\"ql-even ql-stroke\" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class=\"ql-even ql-stroke\" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-header-5 width=24 height=24 viewBox=\"0 0 24 24\"><path d=\"M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H20V6H15V10H17A4,4 0 0,1 21,14A4,4 0 0,1 17,18H15A2,2 0 0,1 13,16V15H15V16H17A2,2 0 0,0 19,14A2,2 0 0,0 17,12H15A2,2 0 0,1 13,10V6A2,2 0 0,1 15,4Z\"/></svg>";
/***/
}),
-/* 99 */
+/* 117 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class=\"ql-stroke ql-thin\" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class=\"ql-stroke ql-thin\" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class=\"ql-stroke ql-thin\" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-header-6 width=24 height=24 viewBox=\"0 0 24 24\"><path d=\"M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H19A2,2 0 0,1 21,6V7H19V6H15V10H19A2,2 0 0,1 21,12V16A2,2 0 0,1 19,18H15A2,2 0 0,1 13,16V6A2,2 0 0,1 15,4M15,12V16H19V12H15Z\"/></svg>";
/***/
}),
-/* 100 */
+/* 118 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-italic width=24 height=24 viewBox=\"0 0 24 24\"><path d=M10,4V7H12.21L8.79,15H6V18H14V15H11.79L15.21,7H18V4H10Z /></svg>";
/***/
}),
-/* 101 */
+/* 119 */
/***/ (function (module, exports) {
- module.exports = "<svg class=\"\" viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points=\"3 4 4 5 6 3\"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points=\"3 14 4 15 6 13\"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points=\"3 9 4 10 6 8\"></polyline> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-image width=24 height=24 viewBox=\"0 0 24 24\"><path d=\"M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z\"/></svg>";
/***/
}),
-/* 102 */
+/* 120 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-indent-increase width=24 height=24 viewBox=\"0 0 24 24\"><path d=M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M11,17H21V15H11M3,8V16L7,12M3,21H21V19H3V21Z /></svg>";
/***/
}),
-/* 103 */
+/* 121 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-indent-decrease width=24 height=24 viewBox=\"0 0 24 24\"><path d=M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M3,21H21V19H3M3,12L7,16V8M11,17H21V15H11V17Z /></svg>";
/***/
}),
-/* 104 */
+/* 122 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=\"ql-stroke ql-thin\" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-link width=24 height=24 viewBox=\"0 0 24 24\"><path d=\"M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z\"/></svg>";
/***/
}),
-/* 105 */
+/* 123 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-list-numbered width=24 height=24 viewBox=\"0 0 24 24\"><path d=\"M7,13V11H21V13H7M7,19V17H21V19H7M7,7V5H21V7H7M3,8V5H2V4H4V8H3M2,17V16H5V20H2V19H4V18.5H3V17.5H4V17H2M4.25,10A0.75,0.75 0 0,1 5,10.75C5,10.95 4.92,11.14 4.79,11.27L3.12,13H5V14H2V13.08L4,11H2V10H4.25Z\"/></svg>";
/***/
}),
-/* 106 */
+/* 124 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-list-bulleted-square width=24 height=24 viewBox=\"0 0 24 24\"><path d=M3,4H7V8H3V4M9,5V7H21V5H9M3,10H7V14H3V10M9,11V13H21V11H9M3,16H7V20H3V16M9,17V19H21V17H9 /></svg>";
/***/
}),
-/* 107 */
+/* 125 */
/***/ (function (module, exports) {
- module.exports = "<svg viewbox=\"0 0 18 18\"> <polygon class=ql-stroke points=\"7 11 9 13 11 11 7 11\"></polygon> <polygon class=ql-stroke points=\"7 7 9 5 11 7 7 7\"></polygon> </svg>";
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-list-checks width=24 height=24 viewBox=\"0 0 24 24\"><path d=M3,5H9V11H3V5M5,7V9H7V7H5M11,7H21V9H11V7M11,15H21V17H11V15M5,20L1.5,16.5L2.91,15.09L5,17.17L9.59,12.59L11,14L5,20Z /></svg>";
/***/
}),
-/* 108 */
+/* 126 */
+/***/ (function (module, exports) {
+
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-subscript width=24 height=24 viewBox=\"0 0 24 24\"><path d=\"M16,7.41L11.41,12L16,16.59L14.59,18L10,13.41L5.41,18L4,16.59L8.59,12L4,7.41L5.41,6L10,10.59L14.59,6L16,7.41M21.85,21.03H16.97V20.03L17.86,19.23C18.62,18.58 19.18,18.04 19.56,17.6C19.93,17.16 20.12,16.75 20.13,16.36C20.14,16.08 20.05,15.85 19.86,15.66C19.68,15.5 19.39,15.38 19,15.38C18.69,15.38 18.42,15.44 18.16,15.56L17.5,15.94L17.05,14.77C17.32,14.56 17.64,14.38 18.03,14.24C18.42,14.1 18.85,14 19.32,14C20.1,14.04 20.7,14.25 21.1,14.66C21.5,15.07 21.72,15.59 21.72,16.23C21.71,16.79 21.53,17.31 21.18,17.78C20.84,18.25 20.42,18.7 19.91,19.14L19.27,19.66V19.68H21.85V21.03Z\"/></svg>";
+
+ /***/
+ }),
+/* 127 */
+/***/ (function (module, exports) {
+
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-superscript width=24 height=24 viewBox=\"0 0 24 24\"><path d=\"M16,7.41L11.41,12L16,16.59L14.59,18L10,13.41L5.41,18L4,16.59L8.59,12L4,7.41L5.41,6L10,10.59L14.59,6L16,7.41M21.85,9H16.97V8L17.86,7.18C18.62,6.54 19.18,6 19.56,5.55C19.93,5.11 20.12,4.7 20.13,4.32C20.14,4.04 20.05,3.8 19.86,3.62C19.68,3.43 19.39,3.34 19,3.33C18.69,3.34 18.42,3.4 18.16,3.5L17.5,3.89L17.05,2.72C17.32,2.5 17.64,2.33 18.03,2.19C18.42,2.05 18.85,2 19.32,2C20.1,2 20.7,2.2 21.1,2.61C21.5,3 21.72,3.54 21.72,4.18C21.71,4.74 21.53,5.26 21.18,5.73C20.84,6.21 20.42,6.66 19.91,7.09L19.27,7.61V7.63H21.85V9Z\"/></svg>";
+
+ /***/
+ }),
+/* 128 */
+/***/ (function (module, exports) {
+
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-strikethrough width=24 height=24 viewBox=\"0 0 24 24\"><path d=M3,14H21V12H3M5,4V7H10V10H14V7H19V4M10,19H14V16H10V19Z /></svg>";
+
+ /***/
+ }),
+/* 129 */
+/***/ (function (module, exports) {
+
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-format-underline width=24 height=24 viewBox=\"0 0 24 24\"><path d=\"M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z\"/></svg>";
+
+ /***/
+ }),
+/* 130 */
+/***/ (function (module, exports) {
+
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-video width=24 height=24 viewBox=\"0 0 24 24\"><path d=\"M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5Z\"/></svg>";
+
+ /***/
+ }),
+/* 131 */
+/***/ (function (module, exports) {
+
+ module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!doctype html><svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink version=1.1 id=mdi-unfold-more-horizontal width=24 height=24 viewBox=\"0 0 24 24\"><path d=M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z /></svg>";
+
+ /***/
+ }),
+/* 132 */
/***/ (function (module, exports, __webpack_require__) {
"use strict";
@@ -13233,13 +14363,13 @@
var _emitter2 = _interopRequireDefault(_emitter);
- var _base = __webpack_require__(43);
+ var _base = __webpack_require__(49);
var _base2 = _interopRequireDefault(_base);
var _selection = __webpack_require__(15);
- var _icons = __webpack_require__(41);
+ var _icons = __webpack_require__(47);
var _icons2 = _interopRequireDefault(_icons);
@@ -13377,16 +14507,24 @@
/***/
}),
-/* 109 */
+/* 133 */
/***/ (function (module, exports, __webpack_require__) {
- module.exports = __webpack_require__(63);
+ module.exports = __webpack_require__(81);
/***/
})
/******/])["default"];
});
+
+
+
+
+
+
+
+
}).call(this, require("buffer").Buffer)
}, { "buffer": 4 }], 3: [function (require, module, exports) {
'use strict'