@pie-element/math-templated 2.22.5-next.45 → 2.22.5-next.46
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/configure/package.json +1 -1
- package/controller/package.json +1 -1
- package/module/configure.js +6 -4
- package/module/element.js +6 -4
- package/module/print.js +6 -4
- package/package.json +3 -3
package/configure/package.json
CHANGED
|
@@ -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": "1.31.5-next.
|
|
11
|
+
"@pie-lib/pie-toolbox": "1.31.5-next.1",
|
|
12
12
|
"debug": "^3.1.0",
|
|
13
13
|
"lodash": "^4.17.15",
|
|
14
14
|
"prop-types": "^15.6.2",
|
package/controller/package.json
CHANGED
package/module/configure.js
CHANGED
|
@@ -43080,7 +43080,9 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
|
|
|
43080
43080
|
},
|
|
43081
43081
|
displayMath: [['$$', '$$'], ['\\[', '\\]']]
|
|
43082
43082
|
};
|
|
43083
|
-
window.
|
|
43083
|
+
window.mathjaxLoadedP = new Promise(function (resolve) {
|
|
43084
|
+
resolve();
|
|
43085
|
+
});
|
|
43084
43086
|
window.MathJax = {
|
|
43085
43087
|
startup: {
|
|
43086
43088
|
typeset: false,
|
|
@@ -102844,11 +102846,11 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
102844
102846
|
});
|
|
102845
102847
|
}
|
|
102846
102848
|
};
|
|
102847
|
-
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.
|
|
102849
|
+
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
102848
102850
|
renderOpts = renderOpts || defaultOpts();
|
|
102849
102851
|
(0, _mathjaxScript.initializeMathJax)(renderOpts, workingWithMathJax);
|
|
102850
102852
|
}
|
|
102851
|
-
if (isString && window.MathJax && window.
|
|
102853
|
+
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
102852
102854
|
try {
|
|
102853
102855
|
MathJax.texReset();
|
|
102854
102856
|
MathJax.typesetClear();
|
|
@@ -102863,7 +102865,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
102863
102865
|
console.error('Error rendering math:', error.message);
|
|
102864
102866
|
}
|
|
102865
102867
|
}
|
|
102866
|
-
if (window.
|
|
102868
|
+
if (window.mathjaxLoadedP) {
|
|
102867
102869
|
workingWithMathJax();
|
|
102868
102870
|
}
|
|
102869
102871
|
};
|
package/module/element.js
CHANGED
|
@@ -21875,7 +21875,9 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
|
|
|
21875
21875
|
},
|
|
21876
21876
|
displayMath: [['$$', '$$'], ['\\[', '\\]']]
|
|
21877
21877
|
};
|
|
21878
|
-
window.
|
|
21878
|
+
window.mathjaxLoadedP = new Promise(function (resolve) {
|
|
21879
|
+
resolve();
|
|
21880
|
+
});
|
|
21879
21881
|
window.MathJax = {
|
|
21880
21882
|
startup: {
|
|
21881
21883
|
typeset: false,
|
|
@@ -81779,11 +81781,11 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
81779
81781
|
});
|
|
81780
81782
|
}
|
|
81781
81783
|
};
|
|
81782
|
-
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.
|
|
81784
|
+
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
81783
81785
|
renderOpts = renderOpts || defaultOpts();
|
|
81784
81786
|
(0, _mathjaxScript.initializeMathJax)(renderOpts, workingWithMathJax);
|
|
81785
81787
|
}
|
|
81786
|
-
if (isString && window.MathJax && window.
|
|
81788
|
+
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
81787
81789
|
try {
|
|
81788
81790
|
MathJax.texReset();
|
|
81789
81791
|
MathJax.typesetClear();
|
|
@@ -81798,7 +81800,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
81798
81800
|
console.error('Error rendering math:', error.message);
|
|
81799
81801
|
}
|
|
81800
81802
|
}
|
|
81801
|
-
if (window.
|
|
81803
|
+
if (window.mathjaxLoadedP) {
|
|
81802
81804
|
workingWithMathJax();
|
|
81803
81805
|
}
|
|
81804
81806
|
};
|
package/module/print.js
CHANGED
|
@@ -21838,7 +21838,9 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
|
|
|
21838
21838
|
},
|
|
21839
21839
|
displayMath: [['$$', '$$'], ['\\[', '\\]']]
|
|
21840
21840
|
};
|
|
21841
|
-
window.
|
|
21841
|
+
window.mathjaxLoadedP = new Promise(function (resolve) {
|
|
21842
|
+
resolve();
|
|
21843
|
+
});
|
|
21842
21844
|
window.MathJax = {
|
|
21843
21845
|
startup: {
|
|
21844
21846
|
typeset: false,
|
|
@@ -81742,11 +81744,11 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
81742
81744
|
});
|
|
81743
81745
|
}
|
|
81744
81746
|
};
|
|
81745
|
-
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.
|
|
81747
|
+
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
81746
81748
|
renderOpts = renderOpts || defaultOpts();
|
|
81747
81749
|
(0, _mathjaxScript.initializeMathJax)(renderOpts, workingWithMathJax);
|
|
81748
81750
|
}
|
|
81749
|
-
if (isString && window.MathJax && window.
|
|
81751
|
+
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
81750
81752
|
try {
|
|
81751
81753
|
MathJax.texReset();
|
|
81752
81754
|
MathJax.typesetClear();
|
|
@@ -81761,7 +81763,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
81761
81763
|
console.error('Error rendering math:', error.message);
|
|
81762
81764
|
}
|
|
81763
81765
|
}
|
|
81764
|
-
if (window.
|
|
81766
|
+
if (window.mathjaxLoadedP) {
|
|
81765
81767
|
workingWithMathJax();
|
|
81766
81768
|
}
|
|
81767
81769
|
};
|
package/package.json
CHANGED
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "2.22.5-next.
|
|
7
|
+
"version": "2.22.5-next.46+d62f2b452",
|
|
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.31.5-next.
|
|
12
|
+
"@pie-lib/pie-toolbox": "1.31.5-next.1",
|
|
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": "
|
|
19
|
+
"gitHead": "d62f2b4526eeda1f90d3660d97bf278ac1ae72da",
|
|
20
20
|
"scripts": {
|
|
21
21
|
"postpublish": "../../scripts/postpublish"
|
|
22
22
|
},
|