@doenet/doenetml 0.7.23-dev.450 → 0.7.23-dev.451
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-Cph00AG0.js → AnswerResponseButton-CCbBdVkg.js} +2 -2
- package/{Description-BpRcV5tu.js → Description-Dz-pguUD.js} +1 -1
- package/{GraphFrame-Cf92Aydv.js → GraphFrame-C_2gGi6e.js} +2 -2
- package/{JSXGraphRenderer-Be4O0jXl.js → JSXGraphRenderer-CkbsvJad.js} +89 -10
- package/{NonInlineMediaWrapper-Crv97EpA.js → NonInlineMediaWrapper-BruMwMVr.js} +1 -1
- package/Viewer/renderers/utils/jsxgraph.d.ts +19 -0
- package/Viewer/renderers/utils/jsxgraph.d.ts.map +1 -1
- package/Viewer/renderers/utils/jsxgraph.test.d.ts +2 -0
- package/Viewer/renderers/utils/jsxgraph.test.d.ts.map +1 -0
- package/Viewer/renderers/utils/useAxisTickSpacingSync.d.ts +61 -0
- package/Viewer/renderers/utils/useAxisTickSpacingSync.d.ts.map +1 -0
- package/Viewer/renderers/utils/useAxisTickSpacingSync.test.d.ts +2 -0
- package/Viewer/renderers/utils/useAxisTickSpacingSync.test.d.ts.map +1 -0
- package/Viewer/renderers/utils/useGridAndAxesSync.d.ts.map +1 -1
- package/Viewer/renderers/utils/useJSXGraphBoardSync.d.ts.map +1 -1
- package/{_error-Cx_ydOfr.js → _error-Ca8BLX8t.js} +2 -2
- package/{alert-DdpZwB6C.js → alert-DuY_6CR3.js} +3 -3
- package/{angle-CBpbjtbx.js → angle-C5T49Vfs.js} +6 -6
- package/{answer-CcGotD9H.js → answer-Do1gSSkp.js} +5 -5
- package/{asList-DZjfVjoO.js → asList-DhZoDwtC.js} +2 -2
- package/{blockQuote-D0U8djcr.js → blockQuote-CO8hdhtn.js} +3 -3
- package/{boolean-DkxqF1kd.js → boolean-CP5vglVX.js} +2 -2
- package/{booleanInput-Cq4cpLp_.js → booleanInput-D5YPYG_v.js} +6 -6
- package/{br-CFA8hbBl.js → br-DRISZ42Q.js} +2 -2
- package/{button-rfr0JuFI.js → button-FSXFT9cy.js} +4 -4
- package/{c-B9g2V0Yu.js → c-C2RTlcO9.js} +3 -3
- package/{cell-r-oJj708.js → cell-CIJqLPXL.js} +3 -3
- package/{choiceInput-8Sry2FbM.js → choiceInput-BojtViZr.js} +4 -4
- package/{circle-Dhv_lTmg.js → circle-CwaqaL1x.js} +6 -6
- package/{cobwebPolyline-DFLwgBtx.js → cobwebPolyline-BoapHkAJ.js} +4 -4
- package/{codeEditor-Ch4VHY4i.js → codeEditor-CQZQ_Sgl.js} +2 -2
- package/{composites-DraQjwPe.js → composites-BQzt_CzT.js} +1 -1
- package/{containerBlock-CPWCW_94.js → containerBlock-BVffhoVg.js} +4 -4
- package/{containerInline-_KQ0K-s6.js → containerInline-DhwbC1uc.js} +4 -4
- package/{curve-DGxIPSfZ.js → curve-DqAITSLl.js} +4 -4
- package/{doenetml-CUm6IUzm.js → doenetml-DfKVXzta.js} +5 -5
- package/doenetml-external-worker.js +2 -2
- package/doenetml-inline-worker.js +2 -2
- package/{ellipsis-C_aUokDB.js → ellipsis-BiZ8TBWX.js} +2 -2
- package/{em-Ba8DSfai.js → em-CQ_fuVKv.js} +3 -3
- package/{embed-CtouYDLF.js → embed-DxwByfQW.js} +2 -2
- package/{feedback-Cy_MrGug.js → feedback-BWiOiBVR.js} +4 -4
- package/{figure-DUjojzUU.js → figure-DpvuPyBU.js} +3 -3
- package/{fillPatterns-DBDTrIe_.js → fillPatterns-C08iiJmh.js} +1 -1
- package/{footnote-mz_cG4wG.js → footnote-ZWibHgkE.js} +3 -3
- package/{fractionInput-C4ARfsbW.js → fractionInput-jX820zm9.js} +4 -4
- package/{graph-DFgEgpwC.js → graph-C-TERXvy.js} +6 -6
- package/{hint-XT5zPZeF.js → hint-DQwYThlJ.js} +4 -4
- package/{hr-DyIqKEw5.js → hr-PWuCBmCz.js} +2 -2
- package/{image-DqvBmLUi.js → image-CVTHh9pV.js} +7 -7
- package/{index-DtwVk5f5.js → index-BRQr-ipf.js} +1 -1
- package/{index.es-Ddu2jiAV.js → index.es-sJCqa4Zq.js} +1 -1
- package/index.js +1 -1
- package/{label-CKtYuJBu.js → label-CGY8FwRu.js} +6 -6
- package/{labelWithLatex-GkEQHrr8.js → labelWithLatex-Dvb8ltM1.js} +1 -1
- package/{legend-KKLdXc18.js → legend-X13WivZ9.js} +4 -4
- package/{line-DuVRdRko.js → line-a4jiFgwR.js} +6 -6
- package/{lineFamilyDragHandlers-BoVYoosP.js → lineFamilyDragHandlers-B73ZzprP.js} +1 -1
- package/{lineSegment-DcADqk66.js → lineSegment-CpwqZvZk.js} +5 -5
- package/{list-1mlLdx9N.js → list-C-W1Iulr.js} +4 -4
- package/{lq-OSybTqNg.js → lq-MPRG_Yo5.js} +2 -2
- package/{lsq-dCd8Trrl.js → lsq-Daqx4Tl6.js} +2 -2
- package/{markupRenderer-Bcns5FNE.js → markupRenderer-TBdfwPFV.js} +1 -1
- package/{math-DfqgrdRb.js → math-Dm0ysPB2.js} +6 -6
- package/{mathInput-C3sbrFt8.js → mathInput-BqwdT8-r.js} +7 -7
- package/{matrixInput-BTKSnAiF.js → matrixInput-CSQLR4ND.js} +4 -4
- package/{mdash-CUAViCQ0.js → mdash-WMZ0mV1N.js} +2 -2
- package/{nbsp-BGYI5i1m.js → nbsp-3DH_QApw.js} +2 -2
- package/{ndash-Cqv9ehfy.js → ndash-B43BUrjI.js} +2 -2
- package/{number-jd94ZLX6.js → number-D_e9pu8f.js} +6 -6
- package/{orbitalDiagram-TBAo7Vi9.js → orbitalDiagram-CMKvEBPD.js} +2 -2
- package/{orbitalDiagramInput-DD7kYxTW.js → orbitalDiagramInput-BgAN0VY8.js} +2 -2
- package/{p-DBEJ3Qvy.js → p-DZOx2mxJ.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls--xVizPeB.js → paginatorControls-C3162vBQ.js} +2 -2
- package/{pegboard-CKu1TAy_.js → pegboard-DnhRDSXo.js} +4 -4
- package/{point-FO3RFHsW.js → point-B135KTU_.js} +6 -6
- package/{polygon-CQiUapif.js → polygon-BalEyYfw.js} +6 -6
- package/{polyline-CAbZ9ihf.js → polyline-DIWcbPeB.js} +5 -5
- package/{pre-C9hZ-QIl.js → pre-DOZp6Lj5.js} +3 -3
- package/{prefigure-BhvfsOYZ.js → prefigure-zvKU0-kA.js} +1 -1
- package/{pretzel-BYHIxSn7.js → pretzel-BzI1mLo1.js} +4 -4
- package/{q-CyuKQKgf.js → q-DUQQ2PBw.js} +3 -3
- package/{ray-drKUacYv.js → ray-CqD7d0Tt.js} +5 -5
- package/{ref-KJ53A7GJ.js → ref-AaQiek3d.js} +2 -2
- package/{regionBetweenCurveXAxis-BowSDY6Z.js → regionBetweenCurveXAxis-DHAtUwSA.js} +5 -5
- package/{regionBetweenCurves-UJFQG207.js → regionBetweenCurves-BoqvAVQZ.js} +5 -5
- package/{row-BlePzlsQ.js → row-CMp_0Qob.js} +2 -2
- package/{rq-UXz16vGj.js → rq-CVHDxjJi.js} +2 -2
- package/{rsq-BM-WEUWo.js → rsq-BBzsr7QW.js} +2 -2
- package/{section-DGIHLabq.js → section-DlAAVdfW.js} +5 -5
- package/{sha256-Bzrm4-tO-BkMpEDiR.js → sha256-Bzrm4-tO-EuFegTkb.js} +1 -1
- package/{sideBySide-D9v3iL1V.js → sideBySide-CrJ3xbEE.js} +2 -2
- package/{slider-1_-urUOh.js → slider-De0jRM7b.js} +3 -3
- package/{solution-CaGRbZT5.js → solution-BCdd20VE.js} +4 -4
- package/{spreadsheet-BBK2-loz.js → spreadsheet--zG29OnG.js} +2 -2
- package/{sq-DqUyf5zS.js → sq-IV2d3Zw7.js} +3 -3
- package/{subsetOfRealsInput-CXPTLOS6.js → subsetOfRealsInput-D9x0ueAK.js} +2 -2
- package/{summaryStatistics-8EGV_cyB.js → summaryStatistics-XOvVD1W8.js} +2 -2
- package/{table-30cJIqGS.js → table-BKLHL7WQ.js} +2 -2
- package/{tabular-CLq5Lmul.js → tabular-eMSfqXy6.js} +2 -2
- package/{tag-DwDrcAeC.js → tag-DsnPFaqa.js} +2 -2
- package/{text-DTZEKhwR.js → text-CUQqfQz8.js} +6 -6
- package/{textInput-BUG5LEjB.js → textInput-DfTseZjR.js} +6 -6
- package/{tooltip-provider-DuYKkU8V.js → tooltip-provider-BG8BmSJk.js} +1 -1
- package/{useAnchoredGraphDragHandler-DKfS6U5X.js → useAnchoredGraphDragHandler-ejfg06ek.js} +1 -1
- package/useDoenetRenderer-CDyY-0g2.js +114 -0
- package/{useSubmitActionWithDelay-DT1EkLC9.js → useSubmitActionWithDelay-BvBipxs5.js} +2 -2
- package/{vector-DhaKh7go.js → vector-Ccfea2hU.js} +6 -6
- package/{video-CUg5xl8P.js → video-DjQsMdGC.js} +4 -4
- package/useDoenetRenderer-DTALOTXR.js +0 -114
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as useT, F as useContentT, t as useChromeLangDir, G as useRecordVisibilityChanges, z as DocContext, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, F as useContentT, t as useChromeLangDir, G as useRecordVisibilityChanges, z as DocContext, p as jsxRuntimeExports } from "./doenetml-DfKVXzta.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-CDyY-0g2.js";
|
|
4
|
+
import { A as AnswerResponseButton } from "./AnswerResponseButton-CCbBdVkg.js";
|
|
5
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-BvBipxs5.js";
|
|
6
6
|
const pretzel = React__default.memo(function Pretzel(props) {
|
|
7
7
|
let {
|
|
8
8
|
componentIdx,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { p as jsxRuntimeExports } from "./doenetml-DfKVXzta.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-CDyY-0g2.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-TBdfwPFV.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 { z as DocContext, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { z as DocContext, p as jsxRuntimeExports } from "./doenetml-DfKVXzta.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-CkbsvJad.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CDyY-0g2.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-C-TERXvy.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-B73ZzprP.js";
|
|
7
7
|
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-0RNcbd2S.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 { z as DocContext, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { z as DocContext, p as jsxRuntimeExports } from "./doenetml-DfKVXzta.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CDyY-0g2.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 { z as DocContext, K as createFunctionFromDefinition, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { z as DocContext, K as createFunctionFromDefinition, p as jsxRuntimeExports } from "./doenetml-DfKVXzta.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-CkbsvJad.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CDyY-0g2.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-C-TERXvy.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-C08iiJmh.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 { z as DocContext, K as createFunctionFromDefinition, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { z as DocContext, K as createFunctionFromDefinition, p as jsxRuntimeExports } from "./doenetml-DfKVXzta.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-CDyY-0g2.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-C-TERXvy.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-C08iiJmh.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-CkbsvJad.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 { p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { p as jsxRuntimeExports } from "./doenetml-DfKVXzta.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CDyY-0g2.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 { p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { p as jsxRuntimeExports } from "./doenetml-DfKVXzta.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CDyY-0g2.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 { p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { p as jsxRuntimeExports } from "./doenetml-DfKVXzta.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CDyY-0g2.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, F as useContentT, N as directionOf, O as useDocumentDirection, P as chromeLangDir, q as useUiLocale, z as DocContext, I as cesc, G as useRecordVisibilityChanges, p as jsxRuntimeExports, Q as DocumentDirectionProvider } from "./doenetml-
|
|
1
|
+
import { u as useT, F as useContentT, N as directionOf, O as useDocumentDirection, P as chromeLangDir, q as useUiLocale, z as DocContext, I as cesc, G as useRecordVisibilityChanges, p as jsxRuntimeExports, Q as DocumentDirectionProvider } from "./doenetml-DfKVXzta.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-sJCqa4Zq.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-CDyY-0g2.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-BQzt_CzT.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-BvBipxs5.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 { G as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { G as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-DfKVXzta.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CDyY-0g2.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, p as jsxRuntimeExports, R as ActionButtonGroup, S as ActionButton, H as Context } from "./doenetml-
|
|
1
|
+
import { u as useT, p as jsxRuntimeExports, R as ActionButtonGroup, S as ActionButton, H as Context } from "./doenetml-DfKVXzta.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-CDyY-0g2.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-Dvb8ltM1.js";
|
|
6
6
|
import { l as ltrIslandProps } from "./direction-BwrU7jHk.js";
|
|
7
7
|
let round_to_decimals = (x, n) => {
|
|
8
8
|
try {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as useT, G as useRecordVisibilityChanges, t as useChromeLangDir, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, G as useRecordVisibilityChanges, t as useChromeLangDir, p as jsxRuntimeExports } from "./doenetml-DfKVXzta.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-CDyY-0g2.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-sJCqa4Zq.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-BQzt_CzT.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 { z as DocContext, G as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { z as DocContext, G as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-DfKVXzta.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-CDyY-0g2.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 { p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { p as jsxRuntimeExports } from "./doenetml-DfKVXzta.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-CDyY-0g2.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-TBdfwPFV.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, G as useRecordVisibilityChanges, p as jsxRuntimeExports, W as ToggleButtonGroup, U as ToggleButton, R as ActionButtonGroup, S as ActionButton } from "./doenetml-
|
|
1
|
+
import { u as useT, G as useRecordVisibilityChanges, p as jsxRuntimeExports, W as ToggleButtonGroup, U as ToggleButton, R as ActionButtonGroup, S as ActionButton } from "./doenetml-DfKVXzta.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CDyY-0g2.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, t as useChromeLangDir, G as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, t as useChromeLangDir, G as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-DfKVXzta.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CDyY-0g2.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 { G as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { G as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-DfKVXzta.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CDyY-0g2.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 { G as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { G as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-DfKVXzta.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CDyY-0g2.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 { p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { p as jsxRuntimeExports } from "./doenetml-DfKVXzta.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CDyY-0g2.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 { z as DocContext, H as Context, p as jsxRuntimeExports, A as textRendererStyle } from "./doenetml-
|
|
1
|
+
import { z as DocContext, H as Context, p as jsxRuntimeExports, A as textRendererStyle } from "./doenetml-DfKVXzta.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-CkbsvJad.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-C-TERXvy.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CDyY-0g2.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-BojtViZr.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-ejfg06ek.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 { F as useContentT, H as Context, p as jsxRuntimeExports, T as MathJax } from "./doenetml-
|
|
1
|
+
import { F as useContentT, H as Context, p as jsxRuntimeExports, T as MathJax } from "./doenetml-DfKVXzta.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-CkbsvJad.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CDyY-0g2.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-C-TERXvy.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-BvBipxs5.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-Dz-pguUD.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 { ae as createStoreContext, af as HovercardScopedContextProvider, ag as HovercardContextProvider, ah as createDialogComponent, Y as forwardRef, Z as createElement, $ as createHook, a1 as invariant, ai as useWrapElement, p as jsxRuntimeExports, a2 as useStoreState, aj as useHovercard, ak as isFalsyBooleanCallback, al as contains, am as sync, an as chain, ao as useEvent, ap as useHovercardAnchor, aq as createStore, ar as createHovercardStore, as as defaultValue, at as useStore, au as useStoreProps, av as useHovercardStoreProps } from "./doenetml-
|
|
1
|
+
import { ae as createStoreContext, af as HovercardScopedContextProvider, ag as HovercardContextProvider, ah as createDialogComponent, Y as forwardRef, Z as createElement, $ as createHook, a1 as invariant, ai as useWrapElement, p as jsxRuntimeExports, a2 as useStoreState, aj as useHovercard, ak as isFalsyBooleanCallback, al as contains, am as sync, an as chain, ao as useEvent, ap as useHovercardAnchor, aq as createStore, ar as createHovercardStore, as as defaultValue, at as useStore, au as useStoreProps, av as useHovercardStoreProps } from "./doenetml-DfKVXzta.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-CkbsvJad.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 { w as useAppSelector, x as mainSlice, y as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-DfKVXzta.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-C_2gGi6e.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-CkbsvJad.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-Ca8BLX8t.js"), "./renderers/alert.tsx": () => import("./alert-DuY_6CR3.js"), "./renderers/angle.tsx": () => import("./angle-C5T49Vfs.js"), "./renderers/answer.tsx": () => import("./answer-Do1gSSkp.js"), "./renderers/asList.tsx": () => import("./asList-DhZoDwtC.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-CO8hdhtn.js"), "./renderers/boolean.tsx": () => import("./boolean-CP5vglVX.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-D5YPYG_v.js"), "./renderers/br.tsx": () => import("./br-DRISZ42Q.js"), "./renderers/button.tsx": () => import("./button-FSXFT9cy.js"), "./renderers/c.tsx": () => import("./c-C2RTlcO9.js"), "./renderers/cell.tsx": () => import("./cell-CIJqLPXL.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-BojtViZr.js"), "./renderers/circle.tsx": () => import("./circle-CwaqaL1x.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-BoapHkAJ.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-CQZQ_Sgl.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-BVffhoVg.js"), "./renderers/containerInline.tsx": () => import("./containerInline-DhwbC1uc.js"), "./renderers/curve.tsx": () => import("./curve-DqAITSLl.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-BiZ8TBWX.js"), "./renderers/em.tsx": () => import("./em-CQ_fuVKv.js"), "./renderers/embed.tsx": () => import("./embed-DxwByfQW.js"), "./renderers/feedback.tsx": () => import("./feedback-BWiOiBVR.js"), "./renderers/figure.tsx": () => import("./figure-DpvuPyBU.js"), "./renderers/footnote.tsx": () => import("./footnote-ZWibHgkE.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-jX820zm9.js"), "./renderers/graph.tsx": () => import("./graph-C-TERXvy.js"), "./renderers/hint.tsx": () => import("./hint-DQwYThlJ.js"), "./renderers/hr.tsx": () => import("./hr-PWuCBmCz.js"), "./renderers/image.tsx": () => import("./image-CVTHh9pV.js"), "./renderers/label.tsx": () => import("./label-CGY8FwRu.js"), "./renderers/legend.tsx": () => import("./legend-X13WivZ9.js"), "./renderers/line.tsx": () => import("./line-a4jiFgwR.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-CpwqZvZk.js"), "./renderers/list.tsx": () => import("./list-C-W1Iulr.js"), "./renderers/lq.tsx": () => import("./lq-MPRG_Yo5.js"), "./renderers/lsq.tsx": () => import("./lsq-Daqx4Tl6.js"), "./renderers/math.tsx": () => import("./math-Dm0ysPB2.js"), "./renderers/mathInput.tsx": () => import("./mathInput-BqwdT8-r.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-CSQLR4ND.js"), "./renderers/mdash.tsx": () => import("./mdash-WMZ0mV1N.js"), "./renderers/nbsp.tsx": () => import("./nbsp-3DH_QApw.js"), "./renderers/ndash.tsx": () => import("./ndash-B43BUrjI.js"), "./renderers/number.tsx": () => import("./number-D_e9pu8f.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-CMKvEBPD.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-BgAN0VY8.js"), "./renderers/p.tsx": () => import("./p-DZOx2mxJ.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-C3162vBQ.js"), "./renderers/pegboard.tsx": () => import("./pegboard-DnhRDSXo.js"), "./renderers/point.tsx": () => import("./point-B135KTU_.js"), "./renderers/polygon.tsx": () => import("./polygon-BalEyYfw.js"), "./renderers/polyline.tsx": () => import("./polyline-DIWcbPeB.js"), "./renderers/pre.tsx": () => import("./pre-DOZp6Lj5.js"), "./renderers/prefigure.tsx": () => import("./prefigure-zvKU0-kA.js"), "./renderers/pretzel.tsx": () => import("./pretzel-BzI1mLo1.js"), "./renderers/q.tsx": () => import("./q-DUQQ2PBw.js"), "./renderers/ray.tsx": () => import("./ray-CqD7d0Tt.js"), "./renderers/ref.tsx": () => import("./ref-AaQiek3d.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-DHAtUwSA.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-BoqvAVQZ.js"), "./renderers/row.tsx": () => import("./row-CMp_0Qob.js"), "./renderers/rq.tsx": () => import("./rq-CVHDxjJi.js"), "./renderers/rsq.tsx": () => import("./rsq-BBzsr7QW.js"), "./renderers/section.tsx": () => import("./section-DlAAVdfW.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-CrJ3xbEE.js"), "./renderers/slider.tsx": () => import("./slider-De0jRM7b.js"), "./renderers/solution.tsx": () => import("./solution-BCdd20VE.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet--zG29OnG.js"), "./renderers/sq.tsx": () => import("./sq-IV2d3Zw7.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-D9x0ueAK.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-XOvVD1W8.js"), "./renderers/table.tsx": () => import("./table-BKLHL7WQ.js"), "./renderers/tabular.tsx": () => import("./tabular-eMSfqXy6.js"), "./renderers/tag.tsx": () => import("./tag-DsnPFaqa.js"), "./renderers/text.tsx": () => import("./text-CUQqfQz8.js"), "./renderers/textInput.tsx": () => import("./textInput-DfTseZjR.js"), "./renderers/vector.tsx": () => import("./vector-Ccfea2hU.js"), "./renderers/video.tsx": () => import("./video-DjQsMdGC.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 { p as jsxRuntimeExports } from "./doenetml-
|
|
2
|
-
import { F as FontAwesomeIcon } from "./index.es-
|
|
1
|
+
import { p as jsxRuntimeExports } from "./doenetml-DfKVXzta.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-sJCqa4Zq.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 { z as DocContext, p as jsxRuntimeExports, A as textRendererStyle, B as DynamicMath } from "./doenetml-
|
|
1
|
+
import { z as DocContext, p as jsxRuntimeExports, A as textRendererStyle, B as DynamicMath } from "./doenetml-DfKVXzta.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-CkbsvJad.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CDyY-0g2.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-C-TERXvy.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-B73ZzprP.js";
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-BojtViZr.js";
|
|
8
8
|
import { a as buildLineLikeAttributes, c as buildDragHandleAttributes } from "./buildGraphicalAttributes-0RNcbd2S.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 { G as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { G as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-DfKVXzta.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-CDyY-0g2.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-Dz-pguUD.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-BruMwMVr.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;
|