@instructure/quiz-core 17.36.1-rc.4 → 17.36.1-rc.7

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.
@@ -291,7 +291,8 @@ var QuizEntryShow = (_dec = themeable(theme, styles), _dec(_class = (_temp = _cl
291
291
  className: styles.connectingLines
292
292
  }), /*#__PURE__*/React.createElement(PositionBox, {
293
293
  position: positionToDisplay,
294
- headingText: positionText
294
+ headingText: positionText,
295
+ headingLevel: quizEntry.isInStimulus ? 'h3' : 'h2'
295
296
  }), this.renderLeftHeader(), /*#__PURE__*/React.createElement(ActionButtons, {
296
297
  connectDragSource: this.props.connectDragSource,
297
298
  displayPosition: this.props.displayPosition,
@@ -149,7 +149,8 @@ export var StimulusEditInfo = (_dec = themeable(theme, styles), _dec(_class = (_
149
149
  messages: this.inputErrors('onSelf'),
150
150
  description: /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('Edit Stimulus'))
151
151
  }, /*#__PURE__*/React.createElement(Heading, {
152
- level: "h3"
152
+ level: "h3",
153
+ as: "h2"
153
154
  }, this.headerText()), /*#__PURE__*/React.createElement("div", {
154
155
  className: styles.section
155
156
  }, /*#__PURE__*/React.createElement(TextInput, {
@@ -4,6 +4,7 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
4
4
  import _createSuper from "@babel/runtime/helpers/esm/createSuper";
5
5
  import React, { Component } from 'react';
6
6
  import ImmutablePropTypes from 'react-immutable-proptypes';
7
+ import { Heading } from '@instructure/ui-heading';
7
8
  import { Text } from '@instructure/ui-text';
8
9
  import { View } from '@instructure/ui-view';
9
10
  import { RichContentRenderer } from '@instructure/quiz-rce';
@@ -46,10 +47,14 @@ var StimulusShowInfo = /*#__PURE__*/function (_Component) {
46
47
  }, this.props.stimulus.instructions))));
47
48
  return /*#__PURE__*/React.createElement(View, {
48
49
  as: "div"
49
- }, /*#__PURE__*/React.createElement(Text, {
50
+ }, this.props.stimulus.title && /*#__PURE__*/React.createElement(Heading, {
51
+ level: "h3",
52
+ as: "h2",
50
53
  color: "primary",
51
- weight: "bold",
52
- size: "large"
54
+ margin: "0 0 small",
55
+ theme: {
56
+ h2FontWeight: '700'
57
+ }
53
58
  }, this.props.stimulus.title), instructions, /*#__PURE__*/React.createElement("div", {
54
59
  "data-automation": "sdk-stimulus-LeftPanelShow-content"
55
60
  }, /*#__PURE__*/React.createElement(RichContentRenderer, {
@@ -324,7 +324,8 @@ var QuizEntryShow = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
324
324
  className: styles.connectingLines
325
325
  }), /*#__PURE__*/_react.default.createElement(_PositionBox.default, {
326
326
  position: positionToDisplay,
327
- headingText: positionText
327
+ headingText: positionText,
328
+ headingLevel: quizEntry.isInStimulus ? 'h3' : 'h2'
328
329
  }), this.renderLeftHeader(), /*#__PURE__*/_react.default.createElement(_index.default, {
329
330
  connectDragSource: this.props.connectDragSource,
330
331
  displayPosition: this.props.displayPosition,
@@ -182,7 +182,8 @@ var StimulusEditInfo = (_dec = (0, _uiThemeable.themeable)(_theme.default, style
182
182
  messages: this.inputErrors('onSelf'),
183
183
  description: /*#__PURE__*/_react.default.createElement(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Edit Stimulus'))
184
184
  }, /*#__PURE__*/_react.default.createElement(_uiHeading.Heading, {
185
- level: "h3"
185
+ level: "h3",
186
+ as: "h2"
186
187
  }, this.headerText()), /*#__PURE__*/_react.default.createElement("div", {
187
188
  className: styles.section
188
189
  }, /*#__PURE__*/_react.default.createElement(_uiTextInput.TextInput, {
@@ -21,6 +21,8 @@ var _react = _interopRequireWildcard(require("react"));
21
21
 
22
22
  var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
23
23
 
24
+ var _uiHeading = require("@instructure/ui-heading");
25
+
24
26
  var _uiText = require("@instructure/ui-text");
25
27
 
26
28
  var _uiView = require("@instructure/ui-view");
@@ -67,10 +69,14 @@ var StimulusShowInfo = /*#__PURE__*/function (_Component) {
67
69
 
68
70
  return /*#__PURE__*/_react.default.createElement(_uiView.View, {
69
71
  as: "div"
70
- }, /*#__PURE__*/_react.default.createElement(_uiText.Text, {
72
+ }, this.props.stimulus.title && /*#__PURE__*/_react.default.createElement(_uiHeading.Heading, {
73
+ level: "h3",
74
+ as: "h2",
71
75
  color: "primary",
72
- weight: "bold",
73
- size: "large"
76
+ margin: "0 0 small",
77
+ theme: {
78
+ h2FontWeight: '700'
79
+ }
74
80
  }, this.props.stimulus.title), instructions, /*#__PURE__*/_react.default.createElement("div", {
75
81
  "data-automation": "sdk-stimulus-LeftPanelShow-content"
76
82
  }, /*#__PURE__*/_react.default.createElement(_quizRce.RichContentRenderer, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "17.36.1-rc.4+05bc6a022",
3
+ "version": "17.36.1-rc.7+6f677410f",
4
4
  "license": "MIT",
5
5
  "description": "The Quiz React SDK by Instructure Inc.",
6
6
  "author": "Instructure, Inc. Engineering and Product Design",
@@ -41,11 +41,11 @@
41
41
  ],
42
42
  "dependencies": {
43
43
  "@instructure/outcomes-ui": "^2.1.2",
44
- "@instructure/quiz-common": "17.36.1-rc.4+05bc6a022",
45
- "@instructure/quiz-i18n": "17.36.1-rc.4+05bc6a022",
46
- "@instructure/quiz-interactions": "17.36.1-rc.4+05bc6a022",
47
- "@instructure/quiz-number-input": "17.36.1-rc.4+05bc6a022",
48
- "@instructure/quiz-rce": "17.36.1-rc.4+05bc6a022",
44
+ "@instructure/quiz-common": "17.36.1-rc.7+6f677410f",
45
+ "@instructure/quiz-i18n": "17.36.1-rc.7+6f677410f",
46
+ "@instructure/quiz-interactions": "17.36.1-rc.7+6f677410f",
47
+ "@instructure/quiz-number-input": "17.36.1-rc.7+6f677410f",
48
+ "@instructure/quiz-rce": "17.36.1-rc.7+6f677410f",
49
49
  "@instructure/ui-a11y-content": "^7.20.0",
50
50
  "@instructure/ui-alerts": "^7.20.0",
51
51
  "@instructure/ui-avatar": "^7.20.0",
@@ -106,7 +106,7 @@
106
106
  "eventemitter3": "^3.1.0",
107
107
  "humps": "^2.0.0",
108
108
  "immutable": "^3.8.1",
109
- "instructure-validations": "17.36.1-rc.4+05bc6a022",
109
+ "instructure-validations": "17.36.1-rc.7+6f677410f",
110
110
  "ipaddr.js": "^1.5.4",
111
111
  "isomorphic-fetch": "^2.2.0",
112
112
  "isuuid": "^0.1.0",
@@ -137,7 +137,7 @@
137
137
  "uuid": "^3.2.1"
138
138
  },
139
139
  "devDependencies": {
140
- "@instructure/quiz-scripts": "17.36.1-rc.4+05bc6a022",
140
+ "@instructure/quiz-scripts": "17.36.1-rc.7+6f677410f",
141
141
  "@instructure/ui-axe-check": "^7.20.0",
142
142
  "@instructure/ui-babel-preset": "^7.20.0",
143
143
  "@instructure/ui-karma-config": "^7.20.0",
@@ -156,7 +156,7 @@
156
156
  "intl": "^1.2.4",
157
157
  "jquery": "^2.2.3",
158
158
  "most-subject": "^5.3.0",
159
- "quiz-presets": "17.36.1-rc.4+05bc6a022",
159
+ "quiz-presets": "17.36.1-rc.7+6f677410f",
160
160
  "react": "^16.8.6",
161
161
  "react-addons-test-utils": "^15.6.2",
162
162
  "react-dom": "^16.8.6",
@@ -172,5 +172,5 @@
172
172
  "publishConfig": {
173
173
  "access": "public"
174
174
  },
175
- "gitHead": "05bc6a0224f0234291ba0aae507c97977eab4c15"
175
+ "gitHead": "6f677410f5df1647ea34b36fe5361f0bd6658c48"
176
176
  }