@doenet/doenetml 0.7.20-dev.337 → 0.7.20-dev.339
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-CfhGqoqe.js → AnswerResponseButton-B2A6xrvc.js} +2 -2
- package/{Description-Dhmd3Xv4.js → Description-D50R1epC.js} +1 -1
- package/{GraphFrame-BXDscGAG.js → GraphFrame-DMOnIpGH.js} +2 -2
- package/{JSXGraphRenderer-C_QqESRP.js → JSXGraphRenderer-DZmNiC6f.js} +1 -1
- package/{NonInlineMediaWrapper-kYQ1I271.js → NonInlineMediaWrapper-BPZRdtaa.js} +1 -1
- package/{_error-DQPbGPO7.js → _error-CuXFxtJp.js} +2 -2
- package/{alert--Q_KlJ_y.js → alert--AJjdd4d.js} +3 -3
- package/{angle-BmeUHxR_.js → angle-BaVRXegG.js} +6 -6
- package/{answer-BlYRWZip.js → answer-cMmRirF-.js} +5 -5
- package/{asList-3fb-zFhz.js → asList-DLzaoy9z.js} +2 -2
- package/{blockQuote-C5_Trscu.js → blockQuote-CMQzG1oU.js} +3 -3
- package/{boolean-B2eQIhLj.js → boolean-EVqjp3Lo.js} +2 -2
- package/{booleanInput-BMSHSxIH.js → booleanInput-B5dKzhyN.js} +6 -6
- package/{br-C9VVYR1j.js → br-DiOIZun1.js} +2 -2
- package/{button-peTWKdiN.js → button-B2l1BoBZ.js} +4 -4
- package/{c-B8GvQQqM.js → c-6-CxjrR9.js} +3 -3
- package/{cell-DSdgKOvP.js → cell-HQFVGR7v.js} +3 -3
- package/{choiceInput-CBVvUoff.js → choiceInput-DV19pyLG.js} +4 -4
- package/{circle-BsNE1Vu0.js → circle-COgAmllg.js} +5 -5
- package/{cobwebPolyline-DWWhtZDv.js → cobwebPolyline-BXvU8kE7.js} +4 -4
- package/{codeEditor-CADbExVq.js → codeEditor-Bk1X2o2j.js} +2 -2
- package/{composites-D9x26-P1.js → composites-Cg13QDT9.js} +1 -1
- package/{containerBlock-DOhUJ41w.js → containerBlock-3e91lkWR.js} +4 -4
- package/{containerInline-D1nPGcZP.js → containerInline-BFPkugj9.js} +4 -4
- package/{curve-D89dlXmL.js → curve-BwTQSrrq.js} +4 -4
- package/{doenetml-D76DvwsR.js → doenetml-CvIfjqad.js} +46 -18
- package/doenetml-external-worker.js +2 -2
- package/doenetml-inline-worker.js +2 -2
- package/{ellipsis-B03_EwL7.js → ellipsis-B-SoCCrZ.js} +2 -2
- package/{em-uFY7u1TG.js → em-DYKNAjOn.js} +3 -3
- package/{embed-koHs1kdC.js → embed-B8RYb9l7.js} +2 -2
- package/{feedback-W7uEZMV7.js → feedback-CQN6Cg_q.js} +4 -4
- package/{figure-eGB_nF3z.js → figure-DRkqJ-8t.js} +3 -3
- package/{fillPatterns-CXIw7uvs.js → fillPatterns-C1PsMqdi.js} +1 -1
- package/{footnote-DwRnYLOl.js → footnote-Dedfu1xh.js} +3 -3
- package/{fractionInput-Dx3Ymh5o.js → fractionInput-XGTSkacb.js} +4 -4
- package/{graph-BgrVI5hg.js → graph-BYRZE2h3.js} +6 -6
- package/{hint-B-p2Y_m4.js → hint-3mbciCn9.js} +4 -4
- package/{hr-UNkrn4Oc.js → hr-CZxYJrEs.js} +2 -2
- package/{image-DtvX5Qh7.js → image-ujki1Qml.js} +7 -7
- package/{index-CHyTC137.js → index-CKmHdh7a.js} +1 -1
- package/{index.es-BF1uDKf2.js → index.es-CV_b3hzo.js} +1 -1
- package/index.js +1 -1
- package/{label-C-444CQv.js → label-1ncKpcM-.js} +6 -6
- package/{labelWithLatex-IQ6O3XH8.js → labelWithLatex-CADZhsPD.js} +1 -1
- package/{legend-CfKdnqD0.js → legend-NAZRCjkL.js} +4 -4
- package/{line-DLXZRI9G.js → line-CiTLCEOf.js} +5 -5
- package/{lineSegment-BZh_IiSM.js → lineSegment-BcIEzqSF.js} +4 -4
- package/{list-CirckepO.js → list-CDvJcpgn.js} +4 -4
- package/{lq-22lYtBhP.js → lq-BjukUQ7w.js} +2 -2
- package/{lsq-CtWVlsXO.js → lsq-hgAM0UYO.js} +2 -2
- package/{markupRenderer-CI-yuTSi.js → markupRenderer-u3KRv1hh.js} +1 -1
- package/{math-CxPrY91_.js → math-CdscuQGL.js} +6 -6
- package/{mathInput-BZChzhqk.js → mathInput-DsZSccpg.js} +7 -7
- package/{matrixInput-BX_NHGrw.js → matrixInput-CK3grFhb.js} +4 -4
- package/{mdash-DlxFDOEi.js → mdash-u5XK-OCg.js} +2 -2
- package/{nbsp-XycS6xu-.js → nbsp-B8GsCXtR.js} +2 -2
- package/{ndash-D1ZJ795_.js → ndash-BwRLLJmo.js} +2 -2
- package/{number-D65vFLFV.js → number-C9INB8L5.js} +6 -6
- package/{orbitalDiagram-CIH8gxgw.js → orbitalDiagram-CIMmz7f_.js} +2 -2
- package/{orbitalDiagramInput-CtyP8UMv.js → orbitalDiagramInput-C9fxyqzV.js} +2 -2
- package/{p-BLhCx22A.js → p-dXq71fa7.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-DV_wrmmO.js → paginatorControls-B4Ecc_hW.js} +2 -2
- package/{pegboard-Dgv7DFex.js → pegboard-B8VQ02Wd.js} +4 -4
- package/{point-C_hh0Cdc.js → point-CyS1V-E2.js} +5 -5
- package/{polygon-sceJeIBT.js → polygon-CKM91fWZ.js} +5 -5
- package/{polyline-D1h-Ibkg.js → polyline-D3bozEfi.js} +4 -4
- package/{pre-C9bAG6Si.js → pre-DIs_iCz2.js} +3 -3
- package/{prefigure-BEJhat0A.js → prefigure-BL7rzMjv.js} +1 -1
- package/{pretzel-BaoQnI5L.js → pretzel-Cy7zr6cT.js} +4 -4
- package/{q-DnWBbGaI.js → q-B9rXsCVJ.js} +3 -3
- package/{ray-DLBCdwg-.js → ray-B1BrZeQI.js} +4 -4
- package/{ref-B9QIXBLx.js → ref-DPddFh9X.js} +2 -2
- package/{regionBetweenCurveXAxis-CvpHSuuk.js → regionBetweenCurveXAxis-BuFTJ-ef.js} +5 -5
- package/{regionBetweenCurves-BWWZkwWg.js → regionBetweenCurves-CvwmpDWJ.js} +5 -5
- package/{row-D04t2NfD.js → row-CPCPmfTA.js} +2 -2
- package/{rq-D1DW7Dw_.js → rq-CZEJuYLL.js} +2 -2
- package/{rsq-dKWJjr0O.js → rsq-Dz82ei3b.js} +2 -2
- package/{section-DpDteGmD.js → section-tY0jyNuo.js} +5 -5
- package/{sha256-C0vj3HDn-Bl3mz12N.js → sha256-C0vj3HDn-Dybb9BnV.js} +1 -1
- package/{sideBySide-PqfNoTe_.js → sideBySide-DZnHiiGm.js} +2 -2
- package/{slider-Czh7A4lu.js → slider-BX4S64-N.js} +3 -3
- package/{solution-qm_AIrWO.js → solution-BDYLvEIV.js} +4 -4
- package/{spreadsheet-y5tRLuk9.js → spreadsheet-09CagNGt.js} +2 -2
- package/{sq-3QoKABBk.js → sq-BIK-xTcK.js} +3 -3
- package/{subsetOfRealsInput-CMTZ5RPH.js → subsetOfRealsInput-YtomSH5P.js} +2 -2
- package/{summaryStatistics-DB_XEcFE.js → summaryStatistics-DXJbVGdR.js} +2 -2
- package/{table-B_hAVaMF.js → table-DP91V7DS.js} +2 -2
- package/{tabular-Dk0eWvsl.js → tabular-BFFI--Wq.js} +2 -2
- package/{tag-Btesgc_l.js → tag-FYSY1wvZ.js} +2 -2
- package/{text-Bddmm-cm.js → text-CQlpaA63.js} +6 -6
- package/{textInput-oLwvcBjD.js → textInput-C3Csxuct.js} +6 -6
- package/{tooltip-provider-Cii4fAVi.js → tooltip-provider-BgoPCVud.js} +1 -1
- package/{useAnchoredGraphDragHandler-CtSzNUhZ.js → useAnchoredGraphDragHandler-DdpQuFSS.js} +1 -1
- package/useDoenetRenderer-DUza_Qln.js +114 -0
- package/{useSubmitActionWithDelay-Cmlzsc5g.js → useSubmitActionWithDelay-jNnEbGno.js} +2 -2
- package/{vector-DsCeUBbx.js → vector-Bl4Ja1kq.js} +5 -5
- package/{video-DNy840T2.js → video-CeEyLnj-.js} +4 -4
- package/useDoenetRenderer-C9mMwabe.js +0 -114
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-CvIfjqad.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-DUza_Qln.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-u3KRv1hh.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 { l as DocContext, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { l as DocContext, k as jsxRuntimeExports } from "./doenetml-CvIfjqad.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-DZmNiC6f.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DUza_Qln.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-BYRZE2h3.js";
|
|
6
6
|
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-C7PtyKL7.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 { l as DocContext, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { l as DocContext, k as jsxRuntimeExports } from "./doenetml-CvIfjqad.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DUza_Qln.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 { l as DocContext, q as createFunctionFromDefinition, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { l as DocContext, q as createFunctionFromDefinition, k as jsxRuntimeExports } from "./doenetml-CvIfjqad.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-DZmNiC6f.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DUza_Qln.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-BYRZE2h3.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-C1PsMqdi.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 { l as DocContext, q as createFunctionFromDefinition, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { l as DocContext, q as createFunctionFromDefinition, k as jsxRuntimeExports } from "./doenetml-CvIfjqad.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-DUza_Qln.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-BYRZE2h3.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-C1PsMqdi.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-DZmNiC6f.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 { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-CvIfjqad.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DUza_Qln.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 { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-CvIfjqad.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DUza_Qln.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 { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-CvIfjqad.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DUza_Qln.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 { l as DocContext, p as cesc, u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { l as DocContext, p as cesc, u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-CvIfjqad.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-CV_b3hzo.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-DUza_Qln.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-Cg13QDT9.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-jNnEbGno.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, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-CvIfjqad.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DUza_Qln.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 { k as jsxRuntimeExports, E as ActionButtonGroup, F as ActionButton, o as Context } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports, E as ActionButtonGroup, F as ActionButton, o as Context } from "./doenetml-CvIfjqad.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-DUza_Qln.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-CADZhsPD.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, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-CvIfjqad.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-DUza_Qln.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-CV_b3hzo.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-Cg13QDT9.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 { l as DocContext, u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { l as DocContext, u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-CvIfjqad.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-DUza_Qln.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 { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-CvIfjqad.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-DUza_Qln.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-u3KRv1hh.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, k as jsxRuntimeExports, G as ToggleButtonGroup, T as ToggleButton, E as ActionButtonGroup, F as ActionButton } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports, G as ToggleButtonGroup, T as ToggleButton, E as ActionButtonGroup, F as ActionButton } from "./doenetml-CvIfjqad.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DUza_Qln.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, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-CvIfjqad.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DUza_Qln.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, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-CvIfjqad.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DUza_Qln.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, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-CvIfjqad.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DUza_Qln.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 { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-CvIfjqad.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DUza_Qln.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 { l as DocContext, o as Context, k as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-
|
|
1
|
+
import { l as DocContext, o as Context, k as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-CvIfjqad.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-DZmNiC6f.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-BYRZE2h3.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DUza_Qln.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-DV19pyLG.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-DdpQuFSS.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 { o as Context, k as jsxRuntimeExports, M as MathJax } from "./doenetml-
|
|
1
|
+
import { o as Context, k as jsxRuntimeExports, M as MathJax } from "./doenetml-CvIfjqad.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-DZmNiC6f.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DUza_Qln.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-BYRZE2h3.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-jNnEbGno.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-D50R1epC.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, k 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, k 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-CvIfjqad.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-DZmNiC6f.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-CvIfjqad.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-DMOnIpGH.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-DZmNiC6f.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-CuXFxtJp.js"), "./renderers/alert.tsx": () => import("./alert--AJjdd4d.js"), "./renderers/angle.tsx": () => import("./angle-BaVRXegG.js"), "./renderers/answer.tsx": () => import("./answer-cMmRirF-.js"), "./renderers/asList.tsx": () => import("./asList-DLzaoy9z.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-CMQzG1oU.js"), "./renderers/boolean.tsx": () => import("./boolean-EVqjp3Lo.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-B5dKzhyN.js"), "./renderers/br.tsx": () => import("./br-DiOIZun1.js"), "./renderers/button.tsx": () => import("./button-B2l1BoBZ.js"), "./renderers/c.tsx": () => import("./c-6-CxjrR9.js"), "./renderers/cell.tsx": () => import("./cell-HQFVGR7v.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-DV19pyLG.js"), "./renderers/circle.tsx": () => import("./circle-COgAmllg.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-BXvU8kE7.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-Bk1X2o2j.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-3e91lkWR.js"), "./renderers/containerInline.tsx": () => import("./containerInline-BFPkugj9.js"), "./renderers/curve.tsx": () => import("./curve-BwTQSrrq.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-B-SoCCrZ.js"), "./renderers/em.tsx": () => import("./em-DYKNAjOn.js"), "./renderers/embed.tsx": () => import("./embed-B8RYb9l7.js"), "./renderers/feedback.tsx": () => import("./feedback-CQN6Cg_q.js"), "./renderers/figure.tsx": () => import("./figure-DRkqJ-8t.js"), "./renderers/footnote.tsx": () => import("./footnote-Dedfu1xh.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-XGTSkacb.js"), "./renderers/graph.tsx": () => import("./graph-BYRZE2h3.js"), "./renderers/hint.tsx": () => import("./hint-3mbciCn9.js"), "./renderers/hr.tsx": () => import("./hr-CZxYJrEs.js"), "./renderers/image.tsx": () => import("./image-ujki1Qml.js"), "./renderers/label.tsx": () => import("./label-1ncKpcM-.js"), "./renderers/legend.tsx": () => import("./legend-NAZRCjkL.js"), "./renderers/line.tsx": () => import("./line-CiTLCEOf.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-BcIEzqSF.js"), "./renderers/list.tsx": () => import("./list-CDvJcpgn.js"), "./renderers/lq.tsx": () => import("./lq-BjukUQ7w.js"), "./renderers/lsq.tsx": () => import("./lsq-hgAM0UYO.js"), "./renderers/math.tsx": () => import("./math-CdscuQGL.js"), "./renderers/mathInput.tsx": () => import("./mathInput-DsZSccpg.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-CK3grFhb.js"), "./renderers/mdash.tsx": () => import("./mdash-u5XK-OCg.js"), "./renderers/nbsp.tsx": () => import("./nbsp-B8GsCXtR.js"), "./renderers/ndash.tsx": () => import("./ndash-BwRLLJmo.js"), "./renderers/number.tsx": () => import("./number-C9INB8L5.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-CIMmz7f_.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-C9fxyqzV.js"), "./renderers/p.tsx": () => import("./p-dXq71fa7.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-B4Ecc_hW.js"), "./renderers/pegboard.tsx": () => import("./pegboard-B8VQ02Wd.js"), "./renderers/point.tsx": () => import("./point-CyS1V-E2.js"), "./renderers/polygon.tsx": () => import("./polygon-CKM91fWZ.js"), "./renderers/polyline.tsx": () => import("./polyline-D3bozEfi.js"), "./renderers/pre.tsx": () => import("./pre-DIs_iCz2.js"), "./renderers/prefigure.tsx": () => import("./prefigure-BL7rzMjv.js"), "./renderers/pretzel.tsx": () => import("./pretzel-Cy7zr6cT.js"), "./renderers/q.tsx": () => import("./q-B9rXsCVJ.js"), "./renderers/ray.tsx": () => import("./ray-B1BrZeQI.js"), "./renderers/ref.tsx": () => import("./ref-DPddFh9X.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-BuFTJ-ef.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-CvwmpDWJ.js"), "./renderers/row.tsx": () => import("./row-CPCPmfTA.js"), "./renderers/rq.tsx": () => import("./rq-CZEJuYLL.js"), "./renderers/rsq.tsx": () => import("./rsq-Dz82ei3b.js"), "./renderers/section.tsx": () => import("./section-tY0jyNuo.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-DZnHiiGm.js"), "./renderers/slider.tsx": () => import("./slider-BX4S64-N.js"), "./renderers/solution.tsx": () => import("./solution-BDYLvEIV.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-09CagNGt.js"), "./renderers/sq.tsx": () => import("./sq-BIK-xTcK.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-YtomSH5P.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-DXJbVGdR.js"), "./renderers/table.tsx": () => import("./table-DP91V7DS.js"), "./renderers/tabular.tsx": () => import("./tabular-BFFI--Wq.js"), "./renderers/tag.tsx": () => import("./tag-FYSY1wvZ.js"), "./renderers/text.tsx": () => import("./text-CQlpaA63.js"), "./renderers/textInput.tsx": () => import("./textInput-C3Csxuct.js"), "./renderers/vector.tsx": () => import("./vector-Bl4Ja1kq.js"), "./renderers/video.tsx": () => import("./video-CeEyLnj-.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 { k as jsxRuntimeExports } from "./doenetml-
|
|
2
|
-
import { F as FontAwesomeIcon } from "./index.es-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-CvIfjqad.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-CV_b3hzo.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 { l as DocContext, k as jsxRuntimeExports, t as textRendererStyle, n as DynamicMath } from "./doenetml-
|
|
1
|
+
import { l as DocContext, k as jsxRuntimeExports, t as textRendererStyle, n as DynamicMath } from "./doenetml-CvIfjqad.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-DZmNiC6f.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DUza_Qln.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-BYRZE2h3.js";
|
|
6
|
+
import { ChoiceInputInlineContext } from "./choiceInput-DV19pyLG.js";
|
|
7
7
|
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-C7PtyKL7.js";
|
|
8
8
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
9
9
|
import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-CvIfjqad.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-DUza_Qln.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-D50R1epC.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-BPZRdtaa.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 { w as useAppSelector, x as mainSlice, y as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-D76DvwsR.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-BXDscGAG.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-C_QqESRP.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-DQPbGPO7.js"), "./renderers/alert.tsx": () => import("./alert--Q_KlJ_y.js"), "./renderers/angle.tsx": () => import("./angle-BmeUHxR_.js"), "./renderers/answer.tsx": () => import("./answer-BlYRWZip.js"), "./renderers/asList.tsx": () => import("./asList-3fb-zFhz.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-C5_Trscu.js"), "./renderers/boolean.tsx": () => import("./boolean-B2eQIhLj.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-BMSHSxIH.js"), "./renderers/br.tsx": () => import("./br-C9VVYR1j.js"), "./renderers/button.tsx": () => import("./button-peTWKdiN.js"), "./renderers/c.tsx": () => import("./c-B8GvQQqM.js"), "./renderers/cell.tsx": () => import("./cell-DSdgKOvP.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-CBVvUoff.js"), "./renderers/circle.tsx": () => import("./circle-BsNE1Vu0.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-DWWhtZDv.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-CADbExVq.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-DOhUJ41w.js"), "./renderers/containerInline.tsx": () => import("./containerInline-D1nPGcZP.js"), "./renderers/curve.tsx": () => import("./curve-D89dlXmL.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-B03_EwL7.js"), "./renderers/em.tsx": () => import("./em-uFY7u1TG.js"), "./renderers/embed.tsx": () => import("./embed-koHs1kdC.js"), "./renderers/feedback.tsx": () => import("./feedback-W7uEZMV7.js"), "./renderers/figure.tsx": () => import("./figure-eGB_nF3z.js"), "./renderers/footnote.tsx": () => import("./footnote-DwRnYLOl.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-Dx3Ymh5o.js"), "./renderers/graph.tsx": () => import("./graph-BgrVI5hg.js"), "./renderers/hint.tsx": () => import("./hint-B-p2Y_m4.js"), "./renderers/hr.tsx": () => import("./hr-UNkrn4Oc.js"), "./renderers/image.tsx": () => import("./image-DtvX5Qh7.js"), "./renderers/label.tsx": () => import("./label-C-444CQv.js"), "./renderers/legend.tsx": () => import("./legend-CfKdnqD0.js"), "./renderers/line.tsx": () => import("./line-DLXZRI9G.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-BZh_IiSM.js"), "./renderers/list.tsx": () => import("./list-CirckepO.js"), "./renderers/lq.tsx": () => import("./lq-22lYtBhP.js"), "./renderers/lsq.tsx": () => import("./lsq-CtWVlsXO.js"), "./renderers/math.tsx": () => import("./math-CxPrY91_.js"), "./renderers/mathInput.tsx": () => import("./mathInput-BZChzhqk.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-BX_NHGrw.js"), "./renderers/mdash.tsx": () => import("./mdash-DlxFDOEi.js"), "./renderers/nbsp.tsx": () => import("./nbsp-XycS6xu-.js"), "./renderers/ndash.tsx": () => import("./ndash-D1ZJ795_.js"), "./renderers/number.tsx": () => import("./number-D65vFLFV.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-CIH8gxgw.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-CtyP8UMv.js"), "./renderers/p.tsx": () => import("./p-BLhCx22A.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-DV_wrmmO.js"), "./renderers/pegboard.tsx": () => import("./pegboard-Dgv7DFex.js"), "./renderers/point.tsx": () => import("./point-C_hh0Cdc.js"), "./renderers/polygon.tsx": () => import("./polygon-sceJeIBT.js"), "./renderers/polyline.tsx": () => import("./polyline-D1h-Ibkg.js"), "./renderers/pre.tsx": () => import("./pre-C9bAG6Si.js"), "./renderers/prefigure.tsx": () => import("./prefigure-BEJhat0A.js"), "./renderers/pretzel.tsx": () => import("./pretzel-BaoQnI5L.js"), "./renderers/q.tsx": () => import("./q-DnWBbGaI.js"), "./renderers/ray.tsx": () => import("./ray-DLBCdwg-.js"), "./renderers/ref.tsx": () => import("./ref-B9QIXBLx.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-CvpHSuuk.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-BWWZkwWg.js"), "./renderers/row.tsx": () => import("./row-D04t2NfD.js"), "./renderers/rq.tsx": () => import("./rq-D1DW7Dw_.js"), "./renderers/rsq.tsx": () => import("./rsq-dKWJjr0O.js"), "./renderers/section.tsx": () => import("./section-DpDteGmD.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-PqfNoTe_.js"), "./renderers/slider.tsx": () => import("./slider-Czh7A4lu.js"), "./renderers/solution.tsx": () => import("./solution-qm_AIrWO.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-y5tRLuk9.js"), "./renderers/sq.tsx": () => import("./sq-3QoKABBk.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-CMTZ5RPH.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-DB_XEcFE.js"), "./renderers/table.tsx": () => import("./table-B_hAVaMF.js"), "./renderers/tabular.tsx": () => import("./tabular-Dk0eWvsl.js"), "./renderers/tag.tsx": () => import("./tag-Btesgc_l.js"), "./renderers/text.tsx": () => import("./text-Bddmm-cm.js"), "./renderers/textInput.tsx": () => import("./textInput-oLwvcBjD.js"), "./renderers/vector.tsx": () => import("./vector-DsCeUBbx.js"), "./renderers/video.tsx": () => import("./video-DNy840T2.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
|
-
};
|