@instructure/quiz-core 22.16.0 → 22.16.1
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/banks/components/BankEntry/presenter.js +1 -1
- package/es/banks/components/SharingModal/presenter.js +1 -1
- package/es/common/components/ApiFeatureFlagInitializer/index.js +1 -1
- package/es/common/components/RceConfigProvider/presenter.js +1 -1
- package/es/common/components/SDKApp/index.js +16 -16
- package/es/common/components/shared/PaginatedCollection/presenter.js +1 -1
- package/es/common/components/shared/PrintTrigger/presenter.js +1 -1
- package/es/common/components/shared/spinner/Spinner.js +15 -16
- package/es/index.js +2 -2
- package/es/moderating/components/resources/ModerateTable/presenter.js +1 -1
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +1 -1
- package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +4 -4
- package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +1 -1
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +1 -1
- package/lib/banks/components/BankEntry/presenter.js +1 -1
- package/lib/banks/components/SharingModal/presenter.js +1 -1
- package/lib/common/components/ApiFeatureFlagInitializer/index.js +1 -1
- package/lib/common/components/RceConfigProvider/presenter.js +1 -1
- package/lib/common/components/SDKApp/index.js +16 -16
- package/lib/common/components/shared/PaginatedCollection/presenter.js +1 -1
- package/lib/common/components/shared/PrintTrigger/presenter.js +1 -1
- package/lib/common/components/shared/spinner/Spinner.js +15 -16
- package/lib/index.js +2 -2
- package/lib/moderating/components/resources/ModerateTable/presenter.js +1 -1
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +1 -1
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +4 -4
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +1 -1
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +1 -1
- package/package.json +8 -8
|
@@ -234,7 +234,7 @@ import ItemEdit from '../../../common/components/resources/item/ItemEdit';
|
|
|
234
234
|
import ItemFeedbackModal from '../../../building/components/resources/ItemFeedbackModal';
|
|
235
235
|
import ItemShow from '../../../common/components/resources/item/ItemShow';
|
|
236
236
|
import Page from '../../../common/components/layout/Page';
|
|
237
|
-
import Spinner from '../../../common/components/shared/spinner/Spinner';
|
|
237
|
+
import { Spinner } from '../../../common/components/shared/spinner/Spinner';
|
|
238
238
|
import StimulusEditInfo from '../../../common/components/resources/stimulus/StimulusEditInfo';
|
|
239
239
|
import StimulusShowInfo from '../../../common/components/resources/stimulus/StimulusShowInfo';
|
|
240
240
|
import TagSuggestSelect from '../../../common/components/shared/TagSuggestSelect';
|
|
@@ -228,7 +228,7 @@ import CustomPropTypes from '../../../common/util/CustomPropTypes';
|
|
|
228
228
|
import ShareList from './ShareList';
|
|
229
229
|
import AsyncSearch from '../AsyncSearch';
|
|
230
230
|
import RootAccountSharing from './RootAccountSharing';
|
|
231
|
-
import Spinner from '../../../common/components/shared/spinner/Spinner';
|
|
231
|
+
import { Spinner } from '../../../common/components/shared/spinner/Spinner';
|
|
232
232
|
import generateStyle from './styles';
|
|
233
233
|
import generateComponentTheme from './theme';
|
|
234
234
|
import t from '@instructure/quiz-i18n/format-message';
|
|
@@ -2,7 +2,7 @@ import React, { useEffect } from 'react';
|
|
|
2
2
|
import { connect } from '../../react-redux';
|
|
3
3
|
import { bool, node, func } from 'prop-types';
|
|
4
4
|
import { getFeatures } from '../../api/features';
|
|
5
|
-
import {
|
|
5
|
+
import { Spinner } from '../shared/spinner/Spinner';
|
|
6
6
|
import { Card } from '../shared/Card';
|
|
7
7
|
export var ApiFeatureFlagInitializerComponent = function(props) {
|
|
8
8
|
useEffect(function() {
|
|
@@ -219,7 +219,7 @@ function _ts_generator(thisArg, body) {
|
|
|
219
219
|
import React, { useEffect, useState } from 'react';
|
|
220
220
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
221
221
|
import PropTypes from 'prop-types';
|
|
222
|
-
import {
|
|
222
|
+
import { Spinner } from '../shared/spinner/Spinner';
|
|
223
223
|
import { Card } from '../shared/Card';
|
|
224
224
|
import { RceConfigContext } from '@instructure/quiz-common';
|
|
225
225
|
import { hasAllPropsForRcs } from './rceConfigUtils';
|
|
@@ -112,13 +112,13 @@ import ConfirmationModal from '../ConfirmationModal';
|
|
|
112
112
|
import { setupFormatMessage } from '@instructure/quiz-i18n';
|
|
113
113
|
import RceConfigProvider from '../RceConfigProvider';
|
|
114
114
|
import { ApiFeatureFlagInitializer } from '../ApiFeatureFlagInitializer';
|
|
115
|
-
|
|
115
|
+
var UndecoratedSDKApp = /*#__PURE__*/ function(Component) {
|
|
116
116
|
"use strict";
|
|
117
|
-
_inherits(
|
|
118
|
-
function
|
|
119
|
-
_class_call_check(this,
|
|
117
|
+
_inherits(UndecoratedSDKApp, Component);
|
|
118
|
+
function UndecoratedSDKApp(props) {
|
|
119
|
+
_class_call_check(this, UndecoratedSDKApp);
|
|
120
120
|
var _this;
|
|
121
|
-
_this = _call_super(this,
|
|
121
|
+
_this = _call_super(this, UndecoratedSDKApp, [
|
|
122
122
|
props
|
|
123
123
|
]), _define_property(_this, "addAlert", function(opts) {
|
|
124
124
|
_this.store.dispatch(addAlert(opts));
|
|
@@ -130,7 +130,7 @@ export var SDKApp = /*#__PURE__*/ function(Component) {
|
|
|
130
130
|
_this.setLocale();
|
|
131
131
|
return _this;
|
|
132
132
|
}
|
|
133
|
-
_create_class(
|
|
133
|
+
_create_class(UndecoratedSDKApp, [
|
|
134
134
|
{
|
|
135
135
|
key: "setLocale",
|
|
136
136
|
value: function setLocale() {
|
|
@@ -236,11 +236,11 @@ export var SDKApp = /*#__PURE__*/ function(Component) {
|
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
]);
|
|
239
|
-
return
|
|
239
|
+
return UndecoratedSDKApp;
|
|
240
240
|
}(Component);
|
|
241
|
-
_define_property(
|
|
242
|
-
_define_property(
|
|
243
|
-
_define_property(
|
|
241
|
+
_define_property(UndecoratedSDKApp, "displayName", 'SDKApp');
|
|
242
|
+
_define_property(UndecoratedSDKApp, "componentId", "Quizzes".concat(UndecoratedSDKApp.displayName));
|
|
243
|
+
_define_property(UndecoratedSDKApp, "propTypes", {
|
|
244
244
|
apiEndpoint: PropTypes.string.isRequired,
|
|
245
245
|
appContainer: CustomPropTypes.selectors.isRequired,
|
|
246
246
|
children: PropTypes.oneOfType([
|
|
@@ -274,10 +274,10 @@ _define_property(SDKApp, "propTypes", {
|
|
|
274
274
|
disableAlertLiveRegion: PropTypes.bool,
|
|
275
275
|
styles: PropTypes.object
|
|
276
276
|
});
|
|
277
|
-
_define_property(
|
|
277
|
+
_define_property(UndecoratedSDKApp, "contextTypes", {
|
|
278
278
|
locale: PropTypes.string
|
|
279
279
|
});
|
|
280
|
-
_define_property(
|
|
280
|
+
_define_property(UndecoratedSDKApp, "defaultProps", {
|
|
281
281
|
contextUuid: '',
|
|
282
282
|
externalAccountUuid: '',
|
|
283
283
|
gradeByQuestionEnabled: null,
|
|
@@ -290,8 +290,8 @@ _define_property(SDKApp, "defaultProps", {
|
|
|
290
290
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
291
291
|
disableAlertLiveRegion: false
|
|
292
292
|
});
|
|
293
|
-
|
|
293
|
+
UndecoratedSDKApp = _ts_decorate([
|
|
294
294
|
withStyleOverrides(generateStyle, null)
|
|
295
|
-
],
|
|
296
|
-
export var
|
|
297
|
-
export default
|
|
295
|
+
], UndecoratedSDKApp);
|
|
296
|
+
export var SDKApp = DragDropContext(HTML5Backend)(UndecoratedSDKApp);
|
|
297
|
+
export default SDKApp;
|
|
@@ -216,7 +216,7 @@ import PropTypes from 'prop-types';
|
|
|
216
216
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
217
217
|
import { jsx } from '@instructure/emotion';
|
|
218
218
|
import Paginator from '../Paginator';
|
|
219
|
-
import Spinner from '../spinner/Spinner';
|
|
219
|
+
import { Spinner } from '../spinner/Spinner';
|
|
220
220
|
/**
|
|
221
221
|
* Renders pagination controls and manages state of page contents. `getPage`
|
|
222
222
|
* will be called with the page number and any collection parameters, and should
|
|
@@ -113,7 +113,7 @@ import React, { Component } from 'react';
|
|
|
113
113
|
import PropTypes from 'prop-types';
|
|
114
114
|
import { Overlay, Mask } from '@instructure/ui-overlays';
|
|
115
115
|
import t from '@instructure/quiz-i18n/format-message';
|
|
116
|
-
import {
|
|
116
|
+
import { Spinner } from '../spinner/Spinner';
|
|
117
117
|
import CustomPropTypes from '../../../util/CustomPropTypes';
|
|
118
118
|
import { printWithCss, ensureImagesLoaded } from '../../../util/printUtils';
|
|
119
119
|
import PrintFontSizeModal from '../../PrintFontSizeModal';
|
|
@@ -93,19 +93,19 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
93
93
|
import { Component } from 'react';
|
|
94
94
|
import PropTypes from 'prop-types';
|
|
95
95
|
import { Text } from '@instructure/ui-text';
|
|
96
|
-
import { Spinner } from '@instructure/ui-spinner';
|
|
96
|
+
import { Spinner as InstUISpinner } from '@instructure/ui-spinner';
|
|
97
97
|
import { PresentationContent } from '@instructure/ui-a11y-content';
|
|
98
98
|
import { jsx } from '@instructure/emotion';
|
|
99
99
|
import t from '@instructure/quiz-i18n/format-message';
|
|
100
100
|
import generateStyle from './styles';
|
|
101
101
|
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
102
|
-
export var
|
|
102
|
+
export var Spinner = /*#__PURE__*/ function(Component) {
|
|
103
103
|
"use strict";
|
|
104
|
-
_inherits(
|
|
105
|
-
function
|
|
106
|
-
_class_call_check(this,
|
|
104
|
+
_inherits(Spinner, Component);
|
|
105
|
+
function Spinner(props) {
|
|
106
|
+
_class_call_check(this, Spinner);
|
|
107
107
|
var _this;
|
|
108
|
-
_this = _call_super(this,
|
|
108
|
+
_this = _call_super(this, Spinner, [
|
|
109
109
|
props
|
|
110
110
|
]);
|
|
111
111
|
_this.state = {
|
|
@@ -113,7 +113,7 @@ export var QuizzesSpinner = /*#__PURE__*/ function(Component) {
|
|
|
113
113
|
};
|
|
114
114
|
return _this;
|
|
115
115
|
}
|
|
116
|
-
_create_class(
|
|
116
|
+
_create_class(Spinner, [
|
|
117
117
|
{
|
|
118
118
|
key: "componentDidMount",
|
|
119
119
|
value: function componentDidMount() {
|
|
@@ -156,18 +156,18 @@ export var QuizzesSpinner = /*#__PURE__*/ function(Component) {
|
|
|
156
156
|
style: {
|
|
157
157
|
minHeight: minHeight
|
|
158
158
|
}
|
|
159
|
-
}, /*#__PURE__*/ jsx("div", null, /*#__PURE__*/ jsx(
|
|
159
|
+
}, /*#__PURE__*/ jsx("div", null, /*#__PURE__*/ jsx(InstUISpinner, {
|
|
160
160
|
renderTitle: this.mainText(),
|
|
161
161
|
size: size
|
|
162
162
|
})), /*#__PURE__*/ jsx("div", null, /*#__PURE__*/ jsx(PresentationContent, null, this.mainText())));
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
]);
|
|
166
|
-
return
|
|
166
|
+
return Spinner;
|
|
167
167
|
}(Component);
|
|
168
|
-
_define_property(
|
|
169
|
-
_define_property(
|
|
170
|
-
_define_property(
|
|
168
|
+
_define_property(Spinner, "displayName", 'QuizzesSpinner');
|
|
169
|
+
_define_property(Spinner, "componentId", "Quizzes".concat(Spinner.displayName));
|
|
170
|
+
_define_property(Spinner, "propTypes", {
|
|
171
171
|
mainText: PropTypes.string,
|
|
172
172
|
fontSize: PropTypes.oneOf([
|
|
173
173
|
'x-small',
|
|
@@ -188,14 +188,13 @@ _define_property(QuizzesSpinner, "propTypes", {
|
|
|
188
188
|
styles: PropTypes.object,
|
|
189
189
|
delay: PropTypes.number
|
|
190
190
|
});
|
|
191
|
-
_define_property(
|
|
191
|
+
_define_property(Spinner, "defaultProps", {
|
|
192
192
|
mainText: null,
|
|
193
193
|
size: 'large',
|
|
194
194
|
fontSize: 'xx-large',
|
|
195
195
|
minHeight: '500px',
|
|
196
196
|
color: 'primary'
|
|
197
197
|
});
|
|
198
|
-
|
|
198
|
+
Spinner = _ts_decorate([
|
|
199
199
|
withStyleOverrides(generateStyle, null)
|
|
200
|
-
],
|
|
201
|
-
export default QuizzesSpinner;
|
|
200
|
+
], Spinner);
|
package/es/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* These exports are for other packages to use.
|
|
6
6
|
* We should look into configuring an import/no-restricted-paths eslint rule to prevent this.
|
|
7
7
|
*/ // Components
|
|
8
|
-
export {
|
|
8
|
+
export { SDKApp } from './common/components/SDKApp';
|
|
9
9
|
export { TimingAlerts } from './common/components/TimingAlerts';
|
|
10
10
|
export { ModerateTable } from './moderating/components/resources/ModerateTable';
|
|
11
11
|
export { Calculator } from './common/components/layout/header/Calculator/index';
|
|
@@ -27,7 +27,7 @@ export { ExtraTimeSettings } from './moderating/components/resources/Accommodati
|
|
|
27
27
|
export { ReduceAnswerChoicesSettings } from './moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings';
|
|
28
28
|
export { PreviewFrame } from './common/components/PreviewFrame';
|
|
29
29
|
export { SDKHeaderCalculator } from './common/components/SDKHeaderCalculator';
|
|
30
|
-
export {
|
|
30
|
+
export { Spinner } from './common/components/shared/spinner/Spinner';
|
|
31
31
|
export { PrintTrigger } from './common/components/shared/PrintTrigger';
|
|
32
32
|
export { IfFeature } from './common/components/shared/IfFeature';
|
|
33
33
|
export { UndecoratedQuizEntryEdit } from './building/components/resources/quizEntry/QuizEntryEdit/presenter';
|
|
@@ -130,7 +130,7 @@ import ModerateTableRow from '../ModerateTableRow';
|
|
|
130
130
|
import IfFeature from '../../../../common/components/shared/IfFeature';
|
|
131
131
|
import OutstandingQuizzesModal from '../OutstandingQuizzesModal';
|
|
132
132
|
import ModerateTray from '../../sidebar/ModerateTray';
|
|
133
|
-
import Spinner from '../../../../common/components/shared/spinner/Spinner';
|
|
133
|
+
import { Spinner } from '../../../../common/components/shared/spinner/Spinner';
|
|
134
134
|
import generateStyle from './styles';
|
|
135
135
|
import generateComponentTheme from './theme';
|
|
136
136
|
import ResetQuiz from '../../sidebar/ResetQuiz';
|
|
@@ -101,7 +101,7 @@ import { jsx } from '@instructure/emotion';
|
|
|
101
101
|
import { RichContentRenderer } from '@instructure/quiz-rce';
|
|
102
102
|
import Card from '../../../../common/components/shared/Card';
|
|
103
103
|
import ExpandButton from '../../../../common/components/shared/ExpandButton';
|
|
104
|
-
import Spinner from '../../../../common/components/shared/spinner/Spinner';
|
|
104
|
+
import { Spinner } from '../../../../common/components/shared/spinner/Spinner';
|
|
105
105
|
import AnswerFrequencySummary from '../AnswerFrequencySummary';
|
|
106
106
|
import QuintileDistribution from '../../charts/QuintileDistribution';
|
|
107
107
|
import Legend from '../../charts/Legend';
|
|
@@ -100,7 +100,7 @@ import { jsx } from '@instructure/emotion';
|
|
|
100
100
|
import FormattedDuration from '../../../common/components/shared/FormattedDuration';
|
|
101
101
|
import t from '@instructure/quiz-i18n/format-message';
|
|
102
102
|
import Card from '../../../common/components/shared/Card';
|
|
103
|
-
import Spinner from '../../../common/components/shared/spinner/Spinner';
|
|
103
|
+
import { Spinner } from '../../../common/components/shared/spinner/Spinner';
|
|
104
104
|
import CentileDistribution from '../charts/CentileDistribution';
|
|
105
105
|
import MetricsListItem from '../MetricsListItem';
|
|
106
106
|
import generateStyle from './styles';
|
|
@@ -101,7 +101,7 @@ import Card from '../../../../../common/components/shared/Card';
|
|
|
101
101
|
import generateStyle from './styles';
|
|
102
102
|
import generateComponentTheme from './theme';
|
|
103
103
|
import AnalysisMetric from '../AnalysisMetric';
|
|
104
|
-
import Spinner from '../../../../../common/components/shared/spinner/Spinner';
|
|
104
|
+
import { Spinner } from '../../../../../common/components/shared/spinner/Spinner';
|
|
105
105
|
import { AnalysisUpdateDate } from '../../common/AnalysisUpdateDate';
|
|
106
106
|
import { itemAnalysisPropType, quizAnalysisPropType } from '../../common/propTypes';
|
|
107
107
|
import { csvFormat } from '../exportFormats';
|
|
@@ -98,8 +98,8 @@ import t from '@instructure/quiz-i18n/format-message';
|
|
|
98
98
|
import { AnalysisUpdateDate } from '../common/AnalysisUpdateDate';
|
|
99
99
|
import { itemAnalysisPropType, quizAnalysisPropType } from '../common/propTypes';
|
|
100
100
|
import PropTypes from 'prop-types';
|
|
101
|
-
import {
|
|
102
|
-
import { Spinner } from '@instructure/ui-spinner';
|
|
101
|
+
import { Spinner } from '../../../../common/components/shared/spinner/Spinner';
|
|
102
|
+
import { Spinner as InstUISpinner } from '@instructure/ui-spinner';
|
|
103
103
|
import { Button } from '@instructure/ui-buttons';
|
|
104
104
|
import { Text } from '@instructure/ui-text';
|
|
105
105
|
import { getFailedToFetchReports } from '../common/errorMessages';
|
|
@@ -137,7 +137,7 @@ export var NewQuizAndItemAnalysisPresenter = /*#__PURE__*/ function(Component) {
|
|
|
137
137
|
padding: "medium",
|
|
138
138
|
justifyItems: "center",
|
|
139
139
|
alignItems: "center"
|
|
140
|
-
}, /*#__PURE__*/ jsx(
|
|
140
|
+
}, /*#__PURE__*/ jsx(InstUISpinner, {
|
|
141
141
|
renderTitle: t('Loading item analyses data')
|
|
142
142
|
}));
|
|
143
143
|
}), _define_property(_this, "renderBodyOnFailedFetch", function() {
|
|
@@ -255,7 +255,7 @@ export var NewQuizAndItemAnalysisPresenter = /*#__PURE__*/ function(Component) {
|
|
|
255
255
|
color: "primary-inverse",
|
|
256
256
|
interaction: "disabled",
|
|
257
257
|
margin: "auto"
|
|
258
|
-
}, /*#__PURE__*/ jsx(
|
|
258
|
+
}, /*#__PURE__*/ jsx(Spinner, {
|
|
259
259
|
size: "x-small",
|
|
260
260
|
color: "brand",
|
|
261
261
|
minHeight: "0",
|
|
@@ -97,7 +97,7 @@ import { Heading } from '@instructure/ui-heading';
|
|
|
97
97
|
import { jsx } from '@instructure/emotion';
|
|
98
98
|
import t from '@instructure/quiz-i18n/format-message';
|
|
99
99
|
import { withI18nSupport, withStyleOverrides } from '@instructure/quiz-common';
|
|
100
|
-
import Spinner from '../../../../common/components/shared/spinner/Spinner';
|
|
100
|
+
import { Spinner } from '../../../../common/components/shared/spinner/Spinner';
|
|
101
101
|
import Card from '../../../../common/components/shared/Card';
|
|
102
102
|
import FormattedDuration from '../../../../common/components/shared/FormattedDuration';
|
|
103
103
|
import ItemAnalysisRow from '../../../../reporting/components/itemAnalysis/ItemAnalysisRow';
|
|
@@ -99,7 +99,7 @@ import Card from '../../../../../common/components/shared/Card';
|
|
|
99
99
|
import { generateStyle } from './styles';
|
|
100
100
|
import { generateComponentTheme } from './theme';
|
|
101
101
|
import { ExportButton } from '../../common/ExportButton';
|
|
102
|
-
import Spinner from '../../../../../common/components/shared/spinner/Spinner';
|
|
102
|
+
import { Spinner } from '../../../../../common/components/shared/spinner/Spinner';
|
|
103
103
|
import { Flex, STUDENT_ANALYSES, withStyleOverrides } from '@instructure/quiz-common';
|
|
104
104
|
import { AnalysisUpdateDate } from '../../common/AnalysisUpdateDate';
|
|
105
105
|
export var StudentAnalysisReportCardPresenter = /*#__PURE__*/ function(Component) {
|
|
@@ -234,7 +234,7 @@ import ItemEdit from '../../../common/components/resources/item/ItemEdit';
|
|
|
234
234
|
import ItemFeedbackModal from '../../../building/components/resources/ItemFeedbackModal';
|
|
235
235
|
import ItemShow from '../../../common/components/resources/item/ItemShow';
|
|
236
236
|
import Page from '../../../common/components/layout/Page';
|
|
237
|
-
import Spinner from '../../../common/components/shared/spinner/Spinner';
|
|
237
|
+
import { Spinner } from '../../../common/components/shared/spinner/Spinner';
|
|
238
238
|
import StimulusEditInfo from '../../../common/components/resources/stimulus/StimulusEditInfo';
|
|
239
239
|
import StimulusShowInfo from '../../../common/components/resources/stimulus/StimulusShowInfo';
|
|
240
240
|
import TagSuggestSelect from '../../../common/components/shared/TagSuggestSelect';
|
|
@@ -228,7 +228,7 @@ import CustomPropTypes from '../../../common/util/CustomPropTypes';
|
|
|
228
228
|
import ShareList from './ShareList';
|
|
229
229
|
import AsyncSearch from '../AsyncSearch';
|
|
230
230
|
import RootAccountSharing from './RootAccountSharing';
|
|
231
|
-
import Spinner from '../../../common/components/shared/spinner/Spinner';
|
|
231
|
+
import { Spinner } from '../../../common/components/shared/spinner/Spinner';
|
|
232
232
|
import generateStyle from './styles';
|
|
233
233
|
import generateComponentTheme from './theme';
|
|
234
234
|
import t from '@instructure/quiz-i18n/format-message';
|
|
@@ -2,7 +2,7 @@ import React, { useEffect } from 'react';
|
|
|
2
2
|
import { connect } from '../../react-redux';
|
|
3
3
|
import { bool, node, func } from 'prop-types';
|
|
4
4
|
import { getFeatures } from '../../api/features';
|
|
5
|
-
import {
|
|
5
|
+
import { Spinner } from '../shared/spinner/Spinner';
|
|
6
6
|
import { Card } from '../shared/Card';
|
|
7
7
|
export var ApiFeatureFlagInitializerComponent = function(props) {
|
|
8
8
|
useEffect(function() {
|
|
@@ -219,7 +219,7 @@ function _ts_generator(thisArg, body) {
|
|
|
219
219
|
import React, { useEffect, useState } from 'react';
|
|
220
220
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
221
221
|
import PropTypes from 'prop-types';
|
|
222
|
-
import {
|
|
222
|
+
import { Spinner } from '../shared/spinner/Spinner';
|
|
223
223
|
import { Card } from '../shared/Card';
|
|
224
224
|
import { RceConfigContext } from '@instructure/quiz-common';
|
|
225
225
|
import { hasAllPropsForRcs } from './rceConfigUtils';
|
|
@@ -112,13 +112,13 @@ import ConfirmationModal from '../ConfirmationModal';
|
|
|
112
112
|
import { setupFormatMessage } from '@instructure/quiz-i18n';
|
|
113
113
|
import RceConfigProvider from '../RceConfigProvider';
|
|
114
114
|
import { ApiFeatureFlagInitializer } from '../ApiFeatureFlagInitializer';
|
|
115
|
-
|
|
115
|
+
var UndecoratedSDKApp = /*#__PURE__*/ function(Component) {
|
|
116
116
|
"use strict";
|
|
117
|
-
_inherits(
|
|
118
|
-
function
|
|
119
|
-
_class_call_check(this,
|
|
117
|
+
_inherits(UndecoratedSDKApp, Component);
|
|
118
|
+
function UndecoratedSDKApp(props) {
|
|
119
|
+
_class_call_check(this, UndecoratedSDKApp);
|
|
120
120
|
var _this;
|
|
121
|
-
_this = _call_super(this,
|
|
121
|
+
_this = _call_super(this, UndecoratedSDKApp, [
|
|
122
122
|
props
|
|
123
123
|
]), _define_property(_this, "addAlert", function(opts) {
|
|
124
124
|
_this.store.dispatch(addAlert(opts));
|
|
@@ -130,7 +130,7 @@ export var SDKApp = /*#__PURE__*/ function(Component) {
|
|
|
130
130
|
_this.setLocale();
|
|
131
131
|
return _this;
|
|
132
132
|
}
|
|
133
|
-
_create_class(
|
|
133
|
+
_create_class(UndecoratedSDKApp, [
|
|
134
134
|
{
|
|
135
135
|
key: "setLocale",
|
|
136
136
|
value: function setLocale() {
|
|
@@ -236,11 +236,11 @@ export var SDKApp = /*#__PURE__*/ function(Component) {
|
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
]);
|
|
239
|
-
return
|
|
239
|
+
return UndecoratedSDKApp;
|
|
240
240
|
}(Component);
|
|
241
|
-
_define_property(
|
|
242
|
-
_define_property(
|
|
243
|
-
_define_property(
|
|
241
|
+
_define_property(UndecoratedSDKApp, "displayName", 'SDKApp');
|
|
242
|
+
_define_property(UndecoratedSDKApp, "componentId", "Quizzes".concat(UndecoratedSDKApp.displayName));
|
|
243
|
+
_define_property(UndecoratedSDKApp, "propTypes", {
|
|
244
244
|
apiEndpoint: PropTypes.string.isRequired,
|
|
245
245
|
appContainer: CustomPropTypes.selectors.isRequired,
|
|
246
246
|
children: PropTypes.oneOfType([
|
|
@@ -274,10 +274,10 @@ _define_property(SDKApp, "propTypes", {
|
|
|
274
274
|
disableAlertLiveRegion: PropTypes.bool,
|
|
275
275
|
styles: PropTypes.object
|
|
276
276
|
});
|
|
277
|
-
_define_property(
|
|
277
|
+
_define_property(UndecoratedSDKApp, "contextTypes", {
|
|
278
278
|
locale: PropTypes.string
|
|
279
279
|
});
|
|
280
|
-
_define_property(
|
|
280
|
+
_define_property(UndecoratedSDKApp, "defaultProps", {
|
|
281
281
|
contextUuid: '',
|
|
282
282
|
externalAccountUuid: '',
|
|
283
283
|
gradeByQuestionEnabled: null,
|
|
@@ -290,8 +290,8 @@ _define_property(SDKApp, "defaultProps", {
|
|
|
290
290
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
291
291
|
disableAlertLiveRegion: false
|
|
292
292
|
});
|
|
293
|
-
|
|
293
|
+
UndecoratedSDKApp = _ts_decorate([
|
|
294
294
|
withStyleOverrides(generateStyle, null)
|
|
295
|
-
],
|
|
296
|
-
export var
|
|
297
|
-
export default
|
|
295
|
+
], UndecoratedSDKApp);
|
|
296
|
+
export var SDKApp = DragDropContext(HTML5Backend)(UndecoratedSDKApp);
|
|
297
|
+
export default SDKApp;
|
|
@@ -216,7 +216,7 @@ import PropTypes from 'prop-types';
|
|
|
216
216
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
217
217
|
import { jsx } from '@instructure/emotion';
|
|
218
218
|
import Paginator from '../Paginator';
|
|
219
|
-
import Spinner from '../spinner/Spinner';
|
|
219
|
+
import { Spinner } from '../spinner/Spinner';
|
|
220
220
|
/**
|
|
221
221
|
* Renders pagination controls and manages state of page contents. `getPage`
|
|
222
222
|
* will be called with the page number and any collection parameters, and should
|
|
@@ -113,7 +113,7 @@ import React, { Component } from 'react';
|
|
|
113
113
|
import PropTypes from 'prop-types';
|
|
114
114
|
import { Overlay, Mask } from '@instructure/ui-overlays';
|
|
115
115
|
import t from '@instructure/quiz-i18n/format-message';
|
|
116
|
-
import {
|
|
116
|
+
import { Spinner } from '../spinner/Spinner';
|
|
117
117
|
import CustomPropTypes from '../../../util/CustomPropTypes';
|
|
118
118
|
import { printWithCss, ensureImagesLoaded } from '../../../util/printUtils';
|
|
119
119
|
import PrintFontSizeModal from '../../PrintFontSizeModal';
|
|
@@ -93,19 +93,19 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
93
93
|
import { Component } from 'react';
|
|
94
94
|
import PropTypes from 'prop-types';
|
|
95
95
|
import { Text } from '@instructure/ui-text';
|
|
96
|
-
import { Spinner } from '@instructure/ui-spinner';
|
|
96
|
+
import { Spinner as InstUISpinner } from '@instructure/ui-spinner';
|
|
97
97
|
import { PresentationContent } from '@instructure/ui-a11y-content';
|
|
98
98
|
import { jsx } from '@instructure/emotion';
|
|
99
99
|
import t from '@instructure/quiz-i18n/format-message';
|
|
100
100
|
import generateStyle from './styles';
|
|
101
101
|
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
102
|
-
export var
|
|
102
|
+
export var Spinner = /*#__PURE__*/ function(Component) {
|
|
103
103
|
"use strict";
|
|
104
|
-
_inherits(
|
|
105
|
-
function
|
|
106
|
-
_class_call_check(this,
|
|
104
|
+
_inherits(Spinner, Component);
|
|
105
|
+
function Spinner(props) {
|
|
106
|
+
_class_call_check(this, Spinner);
|
|
107
107
|
var _this;
|
|
108
|
-
_this = _call_super(this,
|
|
108
|
+
_this = _call_super(this, Spinner, [
|
|
109
109
|
props
|
|
110
110
|
]);
|
|
111
111
|
_this.state = {
|
|
@@ -113,7 +113,7 @@ export var QuizzesSpinner = /*#__PURE__*/ function(Component) {
|
|
|
113
113
|
};
|
|
114
114
|
return _this;
|
|
115
115
|
}
|
|
116
|
-
_create_class(
|
|
116
|
+
_create_class(Spinner, [
|
|
117
117
|
{
|
|
118
118
|
key: "componentDidMount",
|
|
119
119
|
value: function componentDidMount() {
|
|
@@ -156,18 +156,18 @@ export var QuizzesSpinner = /*#__PURE__*/ function(Component) {
|
|
|
156
156
|
style: {
|
|
157
157
|
minHeight: minHeight
|
|
158
158
|
}
|
|
159
|
-
}, /*#__PURE__*/ jsx("div", null, /*#__PURE__*/ jsx(
|
|
159
|
+
}, /*#__PURE__*/ jsx("div", null, /*#__PURE__*/ jsx(InstUISpinner, {
|
|
160
160
|
renderTitle: this.mainText(),
|
|
161
161
|
size: size
|
|
162
162
|
})), /*#__PURE__*/ jsx("div", null, /*#__PURE__*/ jsx(PresentationContent, null, this.mainText())));
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
]);
|
|
166
|
-
return
|
|
166
|
+
return Spinner;
|
|
167
167
|
}(Component);
|
|
168
|
-
_define_property(
|
|
169
|
-
_define_property(
|
|
170
|
-
_define_property(
|
|
168
|
+
_define_property(Spinner, "displayName", 'QuizzesSpinner');
|
|
169
|
+
_define_property(Spinner, "componentId", "Quizzes".concat(Spinner.displayName));
|
|
170
|
+
_define_property(Spinner, "propTypes", {
|
|
171
171
|
mainText: PropTypes.string,
|
|
172
172
|
fontSize: PropTypes.oneOf([
|
|
173
173
|
'x-small',
|
|
@@ -188,14 +188,13 @@ _define_property(QuizzesSpinner, "propTypes", {
|
|
|
188
188
|
styles: PropTypes.object,
|
|
189
189
|
delay: PropTypes.number
|
|
190
190
|
});
|
|
191
|
-
_define_property(
|
|
191
|
+
_define_property(Spinner, "defaultProps", {
|
|
192
192
|
mainText: null,
|
|
193
193
|
size: 'large',
|
|
194
194
|
fontSize: 'xx-large',
|
|
195
195
|
minHeight: '500px',
|
|
196
196
|
color: 'primary'
|
|
197
197
|
});
|
|
198
|
-
|
|
198
|
+
Spinner = _ts_decorate([
|
|
199
199
|
withStyleOverrides(generateStyle, null)
|
|
200
|
-
],
|
|
201
|
-
export default QuizzesSpinner;
|
|
200
|
+
], Spinner);
|
package/lib/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* These exports are for other packages to use.
|
|
6
6
|
* We should look into configuring an import/no-restricted-paths eslint rule to prevent this.
|
|
7
7
|
*/ // Components
|
|
8
|
-
export {
|
|
8
|
+
export { SDKApp } from './common/components/SDKApp';
|
|
9
9
|
export { TimingAlerts } from './common/components/TimingAlerts';
|
|
10
10
|
export { ModerateTable } from './moderating/components/resources/ModerateTable';
|
|
11
11
|
export { Calculator } from './common/components/layout/header/Calculator/index';
|
|
@@ -27,7 +27,7 @@ export { ExtraTimeSettings } from './moderating/components/resources/Accommodati
|
|
|
27
27
|
export { ReduceAnswerChoicesSettings } from './moderating/components/resources/AccommodationsModal/ReduceAnswerChoicesSettings';
|
|
28
28
|
export { PreviewFrame } from './common/components/PreviewFrame';
|
|
29
29
|
export { SDKHeaderCalculator } from './common/components/SDKHeaderCalculator';
|
|
30
|
-
export {
|
|
30
|
+
export { Spinner } from './common/components/shared/spinner/Spinner';
|
|
31
31
|
export { PrintTrigger } from './common/components/shared/PrintTrigger';
|
|
32
32
|
export { IfFeature } from './common/components/shared/IfFeature';
|
|
33
33
|
export { UndecoratedQuizEntryEdit } from './building/components/resources/quizEntry/QuizEntryEdit/presenter';
|
|
@@ -130,7 +130,7 @@ import ModerateTableRow from '../ModerateTableRow';
|
|
|
130
130
|
import IfFeature from '../../../../common/components/shared/IfFeature';
|
|
131
131
|
import OutstandingQuizzesModal from '../OutstandingQuizzesModal';
|
|
132
132
|
import ModerateTray from '../../sidebar/ModerateTray';
|
|
133
|
-
import Spinner from '../../../../common/components/shared/spinner/Spinner';
|
|
133
|
+
import { Spinner } from '../../../../common/components/shared/spinner/Spinner';
|
|
134
134
|
import generateStyle from './styles';
|
|
135
135
|
import generateComponentTheme from './theme';
|
|
136
136
|
import ResetQuiz from '../../sidebar/ResetQuiz';
|
|
@@ -101,7 +101,7 @@ import { jsx } from '@instructure/emotion';
|
|
|
101
101
|
import { RichContentRenderer } from '@instructure/quiz-rce';
|
|
102
102
|
import Card from '../../../../common/components/shared/Card';
|
|
103
103
|
import ExpandButton from '../../../../common/components/shared/ExpandButton';
|
|
104
|
-
import Spinner from '../../../../common/components/shared/spinner/Spinner';
|
|
104
|
+
import { Spinner } from '../../../../common/components/shared/spinner/Spinner';
|
|
105
105
|
import AnswerFrequencySummary from '../AnswerFrequencySummary';
|
|
106
106
|
import QuintileDistribution from '../../charts/QuintileDistribution';
|
|
107
107
|
import Legend from '../../charts/Legend';
|
|
@@ -100,7 +100,7 @@ import { jsx } from '@instructure/emotion';
|
|
|
100
100
|
import FormattedDuration from '../../../common/components/shared/FormattedDuration';
|
|
101
101
|
import t from '@instructure/quiz-i18n/format-message';
|
|
102
102
|
import Card from '../../../common/components/shared/Card';
|
|
103
|
-
import Spinner from '../../../common/components/shared/spinner/Spinner';
|
|
103
|
+
import { Spinner } from '../../../common/components/shared/spinner/Spinner';
|
|
104
104
|
import CentileDistribution from '../charts/CentileDistribution';
|
|
105
105
|
import MetricsListItem from '../MetricsListItem';
|
|
106
106
|
import generateStyle from './styles';
|
|
@@ -101,7 +101,7 @@ import Card from '../../../../../common/components/shared/Card';
|
|
|
101
101
|
import generateStyle from './styles';
|
|
102
102
|
import generateComponentTheme from './theme';
|
|
103
103
|
import AnalysisMetric from '../AnalysisMetric';
|
|
104
|
-
import Spinner from '../../../../../common/components/shared/spinner/Spinner';
|
|
104
|
+
import { Spinner } from '../../../../../common/components/shared/spinner/Spinner';
|
|
105
105
|
import { AnalysisUpdateDate } from '../../common/AnalysisUpdateDate';
|
|
106
106
|
import { itemAnalysisPropType, quizAnalysisPropType } from '../../common/propTypes';
|
|
107
107
|
import { csvFormat } from '../exportFormats';
|
|
@@ -98,8 +98,8 @@ import t from '@instructure/quiz-i18n/format-message';
|
|
|
98
98
|
import { AnalysisUpdateDate } from '../common/AnalysisUpdateDate';
|
|
99
99
|
import { itemAnalysisPropType, quizAnalysisPropType } from '../common/propTypes';
|
|
100
100
|
import PropTypes from 'prop-types';
|
|
101
|
-
import {
|
|
102
|
-
import { Spinner } from '@instructure/ui-spinner';
|
|
101
|
+
import { Spinner } from '../../../../common/components/shared/spinner/Spinner';
|
|
102
|
+
import { Spinner as InstUISpinner } from '@instructure/ui-spinner';
|
|
103
103
|
import { Button } from '@instructure/ui-buttons';
|
|
104
104
|
import { Text } from '@instructure/ui-text';
|
|
105
105
|
import { getFailedToFetchReports } from '../common/errorMessages';
|
|
@@ -137,7 +137,7 @@ export var NewQuizAndItemAnalysisPresenter = /*#__PURE__*/ function(Component) {
|
|
|
137
137
|
padding: "medium",
|
|
138
138
|
justifyItems: "center",
|
|
139
139
|
alignItems: "center"
|
|
140
|
-
}, /*#__PURE__*/ jsx(
|
|
140
|
+
}, /*#__PURE__*/ jsx(InstUISpinner, {
|
|
141
141
|
renderTitle: t('Loading item analyses data')
|
|
142
142
|
}));
|
|
143
143
|
}), _define_property(_this, "renderBodyOnFailedFetch", function() {
|
|
@@ -255,7 +255,7 @@ export var NewQuizAndItemAnalysisPresenter = /*#__PURE__*/ function(Component) {
|
|
|
255
255
|
color: "primary-inverse",
|
|
256
256
|
interaction: "disabled",
|
|
257
257
|
margin: "auto"
|
|
258
|
-
}, /*#__PURE__*/ jsx(
|
|
258
|
+
}, /*#__PURE__*/ jsx(Spinner, {
|
|
259
259
|
size: "x-small",
|
|
260
260
|
color: "brand",
|
|
261
261
|
minHeight: "0",
|
|
@@ -97,7 +97,7 @@ import { Heading } from '@instructure/ui-heading';
|
|
|
97
97
|
import { jsx } from '@instructure/emotion';
|
|
98
98
|
import t from '@instructure/quiz-i18n/format-message';
|
|
99
99
|
import { withI18nSupport, withStyleOverrides } from '@instructure/quiz-common';
|
|
100
|
-
import Spinner from '../../../../common/components/shared/spinner/Spinner';
|
|
100
|
+
import { Spinner } from '../../../../common/components/shared/spinner/Spinner';
|
|
101
101
|
import Card from '../../../../common/components/shared/Card';
|
|
102
102
|
import FormattedDuration from '../../../../common/components/shared/FormattedDuration';
|
|
103
103
|
import ItemAnalysisRow from '../../../../reporting/components/itemAnalysis/ItemAnalysisRow';
|
|
@@ -99,7 +99,7 @@ import Card from '../../../../../common/components/shared/Card';
|
|
|
99
99
|
import { generateStyle } from './styles';
|
|
100
100
|
import { generateComponentTheme } from './theme';
|
|
101
101
|
import { ExportButton } from '../../common/ExportButton';
|
|
102
|
-
import Spinner from '../../../../../common/components/shared/spinner/Spinner';
|
|
102
|
+
import { Spinner } from '../../../../../common/components/shared/spinner/Spinner';
|
|
103
103
|
import { Flex, STUDENT_ANALYSES, withStyleOverrides } from '@instructure/quiz-common';
|
|
104
104
|
import { AnalysisUpdateDate } from '../../common/AnalysisUpdateDate';
|
|
105
105
|
export var StudentAnalysisReportCardPresenter = /*#__PURE__*/ function(Component) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "22.16.
|
|
3
|
+
"version": "22.16.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -121,12 +121,12 @@
|
|
|
121
121
|
"store": "^1.3.20",
|
|
122
122
|
"striptags": "^2.0.0",
|
|
123
123
|
"uuid": "^3.2.1",
|
|
124
|
-
"@instructure/quiz-common": "22.16.
|
|
125
|
-
"@instructure/quiz-
|
|
126
|
-
"@instructure/quiz-
|
|
127
|
-
"@instructure/quiz-
|
|
128
|
-
"@instructure/quiz-rce": "22.16.
|
|
129
|
-
"instructure-validations": "22.16.
|
|
124
|
+
"@instructure/quiz-common": "22.16.1",
|
|
125
|
+
"@instructure/quiz-interactions": "22.16.1",
|
|
126
|
+
"@instructure/quiz-number-input": "22.16.1",
|
|
127
|
+
"@instructure/quiz-i18n": "22.16.1",
|
|
128
|
+
"@instructure/quiz-rce": "22.16.1",
|
|
129
|
+
"instructure-validations": "22.16.1"
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
132
|
"@instructure/ui-axe-check": "10.17.0",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"sinon": "^6.1.3",
|
|
156
156
|
"sinon-chai": "^3.3.0",
|
|
157
157
|
"@instructure/quiz-scripts": "21.0.0",
|
|
158
|
-
"quiz-presets": "22.16.
|
|
158
|
+
"quiz-presets": "22.16.1"
|
|
159
159
|
},
|
|
160
160
|
"peerDependencies": {
|
|
161
161
|
"react": "^15 || ^16"
|