@pie-element/explicit-constructed-response 7.3.11-next.9 → 7.4.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [7.4.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response@7.3.10...@pie-element/explicit-constructed-response@7.4.0) (2025-03-27)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-lib/pie-toolbox PD-4895, PD-4093, PD-4888 ([7e6f1c5](https://github.com/pie-framework/pie-elements/commit/7e6f1c5d7bd0832f62ec8f048e04bcdbfe426779))
12
+ * **ECR:** Fix correct answer field to treat HTML as literal text PD-4913 ([698e9ed](https://github.com/pie-framework/pie-elements/commit/698e9ed4fe5b31c6daec5fe0a4164bc4c314df06))
13
+ * **ECR:** fix scoring errors PD-4912 ([ffa8987](https://github.com/pie-framework/pie-elements/commit/ffa89870ee0c7e43396927a4658400293aa47246))
14
+
15
+
16
+ ### Features
17
+
18
+ * **explicit-constructed-response:** decrease debounce duration to 200ms PD-4827 ([9bcf2c3](https://github.com/pie-framework/pie-elements/commit/9bcf2c39a330c10189583c1389ebe667cb2d182c))
19
+ * updated config so line breaks are enabled in editor [PD-4093] ([2e1978d](https://github.com/pie-framework/pie-elements/commit/2e1978db22d6e39328fff7dce8af3a494f77e2e1))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [7.3.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response@7.3.9...@pie-element/explicit-constructed-response@7.3.10) (2025-03-21)
7
26
 
8
27
 
@@ -3,6 +3,23 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [7.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@7.2.9...@pie-element/explicit-constructed-response-configure@7.3.0) (2025-03-27)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-lib/pie-toolbox PD-4895, PD-4093, PD-4888 ([7e6f1c5](https://github.com/pie-framework/pie-elements/commit/7e6f1c5d7bd0832f62ec8f048e04bcdbfe426779))
12
+ * **ECR:** Fix correct answer field to treat HTML as literal text PD-4913 ([698e9ed](https://github.com/pie-framework/pie-elements/commit/698e9ed4fe5b31c6daec5fe0a4164bc4c314df06))
13
+
14
+
15
+ ### Features
16
+
17
+ * updated config so line breaks are enabled in editor [PD-4093] ([2e1978d](https://github.com/pie-framework/pie-elements/commit/2e1978db22d6e39328fff7dce8af3a494f77e2e1))
18
+
19
+
20
+
21
+
22
+
6
23
  ## [7.2.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@7.2.8...@pie-element/explicit-constructed-response-configure@7.2.9) (2025-03-21)
7
24
 
8
25
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/explicit-constructed-response-configure",
3
- "version": "7.2.9",
3
+ "version": "7.3.0",
4
4
  "private": true,
5
5
  "main": "lib/index.js",
6
6
  "modue": "src/index.js",
@@ -8,7 +8,7 @@
8
8
  "@material-ui/core": "^3.9.2",
9
9
  "@material-ui/icons": "^3.0.1",
10
10
  "@pie-framework/pie-configure-events": "^1.3.0",
11
- "@pie-lib/pie-toolbox": "2.10.3",
11
+ "@pie-lib/pie-toolbox": "2.11.0",
12
12
  "classnames": "^2.2.6",
13
13
  "debug": "^3.1.0",
14
14
  "lodash": "^4.17.15",
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.1.22](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-controller@5.1.21...@pie-element/explicit-constructed-response-controller@5.1.22) (2025-03-27)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-lib/pie-toolbox PD-4895, PD-4093, PD-4888 ([7e6f1c5](https://github.com/pie-framework/pie-elements/commit/7e6f1c5d7bd0832f62ec8f048e04bcdbfe426779))
12
+ * **ECR:** fix scoring errors PD-4912 ([ffa8987](https://github.com/pie-framework/pie-elements/commit/ffa89870ee0c7e43396927a4658400293aa47246))
13
+
14
+
15
+
16
+
17
+
6
18
  ## [5.1.21](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-controller@5.1.20...@pie-element/explicit-constructed-response-controller@5.1.21) (2025-03-21)
7
19
 
8
20
 
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@pie-element/explicit-constructed-response-controller",
3
3
  "private": true,
4
- "version": "5.1.21",
4
+ "version": "5.1.22",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
8
8
  "author": "",
9
9
  "license": "ISC",
10
10
  "dependencies": {
11
- "@pie-lib/pie-toolbox": "2.10.3",
11
+ "@pie-lib/pie-toolbox": "2.11.0",
12
12
  "debug": "^3.1.0",
13
13
  "he": "^1.2.0",
14
14
  "lodash": "^4.17.15",
@@ -1,5 +1,5 @@
1
1
  import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.4.3/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.11.2/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.11.3/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
5
5
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
package/module/element.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.4.3/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.11.2/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.11.3/module/index.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
5
5
  e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
@@ -135088,16 +135088,16 @@ Transition.ENTERED = 3;
135088
135088
  Transition.EXITING = 4;
135089
135089
  var _default$2W = (0, _reactLifecyclesCompat.polyfill)(Transition);
135090
135090
  Transition$1.default = _default$2W;
135091
- var utils$7 = {};
135092
- Object.defineProperty(utils$7, "__esModule", {
135091
+ var utils$8 = {};
135092
+ Object.defineProperty(utils$8, "__esModule", {
135093
135093
  value: true
135094
135094
  });
135095
- utils$7.getTransitionProps = getTransitionProps;
135096
- utils$7.reflow = void 0;
135095
+ utils$8.getTransitionProps = getTransitionProps;
135096
+ utils$8.reflow = void 0;
135097
135097
  var reflow = function reflow(node) {
135098
135098
  return node.scrollTop;
135099
135099
  };
135100
- utils$7.reflow = reflow;
135100
+ utils$8.reflow = reflow;
135101
135101
  function getTransitionProps(props, options) {
135102
135102
  var timeout = props.timeout, _props$style = props.style, style = _props$style === void 0 ? {} : _props$style;
135103
135103
  return {
@@ -135124,7 +135124,7 @@ var _propTypes$1Y = _interopRequireDefault$3l(require$$9$Q);
135124
135124
  var _Transition$6 = _interopRequireDefault$3l(Transition$1);
135125
135125
  var _transitions$7 = transitions;
135126
135126
  var _withTheme$6 = _interopRequireDefault$3l(withTheme);
135127
- var _utils$1F = utils$7;
135127
+ var _utils$1F = utils$8;
135128
135128
  var styles$1H = {
135129
135129
  entering: {
135130
135130
  opacity: 1
@@ -135662,7 +135662,7 @@ var _react$2D = _interopRequireDefault$3i(require$$8$z);
135662
135662
  var _propTypes$1V = _interopRequireDefault$3i(require$$9$P);
135663
135663
  var _Transition$5 = _interopRequireDefault$3i(Transition$1);
135664
135664
  var _withTheme$5 = _interopRequireDefault$3i(withTheme);
135665
- var _utils$1D = utils$7;
135665
+ var _utils$1D = utils$8;
135666
135666
  function getScale(value) {
135667
135667
  return ("scale(").concat(value, ", ").concat(Math.pow(value, 2), ")");
135668
135668
  }
@@ -137455,7 +137455,7 @@ var _Transition$3 = _interopRequireDefault$3c(Transition$1);
137455
137455
  var _utils$1A = require$$13$b;
137456
137456
  var _withStyles$1r = _interopRequireDefault$3c(withStyles);
137457
137457
  var _transitions$6 = transitions;
137458
- var _utils2$3 = utils$7;
137458
+ var _utils2$3 = utils$8;
137459
137459
  var styles$1A = function styles(theme) {
137460
137460
  return {
137461
137461
  container: {
@@ -140162,13 +140162,13 @@ InputLabel$1.default = _default$2t;
140162
140162
  var index$1x = getDefaultExportFromCjs(InputLabel$2);
140163
140163
  var FormControl$2 = {};
140164
140164
  var FormControl$1 = {};
140165
- var utils$6 = {};
140166
- Object.defineProperty(utils$6, "__esModule", {
140165
+ var utils$7 = {};
140166
+ Object.defineProperty(utils$7, "__esModule", {
140167
140167
  value: true
140168
140168
  });
140169
- utils$6.hasValue = hasValue;
140170
- utils$6.isFilled = isFilled;
140171
- utils$6.isAdornedStart = isAdornedStart;
140169
+ utils$7.hasValue = hasValue;
140170
+ utils$7.isFilled = isFilled;
140171
+ utils$7.isAdornedStart = isAdornedStart;
140172
140172
  function hasValue(value) {
140173
140173
  return value != null && !(Array.isArray(value) && value.length === 0);
140174
140174
  }
@@ -140199,7 +140199,7 @@ var _react$2j = _interopRequireDefault$2U(require$$9$H);
140199
140199
  var _propTypes$1I = _interopRequireDefault$2U(require$$10$B);
140200
140200
  var _classnames$1j = _interopRequireDefault$2U(require$$11$t);
140201
140201
  var _utils$1t = require$$13$b;
140202
- var _utils2$2 = utils$6;
140202
+ var _utils2$2 = utils$7;
140203
140203
  var _withStyles$1k = _interopRequireDefault$2U(withStyles);
140204
140204
  var _helpers$r = helpers;
140205
140205
  var _reactHelpers$9 = reactHelpers;
@@ -145029,6 +145029,18 @@ const require$$18$3 = _dll_classnames;
145029
145029
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleImageLoad", function () {
145030
145030
  _this.updateDimensions();
145031
145031
  });
145032
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleTouchStart", function (e) {
145033
+ e.preventDefault();
145034
+ _this.touchStartTimer = setTimeout(function () {
145035
+ _this.startDrag();
145036
+ }, 300);
145037
+ });
145038
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "startDrag", function () {
145039
+ var _this$props = _this.props, connectDragSource = _this$props.connectDragSource, disabled = _this$props.disabled;
145040
+ if (!disabled) {
145041
+ connectDragSource(_this.rootRef);
145042
+ }
145043
+ });
145032
145044
  _this.state = {
145033
145045
  height: 0,
145034
145046
  width: 0
@@ -145052,6 +145064,11 @@ const require$$18$3 = _dll_classnames;
145052
145064
  key: "componentDidMount",
145053
145065
  value: function componentDidMount() {
145054
145066
  this.handleElements();
145067
+ if (this.rootRef) {
145068
+ this.rootRef.addEventListener('touchstart', this.handleTouchStart, {
145069
+ passive: false
145070
+ });
145071
+ }
145055
145072
  }
145056
145073
  }, {
145057
145074
  key: "componentDidUpdate",
@@ -145070,6 +145087,13 @@ const require$$18$3 = _dll_classnames;
145070
145087
  this.handleElements();
145071
145088
  }
145072
145089
  }
145090
+ }, {
145091
+ key: "componentWillUnmount",
145092
+ value: function componentWillUnmount() {
145093
+ if (this.rootRef) {
145094
+ this.rootRef.removeEventListener('touchstart', this.handleTouchStart);
145095
+ }
145096
+ }
145073
145097
  }, {
145074
145098
  key: "updateDimensions",
145075
145099
  value: function updateDimensions() {
@@ -145121,7 +145145,7 @@ const require$$18$3 = _dll_classnames;
145121
145145
  key: "render",
145122
145146
  value: function render() {
145123
145147
  var _this3 = this, _classnames2;
145124
- var _this$props = this.props, disabled = _this$props.disabled, choice = _this$props.choice, classes = _this$props.classes, isOver = _this$props.isOver, dragItem = _this$props.dragItem, correct = _this$props.correct;
145148
+ var _this$props2 = this.props, disabled = _this$props2.disabled, choice = _this$props2.choice, classes = _this$props2.classes, isOver = _this$props2.isOver, dragItem = _this$props2.dragItem, correct = _this$props2.correct;
145125
145149
  var draggedLabel = dragItem && isOver && dragItem.choice.value;
145126
145150
  var label = choice && choice.value;
145127
145151
  return _react["default"].createElement(_Chip["default"], {
@@ -152416,7 +152440,7 @@ var _Transition$1 = _interopRequireDefault$2o(Transition$1);
152416
152440
  var _ownerWindow = _interopRequireDefault$2o(ownerWindow$1);
152417
152441
  var _withTheme$4 = _interopRequireDefault$2o(withTheme);
152418
152442
  var _transitions$4 = transitions;
152419
- var _utils$1f = utils$7;
152443
+ var _utils$1f = utils$8;
152420
152444
  var GUTTER = 24;
152421
152445
  function getTranslateValue(props, node) {
152422
152446
  var direction = props.direction;
@@ -153717,7 +153741,7 @@ var _withFormControlContext$5 = _interopRequireDefault$2g(withFormControlContext
153717
153741
  var _withStyles$R = _interopRequireDefault$2g(withStyles);
153718
153742
  var _reactHelpers$3 = reactHelpers;
153719
153743
  var _Textarea = _interopRequireDefault$2g(Textarea$1);
153720
- var _utils2$1 = utils$6;
153744
+ var _utils2$1 = utils$7;
153721
153745
  var styles$Z = function styles(theme) {
153722
153746
  var light = theme.palette.type === 'light';
153723
153747
  var placeholder = {
@@ -159644,7 +159668,7 @@ var _classnames$q = _interopRequireDefault$1D(require$$13$5);
159644
159668
  var _warning$5 = _interopRequireDefault$1D(warning_1);
159645
159669
  var _utils$W = require$$13$b;
159646
159670
  var _Menu = _interopRequireDefault$1D(Menu$1);
159647
- var _utils2 = utils$6;
159671
+ var _utils2 = utils$7;
159648
159672
  var _reactHelpers$1 = reactHelpers;
159649
159673
  function areEqualValues(a, b) {
159650
159674
  if ((0, _typeof2.default)(b) === 'object' && b !== null) {
@@ -161294,7 +161318,7 @@ var _reactDom$2 = _interopRequireDefault$1p(require$$12$a);
161294
161318
  var _Drawer = _interopRequireWildcard$4(Drawer$1);
161295
161319
  var _transitions$1 = transitions;
161296
161320
  var _withTheme$2 = _interopRequireDefault$1p(withTheme);
161297
- var _utils$R = utils$7;
161321
+ var _utils$R = utils$8;
161298
161322
  var _NoSsr = _interopRequireDefault$1p(NoSsr$2);
161299
161323
  var _SwipeArea = _interopRequireDefault$1p(SwipeArea$1);
161300
161324
  var UNCERTAINTY_THRESHOLD = 3;
@@ -164315,7 +164339,7 @@ var _propTypes$4 = _interopRequireDefault$10(require$$9$d);
164315
164339
  var _Transition = _interopRequireDefault$10(Transition$1);
164316
164340
  var _transitions = transitions;
164317
164341
  var _withTheme = _interopRequireDefault$10(withTheme);
164318
- var _utils$G = utils$7;
164342
+ var _utils$G = utils$8;
164319
164343
  var styles$5 = {
164320
164344
  entering: {
164321
164345
  transform: 'scale(1)'
@@ -165910,13 +165934,13 @@ var greaterThanEqual = set$f({
165910
165934
  });
165911
165935
  comparison$2.greaterThanEqual = greaterThanEqual;
165912
165936
  var vars$1 = {};
165913
- var utils$5 = {};
165937
+ var utils$6 = {};
165914
165938
  const require$$3$b = _dll_lodash;
165915
165939
  var _interopRequireDefault$W = interopRequireDefault.exports;
165916
- Object.defineProperty(utils$5, "__esModule", {
165940
+ Object.defineProperty(utils$6, "__esModule", {
165917
165941
  value: true
165918
165942
  });
165919
- utils$5.transformToKeySetStructure = utils$5.toKey = utils$5.toArray = utils$5.mkSet = utils$5.extendKeySet = void 0;
165943
+ utils$6.transformToKeySetStructure = utils$6.toKey = utils$6.toArray = utils$6.mkSet = utils$6.extendKeySet = void 0;
165920
165944
  var _toConsumableArray2$2 = _interopRequireDefault$W(toConsumableArray$1.exports);
165921
165945
  var _defineProperty2$5 = _interopRequireDefault$W(defineProperty$6.exports);
165922
165946
  var _lodash = _interopRequireDefault$W(require$$3$b);
@@ -165948,13 +165972,13 @@ var mkSet = function mkSet(category) {
165948
165972
  });
165949
165973
  };
165950
165974
  };
165951
- utils$5.mkSet = mkSet;
165975
+ utils$6.mkSet = mkSet;
165952
165976
  var toArray$1 = function toArray(o) {
165953
165977
  return Object.keys(o).map(function (k) {
165954
165978
  return o[k];
165955
165979
  });
165956
165980
  };
165957
- utils$5.toArray = toArray$1;
165981
+ utils$6.toArray = toArray$1;
165958
165982
  var toKey = function toKey(category) {
165959
165983
  return function (v) {
165960
165984
  if (typeof v === 'string') {
@@ -165971,7 +165995,7 @@ var toKey = function toKey(category) {
165971
165995
  }
165972
165996
  };
165973
165997
  };
165974
- utils$5.toKey = toKey;
165998
+ utils$6.toKey = toKey;
165975
165999
  var transformToKeySetStructure = function transformToKeySetStructure() {
165976
166000
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
165977
166001
  var structure = [];
@@ -165989,7 +166013,7 @@ var transformToKeySetStructure = function transformToKeySetStructure() {
165989
166013
  }
165990
166014
  return structure;
165991
166015
  };
165992
- utils$5.transformToKeySetStructure = transformToKeySetStructure;
166016
+ utils$6.transformToKeySetStructure = transformToKeySetStructure;
165993
166017
  var latexAndNameDontExist = function latexAndNameDontExist(base) {
165994
166018
  return function (k) {
165995
166019
  var flattened = _lodash["default"].flatten(base);
@@ -166019,12 +166043,12 @@ var extendKeySet = function extendKeySet() {
166019
166043
  }
166020
166044
  return _final;
166021
166045
  };
166022
- utils$5.extendKeySet = extendKeySet;
166046
+ utils$6.extendKeySet = extendKeySet;
166023
166047
  Object.defineProperty(vars$1, "__esModule", {
166024
166048
  value: true
166025
166049
  });
166026
166050
  vars$1.y = vars$1.x = vars$1.theta = void 0;
166027
- var _utils$F = utils$5;
166051
+ var _utils$F = utils$6;
166028
166052
  var set$e = (0, _utils$F.mkSet)('vars');
166029
166053
  var x = set$e({
166030
166054
  name: 'X',
@@ -166049,7 +166073,7 @@ Object.defineProperty(fractions$2, "__esModule", {
166049
166073
  value: true
166050
166074
  });
166051
166075
  fractions$2.xOverBlank = fractions$2.xBlankBlank = fractions$2.blankOverBlank = void 0;
166052
- var _utils$E = utils$5;
166076
+ var _utils$E = utils$6;
166053
166077
  var set$d = (0, _utils$E.mkSet)('fractions');
166054
166078
  var blankOverBlank = set$d({
166055
166079
  name: 'blank/blank',
@@ -166079,7 +166103,7 @@ Object.defineProperty(exponent$2, "__esModule", {
166079
166103
  value: true
166080
166104
  });
166081
166105
  exponent$2.xToPowerOfN = exponent$2.squared = exponent$2.squareRoot = exponent$2.nthRoot = void 0;
166082
- var _utils$D = utils$5;
166106
+ var _utils$D = utils$6;
166083
166107
  var set$c = (0, _utils$D.mkSet)('exponent');
166084
166108
  var squared = set$c({
166085
166109
  name: 'Squared',
@@ -166111,7 +166135,7 @@ Object.defineProperty(misc$2, "__esModule", {
166111
166135
  value: true
166112
166136
  });
166113
166137
  misc$2.similar = misc$2.plusMinus = misc$2.percentage = misc$2.parenthesis = misc$2.notSimilar = misc$2.notEqual = misc$2.nApprox = misc$2.brackets = misc$2.approx = misc$2.absValue = void 0;
166114
- var _utils$C = utils$5;
166138
+ var _utils$C = utils$6;
166115
166139
  var set$b = (0, _utils$C.mkSet)('misc');
166116
166140
  var plusMinus = set$b({
166117
166141
  name: 'Plus or Minus',
@@ -166181,7 +166205,7 @@ Object.defineProperty(constants$2, "__esModule", {
166181
166205
  value: true
166182
166206
  });
166183
166207
  constants$2.pi = constants$2.infinity = constants$2.halfInfinity = constants$2.eulers = void 0;
166184
- var _utils$B = utils$5;
166208
+ var _utils$B = utils$6;
166185
166209
  var set$a = (0, _utils$B.mkSet)('constants');
166186
166210
  var pi = set$a({
166187
166211
  name: 'Pi',
@@ -166220,7 +166244,7 @@ Object.defineProperty(trigonometry$1, "__esModule", {
166220
166244
  value: true
166221
166245
  });
166222
166246
  trigonometry$1.tan = trigonometry$1.sin = trigonometry$1.sec = trigonometry$1.csc = trigonometry$1.cot = trigonometry$1.cos = void 0;
166223
- var _utils$A = utils$5;
166247
+ var _utils$A = utils$6;
166224
166248
  var set$9 = (0, _utils$A.mkSet)('trigonometry');
166225
166249
  var sin = set$9({
166226
166250
  name: 'sine',
@@ -166443,7 +166467,7 @@ Object.defineProperty(operators$1, "__esModule", {
166443
166467
  value: true
166444
166468
  });
166445
166469
  operators$1.circleDot = void 0;
166446
- var _utils$z = utils$5;
166470
+ var _utils$z = utils$6;
166447
166471
  var set$7 = (0, _utils$z.mkSet)('operators');
166448
166472
  var circleDot = set$7({
166449
166473
  name: 'CircleDot',
@@ -166457,7 +166481,7 @@ Object.defineProperty(log$4, "__esModule", {
166457
166481
  value: true
166458
166482
  });
166459
166483
  log$4.logSubscript = log$4.log = log$4.ln = void 0;
166460
- var _utils$y = utils$5;
166484
+ var _utils$y = utils$6;
166461
166485
  var set$6 = (0, _utils$y.mkSet)('log');
166462
166486
  var log$3 = set$6({
166463
166487
  name: 'Log',
@@ -166485,7 +166509,7 @@ Object.defineProperty(subSup$1, "__esModule", {
166485
166509
  value: true
166486
166510
  });
166487
166511
  subSup$1.superscript = subSup$1.subscript = void 0;
166488
- var _utils$x = utils$5;
166512
+ var _utils$x = utils$6;
166489
166513
  var set$5 = (0, _utils$x.mkSet)('sub-sup');
166490
166514
  var superscript = set$5({
166491
166515
  name: 'Superscript',
@@ -166504,7 +166528,7 @@ Object.defineProperty(statistics$1, "__esModule", {
166504
166528
  value: true
166505
166529
  });
166506
166530
  statistics$1.yBar = statistics$1.xBar = statistics$1.smallSigma = statistics$1.sigma = statistics$1.mu = void 0;
166507
- var _utils$w = utils$5;
166531
+ var _utils$w = utils$6;
166508
166532
  var set$4 = (0, _utils$w.mkSet)('statistics');
166509
166533
  var xBar = set$4({
166510
166534
  name: 'X Bar',
@@ -166563,7 +166587,7 @@ Object.defineProperty(basicOperators$1, "__esModule", {
166563
166587
  });
166564
166588
  basicOperators$1.plus = basicOperators$1.multiply = basicOperators$1.minus = basicOperators$1.equals = basicOperators$1.divide = void 0;
166565
166589
  var _chars$2 = chars$1;
166566
- var _utils$v = utils$5;
166590
+ var _utils$v = utils$6;
166567
166591
  var set$3 = (0, _utils$v.mkSet)('operators');
166568
166592
  var equals = set$3({
166569
166593
  write: '=',
@@ -166598,7 +166622,7 @@ Object.defineProperty(matrices$1, "__esModule", {
166598
166622
  value: true
166599
166623
  });
166600
166624
  matrices$1.singleCellMatrix = matrices$1.doubleCellMatrix = void 0;
166601
- var _utils$u = utils$5;
166625
+ var _utils$u = utils$6;
166602
166626
  var set$2 = (0, _utils$u.mkSet)('matrices');
166603
166627
  var singleCellMatrix = set$2({
166604
166628
  name: 'Single Cell Matrix',
@@ -166667,7 +166691,7 @@ Object.defineProperty(logic$1, "__esModule", {
166667
166691
  value: true
166668
166692
  });
166669
166693
  logic$1.therefore = logic$1.longDivision = void 0;
166670
- var _utils$t = utils$5;
166694
+ var _utils$t = utils$6;
166671
166695
  var set$1 = (0, _utils$t.mkSet)('logic');
166672
166696
  var therefore = set$1({
166673
166697
  name: 'Therefore',
@@ -166687,7 +166711,7 @@ Object.defineProperty(navigation, "__esModule", {
166687
166711
  });
166688
166712
  navigation.right = navigation.left = void 0;
166689
166713
  var _chars$1 = chars$1;
166690
- var _utils$s = utils$5;
166714
+ var _utils$s = utils$6;
166691
166715
  var set = (0, _utils$s.mkSet)('navigation');
166692
166716
  var left = set({
166693
166717
  label: _chars$1.LEFT_ARROW,
@@ -168150,7 +168174,7 @@ const require$$9$8 = _dll_prop_types;
168150
168174
  var _react = _interopRequireDefault(require$$8$8);
168151
168175
  var _propTypes = _interopRequireDefault(require$$9$8);
168152
168176
  var _grades = grades;
168153
- var _utils = utils$5;
168177
+ var _utils = utils$6;
168154
168178
  var _keypad = _interopRequireDefault(keypad);
168155
168179
  function _createSuper(Derived) {
168156
168180
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
@@ -168342,6 +168366,22 @@ getDefaultExportFromCjs(horizontalKeypad);
168342
168366
  exports.removeBrackets = removeBrackets;
168343
168367
  })(mathInput);
168344
168368
  getDefaultExportFromCjs(mathInput);
168369
+ var utils$5 = {};
168370
+ Object.defineProperty(utils$5, "__esModule", {
168371
+ value: true
168372
+ });
168373
+ utils$5.markFractionBaseSuperscripts = void 0;
168374
+ var markFractionBaseSuperscripts = function markFractionBaseSuperscripts() {
168375
+ document.querySelectorAll('.mq-supsub.mq-sup-only').forEach(function (supsub) {
168376
+ var prev = supsub.previousElementSibling;
168377
+ if (prev && prev.classList.contains('mq-non-leaf') && prev.querySelector('.mq-fraction')) {
168378
+ supsub.classList.add('mq-after-fraction-group');
168379
+ } else {
168380
+ supsub.classList.remove('mq-after-fraction-group');
168381
+ }
168382
+ });
168383
+ };
168384
+ utils$5.markFractionBaseSuperscripts = markFractionBaseSuperscripts;
168345
168385
  const require$$9$7 = _dll_react;
168346
168386
  const require$$10$9 = _dll_debug;
168347
168387
  const require$$11$6 = _dll_prop_types;
@@ -168371,6 +168411,7 @@ const {isEqual: require$$18$2} = _dll_lodash;
168371
168411
  var _MenuItem = _interopRequireDefault(MenuItem$2);
168372
168412
  var _Select = _interopRequireDefault(Select$2);
168373
168413
  var _isEqual = _interopRequireDefault(require$$18$2);
168414
+ var _utils = utils$5;
168374
168415
  function _createSuper(Derived) {
168375
168416
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
168376
168417
  return function _createSuperInternal() {
@@ -168493,6 +168534,7 @@ const {isEqual: require$$18$2} = _dll_lodash;
168493
168534
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onEditorChange", function (latex) {
168494
168535
  var _this$props2 = _this.props, onChange = _this$props2.onChange, noDecimal = _this$props2.noDecimal;
168495
168536
  (0, _mathInput.updateSpans)();
168537
+ (0, _utils.markFractionBaseSuperscripts)();
168496
168538
  _this.updateDisable(true);
168497
168539
  if (noDecimal && (latex.indexOf('.') !== -1 || latex.indexOf(',') !== -1) && _this.input) {
168498
168540
  _this.input.clear();
@@ -168785,6 +168827,12 @@ const {isEqual: require$$18$2} = _dll_lodash;
168785
168827
  marginBottom: '0px !important'
168786
168828
  }
168787
168829
  },
168830
+ '& .mq-math-mode .mq-fraction + .mq-supsub.mq-sup-only': {
168831
+ verticalAlign: '0.4em !important'
168832
+ },
168833
+ '& .mq-math-mode .mq-supsub.mq-sup-only.mq-after-fraction-group': {
168834
+ verticalAlign: '0.4em !important'
168835
+ },
168788
168836
  '& .mq-math-mode .mq-denominator': {
168789
168837
  marginTop: '-5px !important',
168790
168838
  padding: '0.5em 0.1em 0.1em !important'
@@ -169047,6 +169095,7 @@ const require$$11$5 = _dll_prop_types;
169047
169095
  var _styles = styles$1I;
169048
169096
  var _propTypes = _interopRequireDefault(require$$11$5);
169049
169097
  var _mathInput = mathInput;
169098
+ var _utils = utils$5;
169050
169099
  function _createSuper(Derived) {
169051
169100
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
169052
169101
  return function _createSuperInternal() {
@@ -169080,6 +169129,18 @@ const require$$11$5 = _dll_prop_types;
169080
169129
  return _super.apply(this, arguments);
169081
169130
  }
169082
169131
  (0, _createClass2["default"])(RawMathPreview, [{
169132
+ key: "componentDidMount",
169133
+ value: function componentDidMount() {
169134
+ (0, _utils.markFractionBaseSuperscripts)();
169135
+ }
169136
+ }, {
169137
+ key: "componentDidUpdate",
169138
+ value: function componentDidUpdate(prevProps) {
169139
+ if (this.props.node.data.get('latex') !== prevProps.node.data.get('latex')) {
169140
+ (0, _utils.markFractionBaseSuperscripts)();
169141
+ }
169142
+ }
169143
+ }, {
169083
169144
  key: "render",
169084
169145
  value: function render() {
169085
169146
  log('[render] data: ', this.props.node.data);
@@ -169207,6 +169268,12 @@ const require$$11$5 = _dll_prop_types;
169207
169268
  marginBottom: '0px !important'
169208
169269
  }
169209
169270
  },
169271
+ '& .mq-math-mode .mq-fraction + .mq-supsub.mq-sup-only': {
169272
+ verticalAlign: '0.4em !important'
169273
+ },
169274
+ '& .mq-math-mode .mq-supsub.mq-sup-only.mq-after-fraction-group': {
169275
+ verticalAlign: '0.4em !important'
169276
+ },
169210
169277
  '& .mq-overarrow-inner': {
169211
169278
  paddingTop: '0 !important',
169212
169279
  border: 'none !important'
@@ -176070,7 +176137,7 @@ var _interopRequireDefault$a = interopRequireDefault.exports;
176070
176137
  Object.defineProperty(serialization, "__esModule", {
176071
176138
  value: true
176072
176139
  });
176073
- serialization.valueToHtml = serialization.reduceMultipleBrs = serialization.reactAttributes = serialization.parseStyleString = serialization.htmlToValue = serialization.getBase64 = serialization.extraCSSRulesOpts = serialization.TEXT_RULE = serialization.INLINE_TAGS = void 0;
176140
+ serialization.valueToHtml = serialization.reduceMultipleBrs = serialization.reactAttributes = serialization.parseStyleString = serialization.htmlToValue = serialization.handleHtml = serialization.getBase64 = serialization.extraCSSRulesOpts = serialization.TEXT_RULE = serialization.INLINE_TAGS = void 0;
176074
176141
  var _defineProperty2$1 = _interopRequireDefault$a(defineProperty$6.exports);
176075
176142
  var _slateHtmlSerializer = _interopRequireDefault$a(require$$2$F);
176076
176143
  var _react$a = _interopRequireDefault$a(require$$3$3);
@@ -176545,9 +176612,13 @@ var fixHtmlCode = function fixHtmlCode(markup) {
176545
176612
  parseNode(wrapperEl);
176546
176613
  return wrapperEl.innerHTML;
176547
176614
  };
176615
+ var handleHtml = function handleHtml(html) {
176616
+ return fixHtmlCode(reduceRedundantNewLineCharacters(reduceMultipleBrs(html)));
176617
+ };
176618
+ serialization.handleHtml = handleHtml;
176548
176619
  var htmlToValue = function htmlToValue(html) {
176549
176620
  try {
176550
- return serializer.deserialize(fixHtmlCode(reduceRedundantNewLineCharacters(reduceMultipleBrs(html))));
176621
+ return serializer.deserialize(handleHtml(html));
176551
176622
  } catch (e) {
176552
176623
  console.log("Couldn't parse html: ", e);
176553
176624
  return {};
@@ -179253,7 +179324,7 @@ const require$$21 = _dll_debug;
179253
179324
  exports.serialization = serialization$1;
179254
179325
  var _insertImageHandler = _interopRequireDefault(insertImageHandler);
179255
179326
  var _plugins = plugins;
179256
- var _excluded = ["customPlugins"];
179327
+ var _excluded = ["customPlugins", "showParagraphs"];
179257
179328
  function _getRequireWildcardCache(nodeInterop) {
179258
179329
  if (typeof WeakMap !== "function") return null;
179259
179330
  var cacheBabelInterop = new WeakMap();
@@ -180103,11 +180174,13 @@ const require$$21 = _dll_debug;
180103
180174
  }, {
180104
180175
  key: "render",
180105
180176
  value: function render() {
180106
- var _classNames, _this4 = this, _value$document;
180107
- var _this$props2 = this.props, disabled = _this$props2.disabled, spellCheck = _this$props2.spellCheck, highlightShape = _this$props2.highlightShape, classes = _this$props2.classes, className = _this$props2.className, placeholder = _this$props2.placeholder, pluginProps = _this$props2.pluginProps, onKeyDown = _this$props2.onKeyDown;
180177
+ var _classNames, _this4 = this, _value$document, _classNames2;
180178
+ var _this$props2 = this.props, disabled = _this$props2.disabled, spellCheck = _this$props2.spellCheck, highlightShape = _this$props2.highlightShape, classes = _this$props2.classes, className = _this$props2.className;
180179
+ _this$props2.isEditor;
180180
+ var placeholder = _this$props2.placeholder, pluginProps = _this$props2.pluginProps, onKeyDown = _this$props2.onKeyDown;
180108
180181
  var _ref4 = pluginProps || ({});
180109
180182
  _ref4.customPlugins;
180110
- var otherPluginProps = (0, _objectWithoutProperties2["default"])(_ref4, _excluded);
180183
+ var showParagraphs = _ref4.showParagraphs, otherPluginProps = (0, _objectWithoutProperties2["default"])(_ref4, _excluded);
180111
180184
  var _this$state4 = this.state, value = _this$state4.value, focusedNode = _this$state4.focusedNode, toolbarOpts = _this$state4.toolbarOpts, dialog = _this$state4.dialog, scheduled = _this$state4.scheduled;
180112
180185
  log('[render] value: ', value);
180113
180186
  var sizeStyle = this.buildSizeStyle();
@@ -180163,7 +180236,7 @@ const require$$21 = _dll_debug;
180163
180236
  readOnly: disabled,
180164
180237
  spellCheck: spellCheck,
180165
180238
  autoCorrect: spellCheck,
180166
- className: (0, _classnames["default"])((0, _defineProperty2["default"])({}, classes.noPadding, toolbarOpts === null || toolbarOpts === void 0 ? void 0 : toolbarOpts.noPadding), classes.slateEditor),
180239
+ className: (0, _classnames["default"])((_classNames2 = {}, (0, _defineProperty2["default"])(_classNames2, classes.noPadding, toolbarOpts === null || toolbarOpts === void 0 ? void 0 : toolbarOpts.noPadding), (0, _defineProperty2["default"])(_classNames2, classes.showParagraph, showParagraphs && !showParagraphs.disabled), _classNames2), classes.slateEditor),
180167
180240
  style: {
180168
180241
  minHeight: sizeStyle.minHeight,
180169
180242
  height: sizeStyle.height,
@@ -180226,6 +180299,7 @@ const require$$21 = _dll_debug;
180226
180299
  autoWidthToolbar: _propTypes["default"].bool,
180227
180300
  pluginProps: _propTypes["default"].any,
180228
180301
  placeholder: _propTypes["default"].string,
180302
+ isEditor: _propTypes["default"].bool,
180229
180303
  responseAreaProps: _propTypes["default"].shape({
180230
180304
  type: _propTypes["default"].oneOf(['explicit-constructed-response', 'inline-dropdown', 'drag-in-the-blank', 'math-templated']),
180231
180305
  options: _propTypes["default"].object,
@@ -180275,7 +180349,8 @@ const require$$21 = _dll_debug;
180275
180349
  toolbarOpts: defaultToolbarOpts,
180276
180350
  responseAreaProps: defaultResponseAreaProps,
180277
180351
  languageCharactersProps: defaultLanguageCharactersProps,
180278
- extraCSSRules: null
180352
+ extraCSSRules: null,
180353
+ isEditor: false
180279
180354
  });
180280
180355
  var styles = {
180281
180356
  withBg: {
@@ -180312,6 +180387,13 @@ const require$$21 = _dll_debug;
180312
180387
  border: '1px solid #dfe2e5'
180313
180388
  }
180314
180389
  },
180390
+ showParagraph: {
180391
+ '& > div:has(+ div)::after': {
180392
+ display: 'block',
180393
+ content: '"¶"',
180394
+ color: '#146EB3'
180395
+ }
180396
+ },
180315
180397
  toolbarOnTop: {
180316
180398
  marginTop: '45px'
180317
180399
  },
@@ -180496,7 +180578,7 @@ const require$$15 = _dll_debug;
180496
180578
  });
180497
180579
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (value, done) {
180498
180580
  var html = (0, _serialization.valueToHtml)(value);
180499
- var htmlParsed = (0, _parseHtml.parseDegrees)(html);
180581
+ var htmlParsed = (0, _serialization.handleHtml)((0, _parseHtml.parseDegrees)(html));
180500
180582
  if (html !== _this.props.markup && _this.props.onChange) {
180501
180583
  _this.props.onChange(htmlParsed);
180502
180584
  }
@@ -180558,7 +180640,7 @@ const require$$15 = _dll_debug;
180558
180640
  return;
180559
180641
  }
180560
180642
  var v = (0, _serialization.htmlToValue)(props.markup);
180561
- var current = (0, _serialization.htmlToValue)(props.markup);
180643
+ var current = (0, _serialization.htmlToValue)(this.props.markup);
180562
180644
  if (v.equals && !v.equals(current)) {
180563
180645
  this.setState({
180564
180646
  value: v
@@ -8,7 +8,7 @@
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
11
- "version": "5.11.2"
11
+ "version": "5.11.3"
12
12
  }
13
13
  ]
14
14
  }
package/module/print.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.4.3/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.11.2/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.11.3/module/index.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
5
5
  e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
@@ -135051,16 +135051,16 @@ Transition.ENTERED = 3;
135051
135051
  Transition.EXITING = 4;
135052
135052
  var _default$2W = (0, _reactLifecyclesCompat.polyfill)(Transition);
135053
135053
  Transition$1.default = _default$2W;
135054
- var utils$7 = {};
135055
- Object.defineProperty(utils$7, "__esModule", {
135054
+ var utils$8 = {};
135055
+ Object.defineProperty(utils$8, "__esModule", {
135056
135056
  value: true
135057
135057
  });
135058
- utils$7.getTransitionProps = getTransitionProps;
135059
- utils$7.reflow = void 0;
135058
+ utils$8.getTransitionProps = getTransitionProps;
135059
+ utils$8.reflow = void 0;
135060
135060
  var reflow = function reflow(node) {
135061
135061
  return node.scrollTop;
135062
135062
  };
135063
- utils$7.reflow = reflow;
135063
+ utils$8.reflow = reflow;
135064
135064
  function getTransitionProps(props, options) {
135065
135065
  var timeout = props.timeout, _props$style = props.style, style = _props$style === void 0 ? {} : _props$style;
135066
135066
  return {
@@ -135087,7 +135087,7 @@ var _propTypes$1Y = _interopRequireDefault$3l(require$$9$Q);
135087
135087
  var _Transition$6 = _interopRequireDefault$3l(Transition$1);
135088
135088
  var _transitions$7 = transitions;
135089
135089
  var _withTheme$6 = _interopRequireDefault$3l(withTheme);
135090
- var _utils$1F = utils$7;
135090
+ var _utils$1F = utils$8;
135091
135091
  var styles$1H = {
135092
135092
  entering: {
135093
135093
  opacity: 1
@@ -135625,7 +135625,7 @@ var _react$2D = _interopRequireDefault$3i(require$$8$z);
135625
135625
  var _propTypes$1V = _interopRequireDefault$3i(require$$9$P);
135626
135626
  var _Transition$5 = _interopRequireDefault$3i(Transition$1);
135627
135627
  var _withTheme$5 = _interopRequireDefault$3i(withTheme);
135628
- var _utils$1D = utils$7;
135628
+ var _utils$1D = utils$8;
135629
135629
  function getScale(value) {
135630
135630
  return ("scale(").concat(value, ", ").concat(Math.pow(value, 2), ")");
135631
135631
  }
@@ -137418,7 +137418,7 @@ var _Transition$3 = _interopRequireDefault$3c(Transition$1);
137418
137418
  var _utils$1A = require$$13$b;
137419
137419
  var _withStyles$1r = _interopRequireDefault$3c(withStyles);
137420
137420
  var _transitions$6 = transitions;
137421
- var _utils2$3 = utils$7;
137421
+ var _utils2$3 = utils$8;
137422
137422
  var styles$1A = function styles(theme) {
137423
137423
  return {
137424
137424
  container: {
@@ -140125,13 +140125,13 @@ InputLabel$1.default = _default$2t;
140125
140125
  var index$1x = getDefaultExportFromCjs(InputLabel$2);
140126
140126
  var FormControl$2 = {};
140127
140127
  var FormControl$1 = {};
140128
- var utils$6 = {};
140129
- Object.defineProperty(utils$6, "__esModule", {
140128
+ var utils$7 = {};
140129
+ Object.defineProperty(utils$7, "__esModule", {
140130
140130
  value: true
140131
140131
  });
140132
- utils$6.hasValue = hasValue;
140133
- utils$6.isFilled = isFilled;
140134
- utils$6.isAdornedStart = isAdornedStart;
140132
+ utils$7.hasValue = hasValue;
140133
+ utils$7.isFilled = isFilled;
140134
+ utils$7.isAdornedStart = isAdornedStart;
140135
140135
  function hasValue(value) {
140136
140136
  return value != null && !(Array.isArray(value) && value.length === 0);
140137
140137
  }
@@ -140162,7 +140162,7 @@ var _react$2j = _interopRequireDefault$2U(require$$9$H);
140162
140162
  var _propTypes$1I = _interopRequireDefault$2U(require$$10$B);
140163
140163
  var _classnames$1j = _interopRequireDefault$2U(require$$11$t);
140164
140164
  var _utils$1t = require$$13$b;
140165
- var _utils2$2 = utils$6;
140165
+ var _utils2$2 = utils$7;
140166
140166
  var _withStyles$1k = _interopRequireDefault$2U(withStyles);
140167
140167
  var _helpers$r = helpers;
140168
140168
  var _reactHelpers$9 = reactHelpers;
@@ -144992,6 +144992,18 @@ const require$$18$3 = _dll_classnames;
144992
144992
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleImageLoad", function () {
144993
144993
  _this.updateDimensions();
144994
144994
  });
144995
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleTouchStart", function (e) {
144996
+ e.preventDefault();
144997
+ _this.touchStartTimer = setTimeout(function () {
144998
+ _this.startDrag();
144999
+ }, 300);
145000
+ });
145001
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "startDrag", function () {
145002
+ var _this$props = _this.props, connectDragSource = _this$props.connectDragSource, disabled = _this$props.disabled;
145003
+ if (!disabled) {
145004
+ connectDragSource(_this.rootRef);
145005
+ }
145006
+ });
144995
145007
  _this.state = {
144996
145008
  height: 0,
144997
145009
  width: 0
@@ -145015,6 +145027,11 @@ const require$$18$3 = _dll_classnames;
145015
145027
  key: "componentDidMount",
145016
145028
  value: function componentDidMount() {
145017
145029
  this.handleElements();
145030
+ if (this.rootRef) {
145031
+ this.rootRef.addEventListener('touchstart', this.handleTouchStart, {
145032
+ passive: false
145033
+ });
145034
+ }
145018
145035
  }
145019
145036
  }, {
145020
145037
  key: "componentDidUpdate",
@@ -145033,6 +145050,13 @@ const require$$18$3 = _dll_classnames;
145033
145050
  this.handleElements();
145034
145051
  }
145035
145052
  }
145053
+ }, {
145054
+ key: "componentWillUnmount",
145055
+ value: function componentWillUnmount() {
145056
+ if (this.rootRef) {
145057
+ this.rootRef.removeEventListener('touchstart', this.handleTouchStart);
145058
+ }
145059
+ }
145036
145060
  }, {
145037
145061
  key: "updateDimensions",
145038
145062
  value: function updateDimensions() {
@@ -145084,7 +145108,7 @@ const require$$18$3 = _dll_classnames;
145084
145108
  key: "render",
145085
145109
  value: function render() {
145086
145110
  var _this3 = this, _classnames2;
145087
- var _this$props = this.props, disabled = _this$props.disabled, choice = _this$props.choice, classes = _this$props.classes, isOver = _this$props.isOver, dragItem = _this$props.dragItem, correct = _this$props.correct;
145111
+ var _this$props2 = this.props, disabled = _this$props2.disabled, choice = _this$props2.choice, classes = _this$props2.classes, isOver = _this$props2.isOver, dragItem = _this$props2.dragItem, correct = _this$props2.correct;
145088
145112
  var draggedLabel = dragItem && isOver && dragItem.choice.value;
145089
145113
  var label = choice && choice.value;
145090
145114
  return _react["default"].createElement(_Chip["default"], {
@@ -152379,7 +152403,7 @@ var _Transition$1 = _interopRequireDefault$2o(Transition$1);
152379
152403
  var _ownerWindow = _interopRequireDefault$2o(ownerWindow$1);
152380
152404
  var _withTheme$4 = _interopRequireDefault$2o(withTheme);
152381
152405
  var _transitions$4 = transitions;
152382
- var _utils$1f = utils$7;
152406
+ var _utils$1f = utils$8;
152383
152407
  var GUTTER = 24;
152384
152408
  function getTranslateValue(props, node) {
152385
152409
  var direction = props.direction;
@@ -153680,7 +153704,7 @@ var _withFormControlContext$5 = _interopRequireDefault$2g(withFormControlContext
153680
153704
  var _withStyles$R = _interopRequireDefault$2g(withStyles);
153681
153705
  var _reactHelpers$3 = reactHelpers;
153682
153706
  var _Textarea = _interopRequireDefault$2g(Textarea$1);
153683
- var _utils2$1 = utils$6;
153707
+ var _utils2$1 = utils$7;
153684
153708
  var styles$Z = function styles(theme) {
153685
153709
  var light = theme.palette.type === 'light';
153686
153710
  var placeholder = {
@@ -159607,7 +159631,7 @@ var _classnames$q = _interopRequireDefault$1D(require$$13$5);
159607
159631
  var _warning$5 = _interopRequireDefault$1D(warning_1);
159608
159632
  var _utils$W = require$$13$b;
159609
159633
  var _Menu = _interopRequireDefault$1D(Menu$1);
159610
- var _utils2 = utils$6;
159634
+ var _utils2 = utils$7;
159611
159635
  var _reactHelpers$1 = reactHelpers;
159612
159636
  function areEqualValues(a, b) {
159613
159637
  if ((0, _typeof2.default)(b) === 'object' && b !== null) {
@@ -161257,7 +161281,7 @@ var _reactDom$2 = _interopRequireDefault$1p(require$$12$a);
161257
161281
  var _Drawer = _interopRequireWildcard$4(Drawer$1);
161258
161282
  var _transitions$1 = transitions;
161259
161283
  var _withTheme$2 = _interopRequireDefault$1p(withTheme);
161260
- var _utils$R = utils$7;
161284
+ var _utils$R = utils$8;
161261
161285
  var _NoSsr = _interopRequireDefault$1p(NoSsr$2);
161262
161286
  var _SwipeArea = _interopRequireDefault$1p(SwipeArea$1);
161263
161287
  var UNCERTAINTY_THRESHOLD = 3;
@@ -164278,7 +164302,7 @@ var _propTypes$4 = _interopRequireDefault$10(require$$9$d);
164278
164302
  var _Transition = _interopRequireDefault$10(Transition$1);
164279
164303
  var _transitions = transitions;
164280
164304
  var _withTheme = _interopRequireDefault$10(withTheme);
164281
- var _utils$G = utils$7;
164305
+ var _utils$G = utils$8;
164282
164306
  var styles$5 = {
164283
164307
  entering: {
164284
164308
  transform: 'scale(1)'
@@ -165873,13 +165897,13 @@ var greaterThanEqual = set$f({
165873
165897
  });
165874
165898
  comparison$2.greaterThanEqual = greaterThanEqual;
165875
165899
  var vars$1 = {};
165876
- var utils$5 = {};
165900
+ var utils$6 = {};
165877
165901
  const require$$3$b = _dll_lodash;
165878
165902
  var _interopRequireDefault$W = interopRequireDefault.exports;
165879
- Object.defineProperty(utils$5, "__esModule", {
165903
+ Object.defineProperty(utils$6, "__esModule", {
165880
165904
  value: true
165881
165905
  });
165882
- utils$5.transformToKeySetStructure = utils$5.toKey = utils$5.toArray = utils$5.mkSet = utils$5.extendKeySet = void 0;
165906
+ utils$6.transformToKeySetStructure = utils$6.toKey = utils$6.toArray = utils$6.mkSet = utils$6.extendKeySet = void 0;
165883
165907
  var _toConsumableArray2$2 = _interopRequireDefault$W(toConsumableArray$1.exports);
165884
165908
  var _defineProperty2$5 = _interopRequireDefault$W(defineProperty$6.exports);
165885
165909
  var _lodash = _interopRequireDefault$W(require$$3$b);
@@ -165911,13 +165935,13 @@ var mkSet = function mkSet(category) {
165911
165935
  });
165912
165936
  };
165913
165937
  };
165914
- utils$5.mkSet = mkSet;
165938
+ utils$6.mkSet = mkSet;
165915
165939
  var toArray$1 = function toArray(o) {
165916
165940
  return Object.keys(o).map(function (k) {
165917
165941
  return o[k];
165918
165942
  });
165919
165943
  };
165920
- utils$5.toArray = toArray$1;
165944
+ utils$6.toArray = toArray$1;
165921
165945
  var toKey = function toKey(category) {
165922
165946
  return function (v) {
165923
165947
  if (typeof v === 'string') {
@@ -165934,7 +165958,7 @@ var toKey = function toKey(category) {
165934
165958
  }
165935
165959
  };
165936
165960
  };
165937
- utils$5.toKey = toKey;
165961
+ utils$6.toKey = toKey;
165938
165962
  var transformToKeySetStructure = function transformToKeySetStructure() {
165939
165963
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
165940
165964
  var structure = [];
@@ -165952,7 +165976,7 @@ var transformToKeySetStructure = function transformToKeySetStructure() {
165952
165976
  }
165953
165977
  return structure;
165954
165978
  };
165955
- utils$5.transformToKeySetStructure = transformToKeySetStructure;
165979
+ utils$6.transformToKeySetStructure = transformToKeySetStructure;
165956
165980
  var latexAndNameDontExist = function latexAndNameDontExist(base) {
165957
165981
  return function (k) {
165958
165982
  var flattened = _lodash["default"].flatten(base);
@@ -165982,12 +166006,12 @@ var extendKeySet = function extendKeySet() {
165982
166006
  }
165983
166007
  return _final;
165984
166008
  };
165985
- utils$5.extendKeySet = extendKeySet;
166009
+ utils$6.extendKeySet = extendKeySet;
165986
166010
  Object.defineProperty(vars$1, "__esModule", {
165987
166011
  value: true
165988
166012
  });
165989
166013
  vars$1.y = vars$1.x = vars$1.theta = void 0;
165990
- var _utils$F = utils$5;
166014
+ var _utils$F = utils$6;
165991
166015
  var set$e = (0, _utils$F.mkSet)('vars');
165992
166016
  var x = set$e({
165993
166017
  name: 'X',
@@ -166012,7 +166036,7 @@ Object.defineProperty(fractions$2, "__esModule", {
166012
166036
  value: true
166013
166037
  });
166014
166038
  fractions$2.xOverBlank = fractions$2.xBlankBlank = fractions$2.blankOverBlank = void 0;
166015
- var _utils$E = utils$5;
166039
+ var _utils$E = utils$6;
166016
166040
  var set$d = (0, _utils$E.mkSet)('fractions');
166017
166041
  var blankOverBlank = set$d({
166018
166042
  name: 'blank/blank',
@@ -166042,7 +166066,7 @@ Object.defineProperty(exponent$2, "__esModule", {
166042
166066
  value: true
166043
166067
  });
166044
166068
  exponent$2.xToPowerOfN = exponent$2.squared = exponent$2.squareRoot = exponent$2.nthRoot = void 0;
166045
- var _utils$D = utils$5;
166069
+ var _utils$D = utils$6;
166046
166070
  var set$c = (0, _utils$D.mkSet)('exponent');
166047
166071
  var squared = set$c({
166048
166072
  name: 'Squared',
@@ -166074,7 +166098,7 @@ Object.defineProperty(misc$2, "__esModule", {
166074
166098
  value: true
166075
166099
  });
166076
166100
  misc$2.similar = misc$2.plusMinus = misc$2.percentage = misc$2.parenthesis = misc$2.notSimilar = misc$2.notEqual = misc$2.nApprox = misc$2.brackets = misc$2.approx = misc$2.absValue = void 0;
166077
- var _utils$C = utils$5;
166101
+ var _utils$C = utils$6;
166078
166102
  var set$b = (0, _utils$C.mkSet)('misc');
166079
166103
  var plusMinus = set$b({
166080
166104
  name: 'Plus or Minus',
@@ -166144,7 +166168,7 @@ Object.defineProperty(constants$2, "__esModule", {
166144
166168
  value: true
166145
166169
  });
166146
166170
  constants$2.pi = constants$2.infinity = constants$2.halfInfinity = constants$2.eulers = void 0;
166147
- var _utils$B = utils$5;
166171
+ var _utils$B = utils$6;
166148
166172
  var set$a = (0, _utils$B.mkSet)('constants');
166149
166173
  var pi = set$a({
166150
166174
  name: 'Pi',
@@ -166183,7 +166207,7 @@ Object.defineProperty(trigonometry$1, "__esModule", {
166183
166207
  value: true
166184
166208
  });
166185
166209
  trigonometry$1.tan = trigonometry$1.sin = trigonometry$1.sec = trigonometry$1.csc = trigonometry$1.cot = trigonometry$1.cos = void 0;
166186
- var _utils$A = utils$5;
166210
+ var _utils$A = utils$6;
166187
166211
  var set$9 = (0, _utils$A.mkSet)('trigonometry');
166188
166212
  var sin = set$9({
166189
166213
  name: 'sine',
@@ -166406,7 +166430,7 @@ Object.defineProperty(operators$1, "__esModule", {
166406
166430
  value: true
166407
166431
  });
166408
166432
  operators$1.circleDot = void 0;
166409
- var _utils$z = utils$5;
166433
+ var _utils$z = utils$6;
166410
166434
  var set$7 = (0, _utils$z.mkSet)('operators');
166411
166435
  var circleDot = set$7({
166412
166436
  name: 'CircleDot',
@@ -166420,7 +166444,7 @@ Object.defineProperty(log$5, "__esModule", {
166420
166444
  value: true
166421
166445
  });
166422
166446
  log$5.logSubscript = log$5.log = log$5.ln = void 0;
166423
- var _utils$y = utils$5;
166447
+ var _utils$y = utils$6;
166424
166448
  var set$6 = (0, _utils$y.mkSet)('log');
166425
166449
  var log$4 = set$6({
166426
166450
  name: 'Log',
@@ -166448,7 +166472,7 @@ Object.defineProperty(subSup$1, "__esModule", {
166448
166472
  value: true
166449
166473
  });
166450
166474
  subSup$1.superscript = subSup$1.subscript = void 0;
166451
- var _utils$x = utils$5;
166475
+ var _utils$x = utils$6;
166452
166476
  var set$5 = (0, _utils$x.mkSet)('sub-sup');
166453
166477
  var superscript = set$5({
166454
166478
  name: 'Superscript',
@@ -166467,7 +166491,7 @@ Object.defineProperty(statistics$1, "__esModule", {
166467
166491
  value: true
166468
166492
  });
166469
166493
  statistics$1.yBar = statistics$1.xBar = statistics$1.smallSigma = statistics$1.sigma = statistics$1.mu = void 0;
166470
- var _utils$w = utils$5;
166494
+ var _utils$w = utils$6;
166471
166495
  var set$4 = (0, _utils$w.mkSet)('statistics');
166472
166496
  var xBar = set$4({
166473
166497
  name: 'X Bar',
@@ -166526,7 +166550,7 @@ Object.defineProperty(basicOperators$1, "__esModule", {
166526
166550
  });
166527
166551
  basicOperators$1.plus = basicOperators$1.multiply = basicOperators$1.minus = basicOperators$1.equals = basicOperators$1.divide = void 0;
166528
166552
  var _chars$2 = chars$1;
166529
- var _utils$v = utils$5;
166553
+ var _utils$v = utils$6;
166530
166554
  var set$3 = (0, _utils$v.mkSet)('operators');
166531
166555
  var equals = set$3({
166532
166556
  write: '=',
@@ -166561,7 +166585,7 @@ Object.defineProperty(matrices$1, "__esModule", {
166561
166585
  value: true
166562
166586
  });
166563
166587
  matrices$1.singleCellMatrix = matrices$1.doubleCellMatrix = void 0;
166564
- var _utils$u = utils$5;
166588
+ var _utils$u = utils$6;
166565
166589
  var set$2 = (0, _utils$u.mkSet)('matrices');
166566
166590
  var singleCellMatrix = set$2({
166567
166591
  name: 'Single Cell Matrix',
@@ -166630,7 +166654,7 @@ Object.defineProperty(logic$1, "__esModule", {
166630
166654
  value: true
166631
166655
  });
166632
166656
  logic$1.therefore = logic$1.longDivision = void 0;
166633
- var _utils$t = utils$5;
166657
+ var _utils$t = utils$6;
166634
166658
  var set$1 = (0, _utils$t.mkSet)('logic');
166635
166659
  var therefore = set$1({
166636
166660
  name: 'Therefore',
@@ -166650,7 +166674,7 @@ Object.defineProperty(navigation, "__esModule", {
166650
166674
  });
166651
166675
  navigation.right = navigation.left = void 0;
166652
166676
  var _chars$1 = chars$1;
166653
- var _utils$s = utils$5;
166677
+ var _utils$s = utils$6;
166654
166678
  var set = (0, _utils$s.mkSet)('navigation');
166655
166679
  var left = set({
166656
166680
  label: _chars$1.LEFT_ARROW,
@@ -168113,7 +168137,7 @@ const require$$9$8 = _dll_prop_types;
168113
168137
  var _react = _interopRequireDefault(require$$8$8);
168114
168138
  var _propTypes = _interopRequireDefault(require$$9$8);
168115
168139
  var _grades = grades;
168116
- var _utils = utils$5;
168140
+ var _utils = utils$6;
168117
168141
  var _keypad = _interopRequireDefault(keypad);
168118
168142
  function _createSuper(Derived) {
168119
168143
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
@@ -168305,6 +168329,22 @@ getDefaultExportFromCjs(horizontalKeypad);
168305
168329
  exports.removeBrackets = removeBrackets;
168306
168330
  })(mathInput);
168307
168331
  getDefaultExportFromCjs(mathInput);
168332
+ var utils$5 = {};
168333
+ Object.defineProperty(utils$5, "__esModule", {
168334
+ value: true
168335
+ });
168336
+ utils$5.markFractionBaseSuperscripts = void 0;
168337
+ var markFractionBaseSuperscripts = function markFractionBaseSuperscripts() {
168338
+ document.querySelectorAll('.mq-supsub.mq-sup-only').forEach(function (supsub) {
168339
+ var prev = supsub.previousElementSibling;
168340
+ if (prev && prev.classList.contains('mq-non-leaf') && prev.querySelector('.mq-fraction')) {
168341
+ supsub.classList.add('mq-after-fraction-group');
168342
+ } else {
168343
+ supsub.classList.remove('mq-after-fraction-group');
168344
+ }
168345
+ });
168346
+ };
168347
+ utils$5.markFractionBaseSuperscripts = markFractionBaseSuperscripts;
168308
168348
  const require$$9$7 = _dll_react;
168309
168349
  const require$$10$9 = _dll_debug;
168310
168350
  const require$$11$6 = _dll_prop_types;
@@ -168334,6 +168374,7 @@ const {isEqual: require$$18$2} = _dll_lodash;
168334
168374
  var _MenuItem = _interopRequireDefault(MenuItem$2);
168335
168375
  var _Select = _interopRequireDefault(Select$2);
168336
168376
  var _isEqual = _interopRequireDefault(require$$18$2);
168377
+ var _utils = utils$5;
168337
168378
  function _createSuper(Derived) {
168338
168379
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
168339
168380
  return function _createSuperInternal() {
@@ -168456,6 +168497,7 @@ const {isEqual: require$$18$2} = _dll_lodash;
168456
168497
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onEditorChange", function (latex) {
168457
168498
  var _this$props2 = _this.props, onChange = _this$props2.onChange, noDecimal = _this$props2.noDecimal;
168458
168499
  (0, _mathInput.updateSpans)();
168500
+ (0, _utils.markFractionBaseSuperscripts)();
168459
168501
  _this.updateDisable(true);
168460
168502
  if (noDecimal && (latex.indexOf('.') !== -1 || latex.indexOf(',') !== -1) && _this.input) {
168461
168503
  _this.input.clear();
@@ -168748,6 +168790,12 @@ const {isEqual: require$$18$2} = _dll_lodash;
168748
168790
  marginBottom: '0px !important'
168749
168791
  }
168750
168792
  },
168793
+ '& .mq-math-mode .mq-fraction + .mq-supsub.mq-sup-only': {
168794
+ verticalAlign: '0.4em !important'
168795
+ },
168796
+ '& .mq-math-mode .mq-supsub.mq-sup-only.mq-after-fraction-group': {
168797
+ verticalAlign: '0.4em !important'
168798
+ },
168751
168799
  '& .mq-math-mode .mq-denominator': {
168752
168800
  marginTop: '-5px !important',
168753
168801
  padding: '0.5em 0.1em 0.1em !important'
@@ -169010,6 +169058,7 @@ const require$$11$5 = _dll_prop_types;
169010
169058
  var _styles = styles$1I;
169011
169059
  var _propTypes = _interopRequireDefault(require$$11$5);
169012
169060
  var _mathInput = mathInput;
169061
+ var _utils = utils$5;
169013
169062
  function _createSuper(Derived) {
169014
169063
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
169015
169064
  return function _createSuperInternal() {
@@ -169043,6 +169092,18 @@ const require$$11$5 = _dll_prop_types;
169043
169092
  return _super.apply(this, arguments);
169044
169093
  }
169045
169094
  (0, _createClass2["default"])(RawMathPreview, [{
169095
+ key: "componentDidMount",
169096
+ value: function componentDidMount() {
169097
+ (0, _utils.markFractionBaseSuperscripts)();
169098
+ }
169099
+ }, {
169100
+ key: "componentDidUpdate",
169101
+ value: function componentDidUpdate(prevProps) {
169102
+ if (this.props.node.data.get('latex') !== prevProps.node.data.get('latex')) {
169103
+ (0, _utils.markFractionBaseSuperscripts)();
169104
+ }
169105
+ }
169106
+ }, {
169046
169107
  key: "render",
169047
169108
  value: function render() {
169048
169109
  log('[render] data: ', this.props.node.data);
@@ -169170,6 +169231,12 @@ const require$$11$5 = _dll_prop_types;
169170
169231
  marginBottom: '0px !important'
169171
169232
  }
169172
169233
  },
169234
+ '& .mq-math-mode .mq-fraction + .mq-supsub.mq-sup-only': {
169235
+ verticalAlign: '0.4em !important'
169236
+ },
169237
+ '& .mq-math-mode .mq-supsub.mq-sup-only.mq-after-fraction-group': {
169238
+ verticalAlign: '0.4em !important'
169239
+ },
169173
169240
  '& .mq-overarrow-inner': {
169174
169241
  paddingTop: '0 !important',
169175
169242
  border: 'none !important'
@@ -176033,7 +176100,7 @@ var _interopRequireDefault$a = interopRequireDefault.exports;
176033
176100
  Object.defineProperty(serialization, "__esModule", {
176034
176101
  value: true
176035
176102
  });
176036
- serialization.valueToHtml = serialization.reduceMultipleBrs = serialization.reactAttributes = serialization.parseStyleString = serialization.htmlToValue = serialization.getBase64 = serialization.extraCSSRulesOpts = serialization.TEXT_RULE = serialization.INLINE_TAGS = void 0;
176103
+ serialization.valueToHtml = serialization.reduceMultipleBrs = serialization.reactAttributes = serialization.parseStyleString = serialization.htmlToValue = serialization.handleHtml = serialization.getBase64 = serialization.extraCSSRulesOpts = serialization.TEXT_RULE = serialization.INLINE_TAGS = void 0;
176037
176104
  var _defineProperty2$1 = _interopRequireDefault$a(defineProperty$6.exports);
176038
176105
  var _slateHtmlSerializer = _interopRequireDefault$a(require$$2$F);
176039
176106
  var _react$a = _interopRequireDefault$a(require$$3$3);
@@ -176508,9 +176575,13 @@ var fixHtmlCode = function fixHtmlCode(markup) {
176508
176575
  parseNode(wrapperEl);
176509
176576
  return wrapperEl.innerHTML;
176510
176577
  };
176578
+ var handleHtml = function handleHtml(html) {
176579
+ return fixHtmlCode(reduceRedundantNewLineCharacters(reduceMultipleBrs(html)));
176580
+ };
176581
+ serialization.handleHtml = handleHtml;
176511
176582
  var htmlToValue = function htmlToValue(html) {
176512
176583
  try {
176513
- return serializer.deserialize(fixHtmlCode(reduceRedundantNewLineCharacters(reduceMultipleBrs(html))));
176584
+ return serializer.deserialize(handleHtml(html));
176514
176585
  } catch (e) {
176515
176586
  console.log("Couldn't parse html: ", e);
176516
176587
  return {};
@@ -179216,7 +179287,7 @@ const require$$21 = _dll_debug;
179216
179287
  exports.serialization = serialization$1;
179217
179288
  var _insertImageHandler = _interopRequireDefault(insertImageHandler);
179218
179289
  var _plugins = plugins;
179219
- var _excluded = ["customPlugins"];
179290
+ var _excluded = ["customPlugins", "showParagraphs"];
179220
179291
  function _getRequireWildcardCache(nodeInterop) {
179221
179292
  if (typeof WeakMap !== "function") return null;
179222
179293
  var cacheBabelInterop = new WeakMap();
@@ -180066,11 +180137,13 @@ const require$$21 = _dll_debug;
180066
180137
  }, {
180067
180138
  key: "render",
180068
180139
  value: function render() {
180069
- var _classNames, _this4 = this, _value$document;
180070
- var _this$props2 = this.props, disabled = _this$props2.disabled, spellCheck = _this$props2.spellCheck, highlightShape = _this$props2.highlightShape, classes = _this$props2.classes, className = _this$props2.className, placeholder = _this$props2.placeholder, pluginProps = _this$props2.pluginProps, onKeyDown = _this$props2.onKeyDown;
180140
+ var _classNames, _this4 = this, _value$document, _classNames2;
180141
+ var _this$props2 = this.props, disabled = _this$props2.disabled, spellCheck = _this$props2.spellCheck, highlightShape = _this$props2.highlightShape, classes = _this$props2.classes, className = _this$props2.className;
180142
+ _this$props2.isEditor;
180143
+ var placeholder = _this$props2.placeholder, pluginProps = _this$props2.pluginProps, onKeyDown = _this$props2.onKeyDown;
180071
180144
  var _ref4 = pluginProps || ({});
180072
180145
  _ref4.customPlugins;
180073
- var otherPluginProps = (0, _objectWithoutProperties2["default"])(_ref4, _excluded);
180146
+ var showParagraphs = _ref4.showParagraphs, otherPluginProps = (0, _objectWithoutProperties2["default"])(_ref4, _excluded);
180074
180147
  var _this$state4 = this.state, value = _this$state4.value, focusedNode = _this$state4.focusedNode, toolbarOpts = _this$state4.toolbarOpts, dialog = _this$state4.dialog, scheduled = _this$state4.scheduled;
180075
180148
  log('[render] value: ', value);
180076
180149
  var sizeStyle = this.buildSizeStyle();
@@ -180126,7 +180199,7 @@ const require$$21 = _dll_debug;
180126
180199
  readOnly: disabled,
180127
180200
  spellCheck: spellCheck,
180128
180201
  autoCorrect: spellCheck,
180129
- className: (0, _classnames["default"])((0, _defineProperty2["default"])({}, classes.noPadding, toolbarOpts === null || toolbarOpts === void 0 ? void 0 : toolbarOpts.noPadding), classes.slateEditor),
180202
+ className: (0, _classnames["default"])((_classNames2 = {}, (0, _defineProperty2["default"])(_classNames2, classes.noPadding, toolbarOpts === null || toolbarOpts === void 0 ? void 0 : toolbarOpts.noPadding), (0, _defineProperty2["default"])(_classNames2, classes.showParagraph, showParagraphs && !showParagraphs.disabled), _classNames2), classes.slateEditor),
180130
180203
  style: {
180131
180204
  minHeight: sizeStyle.minHeight,
180132
180205
  height: sizeStyle.height,
@@ -180189,6 +180262,7 @@ const require$$21 = _dll_debug;
180189
180262
  autoWidthToolbar: _propTypes["default"].bool,
180190
180263
  pluginProps: _propTypes["default"].any,
180191
180264
  placeholder: _propTypes["default"].string,
180265
+ isEditor: _propTypes["default"].bool,
180192
180266
  responseAreaProps: _propTypes["default"].shape({
180193
180267
  type: _propTypes["default"].oneOf(['explicit-constructed-response', 'inline-dropdown', 'drag-in-the-blank', 'math-templated']),
180194
180268
  options: _propTypes["default"].object,
@@ -180238,7 +180312,8 @@ const require$$21 = _dll_debug;
180238
180312
  toolbarOpts: defaultToolbarOpts,
180239
180313
  responseAreaProps: defaultResponseAreaProps,
180240
180314
  languageCharactersProps: defaultLanguageCharactersProps,
180241
- extraCSSRules: null
180315
+ extraCSSRules: null,
180316
+ isEditor: false
180242
180317
  });
180243
180318
  var styles = {
180244
180319
  withBg: {
@@ -180275,6 +180350,13 @@ const require$$21 = _dll_debug;
180275
180350
  border: '1px solid #dfe2e5'
180276
180351
  }
180277
180352
  },
180353
+ showParagraph: {
180354
+ '& > div:has(+ div)::after': {
180355
+ display: 'block',
180356
+ content: '"¶"',
180357
+ color: '#146EB3'
180358
+ }
180359
+ },
180278
180360
  toolbarOnTop: {
180279
180361
  marginTop: '45px'
180280
180362
  },
@@ -180459,7 +180541,7 @@ const require$$15 = _dll_debug;
180459
180541
  });
180460
180542
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (value, done) {
180461
180543
  var html = (0, _serialization.valueToHtml)(value);
180462
- var htmlParsed = (0, _parseHtml.parseDegrees)(html);
180544
+ var htmlParsed = (0, _serialization.handleHtml)((0, _parseHtml.parseDegrees)(html));
180463
180545
  if (html !== _this.props.markup && _this.props.onChange) {
180464
180546
  _this.props.onChange(htmlParsed);
180465
180547
  }
@@ -180521,7 +180603,7 @@ const require$$15 = _dll_debug;
180521
180603
  return;
180522
180604
  }
180523
180605
  var v = (0, _serialization.htmlToValue)(props.markup);
180524
- var current = (0, _serialization.htmlToValue)(props.markup);
180606
+ var current = (0, _serialization.htmlToValue)(this.props.markup);
180525
180607
  if (v.equals && !v.equals(current)) {
180526
180608
  this.setState({
180527
180609
  value: v
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "7.3.11-next.9+8df6015bb",
7
+ "version": "7.4.0",
8
8
  "description": "",
9
9
  "scripts": {
10
10
  "postpublish": "../../scripts/postpublish"
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "@material-ui/core": "^3.9.2",
14
14
  "@pie-framework/pie-player-events": "^0.1.0",
15
- "@pie-lib/pie-toolbox": "2.10.3",
15
+ "@pie-lib/pie-toolbox": "2.11.0",
16
16
  "classnames": "^2.2.5",
17
17
  "he": "^1.2.0",
18
18
  "lodash": "^4.17.10",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "author": "",
24
24
  "license": "ISC",
25
- "gitHead": "8df6015bb355a15b84fae3c79d7471f4423469bf",
25
+ "gitHead": "ff64642561b0bf000f241d4ce05547465c895ee4",
26
26
  "main": "lib/index.js",
27
27
  "module": "src/index.js",
28
28
  "exports": {