@pie-element/explicit-constructed-response 7.2.9-next.22 → 7.2.9-next.7

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.
@@ -8,7 +8,7 @@
8
8
  "@material-ui/core": "^3.9.2",
9
9
  "@material-ui/icons": "^3.0.1",
10
10
  "@pie-framework/pie-configure-events": "^1.3.0",
11
- "@pie-lib/pie-toolbox": "2.7.0",
11
+ "@pie-lib/pie-toolbox": "2.6.1",
12
12
  "classnames": "^2.2.6",
13
13
  "debug": "^3.1.0",
14
14
  "lodash": "^4.17.15",
@@ -8,7 +8,7 @@
8
8
  "author": "",
9
9
  "license": "ISC",
10
10
  "dependencies": {
11
- "@pie-lib/pie-toolbox": "2.7.0",
11
+ "@pie-lib/pie-toolbox": "2.6.1",
12
12
  "debug": "^3.1.0",
13
13
  "lodash": "^4.17.15",
14
14
  "type-of": "^2.0.1"
@@ -1,5 +1,5 @@
1
1
  import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.0.1/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.7.2/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.7.1/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
5
5
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -24379,7 +24379,7 @@ var _default = {
24379
24379
  },
24380
24380
  imageClozeAssociation: {
24381
24381
  reachedLimit_one: 'You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.',
24382
- reachedLimit_other: 'Full'
24382
+ reachedLimit_other: 'You’ve reached the limit of {{count}} responses per area. To add another response, one must first be removed.'
24383
24383
  },
24384
24384
  drawingResponse: {
24385
24385
  fillColor: 'Fill color',
@@ -24475,7 +24475,7 @@ var _default = {
24475
24475
  },
24476
24476
  imageClozeAssociation: {
24477
24477
  reachedLimit_one: 'Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
24478
- reachedLimit_other: 'Lleno'
24478
+ reachedLimit_other: 'Has alcanzado el límite de {{count}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.'
24479
24479
  },
24480
24480
  drawingResponse: {
24481
24481
  fillColor: 'Color de relleno',
package/module/element.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.0.1/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.7.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.7.1/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) {
@@ -19162,18 +19162,6 @@ const require$$14$5 = _dll_classnames;
19162
19162
  className: props.classes.para
19163
19163
  }, props.children);
19164
19164
  });
19165
- var Spacer = (0, _styles.withStyles)(function () {
19166
- return {
19167
- spacer: {
19168
- display: 'inline-block',
19169
- width: '1.5em'
19170
- }
19171
- };
19172
- })(function (props) {
19173
- return _react["default"].createElement("span", {
19174
- className: props.classes.spacer
19175
- });
19176
- });
19177
19165
  var restrictWhitespaceTypes = ['tbody', 'tr'];
19178
19166
  var addText = function addText(parentNode, text) {
19179
19167
  var isWhitespace = text.trim() === '';
@@ -19212,11 +19200,6 @@ const require$$14$5 = _dll_classnames;
19212
19200
  var c = rootRenderChildren(n, value, onChange);
19213
19201
  if (c) {
19214
19202
  children.push(c);
19215
- if ((parentNode === null || parentNode === void 0 ? void 0 : parentNode.type) !== 'td') {
19216
- children.push(_react["default"].createElement(Spacer, {
19217
- key: ("spacer-").concat(index)
19218
- }));
19219
- }
19220
19203
  return;
19221
19204
  }
19222
19205
  }
@@ -140447,7 +140430,6 @@ const require$$11$s = _dll_prop_types;
140447
140430
  }
140448
140431
  _this = _super.call.apply(_super, [this].concat(args));
