@doenet/doenetml 0.7.24-dev.495 → 0.7.24-dev.496
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-Dh3-9gZO.js → AnswerResponseButton-BrrWb-sk.js} +2 -2
- package/{Description-C784Vv21.js → Description-BZ8oeOL9.js} +1 -1
- package/{DynamicMath-D1wKrLlg.js → DynamicMath-DNJy5-OC.js} +1 -1
- package/{EditorViewer-CgeqFSvi.js → EditorViewer-BtN3PY5x.js} +7 -7
- package/{GraphFrame-zEBOQLV2.js → GraphFrame-l_fXN6oJ.js} +2 -2
- package/{JSXGraphRenderer-CyYe0d3K.js → JSXGraphRenderer-xuqNYEMe.js} +1 -1
- package/{NonInlineMediaWrapper-C6IeqhUk.js → NonInlineMediaWrapper-CcmkTJmz.js} +1 -1
- package/Viewer/DocViewer.d.ts.map +1 -1
- package/Viewer/coreWorkerBoot.d.ts +9 -1
- package/Viewer/coreWorkerBoot.d.ts.map +1 -1
- package/{_error-hqesHzVC.js → _error-6wEbVswo.js} +2 -2
- package/{alert-axYiV_tJ.js → alert-DGIdSxd5.js} +3 -3
- package/{angle-BKq_hmKc.js → angle-B_yqY4eA.js} +7 -7
- package/{answer-BMMoGAJn.js → answer-CsP3EPMl.js} +6 -6
- package/{asList-CC2BVoI_.js → asList-DCXp-O5w.js} +2 -2
- package/{blockQuote-kj3Ck-pZ.js → blockQuote-BdOxQAZX.js} +3 -3
- package/{boolean-BuBdYx-N.js → boolean-w9_LHFn2.js} +2 -2
- package/{booleanInput-BcvmUpXs.js → booleanInput-WvLRmRvQ.js} +7 -7
- package/{br-BRIBO7bD.js → br-BkZHYEyb.js} +2 -2
- package/{button-CMX4IneM.js → button-eO4GcDK0.js} +5 -5
- package/{c-sY8VwhFg.js → c-BQKhLZrA.js} +3 -3
- package/{cell-L0R7RpcY.js → cell-C0WBTaNk.js} +3 -3
- package/{choiceInput-BrWYbJql.js → choiceInput-BhxWosVq.js} +4 -4
- package/{circle-C7ZgorN7.js → circle-CpKUhiP5.js} +6 -6
- package/{cobwebPolyline-DH3cUzkl.js → cobwebPolyline-_r-rG3Nw.js} +4 -4
- package/{codeEditor-D12aWsev.js → codeEditor-CszCj14f.js} +2 -2
- package/{composites-B9f9SwvS.js → composites-Bbo8IP1W.js} +1 -1
- package/{containerBlock-Cc3gEQrI.js → containerBlock-Dyrio5Dv.js} +4 -4
- package/{containerInline-CPpPik-D.js → containerInline--3XrSLzN.js} +4 -4
- package/{curve-C4GzvlkI.js → curve-kTH7dlHM.js} +4 -4
- package/{doenetml-BuSy6I1w.js → doenetml-CJXENjwD.js} +53 -17
- 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-DnFVuA9d.js → ellipsis-D80KnK2G.js} +2 -2
- package/{em-DdD05o3x.js → em-TShdxpOF.js} +3 -3
- package/{embed-B62WIgaH.js → embed-C-EstgJD.js} +2 -2
- package/{feedback-BcxDOMuZ.js → feedback-Cxw3lzpg.js} +4 -4
- package/{figure-CcLohmH5.js → figure--Rh8P7Sz.js} +3 -3
- package/{fillPatterns-CIOIFbrm.js → fillPatterns-B_8jtfYS.js} +1 -1
- package/{footnote-CPEytkdo.js → footnote-DptVzLcw.js} +3 -3
- package/{fractionInput-CiL7mOX5.js → fractionInput-DuK4ef-d.js} +4 -4
- package/{graph-9LOjGTCa.js → graph-CJH3fb_9.js} +6 -6
- package/{hint-C41Ch5XB.js → hint-B4OYwoCZ.js} +4 -4
- package/{hovercard-store-uHO3b4aw.js → hovercard-store-Cor2JG-E.js} +1 -1
- package/{hr-C84KrkaF.js → hr-DxyxAfyw.js} +2 -2
- package/{image-DsR4O6yd.js → image-CRE46C0H.js} +7 -7
- package/{index-CoqrVLpI.js → index-CBRP4-wN.js} +1 -1
- package/{index-B7k3y3yv.js → index-DsDLFuEL.js} +1 -1
- package/{index.es-DGwBETra.js → index.es-DEOewEZn.js} +1 -1
- package/index.js +1 -1
- package/{label-CodBWl3q.js → label-CIpj5Y63.js} +7 -7
- package/{labelWithLatex-Dz50ruqm.js → labelWithLatex-BicLyl1D.js} +2 -2
- package/{legend-D5qk1cn9.js → legend-B6iNoOk3.js} +4 -4
- package/{line-LKhHK3ao.js → line-uTSnEqNp.js} +7 -7
- package/{lineFamilyDragHandlers-B-CET7lf.js → lineFamilyDragHandlers-Df7osYz-.js} +1 -1
- package/{lineSegment-CMe7p4B8.js → lineSegment-Dfyje5QM.js} +5 -5
- package/{list-aDqq9E8_.js → list-D9pGeii4.js} +4 -4
- package/{lq-sk_kpM4g.js → lq-CZICWXNg.js} +2 -2
- package/{lsq-udYhMiy-.js → lsq-C5DeGe8L.js} +2 -2
- package/{markupRenderer-BGYjAPmU.js → markupRenderer-DiDBWayp.js} +1 -1
- package/{math-D5bR8goy.js → math--Up--LZT.js} +7 -7
- package/{mathInput-CqA8QGlC.js → mathInput-DiCsw8Xy.js} +7 -7
- package/{matrixInput-DZ5rWbAH.js → matrixInput-DeDRhwTH.js} +5 -5
- package/{mdash-ByqoX5jk.js → mdash-YpMtTzYb.js} +2 -2
- package/{nbsp-DJyyMGnV.js → nbsp-CzouLmyA.js} +2 -2
- package/{ndash-Cm01kWl7.js → ndash-CesSHMoZ.js} +2 -2
- package/{number-C22PBQNy.js → number-Dsi8t-oT.js} +7 -7
- package/{orbitalDiagram-CTmuEgi-.js → orbitalDiagram-DqW8lDXG.js} +2 -2
- package/{orbitalDiagramInput-ByYETH5z.js → orbitalDiagramInput-Ujhexiv5.js} +3 -3
- package/{p-TtFLz_x5.js → p-JkDCJkLt.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-D0_5xOvO.js → paginatorControls-zeS4MeYM.js} +3 -3
- package/{pegboard-pPTxf8sE.js → pegboard-DzlzO4lr.js} +4 -4
- package/{point-D4b8U4lC.js → point-BnRGGL5k.js} +7 -7
- package/{polygon-iydeAeAK.js → polygon-BeS39j3N.js} +6 -6
- package/{polyline-D1Wqv7hE.js → polyline-DjMK8sjj.js} +5 -5
- package/{pre-CQ9y4D0C.js → pre-B9SF1WXw.js} +3 -3
- package/{prefigure-CJkNxksY.js → prefigure-CgQvLn5h.js} +1 -1
- package/{pretzel-CPkDoQpu.js → pretzel-DBniVxdm.js} +4 -4
- package/{q-CZXq0YKe.js → q-CLzPbBkU.js} +3 -3
- package/{ray-BXcVKK2Z.js → ray-Bg6L_yXO.js} +5 -5
- package/{ref-DU5u7LFH.js → ref-CCJXcMPu.js} +2 -2
- package/{regionBetweenCurveXAxis-D8UXPU8g.js → regionBetweenCurveXAxis-CS_AlIVf.js} +5 -5
- package/{regionBetweenCurves-DvRmJcwN.js → regionBetweenCurves-DNvowvoK.js} +5 -5
- package/{row-DvC8EdBh.js → row-Dle_oVKb.js} +2 -2
- package/{rq-JzDMJ0ZL.js → rq-CI5DfsFj.js} +2 -2
- package/{rsq-GgFYOjN0.js → rsq-BB9E3_NA.js} +2 -2
- package/{section-BrgbvDNu.js → section-p0dG4GrG.js} +5 -5
- package/{sha256-DT5xJ2Hv-zsQ-uelX.js → sha256-DT5xJ2Hv-nRhEg6Iu.js} +1 -1
- package/{sideBySide-DE2uxJzi.js → sideBySide-C0hv1H5l.js} +2 -2
- package/{slider-CkjyPDPg.js → slider-CvaKYTQl.js} +4 -4
- package/{slopeField-DzoDI_VI.js → slopeField-C7IAnOmN.js} +2 -2
- package/{solution-D61ajFGy.js → solution-WX05uux-.js} +4 -4
- package/{spreadsheet-DG_DFrQv.js → spreadsheet-YJjdy9w5.js} +2 -2
- package/{sq-Crt8B5Q9.js → sq-ChyPDsQB.js} +3 -3
- package/{subsetOfRealsInput-Cpy9vBVy.js → subsetOfRealsInput-BwDeYfV-.js} +3 -3
- package/{summaryStatistics-DW_aR-Nj.js → summaryStatistics-Dnv8WfMs.js} +2 -2
- package/{table-CbJlvUVx.js → table-DgDuWmAc.js} +2 -2
- package/{tabular-CrEPPxUm.js → tabular-DCqCE_YP.js} +2 -2
- package/{tag-sTOkSoGF.js → tag-Cz5m3LXR.js} +2 -2
- package/{text-BOFBX0YD.js → text-BpAMUhHw.js} +6 -6
- package/{textInput-TRboDv3U.js → textInput-DUcTr-gU.js} +6 -6
- package/{tooltip-provider-MdvzPbk6.js → tooltip-provider-C2iQu8q1.js} +2 -2
- package/{useAnchoredGraphDragHandler-CyQBCDpJ.js → useAnchoredGraphDragHandler-guvyhnhU.js} +1 -1
- package/useDoenetRenderer-BAtxQcWU.js +114 -0
- package/{useFieldCurve-DJVrRZ6y.js → useFieldCurve-DTQt88CG.js} +2 -2
- package/{useSubmitActionWithDelay-Bz9sbOOj.js → useSubmitActionWithDelay-DfA50-Kj.js} +2 -2
- package/utils/handshakeCensus.d.ts +52 -10
- package/utils/handshakeCensus.d.ts.map +1 -1
- package/{vector-QaINZf3K.js → vector-BWEByhmm.js} +7 -7
- package/{vectorField-PPj_aZIR.js → vectorField-De1Z4iOl.js} +2 -2
- package/{video-CYCSnFH1.js → video-BQM_T1_i.js} +4 -4
- package/useDoenetRenderer-BqmSXVL0.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-CJXENjwD.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-xuqNYEMe.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BAtxQcWU.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-CJH3fb_9.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-Df7osYz-.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-Cknqcr0q.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-CJXENjwD.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-BAtxQcWU.js";
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites-Bbo8IP1W.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-CJXENjwD.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-CJXENjwD.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-BAtxQcWU.js";
|
|
4
|
+
import { A as AnswerResponseButton } from "./AnswerResponseButton-BrrWb-sk.js";
|
|
5
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-DfA50-Kj.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-CJXENjwD.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-BAtxQcWU.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-DiDBWayp.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-CJXENjwD.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-xuqNYEMe.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BAtxQcWU.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-CJH3fb_9.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-Df7osYz-.js";
|
|
7
7
|
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-0RNcbd2S.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-CJXENjwD.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BAtxQcWU.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, J as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { A as DocContext, J as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-CJXENjwD.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-xuqNYEMe.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BAtxQcWU.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-CJH3fb_9.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-B_8jtfYS.js";
|
|
7
7
|
import { b as resolveCanvasColor } from "./styleColors-Cknqcr0q.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, J as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { A as DocContext, J as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-CJXENjwD.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-BAtxQcWU.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-CJH3fb_9.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-B_8jtfYS.js";
|
|
7
7
|
import { b as resolveCanvasColor } from "./styleColors-Cknqcr0q.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-xuqNYEMe.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-CJXENjwD.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BAtxQcWU.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-CJXENjwD.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BAtxQcWU.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-CJXENjwD.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BAtxQcWU.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, M as directionOf, N as useDocumentDirection, O as chromeLangDir, t as useUiLocale, A as DocContext, I as cesc, G as useRecordVisibilityChanges, q as jsxRuntimeExports, P as DocumentDirectionProvider } from "./doenetml-
|
|
1
|
+
import { u as useT, F as useContentT, M as directionOf, N as useDocumentDirection, O as chromeLangDir, t as useUiLocale, A as DocContext, I as cesc, G as useRecordVisibilityChanges, q as jsxRuntimeExports, P as DocumentDirectionProvider } from "./doenetml-CJXENjwD.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-DEOewEZn.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-BAtxQcWU.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-Bbo8IP1W.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-DfA50-Kj.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-CJXENjwD.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BAtxQcWU.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, H as Context } from "./doenetml-
|
|
1
|
+
import { u as useT, q as jsxRuntimeExports, H as Context } from "./doenetml-CJXENjwD.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-BAtxQcWU.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
|
-
import { A as ActionButtonGroup, a as ActionButton } from "./index-
|
|
6
|
-
import { r as renderLabelWithLatex } from "./labelWithLatex-
|
|
5
|
+
import { A as ActionButtonGroup, a as ActionButton } from "./index-DsDLFuEL.js";
|
|
6
|
+
import { r as renderLabelWithLatex } from "./labelWithLatex-BicLyl1D.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-BAtxQcWU.js";
|
|
3
|
+
import { u as useFieldFunction, a as useFieldCurve, b as buildSlopeFieldData } from "./useFieldCurve-DTQt88CG.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-CJXENjwD.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-BAtxQcWU.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-DEOewEZn.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-Bbo8IP1W.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-CJXENjwD.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-BAtxQcWU.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-CJXENjwD.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-BAtxQcWU.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-DiDBWayp.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,7 +1,7 @@
|
|
|
1
|
-
import { u as useT, G as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, G as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-CJXENjwD.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { b as ToggleButtonGroup, T as ToggleButton, A as ActionButtonGroup, a as ActionButton } from "./index-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BAtxQcWU.js";
|
|
4
|
+
import { b as ToggleButtonGroup, T as ToggleButton, A as ActionButtonGroup, a as ActionButton } from "./index-DsDLFuEL.js";
|
|
5
5
|
import { l as ltrIslandProps } from "./direction-BwrU7jHk.js";
|
|
6
6
|
const subsetOfRealsInput = React__default.memo(function subsetOfReals(props) {
|
|
7
7
|
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-CJXENjwD.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BAtxQcWU.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-CJXENjwD.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BAtxQcWU.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-CJXENjwD.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BAtxQcWU.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-CJXENjwD.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BAtxQcWU.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-CJXENjwD.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-xuqNYEMe.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-CJH3fb_9.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BAtxQcWU.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-BhxWosVq.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-guvyhnhU.js";
|
|
11
11
|
import { u as useJSXGraphCleanup } from "./useJSXGraphCleanup-BNk4sn6x.js";
|
|
12
12
|
const text = React__default.memo(function Text(props) {
|
|
13
13
|
let { componentIdx, id, SVs, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { F as useContentT, H as Context, q as jsxRuntimeExports, Q as MathJax } from "./doenetml-
|
|
1
|
+
import { F as useContentT, H as Context, q as jsxRuntimeExports, Q as MathJax } from "./doenetml-CJXENjwD.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-xuqNYEMe.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BAtxQcWU.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-CJH3fb_9.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-DfA50-Kj.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-BZ8oeOL9.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 { aa as createStoreContext, ab as createDialogComponent, T as forwardRef, U as createElement, V as createHook, X as invariant, ac as useWrapElement, q as jsxRuntimeExports, Y as useStoreState, ad as isFalsyBooleanCallback, ae as contains, af as sync, ag as chain, ah as useEvent, ai as createStore, aj as defaultValue, ak as useStore, al 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 { aa as createStoreContext, ab as createDialogComponent, T as forwardRef, U as createElement, V as createHook, X as invariant, ac as useWrapElement, q as jsxRuntimeExports, Y as useStoreState, ad as isFalsyBooleanCallback, ae as contains, af as sync, ag as chain, ah as useEvent, ai as createStore, aj as defaultValue, ak as useStore, al as useStoreProps } from "./doenetml-CJXENjwD.js";
|
|
2
|
+
import { H as HovercardScopedContextProvider, a as HovercardContextProvider, u as useHovercard, b as useHovercardAnchor, c as createHovercardStore, d as useHovercardStoreProps } from "./hovercard-store-Cor2JG-E.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-xuqNYEMe.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-CJXENjwD.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-l_fXN6oJ.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-xuqNYEMe.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-6wEbVswo.js"), "./renderers/alert.tsx": () => import("./alert-DGIdSxd5.js"), "./renderers/angle.tsx": () => import("./angle-B_yqY4eA.js"), "./renderers/answer.tsx": () => import("./answer-CsP3EPMl.js"), "./renderers/asList.tsx": () => import("./asList-DCXp-O5w.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-BdOxQAZX.js"), "./renderers/boolean.tsx": () => import("./boolean-w9_LHFn2.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-WvLRmRvQ.js"), "./renderers/br.tsx": () => import("./br-BkZHYEyb.js"), "./renderers/button.tsx": () => import("./button-eO4GcDK0.js"), "./renderers/c.tsx": () => import("./c-BQKhLZrA.js"), "./renderers/cell.tsx": () => import("./cell-C0WBTaNk.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-BhxWosVq.js"), "./renderers/circle.tsx": () => import("./circle-CpKUhiP5.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-_r-rG3Nw.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-CszCj14f.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-Dyrio5Dv.js"), "./renderers/containerInline.tsx": () => import("./containerInline--3XrSLzN.js"), "./renderers/curve.tsx": () => import("./curve-kTH7dlHM.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-D80KnK2G.js"), "./renderers/em.tsx": () => import("./em-TShdxpOF.js"), "./renderers/embed.tsx": () => import("./embed-C-EstgJD.js"), "./renderers/feedback.tsx": () => import("./feedback-Cxw3lzpg.js"), "./renderers/figure.tsx": () => import("./figure--Rh8P7Sz.js"), "./renderers/footnote.tsx": () => import("./footnote-DptVzLcw.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-DuK4ef-d.js"), "./renderers/graph.tsx": () => import("./graph-CJH3fb_9.js"), "./renderers/hint.tsx": () => import("./hint-B4OYwoCZ.js"), "./renderers/hr.tsx": () => import("./hr-DxyxAfyw.js"), "./renderers/image.tsx": () => import("./image-CRE46C0H.js"), "./renderers/label.tsx": () => import("./label-CIpj5Y63.js"), "./renderers/legend.tsx": () => import("./legend-B6iNoOk3.js"), "./renderers/line.tsx": () => import("./line-uTSnEqNp.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-Dfyje5QM.js"), "./renderers/list.tsx": () => import("./list-D9pGeii4.js"), "./renderers/lq.tsx": () => import("./lq-CZICWXNg.js"), "./renderers/lsq.tsx": () => import("./lsq-C5DeGe8L.js"), "./renderers/math.tsx": () => import("./math--Up--LZT.js"), "./renderers/mathInput.tsx": () => import("./mathInput-DiCsw8Xy.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-DeDRhwTH.js"), "./renderers/mdash.tsx": () => import("./mdash-YpMtTzYb.js"), "./renderers/nbsp.tsx": () => import("./nbsp-CzouLmyA.js"), "./renderers/ndash.tsx": () => import("./ndash-CesSHMoZ.js"), "./renderers/number.tsx": () => import("./number-Dsi8t-oT.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-DqW8lDXG.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-Ujhexiv5.js"), "./renderers/p.tsx": () => import("./p-JkDCJkLt.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-zeS4MeYM.js"), "./renderers/pegboard.tsx": () => import("./pegboard-DzlzO4lr.js"), "./renderers/point.tsx": () => import("./point-BnRGGL5k.js"), "./renderers/polygon.tsx": () => import("./polygon-BeS39j3N.js"), "./renderers/polyline.tsx": () => import("./polyline-DjMK8sjj.js"), "./renderers/pre.tsx": () => import("./pre-B9SF1WXw.js"), "./renderers/prefigure.tsx": () => import("./prefigure-CgQvLn5h.js"), "./renderers/pretzel.tsx": () => import("./pretzel-DBniVxdm.js"), "./renderers/q.tsx": () => import("./q-CLzPbBkU.js"), "./renderers/ray.tsx": () => import("./ray-Bg6L_yXO.js"), "./renderers/ref.tsx": () => import("./ref-CCJXcMPu.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-CS_AlIVf.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-DNvowvoK.js"), "./renderers/row.tsx": () => import("./row-Dle_oVKb.js"), "./renderers/rq.tsx": () => import("./rq-CI5DfsFj.js"), "./renderers/rsq.tsx": () => import("./rsq-BB9E3_NA.js"), "./renderers/section.tsx": () => import("./section-p0dG4GrG.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-C0hv1H5l.js"), "./renderers/slider.tsx": () => import("./slider-CvaKYTQl.js"), "./renderers/slopeField.tsx": () => import("./slopeField-C7IAnOmN.js"), "./renderers/solution.tsx": () => import("./solution-WX05uux-.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-YJjdy9w5.js"), "./renderers/sq.tsx": () => import("./sq-ChyPDsQB.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-BwDeYfV-.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-Dnv8WfMs.js"), "./renderers/table.tsx": () => import("./table-DgDuWmAc.js"), "./renderers/tabular.tsx": () => import("./tabular-DCqCE_YP.js"), "./renderers/tag.tsx": () => import("./tag-Cz5m3LXR.js"), "./renderers/text.tsx": () => import("./text-BpAMUhHw.js"), "./renderers/textInput.tsx": () => import("./textInput-DUcTr-gU.js"), "./renderers/vector.tsx": () => import("./vector-BWEByhmm.js"), "./renderers/vectorField.tsx": () => import("./vectorField-De1Z4iOl.js"), "./renderers/video.tsx": () => import("./video-BQM_T1_i.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 { J as createFunctionFromDefinition, A as DocContext } from "./doenetml-
|
|
2
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-CJH3fb_9.js";
|
|
3
|
+
import { J as createFunctionFromDefinition, A as DocContext } from "./doenetml-CJXENjwD.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-CJXENjwD.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-DEOewEZn.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) {
|