@doenet/doenetml 0.7.25-dev.502 → 0.7.25-dev.503
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/{AnswerResponseButton-B_ZC1Y01.js → AnswerResponseButton-BeprFrWi.js} +2 -2
- package/{Description-Dj-ECZjP.js → Description-D7yfWnpD.js} +1 -1
- package/{DynamicMath-DuoxJaWi.js → DynamicMath-CzcNFnfq.js} +1 -1
- package/{EditorViewer-CKXOu6Xc.js → EditorViewer-CSBc8Zm8.js} +7 -7
- package/{GraphFrame-79HPv5L3.js → GraphFrame-BUt-JfS3.js} +2 -2
- package/{JSXGraphRenderer-DdCJegGp.js → JSXGraphRenderer-B_LNuHDJ.js} +1 -1
- package/{NonInlineMediaWrapper-DAkW_b4E.js → NonInlineMediaWrapper-Mz256SyO.js} +1 -1
- package/{_error-BclY3ngh.js → _error-BFR6Dx2R.js} +2 -2
- package/{alert-2Xk5neD0.js → alert-BvBjzxnR.js} +3 -3
- package/{angle-CUCVkMcN.js → angle-B1fy0RpD.js} +7 -7
- package/{answer-CMUef9w7.js → answer-BwjOIrRG.js} +6 -6
- package/{asList-DXkE3xLE.js → asList-owVh4Qos.js} +2 -2
- package/{blockQuote-Duo8vLOf.js → blockQuote-CTibAuH_.js} +3 -3
- package/{boolean-CDNMO1uW.js → boolean-BnB7cDlk.js} +2 -2
- package/{booleanInput-C4HFcqv5.js → booleanInput-Ci8sV-ul.js} +7 -7
- package/{br-C8MGfnqd.js → br-C--uedRx.js} +2 -2
- package/{button-D3pRJ_HO.js → button-CjWyiPgH.js} +5 -5
- package/{c-w0qvT9qk.js → c-Du4dItOk.js} +3 -3
- package/{cell-dY3QtnCO.js → cell-CJZJNO6e.js} +3 -3
- package/{choiceInput-BQtLfRX9.js → choiceInput-Byu0qOva.js} +4 -4
- package/{circle-BfFAvdYO.js → circle-DufTqSFD.js} +6 -6
- package/{cobwebPolyline-5gHGqAOD.js → cobwebPolyline-BSOlKqx5.js} +4 -4
- package/{codeEditor-78DVFjR7.js → codeEditor-CZ5DtrxS.js} +2 -2
- package/{composites-COtPaDZx.js → composites-DtXV_lYN.js} +1 -1
- package/{containerBlock-Dm7FQjGS.js → containerBlock-CM2PDGMn.js} +4 -4
- package/{containerInline-BFO1_deC.js → containerInline-Dc4dXOWw.js} +4 -4
- package/{curve-CKIWo65Q.js → curve-_xwmrWbL.js} +4 -4
- package/{doenetml-B-hFBPam.js → doenetml-D2WIeBj6.js} +124 -16
- package/doenetml-external-worker.js +2 -2
- package/doenetml-inline-worker.js +3 -3
- package/doenetml-worker/index.esm.js +1 -1
- package/doenetml-worker/index.js +1 -1
- package/{ellipsis-BVtp0eKb.js → ellipsis-BPJhBGZP.js} +2 -2
- package/{em-B6va28eT.js → em-P5Ir7LW2.js} +3 -3
- package/{embed-BNvkvRTY.js → embed-DxYpoueh.js} +2 -2
- package/{feedback-BUcDYUyP.js → feedback-CU-f_v0r.js} +4 -4
- package/{figure-BsSvvPVY.js → figure-CGpCUrk-.js} +3 -3
- package/{fillPatterns-B-BuGztY.js → fillPatterns-f_efzLud.js} +1 -1
- package/{footnote-DpHXME5P.js → footnote-Qz0M9M4F.js} +3 -3
- package/{fractionInput-DYVMgOMq.js → fractionInput-oBEOMaOR.js} +4 -4
- package/{graph-0JgcnyaW.js → graph-DrzOtJcD.js} +6 -6
- package/{hint-BJZen3wn.js → hint-B-5ZrHYg.js} +4 -4
- package/{hovercard-store-BqNx5MV1.js → hovercard-store-Bl889oYG.js} +1 -1
- package/{hr-DaBzyJUF.js → hr-6hNmIYy8.js} +2 -2
- package/{image-CTOkySqm.js → image-CA69rFBo.js} +7 -7
- package/{index-Chl4fz4U.js → index-Be8ynshA.js} +1 -1
- package/{index-DqOu4bgv.js → index-WyaVbgqc.js} +1 -1
- package/{index.es-Biii6O-8.js → index.es-B5Wifc0w.js} +1 -1
- package/index.js +1 -1
- package/{label-CCl0YwAa.js → label-CqyCDfIH.js} +7 -7
- package/{labelWithLatex-xSDzh5pN.js → labelWithLatex-LK1s9jk9.js} +2 -2
- package/{legend-mrmKsWU_.js → legend-Cd2OOkV-.js} +4 -4
- package/{line-MqwE7aKG.js → line-DqjjSrBf.js} +7 -7
- package/{lineFamilyDragHandlers-DwHZ5FrD.js → lineFamilyDragHandlers-1lkyB7Rm.js} +1 -1
- package/{lineSegment-CFysMbo_.js → lineSegment-z5FRMCG-.js} +5 -5
- package/{list-BuoQAoYf.js → list-BsKjXfvQ.js} +4 -4
- package/{lq-C9PoD83z.js → lq-Dpv614zo.js} +2 -2
- package/{lsq-Cm6B86u9.js → lsq-r1NJErFB.js} +2 -2
- package/{markupRenderer-BZb_J_zQ.js → markupRenderer-BBvsFs1_.js} +1 -1
- package/{math-Bk7Qya6w.js → math-BwquEUi6.js} +7 -7
- package/{mathInput-IeoH85cz.js → mathInput-YyXd7qBj.js} +7 -7
- package/{matrixInput-BnjgmtbV.js → matrixInput-RLftpl4o.js} +5 -5
- package/{mdash-D2bAMAkW.js → mdash-BJNi1vPj.js} +2 -2
- package/{nbsp-BxOUpDtf.js → nbsp-CW2ySvq-.js} +2 -2
- package/{ndash-DyVqJ6Xx.js → ndash-B30xR2bv.js} +2 -2
- package/{number-P1wQOpaY.js → number-CGkXUN8b.js} +7 -7
- package/{orbitalDiagram-DuYjR-BY.js → orbitalDiagram-v0GZq7h-.js} +2 -2
- package/{orbitalDiagramInput-D7DvUvEu.js → orbitalDiagramInput-DcKCXuf7.js} +3 -3
- package/{p-CT6Aen7t.js → p-E5Bn6rPD.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-k8Sx6SrC.js → paginatorControls-B5dAde6B.js} +3 -3
- package/{pegboard-DR-1Issq.js → pegboard-7GTVjAY7.js} +4 -4
- package/{point-CAyPFQgd.js → point-CTEv0XVY.js} +7 -7
- package/{polygon-BLQ10wo5.js → polygon-DObPKjLl.js} +6 -6
- package/{polyline-B1v1vd9j.js → polyline-BCn9Xqbs.js} +5 -5
- package/{pre-uocJdHPc.js → pre-zTahBPrd.js} +3 -3
- package/{prefigure-DidJQxtQ.js → prefigure-CC9LFoOC.js} +1 -1
- package/{pretzel-Bk_dhupR.js → pretzel-BedNiKu2.js} +4 -4
- package/{q-T8q6HdDu.js → q-BMiiIT9D.js} +3 -3
- package/{ray-DGnWwft7.js → ray-BtXNnWOO.js} +5 -5
- package/{ref-CLVM_Hl7.js → ref-DDMaAXSn.js} +2 -2
- package/{regionBetweenCurveXAxis-C3L9QrWT.js → regionBetweenCurveXAxis--jmUE3tF.js} +5 -5
- package/{regionBetweenCurves-BNPPUOf4.js → regionBetweenCurves-CMeuhWw8.js} +5 -5
- package/{row-BvEnMG5C.js → row-CVGcT-EK.js} +2 -2
- package/{rq-BRtRX7qR.js → rq-BjyEsDhE.js} +2 -2
- package/{rsq-Bnb7k89S.js → rsq-Bkql8awr.js} +2 -2
- package/{section-Da5s5aeW.js → section-90In6qRP.js} +5 -5
- package/{sha256-DT5xJ2Hv-pnlvlmad.js → sha256-DT5xJ2Hv-B1ElrNeS.js} +1 -1
- package/{sideBySide-BURTV01c.js → sideBySide-CvHj7L-j.js} +2 -2
- package/{slider-CTFHsXcS.js → slider-CNuQSBLQ.js} +4 -4
- package/{slopeField-B0YVHyQF.js → slopeField-BJo7f9rx.js} +2 -2
- package/{solution-D40DN3tM.js → solution-CJW2pY_d.js} +4 -4
- package/{spreadsheet-BOuzi2z1.js → spreadsheet-BpxmQK20.js} +2 -2
- package/{sq-CRMkSnZ_.js → sq-DYBpZ6Oq.js} +3 -3
- package/{subsetOfRealsInput-B2D3AU__.js → subsetOfRealsInput-HKyrVNmy.js} +3 -3
- package/{summaryStatistics-Dbc9wuat.js → summaryStatistics-Ub8qsZeA.js} +2 -2
- package/{table-BH0XbrQI.js → table-VU_AofQG.js} +2 -2
- package/{tabular-gVhT1fL1.js → tabular-CmDjz59k.js} +2 -2
- package/{tag-BzCnmdsz.js → tag-C8FeTQI0.js} +2 -2
- package/{text-lnALUrl9.js → text-Duf48MAj.js} +6 -6
- package/{textInput-DJ1xFVsg.js → textInput-DCuTUCng.js} +6 -6
- package/{tooltip-provider-C-RnZKeM.js → tooltip-provider-DOOWHce8.js} +2 -2
- package/{useAnchoredGraphDragHandler-5jJzp9af.js → useAnchoredGraphDragHandler-B5ITE9Ta.js} +1 -1
- package/useDoenetRenderer-CvmNmKn5.js +114 -0
- package/{useFieldCurve-zqcMTb1s.js → useFieldCurve-BbvBaZlO.js} +2 -2
- package/{useSubmitActionWithDelay-DB0sMN8r.js → useSubmitActionWithDelay-CfTnvK6q.js} +2 -2
- package/{vector-D94KVbB9.js → vector-DaajJUGl.js} +7 -7
- package/{vectorField-2pcGpHZU.js → vectorField-DSzOQUUM.js} +2 -2
- package/{video-DcBgpoy3.js → video-DnTK8w9D.js} +4 -4
- package/useDoenetRenderer-D-Tqn2RL.js +0 -114
|
@@ -31813,7 +31813,7 @@ async function cidFromArrayBuffer(data) {
|
|
|
31813
31813
|
await crypto.subtle.digest("SHA-256", new Uint8Array());
|
|
31814
31814
|
digest = (data2) => crypto.subtle.digest("SHA-256", data2);
|
|
31815
31815
|
} catch (e2) {
|
|
31816
|
-
const sha256 = (await import("./sha256-DT5xJ2Hv-
|
|
31816
|
+
const sha256 = (await import("./sha256-DT5xJ2Hv-B1ElrNeS.js").then((n2) => n2.s)).default;
|
|
31817
31817
|
digest = (data2) => sha256(data2, {
|
|
31818
31818
|
asBytes: true
|
|
31819
31819
|
});
|
|
@@ -46470,7 +46470,7 @@ var createAsyncThunk = /* @__PURE__ */ (() => {
|
|
|
46470
46470
|
getState,
|
|
46471
46471
|
extra
|
|
46472
46472
|
});
|
|
46473
|
-
if (isThenable(conditionResult)) {
|
|
46473
|
+
if (isThenable$2(conditionResult)) {
|
|
46474
46474
|
conditionResult = await conditionResult;
|
|
46475
46475
|
}
|
|
46476
46476
|
if (conditionResult === false || abortController.signal.aborted) {
|
|
@@ -46562,7 +46562,7 @@ function unwrapResult(action) {
|
|
|
46562
46562
|
}
|
|
46563
46563
|
return action.payload;
|
|
46564
46564
|
}
|
|
46565
|
-
function isThenable(value) {
|
|
46565
|
+
function isThenable$2(value) {
|
|
46566
46566
|
return value !== null && typeof value === "object" && typeof value.then === "function";
|
|
46567
46567
|
}
|
|
46568
46568
|
var asyncThunkSymbol = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
@@ -48627,7 +48627,7 @@ function DocViewer({
|
|
|
48627
48627
|
for (const rendererClassName of coreInfo.current.rendererTypesInDocument) {
|
|
48628
48628
|
rendererClassNames.push(rendererClassName);
|
|
48629
48629
|
rendererLoaders.push(
|
|
48630
|
-
() => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./renderers/GraphFrame.tsx": () => import("./GraphFrame-
|
|
48630
|
+
() => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./renderers/GraphFrame.tsx": () => import("./GraphFrame-BUt-JfS3.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-B_LNuHDJ.js").then((n2) => n2.m), "./renderers/_error.tsx": () => import("./_error-BFR6Dx2R.js"), "./renderers/alert.tsx": () => import("./alert-BvBjzxnR.js"), "./renderers/angle.tsx": () => import("./angle-B1fy0RpD.js"), "./renderers/answer.tsx": () => import("./answer-BwjOIrRG.js"), "./renderers/asList.tsx": () => import("./asList-owVh4Qos.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-CTibAuH_.js"), "./renderers/boolean.tsx": () => import("./boolean-BnB7cDlk.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-Ci8sV-ul.js"), "./renderers/br.tsx": () => import("./br-C--uedRx.js"), "./renderers/button.tsx": () => import("./button-CjWyiPgH.js"), "./renderers/c.tsx": () => import("./c-Du4dItOk.js"), "./renderers/cell.tsx": () => import("./cell-CJZJNO6e.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-Byu0qOva.js"), "./renderers/circle.tsx": () => import("./circle-DufTqSFD.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-BSOlKqx5.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-CZ5DtrxS.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-CM2PDGMn.js"), "./renderers/containerInline.tsx": () => import("./containerInline-Dc4dXOWw.js"), "./renderers/curve.tsx": () => import("./curve-_xwmrWbL.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-BPJhBGZP.js"), "./renderers/em.tsx": () => import("./em-P5Ir7LW2.js"), "./renderers/embed.tsx": () => import("./embed-DxYpoueh.js"), "./renderers/feedback.tsx": () => import("./feedback-CU-f_v0r.js"), "./renderers/figure.tsx": () => import("./figure-CGpCUrk-.js"), "./renderers/footnote.tsx": () => import("./footnote-Qz0M9M4F.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-oBEOMaOR.js"), "./renderers/graph.tsx": () => import("./graph-DrzOtJcD.js"), "./renderers/hint.tsx": () => import("./hint-B-5ZrHYg.js"), "./renderers/hr.tsx": () => import("./hr-6hNmIYy8.js"), "./renderers/image.tsx": () => import("./image-CA69rFBo.js"), "./renderers/label.tsx": () => import("./label-CqyCDfIH.js"), "./renderers/legend.tsx": () => import("./legend-Cd2OOkV-.js"), "./renderers/line.tsx": () => import("./line-DqjjSrBf.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-z5FRMCG-.js"), "./renderers/list.tsx": () => import("./list-BsKjXfvQ.js"), "./renderers/lq.tsx": () => import("./lq-Dpv614zo.js"), "./renderers/lsq.tsx": () => import("./lsq-r1NJErFB.js"), "./renderers/math.tsx": () => import("./math-BwquEUi6.js"), "./renderers/mathInput.tsx": () => import("./mathInput-YyXd7qBj.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-RLftpl4o.js"), "./renderers/mdash.tsx": () => import("./mdash-BJNi1vPj.js"), "./renderers/nbsp.tsx": () => import("./nbsp-CW2ySvq-.js"), "./renderers/ndash.tsx": () => import("./ndash-B30xR2bv.js"), "./renderers/number.tsx": () => import("./number-CGkXUN8b.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-v0GZq7h-.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-DcKCXuf7.js"), "./renderers/p.tsx": () => import("./p-E5Bn6rPD.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-B5dAde6B.js"), "./renderers/pegboard.tsx": () => import("./pegboard-7GTVjAY7.js"), "./renderers/point.tsx": () => import("./point-CTEv0XVY.js"), "./renderers/polygon.tsx": () => import("./polygon-DObPKjLl.js"), "./renderers/polyline.tsx": () => import("./polyline-BCn9Xqbs.js"), "./renderers/pre.tsx": () => import("./pre-zTahBPrd.js"), "./renderers/prefigure.tsx": () => import("./prefigure-CC9LFoOC.js"), "./renderers/pretzel.tsx": () => import("./pretzel-BedNiKu2.js"), "./renderers/q.tsx": () => import("./q-BMiiIT9D.js"), "./renderers/ray.tsx": () => import("./ray-BtXNnWOO.js"), "./renderers/ref.tsx": () => import("./ref-DDMaAXSn.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis--jmUE3tF.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-CMeuhWw8.js"), "./renderers/row.tsx": () => import("./row-CVGcT-EK.js"), "./renderers/rq.tsx": () => import("./rq-BjyEsDhE.js"), "./renderers/rsq.tsx": () => import("./rsq-Bkql8awr.js"), "./renderers/section.tsx": () => import("./section-90In6qRP.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-CvHj7L-j.js"), "./renderers/slider.tsx": () => import("./slider-CNuQSBLQ.js"), "./renderers/slopeField.tsx": () => import("./slopeField-BJo7f9rx.js"), "./renderers/solution.tsx": () => import("./solution-CJW2pY_d.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-BpxmQK20.js"), "./renderers/sq.tsx": () => import("./sq-DYBpZ6Oq.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-HKyrVNmy.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-Ub8qsZeA.js"), "./renderers/table.tsx": () => import("./table-VU_AofQG.js"), "./renderers/tabular.tsx": () => import("./tabular-CmDjz59k.js"), "./renderers/tag.tsx": () => import("./tag-C8FeTQI0.js"), "./renderers/text.tsx": () => import("./text-Duf48MAj.js"), "./renderers/textInput.tsx": () => import("./textInput-DCuTUCng.js"), "./renderers/vector.tsx": () => import("./vector-DaajJUGl.js"), "./renderers/vectorField.tsx": () => import("./vectorField-DSzOQUUM.js"), "./renderers/video.tsx": () => import("./video-DnTK8w9D.js") }), `./renderers/${rendererClassName}.tsx`, 3)
|
|
48631
48631
|
);
|
|
48632
48632
|
}
|
|
48633
48633
|
const documentComponentInstructions = coreInfo.current.documentToRender;
|
|
@@ -49628,23 +49628,71 @@ var typesettingFailed = function(e2) {
|
|
|
49628
49628
|
var e3;
|
|
49629
49629
|
}), React__default.createElement("span", __assign({}, p2, { style: __assign(__assign({ display: i2 ? "inline" : "block" }, p2.style), { visibility: h2 ? "hidden" : null == (e2 = p2.style) ? void 0 : e2.visibility }), ref: f2 }), c2);
|
|
49630
49630
|
};
|
|
49631
|
+
function isThenable$1(value) {
|
|
49632
|
+
return !!value && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
|
|
49633
|
+
}
|
|
49634
|
+
function untilAborted$1(promise, signal) {
|
|
49635
|
+
return new Promise((resolve, reject2) => {
|
|
49636
|
+
promise.then(
|
|
49637
|
+
(value) => {
|
|
49638
|
+
if (!signal.aborted) {
|
|
49639
|
+
resolve(value);
|
|
49640
|
+
}
|
|
49641
|
+
},
|
|
49642
|
+
(reason) => {
|
|
49643
|
+
if (!signal.aborted) {
|
|
49644
|
+
reject2(reason);
|
|
49645
|
+
}
|
|
49646
|
+
}
|
|
49647
|
+
);
|
|
49648
|
+
});
|
|
49649
|
+
}
|
|
49650
|
+
function untilAbortedEngine$1(engine, signal) {
|
|
49651
|
+
return new Proxy(engine, {
|
|
49652
|
+
get(target, property2, receiver) {
|
|
49653
|
+
const value = Reflect.get(target, property2, receiver);
|
|
49654
|
+
if (property2 === "startup" && value && // MathJax 4 exposes `startup` as a callable function with the
|
|
49655
|
+
// startup members attached; MathJax 3 as a plain object. Either
|
|
49656
|
+
// way, the recursion is what gates `startup.promise` below.
|
|
49657
|
+
(typeof value === "object" || typeof value === "function")) {
|
|
49658
|
+
return untilAbortedEngine$1(value, signal);
|
|
49659
|
+
}
|
|
49660
|
+
if (property2 === "promise" && isThenable$1(value)) {
|
|
49661
|
+
return untilAborted$1(Promise.resolve(value), signal);
|
|
49662
|
+
}
|
|
49663
|
+
if (typeof value === "function") {
|
|
49664
|
+
if (property2 === "typesetClear") {
|
|
49665
|
+
return (...args) => signal.aborted ? void 0 : value.apply(target, args);
|
|
49666
|
+
}
|
|
49667
|
+
if (property2 === "typesetPromise") {
|
|
49668
|
+
return (...args) => signal.aborted ? Promise.resolve() : value.apply(target, args);
|
|
49669
|
+
}
|
|
49670
|
+
}
|
|
49671
|
+
return value;
|
|
49672
|
+
}
|
|
49673
|
+
});
|
|
49674
|
+
}
|
|
49631
49675
|
function MathJaxContext$1({
|
|
49632
49676
|
config: config2,
|
|
49633
49677
|
src,
|
|
49634
49678
|
useExistingMathJax,
|
|
49635
49679
|
timeoutMs,
|
|
49636
49680
|
version: version2 = 4,
|
|
49681
|
+
signal,
|
|
49637
49682
|
children
|
|
49638
49683
|
}) {
|
|
49639
49684
|
const value = useMemo(() => {
|
|
49640
|
-
const
|
|
49685
|
+
const loaded = loadMathJax$1({
|
|
49641
49686
|
config: config2,
|
|
49642
49687
|
src,
|
|
49643
49688
|
useExistingMathJax,
|
|
49644
49689
|
timeoutMs
|
|
49645
49690
|
});
|
|
49691
|
+
const promise = signal ? untilAborted$1(loaded, signal).then(
|
|
49692
|
+
(engine) => untilAbortedEngine$1(engine, signal)
|
|
49693
|
+
) : loaded;
|
|
49646
49694
|
return { version: version2, promise };
|
|
49647
|
-
}, [config2, src, useExistingMathJax, timeoutMs, version2]);
|
|
49695
|
+
}, [config2, src, useExistingMathJax, timeoutMs, version2, signal]);
|
|
49648
49696
|
return /* @__PURE__ */ React__default.createElement(MathJaxBaseContext.Provider, { value }, children);
|
|
49649
49697
|
}
|
|
49650
49698
|
var client = { exports: {} };
|
|
@@ -85771,23 +85819,71 @@ function loadMathJax(options = {}) {
|
|
|
85771
85819
|
});
|
|
85772
85820
|
return promise;
|
|
85773
85821
|
}
|
|
85822
|
+
function isThenable(value) {
|
|
85823
|
+
return !!value && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
|
|
85824
|
+
}
|
|
85825
|
+
function untilAborted(promise, signal) {
|
|
85826
|
+
return new Promise((resolve, reject2) => {
|
|
85827
|
+
promise.then(
|
|
85828
|
+
(value) => {
|
|
85829
|
+
if (!signal.aborted) {
|
|
85830
|
+
resolve(value);
|
|
85831
|
+
}
|
|
85832
|
+
},
|
|
85833
|
+
(reason) => {
|
|
85834
|
+
if (!signal.aborted) {
|
|
85835
|
+
reject2(reason);
|
|
85836
|
+
}
|
|
85837
|
+
}
|
|
85838
|
+
);
|
|
85839
|
+
});
|
|
85840
|
+
}
|
|
85841
|
+
function untilAbortedEngine(engine, signal) {
|
|
85842
|
+
return new Proxy(engine, {
|
|
85843
|
+
get(target, property2, receiver) {
|
|
85844
|
+
const value = Reflect.get(target, property2, receiver);
|
|
85845
|
+
if (property2 === "startup" && value && // MathJax 4 exposes `startup` as a callable function with the
|
|
85846
|
+
// startup members attached; MathJax 3 as a plain object. Either
|
|
85847
|
+
// way, the recursion is what gates `startup.promise` below.
|
|
85848
|
+
(typeof value === "object" || typeof value === "function")) {
|
|
85849
|
+
return untilAbortedEngine(value, signal);
|
|
85850
|
+
}
|
|
85851
|
+
if (property2 === "promise" && isThenable(value)) {
|
|
85852
|
+
return untilAborted(Promise.resolve(value), signal);
|
|
85853
|
+
}
|
|
85854
|
+
if (typeof value === "function") {
|
|
85855
|
+
if (property2 === "typesetClear") {
|
|
85856
|
+
return (...args) => signal.aborted ? void 0 : value.apply(target, args);
|
|
85857
|
+
}
|
|
85858
|
+
if (property2 === "typesetPromise") {
|
|
85859
|
+
return (...args) => signal.aborted ? Promise.resolve() : value.apply(target, args);
|
|
85860
|
+
}
|
|
85861
|
+
}
|
|
85862
|
+
return value;
|
|
85863
|
+
}
|
|
85864
|
+
});
|
|
85865
|
+
}
|
|
85774
85866
|
function MathJaxContext({
|
|
85775
85867
|
config: config2,
|
|
85776
85868
|
src,
|
|
85777
85869
|
useExistingMathJax,
|
|
85778
85870
|
timeoutMs,
|
|
85779
85871
|
version: version2 = 4,
|
|
85872
|
+
signal,
|
|
85780
85873
|
children
|
|
85781
85874
|
}) {
|
|
85782
85875
|
const value = useMemo(() => {
|
|
85783
|
-
const
|
|
85876
|
+
const loaded = loadMathJax({
|
|
85784
85877
|
config: config2,
|
|
85785
85878
|
src,
|
|
85786
85879
|
useExistingMathJax,
|
|
85787
85880
|
timeoutMs
|
|
85788
85881
|
});
|
|
85882
|
+
const promise = signal ? untilAborted(loaded, signal).then(
|
|
85883
|
+
(engine) => untilAbortedEngine(engine, signal)
|
|
85884
|
+
) : loaded;
|
|
85789
85885
|
return { version: version2, promise };
|
|
85790
|
-
}, [config2, src, useExistingMathJax, timeoutMs, version2]);
|
|
85886
|
+
}, [config2, src, useExistingMathJax, timeoutMs, version2, signal]);
|
|
85791
85887
|
return /* @__PURE__ */ React__default.createElement(MathJaxBaseContext.Provider, { value }, children);
|
|
85792
85888
|
}
|
|
85793
85889
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
@@ -111945,6 +112041,7 @@ const virtualKeyboardState = globalThis$1?.virtualKeyboardState || {
|
|
|
111945
112041
|
focusedMathInputSources: /* @__PURE__ */ new Set(),
|
|
111946
112042
|
keyboardDomNode: null,
|
|
111947
112043
|
keyboardReactRoot: null,
|
|
112044
|
+
keyboardMathJaxAbort: null,
|
|
111948
112045
|
registrations: [],
|
|
111949
112046
|
lastActiveRegistrationId: null,
|
|
111950
112047
|
nextRegistrationId: 0
|
|
@@ -112083,14 +112180,22 @@ function TrayWithSharedOpenState({
|
|
|
112083
112180
|
);
|
|
112084
112181
|
}
|
|
112085
112182
|
function renderTray(theme, translate, direction) {
|
|
112086
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
112087
|
-
|
|
112183
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
112184
|
+
MathJaxContext,
|
|
112088
112185
|
{
|
|
112089
|
-
|
|
112090
|
-
|
|
112091
|
-
|
|
112092
|
-
}
|
|
112093
|
-
|
|
112186
|
+
config: mathjaxConfig,
|
|
112187
|
+
version: 4,
|
|
112188
|
+
signal: virtualKeyboardState.keyboardMathJaxAbort?.signal
|
|
112189
|
+
},
|
|
112190
|
+
/* @__PURE__ */ React__default.createElement(
|
|
112191
|
+
TrayWithSharedOpenState,
|
|
112192
|
+
{
|
|
112193
|
+
theme,
|
|
112194
|
+
translate,
|
|
112195
|
+
direction
|
|
112196
|
+
}
|
|
112197
|
+
)
|
|
112198
|
+
);
|
|
112094
112199
|
}
|
|
112095
112200
|
function UniqueKeyboardTray({
|
|
112096
112201
|
onClick,
|
|
@@ -112110,6 +112215,7 @@ function UniqueKeyboardTray({
|
|
|
112110
112215
|
keyboardDomNode.id = "virtual-keyboard-dummy";
|
|
112111
112216
|
document.body.appendChild(keyboardDomNode);
|
|
112112
112217
|
virtualKeyboardState.keyboardDomNode = keyboardDomNode;
|
|
112218
|
+
virtualKeyboardState.keyboardMathJaxAbort = new AbortController();
|
|
112113
112219
|
const root2 = clientExports.createRoot(keyboardDomNode);
|
|
112114
112220
|
virtualKeyboardState.keyboardReactRoot = root2;
|
|
112115
112221
|
virtualKeyboardState.handleFocusChange = () => {
|
|
@@ -112147,6 +112253,8 @@ function UniqueKeyboardTray({
|
|
|
112147
112253
|
);
|
|
112148
112254
|
virtualKeyboardState.handleFocusChange = void 0;
|
|
112149
112255
|
}
|
|
112256
|
+
virtualKeyboardState.keyboardMathJaxAbort?.abort();
|
|
112257
|
+
virtualKeyboardState.keyboardMathJaxAbort = null;
|
|
112150
112258
|
if (virtualKeyboardState.keyboardReactRoot) {
|
|
112151
112259
|
const root2 = virtualKeyboardState.keyboardReactRoot;
|
|
112152
112260
|
setTimeout(() => {
|
|
@@ -112258,7 +112366,7 @@ function ExternalAwareVirtualKeyboard({
|
|
|
112258
112366
|
}
|
|
112259
112367
|
const LazyInner = React__default.lazy(async () => {
|
|
112260
112368
|
const module = await importRendererWithRetry(
|
|
112261
|
-
() => import("./EditorViewer-
|
|
112369
|
+
() => import("./EditorViewer-CSBc8Zm8.js"),
|
|
112262
112370
|
"EditorViewer"
|
|
112263
112371
|
);
|
|
112264
112372
|
return { default: module.EditorViewer };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as hostProvidedWorkerUrl, o as doenetGlobalConfig } from "./doenetml-
|
|
2
|
-
import { D, a, c, b, d, f, g, e, h, i, m, j, r, s, k, l } from "./doenetml-
|
|
1
|
+
import { n as hostProvidedWorkerUrl, o as doenetGlobalConfig } from "./doenetml-D2WIeBj6.js";
|
|
2
|
+
import { D, a, c, b, d, f, g, e, h, i, m, j, r, s, k, l } from "./doenetml-D2WIeBj6.js";
|
|
3
3
|
const workerPath = "./doenetml-worker/index.js";
|
|
4
4
|
function resolveWorkerUrl() {
|
|
5
5
|
try {
|