@pie-element/math-templated 2.22.5-next.46 → 2.22.5-next.47

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.1",
11
+ "@pie-lib/pie-toolbox": "1.32.0",
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.1",
10
+ "@pie-lib/pie-toolbox": "1.32.0",
11
11
  "debug": "^3.1.0",
12
12
  "lodash": "^4.17.15"
13
13
  },
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.3/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.4/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_math_toolbar, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@4.24.3/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) {
@@ -43057,7 +43057,7 @@ mathjaxScript.initializeMathJax = mathjaxScript.MathJaxVersion = void 0;
43057
43057
  var _renderMath = renderMath$1;
43058
43058
  var MathJaxVersion = '3.2.2';
43059
43059
  mathjaxScript.MathJaxVersion = MathJaxVersion;
43060
- var initializeMathJax = function initializeMathJax(renderOpts, callback) {
43060
+ var initializeMathJax = function initializeMathJax(renderOpts) {
43061
43061
  if (renderOpts !== null && renderOpts !== void 0 && renderOpts.useSingleDollar) {
43062
43062
  console.warn('[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)');
43063
43063
  }
@@ -43081,61 +43081,56 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
43081
43081
  displayMath: [['$$', '$$'], ['\\[', '\\]']]
43082
43082
  };
43083
43083
  window.mathjaxLoadedP = new Promise(function (resolve) {
43084
- resolve();
43085
- });
43086
- window.MathJax = {
43087
- startup: {
43088
- typeset: false,
43089
- ready: function ready() {
43090
- var mathjax = MathJax._.mathjax.mathjax;
43091
- var STATE = MathJax._.core.MathItem.STATE;
43092
- var Menu = MathJax._.ui.menu.Menu.Menu;
43093
- var rerender = Menu.prototype.rerender;
43094
- Menu.prototype.rerender = function () {
43095
- var _this = this;
43096
- var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : STATE.TYPESET;
43097
- mathjax.handleRetriesFor(function () {
43098
- return rerender.call(_this, start);
43099
- });
43100
- };
43101
- MathJax.startup.defaultReady();
43102
- var globalObj = (0, _renderMath.getGlobal)();
43103
- globalObj.instance = MathJax;
43104
- window.mathjaxIsInitialised = true;
43105
- if (callback) {
43106
- callback();
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
+ resolve();
43107
43103
  }
43108
- }
43109
- },
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
43104
  },
43125
- menuOptions: {
43126
- settings: {
43127
- assistiveMml: true,
43128
- collapsible: false,
43129
- explorer: false
43105
+ loader: {
43106
+ load: ['input/mml']
43107
+ },
43108
+ tex: texConfig,
43109
+ chtml: {
43110
+ fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
43111
+ displayAlign: 'center'
43112
+ },
43113
+ customKey: '@pie-lib/math-rendering-accessible@1',
43114
+ options: {
43115
+ enableEnrichment: true,
43116
+ sre: {
43117
+ speech: 'deep'
43118
+ },
43119
+ menuOptions: {
43120
+ settings: {
43121
+ assistiveMml: true,
43122
+ collapsible: false,
43123
+ explorer: false
43124
+ }
43130
43125
  }
43131
43126
  }
43132
- }
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);
43127
+ };
43128
+ var script = document.createElement('script');
43129
+ script.type = 'text/javascript';
43130
+ script.src = ("https://cdn.jsdelivr.net/npm/mathjax@").concat(MathJaxVersion, "/es5/tex-chtml-full.js");
43131
+ script.async = true;
43132
+ document.body.appendChild(script);
43133
+ });
43139
43134
  };
43140
43135
  mathjaxScript.initializeMathJax = initializeMathJax;
43141
43136
  var normalization$1 = {};
@@ -102821,34 +102816,9 @@ getDefaultExportFromCjs(mathRendering);
102821
102816
  fixMathElements(executeOn);
102822
102817
  adjustMathMLStyle(executeOn);
102823
102818
  var mathJaxCustomKey = getMathJaxCustomKey();
