@pie-element/extended-text-entry 13.4.1-next.0 → 14.0.0-beta.0

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/lib/main.js CHANGED
@@ -1,266 +1,202 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports["default"] = exports.Main = void 0;
9
-
10
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
-
12
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
-
14
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
15
-
16
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
17
-
18
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
19
-
20
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
21
-
7
+ exports.default = exports.Main = void 0;
22
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
23
-
24
9
  var _react = _interopRequireDefault(require("react"));
25
-
26
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
27
-
28
- var _classnames = _interopRequireDefault(require("classnames"));
29
-
30
11
  var _debounce = _interopRequireDefault(require("lodash/debounce"));
31
-
32
12
  var _debug = _interopRequireDefault(require("debug"));
33
-
34
- var _Typography = _interopRequireDefault(require("@material-ui/core/Typography"));
35
-
36
- var _styles = require("@material-ui/core/styles");
37
-
13
+ var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
14
+ var _styles = require("@mui/material/styles");
38
15
  var _editableHtml = _interopRequireDefault(require("@pie-lib/editable-html"));
39
-
40
16
  var _renderUi = require("@pie-lib/render-ui");
41
-
42
17
  var _annotationEditor = _interopRequireDefault(require("./annotation/annotation-editor"));
43
-
44
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
45
-
46
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
47
-
48
- var log = (0, _debug["default"])('@pie-ui:extended-text-entry');
49
-
50
- var style = function style(theme) {
51
- return {
52
- main: {
53
- backgroundColor: _renderUi.color.background(),
54
- color: _renderUi.color.text()
55
- },
56
- prompt: {
57
- width: '100%',
58
- color: _renderUi.color.text(),
59
- marginBottom: theme.spacing.unit * 2,
60
- fontSize: 'inherit'
61
- },
62
- teacherInstructions: {
63
- marginBottom: theme.spacing.unit * 2
64
- },
65
- editor: {
66
- marginBottom: theme.spacing.unit * 2,
67
- borderRadius: '4px'
68
- },
69
- srOnly: {
70
- position: 'absolute',
71
- left: '-10000px',
72
- top: 'auto',
73
- width: '1px',
74
- height: '1px',
75
- overflow: 'hidden'
76
- }
77
- };
78
- };
79
-
80
- var Main = /*#__PURE__*/function (_React$Component) {
81
- (0, _inherits2["default"])(Main, _React$Component);
82
-
83
- var _super = _createSuper(Main);
84
-
85
- function Main() {
86
- var _this;
87
-
88
- (0, _classCallCheck2["default"])(this, Main);
89
-
90
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
91
- args[_key] = arguments[_key];
92
- }
93
-
94
- _this = _super.call.apply(_super, [this].concat(args));
95
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "changeSessionValue", (0, _debounce["default"])(_this.props.onValueChange, 1500));
96
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "changeSessionComment", (0, _debounce["default"])(_this.props.onCommentChange, 1500));
97
- return _this;
18
+ const log = (0, _debug.default)('@pie-ui:extended-text-entry');
19
+ const MainContainer = (0, _styles.styled)(_renderUi.UiLayout)({
20
+ backgroundColor: _renderUi.color.background(),
21
+ color: _renderUi.color.text()
22
+ });
23
+ const StyledPrompt = (0, _styles.styled)(_Typography.default)(({
24
+ theme
25
+ }) => ({
26
+ width: '100%',
27
+ color: _renderUi.color.text(),
28
+ marginBottom: theme.spacing(2),
29
+ fontSize: 'inherit'
30
+ }));
31
+ const TeacherInstructions = (0, _styles.styled)('div')(({
32
+ theme
33
+ }) => ({
34
+ marginBottom: theme.spacing(2)
35
+ }));
36
+ const Editor = (0, _styles.styled)(_editableHtml.default)(({
37
+ theme
38
+ }) => ({
39
+ marginBottom: theme.spacing(2),
40
+ borderRadius: '4px'
41
+ }));
42
+ const SrOnly = (0, _styles.styled)('h2')({
43
+ position: 'absolute',
44
+ left: '-10000px',
45
+ top: 'auto',
46
+ width: '1px',
47
+ height: '1px',
48
+ overflow: 'hidden'
49
+ });
50
+ class Main extends _react.default.Component {
51
+ constructor(...args) {
52
+ super(...args);
53
+ (0, _defineProperty2.default)(this, "changeSessionValue", (0, _debounce.default)(this.props.onValueChange, 1500));
54
+ (0, _defineProperty2.default)(this, "changeSessionComment", (0, _debounce.default)(this.props.onCommentChange, 1500));
98
55
  }
99
-
100
- (0, _createClass2["default"])(Main, [{
101
- key: "render",
102
- value: function render() {
103
- var _this2 = this;
104
-
105
- var _this$props = this.props,
106
- model = _this$props.model,
107
- classes = _this$props.classes,
108
- session = _this$props.session,
109
- onAnnotationsChange = _this$props.onAnnotationsChange;
110
- var animationsDisabled = model.animationsDisabled,
111
- annotatorMode = model.annotatorMode,
112
- customKeys = model.customKeys,
113
- dimensions = model.dimensions,
114
- disabled = model.disabled,
115
- disabledAnnotator = model.disabledAnnotator,
116
- equationEditor = model.equationEditor,
117
- extraCSSRules = model.extraCSSRules,
118
- feedback = model.feedback,
119
- mathInput = model.mathInput,
120
- playersToolbarPosition = model.playersToolbarPosition,
121
- predefinedAnnotations = model.predefinedAnnotations,
122
- prompt = model.prompt,
123
- spanishInput = model.spanishInput,
124
- specialInput = model.specialInput,
125
- spellCheckEnabled = model.spellCheckEnabled,
126
- teacherInstructions = model.teacherInstructions;
127
- var annotations = session.annotations,
128
- comment = session.comment,
129
- value = session.value;
130
-
131
- var _ref = dimensions || {},
132
- width = _ref.width,
133
- height = _ref.height;
134
-
135
- var maxHeight = '40vh';
136
- var toolbarOpts = {
137
- position: playersToolbarPosition === 'top' ? 'top' : 'bottom'
138
- };
139
- log('[render] disabled? ', disabled);
140
-
141
- var teacherInstructionsDiv = /*#__PURE__*/_react["default"].createElement(_renderUi.PreviewPrompt, {
142
- defaultClassName: "teacher-instructions",
143
- prompt: teacherInstructions
56
+ render() {
57
+ const {
58
+ model,
59
+ session,
60
+ onAnnotationsChange
61
+ } = this.props;
62
+ const {
63
+ animationsDisabled,
64
+ annotatorMode,
65
+ customKeys,
66
+ dimensions,
67
+ disabled,
68
+ disabledAnnotator,
69
+ equationEditor,
70
+ extraCSSRules,
71
+ feedback,
72
+ mathInput,
73
+ playersToolbarPosition,
74
+ predefinedAnnotations,
75
+ prompt,
76
+ spanishInput,
77
+ specialInput,
78
+ spellCheckEnabled,
79
+ teacherInstructions
80
+ } = model;
81
+ const {
82
+ annotations,
83
+ comment,
84
+ value
85
+ } = session;
86
+ const {
87
+ width,
88
+ height
89
+ } = dimensions || {};
90
+ const maxHeight = '40vh';
91
+ const toolbarOpts = {
92
+ position: playersToolbarPosition === 'top' ? 'top' : 'bottom'
93
+ };
94
+ log('[render] disabled? ', disabled);
95
+ const teacherInstructionsDiv = /*#__PURE__*/_react.default.createElement(_renderUi.PreviewPrompt, {
96
+ defaultClassName: "teacher-instructions",
97
+ prompt: teacherInstructions
98
+ });
99
+ const languageCharactersProps = [];
100
+ if (spanishInput) {
101
+ languageCharactersProps.push({
102
+ language: 'spanish'
144
103
  });
145
-
146
- var languageCharactersProps = [];
147
-
148
- if (spanishInput) {
149
- languageCharactersProps.push({
150
- language: 'spanish'
151
- });
104
+ }
105
+ if (specialInput) {
106
+ languageCharactersProps.push({
107
+ language: 'special'
108
+ });
109
+ }
110
+ return /*#__PURE__*/_react.default.createElement(MainContainer, {
111
+ extraCSSRules: extraCSSRules,
112
+ ref: ref => {
113
+ this.containerRef = ref;
152
114
  }
153
-
154
- if (specialInput) {
155
- languageCharactersProps.push({
156
- language: 'special'
157
- });
115
+ }, /*#__PURE__*/_react.default.createElement(SrOnly, null, "Constructed Response Question"), teacherInstructions && /*#__PURE__*/_react.default.createElement(TeacherInstructions, null, !animationsDisabled ? /*#__PURE__*/_react.default.createElement(_renderUi.Collapsible, {
116
+ labels: {
117
+ hidden: 'Show Teacher Instructions',
118
+ visible: 'Hide Teacher Instructions'
158
119
  }
159
-
160
- return /*#__PURE__*/_react["default"].createElement(_renderUi.UiLayout, {
161
- extraCSSRules: extraCSSRules,
162
- className: classes.main,
163
- ref: function ref(_ref2) {
164
- _this2.containerRef = _ref2;
165
- }
166
- }, /*#__PURE__*/_react["default"].createElement("h2", {
167
- className: classes.srOnly
168
- }, "Constructed Response Question"), teacherInstructions && /*#__PURE__*/_react["default"].createElement("div", {
169
- className: classes.teacherInstructions
170
- }, !animationsDisabled ? /*#__PURE__*/_react["default"].createElement(_renderUi.Collapsible, {
171
- labels: {
172
- hidden: 'Show Teacher Instructions',
173
- visible: 'Hide Teacher Instructions'
120
+ }, teacherInstructionsDiv) : teacherInstructionsDiv), prompt && /*#__PURE__*/_react.default.createElement(StyledPrompt, {
121
+ component: 'span'
122
+ }, /*#__PURE__*/_react.default.createElement(_renderUi.PreviewPrompt, {
123
+ defaultClassName: "prompt",
124
+ prompt: model.prompt
125
+ })), annotatorMode ? /*#__PURE__*/_react.default.createElement(_annotationEditor.default, {
126
+ text: value || '',
127
+ annotations: annotations || [],
128
+ comment: comment || '',
129
+ predefinedAnnotations: predefinedAnnotations || [],
130
+ onChange: onAnnotationsChange,
131
+ onCommentChange: this.changeSessionComment,
132
+ width: width,
133
+ height: height,
134
+ maxHeight: maxHeight,
135
+ disabled: disabledAnnotator,
136
+ disabledMath: !mathInput,
137
+ customKeys: customKeys,
138
+ keypadMode: equationEditor
139
+ }) : /*#__PURE__*/_react.default.createElement(Editor, {
140
+ className: "response-area-editor",
141
+ onChange: this.changeSessionValue,
142
+ markup: value || '',
143
+ maxWidth: width && width.toString(),
144
+ minWidth: '100px',
145
+ minHeight: height && height.toString(),
146
+ maxHeight: maxHeight,
147
+ disabled: disabled,
148
+ highlightShape: true,
149
+ toolbarOpts: toolbarOpts,
150
+ spellCheck: spellCheckEnabled,
151
+ charactersLimit: 50000,
152
+ autoWidthToolbar: true,
153
+ pluginProps: {
154
+ math: {
155
+ disabled: !mathInput,
156
+ customKeys: this.props.model.customKeys,
157
+ keypadMode: this.props.model.equationEditor,
158
+ controlledKeypadMode: false
174
159
  },
175
- className: classes.collapsible
176
- }, teacherInstructionsDiv) : teacherInstructionsDiv), prompt && /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
177
- component: 'span',
178
- className: classes.prompt
179
- }, /*#__PURE__*/_react["default"].createElement(_renderUi.PreviewPrompt, {
180
- defaultClassName: "prompt",
181
- prompt: model.prompt
182
- })), annotatorMode ? /*#__PURE__*/_react["default"].createElement(_annotationEditor["default"], {
183
- text: value || '',
184
- annotations: annotations || [],
185
- comment: comment || '',
186
- predefinedAnnotations: predefinedAnnotations || [],
187
- onChange: onAnnotationsChange,
188
- onCommentChange: this.changeSessionComment,
189
- width: width,
190
- height: height,
191
- maxHeight: maxHeight,
192
- disabled: disabledAnnotator,
193
- disabledMath: !mathInput,
194
- customKeys: customKeys,
195
- keypadMode: equationEditor
196
- }) : /*#__PURE__*/_react["default"].createElement(_editableHtml["default"], {
197
- className: (0, _classnames["default"])(classes.editor, 'response-area-editor'),
198
- onChange: this.changeSessionValue,
199
- markup: value || '',
200
- maxWidth: width && width.toString(),
201
- minWidth: '100px',
202
- minHeight: height && height.toString(),
203
- maxHeight: maxHeight,
204
- disabled: disabled,
205
- highlightShape: true,
206
- toolbarOpts: toolbarOpts,
207
- spellCheck: spellCheckEnabled,
208
- charactersLimit: 50000,
209
- autoWidthToolbar: true,
210
- pluginProps: {
211
- math: {
212
- disabled: !mathInput,
213
- customKeys: this.props.model.customKeys,
214
- keypadMode: this.props.model.equationEditor,
215
- controlledKeypadMode: false
216
- },
217
- video: {
218
- disabled: true
219
- },
220
- audio: {
221
- disabled: true
222
- },
223
- table: {
224
- disabled: true
225
- },
226
- textAlign: {
227
- disabled: true
228
- },
229
- separateParagraphs: {
230
- disabled: false
231
- },
232
- ul_list: {
233
- disabled: true
234
- },
235
- ol_list: {
236
- disabled: true
237
- }
160
+ video: {
161
+ disabled: true
238
162
  },
239
- languageCharactersProps: languageCharactersProps
240
- }), feedback && /*#__PURE__*/_react["default"].createElement(_renderUi.Feedback, {
241
- correctness: "correct",
242
- feedback: feedback
243
- }));
244
- }
245
- }]);
246
- return Main;
247
- }(_react["default"].Component);
248
-
163
+ audio: {
164
+ disabled: true
165
+ },
166
+ table: {
167
+ disabled: true
168
+ },
169
+ textAlign: {
170
+ disabled: true
171
+ },
172
+ separateParagraphs: {
173
+ disabled: false
174
+ },
175
+ ul_list: {
176
+ disabled: true
177
+ },
178
+ ol_list: {
179
+ disabled: true
180
+ }
181
+ },
182
+ languageCharactersProps: languageCharactersProps
183
+ }), feedback && /*#__PURE__*/_react.default.createElement(_renderUi.Feedback, {
184
+ correctness: "correct",
185
+ feedback: feedback
186
+ }));
187
+ }
188
+ }
249
189
  exports.Main = Main;
250
- (0, _defineProperty2["default"])(Main, "propTypes", {
251
- onValueChange: _propTypes["default"].func.isRequired,
252
- onAnnotationsChange: _propTypes["default"].func.isRequired,
253
- onCommentChange: _propTypes["default"].func.isRequired,
254
- model: _propTypes["default"].object,
255
- classes: _propTypes["default"].object.isRequired,
256
- session: _propTypes["default"].shape({
257
- value: _propTypes["default"].string,
258
- annotations: _propTypes["default"].array,
259
- comment: _propTypes["default"].string
190
+ (0, _defineProperty2.default)(Main, "propTypes", {
191
+ onValueChange: _propTypes.default.func.isRequired,
192
+ onAnnotationsChange: _propTypes.default.func.isRequired,
193
+ onCommentChange: _propTypes.default.func.isRequired,
194
+ model: _propTypes.default.object,
195
+ session: _propTypes.default.shape({
196
+ value: _propTypes.default.string,
197
+ annotations: _propTypes.default.array,
198
+ comment: _propTypes.default.string
260
199
  }).isRequired
261
200
  });
262
-
263
- var _default = (0, _styles.withStyles)(style)(Main);
264
-
265
- exports["default"] = _default;
201
+ var _default = exports.default = Main;
266
202
  //# sourceMappingURL=main.js.map
package/lib/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/main.jsx"],"names":["log","style","theme","main","backgroundColor","color","background","text","prompt","width","marginBottom","spacing","unit","fontSize","teacherInstructions","editor","borderRadius","srOnly","position","left","top","height","overflow","Main","props","onValueChange","onCommentChange","model","classes","session","onAnnotationsChange","animationsDisabled","annotatorMode","customKeys","dimensions","disabled","disabledAnnotator","equationEditor","extraCSSRules","feedback","mathInput","playersToolbarPosition","predefinedAnnotations","spanishInput","specialInput","spellCheckEnabled","annotations","comment","value","maxHeight","toolbarOpts","teacherInstructionsDiv","languageCharactersProps","push","language","ref","containerRef","hidden","visible","collapsible","changeSessionComment","changeSessionValue","toString","math","keypadMode","controlledKeypadMode","video","audio","table","textAlign","separateParagraphs","ul_list","ol_list","React","Component","PropTypes","func","isRequired","object","shape","string","array"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AAEA;;AACA;;AAEA;;;;;;AAEA,IAAMA,GAAG,GAAG,uBAAM,6BAAN,CAAZ;;AAEA,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;AAAA,SAAY;AACxBC,IAAAA,IAA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OAAO,EAAE4B,sBAAUK;AAHI,GAAhB,EAINH;AAVc,C;;eA0JN,wBAAW5E,KAAX,EAAkBsB,IAAlB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport debounce from 'lodash/debounce';\nimport debug from 'debug';\n\nimport Typography from '@material-ui/core/Typography';\nimport { withStyles } from '@material-ui/core/styles';\n\nimport EditableHtml from '@pie-lib/editable-html';\nimport { color, Feedback, Collapsible, PreviewPrompt, UiLayout } from '@pie-lib/render-ui';\n\nimport AnnotationEditor from './annotation/annotation-editor';\n\nconst log = debug('@pie-ui:extended-text-entry');\n\nconst style = (theme) => ({\n main: {\n backgroundColor: color.background(),\n color: color.text(),\n },\n prompt: {\n width: '100%',\n color: color.text(),\n marginBottom: theme.spacing.unit * 2,\n fontSize: 'inherit',\n },\n teacherInstructions: {\n marginBottom: theme.spacing.unit * 2,\n },\n editor: {\n marginBottom: theme.spacing.unit * 2,\n borderRadius: '4px',\n },\n srOnly: {\n position: 'absolute',\n left: '-10000px',\n top: 'auto',\n width: '1px',\n height: '1px',\n overflow: 'hidden',\n },\n});\n\nexport class Main extends React.Component {\n static propTypes = {\n onValueChange: PropTypes.func.isRequired,\n onAnnotationsChange: PropTypes.func.isRequired,\n onCommentChange: PropTypes.func.isRequired,\n model: PropTypes.object,\n classes: PropTypes.object.isRequired,\n session: PropTypes.shape({\n value: PropTypes.string,\n annotations: PropTypes.array,\n comment: PropTypes.string,\n }).isRequired,\n };\n\n changeSessionValue = debounce(this.props.onValueChange, 1500);\n\n changeSessionComment = debounce(this.props.onCommentChange, 1500);\n\n render() {\n const { model, classes, session, onAnnotationsChange } = this.props;\n const {\n animationsDisabled,\n annotatorMode,\n customKeys,\n dimensions,\n disabled,\n disabledAnnotator,\n equationEditor,\n extraCSSRules,\n feedback,\n mathInput,\n playersToolbarPosition,\n predefinedAnnotations,\n prompt,\n spanishInput,\n specialInput,\n spellCheckEnabled,\n teacherInstructions,\n } = model;\n const { annotations, comment, value } = session;\n const { width, height } = dimensions || {};\n const maxHeight = '40vh';\n const toolbarOpts = { position: playersToolbarPosition === 'top' ? 'top' : 'bottom' };\n\n log('[render] disabled? ', disabled);\n\n const teacherInstructionsDiv = (\n <PreviewPrompt defaultClassName=\"teacher-instructions\" prompt={teacherInstructions} />\n );\n\n const languageCharactersProps = [];\n\n if (spanishInput) {\n languageCharactersProps.push({ language: 'spanish' });\n }\n\n if (specialInput) {\n languageCharactersProps.push({ language: 'special' });\n }\n\n return (\n <UiLayout\n extraCSSRules={extraCSSRules}\n className={classes.main}\n ref={(ref) => {\n this.containerRef = ref;\n }}\n >\n <h2 className={classes.srOnly}>Constructed Response Question</h2>\n\n {teacherInstructions && (\n <div className={classes.teacherInstructions}>\n {!animationsDisabled ? (\n <Collapsible\n labels={{ hidden: 'Show Teacher Instructions', visible: 'Hide Teacher Instructions' }}\n className={classes.collapsible}\n >\n {teacherInstructionsDiv}\n </Collapsible>\n ) : (\n teacherInstructionsDiv\n )}\n </div>\n )}\n\n {prompt && (\n <Typography component={'span'} className={classes.prompt}>\n <PreviewPrompt defaultClassName=\"prompt\" prompt={model.prompt} />\n </Typography>\n )}\n\n {annotatorMode ? (\n <AnnotationEditor\n text={value || ''}\n annotations={annotations || []}\n comment={comment || ''}\n predefinedAnnotations={predefinedAnnotations || []}\n onChange={onAnnotationsChange}\n onCommentChange={this.changeSessionComment}\n width={width}\n height={height}\n maxHeight={maxHeight}\n disabled={disabledAnnotator}\n disabledMath={!mathInput}\n customKeys={customKeys}\n keypadMode={equationEditor}\n />\n ) : (\n <EditableHtml\n className={classnames(classes.editor, 'response-area-editor')}\n onChange={this.changeSessionValue}\n markup={value || ''}\n maxWidth={width && width.toString()}\n minWidth={'100px'}\n minHeight={height && height.toString()}\n maxHeight={maxHeight}\n disabled={disabled}\n highlightShape={true}\n toolbarOpts={toolbarOpts}\n spellCheck={spellCheckEnabled}\n charactersLimit={50000}\n autoWidthToolbar\n pluginProps={{\n math: {\n disabled: !mathInput,\n customKeys: this.props.model.customKeys,\n keypadMode: this.props.model.equationEditor,\n controlledKeypadMode: false,\n },\n video: {\n disabled: true,\n },\n audio: {\n disabled: true,\n },\n table: {\n disabled: true,\n },\n textAlign: {\n disabled: true,\n },\n separateParagraphs: { disabled: false },\n ul_list: { disabled: true },\n ol_list: { disabled: true },\n }}\n languageCharactersProps={languageCharactersProps}\n />\n )}\n\n {feedback && <Feedback correctness=\"correct\" feedback={feedback} />}\n </UiLayout>\n );\n }\n}\n\nexport default withStyles(style)(Main);\n"],"file":"main.js"}
1
+ {"version":3,"file":"main.js","names":["_react","_interopRequireDefault","require","_propTypes","_debounce","_debug","_Typography","_styles","_editableHtml","_renderUi","_annotationEditor","log","debug","MainContainer","styled","UiLayout","backgroundColor","color","background","text","StyledPrompt","Typography","theme","width","marginBottom","spacing","fontSize","TeacherInstructions","Editor","EditableHtml","borderRadius","SrOnly","position","left","top","height","overflow","Main","React","Component","constructor","args","_defineProperty2","default","debounce","props","onValueChange","onCommentChange","render","model","session","onAnnotationsChange","animationsDisabled","annotatorMode","customKeys","dimensions","disabled","disabledAnnotator","equationEditor","extraCSSRules","feedback","mathInput","playersToolbarPosition","predefinedAnnotations","prompt","spanishInput","specialInput","spellCheckEnabled","teacherInstructions","annotations","comment","value","maxHeight","toolbarOpts","teacherInstructionsDiv","createElement","PreviewPrompt","defaultClassName","languageCharactersProps","push","language","ref","containerRef","Collapsible","labels","hidden","visible","component","onChange","changeSessionComment","disabledMath","keypadMode","className","changeSessionValue","markup","maxWidth","toString","minWidth","minHeight","highlightShape","spellCheck","charactersLimit","autoWidthToolbar","pluginProps","math","controlledKeypadMode","video","audio","table","textAlign","separateParagraphs","ul_list","ol_list","Feedback","correctness","exports","PropTypes","func","isRequired","object","shape","string","array","_default"],"sources":["../src/main.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport debounce from 'lodash/debounce';\nimport debug from 'debug';\n\nimport Typography from '@mui/material/Typography';\nimport { styled } from '@mui/material/styles';\n\nimport EditableHtml from '@pie-lib/editable-html';\nimport { color, Feedback, Collapsible, PreviewPrompt, UiLayout } from '@pie-lib/render-ui';\n\nimport AnnotationEditor from './annotation/annotation-editor';\n\nconst log = debug('@pie-ui:extended-text-entry');\n\nconst MainContainer = styled(UiLayout)({\n backgroundColor: color.background(),\n color: color.text(),\n});\n\nconst StyledPrompt = styled(Typography)(({ theme }) => ({\n width: '100%',\n color: color.text(),\n marginBottom: theme.spacing(2),\n fontSize: 'inherit',\n}));\n\nconst TeacherInstructions = styled('div')(({ theme }) => ({\n marginBottom: theme.spacing(2),\n}));\n\nconst Editor = styled(EditableHtml)(({ theme }) => ({\n marginBottom: theme.spacing(2),\n borderRadius: '4px',\n}));\n\nconst SrOnly = styled('h2')({\n position: 'absolute',\n left: '-10000px',\n top: 'auto',\n width: '1px',\n height: '1px',\n overflow: 'hidden',\n});\n\nexport class Main extends React.Component {\n static propTypes = {\n onValueChange: PropTypes.func.isRequired,\n onAnnotationsChange: PropTypes.func.isRequired,\n onCommentChange: PropTypes.func.isRequired,\n model: PropTypes.object,\n session: PropTypes.shape({\n value: PropTypes.string,\n annotations: PropTypes.array,\n comment: PropTypes.string,\n }).isRequired,\n };\n\n changeSessionValue = debounce(this.props.onValueChange, 1500);\n\n changeSessionComment = debounce(this.props.onCommentChange, 1500);\n\n render() {\n const { model, session, onAnnotationsChange } = this.props;\n const {\n animationsDisabled,\n annotatorMode,\n customKeys,\n dimensions,\n disabled,\n disabledAnnotator,\n equationEditor,\n extraCSSRules,\n feedback,\n mathInput,\n playersToolbarPosition,\n predefinedAnnotations,\n prompt,\n spanishInput,\n specialInput,\n spellCheckEnabled,\n teacherInstructions,\n } = model;\n const { annotations, comment, value } = session;\n const { width, height } = dimensions || {};\n const maxHeight = '40vh';\n const toolbarOpts = { position: playersToolbarPosition === 'top' ? 'top' : 'bottom' };\n\n log('[render] disabled? ', disabled);\n\n const teacherInstructionsDiv = (\n <PreviewPrompt defaultClassName=\"teacher-instructions\" prompt={teacherInstructions} />\n );\n\n const languageCharactersProps = [];\n\n if (spanishInput) {\n languageCharactersProps.push({ language: 'spanish' });\n }\n\n if (specialInput) {\n languageCharactersProps.push({ language: 'special' });\n }\n\n return (\n <MainContainer\n extraCSSRules={extraCSSRules}\n ref={(ref) => {\n this.containerRef = ref;\n }}\n >\n <SrOnly>Constructed Response Question</SrOnly>\n\n {teacherInstructions && (\n <TeacherInstructions>\n {!animationsDisabled ? (\n <Collapsible\n labels={{ hidden: 'Show Teacher Instructions', visible: 'Hide Teacher Instructions' }}\n >\n {teacherInstructionsDiv}\n </Collapsible>\n ) : (\n teacherInstructionsDiv\n )}\n </TeacherInstructions>\n )}\n\n {prompt && (\n <StyledPrompt component={'span'}>\n <PreviewPrompt defaultClassName=\"prompt\" prompt={model.prompt} />\n </StyledPrompt>\n )}\n\n {annotatorMode ? (\n <AnnotationEditor\n text={value || ''}\n annotations={annotations || []}\n comment={comment || ''}\n predefinedAnnotations={predefinedAnnotations || []}\n onChange={onAnnotationsChange}\n onCommentChange={this.changeSessionComment}\n width={width}\n height={height}\n maxHeight={maxHeight}\n disabled={disabledAnnotator}\n disabledMath={!mathInput}\n customKeys={customKeys}\n keypadMode={equationEditor}\n />\n ) : (\n <Editor\n className=\"response-area-editor\"\n onChange={this.changeSessionValue}\n markup={value || ''}\n maxWidth={width && width.toString()}\n minWidth={'100px'}\n minHeight={height && height.toString()}\n maxHeight={maxHeight}\n disabled={disabled}\n highlightShape={true}\n toolbarOpts={toolbarOpts}\n spellCheck={spellCheckEnabled}\n charactersLimit={50000}\n autoWidthToolbar\n pluginProps={{\n math: {\n disabled: !mathInput,\n customKeys: this.props.model.customKeys,\n keypadMode: this.props.model.equationEditor,\n controlledKeypadMode: false,\n },\n video: {\n disabled: true,\n },\n audio: {\n disabled: true,\n },\n table: {\n disabled: true,\n },\n textAlign: {\n disabled: true,\n },\n separateParagraphs: { disabled: false },\n ul_list: { disabled: true },\n ol_list: { disabled: true },\n }}\n languageCharactersProps={languageCharactersProps}\n />\n )}\n\n {feedback && <Feedback correctness=\"correct\" feedback={feedback} />}\n </MainContainer>\n );\n }\n}\n\nexport default Main;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,SAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,MAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAEA,IAAAI,WAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAEA,IAAAM,aAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,SAAA,GAAAP,OAAA;AAEA,IAAAQ,iBAAA,GAAAT,sBAAA,CAAAC,OAAA;AAEA,MAAMS,GAAG,GAAG,IAAAC,cAAK,EAAC,6BAA6B,CAAC;AAEhD,MAAMC,aAAa,GAAG,IAAAC,cAAM,EAACC,kBAAQ,CAAC,CAAC;EACrCC,eAAe,EAAEC,eAAK,CAACC,UAAU,CAAC,CAAC;EACnCD,KAAK,EAAEA,eAAK,CAACE,IAAI,CAAC;AACpB,CAAC,CAAC;AAEF,MAAMC,YAAY,GAAG,IAAAN,cAAM,EAACO,mBAAU,CAAC,CAAC,CAAC;EAAEC;AAAM,CAAC,MAAM;EACtDC,KAAK,EAAE,MAAM;EACbN,KAAK,EAAEA,eAAK,CAACE,IAAI,CAAC,CAAC;EACnBK,YAAY,EAAEF,KAAK,CAACG,OAAO,CAAC,CAAC,CAAC;EAC9BC,QAAQ,EAAE;AACZ,CAAC,CAAC,CAAC;AAEH,MAAMC,mBAAmB,GAAG,IAAAb,cAAM,EAAC,KAAK,CAAC,CAAC,CAAC;EAAEQ;AAAM,CAAC,MAAM;EACxDE,YAAY,EAAEF,KAAK,CAACG,OAAO,CAAC,CAAC;AAC/B,CAAC,CAAC,CAAC;AAEH,MAAMG,MAAM,GAAG,IAAAd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