@instructure/quiz-core 17.18.0 → 17.18.1-rc.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.
@@ -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, {
@@ -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", {
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "17.18.0",
3
+ "version": "17.18.1-rc.0+2f0b79e5b",
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.0.0",
44
- "@instructure/quiz-common": "^17.18.0",
45
- "@instructure/quiz-i18n": "^17.18.0",
46
- "@instructure/quiz-interactions": "^17.18.0",
47
- "@instructure/quiz-number-input": "^17.18.0",
48
- "@instructure/quiz-rce": "^17.18.0",
44
+ "@instructure/quiz-common": "17.18.1-rc.0+2f0b79e5b",
45
+ "@instructure/quiz-i18n": "17.18.1-rc.0+2f0b79e5b",
46
+ "@instructure/quiz-interactions": "17.18.1-rc.0+2f0b79e5b",
47
+ "@instructure/quiz-number-input": "17.18.1-rc.0+2f0b79e5b",
48
+ "@instructure/quiz-rce": "17.18.1-rc.0+2f0b79e5b",
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.18.0",
109
+ "instructure-validations": "17.18.1-rc.0+2f0b79e5b",
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.18.0",
140
+ "@instructure/quiz-scripts": "17.18.1-rc.0+2f0b79e5b",
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.18.0",
159
+ "quiz-presets": "17.18.1-rc.0+2f0b79e5b",
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": "e81c1d5da11b47eb6ce0e218012c4ff96c87e176"
175
+ "gitHead": "2f0b79e5bdb7572ea37721e2c83079907cc2deb2"
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;