@doenet/doenetml 0.7.20-dev.299 → 0.7.20-dev.300

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-nM8rRv2y.js → AnswerResponseButton-D2fKlSbG.js} +2 -2
  2. package/{Description-D04TztX3.js → Description-1zebtoaA.js} +1 -1
  3. package/{GraphFrame-pbSi9cuP.js → GraphFrame-N4RdDbnr.js} +2 -2
  4. package/{JSXGraphRenderer-BrXKVqTB.js → JSXGraphRenderer-C_ze-BW3.js} +1 -1
  5. package/{NonInlineMediaWrapper-BQn22h_P.js → NonInlineMediaWrapper-Cxw2tH9-.js} +1 -1
  6. package/{_error-CEH4iery.js → _error-BE5TmF_0.js} +2 -2
  7. package/{alert-B9EilGk4.js → alert-scMCzzgD.js} +3 -3
  8. package/{angle-CIrp86vg.js → angle-D8WjSZT3.js} +6 -6
  9. package/{answer-BVk_PMLf.js → answer-BI32VWKw.js} +5 -5
  10. package/{asList-DFwXFASu.js → asList-DTStzdxw.js} +2 -2
  11. package/{blockQuote-DQk_0NqU.js → blockQuote-DU5_L4C0.js} +3 -3
  12. package/{boolean-D6OSxutN.js → boolean-ue-C2YSH.js} +2 -2
  13. package/{booleanInput-DDz2tAAl.js → booleanInput-BP3qKvjc.js} +6 -6
  14. package/{br-5JeOtKG4.js → br-DW02MWir.js} +2 -2
  15. package/{button-D3zQv7Wx.js → button-Cj8H46wR.js} +4 -4
  16. package/{c-ZipILuc4.js → c-Fz1rHF_1.js} +3 -3
  17. package/{cell-ErVKh4CR.js → cell-BovE1ry1.js} +3 -3
  18. package/{choiceInput-B-EvpUoi.js → choiceInput-CrgIEajm.js} +4 -4
  19. package/{circle-DkR42IG2.js → circle-B1lpLKF7.js} +5 -5
  20. package/{cobwebPolyline-DYOcqVKM.js → cobwebPolyline-Bax6_R9d.js} +4 -4
  21. package/{codeEditor-BJwyK-20.js → codeEditor-CnkuDVmO.js} +2 -2
  22. package/{composites-BUjUe27w.js → composites-BNs629W0.js} +1 -1
  23. package/{containerBlock-114P4ojN.js → containerBlock-BQQK9ke_.js} +4 -4
  24. package/{containerInline-Ceqvub9e.js → containerInline-BCm9gAfi.js} +4 -4
  25. package/{curve-BzIBjQI7.js → curve-DIfo6dwP.js} +4 -4
  26. package/{doenetml-BUGtOEgk.js → doenetml-DwOsdb9u.js} +5 -5
  27. package/doenetml-inline-worker.js +2 -2
  28. package/{ellipsis-Br_oQm-F.js → ellipsis-CnR3154T.js} +2 -2
  29. package/{em-CO7AT1eT.js → em-9c2cQTHf.js} +3 -3
  30. package/{embed-DeYnyI-d.js → embed-Cj-b-NVT.js} +2 -2
  31. package/{feedback-Dz-8pq1y.js → feedback-CZZSZJc3.js} +4 -4
  32. package/{figure-bAWhX6G-.js → figure-CtuvAsyx.js} +3 -3
  33. package/{fillPatterns-CtvZKAjB.js → fillPatterns-D2andFDg.js} +1 -1
  34. package/{footnote-CFJV4i--.js → footnote-CxAO20ZE.js} +3 -3
  35. package/{fractionInput-Bz6p38zE.js → fractionInput-thIWCYes.js} +4 -4
  36. package/{graph-Da8qFDvw.js → graph-Px18HF0X.js} +6 -6
  37. package/{hint-CTEoYwwx.js → hint-d_byAGL0.js} +4 -4
  38. package/{hr-y5_PvooJ.js → hr-NoF4lclg.js} +2 -2
  39. package/{image-CNEhxcdL.js → image-DATuAwji.js} +7 -7
  40. package/{index-PF-ZA2p3.js → index-CjP11lXj.js} +1 -1
  41. package/{index.es-B-BUq3tz.js → index.es-DNkXz0QS.js} +1 -1
  42. package/index.js +1 -1
  43. package/{label-CQ64EFDP.js → label-cIQESG5b.js} +6 -6
  44. package/{labelWithLatex-DnvhQJo0.js → labelWithLatex-COqMJ0jf.js} +1 -1
  45. package/{legend-ZMLxM3S2.js → legend-D_zfJX3L.js} +4 -4
  46. package/{line-DphBkRmx.js → line-D8dz2yzN.js} +5 -5
  47. package/{lineSegment-BXpe0IAe.js → lineSegment-qhHN1MIi.js} +4 -4
  48. package/{list-D2QEb62i.js → list-B_0IFlTC.js} +4 -4
  49. package/{lq-DbFn1nk2.js → lq-BWHuBoFk.js} +2 -2
  50. package/{lsq-B-8u-0IW.js → lsq-2WYhqiF6.js} +2 -2
  51. package/{markupRenderer-OOAvz-Fe.js → markupRenderer-D7Th1qsa.js} +1 -1
  52. package/{math-ITpMDufn.js → math-C4u6zaVN.js} +6 -6
  53. package/{mathInput-576jdIUi.js → mathInput-CgAiFv-Z.js} +5 -5
  54. package/{matrixInput-DzXgXvK2.js → matrixInput-B4AfrfX7.js} +4 -4
  55. package/{mdash-DLDjiNgm.js → mdash-Jmrr6sNz.js} +2 -2
  56. package/{nbsp-BEw1tVT0.js → nbsp-DTRQfIuP.js} +2 -2
  57. package/{ndash-C2ux8bpC.js → ndash-DUnJMhQ1.js} +2 -2
  58. package/{number-pa8NRoOM.js → number-DOjQJE4x.js} +6 -6
  59. package/{orbitalDiagram-BG5JEGCj.js → orbitalDiagram-CQeR2Mba.js} +2 -2
  60. package/{orbitalDiagramInput-Bj2liDzF.js → orbitalDiagramInput-BtrRYIb6.js} +2 -2
  61. package/{p-DI25uhS9.js → p-DlSFUXyZ.js} +4 -4
  62. package/package.json +1 -1
  63. package/{paginatorControls-LDqiyhEU.js → paginatorControls-PUXSsKlk.js} +2 -2
  64. package/{pegboard-BgzDHhtN.js → pegboard-D_jhEM-N.js} +4 -4
  65. package/{point-Ceyttn7j.js → point-C1JU6u7z.js} +5 -5
  66. package/{polygon-DTLEAieW.js → polygon-XN7WNNMP.js} +5 -5
  67. package/{polyline-79PkSpnU.js → polyline-OxdvRpmy.js} +4 -4
  68. package/{pre-DuXDvQgs.js → pre-DZ9DYE4E.js} +3 -3
  69. package/{prefigure-0h-RLFAX.js → prefigure-C4AW-cO0.js} +1 -1
  70. package/{pretzel-CALWkNBP.js → pretzel-CmBie1qg.js} +4 -4
  71. package/{q-D2NS4gLl.js → q-ahbBkxTo.js} +3 -3
  72. package/{ray-BRfdURll.js → ray-BTJ8qClY.js} +4 -4
  73. package/{ref-DjSd9nnb.js → ref-yONah3eu.js} +2 -2
  74. package/{regionBetweenCurveXAxis-BL9whwOo.js → regionBetweenCurveXAxis-DDG988eG.js} +5 -5
  75. package/{regionBetweenCurves-CDLKTIQs.js → regionBetweenCurves-D6i_nk7G.js} +4 -4
  76. package/{row-mFpijAS4.js → row-CSlo5Ult.js} +2 -2
  77. package/{rq-CH19y3sJ.js → rq-yGBF1Lzm.js} +2 -2
  78. package/{rsq-IjdvdCe0.js → rsq-nCNnYwgs.js} +2 -2
  79. package/{section-B8Q61ezw.js → section-Dmx5-RDa.js} +5 -5
  80. package/{sha256-Cki_HER3-B2Nt_oHb.js → sha256-Cki_HER3-CpFXjZEJ.js} +1 -1
  81. package/{sideBySide-CDQnDXG2.js → sideBySide-BRvq8obz.js} +2 -2
  82. package/{slider-B_JXYZ_Z.js → slider-Dw2kaqd4.js} +3 -3
  83. package/{solution-DIPNBAWt.js → solution-eA8XqZXL.js} +4 -4
  84. package/{spreadsheet-CQtEUhwy.js → spreadsheet-Bl53SPul.js} +2 -2
  85. package/{sq-DlZIZPJQ.js → sq-DoHtOc3M.js} +3 -3
  86. package/{subsetOfRealsInput-B0EIC7yS.js → subsetOfRealsInput-BmFccyKe.js} +2 -2
  87. package/{summaryStatistics-Bfn9ecfx.js → summaryStatistics-EA5WqKF5.js} +2 -2
  88. package/{table-BxkOhh4D.js → table-CbLZ4S7y.js} +2 -2
  89. package/{tabular-CXNIFT32.js → tabular-CFSaXH1o.js} +2 -2
  90. package/{tag-Dowi78y6.js → tag-DQwAdlEE.js} +2 -2
  91. package/{text-P1QqHwpT.js → text-DxI_HN6e.js} +6 -6
  92. package/{textInput-D_KR445M.js → textInput-DW5RqePu.js} +6 -6
  93. package/{tooltip-provider-CM332qFW.js → tooltip-provider-ChRHoXHl.js} +1 -1
  94. package/{useAnchoredGraphDragHandler-sqtrGVDe.js → useAnchoredGraphDragHandler-C3oL4ASY.js} +1 -1
  95. package/useDoenetRenderer-DtgJj0ZG.js +114 -0
  96. package/{useSubmitActionWithDelay-BN0fm6bM.js → useSubmitActionWithDelay-1eucj2M7.js} +2 -2
  97. package/{vector-TiA59-zS.js → vector-DxGqp0Wj.js} +5 -5
  98. package/{video-DqRIyOhq.js → video-BcNixpxt.js} +4 -4
  99. package/useDoenetRenderer-OppRN8_U.js +0 -114
