@pie-element/explicit-constructed-response 6.11.1-next.2 → 6.11.1-next.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.
@@ -8,7 +8,7 @@
8
8
  "@material-ui/core": "^3.9.2",
9
9
  "@material-ui/icons": "^3.0.1",
10
10
  "@pie-framework/pie-configure-events": "^1.3.0",
11
- "@pie-lib/pie-toolbox": "1.15.0",
11
+ "@pie-lib/pie-toolbox": "1.15.1",
12
12
  "classnames": "^2.2.6",
13
13
  "debug": "^3.1.0",
14
14
  "lodash": "^4.17.15",
@@ -8,7 +8,7 @@
8
8
  "author": "",
9
9
  "license": "ISC",
10
10
  "dependencies": {
11
- "@pie-lib/pie-toolbox": "1.15.0",
11
+ "@pie-lib/pie-toolbox": "1.15.1",
12
12
  "debug": "^3.1.0",
13
13
  "lodash": "^4.17.15",
14
14
  "type-of": "^2.0.1"
package/module/element.js CHANGED
@@ -79025,6 +79025,7 @@ getDefaultExportFromCjs(mathRendering);
79025
79025
  };
79026
79026
  var renderMath = function renderMath(el, renderOpts) {
79027
79027
  renderOpts = renderOpts || defaultOpts();
79028
+ var _renderOpts = renderOpts, skipWaitForMathRenderingLib = _renderOpts.skipWaitForMathRenderingLib;
79028
79029
  var isString = typeof el === 'string';
79029
79030
  var executeOn = document.body;
79030
79031
  if (isString) {
@@ -79034,7 +79035,7 @@ getDefaultExportFromCjs(mathRendering);
79034
79035
  }
79035
79036
  var unprocessedMathElements = executeOn.querySelectorAll('[data-latex]:not([data-math-handled="true"])');
79036
79037
  unprocessedMathElements.forEach(createPlaceholder);
79037
- waitForMathRenderingLib(function () {
79038
+ var mathRenderingCallback = function mathRenderingCallback() {
79038
79039
  fixMathElements(executeOn);
79039
79040
  adjustMathMLStyle(executeOn);
79040
79041
  if (window.hasOwnProperty('@pie-lib/math-rendering@2')) {
@@ -79042,7 +79043,7 @@ getDefaultExportFromCjs(mathRendering);
79042
79043
  mr.renderMath(el);
79043
79044
  return;
79044
79045
  }
79045
- if (!window.MathJax && !window.mathjaxLoadedP) {
79046
+ if (!window.MathJax && !window.mathjaxLoadedP || window.MathJax && !window.hasOwnProperty('@pie-lib/math-rendering-accessible@1')) {
79046
79047
  (0, _mathjaxScript.initializeMathJax)(renderOpts);
79047
79048
  }
79048
79049
  if (isString && window.MathJax && window.mathjaxLoadedP) {
@@ -79089,7 +79090,12 @@ getDefaultExportFromCjs(mathRendering);
79089
79090
  console.error('Error in initializing MathJax:', error);
79090
79091
  });
79091
79092
  }
79092
- });
79093
+ };
79094
+ if (skipWaitForMathRenderingLib) {
79095
+ return mathRenderingCallback();
79096
+ } else {
79097
+ waitForMathRenderingLib(mathRenderingCallback);
79098
+ }
79093
79099
  };
79094
79100
  var _default = renderMath;
79095
79101
  exports["default"] = _default;
package/module/print.js CHANGED
@@ -78988,6 +78988,7 @@ getDefaultExportFromCjs(mathRendering);
78988
78988
  };
78989
78989
  var renderMath = function renderMath(el, renderOpts) {
78990
78990
  renderOpts = renderOpts || defaultOpts();
78991
+ var _renderOpts = renderOpts, skipWaitForMathRenderingLib = _renderOpts.skipWaitForMathRenderingLib;
78991
78992
  var isString = typeof el === 'string';
78992
78993
  var executeOn = document.body;
78993
78994
  if (isString) {
@@ -78997,7 +78998,7 @@ getDefaultExportFromCjs(mathRendering);
78997
78998
  }
78998
78999
  var unprocessedMathElements = executeOn.querySelectorAll('[data-latex]:not([data-math-handled="true"])');
78999
79000
  unprocessedMathElements.forEach(createPlaceholder);
79000
- waitForMathRenderingLib(function () {
79001
+ var mathRenderingCallback = function mathRenderingCallback() {
79001
79002
  fixMathElements(executeOn);
79002
79003
  adjustMathMLStyle(executeOn);
79003
79004
  if (window.hasOwnProperty('@pie-lib/math-rendering@2')) {
@@ -79005,7 +79006,7 @@ getDefaultExportFromCjs(mathRendering);
79005
79006
  mr.renderMath(el);
79006
79007
  return;
79007
79008
  }
79008
- if (!window.MathJax && !window.mathjaxLoadedP) {
79009
+ if (!window.MathJax && !window.mathjaxLoadedP || window.MathJax && !window.hasOwnProperty('@pie-lib/math-rendering-accessible@1')) {
79009
79010
  (0, _mathjaxScript.initializeMathJax)(renderOpts);
79010
79011
  }
79011
79012
  if (isString && window.MathJax && window.mathjaxLoadedP) {
@@ -79052,7 +79053,12 @@ getDefaultExportFromCjs(mathRendering);
79052
79053
  console.error('Error in initializing MathJax:', error);
79053
79054
  });
79054
79055
  }
79055
- });
79056
+ };
79057
+ if (skipWaitForMathRenderingLib) {
79058
+ return mathRenderingCallback();
79059
+ } else {
79060
+ waitForMathRenderingLib(mathRenderingCallback);
79061
+ }
79056
79062
  };
79057
79063
  var _default = renderMath;
79058
79064
  exports["default"] = _default;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "6.11.1-next.2+4821667a9",
7
+ "version": "6.11.1-next.5+5e28ce0da",
8
8
  "description": "",
9
9
  "scripts": {
10
10
  "postpublish": "../../scripts/postpublish"
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "@material-ui/core": "^3.9.2",
14
14
  "@pie-framework/pie-player-events": "^0.1.0",
15
- "@pie-lib/pie-toolbox": "1.15.0",
15
+ "@pie-lib/pie-toolbox": "1.15.1",
16
16
  "classnames": "^2.2.5",
17
17
  "lodash": "^4.17.10",
18
18
  "prop-types": "^15.6.1",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "author": "",
23
23
  "license": "ISC",
24
- "gitHead": "4821667a95edeb13f6fe411c94102c13537b326c",
24
+ "gitHead": "5e28ce0dab4a7ecd93ef7bba45ddb20f768b450b",
25
25
  "main": "lib/index.js",
26
26
  "module": "src/index.js",
27
27
  "exports": {