@instructure/quiz-core 18.9.2-rc.0 → 18.9.2-rc.2

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.
Files changed (24) hide show
  1. package/es/common/components/shared/Card/CardWrapper/index.js +3 -3
  2. package/es/common/components/shared/Card/CardWrapper/theme.js +0 -3
  3. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/index.js +1 -0
  4. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/{ChoiceType → LegacyChoiceType}/presenter.js +8 -8
  5. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +4 -4
  6. package/es/reporting/components/resources/ReportList/index.js +5 -5
  7. package/es/reporting/components/resources/ReportList/theme.js +1 -3
  8. package/lib/common/components/shared/Card/CardWrapper/index.js +3 -3
  9. package/lib/common/components/shared/Card/CardWrapper/theme.js +0 -3
  10. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/{ChoiceType → LegacyChoiceType}/index.js +1 -1
  11. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/{ChoiceType → LegacyChoiceType}/presenter.js +10 -10
  12. package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +1 -1
  13. package/lib/reporting/components/resources/ReportList/index.js +5 -5
  14. package/lib/reporting/components/resources/ReportList/theme.js +1 -3
  15. package/package.json +9 -9
  16. package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +0 -1
  17. /package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/{ChoiceType → LegacyChoiceType}/ChoiceTypeTableRow/index.js +0 -0
  18. /package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/{ChoiceType → LegacyChoiceType}/ChoiceTypeTableRow/presenter.js +0 -0
  19. /package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/{ChoiceType → LegacyChoiceType}/ChoiceTypeTableRow/theme.js +0 -0
  20. /package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/{ChoiceType → LegacyChoiceType}/theme.js +0 -0
  21. /package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/{ChoiceType → LegacyChoiceType}/ChoiceTypeTableRow/index.js +0 -0
  22. /package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/{ChoiceType → LegacyChoiceType}/ChoiceTypeTableRow/presenter.js +0 -0
  23. /package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/{ChoiceType → LegacyChoiceType}/ChoiceTypeTableRow/theme.js +0 -0
  24. /package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/{ChoiceType → LegacyChoiceType}/theme.js +0 -0
@@ -11,11 +11,11 @@ import classNames from 'classnames';
11
11
  import { themeable } from '@instructure/ui-themeable';
12
12
  import { View } from '@instructure/ui-view';
13
13
  var styles = {
14
- componentId: 'caADp',
14
+ componentId: 'fVYAO',
15
15
  template: function template(theme) {
16
- return "\n\n.caADp_gasz{background-color:".concat(theme.wrapperBackgroundColor || 'inherit', ";box-sizing:border-box;min-height:100%;padding:").concat(theme.wrapperPadding || 'inherit', ";transition:").concat(theme.wrapperTransitionDuration || 'inherit', " ease}\n\n@media screen and (--phoneBreakPoint){.caADp_gasz{padding:").concat(theme.phoneWrapperPadding || 'inherit', " 0}}");
16
+ return "\n\n.fVYAO_gasz{box-sizing:border-box;min-height:100%;padding:".concat(theme.wrapperPadding || 'inherit', ";transition:").concat(theme.wrapperTransitionDuration || 'inherit', " ease}\n\n@media screen and (--phoneBreakPoint){.fVYAO_gasz{padding:").concat(theme.phoneWrapperPadding || 'inherit', " 0}}");
17
17
  },
18
- 'wrapper': 'caADp_gasz'
18
+ 'wrapper': 'fVYAO_gasz'
19
19
  };
20
20
  import theme from "./theme.js";
