@doenet/doenetml 0.7.26-dev.564 → 0.7.26-dev.565
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-Bpfahw9L.js → AnswerResponseButton-BoezLvSP.js} +2 -2
- package/{Description-C1efVyqb.js → Description-DCv0lF-E.js} +1 -1
- package/{DynamicMath-IWb69ECv.js → DynamicMath-BfkjR8UJ.js} +1 -1
- package/{EditorViewer-CyRLRUX3.js → EditorViewer-OIoyPTt1.js} +6 -6
- package/{GraphFrame-ClftbtCB.js → GraphFrame-LBsKIY-f.js} +2 -2
- package/{JSXGraphRenderer-bpmevW1s.js → JSXGraphRenderer-Z_fegpsO.js} +1 -1
- package/{NonInlineMediaWrapper-CPQe76P8.js → NonInlineMediaWrapper-CuGyRr32.js} +1 -1
- package/{_error-B3yd8yIs.js → _error-DYOX1WIm.js} +2 -2
- package/{alert-BQQWnirz.js → alert-CbBV00Yu.js} +3 -3
- package/{angle-BDie3Wds.js → angle-DvGtSXf5.js} +7 -7
- package/{answer-jqVy6Oo2.js → answer-UHgfMsAb.js} +6 -6
- package/{asList-CHF7l-LB.js → asList-BuefLePZ.js} +2 -2
- package/{blockQuote-DMDV62MY.js → blockQuote-BSn91OIi.js} +3 -3
- package/{boolean-Cd5_mSGn.js → boolean-D86_3Yca.js} +2 -2
- package/{booleanInput-DJnt6lzR.js → booleanInput-CurHHmEB.js} +6 -6
- package/{br-DIms2LbW.js → br-DPrbIN0_.js} +2 -2
- package/{button-HzSfCCuz.js → button-qu_MyBOE.js} +4 -4
- package/{c-4B6sJT4_.js → c-CVMsF9-K.js} +3 -3
- package/{cell-CExVsxOS.js → cell-ByjFciFw.js} +3 -3
- package/{chart-CunsCIYw.js → chart-D72nUrd0.js} +4 -4
- package/{choiceInput-B79Rqe3x.js → choiceInput-BxbAh9j6.js} +5 -5
- package/{circle-CGeXTZas.js → circle-Cix-MSuv.js} +6 -6
- package/{cobwebPolyline-BArnruXV.js → cobwebPolyline-BbywM441.js} +4 -4
- package/{codeEditor-DhbuynvS.js → codeEditor-BJtDrK3I.js} +2 -2
- package/{composites-DE7nnj8x.js → composites-CIIQXFIQ.js} +1 -1
- package/{containerBlock-CLOnOyKW.js → containerBlock-Cxl3p5jx.js} +4 -4
- package/{containerInline-eKc9Kwbx.js → containerInline-DfV5luP2.js} +4 -4
- package/{curve-CLuWdAeg.js → curve-CZ-6w5ut.js} +4 -4
- package/{doenetml-CE-83BoL.js → doenetml-BMmAYB3S.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-lMvWyodz.js → ellipsis-Cvygwi8o.js} +2 -2
- package/{em-BQzu2ozO.js → em-C6cu-WDU.js} +3 -3
- package/{embed-BDSYaDWu.js → embed-C1raIiRG.js} +2 -2
- package/{feedback-DEQf9AFE.js → feedback-BNRR0_Rs.js} +4 -4
- package/{figure-BhaGSg3U.js → figure-O3Uws-_h.js} +3 -3
- package/{fillPatterns-wJuijRQI.js → fillPatterns-C_Ay0oqg.js} +1 -1
- package/{footnote-7BNEkg4R.js → footnote-lHWdFylu.js} +3 -3
- package/{fractionInput-DHEPN_Ld.js → fractionInput-1mYlVhaD.js} +4 -4
- package/{graph-BU9svK7O.js → graph-l-L1K4nG.js} +6 -6
- package/{hint-CG0WwTy-.js → hint-DDtyuHg9.js} +4 -4
- package/{hovercard-store-B0fh1DGW.js → hovercard-store-Dljb1YFU.js} +1 -1
- package/{hr-vkv1vUmA.js → hr-oH-xakvI.js} +2 -2
- package/{image-lhZZ_C-4.js → image-SRxrEaZ2.js} +7 -7
- package/{index-DadWqiH8.js → index-CFp80ays.js} +1 -1
- package/{index.es-CQRT292m.js → index.es-BWt9hRgb.js} +1 -1
- package/index.js +1 -1
- package/{label-BvVCi9N2.js → label-CKyVBWgE.js} +7 -7
- package/{labelWithLatex-BqgdU1Is.js → labelWithLatex-CaQrcMJs.js} +2 -2
- package/{legend-Bpev-bpp.js → legend-CReKSIvU.js} +4 -4
- package/{line-6O4jU8iD.js → line-D6uKV7zr.js} +7 -7
- package/{lineFamilyDragHandlers-CIpyzdC0.js → lineFamilyDragHandlers-UWuqCBKM.js} +1 -1
- package/{lineSegment-CY5-dYqC.js → lineSegment-CDv4Ve7h.js} +5 -5
- package/{list-Dpm6cOKv.js → list-D8aAjxYc.js} +4 -4
- package/{lq-LiCnoQAX.js → lq-B-eGi9nE.js} +2 -2
- package/{lsq-Dn1yoQdM.js → lsq-DHXTzrJo.js} +2 -2
- package/{markupRenderer-BQn-fZkZ.js → markupRenderer-C75nfzPy.js} +1 -1
- package/{math-D2mu_Tsk.js → math-of94da3T.js} +8 -8
- package/{mathInput-DFpPR72s.js → mathInput-CQFX0rse.js} +8 -8
- package/{mathInputSlots-C73kyAEJ.js → mathInputSlots-BWFRrLoo.js} +1 -1
- package/{matrixInput-CS4ELdRv.js → matrixInput-CWct4cco.js} +4 -4
- package/{mdash-C2pRC_RQ.js → mdash-vR_7yWIV.js} +2 -2
- package/{nbsp-CSUfAQlp.js → nbsp-DlGqgs9I.js} +2 -2
- package/{ndash-nvUuF9Nh.js → ndash-CdseP4q1.js} +2 -2
- package/{number-BMkouVsU.js → number-Cc_7Mh-C.js} +7 -7
- package/{orbitalDiagram-B_FlmMVy.js → orbitalDiagram-BWV3vbmT.js} +2 -2
- package/{orbitalDiagramInput-CdZKmnu0.js → orbitalDiagramInput-D_8B_Xny.js} +2 -2
- package/{p-DBA6HEsw.js → p-ZF7mWPcK.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-C-x8_zCl.js → paginatorControls-BzMXl3wd.js} +2 -2
- package/{pegboard-qi7BEAxs.js → pegboard-B6XCbxUJ.js} +4 -4
- package/{point-CTqxVuWm.js → point-BXEMVgUT.js} +7 -7
- package/{polygon-CIo3nUQ0.js → polygon-Cc-Aj3-P.js} +6 -6
- package/{polyline-XFKTbBgZ.js → polyline-CNP0ULj7.js} +5 -5
- package/{pre-D5JteexB.js → pre-jlpiKtBf.js} +3 -3
- package/{prefigure--7RNhCSP.js → prefigure-BCrz5zXA.js} +2 -2
- package/{pretzel-08VeMiwM.js → pretzel-CWq_k6Uf.js} +4 -4
- package/{q-Bl6UEAZx.js → q-DFsIchrp.js} +3 -3
- package/{ray-BwIj_Hre.js → ray-oGxo3rQS.js} +5 -5
- package/{ref-BXbmES7x.js → ref-DfXpTkKz.js} +2 -2
- package/{regionBetweenCurveXAxis-BTyW3D1t.js → regionBetweenCurveXAxis-CPbm6cv1.js} +5 -5
- package/{regionBetweenCurves-D9ldXX1P.js → regionBetweenCurves-B1PGzq8o.js} +5 -5
- package/{row-ry0rQQqz.js → row-UgYelYLT.js} +2 -2
- package/{rq-u_dX2nOs.js → rq-CjKvXA62.js} +2 -2
- package/{rsq-BuAejJ_U.js → rsq-B-Mx5Y68.js} +2 -2
- package/{section-CSvhPquw.js → section-CrTMyvOs.js} +5 -5
- package/{sha256-DT5xJ2Hv-DKVXmRlz.js → sha256-DT5xJ2Hv-C1YB2dnT.js} +1 -1
- package/{sideBySide-2KFiuCSJ.js → sideBySide-C96d48Ad.js} +2 -2
- package/{slider-B-jAaEl6.js → slider-kS-B6WiH.js} +3 -3
- package/{slopeField-CqKtpbFs.js → slopeField-BHk769nm.js} +2 -2
- package/{solution-2gqF6bCe.js → solution-py2CNTId.js} +4 -4
- package/{spreadsheet-CaUhaCiR.js → spreadsheet-DGDYzLHC.js} +2 -2
- package/{sq-mccyTPo5.js → sq-BBPTC1CY.js} +3 -3
- package/{subsetOfRealsInput-Dbd82YwW.js → subsetOfRealsInput-DPOj2gp0.js} +2 -2
- package/{summaryStatistics-Cd9zAohZ.js → summaryStatistics-Cvb05k28.js} +2 -2
- package/{table-CoVNS9h1.js → table-B1oFxQ5d.js} +2 -2
- package/{tabular-DI6KMdNJ.js → tabular-BNtNXAyc.js} +2 -2
- package/{tag-CRbaRaFa.js → tag-VWX2VkR1.js} +2 -2
- package/{text-CrhbmPDx.js → text-wNZpL0ln.js} +6 -6
- package/{textInput-Dof9RcfJ.js → textInput-DfS8EGL2.js} +7 -7
- package/{tooltip-provider-XJChrgVr.js → tooltip-provider-DX--Orrw.js} +2 -2
- package/{useAnchoredGraphDragHandler-B7DT0ka6.js → useAnchoredGraphDragHandler-CfXUgc7x.js} +1 -1
- package/useDoenetRenderer-BycFu9WS.js +114 -0
- package/{useFieldCurve-Ul-a3UqN.js → useFieldCurve-CxJYGtda.js} +2 -2
- package/{useSubmitActionWithDelay-BCBwzK4U.js → useSubmitActionWithDelay-BYIAN0ou.js} +2 -2
- package/{vector-vWU4zWB3.js → vector-BEX6HtBF.js} +7 -7
- package/{vectorField-BfPOcN5T.js → vectorField-CDpz-fDS.js} +2 -2
- package/{video-jMGCmRj7.js → video-BhjePl48.js} +4 -4
- package/useDoenetRenderer-CA2BJFV_.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-BMmAYB3S.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-Z_fegpsO.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BycFu9WS.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-l-L1K4nG.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-UWuqCBKM.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-BMmAYB3S.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-BycFu9WS.js";
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites-CIIQXFIQ.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,9 +1,9 @@
|
|
|
1
|
-
import { q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as jsxRuntimeExports } from "./doenetml-BMmAYB3S.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";
|
|
5
5
|
const DEFAULT_PREFIGURE_DIAGCESS_SCRIPT_URL = "https://cdn.jsdelivr.net/npm/diagcess@1.4.1/dist/diagcess.js";
|
|
6
|
-
const DEFAULT_PREFIGURE_MODULE_URL = "https://cdn.jsdelivr.net/npm/@doenet/prefigure@0.6
|
|
6
|
+
const DEFAULT_PREFIGURE_MODULE_URL = "https://cdn.jsdelivr.net/npm/@doenet/prefigure@0.7.6/prefigure.js";
|
|
7
7
|
const env = __vite_import_meta_env__;
|
|
8
8
|
const PREFIGURE_BUILD_ENDPOINT = env?.VITE_PREFIGURE_BUILD_ENDPOINT ?? DEFAULT_PREFIGURE_BUILD_ENDPOINT;
|
|
9
9
|
const PREFIGURE_DIAGCESS_SCRIPT_URL = env?.VITE_PREFIGURE_DIAGCESS_SCRIPT_URL ?? DEFAULT_PREFIGURE_DIAGCESS_SCRIPT_URL;
|
|
@@ -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-BMmAYB3S.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-BycFu9WS.js";
|
|
4
|
+
import { A as AnswerResponseButton } from "./AnswerResponseButton-BoezLvSP.js";
|
|
5
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-BYIAN0ou.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-BMmAYB3S.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-BycFu9WS.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-C75nfzPy.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-BMmAYB3S.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-Z_fegpsO.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BycFu9WS.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-l-L1K4nG.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-UWuqCBKM.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-BMmAYB3S.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BycFu9WS.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-BMmAYB3S.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-Z_fegpsO.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BycFu9WS.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-l-L1K4nG.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-C_Ay0oqg.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-BMmAYB3S.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-BycFu9WS.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-l-L1K4nG.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-C_Ay0oqg.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-Z_fegpsO.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-BMmAYB3S.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BycFu9WS.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-BMmAYB3S.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BycFu9WS.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-BMmAYB3S.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BycFu9WS.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-BMmAYB3S.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-BWt9hRgb.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-BycFu9WS.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-CIIQXFIQ.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-BYIAN0ou.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-BMmAYB3S.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BycFu9WS.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-BMmAYB3S.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-BycFu9WS.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-CaQrcMJs.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-BycFu9WS.js";
|
|
3
|
+
import { u as useFieldFunction, a as useFieldCurve, b as buildSlopeFieldData } from "./useFieldCurve-CxJYGtda.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-BMmAYB3S.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-BycFu9WS.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-BWt9hRgb.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-CIIQXFIQ.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-BMmAYB3S.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-BycFu9WS.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-BMmAYB3S.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-BycFu9WS.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-C75nfzPy.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-BMmAYB3S.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BycFu9WS.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-BMmAYB3S.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BycFu9WS.js";
|
|
4
4
|
const summaryStatistics = React__default.memo(function SummaryStatistics(props) {
|
|
5
5
|
let { id, SVs, actions, callAction } = useDoenetRenderer(props);
|
|
6
6
|
const t = useT();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-BMmAYB3S.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BycFu9WS.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-BMmAYB3S.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BycFu9WS.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-BMmAYB3S.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BycFu9WS.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-BMmAYB3S.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-Z_fegpsO.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-l-L1K4nG.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BycFu9WS.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-BxbAh9j6.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-CfXUgc7x.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-BMmAYB3S.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-Z_fegpsO.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BycFu9WS.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-l-L1K4nG.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-BYIAN0ou.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-DCv0lF-E.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-BWFRrLoo.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-BMmAYB3S.js";
|
|
2
|
+
import { H as HovercardScopedContextProvider, a as HovercardContextProvider, u as useHovercard, b as useHovercardAnchor, c as createHovercardStore, d as useHovercardStoreProps } from "./hovercard-store-Dljb1YFU.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-Z_fegpsO.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-BMmAYB3S.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-LBsKIY-f.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-Z_fegpsO.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-DYOX1WIm.js"), "./renderers/alert.tsx": () => import("./alert-CbBV00Yu.js"), "./renderers/angle.tsx": () => import("./angle-DvGtSXf5.js"), "./renderers/answer.tsx": () => import("./answer-UHgfMsAb.js"), "./renderers/asList.tsx": () => import("./asList-BuefLePZ.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-BSn91OIi.js"), "./renderers/boolean.tsx": () => import("./boolean-D86_3Yca.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-CurHHmEB.js"), "./renderers/br.tsx": () => import("./br-DPrbIN0_.js"), "./renderers/button.tsx": () => import("./button-qu_MyBOE.js"), "./renderers/c.tsx": () => import("./c-CVMsF9-K.js"), "./renderers/cell.tsx": () => import("./cell-ByjFciFw.js"), "./renderers/chart.tsx": () => import("./chart-D72nUrd0.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-BxbAh9j6.js"), "./renderers/circle.tsx": () => import("./circle-Cix-MSuv.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-BbywM441.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-BJtDrK3I.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-Cxl3p5jx.js"), "./renderers/containerInline.tsx": () => import("./containerInline-DfV5luP2.js"), "./renderers/curve.tsx": () => import("./curve-CZ-6w5ut.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-Cvygwi8o.js"), "./renderers/em.tsx": () => import("./em-C6cu-WDU.js"), "./renderers/embed.tsx": () => import("./embed-C1raIiRG.js"), "./renderers/feedback.tsx": () => import("./feedback-BNRR0_Rs.js"), "./renderers/figure.tsx": () => import("./figure-O3Uws-_h.js"), "./renderers/footnote.tsx": () => import("./footnote-lHWdFylu.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-1mYlVhaD.js"), "./renderers/graph.tsx": () => import("./graph-l-L1K4nG.js"), "./renderers/hint.tsx": () => import("./hint-DDtyuHg9.js"), "./renderers/hr.tsx": () => import("./hr-oH-xakvI.js"), "./renderers/image.tsx": () => import("./image-SRxrEaZ2.js"), "./renderers/label.tsx": () => import("./label-CKyVBWgE.js"), "./renderers/legend.tsx": () => import("./legend-CReKSIvU.js"), "./renderers/line.tsx": () => import("./line-D6uKV7zr.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-CDv4Ve7h.js"), "./renderers/list.tsx": () => import("./list-D8aAjxYc.js"), "./renderers/lq.tsx": () => import("./lq-B-eGi9nE.js"), "./renderers/lsq.tsx": () => import("./lsq-DHXTzrJo.js"), "./renderers/math.tsx": () => import("./math-of94da3T.js"), "./renderers/mathInput.tsx": () => import("./mathInput-CQFX0rse.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-CWct4cco.js"), "./renderers/mdash.tsx": () => import("./mdash-vR_7yWIV.js"), "./renderers/nbsp.tsx": () => import("./nbsp-DlGqgs9I.js"), "./renderers/ndash.tsx": () => import("./ndash-CdseP4q1.js"), "./renderers/number.tsx": () => import("./number-Cc_7Mh-C.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-BWV3vbmT.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-D_8B_Xny.js"), "./renderers/p.tsx": () => import("./p-ZF7mWPcK.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-BzMXl3wd.js"), "./renderers/pegboard.tsx": () => import("./pegboard-B6XCbxUJ.js"), "./renderers/point.tsx": () => import("./point-BXEMVgUT.js"), "./renderers/polygon.tsx": () => import("./polygon-Cc-Aj3-P.js"), "./renderers/polyline.tsx": () => import("./polyline-CNP0ULj7.js"), "./renderers/pre.tsx": () => import("./pre-jlpiKtBf.js"), "./renderers/prefigure.tsx": () => import("./prefigure-BCrz5zXA.js"), "./renderers/pretzel.tsx": () => import("./pretzel-CWq_k6Uf.js"), "./renderers/q.tsx": () => import("./q-DFsIchrp.js"), "./renderers/ray.tsx": () => import("./ray-oGxo3rQS.js"), "./renderers/ref.tsx": () => import("./ref-DfXpTkKz.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-CPbm6cv1.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-B1PGzq8o.js"), "./renderers/row.tsx": () => import("./row-UgYelYLT.js"), "./renderers/rq.tsx": () => import("./rq-CjKvXA62.js"), "./renderers/rsq.tsx": () => import("./rsq-B-Mx5Y68.js"), "./renderers/section.tsx": () => import("./section-CrTMyvOs.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-C96d48Ad.js"), "./renderers/slider.tsx": () => import("./slider-kS-B6WiH.js"), "./renderers/slopeField.tsx": () => import("./slopeField-BHk769nm.js"), "./renderers/solution.tsx": () => import("./solution-py2CNTId.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-DGDYzLHC.js"), "./renderers/sq.tsx": () => import("./sq-BBPTC1CY.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-DPOj2gp0.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-Cvb05k28.js"), "./renderers/table.tsx": () => import("./table-B1oFxQ5d.js"), "./renderers/tabular.tsx": () => import("./tabular-BNtNXAyc.js"), "./renderers/tag.tsx": () => import("./tag-VWX2VkR1.js"), "./renderers/text.tsx": () => import("./text-wNZpL0ln.js"), "./renderers/textInput.tsx": () => import("./textInput-DfS8EGL2.js"), "./renderers/vector.tsx": () => import("./vector-BEX6HtBF.js"), "./renderers/vectorField.tsx": () => import("./vectorField-CDpz-fDS.js"), "./renderers/video.tsx": () => import("./video-BhjePl48.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-l-L1K4nG.js";
|
|
3
|
+
import { N as createFunctionFromDefinition, E as DocContext } from "./doenetml-BMmAYB3S.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-BMmAYB3S.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-BWt9hRgb.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-BMmAYB3S.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-Z_fegpsO.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BycFu9WS.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-l-L1K4nG.js";
|
|
6
|
+
import { D as DynamicMath } from "./DynamicMath-BfkjR8UJ.js";
|
|
7
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-UWuqCBKM.js";
|
|
8
|
+
import { ChoiceInputInlineContext } from "./choiceInput-BxbAh9j6.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-BycFu9WS.js";
|
|
3
|
+
import { u as useFieldFunction, a as useFieldCurve, c as buildVectorFieldData } from "./useFieldCurve-CxJYGtda.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-BMmAYB3S.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-BycFu9WS.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-DCv0lF-E.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-CuGyRr32.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;
|