@pie-element/complex-rubric 2.9.1-next.4 → 2.9.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.9.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.9.0...@pie-element/complex-rubric@2.9.1) (2024-04-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-lib/pie-toolbox PD-3644, PD-3673 ([5e28ce0](https://github.com/pie-framework/pie-elements/commit/5e28ce0dab4a7ecd93ef7bba45ddb20f768b450b))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.9.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.8.2...@pie-element/complex-rubric@2.9.0) (2024-04-18)
7
18
 
8
19
 
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.2.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.2.13...@pie-element/complex-rubric-configure@2.2.14) (2024-04-22)
7
+
8
+ **Note:** Version bump only for package @pie-element/complex-rubric-configure
9
+
10
+
11
+
12
+
13
+
6
14
  ## [2.2.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.2.12...@pie-element/complex-rubric-configure@2.2.13) (2024-04-18)
7
15
 
8
16
  **Note:** Version bump only for package @pie-element/complex-rubric-configure
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric-configure",
3
3
  "private": true,
4
- "version": "2.2.13",
4
+ "version": "2.2.14",
5
5
  "description": "Complex Rubric authoring view",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
8
8
  "author": "Pie Framework Authors",
9
9
  "dependencies": {
10
10
  "@material-ui/core": "^3.9.2",
11
- "@pie-element/multi-trait-rubric": "^3.9.0",
12
- "@pie-element/rubric": "^3.9.0",
11
+ "@pie-element/multi-trait-rubric": "^3.9.1",
12
+ "@pie-element/rubric": "^3.9.1",
13
13
  "@pie-framework/pie-configure-events": "^1.3.0",
14
14
  "@pie-lib/config-ui": "^11.9.25-next.0",
15
15
  "@pie-lib/editable-html": "^11.1.2-next.0",
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.8.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.8.0...@pie-element/complex-rubric-controller@2.8.1) (2024-04-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-lib/pie-toolbox PD-3644, PD-3673 ([5e28ce0](https://github.com/pie-framework/pie-elements/commit/5e28ce0dab4a7ecd93ef7bba45ddb20f768b450b))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.8.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.7.1...@pie-element/complex-rubric-controller@2.8.0) (2024-04-18)
7
18
 
8
19
 
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric-controller",
3
3
  "private": true,
4
- "version": "2.8.0",
4
+ "version": "2.8.1",
5
5
  "description": "",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
9
  "dependencies": {
10
- "@pie-lib/pie-toolbox": "1.15.0",
10
+ "@pie-lib/pie-toolbox": "1.15.1",
11
11
  "lodash": "^4.17.15"
12
12
  },
13
13
  "author": "",
@@ -104254,6 +104254,7 @@ getDefaultExportFromCjs(mathRendering);
104254
104254
  };
104255
104255
  var renderMath = function renderMath(el, renderOpts) {
104256
104256
  renderOpts = renderOpts || defaultOpts();
104257
+ var _renderOpts = renderOpts, skipWaitForMathRenderingLib = _renderOpts.skipWaitForMathRenderingLib;
104257
104258
  var isString = typeof el === 'string';
104258
104259
  var executeOn = document.body;
104259
104260
  if (isString) {
@@ -104263,7 +104264,7 @@ getDefaultExportFromCjs(mathRendering);
104263
104264
  }
104264
104265
  var unprocessedMathElements = executeOn.querySelectorAll('[data-latex]:not([data-math-handled="true"])');
104265
104266
  unprocessedMathElements.forEach(createPlaceholder);
104266
- waitForMathRenderingLib(function () {
104267
+ var mathRenderingCallback = function mathRenderingCallback() {
104267
104268
  fixMathElements(executeOn);
104268
104269
  adjustMathMLStyle(executeOn);
104269
104270
  if (window.hasOwnProperty('@pie-lib/math-rendering@2')) {
@@ -104271,7 +104272,7 @@ getDefaultExportFromCjs(mathRendering);
104271
104272
  mr.renderMath(el);
104272
104273
  return;
104273
104274
  }
104274
- if (!window.MathJax && !window.mathjaxLoadedP) {
104275
+ if (!window.MathJax && !window.mathjaxLoadedP || window.MathJax && !window.hasOwnProperty('@pie-lib/math-rendering-accessible@1')) {
104275
104276
  (0, _mathjaxScript.initializeMathJax)(renderOpts);
104276
104277
  }
104277
104278
  if (isString && window.MathJax && window.mathjaxLoadedP) {
@@ -104318,7 +104319,12 @@ getDefaultExportFromCjs(mathRendering);
104318
104319
  console.error('Error in initializing MathJax:', error);
104319
104320
  });
104320
104321
  }
104321
- });
104322
+ };
104323
+ if (skipWaitForMathRenderingLib) {
104324
+ return mathRenderingCallback();
104325
+ } else {
104326
+ waitForMathRenderingLib(mathRenderingCallback);
104327
+ }
104322
104328
  };
104323
104329
  var _default = renderMath;
104324
104330
  exports["default"] = _default;
@@ -139195,8 +139201,10 @@ const {isEqual: require$$12$d} = _dll_lodash;
139195
139201
  log('[serialize] latex: ', l);
139196
139202
  var decoded = htmlDecode(lessThanHandling(l));
139197
139203
  if (MathPlugin.mathMlOptions.mmlOutput) {
139198
- var res = (0, _mathRenderingAccessible.renderMath)(("<span data-latex=\"\" data-raw=\"").concat(decoded, "\">").concat((0, _mathRenderingAccessible.wrapMath)(decoded, wrapper), "</span>"));
139199
- var newLatex = (0, _mathRenderingAccessible.mmlToLatex)(res);
139204
+ var res = (0, _mathRenderingAccessible.renderMath)(("<span data-latex=\"\" data-raw=\"").concat(decoded, "\">").concat((0, _mathRenderingAccessible.wrapMath)(decoded, wrapper), "</span>"), {
139205
+ skipWaitForMathRenderingLib: true
139206
+ });
139207
+ var newLatex = res ? (0, _mathRenderingAccessible.mmlToLatex)(res) : '';
139200
139208
  var strippedL = l.replace(/\s/g, '');
139201
139209
  var strippedNewL = newLatex.replace(/\s/g, '');
139202
139210
  if (!(0, _isEqual["default"])(strippedL, strippedNewL)) {
package/module/element.js CHANGED
@@ -126590,6 +126590,7 @@ getDefaultExportFromCjs(mathRendering);
126590
126590
  };
126591
126591
  var renderMath = function renderMath(el, renderOpts) {
126592
126592
  renderOpts = renderOpts || defaultOpts();
126593
+ var _renderOpts = renderOpts, skipWaitForMathRenderingLib = _renderOpts.skipWaitForMathRenderingLib;
126593
126594
  var isString = typeof el === 'string';
126594
126595
  var executeOn = document.body;
126595
126596
  if (isString) {
@@ -126599,7 +126600,7 @@ getDefaultExportFromCjs(mathRendering);
126599
126600
  }
126600
126601
  var unprocessedMathElements = executeOn.querySelectorAll('[data-latex]:not([data-math-handled="true"])');
126601
126602
  unprocessedMathElements.forEach(createPlaceholder);
126602
- waitForMathRenderingLib(function () {
126603
+ var mathRenderingCallback = function mathRenderingCallback() {
126603
126604
  fixMathElements(executeOn);
126604
126605
  adjustMathMLStyle(executeOn);
126605
126606
  if (window.hasOwnProperty('@pie-lib/math-rendering@2')) {
@@ -126607,7 +126608,7 @@ getDefaultExportFromCjs(mathRendering);
126607
126608
  mr.renderMath(el);
126608
126609
  return;
126609
126610
  }
126610
- if (!window.MathJax && !window.mathjaxLoadedP) {
126611
+ if (!window.MathJax && !window.mathjaxLoadedP || window.MathJax && !window.hasOwnProperty('@pie-lib/math-rendering-accessible@1')) {
126611
126612
  (0, _mathjaxScript.initializeMathJax)(renderOpts);
126612
126613
  }
126613
126614
  if (isString && window.MathJax && window.mathjaxLoadedP) {
@@ -126654,7 +126655,12 @@ getDefaultExportFromCjs(mathRendering);
126654
126655
  console.error('Error in initializing MathJax:', error);
126655
126656
  });
126656
126657
  }
126657
- });
126658
+ };
126659
+ if (skipWaitForMathRenderingLib) {
126660
+ return mathRenderingCallback();
126661
+ } else {
126662
+ waitForMathRenderingLib(mathRenderingCallback);
126663
+ }
126658
126664
  };
126659
126665
  var _default = renderMath;
126660
126666
  exports["default"] = _default;
@@ -129288,8 +129294,10 @@ const {isEqual: require$$12$d} = _dll_lodash;
129288
129294
  log('[serialize] latex: ', l);
129289
129295
  var decoded = htmlDecode(lessThanHandling(l));
129290
129296
  if (MathPlugin.mathMlOptions.mmlOutput) {
129291
- var res = (0, _mathRenderingAccessible.renderMath)(("<span data-latex=\"\" data-raw=\"").concat(decoded, "\">").concat((0, _mathRenderingAccessible.wrapMath)(decoded, wrapper), "</span>"));
129292
- var newLatex = (0, _mathRenderingAccessible.mmlToLatex)(res);
129297
+ var res = (0, _mathRenderingAccessible.renderMath)(("<span data-latex=\"\" data-raw=\"").concat(decoded, "\">").concat((0, _mathRenderingAccessible.wrapMath)(decoded, wrapper), "</span>"), {
129298
+ skipWaitForMathRenderingLib: true
129299
+ });
129300
+ var newLatex = res ? (0, _mathRenderingAccessible.mmlToLatex)(res) : '';
129293
129301
  var strippedL = l.replace(/\s/g, '');
129294
129302
  var strippedNewL = newLatex.replace(/\s/g, '');
129295
129303
  if (!(0, _isEqual["default"])(strippedL, strippedNewL)) {
package/module/print.js CHANGED
@@ -126590,6 +126590,7 @@ getDefaultExportFromCjs(mathRendering);
126590
126590
  };
126591
126591
  var renderMath = function renderMath(el, renderOpts) {
126592
126592
  renderOpts = renderOpts || defaultOpts();
126593
+ var _renderOpts = renderOpts, skipWaitForMathRenderingLib = _renderOpts.skipWaitForMathRenderingLib;
126593
126594
  var isString = typeof el === 'string';
126594
126595
  var executeOn = document.body;
126595
126596
  if (isString) {
@@ -126599,7 +126600,7 @@ getDefaultExportFromCjs(mathRendering);
126599
126600
  }
126600
126601
  var unprocessedMathElements = executeOn.querySelectorAll('[data-latex]:not([data-math-handled="true"])');
126601
126602
  unprocessedMathElements.forEach(createPlaceholder);
126602
- waitForMathRenderingLib(function () {
126603
+ var mathRenderingCallback = function mathRenderingCallback() {
126603
126604
  fixMathElements(executeOn);
126604
126605
  adjustMathMLStyle(executeOn);
126605
126606
  if (window.hasOwnProperty('@pie-lib/math-rendering@2')) {
@@ -126607,7 +126608,7 @@ getDefaultExportFromCjs(mathRendering);
126607
126608
  mr.renderMath(el);
126608
126609
  return;
126609
126610
  }
126610
- if (!window.MathJax && !window.mathjaxLoadedP) {
126611
+ if (!window.MathJax && !window.mathjaxLoadedP || window.MathJax && !window.hasOwnProperty('@pie-lib/math-rendering-accessible@1')) {
126611
126612
  (0, _mathjaxScript.initializeMathJax)(renderOpts);
126612
126613
  }
126613
126614
  if (isString && window.MathJax && window.mathjaxLoadedP) {
@@ -126654,7 +126655,12 @@ getDefaultExportFromCjs(mathRendering);
126654
126655
  console.error('Error in initializing MathJax:', error);
126655
126656
  });
126656
126657
  }
126657
- });
126658
+ };
126659
+ if (skipWaitForMathRenderingLib) {
126660
+ return mathRenderingCallback();
126661
+ } else {
126662
+ waitForMathRenderingLib(mathRenderingCallback);
126663
+ }
126658
126664
  };
126659
126665
  var _default = renderMath;
126660
126666
  exports["default"] = _default;
@@ -129288,8 +129294,10 @@ const {isEqual: require$$12$d} = _dll_lodash;
129288
129294
  log('[serialize] latex: ', l);
129289
129295
  var decoded = htmlDecode(lessThanHandling(l));
129290
129296
  if (MathPlugin.mathMlOptions.mmlOutput) {
129291
- var res = (0, _mathRenderingAccessible.renderMath)(("<span data-latex=\"\" data-raw=\"").concat(decoded, "\">").concat((0, _mathRenderingAccessible.wrapMath)(decoded, wrapper), "</span>"));
129292
- var newLatex = (0, _mathRenderingAccessible.mmlToLatex)(res);
129297
+ var res = (0, _mathRenderingAccessible.renderMath)(("<span data-latex=\"\" data-raw=\"").concat(decoded, "\">").concat((0, _mathRenderingAccessible.wrapMath)(decoded, wrapper), "</span>"), {
129298
+ skipWaitForMathRenderingLib: true
129299
+ });
129300
+ var newLatex = res ? (0, _mathRenderingAccessible.mmlToLatex)(res) : '';
129293
129301
  var strippedL = l.replace(/\s/g, '');
129294
129302
  var strippedNewL = newLatex.replace(/\s/g, '');
129295
129303
  if (!(0, _isEqual["default"])(strippedL, strippedNewL)) {
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.9.1-next.4+6e2584f69",
4
+ "version": "2.9.1",
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.9.1-next.4+6e2584f69",
11
- "@pie-element/rubric": "^3.9.1-next.4+6e2584f69",
10
+ "@pie-element/multi-trait-rubric": "^3.9.1",
11
+ "@pie-element/rubric": "^3.9.1",
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": "6e2584f690a90e30a54d01d2aece0cff542a1c75",
18
+ "gitHead": "92284f6b73608127d5fe595524d0ff431e5a71e5",
19
19
  "scripts": {
20
20
  "postpublish": "../../scripts/postpublish"
21
21
  },