@instructure/quiz-core 20.6.1-rc.2 → 20.6.1-rc.4
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/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +1 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +0 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +1 -5
- package/package.json +9 -9
|
@@ -4,8 +4,6 @@ import { NewItemAnalysis as NewItemAnalysisPresenter } from "./presenter.js";
|
|
|
4
4
|
|
|
5
5
|
function mapStateToProps(_state) {
|
|
6
6
|
return {
|
|
7
|
-
// This would be able to switch of all AFS Tables
|
|
8
|
-
showFrequencyTable: featureOn('show_improved_item_analysis_frequency_table'),
|
|
9
7
|
afsFlags: {
|
|
10
8
|
formulaEnabled: featureOn('ia_formula_afs'),
|
|
11
9
|
matchingEnabled: featureOn('ia_matching_afs'),
|
package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js
CHANGED
|
@@ -42,7 +42,6 @@ import { afsFlags, itemAnalysisPropType } from "../propTypes.js";
|
|
|
42
42
|
import { Flex } from '@instructure/ui-flex';
|
|
43
43
|
import { RichContentRenderer } from '@instructure/quiz-rce';
|
|
44
44
|
import { ensureRCEContentIsLoaded } from "../../../../../common/util/rceChecker.js";
|
|
45
|
-
import { PropTypes } from '@instructure/quiz-interactions';
|
|
46
45
|
import { RICH_FILL_BLANK_SLUG } from '@instructure/quiz-common';
|
|
47
46
|
var parser = new DOMParser();
|
|
48
47
|
var parsererrorElement = 'parsererror';
|
|
@@ -285,7 +284,6 @@ export var NewItemAnalysis = (_dec = themeable(theme, styles), _dec(_class = (_t
|
|
|
285
284
|
var _metadata$item_title;
|
|
286
285
|
|
|
287
286
|
var _this$props2 = this.props,
|
|
288
|
-
showFrequencyTable = _this$props2.showFrequencyTable,
|
|
289
287
|
itemAnalysis = _this$props2.itemAnalysis,
|
|
290
288
|
afsFlags = _this$props2.afsFlags;
|
|
291
289
|
var answer_summary = itemAnalysis.answer_summary,
|
|
@@ -317,7 +315,7 @@ export var NewItemAnalysis = (_dec = themeable(theme, styles), _dec(_class = (_t
|
|
|
317
315
|
padding: "small xx-small none none",
|
|
318
316
|
overflowY: "hidden",
|
|
319
317
|
size: !this.state.bodyExpanded ? '60px' : void 0
|
|
320
|
-
}, this.renderRichContent(itemBodyEnhanced, itemBodyClass, itemId)))), /*#__PURE__*/React.createElement(Flex.Item, null, this.renderMetrics(scores, metricsClass)))),
|
|
318
|
+
}, this.renderRichContent(itemBodyEnhanced, itemBodyClass, itemId)))), /*#__PURE__*/React.createElement(Flex.Item, null, this.renderMetrics(scores, metricsClass)))), this.renderAnswerSummaryTable(itemId, answer_summary, metricsClass, interactionType, afsFlags)));
|
|
321
319
|
}
|
|
322
320
|
}]);
|
|
323
321
|
|
|
@@ -325,6 +323,5 @@ export var NewItemAnalysis = (_dec = themeable(theme, styles), _dec(_class = (_t
|
|
|
325
323
|
return NewItemAnalysis;
|
|
326
324
|
}(Component), _class2.propTypes = {
|
|
327
325
|
itemAnalysis: itemAnalysisPropType,
|
|
328
|
-
showFrequencyTable: PropTypes.bool.isRequired,
|
|
329
326
|
afsFlags: afsFlags
|
|
330
327
|
}.isRequired, _temp)) || _class);
|
|
@@ -13,8 +13,6 @@ var _presenter = require("./presenter.js");
|
|
|
13
13
|
|
|
14
14
|
function mapStateToProps(_state) {
|
|
15
15
|
return {
|
|
16
|
-
// This would be able to switch of all AFS Tables
|
|
17
|
-
showFrequencyTable: (0, _featureCheck.featureOn)('show_improved_item_analysis_frequency_table'),
|
|
18
16
|
afsFlags: {
|
|
19
17
|
formulaEnabled: (0, _featureCheck.featureOn)('ia_formula_afs'),
|
|
20
18
|
matchingEnabled: (0, _featureCheck.featureOn)('ia_matching_afs'),
|
package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js
CHANGED
|
@@ -57,8 +57,6 @@ var _quizRce = require("@instructure/quiz-rce");
|
|
|
57
57
|
|
|
58
58
|
var _rceChecker = require("../../../../../common/util/rceChecker.js");
|
|
59
59
|
|
|
60
|
-
var _quizInteractions = require("@instructure/quiz-interactions");
|
|
61
|
-
|
|
62
60
|
var _quizCommon = require("@instructure/quiz-common");
|
|
63
61
|
|
|
64
62
|
var _dec, _class, _class2, _temp;
|
|
@@ -321,7 +319,6 @@ var NewItemAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
321
319
|
var _metadata$item_title;
|
|
322
320
|
|
|
323
321
|
var _this$props2 = this.props,
|
|
324
|
-
showFrequencyTable = _this$props2.showFrequencyTable,
|
|
325
322
|
itemAnalysis = _this$props2.itemAnalysis,
|
|
326
323
|
afsFlags = _this$props2.afsFlags;
|
|
327
324
|
var answer_summary = itemAnalysis.answer_summary,
|
|
@@ -353,14 +350,13 @@ var NewItemAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
353
350
|
padding: "small xx-small none none",
|
|
354
351
|
overflowY: "hidden",
|
|
355
352
|
size: !this.state.bodyExpanded ? '60px' : void 0
|
|
356
|
-
}, this.renderRichContent(itemBodyEnhanced, itemBodyClass, itemId)))), /*#__PURE__*/_react.default.createElement(_uiFlex.Flex.Item, null, this.renderMetrics(scores, metricsClass)))),
|
|
353
|
+
}, this.renderRichContent(itemBodyEnhanced, itemBodyClass, itemId)))), /*#__PURE__*/_react.default.createElement(_uiFlex.Flex.Item, null, this.renderMetrics(scores, metricsClass)))), this.renderAnswerSummaryTable(itemId, answer_summary, metricsClass, interactionType, afsFlags)));
|
|
357
354
|
}
|
|
358
355
|
}]);
|
|
359
356
|
NewItemAnalysis.displayName = "NewItemAnalysis";
|
|
360
357
|
return NewItemAnalysis;
|
|
361
358
|
}(_react.Component), _class2.propTypes = {
|
|
362
359
|
itemAnalysis: _propTypes.itemAnalysisPropType,
|
|
363
|
-
showFrequencyTable: _quizInteractions.PropTypes.bool.isRequired,
|
|
364
360
|
afsFlags: _propTypes.afsFlags
|
|
365
361
|
}.isRequired, _temp)) || _class);
|
|
366
362
|
exports.NewItemAnalysis = NewItemAnalysis;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "20.6.1-rc.
|
|
3
|
+
"version": "20.6.1-rc.4+dd034b237",
|
|
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.51.0",
|
|
45
45
|
"@instructure/grading-utils": "^1.0.0",
|
|
46
46
|
"@instructure/outcomes-ui": "^3.1.0",
|
|
47
|
-
"@instructure/quiz-common": "20.6.1-rc.
|
|
48
|
-
"@instructure/quiz-i18n": "20.6.1-rc.
|
|
49
|
-
"@instructure/quiz-interactions": "20.6.1-rc.
|
|
50
|
-
"@instructure/quiz-number-input": "20.6.1-rc.
|
|
51
|
-
"@instructure/quiz-rce": "20.6.1-rc.
|
|
47
|
+
"@instructure/quiz-common": "20.6.1-rc.4+dd034b237",
|
|
48
|
+
"@instructure/quiz-i18n": "20.6.1-rc.4+dd034b237",
|
|
49
|
+
"@instructure/quiz-interactions": "20.6.1-rc.4+dd034b237",
|
|
50
|
+
"@instructure/quiz-number-input": "20.6.1-rc.4+dd034b237",
|
|
51
|
+
"@instructure/quiz-rce": "20.6.1-rc.4+dd034b237",
|
|
52
52
|
"@instructure/ui-a11y-content": "^8.51.0",
|
|
53
53
|
"@instructure/ui-alerts": "^8.51.0",
|
|
54
54
|
"@instructure/ui-avatar": "^8.51.0",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"file-saver": "~2.0.5",
|
|
113
113
|
"humps": "^2.0.0",
|
|
114
114
|
"immutable": "^3.8.1",
|
|
115
|
-
"instructure-validations": "20.6.1-rc.
|
|
115
|
+
"instructure-validations": "20.6.1-rc.4+dd034b237",
|
|
116
116
|
"ipaddr.js": "^1.5.4",
|
|
117
117
|
"isomorphic-fetch": "^2.2.0",
|
|
118
118
|
"isuuid": "^0.1.0",
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"intl": "^1.2.4",
|
|
164
164
|
"jquery": "^2.2.3",
|
|
165
165
|
"most-subject": "^5.3.0",
|
|
166
|
-
"quiz-presets": "20.6.1-rc.
|
|
166
|
+
"quiz-presets": "20.6.1-rc.4+dd034b237",
|
|
167
167
|
"react": "^16.8.6",
|
|
168
168
|
"react-addons-test-utils": "^15.6.2",
|
|
169
169
|
"react-dom": "^16.8.6",
|
|
@@ -179,5 +179,5 @@
|
|
|
179
179
|
"publishConfig": {
|
|
180
180
|
"access": "public"
|
|
181
181
|
},
|
|
182
|
-
"gitHead": "
|
|
182
|
+
"gitHead": "dd034b237b9988c2f2b9103c6bbfec06d3cea20c"
|
|
183
183
|
}
|