@instructure/quiz-core 17.32.1-rc.7 → 17.33.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 +21 -0
- package/es/common/components/layout/header/Timer/presenter.js +4 -2
- package/es/common/components/resources/item/ItemEdit/presenter.js +2 -3
- package/es/common/util/interactionTypePropsHelper.js +1 -0
- package/lib/common/components/layout/header/Timer/presenter.js +4 -2
- package/lib/common/components/resources/item/ItemEdit/presenter.js +2 -3
- package/lib/common/util/interactionTypePropsHelper.js +1 -0
- package/package.json +64 -64
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,27 @@
|
|
|
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.33.0](https://gerrit.instructure.com/quizzes-ui/compare/v17.32.0...v17.33.0) (2022-07-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Add "state" to the Toggle Timer Visibility Button ([91d2c18](https://gerrit.instructure.com/quizzes-ui/commits/91d2c189b25d65a1f0ced535491f20794c8a5dba))
|
|
12
|
+
* **richFITB:** allow option changes when regrading rich FITB ([f9cc0e3](https://gerrit.instructure.com/quizzes-ui/commits/f9cc0e3f12a6f14e730a5d938724fce4a03da800))
|
|
13
|
+
* **richFITB:** fitb conversion via question copy handles all characters ([fbd128d](https://gerrit.instructure.com/quizzes-ui/commits/fbd128d5628d155adc7ac00ba744a541c3aeb8df))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* **banks:** fix broken breadcrumb url on BankEntry page ([bbca5ce](https://gerrit.instructure.com/quizzes-ui/commits/bbca5ce4d03637dcf8df212589f822fc7b9b9d75))
|
|
19
|
+
* **quiz-core:** replace IconBankLine (PiggyBank) ([feb5e7e](https://gerrit.instructure.com/quizzes-ui/commits/feb5e7ee384393f6a5e050087edca2ae90b62fa9))
|
|
20
|
+
* **rfitb:** support a common word bank for rFITB edit ([c9243e7](https://gerrit.instructure.com/quizzes-ui/commits/c9243e7d3213479e55472a6bb6959d1c393952f1))
|
|
21
|
+
* **SDKApp:** Add rceConfig prop to SDKApp with required parameters ([2034387](https://gerrit.instructure.com/quizzes-ui/commits/2034387c4059b155dcd5a1536b2eae02d7c79576))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
6
27
|
# [17.32.0](https://gerrit.instructure.com/quizzes-ui/compare/v17.31.0...v17.32.0) (2022-06-14)
|
|
7
28
|
|
|
8
29
|
**Note:** Version bump only for package @instructure/quiz-core
|
|
@@ -118,10 +118,11 @@ export var Timer = (_dec = themeable(theme, styles), _dec(_class = (_temp = _cla
|
|
|
118
118
|
return /*#__PURE__*/React.createElement("div", {
|
|
119
119
|
className: styles.timer
|
|
120
120
|
}, this.renderHelpScreenreaderText(), /*#__PURE__*/React.createElement(Button, {
|
|
121
|
+
"aria-expanded": "false",
|
|
121
122
|
ref: this.showTimerRef,
|
|
122
123
|
icon: IconClockLine,
|
|
123
124
|
onClick: partial(this.props.updateTimerMinimized, false)
|
|
124
|
-
}, /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('
|
|
125
|
+
}, /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('Show Timer'))));
|
|
125
126
|
}
|
|
126
127
|
}, {
|
|
127
128
|
key: "renderMaximizedTimer",
|
|
@@ -139,10 +140,11 @@ export var Timer = (_dec = themeable(theme, styles), _dec(_class = (_temp = _cla
|
|
|
139
140
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
140
141
|
className: styles.timerRight
|
|
141
142
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
143
|
+
"aria-expanded": "true",
|
|
142
144
|
ref: this.hideTimerRef,
|
|
143
145
|
icon: IconArrowOpenStartLine,
|
|
144
146
|
onClick: partial(this.props.updateTimerMinimized, true)
|
|
145
|
-
}, /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('
|
|
147
|
+
}, /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('Hide Timer')))));
|
|
146
148
|
}
|
|
147
149
|
}, {
|
|
148
150
|
key: "render",
|
|
@@ -127,8 +127,8 @@ export var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
|
127
127
|
key: "render",
|
|
128
128
|
value: function render() {
|
|
129
129
|
var item = this.props.entry;
|
|
130
|
-
var interactionType = item.getInteractionType();
|
|
131
|
-
var Interaction = componentForItem(interactionType
|
|
130
|
+
var interactionType = item.getInteractionType().slug;
|
|
131
|
+
var Interaction = componentForItem(interactionType, COMPONENT_EDIT);
|
|
132
132
|
var propsForInteraction = propsForInteractionEdit(this.props, this.additionalEditOptions());
|
|
133
133
|
return /*#__PURE__*/React.createElement(FormFieldGroup, {
|
|
134
134
|
messages: this.getError('onSelf'),
|
|
@@ -136,7 +136,6 @@ export var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
|
136
136
|
name: "edit_item_".concat(this.props.guid) // eslint-disable-line react/jsx-no-literals
|
|
137
137
|
|
|
138
138
|
}, /*#__PURE__*/React.createElement(Interaction, Object.assign({}, propsForInteraction, {
|
|
139
|
-
interactionType: interactionType,
|
|
140
139
|
itemId: this.props.guid,
|
|
141
140
|
renderImportModal: this.renderImportModal
|
|
142
141
|
})));
|
|
@@ -43,6 +43,7 @@ export var propsForInteractionEdit = function propsForInteractionEdit(props, add
|
|
|
43
43
|
calculator: !props.showCalculator
|
|
44
44
|
},
|
|
45
45
|
interactionData: item.interactionData,
|
|
46
|
+
interactionType: props.entry.getInteractionType(),
|
|
46
47
|
// SHIM: canvas-rce breaks on null values now
|
|
47
48
|
// this is a shim until canvas-rce deals with
|
|
48
49
|
// null values better
|
|
@@ -144,10 +144,11 @@ var Timer = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_c
|
|
|
144
144
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
145
145
|
className: styles.timer
|
|
146
146
|
}, this.renderHelpScreenreaderText(), /*#__PURE__*/_react.default.createElement(_uiButtons.Button, {
|
|
147
|
+
"aria-expanded": "false",
|
|
147
148
|
ref: this.showTimerRef,
|
|
148
149
|
icon: _uiIcons.IconClockLine,
|
|
149
150
|
onClick: (0, _partial.default)(this.props.updateTimerMinimized, false)
|
|
150
|
-
}, /*#__PURE__*/_react.default.createElement(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('
|
|
151
|
+
}, /*#__PURE__*/_react.default.createElement(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Show Timer'))));
|
|
151
152
|
}
|
|
152
153
|
}, {
|
|
153
154
|
key: "renderMaximizedTimer",
|
|
@@ -165,10 +166,11 @@ var Timer = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_c
|
|
|
165
166
|
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
166
167
|
className: styles.timerRight
|
|
167
168
|
}, /*#__PURE__*/_react.default.createElement(_uiButtons.Button, {
|
|
169
|
+
"aria-expanded": "true",
|
|
168
170
|
ref: this.hideTimerRef,
|
|
169
171
|
icon: _uiIcons.IconArrowOpenStartLine,
|
|
170
172
|
onClick: (0, _partial.default)(this.props.updateTimerMinimized, true)
|
|
171
|
-
}, /*#__PURE__*/_react.default.createElement(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('
|
|
173
|
+
}, /*#__PURE__*/_react.default.createElement(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Hide Timer')))));
|
|
172
174
|
}
|
|
173
175
|
}, {
|
|
174
176
|
key: "render",
|
|
@@ -157,8 +157,8 @@ var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
|
157
157
|
key: "render",
|
|
158
158
|
value: function render() {
|
|
159
159
|
var item = this.props.entry;
|
|
160
|
-
var interactionType = item.getInteractionType();
|
|
161
|
-
var Interaction = (0, _componentForItem.default)(interactionType
|
|
160
|
+
var interactionType = item.getInteractionType().slug;
|
|
161
|
+
var Interaction = (0, _componentForItem.default)(interactionType, _quizCommon.COMPONENT_EDIT);
|
|
162
162
|
var propsForInteraction = (0, _interactionTypePropsHelper.propsForInteractionEdit)(this.props, this.additionalEditOptions());
|
|
163
163
|
return /*#__PURE__*/_react.default.createElement(_uiFormField.FormFieldGroup, {
|
|
164
164
|
messages: this.getError('onSelf'),
|
|
@@ -166,7 +166,6 @@ var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
|
166
166
|
name: "edit_item_".concat(this.props.guid) // eslint-disable-line react/jsx-no-literals
|
|
167
167
|
|
|
168
168
|
}, /*#__PURE__*/_react.default.createElement(Interaction, Object.assign({}, propsForInteraction, {
|
|
169
|
-
interactionType: interactionType,
|
|
170
169
|
itemId: this.props.guid,
|
|
171
170
|
renderImportModal: this.renderImportModal
|
|
172
171
|
})));
|
|
@@ -55,6 +55,7 @@ var propsForInteractionEdit = function propsForInteractionEdit(props, additional
|
|
|
55
55
|
calculator: !props.showCalculator
|
|
56
56
|
},
|
|
57
57
|
interactionData: item.interactionData,
|
|
58
|
+
interactionType: props.entry.getInteractionType(),
|
|
58
59
|
// SHIM: canvas-rce breaks on null values now
|
|
59
60
|
// this is a shim until canvas-rce deals with
|
|
60
61
|
// null values better
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.33.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,59 +41,59 @@
|
|
|
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.
|
|
49
|
-
"@instructure/ui-a11y-content": "^7.
|
|
50
|
-
"@instructure/ui-alerts": "^7.
|
|
51
|
-
"@instructure/ui-avatar": "^7.
|
|
52
|
-
"@instructure/ui-billboard": "^7.
|
|
53
|
-
"@instructure/ui-breadcrumb": "^7.
|
|
54
|
-
"@instructure/ui-buttons": "^7.
|
|
55
|
-
"@instructure/ui-checkbox": "^7.
|
|
56
|
-
"@instructure/ui-color-utils": "^7.
|
|
57
|
-
"@instructure/ui-dialog": "^7.
|
|
58
|
-
"@instructure/ui-flex": "^7.
|
|
59
|
-
"@instructure/ui-focusable": "^7.
|
|
60
|
-
"@instructure/ui-form-field": "^7.
|
|
61
|
-
"@instructure/ui-grid": "^7.
|
|
62
|
-
"@instructure/ui-heading": "^7.
|
|
63
|
-
"@instructure/ui-i18n": "^7.
|
|
64
|
-
"@instructure/ui-icons": "^7.
|
|
65
|
-
"@instructure/ui-img": "^7.
|
|
66
|
-
"@instructure/ui-link": "^7.
|
|
67
|
-
"@instructure/ui-list": "^7.
|
|
68
|
-
"@instructure/ui-menu": "^7.
|
|
69
|
-
"@instructure/ui-metric": "^7.
|
|
70
|
-
"@instructure/ui-modal": "^7.
|
|
71
|
-
"@instructure/ui-motion": "^7.
|
|
72
|
-
"@instructure/ui-number-input": "^7.
|
|
73
|
-
"@instructure/ui-overlays": "^7.
|
|
74
|
-
"@instructure/ui-pagination": "^7.
|
|
75
|
-
"@instructure/ui-popover": "^7.
|
|
76
|
-
"@instructure/ui-portal": "^7.
|
|
77
|
-
"@instructure/ui-progress": "^7.
|
|
78
|
-
"@instructure/ui-prop-types": "^7.
|
|
79
|
-
"@instructure/ui-radio-input": "^7.
|
|
80
|
-
"@instructure/ui-react-utils": "^7.
|
|
81
|
-
"@instructure/ui-select": "^7.
|
|
82
|
-
"@instructure/ui-simple-select": "^7.
|
|
83
|
-
"@instructure/ui-spinner": "^7.
|
|
84
|
-
"@instructure/ui-table": "^7.
|
|
85
|
-
"@instructure/ui-tabs": "^7.
|
|
86
|
-
"@instructure/ui-tag": "^7.
|
|
87
|
-
"@instructure/ui-text": "^7.
|
|
88
|
-
"@instructure/ui-text-input": "^7.
|
|
89
|
-
"@instructure/ui-themeable": "^7.
|
|
90
|
-
"@instructure/ui-themes": "^7.
|
|
91
|
-
"@instructure/ui-toggle-details": "^7.
|
|
92
|
-
"@instructure/ui-tooltip": "^7.
|
|
93
|
-
"@instructure/ui-tray": "^7.
|
|
94
|
-
"@instructure/ui-truncate-text": "^7.
|
|
95
|
-
"@instructure/ui-utils": "^7.
|
|
96
|
-
"@instructure/ui-view": "^7.
|
|
44
|
+
"@instructure/quiz-common": "^17.33.0",
|
|
45
|
+
"@instructure/quiz-i18n": "^17.33.0",
|
|
46
|
+
"@instructure/quiz-interactions": "^17.33.0",
|
|
47
|
+
"@instructure/quiz-number-input": "^17.33.0",
|
|
48
|
+
"@instructure/quiz-rce": "^17.33.0",
|
|
49
|
+
"@instructure/ui-a11y-content": "^7.20.0",
|
|
50
|
+
"@instructure/ui-alerts": "^7.20.0",
|
|
51
|
+
"@instructure/ui-avatar": "^7.20.0",
|
|
52
|
+
"@instructure/ui-billboard": "^7.20.0",
|
|
53
|
+
"@instructure/ui-breadcrumb": "^7.20.0",
|
|
54
|
+
"@instructure/ui-buttons": "^7.20.0",
|
|
55
|
+
"@instructure/ui-checkbox": "^7.20.0",
|
|
56
|
+
"@instructure/ui-color-utils": "^7.20.0",
|
|
57
|
+
"@instructure/ui-dialog": "^7.20.0",
|
|
58
|
+
"@instructure/ui-flex": "^7.20.0",
|
|
59
|
+
"@instructure/ui-focusable": "^7.20.0",
|
|
60
|
+
"@instructure/ui-form-field": "^7.20.0",
|
|
61
|
+
"@instructure/ui-grid": "^7.20.0",
|
|
62
|
+
"@instructure/ui-heading": "^7.20.0",
|
|
63
|
+
"@instructure/ui-i18n": "^7.20.0",
|
|
64
|
+
"@instructure/ui-icons": "^7.20.0",
|
|
65
|
+
"@instructure/ui-img": "^7.20.0",
|
|
66
|
+
"@instructure/ui-link": "^7.20.0",
|
|
67
|
+
"@instructure/ui-list": "^7.20.0",
|
|
68
|
+
"@instructure/ui-menu": "^7.20.0",
|
|
69
|
+
"@instructure/ui-metric": "^7.20.0",
|
|
70
|
+
"@instructure/ui-modal": "^7.20.0",
|
|
71
|
+
"@instructure/ui-motion": "^7.20.0",
|
|
72
|
+
"@instructure/ui-number-input": "^7.20.0",
|
|
73
|
+
"@instructure/ui-overlays": "^7.20.0",
|
|
74
|
+
"@instructure/ui-pagination": "^7.20.0",
|
|
75
|
+
"@instructure/ui-popover": "^7.20.0",
|
|
76
|
+
"@instructure/ui-portal": "^7.20.0",
|
|
77
|
+
"@instructure/ui-progress": "^7.20.0",
|
|
78
|
+
"@instructure/ui-prop-types": "^7.20.0",
|
|
79
|
+
"@instructure/ui-radio-input": "^7.20.0",
|
|
80
|
+
"@instructure/ui-react-utils": "^7.20.0",
|
|
81
|
+
"@instructure/ui-select": "^7.20.0",
|
|
82
|
+
"@instructure/ui-simple-select": "^7.20.0",
|
|
83
|
+
"@instructure/ui-spinner": "^7.20.0",
|
|
84
|
+
"@instructure/ui-table": "^7.20.0",
|
|
85
|
+
"@instructure/ui-tabs": "^7.20.0",
|
|
86
|
+
"@instructure/ui-tag": "^7.20.0",
|
|
87
|
+
"@instructure/ui-text": "^7.20.0",
|
|
88
|
+
"@instructure/ui-text-input": "^7.20.0",
|
|
89
|
+
"@instructure/ui-themeable": "^7.20.0",
|
|
90
|
+
"@instructure/ui-themes": "^7.20.0",
|
|
91
|
+
"@instructure/ui-toggle-details": "^7.20.0",
|
|
92
|
+
"@instructure/ui-tooltip": "^7.20.0",
|
|
93
|
+
"@instructure/ui-tray": "^7.20.0",
|
|
94
|
+
"@instructure/ui-truncate-text": "^7.20.0",
|
|
95
|
+
"@instructure/ui-utils": "^7.20.0",
|
|
96
|
+
"@instructure/ui-view": "^7.20.0",
|
|
97
97
|
"aws-sdk": "^2.3.2",
|
|
98
98
|
"classnames": "^2.2.5",
|
|
99
99
|
"content-disposition": "^0.5.2",
|
|
@@ -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.33.0",
|
|
110
110
|
"ipaddr.js": "^1.5.4",
|
|
111
111
|
"isomorphic-fetch": "^2.2.0",
|
|
112
112
|
"isuuid": "^0.1.0",
|
|
@@ -137,13 +137,13 @@
|
|
|
137
137
|
"uuid": "^3.2.1"
|
|
138
138
|
},
|
|
139
139
|
"devDependencies": {
|
|
140
|
-
"@instructure/quiz-scripts": "17.
|
|
141
|
-
"@instructure/ui-axe-check": "^7.
|
|
142
|
-
"@instructure/ui-babel-preset": "^7.
|
|
143
|
-
"@instructure/ui-karma-config": "^7.
|
|
144
|
-
"@instructure/ui-postcss-config": "^7.
|
|
145
|
-
"@instructure/ui-scripts": "^7.
|
|
146
|
-
"@instructure/ui-test-utils": "^7.
|
|
140
|
+
"@instructure/quiz-scripts": "^17.33.0",
|
|
141
|
+
"@instructure/ui-axe-check": "^7.20.0",
|
|
142
|
+
"@instructure/ui-babel-preset": "^7.20.0",
|
|
143
|
+
"@instructure/ui-karma-config": "^7.20.0",
|
|
144
|
+
"@instructure/ui-postcss-config": "^7.20.0",
|
|
145
|
+
"@instructure/ui-scripts": "^7.20.0",
|
|
146
|
+
"@instructure/ui-test-utils": "^7.20.0",
|
|
147
147
|
"chai": "^4.1.2",
|
|
148
148
|
"chai-as-promised": "^7.1.1",
|
|
149
149
|
"chai-enzyme": "^1.0.0-beta.1",
|
|
@@ -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.33.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": "05211b70081418036ecdb0bcbd1b9978075a4715"
|
|
176
176
|
}
|