@instructure/quiz-core 17.34.1-rc.9 → 17.35.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 +19 -0
- package/es/banks/components/SharingModal/presenter.js +2 -1
- package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +15 -15
- package/lib/banks/components/SharingModal/presenter.js +2 -1
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +15 -15
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.35.0](https://gerrit.instructure.com/quizzes-ui/compare/v17.34.0...v17.35.0) (2022-07-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **overflow:** Long texts and large images do not overflow question area ([b7926f7](https://gerrit.instructure.com/quizzes-ui/commits/b7926f76bbcc22831130a4956f2128a21c920a30))
|
|
12
|
+
* **printing:** do not request sample_items when grading ([58fac0c](https://gerrit.instructure.com/quizzes-ui/commits/58fac0c00a5335c08537f02778c0b9dcd4b20265))
|
|
13
|
+
* **quiz-core:** adding and removing shares in one single action ([e84dd6c](https://gerrit.instructure.com/quizzes-ui/commits/e84dd6ceef1d8f4fb044d6429b704fc07d757be5))
|
|
14
|
+
* **usability:** several small improvements ([7f6b133](https://gerrit.instructure.com/quizzes-ui/commits/7f6b13320fe7b875959e48d8f92c1792541dd9e2))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **RCE:** Provide context for RCE configuration ([c1071f2](https://gerrit.instructure.com/quizzes-ui/commits/c1071f25fc2d4c16a1fa5cb4c1c301217925cfe6))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [17.34.0](https://gerrit.instructure.com/quizzes-ui/compare/v17.33.0...v17.34.0) (2022-07-14)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @instructure/quiz-core
|
|
@@ -222,9 +222,10 @@ export var SharingModalPresenter = (_dec = themeable(theme, styles), _dec(_class
|
|
|
222
222
|
});
|
|
223
223
|
var removedNewEntity = newEntitiesIndex > -1;
|
|
224
224
|
var newShares = removedNewEntity ? prevState.shares.delete(sharesIndex) : prevState.shares.setIn([sharesIndex, 'permission'], permission);
|
|
225
|
+
var newEntities = removedNewEntity ? prevState.newEntities.delete(newEntitiesIndex) : prevState.newEntities;
|
|
225
226
|
return {
|
|
226
227
|
shares: newShares,
|
|
227
|
-
newEntities:
|
|
228
|
+
newEntities: newEntities,
|
|
228
229
|
entitiesWithChangedPermission: Object.assign({}, prevState.entitiesWithChangedPermission, _defineProperty({}, id, permission))
|
|
229
230
|
};
|
|
230
231
|
}, _this.updateEntitiesCount);
|
|
@@ -24,23 +24,23 @@ import { ItemTypes, dragSource, collectDrag } from "../../../../../common/compon
|
|
|
24
24
|
import PositionBox from "../../../../../common/components/resources/positionBox/PositionBox.js";
|
|
25
25
|
import DragAndDropZone from "../../../../../common/components/shared/drag_and_drop/DragAndDropZone/index.js";
|
|
26
26
|
var styles = {
|
|
27
|
-
componentId: '
|
|
27
|
+
componentId: 'eqZPF',
|
|
28
28
|
template: function template(theme) {
|
|
29
|
-
return "\n\n.
|
|
29
|
+
return "\n\n.eqZPF_eLmg{transform:translateZ(0)}\n\n.eqZPF_TMNr{background-color:".concat(theme.quizEntryShowBackgroundColor || 'inherit', ";padding:").concat(theme.quizEntryShowPadding || 'inherit', "}\n\n.eqZPF_fsuY{align-items:stretch;display:flex;flex-direction:row;flex-wrap:nowrap;height:").concat(theme.headerHeight || 'inherit', ";padding-right:").concat(theme.headerRightPadding || 'inherit', "}\n\n.eqZPF_bscQ{border:").concat(theme.dndBorder || 'inherit', "}\n\n.eqZPF_cKlw{align-items:center;display:inline-flex;flex:8 0 0;overflow:hidden}\n\n.eqZPF_eGWt{border-bottom:").concat(theme.phoneConnectingLinesBorderWidth || 'inherit', " dotted;border-color:").concat(theme.phoneConnectingLinesBorderColor || 'inherit', ";border-left:").concat(theme.phoneConnectingLinesBorderWidth || 'inherit', " dotted;height:2rem;margin-right:1.2rem;margin-top:-0.8rem;width:1.2rem}\n\n.eqZPF_eGWt,.eqZPF_IoDT{display:inline-flex;flex:0 0 auto}\n\n.eqZPF_IoDT{color:").concat(theme.rightHeaderColor || 'inherit', ";text-align:right;z-index:").concat(theme.rightHeaderZIndex || 'inherit', "}\n\n[dir=ltr] .eqZPF_IoDT,[dir=rtl] .eqZPF_IoDT{text-align:right}\n\n.eqZPF_IoDT button{background-color:transparent;background-color:initial}\n\n.eqZPF_eCZW,.eqZPF_cwte,.eqZPF_nvdO{color:").concat(theme.titleInteractionTypeNamePointsColor || 'inherit', ";font-size:").concat(theme.titleInteractionTypeNamePointsFontSize || 'inherit', ";margin-left:").concat(theme.titleInteractionTypeNamePointsLeftMargin || 'inherit', ";margin-right:").concat(theme.titleInteractionTypeNamePointsRightMargin || 'inherit', ";overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n\n.eqZPF_csjx{margin:").concat(theme.itemHolderMargin || 'inherit', ";overflow-wrap:anywhere}\n\n.eqZPF_fPOQ,.eqZPF_gaTA{background-color:transparent;border:none;color:inherit;font-size:").concat(theme.optionsButtonDragDropHandleFontSize || 'inherit', ";margin:").concat(theme.optionsButtonDragDropHandleMargin || 'inherit', "}\n\n.eqZPF_gaTA{cursor:pointer}\n\n@media print{.eqZPF_eLmg{break-inside:avoid}}");
|
|
30
30
|
},
|
|
31
|
-
'quizEntryWrapper': '
|
|
32
|
-
'quizEntryShow': '
|
|
33
|
-
'header': '
|
|
34
|
-
'dndBorder': '
|
|
35
|
-
'leftHeader': '
|
|
36
|
-
'connectingLines': '
|
|
37
|
-
'rightHeader': '
|
|
38
|
-
'interactionTypeName': '
|
|
39
|
-
'points': '
|
|
40
|
-
'title': '
|
|
41
|
-
'itemHolder': '
|
|
42
|
-
'dragAndDropHandle': '
|
|
43
|
-
'optionsButton': '
|
|
31
|
+
'quizEntryWrapper': 'eqZPF_eLmg',
|
|
32
|
+
'quizEntryShow': 'eqZPF_TMNr',
|
|
33
|
+
'header': 'eqZPF_fsuY',
|
|
34
|
+
'dndBorder': 'eqZPF_bscQ',
|
|
35
|
+
'leftHeader': 'eqZPF_cKlw',
|
|
36
|
+
'connectingLines': 'eqZPF_eGWt',
|
|
37
|
+
'rightHeader': 'eqZPF_IoDT',
|
|
38
|
+
'interactionTypeName': 'eqZPF_eCZW',
|
|
39
|
+
'points': 'eqZPF_cwte',
|
|
40
|
+
'title': 'eqZPF_nvdO',
|
|
41
|
+
'itemHolder': 'eqZPF_csjx',
|
|
42
|
+
'dragAndDropHandle': 'eqZPF_fPOQ',
|
|
43
|
+
'optionsButton': 'eqZPF_gaTA'
|
|
44
44
|
};
|
|
45
45
|
import theme from "./theme.js";
|
|
46
46
|
|
|
@@ -260,9 +260,10 @@ var SharingModalPresenter = (_dec = (0, _uiThemeable.themeable)(_theme.default,
|
|
|
260
260
|
});
|
|
261
261
|
var removedNewEntity = newEntitiesIndex > -1;
|
|
262
262
|
var newShares = removedNewEntity ? prevState.shares.delete(sharesIndex) : prevState.shares.setIn([sharesIndex, 'permission'], permission);
|
|
263
|
+
var newEntities = removedNewEntity ? prevState.newEntities.delete(newEntitiesIndex) : prevState.newEntities;
|
|
263
264
|
return {
|
|
264
265
|
shares: newShares,
|
|
265
|
-
newEntities:
|
|
266
|
+
newEntities: newEntities,
|
|
266
267
|
entitiesWithChangedPermission: Object.assign({}, prevState.entitiesWithChangedPermission, (0, _defineProperty2.default)({}, id, permission))
|
|
267
268
|
};
|
|
268
269
|
}, _this.updateEntitiesCount);
|
|
@@ -58,23 +58,23 @@ var _theme = _interopRequireDefault(require("./theme.js"));
|
|
|
58
58
|
var _dec, _class, _class2, _temp;
|
|
59
59
|
|
|
60
60
|
var styles = {
|
|
61
|
-
componentId: '
|
|
61
|
+
componentId: 'eqZPF',
|
|
62
62
|
template: function template(theme) {
|
|
63
|
-
return "\n\n.
|
|
63
|
+
return "\n\n.eqZPF_eLmg{transform:translateZ(0)}\n\n.eqZPF_TMNr{background-color:".concat(theme.quizEntryShowBackgroundColor || 'inherit', ";padding:").concat(theme.quizEntryShowPadding || 'inherit', "}\n\n.eqZPF_fsuY{align-items:stretch;display:flex;flex-direction:row;flex-wrap:nowrap;height:").concat(theme.headerHeight || 'inherit', ";padding-right:").concat(theme.headerRightPadding || 'inherit', "}\n\n.eqZPF_bscQ{border:").concat(theme.dndBorder || 'inherit', "}\n\n.eqZPF_cKlw{align-items:center;display:inline-flex;flex:8 0 0;overflow:hidden}\n\n.eqZPF_eGWt{border-bottom:").concat(theme.phoneConnectingLinesBorderWidth || 'inherit', " dotted;border-color:").concat(theme.phoneConnectingLinesBorderColor || 'inherit', ";border-left:").concat(theme.phoneConnectingLinesBorderWidth || 'inherit', " dotted;height:2rem;margin-right:1.2rem;margin-top:-0.8rem;width:1.2rem}\n\n.eqZPF_eGWt,.eqZPF_IoDT{display:inline-flex;flex:0 0 auto}\n\n.eqZPF_IoDT{color:").concat(theme.rightHeaderColor || 'inherit', ";text-align:right;z-index:").concat(theme.rightHeaderZIndex || 'inherit', "}\n\n[dir=ltr] .eqZPF_IoDT,[dir=rtl] .eqZPF_IoDT{text-align:right}\n\n.eqZPF_IoDT button{background-color:transparent;background-color:initial}\n\n.eqZPF_eCZW,.eqZPF_cwte,.eqZPF_nvdO{color:").concat(theme.titleInteractionTypeNamePointsColor || 'inherit', ";font-size:").concat(theme.titleInteractionTypeNamePointsFontSize || 'inherit', ";margin-left:").concat(theme.titleInteractionTypeNamePointsLeftMargin || 'inherit', ";margin-right:").concat(theme.titleInteractionTypeNamePointsRightMargin || 'inherit', ";overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n\n.eqZPF_csjx{margin:").concat(theme.itemHolderMargin || 'inherit', ";overflow-wrap:anywhere}\n\n.eqZPF_fPOQ,.eqZPF_gaTA{background-color:transparent;border:none;color:inherit;font-size:").concat(theme.optionsButtonDragDropHandleFontSize || 'inherit', ";margin:").concat(theme.optionsButtonDragDropHandleMargin || 'inherit', "}\n\n.eqZPF_gaTA{cursor:pointer}\n\n@media print{.eqZPF_eLmg{break-inside:avoid}}");
|
|
64
64
|
},
|
|
65
|
-
'quizEntryWrapper': '
|
|
66
|
-
'quizEntryShow': '
|
|
67
|
-
'header': '
|
|
68
|
-
'dndBorder': '
|
|
69
|
-
'leftHeader': '
|
|
70
|
-
'connectingLines': '
|
|
71
|
-
'rightHeader': '
|
|
72
|
-
'interactionTypeName': '
|
|
73
|
-
'points': '
|
|
74
|
-
'title': '
|
|
75
|
-
'itemHolder': '
|
|
76
|
-
'dragAndDropHandle': '
|
|
77
|
-
'optionsButton': '
|
|
65
|
+
'quizEntryWrapper': 'eqZPF_eLmg',
|
|
66
|
+
'quizEntryShow': 'eqZPF_TMNr',
|
|
67
|
+
'header': 'eqZPF_fsuY',
|
|
68
|
+
'dndBorder': 'eqZPF_bscQ',
|
|
69
|
+
'leftHeader': 'eqZPF_cKlw',
|
|
70
|
+
'connectingLines': 'eqZPF_eGWt',
|
|
71
|
+
'rightHeader': 'eqZPF_IoDT',
|
|
72
|
+
'interactionTypeName': 'eqZPF_eCZW',
|
|
73
|
+
'points': 'eqZPF_cwte',
|
|
74
|
+
'title': 'eqZPF_nvdO',
|
|
75
|
+
'itemHolder': 'eqZPF_csjx',
|
|
76
|
+
'dragAndDropHandle': 'eqZPF_fPOQ',
|
|
77
|
+
'optionsButton': 'eqZPF_gaTA'
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
var _ref = /*#__PURE__*/_react.default.createElement(_uiIcons.IconBankLine, null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.35.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.35.0",
|
|
45
|
+
"@instructure/quiz-i18n": "^17.35.0",
|
|
46
|
+
"@instructure/quiz-interactions": "^17.35.0",
|
|
47
|
+
"@instructure/quiz-number-input": "^17.35.0",
|
|
48
|
+
"@instructure/quiz-rce": "^17.35.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.35.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.35.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.35.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": "2a46623defa006300cf96e54534032c9436b5d09"
|
|
176
176
|
}
|