@pie-element/math-templated 3.3.7-next.22 → 3.3.7-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
  "dependencies": {
9
9
  "@material-ui/core": "^3.9.2",
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
  "debug": "^3.1.0",
13
13
  "lodash": "^4.17.15",
14
14
  "prop-types": "^15.6.2",
@@ -7,7 +7,7 @@
7
7
  "module": "src/index.js",
8
8
  "dependencies": {
9
9
  "@pie-framework/math-validation": "^1.2.3",
10
- "@pie-lib/pie-toolbox": "2.7.0",
10
+ "@pie-lib/pie-toolbox": "2.6.1",
11
11
  "debug": "^3.1.0",
12
12
  "lodash": "^4.17.15"
13
13
  },
@@ -1,5 +1,5 @@
1
1
  import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.0.1/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_math_toolbar, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@5.7.2/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_math_toolbar, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_editable_html} 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;
@@ -126088,7 +126088,6 @@ const require$$11$4 = _dll_prop_types;
126088
126088
  }
126089
126089
  _this = _super.call.apply(_super, [this].concat(args));
126090
126090
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "parsedText", function (text) {
126091
- var autoplayAudioEnabled = _this.props.autoplayAudioEnabled;
126092
126091
  var div = document.createElement('div');
126093
126092
  div.innerHTML = text;
126094
126093
  var audio = div.querySelector('audio');
@@ -126097,9 +126096,6 @@ const require$$11$4 = _dll_prop_types;
126097
126096
  source.setAttribute('type', 'audio/mp3');
126098
126097
  source.setAttribute('src', audio.getAttribute('src'));
126099
126098
  audio.removeAttribute('src');
126100
- if (autoplayAudioEnabled) {
126101
- audio.setAttribute('autoplay', 'autoplay');
126102
- }
126103
126099
  audio.appendChild(source);
126104
126100
  }
126105
126101
  return div.innerHTML;
@@ -126173,8 +126169,7 @@ const require$$11$4 = _dll_prop_types;
126173
126169
  tagName: _propTypes["default"].string,
126174
126170
  className: _propTypes["default"].string,
126175
126171
  onClick: _propTypes["default"].func,
126176
- defaultClassName: _propTypes["default"].string,
126177
- autoplayAudioEnabled: _propTypes["default"].bool
126172
+ defaultClassName: _propTypes["default"].string
126178
126173
  });
126179
126174
  (0, _defineProperty2["default"])(PreviewPrompt, "defaultProps", {
126180
126175
  onClick: function onClick() {}
@@ -3795,7 +3795,7 @@ var _default = {
3795
3795
  },
3796
3796
  imageClozeAssociation: {
3797
3797
  reachedLimit_one: 'You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.',
3798
- reachedLimit_other: 'Full'
3798
+ reachedLimit_other: 'You’ve reached the limit of {{count}} responses per area. To add another response, one must first be removed.'
3799
3799
  },
3800
3800
  drawingResponse: {
3801
3801
  fillColor: 'Fill color',
@@ -3891,7 +3891,7 @@ var _default = {
3891
3891
  },
3892
3892
  imageClozeAssociation: {
3893
3893
  reachedLimit_one: 'Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
3894
- reachedLimit_other: 'Lleno'
3894
+ reachedLimit_other: 'Has alcanzado el límite de {{count}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.'
3895
3895
  },
3896
3896
  drawingResponse: {
3897
3897
  fillColor: 'Color de relleno',
package/module/element.js CHANGED
@@ -1,5 +1,5 @@
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, _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_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.7.2/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} 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) {
@@ -21858,18 +21858,6 @@ const require$$14$5 = _dll_classnames;
21858
21858
  className: props.classes.para
21859
21859
  }, props.children);
21860
21860
  });
21861
- var Spacer = (0, _styles.withStyles)(function () {
21862
- return {
21863
- spacer: {
21864
- display: 'inline-block',
21865
- width: '1.5em'
21866
- }
21867
- };
21868
- })(function (props) {
21869
- return _react["default"].createElement("span", {
21870
- className: props.classes.spacer
21871
- });
21872
- });
21873
21861
  var restrictWhitespaceTypes = ['tbody', 'tr'];
