@pie-element/select-text 9.5.7-next.4 → 9.5.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.
@@ -8,7 +8,7 @@
8
8
  "dependencies": {
9
9
  "@material-ui/core": "^3.9.2",
10
10
  "@pie-framework/pie-configure-events": "^1.3.0",
11
- "@pie-lib/pie-toolbox": "2.16.0",
11
+ "@pie-lib/pie-toolbox": "2.17.4",
12
12
  "debug": "^3.1.0",
13
13
  "lodash": "^4.17.15",
14
14
  "prop-types": "^15.6.2",
@@ -6,7 +6,7 @@
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
8
8
  "dependencies": {
9
- "@pie-lib/pie-toolbox": "2.16.0",
9
+ "@pie-lib/pie-toolbox": "2.17.4",
10
10
  "debug": "^3.1.0",
11
11
  "lodash": "^4.17.15"
12
12
  },
@@ -1,5 +1,5 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.9.0/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@6.2.0/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server} 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_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;
@@ -114760,6 +114760,10 @@ const require$$23 = _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 = _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 = _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 = _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_lodash, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.9.0/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _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_lodash, _dll_react_dom_server, _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_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} 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;
@@ -111588,6 +111588,10 @@ const require$$23 = _dll_debug;
111588
111588
  }
111589
111589
  if (typeof window !== 'undefined') {
111590
111590
  (0, _html.RegisterHTMLHandler)((0, _browserAdaptor.browserAdaptor)());
111591
+ if (window.MathJax && window.MathJax.Menu) {
111592
+ console.log('Prevent MathJax v2 from interfering with v3 MenuHandler');
111593
+ delete window.MathJax.Menu;
111594
+ }
111591
111595
  }
111592
111596
  var sreReady = false;
