@pie-element/select-text 8.11.3 → 8.11.5

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 CHANGED
@@ -3,6 +3,28 @@
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
+ ## [8.11.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/select-text@8.11.4...@pie-element/select-text@8.11.5) (2024-05-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-toolbox PD-3640 ([707c240](https://github.com/pie-framework/pie-elements/commit/707c24031bc0cb05bb070605d4bc27384334eaac))
12
+
13
+
14
+
15
+
16
+
17
+ ## [8.11.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/select-text@8.11.3...@pie-element/select-text@8.11.4) (2024-05-13)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * update pie-lib/pie-toolbox PD-3650, PD-3651, PD-3621, PD-3620, PD-2127,PD-3709, PD-3726, PD-3191 ([2ef6881](https://github.com/pie-framework/pie-elements/commit/2ef688118b9099c7338cbe88afcdeed228fae11e))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [8.11.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/select-text@8.11.2...@pie-element/select-text@8.11.3) (2024-05-07)
7
29
 
8
30
 
@@ -3,6 +3,28 @@
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
+ ## [7.10.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/select-text-configure@7.10.4...@pie-element/select-text-configure@7.10.5) (2024-05-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-toolbox PD-3640 ([707c240](https://github.com/pie-framework/pie-elements/commit/707c24031bc0cb05bb070605d4bc27384334eaac))
12
+
13
+
14
+
15
+
16
+
17
+ ## [7.10.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/select-text-configure@7.10.3...@pie-element/select-text-configure@7.10.4) (2024-05-13)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * update pie-lib/pie-toolbox PD-3650, PD-3651, PD-3621, PD-3620, PD-2127,PD-3709, PD-3726, PD-3191 ([2ef6881](https://github.com/pie-framework/pie-elements/commit/2ef688118b9099c7338cbe88afcdeed228fae11e))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [7.10.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/select-text-configure@7.10.2...@pie-element/select-text-configure@7.10.3) (2024-05-07)
7
29
 
8
30
 
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@pie-element/select-text-configure",
3
3
  "private": true,
4
- "version": "7.10.3",
4
+ "version": "7.10.5",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
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": "1.17.3",
11
+ "@pie-lib/pie-toolbox": "1.17.5",
12
12
  "debug": "^3.1.0",
13
13
  "lodash": "^4.17.15",
14
14
  "prop-types": "^15.6.2",
@@ -3,6 +3,28 @@
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
+ ## [5.9.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/select-text-controller@5.9.4...@pie-element/select-text-controller@5.9.5) (2024-05-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-toolbox PD-3640 ([707c240](https://github.com/pie-framework/pie-elements/commit/707c24031bc0cb05bb070605d4bc27384334eaac))
12
+
13
+
14
+
15
+
16
+
17
+ ## [5.9.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/select-text-controller@5.9.3...@pie-element/select-text-controller@5.9.4) (2024-05-13)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * update pie-lib/pie-toolbox PD-3650, PD-3651, PD-3621, PD-3620, PD-2127,PD-3709, PD-3726, PD-3191 ([2ef6881](https://github.com/pie-framework/pie-elements/commit/2ef688118b9099c7338cbe88afcdeed228fae11e))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [5.9.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/select-text-controller@5.9.2...@pie-element/select-text-controller@5.9.3) (2024-05-07)
7
29
 
8
30
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@pie-element/select-text-controller",
3
3
  "private": true,
4
- "version": "5.9.3",
4
+ "version": "5.9.5",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
8
8
  "dependencies": {
9
- "@pie-lib/pie-toolbox": "1.17.3",
9
+ "@pie-lib/pie-toolbox": "1.17.5",
10
10
  "debug": "^3.1.0",
11
11
  "lodash": "^4.17.15"
12
12
  },
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_react_dom_server} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.10.2/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_react_dom_server} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.10.4/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@4.12.0/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) {
@@ -94623,7 +94623,6 @@ const require$$12$4 = _dll_debug;
94623
94623
  };
