@doenet/doenetml 0.7.20-dev.311 → 0.7.20-dev.313
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-gBn2BuZZ.js} +2 -2
- package/{Description-ylGX21gM.js → Description-FpFtgmYe.js} +1 -1
- package/{GraphFrame-CoDwv9vP.js → GraphFrame-BV1tncNY.js} +2 -2
- package/{JSXGraphRenderer-Cw-4LH8Q.js → JSXGraphRenderer-SxtkTQZL.js} +1 -1
- package/{NonInlineMediaWrapper-Cd7Nj2EG.js → NonInlineMediaWrapper-DCDj8jdC.js} +1 -1
- package/{_error-B4ihAfPc.js → _error-DTeGsUd9.js} +2 -2
- package/{alert-BoJMdjim.js → alert-D2P5HLfk.js} +3 -3
- package/{angle-DF2kJyRm.js → angle-YOvmhW4W.js} +6 -6
- package/{answer-IkCzfOW3.js → answer-Bi_gynn7.js} +5 -5
- package/{asList-B_P-2g2R.js → asList-DFNSJm92.js} +2 -2
- package/{blockQuote-BFdna0Kp.js → blockQuote-B02M6UZq.js} +3 -3
- package/{boolean-BtHrMvHr.js → boolean-CXwIn6q8.js} +2 -2
- package/{booleanInput-BXblkXPl.js → booleanInput-CA2jF9XQ.js} +6 -6
- package/{br-Dcoyk-30.js → br-DK6fKex_.js} +2 -2
- package/{button-CE_7ebe4.js → button-B190tSzd.js} +4 -4
- package/{c-D8SWqtmh.js → c-D86q_5kG.js} +3 -3
- package/{cell-BKjn728a.js → cell-B9rbrekZ.js} +3 -3
- package/{choiceInput-xSOubIfW.js → choiceInput-C91qJgfW.js} +4 -4
- package/{circle-BpMYMP8X.js → circle-BlxgakVF.js} +5 -5
- package/{cobwebPolyline-DUthcxCx.js → cobwebPolyline-CPO6OFVc.js} +4 -4
- package/{codeEditor-BpD3p9yV.js → codeEditor-DGXSlmAF.js} +2 -2
- package/{composites-B92T9mO9.js → composites-BzV9IeXt.js} +1 -1
- package/{containerBlock-B33HB5z8.js → containerBlock-CsJFmQ8Z.js} +4 -4
- package/{containerInline-CAobI_bT.js → containerInline-BaU3vl-K.js} +4 -4
- package/{curve-D6ekWDGO.js → curve-DyiaqEHt.js} +4 -4
- package/{doenetml-CKcWu_kV.js → doenetml-aB7JbNZg.js} +5 -5
- package/doenetml-inline-worker.js +2 -2
- package/{ellipsis-B58TpoLW.js → ellipsis-trFCDnIC.js} +2 -2
- package/{em-DbQjeU3X.js → em-CrprMPIW.js} +3 -3
- package/{embed-CTUjXYtz.js → embed-DMAbXCVx.js} +2 -2
- package/{feedback-D2UW-SM3.js → feedback-ikfYsf51.js} +4 -4
- package/{figure-5qk06zaf.js → figure-Bsi8oG85.js} +3 -3
- package/{fillPatterns-DbgOnFBp.js → fillPatterns-o8iy0sP3.js} +1 -1
- package/{footnote-V_vjg7aE.js → footnote-DB5VIQtW.js} +3 -3
- package/{fractionInput-yGkuE2cf.js → fractionInput-BlYcirDm.js} +4 -4
- package/{graph-PQVY5sJz.js → graph-CzIHr24I.js} +6 -6
- package/{hint-DUffMMJx.js → hint-49RJ4fJX.js} +4 -4
- package/{hr-CthmWolI.js → hr-Dm7qj5dF.js} +2 -2
- package/{image-C8fvNM1j.js → image-C6I50qsx.js} +7 -7
- package/{index-nuOae2Fm.js → index-JfStC2sR.js} +1 -1
- package/{index.es-D_dKvug5.js → index.es-B5c7aVtr.js} +1 -1
- package/index.js +1 -1
- package/{label-DYGOYNLf.js → label-BJWGc5uw.js} +6 -6
- package/{labelWithLatex-dAdMIwMh.js → labelWithLatex-BaRabWVZ.js} +1 -1
- package/{legend-QbPBfaqK.js → legend-BXoIRWPD.js} +4 -4
- package/{line-BrDiDkBe.js → line-Cg4ShxTz.js} +5 -5
- package/{lineSegment-BW-pskWs.js → lineSegment-hNwK2hsc.js} +4 -4
- package/{list-CgMNl4Cg.js → list-CQTXv4FP.js} +4 -4
- package/{lq-Bl2ZJlzh.js → lq-BatnPWGT.js} +2 -2
- package/{lsq-B1hzZGj5.js → lsq-B9ordhmD.js} +2 -2
- package/{markupRenderer-D2Vjmawt.js → markupRenderer-DBCx6EX_.js} +1 -1
- package/{math-BXHTUrsg.js → math-B5hpOW9-.js} +6 -6
- package/{mathInput-B3OPn6R0.js → mathInput-Aj9BWdJk.js} +5 -5
- package/{matrixInput-BtP_Mphe.js → matrixInput-B29WjEkr.js} +4 -4
- package/{mdash-BPYu4Yq_.js → mdash-3qcZ92p7.js} +2 -2
- package/{nbsp-6sz5X8yo.js → nbsp-BAoRPv2r.js} +2 -2
- package/{ndash-BmamWHWT.js → ndash-Dw-USMRq.js} +2 -2
- package/{number-BE-PjgUu.js → number-BM2f5HSD.js} +6 -6
- package/{orbitalDiagram-CoQKERGa.js → orbitalDiagram-DzTPPpQi.js} +2 -2
- package/{orbitalDiagramInput-DWGju3WM.js → orbitalDiagramInput-BeTursfi.js} +2 -2
- package/{p-BkHpJDW1.js → p-BW8xHyx2.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-Ca8UemkD.js → paginatorControls-OETLghCG.js} +2 -2
- package/{pegboard-BD6bTf7S.js → pegboard-B1GM0ABK.js} +4 -4
- package/{point-D0OiHYO0.js → point-CPttFfZz.js} +5 -5
- package/{polygon-_n_QRchq.js → polygon-V1vpI61u.js} +5 -5
- package/{polyline-D9Cp-AFu.js → polyline-DVCO1i5w.js} +4 -4
- package/{pre-DI2bNhy5.js → pre-3uAzzLKW.js} +3 -3
- package/{prefigure-B9F-Ipbl.js → prefigure-D03S9bOi.js} +1 -1
- package/{pretzel-BNjKG5kb.js → pretzel-Bq-VxedX.js} +4 -4
- package/{q-DK9myMYi.js → q-BLQ1W1_T.js} +3 -3
- package/{ray-DYru2Uhs.js → ray-BkDCQnP3.js} +4 -4
- package/{ref-p6wAakDG.js → ref-TZAHMM8s.js} +2 -2
- package/{regionBetweenCurveXAxis-DOj7ts5m.js → regionBetweenCurveXAxis-DQ5BnwzU.js} +5 -5
- package/{regionBetweenCurves-B1OmRgVp.js → regionBetweenCurves-CiotMNXF.js} +5 -5
- package/{row-xUblJxpo.js → row-CwSzBQDR.js} +2 -2
- package/{rq-BVgeYK4c.js → rq-BGCb_4TP.js} +2 -2
- package/{rsq-BNU3Aanr.js → rsq-BKan60lP.js} +2 -2
- package/{section-Bvp_aUAF.js → section-DoIdLwXY.js} +5 -5
- package/{sha256-C0vj3HDn-5ULEgRT_.js → sha256-C0vj3HDn-kwD8I0Br.js} +1 -1
- package/{sideBySide-BKYGgcoA.js → sideBySide-Ceiw05Ta.js} +2 -2
- package/{slider-DV3TzJ2Y.js → slider-DZl588DU.js} +3 -3
- package/{solution-DrXjJHuq.js → solution-Cust6iDD.js} +4 -4
- package/{spreadsheet-DT9rQ4jL.js → spreadsheet-Bvk3Ranp.js} +2 -2
- package/{sq-CJ7TqOAM.js → sq-BfIVoseF.js} +3 -3
- package/{subsetOfRealsInput-BBVUhTVJ.js → subsetOfRealsInput-CVmF_q1p.js} +2 -2
- package/{summaryStatistics-EJvW-dKy.js → summaryStatistics-DDPla-1v.js} +2 -2
- package/{table-Dptr-LIt.js → table-CQLwh6QP.js} +2 -2
- package/{tabular-CMFaiHjl.js → tabular-DsN43g34.js} +2 -2
- package/{tag-DXoE3w1C.js → tag-Cdb96Wzz.js} +2 -2
- package/{text-rtVD00GC.js → text-DNvU-2P_.js} +6 -6
- package/{textInput-C0GSwS9v.js → textInput-uQdxxKXT.js} +6 -6
- package/{tooltip-provider-Bkj1pfqG.js → tooltip-provider-CDOusxAp.js} +1 -1
- package/{useAnchoredGraphDragHandler-C4CSsmz0.js → useAnchoredGraphDragHandler-BoZvihO4.js} +1 -1
- package/useDoenetRenderer-B72juXfz.js +114 -0
- package/{useSubmitActionWithDelay-Br4N7Vz-.js → useSubmitActionWithDelay-Dt9JKy0v.js} +2 -2
- package/{vector-DL0khEP3.js → vector-D5la2Csg.js} +5 -5
- package/{video-DZ5Ek36A.js → video-wzYkKkvI.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-aB7JbNZg.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-SxtkTQZL.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B72juXfz.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-CzIHr24I.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-aB7JbNZg.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B72juXfz.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-aB7JbNZg.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-SxtkTQZL.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B72juXfz.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-CzIHr24I.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-o8iy0sP3.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-aB7JbNZg.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-B72juXfz.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-CzIHr24I.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-o8iy0sP3.js";
|
|
7
|
+
import { b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-SxtkTQZL.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-aB7JbNZg.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B72juXfz.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-aB7JbNZg.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B72juXfz.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-aB7JbNZg.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B72juXfz.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-aB7JbNZg.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-B5c7aVtr.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-B72juXfz.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-BzV9IeXt.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-Dt9JKy0v.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-aB7JbNZg.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B72juXfz.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-aB7JbNZg.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-B72juXfz.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-BaRabWVZ.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-aB7JbNZg.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-B72juXfz.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-B5c7aVtr.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-BzV9IeXt.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-aB7JbNZg.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-B72juXfz.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-aB7JbNZg.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-B72juXfz.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-DBCx6EX_.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-aB7JbNZg.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B72juXfz.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-aB7JbNZg.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B72juXfz.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-aB7JbNZg.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B72juXfz.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-aB7JbNZg.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B72juXfz.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-aB7JbNZg.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B72juXfz.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-aB7JbNZg.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-SxtkTQZL.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-CzIHr24I.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B72juXfz.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-C91qJgfW.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-BoZvihO4.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-aB7JbNZg.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-SxtkTQZL.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B72juXfz.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-CzIHr24I.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-Dt9JKy0v.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-FpFtgmYe.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-aB7JbNZg.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-SxtkTQZL.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-aB7JbNZg.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-BV1tncNY.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-SxtkTQZL.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-DTeGsUd9.js"), "./renderers/alert.tsx": () => import("./alert-D2P5HLfk.js"), "./renderers/angle.tsx": () => import("./angle-YOvmhW4W.js"), "./renderers/answer.tsx": () => import("./answer-Bi_gynn7.js"), "./renderers/asList.tsx": () => import("./asList-DFNSJm92.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-B02M6UZq.js"), "./renderers/boolean.tsx": () => import("./boolean-CXwIn6q8.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-CA2jF9XQ.js"), "./renderers/br.tsx": () => import("./br-DK6fKex_.js"), "./renderers/button.tsx": () => import("./button-B190tSzd.js"), "./renderers/c.tsx": () => import("./c-D86q_5kG.js"), "./renderers/cell.tsx": () => import("./cell-B9rbrekZ.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-C91qJgfW.js"), "./renderers/circle.tsx": () => import("./circle-BlxgakVF.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-CPO6OFVc.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-DGXSlmAF.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-CsJFmQ8Z.js"), "./renderers/containerInline.tsx": () => import("./containerInline-BaU3vl-K.js"), "./renderers/curve.tsx": () => import("./curve-DyiaqEHt.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-trFCDnIC.js"), "./renderers/em.tsx": () => import("./em-CrprMPIW.js"), "./renderers/embed.tsx": () => import("./embed-DMAbXCVx.js"), "./renderers/feedback.tsx": () => import("./feedback-ikfYsf51.js"), "./renderers/figure.tsx": () => import("./figure-Bsi8oG85.js"), "./renderers/footnote.tsx": () => import("./footnote-DB5VIQtW.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-BlYcirDm.js"), "./renderers/graph.tsx": () => import("./graph-CzIHr24I.js"), "./renderers/hint.tsx": () => import("./hint-49RJ4fJX.js"), "./renderers/hr.tsx": () => import("./hr-Dm7qj5dF.js"), "./renderers/image.tsx": () => import("./image-C6I50qsx.js"), "./renderers/label.tsx": () => import("./label-BJWGc5uw.js"), "./renderers/legend.tsx": () => import("./legend-BXoIRWPD.js"), "./renderers/line.tsx": () => import("./line-Cg4ShxTz.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-hNwK2hsc.js"), "./renderers/list.tsx": () => import("./list-CQTXv4FP.js"), "./renderers/lq.tsx": () => import("./lq-BatnPWGT.js"), "./renderers/lsq.tsx": () => import("./lsq-B9ordhmD.js"), "./renderers/math.tsx": () => import("./math-B5hpOW9-.js"), "./renderers/mathInput.tsx": () => import("./mathInput-Aj9BWdJk.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-B29WjEkr.js"), "./renderers/mdash.tsx": () => import("./mdash-3qcZ92p7.js"), "./renderers/nbsp.tsx": () => import("./nbsp-BAoRPv2r.js"), "./renderers/ndash.tsx": () => import("./ndash-Dw-USMRq.js"), "./renderers/number.tsx": () => import("./number-BM2f5HSD.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-DzTPPpQi.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-BeTursfi.js"), "./renderers/p.tsx": () => import("./p-BW8xHyx2.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-OETLghCG.js"), "./renderers/pegboard.tsx": () => import("./pegboard-B1GM0ABK.js"), "./renderers/point.tsx": () => import("./point-CPttFfZz.js"), "./renderers/polygon.tsx": () => import("./polygon-V1vpI61u.js"), "./renderers/polyline.tsx": () => import("./polyline-DVCO1i5w.js"), "./renderers/pre.tsx": () => import("./pre-3uAzzLKW.js"), "./renderers/prefigure.tsx": () => import("./prefigure-D03S9bOi.js"), "./renderers/pretzel.tsx": () => import("./pretzel-Bq-VxedX.js"), "./renderers/q.tsx": () => import("./q-BLQ1W1_T.js"), "./renderers/ray.tsx": () => import("./ray-BkDCQnP3.js"), "./renderers/ref.tsx": () => import("./ref-TZAHMM8s.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-DQ5BnwzU.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-CiotMNXF.js"), "./renderers/row.tsx": () => import("./row-CwSzBQDR.js"), "./renderers/rq.tsx": () => import("./rq-BGCb_4TP.js"), "./renderers/rsq.tsx": () => import("./rsq-BKan60lP.js"), "./renderers/section.tsx": () => import("./section-DoIdLwXY.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-Ceiw05Ta.js"), "./renderers/slider.tsx": () => import("./slider-DZl588DU.js"), "./renderers/solution.tsx": () => import("./solution-Cust6iDD.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-Bvk3Ranp.js"), "./renderers/sq.tsx": () => import("./sq-BfIVoseF.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-CVmF_q1p.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-DDPla-1v.js"), "./renderers/table.tsx": () => import("./table-CQLwh6QP.js"), "./renderers/tabular.tsx": () => import("./tabular-DsN43g34.js"), "./renderers/tag.tsx": () => import("./tag-Cdb96Wzz.js"), "./renderers/text.tsx": () => import("./text-DNvU-2P_.js"), "./renderers/textInput.tsx": () => import("./textInput-uQdxxKXT.js"), "./renderers/vector.tsx": () => import("./vector-D5la2Csg.js"), "./renderers/video.tsx": () => import("./video-wzYkKkvI.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-aB7JbNZg.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-B5c7aVtr.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-aB7JbNZg.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-SxtkTQZL.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B72juXfz.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-CzIHr24I.js";
|
|
6
|
+
import { ChoiceInputInlineContext } from "./choiceInput-C91qJgfW.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-aB7JbNZg.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-B72juXfz.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-FpFtgmYe.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-DCDj8jdC.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
|
-
};
|