@instructure/quiz-core 17.37.1-rc.4 → 17.38.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [17.38.0](https://gerrit.instructure.com/quizzes-ui/compare/v17.37.0...v17.38.0) (2022-09-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **a11y:** Change question nav heading structure ([fe83818](https://gerrit.instructure.com/quizzes-ui/commits/fe838181eeb83b783a1c38444e99b056550535fd))
|
|
12
|
+
* **fitb:** render underscore placeholders in sidebar ([77a6c09](https://gerrit.instructure.com/quizzes-ui/commits/77a6c093c0360d2b3bc7657cc372f5deb62afd3f))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [17.37.0](https://gerrit.instructure.com/quizzes-ui/compare/v17.36.0...v17.37.0) (2022-08-25)
|
|
7
19
|
|
|
8
20
|
|
|
@@ -19,6 +19,7 @@ import { Link } from '@instructure/ui-link';
|
|
|
19
19
|
import { Text } from '@instructure/ui-text';
|
|
20
20
|
import { View } from '@instructure/ui-view';
|
|
21
21
|
import { themeable } from '@instructure/ui-themeable';
|
|
22
|
+
import { Heading } from '@instructure/ui-heading';
|
|
22
23
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
23
24
|
import { onPhone } from "../../../../util/windowChecks.js";
|
|
24
25
|
import CustomPropTypes from "../../../../util/CustomPropTypes.js";
|
|
@@ -26,23 +27,23 @@ import { SIDEBAR_NAV_ID } from '@instructure/quiz-common';
|
|
|
26
27
|
import noop from "../../../../util/noop.js";
|
|
27
28
|
import Pin from "./Pin.js";
|
|
28
29
|
var styles = {
|
|
29
|
-
componentId: '
|
|
30
|
+
componentId: 'cIlIa',
|
|
30
31
|
template: function template(theme) {
|
|
31
|
-
return "\n\n.
|
|
32
|
+
return "\n\n.cIlIa_bObp{background-color:".concat(theme.sidebarBackgroundColor || 'inherit', ";border:").concat(theme.sidebarBorderWidth || 'inherit', " solid ").concat(theme.sidebarBorderColor || 'inherit', ";box-sizing:border-box;color:").concat(theme.sidebarColor || 'inherit', ";height:100%;overflow:hidden;position:relative;transition:").concat(theme.sidebarTransitionDuration || 'inherit', " ease;width:").concat(theme.sidebarWidthClosed || 'inherit', ";z-index:").concat(theme.sidebarZIndex || 'inherit', "}\n\n.cIlIa_crKy{display:flex;flex-direction:column;height:100%}\n\n.cIlIa_eYGv{overflow-x:hidden;overflow-y:auto}\n\n.cIlIa_eeTU{border-bottom:").concat(theme.sidebarHeaderBorderWidth || 'inherit', " solid ").concat(theme.sidebarHeaderBorderColor || 'inherit', ";border-right:").concat(theme.actionableInfoBorderWidth || 'inherit', " solid ").concat(theme.sidebarBackgroundColor || 'inherit', ";text-align:center}\n\n[dir=ltr] .cIlIa_eeTU,[dir=rtl] .cIlIa_eeTU{text-align:center}\n\n.cIlIa_eeTU:hover{border-right:").concat(theme.actionableInfoBorderWidth || 'inherit', " solid ").concat(theme.actionableInfoHoverBorderColor || 'inherit', "}\n\n.cIlIa_difO{color:").concat(theme.descriptionFontColor || 'inherit', ";display:none;font-size:").concat(theme.descriptionFontSize || 'inherit', "}\n\n.cIlIa_cjDf{display:flex;flex-direction:row;flex-shrink:0;padding:").concat(theme.headerSpacingPadding || 'inherit', "}\n\n.cIlIa_cjDf h2{padding-top:0.3em}\n\n.cIlIa_fuFE{border-bottom:solid ").concat(theme.sidebarHeaderBorderWidth || 'inherit', ";border-color:").concat(theme.sidebarHeaderBorderColor || 'inherit', "}\n\n.cIlIa_cvRx{margin-left:auto}\n\n.cIlIa_fwEb{background-color:").concat(theme.pinnedSectionBackgroundColor || 'inherit', ";width:100%}\n\n.cIlIa_fwEb .cIlIa_cjDf{flex-grow:1}\n\n.cIlIa_ftzv{padding-top:").concat(theme.questionNavigatorPadding || 'inherit', "}\n\n.cIlIa_bObp.cIlIa_eNNp{opacity:1;transition:").concat(theme.sidebarTransitionDuration || 'inherit', " ease;width:").concat(theme.sidebarWidthOpen || 'inherit', "}\n\n.cIlIa_eNNp .cIlIa_difO{cursor:pointer;display:inline-block}\n\n.cIlIa_eNNp .cIlIa_eeTU,[dir=ltr] .cIlIa_eNNp .cIlIa_eeTU,[dir=rtl] .cIlIa_eNNp .cIlIa_eeTU{text-align:inherit}\n\n.cIlIa_eQGE{display:none}\n\n.cIlIa_eQGE.cIlIa_cvRx{display:block;margin:auto}\n\n.cIlIa_eYHq{height:100%}\n\n@media screen and (--phoneBreakPoint){.cIlIa_eYHq{position:relative}.cIlIa_bObp{position:absolute;width:0}.cIlIa_bObp,.cIlIa_bObp.cIlIa_eNNp{transition:").concat(theme.sidebarTransitionDuration || 'inherit', " ease}.cIlIa_bObp.cIlIa_eNNp{display:inline;max-width:100vw;width:100vw}}\n\n@media print{.cIlIa_eYHq{display:none}}");
|
|
32
33
|
},
|
|
33
|
-
'sidebar': '
|
|
34
|
-
'sidebarWrapper': '
|
|
35
|
-
'sidebarContent': '
|
|
36
|
-
'actionableInfo': '
|
|
37
|
-
'description': '
|
|
38
|
-
'headerSpacing': '
|
|
39
|
-
'headerBottomBorder': '
|
|
40
|
-
'iconWrapper': '
|
|
41
|
-
'pinnedSection': '
|
|
42
|
-
'questionNavigatorPadding': '
|
|
43
|
-
'sidebarIsOpen': '
|
|
44
|
-
'sidebarClosed': '
|
|
45
|
-
'commonContainer': '
|
|
34
|
+
'sidebar': 'cIlIa_bObp',
|
|
35
|
+
'sidebarWrapper': 'cIlIa_crKy',
|
|
36
|
+
'sidebarContent': 'cIlIa_eYGv',
|
|
37
|
+
'actionableInfo': 'cIlIa_eeTU',
|
|
38
|
+
'description': 'cIlIa_difO',
|
|
39
|
+
'headerSpacing': 'cIlIa_cjDf',
|
|
40
|
+
'headerBottomBorder': 'cIlIa_fuFE',
|
|
41
|
+
'iconWrapper': 'cIlIa_cvRx',
|
|
42
|
+
'pinnedSection': 'cIlIa_fwEb',
|
|
43
|
+
'questionNavigatorPadding': 'cIlIa_ftzv',
|
|
44
|
+
'sidebarIsOpen': 'cIlIa_eNNp',
|
|
45
|
+
'sidebarClosed': 'cIlIa_eQGE',
|
|
46
|
+
'commonContainer': 'cIlIa_eYHq'
|
|
46
47
|
};
|
|
47
48
|
import theme from "./theme.js";
|
|
48
49
|
|
|
@@ -169,8 +170,9 @@ export var Sidebar = (_dec = themeable(theme, styles), _dec(_class = (_temp = _c
|
|
|
169
170
|
className: classNames(styles.headerSpacing, styles.headerBottomBorder)
|
|
170
171
|
}, /*#__PURE__*/React.createElement("div", {
|
|
171
172
|
className: closedClasses
|
|
172
|
-
}, /*#__PURE__*/React.createElement(
|
|
173
|
-
|
|
173
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
174
|
+
level: "h5",
|
|
175
|
+
as: "h2"
|
|
174
176
|
}, t('Question Navigator'))), /*#__PURE__*/React.createElement("div", {
|
|
175
177
|
className: iconClasses
|
|
176
178
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -244,8 +246,9 @@ export var Sidebar = (_dec = themeable(theme, styles), _dec(_class = (_temp = _c
|
|
|
244
246
|
className: styles.headerSpacing
|
|
245
247
|
}, /*#__PURE__*/React.createElement("div", {
|
|
246
248
|
className: closedClasses
|
|
247
|
-
}, /*#__PURE__*/React.createElement(
|
|
248
|
-
|
|
249
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
250
|
+
level: "h5",
|
|
251
|
+
as: "h2"
|
|
249
252
|
}, t('Pinned Questions'))), /*#__PURE__*/React.createElement("div", {
|
|
250
253
|
className: iconClasses,
|
|
251
254
|
"aria-hidden": sidebarOpen
|
|
@@ -43,6 +43,8 @@ var _uiView = require("@instructure/ui-view");
|
|
|
43
43
|
|
|
44
44
|
var _uiThemeable = require("@instructure/ui-themeable");
|
|
45
45
|
|
|
46
|
+
var _uiHeading = require("@instructure/ui-heading");
|
|
47
|
+
|
|
46
48
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
47
49
|
|
|
48
50
|
var _windowChecks = require("../../../../util/windowChecks.js");
|
|
@@ -60,23 +62,23 @@ var _theme = _interopRequireDefault(require("./theme.js"));
|
|
|
60
62
|
var _dec, _class, _class2, _temp;
|
|
61
63
|
|
|
62
64
|
var styles = {
|
|
63
|
-
componentId: '
|
|
65
|
+
componentId: 'cIlIa',
|
|
64
66
|
template: function template(theme) {
|
|
65
|
-
return "\n\n.
|
|
67
|
+
return "\n\n.cIlIa_bObp{background-color:".concat(theme.sidebarBackgroundColor || 'inherit', ";border:").concat(theme.sidebarBorderWidth || 'inherit', " solid ").concat(theme.sidebarBorderColor || 'inherit', ";box-sizing:border-box;color:").concat(theme.sidebarColor || 'inherit', ";height:100%;overflow:hidden;position:relative;transition:").concat(theme.sidebarTransitionDuration || 'inherit', " ease;width:").concat(theme.sidebarWidthClosed || 'inherit', ";z-index:").concat(theme.sidebarZIndex || 'inherit', "}\n\n.cIlIa_crKy{display:flex;flex-direction:column;height:100%}\n\n.cIlIa_eYGv{overflow-x:hidden;overflow-y:auto}\n\n.cIlIa_eeTU{border-bottom:").concat(theme.sidebarHeaderBorderWidth || 'inherit', " solid ").concat(theme.sidebarHeaderBorderColor || 'inherit', ";border-right:").concat(theme.actionableInfoBorderWidth || 'inherit', " solid ").concat(theme.sidebarBackgroundColor || 'inherit', ";text-align:center}\n\n[dir=ltr] .cIlIa_eeTU,[dir=rtl] .cIlIa_eeTU{text-align:center}\n\n.cIlIa_eeTU:hover{border-right:").concat(theme.actionableInfoBorderWidth || 'inherit', " solid ").concat(theme.actionableInfoHoverBorderColor || 'inherit', "}\n\n.cIlIa_difO{color:").concat(theme.descriptionFontColor || 'inherit', ";display:none;font-size:").concat(theme.descriptionFontSize || 'inherit', "}\n\n.cIlIa_cjDf{display:flex;flex-direction:row;flex-shrink:0;padding:").concat(theme.headerSpacingPadding || 'inherit', "}\n\n.cIlIa_cjDf h2{padding-top:0.3em}\n\n.cIlIa_fuFE{border-bottom:solid ").concat(theme.sidebarHeaderBorderWidth || 'inherit', ";border-color:").concat(theme.sidebarHeaderBorderColor || 'inherit', "}\n\n.cIlIa_cvRx{margin-left:auto}\n\n.cIlIa_fwEb{background-color:").concat(theme.pinnedSectionBackgroundColor || 'inherit', ";width:100%}\n\n.cIlIa_fwEb .cIlIa_cjDf{flex-grow:1}\n\n.cIlIa_ftzv{padding-top:").concat(theme.questionNavigatorPadding || 'inherit', "}\n\n.cIlIa_bObp.cIlIa_eNNp{opacity:1;transition:").concat(theme.sidebarTransitionDuration || 'inherit', " ease;width:").concat(theme.sidebarWidthOpen || 'inherit', "}\n\n.cIlIa_eNNp .cIlIa_difO{cursor:pointer;display:inline-block}\n\n.cIlIa_eNNp .cIlIa_eeTU,[dir=ltr] .cIlIa_eNNp .cIlIa_eeTU,[dir=rtl] .cIlIa_eNNp .cIlIa_eeTU{text-align:inherit}\n\n.cIlIa_eQGE{display:none}\n\n.cIlIa_eQGE.cIlIa_cvRx{display:block;margin:auto}\n\n.cIlIa_eYHq{height:100%}\n\n@media screen and (--phoneBreakPoint){.cIlIa_eYHq{position:relative}.cIlIa_bObp{position:absolute;width:0}.cIlIa_bObp,.cIlIa_bObp.cIlIa_eNNp{transition:").concat(theme.sidebarTransitionDuration || 'inherit', " ease}.cIlIa_bObp.cIlIa_eNNp{display:inline;max-width:100vw;width:100vw}}\n\n@media print{.cIlIa_eYHq{display:none}}");
|
|
66
68
|
},
|
|
67
|
-
'sidebar': '
|
|
68
|
-
'sidebarWrapper': '
|
|
69
|
-
'sidebarContent': '
|
|
70
|
-
'actionableInfo': '
|
|
71
|
-
'description': '
|
|
72
|
-
'headerSpacing': '
|
|
73
|
-
'headerBottomBorder': '
|
|
74
|
-
'iconWrapper': '
|
|
75
|
-
'pinnedSection': '
|
|
76
|
-
'questionNavigatorPadding': '
|
|
77
|
-
'sidebarIsOpen': '
|
|
78
|
-
'sidebarClosed': '
|
|
79
|
-
'commonContainer': '
|
|
69
|
+
'sidebar': 'cIlIa_bObp',
|
|
70
|
+
'sidebarWrapper': 'cIlIa_crKy',
|
|
71
|
+
'sidebarContent': 'cIlIa_eYGv',
|
|
72
|
+
'actionableInfo': 'cIlIa_eeTU',
|
|
73
|
+
'description': 'cIlIa_difO',
|
|
74
|
+
'headerSpacing': 'cIlIa_cjDf',
|
|
75
|
+
'headerBottomBorder': 'cIlIa_fuFE',
|
|
76
|
+
'iconWrapper': 'cIlIa_cvRx',
|
|
77
|
+
'pinnedSection': 'cIlIa_fwEb',
|
|
78
|
+
'questionNavigatorPadding': 'cIlIa_ftzv',
|
|
79
|
+
'sidebarIsOpen': 'cIlIa_eNNp',
|
|
80
|
+
'sidebarClosed': 'cIlIa_eQGE',
|
|
81
|
+
'commonContainer': 'cIlIa_eYHq'
|
|
80
82
|
};
|
|
81
83
|
|
|
82
84
|
var _ref = /*#__PURE__*/_react.default.createElement(_uiIcons.IconQuizTitleLine, {
|
|
@@ -202,8 +204,9 @@ var Sidebar = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(
|
|
|
202
204
|
className: (0, _classnames.default)(styles.headerSpacing, styles.headerBottomBorder)
|
|
203
205
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
204
206
|
className: closedClasses
|
|
205
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
206
|
-
|
|
207
|
+
}, /*#__PURE__*/_react.default.createElement(_uiHeading.Heading, {
|
|
208
|
+
level: "h5",
|
|
209
|
+
as: "h2"
|
|
207
210
|
}, (0, _formatMessage.default)('Question Navigator'))), /*#__PURE__*/_react.default.createElement("div", {
|
|
208
211
|
className: iconClasses
|
|
209
212
|
}, /*#__PURE__*/_react.default.createElement(_uiButtons.Button, {
|
|
@@ -278,8 +281,9 @@ var Sidebar = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(
|
|
|
278
281
|
className: styles.headerSpacing
|
|
279
282
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
280
283
|
className: closedClasses
|
|
281
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
282
|
-
|
|
284
|
+
}, /*#__PURE__*/_react.default.createElement(_uiHeading.Heading, {
|
|
285
|
+
level: "h5",
|
|
286
|
+
as: "h2"
|
|
283
287
|
}, (0, _formatMessage.default)('Pinned Questions'))), /*#__PURE__*/_react.default.createElement("div", {
|
|
284
288
|
className: iconClasses,
|
|
285
289
|
"aria-hidden": sidebarOpen
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.38.0",
|
|
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.
|
|
45
|
-
"@instructure/quiz-i18n": "17.
|
|
46
|
-
"@instructure/quiz-interactions": "17.
|
|
47
|
-
"@instructure/quiz-number-input": "17.
|
|
48
|
-
"@instructure/quiz-rce": "17.
|
|
44
|
+
"@instructure/quiz-common": "^17.38.0",
|
|
45
|
+
"@instructure/quiz-i18n": "^17.38.0",
|
|
46
|
+
"@instructure/quiz-interactions": "^17.38.0",
|
|
47
|
+
"@instructure/quiz-number-input": "^17.38.0",
|
|
48
|
+
"@instructure/quiz-rce": "^17.38.0",
|
|
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.
|
|
109
|
+
"instructure-validations": "^17.38.0",
|
|
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.
|
|
140
|
+
"@instructure/quiz-scripts": "^17.38.0",
|
|
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.
|
|
159
|
+
"quiz-presets": "^17.38.0",
|
|
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": "
|
|
175
|
+
"gitHead": "b20e326e048e1621e360e690a9bcd3a1aeb29886"
|
|
176
176
|
}
|