@doenet/doenetml 0.7.21-dev.372 → 0.7.21-dev.373
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-D5ee50zH.js → AnswerResponseButton-Bx_pmtED.js} +2 -2
- package/{Description-Rq2UNenW.js → Description-C40lHkEm.js} +1 -1
- package/{GraphFrame-DLoz_Q8L.js → GraphFrame-BubV5KFL.js} +2 -2
- package/{JSXGraphRenderer-BrridrYF.js → JSXGraphRenderer-DDz2dWAG.js} +1 -1
- package/{NonInlineMediaWrapper-bX2TgoKy.js → NonInlineMediaWrapper-BBrFQo-F.js} +1 -1
- package/{_error-CBFI2-GK.js → _error-Be1zcLnn.js} +2 -2
- package/{alert-CO8TvJcf.js → alert-B1CkOIBb.js} +3 -3
- package/{angle-BF6G8los.js → angle-08lA4A5g.js} +6 -6
- package/{answer-DmFiyFDW.js → answer-BuszDHYy.js} +5 -5
- package/{asList-CdEVX37G.js → asList-Drds1qwx.js} +2 -2
- package/{blockQuote-dRq8OcTt.js → blockQuote-B0VckVEn.js} +3 -3
- package/{boolean-CYGJuCS2.js → boolean-gri9rvjc.js} +2 -2
- package/{booleanInput-D2hMsCan.js → booleanInput-CmZAgwk7.js} +6 -6
- package/{br-BNEzsym7.js → br-CkqtgZRZ.js} +2 -2
- package/{button-CSczJSHd.js → button-CLrmCNwq.js} +4 -4
- package/{c-BER5YAjI.js → c-Cjue-HzS.js} +3 -3
- package/{cell-H2fY69Ov.js → cell-BhKRjSuf.js} +3 -3
- package/{choiceInput-Cfbkje8K.js → choiceInput-LVx3S265.js} +4 -4
- package/{circle-Cne7hYgA.js → circle-BU7i3c3Q.js} +6 -6
- package/{cobwebPolyline-Dj36dMqT.js → cobwebPolyline-1lFRb7ff.js} +4 -4
- package/{codeEditor-D9yLc0Yh.js → codeEditor-CbtqlgY9.js} +2 -2
- package/{composites-KnHd88-o.js → composites-BX-zJ7oI.js} +1 -1
- package/{containerBlock-c-GqKl7j.js → containerBlock-Ch8-0xh4.js} +4 -4
- package/{containerInline-DH8NmAeL.js → containerInline-BGjwKcTp.js} +4 -4
- package/{curve-CgkMc3db.js → curve-Bk_wgdKb.js} +4 -4
- package/{doenetml-yEJ180AD.js → doenetml-C6lzW_N6.js} +4 -4
- package/doenetml-external-worker.js +2 -2
- package/doenetml-inline-worker.js +2 -2
- package/{ellipsis-BZAsjtZb.js → ellipsis-BCj_Tv0C.js} +2 -2
- package/{em-Cvn0_L9X.js → em-CQUBPGW_.js} +3 -3
- package/{embed-MvBsp4rR.js → embed-CIeWSkRq.js} +2 -2
- package/{feedback-fdcX1mXq.js → feedback-CI5_w_89.js} +4 -4
- package/{figure-CsNSsmlA.js → figure-BFVZhRAh.js} +3 -3
- package/{fillPatterns-EUsccEGc.js → fillPatterns-D0hlKrC1.js} +1 -1
- package/{footnote-B0efmMw7.js → footnote-DXYW0IJR.js} +3 -3
- package/{fractionInput-wRtdI9L5.js → fractionInput-CJWurVZj.js} +4 -4
- package/{graph-2ZsD-FNv.js → graph-B4aWNgyt.js} +6 -6
- package/{hint-Cr1Mq5ot.js → hint-CF7tX2HK.js} +4 -4
- package/{hr-Sp4zoy4z.js → hr-C1p7oxOi.js} +2 -2
- package/{image-DoETWIlH.js → image-D39WicFH.js} +7 -7
- package/{index-BvB3BTXZ.js → index-CYi4oiLA.js} +1 -1
- package/{index.es-DyFnjIMq.js → index.es-DpvPAjnt.js} +1 -1
- package/index.js +1 -1
- package/{label-Cnn4JSYq.js → label-WOGQcnuZ.js} +6 -6
- package/{labelWithLatex-Br-d1iMm.js → labelWithLatex-CpQzOkBb.js} +1 -1
- package/{legend-DWu5Yt2F.js → legend-6Z3sJs55.js} +4 -4
- package/{line-NO78msNn.js → line-CwYzYnaU.js} +6 -6
- package/{lineFamilyDragHandlers-Bwuwxzza.js → lineFamilyDragHandlers-CnX-0bQP.js} +1 -1
- package/{lineSegment-DhY74Pxm.js → lineSegment-Cdzok_iu.js} +5 -5
- package/{list-DynRJC45.js → list-CF-N4kO3.js} +4 -4
- package/{lq-BHm_lEzN.js → lq-C1dSsqyt.js} +2 -2
- package/{lsq-BSDTQxJZ.js → lsq-C-I37V88.js} +2 -2
- package/{markupRenderer-kQKKLBI9.js → markupRenderer-C-E14VpI.js} +1 -1
- package/{math-C6K_Teyn.js → math-B3NAG-0Y.js} +6 -6
- package/{mathInput-BWDoZ3NC.js → mathInput-DpMCpZYY.js} +7 -7
- package/{matrixInput-D7NQaGdf.js → matrixInput-BX-WLkgG.js} +4 -4
- package/{mdash-CZK1hLPJ.js → mdash-A-KmtCYs.js} +2 -2
- package/{nbsp-iEPNi2hc.js → nbsp-BsRYJjDG.js} +2 -2
- package/{ndash-DLruuuoK.js → ndash-gPC4CJg9.js} +2 -2
- package/{number-6qMEcbXm.js → number-UMkpSQb6.js} +6 -6
- package/{orbitalDiagram-BRWkYH3l.js → orbitalDiagram-bgZ94jlA.js} +2 -2
- package/{orbitalDiagramInput-CwhilqBM.js → orbitalDiagramInput-B4L56PvZ.js} +2 -2
- package/{p-B06F5lX7.js → p-CwZg1dtc.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-gLMW09kM.js → paginatorControls-BLqFtxNc.js} +2 -2
- package/{pegboard-CzVa7RA-.js → pegboard-Bh9waVDU.js} +4 -4
- package/{point-Cu3Dxn5H.js → point-Csm9m1th.js} +6 -6
- package/{polygon-BwiNg396.js → polygon-BJQ5s0DO.js} +6 -6
- package/{polyline-Cce-xHz1.js → polyline-CX4jaPrm.js} +5 -5
- package/{pre-CJh4VnMa.js → pre-D9-M4Zre.js} +3 -3
- package/{prefigure-idU6iBHJ.js → prefigure-lrDMloOF.js} +1 -1
- package/{pretzel-CQQN7Uof.js → pretzel-B3KBWcRz.js} +4 -4
- package/{q-DwYK7r__.js → q-CA8zkquQ.js} +3 -3
- package/{ray-Dgk48wx9.js → ray-B1WairYd.js} +5 -5
- package/{ref-C-K4WfOJ.js → ref-BR1Uaba8.js} +2 -2
- package/{regionBetweenCurveXAxis-B1gLKb__.js → regionBetweenCurveXAxis-DQjEVmNu.js} +5 -5
- package/{regionBetweenCurves-BCJQpKuV.js → regionBetweenCurves-7Hvu9zK-.js} +5 -5
- package/{row-BE4f11UQ.js → row-BUHUI3Nd.js} +2 -2
- package/{rq-Om_EOrWa.js → rq-C2nL9mR3.js} +2 -2
- package/{rsq-CHsiRt2b.js → rsq-9J1A4Tug.js} +2 -2
- package/{section-DYu0MzE6.js → section-BhPMQaNG.js} +5 -5
- package/{sha256-1m3pbIuR-q4ETiD-4.js → sha256-1m3pbIuR-2FjlCxR0.js} +1 -1
- package/{sideBySide-BH0NMITg.js → sideBySide-PniRQ9ar.js} +2 -2
- package/{slider-BIz0R3JP.js → slider-B0_S2OLx.js} +3 -3
- package/{solution-B2FY4WI5.js → solution-Dow9sSpK.js} +4 -4
- package/{spreadsheet-ChYGBYxF.js → spreadsheet-qXMO44Q5.js} +2 -2
- package/{sq-bh63Lusy.js → sq-Y6N8kFr3.js} +3 -3
- package/{subsetOfRealsInput-Vt0jiinp.js → subsetOfRealsInput-aVN94gyW.js} +2 -2
- package/{summaryStatistics-hAC3leWO.js → summaryStatistics-Bb91I5Hv.js} +2 -2
- package/{table--XqO1p9l.js → table-Cse0oxGU.js} +2 -2
- package/{tabular-B3GZJ4s0.js → tabular-Rk_x3lNf.js} +2 -2
- package/{tag-Df2QOohq.js → tag-Dhk05XYR.js} +2 -2
- package/{text-C7QIWSxv.js → text-CvIu8-7u.js} +6 -6
- package/{textInput-OLha8plF.js → textInput-CdshmeDA.js} +6 -6
- package/{tooltip-provider-BUZnCbcC.js → tooltip-provider-Fk5iCVtx.js} +1 -1
- package/{useAnchoredGraphDragHandler-Do148Ehl.js → useAnchoredGraphDragHandler-Bk_6PHuI.js} +1 -1
- package/useDoenetRenderer-wysnDYjI.js +114 -0
- package/{useSubmitActionWithDelay-Dso7gJkS.js → useSubmitActionWithDelay-1PGAfoL5.js} +2 -2
- package/{vector-M_M06klb.js → vector-B4Jsjdif.js} +6 -6
- package/{video-EQDVHFpm.js → video-CQa5bfGa.js} +4 -4
- package/useDoenetRenderer-B_uCZkql.js +0 -114
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as useT, q as useRecordVisibilityChanges, o as DocContext, n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, q as useRecordVisibilityChanges, o as DocContext, n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.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-wysnDYjI.js";
|
|
4
|
+
import { A as AnswerResponseButton } from "./AnswerResponseButton-Bx_pmtED.js";
|
|
5
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-1PGAfoL5.js";
|
|
6
6
|
const pretzel = React__default.memo(function Pretzel(props) {
|
|
7
7
|
let {
|
|
8
8
|
componentIdx,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.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-wysnDYjI.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-C-E14VpI.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 { o as DocContext, n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { o as DocContext, n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.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-DDz2dWAG.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-wysnDYjI.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-B4aWNgyt.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-CnX-0bQP.js";
|
|
7
7
|
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-C7PtyKL7.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 { o as DocContext, n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { o as DocContext, n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-wysnDYjI.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 { o as DocContext, x as createFunctionFromDefinition, n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { o as DocContext, x as createFunctionFromDefinition, n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.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-DDz2dWAG.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-wysnDYjI.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-B4aWNgyt.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-D0hlKrC1.js";
|
|
7
7
|
import { b as resolveCanvasColor } from "./styleColors-Cknqcr0q.js";
|
|
8
8
|
const regionBetweenCurveXAxis = React__default.memo(function RegionBetweenCurveXAxis(props) {
|
|
9
9
|
let { id, SVs } = useDoenetRenderer(props);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { o as DocContext, x as createFunctionFromDefinition, n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { o as DocContext, x as createFunctionFromDefinition, n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.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-wysnDYjI.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-B4aWNgyt.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-D0hlKrC1.js";
|
|
7
7
|
import { b as resolveCanvasColor } from "./styleColors-Cknqcr0q.js";
|
|
8
|
-
import { b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-
|
|
8
|
+
import { b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-DDz2dWAG.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 { n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-wysnDYjI.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 { n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-wysnDYjI.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 { n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-wysnDYjI.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, o as DocContext, w as cesc, q as useRecordVisibilityChanges, n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, o as DocContext, w as cesc, q as useRecordVisibilityChanges, n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.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-DpvPAjnt.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-wysnDYjI.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-BX-zJ7oI.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-1PGAfoL5.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 { q as useRecordVisibilityChanges, n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as useRecordVisibilityChanges, n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-wysnDYjI.js";
|
|
4
4
|
import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
5
5
|
function isWhitespaceTextChild(child) {
|
|
6
6
|
return typeof child === "string" && child.trim() === "";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as useT, n as jsxRuntimeExports, H as ActionButtonGroup, I as ActionButton, v as Context } from "./doenetml-
|
|
1
|
+
import { u as useT, n as jsxRuntimeExports, H as ActionButtonGroup, I as ActionButton, v as Context } from "./doenetml-C6lzW_N6.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-wysnDYjI.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-CpQzOkBb.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 useT, q as useRecordVisibilityChanges, n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, q as useRecordVisibilityChanges, n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.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-wysnDYjI.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-DpvPAjnt.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-BX-zJ7oI.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 { o as DocContext, q as useRecordVisibilityChanges, n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { o as DocContext, q as useRecordVisibilityChanges, n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.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-wysnDYjI.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 { n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.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-wysnDYjI.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-C-E14VpI.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, q as useRecordVisibilityChanges, n as jsxRuntimeExports, J as ToggleButtonGroup, T as ToggleButton, H as ActionButtonGroup, I as ActionButton } from "./doenetml-
|
|
1
|
+
import { u as useT, q as useRecordVisibilityChanges, n as jsxRuntimeExports, J as ToggleButtonGroup, T as ToggleButton, H as ActionButtonGroup, I as ActionButton } from "./doenetml-C6lzW_N6.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-wysnDYjI.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 useT, q as useRecordVisibilityChanges, n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, q as useRecordVisibilityChanges, n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-wysnDYjI.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 { q as useRecordVisibilityChanges, n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as useRecordVisibilityChanges, n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-wysnDYjI.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 { q as useRecordVisibilityChanges, n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as useRecordVisibilityChanges, n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-wysnDYjI.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 { n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-wysnDYjI.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 { o as DocContext, v as Context, n as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-
|
|
1
|
+
import { o as DocContext, v as Context, n as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-C6lzW_N6.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-DDz2dWAG.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-B4aWNgyt.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-wysnDYjI.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-LVx3S265.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-Bk_6PHuI.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 { u as useT, v as Context, n as jsxRuntimeExports, M as MathJax } from "./doenetml-
|
|
1
|
+
import { u as useT, v as Context, n as jsxRuntimeExports, M as MathJax } from "./doenetml-C6lzW_N6.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-DDz2dWAG.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-wysnDYjI.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-B4aWNgyt.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-1PGAfoL5.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-C40lHkEm.js";
|
|
10
10
|
import { a as addValidationStateToShortDescription } from "./validationState-DI_lxk1a.js";
|
|
11
11
|
function TextInput(props) {
|
|
12
12
|
let { id, SVs, children, actions, ignoreUpdate, callAction } = useDoenetRenderer(props);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a3 as createStoreContext, a4 as HovercardScopedContextProvider, a5 as HovercardContextProvider, a6 as createDialogComponent, N as forwardRef, O as createElement, P as createHook, R as invariant, a7 as useWrapElement, n as jsxRuntimeExports, S as useStoreState, a8 as useHovercard, a9 as isFalsyBooleanCallback, aa as contains, ab as sync, ac as chain, ad as useEvent, ae as useHovercardAnchor, af as createStore, ag as createHovercardStore, ah as defaultValue, ai as useStore, aj as useStoreProps, ak as useHovercardStoreProps } from "./doenetml-
|
|
1
|
+
import { a3 as createStoreContext, a4 as HovercardScopedContextProvider, a5 as HovercardContextProvider, a6 as createDialogComponent, N as forwardRef, O as createElement, P as createHook, R as invariant, a7 as useWrapElement, n as jsxRuntimeExports, S as useStoreState, a8 as useHovercard, a9 as isFalsyBooleanCallback, aa as contains, ab as sync, ac as chain, ad as useEvent, ae as useHovercardAnchor, af as createStore, ag as createHovercardStore, ah as defaultValue, ai as useStore, aj as useStoreProps, ak as useHovercardStoreProps } from "./doenetml-C6lzW_N6.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-DDz2dWAG.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 { z as useAppSelector, A as mainSlice, E as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-C6lzW_N6.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-BubV5KFL.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-DDz2dWAG.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-Be1zcLnn.js"), "./renderers/alert.tsx": () => import("./alert-B1CkOIBb.js"), "./renderers/angle.tsx": () => import("./angle-08lA4A5g.js"), "./renderers/answer.tsx": () => import("./answer-BuszDHYy.js"), "./renderers/asList.tsx": () => import("./asList-Drds1qwx.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-B0VckVEn.js"), "./renderers/boolean.tsx": () => import("./boolean-gri9rvjc.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-CmZAgwk7.js"), "./renderers/br.tsx": () => import("./br-CkqtgZRZ.js"), "./renderers/button.tsx": () => import("./button-CLrmCNwq.js"), "./renderers/c.tsx": () => import("./c-Cjue-HzS.js"), "./renderers/cell.tsx": () => import("./cell-BhKRjSuf.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-LVx3S265.js"), "./renderers/circle.tsx": () => import("./circle-BU7i3c3Q.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-1lFRb7ff.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-CbtqlgY9.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-Ch8-0xh4.js"), "./renderers/containerInline.tsx": () => import("./containerInline-BGjwKcTp.js"), "./renderers/curve.tsx": () => import("./curve-Bk_wgdKb.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-BCj_Tv0C.js"), "./renderers/em.tsx": () => import("./em-CQUBPGW_.js"), "./renderers/embed.tsx": () => import("./embed-CIeWSkRq.js"), "./renderers/feedback.tsx": () => import("./feedback-CI5_w_89.js"), "./renderers/figure.tsx": () => import("./figure-BFVZhRAh.js"), "./renderers/footnote.tsx": () => import("./footnote-DXYW0IJR.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-CJWurVZj.js"), "./renderers/graph.tsx": () => import("./graph-B4aWNgyt.js"), "./renderers/hint.tsx": () => import("./hint-CF7tX2HK.js"), "./renderers/hr.tsx": () => import("./hr-C1p7oxOi.js"), "./renderers/image.tsx": () => import("./image-D39WicFH.js"), "./renderers/label.tsx": () => import("./label-WOGQcnuZ.js"), "./renderers/legend.tsx": () => import("./legend-6Z3sJs55.js"), "./renderers/line.tsx": () => import("./line-CwYzYnaU.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-Cdzok_iu.js"), "./renderers/list.tsx": () => import("./list-CF-N4kO3.js"), "./renderers/lq.tsx": () => import("./lq-C1dSsqyt.js"), "./renderers/lsq.tsx": () => import("./lsq-C-I37V88.js"), "./renderers/math.tsx": () => import("./math-B3NAG-0Y.js"), "./renderers/mathInput.tsx": () => import("./mathInput-DpMCpZYY.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-BX-WLkgG.js"), "./renderers/mdash.tsx": () => import("./mdash-A-KmtCYs.js"), "./renderers/nbsp.tsx": () => import("./nbsp-BsRYJjDG.js"), "./renderers/ndash.tsx": () => import("./ndash-gPC4CJg9.js"), "./renderers/number.tsx": () => import("./number-UMkpSQb6.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-bgZ94jlA.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-B4L56PvZ.js"), "./renderers/p.tsx": () => import("./p-CwZg1dtc.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-BLqFtxNc.js"), "./renderers/pegboard.tsx": () => import("./pegboard-Bh9waVDU.js"), "./renderers/point.tsx": () => import("./point-Csm9m1th.js"), "./renderers/polygon.tsx": () => import("./polygon-BJQ5s0DO.js"), "./renderers/polyline.tsx": () => import("./polyline-CX4jaPrm.js"), "./renderers/pre.tsx": () => import("./pre-D9-M4Zre.js"), "./renderers/prefigure.tsx": () => import("./prefigure-lrDMloOF.js"), "./renderers/pretzel.tsx": () => import("./pretzel-B3KBWcRz.js"), "./renderers/q.tsx": () => import("./q-CA8zkquQ.js"), "./renderers/ray.tsx": () => import("./ray-B1WairYd.js"), "./renderers/ref.tsx": () => import("./ref-BR1Uaba8.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-DQjEVmNu.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-7Hvu9zK-.js"), "./renderers/row.tsx": () => import("./row-BUHUI3Nd.js"), "./renderers/rq.tsx": () => import("./rq-C2nL9mR3.js"), "./renderers/rsq.tsx": () => import("./rsq-9J1A4Tug.js"), "./renderers/section.tsx": () => import("./section-BhPMQaNG.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-PniRQ9ar.js"), "./renderers/slider.tsx": () => import("./slider-B0_S2OLx.js"), "./renderers/solution.tsx": () => import("./solution-Dow9sSpK.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-qXMO44Q5.js"), "./renderers/sq.tsx": () => import("./sq-Y6N8kFr3.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-aVN94gyW.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-Bb91I5Hv.js"), "./renderers/table.tsx": () => import("./table-Cse0oxGU.js"), "./renderers/tabular.tsx": () => import("./tabular-Rk_x3lNf.js"), "./renderers/tag.tsx": () => import("./tag-Dhk05XYR.js"), "./renderers/text.tsx": () => import("./text-CvIu8-7u.js"), "./renderers/textInput.tsx": () => import("./textInput-CdshmeDA.js"), "./renderers/vector.tsx": () => import("./vector-B4Jsjdif.js"), "./renderers/video.tsx": () => import("./video-CQa5bfGa.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 { n as jsxRuntimeExports } from "./doenetml-
|
|
2
|
-
import { F as FontAwesomeIcon } from "./index.es-
|
|
1
|
+
import { n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-DpvPAjnt.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,10 +1,10 @@
|
|
|
1
|
-
import { o as DocContext, n as jsxRuntimeExports, t as textRendererStyle, p as DynamicMath } from "./doenetml-
|
|
1
|
+
import { o as DocContext, n as jsxRuntimeExports, t as textRendererStyle, p as DynamicMath } from "./doenetml-C6lzW_N6.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-DDz2dWAG.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-wysnDYjI.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-B4aWNgyt.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-CnX-0bQP.js";
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-LVx3S265.js";
|
|
8
8
|
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-C7PtyKL7.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,10 +1,10 @@
|
|
|
1
|
-
import { q as useRecordVisibilityChanges, n as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as useRecordVisibilityChanges, n as jsxRuntimeExports } from "./doenetml-C6lzW_N6.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-wysnDYjI.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-C40lHkEm.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-BBrFQo-F.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;
|