@pie-element/complex-rubric 3.6.7-next.6 → 3.6.7-next.8
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/controller/package.json +1 -1
- package/module/configure.js +12 -4
- package/module/element.js +12 -4
- package/module/manifest.json +2 -2
- package/module/print.js +12 -4
- package/package.json +4 -4
package/controller/package.json
CHANGED
package/module/configure.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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@4.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@4.1.3/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@7.0.
|
|
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@7.0.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) {
|
|
@@ -114881,7 +114881,9 @@ const require$$23$2 = _dll_debug;
|
|
|
114881
114881
|
};
|
|
114882
114882
|
var mml = new _mathml.MathML(mmlConfig);
|
|
114883
114883
|
var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
|
|
114884
|
-
var
|
|
114884
|
+
var withAssistive = (0, _assistiveMml.AssistiveMmlHandler)(_mathjax.mathjax.handlers.handlesDocument(docProvided));
|
|
114885
|
+
var handler = window.MathJax && window.MathJax.Menu ? withAssistive : (0, _MenuHandler.MenuHandler)(withAssistive);
|
|
114886
|
+
var classFactory = (0, _semanticEnrich.EnrichHandler)(handler, mml);
|
|
114885
114887
|
var html = classFactory.create(docProvided, {
|
|
114886
114888
|
compileError: function compileError(mj, math, err) {
|
|
114887
114889
|
console.log('bad math?:', math);
|
|
@@ -114933,13 +114935,19 @@ const require$$23$2 = _dll_debug;
|
|
|
114933
114935
|
var attemptRender = function attemptRender() {
|
|
114934
114936
|
var _updatedDocument$math, _updatedDocument$math2;
|
|
114935
114937
|
var temporary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
114938
|
+
var usesMenuHandler = !(window.MathJax && window.MathJax.Menu);
|
|
114936
114939
|
var updatedDocument = _this.html.findMath(elements.length ? {
|
|
114937
114940
|
elements: elements
|
|
114938
114941
|
} : {}).compile();
|
|
114939
114942
|
if (!temporary && sreReady) {
|
|
114940
114943
|
updatedDocument = updatedDocument.enrich();
|
|
114941
114944
|
}
|
|
114942
|
-
updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech()
|
|
114945
|
+
updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech();
|
|
114946
|
+
if (usesMenuHandler) {
|
|
114947
|
+
console.log('Using MenuHandler');
|
|
114948
|
+
updatedDocument = updatedDocument.addMenu();
|
|
114949
|
+
}
|
|
114950
|
+
updatedDocument = updatedDocument.updateDocument();
|
|
114943
114951
|
if (!enrichSpeechInitialized && (0, _typeof2["default"])((_updatedDocument$math = updatedDocument.math.list) === null || _updatedDocument$math === void 0 ? void 0 : (_updatedDocument$math2 = _updatedDocument$math.next) === null || _updatedDocument$math2 === void 0 ? void 0 : _updatedDocument$math2.data) === 'object') {
|
|
114944
114952
|
enrichSpeechInitialized = true;
|
|
114945
114953
|
}
|
package/module/element.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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@4.1.
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@7.0.
|
|
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@4.1.3/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@7.0.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) {
|
|
@@ -132487,7 +132487,9 @@ const require$$23$2 = _dll_debug;
|
|
|
132487
132487
|
};
|
|
132488
132488
|
var mml = new _mathml.MathML(mmlConfig);
|
|
132489
132489
|
var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
|
|
132490
|
-
var
|
|
132490
|
+
var withAssistive = (0, _assistiveMml.AssistiveMmlHandler)(_mathjax.mathjax.handlers.handlesDocument(docProvided));
|
|
132491
|
+
var handler = window.MathJax && window.MathJax.Menu ? withAssistive : (0, _MenuHandler.MenuHandler)(withAssistive);
|
|
132492
|
+
var classFactory = (0, _semanticEnrich.EnrichHandler)(handler, mml);
|
|
132491
132493
|
var html = classFactory.create(docProvided, {
|
|
132492
132494
|
compileError: function compileError(mj, math, err) {
|
|
132493
132495
|
console.log('bad math?:', math);
|
|
@@ -132539,13 +132541,19 @@ const require$$23$2 = _dll_debug;
|
|
|
132539
132541
|
var attemptRender = function attemptRender() {
|
|
132540
132542
|
var _updatedDocument$math, _updatedDocument$math2;
|
|
132541
132543
|
var temporary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
132544
|
+
var usesMenuHandler = !(window.MathJax && window.MathJax.Menu);
|
|
132542
132545
|
var updatedDocument = _this.html.findMath(elements.length ? {
|
|
132543
132546
|
elements: elements
|
|
132544
132547
|
} : {}).compile();
|
|
132545
132548
|
if (!temporary && sreReady) {
|
|
132546
132549
|
updatedDocument = updatedDocument.enrich();
|
|
132547
132550
|
}
|
|
132548
|
-
updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech()
|
|
132551
|
+
updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech();
|
|
132552
|
+
if (usesMenuHandler) {
|
|
132553
|
+
console.log('Using MenuHandler');
|
|
132554
|
+
updatedDocument = updatedDocument.addMenu();
|
|
132555
|
+
}
|
|
132556
|
+
updatedDocument = updatedDocument.updateDocument();
|
|
132549
132557
|
if (!enrichSpeechInitialized && (0, _typeof2["default"])((_updatedDocument$math = updatedDocument.math.list) === null || _updatedDocument$math === void 0 ? void 0 : (_updatedDocument$math2 = _updatedDocument$math.next) === null || _updatedDocument$math2 === void 0 ? void 0 : _updatedDocument$math2.data) === 'object') {
|
|
132550
132558
|
enrichSpeechInitialized = true;
|
|
132551
132559
|
}
|
package/module/manifest.json
CHANGED
package/module/print.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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@4.1.
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@7.0.
|
|
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@4.1.3/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@7.0.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) {
|
|
@@ -132487,7 +132487,9 @@ const require$$23$2 = _dll_debug;
|
|
|
132487
132487
|
};
|
|
132488
132488
|
var mml = new _mathml.MathML(mmlConfig);
|
|
132489
132489
|
var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
|
|
132490
|
-
var
|
|
132490
|
+
var withAssistive = (0, _assistiveMml.AssistiveMmlHandler)(_mathjax.mathjax.handlers.handlesDocument(docProvided));
|
|
132491
|
+
var handler = window.MathJax && window.MathJax.Menu ? withAssistive : (0, _MenuHandler.MenuHandler)(withAssistive);
|
|
132492
|
+
var classFactory = (0, _semanticEnrich.EnrichHandler)(handler, mml);
|
|
132491
132493
|
var html = classFactory.create(docProvided, {
|
|
132492
132494
|
compileError: function compileError(mj, math, err) {
|
|
132493
132495
|
console.log('bad math?:', math);
|
|
@@ -132539,13 +132541,19 @@ const require$$23$2 = _dll_debug;
|
|
|
132539
132541
|
var attemptRender = function attemptRender() {
|
|
132540
132542
|
var _updatedDocument$math, _updatedDocument$math2;
|
|
132541
132543
|
var temporary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
132544
|
+
var usesMenuHandler = !(window.MathJax && window.MathJax.Menu);
|
|
132542
132545
|
var updatedDocument = _this.html.findMath(elements.length ? {
|
|
132543
132546
|
elements: elements
|
|
132544
132547
|
} : {}).compile();
|
|
132545
132548
|
if (!temporary && sreReady) {
|
|
132546
132549
|
updatedDocument = updatedDocument.enrich();
|
|
132547
132550
|
}
|
|
132548
|
-
updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech()
|
|
132551
|
+
updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech();
|
|
132552
|
+
if (usesMenuHandler) {
|
|
132553
|
+
console.log('Using MenuHandler');
|
|
132554
|
+
updatedDocument = updatedDocument.addMenu();
|
|
132555
|
+
}
|
|
132556
|
+
updatedDocument = updatedDocument.updateDocument();
|
|
132549
132557
|
if (!enrichSpeechInitialized && (0, _typeof2["default"])((_updatedDocument$math = updatedDocument.math.list) === null || _updatedDocument$math === void 0 ? void 0 : (_updatedDocument$math2 = _updatedDocument$math.next) === null || _updatedDocument$math2 === void 0 ? void 0 : _updatedDocument$math2.data) === 'object') {
|
|
132550
132558
|
enrichSpeechInitialized = true;
|
|
132551
132559
|
}
|
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.6.7-next.
|
|
4
|
+
"version": "3.6.7-next.8+a98d9306e",
|
|
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.5.7-next.
|
|
11
|
-
"@pie-element/rubric": "^4.7.2-next.
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^4.5.7-next.8+a98d9306e",
|
|
11
|
+
"@pie-element/rubric": "^4.7.2-next.8+a98d9306e",
|
|
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": "a98d9306e52686234b7c27133fcca6f04500c448",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|