@instructure/quiz-core 17.63.1-rc.13 → 17.63.1-rc.14

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.
@@ -83,8 +83,9 @@ export var MetricPopover = (_dec = themeable(theme, styles), _dec(_class = (_tem
83
83
  })), /*#__PURE__*/React.createElement("div", {
84
84
  className: styles.headerContainer
85
85
  }, /*#__PURE__*/React.createElement(Heading, {
86
+ className: styles.popoverTitle,
86
87
  level: "h3"
87
- }, _this.props.title)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Heading, {
88
+ }, _this.props.title)), /*#__PURE__*/React.createElement("div", null, _this.props.subtitle && /*#__PURE__*/React.createElement(Heading, {
88
89
  theme: {
89
90
  h5FontWeight: 700
90
91
  },
@@ -108,7 +109,7 @@ export var MetricPopover = (_dec = themeable(theme, styles), _dec(_class = (_tem
108
109
  },
109
110
  withBackground: false,
110
111
  withBorder: false,
111
- screenReaderLabel: t('Metric tooltip'),
112
+ screenReaderLabel: this.props.screenReaderLabel,
112
113
  renderIcon: _ref
113
114
  });
114
115
  }
@@ -1,18 +1,16 @@
1
+ import t from '@instructure/quiz-i18n/es/format-message';
1
2
  export var difficultyIndex = {
2
- title: 'Difficulty title',
3
- subtitle: 'difficulty subtitle',
4
- body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi elementum interdum risus sed condimentum. Duis vel nisi at quam luctus dictum id eu risus. Donec eget tristique justo',
5
- screenReaderLabel: 'Lorem one'
3
+ title: t('Item Difficulty (p value)'),
4
+ body: t('Item difficulty is the proportion of individuals who answered an item correctly. Multiplying this value by 100 equals the percentage of individuals who answered an item correctly. Values range from 0 to 1.'),
5
+ screenReaderLabel: t('Item difficulty (p value) tooltip')
6
6
  };
7
7
  export var discriminationIndex = {
8
- title: 'Discrimination title',
9
- subtitle: 'discrimination subtitle',
10
- body: 'Lorem ipsum dolor sit amet',
11
- screenReaderLabel: 'Lorem two'
8
+ title: t('Discrimination Index'),
9
+ body: t('Discrimination index assesses the ability of an item to differentiate between the highest scoring and lowest scoring individuals. It ranges from -1 to +1. A higher value suggests good discrimination while a lower index indicates poor discrimination.'),
10
+ screenReaderLabel: t('Discrimination index tooltip')
12
11
  };
13
12
  export var pearsonCorrelation = {
14
- title: 'Pearson correlation title',
15
- subtitle: 'pearson correlation subtitle',
16
- body: 'Lorem ipsum dolor sit amet',
17
- screenReaderLabel: 'Lorem three'
13
+ title: t('Corrected Item-Total Correlation Coefficient'),
14
+ body: t('Corrected item-total correlation coefficient is a widely used discrimination index used to assess the overall relationship between individual item scores and the total score of the quiz. Values range from -1 to +1. Values greater than +.20 are considered acceptable; low and negative values indicate unexpected scoring patterns or potential miskeys. Higher value indicates that higher scores on the item are associated with higher total scores.'),
15
+ screenReaderLabel: t('Corrected item-total correlation coefficient tooltip')
18
16
  };
@@ -0,0 +1,11 @@
1
+ import t from '@instructure/quiz-i18n/es/format-message';
2
+ export var standardDeviation = {
3
+ title: t('Standard Deviation'),
4
+ body: t('Standard deviation is a measure of the average absolute deviation of scores around the mean. A low standard deviation indicates, on average, the scores tend to be close to the mean of the set. A high value indicates, on average, scores vary widely from the mean of the data set.'),
5
+ screenReaderLabel: t('Standard deviation tooltip')
6
+ };
7
+ export var cronbachsAlpha = {
8
+ title: t('Cronbach\'s Alpha'),
9
+ body: t('Cronbach\'s alpha is an internal consistency measure that estimates the reliability of a quiz. Values range from 0 to 1, with higher values indicating greater reliability.'),
10
+ screenReaderLabel: t('Cronbach\'s alpha tooltip')
11
+ };
@@ -29,18 +29,7 @@ import AnalysisPopoverMetric from "../AnalysisPopoverMetric/index.js";
29
29
  import AnalysisMetric from "../AnalysisMetric/index.js";
30
30
  import { ScoreDistribution } from "../charts/ScoreDistribution/presenter.js";
31
31
  import { quizAnalysisPropType } from "../propTypes.js";
32
- var stdDevPopoverTexts = {
33
- title: 'Lorem ipsum ',
34
- subtitle: 'subtitle',
35
- body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor',
36
- screenReaderLabel: 'standard deviation tooltip'
37
- };
38
- var cronbachsAlphaPopoverTexts = {
39
- title: 'Lorem ipsum ',
40
- subtitle: 'subtitle',
41
- body: 'cronbach\'s alpha description',
42
- screenReaderLabel: 'cronbach\'s alpha tooltip'
43
- };
32
+ import { cronbachsAlpha, standardDeviation } from "./popoverContent.js";
44
33
  export var NewQuizAnalysis = (_dec = themeable(theme, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
45
34
  _inherits(NewQuizAnalysis, _Component);
46
35
 
@@ -76,12 +65,12 @@ export var NewQuizAnalysis = (_dec = themeable(theme, styles), _dec(_class = (_t
76
65
  metricKey: "stddev",
77
66
  value: t.number(scores === null || scores === void 0 ? void 0 : scores.stddev),
78
67
  label: t('Standard Deviation'),
79
- popoverDescription: stdDevPopoverTexts
68
+ popoverDescription: standardDeviation
80
69
  }), /*#__PURE__*/React.createElement(AnalysisPopoverMetric, {
81
70
  metricKey: "cronbachs_alpha",
82
71
  value: t.number(scores === null || scores === void 0 ? void 0 : scores.cronbachs_alpha),
83
72
  label: t('Cronbach\'s Alpha'),
84
- popoverDescription: cronbachsAlphaPopoverTexts
73
+ popoverDescription: cronbachsAlpha
85
74
  })));
86
75
  };
87
76
 
@@ -108,8 +108,9 @@ var MetricPopover = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
108
108
  })), /*#__PURE__*/_react.default.createElement("div", {
109
109
  className: styles.headerContainer
110
110
  }, /*#__PURE__*/_react.default.createElement(_uiHeading.Heading, {
111
+ className: styles.popoverTitle,
111
112
  level: "h3"
112
- }, _this.props.title)), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_uiHeading.Heading, {
113
+ }, _this.props.title)), /*#__PURE__*/_react.default.createElement("div", null, _this.props.subtitle && /*#__PURE__*/_react.default.createElement(_uiHeading.Heading, {
113
114
  theme: {
114
115
  h5FontWeight: 700
115
116
  },
@@ -133,7 +134,7 @@ var MetricPopover = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
133
134
  },
134
135
  withBackground: false,
135
136
  withBorder: false,
136
- screenReaderLabel: (0, _formatMessage.default)('Metric tooltip'),
137
+ screenReaderLabel: this.props.screenReaderLabel,
137
138
  renderIcon: _ref
138
139
  });
