@instructure/quiz-core 17.56.1-rc.3 → 17.57.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,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [17.57.0](https://gerrit.instructure.com/quizzes-ui/compare/v17.56.0...v17.57.0) (2023-06-15)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **rce5MathPrinting:** Fix print blank quiz and speed up math rendering ([b813abd](https://gerrit.instructure.com/quizzes-ui/commits/b813abd293b92e5f38a57501d05f5ff8868f5129))
12
+
13
+
14
+ ### Features
15
+
16
+ * **itemanalysis:** quiz overview page ([1b3118f](https://gerrit.instructure.com/quizzes-ui/commits/1b3118f30d640f7b28562671c8a68cd6545680b1))
17
+
18
+
19
+
20
+
21
+
6
22
  # [17.56.0](https://gerrit.instructure.com/quizzes-ui/compare/v17.55.0...v17.56.0) (2023-06-04)
7
23
 
8
24
 
@@ -1,4 +1,3 @@
1
- import { MathquillModal } from '@instructure/quiz-rce';
2
1
  export var printWithCss = function printWithCss(cssClass) {
3
2
  var timeout = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
4
3
  var rootElement = document.querySelector('html');
@@ -28,34 +27,6 @@ var setTimeoutPromise = function setTimeoutPromise(delay) {
28
27
  });
29
28
  };
30
29
 
31
- var checkIfThereAreAnyUnrenderedLatexEquations = function checkIfThereAreAnyUnrenderedLatexEquations() {
32
- return document.body.textContent.search(MathquillModal.boundaryRegex) === -1;
33
- };
34
-
35
- export var ensureAllMathEquationsAreRendered = function ensureAllMathEquationsAreRendered() {
36
- return new Promise(function (resolve) {
37
- if (checkIfThereAreAnyUnrenderedLatexEquations()) {
38
- return resolve();
39
- } // Failsafe if there is matching regexp on page that is not mathjax equation
40
-
41
-
42
- var failsafeTimeout = setTimeout(function () {
43
- observer.disconnect();
44
- resolve();
45
- }, 10000);
46
- var observer = new MutationObserver(function () {
47
- if (checkIfThereAreAnyUnrenderedLatexEquations()) {
48
- resolve();
49
- observer.disconnect();
50
- clearTimeout(failsafeTimeout);
51
- }
52
- });
53
- observer.observe(document.body, {
54
- childList: true,
55
- subtree: true
56
- });
57
- });
58
- };
59
30
  export var ensureImagesLoaded = function ensureImagesLoaded() {
60
31
  return new Promise(function (resolve) {
61
32
  setTimeoutPromise(0).then(function () {
package/es/index.js CHANGED
@@ -91,7 +91,7 @@ export { formatTime } from "./common/util/formatTimespan.js";
91
91
  export { connect } from "./common/react-redux.js";
92
92
  export { breakdownSeconds, HOUR_IN_SECONDS } from "./common/components/shared/FormattedDuration/index.js";
93
93
  export { sessionStore } from "./common/util/sessionStore.js";
94
- export { printWithCss, ensureImagesLoaded, ensureAllMathEquationsAreRendered } from "./common/util/printUtils.js";
94
+ export { printWithCss, ensureImagesLoaded } from "./common/util/printUtils.js";
95
95
  export { isNewRCEEnabled } from "./common/util/rceChecker.js"; // APIs
96
96
 
97
97
  export { createQuizEntryRegrade } from "./grading/api/quizEntryRegrades.js";
@@ -3,9 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.ensureImagesLoaded = exports.ensureAllMathEquationsAreRendered = exports.printWithCss = void 0;
7
-
8
- var _quizRce = require("@instructure/quiz-rce");
6
+ exports.ensureImagesLoaded = exports.printWithCss = void 0;
9
7
 
10
8
  var printWithCss = function printWithCss(cssClass) {
11
9
  var timeout = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
@@ -38,37 +36,6 @@ var setTimeoutPromise = function setTimeoutPromise(delay) {
38
36
  });
39
37
  };
40
38
 
41
- var checkIfThereAreAnyUnrenderedLatexEquations = function checkIfThereAreAnyUnrenderedLatexEquations() {
42
- return document.body.textContent.search(_quizRce.MathquillModal.boundaryRegex) === -1;
43
- };
44
-
45
- var ensureAllMathEquationsAreRendered = function ensureAllMathEquationsAreRendered() {
46
- return new Promise(function (resolve) {
47
- if (checkIfThereAreAnyUnrenderedLatexEquations()) {
48
- return resolve();
49
- } // Failsafe if there is matching regexp on page that is not mathjax equation
50
-
51
-
52
- var failsafeTimeout = setTimeout(function () {
53
- observer.disconnect();
54
- resolve();
55
- }, 10000);
56
- var observer = new MutationObserver(function () {
57
- if (checkIfThereAreAnyUnrenderedLatexEquations()) {
58
- resolve();
59
- observer.disconnect();
60
- clearTimeout(failsafeTimeout);
61
- }
62
- });
63
- observer.observe(document.body, {
64
- childList: true,
65
- subtree: true
66
- });
67
- });
68
- };
69
-
70
- exports.ensureAllMathEquationsAreRendered = ensureAllMathEquationsAreRendered;
71
-
72
39
  var ensureImagesLoaded = function ensureImagesLoaded() {
73
40
  return new Promise(function (resolve) {
74
41
  setTimeoutPromise(0).then(function () {
package/lib/index.js CHANGED
@@ -104,7 +104,6 @@ var _exportNames = {
104
104
  sessionStore: true,
105
105
  printWithCss: true,
106
106
  ensureImagesLoaded: true,
107
- ensureAllMathEquationsAreRendered: true,
108
107
  isNewRCEEnabled: true,
109
108
  createQuizEntryRegrade: true,
110
109
  getQuizEntry: true,
@@ -789,12 +788,6 @@ Object.defineProperty(exports, "ensureImagesLoaded", {
789
788
  return _printUtils.ensureImagesLoaded;
790
789
  }
791
790
  });
792
- Object.defineProperty(exports, "ensureAllMathEquationsAreRendered", {
793
- enumerable: true,
794
- get: function get() {
795
- return _printUtils.ensureAllMathEquationsAreRendered;
796
- }
797
- });
798
791
  Object.defineProperty(exports, "isNewRCEEnabled", {
799
792
  enumerable: true,
800
793
  get: function get() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "17.56.1-rc.3+1b3118f30",
3
+ "version": "17.57.0",
4
4
  "license": "MIT",
5
5
  "description": "The Quiz React SDK by Instructure Inc.",
6
6
  "author": "Instructure, Inc. Engineering and Product Design",
@@ -41,11 +41,11 @@
41
41
  ],
42
42
  "dependencies": {
43
43
  "@instructure/outcomes-ui": "^2.1.8",
44
- "@instructure/quiz-common": "17.56.1-rc.3+1b3118f30",
45
- "@instructure/quiz-i18n": "17.56.1-rc.3+1b3118f30",
46
- "@instructure/quiz-interactions": "17.56.1-rc.3+1b3118f30",
47
- "@instructure/quiz-number-input": "17.56.1-rc.3+1b3118f30",
48
- "@instructure/quiz-rce": "17.56.1-rc.3+1b3118f30",
44
+ "@instructure/quiz-common": "^17.57.0",
45
+ "@instructure/quiz-i18n": "^17.57.0",
46
+ "@instructure/quiz-interactions": "^17.57.0",
47
+ "@instructure/quiz-number-input": "^17.57.0",
48
+ "@instructure/quiz-rce": "^17.57.0",
49
49
  "@instructure/ui-a11y-content": "^7.20.0",
50
50
  "@instructure/ui-alerts": "^7.20.0",
51
51
  "@instructure/ui-avatar": "^7.20.0",
@@ -106,7 +106,7 @@
106
106
  "eventemitter3": "^3.1.0",
107
107
  "humps": "^2.0.0",
108
108
  "immutable": "^3.8.1",
109
- "instructure-validations": "17.56.1-rc.3+1b3118f30",
109
+ "instructure-validations": "^17.57.0",
110
110
  "ipaddr.js": "^1.5.4",
111
111
  "isomorphic-fetch": "^2.2.0",
112
112
  "isuuid": "^0.1.0",
@@ -137,7 +137,7 @@
137
137
  "uuid": "^3.2.1"
138
138
  },
139
139
  "devDependencies": {
140
- "@instructure/quiz-scripts": "17.56.0",
140
+ "@instructure/quiz-scripts": "^17.57.0",
141
141
  "@instructure/ui-axe-check": "^7.20.0",
142
142
  "@instructure/ui-babel-preset": "^7.20.0",
143
143
  "@instructure/ui-karma-config": "^7.20.0",
@@ -156,7 +156,7 @@
156
156
  "intl": "^1.2.4",
157
157
  "jquery": "^2.2.3",
158
158
  "most-subject": "^5.3.0",
159
- "quiz-presets": "17.56.1-rc.3+1b3118f30",
159
+ "quiz-presets": "^17.57.0",
160
160
  "react": "^16.8.6",
161
161
  "react-addons-test-utils": "^15.6.2",
162
162
  "react-dom": "^16.8.6",
@@ -172,5 +172,5 @@
172
172
  "publishConfig": {
173
173
  "access": "public"
174
174
  },
175
- "gitHead": "1b3118f30d640f7b28562671c8a68cd6545680b1"
175
+ "gitHead": "27ef38fd2fe68b3281c94675e93a2264ca4b73fc"
176
176
  }