@doenet/assignment-viewer 0.1.0-alpha-11 → 0.1.0-alpha-14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +30 -28
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -67,7 +67,7 @@ var hasRequiredReactJsxRuntime_development;
|
|
|
67
67
|
function requireReactJsxRuntime_development() {
|
|
68
68
|
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
69
69
|
hasRequiredReactJsxRuntime_development = 1;
|
|
70
|
-
"production" !== process.env.NODE_ENV && function() {
|
|
70
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
71
71
|
function getComponentNameFromType(type) {
|
|
72
72
|
if (null == type) return null;
|
|
73
73
|
if ("function" === typeof type)
|
|
@@ -316,7 +316,7 @@ function requireReactJsxRuntime_development() {
|
|
|
316
316
|
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
317
317
|
);
|
|
318
318
|
};
|
|
319
|
-
}();
|
|
319
|
+
})();
|
|
320
320
|
return reactJsxRuntime_development;
|
|
321
321
|
}
|
|
322
322
|
var hasRequiredJsxRuntime;
|
|
@@ -1664,11 +1664,11 @@ var hasRequiredObject_hash;
|
|
|
1664
1664
|
function requireObject_hash() {
|
|
1665
1665
|
if (hasRequiredObject_hash) return object_hash.exports;
|
|
1666
1666
|
hasRequiredObject_hash = 1;
|
|
1667
|
-
(function(module, exports) {
|
|
1668
|
-
!function(e) {
|
|
1667
|
+
(function(module, exports$1) {
|
|
1668
|
+
!(function(e) {
|
|
1669
1669
|
module.exports = e();
|
|
1670
|
-
}(function() {
|
|
1671
|
-
return function r(o, i, u) {
|
|
1670
|
+
})(function() {
|
|
1671
|
+
return (function r(o, i, u) {
|
|
1672
1672
|
function s(n, e2) {
|
|
1673
1673
|
if (!i[n]) {
|
|
1674
1674
|
if (!o[n]) {
|
|
@@ -1687,7 +1687,7 @@ function requireObject_hash() {
|
|
|
1687
1687
|
}
|
|
1688
1688
|
for (var a = "function" == typeof commonjsRequire && commonjsRequire, e = 0; e < u.length; e++) s(u[e]);
|
|
1689
1689
|
return s;
|
|
1690
|
-
}({ 1: [function(w, b, m) {
|
|
1690
|
+
})({ 1: [function(w, b, m) {
|
|
1691
1691
|
!(function(e, n, s, c, d, h, p, g, y) {
|
|
1692
1692
|
var r = w("crypto");
|
|
1693
1693
|
function t(e2, t2) {
|
|
@@ -1861,7 +1861,7 @@ function requireObject_hash() {
|
|
|
1861
1861
|
}).call(this, w("lYpoI2"), "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}, w("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/fake_9a5aa49d.js", "/");
|
|
1862
1862
|
}, { buffer: 3, crypto: 5, lYpoI2: 11 }], 2: [function(e, t, f) {
|
|
1863
1863
|
!(function(e2, t2, n, r, o, i, u, s, a) {
|
|
1864
|
-
!function(e3) {
|
|
1864
|
+
!(function(e3) {
|
|
1865
1865
|
var a2 = "undefined" != typeof Uint8Array ? Uint8Array : Array, t3 = "+".charCodeAt(0), n2 = "/".charCodeAt(0), r2 = "0".charCodeAt(0), o2 = "a".charCodeAt(0), i2 = "A".charCodeAt(0), u2 = "-".charCodeAt(0), s2 = "_".charCodeAt(0);
|
|
1866
1866
|
function f2(e4) {
|
|
1867
1867
|
e4 = e4.charCodeAt(0);
|
|
@@ -1891,7 +1891,7 @@ function requireObject_hash() {
|
|
|
1891
1891
|
}
|
|
1892
1892
|
return u3;
|
|
1893
1893
|
};
|
|
1894
|
-
}(void 0 === f ? this.base64js = {} : f);
|
|
1894
|
+
})(void 0 === f ? this.base64js = {} : f);
|
|
1895
1895
|
}).call(this, e("lYpoI2"), "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}, e("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js", "/node_modules/gulp-browserify/node_modules/base64-js/lib");
|
|
1896
1896
|
}, { buffer: 3, lYpoI2: 11 }], 3: [function(O, e, H) {
|
|
1897
1897
|
!(function(e2, n, f, r, h, p, g, y, w) {
|
|
@@ -1913,16 +1913,16 @@ function requireObject_hash() {
|
|
|
1913
1913
|
return o2;
|
|
1914
1914
|
}
|
|
1915
1915
|
function b(e3, t2, n2, r2) {
|
|
1916
|
-
return f._charsWritten = c(function(e4) {
|
|
1916
|
+
return f._charsWritten = c((function(e4) {
|
|
1917
1917
|
for (var t3 = [], n3 = 0; n3 < e4.length; n3++) t3.push(255 & e4.charCodeAt(n3));
|
|
1918
1918
|
return t3;
|
|
1919
|
-
}(t2), e3, n2, r2);
|
|
1919
|
+
})(t2), e3, n2, r2);
|
|
1920
1920
|
}
|
|
1921
1921
|
function m(e3, t2, n2, r2) {
|
|
1922
|
-
return f._charsWritten = c(function(e4) {
|
|
1922
|
+
return f._charsWritten = c((function(e4) {
|
|
1923
1923
|
for (var t3, n3, r3 = [], o2 = 0; o2 < e4.length; o2++) n3 = e4.charCodeAt(o2), t3 = n3 >> 8, n3 = n3 % 256, r3.push(n3), r3.push(t3);
|
|
1924
1924
|
return r3;
|
|
1925
|
-
}(t2), e3, n2, r2);
|
|
1925
|
+
})(t2), e3, n2, r2);
|
|
1926
1926
|
}
|
|
1927
1927
|
function v(e3, t2, n2) {
|
|
1928
1928
|
var r2 = "";
|
|
@@ -1974,7 +1974,7 @@ function requireObject_hash() {
|
|
|
1974
1974
|
function x(e3, t2, n2, r2, o2) {
|
|
1975
1975
|
o2 || (d(null != t2, "missing value"), d("boolean" == typeof r2, "missing or invalid endian"), d(null != n2, "missing offset"), d(n2 + 7 < e3.length, "Trying to write beyond buffer length"), D(t2, 17976931348623157e292, -17976931348623157e292)), e3.length <= n2 || i.write(e3, t2, n2, r2, 52, 8);
|
|
1976
1976
|
}
|
|
1977
|
-
H.Buffer = f, H.SlowBuffer = f, H.INSPECT_MAX_BYTES = 50, f.poolSize = 8192, f._useTypedArrays = function() {
|
|
1977
|
+
H.Buffer = f, H.SlowBuffer = f, H.INSPECT_MAX_BYTES = 50, f.poolSize = 8192, f._useTypedArrays = (function() {
|
|
1978
1978
|
try {
|
|
1979
1979
|
var e3 = new ArrayBuffer(0), t2 = new Uint8Array(e3);
|
|
1980
1980
|
return t2.foo = function() {
|
|
@@ -1983,7 +1983,7 @@ function requireObject_hash() {
|
|
|
1983
1983
|
} catch (e4) {
|
|
1984
1984
|
return false;
|
|
1985
1985
|
}
|
|
1986
|
-
}(), f.isEncoding = function(e3) {
|
|
1986
|
+
})(), f.isEncoding = function(e3) {
|
|
1987
1987
|
switch (String(e3).toLowerCase()) {
|
|
1988
1988
|
case "hex":
|
|
1989
1989
|
case "utf8":
|
|
@@ -2044,7 +2044,7 @@ function requireObject_hash() {
|
|
|
2044
2044
|
var o2, i2, u2, s2, a2 = this.length - t2;
|
|
2045
2045
|
switch ((!n2 || a2 < (n2 = Number(n2))) && (n2 = a2), r2 = String(r2 || "utf8").toLowerCase()) {
|
|
2046
2046
|
case "hex":
|
|
2047
|
-
o2 = function(e4, t3, n3, r3) {
|
|
2047
|
+
o2 = (function(e4, t3, n3, r3) {
|
|
2048
2048
|
n3 = Number(n3) || 0;
|
|
2049
2049
|
var o3 = e4.length - n3;
|
|
2050
2050
|
(!r3 || o3 < (r3 = Number(r3))) && (r3 = o3), d((o3 = t3.length) % 2 == 0, "Invalid hex string"), o3 / 2 < r3 && (r3 = o3 / 2);
|
|
@@ -2053,7 +2053,7 @@ function requireObject_hash() {
|
|
|
2053
2053
|
d(!isNaN(u3), "Invalid hex string"), e4[n3 + i3] = u3;
|
|
2054
2054
|
}
|
|
2055
2055
|
return f._charsWritten = 2 * i3, i3;
|
|
2056
|
-
}(this, e3, t2, n2);
|
|
2056
|
+
})(this, e3, t2, n2);
|
|
2057
2057
|
break;
|
|
2058
2058
|
case "utf8":
|
|
2059
2059
|
case "utf-8":
|
|
@@ -2081,22 +2081,22 @@ function requireObject_hash() {
|
|
|
2081
2081
|
if (e3 = String(e3 || "utf8").toLowerCase(), t2 = Number(t2) || 0, (n2 = void 0 !== n2 ? Number(n2) : s2.length) === t2) return "";
|
|
2082
2082
|
switch (e3) {
|
|
2083
2083
|
case "hex":
|
|
2084
|
-
r2 = function(e4, t3, n3) {
|
|
2084
|
+
r2 = (function(e4, t3, n3) {
|
|
2085
2085
|
var r3 = e4.length;
|
|
2086
2086
|
(!t3 || t3 < 0) && (t3 = 0);
|
|
2087
2087
|
(!n3 || n3 < 0 || r3 < n3) && (n3 = r3);
|
|
2088
2088
|
for (var o3 = "", i3 = t3; i3 < n3; i3++) o3 += k(e4[i3]);
|
|
2089
2089
|
return o3;
|
|
2090
|
-
}(s2, t2, n2);
|
|
2090
|
+
})(s2, t2, n2);
|
|
2091
2091
|
break;
|
|
2092
2092
|
case "utf8":
|
|
2093
2093
|
case "utf-8":
|
|
2094
|
-
r2 = function(e4, t3, n3) {
|
|
2094
|
+
r2 = (function(e4, t3, n3) {
|
|
2095
2095
|
var r3 = "", o3 = "";
|
|
2096
2096
|
n3 = Math.min(e4.length, n3);
|
|
2097
2097
|
for (var i3 = t3; i3 < n3; i3++) e4[i3] <= 127 ? (r3 += N(o3) + String.fromCharCode(e4[i3]), o3 = "") : o3 += "%" + e4[i3].toString(16);
|
|
2098
2098
|
return r3 + N(o3);
|
|
2099
|
-
}(s2, t2, n2);
|
|
2099
|
+
})(s2, t2, n2);
|
|
2100
2100
|
break;
|
|
2101
2101
|
case "ascii":
|
|
2102
2102
|
case "binary":
|
|
@@ -2109,10 +2109,10 @@ function requireObject_hash() {
|
|
|
2109
2109
|
case "ucs-2":
|
|
2110
2110
|
case "utf16le":
|
|
2111
2111
|
case "utf-16le":
|
|
2112
|
-
r2 = function(e4, t3, n3) {
|
|
2112
|
+
r2 = (function(e4, t3, n3) {
|
|
2113
2113
|
for (var r3 = e4.slice(t3, n3), o3 = "", i3 = 0; i3 < r3.length; i3 += 2) o3 += String.fromCharCode(r3[i3] + 256 * r3[i3 + 1]);
|
|
2114
2114
|
return o3;
|
|
2115
|
-
}(s2, t2, n2);
|
|
2115
|
+
})(s2, t2, n2);
|
|
2116
2116
|
break;
|
|
2117
2117
|
default:
|
|
2118
2118
|
throw new Error("Unknown encoding");
|
|
@@ -2267,11 +2267,11 @@ function requireObject_hash() {
|
|
|
2267
2267
|
var a = c("buffer").Buffer, f = 4, l = new a(f);
|
|
2268
2268
|
l.fill(0);
|
|
2269
2269
|
d.exports = { hash: function(e3, t2, n2, r2) {
|
|
2270
|
-
for (var o2 = t2(function(e4, t3) {
|
|
2270
|
+
for (var o2 = t2((function(e4, t3) {
|
|
2271
2271
|
e4.length % f != 0 && (n3 = e4.length + (f - e4.length % f), e4 = a.concat([e4, l], n3));
|
|
2272
2272
|
for (var n3, r3 = [], o3 = t3 ? e4.readInt32BE : e4.readInt32LE, i3 = 0; i3 < e4.length; i3 += f) r3.push(o3.call(e4, i3));
|
|
2273
2273
|
return r3;
|
|
2274
|
-
}(e3 = a.isBuffer(e3) ? e3 : new a(e3), r2), 8 * e3.length), t2 = r2, i2 = new a(n2), u2 = t2 ? i2.writeInt32BE : i2.writeInt32LE, s2 = 0; s2 < o2.length; s2++) u2.call(i2, o2[s2], 4 * s2, true);
|
|
2274
|
+
})(e3 = a.isBuffer(e3) ? e3 : new a(e3), r2), 8 * e3.length), t2 = r2, i2 = new a(n2), u2 = t2 ? i2.writeInt32BE : i2.writeInt32LE, s2 = 0; s2 < o2.length; s2++) u2.call(i2, o2[s2], 4 * s2, true);
|
|
2275
2275
|
return i2;
|
|
2276
2276
|
} };
|
|
2277
2277
|
}).call(this, c("lYpoI2"), "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}, c("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
|
|
@@ -2283,11 +2283,11 @@ function requireObject_hash() {
|
|
|
2283
2283
|
return r2 || i("algorithm:", e3, "is not yet supported"), { update: function(e4) {
|
|
2284
2284
|
return u.isBuffer(e4) || (e4 = new u(e4)), o2.push(e4), e4.length, this;
|
|
2285
2285
|
}, digest: function(e4) {
|
|
2286
|
-
var t2 = u.concat(o2), t2 = n2 ? function(e5, t3, n3) {
|
|
2286
|
+
var t2 = u.concat(o2), t2 = n2 ? (function(e5, t3, n3) {
|
|
2287
2287
|
u.isBuffer(t3) || (t3 = new u(t3)), u.isBuffer(n3) || (n3 = new u(n3)), t3.length > s ? t3 = e5(t3) : t3.length < s && (t3 = u.concat([t3, a], s));
|
|
2288
2288
|
for (var r3 = new u(s), o3 = new u(s), i2 = 0; i2 < s; i2++) r3[i2] = 54 ^ t3[i2], o3[i2] = 92 ^ t3[i2];
|
|
2289
2289
|
return n3 = e5(u.concat([r3, n3])), e5(u.concat([o3, n3]));
|
|
2290
|
-
}(r2, n2, t2) : r2(t2);
|
|
2290
|
+
})(r2, n2, t2) : r2(t2);
|
|
2291
2291
|
return o2 = null, e4 ? t2.toString(e4) : t2;
|
|
2292
2292
|
} };
|
|
2293
2293
|
}
|
|
@@ -3237,7 +3237,6 @@ function SingleDocActivity({
|
|
|
3237
3237
|
requestedVariantIndex,
|
|
3238
3238
|
flags,
|
|
3239
3239
|
activityId: baseId,
|
|
3240
|
-
prefixForIds: state.id,
|
|
3241
3240
|
docId: state.id,
|
|
3242
3241
|
forceDisable,
|
|
3243
3242
|
forceShowCorrectness,
|
|
@@ -3278,6 +3277,7 @@ function SingleDocActivity({
|
|
|
3278
3277
|
padding: "5px 20px",
|
|
3279
3278
|
cursor: attemptButtonDisabled ? "not-allowed" : "pointer"
|
|
3280
3279
|
},
|
|
3280
|
+
"data-test": "New Item Attempt",
|
|
3281
3281
|
children: [
|
|
3282
3282
|
"New ",
|
|
3283
3283
|
itemWord,
|
|
@@ -3954,6 +3954,7 @@ function Viewer({
|
|
|
3954
3954
|
borderRadius: "10px",
|
|
3955
3955
|
padding: "5px 20px"
|
|
3956
3956
|
},
|
|
3957
|
+
"data-test": "Cancel Create New Attempt",
|
|
3957
3958
|
children: "Cancel"
|
|
3958
3959
|
}
|
|
3959
3960
|
),
|
|
@@ -3974,6 +3975,7 @@ function Viewer({
|
|
|
3974
3975
|
borderRadius: "10px",
|
|
3975
3976
|
padding: "5px 20px"
|
|
3976
3977
|
},
|
|
3978
|
+
"data-test": "Confirm Create New Attempt",
|
|
3977
3979
|
children: "Create new attempt"
|
|
3978
3980
|
}
|
|
3979
3981
|
)
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@doenet/assignment-viewer",
|
|
3
3
|
"private": false,
|
|
4
4
|
"description": "View assignments from questions written in DoenetML",
|
|
5
|
-
"version": "0.1.0-alpha-
|
|
5
|
+
"version": "0.1.0-alpha-14",
|
|
6
6
|
"license": "AGPL-3.0-or-later",
|
|
7
7
|
"homepage": "https://github.com/Doenet/assignment-viewer#readme",
|
|
8
8
|
"type": "module",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"prettier:check": "prettier --check ."
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"react": "^19.2.
|
|
37
|
-
"react-dom": "^19.2.
|
|
38
|
-
"@doenet/doenetml-iframe": "^0.7.
|
|
36
|
+
"react": "^19.2.3",
|
|
37
|
+
"react-dom": "^19.2.3",
|
|
38
|
+
"@doenet/doenetml-iframe": "^0.7.4"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"nanoid": "^5.1.6",
|
|
@@ -50,18 +50,18 @@
|
|
|
50
50
|
"@types/react-dom": "^19.2.3",
|
|
51
51
|
"@types/seedrandom": "^3.0.8",
|
|
52
52
|
"@vitejs/plugin-react-swc": "^4.2.2",
|
|
53
|
-
"eslint": "^9.39.
|
|
53
|
+
"eslint": "^9.39.2",
|
|
54
54
|
"eslint-plugin-react": "^7.37.5",
|
|
55
55
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
56
56
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
57
57
|
"globals": "^16.5.0",
|
|
58
|
-
"prettier": "^3.
|
|
59
|
-
"rollup-plugin-visualizer": "^6.0.
|
|
58
|
+
"prettier": "^3.7.4",
|
|
59
|
+
"rollup-plugin-visualizer": "^6.0.5",
|
|
60
60
|
"typescript": "^5.9.3",
|
|
61
|
-
"typescript-eslint": "^8.
|
|
62
|
-
"vite": "^7.2.
|
|
61
|
+
"typescript-eslint": "^8.49.0",
|
|
62
|
+
"vite": "^7.2.7",
|
|
63
63
|
"vite-plugin-dts": "^4.5.4",
|
|
64
|
-
"vitest": "^4.0.
|
|
64
|
+
"vitest": "^4.0.15"
|
|
65
65
|
},
|
|
66
66
|
"prettier": {
|
|
67
67
|
"tabWidth": 4
|