@pie-element/drawing-response 3.9.4 → 3.9.8
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 +24 -0
- package/configure/CHANGELOG.md +24 -0
- package/configure/package.json +3 -3
- package/controller/package.json +1 -1
- package/lib/drawing-response/index.js +5 -8
- package/lib/drawing-response/index.js.map +1 -1
- package/package.json +3 -3
- package/src/drawing-response/index.jsx +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
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
|
+
## [3.9.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/drawing-response@3.9.7...@pie-element/drawing-response@3.9.8) (2022-01-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/drawing-response
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.9.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/drawing-response@3.9.6...@pie-element/drawing-response@3.9.7) (2021-12-23)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @pie-element/drawing-response
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [3.9.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/drawing-response@3.9.4...@pie-element/drawing-response@3.9.5) (2021-12-13)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @pie-element/drawing-response
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## [3.9.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/drawing-response@3.9.1...@pie-element/drawing-response@3.9.2) (2021-11-29)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @pie-element/drawing-response
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
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
|
+
## [3.2.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/drawing-response-configure@3.2.11...@pie-element/drawing-response-configure@3.2.12) (2022-01-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/drawing-response-configure
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.2.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/drawing-response-configure@3.2.10...@pie-element/drawing-response-configure@3.2.11) (2021-12-23)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @pie-element/drawing-response-configure
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [3.2.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/drawing-response-configure@3.2.8...@pie-element/drawing-response-configure@3.2.9) (2021-12-13)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @pie-element/drawing-response-configure
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## [3.2.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/drawing-response-configure@3.2.5...@pie-element/drawing-response-configure@3.2.6) (2021-11-29)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @pie-element/drawing-response-configure
|
package/configure/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/drawing-response-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "3.2.
|
|
4
|
+
"version": "3.2.12",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "src/index.js",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@material-ui/core": "^3.9.2",
|
|
11
11
|
"@pie-framework/pie-configure-events": "^1.2.0",
|
|
12
|
-
"@pie-lib/config-ui": "^10.10.
|
|
13
|
-
"@pie-lib/editable-html": "^7.17.
|
|
12
|
+
"@pie-lib/config-ui": "^10.10.15",
|
|
13
|
+
"@pie-lib/editable-html": "^7.17.15",
|
|
14
14
|
"classnames": "^2.2.6",
|
|
15
15
|
"debug": "^3.1.0",
|
|
16
16
|
"lodash": "^4.17.15",
|
package/controller/package.json
CHANGED
|
@@ -73,16 +73,13 @@ var DrawingResponseComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
73
73
|
hidden: 'Show Teacher Instructions',
|
|
74
74
|
visible: 'Hide Teacher Instructions'
|
|
75
75
|
}
|
|
76
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
77
|
-
|
|
78
|
-
__html: teacherInstructions
|
|
79
|
-
}
|
|
76
|
+
}, /*#__PURE__*/_react["default"].createElement(_renderUi.PreviewPrompt, {
|
|
77
|
+
prompt: teacherInstructions
|
|
80
78
|
})), /*#__PURE__*/_react["default"].createElement("br", null)), /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
81
79
|
className: classes.prompt
|
|
82
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
80
|
+
}, /*#__PURE__*/_react["default"].createElement(_renderUi.PreviewPrompt, {
|
|
81
|
+
tagName: "span",
|
|
82
|
+
prompt: prompt
|
|
86
83
|
})), /*#__PURE__*/_react["default"].createElement(_container["default"], {
|
|
87
84
|
session: session,
|
|
88
85
|
onSessionChange: onSessionChange,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/drawing-response/index.jsx"],"names":["DrawingResponseComponent","props","state","showCorrect","hasError","model","disabled","imageDimensions","imageUrl","prompt","mode","teacherInstructions","session","onSessionChange","classes","errorMessage","isEvaluateMode","hidden","visible","
|
|
1
|
+
{"version":3,"sources":["../../src/drawing-response/index.jsx"],"names":["DrawingResponseComponent","props","state","showCorrect","hasError","model","disabled","imageDimensions","imageUrl","prompt","mode","teacherInstructions","session","onSessionChange","classes","errorMessage","isEvaluateMode","hidden","visible","error","message","React","Component","propTypes","PropTypes","object","isRequired","func","styles","fontSize"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;;;IAEMA,wB;;;;;AACJ,oCAAYC,KAAZ,EAAmB;AAAA;;AAAA;AACjB,8BAAMA,KAAN;AACA,UAAKC,KAAL,GAAa;AACXC,MAAAA,WAAW,EAAE,KADF;AAEXC,MAAAA,QAAQ,EAAE;AAFC,KAAb;AAFiB;AAMlB;;;;WAMD,kBAAS;AACP,wBAYI,KAAKH,KAZT;AAAA,0CACEI,KADF;AAAA,UAEIC,QAFJ,qBAEIA,QAFJ;AAAA,UAGIC,eAHJ,qBAGIA,eAHJ;AAAA,UAIIC,QAJJ,qBAIIA,QAJJ;AAAA,UAKIC,MALJ,qBAKIA,MALJ;AAAA,UAMIC,IANJ,qBAMIA,IANJ;AAAA,UAOIC,mBAPJ,qBAOIA,mBAPJ;AAAA,UASEC,OATF,eASEA,OATF;AAAA,UAUEC,eAVF,eAUEA,eAVF;AAAA,UAWEC,OAXF,eAWEA,OAXF;AAaA,wBAAmC,KAAKZ,KAAxC;AAAA,UAAQE,QAAR,eAAQA,QAAR;AAAA,UAAkBW,YAAlB,eAAkBA,YAAlB;AACA,UAAMC,cAAc,GAAGN,IAAI,KAAK,UAAhC;AAEA,aAAON,QAAQ,gBACb,mEAAwBW,YAAxB,CADa,gBAGb,6CACGJ,mBAAmB,iBAClB,gCAAC,iBAAD,CAAO,QAAP,qBACE,gCAAC,qBAAD;AACE,QAAA,MAAM,EAAE;AACNM,UAAAA,MAAM,EAAE,2BADF;AAENC,UAAAA,OAAO,EAAE;AAFH;AADV,sBAME,gCAAC,uBAAD;AAAe,QAAA,MAAM,EAAEP;AAAvB,QANF,CADF,eASE,2CATF,CAFJ,eAeE,gCAAC,sBAAD;AAAY,QAAA,SAAS,EAAEG,OAAO,CAACL;AAA/B,sBACE,gCAAC,uBAAD;AAAe,QAAA,OAAO,EAAC,MAAvB;AAA8B,QAAA,MAAM,EAAEA;AAAtC,QADF,CAfF,eAmBE,gCAAC,qBAAD;AACE,QAAA,OAAO,EAAEG,OADX;AAEE,QAAA,eAAe,EAAEC,eAFnB;AAGE,QAAA,cAAc,EAAEG,cAHlB;AAIE,QAAA,eAAe,EAAET,eAJnB;AAKE,QAAA,QAAQ,EAAEC,QALZ;AAME,QAAA,QAAQ,EAAEF;AANZ,QAnBF,CAHF;AAgCD;;;WArDD,kCAAgCa,KAAhC,EAAuC;AACrC,aAAO;AAAEf,QAAAA,QAAQ,EAAE,IAAZ;AAAkBW,QAAAA,YAAY,EAAEI,KAAK,CAACC;AAAtC,OAAP;AACD;;;EAXoCC,kBAAMC,S;;AAiE7CtB,wBAAwB,CAACuB,SAAzB,GAAqC;AACnCT,EAAAA,OAAO,EAAEU,sBAAUC,MADgB;AAEnCpB,EAAAA,KAAK,EAAEmB,sBAAUC,MAAV,CAAiBC,UAFW;AAGnCb,EAAAA,eAAe,EAAEW,sBAAUG,IAAV,CAAeD,UAHG;AAInCd,EAAAA,OAAO,EAAEY,sBAAUC,MAAV,CAAiBC;AAJS,CAArC;;AAOA,IAAME,MAAM,GAAG,SAATA,MAAS;AAAA,SAAO;AACpBnB,IAAAA,MAAM,EAAE;AACNoB,MAAAA,QAAQ,EAAE;AADJ;AADY,GAAP;AAAA,CAAf;;eAMe,wBAAWD,MAAX,EAAmB5B,wBAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Typography from '@material-ui/core/Typography';\nimport {Collapsible, PreviewPrompt} from '@pie-lib/render-ui';\nimport { withStyles } from '@material-ui/core/styles';\n\nimport Container from './container';\n\nclass DrawingResponseComponent extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n showCorrect: false,\n hasError: false\n };\n }\n\n static getDerivedStateFromError(error) {\n return { hasError: true, errorMessage: error.message };\n }\n\n render() {\n const {\n model: {\n disabled,\n imageDimensions,\n imageUrl,\n prompt,\n mode,\n teacherInstructions\n },\n session,\n onSessionChange,\n classes\n } = this.props;\n const { hasError, errorMessage } = this.state;\n const isEvaluateMode = mode === 'evaluate';\n\n return hasError ? (\n <div>An error occured: {errorMessage}</div>\n ) : (\n <div>\n {teacherInstructions && (\n <React.Fragment>\n <Collapsible\n labels={{\n hidden: 'Show Teacher Instructions',\n visible: 'Hide Teacher Instructions'\n }}\n >\n <PreviewPrompt prompt={teacherInstructions} />\n </Collapsible>\n <br />\n </React.Fragment>\n )}\n\n <Typography className={classes.prompt}>\n <PreviewPrompt tagName=\"span\" prompt={prompt} />\n </Typography>\n\n <Container\n session={session}\n onSessionChange={onSessionChange}\n isEvaluateMode={isEvaluateMode}\n imageDimensions={imageDimensions}\n imageUrl={imageUrl}\n disabled={disabled}\n />\n </div>\n );\n }\n}\n\nDrawingResponseComponent.propTypes = {\n classes: PropTypes.object,\n model: PropTypes.object.isRequired,\n onSessionChange: PropTypes.func.isRequired,\n session: PropTypes.object.isRequired\n};\n\nconst styles = () => ({\n prompt: {\n fontSize: 'inherit'\n }\n});\n\nexport default withStyles(styles)(DrawingResponseComponent);\n"],"file":"index.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/drawing-response",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "pie-framework/pie-elements",
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@mdi/react": "^1.1.1",
|
|
13
13
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
14
14
|
"@pie-lib/math-rendering": "^2.3.12",
|
|
15
|
-
"@pie-lib/render-ui": "^4.12.
|
|
15
|
+
"@pie-lib/render-ui": "^4.12.4",
|
|
16
16
|
"classnames": "^2.2.6",
|
|
17
17
|
"enzyme-to-json": "^3.3.5",
|
|
18
18
|
"konva": "^3.4.1",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"author": "pie framework developers",
|
|
26
26
|
"license": "ISC",
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "62c971b852c1b1405f96fbb19712f882a9f1504e",
|
|
28
28
|
"scripts": {
|
|
29
29
|
"postpublish": "../../scripts/postpublish"
|
|
30
30
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Typography from '@material-ui/core/Typography';
|
|
4
|
-
import {
|
|
4
|
+
import {Collapsible, PreviewPrompt} from '@pie-lib/render-ui';
|
|
5
5
|
import { withStyles } from '@material-ui/core/styles';
|
|
6
6
|
|
|
7
7
|
import Container from './container';
|
|
@@ -48,14 +48,14 @@ class DrawingResponseComponent extends React.Component {
|
|
|
48
48
|
visible: 'Hide Teacher Instructions'
|
|
49
49
|
}}
|
|
50
50
|
>
|
|
51
|
-
<
|
|
51
|
+
<PreviewPrompt prompt={teacherInstructions} />
|
|
52
52
|
</Collapsible>
|
|
53
53
|
<br />
|
|
54
54
|
</React.Fragment>
|
|
55
55
|
)}
|
|
56
56
|
|
|
57
57
|
<Typography className={classes.prompt}>
|
|
58
|
-
<span
|
|
58
|
+
<PreviewPrompt tagName="span" prompt={prompt} />
|
|
59
59
|
</Typography>
|
|
60
60
|
|
|
61
61
|
<Container
|