@pie-element/math-templated 2.22.5-next.44 → 2.22.5-next.45

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": "1.31.5-next.4",
11
+ "@pie-lib/pie-toolbox": "1.31.5-next.6",
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": "1.31.5-next.4",
10
+ "@pie-lib/pie-toolbox": "1.31.5-next.6",
11
11
  "debug": "^3.1.0",
12
12
  "lodash": "^4.17.15"
13
13
  },
@@ -43080,63 +43080,60 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
43080
43080
  },
43081
43081
  displayMath: [['$$', '$$'], ['\\[', '\\]']]
43082
43082
  };
43083
- window.mathjaxLoadedP = new Promise(function (resolve) {
43084
- window.MathJax = {
43085
- startup: {
43086
- typeset: false,
43087
- ready: function ready() {
43088
- var mathjax = MathJax._.mathjax.mathjax;
43089
- var STATE = MathJax._.core.MathItem.STATE;
43090
- var Menu = MathJax._.ui.menu.Menu.Menu;
43091
- var rerender = Menu.prototype.rerender;
43092
- Menu.prototype.rerender = function () {
43093
- var _this = this;
43094
- var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : STATE.TYPESET;
43095
- mathjax.handleRetriesFor(function () {
43096
- return rerender.call(_this, start);
43097
- });
43098
- };
43099
- MathJax.startup.defaultReady();
43100
- var globalObj = (0, _renderMath.getGlobal)();
43101
- globalObj.instance = MathJax;
43102
- window.mathjaxIsInitialised = true;
43103
- if (callback) {
43104
- callback();
43105
- } else {
43106
- resolve();
43107
- }
43083
+ window.mathjaxInitialising = true;
43084
+ window.MathJax = {
43085
+ startup: {
43086
+ typeset: false,
43087
+ ready: function ready() {
43088
+ var mathjax = MathJax._.mathjax.mathjax;
43089
+ var STATE = MathJax._.core.MathItem.STATE;
43090
+ var Menu = MathJax._.ui.menu.Menu.Menu;
43091
+ var rerender = Menu.prototype.rerender;
43092
+ Menu.prototype.rerender = function () {
43093
+ var _this = this;
43094
+ var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : STATE.TYPESET;
43095
+ mathjax.handleRetriesFor(function () {
43096
+ return rerender.call(_this, start);
43097
+ });
43098
+ };
43099
+ MathJax.startup.defaultReady();
43100
+ var globalObj = (0, _renderMath.getGlobal)();
43101
+ globalObj.instance = MathJax;
43102
+ window.mathjaxIsInitialised = true;
43103
+ if (callback) {
43104
+ callback();
43108
43105
  }
43106
+ }
43107
+ },
43108
+ loader: {
43109
+ load: ['input/mml'],
43110
+ preLoad: function preLoad() {}
43111
+ },
43112
+ tex: texConfig,
43113
+ chtml: {
43114
+ fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
43115
+ displayAlign: 'center'
43116
+ },
43117
+ customKey: '@pie-lib/math-rendering-accessible@1',
43118
+ options: {
43119
+ enableEnrichment: true,
43120
+ sre: {
43121
+ speech: 'deep'
43109
43122
  },
43110
- loader: {
43111
- load: ['input/mml'],
43112
- preLoad: function preLoad() {}
43113
- },
43114
- tex: texConfig,
43115
- chtml: {
43116
- fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
43117
- displayAlign: 'center'
43118
- },
43119
- customKey: '@pie-lib/math-rendering-accessible@1',
43120
- options: {
43121
- enableEnrichment: true,
43122
- sre: {
43123
- speech: 'deep'
43124
- },
43125
- menuOptions: {
43126
- settings: {
43127
- assistiveMml: true,
43128
- collapsible: false,
43129
- explorer: false
43130
- }
43123
+ menuOptions: {
43124
+ settings: {
43125
+ assistiveMml: true,
43126
+ collapsible: false,
43127
+ explorer: false
43131
43128
  }
43132
43129
  }
43133
- };
43134
- var script = document.createElement('script');
43135
- script.type = 'text/javascript';
43136
- script.src = ("https://cdn.jsdelivr.net/npm/mathjax@").concat(MathJaxVersion, "/es5/tex-chtml-full.js");
43137
- script.async = true;
43138
- document.body.appendChild(script);
43139
- });
43130
+ }
43131
+ };
43132
+ var script = document.createElement('script');
43133
+ script.type = 'text/javascript';
43134
+ script.src = ("https://cdn.jsdelivr.net/npm/mathjax@").concat(MathJaxVersion, "/es5/tex-chtml-full.js");
43135
+ script.async = true;
43136
+ document.body.appendChild(script);
43140
43137
  };
43141
43138
  mathjaxScript.initializeMathJax = initializeMathJax;
43142
43139
  var normalization$1 = {};
@@ -102847,7 +102844,7 @@ getDefaultExportFromCjs(mathRendering);
102847
102844
  });
102848
102845
  }
102849
102846
  };
102850
- if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
102847
+ if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxInitialising || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
102851
102848
  renderOpts = renderOpts || defaultOpts();
