@pie-element/complex-rubric 2.10.2-next.6 → 2.10.3
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 +22 -0
- package/configure/CHANGELOG.md +16 -0
- package/configure/package.json +3 -3
- package/controller/CHANGELOG.md +22 -0
- package/controller/package.json +2 -2
- package/module/configure.js +54 -9
- package/module/element.js +54 -9
- package/module/index.html +1 -1
- package/module/manifest.json +3 -3
- package/module/print.html +1 -1
- package/module/print.js +54 -9
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.10.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.10.2...@pie-element/complex-rubric@2.10.3) (2024-05-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-3731 ([2b5d6c9](https://github.com/pie-framework/pie-elements/commit/2b5d6c932280981a0fd636bcb30d7fbc181ac311))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [2.10.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.10.1...@pie-element/complex-rubric@2.10.2) (2024-05-03)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* update pie-lib/pie-toolbox PD-3537, PD-3538, PD-3539, PD-3540,PD-3680 ([d9cb471](https://github.com/pie-framework/pie-elements/commit/d9cb47148a8fec71d5de29f2cf2b92ec7b479470))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [2.10.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.10.0...@pie-element/complex-rubric@2.10.1) (2024-04-29)
|
|
7
29
|
|
|
8
30
|
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.18](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.2.17...@pie-element/complex-rubric-configure@2.2.18) (2024-05-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/complex-rubric-configure
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.2.17](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.2.16...@pie-element/complex-rubric-configure@2.2.17) (2024-05-03)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @pie-element/complex-rubric-configure
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [2.2.16](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.2.15...@pie-element/complex-rubric-configure@2.2.16) (2024-04-29)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @pie-element/complex-rubric-configure
|
package/configure/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.18",
|
|
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.10.
|
|
12
|
-
"@pie-element/rubric": "^3.10.
|
|
11
|
+
"@pie-element/multi-trait-rubric": "^3.10.3",
|
|
12
|
+
"@pie-element/rubric": "^3.10.3",
|
|
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",
|
package/controller/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.9.2...@pie-element/complex-rubric-controller@2.9.3) (2024-05-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-3731 ([2b5d6c9](https://github.com/pie-framework/pie-elements/commit/2b5d6c932280981a0fd636bcb30d7fbc181ac311))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [2.9.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.9.1...@pie-element/complex-rubric-controller@2.9.2) (2024-05-03)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* update pie-lib/pie-toolbox PD-3537, PD-3538, PD-3539, PD-3540,PD-3680 ([d9cb471](https://github.com/pie-framework/pie-elements/commit/d9cb47148a8fec71d5de29f2cf2b92ec7b479470))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [2.9.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.9.0...@pie-element/complex-rubric-controller@2.9.1) (2024-04-29)
|
|
7
29
|
|
|
8
30
|
|
package/controller/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric-controller",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "2.9.
|
|
4
|
+
"version": "2.9.3",
|
|
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.
|
|
10
|
+
"@pie-lib/pie-toolbox": "1.17.3",
|
|
11
11
|
"lodash": "^4.17.15"
|
|
12
12
|
},
|
|
13
13
|
"author": "",
|
package/module/configure.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.10.2/module/index.js";
|
|
2
2
|
import RubricConfigure from '@pie-element/rubric/configure/lib';
|
|
3
|
-
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@4.
|
|
3
|
+
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.0/module/index.js";
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
5
5
|
m.forEach(function (e) {
|
|
6
6
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -10681,7 +10681,7 @@ const require$$4$1l = _dll_prop_types;
|
|
|
10681
10681
|
var _propTypes = _interopRequireDefault(require$$4$1l);
|
|
10682
10682
|
var _grey = _interopRequireDefault(grey$1);
|
|
10683
10683
|
var PlaceHolder = function PlaceHolder(props) {
|
|
10684
|
-
var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard;
|
|
10684
|
+
var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard, isCategorize = props.isCategorize;
|
|
10685
10685
|
var names = (0, _classnames["default"])(classes.placeholder, disabled && classes.disabled, isOver && classes.over, classes[type], className);
|
|
10686
10686
|
var style = {};
|
|
10687
10687
|
if (grid && grid.columns) {
|
|
@@ -10691,9 +10691,10 @@ const require$$4$1l = _dll_prop_types;
|
|
|
10691
10691
|
var repeatValue = grid.rowsRepeatValue || '1fr';
|
|
10692
10692
|
style.gridTemplateRows = ("repeat(").concat(grid.rows, ", ").concat(repeatValue, ")");
|
|
10693
10693
|
}
|
|
10694
|
+
var boardStyle = isCategorize ? classes.categorizeBoard : classes.board;
|
|
10694
10695
|
return _react["default"].createElement("div", {
|
|
10695
10696
|
style: style,
|
|
10696
|
-
className: choiceBoard ?
|
|
10697
|
+
className: choiceBoard ? boardStyle : names
|
|
10697
10698
|
}, children);
|
|
10698
10699
|
};
|
|
10699
10700
|
exports.PlaceHolder = PlaceHolder;
|
|
@@ -10710,7 +10711,8 @@ const require$$4$1l = _dll_prop_types;
|
|
|
10710
10711
|
isOver: _propTypes["default"].bool,
|
|
10711
10712
|
index: _propTypes["default"].number,
|
|
10712
10713
|
type: _propTypes["default"].string,
|
|
10713
|
-
disabled: _propTypes["default"].bool
|
|
10714
|
+
disabled: _propTypes["default"].bool,
|
|
10715
|
+
isCategorize: _propTypes["default"].bool
|
|
10714
10716
|
};
|
|
10715
10717
|
var styles = function styles(theme) {
|
|
10716
10718
|
return {
|
|
@@ -10744,6 +10746,17 @@ const require$$4$1l = _dll_prop_types;
|
|
|
10744
10746
|
justifyContent: 'center',
|
|
10745
10747
|
overflow: 'hidden',
|
|
10746
10748
|
touchAction: 'none'
|
|
10749
|
+
},
|
|
10750
|
+
categorizeBoard: {
|
|
10751
|
+
border: '1px solid #D1D1D1',
|
|
10752
|
+
padding: theme.spacing.unit / 2,
|
|
10753
|
+
display: 'flex',
|
|
10754
|
+
flexWrap: 'wrap',
|
|
10755
|
+
alignItems: 'center',
|
|
10756
|
+
minHeight: '100px',
|
|
10757
|
+
justifyContent: 'center',
|
|
10758
|
+
overflow: 'hidden',
|
|
10759
|
+
touchAction: 'none'
|
|
10747
10760
|
}
|
|
10748
10761
|
};
|
|
10749
10762
|
};
|
|
@@ -95237,10 +95250,13 @@ const require$$12$r = _dll_debug;
|
|
|
95237
95250
|
var renderMath = function renderMath(el, renderOpts) {
|
|
95238
95251
|
var _getGlobal$instance, _getGlobal$instance2;
|
|
95239
95252
|
if (window && window.MathJax && window.MathJax.customKey && window.MathJax.customKey == '@pie-lib/math-rendering-accessible@1') {
|
|
95253
|
+
console.log('RETURN FROM OLD MATH RENDERING, MATH RENDERING ACCESSIBLE WAS FOUND');
|
|
95240
95254
|
return;
|
|
95241
95255
|
}
|
|
95256
|
+
console.log('we are in old math rendering');
|
|
95242
95257
|
var isString = typeof el === 'string';
|
|
95243
95258
|
var executeOn = document.body;
|
|
95259
|
+
console.log(isString, 'is string in old math rendering');
|
|
95244
95260
|
if (isString) {
|
|
95245
95261
|
var div = document.createElement('div');
|
|
95246
95262
|
div.innerHTML = el;
|
|
@@ -95253,11 +95269,14 @@ const require$$12$r = _dll_debug;
|
|
|
95253
95269
|
var updatedDocument = html.findMath().compile().getMetrics().typeset().updateDocument();
|
|
95254
95270
|
var list = updatedDocument.math.list;
|
|
95255
95271
|
var item = list.next;
|
|
95272
|
+
console.log(item, 'item in old math rendering');
|
|
95256
95273
|
if (!item) {
|
|
95274
|
+
console.log("return '' in old math rendering");
|
|
95257
95275
|
return '';
|
|
95258
95276
|
}
|
|
95259
95277
|
var mathMl = toMMl(item.data.root);
|
|
95260
95278
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
95279
|
+
console.log(parsedMathMl, 'parsedMathMl in old math rendering');
|
|
95261
95280
|
return parsedMathMl;
|
|
95262
95281
|
}
|
|
95263
95282
|
if (!getGlobal().instance) {
|
|
@@ -95267,11 +95286,14 @@ const require$$12$r = _dll_debug;
|
|
|
95267
95286
|
log('el is undefined');
|
|
95268
95287
|
return;
|
|
95269
95288
|
}
|
|
95289
|
+
console.log(el, 'element in old math rendering');
|
|
95270
95290
|
if (el instanceof Element && (_getGlobal$instance = getGlobal().instance) !== null && _getGlobal$instance !== void 0 && _getGlobal$instance.Typeset) {
|
|
95291
|
+
console.log('Typeset element in old math rendering');
|
|
95271
95292
|
getGlobal().instance.Typeset(el);
|
|
95272
95293
|
} else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
|
|
95273
95294
|
var _getGlobal$instance3;
|
|
95274
95295
|
var arr = Array.from(el);
|
|
95296
|
+
console.log(arr, 'Typeset arr in old math rendering');
|
|
95275
95297
|
(_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
|
|
95276
95298
|
}
|
|
95277
95299
|
};
|
|
@@ -104242,7 +104264,10 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
104242
104264
|
return ((_window = window) === null || _window === void 0 ? void 0 : (_window$MathJax = _window.MathJax) === null || _window$MathJax === void 0 ? void 0 : _window$MathJax.customKey) || ((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$MathJax = _window2.MathJax) === null || _window2$MathJax === void 0 ? void 0 : (_window2$MathJax$conf = _window2$MathJax.config) === null || _window2$MathJax$conf === void 0 ? void 0 : _window2$MathJax$conf.customKey);
|
|
104243
104265
|
};
|
|
104244
104266
|
var renderMath = function renderMath(el, renderOpts) {
|
|
104267
|
+
console.log("I'm in math rendering accessible");
|
|
104245
104268
|
var isString = typeof el === 'string';
|
|
104269
|
+
console.log('IS STRING', isString);
|
|
104270
|
+
console.log('renderOpts', renderOpts);
|
|
104246
104271
|
var executeOn = document.body;
|
|
104247
104272
|
if (isString) {
|
|
104248
104273
|
var div = document.createElement('div');
|
|
@@ -104250,16 +104275,19 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
104250
104275
|
executeOn = div;
|
|
104251
104276
|
}
|
|
104252
104277
|
var _ref = renderOpts || ({}), skipWaitForMathRenderingLib = _ref.skipWaitForMathRenderingLib;
|
|
104278
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
104253
104279
|
var renderMathAccessible = function renderMathAccessible() {
|
|
104254
104280
|
fixMathElements(executeOn);
|
|
104255
104281
|
adjustMathMLStyle(executeOn);
|
|
104256
104282
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
104257
104283
|
if (!window.MathJax && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
104284
|
+
console.log('INITIALIZE MATHJAX ACCESSIBLE');
|
|
104258
104285
|
renderOpts = renderOpts || defaultOpts();
|
|
104259
104286
|
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
104260
104287
|
}
|
|
104261
104288
|
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
104262
104289
|
try {
|
|
104290
|
+
console.log('THE ISSUE MUST BE HERE');
|
|
104263
104291
|
MathJax.texReset();
|
|
104264
104292
|
MathJax.typesetClear();
|
|
104265
104293
|
window.MathJax.typeset([executeOn]);
|
|
@@ -104268,6 +104296,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
104268
104296
|
var item = list.next;
|
|
104269
104297
|
var mathMl = toMMl(item.data.root);
|
|
104270
104298
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
104299
|
+
console.log(parsedMathMl, 'parsedMathMl');
|
|
104271
104300
|
return parsedMathMl;
|
|
104272
104301
|
} catch (error) {
|
|
104273
104302
|
console.error('Error rendering math:', error.message);
|
|
@@ -104276,11 +104305,13 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
104276
104305
|
if (window.mathjaxLoadedP) {
|
|
104277
104306
|
window.mathjaxLoadedP.then(function () {
|
|
104278
104307
|
var mathJaxInstance = getGlobal().instance;
|
|
104308
|
+
console.log(mathJaxInstance, 'mathJaxInstance');
|
|
104279
104309
|
if (mathJaxInstance) {
|
|
104280
104310
|
mathJaxInstance.texReset();
|
|
104281
104311
|
mathJaxInstance.typesetClear();
|
|
104282
104312
|
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
104283
104313
|
try {
|
|
104314
|
+
console.log("I'm in typesetPromise???");
|
|
104284
104315
|
removeExcessMjxContainers(executeOn);
|
|
104285
104316
|
removePlaceholdersAndRestoreDisplay();
|
|
104286
104317
|
var _updatedDocument = mathJaxInstance.startup.document;
|
|
@@ -104304,13 +104335,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
104304
104335
|
}
|
|
104305
104336
|
};
|
|
104306
104337
|
if (skipWaitForMathRenderingLib) {
|
|
104338
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
104307
104339
|
return renderMathAccessible();
|
|
104308
104340
|
} else {
|
|
104309
104341
|
if (window.hasOwnProperty(mathRenderingKEY) && window[mathRenderingKEY].instance) {
|
|
104342
|
+
console.log(mathRenderingKEY, 'mathRenderingKEY');
|
|
104310
104343
|
removePlaceholdersAndRestoreDisplay();
|
|
104311
|
-
return mr.renderMath();
|
|
104344
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
104312
104345
|
}
|
|
104313
104346
|
if (window.hasOwnProperty(mathRenderingAccessibleKEY) && window[mathRenderingAccessibleKEY].instance) {
|
|
104347
|
+
console.log(mathRenderingAccessibleKEY, 'mathRenderingAccessibleKEY');
|
|
104314
104348
|
return renderMathAccessible();
|
|
104315
104349
|
}
|
|
104316
104350
|
var waitForMathRenderingLib = function waitForMathRenderingLib(renderMathAccessibleCallback) {
|
|
@@ -104325,14 +104359,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
104325
104359
|
if (mathRenderingHasLoaded || hasExceededMaxWait) {
|
|
104326
104360
|
clearInterval(checkIntervalId);
|
|
104327
104361
|
if (mathRenderingHasLoaded) {
|
|
104362
|
+
console.log(mathRenderingHasLoaded, 'mathRenderingHasLoaded');
|
|
104328
104363
|
removePlaceholdersAndRestoreDisplay();
|
|
104329
|
-
return mr.renderMath();
|
|
104364
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
104330
104365
|
}
|
|
104331
104366
|
renderMathAccessibleCallback();
|
|
104332
104367
|
}
|
|
104333
104368
|
};
|
|
104334
104369
|
checkIntervalId = setInterval(checkForLib, 100);
|
|
104335
104370
|
};
|
|
104371
|
+
console.log('waitForMathRenderingLib');
|
|
104336
104372
|
waitForMathRenderingLib(renderMathAccessible);
|
|
104337
104373
|
}
|
|
104338
104374
|
};
|
|
@@ -136004,8 +136040,8 @@ var primeArcminute = set$8({
|
|
|
136004
136040
|
geometry$1.primeArcminute = primeArcminute;
|
|
136005
136041
|
var doublePrimeArcSecond = set$8({
|
|
136006
136042
|
name: 'Double Prime',
|
|
136007
|
-
latex: '"
|
|
136008
|
-
write: '"
|
|
136043
|
+
latex: "''",
|
|
136044
|
+
write: "''"
|
|
136009
136045
|
});
|
|
136010
136046
|
geometry$1.doublePrimeArcSecond = doublePrimeArcSecond;
|
|
136011
136047
|
var leftArrow = set$8({
|
|
@@ -136509,6 +136545,9 @@ var updateSpans = function updateSpans() {
|
|
|
136509
136545
|
if (span && span.innerText === '∥' && span.className !== 'mq-editable-field') {
|
|
136510
136546
|
span.style.fontSize = '32px';
|
|
136511
136547
|
}
|
|
136548
|
+
if ((span.innerText === '′' || span.innerText === '′′') && !span.hasAttribute('data-prime')) {
|
|
136549
|
+
span.setAttribute('data-prime', 'true');
|
|
136550
|
+
}
|
|
136512
136551
|
});
|
|
136513
136552
|
};
|
|
136514
136553
|
updateSpans$1.updateSpans = updateSpans;
|
|
@@ -138207,6 +138246,9 @@ const {isEqual: require$$18$2} = _dll_lodash;
|
|
|
138207
138246
|
marginBottom: '-2px'
|
|
138208
138247
|
},
|
|
138209
138248
|
'-webkit-font-smoothing': 'antialiased !important'
|
|
138249
|
+
},
|
|
138250
|
+
'& span[data-prime="true"]': {
|
|
138251
|
+
fontFamily: 'Roboto, Helvetica, Arial, sans-serif !important'
|
|
138210
138252
|
}
|
|
138211
138253
|
},
|
|
138212
138254
|
hide: {
|
|
@@ -138661,6 +138703,9 @@ const require$$11$s = _dll_prop_types;
|
|
|
138661
138703
|
},
|
|
138662
138704
|
'& .mq-parallelogram': {
|
|
138663
138705
|
lineHeight: 0.85
|
|
138706
|
+
},
|
|
138707
|
+
'& span[data-prime="true"]': {
|
|
138708
|
+
fontFamily: 'Roboto, Helvetica, Arial, sans-serif !important'
|
|
138664
138709
|
}
|
|
138665
138710
|
},
|
|
138666
138711
|
selected: {
|
package/module/element.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.10.2/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.0/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
5
5
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -36820,8 +36820,8 @@ var primeArcminute = set$8({
|
|
|
36820
36820
|
geometry$1.primeArcminute = primeArcminute;
|
|
36821
36821
|
var doublePrimeArcSecond = set$8({
|
|
36822
36822
|
name: 'Double Prime',
|
|
36823
|
-
latex: '"
|
|
36824
|
-
write: '"
|
|
36823
|
+
latex: "''",
|
|
36824
|
+
write: "''"
|
|
36825
36825
|
});
|
|
36826
36826
|
geometry$1.doublePrimeArcSecond = doublePrimeArcSecond;
|
|
36827
36827
|
var leftArrow = set$8({
|
|
@@ -37325,6 +37325,9 @@ var updateSpans = function updateSpans() {
|
|
|
37325
37325
|
if (span && span.innerText === '∥' && span.className !== 'mq-editable-field') {
|
|
37326
37326
|
span.style.fontSize = '32px';
|
|
37327
37327
|
}
|
|
37328
|
+
if ((span.innerText === '′' || span.innerText === '′′') && !span.hasAttribute('data-prime')) {
|
|
37329
|
+
span.setAttribute('data-prime', 'true');
|
|
37330
|
+
}
|
|
37328
37331
|
});
|
|
37329
37332
|
};
|
|
37330
37333
|
updateSpans$1.updateSpans = updateSpans;
|
|
@@ -117573,10 +117576,13 @@ const require$$12$h = _dll_debug;
|
|
|
117573
117576
|
var renderMath = function renderMath(el, renderOpts) {
|
|
117574
117577
|
var _getGlobal$instance, _getGlobal$instance2;
|
|
117575
117578
|
if (window && window.MathJax && window.MathJax.customKey && window.MathJax.customKey == '@pie-lib/math-rendering-accessible@1') {
|
|
117579
|
+
console.log('RETURN FROM OLD MATH RENDERING, MATH RENDERING ACCESSIBLE WAS FOUND');
|
|
117576
117580
|
return;
|
|
117577
117581
|
}
|
|
117582
|
+
console.log('we are in old math rendering');
|
|
117578
117583
|
var isString = typeof el === 'string';
|
|
117579
117584
|
var executeOn = document.body;
|
|
117585
|
+
console.log(isString, 'is string in old math rendering');
|
|
117580
117586
|
if (isString) {
|
|
117581
117587
|
var div = document.createElement('div');
|
|
117582
117588
|
div.innerHTML = el;
|
|
@@ -117589,11 +117595,14 @@ const require$$12$h = _dll_debug;
|
|
|
117589
117595
|
var updatedDocument = html.findMath().compile().getMetrics().typeset().updateDocument();
|
|
117590
117596
|
var list = updatedDocument.math.list;
|
|
117591
117597
|
var item = list.next;
|
|
117598
|
+
console.log(item, 'item in old math rendering');
|
|
117592
117599
|
if (!item) {
|
|
117600
|
+
console.log("return '' in old math rendering");
|
|
117593
117601
|
return '';
|
|
117594
117602
|
}
|
|
117595
117603
|
var mathMl = toMMl(item.data.root);
|
|
117596
117604
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
117605
|
+
console.log(parsedMathMl, 'parsedMathMl in old math rendering');
|
|
117597
117606
|
return parsedMathMl;
|
|
117598
117607
|
}
|
|
117599
117608
|
if (!getGlobal().instance) {
|
|
@@ -117603,11 +117612,14 @@ const require$$12$h = _dll_debug;
|
|
|
117603
117612
|
log('el is undefined');
|
|
117604
117613
|
return;
|
|
117605
117614
|
}
|
|
117615
|
+
console.log(el, 'element in old math rendering');
|
|
117606
117616
|
if (el instanceof Element && (_getGlobal$instance = getGlobal().instance) !== null && _getGlobal$instance !== void 0 && _getGlobal$instance.Typeset) {
|
|
117617
|
+
console.log('Typeset element in old math rendering');
|
|
117607
117618
|
getGlobal().instance.Typeset(el);
|
|
117608
117619
|
} else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
|
|
117609
117620
|
var _getGlobal$instance3;
|
|
117610
117621
|
var arr = Array.from(el);
|
|
117622
|
+
console.log(arr, 'Typeset arr in old math rendering');
|
|
117611
117623
|
(_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
|
|
117612
117624
|
}
|
|
117613
117625
|
};
|
|
@@ -126578,7 +126590,10 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126578
126590
|
return ((_window = window) === null || _window === void 0 ? void 0 : (_window$MathJax = _window.MathJax) === null || _window$MathJax === void 0 ? void 0 : _window$MathJax.customKey) || ((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$MathJax = _window2.MathJax) === null || _window2$MathJax === void 0 ? void 0 : (_window2$MathJax$conf = _window2$MathJax.config) === null || _window2$MathJax$conf === void 0 ? void 0 : _window2$MathJax$conf.customKey);
|
|
126579
126591
|
};
|
|
126580
126592
|
var renderMath = function renderMath(el, renderOpts) {
|
|
126593
|
+
console.log("I'm in math rendering accessible");
|
|
126581
126594
|
var isString = typeof el === 'string';
|
|
126595
|
+
console.log('IS STRING', isString);
|
|
126596
|
+
console.log('renderOpts', renderOpts);
|
|
126582
126597
|
var executeOn = document.body;
|
|
126583
126598
|
if (isString) {
|
|
126584
126599
|
var div = document.createElement('div');
|
|
@@ -126586,16 +126601,19 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126586
126601
|
executeOn = div;
|
|
126587
126602
|
}
|
|
126588
126603
|
var _ref = renderOpts || ({}), skipWaitForMathRenderingLib = _ref.skipWaitForMathRenderingLib;
|
|
126604
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
126589
126605
|
var renderMathAccessible = function renderMathAccessible() {
|
|
126590
126606
|
fixMathElements(executeOn);
|
|
126591
126607
|
adjustMathMLStyle(executeOn);
|
|
126592
126608
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
126593
126609
|
if (!window.MathJax && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
126610
|
+
console.log('INITIALIZE MATHJAX ACCESSIBLE');
|
|
126594
126611
|
renderOpts = renderOpts || defaultOpts();
|
|
126595
126612
|
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
126596
126613
|
}
|
|
126597
126614
|
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
126598
126615
|
try {
|
|
126616
|
+
console.log('THE ISSUE MUST BE HERE');
|
|
126599
126617
|
MathJax.texReset();
|
|
126600
126618
|
MathJax.typesetClear();
|
|
126601
126619
|
window.MathJax.typeset([executeOn]);
|
|
@@ -126604,6 +126622,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126604
126622
|
var item = list.next;
|
|
126605
126623
|
var mathMl = toMMl(item.data.root);
|
|
126606
126624
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
126625
|
+
console.log(parsedMathMl, 'parsedMathMl');
|
|
126607
126626
|
return parsedMathMl;
|
|
126608
126627
|
} catch (error) {
|
|
126609
126628
|
console.error('Error rendering math:', error.message);
|
|
@@ -126612,11 +126631,13 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126612
126631
|
if (window.mathjaxLoadedP) {
|
|
126613
126632
|
window.mathjaxLoadedP.then(function () {
|
|
126614
126633
|
var mathJaxInstance = getGlobal().instance;
|
|
126634
|
+
console.log(mathJaxInstance, 'mathJaxInstance');
|
|
126615
126635
|
if (mathJaxInstance) {
|
|
126616
126636
|
mathJaxInstance.texReset();
|
|
126617
126637
|
mathJaxInstance.typesetClear();
|
|
126618
126638
|
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
126619
126639
|
try {
|
|
126640
|
+
console.log("I'm in typesetPromise???");
|
|
126620
126641
|
removeExcessMjxContainers(executeOn);
|
|
126621
126642
|
removePlaceholdersAndRestoreDisplay();
|
|
126622
126643
|
var _updatedDocument = mathJaxInstance.startup.document;
|
|
@@ -126640,13 +126661,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126640
126661
|
}
|
|
126641
126662
|
};
|
|
126642
126663
|
if (skipWaitForMathRenderingLib) {
|
|
126664
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
126643
126665
|
return renderMathAccessible();
|
|
126644
126666
|
} else {
|
|
126645
126667
|
if (window.hasOwnProperty(mathRenderingKEY) && window[mathRenderingKEY].instance) {
|
|
126668
|
+
console.log(mathRenderingKEY, 'mathRenderingKEY');
|
|
126646
126669
|
removePlaceholdersAndRestoreDisplay();
|
|
126647
|
-
return mr.renderMath();
|
|
126670
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
126648
126671
|
}
|
|
126649
126672
|
if (window.hasOwnProperty(mathRenderingAccessibleKEY) && window[mathRenderingAccessibleKEY].instance) {
|
|
126673
|
+
console.log(mathRenderingAccessibleKEY, 'mathRenderingAccessibleKEY');
|
|
126650
126674
|
return renderMathAccessible();
|
|
126651
126675
|
}
|
|
126652
126676
|
var waitForMathRenderingLib = function waitForMathRenderingLib(renderMathAccessibleCallback) {
|
|
@@ -126661,14 +126685,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126661
126685
|
if (mathRenderingHasLoaded || hasExceededMaxWait) {
|
|
126662
126686
|
clearInterval(checkIntervalId);
|
|
126663
126687
|
if (mathRenderingHasLoaded) {
|
|
126688
|
+
console.log(mathRenderingHasLoaded, 'mathRenderingHasLoaded');
|
|
126664
126689
|
removePlaceholdersAndRestoreDisplay();
|
|
126665
|
-
return mr.renderMath();
|
|
126690
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
126666
126691
|
}
|
|
126667
126692
|
renderMathAccessibleCallback();
|
|
126668
126693
|
}
|
|
126669
126694
|
};
|
|
126670
126695
|
checkIntervalId = setInterval(checkForLib, 100);
|
|
126671
126696
|
};
|
|
126697
|
+
console.log('waitForMathRenderingLib');
|
|
126672
126698
|
waitForMathRenderingLib(renderMathAccessible);
|
|
126673
126699
|
}
|
|
126674
126700
|
};
|
|
@@ -128300,6 +128326,9 @@ const {isEqual: require$$18$2} = _dll_lodash;
|
|
|
128300
128326
|
marginBottom: '-2px'
|
|
128301
128327
|
},
|
|
128302
128328
|
'-webkit-font-smoothing': 'antialiased !important'
|
|
128329
|
+
},
|
|
128330
|
+
'& span[data-prime="true"]': {
|
|
128331
|
+
fontFamily: 'Roboto, Helvetica, Arial, sans-serif !important'
|
|
128303
128332
|
}
|
|
128304
128333
|
},
|
|
128305
128334
|
hide: {
|
|
@@ -128754,6 +128783,9 @@ const require$$11$s = _dll_prop_types;
|
|
|
128754
128783
|
},
|
|
128755
128784
|
'& .mq-parallelogram': {
|
|
128756
128785
|
lineHeight: 0.85
|
|
128786
|
+
},
|
|
128787
|
+
'& span[data-prime="true"]': {
|
|
128788
|
+
fontFamily: 'Roboto, Helvetica, Arial, sans-serif !important'
|
|
128757
128789
|
}
|
|
128758
128790
|
},
|
|
128759
128791
|
selected: {
|
|
@@ -140438,7 +140470,7 @@ const require$$4$N = _dll_prop_types;
|
|
|
140438
140470
|
var _propTypes = _interopRequireDefault(require$$4$N);
|
|
140439
140471
|
var _grey = _interopRequireDefault(grey$1);
|
|
140440
140472
|
var PlaceHolder = function PlaceHolder(props) {
|
|
140441
|
-
var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard;
|
|
140473
|
+
var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard, isCategorize = props.isCategorize;
|
|
140442
140474
|
var names = (0, _classnames["default"])(classes.placeholder, disabled && classes.disabled, isOver && classes.over, classes[type], className);
|
|
140443
140475
|
var style = {};
|
|
140444
140476
|
if (grid && grid.columns) {
|
|
@@ -140448,9 +140480,10 @@ const require$$4$N = _dll_prop_types;
|
|
|
140448
140480
|
var repeatValue = grid.rowsRepeatValue || '1fr';
|
|
140449
140481
|
style.gridTemplateRows = ("repeat(").concat(grid.rows, ", ").concat(repeatValue, ")");
|
|
140450
140482
|
}
|
|
140483
|
+
var boardStyle = isCategorize ? classes.categorizeBoard : classes.board;
|
|
140451
140484
|
return _react["default"].createElement("div", {
|
|
140452
140485
|
style: style,
|
|
140453
|
-
className: choiceBoard ?
|
|
140486
|
+
className: choiceBoard ? boardStyle : names
|
|
140454
140487
|
}, children);
|
|
140455
140488
|
};
|
|
140456
140489
|
exports.PlaceHolder = PlaceHolder;
|
|
@@ -140467,7 +140500,8 @@ const require$$4$N = _dll_prop_types;
|
|
|
140467
140500
|
isOver: _propTypes["default"].bool,
|
|
140468
140501
|
index: _propTypes["default"].number,
|
|
140469
140502
|
type: _propTypes["default"].string,
|
|
140470
|
-
disabled: _propTypes["default"].bool
|
|
140503
|
+
disabled: _propTypes["default"].bool,
|
|
140504
|
+
isCategorize: _propTypes["default"].bool
|
|
140471
140505
|
};
|
|
140472
140506
|
var styles = function styles(theme) {
|
|
140473
140507
|
return {
|
|
@@ -140501,6 +140535,17 @@ const require$$4$N = _dll_prop_types;
|
|
|
140501
140535
|
justifyContent: 'center',
|
|
140502
140536
|
overflow: 'hidden',
|
|
140503
140537
|
touchAction: 'none'
|
|
140538
|
+
},
|
|
140539
|
+
categorizeBoard: {
|
|
140540
|
+
border: '1px solid #D1D1D1',
|
|
140541
|
+
padding: theme.spacing.unit / 2,
|
|
140542
|
+
display: 'flex',
|
|
140543
|
+
flexWrap: 'wrap',
|
|
140544
|
+
alignItems: 'center',
|
|
140545
|
+
minHeight: '100px',
|
|
140546
|
+
justifyContent: 'center',
|
|
140547
|
+
overflow: 'hidden',
|
|
140548
|
+
touchAction: 'none'
|
|
140504
140549
|
}
|
|
140505
140550
|
};
|
|
140506
140551
|
};
|
package/module/index.html
CHANGED
package/module/manifest.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.2",
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"name": "@pie-lib/pie-toolbox-math-rendering-module",
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.10.2"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"name": "@pie-lib/pie-toolbox-module",
|
|
11
|
-
"version": "4.
|
|
11
|
+
"version": "4.12.0"
|
|
12
12
|
}
|
|
13
13
|
]
|
|
14
14
|
}
|
package/module/print.html
CHANGED
package/module/print.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.10.2/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.0/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
5
5
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -36820,8 +36820,8 @@ var primeArcminute = set$8({
|
|
|
36820
36820
|
geometry$1.primeArcminute = primeArcminute;
|
|
36821
36821
|
var doublePrimeArcSecond = set$8({
|
|
36822
36822
|
name: 'Double Prime',
|
|
36823
|
-
latex: '"
|
|
36824
|
-
write: '"
|
|
36823
|
+
latex: "''",
|
|
36824
|
+
write: "''"
|
|
36825
36825
|
});
|
|
36826
36826
|
geometry$1.doublePrimeArcSecond = doublePrimeArcSecond;
|
|
36827
36827
|
var leftArrow = set$8({
|
|
@@ -37325,6 +37325,9 @@ var updateSpans = function updateSpans() {
|
|
|
37325
37325
|
if (span && span.innerText === '∥' && span.className !== 'mq-editable-field') {
|
|
37326
37326
|
span.style.fontSize = '32px';
|
|
37327
37327
|
}
|
|
37328
|
+
if ((span.innerText === '′' || span.innerText === '′′') && !span.hasAttribute('data-prime')) {
|
|
37329
|
+
span.setAttribute('data-prime', 'true');
|
|
37330
|
+
}
|
|
37328
37331
|
});
|
|
37329
37332
|
};
|
|
37330
37333
|
updateSpans$1.updateSpans = updateSpans;
|
|
@@ -117573,10 +117576,13 @@ const require$$12$h = _dll_debug;
|
|
|
117573
117576
|
var renderMath = function renderMath(el, renderOpts) {
|
|
117574
117577
|
var _getGlobal$instance, _getGlobal$instance2;
|
|
117575
117578
|
if (window && window.MathJax && window.MathJax.customKey && window.MathJax.customKey == '@pie-lib/math-rendering-accessible@1') {
|
|
117579
|
+
console.log('RETURN FROM OLD MATH RENDERING, MATH RENDERING ACCESSIBLE WAS FOUND');
|
|
117576
117580
|
return;
|
|
117577
117581
|
}
|
|
117582
|
+
console.log('we are in old math rendering');
|
|
117578
117583
|
var isString = typeof el === 'string';
|
|
117579
117584
|
var executeOn = document.body;
|
|
117585
|
+
console.log(isString, 'is string in old math rendering');
|
|
117580
117586
|
if (isString) {
|
|
117581
117587
|
var div = document.createElement('div');
|
|
117582
117588
|
div.innerHTML = el;
|
|
@@ -117589,11 +117595,14 @@ const require$$12$h = _dll_debug;
|
|
|
117589
117595
|
var updatedDocument = html.findMath().compile().getMetrics().typeset().updateDocument();
|
|
117590
117596
|
var list = updatedDocument.math.list;
|
|
117591
117597
|
var item = list.next;
|
|
117598
|
+
console.log(item, 'item in old math rendering');
|
|
117592
117599
|
if (!item) {
|
|
117600
|
+
console.log("return '' in old math rendering");
|
|
117593
117601
|
return '';
|
|
117594
117602
|
}
|
|
117595
117603
|
var mathMl = toMMl(item.data.root);
|
|
117596
117604
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
117605
|
+
console.log(parsedMathMl, 'parsedMathMl in old math rendering');
|
|
117597
117606
|
return parsedMathMl;
|
|
117598
117607
|
}
|
|
117599
117608
|
if (!getGlobal().instance) {
|
|
@@ -117603,11 +117612,14 @@ const require$$12$h = _dll_debug;
|
|
|
117603
117612
|
log('el is undefined');
|
|
117604
117613
|
return;
|
|
117605
117614
|
}
|
|
117615
|
+
console.log(el, 'element in old math rendering');
|
|
117606
117616
|
if (el instanceof Element && (_getGlobal$instance = getGlobal().instance) !== null && _getGlobal$instance !== void 0 && _getGlobal$instance.Typeset) {
|
|
117617
|
+
console.log('Typeset element in old math rendering');
|
|
117607
117618
|
getGlobal().instance.Typeset(el);
|
|
117608
117619
|
} else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
|
|
117609
117620
|
var _getGlobal$instance3;
|
|
117610
117621
|
var arr = Array.from(el);
|
|
117622
|
+
console.log(arr, 'Typeset arr in old math rendering');
|
|
117611
117623
|
(_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
|
|
117612
117624
|
}
|
|
117613
117625
|
};
|
|
@@ -126578,7 +126590,10 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126578
126590
|
return ((_window = window) === null || _window === void 0 ? void 0 : (_window$MathJax = _window.MathJax) === null || _window$MathJax === void 0 ? void 0 : _window$MathJax.customKey) || ((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$MathJax = _window2.MathJax) === null || _window2$MathJax === void 0 ? void 0 : (_window2$MathJax$conf = _window2$MathJax.config) === null || _window2$MathJax$conf === void 0 ? void 0 : _window2$MathJax$conf.customKey);
|
|
126579
126591
|
};
|
|
126580
126592
|
var renderMath = function renderMath(el, renderOpts) {
|
|
126593
|
+
console.log("I'm in math rendering accessible");
|
|
126581
126594
|
var isString = typeof el === 'string';
|
|
126595
|
+
console.log('IS STRING', isString);
|
|
126596
|
+
console.log('renderOpts', renderOpts);
|
|
126582
126597
|
var executeOn = document.body;
|
|
126583
126598
|
if (isString) {
|
|
126584
126599
|
var div = document.createElement('div');
|
|
@@ -126586,16 +126601,19 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126586
126601
|
executeOn = div;
|
|
126587
126602
|
}
|
|
126588
126603
|
var _ref = renderOpts || ({}), skipWaitForMathRenderingLib = _ref.skipWaitForMathRenderingLib;
|
|
126604
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
126589
126605
|
var renderMathAccessible = function renderMathAccessible() {
|
|
126590
126606
|
fixMathElements(executeOn);
|
|
126591
126607
|
adjustMathMLStyle(executeOn);
|
|
126592
126608
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
126593
126609
|
if (!window.MathJax && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
126610
|
+
console.log('INITIALIZE MATHJAX ACCESSIBLE');
|
|
126594
126611
|
renderOpts = renderOpts || defaultOpts();
|
|
126595
126612
|
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
126596
126613
|
}
|
|
126597
126614
|
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
126598
126615
|
try {
|
|
126616
|
+
console.log('THE ISSUE MUST BE HERE');
|
|
126599
126617
|
MathJax.texReset();
|
|
126600
126618
|
MathJax.typesetClear();
|
|
126601
126619
|
window.MathJax.typeset([executeOn]);
|
|
@@ -126604,6 +126622,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126604
126622
|
var item = list.next;
|
|
126605
126623
|
var mathMl = toMMl(item.data.root);
|
|
126606
126624
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
126625
|
+
console.log(parsedMathMl, 'parsedMathMl');
|
|
126607
126626
|
return parsedMathMl;
|
|
126608
126627
|
} catch (error) {
|
|
126609
126628
|
console.error('Error rendering math:', error.message);
|
|
@@ -126612,11 +126631,13 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126612
126631
|
if (window.mathjaxLoadedP) {
|
|
126613
126632
|
window.mathjaxLoadedP.then(function () {
|
|
126614
126633
|
var mathJaxInstance = getGlobal().instance;
|
|
126634
|
+
console.log(mathJaxInstance, 'mathJaxInstance');
|
|
126615
126635
|
if (mathJaxInstance) {
|
|
126616
126636
|
mathJaxInstance.texReset();
|
|
126617
126637
|
mathJaxInstance.typesetClear();
|
|
126618
126638
|
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
126619
126639
|
try {
|
|
126640
|
+
console.log("I'm in typesetPromise???");
|
|
126620
126641
|
removeExcessMjxContainers(executeOn);
|
|
126621
126642
|
removePlaceholdersAndRestoreDisplay();
|
|
126622
126643
|
var _updatedDocument = mathJaxInstance.startup.document;
|
|
@@ -126640,13 +126661,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126640
126661
|
}
|
|
126641
126662
|
};
|
|
126642
126663
|
if (skipWaitForMathRenderingLib) {
|
|
126664
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
126643
126665
|
return renderMathAccessible();
|
|
126644
126666
|
} else {
|
|
126645
126667
|
if (window.hasOwnProperty(mathRenderingKEY) && window[mathRenderingKEY].instance) {
|
|
126668
|
+
console.log(mathRenderingKEY, 'mathRenderingKEY');
|
|
126646
126669
|
removePlaceholdersAndRestoreDisplay();
|
|
126647
|
-
return mr.renderMath();
|
|
126670
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
126648
126671
|
}
|
|
126649
126672
|
if (window.hasOwnProperty(mathRenderingAccessibleKEY) && window[mathRenderingAccessibleKEY].instance) {
|
|
126673
|
+
console.log(mathRenderingAccessibleKEY, 'mathRenderingAccessibleKEY');
|
|
126650
126674
|
return renderMathAccessible();
|
|
126651
126675
|
}
|
|
126652
126676
|
var waitForMathRenderingLib = function waitForMathRenderingLib(renderMathAccessibleCallback) {
|
|
@@ -126661,14 +126685,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126661
126685
|
if (mathRenderingHasLoaded || hasExceededMaxWait) {
|
|
126662
126686
|
clearInterval(checkIntervalId);
|
|
126663
126687
|
if (mathRenderingHasLoaded) {
|
|
126688
|
+
console.log(mathRenderingHasLoaded, 'mathRenderingHasLoaded');
|
|
126664
126689
|
removePlaceholdersAndRestoreDisplay();
|
|
126665
|
-
return mr.renderMath();
|
|
126690
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
126666
126691
|
}
|
|
126667
126692
|
renderMathAccessibleCallback();
|
|
126668
126693
|
}
|
|
126669
126694
|
};
|
|
126670
126695
|
checkIntervalId = setInterval(checkForLib, 100);
|
|
126671
126696
|
};
|
|
126697
|
+
console.log('waitForMathRenderingLib');
|
|
126672
126698
|
waitForMathRenderingLib(renderMathAccessible);
|
|
126673
126699
|
}
|
|
126674
126700
|
};
|
|
@@ -128300,6 +128326,9 @@ const {isEqual: require$$18$2} = _dll_lodash;
|
|
|
128300
128326
|
marginBottom: '-2px'
|
|
128301
128327
|
},
|
|
128302
128328
|
'-webkit-font-smoothing': 'antialiased !important'
|
|
128329
|
+
},
|
|
128330
|
+
'& span[data-prime="true"]': {
|
|
128331
|
+
fontFamily: 'Roboto, Helvetica, Arial, sans-serif !important'
|
|
128303
128332
|
}
|
|
128304
128333
|
},
|
|
128305
128334
|
hide: {
|
|
@@ -128754,6 +128783,9 @@ const require$$11$s = _dll_prop_types;
|
|
|
128754
128783
|
},
|
|
128755
128784
|
'& .mq-parallelogram': {
|
|
128756
128785
|
lineHeight: 0.85
|
|
128786
|
+
},
|
|
128787
|
+
'& span[data-prime="true"]': {
|
|
128788
|
+
fontFamily: 'Roboto, Helvetica, Arial, sans-serif !important'
|
|
128757
128789
|
}
|
|
128758
128790
|
},
|
|
128759
128791
|
selected: {
|
|
@@ -140438,7 +140470,7 @@ const require$$4$N = _dll_prop_types;
|
|
|
140438
140470
|
var _propTypes = _interopRequireDefault(require$$4$N);
|
|
140439
140471
|
var _grey = _interopRequireDefault(grey$1);
|
|
140440
140472
|
var PlaceHolder = function PlaceHolder(props) {
|
|
140441
|
-
var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard;
|
|
140473
|
+
var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard, isCategorize = props.isCategorize;
|
|
140442
140474
|
var names = (0, _classnames["default"])(classes.placeholder, disabled && classes.disabled, isOver && classes.over, classes[type], className);
|
|
140443
140475
|
var style = {};
|
|
140444
140476
|
if (grid && grid.columns) {
|
|
@@ -140448,9 +140480,10 @@ const require$$4$N = _dll_prop_types;
|
|
|
140448
140480
|
var repeatValue = grid.rowsRepeatValue || '1fr';
|
|
140449
140481
|
style.gridTemplateRows = ("repeat(").concat(grid.rows, ", ").concat(repeatValue, ")");
|
|
140450
140482
|
}
|
|
140483
|
+
var boardStyle = isCategorize ? classes.categorizeBoard : classes.board;
|
|
140451
140484
|
return _react["default"].createElement("div", {
|
|
140452
140485
|
style: style,
|
|
140453
|
-
className: choiceBoard ?
|
|
140486
|
+
className: choiceBoard ? boardStyle : names
|
|
140454
140487
|
}, children);
|
|
140455
140488
|
};
|
|
140456
140489
|
exports.PlaceHolder = PlaceHolder;
|
|
@@ -140467,7 +140500,8 @@ const require$$4$N = _dll_prop_types;
|
|
|
140467
140500
|
isOver: _propTypes["default"].bool,
|
|
140468
140501
|
index: _propTypes["default"].number,
|
|
140469
140502
|
type: _propTypes["default"].string,
|
|
140470
|
-
disabled: _propTypes["default"].bool
|
|
140503
|
+
disabled: _propTypes["default"].bool,
|
|
140504
|
+
isCategorize: _propTypes["default"].bool
|
|
140471
140505
|
};
|
|
140472
140506
|
var styles = function styles(theme) {
|
|
140473
140507
|
return {
|
|
@@ -140501,6 +140535,17 @@ const require$$4$N = _dll_prop_types;
|
|
|
140501
140535
|
justifyContent: 'center',
|
|
140502
140536
|
overflow: 'hidden',
|
|
140503
140537
|
touchAction: 'none'
|
|
140538
|
+
},
|
|
140539
|
+
categorizeBoard: {
|
|
140540
|
+
border: '1px solid #D1D1D1',
|
|
140541
|
+
padding: theme.spacing.unit / 2,
|
|
140542
|
+
display: 'flex',
|
|
140543
|
+
flexWrap: 'wrap',
|
|
140544
|
+
alignItems: 'center',
|
|
140545
|
+
minHeight: '100px',
|
|
140546
|
+
justifyContent: 'center',
|
|
140547
|
+
overflow: 'hidden',
|
|
140548
|
+
touchAction: 'none'
|
|
140504
140549
|
}
|
|
140505
140550
|
};
|
|
140506
140551
|
};
|
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.10.
|
|
4
|
+
"version": "2.10.3",
|
|
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.10.
|
|
11
|
-
"@pie-element/rubric": "^3.10.
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^3.10.3",
|
|
11
|
+
"@pie-element/rubric": "^3.10.3",
|
|
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": "
|
|
18
|
+
"gitHead": "c05a86593b64b6c7a7d48ff484cfa5a2a3ade3ea",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|