102824
- var workingWithMathJax = function workingWithMathJax() {
102825
- var mathJaxInstance = getGlobal().instance;
102826
- if (mathJaxInstance) {
102827
- mathJaxInstance.texReset();
102828
- mathJaxInstance.typesetClear();
102829
- mathJaxInstance.typesetPromise([executeOn]).then(function () {
102830
- try {
102831
- removeExcessMjxContainers(executeOn);
102832
- removePlaceholdersAndRestoreDisplay();
102833
- var updatedDocument = mathJaxInstance.startup.document;
102834
- var list = updatedDocument.math.list;
102835
- for (var item = list.next; (0, _typeof2["default"])(item.data) !== 'symbol'; item = item.next) {
102836
- var mathMl = toMMl(item.data.root);
102837
- var parsedMathMl = mathMl.replaceAll('\n', '');
102838
- item.data.typesetRoot.setAttribute('data-mathml', parsedMathMl);
102839
- }
102840
- } catch (e) {
102841
- console.error('Error post-processing MathJax typesetting:', e.toString());
102842
- }
102843
- mathJaxInstance.startup.document.clear();
102844
- })["catch"](function (error) {
102845
- console.error('Error in typesetting with MathJax:', error);
102846
- });
102847
- }
102848
- };
102849
102819
  if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
102850
102820
  renderOpts = renderOpts || defaultOpts();
102851
- (0, _mathjaxScript.initializeMathJax)(renderOpts, workingWithMathJax);
102821
+ (0, _mathjaxScript.initializeMathJax)(renderOpts);
102852
102822
  }
102853
102823
  if (isString && window.MathJax && window.mathjaxLoadedP) {
102854
102824
  try {
@@ -102866,7 +102836,33 @@ getDefaultExportFromCjs(mathRendering);
102866
102836
  }
102867
102837
  }
102868
102838
  if (window.mathjaxLoadedP) {
102869
- workingWithMathJax();
102839
+ window.mathjaxLoadedP.then(function () {
102840
+ var mathJaxInstance = getGlobal().instance;
102841
+ if (mathJaxInstance) {
102842
+ mathJaxInstance.texReset();
102843
+ mathJaxInstance.typesetClear();
102844
+ mathJaxInstance.typesetPromise([executeOn]).then(function () {
102845
+ try {
102846
+ removeExcessMjxContainers(executeOn);
102847
+ removePlaceholdersAndRestoreDisplay();
102848
+ var _updatedDocument = mathJaxInstance.startup.document;
102849
+ var _list = _updatedDocument.math.list;
102850
+ for (var _item = _list.next; (0, _typeof2["default"])(_item.data) !== 'symbol'; _item = _item.next) {
102851
+ var _mathMl = toMMl(_item.data.root);
102852
+ var _parsedMathMl = _mathMl.replaceAll('\n', '');
102853
+ _item.data.typesetRoot.setAttribute('data-mathml', _parsedMathMl);
102854
+ }
102855
+ } catch (e) {
102856
+ console.error('Error post-processing MathJax typesetting:', e.toString());
102857
+ }
102858
+ mathJaxInstance.startup.document.clear();
102859
+ })["catch"](function (error) {
102860
+ console.error('Error in typesetting with MathJax:', error);
102861
+ });
102862
+ }
102863
+ })["catch"](function (error) {
102864
+ console.error('Error in initializing MathJax:', error);
102865
+ });
102870
102866
  }
102871
102867
  };
102872
102868
  if (skipWaitForMathRenderingLib) {
package/module/element.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_math_rendering_accessible, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.3/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_math_rendering_accessible, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.4/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@4.24.3/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) {
@@ -21852,7 +21852,7 @@ mathjaxScript.initializeMathJax = mathjaxScript.MathJaxVersion = void 0;
21852
21852
  var _renderMath = renderMath$2;
21853
21853
  var MathJaxVersion = '3.2.2';
21854
21854
  mathjaxScript.MathJaxVersion = MathJaxVersion;
21855
- var initializeMathJax = function initializeMathJax(renderOpts, callback) {
21855
+ var initializeMathJax = function initializeMathJax(renderOpts) {
21856
21856
  if (renderOpts !== null && renderOpts !== void 0 && renderOpts.useSingleDollar) {
21857
21857
  console.warn('[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)');
21858
21858
  }
@@ -21876,61 +21876,56 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
21876
21876
  displayMath: [['$$', '$$'], ['\\[', '\\]']]
21877
21877
  };
21878
21878
  window.mathjaxLoadedP = new Promise(function (resolve) {
21879
- resolve();
21880
- });
21881
- window.MathJax = {
21882
- startup: {
21883
- typeset: false,
21884
- ready: function ready() {
21885
- var mathjax = MathJax._.mathjax.mathjax;
21886
- var STATE = MathJax._.core.MathItem.STATE;
21887
- var Menu = MathJax._.ui.menu.Menu.Menu;
21888
- var rerender = Menu.prototype.rerender;
21889
- Menu.prototype.rerender = function () {
21890
- var _this = this;
21891
- var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : STATE.TYPESET;
21892
- mathjax.handleRetriesFor(function () {
21893
- return rerender.call(_this, start);
21894
- });
21895
- };
21896
- MathJax.startup.defaultReady();
21897
- var globalObj = (0, _renderMath.getGlobal)();
21898
- globalObj.instance = MathJax;
21899
- window.mathjaxIsInitialised = true;
21900
- if (callback) {
21901
- callback();
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
+ resolve();
21902
21898
  }
21903
- }
21904
- },
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
21899
  },
21920
- menuOptions: {
21921
- settings: {
21922
- assistiveMml: true,
21923
- collapsible: false,
21924
- explorer: false
21900
+ loader: {
21901
+ load: ['input/mml']
21902
+ },
21903
+ tex: texConfig,
21904
+ chtml: {
21905
+ fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
21906
+ displayAlign: 'center'
21907
+ },
21908
+ customKey: '@pie-lib/math-rendering-accessible@1',
21909
+ options: {
21910
+ enableEnrichment: true,
21911
+ sre: {
21912
+ speech: 'deep'
21913
+ },
21914
+ menuOptions: {
21915
+ settings: {
21916
+ assistiveMml: true,
21917
+ collapsible: false,
21918
+ explorer: false
21919
+ }
21925
21920
  }
21926
21921
  }
21927
- }
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);
21922
+ };
21923
+ var script = document.createElement('script');
21924
+ script.type = 'text/javascript';
21925
+ script.src = ("https://cdn.jsdelivr.net/npm/mathjax@").concat(MathJaxVersion, "/es5/tex-chtml-full.js");
21926
+ script.async = true;
21927
+ document.body.appendChild(script);
21928
+ });
21934
21929
  };
21935
21930
  mathjaxScript.initializeMathJax = initializeMathJax;
21936
21931
  var normalization$1 = {};
@@ -81756,34 +81751,9 @@ getDefaultExportFromCjs(mathRendering);
81756
81751
  fixMathElements(executeOn);
81757
81752
  adjustMathMLStyle(executeOn);
81758
81753
  var mathJaxCustomKey = getMathJaxCustomKey();
81759
- var workingWithMathJax = function workingWithMathJax() {
81760
- var mathJaxInstance = getGlobal().instance;
81761
- if (mathJaxInstance) {
81762
- mathJaxInstance.texReset();
81763
- mathJaxInstance.typesetClear();
81764
- mathJaxInstance.typesetPromise([executeOn]).then(function () {
81765
- try {
81766
- removeExcessMjxContainers(executeOn);
81767
- removePlaceholdersAndRestoreDisplay();
81768
- var updatedDocument = mathJaxInstance.startup.document;
81769
- var list = updatedDocument.math.list;
81770
- for (var item = list.next; (0, _typeof2["default"])(item.data) !== 'symbol'; item = item.next) {
81771
- var mathMl = toMMl(item.data.root);
81772
- var parsedMathMl = mathMl.replaceAll('\n', '');
81773
- item.data.typesetRoot.setAttribute('data-mathml', parsedMathMl);
81774
- }
81775
- } catch (e) {
81776
- console.error('Error post-processing MathJax typesetting:', e.toString());
81777
- }
81778
- mathJaxInstance.startup.document.clear();
81779
- })["catch"](function (error) {
81780
- console.error('Error in typesetting with MathJax:', error);
81781
- });
81782
- }
81783
- };
81784
81754
  if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
81785
81755
  renderOpts = renderOpts || defaultOpts();
81786
- (0, _mathjaxScript.initializeMathJax)(renderOpts, workingWithMathJax);
81756
+ (0, _mathjaxScript.initializeMathJax)(renderOpts);
81787
81757
  }
81788
81758
  if (isString && window.MathJax && window.mathjaxLoadedP) {
81789
81759
  try {
@@ -81801,7 +81771,33 @@ getDefaultExportFromCjs(mathRendering);
81801
81771
  }
81802
81772
  }
81803
81773
  if (window.mathjaxLoadedP) {
81804
- workingWithMathJax();
81774
+ window.mathjaxLoadedP.then(function () {
81775
+ var mathJaxInstance = getGlobal().instance;
81776
+ if (mathJaxInstance) {
81777
+ mathJaxInstance.texReset();
81778
+ mathJaxInstance.typesetClear();
81779
+ mathJaxInstance.typesetPromise([executeOn]).then(function () {
81780
+ try {
81781
+ removeExcessMjxContainers(executeOn);
81782
+ removePlaceholdersAndRestoreDisplay();
81783
+ var _updatedDocument = mathJaxInstance.startup.document;
81784
+ var _list = _updatedDocument.math.list;
81785
+ for (var _item = _list.next; (0, _typeof2["default"])(_item.data) !== 'symbol'; _item = _item.next) {
81786
+ var _mathMl = toMMl(_item.data.root);
81787
+ var _parsedMathMl = _mathMl.replaceAll('\n', '');
81788
+ _item.data.typesetRoot.setAttribute('data-mathml', _parsedMathMl);
81789
+ }
81790
+ } catch (e) {
81791
+ console.error('Error post-processing MathJax typesetting:', e.toString());
81792
+ }
81793
+ mathJaxInstance.startup.document.clear();
81794
+ })["catch"](function (error) {
81795
+ console.error('Error in typesetting with MathJax:', error);
81796
+ });
81797
+ }
81798
+ })["catch"](function (error) {
81799
+ console.error('Error in initializing MathJax:', error);
81800
+ });
81805
81801
  }
81806
81802
  };
81807
81803
  if (skipWaitForMathRenderingLib) {
@@ -123893,7 +123889,7 @@ const require$$13 = _dll_react_dom;
123893
123889
  transform: 'translate(0, 0)'
123894
123890
  },
123895
123891
  chip: {
123896
- backgroundColor: _renderUi.color.background(),
123892
+ backgroundColor: _renderUi.color.white(),
123897
123893
  border: ("1px solid ").concat(_renderUi.color.text()),
123898
123894
  color: _renderUi.color.text(),
123899
123895
  alignItems: 'center',
@@ -123913,7 +123909,9 @@ const require$$13 = _dll_react_dom;
123913
123909
  padding: '2px 0'
123914
123910
  }
123915
123911
  },
123916
- disabled: {}
123912
+ disabled: {
123913
+ opacity: 0.6
123914
+ }
123917
123915
  };
123918
123916
  })(BlankContentComp);
123919
123917
  exports.BlankContent = BlankContent;
