@doenet/doenetml 0.7.20-dev.326 → 0.7.20-dev.328
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-CHTN7tbY.js → AnswerResponseButton-D1HWVJbd.js} +2 -2
- package/{Description-QawLJZMY.js → Description-D2vUMC9d.js} +1 -1
- package/{GraphFrame-BR6c0Los.js → GraphFrame-CxZl2vZY.js} +2 -2
- package/{JSXGraphRenderer-DYL81PEy.js → JSXGraphRenderer-Bti0il7e.js} +1 -1
- package/{NonInlineMediaWrapper-RatdVQnv.js → NonInlineMediaWrapper-IhVTEtlw.js} +1 -1
- package/{_error-By4zSFac.js → _error-CwHrssUl.js} +2 -2
- package/{alert-DDkheZlp.js → alert-BJWMa6gU.js} +3 -3
- package/{angle-LJCEl5dK.js → angle-D9rZrvGM.js} +6 -6
- package/{answer-LbD0GWLf.js → answer-DqBcT9wS.js} +5 -5
- package/{asList-ByCDXjTr.js → asList-C6P18QWt.js} +2 -2
- package/{blockQuote-DsYFde6s.js → blockQuote-C8stpcof.js} +3 -3
- package/{boolean-eohHThqy.js → boolean-mmhSUwE8.js} +2 -2
- package/{booleanInput-nnDpudLj.js → booleanInput-CpejShxC.js} +6 -6
- package/{br-CG7BIbtX.js → br-DybAAYE7.js} +2 -2
- package/{button-B9mNqkp0.js → button-DwZpLVF5.js} +4 -4
- package/{c-DLFC52Qd.js → c-D8GNMHg3.js} +3 -3
- package/{cell-wyffWNoP.js → cell-C41g2LLt.js} +3 -3
- package/{choiceInput-BvTmhxUl.js → choiceInput-CJZIgi3c.js} +4 -4
- package/{circle-HsS7WIks.js → circle-DaJjbbPn.js} +5 -5
- package/{cobwebPolyline-oyjsZON-.js → cobwebPolyline-BYqgx7en.js} +4 -4
- package/{codeEditor-DuYtacPF.js → codeEditor-Cjivwt7T.js} +2 -2
- package/{composites-CUj-rZLh.js → composites-Cv8-RgLN.js} +1 -1
- package/{containerBlock-CCDTXZbI.js → containerBlock-DUHblb7h.js} +4 -4
- package/{containerInline-D0CbulLh.js → containerInline-CFP3mIWv.js} +4 -4
- package/{curve-Cg9-LqCN.js → curve-ChSAueAx.js} +4 -4
- package/{doenetml-HyLzkcvp.js → doenetml-C0IdG-S-.js} +4 -4
- package/doenetml-external-worker.js +2 -2
- package/doenetml-inline-worker.js +2 -2
- package/{ellipsis-8Q1gu9Vi.js → ellipsis-qNJeDbna.js} +2 -2
- package/{em-fkkprsze.js → em-C8tbkJbB.js} +3 -3
- package/{embed-C2P0v_P8.js → embed-C-c5xnrf.js} +2 -2
- package/{feedback-B4uA9Kta.js → feedback-C1Ymkqjp.js} +4 -4
- package/{figure-bGDAt8J4.js → figure-PJez6EyH.js} +3 -3
- package/{fillPatterns-DoE4Og6z.js → fillPatterns-CuIEGF3E.js} +1 -1
- package/{footnote-DYDJB2cN.js → footnote--tCM1r6P.js} +3 -3
- package/{fractionInput-CjtuiA40.js → fractionInput-BjlYZRtE.js} +4 -4
- package/{graph-Blh04T4l.js → graph-C0DR2e_7.js} +6 -6
- package/{hint-Dh2nqEvL.js → hint-BJFgka5s.js} +4 -4
- package/{hr-D5BYs7YI.js → hr-TbVau1BD.js} +2 -2
- package/{image-DgyX-SUD.js → image-xiLomlGM.js} +7 -7
- package/{index-D4Scxlaz.js → index-CKS743gG.js} +1 -1
- package/{index.es-Ux3RBL6a.js → index.es-HfMAzlGs.js} +1 -1
- package/index.js +1 -1
- package/{label-d9Ssz0NR.js → label-CMNR2KnS.js} +6 -6
- package/{labelWithLatex-DOVoCF8N.js → labelWithLatex-D9C8MptR.js} +1 -1
- package/{legend-qBHw_uYr.js → legend-BsLc5bGC.js} +4 -4
- package/{line-CaOtur0p.js → line-DGoHQvqO.js} +5 -5
- package/{lineSegment-nyDx7VO6.js → lineSegment-D1ZefkL3.js} +4 -4
- package/{list-DahRXkTq.js → list-BMou9o7G.js} +4 -4
- package/{lq-viMVXahD.js → lq-sabD9Yv2.js} +2 -2
- package/{lsq-qg_79Ll4.js → lsq-xi5xMRXF.js} +2 -2
- package/{markupRenderer-BW97UKSt.js → markupRenderer-CXbvnQTe.js} +1 -1
- package/{math-BE3AqbQ_.js → math-zJcJlX3H.js} +6 -6
- package/{mathInput-DiOACc11.js → mathInput-CByp2sjq.js} +7 -7
- package/{matrixInput-Dr9jl5SG.js → matrixInput-VPMSZW7r.js} +4 -4
- package/{mdash-5FLEtf7T.js → mdash-DPHPdun6.js} +2 -2
- package/{nbsp-BlTzp8GP.js → nbsp-iYc_w_Gs.js} +2 -2
- package/{ndash-CBwN3UkK.js → ndash-3kT6RCol.js} +2 -2
- package/{number-BXRuSqK6.js → number-asPjI_2Z.js} +6 -6
- package/{orbitalDiagram-DWAYykJY.js → orbitalDiagram-DCt3D4mB.js} +2 -2
- package/{orbitalDiagramInput-MyvKucF1.js → orbitalDiagramInput-V31dE_qc.js} +2 -2
- package/{p-D7shxrGL.js → p-BT_nTX4W.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-DJP-8Xqe.js → paginatorControls-BJpFejQx.js} +2 -2
- package/{pegboard-BNRdTc4b.js → pegboard-NOhwSxAt.js} +4 -4
- package/{point-8qb3YUpN.js → point-CApzWHN1.js} +5 -5
- package/{polygon-CP8g9Xbk.js → polygon-CXnsHzVV.js} +5 -5
- package/{polyline-DVtRVAnm.js → polyline-BnHjnBxZ.js} +4 -4
- package/{pre-D4TyfOc-.js → pre-pAA8DBH_.js} +3 -3
- package/{prefigure-ZYp3ucMl.js → prefigure-D7Pl_Fm9.js} +1 -1
- package/{pretzel-Cg6y-aXi.js → pretzel-p9Fyud4i.js} +4 -4
- package/{q-Db5mHiYo.js → q-Cg7Ify1Z.js} +3 -3
- package/{ray-B1vmKxlk.js → ray-D6ZiGopB.js} +4 -4
- package/{ref-CC_NgS8y.js → ref-DYIEQOU_.js} +2 -2
- package/{regionBetweenCurveXAxis-DOuHrrOr.js → regionBetweenCurveXAxis-CnZUllDD.js} +5 -5
- package/{regionBetweenCurves-BaOXOlTw.js → regionBetweenCurves-DM7Z9soa.js} +5 -5
- package/{row-BYBvIVGp.js → row-BM8_oaC_.js} +2 -2
- package/{rq-DXtGc26O.js → rq-BvKEc0df.js} +2 -2
- package/{rsq-CyGcf4Ec.js → rsq-rD80NBPu.js} +2 -2
- package/{section-C90TRIXY.js → section-CCmLqUkb.js} +5 -5
- package/{sha256-C0vj3HDn-CQhLZyeJ.js → sha256-C0vj3HDn-BnV3FJjJ.js} +1 -1
- package/{sideBySide--BqoIcaE.js → sideBySide-DxgpFK0t.js} +2 -2
- package/{slider-BZzJPR_a.js → slider-B7mSREg8.js} +3 -3
- package/{solution-BcoaLpNs.js → solution-CpTvrgd4.js} +4 -4
- package/{spreadsheet-C_07NpA8.js → spreadsheet-Un1fS94h.js} +2 -2
- package/{sq-C2qbVOTD.js → sq-CrdvH0tB.js} +3 -3
- package/{subsetOfRealsInput-pJ05mb1_.js → subsetOfRealsInput-DMqA5HH0.js} +2 -2
- package/{summaryStatistics-DsmSWGid.js → summaryStatistics-DQWv6Fuc.js} +2 -2
- package/{table-dDiTDlWm.js → table-DBtNH1ae.js} +2 -2
- package/{tabular-7J0jZkHi.js → tabular-Bb78yL5-.js} +2 -2
- package/{tag-ClD8oPEH.js → tag-CnjY-nJf.js} +2 -2
- package/{text-DiRvwBld.js → text-GCOZxWPf.js} +6 -6
- package/{textInput-Bc4dh7Iq.js → textInput-C-pII18x.js} +6 -6
- package/{tooltip-provider-lmN-TNRr.js → tooltip-provider-BI8ky480.js} +1 -1
- package/{useAnchoredGraphDragHandler-73UeBLvh.js → useAnchoredGraphDragHandler-DlkSrt8h.js} +1 -1
- package/useDoenetRenderer-Bych2LT6.js +114 -0
- package/{useSubmitActionWithDelay-gWMal9WZ.js → useSubmitActionWithDelay-BcxX9Cgj.js} +2 -2
- package/{vector-DPeavdfA.js → vector-5ElsNU_X.js} +5 -5
- package/{video-KioxsC-0.js → video-DYfOM2CY.js} +4 -4
- package/useDoenetRenderer-CmQEaH9-.js +0 -114
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.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-Bych2LT6.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-CXbvnQTe.js";
|
|
5
5
|
const q = React__default.memo(function Q(props) {
|
|
6
6
|
const { SVs, children } = useDoenetRenderer(props);
|
|
7
7
|
const body = renderMarkupBody({ SVs, children });
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as DocContext, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { l as DocContext, k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.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-Bti0il7e.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Bych2LT6.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-C0DR2e_7.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 { l as DocContext, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { l as DocContext, k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Bych2LT6.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 { l as DocContext, q as createFunctionFromDefinition, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { l as DocContext, q as createFunctionFromDefinition, k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.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-Bti0il7e.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Bych2LT6.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-C0DR2e_7.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-CuIEGF3E.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 { l as DocContext, q as createFunctionFromDefinition, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { l as DocContext, q as createFunctionFromDefinition, k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.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-Bych2LT6.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-C0DR2e_7.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-CuIEGF3E.js";
|
|
7
|
+
import { b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-Bti0il7e.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 { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Bych2LT6.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 { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Bych2LT6.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 { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Bych2LT6.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 { l as DocContext, p as cesc, u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { l as DocContext, p as cesc, u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.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-HfMAzlGs.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-Bych2LT6.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-Cv8-RgLN.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-BcxX9Cgj.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, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Bych2LT6.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 { k as jsxRuntimeExports, E as ActionButtonGroup, F as ActionButton, o as Context } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports, E as ActionButtonGroup, F as ActionButton, o as Context } from "./doenetml-C0IdG-S-.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-Bych2LT6.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-D9C8MptR.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, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.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-Bych2LT6.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-HfMAzlGs.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-Cv8-RgLN.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 { l as DocContext, u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { l as DocContext, u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.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-Bych2LT6.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 { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.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-Bych2LT6.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-CXbvnQTe.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, k as jsxRuntimeExports, G as ToggleButtonGroup, T as ToggleButton, E as ActionButtonGroup, F as ActionButton } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports, G as ToggleButtonGroup, T as ToggleButton, E as ActionButtonGroup, F as ActionButton } from "./doenetml-C0IdG-S-.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Bych2LT6.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, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Bych2LT6.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, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Bych2LT6.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, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Bych2LT6.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 { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Bych2LT6.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 { l as DocContext, o as Context, k as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-
|
|
1
|
+
import { l as DocContext, o as Context, k as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-C0IdG-S-.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-Bti0il7e.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-C0DR2e_7.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Bych2LT6.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-CJZIgi3c.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-DlkSrt8h.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 { o as Context, k as jsxRuntimeExports, M as MathJax } from "./doenetml-
|
|
1
|
+
import { o as Context, k as jsxRuntimeExports, M as MathJax } from "./doenetml-C0IdG-S-.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-Bti0il7e.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Bych2LT6.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-C0DR2e_7.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-BcxX9Cgj.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-D2vUMC9d.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 { a4 as createStoreContext, a5 as HovercardScopedContextProvider, a6 as HovercardContextProvider, a7 as createDialogComponent, J as forwardRef, K as createElement, L as createHook, O as invariant, a8 as useWrapElement, k as jsxRuntimeExports, P as useStoreState, a9 as useHovercard, aa as isFalsyBooleanCallback, ab as contains, ac as sync, ad as chain, ae as useEvent, af as useHovercardAnchor, ag as createStore, ah as createHovercardStore, ai as defaultValue, aj as useStore, ak as useStoreProps, al as useHovercardStoreProps } from "./doenetml-
|
|
1
|
+
import { a4 as createStoreContext, a5 as HovercardScopedContextProvider, a6 as HovercardContextProvider, a7 as createDialogComponent, J as forwardRef, K as createElement, L as createHook, O as invariant, a8 as useWrapElement, k as jsxRuntimeExports, P as useStoreState, a9 as useHovercard, aa as isFalsyBooleanCallback, ab as contains, ac as sync, ad as chain, ae as useEvent, af as useHovercardAnchor, ag as createStore, ah as createHovercardStore, ai as defaultValue, aj as useStore, ak as useStoreProps, al as useHovercardStoreProps } from "./doenetml-C0IdG-S-.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-Bti0il7e.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 { w as useAppSelector, x as mainSlice, y as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-C0IdG-S-.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-CxZl2vZY.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-Bti0il7e.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-CwHrssUl.js"), "./renderers/alert.tsx": () => import("./alert-BJWMa6gU.js"), "./renderers/angle.tsx": () => import("./angle-D9rZrvGM.js"), "./renderers/answer.tsx": () => import("./answer-DqBcT9wS.js"), "./renderers/asList.tsx": () => import("./asList-C6P18QWt.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-C8stpcof.js"), "./renderers/boolean.tsx": () => import("./boolean-mmhSUwE8.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-CpejShxC.js"), "./renderers/br.tsx": () => import("./br-DybAAYE7.js"), "./renderers/button.tsx": () => import("./button-DwZpLVF5.js"), "./renderers/c.tsx": () => import("./c-D8GNMHg3.js"), "./renderers/cell.tsx": () => import("./cell-C41g2LLt.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-CJZIgi3c.js"), "./renderers/circle.tsx": () => import("./circle-DaJjbbPn.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-BYqgx7en.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-Cjivwt7T.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-DUHblb7h.js"), "./renderers/containerInline.tsx": () => import("./containerInline-CFP3mIWv.js"), "./renderers/curve.tsx": () => import("./curve-ChSAueAx.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-qNJeDbna.js"), "./renderers/em.tsx": () => import("./em-C8tbkJbB.js"), "./renderers/embed.tsx": () => import("./embed-C-c5xnrf.js"), "./renderers/feedback.tsx": () => import("./feedback-C1Ymkqjp.js"), "./renderers/figure.tsx": () => import("./figure-PJez6EyH.js"), "./renderers/footnote.tsx": () => import("./footnote--tCM1r6P.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-BjlYZRtE.js"), "./renderers/graph.tsx": () => import("./graph-C0DR2e_7.js"), "./renderers/hint.tsx": () => import("./hint-BJFgka5s.js"), "./renderers/hr.tsx": () => import("./hr-TbVau1BD.js"), "./renderers/image.tsx": () => import("./image-xiLomlGM.js"), "./renderers/label.tsx": () => import("./label-CMNR2KnS.js"), "./renderers/legend.tsx": () => import("./legend-BsLc5bGC.js"), "./renderers/line.tsx": () => import("./line-DGoHQvqO.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-D1ZefkL3.js"), "./renderers/list.tsx": () => import("./list-BMou9o7G.js"), "./renderers/lq.tsx": () => import("./lq-sabD9Yv2.js"), "./renderers/lsq.tsx": () => import("./lsq-xi5xMRXF.js"), "./renderers/math.tsx": () => import("./math-zJcJlX3H.js"), "./renderers/mathInput.tsx": () => import("./mathInput-CByp2sjq.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-VPMSZW7r.js"), "./renderers/mdash.tsx": () => import("./mdash-DPHPdun6.js"), "./renderers/nbsp.tsx": () => import("./nbsp-iYc_w_Gs.js"), "./renderers/ndash.tsx": () => import("./ndash-3kT6RCol.js"), "./renderers/number.tsx": () => import("./number-asPjI_2Z.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-DCt3D4mB.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-V31dE_qc.js"), "./renderers/p.tsx": () => import("./p-BT_nTX4W.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-BJpFejQx.js"), "./renderers/pegboard.tsx": () => import("./pegboard-NOhwSxAt.js"), "./renderers/point.tsx": () => import("./point-CApzWHN1.js"), "./renderers/polygon.tsx": () => import("./polygon-CXnsHzVV.js"), "./renderers/polyline.tsx": () => import("./polyline-BnHjnBxZ.js"), "./renderers/pre.tsx": () => import("./pre-pAA8DBH_.js"), "./renderers/prefigure.tsx": () => import("./prefigure-D7Pl_Fm9.js"), "./renderers/pretzel.tsx": () => import("./pretzel-p9Fyud4i.js"), "./renderers/q.tsx": () => import("./q-Cg7Ify1Z.js"), "./renderers/ray.tsx": () => import("./ray-D6ZiGopB.js"), "./renderers/ref.tsx": () => import("./ref-DYIEQOU_.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-CnZUllDD.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-DM7Z9soa.js"), "./renderers/row.tsx": () => import("./row-BM8_oaC_.js"), "./renderers/rq.tsx": () => import("./rq-BvKEc0df.js"), "./renderers/rsq.tsx": () => import("./rsq-rD80NBPu.js"), "./renderers/section.tsx": () => import("./section-CCmLqUkb.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-DxgpFK0t.js"), "./renderers/slider.tsx": () => import("./slider-B7mSREg8.js"), "./renderers/solution.tsx": () => import("./solution-CpTvrgd4.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-Un1fS94h.js"), "./renderers/sq.tsx": () => import("./sq-CrdvH0tB.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-DMqA5HH0.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-DQWv6Fuc.js"), "./renderers/table.tsx": () => import("./table-DBtNH1ae.js"), "./renderers/tabular.tsx": () => import("./tabular-Bb78yL5-.js"), "./renderers/tag.tsx": () => import("./tag-CnjY-nJf.js"), "./renderers/text.tsx": () => import("./text-GCOZxWPf.js"), "./renderers/textInput.tsx": () => import("./textInput-C-pII18x.js"), "./renderers/vector.tsx": () => import("./vector-5ElsNU_X.js"), "./renderers/video.tsx": () => import("./video-DYfOM2CY.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 { k as jsxRuntimeExports } from "./doenetml-
|
|
2
|
-
import { F as FontAwesomeIcon } from "./index.es-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-HfMAzlGs.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 { l as DocContext, k as jsxRuntimeExports, t as textRendererStyle, n as DynamicMath } from "./doenetml-
|
|
1
|
+
import { l as DocContext, k as jsxRuntimeExports, t as textRendererStyle, n as DynamicMath } from "./doenetml-C0IdG-S-.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-Bti0il7e.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Bych2LT6.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-C0DR2e_7.js";
|
|
6
|
+
import { ChoiceInputInlineContext } from "./choiceInput-CJZIgi3c.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, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-C0IdG-S-.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-Bych2LT6.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-D2vUMC9d.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-IhVTEtlw.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 { w as useAppSelector, x as mainSlice, y as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-HyLzkcvp.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-BR6c0Los.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-DYL81PEy.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-By4zSFac.js"), "./renderers/alert.tsx": () => import("./alert-DDkheZlp.js"), "./renderers/angle.tsx": () => import("./angle-LJCEl5dK.js"), "./renderers/answer.tsx": () => import("./answer-LbD0GWLf.js"), "./renderers/asList.tsx": () => import("./asList-ByCDXjTr.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-DsYFde6s.js"), "./renderers/boolean.tsx": () => import("./boolean-eohHThqy.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-nnDpudLj.js"), "./renderers/br.tsx": () => import("./br-CG7BIbtX.js"), "./renderers/button.tsx": () => import("./button-B9mNqkp0.js"), "./renderers/c.tsx": () => import("./c-DLFC52Qd.js"), "./renderers/cell.tsx": () => import("./cell-wyffWNoP.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-BvTmhxUl.js"), "./renderers/circle.tsx": () => import("./circle-HsS7WIks.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-oyjsZON-.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-DuYtacPF.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-CCDTXZbI.js"), "./renderers/containerInline.tsx": () => import("./containerInline-D0CbulLh.js"), "./renderers/curve.tsx": () => import("./curve-Cg9-LqCN.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-8Q1gu9Vi.js"), "./renderers/em.tsx": () => import("./em-fkkprsze.js"), "./renderers/embed.tsx": () => import("./embed-C2P0v_P8.js"), "./renderers/feedback.tsx": () => import("./feedback-B4uA9Kta.js"), "./renderers/figure.tsx": () => import("./figure-bGDAt8J4.js"), "./renderers/footnote.tsx": () => import("./footnote-DYDJB2cN.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-CjtuiA40.js"), "./renderers/graph.tsx": () => import("./graph-Blh04T4l.js"), "./renderers/hint.tsx": () => import("./hint-Dh2nqEvL.js"), "./renderers/hr.tsx": () => import("./hr-D5BYs7YI.js"), "./renderers/image.tsx": () => import("./image-DgyX-SUD.js"), "./renderers/label.tsx": () => import("./label-d9Ssz0NR.js"), "./renderers/legend.tsx": () => import("./legend-qBHw_uYr.js"), "./renderers/line.tsx": () => import("./line-CaOtur0p.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-nyDx7VO6.js"), "./renderers/list.tsx": () => import("./list-DahRXkTq.js"), "./renderers/lq.tsx": () => import("./lq-viMVXahD.js"), "./renderers/lsq.tsx": () => import("./lsq-qg_79Ll4.js"), "./renderers/math.tsx": () => import("./math-BE3AqbQ_.js"), "./renderers/mathInput.tsx": () => import("./mathInput-DiOACc11.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-Dr9jl5SG.js"), "./renderers/mdash.tsx": () => import("./mdash-5FLEtf7T.js"), "./renderers/nbsp.tsx": () => import("./nbsp-BlTzp8GP.js"), "./renderers/ndash.tsx": () => import("./ndash-CBwN3UkK.js"), "./renderers/number.tsx": () => import("./number-BXRuSqK6.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-DWAYykJY.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-MyvKucF1.js"), "./renderers/p.tsx": () => import("./p-D7shxrGL.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-DJP-8Xqe.js"), "./renderers/pegboard.tsx": () => import("./pegboard-BNRdTc4b.js"), "./renderers/point.tsx": () => import("./point-8qb3YUpN.js"), "./renderers/polygon.tsx": () => import("./polygon-CP8g9Xbk.js"), "./renderers/polyline.tsx": () => import("./polyline-DVtRVAnm.js"), "./renderers/pre.tsx": () => import("./pre-D4TyfOc-.js"), "./renderers/prefigure.tsx": () => import("./prefigure-ZYp3ucMl.js"), "./renderers/pretzel.tsx": () => import("./pretzel-Cg6y-aXi.js"), "./renderers/q.tsx": () => import("./q-Db5mHiYo.js"), "./renderers/ray.tsx": () => import("./ray-B1vmKxlk.js"), "./renderers/ref.tsx": () => import("./ref-CC_NgS8y.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-DOuHrrOr.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-BaOXOlTw.js"), "./renderers/row.tsx": () => import("./row-BYBvIVGp.js"), "./renderers/rq.tsx": () => import("./rq-DXtGc26O.js"), "./renderers/rsq.tsx": () => import("./rsq-CyGcf4Ec.js"), "./renderers/section.tsx": () => import("./section-C90TRIXY.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide--BqoIcaE.js"), "./renderers/slider.tsx": () => import("./slider-BZzJPR_a.js"), "./renderers/solution.tsx": () => import("./solution-BcoaLpNs.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-C_07NpA8.js"), "./renderers/sq.tsx": () => import("./sq-C2qbVOTD.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-pJ05mb1_.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-DsmSWGid.js"), "./renderers/table.tsx": () => import("./table-dDiTDlWm.js"), "./renderers/tabular.tsx": () => import("./tabular-7J0jZkHi.js"), "./renderers/tag.tsx": () => import("./tag-ClD8oPEH.js"), "./renderers/text.tsx": () => import("./text-DiRvwBld.js"), "./renderers/textInput.tsx": () => import("./textInput-Bc4dh7Iq.js"), "./renderers/vector.tsx": () => import("./vector-DPeavdfA.js"), "./renderers/video.tsx": () => import("./video-KioxsC-0.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
|
-
};
|