@doenet/doenetml 0.7.20-dev.320 → 0.7.20-dev.321
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-CgM588vx.js → AnswerResponseButton-X0TCa2EE.js} +2 -2
- package/{Description-H5pbcVhg.js → Description-CddpT2IF.js} +1 -1
- package/{GraphFrame-DTJDUOVL.js → GraphFrame-DbHtrjVN.js} +2 -2
- package/{JSXGraphRenderer-22Jm6Aqy.js → JSXGraphRenderer-BjGw_6m9.js} +1 -1
- package/{NonInlineMediaWrapper-C34hHTJ1.js → NonInlineMediaWrapper-0m5RO5PC.js} +1 -1
- package/{_error-uFnS1fxr.js → _error-CYvjSZ4N.js} +2 -2
- package/{alert-CMGhUuTJ.js → alert-DrcjCUog.js} +3 -3
- package/{angle-DA0KDRc8.js → angle-D6YidMYF.js} +6 -6
- package/{answer-DbInCTg1.js → answer-DOgH5e2p.js} +5 -5
- package/{asList-DSP7iJoK.js → asList-BjLk8c7X.js} +2 -2
- package/{blockQuote-B7iuy9up.js → blockQuote-4khx1V50.js} +3 -3
- package/{boolean-BvEev3On.js → boolean-DmvxH6-b.js} +2 -2
- package/{booleanInput-Dh1LSxuy.js → booleanInput-C3SPCOAV.js} +6 -6
- package/{br-CegLKnuM.js → br-B2Gbso2f.js} +2 -2
- package/{button-9-d0G7o5.js → button-DFCE_g-Q.js} +4 -4
- package/{c-DMpHD_61.js → c-rFhXNoIk.js} +3 -3
- package/{cell-BxrS2QyX.js → cell-rqX88d9r.js} +3 -3
- package/{choiceInput-BQOZAI35.js → choiceInput-00rlA3ib.js} +4 -4
- package/{circle-CLhljsDT.js → circle-LtrI4unn.js} +5 -5
- package/{cobwebPolyline-BrZ7wr8A.js → cobwebPolyline-BUsREWmM.js} +4 -4
- package/{codeEditor-C8ouUFe4.js → codeEditor-qiswyugt.js} +2 -2
- package/{composites-C2YF4Ip8.js → composites-Dv1EgBaF.js} +1 -1
- package/{containerBlock-BJxrECjk.js → containerBlock-DIZCWQsu.js} +4 -4
- package/{containerInline-D85pmr07.js → containerInline-BCKEJxY2.js} +4 -4
- package/{curve-BJwxaRoJ.js → curve-s0m-sVgm.js} +4 -4
- package/{doenetml-CkU4-Htq.js → doenetml-Cdm7SyEN.js} +4 -4
- package/doenetml-inline-worker.js +2 -2
- package/{ellipsis-9ZXeLaUG.js → ellipsis-DPOcc2uP.js} +2 -2
- package/{em-K7naehxa.js → em-CgO44ZB8.js} +3 -3
- package/{embed-B8yHo6s9.js → embed-DJPuvgf3.js} +2 -2
- package/{feedback-DAVKQkBA.js → feedback-P7xSdrx1.js} +4 -4
- package/{figure-BQzp6oeg.js → figure-DFKlDuGC.js} +3 -3
- package/{fillPatterns-CmEh-tsJ.js → fillPatterns-BbIuwbhv.js} +1 -1
- package/{footnote-D0rBG_Jy.js → footnote-DQaTW4aQ.js} +3 -3
- package/{fractionInput-BNPxEM4R.js → fractionInput-C4sjtpgB.js} +4 -4
- package/{graph-VqrJwtaV.js → graph-CMx_J0ls.js} +6 -6
- package/{hint-DNRrY0OW.js → hint-CGHtyjvd.js} +4 -4
- package/{hr-CJimPn2I.js → hr-C8oklk1X.js} +2 -2
- package/{image-0e5ZhGuo.js → image-CRcBVfh5.js} +7 -7
- package/{index-DWX7NkQL.js → index-Bfw5Ag6G.js} +1 -1
- package/{index.es-BzMIolxa.js → index.es-HMjj-11w.js} +1 -1
- package/index.js +1 -1
- package/{label-BraXFWPB.js → label-CnfuAoUR.js} +6 -6
- package/{labelWithLatex-Dr9B5vZn.js → labelWithLatex--WXyNomX.js} +1 -1
- package/{legend-Fj0TaSwX.js → legend-BmphCiwL.js} +4 -4
- package/{line-pdB0th52.js → line-EBlk5W2x.js} +5 -5
- package/{lineSegment-BD2yTf6B.js → lineSegment-DvWat39D.js} +4 -4
- package/{list-DW6f0bV4.js → list-DB0r7Y-7.js} +4 -4
- package/{lq-DoeR0NND.js → lq-5DPpPDQ6.js} +2 -2
- package/{lsq-D4YG64lN.js → lsq-CXg8GqJn.js} +2 -2
- package/{markupRenderer-ChvpJcvQ.js → markupRenderer-RZVEcbN7.js} +1 -1
- package/{math-B-Q5-hfO.js → math-EiarZrxC.js} +6 -6
- package/{mathInput-D5OUtgb7.js → mathInput-C7__QCTD.js} +7 -7
- package/{matrixInput-CVDkJFtc.js → matrixInput-CaZ3RAUH.js} +4 -4
- package/{mdash-CoGwEEZD.js → mdash-Bqc8qcTN.js} +2 -2
- package/{nbsp-BloED91R.js → nbsp-BlhLqlwD.js} +2 -2
- package/{ndash-Bl0JcFoa.js → ndash-BrMqKhac.js} +2 -2
- package/{number-D_lOauA0.js → number-CLzdzRh_.js} +6 -6
- package/{orbitalDiagram-BxPIwPZQ.js → orbitalDiagram-B8t1dkH_.js} +2 -2
- package/{orbitalDiagramInput-B3AWpXsv.js → orbitalDiagramInput-amhODSWa.js} +2 -2
- package/{p-BjtAaVpO.js → p-BDVykXJx.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-BqPdzi3K.js → paginatorControls-BB3OWQtJ.js} +2 -2
- package/{pegboard-C0jw4sKR.js → pegboard-uMH5KFoq.js} +4 -4
- package/{point-D4wmm8AK.js → point-D5XXpBiW.js} +5 -5
- package/{polygon-Hr5Fy-3Q.js → polygon-DbHgd8lQ.js} +5 -5
- package/{polyline-BTedOA6M.js → polyline-D7YjWF6F.js} +4 -4
- package/{pre-CEsN480c.js → pre-Xeahw1Qf.js} +3 -3
- package/{prefigure-BQIHhuIk.js → prefigure-DEaKT5Nn.js} +1 -1
- package/{pretzel-DwwhUTHS.js → pretzel-DpbpNnd-.js} +4 -4
- package/{q-CXXKIisc.js → q-C08iY5xx.js} +3 -3
- package/{ray-_O8L6_Mm.js → ray-CIagmBlF.js} +4 -4
- package/{ref-BqXqhWZQ.js → ref-HHlKFvrn.js} +2 -2
- package/{regionBetweenCurveXAxis-69DjsolL.js → regionBetweenCurveXAxis-TdYXME5O.js} +5 -5
- package/{regionBetweenCurves-BQRjlTAY.js → regionBetweenCurves-Cto1lX4A.js} +5 -5
- package/{row-DiEw6MRG.js → row-CE5GZ6d7.js} +2 -2
- package/{rq-dRCdbSKn.js → rq-KZlfQv8v.js} +2 -2
- package/{rsq-Cz1er5X6.js → rsq-8CeUdwzy.js} +2 -2
- package/{section-Cl3anyid.js → section-DCAdoDac.js} +5 -5
- package/{sha256-C0vj3HDn-Ci87sZWA.js → sha256-C0vj3HDn-D6OOPkIq.js} +1 -1
- package/{sideBySide-CJ7SPlnz.js → sideBySide-DMJgjgNT.js} +2 -2
- package/{slider-WRWRP4JS.js → slider-C54s1w7p.js} +3 -3
- package/{solution-CqkrnQUV.js → solution-CnIvhgga.js} +4 -4
- package/{spreadsheet-Dcg9KT1s.js → spreadsheet-CGR4rnwi.js} +2 -2
- package/{sq-nFDuk68N.js → sq-wtJlOwgi.js} +3 -3
- package/{subsetOfRealsInput-BBsOlsfG.js → subsetOfRealsInput-eUazNQN-.js} +2 -2
- package/{summaryStatistics-BAa1XVZE.js → summaryStatistics-BPwoKIo5.js} +2 -2
- package/{table-VX9ojh0_.js → table-DklJXcdg.js} +2 -2
- package/{tabular-CrWEEae2.js → tabular-BGetrtoh.js} +2 -2
- package/{tag-D9teta8D.js → tag-BrUS7ckr.js} +2 -2
- package/{text-OLVXg3Ma.js → text-H2xoDPKy.js} +6 -6
- package/{textInput-nxQasiRP.js → textInput-Cc9RLDlU.js} +6 -6
- package/{tooltip-provider-DjWTYYMd.js → tooltip-provider-DZ9EFCwi.js} +1 -1
- package/{useAnchoredGraphDragHandler-qBKcpLZF.js → useAnchoredGraphDragHandler-BQWKyBsU.js} +1 -1
- package/useDoenetRenderer-DSbxRNoK.js +114 -0
- package/{useSubmitActionWithDelay-C0Y5odwL.js → useSubmitActionWithDelay-BAIqo1W2.js} +2 -2
- package/{vector-DPh-0I8N.js → vector-eyPMOb9u.js} +5 -5
- package/{video-CV2iQX0X.js → video-CjORBD3E.js} +4 -4
- package/useDoenetRenderer-a76xeOZV.js +0 -114
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-Cdm7SyEN.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-DSbxRNoK.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-RZVEcbN7.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-Cdm7SyEN.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-BjGw_6m9.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DSbxRNoK.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-CMx_J0ls.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-Cdm7SyEN.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DSbxRNoK.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, p as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as DocContext, p as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-Cdm7SyEN.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-BjGw_6m9.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DSbxRNoK.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-CMx_J0ls.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-BbIuwbhv.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, p as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as DocContext, p as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-Cdm7SyEN.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-DSbxRNoK.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-CMx_J0ls.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-BbIuwbhv.js";
|
|
7
|
+
import { b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-BjGw_6m9.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-Cdm7SyEN.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DSbxRNoK.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-Cdm7SyEN.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DSbxRNoK.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-Cdm7SyEN.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DSbxRNoK.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, o as cesc, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as DocContext, o as cesc, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-Cdm7SyEN.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-HMjj-11w.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-DSbxRNoK.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-Dv1EgBaF.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-BAIqo1W2.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-Cdm7SyEN.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DSbxRNoK.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, E as ActionButton, n as Context } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports, A as ActionButtonGroup, E as ActionButton, n as Context } from "./doenetml-Cdm7SyEN.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-DSbxRNoK.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--WXyNomX.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-Cdm7SyEN.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-DSbxRNoK.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-HMjj-11w.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-Dv1EgBaF.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-Cdm7SyEN.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-DSbxRNoK.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-Cdm7SyEN.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-DSbxRNoK.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-RZVEcbN7.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, G as ToggleButtonGroup, T as ToggleButton, A as ActionButtonGroup, E as ActionButton } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports, G as ToggleButtonGroup, T as ToggleButton, A as ActionButtonGroup, E as ActionButton } from "./doenetml-Cdm7SyEN.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DSbxRNoK.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-Cdm7SyEN.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DSbxRNoK.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-Cdm7SyEN.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DSbxRNoK.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-Cdm7SyEN.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DSbxRNoK.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-Cdm7SyEN.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DSbxRNoK.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, n as Context, j as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-
|
|
1
|
+
import { k as DocContext, n as Context, j as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-Cdm7SyEN.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-BjGw_6m9.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-CMx_J0ls.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DSbxRNoK.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-00rlA3ib.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-BQWKyBsU.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 { n as Context, j as jsxRuntimeExports, M as MathJax } from "./doenetml-
|
|
1
|
+
import { n as Context, j as jsxRuntimeExports, M as MathJax } from "./doenetml-Cdm7SyEN.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-BjGw_6m9.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DSbxRNoK.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-CMx_J0ls.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-BAIqo1W2.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-CddpT2IF.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 { 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-
|
|
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-Cdm7SyEN.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-BjGw_6m9.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-Cdm7SyEN.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-DbHtrjVN.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-BjGw_6m9.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-CYvjSZ4N.js"), "./renderers/alert.tsx": () => import("./alert-DrcjCUog.js"), "./renderers/angle.tsx": () => import("./angle-D6YidMYF.js"), "./renderers/answer.tsx": () => import("./answer-DOgH5e2p.js"), "./renderers/asList.tsx": () => import("./asList-BjLk8c7X.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-4khx1V50.js"), "./renderers/boolean.tsx": () => import("./boolean-DmvxH6-b.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-C3SPCOAV.js"), "./renderers/br.tsx": () => import("./br-B2Gbso2f.js"), "./renderers/button.tsx": () => import("./button-DFCE_g-Q.js"), "./renderers/c.tsx": () => import("./c-rFhXNoIk.js"), "./renderers/cell.tsx": () => import("./cell-rqX88d9r.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-00rlA3ib.js"), "./renderers/circle.tsx": () => import("./circle-LtrI4unn.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-BUsREWmM.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-qiswyugt.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-DIZCWQsu.js"), "./renderers/containerInline.tsx": () => import("./containerInline-BCKEJxY2.js"), "./renderers/curve.tsx": () => import("./curve-s0m-sVgm.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-DPOcc2uP.js"), "./renderers/em.tsx": () => import("./em-CgO44ZB8.js"), "./renderers/embed.tsx": () => import("./embed-DJPuvgf3.js"), "./renderers/feedback.tsx": () => import("./feedback-P7xSdrx1.js"), "./renderers/figure.tsx": () => import("./figure-DFKlDuGC.js"), "./renderers/footnote.tsx": () => import("./footnote-DQaTW4aQ.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-C4sjtpgB.js"), "./renderers/graph.tsx": () => import("./graph-CMx_J0ls.js"), "./renderers/hint.tsx": () => import("./hint-CGHtyjvd.js"), "./renderers/hr.tsx": () => import("./hr-C8oklk1X.js"), "./renderers/image.tsx": () => import("./image-CRcBVfh5.js"), "./renderers/label.tsx": () => import("./label-CnfuAoUR.js"), "./renderers/legend.tsx": () => import("./legend-BmphCiwL.js"), "./renderers/line.tsx": () => import("./line-EBlk5W2x.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-DvWat39D.js"), "./renderers/list.tsx": () => import("./list-DB0r7Y-7.js"), "./renderers/lq.tsx": () => import("./lq-5DPpPDQ6.js"), "./renderers/lsq.tsx": () => import("./lsq-CXg8GqJn.js"), "./renderers/math.tsx": () => import("./math-EiarZrxC.js"), "./renderers/mathInput.tsx": () => import("./mathInput-C7__QCTD.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-CaZ3RAUH.js"), "./renderers/mdash.tsx": () => import("./mdash-Bqc8qcTN.js"), "./renderers/nbsp.tsx": () => import("./nbsp-BlhLqlwD.js"), "./renderers/ndash.tsx": () => import("./ndash-BrMqKhac.js"), "./renderers/number.tsx": () => import("./number-CLzdzRh_.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-B8t1dkH_.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-amhODSWa.js"), "./renderers/p.tsx": () => import("./p-BDVykXJx.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-BB3OWQtJ.js"), "./renderers/pegboard.tsx": () => import("./pegboard-uMH5KFoq.js"), "./renderers/point.tsx": () => import("./point-D5XXpBiW.js"), "./renderers/polygon.tsx": () => import("./polygon-DbHgd8lQ.js"), "./renderers/polyline.tsx": () => import("./polyline-D7YjWF6F.js"), "./renderers/pre.tsx": () => import("./pre-Xeahw1Qf.js"), "./renderers/prefigure.tsx": () => import("./prefigure-DEaKT5Nn.js"), "./renderers/pretzel.tsx": () => import("./pretzel-DpbpNnd-.js"), "./renderers/q.tsx": () => import("./q-C08iY5xx.js"), "./renderers/ray.tsx": () => import("./ray-CIagmBlF.js"), "./renderers/ref.tsx": () => import("./ref-HHlKFvrn.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-TdYXME5O.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-Cto1lX4A.js"), "./renderers/row.tsx": () => import("./row-CE5GZ6d7.js"), "./renderers/rq.tsx": () => import("./rq-KZlfQv8v.js"), "./renderers/rsq.tsx": () => import("./rsq-8CeUdwzy.js"), "./renderers/section.tsx": () => import("./section-DCAdoDac.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-DMJgjgNT.js"), "./renderers/slider.tsx": () => import("./slider-C54s1w7p.js"), "./renderers/solution.tsx": () => import("./solution-CnIvhgga.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-CGR4rnwi.js"), "./renderers/sq.tsx": () => import("./sq-wtJlOwgi.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-eUazNQN-.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-BPwoKIo5.js"), "./renderers/table.tsx": () => import("./table-DklJXcdg.js"), "./renderers/tabular.tsx": () => import("./tabular-BGetrtoh.js"), "./renderers/tag.tsx": () => import("./tag-BrUS7ckr.js"), "./renderers/text.tsx": () => import("./text-H2xoDPKy.js"), "./renderers/textInput.tsx": () => import("./textInput-Cc9RLDlU.js"), "./renderers/vector.tsx": () => import("./vector-eyPMOb9u.js"), "./renderers/video.tsx": () => import("./video-CjORBD3E.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-Cdm7SyEN.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-HMjj-11w.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, l as DynamicMath } from "./doenetml-
|
|
1
|
+
import { k as DocContext, j as jsxRuntimeExports, t as textRendererStyle, l as DynamicMath } from "./doenetml-Cdm7SyEN.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-BjGw_6m9.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DSbxRNoK.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-CMx_J0ls.js";
|
|
6
|
+
import { ChoiceInputInlineContext } from "./choiceInput-00rlA3ib.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";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-Cdm7SyEN.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-DSbxRNoK.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-CddpT2IF.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-0m5RO5PC.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;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { v as useAppSelector, w as mainSlice, x as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-CkU4-Htq.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-DTJDUOVL.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-22Jm6Aqy.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-uFnS1fxr.js"), "./renderers/alert.tsx": () => import("./alert-CMGhUuTJ.js"), "./renderers/angle.tsx": () => import("./angle-DA0KDRc8.js"), "./renderers/answer.tsx": () => import("./answer-DbInCTg1.js"), "./renderers/asList.tsx": () => import("./asList-DSP7iJoK.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-B7iuy9up.js"), "./renderers/boolean.tsx": () => import("./boolean-BvEev3On.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-Dh1LSxuy.js"), "./renderers/br.tsx": () => import("./br-CegLKnuM.js"), "./renderers/button.tsx": () => import("./button-9-d0G7o5.js"), "./renderers/c.tsx": () => import("./c-DMpHD_61.js"), "./renderers/cell.tsx": () => import("./cell-BxrS2QyX.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-BQOZAI35.js"), "./renderers/circle.tsx": () => import("./circle-CLhljsDT.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-BrZ7wr8A.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-C8ouUFe4.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-BJxrECjk.js"), "./renderers/containerInline.tsx": () => import("./containerInline-D85pmr07.js"), "./renderers/curve.tsx": () => import("./curve-BJwxaRoJ.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-9ZXeLaUG.js"), "./renderers/em.tsx": () => import("./em-K7naehxa.js"), "./renderers/embed.tsx": () => import("./embed-B8yHo6s9.js"), "./renderers/feedback.tsx": () => import("./feedback-DAVKQkBA.js"), "./renderers/figure.tsx": () => import("./figure-BQzp6oeg.js"), "./renderers/footnote.tsx": () => import("./footnote-D0rBG_Jy.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-BNPxEM4R.js"), "./renderers/graph.tsx": () => import("./graph-VqrJwtaV.js"), "./renderers/hint.tsx": () => import("./hint-DNRrY0OW.js"), "./renderers/hr.tsx": () => import("./hr-CJimPn2I.js"), "./renderers/image.tsx": () => import("./image-0e5ZhGuo.js"), "./renderers/label.tsx": () => import("./label-BraXFWPB.js"), "./renderers/legend.tsx": () => import("./legend-Fj0TaSwX.js"), "./renderers/line.tsx": () => import("./line-pdB0th52.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-BD2yTf6B.js"), "./renderers/list.tsx": () => import("./list-DW6f0bV4.js"), "./renderers/lq.tsx": () => import("./lq-DoeR0NND.js"), "./renderers/lsq.tsx": () => import("./lsq-D4YG64lN.js"), "./renderers/math.tsx": () => import("./math-B-Q5-hfO.js"), "./renderers/mathInput.tsx": () => import("./mathInput-D5OUtgb7.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-CVDkJFtc.js"), "./renderers/mdash.tsx": () => import("./mdash-CoGwEEZD.js"), "./renderers/nbsp.tsx": () => import("./nbsp-BloED91R.js"), "./renderers/ndash.tsx": () => import("./ndash-Bl0JcFoa.js"), "./renderers/number.tsx": () => import("./number-D_lOauA0.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-BxPIwPZQ.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-B3AWpXsv.js"), "./renderers/p.tsx": () => import("./p-BjtAaVpO.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-BqPdzi3K.js"), "./renderers/pegboard.tsx": () => import("./pegboard-C0jw4sKR.js"), "./renderers/point.tsx": () => import("./point-D4wmm8AK.js"), "./renderers/polygon.tsx": () => import("./polygon-Hr5Fy-3Q.js"), "./renderers/polyline.tsx": () => import("./polyline-BTedOA6M.js"), "./renderers/pre.tsx": () => import("./pre-CEsN480c.js"), "./renderers/prefigure.tsx": () => import("./prefigure-BQIHhuIk.js"), "./renderers/pretzel.tsx": () => import("./pretzel-DwwhUTHS.js"), "./renderers/q.tsx": () => import("./q-CXXKIisc.js"), "./renderers/ray.tsx": () => import("./ray-_O8L6_Mm.js"), "./renderers/ref.tsx": () => import("./ref-BqXqhWZQ.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-69DjsolL.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-BQRjlTAY.js"), "./renderers/row.tsx": () => import("./row-DiEw6MRG.js"), "./renderers/rq.tsx": () => import("./rq-dRCdbSKn.js"), "./renderers/rsq.tsx": () => import("./rsq-Cz1er5X6.js"), "./renderers/section.tsx": () => import("./section-Cl3anyid.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-CJ7SPlnz.js"), "./renderers/slider.tsx": () => import("./slider-WRWRP4JS.js"), "./renderers/solution.tsx": () => import("./solution-CqkrnQUV.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-Dcg9KT1s.js"), "./renderers/sq.tsx": () => import("./sq-nFDuk68N.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-BBsOlsfG.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-BAa1XVZE.js"), "./renderers/table.tsx": () => import("./table-VX9ojh0_.js"), "./renderers/tabular.tsx": () => import("./tabular-CrWEEae2.js"), "./renderers/tag.tsx": () => import("./tag-D9teta8D.js"), "./renderers/text.tsx": () => import("./text-OLVXg3Ma.js"), "./renderers/textInput.tsx": () => import("./textInput-nxQasiRP.js"), "./renderers/vector.tsx": () => import("./vector-DPh-0I8N.js"), "./renderers/video.tsx": () => import("./video-CV2iQX0X.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
|
-
};
|