@doenet/doenetml 0.7.21-dev.345 → 0.7.21-dev.346
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-wmMjE6UY.js → AnswerResponseButton-YSbl2PsE.js} +2 -2
- package/{Description-DVVZ2jNm.js → Description-D57keU5m.js} +1 -1
- package/{GraphFrame-CeuV-ELJ.js → GraphFrame-Bm6nW99X.js} +2 -2
- package/{JSXGraphRenderer-CH_Clwpj.js → JSXGraphRenderer-BsFpSb95.js} +1 -1
- package/{NonInlineMediaWrapper-BkKCQSuc.js → NonInlineMediaWrapper-DfuFoJoS.js} +1 -1
- package/{_error-BHUS6fBR.js → _error-BQfXttBl.js} +2 -2
- package/{alert-Cj-rWHWT.js → alert-BRwfGbIw.js} +3 -3
- package/{angle-Dpx-xKH2.js → angle-DMiGKHFN.js} +6 -6
- package/{answer-DcO_FwAt.js → answer-nEDFb-NC.js} +5 -5
- package/{asList-CQl7DYPf.js → asList-jBFMWxgU.js} +2 -2
- package/{blockQuote-B2X8yZjZ.js → blockQuote-Dj4eZG_b.js} +3 -3
- package/{boolean-KqpK4-Kj.js → boolean-CIbko9uw.js} +2 -2
- package/{booleanInput-D3Y6f_O4.js → booleanInput-BHs5fLOR.js} +6 -6
- package/{br-Chu0IPyK.js → br-B7ukYx7x.js} +2 -2
- package/{button-DpCJT3g5.js → button-Djz3rNGq.js} +4 -4
- package/{c-wyaowz5f.js → c-CqW8msBM.js} +3 -3
- package/{cell-Dm9ysgxf.js → cell-BuY2CWqp.js} +3 -3
- package/{choiceInput-BTBsL8JA.js → choiceInput-DumOeAjF.js} +4 -4
- package/{circle-Cf29LjzJ.js → circle-taRR4fb7.js} +5 -5
- package/{cobwebPolyline-ERU9ClKC.js → cobwebPolyline-CbM1u6MX.js} +4 -4
- package/{codeEditor-BpX__-wM.js → codeEditor-n4Gf6oAm.js} +2 -2
- package/{composites-BBK8EANb.js → composites-DqFxnNP1.js} +1 -1
- package/{containerBlock-CCarN5lT.js → containerBlock-DaWlhZTg.js} +4 -4
- package/{containerInline-di9YzETB.js → containerInline-Ba4S6N8s.js} +4 -4
- package/{curve-DmY3B2Uq.js → curve-DNYDfOyA.js} +4 -4
- package/{doenetml-BSqko_NN.js → doenetml-DL2VQKtN.js} +4 -4
- package/doenetml-external-worker.js +2 -2
- package/doenetml-inline-worker.js +2 -2
- package/{ellipsis-KE8dAVa6.js → ellipsis-BLT7nFp1.js} +2 -2
- package/{em-F7IWfQBY.js → em-CCQ3kybG.js} +3 -3
- package/{embed-B02q9uRS.js → embed-CihOHzpC.js} +2 -2
- package/{feedback-ui54pmn4.js → feedback-Ce88mS0l.js} +4 -4
- package/{figure-DhVvMAU1.js → figure-fhODCADS.js} +3 -3
- package/{fillPatterns-BaVxthxO.js → fillPatterns-2eTHVLUl.js} +1 -1
- package/{footnote-C_OP5GgV.js → footnote-BMXxQIQ9.js} +3 -3
- package/{fractionInput-BjpaOqNe.js → fractionInput-i00B6LJQ.js} +4 -4
- package/{graph-Cv-sOM-W.js → graph-BPj62j7t.js} +6 -6
- package/{hint-IFoajQy_.js → hint-DdjXTIXP.js} +4 -4
- package/{hr-BVG9sotP.js → hr-C0NXaaap.js} +2 -2
- package/{image-CdGCmXkX.js → image-Bh_HpOoi.js} +7 -7
- package/{index-Db3Qj2zf.js → index-D0pqQSHj.js} +1 -1
- package/{index.es-B5tkZsn4.js → index.es-b9d7bzoD.js} +1 -1
- package/index.js +1 -1
- package/{label-DvxwHbTU.js → label-DwoGPZxc.js} +6 -6
- package/{labelWithLatex-C-jHE_tr.js → labelWithLatex-CJPaIZsU.js} +1 -1
- package/{legend-By9hMXoW.js → legend-C5U7r9MM.js} +4 -4
- package/{line-8cSy2BH-.js → line-BFx2aX30.js} +5 -5
- package/{lineSegment-CbSX5RkG.js → lineSegment-B1bU850L.js} +4 -4
- package/{list-CIYZcine.js → list-Bk9YwKe0.js} +4 -4
- package/{lq-B6D7X3yI.js → lq-DQAGMRf3.js} +2 -2
- package/{lsq-CJF9UO97.js → lsq-DToyZduX.js} +2 -2
- package/{markupRenderer-Dmem2sZG.js → markupRenderer--AYVlpvn.js} +1 -1
- package/{math-BTgwcDsT.js → math-62B35S7y.js} +6 -6
- package/{mathInput-CVe7l7Cp.js → mathInput-DR8pAjH0.js} +7 -7
- package/{matrixInput-CKFBsa_z.js → matrixInput-56Wb_1R8.js} +4 -4
- package/{mdash-BrJI1zfS.js → mdash-BEsm8DaC.js} +2 -2
- package/{nbsp-Dv185UdO.js → nbsp-B1nLBxag.js} +2 -2
- package/{ndash-A53X3aNJ.js → ndash-ZzfbD3Ht.js} +2 -2
- package/{number-pNMextHF.js → number-Bx7U1E1b.js} +6 -6
- package/{orbitalDiagram-AAO5smjT.js → orbitalDiagram-Bc4ynqTO.js} +2 -2
- package/{orbitalDiagramInput-xrtLRvN6.js → orbitalDiagramInput-DtgZgUs7.js} +2 -2
- package/{p-sDFxbXjy.js → p-DAIBAJtj.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-C_Tv-2TF.js → paginatorControls-BqPRewxd.js} +2 -2
- package/{pegboard-CZH_nMSa.js → pegboard-Da47_c0A.js} +4 -4
- package/{point-Ci64ChtU.js → point-4MAN_vlb.js} +5 -5
- package/{polygon-DIaXtdV9.js → polygon-CmTf2SSM.js} +5 -5
- package/{polyline-DtMUQFRJ.js → polyline-pyf9y5LN.js} +4 -4
- package/{pre-C6ZE-pnl.js → pre-C8c7DvOz.js} +3 -3
- package/{prefigure-BiJmEy1a.js → prefigure-rLOOb78s.js} +1 -1
- package/{pretzel-CvutHxJ1.js → pretzel-DYz_eIYw.js} +4 -4
- package/{q-BVrgrg4w.js → q-BTW4qqok.js} +3 -3
- package/{ray-DA9uxMvU.js → ray-D03AQPEt.js} +4 -4
- package/{ref-DXUT5ZI5.js → ref-BZOsEx_Q.js} +2 -2
- package/{regionBetweenCurveXAxis-B_a60h4d.js → regionBetweenCurveXAxis-CL_soQsz.js} +5 -5
- package/{regionBetweenCurves-B5S-pNtN.js → regionBetweenCurves-AiU0T4gU.js} +5 -5
- package/{row-Bft4F2uc.js → row-DLNsq2mS.js} +2 -2
- package/{rq-Cyxe86gT.js → rq-DwXI7SvK.js} +2 -2
- package/{rsq-Qa7irKpe.js → rsq-C3W9KZAM.js} +2 -2
- package/{section-a-7OaFrW.js → section-51M647ES.js} +5 -5
- package/{sha256-C0vj3HDn-CnceG3ym.js → sha256-C0vj3HDn-C-6gWafD.js} +1 -1
- package/{sideBySide-DZCNaTRZ.js → sideBySide-D1dMzsFj.js} +2 -2
- package/{slider-BPN-fm7c.js → slider-Dn5cPJF7.js} +3 -3
- package/{solution-BBcVzMTT.js → solution-KtROaLJ-.js} +4 -4
- package/{spreadsheet-CXeYZhdc.js → spreadsheet-CkWzyPaz.js} +2 -2
- package/{sq-CpbPJ-G4.js → sq-CPnQGoCl.js} +3 -3
- package/{subsetOfRealsInput-C4Qj_Mbd.js → subsetOfRealsInput-tK3sKNao.js} +2 -2
- package/{summaryStatistics-BWNmMIYl.js → summaryStatistics-BFZQsD93.js} +2 -2
- package/{table-dlbNtq_D.js → table-Cx4oDfwn.js} +2 -2
- package/{tabular-C5VhK91a.js → tabular-B4O9agEa.js} +2 -2
- package/{tag-DWFFxQLm.js → tag-B7mLqh1_.js} +2 -2
- package/{text-DtVN3fCd.js → text-DK5rpoKj.js} +6 -6
- package/{textInput-BSOh5wZ_.js → textInput-VuChsz5d.js} +6 -6
- package/{tooltip-provider-DqLcMRRy.js → tooltip-provider-CvKjmIjp.js} +1 -1
- package/{useAnchoredGraphDragHandler-B17dOF4B.js → useAnchoredGraphDragHandler-C5m4R4_r.js} +1 -1
- package/useDoenetRenderer-Yp_AcZpV.js +114 -0
- package/{useSubmitActionWithDelay-Yg74q6am.js → useSubmitActionWithDelay-B-7R6Fg4.js} +2 -2
- package/{vector-BgpgCpdO.js → vector-BzMon_ST.js} +5 -5
- package/{video-CP7A8m59.js → video-5gXUMJPq.js} +4 -4
- package/useDoenetRenderer-DIW8S6bB.js +0 -114
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-DL2VQKtN.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-Yp_AcZpV.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer--AYVlpvn.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-DL2VQKtN.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-BsFpSb95.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Yp_AcZpV.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-BPj62j7t.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-DL2VQKtN.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Yp_AcZpV.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-DL2VQKtN.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-BsFpSb95.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Yp_AcZpV.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-BPj62j7t.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-2eTHVLUl.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-DL2VQKtN.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-Yp_AcZpV.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-BPj62j7t.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-2eTHVLUl.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-BsFpSb95.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-DL2VQKtN.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Yp_AcZpV.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-DL2VQKtN.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Yp_AcZpV.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-DL2VQKtN.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Yp_AcZpV.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-DL2VQKtN.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-b9d7bzoD.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-Yp_AcZpV.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-DqFxnNP1.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-B-7R6Fg4.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-DL2VQKtN.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Yp_AcZpV.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-DL2VQKtN.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-Yp_AcZpV.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-CJPaIZsU.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-DL2VQKtN.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-Yp_AcZpV.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-b9d7bzoD.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-DqFxnNP1.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-DL2VQKtN.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-Yp_AcZpV.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-DL2VQKtN.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-Yp_AcZpV.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer--AYVlpvn.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-DL2VQKtN.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Yp_AcZpV.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-DL2VQKtN.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Yp_AcZpV.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-DL2VQKtN.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Yp_AcZpV.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-DL2VQKtN.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Yp_AcZpV.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-DL2VQKtN.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Yp_AcZpV.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-DL2VQKtN.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-BsFpSb95.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-BPj62j7t.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Yp_AcZpV.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-DumOeAjF.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-C5m4R4_r.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-DL2VQKtN.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-BsFpSb95.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Yp_AcZpV.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-BPj62j7t.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-B-7R6Fg4.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-D57keU5m.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-DL2VQKtN.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-BsFpSb95.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-DL2VQKtN.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-Bm6nW99X.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-BsFpSb95.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-BQfXttBl.js"), "./renderers/alert.tsx": () => import("./alert-BRwfGbIw.js"), "./renderers/angle.tsx": () => import("./angle-DMiGKHFN.js"), "./renderers/answer.tsx": () => import("./answer-nEDFb-NC.js"), "./renderers/asList.tsx": () => import("./asList-jBFMWxgU.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-Dj4eZG_b.js"), "./renderers/boolean.tsx": () => import("./boolean-CIbko9uw.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-BHs5fLOR.js"), "./renderers/br.tsx": () => import("./br-B7ukYx7x.js"), "./renderers/button.tsx": () => import("./button-Djz3rNGq.js"), "./renderers/c.tsx": () => import("./c-CqW8msBM.js"), "./renderers/cell.tsx": () => import("./cell-BuY2CWqp.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-DumOeAjF.js"), "./renderers/circle.tsx": () => import("./circle-taRR4fb7.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-CbM1u6MX.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-n4Gf6oAm.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-DaWlhZTg.js"), "./renderers/containerInline.tsx": () => import("./containerInline-Ba4S6N8s.js"), "./renderers/curve.tsx": () => import("./curve-DNYDfOyA.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-BLT7nFp1.js"), "./renderers/em.tsx": () => import("./em-CCQ3kybG.js"), "./renderers/embed.tsx": () => import("./embed-CihOHzpC.js"), "./renderers/feedback.tsx": () => import("./feedback-Ce88mS0l.js"), "./renderers/figure.tsx": () => import("./figure-fhODCADS.js"), "./renderers/footnote.tsx": () => import("./footnote-BMXxQIQ9.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-i00B6LJQ.js"), "./renderers/graph.tsx": () => import("./graph-BPj62j7t.js"), "./renderers/hint.tsx": () => import("./hint-DdjXTIXP.js"), "./renderers/hr.tsx": () => import("./hr-C0NXaaap.js"), "./renderers/image.tsx": () => import("./image-Bh_HpOoi.js"), "./renderers/label.tsx": () => import("./label-DwoGPZxc.js"), "./renderers/legend.tsx": () => import("./legend-C5U7r9MM.js"), "./renderers/line.tsx": () => import("./line-BFx2aX30.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-B1bU850L.js"), "./renderers/list.tsx": () => import("./list-Bk9YwKe0.js"), "./renderers/lq.tsx": () => import("./lq-DQAGMRf3.js"), "./renderers/lsq.tsx": () => import("./lsq-DToyZduX.js"), "./renderers/math.tsx": () => import("./math-62B35S7y.js"), "./renderers/mathInput.tsx": () => import("./mathInput-DR8pAjH0.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-56Wb_1R8.js"), "./renderers/mdash.tsx": () => import("./mdash-BEsm8DaC.js"), "./renderers/nbsp.tsx": () => import("./nbsp-B1nLBxag.js"), "./renderers/ndash.tsx": () => import("./ndash-ZzfbD3Ht.js"), "./renderers/number.tsx": () => import("./number-Bx7U1E1b.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-Bc4ynqTO.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-DtgZgUs7.js"), "./renderers/p.tsx": () => import("./p-DAIBAJtj.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-BqPRewxd.js"), "./renderers/pegboard.tsx": () => import("./pegboard-Da47_c0A.js"), "./renderers/point.tsx": () => import("./point-4MAN_vlb.js"), "./renderers/polygon.tsx": () => import("./polygon-CmTf2SSM.js"), "./renderers/polyline.tsx": () => import("./polyline-pyf9y5LN.js"), "./renderers/pre.tsx": () => import("./pre-C8c7DvOz.js"), "./renderers/prefigure.tsx": () => import("./prefigure-rLOOb78s.js"), "./renderers/pretzel.tsx": () => import("./pretzel-DYz_eIYw.js"), "./renderers/q.tsx": () => import("./q-BTW4qqok.js"), "./renderers/ray.tsx": () => import("./ray-D03AQPEt.js"), "./renderers/ref.tsx": () => import("./ref-BZOsEx_Q.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-CL_soQsz.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-AiU0T4gU.js"), "./renderers/row.tsx": () => import("./row-DLNsq2mS.js"), "./renderers/rq.tsx": () => import("./rq-DwXI7SvK.js"), "./renderers/rsq.tsx": () => import("./rsq-C3W9KZAM.js"), "./renderers/section.tsx": () => import("./section-51M647ES.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-D1dMzsFj.js"), "./renderers/slider.tsx": () => import("./slider-Dn5cPJF7.js"), "./renderers/solution.tsx": () => import("./solution-KtROaLJ-.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-CkWzyPaz.js"), "./renderers/sq.tsx": () => import("./sq-CPnQGoCl.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-tK3sKNao.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-BFZQsD93.js"), "./renderers/table.tsx": () => import("./table-Cx4oDfwn.js"), "./renderers/tabular.tsx": () => import("./tabular-B4O9agEa.js"), "./renderers/tag.tsx": () => import("./tag-B7mLqh1_.js"), "./renderers/text.tsx": () => import("./text-DK5rpoKj.js"), "./renderers/textInput.tsx": () => import("./textInput-VuChsz5d.js"), "./renderers/vector.tsx": () => import("./vector-BzMon_ST.js"), "./renderers/video.tsx": () => import("./video-5gXUMJPq.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-DL2VQKtN.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-b9d7bzoD.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-DL2VQKtN.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-BsFpSb95.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Yp_AcZpV.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-BPj62j7t.js";
|
|
6
|
+
import { ChoiceInputInlineContext } from "./choiceInput-DumOeAjF.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-DL2VQKtN.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-Yp_AcZpV.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-D57keU5m.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-DfuFoJoS.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-BSqko_NN.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-CeuV-ELJ.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-CH_Clwpj.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-BHUS6fBR.js"), "./renderers/alert.tsx": () => import("./alert-Cj-rWHWT.js"), "./renderers/angle.tsx": () => import("./angle-Dpx-xKH2.js"), "./renderers/answer.tsx": () => import("./answer-DcO_FwAt.js"), "./renderers/asList.tsx": () => import("./asList-CQl7DYPf.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-B2X8yZjZ.js"), "./renderers/boolean.tsx": () => import("./boolean-KqpK4-Kj.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-D3Y6f_O4.js"), "./renderers/br.tsx": () => import("./br-Chu0IPyK.js"), "./renderers/button.tsx": () => import("./button-DpCJT3g5.js"), "./renderers/c.tsx": () => import("./c-wyaowz5f.js"), "./renderers/cell.tsx": () => import("./cell-Dm9ysgxf.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-BTBsL8JA.js"), "./renderers/circle.tsx": () => import("./circle-Cf29LjzJ.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-ERU9ClKC.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-BpX__-wM.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-CCarN5lT.js"), "./renderers/containerInline.tsx": () => import("./containerInline-di9YzETB.js"), "./renderers/curve.tsx": () => import("./curve-DmY3B2Uq.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-KE8dAVa6.js"), "./renderers/em.tsx": () => import("./em-F7IWfQBY.js"), "./renderers/embed.tsx": () => import("./embed-B02q9uRS.js"), "./renderers/feedback.tsx": () => import("./feedback-ui54pmn4.js"), "./renderers/figure.tsx": () => import("./figure-DhVvMAU1.js"), "./renderers/footnote.tsx": () => import("./footnote-C_OP5GgV.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-BjpaOqNe.js"), "./renderers/graph.tsx": () => import("./graph-Cv-sOM-W.js"), "./renderers/hint.tsx": () => import("./hint-IFoajQy_.js"), "./renderers/hr.tsx": () => import("./hr-BVG9sotP.js"), "./renderers/image.tsx": () => import("./image-CdGCmXkX.js"), "./renderers/label.tsx": () => import("./label-DvxwHbTU.js"), "./renderers/legend.tsx": () => import("./legend-By9hMXoW.js"), "./renderers/line.tsx": () => import("./line-8cSy2BH-.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-CbSX5RkG.js"), "./renderers/list.tsx": () => import("./list-CIYZcine.js"), "./renderers/lq.tsx": () => import("./lq-B6D7X3yI.js"), "./renderers/lsq.tsx": () => import("./lsq-CJF9UO97.js"), "./renderers/math.tsx": () => import("./math-BTgwcDsT.js"), "./renderers/mathInput.tsx": () => import("./mathInput-CVe7l7Cp.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-CKFBsa_z.js"), "./renderers/mdash.tsx": () => import("./mdash-BrJI1zfS.js"), "./renderers/nbsp.tsx": () => import("./nbsp-Dv185UdO.js"), "./renderers/ndash.tsx": () => import("./ndash-A53X3aNJ.js"), "./renderers/number.tsx": () => import("./number-pNMextHF.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-AAO5smjT.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-xrtLRvN6.js"), "./renderers/p.tsx": () => import("./p-sDFxbXjy.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-C_Tv-2TF.js"), "./renderers/pegboard.tsx": () => import("./pegboard-CZH_nMSa.js"), "./renderers/point.tsx": () => import("./point-Ci64ChtU.js"), "./renderers/polygon.tsx": () => import("./polygon-DIaXtdV9.js"), "./renderers/polyline.tsx": () => import("./polyline-DtMUQFRJ.js"), "./renderers/pre.tsx": () => import("./pre-C6ZE-pnl.js"), "./renderers/prefigure.tsx": () => import("./prefigure-BiJmEy1a.js"), "./renderers/pretzel.tsx": () => import("./pretzel-CvutHxJ1.js"), "./renderers/q.tsx": () => import("./q-BVrgrg4w.js"), "./renderers/ray.tsx": () => import("./ray-DA9uxMvU.js"), "./renderers/ref.tsx": () => import("./ref-DXUT5ZI5.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-B_a60h4d.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-B5S-pNtN.js"), "./renderers/row.tsx": () => import("./row-Bft4F2uc.js"), "./renderers/rq.tsx": () => import("./rq-Cyxe86gT.js"), "./renderers/rsq.tsx": () => import("./rsq-Qa7irKpe.js"), "./renderers/section.tsx": () => import("./section-a-7OaFrW.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-DZCNaTRZ.js"), "./renderers/slider.tsx": () => import("./slider-BPN-fm7c.js"), "./renderers/solution.tsx": () => import("./solution-BBcVzMTT.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-CXeYZhdc.js"), "./renderers/sq.tsx": () => import("./sq-CpbPJ-G4.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-C4Qj_Mbd.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-BWNmMIYl.js"), "./renderers/table.tsx": () => import("./table-dlbNtq_D.js"), "./renderers/tabular.tsx": () => import("./tabular-C5VhK91a.js"), "./renderers/tag.tsx": () => import("./tag-DWFFxQLm.js"), "./renderers/text.tsx": () => import("./text-DtVN3fCd.js"), "./renderers/textInput.tsx": () => import("./textInput-BSOh5wZ_.js"), "./renderers/vector.tsx": () => import("./vector-BgpgCpdO.js"), "./renderers/video.tsx": () => import("./video-CP7A8m59.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
|
-
};
|