140449
140432
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "parsedText", function (text) {
140450
- var autoplayAudioEnabled = _this.props.autoplayAudioEnabled;
140451
140433
  var div = document.createElement('div');
140452
140434
  div.innerHTML = text;
140453
140435
  var audio = div.querySelector('audio');
@@ -140456,9 +140438,6 @@ const require$$11$s = _dll_prop_types;
140456
140438
  source.setAttribute('type', 'audio/mp3');
140457
140439
  source.setAttribute('src', audio.getAttribute('src'));
140458
140440
  audio.removeAttribute('src');
140459
- if (autoplayAudioEnabled) {
140460
- audio.setAttribute('autoplay', 'autoplay');
140461
- }
140462
140441
  audio.appendChild(source);
140463
140442
  }
140464
140443
  return div.innerHTML;
@@ -140532,8 +140511,7 @@ const require$$11$s = _dll_prop_types;
140532
140511
  tagName: _propTypes["default"].string,
140533
140512
  className: _propTypes["default"].string,
140534
140513
  onClick: _propTypes["default"].func,
140535
- defaultClassName: _propTypes["default"].string,
140536
- autoplayAudioEnabled: _propTypes["default"].bool
140514
+ defaultClassName: _propTypes["default"].string
140537
140515
  });
140538
140516
  (0, _defineProperty2["default"])(PreviewPrompt, "defaultProps", {
140539
140517
  onClick: function onClick() {}
@@ -143551,8 +143529,7 @@ const require$$2$k = _dll_react;
143551
143529
  return newObj;
143552
143530
  }
143553
143531
  var backends = [{
143554
- backend: _reactDndHtml5Backend.HTML5Backend,
143555
- transition: _reactDndMultiBackend.MouseTransition
143532
+ backend: _reactDndHtml5Backend.HTML5Backend
143556
143533
  }, {
143557
143534
  backend: _reactDndTouchBackend.TouchBackend,
143558
143535
  options: {
@@ -144767,7 +144744,8 @@ const require$$18$3 = _dll_classnames;
144767
144744
  fontSize: 'inherit',
144768
144745
  maxWidth: '374px',
144769
144746
  position: 'relative',
144770
- borderRadius: '3px'
144747
+ borderRadius: '3px',
144748
+ margin: '8px'
144771
144749
  },
144772
144750
  chipLabel: {
144773
144751
  whiteSpace: 'normal',
@@ -170016,8 +169994,7 @@ const require$$12$1 = _dll_debug;
170016
169994
  var dataURL = reader.result;
170017
169995
  _this.setState({
170018
169996
  fileUpload: _objectSpread(_objectSpread({}, _this.state.fileUpload), {}, {
170019
- url: dataURL,
170020
- mimeType: fileChosen.type
169997
+ url: dataURL
170021
169998
  })
170022
169999
  });
170023
170000
  };
@@ -170077,8 +170054,7 @@ const require$$12$1 = _dll_debug;
170077
170054
  _this.setState({
170078
170055
  fileUpload: _objectSpread(_objectSpread({}, _this.state.fileUpload), {}, {
170079
170056
  loading: false,
170080
- url: '',
170081
- mimeType: ''
170057
+ url: ''
170082
170058
  })
170083
170059
  });
170084
170060
  case 2:
@@ -170104,8 +170080,7 @@ const require$$12$1 = _dll_debug;
170104
170080
  error: null,
170105
170081
  loading: false,
170106
170082
  scheduled: false,
170107
- url: '',
170108
- mimeType: ''
170083
+ url: ''
170109
170084
  }
170110
170085
  };
170111
170086
  return _this;
@@ -170126,7 +170101,7 @@ const require$$12$1 = _dll_debug;
170126
170101
  value: function render() {
170127
170102
  var _this2 = this;
170128
170103
  var _this$props = this.props, classes = _this$props.classes, open = _this$props.open, disablePortal = _this$props.disablePortal, type = _this$props.type, edit = _this$props.edit, uploadSoundSupport = _this$props.uploadSoundSupport;
170129
- var _this$state4 = this.state, ends = _this$state4.ends, height = _this$state4.height, invalid = _this$state4.invalid, starts = _this$state4.starts, width = _this$state4.width, url = _this$state4.url, mimeType = _this$state4.mimeType, formattedUrl = _this$state4.formattedUrl, updating = _this$state4.updating, tabValue = _this$state4.tabValue, fileUpload = _this$state4.fileUpload;
170104
+ var _this$state4 = this.state, ends = _this$state4.ends, height = _this$state4.height, invalid = _this$state4.invalid, starts = _this$state4.starts, width = _this$state4.width, url = _this$state4.url, formattedUrl = _this$state4.formattedUrl, updating = _this$state4.updating, tabValue = _this$state4.tabValue, fileUpload = _this$state4.fileUpload;
170130
170105
  var isYoutube = matchYoutubeUrl(url);
170131
170106
  var isInsertURL = tabValue === tabsTypeMap.insertUrl;
170132
170107
  var isUploadMedia = tabValue === tabsTypeMap.uploadFile;
@@ -170231,7 +170206,7 @@ const require$$12$1 = _dll_debug;
170231
170206
  controls: "controls",
170232
170207
  controlsList: "nodownload"
170233
170208
  }, _react["default"].createElement("source", {
170234
- type: mimeType,
170209
+ type: "audio/mp3",
170235
170210
  src: fileUpload.url
170236
170211
  })), _react["default"].createElement(_IconButton["default"], {
170237
170212
  "aria-label": "delete",
@@ -177564,7 +177539,7 @@ const require$$13$1 = _dll_prop_types;
177564
177539
  editorHolder: {
177565
177540
  position: 'relative',
177566
177541
  padding: '0px',
177567
- overflowY: 'auto',
177542
+ overflowY: 'scroll',
177568
177543
  color: _renderUi.color.text(),
177569
177544
  backgroundColor: _renderUi.color.background(),
177570
177545
  '&::before': {
@@ -183697,7 +183672,7 @@ var en = {};
183697
183672
  },
183698
183673
  imageClozeAssociation: {
183699
183674
  reachedLimit_one: 'You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.',
183700
- reachedLimit_other: 'Full'
183675
+ reachedLimit_other: 'You’ve reached the limit of {{count}} responses per area. To add another response, one must first be removed.'
183701
183676
  },
183702
183677
  drawingResponse: {
183703
183678
  fillColor: 'Fill color',
@@ -183790,7 +183765,7 @@ var es = {};
183790
183765
  },
183791
183766
  imageClozeAssociation: {
183792
183767
  reachedLimit_one: 'Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
183793
- reachedLimit_other: 'Lleno'
183768
+ reachedLimit_other: 'Has alcanzado el límite de {{count}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.'
183794
183769
  },
183795
183770
  drawingResponse: {
183796
183771
  fillColor: 'Color de relleno',
@@ -8,7 +8,7 @@
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
11
- "version": "5.7.2"
11
+ "version": "5.7.1"
12
12
  }
13
13
  ]
14
14
  }
package/module/print.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.0.1/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.7.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.7.1/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) {
@@ -19125,18 +19125,6 @@ const require$$14$5 = _dll_classnames;
19125
19125
  className: props.classes.para
19126
19126
  }, props.children);
