@doenet/doenetml 0.7.27-dev.882 → 0.7.27-dev.883
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-CSrOes8c.js → AnswerResponseButton-O6QkA8hS.js} +2 -2
- package/{ClickTarget-DCkQqIJu.js → ClickTarget-CyifAnlZ.js} +1 -1
- package/{Description-CUFepz4p.js → Description-CP7x6g7P.js} +1 -1
- package/{EditorViewer-BY0oEC_N.js → EditorViewer-BwVvyNCc.js} +5 -5
- package/{GraphFrame-rZ9hxnSh.js → GraphFrame-CTK8MOnv.js} +2 -2
- package/{JSXGraphRenderer-BHxmaRwT.js → JSXGraphRenderer-B1dkKVU_.js} +1 -1
- package/{NonInlineMediaWrapper-CsUDzy0m.js → NonInlineMediaWrapper-DN7m_Pym.js} +1 -1
- package/Viewer/renderers/mathquill/mathquill.d.ts.map +1 -1
- package/{_blank-BEq5eK05.js → _blank-N5qo4xcd.js} +3 -3
- package/{_error-Dw5fgWas.js → _error-sm37t60j.js} +2 -2
- package/{alert-DF5fKswP.js → alert-DRdK2rN6.js} +3 -3
- package/{angle-CsGJwcPq.js → angle-BaW05dnu.js} +6 -6
- package/{answer-DunUXDgl.js → answer-DW9itV3c.js} +6 -6
- package/{asList-Cj9lz09u.js → asList-CUotDX-D.js} +2 -2
- package/{blockQuote-NZW4uhQe.js → blockQuote-LjC4jLEv.js} +3 -3
- package/{boolean-B7_HOzC2.js → boolean-B2C2UqKW.js} +2 -2
- package/{booleanInput-CkAWKqN6.js → booleanInput-DhnD8pFM.js} +7 -7
- package/{br-XdQhthkT.js → br-DPGYGh3l.js} +2 -2
- package/{button-iRVR_hAn.js → button-B-inuTTX.js} +5 -5
- package/{c-m_gDHvHZ.js → c-C3v3l2KU.js} +3 -3
- package/{cell-CbgtE5u7.js → cell-ByN7BkFZ.js} +3 -3
- package/{chart-DUvYv57Y.js → chart-D50ArZJQ.js} +4 -4
- package/{choiceInput-DnjfNIQI.js → choiceInput-pWAlrsXS.js} +7 -7
- package/{circle-BKVihmqT.js → circle-C4WqUS89.js} +6 -6
- package/{cobwebPolyline-DBaJ8zZt.js → cobwebPolyline-BsbIjzs0.js} +4 -4
- package/{codeEditor-DjNaQgjs.js → codeEditor-CvdzeQ5L.js} +2 -2
- package/{composites-rzKsL5Oe.js → composites-CF401ujF.js} +1 -1
- package/{containerBlock-B2Q9Odgw.js → containerBlock-Cb4MnPQh.js} +4 -4
- package/{containerInline-CTyesPea.js → containerInline-ZKdsYDel.js} +4 -4
- package/{curve-CreuQ54N.js → curve-91XQm81C.js} +4 -4
- package/{delete-aiJtPaSd.js → delete-Cj74AKUb.js} +3 -3
- package/{doenetml-dcX2EsRT.js → doenetml-5SWFSbLT.js} +3 -3
- 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-qQioG5hQ.js → ellipsis-BQcGURZz.js} +2 -2
- package/{em-Bl3PISvT.js → em-BYm_5QM_.js} +3 -3
- package/{embed-DymS7-xt.js → embed-BShFfDQB.js} +2 -2
- package/{feedback-eH8cPpJ6.js → feedback-CT3v8J6U.js} +4 -4
- package/{figure-DCg6aUO3.js → figure-Dmm6_1Ua.js} +3 -3
- package/{fillPatterns-BnCw-UEj.js → fillPatterns-DfG-I7Kd.js} +1 -1
- package/{footnote-B8blD_EC.js → footnote-B7aJbSX3.js} +3 -3
- package/{fractionInput-Bn-VADvU.js → fractionInput-sLpxmi2_.js} +5 -5
- package/{graph-CTYA9nl2.js → graph-CFF-RIRY.js} +5 -5
- package/{hint-maGiswRr.js → hint-nn2UvaM9.js} +5 -5
- package/{hovercard-store-CW-JxGh2.js → hovercard-store-Bq7ZOM76.js} +1 -1
- package/{hr-Cjj8KOwy.js → hr-R0pTOMoa.js} +2 -2
- package/{image-DWy40pb_.js → image-iYcFt8Zi.js} +8 -8
- package/{index-AmO8vXL7.js → index-BK4FfzPc.js} +1 -1
- package/{index.es-D1y0G_O4.js → index.es-_Bg2ps2T.js} +1 -1
- package/index.js +1 -1
- package/{inputLabel-9X9Co3yM.js → inputLabel-Bzs9wldn.js} +3 -3
- package/{insert-Brklr5hD.js → insert--XUj8aNW.js} +3 -3
- package/{label-DVe6qA4E.js → label-iVmtfbz-.js} +9 -9
- package/{legend-YYYg9UUb.js → legend-DqozyejQ.js} +4 -4
- package/{line-DP1d62vS.js → line-Bsc_ZKR2.js} +6 -6
- package/{lineFamilyDragHandlers-DJGgl3fD.js → lineFamilyDragHandlers-BOqvQb54.js} +1 -1
- package/{lineSegment-CDBPyCpi.js → lineSegment-BbHrWlQX.js} +5 -5
- package/{list-DXC2jZ8h.js → list-BsrJRiSg.js} +4 -4
- package/{lq-Bg_WG94x.js → lq-DBMOX7Xc.js} +2 -2
- package/{lsq-odQakbnr.js → lsq-evozJ6a9.js} +2 -2
- package/{markupRenderer-D2htl91P.js → markupRenderer-llAWVTDc.js} +1 -1
- package/{math-DHYYfr3n.js → math-BEe2AZ23.js} +8 -8
- package/{mathInput-cBXllLl6.js → mathInput-DLXm5R6S.js} +138 -12
- package/{mathInputSlots-Cs980pxZ.js → mathInputSlots-Cp4ez1jM.js} +1 -1
- package/{matrixInput-OBO9a5k1.js → matrixInput-BFhYLlkY.js} +5 -5
- package/{mdash-DwLnF5b6.js → mdash-BIOsklRL.js} +2 -2
- package/{nbsp-CebMpsNE.js → nbsp-DjpJNoO-.js} +2 -2
- package/{ndash-C4wyEhUg.js → ndash-C-DFXzvn.js} +2 -2
- package/{number-zJVr1ADn.js → number-DXNWzNSn.js} +8 -8
- package/{orbitalDiagram-D7F_2hM7.js → orbitalDiagram-Ag1b5y3T.js} +2 -2
- package/{orbitalDiagramInput-DSbHgsAd.js → orbitalDiagramInput-BDZXC83e.js} +2 -2
- package/{p-is2amDt8.js → p-C11wdFJA.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-B12TU0eF.js → paginatorControls-5EtKuUvf.js} +2 -2
- package/{pegboard-d6gfzhII.js → pegboard-CbZ0TJJN.js} +3 -3
- package/{point-NaocP8hR.js → point-xxecXDtA.js} +6 -6
- package/{polygon-Ci2MNniN.js → polygon-D1o6eEes.js} +6 -6
- package/{polyline-Dsx9clzJ.js → polyline-B2q1zxSA.js} +5 -5
- package/{pre-C4q3PfSi.js → pre-Ci3-KFiU.js} +3 -3
- package/{prefigure-Co4wYbe3.js → prefigure-BvIXFPCu.js} +1 -1
- package/{pretzel-8T1Qa4sD.js → pretzel-BQcvDOum.js} +4 -4
- package/{q-DAeoN3Hh.js → q-DpzXTwvY.js} +3 -3
- package/{ray-BA7bVRTg.js → ray-CGcL3wXW.js} +5 -5
- package/{ref-DXK89EPb.js → ref-C96F6YWW.js} +3 -3
- package/{regionBetweenCurveXAxis-ciridAq3.js → regionBetweenCurveXAxis-VFxjeTx1.js} +5 -5
- package/{regionBetweenCurves-jzFNBpU3.js → regionBetweenCurves-BqIStf5B.js} +5 -5
- package/{row-CieQBldo.js → row-D-sQ-tbS.js} +2 -2
- package/{rq-DoipvlTk.js → rq-DPz7fmBH.js} +2 -2
- package/{rsq-BqX6jBV4.js → rsq-DUnLj9zb.js} +2 -2
- package/{section-DlZ_bsn7.js → section-DqguZIEe.js} +6 -6
- package/{sha256-8sXzDnE0-Ds_1NFMh.js → sha256-8sXzDnE0-c-d4EZQ-.js} +1 -1
- package/{sideBySide-t2LKjfhM.js → sideBySide-O85NZWW4.js} +2 -2
- package/{slider-Fbl4YNaT.js → slider-DMY0nH26.js} +4 -4
- package/{slopeField-BYmpkJ_t.js → slopeField-CZSF8kw5.js} +2 -2
- package/{solution-CElVw-M8.js → solution-CwwpioJG.js} +4 -4
- package/{spreadsheet-CawKIRV0.js → spreadsheet-BhzueZ9T.js} +2 -2
- package/{sq-B1GsfLba.js → sq-D370rS0g.js} +3 -3
- package/{subsetOfRealsInput-BeT-gW1O.js → subsetOfRealsInput-D931zOam.js} +2 -2
- package/{summaryStatistics-v5hIio9E.js → summaryStatistics-CzT4vo-g.js} +2 -2
- package/{table-cPB_Nl8D.js → table-Bj82VLpZ.js} +2 -2
- package/{tabular-qKgWcWgx.js → tabular-Ct_U-QKd.js} +2 -2
- package/{tag-CqqViuxK.js → tag-Bb7BuMsj.js} +2 -2
- package/{text-Bskxwp9m.js → text-BHimaHF8.js} +8 -8
- package/{textInput-BkXQgmVV.js → textInput-DNREClYL.js} +8 -8
- package/{tooltip-provider-CBWITpaP.js → tooltip-provider-BzXzxVWo.js} +2 -2
- package/{useAnchoredGraphDragHandler-DYcXcNLG.js → useAnchoredGraphDragHandler-ZFAqNk0y.js} +1 -1
- package/useDoenetRenderer-B06Vg5B2.js +114 -0
- package/{useFieldCurve-BSgWkgfT.js → useFieldCurve-6dukzc5C.js} +2 -2
- package/{useSubmitActionWithDelay-Cgy1BRYg.js → useSubmitActionWithDelay-LcMrTBQf.js} +2 -2
- package/{vector-DOESRPU2.js → vector-DnTGOv52.js} +6 -6
- package/{vectorField-DADmthJy.js → vectorField-BWA8Wdj8.js} +2 -2
- package/{video-E0r7pewz.js → video-qBXQXLSx.js} +4 -4
- package/useDoenetRenderer-CR_peeui.js +0 -114
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { q as jsxRuntimeExports, u as useContentT, t as useAppSelector, aK as keyboardSlice, aL as FocusedMathInputContext, aM as LegacyKeyboardTrayContext, aN as VirtualKeyboardAvailableContext, aO as isInVirtualKeyboardTray, M as toNumberOrNaN, aP as PopoverAnchor, Y as MathJax, aQ as subscribeToPrimaryPointerType, aR as hasCoarsePrimaryPointer, ag as usePopoverStore, a9 as useStoreState, x as useT, z as useChromeLangDir, aj as Popover, aS as getVirtualKeyboardTrayElement } from "./doenetml-
|
|
1
|
+
import { q as jsxRuntimeExports, u as useContentT, t as useAppSelector, aK as keyboardSlice, aL as FocusedMathInputContext, aM as LegacyKeyboardTrayContext, aN as VirtualKeyboardAvailableContext, aO as isInVirtualKeyboardTray, M as toNumberOrNaN, aP as PopoverAnchor, Y as MathJax, aQ as subscribeToPrimaryPointerType, aR as hasCoarsePrimaryPointer, ag as usePopoverStore, a9 as useStoreState, x as useT, z as useChromeLangDir, aj as Popover, aS as getVirtualKeyboardTrayElement } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default, { useRef, useEffect, useContext, useState, useMemo } from "react";
|
|
3
3
|
import { createPortal } from "react-dom";
|
|
4
|
-
import { j as jxg } from "./JSXGraphRenderer-
|
|
5
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
6
|
-
import { P as PropTypes } from "./index-
|
|
7
|
-
import { D as DescriptionPopover, P as PopoverArrow } from "./Description-
|
|
8
|
-
import { u as useRenderedLabel } from "./inputLabel-
|
|
4
|
+
import { j as jxg } from "./JSXGraphRenderer-B1dkKVU_.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
6
|
+
import { P as PropTypes } from "./index-BK4FfzPc.js";
|
|
7
|
+
import { D as DescriptionPopover, P as PopoverArrow } from "./Description-CP7x6g7P.js";
|
|
8
|
+
import { u as useRenderedLabel } from "./inputLabel-Bzs9wldn.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
10
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-LcMrTBQf.js";
|
|
11
11
|
import { a as addValidationStateToShortDescription } from "./validationState-DI_lxk1a.js";
|
|
12
|
-
import { B as BoardContext, T as TEXT_LAYER_OFFSET } from "./graph-
|
|
12
|
+
import { B as BoardContext, T as TEXT_LAYER_OFFSET } from "./graph-CFF-RIRY.js";
|
|
13
13
|
import me from "math-expressions";
|
|
14
14
|
import { e as getPositionFromAnchorByCoordinate, P as POINTER_DRAG_THRESHOLD } from "./graph-CfMpl1HY.js";
|
|
15
|
-
import { b as useInMathSlot, c as useMathSlotEditing } from "./mathInputSlots-
|
|
15
|
+
import { b as useInMathSlot, c as useMathSlotEditing } from "./mathInputSlots-Cp4ez1jM.js";
|
|
16
16
|
import { u as useMathJaxOutOfTabOrder } from "./useMathJaxOutOfTabOrder-C0wsYqBF.js";
|
|
17
17
|
const DEFAULT_MATH_INPUT_FUNCTION_NAMES = [
|
|
18
18
|
"arg",
|
|
@@ -2303,11 +2303,88 @@ var saneKeyboardEvents = /* @__PURE__ */ (function() {
|
|
|
2303
2303
|
function select(text) {
|
|
2304
2304
|
everyTick.trigger();
|
|
2305
2305
|
everyTick.clearListener();
|
|
2306
|
+
if (composition) {
|
|
2307
|
+
shouldBeSelected = false;
|
|
2308
|
+
return;
|
|
2309
|
+
}
|
|
2306
2310
|
if (textarea instanceof HTMLTextAreaElement) textarea.value = text;
|
|
2307
2311
|
if (text) guardedTextareaSelect();
|
|
2308
2312
|
shouldBeSelected = !!text;
|
|
2309
2313
|
}
|
|
2310
2314
|
var shouldBeSelected = false;
|
|
2315
|
+
var lastInput = null;
|
|
2316
|
+
var pendingBackspace = null;
|
|
2317
|
+
var PENDING_BACKSPACE_MS = 100;
|
|
2318
|
+
function applyPendingBackspace() {
|
|
2319
|
+
if (!pendingBackspace) return;
|
|
2320
|
+
var e = pendingBackspace.event;
|
|
2321
|
+
clearTimeout(pendingBackspace.timeoutId);
|
|
2322
|
+
pendingBackspace = null;
|
|
2323
|
+
if (textarea.isConnected === false) return;
|
|
2324
|
+
if (controller.options && controller.options.overrideKeystroke) {
|
|
2325
|
+
controller.options.overrideKeystroke("Backspace", e);
|
|
2326
|
+
} else {
|
|
2327
|
+
controller.keystroke("Backspace", e);
|
|
2328
|
+
}
|
|
2329
|
+
}
|
|
2330
|
+
function dropPendingBackspace() {
|
|
2331
|
+
if (!pendingBackspace) return;
|
|
2332
|
+
clearTimeout(pendingBackspace.timeoutId);
|
|
2333
|
+
pendingBackspace = null;
|
|
2334
|
+
}
|
|
2335
|
+
function isOnScreenKeyboardInsert(input) {
|
|
2336
|
+
return !!keydown && (keydown.key === "Unidentified" || keydown.key === "Process") && !keydown.ctrlKey && !keydown.altKey && !keydown.metaKey && !!input && input.type === "input" && input.inputType === "insertText" && !input.isComposing && textarea instanceof HTMLTextAreaElement && input.data === textarea.value;
|
|
2337
|
+
}
|
|
2338
|
+
var composition = null;
|
|
2339
|
+
var compositionJustEnded = false;
|
|
2340
|
+
function typeCharacter(ch) {
|
|
2341
|
+
if (controller.options && controller.options.overrideTypedText) {
|
|
2342
|
+
controller.options.overrideTypedText(ch);
|
|
2343
|
+
} else {
|
|
2344
|
+
controller.typedText(ch);
|
|
2345
|
+
}
|
|
2346
|
+
}
|
|
2347
|
+
function pressBackspace(e) {
|
|
2348
|
+
if (controller.options && controller.options.overrideKeystroke) {
|
|
2349
|
+
controller.options.overrideKeystroke("Backspace", e);
|
|
2350
|
+
} else {
|
|
2351
|
+
controller.keystroke("Backspace", e);
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
function recordCursor() {
|
|
2355
|
+
var cursor = controller.cursor;
|
|
2356
|
+
composition.parent = cursor && cursor.parent;
|
|
2357
|
+
composition.left = cursor && cursor[L];
|
|
2358
|
+
}
|
|
2359
|
+
function followComposition(text, e) {
|
|
2360
|
+
var shown = composition.shown;
|
|
2361
|
+
var cursor = controller.cursor;
|
|
2362
|
+
if (cursor && (cursor.parent !== composition.parent || cursor[L] !== composition.left))
|
|
2363
|
+
composition.floor = shown.length;
|
|
2364
|
+
var common = 0;
|
|
2365
|
+
while (common < shown.length && common < text.length && shown[common] === text[common])
|
|
2366
|
+
common++;
|
|
2367
|
+
var keep = Math.max(common, composition.floor);
|
|
2368
|
+
for (var k = shown.length; k > keep; k--) pressBackspace(e);
|
|
2369
|
+
for (var j = keep; j < text.length; j++) typeCharacter(text[j]);
|
|
2370
|
+
composition.shown = text;
|
|
2371
|
+
composition.floor = Math.min(composition.floor, text.length);
|
|
2372
|
+
recordCursor();
|
|
2373
|
+
}
|
|
2374
|
+
function onCompositionStart() {
|
|
2375
|
+
composition = null;
|
|
2376
|
+
if (keydown && keydown.key === "Unidentified" && keydown.keyCode === 229 && !keydown.ctrlKey && !keydown.altKey && !keydown.metaKey && textarea instanceof HTMLTextAreaElement && (textarea.value === "" || textarea.selectionStart === 0 && textarea.selectionEnd === textarea.value.length)) {
|
|
2377
|
+
composition = { shown: "", floor: 0 };
|
|
2378
|
+
recordCursor();
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
function onCompositionEnd(e) {
|
|
2382
|
+
if (!composition) return;
|
|
2383
|
+
followComposition(e.data || "", e);
|
|
2384
|
+
composition = null;
|
|
2385
|
+
compositionJustEnded = true;
|
|
2386
|
+
if (textarea instanceof HTMLTextAreaElement) textarea.value = "";
|
|
2387
|
+
}
|
|
2311
2388
|
function hasSelection() {
|
|
2312
2389
|
if (!("selectionStart" in textarea)) return false;
|
|
2313
2390
|
if (!(textarea instanceof HTMLTextAreaElement)) return false;
|
|
@@ -2324,12 +2401,25 @@ var saneKeyboardEvents = /* @__PURE__ */ (function() {
|
|
|
2324
2401
|
}
|
|
2325
2402
|
}
|
|
2326
2403
|
function onKeydown(e) {
|
|
2404
|
+
if (pendingBackspace) {
|
|
2405
|
+
if (e.key === "Enter" || e.keyCode === 13) {
|
|
2406
|
+
dropPendingBackspace();
|
|
2407
|
+
} else {
|
|
2408
|
+
applyPendingBackspace();
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2327
2411
|
everyTick.trigger(e);
|
|
2328
2412
|
if (e.target !== textarea) return;
|
|
2329
2413
|
keydown = e;
|
|
2330
2414
|
keypress = null;
|
|
2415
|
+
lastInput = null;
|
|
2331
2416
|
if (shouldBeSelected)
|
|
2332
2417
|
everyTick.listenOnce(function(e2) {
|
|
2418
|
+
if (isOnScreenKeyboardInsert(e2)) {
|
|
2419
|
+
everyTick.listen(typedText);
|
|
2420
|
+
return;
|
|
2421
|
+
}
|
|
2422
|
+
if (composition) return;
|
|
2333
2423
|
if (!(e2 && e2.type === "focusout")) {
|
|
2334
2424
|
guardedTextareaSelect();
|
|
2335
2425
|
}
|
|
@@ -2350,6 +2440,19 @@ var saneKeyboardEvents = /* @__PURE__ */ (function() {
|
|
|
2350
2440
|
function onKeyup(e) {
|
|
2351
2441
|
everyTick.trigger(e);
|
|
2352
2442
|
if (e.target !== textarea) return;
|
|
2443
|
+
if (keydown && keydown.key === "Unidentified" && keydown.keyCode === 229 && e.key === "Unidentified" && e.keyCode === 229 && !keydown.ctrlKey && !keydown.altKey && !keydown.metaKey && !keypress && !lastInput && !compositionJustEnded && textarea instanceof HTMLTextAreaElement && textarea.value === "") {
|
|
2444
|
+
keydown = null;
|
|
2445
|
+
applyPendingBackspace();
|
|
2446
|
+
pendingBackspace = {
|
|
2447
|
+
event: e,
|
|
2448
|
+
timeoutId: setTimeout(
|
|
2449
|
+
applyPendingBackspace,
|
|
2450
|
+
PENDING_BACKSPACE_MS
|
|
2451
|
+
)
|
|
2452
|
+
};
|
|
2453
|
+
return;
|
|
2454
|
+
}
|
|
2455
|
+
compositionJustEnded = false;
|
|
2353
2456
|
if (!!keydown && !keypress) {
|
|
2354
2457
|
if (!isArrowKey(e)) {
|
|
2355
2458
|
everyTick.listen(typedText);
|
|
@@ -2362,7 +2465,8 @@ var saneKeyboardEvents = /* @__PURE__ */ (function() {
|
|
|
2362
2465
|
if (hasSelection()) return;
|
|
2363
2466
|
if (!(textarea instanceof HTMLTextAreaElement)) return;
|
|
2364
2467
|
var text = textarea.value;
|
|
2365
|
-
|
|
2468
|
+
var insertedByOnScreenKeyboard = isOnScreenKeyboardInsert(lastInput);
|
|
2469
|
+
if (keydown && !insertedByOnScreenKeyboard && (keydown.key === "Unidentified" || !keydown.altKey && keydown.ctrlKey && !keydown.metaKey && keydown.shiftKey && (keydown.key === "U" || keydown.key === "Process")))
|
|
2366
2470
|
return;
|
|
2367
2471
|
if (text.length === 1) {
|
|
2368
2472
|
textarea.value = "";
|
|
@@ -2371,6 +2475,13 @@ var saneKeyboardEvents = /* @__PURE__ */ (function() {
|
|
|
2371
2475
|
} else {
|
|
2372
2476
|
controller.typedText(text);
|
|
2373
2477
|
}
|
|
2478
|
+
} else if (insertedByOnScreenKeyboard && text.length > 1) {
|
|
2479
|
+
textarea.value = "";
|
|
2480
|
+
if (/[\\^_{}]/.test(text) && latexMathParser.skip(Parser.eof).or(Parser.all.result(false)).parse(text)) {
|
|
2481
|
+
controller.paste(text);
|
|
2482
|
+
} else {
|
|
2483
|
+
Array.from(text).forEach(typeCharacter);
|
|
2484
|
+
}
|
|
2374
2485
|
} else maybeReselect();
|
|
2375
2486
|
}
|
|
2376
2487
|
function maybeReselect() {
|
|
@@ -2380,12 +2491,17 @@ var saneKeyboardEvents = /* @__PURE__ */ (function() {
|
|
|
2380
2491
|
}
|
|
2381
2492
|
}
|
|
2382
2493
|
function onBlur() {
|
|
2494
|
+
applyPendingBackspace();
|
|
2383
2495
|
keydown = null;
|
|
2384
2496
|
keypress = null;
|
|
2497
|
+
lastInput = null;
|
|
2498
|
+
composition = null;
|
|
2499
|
+
compositionJustEnded = false;
|
|
2385
2500
|
everyTick.clearListener();
|
|
2386
2501
|
if (textarea instanceof HTMLTextAreaElement) textarea.value = "";
|
|
2387
2502
|
}
|
|
2388
2503
|
function onPaste(e) {
|
|
2504
|
+
applyPendingBackspace();
|
|
2389
2505
|
everyTick.trigger();
|
|
2390
2506
|
if (e.target !== textarea) return;
|
|
2391
2507
|
if (document.activeElement !== textarea) {
|
|
@@ -2399,6 +2515,10 @@ var saneKeyboardEvents = /* @__PURE__ */ (function() {
|
|
|
2399
2515
|
});
|
|
2400
2516
|
}
|
|
2401
2517
|
function onInput(e) {
|
|
2518
|
+
lastInput = e;
|
|
2519
|
+
compositionJustEnded = false;
|
|
2520
|
+
if (composition && e.inputType === "insertCompositionText")
|
|
2521
|
+
followComposition(e.data || "", e);
|
|
2402
2522
|
everyTick.trigger(e);
|
|
2403
2523
|
}
|
|
2404
2524
|
if (controller.KIND_OF_MQ === "StaticMath") {
|
|
@@ -2426,7 +2546,10 @@ var saneKeyboardEvents = /* @__PURE__ */ (function() {
|
|
|
2426
2546
|
everyTick.trigger();
|
|
2427
2547
|
e.preventDefault();
|
|
2428
2548
|
},
|
|
2429
|
-
input: onInput
|
|
2549
|
+
input: onInput,
|
|
2550
|
+
// DOENET (#2557)
|
|
2551
|
+
compositionstart: onCompositionStart,
|
|
2552
|
+
compositionend: onCompositionEnd
|
|
2430
2553
|
});
|
|
2431
2554
|
} else {
|
|
2432
2555
|
controller.addTextareaEventListeners({
|
|
@@ -2445,7 +2568,10 @@ var saneKeyboardEvents = /* @__PURE__ */ (function() {
|
|
|
2445
2568
|
});
|
|
2446
2569
|
},
|
|
2447
2570
|
paste: onPaste,
|
|
2448
|
-
input: onInput
|
|
2571
|
+
input: onInput,
|
|
2572
|
+
// DOENET (#2557)
|
|
2573
|
+
compositionstart: onCompositionStart,
|
|
2574
|
+
compositionend: onCompositionEnd
|
|
2449
2575
|
});
|
|
2450
2576
|
}
|
|
2451
2577
|
return { select };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as jsxRuntimeExports, X as MATH_INPUT_SLOT_PATTERN } from "./doenetml-
|
|
1
|
+
import { q as jsxRuntimeExports, X as MATH_INPUT_SLOT_PATTERN } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import { useContext, createContext, useRef, useState, useCallback, useLayoutEffect, useMemo } from "react";
|
|
3
3
|
import { flushSync } from "react-dom";
|
|
4
4
|
function sameBox(a, b) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { x as useT, u as useContentT, q as jsxRuntimeExports, V as ActionButtonGroup, W as ActionButton, Y as MathJax } from "./doenetml-
|
|
1
|
+
import { x as useT, u as useContentT, q as jsxRuntimeExports, V as ActionButtonGroup, W as ActionButton, Y as MathJax } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
6
|
-
import { D as DescriptionPopover } from "./Description-
|
|
7
|
-
import { u as useRenderedLabel } from "./inputLabel-
|
|
5
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-LcMrTBQf.js";
|
|
6
|
+
import { D as DescriptionPopover } from "./Description-CP7x6g7P.js";
|
|
7
|
+
import { u as useRenderedLabel } from "./inputLabel-Bzs9wldn.js";
|
|
8
8
|
const matrixInput = React__default.memo(function MatrixInput(props) {
|
|
9
9
|
let { id, SVs, actions, children, callAction } = useDoenetRenderer(props);
|
|
10
10
|
const renderedLabel = useRenderedLabel({ SVs, children });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as jsxRuntimeExports } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
4
4
|
const mdash = React__default.memo(function Mdash(props) {
|
|
5
5
|
let { SVs } = useDoenetRenderer(props, false);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as jsxRuntimeExports } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
4
4
|
const nbsp = React__default.memo(function Nbsp(props) {
|
|
5
5
|
let { SVs } = useDoenetRenderer(props, false);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as jsxRuntimeExports } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
4
4
|
const ndash = React__default.memo(function Ndash(props) {
|
|
5
5
|
let { SVs } = useDoenetRenderer(props);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { F as DocContext, M as toNumberOrNaN, q as jsxRuntimeExports, G as textRendererStyle, H as DynamicMath } from "./doenetml-
|
|
1
|
+
import { F as DocContext, M as toNumberOrNaN, q as jsxRuntimeExports, G as textRendererStyle, H as DynamicMath } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default, { useRef, useContext } from "react";
|
|
3
|
-
import { j as jxg } from "./JSXGraphRenderer-
|
|
4
|
-
import { B as BoardContext, T as TEXT_LAYER_OFFSET } from "./graph-
|
|
5
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { j as jxg } from "./JSXGraphRenderer-B1dkKVU_.js";
|
|
4
|
+
import { B as BoardContext, T as TEXT_LAYER_OFFSET } from "./graph-CFF-RIRY.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
6
6
|
import me from "math-expressions";
|
|
7
7
|
import { e as getPositionFromAnchorByCoordinate } from "./graph-CfMpl1HY.js";
|
|
8
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
9
|
-
import { I as InputLabelContext } from "./inputLabel-
|
|
8
|
+
import { ChoiceInputInlineContext } from "./choiceInput-pWAlrsXS.js";
|
|
9
|
+
import { I as InputLabelContext } from "./inputLabel-Bzs9wldn.js";
|
|
10
10
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./gestureId-CKrHulGi.js";
|
|
11
11
|
import { u as useDraggableRefs } from "./useDraggableRefs-QaTfkVuD.js";
|
|
12
|
-
import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-
|
|
12
|
+
import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-ZFAqNk0y.js";
|
|
13
13
|
import { u as useJSXGraphCleanup } from "./useJSXGraphCleanup-BNk4sn6x.js";
|
|
14
14
|
import { e as resolveTextColor, f as resolveBackgroundColor } from "./styleColors-BrCvjxze.js";
|
|
15
|
-
import { u as useClickTargetAllowed, C as ClickTargetButton } from "./ClickTarget-
|
|
15
|
+
import { u as useClickTargetAllowed, C as ClickTargetButton } from "./ClickTarget-CyifAnlZ.js";
|
|
16
16
|
const number = React__default.memo(function NumberComponent(props) {
|
|
17
17
|
let { componentIdx, id, SVs, actions, callAction } = useDoenetRenderer(props);
|
|
18
18
|
NumberComponent.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
4
4
|
import { l as ltrIslandProps } from "./direction-BwrU7jHk.js";
|
|
5
5
|
const ORBITAL_ARROW_STYLE = {
|
|
6
6
|
fill: "none",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { x as useT, J as useRecordVisibilityChanges, q as jsxRuntimeExports, P as Button2 } from "./doenetml-
|
|
1
|
+
import { x as useT, J as useRecordVisibilityChanges, q as jsxRuntimeExports, P as Button2 } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
4
4
|
import { l as ltrIslandProps } from "./direction-BwrU7jHk.js";
|
|
5
5
|
const ORBITAL_ARROW_STYLE = {
|
|
6
6
|
fill: "none",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as useContentT, J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useContentT, J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
5
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites-CF401ujF.js";
|
|
5
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-LcMrTBQf.js";
|
|
6
6
|
const p = React__default.memo(function P(props) {
|
|
7
7
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
8
8
|
const tContent = useContentT();
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@doenet/doenetml",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "Semantic markup for building interactive web activities",
|
|
5
|
-
"version": "0.7.27-dev.
|
|
5
|
+
"version": "0.7.27-dev.883",
|
|
6
6
|
"license": "AGPL-3.0-or-later",
|
|
7
7
|
"homepage": "https://github.com/Doenet/DoenetML#readme",
|
|
8
8
|
"repository": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as jsxRuntimeExports, P as Button2 } from "./doenetml-
|
|
1
|
+
import { q as jsxRuntimeExports, P as Button2 } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
4
4
|
const paginatorControls = React__default.memo(function PaginatorControls(props) {
|
|
5
5
|
let { id, SVs, actions, callAction } = useDoenetRenderer(props, false);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
2
|
-
import { j as jxg } from "./JSXGraphRenderer-
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { B as BoardContext, a as BASE_LAYER_OFFSET } from "./graph-
|
|
2
|
+
import { j as jxg } from "./JSXGraphRenderer-B1dkKVU_.js";
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
4
|
+
import { B as BoardContext, a as BASE_LAYER_OFFSET } from "./graph-CFF-RIRY.js";
|
|
5
5
|
import me from "math-expressions";
|
|
6
6
|
const { round } = me.math;
|
|
7
7
|
function latticeIsDrawable(...range) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { F as DocContext, G as textRendererStyle, q as jsxRuntimeExports, H as DynamicMath } from "./doenetml-
|
|
1
|
+
import { F as DocContext, G as textRendererStyle, q as jsxRuntimeExports, H as DynamicMath } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { r as removeJXGEventHandlers, j as jxg, s as syncLayer, a as syncWithLabelToggle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
5
|
-
import { B as BoardContext, P as POINT_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { r as removeJXGEventHandlers, j as jxg, s as syncLayer, a as syncWithLabelToggle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-B1dkKVU_.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
5
|
+
import { B as BoardContext, P as POINT_LAYER_OFFSET } from "./graph-CFF-RIRY.js";
|
|
6
6
|
import { c as characterizeOffGraphPoint } from "./offGraphIndicators-KYJwMZUg.js";
|
|
7
7
|
import { n as normalizePointStyle, a as normalizePointSize, b as adjustPointLabelPosition, c as calculatePointLabelAnchor, g as getEffectiveBoundingBox } from "./graph-CfMpl1HY.js";
|
|
8
|
-
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-
|
|
9
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
8
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-BOqvQb54.js";
|
|
9
|
+
import { ChoiceInputInlineContext } from "./choiceInput-pWAlrsXS.js";
|
|
10
10
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./gestureId-CKrHulGi.js";
|
|
11
11
|
import { u as useRerenderOnBoundingBoxChange } from "./useRerenderOnBoundingBoxChange-DHdHxDib.js";
|
|
12
12
|
import { p as pointerEventToUserCoords } from "./dragThreshold-Di28Kyev.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { F as DocContext, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { F as DocContext, q as jsxRuntimeExports } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { r as removeJXGEventHandlers, j as jxg, g as syncVisPropValues, s as syncLayer, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, e as syncLineStrokeStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
5
|
-
import { B as BoardContext, L as LINE_LAYER_OFFSET, V as VERTEX_LAYER_OFFSET } from "./graph-
|
|
6
|
-
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-
|
|
3
|
+
import { r as removeJXGEventHandlers, j as jxg, g as syncVisPropValues, s as syncLayer, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, e as syncLineStrokeStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-B1dkKVU_.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
5
|
+
import { B as BoardContext, L as LINE_LAYER_OFFSET, V as VERTEX_LAYER_OFFSET } from "./graph-CFF-RIRY.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-BOqvQb54.js";
|
|
7
7
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./gestureId-CKrHulGi.js";
|
|
8
8
|
import { p as pointerEventToUserCoords } from "./dragThreshold-Di28Kyev.js";
|
|
9
9
|
import { a as resolveLineColor, r as resolveFillColor, b as resolveCanvasColor, d as resolveHandleColor } from "./styleColors-BrCvjxze.js";
|
|
@@ -11,7 +11,7 @@ import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
|
|
|
11
11
|
import { u as useDraggableRefs } from "./useDraggableRefs-QaTfkVuD.js";
|
|
12
12
|
import { u as useJSXGraphCleanup } from "./useJSXGraphCleanup-BNk4sn6x.js";
|
|
13
13
|
import { d as buildBaseAttributes } from "./buildGraphicalAttributes-B_soifR-.js";
|
|
14
|
-
import { g as getPatternFillAttributes } from "./fillPatterns-
|
|
14
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-DfG-I7Kd.js";
|
|
15
15
|
const polygon = React__default.memo(function Polygon(props) {
|
|
16
16
|
let { componentIdx, id, SVs, actions, sourceOfUpdate, callAction } = useDoenetRenderer(props);
|
|
17
17
|
Polygon.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { F as DocContext, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { F as DocContext, q as jsxRuntimeExports } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { s as syncLayer, r as removeJXGEventHandlers, j as jxg, g as syncVisPropValues, e as syncLineStrokeStyle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
5
|
-
import { B as BoardContext, V as VERTEX_LAYER_OFFSET, L as LINE_LAYER_OFFSET } from "./graph-
|
|
6
|
-
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-
|
|
3
|
+
import { s as syncLayer, r as removeJXGEventHandlers, j as jxg, g as syncVisPropValues, e as syncLineStrokeStyle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-B1dkKVU_.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
5
|
+
import { B as BoardContext, V as VERTEX_LAYER_OFFSET, L as LINE_LAYER_OFFSET } from "./graph-CFF-RIRY.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-BOqvQb54.js";
|
|
7
7
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./gestureId-CKrHulGi.js";
|
|
8
8
|
import { p as pointerEventToUserCoords } from "./dragThreshold-Di28Kyev.js";
|
|
9
9
|
import { a as resolveLineColor, d as resolveHandleColor } from "./styleColors-BrCvjxze.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites-CF401ujF.js";
|
|
5
5
|
import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
6
6
|
const pre = React__default.memo(function Pre(props) {
|
|
7
7
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as jsxRuntimeExports } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from "react";
|
|
3
3
|
const __vite_import_meta_env__ = { "VITE_PREFIGURE_MODULE_URL": "https://cdn.jsdelivr.net/npm/@doenet/prefigure@latest/prefigure.js" };
|
|
4
4
|
const DEFAULT_PREFIGURE_BUILD_ENDPOINT = "https://prefigure.doenet.org/build";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { x as useT, u as useContentT, z as useChromeLangDir, J as useRecordVisibilityChanges, F as DocContext, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { x as useT, u as useContentT, z as useChromeLangDir, J as useRecordVisibilityChanges, F as DocContext, q as jsxRuntimeExports } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default, { useRef, useContext } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { A as AnswerResponseButton } from "./AnswerResponseButton-
|
|
5
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
4
|
+
import { A as AnswerResponseButton } from "./AnswerResponseButton-O6QkA8hS.js";
|
|
5
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-LcMrTBQf.js";
|
|
6
6
|
const pretzel = React__default.memo(function Pretzel(props) {
|
|
7
7
|
let {
|
|
8
8
|
componentIdx,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as jsxRuntimeExports } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { r as renderMarkupBody } from "./markupRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-llAWVTDc.js";
|
|
5
5
|
const q = React__default.memo(function Q(props) {
|
|
6
6
|
const { SVs, children } = useDoenetRenderer(props);
|
|
7
7
|
const body = renderMarkupBody({ SVs, children });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { F as DocContext, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { F as DocContext, q as jsxRuntimeExports } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { j as jxg, h as syncLineFamilyVisibility, s as syncLayer, e as syncLineStrokeStyle, a as syncWithLabelToggle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, i as applyLineFamilyLabelPlacement, k as buildLineFamilyLabelAttributes, d as attachLabelHoverHighlight, c as computeLabelMaskCssStyle, l as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
5
|
-
import { B as BoardContext, L as LINE_LAYER_OFFSET } from "./graph-
|
|
6
|
-
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-
|
|
3
|
+
import { j as jxg, h as syncLineFamilyVisibility, s as syncLayer, e as syncLineStrokeStyle, a as syncWithLabelToggle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, i as applyLineFamilyLabelPlacement, k as buildLineFamilyLabelAttributes, d as attachLabelHoverHighlight, c as computeLabelMaskCssStyle, l as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-B1dkKVU_.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
5
|
+
import { B as BoardContext, L as LINE_LAYER_OFFSET } from "./graph-CFF-RIRY.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-BOqvQb54.js";
|
|
7
7
|
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-B_soifR-.js";
|
|
8
8
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./gestureId-CKrHulGi.js";
|
|
9
9
|
import { p as pointerEventToUserCoords } from "./dragThreshold-Di28Kyev.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as DocContext, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { F as DocContext, q as jsxRuntimeExports } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { N as NoClickTargetContext } from "./ClickTarget-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
4
|
+
import { N as NoClickTargetContext } from "./ClickTarget-CyifAnlZ.js";
|
|
5
5
|
const ref = React__default.memo(function Ref(props) {
|
|
6
6
|
const { id, SVs, children, requestScrollTo } = useDoenetRenderer(props);
|
|
7
7
|
const { doenetViewerUrl } = useContext(DocContext) || {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { F as DocContext, K as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { F as DocContext, K as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { j as jxg, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
5
|
-
import { B as BoardContext, L as LINE_LAYER_OFFSET } from "./graph-
|
|
6
|
-
import { g as getPatternFillAttributes } from "./fillPatterns-
|
|
3
|
+
import { j as jxg, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-B1dkKVU_.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
5
|
+
import { B as BoardContext, L as LINE_LAYER_OFFSET } from "./graph-CFF-RIRY.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-DfG-I7Kd.js";
|
|
7
7
|
import { b as resolveCanvasColor } from "./styleColors-BrCvjxze.js";
|
|
8
8
|
const regionBetweenCurveXAxis = React__default.memo(function RegionBetweenCurveXAxis(props) {
|
|
9
9
|
let { id, SVs } = useDoenetRenderer(props);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { F as DocContext, K as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { F as DocContext, K as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { B as BoardContext, L as LINE_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
4
|
+
import { B as BoardContext, L as LINE_LAYER_OFFSET } from "./graph-CFF-RIRY.js";
|
|
5
5
|
import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
|
|
6
|
-
import { g as getPatternFillAttributes } from "./fillPatterns-
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-DfG-I7Kd.js";
|
|
7
7
|
import { b as resolveCanvasColor } from "./styleColors-BrCvjxze.js";
|
|
8
|
-
import { b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-
|
|
8
|
+
import { b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-B1dkKVU_.js";
|
|
9
9
|
const regionBetweenCurves = React__default.memo(function RegionBetweenCurves(props) {
|
|
10
10
|
let { id, SVs } = useDoenetRenderer(props);
|
|
11
11
|
RegionBetweenCurves.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as jsxRuntimeExports } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
4
4
|
const row = React__default.memo(function Row(props) {
|
|
5
5
|
let { id, SVs, children } = useDoenetRenderer(props);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as jsxRuntimeExports } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
4
4
|
const rq = React__default.memo(function Rq(props) {
|
|
5
5
|
let { SVs } = useDoenetRenderer(props, false);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as jsxRuntimeExports } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
4
4
|
const rsq = React__default.memo(function Rsq(props) {
|
|
5
5
|
let { SVs } = useDoenetRenderer(props, false);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { x as useT, u as useContentT, Q as directionOf, R as useDocumentDirection, S as chromeLangDir, y as useUiLocale, F as DocContext, T as cesc, J as useRecordVisibilityChanges, q as jsxRuntimeExports, U as DocumentDirectionProvider } from "./doenetml-
|
|
1
|
+
import { x as useT, u as useContentT, Q as directionOf, R as useDocumentDirection, S as chromeLangDir, y as useUiLocale, F as DocContext, T as cesc, J as useRecordVisibilityChanges, q as jsxRuntimeExports, U as DocumentDirectionProvider } from "./doenetml-5SWFSbLT.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { F as FontAwesomeIcon } from "./index.es-
|
|
3
|
+
import { F as FontAwesomeIcon } from "./index.es-_Bg2ps2T.js";
|
|
4
4
|
import { f as faCaretDown, a as faCaretRight } from "./index-BDlitCgu.js";
|
|
5
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
6
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
7
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B06Vg5B2.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-CF401ujF.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-LcMrTBQf.js";
|
|
8
8
|
import { c as clickToToggleLabel } from "./disclosure-axyZa36E.js";
|
|
9
|
-
import { N as NoClickTargetContext } from "./ClickTarget-
|
|
9
|
+
import { N as NoClickTargetContext } from "./ClickTarget-CyifAnlZ.js";
|
|
10
10
|
const section = React__default.memo(function Section(props) {
|
|
11
11
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
12
12
|
const t = useT();
|