@pie-element/complex-rubric 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.
@@ -7,7 +7,7 @@
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
9
  "dependencies": {
10
- "@pie-lib/pie-toolbox": "2.7.0",
10
+ "@pie-lib/pie-toolbox": "2.6.1",
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.0.1/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.7.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.7.1/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) {
@@ -126644,7 +126644,6 @@ const require$$11$G = _dll_prop_types;
126644
126644
  }
126645
126645
  _this = _super.call.apply(_super, [this].concat(args));
126646
126646
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "parsedText", function (text) {
126647
- var autoplayAudioEnabled = _this.props.autoplayAudioEnabled;
126648
126647
  var div = document.createElement('div');
126649
126648
  div.innerHTML = text;
126650
126649
  var audio = div.querySelector('audio');
@@ -126653,9 +126652,6 @@ const require$$11$G = _dll_prop_types;
126653
126652
  source.setAttribute('type', 'audio/mp3');
126654
126653
  source.setAttribute('src', audio.getAttribute('src'));
126655
126654
  audio.removeAttribute('src');
126656
- if (autoplayAudioEnabled) {
126657
- audio.setAttribute('autoplay', 'autoplay');
126658
- }
126659
126655
  audio.appendChild(source);
126660
126656
  }
126661
126657
  return div.innerHTML;
@@ -126729,8 +126725,7 @@ const require$$11$G = _dll_prop_types;
126729
126725
  tagName: _propTypes["default"].string,
126730
126726
  className: _propTypes["default"].string,
126731
126727
  onClick: _propTypes["default"].func,
126732
- defaultClassName: _propTypes["default"].string,
126733
- autoplayAudioEnabled: _propTypes["default"].bool
126728
+ defaultClassName: _propTypes["default"].string
126734
126729
  });
