@doenet/doenetml 0.7.27-dev.639 → 0.7.27-dev.640
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-DyTdZRiO.js → AnswerResponseButton-C0qSwOil.js} +2 -2
- package/{Description-BOgHHVOA.js → Description-ybY7aZRF.js} +1 -1
- package/{EditorViewer-M6l7fb5t.js → EditorViewer-DbEmzNtN.js} +5 -5
- package/{GraphFrame-cya__x0U.js → GraphFrame-DVjj-iQs.js} +2 -2
- package/{JSXGraphRenderer-OTu_tWrr.js → JSXGraphRenderer-D81xvGri.js} +1 -1
- package/{NonInlineMediaWrapper-CtQti6yK.js → NonInlineMediaWrapper-DZ4Ey-Vg.js} +1 -1
- package/{_error-Bspj6m0V.js → _error-B4YxF0dr.js} +2 -2
- package/{alert-D3_wvPnH.js → alert-BXl_nhwf.js} +3 -3
- package/{angle-DmqdT9o1.js → angle-DjcmIi6k.js} +6 -6
- package/{answer-UWLS_bGG.js → answer-ByL44kv-.js} +5 -5
- package/{asList-nqqlCFhD.js → asList-Be92FJ9s.js} +2 -2
- package/{blockQuote-D8NH9DMb.js → blockQuote-mE-RPwo1.js} +3 -3
- package/{boolean-CMsmbIKY.js → boolean-CLYKwClO.js} +2 -2
- package/{booleanInput-VCd59eyh.js → booleanInput-DAV0PIMe.js} +6 -6
- package/{br-DsPY83mo.js → br-61wemo_H.js} +2 -2
- package/{button-PgOOlnoJ.js → button-BkVCnJzo.js} +4 -4
- package/{c-Bb8JUF9T.js → c-8vRi8OMA.js} +3 -3
- package/{cell-Cy5dUYBF.js → cell-CWzGnkgP.js} +3 -3
- package/{chart-aXs3Nmfo.js → chart-D3K3V9lG.js} +4 -4
- package/{choiceInput-DrEE31bw.js → choiceInput-BIuYCKcD.js} +5 -5
- package/{circle-BcX1Y33A.js → circle-Do8zfQMd.js} +6 -6
- package/{cobwebPolyline-_cWaLasx.js → cobwebPolyline-DvU5aYTF.js} +4 -4
- package/{codeEditor-yK_f2IcS.js → codeEditor-Z82FnNYN.js} +2 -2
- package/{composites-BIQqN4Hf.js → composites-C80x7zsZ.js} +1 -1
- package/{containerBlock-C39L2nQ6.js → containerBlock-DyP5sbnc.js} +4 -4
- package/{containerInline-Zf7D56oz.js → containerInline-Cm3jC2qQ.js} +4 -4
- package/{curve-BEN-V39X.js → curve-WejaBcNX.js} +4 -4
- package/{doenetml-CDwNi7m8.js → doenetml-BcHNXkg9.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-Czu80Yjk.js → ellipsis-DJBcHAJq.js} +2 -2
- package/{em-DK2Wmqy_.js → em-N4lnmFku.js} +3 -3
- package/{embed-DhyIosIs.js → embed-C8cckgrq.js} +2 -2
- package/{feedback-D1TfaUl5.js → feedback-BVvOGQvF.js} +4 -4
- package/{figure-WE9wQ4QH.js → figure-KC0OZyIk.js} +3 -3
- package/{fillPatterns-C8byuZ0C.js → fillPatterns-VmMoXCL4.js} +1 -1
- package/{footnote-C8Sh-ryl.js → footnote-CLwHOhYy.js} +3 -3
- package/{fractionInput-CkPTr2eM.js → fractionInput-Dtn0zOmn.js} +4 -4
- package/{graph-DhLQ_UPq.js → graph-C6RpLFlB.js} +6 -6
- package/{hint-CBXxGrtO.js → hint-igKqTL8Q.js} +4 -4
- package/{hovercard-store-6bLIjKcE.js → hovercard-store-Dh66rprE.js} +1 -1
- package/{hr-DBPsgtgD.js → hr-B7Ev3ASn.js} +2 -2
- package/{image-7Ag9S4ZT.js → image-BhNwN6va.js} +7 -7
- package/{index-Typ1iGGW.js → index-DVyf2Ji3.js} +1 -1
- package/{index.es-DNLODfiX.js → index.es-DwvQA8Ft.js} +1 -1
- package/index.js +1 -1
- package/{label-4b-k-H_6.js → label-DHvmcAl6.js} +6 -6
- package/{labelWithLatex-BK9P4ODS.js → labelWithLatex-CBJcjjbm.js} +1 -1
- package/{legend-BeKA4QHi.js → legend-Bp9feC5G.js} +4 -4
- package/{line-Df3dn2Ar.js → line--Nq6EdQ2.js} +6 -6
- package/{lineFamilyDragHandlers-fYUYai6m.js → lineFamilyDragHandlers-CqBPrKZo.js} +1 -1
- package/{lineSegment-BmXQyOqu.js → lineSegment-BKpkQhOM.js} +5 -5
- package/{list-CKmAW54W.js → list-DEppTrCW.js} +4 -4
- package/{lq-DzGq9bQl.js → lq-G2tG4Tsw.js} +2 -2
- package/{lsq-D95_40ED.js → lsq-DyDpI1mP.js} +2 -2
- package/{markupRenderer-BVre207O.js → markupRenderer-DvXrW_6l.js} +1 -1
- package/{math-RgPf5CQp.js → math-DHf5QFws.js} +7 -7
- package/{mathInput-HHFI_ygr.js → mathInput-Bt4KzGYu.js} +8 -8
- package/{mathInputSlots-9c28SSqE.js → mathInputSlots-CBIJuQB4.js} +1 -1
- package/{matrixInput-BfPPZJyW.js → matrixInput-MJbScLZS.js} +4 -4
- package/{mdash-CGzPebLY.js → mdash-CtbLQTPW.js} +2 -2
- package/{nbsp-DglOupSg.js → nbsp-BOeUdZMO.js} +2 -2
- package/{ndash-DyDlK1_U.js → ndash-BPo1IFLM.js} +2 -2
- package/{number-G4DHQ1Ws.js → number-H556JK6r.js} +6 -6
- package/{orbitalDiagram-CvNZD2Vp.js → orbitalDiagram-CDeGXMYl.js} +2 -2
- package/{orbitalDiagramInput-DRrUnBF0.js → orbitalDiagramInput-BPhmSG_a.js} +2 -2
- package/{p-cKmSp-EP.js → p-C2LVtUjl.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-B8-wL55M.js → paginatorControls-C0SLI0jQ.js} +2 -2
- package/{pegboard-DrdvsjIg.js → pegboard-Cm3JHp5q.js} +3 -3
- package/{point-BfxFwsYT.js → point-Bl-HSJ6I.js} +6 -6
- package/{polygon-DwvVrgQY.js → polygon-BvTBEZPK.js} +6 -6
- package/{polyline-DhlYmmDP.js → polyline-BLtmwqwR.js} +5 -5
- package/{pre-o-sB8pJd.js → pre-DQQiKi6H.js} +3 -3
- package/{prefigure-DgccpVKu.js → prefigure-D6xDu4Js.js} +1 -1
- package/{pretzel-CuMUfspz.js → pretzel-D-kd6w4u.js} +4 -4
- package/{q-CzHwGzud.js → q-CPR7unZx.js} +3 -3
- package/{ray-CiOWa9Ys.js → ray-kH1MIPzN.js} +5 -5
- package/{ref-Bd9DfP5H.js → ref-9K-qVcDy.js} +2 -2
- package/{regionBetweenCurveXAxis-CO3yhcaS.js → regionBetweenCurveXAxis-CDsMP97e.js} +5 -5
- package/{regionBetweenCurves-D9aQW13J.js → regionBetweenCurves-1JSCWeCb.js} +5 -5
- package/{row-Bo5z61No.js → row-aOwV5DSn.js} +2 -2
- package/{rq-Cf30ULeI.js → rq-Fg1PnkQ8.js} +2 -2
- package/{rsq-C29gyMRB.js → rsq-CmwfbqwZ.js} +2 -2
- package/{section-B6CKvk-R.js → section-BZryQqo3.js} +5 -5
- package/{sha256-8sXzDnE0-jfivPkHf.js → sha256-8sXzDnE0-BYvJP73v.js} +1 -1
- package/{sideBySide-CtV6TePN.js → sideBySide-B9RX_5tU.js} +2 -2
- package/{slider-DqQc-gsM.js → slider-BgtQuPfL.js} +3 -3
- package/{slopeField-NdE37yFF.js → slopeField-BsqAh-l0.js} +2 -2
- package/{solution-DJ5NKNyk.js → solution-DrjmGsbA.js} +4 -4
- package/{spreadsheet-BJKpLPGM.js → spreadsheet-KAlliLW8.js} +2 -2
- package/{sq-s3jWLOuT.js → sq-BEwVX48X.js} +3 -3
- package/{subsetOfRealsInput-BQ5zKkml.js → subsetOfRealsInput-CgknIQV9.js} +2 -2
- package/{summaryStatistics-DBiw6ORO.js → summaryStatistics-Bl-wzxUS.js} +2 -2
- package/{table-DAEwkm8p.js → table-D_5CcYpi.js} +2 -2
- package/{tabular-DjDe13Fa.js → tabular-p84W3zsT.js} +2 -2
- package/{tag-QX1h5aLf.js → tag-BX2n1HwH.js} +2 -2
- package/{text-CHZL0XQT.js → text-CUSpB7Db.js} +6 -6
- package/{textInput-D2q_3yS5.js → textInput-DKIJmGUf.js} +7 -7
- package/{tooltip-provider-B7IlD3rL.js → tooltip-provider-D1E0lJMl.js} +2 -2
- package/{useAnchoredGraphDragHandler-DwIgMYN0.js → useAnchoredGraphDragHandler-mdGz2qrA.js} +1 -1
- package/useDoenetRenderer-CeVdbhrS.js +114 -0
- package/{useFieldCurve-C8D4ArOf.js → useFieldCurve-DBbkU58I.js} +2 -2
- package/{useSubmitActionWithDelay-DquIEFyu.js → useSubmitActionWithDelay-VLIEiteW.js} +2 -2
- package/{vector-BhWjiFW6.js → vector-C_ECC74r.js} +6 -6
- package/{vectorField-C_SDofNj.js → vectorField-JpBLuP2D.js} +2 -2
- package/{video-C_IOBlK5.js → video-B6BXv90W.js} +4 -4
- package/useDoenetRenderer-DF8eI1MJ.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-BcHNXkg9.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-D81xvGri.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-C6RpLFlB.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-CqBPrKZo.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-BcHNXkg9.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-CeVdbhrS.js";
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites-C80x7zsZ.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-BcHNXkg9.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-BcHNXkg9.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-CeVdbhrS.js";
|
|
4
|
+
import { A as AnswerResponseButton } from "./AnswerResponseButton-C0qSwOil.js";
|
|
5
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-VLIEiteW.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-BcHNXkg9.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-CeVdbhrS.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-DvXrW_6l.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-BcHNXkg9.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-D81xvGri.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-C6RpLFlB.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-CqBPrKZo.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-BcHNXkg9.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.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-BcHNXkg9.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-D81xvGri.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-C6RpLFlB.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-VmMoXCL4.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-BcHNXkg9.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-CeVdbhrS.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-C6RpLFlB.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-VmMoXCL4.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-D81xvGri.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-BcHNXkg9.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.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-BcHNXkg9.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.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-BcHNXkg9.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.js";
|
|
4
4
|
const rsq = React__default.memo(function Rsq(props) {
|
|
5
5
|
let { SVs } = useDoenetRenderer(props, false);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as useT, I as useContentT, R as directionOf, S as useDocumentDirection, T as chromeLangDir, t as useUiLocale, E as DocContext, L as cesc, J as useRecordVisibilityChanges, q as jsxRuntimeExports, U as DocumentDirectionProvider } from "./doenetml-
|
|
1
|
+
import { u as useT, I as useContentT, R as directionOf, S as useDocumentDirection, T as chromeLangDir, t as useUiLocale, E as DocContext, L as cesc, J as useRecordVisibilityChanges, q as jsxRuntimeExports, U as DocumentDirectionProvider } from "./doenetml-BcHNXkg9.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-DwvQA8Ft.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-CeVdbhrS.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-C80x7zsZ.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-VLIEiteW.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-BcHNXkg9.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.js";
|
|
4
4
|
import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
5
5
|
function isWhitespaceTextChild(child) {
|
|
6
6
|
return typeof child === "string" && child.trim() === "";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as useT, q as jsxRuntimeExports, V as ActionButtonGroup, W as ActionButton } from "./doenetml-
|
|
1
|
+
import { u as useT, q as jsxRuntimeExports, V as ActionButtonGroup, W as ActionButton } from "./doenetml-BcHNXkg9.js";
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from "react";
|
|
3
3
|
import me from "math-expressions";
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { r as renderLabelWithLatex } from "./labelWithLatex-
|
|
6
|
+
import { r as renderLabelWithLatex } from "./labelWithLatex-CBJcjjbm.js";
|
|
7
7
|
import { l as ltrIslandProps } from "./direction-BwrU7jHk.js";
|
|
8
8
|
let round_to_decimals = (x, n) => {
|
|
9
9
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
-
import { u as useFieldFunction, a as useFieldCurve, b as buildSlopeFieldData } from "./useFieldCurve-
|
|
2
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.js";
|
|
3
|
+
import { u as useFieldFunction, a as useFieldCurve, b as buildSlopeFieldData } from "./useFieldCurve-DBbkU58I.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-BcHNXkg9.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-CeVdbhrS.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-DwvQA8Ft.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-C80x7zsZ.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-BcHNXkg9.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-CeVdbhrS.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-BcHNXkg9.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-CeVdbhrS.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-DvXrW_6l.js";
|
|
5
5
|
const sq = React__default.memo(function Sq(props) {
|
|
6
6
|
const { SVs, children } = useDoenetRenderer(props);
|
|
7
7
|
const body = renderMarkupBody({ SVs, children });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useT, J as useRecordVisibilityChanges, q as jsxRuntimeExports, a0 as ToggleButtonGroup, Z as ToggleButton, V as ActionButtonGroup, W as ActionButton } from "./doenetml-
|
|
1
|
+
import { u as useT, J as useRecordVisibilityChanges, q as jsxRuntimeExports, a0 as ToggleButtonGroup, Z as ToggleButton, V as ActionButtonGroup, W as ActionButton } from "./doenetml-BcHNXkg9.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.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-BcHNXkg9.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.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-BcHNXkg9.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.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-BcHNXkg9.js";
|
|
2
2
|
import React__default, { useRef, useState, useLayoutEffect } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
5
|
import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
6
6
|
import { t as tabularColumnEdgeProperties } from "./tabularCellPadding-BFCU20f_.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as jsxRuntimeExports } from "./doenetml-BcHNXkg9.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.js";
|
|
4
4
|
const tag = React__default.memo(function Tag(props) {
|
|
5
5
|
let { id, SVs, children } = useDoenetRenderer(props);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { E as DocContext, K as toNumberOrNaN, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-
|
|
1
|
+
import { E as DocContext, K as toNumberOrNaN, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-BcHNXkg9.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-D81xvGri.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-C6RpLFlB.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.js";
|
|
6
6
|
import me from "math-expressions";
|
|
7
7
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
8
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
8
|
+
import { ChoiceInputInlineContext } from "./choiceInput-BIuYCKcD.js";
|
|
9
9
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
10
10
|
import { u as useDraggableRefs } from "./useDraggableRefs-QaTfkVuD.js";
|
|
11
|
-
import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-
|
|
11
|
+
import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-mdGz2qrA.js";
|
|
12
12
|
import { u as useJSXGraphCleanup } from "./useJSXGraphCleanup-BNk4sn6x.js";
|
|
13
13
|
import { e as resolveTextColor, f as resolveBackgroundColor } from "./styleColors-BrCvjxze.js";
|
|
14
14
|
const text = React__default.memo(function Text(props) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { I as useContentT, K as toNumberOrNaN, q as jsxRuntimeExports, Y as MathJax } from "./doenetml-
|
|
1
|
+
import { I as useContentT, K as toNumberOrNaN, q as jsxRuntimeExports, Y as MathJax } from "./doenetml-BcHNXkg9.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-D81xvGri.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-C6RpLFlB.js";
|
|
7
7
|
import me from "math-expressions";
|
|
8
8
|
import { g as getPositionFromAnchorByCoordinate, P as POINTER_DRAG_THRESHOLD } from "./graph-W6vrFcBu.js";
|
|
9
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, w as wantsFullCheckWorkButton, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
10
|
-
import { D as DescriptionPopover } from "./Description-
|
|
9
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, w as wantsFullCheckWorkButton, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-VLIEiteW.js";
|
|
10
|
+
import { D as DescriptionPopover } from "./Description-ybY7aZRF.js";
|
|
11
11
|
import { a as addValidationStateToShortDescription } from "./validationState-DI_lxk1a.js";
|
|
12
|
-
import { b as useInMathSlot, c as useMathSlotEditing } from "./mathInputSlots-
|
|
12
|
+
import { b as useInMathSlot, c as useMathSlotEditing } from "./mathInputSlots-CBIJuQB4.js";
|
|
13
13
|
import { u as useMathJaxOutOfTabOrder } from "./useMathJaxOutOfTabOrder-C0wsYqBF.js";
|
|
14
14
|
const EXPANDED_INPUT_MARGIN_X = 4;
|
|
15
15
|
const BOARD_INPUT_FALLBACK_WIDTH = "100px";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aj as createStoreContext, ak as createDialogComponent, a2 as forwardRef, a3 as createElement, a4 as createHook, a6 as invariant, al as useWrapElement, q as jsxRuntimeExports, a7 as useStoreState, am as isFalsyBooleanCallback, an as contains, ao as sync, ap as chain, aq as useEvent, ar as createStore, as as defaultValue, at as useStore, au as useStoreProps } from "./doenetml-
|
|
2
|
-
import { H as HovercardScopedContextProvider, a as HovercardContextProvider, u as useHovercard, b as useHovercardAnchor, c as createHovercardStore, d as useHovercardStoreProps } from "./hovercard-store-
|
|
1
|
+
import { aj as createStoreContext, ak as createDialogComponent, a2 as forwardRef, a3 as createElement, a4 as createHook, a6 as invariant, al as useWrapElement, q as jsxRuntimeExports, a7 as useStoreState, am as isFalsyBooleanCallback, an as contains, ao as sync, ap as chain, aq as useEvent, ar as createStore, as as defaultValue, at as useStore, au as useStoreProps } from "./doenetml-BcHNXkg9.js";
|
|
2
|
+
import { H as HovercardScopedContextProvider, a as HovercardContextProvider, u as useHovercard, b as useHovercardAnchor, c as createHovercardStore, d as useHovercardStoreProps } from "./hovercard-store-Dh66rprE.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-D81xvGri.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-BcHNXkg9.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-DVjj-iQs.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-D81xvGri.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-B4YxF0dr.js"), "./renderers/alert.tsx": () => import("./alert-BXl_nhwf.js"), "./renderers/angle.tsx": () => import("./angle-DjcmIi6k.js"), "./renderers/answer.tsx": () => import("./answer-ByL44kv-.js"), "./renderers/asList.tsx": () => import("./asList-Be92FJ9s.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-mE-RPwo1.js"), "./renderers/boolean.tsx": () => import("./boolean-CLYKwClO.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-DAV0PIMe.js"), "./renderers/br.tsx": () => import("./br-61wemo_H.js"), "./renderers/button.tsx": () => import("./button-BkVCnJzo.js"), "./renderers/c.tsx": () => import("./c-8vRi8OMA.js"), "./renderers/cell.tsx": () => import("./cell-CWzGnkgP.js"), "./renderers/chart.tsx": () => import("./chart-D3K3V9lG.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-BIuYCKcD.js"), "./renderers/circle.tsx": () => import("./circle-Do8zfQMd.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-DvU5aYTF.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-Z82FnNYN.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-DyP5sbnc.js"), "./renderers/containerInline.tsx": () => import("./containerInline-Cm3jC2qQ.js"), "./renderers/curve.tsx": () => import("./curve-WejaBcNX.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-DJBcHAJq.js"), "./renderers/em.tsx": () => import("./em-N4lnmFku.js"), "./renderers/embed.tsx": () => import("./embed-C8cckgrq.js"), "./renderers/feedback.tsx": () => import("./feedback-BVvOGQvF.js"), "./renderers/figure.tsx": () => import("./figure-KC0OZyIk.js"), "./renderers/footnote.tsx": () => import("./footnote-CLwHOhYy.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-Dtn0zOmn.js"), "./renderers/graph.tsx": () => import("./graph-C6RpLFlB.js"), "./renderers/hint.tsx": () => import("./hint-igKqTL8Q.js"), "./renderers/hr.tsx": () => import("./hr-B7Ev3ASn.js"), "./renderers/image.tsx": () => import("./image-BhNwN6va.js"), "./renderers/label.tsx": () => import("./label-DHvmcAl6.js"), "./renderers/legend.tsx": () => import("./legend-Bp9feC5G.js"), "./renderers/line.tsx": () => import("./line--Nq6EdQ2.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-BKpkQhOM.js"), "./renderers/list.tsx": () => import("./list-DEppTrCW.js"), "./renderers/lq.tsx": () => import("./lq-G2tG4Tsw.js"), "./renderers/lsq.tsx": () => import("./lsq-DyDpI1mP.js"), "./renderers/math.tsx": () => import("./math-DHf5QFws.js"), "./renderers/mathInput.tsx": () => import("./mathInput-Bt4KzGYu.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-MJbScLZS.js"), "./renderers/mdash.tsx": () => import("./mdash-CtbLQTPW.js"), "./renderers/nbsp.tsx": () => import("./nbsp-BOeUdZMO.js"), "./renderers/ndash.tsx": () => import("./ndash-BPo1IFLM.js"), "./renderers/number.tsx": () => import("./number-H556JK6r.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-CDeGXMYl.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-BPhmSG_a.js"), "./renderers/p.tsx": () => import("./p-C2LVtUjl.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-C0SLI0jQ.js"), "./renderers/pegboard.tsx": () => import("./pegboard-Cm3JHp5q.js"), "./renderers/point.tsx": () => import("./point-Bl-HSJ6I.js"), "./renderers/polygon.tsx": () => import("./polygon-BvTBEZPK.js"), "./renderers/polyline.tsx": () => import("./polyline-BLtmwqwR.js"), "./renderers/pre.tsx": () => import("./pre-DQQiKi6H.js"), "./renderers/prefigure.tsx": () => import("./prefigure-D6xDu4Js.js"), "./renderers/pretzel.tsx": () => import("./pretzel-D-kd6w4u.js"), "./renderers/q.tsx": () => import("./q-CPR7unZx.js"), "./renderers/ray.tsx": () => import("./ray-kH1MIPzN.js"), "./renderers/ref.tsx": () => import("./ref-9K-qVcDy.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-CDsMP97e.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-1JSCWeCb.js"), "./renderers/row.tsx": () => import("./row-aOwV5DSn.js"), "./renderers/rq.tsx": () => import("./rq-Fg1PnkQ8.js"), "./renderers/rsq.tsx": () => import("./rsq-CmwfbqwZ.js"), "./renderers/section.tsx": () => import("./section-BZryQqo3.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-B9RX_5tU.js"), "./renderers/slider.tsx": () => import("./slider-BgtQuPfL.js"), "./renderers/slopeField.tsx": () => import("./slopeField-BsqAh-l0.js"), "./renderers/solution.tsx": () => import("./solution-DrjmGsbA.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-KAlliLW8.js"), "./renderers/sq.tsx": () => import("./sq-BEwVX48X.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-CgknIQV9.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-Bl-wzxUS.js"), "./renderers/table.tsx": () => import("./table-D_5CcYpi.js"), "./renderers/tabular.tsx": () => import("./tabular-p84W3zsT.js"), "./renderers/tag.tsx": () => import("./tag-BX2n1HwH.js"), "./renderers/text.tsx": () => import("./text-CUSpB7Db.js"), "./renderers/textInput.tsx": () => import("./textInput-DKIJmGUf.js"), "./renderers/vector.tsx": () => import("./vector-C_ECC74r.js"), "./renderers/vectorField.tsx": () => import("./vectorField-JpBLuP2D.js"), "./renderers/video.tsx": () => import("./video-B6BXv90W.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-C6RpLFlB.js";
|
|
3
|
+
import { N as createFunctionFromDefinition, E as DocContext } from "./doenetml-BcHNXkg9.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-BcHNXkg9.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-DwvQA8Ft.js";
|
|
3
3
|
import { d as faSpinner, e as faLevelDownAlt, g as faCheck, h as faTimes, i as faCloud } from "./index-BDlitCgu.js";
|
|
4
4
|
import React__default, { useCallback } from "react";
|
|
5
5
|
function checkWorkCredit(SVs) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { E as DocContext, q as jsxRuntimeExports, F as textRendererStyle, G as DynamicMath } from "./doenetml-
|
|
1
|
+
import { E as DocContext, q as jsxRuntimeExports, F as textRendererStyle, G as DynamicMath } from "./doenetml-BcHNXkg9.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { j as jxg, s as syncLayer, g as syncVisPropValues, e as syncLineStrokeStyle, a as syncWithLabelToggle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, i as applyLineFamilyLabelPlacement, k as buildLineFamilyLabelAttributes, d as attachLabelHoverHighlight, c as computeLabelMaskCssStyle, l as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
5
|
-
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-
|
|
6
|
-
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
3
|
+
import { j as jxg, s as syncLayer, g as syncVisPropValues, e as syncLineStrokeStyle, a as syncWithLabelToggle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, i as applyLineFamilyLabelPlacement, k as buildLineFamilyLabelAttributes, d as attachLabelHoverHighlight, c as computeLabelMaskCssStyle, l as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-D81xvGri.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-C6RpLFlB.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-CqBPrKZo.js";
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-BIuYCKcD.js";
|
|
8
8
|
import { a as buildLineLikeAttributes, c as buildDragHandleAttributes } from "./buildGraphicalAttributes-B_soifR-.js";
|
|
9
9
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
10
10
|
import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
-
import { u as useFieldFunction, a as useFieldCurve, c as buildVectorFieldData } from "./useFieldCurve-
|
|
2
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeVdbhrS.js";
|
|
3
|
+
import { u as useFieldFunction, a as useFieldCurve, c as buildVectorFieldData } from "./useFieldCurve-DBbkU58I.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-BcHNXkg9.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-CeVdbhrS.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-ybY7aZRF.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-DZ4Ey-Vg.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;
|