@doenet/doenetml 0.7.25-dev.509 → 0.7.25-dev.510
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-WNgkWSpd.js → AnswerResponseButton-GW5gWjsu.js} +2 -2
- package/{Description-C4eqCkC_.js → Description-BfJn1SIN.js} +1 -1
- package/{DynamicMath-BvlV9Ue6.js → DynamicMath-BuP_REuT.js} +1 -1
- package/{EditorViewer-kHiJOFlf.js → EditorViewer-BxpWXPcn.js} +6 -6
- package/{GraphFrame-DzNurl7N.js → GraphFrame-9DKkyWmx.js} +2 -2
- package/{JSXGraphRenderer-BwVXGMP4.js → JSXGraphRenderer-nyjG7BH_.js} +1 -1
- package/{NonInlineMediaWrapper-DzPcV8ai.js → NonInlineMediaWrapper-DNp-N6Ny.js} +1 -1
- package/{_error-DBleNKm5.js → _error-KTVE1Cmm.js} +2 -2
- package/{alert-BjCHVwSD.js → alert-CAoV5KO7.js} +3 -3
- package/{angle-CV-lsVbv.js → angle-CIquMUbu.js} +7 -7
- package/{answer-DZk2OeqT.js → answer-D3wj_4sq.js} +6 -6
- package/{asList-8q1PsHXc.js → asList-CXN1ByVo.js} +2 -2
- package/{blockQuote-BEyDkhwo.js → blockQuote-C0h6gejJ.js} +3 -3
- package/{boolean-CKyz6eHb.js → boolean-M3pLxnBv.js} +2 -2
- package/{booleanInput-ChlFCCLV.js → booleanInput-Cym-6m6x.js} +6 -6
- package/{br-CxUYlaB8.js → br-CVJPNyXk.js} +2 -2
- package/{button-CO1lQGiq.js → button-D0ohGecs.js} +4 -4
- package/{c-Rh1O1iCy.js → c-eoIDTgNm.js} +3 -3
- package/{cell-CctFezSP.js → cell-DpbuNWtO.js} +3 -3
- package/{choiceInput-Bzro42SK.js → choiceInput-DzD83Nuu.js} +4 -4
- package/{circle-CAurgB00.js → circle-DyUPDkVz.js} +6 -6
- package/{cobwebPolyline-7D51_AwY.js → cobwebPolyline-BzUTPER1.js} +4 -4
- package/{codeEditor-t7GavnU9.js → codeEditor-CJJyunPZ.js} +2 -2
- package/{composites-DzdKI4De.js → composites-BGUbWILq.js} +1 -1
- package/{containerBlock-CV2bYYgZ.js → containerBlock-v4HOfv9P.js} +4 -4
- package/{containerInline-gzsu6C5E.js → containerInline-CiW891EU.js} +4 -4
- package/{curve-BkO0t48i.js → curve-CPxGvTZT.js} +4 -4
- package/{doenetml-CtCZHRvy.js → doenetml-BM48JGfR.js} +225 -23
- 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-DSO_pxoC.js → ellipsis-C_pkBl9_.js} +2 -2
- package/{em-qSk-3no9.js → em-CBO0OsRD.js} +3 -3
- package/{embed-D3P2KT10.js → embed-AQVAd6i-.js} +2 -2
- package/{feedback-DksxqVzn.js → feedback-BhalmRm0.js} +4 -4
- package/{figure-C7BWvWlG.js → figure-D4BqMqOY.js} +3 -3
- package/{fillPatterns-B48xvOpp.js → fillPatterns-fym-a0OT.js} +1 -1
- package/{footnote-DkKAjG3d.js → footnote-BsosLkGk.js} +3 -3
- package/{fractionInput-BXzLaCfV.js → fractionInput-YSC8m_TJ.js} +4 -4
- package/{graph-DEBueuLQ.js → graph-DfeIoe8w.js} +6 -6
- package/{hint-De643czZ.js → hint-CtKpI7yK.js} +4 -4
- package/{hovercard-store-BchOyYaP.js → hovercard-store-Dreg4bOm.js} +1 -1
- package/{hr-gr8I6a9Q.js → hr-DkgoddaT.js} +2 -2
- package/{image-DRsIyZ8r.js → image-B4oZku3N.js} +7 -7
- package/{index-Btr2x0__.js → index-Bc6oTLpD.js} +1 -1
- package/{index.es-D1tWNMRu.js → index.es-CL-nWvHN.js} +1 -1
- package/index.js +1 -1
- package/{label-CafWqDS1.js → label-DlLvV-jo.js} +7 -7
- package/{labelWithLatex-Di-MMnoq.js → labelWithLatex-DfyGObvZ.js} +2 -2
- package/{legend-ivrSn49-.js → legend-B2k_wmNo.js} +4 -4
- package/{line-DTe5itAC.js → line-LGJOwDC5.js} +7 -7
- package/{lineFamilyDragHandlers-QJcRU87y.js → lineFamilyDragHandlers-CerKUM5z.js} +1 -1
- package/{lineSegment-B2TuYJew.js → lineSegment-B_dttwSd.js} +5 -5
- package/{list-DHV-Xdb2.js → list-BnIeFjsO.js} +4 -4
- package/{lq-BSGme5zl.js → lq-CXesBvfn.js} +2 -2
- package/{lsq-DyHffzVv.js → lsq-DVDwLjmw.js} +2 -2
- package/{markupRenderer-DdQQWGzr.js → markupRenderer-Dtildqch.js} +1 -1
- package/{math-C09WXHRY.js → math-C-Sh2D5I.js} +7 -7
- package/{mathInput-CfkZlm_o.js → mathInput-D-6qMd9e.js} +7 -7
- package/{matrixInput-C1V3zbAl.js → matrixInput-JLSRMn4D.js} +4 -4
- package/{mdash-Zcnde8t6.js → mdash-COz2sVTB.js} +2 -2
- package/{nbsp-C7M2sheU.js → nbsp-DVC90S8v.js} +2 -2
- package/{ndash-BtVBCmWC.js → ndash-chGzIski.js} +2 -2
- package/{number-C0bTiBbK.js → number-CyQBdwGY.js} +7 -7
- package/{orbitalDiagram-j6SlFPE6.js → orbitalDiagram-DePvUk5K.js} +2 -2
- package/{orbitalDiagramInput-581co6R3.js → orbitalDiagramInput-CHWJGW-f.js} +2 -2
- package/{p-W9NoU3PE.js → p-D6OyBnEV.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-A4EaMiiZ.js → paginatorControls-CSXH-5Nq.js} +2 -2
- package/{pegboard-U9gYlDQV.js → pegboard-DYe4eb-I.js} +4 -4
- package/{point-CO8S3_sD.js → point-BuynOHMD.js} +7 -7
- package/{polygon-D3cZALW9.js → polygon-D6xgJh8x.js} +6 -6
- package/{polyline-CB8fas39.js → polyline-DPgiQsAY.js} +5 -5
- package/{pre-Bs3bzRPo.js → pre-BZuBq5sh.js} +3 -3
- package/{prefigure-D7lHTndy.js → prefigure-CyFAdHPV.js} +1 -1
- package/{pretzel-0jerGDbv.js → pretzel-BbRfj1g7.js} +4 -4
- package/{q-BF27PS0x.js → q-B6AyBEeZ.js} +3 -3
- package/{ray-CJAi1o3F.js → ray-rZ0iZCvA.js} +5 -5
- package/{ref-By35jPEl.js → ref-C5cQ3y7w.js} +2 -2
- package/{regionBetweenCurveXAxis-BnApsxVB.js → regionBetweenCurveXAxis-CPN2zhEl.js} +5 -5
- package/{regionBetweenCurves-CN277hz_.js → regionBetweenCurves-DVgpgZwu.js} +5 -5
- package/{row-BOiTJSp_.js → row-CJBC7pO3.js} +2 -2
- package/{rq-BZ60riMC.js → rq-BDT9tRR6.js} +2 -2
- package/{rsq-BHQGtAn6.js → rsq-BbBzIjnx.js} +2 -2
- package/{section-DsXaIsRt.js → section-DgLone7p.js} +5 -5
- package/{sha256-DT5xJ2Hv-Dgc-wOwS.js → sha256-DT5xJ2Hv-Df6rPmxa.js} +1 -1
- package/{sideBySide-D5eTQVYR.js → sideBySide-HF9AfMIR.js} +2 -2
- package/{slider-D7lkkEvF.js → slider-6B-5I2da.js} +3 -3
- package/{slopeField-ClgEX7SM.js → slopeField-iVgW6SgU.js} +2 -2
- package/{solution-Ct5YAxRI.js → solution-D_YHTYTD.js} +4 -4
- package/{spreadsheet-BTNuSoXh.js → spreadsheet-BQioUoe7.js} +2 -2
- package/{sq-BZggaHTl.js → sq-BNJP_BYq.js} +3 -3
- package/{subsetOfRealsInput-0OKkXDgt.js → subsetOfRealsInput-DKiqpbnQ.js} +2 -2
- package/{summaryStatistics-C5nDH1-i.js → summaryStatistics-BzRSNPpA.js} +2 -2
- package/{table-BZGwHfSI.js → table-DYUHxR4a.js} +2 -2
- package/{tabular-Bvwse3JI.js → tabular-CF95szoG.js} +2 -2
- package/{tag-DwWr-Bpo.js → tag-BZ5TsBeZ.js} +2 -2
- package/{text-0826RAA6.js → text-CnHK_WP1.js} +6 -6
- package/{textInput-vdkejRB2.js → textInput-YUwGJoSU.js} +6 -6
- package/{tooltip-provider-N52kEN8m.js → tooltip-provider-CCsdwvov.js} +2 -2
- package/{useAnchoredGraphDragHandler-CvNTeJxo.js → useAnchoredGraphDragHandler-DtxzDgCM.js} +1 -1
- package/useDoenetRenderer-C3e9plZL.js +114 -0
- package/{useFieldCurve-CJVrhZvA.js → useFieldCurve-CP7Nysqy.js} +2 -2
- package/{useSubmitActionWithDelay-DFAowULH.js → useSubmitActionWithDelay-5BuHe7gr.js} +2 -2
- package/{vector-D9WnTbDe.js → vector-D_gPFSzR.js} +7 -7
- package/{vectorField-B5OR85Xp.js → vectorField-CGx8lfmG.js} +2 -2
- package/{video-Bh1n0w98.js → video-D6tkF8pX.js} +4 -4
- package/useDoenetRenderer-CAPq02D1.js +0 -114
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as DocContext, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { A as DocContext, q as jsxRuntimeExports } from "./doenetml-BM48JGfR.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-nyjG7BH_.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-C3e9plZL.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-DfeIoe8w.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-CerKUM5z.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 { G as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { G as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-BM48JGfR.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-C3e9plZL.js";
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites-BGUbWILq.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-BM48JGfR.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, F as useContentT, v as useChromeLangDir, G as useRecordVisibilityChanges, A as DocContext, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, F as useContentT, v as useChromeLangDir, G as useRecordVisibilityChanges, A as DocContext, q as jsxRuntimeExports } from "./doenetml-BM48JGfR.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-C3e9plZL.js";
|
|
4
|
+
import { A as AnswerResponseButton } from "./AnswerResponseButton-GW5gWjsu.js";
|
|
5
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-5BuHe7gr.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-BM48JGfR.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-C3e9plZL.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-Dtildqch.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 { A as DocContext, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { A as DocContext, q as jsxRuntimeExports } from "./doenetml-BM48JGfR.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-nyjG7BH_.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-C3e9plZL.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-DfeIoe8w.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-CerKUM5z.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 { A as DocContext, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { A as DocContext, q as jsxRuntimeExports } from "./doenetml-BM48JGfR.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-C3e9plZL.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 { A as DocContext, K as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { A as DocContext, K as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-BM48JGfR.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-nyjG7BH_.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-C3e9plZL.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-DfeIoe8w.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-fym-a0OT.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 { A as DocContext, K as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { A as DocContext, K as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-BM48JGfR.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-C3e9plZL.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-DfeIoe8w.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-fym-a0OT.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-nyjG7BH_.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-BM48JGfR.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-C3e9plZL.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-BM48JGfR.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-C3e9plZL.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-BM48JGfR.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-C3e9plZL.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, F as useContentT, N as directionOf, O as useDocumentDirection, P as chromeLangDir, t as useUiLocale, A as DocContext, I as cesc, G as useRecordVisibilityChanges, q as jsxRuntimeExports, Q as DocumentDirectionProvider } from "./doenetml-
|
|
1
|
+
import { u as useT, F as useContentT, N as directionOf, O as useDocumentDirection, P as chromeLangDir, t as useUiLocale, A as DocContext, I as cesc, G as useRecordVisibilityChanges, q as jsxRuntimeExports, Q as DocumentDirectionProvider } from "./doenetml-BM48JGfR.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-CL-nWvHN.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-C3e9plZL.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-BGUbWILq.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-5BuHe7gr.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 { G as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { G as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-BM48JGfR.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-C3e9plZL.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, R as ActionButtonGroup, S as ActionButton, H as Context } from "./doenetml-
|
|
1
|
+
import { u as useT, q as jsxRuntimeExports, R as ActionButtonGroup, S as ActionButton, H as Context } from "./doenetml-BM48JGfR.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-C3e9plZL.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-DfyGObvZ.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-C3e9plZL.js";
|
|
3
|
+
import { u as useFieldFunction, a as useFieldCurve, b as buildSlopeFieldData } from "./useFieldCurve-CP7Nysqy.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, G as useRecordVisibilityChanges, v as useChromeLangDir, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, G as useRecordVisibilityChanges, v as useChromeLangDir, q as jsxRuntimeExports } from "./doenetml-BM48JGfR.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-C3e9plZL.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-CL-nWvHN.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-BGUbWILq.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 { A as DocContext, G as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { A as DocContext, G as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-BM48JGfR.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-C3e9plZL.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-BM48JGfR.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-C3e9plZL.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-Dtildqch.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, G as useRecordVisibilityChanges, q as jsxRuntimeExports, W as ToggleButtonGroup, U as ToggleButton, R as ActionButtonGroup, S as ActionButton } from "./doenetml-
|
|
1
|
+
import { u as useT, G as useRecordVisibilityChanges, q as jsxRuntimeExports, W as ToggleButtonGroup, U as ToggleButton, R as ActionButtonGroup, S as ActionButton } from "./doenetml-BM48JGfR.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-C3e9plZL.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, G as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, v as useChromeLangDir, G as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-BM48JGfR.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-C3e9plZL.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 { G as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { G as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-BM48JGfR.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-C3e9plZL.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 { G as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { G as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-BM48JGfR.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-C3e9plZL.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-BM48JGfR.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-C3e9plZL.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 { A as DocContext, H as Context, q as jsxRuntimeExports, B as textRendererStyle } from "./doenetml-
|
|
1
|
+
import { A as DocContext, H as Context, q as jsxRuntimeExports, B as textRendererStyle } from "./doenetml-BM48JGfR.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-nyjG7BH_.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-DfeIoe8w.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-C3e9plZL.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-DzD83Nuu.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-DtxzDgCM.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,12 +1,12 @@
|
|
|
1
|
-
import { F as useContentT, H as Context, q as jsxRuntimeExports, T as MathJax } from "./doenetml-
|
|
1
|
+
import { F as useContentT, H as Context, q as jsxRuntimeExports, T as MathJax } from "./doenetml-BM48JGfR.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-nyjG7BH_.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-C3e9plZL.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-DfeIoe8w.js";
|
|
7
7
|
import { g as getPositionFromAnchorByCoordinate, P as POINTER_DRAG_THRESHOLD } from "./graph-W6vrFcBu.js";
|
|
8
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
9
|
-
import { D as DescriptionPopover } from "./Description-
|
|
8
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-5BuHe7gr.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-BfJn1SIN.js";
|
|
10
10
|
import { a as addValidationStateToShortDescription } from "./validationState-DI_lxk1a.js";
|
|
11
11
|
function TextInput(props) {
|
|
12
12
|
let { id, SVs, children, actions, ignoreUpdate, callAction } = useDoenetRenderer(props);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ae as createStoreContext, af as createDialogComponent, Y as forwardRef, Z as createElement, $ as createHook, a1 as invariant, ag as useWrapElement, q as jsxRuntimeExports, a2 as useStoreState, ah as isFalsyBooleanCallback, ai as contains, aj as sync, ak as chain, al as useEvent, am as createStore, an as defaultValue, ao as useStore, ap 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 { ae as createStoreContext, af as createDialogComponent, Y as forwardRef, Z as createElement, $ as createHook, a1 as invariant, ag as useWrapElement, q as jsxRuntimeExports, a2 as useStoreState, ah as isFalsyBooleanCallback, ai as contains, aj as sync, ak as chain, al as useEvent, am as createStore, an as defaultValue, ao as useStore, ap as useStoreProps } from "./doenetml-BM48JGfR.js";
|
|
2
|
+
import { H as HovercardScopedContextProvider, a as HovercardContextProvider, u as useHovercard, b as useHovercardAnchor, c as createHovercardStore, d as useHovercardStoreProps } from "./hovercard-store-Dreg4bOm.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-nyjG7BH_.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-BM48JGfR.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-9DKkyWmx.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-nyjG7BH_.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-KTVE1Cmm.js"), "./renderers/alert.tsx": () => import("./alert-CAoV5KO7.js"), "./renderers/angle.tsx": () => import("./angle-CIquMUbu.js"), "./renderers/answer.tsx": () => import("./answer-D3wj_4sq.js"), "./renderers/asList.tsx": () => import("./asList-CXN1ByVo.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-C0h6gejJ.js"), "./renderers/boolean.tsx": () => import("./boolean-M3pLxnBv.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-Cym-6m6x.js"), "./renderers/br.tsx": () => import("./br-CVJPNyXk.js"), "./renderers/button.tsx": () => import("./button-D0ohGecs.js"), "./renderers/c.tsx": () => import("./c-eoIDTgNm.js"), "./renderers/cell.tsx": () => import("./cell-DpbuNWtO.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-DzD83Nuu.js"), "./renderers/circle.tsx": () => import("./circle-DyUPDkVz.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-BzUTPER1.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-CJJyunPZ.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-v4HOfv9P.js"), "./renderers/containerInline.tsx": () => import("./containerInline-CiW891EU.js"), "./renderers/curve.tsx": () => import("./curve-CPxGvTZT.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-C_pkBl9_.js"), "./renderers/em.tsx": () => import("./em-CBO0OsRD.js"), "./renderers/embed.tsx": () => import("./embed-AQVAd6i-.js"), "./renderers/feedback.tsx": () => import("./feedback-BhalmRm0.js"), "./renderers/figure.tsx": () => import("./figure-D4BqMqOY.js"), "./renderers/footnote.tsx": () => import("./footnote-BsosLkGk.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-YSC8m_TJ.js"), "./renderers/graph.tsx": () => import("./graph-DfeIoe8w.js"), "./renderers/hint.tsx": () => import("./hint-CtKpI7yK.js"), "./renderers/hr.tsx": () => import("./hr-DkgoddaT.js"), "./renderers/image.tsx": () => import("./image-B4oZku3N.js"), "./renderers/label.tsx": () => import("./label-DlLvV-jo.js"), "./renderers/legend.tsx": () => import("./legend-B2k_wmNo.js"), "./renderers/line.tsx": () => import("./line-LGJOwDC5.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-B_dttwSd.js"), "./renderers/list.tsx": () => import("./list-BnIeFjsO.js"), "./renderers/lq.tsx": () => import("./lq-CXesBvfn.js"), "./renderers/lsq.tsx": () => import("./lsq-DVDwLjmw.js"), "./renderers/math.tsx": () => import("./math-C-Sh2D5I.js"), "./renderers/mathInput.tsx": () => import("./mathInput-D-6qMd9e.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-JLSRMn4D.js"), "./renderers/mdash.tsx": () => import("./mdash-COz2sVTB.js"), "./renderers/nbsp.tsx": () => import("./nbsp-DVC90S8v.js"), "./renderers/ndash.tsx": () => import("./ndash-chGzIski.js"), "./renderers/number.tsx": () => import("./number-CyQBdwGY.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-DePvUk5K.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-CHWJGW-f.js"), "./renderers/p.tsx": () => import("./p-D6OyBnEV.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-CSXH-5Nq.js"), "./renderers/pegboard.tsx": () => import("./pegboard-DYe4eb-I.js"), "./renderers/point.tsx": () => import("./point-BuynOHMD.js"), "./renderers/polygon.tsx": () => import("./polygon-D6xgJh8x.js"), "./renderers/polyline.tsx": () => import("./polyline-DPgiQsAY.js"), "./renderers/pre.tsx": () => import("./pre-BZuBq5sh.js"), "./renderers/prefigure.tsx": () => import("./prefigure-CyFAdHPV.js"), "./renderers/pretzel.tsx": () => import("./pretzel-BbRfj1g7.js"), "./renderers/q.tsx": () => import("./q-B6AyBEeZ.js"), "./renderers/ray.tsx": () => import("./ray-rZ0iZCvA.js"), "./renderers/ref.tsx": () => import("./ref-C5cQ3y7w.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-CPN2zhEl.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-DVgpgZwu.js"), "./renderers/row.tsx": () => import("./row-CJBC7pO3.js"), "./renderers/rq.tsx": () => import("./rq-BDT9tRR6.js"), "./renderers/rsq.tsx": () => import("./rsq-BbBzIjnx.js"), "./renderers/section.tsx": () => import("./section-DgLone7p.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-HF9AfMIR.js"), "./renderers/slider.tsx": () => import("./slider-6B-5I2da.js"), "./renderers/slopeField.tsx": () => import("./slopeField-iVgW6SgU.js"), "./renderers/solution.tsx": () => import("./solution-D_YHTYTD.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-BQioUoe7.js"), "./renderers/sq.tsx": () => import("./sq-BNJP_BYq.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-DKiqpbnQ.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-BzRSNPpA.js"), "./renderers/table.tsx": () => import("./table-DYUHxR4a.js"), "./renderers/tabular.tsx": () => import("./tabular-CF95szoG.js"), "./renderers/tag.tsx": () => import("./tag-BZ5TsBeZ.js"), "./renderers/text.tsx": () => import("./text-CnHK_WP1.js"), "./renderers/textInput.tsx": () => import("./textInput-YUwGJoSU.js"), "./renderers/vector.tsx": () => import("./vector-D_gPFSzR.js"), "./renderers/vectorField.tsx": () => import("./vectorField-CGx8lfmG.js"), "./renderers/video.tsx": () => import("./video-D6tkF8pX.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 { K as createFunctionFromDefinition, A as DocContext } from "./doenetml-
|
|
2
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-DfeIoe8w.js";
|
|
3
|
+
import { K as createFunctionFromDefinition, A as DocContext } from "./doenetml-BM48JGfR.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-BM48JGfR.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-CL-nWvHN.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 { A as DocContext, q as jsxRuntimeExports, B as textRendererStyle } from "./doenetml-
|
|
1
|
+
import { A as DocContext, q as jsxRuntimeExports, B as textRendererStyle } from "./doenetml-BM48JGfR.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-nyjG7BH_.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-C3e9plZL.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-DfeIoe8w.js";
|
|
6
|
+
import { D as DynamicMath } from "./DynamicMath-BuP_REuT.js";
|
|
7
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-CerKUM5z.js";
|
|
8
|
+
import { ChoiceInputInlineContext } from "./choiceInput-DzD83Nuu.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-C3e9plZL.js";
|
|
3
|
+
import { u as useFieldFunction, a as useFieldCurve, c as buildVectorFieldData } from "./useFieldCurve-CP7Nysqy.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 { G as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { G as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-BM48JGfR.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-C3e9plZL.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-BfJn1SIN.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-DNp-N6Ny.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;
|