@pie-element/rubric 1.6.3-next.821 → 1.6.3-next.829
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/configure/package.json +1 -1
- package/module/configure.js +181 -300
- package/module/element.js +1 -1
- package/module/manifest.json +2 -2
- package/module/print.js +2 -2
- package/package.json +2 -2
package/configure/package.json
CHANGED
package/module/configure.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {_dll_debug, _dll_lodash, _dll_react_dom, _dll_prop_types, _dll_react, _dll_react_dom_server, _dll_material_ui__core, _dll_classnames, _dll_material_ui__core_styles, _dll_material_ui__icons, _dll_pie_lib__render_ui} from "../../../@pie-lib/shared-module@^1.4.
|
|
2
|
-
import {_dll_pie_lib__math_toolbar} from "../../../@pie-lib/math-edit-module@^1.
|
|
3
|
-
import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.
|
|
4
|
-
import {_dll_pie_lib__drag} from "../../../@pie-lib/drag-module@^1.0.
|
|
1
|
+
import {_dll_debug, _dll_lodash, _dll_react_dom, _dll_prop_types, _dll_react, _dll_react_dom_server, _dll_material_ui__core, _dll_classnames, _dll_material_ui__core_styles, _dll_material_ui__icons, _dll_pie_lib__render_ui} from "../../../@pie-lib/shared-module@^1.4.13/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__math_toolbar} from "../../../@pie-lib/math-edit-module@^1.2.0/module/index.js";
|
|
3
|
+
import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.1.1/module/index.js";
|
|
4
|
+
import {_dll_pie_lib__drag} from "../../../@pie-lib/drag-module@^1.0.36/module/index.js";
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6
6
|
function getDefaultExportFromCjs(x) {
|
|
7
7
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -432,7 +432,7 @@ Item.prototype.run = function () {
|
|
|
432
432
|
};
|
|
433
433
|
var title = 'browser';
|
|
434
434
|
var platform = 'browser';
|
|
435
|
-
var browser$
|
|
435
|
+
var browser$7 = true;
|
|
436
436
|
var env = {};
|
|
437
437
|
var argv = [];
|
|
438
438
|
var version$1 = '';
|
|
@@ -486,7 +486,7 @@ function uptime() {
|
|
|
486
486
|
var process = {
|
|
487
487
|
nextTick: nextTick,
|
|
488
488
|
title: title,
|
|
489
|
-
browser: browser$
|
|
489
|
+
browser: browser$7,
|
|
490
490
|
env: env,
|
|
491
491
|
argv: argv,
|
|
492
492
|
version: version$1,
|
|
@@ -5218,7 +5218,7 @@ var possibleConstructorReturn$1 = function (self, call) {
|
|
|
5218
5218
|
}
|
|
5219
5219
|
return call && (typeof call === "object" || typeof call === "function") ? call : self;
|
|
5220
5220
|
};
|
|
5221
|
-
var slicedToArray$
|
|
5221
|
+
var slicedToArray$3 = (function () {
|
|
5222
5222
|
function sliceIterator(arr, i) {
|
|
5223
5223
|
var _arr = [];
|
|
5224
5224
|
var _n = true;
|
|
@@ -6078,15 +6078,15 @@ function increment(path) {
|
|
|
6078
6078
|
return newPath;
|
|
6079
6079
|
}
|
|
6080
6080
|
function isAbove(path, target) {
|
|
6081
|
-
var _crop = crop(path, target), _crop2 = slicedToArray$
|
|
6081
|
+
var _crop = crop(path, target), _crop2 = slicedToArray$3(_crop, 2), p = _crop2[0], t = _crop2[1];
|
|
6082
6082
|
return path.size < target.size && compare(p, t) === 0;
|
|
6083
6083
|
}
|
|
6084
6084
|
function isAfter(path, target) {
|
|
6085
|
-
var _crop3 = crop(path, target), _crop4 = slicedToArray$
|
|
6085
|
+
var _crop3 = crop(path, target), _crop4 = slicedToArray$3(_crop3, 2), p = _crop4[0], t = _crop4[1];
|
|
6086
6086
|
return compare(p, t) === 1;
|
|
6087
6087
|
}
|
|
6088
6088
|
function isBefore(path, target) {
|
|
6089
|
-
var _crop5 = crop(path, target), _crop6 = slicedToArray$
|
|
6089
|
+
var _crop5 = crop(path, target), _crop6 = slicedToArray$3(_crop5, 2), p = _crop6[0], t = _crop6[1];
|
|
6090
6090
|
return compare(p, t) === -1;
|
|
6091
6091
|
}
|
|
6092
6092
|
function lift$2(path) {
|
|
@@ -6636,7 +6636,7 @@ Range.fromJS = Range.fromJSON;
|
|
|
6636
6636
|
Range.prototype[MODEL_TYPES.RANGE] = true;
|
|
6637
6637
|
var MOVE_METHODS = [['move', ''], ['move', 'To'], ['move', 'ToStartOf'], ['move', 'ToEndOf']];
|
|
6638
6638
|
MOVE_METHODS.forEach(function (_ref) {
|
|
6639
|
-
var _ref2 = slicedToArray$
|
|
6639
|
+
var _ref2 = slicedToArray$3(_ref, 2), p = _ref2[0], s = _ref2[1];
|
|
6640
6640
|
Range.prototype['' + p + s] = function () {
|
|
6641
6641
|
var _ref3;
|
|
6642
6642
|
return (_ref3 = this[p + 'Anchor' + s].apply(this, arguments))[p + 'Focus' + s].apply(_ref3, arguments);
|
|
@@ -6644,7 +6644,7 @@ MOVE_METHODS.forEach(function (_ref) {
|
|
|
6644
6644
|
});
|
|
6645
6645
|
var EDGE_METHODS = [['has', 'AtStartOf', true], ['has', 'AtEndOf', true], ['has', 'Between', true], ['has', 'In', true], ['collapseTo', ''], ['move', ''], ['moveTo', ''], ['move', 'To'], ['move', 'OffsetTo']];
|
|
6646
6646
|
EDGE_METHODS.forEach(function (_ref4) {
|
|
6647
|
-
var _ref5 = slicedToArray$
|
|
6647
|
+
var _ref5 = slicedToArray$3(_ref4, 3), p = _ref5[0], s = _ref5[1], hasEdge = _ref5[2];
|
|
6648
6648
|
var anchor = p + 'Anchor' + s;
|
|
6649
6649
|
var focus = p + 'Focus' + s;
|
|
6650
6650
|
Range.prototype[p + 'Start' + s] = function () {
|
|
@@ -6661,7 +6661,7 @@ EDGE_METHODS.forEach(function (_ref4) {
|
|
|
6661
6661
|
});
|
|
6662
6662
|
var ALIAS_METHODS = [['collapseTo', 'moveTo'], ['collapseToAnchor', 'moveToAnchor'], ['collapseToFocus', 'moveToFocus'], ['collapseToStart', 'moveToStart'], ['collapseToEnd', 'moveToEnd'], ['collapseToStartOf', 'moveToStartOf'], ['collapseToEndOf', 'moveToEndOf'], ['extend', 'moveFocus'], ['extendTo', 'moveFocusTo'], ['extendToStartOf', 'moveFocusToStartOf'], ['extendToEndOf', 'moveFocusToEndOf']];
|
|
6663
6663
|
ALIAS_METHODS.forEach(function (_ref6) {
|
|
6664
|
-
var _ref7 = slicedToArray$
|
|
6664
|
+
var _ref7 = slicedToArray$3(_ref6, 2), alias = _ref7[0], method = _ref7[1];
|
|
6665
6665
|
Range.prototype[alias] = function () {
|
|
6666
6666
|
return this[method].apply(this, arguments);
|
|
6667
6667
|
};
|
|
@@ -7018,8 +7018,8 @@ var Text = (function (_Record) {
|
|
|
7018
7018
|
if (this.text === '') return this;
|
|
7019
7019
|
if (length === 0) return this;
|
|
7020
7020
|
if (index >= this.text.length) return this;
|
|
7021
|
-
var _Leaf$splitLeaves = Leaf$1.splitLeaves(this.leaves, index), _Leaf$splitLeaves2 = slicedToArray$
|
|
7022
|
-
var _Leaf$splitLeaves3 = Leaf$1.splitLeaves(bundle, length), _Leaf$splitLeaves4 = slicedToArray$
|
|
7021
|
+
var _Leaf$splitLeaves = Leaf$1.splitLeaves(this.leaves, index), _Leaf$splitLeaves2 = slicedToArray$3(_Leaf$splitLeaves, 2), before = _Leaf$splitLeaves2[0], bundle = _Leaf$splitLeaves2[1];
|
|
7022
|
+
var _Leaf$splitLeaves3 = Leaf$1.splitLeaves(bundle, length), _Leaf$splitLeaves4 = slicedToArray$3(_Leaf$splitLeaves3, 2), middle = _Leaf$splitLeaves4[0], after = _Leaf$splitLeaves4[1];
|
|
7023
7023
|
var leaves = before.concat(middle.map(function (x) {
|
|
7024
7024
|
return x.addMarks(set$$1);
|
|
7025
7025
|
}), after);
|
|
@@ -7050,8 +7050,8 @@ var Text = (function (_Record) {
|
|
|
7050
7050
|
if (length < 1) return;
|
|
7051
7051
|
if (index >= _this2.text.length) return;
|
|
7052
7052
|
if (index !== 0 || length < _this2.text.length) {
|
|
7053
|
-
var _Leaf$splitLeaves5 = Leaf$1.splitLeaves(leaves, index), _Leaf$splitLeaves6 = slicedToArray$
|
|
7054
|
-
var _Leaf$splitLeaves7 = Leaf$1.splitLeaves(bundle, length), _Leaf$splitLeaves8 = slicedToArray$
|
|
7053
|
+
var _Leaf$splitLeaves5 = Leaf$1.splitLeaves(leaves, index), _Leaf$splitLeaves6 = slicedToArray$3(_Leaf$splitLeaves5, 2), before = _Leaf$splitLeaves6[0], bundle = _Leaf$splitLeaves6[1];
|
|
7054
|
+
var _Leaf$splitLeaves7 = Leaf$1.splitLeaves(bundle, length), _Leaf$splitLeaves8 = slicedToArray$3(_Leaf$splitLeaves7, 2), middle = _Leaf$splitLeaves8[0], after = _Leaf$splitLeaves8[1];
|
|
7055
7055
|
leaves = before.concat(middle.map(function (x) {
|
|
7056
7056
|
return x.addMarks(marks);
|
|
7057
7057
|
}), after);
|
|
@@ -7215,8 +7215,8 @@ var Text = (function (_Record) {
|
|
|
7215
7215
|
}
|
|
7216
7216
|
if (length <= 0) return this;
|
|
7217
7217
|
if (index >= this.text.length) return this;
|
|
7218
|
-
var _Leaf$splitLeaves9 = Leaf$1.splitLeaves(this.leaves, index), _Leaf$splitLeaves10 = slicedToArray$
|
|
7219
|
-
var _Leaf$splitLeaves11 = Leaf$1.splitLeaves(bundle, length), _Leaf$splitLeaves12 = slicedToArray$
|
|
7218
|
+
var _Leaf$splitLeaves9 = Leaf$1.splitLeaves(this.leaves, index), _Leaf$splitLeaves10 = slicedToArray$3(_Leaf$splitLeaves9, 2), before = _Leaf$splitLeaves10[0], bundle = _Leaf$splitLeaves10[1];
|
|
7219
|
+
var _Leaf$splitLeaves11 = Leaf$1.splitLeaves(bundle, length), _Leaf$splitLeaves12 = slicedToArray$3(_Leaf$splitLeaves11, 2), middle = _Leaf$splitLeaves12[0], after = _Leaf$splitLeaves12[1];
|
|
7220
7220
|
var leaves = before.concat(middle.map(function (x) {
|
|
7221
7221
|
return x.removeMark(mark);
|
|
7222
7222
|
}), after);
|
|
@@ -7243,7 +7243,7 @@ var Text = (function (_Record) {
|
|
|
7243
7243
|
}
|
|
7244
7244
|
}
|
|
7245
7245
|
}
|
|
7246
|
-
var _Leaf$splitLeaves13 = Leaf$1.splitLeaves(this.leaves, start), _Leaf$splitLeaves14 = slicedToArray$
|
|
7246
|
+
var _Leaf$splitLeaves13 = Leaf$1.splitLeaves(this.leaves, start), _Leaf$splitLeaves14 = slicedToArray$3(_Leaf$splitLeaves13, 2), before = _Leaf$splitLeaves14[0], bundle = _Leaf$splitLeaves14[1];
|
|
7247
7247
|
var after = Leaf$1.splitLeaves(bundle, length)[1];
|
|
7248
7248
|
var leaves = Leaf$1.createLeaves(before.concat(after));
|
|
7249
7249
|
if (leaves.size === 1) {
|
|
@@ -7288,8 +7288,8 @@ var Text = (function (_Record) {
|
|
|
7288
7288
|
}
|
|
7289
7289
|
if (length <= 0) return this;
|
|
7290
7290
|
if (index >= this.text.length) return this;
|
|
7291
|
-
var _Leaf$splitLeaves15 = Leaf$1.splitLeaves(this.leaves, index), _Leaf$splitLeaves16 = slicedToArray$
|
|
7292
|
-
var _Leaf$splitLeaves17 = Leaf$1.splitLeaves(bundle, length), _Leaf$splitLeaves18 = slicedToArray$
|
|
7291
|
+
var _Leaf$splitLeaves15 = Leaf$1.splitLeaves(this.leaves, index), _Leaf$splitLeaves16 = slicedToArray$3(_Leaf$splitLeaves15, 2), before = _Leaf$splitLeaves16[0], bundle = _Leaf$splitLeaves16[1];
|
|
7292
|
+
var _Leaf$splitLeaves17 = Leaf$1.splitLeaves(bundle, length), _Leaf$splitLeaves18 = slicedToArray$3(_Leaf$splitLeaves17, 2), middle = _Leaf$splitLeaves18[0], after = _Leaf$splitLeaves18[1];
|
|
7293
7293
|
var leaves = before.concat(middle.map(function (x) {
|
|
7294
7294
|
return x.updateMark(mark, newMark);
|
|
7295
7295
|
}), after);
|
|
@@ -8458,7 +8458,7 @@ var Node = (function () {
|
|
|
8458
8458
|
newPath = this.resolvePath(newPath, newIndex);
|
|
8459
8459
|
var newParentPath = PathUtils.lift(newPath);
|
|
8460
8460
|
this.assertNode(newParentPath);
|
|
8461
|
-
var _PathUtils$crop = PathUtils.crop(path, newPath), _PathUtils$crop2 = slicedToArray$
|
|
8461
|
+
var _PathUtils$crop = PathUtils.crop(path, newPath), _PathUtils$crop2 = slicedToArray$3(_PathUtils$crop, 2), p = _PathUtils$crop2[0], np = _PathUtils$crop2[1];
|
|
8462
8462
|
var position = PathUtils.compare(p, np);
|
|
8463
8463
|
if (path.size < newPath.size && position === -1) {
|
|
8464
8464
|
newPath = PathUtils.decrement(newPath, 1, p.size - 1);
|
|
@@ -8570,7 +8570,7 @@ var Node = (function () {
|
|
|
8570
8570
|
var b = void 0;
|
|
8571
8571
|
if (child.object === 'text') {
|
|
8572
8572
|
var _child$splitText = child.splitText(position);
|
|
8573
|
-
var _child$splitText2 = slicedToArray$
|
|
8573
|
+
var _child$splitText2 = slicedToArray$3(_child$splitText, 2);
|
|
8574
8574
|
a = _child$splitText2[0];
|
|
8575
8575
|
b = _child$splitText2[1];
|
|
8576
8576
|
} else {
|
|
@@ -8785,25 +8785,25 @@ var _loop = function _loop(method) {
|
|
|
8785
8785
|
return ret;
|
|
8786
8786
|
};
|
|
8787
8787
|
};
|
|
8788
|
-
var _iteratorNormalCompletion2$
|
|
8789
|
-
var _didIteratorError2$
|
|
8790
|
-
var _iteratorError2$
|
|
8788
|
+
var _iteratorNormalCompletion2$2 = true;
|
|
8789
|
+
var _didIteratorError2$2 = false;
|
|
8790
|
+
var _iteratorError2$2 = undefined;
|
|
8791
8791
|
try {
|
|
8792
|
-
for (var _iterator2$
|
|
8793
|
-
var method = _step2$
|
|
8792
|
+
for (var _iterator2$2 = ASSERTS[Symbol.iterator](), _step2$2; !(_iteratorNormalCompletion2$2 = (_step2$2 = _iterator2$2.next()).done); _iteratorNormalCompletion2$2 = true) {
|
|
8793
|
+
var method = _step2$2.value;
|
|
8794
8794
|
_loop(method);
|
|
8795
8795
|
}
|
|
8796
8796
|
} catch (err) {
|
|
8797
|
-
_didIteratorError2$
|
|
8798
|
-
_iteratorError2$
|
|
8797
|
+
_didIteratorError2$2 = true;
|
|
8798
|
+
_iteratorError2$2 = err;
|
|
8799
8799
|
} finally {
|
|
8800
8800
|
try {
|
|
8801
|
-
if (!_iteratorNormalCompletion2$
|
|
8802
|
-
_iterator2$
|
|
8801
|
+
if (!_iteratorNormalCompletion2$2 && _iterator2$2.return) {
|
|
8802
|
+
_iterator2$2.return();
|
|
8803
8803
|
}
|
|
8804
8804
|
} finally {
|
|
8805
|
-
if (_didIteratorError2$
|
|
8806
|
-
throw _iteratorError2$
|
|
8805
|
+
if (_didIteratorError2$2) {
|
|
8806
|
+
throw _iteratorError2$2;
|
|
8807
8807
|
}
|
|
8808
8808
|
}
|
|
8809
8809
|
}
|
|
@@ -10326,25 +10326,25 @@ var _loop$1 = function _loop(method) {
|
|
|
10326
10326
|
change[method + 'ByPath'].apply(change, [path].concat(args));
|
|
10327
10327
|
};
|
|
10328
10328
|
};
|
|
10329
|
-
var _iteratorNormalCompletion$
|
|
10330
|
-
var _didIteratorError$
|
|
10331
|
-
var _iteratorError$
|
|
10329
|
+
var _iteratorNormalCompletion$3 = true;
|
|
10330
|
+
var _didIteratorError$3 = false;
|
|
10331
|
+
var _iteratorError$3 = undefined;
|
|
10332
10332
|
try {
|
|
10333
|
-
for (var _iterator$
|
|
10334
|
-
var method$1 = _step$
|
|
10333
|
+
for (var _iterator$3 = CHANGES[Symbol.iterator](), _step$3; !(_iteratorNormalCompletion$3 = (_step$3 = _iterator$3.next()).done); _iteratorNormalCompletion$3 = true) {
|
|
10334
|
+
var method$1 = _step$3.value;
|
|
10335
10335
|
_loop$1(method$1);
|
|
10336
10336
|
}
|
|
10337
10337
|
} catch (err) {
|
|
10338
|
-
_didIteratorError$
|
|
10339
|
-
_iteratorError$
|
|
10338
|
+
_didIteratorError$3 = true;
|
|
10339
|
+
_iteratorError$3 = err;
|
|
10340
10340
|
} finally {
|
|
10341
10341
|
try {
|
|
10342
|
-
if (!_iteratorNormalCompletion$
|
|
10343
|
-
_iterator$
|
|
10342
|
+
if (!_iteratorNormalCompletion$3 && _iterator$3.return) {
|
|
10343
|
+
_iterator$3.return();
|
|
10344
10344
|
}
|
|
10345
10345
|
} finally {
|
|
10346
|
-
if (_didIteratorError$
|
|
10347
|
-
throw _iteratorError$
|
|
10346
|
+
if (_didIteratorError$3) {
|
|
10347
|
+
throw _iteratorError$3;
|
|
10348
10348
|
}
|
|
10349
10349
|
}
|
|
10350
10350
|
}
|
|
@@ -12635,7 +12635,7 @@ MOVE_DIRECTIONS.forEach(function (direction$$1) {
|
|
|
12635
12635
|
});
|
|
12636
12636
|
var ALIAS_METHODS$1 = [['collapseLineBackward', 'collapseToStartOfBlock'], ['collapseLineForward', 'collapseToEndOfBlock'], ['extendLineBackward', 'extendToStartOfBlock'], ['extendLineForward', 'extendToEndOfBlock']];
|
|
12637
12637
|
ALIAS_METHODS$1.forEach(function (_ref) {
|
|
12638
|
-
var _ref2 = slicedToArray$
|
|
12638
|
+
var _ref2 = slicedToArray$3(_ref, 2), alias = _ref2[0], method = _ref2[1];
|
|
12639
12639
|
Changes$4[alias] = function (change) {
|
|
12640
12640
|
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
12641
12641
|
args[_key - 1] = arguments[_key];
|
|
@@ -13443,7 +13443,7 @@ var module$1 = Object.freeze({
|
|
|
13443
13443
|
isBrowser: isBrowser,
|
|
13444
13444
|
'default': isBrowser
|
|
13445
13445
|
});
|
|
13446
|
-
var slicedToArray$
|
|
13446
|
+
var slicedToArray$2 = (function () {
|
|
13447
13447
|
function sliceIterator(arr, i) {
|
|
13448
13448
|
var _arr = [];
|
|
13449
13449
|
var _n = true;
|
|
@@ -13476,71 +13476,71 @@ var slicedToArray$3 = (function () {
|
|
|
13476
13476
|
}
|
|
13477
13477
|
};
|
|
13478
13478
|
})();
|
|
13479
|
-
var BROWSER_RULES$
|
|
13480
|
-
var browser$
|
|
13479
|
+
var BROWSER_RULES$1 = [['edge', /Edge\/([0-9\._]+)/], ['chrome', /(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/], ['firefox', /Firefox\/([0-9\.]+)(?:\s|$)/], ['opera', /Opera\/([0-9\.]+)(?:\s|$)/], ['opera', /OPR\/([0-9\.]+)(:?\s|$)$/], ['ie', /Trident\/7\.0.*rv\:([0-9\.]+)\).*Gecko$/], ['ie', /MSIE\s([0-9\.]+);.*Trident\/[4-7].0/], ['ie', /MSIE\s(7\.0)/], ['android', /Android\s([0-9\.]+)/], ['safari', /Version\/([0-9\._]+).*Safari/]];
|
|
13480
|
+
var browser$6 = void 0;
|
|
13481
13481
|
if (isBrowser) {
|
|
13482
|
-
var _iteratorNormalCompletion$
|
|
13483
|
-
var _didIteratorError$
|
|
13484
|
-
var _iteratorError$
|
|
13482
|
+
var _iteratorNormalCompletion$2 = true;
|
|
13483
|
+
var _didIteratorError$2 = false;
|
|
13484
|
+
var _iteratorError$2 = undefined;
|
|
13485
13485
|
try {
|
|
13486
|
-
for (var _iterator$
|
|
13487
|
-
var _ref$
|
|
13488
|
-
var _ref2$
|
|
13489
|
-
var name$
|
|
13490
|
-
var regexp$
|
|
13491
|
-
if (regexp$
|
|
13492
|
-
browser$
|
|
13486
|
+
for (var _iterator$2 = BROWSER_RULES$1[Symbol.iterator](), _step$2; !(_iteratorNormalCompletion$2 = (_step$2 = _iterator$2.next()).done); _iteratorNormalCompletion$2 = true) {
|
|
13487
|
+
var _ref$1 = _step$2.value;
|
|
13488
|
+
var _ref2$1 = slicedToArray$2(_ref$1, 2);
|
|
13489
|
+
var name$2 = _ref2$1[0];
|
|
13490
|
+
var regexp$1 = _ref2$1[1];
|
|
13491
|
+
if (regexp$1.test(window.navigator.userAgent)) {
|
|
13492
|
+
browser$6 = name$2;
|
|
13493
13493
|
break;
|
|
13494
13494
|
}
|
|
13495
13495
|
}
|
|
13496
13496
|
} catch (err) {
|
|
13497
|
-
_didIteratorError$
|
|
13498
|
-
_iteratorError$
|
|
13497
|
+
_didIteratorError$2 = true;
|
|
13498
|
+
_iteratorError$2 = err;
|
|
13499
13499
|
} finally {
|
|
13500
13500
|
try {
|
|
13501
|
-
if (!_iteratorNormalCompletion$
|
|
13502
|
-
_iterator$
|
|
13501
|
+
if (!_iteratorNormalCompletion$2 && _iterator$2.return) {
|
|
13502
|
+
_iterator$2.return();
|
|
13503
13503
|
}
|
|
13504
13504
|
} finally {
|
|
13505
|
-
if (_didIteratorError$
|
|
13506
|
-
throw _iteratorError$
|
|
13505
|
+
if (_didIteratorError$2) {
|
|
13506
|
+
throw _iteratorError$2;
|
|
13507
13507
|
}
|
|
13508
13508
|
}
|
|
13509
13509
|
}
|
|
13510
13510
|
}
|
|
13511
|
-
var OS_RULES$
|
|
13512
|
-
var os$
|
|
13511
|
+
var OS_RULES$1 = [['ios', /os ([\.\_\d]+) like mac os/i], ['macos', /mac os x/i], ['android', /android/i], ['firefoxos', /mozilla\/[a-z\.\_\d]+ \((?:mobile)|(?:tablet)/i], ['windows', /windows\s*(?:nt)?\s*([\.\_\d]+)/i]];
|
|
13512
|
+
var os$1 = void 0;
|
|
13513
13513
|
if (isBrowser) {
|
|
13514
|
-
var _iteratorNormalCompletion2$
|
|
13515
|
-
var _didIteratorError2$
|
|
13516
|
-
var _iteratorError2$
|
|
13514
|
+
var _iteratorNormalCompletion2$1 = true;
|
|
13515
|
+
var _didIteratorError2$1 = false;
|
|
13516
|
+
var _iteratorError2$1 = undefined;
|
|
13517
13517
|
try {
|
|
13518
|
-
for (var _iterator2$
|
|
13519
|
-
var _ref3$
|
|
13520
|
-
var _ref4$
|
|
13521
|
-
var _name$
|
|
13522
|
-
var _regexp$
|
|
13523
|
-
if (_regexp$
|
|
13524
|
-
os$
|
|
13518
|
+
for (var _iterator2$1 = OS_RULES$1[Symbol.iterator](), _step2$1; !(_iteratorNormalCompletion2$1 = (_step2$1 = _iterator2$1.next()).done); _iteratorNormalCompletion2$1 = true) {
|
|
13519
|
+
var _ref3$1 = _step2$1.value;
|
|
13520
|
+
var _ref4$1 = slicedToArray$2(_ref3$1, 2);
|
|
13521
|
+
var _name$1 = _ref4$1[0];
|
|
13522
|
+
var _regexp$1 = _ref4$1[1];
|
|
13523
|
+
if (_regexp$1.test(window.navigator.userAgent)) {
|
|
13524
|
+
os$1 = _name$1;
|
|
13525
13525
|
break;
|
|
13526
13526
|
}
|
|
13527
13527
|
}
|
|
13528
13528
|
} catch (err) {
|
|
13529
|
-
_didIteratorError2$
|
|
13530
|
-
_iteratorError2$
|
|
13529
|
+
_didIteratorError2$1 = true;
|
|
13530
|
+
_iteratorError2$1 = err;
|
|
13531
13531
|
} finally {
|
|
13532
13532
|
try {
|
|
13533
|
-
if (!_iteratorNormalCompletion2$
|
|
13534
|
-
_iterator2$
|
|
13533
|
+
if (!_iteratorNormalCompletion2$1 && _iterator2$1.return) {
|
|
13534
|
+
_iterator2$1.return();
|
|
13535
13535
|
}
|
|
13536
13536
|
} finally {
|
|
13537
|
-
if (_didIteratorError2$
|
|
13538
|
-
throw _iteratorError2$
|
|
13537
|
+
if (_didIteratorError2$1) {
|
|
13538
|
+
throw _iteratorError2$1;
|
|
13539
13539
|
}
|
|
13540
13540
|
}
|
|
13541
13541
|
}
|
|
13542
13542
|
}
|
|
13543
|
-
var FEATURE_RULES$
|
|
13543
|
+
var FEATURE_RULES$1 = [['inputeventslevel1', function (window) {
|
|
13544
13544
|
var event = window.InputEvent ? new InputEvent('input') : {};
|
|
13545
13545
|
var support = ('inputType' in event);
|
|
13546
13546
|
return support;
|
|
@@ -13550,43 +13550,44 @@ var FEATURE_RULES$2 = [['inputeventslevel1', function (window) {
|
|
|
13550
13550
|
var support = ('onbeforeinput' in element);
|
|
13551
13551
|
return support;
|
|
13552
13552
|
}]];
|
|
13553
|
-
var features$
|
|
13553
|
+
var features$1 = [];
|
|
13554
13554
|
if (isBrowser) {
|
|
13555
|
-
var _iteratorNormalCompletion3$
|
|
13556
|
-
var _didIteratorError3$
|
|
13557
|
-
var _iteratorError3$
|
|
13555
|
+
var _iteratorNormalCompletion3$1 = true;
|
|
13556
|
+
var _didIteratorError3$1 = false;
|
|
13557
|
+
var _iteratorError3$1 = undefined;
|
|
13558
13558
|
try {
|
|
13559
|
-
for (var _iterator3$
|
|
13560
|
-
var _ref5$
|
|
13561
|
-
var _ref6$
|
|
13562
|
-
var _name2$
|
|
13563
|
-
var test$
|
|
13564
|
-
if (test$
|
|
13565
|
-
features$
|
|
13559
|
+
for (var _iterator3$1 = FEATURE_RULES$1[Symbol.iterator](), _step3$1; !(_iteratorNormalCompletion3$1 = (_step3$1 = _iterator3$1.next()).done); _iteratorNormalCompletion3$1 = true) {
|
|
13560
|
+
var _ref5$1 = _step3$1.value;
|
|
13561
|
+
var _ref6$1 = slicedToArray$2(_ref5$1, 2);
|
|
13562
|
+
var _name2$1 = _ref6$1[0];
|
|
13563
|
+
var test$1 = _ref6$1[1];
|
|
13564
|
+
if (test$1(window)) {
|
|
13565
|
+
features$1.push(_name2$1);
|
|
13566
13566
|
}
|
|
13567
13567
|
}
|
|
13568
13568
|
} catch (err) {
|
|
13569
|
-
_didIteratorError3$
|
|
13570
|
-
_iteratorError3$
|
|
13569
|
+
_didIteratorError3$1 = true;
|
|
13570
|
+
_iteratorError3$1 = err;
|
|
13571
13571
|
} finally {
|
|
13572
13572
|
try {
|
|
13573
|
-
if (!_iteratorNormalCompletion3$
|
|
13574
|
-
_iterator3$
|
|
13573
|
+
if (!_iteratorNormalCompletion3$1 && _iterator3$1.return) {
|
|
13574
|
+
_iterator3$1.return();
|
|
13575
13575
|
}
|
|
13576
13576
|
} finally {
|
|
13577
|
-
if (_didIteratorError3$
|
|
13578
|
-
throw _iteratorError3$
|
|
13577
|
+
if (_didIteratorError3$1) {
|
|
13578
|
+
throw _iteratorError3$1;
|
|
13579
13579
|
}
|
|
13580
13580
|
}
|
|
13581
13581
|
}
|
|
13582
13582
|
}
|
|
13583
|
-
var IS_FIREFOX$1 = browser$
|
|
13584
|
-
var IS_SAFARI = browser$
|
|
13585
|
-
var IS_IE = browser$
|
|
13586
|
-
var IS_EDGE = browser$
|
|
13587
|
-
var IS_ANDROID = os$
|
|
13588
|
-
var IS_IOS
|
|
13589
|
-
var
|
|
13583
|
+
var IS_FIREFOX$1 = browser$6 === 'firefox';
|
|
13584
|
+
var IS_SAFARI = browser$6 === 'safari';
|
|
13585
|
+
var IS_IE = browser$6 === 'ie';
|
|
13586
|
+
var IS_EDGE = browser$6 === 'edge';
|
|
13587
|
+
var IS_ANDROID = os$1 === 'android';
|
|
13588
|
+
var IS_IOS = os$1 === 'ios';
|
|
13589
|
+
var IS_MAC$1 = os$1 === 'macos';
|
|
13590
|
+
var HAS_INPUT_EVENTS_LEVEL_2 = features$1.includes('inputeventslevel2');
|
|
13590
13591
|
var SUPPORTED_EVENTS = {
|
|
13591
13592
|
beforeinput: HAS_INPUT_EVENTS_LEVEL_2
|
|
13592
13593
|
};
|
|
@@ -13690,7 +13691,7 @@ var lib$e = {};
|
|
|
13690
13691
|
Object.defineProperty(lib$e, "__esModule", {
|
|
13691
13692
|
value: true
|
|
13692
13693
|
});
|
|
13693
|
-
var IS_MAC
|
|
13694
|
+
var IS_MAC = typeof window != 'undefined' && (/Mac|iPod|iPhone|iPad/).test(window.navigator.platform);
|
|
13694
13695
|
var MODIFIERS = {
|
|
13695
13696
|
alt: 'altKey',
|
|
13696
13697
|
control: 'ctrlKey',
|
|
@@ -13709,7 +13710,7 @@ var ALIASES = {
|
|
|
13709
13710
|
esc: 'escape',
|
|
13710
13711
|
ins: 'insert',
|
|
13711
13712
|
left: 'arrowleft',
|
|
13712
|
-
mod: IS_MAC
|
|
13713
|
+
mod: IS_MAC ? 'meta' : 'control',
|
|
13713
13714
|
opt: 'alt',
|
|
13714
13715
|
option: 'alt',
|
|
13715
13716
|
return: 'enter',
|
|
@@ -13875,146 +13876,7 @@ lib$e.parseHotkey = parseHotkey;
|
|
|
13875
13876
|
lib$e.compareHotkey = compareHotkey;
|
|
13876
13877
|
lib$e.toKeyCode = toKeyCode;
|
|
13877
13878
|
lib$e.toKeyName = toKeyName;
|
|
13878
|
-
var
|
|
13879
|
-
function sliceIterator(arr, i) {
|
|
13880
|
-
var _arr = [];
|
|
13881
|
-
var _n = true;
|
|
13882
|
-
var _d = false;
|
|
13883
|
-
var _e = undefined;
|
|
13884
|
-
try {
|
|
13885
|
-
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
|
13886
|
-
_arr.push(_s.value);
|
|
13887
|
-
if (i && _arr.length === i) break;
|
|
13888
|
-
}
|
|
13889
|
-
} catch (err) {
|
|
13890
|
-
_d = true;
|
|
13891
|
-
_e = err;
|
|
13892
|
-
} finally {
|
|
13893
|
-
try {
|
|
13894
|
-
if (!_n && _i["return"]) _i["return"]();
|
|
13895
|
-
} finally {
|
|
13896
|
-
if (_d) throw _e;
|
|
13897
|
-
}
|
|
13898
|
-
}
|
|
13899
|
-
return _arr;
|
|
13900
|
-
}
|
|
13901
|
-
return function (arr, i) {
|
|
13902
|
-
if (Array.isArray(arr)) {
|
|
13903
|
-
return arr;
|
|
13904
|
-
} else if ((Symbol.iterator in Object(arr))) {
|
|
13905
|
-
return sliceIterator(arr, i);
|
|
13906
|
-
} else {
|
|
13907
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
13908
|
-
}
|
|
13909
|
-
};
|
|
13910
|
-
})();
|
|
13911
|
-
var BROWSER_RULES$1 = [['edge', /Edge\/([0-9\._]+)/], ['chrome', /(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/], ['firefox', /Firefox\/([0-9\.]+)(?:\s|$)/], ['opera', /Opera\/([0-9\.]+)(?:\s|$)/], ['opera', /OPR\/([0-9\.]+)(:?\s|$)$/], ['ie', /Trident\/7\.0.*rv\:([0-9\.]+)\).*Gecko$/], ['ie', /MSIE\s([0-9\.]+);.*Trident\/[4-7].0/], ['ie', /MSIE\s(7\.0)/], ['android', /Android\s([0-9\.]+)/], ['safari', /Version\/([0-9\._]+).*Safari/]];
|
|
13912
|
-
var browser$6 = void 0;
|
|
13913
|
-
if (isBrowser) {
|
|
13914
|
-
var _iteratorNormalCompletion$2 = true;
|
|
13915
|
-
var _didIteratorError$2 = false;
|
|
13916
|
-
var _iteratorError$2 = undefined;
|
|
13917
|
-
try {
|
|
13918
|
-
for (var _iterator$2 = BROWSER_RULES$1[Symbol.iterator](), _step$2; !(_iteratorNormalCompletion$2 = (_step$2 = _iterator$2.next()).done); _iteratorNormalCompletion$2 = true) {
|
|
13919
|
-
var _ref$1 = _step$2.value;
|
|
13920
|
-
var _ref2$1 = slicedToArray$2(_ref$1, 2);
|
|
13921
|
-
var name$2 = _ref2$1[0];
|
|
13922
|
-
var regexp$1 = _ref2$1[1];
|
|
13923
|
-
if (regexp$1.test(window.navigator.userAgent)) {
|
|
13924
|
-
browser$6 = name$2;
|
|
13925
|
-
break;
|
|
13926
|
-
}
|
|
13927
|
-
}
|
|
13928
|
-
} catch (err) {
|
|
13929
|
-
_didIteratorError$2 = true;
|
|
13930
|
-
_iteratorError$2 = err;
|
|
13931
|
-
} finally {
|
|
13932
|
-
try {
|
|
13933
|
-
if (!_iteratorNormalCompletion$2 && _iterator$2.return) {
|
|
13934
|
-
_iterator$2.return();
|
|
13935
|
-
}
|
|
13936
|
-
} finally {
|
|
13937
|
-
if (_didIteratorError$2) {
|
|
13938
|
-
throw _iteratorError$2;
|
|
13939
|
-
}
|
|
13940
|
-
}
|
|
13941
|
-
}
|
|
13942
|
-
}
|
|
13943
|
-
var OS_RULES$1 = [['ios', /os ([\.\_\d]+) like mac os/i], ['macos', /mac os x/i], ['android', /android/i], ['firefoxos', /mozilla\/[a-z\.\_\d]+ \((?:mobile)|(?:tablet)/i], ['windows', /windows\s*(?:nt)?\s*([\.\_\d]+)/i]];
|
|
13944
|
-
var os$1 = void 0;
|
|
13945
|
-
if (isBrowser) {
|
|
13946
|
-
var _iteratorNormalCompletion2$1 = true;
|
|
13947
|
-
var _didIteratorError2$1 = false;
|
|
13948
|
-
var _iteratorError2$1 = undefined;
|
|
13949
|
-
try {
|
|
13950
|
-
for (var _iterator2$1 = OS_RULES$1[Symbol.iterator](), _step2$1; !(_iteratorNormalCompletion2$1 = (_step2$1 = _iterator2$1.next()).done); _iteratorNormalCompletion2$1 = true) {
|
|
13951
|
-
var _ref3$1 = _step2$1.value;
|
|
13952
|
-
var _ref4$1 = slicedToArray$2(_ref3$1, 2);
|
|
13953
|
-
var _name$1 = _ref4$1[0];
|
|
13954
|
-
var _regexp$1 = _ref4$1[1];
|
|
13955
|
-
if (_regexp$1.test(window.navigator.userAgent)) {
|
|
13956
|
-
os$1 = _name$1;
|
|
13957
|
-
break;
|
|
13958
|
-
}
|
|
13959
|
-
}
|
|
13960
|
-
} catch (err) {
|
|
13961
|
-
_didIteratorError2$1 = true;
|
|
13962
|
-
_iteratorError2$1 = err;
|
|
13963
|
-
} finally {
|
|
13964
|
-
try {
|
|
13965
|
-
if (!_iteratorNormalCompletion2$1 && _iterator2$1.return) {
|
|
13966
|
-
_iterator2$1.return();
|
|
13967
|
-
}
|
|
13968
|
-
} finally {
|
|
13969
|
-
if (_didIteratorError2$1) {
|
|
13970
|
-
throw _iteratorError2$1;
|
|
13971
|
-
}
|
|
13972
|
-
}
|
|
13973
|
-
}
|
|
13974
|
-
}
|
|
13975
|
-
var FEATURE_RULES$1 = [['inputeventslevel1', function (window) {
|
|
13976
|
-
var event = window.InputEvent ? new InputEvent('input') : {};
|
|
13977
|
-
var support = ('inputType' in event);
|
|
13978
|
-
return support;
|
|
13979
|
-
}], ['inputeventslevel2', function (window) {
|
|
13980
|
-
var element = window.document.createElement('div');
|
|
13981
|
-
element.contentEditable = true;
|
|
13982
|
-
var support = ('onbeforeinput' in element);
|
|
13983
|
-
return support;
|
|
13984
|
-
}]];
|
|
13985
|
-
var features$1 = [];
|
|
13986
|
-
if (isBrowser) {
|
|
13987
|
-
var _iteratorNormalCompletion3$1 = true;
|
|
13988
|
-
var _didIteratorError3$1 = false;
|
|
13989
|
-
var _iteratorError3$1 = undefined;
|
|
13990
|
-
try {
|
|
13991
|
-
for (var _iterator3$1 = FEATURE_RULES$1[Symbol.iterator](), _step3$1; !(_iteratorNormalCompletion3$1 = (_step3$1 = _iterator3$1.next()).done); _iteratorNormalCompletion3$1 = true) {
|
|
13992
|
-
var _ref5$1 = _step3$1.value;
|
|
13993
|
-
var _ref6$1 = slicedToArray$2(_ref5$1, 2);
|
|
13994
|
-
var _name2$1 = _ref6$1[0];
|
|
13995
|
-
var test$1 = _ref6$1[1];
|
|
13996
|
-
if (test$1(window)) {
|
|
13997
|
-
features$1.push(_name2$1);
|
|
13998
|
-
}
|
|
13999
|
-
}
|
|
14000
|
-
} catch (err) {
|
|
14001
|
-
_didIteratorError3$1 = true;
|
|
14002
|
-
_iteratorError3$1 = err;
|
|
14003
|
-
} finally {
|
|
14004
|
-
try {
|
|
14005
|
-
if (!_iteratorNormalCompletion3$1 && _iterator3$1.return) {
|
|
14006
|
-
_iterator3$1.return();
|
|
14007
|
-
}
|
|
14008
|
-
} finally {
|
|
14009
|
-
if (_didIteratorError3$1) {
|
|
14010
|
-
throw _iteratorError3$1;
|
|
14011
|
-
}
|
|
14012
|
-
}
|
|
14013
|
-
}
|
|
14014
|
-
}
|
|
14015
|
-
var IS_IOS = os$1 === 'ios';
|
|
14016
|
-
var IS_MAC = os$1 === 'macos';
|
|
14017
|
-
var IS_APPLE = IS_IOS || IS_MAC;
|
|
13879
|
+
var IS_APPLE = IS_IOS || IS_MAC$1;
|
|
14018
13880
|
var isBold = isKeyHotkey_1('mod+b');
|
|
14019
13881
|
var isItalic = isKeyHotkey_1('mod+i');
|
|
14020
13882
|
var isEnter = isKeyHotkey_1('enter');
|
|
@@ -15134,7 +14996,7 @@ function findRange(native, value) {
|
|
|
15134
14996
|
return range;
|
|
15135
14997
|
}
|
|
15136
14998
|
var OVERFLOWS = ['auto', 'overlay', 'scroll'];
|
|
15137
|
-
var IS_IOS_11 = IS_IOS
|
|
14999
|
+
var IS_IOS_11 = IS_IOS && !!window.navigator.userAgent.match(/os 11_/i);
|
|
15138
15000
|
function findScrollContainer(el, window) {
|
|
15139
15001
|
var parent = el.parentNode;
|
|
15140
15002
|
var scroller = void 0;
|
|
@@ -15253,7 +15115,7 @@ var Content = (function (_React$Component) {
|
|
|
15253
15115
|
_this.componentDidMount = function () {
|
|
15254
15116
|
var window = getWindow_1(_this.element);
|
|
15255
15117
|
window.document.addEventListener('selectionchange', _this.onNativeSelectionChange);
|
|
15256
|
-
if ((IS_IOS
|
|
15118
|
+
if ((IS_IOS || IS_ANDROID) && SUPPORTED_EVENTS.beforeinput) {
|
|
15257
15119
|
_this.element.addEventListener('beforeinput', _this.onNativeBeforeInput);
|
|
15258
15120
|
}
|
|
15259
15121
|
_this.updateSelection();
|
|
@@ -15414,7 +15276,7 @@ var Content = (function (_React$Component) {
|
|
|
15414
15276
|
if (window) {
|
|
15415
15277
|
window.document.removeEventListener('selectionchange', this.onNativeSelectionChange);
|
|
15416
15278
|
}
|
|
15417
|
-
if ((IS_IOS
|
|
15279
|
+
if ((IS_IOS || IS_ANDROID) && SUPPORTED_EVENTS.beforeinput) {
|
|
15418
15280
|
this.element.removeEventListener('beforeinput', this.onNativeBeforeInput);
|
|
15419
15281
|
}
|
|
15420
15282
|
}
|
|
@@ -15959,13 +15821,13 @@ function AfterPlugin() {
|
|
|
15959
15821
|
event: event
|
|
15960
15822
|
});
|
|
15961
15823
|
var value = change.value;
|
|
15962
|
-
if (index$2.isSplitBlock(event) && !IS_IOS
|
|
15824
|
+
if (index$2.isSplitBlock(event) && !IS_IOS) {
|
|
15963
15825
|
return value.isInVoid ? change.collapseToStartOfNextText() : change.splitBlock();
|
|
15964
15826
|
}
|
|
15965
|
-
if (index$2.isDeleteCharBackward(event) && !IS_IOS
|
|
15827
|
+
if (index$2.isDeleteCharBackward(event) && !IS_IOS) {
|
|
15966
15828
|
return change.deleteCharBackward();
|
|
15967
15829
|
}
|
|
15968
|
-
if (index$2.isDeleteCharForward(event) && !IS_IOS
|
|
15830
|
+
if (index$2.isDeleteCharForward(event) && !IS_IOS) {
|
|
15969
15831
|
return change.deleteCharForward();
|
|
15970
15832
|
}
|
|
15971
15833
|
if (index$2.isDeleteLineBackward(event)) {
|
|
@@ -16173,7 +16035,7 @@ function BeforePlugin() {
|
|
|
16173
16035
|
var isDragging = false;
|
|
16174
16036
|
function onBeforeInput(event, change, editor) {
|
|
16175
16037
|
if (editor.props.readOnly) return true;
|
|
16176
|
-
if ((IS_IOS
|
|
16038
|
+
if ((IS_IOS || IS_ANDROID) && SUPPORTED_EVENTS.beforeinput) return true;
|
|
16177
16039
|
debug$6$1('onBeforeInput', {
|
|
16178
16040
|
event: event
|
|
16179
16041
|
});
|
|
@@ -16330,7 +16192,7 @@ function BeforePlugin() {
|
|
|
16330
16192
|
if (index$2.isComposing(event)) event.preventDefault();
|
|
16331
16193
|
return true;
|
|
16332
16194
|
}
|
|
16333
|
-
if (index$2.isContentEditable(event) && !IS_IOS
|
|
16195
|
+
if (index$2.isContentEditable(event) && !IS_IOS) {
|
|
16334
16196
|
event.preventDefault();
|
|
16335
16197
|
}
|
|
16336
16198
|
debug$6$1('onKeyDown', {
|
|
@@ -17285,7 +17147,7 @@ const React$z = _dll_react;
|
|
|
17285
17147
|
const classNames$6 = _dll_classnames;
|
|
17286
17148
|
const debug$j = _dll_debug;
|
|
17287
17149
|
const {withStyles: withStyles$f} = _dll_material_ui__core_styles;
|
|
17288
|
-
const _jsxFileName$t = "/home/circleci/repo/node_modules
|
|
17150
|
+
const _jsxFileName$t = "/home/circleci/repo/node_modules/editable-html/src/plugins/image/component.jsx";
|
|
17289
17151
|
const log$j = debug$j('@pie-lib:editable-html:plugins:image:component');
|
|
17290
17152
|
const size = s => s ? `${s}px` : 'auto';
|
|
17291
17153
|
class Component extends React$z.Component {
|
|
@@ -22266,7 +22128,7 @@ const React$w = _dll_react;
|
|
|
22266
22128
|
const debug$i = _dll_debug;
|
|
22267
22129
|
const classNames$5 = _dll_classnames;
|
|
22268
22130
|
const PropTypes$m = _dll_prop_types;
|
|
22269
|
-
const _jsxFileName$s = "/home/circleci/repo/node_modules
|
|
22131
|
+
const _jsxFileName$s = "/home/circleci/repo/node_modules/editable-html/src/plugins/toolbar/toolbar-buttons.jsx";
|
|
22270
22132
|
const styles$7 = () => ({
|
|
22271
22133
|
button: {
|
|
22272
22134
|
color: 'grey',
|
|
@@ -22371,7 +22233,7 @@ const PropTypes$l = _dll_prop_types;
|
|
|
22371
22233
|
const React$v = _dll_react;
|
|
22372
22234
|
const debug$h = _dll_debug;
|
|
22373
22235
|
const {withStyles: withStyles$e} = _dll_material_ui__core_styles;
|
|
22374
|
-
const _jsxFileName$r = "/home/circleci/repo/node_modules
|
|
22236
|
+
const _jsxFileName$r = "/home/circleci/repo/node_modules/editable-html/src/plugins/image/image-toolbar.jsx";
|
|
22375
22237
|
const log$h = debug$h('@pie-lib:editable-html:plugins:image:image-toolbar');
|
|
22376
22238
|
const PercentButton = ({percent, active, onClick}) => {
|
|
22377
22239
|
const label = `${percent}%`;
|
|
@@ -22542,7 +22404,7 @@ class InsertImageHandler {
|
|
|
22542
22404
|
const {Image: Image} = _dll_material_ui__icons;
|
|
22543
22405
|
const React$u = _dll_react;
|
|
22544
22406
|
const debug$f = _dll_debug;
|
|
22545
|
-
const _jsxFileName$q = "/home/circleci/repo/node_modules
|
|
22407
|
+
const _jsxFileName$q = "/home/circleci/repo/node_modules/editable-html/src/plugins/image/index.jsx";
|
|
22546
22408
|
const log$f = debug$f('@pie-lib:editable-html:plugins:image');
|
|
22547
22409
|
function ImagePlugin(opts) {
|
|
22548
22410
|
const toolbar = opts.insertImageRequested && ({
|
|
@@ -22733,7 +22595,7 @@ const {MathPreview: MathPreview} = _dll_pie_lib__math_toolbar;
|
|
|
22733
22595
|
const {MathToolbar: MathToolbar} = _dll_pie_lib__math_toolbar;
|
|
22734
22596
|
const {wrapMath: wrapMath} = _dll_pie_lib__math_rendering;
|
|
22735
22597
|
const {unWrapMath: unWrapMath} = _dll_pie_lib__math_rendering;
|
|
22736
|
-
const _jsxFileName$p = "/home/circleci/repo/node_modules
|
|
22598
|
+
const _jsxFileName$p = "/home/circleci/repo/node_modules/editable-html/src/plugins/math/index.jsx";
|
|
22737
22599
|
const log$e = debug$e('@pie-lib:editable-html:plugins:math');
|
|
22738
22600
|
const TEXT_NODE = 3;
|
|
22739
22601
|
function generateAdditionalKeys(keyData = []) {
|
|
@@ -22984,7 +22846,7 @@ const {DialogContentText: DialogContentText} = _dll_material_ui__core;
|
|
|
22984
22846
|
const {DialogActions: DialogActions} = _dll_material_ui__core;
|
|
22985
22847
|
const {Button: Button} = _dll_material_ui__core;
|
|
22986
22848
|
const {TextField: TextField} = _dll_material_ui__core;
|
|
22987
|
-
const _jsxFileName$o = "/home/circleci/repo/node_modules
|
|
22849
|
+
const _jsxFileName$o = "/home/circleci/repo/node_modules/editable-html/src/plugins/media/media-dialog.js";
|
|
22988
22850
|
const log$d = debug$d('@pie-lib:editable-html:plugins:media:dialog');
|
|
22989
22851
|
const matchYoutubeUrl = url => {
|
|
22990
22852
|
if (!url) {
|
|
@@ -23378,7 +23240,7 @@ var MediaDialog$1 = withStyles$d(styles$5)(MediaDialog);
|
|
|
23378
23240
|
const React$r = _dll_react;
|
|
23379
23241
|
const PropTypes$i = _dll_prop_types;
|
|
23380
23242
|
const {withStyles: withStyles$c} = _dll_material_ui__core_styles;
|
|
23381
|
-
const _jsxFileName$n = "/home/circleci/repo/node_modules
|
|
23243
|
+
const _jsxFileName$n = "/home/circleci/repo/node_modules/editable-html/src/plugins/media/media-toolbar.jsx";
|
|
23382
23244
|
const useStyles$2 = withStyles$c(theme => ({
|
|
23383
23245
|
root: {
|
|
23384
23246
|
position: 'relative',
|
|
@@ -23445,7 +23307,7 @@ const React$q = _dll_react;
|
|
|
23445
23307
|
const PropTypes$h = _dll_prop_types;
|
|
23446
23308
|
const classNames$4 = _dll_classnames;
|
|
23447
23309
|
const {withStyles: withStyles$b} = _dll_material_ui__core_styles;
|
|
23448
|
-
const _jsxFileName$m = "/home/circleci/repo/node_modules
|
|
23310
|
+
const _jsxFileName$m = "/home/circleci/repo/node_modules/editable-html/src/plugins/media/media-wrapper.jsx";
|
|
23449
23311
|
const useStyles$1 = withStyles$b(() => ({
|
|
23450
23312
|
root: {
|
|
23451
23313
|
position: 'relative'
|
|
@@ -23489,7 +23351,7 @@ const ReactDOM = _dll_react_dom;
|
|
|
23489
23351
|
const {Theaters: TheatersIcon} = _dll_material_ui__icons;
|
|
23490
23352
|
const {VolumeUp: VolumeUpIcon} = _dll_material_ui__icons;
|
|
23491
23353
|
const debug$c = _dll_debug;
|
|
23492
|
-
const _jsxFileName$l = "/home/circleci/repo/node_modules
|
|
23354
|
+
const _jsxFileName$l = "/home/circleci/repo/node_modules/editable-html/src/plugins/media/index.jsx";
|
|
23493
23355
|
const log$c = debug$c('@pie-lib:editable-html:plugins:image');
|
|
23494
23356
|
const removeDialogs = () => {
|
|
23495
23357
|
const prevDialogs = document.querySelectorAll('.insert-media-dialog');
|
|
@@ -24588,7 +24450,7 @@ var _default$1 = dist$1.default = EditList;
|
|
|
24588
24450
|
const React$o = _dll_react;
|
|
24589
24451
|
const PropTypes$g = _dll_prop_types;
|
|
24590
24452
|
const debug$b = _dll_debug;
|
|
24591
|
-
const _jsxFileName$k = "/home/circleci/repo/node_modules
|
|
24453
|
+
const _jsxFileName$k = "/home/circleci/repo/node_modules/editable-html/src/plugins/list/index.jsx";
|
|
24592
24454
|
const log$b = debug$b('@pie-lib:editable-html:plugins:list');
|
|
24593
24455
|
const b = (type, next, childNodes) => ({
|
|
24594
24456
|
object: 'block',
|
|
@@ -26117,7 +25979,7 @@ const {IconButton: IconButton$2} = _dll_material_ui__core;
|
|
|
26117
25979
|
const {Check: Check} = _dll_material_ui__icons;
|
|
26118
25980
|
const {withStyles: withStyles$a} = _dll_material_ui__core_styles;
|
|
26119
25981
|
const PropTypes$f = _dll_prop_types;
|
|
26120
|
-
const _jsxFileName$j = "/home/circleci/repo/node_modules
|
|
25982
|
+
const _jsxFileName$j = "/home/circleci/repo/node_modules/editable-html/src/plugins/toolbar/done-button.jsx";
|
|
26121
25983
|
const RawDoneButton = ({classes, onClick}) => React$n.createElement(IconButton$2, {
|
|
26122
25984
|
'aria-label': "Done",
|
|
26123
25985
|
className: classes.iconRoot,
|
|
@@ -26177,7 +26039,7 @@ const PropTypes$e = _dll_prop_types;
|
|
|
26177
26039
|
const React$m = _dll_react;
|
|
26178
26040
|
const {withStyles: withStyles$9} = _dll_material_ui__core_styles;
|
|
26179
26041
|
const debug$a = _dll_debug;
|
|
26180
|
-
const _jsxFileName$i = "/home/circleci/repo/node_modules
|
|
26042
|
+
const _jsxFileName$i = "/home/circleci/repo/node_modules/editable-html/src/plugins/toolbar/default-toolbar.jsx";
|
|
26181
26043
|
const log$a = debug$a('@pie-lib:editable-html:plugins:toolbar');
|
|
26182
26044
|
const ToolbarButton = props => {
|
|
26183
26045
|
const onToggle = () => {
|
|
@@ -26285,7 +26147,7 @@ const toolbarStyles = () => ({
|
|
|
26285
26147
|
var DefaultToolbar$1 = withStyles$9(toolbarStyles)(DefaultToolbar);
|
|
26286
26148
|
const React$l = _dll_react;
|
|
26287
26149
|
const {withStyles: withStyles$8} = _dll_material_ui__core_styles;
|
|
26288
|
-
const _jsxFileName$h = "/home/circleci/repo/node_modules
|
|
26150
|
+
const _jsxFileName$h = "/home/circleci/repo/node_modules/editable-html/src/plugins/table/icons/index.jsx";
|
|
26289
26151
|
const styles$3 = {
|
|
26290
26152
|
icon: {
|
|
26291
26153
|
fill: 'grey',
|
|
@@ -26365,7 +26227,7 @@ const {withStyles: withStyles$7} = _dll_material_ui__core_styles;
|
|
|
26365
26227
|
const {BorderAll: BorderAll} = _dll_material_ui__icons;
|
|
26366
26228
|
const PropTypes$d = _dll_prop_types;
|
|
26367
26229
|
const debug$9 = _dll_debug;
|
|
26368
|
-
const _jsxFileName$g = "/home/circleci/repo/node_modules
|
|
26230
|
+
const _jsxFileName$g = "/home/circleci/repo/node_modules/editable-html/src/plugins/table/table-toolbar.jsx";
|
|
26369
26231
|
const log$9 = debug$9('@pie-lib:editable-html:plugins:table-toolbar');
|
|
26370
26232
|
class TableToolbar extends React$k.Component {
|
|
26371
26233
|
constructor(...args) {
|
|
@@ -26983,7 +26845,7 @@ const debug$8 = _dll_debug;
|
|
|
26983
26845
|
const {GridOn: GridOn} = _dll_material_ui__icons;
|
|
26984
26846
|
const PropTypes$c = _dll_prop_types;
|
|
26985
26847
|
const {withStyles: withStyles$6} = _dll_material_ui__core_styles;
|
|
26986
|
-
const _jsxFileName$f = "/home/circleci/repo/node_modules
|
|
26848
|
+
const _jsxFileName$f = "/home/circleci/repo/node_modules/editable-html/src/plugins/table/index.jsx";
|
|
26987
26849
|
const log$8 = debug$8('@pie-lib:editable-html:plugins:table');
|
|
26988
26850
|
const Table = withStyles$6(() => ({
|
|
26989
26851
|
table: {}
|
|
@@ -27428,7 +27290,7 @@ const PropTypes$b = _dll_prop_types;
|
|
|
27428
27290
|
const {ChevronRight: ChevronRight} = _dll_material_ui__icons;
|
|
27429
27291
|
const {MoreVert: MoreVert} = _dll_material_ui__icons;
|
|
27430
27292
|
const {withStyles: withStyles$5} = _dll_material_ui__core_styles;
|
|
27431
|
-
const _jsxFileName$e = "/home/circleci/repo/node_modules
|
|
27293
|
+
const _jsxFileName$e = "/home/circleci/repo/node_modules/editable-html/src/plugins/respArea/icons/index.jsx";
|
|
27432
27294
|
const getRotate = direction => {
|
|
27433
27295
|
switch (direction) {
|
|
27434
27296
|
case 'down':
|
|
@@ -27510,7 +27372,7 @@ const ToolbarIcon = withStyles$5({
|
|
|
27510
27372
|
}, "+ Response Area"));
|
|
27511
27373
|
const React$h = _dll_react;
|
|
27512
27374
|
const PropTypes$a = _dll_prop_types;
|
|
27513
|
-
const _jsxFileName$d = "/home/circleci/repo/node_modules
|
|
27375
|
+
const _jsxFileName$d = "/home/circleci/repo/node_modules/editable-html/src/plugins/respArea/inline-dropdown/index.jsx";
|
|
27514
27376
|
const InlineDropdown = ({attributes, selectedItem}) => {
|
|
27515
27377
|
const html = selectedItem || '<div> </div>';
|
|
27516
27378
|
return React$h.createElement('span', {
|
|
@@ -27586,7 +27448,7 @@ const classnames = _dll_classnames;
|
|
|
27586
27448
|
const {DragSource: DragSource} = _dll_pie_lib__drag;
|
|
27587
27449
|
const {DropTarget: DropTarget} = _dll_pie_lib__drag;
|
|
27588
27450
|
const {renderMath: renderMath} = _dll_pie_lib__math_rendering;
|
|
27589
|
-
const _jsxFileName$c = "/home/circleci/repo/node_modules
|
|
27451
|
+
const _jsxFileName$c = "/home/circleci/repo/node_modules/editable-html/src/plugins/respArea/drag-in-the-blank/choice.jsx";
|
|
27590
27452
|
const useStyles = withStyles$4(theme => ({
|
|
27591
27453
|
content: {
|
|
27592
27454
|
border: `solid 0px ${theme.palette.primary.main}`
|
|
@@ -27766,7 +27628,7 @@ var DragDropTile = DragSource('drag-in-the-blank-choice', tileSource, (connect,
|
|
|
27766
27628
|
}))(DropTile);
|
|
27767
27629
|
const React$f = _dll_react;
|
|
27768
27630
|
const PropTypes$8 = _dll_prop_types;
|
|
27769
|
-
const _jsxFileName$b = "/home/circleci/repo/node_modules
|
|
27631
|
+
const _jsxFileName$b = "/home/circleci/repo/node_modules/editable-html/src/plugins/respArea/drag-in-the-blank/index.jsx";
|
|
27770
27632
|
const onValueChange = (nodeProps, n, value) => {
|
|
27771
27633
|
const val = nodeProps.editor.value;
|
|
27772
27634
|
const change = val.change();
|
|
@@ -27835,7 +27697,7 @@ DragDrop.propTypes = {
|
|
|
27835
27697
|
};
|
|
27836
27698
|
const React$e = _dll_react;
|
|
27837
27699
|
const PropTypes$7 = _dll_prop_types;
|
|
27838
|
-
const _jsxFileName$a = "/home/circleci/repo/node_modules
|
|
27700
|
+
const _jsxFileName$a = "/home/circleci/repo/node_modules/editable-html/src/plugins/respArea/explicit-constructed-response/index.jsx";
|
|
27839
27701
|
const ExplicitConstructedResponse = props => {
|
|
27840
27702
|
const {attributes, value, error} = props;
|
|
27841
27703
|
return React$e.createElement('span', {
|
|
@@ -27917,7 +27779,7 @@ const getDefaultElement = (opts, index) => {
|
|
|
27917
27779
|
const React$d = _dll_react;
|
|
27918
27780
|
const debug$7 = _dll_debug;
|
|
27919
27781
|
const {isUndefined: isUndefined} = _dll_lodash;
|
|
27920
|
-
const _jsxFileName$9 = "/home/circleci/repo/node_modules
|
|
27782
|
+
const _jsxFileName$9 = "/home/circleci/repo/node_modules/editable-html/src/plugins/respArea/index.jsx";
|
|
27921
27783
|
const log$7 = debug$7('@pie-lib:editable-html:plugins:respArea');
|
|
27922
27784
|
const lastIndexMap = {};
|
|
27923
27785
|
const elTypesMap = {
|
|
@@ -27994,14 +27856,18 @@ function ResponseAreaPlugin(opts) {
|
|
|
27994
27856
|
const {attributes, node: n} = props;
|
|
27995
27857
|
if (n.type === 'explicit_constructed_response') {
|
|
27996
27858
|
const data = n.data.toJSON();
|
|
27859
|
+
let error;
|
|
27860
|
+
if (opts.error) {
|
|
27861
|
+
error = opts.error();
|
|
27862
|
+
}
|
|
27997
27863
|
return React$d.createElement(ExplicitConstructedResponse, {
|
|
27998
27864
|
attributes: attributes,
|
|
27999
27865
|
value: data.value,
|
|
28000
|
-
error:
|
|
27866
|
+
error: error && error[data.index] && error[data.index][0],
|
|
28001
27867
|
__self: this,
|
|
28002
27868
|
__source: {
|
|
28003
27869
|
fileName: _jsxFileName$9,
|
|
28004
|
-
lineNumber:
|
|
27870
|
+
lineNumber: 107
|
|
28005
27871
|
}
|
|
28006
27872
|
});
|
|
28007
27873
|
}
|
|
@@ -28016,7 +27882,7 @@ function ResponseAreaPlugin(opts) {
|
|
|
28016
27882
|
__self: this,
|
|
28017
27883
|
__source: {
|
|
28018
27884
|
fileName: _jsxFileName$9,
|
|
28019
|
-
lineNumber:
|
|
27885
|
+
lineNumber: 119
|
|
28020
27886
|
}
|
|
28021
27887
|
});
|
|
28022
27888
|
}
|
|
@@ -28028,7 +27894,7 @@ function ResponseAreaPlugin(opts) {
|
|
|
28028
27894
|
__self: this,
|
|
28029
27895
|
__source: {
|
|
28030
27896
|
fileName: _jsxFileName$9,
|
|
28031
|
-
lineNumber:
|
|
27897
|
+
lineNumber: 126
|
|
28032
27898
|
}
|
|
28033
27899
|
});
|
|
28034
27900
|
}
|
|
@@ -28125,7 +27991,7 @@ const serialization = {
|
|
|
28125
27991
|
__self: this,
|
|
28126
27992
|
__source: {
|
|
28127
27993
|
fileName: _jsxFileName$9,
|
|
28128
|
-
lineNumber:
|
|
27994
|
+
lineNumber: 231
|
|
28129
27995
|
}
|
|
28130
27996
|
});
|
|
28131
27997
|
}
|
|
@@ -28139,7 +28005,7 @@ const serialization = {
|
|
|
28139
28005
|
__self: this,
|
|
28140
28006
|
__source: {
|
|
28141
28007
|
fileName: _jsxFileName$9,
|
|
28142
|
-
lineNumber:
|
|
28008
|
+
lineNumber: 237
|
|
28143
28009
|
}
|
|
28144
28010
|
});
|
|
28145
28011
|
}
|
|
@@ -28155,7 +28021,7 @@ const serialization = {
|
|
|
28155
28021
|
__self: this,
|
|
28156
28022
|
__source: {
|
|
28157
28023
|
fileName: _jsxFileName$9,
|
|
28158
|
-
lineNumber:
|
|
28024
|
+
lineNumber: 248
|
|
28159
28025
|
}
|
|
28160
28026
|
});
|
|
28161
28027
|
}
|
|
@@ -28164,7 +28030,7 @@ const serialization = {
|
|
|
28164
28030
|
};
|
|
28165
28031
|
const React$c = _dll_react;
|
|
28166
28032
|
const debug$6 = _dll_debug;
|
|
28167
|
-
const _jsxFileName$8 = "/home/circleci/repo/node_modules
|
|
28033
|
+
const _jsxFileName$8 = "/home/circleci/repo/node_modules/editable-html/src/serialization.jsx";
|
|
28168
28034
|
const log$6 = debug$6('@pie-lib:editable-html:serialization');
|
|
28169
28035
|
const BLOCK_TAGS = {
|
|
28170
28036
|
div: 'div',
|
|
@@ -28420,7 +28286,7 @@ serializer.deserialize = function deserialize(html) {
|
|
|
28420
28286
|
}
|
|
28421
28287
|
};
|
|
28422
28288
|
let i;
|
|
28423
|
-
for (i = 0; i <
|
|
28289
|
+
for (i = 0; i < 3000; i++) {
|
|
28424
28290
|
json.schema.rules.push({
|
|
28425
28291
|
match: {
|
|
28426
28292
|
object: 'document'
|
|
@@ -28438,7 +28304,14 @@ serializer.deserialize = function deserialize(html) {
|
|
|
28438
28304
|
}
|
|
28439
28305
|
return null;
|
|
28440
28306
|
};
|
|
28441
|
-
const htmlToValue = html =>
|
|
28307
|
+
const htmlToValue = html => {
|
|
28308
|
+
try {
|
|
28309
|
+
return serializer.deserialize(html);
|
|
28310
|
+
} catch (e) {
|
|
28311
|
+
console.log("Couldn't parse html: ", e);
|
|
28312
|
+
return {};
|
|
28313
|
+
}
|
|
28314
|
+
};
|
|
28442
28315
|
const valueToHtml = value => serializer.serialize(value);
|
|
28443
28316
|
const {Delete: Delete} = _dll_material_ui__icons;
|
|
28444
28317
|
const {IconButton: IconButton$1} = _dll_material_ui__core;
|
|
@@ -28448,7 +28321,7 @@ const classNames$3 = _dll_classnames;
|
|
|
28448
28321
|
const debug$5 = _dll_debug;
|
|
28449
28322
|
const {debounce: debounce} = _dll_lodash;
|
|
28450
28323
|
const {withStyles: withStyles$3} = _dll_material_ui__core_styles;
|
|
28451
|
-
const _jsxFileName$7 = "/home/circleci/repo/node_modules
|
|
28324
|
+
const _jsxFileName$7 = "/home/circleci/repo/node_modules/editable-html/src/plugins/toolbar/toolbar.jsx";
|
|
28452
28325
|
const log$5 = debug$5('@pie-lib:editable-html:plugins:toolbar');
|
|
28453
28326
|
const getCustomToolbar = (plugin, node, value, handleDone, onDataChange) => {
|
|
28454
28327
|
if (!plugin) {
|
|
@@ -28919,7 +28792,7 @@ const debug$4 = _dll_debug;
|
|
|
28919
28792
|
const {withStyles: withStyles$2} = _dll_material_ui__core_styles;
|
|
28920
28793
|
const PropTypes$5 = _dll_prop_types;
|
|
28921
28794
|
const {color: color$1} = _dll_pie_lib__render_ui;
|
|
28922
|
-
const _jsxFileName$6 = "/home/circleci/repo/node_modules
|
|
28795
|
+
const _jsxFileName$6 = "/home/circleci/repo/node_modules/editable-html/src/plugins/toolbar/editor-and-toolbar.jsx";
|
|
28923
28796
|
const log$4 = debug$4('@pie-lib:editable-html:plugins:toolbar:editor-and-toolbar');
|
|
28924
28797
|
class EditorAndToolbar extends React$a.Component {
|
|
28925
28798
|
static __initStatic() {
|
|
@@ -29115,7 +28988,7 @@ const style$1 = {
|
|
|
29115
28988
|
};
|
|
29116
28989
|
var EditorAndToolbar$1 = withStyles$2(style$1)(EditorAndToolbar);
|
|
29117
28990
|
const React$9 = _dll_react;
|
|
29118
|
-
const _jsxFileName$5 = "/home/circleci/repo/node_modules
|
|
28991
|
+
const _jsxFileName$5 = "/home/circleci/repo/node_modules/editable-html/src/plugins/toolbar/index.jsx";
|
|
29119
28992
|
function ToolbarPlugin(opts) {
|
|
29120
28993
|
return {
|
|
29121
28994
|
renderEditor: props => React$9.createElement(EditorAndToolbar$1, {
|
|
@@ -29150,7 +29023,7 @@ const {FormatUnderlined: Underline} = _dll_material_ui__icons;
|
|
|
29150
29023
|
const React$8 = _dll_react;
|
|
29151
29024
|
const {compact: compact} = _dll_lodash;
|
|
29152
29025
|
const debug$3 = _dll_debug;
|
|
29153
|
-
const _jsxFileName$4 = "/home/circleci/repo/node_modules
|
|
29026
|
+
const _jsxFileName$4 = "/home/circleci/repo/node_modules/editable-html/src/plugins/index.jsx";
|
|
29154
29027
|
const log$3 = debug$3('@pie-lib:editable-html:plugins');
|
|
29155
29028
|
function MarkHotkey(options) {
|
|
29156
29029
|
const {type, key, icon, tag} = options;
|
|
@@ -29268,7 +29141,7 @@ const debug$2 = _dll_debug;
|
|
|
29268
29141
|
const {withStyles: withStyles$1} = _dll_material_ui__core_styles;
|
|
29269
29142
|
const classNames$1 = _dll_classnames;
|
|
29270
29143
|
const {color: color} = _dll_pie_lib__render_ui;
|
|
29271
|
-
const _jsxFileName$3 = "/home/circleci/repo/node_modules
|
|
29144
|
+
const _jsxFileName$3 = "/home/circleci/repo/node_modules/editable-html/src/editor.jsx";
|
|
29272
29145
|
const log$2 = debug$2('editable-html:editor');
|
|
29273
29146
|
const defaultToolbarOpts = {
|
|
29274
29147
|
position: 'bottom',
|
|
@@ -29827,8 +29700,16 @@ const parseDegrees = html => html.replace(/\\[(]/g, '').replace(/\\[)]/g, '').re
|
|
|
29827
29700
|
const React$6 = _dll_react;
|
|
29828
29701
|
const PropTypes$3 = _dll_prop_types;
|
|
29829
29702
|
const debug$1 = _dll_debug;
|
|
29830
|
-
const _jsxFileName$2 = "/home/circleci/repo/node_modules
|
|
29703
|
+
const _jsxFileName$2 = "/home/circleci/repo/node_modules/editable-html/src/index.jsx";
|
|
29831
29704
|
const log$1 = debug$1('@pie-lib:editable-html');
|
|
29705
|
+
const reduceMultipleBrs = markup => {
|
|
29706
|
+
try {
|
|
29707
|
+
return markup.replace(/(<br\s*\/?>){3,}/gi, '<br>');
|
|
29708
|
+
} catch (e) {
|
|
29709
|
+
console.log("Couldn't remove <br/> tags: ", e);
|
|
29710
|
+
}
|
|
29711
|
+
return markup;
|
|
29712
|
+
};
|
|
29832
29713
|
class EditableHtml extends React$6.Component {
|
|
29833
29714
|
static __initStatic() {
|
|
29834
29715
|
this.propTypes = {
|
|
@@ -29858,9 +29739,9 @@ class EditableHtml extends React$6.Component {
|
|
|
29858
29739
|
if (!props.allowValidation && props.markup === this.props.markup) {
|
|
29859
29740
|
return;
|
|
29860
29741
|
}
|
|
29861
|
-
const v = htmlToValue(props.markup);
|
|
29862
|
-
const current = htmlToValue(this.props.markup);
|
|
29863
|
-
if (!v.equals(current)) {
|
|
29742
|
+
const v = htmlToValue(reduceMultipleBrs(props.markup));
|
|
29743
|
+
const current = htmlToValue(reduceMultipleBrs(this.props.markup));
|
|
29744
|
+
if (v.equals && !v.equals(current)) {
|
|
29864
29745
|
this.setState({
|
|
29865
29746
|
value: v
|
|
29866
29747
|
});
|
|
@@ -29930,7 +29811,7 @@ class EditableHtml extends React$6.Component {
|
|
|
29930
29811
|
__self: this,
|
|
29931
29812
|
__source: {
|
|
29932
29813
|
fileName: _jsxFileName$2,
|
|
29933
|
-
lineNumber:
|
|
29814
|
+
lineNumber: 134
|
|
29934
29815
|
}
|
|
29935
29816
|
});
|
|
29936
29817
|
}
|
package/module/element.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_material_ui__core_styles, _dll_material_ui__core, _dll_prop_types, _dll_react_dom, _dll_debug} from "../../../@pie-lib/shared-module@^1.4.
|
|
1
|
+
import {_dll_react, _dll_material_ui__core_styles, _dll_material_ui__core, _dll_prop_types, _dll_react_dom, _dll_debug} from "../../../@pie-lib/shared-module@^1.4.13/module/index.js";
|
|
2
2
|
const React$1 = _dll_react;
|
|
3
3
|
const {withStyles: withStyles} = _dll_material_ui__core_styles;
|
|
4
4
|
const {ListItem: ListItem} = _dll_material_ui__core;
|
package/module/manifest.json
CHANGED
package/module/print.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {_dll_react, _dll_material_ui__core_styles, _dll_material_ui__core, _dll_prop_types, _dll_react_dom, _dll_lodash, _dll_debug} from "../../../@pie-lib/shared-module@^1.4.
|
|
2
|
-
import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.
|
|
1
|
+
import {_dll_react, _dll_material_ui__core_styles, _dll_material_ui__core, _dll_prop_types, _dll_react_dom, _dll_lodash, _dll_debug} from "../../../@pie-lib/shared-module@^1.4.13/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.1.1/module/index.js";
|
|
3
3
|
const React$1 = _dll_react;
|
|
4
4
|
const {withStyles: withStyles} = _dll_material_ui__core_styles;
|
|
5
5
|
const {ListItem: ListItem} = _dll_material_ui__core;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/rubric",
|
|
3
|
-
"version": "1.6.3-next.
|
|
3
|
+
"version": "1.6.3-next.829+5dd91c01e",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "src/index.js",
|
|
6
6
|
"description": "Rubric Scoring Interaction",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"author": "pie framework developers",
|
|
16
16
|
"license": "ISC",
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "5dd91c01ea0fe14918edb281276b0ae0c388700f",
|
|
18
18
|
"scripts": {
|
|
19
19
|
"postpublish": "../../scripts/postpublish"
|
|
20
20
|
},
|