@doenet/doenetml 0.7.20-dev.311 → 0.7.20-dev.312
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{AnswerResponseButton-C_iu1uJL.js → AnswerResponseButton-DxoUVG9J.js} +2 -2
- package/{Description-ylGX21gM.js → Description-BQlDpTEW.js} +1 -1
- package/{GraphFrame-CoDwv9vP.js → GraphFrame-CuvHdDgq.js} +2 -2
- package/{JSXGraphRenderer-Cw-4LH8Q.js → JSXGraphRenderer-BOzKpTdd.js} +1 -1
- package/{NonInlineMediaWrapper-Cd7Nj2EG.js → NonInlineMediaWrapper-BO5mYi-I.js} +1 -1
- package/{_error-B4ihAfPc.js → _error--gnqS_Cc.js} +2 -2
- package/{alert-BoJMdjim.js → alert-mEWnrqFn.js} +3 -3
- package/{angle-DF2kJyRm.js → angle-CGc8RvVx.js} +6 -6
- package/{answer-IkCzfOW3.js → answer-BSDWUlLH.js} +5 -5
- package/{asList-B_P-2g2R.js → asList-DJukSzH2.js} +2 -2
- package/{blockQuote-BFdna0Kp.js → blockQuote-B5HDe9_d.js} +3 -3
- package/{boolean-BtHrMvHr.js → boolean-DReYcHhK.js} +2 -2
- package/{booleanInput-BXblkXPl.js → booleanInput-DpOzfB4V.js} +6 -6
- package/{br-Dcoyk-30.js → br-BfJiEL6k.js} +2 -2
- package/{button-CE_7ebe4.js → button-DoRESk8x.js} +4 -4
- package/{c-D8SWqtmh.js → c-B69rXdyO.js} +3 -3
- package/{cell-BKjn728a.js → cell-D94t7isO.js} +3 -3
- package/{choiceInput-xSOubIfW.js → choiceInput-C1s6t1vp.js} +4 -4
- package/{circle-BpMYMP8X.js → circle-B0iGK0Vg.js} +5 -5
- package/{cobwebPolyline-DUthcxCx.js → cobwebPolyline-BJ4xMoeK.js} +4 -4
- package/{codeEditor-BpD3p9yV.js → codeEditor-0tF1z4w6.js} +2 -2
- package/{composites-B92T9mO9.js → composites-CFYSb7v0.js} +1 -1
- package/{containerBlock-B33HB5z8.js → containerBlock-BHb20rW8.js} +4 -4
- package/{containerInline-CAobI_bT.js → containerInline-qqXkrPWC.js} +4 -4
- package/{curve-D6ekWDGO.js → curve-DNTaiilA.js} +4 -4
- package/{doenetml-CKcWu_kV.js → doenetml-B40wNOxL.js} +5 -5
- package/doenetml-inline-worker.js +2 -2
- package/{ellipsis-B58TpoLW.js → ellipsis-BzBUT01-.js} +2 -2
- package/{em-DbQjeU3X.js → em-Drac3kyc.js} +3 -3
- package/{embed-CTUjXYtz.js → embed-eX-vyjbe.js} +2 -2
- package/{feedback-D2UW-SM3.js → feedback-DhE5ZszX.js} +4 -4
- package/{figure-5qk06zaf.js → figure-GN0sirBO.js} +3 -3
- package/{fillPatterns-DbgOnFBp.js → fillPatterns-N9QFaocE.js} +1 -1
- package/{footnote-V_vjg7aE.js → footnote-Lq6OSVPA.js} +3 -3
- package/{fractionInput-yGkuE2cf.js → fractionInput-Ds3Q4iDt.js} +4 -4
- package/{graph-PQVY5sJz.js → graph-3R7C5cfM.js} +6 -6
- package/{hint-DUffMMJx.js → hint-7qQqMG7S.js} +4 -4
- package/{hr-CthmWolI.js → hr-Dmu8wzGU.js} +2 -2
- package/{image-C8fvNM1j.js → image-Bc0G2MtM.js} +7 -7
- package/{index-nuOae2Fm.js → index-BGpr8vdT.js} +1 -1
- package/{index.es-D_dKvug5.js → index.es-DZph8YfV.js} +1 -1
- package/index.js +1 -1
- package/{label-DYGOYNLf.js → label-BBeVslu0.js} +6 -6
- package/{labelWithLatex-dAdMIwMh.js → labelWithLatex-CKfa0Ss3.js} +1 -1
- package/{legend-QbPBfaqK.js → legend-MGE0n882.js} +4 -4
- package/{line-BrDiDkBe.js → line-CWRKiDi-.js} +5 -5
- package/{lineSegment-BW-pskWs.js → lineSegment-CPHVL1Lq.js} +4 -4
- package/{list-CgMNl4Cg.js → list-BzRIdAAK.js} +4 -4
- package/{lq-Bl2ZJlzh.js → lq-BcMgWtU1.js} +2 -2
- package/{lsq-B1hzZGj5.js → lsq-ApHtZGB1.js} +2 -2
- package/{markupRenderer-D2Vjmawt.js → markupRenderer-OMnWKMCh.js} +1 -1
- package/{math-BXHTUrsg.js → math-BBeeZQxo.js} +6 -6
- package/{mathInput-B3OPn6R0.js → mathInput-gz7Powg7.js} +5 -5
- package/{matrixInput-BtP_Mphe.js → matrixInput-B0dE9Yf-.js} +4 -4
- package/{mdash-BPYu4Yq_.js → mdash-CKo8Hq6y.js} +2 -2
- package/{nbsp-6sz5X8yo.js → nbsp-B0g0yKGD.js} +2 -2
- package/{ndash-BmamWHWT.js → ndash-D8g5dK9R.js} +2 -2
- package/{number-BE-PjgUu.js → number-C4dwUepQ.js} +6 -6
- package/{orbitalDiagram-CoQKERGa.js → orbitalDiagram-CkUFCUhH.js} +2 -2
- package/{orbitalDiagramInput-DWGju3WM.js → orbitalDiagramInput-CA7ALRKw.js} +2 -2
- package/{p-BkHpJDW1.js → p-dNesGl7y.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-Ca8UemkD.js → paginatorControls-dzc6Bz66.js} +2 -2
- package/{pegboard-BD6bTf7S.js → pegboard-BuJhwqJ3.js} +4 -4
- package/{point-D0OiHYO0.js → point--JI4dgT_.js} +5 -5
- package/{polygon-_n_QRchq.js → polygon-CeviWAsR.js} +5 -5
- package/{polyline-D9Cp-AFu.js → polyline-BzOg4xJX.js} +4 -4
- package/{pre-DI2bNhy5.js → pre-Di8czc9f.js} +3 -3
- package/{prefigure-B9F-Ipbl.js → prefigure-DfRAL724.js} +1 -1
- package/{pretzel-BNjKG5kb.js → pretzel-ruve715s.js} +4 -4
- package/{q-DK9myMYi.js → q-Znh7xskp.js} +3 -3
- package/{ray-DYru2Uhs.js → ray-DrR0bWfB.js} +4 -4
- package/{ref-p6wAakDG.js → ref-BfWemFs1.js} +2 -2
- package/{regionBetweenCurveXAxis-DOj7ts5m.js → regionBetweenCurveXAxis-Cr2DS7Kb.js} +5 -5
- package/{regionBetweenCurves-B1OmRgVp.js → regionBetweenCurves-ByK91Am_.js} +5 -5
- package/{row-xUblJxpo.js → row-SSPe5IvC.js} +2 -2
- package/{rq-BVgeYK4c.js → rq-Df9PrY5-.js} +2 -2
- package/{rsq-BNU3Aanr.js → rsq-BdUrtv5F.js} +2 -2
- package/{section-Bvp_aUAF.js → section-ELnhvmGD.js} +5 -5
- package/{sha256-C0vj3HDn-5ULEgRT_.js → sha256-C0vj3HDn-DRhnsFBS.js} +1 -1
- package/{sideBySide-BKYGgcoA.js → sideBySide-CZYA_QoX.js} +2 -2
- package/{slider-DV3TzJ2Y.js → slider-DxlnPFzu.js} +3 -3
- package/{solution-DrXjJHuq.js → solution-CXXW3-MF.js} +4 -4
- package/{spreadsheet-DT9rQ4jL.js → spreadsheet-DdW4FWWh.js} +2 -2
- package/{sq-CJ7TqOAM.js → sq-CgiPY-JT.js} +3 -3
- package/{subsetOfRealsInput-BBVUhTVJ.js → subsetOfRealsInput-Cxhq6vJJ.js} +2 -2
- package/{summaryStatistics-EJvW-dKy.js → summaryStatistics-D8qTNe4c.js} +2 -2
- package/{table-Dptr-LIt.js → table-Ke5_0h4M.js} +2 -2
- package/{tabular-CMFaiHjl.js → tabular-UjhV3ogI.js} +2 -2
- package/{tag-DXoE3w1C.js → tag-DWmzB0Xe.js} +2 -2
- package/{text-rtVD00GC.js → text-D-W887rc.js} +6 -6
- package/{textInput-C0GSwS9v.js → textInput-BY2Md0ON.js} +6 -6
- package/{tooltip-provider-Bkj1pfqG.js → tooltip-provider-BNqQrZ2M.js} +1 -1
- package/{useAnchoredGraphDragHandler-C4CSsmz0.js → useAnchoredGraphDragHandler-CI_PqnWq.js} +1 -1
- package/useDoenetRenderer-BN0elJwP.js +114 -0
- package/{useSubmitActionWithDelay-Br4N7Vz-.js → useSubmitActionWithDelay-LSS6yd10.js} +2 -2
- package/{vector-DL0khEP3.js → vector-COavI6aB.js} +5 -5
- package/{video-DZ5Ek36A.js → video-C6ogIfeH.js} +4 -4
- package/useDoenetRenderer-BEg45nyl.js +0 -114
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { j as jxg, h as syncLineFamilyVisibility, s as syncLayer, e as syncLineStrokeStyle, a as syncWithLabelToggle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, i as applyLineFamilyLabelPlacement, k as buildLineFamilyLabelAttributes, d as attachLabelHoverHighlight, c as computeLabelMaskCssStyle, l as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
5
|
-
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { j as jxg, h as syncLineFamilyVisibility, s as syncLayer, e as syncLineStrokeStyle, a as syncWithLabelToggle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, i as applyLineFamilyLabelPlacement, k as buildLineFamilyLabelAttributes, d as attachLabelHoverHighlight, c as computeLabelMaskCssStyle, l as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-BOzKpTdd.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-3R7C5cfM.js";
|
|
6
6
|
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-WXpVD4ud.js";
|
|
7
7
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
8
8
|
import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.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-
|
|
1
|
+
import { k as DocContext, o as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { j as jxg, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
5
|
-
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-
|
|
6
|
-
import { g as getPatternFillAttributes } from "./fillPatterns-
|
|
3
|
+
import { j as jxg, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-BOzKpTdd.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-3R7C5cfM.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-N9QFaocE.js";
|
|
7
7
|
const regionBetweenCurveXAxis = React__default.memo(function RegionBetweenCurveXAxis(props) {
|
|
8
8
|
let { id, SVs } = useDoenetRenderer(props);
|
|
9
9
|
RegionBetweenCurveXAxis.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { k as DocContext, o as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as DocContext, o as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-3R7C5cfM.js";
|
|
5
5
|
import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
|
|
6
|
-
import { g as getPatternFillAttributes } from "./fillPatterns-
|
|
7
|
-
import { b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-N9QFaocE.js";
|
|
7
|
+
import { b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-BOzKpTdd.js";
|
|
8
8
|
const regionBetweenCurves = React__default.memo(function RegionBetweenCurves(props) {
|
|
9
9
|
let { id, SVs } = useDoenetRenderer(props);
|
|
10
10
|
RegionBetweenCurves.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.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-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.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-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.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-
|
|
1
|
+
import { k as DocContext, n as cesc, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { F as FontAwesomeIcon } from "./index.es-
|
|
3
|
+
import { F as FontAwesomeIcon } from "./index.es-DZph8YfV.js";
|
|
4
4
|
import { f as faCaretDown, a as faCaretRight } from "./index-BDlitCgu.js";
|
|
5
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
6
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
7
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-CFYSb7v0.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-LSS6yd10.js";
|
|
8
8
|
const section = React__default.memo(function Section(props) {
|
|
9
9
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
10
10
|
const { darkMode } = useContext(DocContext) || {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.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-
|
|
1
|
+
import { j as jsxRuntimeExports, A as ActionButtonGroup, z as ActionButton, l as Context } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
|
-
import { r as renderLabelWithLatex } from "./labelWithLatex-
|
|
5
|
+
import { r as renderLabelWithLatex } from "./labelWithLatex-CKfa0Ss3.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-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { F as FontAwesomeIcon } from "./index.es-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-DZph8YfV.js";
|
|
5
5
|
import { c as faPuzzlePiece } from "./index-BDlitCgu.js";
|
|
6
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-CFYSb7v0.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-
|
|
1
|
+
import { k as DocContext, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default, { forwardRef, useId, useRef, useCallback, useMemo, useEffect, Children, useImperativeHandle, Fragment, createContext as createContext$1, useContext, useState } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.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-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { r as renderMarkupBody } from "./markupRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-OMnWKMCh.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-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports, F as ToggleButtonGroup, T as ToggleButton, A as ActionButtonGroup, z as ActionButton } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.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-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.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-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.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-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.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-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.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-
|
|
1
|
+
import { k as DocContext, l as Context, j as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default, { useRef, useContext } from "react";
|
|
3
|
-
import { j as jxg } from "./JSXGraphRenderer-
|
|
4
|
-
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-
|
|
5
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { j as jxg } from "./JSXGraphRenderer-BOzKpTdd.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-3R7C5cfM.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-C1s6t1vp.js";
|
|
8
8
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
9
9
|
import { u as useDraggableRefs, a as useJSXGraphCleanup } from "./useJSXGraphCleanup-CX91oVW8.js";
|
|
10
|
-
import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-
|
|
10
|
+
import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-CI_PqnWq.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-
|
|
1
|
+
import { l as Context, j as jsxRuntimeExports, M as MathJax } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import { useState, useRef, useContext, useEffect } from "react";
|
|
3
|
-
import { j as jxg } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { j as jxg } from "./JSXGraphRenderer-BOzKpTdd.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-3R7C5cfM.js";
|
|
7
7
|
import { g as getPositionFromAnchorByCoordinate, P as POINTER_DRAG_THRESHOLD } from "./graph-W6vrFcBu.js";
|
|
8
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
9
|
-
import { D as DescriptionPopover } from "./Description-
|
|
8
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-LSS6yd10.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-BQlDpTEW.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 { a3 as createStoreContext, a4 as HovercardScopedContextProvider, a5 as HovercardContextProvider, a6 as createDialogComponent, I as forwardRef, J as createElement, K as createHook, N as invariant, a7 as useWrapElement, j as jsxRuntimeExports, O as useStoreState, a8 as useHovercard, a9 as isFalsyBooleanCallback, aa as contains, ab as sync, ac as chain, ad as useEvent, ae as useHovercardAnchor, af as createStore, ag as createHovercardStore, ah as defaultValue, ai as useStore, aj as useStoreProps, ak as useHovercardStoreProps } from "./doenetml-
|
|
1
|
+
import { a3 as createStoreContext, a4 as HovercardScopedContextProvider, a5 as HovercardContextProvider, a6 as createDialogComponent, I as forwardRef, J as createElement, K as createHook, N as invariant, a7 as useWrapElement, j as jsxRuntimeExports, O as useStoreState, a8 as useHovercard, a9 as isFalsyBooleanCallback, aa as contains, ab as sync, ac as chain, ad as useEvent, ae as useHovercardAnchor, af as createStore, ag as createHovercardStore, ah as defaultValue, ai as useStore, aj as useStoreProps, ak as useHovercardStoreProps } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import { useRef, useEffect } from "react";
|
|
3
3
|
const ctx = createStoreContext([HovercardContextProvider], [HovercardScopedContextProvider]);
|
|
4
4
|
const useTooltipProviderContext = ctx.useProviderContext;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as removeJXGEventHandlers, L as LINE_FAMILY_EVENTS, j as jxg } from "./JSXGraphRenderer-
|
|
1
|
+
import { r as removeJXGEventHandlers, L as LINE_FAMILY_EVENTS, j as jxg } from "./JSXGraphRenderer-BOzKpTdd.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 { q as useAppSelector, v as mainSlice, w as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-B40wNOxL.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-CuvHdDgq.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-BOzKpTdd.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error--gnqS_Cc.js"), "./renderers/alert.tsx": () => import("./alert-mEWnrqFn.js"), "./renderers/angle.tsx": () => import("./angle-CGc8RvVx.js"), "./renderers/answer.tsx": () => import("./answer-BSDWUlLH.js"), "./renderers/asList.tsx": () => import("./asList-DJukSzH2.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-B5HDe9_d.js"), "./renderers/boolean.tsx": () => import("./boolean-DReYcHhK.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-DpOzfB4V.js"), "./renderers/br.tsx": () => import("./br-BfJiEL6k.js"), "./renderers/button.tsx": () => import("./button-DoRESk8x.js"), "./renderers/c.tsx": () => import("./c-B69rXdyO.js"), "./renderers/cell.tsx": () => import("./cell-D94t7isO.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-C1s6t1vp.js"), "./renderers/circle.tsx": () => import("./circle-B0iGK0Vg.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-BJ4xMoeK.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-0tF1z4w6.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-BHb20rW8.js"), "./renderers/containerInline.tsx": () => import("./containerInline-qqXkrPWC.js"), "./renderers/curve.tsx": () => import("./curve-DNTaiilA.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-BzBUT01-.js"), "./renderers/em.tsx": () => import("./em-Drac3kyc.js"), "./renderers/embed.tsx": () => import("./embed-eX-vyjbe.js"), "./renderers/feedback.tsx": () => import("./feedback-DhE5ZszX.js"), "./renderers/figure.tsx": () => import("./figure-GN0sirBO.js"), "./renderers/footnote.tsx": () => import("./footnote-Lq6OSVPA.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-Ds3Q4iDt.js"), "./renderers/graph.tsx": () => import("./graph-3R7C5cfM.js"), "./renderers/hint.tsx": () => import("./hint-7qQqMG7S.js"), "./renderers/hr.tsx": () => import("./hr-Dmu8wzGU.js"), "./renderers/image.tsx": () => import("./image-Bc0G2MtM.js"), "./renderers/label.tsx": () => import("./label-BBeVslu0.js"), "./renderers/legend.tsx": () => import("./legend-MGE0n882.js"), "./renderers/line.tsx": () => import("./line-CWRKiDi-.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-CPHVL1Lq.js"), "./renderers/list.tsx": () => import("./list-BzRIdAAK.js"), "./renderers/lq.tsx": () => import("./lq-BcMgWtU1.js"), "./renderers/lsq.tsx": () => import("./lsq-ApHtZGB1.js"), "./renderers/math.tsx": () => import("./math-BBeeZQxo.js"), "./renderers/mathInput.tsx": () => import("./mathInput-gz7Powg7.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-B0dE9Yf-.js"), "./renderers/mdash.tsx": () => import("./mdash-CKo8Hq6y.js"), "./renderers/nbsp.tsx": () => import("./nbsp-B0g0yKGD.js"), "./renderers/ndash.tsx": () => import("./ndash-D8g5dK9R.js"), "./renderers/number.tsx": () => import("./number-C4dwUepQ.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-CkUFCUhH.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-CA7ALRKw.js"), "./renderers/p.tsx": () => import("./p-dNesGl7y.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-dzc6Bz66.js"), "./renderers/pegboard.tsx": () => import("./pegboard-BuJhwqJ3.js"), "./renderers/point.tsx": () => import("./point--JI4dgT_.js"), "./renderers/polygon.tsx": () => import("./polygon-CeviWAsR.js"), "./renderers/polyline.tsx": () => import("./polyline-BzOg4xJX.js"), "./renderers/pre.tsx": () => import("./pre-Di8czc9f.js"), "./renderers/prefigure.tsx": () => import("./prefigure-DfRAL724.js"), "./renderers/pretzel.tsx": () => import("./pretzel-ruve715s.js"), "./renderers/q.tsx": () => import("./q-Znh7xskp.js"), "./renderers/ray.tsx": () => import("./ray-DrR0bWfB.js"), "./renderers/ref.tsx": () => import("./ref-BfWemFs1.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-Cr2DS7Kb.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-ByK91Am_.js"), "./renderers/row.tsx": () => import("./row-SSPe5IvC.js"), "./renderers/rq.tsx": () => import("./rq-Df9PrY5-.js"), "./renderers/rsq.tsx": () => import("./rsq-BdUrtv5F.js"), "./renderers/section.tsx": () => import("./section-ELnhvmGD.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-CZYA_QoX.js"), "./renderers/slider.tsx": () => import("./slider-DxlnPFzu.js"), "./renderers/solution.tsx": () => import("./solution-CXXW3-MF.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-DdW4FWWh.js"), "./renderers/sq.tsx": () => import("./sq-CgiPY-JT.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-Cxhq6vJJ.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-D8qTNe4c.js"), "./renderers/table.tsx": () => import("./table-Ke5_0h4M.js"), "./renderers/tabular.tsx": () => import("./tabular-UjhV3ogI.js"), "./renderers/tag.tsx": () => import("./tag-DWmzB0Xe.js"), "./renderers/text.tsx": () => import("./text-D-W887rc.js"), "./renderers/textInput.tsx": () => import("./textInput-BY2Md0ON.js"), "./renderers/vector.tsx": () => import("./vector-COavI6aB.js"), "./renderers/video.tsx": () => import("./video-C6ogIfeH.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-
|
|
2
|
-
import { F as FontAwesomeIcon } from "./index.es-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-B40wNOxL.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-DZph8YfV.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-
|
|
1
|
+
import { k as DocContext, j as jsxRuntimeExports, t as textRendererStyle, M as MathJax } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { j as jxg, s as syncLayer, g as syncVisPropValues, e as syncLineStrokeStyle, a as syncWithLabelToggle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, i as applyLineFamilyLabelPlacement, k as buildLineFamilyLabelAttributes, d as attachLabelHoverHighlight, c as computeLabelMaskCssStyle, l as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
5
|
-
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-
|
|
6
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
3
|
+
import { j as jxg, s as syncLayer, g as syncVisPropValues, e as syncLineStrokeStyle, a as syncWithLabelToggle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, i as applyLineFamilyLabelPlacement, k as buildLineFamilyLabelAttributes, d as attachLabelHoverHighlight, c as computeLabelMaskCssStyle, l as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-BOzKpTdd.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-3R7C5cfM.js";
|
|
6
|
+
import { ChoiceInputInlineContext } from "./choiceInput-C1s6t1vp.js";
|
|
7
7
|
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-WXpVD4ud.js";
|
|
8
8
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
9
9
|
import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-B40wNOxL.js";
|
|
2
2
|
import React__default, { useState, useEffect, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-BN0elJwP.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
|
-
import { D as DescriptionPopover, a as DescriptionAsDetails } from "./Description-
|
|
5
|
+
import { D as DescriptionPopover, a as DescriptionAsDetails } from "./Description-BQlDpTEW.js";
|
|
6
6
|
import { g as getNonInlineMediaLayoutStyles } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
7
|
-
import { N as NonInlineMediaWrapper } from "./NonInlineMediaWrapper-
|
|
7
|
+
import { N as NonInlineMediaWrapper } from "./NonInlineMediaWrapper-BO5mYi-I.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-CKcWu_kV.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-CoDwv9vP.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-Cw-4LH8Q.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-B4ihAfPc.js"), "./renderers/alert.tsx": () => import("./alert-BoJMdjim.js"), "./renderers/angle.tsx": () => import("./angle-DF2kJyRm.js"), "./renderers/answer.tsx": () => import("./answer-IkCzfOW3.js"), "./renderers/asList.tsx": () => import("./asList-B_P-2g2R.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-BFdna0Kp.js"), "./renderers/boolean.tsx": () => import("./boolean-BtHrMvHr.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-BXblkXPl.js"), "./renderers/br.tsx": () => import("./br-Dcoyk-30.js"), "./renderers/button.tsx": () => import("./button-CE_7ebe4.js"), "./renderers/c.tsx": () => import("./c-D8SWqtmh.js"), "./renderers/cell.tsx": () => import("./cell-BKjn728a.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-xSOubIfW.js"), "./renderers/circle.tsx": () => import("./circle-BpMYMP8X.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-DUthcxCx.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-BpD3p9yV.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-B33HB5z8.js"), "./renderers/containerInline.tsx": () => import("./containerInline-CAobI_bT.js"), "./renderers/curve.tsx": () => import("./curve-D6ekWDGO.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-B58TpoLW.js"), "./renderers/em.tsx": () => import("./em-DbQjeU3X.js"), "./renderers/embed.tsx": () => import("./embed-CTUjXYtz.js"), "./renderers/feedback.tsx": () => import("./feedback-D2UW-SM3.js"), "./renderers/figure.tsx": () => import("./figure-5qk06zaf.js"), "./renderers/footnote.tsx": () => import("./footnote-V_vjg7aE.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-yGkuE2cf.js"), "./renderers/graph.tsx": () => import("./graph-PQVY5sJz.js"), "./renderers/hint.tsx": () => import("./hint-DUffMMJx.js"), "./renderers/hr.tsx": () => import("./hr-CthmWolI.js"), "./renderers/image.tsx": () => import("./image-C8fvNM1j.js"), "./renderers/label.tsx": () => import("./label-DYGOYNLf.js"), "./renderers/legend.tsx": () => import("./legend-QbPBfaqK.js"), "./renderers/line.tsx": () => import("./line-BrDiDkBe.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-BW-pskWs.js"), "./renderers/list.tsx": () => import("./list-CgMNl4Cg.js"), "./renderers/lq.tsx": () => import("./lq-Bl2ZJlzh.js"), "./renderers/lsq.tsx": () => import("./lsq-B1hzZGj5.js"), "./renderers/math.tsx": () => import("./math-BXHTUrsg.js"), "./renderers/mathInput.tsx": () => import("./mathInput-B3OPn6R0.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-BtP_Mphe.js"), "./renderers/mdash.tsx": () => import("./mdash-BPYu4Yq_.js"), "./renderers/nbsp.tsx": () => import("./nbsp-6sz5X8yo.js"), "./renderers/ndash.tsx": () => import("./ndash-BmamWHWT.js"), "./renderers/number.tsx": () => import("./number-BE-PjgUu.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-CoQKERGa.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-DWGju3WM.js"), "./renderers/p.tsx": () => import("./p-BkHpJDW1.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-Ca8UemkD.js"), "./renderers/pegboard.tsx": () => import("./pegboard-BD6bTf7S.js"), "./renderers/point.tsx": () => import("./point-D0OiHYO0.js"), "./renderers/polygon.tsx": () => import("./polygon-_n_QRchq.js"), "./renderers/polyline.tsx": () => import("./polyline-D9Cp-AFu.js"), "./renderers/pre.tsx": () => import("./pre-DI2bNhy5.js"), "./renderers/prefigure.tsx": () => import("./prefigure-B9F-Ipbl.js"), "./renderers/pretzel.tsx": () => import("./pretzel-BNjKG5kb.js"), "./renderers/q.tsx": () => import("./q-DK9myMYi.js"), "./renderers/ray.tsx": () => import("./ray-DYru2Uhs.js"), "./renderers/ref.tsx": () => import("./ref-p6wAakDG.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-DOj7ts5m.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-B1OmRgVp.js"), "./renderers/row.tsx": () => import("./row-xUblJxpo.js"), "./renderers/rq.tsx": () => import("./rq-BVgeYK4c.js"), "./renderers/rsq.tsx": () => import("./rsq-BNU3Aanr.js"), "./renderers/section.tsx": () => import("./section-Bvp_aUAF.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-BKYGgcoA.js"), "./renderers/slider.tsx": () => import("./slider-DV3TzJ2Y.js"), "./renderers/solution.tsx": () => import("./solution-DrXjJHuq.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-DT9rQ4jL.js"), "./renderers/sq.tsx": () => import("./sq-CJ7TqOAM.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-BBVUhTVJ.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-EJvW-dKy.js"), "./renderers/table.tsx": () => import("./table-Dptr-LIt.js"), "./renderers/tabular.tsx": () => import("./tabular-CMFaiHjl.js"), "./renderers/tag.tsx": () => import("./tag-DXoE3w1C.js"), "./renderers/text.tsx": () => import("./text-rtVD00GC.js"), "./renderers/textInput.tsx": () => import("./textInput-C0GSwS9v.js"), "./renderers/vector.tsx": () => import("./vector-DL0khEP3.js"), "./renderers/video.tsx": () => import("./video-DZ5Ek36A.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
|
-
};
|