@doenet/doenetml 0.7.20-dev.312 → 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-DxoUVG9J.js → AnswerResponseButton-gBn2BuZZ.js} +2 -2
- package/{Description-BQlDpTEW.js → Description-FpFtgmYe.js} +1 -1
- package/{GraphFrame-CuvHdDgq.js → GraphFrame-BV1tncNY.js} +2 -2
- package/{JSXGraphRenderer-BOzKpTdd.js → JSXGraphRenderer-SxtkTQZL.js} +1 -1
- package/{NonInlineMediaWrapper-BO5mYi-I.js → NonInlineMediaWrapper-DCDj8jdC.js} +1 -1
- package/{_error--gnqS_Cc.js → _error-DTeGsUd9.js} +2 -2
- package/{alert-mEWnrqFn.js → alert-D2P5HLfk.js} +3 -3
- package/{angle-CGc8RvVx.js → angle-YOvmhW4W.js} +6 -6
- package/{answer-BSDWUlLH.js → answer-Bi_gynn7.js} +5 -5
- package/{asList-DJukSzH2.js → asList-DFNSJm92.js} +2 -2
- package/{blockQuote-B5HDe9_d.js → blockQuote-B02M6UZq.js} +3 -3
- package/{boolean-DReYcHhK.js → boolean-CXwIn6q8.js} +2 -2
- package/{booleanInput-DpOzfB4V.js → booleanInput-CA2jF9XQ.js} +6 -6
- package/{br-BfJiEL6k.js → br-DK6fKex_.js} +2 -2
- package/{button-DoRESk8x.js → button-B190tSzd.js} +4 -4
- package/{c-B69rXdyO.js → c-D86q_5kG.js} +3 -3
- package/{cell-D94t7isO.js → cell-B9rbrekZ.js} +3 -3
- package/{choiceInput-C1s6t1vp.js → choiceInput-C91qJgfW.js} +4 -4
- package/{circle-B0iGK0Vg.js → circle-BlxgakVF.js} +5 -5
- package/{cobwebPolyline-BJ4xMoeK.js → cobwebPolyline-CPO6OFVc.js} +4 -4
- package/{codeEditor-0tF1z4w6.js → codeEditor-DGXSlmAF.js} +2 -2
- package/{composites-CFYSb7v0.js → composites-BzV9IeXt.js} +1 -1
- package/{containerBlock-BHb20rW8.js → containerBlock-CsJFmQ8Z.js} +4 -4
- package/{containerInline-qqXkrPWC.js → containerInline-BaU3vl-K.js} +4 -4
- package/{curve-DNTaiilA.js → curve-DyiaqEHt.js} +4 -4
- package/{doenetml-B40wNOxL.js → doenetml-aB7JbNZg.js} +4 -4
- package/doenetml-inline-worker.js +2 -2
- package/{ellipsis-BzBUT01-.js → ellipsis-trFCDnIC.js} +2 -2
- package/{em-Drac3kyc.js → em-CrprMPIW.js} +3 -3
- package/{embed-eX-vyjbe.js → embed-DMAbXCVx.js} +2 -2
- package/{feedback-DhE5ZszX.js → feedback-ikfYsf51.js} +4 -4
- package/{figure-GN0sirBO.js → figure-Bsi8oG85.js} +3 -3
- package/{fillPatterns-N9QFaocE.js → fillPatterns-o8iy0sP3.js} +1 -1
- package/{footnote-Lq6OSVPA.js → footnote-DB5VIQtW.js} +3 -3
- package/{fractionInput-Ds3Q4iDt.js → fractionInput-BlYcirDm.js} +4 -4
- package/{graph-3R7C5cfM.js → graph-CzIHr24I.js} +6 -6
- package/{hint-7qQqMG7S.js → hint-49RJ4fJX.js} +4 -4
- package/{hr-Dmu8wzGU.js → hr-Dm7qj5dF.js} +2 -2
- package/{image-Bc0G2MtM.js → image-C6I50qsx.js} +7 -7
- package/{index-BGpr8vdT.js → index-JfStC2sR.js} +1 -1
- package/{index.es-DZph8YfV.js → index.es-B5c7aVtr.js} +1 -1
- package/index.js +1 -1
- package/{label-BBeVslu0.js → label-BJWGc5uw.js} +6 -6
- package/{labelWithLatex-CKfa0Ss3.js → labelWithLatex-BaRabWVZ.js} +1 -1
- package/{legend-MGE0n882.js → legend-BXoIRWPD.js} +4 -4
- package/{line-CWRKiDi-.js → line-Cg4ShxTz.js} +5 -5
- package/{lineSegment-CPHVL1Lq.js → lineSegment-hNwK2hsc.js} +4 -4
- package/{list-BzRIdAAK.js → list-CQTXv4FP.js} +4 -4
- package/{lq-BcMgWtU1.js → lq-BatnPWGT.js} +2 -2
- package/{lsq-ApHtZGB1.js → lsq-B9ordhmD.js} +2 -2
- package/{markupRenderer-OMnWKMCh.js → markupRenderer-DBCx6EX_.js} +1 -1
- package/{math-BBeeZQxo.js → math-B5hpOW9-.js} +6 -6
- package/{mathInput-gz7Powg7.js → mathInput-Aj9BWdJk.js} +5 -5
- package/{matrixInput-B0dE9Yf-.js → matrixInput-B29WjEkr.js} +4 -4
- package/{mdash-CKo8Hq6y.js → mdash-3qcZ92p7.js} +2 -2
- package/{nbsp-B0g0yKGD.js → nbsp-BAoRPv2r.js} +2 -2
- package/{ndash-D8g5dK9R.js → ndash-Dw-USMRq.js} +2 -2
- package/{number-C4dwUepQ.js → number-BM2f5HSD.js} +6 -6
- package/{orbitalDiagram-CkUFCUhH.js → orbitalDiagram-DzTPPpQi.js} +2 -2
- package/{orbitalDiagramInput-CA7ALRKw.js → orbitalDiagramInput-BeTursfi.js} +2 -2
- package/{p-dNesGl7y.js → p-BW8xHyx2.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-dzc6Bz66.js → paginatorControls-OETLghCG.js} +2 -2
- package/{pegboard-BuJhwqJ3.js → pegboard-B1GM0ABK.js} +4 -4
- package/{point--JI4dgT_.js → point-CPttFfZz.js} +5 -5
- package/{polygon-CeviWAsR.js → polygon-V1vpI61u.js} +5 -5
- package/{polyline-BzOg4xJX.js → polyline-DVCO1i5w.js} +4 -4
- package/{pre-Di8czc9f.js → pre-3uAzzLKW.js} +3 -3
- package/{prefigure-DfRAL724.js → prefigure-D03S9bOi.js} +1 -1
- package/{pretzel-ruve715s.js → pretzel-Bq-VxedX.js} +4 -4
- package/{q-Znh7xskp.js → q-BLQ1W1_T.js} +3 -3
- package/{ray-DrR0bWfB.js → ray-BkDCQnP3.js} +4 -4
- package/{ref-BfWemFs1.js → ref-TZAHMM8s.js} +2 -2
- package/{regionBetweenCurveXAxis-Cr2DS7Kb.js → regionBetweenCurveXAxis-DQ5BnwzU.js} +5 -5
- package/{regionBetweenCurves-ByK91Am_.js → regionBetweenCurves-CiotMNXF.js} +5 -5
- package/{row-SSPe5IvC.js → row-CwSzBQDR.js} +2 -2
- package/{rq-Df9PrY5-.js → rq-BGCb_4TP.js} +2 -2
- package/{rsq-BdUrtv5F.js → rsq-BKan60lP.js} +2 -2
- package/{section-ELnhvmGD.js → section-DoIdLwXY.js} +5 -5
- package/{sha256-C0vj3HDn-DRhnsFBS.js → sha256-C0vj3HDn-kwD8I0Br.js} +1 -1
- package/{sideBySide-CZYA_QoX.js → sideBySide-Ceiw05Ta.js} +2 -2
- package/{slider-DxlnPFzu.js → slider-DZl588DU.js} +3 -3
- package/{solution-CXXW3-MF.js → solution-Cust6iDD.js} +4 -4
- package/{spreadsheet-DdW4FWWh.js → spreadsheet-Bvk3Ranp.js} +2 -2
- package/{sq-CgiPY-JT.js → sq-BfIVoseF.js} +3 -3
- package/{subsetOfRealsInput-Cxhq6vJJ.js → subsetOfRealsInput-CVmF_q1p.js} +2 -2
- package/{summaryStatistics-D8qTNe4c.js → summaryStatistics-DDPla-1v.js} +2 -2
- package/{table-Ke5_0h4M.js → table-CQLwh6QP.js} +2 -2
- package/{tabular-UjhV3ogI.js → tabular-DsN43g34.js} +2 -2
- package/{tag-DWmzB0Xe.js → tag-Cdb96Wzz.js} +2 -2
- package/{text-D-W887rc.js → text-DNvU-2P_.js} +6 -6
- package/{textInput-BY2Md0ON.js → textInput-uQdxxKXT.js} +6 -6
- package/{tooltip-provider-BNqQrZ2M.js → tooltip-provider-CDOusxAp.js} +1 -1
- package/{useAnchoredGraphDragHandler-CI_PqnWq.js → useAnchoredGraphDragHandler-BoZvihO4.js} +1 -1
- package/useDoenetRenderer-B72juXfz.js +114 -0
- package/{useSubmitActionWithDelay-LSS6yd10.js → useSubmitActionWithDelay-Dt9JKy0v.js} +2 -2
- package/{vector-COavI6aB.js → vector-D5la2Csg.js} +5 -5
- package/{video-C6ogIfeH.js → video-wzYkKkvI.js} +4 -4
- package/useDoenetRenderer-BN0elJwP.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-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
|
-
};
|