@doenet/doenetml 0.7.27-dev.625 → 0.7.27-dev.627
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-N0WJq1nw.js → AnswerResponseButton-u6LZ8bmH.js} +2 -2
- package/{Description-CjpEPk-N.js → Description-CDuAgQLi.js} +1 -1
- package/{EditorViewer-C4qDzCqI.js → EditorViewer-TtNjjzUS.js} +5 -5
- package/{GraphFrame-KbyklKM4.js → GraphFrame-DohXi8ks.js} +2 -2
- package/{JSXGraphRenderer-J6gOeaaU.js → JSXGraphRenderer-BgRnwM7m.js} +1 -1
- package/{NonInlineMediaWrapper-DAqfGktN.js → NonInlineMediaWrapper-Cpm5nnJF.js} +1 -1
- package/Viewer/renderers/video.d.ts.map +1 -1
- package/{_error-CPf-EOFP.js → _error-YcbxvUNj.js} +2 -2
- package/{alert-DMEWXNm4.js → alert-CTHZgnTU.js} +3 -3
- package/{angle-_pkWOTIm.js → angle-DzfISqZc.js} +6 -6
- package/{answer-CTDqEQsn.js → answer-D2mi-XCg.js} +5 -5
- package/{asList-B38Is023.js → asList-Dvh--Y6Q.js} +2 -2
- package/{blockQuote-DlS0m3PY.js → blockQuote-BlSLCdkQ.js} +3 -3
- package/{boolean-mIIPic74.js → boolean-B7bXWFH7.js} +2 -2
- package/{booleanInput-BnIwknDF.js → booleanInput-C8Kp70Zi.js} +6 -6
- package/{br-BRefcxKd.js → br-diH8ueZy.js} +2 -2
- package/{button-ctjBjBr1.js → button-C_Nq6Vl2.js} +4 -4
- package/{c-VzOJqFOs.js → c-DzDHntUs.js} +3 -3
- package/{cell-CLplFp47.js → cell-3IeBjGmw.js} +3 -3
- package/{chart-BMlRpDBm.js → chart-ChgTgKKA.js} +4 -4
- package/{choiceInput-DeySvdod.js → choiceInput-Cw8FwYQy.js} +5 -5
- package/{circle-C4SPUM2P.js → circle-DnMxZuLI.js} +6 -6
- package/{cobwebPolyline-CJanFLE2.js → cobwebPolyline-CYlHKxkW.js} +4 -4
- package/{codeEditor-_OpZ3CHj.js → codeEditor-CWROXzdz.js} +2 -2
- package/{composites-up4tg837.js → composites-CHxo7foY.js} +1 -1
- package/{containerBlock-CE7uYpwZ.js → containerBlock-B7EaBik4.js} +4 -4
- package/{containerInline-D5PXpz8j.js → containerInline-t21UpSqf.js} +4 -4
- package/{curve-y4LcGaXM.js → curve-H6MjEKqB.js} +4 -4
- package/{doenetml-CR1KN2XZ.js → doenetml-2tPWLq9H.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-Brp1J2P8.js → ellipsis-CUgzRd-f.js} +2 -2
- package/{em-B5M3alhg.js → em-BBKG3GZs.js} +3 -3
- package/{embed-0i6eNm-f.js → embed-BKLgrP5C.js} +2 -2
- package/{feedback-B-wK7dvM.js → feedback-WCz39HcA.js} +4 -4
- package/{figure-CVGWYMz5.js → figure-CibOFwt0.js} +3 -3
- package/{fillPatterns-DBDnDdbd.js → fillPatterns-BRrMsPtY.js} +1 -1
- package/{footnote-Cd425Edw.js → footnote-x1GS33cd.js} +3 -3
- package/{fractionInput-DyMa5Xea.js → fractionInput-CkW2sYZ6.js} +4 -4
- package/{graph-B442iDZp.js → graph-DyXJgTCq.js} +6 -6
- package/{hint-BPE05iUu.js → hint-B8v4Bzxo.js} +4 -4
- package/{hovercard-store-CVF4XbqL.js → hovercard-store-C7XAyJkD.js} +1 -1
- package/{hr-CPpwiVKj.js → hr-D3LXR-Vb.js} +2 -2
- package/{image-CedqEFzv.js → image-CMvT2ntQ.js} +7 -7
- package/{index-B90GFP5d.js → index-BkSNTFpn.js} +1 -1
- package/{index.es-CqjvKvC4.js → index.es-rlPI-pM5.js} +1 -1
- package/index.js +1 -1
- package/{label-DSIkbGb4.js → label-CHqyxCzB.js} +6 -6
- package/{labelWithLatex-yoD6lsQt.js → labelWithLatex-D1D4nXru.js} +1 -1
- package/{legend-CFNWJCZD.js → legend-E5qRft1-.js} +4 -4
- package/{line-BYFnchrD.js → line-D1sfPfAC.js} +6 -6
- package/{lineFamilyDragHandlers-oiHMlFlI.js → lineFamilyDragHandlers-BW1vp57v.js} +1 -1
- package/{lineSegment-Njjk4gBG.js → lineSegment-DEl_dcE0.js} +5 -5
- package/{list-DBFZBdpq.js → list-BsfuiG8T.js} +4 -4
- package/{lq-cBLuMgQr.js → lq-D6ZdcH5q.js} +2 -2
- package/{lsq-fI7vhRbU.js → lsq-_uvA-D4t.js} +2 -2
- package/{markupRenderer-x2oMTtfT.js → markupRenderer-Vb-kXCB6.js} +1 -1
- package/{math-CUAeifiU.js → math-B3sVUWqo.js} +7 -7
- package/{mathInput-adXNoPkZ.js → mathInput-BtMXQS0j.js} +8 -8
- package/{mathInputSlots-DCl7Cgod.js → mathInputSlots-CIHWuRVc.js} +1 -1
- package/{matrixInput-uwOa-ACE.js → matrixInput-DzpwID6-.js} +4 -4
- package/{mdash-Bm6P-AhL.js → mdash-DplXkmjo.js} +2 -2
- package/{nbsp-BXJbFqM2.js → nbsp-DotS-UcO.js} +2 -2
- package/{ndash-Ckjn93Lr.js → ndash-zyr1NWHC.js} +2 -2
- package/{number-D7GiJl6R.js → number-CR2S6nIm.js} +6 -6
- package/{orbitalDiagram-DB6Wa4Gi.js → orbitalDiagram-8yUN6HsC.js} +2 -2
- package/{orbitalDiagramInput-Doz4QfoR.js → orbitalDiagramInput-Ga99WO3j.js} +2 -2
- package/{p-V7JNVg5b.js → p-Dt8H3Ipa.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-Ds0bmzec.js → paginatorControls-7mWSKtqd.js} +2 -2
- package/{pegboard-CYTCoGQW.js → pegboard-Cs8P0w4n.js} +3 -3
- package/{point-DN85dRFk.js → point-BBx1rcYQ.js} +6 -6
- package/{polygon-Befbc7lh.js → polygon-DADVX3Lu.js} +6 -6
- package/{polyline-BetrRfi4.js → polyline-Bu9sdXtF.js} +5 -5
- package/{pre-CXeWIDPX.js → pre-Dod42FI1.js} +3 -3
- package/{prefigure-DPKhGPFX.js → prefigure-gRQZOfPN.js} +1 -1
- package/{pretzel-ayCytPDt.js → pretzel-B9Qwz1xm.js} +4 -4
- package/{q-Btn27_dp.js → q-CaXVkW7Q.js} +3 -3
- package/{ray-EHjKdf1Q.js → ray-DeGsggqp.js} +5 -5
- package/{ref-Bn2E5Nka.js → ref-DC3qvplL.js} +2 -2
- package/{regionBetweenCurveXAxis-vYzgRDcd.js → regionBetweenCurveXAxis-BxB7qHP1.js} +5 -5
- package/{regionBetweenCurves-CtV5NWtR.js → regionBetweenCurves-DsTV6kJp.js} +5 -5
- package/{row-84o7biLr.js → row-uylaL1Fy.js} +2 -2
- package/{rq-DD_wBXdO.js → rq-KXGWvD1-.js} +2 -2
- package/{rsq--V8-YXab.js → rsq-fqXIJF1K.js} +2 -2
- package/{section-BIr1pur9.js → section-DIZJyIb2.js} +5 -5
- package/{sha256-8sXzDnE0-j9_Knizd.js → sha256-8sXzDnE0-BdbIcFhP.js} +1 -1
- package/{sideBySide-D4leYRQA.js → sideBySide-DvpMvmEJ.js} +2 -2
- package/{slider-C9Mu63nM.js → slider-D9DgNMGX.js} +3 -3
- package/{slopeField-JxPj-GpY.js → slopeField-Dlq-UdDy.js} +2 -2
- package/{solution-CkLrDoRh.js → solution-ah_B3FjB.js} +4 -4
- package/{spreadsheet-Bpx5CrJT.js → spreadsheet-BdiBHmxa.js} +2 -2
- package/{sq-DV0PW13s.js → sq-BLOitf3P.js} +3 -3
- package/{subsetOfRealsInput-CoOeWe8p.js → subsetOfRealsInput-CYAT09rb.js} +2 -2
- package/{summaryStatistics-BM6gkboG.js → summaryStatistics-L5WJ0qaQ.js} +2 -2
- package/{table-CZDkVKyZ.js → table-ojpNa920.js} +2 -2
- package/{tabular-BAABmWKh.js → tabular-CJxD3EiX.js} +2 -2
- package/{tag-Co0kCONa.js → tag-DDDkB_B3.js} +2 -2
- package/{text-zzSV3Mam.js → text-B3qZfJuC.js} +6 -6
- package/{textInput-bdMQnPVI.js → textInput-DSiok75-.js} +7 -7
- package/{tooltip-provider-DawLhfVr.js → tooltip-provider-6HOuAbBi.js} +2 -2
- package/{useAnchoredGraphDragHandler-DaSj5LE_.js → useAnchoredGraphDragHandler-pt6OhLNV.js} +1 -1
- package/useDoenetRenderer-Dl0jIAY1.js +114 -0
- package/{useFieldCurve-B0n8oE6K.js → useFieldCurve-DtWIbBn9.js} +2 -2
- package/{useSubmitActionWithDelay-BaJoyYGi.js → useSubmitActionWithDelay-NNCJsxtg.js} +2 -2
- package/{vector-CUGhCFGw.js → vector-BFqhpiFC.js} +6 -6
- package/{vectorField-B8EQfK9i.js → vectorField-DAr8liJa.js} +2 -2
- package/{video-BcbBYV8w.js → video-BrPptnTo.js} +10 -16
- package/useDoenetRenderer-DbJPKoQv.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-2tPWLq9H.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-BgRnwM7m.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dl0jIAY1.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-DyXJgTCq.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-BW1vp57v.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-2tPWLq9H.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-Dl0jIAY1.js";
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites-CHxo7foY.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-2tPWLq9H.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-2tPWLq9H.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-Dl0jIAY1.js";
|
|
4
|
+
import { A as AnswerResponseButton } from "./AnswerResponseButton-u6LZ8bmH.js";
|
|
5
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-NNCJsxtg.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-2tPWLq9H.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-Dl0jIAY1.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-Vb-kXCB6.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-2tPWLq9H.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-BgRnwM7m.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dl0jIAY1.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-DyXJgTCq.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-BW1vp57v.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-2tPWLq9H.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dl0jIAY1.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-2tPWLq9H.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-BgRnwM7m.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dl0jIAY1.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-DyXJgTCq.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-BRrMsPtY.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-2tPWLq9H.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-Dl0jIAY1.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-DyXJgTCq.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-BRrMsPtY.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-BgRnwM7m.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-2tPWLq9H.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dl0jIAY1.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-2tPWLq9H.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dl0jIAY1.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-2tPWLq9H.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dl0jIAY1.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, R as directionOf, S as useDocumentDirection, T as chromeLangDir, t as useUiLocale, E as DocContext, L as cesc, J as useRecordVisibilityChanges, q as jsxRuntimeExports, U as DocumentDirectionProvider } from "./doenetml-
|
|
1
|
+
import { u as useT, I as useContentT, R as directionOf, S as useDocumentDirection, T as chromeLangDir, t as useUiLocale, E as DocContext, L as cesc, J as useRecordVisibilityChanges, q as jsxRuntimeExports, U as DocumentDirectionProvider } from "./doenetml-2tPWLq9H.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-rlPI-pM5.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-Dl0jIAY1.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-CHxo7foY.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-NNCJsxtg.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-2tPWLq9H.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dl0jIAY1.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,9 +1,9 @@
|
|
|
1
|
-
import { u as useT, q as jsxRuntimeExports, V as ActionButtonGroup, W as ActionButton } from "./doenetml-
|
|
1
|
+
import { u as useT, q as jsxRuntimeExports, V as ActionButtonGroup, W as ActionButton } from "./doenetml-2tPWLq9H.js";
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from "react";
|
|
3
3
|
import me from "math-expressions";
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dl0jIAY1.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { r as renderLabelWithLatex } from "./labelWithLatex-
|
|
6
|
+
import { r as renderLabelWithLatex } from "./labelWithLatex-D1D4nXru.js";
|
|
7
7
|
import { l as ltrIslandProps } from "./direction-BwrU7jHk.js";
|
|
8
8
|
let round_to_decimals = (x, n) => {
|
|
9
9
|
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-Dl0jIAY1.js";
|
|
3
|
+
import { u as useFieldFunction, a as useFieldCurve, b as buildSlopeFieldData } from "./useFieldCurve-DtWIbBn9.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-2tPWLq9H.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-Dl0jIAY1.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-rlPI-pM5.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-CHxo7foY.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-2tPWLq9H.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-Dl0jIAY1.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-2tPWLq9H.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-Dl0jIAY1.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-Vb-kXCB6.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, a0 as ToggleButtonGroup, Z as ToggleButton, V as ActionButtonGroup, W as ActionButton } from "./doenetml-
|
|
1
|
+
import { u as useT, J as useRecordVisibilityChanges, q as jsxRuntimeExports, a0 as ToggleButtonGroup, Z as ToggleButton, V as ActionButtonGroup, W as ActionButton } from "./doenetml-2tPWLq9H.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dl0jIAY1.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-2tPWLq9H.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dl0jIAY1.js";
|
|
4
4
|
const summaryStatistics = React__default.memo(function SummaryStatistics(props) {
|
|
5
5
|
let { id, SVs, actions, callAction } = useDoenetRenderer(props);
|
|
6
6
|
const t = useT();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-2tPWLq9H.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dl0jIAY1.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-2tPWLq9H.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dl0jIAY1.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
5
|
import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
6
6
|
function borderWeightToCSSWidth(weight) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as jsxRuntimeExports } from "./doenetml-2tPWLq9H.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dl0jIAY1.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,14 +1,14 @@
|
|
|
1
|
-
import { E as DocContext, K as toNumberOrNaN, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-
|
|
1
|
+
import { E as DocContext, K as toNumberOrNaN, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-2tPWLq9H.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-BgRnwM7m.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-DyXJgTCq.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dl0jIAY1.js";
|
|
6
6
|
import me from "math-expressions";
|
|
7
7
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
8
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
8
|
+
import { ChoiceInputInlineContext } from "./choiceInput-Cw8FwYQy.js";
|
|
9
9
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
10
10
|
import { u as useDraggableRefs } from "./useDraggableRefs-QaTfkVuD.js";
|
|
11
|
-
import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-
|
|
11
|
+
import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-pt6OhLNV.js";
|
|
12
12
|
import { u as useJSXGraphCleanup } from "./useJSXGraphCleanup-BNk4sn6x.js";
|
|
13
13
|
import { e as resolveTextColor, f as resolveBackgroundColor } from "./styleColors-BrCvjxze.js";
|
|
14
14
|
const text = React__default.memo(function Text(props) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { I as useContentT, K as toNumberOrNaN, q as jsxRuntimeExports, Y as MathJax } from "./doenetml-
|
|
1
|
+
import { I as useContentT, K as toNumberOrNaN, q as jsxRuntimeExports, Y as MathJax } from "./doenetml-2tPWLq9H.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-BgRnwM7m.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dl0jIAY1.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-DyXJgTCq.js";
|
|
7
7
|
import me from "math-expressions";
|
|
8
8
|
import { g as getPositionFromAnchorByCoordinate, P as POINTER_DRAG_THRESHOLD } from "./graph-W6vrFcBu.js";
|
|
9
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, w as wantsFullCheckWorkButton, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
10
|
-
import { D as DescriptionPopover } from "./Description-
|
|
9
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, w as wantsFullCheckWorkButton, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-NNCJsxtg.js";
|
|
10
|
+
import { D as DescriptionPopover } from "./Description-CDuAgQLi.js";
|
|
11
11
|
import { a as addValidationStateToShortDescription } from "./validationState-DI_lxk1a.js";
|
|
12
|
-
import { b as useInMathSlot, c as useMathSlotEditing } from "./mathInputSlots-
|
|
12
|
+
import { b as useInMathSlot, c as useMathSlotEditing } from "./mathInputSlots-CIHWuRVc.js";
|
|
13
13
|
import { u as useMathJaxOutOfTabOrder } from "./useMathJaxOutOfTabOrder-C0wsYqBF.js";
|
|
14
14
|
const EXPANDED_INPUT_MARGIN_X = 4;
|
|
15
15
|
const BOARD_INPUT_FALLBACK_WIDTH = "100px";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aj as createStoreContext, ak as createDialogComponent, a2 as forwardRef, a3 as createElement, a4 as createHook, a6 as invariant, al as useWrapElement, q as jsxRuntimeExports, a7 as useStoreState, am as isFalsyBooleanCallback, an as contains, ao as sync, ap as chain, aq as useEvent, ar as createStore, as as defaultValue, at as useStore, au 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 { aj as createStoreContext, ak as createDialogComponent, a2 as forwardRef, a3 as createElement, a4 as createHook, a6 as invariant, al as useWrapElement, q as jsxRuntimeExports, a7 as useStoreState, am as isFalsyBooleanCallback, an as contains, ao as sync, ap as chain, aq as useEvent, ar as createStore, as as defaultValue, at as useStore, au as useStoreProps } from "./doenetml-2tPWLq9H.js";
|
|
2
|
+
import { H as HovercardScopedContextProvider, a as HovercardContextProvider, u as useHovercard, b as useHovercardAnchor, c as createHovercardStore, d as useHovercardStoreProps } from "./hovercard-store-C7XAyJkD.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-BgRnwM7m.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-2tPWLq9H.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-DohXi8ks.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-BgRnwM7m.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-YcbxvUNj.js"), "./renderers/alert.tsx": () => import("./alert-CTHZgnTU.js"), "./renderers/angle.tsx": () => import("./angle-DzfISqZc.js"), "./renderers/answer.tsx": () => import("./answer-D2mi-XCg.js"), "./renderers/asList.tsx": () => import("./asList-Dvh--Y6Q.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-BlSLCdkQ.js"), "./renderers/boolean.tsx": () => import("./boolean-B7bXWFH7.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-C8Kp70Zi.js"), "./renderers/br.tsx": () => import("./br-diH8ueZy.js"), "./renderers/button.tsx": () => import("./button-C_Nq6Vl2.js"), "./renderers/c.tsx": () => import("./c-DzDHntUs.js"), "./renderers/cell.tsx": () => import("./cell-3IeBjGmw.js"), "./renderers/chart.tsx": () => import("./chart-ChgTgKKA.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-Cw8FwYQy.js"), "./renderers/circle.tsx": () => import("./circle-DnMxZuLI.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-CYlHKxkW.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-CWROXzdz.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-B7EaBik4.js"), "./renderers/containerInline.tsx": () => import("./containerInline-t21UpSqf.js"), "./renderers/curve.tsx": () => import("./curve-H6MjEKqB.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-CUgzRd-f.js"), "./renderers/em.tsx": () => import("./em-BBKG3GZs.js"), "./renderers/embed.tsx": () => import("./embed-BKLgrP5C.js"), "./renderers/feedback.tsx": () => import("./feedback-WCz39HcA.js"), "./renderers/figure.tsx": () => import("./figure-CibOFwt0.js"), "./renderers/footnote.tsx": () => import("./footnote-x1GS33cd.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-CkW2sYZ6.js"), "./renderers/graph.tsx": () => import("./graph-DyXJgTCq.js"), "./renderers/hint.tsx": () => import("./hint-B8v4Bzxo.js"), "./renderers/hr.tsx": () => import("./hr-D3LXR-Vb.js"), "./renderers/image.tsx": () => import("./image-CMvT2ntQ.js"), "./renderers/label.tsx": () => import("./label-CHqyxCzB.js"), "./renderers/legend.tsx": () => import("./legend-E5qRft1-.js"), "./renderers/line.tsx": () => import("./line-D1sfPfAC.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-DEl_dcE0.js"), "./renderers/list.tsx": () => import("./list-BsfuiG8T.js"), "./renderers/lq.tsx": () => import("./lq-D6ZdcH5q.js"), "./renderers/lsq.tsx": () => import("./lsq-_uvA-D4t.js"), "./renderers/math.tsx": () => import("./math-B3sVUWqo.js"), "./renderers/mathInput.tsx": () => import("./mathInput-BtMXQS0j.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-DzpwID6-.js"), "./renderers/mdash.tsx": () => import("./mdash-DplXkmjo.js"), "./renderers/nbsp.tsx": () => import("./nbsp-DotS-UcO.js"), "./renderers/ndash.tsx": () => import("./ndash-zyr1NWHC.js"), "./renderers/number.tsx": () => import("./number-CR2S6nIm.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-8yUN6HsC.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-Ga99WO3j.js"), "./renderers/p.tsx": () => import("./p-Dt8H3Ipa.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-7mWSKtqd.js"), "./renderers/pegboard.tsx": () => import("./pegboard-Cs8P0w4n.js"), "./renderers/point.tsx": () => import("./point-BBx1rcYQ.js"), "./renderers/polygon.tsx": () => import("./polygon-DADVX3Lu.js"), "./renderers/polyline.tsx": () => import("./polyline-Bu9sdXtF.js"), "./renderers/pre.tsx": () => import("./pre-Dod42FI1.js"), "./renderers/prefigure.tsx": () => import("./prefigure-gRQZOfPN.js"), "./renderers/pretzel.tsx": () => import("./pretzel-B9Qwz1xm.js"), "./renderers/q.tsx": () => import("./q-CaXVkW7Q.js"), "./renderers/ray.tsx": () => import("./ray-DeGsggqp.js"), "./renderers/ref.tsx": () => import("./ref-DC3qvplL.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-BxB7qHP1.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-DsTV6kJp.js"), "./renderers/row.tsx": () => import("./row-uylaL1Fy.js"), "./renderers/rq.tsx": () => import("./rq-KXGWvD1-.js"), "./renderers/rsq.tsx": () => import("./rsq-fqXIJF1K.js"), "./renderers/section.tsx": () => import("./section-DIZJyIb2.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-DvpMvmEJ.js"), "./renderers/slider.tsx": () => import("./slider-D9DgNMGX.js"), "./renderers/slopeField.tsx": () => import("./slopeField-Dlq-UdDy.js"), "./renderers/solution.tsx": () => import("./solution-ah_B3FjB.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-BdiBHmxa.js"), "./renderers/sq.tsx": () => import("./sq-BLOitf3P.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-CYAT09rb.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-L5WJ0qaQ.js"), "./renderers/table.tsx": () => import("./table-ojpNa920.js"), "./renderers/tabular.tsx": () => import("./tabular-CJxD3EiX.js"), "./renderers/tag.tsx": () => import("./tag-DDDkB_B3.js"), "./renderers/text.tsx": () => import("./text-B3qZfJuC.js"), "./renderers/textInput.tsx": () => import("./textInput-DSiok75-.js"), "./renderers/vector.tsx": () => import("./vector-BFqhpiFC.js"), "./renderers/vectorField.tsx": () => import("./vectorField-DAr8liJa.js"), "./renderers/video.tsx": () => import("./video-BrPptnTo.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-DyXJgTCq.js";
|
|
3
|
+
import { N as createFunctionFromDefinition, E as DocContext } from "./doenetml-2tPWLq9H.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-2tPWLq9H.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-rlPI-pM5.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 checkWorkCredit(SVs) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { E as DocContext, q as jsxRuntimeExports, F as textRendererStyle, G as DynamicMath } from "./doenetml-
|
|
1
|
+
import { E as DocContext, q as jsxRuntimeExports, F as textRendererStyle, G as DynamicMath } from "./doenetml-2tPWLq9H.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 { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-
|
|
7
|
-
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-BgRnwM7m.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dl0jIAY1.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-DyXJgTCq.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-BW1vp57v.js";
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-Cw8FwYQy.js";
|
|
8
8
|
import { a as buildLineLikeAttributes, c as buildDragHandleAttributes } from "./buildGraphicalAttributes-B_soifR-.js";
|
|
9
9
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
10
10
|
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-Dl0jIAY1.js";
|
|
3
|
+
import { u as useFieldFunction, a as useFieldCurve, c as buildVectorFieldData } from "./useFieldCurve-DtWIbBn9.js";
|
|
4
4
|
const vectorField = React__default.memo(function VectorField(props) {
|
|
5
5
|
let { SVs } = useDoenetRenderer(props);
|
|
6
6
|
VectorField.ignoreActionsWithoutCore = () => true;
|