@pie-element/complex-rubric 3.4.10-next.9 → 3.5.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,22 @@
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
+ # [3.5.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@3.4.9...@pie-element/complex-rubric@3.5.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
+
13
+
14
+ ### Features
15
+
16
+ * updated config so line breaks are enabled in editor [PD-4093] ([2e1978d](https://github.com/pie-framework/pie-elements/commit/2e1978db22d6e39328fff7dce8af3a494f77e2e1))
17
+
18
+
19
+
20
+
21
+
6
22
  ## [3.4.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@3.4.8...@pie-element/complex-rubric@3.4.9) (2025-03-21)
7
23
 
8
24
 
@@ -3,6 +3,17 @@
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
+ # [2.6.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.5.9...@pie-element/complex-rubric-configure@2.6.0) (2025-03-27)
7
+
8
+
9
+ ### Features
10
+
11
+ * updated config so line breaks are enabled in editor [PD-4093] ([2e1978d](https://github.com/pie-framework/pie-elements/commit/2e1978db22d6e39328fff7dce8af3a494f77e2e1))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.5.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.5.8...@pie-element/complex-rubric-configure@2.5.9) (2025-03-21)
7
18
 
8
19
  **Note:** Version bump only for package @pie-element/complex-rubric-configure
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric-configure",
3
3
  "private": true,
4
- "version": "2.5.9",
4
+ "version": "2.6.0",
5
5
  "description": "Complex Rubric authoring view",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
8
8
  "author": "Pie Framework Authors",
9
9
  "dependencies": {
10
10
  "@material-ui/core": "^3.9.2",
11
- "@pie-element/multi-trait-rubric": "^4.3.9",
12
- "@pie-element/rubric": "^4.4.9",
11
+ "@pie-element/multi-trait-rubric": "^4.4.0",
12
+ "@pie-element/rubric": "^4.5.0",
13
13
  "@pie-framework/pie-configure-events": "^1.3.0",
14
14
  "debug": "^4.1.1",
15
15
  "lodash": "^4.17.15",
@@ -3,6 +3,17 @@
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
+ ## [3.0.28](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@3.0.27...@pie-element/complex-rubric-controller@3.0.28) (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
+
13
+
14
+
15
+
16
+
6
17
  ## [3.0.27](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@3.0.26...@pie-element/complex-rubric-controller@3.0.27) (2025-03-21)
7
18
 
8
19
 
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric-controller",
3
3
  "private": true,
4
- "version": "3.0.27",
4
+ "version": "3.0.28",
5
5
  "description": "",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
9
  "dependencies": {
10
- "@pie-lib/pie-toolbox": "2.10.3",
10
+ "@pie-lib/pie-toolbox": "2.11.0",
11
11
  "lodash": "^4.17.15"
12
12
  },
13
13
  "author": "",
@@ -1,6 +1,6 @@
1
1
  import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.4.3/module/index.js";
2
2
  import RubricConfigure from '@pie-element/rubric/configure/lib';
3
- import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.11.2/module/index.js";
3
+ import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.11.3/module/index.js";
4
4
  function _mergeNamespaces(n, m) {
5
5
  m.forEach(function (e) {
6
6
  e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
@@ -39515,16 +39515,16 @@ Transition.ENTERED = 3;
39515
39515
  Transition.EXITING = 4;
39516
39516
  var _default$32 = (0, _reactLifecyclesCompat.polyfill)(Transition);
39517
39517
  Transition$1.default = _default$32;
39518
- var utils$8 = {};
39519
- Object.defineProperty(utils$8, "__esModule", {
39518
+ var utils$9 = {};
39519
+ Object.defineProperty(utils$9, "__esModule", {
39520
39520
  value: true
39521
39521
  });
39522
- utils$8.getTransitionProps = getTransitionProps;
39523
- utils$8.reflow = void 0;
39522
+ utils$9.getTransitionProps = getTransitionProps;
39523
+ utils$9.reflow = void 0;
39524
39524
  var reflow = function reflow(node) {
39525
39525
  return node.scrollTop;
39526
39526
  };
39527
- utils$8.reflow = reflow;
39527
+ utils$9.reflow = reflow;
39528
39528
  function getTransitionProps(props, options) {
39529
39529
  var timeout = props.timeout, _props$style = props.style, style = _props$style === void 0 ? {} : _props$style;
39530
39530
  return {
@@ -39551,7 +39551,7 @@ var _propTypes$1_ = _interopRequireDefault$3A(require$$9$Y);
39551
39551
  var _Transition$6 = _interopRequireDefault$3A(Transition$1);
39552
39552
  var _transitions$7 = transitions$1;
39553
39553
  var _withTheme$6 = _interopRequireDefault$3A(withTheme);
39554
- var _utils$1G = utils$8;
39554
+ var _utils$1G = utils$9;
39555
39555
  var styles$1I = {
39556
39556
  entering: {
39557
39557
  opacity: 1
@@ -40089,7 +40089,7 @@ var _react$2O = _interopRequireDefault$3x(require$$8$D);
40089
40089
  var _propTypes$1X = _interopRequireDefault$3x(require$$9$X);
40090
40090
  var _Transition$5 = _interopRequireDefault$3x(Transition$1);
40091
40091
  var _withTheme$5 = _interopRequireDefault$3x(withTheme);
40092
- var _utils$1E = utils$8;
40092
+ var _utils$1E = utils$9;
40093
40093
  function getScale(value) {
40094
40094
  return ("scale(").concat(value, ", ").concat(Math.pow(value, 2), ")");
40095
40095
  }
@@ -41882,7 +41882,7 @@ var _Transition$3 = _interopRequireDefault$3r(Transition$1);
41882
41882
  var _utils$1B = require$$13$h;
41883
41883
  var _withStyles$1r = _interopRequireDefault$3r(withStyles);
41884
41884
  var _transitions$6 = transitions$1;
41885
- var _utils2$3 = utils$8;
41885
+ var _utils2$3 = utils$9;
41886
41886
  var styles$1B = function styles(theme) {
41887
41887
  return {
41888
41888
  container: {
@@ -126352,13 +126352,13 @@ InputLabel$1.default = _default$2B;
126352
126352
  var index$1y = getDefaultExportFromCjs(InputLabel$2);
126353
126353
  var FormControl$2 = {};
126354
126354
  var FormControl$1 = {};
126355
- var utils$7 = {};
126356
- Object.defineProperty(utils$7, "__esModule", {
126355
+ var utils$8 = {};
126356
+ Object.defineProperty(utils$8, "__esModule", {
126357
126357
  value: true
126358
126358
  });
126359
- utils$7.hasValue = hasValue;
126360
- utils$7.isFilled = isFilled;
126361
- utils$7.isAdornedStart = isAdornedStart;
126359
+ utils$8.hasValue = hasValue;
126360
+ utils$8.isFilled = isFilled;
126361
+ utils$8.isAdornedStart = isAdornedStart;
126362
126362
  function hasValue(value) {
126363
126363
  return value != null && !(Array.isArray(value) && value.length === 0);
126364
126364
  }
@@ -126389,7 +126389,7 @@ var _react$2u = _interopRequireDefault$34(require$$9$P);
126389
126389
  var _propTypes$1K = _interopRequireDefault$34(require$$10$M);
126390
126390
  var _classnames$1l = _interopRequireDefault$34(require$$11$H);
126391
126391
  var _utils$1u = require$$13$h;
126392
- var _utils2$2 = utils$7;
126392
+ var _utils2$2 = utils$8;
126393
126393
  var _withStyles$1k = _interopRequireDefault$34(withStyles);
126394
126394
  var _helpers$r = helpers;
126395
126395
  var _reactHelpers$9 = reactHelpers;
@@ -131339,7 +131339,7 @@ var _classnames$1g = _interopRequireDefault$2S(require$$13$c);
131339
131339
  var _warning$f = _interopRequireDefault$2S(warning_1);
131340
131340
  var _utils$1p = require$$13$h;
131341
131341
  var _Menu = _interopRequireDefault$2S(Menu$1);
131342
- var _utils2$1 = utils$7;
131342
+ var _utils2$1 = utils$8;
131343
131343
  var _reactHelpers$7 = reactHelpers;
131344
131344
  function areEqualValues(a, b) {
131345
131345
  if ((0, _typeof2.default)(b) === 'object' && b !== null) {
@@ -131871,7 +131871,7 @@ var _withFormControlContext$6 = _interopRequireDefault$2P(withFormControlContext
131871
131871
  var _withStyles$1d = _interopRequireDefault$2P(withStyles);
131872
131872
  var _reactHelpers$5 = reactHelpers;
131873
131873
  var _Textarea = _interopRequireDefault$2P(Textarea$1);
131874
- var _utils2 = utils$7;
131874
+ var _utils2 = utils$8;
131875
131875
  var styles$1n = function styles(theme) {
131876
131876
  var light = theme.palette.type === 'light';
131877
131877
  var placeholder = {
@@ -132668,17 +132668,17 @@ Select$1.default = _default$2g;
132668
132668
  var _Select = _interopRequireDefault(Select$1);
132669
132669
  })(Select$2);
132670
132670
  var index$1o = getDefaultExportFromCjs(Select$2);
132671
- var utils$6 = {};
132671
+ var utils$7 = {};
132672
132672
  const require$$0$3 = _dll_pie_lib__pie_toolbox_editable_html;
132673
- Object.defineProperty(utils$6, "__esModule", {
132673
+ Object.defineProperty(utils$7, "__esModule", {
132674
132674
  value: true
132675
132675
  });
132676
- utils$6.filteredDefaultPlugins = void 0;
132676
+ utils$7.filteredDefaultPlugins = void 0;
132677
132677
  var _editableHtml$1 = require$$0$3;
132678
132678
  var filteredDefaultPlugins = (_editableHtml$1.DEFAULT_PLUGINS || []).filter(function (p) {
132679
132679
  return p !== 'table' && p !== 'bulleted-list' && p !== 'numbered-list';
132680
132680
  });
132681
- utils$6.filteredDefaultPlugins = filteredDefaultPlugins;
132681
+ utils$7.filteredDefaultPlugins = filteredDefaultPlugins;
132682
132682
  const require$$1$U = _dll_react;
132683
132683
  const require$$2$p = _dll_classnames;
132684
132684
  const require$$4$17 = _dll_pie_lib__pie_toolbox_editable_html;
@@ -132699,7 +132699,7 @@ var _MenuItem$1 = _interopRequireDefault$2K(MenuItem$2);
132699
132699
  var _InputBase$3 = _interopRequireDefault$2K(InputBase$2);
132700
132700
  var _renderUi$2 = require$$10$G;
132701
132701
  var _grey = _interopRequireDefault$2K(grey$1);
132702
- var _utils$1j = utils$6;
132702
+ var _utils$1j = utils$7;
132703
132703
  var BlockWidth = 200;
132704
132704
  common.BlockWidth = BlockWidth;
132705
132705
  var PrimaryBlockWidth = 200;
@@ -155806,7 +155806,7 @@ var _Transition$1 = _interopRequireDefault$2b(Transition$1);
155806
155806
  var _ownerWindow = _interopRequireDefault$2b(ownerWindow$1);
155807
155807
  var _withTheme$4 = _interopRequireDefault$2b(withTheme);
155808
155808
  var _transitions$4 = transitions$1;
155809
- var _utils$15 = utils$8;
155809
+ var _utils$15 = utils$9;
155810
155810
  var GUTTER = 24;
155811
155811
  function getTranslateValue(props, node) {
155812
155812
  var direction = props.direction;
@@ -162146,7 +162146,7 @@ var _reactDom$2 = _interopRequireDefault$1v(require$$12$i);
162146
162146
  var _Drawer = _interopRequireWildcard$4(Drawer$1);
162147
162147
  var _transitions$1 = transitions$1;
162148
162148
  var _withTheme$2 = _interopRequireDefault$1v(withTheme);
162149
- var _utils$R = utils$8;
162149
+ var _utils$R = utils$9;
162150
162150
  var _NoSsr = _interopRequireDefault$1v(NoSsr$2);
162151
162151
  var _SwipeArea = _interopRequireDefault$1v(SwipeArea$1);
162152
162152
  var UNCERTAINTY_THRESHOLD = 3;
@@ -165167,7 +165167,7 @@ var _propTypes$5 = _interopRequireDefault$16(require$$9$k);
165167
165167
  var _Transition = _interopRequireDefault$16(Transition$1);
165168
165168
  var _transitions = transitions$1;
165169
165169
  var _withTheme = _interopRequireDefault$16(withTheme);
165170
- var _utils$G = utils$8;
165170
+ var _utils$G = utils$9;
165171
165171
  var styles$5 = {
165172
165172
  entering: {
165173
165173
  transform: 'scale(1)'
@@ -167413,13 +167413,13 @@ var greaterThanEqual = set$f({
167413
167413
  });
167414
167414
  comparison$2.greaterThanEqual = greaterThanEqual;
167415
167415
  var vars$1 = {};
167416
- var utils$5 = {};
167416
+ var utils$6 = {};
167417
167417
  const require$$3$i = _dll_lodash;
167418
167418
  var _interopRequireDefault$11 = interopRequireDefault.exports;
167419
- Object.defineProperty(utils$5, "__esModule", {
167419
+ Object.defineProperty(utils$6, "__esModule", {
167420
167420
  value: true
167421
167421
  });
167422
- utils$5.transformToKeySetStructure = utils$5.toKey = utils$5.toArray = utils$5.mkSet = utils$5.extendKeySet = void 0;
167422
+ utils$6.transformToKeySetStructure = utils$6.toKey = utils$6.toArray = utils$6.mkSet = utils$6.extendKeySet = void 0;
167423
167423
  var _toConsumableArray2$2 = _interopRequireDefault$11(toConsumableArray$3.exports);
167424
167424
  var _defineProperty2$7 = _interopRequireDefault$11(defineProperty$5.exports);
167425
167425
  var _lodash = _interopRequireDefault$11(require$$3$i);
@@ -167451,13 +167451,13 @@ var mkSet = function mkSet(category) {
167451
167451
  });
167452
167452
  };
167453
167453
  };
167454
- utils$5.mkSet = mkSet;
167454
+ utils$6.mkSet = mkSet;
167455
167455
  var toArray = function toArray(o) {
167456
167456
  return Object.keys(o).map(function (k) {
167457
167457
  return o[k];
167458
167458
  });
167459
167459
  };
167460
- utils$5.toArray = toArray;
167460
+ utils$6.toArray = toArray;
167461
167461
  var toKey = function toKey(category) {
167462
167462
  return function (v) {
167463
167463
  if (typeof v === 'string') {
@@ -167474,7 +167474,7 @@ var toKey = function toKey(category) {
167474
167474
  }
167475
167475
  };
167476
167476
  };
167477
- utils$5.toKey = toKey;
167477
+ utils$6.toKey = toKey;
167478
167478
  var transformToKeySetStructure = function transformToKeySetStructure() {
167479
167479
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
167480
167480
  var structure = [];
@@ -167492,7 +167492,7 @@ var transformToKeySetStructure = function transformToKeySetStructure() {
167492
167492
  }
167493
167493
  return structure;
167494
167494
  };
167495
- utils$5.transformToKeySetStructure = transformToKeySetStructure;
167495
+ utils$6.transformToKeySetStructure = transformToKeySetStructure;
167496
167496
  var latexAndNameDontExist = function latexAndNameDontExist(base) {
167497
167497
  return function (k) {
167498
167498
  var flattened = _lodash["default"].flatten(base);
@@ -167522,12 +167522,12 @@ var extendKeySet = function extendKeySet() {
167522
167522
  }
167523
167523
  return _final;
167524
167524
  };
167525
- utils$5.extendKeySet = extendKeySet;
167525
+ utils$6.extendKeySet = extendKeySet;
167526
167526
  Object.defineProperty(vars$1, "__esModule", {
167527
167527
  value: true
167528
167528
  });
167529
167529
  vars$1.y = vars$1.x = vars$1.theta = void 0;
167530
- var _utils$F = utils$5;
167530
+ var _utils$F = utils$6;
167531
167531
  var set$e = (0, _utils$F.mkSet)('vars');
167532
167532
  var x$1 = set$e({
167533
167533
  name: 'X',
@@ -167552,7 +167552,7 @@ Object.defineProperty(fractions$2, "__esModule", {
167552
167552
  value: true
167553
167553
  });
167554
167554
  fractions$2.xOverBlank = fractions$2.xBlankBlank = fractions$2.blankOverBlank = void 0;
167555
- var _utils$E = utils$5;
167555
+ var _utils$E = utils$6;
167556
167556
  var set$d = (0, _utils$E.mkSet)('fractions');
167557
167557
  var blankOverBlank = set$d({
167558
167558
  name: 'blank/blank',
@@ -167582,7 +167582,7 @@ Object.defineProperty(exponent$2, "__esModule", {
167582
167582
  value: true
167583
167583
  });
167584
167584
  exponent$2.xToPowerOfN = exponent$2.squared = exponent$2.squareRoot = exponent$2.nthRoot = void 0;
167585
- var _utils$D = utils$5;
167585
+ var _utils$D = utils$6;
167586
167586
  var set$c = (0, _utils$D.mkSet)('exponent');
167587
167587
  var squared = set$c({
167588
167588
  name: 'Squared',
@@ -167614,7 +167614,7 @@ Object.defineProperty(misc$2, "__esModule", {
167614
167614
  value: true
167615
167615
  });
167616
167616
  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;
167617
- var _utils$C = utils$5;
167617
+ var _utils$C = utils$6;
167618
167618
  var set$b = (0, _utils$C.mkSet)('misc');
167619
167619
  var plusMinus = set$b({
167620
167620
  name: 'Plus or Minus',
@@ -167684,7 +167684,7 @@ Object.defineProperty(constants$2, "__esModule", {
167684
167684
  value: true
167685
167685
  });
167686
167686
  constants$2.pi = constants$2.infinity = constants$2.halfInfinity = constants$2.eulers = void 0;
167687
- var _utils$B = utils$5;
167687
+ var _utils$B = utils$6;
167688
167688
  var set$a = (0, _utils$B.mkSet)('constants');
167689
167689
  var pi$2 = set$a({
167690
167690
  name: 'Pi',
@@ -167723,7 +167723,7 @@ Object.defineProperty(trigonometry$1, "__esModule", {
167723
167723
  value: true
167724
167724
  });
167725
167725
  trigonometry$1.tan = trigonometry$1.sin = trigonometry$1.sec = trigonometry$1.csc = trigonometry$1.cot = trigonometry$1.cos = void 0;
167726
- var _utils$A = utils$5;
167726
+ var _utils$A = utils$6;
167727
167727
  var set$9 = (0, _utils$A.mkSet)('trigonometry');
167728
167728
  var sin$1 = set$9({
167729
167729
  name: 'sine',
@@ -167946,7 +167946,7 @@ Object.defineProperty(operators$1, "__esModule", {
167946
167946
  value: true
167947
167947
  });
167948
167948
  operators$1.circleDot = void 0;
167949
- var _utils$z = utils$5;
167949
+ var _utils$z = utils$6;
167950
167950
  var set$7 = (0, _utils$z.mkSet)('operators');
167951
167951
  var circleDot = set$7({
167952
167952
  name: 'CircleDot',
@@ -167960,7 +167960,7 @@ Object.defineProperty(log$5, "__esModule", {
167960
167960
  value: true
167961
167961
  });
167962
167962
  log$5.logSubscript = log$5.log = log$5.ln = void 0;
167963
- var _utils$y = utils$5;
167963
+ var _utils$y = utils$6;
167964
167964
  var set$6 = (0, _utils$y.mkSet)('log');
167965
167965
  var log$4 = set$6({
167966
167966
  name: 'Log',
@@ -167988,7 +167988,7 @@ Object.defineProperty(subSup$1, "__esModule", {
167988
167988
  value: true
167989
167989
  });
167990
167990
  subSup$1.superscript = subSup$1.subscript = void 0;
167991
- var _utils$x = utils$5;
167991
+ var _utils$x = utils$6;
167992
167992
  var set$5 = (0, _utils$x.mkSet)('sub-sup');
167993
167993
  var superscript = set$5({
167994
167994
  name: 'Superscript',
@@ -168007,7 +168007,7 @@ Object.defineProperty(statistics$1, "__esModule", {
168007
168007
  value: true
168008
168008
  });
168009
168009
  statistics$1.yBar = statistics$1.xBar = statistics$1.smallSigma = statistics$1.sigma = statistics$1.mu = void 0;
168010
- var _utils$w = utils$5;
168010
+ var _utils$w = utils$6;
168011
168011
  var set$4 = (0, _utils$w.mkSet)('statistics');
168012
168012
  var xBar = set$4({
168013
168013
  name: 'X Bar',
@@ -168066,7 +168066,7 @@ Object.defineProperty(basicOperators$1, "__esModule", {
168066
168066
  });
168067
168067
  basicOperators$1.plus = basicOperators$1.multiply = basicOperators$1.minus = basicOperators$1.equals = basicOperators$1.divide = void 0;
168068
168068
  var _chars$2 = chars;
168069
- var _utils$v = utils$5;
168069
+ var _utils$v = utils$6;
168070
168070
  var set$3 = (0, _utils$v.mkSet)('operators');
168071
168071
  var equals = set$3({
168072
168072
  write: '=',
@@ -168101,7 +168101,7 @@ Object.defineProperty(matrices$1, "__esModule", {
168101
168101
  value: true
168102
168102
  });
168103
168103
  matrices$1.singleCellMatrix = matrices$1.doubleCellMatrix = void 0;
168104
- var _utils$u = utils$5;
168104
+ var _utils$u = utils$6;
168105
168105
  var set$2 = (0, _utils$u.mkSet)('matrices');
168106
168106
  var singleCellMatrix = set$2({
168107
168107
  name: 'Single Cell Matrix',
@@ -168170,7 +168170,7 @@ Object.defineProperty(logic$1, "__esModule", {
168170
168170
  value: true
168171
168171
  });
168172
168172
  logic$1.therefore = logic$1.longDivision = void 0;
168173
- var _utils$t = utils$5;
168173
+ var _utils$t = utils$6;
168174
168174
  var set$1 = (0, _utils$t.mkSet)('logic');
168175
168175
  var therefore = set$1({
168176
168176
  name: 'Therefore',
@@ -168190,7 +168190,7 @@ Object.defineProperty(navigation, "__esModule", {
168190
168190
  });
168191
168191
  navigation.right = navigation.left = void 0;
168192
168192
  var _chars$1 = chars;
168193
- var _utils$s = utils$5;
168193
+ var _utils$s = utils$6;
168194
168194
  var set = (0, _utils$s.mkSet)('navigation');
168195
168195
  var left = set({
168196
168196
  label: _chars$1.LEFT_ARROW,
@@ -169653,7 +169653,7 @@ const require$$9$f = _dll_prop_types;
169653
169653
  var _react = _interopRequireDefault(require$$8$c);
169654
169654
  var _propTypes = _interopRequireDefault(require$$9$f);
169655
169655
  var _grades = grades;
169656
- var _utils = utils$5;
169656
+ var _utils = utils$6;
169657
169657
  var _keypad = _interopRequireDefault(keypad);
169658
169658
  function _createSuper(Derived) {
169659
169659
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
@@ -169845,6 +169845,22 @@ getDefaultExportFromCjs(horizontalKeypad);
169845
169845
  exports.removeBrackets = removeBrackets;
169846
169846
  })(mathInput);
169847
169847
  getDefaultExportFromCjs(mathInput);
169848
+ var utils$5 = {};
169849
+ Object.defineProperty(utils$5, "__esModule", {
169850
+ value: true
169851
+ });
169852
+ utils$5.markFractionBaseSuperscripts = void 0;
169853
+ var markFractionBaseSuperscripts = function markFractionBaseSuperscripts() {
169854
+ document.querySelectorAll('.mq-supsub.mq-sup-only').forEach(function (supsub) {
169855
+ var prev = supsub.previousElementSibling;
169856
+ if (prev && prev.classList.contains('mq-non-leaf') && prev.querySelector('.mq-fraction')) {
169857
+ supsub.classList.add('mq-after-fraction-group');
169858
+ } else {
169859
+ supsub.classList.remove('mq-after-fraction-group');
169860
+ }
169861
+ });
169862
+ };
169863
+ utils$5.markFractionBaseSuperscripts = markFractionBaseSuperscripts;
169848
169864
  const require$$9$e = _dll_react;
169849
169865
  const require$$10$i = _dll_debug;
169850
169866
  const require$$11$i = _dll_prop_types;
@@ -169874,6 +169890,7 @@ const {isEqual: require$$18$3} = _dll_lodash;
169874
169890
  var _MenuItem = _interopRequireDefault(MenuItem$2);
169875
169891
  var _Select = _interopRequireDefault(Select$2);
169876
169892
  var _isEqual = _interopRequireDefault(require$$18$3);
169893
+ var _utils = utils$5;
169877
169894
  function _createSuper(Derived) {
169878
169895
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
169879
169896
  return function _createSuperInternal() {
@@ -169996,6 +170013,7 @@ const {isEqual: require$$18$3} = _dll_lodash;
169996
170013
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onEditorChange", function (latex) {
169997
170014
  var _this$props2 = _this.props, onChange = _this$props2.onChange, noDecimal = _this$props2.noDecimal;
169998
170015
  (0, _mathInput.updateSpans)();
170016
+ (0, _utils.markFractionBaseSuperscripts)();
169999
170017
  _this.updateDisable(true);
170000
170018
  if (noDecimal && (latex.indexOf('.') !== -1 || latex.indexOf(',') !== -1) && _this.input) {
170001
170019
  _this.input.clear();
@@ -170288,6 +170306,12 @@ const {isEqual: require$$18$3} = _dll_lodash;
170288
170306
  marginBottom: '0px !important'
170289
170307
  }
170290
170308
  },
170309
+ '& .mq-math-mode .mq-fraction + .mq-supsub.mq-sup-only': {
170310
+ verticalAlign: '0.4em !important'
170311
+ },
170312
+ '& .mq-math-mode .mq-supsub.mq-sup-only.mq-after-fraction-group': {
170313
+ verticalAlign: '0.4em !important'
170314
+ },
170291
170315
  '& .mq-math-mode .mq-denominator': {
170292
170316
  marginTop: '-5px !important',
170293
170317
  padding: '0.5em 0.1em 0.1em !important'
@@ -170550,6 +170574,7 @@ const require$$11$h = _dll_prop_types;
170550
170574
  var _styles = styles$1J;
170551
170575
  var _propTypes = _interopRequireDefault(require$$11$h);
170552
170576
  var _mathInput = mathInput;
170577
+ var _utils = utils$5;
170553
170578
  function _createSuper(Derived) {
170554
170579
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
170555
170580
  return function _createSuperInternal() {
@@ -170583,6 +170608,18 @@ const require$$11$h = _dll_prop_types;
170583
170608
  return _super.apply(this, arguments);
170584
170609
  }
170585
170610
  (0, _createClass2["default"])(RawMathPreview, [{
170611
+ key: "componentDidMount",
170612
+ value: function componentDidMount() {
170613
+ (0, _utils.markFractionBaseSuperscripts)();
170614
+ }
170615
+ }, {
170616
+ key: "componentDidUpdate",
170617
+ value: function componentDidUpdate(prevProps) {
170618
+ if (this.props.node.data.get('latex') !== prevProps.node.data.get('latex')) {
170619
+ (0, _utils.markFractionBaseSuperscripts)();
170620
+ }
170621
+ }
170622
+ }, {
170586
170623
  key: "render",
170587
170624
  value: function render() {
170588
170625
  log('[render] data: ', this.props.node.data);
@@ -170710,6 +170747,12 @@ const require$$11$h = _dll_prop_types;
170710
170747
  marginBottom: '0px !important'
170711
170748
  }
170712
170749
  },
170750
+ '& .mq-math-mode .mq-fraction + .mq-supsub.mq-sup-only': {
170751
+ verticalAlign: '0.4em !important'
170752
+ },
170753
+ '& .mq-math-mode .mq-supsub.mq-sup-only.mq-after-fraction-group': {
170754
+ verticalAlign: '0.4em !important'
170755
+ },
170713
170756
  '& .mq-overarrow-inner': {
170714
170757
  paddingTop: '0 !important',
170715
170758
  border: 'none !important'
@@ -177557,7 +177600,7 @@ var _interopRequireDefault$i = interopRequireDefault.exports;
177557
177600
  Object.defineProperty(serialization, "__esModule", {
177558
177601
  value: true
177559
177602
  });
177560
- serialization.valueToHtml = serialization.reduceMultipleBrs = serialization.reactAttributes = serialization.parseStyleString = serialization.htmlToValue = serialization.getBase64 = serialization.extraCSSRulesOpts = serialization.TEXT_RULE = serialization.INLINE_TAGS = void 0;
177603
+ serialization.valueToHtml = serialization.reduceMultipleBrs = serialization.reactAttributes = serialization.parseStyleString = serialization.htmlToValue = serialization.handleHtml = serialization.getBase64 = serialization.extraCSSRulesOpts = serialization.TEXT_RULE = serialization.INLINE_TAGS = void 0;
177561
177604
  var _defineProperty2$3 = _interopRequireDefault$i(defineProperty$5.exports);
177562
177605
  var _slateHtmlSerializer = _interopRequireDefault$i(require$$2$h);
177563
177606
  var _react$h = _interopRequireDefault$i(require$$3$a);
@@ -178032,9 +178075,13 @@ var fixHtmlCode = function fixHtmlCode(markup) {
178032
178075
  parseNode(wrapperEl);
178033
178076
  return wrapperEl.innerHTML;
178034
178077
  };
178078
+ var handleHtml = function handleHtml(html) {
178079
+ return fixHtmlCode(reduceRedundantNewLineCharacters(reduceMultipleBrs(html)));
178080
+ };
178081
+ serialization.handleHtml = handleHtml;
178035
178082
  var htmlToValue = function htmlToValue(html) {
178036
178083
  try {
178037
- return serializer.deserialize(fixHtmlCode(reduceRedundantNewLineCharacters(reduceMultipleBrs(html))));
178084
+ return serializer.deserialize(handleHtml(html));
178038
178085
  } catch (e) {
178039
178086
  console.log("Couldn't parse html: ", e);
178040
178087
  return {};
@@ -180740,7 +180787,7 @@ const require$$21 = _dll_debug;
180740
180787
  exports.serialization = serialization$1;
180741
180788
  var _insertImageHandler = _interopRequireDefault(insertImageHandler);
180742
180789
  var _plugins = plugins;
180743
- var _excluded = ["customPlugins"];
180790
+ var _excluded = ["customPlugins", "showParagraphs"];
180744
180791
  function _getRequireWildcardCache(nodeInterop) {
180745
180792
  if (typeof WeakMap !== "function") return null;
180746
180793
  var cacheBabelInterop = new WeakMap();
@@ -181590,11 +181637,13 @@ const require$$21 = _dll_debug;
181590
181637
  }, {
181591
181638
  key: "render",
181592
181639
  value: function render() {
181593
- var _classNames, _this4 = this, _value$document;
181594
- 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;
181640
+ var _classNames, _this4 = this, _value$document, _classNames2;
181641
+ 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;
181642
+ _this$props2.isEditor;
181643
+ var placeholder = _this$props2.placeholder, pluginProps = _this$props2.pluginProps, onKeyDown = _this$props2.onKeyDown;
181595
181644
  var _ref4 = pluginProps || ({});
181596
181645
  _ref4.customPlugins;
181597
- var otherPluginProps = (0, _objectWithoutProperties2["default"])(_ref4, _excluded);
181646
+ var showParagraphs = _ref4.showParagraphs, otherPluginProps = (0, _objectWithoutProperties2["default"])(_ref4, _excluded);
181598
181647
  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;
181599
181648
  log('[render] value: ', value);
181600
181649
  var sizeStyle = this.buildSizeStyle();
@@ -181650,7 +181699,7 @@ const require$$21 = _dll_debug;
181650
181699
  readOnly: disabled,
181651
181700
  spellCheck: spellCheck,
181652
181701
  autoCorrect: spellCheck,
181653
- className: (0, _classnames["default"])((0, _defineProperty2["default"])({}, classes.noPadding, toolbarOpts === null || toolbarOpts === void 0 ? void 0 : toolbarOpts.noPadding), classes.slateEditor),
181702
+ 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),
181654
181703
  style: {
181655
181704
  minHeight: sizeStyle.minHeight,
181656
181705
  height: sizeStyle.height,
@@ -181713,6 +181762,7 @@ const require$$21 = _dll_debug;
181713
181762
  autoWidthToolbar: _propTypes["default"].bool,
181714
181763
  pluginProps: _propTypes["default"].any,
181715
181764
  placeholder: _propTypes["default"].string,
181765
+ isEditor: _propTypes["default"].bool,
181716
181766
  responseAreaProps: _propTypes["default"].shape({
181717
181767
  type: _propTypes["default"].oneOf(['explicit-constructed-response', 'inline-dropdown', 'drag-in-the-blank', 'math-templated']),
181718
181768
  options: _propTypes["default"].object,
@@ -181762,7 +181812,8 @@ const require$$21 = _dll_debug;
181762
181812
  toolbarOpts: defaultToolbarOpts,
181763
181813
  responseAreaProps: defaultResponseAreaProps,
181764
181814
  languageCharactersProps: defaultLanguageCharactersProps,
181765
- extraCSSRules: null
181815
+ extraCSSRules: null,
181816
+ isEditor: false
181766
181817
  });
181767
181818
  var styles = {
181768
181819
  withBg: {
@@ -181799,6 +181850,13 @@ const require$$21 = _dll_debug;
181799
181850
  border: '1px solid #dfe2e5'
181800
181851
  }
181801
181852
  },
181853
+ showParagraph: {
181854
+ '& > div:has(+ div)::after': {
181855
+ display: 'block',
181856
+ content: '"¶"',
181857
+ color: '#146EB3'
181858
+ }
181859
+ },
181802
181860
  toolbarOnTop: {
181803
181861
  marginTop: '45px'
181804
181862
  },
@@ -181983,7 +182041,7 @@ const require$$15$2 = _dll_debug;
181983
182041
  });
181984
182042
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (value, done) {
181985
182043
  var html = (0, _serialization.valueToHtml)(value);
181986
- var htmlParsed = (0, _parseHtml.parseDegrees)(html);
182044
+ var htmlParsed = (0, _serialization.handleHtml)((0, _parseHtml.parseDegrees)(html));
181987
182045
  if (html !== _this.props.markup && _this.props.onChange) {
181988
182046
  _this.props.onChange(htmlParsed);
181989
182047
  }
@@ -182045,7 +182103,7 @@ const require$$15$2 = _dll_debug;
182045
182103
  return;
182046
182104
  }
182047
182105
  var v = (0, _serialization.htmlToValue)(props.markup);
182048
- var current = (0, _serialization.htmlToValue)(props.markup);
182106
+ var current = (0, _serialization.htmlToValue)(this.props.markup);
182049
182107
  if (v.equals && !v.equals(current)) {
182050
182108
  this.setState({
182051
182109
  value: v