@doenet/doenetml 0.7.28 → 0.7.29

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 (114) hide show
  1. package/{AnswerResponseButton-BhV-fH0f.js → AnswerResponseButton-5TmbZd7d.js} +2 -2
  2. package/{Description-B3WntRi0.js → Description-Bwh1ddsL.js} +1 -1
  3. package/{DynamicMath-C5szNUNB.js → DynamicMath-JfkONiS3.js} +1 -1
  4. package/{EditorViewer-B2aXI6nR.js → EditorViewer-CdphUA5N.js} +6 -6
  5. package/{GraphFrame-BtykRfYE.js → GraphFrame-B3v71UGh.js} +2 -2
  6. package/{JSXGraphRenderer-CXQTf2Og.js → JSXGraphRenderer-ol9yW3zC.js} +1 -1
  7. package/{NonInlineMediaWrapper-CAgt05UB.js → NonInlineMediaWrapper-DWliwtbX.js} +1 -1
  8. package/Viewer/renderers/choiceInput.d.ts.map +1 -1
  9. package/{_error-F7uUPeAr.js → _error-D39DZJ5z.js} +2 -2
  10. package/{alert-DdcwjfH3.js → alert-BYylv8TH.js} +3 -3
  11. package/{angle-vcsvcksN.js → angle-C_4jhlEj.js} +7 -7
  12. package/{answer-DlUVwqYk.js → answer-C7b27qNN.js} +6 -6
  13. package/{asList-Cf9fd2aP.js → asList-Dlzt8eM4.js} +2 -2
  14. package/{blockQuote-Cu0DspP7.js → blockQuote-CG4Got3o.js} +3 -3
  15. package/{boolean-uAULjT3p.js → boolean-D-9CqFgJ.js} +2 -2
  16. package/{booleanInput-CEEhKJvt.js → booleanInput-Cb4FcdC7.js} +6 -6
  17. package/{br-HRKg7Ie4.js → br-uUDTVde6.js} +2 -2
  18. package/{button-D4cgMCgE.js → button-BXBCkLN6.js} +4 -4
  19. package/{c-DYHo3Ug0.js → c-BIN1p-q5.js} +3 -3
  20. package/{cell-BBBhfLEa.js → cell-C6b4N8WY.js} +3 -3
  21. package/{chart-_d_pFWkN.js → chart-Bad1vbl5.js} +4 -4
  22. package/{choiceInput-D8XoroYo.js → choiceInput-CiPmndKK.js} +81 -26
  23. package/{circle-DMWP5PVJ.js → circle-iNnYmJbZ.js} +6 -6
  24. package/{cobwebPolyline-KsiLYUwt.js → cobwebPolyline-CUcfz9WT.js} +4 -4
  25. package/{codeEditor-DotcRYEg.js → codeEditor-C9lN32yo.js} +2 -2
  26. package/{composites-BLiLfHzq.js → composites-y-QErhdu.js} +1 -1
  27. package/{containerBlock-CcygST-m.js → containerBlock-BUk-D9qQ.js} +4 -4
  28. package/{containerInline-CQ24xJAc.js → containerInline-DgegussH.js} +4 -4
  29. package/{curve-BZUU1pxK.js → curve-DJzGwEZ0.js} +4 -4
  30. package/{doenetml-BBdC5nDq.js → doenetml-DniRyXf-.js} +3 -3
  31. package/doenetml-external-worker.js +2 -2
  32. package/doenetml-inline-worker.js +4 -4
  33. package/doenetml-worker/index.esm.js +1 -1
  34. package/doenetml-worker/index.js +1 -1
  35. package/doenetml-worker/lib_doenetml_worker_bg.wasm +0 -0
  36. package/{ellipsis-BQXu0AAI.js → ellipsis-PN7ngj7W.js} +2 -2
  37. package/{em-C40KG-3z.js → em-CNG_iK55.js} +3 -3
  38. package/{embed-BJr1GMwg.js → embed-CWpeIjuo.js} +2 -2
  39. package/{feedback-BMsUlQe0.js → feedback-dBBsU2hM.js} +4 -4
  40. package/{figure-Bp0y1pMc.js → figure-CK0Xq5kb.js} +3 -3
  41. package/{fillPatterns-eo66TX5S.js → fillPatterns-BHzhY-Du.js} +1 -1
  42. package/{footnote-A9EOMZmI.js → footnote-B4dfh99B.js} +3 -3
  43. package/{fractionInput-C_xY5GuJ.js → fractionInput-CEHZYDhK.js} +4 -4
  44. package/{graph-DZy3b5_V.js → graph-B6sbYCWq.js} +6 -6
  45. package/{hint-DYR_8dZI.js → hint-B0kL7jAI.js} +4 -4
  46. package/{hovercard-store-DlTzI4OX.js → hovercard-store-o287QVQm.js} +1 -1
  47. package/{hr-CMi5iaaC.js → hr-C0qaqPqo.js} +2 -2
  48. package/{image-BPCtrSRJ.js → image--uHTiApM.js} +7 -7
  49. package/{index-DTxWFUza.js → index-CVNV-HQs.js} +1 -1
  50. package/{index.es-8gpABX0x.js → index.es-umP8GwPR.js} +1 -1
  51. package/index.js +1 -1
  52. package/{label-DXcjGXe3.js → label-BSv-gF4o.js} +7 -7
  53. package/{labelWithLatex-DVjlrIhb.js → labelWithLatex-COLLE6eZ.js} +2 -2
  54. package/{legend-DqcoieLZ.js → legend-C7vDBwmq.js} +4 -4
  55. package/{line-B0qvaiLu.js → line-Brcc-CY6.js} +7 -7
  56. package/{lineFamilyDragHandlers-B4Dq55i-.js → lineFamilyDragHandlers-B5KcJnym.js} +1 -1
  57. package/{lineSegment-D021fRyO.js → lineSegment-C9aAy33M.js} +5 -5
  58. package/{list-BMGsodT4.js → list-GFsHmmCF.js} +4 -4
  59. package/{lq-C0nE6hdc.js → lq-CzHReOcD.js} +2 -2
  60. package/{lsq-Dzw1Y7Py.js → lsq--HNpXZBU.js} +2 -2
  61. package/{markupRenderer-B5rMHTYk.js → markupRenderer-Byil5VV6.js} +1 -1
  62. package/{math-D2Wh4WwC.js → math-DOUW0K2g.js} +8 -8
  63. package/{mathInput-B1s60n8d.js → mathInput-C8O8rBbr.js} +8 -8
  64. package/{mathInputSlots-DdtupGxI.js → mathInputSlots-DsRG1Uuu.js} +1 -1
  65. package/{matrixInput-Cdk_xWjc.js → matrixInput-FWIkxBbp.js} +4 -4
  66. package/{mdash-Ds8nKk0B.js → mdash-ChIJ3dQB.js} +2 -2
  67. package/{nbsp-2q2bf8S6.js → nbsp-OyT3nzjV.js} +2 -2
  68. package/{ndash-BBubruiq.js → ndash-d5pwuB9Y.js} +2 -2
  69. package/{number-Ddb1pE5J.js → number-D3qOIb51.js} +7 -7
  70. package/{orbitalDiagram-B3SBBkgY.js → orbitalDiagram-CDTD8KFd.js} +2 -2
  71. package/{orbitalDiagramInput-DihBoUEV.js → orbitalDiagramInput-D7vtQwXv.js} +2 -2
  72. package/{p-s7SLLSm2.js → p-CGnrUUp6.js} +4 -4
  73. package/package.json +1 -1
  74. package/{paginatorControls-DpvSadO2.js → paginatorControls-CVXxrvva.js} +2 -2
  75. package/{pegboard-I1K5UGJn.js → pegboard-Gp1mwVe_.js} +4 -4
  76. package/{point-BQTv3wMK.js → point-C0aNSn-i.js} +7 -7
  77. package/{polygon-BC8ctVEl.js → polygon-CZlBz0Ie.js} +6 -6
  78. package/{polyline-D2gpd7Oq.js → polyline-DlooE8zP.js} +5 -5
  79. package/{pre-CrJYYMQo.js → pre-DxDtrGME.js} +3 -3
  80. package/{prefigure-CslXm89f.js → prefigure-Bnap2gVW.js} +1 -1
  81. package/{pretzel-D3gvUOyD.js → pretzel-CmVIlfFT.js} +4 -4
  82. package/{q-BAawm9xW.js → q-nZyE7NwW.js} +3 -3
  83. package/{ray-BaHiyOUa.js → ray-DtpF790l.js} +5 -5
  84. package/{ref-GUgcjhfU.js → ref-D69dwNoF.js} +2 -2
  85. package/{regionBetweenCurveXAxis-i3bOTzjd.js → regionBetweenCurveXAxis-D7l7jYRM.js} +5 -5
  86. package/{regionBetweenCurves-DYE1Vbnc.js → regionBetweenCurves-CveBlyt7.js} +5 -5
  87. package/{row-CBxwjwyT.js → row-Ct3DC53R.js} +2 -2
  88. package/{rq-D6dugJGJ.js → rq-_VjcWBZ5.js} +2 -2
  89. package/{rsq-CalTiWfM.js → rsq-Blw7E8_1.js} +2 -2
  90. package/{section-BIWlmh5W.js → section-CWznnm7l.js} +5 -5
  91. package/{sha256-8sXzDnE0-Cr48C36V.js → sha256-8sXzDnE0-CBfjP5sv.js} +1 -1
  92. package/{sideBySide-B633NR5Y.js → sideBySide-P-YmSoy0.js} +2 -2
  93. package/{slider-Bx5Oqnqn.js → slider-CMvMSH4g.js} +3 -3
  94. package/{slopeField-B8aDymjD.js → slopeField-CHNhckOI.js} +2 -2
  95. package/{solution-kGIfYtgM.js → solution-DTsJTRhp.js} +4 -4
  96. package/{spreadsheet-CxQbb_QO.js → spreadsheet-CXGYsx5G.js} +2 -2
  97. package/{sq-BBncZvOg.js → sq-B2lzNWa4.js} +3 -3
  98. package/style.css +5 -0
  99. package/{subsetOfRealsInput-BshJ4zsS.js → subsetOfRealsInput-Dx6ZhpTn.js} +2 -2
  100. package/{summaryStatistics-Be0JqPsp.js → summaryStatistics-Bz2G-3Kb.js} +2 -2
  101. package/{table-DASPy9FW.js → table-BgjTP2Le.js} +2 -2
  102. package/{tabular-BrxL-3Wz.js → tabular-Blmdy1BA.js} +2 -2
  103. package/{tag-B6k31w7B.js → tag-CEbnb-fS.js} +2 -2
  104. package/{text-CMVHChn2.js → text-B2udsWdP.js} +6 -6
  105. package/{textInput-DFxuPFsZ.js → textInput-BZKFL2BV.js} +7 -7
  106. package/{tooltip-provider-DEDN8FXl.js → tooltip-provider-t6Hy5a1b.js} +2 -2
  107. package/{useAnchoredGraphDragHandler-DrzIP4BN.js → useAnchoredGraphDragHandler-BFuYmBrP.js} +1 -1
  108. package/useDoenetRenderer-BhmRwE0u.js +114 -0
  109. package/{useFieldCurve-ImmDLKXk.js → useFieldCurve-9Kzohky2.js} +2 -2
  110. package/{useSubmitActionWithDelay-DKaHznN9.js → useSubmitActionWithDelay-CM0JOqF-.js} +2 -2
  111. package/{vector-kClHMBkU.js → vector-Dx8Tig9b.js} +7 -7
  112. package/{vectorField-DlGuHWNR.js → vectorField-BMk-f7FD.js} +2 -2
  113. package/{video-Ch3BGVbQ.js → video-CASoy4Xd.js} +4 -4
  114. package/useDoenetRenderer-C1ESpwv3.js +0 -114
@@ -1,9 +1,9 @@
1
- import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
2
  import React__default, { useContext, useRef } from "react";
3
- import { r as removeJXGEventHandlers, j as jxg, g as syncVisPropValues, s as syncLayer, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, e as syncLineStrokeStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-CXQTf2Og.js";
4
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
5
- import { BoardContext, LINE_LAYER_OFFSET, VERTEX_LAYER_OFFSET } from "./graph-DZy3b5_V.js";
6
- import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-B4Dq55i-.js";
3
+ import { r as removeJXGEventHandlers, j as jxg, g as syncVisPropValues, s as syncLayer, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, e as syncLineStrokeStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-ol9yW3zC.js";
4
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
5
+ import { BoardContext, LINE_LAYER_OFFSET, VERTEX_LAYER_OFFSET } from "./graph-B6sbYCWq.js";
6
+ import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-B5KcJnym.js";
7
7
  import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
8
8
  import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
9
9
  import { a as resolveLineColor, r as resolveFillColor, b as resolveCanvasColor, d as resolveHandleColor } from "./styleColors-BrCvjxze.js";
@@ -11,7 +11,7 @@ import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
11
11
  import { u as useDraggableRefs } from "./useDraggableRefs-QaTfkVuD.js";
12
12
  import { u as useJSXGraphCleanup } from "./useJSXGraphCleanup-BNk4sn6x.js";
13
13
  import { d as buildBaseAttributes } from "./buildGraphicalAttributes-B_soifR-.js";
14
- import { g as getPatternFillAttributes } from "./fillPatterns-eo66TX5S.js";
14
+ import { g as getPatternFillAttributes } from "./fillPatterns-BHzhY-Du.js";
15
15
  const polygon = React__default.memo(function Polygon(props) {
16
16
  let { componentIdx, id, SVs, actions, sourceOfUpdate, callAction } = useDoenetRenderer(props);
17
17
  Polygon.ignoreActionsWithoutCore = () => true;
@@ -1,9 +1,9 @@
1
- import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
2
  import React__default, { useContext, useRef } from "react";
3
- import { s as syncLayer, r as removeJXGEventHandlers, j as jxg, g as syncVisPropValues, e as syncLineStrokeStyle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-CXQTf2Og.js";
4
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
5
- import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-DZy3b5_V.js";
6
- import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-B4Dq55i-.js";
3
+ import { s as syncLayer, r as removeJXGEventHandlers, j as jxg, g as syncVisPropValues, e as syncLineStrokeStyle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-ol9yW3zC.js";
4
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
5
+ import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-B6sbYCWq.js";
6
+ import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-B5KcJnym.js";
7
7
  import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
8
8
  import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
9
9
  import { a as resolveLineColor, d as resolveHandleColor } from "./styleColors-BrCvjxze.js";
@@ -1,7 +1,7 @@
1
- import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
2
  import React__default, { useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
4
- import { a as addCommasForCompositeRanges } from "./composites-BLiLfHzq.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
4
+ import { a as addCommasForCompositeRanges } from "./composites-y-QErhdu.js";
5
5
  import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
6
6
  const pre = React__default.memo(function Pre(props) {
7
7
  let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
@@ -1,4 +1,4 @@
1
- import { q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
2
  import React__default, { useState, useRef, useEffect } from "react";
3
3
  const __vite_import_meta_env__ = {};
4
4
  const DEFAULT_PREFIGURE_BUILD_ENDPOINT = "https://prefigure.doenet.org/build";
@@ -1,8 +1,8 @@
1
- import { u as useT, I as useContentT, v as useChromeLangDir, J as useRecordVisibilityChanges, E as DocContext, q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { u as useT, I as useContentT, v as useChromeLangDir, J as useRecordVisibilityChanges, E as DocContext, q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
2
  import React__default, { useRef, useContext } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
4
- import { A as AnswerResponseButton } from "./AnswerResponseButton-BhV-fH0f.js";
5
- import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-DKaHznN9.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
4
+ import { A as AnswerResponseButton } from "./AnswerResponseButton-5TmbZd7d.js";
5
+ import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-CM0JOqF-.js";
6
6
  const pretzel = React__default.memo(function Pretzel(props) {
7
7
  let {
8
8
  componentIdx,
@@ -1,7 +1,7 @@
1
- import { q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
2
  import React__default from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
4
- import { r as renderMarkupBody } from "./markupRenderer-B5rMHTYk.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
4
+ import { r as renderMarkupBody } from "./markupRenderer-Byil5VV6.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,9 +1,9 @@
1
- import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-DniRyXf-.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-CXQTf2Og.js";
4
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
5
- import { BoardContext, LINE_LAYER_OFFSET } from "./graph-DZy3b5_V.js";
6
- import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-B4Dq55i-.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-ol9yW3zC.js";
4
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
5
+ import { BoardContext, LINE_LAYER_OFFSET } from "./graph-B6sbYCWq.js";
6
+ import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-B5KcJnym.js";
7
7
  import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-B_soifR-.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,6 +1,6 @@
1
- import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { E as DocContext, q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
2
  import React__default, { useContext, useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.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 { E as DocContext, N as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { E as DocContext, N as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-DniRyXf-.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-CXQTf2Og.js";
4
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
5
- import { BoardContext, LINE_LAYER_OFFSET } from "./graph-DZy3b5_V.js";
6
- import { g as getPatternFillAttributes } from "./fillPatterns-eo66TX5S.js";
3
+ import { j as jxg, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-ol9yW3zC.js";
4
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
5
+ import { BoardContext, LINE_LAYER_OFFSET } from "./graph-B6sbYCWq.js";
6
+ import { g as getPatternFillAttributes } from "./fillPatterns-BHzhY-Du.js";
7
7
  import { b as resolveCanvasColor } from "./styleColors-BrCvjxze.js";
8
8
  const regionBetweenCurveXAxis = React__default.memo(function RegionBetweenCurveXAxis(props) {
9
9
  let { id, SVs } = useDoenetRenderer(props);
@@ -1,11 +1,11 @@
1
- import { E as DocContext, N as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { E as DocContext, N as createFunctionFromDefinition, q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
2
  import React__default, { useContext, useRef, useEffect } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
4
- import { BoardContext, LINE_LAYER_OFFSET } from "./graph-DZy3b5_V.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
4
+ import { BoardContext, LINE_LAYER_OFFSET } from "./graph-B6sbYCWq.js";
5
5
  import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
6
- import { g as getPatternFillAttributes } from "./fillPatterns-eo66TX5S.js";
6
+ import { g as getPatternFillAttributes } from "./fillPatterns-BHzhY-Du.js";
7
7
  import { b as resolveCanvasColor } from "./styleColors-BrCvjxze.js";
8
- import { b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-CXQTf2Og.js";
8
+ import { b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-ol9yW3zC.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 { q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
2
  import React__default from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.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 { q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
2
  import React__default from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.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 { q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
2
  import React__default from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.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 { u as useT, I as useContentT, Q as directionOf, R as useDocumentDirection, S as chromeLangDir, t as useUiLocale, E as DocContext, L as cesc, J as useRecordVisibilityChanges, q as jsxRuntimeExports, T as DocumentDirectionProvider } from "./doenetml-BBdC5nDq.js";
1
+ import { u as useT, I as useContentT, Q as directionOf, R as useDocumentDirection, S as chromeLangDir, t as useUiLocale, E as DocContext, L as cesc, J as useRecordVisibilityChanges, q as jsxRuntimeExports, T as DocumentDirectionProvider } from "./doenetml-DniRyXf-.js";
2
2
  import React__default, { useContext, useRef, useEffect } from "react";
3
- import { F as FontAwesomeIcon } from "./index.es-8gpABX0x.js";
3
+ import { F as FontAwesomeIcon } from "./index.es-umP8GwPR.js";
4
4
  import { f as faCaretDown, a as faCaretRight } from "./index-BDlitCgu.js";
5
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
6
- import { a as addCommasForCompositeRanges } from "./composites-BLiLfHzq.js";
7
- import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-DKaHznN9.js";
5
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
6
+ import { a as addCommasForCompositeRanges } from "./composites-y-QErhdu.js";
7
+ import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-CM0JOqF-.js";
8
8
  import { c as clickToToggleLabel } from "./disclosure-axyZa36E.js";
9
9
  const section = React__default.memo(function Section(props) {
10
10
  let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
@@ -1,4 +1,4 @@
1
- import { p as getDefaultExportFromCjs } from "./doenetml-BBdC5nDq.js";
1
+ import { p as getDefaultExportFromCjs } from "./doenetml-DniRyXf-.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 { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
2
  import React__default, { useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
4
4
  import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
5
5
  function isWhitespaceTextChild(child) {
6
6
  return typeof child === "string" && child.trim() === "";
@@ -1,8 +1,8 @@
1
- import { u as useT, q as jsxRuntimeExports, U as ActionButtonGroup, V as ActionButton, K as Context } from "./doenetml-BBdC5nDq.js";
1
+ import { u as useT, q as jsxRuntimeExports, U as ActionButtonGroup, V as ActionButton, K as Context } from "./doenetml-DniRyXf-.js";
2
2
  import React__default, { useState, useRef, useEffect } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
4
4
  import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
5
- import { r as renderLabelWithLatex } from "./labelWithLatex-DVjlrIhb.js";
5
+ import { r as renderLabelWithLatex } from "./labelWithLatex-COLLE6eZ.js";
6
6
  import { l as ltrIslandProps } from "./direction-BwrU7jHk.js";
7
7
  let round_to_decimals = (x, n) => {
8
8
  try {
@@ -1,6 +1,6 @@
1
1
  import React__default from "react";
2
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
3
- import { u as useFieldFunction, a as useFieldCurve, b as buildSlopeFieldData } from "./useFieldCurve-ImmDLKXk.js";
2
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
3
+ import { u as useFieldFunction, a as useFieldCurve, b as buildSlopeFieldData } from "./useFieldCurve-9Kzohky2.js";
4
4
  const slopeField = React__default.memo(function SlopeField(props) {
5
5
  let { SVs } = useDoenetRenderer(props);
6
6
  SlopeField.ignoreActionsWithoutCore = () => true;
@@ -1,9 +1,9 @@
1
- import { u as useT, J as useRecordVisibilityChanges, v as useChromeLangDir, q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { u as useT, J as useRecordVisibilityChanges, v as useChromeLangDir, q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
2
  import React__default, { useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
4
- import { F as FontAwesomeIcon } from "./index.es-8gpABX0x.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
4
+ import { F as FontAwesomeIcon } from "./index.es-umP8GwPR.js";
5
5
  import { c as faPuzzlePiece } from "./index-BDlitCgu.js";
6
- import { a as addCommasForCompositeRanges } from "./composites-BLiLfHzq.js";
6
+ import { a as addCommasForCompositeRanges } from "./composites-y-QErhdu.js";
7
7
  import { c as clickToToggleLabel } from "./disclosure-axyZa36E.js";
8
8
  const solution = React__default.memo(function Solution(props) {
9
9
  let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
@@ -1,6 +1,6 @@
1
- import { E as DocContext, J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { E as DocContext, J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-DniRyXf-.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-C1ESpwv3.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
4
4
  import require$$2 from "react-dom";
5
5
  import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
6
6
  import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
@@ -1,7 +1,7 @@
1
- import { q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
2
  import React__default from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
4
- import { r as renderMarkupBody } from "./markupRenderer-B5rMHTYk.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
4
+ import { r as renderMarkupBody } from "./markupRenderer-Byil5VV6.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 });
package/style.css CHANGED
@@ -129,6 +129,11 @@ html {
129
129
  font-family: "Open Sans" !important;
130
130
  color: var(--canvasText);
131
131
  overflow-x: auto;
132
+ /* Without this, `overflow-x: auto` makes `overflow-y` compute to `auto`,
133
+ and content a few pixels taller than the viewer turns it into a
134
+ vertical scroller. iOS WebKit then hands every drag to that tiny
135
+ scroller, which snaps back, so the host page can't be scrolled. */
136
+ overflow-y: hidden;
132
137
  }
133
138
  .doenet-viewer h1 {
134
139
  font-size: 2em;
@@ -1,6 +1,6 @@
1
- import { u as useT, J as useRecordVisibilityChanges, q as jsxRuntimeExports, $ as ToggleButtonGroup, Y as ToggleButton, U as ActionButtonGroup, V as ActionButton } from "./doenetml-BBdC5nDq.js";
1
+ import { u as useT, J as useRecordVisibilityChanges, q as jsxRuntimeExports, $ as ToggleButtonGroup, Y as ToggleButton, U as ActionButtonGroup, V as ActionButton } from "./doenetml-DniRyXf-.js";
2
2
  import React__default, { useState, useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
4
4
  import { l as ltrIslandProps } from "./direction-BwrU7jHk.js";
5
5
  const subsetOfRealsInput = React__default.memo(function subsetOfReals(props) {
6
6
  let { id, SVs, actions, callAction } = useDoenetRenderer(props, false);
@@ -1,6 +1,6 @@
1
- import { u as useT, v as useChromeLangDir, J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { u as useT, v as useChromeLangDir, J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
2
  import React__default, { useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
4
4
  const summaryStatistics = React__default.memo(function SummaryStatistics(props) {
5
5
  let { id, SVs, actions, callAction } = useDoenetRenderer(props);
6
6
  const t = useT();
@@ -1,6 +1,6 @@
1
- import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
2
  import React__default, { useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
4
4
  const table = React__default.memo(function Table(props) {
5
5
  let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
6
6
  const ref = useRef(null);
@@ -1,6 +1,6 @@
1
- import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { J as useRecordVisibilityChanges, q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
2
  import React__default, { useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
4
4
  import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
5
5
  import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
6
6
  const tabular = React__default.memo(function Tabular(props) {
@@ -1,6 +1,6 @@
1
- import { q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
1
+ import { q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
2
  import React__default from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
4
4
  const tag = React__default.memo(function Tag(props) {
5
5
  let { id, SVs, children } = useDoenetRenderer(props);
6
6
  if (SVs.hidden) {
@@ -1,13 +1,13 @@
1
- import { E as DocContext, K as Context, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-BBdC5nDq.js";
1
+ import { E as DocContext, K as Context, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-DniRyXf-.js";
2
2
  import React__default, { useRef, useContext } from "react";
3
- import { j as jxg } from "./JSXGraphRenderer-CXQTf2Og.js";
4
- import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-DZy3b5_V.js";
5
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
3
+ import { j as jxg } from "./JSXGraphRenderer-ol9yW3zC.js";
4
+ import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-B6sbYCWq.js";
5
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
6
6
  import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
7
- import { ChoiceInputInlineContext } from "./choiceInput-D8XoroYo.js";
7
+ import { ChoiceInputInlineContext } from "./choiceInput-CiPmndKK.js";
8
8
  import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
9
9
  import { u as useDraggableRefs } from "./useDraggableRefs-QaTfkVuD.js";
10
- import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-DrzIP4BN.js";
10
+ import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-BFuYmBrP.js";
11
11
  import { u as useJSXGraphCleanup } from "./useJSXGraphCleanup-BNk4sn6x.js";
12
12
  import { e as resolveTextColor, f as resolveBackgroundColor } from "./styleColors-BrCvjxze.js";
13
13
  const text = React__default.memo(function Text(props) {
@@ -1,14 +1,14 @@
1
- import { I as useContentT, K as Context, q as jsxRuntimeExports, X as MathJax } from "./doenetml-BBdC5nDq.js";
1
+ import { I as useContentT, K as Context, q as jsxRuntimeExports, X as MathJax } from "./doenetml-DniRyXf-.js";
2
2
  import { useState, useRef, useContext, useEffect } from "react";
3
- import { j as jxg } from "./JSXGraphRenderer-CXQTf2Og.js";
4
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
3
+ import { j as jxg } from "./JSXGraphRenderer-ol9yW3zC.js";
4
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
5
5
  import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
6
- import { BoardContext } from "./graph-DZy3b5_V.js";
6
+ import { BoardContext } from "./graph-B6sbYCWq.js";
7
7
  import { g as getPositionFromAnchorByCoordinate, P as POINTER_DRAG_THRESHOLD } from "./graph-W6vrFcBu.js";
8
- import { c as calculateValidationState, u as useSubmitActionWithDelay, w as wantsFullCheckWorkButton, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-DKaHznN9.js";
9
- import { D as DescriptionPopover } from "./Description-B3WntRi0.js";
8
+ import { c as calculateValidationState, u as useSubmitActionWithDelay, w as wantsFullCheckWorkButton, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-CM0JOqF-.js";
9
+ import { D as DescriptionPopover } from "./Description-Bwh1ddsL.js";
10
10
  import { a as addValidationStateToShortDescription } from "./validationState-DI_lxk1a.js";
11
- import { b as useInMathSlot, c as useMathSlotEditing } from "./mathInputSlots-DdtupGxI.js";
11
+ import { b as useInMathSlot, c as useMathSlotEditing } from "./mathInputSlots-DsRG1Uuu.js";
12
12
  import { u as useMathJaxOutOfTabOrder } from "./useMathJaxOutOfTabOrder-C0wsYqBF.js";
13
13
  const EXPANDED_INPUT_MARGIN_X = 4;
14
14
  const BOARD_INPUT_FALLBACK_WIDTH = "100px";
@@ -1,5 +1,5 @@
1
- import { ai as createStoreContext, aj as createDialogComponent, a1 as forwardRef, a2 as createElement, a3 as createHook, a5 as invariant, ak as useWrapElement, q as jsxRuntimeExports, a6 as useStoreState, al as isFalsyBooleanCallback, am as contains, an as sync, ao as chain, ap as useEvent, aq as createStore, ar as defaultValue, as as useStore, at as useStoreProps } from "./doenetml-BBdC5nDq.js";
2
- import { H as HovercardScopedContextProvider, a as HovercardContextProvider, u as useHovercard, b as useHovercardAnchor, c as createHovercardStore, d as useHovercardStoreProps } from "./hovercard-store-DlTzI4OX.js";
1
+ import { ai as createStoreContext, aj as createDialogComponent, a1 as forwardRef, a2 as createElement, a3 as createHook, a5 as invariant, ak as useWrapElement, q as jsxRuntimeExports, a6 as useStoreState, al as isFalsyBooleanCallback, am as contains, an as sync, ao as chain, ap as useEvent, aq as createStore, ar as defaultValue, as as useStore, at as useStoreProps } from "./doenetml-DniRyXf-.js";
2
+ import { H as HovercardScopedContextProvider, a as HovercardContextProvider, u as useHovercard, b as useHovercardAnchor, c as createHovercardStore, d as useHovercardStoreProps } from "./hovercard-store-o287QVQm.js";
3
3
  import { useRef, useEffect } from "react";
4
4
  const ctx = createStoreContext([HovercardContextProvider], [HovercardScopedContextProvider]);
5
5
  const useTooltipProviderContext = ctx.useProviderContext;
@@ -1,4 +1,4 @@
1
- import { r as removeJXGEventHandlers, L as LINE_FAMILY_EVENTS, j as jxg } from "./JSXGraphRenderer-CXQTf2Og.js";
1
+ import { r as removeJXGEventHandlers, L as LINE_FAMILY_EVENTS, j as jxg } from "./JSXGraphRenderer-ol9yW3zC.js";
2
2
  import { e as exceededDragThreshold, p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
3
3
  function attachAnchoredGraphDragHandlers(params) {
4
4
  const {
@@ -0,0 +1,114 @@
1
+ import { x as useAppSelector, y as mainSlice, z as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-DniRyXf-.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-B3v71UGh.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-ol9yW3zC.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-D39DZJ5z.js"), "./renderers/alert.tsx": () => import("./alert-BYylv8TH.js"), "./renderers/angle.tsx": () => import("./angle-C_4jhlEj.js"), "./renderers/answer.tsx": () => import("./answer-C7b27qNN.js"), "./renderers/asList.tsx": () => import("./asList-Dlzt8eM4.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-CG4Got3o.js"), "./renderers/boolean.tsx": () => import("./boolean-D-9CqFgJ.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-Cb4FcdC7.js"), "./renderers/br.tsx": () => import("./br-uUDTVde6.js"), "./renderers/button.tsx": () => import("./button-BXBCkLN6.js"), "./renderers/c.tsx": () => import("./c-BIN1p-q5.js"), "./renderers/cell.tsx": () => import("./cell-C6b4N8WY.js"), "./renderers/chart.tsx": () => import("./chart-Bad1vbl5.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-CiPmndKK.js"), "./renderers/circle.tsx": () => import("./circle-iNnYmJbZ.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-CUcfz9WT.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-C9lN32yo.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-BUk-D9qQ.js"), "./renderers/containerInline.tsx": () => import("./containerInline-DgegussH.js"), "./renderers/curve.tsx": () => import("./curve-DJzGwEZ0.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-PN7ngj7W.js"), "./renderers/em.tsx": () => import("./em-CNG_iK55.js"), "./renderers/embed.tsx": () => import("./embed-CWpeIjuo.js"), "./renderers/feedback.tsx": () => import("./feedback-dBBsU2hM.js"), "./renderers/figure.tsx": () => import("./figure-CK0Xq5kb.js"), "./renderers/footnote.tsx": () => import("./footnote-B4dfh99B.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-CEHZYDhK.js"), "./renderers/graph.tsx": () => import("./graph-B6sbYCWq.js"), "./renderers/hint.tsx": () => import("./hint-B0kL7jAI.js"), "./renderers/hr.tsx": () => import("./hr-C0qaqPqo.js"), "./renderers/image.tsx": () => import("./image--uHTiApM.js"), "./renderers/label.tsx": () => import("./label-BSv-gF4o.js"), "./renderers/legend.tsx": () => import("./legend-C7vDBwmq.js"), "./renderers/line.tsx": () => import("./line-Brcc-CY6.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-C9aAy33M.js"), "./renderers/list.tsx": () => import("./list-GFsHmmCF.js"), "./renderers/lq.tsx": () => import("./lq-CzHReOcD.js"), "./renderers/lsq.tsx": () => import("./lsq--HNpXZBU.js"), "./renderers/math.tsx": () => import("./math-DOUW0K2g.js"), "./renderers/mathInput.tsx": () => import("./mathInput-C8O8rBbr.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-FWIkxBbp.js"), "./renderers/mdash.tsx": () => import("./mdash-ChIJ3dQB.js"), "./renderers/nbsp.tsx": () => import("./nbsp-OyT3nzjV.js"), "./renderers/ndash.tsx": () => import("./ndash-d5pwuB9Y.js"), "./renderers/number.tsx": () => import("./number-D3qOIb51.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-CDTD8KFd.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-D7vtQwXv.js"), "./renderers/p.tsx": () => import("./p-CGnrUUp6.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-CVXxrvva.js"), "./renderers/pegboard.tsx": () => import("./pegboard-Gp1mwVe_.js"), "./renderers/point.tsx": () => import("./point-C0aNSn-i.js"), "./renderers/polygon.tsx": () => import("./polygon-CZlBz0Ie.js"), "./renderers/polyline.tsx": () => import("./polyline-DlooE8zP.js"), "./renderers/pre.tsx": () => import("./pre-DxDtrGME.js"), "./renderers/prefigure.tsx": () => import("./prefigure-Bnap2gVW.js"), "./renderers/pretzel.tsx": () => import("./pretzel-CmVIlfFT.js"), "./renderers/q.tsx": () => import("./q-nZyE7NwW.js"), "./renderers/ray.tsx": () => import("./ray-DtpF790l.js"), "./renderers/ref.tsx": () => import("./ref-D69dwNoF.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-D7l7jYRM.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-CveBlyt7.js"), "./renderers/row.tsx": () => import("./row-Ct3DC53R.js"), "./renderers/rq.tsx": () => import("./rq-_VjcWBZ5.js"), "./renderers/rsq.tsx": () => import("./rsq-Blw7E8_1.js"), "./renderers/section.tsx": () => import("./section-CWznnm7l.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-P-YmSoy0.js"), "./renderers/slider.tsx": () => import("./slider-CMvMSH4g.js"), "./renderers/slopeField.tsx": () => import("./slopeField-CHNhckOI.js"), "./renderers/solution.tsx": () => import("./solution-DTsJTRhp.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-CXGYsx5G.js"), "./renderers/sq.tsx": () => import("./sq-B2lzNWa4.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-Dx6ZhpTn.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-Bz2G-3Kb.js"), "./renderers/table.tsx": () => import("./table-BgjTP2Le.js"), "./renderers/tabular.tsx": () => import("./tabular-Blmdy1BA.js"), "./renderers/tag.tsx": () => import("./tag-CEbnb-fS.js"), "./renderers/text.tsx": () => import("./text-B2udsWdP.js"), "./renderers/textInput.tsx": () => import("./textInput-BZKFL2BV.js"), "./renderers/vector.tsx": () => import("./vector-Dx8Tig9b.js"), "./renderers/vectorField.tsx": () => import("./vectorField-BMk-f7FD.js"), "./renderers/video.tsx": () => import("./video-CASoy4Xd.js") }), `./renderers/${childInstructions.rendererType}.tsx`, 3);
71
+ }
72
+ return rendererLoaders;
73
+ });
74
+ }
75
+ return null;
76
+ }
77
+ let child = React__default.createElement(rendererClass, propsForChild);
78
+ return child;
79
+ }
80
+ let rendererType = props.componentInstructions.rendererType;
81
+ const callAction = (argObj) => {
82
+ if (!argObj.componentIdx) {
83
+ argObj = { ...argObj };
84
+ argObj.componentIdx = componentIdx;
85
+ }
86
+ if (!argObj.rendererType) {
87
+ argObj = { ...argObj };
88
+ argObj.rendererType = rendererType;
89
+ }
90
+ return props.callAction(argObj);
91
+ };
92
+ return {
93
+ componentIdx: effectiveIdx,
94
+ id: prefixForIds + id,
95
+ SVs: stateValues,
96
+ docId: props.docId,
97
+ activityId: props.activityId,
98
+ actions,
99
+ children,
100
+ sourceOfUpdate,
101
+ ignoreUpdate,
102
+ rendererName,
103
+ initializeChildren: () => {
104
+ },
105
+ callAction,
106
+ doenetViewerUrl: props.doenetViewerUrl,
107
+ fetchExternalDoenetML: props.fetchExternalDoenetML,
108
+ requestScrollTo: props.requestScrollTo,
109
+ flags: props.flags
110
+ };
111
+ }
112
+ export {
113
+ useDoenetRenderer as u
114
+ };
@@ -1,6 +1,6 @@
1
1
  import { useMemo, useContext, useRef } from "react";
2
- import { BoardContext, LINE_LAYER_OFFSET } from "./graph-DZy3b5_V.js";
3
- import { N as createFunctionFromDefinition, E as DocContext } from "./doenetml-BBdC5nDq.js";
2
+ import { BoardContext, LINE_LAYER_OFFSET } from "./graph-B6sbYCWq.js";
3
+ import { N as createFunctionFromDefinition, E as DocContext } from "./doenetml-DniRyXf-.js";
4
4
  import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
5
5
  import { u as useJSXGraphCleanup } from "./useJSXGraphCleanup-BNk4sn6x.js";
6
6
  function fieldFunctionFromDefinition(fDefinition) {
@@ -1,5 +1,5 @@
1
- import { q as jsxRuntimeExports } from "./doenetml-BBdC5nDq.js";
2
- import { F as FontAwesomeIcon } from "./index.es-8gpABX0x.js";
1
+ import { q as jsxRuntimeExports } from "./doenetml-DniRyXf-.js";
2
+ import { F as FontAwesomeIcon } from "./index.es-umP8GwPR.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 checkWorkCredit(SVs) {
@@ -1,11 +1,11 @@
1
- import { E as DocContext, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-BBdC5nDq.js";
1
+ import { E as DocContext, q as jsxRuntimeExports, F as textRendererStyle } from "./doenetml-DniRyXf-.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-CXQTf2Og.js";
4
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
5
- import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-DZy3b5_V.js";
6
- import { D as DynamicMath } from "./DynamicMath-C5szNUNB.js";
7
- import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-B4Dq55i-.js";
8
- import { ChoiceInputInlineContext } from "./choiceInput-D8XoroYo.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-ol9yW3zC.js";
4
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
5
+ import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-B6sbYCWq.js";
6
+ import { D as DynamicMath } from "./DynamicMath-JfkONiS3.js";
7
+ import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-B5KcJnym.js";
8
+ import { ChoiceInputInlineContext } from "./choiceInput-CiPmndKK.js";
9
9
  import { a as buildLineLikeAttributes, c as buildDragHandleAttributes } from "./buildGraphicalAttributes-B_soifR-.js";
10
10
  import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
11
11
  import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
@@ -1,6 +1,6 @@
1
1
  import React__default from "react";
2
- import { u as useDoenetRenderer } from "./useDoenetRenderer-C1ESpwv3.js";
3
- import { u as useFieldFunction, a as useFieldCurve, c as buildVectorFieldData } from "./useFieldCurve-ImmDLKXk.js";
2
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-BhmRwE0u.js";
3
+ import { u as useFieldFunction, a as useFieldCurve, c as buildVectorFieldData } from "./useFieldCurve-9Kzohky2.js";
4
4
  const vectorField = React__default.memo(function VectorField(props) {
5
5
  let { SVs } = useDoenetRenderer(props);
6
6
  VectorField.ignoreActionsWithoutCore = () => true;