@instructure/quiz-core 20.16.1-rc.4 → 20.16.1-rc.6

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.
@@ -6,6 +6,7 @@ import React, { Component } from 'react';
6
6
  import { INSTRUCTIONS_SCROLL_KEY, TITLE_SCROLL_KEY } from '@instructure/quiz-common';
7
7
  import ScrollableQuizTitle from "../title/Title.js";
8
8
  import ScrollableQuizInstructions from "../instructions/Instructions.js";
9
+ import PropTypes from 'prop-types';
9
10
  export var QuizInfo = /*#__PURE__*/function (_Component) {
10
11
  _inherits(QuizInfo, _Component);
11
12
 
@@ -22,7 +23,7 @@ export var QuizInfo = /*#__PURE__*/function (_Component) {
22
23
  value: function render() {
23
24
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ScrollableQuizTitle, Object.assign({}, this.props, {
24
25
  scrollKey: TITLE_SCROLL_KEY
25
- })), /*#__PURE__*/React.createElement(ScrollableQuizInstructions, Object.assign({}, this.props, {
26
+ })), !this.props.hideInstructions && /*#__PURE__*/React.createElement(ScrollableQuizInstructions, Object.assign({}, this.props, {
26
27
  scrollKey: INSTRUCTIONS_SCROLL_KEY
27
28
  })));
28
29
  }
@@ -31,4 +32,10 @@ export var QuizInfo = /*#__PURE__*/function (_Component) {
31
32
  QuizInfo.displayName = "QuizInfo";
32
33
  return QuizInfo;
33
34
  }(Component);
35
+ QuizInfo.propTypes = {
36
+ hideInstructions: PropTypes.bool
37
+ };
38
+ QuizInfo.defaultProps = {
39
+ hideInstructions: false
40
+ };
34
41
  export default QuizInfo;
@@ -25,6 +25,8 @@ var _Title = _interopRequireDefault(require("../title/Title.js"));
25
25
 
26
26
  var _Instructions = _interopRequireDefault(require("../instructions/Instructions.js"));
27
27
 
28
+ var _propTypes = _interopRequireDefault(require("prop-types"));
29
+
28
30
  var QuizInfo = /*#__PURE__*/function (_Component) {
29
31
  (0, _inherits2.default)(QuizInfo, _Component);
30
32
 
@@ -40,7 +42,7 @@ var QuizInfo = /*#__PURE__*/function (_Component) {
40
42
  value: function render() {
41
43
  return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Title.default, Object.assign({}, this.props, {
42
44
  scrollKey: _quizCommon.TITLE_SCROLL_KEY
43
- })), /*#__PURE__*/_react.default.createElement(_Instructions.default, Object.assign({}, this.props, {
45
+ })), !this.props.hideInstructions && /*#__PURE__*/_react.default.createElement(_Instructions.default, Object.assign({}, this.props, {
44
46
  scrollKey: _quizCommon.INSTRUCTIONS_SCROLL_KEY
45
47
  })));
46
48
  }
@@ -50,5 +52,11 @@ var QuizInfo = /*#__PURE__*/function (_Component) {
50
52
  }(_react.Component);
51
53
 
52
54
  exports.QuizInfo = QuizInfo;
55
+ QuizInfo.propTypes = {
56
+ hideInstructions: _propTypes.default.bool
57
+ };
58
+ QuizInfo.defaultProps = {
59
+ hideInstructions: false
60
+ };
53
61
  var _default = QuizInfo;
54
62
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "20.16.1-rc.4+cf3f57b88",
3
+ "version": "20.16.1-rc.6+34f8d91a7",
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.51.0",
45
45
  "@instructure/grading-utils": "^1.0.0",
46
46
  "@instructure/outcomes-ui": "^3.2.2",
47
- "@instructure/quiz-common": "20.16.1-rc.4+cf3f57b88",
48
- "@instructure/quiz-i18n": "20.16.1-rc.4+cf3f57b88",
49
- "@instructure/quiz-interactions": "20.16.1-rc.4+cf3f57b88",
50
- "@instructure/quiz-number-input": "20.16.1-rc.4+cf3f57b88",
51
- "@instructure/quiz-rce": "20.16.1-rc.4+cf3f57b88",
47
+ "@instructure/quiz-common": "20.16.1-rc.6+34f8d91a7",
48
+ "@instructure/quiz-i18n": "20.16.1-rc.6+34f8d91a7",
49
+ "@instructure/quiz-interactions": "20.16.1-rc.6+34f8d91a7",
50
+ "@instructure/quiz-number-input": "20.16.1-rc.6+34f8d91a7",
51
+ "@instructure/quiz-rce": "20.16.1-rc.6+34f8d91a7",
52
52
  "@instructure/ui-a11y-content": "^8.51.0",
53
53
  "@instructure/ui-alerts": "^8.51.0",
54
54
  "@instructure/ui-avatar": "^8.51.0",
@@ -111,7 +111,7 @@
111
111
  "file-saver": "~2.0.5",
112
112
  "humps": "^2.0.0",
113
113
  "immutable": "^3.8.1",
114
- "instructure-validations": "20.16.1-rc.4+cf3f57b88",
114
+ "instructure-validations": "20.16.1-rc.6+34f8d91a7",
115
115
  "ipaddr.js": "^1.5.4",
116
116
  "isomorphic-fetch": "^2.2.0",
117
117
  "isuuid": "^0.1.0",
@@ -163,7 +163,7 @@
163
163
  "jquery": "^2.2.3",
164
164
  "karma-junit-reporter": "^2.0.1",
165
165
  "most-subject": "^5.3.0",
166
- "quiz-presets": "20.16.1-rc.4+cf3f57b88",
166
+ "quiz-presets": "20.16.1-rc.6+34f8d91a7",
167
167
  "react": "^16.8.6",
168
168
  "react-addons-test-utils": "^15.6.2",
169
169
  "react-dom": "^16.8.6",
@@ -179,5 +179,5 @@
179
179
  "publishConfig": {
180
180
  "access": "public"
181
181
  },
182
- "gitHead": "cf3f57b888bbec796ca3eb7480b9ac07386d43a6"
182
+ "gitHead": "34f8d91a721ddb30f72cf27aac15ee36b03a6c7a"
183
183
  }