21874
21862
  var addText = function addText(parentNode, text) {
21875
21863
  var isWhitespace = text.trim() === '';
@@ -21908,11 +21896,6 @@ const require$$14$5 = _dll_classnames;
21908
21896
  var c = rootRenderChildren(n, value, onChange);
21909
21897
  if (c) {
21910
21898
  children.push(c);
21911
- if ((parentNode === null || parentNode === void 0 ? void 0 : parentNode.type) !== 'td') {
21912
- children.push(_react["default"].createElement(Spacer, {
21913
- key: ("spacer-").concat(index)
21914
- }));
21915
- }
21916
21899
  return;
21917
21900
  }
21918
21901
  }
@@ -142209,7 +142192,6 @@ const require$$11$r = _dll_prop_types;
142209
142192
  }
142210
142193
  _this = _super.call.apply(_super, [this].concat(args));
142211
142194
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "parsedText", function (text) {
142212
- var autoplayAudioEnabled = _this.props.autoplayAudioEnabled;
142213
142195
  var div = document.createElement('div');
142214
142196
  div.innerHTML = text;
142215
142197
  var audio = div.querySelector('audio');
@@ -142218,9 +142200,6 @@ const require$$11$r = _dll_prop_types;
142218
142200
  source.setAttribute('type', 'audio/mp3');
142219
142201
  source.setAttribute('src', audio.getAttribute('src'));
142220
142202
  audio.removeAttribute('src');
142221
- if (autoplayAudioEnabled) {
142222
- audio.setAttribute('autoplay', 'autoplay');
142223
- }
142224
142203
  audio.appendChild(source);
142225
142204
  }
142226
142205
  return div.innerHTML;
@@ -142294,8 +142273,7 @@ const require$$11$r = _dll_prop_types;
142294
142273
  tagName: _propTypes["default"].string,
142295
142274
  className: _propTypes["default"].string,
142296
142275
  onClick: _propTypes["default"].func,
142297
- defaultClassName: _propTypes["default"].string,
142298
- autoplayAudioEnabled: _propTypes["default"].bool
142276
+ defaultClassName: _propTypes["default"].string
142299
142277
  });
142300
142278
  (0, _defineProperty2["default"])(PreviewPrompt, "defaultProps", {
142301
142279
  onClick: function onClick() {}
@@ -145313,8 +145291,7 @@ const require$$2$k = _dll_react;
145313
145291
  return newObj;
145314
145292
  }
145315
145293
  var backends = [{
145316
- backend: _reactDndHtml5Backend.HTML5Backend,
145317
- transition: _reactDndMultiBackend.MouseTransition
145294
+ backend: _reactDndHtml5Backend.HTML5Backend
145318
145295
  }, {
145319
145296
  backend: _reactDndTouchBackend.TouchBackend,
145320
145297
  options: {
@@ -146529,7 +146506,8 @@ const require$$18$3 = _dll_classnames;
146529
146506
  fontSize: 'inherit',
146530
146507
  maxWidth: '374px',
146531
146508
  position: 'relative',
146532
- borderRadius: '3px'
146509
+ borderRadius: '3px',
146510
+ margin: '8px'
146533
146511
  },
146534
146512
  chipLabel: {
146535
146513
  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': {
@@ -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_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _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_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.7.2/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} 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) {
@@ -21821,18 +21821,6 @@ const require$$14$5 = _dll_classnames;
21821
21821
  className: props.classes.para
21822
21822
  }, props.children);
21823
21823
  });
21824
- var Spacer = (0, _styles.withStyles)(function () {
21825
- return {
21826
- spacer: {
21827
- display: 'inline-block',
21828
- width: '1.5em'
21829
- }
21830
- };
21831
- })(function (props) {
21832
- return _react["default"].createElement("span", {
21833
- className: props.classes.spacer
21834
- });
21835
- });
21836
21824
  var restrictWhitespaceTypes = ['tbody', 'tr'];
