@pie-element/complex-rubric 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.
@@ -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.16.0",
10
+ "@pie-lib/pie-toolbox": "2.17.4",
11
11
  "lodash": "^4.17.15"
12
12
  },
13
13
  "author": "",
@@ -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@3.9.0/module/index.js";
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@6.2.0/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@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) {
@@ -114760,6 +114760,10 @@ const require$$23$2 = _dll_debug;
114760
114760
  }
114761
114761
  if (typeof window !== 'undefined') {
114762
114762
  (0, _html.RegisterHTMLHandler)((0, _browserAdaptor.browserAdaptor)());
114763
+ if (window.MathJax && window.MathJax.Menu) {
114764
+ console.log('Prevent MathJax v2 from interfering with v3 MenuHandler');
114765
+ delete window.MathJax.Menu;
114766
+ }
114763
114767
  }
114764
114768
  var sreReady = false;
114765
114769
  (0, _system.engineReady)().then(function () {
@@ -114877,7 +114881,9 @@ const require$$23$2 = _dll_debug;
114877
114881
  };
114878
114882
  var mml = new _mathml.MathML(mmlConfig);
114879
114883
  var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
114880
- var classFactory = (0, _semanticEnrich.EnrichHandler)((0, _MenuHandler.MenuHandler)((0, _assistiveMml.AssistiveMmlHandler)(_mathjax.mathjax.handlers.handlesDocument(docProvided))), mml);
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);
114881
114887
  var html = classFactory.create(docProvided, {
114882
114888
  compileError: function compileError(mj, math, err) {
114883
114889
  console.log('bad math?:', math);
@@ -114888,6 +114894,13 @@ const require$$23$2 = _dll_debug;
114888
114894
  console.error(err);
114889
114895
  doc.typesetError(math, err);
114890
114896
  },
114897
+ menuOptions: {
114898
+ settings: {
114899
+ assistiveMml: true,
114900
+ collapsible: false,
114901
+ explorer: false
114902
+ }
114903
+ },
114891
114904
  sre: {
114892
114905
  speech: 'deep'
114893
114906
  },
@@ -114922,13 +114935,19 @@ const require$$23$2 = _dll_debug;
114922
114935
  var attemptRender = function attemptRender() {
114923
114936
  var _updatedDocument$math, _updatedDocument$math2;
114924
114937
  var temporary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
114938
+ var usesMenuHandler = !(window.MathJax && window.MathJax.Menu);
114925
114939
  var updatedDocument = _this.html.findMath(elements.length ? {
114926
114940
  elements: elements
114927
114941
  } : {}).compile();
114928
114942
  if (!temporary && sreReady) {
114929
114943
  updatedDocument = updatedDocument.enrich();
114930
114944
  }
114931
- updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech().addMenu().updateDocument();
114945
+ updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech();
114946
+ if (usesMenuHandler) {
114947
+ console.log('Using MenuHandler');
114948
+ updatedDocument = updatedDocument.addMenu();
114949
+ }
114950
+ updatedDocument = updatedDocument.updateDocument();
114932
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') {
114933
114952
  enrichSpeechInitialized = true;
114934
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@3.9.0/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@6.2.0/module/index.js";
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) {
@@ -132366,6 +132366,10 @@ const require$$23$2 = _dll_debug;
132366
132366
  }
132367
132367
  if (typeof window !== 'undefined') {
132368
132368
  (0, _html.RegisterHTMLHandler)((0, _browserAdaptor.browserAdaptor)());
132369
+ if (window.MathJax && window.MathJax.Menu) {
132370
+ console.log('Prevent MathJax v2 from interfering with v3 MenuHandler');
132371
+ delete window.MathJax.Menu;
132372
+ }
132369
132373
  }
132370
132374
  var sreReady = false;
132371
132375
  (0, _system.engineReady)().then(function () {
@@ -132483,7 +132487,9 @@ const require$$23$2 = _dll_debug;
132483
132487
  };
132484
132488
  var mml = new _mathml.MathML(mmlConfig);
132485
132489
  var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
132486
- var classFactory = (0, _semanticEnrich.EnrichHandler)((0, _MenuHandler.MenuHandler)((0, _assistiveMml.AssistiveMmlHandler)(_mathjax.mathjax.handlers.handlesDocument(docProvided))), mml);
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);
132487
132493
  var html = classFactory.create(docProvided, {
132488
132494
  compileError: function compileError(mj, math, err) {
132489
132495
  console.log('bad math?:', math);
@@ -132494,6 +132500,13 @@ const require$$23$2 = _dll_debug;
132494
132500
  console.error(err);
132495
132501
  doc.typesetError(math, err);
132496
132502
  },
132503
+ menuOptions: {
132504
+ settings: {
132505
+ assistiveMml: true,
132506
+ collapsible: false,
132507
+ explorer: false
132508
+ }
132509
+ },
132497
132510
  sre: {
132498
132511
  speech: 'deep'
132499
132512
  },
@@ -132528,13 +132541,19 @@ const require$$23$2 = _dll_debug;
132528
132541
  var attemptRender = function attemptRender() {
132529
132542
  var _updatedDocument$math, _updatedDocument$math2;
132530
132543
  var temporary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
132544
+ var usesMenuHandler = !(window.MathJax && window.MathJax.Menu);
132531
132545
  var updatedDocument = _this.html.findMath(elements.length ? {
132532
132546
  elements: elements
132533
132547
  } : {}).compile();
132534
132548
  if (!temporary && sreReady) {
132535
132549
  updatedDocument = updatedDocument.enrich();
132536
132550
  }
132537
- updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech().addMenu().updateDocument();
132551
+ updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech();
132552
+ if (usesMenuHandler) {
132553
+ console.log('Using MenuHandler');
132554
+ updatedDocument = updatedDocument.addMenu();
132555
+ }
132556
+ updatedDocument = updatedDocument.updateDocument();
132538
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') {
132539
132558
  enrichSpeechInitialized = true;
132540
132559
  }
@@ -4,11 +4,11 @@
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
- "version": "3.9.0"
7
+ "version": "4.1.3"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
11
- "version": "6.2.0"
11
+ "version": "7.0.2"
12
12
  }
13
13
  ]
14
14
  }
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@3.9.0/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@6.2.0/module/index.js";
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) {
@@ -132366,6 +132366,10 @@ const require$$23$2 = _dll_debug;
132366
132366
  }
132367
132367
  if (typeof window !== 'undefined') {
132368
132368
  (0, _html.RegisterHTMLHandler)((0, _browserAdaptor.browserAdaptor)());
132369
+ if (window.MathJax && window.MathJax.Menu) {
132370
+ console.log('Prevent MathJax v2 from interfering with v3 MenuHandler');
132371
+ delete window.MathJax.Menu;
132372
+ }
132369
132373
  }
132370
132374
  var sreReady = false;
132371
132375
  (0, _system.engineReady)().then(function () {
@@ -132483,7 +132487,9 @@ const require$$23$2 = _dll_debug;
132483
132487
  };
132484
132488
  var mml = new _mathml.MathML(mmlConfig);
132485
132489
  var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
132486
- var classFactory = (0, _semanticEnrich.EnrichHandler)((0, _MenuHandler.MenuHandler)((0, _assistiveMml.AssistiveMmlHandler)(_mathjax.mathjax.handlers.handlesDocument(docProvided))), mml);
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);
132487
132493
  var html = classFactory.create(docProvided, {
132488
132494
  compileError: function compileError(mj, math, err) {
132489
132495
  console.log('bad math?:', math);
@@ -132494,6 +132500,13 @@ const require$$23$2 = _dll_debug;
132494
132500
  console.error(err);
132495
132501
  doc.typesetError(math, err);
132496
132502
  },
132503
+ menuOptions: {
132504
+ settings: {
132505
+ assistiveMml: true,
132506
+ collapsible: false,
132507
+ explorer: false
132508
+ }
132509
+ },
132497
132510
  sre: {
132498
132511
  speech: 'deep'
132499
132512
  },
@@ -132528,13 +132541,19 @@ const require$$23$2 = _dll_debug;
132528
132541
  var attemptRender = function attemptRender() {
132529
132542
  var _updatedDocument$math, _updatedDocument$math2;
132530
132543
  var temporary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
132544
+ var usesMenuHandler = !(window.MathJax && window.MathJax.Menu);
132531
132545
  var updatedDocument = _this.html.findMath(elements.length ? {
132532
132546
  elements: elements
132533
132547
  } : {}).compile();
132534
132548
  if (!temporary && sreReady) {
132535
132549
  updatedDocument = updatedDocument.enrich();
132536
132550
  }
132537
- updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech().addMenu().updateDocument();
132551
+ updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech();
132552
+ if (usesMenuHandler) {
132553
+ console.log('Using MenuHandler');
132554
+ updatedDocument = updatedDocument.addMenu();
132555
+ }
132556
+ updatedDocument = updatedDocument.updateDocument();
132538
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') {
132539
132558
  enrichSpeechInitialized = true;
132540
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+ce7898271",
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.4+ce7898271",
11
- "@pie-element/rubric": "^4.7.2-next.4+ce7898271",
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": "ce7898271621e769a4c5eeeb148f9176615dc034",
18
+ "gitHead": "a98d9306e52686234b7c27133fcca6f04500c448",
19
19
  "scripts": {
20
20
  "postpublish": "../../scripts/postpublish"
21
21
  },