19127
19127
  });
19128
- var Spacer = (0, _styles.withStyles)(function () {
19129
- return {
19130
- spacer: {
19131
- display: 'inline-block',
19132
- width: '1.5em'
19133
- }
19134
- };
19135
- })(function (props) {
19136
- return _react["default"].createElement("span", {
19137
- className: props.classes.spacer
19138
- });
19139
- });
19140
19128
  var restrictWhitespaceTypes = ['tbody', 'tr'];
19141
19129
  var addText = function addText(parentNode, text) {
19142
19130
  var isWhitespace = text.trim() === '';
@@ -19175,11 +19163,6 @@ const require$$14$5 = _dll_classnames;
19175
19163
  var c = rootRenderChildren(n, value, onChange);
19176
19164
  if (c) {
19177
19165
  children.push(c);
19178
- if ((parentNode === null || parentNode === void 0 ? void 0 : parentNode.type) !== 'td') {
19179
- children.push(_react["default"].createElement(Spacer, {
19180
- key: ("spacer-").concat(index)
19181
- }));
19182
- }
19183
19166
  return;
19184
19167
  }
19185
19168
  }
@@ -140410,7 +140393,6 @@ const require$$11$s = _dll_prop_types;
140410
140393
  }
140411
140394
  _this = _super.call.apply(_super, [this].concat(args));
