@pie-element/rubric 3.2.1 → 3.2.2-next.10
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/configure/package.json +1 -1
- package/controller/package.json +1 -1
- package/module/configure.js +15 -55
- package/module/index.html +1 -1
- package/module/manifest.json +1 -1
- package/module/print.html +1 -1
- package/package.json +3 -3
package/configure/package.json
CHANGED
package/controller/package.json
CHANGED
package/module/configure.js
CHANGED
|
@@ -116493,47 +116493,12 @@ const require$$12$j = _dll_debug;
|
|
|
116493
116493
|
packages: packages,
|
|
116494
116494
|
macros: macros,
|
|
116495
116495
|
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
|
116496
|
-
processEscapes: true
|
|
116497
|
-
options: {
|
|
116498
|
-
enableExplorer: true,
|
|
116499
|
-
enableAssistiveMml: true,
|
|
116500
|
-
a11y: {
|
|
116501
|
-
speech: true,
|
|
116502
|
-
braille: true,
|
|
116503
|
-
subtitles: true
|
|
116504
|
-
},
|
|
116505
|
-
sre: {
|
|
116506
|
-
domain: 'default',
|
|
116507
|
-
style: 'default',
|
|
116508
|
-
locale: 'en'
|
|
116509
|
-
}
|
|
116510
|
-
}
|
|
116496
|
+
processEscapes: true
|
|
116511
116497
|
} : {
|
|
116512
116498
|
packages: packages,
|
|
116513
|
-
macros: macros
|
|
116514
|
-
options: {
|
|
116515
|
-
enableExplorer: true,
|
|
116516
|
-
enableAssistiveMml: true,
|
|
116517
|
-
a11y: {
|
|
116518
|
-
speech: true,
|
|
116519
|
-
braille: true,
|
|
116520
|
-
subtitles: true
|
|
116521
|
-
},
|
|
116522
|
-
sre: {
|
|
116523
|
-
domain: 'default',
|
|
116524
|
-
style: 'default',
|
|
116525
|
-
locale: 'en'
|
|
116526
|
-
}
|
|
116527
|
-
}
|
|
116499
|
+
macros: macros
|
|
116528
116500
|
};
|
|
116529
116501
|
var mmlConfig = {
|
|
116530
|
-
options: {
|
|
116531
|
-
a11y: {
|
|
116532
|
-
speech: true,
|
|
116533
|
-
braille: true,
|
|
116534
|
-
subtitles: true
|
|
116535
|
-
}
|
|
116536
|
-
},
|
|
116537
116502
|
parseError: function parseError(node) {
|
|
116538
116503
|
console.log('error:', node);
|
|
116539
116504
|
this.error(this.adaptor.textContent(node).replace(/\n.*/g, ''));
|
|
@@ -116542,12 +116507,7 @@ const require$$12$j = _dll_debug;
|
|
|
116542
116507
|
var fontURL = ("https://unpkg.com/mathjax-full@").concat(_mathjax.mathjax.version, "/ts/output/chtml/fonts/tex-woff-v2");
|
|
116543
116508
|
var htmlConfig = {
|
|
116544
116509
|
fontURL: fontURL,
|
|
116545
|
-
wrapperFactory: new _WrapperFactory.CHTMLWrapperFactory(_objectSpread(_objectSpread({}, _WrapperFactory.CHTMLWrapperFactory.defaultNodes), _mstack.chtmlNodes))
|
|
116546
|
-
options: {
|
|
116547
|
-
renderActions: {
|
|
116548
|
-
assistiveMml: [['AssistiveMmlHandler']]
|
|
116549
|
-
}
|
|
116550
|
-
}
|
|
116510
|
+
wrapperFactory: new _WrapperFactory.CHTMLWrapperFactory(_objectSpread(_objectSpread({}, _WrapperFactory.CHTMLWrapperFactory.defaultNodes), _mstack.chtmlNodes))
|
|
116551
116511
|
};
|
|
116552
116512
|
var mml = new _mathml.MathML(mmlConfig);
|
|
116553
116513
|
var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
|
|
@@ -116561,16 +116521,6 @@ const require$$12$j = _dll_debug;
|
|
|
116561
116521
|
console.error(err);
|
|
116562
116522
|
doc.typesetError(math, err);
|
|
116563
116523
|
},
|
|
116564
|
-
options: {
|
|
116565
|
-
enableAssistiveMml: true,
|
|
116566
|
-
menuOptions: {
|
|
116567
|
-
settings: {
|
|
116568
|
-
assistiveMml: true,
|
|
116569
|
-
collapsible: true,
|
|
116570
|
-
explorer: true
|
|
116571
|
-
}
|
|
116572
|
-
}
|
|
116573
|
-
},
|
|
116574
116524
|
InputJax: [new _tex.TeX(texConfig), mml],
|
|
116575
116525
|
OutputJax: new _chtml.CHTML(htmlConfig)
|
|
116576
116526
|
});
|
|
@@ -116639,9 +116589,9 @@ const require$$12$j = _dll_debug;
|
|
|
116639
116589
|
log('el is undefined');
|
|
116640
116590
|
return;
|
|
116641
116591
|
}
|
|
116642
|
-
if (el instanceof Element) {
|
|
116592
|
+
if (el instanceof Element && getGlobal().instance) {
|
|
116643
116593
|
getGlobal().instance.Typeset(el);
|
|
116644
|
-
} else if (el.length) {
|
|
116594
|
+
} else if (el.length && getGlobal().instance) {
|
|
116645
116595
|
var _getGlobal$instance;
|
|
116646
116596
|
var arr = Array.from(el);
|
|
116647
116597
|
(_getGlobal$instance = getGlobal().instance).Typeset.apply(_getGlobal$instance, (0, _toConsumableArray2["default"])(arr));
|
|
@@ -126285,8 +126235,18 @@ const require$$11$v = _dll_prop_types;
|
|
|
126285
126235
|
return _this;
|
|
126286
126236
|
}
|
|
126287
126237
|
(0, _createClass2["default"])(PreviewPrompt, [{
|
|
126238
|
+
key: "componentDidMount",
|
|
126239
|
+
value: function componentDidMount() {
|
|
126240
|
+
this.alignImages();
|
|
126241
|
+
}
|
|
126242
|
+
}, {
|
|
126288
126243
|
key: "componentDidUpdate",
|
|
126289
126244
|
value: function componentDidUpdate() {
|
|
126245
|
+
this.alignImages();
|
|
126246
|
+
}
|
|
126247
|
+
}, {
|
|
126248
|
+
key: "alignImages",
|
|
126249
|
+
value: function alignImages() {
|
|
126290
126250
|
var previewPrompt = document.querySelector('#preview-prompt');
|
|
126291
126251
|
var images = previewPrompt && previewPrompt.getElementsByTagName('img');
|
|
126292
126252
|
if (images && images.length) {
|
package/module/index.html
CHANGED
package/module/manifest.json
CHANGED
package/module/print.html
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/rubric",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2-next.10+da102cc68",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "src/index.js",
|
|
6
6
|
"description": "Rubric Scoring Interaction",
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@material-ui/core": "^3.9.2",
|
|
13
|
-
"@pie-lib/pie-toolbox": "1.7.
|
|
13
|
+
"@pie-lib/pie-toolbox": "1.7.2",
|
|
14
14
|
"prop-types": "^15.7.2"
|
|
15
15
|
},
|
|
16
16
|
"author": "pie framework developers",
|
|
17
17
|
"license": "ISC",
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "da102cc68a838a61afc02e4f5db93df4a1897e5b",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|