@pie-element/complex-rubric 2.16.8-next.7 → 2.17.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/module/element.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.19.1/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.20.0/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.0/module/index.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -64837,7 +64837,7 @@ var _interopRequireDefault$2r = interopRequireDefault.exports;
64837
64837
  Object.defineProperty(color, "__esModule", {
64838
64838
  value: true
64839
64839
  });
64840
- color.white = color.v = color.text = color.secondaryText = color.secondaryLight = color.secondaryDark = color.secondaryBackground = color.secondary = color.primaryText = color.primaryLight = color.primaryDark = color.primary = color.missingWithIcon = color.missing = color.incorrectWithIcon = color.incorrectSecondary = color.incorrect = color.disabledSecondary = color.disabled = color.defaults = color.correctWithIcon = color.correctSecondary = color.correct = color.black = color.background = void 0;
64840
+ color.white = color.v = color.transparent = color.text = color.secondaryText = color.secondaryLight = color.secondaryDark = color.secondaryBackground = color.secondary = color.primaryText = color.primaryLight = color.primaryDark = color.primary = color.missingWithIcon = color.missing = color.incorrectWithIcon = color.incorrectSecondary = color.incorrect = color.disabledSecondary = color.disabled = color.defaults = color.correctWithIcon = color.correctSecondary = color.correct = color.borderLight = color.borderDark = color.border = color.black = color.backgroundDark = color.background = void 0;
64841
64841
  var _green = _interopRequireDefault$2r(green$1);
64842
64842
  var _orange = _interopRequireDefault$2r(orange$1);
64843
64843
  var _pink = _interopRequireDefault$2r(pink$1);
@@ -64862,9 +64862,14 @@ var defaults = {
64862
64862
  SECONDARY_LIGHT: _pink["default"][200],
64863
64863
  SECONDARY_DARK: _pink["default"][900],
64864
64864
  BACKGROUND: 'rgba(255,255,255,0)',
64865
+ BACKGROUND_DARK: '#ECEDF1',
64865
64866
  SECONDARY_BACKGROUND: 'rgba(241,241,241,1)',
64867
+ BORDER: '#9A9A9A',
64868
+ BORDER_LIGHT: '#D1D1D1',
64869
+ BORDER_DARK: '#646464',
64866
64870
  BLACK: '#000000',
64867
- WHITE: '#ffffff'
64871
+ WHITE: '#ffffff',
64872
+ TRANSPARENT: 'transparent'
64868
64873
  };
64869
64874
  color.defaults = defaults;
64870
64875
  Object.freeze(defaults);
@@ -64961,10 +64966,26 @@ var background = function background() {
64961
64966
  return pv('background', defaults.BACKGROUND);
64962
64967
  };
64963
64968
  color.background = background;
64969
+ var backgroundDark = function backgroundDark() {
64970
+ return pv('background-dark', defaults.BACKGROUND_DARK);
64971
+ };
64972
+ color.backgroundDark = backgroundDark;
64964
64973
  var secondaryBackground = function secondaryBackground() {
64965
64974
  return pv('secondary-background', defaults.SECONDARY_BACKGROUND);
64966
64975
  };
64967
64976
  color.secondaryBackground = secondaryBackground;
64977
+ var border = function border() {
64978
+ return pv('border', defaults.BORDER);
64979
+ };
64980
+ color.border = border;
64981
+ var borderLight = function borderLight() {
64982
+ return pv('border-light', defaults.BORDER_LIGHT);
64983
+ };
64984
+ color.borderLight = borderLight;
64985
+ var borderDark = function borderDark() {
64986
+ return pv('border-dark', defaults.BORDER_DARK);
64987
+ };
64988
+ color.borderDark = borderDark;
64968
64989
  var black = function black() {
64969
64990
  return pv('black', defaults.BLACK);
64970
64991
  };
@@ -64973,6 +64994,10 @@ var white = function white() {
64973
64994
  return pv('white', defaults.WHITE);
64974
64995
  };
64975
64996
  color.white = white;
