@instructure/quiz-core 17.30.1-rc.2 → 17.30.1-rc.7

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.
@@ -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().slug;
131
- var Interaction = componentForItem(interactionType, COMPONENT_EDIT);
130
+ var interactionType = item.getInteractionType();
131
+ var Interaction = componentForItem(interactionType.slug, 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,6 +136,7 @@ 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,
139
140
  itemId: this.props.guid,
140
141
  renderImportModal: this.renderImportModal
141
142
  })));
@@ -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().slug;
161
- var Interaction = (0, _componentForItem.default)(interactionType, _quizCommon.COMPONENT_EDIT);
160
+ var interactionType = item.getInteractionType();
161
+ var Interaction = (0, _componentForItem.default)(interactionType.slug, _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,6 +166,7 @@ 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,
169
170
  itemId: this.props.guid,
170
171
  renderImportModal: this.renderImportModal
171
172
  })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "17.30.1-rc.2+d0510e539",
3
+ "version": "17.30.1-rc.7+6ea9a72e9",
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.30.1-rc.2+d0510e539",
45
- "@instructure/quiz-i18n": "17.30.1-rc.2+d0510e539",
46
- "@instructure/quiz-interactions": "17.30.1-rc.2+d0510e539",
47
- "@instructure/quiz-number-input": "17.30.1-rc.2+d0510e539",
48
- "@instructure/quiz-rce": "17.30.1-rc.2+d0510e539",
44
+ "@instructure/quiz-common": "17.30.1-rc.7+6ea9a72e9",
45
+ "@instructure/quiz-i18n": "17.30.1-rc.7+6ea9a72e9",
46
+ "@instructure/quiz-interactions": "17.30.1-rc.7+6ea9a72e9",
47
+ "@instructure/quiz-number-input": "17.30.1-rc.7+6ea9a72e9",
48
+ "@instructure/quiz-rce": "17.30.1-rc.7+6ea9a72e9",
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.30.1-rc.2+d0510e539",
109
+ "instructure-validations": "17.30.1-rc.7+6ea9a72e9",
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.30.1-rc.2+d0510e539",
140
+ "@instructure/quiz-scripts": "17.30.1-rc.7+6ea9a72e9",
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.30.1-rc.2+d0510e539",
159
+ "quiz-presets": "17.30.1-rc.7+6ea9a72e9",
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": "d0510e539add637c5060628083c10edf1bf10424"
175
+ "gitHead": "6ea9a72e9aac7bd3f2834bb8d32a04fa09f54723"
176
176
  }