126735
126730
  (0, _defineProperty2["default"])(PreviewPrompt, "defaultProps", {
126736
126731
  onClick: function onClick() {}
@@ -129748,8 +129743,7 @@ const require$$2$q = _dll_react;
129748
129743
  return newObj;
129749
129744
  }
129750
129745
  var backends = [{
129751
- backend: _reactDndHtml5Backend.HTML5Backend,
129752
- transition: _reactDndMultiBackend.MouseTransition
129746
+ backend: _reactDndHtml5Backend.HTML5Backend
129753
129747
  }, {
129754
129748
  backend: _reactDndTouchBackend.TouchBackend,
129755
129749
  options: {
@@ -171527,8 +171521,7 @@ const require$$12$8 = _dll_debug;
171527
171521
  var dataURL = reader.result;
171528
171522
  _this.setState({
171529
171523
  fileUpload: _objectSpread(_objectSpread({}, _this.state.fileUpload), {}, {
171530
- url: dataURL,
171531
- mimeType: fileChosen.type
171524
+ url: dataURL
171532
171525
  })
171533
171526
  });
171534
171527
  };
@@ -171588,8 +171581,7 @@ const require$$12$8 = _dll_debug;
171588
171581
  _this.setState({
171589
171582
  fileUpload: _objectSpread(_objectSpread({}, _this.state.fileUpload), {}, {
171590
171583
  loading: false,
171591
- url: '',
171592
- mimeType: ''
171584
+ url: ''
171593
171585
  })
171594
171586
  });
171595
171587
  case 2:
@@ -171615,8 +171607,7 @@ const require$$12$8 = _dll_debug;
171615
171607
  error: null,
171616
171608
  loading: false,
171617
171609
  scheduled: false,
171618
- url: '',
171619
- mimeType: ''
171610
+ url: ''
171620
171611
  }
171621
171612
  };
171622
171613
  return _this;
@@ -171637,7 +171628,7 @@ const require$$12$8 = _dll_debug;
171637
171628
  value: function render() {
171638
171629
  var _this2 = this;
171639
171630
  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;
171640
- 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;
171631
+ 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;
171641
171632
  var isYoutube = matchYoutubeUrl(url);
171642
171633
  var isInsertURL = tabValue === tabsTypeMap.insertUrl;
171643
171634
  var isUploadMedia = tabValue === tabsTypeMap.uploadFile;
@@ -171742,7 +171733,7 @@ const require$$12$8 = _dll_debug;
171742
171733
  controls: "controls",
171743
171734
  controlsList: "nodownload"
171744
171735
  }, _react["default"].createElement("source", {
171745
- type: mimeType,
171736
+ type: "audio/mp3",
171746
171737
  src: fileUpload.url
171747
171738
  })), _react["default"].createElement(_IconButton["default"], {
171748
171739
  "aria-label": "delete",
@@ -179059,7 +179050,7 @@ const require$$13$7 = _dll_prop_types;
179059
179050
  editorHolder: {
179060
179051
  position: 'relative',
179061
179052
  padding: '0px',
179062
- overflowY: 'auto',
179053
+ overflowY: 'scroll',
179063
179054
  color: _renderUi.color.text(),
179064
179055
  backgroundColor: _renderUi.color.background(),
179065
179056
  '&::before': {
package/module/element.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.0.1/module/index.js";
2
- import {_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_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) {
@@ -142607,7 +142607,6 @@ const require$$11$B = _dll_prop_types;
142607
142607
  }
142608
142608
  _this = _super.call.apply(_super, [this].concat(args));
142609
142609
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "parsedText", function (text) {
142610
- var autoplayAudioEnabled = _this.props.autoplayAudioEnabled;
142611
142610
  var div = document.createElement('div');
142612
142611
  div.innerHTML = text;
142613
142612
  var audio = div.querySelector('audio');
@@ -142616,9 +142615,6 @@ const require$$11$B = _dll_prop_types;
142616
142615
  source.setAttribute('type', 'audio/mp3');
142617
142616
  source.setAttribute('src', audio.getAttribute('src'));
142618
142617
  audio.removeAttribute('src');
142619
- if (autoplayAudioEnabled) {
142620
- audio.setAttribute('autoplay', 'autoplay');
142621
- }
142622
142618
  audio.appendChild(source);
142623
142619
  }
142624
142620
  return div.innerHTML;
@@ -142692,8 +142688,7 @@ const require$$11$B = _dll_prop_types;
142692
142688
  tagName: _propTypes["default"].string,
142693
142689
  className: _propTypes["default"].string,
142694
142690
  onClick: _propTypes["default"].func,
142695
- defaultClassName: _propTypes["default"].string,
142696
- autoplayAudioEnabled: _propTypes["default"].bool
142691
+ defaultClassName: _propTypes["default"].string
142697
142692
  });
142698
142693
  (0, _defineProperty2["default"])(PreviewPrompt, "defaultProps", {
142699
142694
  onClick: function onClick() {}
@@ -161485,8 +161480,7 @@ const require$$12$8 = _dll_debug;
161485
161480
  var dataURL = reader.result;
161486
161481
  _this.setState({
161487
161482
  fileUpload: _objectSpread(_objectSpread({}, _this.state.fileUpload), {}, {
161488
- url: dataURL,
161489
- mimeType: fileChosen.type
161483
+ url: dataURL
161490
161484
  })
161491
161485
  });
161492
161486
  };
@@ -161546,8 +161540,7 @@ const require$$12$8 = _dll_debug;
161546
161540
  _this.setState({
161547
161541
  fileUpload: _objectSpread(_objectSpread({}, _this.state.fileUpload), {}, {
161548
161542
  loading: false,
161549
- url: '',
161550
- mimeType: ''
161543
+ url: ''
161551
161544
  })
161552
161545
  });
161553
161546
  case 2:
@@ -161573,8 +161566,7 @@ const require$$12$8 = _dll_debug;
161573
161566
  error: null,
161574
161567
  loading: false,
161575
161568
  scheduled: false,
161576
- url: '',
161577
- mimeType: ''
161569
+ url: ''
161578
161570
  }
161579
161571
  };
161580
161572
  return _this;
@@ -161595,7 +161587,7 @@ const require$$12$8 = _dll_debug;
161595
161587
  value: function render() {
161596
161588
  var _this2 = this;
161597
161589
  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;
161598
- 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;
161590
+ 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;
161599
161591
  var isYoutube = matchYoutubeUrl(url);
161600
161592
  var isInsertURL = tabValue === tabsTypeMap.insertUrl;
161601
161593
  var isUploadMedia = tabValue === tabsTypeMap.uploadFile;
@@ -161700,7 +161692,7 @@ const require$$12$8 = _dll_debug;
161700
161692
  controls: "controls",
161701
161693
  controlsList: "nodownload"
161702
161694
  }, _react["default"].createElement("source", {
161703
- type: mimeType,
161695
+ type: "audio/mp3",
161704
161696
  src: fileUpload.url
161705
161697
  })), _react["default"].createElement(_IconButton["default"], {
161706
161698
  "aria-label": "delete",
@@ -174169,8 +174161,7 @@ const require$$2$c = _dll_react;
174169
174161
  return newObj;
174170
174162
  }
174171
174163
  var backends = [{
174172
- backend: _reactDndHtml5Backend.HTML5Backend,
174173
- transition: _reactDndMultiBackend.MouseTransition
174164
+ backend: _reactDndHtml5Backend.HTML5Backend
174174
174165
  }, {
174175
174166
  backend: _reactDndTouchBackend.TouchBackend,
174176
174167
  options: {
@@ -177136,7 +177127,7 @@ const require$$13$7 = _dll_prop_types;
177136
177127
  editorHolder: {
177137
177128
  position: 'relative',
177138
177129
  padding: '0px',
177139
- overflowY: 'auto',
177130
+ overflowY: 'scroll',
177140
177131
  color: _renderUi.color.text(),
177141
177132
  backgroundColor: _renderUi.color.background(),
177142
177133
  '&::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_react_dom, _dll_classnames, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.0.1/module/index.js";
2
- import {_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_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) {
@@ -142607,7 +142607,6 @@ const require$$11$B = _dll_prop_types;
142607
142607
  }
142608
142608
  _this = _super.call.apply(_super, [this].concat(args));
142609
142609
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "parsedText", function (text) {
142610
- var autoplayAudioEnabled = _this.props.autoplayAudioEnabled;
142611
142610
  var div = document.createElement('div');
142612
142611
  div.innerHTML = text;
142613
142612
  var audio = div.querySelector('audio');
@@ -142616,9 +142615,6 @@ const require$$11$B = _dll_prop_types;
142616
142615
  source.setAttribute('type', 'audio/mp3');
142617
142616
  source.setAttribute('src', audio.getAttribute('src'));
142618
142617
  audio.removeAttribute('src');
142619
- if (autoplayAudioEnabled) {
142620
- audio.setAttribute('autoplay', 'autoplay');
142621
- }
142622
142618
  audio.appendChild(source);
142623
142619
  }
142624
142620
  return div.innerHTML;
@@ -142692,8 +142688,7 @@ const require$$11$B = _dll_prop_types;
142692
142688
  tagName: _propTypes["default"].string,
142693
142689
  className: _propTypes["default"].string,
142694
142690
  onClick: _propTypes["default"].func,
142695
- defaultClassName: _propTypes["default"].string,
142696
- autoplayAudioEnabled: _propTypes["default"].bool
142691
+ defaultClassName: _propTypes["default"].string
142697
142692
  });
142698
142693
  (0, _defineProperty2["default"])(PreviewPrompt, "defaultProps", {
142699
142694
  onClick: function onClick() {}
@@ -161485,8 +161480,7 @@ const require$$12$8 = _dll_debug;
161485
161480
  var dataURL = reader.result;
161486
161481
  _this.setState({
161487
161482
  fileUpload: _objectSpread(_objectSpread({}, _this.state.fileUpload), {}, {
161488
- url: dataURL,
161489
- mimeType: fileChosen.type
161483
+ url: dataURL
161490
161484
  })
161491
161485
  });
161492
161486
  };
@@ -161546,8 +161540,7 @@ const require$$12$8 = _dll_debug;
161546
161540
  _this.setState({
161547
161541
  fileUpload: _objectSpread(_objectSpread({}, _this.state.fileUpload), {}, {
161548
161542
  loading: false,
161549
- url: '',
161550
- mimeType: ''
161543
+ url: ''
161551
161544
  })
161552
161545
  });
161553
161546
  case 2:
@@ -161573,8 +161566,7 @@ const require$$12$8 = _dll_debug;
161573
161566
  error: null,
161574
161567
  loading: false,
161575
161568
  scheduled: false,
161576
- url: '',
161577
- mimeType: ''
161569
+ url: ''
161578
161570
  }
161579
161571
  };
161580
161572
  return _this;
@@ -161595,7 +161587,7 @@ const require$$12$8 = _dll_debug;
161595
161587
  value: function render() {
161596
161588
  var _this2 = this;
161597
161589
  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;
161598
- 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;
161590
+ 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;
161599
161591
  var isYoutube = matchYoutubeUrl(url);
161600
161592
  var isInsertURL = tabValue === tabsTypeMap.insertUrl;
161601
161593
  var isUploadMedia = tabValue === tabsTypeMap.uploadFile;
@@ -161700,7 +161692,7 @@ const require$$12$8 = _dll_debug;
161700
161692
  controls: "controls",
161701
161693
  controlsList: "nodownload"
161702
161694
  }, _react["default"].createElement("source", {
161703
- type: mimeType,
161695
+ type: "audio/mp3",
161704
161696
  src: fileUpload.url
161705
161697
  })), _react["default"].createElement(_IconButton["default"], {
161706
161698
  "aria-label": "delete",
@@ -174169,8 +174161,7 @@ const require$$2$c = _dll_react;
174169
174161
  return newObj;
174170
174162
  }
174171
174163
  var backends = [{
174172
- backend: _reactDndHtml5Backend.HTML5Backend,
174173
- transition: _reactDndMultiBackend.MouseTransition
174164
+ backend: _reactDndHtml5Backend.HTML5Backend
174174
174165
  }, {
174175
174166
  backend: _reactDndTouchBackend.TouchBackend,
174176
174167
  options: {
@@ -177136,7 +177127,7 @@ const require$$13$7 = _dll_prop_types;
177136
177127
  editorHolder: {
177137
177128
  position: 'relative',
177138
177129
  padding: '0px',
177139
- overflowY: 'auto',
177130
+ overflowY: 'scroll',
177140
177131
  color: _renderUi.color.text(),
177141
177132
  backgroundColor: _renderUi.color.background(),
177142
177133
  '&::before': {
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": "3.3.7-next.22+6517bb532",
4
+ "version": "3.3.7-next.7+2e72baca5",
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": "^4.2.9-next.22+6517bb532",
11
- "@pie-element/rubric": "^4.3.7-next.22+6517bb532",
10
+ "@pie-element/multi-trait-rubric": "^4.2.9-next.7+2e72baca5",
11
+ "@pie-element/rubric": "^4.3.7-next.7+2e72baca5",
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": "6517bb532d2b416fdf57525a3d50c62c83fdc543",
18
+ "gitHead": "2e72baca5a8804c802a4bd5e45ff59feccee930e",
19
19
  "scripts": {
20
20
  "postpublish": "../../scripts/postpublish"
21
21
  },