139
140
  }
@@ -1,27 +1,29 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports.pearsonCorrelation = exports.discriminationIndex = exports.difficultyIndex = void 0;
9
+
10
+ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
11
+
7
12
  var difficultyIndex = {
8
- title: 'Difficulty title',
9
- subtitle: 'difficulty subtitle',
10
- body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi elementum interdum risus sed condimentum. Duis vel nisi at quam luctus dictum id eu risus. Donec eget tristique justo',
11
- screenReaderLabel: 'Lorem one'
13
+ title: (0, _formatMessage.default)('Item Difficulty (p value)'),
14
+ body: (0, _formatMessage.default)('Item difficulty is the proportion of individuals who answered an item correctly. Multiplying this value by 100 equals the percentage of individuals who answered an item correctly. Values range from 0 to 1.'),
15
+ screenReaderLabel: (0, _formatMessage.default)('Item difficulty (p value) tooltip')
12
16
  };
13
17
  exports.difficultyIndex = difficultyIndex;
14
18
  var discriminationIndex = {
15
- title: 'Discrimination title',
16
- subtitle: 'discrimination subtitle',
17
- body: 'Lorem ipsum dolor sit amet',
18
- screenReaderLabel: 'Lorem two'
19
+ title: (0, _formatMessage.default)('Discrimination Index'),
20
+ body: (0, _formatMessage.default)('Discrimination index assesses the ability of an item to differentiate between the highest scoring and lowest scoring individuals. It ranges from -1 to +1. A higher value suggests good discrimination while a lower index indicates poor discrimination.'),
21
+ screenReaderLabel: (0, _formatMessage.default)('Discrimination index tooltip')
19
22
  };
20
23
  exports.discriminationIndex = discriminationIndex;
21
24
  var pearsonCorrelation = {
22
- title: 'Pearson correlation title',
23
- subtitle: 'pearson correlation subtitle',
24
- body: 'Lorem ipsum dolor sit amet',
25
- screenReaderLabel: 'Lorem three'
25
+ title: (0, _formatMessage.default)('Corrected Item-Total Correlation Coefficient'),
26
+ body: (0, _formatMessage.default)('Corrected item-total correlation coefficient is a widely used discrimination index used to assess the overall relationship between individual item scores and the total score of the quiz. Values range from -1 to +1. Values greater than +.20 are considered acceptable; low and negative values indicate unexpected scoring patterns or potential miskeys. Higher value indicates that higher scores on the item are associated with higher total scores.'),
27
+ screenReaderLabel: (0, _formatMessage.default)('Corrected item-total correlation coefficient tooltip')
26
28
  };