64997
+ var transparent = function transparent() {
64998
+ return defaults.TRANSPARENT;
64999
+ };
65000
+ color.transparent = transparent;
64976
65001
  const require$$9$C = _dll_react;
64977
65002
  const require$$11$v = _dll_classnames;
64978
65003
  const require$$12$i = _dll_prop_types;
@@ -129485,7 +129510,8 @@ const require$$12$b = _dll_debug;
129485
129510
  }, _react["default"].createElement("div", null, fileUpload.url ? _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement("div", {
129486
129511
  className: classes.row
129487
129512
  }, _react["default"].createElement("audio", {
129488
- controls: "controls"
129513
+ controls: "controls",
129514
+ controlsList: "nodownload"
129489
129515
  }, _react["default"].createElement("source", {
129490
129516
  type: "audio/mp3",
129491
129517
  src: fileUpload.url
@@ -129961,7 +129987,8 @@ const require$$9$s = _dll_debug;
129961
129987
  "data-type": type,
129962
129988
  width: style.width
129963
129989
  }, rest), _react["default"].createElement("audio", {
129964
- controls: "controls"
129990
+ controls: "controls",
129991
+ controlsList: "nodownload"
129965
129992
  }, _react["default"].createElement("source", {
129966
129993
  type: "audio/mp3",
129967
129994
  src: src
@@ -130086,7 +130113,8 @@ const require$$9$s = _dll_debug;
130086
130113
  });
130087
130114
  if (tag === 'audio') {
130088
130115
  return _react["default"].createElement("audio", {
130089
- controls: "controls"
130116
+ controls: "controls",
130117
+ controlsList: "nodownload"
130090
130118
  }, _react["default"].createElement("source", {
130091
130119
  type: "audio/mp3",
130092
130120
  src: src
@@ -139170,6 +139198,7 @@ const require$$4$P = _dll_prop_types;
139170
139198
  var _classnames = _interopRequireDefault(require$$3$z);
139171
139199
  var _propTypes = _interopRequireDefault(require$$4$P);
139172
139200
  var _grey = _interopRequireDefault(grey$1);
139201
+ var _renderUi = renderUi;
139173
139202
  var PlaceHolder = function PlaceHolder(props) {
139174
139203
  var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard, isCategorize = props.isCategorize;
139175
139204
  var names = (0, _classnames["default"])(classes.placeholder, disabled && classes.disabled, isOver && classes.over, classes[type], className);
@@ -139181,6 +139210,10 @@ const require$$4$P = _dll_prop_types;
139181
139210
  var repeatValue = grid.rowsRepeatValue || '1fr';
139182
139211
  style.gridTemplateRows = ("repeat(").concat(grid.rows, ", ").concat(repeatValue, ")");
139183
139212
  }
139213
+ if (type === 'choice') {
139214
+ style.border = ("1px solid ").concat(_renderUi.color.borderLight());
139215
+ style.background = _renderUi.color.backgroundDark();
139216
+ }
139184
139217
  var boardStyle = isCategorize ? classes.categorizeBoard : classes.board;
139185
139218
  return _react["default"].createElement("div", {
139186
139219
  style: style,
@@ -139209,14 +139242,14 @@ const require$$4$P = _dll_prop_types;
139209
139242
  placeholder: {
139210
139243
  width: '100%',
139211
139244
  height: '100%',
139212
- background: theme.palette.grey[200],
139213
- border: '1px solid #D1D1D1',
139245
+ background: _renderUi.color.white(),
139214
139246
  transition: 'background-color 200ms linear, border-color 200ms linear',
139215
139247
  boxSizing: 'border-box',
139216
139248
  display: 'grid',
139217
139249
  gridRowGap: ("").concat(theme.spacing.unit, "px"),
139218
139250
  gridColumnGap: ("").concat(theme.spacing.unit, "px"),
139219
- padding: theme.spacing.unit * 1
139251
+ padding: theme.spacing.unit * 1,
139252
+ border: ("2px dashed ").concat(_renderUi.color.black())
139220
139253
  },
139221
139254
  disabled: {
139222
139255
  boxShadow: 'none',
@@ -139227,18 +139260,17 @@ const require$$4$P = _dll_prop_types;
139227
139260
  backgroundColor: ("").concat(_grey["default"][300])
139228
139261
  },
139229
139262
  board: {
139230
- border: '1px solid #D1D1D1',
139231
139263
  padding: theme.spacing.unit,
139232
139264
  display: 'flex',
139233
139265
  flexWrap: 'wrap',
139234
139266
  alignItems: 'center',
139235
- minHeight: '200px',
139267
+ minHeight: '100px',
139236
139268
  justifyContent: 'center',
139237
139269
  overflow: 'hidden',
139238
- touchAction: 'none'
139270
+ touchAction: 'none',
139271
+ backgroundColor: _renderUi.color.backgroundDark()
139239
139272
  },
139240
139273
  categorizeBoard: {
139241
- border: '1px solid #D1D1D1',
139242
139274
  padding: theme.spacing.unit / 2,
139243
139275
  display: 'flex',
139244
139276
  flexWrap: 'wrap',
@@ -139246,7 +139278,8 @@ const require$$4$P = _dll_prop_types;
139246
139278
  minHeight: '100px',
139247
139279
  justifyContent: 'center',
139248
139280
  overflow: 'hidden',
139249
- touchAction: 'none'
139281
+ touchAction: 'none',
139282
+ backgroundColor: _renderUi.color.backgroundDark()
139250
139283
  }
139251
139284
  };
139252
139285
  };
@@ -146859,7 +146892,6 @@ const require$$13$5 = _dll_prop_types;
146859
146892
  }
146860
146893
  log('[render] inFocus: ', inFocus, 'value.isFocused:', value.isFocused, 'focused node: ', focusedNode);
146861
146894
  return _react["default"].createElement("div", {
146862
- tabIndex: 0,
146863
146895
  className: (0, _classnames["default"])((_classNames2 = {}, (0, _defineProperty2["default"])(_classNames2, classes.noBorder, toolbarOpts && toolbarOpts.noBorder), (0, _defineProperty2["default"])(_classNames2, classes.error, toolbarOpts && toolbarOpts.error), _classNames2), classes.root)
146864
146896
  }, _react["default"].createElement("div", {
146865
146897
  className: holderNames
@@ -156480,7 +156512,7 @@ const require$$23 = _dll_classnames;
156480
156512
  }, {
156481
156513
  key: "render",
156482
156514
  value: function render() {
156483
- var _classNames, _this4 = this;
156515
+ var _classNames, _value$document, _this4 = this, _value$document2;
156484
156516
  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;
156485
156517
  var _ref4 = pluginProps || ({});
156486
156518
  _ref4.customPlugins;
@@ -156489,14 +156521,19 @@ const require$$23 = _dll_classnames;
156489
156521
  log('[render] value: ', value);
156490
156522
  var sizeStyle = this.buildSizeStyle();
156491
156523
  var names = (0, _classnames["default"])((_classNames = {}, (0, _defineProperty2["default"])(_classNames, classes.withBg, highlightShape), (0, _defineProperty2["default"])(_classNames, classes.toolbarOnTop, toolbarOpts.alwaysVisible && toolbarOpts.position === 'top'), (0, _defineProperty2["default"])(_classNames, classes.scheduled, scheduled), _classNames), className);
156492
- return _react["default"].createElement("div", {
156524
+ var isResponseAreaEditor = names.includes('response-area-editor');
156525
+ return _react["default"].createElement(_react["default"].Fragment, null, isResponseAreaEditor && _react["default"].createElement("label", {
156526
+ htmlFor: ("editor-").concat(value === null || value === void 0 ? void 0 : (_value$document = value.document) === null || _value$document === void 0 ? void 0 : _value$document.key),
156527
+ className: classes.srOnly
156528
+ }, "Answer:"), _react["default"].createElement("div", {
156493
156529
  ref: function ref(_ref5) {
156494
156530
  return _this4.wrapperRef = _ref5;
156495
156531
  },
156496
156532
  style: {
156497
156533
  width: sizeStyle.width
156498
156534
  },
156499
- className: names
156535
+ className: names,
156536
+ id: ("editor-").concat(value === null || value === void 0 ? void 0 : (_value$document2 = value.document) === null || _value$document2 === void 0 ? void 0 : _value$document2.key)
156500
156537
  }, scheduled && _react["default"].createElement("div", {
156501
156538
  className: classes.uploading
156502
156539
  }, "Uploading image and then saving..."), _react["default"].createElement(_slateReact.Editor, {
@@ -156555,7 +156592,7 @@ const require$$23 = _dll_classnames;
156555
156592
  onConfirm: dialog.onConfirm,
156556
156593
  onConfirmText: dialog.onConfirmText,
156557
156594
  onCloseText: dialog.onCloseText
156558
- }));
156595
+ })));
156559
156596
  }
156560
156597
  }]);
156561
156598
  return Editor;
@@ -156688,6 +156725,16 @@ const require$$23 = _dll_classnames;
156688
156725
  marginTop: '6px',
156689
156726
  padding: '20px',
156690
156727
  backgroundColor: 'rgba(0,0,0,0.06)'
156728
+ },
156729
+ srOnly: {
156730
+ border: 0,
156731
+ clip: 'rect(0, 0, 0, 0)',
156732
+ height: '1px',
156733
+ margin: '-1px',
156734
+ overflow: 'hidden',
156735
+ padding: 0,
156736
+ position: 'absolute',
156737
+ width: '1px'
156691
156738
  }
156692
156739
  };
156693
156740
  var _default = (0, _styles.withStyles)(styles)(Editor);
@@ -4,7 +4,7 @@
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
- "version": "1.19.1"
7
+ "version": "1.20.0"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
package/module/print.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.19.1/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.20.0/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.0/module/index.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -64837,7 +64837,7 @@ var _interopRequireDefault$2r = interopRequireDefault.exports;
64837
64837
  Object.defineProperty(color, "__esModule", {
64838
64838
  value: true
64839
64839
  });
64840
- color.white = color.v = color.text = color.secondaryText = color.secondaryLight = color.secondaryDark = color.secondaryBackground = color.secondary = color.primaryText = color.primaryLight = color.primaryDark = color.primary = color.missingWithIcon = color.missing = color.incorrectWithIcon = color.incorrectSecondary = color.incorrect = color.disabledSecondary = color.disabled = color.defaults = color.correctWithIcon = color.correctSecondary = color.correct = color.black = color.background = void 0;
64840
+ color.white = color.v = color.transparent = color.text = color.secondaryText = color.secondaryLight = color.secondaryDark = color.secondaryBackground = color.secondary = color.primaryText = color.primaryLight = color.primaryDark = color.primary = color.missingWithIcon = color.missing = color.incorrectWithIcon = color.incorrectSecondary = color.incorrect = color.disabledSecondary = color.disabled = color.defaults = color.correctWithIcon = color.correctSecondary = color.correct = color.borderLight = color.borderDark = color.border = color.black = color.backgroundDark = color.background = void 0;
64841
64841
  var _green = _interopRequireDefault$2r(green$1);
64842
64842
  var _orange = _interopRequireDefault$2r(orange$1);
64843
64843
  var _pink = _interopRequireDefault$2r(pink$1);
@@ -64862,9 +64862,14 @@ var defaults = {
64862
64862
  SECONDARY_LIGHT: _pink["default"][200],
64863
64863
  SECONDARY_DARK: _pink["default"][900],
64864
64864
  BACKGROUND: 'rgba(255,255,255,0)',
64865
+ BACKGROUND_DARK: '#ECEDF1',
64865
64866
  SECONDARY_BACKGROUND: 'rgba(241,241,241,1)',
64867
+ BORDER: '#9A9A9A',
64868
+ BORDER_LIGHT: '#D1D1D1',
64869
+ BORDER_DARK: '#646464',
64866
64870
  BLACK: '#000000',
64867
- WHITE: '#ffffff'
64871
+ WHITE: '#ffffff',
64872
+ TRANSPARENT: 'transparent'
64868
64873
  };
64869
64874
  color.defaults = defaults;
64870
64875
  Object.freeze(defaults);
@@ -64961,10 +64966,26 @@ var background = function background() {
64961
64966
  return pv('background', defaults.BACKGROUND);
64962
64967
  };
64963
64968
  color.background = background;
64969
+ var backgroundDark = function backgroundDark() {
64970
+ return pv('background-dark', defaults.BACKGROUND_DARK);
64971
+ };
64972
+ color.backgroundDark = backgroundDark;
64964
64973
  var secondaryBackground = function secondaryBackground() {
64965
64974
  return pv('secondary-background', defaults.SECONDARY_BACKGROUND);
64966
64975
  };
64967
64976
  color.secondaryBackground = secondaryBackground;
64977
+ var border = function border() {
64978
+ return pv('border', defaults.BORDER);
64979
+ };
64980
+ color.border = border;
64981
+ var borderLight = function borderLight() {
64982
+ return pv('border-light', defaults.BORDER_LIGHT);
64983
+ };
64984
+ color.borderLight = borderLight;
64985
+ var borderDark = function borderDark() {
64986
+ return pv('border-dark', defaults.BORDER_DARK);
64987
+ };
64988
+ color.borderDark = borderDark;
64968
64989
  var black = function black() {
64969
64990
  return pv('black', defaults.BLACK);
64970
64991
  };
@@ -64973,6 +64994,10 @@ var white = function white() {
64973
64994
  return pv('white', defaults.WHITE);
64974
64995
  };
64975
64996
  color.white = white;
64997
+ var transparent = function transparent() {
64998
+ return defaults.TRANSPARENT;
64999
+ };
65000
+ color.transparent = transparent;
64976
65001
  const require$$9$C = _dll_react;
64977
65002
  const require$$11$v = _dll_classnames;
64978
65003
  const require$$12$i = _dll_prop_types;
@@ -129485,7 +129510,8 @@ const require$$12$b = _dll_debug;
129485
129510
  }, _react["default"].createElement("div", null, fileUpload.url ? _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement("div", {
129486
129511
  className: classes.row
129487
129512
  }, _react["default"].createElement("audio", {
129488
- controls: "controls"
129513
+ controls: "controls",
129514
+ controlsList: "nodownload"
129489
129515
  }, _react["default"].createElement("source", {
129490
129516
  type: "audio/mp3",
129491
129517
  src: fileUpload.url
@@ -129961,7 +129987,8 @@ const require$$9$s = _dll_debug;
129961
129987
  "data-type": type,
129962
129988
  width: style.width
129963
129989
  }, rest), _react["default"].createElement("audio", {
129964
- controls: "controls"
129990
+ controls: "controls",
129991
+ controlsList: "nodownload"
129965
129992
  }, _react["default"].createElement("source", {
129966
129993
  type: "audio/mp3",
129967
129994
  src: src
@@ -130086,7 +130113,8 @@ const require$$9$s = _dll_debug;
130086
130113
  });
130087
130114
  if (tag === 'audio') {
130088
130115
  return _react["default"].createElement("audio", {
130089
- controls: "controls"
130116
+ controls: "controls",
130117
+ controlsList: "nodownload"
130090
130118
  }, _react["default"].createElement("source", {
130091
130119
  type: "audio/mp3",
130092
130120
  src: src
@@ -139170,6 +139198,7 @@ const require$$4$P = _dll_prop_types;
139170
139198
  var _classnames = _interopRequireDefault(require$$3$z);
139171
139199
  var _propTypes = _interopRequireDefault(require$$4$P);
139172
139200
  var _grey = _interopRequireDefault(grey$1);
139201
+ var _renderUi = renderUi;
139173
139202
  var PlaceHolder = function PlaceHolder(props) {
139174
139203
  var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard, isCategorize = props.isCategorize;
139175
139204
  var names = (0, _classnames["default"])(classes.placeholder, disabled && classes.disabled, isOver && classes.over, classes[type], className);
@@ -139181,6 +139210,10 @@ const require$$4$P = _dll_prop_types;
139181
139210
  var repeatValue = grid.rowsRepeatValue || '1fr';
139182
139211
  style.gridTemplateRows = ("repeat(").concat(grid.rows, ", ").concat(repeatValue, ")");
139183
139212
  }
139213
+ if (type === 'choice') {
139214
+ style.border = ("1px solid ").concat(_renderUi.color.borderLight());
139215
+ style.background = _renderUi.color.backgroundDark();
139216
+ }
139184
139217
  var boardStyle = isCategorize ? classes.categorizeBoard : classes.board;
139185
139218
  return _react["default"].createElement("div", {
139186
139219
  style: style,
@@ -139209,14 +139242,14 @@ const require$$4$P = _dll_prop_types;
139209
139242
  placeholder: {
139210
139243
  width: '100%',
139211
139244
  height: '100%',
139212
- background: theme.palette.grey[200],
139213
- border: '1px solid #D1D1D1',
139245
+ background: _renderUi.color.white(),
139214
139246
  transition: 'background-color 200ms linear, border-color 200ms linear',
139215
139247
  boxSizing: 'border-box',
139216
139248
  display: 'grid',
139217
139249
  gridRowGap: ("").concat(theme.spacing.unit, "px"),
139218
139250
  gridColumnGap: ("").concat(theme.spacing.unit, "px"),
139219
- padding: theme.spacing.unit * 1
139251
+ padding: theme.spacing.unit * 1,
139252
+ border: ("2px dashed ").concat(_renderUi.color.black())
139220
139253
  },
139221
139254
  disabled: {
139222
139255
  boxShadow: 'none',
@@ -139227,18 +139260,17 @@ const require$$4$P = _dll_prop_types;
139227
139260
  backgroundColor: ("").concat(_grey["default"][300])
139228
139261
  },
139229
139262
  board: {
139230
- border: '1px solid #D1D1D1',
139231
139263
  padding: theme.spacing.unit,
139232
139264
  display: 'flex',
139233
139265
  flexWrap: 'wrap',
139234
139266
  alignItems: 'center',
139235
- minHeight: '200px',
139267
+ minHeight: '100px',
139236
139268
  justifyContent: 'center',
139237
139269
  overflow: 'hidden',
139238
- touchAction: 'none'
139270
+ touchAction: 'none',
139271
+ backgroundColor: _renderUi.color.backgroundDark()
139239
139272
  },
139240
139273
  categorizeBoard: {
139241
- border: '1px solid #D1D1D1',
139242
139274
  padding: theme.spacing.unit / 2,
139243
139275
  display: 'flex',
139244
139276
  flexWrap: 'wrap',
@@ -139246,7 +139278,8 @@ const require$$4$P = _dll_prop_types;
139246
139278
  minHeight: '100px',
139247
139279
  justifyContent: 'center',
139248
139280
  overflow: 'hidden',
139249
- touchAction: 'none'
139281
+ touchAction: 'none',
139282
+ backgroundColor: _renderUi.color.backgroundDark()
139250
139283
  }
139251
139284
  };
139252
139285
  };
@@ -146859,7 +146892,6 @@ const require$$13$5 = _dll_prop_types;
146859
146892
  }
146860
146893
  log('[render] inFocus: ', inFocus, 'value.isFocused:', value.isFocused, 'focused node: ', focusedNode);
146861
146894
  return _react["default"].createElement("div", {
146862
- tabIndex: 0,
146863
146895
  className: (0, _classnames["default"])((_classNames2 = {}, (0, _defineProperty2["default"])(_classNames2, classes.noBorder, toolbarOpts && toolbarOpts.noBorder), (0, _defineProperty2["default"])(_classNames2, classes.error, toolbarOpts && toolbarOpts.error), _classNames2), classes.root)
146864
146896
  }, _react["default"].createElement("div", {
146865
146897
  className: holderNames
@@ -156480,7 +156512,7 @@ const require$$23 = _dll_classnames;
156480
156512
  }, {
156481
156513
  key: "render",
156482
156514
  value: function render() {
156483
- var _classNames, _this4 = this;
156515
+ var _classNames, _value$document, _this4 = this, _value$document2;
156484
156516
  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;
156485
156517
  var _ref4 = pluginProps || ({});
156486
156518
  _ref4.customPlugins;
@@ -156489,14 +156521,19 @@ const require$$23 = _dll_classnames;
156489
156521
  log('[render] value: ', value);
156490
156522
  var sizeStyle = this.buildSizeStyle();
156491
156523
  var names = (0, _classnames["default"])((_classNames = {}, (0, _defineProperty2["default"])(_classNames, classes.withBg, highlightShape), (0, _defineProperty2["default"])(_classNames, classes.toolbarOnTop, toolbarOpts.alwaysVisible && toolbarOpts.position === 'top'), (0, _defineProperty2["default"])(_classNames, classes.scheduled, scheduled), _classNames), className);
156492
- return _react["default"].createElement("div", {
156524
+ var isResponseAreaEditor = names.includes('response-area-editor');
156525
+ return _react["default"].createElement(_react["default"].Fragment, null, isResponseAreaEditor && _react["default"].createElement("label", {
156526
+ htmlFor: ("editor-").concat(value === null || value === void 0 ? void 0 : (_value$document = value.document) === null || _value$document === void 0 ? void 0 : _value$document.key),
156527
+ className: classes.srOnly
156528
+ }, "Answer:"), _react["default"].createElement("div", {
156493
156529
  ref: function ref(_ref5) {
156494
156530
  return _this4.wrapperRef = _ref5;
156495
156531
  },
156496
156532
  style: {
156497
156533
  width: sizeStyle.width
156498
156534
  },
156499
- className: names
156535
+ className: names,
156536
+ id: ("editor-").concat(value === null || value === void 0 ? void 0 : (_value$document2 = value.document) === null || _value$document2 === void 0 ? void 0 : _value$document2.key)
156500
156537
  }, scheduled && _react["default"].createElement("div", {
156501
156538
  className: classes.uploading
156502
156539
  }, "Uploading image and then saving..."), _react["default"].createElement(_slateReact.Editor, {
@@ -156555,7 +156592,7 @@ const require$$23 = _dll_classnames;
156555
156592
  onConfirm: dialog.onConfirm,
156556
156593
  onConfirmText: dialog.onConfirmText,
156557
156594
  onCloseText: dialog.onCloseText
156558
- }));
156595
+ })));
156559
156596
  }
156560
156597
  }]);
156561
156598
  return Editor;
@@ -156688,6 +156725,16 @@ const require$$23 = _dll_classnames;
156688
156725
  marginTop: '6px',
156689
156726
  padding: '20px',
156690
156727
  backgroundColor: 'rgba(0,0,0,0.06)'
156728
+ },
156729
+ srOnly: {
156730
+ border: 0,
156731
+ clip: 'rect(0, 0, 0, 0)',
156732
+ height: '1px',
156733
+ margin: '-1px',
156734
+ overflow: 'hidden',
156735
+ padding: 0,
156736
+ position: 'absolute',
156737
+ width: '1px'
156691
156738
  }
156692
156739
  };
156693
156740
  var _default = (0, _styles.withStyles)(styles)(Editor);
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric",
3
3
  "repository": "pie-framework/pie-elements",
4
- "version": "2.16.8-next.7+4785339fe",
4
+ "version": "2.17.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "dependencies": {
9
9
  "@material-ui/core": "^3.9.2",
10
- "@pie-element/multi-trait-rubric": "^3.16.8-next.7+4785339fe",
11
- "@pie-element/rubric": "^3.16.7-next.7+4785339fe",
10
+ "@pie-element/multi-trait-rubric": "^3.17.0",
11
+ "@pie-element/rubric": "^3.17.0",
12
12
  "@pie-framework/pie-player-events": "^0.1.0",
13
13
  "classnames": "^2.2.5",
14
14
  "debug": "^4.1.1",
15
15
  "lodash": "^4.17.11",
16
16
  "prop-types": "^15.7.2"
17
17
  },
18
- "gitHead": "4785339fe53a1da399e305bc1f97e7db81ebd00c",
18
+ "gitHead": "3dc179573176bfd708938867f78497294a7fd7fd",
19
19
  "scripts": {
20
20
  "postpublish": "../../scripts/postpublish"
21
21
  },