21
21
  export var CardWrapper = (_dec = themeable(theme, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
@@ -1,13 +1,10 @@
1
1
  export default function generator(_ref) {
2
2
  var spacing = _ref.spacing,
3
- colors = _ref.colors,
4
- borders = _ref.borders,
5
3
  breakpoints = _ref.breakpoints,
6
4
  transitions = _ref.transitions;
7
5
  return {
8
6
  wrapperPadding: spacing.medium,
9
7
  wrapperTransitionDuration: transitions.duration,
10
- wrapperBackgroundColor: colors.porcelain,
11
8
  phoneBreakPoint: "max-width: ".concat(breakpoints.medium),
12
9
  phoneWrapperPadding: spacing.medium
13
10
  };
@@ -0,0 +1 @@
1
+ export { LegacyChoiceType as default } from "./presenter.js";
@@ -24,15 +24,15 @@ var styles = {
24
24
  import theme from "./theme.js";
25
25
  import AfsTableWrapper from "../shared/AfsTableWrapper/index.js";
26
26
  import classNames from 'classnames';
27
- export var ChoiceType = (_dec = themeable(theme, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
28
- _inherits(ChoiceType, _Component);
27
+ export var LegacyChoiceType = (_dec = themeable(theme, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
28
+ _inherits(LegacyChoiceType, _Component);
29
29
 
30
- var _super = _createSuper(ChoiceType);
30
+ var _super = _createSuper(LegacyChoiceType);
31
31
 
32
- function ChoiceType() {
32
+ function LegacyChoiceType() {
33
33
  var _this;
34
34
 
35
- _classCallCheck(this, ChoiceType);
35
+ _classCallCheck(this, LegacyChoiceType);
36
36
 
37
37
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
38
38
  args[_key] = arguments[_key];
@@ -65,7 +65,7 @@ export var ChoiceType = (_dec = themeable(theme, styles), _dec(_class = (_temp =
65
65
  return _this;
66
66
  }
67
67
 
68
- _createClass(ChoiceType, [{
68
+ _createClass(LegacyChoiceType, [{
69
69
  key: "render",
70
70
  value: function render() {
71
71
  var _this$props = this.props,
@@ -99,8 +99,8 @@ export var ChoiceType = (_dec = themeable(theme, styles), _dec(_class = (_temp =
99
99
  }
100
100
  }]);
101
101
 
102
- ChoiceType.displayName = "ChoiceType";
103
- return ChoiceType;
102
+ LegacyChoiceType.displayName = "LegacyChoiceType";
103
+ return LegacyChoiceType;
104
104
  }(Component), _class2.propTypes = {
105
105
  itemId: PropTypes.number,
106
106
  answerSummary: choiceTypeAnswerSummaryPropType
@@ -3,7 +3,7 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
3
3
  import _createSuper from "@babel/runtime/helpers/esm/createSuper";
4
4
  import React, { Component } from 'react';
5
5
  import { PropTypes } from '@instructure/quiz-interactions';
6
- import ChoiceType from "./ChoiceType/index.js";
6
+ import LegacyChoiceType from "./LegacyChoiceType/index.js";
7
7
  import AggregationType from "./AggregationType/index.js";
8
8
  import { MatchingType, OrderingType, CategorizationType } from "./MatchingType/index.js";
9
9
  import { afsFlags, answerSummaryPropType } from "../propTypes.js";
@@ -66,11 +66,11 @@ export var AnswerFrequencySummary = /*#__PURE__*/function (_Component) {
66
66
  });
67
67
  };
68
68
 
69
- _this.afsTableComponentMap.set('true-false', ChoiceType);
69
+ _this.afsTableComponentMap.set('true-false', LegacyChoiceType);
70
70
 
71
- _this.afsTableComponentMap.set('choice', ChoiceType);
71
+ _this.afsTableComponentMap.set('choice', LegacyChoiceType);
72
72
 
73
- _this.afsTableComponentMap.set('multi-answer', ChoiceType);
73
+ _this.afsTableComponentMap.set('multi-answer', LegacyChoiceType);
74
74
 
75
75
  return _this;
76
76
  }
@@ -11,13 +11,13 @@ import { Heading } from '@instructure/ui-heading';
11
11
  import { themeable } from '@instructure/ui-themeable';
12
12
  import t from '@instructure/quiz-i18n/es/format-message';
13
13
  var styles = {
14
- componentId: 'Gqfpp',
14
+ componentId: 'dedqg',
15
15
  template: function template(theme) {
16
- return "\n\n.Gqfpp_xNcP{background-color:".concat(theme.backgroundColor || 'inherit', ";box-sizing:border-box;height:100%;padding:").concat(theme.pagePadding || 'inherit', "}\n\n.Gqfpp_biBD{display:flex;flex-wrap:wrap;margin:").concat(theme.childrenMargin || 'inherit', "}\n\n.Gqfpp_nvdO{margin-bottom:").concat(theme.titleMarginBottom || 'inherit', "}");
16
+ return "\n\n.dedqg_xNcP{box-sizing:border-box;height:100%;padding:".concat(theme.pagePadding || 'inherit', "}\n\n.dedqg_biBD{display:flex;flex-wrap:wrap;margin:").concat(theme.childrenMargin || 'inherit', "}\n\n.dedqg_nvdO{margin-bottom:").concat(theme.titleMarginBottom || 'inherit', "}");
17
17
  },
18
- 'page': 'Gqfpp_xNcP',
19
- 'children': 'Gqfpp_biBD',
20
- 'title': 'Gqfpp_nvdO'
18
+ 'page': 'dedqg_xNcP',
19
+ 'children': 'dedqg_biBD',
20
+ 'title': 'dedqg_nvdO'
21
21
  };
22
22
  import theme from "./theme.js";
23
23
  export var ReportList = (_dec = themeable(theme, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
@@ -1,8 +1,6 @@
1
1
  export default function generator(_ref) {
2
- var spacing = _ref.spacing,
3
- colors = _ref.colors;
2
+ var spacing = _ref.spacing;
4
3
  return {
5
- backgroundColor: colors.porcelain,
6
4
  pagePadding: spacing.large,
7
5
  childrenMargin: spacing.xSmall,
8
6
  titleMarginBottom: spacing.xSmall
@@ -32,11 +32,11 @@ var _theme = _interopRequireDefault(require("./theme.js"));
32
32
  var _dec, _class, _class2, _temp;
33
33
 
34
34
  var styles = {
35
- componentId: 'caADp',
35
+ componentId: 'fVYAO',
36
36
  template: function template(theme) {
37
- return "\n\n.caADp_gasz{background-color:".concat(theme.wrapperBackgroundColor || 'inherit', ";box-sizing:border-box;min-height:100%;padding:").concat(theme.wrapperPadding || 'inherit', ";transition:").concat(theme.wrapperTransitionDuration || 'inherit', " ease}\n\n@media screen and (--phoneBreakPoint){.caADp_gasz{padding:").concat(theme.phoneWrapperPadding || 'inherit', " 0}}");
37
+ return "\n\n.fVYAO_gasz{box-sizing:border-box;min-height:100%;padding:".concat(theme.wrapperPadding || 'inherit', ";transition:").concat(theme.wrapperTransitionDuration || 'inherit', " ease}\n\n@media screen and (--phoneBreakPoint){.fVYAO_gasz{padding:").concat(theme.phoneWrapperPadding || 'inherit', " 0}}");
38
38
  },
39
- 'wrapper': 'caADp_gasz'
39
+ 'wrapper': 'fVYAO_gasz'
40
40
  };
41
41
  var CardWrapper = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
42
42
  (0, _inherits2.default)(CardWrapper, _Component);
@@ -7,14 +7,11 @@ exports.default = generator;
7
7
 
8
8
  function generator(_ref) {
9
9
  var spacing = _ref.spacing,
10
- colors = _ref.colors,
11
- borders = _ref.borders,
12
10
  breakpoints = _ref.breakpoints,
13
11
  transitions = _ref.transitions;
14
12
  return {
15
13
  wrapperPadding: spacing.medium,
16
14
  wrapperTransitionDuration: transitions.duration,
17
- wrapperBackgroundColor: colors.porcelain,
18
15
  phoneBreakPoint: "max-width: ".concat(breakpoints.medium),
19
16
  phoneWrapperPadding: spacing.medium
20
17
  };
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "default", {
7
7
  enumerable: true,
8
8
  get: function get() {
9
- return _presenter.ChoiceType;
9
+ return _presenter.LegacyChoiceType;
10
10
  }
11
11
  });
12
12
 
@@ -7,7 +7,7 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- exports.ChoiceType = void 0;
10
+ exports.LegacyChoiceType = void 0;
11
11
 
12
12
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
13
 
@@ -49,15 +49,15 @@ var styles = {
49
49
  'tableWrapper': 'fxQkB_rMrG',
50
50
  'tableContainer': 'fxQkB_SVtU'
51
51
  };
52
- var ChoiceType = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
53
- (0, _inherits2.default)(ChoiceType, _Component);
52
+ var LegacyChoiceType = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
53
+ (0, _inherits2.default)(LegacyChoiceType, _Component);
54
54
 
55
- var _super = (0, _createSuper2.default)(ChoiceType);
55
+ var _super = (0, _createSuper2.default)(LegacyChoiceType);
56
56
 
57
- function ChoiceType() {
57
+ function LegacyChoiceType() {
58
58
  var _this;
59
59
 
60
- (0, _classCallCheck2.default)(this, ChoiceType);
60
+ (0, _classCallCheck2.default)(this, LegacyChoiceType);
61
61
 
62
62
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
63
63
  args[_key] = arguments[_key];
@@ -90,7 +90,7 @@ var ChoiceType = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _d
90
90
  return _this;
91
91
  }
92
92
 
93
- (0, _createClass2.default)(ChoiceType, [{
93
+ (0, _createClass2.default)(LegacyChoiceType, [{
94
94
  key: "render",
95
95
  value: function render() {
96
96
  var _this$props = this.props,
@@ -123,10 +123,10 @@ var ChoiceType = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _d
123
123
  }, (0, _formatMessage.default)('%')))), /*#__PURE__*/_react.default.createElement(_uiTable.Table.Body, null, choices.map(this.renderRow), this.renderNoAnswer(noAnswer, numberOfChoices)))));
124
124
  }
125
125
  }]);
126
- ChoiceType.displayName = "ChoiceType";
127
- return ChoiceType;
126
+ LegacyChoiceType.displayName = "LegacyChoiceType";
127
+ return LegacyChoiceType;
128
128
  }(_react.Component), _class2.propTypes = {
129
129
  itemId: _propTypes.default.number,
130
130
  answerSummary: _propTypes2.choiceTypeAnswerSummaryPropType
131
131
  }.isRequired, _temp)) || _class);
132
- exports.ChoiceType = ChoiceType;
132
+ exports.LegacyChoiceType = LegacyChoiceType;
@@ -19,7 +19,7 @@ var _react = _interopRequireWildcard(require("react"));
19
19
 
20
20
  var _quizInteractions = require("@instructure/quiz-interactions");
21
21
 
22
- var _index = _interopRequireDefault(require("./ChoiceType/index.js"));
22
+ var _index = _interopRequireDefault(require("./LegacyChoiceType/index.js"));
23
23
 
24
24
  var _index2 = _interopRequireDefault(require("./AggregationType/index.js"));
25
25
 
@@ -32,13 +32,13 @@ var _theme = _interopRequireDefault(require("./theme.js"));
32
32
  var _dec, _class, _class2, _temp;
33
33
 
34
34
  var styles = {
35
- componentId: 'Gqfpp',
35
+ componentId: 'dedqg',
36
36
  template: function template(theme) {
37
- return "\n\n.Gqfpp_xNcP{background-color:".concat(theme.backgroundColor || 'inherit', ";box-sizing:border-box;height:100%;padding:").concat(theme.pagePadding || 'inherit', "}\n\n.Gqfpp_biBD{display:flex;flex-wrap:wrap;margin:").concat(theme.childrenMargin || 'inherit', "}\n\n.Gqfpp_nvdO{margin-bottom:").concat(theme.titleMarginBottom || 'inherit', "}");
37
+ return "\n\n.dedqg_xNcP{box-sizing:border-box;height:100%;padding:".concat(theme.pagePadding || 'inherit', "}\n\n.dedqg_biBD{display:flex;flex-wrap:wrap;margin:").concat(theme.childrenMargin || 'inherit', "}\n\n.dedqg_nvdO{margin-bottom:").concat(theme.titleMarginBottom || 'inherit', "}");
38
38
  },
39
- 'page': 'Gqfpp_xNcP',
40
- 'children': 'Gqfpp_biBD',
41
- 'title': 'Gqfpp_nvdO'
39
+ 'page': 'dedqg_xNcP',
40
+ 'children': 'dedqg_biBD',
41
+ 'title': 'dedqg_nvdO'
42
42
  };
43
43
  var ReportList = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
44
44
  (0, _inherits2.default)(ReportList, _Component);
@@ -6,10 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = generator;
7
7
 
8
8
  function generator(_ref) {
9
- var spacing = _ref.spacing,
10
- colors = _ref.colors;
9
+ var spacing = _ref.spacing;
11
10
  return {
12
- backgroundColor: colors.porcelain,
13
11
  pagePadding: spacing.large,
14
12
  childrenMargin: spacing.xSmall,
15
13
  titleMarginBottom: spacing.xSmall
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "18.9.2-rc.0+cb85f21de",
3
+ "version": "18.9.2-rc.2+d027e49f5",
4
4
  "license": "MIT",
5
5
  "description": "The Quiz React SDK by Instructure Inc.",
6
6
  "author": "Instructure, Inc. Engineering and Product Design",
@@ -43,11 +43,11 @@
43
43
  "dependencies": {
44
44
  "@instructure/grading-utils": "^1.0.0",
45
45
  "@instructure/outcomes-ui": "^2.1.9",
46
- "@instructure/quiz-common": "18.9.2-rc.0+cb85f21de",
47
- "@instructure/quiz-i18n": "18.9.2-rc.0+cb85f21de",
48
- "@instructure/quiz-interactions": "18.9.2-rc.0+cb85f21de",
49
- "@instructure/quiz-number-input": "18.9.2-rc.0+cb85f21de",
50
- "@instructure/quiz-rce": "18.9.2-rc.0+cb85f21de",
46
+ "@instructure/quiz-common": "18.9.2-rc.2+d027e49f5",
47
+ "@instructure/quiz-i18n": "18.9.2-rc.2+d027e49f5",
48
+ "@instructure/quiz-interactions": "18.9.2-rc.2+d027e49f5",
49
+ "@instructure/quiz-number-input": "18.9.2-rc.2+d027e49f5",
50
+ "@instructure/quiz-rce": "18.9.2-rc.2+d027e49f5",
51
51
  "@instructure/ui-a11y-content": "^7.22.1",
52
52
  "@instructure/ui-alerts": "^7.22.1",
53
53
  "@instructure/ui-avatar": "^7.22.1",
@@ -109,7 +109,7 @@
109
109
  "file-saver": "~2.0.5",
110
110
  "humps": "^2.0.0",
111
111
  "immutable": "^3.8.1",
112
- "instructure-validations": "18.9.2-rc.0+cb85f21de",
112
+ "instructure-validations": "18.9.2-rc.2+d027e49f5",
113
113
  "ipaddr.js": "^1.5.4",
114
114
  "isomorphic-fetch": "^2.2.0",
115
115
  "isuuid": "^0.1.0",
@@ -160,7 +160,7 @@
160
160
  "intl": "^1.2.4",
161
161
  "jquery": "^2.2.3",
162
162
  "most-subject": "^5.3.0",
163
- "quiz-presets": "18.9.2-rc.0+cb85f21de",
163
+ "quiz-presets": "18.9.2-rc.2+d027e49f5",
164
164
  "react": "^16.8.6",
165
165
  "react-addons-test-utils": "^15.6.2",
166
166
  "react-dom": "^16.8.6",
@@ -176,5 +176,5 @@
176
176
  "publishConfig": {
177
177
  "access": "public"
178
178
  },
179
- "gitHead": "cb85f21dedb7207286e37a7e8680b43f7745ceb7"
179
+ "gitHead": "d027e49f5439cffec7e9ff2dafac31facd9628ea"
180
180
  }
@@ -1 +0,0 @@
1
- export { ChoiceType as default } from "./presenter.js";