27
29
  exports.pearsonCorrelation = pearsonCorrelation;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.cronbachsAlpha = exports.standardDeviation = void 0;
9
+
10
+ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
11
+
12
+ var standardDeviation = {
13
+ title: (0, _formatMessage.default)('Standard Deviation'),
14
+ body: (0, _formatMessage.default)('Standard deviation is a measure of the average absolute deviation of scores around the mean. A low standard deviation indicates, on average, the scores tend to be close to the mean of the set. A high value indicates, on average, scores vary widely from the mean of the data set.'),
15
+ screenReaderLabel: (0, _formatMessage.default)('Standard deviation tooltip')
16
+ };
17
+ exports.standardDeviation = standardDeviation;
18
+ var cronbachsAlpha = {
19
+ title: (0, _formatMessage.default)('Cronbach\'s Alpha'),
20
+ body: (0, _formatMessage.default)('Cronbach\'s alpha is an internal consistency measure that estimates the reliability of a quiz. Values range from 0 to 1, with higher values indicating greater reliability.'),
21
+ screenReaderLabel: (0, _formatMessage.default)('Cronbach\'s alpha tooltip')
22
+ };
23
+ exports.cronbachsAlpha = cronbachsAlpha;
@@ -41,6 +41,8 @@ var _presenter = require("../charts/ScoreDistribution/presenter.js");
41
41
 
42
42
  var _propTypes = require("../propTypes.js");
43
43
 
44
+ var _popoverContent = require("./popoverContent.js");
45
+
44
46
  var _dec, _class, _class2, _temp;
45
47
 
46
48
  var styles = {
@@ -55,18 +57,6 @@ var styles = {
55
57
  'metricGroup': 'fQZVs_dPzc',
56
58
  'metricsWrapper': 'fQZVs_cpZE'
57
59
  };
58
- var stdDevPopoverTexts = {
59
- title: 'Lorem ipsum ',
60
- subtitle: 'subtitle',
61
- body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor',
62
- screenReaderLabel: 'standard deviation tooltip'
63
- };
64
- var cronbachsAlphaPopoverTexts = {
65
- title: 'Lorem ipsum ',
66
- subtitle: 'subtitle',
67
- body: 'cronbach\'s alpha description',
68
- screenReaderLabel: 'cronbach\'s alpha tooltip'
69
- };
70
60
  var NewQuizAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
71
61
  (0, _inherits2.default)(NewQuizAnalysis, _Component);
72
62
 
@@ -102,12 +92,12 @@ var NewQuizAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
102
92
  metricKey: "stddev",
103
93
  value: _formatMessage.default.number(scores === null || scores === void 0 ? void 0 : scores.stddev),
104
94
  label: (0, _formatMessage.default)('Standard Deviation'),
105
- popoverDescription: stdDevPopoverTexts
95
+ popoverDescription: _popoverContent.standardDeviation
106
96
  }), /*#__PURE__*/_react.default.createElement(_index3.default, {
107
97
  metricKey: "cronbachs_alpha",
108
98
  value: _formatMessage.default.number(scores === null || scores === void 0 ? void 0 : scores.cronbachs_alpha),
109
99
  label: (0, _formatMessage.default)('Cronbach\'s Alpha'),
110
- popoverDescription: cronbachsAlphaPopoverTexts
100
+ popoverDescription: _popoverContent.cronbachsAlpha
111
101
  })));
112
102
  };
113
103
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "17.63.1-rc.13+2689d1535",
3
+ "version": "17.63.1-rc.14+843f5c047",
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.9",
44
- "@instructure/quiz-common": "17.63.1-rc.13+2689d1535",
45
- "@instructure/quiz-i18n": "17.63.1-rc.13+2689d1535",
46
- "@instructure/quiz-interactions": "17.63.1-rc.13+2689d1535",
47
- "@instructure/quiz-number-input": "17.63.1-rc.13+2689d1535",
48
- "@instructure/quiz-rce": "17.63.1-rc.13+2689d1535",
44
+ "@instructure/quiz-common": "17.63.1-rc.14+843f5c047",
45
+ "@instructure/quiz-i18n": "17.63.1-rc.14+843f5c047",
46
+ "@instructure/quiz-interactions": "17.63.1-rc.14+843f5c047",
47
+ "@instructure/quiz-number-input": "17.63.1-rc.14+843f5c047",
48
+ "@instructure/quiz-rce": "17.63.1-rc.14+843f5c047",
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.63.1-rc.13+2689d1535",
109
+ "instructure-validations": "17.63.1-rc.14+843f5c047",
110
110
  "ipaddr.js": "^1.5.4",
111
111
  "isomorphic-fetch": "^2.2.0",
112
112
  "isuuid": "^0.1.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.63.1-rc.13+2689d1535",
160
+ "quiz-presets": "17.63.1-rc.14+843f5c047",
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": "2689d153545ce15c011be212105bfc5aae9835db"
176
+ "gitHead": "843f5c04700dc96877b1e936110a17fe421abd4d"
177
177
  }