@instructure/quiz-core 22.15.1 → 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/AsyncSearch/index.js +0 -1
- package/es/banks/components/BankEntry/presenter.js +1 -1
- package/es/banks/components/BanksList/presenter.js +2 -1
- package/es/banks/components/NavWrapper/presenter.js +3 -2
- package/es/banks/components/SharingModal/presenter.js +5 -7
- 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/resources/sessionItemResult/ResultStimulus/styles.js +1 -0
- 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/common/middleware/quizTimerWebSocketMiddleware.js +2 -3
- package/es/index.js +4 -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/AsyncSearch/index.js +0 -1
- package/lib/banks/components/BankEntry/presenter.js +1 -1
- package/lib/banks/components/BanksList/presenter.js +2 -1
- package/lib/banks/components/NavWrapper/presenter.js +3 -2
- package/lib/banks/components/SharingModal/presenter.js +5 -7
- 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/resources/sessionItemResult/ResultStimulus/styles.js +1 -0
- 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/common/middleware/quizTimerWebSocketMiddleware.js +2 -3
- package/lib/index.js +4 -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 +12 -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';
|
|
@@ -491,7 +491,8 @@ export var BanksList = /*#__PURE__*/ function(_superClass) {
|
|
|
491
491
|
}),
|
|
492
492
|
screenReaderLabel: t('Share bank {name}', {
|
|
493
493
|
name: bank.title
|
|
494
|
-
})
|
|
494
|
+
}),
|
|
495
|
+
ref: _this1.handleSharingButtonRef(bank.id)
|
|
495
496
|
})), bank.canEdit() ? bankEditOptions : null);
|
|
496
497
|
}
|
|
497
498
|
}), _define_property(_this1, "renderBank", function(bank) {
|
|
@@ -148,7 +148,8 @@ var NavWrapper = /*#__PURE__*/ function(Component) {
|
|
|
148
148
|
returnToUrl: returnToUrl,
|
|
149
149
|
id: "ReturnButton",
|
|
150
150
|
key: "ReturnButton",
|
|
151
|
-
iceTopNavBarEnabled: iceTopNavBarEnabled
|
|
151
|
+
iceTopNavBarEnabled: iceTopNavBarEnabled,
|
|
152
|
+
text: t('Return')
|
|
152
153
|
});
|
|
153
154
|
} else if (navigateToBuild) {
|
|
154
155
|
if (iceTopNavBarEnabled) {
|
|
@@ -168,7 +169,7 @@ var NavWrapper = /*#__PURE__*/ function(Component) {
|
|
|
168
169
|
{
|
|
169
170
|
key: "renderCloseButton",
|
|
170
171
|
value: function renderCloseButton() {
|
|
171
|
-
if (this.props.closeTray) {
|
|
172
|
+
if (this.props.closeTray && this.props.isCompact) {
|
|
172
173
|
return /*#__PURE__*/ jsx(CloseButton, {
|
|
173
174
|
elementRef: this.setCloseButtonRef,
|
|
174
175
|
placement: "start",
|
|
@@ -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';
|
|
@@ -328,12 +328,9 @@ export var SharingModalPresenter = /*#__PURE__*/ function(Component) {
|
|
|
328
328
|
_this1.checkForSharedBanks();
|
|
329
329
|
});
|
|
330
330
|
}), _define_property(_this1, "modalDismissCleanup", function() {
|
|
331
|
-
var focusCreateBank = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
332
331
|
_this1.props.onDismiss();
|
|
333
|
-
if (_this1.props.modalTrigger
|
|
332
|
+
if (_this1.props.modalTrigger) {
|
|
334
333
|
_this1.props.modalTrigger.focus();
|
|
335
|
-
} else {
|
|
336
|
-
setTimeout(_this1.props.focusCreateBankButton, 100);
|
|
337
334
|
}
|
|
338
335
|
// removes the creator's temporary sharedBank record
|
|
339
336
|
_this1.props.removeSharedBank('-1');
|
|
@@ -462,7 +459,8 @@ export var SharingModalPresenter = /*#__PURE__*/ function(Component) {
|
|
|
462
459
|
onSelectionChange: _this1.handleSearchSelectionChange,
|
|
463
460
|
searchType: searchType,
|
|
464
461
|
selectedOption: _this1.state.searchSelection,
|
|
465
|
-
selectionFilter: _this1.handleSearchFilter
|
|
462
|
+
selectionFilter: _this1.handleSearchFilter,
|
|
463
|
+
searchLabel: t('Share With')
|
|
466
464
|
})), /*#__PURE__*/ jsx(Grid.Col, {
|
|
467
465
|
width: "auto"
|
|
468
466
|
}, /*#__PURE__*/ jsx(SimpleSelect, {
|
|
@@ -616,7 +614,7 @@ export var SharingModalPresenter = /*#__PURE__*/ function(Component) {
|
|
|
616
614
|
});
|
|
617
615
|
this.debouncedSearch();
|
|
618
616
|
}
|
|
619
|
-
if (prevState.searchValue !== this.state.searchValue || prevState.startingPoint !== this.state.startingPoint || prevState.selectedTabIndex !== this.state.selectedTabIndex || prevState.shares
|
|
617
|
+
if (prevState.searchValue !== this.state.searchValue || prevState.startingPoint !== this.state.startingPoint || prevState.selectedTabIndex !== this.state.selectedTabIndex || prevState.shares !== this.state.shares) {
|
|
620
618
|
this.createFilteredList();
|
|
621
619
|
}
|
|
622
620
|
}
|
|
@@ -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);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SET_WS_TOKEN, QUIZ_SUBMISSION_EVENT } from '@instructure/quiz-common';
|
|
2
|
-
import { featureOn } from '../../common/util/featureCheck';
|
|
3
2
|
import { formatTime } from '../../common/util/formatTimespan';
|
|
4
3
|
import { updateTime, notifyTimeAdded } from '../../taking/api/taking';
|
|
5
4
|
import { bindActionCreators } from 'redux';
|
|
@@ -46,12 +45,12 @@ export var handleWebSocketMessage = function(webSocketMessage, boundTakingApiAct
|
|
|
46
45
|
handleExtraTimeFn(webSocketMessageData.extra_time_in_seconds, webSocketMessageData.end_at, boundTakingApiActions.updateTime, boundTakingApiActions.notifyTimeAdded);
|
|
47
46
|
};
|
|
48
47
|
export var createQuizTimerWebSocketMiddleware = function() {
|
|
49
|
-
var createWebsocketFn = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : createWebsocket
|
|
48
|
+
var createWebsocketFn = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : createWebsocket;
|
|
50
49
|
var socket = null;
|
|
51
50
|
return function(store) {
|
|
52
51
|
return function(next) {
|
|
53
52
|
return function(action) {
|
|
54
|
-
if (action.type === SET_WS_TOKEN &&
|
|
53
|
+
if (action.type === SET_WS_TOKEN && socket === null) {
|
|
55
54
|
var token = action.payload.wsToken;
|
|
56
55
|
socket = initializeWebSocket(token, createWebsocketFn);
|
|
57
56
|
if (!socket) {
|
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';
|
|
@@ -82,11 +82,13 @@ export { GenericAsyncSearch } from './common/components/shared/GenericAsyncSearc
|
|
|
82
82
|
export { MaskedTextInput } from './common/components/MaskedTextInput';
|
|
83
83
|
export { AccessCodeTextInput } from './common/components/AccessCodeTextInput';
|
|
84
84
|
export { LocalStoreService } from './common/util/localStoreService';
|
|
85
|
+
export { default as Alerts } from './common/components/alerts/index';
|
|
85
86
|
// Utilities
|
|
86
87
|
export { environment as config } from './config';
|
|
87
88
|
export { Fetcher } from './common/util/Fetcher';
|
|
88
89
|
export { httpHeaders } from './common/util/httpHeaders';
|
|
89
90
|
export { store, setFakeStore, unsetFakeStore } from './reduxStore';
|
|
91
|
+
export { configureStore } from './configureStore';
|
|
90
92
|
export { setFeatures, unsetFeatures, featureOn, withTestFeatures } from './common/util/featureCheck';
|
|
91
93
|
export { makeEditable } from './common/components/shared/functionality/makeEditable';
|
|
92
94
|
export { CustomPropTypes } from './common/util/CustomPropTypes';
|
|
@@ -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';
|
|
@@ -491,7 +491,8 @@ export var BanksList = /*#__PURE__*/ function(_superClass) {
|
|
|
491
491
|
}),
|
|
492
492
|
screenReaderLabel: t('Share bank {name}', {
|
|
493
493
|
name: bank.title
|
|
494
|
-
})
|
|
494
|
+
}),
|
|
495
|
+
ref: _this1.handleSharingButtonRef(bank.id)
|
|
495
496
|
})), bank.canEdit() ? bankEditOptions : null);
|
|
496
497
|
}
|
|
497
498
|
}), _define_property(_this1, "renderBank", function(bank) {
|
|
@@ -148,7 +148,8 @@ var NavWrapper = /*#__PURE__*/ function(Component) {
|
|
|
148
148
|
returnToUrl: returnToUrl,
|
|
149
149
|
id: "ReturnButton",
|
|
150
150
|
key: "ReturnButton",
|
|
151
|
-
iceTopNavBarEnabled: iceTopNavBarEnabled
|
|
151
|
+
iceTopNavBarEnabled: iceTopNavBarEnabled,
|
|
152
|
+
text: t('Return')
|
|
152
153
|
});
|
|
153
154
|
} else if (navigateToBuild) {
|
|
154
155
|
if (iceTopNavBarEnabled) {
|
|
@@ -168,7 +169,7 @@ var NavWrapper = /*#__PURE__*/ function(Component) {
|
|
|
168
169
|
{
|
|
169
170
|
key: "renderCloseButton",
|
|
170
171
|
value: function renderCloseButton() {
|
|
171
|
-
if (this.props.closeTray) {
|
|
172
|
+
if (this.props.closeTray && this.props.isCompact) {
|
|
172
173
|
return /*#__PURE__*/ jsx(CloseButton, {
|
|
173
174
|
elementRef: this.setCloseButtonRef,
|
|
174
175
|
placement: "start",
|
|
@@ -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';
|
|
@@ -328,12 +328,9 @@ export var SharingModalPresenter = /*#__PURE__*/ function(Component) {
|
|
|
328
328
|
_this1.checkForSharedBanks();
|
|
329
329
|
});
|
|
330
330
|
}), _define_property(_this1, "modalDismissCleanup", function() {
|
|
331
|
-
var focusCreateBank = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
332
331
|
_this1.props.onDismiss();
|
|
333
|
-
if (_this1.props.modalTrigger
|
|
332
|
+
if (_this1.props.modalTrigger) {
|
|
334
333
|
_this1.props.modalTrigger.focus();
|
|
335
|
-
} else {
|
|
336
|
-
setTimeout(_this1.props.focusCreateBankButton, 100);
|
|
337
334
|
}
|
|
338
335
|
// removes the creator's temporary sharedBank record
|
|
339
336
|
_this1.props.removeSharedBank('-1');
|
|
@@ -462,7 +459,8 @@ export var SharingModalPresenter = /*#__PURE__*/ function(Component) {
|
|
|
462
459
|
onSelectionChange: _this1.handleSearchSelectionChange,
|
|
463
460
|
searchType: searchType,
|
|
464
461
|
selectedOption: _this1.state.searchSelection,
|
|
465
|
-
selectionFilter: _this1.handleSearchFilter
|
|
462
|
+
selectionFilter: _this1.handleSearchFilter,
|
|
463
|
+
searchLabel: t('Share With')
|
|
466
464
|
})), /*#__PURE__*/ jsx(Grid.Col, {
|
|
467
465
|
width: "auto"
|
|
468
466
|
}, /*#__PURE__*/ jsx(SimpleSelect, {
|
|
@@ -616,7 +614,7 @@ export var SharingModalPresenter = /*#__PURE__*/ function(Component) {
|
|
|
616
614
|
});
|
|
617
615
|
this.debouncedSearch();
|
|
618
616
|
}
|
|
619
|
-
if (prevState.searchValue !== this.state.searchValue || prevState.startingPoint !== this.state.startingPoint || prevState.selectedTabIndex !== this.state.selectedTabIndex || prevState.shares
|
|
617
|
+
if (prevState.searchValue !== this.state.searchValue || prevState.startingPoint !== this.state.startingPoint || prevState.selectedTabIndex !== this.state.selectedTabIndex || prevState.shares !== this.state.shares) {
|
|
620
618
|
this.createFilteredList();
|
|
621
619
|
}
|
|
622
620
|
}
|
|
@@ -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);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SET_WS_TOKEN, QUIZ_SUBMISSION_EVENT } from '@instructure/quiz-common';
|
|
2
|
-
import { featureOn } from '../../common/util/featureCheck';
|
|
3
2
|
import { formatTime } from '../../common/util/formatTimespan';
|
|
4
3
|
import { updateTime, notifyTimeAdded } from '../../taking/api/taking';
|
|
5
4
|
import { bindActionCreators } from 'redux';
|
|
@@ -46,12 +45,12 @@ export var handleWebSocketMessage = function(webSocketMessage, boundTakingApiAct
|
|
|
46
45
|
handleExtraTimeFn(webSocketMessageData.extra_time_in_seconds, webSocketMessageData.end_at, boundTakingApiActions.updateTime, boundTakingApiActions.notifyTimeAdded);
|
|
47
46
|
};
|
|
48
47
|
export var createQuizTimerWebSocketMiddleware = function() {
|
|
49
|
-
var createWebsocketFn = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : createWebsocket
|
|
48
|
+
var createWebsocketFn = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : createWebsocket;
|
|
50
49
|
var socket = null;
|
|
51
50
|
return function(store) {
|
|
52
51
|
return function(next) {
|
|
53
52
|
return function(action) {
|
|
54
|
-
if (action.type === SET_WS_TOKEN &&
|
|
53
|
+
if (action.type === SET_WS_TOKEN && socket === null) {
|
|
55
54
|
var token = action.payload.wsToken;
|
|
56
55
|
socket = initializeWebSocket(token, createWebsocketFn);
|
|
57
56
|
if (!socket) {
|
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';
|
|
@@ -82,11 +82,13 @@ export { GenericAsyncSearch } from './common/components/shared/GenericAsyncSearc
|
|
|
82
82
|
export { MaskedTextInput } from './common/components/MaskedTextInput';
|
|
83
83
|
export { AccessCodeTextInput } from './common/components/AccessCodeTextInput';
|
|
84
84
|
export { LocalStoreService } from './common/util/localStoreService';
|
|
85
|
+
export { default as Alerts } from './common/components/alerts/index';
|
|
85
86
|
// Utilities
|
|
86
87
|
export { environment as config } from './config';
|
|
87
88
|
export { Fetcher } from './common/util/Fetcher';
|
|
88
89
|
export { httpHeaders } from './common/util/httpHeaders';
|
|
89
90
|
export { store, setFakeStore, unsetFakeStore } from './reduxStore';
|
|
91
|
+
export { configureStore } from './configureStore';
|
|
90
92
|
export { setFeatures, unsetFeatures, featureOn, withTestFeatures } from './common/util/featureCheck';
|
|
91
93
|
export { makeEditable } from './common/components/shared/functionality/makeEditable';
|
|
92
94
|
export { CustomPropTypes } from './common/util/CustomPropTypes';
|
|
@@ -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.
|
|
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",
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
".": {
|
|
11
11
|
"import": "./es/index.js",
|
|
12
12
|
"require": "./lib/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./*": {
|
|
15
|
+
"import": "./es/*.js",
|
|
16
|
+
"require": "./lib/*.js"
|
|
13
17
|
}
|
|
14
18
|
},
|
|
15
19
|
"repository": {
|
|
@@ -117,12 +121,12 @@
|
|
|
117
121
|
"store": "^1.3.20",
|
|
118
122
|
"striptags": "^2.0.0",
|
|
119
123
|
"uuid": "^3.2.1",
|
|
120
|
-
"@instructure/quiz-common": "22.
|
|
121
|
-
"@instructure/quiz-
|
|
122
|
-
"@instructure/quiz-
|
|
123
|
-
"@instructure/quiz-
|
|
124
|
-
"@instructure/quiz-rce": "22.
|
|
125
|
-
"instructure-validations": "22.
|
|
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"
|
|
126
130
|
},
|
|
127
131
|
"devDependencies": {
|
|
128
132
|
"@instructure/ui-axe-check": "10.17.0",
|
|
@@ -151,7 +155,7 @@
|
|
|
151
155
|
"sinon": "^6.1.3",
|
|
152
156
|
"sinon-chai": "^3.3.0",
|
|
153
157
|
"@instructure/quiz-scripts": "21.0.0",
|
|
154
|
-
"quiz-presets": "22.
|
|
158
|
+
"quiz-presets": "22.16.1"
|
|
155
159
|
},
|
|
156
160
|
"peerDependencies": {
|
|
157
161
|
"react": "^15 || ^16"
|