@instructure/quiz-core 17.25.2-rc.7 → 17.26.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,21 @@
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.26.0](https://gerrit.instructure.com/quizzes-ui/compare/v17.25.1...v17.26.0) (2022-02-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * **banks:** update 'All My Banks' to 'All Banks' ([4a5ecfc](https://gerrit.instructure.com/quizzes-ui/commits/4a5ecfc0502909ecba675687813e70aa361dd997))
12
+ * **FITB:** add rich FITB edit ([d227a60](https://gerrit.instructure.com/quizzes-ui/commits/d227a60b245f8fc6bacb118ac778521e2dc76c54))
13
+ * **itembanks:** Update item bank filter name ([774962a](https://gerrit.instructure.com/quizzes-ui/commits/774962ad4ad71c98347d503f24e677409984f394))
14
+ * **quizzes-ui:** Reintroduce TinyMCE v5 to load based on a feature flag ([aaf1c83](https://gerrit.instructure.com/quizzes-ui/commits/aaf1c83ce9a2ba93f62fe9e4b6219596543709b2))
15
+ * **revert:** Reintroduce TinyMCE v5 to load based on a feature flag" ([8813246](https://gerrit.instructure.com/quizzes-ui/commits/88132463640fe5aad9267ed0096dfd22d40fd552))
16
+
17
+
18
+
19
+
20
+
6
21
  ## [17.25.1](https://gerrit.instructure.com/quizzes-ui/compare/v17.25.0...v17.25.1) (2022-02-09)
7
22
 
8
23
  **Note:** Version bump only for package @instructure/quiz-core
@@ -12,7 +12,6 @@ import { Button, CloseButton } from '@instructure/ui-buttons';
12
12
  import { Heading } from '@instructure/ui-heading';
13
13
  import { themeable } from '@instructure/ui-themeable';
14
14
  import { RichContentRenderer } from '@instructure/quiz-rce';
15
- import { isNewRCEEnabled } from "../../../../common/util/rceChecker.js";
16
15
  import RichContentInput from "../../../../common/components/RichContentInput/index.js";
17
16
  import t from '@instructure/quiz-i18n/es/format-message';
18
17
  import { Modal, ModalHeader, ModalBody, ModalFooter, ITEM_FEEDBACK_MODAL, ITEM_FEEDBACK_MODAL_FEEDBACK, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
@@ -104,8 +103,7 @@ export var ItemFeedbackModal = (_dec = themeable(theme, styles), _dec(_class = (
104
103
  onChange: this.onFeedbackChange,
105
104
  parentType: this.props.parentType,
106
105
  parentId: this.props.parentId,
107
- importModalCloseOverride: this.returnToFeedback,
108
- useNewRce: isNewRCEEnabled()
106
+ importModalCloseOverride: this.returnToFeedback
109
107
  }));
110
108
  }
111
109
  }, {
@@ -11,7 +11,6 @@ import { Button } from '@instructure/ui-buttons';
11
11
  import { themeable } from '@instructure/ui-themeable';
12
12
  import t from '@instructure/quiz-i18n/es/format-message';
13
13
  import RichContentInput from "../../../../../../common/components/RichContentInput/index.js";
14
- import { isNewRCEEnabled } from "../../../../../../common/util/rceChecker.js";
15
14
  import wrapWithOutsideClick from "../../../../../../common/components/shared/functionality/componentWithOutsideClick.js";
16
15
  import CustomPropTypes from "../../../../../../common/util/CustomPropTypes.js";
17
16
  import elementsForSelectors from "../../../../../../common/util/ElementsForSelectors.js";
@@ -89,8 +88,7 @@ var QuizInstructionsEdit = (_dec = themeable(theme, styles), _dec(_class = (_tem
89
88
  onKeyUp: this.props.onInputChange,
90
89
  onChange: this.props.onInputChange,
91
90
  parentType: PARENT_TYPE_QUIZ,
92
- parentId: this.props.quizId,
93
- useNewRce: isNewRCEEnabled()
91
+ parentId: this.props.quizId
94
92
  }), /*#__PURE__*/React.createElement("div", {
95
93
  className: styles.footer
96
94
  }, /*#__PURE__*/React.createElement(Button, {
@@ -36,8 +36,7 @@ export function mapStateToProps(state, props) {
36
36
  partialDeepScoringEnabled: featureOn('partial_deep_scoring'),
37
37
  partialScoringEnabled: featureOn('partial_scoring'),
38
38
  quizId: getActiveQuizId(state),
39
- showCalculator: featureOn('calculator_per_question'),
40
- useNewRce: featureOn('use_new_rce')
39
+ showCalculator: featureOn('calculator_per_question')
41
40
  };
42
41
  }
43
42
 
@@ -179,7 +179,6 @@ ItemEdit.propTypes = {
179
179
  setUploadStatus: PropTypes.func.isRequired,
180
180
  initialFocusId: PropTypes.string,
181
181
  showCalculator: PropTypes.bool,
182
- useNewRce: PropTypes.bool,
183
182
  clearValidationErrorsFromApi: PropTypes.func.isRequired,
184
183
  validationErrorsFromApi: PropTypes.objectOf(PropTypes.arrayOf(PropTypes.shape({
185
184
  type: PropTypes.string,
@@ -197,7 +196,6 @@ ItemEdit.defaultProps = {
197
196
  partialScoringEnabled: false,
198
197
  initialFocusId: null,
199
198
  showCalculator: false,
200
- useNewRce: false,
201
199
  validationErrorsFromApi: {}
202
200
  };
203
201
  export default ItemEdit;
@@ -18,8 +18,7 @@ function mapStateToProps(state, props) {
18
18
  oneQuestionAtATime: isActiveQuizWorkingInstanceOneQuestionAtATime(state),
19
19
  partialDeepScoringEnabled: featureOn('partial_deep_scoring'),
20
20
  partialScoringEnabled: featureOn('partial_scoring'),
21
- quizId: getActiveQuizId(state),
22
- useNewRce: featureOn('use_new_rce')
21
+ quizId: getActiveQuizId(state)
23
22
  };
24
23
  }
25
24
 
@@ -76,13 +76,11 @@ ItemOverride.propTypes = {
76
76
  partialScoringEnabled: PropTypes.bool,
77
77
  quizId: PropTypes.string.isRequired,
78
78
  screenreaderNotification: PropTypes.func.isRequired,
79
- setOneQuestionAtATime: PropTypes.func.isRequired,
80
- useNewRce: PropTypes.bool
79
+ setOneQuestionAtATime: PropTypes.func.isRequired
81
80
  };
82
81
  ItemOverride.defaultProps = {
83
82
  errorsAreShowing: false,
84
83
  partialScoringEnabled: false,
85
- partialDeepScoringEnabled: false,
86
- useNewRce: false
84
+ partialDeepScoringEnabled: false
87
85
  };
88
86
  export default ItemOverride;
@@ -16,7 +16,6 @@ import { themeable } from '@instructure/ui-themeable';
16
16
  import { Heading } from '@instructure/ui-heading';
17
17
  import RichContentInput from "../../../RichContentInput/index.js";
18
18
  import { toErrors } from "../../../../util/instUIMessages.js";
19
- import { isNewRCEEnabled } from "../../../../util/rceChecker.js";
20
19
  import Errors from "../../../shared/errors/Errors.js";
21
20
  import { SimpleSelect } from '@instructure/ui-simple-select';
22
21
  import { IconUpdownLine } from '@instructure/ui-icons';
@@ -175,8 +174,7 @@ export var StimulusEditInfo = (_dec = themeable(theme, styles), _dec(_class = (_
175
174
  defaultContent: stimulus.get('body'),
176
175
  onKeyUp: this.onBodyChange,
177
176
  onBlur: this.onBodyChange,
178
- uploadPath: this.fileUploadUrl(),
179
- useNewRce: isNewRCEEnabled()
177
+ uploadPath: this.fileUploadUrl()
180
178
  }), /*#__PURE__*/React.createElement(Errors, {
181
179
  errorList: this.errorsList('body')
182
180
  })), /*#__PURE__*/React.createElement("div", {
@@ -66,8 +66,7 @@ export var propsForInteractionEdit = function propsForInteractionEdit(props, add
66
66
  setOneQuestionAtATime: setOneQuestionAtATime,
67
67
  stemErrors: props.workingItem.errorsFor('itemBody').toJS(),
68
68
  initialFocusId: props.initialFocusId,
69
- calculatorType: item.calculatorType,
70
- useNewRce: props.useNewRce
69
+ calculatorType: item.calculatorType
71
70
  };
72
71
  };
73
72
  export var propsForInteractionShow = function propsForInteractionShow(item) {
package/es/index.js CHANGED
@@ -89,8 +89,7 @@ export { formatTime } from "./common/util/formatTimespan.js";
89
89
  export { connect } from "./common/react-redux.js";
90
90
  export { breakdownSeconds, HOUR_IN_SECONDS } from "./common/components/shared/FormattedDuration/index.js";
91
91
  export { sessionStore } from "./common/util/sessionStore.js";
92
- export { printWithCss, ensureImagesLoaded } from "./common/util/printUtils.js";
93
- export { isNewRCEEnabled } from "./common/util/rceChecker.js"; // APIs
92
+ export { printWithCss, ensureImagesLoaded } from "./common/util/printUtils.js"; // APIs
94
93
 
95
94
  export { createQuizEntryRegrade } from "./grading/api/quizEntryRegrades.js";
96
95
  export { getQuizEntry } from "./building/api/quizEntries.js";
@@ -31,8 +31,6 @@ var _uiThemeable = require("@instructure/ui-themeable");
31
31
 
32
32
  var _quizRce = require("@instructure/quiz-rce");
33
33
 
34
- var _rceChecker = require("../../../../common/util/rceChecker.js");
35
-
36
34
  var _index = _interopRequireDefault(require("../../../../common/components/RichContentInput/index.js"));
37
35
 
38
36
  var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
@@ -130,8 +128,7 @@ var ItemFeedbackModal = (_dec = (0, _uiThemeable.themeable)(_theme.default, styl
130
128
  onChange: this.onFeedbackChange,
131
129
  parentType: this.props.parentType,
132
130
  parentId: this.props.parentId,
133
- importModalCloseOverride: this.returnToFeedback,
134
- useNewRce: (0, _rceChecker.isNewRCEEnabled)()
131
+ importModalCloseOverride: this.returnToFeedback
135
132
  }));
136
133
  }
137
134
  }, {
@@ -29,8 +29,6 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
29
29
 
30
30
  var _index = _interopRequireDefault(require("../../../../../../common/components/RichContentInput/index.js"));
31
31
 
32
- var _rceChecker = require("../../../../../../common/util/rceChecker.js");
33
-
34
32
  var _componentWithOutsideClick = _interopRequireDefault(require("../../../../../../common/components/shared/functionality/componentWithOutsideClick.js"));
35
33
 
36
34
  var _CustomPropTypes = _interopRequireDefault(require("../../../../../../common/util/CustomPropTypes.js"));
@@ -115,8 +113,7 @@ var QuizInstructionsEdit = (_dec = (0, _uiThemeable.themeable)(_theme.default, s
115
113
  onKeyUp: this.props.onInputChange,
116
114
  onChange: this.props.onInputChange,
117
115
  parentType: _quizCommon.PARENT_TYPE_QUIZ,
118
- parentId: this.props.quizId,
119
- useNewRce: (0, _rceChecker.isNewRCEEnabled)()
116
+ parentId: this.props.quizId
120
117
  }), /*#__PURE__*/_react.default.createElement("div", {
121
118
  className: styles.footer
122
119
  }, /*#__PURE__*/_react.default.createElement(_uiButtons.Button, {
@@ -64,8 +64,7 @@ function mapStateToProps(state, props) {
64
64
  partialDeepScoringEnabled: (0, _featureCheck.featureOn)('partial_deep_scoring'),
65
65
  partialScoringEnabled: (0, _featureCheck.featureOn)('partial_scoring'),
66
66
  quizId: (0, _quizzes2.getActiveQuizId)(state),
67
- showCalculator: (0, _featureCheck.featureOn)('calculator_per_question'),
68
- useNewRce: (0, _featureCheck.featureOn)('use_new_rce')
67
+ showCalculator: (0, _featureCheck.featureOn)('calculator_per_question')
69
68
  };
70
69
  }
71
70
 
@@ -210,7 +210,6 @@ ItemEdit.propTypes = {
210
210
  setUploadStatus: _propTypes.default.func.isRequired,
211
211
  initialFocusId: _propTypes.default.string,
212
212
  showCalculator: _propTypes.default.bool,
213
- useNewRce: _propTypes.default.bool,
214
213
  clearValidationErrorsFromApi: _propTypes.default.func.isRequired,
215
214
  validationErrorsFromApi: _propTypes.default.objectOf(_propTypes.default.arrayOf(_propTypes.default.shape({
216
215
  type: _propTypes.default.string,
@@ -228,7 +227,6 @@ ItemEdit.defaultProps = {
228
227
  partialScoringEnabled: false,
229
228
  initialFocusId: null,
230
229
  showCalculator: false,
231
- useNewRce: false,
232
230
  validationErrorsFromApi: {}
233
231
  };
234
232
  var _default = ItemEdit;
@@ -38,8 +38,7 @@ function mapStateToProps(state, props) {
38
38
  oneQuestionAtATime: (0, _quizzes2.isActiveQuizWorkingInstanceOneQuestionAtATime)(state),
39
39
  partialDeepScoringEnabled: (0, _featureCheck.featureOn)('partial_deep_scoring'),
40
40
  partialScoringEnabled: (0, _featureCheck.featureOn)('partial_scoring'),
41
- quizId: (0, _quizzes2.getActiveQuizId)(state),
42
- useNewRce: (0, _featureCheck.featureOn)('use_new_rce')
41
+ quizId: (0, _quizzes2.getActiveQuizId)(state)
43
42
  };
44
43
  }
45
44
 
@@ -99,14 +99,12 @@ ItemOverride.propTypes = {
99
99
  partialScoringEnabled: _propTypes.default.bool,
100
100
  quizId: _propTypes.default.string.isRequired,
101
101
  screenreaderNotification: _propTypes.default.func.isRequired,
102
- setOneQuestionAtATime: _propTypes.default.func.isRequired,
103
- useNewRce: _propTypes.default.bool
102
+ setOneQuestionAtATime: _propTypes.default.func.isRequired
104
103
  };
105
104
  ItemOverride.defaultProps = {
106
105
  errorsAreShowing: false,
107
106
  partialScoringEnabled: false,
108
- partialDeepScoringEnabled: false,
109
- useNewRce: false
107
+ partialDeepScoringEnabled: false
110
108
  };
111
109
  var _default = ItemOverride;
112
110
  exports.default = _default;
@@ -39,8 +39,6 @@ var _index = _interopRequireDefault(require("../../../RichContentInput/index.js"
39
39
 
40
40
  var _instUIMessages = require("../../../../util/instUIMessages.js");
41
41
 
42
- var _rceChecker = require("../../../../util/rceChecker.js");
43
-
44
42
  var _Errors = _interopRequireDefault(require("../../../shared/errors/Errors.js"));
45
43
 
46
44
  var _uiSimpleSelect = require("@instructure/ui-simple-select");
@@ -208,8 +206,7 @@ var StimulusEditInfo = (_dec = (0, _uiThemeable.themeable)(_theme.default, style
208
206
  defaultContent: stimulus.get('body'),
209
207
  onKeyUp: this.onBodyChange,
210
208
  onBlur: this.onBodyChange,
211
- uploadPath: this.fileUploadUrl(),
212
- useNewRce: (0, _rceChecker.isNewRCEEnabled)()
209
+ uploadPath: this.fileUploadUrl()
213
210
  }), /*#__PURE__*/_react.default.createElement(_Errors.default, {
214
211
  errorList: this.errorsList('body')
215
212
  })), /*#__PURE__*/_react.default.createElement("div", {
@@ -77,8 +77,7 @@ var propsForInteractionEdit = function propsForInteractionEdit(props, additional
77
77
  setOneQuestionAtATime: setOneQuestionAtATime,
78
78
  stemErrors: props.workingItem.errorsFor('itemBody').toJS(),
79
79
  initialFocusId: props.initialFocusId,
80
- calculatorType: item.calculatorType,
81
- useNewRce: props.useNewRce
80
+ calculatorType: item.calculatorType
82
81
  };
83
82
  };
84
83
 
package/lib/index.js CHANGED
@@ -103,7 +103,6 @@ var _exportNames = {
103
103
  sessionStore: true,
104
104
  printWithCss: true,
105
105
  ensureImagesLoaded: true,
106
- isNewRCEEnabled: true,
107
106
  createQuizEntryRegrade: true,
108
107
  getQuizEntry: true,
109
108
  moveQuizEntry: true,
@@ -774,12 +773,6 @@ Object.defineProperty(exports, "ensureImagesLoaded", {
774
773
  return _printUtils.ensureImagesLoaded;
775
774
  }
776
775
  });
777
- Object.defineProperty(exports, "isNewRCEEnabled", {
778
- enumerable: true,
779
- get: function get() {
780
- return _rceChecker.isNewRCEEnabled;
781
- }
782
- });
783
776
  Object.defineProperty(exports, "createQuizEntryRegrade", {
784
777
  enumerable: true,
785
778
  get: function get() {
@@ -1460,8 +1453,6 @@ var _sessionStore = require("./common/util/sessionStore.js");
1460
1453
 
1461
1454
  var _printUtils = require("./common/util/printUtils.js");
1462
1455
 
1463
- var _rceChecker = require("./common/util/rceChecker.js");
1464
-
1465
1456
  var _quizEntryRegrades = require("./grading/api/quizEntryRegrades.js");
1466
1457
 
1467
1458
  var _quizEntries = require("./building/api/quizEntries.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "17.25.2-rc.7+c2b2795a6",
3
+ "version": "17.26.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.25.2-rc.7+c2b2795a6",
45
- "@instructure/quiz-i18n": "17.25.2-rc.7+c2b2795a6",
46
- "@instructure/quiz-interactions": "17.25.2-rc.7+c2b2795a6",
47
- "@instructure/quiz-number-input": "17.25.2-rc.7+c2b2795a6",
48
- "@instructure/quiz-rce": "17.25.2-rc.7+c2b2795a6",
44
+ "@instructure/quiz-common": "^17.26.0",
45
+ "@instructure/quiz-i18n": "^17.26.0",
46
+ "@instructure/quiz-interactions": "^17.26.0",
47
+ "@instructure/quiz-number-input": "^17.26.0",
48
+ "@instructure/quiz-rce": "^17.26.0",
49
49
  "@instructure/ui-a11y-content": "^7.11.0",
50
50
  "@instructure/ui-alerts": "^7.11.0",
51
51
  "@instructure/ui-avatar": "^7.11.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.25.2-rc.7+c2b2795a6",
109
+ "instructure-validations": "^17.26.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.25.2-rc.7+c2b2795a6",
140
+ "@instructure/quiz-scripts": "^17.26.0",
141
141
  "@instructure/ui-axe-check": "^7.11.0",
142
142
  "@instructure/ui-babel-preset": "^7.11.0",
143
143
  "@instructure/ui-karma-config": "^7.11.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.25.2-rc.7+c2b2795a6",
159
+ "quiz-presets": "^17.26.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": "c2b2795a605e6093d0a4c5383e0e4f72c5922bcb"
175
+ "gitHead": "88e34a44d26fcfaec7740ab586d3d7c205079e03"
176
176
  }
@@ -1,6 +0,0 @@
1
- import { featureOn } from "./featureCheck.js";
2
- var newRCEFeatureName = 'use_new_rce';
3
- export function isNewRCEEnabled() {
4
- return featureOn(newRCEFeatureName);
5
- }
6
- export default isNewRCEEnabled;
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isNewRCEEnabled = isNewRCEEnabled;
7
- exports.default = void 0;
8
-
9
- var _featureCheck = require("./featureCheck.js");
10
-
11
- var newRCEFeatureName = 'use_new_rce';
12
-
13
- function isNewRCEEnabled() {
14
- return (0, _featureCheck.featureOn)(newRCEFeatureName);
15
- }
16
-
17
- var _default = isNewRCEEnabled;
18
- exports.default = _default;