21837
21825
  var addText = function addText(parentNode, text) {
21838
21826
  var isWhitespace = text.trim() === '';
@@ -21871,11 +21859,6 @@ const require$$14$5 = _dll_classnames;
21871
21859
  var c = rootRenderChildren(n, value, onChange);
21872
21860
  if (c) {
21873
21861
  children.push(c);
21874
- if ((parentNode === null || parentNode === void 0 ? void 0 : parentNode.type) !== 'td') {
21875
- children.push(_react["default"].createElement(Spacer, {
21876
- key: ("spacer-").concat(index)
21877
- }));
21878
- }
21879
21862
  return;
21880
21863
  }
21881
21864
  }
@@ -142172,7 +142155,6 @@ const require$$11$r = _dll_prop_types;
142172
142155
  }
142173
142156
  _this = _super.call.apply(_super, [this].concat(args));
142174
142157
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "parsedText", function (text) {
142175
- var autoplayAudioEnabled = _this.props.autoplayAudioEnabled;
142176
142158
  var div = document.createElement('div');
142177
142159
  div.innerHTML = text;
142178
142160
  var audio = div.querySelector('audio');
@@ -142181,9 +142163,6 @@ const require$$11$r = _dll_prop_types;
142181
142163
  source.setAttribute('type', 'audio/mp3');
142182
142164
  source.setAttribute('src', audio.getAttribute('src'));
142183
142165
  audio.removeAttribute('src');
142184
- if (autoplayAudioEnabled) {
142185
- audio.setAttribute('autoplay', 'autoplay');
142186
- }
142187
142166
  audio.appendChild(source);
142188
142167
  }
142189
142168
  return div.innerHTML;
@@ -142257,8 +142236,7 @@ const require$$11$r = _dll_prop_types;
142257
142236
  tagName: _propTypes["default"].string,
142258
142237
  className: _propTypes["default"].string,
142259
142238
  onClick: _propTypes["default"].func,
142260
- defaultClassName: _propTypes["default"].string,
142261
- autoplayAudioEnabled: _propTypes["default"].bool
142239
+ defaultClassName: _propTypes["default"].string
142262
142240
  });
142263
142241
  (0, _defineProperty2["default"])(PreviewPrompt, "defaultProps", {
142264
142242
  onClick: function onClick() {}
@@ -145276,8 +145254,7 @@ const require$$2$k = _dll_react;
145276
145254
  return newObj;
145277
145255
  }
145278
145256
  var backends = [{
145279
- backend: _reactDndHtml5Backend.HTML5Backend,
145280
- transition: _reactDndMultiBackend.MouseTransition
145257
+ backend: _reactDndHtml5Backend.HTML5Backend
145281
145258
  }, {
145282
145259
  backend: _reactDndTouchBackend.TouchBackend,
145283
145260
  options: {
@@ -146492,7 +146469,8 @@ const require$$18$3 = _dll_classnames;
146492
146469
  fontSize: 'inherit',
146493
146470
  maxWidth: '374px',
146494
146471
  position: 'relative',
146495
- borderRadius: '3px'
146472
+ borderRadius: '3px',
146473
+ margin: '8px'
146496
146474
  },
146497
146475
  chipLabel: {
146498
146476
  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': {
package/package.json CHANGED
@@ -4,19 +4,19 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "3.3.7-next.22+6517bb532",
7
+ "version": "3.3.7-next.7+2e72baca5",
8
8
  "description": "",
9
9
  "dependencies": {
10
10
  "@material-ui/core": "^3.9.2",
11
11
  "@pie-framework/pie-player-events": "^0.1.0",
12
- "@pie-lib/pie-toolbox": "2.7.0",
12
+ "@pie-lib/pie-toolbox": "2.6.1",
13
13
  "prop-types": "^15.6.1",
14
14
  "react": "^16.8.1",
15
15
  "react-dom": "^16.8.1"
16
16
  },
17
17
  "author": "",
18
18
  "license": "ISC",
19
- "gitHead": "6517bb532d2b416fdf57525a3d50c62c83fdc543",
19
+ "gitHead": "2e72baca5a8804c802a4bd5e45ff59feccee930e",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },