@pie-element/complex-rubric 3.3.7-next.7 → 3.3.8-next.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 +11 -0
- package/configure/CHANGELOG.md +8 -0
- package/configure/package.json +3 -3
- package/controller/CHANGELOG.md +11 -0
- package/controller/package.json +2 -2
- package/module/configure.js +18 -9
- package/module/element.js +18 -9
- package/module/index.html +1 -1
- package/module/manifest.json +2 -2
- package/module/print.html +1 -1
- package/module/print.js +18 -9
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -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.3.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@3.3.6...@pie-element/complex-rubric@3.3.7) (2025-01-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-4452, PD-3872, PD-4689, PD-4704, PD-4588, PD-4698, PD-4618 ([a97329c](https://github.com/pie-framework/pie-elements/commit/a97329cf73619a3a5aae8d492edb8d6e5c5730df))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.3.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@3.3.5...@pie-element/complex-rubric@3.3.6) (2025-01-22)
|
|
7
18
|
|
|
8
19
|
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.4.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.4.6...@pie-element/complex-rubric-configure@2.4.7) (2025-01-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/complex-rubric-configure
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.4.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.4.5...@pie-element/complex-rubric-configure@2.4.6) (2025-01-22)
|
|
7
15
|
|
|
8
16
|
|
package/configure/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.7",
|
|
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.2.
|
|
12
|
-
"@pie-element/rubric": "^4.3.
|
|
11
|
+
"@pie-element/multi-trait-rubric": "^4.2.9",
|
|
12
|
+
"@pie-element/rubric": "^4.3.7",
|
|
13
13
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
14
14
|
"debug": "^4.1.1",
|
|
15
15
|
"lodash": "^4.17.15",
|
package/controller/CHANGELOG.md
CHANGED
|
@@ -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.16](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@3.0.15...@pie-element/complex-rubric-controller@3.0.16) (2025-01-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-4452, PD-3872, PD-4689, PD-4704, PD-4588, PD-4698, PD-4618 ([a97329c](https://github.com/pie-framework/pie-elements/commit/a97329cf73619a3a5aae8d492edb8d6e5c5730df))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.0.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@3.0.14...@pie-element/complex-rubric-controller@3.0.15) (2025-01-22)
|
|
7
18
|
|
|
8
19
|
|
package/controller/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric-controller",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.16",
|
|
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
|
+
"@pie-lib/pie-toolbox": "2.7.0",
|
|
11
11
|
"lodash": "^4.17.15"
|
|
12
12
|
},
|
|
13
13
|
"author": "",
|
package/module/configure.js
CHANGED
|
@@ -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.
|
|
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";
|
|
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,6 +126644,7 @@ 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;
|
|
126647
126648
|
var div = document.createElement('div');
|
|
126648
126649
|
div.innerHTML = text;
|
|
126649
126650
|
var audio = div.querySelector('audio');
|
|
@@ -126652,6 +126653,9 @@ const require$$11$G = _dll_prop_types;
|
|
|
126652
126653
|
source.setAttribute('type', 'audio/mp3');
|
|
126653
126654
|
source.setAttribute('src', audio.getAttribute('src'));
|
|
126654
126655
|
audio.removeAttribute('src');
|
|
126656
|
+
if (autoplayAudioEnabled) {
|
|
126657
|
+
audio.setAttribute('autoplay', 'autoplay');
|
|
126658
|
+
}
|
|
126655
126659
|
audio.appendChild(source);
|
|
126656
126660
|
}
|
|
126657
126661
|
return div.innerHTML;
|
|
@@ -126725,7 +126729,8 @@ const require$$11$G = _dll_prop_types;
|
|
|
126725
126729
|
tagName: _propTypes["default"].string,
|
|
126726
126730
|
className: _propTypes["default"].string,
|
|
126727
126731
|
onClick: _propTypes["default"].func,
|
|
126728
|
-
defaultClassName: _propTypes["default"].string
|
|
126732
|
+
defaultClassName: _propTypes["default"].string,
|
|
126733
|
+
autoplayAudioEnabled: _propTypes["default"].bool
|
|
126729
126734
|
});
|
|
126730
126735
|
(0, _defineProperty2["default"])(PreviewPrompt, "defaultProps", {
|
|
126731
126736
|
onClick: function onClick() {}
|
|
@@ -129743,7 +129748,8 @@ const require$$2$q = _dll_react;
|
|
|
129743
129748
|
return newObj;
|
|
129744
129749
|
}
|
|
129745
129750
|
var backends = [{
|
|
129746
|
-
backend: _reactDndHtml5Backend.HTML5Backend
|
|
129751
|
+
backend: _reactDndHtml5Backend.HTML5Backend,
|
|
129752
|
+
transition: _reactDndMultiBackend.MouseTransition
|
|
129747
129753
|
}, {
|
|
129748
129754
|
backend: _reactDndTouchBackend.TouchBackend,
|
|
129749
129755
|
options: {
|
|
@@ -171521,7 +171527,8 @@ const require$$12$8 = _dll_debug;
|
|
|
171521
171527
|
var dataURL = reader.result;
|
|
171522
171528
|
_this.setState({
|
|
171523
171529
|
fileUpload: _objectSpread(_objectSpread({}, _this.state.fileUpload), {}, {
|
|
171524
|
-
url: dataURL
|
|
171530
|
+
url: dataURL,
|
|
171531
|
+
mimeType: fileChosen.type
|
|
171525
171532
|
})
|
|
171526
171533
|
});
|
|
171527
171534
|
};
|
|
@@ -171581,7 +171588,8 @@ const require$$12$8 = _dll_debug;
|
|
|
171581
171588
|
_this.setState({
|
|
171582
171589
|
fileUpload: _objectSpread(_objectSpread({}, _this.state.fileUpload), {}, {
|
|
171583
171590
|
loading: false,
|
|
171584
|
-
url: ''
|
|
171591
|
+
url: '',
|
|
171592
|
+
mimeType: ''
|
|
171585
171593
|
})
|
|
171586
171594
|
});
|
|
171587
171595
|
case 2:
|
|
@@ -171607,7 +171615,8 @@ const require$$12$8 = _dll_debug;
|
|
|
171607
171615
|
error: null,
|
|
171608
171616
|
loading: false,
|
|
171609
171617
|
scheduled: false,
|
|
171610
|
-
url: ''
|
|
171618
|
+
url: '',
|
|
171619
|
+
mimeType: ''
|
|
171611
171620
|
}
|
|
171612
171621
|
};
|
|
171613
171622
|
return _this;
|
|
@@ -171628,7 +171637,7 @@ const require$$12$8 = _dll_debug;
|
|
|
171628
171637
|
value: function render() {
|
|
171629
171638
|
var _this2 = this;
|
|
171630
171639
|
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;
|
|
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;
|
|
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;
|
|
171632
171641
|
var isYoutube = matchYoutubeUrl(url);
|
|
171633
171642
|
var isInsertURL = tabValue === tabsTypeMap.insertUrl;
|
|
171634
171643
|
var isUploadMedia = tabValue === tabsTypeMap.uploadFile;
|
|
@@ -171733,7 +171742,7 @@ const require$$12$8 = _dll_debug;
|
|
|
171733
171742
|
controls: "controls",
|
|
171734
171743
|
controlsList: "nodownload"
|
|
171735
171744
|
}, _react["default"].createElement("source", {
|
|
171736
|
-
type:
|
|
171745
|
+
type: mimeType,
|
|
171737
171746
|
src: fileUpload.url
|
|
171738
171747
|
})), _react["default"].createElement(_IconButton["default"], {
|
|
171739
171748
|
"aria-label": "delete",
|
|
@@ -179050,7 +179059,7 @@ const require$$13$7 = _dll_prop_types;
|
|
|
179050
179059
|
editorHolder: {
|
|
179051
179060
|
position: 'relative',
|
|
179052
179061
|
padding: '0px',
|
|
179053
|
-
overflowY: '
|
|
179062
|
+
overflowY: 'auto',
|
|
179054
179063
|
color: _renderUi.color.text(),
|
|
179055
179064
|
backgroundColor: _renderUi.color.background(),
|
|
179056
179065
|
'&::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
|
+
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.7.2/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,6 +142607,7 @@ 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;
|
|
142610
142611
|
var div = document.createElement('div');
|
|
142611
142612
|
div.innerHTML = text;
|
|
142612
142613
|
var audio = div.querySelector('audio');
|
|
@@ -142615,6 +142616,9 @@ const require$$11$B = _dll_prop_types;
|
|
|
142615
142616
|
source.setAttribute('type', 'audio/mp3');
|
|
142616
142617
|
source.setAttribute('src', audio.getAttribute('src'));
|
|
142617
142618
|
audio.removeAttribute('src');
|
|
142619
|
+
if (autoplayAudioEnabled) {
|
|
142620
|
+
audio.setAttribute('autoplay', 'autoplay');
|
|
142621
|
+
}
|
|
142618
142622
|
audio.appendChild(source);
|
|
142619
142623
|
}
|
|
142620
142624
|
return div.innerHTML;
|
|
@@ -142688,7 +142692,8 @@ const require$$11$B = _dll_prop_types;
|
|
|
142688
142692
|
tagName: _propTypes["default"].string,
|
|
142689
142693
|
className: _propTypes["default"].string,
|
|
142690
142694
|
onClick: _propTypes["default"].func,
|
|
142691
|
-
defaultClassName: _propTypes["default"].string
|
|
142695
|
+
defaultClassName: _propTypes["default"].string,
|
|
142696
|
+
autoplayAudioEnabled: _propTypes["default"].bool
|
|
142692
142697
|
});
|
|
142693
142698
|
(0, _defineProperty2["default"])(PreviewPrompt, "defaultProps", {
|
|
142694
142699
|
onClick: function onClick() {}
|
|
@@ -161480,7 +161485,8 @@ const require$$12$8 = _dll_debug;
|
|
|
161480
161485
|
var dataURL = reader.result;
|
|
161481
161486
|
_this.setState({
|
|
161482
161487
|
fileUpload: _objectSpread(_objectSpread({}, _this.state.fileUpload), {}, {
|
|
161483
|
-
url: dataURL
|
|
161488
|
+
url: dataURL,
|
|
161489
|
+
mimeType: fileChosen.type
|
|
161484
161490
|
})
|
|
161485
161491
|
});
|
|
161486
161492
|
};
|
|
@@ -161540,7 +161546,8 @@ const require$$12$8 = _dll_debug;
|
|
|
161540
161546
|
_this.setState({
|
|
161541
161547
|
fileUpload: _objectSpread(_objectSpread({}, _this.state.fileUpload), {}, {
|
|
161542
161548
|
loading: false,
|
|
161543
|
-
url: ''
|
|
161549
|
+
url: '',
|
|
161550
|
+
mimeType: ''
|
|
161544
161551
|
})
|
|
161545
161552
|
});
|
|
161546
161553
|
case 2:
|
|
@@ -161566,7 +161573,8 @@ const require$$12$8 = _dll_debug;
|
|
|
161566
161573
|
error: null,
|
|
161567
161574
|
loading: false,
|
|
161568
161575
|
scheduled: false,
|
|
161569
|
-
url: ''
|
|
161576
|
+
url: '',
|
|
161577
|
+
mimeType: ''
|
|
161570
161578
|
}
|
|
161571
161579
|
};
|
|
161572
161580
|
return _this;
|
|
@@ -161587,7 +161595,7 @@ const require$$12$8 = _dll_debug;
|
|
|
161587
161595
|
value: function render() {
|
|
161588
161596
|
var _this2 = this;
|
|
161589
161597
|
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;
|
|
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;
|
|
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;
|
|
161591
161599
|
var isYoutube = matchYoutubeUrl(url);
|
|
161592
161600
|
var isInsertURL = tabValue === tabsTypeMap.insertUrl;
|
|
161593
161601
|
var isUploadMedia = tabValue === tabsTypeMap.uploadFile;
|
|
@@ -161692,7 +161700,7 @@ const require$$12$8 = _dll_debug;
|
|
|
161692
161700
|
controls: "controls",
|
|
161693
161701
|
controlsList: "nodownload"
|
|
161694
161702
|
}, _react["default"].createElement("source", {
|
|
161695
|
-
type:
|
|
161703
|
+
type: mimeType,
|
|
161696
161704
|
src: fileUpload.url
|
|
161697
161705
|
})), _react["default"].createElement(_IconButton["default"], {
|
|
161698
161706
|
"aria-label": "delete",
|
|
@@ -174161,7 +174169,8 @@ const require$$2$c = _dll_react;
|
|
|
174161
174169
|
return newObj;
|
|
174162
174170
|
}
|
|
174163
174171
|
var backends = [{
|
|
174164
|
-
backend: _reactDndHtml5Backend.HTML5Backend
|
|
174172
|
+
backend: _reactDndHtml5Backend.HTML5Backend,
|
|
174173
|
+
transition: _reactDndMultiBackend.MouseTransition
|
|
174165
174174
|
}, {
|
|
174166
174175
|
backend: _reactDndTouchBackend.TouchBackend,
|
|
174167
174176
|
options: {
|
|
@@ -177127,7 +177136,7 @@ const require$$13$7 = _dll_prop_types;
|
|
|
177127
177136
|
editorHolder: {
|
|
177128
177137
|
position: 'relative',
|
|
177129
177138
|
padding: '0px',
|
|
177130
|
-
overflowY: '
|
|
177139
|
+
overflowY: 'auto',
|
|
177131
177140
|
color: _renderUi.color.text(),
|
|
177132
177141
|
backgroundColor: _renderUi.color.background(),
|
|
177133
177142
|
'&::before': {
|
package/module/index.html
CHANGED
package/module/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.7",
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"name": "@pie-lib/pie-toolbox-math-rendering-module",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"name": "@pie-lib/pie-toolbox-module",
|
|
11
|
-
"version": "5.7.
|
|
11
|
+
"version": "5.7.2"
|
|
12
12
|
}
|
|
13
13
|
]
|
|
14
14
|
}
|
package/module/print.html
CHANGED
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
|
+
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.7.2/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,6 +142607,7 @@ 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;
|
|
142610
142611
|
var div = document.createElement('div');
|
|
142611
142612
|
div.innerHTML = text;
|
|
142612
142613
|
var audio = div.querySelector('audio');
|
|
@@ -142615,6 +142616,9 @@ const require$$11$B = _dll_prop_types;
|
|
|
142615
142616
|
source.setAttribute('type', 'audio/mp3');
|
|
142616
142617
|
source.setAttribute('src', audio.getAttribute('src'));
|
|
142617
142618
|
audio.removeAttribute('src');
|
|
142619
|
+
if (autoplayAudioEnabled) {
|
|
142620
|
+
audio.setAttribute('autoplay', 'autoplay');
|
|
142621
|
+
}
|
|
142618
142622
|
audio.appendChild(source);
|
|
142619
142623
|
}
|
|
142620
142624
|
return div.innerHTML;
|
|
@@ -142688,7 +142692,8 @@ const require$$11$B = _dll_prop_types;
|
|
|
142688
142692
|
tagName: _propTypes["default"].string,
|
|
142689
142693
|
className: _propTypes["default"].string,
|
|
142690
142694
|
onClick: _propTypes["default"].func,
|
|
142691
|
-
defaultClassName: _propTypes["default"].string
|
|
142695
|
+
defaultClassName: _propTypes["default"].string,
|
|
142696
|
+
autoplayAudioEnabled: _propTypes["default"].bool
|
|
142692
142697
|
});
|
|
142693
142698
|
(0, _defineProperty2["default"])(PreviewPrompt, "defaultProps", {
|
|
142694
142699
|
onClick: function onClick() {}
|
|
@@ -161480,7 +161485,8 @@ const require$$12$8 = _dll_debug;
|
|
|
161480
161485
|
var dataURL = reader.result;
|
|
161481
161486
|
_this.setState({
|
|
161482
161487
|
fileUpload: _objectSpread(_objectSpread({}, _this.state.fileUpload), {}, {
|
|
161483
|
-
url: dataURL
|
|
161488
|
+
url: dataURL,
|
|
161489
|
+
mimeType: fileChosen.type
|
|
161484
161490
|
})
|
|
161485
161491
|
});
|
|
161486
161492
|
};
|
|
@@ -161540,7 +161546,8 @@ const require$$12$8 = _dll_debug;
|
|
|
161540
161546
|
_this.setState({
|
|
161541
161547
|
fileUpload: _objectSpread(_objectSpread({}, _this.state.fileUpload), {}, {
|
|
161542
161548
|
loading: false,
|
|
161543
|
-
url: ''
|
|
161549
|
+
url: '',
|
|
161550
|
+
mimeType: ''
|
|
161544
161551
|
})
|
|
161545
161552
|
});
|
|
161546
161553
|
case 2:
|
|
@@ -161566,7 +161573,8 @@ const require$$12$8 = _dll_debug;
|
|
|
161566
161573
|
error: null,
|
|
161567
161574
|
loading: false,
|
|
161568
161575
|
scheduled: false,
|
|
161569
|
-
url: ''
|
|
161576
|
+
url: '',
|
|
161577
|
+
mimeType: ''
|
|
161570
161578
|
}
|
|
161571
161579
|
};
|
|
161572
161580
|
return _this;
|
|
@@ -161587,7 +161595,7 @@ const require$$12$8 = _dll_debug;
|
|
|
161587
161595
|
value: function render() {
|
|
161588
161596
|
var _this2 = this;
|
|
161589
161597
|
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;
|
|
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;
|
|
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;
|
|
161591
161599
|
var isYoutube = matchYoutubeUrl(url);
|
|
161592
161600
|
var isInsertURL = tabValue === tabsTypeMap.insertUrl;
|
|
161593
161601
|
var isUploadMedia = tabValue === tabsTypeMap.uploadFile;
|
|
@@ -161692,7 +161700,7 @@ const require$$12$8 = _dll_debug;
|
|
|
161692
161700
|
controls: "controls",
|
|
161693
161701
|
controlsList: "nodownload"
|
|
161694
161702
|
}, _react["default"].createElement("source", {
|
|
161695
|
-
type:
|
|
161703
|
+
type: mimeType,
|
|
161696
161704
|
src: fileUpload.url
|
|
161697
161705
|
})), _react["default"].createElement(_IconButton["default"], {
|
|
161698
161706
|
"aria-label": "delete",
|
|
@@ -174161,7 +174169,8 @@ const require$$2$c = _dll_react;
|
|
|
174161
174169
|
return newObj;
|
|
174162
174170
|
}
|
|
174163
174171
|
var backends = [{
|
|
174164
|
-
backend: _reactDndHtml5Backend.HTML5Backend
|
|
174172
|
+
backend: _reactDndHtml5Backend.HTML5Backend,
|
|
174173
|
+
transition: _reactDndMultiBackend.MouseTransition
|
|
174165
174174
|
}, {
|
|
174166
174175
|
backend: _reactDndTouchBackend.TouchBackend,
|
|
174167
174176
|
options: {
|
|
@@ -177127,7 +177136,7 @@ const require$$13$7 = _dll_prop_types;
|
|
|
177127
177136
|
editorHolder: {
|
|
177128
177137
|
position: 'relative',
|
|
177129
177138
|
padding: '0px',
|
|
177130
|
-
overflowY: '
|
|
177139
|
+
overflowY: 'auto',
|
|
177131
177140
|
color: _renderUi.color.text(),
|
|
177132
177141
|
backgroundColor: _renderUi.color.background(),
|
|
177133
177142
|
'&::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.
|
|
4
|
+
"version": "3.3.8-next.0+2a0a60cdf",
|
|
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.
|
|
11
|
-
"@pie-element/rubric": "^4.3.
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^4.2.10-next.0+2a0a60cdf",
|
|
11
|
+
"@pie-element/rubric": "^4.3.8-next.0+2a0a60cdf",
|
|
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": "
|
|
18
|
+
"gitHead": "2a0a60cdf75f18725a6db32733bfbc101efe0ee3",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|