@instructure/quiz-core 17.32.1-rc.7 → 17.32.1-rc.8

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();
131
- var Interaction = componentForItem(interactionType.slug, COMPONENT_EDIT);
130
+ var interactionType = item.getInteractionType().slug;
131
+ var Interaction = componentForItem(interactionType, 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,7 +136,6 @@ 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,
140
139
  itemId: this.props.guid,
141
140
  renderImportModal: this.renderImportModal
142
141
  })));
@@ -43,6 +43,7 @@ export var propsForInteractionEdit = function propsForInteractionEdit(props, add
43
43
  calculator: !props.showCalculator
44
44
  },
45
45
  interactionData: item.interactionData,
46
+ interactionType: props.entry.getInteractionType(),
46
47
  // SHIM: canvas-rce breaks on null values now
47
48
  // this is a shim until canvas-rce deals with
48
49
  // null values better
@@ -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();
161
- var Interaction = (0, _componentForItem.default)(interactionType.slug, _quizCommon.COMPONENT_EDIT);
160
+ var interactionType = item.getInteractionType().slug;
161
+ var Interaction = (0, _componentForItem.default)(interactionType, _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,7 +166,6 @@ 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,
170
169
  itemId: this.props.guid,
171
170
  renderImportModal: this.renderImportModal
172
171
  })));
@@ -55,6 +55,7 @@ var propsForInteractionEdit = function propsForInteractionEdit(props, additional
55
55
  calculator: !props.showCalculator
56
56
  },
57
57
  interactionData: item.interactionData,
58
+ interactionType: props.entry.getInteractionType(),
58
59
  // SHIM: canvas-rce breaks on null values now
59
60
  // this is a shim until canvas-rce deals with
60
61
  // null values better
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "17.32.1-rc.7+fbd128d56",
3
+ "version": "17.32.1-rc.8+f9cc0e3f1",
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.32.1-rc.7+fbd128d56",
45
- "@instructure/quiz-i18n": "17.32.1-rc.7+fbd128d56",
46
- "@instructure/quiz-interactions": "17.32.1-rc.7+fbd128d56",
47
- "@instructure/quiz-number-input": "17.32.1-rc.7+fbd128d56",
48
- "@instructure/quiz-rce": "17.32.1-rc.7+fbd128d56",
44
+ "@instructure/quiz-common": "17.32.1-rc.8+f9cc0e3f1",
45
+ "@instructure/quiz-i18n": "17.32.1-rc.8+f9cc0e3f1",
46
+ "@instructure/quiz-interactions": "17.32.1-rc.8+f9cc0e3f1",
47
+ "@instructure/quiz-number-input": "17.32.1-rc.8+f9cc0e3f1",
48
+ "@instructure/quiz-rce": "17.32.1-rc.8+f9cc0e3f1",
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.32.1-rc.7+fbd128d56",
109
+ "instructure-validations": "17.32.1-rc.8+f9cc0e3f1",
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.32.1-rc.7+fbd128d56",
140
+ "@instructure/quiz-scripts": "17.32.1-rc.8+f9cc0e3f1",
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.32.1-rc.7+fbd128d56",
159
+ "quiz-presets": "17.32.1-rc.8+f9cc0e3f1",
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": "fbd128d5628d155adc7ac00ba744a541c3aeb8df"
175
+ "gitHead": "f9cc0e3f12a6f14e730a5d938724fce4a03da800"
176
176
  }