@@ -1,8 +1,8 @@
1
- import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-BUGtOEgk.js";
1
+ import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default, { useContext, useRef } from "react";
3
- import { j as jxg, e as syncLineFamilyVisibility, s as syncLayer, b as syncLineStrokeStyle, a as syncWithLabelToggle, c as syncLabelStrokeColor, f as applyLineFamilyLabelPlacement, g as buildLineFamilyLabelAttributes, h as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-BrXKVqTB.js";
4
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
5
- import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Da8qFDvw.js";
3
+ import { j as jxg, e as syncLineFamilyVisibility, s as syncLayer, b as syncLineStrokeStyle, a as syncWithLabelToggle, c as syncLabelStrokeColor, f as applyLineFamilyLabelPlacement, g as buildLineFamilyLabelAttributes, h as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-C_ze-BW3.js";
4
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.js";
5
+ import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Px18HF0X.js";
6
6
  import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-WXpVD4ud.js";
7
7
  import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DeK-TkFS.js";
8
8
  import { p as pointerEventToUserCoords } from "./dragThreshold-1Y9NDMT1.js";
@@ -1,6 +1,6 @@
1
- import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-BUGtOEgk.js";
1
+ import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default, { useContext, useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.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, o as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-BUGtOEgk.js";
1
+ import { k as DocContext, o as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default, { useContext, useRef, useEffect } from "react";
3
- import { j as jxg } from "./JSXGraphRenderer-BrXKVqTB.js";
4
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
5
- import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Da8qFDvw.js";
6
- import { g as getPatternFillAttributes } from "./fillPatterns-CtvZKAjB.js";
3
+ import { j as jxg } from "./JSXGraphRenderer-C_ze-BW3.js";
4
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.js";
5
+ import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Px18HF0X.js";
6
+ import { g as getPatternFillAttributes } from "./fillPatterns-D2andFDg.js";
7
7
  const regionBetweenCurveXAxis = React__default.memo(function RegionBetweenCurveXAxis(props) {
8
8
  let { id, SVs } = useDoenetRenderer(props);
9
9
  RegionBetweenCurveXAxis.ignoreActionsWithoutCore = () => true;
@@ -1,9 +1,9 @@
1
- import { k as DocContext, o as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-BUGtOEgk.js";
1
+ import { k as DocContext, o as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default, { useContext, useRef, useEffect } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
4
- import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Da8qFDvw.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.js";
4
+ import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Px18HF0X.js";
5
5
  import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
6
- import { g as getPatternFillAttributes } from "./fillPatterns-CtvZKAjB.js";
6
+ import { g as getPatternFillAttributes } from "./fillPatterns-D2andFDg.js";
7
7
  const regionBetweenCurves = React__default.memo(function RegionBetweenCurves(props) {
8
8
  let { id, SVs } = useDoenetRenderer(props);
9
9
  RegionBetweenCurves.ignoreActionsWithoutCore = () => true;
@@ -1,6 +1,6 @@
1
- import { j as jsxRuntimeExports } from "./doenetml-BUGtOEgk.js";
1
+ import { j as jsxRuntimeExports } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.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-BUGtOEgk.js";
1
+ import { j as jsxRuntimeExports } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.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-BUGtOEgk.js";
1
+ import { j as jsxRuntimeExports } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.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, n as cesc, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-BUGtOEgk.js";
1
+ import { k as DocContext, n as cesc, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default, { useContext, useRef, useEffect } from "react";
3
- import { F as FontAwesomeIcon } from "./index.es-B-BUq3tz.js";
3
+ import { F as FontAwesomeIcon } from "./index.es-DNkXz0QS.js";
4
4
  import { f as faCaretDown, a as faCaretRight } from "./index-BDlitCgu.js";
5
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
6
- import { a as addCommasForCompositeRanges } from "./composites-BUjUe27w.js";
7
- import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-BN0fm6bM.js";
5
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.js";
6
+ import { a as addCommasForCompositeRanges } from "./composites-BNs629W0.js";
7
+ import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-1eucj2M7.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-BUGtOEgk.js";
1
+ import { i as getDefaultExportFromCjs } from "./doenetml-DwOsdb9u.js";
2
2
  var sha256$3 = { exports: {} };
3
3
  var convertHex$1 = { exports: {} };
4
4
  var convertHex = convertHex$1.exports;
@@ -1,6 +1,6 @@
1
- import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-BUGtOEgk.js";
1
+ import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default, { useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.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, z as ActionButton, l as Context } from "./doenetml-BUGtOEgk.js";
1
+ import { j as jsxRuntimeExports, A as ActionButtonGroup, z as ActionButton, l as Context } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default, { useState, useRef, useEffect } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.js";
4
4
  import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
5
- import { r as renderLabelWithLatex } from "./labelWithLatex-DnvhQJo0.js";
5
+ import { r as renderLabelWithLatex } from "./labelWithLatex-COqMJ0jf.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-BUGtOEgk.js";
1
+ import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default, { useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
4
- import { F as FontAwesomeIcon } from "./index.es-B-BUq3tz.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.js";
4
+ import { F as FontAwesomeIcon } from "./index.es-DNkXz0QS.js";
5
5
  import { c as faPuzzlePiece } from "./index-BDlitCgu.js";
6
- import { a as addCommasForCompositeRanges } from "./composites-BUjUe27w.js";
6
+ import { a as addCommasForCompositeRanges } from "./composites-BNs629W0.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-BUGtOEgk.js";
1
+ import { k as DocContext, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default, { forwardRef, useId, useRef, useCallback, useMemo, createContext as createContext$1, useEffect, Children, useImperativeHandle, Fragment, useContext, useState } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.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-BUGtOEgk.js";
1
+ import { j as jsxRuntimeExports } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
4
- import { r as renderMarkupBody } from "./markupRenderer-OOAvz-Fe.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.js";
4
+ import { r as renderMarkupBody } from "./markupRenderer-D7Th1qsa.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, F as ToggleButtonGroup, T as ToggleButton, A as ActionButtonGroup, z as ActionButton } from "./doenetml-BUGtOEgk.js";
1
+ import { u as useRecordVisibilityChanges, j as jsxRuntimeExports, F as ToggleButtonGroup, T as ToggleButton, A as ActionButtonGroup, z as ActionButton } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default, { useState, useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.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-BUGtOEgk.js";
1
+ import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default, { useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.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-BUGtOEgk.js";
1
+ import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default, { useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.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-BUGtOEgk.js";
1
+ import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default, { useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.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-BUGtOEgk.js";
1
+ import { j as jsxRuntimeExports } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.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, l as Context, j as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-BUGtOEgk.js";
1
+ import { k as DocContext, l as Context, j as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default, { useRef, useContext } from "react";
3
- import { j as jxg } from "./JSXGraphRenderer-BrXKVqTB.js";
4
- import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-Da8qFDvw.js";
5
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
3
+ import { j as jxg } from "./JSXGraphRenderer-C_ze-BW3.js";
4
+ import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-Px18HF0X.js";
5
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.js";
6
6
  import { g as getPositionFromAnchorByCoordinate } from "./graph-FesVg1vs.js";
7
- import { ChoiceInputInlineContext } from "./choiceInput-B-EvpUoi.js";
7
+ import { ChoiceInputInlineContext } from "./choiceInput-CrgIEajm.js";
8
8
  import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DeK-TkFS.js";
9
9
  import { u as useDraggableRefs, a as useJSXGraphCleanup } from "./useJSXGraphCleanup-CX91oVW8.js";
10
- import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-sqtrGVDe.js";
10
+ import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-C3oL4ASY.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 { l as Context, j as jsxRuntimeExports, M as MathJax } from "./doenetml-BUGtOEgk.js";
1
+ import { l as Context, j as jsxRuntimeExports, M as MathJax } from "./doenetml-DwOsdb9u.js";
2
2
  import { useState, useRef, useContext, useEffect } from "react";
3
- import { j as jxg } from "./JSXGraphRenderer-BrXKVqTB.js";
4
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
3
+ import { j as jxg } from "./JSXGraphRenderer-C_ze-BW3.js";
4
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.js";
5
5
  import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
6
- import { BoardContext } from "./graph-Da8qFDvw.js";
6
+ import { BoardContext } from "./graph-Px18HF0X.js";
7
7
  import { g as getPositionFromAnchorByCoordinate, P as POINTER_DRAG_THRESHOLD } from "./graph-FesVg1vs.js";
8
- import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-BN0fm6bM.js";
9
- import { D as DescriptionPopover } from "./Description-D04TztX3.js";
8
+ import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-1eucj2M7.js";
9
+ import { D as DescriptionPopover } from "./Description-1zebtoaA.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 { a2 as createStoreContext, a3 as HovercardScopedContextProvider, a4 as HovercardContextProvider, a5 as createDialogComponent, I as forwardRef2, J as createHook, K as createElement, N as invariant, a6 as useWrapElement, j as jsxRuntimeExports, a7 as useHovercard, a8 as isFalsyBooleanCallback, a9 as contains, aa as sync, ab as chain, ac as createStore, ad as useEvent, ae as useHovercardAnchor, af as createHovercardStore, ag as defaultValue, ah as useStore, ai as useStoreProps, aj as useHovercardStoreProps } from "./doenetml-BUGtOEgk.js";
1
+ import { a2 as createStoreContext, a3 as HovercardScopedContextProvider, a4 as HovercardContextProvider, a5 as createDialogComponent, I as forwardRef2, J as createHook, K as createElement, N as invariant, a6 as useWrapElement, j as jsxRuntimeExports, a7 as useHovercard, a8 as isFalsyBooleanCallback, a9 as contains, aa as sync, ab as chain, ac as createStore, ad as useEvent, ae as useHovercardAnchor, af as createHovercardStore, ag as defaultValue, ah as useStore, ai as useStoreProps, aj as useHovercardStoreProps } from "./doenetml-DwOsdb9u.js";
2
2
  import { useRef, useEffect } from "react";
3
3
  var ctx = createStoreContext(
4
4
  [HovercardContextProvider],
@@ -1,4 +1,4 @@
1
- import { r as removeJXGEventHandlers, L as LINE_FAMILY_EVENTS, j as jxg } from "./JSXGraphRenderer-BrXKVqTB.js";
1
+ import { r as removeJXGEventHandlers, L as LINE_FAMILY_EVENTS, j as jxg } from "./JSXGraphRenderer-C_ze-BW3.js";
2
2
  import { e as exceededDragThreshold, p as pointerEventToUserCoords } from "./dragThreshold-1Y9NDMT1.js";
3
3
  function attachAnchoredGraphDragHandlers(params) {
4
4
  const {
@@ -0,0 +1,114 @@
1
+ import { q as useAppSelector, v as mainSlice, w as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-DwOsdb9u.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-N4RdDbnr.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-C_ze-BW3.js").then((n) => n.i), "./renderers/_error.tsx": () => import("./_error-BE5TmF_0.js"), "./renderers/alert.tsx": () => import("./alert-scMCzzgD.js"), "./renderers/angle.tsx": () => import("./angle-D8WjSZT3.js"), "./renderers/answer.tsx": () => import("./answer-BI32VWKw.js"), "./renderers/asList.tsx": () => import("./asList-DTStzdxw.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-DU5_L4C0.js"), "./renderers/boolean.tsx": () => import("./boolean-ue-C2YSH.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-BP3qKvjc.js"), "./renderers/br.tsx": () => import("./br-DW02MWir.js"), "./renderers/button.tsx": () => import("./button-Cj8H46wR.js"), "./renderers/c.tsx": () => import("./c-Fz1rHF_1.js"), "./renderers/cell.tsx": () => import("./cell-BovE1ry1.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-CrgIEajm.js"), "./renderers/circle.tsx": () => import("./circle-B1lpLKF7.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-Bax6_R9d.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-CnkuDVmO.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-BQQK9ke_.js"), "./renderers/containerInline.tsx": () => import("./containerInline-BCm9gAfi.js"), "./renderers/curve.tsx": () => import("./curve-DIfo6dwP.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-CnR3154T.js"), "./renderers/em.tsx": () => import("./em-9c2cQTHf.js"), "./renderers/embed.tsx": () => import("./embed-Cj-b-NVT.js"), "./renderers/feedback.tsx": () => import("./feedback-CZZSZJc3.js"), "./renderers/figure.tsx": () => import("./figure-CtuvAsyx.js"), "./renderers/footnote.tsx": () => import("./footnote-CxAO20ZE.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-thIWCYes.js"), "./renderers/graph.tsx": () => import("./graph-Px18HF0X.js"), "./renderers/hint.tsx": () => import("./hint-d_byAGL0.js"), "./renderers/hr.tsx": () => import("./hr-NoF4lclg.js"), "./renderers/image.tsx": () => import("./image-DATuAwji.js"), "./renderers/label.tsx": () => import("./label-cIQESG5b.js"), "./renderers/legend.tsx": () => import("./legend-D_zfJX3L.js"), "./renderers/line.tsx": () => import("./line-D8dz2yzN.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-qhHN1MIi.js"), "./renderers/list.tsx": () => import("./list-B_0IFlTC.js"), "./renderers/lq.tsx": () => import("./lq-BWHuBoFk.js"), "./renderers/lsq.tsx": () => import("./lsq-2WYhqiF6.js"), "./renderers/math.tsx": () => import("./math-C4u6zaVN.js"), "./renderers/mathInput.tsx": () => import("./mathInput-CgAiFv-Z.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-B4AfrfX7.js"), "./renderers/mdash.tsx": () => import("./mdash-Jmrr6sNz.js"), "./renderers/nbsp.tsx": () => import("./nbsp-DTRQfIuP.js"), "./renderers/ndash.tsx": () => import("./ndash-DUnJMhQ1.js"), "./renderers/number.tsx": () => import("./number-DOjQJE4x.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-CQeR2Mba.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-BtrRYIb6.js"), "./renderers/p.tsx": () => import("./p-DlSFUXyZ.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-PUXSsKlk.js"), "./renderers/pegboard.tsx": () => import("./pegboard-D_jhEM-N.js"), "./renderers/point.tsx": () => import("./point-C1JU6u7z.js"), "./renderers/polygon.tsx": () => import("./polygon-XN7WNNMP.js"), "./renderers/polyline.tsx": () => import("./polyline-OxdvRpmy.js"), "./renderers/pre.tsx": () => import("./pre-DZ9DYE4E.js"), "./renderers/prefigure.tsx": () => import("./prefigure-C4AW-cO0.js"), "./renderers/pretzel.tsx": () => import("./pretzel-CmBie1qg.js"), "./renderers/q.tsx": () => import("./q-ahbBkxTo.js"), "./renderers/ray.tsx": () => import("./ray-BTJ8qClY.js"), "./renderers/ref.tsx": () => import("./ref-yONah3eu.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-DDG988eG.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-D6i_nk7G.js"), "./renderers/row.tsx": () => import("./row-CSlo5Ult.js"), "./renderers/rq.tsx": () => import("./rq-yGBF1Lzm.js"), "./renderers/rsq.tsx": () => import("./rsq-nCNnYwgs.js"), "./renderers/section.tsx": () => import("./section-Dmx5-RDa.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-BRvq8obz.js"), "./renderers/slider.tsx": () => import("./slider-Dw2kaqd4.js"), "./renderers/solution.tsx": () => import("./solution-eA8XqZXL.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-Bl53SPul.js"), "./renderers/sq.tsx": () => import("./sq-DoHtOc3M.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-BmFccyKe.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-EA5WqKF5.js"), "./renderers/table.tsx": () => import("./table-CbLZ4S7y.js"), "./renderers/tabular.tsx": () => import("./tabular-CFSaXH1o.js"), "./renderers/tag.tsx": () => import("./tag-DQwAdlEE.js"), "./renderers/text.tsx": () => import("./text-DxI_HN6e.js"), "./renderers/textInput.tsx": () => import("./textInput-DW5RqePu.js"), "./renderers/vector.tsx": () => import("./vector-DxGqp0Wj.js"), "./renderers/video.tsx": () => import("./video-BcNixpxt.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-BUGtOEgk.js";
2
- import { F as FontAwesomeIcon } from "./index.es-B-BUq3tz.js";
1
+ import { j as jsxRuntimeExports } from "./doenetml-DwOsdb9u.js";
2
+ import { F as FontAwesomeIcon } from "./index.es-DNkXz0QS.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, M as MathJax } from "./doenetml-BUGtOEgk.js";
1
+ import { k as DocContext, j as jsxRuntimeExports, t as textRendererStyle, M as MathJax } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default, { useContext, useRef } from "react";
3
- import { j as jxg, s as syncLayer, d as syncVisPropValues, b as syncLineStrokeStyle, a as syncWithLabelToggle, c as syncLabelStrokeColor, f as applyLineFamilyLabelPlacement, g as buildLineFamilyLabelAttributes, h as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-BrXKVqTB.js";
4
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
5
- import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-Da8qFDvw.js";
6
- import { ChoiceInputInlineContext } from "./choiceInput-B-EvpUoi.js";
3
+ import { j as jxg, s as syncLayer, d as syncVisPropValues, b as syncLineStrokeStyle, a as syncWithLabelToggle, c as syncLabelStrokeColor, f as applyLineFamilyLabelPlacement, g as buildLineFamilyLabelAttributes, h as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-C_ze-BW3.js";
4
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.js";
5
+ import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-Px18HF0X.js";
6
+ import { ChoiceInputInlineContext } from "./choiceInput-CrgIEajm.js";
7
7
  import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-WXpVD4ud.js";
8
8
  import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DeK-TkFS.js";
9
9
  import { p as pointerEventToUserCoords } from "./dragThreshold-1Y9NDMT1.js";
@@ -1,10 +1,10 @@
1
- import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-BUGtOEgk.js";
1
+ import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-DwOsdb9u.js";
2
2
  import React__default, { useState, useEffect, useRef } from "react";
3
- import { u as useDoenetRenderer } from "./useDoenetRenderer-OppRN8_U.js";
3
+ import { u as useDoenetRenderer } from "./useDoenetRenderer-DtgJj0ZG.js";
4
4
  import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
5
- import { D as DescriptionPopover, a as DescriptionAsDetails } from "./Description-D04TztX3.js";
5
+ import { D as DescriptionPopover, a as DescriptionAsDetails } from "./Description-1zebtoaA.js";
6
6
  import { g as getNonInlineMediaLayoutStyles } from "./nonInlineMediaLayout-CkXHaqzo.js";
7
- import { N as NonInlineMediaWrapper } from "./NonInlineMediaWrapper-BQn22h_P.js";
7
+ import { N as NonInlineMediaWrapper } from "./NonInlineMediaWrapper-Cxw2tH9-.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 { q as useAppSelector, v as mainSlice, w as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-BUGtOEgk.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-pbSi9cuP.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-BrXKVqTB.js").then((n) => n.i), "./renderers/_error.tsx": () => import("./_error-CEH4iery.js"), "./renderers/alert.tsx": () => import("./alert-B9EilGk4.js"), "./renderers/angle.tsx": () => import("./angle-CIrp86vg.js"), "./renderers/answer.tsx": () => import("./answer-BVk_PMLf.js"), "./renderers/asList.tsx": () => import("./asList-DFwXFASu.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-DQk_0NqU.js"), "./renderers/boolean.tsx": () => import("./boolean-D6OSxutN.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-DDz2tAAl.js"), "./renderers/br.tsx": () => import("./br-5JeOtKG4.js"), "./renderers/button.tsx": () => import("./button-D3zQv7Wx.js"), "./renderers/c.tsx": () => import("./c-ZipILuc4.js"), "./renderers/cell.tsx": () => import("./cell-ErVKh4CR.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-B-EvpUoi.js"), "./renderers/circle.tsx": () => import("./circle-DkR42IG2.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-DYOcqVKM.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-BJwyK-20.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-114P4ojN.js"), "./renderers/containerInline.tsx": () => import("./containerInline-Ceqvub9e.js"), "./renderers/curve.tsx": () => import("./curve-BzIBjQI7.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-Br_oQm-F.js"), "./renderers/em.tsx": () => import("./em-CO7AT1eT.js"), "./renderers/embed.tsx": () => import("./embed-DeYnyI-d.js"), "./renderers/feedback.tsx": () => import("./feedback-Dz-8pq1y.js"), "./renderers/figure.tsx": () => import("./figure-bAWhX6G-.js"), "./renderers/footnote.tsx": () => import("./footnote-CFJV4i--.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-Bz6p38zE.js"), "./renderers/graph.tsx": () => import("./graph-Da8qFDvw.js"), "./renderers/hint.tsx": () => import("./hint-CTEoYwwx.js"), "./renderers/hr.tsx": () => import("./hr-y5_PvooJ.js"), "./renderers/image.tsx": () => import("./image-CNEhxcdL.js"), "./renderers/label.tsx": () => import("./label-CQ64EFDP.js"), "./renderers/legend.tsx": () => import("./legend-ZMLxM3S2.js"), "./renderers/line.tsx": () => import("./line-DphBkRmx.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-BXpe0IAe.js"), "./renderers/list.tsx": () => import("./list-D2QEb62i.js"), "./renderers/lq.tsx": () => import("./lq-DbFn1nk2.js"), "./renderers/lsq.tsx": () => import("./lsq-B-8u-0IW.js"), "./renderers/math.tsx": () => import("./math-ITpMDufn.js"), "./renderers/mathInput.tsx": () => import("./mathInput-576jdIUi.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-DzXgXvK2.js"), "./renderers/mdash.tsx": () => import("./mdash-DLDjiNgm.js"), "./renderers/nbsp.tsx": () => import("./nbsp-BEw1tVT0.js"), "./renderers/ndash.tsx": () => import("./ndash-C2ux8bpC.js"), "./renderers/number.tsx": () => import("./number-pa8NRoOM.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-BG5JEGCj.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-Bj2liDzF.js"), "./renderers/p.tsx": () => import("./p-DI25uhS9.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-LDqiyhEU.js"), "./renderers/pegboard.tsx": () => import("./pegboard-BgzDHhtN.js"), "./renderers/point.tsx": () => import("./point-Ceyttn7j.js"), "./renderers/polygon.tsx": () => import("./polygon-DTLEAieW.js"), "./renderers/polyline.tsx": () => import("./polyline-79PkSpnU.js"), "./renderers/pre.tsx": () => import("./pre-DuXDvQgs.js"), "./renderers/prefigure.tsx": () => import("./prefigure-0h-RLFAX.js"), "./renderers/pretzel.tsx": () => import("./pretzel-CALWkNBP.js"), "./renderers/q.tsx": () => import("./q-D2NS4gLl.js"), "./renderers/ray.tsx": () => import("./ray-BRfdURll.js"), "./renderers/ref.tsx": () => import("./ref-DjSd9nnb.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-BL9whwOo.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-CDLKTIQs.js"), "./renderers/row.tsx": () => import("./row-mFpijAS4.js"), "./renderers/rq.tsx": () => import("./rq-CH19y3sJ.js"), "./renderers/rsq.tsx": () => import("./rsq-IjdvdCe0.js"), "./renderers/section.tsx": () => import("./section-B8Q61ezw.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-CDQnDXG2.js"), "./renderers/slider.tsx": () => import("./slider-B_JXYZ_Z.js"), "./renderers/solution.tsx": () => import("./solution-DIPNBAWt.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-CQtEUhwy.js"), "./renderers/sq.tsx": () => import("./sq-DlZIZPJQ.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-B0EIC7yS.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-Bfn9ecfx.js"), "./renderers/table.tsx": () => import("./table-BxkOhh4D.js"), "./renderers/tabular.tsx": () => import("./tabular-CXNIFT32.js"), "./renderers/tag.tsx": () => import("./tag-Dowi78y6.js"), "./renderers/text.tsx": () => import("./text-P1QqHwpT.js"), "./renderers/textInput.tsx": () => import("./textInput-D_KR445M.js"), "./renderers/vector.tsx": () => import("./vector-TiA59-zS.js"), "./renderers/video.tsx": () => import("./video-DqRIyOhq.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
- };