@doenet/doenetml 0.7.21-dev.344 → 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-CJNTgzE3.js → AnswerResponseButton-YSbl2PsE.js} +2 -2
- package/{Description-CqPLLTYo.js → Description-D57keU5m.js} +1 -1
- package/{GraphFrame-CjXtY4X0.js → GraphFrame-Bm6nW99X.js} +2 -2
- package/{JSXGraphRenderer-D8E4J2WG.js → JSXGraphRenderer-BsFpSb95.js} +1 -1
- package/{NonInlineMediaWrapper-CnRPS8Wo.js → NonInlineMediaWrapper-DfuFoJoS.js} +1 -1
- package/{_error-DUr9K6Ay.js → _error-BQfXttBl.js} +2 -2
- package/{alert-Br2OnXiK.js → alert-BRwfGbIw.js} +3 -3
- package/{angle-BSSmnS6V.js → angle-DMiGKHFN.js} +6 -6
- package/{answer-C89mtWyN.js → answer-nEDFb-NC.js} +5 -5
- package/{asList-ClpMwmoU.js → asList-jBFMWxgU.js} +2 -2
- package/{blockQuote-BGE7rvUY.js → blockQuote-Dj4eZG_b.js} +3 -3
- package/{boolean-BMUU_I_a.js → boolean-CIbko9uw.js} +2 -2
- package/{booleanInput-BXENcj0-.js → booleanInput-BHs5fLOR.js} +6 -6
- package/{br-syUNIJgu.js → br-B7ukYx7x.js} +2 -2
- package/{button-BQUjfUXa.js → button-Djz3rNGq.js} +4 -4
- package/{c-J-hc2DXm.js → c-CqW8msBM.js} +3 -3
- package/{cell-x8_10O4S.js → cell-BuY2CWqp.js} +3 -3
- package/{choiceInput-DyOEq_Wd.js → choiceInput-DumOeAjF.js} +4 -4
- package/{circle-C_IW_TEu.js → circle-taRR4fb7.js} +5 -5
- package/{cobwebPolyline-wGeboK-M.js → cobwebPolyline-CbM1u6MX.js} +4 -4
- package/{codeEditor-BTcUat5x.js → codeEditor-n4Gf6oAm.js} +2 -2
- package/{composites-LMCkH-9p.js → composites-DqFxnNP1.js} +1 -1
- package/{containerBlock-C-FWSQIX.js → containerBlock-DaWlhZTg.js} +4 -4
- package/{containerInline-AfrwMxfn.js → containerInline-Ba4S6N8s.js} +4 -4
- package/{curve-DZJcqGZr.js → curve-DNYDfOyA.js} +4 -4
- package/{doenetml-DUmdbpgJ.js → doenetml-DL2VQKtN.js} +4 -4
- package/doenetml-external-worker.js +2 -2
- package/doenetml-inline-worker.js +2 -2
- package/{ellipsis-CG8Lk39v.js → ellipsis-BLT7nFp1.js} +2 -2
- package/{em-B_vc2w9C.js → em-CCQ3kybG.js} +3 -3
- package/{embed-D3uEK2H-.js → embed-CihOHzpC.js} +2 -2
- package/{feedback-phF4JyFN.js → feedback-Ce88mS0l.js} +4 -4
- package/{figure-CSFcJGgg.js → figure-fhODCADS.js} +3 -3
- package/{fillPatterns-Bfz2vUVN.js → fillPatterns-2eTHVLUl.js} +1 -1
- package/{footnote-BaxzcIZg.js → footnote-BMXxQIQ9.js} +3 -3
- package/{fractionInput-DUrZ0UjC.js → fractionInput-i00B6LJQ.js} +4 -4
- package/{graph-DEGaPETg.js → graph-BPj62j7t.js} +6 -6
- package/{hint-BtqQyHaM.js → hint-DdjXTIXP.js} +4 -4
- package/{hr-ByEFsYnl.js → hr-C0NXaaap.js} +2 -2
- package/{image-Bea9cxuf.js → image-Bh_HpOoi.js} +7 -7
- package/{index-a1YITrpe.js → index-D0pqQSHj.js} +1 -1
- package/{index.es-B5RwjavS.js → index.es-b9d7bzoD.js} +1 -1
- package/index.js +1 -1
- package/{label-4JKLKEJa.js → label-DwoGPZxc.js} +6 -6
- package/{labelWithLatex-CF5m8ZYW.js → labelWithLatex-CJPaIZsU.js} +1 -1
- package/{legend-DntLuCDe.js → legend-C5U7r9MM.js} +4 -4
- package/{line-CWFUVXJo.js → line-BFx2aX30.js} +5 -5
- package/{lineSegment-BxiSHfdA.js → lineSegment-B1bU850L.js} +4 -4
- package/{list-CH8Mohm7.js → list-Bk9YwKe0.js} +4 -4
- package/{lq-CYfZC67P.js → lq-DQAGMRf3.js} +2 -2
- package/{lsq-CWKP7xzg.js → lsq-DToyZduX.js} +2 -2
- package/{markupRenderer-CvNsPWNl.js → markupRenderer--AYVlpvn.js} +1 -1
- package/{math-Bmqy0R6y.js → math-62B35S7y.js} +6 -6
- package/{mathInput-ewH2K6vP.js → mathInput-DR8pAjH0.js} +7 -7
- package/{matrixInput-POl5UQ7S.js → matrixInput-56Wb_1R8.js} +4 -4
- package/{mdash-C-kR65Qg.js → mdash-BEsm8DaC.js} +2 -2
- package/{nbsp-C0FBdE4d.js → nbsp-B1nLBxag.js} +2 -2
- package/{ndash-Bl-I6vvO.js → ndash-ZzfbD3Ht.js} +2 -2
- package/{number-CMAh9fRL.js → number-Bx7U1E1b.js} +6 -6
- package/{orbitalDiagram-BPpvLxWH.js → orbitalDiagram-Bc4ynqTO.js} +2 -2
- package/{orbitalDiagramInput-DWBPQJFM.js → orbitalDiagramInput-DtgZgUs7.js} +2 -2
- package/{p-k0Rer_X9.js → p-DAIBAJtj.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-CEEHYYgQ.js → paginatorControls-BqPRewxd.js} +2 -2
- package/{pegboard-DIXT1SZW.js → pegboard-Da47_c0A.js} +4 -4
- package/{point-0flpPxoC.js → point-4MAN_vlb.js} +5 -5
- package/{polygon-C6z0Yl-f.js → polygon-CmTf2SSM.js} +5 -5
- package/{polyline-DQivgG2_.js → polyline-pyf9y5LN.js} +4 -4
- package/{pre-DcXriICN.js → pre-C8c7DvOz.js} +3 -3
- package/{prefigure-CldDEMQd.js → prefigure-rLOOb78s.js} +1 -1
- package/{pretzel-5zAkblML.js → pretzel-DYz_eIYw.js} +4 -4
- package/{q-D_LsU7Af.js → q-BTW4qqok.js} +3 -3
- package/{ray-BqCe9f7H.js → ray-D03AQPEt.js} +4 -4
- package/{ref-DSG8Faem.js → ref-BZOsEx_Q.js} +2 -2
- package/{regionBetweenCurveXAxis-D6aPagqY.js → regionBetweenCurveXAxis-CL_soQsz.js} +5 -5
- package/{regionBetweenCurves-eUjI33Y6.js → regionBetweenCurves-AiU0T4gU.js} +5 -5
- package/{row-J2-RNOv1.js → row-DLNsq2mS.js} +2 -2
- package/{rq-WW3CxOLW.js → rq-DwXI7SvK.js} +2 -2
- package/{rsq--Gj8vODj.js → rsq-C3W9KZAM.js} +2 -2
- package/{section-DgT_sgG3.js → section-51M647ES.js} +5 -5
- package/{sha256-C0vj3HDn-CWYAUxP0.js → sha256-C0vj3HDn-C-6gWafD.js} +1 -1
- package/{sideBySide-DbTMunL3.js → sideBySide-D1dMzsFj.js} +2 -2
- package/{slider-CrseLGn7.js → slider-Dn5cPJF7.js} +3 -3
- package/{solution-D1qKQtsI.js → solution-KtROaLJ-.js} +4 -4
- package/{spreadsheet-DCdbbHOP.js → spreadsheet-CkWzyPaz.js} +2 -2
- package/{sq-tDVgn3Cg.js → sq-CPnQGoCl.js} +3 -3
- package/{subsetOfRealsInput-BBVk44fs.js → subsetOfRealsInput-tK3sKNao.js} +2 -2
- package/{summaryStatistics-jbs406fu.js → summaryStatistics-BFZQsD93.js} +2 -2
- package/{table-M9wJWlBM.js → table-Cx4oDfwn.js} +2 -2
- package/{tabular-B_W00HZY.js → tabular-B4O9agEa.js} +2 -2
- package/{tag-YNS-swj0.js → tag-B7mLqh1_.js} +2 -2
- package/{text-BGNeQUp0.js → text-DK5rpoKj.js} +6 -6
- package/{textInput-cKNLLASy.js → textInput-VuChsz5d.js} +6 -6
- package/{tooltip-provider-a6YpHxSB.js → tooltip-provider-CvKjmIjp.js} +1 -1
- package/{useAnchoredGraphDragHandler-BfHsVosx.js → useAnchoredGraphDragHandler-C5m4R4_r.js} +1 -1
- package/useDoenetRenderer-Yp_AcZpV.js +114 -0
- package/{useSubmitActionWithDelay-BbAe4W_c.js → useSubmitActionWithDelay-B-7R6Fg4.js} +2 -2
- package/{vector-B_QuEZNU.js → vector-BzMon_ST.js} +5 -5
- package/{video-Cq67_4H2.js → video-5gXUMJPq.js} +4 -4
- package/useDoenetRenderer-B-c02Wyk.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-DUmdbpgJ.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-CjXtY4X0.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-D8E4J2WG.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-DUr9K6Ay.js"), "./renderers/alert.tsx": () => import("./alert-Br2OnXiK.js"), "./renderers/angle.tsx": () => import("./angle-BSSmnS6V.js"), "./renderers/answer.tsx": () => import("./answer-C89mtWyN.js"), "./renderers/asList.tsx": () => import("./asList-ClpMwmoU.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-BGE7rvUY.js"), "./renderers/boolean.tsx": () => import("./boolean-BMUU_I_a.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-BXENcj0-.js"), "./renderers/br.tsx": () => import("./br-syUNIJgu.js"), "./renderers/button.tsx": () => import("./button-BQUjfUXa.js"), "./renderers/c.tsx": () => import("./c-J-hc2DXm.js"), "./renderers/cell.tsx": () => import("./cell-x8_10O4S.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-DyOEq_Wd.js"), "./renderers/circle.tsx": () => import("./circle-C_IW_TEu.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-wGeboK-M.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-BTcUat5x.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-C-FWSQIX.js"), "./renderers/containerInline.tsx": () => import("./containerInline-AfrwMxfn.js"), "./renderers/curve.tsx": () => import("./curve-DZJcqGZr.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-CG8Lk39v.js"), "./renderers/em.tsx": () => import("./em-B_vc2w9C.js"), "./renderers/embed.tsx": () => import("./embed-D3uEK2H-.js"), "./renderers/feedback.tsx": () => import("./feedback-phF4JyFN.js"), "./renderers/figure.tsx": () => import("./figure-CSFcJGgg.js"), "./renderers/footnote.tsx": () => import("./footnote-BaxzcIZg.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-DUrZ0UjC.js"), "./renderers/graph.tsx": () => import("./graph-DEGaPETg.js"), "./renderers/hint.tsx": () => import("./hint-BtqQyHaM.js"), "./renderers/hr.tsx": () => import("./hr-ByEFsYnl.js"), "./renderers/image.tsx": () => import("./image-Bea9cxuf.js"), "./renderers/label.tsx": () => import("./label-4JKLKEJa.js"), "./renderers/legend.tsx": () => import("./legend-DntLuCDe.js"), "./renderers/line.tsx": () => import("./line-CWFUVXJo.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-BxiSHfdA.js"), "./renderers/list.tsx": () => import("./list-CH8Mohm7.js"), "./renderers/lq.tsx": () => import("./lq-CYfZC67P.js"), "./renderers/lsq.tsx": () => import("./lsq-CWKP7xzg.js"), "./renderers/math.tsx": () => import("./math-Bmqy0R6y.js"), "./renderers/mathInput.tsx": () => import("./mathInput-ewH2K6vP.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-POl5UQ7S.js"), "./renderers/mdash.tsx": () => import("./mdash-C-kR65Qg.js"), "./renderers/nbsp.tsx": () => import("./nbsp-C0FBdE4d.js"), "./renderers/ndash.tsx": () => import("./ndash-Bl-I6vvO.js"), "./renderers/number.tsx": () => import("./number-CMAh9fRL.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-BPpvLxWH.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-DWBPQJFM.js"), "./renderers/p.tsx": () => import("./p-k0Rer_X9.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-CEEHYYgQ.js"), "./renderers/pegboard.tsx": () => import("./pegboard-DIXT1SZW.js"), "./renderers/point.tsx": () => import("./point-0flpPxoC.js"), "./renderers/polygon.tsx": () => import("./polygon-C6z0Yl-f.js"), "./renderers/polyline.tsx": () => import("./polyline-DQivgG2_.js"), "./renderers/pre.tsx": () => import("./pre-DcXriICN.js"), "./renderers/prefigure.tsx": () => import("./prefigure-CldDEMQd.js"), "./renderers/pretzel.tsx": () => import("./pretzel-5zAkblML.js"), "./renderers/q.tsx": () => import("./q-D_LsU7Af.js"), "./renderers/ray.tsx": () => import("./ray-BqCe9f7H.js"), "./renderers/ref.tsx": () => import("./ref-DSG8Faem.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-D6aPagqY.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-eUjI33Y6.js"), "./renderers/row.tsx": () => import("./row-J2-RNOv1.js"), "./renderers/rq.tsx": () => import("./rq-WW3CxOLW.js"), "./renderers/rsq.tsx": () => import("./rsq--Gj8vODj.js"), "./renderers/section.tsx": () => import("./section-DgT_sgG3.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-DbTMunL3.js"), "./renderers/slider.tsx": () => import("./slider-CrseLGn7.js"), "./renderers/solution.tsx": () => import("./solution-D1qKQtsI.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-DCdbbHOP.js"), "./renderers/sq.tsx": () => import("./sq-tDVgn3Cg.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-BBVk44fs.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-jbs406fu.js"), "./renderers/table.tsx": () => import("./table-M9wJWlBM.js"), "./renderers/tabular.tsx": () => import("./tabular-B_W00HZY.js"), "./renderers/tag.tsx": () => import("./tag-YNS-swj0.js"), "./renderers/text.tsx": () => import("./text-BGNeQUp0.js"), "./renderers/textInput.tsx": () => import("./textInput-cKNLLASy.js"), "./renderers/vector.tsx": () => import("./vector-B_QuEZNU.js"), "./renderers/video.tsx": () => import("./video-Cq67_4H2.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
|
-
};
|