@pie-element/explicit-constructed-response 3.9.3-next.740 → 3.9.3-next.747

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/module/element.js CHANGED
@@ -14163,7 +14163,7 @@ var CorrectInput = withStyles$2(() => ({
14163
14163
  borderColor: color$2.correct()
14164
14164
  }
14165
14165
  }))(props => {
14166
- const {correct, charactersLimit, classes, disabled, isBox, isConstructedResponse, width, ...rest} = props;
14166
+ const {correct, charactersLimit, classes, disabled, isBox, isConstructedResponse, width, spellCheck, ...rest} = props;
14167
14167
  const label = typeof correct === 'boolean' ? correct ? 'correct' : 'incorrect' : undefined;
14168
14168
  const inputProps = charactersLimit ? {
14169
14169
  maxLength: charactersLimit
@@ -14189,18 +14189,19 @@ var CorrectInput = withStyles$2(() => ({
14189
14189
  inputProps: inputProps,
14190
14190
  labelWidth: 0,
14191
14191
  disabled: disabled,
14192
+ spellCheck: spellCheck,
14192
14193
  ...rest,
14193
14194
  __self: undefined,
14194
14195
  __source: {
14195
14196
  fileName: _jsxFileName$5,
14196
- lineNumber: 72
14197
+ lineNumber: 73
14197
14198
  }
14198
14199
  });
14199
14200
  });
14200
14201
  const React$5 = _dll_react;
14201
14202
  const PropTypes$2 = _dll_prop_types;
14202
14203
  const _jsxFileName$4 = "/home/circleci/repo/node_modules/@pie-lib/mask-markup/src/components/input.jsx";
14203
- const Input = ({disabled, correct, charactersLimit, id, isConstructedResponse, value, onChange, showCorrectAnswer, width}) => {
14204
+ const Input = ({disabled, correct, charactersLimit, id, isConstructedResponse, value, onChange, showCorrectAnswer, spellCheck, width}) => {
14204
14205
  return React$5.createElement(CorrectInput, {
14205
14206
  disabled: disabled,
14206
14207
  correct: showCorrectAnswer || correct,
@@ -14208,6 +14209,7 @@ const Input = ({disabled, correct, charactersLimit, id, isConstructedResponse, v
14208
14209
  variant: "outlined",
14209
14210
  value: value,
14210
14211
  isConstructedResponse: isConstructedResponse,
14212
+ spellCheck: spellCheck,
14211
14213
  isBox: true,
14212
14214
  width: width,
14213
14215
  onChange: e => {
@@ -14216,7 +14218,7 @@ const Input = ({disabled, correct, charactersLimit, id, isConstructedResponse, v
14216
14218
  __self: undefined,
14217
14219
  __source: {
14218
14220
  fileName: _jsxFileName$4,
14219
- lineNumber: 17
14221
+ lineNumber: 18
14220
14222
  }
14221
14223
  });
14222
14224
  };
@@ -14225,6 +14227,7 @@ Input.propTypes = {
14225
14227
  value: PropTypes$2.string,
14226
14228
  onChange: PropTypes$2.func,
14227
14229
  disabled: PropTypes$2.bool,
14230
+ spellCheck: PropTypes$2.bool,
14228
14231
  correct: PropTypes$2.bool,
14229
14232
  showCorrectAnswer: PropTypes$2.bool
14230
14233
  };
@@ -14233,7 +14236,7 @@ const _jsxFileName$3 = "/home/circleci/repo/node_modules/@pie-lib/mask-markup/sr
14233
14236
  var ConstructedResponse = withMask('input', props => (node, data, onChange) => {
14234
14237
  const dataset = node.data ? node.data.dataset || ({}) : {};
14235
14238
  if (dataset.component === 'input') {
14236
- const {adjustedLimit, disabled, feedback, showCorrectAnswer, maxLength} = props;
14239
+ const {adjustedLimit, disabled, feedback, showCorrectAnswer, maxLength, spellCheck} = props;
14237
14240
  const correctAnswer = (props.choices && dataset && props.choices[dataset.id] || [])[0];
14238
14241
  const finalValue = showCorrectAnswer ? correctAnswer && correctAnswer.label : data[dataset.id] || '';
14239
14242
  const width = maxLength && maxLength[dataset.id];
@@ -14248,10 +14251,11 @@ var ConstructedResponse = withMask('input', props => (node, data, onChange) => {
14248
14251
  width: width,
14249
14252
  charactersLimit: adjustedLimit ? width : 25,
14250
14253
  isConstructedResponse: true,
14254
+ spellCheck: spellCheck,
14251
14255
  __self: undefined,
14252
14256
  __source: {
14253
14257
  fileName: _jsxFileName$3,
14254
- lineNumber: 17
14258
+ lineNumber: 18
14255
14259
  }
14256
14260
  });
14257
14261
  }
package/module/print.js CHANGED
@@ -14126,7 +14126,7 @@ var CorrectInput = withStyles$2(() => ({
14126
14126
  borderColor: color$2.correct()
14127
14127
  }
14128
14128
  }))(props => {
14129
- const {correct, charactersLimit, classes, disabled, isBox, isConstructedResponse, width, ...rest} = props;
14129
+ const {correct, charactersLimit, classes, disabled, isBox, isConstructedResponse, width, spellCheck, ...rest} = props;
14130
14130
  const label = typeof correct === 'boolean' ? correct ? 'correct' : 'incorrect' : undefined;
14131
14131
  const inputProps = charactersLimit ? {
14132
14132
  maxLength: charactersLimit
@@ -14152,18 +14152,19 @@ var CorrectInput = withStyles$2(() => ({
14152
14152
  inputProps: inputProps,
14153
14153
  labelWidth: 0,
14154
14154
  disabled: disabled,
14155
+ spellCheck: spellCheck,
14155
14156
  ...rest,
14156
14157
  __self: undefined,
14157
14158
  __source: {
14158
14159
  fileName: _jsxFileName$5,
14159
- lineNumber: 72
14160
+ lineNumber: 73
14160
14161
  }
14161
14162
  });
14162
14163
  });
14163
14164
  const React$5 = _dll_react;
14164
14165
  const PropTypes$2 = _dll_prop_types;
14165
14166
  const _jsxFileName$4 = "/home/circleci/repo/node_modules/@pie-lib/mask-markup/src/components/input.jsx";
14166
- const Input = ({disabled, correct, charactersLimit, id, isConstructedResponse, value, onChange, showCorrectAnswer, width}) => {
14167
+ const Input = ({disabled, correct, charactersLimit, id, isConstructedResponse, value, onChange, showCorrectAnswer, spellCheck, width}) => {
14167
14168
  return React$5.createElement(CorrectInput, {
14168
14169
  disabled: disabled,
14169
14170
  correct: showCorrectAnswer || correct,
@@ -14171,6 +14172,7 @@ const Input = ({disabled, correct, charactersLimit, id, isConstructedResponse, v
14171
14172
  variant: "outlined",
14172
14173
  value: value,
14173
14174
  isConstructedResponse: isConstructedResponse,
14175
+ spellCheck: spellCheck,
14174
14176
  isBox: true,
14175
14177
  width: width,
14176
14178
  onChange: e => {
@@ -14179,7 +14181,7 @@ const Input = ({disabled, correct, charactersLimit, id, isConstructedResponse, v
14179
14181
  __self: undefined,
14180
14182
  __source: {
14181
14183
  fileName: _jsxFileName$4,
14182
- lineNumber: 17
14184
+ lineNumber: 18
14183
14185
  }
14184
14186
  });
14185
14187
  };
@@ -14188,6 +14190,7 @@ Input.propTypes = {
14188
14190
  value: PropTypes$2.string,
14189
14191
  onChange: PropTypes$2.func,
14190
14192
  disabled: PropTypes$2.bool,
14193
+ spellCheck: PropTypes$2.bool,
14191
14194
  correct: PropTypes$2.bool,
14192
14195
  showCorrectAnswer: PropTypes$2.bool
14193
14196
  };
@@ -14196,7 +14199,7 @@ const _jsxFileName$3 = "/home/circleci/repo/node_modules/@pie-lib/mask-markup/sr
14196
14199
  var ConstructedResponse = withMask('input', props => (node, data, onChange) => {
14197
14200
  const dataset = node.data ? node.data.dataset || ({}) : {};
14198
14201
  if (dataset.component === 'input') {
14199
- const {adjustedLimit, disabled, feedback, showCorrectAnswer, maxLength} = props;
14202
+ const {adjustedLimit, disabled, feedback, showCorrectAnswer, maxLength, spellCheck} = props;
14200
14203
  const correctAnswer = (props.choices && dataset && props.choices[dataset.id] || [])[0];
14201
14204
  const finalValue = showCorrectAnswer ? correctAnswer && correctAnswer.label : data[dataset.id] || '';
14202
14205
  const width = maxLength && maxLength[dataset.id];
@@ -14211,10 +14214,11 @@ var ConstructedResponse = withMask('input', props => (node, data, onChange) => {
14211
14214
  width: width,
14212
14215
  charactersLimit: adjustedLimit ? width : 25,
14213
14216
  isConstructedResponse: true,
14217
+ spellCheck: spellCheck,
14214
14218
  __self: undefined,
14215
14219
  __source: {
14216
14220
  fileName: _jsxFileName$3,
14217
- lineNumber: 17
14221
+ lineNumber: 18
14218
14222
  }
14219
14223
  });
14220
14224
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "3.9.3-next.740+ebb74b562",
7
+ "version": "3.9.3-next.747+6350e113a",
8
8
  "description": "",
9
9
  "scripts": {
10
10
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -14,7 +14,7 @@
14
14
  "@material-ui/core": "^3.9.2",
15
15
  "@pie-framework/pie-player-events": "^0.1.0",
16
16
  "@pie-lib/correct-answer-toggle": "^2.3.35",
17
- "@pie-lib/mask-markup": "^1.12.2",
17
+ "@pie-lib/mask-markup": "^1.12.3",
18
18
  "@pie-lib/math-rendering": "^2.3.13",
19
19
  "@pie-lib/render-ui": "^4.12.5",
20
20
  "classnames": "^2.2.5",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "author": "",
27
27
  "license": "ISC",
28
- "gitHead": "ebb74b562b97ba429beb9efb3341d6f43f060a36",
28
+ "gitHead": "6350e113a803025917943cb137b04698031b07e3",
29
29
  "main": "lib/index.js",
30
30
  "module": "src/index.js",
31
31
  "exports": {