@instructure/quiz-core 19.0.1-rc.3 → 19.0.1-rc.5

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.
@@ -53,6 +53,10 @@ export var AnswerFrequencySummary = /*#__PURE__*/function (_Component) {
53
53
  if (afsFlags.choiceEnabled) {
54
54
  _this.afsTableComponentMap.set('choice', ChoiceType);
55
55
  }
56
+
57
+ if (afsFlags.multiAnswerEnabled) {
58
+ _this.afsTableComponentMap.set('multi-answer', ChoiceType);
59
+ }
56
60
  };
57
61
 
58
62
  _this.render = function () {
@@ -13,7 +13,8 @@ function mapStateToProps(_state) {
13
13
  hotSpotEnabled: featureOn('ia_hot_spot_afs'),
14
14
  categorizationEnabled: featureOn('ia_categorization_afs'),
15
15
  trueFalseEnabled: featureOn('ia_true_false_afs'),
16
- choiceEnabled: featureOn('ia_choice_afs')
16
+ choiceEnabled: featureOn('ia_choice_afs'),
17
+ multiAnswerEnabled: featureOn('ia_multi_answer_afs')
17
18
  }
18
19
  };
19
20
  }
@@ -89,5 +89,6 @@ export var afsFlags = PropTypes.shape({
89
89
  orderingEnabled: PropTypes.bool.isRequired,
90
90
  categorizationEnabled: PropTypes.bool.isRequired,
91
91
  trueFalseEnabled: PropTypes.bool.isRequired,
92
- choiceEnabled: PropTypes.bool.isRequired
92
+ choiceEnabled: PropTypes.bool.isRequired,
93
+ multiAnswerEnabled: PropTypes.bool.isRequired
93
94
  });
@@ -74,6 +74,10 @@ var AnswerFrequencySummary = /*#__PURE__*/function (_Component) {
74
74
  if (afsFlags.choiceEnabled) {
75
75
  _this.afsTableComponentMap.set('choice', _index2.default);
76
76
  }
77
+
78
+ if (afsFlags.multiAnswerEnabled) {
79
+ _this.afsTableComponentMap.set('multi-answer', _index2.default);
80
+ }
77
81
  };
78
82
 
79
83
  _this.render = function () {
@@ -22,7 +22,8 @@ function mapStateToProps(_state) {
22
22
  hotSpotEnabled: (0, _featureCheck.featureOn)('ia_hot_spot_afs'),
23
23
  categorizationEnabled: (0, _featureCheck.featureOn)('ia_categorization_afs'),
24
24
  trueFalseEnabled: (0, _featureCheck.featureOn)('ia_true_false_afs'),
25
- choiceEnabled: (0, _featureCheck.featureOn)('ia_choice_afs')
25
+ choiceEnabled: (0, _featureCheck.featureOn)('ia_choice_afs'),
26
+ multiAnswerEnabled: (0, _featureCheck.featureOn)('ia_multi_answer_afs')
26
27
  }
27
28
  };
28
29
  }
@@ -122,7 +122,8 @@ var afsFlags = _propTypes.default.shape({
122
122
  orderingEnabled: _propTypes.default.bool.isRequired,
123
123
  categorizationEnabled: _propTypes.default.bool.isRequired,
124
124
  trueFalseEnabled: _propTypes.default.bool.isRequired,
125
- choiceEnabled: _propTypes.default.bool.isRequired
125
+ choiceEnabled: _propTypes.default.bool.isRequired,
126
+ multiAnswerEnabled: _propTypes.default.bool.isRequired
126
127
  });
127
128
 
128
129
  exports.afsFlags = afsFlags;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "19.0.1-rc.3+ccf710abb",
3
+ "version": "19.0.1-rc.5+8556431b3",
4
4
  "license": "MIT",
5
5
  "description": "The Quiz React SDK by Instructure Inc.",
6
6
  "author": "Instructure, Inc. Engineering and Product Design",
@@ -44,11 +44,11 @@
44
44
  "@instructure/emotion": "^8.48.3",
45
45
  "@instructure/grading-utils": "^1.0.0",
46
46
  "@instructure/outcomes-ui": "^2.1.9",
47
- "@instructure/quiz-common": "19.0.1-rc.3+ccf710abb",
48
- "@instructure/quiz-i18n": "19.0.1-rc.3+ccf710abb",
49
- "@instructure/quiz-interactions": "19.0.1-rc.3+ccf710abb",
50
- "@instructure/quiz-number-input": "19.0.1-rc.3+ccf710abb",
51
- "@instructure/quiz-rce": "19.0.1-rc.3+ccf710abb",
47
+ "@instructure/quiz-common": "19.0.1-rc.5+8556431b3",
48
+ "@instructure/quiz-i18n": "19.0.1-rc.5+8556431b3",
49
+ "@instructure/quiz-interactions": "19.0.1-rc.5+8556431b3",
50
+ "@instructure/quiz-number-input": "19.0.1-rc.5+8556431b3",
51
+ "@instructure/quiz-rce": "19.0.1-rc.5+8556431b3",
52
52
  "@instructure/ui-a11y-content": "^8.48.3",
53
53
  "@instructure/ui-alerts": "^8.48.3",
54
54
  "@instructure/ui-avatar": "^8.48.3",
@@ -110,7 +110,7 @@
110
110
  "file-saver": "~2.0.5",
111
111
  "humps": "^2.0.0",
112
112
  "immutable": "^3.8.1",
113
- "instructure-validations": "19.0.1-rc.3+ccf710abb",
113
+ "instructure-validations": "19.0.1-rc.5+8556431b3",
114
114
  "ipaddr.js": "^1.5.4",
115
115
  "isomorphic-fetch": "^2.2.0",
116
116
  "isuuid": "^0.1.0",
@@ -161,7 +161,7 @@
161
161
  "intl": "^1.2.4",
162
162
  "jquery": "^2.2.3",
163
163
  "most-subject": "^5.3.0",
164
- "quiz-presets": "19.0.1-rc.3+ccf710abb",
164
+ "quiz-presets": "19.0.1-rc.5+8556431b3",
165
165
  "react": "^16.8.6",
166
166
  "react-addons-test-utils": "^15.6.2",
167
167
  "react-dom": "^16.8.6",
@@ -177,5 +177,5 @@
177
177
  "publishConfig": {
178
178
  "access": "public"
179
179
  },
180
- "gitHead": "ccf710abbb15a38788222e936bbdfbf710087793"
180
+ "gitHead": "8556431b374d88ed80d9904e01522098e5fe9116"
181
181
  }