111593
111597
  (0, _system.engineReady)().then(function () {
@@ -111705,7 +111709,9 @@ const require$$23 = _dll_debug;
111705
111709
  };
111706
111710
  var mml = new _mathml.MathML(mmlConfig);
111707
111711
  var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
111708
- var classFactory = (0, _semanticEnrich.EnrichHandler)((0, _MenuHandler.MenuHandler)((0, _assistiveMml.AssistiveMmlHandler)(_mathjax.mathjax.handlers.handlesDocument(docProvided))), mml);
111712
+ var withAssistive = (0, _assistiveMml.AssistiveMmlHandler)(_mathjax.mathjax.handlers.handlesDocument(docProvided));
111713
+ var handler = window.MathJax && window.MathJax.Menu ? withAssistive : (0, _MenuHandler.MenuHandler)(withAssistive);
111714
+ var classFactory = (0, _semanticEnrich.EnrichHandler)(handler, mml);
111709
111715
  var html = classFactory.create(docProvided, {
111710
111716
  compileError: function compileError(mj, math, err) {
111711
111717
  console.log('bad math?:', math);
@@ -111716,6 +111722,13 @@ const require$$23 = _dll_debug;
111716
111722
  console.error(err);
111717
111723
  doc.typesetError(math, err);
111718
111724
  },
111725
+ menuOptions: {
111726
+ settings: {
111727
+ assistiveMml: true,
111728
+ collapsible: false,
111729
+ explorer: false
111730
+ }
111731
+ },
111719
111732
  sre: {
111720
111733
  speech: 'deep'
111721
111734
  },
@@ -111750,13 +111763,19 @@ const require$$23 = _dll_debug;
111750
111763
  var attemptRender = function attemptRender() {
111751
111764
  var _updatedDocument$math, _updatedDocument$math2;
111752
111765
  var temporary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
111766
+ var usesMenuHandler = !(window.MathJax && window.MathJax.Menu);
111753
111767
  var updatedDocument = _this.html.findMath(elements.length ? {
111754
111768
  elements: elements
111755
111769
  } : {}).compile();
111756
111770
  if (!temporary && sreReady) {
111757
111771
  updatedDocument = updatedDocument.enrich();
111758
111772
  }
111759
- updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech().addMenu().updateDocument();
111773
+ updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech();
111774
+ if (usesMenuHandler) {
111775
+ console.log('Using MenuHandler');
111776
+ updatedDocument = updatedDocument.addMenu();
111777
+ }
111778
+ updatedDocument = updatedDocument.updateDocument();
111760
111779
  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') {
111761
111780
  enrichSpeechInitialized = true;
111762
111781
  }
@@ -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_lodash, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.9.0/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _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_lodash, _dll_react_dom_server, _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_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} 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;
@@ -111551,6 +111551,10 @@ const require$$23 = _dll_debug;
111551
111551
  }
111552
111552
  if (typeof window !== 'undefined') {
111553
111553
  (0, _html.RegisterHTMLHandler)((0, _browserAdaptor.browserAdaptor)());
111554
+ if (window.MathJax && window.MathJax.Menu) {
111555
+ console.log('Prevent MathJax v2 from interfering with v3 MenuHandler');
111556
+ delete window.MathJax.Menu;
111557
+ }
111554
111558
  }
111555
111559
  var sreReady = false;
111556
111560
  (0, _system.engineReady)().then(function () {
@@ -111668,7 +111672,9 @@ const require$$23 = _dll_debug;
111668
111672
  };
111669
111673
  var mml = new _mathml.MathML(mmlConfig);
111670
111674
  var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
111671
- var classFactory = (0, _semanticEnrich.EnrichHandler)((0, _MenuHandler.MenuHandler)((0, _assistiveMml.AssistiveMmlHandler)(_mathjax.mathjax.handlers.handlesDocument(docProvided))), mml);
111675
+ var withAssistive = (0, _assistiveMml.AssistiveMmlHandler)(_mathjax.mathjax.handlers.handlesDocument(docProvided));
111676
+ var handler = window.MathJax && window.MathJax.Menu ? withAssistive : (0, _MenuHandler.MenuHandler)(withAssistive);
111677
+ var classFactory = (0, _semanticEnrich.EnrichHandler)(handler, mml);
111672
111678
  var html = classFactory.create(docProvided, {
111673
111679
  compileError: function compileError(mj, math, err) {
111674
111680
  console.log('bad math?:', math);
@@ -111679,6 +111685,13 @@ const require$$23 = _dll_debug;
111679
111685
  console.error(err);
111680
111686
  doc.typesetError(math, err);
111681
111687
  },
111688
+ menuOptions: {
111689
+ settings: {
111690
+ assistiveMml: true,
111691
+ collapsible: false,
111692
+ explorer: false
111693
+ }
111694
+ },
111682
111695
  sre: {
111683
111696
  speech: 'deep'
111684
111697
  },
@@ -111713,13 +111726,19 @@ const require$$23 = _dll_debug;
111713
111726
  var attemptRender = function attemptRender() {
111714
111727
  var _updatedDocument$math, _updatedDocument$math2;
111715
111728
  var temporary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
111729
+ var usesMenuHandler = !(window.MathJax && window.MathJax.Menu);
111716
111730
  var updatedDocument = _this.html.findMath(elements.length ? {
111717
111731
  elements: elements
111718
111732
  } : {}).compile();
111719
111733
  if (!temporary && sreReady) {
111720
111734
  updatedDocument = updatedDocument.enrich();
111721
111735
  }
111722
- updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech().addMenu().updateDocument();
111736
+ updatedDocument = updatedDocument.getMetrics().typeset().assistiveMml().attachSpeech();
111737
+ if (usesMenuHandler) {
111738
+ console.log('Using MenuHandler');
111739
+ updatedDocument = updatedDocument.addMenu();
111740
+ }
111741
+ updatedDocument = updatedDocument.updateDocument();
111723
111742
  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') {
111724
111743
  enrichSpeechInitialized = true;
111725
111744
  }
package/package.json CHANGED
@@ -4,19 +4,19 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "9.5.7-next.4+ce7898271",
7
+ "version": "9.5.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.16.0",
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": "ce7898271621e769a4c5eeeb148f9176615dc034",
19
+ "gitHead": "a98d9306e52686234b7c27133fcca6f04500c448",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },