@doenet/doenetml 0.7.20-dev.312 → 0.7.20-dev.314
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-DxoUVG9J.js → AnswerResponseButton-CiRNQDkk.js} +2 -2
- package/{Description-BQlDpTEW.js → Description-Dtbg0fpJ.js} +1 -1
- package/{GraphFrame-CuvHdDgq.js → GraphFrame-DQeTtfXQ.js} +2 -2
- package/{JSXGraphRenderer-BOzKpTdd.js → JSXGraphRenderer-DXTUSosW.js} +1 -1
- package/{NonInlineMediaWrapper-BO5mYi-I.js → NonInlineMediaWrapper-CrVGag52.js} +1 -1
- package/Viewer/renderers/angle.d.ts.map +1 -1
- package/Viewer/renderers/answer.d.ts.map +1 -1
- package/Viewer/renderers/label.d.ts.map +1 -1
- package/Viewer/renderers/line.d.ts.map +1 -1
- package/Viewer/renderers/math.d.ts.map +1 -1
- package/Viewer/renderers/number.d.ts.map +1 -1
- package/Viewer/renderers/point.d.ts.map +1 -1
- package/Viewer/renderers/utils/DynamicMath.d.ts +25 -0
- package/Viewer/renderers/utils/DynamicMath.d.ts.map +1 -0
- package/Viewer/renderers/utils/labelWithLatex.d.ts.map +1 -1
- package/Viewer/renderers/vector.d.ts.map +1 -1
- package/{_error--gnqS_Cc.js → _error-BRhFHbK8.js} +2 -2
- package/{alert-mEWnrqFn.js → alert-Cz6izeq3.js} +3 -3
- package/{angle-CGc8RvVx.js → angle-D_iekSNn.js} +7 -7
- package/{answer-BSDWUlLH.js → answer-1f2NkfC0.js} +6 -6
- package/{asList-DJukSzH2.js → asList-D4hiNpz-.js} +2 -2
- package/{blockQuote-B5HDe9_d.js → blockQuote-x1--I760.js} +3 -3
- package/{boolean-DReYcHhK.js → boolean-BYGrs76j.js} +2 -2
- package/{booleanInput-DpOzfB4V.js → booleanInput-DYE1w3LD.js} +6 -6
- package/{br-BfJiEL6k.js → br-BzkMqYuD.js} +2 -2
- package/{button-DoRESk8x.js → button-CRqE1tsC.js} +4 -4
- package/{c-B69rXdyO.js → c-BHOryYDz.js} +3 -3
- package/{cell-D94t7isO.js → cell-C03X9gmD.js} +3 -3
- package/{choiceInput-C1s6t1vp.js → choiceInput-BFXDUvNz.js} +4 -4
- package/{circle-B0iGK0Vg.js → circle-CoIOk1wQ.js} +5 -5
- package/{cobwebPolyline-BJ4xMoeK.js → cobwebPolyline-BFJojr_D.js} +4 -4
- package/{codeEditor-0tF1z4w6.js → codeEditor-C_WxAh0Y.js} +2 -2
- package/{composites-CFYSb7v0.js → composites-C4lhzFZo.js} +1 -1
- package/{containerBlock-BHb20rW8.js → containerBlock-Q1XvK22P.js} +4 -4
- package/{containerInline-qqXkrPWC.js → containerInline-DGIGDg83.js} +4 -4
- package/{curve-DNTaiilA.js → curve-DcKNQ4Kz.js} +4 -4
- package/{doenetml-B40wNOxL.js → doenetml-CVtfzUck.js} +151 -67
- package/doenetml-inline-worker.js +2 -2
- package/{ellipsis-BzBUT01-.js → ellipsis-Dbe1pFFH.js} +2 -2
- package/{em-Drac3kyc.js → em-DKjg8lu6.js} +3 -3
- package/{embed-eX-vyjbe.js → embed-xTwIo3rl.js} +2 -2
- package/{feedback-DhE5ZszX.js → feedback-DxgOg5wz.js} +4 -4
- package/{figure-GN0sirBO.js → figure-FtqA6IS4.js} +3 -3
- package/{fillPatterns-N9QFaocE.js → fillPatterns-C3JuhCEv.js} +1 -1
- package/{footnote-Lq6OSVPA.js → footnote-D-wv680X.js} +3 -3
- package/{fractionInput-Ds3Q4iDt.js → fractionInput-C-0_Lh92.js} +4 -4
- package/{graph-3R7C5cfM.js → graph-DI6rClAs.js} +6 -6
- package/{hint-7qQqMG7S.js → hint-D--xKdKK.js} +4 -4
- package/{hr-Dmu8wzGU.js → hr-BOLAFmYk.js} +2 -2
- package/{image-Bc0G2MtM.js → image-BqEpw5il.js} +7 -7
- package/{index-BGpr8vdT.js → index-CgIVilS0.js} +1 -1
- package/{index.es-DZph8YfV.js → index.es-D15M8_qe.js} +1 -1
- package/index.js +1 -1
- package/{label-BBeVslu0.js → label-BVH6ieXC.js} +7 -7
- package/{labelWithLatex-CKfa0Ss3.js → labelWithLatex-CvFirg3n.js} +2 -2
- package/{legend-MGE0n882.js → legend-nJHE8oqg.js} +4 -4
- package/{line-CWRKiDi-.js → line-BZJDGv87.js} +6 -6
- package/{lineSegment-CPHVL1Lq.js → lineSegment-CSrBTpnV.js} +4 -4
- package/{list-BzRIdAAK.js → list-D65_oYuY.js} +4 -4
- package/{lq-BcMgWtU1.js → lq-CBqNNz3G.js} +2 -2
- package/{lsq-ApHtZGB1.js → lsq-K3XjaXqe.js} +2 -2
- package/{markupRenderer-OMnWKMCh.js → markupRenderer-BImj5ysD.js} +1 -1
- package/{math-BBeeZQxo.js → math-BGK8VrLz.js} +7 -8
- package/{mathInput-gz7Powg7.js → mathInput-Do6kAhnM.js} +5 -5
- package/{matrixInput-B0dE9Yf-.js → matrixInput-Dk9yGska.js} +4 -4
- package/{mdash-CKo8Hq6y.js → mdash-BJFCsNNC.js} +2 -2
- package/{nbsp-B0g0yKGD.js → nbsp-B9325-Gc.js} +2 -2
- package/{ndash-D8g5dK9R.js → ndash-B2df5nIG.js} +2 -2
- package/{number-C4dwUepQ.js → number-DjhKxqNt.js} +7 -7
- package/{orbitalDiagram-CkUFCUhH.js → orbitalDiagram-BSvivjnx.js} +2 -2
- package/{orbitalDiagramInput-CA7ALRKw.js → orbitalDiagramInput-PDaj8an3.js} +2 -2
- package/{p-dNesGl7y.js → p-dxu1bQfB.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-dzc6Bz66.js → paginatorControls-Ce-gIGnb.js} +2 -2
- package/{pegboard-BuJhwqJ3.js → pegboard-Ctf3Za3n.js} +4 -4
- package/{point--JI4dgT_.js → point-B_FM2eEi.js} +6 -6
- package/{polygon-CeviWAsR.js → polygon-CSxHL_tF.js} +5 -5
- package/{polyline-BzOg4xJX.js → polyline-DW7rB9Q4.js} +4 -4
- package/{pre-Di8czc9f.js → pre-BgTf9L_1.js} +3 -3
- package/{prefigure-DfRAL724.js → prefigure-C5snxl4O.js} +1 -1
- package/{pretzel-ruve715s.js → pretzel-C3L-MNrj.js} +4 -4
- package/{q-Znh7xskp.js → q-DmVtlPVd.js} +3 -3
- package/{ray-DrR0bWfB.js → ray-C0dTG3fu.js} +4 -4
- package/{ref-BfWemFs1.js → ref-CSI25f1d.js} +2 -2
- package/{regionBetweenCurveXAxis-Cr2DS7Kb.js → regionBetweenCurveXAxis-M1aZCAh_.js} +5 -5
- package/{regionBetweenCurves-ByK91Am_.js → regionBetweenCurves-BrdeHWZ1.js} +5 -5
- package/{row-SSPe5IvC.js → row-Cme62ZUT.js} +2 -2
- package/{rq-Df9PrY5-.js → rq-l2YVdxg8.js} +2 -2
- package/{rsq-BdUrtv5F.js → rsq-CUv-1slA.js} +2 -2
- package/{section-ELnhvmGD.js → section-BZi63FfU.js} +5 -5
- package/{sha256-C0vj3HDn-DRhnsFBS.js → sha256-C0vj3HDn-CwyO0a3t.js} +1 -1
- package/{sideBySide-CZYA_QoX.js → sideBySide-DckexN5b.js} +2 -2
- package/{slider-DxlnPFzu.js → slider-CiY5ndOW.js} +3 -3
- package/{solution-CXXW3-MF.js → solution-DbjNYfX2.js} +4 -4
- package/{spreadsheet-DdW4FWWh.js → spreadsheet-BT75LlVE.js} +2 -2
- package/{sq-CgiPY-JT.js → sq-txtyc2FV.js} +3 -3
- package/{subsetOfRealsInput-Cxhq6vJJ.js → subsetOfRealsInput-B7MKFCIn.js} +2 -2
- package/{summaryStatistics-D8qTNe4c.js → summaryStatistics-MVmSE86t.js} +2 -2
- package/{table-Ke5_0h4M.js → table-CNuvOYw8.js} +2 -2
- package/{tabular-UjhV3ogI.js → tabular-CWsgPtBE.js} +2 -2
- package/{tag-DWmzB0Xe.js → tag-DG3ZBcyS.js} +2 -2
- package/{text-D-W887rc.js → text-BYvGY30m.js} +6 -6
- package/{textInput-BY2Md0ON.js → textInput-Bw1QoXBR.js} +6 -6
- package/{tooltip-provider-BNqQrZ2M.js → tooltip-provider-BT1FtxeZ.js} +1 -1
- package/{useAnchoredGraphDragHandler-CI_PqnWq.js → useAnchoredGraphDragHandler-BW74Dr6I.js} +1 -1
- package/useDoenetRenderer-BF76vylQ.js +114 -0
- package/{useSubmitActionWithDelay-LSS6yd10.js → useSubmitActionWithDelay-inCDr5aI.js} +2 -2
- package/{vector-COavI6aB.js → vector-C-WWCq6y.js} +6 -6
- package/{video-C6ogIfeH.js → video-bjQrfsvF.js} +4 -4
- package/useDoenetRenderer-BN0elJwP.js +0 -114
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-CVtfzUck.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-
|
|
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-DXTUSosW.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BF76vylQ.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-DI6rClAs.js";
|
|
6
6
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
7
7
|
import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
|
|
8
8
|
import { a as resolveLineColor, c as resolveHandleColor } from "./styleColors-DH1y_fdG.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-CVtfzUck.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-BF76vylQ.js";
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites-C4lhzFZo.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 { j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-CVtfzUck.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 useRecordVisibilityChanges, k as DocContext, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, k as DocContext, j as jsxRuntimeExports } from "./doenetml-CVtfzUck.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-BF76vylQ.js";
|
|
4
|
+
import { A as AnswerResponseButton } from "./AnswerResponseButton-CiRNQDkk.js";
|
|
5
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-inCDr5aI.js";
|
|
6
6
|
const pretzel = React__default.memo(function Pretzel(props) {
|
|
7
7
|
let {
|
|
8
8
|
componentIdx,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-CVtfzUck.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-BF76vylQ.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-BImj5ysD.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,8 +1,8 @@
|
|
|
1
|
-
import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-CVtfzUck.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-
|
|
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-DXTUSosW.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BF76vylQ.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-DI6rClAs.js";
|
|
6
6
|
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-WXpVD4ud.js";
|
|
7
7
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
8
8
|
import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-CVtfzUck.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BF76vylQ.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 { k as DocContext,
|
|
1
|
+
import { k as DocContext, p as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-CVtfzUck.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-DXTUSosW.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BF76vylQ.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-DI6rClAs.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-C3JuhCEv.js";
|
|
7
7
|
const regionBetweenCurveXAxis = React__default.memo(function RegionBetweenCurveXAxis(props) {
|
|
8
8
|
let { id, SVs } = useDoenetRenderer(props);
|
|
9
9
|
RegionBetweenCurveXAxis.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { k as DocContext,
|
|
1
|
+
import { k as DocContext, p as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-CVtfzUck.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-BF76vylQ.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-DI6rClAs.js";
|
|
5
5
|
import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
|
|
6
|
-
import { g as getPatternFillAttributes } from "./fillPatterns-
|
|
7
|
-
import { b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-C3JuhCEv.js";
|
|
7
|
+
import { b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-DXTUSosW.js";
|
|
8
8
|
const regionBetweenCurves = React__default.memo(function RegionBetweenCurves(props) {
|
|
9
9
|
let { id, SVs } = useDoenetRenderer(props);
|
|
10
10
|
RegionBetweenCurves.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-CVtfzUck.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BF76vylQ.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 { j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-CVtfzUck.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BF76vylQ.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 { j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-CVtfzUck.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BF76vylQ.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 { k as DocContext,
|
|
1
|
+
import { k as DocContext, o as cesc, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-CVtfzUck.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-D15M8_qe.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-BF76vylQ.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-C4lhzFZo.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-inCDr5aI.js";
|
|
8
8
|
const section = React__default.memo(function Section(props) {
|
|
9
9
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
10
10
|
const { darkMode } = useContext(DocContext) || {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-CVtfzUck.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BF76vylQ.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 { j as jsxRuntimeExports, A as ActionButtonGroup,
|
|
1
|
+
import { j as jsxRuntimeExports, A as ActionButtonGroup, E as ActionButton, n as Context } from "./doenetml-CVtfzUck.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-BF76vylQ.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-CvFirg3n.js";
|
|
6
6
|
let round_to_decimals = (x, n) => {
|
|
7
7
|
try {
|
|
8
8
|
return Context.round_numbers_to_decimals(x, n).tree;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-CVtfzUck.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-BF76vylQ.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-D15M8_qe.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-C4lhzFZo.js";
|
|
7
7
|
const solution = React__default.memo(function Solution(props) {
|
|
8
8
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
9
9
|
const ref = useRef(null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as DocContext, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as DocContext, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-CVtfzUck.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-BF76vylQ.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 { j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-CVtfzUck.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-BF76vylQ.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-BImj5ysD.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 useRecordVisibilityChanges, j as jsxRuntimeExports,
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports, G as ToggleButtonGroup, T as ToggleButton, A as ActionButtonGroup, E as ActionButton } from "./doenetml-CVtfzUck.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BF76vylQ.js";
|
|
4
4
|
const subsetOfRealsInput = React__default.memo(function subsetOfReals(props) {
|
|
5
5
|
let { id, SVs, actions, callAction } = useDoenetRenderer(props, false);
|
|
6
6
|
let [mode, setMode] = useState("add remove points");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-CVtfzUck.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BF76vylQ.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
5
|
const summaryStatistics = React__default.memo(function SummaryStatistics(props) {
|
|
6
6
|
let { id, SVs, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-CVtfzUck.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BF76vylQ.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 { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-CVtfzUck.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BF76vylQ.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 { j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-CVtfzUck.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BF76vylQ.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 { k as DocContext,
|
|
1
|
+
import { k as DocContext, n as Context, j as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-CVtfzUck.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-DXTUSosW.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-DI6rClAs.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BF76vylQ.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-BFXDUvNz.js";
|
|
8
8
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
9
9
|
import { u as useDraggableRefs, a as useJSXGraphCleanup } from "./useJSXGraphCleanup-CX91oVW8.js";
|
|
10
|
-
import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-
|
|
10
|
+
import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-BW74Dr6I.js";
|
|
11
11
|
const text = React__default.memo(function Text(props) {
|
|
12
12
|
let { componentIdx, id, SVs, actions, callAction } = useDoenetRenderer(props);
|
|
13
13
|
Text.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as Context, j as jsxRuntimeExports, M as MathJax } from "./doenetml-CVtfzUck.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-DXTUSosW.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BF76vylQ.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-DI6rClAs.js";
|
|
7
7
|
import { g as getPositionFromAnchorByCoordinate, P as POINTER_DRAG_THRESHOLD } from "./graph-W6vrFcBu.js";
|
|
8
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
9
|
-
import { D as DescriptionPopover } from "./Description-
|
|
8
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-inCDr5aI.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-Dtbg0fpJ.js";
|
|
10
10
|
import { a as addValidationStateToShortDescription } from "./validationState-CVwSJZpB.js";
|
|
11
11
|
function TextInput(props) {
|
|
12
12
|
let { id, SVs, children, actions, ignoreUpdate, callAction } = useDoenetRenderer(props);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a4 as createStoreContext, a5 as HovercardScopedContextProvider, a6 as HovercardContextProvider, a7 as createDialogComponent, J as forwardRef, K as createElement, L as createHook, O as invariant, a8 as useWrapElement, j as jsxRuntimeExports, P as useStoreState, a9 as useHovercard, aa as isFalsyBooleanCallback, ab as contains, ac as sync, ad as chain, ae as useEvent, af as useHovercardAnchor, ag as createStore, ah as createHovercardStore, ai as defaultValue, aj as useStore, ak as useStoreProps, al as useHovercardStoreProps } from "./doenetml-CVtfzUck.js";
|
|
2
2
|
import { useRef, useEffect } from "react";
|
|
3
3
|
const ctx = createStoreContext([HovercardContextProvider], [HovercardScopedContextProvider]);
|
|
4
4
|
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-DXTUSosW.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 { v as useAppSelector, w as mainSlice, x as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-CVtfzUck.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-DQeTtfXQ.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-DXTUSosW.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-BRhFHbK8.js"), "./renderers/alert.tsx": () => import("./alert-Cz6izeq3.js"), "./renderers/angle.tsx": () => import("./angle-D_iekSNn.js"), "./renderers/answer.tsx": () => import("./answer-1f2NkfC0.js"), "./renderers/asList.tsx": () => import("./asList-D4hiNpz-.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-x1--I760.js"), "./renderers/boolean.tsx": () => import("./boolean-BYGrs76j.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-DYE1w3LD.js"), "./renderers/br.tsx": () => import("./br-BzkMqYuD.js"), "./renderers/button.tsx": () => import("./button-CRqE1tsC.js"), "./renderers/c.tsx": () => import("./c-BHOryYDz.js"), "./renderers/cell.tsx": () => import("./cell-C03X9gmD.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-BFXDUvNz.js"), "./renderers/circle.tsx": () => import("./circle-CoIOk1wQ.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-BFJojr_D.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-C_WxAh0Y.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-Q1XvK22P.js"), "./renderers/containerInline.tsx": () => import("./containerInline-DGIGDg83.js"), "./renderers/curve.tsx": () => import("./curve-DcKNQ4Kz.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-Dbe1pFFH.js"), "./renderers/em.tsx": () => import("./em-DKjg8lu6.js"), "./renderers/embed.tsx": () => import("./embed-xTwIo3rl.js"), "./renderers/feedback.tsx": () => import("./feedback-DxgOg5wz.js"), "./renderers/figure.tsx": () => import("./figure-FtqA6IS4.js"), "./renderers/footnote.tsx": () => import("./footnote-D-wv680X.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-C-0_Lh92.js"), "./renderers/graph.tsx": () => import("./graph-DI6rClAs.js"), "./renderers/hint.tsx": () => import("./hint-D--xKdKK.js"), "./renderers/hr.tsx": () => import("./hr-BOLAFmYk.js"), "./renderers/image.tsx": () => import("./image-BqEpw5il.js"), "./renderers/label.tsx": () => import("./label-BVH6ieXC.js"), "./renderers/legend.tsx": () => import("./legend-nJHE8oqg.js"), "./renderers/line.tsx": () => import("./line-BZJDGv87.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-CSrBTpnV.js"), "./renderers/list.tsx": () => import("./list-D65_oYuY.js"), "./renderers/lq.tsx": () => import("./lq-CBqNNz3G.js"), "./renderers/lsq.tsx": () => import("./lsq-K3XjaXqe.js"), "./renderers/math.tsx": () => import("./math-BGK8VrLz.js"), "./renderers/mathInput.tsx": () => import("./mathInput-Do6kAhnM.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-Dk9yGska.js"), "./renderers/mdash.tsx": () => import("./mdash-BJFCsNNC.js"), "./renderers/nbsp.tsx": () => import("./nbsp-B9325-Gc.js"), "./renderers/ndash.tsx": () => import("./ndash-B2df5nIG.js"), "./renderers/number.tsx": () => import("./number-DjhKxqNt.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-BSvivjnx.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-PDaj8an3.js"), "./renderers/p.tsx": () => import("./p-dxu1bQfB.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-Ce-gIGnb.js"), "./renderers/pegboard.tsx": () => import("./pegboard-Ctf3Za3n.js"), "./renderers/point.tsx": () => import("./point-B_FM2eEi.js"), "./renderers/polygon.tsx": () => import("./polygon-CSxHL_tF.js"), "./renderers/polyline.tsx": () => import("./polyline-DW7rB9Q4.js"), "./renderers/pre.tsx": () => import("./pre-BgTf9L_1.js"), "./renderers/prefigure.tsx": () => import("./prefigure-C5snxl4O.js"), "./renderers/pretzel.tsx": () => import("./pretzel-C3L-MNrj.js"), "./renderers/q.tsx": () => import("./q-DmVtlPVd.js"), "./renderers/ray.tsx": () => import("./ray-C0dTG3fu.js"), "./renderers/ref.tsx": () => import("./ref-CSI25f1d.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-M1aZCAh_.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-BrdeHWZ1.js"), "./renderers/row.tsx": () => import("./row-Cme62ZUT.js"), "./renderers/rq.tsx": () => import("./rq-l2YVdxg8.js"), "./renderers/rsq.tsx": () => import("./rsq-CUv-1slA.js"), "./renderers/section.tsx": () => import("./section-BZi63FfU.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-DckexN5b.js"), "./renderers/slider.tsx": () => import("./slider-CiY5ndOW.js"), "./renderers/solution.tsx": () => import("./solution-DbjNYfX2.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-BT75LlVE.js"), "./renderers/sq.tsx": () => import("./sq-txtyc2FV.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-B7MKFCIn.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-MVmSE86t.js"), "./renderers/table.tsx": () => import("./table-CNuvOYw8.js"), "./renderers/tabular.tsx": () => import("./tabular-CWsgPtBE.js"), "./renderers/tag.tsx": () => import("./tag-DG3ZBcyS.js"), "./renderers/text.tsx": () => import("./text-BYvGY30m.js"), "./renderers/textInput.tsx": () => import("./textInput-Bw1QoXBR.js"), "./renderers/vector.tsx": () => import("./vector-C-WWCq6y.js"), "./renderers/video.tsx": () => import("./video-bjQrfsvF.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,5 +1,5 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./doenetml-
|
|
2
|
-
import { F as FontAwesomeIcon } from "./index.es-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-CVtfzUck.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-D15M8_qe.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,9 +1,9 @@
|
|
|
1
|
-
import { k as DocContext, j as jsxRuntimeExports, t as textRendererStyle,
|
|
1
|
+
import { k as DocContext, j as jsxRuntimeExports, t as textRendererStyle, l as DynamicMath } from "./doenetml-CVtfzUck.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 { 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-DXTUSosW.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BF76vylQ.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-DI6rClAs.js";
|
|
6
|
+
import { ChoiceInputInlineContext } from "./choiceInput-BFXDUvNz.js";
|
|
7
7
|
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-WXpVD4ud.js";
|
|
8
8
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
9
9
|
import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
|
|
@@ -401,7 +401,7 @@ const vector = React__default.memo(function Vector(props) {
|
|
|
401
401
|
}
|
|
402
402
|
const mathJaxify = "\\(" + SVs.latex + "\\)";
|
|
403
403
|
const style = !choiceInputInlineContext.inOption ? textRendererStyle(darkMode ?? "light", SVs.selectedStyle) : void 0;
|
|
404
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style, id, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
404
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style, id, children: /* @__PURE__ */ jsxRuntimeExports.jsx(DynamicMath, { latex: mathJaxify }) });
|
|
405
405
|
});
|
|
406
406
|
export {
|
|
407
407
|
vector as default
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-CVtfzUck.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-BF76vylQ.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-Dtbg0fpJ.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-CrVGag52.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;
|