@doenet/doenetml 0.7.20-dev.315 → 0.7.20-dev.316

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.
Files changed (99) hide show
  1. package/{AnswerResponseButton-Djwd_Ktc.js → AnswerResponseButton-r-OUgx_z.js} +2 -2
  2. package/{Description-DTfPfSBd.js → Description-DueieOS6.js} +1 -1
  3. package/{GraphFrame-DoOnRIoM.js → GraphFrame-DAI_zt9N.js} +2 -2
  4. package/{JSXGraphRenderer-sJ8eDEVe.js → JSXGraphRenderer-ckJeQFlL.js} +1 -1
  5. package/{NonInlineMediaWrapper-C4ekFj28.js → NonInlineMediaWrapper-Dd6Gxn78.js} +1 -1
  6. package/{_error-Bi1Inyjx.js → _error-D_WwhVmJ.js} +2 -2
  7. package/{alert-CfnuDDVP.js → alert-DixSAF4C.js} +3 -3
  8. package/{angle-CWXA9r8g.js → angle-mCicxZnD.js} +6 -6
  9. package/{answer-YYWBSei9.js → answer-BzeKvn8j.js} +5 -5
  10. package/{asList-DC8b5u3s.js → asList-C4Fs-8KY.js} +2 -2
  11. package/{blockQuote-BQ-c723v.js → blockQuote-1h4WDO0i.js} +3 -3
  12. package/{boolean-CBGztFeU.js → boolean-DBQaMeGm.js} +2 -2
  13. package/{booleanInput-B75DR5Tn.js → booleanInput-Nbqh1UNE.js} +6 -6
  14. package/{br-BKS92BVt.js → br-vM9FyV_E.js} +2 -2
  15. package/{button-C5RD0yqb.js → button-BaFmFmV9.js} +4 -4
  16. package/{c-eCsARRoV.js → c-Bo9QnsKf.js} +3 -3
  17. package/{cell-D6NDHpZI.js → cell-Btvaofdp.js} +3 -3
  18. package/{choiceInput-DoaIVekP.js → choiceInput-CH4TL5le.js} +4 -4
  19. package/{circle-CBqNdNRP.js → circle-D6F6C_K7.js} +5 -5
  20. package/{cobwebPolyline-yey56GIm.js → cobwebPolyline-BzEVX2MT.js} +4 -4
  21. package/{codeEditor-B1P5Z8p3.js → codeEditor-DdaVeq68.js} +2 -2
  22. package/{composites-Cemxx5l7.js → composites-oglkvWCX.js} +1 -1
  23. package/{containerBlock-C6Sfa8Ci.js → containerBlock-Dh8aPf8u.js} +4 -4
  24. package/{containerInline-Dbi9u38I.js → containerInline-CXWVzQKY.js} +4 -4
  25. package/{curve-CgyvF3NM.js → curve-Bo3f3QhN.js} +4 -4
  26. package/{doenetml-9XrvdLhb.js → doenetml-D1gCmKxU.js} +4 -4
  27. package/doenetml-inline-worker.js +2 -2
  28. package/{ellipsis-BoH_ln2Z.js → ellipsis-CWHIecu7.js} +2 -2
  29. package/{em-D_yB3IrE.js → em-D156gclE.js} +3 -3
  30. package/{embed-Cx52dVn3.js → embed-C7WH3JZc.js} +2 -2
  31. package/{feedback-BvOEHwDg.js → feedback-CKure42m.js} +4 -4
  32. package/{figure-BOObAn6b.js → figure-BiaA8c9E.js} +3 -3
  33. package/{fillPatterns-DrYxzI3s.js → fillPatterns-YTOI4eEH.js} +1 -1
  34. package/{footnote-Ct-TlNAn.js → footnote-RYZSZETJ.js} +3 -3
  35. package/{fractionInput-D4dArFUH.js → fractionInput-DsYkUgKb.js} +4 -4
  36. package/{graph-Ch-4_Zgu.js → graph-9IlaBXiy.js} +6 -6
  37. package/{hint-DZuw3Zeu.js → hint-BefQouH_.js} +4 -4
  38. package/{hr-CZlPrmV2.js → hr-Dq7PijmJ.js} +2 -2
  39. package/{image-CsOcxnqE.js → image-JVtPuER-.js} +7 -7
  40. package/{index-CrYtxhO9.js → index-D2xkMZx-.js} +1 -1
  41. package/{index.es-BUulqU23.js → index.es-B7tXjawr.js} +1 -1
  42. package/index.js +1 -1
  43. package/{label-CM6Auntf.js → label-fU1-vuCj.js} +6 -6
  44. package/{labelWithLatex-DahB_RjM.js → labelWithLatex-DhMh_7S6.js} +1 -1
  45. package/{legend-DyoBLCQ8.js → legend-x1mKgk00.js} +4 -4
  46. package/{line-BlU06XDf.js → line-Yc9AKeY3.js} +5 -5
  47. package/{lineSegment-BNjSWTOD.js → lineSegment-Dtnb1M7N.js} +4 -4
  48. package/{list-CzengWzd.js → list-T3t2VZZG.js} +4 -4
  49. package/{lq-Bd5kvtdo.js → lq-BRtJmnD8.js} +2 -2
  50. package/{lsq-B4y7uxLI.js → lsq-B7ow4ycJ.js} +2 -2
  51. package/{markupRenderer-5kgRDpP9.js → markupRenderer-L3Efk46U.js} +1 -1
  52. package/{math-DhiLolI2.js → math-CPh4haNx.js} +6 -6
  53. package/{mathInput-57_gjcR-.js → mathInput-CyFc13so.js} +7 -7
  54. package/{matrixInput-ByLSOf0S.js → matrixInput-CuEQX18N.js} +4 -4
  55. package/{mdash-DFHKikIf.js → mdash-gM4yl5jm.js} +2 -2
  56. package/{nbsp-CqBb3UuF.js → nbsp-wn7JuCao.js} +2 -2
  57. package/{ndash-B-Ki8m72.js → ndash-C61-WMFr.js} +2 -2
  58. package/{number-DHrh5Q3R.js → number-CAcif1O-.js} +6 -6
  59. package/{orbitalDiagram-C0VD69Mr.js → orbitalDiagram-C3zOR_lN.js} +2 -2
  60. package/{orbitalDiagramInput-xMpykYMb.js → orbitalDiagramInput-CvpxktJw.js} +2 -2
  61. package/{p-L45pbeWN.js → p-DC_HDjop.js} +4 -4
  62. package/package.json +1 -1
  63. package/{paginatorControls-BjVrkNXD.js → paginatorControls-BQ_gBjxa.js} +2 -2
  64. package/{pegboard-Dve_fDn5.js → pegboard-BCF3DNbi.js} +4 -4
  65. package/{point-C9ZBE4FI.js → point-B2a68TSy.js} +5 -5
  66. package/{polygon-B8bKwmQY.js → polygon-Hd1JVKgG.js} +5 -5
  67. package/{polyline-DTnfl4aZ.js → polyline-B_UsdFgl.js} +4 -4
  68. package/{pre-n_59CAbf.js → pre-wICLrSMz.js} +3 -3
  69. package/{prefigure-Dytj_Prm.js → prefigure-CtwO-Ek7.js} +1 -1
  70. package/{pretzel-Dyf2JRAJ.js → pretzel-sWyN5jMY.js} +4 -4
  71. package/{q-DT14If67.js → q-q9OAh4Ro.js} +3 -3
  72. package/{ray-DZMivfiC.js → ray-BqHUFK2S.js} +4 -4
  73. package/{ref-CUjV4Aa1.js → ref-DvDQaG7W.js} +2 -2
  74. package/{regionBetweenCurveXAxis-Dn1SDdaC.js → regionBetweenCurveXAxis-BlYwXBt8.js} +5 -5
  75. package/{regionBetweenCurves-CDcjvTYt.js → regionBetweenCurves-igxdaCRE.js} +5 -5
  76. package/{row-LFUoHvCl.js → row-Cw-PQzOt.js} +2 -2
  77. package/{rq-CcgZYohE.js → rq-SA-mP3zu.js} +2 -2
  78. package/{rsq-BSruNevE.js → rsq-vmEaBpiI.js} +2 -2
  79. package/{section-Cqph2lHX.js → section-ByQYhbo2.js} +5 -5
  80. package/{sha256-C0vj3HDn-BNmSdsYa.js → sha256-C0vj3HDn-D8xg9gqR.js} +1 -1
  81. package/{sideBySide-D_eNIscE.js → sideBySide-DWQFAa7O.js} +2 -2
  82. package/{slider-CG6B17hb.js → slider-DJj0KOV3.js} +3 -3
  83. package/{solution-bnXeOWq4.js → solution-CgD50BkF.js} +4 -4
  84. package/{spreadsheet-lhQ8TJ-O.js → spreadsheet-54OxiaBY.js} +2 -2
  85. package/{sq-D4HKq7eJ.js → sq-vKCgTxb0.js} +3 -3
  86. package/{subsetOfRealsInput-Bw73BUyU.js → subsetOfRealsInput-DwiZ6T-u.js} +2 -2
  87. package/{summaryStatistics-BrQQS9vU.js → summaryStatistics-SIeC2Lk3.js} +2 -2
  88. package/{table-CVnmsPP1.js → table-C8v1Etby.js} +2 -2
  89. package/{tabular-Bt1LzcJ0.js → tabular-DeV5V68F.js} +2 -2
  90. package/{tag-BsoTBwQl.js → tag-CQ86RNOG.js} +2 -2
  91. package/{text-CZ3y22on.js → text-DBGc_JRg.js} +6 -6
  92. package/{textInput-xvW78L4_.js → textInput-DzrMTbGf.js} +6 -6
  93. package/{tooltip-provider-BLcP6yiu.js → tooltip-provider-95NBgHL0.js} +1 -1
  94. package/{useAnchoredGraphDragHandler-Qvtwkbwf.js → useAnchoredGraphDragHandler-yDmYNUOu.js} +1 -1
  95. package/useDoenetRenderer-H_gjGvyp.js +114 -0
  96. package/{useSubmitActionWithDelay-BYy8Hm_Y.js → useSubmitActionWithDelay-vAYnMsBF.js} +2 -2
  97. package/{vector-Ds0qApMw.js → vector-D4hifApJ.js} +5 -5
  98. package/{video-DDmKUOH7.js → video-BRh7hPva.js} +4 -4
  99. package/useDoenetRenderer-D02nPaFu.js +0 -114