94624
94624
  var mmlConfig = {
94625
94625
  parseError: function parseError(node) {
94626
- console.log('error:', node);
94627
94626
  this.error(this.adaptor.textContent(node).replace(/\n.*/g, ''));
94628
94627
  }
94629
94628
  };
@@ -94636,11 +94635,9 @@ const require$$12$4 = _dll_debug;
94636
94635
  var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
94637
94636
  var html = _mathjax.mathjax.document(docProvided, {
94638
94637
  compileError: function compileError(mj, math, err) {
94639
- console.log('bad math?:', math);
94640
94638
  console.error(err);
94641
94639
  },
94642
94640
  typesetError: function typesetError(doc, math, err) {
94643
- console.log('typeset error');
94644
94641
  console.error(err);
94645
94642
  doc.typesetError(math, err);
94646
94643
  },
@@ -94686,13 +94683,10 @@ const require$$12$4 = _dll_debug;
94686
94683
  var renderMath = function renderMath(el, renderOpts) {
94687
94684
  var _getGlobal$instance, _getGlobal$instance2;
94688
94685
  if (window && window.MathJax && window.MathJax.customKey && window.MathJax.customKey == '@pie-lib/math-rendering-accessible@1') {
94689
- console.log('RETURN FROM OLD MATH RENDERING, MATH RENDERING ACCESSIBLE WAS FOUND');
94690
94686
  return;
94691
94687
  }
94692
- console.log('we are in old math rendering');
94693
94688
  var isString = typeof el === 'string';
94694
94689
  var executeOn = document.body;
94695
- console.log(isString, 'is string in old math rendering');
94696
94690
  if (isString) {
94697
94691
  var div = document.createElement('div');
94698
94692
  div.innerHTML = el;
@@ -94705,14 +94699,11 @@ const require$$12$4 = _dll_debug;
94705
94699
  var updatedDocument = html.findMath().compile().getMetrics().typeset().updateDocument();
94706
94700
  var list = updatedDocument.math.list;
94707
94701
  var item = list.next;
94708
- console.log(item, 'item in old math rendering');
94709
94702
  if (!item) {
94710
- console.log("return '' in old math rendering");
94711
94703
  return '';
94712
94704
  }
94713
94705
  var mathMl = toMMl(item.data.root);
94714
94706
  var parsedMathMl = mathMl.replaceAll('\n', '');
94715
- console.log(parsedMathMl, 'parsedMathMl in old math rendering');
94716
94707
  return parsedMathMl;
94717
94708
  }
94718
94709
  if (!getGlobal().instance) {
@@ -94722,14 +94713,11 @@ const require$$12$4 = _dll_debug;
94722
94713
  log('el is undefined');
94723
94714
  return;
94724
94715
  }
94725
- console.log(el, 'element in old math rendering');
94726
94716
  if (el instanceof Element && (_getGlobal$instance = getGlobal().instance) !== null && _getGlobal$instance !== void 0 && _getGlobal$instance.Typeset) {
94727
- console.log('Typeset element in old math rendering');
94728
94717
  getGlobal().instance.Typeset(el);
94729
94718
  } else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
94730
94719
  var _getGlobal$instance3;
94731
94720
  var arr = Array.from(el);
94732
- console.log(arr, 'Typeset arr in old math rendering');
94733
94721
  (_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
94734
94722
  }
94735
94723
  };
@@ -103700,10 +103688,7 @@ getDefaultExportFromCjs(mathRendering);
103700
103688
  return ((_window = window) === null || _window === void 0 ? void 0 : (_window$MathJax = _window.MathJax) === null || _window$MathJax === void 0 ? void 0 : _window$MathJax.customKey) || ((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$MathJax = _window2.MathJax) === null || _window2$MathJax === void 0 ? void 0 : (_window2$MathJax$conf = _window2$MathJax.config) === null || _window2$MathJax$conf === void 0 ? void 0 : _window2$MathJax$conf.customKey);
103701
103689
  };
103702
103690
  var renderMath = function renderMath(el, renderOpts) {
103703
- console.log("I'm in math rendering accessible");
103704
103691
  var isString = typeof el === 'string';
103705
- console.log('IS STRING', isString);
103706
- console.log('renderOpts', renderOpts);
103707
103692
  var executeOn = document.body;
103708
103693
  if (isString) {
103709
103694
  var div = document.createElement('div');
@@ -103711,19 +103696,16 @@ getDefaultExportFromCjs(mathRendering);
103711
103696
  executeOn = div;
103712
103697
  }
103713
103698
  var _ref = renderOpts || ({}), skipWaitForMathRenderingLib = _ref.skipWaitForMathRenderingLib;
103714
- console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
103715
103699
  var renderMathAccessible = function renderMathAccessible() {
103716
103700
  fixMathElements(executeOn);
103717
103701
  adjustMathMLStyle(executeOn);
103718
103702
  var mathJaxCustomKey = getMathJaxCustomKey();
103719
103703
  if (!window.MathJax && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
103720
- console.log('INITIALIZE MATHJAX ACCESSIBLE');
103721
103704
  renderOpts = renderOpts || defaultOpts();
103722
103705
  (0, _mathjaxScript.initializeMathJax)(renderOpts);
103723
103706
  }
103724
103707
  if (isString && window.MathJax && window.mathjaxLoadedP) {
103725
103708
  try {
103726
- console.log('THE ISSUE MUST BE HERE');
103727
103709
  MathJax.texReset();
103728
103710
  MathJax.typesetClear();
103729
103711
  window.MathJax.typeset([executeOn]);
@@ -103732,7 +103714,6 @@ getDefaultExportFromCjs(mathRendering);
103732
103714
  var item = list.next;
103733
103715
  var mathMl = toMMl(item.data.root);
103734
103716
  var parsedMathMl = mathMl.replaceAll('\n', '');
103735
- console.log(parsedMathMl, 'parsedMathMl');
103736
103717
  return parsedMathMl;
103737
103718
  } catch (error) {
103738
103719
  console.error('Error rendering math:', error.message);
@@ -103741,13 +103722,11 @@ getDefaultExportFromCjs(mathRendering);
103741
103722
  if (window.mathjaxLoadedP) {
103742
103723
  window.mathjaxLoadedP.then(function () {
103743
103724
  var mathJaxInstance = getGlobal().instance;
103744
- console.log(mathJaxInstance, 'mathJaxInstance');
103745
103725
  if (mathJaxInstance) {
103746
103726
  mathJaxInstance.texReset();
103747
103727
  mathJaxInstance.typesetClear();
103748
103728
  mathJaxInstance.typesetPromise([executeOn]).then(function () {
103749
103729
  try {
103750
- console.log("I'm in typesetPromise???");
103751
103730
  removeExcessMjxContainers(executeOn);
103752
103731
  removePlaceholdersAndRestoreDisplay();
103753
103732
  var _updatedDocument = mathJaxInstance.startup.document;
@@ -103771,16 +103750,13 @@ getDefaultExportFromCjs(mathRendering);
103771
103750
  }
103772
103751
  };
103773
103752
  if (skipWaitForMathRenderingLib) {
103774
- console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
103775
103753
  return renderMathAccessible();
103776
103754
  } else {
103777
103755
  if (window.hasOwnProperty(mathRenderingKEY) && window[mathRenderingKEY].instance) {
103778
- console.log(mathRenderingKEY, 'mathRenderingKEY');
103779
103756
  removePlaceholdersAndRestoreDisplay();
103780
103757
  return mr.renderMath(executeOn, renderOpts);
103781
103758
  }
103782
103759
  if (window.hasOwnProperty(mathRenderingAccessibleKEY) && window[mathRenderingAccessibleKEY].instance) {
103783
- console.log(mathRenderingAccessibleKEY, 'mathRenderingAccessibleKEY');
103784
103760
  return renderMathAccessible();
103785
103761
  }
103786
103762
  var waitForMathRenderingLib = function waitForMathRenderingLib(renderMathAccessibleCallback) {
@@ -103795,7 +103771,6 @@ getDefaultExportFromCjs(mathRendering);
103795
103771
  if (mathRenderingHasLoaded || hasExceededMaxWait) {
103796
103772
  clearInterval(checkIntervalId);
103797
103773
  if (mathRenderingHasLoaded) {
103798
- console.log(mathRenderingHasLoaded, 'mathRenderingHasLoaded');
103799
103774
  removePlaceholdersAndRestoreDisplay();
103800
103775
  return mr.renderMath(executeOn, renderOpts);
103801
103776
  }
@@ -103804,7 +103779,6 @@ getDefaultExportFromCjs(mathRendering);
103804
103779
  };
103805
103780
  checkIntervalId = setInterval(checkForLib, 100);
103806
103781
  };
103807
- console.log('waitForMathRenderingLib');
103808
103782
  waitForMathRenderingLib(renderMathAccessible);
103809
103783
  }
103810
103784
  };
package/module/element.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.10.2/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.10.4/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.0/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) {
@@ -91451,7 +91451,6 @@ const require$$12$2 = _dll_debug;
91451
91451
  };
91452
91452
  var mmlConfig = {
91453
91453
  parseError: function parseError(node) {
91454
- console.log('error:', node);
91455
91454
  this.error(this.adaptor.textContent(node).replace(/\n.*/g, ''));
91456
91455
  }
91457
91456
  };
@@ -91464,11 +91463,9 @@ const require$$12$2 = _dll_debug;
91464
91463
  var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
91465
91464
  var html = _mathjax.mathjax.document(docProvided, {
91466
91465
  compileError: function compileError(mj, math, err) {
91467
- console.log('bad math?:', math);
91468
91466
  console.error(err);
91469
91467
  },
91470
91468
  typesetError: function typesetError(doc, math, err) {
91471
- console.log('typeset error');
91472
91469
  console.error(err);
91473
91470
  doc.typesetError(math, err);
91474
91471
  },
@@ -91514,13 +91511,10 @@ const require$$12$2 = _dll_debug;
91514
91511
  var renderMath = function renderMath(el, renderOpts) {
91515
91512
  var _getGlobal$instance, _getGlobal$instance2;
91516
91513
  if (window && window.MathJax && window.MathJax.customKey && window.MathJax.customKey == '@pie-lib/math-rendering-accessible@1') {
91517
- console.log('RETURN FROM OLD MATH RENDERING, MATH RENDERING ACCESSIBLE WAS FOUND');
91518
91514
  return;
91519
91515
  }
91520
- console.log('we are in old math rendering');
91521
91516
  var isString = typeof el === 'string';
91522
91517
  var executeOn = document.body;
91523
- console.log(isString, 'is string in old math rendering');
91524
91518
  if (isString) {
91525
91519
  var div = document.createElement('div');
91526
91520
  div.innerHTML = el;
@@ -91533,14 +91527,11 @@ const require$$12$2 = _dll_debug;
91533
91527
  var updatedDocument = html.findMath().compile().getMetrics().typeset().updateDocument();
91534
91528
  var list = updatedDocument.math.list;
91535
91529
  var item = list.next;
91536
- console.log(item, 'item in old math rendering');
91537
91530
  if (!item) {
91538
- console.log("return '' in old math rendering");
91539
91531
  return '';
91540
91532
  }
91541
91533
  var mathMl = toMMl(item.data.root);
91542
91534
  var parsedMathMl = mathMl.replaceAll('\n', '');
91543
- console.log(parsedMathMl, 'parsedMathMl in old math rendering');
91544
91535
  return parsedMathMl;
91545
91536
  }
91546
91537
  if (!getGlobal().instance) {
@@ -91550,14 +91541,11 @@ const require$$12$2 = _dll_debug;
91550
91541
  log('el is undefined');
91551
91542
  return;
91552
91543
  }
91553
- console.log(el, 'element in old math rendering');
91554
91544
  if (el instanceof Element && (_getGlobal$instance = getGlobal().instance) !== null && _getGlobal$instance !== void 0 && _getGlobal$instance.Typeset) {
91555
- console.log('Typeset element in old math rendering');
91556
91545
  getGlobal().instance.Typeset(el);
91557
91546
  } else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
91558
91547
  var _getGlobal$instance3;
91559
91548
  var arr = Array.from(el);
91560
- console.log(arr, 'Typeset arr in old math rendering');
91561
91549
  (_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
91562
91550
  }
91563
91551
  };
@@ -100528,10 +100516,7 @@ getDefaultExportFromCjs(mathRendering);
100528
100516
  return ((_window = window) === null || _window === void 0 ? void 0 : (_window$MathJax = _window.MathJax) === null || _window$MathJax === void 0 ? void 0 : _window$MathJax.customKey) || ((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$MathJax = _window2.MathJax) === null || _window2$MathJax === void 0 ? void 0 : (_window2$MathJax$conf = _window2$MathJax.config) === null || _window2$MathJax$conf === void 0 ? void 0 : _window2$MathJax$conf.customKey);
100529
100517
  };
100530
100518
  var renderMath = function renderMath(el, renderOpts) {
100531
- console.log("I'm in math rendering accessible");
100532
100519
  var isString = typeof el === 'string';
100533
- console.log('IS STRING', isString);
100534
- console.log('renderOpts', renderOpts);
100535
100520
  var executeOn = document.body;
100536
100521
  if (isString) {
100537
100522
  var div = document.createElement('div');
@@ -100539,19 +100524,16 @@ getDefaultExportFromCjs(mathRendering);
100539
100524
  executeOn = div;
100540
100525
  }
100541
100526
  var _ref = renderOpts || ({}), skipWaitForMathRenderingLib = _ref.skipWaitForMathRenderingLib;
100542
- console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
100543
100527
  var renderMathAccessible = function renderMathAccessible() {
100544
100528
  fixMathElements(executeOn);
100545
100529
  adjustMathMLStyle(executeOn);
100546
100530
  var mathJaxCustomKey = getMathJaxCustomKey();
100547
100531
  if (!window.MathJax && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
100548
- console.log('INITIALIZE MATHJAX ACCESSIBLE');
100549
100532
  renderOpts = renderOpts || defaultOpts();
100550
100533
  (0, _mathjaxScript.initializeMathJax)(renderOpts);
100551
100534
  }
100552
100535
  if (isString && window.MathJax && window.mathjaxLoadedP) {
100553
100536
  try {
100554
- console.log('THE ISSUE MUST BE HERE');
100555
100537
  MathJax.texReset();
100556
100538
  MathJax.typesetClear();
100557
100539
  window.MathJax.typeset([executeOn]);
@@ -100560,7 +100542,6 @@ getDefaultExportFromCjs(mathRendering);
100560
100542
  var item = list.next;
100561
100543
  var mathMl = toMMl(item.data.root);
100562
100544
  var parsedMathMl = mathMl.replaceAll('\n', '');
100563
- console.log(parsedMathMl, 'parsedMathMl');
100564
100545
  return parsedMathMl;
100565
100546
  } catch (error) {
100566
100547
  console.error('Error rendering math:', error.message);
@@ -100569,13 +100550,11 @@ getDefaultExportFromCjs(mathRendering);
100569
100550
  if (window.mathjaxLoadedP) {
100570
100551
  window.mathjaxLoadedP.then(function () {
100571
100552
  var mathJaxInstance = getGlobal().instance;
100572
- console.log(mathJaxInstance, 'mathJaxInstance');
100573
100553
  if (mathJaxInstance) {
100574
100554
  mathJaxInstance.texReset();
100575
100555
  mathJaxInstance.typesetClear();
100576
100556
  mathJaxInstance.typesetPromise([executeOn]).then(function () {
100577
100557
  try {
100578
- console.log("I'm in typesetPromise???");
100579
100558
  removeExcessMjxContainers(executeOn);
100580
100559
  removePlaceholdersAndRestoreDisplay();
100581
100560
  var _updatedDocument = mathJaxInstance.startup.document;
@@ -100599,16 +100578,13 @@ getDefaultExportFromCjs(mathRendering);
100599
100578
  }
100600
100579
  };
100601
100580
  if (skipWaitForMathRenderingLib) {
100602
- console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
100603
100581
  return renderMathAccessible();
100604
100582
  } else {
100605
100583
  if (window.hasOwnProperty(mathRenderingKEY) && window[mathRenderingKEY].instance) {
100606
- console.log(mathRenderingKEY, 'mathRenderingKEY');
100607
100584
  removePlaceholdersAndRestoreDisplay();
100608
100585
  return mr.renderMath(executeOn, renderOpts);
100609
100586
  }
100610
100587
  if (window.hasOwnProperty(mathRenderingAccessibleKEY) && window[mathRenderingAccessibleKEY].instance) {
100611
- console.log(mathRenderingAccessibleKEY, 'mathRenderingAccessibleKEY');
100612
100588
  return renderMathAccessible();
100613
100589
  }
100614
100590
  var waitForMathRenderingLib = function waitForMathRenderingLib(renderMathAccessibleCallback) {
@@ -100623,7 +100599,6 @@ getDefaultExportFromCjs(mathRendering);
100623
100599
  if (mathRenderingHasLoaded || hasExceededMaxWait) {
100624
100600
  clearInterval(checkIntervalId);
100625
100601
  if (mathRenderingHasLoaded) {
100626
- console.log(mathRenderingHasLoaded, 'mathRenderingHasLoaded');
100627
100602
  removePlaceholdersAndRestoreDisplay();
100628
100603
  return mr.renderMath(executeOn, renderOpts);
100629
100604
  }
@@ -100632,7 +100607,6 @@ getDefaultExportFromCjs(mathRendering);
100632
100607
  };
100633
100608
  checkIntervalId = setInterval(checkForLib, 100);
100634
100609
  };
100635
- console.log('waitForMathRenderingLib');
100636
100610
  waitForMathRenderingLib(renderMathAccessible);
100637
100611
  }
100638
100612
  };
package/module/index.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <!doctype html>
3
3
  <html>
4
4
  <head>
5
- <title>@pie-element/select-text@8.11.2</title>
5
+ <title>@pie-element/select-text@8.11.4</title>
6
6
  <script
7
7
  type="module"
8
8
  src="https://cdn.jsdelivr.net/npm/@pslb/demo-el@^1.0.0/dist/demo-el/demo-el.esm.js"></script>
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@pie-element/select-text",
3
- "version": "8.11.2",
3
+ "version": "8.11.4",
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
- "version": "1.10.2"
7
+ "version": "1.10.4"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
package/module/print.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <!doctype html>
3
3
  <html>
4
4
  <head>
5
- <title>@pie-element/select-text@8.11.2</title>
5
+ <title>@pie-element/select-text@8.11.4</title>
6
6
  <link
7
7
  href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
8
8
  rel="stylesheet"
package/module/print.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.10.2/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.10.4/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.0/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) {
@@ -91414,7 +91414,6 @@ const require$$12$2 = _dll_debug;
91414
91414
  };
91415
91415
  var mmlConfig = {
91416
91416
  parseError: function parseError(node) {
91417
- console.log('error:', node);
91418
91417
  this.error(this.adaptor.textContent(node).replace(/\n.*/g, ''));
91419
91418
  }
91420
91419
  };
@@ -91427,11 +91426,9 @@ const require$$12$2 = _dll_debug;
91427
91426
  var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
91428
91427
  var html = _mathjax.mathjax.document(docProvided, {
91429
91428
  compileError: function compileError(mj, math, err) {
91430
- console.log('bad math?:', math);
91431
91429
  console.error(err);
91432
91430
  },
91433
91431
  typesetError: function typesetError(doc, math, err) {
91434
- console.log('typeset error');
91435
91432
  console.error(err);
91436
91433
  doc.typesetError(math, err);
91437
91434
  },
@@ -91477,13 +91474,10 @@ const require$$12$2 = _dll_debug;
91477
91474
  var renderMath = function renderMath(el, renderOpts) {
91478
91475
  var _getGlobal$instance, _getGlobal$instance2;
91479
91476
  if (window && window.MathJax && window.MathJax.customKey && window.MathJax.customKey == '@pie-lib/math-rendering-accessible@1') {
91480
- console.log('RETURN FROM OLD MATH RENDERING, MATH RENDERING ACCESSIBLE WAS FOUND');
91481
91477
  return;
91482
91478
  }
91483
- console.log('we are in old math rendering');
91484
91479
  var isString = typeof el === 'string';
91485
91480
  var executeOn = document.body;
91486
- console.log(isString, 'is string in old math rendering');
91487
91481
  if (isString) {
91488
91482
  var div = document.createElement('div');
91489
91483
  div.innerHTML = el;
@@ -91496,14 +91490,11 @@ const require$$12$2 = _dll_debug;
91496
91490
  var updatedDocument = html.findMath().compile().getMetrics().typeset().updateDocument();
91497
91491
  var list = updatedDocument.math.list;
91498
91492
  var item = list.next;
91499
- console.log(item, 'item in old math rendering');
91500
91493
  if (!item) {
91501
- console.log("return '' in old math rendering");
91502
91494
  return '';
91503
91495
  }
91504
91496
  var mathMl = toMMl(item.data.root);
91505
91497
  var parsedMathMl = mathMl.replaceAll('\n', '');
91506
- console.log(parsedMathMl, 'parsedMathMl in old math rendering');
91507
91498
  return parsedMathMl;
91508
91499
  }
91509
91500
  if (!getGlobal().instance) {
@@ -91513,14 +91504,11 @@ const require$$12$2 = _dll_debug;
91513
91504
  log('el is undefined');
91514
91505
  return;
91515
91506
  }
91516
- console.log(el, 'element in old math rendering');
91517
91507
  if (el instanceof Element && (_getGlobal$instance = getGlobal().instance) !== null && _getGlobal$instance !== void 0 && _getGlobal$instance.Typeset) {
91518
- console.log('Typeset element in old math rendering');
91519
91508
  getGlobal().instance.Typeset(el);
91520
91509
  } else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
91521
91510
  var _getGlobal$instance3;
91522
91511
  var arr = Array.from(el);
91523
- console.log(arr, 'Typeset arr in old math rendering');
91524
91512
  (_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
91525
91513
  }
91526
91514
  };
@@ -100491,10 +100479,7 @@ getDefaultExportFromCjs(mathRendering);
100491
100479
  return ((_window = window) === null || _window === void 0 ? void 0 : (_window$MathJax = _window.MathJax) === null || _window$MathJax === void 0 ? void 0 : _window$MathJax.customKey) || ((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$MathJax = _window2.MathJax) === null || _window2$MathJax === void 0 ? void 0 : (_window2$MathJax$conf = _window2$MathJax.config) === null || _window2$MathJax$conf === void 0 ? void 0 : _window2$MathJax$conf.customKey);
100492
100480
  };
100493
100481
  var renderMath = function renderMath(el, renderOpts) {
100494
- console.log("I'm in math rendering accessible");
100495
100482
  var isString = typeof el === 'string';
100496
- console.log('IS STRING', isString);
100497
- console.log('renderOpts', renderOpts);
100498
100483
  var executeOn = document.body;
100499
100484
  if (isString) {
100500
100485
  var div = document.createElement('div');
@@ -100502,19 +100487,16 @@ getDefaultExportFromCjs(mathRendering);
100502
100487
  executeOn = div;
100503
100488
  }
100504
100489
  var _ref = renderOpts || ({}), skipWaitForMathRenderingLib = _ref.skipWaitForMathRenderingLib;
100505
- console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
100506
100490
  var renderMathAccessible = function renderMathAccessible() {
100507
100491
  fixMathElements(executeOn);
100508
100492
  adjustMathMLStyle(executeOn);
100509
100493
  var mathJaxCustomKey = getMathJaxCustomKey();
100510
100494
  if (!window.MathJax && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
100511
- console.log('INITIALIZE MATHJAX ACCESSIBLE');
100512
100495
  renderOpts = renderOpts || defaultOpts();
100513
100496
  (0, _mathjaxScript.initializeMathJax)(renderOpts);
100514
100497
  }
100515
100498
  if (isString && window.MathJax && window.mathjaxLoadedP) {
100516
100499
  try {
100517
- console.log('THE ISSUE MUST BE HERE');
100518
100500
  MathJax.texReset();
100519
100501
  MathJax.typesetClear();
100520
100502
  window.MathJax.typeset([executeOn]);
@@ -100523,7 +100505,6 @@ getDefaultExportFromCjs(mathRendering);
100523
100505
  var item = list.next;
100524
100506
  var mathMl = toMMl(item.data.root);
100525
100507
  var parsedMathMl = mathMl.replaceAll('\n', '');
100526
- console.log(parsedMathMl, 'parsedMathMl');
100527
100508
  return parsedMathMl;
100528
100509
  } catch (error) {
100529
100510
  console.error('Error rendering math:', error.message);
@@ -100532,13 +100513,11 @@ getDefaultExportFromCjs(mathRendering);
100532
100513
  if (window.mathjaxLoadedP) {
100533
100514
  window.mathjaxLoadedP.then(function () {
100534
100515
  var mathJaxInstance = getGlobal().instance;
100535
- console.log(mathJaxInstance, 'mathJaxInstance');
100536
100516
  if (mathJaxInstance) {
100537
100517
  mathJaxInstance.texReset();
100538
100518
  mathJaxInstance.typesetClear();
100539
100519
  mathJaxInstance.typesetPromise([executeOn]).then(function () {
100540
100520
  try {
100541
- console.log("I'm in typesetPromise???");
100542
100521
  removeExcessMjxContainers(executeOn);
100543
100522
  removePlaceholdersAndRestoreDisplay();
100544
100523
  var _updatedDocument = mathJaxInstance.startup.document;
@@ -100562,16 +100541,13 @@ getDefaultExportFromCjs(mathRendering);
100562
100541
  }
100563
100542
  };
100564
100543
  if (skipWaitForMathRenderingLib) {
100565
- console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
100566
100544
  return renderMathAccessible();
100567
100545
  } else {
100568
100546
  if (window.hasOwnProperty(mathRenderingKEY) && window[mathRenderingKEY].instance) {
100569
- console.log(mathRenderingKEY, 'mathRenderingKEY');
100570
100547
  removePlaceholdersAndRestoreDisplay();
100571
100548
  return mr.renderMath(executeOn, renderOpts);
100572
100549
  }
100573
100550
  if (window.hasOwnProperty(mathRenderingAccessibleKEY) && window[mathRenderingAccessibleKEY].instance) {
100574
- console.log(mathRenderingAccessibleKEY, 'mathRenderingAccessibleKEY');
100575
100551
  return renderMathAccessible();
100576
100552
  }
100577
100553
  var waitForMathRenderingLib = function waitForMathRenderingLib(renderMathAccessibleCallback) {
@@ -100586,7 +100562,6 @@ getDefaultExportFromCjs(mathRendering);
100586
100562
  if (mathRenderingHasLoaded || hasExceededMaxWait) {
100587
100563
  clearInterval(checkIntervalId);
100588
100564
  if (mathRenderingHasLoaded) {
100589
- console.log(mathRenderingHasLoaded, 'mathRenderingHasLoaded');
100590
100565
  removePlaceholdersAndRestoreDisplay();
100591
100566
  return mr.renderMath(executeOn, renderOpts);
100592
100567
  }
@@ -100595,7 +100570,6 @@ getDefaultExportFromCjs(mathRendering);
100595
100570
  };
100596
100571
  checkIntervalId = setInterval(checkForLib, 100);
100597
100572
  };
100598
- console.log('waitForMathRenderingLib');
100599
100573
  waitForMathRenderingLib(renderMathAccessible);
100600
100574
  }
100601
100575
  };
package/package.json CHANGED
@@ -4,19 +4,19 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "8.11.3",
7
+ "version": "8.11.5",
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": "1.17.3",
12
+ "@pie-lib/pie-toolbox": "1.17.5",
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": "c05a86593b64b6c7a7d48ff484cfa5a2a3ade3ea",
19
+ "gitHead": "45597f58c90f92d58a6713eeae1eb5d0dfb1f371",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },