@pie-element/complex-rubric 2.19.5-next.45 → 2.19.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.
@@ -7,7 +7,7 @@
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
9
  "dependencies": {
10
- "@pie-lib/pie-toolbox": "1.31.5-next.6",
10
+ "@pie-lib/pie-toolbox": "1.31.5-next.1",
11
11
  "lodash": "^4.17.15"
12
12
  },
13
13
  "author": "",
@@ -42065,7 +42065,9 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
42065
42065
  },
42066
42066
  displayMath: [['$$', '$$'], ['\\[', '\\]']]
42067
42067
  };
42068
- window.mathjaxInitialising = true;
42068
+ window.mathjaxLoadedP = new Promise(function (resolve) {
42069
+ resolve();
42070
+ });
42069
42071
  window.MathJax = {
42070
42072
  startup: {
42071
42073
  typeset: false,
@@ -101894,11 +101896,11 @@ getDefaultExportFromCjs(mathRendering);
101894
101896
  });
101895
101897
  }
101896
101898
  };
101897
- if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxInitialising || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
101899
+ if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
101898
101900
  renderOpts = renderOpts || defaultOpts();
101899
101901
  (0, _mathjaxScript.initializeMathJax)(renderOpts, workingWithMathJax);
101900
101902
  }
101901
- if (isString && window.MathJax && window.mathjaxIsInitialised) {
101903
+ if (isString && window.MathJax && window.mathjaxLoadedP) {
101902
101904
  try {
101903
101905
  MathJax.texReset();
101904
101906
  MathJax.typesetClear();
@@ -101913,7 +101915,7 @@ getDefaultExportFromCjs(mathRendering);
101913
101915
  console.error('Error rendering math:', error.message);
101914
101916
  }
101915
101917
  }
101916
- if (window.mathjaxIsInitialised) {
101918
+ if (window.mathjaxLoadedP) {
101917
101919
  workingWithMathJax();
101918
101920
  }
101919
101921
  };
package/module/element.js CHANGED
@@ -65391,7 +65391,9 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
65391
65391
  },
65392
65392
  displayMath: [['$$', '$$'], ['\\[', '\\]']]
65393
65393
  };
65394
- window.mathjaxInitialising = true;
65394
+ window.mathjaxLoadedP = new Promise(function (resolve) {
65395
+ resolve();
65396
+ });
65395
65397
  window.MathJax = {
65396
65398
  startup: {
65397
65399
  typeset: false,
@@ -125155,11 +125157,11 @@ getDefaultExportFromCjs(mathRendering);
125155
125157
  });
125156
125158
  }
125157
125159
  };
125158
- if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxInitialising || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
125160
+ if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
125159
125161
  renderOpts = renderOpts || defaultOpts();
125160
125162
  (0, _mathjaxScript.initializeMathJax)(renderOpts, workingWithMathJax);
125161
125163
  }
125162
- if (isString && window.MathJax && window.mathjaxIsInitialised) {
125164
+ if (isString && window.MathJax && window.mathjaxLoadedP) {
125163
125165
  try {
125164
125166
  MathJax.texReset();
125165
125167
  MathJax.typesetClear();
@@ -125174,7 +125176,7 @@ getDefaultExportFromCjs(mathRendering);
125174
125176
  console.error('Error rendering math:', error.message);
125175
125177
  }
125176
125178
  }
125177
- if (window.mathjaxIsInitialised) {
125179
+ if (window.mathjaxLoadedP) {
125178
125180
  workingWithMathJax();
125179
125181
  }
125180
125182
  };
package/module/print.js CHANGED
@@ -65391,7 +65391,9 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
65391
65391
  },
65392
65392
  displayMath: [['$$', '$$'], ['\\[', '\\]']]
65393
65393
  };
65394
- window.mathjaxInitialising = true;
65394
+ window.mathjaxLoadedP = new Promise(function (resolve) {
65395
+ resolve();
65396
+ });
65395
65397
  window.MathJax = {
65396
65398
  startup: {
65397
65399
  typeset: false,
@@ -125155,11 +125157,11 @@ getDefaultExportFromCjs(mathRendering);
125155
125157
  });
125156
125158
  }
125157
125159
  };
125158
- if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxInitialising || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
125160
+ if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
125159
125161
  renderOpts = renderOpts || defaultOpts();
125160
125162
  (0, _mathjaxScript.initializeMathJax)(renderOpts, workingWithMathJax);
125161
125163
  }
125162
- if (isString && window.MathJax && window.mathjaxIsInitialised) {
125164
+ if (isString && window.MathJax && window.mathjaxLoadedP) {
125163
125165
  try {
125164
125166
  MathJax.texReset();
125165
125167
  MathJax.typesetClear();
@@ -125174,7 +125176,7 @@ getDefaultExportFromCjs(mathRendering);
125174
125176
  console.error('Error rendering math:', error.message);
125175
125177
  }
125176
125178
  }
125177
- if (window.mathjaxIsInitialised) {
125179
+ if (window.mathjaxLoadedP) {
125178
125180
  workingWithMathJax();
125179
125181
  }
125180
125182
  };
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric",
3
3
  "repository": "pie-framework/pie-elements",
4
- "version": "2.19.5-next.45+d9487a539",
4
+ "version": "2.19.5-next.46+d62f2b452",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "dependencies": {
9
9
  "@material-ui/core": "^3.9.2",
10
- "@pie-element/multi-trait-rubric": "^3.19.5-next.45+d9487a539",
11
- "@pie-element/rubric": "^3.19.5-next.45+d9487a539",
10
+ "@pie-element/multi-trait-rubric": "^3.19.5-next.46+d62f2b452",
11
+ "@pie-element/rubric": "^3.19.5-next.46+d62f2b452",
12
12
  "@pie-framework/pie-player-events": "^0.1.0",
13
13
  "classnames": "^2.2.5",
14
14
  "debug": "^4.1.1",
15
15
  "lodash": "^4.17.11",
16
16
  "prop-types": "^15.7.2"
17
17
  },
18
- "gitHead": "d9487a5394c9b71bb7d7d69a836ed629ae13f7b1",
18
+ "gitHead": "d62f2b4526eeda1f90d3660d97bf278ac1ae72da",
19
19
  "scripts": {
20
20
  "postpublish": "../../scripts/postpublish"
21
21
  },