@@ -1,7 +1,7 @@
1
- import { j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
1
+ import { j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.js";
2
2
  import React__default from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
4
- import { r as renderMarkupBody } from "./markupRenderer-5kgRDpP9.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
4
+ import { r as renderMarkupBody } from "./markupRenderer-L3Efk46U.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 { k as DocContext, j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
1
+ import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.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-sJ8eDEVe.js";
4
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
5
- import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Ch-4_Zgu.js";
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-ckJeQFlL.js";
4
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
5
+ import { BoardContext, LINE_LAYER_OFFSET } from "./graph-9IlaBXiy.js";
6
6
  import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-WXpVD4ud.js";
7
7
  import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
8
8
  import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
@@ -1,6 +1,6 @@
1
- import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
1
+ import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.js";
2
2
  import React__default, { useContext, useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
4
4
  const ref = React__default.memo(function Ref(props) {
5
5
  const { id, SVs, children, requestScrollTo } = useDoenetRenderer(props);
6
6
  const { doenetViewerUrl } = useContext(DocContext) || {};
@@ -1,9 +1,9 @@
1
- import { k as DocContext, p as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
1
+ import { k as DocContext, p as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.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-sJ8eDEVe.js";
4
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
5
- import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Ch-4_Zgu.js";
6
- import { g as getPatternFillAttributes } from "./fillPatterns-DrYxzI3s.js";
3
+ import { j as jxg, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-ckJeQFlL.js";
4
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
5
+ import { BoardContext, LINE_LAYER_OFFSET } from "./graph-9IlaBXiy.js";
6
+ import { g as getPatternFillAttributes } from "./fillPatterns-YTOI4eEH.js";
7
7
  const regionBetweenCurveXAxis = React__default.memo(function RegionBetweenCurveXAxis(props) {
8
8
  let { id, SVs } = useDoenetRenderer(props);
9
9
  RegionBetweenCurveXAxis.ignoreActionsWithoutCore = () => true;
@@ -1,10 +1,10 @@
1
- import { k as DocContext, p as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
1
+ import { k as DocContext, p as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.js";
2
2
  import React__default, { useContext, useRef, useEffect } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
4
- import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Ch-4_Zgu.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
4
+ import { BoardContext, LINE_LAYER_OFFSET } from "./graph-9IlaBXiy.js";
5
5
  import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
6
- import { g as getPatternFillAttributes } from "./fillPatterns-DrYxzI3s.js";
7
- import { b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-sJ8eDEVe.js";
6
+ import { g as getPatternFillAttributes } from "./fillPatterns-YTOI4eEH.js";
7
+ import { b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-ckJeQFlL.js";
8
8
  const regionBetweenCurves = React__default.memo(function RegionBetweenCurves(props) {
9
9
  let { id, SVs } = useDoenetRenderer(props);
10
10
  RegionBetweenCurves.ignoreActionsWithoutCore = () => true;
@@ -1,6 +1,6 @@
1
- import { j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
1
+ import { j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.js";
2
2
  import React__default from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
4
4
  const row = React__default.memo(function Row(props) {
5
5
  let { id, SVs, children } = useDoenetRenderer(props);
6
6
  if (SVs.hidden) {
@@ -1,6 +1,6 @@
1
- import { j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
1
+ import { j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.js";
2
2
  import React__default from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
4
4
  const rq = React__default.memo(function Rq(props) {
5
5
  let { SVs } = useDoenetRenderer(props, false);
6
6
  if (SVs.hidden) {
@@ -1,6 +1,6 @@
1
- import { j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
1
+ import { j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.js";
2
2
  import React__default from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
4
4
  const rsq = React__default.memo(function Rsq(props) {
5
5
  let { SVs } = useDoenetRenderer(props, false);
6
6
  if (SVs.hidden) {
@@ -1,10 +1,10 @@
1
- import { k as DocContext, o as cesc, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
1
+ import { k as DocContext, o as cesc, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.js";
2
2
  import React__default, { useContext, useRef, useEffect } from "react";
3
- import { F as FontAwesomeIcon } from "./index.es-BUulqU23.js";
3
+ import { F as FontAwesomeIcon } from "./index.es-B7tXjawr.js";
4
4
  import { f as faCaretDown, a as faCaretRight } from "./index-BDlitCgu.js";
5
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
6
- import { a as addCommasForCompositeRanges } from "./composites-Cemxx5l7.js";
7
- import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-BYy8Hm_Y.js";
5
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
6
+ import { a as addCommasForCompositeRanges } from "./composites-oglkvWCX.js";
7
+ import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-vAYnMsBF.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,4 +1,4 @@
1
- import { i as getDefaultExportFromCjs } from "./doenetml-9XrvdLhb.js";
1
+ import { i as getDefaultExportFromCjs } from "./doenetml-D1gCmKxU.js";
2
2
  function _mergeNamespaces$1(n, m) {
3
3
  for (var i = 0; i < m.length; i++) {
4
4
  const e = m[i];
@@ -1,6 +1,6 @@
1
- import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
1
+ import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.js";
2
2
  import React__default, { useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
4
4
  import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
5
5
  function isWhitespaceTextChild(child) {
6
6
  return typeof child === "string" && child.trim() === "";
@@ -1,8 +1,8 @@
1
- import { j as jsxRuntimeExports, A as ActionButtonGroup, E as ActionButton, n as Context } from "./doenetml-9XrvdLhb.js";
1
+ import { j as jsxRuntimeExports, A as ActionButtonGroup, E as ActionButton, n as Context } from "./doenetml-D1gCmKxU.js";
2
2
  import React__default, { useState, useRef, useEffect } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
4
4
  import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
5
- import { r as renderLabelWithLatex } from "./labelWithLatex-DahB_RjM.js";
5
+ import { r as renderLabelWithLatex } from "./labelWithLatex-DhMh_7S6.js";
6
6
  let round_to_decimals = (x, n) => {
7
7
  try {
8
8
  return Context.round_numbers_to_decimals(x, n).tree;
@@ -1,9 +1,9 @@
1
- import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
1
+ import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.js";
2
2
  import React__default, { useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
4
- import { F as FontAwesomeIcon } from "./index.es-BUulqU23.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
4
+ import { F as FontAwesomeIcon } from "./index.es-B7tXjawr.js";
5
5
  import { c as faPuzzlePiece } from "./index-BDlitCgu.js";
6
- import { a as addCommasForCompositeRanges } from "./composites-Cemxx5l7.js";
6
+ import { a as addCommasForCompositeRanges } from "./composites-oglkvWCX.js";
7
7
  const solution = React__default.memo(function Solution(props) {
8
8
  let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
9
9
  const ref = useRef(null);
@@ -1,6 +1,6 @@
1
- import { k as DocContext, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
1
+ import { k as DocContext, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.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-D02nPaFu.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
4
4
  import require$$2 from "react-dom";
5
5
  import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
6
6
  import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
@@ -1,7 +1,7 @@
1
- import { j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
1
+ import { j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.js";
2
2
  import React__default from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
4
- import { r as renderMarkupBody } from "./markupRenderer-5kgRDpP9.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
4
+ import { r as renderMarkupBody } from "./markupRenderer-L3Efk46U.js";
5
5
  const sq = React__default.memo(function Sq(props) {
6
6
  const { SVs, children } = useDoenetRenderer(props);
7
7
  const body = renderMarkupBody({ SVs, children });
@@ -1,6 +1,6 @@
1
- import { u as useRecordVisibilityChanges, j as jsxRuntimeExports, G as ToggleButtonGroup, T as ToggleButton, A as ActionButtonGroup, E as ActionButton } from "./doenetml-9XrvdLhb.js";
1
+ import { u as useRecordVisibilityChanges, j as jsxRuntimeExports, G as ToggleButtonGroup, T as ToggleButton, A as ActionButtonGroup, E as ActionButton } from "./doenetml-D1gCmKxU.js";
2
2
  import React__default, { useState, useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
4
4
  const subsetOfRealsInput = React__default.memo(function subsetOfReals(props) {
5
5
  let { id, SVs, actions, callAction } = useDoenetRenderer(props, false);
6
6
  let [mode, setMode] = useState("add remove points");
@@ -1,6 +1,6 @@
1
- import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
1
+ import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.js";
2
2
  import React__default, { useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
4
4
  import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
5
5
  const summaryStatistics = React__default.memo(function SummaryStatistics(props) {
6
6
  let { id, SVs, actions, callAction } = useDoenetRenderer(props);
@@ -1,6 +1,6 @@
1
- import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
1
+ import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.js";
2
2
  import React__default, { useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
4
4
  const table = React__default.memo(function Table(props) {
5
5
  let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
6
6
  const ref = useRef(null);
@@ -1,6 +1,6 @@
1
- import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
1
+ import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.js";
2
2
  import React__default, { useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
4
4
  import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
5
5
  import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
6
6
  const tabular = React__default.memo(function Tabular(props) {
@@ -1,6 +1,6 @@
1
- import { j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
1
+ import { j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.js";
2
2
  import React__default from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
4
4
  const tag = React__default.memo(function Tag(props) {
5
5
  let { id, SVs, children } = useDoenetRenderer(props);
6
6
  if (SVs.hidden) {
@@ -1,13 +1,13 @@
1
- import { k as DocContext, n as Context, j as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-9XrvdLhb.js";
1
+ import { k as DocContext, n as Context, j as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-D1gCmKxU.js";
2
2
  import React__default, { useRef, useContext } from "react";
3
- import { j as jxg } from "./JSXGraphRenderer-sJ8eDEVe.js";
4
- import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-Ch-4_Zgu.js";
5
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
3
+ import { j as jxg } from "./JSXGraphRenderer-ckJeQFlL.js";
4
+ import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-9IlaBXiy.js";
5
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
6
6
  import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
7
- import { ChoiceInputInlineContext } from "./choiceInput-DoaIVekP.js";
7
+ import { ChoiceInputInlineContext } from "./choiceInput-CH4TL5le.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-Qvtwkbwf.js";
10
+ import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-yDmYNUOu.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 { n as Context, j as jsxRuntimeExports, M as MathJax } from "./doenetml-9XrvdLhb.js";
1
+ import { n as Context, j as jsxRuntimeExports, M as MathJax } from "./doenetml-D1gCmKxU.js";
2
2
  import { useState, useRef, useContext, useEffect } from "react";
3
- import { j as jxg } from "./JSXGraphRenderer-sJ8eDEVe.js";
4
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
3
+ import { j as jxg } from "./JSXGraphRenderer-ckJeQFlL.js";
4
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
5
5
  import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
6
- import { BoardContext } from "./graph-Ch-4_Zgu.js";
6
+ import { BoardContext } from "./graph-9IlaBXiy.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-BYy8Hm_Y.js";
9
- import { D as DescriptionPopover } from "./Description-DTfPfSBd.js";
8
+ import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-vAYnMsBF.js";
9
+ import { D as DescriptionPopover } from "./Description-DueieOS6.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, j 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-9XrvdLhb.js";
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, j 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-D1gCmKxU.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-sJ8eDEVe.js";
1
+ import { r as removeJXGEventHandlers, L as LINE_FAMILY_EVENTS, j as jxg } from "./JSXGraphRenderer-ckJeQFlL.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 { v as useAppSelector, w as mainSlice, x as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-D1gCmKxU.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-DAI_zt9N.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-ckJeQFlL.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-D_WwhVmJ.js"), "./renderers/alert.tsx": () => import("./alert-DixSAF4C.js"), "./renderers/angle.tsx": () => import("./angle-mCicxZnD.js"), "./renderers/answer.tsx": () => import("./answer-BzeKvn8j.js"), "./renderers/asList.tsx": () => import("./asList-C4Fs-8KY.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-1h4WDO0i.js"), "./renderers/boolean.tsx": () => import("./boolean-DBQaMeGm.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-Nbqh1UNE.js"), "./renderers/br.tsx": () => import("./br-vM9FyV_E.js"), "./renderers/button.tsx": () => import("./button-BaFmFmV9.js"), "./renderers/c.tsx": () => import("./c-Bo9QnsKf.js"), "./renderers/cell.tsx": () => import("./cell-Btvaofdp.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-CH4TL5le.js"), "./renderers/circle.tsx": () => import("./circle-D6F6C_K7.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-BzEVX2MT.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-DdaVeq68.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-Dh8aPf8u.js"), "./renderers/containerInline.tsx": () => import("./containerInline-CXWVzQKY.js"), "./renderers/curve.tsx": () => import("./curve-Bo3f3QhN.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-CWHIecu7.js"), "./renderers/em.tsx": () => import("./em-D156gclE.js"), "./renderers/embed.tsx": () => import("./embed-C7WH3JZc.js"), "./renderers/feedback.tsx": () => import("./feedback-CKure42m.js"), "./renderers/figure.tsx": () => import("./figure-BiaA8c9E.js"), "./renderers/footnote.tsx": () => import("./footnote-RYZSZETJ.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-DsYkUgKb.js"), "./renderers/graph.tsx": () => import("./graph-9IlaBXiy.js"), "./renderers/hint.tsx": () => import("./hint-BefQouH_.js"), "./renderers/hr.tsx": () => import("./hr-Dq7PijmJ.js"), "./renderers/image.tsx": () => import("./image-JVtPuER-.js"), "./renderers/label.tsx": () => import("./label-fU1-vuCj.js"), "./renderers/legend.tsx": () => import("./legend-x1mKgk00.js"), "./renderers/line.tsx": () => import("./line-Yc9AKeY3.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-Dtnb1M7N.js"), "./renderers/list.tsx": () => import("./list-T3t2VZZG.js"), "./renderers/lq.tsx": () => import("./lq-BRtJmnD8.js"), "./renderers/lsq.tsx": () => import("./lsq-B7ow4ycJ.js"), "./renderers/math.tsx": () => import("./math-CPh4haNx.js"), "./renderers/mathInput.tsx": () => import("./mathInput-CyFc13so.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-CuEQX18N.js"), "./renderers/mdash.tsx": () => import("./mdash-gM4yl5jm.js"), "./renderers/nbsp.tsx": () => import("./nbsp-wn7JuCao.js"), "./renderers/ndash.tsx": () => import("./ndash-C61-WMFr.js"), "./renderers/number.tsx": () => import("./number-CAcif1O-.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-C3zOR_lN.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-CvpxktJw.js"), "./renderers/p.tsx": () => import("./p-DC_HDjop.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-BQ_gBjxa.js"), "./renderers/pegboard.tsx": () => import("./pegboard-BCF3DNbi.js"), "./renderers/point.tsx": () => import("./point-B2a68TSy.js"), "./renderers/polygon.tsx": () => import("./polygon-Hd1JVKgG.js"), "./renderers/polyline.tsx": () => import("./polyline-B_UsdFgl.js"), "./renderers/pre.tsx": () => import("./pre-wICLrSMz.js"), "./renderers/prefigure.tsx": () => import("./prefigure-CtwO-Ek7.js"), "./renderers/pretzel.tsx": () => import("./pretzel-sWyN5jMY.js"), "./renderers/q.tsx": () => import("./q-q9OAh4Ro.js"), "./renderers/ray.tsx": () => import("./ray-BqHUFK2S.js"), "./renderers/ref.tsx": () => import("./ref-DvDQaG7W.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-BlYwXBt8.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-igxdaCRE.js"), "./renderers/row.tsx": () => import("./row-Cw-PQzOt.js"), "./renderers/rq.tsx": () => import("./rq-SA-mP3zu.js"), "./renderers/rsq.tsx": () => import("./rsq-vmEaBpiI.js"), "./renderers/section.tsx": () => import("./section-ByQYhbo2.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-DWQFAa7O.js"), "./renderers/slider.tsx": () => import("./slider-DJj0KOV3.js"), "./renderers/solution.tsx": () => import("./solution-CgD50BkF.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-54OxiaBY.js"), "./renderers/sq.tsx": () => import("./sq-vKCgTxb0.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-DwiZ6T-u.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-SIeC2Lk3.js"), "./renderers/table.tsx": () => import("./table-C8v1Etby.js"), "./renderers/tabular.tsx": () => import("./tabular-DeV5V68F.js"), "./renderers/tag.tsx": () => import("./tag-CQ86RNOG.js"), "./renderers/text.tsx": () => import("./text-DBGc_JRg.js"), "./renderers/textInput.tsx": () => import("./textInput-DzrMTbGf.js"), "./renderers/vector.tsx": () => import("./vector-D4hifApJ.js"), "./renderers/video.tsx": () => import("./video-BRh7hPva.js") }), `./renderers/${childInstructions.rendererType}.tsx`, 3);
71
+ }
72
+ return rendererLoaders;
73
+ });
74
+ }
75
+ return null;
76
+ }
77
+ let child = React__default.createElement(rendererClass, propsForChild);
78
+ return child;
79
+ }
80
+ let rendererType = props.componentInstructions.rendererType;
81
+ const callAction = (argObj) => {
82
+ if (!argObj.componentIdx) {
83
+ argObj = { ...argObj };
84
+ argObj.componentIdx = componentIdx;
85
+ }
86
+ if (!argObj.rendererType) {
87
+ argObj = { ...argObj };
88
+ argObj.rendererType = rendererType;
89
+ }
90
+ return props.callAction(argObj);
91
+ };
92
+ return {
93
+ componentIdx: effectiveIdx,
94
+ id: prefixForIds + id,
95
+ SVs: stateValues,
96
+ docId: props.docId,
97
+ activityId: props.activityId,
98
+ actions,
99
+ children,
100
+ sourceOfUpdate,
101
+ ignoreUpdate,
102
+ rendererName,
103
+ initializeChildren: () => {
104
+ },
105
+ callAction,
106
+ doenetViewerUrl: props.doenetViewerUrl,
107
+ fetchExternalDoenetML: props.fetchExternalDoenetML,
108
+ requestScrollTo: props.requestScrollTo,
109
+ flags: props.flags
110
+ };
111
+ }
112
+ export {
113
+ useDoenetRenderer as u
114
+ };
@@ -1,5 +1,5 @@
1
- import { j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
2
- import { F as FontAwesomeIcon } from "./index.es-BUulqU23.js";
1
+ import { j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.js";
2
+ import { F as FontAwesomeIcon } from "./index.es-B7tXjawr.js";
3
3
  import { d as faSpinner, e as faLevelDownAlt, g as faCheck, h as faTimes, i as faCloud } from "./index-BDlitCgu.js";
4
4
  import React__default, { useCallback } from "react";
5
5
  function calculateValidationState(SVs) {
@@ -1,9 +1,9 @@
1
- import { k as DocContext, j as jsxRuntimeExports, t as textRendererStyle, l as DynamicMath } from "./doenetml-9XrvdLhb.js";
1
+ import { k as DocContext, j as jsxRuntimeExports, t as textRendererStyle, l as DynamicMath } from "./doenetml-D1gCmKxU.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-sJ8eDEVe.js";
4
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
5
- import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-Ch-4_Zgu.js";
6
- import { ChoiceInputInlineContext } from "./choiceInput-DoaIVekP.js";
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-ckJeQFlL.js";
4
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
5
+ import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-9IlaBXiy.js";
6
+ import { ChoiceInputInlineContext } from "./choiceInput-CH4TL5le.js";
7
7
  import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-WXpVD4ud.js";
8
8
  import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
9
9
  import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
@@ -1,10 +1,10 @@
1
- import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-9XrvdLhb.js";
1
+ import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-D1gCmKxU.js";
2
2
  import React__default, { useState, useEffect, useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-D02nPaFu.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-H_gjGvyp.js";
4
4
  import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
5
- import { D as DescriptionPopover, a as DescriptionAsDetails } from "./Description-DTfPfSBd.js";
5
+ import { D as DescriptionPopover, a as DescriptionAsDetails } from "./Description-DueieOS6.js";
6
6
  import { g as getNonInlineMediaLayoutStyles } from "./nonInlineMediaLayout-CkXHaqzo.js";
7
- import { N as NonInlineMediaWrapper } from "./NonInlineMediaWrapper-C4ekFj28.js";
7
+ import { N as NonInlineMediaWrapper } from "./NonInlineMediaWrapper-Dd6Gxn78.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 { v as useAppSelector, w as mainSlice, x as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-9XrvdLhb.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-DoOnRIoM.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-sJ8eDEVe.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-Bi1Inyjx.js"), "./renderers/alert.tsx": () => import("./alert-CfnuDDVP.js"), "./renderers/angle.tsx": () => import("./angle-CWXA9r8g.js"), "./renderers/answer.tsx": () => import("./answer-YYWBSei9.js"), "./renderers/asList.tsx": () => import("./asList-DC8b5u3s.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-BQ-c723v.js"), "./renderers/boolean.tsx": () => import("./boolean-CBGztFeU.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-B75DR5Tn.js"), "./renderers/br.tsx": () => import("./br-BKS92BVt.js"), "./renderers/button.tsx": () => import("./button-C5RD0yqb.js"), "./renderers/c.tsx": () => import("./c-eCsARRoV.js"), "./renderers/cell.tsx": () => import("./cell-D6NDHpZI.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-DoaIVekP.js"), "./renderers/circle.tsx": () => import("./circle-CBqNdNRP.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-yey56GIm.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-B1P5Z8p3.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-C6Sfa8Ci.js"), "./renderers/containerInline.tsx": () => import("./containerInline-Dbi9u38I.js"), "./renderers/curve.tsx": () => import("./curve-CgyvF3NM.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-BoH_ln2Z.js"), "./renderers/em.tsx": () => import("./em-D_yB3IrE.js"), "./renderers/embed.tsx": () => import("./embed-Cx52dVn3.js"), "./renderers/feedback.tsx": () => import("./feedback-BvOEHwDg.js"), "./renderers/figure.tsx": () => import("./figure-BOObAn6b.js"), "./renderers/footnote.tsx": () => import("./footnote-Ct-TlNAn.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-D4dArFUH.js"), "./renderers/graph.tsx": () => import("./graph-Ch-4_Zgu.js"), "./renderers/hint.tsx": () => import("./hint-DZuw3Zeu.js"), "./renderers/hr.tsx": () => import("./hr-CZlPrmV2.js"), "./renderers/image.tsx": () => import("./image-CsOcxnqE.js"), "./renderers/label.tsx": () => import("./label-CM6Auntf.js"), "./renderers/legend.tsx": () => import("./legend-DyoBLCQ8.js"), "./renderers/line.tsx": () => import("./line-BlU06XDf.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-BNjSWTOD.js"), "./renderers/list.tsx": () => import("./list-CzengWzd.js"), "./renderers/lq.tsx": () => import("./lq-Bd5kvtdo.js"), "./renderers/lsq.tsx": () => import("./lsq-B4y7uxLI.js"), "./renderers/math.tsx": () => import("./math-DhiLolI2.js"), "./renderers/mathInput.tsx": () => import("./mathInput-57_gjcR-.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-ByLSOf0S.js"), "./renderers/mdash.tsx": () => import("./mdash-DFHKikIf.js"), "./renderers/nbsp.tsx": () => import("./nbsp-CqBb3UuF.js"), "./renderers/ndash.tsx": () => import("./ndash-B-Ki8m72.js"), "./renderers/number.tsx": () => import("./number-DHrh5Q3R.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-C0VD69Mr.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-xMpykYMb.js"), "./renderers/p.tsx": () => import("./p-L45pbeWN.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-BjVrkNXD.js"), "./renderers/pegboard.tsx": () => import("./pegboard-Dve_fDn5.js"), "./renderers/point.tsx": () => import("./point-C9ZBE4FI.js"), "./renderers/polygon.tsx": () => import("./polygon-B8bKwmQY.js"), "./renderers/polyline.tsx": () => import("./polyline-DTnfl4aZ.js"), "./renderers/pre.tsx": () => import("./pre-n_59CAbf.js"), "./renderers/prefigure.tsx": () => import("./prefigure-Dytj_Prm.js"), "./renderers/pretzel.tsx": () => import("./pretzel-Dyf2JRAJ.js"), "./renderers/q.tsx": () => import("./q-DT14If67.js"), "./renderers/ray.tsx": () => import("./ray-DZMivfiC.js"), "./renderers/ref.tsx": () => import("./ref-CUjV4Aa1.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-Dn1SDdaC.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-CDcjvTYt.js"), "./renderers/row.tsx": () => import("./row-LFUoHvCl.js"), "./renderers/rq.tsx": () => import("./rq-CcgZYohE.js"), "./renderers/rsq.tsx": () => import("./rsq-BSruNevE.js"), "./renderers/section.tsx": () => import("./section-Cqph2lHX.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-D_eNIscE.js"), "./renderers/slider.tsx": () => import("./slider-CG6B17hb.js"), "./renderers/solution.tsx": () => import("./solution-bnXeOWq4.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-lhQ8TJ-O.js"), "./renderers/sq.tsx": () => import("./sq-D4HKq7eJ.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-Bw73BUyU.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-BrQQS9vU.js"), "./renderers/table.tsx": () => import("./table-CVnmsPP1.js"), "./renderers/tabular.tsx": () => import("./tabular-Bt1LzcJ0.js"), "./renderers/tag.tsx": () => import("./tag-BsoTBwQl.js"), "./renderers/text.tsx": () => import("./text-CZ3y22on.js"), "./renderers/textInput.tsx": () => import("./textInput-xvW78L4_.js"), "./renderers/vector.tsx": () => import("./vector-Ds0qApMw.js"), "./renderers/video.tsx": () => import("./video-DDmKUOH7.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
- };