102852
102849
  (0, _mathjaxScript.initializeMathJax)(renderOpts, workingWithMathJax);
102853
102850
  }
package/module/element.js CHANGED
@@ -21875,63 +21875,60 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
21875
21875
  },
21876
21876
  displayMath: [['$$', '$$'], ['\\[', '\\]']]
21877
21877
  };
21878
- window.mathjaxLoadedP = new Promise(function (resolve) {
21879
- window.MathJax = {
21880
- startup: {
21881
- typeset: false,
21882
- ready: function ready() {
21883
- var mathjax = MathJax._.mathjax.mathjax;
21884
- var STATE = MathJax._.core.MathItem.STATE;
21885
- var Menu = MathJax._.ui.menu.Menu.Menu;
21886
- var rerender = Menu.prototype.rerender;
21887
- Menu.prototype.rerender = function () {
21888
- var _this = this;
21889
- var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : STATE.TYPESET;
21890
- mathjax.handleRetriesFor(function () {
21891
- return rerender.call(_this, start);
21892
- });
21893
- };
21894
- MathJax.startup.defaultReady();
21895
- var globalObj = (0, _renderMath.getGlobal)();
21896
- globalObj.instance = MathJax;
21897
- window.mathjaxIsInitialised = true;
21898
- if (callback) {
21899
- callback();
21900
- } else {
21901
- resolve();
21902
- }
21878
+ window.mathjaxInitialising = true;
21879
+ window.MathJax = {
21880
+ startup: {
21881
+ typeset: false,
21882
+ ready: function ready() {
21883
+ var mathjax = MathJax._.mathjax.mathjax;
21884
+ var STATE = MathJax._.core.MathItem.STATE;
21885
+ var Menu = MathJax._.ui.menu.Menu.Menu;
21886
+ var rerender = Menu.prototype.rerender;
21887
+ Menu.prototype.rerender = function () {
21888
+ var _this = this;
21889
+ var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : STATE.TYPESET;
21890
+ mathjax.handleRetriesFor(function () {
21891
+ return rerender.call(_this, start);
21892
+ });
21893
+ };
21894
+ MathJax.startup.defaultReady();
21895
+ var globalObj = (0, _renderMath.getGlobal)();
21896
+ globalObj.instance = MathJax;
21897
+ window.mathjaxIsInitialised = true;
21898
+ if (callback) {
21899
+ callback();
21903
21900
  }
21901
+ }
21902
+ },
21903
+ loader: {
21904
+ load: ['input/mml'],
21905
+ preLoad: function preLoad() {}
21906
+ },
21907
+ tex: texConfig,
21908
+ chtml: {
21909
+ fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
21910
+ displayAlign: 'center'
21911
+ },
21912
+ customKey: '@pie-lib/math-rendering-accessible@1',
21913
+ options: {
21914
+ enableEnrichment: true,
21915
+ sre: {
21916
+ speech: 'deep'
21904
21917
  },
21905
- loader: {
21906
- load: ['input/mml'],
21907
- preLoad: function preLoad() {}
21908
- },
21909
- tex: texConfig,
21910
- chtml: {
21911
- fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
21912
- displayAlign: 'center'
21913
- },
21914
- customKey: '@pie-lib/math-rendering-accessible@1',
21915
- options: {
21916
- enableEnrichment: true,
21917
- sre: {
21918
- speech: 'deep'
21919
- },
21920
- menuOptions: {
21921
- settings: {
21922
- assistiveMml: true,
21923
- collapsible: false,
21924
- explorer: false
21925
- }
21918
+ menuOptions: {
21919
+ settings: {
21920
+ assistiveMml: true,
21921
+ collapsible: false,
21922
+ explorer: false
21926
21923
  }
21927
21924
  }
21928
- };
21929
- var script = document.createElement('script');
21930
- script.type = 'text/javascript';
21931
- script.src = ("https://cdn.jsdelivr.net/npm/mathjax@").concat(MathJaxVersion, "/es5/tex-chtml-full.js");
21932
- script.async = true;
21933
- document.body.appendChild(script);
21934
- });
21925
+ }
21926
+ };
21927
+ var script = document.createElement('script');
21928
+ script.type = 'text/javascript';
21929
+ script.src = ("https://cdn.jsdelivr.net/npm/mathjax@").concat(MathJaxVersion, "/es5/tex-chtml-full.js");
21930
+ script.async = true;
21931
+ document.body.appendChild(script);
21935
21932
  };
21936
21933
  mathjaxScript.initializeMathJax = initializeMathJax;
21937
21934
  var normalization$1 = {};
@@ -81782,7 +81779,7 @@ getDefaultExportFromCjs(mathRendering);
81782
81779
  });
81783
81780
  }
81784
81781
  };
81785
- if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
81782
+ if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxInitialising || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
81786
81783
  renderOpts = renderOpts || defaultOpts();
81787
81784
  (0, _mathjaxScript.initializeMathJax)(renderOpts, workingWithMathJax);
81788
81785
  }
package/module/print.js CHANGED
@@ -21838,63 +21838,60 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
21838
21838
  },
21839
21839
  displayMath: [['$$', '$$'], ['\\[', '\\]']]
21840
21840
  };
21841
- window.mathjaxLoadedP = new Promise(function (resolve) {
21842
- window.MathJax = {
21843
- startup: {
21844
- typeset: false,
21845
- ready: function ready() {
21846
- var mathjax = MathJax._.mathjax.mathjax;
21847
- var STATE = MathJax._.core.MathItem.STATE;
21848
- var Menu = MathJax._.ui.menu.Menu.Menu;
21849
- var rerender = Menu.prototype.rerender;
21850
- Menu.prototype.rerender = function () {
21851
- var _this = this;
21852
- var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : STATE.TYPESET;
21853
- mathjax.handleRetriesFor(function () {
21854
- return rerender.call(_this, start);
21855
- });
21856
- };
21857
- MathJax.startup.defaultReady();
21858
- var globalObj = (0, _renderMath.getGlobal)();
21859
- globalObj.instance = MathJax;
21860
- window.mathjaxIsInitialised = true;
21861
- if (callback) {
21862
- callback();
21863
- } else {
21864
- resolve();
21865
- }
21841
+ window.mathjaxInitialising = true;
21842
+ window.MathJax = {
21843
+ startup: {
21844
+ typeset: false,
21845
+ ready: function ready() {
21846
+ var mathjax = MathJax._.mathjax.mathjax;
21847
+ var STATE = MathJax._.core.MathItem.STATE;
21848
+ var Menu = MathJax._.ui.menu.Menu.Menu;
21849
+ var rerender = Menu.prototype.rerender;
21850
+ Menu.prototype.rerender = function () {
21851
+ var _this = this;
21852
+ var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : STATE.TYPESET;
21853
+ mathjax.handleRetriesFor(function () {
21854
+ return rerender.call(_this, start);
21855
+ });
21856
+ };
21857
+ MathJax.startup.defaultReady();
21858
+ var globalObj = (0, _renderMath.getGlobal)();
21859
+ globalObj.instance = MathJax;
21860
+ window.mathjaxIsInitialised = true;
21861
+ if (callback) {
21862
+ callback();
21866
21863
  }
21864
+ }
21865
+ },
21866
+ loader: {
21867
+ load: ['input/mml'],
21868
+ preLoad: function preLoad() {}
21869
+ },
21870
+ tex: texConfig,
21871
+ chtml: {
21872
+ fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
21873
+ displayAlign: 'center'
21874
+ },
21875
+ customKey: '@pie-lib/math-rendering-accessible@1',
21876
+ options: {
21877
+ enableEnrichment: true,
21878
+ sre: {
21879
+ speech: 'deep'
21867
21880
  },
21868
- loader: {
21869
- load: ['input/mml'],
21870
- preLoad: function preLoad() {}
21871
- },
21872
- tex: texConfig,
21873
- chtml: {
21874
- fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
21875
- displayAlign: 'center'
21876
- },
21877
- customKey: '@pie-lib/math-rendering-accessible@1',
21878
- options: {
21879
- enableEnrichment: true,
21880
- sre: {
21881
- speech: 'deep'
21882
- },
21883
- menuOptions: {
21884
- settings: {
21885
- assistiveMml: true,
21886
- collapsible: false,
21887
- explorer: false
21888
- }
21881
+ menuOptions: {
21882
+ settings: {
21883
+ assistiveMml: true,
21884
+ collapsible: false,
21885
+ explorer: false
21889
21886
  }
21890
21887
  }
21891
- };
21892
- var script = document.createElement('script');
21893
- script.type = 'text/javascript';
21894
- script.src = ("https://cdn.jsdelivr.net/npm/mathjax@").concat(MathJaxVersion, "/es5/tex-chtml-full.js");
21895
- script.async = true;
21896
- document.body.appendChild(script);
21897
- });
21888
+ }
21889
+ };
21890
+ var script = document.createElement('script');
21891
+ script.type = 'text/javascript';
21892
+ script.src = ("https://cdn.jsdelivr.net/npm/mathjax@").concat(MathJaxVersion, "/es5/tex-chtml-full.js");
21893
+ script.async = true;
21894
+ document.body.appendChild(script);
21898
21895
  };
21899
21896
  mathjaxScript.initializeMathJax = initializeMathJax;
21900
21897
  var normalization$1 = {};
@@ -81745,7 +81742,7 @@ getDefaultExportFromCjs(mathRendering);
81745
81742
  });
81746
81743
  }
81747
81744
  };
81748
- if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
81745
+ if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxInitialising || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
81749
81746
  renderOpts = renderOpts || defaultOpts();
81750
81747
  (0, _mathjaxScript.initializeMathJax)(renderOpts, workingWithMathJax);
81751
81748
  }
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.44+a2e933cd2",
7
+ "version": "2.22.5-next.45+d9487a539",
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.4",
12
+ "@pie-lib/pie-toolbox": "1.31.5-next.6",
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": "a2e933cd27bb052046e245672d3e01cb5ba1b518",
19
+ "gitHead": "d9487a5394c9b71bb7d7d69a836ed629ae13f7b1",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },