@doenet/doenetml 0.7.26-dev.571 → 0.7.26-dev.572
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-DlsnDwIt.js → AnswerResponseButton-zNtd5s5y.js} +2 -2
- package/{Description-C05RmhBc.js → Description-D3U29Z4A.js} +1 -1
- package/{DynamicMath-0JWrNNqs.js → DynamicMath-CAf5EOCk.js} +1 -1
- package/{EditorViewer-BDWWotOQ.js → EditorViewer-LMY8FfzB.js} +7 -7
- package/{GraphFrame-DRuIusbl.js → GraphFrame-DgqRdBbk.js} +2 -2
- package/{JSXGraphRenderer-BiY11WVG.js → JSXGraphRenderer-XWKWy4-F.js} +1 -1
- package/{NonInlineMediaWrapper-CrNtlJ3n.js → NonInlineMediaWrapper-Dy4fM_bE.js} +1 -1
- package/{_error-BpZao1cE.js → _error-CFdzrnLM.js} +2 -2
- package/{alert-CUuyh3ox.js → alert-D04sHqdn.js} +3 -3
- package/{angle-DizYaFoA.js → angle-Dspy6vIH.js} +7 -7
- package/{answer-BS1qCC3W.js → answer-zY_vq2ww.js} +6 -6
- package/{asList-0glVXm9h.js → asList-fztVpm8p.js} +2 -2
- package/{blockQuote-BocBHZKU.js → blockQuote-DouLhHPJ.js} +3 -3
- package/{boolean-DCo3ENxS.js → boolean-BnDOi2Nv.js} +2 -2
- package/{booleanInput-BiiTqVBp.js → booleanInput-DX5wsv98.js} +6 -6
- package/{br-CN7BeUzn.js → br-CvGm0QLJ.js} +2 -2
- package/{button-C0zoQjei.js → button-Ve8A_BO9.js} +4 -4
- package/{c-jFLO-KfB.js → c-7Her5tG2.js} +3 -3
- package/{cell-HP_P8OVo.js → cell-B_O6N44M.js} +3 -3
- package/{chart-B4sMKJA2.js → chart-BkSUhnWn.js} +4 -4
- package/{choiceInput-DKyP88Ek.js → choiceInput-2tbCOvtR.js} +5 -5
- package/{circle-BCrW4EMt.js → circle-CqSkdKOx.js} +6 -6
- package/{cobwebPolyline-BLkBWHti.js → cobwebPolyline-LwRomtHy.js} +4 -4
- package/{codeEditor-CfrdzFmg.js → codeEditor-DrjGMeDT.js} +2 -2
- package/codemirror.js +1 -1
- package/{composites-DSVkcpyo.js → composites-DUZoak0_.js} +1 -1
- package/{containerBlock-DWW-3Snc.js → containerBlock-Bw3umU-k.js} +4 -4
- package/{containerInline-CHr-GsZi.js → containerInline-CrNA-Qfl.js} +4 -4
- package/{curve-D0JQu0YP.js → curve-CiPL-CK9.js} +4 -4
- package/{doenetml-ClgPtrr6.js → doenetml-PgMMzEGD.js} +47 -15
- package/doenetml-external-worker.js +2 -2
- package/doenetml-inline-worker.js +3 -3
- package/doenetml-worker/index.esm.js +1 -1
- package/doenetml-worker/index.js +1 -1
- package/{ellipsis-DrRFPX8_.js → ellipsis-iWb00hqe.js} +2 -2
- package/{em-CDlX1Vk0.js → em-DtnLv6kn.js} +3 -3
- package/{embed-Cyq7SNNh.js → embed-DRDms-8_.js} +2 -2
- package/{feedback-BfS1lypO.js → feedback-CHLHF8nV.js} +4 -4
- package/{figure-Ci2Ufr7V.js → figure-DgWzzXfZ.js} +3 -3
- package/{fillPatterns-Df5aTwU4.js → fillPatterns-CUIi3Pe_.js} +1 -1
- package/{footnote-CDsjSiZw.js → footnote-SKiSBzB4.js} +3 -3
- package/{fractionInput-D2ZzTjF2.js → fractionInput-oBJb2mOX.js} +4 -4
- package/{graph-BlfCm7m4.js → graph-x_OnMMb7.js} +6 -6
- package/{hint-D8GozWsH.js → hint-CNpwo6VM.js} +4 -4
- package/{hovercard-store-D75mgP9s.js → hovercard-store-BO9rPaGT.js} +1 -1
- package/{hr-DrNW-IAy.js → hr-DE_DB_hn.js} +2 -2
- package/{image-BMffCYbp.js → image-DC0OAoGr.js} +7 -7
- package/{index-COdWI3C-.js → index-B6QVEKAt.js} +45 -13
- package/{index-D1oIUo8u.js → index-bbPwfcbW.js} +1 -1
- package/{index.es-Bxyz5A2j.js → index.es-BmdS9muB.js} +1 -1
- package/index.js +1 -1
- package/{label-DMgi13xj.js → label-D_4U-4Jo.js} +7 -7
- package/{labelWithLatex-OgyqJA2k.js → labelWithLatex-D69TkcV_.js} +2 -2
- package/{legend-C1QqPUgt.js → legend-D-Zr8vmM.js} +4 -4
- package/{line-CQ-ZNFC0.js → line-DAudJpgx.js} +7 -7
- package/{lineFamilyDragHandlers-CO4b-nwq.js → lineFamilyDragHandlers-L0YYLE39.js} +1 -1
- package/{lineSegment-Dev_1lGH.js → lineSegment-C_QvZlOv.js} +5 -5
- package/{list-BhtzvPxq.js → list-SzfazEfw.js} +4 -4
- package/{lq-CJd78iQB.js → lq-DxbrTrvt.js} +2 -2
- package/{lsq-CJ__fBKU.js → lsq-DY-rs_h1.js} +2 -2
- package/{markupRenderer-BKI6jPSC.js → markupRenderer-Bpj478Hc.js} +1 -1
- package/{math-Dm24DYRg.js → math-8cUGybnW.js} +8 -8
- package/{mathInput-DhIYKafP.js → mathInput-CgwX1oU0.js} +8 -8
- package/{mathInputSlots-CSU0wkNU.js → mathInputSlots-8xl-svdV.js} +1 -1
- package/{matrixInput-_wnKBNDY.js → matrixInput-Bopsk47s.js} +4 -4
- package/{mdash-B98n_Dkp.js → mdash-z9yaPP_9.js} +2 -2
- package/{nbsp-C9wcTzu9.js → nbsp-fNJ3DNiB.js} +2 -2
- package/{ndash-CUCluowr.js → ndash-BuBwHfzQ.js} +2 -2
- package/{number-dtAGRmqo.js → number-B9N-tSB4.js} +7 -7
- package/{orbitalDiagram-B42WIkcg.js → orbitalDiagram-Cks_vZzj.js} +2 -2
- package/{orbitalDiagramInput-CinCD5su.js → orbitalDiagramInput-DXokzywe.js} +2 -2
- package/{p-2BMkdx24.js → p-Deq27mzL.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-CVKrOVQ3.js → paginatorControls-CBxZ-3FJ.js} +2 -2
- package/{pegboard-DAhWt0ze.js → pegboard-Cq-dErzM.js} +4 -4
- package/{point-CN2JFQTf.js → point-akq49rQP.js} +7 -7
- package/{polygon-BJ53xVP7.js → polygon-Vwt-D_Sz.js} +6 -6
- package/{polyline-1uXma0kg.js → polyline-DfczwpE5.js} +5 -5
- package/{pre-DjbEcO2X.js → pre-BPLnccKd.js} +3 -3
- package/{prefigure-B7C4_8DK.js → prefigure-BUPO6YQQ.js} +1 -1
- package/{pretzel-DQ7pT99W.js → pretzel-D583IyL6.js} +4 -4
- package/{q-4_qFT_5u.js → q-B8jUrPjs.js} +3 -3
- package/{ray-BIA5SH5K.js → ray-Cke8uONy.js} +5 -5
- package/{ref-D9KceMOA.js → ref-DVEzQ1aY.js} +2 -2
- package/{regionBetweenCurveXAxis-Dn_o0-sH.js → regionBetweenCurveXAxis-CtnRbMtG.js} +5 -5
- package/{regionBetweenCurves-DH88oXno.js → regionBetweenCurves-DUHjpyUo.js} +5 -5
- package/{row-BIc3D1aN.js → row-CfWGCpd5.js} +2 -2
- package/{rq-DZKAXcim.js → rq-BH6frDIO.js} +2 -2
- package/{rsq-cncZplfi.js → rsq-DSYEyY3J.js} +2 -2
- package/{section-U0YGG0kT.js → section-mu7uRgz_.js} +5 -5
- package/{sha256-8sXzDnE0-D1j83WY2.js → sha256-8sXzDnE0-CYk2peHQ.js} +1 -1
- package/{sideBySide-BK8_mN0H.js → sideBySide-D8L6uZUZ.js} +2 -2
- package/{slider-C_izhoyJ.js → slider-BLhelRlD.js} +3 -3
- package/{slopeField-CbBs8skW.js → slopeField-DWt_LmRo.js} +2 -2
- package/{solution-8ISlqOK1.js → solution-BnxIR_yt.js} +4 -4
- package/{spreadsheet-CY6p0PPK.js → spreadsheet-AemP6yw2.js} +2 -2
- package/{sq-r6TLB87K.js → sq-B2HGBuzc.js} +3 -3
- package/{subsetOfRealsInput-Cp5ddB-q.js → subsetOfRealsInput-3KGr03Ey.js} +2 -2
- package/{summaryStatistics-CViVqnNK.js → summaryStatistics-BA9O53rB.js} +2 -2
- package/{table-CNg_aFtV.js → table-BW_Ntu-7.js} +2 -2
- package/{tabular-WldWOJun.js → tabular-1ENo1S0x.js} +2 -2
- package/{tag-BQEEITcL.js → tag-C4vLX-WP.js} +2 -2
- package/{text-2qpTfb1z.js → text-C4edI0qX.js} +6 -6
- package/{textInput-DWVHFrMI.js → textInput-BdSnAFlA.js} +7 -7
- package/{tooltip-provider-D3rXMbIp.js → tooltip-provider-DOnFbVCY.js} +2 -2
- package/{useAnchoredGraphDragHandler-D_o-IlCu.js → useAnchoredGraphDragHandler-CEQh7Cxv.js} +1 -1
- package/useDoenetRenderer-QI4Rm3mD.js +114 -0
- package/{useFieldCurve-BuCcl3hh.js → useFieldCurve-C6vr5pQE.js} +2 -2
- package/{useSubmitActionWithDelay-r1OsiIEG.js → useSubmitActionWithDelay-v-huSZJK.js} +2 -2
- package/{vector-DD5mByv8.js → vector-DtcBe0L3.js} +7 -7
- package/{vectorField-DW8JHQgF.js → vectorField-BbdSrHs6.js} +2 -2
- package/{video-Q38z8BUo.js → video-DLC7oUNN.js} +4 -4
- package/useDoenetRenderer-JI5-cz4o.js +0 -114
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-PgMMzEGD.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-QI4Rm3mD.js";
|
|
4
4
|
import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
5
5
|
function isWhitespaceTextChild(child) {
|
|
6
6
|
return typeof child === "string" && child.trim() === "";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as useT, q as jsxRuntimeExports, U as ActionButtonGroup, V as ActionButton, K as Context } from "./doenetml-
|
|
1
|
+
import { u as useT, q as jsxRuntimeExports, U as ActionButtonGroup, V as ActionButton, K as Context } from "./doenetml-PgMMzEGD.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-QI4Rm3mD.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-D69TkcV_.js";
|
|
6
6
|
import { l as ltrIslandProps } from "./direction-BwrU7jHk.js";
|
|
7
7
|
let round_to_decimals = (x, n) => {
|
|
8
8
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
-
import { u as useFieldFunction, a as useFieldCurve, b as buildSlopeFieldData } from "./useFieldCurve-
|
|
2
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-QI4Rm3mD.js";
|
|
3
|
+
import { u as useFieldFunction, a as useFieldCurve, b as buildSlopeFieldData } from "./useFieldCurve-C6vr5pQE.js";
|
|
4
4
|
const slopeField = React__default.memo(function SlopeField(props) {
|
|
5
5
|
let { SVs } = useDoenetRenderer(props);
|
|
6
6
|
SlopeField.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as useT, J as useRecordVisibilityChanges, v as useChromeLangDir, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, J as useRecordVisibilityChanges, v as useChromeLangDir, q as jsxRuntimeExports } from "./doenetml-PgMMzEGD.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-QI4Rm3mD.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-BmdS9muB.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-DUZoak0_.js";
|
|
7
7
|
import { c as clickToToggleLabel } from "./disclosure-axyZa36E.js";
|
|
8
8
|
const solution = React__default.memo(function Solution(props) {
|
|
9
9
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as DocContext, J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { E as DocContext, J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-PgMMzEGD.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-QI4Rm3mD.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 { q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as jsxRuntimeExports } from "./doenetml-PgMMzEGD.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-QI4Rm3mD.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-Bpj478Hc.js";
|
|
5
5
|
const sq = React__default.memo(function Sq(props) {
|
|
6
6
|
const { SVs, children } = useDoenetRenderer(props);
|
|
7
7
|
const body = renderMarkupBody({ SVs, children });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useT, J as useRecordVisibilityChanges, q as jsxRuntimeExports, $ as ToggleButtonGroup, Y as ToggleButton, U as ActionButtonGroup, V as ActionButton } from "./doenetml-
|
|
1
|
+
import { u as useT, J as useRecordVisibilityChanges, q as jsxRuntimeExports, $ as ToggleButtonGroup, Y as ToggleButton, U as ActionButtonGroup, V as ActionButton } from "./doenetml-PgMMzEGD.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-QI4Rm3mD.js";
|
|
4
4
|
import { l as ltrIslandProps } from "./direction-BwrU7jHk.js";
|
|
5
5
|
const subsetOfRealsInput = React__default.memo(function subsetOfReals(props) {
|
|
6
6
|
let { id, SVs, actions, callAction } = useDoenetRenderer(props, false);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useT, v as useChromeLangDir, J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, v as useChromeLangDir, J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-PgMMzEGD.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-QI4Rm3mD.js";
|
|
4
4
|
const summaryStatistics = React__default.memo(function SummaryStatistics(props) {
|
|
5
5
|
let { id, SVs, actions, callAction } = useDoenetRenderer(props);
|
|
6
6
|
const t = useT();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-PgMMzEGD.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-QI4Rm3mD.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 { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-PgMMzEGD.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-QI4Rm3mD.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 { q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as jsxRuntimeExports } from "./doenetml-PgMMzEGD.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-QI4Rm3mD.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 { E as DocContext, K as Context, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-
|
|
1
|
+
import { E as DocContext, K as Context, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-PgMMzEGD.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-XWKWy4-F.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-x_OnMMb7.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-QI4Rm3mD.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-2tbCOvtR.js";
|
|
8
8
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
9
9
|
import { u as useDraggableRefs } from "./useDraggableRefs-QaTfkVuD.js";
|
|
10
|
-
import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-
|
|
10
|
+
import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-CEQh7Cxv.js";
|
|
11
11
|
import { u as useJSXGraphCleanup } from "./useJSXGraphCleanup-BNk4sn6x.js";
|
|
12
12
|
import { e as resolveTextColor, f as resolveBackgroundColor } from "./styleColors-BrCvjxze.js";
|
|
13
13
|
const text = React__default.memo(function Text(props) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { I as useContentT, K as Context, q as jsxRuntimeExports, X as MathJax } from "./doenetml-
|
|
1
|
+
import { I as useContentT, K as Context, q as jsxRuntimeExports, X as MathJax } from "./doenetml-PgMMzEGD.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-XWKWy4-F.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-QI4Rm3mD.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-x_OnMMb7.js";
|
|
7
7
|
import { g as getPositionFromAnchorByCoordinate, P as POINTER_DRAG_THRESHOLD } from "./graph-W6vrFcBu.js";
|
|
8
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, w as wantsFullCheckWorkButton, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
9
|
-
import { D as DescriptionPopover } from "./Description-
|
|
8
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, w as wantsFullCheckWorkButton, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-v-huSZJK.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-D3U29Z4A.js";
|
|
10
10
|
import { a as addValidationStateToShortDescription } from "./validationState-DI_lxk1a.js";
|
|
11
|
-
import { b as useInMathSlot, c as useMathSlotEditing } from "./mathInputSlots-
|
|
11
|
+
import { b as useInMathSlot, c as useMathSlotEditing } from "./mathInputSlots-8xl-svdV.js";
|
|
12
12
|
import { u as useMathJaxOutOfTabOrder } from "./useMathJaxOutOfTabOrder-C0wsYqBF.js";
|
|
13
13
|
const EXPANDED_INPUT_MARGIN_X = 4;
|
|
14
14
|
const BOARD_INPUT_FALLBACK_WIDTH = "100px";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ai as createStoreContext, aj as createDialogComponent, a1 as forwardRef, a2 as createElement, a3 as createHook, a5 as invariant, ak as useWrapElement, q as jsxRuntimeExports, a6 as useStoreState, al as isFalsyBooleanCallback, am as contains, an as sync, ao as chain, ap as useEvent, aq as createStore, ar as defaultValue, as as useStore, at as useStoreProps } from "./doenetml-
|
|
2
|
-
import { H as HovercardScopedContextProvider, a as HovercardContextProvider, u as useHovercard, b as useHovercardAnchor, c as createHovercardStore, d as useHovercardStoreProps } from "./hovercard-store-
|
|
1
|
+
import { ai as createStoreContext, aj as createDialogComponent, a1 as forwardRef, a2 as createElement, a3 as createHook, a5 as invariant, ak as useWrapElement, q as jsxRuntimeExports, a6 as useStoreState, al as isFalsyBooleanCallback, am as contains, an as sync, ao as chain, ap as useEvent, aq as createStore, ar as defaultValue, as as useStore, at as useStoreProps } from "./doenetml-PgMMzEGD.js";
|
|
2
|
+
import { H as HovercardScopedContextProvider, a as HovercardContextProvider, u as useHovercard, b as useHovercardAnchor, c as createHovercardStore, d as useHovercardStoreProps } from "./hovercard-store-BO9rPaGT.js";
|
|
3
3
|
import { useRef, useEffect } from "react";
|
|
4
4
|
const ctx = createStoreContext([HovercardContextProvider], [HovercardScopedContextProvider]);
|
|
5
5
|
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-XWKWy4-F.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 { x as useAppSelector, y as mainSlice, z as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-PgMMzEGD.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-DgqRdBbk.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-XWKWy4-F.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-CFdzrnLM.js"), "./renderers/alert.tsx": () => import("./alert-D04sHqdn.js"), "./renderers/angle.tsx": () => import("./angle-Dspy6vIH.js"), "./renderers/answer.tsx": () => import("./answer-zY_vq2ww.js"), "./renderers/asList.tsx": () => import("./asList-fztVpm8p.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-DouLhHPJ.js"), "./renderers/boolean.tsx": () => import("./boolean-BnDOi2Nv.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-DX5wsv98.js"), "./renderers/br.tsx": () => import("./br-CvGm0QLJ.js"), "./renderers/button.tsx": () => import("./button-Ve8A_BO9.js"), "./renderers/c.tsx": () => import("./c-7Her5tG2.js"), "./renderers/cell.tsx": () => import("./cell-B_O6N44M.js"), "./renderers/chart.tsx": () => import("./chart-BkSUhnWn.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-2tbCOvtR.js"), "./renderers/circle.tsx": () => import("./circle-CqSkdKOx.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-LwRomtHy.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-DrjGMeDT.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-Bw3umU-k.js"), "./renderers/containerInline.tsx": () => import("./containerInline-CrNA-Qfl.js"), "./renderers/curve.tsx": () => import("./curve-CiPL-CK9.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-iWb00hqe.js"), "./renderers/em.tsx": () => import("./em-DtnLv6kn.js"), "./renderers/embed.tsx": () => import("./embed-DRDms-8_.js"), "./renderers/feedback.tsx": () => import("./feedback-CHLHF8nV.js"), "./renderers/figure.tsx": () => import("./figure-DgWzzXfZ.js"), "./renderers/footnote.tsx": () => import("./footnote-SKiSBzB4.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-oBJb2mOX.js"), "./renderers/graph.tsx": () => import("./graph-x_OnMMb7.js"), "./renderers/hint.tsx": () => import("./hint-CNpwo6VM.js"), "./renderers/hr.tsx": () => import("./hr-DE_DB_hn.js"), "./renderers/image.tsx": () => import("./image-DC0OAoGr.js"), "./renderers/label.tsx": () => import("./label-D_4U-4Jo.js"), "./renderers/legend.tsx": () => import("./legend-D-Zr8vmM.js"), "./renderers/line.tsx": () => import("./line-DAudJpgx.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-C_QvZlOv.js"), "./renderers/list.tsx": () => import("./list-SzfazEfw.js"), "./renderers/lq.tsx": () => import("./lq-DxbrTrvt.js"), "./renderers/lsq.tsx": () => import("./lsq-DY-rs_h1.js"), "./renderers/math.tsx": () => import("./math-8cUGybnW.js"), "./renderers/mathInput.tsx": () => import("./mathInput-CgwX1oU0.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-Bopsk47s.js"), "./renderers/mdash.tsx": () => import("./mdash-z9yaPP_9.js"), "./renderers/nbsp.tsx": () => import("./nbsp-fNJ3DNiB.js"), "./renderers/ndash.tsx": () => import("./ndash-BuBwHfzQ.js"), "./renderers/number.tsx": () => import("./number-B9N-tSB4.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-Cks_vZzj.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-DXokzywe.js"), "./renderers/p.tsx": () => import("./p-Deq27mzL.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-CBxZ-3FJ.js"), "./renderers/pegboard.tsx": () => import("./pegboard-Cq-dErzM.js"), "./renderers/point.tsx": () => import("./point-akq49rQP.js"), "./renderers/polygon.tsx": () => import("./polygon-Vwt-D_Sz.js"), "./renderers/polyline.tsx": () => import("./polyline-DfczwpE5.js"), "./renderers/pre.tsx": () => import("./pre-BPLnccKd.js"), "./renderers/prefigure.tsx": () => import("./prefigure-BUPO6YQQ.js"), "./renderers/pretzel.tsx": () => import("./pretzel-D583IyL6.js"), "./renderers/q.tsx": () => import("./q-B8jUrPjs.js"), "./renderers/ray.tsx": () => import("./ray-Cke8uONy.js"), "./renderers/ref.tsx": () => import("./ref-DVEzQ1aY.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-CtnRbMtG.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-DUHjpyUo.js"), "./renderers/row.tsx": () => import("./row-CfWGCpd5.js"), "./renderers/rq.tsx": () => import("./rq-BH6frDIO.js"), "./renderers/rsq.tsx": () => import("./rsq-DSYEyY3J.js"), "./renderers/section.tsx": () => import("./section-mu7uRgz_.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-D8L6uZUZ.js"), "./renderers/slider.tsx": () => import("./slider-BLhelRlD.js"), "./renderers/slopeField.tsx": () => import("./slopeField-DWt_LmRo.js"), "./renderers/solution.tsx": () => import("./solution-BnxIR_yt.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-AemP6yw2.js"), "./renderers/sq.tsx": () => import("./sq-B2HGBuzc.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-3KGr03Ey.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-BA9O53rB.js"), "./renderers/table.tsx": () => import("./table-BW_Ntu-7.js"), "./renderers/tabular.tsx": () => import("./tabular-1ENo1S0x.js"), "./renderers/tag.tsx": () => import("./tag-C4vLX-WP.js"), "./renderers/text.tsx": () => import("./text-C4edI0qX.js"), "./renderers/textInput.tsx": () => import("./textInput-BdSnAFlA.js"), "./renderers/vector.tsx": () => import("./vector-DtcBe0L3.js"), "./renderers/vectorField.tsx": () => import("./vectorField-BbdSrHs6.js"), "./renderers/video.tsx": () => import("./video-DLC7oUNN.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,6 +1,6 @@
|
|
|
1
1
|
import { useMemo, useContext, useRef } from "react";
|
|
2
|
-
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-
|
|
3
|
-
import { N as createFunctionFromDefinition, E as DocContext } from "./doenetml-
|
|
2
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-x_OnMMb7.js";
|
|
3
|
+
import { N as createFunctionFromDefinition, E as DocContext } from "./doenetml-PgMMzEGD.js";
|
|
4
4
|
import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
|
|
5
5
|
import { u as useJSXGraphCleanup } from "./useJSXGraphCleanup-BNk4sn6x.js";
|
|
6
6
|
function fieldFunctionFromDefinition(fDefinition) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { q as jsxRuntimeExports } from "./doenetml-
|
|
2
|
-
import { F as FontAwesomeIcon } from "./index.es-
|
|
1
|
+
import { q as jsxRuntimeExports } from "./doenetml-PgMMzEGD.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-BmdS9muB.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,11 +1,11 @@
|
|
|
1
|
-
import { E as DocContext, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-
|
|
1
|
+
import { E as DocContext, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-PgMMzEGD.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 { D as DynamicMath } from "./DynamicMath-
|
|
7
|
-
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-
|
|
8
|
-
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-XWKWy4-F.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-QI4Rm3mD.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-x_OnMMb7.js";
|
|
6
|
+
import { D as DynamicMath } from "./DynamicMath-CAf5EOCk.js";
|
|
7
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-L0YYLE39.js";
|
|
8
|
+
import { ChoiceInputInlineContext } from "./choiceInput-2tbCOvtR.js";
|
|
9
9
|
import { a as buildLineLikeAttributes, c as buildDragHandleAttributes } from "./buildGraphicalAttributes-B_soifR-.js";
|
|
10
10
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
11
11
|
import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
-
import { u as useFieldFunction, a as useFieldCurve, c as buildVectorFieldData } from "./useFieldCurve-
|
|
2
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-QI4Rm3mD.js";
|
|
3
|
+
import { u as useFieldFunction, a as useFieldCurve, c as buildVectorFieldData } from "./useFieldCurve-C6vr5pQE.js";
|
|
4
4
|
const vectorField = React__default.memo(function VectorField(props) {
|
|
5
5
|
let { SVs } = useDoenetRenderer(props);
|
|
6
6
|
VectorField.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-PgMMzEGD.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-QI4Rm3mD.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-D3U29Z4A.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-Dy4fM_bE.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 { x as useAppSelector, y as mainSlice, z as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-ClgPtrr6.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-DRuIusbl.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-BiY11WVG.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-BpZao1cE.js"), "./renderers/alert.tsx": () => import("./alert-CUuyh3ox.js"), "./renderers/angle.tsx": () => import("./angle-DizYaFoA.js"), "./renderers/answer.tsx": () => import("./answer-BS1qCC3W.js"), "./renderers/asList.tsx": () => import("./asList-0glVXm9h.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-BocBHZKU.js"), "./renderers/boolean.tsx": () => import("./boolean-DCo3ENxS.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-BiiTqVBp.js"), "./renderers/br.tsx": () => import("./br-CN7BeUzn.js"), "./renderers/button.tsx": () => import("./button-C0zoQjei.js"), "./renderers/c.tsx": () => import("./c-jFLO-KfB.js"), "./renderers/cell.tsx": () => import("./cell-HP_P8OVo.js"), "./renderers/chart.tsx": () => import("./chart-B4sMKJA2.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-DKyP88Ek.js"), "./renderers/circle.tsx": () => import("./circle-BCrW4EMt.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-BLkBWHti.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-CfrdzFmg.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-DWW-3Snc.js"), "./renderers/containerInline.tsx": () => import("./containerInline-CHr-GsZi.js"), "./renderers/curve.tsx": () => import("./curve-D0JQu0YP.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-DrRFPX8_.js"), "./renderers/em.tsx": () => import("./em-CDlX1Vk0.js"), "./renderers/embed.tsx": () => import("./embed-Cyq7SNNh.js"), "./renderers/feedback.tsx": () => import("./feedback-BfS1lypO.js"), "./renderers/figure.tsx": () => import("./figure-Ci2Ufr7V.js"), "./renderers/footnote.tsx": () => import("./footnote-CDsjSiZw.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-D2ZzTjF2.js"), "./renderers/graph.tsx": () => import("./graph-BlfCm7m4.js"), "./renderers/hint.tsx": () => import("./hint-D8GozWsH.js"), "./renderers/hr.tsx": () => import("./hr-DrNW-IAy.js"), "./renderers/image.tsx": () => import("./image-BMffCYbp.js"), "./renderers/label.tsx": () => import("./label-DMgi13xj.js"), "./renderers/legend.tsx": () => import("./legend-C1QqPUgt.js"), "./renderers/line.tsx": () => import("./line-CQ-ZNFC0.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-Dev_1lGH.js"), "./renderers/list.tsx": () => import("./list-BhtzvPxq.js"), "./renderers/lq.tsx": () => import("./lq-CJd78iQB.js"), "./renderers/lsq.tsx": () => import("./lsq-CJ__fBKU.js"), "./renderers/math.tsx": () => import("./math-Dm24DYRg.js"), "./renderers/mathInput.tsx": () => import("./mathInput-DhIYKafP.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-_wnKBNDY.js"), "./renderers/mdash.tsx": () => import("./mdash-B98n_Dkp.js"), "./renderers/nbsp.tsx": () => import("./nbsp-C9wcTzu9.js"), "./renderers/ndash.tsx": () => import("./ndash-CUCluowr.js"), "./renderers/number.tsx": () => import("./number-dtAGRmqo.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-B42WIkcg.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-CinCD5su.js"), "./renderers/p.tsx": () => import("./p-2BMkdx24.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-CVKrOVQ3.js"), "./renderers/pegboard.tsx": () => import("./pegboard-DAhWt0ze.js"), "./renderers/point.tsx": () => import("./point-CN2JFQTf.js"), "./renderers/polygon.tsx": () => import("./polygon-BJ53xVP7.js"), "./renderers/polyline.tsx": () => import("./polyline-1uXma0kg.js"), "./renderers/pre.tsx": () => import("./pre-DjbEcO2X.js"), "./renderers/prefigure.tsx": () => import("./prefigure-B7C4_8DK.js"), "./renderers/pretzel.tsx": () => import("./pretzel-DQ7pT99W.js"), "./renderers/q.tsx": () => import("./q-4_qFT_5u.js"), "./renderers/ray.tsx": () => import("./ray-BIA5SH5K.js"), "./renderers/ref.tsx": () => import("./ref-D9KceMOA.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-Dn_o0-sH.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-DH88oXno.js"), "./renderers/row.tsx": () => import("./row-BIc3D1aN.js"), "./renderers/rq.tsx": () => import("./rq-DZKAXcim.js"), "./renderers/rsq.tsx": () => import("./rsq-cncZplfi.js"), "./renderers/section.tsx": () => import("./section-U0YGG0kT.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-BK8_mN0H.js"), "./renderers/slider.tsx": () => import("./slider-C_izhoyJ.js"), "./renderers/slopeField.tsx": () => import("./slopeField-CbBs8skW.js"), "./renderers/solution.tsx": () => import("./solution-8ISlqOK1.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-CY6p0PPK.js"), "./renderers/sq.tsx": () => import("./sq-r6TLB87K.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-Cp5ddB-q.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-CViVqnNK.js"), "./renderers/table.tsx": () => import("./table-CNg_aFtV.js"), "./renderers/tabular.tsx": () => import("./tabular-WldWOJun.js"), "./renderers/tag.tsx": () => import("./tag-BQEEITcL.js"), "./renderers/text.tsx": () => import("./text-2qpTfb1z.js"), "./renderers/textInput.tsx": () => import("./textInput-DWVHFrMI.js"), "./renderers/vector.tsx": () => import("./vector-DD5mByv8.js"), "./renderers/vectorField.tsx": () => import("./vectorField-DW8JHQgF.js"), "./renderers/video.tsx": () => import("./video-Q38z8BUo.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
|
-
};
|