@doenet/doenetml 0.7.26-dev.554 → 0.7.26-dev.555
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-C9p9nhSL.js → AnswerResponseButton-BOyUqPuu.js} +2 -2
- package/{Description-Q9I3sPDC.js → Description-DA5j_3FV.js} +1 -1
- package/{DynamicMath-BuKMTC4a.js → DynamicMath-CWBfkCmF.js} +1 -1
- package/{EditorViewer-Cfpo7s5v.js → EditorViewer-BEvKDjSw.js} +6 -6
- package/{GraphFrame-DLYxA0eZ.js → GraphFrame-CCOyPDqw.js} +2 -2
- package/{JSXGraphRenderer-BbKSUz9I.js → JSXGraphRenderer-B3TLlrCK.js} +1 -1
- package/{NonInlineMediaWrapper-D9HTSQV6.js → NonInlineMediaWrapper-B84yWAwJ.js} +1 -1
- package/{_error-DJTJ9-pQ.js → _error-D1bEKeAx.js} +2 -2
- package/{alert-CvcpYEDF.js → alert-DE8U3CPd.js} +3 -3
- package/{angle-BuGV0blL.js → angle-H3tWOUoa.js} +7 -7
- package/{answer-CkKBiDTD.js → answer-Mu-XUsyv.js} +6 -6
- package/{asList-DxPExOeo.js → asList-Bnyq8925.js} +2 -2
- package/{barChart-CdIsb0e6.js → barChart-Da5SnRBP.js} +4 -4
- package/{blockQuote-ziNFXeP0.js → blockQuote-CaXdx7vZ.js} +3 -3
- package/{boolean-BmG8AsgK.js → boolean-CKqrTODh.js} +2 -2
- package/{booleanInput-x9Sa10os.js → booleanInput-yxIyvJFu.js} +6 -6
- package/{br-DWlzVKya.js → br-7jKZoZKj.js} +2 -2
- package/{button-C7HpKmrZ.js → button-CPtnN0VE.js} +4 -4
- package/{c-pFh2RHdZ.js → c-Cxe0QXVl.js} +3 -3
- package/{cell-D9o_nK2N.js → cell-C-6Q3hl6.js} +3 -3
- package/{choiceInput-DfoY9n-7.js → choiceInput-BxR0CIDc.js} +5 -5
- package/{circle-DCTwQDoe.js → circle-Ce04yo-w.js} +6 -6
- package/{cobwebPolyline-CGEOTaNf.js → cobwebPolyline-DrA1RFvY.js} +4 -4
- package/{codeEditor-DhC8OPpm.js → codeEditor-CetT-HA6.js} +2 -2
- package/{composites-B2NIBTfl.js → composites--trLfv8I.js} +1 -1
- package/{containerBlock--vWTQPei.js → containerBlock-DbmAWnYX.js} +4 -4
- package/{containerInline-ibbuZ5GG.js → containerInline-BT1FbOts.js} +4 -4
- package/{curve-BQqK27Ay.js → curve-CqZDMRsN.js} +4 -4
- package/doenetml-external-worker.js +2 -2
- package/doenetml-inline-worker.js +3 -3
- package/{doenetml-Dy92ZBto.js → doenetml-kxLyTriH.js} +3 -3
- package/doenetml-worker/index.esm.js +1 -1
- package/doenetml-worker/index.js +1 -1
- package/{ellipsis-By_lMH-x.js → ellipsis-BPVTlBzW.js} +2 -2
- package/{em-CjCosMw1.js → em-BJu_UdyA.js} +3 -3
- package/{embed-COES2Dg9.js → embed-CJbGfq_-.js} +2 -2
- package/{feedback-BJcDiwtJ.js → feedback-SbPuU72I.js} +4 -4
- package/{figure-C5uvOkQ-.js → figure-DjKM2C7Z.js} +3 -3
- package/{fillPatterns-DhfpMIUF.js → fillPatterns-C5qmH09E.js} +1 -1
- package/{footnote-DrQXs575.js → footnote-CGbSBYeI.js} +3 -3
- package/{fractionInput-DNGzwIVg.js → fractionInput-ChPA58gv.js} +4 -4
- package/{graph-n5BDyAP1.js → graph-Dn0KWPQv.js} +6 -6
- package/{hint-CkeFu07e.js → hint-5n1T8-vB.js} +4 -4
- package/{hovercard-store-Cct3aLSI.js → hovercard-store-CHk9fGnd.js} +1 -1
- package/{hr-CICtoXPa.js → hr-DtMNk3Di.js} +2 -2
- package/{image-CzRz3wOl.js → image-5bhtLonh.js} +7 -7
- package/{index-CRqw3Pju.js → index-CQenfNMl.js} +1 -1
- package/{index.es-CTXT4zqy.js → index.es-LF6XMjdi.js} +1 -1
- package/index.js +1 -1
- package/{label-CfBsFffp.js → label-6vjuVNbQ.js} +7 -7
- package/{labelWithLatex-D6xiXXzz.js → labelWithLatex-DsBqb1pL.js} +2 -2
- package/{legend-DZi1ZVUd.js → legend-D2GdWbzM.js} +4 -4
- package/{line-CES7rBaC.js → line-Bkp5nuz4.js} +7 -7
- package/{lineFamilyDragHandlers-CkD7aTim.js → lineFamilyDragHandlers-CRJS6GoO.js} +1 -1
- package/{lineSegment-5n0agBoD.js → lineSegment-C1ZDNtB2.js} +5 -5
- package/{list-MD44LYve.js → list-Ueflcrkk.js} +4 -4
- package/{lq-bZC7Swrf.js → lq-BzLSWKQ7.js} +2 -2
- package/{lsq-C0SuuxFQ.js → lsq-DLvVMhnx.js} +2 -2
- package/{markupRenderer-BegqCBNC.js → markupRenderer-BUltK8SG.js} +1 -1
- package/{math-DT07tiUq.js → math-C0XJhKoF.js} +8 -8
- package/{mathInput-CDNoaHUs.js → mathInput-DAPxWc-k.js} +8 -8
- package/{mathInputSlots-BCNbnBh4.js → mathInputSlots-tDwEF4k7.js} +1 -1
- package/{matrixInput-D5icsbu4.js → matrixInput-B7lgHLug.js} +4 -4
- package/{mdash-DyXbZJBi.js → mdash-DpoiD1ZT.js} +2 -2
- package/{nbsp-BP9aPvT1.js → nbsp-95WZAMW_.js} +2 -2
- package/{ndash-B4TzvNoN.js → ndash-D1Yu8lwi.js} +2 -2
- package/{number-AZ400VBx.js → number-DlvCOeCu.js} +7 -7
- package/{orbitalDiagram-CQRYAeOQ.js → orbitalDiagram-DanTqRia.js} +2 -2
- package/{orbitalDiagramInput-D3x6mFJv.js → orbitalDiagramInput-CfE_8jhF.js} +2 -2
- package/{p-JSJgQM67.js → p-B1BTueZD.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-DSBCaSsG.js → paginatorControls-BaItkd6q.js} +2 -2
- package/{pegboard-BcBHUgXr.js → pegboard-CRwa1HtI.js} +4 -4
- package/{point-BnPJhjWe.js → point-DcLJO9AY.js} +7 -7
- package/{polygon-BRAfrjRE.js → polygon-DErSVDSI.js} +6 -6
- package/{polyline-B3ZJA3Ko.js → polyline-cmVtnpWn.js} +5 -5
- package/{pre-Ccu1dv_x.js → pre-C-BMdCNe.js} +3 -3
- package/{prefigure-COgtlwzl.js → prefigure-BsUZjWtI.js} +1 -1
- package/{pretzel-i9cuRQrR.js → pretzel-DxHvHpmr.js} +4 -4
- package/{q-C-iwMoqo.js → q-_L0daFF1.js} +3 -3
- package/{ray-CX1R45k1.js → ray-BeDtytEe.js} +5 -5
- package/{ref-DKaaLXFG.js → ref-D6A43te7.js} +2 -2
- package/{regionBetweenCurveXAxis-DRWvOzRG.js → regionBetweenCurveXAxis-DwgWIzor.js} +5 -5
- package/{regionBetweenCurves-DzJ1a1Zs.js → regionBetweenCurves-DoZYfGUH.js} +5 -5
- package/{row-D70NwRRb.js → row-D0ntQ89Q.js} +2 -2
- package/{rq-BVa9D9h3.js → rq-BWtU3Fwi.js} +2 -2
- package/{rsq-VRrY--7a.js → rsq-CDc_a-wC.js} +2 -2
- package/{section-CY0QV57Y.js → section-CGni7WkM.js} +5 -5
- package/{sha256-DT5xJ2Hv-B79in8Bg.js → sha256-DT5xJ2Hv-CaQc7pHE.js} +1 -1
- package/{sideBySide-BN_-tlaM.js → sideBySide-BK-lRXWt.js} +2 -2
- package/{slider-CrOaugci.js → slider-qxWHgvlL.js} +3 -3
- package/{slopeField-BucD1Kcu.js → slopeField-C_rLvXyA.js} +2 -2
- package/{solution-uAGn7kS7.js → solution-BDDGjUyU.js} +4 -4
- package/{spreadsheet-DLcx9LwU.js → spreadsheet-B3SWSx7z.js} +2 -2
- package/{sq-D1moYUtJ.js → sq-xHjnfXjB.js} +3 -3
- package/{subsetOfRealsInput-C9NC97mV.js → subsetOfRealsInput-BKTB65mr.js} +2 -2
- package/{summaryStatistics-5Xh7mflZ.js → summaryStatistics-C7D-2PSr.js} +2 -2
- package/{table-CMX0WK12.js → table-C-o3GMcU.js} +2 -2
- package/{tabular-Dwt7hZ-a.js → tabular-ClDcYe2n.js} +2 -2
- package/{tag-HcYaMhl_.js → tag-CVGNqX3E.js} +2 -2
- package/{text-D9HvPZFF.js → text-D2xg38Gu.js} +6 -6
- package/{textInput-DfrljQM3.js → textInput-VBda3FjX.js} +7 -7
- package/{tooltip-provider-B9A-3fpz.js → tooltip-provider-B4vZXlr6.js} +2 -2
- package/{useAnchoredGraphDragHandler-C_XijT_t.js → useAnchoredGraphDragHandler-6V2BjwDj.js} +1 -1
- package/useDoenetRenderer-BqwVZ6d2.js +114 -0
- package/{useFieldCurve-CaPRKX8E.js → useFieldCurve-IyGSMVrx.js} +2 -2
- package/{useSubmitActionWithDelay-DECD-wjb.js → useSubmitActionWithDelay-CH-Zxanj.js} +2 -2
- package/{vector-BqqSofk6.js → vector-D3iImrco.js} +7 -7
- package/{vectorField-Ch2uJ6_1.js → vectorField-CDrfA9YJ.js} +2 -2
- package/{video-CLLDh-Rg.js → video-DTLOVx7W.js} +4 -4
- package/useDoenetRenderer-DWXr6hml.js +0 -114
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-kxLyTriH.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 { BoardContext, VERTEX_LAYER_OFFSET, 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-B3TLlrCK.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-Dn0KWPQv.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-CRJS6GoO.js";
|
|
7
7
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
8
8
|
import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.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-kxLyTriH.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-BqwVZ6d2.js";
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites--trLfv8I.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-kxLyTriH.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 { u as useT, I as useContentT, v as useChromeLangDir, J as useRecordVisibilityChanges, E as DocContext, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, I as useContentT, v as useChromeLangDir, J as useRecordVisibilityChanges, E as DocContext, q as jsxRuntimeExports } from "./doenetml-kxLyTriH.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-BqwVZ6d2.js";
|
|
4
|
+
import { A as AnswerResponseButton } from "./AnswerResponseButton-BOyUqPuu.js";
|
|
5
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-CH-Zxanj.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-kxLyTriH.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-BqwVZ6d2.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-BUltK8SG.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 { E as DocContext, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-kxLyTriH.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 { BoardContext, 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-B3TLlrCK.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Dn0KWPQv.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-CRJS6GoO.js";
|
|
7
7
|
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-B_soifR-.js";
|
|
8
8
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
9
9
|
import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-kxLyTriH.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
4
4
|
const ref = React__default.memo(function Ref(props) {
|
|
5
5
|
const { id, SVs, children, requestScrollTo } = useDoenetRenderer(props);
|
|
6
6
|
const { doenetViewerUrl } = useContext(DocContext) || {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as DocContext, N as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { E as DocContext, N as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-kxLyTriH.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 { BoardContext, 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-B3TLlrCK.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Dn0KWPQv.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-C5qmH09E.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 { E as DocContext, N as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { E as DocContext, N as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-kxLyTriH.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Dn0KWPQv.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-C5qmH09E.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-B3TLlrCK.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-kxLyTriH.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.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-kxLyTriH.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.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-kxLyTriH.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
4
4
|
const rsq = React__default.memo(function Rsq(props) {
|
|
5
5
|
let { SVs } = useDoenetRenderer(props, false);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as useT, I as useContentT, Q as directionOf, R as useDocumentDirection, S as chromeLangDir, t as useUiLocale, E as DocContext, L as cesc, J as useRecordVisibilityChanges, q as jsxRuntimeExports, T as DocumentDirectionProvider } from "./doenetml-
|
|
1
|
+
import { u as useT, I as useContentT, Q as directionOf, R as useDocumentDirection, S as chromeLangDir, t as useUiLocale, E as DocContext, L as cesc, J as useRecordVisibilityChanges, q as jsxRuntimeExports, T as DocumentDirectionProvider } from "./doenetml-kxLyTriH.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-LF6XMjdi.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-BqwVZ6d2.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites--trLfv8I.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-CH-Zxanj.js";
|
|
8
8
|
import { c as clickToToggleLabel } from "./disclosure-axyZa36E.js";
|
|
9
9
|
const section = React__default.memo(function Section(props) {
|
|
10
10
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-kxLyTriH.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
4
4
|
import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
5
5
|
function isWhitespaceTextChild(child) {
|
|
6
6
|
return typeof child === "string" && child.trim() === "";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as useT, q as jsxRuntimeExports, U as ActionButtonGroup, V as ActionButton, K as Context } from "./doenetml-
|
|
1
|
+
import { u as useT, q as jsxRuntimeExports, U as ActionButtonGroup, V as ActionButton, K as Context } from "./doenetml-kxLyTriH.js";
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
|
-
import { r as renderLabelWithLatex } from "./labelWithLatex-
|
|
5
|
+
import { r as renderLabelWithLatex } from "./labelWithLatex-DsBqb1pL.js";
|
|
6
6
|
import { l as ltrIslandProps } from "./direction-BwrU7jHk.js";
|
|
7
7
|
let round_to_decimals = (x, n) => {
|
|
8
8
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
-
import { u as useFieldFunction, a as useFieldCurve, b as buildSlopeFieldData } from "./useFieldCurve-
|
|
2
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
3
|
+
import { u as useFieldFunction, a as useFieldCurve, b as buildSlopeFieldData } from "./useFieldCurve-IyGSMVrx.js";
|
|
4
4
|
const slopeField = React__default.memo(function SlopeField(props) {
|
|
5
5
|
let { SVs } = useDoenetRenderer(props);
|
|
6
6
|
SlopeField.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as useT, J as useRecordVisibilityChanges, v as useChromeLangDir, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, J as useRecordVisibilityChanges, v as useChromeLangDir, q as jsxRuntimeExports } from "./doenetml-kxLyTriH.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { F as FontAwesomeIcon } from "./index.es-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-LF6XMjdi.js";
|
|
5
5
|
import { c as faPuzzlePiece } from "./index-BDlitCgu.js";
|
|
6
|
-
import { a as addCommasForCompositeRanges } from "./composites
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites--trLfv8I.js";
|
|
7
7
|
import { c as clickToToggleLabel } from "./disclosure-axyZa36E.js";
|
|
8
8
|
const solution = React__default.memo(function Solution(props) {
|
|
9
9
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as DocContext, J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { E as DocContext, J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-kxLyTriH.js";
|
|
2
2
|
import React__default, { forwardRef, useId, useRef, useCallback, useMemo, useEffect, Children, useImperativeHandle, Fragment, createContext as createContext$1, useContext, useState } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
4
4
|
import require$$2 from "react-dom";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
6
|
import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as jsxRuntimeExports } from "./doenetml-kxLyTriH.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-BqwVZ6d2.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-BUltK8SG.js";
|
|
5
5
|
const sq = React__default.memo(function Sq(props) {
|
|
6
6
|
const { SVs, children } = useDoenetRenderer(props);
|
|
7
7
|
const body = renderMarkupBody({ SVs, children });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useT, J as useRecordVisibilityChanges, q as jsxRuntimeExports, $ as ToggleButtonGroup, Y as ToggleButton, U as ActionButtonGroup, V as ActionButton } from "./doenetml-
|
|
1
|
+
import { u as useT, J as useRecordVisibilityChanges, q as jsxRuntimeExports, $ as ToggleButtonGroup, Y as ToggleButton, U as ActionButtonGroup, V as ActionButton } from "./doenetml-kxLyTriH.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
4
4
|
import { l as ltrIslandProps } from "./direction-BwrU7jHk.js";
|
|
5
5
|
const subsetOfRealsInput = React__default.memo(function subsetOfReals(props) {
|
|
6
6
|
let { id, SVs, actions, callAction } = useDoenetRenderer(props, false);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useT, v as useChromeLangDir, J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, v as useChromeLangDir, J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-kxLyTriH.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
5
|
const summaryStatistics = React__default.memo(function SummaryStatistics(props) {
|
|
6
6
|
let { id, SVs, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-kxLyTriH.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
4
4
|
const table = React__default.memo(function Table(props) {
|
|
5
5
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
6
6
|
const ref = useRef(null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-kxLyTriH.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
5
|
import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
6
6
|
const tabular = React__default.memo(function Tabular(props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as jsxRuntimeExports } from "./doenetml-kxLyTriH.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
4
4
|
const tag = React__default.memo(function Tag(props) {
|
|
5
5
|
let { id, SVs, children } = useDoenetRenderer(props);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { E as DocContext, K as Context, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-
|
|
1
|
+
import { E as DocContext, K as Context, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-kxLyTriH.js";
|
|
2
2
|
import React__default, { useRef, useContext } from "react";
|
|
3
|
-
import { j as jxg } from "./JSXGraphRenderer-
|
|
4
|
-
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-
|
|
5
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { j as jxg } from "./JSXGraphRenderer-B3TLlrCK.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-Dn0KWPQv.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-BxR0CIDc.js";
|
|
8
8
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
9
9
|
import { u as useDraggableRefs } from "./useDraggableRefs-QaTfkVuD.js";
|
|
10
|
-
import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-
|
|
10
|
+
import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-6V2BjwDj.js";
|
|
11
11
|
import { u as useJSXGraphCleanup } from "./useJSXGraphCleanup-BNk4sn6x.js";
|
|
12
12
|
import { e as resolveTextColor, f as resolveBackgroundColor } from "./styleColors-BrCvjxze.js";
|
|
13
13
|
const text = React__default.memo(function Text(props) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { I as useContentT, K as Context, q as jsxRuntimeExports, X as MathJax } from "./doenetml-
|
|
1
|
+
import { I as useContentT, K as Context, q as jsxRuntimeExports, X as MathJax } from "./doenetml-kxLyTriH.js";
|
|
2
2
|
import { useState, useRef, useContext, useEffect } from "react";
|
|
3
|
-
import { j as jxg } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { j as jxg } from "./JSXGraphRenderer-B3TLlrCK.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-Dn0KWPQv.js";
|
|
7
7
|
import { g as getPositionFromAnchorByCoordinate, P as POINTER_DRAG_THRESHOLD } from "./graph-W6vrFcBu.js";
|
|
8
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, w as wantsFullCheckWorkButton, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
9
|
-
import { D as DescriptionPopover } from "./Description-
|
|
8
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, w as wantsFullCheckWorkButton, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-CH-Zxanj.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-DA5j_3FV.js";
|
|
10
10
|
import { a as addValidationStateToShortDescription } from "./validationState-DI_lxk1a.js";
|
|
11
|
-
import { b as useInMathSlot, c as useMathSlotEditing } from "./mathInputSlots-
|
|
11
|
+
import { b as useInMathSlot, c as useMathSlotEditing } from "./mathInputSlots-tDwEF4k7.js";
|
|
12
12
|
import { u as useMathJaxOutOfTabOrder } from "./useMathJaxOutOfTabOrder-C0wsYqBF.js";
|
|
13
13
|
const EXPANDED_INPUT_MARGIN_X = 4;
|
|
14
14
|
const BOARD_INPUT_FALLBACK_WIDTH = "100px";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ai as createStoreContext, aj as createDialogComponent, a1 as forwardRef, a2 as createElement, a3 as createHook, a5 as invariant, ak as useWrapElement, q as jsxRuntimeExports, a6 as useStoreState, al as isFalsyBooleanCallback, am as contains, an as sync, ao as chain, ap as useEvent, aq as createStore, ar as defaultValue, as as useStore, at as useStoreProps } from "./doenetml-
|
|
2
|
-
import { H as HovercardScopedContextProvider, a as HovercardContextProvider, u as useHovercard, b as useHovercardAnchor, c as createHovercardStore, d as useHovercardStoreProps } from "./hovercard-store-
|
|
1
|
+
import { ai as createStoreContext, aj as createDialogComponent, a1 as forwardRef, a2 as createElement, a3 as createHook, a5 as invariant, ak as useWrapElement, q as jsxRuntimeExports, a6 as useStoreState, al as isFalsyBooleanCallback, am as contains, an as sync, ao as chain, ap as useEvent, aq as createStore, ar as defaultValue, as as useStore, at as useStoreProps } from "./doenetml-kxLyTriH.js";
|
|
2
|
+
import { H as HovercardScopedContextProvider, a as HovercardContextProvider, u as useHovercard, b as useHovercardAnchor, c as createHovercardStore, d as useHovercardStoreProps } from "./hovercard-store-CHk9fGnd.js";
|
|
3
3
|
import { useRef, useEffect } from "react";
|
|
4
4
|
const ctx = createStoreContext([HovercardContextProvider], [HovercardScopedContextProvider]);
|
|
5
5
|
const useTooltipProviderContext = ctx.useProviderContext;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as removeJXGEventHandlers, L as LINE_FAMILY_EVENTS, j as jxg } from "./JSXGraphRenderer-
|
|
1
|
+
import { r as removeJXGEventHandlers, L as LINE_FAMILY_EVENTS, j as jxg } from "./JSXGraphRenderer-B3TLlrCK.js";
|
|
2
2
|
import { e as exceededDragThreshold, p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
|
|
3
3
|
function attachAnchoredGraphDragHandlers(params) {
|
|
4
4
|
const {
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { x as useAppSelector, y as mainSlice, z as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-kxLyTriH.js";
|
|
2
|
+
import React__default, { useState, useEffect } from "react";
|
|
3
|
+
function useDoenetRenderer(props, initializeChildrenOnConstruction = true) {
|
|
4
|
+
const actions = props.componentInstructions.actions;
|
|
5
|
+
const componentIdx = props.componentInstructions.componentIdx;
|
|
6
|
+
const effectiveIdx = props.componentInstructions.effectiveIdx;
|
|
7
|
+
const id = props.componentInstructions.id;
|
|
8
|
+
const rendererName = props.coreId + componentIdx;
|
|
9
|
+
const [renderersToLoad, setRenderersToLoad] = useState({});
|
|
10
|
+
const componentInfo = useAppSelector(
|
|
11
|
+
(state) => mainSlice.selectors.componentInfo(state)[rendererName]
|
|
12
|
+
);
|
|
13
|
+
const {
|
|
14
|
+
stateValues,
|
|
15
|
+
sourceOfUpdate = {},
|
|
16
|
+
ignoreUpdate,
|
|
17
|
+
childrenInstructions,
|
|
18
|
+
prefixForIds
|
|
19
|
+
} = componentInfo || {
|
|
20
|
+
stateValues: {},
|
|
21
|
+
sourceOfUpdate: {},
|
|
22
|
+
ignoreUpdate: false,
|
|
23
|
+
childrenInstructions: [],
|
|
24
|
+
prefixForIds: ""
|
|
25
|
+
};
|
|
26
|
+
let children = [];
|
|
27
|
+
const loadMoreRenderers = Object.keys(renderersToLoad).length === 0;
|
|
28
|
+
for (let childInstructions of childrenInstructions) {
|
|
29
|
+
let child = createChildFromInstructions(
|
|
30
|
+
childInstructions,
|
|
31
|
+
loadMoreRenderers
|
|
32
|
+
);
|
|
33
|
+
children.push(child);
|
|
34
|
+
}
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
const entries = Object.entries(renderersToLoad);
|
|
37
|
+
if (entries.length > 0) {
|
|
38
|
+
const names = entries.map(([name]) => name);
|
|
39
|
+
const loaders = entries.map(([, loader]) => loader);
|
|
40
|
+
renderersLoadComponent(loaders, names).then(
|
|
41
|
+
({ rendererClasses: newRendererClasses }) => {
|
|
42
|
+
Object.assign(props.rendererClasses, newRendererClasses);
|
|
43
|
+
setRenderersToLoad({});
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
}, [renderersToLoad, props.rendererClasses]);
|
|
48
|
+
function createChildFromInstructions(childInstructions, loadMoreRenderers2) {
|
|
49
|
+
if (typeof childInstructions === "string" || childInstructions === null) {
|
|
50
|
+
return childInstructions;
|
|
51
|
+
}
|
|
52
|
+
let propsForChild = {
|
|
53
|
+
key: props.coreId + childInstructions.componentIdx,
|
|
54
|
+
componentInstructions: childInstructions,
|
|
55
|
+
rendererClasses: props.rendererClasses,
|
|
56
|
+
coreId: props.coreId,
|
|
57
|
+
docId: props.docId,
|
|
58
|
+
activityId: props.activityId,
|
|
59
|
+
callAction: props.callAction,
|
|
60
|
+
fetchExternalDoenetML: props.fetchExternalDoenetML,
|
|
61
|
+
requestScrollTo: props.requestScrollTo,
|
|
62
|
+
flags: props.flags
|
|
63
|
+
};
|
|
64
|
+
let rendererClass = props.rendererClasses[childInstructions.rendererType];
|
|
65
|
+
if (!rendererClass) {
|
|
66
|
+
if (loadMoreRenderers2) {
|
|
67
|
+
setRenderersToLoad((old) => {
|
|
68
|
+
let rendererLoaders = { ...old };
|
|
69
|
+
if (!(childInstructions.rendererType in rendererLoaders)) {
|
|
70
|
+
rendererLoaders[childInstructions.rendererType] = () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./renderers/GraphFrame.tsx": () => import("./GraphFrame-CCOyPDqw.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-B3TLlrCK.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-D1bEKeAx.js"), "./renderers/alert.tsx": () => import("./alert-DE8U3CPd.js"), "./renderers/angle.tsx": () => import("./angle-H3tWOUoa.js"), "./renderers/answer.tsx": () => import("./answer-Mu-XUsyv.js"), "./renderers/asList.tsx": () => import("./asList-Bnyq8925.js"), "./renderers/barChart.tsx": () => import("./barChart-Da5SnRBP.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-CaXdx7vZ.js"), "./renderers/boolean.tsx": () => import("./boolean-CKqrTODh.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-yxIyvJFu.js"), "./renderers/br.tsx": () => import("./br-7jKZoZKj.js"), "./renderers/button.tsx": () => import("./button-CPtnN0VE.js"), "./renderers/c.tsx": () => import("./c-Cxe0QXVl.js"), "./renderers/cell.tsx": () => import("./cell-C-6Q3hl6.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-BxR0CIDc.js"), "./renderers/circle.tsx": () => import("./circle-Ce04yo-w.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-DrA1RFvY.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-CetT-HA6.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-DbmAWnYX.js"), "./renderers/containerInline.tsx": () => import("./containerInline-BT1FbOts.js"), "./renderers/curve.tsx": () => import("./curve-CqZDMRsN.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-BPVTlBzW.js"), "./renderers/em.tsx": () => import("./em-BJu_UdyA.js"), "./renderers/embed.tsx": () => import("./embed-CJbGfq_-.js"), "./renderers/feedback.tsx": () => import("./feedback-SbPuU72I.js"), "./renderers/figure.tsx": () => import("./figure-DjKM2C7Z.js"), "./renderers/footnote.tsx": () => import("./footnote-CGbSBYeI.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-ChPA58gv.js"), "./renderers/graph.tsx": () => import("./graph-Dn0KWPQv.js"), "./renderers/hint.tsx": () => import("./hint-5n1T8-vB.js"), "./renderers/hr.tsx": () => import("./hr-DtMNk3Di.js"), "./renderers/image.tsx": () => import("./image-5bhtLonh.js"), "./renderers/label.tsx": () => import("./label-6vjuVNbQ.js"), "./renderers/legend.tsx": () => import("./legend-D2GdWbzM.js"), "./renderers/line.tsx": () => import("./line-Bkp5nuz4.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-C1ZDNtB2.js"), "./renderers/list.tsx": () => import("./list-Ueflcrkk.js"), "./renderers/lq.tsx": () => import("./lq-BzLSWKQ7.js"), "./renderers/lsq.tsx": () => import("./lsq-DLvVMhnx.js"), "./renderers/math.tsx": () => import("./math-C0XJhKoF.js"), "./renderers/mathInput.tsx": () => import("./mathInput-DAPxWc-k.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-B7lgHLug.js"), "./renderers/mdash.tsx": () => import("./mdash-DpoiD1ZT.js"), "./renderers/nbsp.tsx": () => import("./nbsp-95WZAMW_.js"), "./renderers/ndash.tsx": () => import("./ndash-D1Yu8lwi.js"), "./renderers/number.tsx": () => import("./number-DlvCOeCu.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-DanTqRia.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-CfE_8jhF.js"), "./renderers/p.tsx": () => import("./p-B1BTueZD.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-BaItkd6q.js"), "./renderers/pegboard.tsx": () => import("./pegboard-CRwa1HtI.js"), "./renderers/point.tsx": () => import("./point-DcLJO9AY.js"), "./renderers/polygon.tsx": () => import("./polygon-DErSVDSI.js"), "./renderers/polyline.tsx": () => import("./polyline-cmVtnpWn.js"), "./renderers/pre.tsx": () => import("./pre-C-BMdCNe.js"), "./renderers/prefigure.tsx": () => import("./prefigure-BsUZjWtI.js"), "./renderers/pretzel.tsx": () => import("./pretzel-DxHvHpmr.js"), "./renderers/q.tsx": () => import("./q-_L0daFF1.js"), "./renderers/ray.tsx": () => import("./ray-BeDtytEe.js"), "./renderers/ref.tsx": () => import("./ref-D6A43te7.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-DwgWIzor.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-DoZYfGUH.js"), "./renderers/row.tsx": () => import("./row-D0ntQ89Q.js"), "./renderers/rq.tsx": () => import("./rq-BWtU3Fwi.js"), "./renderers/rsq.tsx": () => import("./rsq-CDc_a-wC.js"), "./renderers/section.tsx": () => import("./section-CGni7WkM.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-BK-lRXWt.js"), "./renderers/slider.tsx": () => import("./slider-qxWHgvlL.js"), "./renderers/slopeField.tsx": () => import("./slopeField-C_rLvXyA.js"), "./renderers/solution.tsx": () => import("./solution-BDDGjUyU.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-B3SWSx7z.js"), "./renderers/sq.tsx": () => import("./sq-xHjnfXjB.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-BKTB65mr.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-C7D-2PSr.js"), "./renderers/table.tsx": () => import("./table-C-o3GMcU.js"), "./renderers/tabular.tsx": () => import("./tabular-ClDcYe2n.js"), "./renderers/tag.tsx": () => import("./tag-CVGNqX3E.js"), "./renderers/text.tsx": () => import("./text-D2xg38Gu.js"), "./renderers/textInput.tsx": () => import("./textInput-VBda3FjX.js"), "./renderers/vector.tsx": () => import("./vector-D3iImrco.js"), "./renderers/vectorField.tsx": () => import("./vectorField-CDrfA9YJ.js"), "./renderers/video.tsx": () => import("./video-DTLOVx7W.js") }), `./renderers/${childInstructions.rendererType}.tsx`, 3);
|
|
71
|
+
}
|
|
72
|
+
return rendererLoaders;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
let child = React__default.createElement(rendererClass, propsForChild);
|
|
78
|
+
return child;
|
|
79
|
+
}
|
|
80
|
+
let rendererType = props.componentInstructions.rendererType;
|
|
81
|
+
const callAction = (argObj) => {
|
|
82
|
+
if (!argObj.componentIdx) {
|
|
83
|
+
argObj = { ...argObj };
|
|
84
|
+
argObj.componentIdx = componentIdx;
|
|
85
|
+
}
|
|
86
|
+
if (!argObj.rendererType) {
|
|
87
|
+
argObj = { ...argObj };
|
|
88
|
+
argObj.rendererType = rendererType;
|
|
89
|
+
}
|
|
90
|
+
return props.callAction(argObj);
|
|
91
|
+
};
|
|
92
|
+
return {
|
|
93
|
+
componentIdx: effectiveIdx,
|
|
94
|
+
id: prefixForIds + id,
|
|
95
|
+
SVs: stateValues,
|
|
96
|
+
docId: props.docId,
|
|
97
|
+
activityId: props.activityId,
|
|
98
|
+
actions,
|
|
99
|
+
children,
|
|
100
|
+
sourceOfUpdate,
|
|
101
|
+
ignoreUpdate,
|
|
102
|
+
rendererName,
|
|
103
|
+
initializeChildren: () => {
|
|
104
|
+
},
|
|
105
|
+
callAction,
|
|
106
|
+
doenetViewerUrl: props.doenetViewerUrl,
|
|
107
|
+
fetchExternalDoenetML: props.fetchExternalDoenetML,
|
|
108
|
+
requestScrollTo: props.requestScrollTo,
|
|
109
|
+
flags: props.flags
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
export {
|
|
113
|
+
useDoenetRenderer as u
|
|
114
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo, useContext, useRef } from "react";
|
|
2
|
-
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-
|
|
3
|
-
import { N as createFunctionFromDefinition, E as DocContext } from "./doenetml-
|
|
2
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Dn0KWPQv.js";
|
|
3
|
+
import { N as createFunctionFromDefinition, E as DocContext } from "./doenetml-kxLyTriH.js";
|
|
4
4
|
import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
|
|
5
5
|
import { u as useJSXGraphCleanup } from "./useJSXGraphCleanup-BNk4sn6x.js";
|
|
6
6
|
function fieldFunctionFromDefinition(fDefinition) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { q as jsxRuntimeExports } from "./doenetml-
|
|
2
|
-
import { F as FontAwesomeIcon } from "./index.es-
|
|
1
|
+
import { q as jsxRuntimeExports } from "./doenetml-kxLyTriH.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-LF6XMjdi.js";
|
|
3
3
|
import { d as faSpinner, e as faLevelDownAlt, g as faCheck, h as faTimes, i as faCloud } from "./index-BDlitCgu.js";
|
|
4
4
|
import React__default, { useCallback } from "react";
|
|
5
5
|
function calculateValidationState(SVs) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { E as DocContext, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-
|
|
1
|
+
import { E as DocContext, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-kxLyTriH.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { j as jxg, s as syncLayer, g as syncVisPropValues, 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 { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-
|
|
6
|
-
import { D as DynamicMath } from "./DynamicMath-
|
|
7
|
-
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-
|
|
8
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
3
|
+
import { j as jxg, s as syncLayer, g as syncVisPropValues, 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-B3TLlrCK.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-Dn0KWPQv.js";
|
|
6
|
+
import { D as DynamicMath } from "./DynamicMath-CWBfkCmF.js";
|
|
7
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-CRJS6GoO.js";
|
|
8
|
+
import { ChoiceInputInlineContext } from "./choiceInput-BxR0CIDc.js";
|
|
9
9
|
import { a as buildLineLikeAttributes, c as buildDragHandleAttributes } from "./buildGraphicalAttributes-B_soifR-.js";
|
|
10
10
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
11
11
|
import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
-
import { u as useFieldFunction, a as useFieldCurve, c as buildVectorFieldData } from "./useFieldCurve-
|
|
2
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
3
|
+
import { u as useFieldFunction, a as useFieldCurve, c as buildVectorFieldData } from "./useFieldCurve-IyGSMVrx.js";
|
|
4
4
|
const vectorField = React__default.memo(function VectorField(props) {
|
|
5
5
|
let { SVs } = useDoenetRenderer(props);
|
|
6
6
|
VectorField.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-kxLyTriH.js";
|
|
2
2
|
import React__default, { useState, useEffect, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BqwVZ6d2.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
|
-
import { D as DescriptionPopover, a as DescriptionAsDetails } from "./Description-
|
|
5
|
+
import { D as DescriptionPopover, a as DescriptionAsDetails } from "./Description-DA5j_3FV.js";
|
|
6
6
|
import { g as getNonInlineMediaLayoutStyles } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
7
|
-
import { N as NonInlineMediaWrapper } from "./NonInlineMediaWrapper-
|
|
7
|
+
import { N as NonInlineMediaWrapper } from "./NonInlineMediaWrapper-B84yWAwJ.js";
|
|
8
8
|
const YT_API_SRC = "https://www.youtube.com/iframe_api";
|
|
9
9
|
const listeners = /* @__PURE__ */ new Set();
|
|
10
10
|
let installed = false;
|