@doenet/doenetml 0.7.26-dev.557 → 0.7.26-dev.558
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-CZbxxSW3.js → AnswerResponseButton-B6HEdfco.js} +2 -2
- package/{Description-7Z5aePMR.js → Description-qC4YqYoN.js} +1 -1
- package/{DynamicMath-66XpcM43.js → DynamicMath-DPHcZidz.js} +1 -1
- package/{EditorViewer-BjFkn5VZ.js → EditorViewer-elZw0BIO.js} +6 -6
- package/{GraphFrame-C4Vv0D8T.js → GraphFrame-CCkGnTv-.js} +2 -2
- package/{JSXGraphRenderer-Dr6tNlS9.js → JSXGraphRenderer-Btig83C5.js} +1 -1
- package/{NonInlineMediaWrapper-Dd9ydG17.js → NonInlineMediaWrapper-CxW5OVD0.js} +1 -1
- package/{_error-C2wV4Wu2.js → _error-CyN5Q7kB.js} +2 -2
- package/{alert-Gu-Yr32K.js → alert-8CaltlV3.js} +3 -3
- package/{angle-CPD9h8H1.js → angle-D-x9XV1t.js} +7 -7
- package/{answer-QFvpQsuI.js → answer-W2OCrGum.js} +6 -6
- package/{asList-CxFopJBL.js → asList-5clIX694.js} +2 -2
- package/{barChart-CP6gXlRo.js → barChart-DWRSDPUc.js} +4 -4
- package/{blockQuote-B_rPzBwF.js → blockQuote-gZnga4S1.js} +3 -3
- package/{boolean-DaF2c74O.js → boolean-B8aMB9-h.js} +2 -2
- package/{booleanInput-PoCvl77O.js → booleanInput-I5qOW1Ci.js} +6 -6
- package/{br-kNds7YfM.js → br-BwZrw_xu.js} +2 -2
- package/{button-CdvWb6Na.js → button-AiUPmoem.js} +4 -4
- package/{c-yf7_RtcP.js → c-CySvnRPQ.js} +3 -3
- package/{cell-v8SgJ-YW.js → cell-DqJA5Avm.js} +3 -3
- package/{choiceInput-DyBiLU7W.js → choiceInput-C8VCXg8L.js} +5 -5
- package/{circle-DQSuDlEn.js → circle-CfVwNc2K.js} +6 -6
- package/{cobwebPolyline-B9F-4Bju.js → cobwebPolyline-DNmvcDj9.js} +4 -4
- package/{codeEditor-DUSfm_Yz.js → codeEditor-CHxKasst.js} +2 -2
- package/{composites-Ds-7CrgJ.js → composites-BQBbpRjw.js} +1 -1
- package/{containerBlock-DPMn8DnG.js → containerBlock-THVoP0wl.js} +4 -4
- package/{containerInline-DQfyUlKO.js → containerInline-DX4GwpBW.js} +4 -4
- package/{curve-DQMwgu6H.js → curve-B9aKzSdw.js} +4 -4
- package/{doenetml-DuiXOqHO.js → doenetml-DAOxfdXK.js} +3 -3
- package/doenetml-external-worker.js +2 -2
- package/doenetml-inline-worker.js +3 -3
- package/doenetml-worker/index.esm.js +1 -1
- package/doenetml-worker/index.js +1 -1
- package/{ellipsis-9q6O686w.js → ellipsis-hA747OiE.js} +2 -2
- package/{em-CsUy1qGo.js → em-B4_1FCye.js} +3 -3
- package/{embed-CwIxFcuA.js → embed-CET6B_a9.js} +2 -2
- package/{feedback-DFPpc6YI.js → feedback-CDZl5Gfd.js} +4 -4
- package/{figure-Bg6dDCjL.js → figure-CcM9ch5M.js} +3 -3
- package/{fillPatterns-DuO7D5x0.js → fillPatterns-bvbKr5Jk.js} +1 -1
- package/{footnote-CYxim5qF.js → footnote-CvaLv934.js} +3 -3
- package/{fractionInput-CyPQpu4P.js → fractionInput-CuCbM9mG.js} +4 -4
- package/{graph-BjSslUqm.js → graph-NhMSI5sH.js} +6 -6
- package/{hint-BRYieB9V.js → hint-DtLJaiIS.js} +4 -4
- package/{hovercard-store-CI58I7rH.js → hovercard-store-s6TSTFPC.js} +1 -1
- package/{hr-DdPH-IBC.js → hr-CkwN7pTg.js} +2 -2
- package/{image-xKe0aAsy.js → image-BIZSWkL_.js} +7 -7
- package/{index-ERyIxumV.js → index-CAyDnz-i.js} +1 -1
- package/{index.es-CEeJFyM0.js → index.es-tXAXGW05.js} +1 -1
- package/index.js +1 -1
- package/{label-DK-bGfpa.js → label-DZKh5WtI.js} +7 -7
- package/{labelWithLatex-BPqJcCQl.js → labelWithLatex-D-R-Wuos.js} +2 -2
- package/{legend-DzUQ1YRa.js → legend-Bnf-2YwX.js} +4 -4
- package/{line-HlobBwsg.js → line-PKR5wJ6N.js} +7 -7
- package/{lineFamilyDragHandlers-DYJCzsMr.js → lineFamilyDragHandlers-uuaFsRG4.js} +1 -1
- package/{lineSegment-DeasaKxD.js → lineSegment-TFd4hJxP.js} +5 -5
- package/{list-DDHmLPsI.js → list-DyN7pRRG.js} +4 -4
- package/{lq-DWPB6iWB.js → lq-CYQfoKSo.js} +2 -2
- package/{lsq-4cJWtU6K.js → lsq-BP1ESk2b.js} +2 -2
- package/{markupRenderer-7Q5YZqRH.js → markupRenderer-fcoUINUm.js} +1 -1
- package/{math-B0oEsedb.js → math-BWqZiAon.js} +8 -8
- package/{mathInput-CbY_ESl2.js → mathInput-C8Ou-hMI.js} +8 -8
- package/{mathInputSlots-Bm3zL7m5.js → mathInputSlots-BB7DkPnm.js} +1 -1
- package/{matrixInput-ppriYMaZ.js → matrixInput--e3OAZ0D.js} +4 -4
- package/{mdash-CUmIWfhD.js → mdash-n1Vmxzpv.js} +2 -2
- package/{nbsp-RfGM7tqd.js → nbsp-BaH0y0R3.js} +2 -2
- package/{ndash-BgZkQzeR.js → ndash-hbDSudHY.js} +2 -2
- package/{number-BC4GvN26.js → number-DTLj90t6.js} +7 -7
- package/{orbitalDiagram-Dv_bxGok.js → orbitalDiagram-Cvem9K6k.js} +2 -2
- package/{orbitalDiagramInput-wIxFJm4z.js → orbitalDiagramInput-Dk9w31ul.js} +2 -2
- package/{p-DxdnkxEW.js → p-kykBFW09.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-D5j4vjD3.js → paginatorControls-Cm3q981N.js} +2 -2
- package/{pegboard-bEgHT_Ah.js → pegboard-DGwuYxDQ.js} +4 -4
- package/{point-CetuFjUp.js → point-DbiA0Bit.js} +7 -7
- package/{polygon-C7tjeN-E.js → polygon-fIM7hW-J.js} +6 -6
- package/{polyline-DJjSHRV5.js → polyline-C7N1KE5e.js} +5 -5
- package/{pre-DmH1mQ-n.js → pre-Dms_dQsW.js} +3 -3
- package/{prefigure-Bql3wpxk.js → prefigure-XmTRMB4k.js} +1 -1
- package/{pretzel-D1GJez4o.js → pretzel-BESjhpW-.js} +4 -4
- package/{q-BjQEc66e.js → q-CpMLGp91.js} +3 -3
- package/{ray-DUOXJ0z7.js → ray-CKV9PPYJ.js} +5 -5
- package/{ref-DwIkmbyC.js → ref-B3-JbBMi.js} +2 -2
- package/{regionBetweenCurveXAxis-iQ66dH_z.js → regionBetweenCurveXAxis-BXgbd6sh.js} +5 -5
- package/{regionBetweenCurves-BSPXyiGx.js → regionBetweenCurves-CsJij5dL.js} +5 -5
- package/{row-CZm0Z7ZM.js → row-w6G7eUOm.js} +2 -2
- package/{rq-CKM2Uxw4.js → rq-DmBnjSa-.js} +2 -2
- package/{rsq-iMPRHzTm.js → rsq-U1ry-6Zi.js} +2 -2
- package/{section-D4qcoW0k.js → section-GQIpJpIC.js} +5 -5
- package/{sha256-DT5xJ2Hv-CwJaXc1g.js → sha256-DT5xJ2Hv-BGFDFcKa.js} +1 -1
- package/{sideBySide-6OlYEZda.js → sideBySide-CPnlA8_O.js} +2 -2
- package/{slider-BFkDcKwM.js → slider-CQEvu1Jr.js} +3 -3
- package/{slopeField-DIJ5kNh9.js → slopeField-1QFWI80Z.js} +2 -2
- package/{solution-h0HzchI-.js → solution-BSE0_9gx.js} +4 -4
- package/{spreadsheet-arKUF6SQ.js → spreadsheet-pR-iIA64.js} +2 -2
- package/{sq-bYRzEekT.js → sq-Cd72Vu6M.js} +3 -3
- package/{subsetOfRealsInput-BozzxXaC.js → subsetOfRealsInput-CmoilTrv.js} +2 -2
- package/{summaryStatistics-BSrB9utV.js → summaryStatistics-CJ-99i7t.js} +2 -2
- package/{table-Cl6RxXtN.js → table-FDx97o4k.js} +2 -2
- package/{tabular-CFKrvkSp.js → tabular-DzflmLVk.js} +2 -2
- package/{tag-B2qCKH8v.js → tag-B37KlBfw.js} +2 -2
- package/{text-CwwyD0fS.js → text-D3cJ-GNj.js} +6 -6
- package/{textInput-CbUKq8vk.js → textInput-DhTpbGDQ.js} +7 -7
- package/{tooltip-provider-2jw8Pm7T.js → tooltip-provider-CwSH1dVC.js} +2 -2
- package/{useAnchoredGraphDragHandler-5qE0XGu1.js → useAnchoredGraphDragHandler-Dtl9dNqx.js} +1 -1
- package/useDoenetRenderer-BCr3FKY2.js +114 -0
- package/{useFieldCurve-Cl1Auhx_.js → useFieldCurve-Dh2f9Iil.js} +2 -2
- package/{useSubmitActionWithDelay-QJG0m0Gr.js → useSubmitActionWithDelay-CaR0NC-g.js} +2 -2
- package/{vector-CGfwUKlp.js → vector-C7Q9Tb46.js} +7 -7
- package/{vectorField-CWCCuCoy.js → vectorField-KXwMWfeb.js} +2 -2
- package/{video-BRt8FCbN.js → video-CXO_XdxK.js} +4 -4
- package/useDoenetRenderer-BCQFUoPm.js +0 -114
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-DAOxfdXK.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-Btig83C5.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BCr3FKY2.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-NhMSI5sH.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-uuaFsRG4.js";
|
|
7
7
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
8
8
|
import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
|
|
9
9
|
import { a as resolveLineColor, d as resolveHandleColor } from "./styleColors-BrCvjxze.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-DAOxfdXK.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-BCr3FKY2.js";
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites-BQBbpRjw.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-DAOxfdXK.js";
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from "react";
|
|
3
3
|
const __vite_import_meta_env__ = { "VITE_PREFIGURE_MODULE_URL": "https://cdn.jsdelivr.net/npm/@doenet/prefigure@latest/prefigure.js" };
|
|
4
4
|
const DEFAULT_PREFIGURE_BUILD_ENDPOINT = "https://prefigure.doenet.org/build";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as useT, I as useContentT, v as useChromeLangDir, J as useRecordVisibilityChanges, E as DocContext, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, I as useContentT, v as useChromeLangDir, J as useRecordVisibilityChanges, E as DocContext, q as jsxRuntimeExports } from "./doenetml-DAOxfdXK.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-BCr3FKY2.js";
|
|
4
|
+
import { A as AnswerResponseButton } from "./AnswerResponseButton-B6HEdfco.js";
|
|
5
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-CaR0NC-g.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-DAOxfdXK.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-BCr3FKY2.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-fcoUINUm.js";
|
|
5
5
|
const q = React__default.memo(function Q(props) {
|
|
6
6
|
const { SVs, children } = useDoenetRenderer(props);
|
|
7
7
|
const body = renderMarkupBody({ SVs, children });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-DAOxfdXK.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-Btig83C5.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BCr3FKY2.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-NhMSI5sH.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-uuaFsRG4.js";
|
|
7
7
|
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-B_soifR-.js";
|
|
8
8
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
9
9
|
import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-DAOxfdXK.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BCr3FKY2.js";
|
|
4
4
|
const ref = React__default.memo(function Ref(props) {
|
|
5
5
|
const { id, SVs, children, requestScrollTo } = useDoenetRenderer(props);
|
|
6
6
|
const { doenetViewerUrl } = useContext(DocContext) || {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as DocContext, N as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { E as DocContext, N as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-DAOxfdXK.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-Btig83C5.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BCr3FKY2.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-NhMSI5sH.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-bvbKr5Jk.js";
|
|
7
7
|
import { b as resolveCanvasColor } from "./styleColors-BrCvjxze.js";
|
|
8
8
|
const regionBetweenCurveXAxis = React__default.memo(function RegionBetweenCurveXAxis(props) {
|
|
9
9
|
let { id, SVs } = useDoenetRenderer(props);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { E as DocContext, N as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { E as DocContext, N as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-DAOxfdXK.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-BCr3FKY2.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-NhMSI5sH.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-bvbKr5Jk.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-Btig83C5.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-DAOxfdXK.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BCr3FKY2.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-DAOxfdXK.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BCr3FKY2.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-DAOxfdXK.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BCr3FKY2.js";
|
|
4
4
|
const rsq = React__default.memo(function Rsq(props) {
|
|
5
5
|
let { SVs } = useDoenetRenderer(props, false);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as useT, I as useContentT, Q as directionOf, R as useDocumentDirection, S as chromeLangDir, t as useUiLocale, E as DocContext, L as cesc, J as useRecordVisibilityChanges, q as jsxRuntimeExports, T as DocumentDirectionProvider } from "./doenetml-
|
|
1
|
+
import { u as useT, I as useContentT, Q as directionOf, R as useDocumentDirection, S as chromeLangDir, t as useUiLocale, E as DocContext, L as cesc, J as useRecordVisibilityChanges, q as jsxRuntimeExports, T as DocumentDirectionProvider } from "./doenetml-DAOxfdXK.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-tXAXGW05.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-BCr3FKY2.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-BQBbpRjw.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-CaR0NC-g.js";
|
|
8
8
|
import { c as clickToToggleLabel } from "./disclosure-axyZa36E.js";
|
|
9
9
|
const section = React__default.memo(function Section(props) {
|
|
10
10
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-DAOxfdXK.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BCr3FKY2.js";
|
|
4
4
|
import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
5
5
|
function isWhitespaceTextChild(child) {
|
|
6
6
|
return typeof child === "string" && child.trim() === "";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as useT, q as jsxRuntimeExports, U as ActionButtonGroup, V as ActionButton, K as Context } from "./doenetml-
|
|
1
|
+
import { u as useT, q as jsxRuntimeExports, U as ActionButtonGroup, V as ActionButton, K as Context } from "./doenetml-DAOxfdXK.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-BCr3FKY2.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-D-R-Wuos.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-BCr3FKY2.js";
|
|
3
|
+
import { u as useFieldFunction, a as useFieldCurve, b as buildSlopeFieldData } from "./useFieldCurve-Dh2f9Iil.js";
|
|
4
4
|
const slopeField = React__default.memo(function SlopeField(props) {
|
|
5
5
|
let { SVs } = useDoenetRenderer(props);
|
|
6
6
|
SlopeField.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as useT, J as useRecordVisibilityChanges, v as useChromeLangDir, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, J as useRecordVisibilityChanges, v as useChromeLangDir, q as jsxRuntimeExports } from "./doenetml-DAOxfdXK.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-BCr3FKY2.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-tXAXGW05.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-BQBbpRjw.js";
|
|
7
7
|
import { c as clickToToggleLabel } from "./disclosure-axyZa36E.js";
|
|
8
8
|
const solution = React__default.memo(function Solution(props) {
|
|
9
9
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as DocContext, J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { E as DocContext, J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-DAOxfdXK.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-BCr3FKY2.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-DAOxfdXK.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-BCr3FKY2.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-fcoUINUm.js";
|
|
5
5
|
const sq = React__default.memo(function Sq(props) {
|
|
6
6
|
const { SVs, children } = useDoenetRenderer(props);
|
|
7
7
|
const body = renderMarkupBody({ SVs, children });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useT, J as useRecordVisibilityChanges, q as jsxRuntimeExports, $ as ToggleButtonGroup, Y as ToggleButton, U as ActionButtonGroup, V as ActionButton } from "./doenetml-
|
|
1
|
+
import { u as useT, J as useRecordVisibilityChanges, q as jsxRuntimeExports, $ as ToggleButtonGroup, Y as ToggleButton, U as ActionButtonGroup, V as ActionButton } from "./doenetml-DAOxfdXK.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BCr3FKY2.js";
|
|
4
4
|
import { l as ltrIslandProps } from "./direction-BwrU7jHk.js";
|
|
5
5
|
const subsetOfRealsInput = React__default.memo(function subsetOfReals(props) {
|
|
6
6
|
let { id, SVs, actions, callAction } = useDoenetRenderer(props, false);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useT, v as useChromeLangDir, J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, v as useChromeLangDir, J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-DAOxfdXK.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BCr3FKY2.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
5
|
const summaryStatistics = React__default.memo(function SummaryStatistics(props) {
|
|
6
6
|
let { id, SVs, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-DAOxfdXK.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BCr3FKY2.js";
|
|
4
4
|
const table = React__default.memo(function Table(props) {
|
|
5
5
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
6
6
|
const ref = useRef(null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-DAOxfdXK.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BCr3FKY2.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-DAOxfdXK.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BCr3FKY2.js";
|
|
4
4
|
const tag = React__default.memo(function Tag(props) {
|
|
5
5
|
let { id, SVs, children } = useDoenetRenderer(props);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { E as DocContext, K as Context, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-
|
|
1
|
+
import { E as DocContext, K as Context, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-DAOxfdXK.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-Btig83C5.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-NhMSI5sH.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BCr3FKY2.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-C8VCXg8L.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-Dtl9dNqx.js";
|
|
11
11
|
import { u as useJSXGraphCleanup } from "./useJSXGraphCleanup-BNk4sn6x.js";
|
|
12
12
|
import { e as resolveTextColor, f as resolveBackgroundColor } from "./styleColors-BrCvjxze.js";
|
|
13
13
|
const text = React__default.memo(function Text(props) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { I as useContentT, K as Context, q as jsxRuntimeExports, X as MathJax } from "./doenetml-
|
|
1
|
+
import { I as useContentT, K as Context, q as jsxRuntimeExports, X as MathJax } from "./doenetml-DAOxfdXK.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-Btig83C5.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BCr3FKY2.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-NhMSI5sH.js";
|
|
7
7
|
import { g as getPositionFromAnchorByCoordinate, P as POINTER_DRAG_THRESHOLD } from "./graph-W6vrFcBu.js";
|
|
8
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, w as wantsFullCheckWorkButton, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
9
|
-
import { D as DescriptionPopover } from "./Description-
|
|
8
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, w as wantsFullCheckWorkButton, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-CaR0NC-g.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-qC4YqYoN.js";
|
|
10
10
|
import { a as addValidationStateToShortDescription } from "./validationState-DI_lxk1a.js";
|
|
11
|
-
import { b as useInMathSlot, c as useMathSlotEditing } from "./mathInputSlots-
|
|
11
|
+
import { b as useInMathSlot, c as useMathSlotEditing } from "./mathInputSlots-BB7DkPnm.js";
|
|
12
12
|
import { u as useMathJaxOutOfTabOrder } from "./useMathJaxOutOfTabOrder-C0wsYqBF.js";
|
|
13
13
|
const EXPANDED_INPUT_MARGIN_X = 4;
|
|
14
14
|
const BOARD_INPUT_FALLBACK_WIDTH = "100px";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ai as createStoreContext, aj as createDialogComponent, a1 as forwardRef, a2 as createElement, a3 as createHook, a5 as invariant, ak as useWrapElement, q as jsxRuntimeExports, a6 as useStoreState, al as isFalsyBooleanCallback, am as contains, an as sync, ao as chain, ap as useEvent, aq as createStore, ar as defaultValue, as as useStore, at as useStoreProps } from "./doenetml-
|
|
2
|
-
import { H as HovercardScopedContextProvider, a as HovercardContextProvider, u as useHovercard, b as useHovercardAnchor, c as createHovercardStore, d as useHovercardStoreProps } from "./hovercard-store-
|
|
1
|
+
import { ai as createStoreContext, aj as createDialogComponent, a1 as forwardRef, a2 as createElement, a3 as createHook, a5 as invariant, ak as useWrapElement, q as jsxRuntimeExports, a6 as useStoreState, al as isFalsyBooleanCallback, am as contains, an as sync, ao as chain, ap as useEvent, aq as createStore, ar as defaultValue, as as useStore, at as useStoreProps } from "./doenetml-DAOxfdXK.js";
|
|
2
|
+
import { H as HovercardScopedContextProvider, a as HovercardContextProvider, u as useHovercard, b as useHovercardAnchor, c as createHovercardStore, d as useHovercardStoreProps } from "./hovercard-store-s6TSTFPC.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-Btig83C5.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-DAOxfdXK.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-CCkGnTv-.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-Btig83C5.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-CyN5Q7kB.js"), "./renderers/alert.tsx": () => import("./alert-8CaltlV3.js"), "./renderers/angle.tsx": () => import("./angle-D-x9XV1t.js"), "./renderers/answer.tsx": () => import("./answer-W2OCrGum.js"), "./renderers/asList.tsx": () => import("./asList-5clIX694.js"), "./renderers/barChart.tsx": () => import("./barChart-DWRSDPUc.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-gZnga4S1.js"), "./renderers/boolean.tsx": () => import("./boolean-B8aMB9-h.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-I5qOW1Ci.js"), "./renderers/br.tsx": () => import("./br-BwZrw_xu.js"), "./renderers/button.tsx": () => import("./button-AiUPmoem.js"), "./renderers/c.tsx": () => import("./c-CySvnRPQ.js"), "./renderers/cell.tsx": () => import("./cell-DqJA5Avm.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-C8VCXg8L.js"), "./renderers/circle.tsx": () => import("./circle-CfVwNc2K.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-DNmvcDj9.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-CHxKasst.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-THVoP0wl.js"), "./renderers/containerInline.tsx": () => import("./containerInline-DX4GwpBW.js"), "./renderers/curve.tsx": () => import("./curve-B9aKzSdw.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-hA747OiE.js"), "./renderers/em.tsx": () => import("./em-B4_1FCye.js"), "./renderers/embed.tsx": () => import("./embed-CET6B_a9.js"), "./renderers/feedback.tsx": () => import("./feedback-CDZl5Gfd.js"), "./renderers/figure.tsx": () => import("./figure-CcM9ch5M.js"), "./renderers/footnote.tsx": () => import("./footnote-CvaLv934.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-CuCbM9mG.js"), "./renderers/graph.tsx": () => import("./graph-NhMSI5sH.js"), "./renderers/hint.tsx": () => import("./hint-DtLJaiIS.js"), "./renderers/hr.tsx": () => import("./hr-CkwN7pTg.js"), "./renderers/image.tsx": () => import("./image-BIZSWkL_.js"), "./renderers/label.tsx": () => import("./label-DZKh5WtI.js"), "./renderers/legend.tsx": () => import("./legend-Bnf-2YwX.js"), "./renderers/line.tsx": () => import("./line-PKR5wJ6N.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-TFd4hJxP.js"), "./renderers/list.tsx": () => import("./list-DyN7pRRG.js"), "./renderers/lq.tsx": () => import("./lq-CYQfoKSo.js"), "./renderers/lsq.tsx": () => import("./lsq-BP1ESk2b.js"), "./renderers/math.tsx": () => import("./math-BWqZiAon.js"), "./renderers/mathInput.tsx": () => import("./mathInput-C8Ou-hMI.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput--e3OAZ0D.js"), "./renderers/mdash.tsx": () => import("./mdash-n1Vmxzpv.js"), "./renderers/nbsp.tsx": () => import("./nbsp-BaH0y0R3.js"), "./renderers/ndash.tsx": () => import("./ndash-hbDSudHY.js"), "./renderers/number.tsx": () => import("./number-DTLj90t6.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-Cvem9K6k.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-Dk9w31ul.js"), "./renderers/p.tsx": () => import("./p-kykBFW09.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-Cm3q981N.js"), "./renderers/pegboard.tsx": () => import("./pegboard-DGwuYxDQ.js"), "./renderers/point.tsx": () => import("./point-DbiA0Bit.js"), "./renderers/polygon.tsx": () => import("./polygon-fIM7hW-J.js"), "./renderers/polyline.tsx": () => import("./polyline-C7N1KE5e.js"), "./renderers/pre.tsx": () => import("./pre-Dms_dQsW.js"), "./renderers/prefigure.tsx": () => import("./prefigure-XmTRMB4k.js"), "./renderers/pretzel.tsx": () => import("./pretzel-BESjhpW-.js"), "./renderers/q.tsx": () => import("./q-CpMLGp91.js"), "./renderers/ray.tsx": () => import("./ray-CKV9PPYJ.js"), "./renderers/ref.tsx": () => import("./ref-B3-JbBMi.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-BXgbd6sh.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-CsJij5dL.js"), "./renderers/row.tsx": () => import("./row-w6G7eUOm.js"), "./renderers/rq.tsx": () => import("./rq-DmBnjSa-.js"), "./renderers/rsq.tsx": () => import("./rsq-U1ry-6Zi.js"), "./renderers/section.tsx": () => import("./section-GQIpJpIC.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-CPnlA8_O.js"), "./renderers/slider.tsx": () => import("./slider-CQEvu1Jr.js"), "./renderers/slopeField.tsx": () => import("./slopeField-1QFWI80Z.js"), "./renderers/solution.tsx": () => import("./solution-BSE0_9gx.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-pR-iIA64.js"), "./renderers/sq.tsx": () => import("./sq-Cd72Vu6M.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-CmoilTrv.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-CJ-99i7t.js"), "./renderers/table.tsx": () => import("./table-FDx97o4k.js"), "./renderers/tabular.tsx": () => import("./tabular-DzflmLVk.js"), "./renderers/tag.tsx": () => import("./tag-B37KlBfw.js"), "./renderers/text.tsx": () => import("./text-D3cJ-GNj.js"), "./renderers/textInput.tsx": () => import("./textInput-DhTpbGDQ.js"), "./renderers/vector.tsx": () => import("./vector-C7Q9Tb46.js"), "./renderers/vectorField.tsx": () => import("./vectorField-KXwMWfeb.js"), "./renderers/video.tsx": () => import("./video-CXO_XdxK.js") }), `./renderers/${childInstructions.rendererType}.tsx`, 3);
|
|
71
|
+
}
|
|
72
|
+
return rendererLoaders;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
let child = React__default.createElement(rendererClass, propsForChild);
|
|
78
|
+
return child;
|
|
79
|
+
}
|
|
80
|
+
let rendererType = props.componentInstructions.rendererType;
|
|
81
|
+
const callAction = (argObj) => {
|
|
82
|
+
if (!argObj.componentIdx) {
|
|
83
|
+
argObj = { ...argObj };
|
|
84
|
+
argObj.componentIdx = componentIdx;
|
|
85
|
+
}
|
|
86
|
+
if (!argObj.rendererType) {
|
|
87
|
+
argObj = { ...argObj };
|
|
88
|
+
argObj.rendererType = rendererType;
|
|
89
|
+
}
|
|
90
|
+
return props.callAction(argObj);
|
|
91
|
+
};
|
|
92
|
+
return {
|
|
93
|
+
componentIdx: effectiveIdx,
|
|
94
|
+
id: prefixForIds + id,
|
|
95
|
+
SVs: stateValues,
|
|
96
|
+
docId: props.docId,
|
|
97
|
+
activityId: props.activityId,
|
|
98
|
+
actions,
|
|
99
|
+
children,
|
|
100
|
+
sourceOfUpdate,
|
|
101
|
+
ignoreUpdate,
|
|
102
|
+
rendererName,
|
|
103
|
+
initializeChildren: () => {
|
|
104
|
+
},
|
|
105
|
+
callAction,
|
|
106
|
+
doenetViewerUrl: props.doenetViewerUrl,
|
|
107
|
+
fetchExternalDoenetML: props.fetchExternalDoenetML,
|
|
108
|
+
requestScrollTo: props.requestScrollTo,
|
|
109
|
+
flags: props.flags
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
export {
|
|
113
|
+
useDoenetRenderer as u
|
|
114
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo, useContext, useRef } from "react";
|
|
2
|
-
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-
|
|
3
|
-
import { N as createFunctionFromDefinition, E as DocContext } from "./doenetml-
|
|
2
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-NhMSI5sH.js";
|
|
3
|
+
import { N as createFunctionFromDefinition, E as DocContext } from "./doenetml-DAOxfdXK.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-DAOxfdXK.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-tXAXGW05.js";
|
|
3
3
|
import { d as faSpinner, e as faLevelDownAlt, g as faCheck, h as faTimes, i as faCloud } from "./index-BDlitCgu.js";
|
|
4
4
|
import React__default, { useCallback } from "react";
|
|
5
5
|
function calculateValidationState(SVs) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { E as DocContext, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-
|
|
1
|
+
import { E as DocContext, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-DAOxfdXK.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-Btig83C5.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BCr3FKY2.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-NhMSI5sH.js";
|
|
6
|
+
import { D as DynamicMath } from "./DynamicMath-DPHcZidz.js";
|
|
7
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-uuaFsRG4.js";
|
|
8
|
+
import { ChoiceInputInlineContext } from "./choiceInput-C8VCXg8L.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-BCr3FKY2.js";
|
|
3
|
+
import { u as useFieldFunction, a as useFieldCurve, c as buildVectorFieldData } from "./useFieldCurve-Dh2f9Iil.js";
|
|
4
4
|
const vectorField = React__default.memo(function VectorField(props) {
|
|
5
5
|
let { SVs } = useDoenetRenderer(props);
|
|
6
6
|
VectorField.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-DAOxfdXK.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-BCr3FKY2.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-qC4YqYoN.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-CxW5OVD0.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;
|