@pie-element/complex-rubric 2.19.4-next.0 → 2.19.4
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 +23 -28
- package/module/element.js +23 -28
- package/module/manifest.json +1 -1
- package/module/print.js +23 -28
- 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
|
+
## [2.19.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.19.3...@pie-element/complex-rubric@2.19.4) (2024-09-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-3652, PD-2451 ([8a00529](https://github.com/pie-framework/pie-elements/commit/8a00529f67a8e27e78e4c16de5d04e11ec8c4d16))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.19.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.19.2...@pie-element/complex-rubric@2.19.3) (2024-09-10)
|
|
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.2.47](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.2.46...@pie-element/complex-rubric-configure@2.2.47) (2024-09-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/complex-rubric-configure
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.2.46](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.2.45...@pie-element/complex-rubric-configure@2.2.46) (2024-09-10)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @pie-element/complex-rubric-configure
|
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.2.
|
|
4
|
+
"version": "2.2.47",
|
|
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": "^3.19.
|
|
12
|
-
"@pie-element/rubric": "^3.19.
|
|
11
|
+
"@pie-element/multi-trait-rubric": "^3.19.4",
|
|
12
|
+
"@pie-element/rubric": "^3.19.4",
|
|
13
13
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
14
14
|
"@pie-lib/config-ui": "^11.9.25-next.0",
|
|
15
15
|
"@pie-lib/editable-html": "^11.1.2-next.0",
|
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
|
+
## [2.18.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.18.3...@pie-element/complex-rubric-controller@2.18.4) (2024-09-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-3652, PD-2451 ([8a00529](https://github.com/pie-framework/pie-elements/commit/8a00529f67a8e27e78e4c16de5d04e11ec8c4d16))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.18.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.18.2...@pie-element/complex-rubric-controller@2.18.3) (2024-09-10)
|
|
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": "2.18.
|
|
4
|
+
"version": "2.18.4",
|
|
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": "1.31.
|
|
10
|
+
"@pie-lib/pie-toolbox": "1.31.4",
|
|
11
11
|
"lodash": "^4.17.15"
|
|
12
12
|
},
|
|
13
13
|
"author": "",
|
package/module/configure.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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@1.24.
|
|
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@1.24.3/module/index.js";
|
|
2
2
|
import RubricConfigure from '@pie-element/rubric/configure/lib';
|
|
3
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@4.24.3/module/index.js";
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -105080,7 +105080,7 @@ const require$$4$1g = _dll_prop_types;
|
|
|
105080
105080
|
var boardStyle = isCategorize ? classes.categorizeBoard : classes.board;
|
|
105081
105081
|
return _react["default"].createElement("div", {
|
|
105082
105082
|
style: style,
|
|
105083
|
-
className: choiceBoard ? boardStyle : names
|
|
105083
|
+
className: (0, _classnames["default"])(classes.noSelectStyles, choiceBoard ? boardStyle : names)
|
|
105084
105084
|
}, children);
|
|
105085
105085
|
};
|
|
105086
105086
|
exports.PlaceHolder = PlaceHolder;
|
|
@@ -105102,6 +105102,14 @@ const require$$4$1g = _dll_prop_types;
|
|
|
105102
105102
|
};
|
|
105103
105103
|
var styles = function styles(theme) {
|
|
105104
105104
|
return {
|
|
105105
|
+
noSelectStyles: {
|
|
105106
|
+
WebkitTouchCallout: 'none',
|
|
105107
|
+
WebkitUserSelect: 'none',
|
|
105108
|
+
KhtmlUserSelect: 'none',
|
|
105109
|
+
MozUserSelect: 'none',
|
|
105110
|
+
MsUserSelect: 'none',
|
|
105111
|
+
userSelect: 'none'
|
|
105112
|
+
},
|
|
105105
105113
|
placeholder: {
|
|
105106
105114
|
width: '100%',
|
|
105107
105115
|
height: '100%',
|
|
@@ -107864,13 +107872,7 @@ function _isNativeReflectConstruct$1() {
|
|
|
107864
107872
|
}
|
|
107865
107873
|
}
|
|
107866
107874
|
var preventInteractionStyle = {
|
|
107867
|
-
flex: 1
|
|
107868
|
-
WebkitTouchCallout: 'none',
|
|
107869
|
-
WebkitUserSelect: 'none',
|
|
107870
|
-
KhtmlUserSelect: 'none',
|
|
107871
|
-
MozUserSelect: 'none',
|
|
107872
|
-
MsUserSelect: 'none',
|
|
107873
|
-
UserSelect: 'none'
|
|
107875
|
+
flex: 1
|
|
107874
107876
|
};
|
|
107875
107877
|
var DroppablePlaceholder = (function (_React$Component) {
|
|
107876
107878
|
(0, _inherits2$v["default"])(DroppablePlaceholder, _React$Component);
|
|
@@ -158445,9 +158447,16 @@ const require$$23 = _dll_classnames;
|
|
|
158445
158447
|
}, {
|
|
158446
158448
|
key: "componentDidMount",
|
|
158447
158449
|
value: function componentDidMount() {
|
|
158448
|
-
var _this3 = this;
|
|
158450
|
+
var _this$props$className, _this3 = this;
|
|
158449
158451
|
this.props.onRef(this);
|
|
158450
158452
|
window.addEventListener('resize', this.onResize);
|
|
158453
|
+
var isResponseAreaEditor = (_this$props$className = this.props.className) === null || _this$props$className === void 0 ? void 0 : _this$props$className.includes('response-area-editor');
|
|
158454
|
+
if (isResponseAreaEditor && this.editor) {
|
|
158455
|
+
var responseAreaEditor = document.querySelector(("[data-key=\"").concat(this.editor.value.document.key, "\"]"));
|
|
158456
|
+
if (responseAreaEditor) {
|
|
158457
|
+
responseAreaEditor.setAttribute('aria-label', 'Answer');
|
|
158458
|
+
}
|
|
158459
|
+
}
|
|
158451
158460
|
if (this.editor && this.props.autoFocus) {
|
|
158452
158461
|
Promise.resolve().then(function () {
|
|
158453
158462
|
if (_this3.editor) {
|
|
@@ -158521,7 +158530,7 @@ const require$$23 = _dll_classnames;
|
|
|
158521
158530
|
}, {
|
|
158522
158531
|
key: "render",
|
|
158523
158532
|
value: function render() {
|
|
158524
|
-
var _classNames,
|
|
158533
|
+
var _classNames, _this4 = this, _value$document;
|
|
158525
158534
|
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;
|
|
158526
158535
|
var _ref4 = pluginProps || ({});
|
|
158527
158536
|
_ref4.customPlugins;
|
|
@@ -158530,11 +158539,7 @@ const require$$23 = _dll_classnames;
|
|
|
158530
158539
|
log('[render] value: ', value);
|
|
158531
158540
|
var sizeStyle = this.buildSizeStyle();
|
|
158532
158541
|
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);
|
|
158533
|
-
|
|
158534
|
-
return _react["default"].createElement(_react["default"].Fragment, null, isResponseAreaEditor && _react["default"].createElement("label", {
|
|
158535
|
-
htmlFor: ("editor-").concat(value === null || value === void 0 ? void 0 : (_value$document = value.document) === null || _value$document === void 0 ? void 0 : _value$document.key),
|
|
158536
|
-
className: classes.srOnly
|
|
158537
|
-
}, "Answer:"), _react["default"].createElement("div", {
|
|
158542
|
+
return _react["default"].createElement("div", {
|
|
158538
158543
|
ref: function ref(_ref5) {
|
|
158539
158544
|
return _this4.wrapperRef = _ref5;
|
|
158540
158545
|
},
|
|
@@ -158542,7 +158547,7 @@ const require$$23 = _dll_classnames;
|
|
|
158542
158547
|
width: sizeStyle.width
|
|
158543
158548
|
},
|
|
158544
158549
|
className: names,
|
|
158545
|
-
id: ("editor-").concat(value === null || value === void 0 ? void 0 : (_value$
|
|
158550
|
+
id: ("editor-").concat(value === null || value === void 0 ? void 0 : (_value$document = value.document) === null || _value$document === void 0 ? void 0 : _value$document.key)
|
|
158546
158551
|
}, scheduled && _react["default"].createElement("div", {
|
|
158547
158552
|
className: classes.uploading
|
|
158548
158553
|
}, "Uploading image and then saving..."), _react["default"].createElement(_slateReact.Editor, {
|
|
@@ -158606,7 +158611,7 @@ const require$$23 = _dll_classnames;
|
|
|
158606
158611
|
onConfirm: dialog.onConfirm,
|
|
158607
158612
|
onConfirmText: dialog.onConfirmText,
|
|
158608
158613
|
onCloseText: dialog.onCloseText
|
|
158609
|
-
}))
|
|
158614
|
+
}));
|
|
158610
158615
|
}
|
|
158611
158616
|
}]);
|
|
158612
158617
|
return Editor;
|
|
@@ -158739,16 +158744,6 @@ const require$$23 = _dll_classnames;
|
|
|
158739
158744
|
marginTop: '6px',
|
|
158740
158745
|
padding: '20px',
|
|
158741
158746
|
backgroundColor: 'rgba(0,0,0,0.06)'
|
|
158742
|
-
},
|
|
158743
|
-
srOnly: {
|
|
158744
|
-
border: 0,
|
|
158745
|
-
clip: 'rect(0, 0, 0, 0)',
|
|
158746
|
-
height: '1px',
|
|
158747
|
-
margin: '-1px',
|
|
158748
|
-
overflow: 'hidden',
|
|
158749
|
-
padding: 0,
|
|
158750
|
-
position: 'absolute',
|
|
158751
|
-
width: '1px'
|
|
158752
158747
|
}
|
|
158753
158748
|
};
|
|
158754
158749
|
var _default = (0, _styles.withStyles)(styles)(Editor);
|
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.24.
|
|
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.24.3/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.24.3/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
@@ -139244,7 +139244,7 @@ const require$$4$P = _dll_prop_types;
|
|
|
139244
139244
|
var boardStyle = isCategorize ? classes.categorizeBoard : classes.board;
|
|
139245
139245
|
return _react["default"].createElement("div", {
|
|
139246
139246
|
style: style,
|
|
139247
|
-
className: choiceBoard ? boardStyle : names
|
|
139247
|
+
className: (0, _classnames["default"])(classes.noSelectStyles, choiceBoard ? boardStyle : names)
|
|
139248
139248
|
}, children);
|
|
139249
139249
|
};
|
|
139250
139250
|
exports.PlaceHolder = PlaceHolder;
|
|
@@ -139266,6 +139266,14 @@ const require$$4$P = _dll_prop_types;
|
|
|
139266
139266
|
};
|
|
139267
139267
|
var styles = function styles(theme) {
|
|
139268
139268
|
return {
|
|
139269
|
+
noSelectStyles: {
|
|
139270
|
+
WebkitTouchCallout: 'none',
|
|
139271
|
+
WebkitUserSelect: 'none',
|
|
139272
|
+
KhtmlUserSelect: 'none',
|
|
139273
|
+
MozUserSelect: 'none',
|
|
139274
|
+
MsUserSelect: 'none',
|
|
139275
|
+
userSelect: 'none'
|
|
139276
|
+
},
|
|
139269
139277
|
placeholder: {
|
|
139270
139278
|
width: '100%',
|
|
139271
139279
|
height: '100%',
|
|
@@ -142028,13 +142036,7 @@ function _isNativeReflectConstruct() {
|
|
|
142028
142036
|
}
|
|
142029
142037
|
}
|
|
142030
142038
|
var preventInteractionStyle = {
|
|
142031
|
-
flex: 1
|
|
142032
|
-
WebkitTouchCallout: 'none',
|
|
142033
|
-
WebkitUserSelect: 'none',
|
|
142034
|
-
KhtmlUserSelect: 'none',
|
|
142035
|
-
MozUserSelect: 'none',
|
|
142036
|
-
MsUserSelect: 'none',
|
|
142037
|
-
UserSelect: 'none'
|
|
142039
|
+
flex: 1
|
|
142038
142040
|
};
|
|
142039
142041
|
var DroppablePlaceholder = (function (_React$Component) {
|
|
142040
142042
|
(0, _inherits2$j["default"])(DroppablePlaceholder, _React$Component);
|
|
@@ -156510,9 +156512,16 @@ const require$$23 = _dll_classnames;
|
|
|
156510
156512
|
}, {
|
|
156511
156513
|
key: "componentDidMount",
|
|
156512
156514
|
value: function componentDidMount() {
|
|
156513
|
-
var _this3 = this;
|
|
156515
|
+
var _this$props$className, _this3 = this;
|
|
156514
156516
|
this.props.onRef(this);
|
|
156515
156517
|
window.addEventListener('resize', this.onResize);
|
|
156518
|
+
var isResponseAreaEditor = (_this$props$className = this.props.className) === null || _this$props$className === void 0 ? void 0 : _this$props$className.includes('response-area-editor');
|
|
156519
|
+
if (isResponseAreaEditor && this.editor) {
|
|
156520
|
+
var responseAreaEditor = document.querySelector(("[data-key=\"").concat(this.editor.value.document.key, "\"]"));
|
|
156521
|
+
if (responseAreaEditor) {
|
|
156522
|
+
responseAreaEditor.setAttribute('aria-label', 'Answer');
|
|
156523
|
+
}
|
|
156524
|
+
}
|
|
156516
156525
|
if (this.editor && this.props.autoFocus) {
|
|
156517
156526
|
Promise.resolve().then(function () {
|
|
156518
156527
|
if (_this3.editor) {
|
|
@@ -156586,7 +156595,7 @@ const require$$23 = _dll_classnames;
|
|
|
156586
156595
|
}, {
|
|
156587
156596
|
key: "render",
|
|
156588
156597
|
value: function render() {
|
|
156589
|
-
var _classNames,
|
|
156598
|
+
var _classNames, _this4 = this, _value$document;
|
|
156590
156599
|
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;
|
|
156591
156600
|
var _ref4 = pluginProps || ({});
|
|
156592
156601
|
_ref4.customPlugins;
|
|
@@ -156595,11 +156604,7 @@ const require$$23 = _dll_classnames;
|
|
|
156595
156604
|
log('[render] value: ', value);
|
|
156596
156605
|
var sizeStyle = this.buildSizeStyle();
|
|
156597
156606
|
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);
|
|
156598
|
-
|
|
156599
|
-
return _react["default"].createElement(_react["default"].Fragment, null, isResponseAreaEditor && _react["default"].createElement("label", {
|
|
156600
|
-
htmlFor: ("editor-").concat(value === null || value === void 0 ? void 0 : (_value$document = value.document) === null || _value$document === void 0 ? void 0 : _value$document.key),
|
|
156601
|
-
className: classes.srOnly
|
|
156602
|
-
}, "Answer:"), _react["default"].createElement("div", {
|
|
156607
|
+
return _react["default"].createElement("div", {
|
|
156603
156608
|
ref: function ref(_ref5) {
|
|
156604
156609
|
return _this4.wrapperRef = _ref5;
|
|
156605
156610
|
},
|
|
@@ -156607,7 +156612,7 @@ const require$$23 = _dll_classnames;
|
|
|
156607
156612
|
width: sizeStyle.width
|
|
156608
156613
|
},
|
|
156609
156614
|
className: names,
|
|
156610
|
-
id: ("editor-").concat(value === null || value === void 0 ? void 0 : (_value$
|
|
156615
|
+
id: ("editor-").concat(value === null || value === void 0 ? void 0 : (_value$document = value.document) === null || _value$document === void 0 ? void 0 : _value$document.key)
|
|
156611
156616
|
}, scheduled && _react["default"].createElement("div", {
|
|
156612
156617
|
className: classes.uploading
|
|
156613
156618
|
}, "Uploading image and then saving..."), _react["default"].createElement(_slateReact.Editor, {
|
|
@@ -156671,7 +156676,7 @@ const require$$23 = _dll_classnames;
|
|
|
156671
156676
|
onConfirm: dialog.onConfirm,
|
|
156672
156677
|
onConfirmText: dialog.onConfirmText,
|
|
156673
156678
|
onCloseText: dialog.onCloseText
|
|
156674
|
-
}))
|
|
156679
|
+
}));
|
|
156675
156680
|
}
|
|
156676
156681
|
}]);
|
|
156677
156682
|
return Editor;
|
|
@@ -156804,16 +156809,6 @@ const require$$23 = _dll_classnames;
|
|
|
156804
156809
|
marginTop: '6px',
|
|
156805
156810
|
padding: '20px',
|
|
156806
156811
|
backgroundColor: 'rgba(0,0,0,0.06)'
|
|
156807
|
-
},
|
|
156808
|
-
srOnly: {
|
|
156809
|
-
border: 0,
|
|
156810
|
-
clip: 'rect(0, 0, 0, 0)',
|
|
156811
|
-
height: '1px',
|
|
156812
|
-
margin: '-1px',
|
|
156813
|
-
overflow: 'hidden',
|
|
156814
|
-
padding: 0,
|
|
156815
|
-
position: 'absolute',
|
|
156816
|
-
width: '1px'
|
|
156817
156812
|
}
|
|
156818
156813
|
};
|
|
156819
156814
|
var _default = (0, _styles.withStyles)(styles)(Editor);
|
package/module/manifest.json
CHANGED
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.24.
|
|
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.24.3/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.24.3/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
@@ -139244,7 +139244,7 @@ const require$$4$P = _dll_prop_types;
|
|
|
139244
139244
|
var boardStyle = isCategorize ? classes.categorizeBoard : classes.board;
|
|
139245
139245
|
return _react["default"].createElement("div", {
|
|
139246
139246
|
style: style,
|
|
139247
|
-
className: choiceBoard ? boardStyle : names
|
|
139247
|
+
className: (0, _classnames["default"])(classes.noSelectStyles, choiceBoard ? boardStyle : names)
|
|
139248
139248
|
}, children);
|
|
139249
139249
|
};
|
|
139250
139250
|
exports.PlaceHolder = PlaceHolder;
|
|
@@ -139266,6 +139266,14 @@ const require$$4$P = _dll_prop_types;
|
|
|
139266
139266
|
};
|
|
139267
139267
|
var styles = function styles(theme) {
|
|
139268
139268
|
return {
|
|
139269
|
+
noSelectStyles: {
|
|
139270
|
+
WebkitTouchCallout: 'none',
|
|
139271
|
+
WebkitUserSelect: 'none',
|
|
139272
|
+
KhtmlUserSelect: 'none',
|
|
139273
|
+
MozUserSelect: 'none',
|
|
139274
|
+
MsUserSelect: 'none',
|
|
139275
|
+
userSelect: 'none'
|
|
139276
|
+
},
|
|
139269
139277
|
placeholder: {
|
|
139270
139278
|
width: '100%',
|
|
139271
139279
|
height: '100%',
|
|
@@ -142028,13 +142036,7 @@ function _isNativeReflectConstruct() {
|
|
|
142028
142036
|
}
|
|
142029
142037
|
}
|
|
142030
142038
|
var preventInteractionStyle = {
|
|
142031
|
-
flex: 1
|
|
142032
|
-
WebkitTouchCallout: 'none',
|
|
142033
|
-
WebkitUserSelect: 'none',
|
|
142034
|
-
KhtmlUserSelect: 'none',
|
|
142035
|
-
MozUserSelect: 'none',
|
|
142036
|
-
MsUserSelect: 'none',
|
|
142037
|
-
UserSelect: 'none'
|
|
142039
|
+
flex: 1
|
|
142038
142040
|
};
|
|
142039
142041
|
var DroppablePlaceholder = (function (_React$Component) {
|
|
142040
142042
|
(0, _inherits2$j["default"])(DroppablePlaceholder, _React$Component);
|
|
@@ -156510,9 +156512,16 @@ const require$$23 = _dll_classnames;
|
|
|
156510
156512
|
}, {
|
|
156511
156513
|
key: "componentDidMount",
|
|
156512
156514
|
value: function componentDidMount() {
|
|
156513
|
-
var _this3 = this;
|
|
156515
|
+
var _this$props$className, _this3 = this;
|
|
156514
156516
|
this.props.onRef(this);
|
|
156515
156517
|
window.addEventListener('resize', this.onResize);
|
|
156518
|
+
var isResponseAreaEditor = (_this$props$className = this.props.className) === null || _this$props$className === void 0 ? void 0 : _this$props$className.includes('response-area-editor');
|
|
156519
|
+
if (isResponseAreaEditor && this.editor) {
|
|
156520
|
+
var responseAreaEditor = document.querySelector(("[data-key=\"").concat(this.editor.value.document.key, "\"]"));
|
|
156521
|
+
if (responseAreaEditor) {
|
|
156522
|
+
responseAreaEditor.setAttribute('aria-label', 'Answer');
|
|
156523
|
+
}
|
|
156524
|
+
}
|
|
156516
156525
|
if (this.editor && this.props.autoFocus) {
|
|
156517
156526
|
Promise.resolve().then(function () {
|
|
156518
156527
|
if (_this3.editor) {
|
|
@@ -156586,7 +156595,7 @@ const require$$23 = _dll_classnames;
|
|
|
156586
156595
|
}, {
|
|
156587
156596
|
key: "render",
|
|
156588
156597
|
value: function render() {
|
|
156589
|
-
var _classNames,
|
|
156598
|
+
var _classNames, _this4 = this, _value$document;
|
|
156590
156599
|
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;
|
|
156591
156600
|
var _ref4 = pluginProps || ({});
|
|
156592
156601
|
_ref4.customPlugins;
|
|
@@ -156595,11 +156604,7 @@ const require$$23 = _dll_classnames;
|
|
|
156595
156604
|
log('[render] value: ', value);
|
|
156596
156605
|
var sizeStyle = this.buildSizeStyle();
|
|
156597
156606
|
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);
|
|
156598
|
-
|
|
156599
|
-
return _react["default"].createElement(_react["default"].Fragment, null, isResponseAreaEditor && _react["default"].createElement("label", {
|
|
156600
|
-
htmlFor: ("editor-").concat(value === null || value === void 0 ? void 0 : (_value$document = value.document) === null || _value$document === void 0 ? void 0 : _value$document.key),
|
|
156601
|
-
className: classes.srOnly
|
|
156602
|
-
}, "Answer:"), _react["default"].createElement("div", {
|
|
156607
|
+
return _react["default"].createElement("div", {
|
|
156603
156608
|
ref: function ref(_ref5) {
|
|
156604
156609
|
return _this4.wrapperRef = _ref5;
|
|
156605
156610
|
},
|
|
@@ -156607,7 +156612,7 @@ const require$$23 = _dll_classnames;
|
|
|
156607
156612
|
width: sizeStyle.width
|
|
156608
156613
|
},
|
|
156609
156614
|
className: names,
|
|
156610
|
-
id: ("editor-").concat(value === null || value === void 0 ? void 0 : (_value$
|
|
156615
|
+
id: ("editor-").concat(value === null || value === void 0 ? void 0 : (_value$document = value.document) === null || _value$document === void 0 ? void 0 : _value$document.key)
|
|
156611
156616
|
}, scheduled && _react["default"].createElement("div", {
|
|
156612
156617
|
className: classes.uploading
|
|
156613
156618
|
}, "Uploading image and then saving..."), _react["default"].createElement(_slateReact.Editor, {
|
|
@@ -156671,7 +156676,7 @@ const require$$23 = _dll_classnames;
|
|
|
156671
156676
|
onConfirm: dialog.onConfirm,
|
|
156672
156677
|
onConfirmText: dialog.onConfirmText,
|
|
156673
156678
|
onCloseText: dialog.onCloseText
|
|
156674
|
-
}))
|
|
156679
|
+
}));
|
|
156675
156680
|
}
|
|
156676
156681
|
}]);
|
|
156677
156682
|
return Editor;
|
|
@@ -156804,16 +156809,6 @@ const require$$23 = _dll_classnames;
|
|
|
156804
156809
|
marginTop: '6px',
|
|
156805
156810
|
padding: '20px',
|
|
156806
156811
|
backgroundColor: 'rgba(0,0,0,0.06)'
|
|
156807
|
-
},
|
|
156808
|
-
srOnly: {
|
|
156809
|
-
border: 0,
|
|
156810
|
-
clip: 'rect(0, 0, 0, 0)',
|
|
156811
|
-
height: '1px',
|
|
156812
|
-
margin: '-1px',
|
|
156813
|
-
overflow: 'hidden',
|
|
156814
|
-
padding: 0,
|
|
156815
|
-
position: 'absolute',
|
|
156816
|
-
width: '1px'
|
|
156817
156812
|
}
|
|
156818
156813
|
};
|
|
156819
156814
|
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.19.4
|
|
4
|
+
"version": "2.19.4",
|
|
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.19.4
|
|
11
|
-
"@pie-element/rubric": "^3.19.4
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^3.19.4",
|
|
11
|
+
"@pie-element/rubric": "^3.19.4",
|
|
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": "174c154a18fea883421348f56071c6cc590124be",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|