@doenet/doenetml 0.7.20-dev.303 → 0.7.20-dev.304
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-IikAxFM3.js → AnswerResponseButton-hNe8j1Ed.js} +2 -2
- package/{Description-DzPkiv9o.js → Description-DC2Mnvz3.js} +1 -1
- package/{GraphFrame-BBasFJhm.js → GraphFrame-CR6IX373.js} +2 -2
- package/{JSXGraphRenderer-D4S9ctYs.js → JSXGraphRenderer-GW1Rr-hi.js} +1 -1
- package/{NonInlineMediaWrapper-C-zHD1jU.js → NonInlineMediaWrapper-C-DhAxZ_.js} +1 -1
- package/Viewer/renderers/textInput.d.ts.map +1 -1
- package/{_error-D-x0iySP.js → _error-CIGqmNhi.js} +2 -2
- package/{alert-476hkiXR.js → alert-CM8Y3VBH.js} +3 -3
- package/{angle-DvGYqNuC.js → angle-Bu3g7HAh.js} +6 -6
- package/{answer-DMDXTry2.js → answer-FKJaI8Np.js} +5 -5
- package/{asList-Dhc75olq.js → asList-DsTe0uOj.js} +2 -2
- package/{blockQuote-B5Dpa6OE.js → blockQuote-OCJir8iH.js} +3 -3
- package/{boolean-Xf-dSI2o.js → boolean-BOQJMyQ3.js} +2 -2
- package/{booleanInput-x435KPXJ.js → booleanInput-B2fFKsCO.js} +6 -6
- package/{br-Bba9z5mZ.js → br-DSVzxv2M.js} +2 -2
- package/{button-DKeylEiK.js → button-CnOz_hRj.js} +4 -4
- package/{c-D5MfKPGI.js → c-CAgHjm1i.js} +3 -3
- package/{cell-De-FMApm.js → cell-CeCRqOJG.js} +3 -3
- package/{choiceInput-B9CPPzYU.js → choiceInput-FjGwKnox.js} +4 -4
- package/{circle-tvhbmjon.js → circle-DhoLX_E2.js} +5 -5
- package/{cobwebPolyline-DWgBYIo5.js → cobwebPolyline-BrunjE_s.js} +4 -4
- package/{codeEditor-C2GZHF5G.js → codeEditor-ByLnOW8V.js} +2 -2
- package/{composites--BPB2oij.js → composites-R_KNNFiX.js} +1 -1
- package/{containerBlock-CfiS1uu8.js → containerBlock-CFnPjCLw.js} +4 -4
- package/{containerInline-BQ_FOMcQ.js → containerInline-Dsquvroz.js} +4 -4
- package/{curve-B8T4AUL2.js → curve-dcYleNzn.js} +4 -4
- package/{doenetml-gUur283a.js → doenetml-BsqkhdxE.js} +4 -4
- package/doenetml-inline-worker.js +2 -2
- package/{ellipsis-CsG4iDU2.js → ellipsis-CT0qVvld.js} +2 -2
- package/{em-CpFxZPXm.js → em-BhXUjVD0.js} +3 -3
- package/{embed-BFhGwL4u.js → embed-DKX4nmcO.js} +2 -2
- package/{feedback-C3Nw6dxq.js → feedback-BcDy_KTW.js} +4 -4
- package/{figure-DEOftGmD.js → figure-DrjEufha.js} +3 -3
- package/{fillPatterns-C69wlqjN.js → fillPatterns-8hjE6oob.js} +1 -1
- package/{footnote-BL8msTjX.js → footnote-BTQIBRME.js} +3 -3
- package/{fractionInput-DKrqXpwp.js → fractionInput-Czx8SZWU.js} +4 -4
- package/{graph-2I0W9LqX.js → graph-Cp3oSAg3.js} +6 -6
- package/{hint-ROE9Lnhd.js → hint-TxNyqo-X.js} +4 -4
- package/{hr-BLn_LWqf.js → hr-CBgKR8h1.js} +2 -2
- package/{image-1UvLOQ-Y.js → image-DoGJdbcm.js} +7 -7
- package/{index-BYIpRo02.js → index-CkvGTnR6.js} +1 -1
- package/{index.es-CJZD7VPN.js → index.es-Ds-5dfK1.js} +1 -1
- package/index.js +1 -1
- package/{label-7A0lDd0H.js → label-CktsCJXw.js} +6 -6
- package/{labelWithLatex-eMr12aW1.js → labelWithLatex-LxelRspf.js} +1 -1
- package/{legend-DtVQzWrl.js → legend-uBDc0SH1.js} +4 -4
- package/{line-Cly1nkni.js → line-BQpqrYkT.js} +5 -5
- package/{lineSegment-C3ZfbASg.js → lineSegment-HsDapg7M.js} +4 -4
- package/{list-DB6lWahM.js → list-BW6WWNBI.js} +4 -4
- package/{lq-CZM_1Jqe.js → lq-BMEKGtrB.js} +2 -2
- package/{lsq-Dab5cOt3.js → lsq-BJLFkKTA.js} +2 -2
- package/{markupRenderer-YnyWEYup.js → markupRenderer-DuCQF9D4.js} +1 -1
- package/{math-iMbABIPW.js → math-DLm1IDK6.js} +6 -6
- package/{mathInput-B6Bg1QEo.js → mathInput-eONrHxoP.js} +5 -5
- package/{matrixInput-B238KXDv.js → matrixInput-C7g0XOqx.js} +4 -4
- package/{mdash-DEvq1cjP.js → mdash-NH_qmzqu.js} +2 -2
- package/{nbsp-Dsl9_cxL.js → nbsp-qJ7mwdut.js} +2 -2
- package/{ndash-GRxfvOiz.js → ndash-D3nxFwtH.js} +2 -2
- package/{number-CDVZhh5l.js → number-H2keFtdq.js} +6 -6
- package/{orbitalDiagram-BrRNJ-hx.js → orbitalDiagram-ZTTXqrX6.js} +2 -2
- package/{orbitalDiagramInput-CEfC93uM.js → orbitalDiagramInput-B65ZxI3C.js} +2 -2
- package/{p-DBMvcOtx.js → p-hsiGi1-y.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-Dp5t0Tqf.js → paginatorControls-DFTTwAKR.js} +2 -2
- package/{pegboard-BoGizLl2.js → pegboard-Dwl4NLO8.js} +4 -4
- package/{point-A71c0gvA.js → point-BxMweEVX.js} +5 -5
- package/{polygon-DXFcUElp.js → polygon-FSDuA_r7.js} +5 -5
- package/{polyline-CSsFsFLs.js → polyline-C-nENcrF.js} +4 -4
- package/{pre-D0wiWbxp.js → pre-BMSKxWwN.js} +3 -3
- package/{prefigure-jN5Cczfo.js → prefigure-CkcmFyJ1.js} +1 -1
- package/{pretzel-DGhpzMab.js → pretzel-DhJkq_Pn.js} +4 -4
- package/{q-L17ZmJOe.js → q-hdG8OiZm.js} +3 -3
- package/{ray-dNmg_jTj.js → ray-vLcgqqCD.js} +4 -4
- package/{ref-DkAmCPyV.js → ref-CEGaSQnC.js} +2 -2
- package/{regionBetweenCurveXAxis-Co4Ck6iC.js → regionBetweenCurveXAxis-r_hdnCm4.js} +5 -5
- package/{regionBetweenCurves-Cd4qJpEX.js → regionBetweenCurves-BBcnBkLQ.js} +4 -4
- package/{row-DEZ-WNnx.js → row-9unaXR20.js} +2 -2
- package/{rq-B6w8uh-w.js → rq-fmUaaduH.js} +2 -2
- package/{rsq-BWVlgxGC.js → rsq-lqvgu6Wi.js} +2 -2
- package/{section-CNyOinIq.js → section-CXPnpIXY.js} +5 -5
- package/{sha256-C0vj3HDn-BsUxK-9W.js → sha256-C0vj3HDn-Buj5Gdvq.js} +1 -1
- package/{sideBySide-lOJ6qiap.js → sideBySide-B2DpVN3r.js} +2 -2
- package/{slider-BSqpBfdv.js → slider-DcTJbzu6.js} +3 -3
- package/{solution-jk6gi-WR.js → solution-DRp1Q6E6.js} +4 -4
- package/{spreadsheet-Bvu7xr0m.js → spreadsheet-DzjrnI6b.js} +2 -2
- package/{sq-CHrxA8-w.js → sq-BMWgsD0Z.js} +3 -3
- package/{subsetOfRealsInput-DoHPYIfx.js → subsetOfRealsInput-BOPQlYtg.js} +2 -2
- package/{summaryStatistics-BYn2MTRE.js → summaryStatistics-DhFwWMS6.js} +2 -2
- package/{table-DALWywkp.js → table-B7tM-xpW.js} +2 -2
- package/{tabular-zil5q2lo.js → tabular-MnX8IUjU.js} +2 -2
- package/{tag-Be6GK1Dg.js → tag-Df_qp-c4.js} +2 -2
- package/{text-azjg_vH4.js → text-CuDcSBLv.js} +6 -6
- package/{textInput-BTJFT5z_.js → textInput-DH5xIprC.js} +23 -8
- package/{tooltip-provider-B1Zgr_5S.js → tooltip-provider-B6EPYLTk.js} +1 -1
- package/{useAnchoredGraphDragHandler-BlMqsEMR.js → useAnchoredGraphDragHandler-EKBNicNv.js} +1 -1
- package/useDoenetRenderer-SRayHDug.js +114 -0
- package/{useSubmitActionWithDelay-IdbpDCEa.js → useSubmitActionWithDelay-QRC5-UJW.js} +2 -2
- package/{vector-bi6mJE_z.js → vector-DNtjyLwB.js} +5 -5
- package/{video-BGq8489h.js → video-B8B2HUSQ.js} +4 -4
- package/useDoenetRenderer-CuVsO9sr.js +0 -114
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-BsqkhdxE.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { j as jxg, e as syncLineFamilyVisibility, s as syncLayer, b as syncLineStrokeStyle, a as syncWithLabelToggle, c as syncLabelStrokeColor, f as applyLineFamilyLabelPlacement, g as buildLineFamilyLabelAttributes, h 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, e as syncLineFamilyVisibility, s as syncLayer, b as syncLineStrokeStyle, a as syncWithLabelToggle, c as syncLabelStrokeColor, f as applyLineFamilyLabelPlacement, g as buildLineFamilyLabelAttributes, h as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-GW1Rr-hi.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-SRayHDug.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Cp3oSAg3.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-BsqkhdxE.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-SRayHDug.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, o as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as DocContext, o as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-BsqkhdxE.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { j as jxg } 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 } from "./JSXGraphRenderer-GW1Rr-hi.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-SRayHDug.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Cp3oSAg3.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-8hjE6oob.js";
|
|
7
7
|
const regionBetweenCurveXAxis = React__default.memo(function RegionBetweenCurveXAxis(props) {
|
|
8
8
|
let { id, SVs } = useDoenetRenderer(props);
|
|
9
9
|
RegionBetweenCurveXAxis.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { k as DocContext, o as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as DocContext, o as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-BsqkhdxE.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-SRayHDug.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Cp3oSAg3.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-8hjE6oob.js";
|
|
7
7
|
const regionBetweenCurves = React__default.memo(function RegionBetweenCurves(props) {
|
|
8
8
|
let { id, SVs } = useDoenetRenderer(props);
|
|
9
9
|
RegionBetweenCurves.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-BsqkhdxE.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-SRayHDug.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-BsqkhdxE.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-SRayHDug.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-BsqkhdxE.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-SRayHDug.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, n as cesc, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as DocContext, n as cesc, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-BsqkhdxE.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-Ds-5dfK1.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-SRayHDug.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-R_KNNFiX.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-QRC5-UJW.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-BsqkhdxE.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-SRayHDug.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, z as ActionButton, l as Context } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports, A as ActionButtonGroup, z as ActionButton, l as Context } from "./doenetml-BsqkhdxE.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-SRayHDug.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-LxelRspf.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-BsqkhdxE.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-SRayHDug.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-Ds-5dfK1.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-R_KNNFiX.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-BsqkhdxE.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-SRayHDug.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-BsqkhdxE.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-SRayHDug.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-DuCQF9D4.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, F as ToggleButtonGroup, T as ToggleButton, A as ActionButtonGroup, z as ActionButton } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports, F as ToggleButtonGroup, T as ToggleButton, A as ActionButtonGroup, z as ActionButton } from "./doenetml-BsqkhdxE.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-SRayHDug.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-BsqkhdxE.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-SRayHDug.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-BsqkhdxE.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-SRayHDug.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-BsqkhdxE.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-SRayHDug.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-BsqkhdxE.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-SRayHDug.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, l as Context, j as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-
|
|
1
|
+
import { k as DocContext, l as Context, j as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-BsqkhdxE.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-GW1Rr-hi.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-Cp3oSAg3.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-SRayHDug.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-FjGwKnox.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-EKBNicNv.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 { l as Context, j as jsxRuntimeExports, M as MathJax } from "./doenetml-
|
|
1
|
+
import { l as Context, j as jsxRuntimeExports, M as MathJax } from "./doenetml-BsqkhdxE.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-GW1Rr-hi.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-SRayHDug.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-Cp3oSAg3.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-QRC5-UJW.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-DC2Mnvz3.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);
|
|
@@ -117,6 +117,18 @@ function TextInput(props) {
|
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
+
function applyDisabledStyleJXG(rendNodeInput, disabled2) {
|
|
121
|
+
if (disabled2) {
|
|
122
|
+
rendNodeInput.style.background = "var(--revealButtonSurface)";
|
|
123
|
+
rendNodeInput.style.border = "2px solid var(--revealButtonSurface)";
|
|
124
|
+
rendNodeInput.style.cursor = "not-allowed";
|
|
125
|
+
} else {
|
|
126
|
+
rendNodeInput.style.background = "var(--canvas)";
|
|
127
|
+
rendNodeInput.style.border = "";
|
|
128
|
+
rendNodeInput.style.borderColor = "var(--canvasText)";
|
|
129
|
+
rendNodeInput.style.cursor = "auto";
|
|
130
|
+
}
|
|
131
|
+
}
|
|
120
132
|
function createInputJXG() {
|
|
121
133
|
if (board === null) {
|
|
122
134
|
return null;
|
|
@@ -185,8 +197,7 @@ function TextInput(props) {
|
|
|
185
197
|
newInputJXG.rendNodeInput.addEventListener("focus", handleFocus);
|
|
186
198
|
newInputJXG.rendNodeInput.style.width = width;
|
|
187
199
|
newInputJXG.rendNodeInput.style.color = "var(--canvasText)";
|
|
188
|
-
newInputJXG.rendNodeInput.
|
|
189
|
-
newInputJXG.rendNodeInput.style.borderColor = "var(--canvasText)";
|
|
200
|
+
applyDisabledStyleJXG(newInputJXG.rendNodeInput, SVs.disabled);
|
|
190
201
|
newInputJXG.rendNodeLabel.style.marginRight = "2px";
|
|
191
202
|
newInputJXG.on("down", function(e) {
|
|
192
203
|
document.activeElement?.blur();
|
|
@@ -382,6 +393,10 @@ function TextInput(props) {
|
|
|
382
393
|
if (inputJXG.current.visProp.disabled !== SVs.disabled) {
|
|
383
394
|
inputJXG.current.visProp.disabled = SVs.disabled;
|
|
384
395
|
inputJXG.current.setAttribute({ disabled: SVs.disabled });
|
|
396
|
+
applyDisabledStyleJXG(
|
|
397
|
+
inputJXG.current.rendNodeInput,
|
|
398
|
+
SVs.disabled
|
|
399
|
+
);
|
|
385
400
|
}
|
|
386
401
|
inputJXG.current.visProp.highlight = !fixLocation.current;
|
|
387
402
|
inputJXG.current.visProp.fixed = fixed.current;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a3 as createStoreContext, a4 as HovercardScopedContextProvider, a5 as HovercardContextProvider, a6 as createDialogComponent, I as forwardRef, J as createElement, K as createHook, N as invariant, a7 as useWrapElement, j as jsxRuntimeExports, O as useStoreState, a8 as useHovercard, a9 as isFalsyBooleanCallback, aa as contains, ab as sync, ac as chain, ad as useEvent, ae as useHovercardAnchor, af as createStore, ag as createHovercardStore, ah as defaultValue, ai as useStore, aj as useStoreProps, ak as useHovercardStoreProps } from "./doenetml-
|
|
1
|
+
import { a3 as createStoreContext, a4 as HovercardScopedContextProvider, a5 as HovercardContextProvider, a6 as createDialogComponent, I as forwardRef, J as createElement, K as createHook, N as invariant, a7 as useWrapElement, j as jsxRuntimeExports, O as useStoreState, a8 as useHovercard, a9 as isFalsyBooleanCallback, aa as contains, ab as sync, ac as chain, ad as useEvent, ae as useHovercardAnchor, af as createStore, ag as createHovercardStore, ah as defaultValue, ai as useStore, aj as useStoreProps, ak as useHovercardStoreProps } from "./doenetml-BsqkhdxE.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-GW1Rr-hi.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 { q as useAppSelector, v as mainSlice, w as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-BsqkhdxE.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-CR6IX373.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-GW1Rr-hi.js").then((n) => n.i), "./renderers/_error.tsx": () => import("./_error-CIGqmNhi.js"), "./renderers/alert.tsx": () => import("./alert-CM8Y3VBH.js"), "./renderers/angle.tsx": () => import("./angle-Bu3g7HAh.js"), "./renderers/answer.tsx": () => import("./answer-FKJaI8Np.js"), "./renderers/asList.tsx": () => import("./asList-DsTe0uOj.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-OCJir8iH.js"), "./renderers/boolean.tsx": () => import("./boolean-BOQJMyQ3.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-B2fFKsCO.js"), "./renderers/br.tsx": () => import("./br-DSVzxv2M.js"), "./renderers/button.tsx": () => import("./button-CnOz_hRj.js"), "./renderers/c.tsx": () => import("./c-CAgHjm1i.js"), "./renderers/cell.tsx": () => import("./cell-CeCRqOJG.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-FjGwKnox.js"), "./renderers/circle.tsx": () => import("./circle-DhoLX_E2.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-BrunjE_s.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-ByLnOW8V.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-CFnPjCLw.js"), "./renderers/containerInline.tsx": () => import("./containerInline-Dsquvroz.js"), "./renderers/curve.tsx": () => import("./curve-dcYleNzn.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-CT0qVvld.js"), "./renderers/em.tsx": () => import("./em-BhXUjVD0.js"), "./renderers/embed.tsx": () => import("./embed-DKX4nmcO.js"), "./renderers/feedback.tsx": () => import("./feedback-BcDy_KTW.js"), "./renderers/figure.tsx": () => import("./figure-DrjEufha.js"), "./renderers/footnote.tsx": () => import("./footnote-BTQIBRME.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-Czx8SZWU.js"), "./renderers/graph.tsx": () => import("./graph-Cp3oSAg3.js"), "./renderers/hint.tsx": () => import("./hint-TxNyqo-X.js"), "./renderers/hr.tsx": () => import("./hr-CBgKR8h1.js"), "./renderers/image.tsx": () => import("./image-DoGJdbcm.js"), "./renderers/label.tsx": () => import("./label-CktsCJXw.js"), "./renderers/legend.tsx": () => import("./legend-uBDc0SH1.js"), "./renderers/line.tsx": () => import("./line-BQpqrYkT.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-HsDapg7M.js"), "./renderers/list.tsx": () => import("./list-BW6WWNBI.js"), "./renderers/lq.tsx": () => import("./lq-BMEKGtrB.js"), "./renderers/lsq.tsx": () => import("./lsq-BJLFkKTA.js"), "./renderers/math.tsx": () => import("./math-DLm1IDK6.js"), "./renderers/mathInput.tsx": () => import("./mathInput-eONrHxoP.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-C7g0XOqx.js"), "./renderers/mdash.tsx": () => import("./mdash-NH_qmzqu.js"), "./renderers/nbsp.tsx": () => import("./nbsp-qJ7mwdut.js"), "./renderers/ndash.tsx": () => import("./ndash-D3nxFwtH.js"), "./renderers/number.tsx": () => import("./number-H2keFtdq.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-ZTTXqrX6.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-B65ZxI3C.js"), "./renderers/p.tsx": () => import("./p-hsiGi1-y.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-DFTTwAKR.js"), "./renderers/pegboard.tsx": () => import("./pegboard-Dwl4NLO8.js"), "./renderers/point.tsx": () => import("./point-BxMweEVX.js"), "./renderers/polygon.tsx": () => import("./polygon-FSDuA_r7.js"), "./renderers/polyline.tsx": () => import("./polyline-C-nENcrF.js"), "./renderers/pre.tsx": () => import("./pre-BMSKxWwN.js"), "./renderers/prefigure.tsx": () => import("./prefigure-CkcmFyJ1.js"), "./renderers/pretzel.tsx": () => import("./pretzel-DhJkq_Pn.js"), "./renderers/q.tsx": () => import("./q-hdG8OiZm.js"), "./renderers/ray.tsx": () => import("./ray-vLcgqqCD.js"), "./renderers/ref.tsx": () => import("./ref-CEGaSQnC.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-r_hdnCm4.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-BBcnBkLQ.js"), "./renderers/row.tsx": () => import("./row-9unaXR20.js"), "./renderers/rq.tsx": () => import("./rq-fmUaaduH.js"), "./renderers/rsq.tsx": () => import("./rsq-lqvgu6Wi.js"), "./renderers/section.tsx": () => import("./section-CXPnpIXY.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-B2DpVN3r.js"), "./renderers/slider.tsx": () => import("./slider-DcTJbzu6.js"), "./renderers/solution.tsx": () => import("./solution-DRp1Q6E6.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-DzjrnI6b.js"), "./renderers/sq.tsx": () => import("./sq-BMWgsD0Z.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-BOPQlYtg.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-DhFwWMS6.js"), "./renderers/table.tsx": () => import("./table-B7tM-xpW.js"), "./renderers/tabular.tsx": () => import("./tabular-MnX8IUjU.js"), "./renderers/tag.tsx": () => import("./tag-Df_qp-c4.js"), "./renderers/text.tsx": () => import("./text-CuDcSBLv.js"), "./renderers/textInput.tsx": () => import("./textInput-DH5xIprC.js"), "./renderers/vector.tsx": () => import("./vector-DNtjyLwB.js"), "./renderers/video.tsx": () => import("./video-B8B2HUSQ.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-BsqkhdxE.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-Ds-5dfK1.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, M as MathJax } from "./doenetml-
|
|
1
|
+
import { k as DocContext, j as jsxRuntimeExports, t as textRendererStyle, M as MathJax } from "./doenetml-BsqkhdxE.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { j as jxg, s as syncLayer, d as syncVisPropValues, b as syncLineStrokeStyle, a as syncWithLabelToggle, c as syncLabelStrokeColor, f as applyLineFamilyLabelPlacement, g as buildLineFamilyLabelAttributes, h 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, d as syncVisPropValues, b as syncLineStrokeStyle, a as syncWithLabelToggle, c as syncLabelStrokeColor, f as applyLineFamilyLabelPlacement, g as buildLineFamilyLabelAttributes, h as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-GW1Rr-hi.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-SRayHDug.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-Cp3oSAg3.js";
|
|
6
|
+
import { ChoiceInputInlineContext } from "./choiceInput-FjGwKnox.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-BsqkhdxE.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-SRayHDug.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-DC2Mnvz3.js";
|
|
6
6
|
import { g as getNonInlineMediaLayoutStyles } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
7
|
-
import { N as NonInlineMediaWrapper } from "./NonInlineMediaWrapper-C-
|
|
7
|
+
import { N as NonInlineMediaWrapper } from "./NonInlineMediaWrapper-C-DhAxZ_.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;
|