@pie-element/explicit-constructed-response 6.3.2-next.2 → 6.3.2-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/configure/package.json +1 -1
- package/controller/package.json +1 -1
- package/module/element.js +15 -55
- package/module/print.js +15 -55
- package/package.json +3 -3
package/configure/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@material-ui/core": "^3.9.2",
|
|
9
9
|
"@material-ui/icons": "^3.0.1",
|
|
10
10
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
11
|
-
"@pie-lib/pie-toolbox": "1.7.
|
|
11
|
+
"@pie-lib/pie-toolbox": "1.7.2",
|
|
12
12
|
"classnames": "^2.2.6",
|
|
13
13
|
"debug": "^3.1.0",
|
|
14
14
|
"lodash": "^4.17.15",
|
package/controller/package.json
CHANGED
package/module/element.js
CHANGED
|
@@ -69786,47 +69786,12 @@ const require$$12$a = _dll_debug;
|
|
|
69786
69786
|
packages: packages,
|
|
69787
69787
|
macros: macros,
|
|
69788
69788
|
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
|
69789
|
-
processEscapes: true
|
|
69790
|
-
options: {
|
|
69791
|
-
enableExplorer: true,
|
|
69792
|
-
enableAssistiveMml: true,
|
|
69793
|
-
a11y: {
|
|
69794
|
-
speech: true,
|
|
69795
|
-
braille: true,
|
|
69796
|
-
subtitles: true
|
|
69797
|
-
},
|
|
69798
|
-
sre: {
|
|
69799
|
-
domain: 'default',
|
|
69800
|
-
style: 'default',
|
|
69801
|
-
locale: 'en'
|
|
69802
|
-
}
|
|
69803
|
-
}
|
|
69789
|
+
processEscapes: true
|
|
69804
69790
|
} : {
|
|
69805
69791
|
packages: packages,
|
|
69806
|
-
macros: macros
|
|
69807
|
-
options: {
|
|
69808
|
-
enableExplorer: true,
|
|
69809
|
-
enableAssistiveMml: true,
|
|
69810
|
-
a11y: {
|
|
69811
|
-
speech: true,
|
|
69812
|
-
braille: true,
|
|
69813
|
-
subtitles: true
|
|
69814
|
-
},
|
|
69815
|
-
sre: {
|
|
69816
|
-
domain: 'default',
|
|
69817
|
-
style: 'default',
|
|
69818
|
-
locale: 'en'
|
|
69819
|
-
}
|
|
69820
|
-
}
|
|
69792
|
+
macros: macros
|
|
69821
69793
|
};
|
|
69822
69794
|
var mmlConfig = {
|
|
69823
|
-
options: {
|
|
69824
|
-
a11y: {
|
|
69825
|
-
speech: true,
|
|
69826
|
-
braille: true,
|
|
69827
|
-
subtitles: true
|
|
69828
|
-
}
|
|
69829
|
-
},
|
|
69830
69795
|
parseError: function parseError(node) {
|
|
69831
69796
|
console.log('error:', node);
|
|
69832
69797
|
this.error(this.adaptor.textContent(node).replace(/\n.*/g, ''));
|
|
@@ -69835,12 +69800,7 @@ const require$$12$a = _dll_debug;
|
|
|
69835
69800
|
var fontURL = ("https://unpkg.com/mathjax-full@").concat(_mathjax.mathjax.version, "/ts/output/chtml/fonts/tex-woff-v2");
|
|
69836
69801
|
var htmlConfig = {
|
|
69837
69802
|
fontURL: fontURL,
|
|
69838
|
-
wrapperFactory: new _WrapperFactory.CHTMLWrapperFactory(_objectSpread(_objectSpread({}, _WrapperFactory.CHTMLWrapperFactory.defaultNodes), _mstack.chtmlNodes))
|
|
69839
|
-
options: {
|
|
69840
|
-
renderActions: {
|
|
69841
|
-
assistiveMml: [['AssistiveMmlHandler']]
|
|
69842
|
-
}
|
|
69843
|
-
}
|
|
69803
|
+
wrapperFactory: new _WrapperFactory.CHTMLWrapperFactory(_objectSpread(_objectSpread({}, _WrapperFactory.CHTMLWrapperFactory.defaultNodes), _mstack.chtmlNodes))
|
|
69844
69804
|
};
|
|
69845
69805
|
var mml = new _mathml.MathML(mmlConfig);
|
|
69846
69806
|
var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
|
|
@@ -69854,16 +69814,6 @@ const require$$12$a = _dll_debug;
|
|
|
69854
69814
|
console.error(err);
|
|
69855
69815
|
doc.typesetError(math, err);
|
|
69856
69816
|
},
|
|
69857
|
-
options: {
|
|
69858
|
-
enableAssistiveMml: true,
|
|
69859
|
-
menuOptions: {
|
|
69860
|
-
settings: {
|
|
69861
|
-
assistiveMml: true,
|
|
69862
|
-
collapsible: true,
|
|
69863
|
-
explorer: true
|
|
69864
|
-
}
|
|
69865
|
-
}
|
|
69866
|
-
},
|
|
69867
69817
|
InputJax: [new _tex.TeX(texConfig), mml],
|
|
69868
69818
|
OutputJax: new _chtml.CHTML(htmlConfig)
|
|
69869
69819
|
});
|
|
@@ -69932,9 +69882,9 @@ const require$$12$a = _dll_debug;
|
|
|
69932
69882
|
log('el is undefined');
|
|
69933
69883
|
return;
|
|
69934
69884
|
}
|
|
69935
|
-
if (el instanceof Element) {
|
|
69885
|
+
if (el instanceof Element && getGlobal().instance) {
|
|
69936
69886
|
getGlobal().instance.Typeset(el);
|
|
69937
|
-
} else if (el.length) {
|
|
69887
|
+
} else if (el.length && getGlobal().instance) {
|
|
69938
69888
|
var _getGlobal$instance;
|
|
69939
69889
|
var arr = Array.from(el);
|
|
69940
69890
|
(_getGlobal$instance = getGlobal().instance).Typeset.apply(_getGlobal$instance, (0, _toConsumableArray2["default"])(arr));
|
|
@@ -120216,8 +120166,18 @@ const require$$11$2 = _dll_prop_types;
|
|
|
120216
120166
|
return _this;
|
|
120217
120167
|
}
|
|
120218
120168
|
(0, _createClass2["default"])(PreviewPrompt, [{
|
|
120169
|
+
key: "componentDidMount",
|
|
120170
|
+
value: function componentDidMount() {
|
|
120171
|
+
this.alignImages();
|
|
120172
|
+
}
|
|
120173
|
+
}, {
|
|
120219
120174
|
key: "componentDidUpdate",
|
|
120220
120175
|
value: function componentDidUpdate() {
|
|
120176
|
+
this.alignImages();
|
|
120177
|
+
}
|
|
120178
|
+
}, {
|
|
120179
|
+
key: "alignImages",
|
|
120180
|
+
value: function alignImages() {
|
|
120221
120181
|
var previewPrompt = document.querySelector('#preview-prompt');
|
|
120222
120182
|
var images = previewPrompt && previewPrompt.getElementsByTagName('img');
|
|
120223
120183
|
if (images && images.length) {
|
package/module/print.js
CHANGED
|
@@ -69749,47 +69749,12 @@ const require$$12$a = _dll_debug;
|
|
|
69749
69749
|
packages: packages,
|
|
69750
69750
|
macros: macros,
|
|
69751
69751
|
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
|
69752
|
-
processEscapes: true
|
|
69753
|
-
options: {
|
|
69754
|
-
enableExplorer: true,
|
|
69755
|
-
enableAssistiveMml: true,
|
|
69756
|
-
a11y: {
|
|
69757
|
-
speech: true,
|
|
69758
|
-
braille: true,
|
|
69759
|
-
subtitles: true
|
|
69760
|
-
},
|
|
69761
|
-
sre: {
|
|
69762
|
-
domain: 'default',
|
|
69763
|
-
style: 'default',
|
|
69764
|
-
locale: 'en'
|
|
69765
|
-
}
|
|
69766
|
-
}
|
|
69752
|
+
processEscapes: true
|
|
69767
69753
|
} : {
|
|
69768
69754
|
packages: packages,
|
|
69769
|
-
macros: macros
|
|
69770
|
-
options: {
|
|
69771
|
-
enableExplorer: true,
|
|
69772
|
-
enableAssistiveMml: true,
|
|
69773
|
-
a11y: {
|
|
69774
|
-
speech: true,
|
|
69775
|
-
braille: true,
|
|
69776
|
-
subtitles: true
|
|
69777
|
-
},
|
|
69778
|
-
sre: {
|
|
69779
|
-
domain: 'default',
|
|
69780
|
-
style: 'default',
|
|
69781
|
-
locale: 'en'
|
|
69782
|
-
}
|
|
69783
|
-
}
|
|
69755
|
+
macros: macros
|
|
69784
69756
|
};
|
|
69785
69757
|
var mmlConfig = {
|
|
69786
|
-
options: {
|
|
69787
|
-
a11y: {
|
|
69788
|
-
speech: true,
|
|
69789
|
-
braille: true,
|
|
69790
|
-
subtitles: true
|
|
69791
|
-
}
|
|
69792
|
-
},
|
|
69793
69758
|
parseError: function parseError(node) {
|
|
69794
69759
|
console.log('error:', node);
|
|
69795
69760
|
this.error(this.adaptor.textContent(node).replace(/\n.*/g, ''));
|
|
@@ -69798,12 +69763,7 @@ const require$$12$a = _dll_debug;
|
|
|
69798
69763
|
var fontURL = ("https://unpkg.com/mathjax-full@").concat(_mathjax.mathjax.version, "/ts/output/chtml/fonts/tex-woff-v2");
|
|
69799
69764
|
var htmlConfig = {
|
|
69800
69765
|
fontURL: fontURL,
|
|
69801
|
-
wrapperFactory: new _WrapperFactory.CHTMLWrapperFactory(_objectSpread(_objectSpread({}, _WrapperFactory.CHTMLWrapperFactory.defaultNodes), _mstack.chtmlNodes))
|
|
69802
|
-
options: {
|
|
69803
|
-
renderActions: {
|
|
69804
|
-
assistiveMml: [['AssistiveMmlHandler']]
|
|
69805
|
-
}
|
|
69806
|
-
}
|
|
69766
|
+
wrapperFactory: new _WrapperFactory.CHTMLWrapperFactory(_objectSpread(_objectSpread({}, _WrapperFactory.CHTMLWrapperFactory.defaultNodes), _mstack.chtmlNodes))
|
|
69807
69767
|
};
|
|
69808
69768
|
var mml = new _mathml.MathML(mmlConfig);
|
|
69809
69769
|
var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
|
|
@@ -69817,16 +69777,6 @@ const require$$12$a = _dll_debug;
|
|
|
69817
69777
|
console.error(err);
|
|
69818
69778
|
doc.typesetError(math, err);
|
|
69819
69779
|
},
|
|
69820
|
-
options: {
|
|
69821
|
-
enableAssistiveMml: true,
|
|
69822
|
-
menuOptions: {
|
|
69823
|
-
settings: {
|
|
69824
|
-
assistiveMml: true,
|
|
69825
|
-
collapsible: true,
|
|
69826
|
-
explorer: true
|
|
69827
|
-
}
|
|
69828
|
-
}
|
|
69829
|
-
},
|
|
69830
69780
|
InputJax: [new _tex.TeX(texConfig), mml],
|
|
69831
69781
|
OutputJax: new _chtml.CHTML(htmlConfig)
|
|
69832
69782
|
});
|
|
@@ -69895,9 +69845,9 @@ const require$$12$a = _dll_debug;
|
|
|
69895
69845
|
log('el is undefined');
|
|
69896
69846
|
return;
|
|
69897
69847
|
}
|
|
69898
|
-
if (el instanceof Element) {
|
|
69848
|
+
if (el instanceof Element && getGlobal().instance) {
|
|
69899
69849
|
getGlobal().instance.Typeset(el);
|
|
69900
|
-
} else if (el.length) {
|
|
69850
|
+
} else if (el.length && getGlobal().instance) {
|
|
69901
69851
|
var _getGlobal$instance;
|
|
69902
69852
|
var arr = Array.from(el);
|
|
69903
69853
|
(_getGlobal$instance = getGlobal().instance).Typeset.apply(_getGlobal$instance, (0, _toConsumableArray2["default"])(arr));
|
|
@@ -120179,8 +120129,18 @@ const require$$11$2 = _dll_prop_types;
|
|
|
120179
120129
|
return _this;
|
|
120180
120130
|
}
|
|
120181
120131
|
(0, _createClass2["default"])(PreviewPrompt, [{
|
|
120132
|
+
key: "componentDidMount",
|
|
120133
|
+
value: function componentDidMount() {
|
|
120134
|
+
this.alignImages();
|
|
120135
|
+
}
|
|
120136
|
+
}, {
|
|
120182
120137
|
key: "componentDidUpdate",
|
|
120183
120138
|
value: function componentDidUpdate() {
|
|
120139
|
+
this.alignImages();
|
|
120140
|
+
}
|
|
120141
|
+
}, {
|
|
120142
|
+
key: "alignImages",
|
|
120143
|
+
value: function alignImages() {
|
|
120184
120144
|
var previewPrompt = document.querySelector('#preview-prompt');
|
|
120185
120145
|
var images = previewPrompt && previewPrompt.getElementsByTagName('img');
|
|
120186
120146
|
if (images && images.length) {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "6.3.2-next.
|
|
7
|
+
"version": "6.3.2-next.6+4ff9971e6",
|
|
8
8
|
"description": "",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@material-ui/core": "^3.9.2",
|
|
15
15
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
16
|
-
"@pie-lib/pie-toolbox": "1.7.
|
|
16
|
+
"@pie-lib/pie-toolbox": "1.7.2",
|
|
17
17
|
"classnames": "^2.2.5",
|
|
18
18
|
"lodash": "^4.17.10",
|
|
19
19
|
"prop-types": "^15.6.1",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"author": "",
|
|
24
24
|
"license": "ISC",
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "4ff9971e65b680aea180c94f9e85cab7249af2fb",
|
|
26
26
|
"main": "lib/index.js",
|
|
27
27
|
"module": "src/index.js",
|
|
28
28
|
"exports": {
|