@instructure/quiz-core 17.49.1-rc.11 → 17.49.1-rc.13
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/es/common/actions/grading.js +6 -1
- package/es/common/components/layout/sidebar/Sidebar/index.js +3 -1
- package/es/common/reducers/grading.js +4 -1
- package/es/index.js +1 -1
- package/lib/common/actions/grading.js +7 -0
- package/lib/common/components/layout/sidebar/Sidebar/index.js +3 -1
- package/lib/common/reducers/grading.js +3 -0
- package/lib/index.js +7 -0
- package/package.json +9 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GRADE_BY_QUESTION_ENABLED, GBQ_SET_ACTIVE_ITEM } from '@instructure/quiz-common';
|
|
1
|
+
import { DISMISS_GBQ_BANNER, GRADE_BY_QUESTION_ENABLED, GBQ_SET_ACTIVE_ITEM } from '@instructure/quiz-common';
|
|
2
2
|
export function setGradeByQuestionEnabled(enabled) {
|
|
3
3
|
return {
|
|
4
4
|
type: GRADE_BY_QUESTION_ENABLED,
|
|
@@ -10,4 +10,9 @@ export function setActiveItem(itemId) {
|
|
|
10
10
|
type: GBQ_SET_ACTIVE_ITEM,
|
|
11
11
|
payload: itemId
|
|
12
12
|
};
|
|
13
|
+
}
|
|
14
|
+
export function dismissGradeByQuestionBanner() {
|
|
15
|
+
return {
|
|
16
|
+
type: DISMISS_GBQ_BANNER
|
|
17
|
+
};
|
|
13
18
|
}
|
|
@@ -313,7 +313,9 @@ export var Sidebar = (_dec = themeable(theme, styles), _dec(_class = (_temp = _c
|
|
|
313
313
|
value: function render() {
|
|
314
314
|
var sidebarClassList = classNames(styles.sidebar, _defineProperty({}, styles.sidebarIsOpen, this.props.sidebarOpen));
|
|
315
315
|
return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement("div", {
|
|
316
|
-
className: styles.commonContainer
|
|
316
|
+
className: styles.commonContainer,
|
|
317
|
+
id: "sidebar-wrapper",
|
|
318
|
+
tabIndex: "-1"
|
|
317
319
|
}, /*#__PURE__*/React.createElement("div", {
|
|
318
320
|
className: sidebarClassList,
|
|
319
321
|
onTransitionEnd: this.handleTransitionEnd,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fromJS } from 'immutable';
|
|
2
|
-
import { GRADE_BY_QUESTION_ENABLED, GBQ_SET_ACTIVE_ITEM } from '@instructure/quiz-common';
|
|
2
|
+
import { DISMISS_GBQ_BANNER, GRADE_BY_QUESTION_ENABLED, GBQ_SET_ACTIVE_ITEM } from '@instructure/quiz-common';
|
|
3
3
|
export default (function () {
|
|
4
4
|
var state = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : fromJS({});
|
|
5
5
|
var action = arguments.length > 1 ? arguments[1] : void 0;
|
|
@@ -11,6 +11,9 @@ export default (function () {
|
|
|
11
11
|
case GBQ_SET_ACTIVE_ITEM:
|
|
12
12
|
return state.set('activeItemId', action.payload);
|
|
13
13
|
|
|
14
|
+
case DISMISS_GBQ_BANNER:
|
|
15
|
+
return state.set('gradeByQuestionBannerDismissed', true);
|
|
16
|
+
|
|
14
17
|
default:
|
|
15
18
|
return state;
|
|
16
19
|
}
|
package/es/index.js
CHANGED
|
@@ -109,7 +109,7 @@ export { takingApiActions }; // Actions
|
|
|
109
109
|
|
|
110
110
|
export { addSuccess, addInfo, addError, screenreaderNotification, removeAlert } from "./common/actions/alerts.js";
|
|
111
111
|
export { openModal, closeModal } from "./common/actions/modal.js";
|
|
112
|
-
export { setGradeByQuestionEnabled, setActiveItem } from "./common/actions/grading.js";
|
|
112
|
+
export { setGradeByQuestionEnabled, setActiveItem, dismissGradeByQuestionBanner } from "./common/actions/grading.js";
|
|
113
113
|
export { setRegradingPayload, setScoreReconciliation, toggleRegradingEditMode } from "./common/actions/regrading.js";
|
|
114
114
|
export { showError, hideError, clearErrorsShowing } from "./common/actions/errorsShowing.js";
|
|
115
115
|
export { changeItemState, changeQuizEntryPoints, changeQuizEntryProperties, clearModifications, moveTemporaryQuizEntry, changeQuizOutcomeAlignmentSetGuid, changeFudgePoints, sessionItemResultsModification } from "./common/actions/modifications.js";
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.setGradeByQuestionEnabled = setGradeByQuestionEnabled;
|
|
7
7
|
exports.setActiveItem = setActiveItem;
|
|
8
|
+
exports.dismissGradeByQuestionBanner = dismissGradeByQuestionBanner;
|
|
8
9
|
|
|
9
10
|
var _quizCommon = require("@instructure/quiz-common");
|
|
10
11
|
|
|
@@ -20,4 +21,10 @@ function setActiveItem(itemId) {
|
|
|
20
21
|
type: _quizCommon.GBQ_SET_ACTIVE_ITEM,
|
|
21
22
|
payload: itemId
|
|
22
23
|
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function dismissGradeByQuestionBanner() {
|
|
27
|
+
return {
|
|
28
|
+
type: _quizCommon.DISMISS_GBQ_BANNER
|
|
29
|
+
};
|
|
23
30
|
}
|
|
@@ -348,7 +348,9 @@ var Sidebar = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(
|
|
|
348
348
|
value: function render() {
|
|
349
349
|
var sidebarClassList = (0, _classnames.default)(styles.sidebar, (0, _defineProperty2.default)({}, styles.sidebarIsOpen, this.props.sidebarOpen));
|
|
350
350
|
return /*#__PURE__*/_react.default.createElement(_uiView.View, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
351
|
-
className: styles.commonContainer
|
|
351
|
+
className: styles.commonContainer,
|
|
352
|
+
id: "sidebar-wrapper",
|
|
353
|
+
tabIndex: "-1"
|
|
352
354
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
353
355
|
className: sidebarClassList,
|
|
354
356
|
onTransitionEnd: this.handleTransitionEnd,
|
|
@@ -20,6 +20,9 @@ var _default = function _default() {
|
|
|
20
20
|
case _quizCommon.GBQ_SET_ACTIVE_ITEM:
|
|
21
21
|
return state.set('activeItemId', action.payload);
|
|
22
22
|
|
|
23
|
+
case _quizCommon.DISMISS_GBQ_BANNER:
|
|
24
|
+
return state.set('gradeByQuestionBannerDismissed', true);
|
|
25
|
+
|
|
23
26
|
default:
|
|
24
27
|
return state;
|
|
25
28
|
}
|
package/lib/index.js
CHANGED
|
@@ -150,6 +150,7 @@ var _exportNames = {
|
|
|
150
150
|
modalActions: true,
|
|
151
151
|
setGradeByQuestionEnabled: true,
|
|
152
152
|
setActiveItem: true,
|
|
153
|
+
dismissGradeByQuestionBanner: true,
|
|
153
154
|
setRegradingPayload: true,
|
|
154
155
|
setScoreReconciliation: true,
|
|
155
156
|
toggleRegradingEditMode: true,
|
|
@@ -1052,6 +1053,12 @@ Object.defineProperty(exports, "setActiveItem", {
|
|
|
1052
1053
|
return _grading.setActiveItem;
|
|
1053
1054
|
}
|
|
1054
1055
|
});
|
|
1056
|
+
Object.defineProperty(exports, "dismissGradeByQuestionBanner", {
|
|
1057
|
+
enumerable: true,
|
|
1058
|
+
get: function get() {
|
|
1059
|
+
return _grading.dismissGradeByQuestionBanner;
|
|
1060
|
+
}
|
|
1061
|
+
});
|
|
1055
1062
|
Object.defineProperty(exports, "setRegradingPayload", {
|
|
1056
1063
|
enumerable: true,
|
|
1057
1064
|
get: function get() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "17.49.1-rc.
|
|
3
|
+
"version": "17.49.1-rc.13+fd884fc58",
|
|
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.49.1-rc.
|
|
45
|
-
"@instructure/quiz-i18n": "17.49.1-rc.
|
|
46
|
-
"@instructure/quiz-interactions": "17.49.1-rc.
|
|
47
|
-
"@instructure/quiz-number-input": "17.49.1-rc.
|
|
48
|
-
"@instructure/quiz-rce": "17.49.1-rc.
|
|
44
|
+
"@instructure/quiz-common": "17.49.1-rc.13+fd884fc58",
|
|
45
|
+
"@instructure/quiz-i18n": "17.49.1-rc.13+fd884fc58",
|
|
46
|
+
"@instructure/quiz-interactions": "17.49.1-rc.13+fd884fc58",
|
|
47
|
+
"@instructure/quiz-number-input": "17.49.1-rc.13+fd884fc58",
|
|
48
|
+
"@instructure/quiz-rce": "17.49.1-rc.13+fd884fc58",
|
|
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.49.1-rc.
|
|
109
|
+
"instructure-validations": "17.49.1-rc.13+fd884fc58",
|
|
110
110
|
"ipaddr.js": "^1.5.4",
|
|
111
111
|
"isomorphic-fetch": "^2.2.0",
|
|
112
112
|
"isuuid": "^0.1.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.49.1-rc.
|
|
159
|
+
"quiz-presets": "17.49.1-rc.13+fd884fc58",
|
|
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": "fd884fc589dcef38f3ba0ad20d615c4868fafa08"
|
|
176
176
|
}
|