@instructure/quiz-core 19.2.1-rc.0 → 19.2.1-rc.1

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.
@@ -35,31 +35,14 @@ var QuizInstructionsEdit = (_dec = themeable(theme, styles), _dec(_class = (_tem
35
35
  var _super = _createSuper(QuizInstructionsEdit);
36
36
 
37
37
  function QuizInstructionsEdit() {
38
- var _this;
39
-
40
38
  _classCallCheck(this, QuizInstructionsEdit);
41
39
 
42
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
43
- args[_key] = arguments[_key];
44
- }
45
-
46
- _this = _super.call.apply(_super, [this].concat(args));
47
-
48
- _this.handleRef = function (node) {
49
- _this.rce = node;
50
- };
51
-
52
- return _this;
40
+ return _super.apply(this, arguments);
53
41
  }
54
42
 
55
43
  _createClass(QuizInstructionsEdit, [{
56
- key: "componentDidMount",
57
- value: function componentDidMount() {
58
- this.rce.getWrappedInstance().focus();
59
- } // enabled by wrapWithOutsideClick
60
-
61
- }, {
62
44
  key: "clickedOutside",
45
+ // enabled by wrapWithOutsideClick
63
46
  value: function clickedOutside() {
64
47
  this.props.saveAndPreview();
65
48
  } // enabled by wrapWithOutsideClick
@@ -78,9 +61,7 @@ var QuizInstructionsEdit = (_dec = themeable(theme, styles), _dec(_class = (_tem
78
61
  return /*#__PURE__*/React.createElement("div", {
79
62
  className: styles.instructionsEditWrapper
80
63
  }, /*#__PURE__*/React.createElement(RichContentInput, {
81
- noParagraphMargins: true,
82
64
  label: "",
83
- ref: this.handleRef,
84
65
  textareaId: INSTRUCTIONS_EDIT_ID,
85
66
  wrapperClassName: styles.instructionsEdit,
86
67
  textareaClassName: styles.instructionsEditInput,
@@ -60,31 +60,13 @@ var QuizInstructionsEdit = (_dec = (0, _uiThemeable.themeable)(_theme.default, s
60
60
  var _super = (0, _createSuper2.default)(QuizInstructionsEdit);
61
61
 
62
62
  function QuizInstructionsEdit() {
63
- var _this;
64
-
65
63
  (0, _classCallCheck2.default)(this, QuizInstructionsEdit);
66
-
67
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
68
- args[_key] = arguments[_key];
69
- }
70
-
71
- _this = _super.call.apply(_super, [this].concat(args));
72
-
73
- _this.handleRef = function (node) {
74
- _this.rce = node;
75
- };
76
-
77
- return _this;
64
+ return _super.apply(this, arguments);
78
65
  }
79
66
 
80
67
  (0, _createClass2.default)(QuizInstructionsEdit, [{
81
- key: "componentDidMount",
82
- value: function componentDidMount() {
83
- this.rce.getWrappedInstance().focus();
84
- } // enabled by wrapWithOutsideClick
85
-
86
- }, {
87
68
  key: "clickedOutside",
69
+ // enabled by wrapWithOutsideClick
88
70
  value: function clickedOutside() {
89
71
  this.props.saveAndPreview();
90
72
  } // enabled by wrapWithOutsideClick
@@ -103,9 +85,7 @@ var QuizInstructionsEdit = (_dec = (0, _uiThemeable.themeable)(_theme.default, s
103
85
  return /*#__PURE__*/_react.default.createElement("div", {
104
86
  className: styles.instructionsEditWrapper
105
87
  }, /*#__PURE__*/_react.default.createElement(_index.default, {
106
- noParagraphMargins: true,
107
88
  label: "",
108
- ref: this.handleRef,
109
89
  textareaId: _quizCommon.INSTRUCTIONS_EDIT_ID,
110
90
  wrapperClassName: styles.instructionsEdit,
111
91
  textareaClassName: styles.instructionsEditInput,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "19.2.1-rc.0+32b5a6922",
3
+ "version": "19.2.1-rc.1+0eddefc00",
4
4
  "license": "MIT",
5
5
  "description": "The Quiz React SDK by Instructure Inc.",
6
6
  "author": "Instructure, Inc. Engineering and Product Design",
@@ -44,11 +44,11 @@
44
44
  "@instructure/emotion": "^8.48.3",
45
45
  "@instructure/grading-utils": "^1.0.0",
46
46
  "@instructure/outcomes-ui": "^2.1.9",
47
- "@instructure/quiz-common": "19.2.1-rc.0+32b5a6922",
48
- "@instructure/quiz-i18n": "19.2.1-rc.0+32b5a6922",
49
- "@instructure/quiz-interactions": "19.2.1-rc.0+32b5a6922",
50
- "@instructure/quiz-number-input": "19.2.1-rc.0+32b5a6922",
51
- "@instructure/quiz-rce": "19.2.1-rc.0+32b5a6922",
47
+ "@instructure/quiz-common": "19.2.1-rc.1+0eddefc00",
48
+ "@instructure/quiz-i18n": "19.2.1-rc.1+0eddefc00",
49
+ "@instructure/quiz-interactions": "19.2.1-rc.1+0eddefc00",
50
+ "@instructure/quiz-number-input": "19.2.1-rc.1+0eddefc00",
51
+ "@instructure/quiz-rce": "19.2.1-rc.1+0eddefc00",
52
52
  "@instructure/ui-a11y-content": "^8.48.3",
53
53
  "@instructure/ui-alerts": "^8.48.3",
54
54
  "@instructure/ui-avatar": "^8.48.3",
@@ -110,7 +110,7 @@
110
110
  "file-saver": "~2.0.5",
111
111
  "humps": "^2.0.0",
112
112
  "immutable": "^3.8.1",
113
- "instructure-validations": "19.2.1-rc.0+32b5a6922",
113
+ "instructure-validations": "19.2.1-rc.1+0eddefc00",
114
114
  "ipaddr.js": "^1.5.4",
115
115
  "isomorphic-fetch": "^2.2.0",
116
116
  "isuuid": "^0.1.0",
@@ -162,7 +162,7 @@
162
162
  "intl": "^1.2.4",
163
163
  "jquery": "^2.2.3",
164
164
  "most-subject": "^5.3.0",
165
- "quiz-presets": "19.2.1-rc.0+32b5a6922",
165
+ "quiz-presets": "19.2.1-rc.1+0eddefc00",
166
166
  "react": "^16.8.6",
167
167
  "react-addons-test-utils": "^15.6.2",
168
168
  "react-dom": "^16.8.6",
@@ -178,5 +178,5 @@
178
178
  "publishConfig": {
179
179
  "access": "public"
180
180
  },
181
- "gitHead": "32b5a6922f69aa232e305c01f88984b6183164c9"
181
+ "gitHead": "0eddefc00f2dfbaaa629e982f91d895ed9ea9e9d"
182
182
  }