140412
140395
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "parsedText", function (text) {
140413
- var autoplayAudioEnabled = _this.props.autoplayAudioEnabled;
140414
140396
  var div = document.createElement('div');
140415
140397
  div.innerHTML = text;
140416
140398
  var audio = div.querySelector('audio');
@@ -140419,9 +140401,6 @@ const require$$11$s = _dll_prop_types;
140419
140401
  source.setAttribute('type', 'audio/mp3');
140420
140402
  source.setAttribute('src', audio.getAttribute('src'));
140421
140403
  audio.removeAttribute('src');
140422
- if (autoplayAudioEnabled) {
140423
- audio.setAttribute('autoplay', 'autoplay');
140424
- }
140425
140404
  audio.appendChild(source);
140426
140405
  }
140427
140406
  return div.innerHTML;
@@ -140495,8 +140474,7 @@ const require$$11$s = _dll_prop_types;
140495
140474
  tagName: _propTypes["default"].string,
140496
140475
  className: _propTypes["default"].string,
140497
140476
  onClick: _propTypes["default"].func,
140498
- defaultClassName: _propTypes["default"].string,
140499
- autoplayAudioEnabled: _propTypes["default"].bool
140477
+ defaultClassName: _propTypes["default"].string
140500
140478
  });
140501
140479
  (0, _defineProperty2["default"])(PreviewPrompt, "defaultProps", {
140502
140480
  onClick: function onClick() {}
@@ -143514,8 +143492,7 @@ const require$$2$k = _dll_react;
143514
143492
  return newObj;
143515
143493
  }
143516
143494
  var backends = [{
143517
- backend: _reactDndHtml5Backend.HTML5Backend,
143518
- transition: _reactDndMultiBackend.MouseTransition
143495
+ backend: _reactDndHtml5Backend.HTML5Backend
143519
143496
  }, {
143520
143497
  backend: _reactDndTouchBackend.TouchBackend,
143521
143498
  options: {
@@ -144730,7 +144707,8 @@ const require$$18$3 = _dll_classnames;
144730
144707
  fontSize: 'inherit',
144731
144708
  maxWidth: '374px',
144732
144709
  position: 'relative',
144733
- borderRadius: '3px'
144710
+ borderRadius: '3px',
144711
+ margin: '8px'
144734
144712
  },
144735
144713
  chipLabel: {
144736
144714
  whiteSpace: 'normal',
@@ -169979,8 +169957,7 @@ const require$$12$1 = _dll_debug;
169979
169957
  var dataURL = reader.result;
169980
169958
  _this.setState({
169981
169959
  fileUpload: _objectSpread(_objectSpread({}, _this.state.fileUpload), {}, {
169982
- url: dataURL,
169983
- mimeType: fileChosen.type
169960
+ url: dataURL
169984
169961
  })
169985
169962
  });
169986
169963
  };
@@ -170040,8 +170017,7 @@ const require$$12$1 = _dll_debug;
170040
170017
  _this.setState({
170041
170018
  fileUpload: _objectSpread(_objectSpread({}, _this.state.fileUpload), {}, {
170042
170019
  loading: false,
170043
- url: '',
170044
- mimeType: ''
170020
+ url: ''
170045
170021
  })
170046
170022
  });
170047
170023
  case 2:
@@ -170067,8 +170043,7 @@ const require$$12$1 = _dll_debug;
170067
170043
  error: null,
170068
170044
  loading: false,
170069
170045
  scheduled: false,
170070
- url: '',
170071
- mimeType: ''
170046
+ url: ''
170072
170047
  }
170073
170048
  };
170074
170049
  return _this;
@@ -170089,7 +170064,7 @@ const require$$12$1 = _dll_debug;
170089
170064
  value: function render() {
170090
170065
  var _this2 = this;
170091
170066
  var _this$props = this.props, classes = _this$props.classes, open = _this$props.open, disablePortal = _this$props.disablePortal, type = _this$props.type, edit = _this$props.edit, uploadSoundSupport = _this$props.uploadSoundSupport;
170092
- var _this$state4 = this.state, ends = _this$state4.ends, height = _this$state4.height, invalid = _this$state4.invalid, starts = _this$state4.starts, width = _this$state4.width, url = _this$state4.url, mimeType = _this$state4.mimeType, formattedUrl = _this$state4.formattedUrl, updating = _this$state4.updating, tabValue = _this$state4.tabValue, fileUpload = _this$state4.fileUpload;
170067
+ var _this$state4 = this.state, ends = _this$state4.ends, height = _this$state4.height, invalid = _this$state4.invalid, starts = _this$state4.starts, width = _this$state4.width, url = _this$state4.url, formattedUrl = _this$state4.formattedUrl, updating = _this$state4.updating, tabValue = _this$state4.tabValue, fileUpload = _this$state4.fileUpload;
170093
170068
  var isYoutube = matchYoutubeUrl(url);
170094
170069
  var isInsertURL = tabValue === tabsTypeMap.insertUrl;
170095
170070
  var isUploadMedia = tabValue === tabsTypeMap.uploadFile;
@@ -170194,7 +170169,7 @@ const require$$12$1 = _dll_debug;
170194
170169
  controls: "controls",
170195
170170
  controlsList: "nodownload"
170196
170171
  }, _react["default"].createElement("source", {
170197
- type: mimeType,
170172
+ type: "audio/mp3",
170198
170173
  src: fileUpload.url
170199
170174
  })), _react["default"].createElement(_IconButton["default"], {
170200
170175
  "aria-label": "delete",
@@ -177527,7 +177502,7 @@ const require$$13$1 = _dll_prop_types;
177527
177502
  editorHolder: {
177528
177503
  position: 'relative',
177529
177504
  padding: '0px',
177530
- overflowY: 'auto',
177505
+ overflowY: 'scroll',
177531
177506
  color: _renderUi.color.text(),
177532
177507
  backgroundColor: _renderUi.color.background(),
177533
177508
  '&::before': {
@@ -183660,7 +183635,7 @@ var en = {};
183660
183635
  },
183661
183636
  imageClozeAssociation: {
183662
183637
  reachedLimit_one: 'You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.',
183663
- reachedLimit_other: 'Full'
183638
+ reachedLimit_other: 'You’ve reached the limit of {{count}} responses per area. To add another response, one must first be removed.'
183664
183639
  },
183665
183640
  drawingResponse: {
183666
183641
  fillColor: 'Fill color',
@@ -183753,7 +183728,7 @@ var es = {};
183753
183728
  },
183754
183729
  imageClozeAssociation: {
183755
183730
  reachedLimit_one: 'Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
183756
- reachedLimit_other: 'Lleno'
183731
+ reachedLimit_other: 'Has alcanzado el límite de {{count}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.'
183757
183732
  },
183758
183733
  drawingResponse: {
183759
183734
  fillColor: 'Color de relleno',
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "7.2.9-next.22+6517bb532",
7
+ "version": "7.2.9-next.7+2e72baca5",
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.7.0",
15
+ "@pie-lib/pie-toolbox": "2.6.1",
16
16
  "classnames": "^2.2.5",
17
17
  "lodash": "^4.17.10",
18
18
  "prop-types": "^15.6.1",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "author": "",
23
23
  "license": "ISC",
24
- "gitHead": "6517bb532d2b416fdf57525a3d50c62c83fdc543",
24
+ "gitHead": "2e72baca5a8804c802a4bd5e45ff59feccee930e",
25
25
  "main": "lib/index.js",
26
26
  "module": "src/index.js",
27
27
  "exports": {