@doenet/doenetml 0.7.20-dev.301 → 0.7.20-dev.302
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-DM4a6oHW.js → AnswerResponseButton-BO0mjfTu.js} +2 -2
- package/{Description-CNHIKFoN.js → Description-CIlAv8bu.js} +1 -1
- package/{GraphFrame-DKgYEFNT.js → GraphFrame-BID-Shos.js} +2 -2
- package/{JSXGraphRenderer-UkH1CcXh.js → JSXGraphRenderer-fZ9n_wcE.js} +1 -1
- package/{NonInlineMediaWrapper-PFKgKoQL.js → NonInlineMediaWrapper-DSVa-hHQ.js} +1 -1
- package/{_error-DDKiYq-5.js → _error-CdUU1wvT.js} +2 -2
- package/{alert-Bx4AzWP-.js → alert-Ck4gfkDH.js} +3 -3
- package/{angle-8h4fj48A.js → angle-BxCiNNoF.js} +6 -6
- package/{answer-C9CFP9ka.js → answer-DVvoi5Pj.js} +5 -5
- package/{asList-aPHQi5Nd.js → asList-D1FsvW51.js} +2 -2
- package/{blockQuote-D33tfU-f.js → blockQuote-BRkpMxql.js} +3 -3
- package/{boolean-BwUlNwl4.js → boolean-064eFj4d.js} +2 -2
- package/{booleanInput-C8g-brQJ.js → booleanInput-CjktzSDs.js} +6 -6
- package/{br-D8CQLLx4.js → br-4zeNZPkz.js} +2 -2
- package/{button-CF8C2ry5.js → button-C79xS5bM.js} +4 -4
- package/{c-BNocXy12.js → c-iuhKL5Pi.js} +3 -3
- package/{cell-Kgwn4sDS.js → cell-MRePLKB8.js} +3 -3
- package/{choiceInput-JdAvGY0k.js → choiceInput-W4UEwjP2.js} +4 -4
- package/{circle-DLry40OT.js → circle-MQRc5DQh.js} +5 -5
- package/{cobwebPolyline-B4JTFowV.js → cobwebPolyline-CA1zGwgK.js} +4 -4
- package/{codeEditor-FQ2jK3CN.js → codeEditor-DCbYDiig.js} +2 -2
- package/{composites-dMz4m52O.js → composites-9MMkXJiM.js} +1 -1
- package/{containerBlock-CSewnBnH.js → containerBlock-DxnfLg_j.js} +4 -4
- package/{containerInline-CUi4DgJh.js → containerInline-w1pNxkDJ.js} +4 -4
- package/{curve-BZzR-sjb.js → curve-BujnqxLv.js} +4 -4
- package/{doenetml-z8RlzWPI.js → doenetml-DaS5Qb5P.js} +4 -4
- package/doenetml-inline-worker.js +2 -2
- package/{ellipsis-BbO-EfB4.js → ellipsis-DEINO79i.js} +2 -2
- package/{em-CS99vQ7t.js → em-EPP3uxRz.js} +3 -3
- package/{embed-DqM8Wi85.js → embed-DGuNx-QZ.js} +2 -2
- package/{feedback-D-xH9rSs.js → feedback-BA9wOpSN.js} +4 -4
- package/{figure-BuBwpCjh.js → figure-CprF1cwb.js} +3 -3
- package/{fillPatterns-DdtUUOND.js → fillPatterns-DwwQDFtF.js} +1 -1
- package/{footnote-BCu3S78k.js → footnote-CZiXf2be.js} +3 -3
- package/{fractionInput-CZZuKrF_.js → fractionInput-4CNHjqNt.js} +4 -4
- package/{graph-AZJbUlAI.js → graph-CkR-509M.js} +6 -6
- package/{hint-5Bc-hhgS.js → hint-mHO9iX0_.js} +4 -4
- package/{hr-DaZ3-BWu.js → hr-CDheDl11.js} +2 -2
- package/{image-BadwQvui.js → image-C2_rPzQS.js} +7 -7
- package/{index-DQ_IGGYL.js → index-DcvlF--R.js} +1 -1
- package/{index.es-DpCR_AB_.js → index.es-15WdlqCq.js} +1 -1
- package/index.js +1 -1
- package/{label-CPjyx4YA.js → label-D-_Pv5A7.js} +6 -6
- package/{labelWithLatex-DjLovTzQ.js → labelWithLatex-vy1L_-n8.js} +1 -1
- package/{legend-Ciu_KJck.js → legend-3fX1STF_.js} +4 -4
- package/{line-2NV-JzWI.js → line-DE78uIl0.js} +5 -5
- package/{lineSegment-_IEng_VN.js → lineSegment-FQzkBEWw.js} +4 -4
- package/{list-Crh8wZGX.js → list-CsOz9Q07.js} +4 -4
- package/{lq-MeqrJCRQ.js → lq-DUhAhz1S.js} +2 -2
- package/{lsq-C8FO-gWc.js → lsq-JHngmQ8d.js} +2 -2
- package/{markupRenderer-BpzDcmlG.js → markupRenderer-BPsNmCSJ.js} +1 -1
- package/{math-BhmQZk1P.js → math-DR8kw9zI.js} +6 -6
- package/{mathInput-C2qKGkpA.js → mathInput-FC_heI_y.js} +5 -5
- package/{matrixInput-Bf68naN_.js → matrixInput-DusQrEcJ.js} +4 -4
- package/{mdash-BqUoG5tv.js → mdash-DA6wAOcT.js} +2 -2
- package/{nbsp-BbHxKw3w.js → nbsp-B_NZ7IG_.js} +2 -2
- package/{ndash-Lb9m4XfK.js → ndash-D7rlRK40.js} +2 -2
- package/{number-BjRZ0Cl5.js → number-CMe6bOZk.js} +6 -6
- package/{orbitalDiagram-BINGRvvC.js → orbitalDiagram-BA47xxGV.js} +2 -2
- package/{orbitalDiagramInput-BnmQOagl.js → orbitalDiagramInput-oMl3bY_k.js} +2 -2
- package/{p-BjUPpCaN.js → p-C5Jvb_Ar.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-BlzSj8jj.js → paginatorControls-CGYysbUN.js} +2 -2
- package/{pegboard-CF3Jl6hU.js → pegboard-DmQzvjaD.js} +4 -4
- package/{point-DlHxWdX7.js → point-C1MhpKGw.js} +5 -5
- package/{polygon-BJQvz4t1.js → polygon-Cwe7dllI.js} +5 -5
- package/{polyline-Cb5AgDXI.js → polyline-DB8l2n4m.js} +4 -4
- package/{pre-DYJ5iGvj.js → pre-BODs1Jo-.js} +3 -3
- package/{prefigure-DFtvdC3R.js → prefigure-DfscSx4r.js} +1 -1
- package/{pretzel-CL6RNGnU.js → pretzel-D36tf8I8.js} +4 -4
- package/{q-0Zwe6b9o.js → q-BUTIdt1Y.js} +3 -3
- package/{ray-Cd0B9TYn.js → ray-BRfUWhvH.js} +4 -4
- package/{ref-83cRLgI-.js → ref-C07pGhdZ.js} +2 -2
- package/{regionBetweenCurveXAxis-_1JCx76a.js → regionBetweenCurveXAxis-7ehc5SQv.js} +5 -5
- package/{regionBetweenCurves-BzRKJfDD.js → regionBetweenCurves-FX1TsHA1.js} +4 -4
- package/{row-B9r7X2oJ.js → row-BaLZz3ro.js} +2 -2
- package/{rq-CsxyDjZU.js → rq-kXPHE50A.js} +2 -2
- package/{rsq-B26lhQvu.js → rsq-B_r7xIJf.js} +2 -2
- package/{section-BP5EL_RX.js → section-Dll4Wlc4.js} +5 -5
- package/{sha256-Cki_HER3-rhCoKzrD.js → sha256-Cki_HER3-NgvLjtCM.js} +1 -1
- package/{sideBySide-DzuV_FDI.js → sideBySide-BBGSUFLa.js} +2 -2
- package/{slider-DmwnnaZk.js → slider-DU2REDmI.js} +3 -3
- package/{solution-DsLOxcU_.js → solution-CjP9LnzU.js} +4 -4
- package/{spreadsheet-AY5e3fWe.js → spreadsheet-BgRH5tiY.js} +2 -2
- package/{sq-5sadifZU.js → sq-DCezoZQy.js} +3 -3
- package/{subsetOfRealsInput-R4WTyzd3.js → subsetOfRealsInput-zLfyjzr-.js} +2 -2
- package/{summaryStatistics-BNxkeHp1.js → summaryStatistics-CsWM5tO0.js} +2 -2
- package/{table-BhVPlWRk.js → table-C2USkehO.js} +2 -2
- package/{tabular-Dir1u3au.js → tabular-CYpxsY1a.js} +2 -2
- package/{tag-CCZtd_rl.js → tag-mLVDR3TU.js} +2 -2
- package/{text-BcHonvFh.js → text-75fKiTYJ.js} +6 -6
- package/{textInput-lZtvG2Xv.js → textInput-CKDSC8BL.js} +6 -6
- package/{tooltip-provider-PUupfF3l.js → tooltip-provider-CVfPXVDm.js} +1 -1
- package/{useAnchoredGraphDragHandler-BRIzZ5N0.js → useAnchoredGraphDragHandler-FQ0c3B8O.js} +1 -1
- package/useDoenetRenderer-CAKR0b6F.js +114 -0
- package/{useSubmitActionWithDelay-DNG_4j8Q.js → useSubmitActionWithDelay-DdcVY0AN.js} +2 -2
- package/{vector-Cw-TlaU_.js → vector-mVheZ7o0.js} +5 -5
- package/{video-DQ11HBIa.js → video-PuN9uzD8.js} +4 -4
- package/useDoenetRenderer-gI6qC2I3.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-DaS5Qb5P.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { j as jxg, e as syncLineFamilyVisibility, s as syncLayer, b as syncLineStrokeStyle, a as syncWithLabelToggle, c as syncLabelStrokeColor, f as applyLineFamilyLabelPlacement, g as buildLineFamilyLabelAttributes, h as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
5
|
-
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { j as jxg, e as syncLineFamilyVisibility, s as syncLayer, b as syncLineStrokeStyle, a as syncWithLabelToggle, c as syncLabelStrokeColor, f as applyLineFamilyLabelPlacement, g as buildLineFamilyLabelAttributes, h as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-fZ9n_wcE.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CAKR0b6F.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-CkR-509M.js";
|
|
6
6
|
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-WXpVD4ud.js";
|
|
7
7
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DeK-TkFS.js";
|
|
8
8
|
import { p as pointerEventToUserCoords } from "./dragThreshold-1Y9NDMT1.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as DocContext, j as jsxRuntimeExports } from "./doenetml-DaS5Qb5P.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CAKR0b6F.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-DaS5Qb5P.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { j as jxg } 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 } from "./JSXGraphRenderer-fZ9n_wcE.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CAKR0b6F.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-CkR-509M.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-DwwQDFtF.js";
|
|
7
7
|
const regionBetweenCurveXAxis = React__default.memo(function RegionBetweenCurveXAxis(props) {
|
|
8
8
|
let { id, SVs } = useDoenetRenderer(props);
|
|
9
9
|
RegionBetweenCurveXAxis.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { k as DocContext, o as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as DocContext, o as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-DaS5Qb5P.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-CAKR0b6F.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-CkR-509M.js";
|
|
5
5
|
import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
|
|
6
|
-
import { g as getPatternFillAttributes } from "./fillPatterns-
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-DwwQDFtF.js";
|
|
7
7
|
const regionBetweenCurves = React__default.memo(function RegionBetweenCurves(props) {
|
|
8
8
|
let { id, SVs } = useDoenetRenderer(props);
|
|
9
9
|
RegionBetweenCurves.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-DaS5Qb5P.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CAKR0b6F.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-DaS5Qb5P.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CAKR0b6F.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-DaS5Qb5P.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CAKR0b6F.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-DaS5Qb5P.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-15WdlqCq.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-CAKR0b6F.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-9MMkXJiM.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-DdcVY0AN.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-DaS5Qb5P.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CAKR0b6F.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-DaS5Qb5P.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-CAKR0b6F.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-vy1L_-n8.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-DaS5Qb5P.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-CAKR0b6F.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-15WdlqCq.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-9MMkXJiM.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-DaS5Qb5P.js";
|
|
2
2
|
import React__default, { forwardRef, useId, useRef, useCallback, useMemo, createContext as createContext$1, useEffect, Children, useImperativeHandle, Fragment, useContext, useState } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CAKR0b6F.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-DaS5Qb5P.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-CAKR0b6F.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-BPsNmCSJ.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-DaS5Qb5P.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CAKR0b6F.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-DaS5Qb5P.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CAKR0b6F.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-DaS5Qb5P.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CAKR0b6F.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-DaS5Qb5P.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CAKR0b6F.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-DaS5Qb5P.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CAKR0b6F.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-DaS5Qb5P.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-fZ9n_wcE.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-CkR-509M.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CAKR0b6F.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-FesVg1vs.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-W4UEwjP2.js";
|
|
8
8
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DeK-TkFS.js";
|
|
9
9
|
import { u as useDraggableRefs, a as useJSXGraphCleanup } from "./useJSXGraphCleanup-CX91oVW8.js";
|
|
10
|
-
import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-
|
|
10
|
+
import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-FQ0c3B8O.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-DaS5Qb5P.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-fZ9n_wcE.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CAKR0b6F.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-CkR-509M.js";
|
|
7
7
|
import { g as getPositionFromAnchorByCoordinate, P as POINTER_DRAG_THRESHOLD } from "./graph-FesVg1vs.js";
|
|
8
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
9
|
-
import { D as DescriptionPopover } from "./Description-
|
|
8
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-DdcVY0AN.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-CIlAv8bu.js";
|
|
10
10
|
import { a as addValidationStateToShortDescription } from "./validationState-CVwSJZpB.js";
|
|
11
11
|
function TextInput(props) {
|
|
12
12
|
let { id, SVs, children, actions, ignoreUpdate, callAction } = useDoenetRenderer(props);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a2 as createStoreContext, a3 as HovercardScopedContextProvider, a4 as HovercardContextProvider, a5 as createDialogComponent, I as forwardRef2, J as createHook, K as createElement, N as invariant, a6 as useWrapElement, j as jsxRuntimeExports, a7 as useHovercard, a8 as isFalsyBooleanCallback, a9 as contains, aa as sync, ab as chain, ac as createStore, ad as useEvent, ae as useHovercardAnchor, af as createHovercardStore, ag as defaultValue, ah as useStore, ai as useStoreProps, aj as useHovercardStoreProps } from "./doenetml-
|
|
1
|
+
import { a2 as createStoreContext, a3 as HovercardScopedContextProvider, a4 as HovercardContextProvider, a5 as createDialogComponent, I as forwardRef2, J as createHook, K as createElement, N as invariant, a6 as useWrapElement, j as jsxRuntimeExports, a7 as useHovercard, a8 as isFalsyBooleanCallback, a9 as contains, aa as sync, ab as chain, ac as createStore, ad as useEvent, ae as useHovercardAnchor, af as createHovercardStore, ag as defaultValue, ah as useStore, ai as useStoreProps, aj as useHovercardStoreProps } from "./doenetml-DaS5Qb5P.js";
|
|
2
2
|
import { useRef, useEffect } from "react";
|
|
3
3
|
var ctx = createStoreContext(
|
|
4
4
|
[HovercardContextProvider],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as removeJXGEventHandlers, L as LINE_FAMILY_EVENTS, j as jxg } from "./JSXGraphRenderer-
|
|
1
|
+
import { r as removeJXGEventHandlers, L as LINE_FAMILY_EVENTS, j as jxg } from "./JSXGraphRenderer-fZ9n_wcE.js";
|
|
2
2
|
import { e as exceededDragThreshold, p as pointerEventToUserCoords } from "./dragThreshold-1Y9NDMT1.js";
|
|
3
3
|
function attachAnchoredGraphDragHandlers(params) {
|
|
4
4
|
const {
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { q as useAppSelector, v as mainSlice, w as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-DaS5Qb5P.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-BID-Shos.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-fZ9n_wcE.js").then((n) => n.i), "./renderers/_error.tsx": () => import("./_error-CdUU1wvT.js"), "./renderers/alert.tsx": () => import("./alert-Ck4gfkDH.js"), "./renderers/angle.tsx": () => import("./angle-BxCiNNoF.js"), "./renderers/answer.tsx": () => import("./answer-DVvoi5Pj.js"), "./renderers/asList.tsx": () => import("./asList-D1FsvW51.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-BRkpMxql.js"), "./renderers/boolean.tsx": () => import("./boolean-064eFj4d.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-CjktzSDs.js"), "./renderers/br.tsx": () => import("./br-4zeNZPkz.js"), "./renderers/button.tsx": () => import("./button-C79xS5bM.js"), "./renderers/c.tsx": () => import("./c-iuhKL5Pi.js"), "./renderers/cell.tsx": () => import("./cell-MRePLKB8.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-W4UEwjP2.js"), "./renderers/circle.tsx": () => import("./circle-MQRc5DQh.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-CA1zGwgK.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-DCbYDiig.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-DxnfLg_j.js"), "./renderers/containerInline.tsx": () => import("./containerInline-w1pNxkDJ.js"), "./renderers/curve.tsx": () => import("./curve-BujnqxLv.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-DEINO79i.js"), "./renderers/em.tsx": () => import("./em-EPP3uxRz.js"), "./renderers/embed.tsx": () => import("./embed-DGuNx-QZ.js"), "./renderers/feedback.tsx": () => import("./feedback-BA9wOpSN.js"), "./renderers/figure.tsx": () => import("./figure-CprF1cwb.js"), "./renderers/footnote.tsx": () => import("./footnote-CZiXf2be.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-4CNHjqNt.js"), "./renderers/graph.tsx": () => import("./graph-CkR-509M.js"), "./renderers/hint.tsx": () => import("./hint-mHO9iX0_.js"), "./renderers/hr.tsx": () => import("./hr-CDheDl11.js"), "./renderers/image.tsx": () => import("./image-C2_rPzQS.js"), "./renderers/label.tsx": () => import("./label-D-_Pv5A7.js"), "./renderers/legend.tsx": () => import("./legend-3fX1STF_.js"), "./renderers/line.tsx": () => import("./line-DE78uIl0.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-FQzkBEWw.js"), "./renderers/list.tsx": () => import("./list-CsOz9Q07.js"), "./renderers/lq.tsx": () => import("./lq-DUhAhz1S.js"), "./renderers/lsq.tsx": () => import("./lsq-JHngmQ8d.js"), "./renderers/math.tsx": () => import("./math-DR8kw9zI.js"), "./renderers/mathInput.tsx": () => import("./mathInput-FC_heI_y.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-DusQrEcJ.js"), "./renderers/mdash.tsx": () => import("./mdash-DA6wAOcT.js"), "./renderers/nbsp.tsx": () => import("./nbsp-B_NZ7IG_.js"), "./renderers/ndash.tsx": () => import("./ndash-D7rlRK40.js"), "./renderers/number.tsx": () => import("./number-CMe6bOZk.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-BA47xxGV.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-oMl3bY_k.js"), "./renderers/p.tsx": () => import("./p-C5Jvb_Ar.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-CGYysbUN.js"), "./renderers/pegboard.tsx": () => import("./pegboard-DmQzvjaD.js"), "./renderers/point.tsx": () => import("./point-C1MhpKGw.js"), "./renderers/polygon.tsx": () => import("./polygon-Cwe7dllI.js"), "./renderers/polyline.tsx": () => import("./polyline-DB8l2n4m.js"), "./renderers/pre.tsx": () => import("./pre-BODs1Jo-.js"), "./renderers/prefigure.tsx": () => import("./prefigure-DfscSx4r.js"), "./renderers/pretzel.tsx": () => import("./pretzel-D36tf8I8.js"), "./renderers/q.tsx": () => import("./q-BUTIdt1Y.js"), "./renderers/ray.tsx": () => import("./ray-BRfUWhvH.js"), "./renderers/ref.tsx": () => import("./ref-C07pGhdZ.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-7ehc5SQv.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-FX1TsHA1.js"), "./renderers/row.tsx": () => import("./row-BaLZz3ro.js"), "./renderers/rq.tsx": () => import("./rq-kXPHE50A.js"), "./renderers/rsq.tsx": () => import("./rsq-B_r7xIJf.js"), "./renderers/section.tsx": () => import("./section-Dll4Wlc4.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-BBGSUFLa.js"), "./renderers/slider.tsx": () => import("./slider-DU2REDmI.js"), "./renderers/solution.tsx": () => import("./solution-CjP9LnzU.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-BgRH5tiY.js"), "./renderers/sq.tsx": () => import("./sq-DCezoZQy.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-zLfyjzr-.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-CsWM5tO0.js"), "./renderers/table.tsx": () => import("./table-C2USkehO.js"), "./renderers/tabular.tsx": () => import("./tabular-CYpxsY1a.js"), "./renderers/tag.tsx": () => import("./tag-mLVDR3TU.js"), "./renderers/text.tsx": () => import("./text-75fKiTYJ.js"), "./renderers/textInput.tsx": () => import("./textInput-CKDSC8BL.js"), "./renderers/vector.tsx": () => import("./vector-mVheZ7o0.js"), "./renderers/video.tsx": () => import("./video-PuN9uzD8.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-DaS5Qb5P.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-15WdlqCq.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-DaS5Qb5P.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { j as jxg, s as syncLayer, d as syncVisPropValues, b as syncLineStrokeStyle, a as syncWithLabelToggle, c as syncLabelStrokeColor, f as applyLineFamilyLabelPlacement, g as buildLineFamilyLabelAttributes, h as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-
|
|
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, d as syncVisPropValues, b as syncLineStrokeStyle, a as syncWithLabelToggle, c as syncLabelStrokeColor, f as applyLineFamilyLabelPlacement, g as buildLineFamilyLabelAttributes, h as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-fZ9n_wcE.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CAKR0b6F.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-CkR-509M.js";
|
|
6
|
+
import { ChoiceInputInlineContext } from "./choiceInput-W4UEwjP2.js";
|
|
7
7
|
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-WXpVD4ud.js";
|
|
8
8
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DeK-TkFS.js";
|
|
9
9
|
import { p as pointerEventToUserCoords } from "./dragThreshold-1Y9NDMT1.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-DaS5Qb5P.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-CAKR0b6F.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-CIlAv8bu.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-DSVa-hHQ.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-z8RlzWPI.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-DKgYEFNT.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-UkH1CcXh.js").then((n) => n.i), "./renderers/_error.tsx": () => import("./_error-DDKiYq-5.js"), "./renderers/alert.tsx": () => import("./alert-Bx4AzWP-.js"), "./renderers/angle.tsx": () => import("./angle-8h4fj48A.js"), "./renderers/answer.tsx": () => import("./answer-C9CFP9ka.js"), "./renderers/asList.tsx": () => import("./asList-aPHQi5Nd.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-D33tfU-f.js"), "./renderers/boolean.tsx": () => import("./boolean-BwUlNwl4.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-C8g-brQJ.js"), "./renderers/br.tsx": () => import("./br-D8CQLLx4.js"), "./renderers/button.tsx": () => import("./button-CF8C2ry5.js"), "./renderers/c.tsx": () => import("./c-BNocXy12.js"), "./renderers/cell.tsx": () => import("./cell-Kgwn4sDS.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-JdAvGY0k.js"), "./renderers/circle.tsx": () => import("./circle-DLry40OT.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-B4JTFowV.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-FQ2jK3CN.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-CSewnBnH.js"), "./renderers/containerInline.tsx": () => import("./containerInline-CUi4DgJh.js"), "./renderers/curve.tsx": () => import("./curve-BZzR-sjb.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-BbO-EfB4.js"), "./renderers/em.tsx": () => import("./em-CS99vQ7t.js"), "./renderers/embed.tsx": () => import("./embed-DqM8Wi85.js"), "./renderers/feedback.tsx": () => import("./feedback-D-xH9rSs.js"), "./renderers/figure.tsx": () => import("./figure-BuBwpCjh.js"), "./renderers/footnote.tsx": () => import("./footnote-BCu3S78k.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-CZZuKrF_.js"), "./renderers/graph.tsx": () => import("./graph-AZJbUlAI.js"), "./renderers/hint.tsx": () => import("./hint-5Bc-hhgS.js"), "./renderers/hr.tsx": () => import("./hr-DaZ3-BWu.js"), "./renderers/image.tsx": () => import("./image-BadwQvui.js"), "./renderers/label.tsx": () => import("./label-CPjyx4YA.js"), "./renderers/legend.tsx": () => import("./legend-Ciu_KJck.js"), "./renderers/line.tsx": () => import("./line-2NV-JzWI.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-_IEng_VN.js"), "./renderers/list.tsx": () => import("./list-Crh8wZGX.js"), "./renderers/lq.tsx": () => import("./lq-MeqrJCRQ.js"), "./renderers/lsq.tsx": () => import("./lsq-C8FO-gWc.js"), "./renderers/math.tsx": () => import("./math-BhmQZk1P.js"), "./renderers/mathInput.tsx": () => import("./mathInput-C2qKGkpA.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-Bf68naN_.js"), "./renderers/mdash.tsx": () => import("./mdash-BqUoG5tv.js"), "./renderers/nbsp.tsx": () => import("./nbsp-BbHxKw3w.js"), "./renderers/ndash.tsx": () => import("./ndash-Lb9m4XfK.js"), "./renderers/number.tsx": () => import("./number-BjRZ0Cl5.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-BINGRvvC.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-BnmQOagl.js"), "./renderers/p.tsx": () => import("./p-BjUPpCaN.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-BlzSj8jj.js"), "./renderers/pegboard.tsx": () => import("./pegboard-CF3Jl6hU.js"), "./renderers/point.tsx": () => import("./point-DlHxWdX7.js"), "./renderers/polygon.tsx": () => import("./polygon-BJQvz4t1.js"), "./renderers/polyline.tsx": () => import("./polyline-Cb5AgDXI.js"), "./renderers/pre.tsx": () => import("./pre-DYJ5iGvj.js"), "./renderers/prefigure.tsx": () => import("./prefigure-DFtvdC3R.js"), "./renderers/pretzel.tsx": () => import("./pretzel-CL6RNGnU.js"), "./renderers/q.tsx": () => import("./q-0Zwe6b9o.js"), "./renderers/ray.tsx": () => import("./ray-Cd0B9TYn.js"), "./renderers/ref.tsx": () => import("./ref-83cRLgI-.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-_1JCx76a.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-BzRKJfDD.js"), "./renderers/row.tsx": () => import("./row-B9r7X2oJ.js"), "./renderers/rq.tsx": () => import("./rq-CsxyDjZU.js"), "./renderers/rsq.tsx": () => import("./rsq-B26lhQvu.js"), "./renderers/section.tsx": () => import("./section-BP5EL_RX.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-DzuV_FDI.js"), "./renderers/slider.tsx": () => import("./slider-DmwnnaZk.js"), "./renderers/solution.tsx": () => import("./solution-DsLOxcU_.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-AY5e3fWe.js"), "./renderers/sq.tsx": () => import("./sq-5sadifZU.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-R4WTyzd3.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-BNxkeHp1.js"), "./renderers/table.tsx": () => import("./table-BhVPlWRk.js"), "./renderers/tabular.tsx": () => import("./tabular-Dir1u3au.js"), "./renderers/tag.tsx": () => import("./tag-CCZtd_rl.js"), "./renderers/text.tsx": () => import("./text-BcHonvFh.js"), "./renderers/textInput.tsx": () => import("./textInput-lZtvG2Xv.js"), "./renderers/vector.tsx": () => import("./vector-Cw-TlaU_.js"), "./renderers/video.tsx": () => import("./video-DQ11HBIa.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
|
-
};
|