@pie-element/explicit-constructed-response 7.3.11-next.0 → 7.3.11-next.14

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/module/print.js CHANGED
@@ -1,5 +1,5 @@
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.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.2/module/index.js";
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.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
@@ -184577,8 +184659,8 @@ class Main extends React$1.Component {
184577
184659
  };
184578
184660
  }
184579
184661
  __init2() {
184580
- this.getChangeSession = maxLengthPerChoice => maxLengthPerChoice && maxLengthPerChoice.every((val, i, arr) => val === arr[0] && val === 1) ? this.props.onChange : debounce$1(this.props.onChange, 1500, {
184581
- maxWait: 1500
184662
+ this.getChangeSession = maxLengthPerChoice => maxLengthPerChoice && maxLengthPerChoice.every((val, i, arr) => val === arr[0] && val === 1) ? this.props.onChange : debounce$1(this.props.onChange, 200, {
184663
+ maxWait: 200
184582
184664
  });
184583
184665
  }
184584
184666
  UNSAFE_componentWillReceiveProps(nextProps) {
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.0+c28a57de8",
7
+ "version": "7.3.11-next.14+ab63f6fad",
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": "c28a57de80b973304c0701d5586f25deea6d2766",
25
+ "gitHead": "ab63f6fad24fec3a2838ca97233e0d4dc9cd3742",
26
26
  "main": "lib/index.js",
27
27
  "module": "src/index.js",
28
28
  "exports": {