@pie-element/math-templated 3.1.2-next.49 → 3.1.2-next.51

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.0.12",
11
+ "@pie-lib/pie-toolbox": "2.0.13",
12
12
  "debug": "^3.1.0",
13
13
  "lodash": "^4.17.15",
14
14
  "prop-types": "^15.6.2",
@@ -7,7 +7,7 @@
7
7
  "module": "src/index.js",
8
8
  "dependencies": {
9
9
  "@pie-framework/math-validation": "^1.2.2",
10
- "@pie-lib/pie-toolbox": "2.0.12",
10
+ "@pie-lib/pie-toolbox": "2.0.13",
11
11
  "debug": "^3.1.0",
12
12
  "lodash": "^4.17.15"
13
13
  },
@@ -50118,6 +50118,15 @@ TexError$1.default = TexError;
50118
50118
  }
50119
50119
  });
50120
50120
  };
50121
+ var renderContentsWithMathJax = function renderContentsWithMathJax(el) {
50122
+ if (el instanceof Array) {
50123
+ el.forEach(function (elNode) {
50124
+ return renderContentWithMathJax(elNode);
50125
+ });
50126
+ } else {
50127
+ renderContentWithMathJax(el);
50128
+ }
50129
+ };
50121
50130
  var renderContentWithMathJax = function renderContentWithMathJax(executeOn) {
50122
50131
  executeOn = executeOn || document.body;
50123
50132
  if (!(executeOn instanceof HTMLElement)) return;
@@ -50315,11 +50324,11 @@ TexError$1.default = TexError;
50315
50324
  var executeOn = document.body;
50316
50325
  if (!usedForMmlOutput) {
50317
50326
  if (window.mathjaxLoadedComplete) {
50318
- renderContentWithMathJax(el);
50327
+ renderContentsWithMathJax(el);
50319
50328
  } else if (window.mathjaxLoadedP) {
50320
50329
  window.mathjaxLoadedP.then(function () {
50321
50330
  window.mathjaxLoadedComplete = true;
50322
- renderContentWithMathJax(el);
50331
+ renderContentsWithMathJax(el);
50323
50332
  })["catch"](function (error) {
50324
50333
  return console.error("Error in initializing MathJax:", error);
50325
50334
  });
package/module/element.js CHANGED
@@ -29008,6 +29008,15 @@ TexError$1.default = TexError;
29008
29008
  }
29009
29009
  });
29010
29010
  };
29011
+ var renderContentsWithMathJax = function renderContentsWithMathJax(el) {
29012
+ if (el instanceof Array) {
29013
+ el.forEach(function (elNode) {
29014
+ return renderContentWithMathJax(elNode);
29015
+ });
29016
+ } else {
29017
+ renderContentWithMathJax(el);
29018
+ }
29019
+ };
29011
29020
  var renderContentWithMathJax = function renderContentWithMathJax(executeOn) {
29012
29021
  executeOn = executeOn || document.body;
29013
29022
  if (!(executeOn instanceof HTMLElement)) return;
@@ -29205,11 +29214,11 @@ TexError$1.default = TexError;
29205
29214
  var executeOn = document.body;
29206
29215
  if (!usedForMmlOutput) {
29207
29216
  if (window.mathjaxLoadedComplete) {
29208
- renderContentWithMathJax(el);
29217
+ renderContentsWithMathJax(el);
29209
29218
  } else if (window.mathjaxLoadedP) {
29210
29219
  window.mathjaxLoadedP.then(function () {
29211
29220
  window.mathjaxLoadedComplete = true;
29212
- renderContentWithMathJax(el);
29221
+ renderContentsWithMathJax(el);
29213
29222
  })["catch"](function (error) {
29214
29223
  return console.error("Error in initializing MathJax:", error);
29215
29224
  });
package/module/print.js CHANGED
@@ -28971,6 +28971,15 @@ TexError$1.default = TexError;
28971
28971
  }
28972
28972
  });
28973
28973
  };
28974
+ var renderContentsWithMathJax = function renderContentsWithMathJax(el) {
28975
+ if (el instanceof Array) {
28976
+ el.forEach(function (elNode) {
28977
+ return renderContentWithMathJax(elNode);
28978
+ });
28979
+ } else {
28980
+ renderContentWithMathJax(el);
28981
+ }
28982
+ };
28974
28983
  var renderContentWithMathJax = function renderContentWithMathJax(executeOn) {
28975
28984
  executeOn = executeOn || document.body;
28976
28985
  if (!(executeOn instanceof HTMLElement)) return;
@@ -29168,11 +29177,11 @@ TexError$1.default = TexError;
29168
29177
  var executeOn = document.body;
29169
29178
  if (!usedForMmlOutput) {
29170
29179
  if (window.mathjaxLoadedComplete) {
29171
- renderContentWithMathJax(el);
29180
+ renderContentsWithMathJax(el);
29172
29181
  } else if (window.mathjaxLoadedP) {
29173
29182
  window.mathjaxLoadedP.then(function () {
29174
29183
  window.mathjaxLoadedComplete = true;
29175
- renderContentWithMathJax(el);
29184
+ renderContentsWithMathJax(el);
29176
29185
  })["catch"](function (error) {
29177
29186
  return console.error("Error in initializing MathJax:", error);
29178
29187
  });
package/package.json CHANGED
@@ -4,19 +4,19 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "3.1.2-next.49+2f5bb5932",
7
+ "version": "3.1.2-next.51+6b68a7880",
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.0.12",
12
+ "@pie-lib/pie-toolbox": "2.0.13",
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": "2f5bb59320c2e864d1e1a08f80ccc548d256e260",
19
+ "gitHead": "6b68a7880050f8c071db1d01e9c215914e95a6aa",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },