@pie-element/math-templated 3.6.7-next.4 → 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/configure/package.json +1 -1
- package/controller/package.json +1 -1
- package/module/configure.js +23 -4
- package/module/element.js +23 -4
- package/module/manifest.json +2 -2
- package/module/print.js +23 -4
- package/package.json +3 -3
package/configure/package.json
CHANGED
package/controller/package.json
CHANGED
package/module/configure.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash} from "../../../@pie-lib/pie-toolbox-math-rendering-module@
|
|
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@
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash} from "../../../@pie-lib/pie-toolbox-math-rendering-module@4.1.3/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@7.0.2/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;
|
|
@@ -115661,6 +115661,10 @@ const require$$23 = _dll_debug;
|
|
|
115661
115661
|
}
|
|
115662
115662
|
if (typeof window !== 'undefined') {
|
|
115663
115663
|
(0, _html.RegisterHTMLHandler)((0, _browserAdaptor.browserAdaptor)());
|
|
115664
|
+
if (window.MathJax && window.MathJax.Menu) {
|
|
115665
|
+
console.log('Prevent MathJax v2 from interfering with v3 MenuHandler');
|
|
115666
|
+
delete window.MathJax.Menu;
|
|
115667
|
+
}
|
|
115664
115668
|
}
|
|
115665
115669
|
var sreReady = false;
|
|
115666
115670
|
(0, _system.engineReady)().then(function () {
|
|
@@ -115778,7 +115782,9 @@ const require$$23 = _dll_debug;
|
|
|
115778
115782
|
};
|
|
115779
115783
|
var mml = new _mathml.MathML(mmlConfig);
|
|
115780
115784
|
var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
|
|
115781
|
-
var
|
|
115785
|
+
var withAssistive = (0, _assistiveMml.AssistiveMmlHandler)(_mathjax.mathjax.handlers.handlesDocument(docProvided));
|
|
115786
|
+
var handler = window.MathJax && window.MathJax.Menu ? withAssistive : (0, _MenuHandler.MenuHandler)(withAssistive);
|
|
115787
|
+
var classFactory = (0, _semanticEnrich.EnrichHandler)(handler, mml);
|
|
115782
115788
|
var html = classFactory.create(docProvided, {
|
|
115783
115789
|
compileError: function compileError(mj, math, err) {
|
|
115784
115790
|
console.log('bad math?:', math);
|
|
@@ -115789,6 +115795,13 @@ const require$$23 = _dll_debug;
|
|
|
115789
115795
|
console.error(err);
|
|
115790
115796
|
doc.typesetError(math, err);
|
|
115791
115797
|
},
|
|
115798
|
+
menuOptions: {
|
|
115799
|
+
settings: {
|
|
115800
|
+
assistiveMml: true,
|
|
115801
|
+
collapsible: false,
|
|
115802
|
+
explorer: false
|
|
115803
|
+
}
|
|
115804
|
+
},
|
|
115792
115805
|
sre: {
|
|
115793
115806
|
speech: 'deep'
|
|
115794
115807
|
},
|
|
@@ -115823,13 +115836,19 @@ const require$$23 = _dll_debug;
|
|
|
115823
115836
|
var attemptRender = function attemptRender() {
|
|
115824
115837
|
var _updatedDocument$math, _updatedDocument$math2;
|
|
115825
115838
|
var temporary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
115839
|
+
var usesMenuHandler = !(window.MathJax && window.MathJax.Menu);
|
|
115826
115840
|
var updatedDocument = _this.html.findMath(elements.length ? {
|
|
115827
115841
|
elements: elements
|
|
115828
115842
|
} : {}).compile();
|
|
115829
115843
|
if (!temporary && sreReady) {
|
|
115830
115844
|
updatedDocument = updatedDocument.enrich();
|
|
115831
115845
|
}
|
|
115832
|
-
updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech()
|
|
115846
|
+
updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech();
|
|
115847
|
+
if (usesMenuHandler) {
|
|
115848
|
+
console.log('Using MenuHandler');
|
|
115849
|
+
updatedDocument = updatedDocument.addMenu();
|
|
115850
|
+
}
|
|
115851
|
+
updatedDocument = updatedDocument.updateDocument();
|
|
115833
115852
|
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') {
|
|
115834
115853
|
enrichSpeechInitialized = true;
|
|
115835
115854
|
}
|
package/module/element.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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@
|
|
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@
|
|
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@4.1.3/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@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) {
|
|
@@ -94917,6 +94917,10 @@ const require$$23$2 = _dll_debug;
|
|
|
94917
94917
|
}
|
|
94918
94918
|
if (typeof window !== 'undefined') {
|
|
94919
94919
|
(0, _html.RegisterHTMLHandler)((0, _browserAdaptor.browserAdaptor)());
|
|
94920
|
+
if (window.MathJax && window.MathJax.Menu) {
|
|
94921
|
+
console.log('Prevent MathJax v2 from interfering with v3 MenuHandler');
|
|
94922
|
+
delete window.MathJax.Menu;
|
|
94923
|
+
}
|
|
94920
94924
|
}
|
|
94921
94925
|
var sreReady = false;
|
|
94922
94926
|
(0, _system.engineReady)().then(function () {
|
|
@@ -95034,7 +95038,9 @@ const require$$23$2 = _dll_debug;
|
|
|
95034
95038
|
};
|
|
95035
95039
|
var mml = new _mathml.MathML(mmlConfig);
|
|
95036
95040
|
var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
|
|
95037
|
-
var
|
|
95041
|
+
var withAssistive = (0, _assistiveMml.AssistiveMmlHandler)(_mathjax.mathjax.handlers.handlesDocument(docProvided));
|
|
95042
|
+
var handler = window.MathJax && window.MathJax.Menu ? withAssistive : (0, _MenuHandler.MenuHandler)(withAssistive);
|
|
95043
|
+
var classFactory = (0, _semanticEnrich.EnrichHandler)(handler, mml);
|
|
95038
95044
|
var html = classFactory.create(docProvided, {
|
|
95039
95045
|
compileError: function compileError(mj, math, err) {
|
|
95040
95046
|
console.log('bad math?:', math);
|
|
@@ -95045,6 +95051,13 @@ const require$$23$2 = _dll_debug;
|
|
|
95045
95051
|
console.error(err);
|
|
95046
95052
|
doc.typesetError(math, err);
|
|
95047
95053
|
},
|
|
95054
|
+
menuOptions: {
|
|
95055
|
+
settings: {
|
|
95056
|
+
assistiveMml: true,
|
|
95057
|
+
collapsible: false,
|
|
95058
|
+
explorer: false
|
|
95059
|
+
}
|
|
95060
|
+
},
|
|
95048
95061
|
sre: {
|
|
95049
95062
|
speech: 'deep'
|
|
95050
95063
|
},
|
|
@@ -95079,13 +95092,19 @@ const require$$23$2 = _dll_debug;
|
|
|
95079
95092
|
var attemptRender = function attemptRender() {
|
|
95080
95093
|
var _updatedDocument$math, _updatedDocument$math2;
|
|
95081
95094
|
var temporary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
95095
|
+
var usesMenuHandler = !(window.MathJax && window.MathJax.Menu);
|
|
95082
95096
|
var updatedDocument = _this.html.findMath(elements.length ? {
|
|
95083
95097
|
elements: elements
|
|
95084
95098
|
} : {}).compile();
|
|
95085
95099
|
if (!temporary && sreReady) {
|
|
95086
95100
|
updatedDocument = updatedDocument.enrich();
|
|
95087
95101
|
}
|
|
95088
|
-
updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech()
|
|
95102
|
+
updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech();
|
|
95103
|
+
if (usesMenuHandler) {
|
|
95104
|
+
console.log('Using MenuHandler');
|
|
95105
|
+
updatedDocument = updatedDocument.addMenu();
|
|
95106
|
+
}
|
|
95107
|
+
updatedDocument = updatedDocument.updateDocument();
|
|
95089
95108
|
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') {
|
|
95090
95109
|
enrichSpeechInitialized = true;
|
|
95091
95110
|
}
|
package/module/manifest.json
CHANGED
package/module/print.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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@
|
|
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@
|
|
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@4.1.3/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@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) {
|
|
@@ -94880,6 +94880,10 @@ const require$$23$2 = _dll_debug;
|
|
|
94880
94880
|
}
|
|
94881
94881
|
if (typeof window !== 'undefined') {
|
|
94882
94882
|
(0, _html.RegisterHTMLHandler)((0, _browserAdaptor.browserAdaptor)());
|
|
94883
|
+
if (window.MathJax && window.MathJax.Menu) {
|
|
94884
|
+
console.log('Prevent MathJax v2 from interfering with v3 MenuHandler');
|
|
94885
|
+
delete window.MathJax.Menu;
|
|
94886
|
+
}
|
|
94883
94887
|
}
|
|
94884
94888
|
var sreReady = false;
|
|
94885
94889
|
(0, _system.engineReady)().then(function () {
|
|
@@ -94997,7 +95001,9 @@ const require$$23$2 = _dll_debug;
|
|
|
94997
95001
|
};
|
|
94998
95002
|
var mml = new _mathml.MathML(mmlConfig);
|
|
94999
95003
|
var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
|
|
95000
|
-
var
|
|
95004
|
+
var withAssistive = (0, _assistiveMml.AssistiveMmlHandler)(_mathjax.mathjax.handlers.handlesDocument(docProvided));
|
|
95005
|
+
var handler = window.MathJax && window.MathJax.Menu ? withAssistive : (0, _MenuHandler.MenuHandler)(withAssistive);
|
|
95006
|
+
var classFactory = (0, _semanticEnrich.EnrichHandler)(handler, mml);
|
|
95001
95007
|
var html = classFactory.create(docProvided, {
|
|
95002
95008
|
compileError: function compileError(mj, math, err) {
|
|
95003
95009
|
console.log('bad math?:', math);
|
|
@@ -95008,6 +95014,13 @@ const require$$23$2 = _dll_debug;
|
|
|
95008
95014
|
console.error(err);
|
|
95009
95015
|
doc.typesetError(math, err);
|
|
95010
95016
|
},
|
|
95017
|
+
menuOptions: {
|
|
95018
|
+
settings: {
|
|
95019
|
+
assistiveMml: true,
|
|
95020
|
+
collapsible: false,
|
|
95021
|
+
explorer: false
|
|
95022
|
+
}
|
|
95023
|
+
},
|
|
95011
95024
|
sre: {
|
|
95012
95025
|
speech: 'deep'
|
|
95013
95026
|
},
|
|
@@ -95042,13 +95055,19 @@ const require$$23$2 = _dll_debug;
|
|
|
95042
95055
|
var attemptRender = function attemptRender() {
|
|
95043
95056
|
var _updatedDocument$math, _updatedDocument$math2;
|
|
95044
95057
|
var temporary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
95058
|
+
var usesMenuHandler = !(window.MathJax && window.MathJax.Menu);
|
|
95045
95059
|
var updatedDocument = _this.html.findMath(elements.length ? {
|
|
95046
95060
|
elements: elements
|
|
95047
95061
|
} : {}).compile();
|
|
95048
95062
|
if (!temporary && sreReady) {
|
|
95049
95063
|
updatedDocument = updatedDocument.enrich();
|
|
95050
95064
|
}
|
|
95051
|
-
updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech()
|
|
95065
|
+
updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech();
|
|
95066
|
+
if (usesMenuHandler) {
|
|
95067
|
+
console.log('Using MenuHandler');
|
|
95068
|
+
updatedDocument = updatedDocument.addMenu();
|
|
95069
|
+
}
|
|
95070
|
+
updatedDocument = updatedDocument.updateDocument();
|
|
95052
95071
|
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') {
|
|
95053
95072
|
enrichSpeechInitialized = true;
|
|
95054
95073
|
}
|
package/package.json
CHANGED
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "3.6.7-next.
|
|
7
|
+
"version": "3.6.7-next.8+a98d9306e",
|
|
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.
|
|
12
|
+
"@pie-lib/pie-toolbox": "2.17.4",
|
|
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": "
|
|
19
|
+
"gitHead": "a98d9306e52686234b7c27133fcca6f04500c448",
|
|
20
20
|
"scripts": {
|
|
21
21
|
"postpublish": "../../scripts/postpublish"
|
|
22
22
|
},
|