@instructure/quiz-core 17.60.1-rc.9 → 17.61.1-rc.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,29 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [17.61.0](https://gerrit.instructure.com/quizzes-ui/compare/v17.60.0...v17.61.0) (2023-08-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **bankSharing:** only show Share with Institution setting for bank_admins ([e62c706](https://gerrit.instructure.com/quizzes-ui/commits/e62c7066fff45755442bc69d5d792f30a6be5e58))
12
+ * **propType:** fix propType warning for SDKApp children ([ff7af50](https://gerrit.instructure.com/quizzes-ui/commits/ff7af501322014cdcd574bd746a95a0b9f2179ef))
13
+
14
+
15
+ ### Features
16
+
17
+ * **alerts:** allow children of sdkApp to trigger alerts ([e0e053e](https://gerrit.instructure.com/quizzes-ui/commits/e0e053e208208aca5300cc46f951aac89fc4708b))
18
+ * Add getAnalysesStatus fetch ([bd8e84b](https://gerrit.instructure.com/quizzes-ui/commits/bd8e84b98936ae8e08450357146920b76b08380a))
19
+ * Add getItemAnalyses fetch ([bdeab6e](https://gerrit.instructure.com/quizzes-ui/commits/bdeab6ecedb1d4c4575562092261ff564075bdfc))
20
+ * Add getQuizAnalysis fetch ([5c27f4a](https://gerrit.instructure.com/quizzes-ui/commits/5c27f4a8c12775f307878e51617205342093f78e))
21
+ * **item_banks:** add duplicate item bank buttons to UI ([74e6a5a](https://gerrit.instructure.com/quizzes-ui/commits/74e6a5a81e4b8238adfa4b8463bbfd919c32d00d))
22
+ * **quizAndItemAnalysis:** add metrics and date to report card component ([8649b9f](https://gerrit.instructure.com/quizzes-ui/commits/8649b9f0a0d7ce1333bf3ccf3b9be06f4034d4dc))
23
+ * **Reports:** Add redux slice for analyses ([5bf12b9](https://gerrit.instructure.com/quizzes-ui/commits/5bf12b92e1e3659352915a53dd27f51965b2c3e7))
24
+
25
+
26
+
27
+
28
+
6
29
  # [17.60.0](https://gerrit.instructure.com/quizzes-ui/compare/v17.59.0...v17.60.0) (2023-07-18)
7
30
 
8
31
 
@@ -170,7 +170,7 @@ export var SDKApp = (_dec = themeable(theme, styles), _dec(_class = (_temp = _cl
170
170
  }(Component), _class2.propTypes = {
171
171
  apiEndpoint: PropTypes.string.isRequired,
172
172
  appContainer: CustomPropTypes.selectors.isRequired,
173
- children: PropTypes.oneOf([PropTypes.node, PropTypes.func]).isRequired,
173
+ children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
174
174
  contextUuid: PropTypes.string,
175
175
  gradeByQuestionEnabled: PropTypes.bool,
176
176
  itemBankSharingEnabled: PropTypes.bool,
@@ -20,6 +20,8 @@ var styles = {
20
20
  'details': 'eRzKS_ebWM'
21
21
  };
22
22
  import theme from "./theme.js";
23
+ import { Flex } from '@instructure/ui-flex';
24
+ import t from '@instructure/quiz-i18n/es/format-message';
23
25
  export var ReportCard = (_dec = themeable(theme, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
24
26
  _inherits(ReportCard, _Component);
25
27
 
@@ -40,17 +42,25 @@ export var ReportCard = (_dec = themeable(theme, styles), _dec(_class = (_temp =
40
42
  href = _this$props.href;
41
43
  return /*#__PURE__*/React.createElement(Card, {
42
44
  className: styles.card
43
- }, /*#__PURE__*/React.createElement(Link, {
44
- href: href
45
45
  }, /*#__PURE__*/React.createElement(Text, {
46
46
  size: "medium",
47
47
  weight: "bold"
48
- }, name)), /*#__PURE__*/React.createElement("div", {
48
+ }, name), /*#__PURE__*/React.createElement("div", {
49
49
  className: styles.details
50
50
  }, /*#__PURE__*/React.createElement(Text, {
51
51
  size: "small",
52
52
  color: "secondary"
53
- }, details)));
53
+ }, details)), /*#__PURE__*/React.createElement(Flex, {
54
+ direction: "row",
55
+ justifyItems: "end",
56
+ alignItems: "end",
57
+ height: "100%"
58
+ }, /*#__PURE__*/React.createElement(Link, {
59
+ href: href
60
+ }, /*#__PURE__*/React.createElement(Text, {
61
+ size: "small",
62
+ "data-automation": name
63
+ }, t('View Report')))));
54
64
  }
55
65
  }]);
56
66
 
@@ -201,7 +201,7 @@ var SDKApp = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_
201
201
  }(_react.Component), _class2.propTypes = {
202
202
  apiEndpoint: _propTypes.default.string.isRequired,
203
203
  appContainer: _CustomPropTypes.default.selectors.isRequired,
204
- children: _propTypes.default.oneOf([_propTypes.default.node, _propTypes.default.func]).isRequired,
204
+ children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]).isRequired,
205
205
  contextUuid: _propTypes.default.string,
206
206
  gradeByQuestionEnabled: _propTypes.default.bool,
207
207
  itemBankSharingEnabled: _propTypes.default.bool,
@@ -31,6 +31,10 @@ var _index = _interopRequireDefault(require("../../../../common/components/share
31
31
 
32
32
  var _theme = _interopRequireDefault(require("./theme.js"));
33
33
 
34
+ var _uiFlex = require("@instructure/ui-flex");
35
+
36
+ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
37
+
34
38
  var _dec, _class, _class2, _temp;
35
39
 
36
40
  var styles = {
@@ -60,17 +64,25 @@ var ReportCard = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _d
60
64
  href = _this$props.href;
61
65
  return /*#__PURE__*/_react.default.createElement(_index.default, {
62
66
  className: styles.card
63
- }, /*#__PURE__*/_react.default.createElement(_uiLink.Link, {
64
- href: href
65
67
  }, /*#__PURE__*/_react.default.createElement(_uiText.Text, {
66
68
  size: "medium",
67
69
  weight: "bold"
68
- }, name)), /*#__PURE__*/_react.default.createElement("div", {
70
+ }, name), /*#__PURE__*/_react.default.createElement("div", {
69
71
  className: styles.details
70
72
  }, /*#__PURE__*/_react.default.createElement(_uiText.Text, {
71
73
  size: "small",
72
74
  color: "secondary"
73
- }, details)));
75
+ }, details)), /*#__PURE__*/_react.default.createElement(_uiFlex.Flex, {
76
+ direction: "row",
77
+ justifyItems: "end",
78
+ alignItems: "end",
79
+ height: "100%"
80
+ }, /*#__PURE__*/_react.default.createElement(_uiLink.Link, {
81
+ href: href
82
+ }, /*#__PURE__*/_react.default.createElement(_uiText.Text, {
83
+ size: "small",
84
+ "data-automation": name
85
+ }, (0, _formatMessage.default)('View Report')))));
74
86
  }
75
87
  }]);
76
88
  ReportCard.displayName = "ReportCard";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "17.60.1-rc.9+e0e053e20",
3
+ "version": "17.61.1-rc.0+85ca56d8f",
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.8",
44
- "@instructure/quiz-common": "17.60.1-rc.9+e0e053e20",
45
- "@instructure/quiz-i18n": "17.60.1-rc.9+e0e053e20",
46
- "@instructure/quiz-interactions": "17.60.1-rc.9+e0e053e20",
47
- "@instructure/quiz-number-input": "17.60.1-rc.9+e0e053e20",
48
- "@instructure/quiz-rce": "17.60.1-rc.9+e0e053e20",
44
+ "@instructure/quiz-common": "17.61.1-rc.0+85ca56d8f",
45
+ "@instructure/quiz-i18n": "17.61.1-rc.0+85ca56d8f",
46
+ "@instructure/quiz-interactions": "17.61.1-rc.0+85ca56d8f",
47
+ "@instructure/quiz-number-input": "17.61.1-rc.0+85ca56d8f",
48
+ "@instructure/quiz-rce": "17.61.1-rc.0+85ca56d8f",
49
49
  "@instructure/ui-a11y-content": "^7.20.0",
50
50
  "@instructure/ui-alerts": "^7.20.0",
51
51
  "@instructure/ui-avatar": "^7.20.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.60.1-rc.9+e0e053e20",
109
+ "instructure-validations": "17.61.1-rc.0+85ca56d8f",
110
110
  "ipaddr.js": "^1.5.4",
111
111
  "isomorphic-fetch": "^2.2.0",
112
112
  "isuuid": "^0.1.0",
@@ -138,7 +138,7 @@
138
138
  "uuid": "^3.2.1"
139
139
  },
140
140
  "devDependencies": {
141
- "@instructure/quiz-scripts": "17.60.0",
141
+ "@instructure/quiz-scripts": "17.61.0",
142
142
  "@instructure/ui-axe-check": "^7.20.0",
143
143
  "@instructure/ui-babel-preset": "^7.20.0",
144
144
  "@instructure/ui-karma-config": "^7.20.0",
@@ -157,7 +157,7 @@
157
157
  "intl": "^1.2.4",
158
158
  "jquery": "^2.2.3",
159
159
  "most-subject": "^5.3.0",
160
- "quiz-presets": "17.60.1-rc.9+e0e053e20",
160
+ "quiz-presets": "17.61.1-rc.0+85ca56d8f",
161
161
  "react": "^16.8.6",
162
162
  "react-addons-test-utils": "^15.6.2",
163
163
  "react-dom": "^16.8.6",
@@ -173,5 +173,5 @@
173
173
  "publishConfig": {
174
174
  "access": "public"
175
175
  },
176
- "gitHead": "e0e053e208208aca5300cc46f951aac89fc4708b"
176
+ "gitHead": "85ca56d8f87774404dcab22d0a5565ceb1caeaaa"
177
177
  }