@@ -4,7 +4,7 @@
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
- "version": "1.24.3"
7
+ "version": "1.24.4"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
package/module/print.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_math_rendering_accessible, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.3/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_math_rendering_accessible, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.4/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@4.24.3/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) {
@@ -21815,7 +21815,7 @@ mathjaxScript.initializeMathJax = mathjaxScript.MathJaxVersion = void 0;
21815
21815
  var _renderMath = renderMath$3;
21816
21816
  var MathJaxVersion = '3.2.2';
21817
21817
  mathjaxScript.MathJaxVersion = MathJaxVersion;
21818
- var initializeMathJax = function initializeMathJax(renderOpts, callback) {
21818
+ var initializeMathJax = function initializeMathJax(renderOpts) {
21819
21819
  if (renderOpts !== null && renderOpts !== void 0 && renderOpts.useSingleDollar) {
21820
21820
  console.warn('[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)');
21821
21821
  }
@@ -21839,61 +21839,56 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
21839
21839
  displayMath: [['$$', '$$'], ['\\[', '\\]']]
21840
21840
  };
21841
21841
  window.mathjaxLoadedP = new Promise(function (resolve) {
21842
- resolve();
21843
- });
21844
- window.MathJax = {
21845
- startup: {
21846
- typeset: false,
21847
- ready: function ready() {
21848
- var mathjax = MathJax._.mathjax.mathjax;
21849
- var STATE = MathJax._.core.MathItem.STATE;
21850
- var Menu = MathJax._.ui.menu.Menu.Menu;
21851
- var rerender = Menu.prototype.rerender;
21852
- Menu.prototype.rerender = function () {
21853
- var _this = this;
21854
- var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : STATE.TYPESET;
21855
- mathjax.handleRetriesFor(function () {
21856
- return rerender.call(_this, start);
21857
- });
21858
- };
21859
- MathJax.startup.defaultReady();
21860
- var globalObj = (0, _renderMath.getGlobal)();
21861
- globalObj.instance = MathJax;
21862
- window.mathjaxIsInitialised = true;
21863
- if (callback) {
21864
- callback();
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
+ resolve();
21865
21861
  }
21866
- }
21867
- },
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
21862
  },
21883
- menuOptions: {
21884
- settings: {
21885
- assistiveMml: true,
21886
- collapsible: false,
21887
- explorer: false
21863
+ loader: {
21864
+ load: ['input/mml']
21865
+ },
21866
+ tex: texConfig,
21867
+ chtml: {
21868
+ fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
21869
+ displayAlign: 'center'
21870
+ },
21871
+ customKey: '@pie-lib/math-rendering-accessible@1',
21872
+ options: {
21873
+ enableEnrichment: true,
21874
+ sre: {
21875
+ speech: 'deep'
21876
+ },
21877
+ menuOptions: {
21878
+ settings: {
21879
+ assistiveMml: true,
21880
+ collapsible: false,
21881
+ explorer: false
21882
+ }
21888
21883
  }
21889
21884
  }
21890
- }
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);
21885
+ };
21886
+ var script = document.createElement('script');
21887
+ script.type = 'text/javascript';
21888
+ script.src = ("https://cdn.jsdelivr.net/npm/mathjax@").concat(MathJaxVersion, "/es5/tex-chtml-full.js");
21889
+ script.async = true;
21890
+ document.body.appendChild(script);
21891
+ });
21897
21892
  };
21898
21893
  mathjaxScript.initializeMathJax = initializeMathJax;
21899
21894
  var normalization$1 = {};
@@ -81719,34 +81714,9 @@ getDefaultExportFromCjs(mathRendering);
81719
81714
  fixMathElements(executeOn);
81720
81715
  adjustMathMLStyle(executeOn);
81721
81716
  var mathJaxCustomKey = getMathJaxCustomKey();
81722
- var workingWithMathJax = function workingWithMathJax() {
81723
- var mathJaxInstance = getGlobal().instance;
81724
- if (mathJaxInstance) {
81725
- mathJaxInstance.texReset();
81726
- mathJaxInstance.typesetClear();
81727
- mathJaxInstance.typesetPromise([executeOn]).then(function () {
81728
- try {
81729
- removeExcessMjxContainers(executeOn);
81730
- removePlaceholdersAndRestoreDisplay();
81731
- var updatedDocument = mathJaxInstance.startup.document;
81732
- var list = updatedDocument.math.list;
81733
- for (var item = list.next; (0, _typeof2["default"])(item.data) !== 'symbol'; item = item.next) {
81734
- var mathMl = toMMl(item.data.root);
81735
- var parsedMathMl = mathMl.replaceAll('\n', '');
81736
- item.data.typesetRoot.setAttribute('data-mathml', parsedMathMl);
81737
- }
81738
- } catch (e) {
81739
- console.error('Error post-processing MathJax typesetting:', e.toString());
81740
- }
81741
- mathJaxInstance.startup.document.clear();
81742
- })["catch"](function (error) {
81743
- console.error('Error in typesetting with MathJax:', error);
81744
- });
81745
- }
81746
- };
81747
81717
  if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
