@doenet/doenetml 0.7.19 → 0.7.20
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-DrrhC9MA.js → AnswerResponseButton-B_sS77mD.js} +2 -2
- package/{Description-2TOeTmoC.js → Description-BOSwfU1S.js} +1 -1
- package/{GraphFrame-fC2tuVRm.js → GraphFrame-B7PuvoIh.js} +2 -2
- package/{JSXGraphRenderer-CvjJmoGR.js → JSXGraphRenderer-B_dMP6Ox.js} +1 -1
- package/{NonInlineMediaWrapper-CuPMSiiO.js → NonInlineMediaWrapper-kk1035XV.js} +1 -1
- package/{_error-DptMgaTj.js → _error-BBdyv1UR.js} +2 -2
- package/{alert-S-uFuUsX.js → alert-Dl-lVuA4.js} +3 -3
- package/{angle-CK6UhizI.js → angle-DHKF0nAX.js} +5 -5
- package/{answer-D3iAMd1_.js → answer-C6epMZFM.js} +5 -5
- package/{asList-D7vIb-VU.js → asList-CJU4K3c3.js} +2 -2
- package/{blockQuote-Quv3U_wX.js → blockQuote-CAFaNlyy.js} +3 -3
- package/{boolean-B3uCfBJm.js → boolean-B70sJGMN.js} +2 -2
- package/{booleanInput-Bvk2YJXc.js → booleanInput-Cdj406jb.js} +6 -6
- package/{br-DXfpuQSk.js → br-C1_Kq2p_.js} +2 -2
- package/{button-B5KpAHuM.js → button-Dg7nC9Aw.js} +4 -4
- package/{c-Bz1VvqRv.js → c-CChAC7D7.js} +3 -3
- package/{cell-wLicvxsj.js → cell-DAApdS_c.js} +3 -3
- package/{choiceInput-C6KhnY9I.js → choiceInput-BWOof7hN.js} +4 -4
- package/{circle-DQmEVNPy.js → circle-CuSh59uy.js} +4 -4
- package/{cobwebPolyline-CMghE0cM.js → cobwebPolyline-aYd_kTp7.js} +4 -4
- package/{codeEditor-BlHt-C7W.js → codeEditor-CA1WC675.js} +2 -2
- package/{composites-CRJ36ADj.js → composites-h1Ab5IN4.js} +1 -1
- package/{containerBlock-CBfova6v.js → containerBlock-l5mGi_gY.js} +4 -4
- package/{containerInline-D8JTNuL1.js → containerInline-CJei5h9r.js} +4 -4
- package/{curve-PIZ7bZ9C.js → curve-Cd2p_FOs.js} +4 -4
- package/{doenetml-CL2AO1GX.js → doenetml-C8nlk6ys.js} +4 -4
- package/doenetml-inline-worker.js +2 -2
- package/{ellipsis-Bb2979zV.js → ellipsis-hrfRl8H2.js} +2 -2
- package/{em-DJIwZYk5.js → em-B4GJ9Hup.js} +3 -3
- package/{embed-Cekh9lMs.js → embed-Cn9YeouF.js} +2 -2
- package/{feedback-ClFENOXT.js → feedback-DaG62QUp.js} +4 -4
- package/{figure-DZpcpp6E.js → figure-CNclRpzP.js} +3 -3
- package/{footnote-JElUoxVK.js → footnote-DlISS85I.js} +3 -3
- package/{graph-BRLPDL53.js → graph-LPVuVAJB.js} +6 -6
- package/{hint-BPf5Aujy.js → hint-Dm4h598P.js} +4 -4
- package/{hr-zcUrW0a_.js → hr-CP5bowB4.js} +2 -2
- package/{image-DdPkKUEU.js → image-dVsvc4uo.js} +7 -7
- package/{index-DW0RuP3H.js → index-Cr4ii1M3.js} +1 -1
- package/{index.es-Bj-KJ6mU.js → index.es-qZRrNQtQ.js} +1 -1
- package/index.js +1 -1
- package/{label-TOsTn2wB.js → label-PZ9JukwY.js} +6 -6
- package/{labelWithLatex-SfCCJ9xZ.js → labelWithLatex-DKzciMzL.js} +1 -1
- package/{legend-DTWmQm7q.js → legend-Bzh1Gsxm.js} +4 -4
- package/{line-sXqQdGUs.js → line-XsEpH2dF.js} +5 -5
- package/{lineSegment-CuHNRU7h.js → lineSegment-BSSAdkJI.js} +4 -4
- package/{list-B6h5pBxf.js → list-DksLcUSt.js} +4 -4
- package/{lq-i0BgnJ0J.js → lq-U9M1_j-1.js} +2 -2
- package/{lsq-B0iQSSbP.js → lsq-DUmkBNwH.js} +2 -2
- package/{markupRenderer-CWvlqH_g.js → markupRenderer-CG3J9OT8.js} +1 -1
- package/{math-CbPizFKV.js → math-D6TG2W5Y.js} +6 -6
- package/{mathInput-DbLzVi8k.js → mathInput-GwvISDNB.js} +5 -5
- package/{matrixInput-BVKr5KZn.js → matrixInput-A8VDtqgw.js} +4 -4
- package/{mdash-DvAG0kcm.js → mdash-BNZzqqZU.js} +2 -2
- package/{nbsp-hWdP4qVA.js → nbsp-BSL6M3Fh.js} +2 -2
- package/{ndash-DRy_aYEy.js → ndash-Do4Bv_BU.js} +2 -2
- package/{number-Due1CHxd.js → number-B0KdX52u.js} +6 -6
- package/{orbitalDiagram-CIITLCJO.js → orbitalDiagram-B7c-f-5x.js} +2 -2
- package/{orbitalDiagramInput-C7_jItHi.js → orbitalDiagramInput-XVXW7pKs.js} +2 -2
- package/{p-IUGtjAp1.js → p-GZvuycUO.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-R5PaQj6Q.js → paginatorControls-BD6BGkrY.js} +2 -2
- package/{pegboard-BMgiqrdj.js → pegboard-BIUZMBYe.js} +4 -4
- package/{point-CnN1NuIA.js → point-8V2y6HTx.js} +5 -5
- package/{polygon-B2eEjB6P.js → polygon-BfoHasSi.js} +4 -4
- package/{polyline-B54NfoTc.js → polyline-CK0OAw3w.js} +4 -4
- package/{pre-C6SyAdv-.js → pre-Cvj5CA5f.js} +3 -3
- package/{prefigure-DcjY6jTy.js → prefigure-DimgHvsg.js} +1 -1
- package/{pretzel-Bz1056rw.js → pretzel-BnIfJEf1.js} +4 -4
- package/{q-DdVuEawA.js → q-DYU0G5xy.js} +3 -3
- package/{ray-K9nvdBLh.js → ray-Cef90Z4-.js} +4 -4
- package/{ref-w0Gk5afg.js → ref-DMxrvhfu.js} +2 -2
- package/{regionBetweenCurveXAxis-BRoxOFQW.js → regionBetweenCurveXAxis-CPUevVpm.js} +4 -4
- package/{regionBetweenCurves-Dm7zNOsQ.js → regionBetweenCurves-BBjf1KzO.js} +3 -3
- package/{row-CQsR5tpk.js → row-DNNl_Qhz.js} +2 -2
- package/{rq-HfmWWnJW.js → rq-DYqP0AAY.js} +2 -2
- package/{rsq-BM8qmsg0.js → rsq-ClKQklbm.js} +2 -2
- package/{section-CVB4ABAs.js → section-CPiIS869.js} +5 -5
- package/{sha256-D_YDvB1B-CoK-kUq-.js → sha256-D_YDvB1B-D0WsS0TS.js} +1 -1
- package/{sideBySide-B8wWVKqd.js → sideBySide-EvdNw5RB.js} +2 -2
- package/{slider-mEP8b6r1.js → slider-Bf9VP4VK.js} +3 -3
- package/{solution-DOdXbyMD.js → solution-B-BJ5v32.js} +4 -4
- package/{spreadsheet-BklAc3yF.js → spreadsheet-Ch_frUr3.js} +2 -2
- package/{sq-eb8HZ8-3.js → sq-CvXkM5-k.js} +3 -3
- package/{subsetOfRealsInput-D3qw7aVa.js → subsetOfRealsInput-B8IyVnQe.js} +2 -2
- package/{summaryStatistics-8pDcuX31.js → summaryStatistics-Bu0MeKsK.js} +2 -2
- package/{table-BPJmGvDH.js → table-DB-RX5Bn.js} +2 -2
- package/{tabular-hHwi4qSO.js → tabular-mnsNk-mz.js} +2 -2
- package/{tag-BmwqKmDg.js → tag-Cb3oZCpD.js} +2 -2
- package/{text-D0b00jWh.js → text-BjfwS9os.js} +6 -6
- package/{textInput-Bc2jllT1.js → textInput-mhOsss5I.js} +6 -6
- package/{tooltip-provider-ChvC_3jb.js → tooltip-provider-QjMhGer_.js} +1 -1
- package/{useAnchoredGraphDragHandler-DJJfVivB.js → useAnchoredGraphDragHandler-bVE-6Awj.js} +1 -1
- package/useDoenetRenderer-CeCNz_Oj.js +114 -0
- package/{useSubmitActionWithDelay-Ds7PYbXU.js → useSubmitActionWithDelay-B1SqMbE2.js} +2 -2
- package/{vector-DOH20NJ8.js → vector-BMwmL9oI.js} +5 -5
- package/{video-LMdloonO.js → video-CIidCeu8.js} +4 -4
- package/useDoenetRenderer-4re_jeFD.js +0 -114
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as DocContext, h as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { d as DocContext, h as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-C8nlk6ys.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-
|
|
3
|
+
import { j as jxg } from "./JSXGraphRenderer-B_dMP6Ox.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeCNz_Oj.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-LPVuVAJB.js";
|
|
6
6
|
const regionBetweenCurveXAxis = React__default.memo(function RegionBetweenCurveXAxis(props) {
|
|
7
7
|
let { id, SVs } = useDoenetRenderer(props);
|
|
8
8
|
RegionBetweenCurveXAxis.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as DocContext, h as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { d as DocContext, h as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-C8nlk6ys.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-CeCNz_Oj.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-LPVuVAJB.js";
|
|
5
5
|
import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
|
|
6
6
|
const regionBetweenCurves = React__default.memo(function RegionBetweenCurves(props) {
|
|
7
7
|
let { id, SVs } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-C8nlk6ys.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeCNz_Oj.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-C8nlk6ys.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeCNz_Oj.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-C8nlk6ys.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeCNz_Oj.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 { f as cesc, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { f as cesc, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-C8nlk6ys.js";
|
|
2
2
|
import React__default, { useRef, useEffect } from "react";
|
|
3
|
-
import { F as FontAwesomeIcon } from "./index.es-
|
|
3
|
+
import { F as FontAwesomeIcon } from "./index.es-qZRrNQtQ.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-CeCNz_Oj.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-h1Ab5IN4.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-B1SqMbE2.js";
|
|
8
8
|
const section = React__default.memo(function Section(props) {
|
|
9
9
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
10
10
|
const LIST_ITEM_INDENT = "2em";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-C8nlk6ys.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeCNz_Oj.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, p as ActionButton, e as Context } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports, A as ActionButtonGroup, p as ActionButton, e as Context } from "./doenetml-C8nlk6ys.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-CeCNz_Oj.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-DKzciMzL.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-C8nlk6ys.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-CeCNz_Oj.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-qZRrNQtQ.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-h1Ab5IN4.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 { ah as commonjsGlobal, ai as getAugmentedNamespace, ae as getDefaultExportFromCjs, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { ah as commonjsGlobal, ai as getAugmentedNamespace, ae as getDefaultExportFromCjs, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-C8nlk6ys.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeCNz_Oj.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-C8nlk6ys.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-CeCNz_Oj.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-CG3J9OT8.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, v as ToggleButtonGroup, T as ToggleButton, A as ActionButtonGroup, p as ActionButton } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports, v as ToggleButtonGroup, T as ToggleButton, A as ActionButtonGroup, p as ActionButton } from "./doenetml-C8nlk6ys.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeCNz_Oj.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-C8nlk6ys.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeCNz_Oj.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-C8nlk6ys.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeCNz_Oj.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-C8nlk6ys.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeCNz_Oj.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-C8nlk6ys.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeCNz_Oj.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 { d as DocContext, e as Context, j as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-
|
|
1
|
+
import { d as DocContext, e as Context, j as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-C8nlk6ys.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-B_dMP6Ox.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-LPVuVAJB.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeCNz_Oj.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-FesVg1vs.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-BWOof7hN.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-bVE-6Awj.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 { e as Context, j as jsxRuntimeExports, M as MathJax } from "./doenetml-
|
|
1
|
+
import { e as Context, j as jsxRuntimeExports, M as MathJax } from "./doenetml-C8nlk6ys.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-B_dMP6Ox.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeCNz_Oj.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-LPVuVAJB.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-B1SqMbE2.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-BOSwfU1S.js";
|
|
10
10
|
import { a as addValidationStateToShortDescription } from "./description-CVwSJZpB.js";
|
|
11
11
|
function TextInput(props) {
|
|
12
12
|
let { id, SVs, children, actions, ignoreUpdate, callAction } = useDoenetRenderer(props);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { X as createStoreContext, Y as HovercardScopedContextProvider, Z as HovercardContextProvider, $ as createDialogComponent, x as forwardRef2, y as createHook, z as createElement, G as invariant, a0 as useWrapElement, j as jsxRuntimeExports, a1 as useHovercard, a2 as isFalsyBooleanCallback, a3 as contains, a4 as sync, a5 as chain, a6 as createStore, a7 as useEvent, a8 as useHovercardAnchor, a9 as createHovercardStore, aa as defaultValue, ab as useStore, ac as useStoreProps, ad as useHovercardStoreProps } from "./doenetml-
|
|
1
|
+
import { X as createStoreContext, Y as HovercardScopedContextProvider, Z as HovercardContextProvider, $ as createDialogComponent, x as forwardRef2, y as createHook, z as createElement, G as invariant, a0 as useWrapElement, j as jsxRuntimeExports, a1 as useHovercard, a2 as isFalsyBooleanCallback, a3 as contains, a4 as sync, a5 as chain, a6 as createStore, a7 as useEvent, a8 as useHovercardAnchor, a9 as createHovercardStore, aa as defaultValue, ab as useStore, ac as useStoreProps, ad as useHovercardStoreProps } from "./doenetml-C8nlk6ys.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-B_dMP6Ox.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 { k as useAppSelector, l as mainSlice, n as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-C8nlk6ys.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-B7PuvoIh.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-B_dMP6Ox.js").then((n) => n.h), "./renderers/_error.tsx": () => import("./_error-BBdyv1UR.js"), "./renderers/alert.tsx": () => import("./alert-Dl-lVuA4.js"), "./renderers/angle.tsx": () => import("./angle-DHKF0nAX.js"), "./renderers/answer.tsx": () => import("./answer-C6epMZFM.js"), "./renderers/asList.tsx": () => import("./asList-CJU4K3c3.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-CAFaNlyy.js"), "./renderers/boolean.tsx": () => import("./boolean-B70sJGMN.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-Cdj406jb.js"), "./renderers/br.tsx": () => import("./br-C1_Kq2p_.js"), "./renderers/button.tsx": () => import("./button-Dg7nC9Aw.js"), "./renderers/c.tsx": () => import("./c-CChAC7D7.js"), "./renderers/cell.tsx": () => import("./cell-DAApdS_c.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-BWOof7hN.js"), "./renderers/circle.tsx": () => import("./circle-CuSh59uy.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-aYd_kTp7.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-CA1WC675.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-l5mGi_gY.js"), "./renderers/containerInline.tsx": () => import("./containerInline-CJei5h9r.js"), "./renderers/curve.tsx": () => import("./curve-Cd2p_FOs.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-hrfRl8H2.js"), "./renderers/em.tsx": () => import("./em-B4GJ9Hup.js"), "./renderers/embed.tsx": () => import("./embed-Cn9YeouF.js"), "./renderers/feedback.tsx": () => import("./feedback-DaG62QUp.js"), "./renderers/figure.tsx": () => import("./figure-CNclRpzP.js"), "./renderers/footnote.tsx": () => import("./footnote-DlISS85I.js"), "./renderers/graph.tsx": () => import("./graph-LPVuVAJB.js"), "./renderers/hint.tsx": () => import("./hint-Dm4h598P.js"), "./renderers/hr.tsx": () => import("./hr-CP5bowB4.js"), "./renderers/image.tsx": () => import("./image-dVsvc4uo.js"), "./renderers/label.tsx": () => import("./label-PZ9JukwY.js"), "./renderers/legend.tsx": () => import("./legend-Bzh1Gsxm.js"), "./renderers/line.tsx": () => import("./line-XsEpH2dF.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-BSSAdkJI.js"), "./renderers/list.tsx": () => import("./list-DksLcUSt.js"), "./renderers/lq.tsx": () => import("./lq-U9M1_j-1.js"), "./renderers/lsq.tsx": () => import("./lsq-DUmkBNwH.js"), "./renderers/math.tsx": () => import("./math-D6TG2W5Y.js"), "./renderers/mathInput.tsx": () => import("./mathInput-GwvISDNB.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-A8VDtqgw.js"), "./renderers/mdash.tsx": () => import("./mdash-BNZzqqZU.js"), "./renderers/nbsp.tsx": () => import("./nbsp-BSL6M3Fh.js"), "./renderers/ndash.tsx": () => import("./ndash-Do4Bv_BU.js"), "./renderers/number.tsx": () => import("./number-B0KdX52u.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-B7c-f-5x.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-XVXW7pKs.js"), "./renderers/p.tsx": () => import("./p-GZvuycUO.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-BD6BGkrY.js"), "./renderers/pegboard.tsx": () => import("./pegboard-BIUZMBYe.js"), "./renderers/point.tsx": () => import("./point-8V2y6HTx.js"), "./renderers/polygon.tsx": () => import("./polygon-BfoHasSi.js"), "./renderers/polyline.tsx": () => import("./polyline-CK0OAw3w.js"), "./renderers/pre.tsx": () => import("./pre-Cvj5CA5f.js"), "./renderers/prefigure.tsx": () => import("./prefigure-DimgHvsg.js"), "./renderers/pretzel.tsx": () => import("./pretzel-BnIfJEf1.js"), "./renderers/q.tsx": () => import("./q-DYU0G5xy.js"), "./renderers/ray.tsx": () => import("./ray-Cef90Z4-.js"), "./renderers/ref.tsx": () => import("./ref-DMxrvhfu.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-CPUevVpm.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-BBjf1KzO.js"), "./renderers/row.tsx": () => import("./row-DNNl_Qhz.js"), "./renderers/rq.tsx": () => import("./rq-DYqP0AAY.js"), "./renderers/rsq.tsx": () => import("./rsq-ClKQklbm.js"), "./renderers/section.tsx": () => import("./section-CPiIS869.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-EvdNw5RB.js"), "./renderers/slider.tsx": () => import("./slider-Bf9VP4VK.js"), "./renderers/solution.tsx": () => import("./solution-B-BJ5v32.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-Ch_frUr3.js"), "./renderers/sq.tsx": () => import("./sq-CvXkM5-k.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-B8IyVnQe.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-Bu0MeKsK.js"), "./renderers/table.tsx": () => import("./table-DB-RX5Bn.js"), "./renderers/tabular.tsx": () => import("./tabular-mnsNk-mz.js"), "./renderers/tag.tsx": () => import("./tag-Cb3oZCpD.js"), "./renderers/text.tsx": () => import("./text-BjfwS9os.js"), "./renderers/textInput.tsx": () => import("./textInput-mhOsss5I.js"), "./renderers/vector.tsx": () => import("./vector-BMwmL9oI.js"), "./renderers/video.tsx": () => import("./video-CIidCeu8.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-C8nlk6ys.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-qZRrNQtQ.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 { d as DocContext, j as jsxRuntimeExports, t as textRendererStyle, M as MathJax } from "./doenetml-
|
|
1
|
+
import { d as DocContext, j as jsxRuntimeExports, t as textRendererStyle, M as MathJax } from "./doenetml-C8nlk6ys.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { j as jxg, s as syncLayer, b as syncLineStrokeStyle, a as syncWithLabelToggle, c as syncLabelStrokeColor, e as applyLineFamilyLabelPlacement, f as buildLineFamilyLabelAttributes, g 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, b as syncLineStrokeStyle, a as syncWithLabelToggle, c as syncLabelStrokeColor, e as applyLineFamilyLabelPlacement, f as buildLineFamilyLabelAttributes, g as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-B_dMP6Ox.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-CeCNz_Oj.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-LPVuVAJB.js";
|
|
6
|
+
import { ChoiceInputInlineContext } from "./choiceInput-BWOof7hN.js";
|
|
7
7
|
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-DAEbjO9r.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-C8nlk6ys.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-CeCNz_Oj.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-BOSwfU1S.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-kk1035XV.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 { k as useAppSelector, l as mainSlice, n as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-CL2AO1GX.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-fC2tuVRm.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-CvjJmoGR.js").then((n) => n.h), "./renderers/_error.tsx": () => import("./_error-DptMgaTj.js"), "./renderers/alert.tsx": () => import("./alert-S-uFuUsX.js"), "./renderers/angle.tsx": () => import("./angle-CK6UhizI.js"), "./renderers/answer.tsx": () => import("./answer-D3iAMd1_.js"), "./renderers/asList.tsx": () => import("./asList-D7vIb-VU.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-Quv3U_wX.js"), "./renderers/boolean.tsx": () => import("./boolean-B3uCfBJm.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-Bvk2YJXc.js"), "./renderers/br.tsx": () => import("./br-DXfpuQSk.js"), "./renderers/button.tsx": () => import("./button-B5KpAHuM.js"), "./renderers/c.tsx": () => import("./c-Bz1VvqRv.js"), "./renderers/cell.tsx": () => import("./cell-wLicvxsj.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-C6KhnY9I.js"), "./renderers/circle.tsx": () => import("./circle-DQmEVNPy.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-CMghE0cM.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-BlHt-C7W.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-CBfova6v.js"), "./renderers/containerInline.tsx": () => import("./containerInline-D8JTNuL1.js"), "./renderers/curve.tsx": () => import("./curve-PIZ7bZ9C.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-Bb2979zV.js"), "./renderers/em.tsx": () => import("./em-DJIwZYk5.js"), "./renderers/embed.tsx": () => import("./embed-Cekh9lMs.js"), "./renderers/feedback.tsx": () => import("./feedback-ClFENOXT.js"), "./renderers/figure.tsx": () => import("./figure-DZpcpp6E.js"), "./renderers/footnote.tsx": () => import("./footnote-JElUoxVK.js"), "./renderers/graph.tsx": () => import("./graph-BRLPDL53.js"), "./renderers/hint.tsx": () => import("./hint-BPf5Aujy.js"), "./renderers/hr.tsx": () => import("./hr-zcUrW0a_.js"), "./renderers/image.tsx": () => import("./image-DdPkKUEU.js"), "./renderers/label.tsx": () => import("./label-TOsTn2wB.js"), "./renderers/legend.tsx": () => import("./legend-DTWmQm7q.js"), "./renderers/line.tsx": () => import("./line-sXqQdGUs.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-CuHNRU7h.js"), "./renderers/list.tsx": () => import("./list-B6h5pBxf.js"), "./renderers/lq.tsx": () => import("./lq-i0BgnJ0J.js"), "./renderers/lsq.tsx": () => import("./lsq-B0iQSSbP.js"), "./renderers/math.tsx": () => import("./math-CbPizFKV.js"), "./renderers/mathInput.tsx": () => import("./mathInput-DbLzVi8k.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-BVKr5KZn.js"), "./renderers/mdash.tsx": () => import("./mdash-DvAG0kcm.js"), "./renderers/nbsp.tsx": () => import("./nbsp-hWdP4qVA.js"), "./renderers/ndash.tsx": () => import("./ndash-DRy_aYEy.js"), "./renderers/number.tsx": () => import("./number-Due1CHxd.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-CIITLCJO.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-C7_jItHi.js"), "./renderers/p.tsx": () => import("./p-IUGtjAp1.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-R5PaQj6Q.js"), "./renderers/pegboard.tsx": () => import("./pegboard-BMgiqrdj.js"), "./renderers/point.tsx": () => import("./point-CnN1NuIA.js"), "./renderers/polygon.tsx": () => import("./polygon-B2eEjB6P.js"), "./renderers/polyline.tsx": () => import("./polyline-B54NfoTc.js"), "./renderers/pre.tsx": () => import("./pre-C6SyAdv-.js"), "./renderers/prefigure.tsx": () => import("./prefigure-DcjY6jTy.js"), "./renderers/pretzel.tsx": () => import("./pretzel-Bz1056rw.js"), "./renderers/q.tsx": () => import("./q-DdVuEawA.js"), "./renderers/ray.tsx": () => import("./ray-K9nvdBLh.js"), "./renderers/ref.tsx": () => import("./ref-w0Gk5afg.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-BRoxOFQW.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-Dm7zNOsQ.js"), "./renderers/row.tsx": () => import("./row-CQsR5tpk.js"), "./renderers/rq.tsx": () => import("./rq-HfmWWnJW.js"), "./renderers/rsq.tsx": () => import("./rsq-BM8qmsg0.js"), "./renderers/section.tsx": () => import("./section-CVB4ABAs.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-B8wWVKqd.js"), "./renderers/slider.tsx": () => import("./slider-mEP8b6r1.js"), "./renderers/solution.tsx": () => import("./solution-DOdXbyMD.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-BklAc3yF.js"), "./renderers/sq.tsx": () => import("./sq-eb8HZ8-3.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-D3qw7aVa.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-8pDcuX31.js"), "./renderers/table.tsx": () => import("./table-BPJmGvDH.js"), "./renderers/tabular.tsx": () => import("./tabular-hHwi4qSO.js"), "./renderers/tag.tsx": () => import("./tag-BmwqKmDg.js"), "./renderers/text.tsx": () => import("./text-D0b00jWh.js"), "./renderers/textInput.tsx": () => import("./textInput-Bc2jllT1.js"), "./renderers/vector.tsx": () => import("./vector-DOH20NJ8.js"), "./renderers/video.tsx": () => import("./video-LMdloonO.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
|
-
};
|