@instructure/quiz-core 20.0.1-rc.0 → 20.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [20.1.0](https://gerrit.instructure.com/quizzes-ui/compare/v20.0.0...v20.1.0) (2024-01-16)
7
+
8
+
9
+ ### Features
10
+
11
+ * **new_ia_cache_disable:** add option to disable cache on reports fetching ([6dc3a36](https://gerrit.instructure.com/quizzes-ui/commits/6dc3a36c05b0baee19cdf60b63b31ae75c9698b0))
12
+
13
+
14
+
15
+
16
+
6
17
  # [20.0.0](https://gerrit.instructure.com/quizzes-ui/compare/v19.2.0...v20.0.0) (2024-01-15)
7
18
 
8
19
 
@@ -33,7 +33,8 @@ export var withAnalysisStatePresenter = function withAnalysisStatePresenter(Orig
33
33
  statusPollingInProgress = _ref.statusPollingInProgress,
34
34
  setStatusPollingInProgress = _ref.setStatusPollingInProgress,
35
35
  pollingInterval = _ref.pollingInterval,
36
- passThroughProps = _objectWithoutProperties(_ref, ["quizAnalysis", "itemAnalyses", "fetchInProgress", "generationInProgress", "analysisError", "setQuizAnalysis", "addError", "setItemAnalyses", "setFetchInProgress", "setGenerationInProgress", "setAnalysisError", "activeQuizId", "generateAnalysis", "fetchQuizAnalysis", "fetchItemAnalyses", "getAnalysesExport", "fetchAnalysesStatus", "statusPollingInProgress", "setStatusPollingInProgress", "pollingInterval"]);
36
+ disableReportsCache = _ref.disableReportsCache,
37
+ passThroughProps = _objectWithoutProperties(_ref, ["quizAnalysis", "itemAnalyses", "fetchInProgress", "generationInProgress", "analysisError", "setQuizAnalysis", "addError", "setItemAnalyses", "setFetchInProgress", "setGenerationInProgress", "setAnalysisError", "activeQuizId", "generateAnalysis", "fetchQuizAnalysis", "fetchItemAnalyses", "getAnalysesExport", "fetchAnalysesStatus", "statusPollingInProgress", "setStatusPollingInProgress", "pollingInterval", "disableReportsCache"]);
37
38
 
38
39
  WithAnalysisStatePresenter.displayName = "WithAnalysisStatePresenter(".concat(OriginalComponent.displayName || OriginalComponent.name, ")");
39
40
 
@@ -149,7 +150,7 @@ export var withAnalysisStatePresenter = function withAnalysisStatePresenter(Orig
149
150
  case 0:
150
151
  hasStoredAnalyses = quizAnalysis && itemAnalyses;
151
152
 
152
- if (hasStoredAnalyses) {
153
+ if (!(!hasStoredAnalyses || disableReportsCache)) {
153
154
  _context.next = 4;
154
155
  break;
155
156
  }
@@ -235,13 +236,15 @@ export var withAnalysisStatePresenter = function withAnalysisStatePresenter(Orig
235
236
  getAnalysesExport: PropTypes.func.isRequired,
236
237
  addError: PropTypes.func.isRequired,
237
238
  pollingInterval: PropTypes.number.isRequired,
238
- generateAnalysis: PropTypes.func.isRequired // from LTI, f(filter: string, onError?: func(error))
239
-
239
+ generateAnalysis: PropTypes.func.isRequired,
240
+ // from LTI, f(filter: string, onError?: func(error))
241
+ disableReportsCache: PropTypes.bool
240
242
  };
241
243
  WithAnalysisStatePresenter.defaultProps = {
242
244
  quizAnalysis: void 0,
243
245
  itemAnalyses: void 0,
244
- analysisError: ''
246
+ analysisError: '',
247
+ disableReportsCache: false
245
248
  };
246
249
  return WithAnalysisStatePresenter;
247
250
  };
@@ -57,7 +57,8 @@ var withAnalysisStatePresenter = function withAnalysisStatePresenter(OriginalCom
57
57
  statusPollingInProgress = _ref.statusPollingInProgress,
58
58
  setStatusPollingInProgress = _ref.setStatusPollingInProgress,
59
59
  pollingInterval = _ref.pollingInterval,
60
- passThroughProps = (0, _objectWithoutProperties2.default)(_ref, ["quizAnalysis", "itemAnalyses", "fetchInProgress", "generationInProgress", "analysisError", "setQuizAnalysis", "addError", "setItemAnalyses", "setFetchInProgress", "setGenerationInProgress", "setAnalysisError", "activeQuizId", "generateAnalysis", "fetchQuizAnalysis", "fetchItemAnalyses", "getAnalysesExport", "fetchAnalysesStatus", "statusPollingInProgress", "setStatusPollingInProgress", "pollingInterval"]);
60
+ disableReportsCache = _ref.disableReportsCache,
61
+ passThroughProps = (0, _objectWithoutProperties2.default)(_ref, ["quizAnalysis", "itemAnalyses", "fetchInProgress", "generationInProgress", "analysisError", "setQuizAnalysis", "addError", "setItemAnalyses", "setFetchInProgress", "setGenerationInProgress", "setAnalysisError", "activeQuizId", "generateAnalysis", "fetchQuizAnalysis", "fetchItemAnalyses", "getAnalysesExport", "fetchAnalysesStatus", "statusPollingInProgress", "setStatusPollingInProgress", "pollingInterval", "disableReportsCache"]);
61
62
  WithAnalysisStatePresenter.displayName = "WithAnalysisStatePresenter(".concat(OriginalComponent.displayName || OriginalComponent.name, ")");
62
63
 
63
64
  var _useState = (0, _react.useState)(false),
@@ -172,7 +173,7 @@ var withAnalysisStatePresenter = function withAnalysisStatePresenter(OriginalCom
172
173
  case 0:
173
174
  hasStoredAnalyses = quizAnalysis && itemAnalyses;
174
175
 
175
- if (hasStoredAnalyses) {
176
+ if (!(!hasStoredAnalyses || disableReportsCache)) {
176
177
  _context.next = 4;
177
178
  break;
178
179
  }
@@ -258,13 +259,15 @@ var withAnalysisStatePresenter = function withAnalysisStatePresenter(OriginalCom
258
259
  getAnalysesExport: _propTypes.default.func.isRequired,
259
260
  addError: _propTypes.default.func.isRequired,
260
261
  pollingInterval: _propTypes.default.number.isRequired,
261
- generateAnalysis: _propTypes.default.func.isRequired // from LTI, f(filter: string, onError?: func(error))
262
-
262
+ generateAnalysis: _propTypes.default.func.isRequired,
263
+ // from LTI, f(filter: string, onError?: func(error))
264
+ disableReportsCache: _propTypes.default.bool
263
265
  };
264
266
  WithAnalysisStatePresenter.defaultProps = {
265
267
  quizAnalysis: void 0,
266
268
  itemAnalyses: void 0,
267
- analysisError: ''
269
+ analysisError: '',
270
+ disableReportsCache: false
268
271
  };
269
272
  return WithAnalysisStatePresenter;
270
273
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "20.0.1-rc.0+d73dfdd1f",
3
+ "version": "20.1.0",
4
4
  "license": "MIT",
5
5
  "description": "The Quiz React SDK by Instructure Inc.",
6
6
  "author": "Instructure, Inc. Engineering and Product Design",
@@ -44,11 +44,11 @@
44
44
  "@instructure/emotion": "^8.48.3",
45
45
  "@instructure/grading-utils": "^1.0.0",
46
46
  "@instructure/outcomes-ui": "^2.1.9",
47
- "@instructure/quiz-common": "20.0.1-rc.0+d73dfdd1f",
48
- "@instructure/quiz-i18n": "20.0.1-rc.0+d73dfdd1f",
49
- "@instructure/quiz-interactions": "20.0.1-rc.0+d73dfdd1f",
50
- "@instructure/quiz-number-input": "20.0.1-rc.0+d73dfdd1f",
51
- "@instructure/quiz-rce": "20.0.1-rc.0+d73dfdd1f",
47
+ "@instructure/quiz-common": "^20.1.0",
48
+ "@instructure/quiz-i18n": "^20.1.0",
49
+ "@instructure/quiz-interactions": "^20.1.0",
50
+ "@instructure/quiz-number-input": "^20.1.0",
51
+ "@instructure/quiz-rce": "^20.1.0",
52
52
  "@instructure/ui-a11y-content": "^8.48.3",
53
53
  "@instructure/ui-alerts": "^8.48.3",
54
54
  "@instructure/ui-avatar": "^8.48.3",
@@ -110,7 +110,7 @@
110
110
  "file-saver": "~2.0.5",
111
111
  "humps": "^2.0.0",
112
112
  "immutable": "^3.8.1",
113
- "instructure-validations": "20.0.1-rc.0+d73dfdd1f",
113
+ "instructure-validations": "^20.1.0",
114
114
  "ipaddr.js": "^1.5.4",
115
115
  "isomorphic-fetch": "^2.2.0",
116
116
  "isuuid": "^0.1.0",
@@ -142,7 +142,7 @@
142
142
  "uuid": "^3.2.1"
143
143
  },
144
144
  "devDependencies": {
145
- "@instructure/quiz-scripts": "20.0.0",
145
+ "@instructure/quiz-scripts": "^20.1.0",
146
146
  "@instructure/ui-axe-check": "^8.48.3",
147
147
  "@instructure/ui-babel-preset": "^7.22.1",
148
148
  "@instructure/ui-karma-config": "^7.22.1",
@@ -162,7 +162,7 @@
162
162
  "intl": "^1.2.4",
163
163
  "jquery": "^2.2.3",
164
164
  "most-subject": "^5.3.0",
165
- "quiz-presets": "20.0.1-rc.0+d73dfdd1f",
165
+ "quiz-presets": "^20.1.0",
166
166
  "react": "^16.8.6",
167
167
  "react-addons-test-utils": "^15.6.2",
168
168
  "react-dom": "^16.8.6",
@@ -178,5 +178,5 @@
178
178
  "publishConfig": {
179
179
  "access": "public"
180
180
  },
181
- "gitHead": "d73dfdd1f711381c3a637e104a9295d4963d45a9"
181
+ "gitHead": "e553a28b945c3b487559a09ed10e2a216701141e"
182
182
  }