81748
81718
  renderOpts = renderOpts || defaultOpts();
81749
- (0, _mathjaxScript.initializeMathJax)(renderOpts, workingWithMathJax);
81719
+ (0, _mathjaxScript.initializeMathJax)(renderOpts);
81750
81720
  }
81751
81721
  if (isString && window.MathJax && window.mathjaxLoadedP) {
81752
81722
  try {
@@ -81764,7 +81734,33 @@ getDefaultExportFromCjs(mathRendering);
81764
81734
  }
81765
81735
  }
81766
81736
  if (window.mathjaxLoadedP) {
81767
- workingWithMathJax();
81737
+ window.mathjaxLoadedP.then(function () {
81738
+ var mathJaxInstance = getGlobal().instance;
81739
+ if (mathJaxInstance) {
81740
+ mathJaxInstance.texReset();
81741
+ mathJaxInstance.typesetClear();
81742
+ mathJaxInstance.typesetPromise([executeOn]).then(function () {
81743
+ try {
81744
+ removeExcessMjxContainers(executeOn);
81745
+ removePlaceholdersAndRestoreDisplay();
81746
+ var _updatedDocument = mathJaxInstance.startup.document;
81747
+ var _list = _updatedDocument.math.list;
81748
+ for (var _item = _list.next; (0, _typeof2["default"])(_item.data) !== 'symbol'; _item = _item.next) {
81749
+ var _mathMl = toMMl(_item.data.root);
81750
+ var _parsedMathMl = _mathMl.replaceAll('\n', '');
81751
+ _item.data.typesetRoot.setAttribute('data-mathml', _parsedMathMl);
81752
+ }
81753
+ } catch (e) {
81754
+ console.error('Error post-processing MathJax typesetting:', e.toString());
81755
+ }
81756
+ mathJaxInstance.startup.document.clear();
81757
+ })["catch"](function (error) {
81758
+ console.error('Error in typesetting with MathJax:', error);
81759
+ });
81760
+ }
81761
+ })["catch"](function (error) {
81762
+ console.error('Error in initializing MathJax:', error);
81763
+ });
81768
81764
  }
81769
81765
  };
81770
81766
  if (skipWaitForMathRenderingLib) {
@@ -123856,7 +123852,7 @@ const require$$13 = _dll_react_dom;
123856
123852
  transform: 'translate(0, 0)'
123857
123853
  },
123858
123854
  chip: {
123859
- backgroundColor: _renderUi.color.background(),
123855
+ backgroundColor: _renderUi.color.white(),
123860
123856
  border: ("1px solid ").concat(_renderUi.color.text()),
123861
123857
  color: _renderUi.color.text(),
123862
123858
  alignItems: 'center',
@@ -123876,7 +123872,9 @@ const require$$13 = _dll_react_dom;
123876
123872
  padding: '2px 0'
123877
123873
  }
123878
123874
  },
123879
- disabled: {}
123875
+ disabled: {
123876
+ opacity: 0.6
123877
+ }
123880
123878
  };
123881
123879
  })(BlankContentComp);
123882
123880
  exports.BlankContent = BlankContent;
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.46+d62f2b452",
7
+ "version": "2.22.5-next.47+68306be02",
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.1",
12
+ "@pie-lib/pie-toolbox": "1.32.0",
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": "d62f2b4526eeda1f90d3660d97bf278ac1ae72da",
19
+ "gitHead": "68306be02254a6019916637fd9b75427cae1c0ed",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },