@pie-element/passage 1.7.4 → 1.7.5
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 +8 -0
- package/module/element.js +42 -25
- package/module/index.html +1 -1
- package/module/manifest.json +3 -3
- package/module/print.html +1 -1
- package/module/print.js +42 -25
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -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
|
+
## [1.7.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/passage@1.7.4...@pie-element/passage@1.7.5) (2021-12-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/passage
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.7.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/passage@1.7.1...@pie-element/passage@1.7.2) (2021-11-29)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @pie-element/passage
|
package/module/element.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {_dll_prop_types, _dll_react, _dll_material_ui__core_styles, _dll_classnames, _dll_react_dom, _dll_material_ui__core, _dll_debug, _dll_material_ui__core_collapse_index} from "../../../@pie-lib/shared-module@^1.2.
|
|
2
|
-
import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.0.
|
|
1
|
+
import {_dll_prop_types, _dll_react, _dll_material_ui__core_styles, _dll_classnames, _dll_react_dom, _dll_material_ui__core, _dll_debug, _dll_material_ui__core_collapse_index} from "../../../@pie-lib/shared-module@^1.2.14/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.0.17/module/index.js";
|
|
3
3
|
function getDefaultExportFromCjs(x) {
|
|
4
4
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5
5
|
}
|
|
@@ -58,7 +58,7 @@ SessionChangedEvent.TYPE = 'session-changed';
|
|
|
58
58
|
lib.SessionChangedEvent = SessionChangedEvent;
|
|
59
59
|
const React$k = _dll_react;
|
|
60
60
|
const PropTypes$m = _dll_prop_types;
|
|
61
|
-
const _jsxFileName$i = "/
|
|
61
|
+
const _jsxFileName$i = "/home/circleci/repo/node_modules/@pie-lib/icons/src/sized.jsx";
|
|
62
62
|
const normalizeSize = size => {
|
|
63
63
|
return typeof size === 'string' ? size : typeof size === 'number' ? `${size}px` : '30px';
|
|
64
64
|
};
|
|
@@ -85,7 +85,7 @@ Sized.propTypes = {
|
|
|
85
85
|
};
|
|
86
86
|
const React$j = _dll_react;
|
|
87
87
|
const PropTypes$l = _dll_prop_types;
|
|
88
|
-
const _jsxFileName$h = "/
|
|
88
|
+
const _jsxFileName$h = "/home/circleci/repo/node_modules/@pie-lib/icons/src/icon-root.jsx";
|
|
89
89
|
const IconRoot = ({size, children}) => React$j.createElement(Sized, {
|
|
90
90
|
size: size,
|
|
91
91
|
__self: undefined,
|
|
@@ -181,7 +181,7 @@ Square.propTypes = {
|
|
|
181
181
|
};
|
|
182
182
|
const PropTypes$k = _dll_prop_types;
|
|
183
183
|
const React$i = _dll_react;
|
|
184
|
-
const _jsxFileName$g = "/
|
|
184
|
+
const _jsxFileName$g = "/home/circleci/repo/node_modules/@pie-lib/icons/src/icon-base.jsx";
|
|
185
185
|
var IconBase = (Action, Emoji) => {
|
|
186
186
|
class IconBase extends React$i.Component {
|
|
187
187
|
static __initStatic() {
|
|
@@ -544,7 +544,7 @@ var IconBase = (Action, Emoji) => {
|
|
|
544
544
|
const PropTypes$j = _dll_prop_types;
|
|
545
545
|
const React$h = _dll_react;
|
|
546
546
|
const {withStyles: withStyles$d} = _dll_material_ui__core_styles;
|
|
547
|
-
const _jsxFileName$f = "/
|
|
547
|
+
const _jsxFileName$f = "/home/circleci/repo/node_modules/@pie-lib/icons/src/correct-icon.jsx";
|
|
548
548
|
const styles$a = getStyles('correct', '#f8ffe2', '#4aaf46');
|
|
549
549
|
const Emoji$3 = ({className}) => React$h.createElement('g', {
|
|
550
550
|
transform: 'translate(1, 0)',
|
|
@@ -627,7 +627,7 @@ const PropTypes$i = _dll_prop_types;
|
|
|
627
627
|
const React$g = _dll_react;
|
|
628
628
|
const classNames$3 = _dll_classnames;
|
|
629
629
|
const {withStyles: withStyles$c} = _dll_material_ui__core_styles;
|
|
630
|
-
const _jsxFileName$e = "/
|
|
630
|
+
const _jsxFileName$e = "/home/circleci/repo/node_modules/@pie-lib/icons/src/correct-response-icon.jsx";
|
|
631
631
|
const OpenIcon = ({bg, fg}) => React$g.createElement('svg', {
|
|
632
632
|
preserveAspectRatio: "xMinYMin meet",
|
|
633
633
|
version: "1.1",
|
|
@@ -805,7 +805,7 @@ withStyles$c(styles$9)(CorrectResponse);
|
|
|
805
805
|
const PropTypes$h = _dll_prop_types;
|
|
806
806
|
const React$f = _dll_react;
|
|
807
807
|
const {withStyles: withStyles$b} = _dll_material_ui__core_styles;
|
|
808
|
-
const _jsxFileName$d = "/
|
|
808
|
+
const _jsxFileName$d = "/home/circleci/repo/node_modules/@pie-lib/icons/src/incorrect-icon.jsx";
|
|
809
809
|
const Ex = ({className}) => React$f.createElement('g', {
|
|
810
810
|
transform: 'translate(0.5, 0.5)',
|
|
811
811
|
__self: undefined,
|
|
@@ -902,7 +902,7 @@ Incorrect.defaultProps = {
|
|
|
902
902
|
};
|
|
903
903
|
const PropTypes$g = _dll_prop_types;
|
|
904
904
|
const React$e = _dll_react;
|
|
905
|
-
const _jsxFileName$c = "/
|
|
905
|
+
const _jsxFileName$c = "/home/circleci/repo/node_modules/@pie-lib/icons/src/instructions-icon.jsx";
|
|
906
906
|
const Lines = () => {
|
|
907
907
|
const style = {
|
|
908
908
|
fill: 'none',
|
|
@@ -1221,7 +1221,7 @@ Instructions.defaultProps = {
|
|
|
1221
1221
|
const PropTypes$f = _dll_prop_types;
|
|
1222
1222
|
const React$d = _dll_react;
|
|
1223
1223
|
const {withStyles: withStyles$a} = _dll_material_ui__core_styles;
|
|
1224
|
-
const _jsxFileName$b = "/
|
|
1224
|
+
const _jsxFileName$b = "/home/circleci/repo/node_modules/@pie-lib/icons/src/learn-more-icon.jsx";
|
|
1225
1225
|
const Glint = ({fill}) => React$d.createElement('path', {
|
|
1226
1226
|
fill: fill,
|
|
1227
1227
|
d: "M-130.4,142.1c0-2.1,1.7-3.9,3.9-3.9c0.3,0,0.5,0,0.8,0.1c-0.6-0.8-1.5-1.3-2.6-1.3c-1.8,0-3.3,1.5-3.3,3.3c0,1.1,0.5,2,1.3,2.6C-130.4,142.6-130.4,142.4-130.4,142.1z",
|
|
@@ -1388,7 +1388,7 @@ withStyles$a(styles$7)(LearnMore);
|
|
|
1388
1388
|
const PropTypes$e = _dll_prop_types;
|
|
1389
1389
|
const React$c = _dll_react;
|
|
1390
1390
|
const {withStyles: withStyles$9} = _dll_material_ui__core_styles;
|
|
1391
|
-
const _jsxFileName$a = "/
|
|
1391
|
+
const _jsxFileName$a = "/home/circleci/repo/node_modules/@pie-lib/icons/src/nothing-submitted-icon.jsx";
|
|
1392
1392
|
const Exclamation = ({className}) => React$c.createElement('g', {
|
|
1393
1393
|
__self: undefined,
|
|
1394
1394
|
__source: {
|
|
@@ -1673,7 +1673,7 @@ var nothingSubmittedIcon = withStyles$9(styles$6)(NothingSubmitted);
|
|
|
1673
1673
|
const PropTypes$d = _dll_prop_types;
|
|
1674
1674
|
const React$b = _dll_react;
|
|
1675
1675
|
const {withStyles: withStyles$8} = _dll_material_ui__core_styles;
|
|
1676
|
-
const _jsxFileName$9 = "/
|
|
1676
|
+
const _jsxFileName$9 = "/home/circleci/repo/node_modules/@pie-lib/icons/src/partially-correct-icon.jsx";
|
|
1677
1677
|
const styles$5 = getStyles('partially-correct', '#4aaf46', '#c1e1ac');
|
|
1678
1678
|
const Check = ({className}) => React$b.createElement('g', {
|
|
1679
1679
|
transform: 'translate(0, 0)',
|
|
@@ -1761,7 +1761,7 @@ var partiallyCorrectIcon = withStyles$8(styles$5)(PartiallyCorrect);
|
|
|
1761
1761
|
const PropTypes$c = _dll_prop_types;
|
|
1762
1762
|
const React$a = _dll_react;
|
|
1763
1763
|
const {withStyles: withStyles$7} = _dll_material_ui__core_styles;
|
|
1764
|
-
const _jsxFileName$8 = "/
|
|
1764
|
+
const _jsxFileName$8 = "/home/circleci/repo/node_modules/@pie-lib/icons/src/show-rationale-icon.jsx";
|
|
1765
1765
|
const Info = ({fg}) => React$a.createElement('g', {
|
|
1766
1766
|
__self: undefined,
|
|
1767
1767
|
__source: {
|
|
@@ -3122,7 +3122,7 @@ const {withStyles: withStyles$6} = _dll_material_ui__core_styles;
|
|
|
3122
3122
|
const React$9 = _dll_react;
|
|
3123
3123
|
const classNames$2 = _dll_classnames;
|
|
3124
3124
|
const PropTypes$9 = _dll_prop_types;
|
|
3125
|
-
const _jsxFileName$7 = "/
|
|
3125
|
+
const _jsxFileName$7 = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/feedback.jsx";
|
|
3126
3126
|
const styleSheet = {
|
|
3127
3127
|
corespringFeedback: {
|
|
3128
3128
|
transformOrigin: '0% 0px 0px',
|
|
@@ -3241,7 +3241,7 @@ const PropTypes$8 = _dll_prop_types;
|
|
|
3241
3241
|
const {Popover: Popover} = _dll_material_ui__core;
|
|
3242
3242
|
const {withStyles: withStyles$5} = _dll_material_ui__core_styles;
|
|
3243
3243
|
const debug = _dll_debug;
|
|
3244
|
-
const _jsxFileName$6 = "/
|
|
3244
|
+
const _jsxFileName$6 = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/response-indicators.jsx";
|
|
3245
3245
|
const log = debug('pie-libs:render-ui:response-indicators');
|
|
3246
3246
|
const styles$3 = () => ({
|
|
3247
3247
|
responseIndicator: {
|
|
@@ -3352,7 +3352,7 @@ const {withStyles: withStyles$4} = _dll_material_ui__core_styles;
|
|
|
3352
3352
|
const Collapse = _dll_material_ui__core_collapse_index;
|
|
3353
3353
|
const PropTypes$7 = _dll_prop_types;
|
|
3354
3354
|
const {renderMath: renderMath$1} = _dll_pie_lib__math_rendering;
|
|
3355
|
-
const _jsxFileName$5 = "/
|
|
3355
|
+
const _jsxFileName$5 = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx";
|
|
3356
3356
|
class Collapsible extends React$7.Component {
|
|
3357
3357
|
constructor(...args) {
|
|
3358
3358
|
super(...args);
|
|
@@ -3446,7 +3446,7 @@ const React$6 = _dll_react;
|
|
|
3446
3446
|
const {withStyles: withStyles$3} = _dll_material_ui__core_styles;
|
|
3447
3447
|
const {createMuiTheme: createMuiTheme} = _dll_material_ui__core_styles;
|
|
3448
3448
|
const PropTypes$6 = _dll_prop_types;
|
|
3449
|
-
const _jsxFileName$4 = "/
|
|
3449
|
+
const _jsxFileName$4 = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/preview-layout.jsx";
|
|
3450
3450
|
class PreviewLayout extends React$6.Component {
|
|
3451
3451
|
static __initStatic() {
|
|
3452
3452
|
this.propTypes = {
|
|
@@ -3520,7 +3520,7 @@ withStyles$3(styles$2)(PreviewLayout);
|
|
|
3520
3520
|
const React$5 = _dll_react;
|
|
3521
3521
|
const PropTypes$5 = _dll_prop_types;
|
|
3522
3522
|
const {renderMath: renderMath} = _dll_pie_lib__math_rendering;
|
|
3523
|
-
const _jsxFileName$3 = "/
|
|
3523
|
+
const _jsxFileName$3 = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/html-and-math.js";
|
|
3524
3524
|
class HtmlAndMath extends React$5.Component {
|
|
3525
3525
|
static __initStatic() {
|
|
3526
3526
|
this.propTypes = {
|
|
@@ -3570,7 +3570,7 @@ const PropTypes$4 = _dll_prop_types;
|
|
|
3570
3570
|
const React$4 = _dll_react;
|
|
3571
3571
|
const classNames$1 = _dll_classnames;
|
|
3572
3572
|
const {withStyles: withStyles$2} = _dll_material_ui__core_styles;
|
|
3573
|
-
const _jsxFileName$2 = "/
|
|
3573
|
+
const _jsxFileName$2 = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/input-container.jsx";
|
|
3574
3574
|
const RawInputContainer = props => {
|
|
3575
3575
|
const {label, className, children, classes} = props;
|
|
3576
3576
|
const names = classNames$1(classes.formControl, className);
|
|
@@ -3614,10 +3614,14 @@ const React$3 = _dll_react;
|
|
|
3614
3614
|
const {Component: Component} = _dll_react;
|
|
3615
3615
|
const {withStyles: withStyles$1} = _dll_material_ui__core_styles;
|
|
3616
3616
|
const PropTypes$3 = _dll_prop_types;
|
|
3617
|
-
const _jsxFileName$1 = "/
|
|
3617
|
+
const _jsxFileName$1 = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx";
|
|
3618
3618
|
const NEWLINE_BLOCK_REGEX = /\\embed\{newLine\}\[\]/g;
|
|
3619
3619
|
const NEWLINE_LATEX = '\\newline ';
|
|
3620
3620
|
class PreviewPrompt extends Component {
|
|
3621
|
+
constructor(...args) {
|
|
3622
|
+
super(...args);
|
|
3623
|
+
PreviewPrompt.prototype.__init.call(this);
|
|
3624
|
+
}
|
|
3621
3625
|
static __initStatic() {
|
|
3622
3626
|
this.propTypes = {
|
|
3623
3627
|
classes: PropTypes$3.object,
|
|
@@ -3633,6 +3637,21 @@ class PreviewPrompt extends Component {
|
|
|
3633
3637
|
onClick: () => {}
|
|
3634
3638
|
};
|
|
3635
3639
|
}
|
|
3640
|
+
__init() {
|
|
3641
|
+
this.parsedText = text => {
|
|
3642
|
+
const div = document.createElement('div');
|
|
3643
|
+
div.innerHTML = text;
|
|
3644
|
+
const audio = div.querySelector('audio');
|
|
3645
|
+
if (audio) {
|
|
3646
|
+
const source = document.createElement('source');
|
|
3647
|
+
source.setAttribute('type', 'audio/mp3');
|
|
3648
|
+
source.setAttribute('src', audio.getAttribute('src'));
|
|
3649
|
+
audio.removeAttribute('src');
|
|
3650
|
+
audio.appendChild(source);
|
|
3651
|
+
}
|
|
3652
|
+
return div.innerHTML;
|
|
3653
|
+
};
|
|
3654
|
+
}
|
|
3636
3655
|
render() {
|
|
3637
3656
|
const {prompt, classes, tagName, className, onClick, defaultClassName} = this.props;
|
|
3638
3657
|
const CustomTag = tagName || 'div';
|
|
@@ -3641,12 +3660,12 @@ class PreviewPrompt extends Component {
|
|
|
3641
3660
|
onClick: onClick,
|
|
3642
3661
|
className: customClasses,
|
|
3643
3662
|
dangerouslySetInnerHTML: {
|
|
3644
|
-
__html: (prompt || '').replace(NEWLINE_BLOCK_REGEX, NEWLINE_LATEX)
|
|
3663
|
+
__html: this.parsedText(prompt || '').replace(NEWLINE_BLOCK_REGEX, NEWLINE_LATEX)
|
|
3645
3664
|
},
|
|
3646
3665
|
__self: this,
|
|
3647
3666
|
__source: {
|
|
3648
3667
|
fileName: _jsxFileName$1,
|
|
3649
|
-
lineNumber:
|
|
3668
|
+
lineNumber: 50
|
|
3650
3669
|
}
|
|
3651
3670
|
});
|
|
3652
3671
|
}
|
|
@@ -3672,13 +3691,11 @@ const styles$1 = theme => ({
|
|
|
3672
3691
|
borderCollapse: 'collapse'
|
|
3673
3692
|
},
|
|
3674
3693
|
'&:not(.MathJax) > table tr': {
|
|
3675
|
-
borderTop: '1px solid #dfe2e5',
|
|
3676
3694
|
'&:nth-child(2n)': {
|
|
3677
3695
|
backgroundColor: '#f6f8fa'
|
|
3678
3696
|
}
|
|
3679
3697
|
},
|
|
3680
3698
|
'&:not(.MathJax) > table td, &:not(.MathJax) > table th': {
|
|
3681
|
-
border: '1px solid #dfe2e5',
|
|
3682
3699
|
padding: '.6em 1em',
|
|
3683
3700
|
textAlign: 'center'
|
|
3684
3701
|
}
|
|
@@ -3709,7 +3726,7 @@ const {Tab: Tab} = _dll_material_ui__core;
|
|
|
3709
3726
|
const {Typography: Typography} = _dll_material_ui__core;
|
|
3710
3727
|
const {withStyles: withStyles} = _dll_material_ui__core_styles;
|
|
3711
3728
|
const classNames = _dll_classnames;
|
|
3712
|
-
const _jsxFileName = "/
|
|
3729
|
+
const _jsxFileName = "/home/circleci/repo/packages/passage/src/stimulus-tabs.jsx";
|
|
3713
3730
|
const styles = () => ({
|
|
3714
3731
|
root: {
|
|
3715
3732
|
flexGrow: 1,
|
package/module/index.html
CHANGED
package/module/manifest.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/passage",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"name": "@pie-lib/shared-module",
|
|
7
|
-
"version": "^1.2.
|
|
7
|
+
"version": "^1.2.14"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"name": "@pie-lib/math-rendering-module",
|
|
11
|
-
"version": "^1.0.
|
|
11
|
+
"version": "^1.0.17"
|
|
12
12
|
}
|
|
13
13
|
]
|
|
14
14
|
}
|
package/module/print.html
CHANGED
package/module/print.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {_dll_prop_types, _dll_react, _dll_material_ui__core_styles, _dll_classnames, _dll_react_dom, _dll_material_ui__core, _dll_debug, _dll_material_ui__core_collapse_index, _dll_lodash} from "../../../@pie-lib/shared-module@^1.2.
|
|
2
|
-
import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.0.
|
|
1
|
+
import {_dll_prop_types, _dll_react, _dll_material_ui__core_styles, _dll_classnames, _dll_react_dom, _dll_material_ui__core, _dll_debug, _dll_material_ui__core_collapse_index, _dll_lodash} from "../../../@pie-lib/shared-module@^1.2.14/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.0.17/module/index.js";
|
|
3
3
|
const React$k = _dll_react;
|
|
4
4
|
const PropTypes$m = _dll_prop_types;
|
|
5
|
-
const _jsxFileName$i = "/
|
|
5
|
+
const _jsxFileName$i = "/home/circleci/repo/node_modules/@pie-lib/icons/src/sized.jsx";
|
|
6
6
|
const normalizeSize = size => {
|
|
7
7
|
return typeof size === 'string' ? size : typeof size === 'number' ? `${size}px` : '30px';
|
|
8
8
|
};
|
|
@@ -29,7 +29,7 @@ Sized.propTypes = {
|
|
|
29
29
|
};
|
|
30
30
|
const React$j = _dll_react;
|
|
31
31
|
const PropTypes$l = _dll_prop_types;
|
|
32
|
-
const _jsxFileName$h = "/
|
|
32
|
+
const _jsxFileName$h = "/home/circleci/repo/node_modules/@pie-lib/icons/src/icon-root.jsx";
|
|
33
33
|
const IconRoot = ({size, children}) => React$j.createElement(Sized, {
|
|
34
34
|
size: size,
|
|
35
35
|
__self: undefined,
|
|
@@ -125,7 +125,7 @@ Square.propTypes = {
|
|
|
125
125
|
};
|
|
126
126
|
const PropTypes$k = _dll_prop_types;
|
|
127
127
|
const React$i = _dll_react;
|
|
128
|
-
const _jsxFileName$g = "/
|
|
128
|
+
const _jsxFileName$g = "/home/circleci/repo/node_modules/@pie-lib/icons/src/icon-base.jsx";
|
|
129
129
|
var IconBase = (Action, Emoji) => {
|
|
130
130
|
class IconBase extends React$i.Component {
|
|
131
131
|
static __initStatic() {
|
|
@@ -488,7 +488,7 @@ var IconBase = (Action, Emoji) => {
|
|
|
488
488
|
const PropTypes$j = _dll_prop_types;
|
|
489
489
|
const React$h = _dll_react;
|
|
490
490
|
const {withStyles: withStyles$d} = _dll_material_ui__core_styles;
|
|
491
|
-
const _jsxFileName$f = "/
|
|
491
|
+
const _jsxFileName$f = "/home/circleci/repo/node_modules/@pie-lib/icons/src/correct-icon.jsx";
|
|
492
492
|
const styles$a = getStyles('correct', '#f8ffe2', '#4aaf46');
|
|
493
493
|
const Emoji$3 = ({className}) => React$h.createElement('g', {
|
|
494
494
|
transform: 'translate(1, 0)',
|
|
@@ -571,7 +571,7 @@ const PropTypes$i = _dll_prop_types;
|
|
|
571
571
|
const React$g = _dll_react;
|
|
572
572
|
const classNames$3 = _dll_classnames;
|
|
573
573
|
const {withStyles: withStyles$c} = _dll_material_ui__core_styles;
|
|
574
|
-
const _jsxFileName$e = "/
|
|
574
|
+
const _jsxFileName$e = "/home/circleci/repo/node_modules/@pie-lib/icons/src/correct-response-icon.jsx";
|
|
575
575
|
const OpenIcon = ({bg, fg}) => React$g.createElement('svg', {
|
|
576
576
|
preserveAspectRatio: "xMinYMin meet",
|
|
577
577
|
version: "1.1",
|
|
@@ -749,7 +749,7 @@ withStyles$c(styles$9)(CorrectResponse);
|
|
|
749
749
|
const PropTypes$h = _dll_prop_types;
|
|
750
750
|
const React$f = _dll_react;
|
|
751
751
|
const {withStyles: withStyles$b} = _dll_material_ui__core_styles;
|
|
752
|
-
const _jsxFileName$d = "/
|
|
752
|
+
const _jsxFileName$d = "/home/circleci/repo/node_modules/@pie-lib/icons/src/incorrect-icon.jsx";
|
|
753
753
|
const Ex = ({className}) => React$f.createElement('g', {
|
|
754
754
|
transform: 'translate(0.5, 0.5)',
|
|
755
755
|
__self: undefined,
|
|
@@ -846,7 +846,7 @@ Incorrect.defaultProps = {
|
|
|
846
846
|
};
|
|
847
847
|
const PropTypes$g = _dll_prop_types;
|
|
848
848
|
const React$e = _dll_react;
|
|
849
|
-
const _jsxFileName$c = "/
|
|
849
|
+
const _jsxFileName$c = "/home/circleci/repo/node_modules/@pie-lib/icons/src/instructions-icon.jsx";
|
|
850
850
|
const Lines = () => {
|
|
851
851
|
const style = {
|
|
852
852
|
fill: 'none',
|
|
@@ -1165,7 +1165,7 @@ Instructions.defaultProps = {
|
|
|
1165
1165
|
const PropTypes$f = _dll_prop_types;
|
|
1166
1166
|
const React$d = _dll_react;
|
|
1167
1167
|
const {withStyles: withStyles$a} = _dll_material_ui__core_styles;
|
|
1168
|
-
const _jsxFileName$b = "/
|
|
1168
|
+
const _jsxFileName$b = "/home/circleci/repo/node_modules/@pie-lib/icons/src/learn-more-icon.jsx";
|
|
1169
1169
|
const Glint = ({fill}) => React$d.createElement('path', {
|
|
1170
1170
|
fill: fill,
|
|
1171
1171
|
d: "M-130.4,142.1c0-2.1,1.7-3.9,3.9-3.9c0.3,0,0.5,0,0.8,0.1c-0.6-0.8-1.5-1.3-2.6-1.3c-1.8,0-3.3,1.5-3.3,3.3c0,1.1,0.5,2,1.3,2.6C-130.4,142.6-130.4,142.4-130.4,142.1z",
|
|
@@ -1332,7 +1332,7 @@ withStyles$a(styles$7)(LearnMore);
|
|
|
1332
1332
|
const PropTypes$e = _dll_prop_types;
|
|
1333
1333
|
const React$c = _dll_react;
|
|
1334
1334
|
const {withStyles: withStyles$9} = _dll_material_ui__core_styles;
|
|
1335
|
-
const _jsxFileName$a = "/
|
|
1335
|
+
const _jsxFileName$a = "/home/circleci/repo/node_modules/@pie-lib/icons/src/nothing-submitted-icon.jsx";
|
|
1336
1336
|
const Exclamation = ({className}) => React$c.createElement('g', {
|
|
1337
1337
|
__self: undefined,
|
|
1338
1338
|
__source: {
|
|
@@ -1617,7 +1617,7 @@ var nothingSubmittedIcon = withStyles$9(styles$6)(NothingSubmitted);
|
|
|
1617
1617
|
const PropTypes$d = _dll_prop_types;
|
|
1618
1618
|
const React$b = _dll_react;
|
|
1619
1619
|
const {withStyles: withStyles$8} = _dll_material_ui__core_styles;
|
|
1620
|
-
const _jsxFileName$9 = "/
|
|
1620
|
+
const _jsxFileName$9 = "/home/circleci/repo/node_modules/@pie-lib/icons/src/partially-correct-icon.jsx";
|
|
1621
1621
|
const styles$5 = getStyles('partially-correct', '#4aaf46', '#c1e1ac');
|
|
1622
1622
|
const Check = ({className}) => React$b.createElement('g', {
|
|
1623
1623
|
transform: 'translate(0, 0)',
|
|
@@ -1705,7 +1705,7 @@ var partiallyCorrectIcon = withStyles$8(styles$5)(PartiallyCorrect);
|
|
|
1705
1705
|
const PropTypes$c = _dll_prop_types;
|
|
1706
1706
|
const React$a = _dll_react;
|
|
1707
1707
|
const {withStyles: withStyles$7} = _dll_material_ui__core_styles;
|
|
1708
|
-
const _jsxFileName$8 = "/
|
|
1708
|
+
const _jsxFileName$8 = "/home/circleci/repo/node_modules/@pie-lib/icons/src/show-rationale-icon.jsx";
|
|
1709
1709
|
const Info = ({fg}) => React$a.createElement('g', {
|
|
1710
1710
|
__self: undefined,
|
|
1711
1711
|
__source: {
|
|
@@ -3085,7 +3085,7 @@ const {withStyles: withStyles$6} = _dll_material_ui__core_styles;
|
|
|
3085
3085
|
const React$9 = _dll_react;
|
|
3086
3086
|
const classNames$2 = _dll_classnames;
|
|
3087
3087
|
const PropTypes$9 = _dll_prop_types;
|
|
3088
|
-
const _jsxFileName$7 = "/
|
|
3088
|
+
const _jsxFileName$7 = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/feedback.jsx";
|
|
3089
3089
|
const styleSheet = {
|
|
3090
3090
|
corespringFeedback: {
|
|
3091
3091
|
transformOrigin: '0% 0px 0px',
|
|
@@ -3204,7 +3204,7 @@ const PropTypes$8 = _dll_prop_types;
|
|
|
3204
3204
|
const {Popover: Popover} = _dll_material_ui__core;
|
|
3205
3205
|
const {withStyles: withStyles$5} = _dll_material_ui__core_styles;
|
|
3206
3206
|
const debug$1 = _dll_debug;
|
|
3207
|
-
const _jsxFileName$6 = "/
|
|
3207
|
+
const _jsxFileName$6 = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/response-indicators.jsx";
|
|
3208
3208
|
const log$1 = debug$1('pie-libs:render-ui:response-indicators');
|
|
3209
3209
|
const styles$3 = () => ({
|
|
3210
3210
|
responseIndicator: {
|
|
@@ -3315,7 +3315,7 @@ const {withStyles: withStyles$4} = _dll_material_ui__core_styles;
|
|
|
3315
3315
|
const Collapse = _dll_material_ui__core_collapse_index;
|
|
3316
3316
|
const PropTypes$7 = _dll_prop_types;
|
|
3317
3317
|
const {renderMath: renderMath$1} = _dll_pie_lib__math_rendering;
|
|
3318
|
-
const _jsxFileName$5 = "/
|
|
3318
|
+
const _jsxFileName$5 = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx";
|
|
3319
3319
|
class Collapsible extends React$7.Component {
|
|
3320
3320
|
constructor(...args) {
|
|
3321
3321
|
super(...args);
|
|
@@ -3409,7 +3409,7 @@ const React$6 = _dll_react;
|
|
|
3409
3409
|
const {withStyles: withStyles$3} = _dll_material_ui__core_styles;
|
|
3410
3410
|
const {createMuiTheme: createMuiTheme} = _dll_material_ui__core_styles;
|
|
3411
3411
|
const PropTypes$6 = _dll_prop_types;
|
|
3412
|
-
const _jsxFileName$4 = "/
|
|
3412
|
+
const _jsxFileName$4 = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/preview-layout.jsx";
|
|
3413
3413
|
class PreviewLayout extends React$6.Component {
|
|
3414
3414
|
static __initStatic() {
|
|
3415
3415
|
this.propTypes = {
|
|
@@ -3483,7 +3483,7 @@ withStyles$3(styles$2)(PreviewLayout);
|
|
|
3483
3483
|
const React$5 = _dll_react;
|
|
3484
3484
|
const PropTypes$5 = _dll_prop_types;
|
|
3485
3485
|
const {renderMath: renderMath} = _dll_pie_lib__math_rendering;
|
|
3486
|
-
const _jsxFileName$3 = "/
|
|
3486
|
+
const _jsxFileName$3 = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/html-and-math.js";
|
|
3487
3487
|
class HtmlAndMath extends React$5.Component {
|
|
3488
3488
|
static __initStatic() {
|
|
3489
3489
|
this.propTypes = {
|
|
@@ -3533,7 +3533,7 @@ const PropTypes$4 = _dll_prop_types;
|
|
|
3533
3533
|
const React$4 = _dll_react;
|
|
3534
3534
|
const classNames$1 = _dll_classnames;
|
|
3535
3535
|
const {withStyles: withStyles$2} = _dll_material_ui__core_styles;
|
|
3536
|
-
const _jsxFileName$2 = "/
|
|
3536
|
+
const _jsxFileName$2 = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/input-container.jsx";
|
|
3537
3537
|
const RawInputContainer = props => {
|
|
3538
3538
|
const {label, className, children, classes} = props;
|
|
3539
3539
|
const names = classNames$1(classes.formControl, className);
|
|
@@ -3577,10 +3577,14 @@ const React$3 = _dll_react;
|
|
|
3577
3577
|
const {Component: Component} = _dll_react;
|
|
3578
3578
|
const {withStyles: withStyles$1} = _dll_material_ui__core_styles;
|
|
3579
3579
|
const PropTypes$3 = _dll_prop_types;
|
|
3580
|
-
const _jsxFileName$1 = "/
|
|
3580
|
+
const _jsxFileName$1 = "/home/circleci/repo/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx";
|
|
3581
3581
|
const NEWLINE_BLOCK_REGEX = /\\embed\{newLine\}\[\]/g;
|
|
3582
3582
|
const NEWLINE_LATEX = '\\newline ';
|
|
3583
3583
|
class PreviewPrompt extends Component {
|
|
3584
|
+
constructor(...args) {
|
|
3585
|
+
super(...args);
|
|
3586
|
+
PreviewPrompt.prototype.__init.call(this);
|
|
3587
|
+
}
|
|
3584
3588
|
static __initStatic() {
|
|
3585
3589
|
this.propTypes = {
|
|
3586
3590
|
classes: PropTypes$3.object,
|
|
@@ -3596,6 +3600,21 @@ class PreviewPrompt extends Component {
|
|
|
3596
3600
|
onClick: () => {}
|
|
3597
3601
|
};
|
|
3598
3602
|
}
|
|
3603
|
+
__init() {
|
|
3604
|
+
this.parsedText = text => {
|
|
3605
|
+
const div = document.createElement('div');
|
|
3606
|
+
div.innerHTML = text;
|
|
3607
|
+
const audio = div.querySelector('audio');
|
|
3608
|
+
if (audio) {
|
|
3609
|
+
const source = document.createElement('source');
|
|
3610
|
+
source.setAttribute('type', 'audio/mp3');
|
|
3611
|
+
source.setAttribute('src', audio.getAttribute('src'));
|
|
3612
|
+
audio.removeAttribute('src');
|
|
3613
|
+
audio.appendChild(source);
|
|
3614
|
+
}
|
|
3615
|
+
return div.innerHTML;
|
|
3616
|
+
};
|
|
3617
|
+
}
|
|
3599
3618
|
render() {
|
|
3600
3619
|
const {prompt, classes, tagName, className, onClick, defaultClassName} = this.props;
|
|
3601
3620
|
const CustomTag = tagName || 'div';
|
|
@@ -3604,12 +3623,12 @@ class PreviewPrompt extends Component {
|
|
|
3604
3623
|
onClick: onClick,
|
|
3605
3624
|
className: customClasses,
|
|
3606
3625
|
dangerouslySetInnerHTML: {
|
|
3607
|
-
__html: (prompt || '').replace(NEWLINE_BLOCK_REGEX, NEWLINE_LATEX)
|
|
3626
|
+
__html: this.parsedText(prompt || '').replace(NEWLINE_BLOCK_REGEX, NEWLINE_LATEX)
|
|
3608
3627
|
},
|
|
3609
3628
|
__self: this,
|
|
3610
3629
|
__source: {
|
|
3611
3630
|
fileName: _jsxFileName$1,
|
|
3612
|
-
lineNumber:
|
|
3631
|
+
lineNumber: 50
|
|
3613
3632
|
}
|
|
3614
3633
|
});
|
|
3615
3634
|
}
|
|
@@ -3635,13 +3654,11 @@ const styles$1 = theme => ({
|
|
|
3635
3654
|
borderCollapse: 'collapse'
|
|
3636
3655
|
},
|
|
3637
3656
|
'&:not(.MathJax) > table tr': {
|
|
3638
|
-
borderTop: '1px solid #dfe2e5',
|
|
3639
3657
|
'&:nth-child(2n)': {
|
|
3640
3658
|
backgroundColor: '#f6f8fa'
|
|
3641
3659
|
}
|
|
3642
3660
|
},
|
|
3643
3661
|
'&:not(.MathJax) > table td, &:not(.MathJax) > table th': {
|
|
3644
|
-
border: '1px solid #dfe2e5',
|
|
3645
3662
|
padding: '.6em 1em',
|
|
3646
3663
|
textAlign: 'center'
|
|
3647
3664
|
}
|
|
@@ -3672,7 +3689,7 @@ const {Tab: Tab} = _dll_material_ui__core;
|
|
|
3672
3689
|
const {Typography: Typography} = _dll_material_ui__core;
|
|
3673
3690
|
const {withStyles: withStyles} = _dll_material_ui__core_styles;
|
|
3674
3691
|
const classNames = _dll_classnames;
|
|
3675
|
-
const _jsxFileName = "/
|
|
3692
|
+
const _jsxFileName = "/home/circleci/repo/packages/passage/src/stimulus-tabs.jsx";
|
|
3676
3693
|
const styles = () => ({
|
|
3677
3694
|
root: {
|
|
3678
3695
|
flexGrow: 1,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/passage",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@material-ui/core": "^3.9.2",
|
|
13
13
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
14
|
-
"@pie-lib/render-ui": "^4.12.
|
|
14
|
+
"@pie-lib/render-ui": "^4.12.4",
|
|
15
15
|
"classnames": "^2.2.5",
|
|
16
16
|
"prop-types": "^15.6.1",
|
|
17
17
|
"react": "^16.8.1",
|
|
18
18
|
"react-dom": "^16.8.1"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "a1c13d49a8db2188145733261dd177cfb6b617fb",
|
|
21
21
|
"scripts": {
|
|
22
22
|
"postpublish": "../../scripts/postpublish"
|
|
23
23
|
},
|