@pie-element/complex-rubric 2.3.3-next.2 → 2.3.3-next.6
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/controller/package.json +1 -1
- package/module/configure.js +15 -55
- package/module/element.js +15 -55
- package/module/print.js +15 -55
- package/package.json +4 -4
package/controller/package.json
CHANGED
package/module/configure.js
CHANGED
|
@@ -124147,47 +124147,12 @@ const require$$12$h = _dll_debug;
|
|
|
124147
124147
|
packages: packages,
|
|
124148
124148
|
macros: macros,
|
|
124149
124149
|
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
|
124150
|
-
processEscapes: true
|
|
124151
|
-
options: {
|
|
124152
|
-
enableExplorer: true,
|
|
124153
|
-
enableAssistiveMml: true,
|
|
124154
|
-
a11y: {
|
|
124155
|
-
speech: true,
|
|
124156
|
-
braille: true,
|
|
124157
|
-
subtitles: true
|
|
124158
|
-
},
|
|
124159
|
-
sre: {
|
|
124160
|
-
domain: 'default',
|
|
124161
|
-
style: 'default',
|
|
124162
|
-
locale: 'en'
|
|
124163
|
-
}
|
|
124164
|
-
}
|
|
124150
|
+
processEscapes: true
|
|
124165
124151
|
} : {
|
|
124166
124152
|
packages: packages,
|
|
124167
|
-
macros: macros
|
|
124168
|
-
options: {
|
|
124169
|
-
enableExplorer: true,
|
|
124170
|
-
enableAssistiveMml: true,
|
|
124171
|
-
a11y: {
|
|
124172
|
-
speech: true,
|
|
124173
|
-
braille: true,
|
|
124174
|
-
subtitles: true
|
|
124175
|
-
},
|
|
124176
|
-
sre: {
|
|
124177
|
-
domain: 'default',
|
|
124178
|
-
style: 'default',
|
|
124179
|
-
locale: 'en'
|
|
124180
|
-
}
|
|
124181
|
-
}
|
|
124153
|
+
macros: macros
|
|
124182
124154
|
};
|
|
124183
124155
|
var mmlConfig = {
|
|
124184
|
-
options: {
|
|
124185
|
-
a11y: {
|
|
124186
|
-
speech: true,
|
|
124187
|
-
braille: true,
|
|
124188
|
-
subtitles: true
|
|
124189
|
-
}
|
|
124190
|
-
},
|
|
124191
124156
|
parseError: function parseError(node) {
|
|
124192
124157
|
console.log('error:', node);
|
|
124193
124158
|
this.error(this.adaptor.textContent(node).replace(/\n.*/g, ''));
|
|
@@ -124196,12 +124161,7 @@ const require$$12$h = _dll_debug;
|
|
|
124196
124161
|
var fontURL = ("https://unpkg.com/mathjax-full@").concat(_mathjax.mathjax.version, "/ts/output/chtml/fonts/tex-woff-v2");
|
|
124197
124162
|
var htmlConfig = {
|
|
124198
124163
|
fontURL: fontURL,
|
|
124199
|
-
wrapperFactory: new _WrapperFactory.CHTMLWrapperFactory(_objectSpread(_objectSpread({}, _WrapperFactory.CHTMLWrapperFactory.defaultNodes), _mstack.chtmlNodes))
|
|
124200
|
-
options: {
|
|
124201
|
-
renderActions: {
|
|
124202
|
-
assistiveMml: [['AssistiveMmlHandler']]
|
|
124203
|
-
}
|
|
124204
|
-
}
|
|
124164
|
+
wrapperFactory: new _WrapperFactory.CHTMLWrapperFactory(_objectSpread(_objectSpread({}, _WrapperFactory.CHTMLWrapperFactory.defaultNodes), _mstack.chtmlNodes))
|
|
124205
124165
|
};
|
|
124206
124166
|
var mml = new _mathml.MathML(mmlConfig);
|
|
124207
124167
|
var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
|
|
@@ -124215,16 +124175,6 @@ const require$$12$h = _dll_debug;
|
|
|
124215
124175
|
console.error(err);
|
|
124216
124176
|
doc.typesetError(math, err);
|
|
124217
124177
|
},
|
|
124218
|
-
options: {
|
|
124219
|
-
enableAssistiveMml: true,
|
|
124220
|
-
menuOptions: {
|
|
124221
|
-
settings: {
|
|
124222
|
-
assistiveMml: true,
|
|
124223
|
-
collapsible: true,
|
|
124224
|
-
explorer: true
|
|
124225
|
-
}
|
|
124226
|
-
}
|
|
124227
|
-
},
|
|
124228
124178
|
InputJax: [new _tex.TeX(texConfig), mml],
|
|
124229
124179
|
OutputJax: new _chtml.CHTML(htmlConfig)
|
|
124230
124180
|
});
|
|
@@ -124293,9 +124243,9 @@ const require$$12$h = _dll_debug;
|
|
|
124293
124243
|
log('el is undefined');
|
|
124294
124244
|
return;
|
|
124295
124245
|
}
|
|
124296
|
-
if (el instanceof Element) {
|
|
124246
|
+
if (el instanceof Element && getGlobal().instance) {
|
|
124297
124247
|
getGlobal().instance.Typeset(el);
|
|
124298
|
-
} else if (el.length) {
|
|
124248
|
+
} else if (el.length && getGlobal().instance) {
|
|
124299
124249
|
var _getGlobal$instance;
|
|
124300
124250
|
var arr = Array.from(el);
|
|
124301
124251
|
(_getGlobal$instance = getGlobal().instance).Typeset.apply(_getGlobal$instance, (0, _toConsumableArray2["default"])(arr));
|
|
@@ -133939,8 +133889,18 @@ const require$$11$u = _dll_prop_types;
|
|
|
133939
133889
|
return _this;
|
|
133940
133890
|
}
|
|
133941
133891
|
(0, _createClass2["default"])(PreviewPrompt, [{
|
|
133892
|
+
key: "componentDidMount",
|
|
133893
|
+
value: function componentDidMount() {
|
|
133894
|
+
this.alignImages();
|
|
133895
|
+
}
|
|
133896
|
+
}, {
|
|
133942
133897
|
key: "componentDidUpdate",
|
|
133943
133898
|
value: function componentDidUpdate() {
|
|
133899
|
+
this.alignImages();
|
|
133900
|
+
}
|
|
133901
|
+
}, {
|
|
133902
|
+
key: "alignImages",
|
|
133903
|
+
value: function alignImages() {
|
|
133944
133904
|
var previewPrompt = document.querySelector('#preview-prompt');
|
|
133945
133905
|
var images = previewPrompt && previewPrompt.getElementsByTagName('img');
|
|
133946
133906
|
if (images && images.length) {
|
package/module/element.js
CHANGED
|
@@ -117478,47 +117478,12 @@ const require$$12$h = _dll_debug;
|
|
|
117478
117478
|
packages: packages,
|
|
117479
117479
|
macros: macros,
|
|
117480
117480
|
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
|
117481
|
-
processEscapes: true
|
|
117482
|
-
options: {
|
|
117483
|
-
enableExplorer: true,
|
|
117484
|
-
enableAssistiveMml: true,
|
|
117485
|
-
a11y: {
|
|
117486
|
-
speech: true,
|
|
117487
|
-
braille: true,
|
|
117488
|
-
subtitles: true
|
|
117489
|
-
},
|
|
117490
|
-
sre: {
|
|
117491
|
-
domain: 'default',
|
|
117492
|
-
style: 'default',
|
|
117493
|
-
locale: 'en'
|
|
117494
|
-
}
|
|
117495
|
-
}
|
|
117481
|
+
processEscapes: true
|
|
117496
117482
|
} : {
|
|
117497
117483
|
packages: packages,
|
|
117498
|
-
macros: macros
|
|
117499
|
-
options: {
|
|
117500
|
-
enableExplorer: true,
|
|
117501
|
-
enableAssistiveMml: true,
|
|
117502
|
-
a11y: {
|
|
117503
|
-
speech: true,
|
|
117504
|
-
braille: true,
|
|
117505
|
-
subtitles: true
|
|
117506
|
-
},
|
|
117507
|
-
sre: {
|
|
117508
|
-
domain: 'default',
|
|
117509
|
-
style: 'default',
|
|
117510
|
-
locale: 'en'
|
|
117511
|
-
}
|
|
117512
|
-
}
|
|
117484
|
+
macros: macros
|
|
117513
117485
|
};
|
|
117514
117486
|
var mmlConfig = {
|
|
117515
|
-
options: {
|
|
117516
|
-
a11y: {
|
|
117517
|
-
speech: true,
|
|
117518
|
-
braille: true,
|
|
117519
|
-
subtitles: true
|
|
117520
|
-
}
|
|
117521
|
-
},
|
|
117522
117487
|
parseError: function parseError(node) {
|
|
117523
117488
|
console.log('error:', node);
|
|
117524
117489
|
this.error(this.adaptor.textContent(node).replace(/\n.*/g, ''));
|
|
@@ -117527,12 +117492,7 @@ const require$$12$h = _dll_debug;
|
|
|
117527
117492
|
var fontURL = ("https://unpkg.com/mathjax-full@").concat(_mathjax.mathjax.version, "/ts/output/chtml/fonts/tex-woff-v2");
|
|
117528
117493
|
var htmlConfig = {
|
|
117529
117494
|
fontURL: fontURL,
|
|
117530
|
-
wrapperFactory: new _WrapperFactory.CHTMLWrapperFactory(_objectSpread(_objectSpread({}, _WrapperFactory.CHTMLWrapperFactory.defaultNodes), _mstack.chtmlNodes))
|
|
117531
|
-
options: {
|
|
117532
|
-
renderActions: {
|
|
117533
|
-
assistiveMml: [['AssistiveMmlHandler']]
|
|
117534
|
-
}
|
|
117535
|
-
}
|
|
117495
|
+
wrapperFactory: new _WrapperFactory.CHTMLWrapperFactory(_objectSpread(_objectSpread({}, _WrapperFactory.CHTMLWrapperFactory.defaultNodes), _mstack.chtmlNodes))
|
|
117536
117496
|
};
|
|
117537
117497
|
var mml = new _mathml.MathML(mmlConfig);
|
|
117538
117498
|
var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
|
|
@@ -117546,16 +117506,6 @@ const require$$12$h = _dll_debug;
|
|
|
117546
117506
|
console.error(err);
|
|
117547
117507
|
doc.typesetError(math, err);
|
|
117548
117508
|
},
|
|
117549
|
-
options: {
|
|
117550
|
-
enableAssistiveMml: true,
|
|
117551
|
-
menuOptions: {
|
|
117552
|
-
settings: {
|
|
117553
|
-
assistiveMml: true,
|
|
117554
|
-
collapsible: true,
|
|
117555
|
-
explorer: true
|
|
117556
|
-
}
|
|
117557
|
-
}
|
|
117558
|
-
},
|
|
117559
117509
|
InputJax: [new _tex.TeX(texConfig), mml],
|
|
117560
117510
|
OutputJax: new _chtml.CHTML(htmlConfig)
|
|
117561
117511
|
});
|
|
@@ -117624,9 +117574,9 @@ const require$$12$h = _dll_debug;
|
|
|
117624
117574
|
log('el is undefined');
|
|
117625
117575
|
return;
|
|
117626
117576
|
}
|
|
117627
|
-
if (el instanceof Element) {
|
|
117577
|
+
if (el instanceof Element && getGlobal().instance) {
|
|
117628
117578
|
getGlobal().instance.Typeset(el);
|
|
117629
|
-
} else if (el.length) {
|
|
117579
|
+
} else if (el.length && getGlobal().instance) {
|
|
117630
117580
|
var _getGlobal$instance;
|
|
117631
117581
|
var arr = Array.from(el);
|
|
117632
117582
|
(_getGlobal$instance = getGlobal().instance).Typeset.apply(_getGlobal$instance, (0, _toConsumableArray2["default"])(arr));
|
|
@@ -127270,8 +127220,18 @@ const require$$11$u = _dll_prop_types;
|
|
|
127270
127220
|
return _this;
|
|
127271
127221
|
}
|
|
127272
127222
|
(0, _createClass2["default"])(PreviewPrompt, [{
|
|
127223
|
+
key: "componentDidMount",
|
|
127224
|
+
value: function componentDidMount() {
|
|
127225
|
+
this.alignImages();
|
|
127226
|
+
}
|
|
127227
|
+
}, {
|
|
127273
127228
|
key: "componentDidUpdate",
|
|
127274
127229
|
value: function componentDidUpdate() {
|
|
127230
|
+
this.alignImages();
|
|
127231
|
+
}
|
|
127232
|
+
}, {
|
|
127233
|
+
key: "alignImages",
|
|
127234
|
+
value: function alignImages() {
|
|
127275
127235
|
var previewPrompt = document.querySelector('#preview-prompt');
|
|
127276
127236
|
var images = previewPrompt && previewPrompt.getElementsByTagName('img');
|
|
127277
127237
|
if (images && images.length) {
|
package/module/print.js
CHANGED
|
@@ -117478,47 +117478,12 @@ const require$$12$h = _dll_debug;
|
|
|
117478
117478
|
packages: packages,
|
|
117479
117479
|
macros: macros,
|
|
117480
117480
|
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
|
117481
|
-
processEscapes: true
|
|
117482
|
-
options: {
|
|
117483
|
-
enableExplorer: true,
|
|
117484
|
-
enableAssistiveMml: true,
|
|
117485
|
-
a11y: {
|
|
117486
|
-
speech: true,
|
|
117487
|
-
braille: true,
|
|
117488
|
-
subtitles: true
|
|
117489
|
-
},
|
|
117490
|
-
sre: {
|
|
117491
|
-
domain: 'default',
|
|
117492
|
-
style: 'default',
|
|
117493
|
-
locale: 'en'
|
|
117494
|
-
}
|
|
117495
|
-
}
|
|
117481
|
+
processEscapes: true
|
|
117496
117482
|
} : {
|
|
117497
117483
|
packages: packages,
|
|
117498
|
-
macros: macros
|
|
117499
|
-
options: {
|
|
117500
|
-
enableExplorer: true,
|
|
117501
|
-
enableAssistiveMml: true,
|
|
117502
|
-
a11y: {
|
|
117503
|
-
speech: true,
|
|
117504
|
-
braille: true,
|
|
117505
|
-
subtitles: true
|
|
117506
|
-
},
|
|
117507
|
-
sre: {
|
|
117508
|
-
domain: 'default',
|
|
117509
|
-
style: 'default',
|
|
117510
|
-
locale: 'en'
|
|
117511
|
-
}
|
|
117512
|
-
}
|
|
117484
|
+
macros: macros
|
|
117513
117485
|
};
|
|
117514
117486
|
var mmlConfig = {
|
|
117515
|
-
options: {
|
|
117516
|
-
a11y: {
|
|
117517
|
-
speech: true,
|
|
117518
|
-
braille: true,
|
|
117519
|
-
subtitles: true
|
|
117520
|
-
}
|
|
117521
|
-
},
|
|
117522
117487
|
parseError: function parseError(node) {
|
|
117523
117488
|
console.log('error:', node);
|
|
117524
117489
|
this.error(this.adaptor.textContent(node).replace(/\n.*/g, ''));
|
|
@@ -117527,12 +117492,7 @@ const require$$12$h = _dll_debug;
|
|
|
117527
117492
|
var fontURL = ("https://unpkg.com/mathjax-full@").concat(_mathjax.mathjax.version, "/ts/output/chtml/fonts/tex-woff-v2");
|
|
117528
117493
|
var htmlConfig = {
|
|
117529
117494
|
fontURL: fontURL,
|
|
117530
|
-
wrapperFactory: new _WrapperFactory.CHTMLWrapperFactory(_objectSpread(_objectSpread({}, _WrapperFactory.CHTMLWrapperFactory.defaultNodes), _mstack.chtmlNodes))
|
|
117531
|
-
options: {
|
|
117532
|
-
renderActions: {
|
|
117533
|
-
assistiveMml: [['AssistiveMmlHandler']]
|
|
117534
|
-
}
|
|
117535
|
-
}
|
|
117495
|
+
wrapperFactory: new _WrapperFactory.CHTMLWrapperFactory(_objectSpread(_objectSpread({}, _WrapperFactory.CHTMLWrapperFactory.defaultNodes), _mstack.chtmlNodes))
|
|
117536
117496
|
};
|
|
117537
117497
|
var mml = new _mathml.MathML(mmlConfig);
|
|
117538
117498
|
var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
|
|
@@ -117546,16 +117506,6 @@ const require$$12$h = _dll_debug;
|
|
|
117546
117506
|
console.error(err);
|
|
117547
117507
|
doc.typesetError(math, err);
|
|
117548
117508
|
},
|
|
117549
|
-
options: {
|
|
117550
|
-
enableAssistiveMml: true,
|
|
117551
|
-
menuOptions: {
|
|
117552
|
-
settings: {
|
|
117553
|
-
assistiveMml: true,
|
|
117554
|
-
collapsible: true,
|
|
117555
|
-
explorer: true
|
|
117556
|
-
}
|
|
117557
|
-
}
|
|
117558
|
-
},
|
|
117559
117509
|
InputJax: [new _tex.TeX(texConfig), mml],
|
|
117560
117510
|
OutputJax: new _chtml.CHTML(htmlConfig)
|
|
117561
117511
|
});
|
|
@@ -117624,9 +117574,9 @@ const require$$12$h = _dll_debug;
|
|
|
117624
117574
|
log('el is undefined');
|
|
117625
117575
|
return;
|
|
117626
117576
|
}
|
|
117627
|
-
if (el instanceof Element) {
|
|
117577
|
+
if (el instanceof Element && getGlobal().instance) {
|
|
117628
117578
|
getGlobal().instance.Typeset(el);
|
|
117629
|
-
} else if (el.length) {
|
|
117579
|
+
} else if (el.length && getGlobal().instance) {
|
|
117630
117580
|
var _getGlobal$instance;
|
|
117631
117581
|
var arr = Array.from(el);
|
|
117632
117582
|
(_getGlobal$instance = getGlobal().instance).Typeset.apply(_getGlobal$instance, (0, _toConsumableArray2["default"])(arr));
|
|
@@ -127270,8 +127220,18 @@ const require$$11$u = _dll_prop_types;
|
|
|
127270
127220
|
return _this;
|
|
127271
127221
|
}
|
|
127272
127222
|
(0, _createClass2["default"])(PreviewPrompt, [{
|
|
127223
|
+
key: "componentDidMount",
|
|
127224
|
+
value: function componentDidMount() {
|
|
127225
|
+
this.alignImages();
|
|
127226
|
+
}
|
|
127227
|
+
}, {
|
|
127273
127228
|
key: "componentDidUpdate",
|
|
127274
127229
|
value: function componentDidUpdate() {
|
|
127230
|
+
this.alignImages();
|
|
127231
|
+
}
|
|
127232
|
+
}, {
|
|
127233
|
+
key: "alignImages",
|
|
127234
|
+
value: function alignImages() {
|
|
127275
127235
|
var previewPrompt = document.querySelector('#preview-prompt');
|
|
127276
127236
|
var images = previewPrompt && previewPrompt.getElementsByTagName('img');
|
|
127277
127237
|
if (images && images.length) {
|
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.3.3-next.
|
|
4
|
+
"version": "2.3.3-next.6+4ff9971e6",
|
|
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.3.2-next.
|
|
11
|
-
"@pie-element/rubric": "^3.2.2-next.
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^3.3.2-next.6+4ff9971e6",
|
|
11
|
+
"@pie-element/rubric": "^3.2.2-next.6+4ff9971e6",
|
|
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": "4ff9971e65b680aea180c94f9e85cab7249af2fb",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|