@doenet/doenetml 0.7.0-alpha53 → 0.7.0-alpha55
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/EditorViewer/EditorViewer.d.ts +2 -2
- package/EditorViewer/EditorViewer.d.ts.map +1 -1
- package/Viewer/DocViewer.d.ts +3 -3
- package/Viewer/DocViewer.d.ts.map +1 -1
- package/Viewer/renderers/answer.d.ts.map +1 -1
- package/Viewer/renderers/utils/{AnswerResponseMenu.d.ts → AnswerResponseButton.d.ts} +2 -2
- package/Viewer/renderers/utils/AnswerResponseButton.d.ts.map +1 -0
- package/{_error-GwDTi6rY.js → _error-DacdROUl.js} +2 -2
- package/{alert-BtkPDkoA.js → alert-C8fzteWj.js} +3 -3
- package/{angle-D8QNz00R.js → angle-BUfNJ5pr.js} +3 -3
- package/{answer-ciKskgNk.js → answer-VaRBTsuJ.js} +10 -10
- package/{asList-Cb0lLe-w.js → asList-CI4c1C0S.js} +2 -2
- package/{blockQuote-DiHpuXuU.js → blockQuote-C4OPDdr3.js} +3 -3
- package/{boolean-CAhgqlsZ.js → boolean-Cx8Ap9YX.js} +2 -2
- package/{booleanInput-Dtul5aLp.js → booleanInput-BHSeOXKe.js} +4 -4
- package/{br-CU6brznZ.js → br-zQwnfkFP.js} +2 -2
- package/{button-BlF6I46m.js → button-CJQY5U79.js} +3 -3
- package/{c-CmlalQXF.js → c-VEX0flHS.js} +3 -3
- package/{cell-DKuooRe3.js → cell-B9PlIPCR.js} +3 -3
- package/checkwork-n17Hhm9K.js +841 -0
- package/{choiceInput-DcDJOcx_.js → choiceInput-BRqkeCFl.js} +3 -3
- package/{circle-D-vdk68E.js → circle-CXVHt7c3.js} +3 -3
- package/{cobwebPolyline-H7MNGud_.js → cobwebPolyline-ClgouZGU.js} +3 -3
- package/{codeEditor-BdcQ4cRu.js → codeEditor-Do2mH-YQ.js} +2 -2
- package/{composites-ByHZA6ga.js → composites-TjAu4fHD.js} +1 -1
- package/{containerBlock-Zt0J_8qp.js → containerBlock-BXHNKAeC.js} +3 -3
- package/{containerInline-J0ZA-hAw.js → containerInline-DI_a6AhM.js} +3 -3
- package/{curve-CnVnG-gR.js → curve-B8HrdaaR.js} +3 -3
- package/doenetml-inline-worker.js +2 -2
- package/{doenetml-BxYCfP3q.js → doenetml-sRNYlCqd.js} +21 -53
- package/doenetml.d.ts +4 -4
- package/doenetml.d.ts.map +1 -1
- package/{ellipsis-BbY_75B9.js → ellipsis-D81Tiiuc.js} +2 -2
- package/{em-Bo1_u07q.js → em-DDw9Si3H.js} +3 -3
- package/{embed-BYY0B6YL.js → embed-BEW6CoWr.js} +2 -2
- package/{feedback-BEcqQSUv.js → feedback-DVB2ksCT.js} +4 -4
- package/{figure-9bZNx4iM.js → figure-DjVSSN6M.js} +3 -3
- package/{footnote-CbSZPnS_.js → footnote-CUU3PpfT.js} +2 -2
- package/{graph-BcgGZcap.js → graph-BJc72uU7.js} +2 -2
- package/{hint-DNBGmAUx.js → hint-_mytVHpK.js} +4 -4
- package/{hr-QPW8MOW9.js → hr-CWLmUpy0.js} +2 -2
- package/{image-RdgTJkyJ.js → image-ClTE4iuH.js} +3 -3
- package/{index-BAm6ZYJS.js → index-DP21-YKk.js} +1 -1
- package/{index.es-D22JmNgX.js → index.es-DOHR9mG3.js} +1 -1
- package/index.js +1 -1
- package/{label-Ch4ABCmv.js → label-ttulCvy_.js} +3 -3
- package/{legend-CxBwSOao.js → legend-CGnJ45xO.js} +3 -3
- package/{line-CST9KGTg.js → line-CK-q5MoI.js} +3 -3
- package/{lineSegment-DvuWsavN.js → lineSegment-BURohQkt.js} +3 -3
- package/{list-FfXRWagF.js → list-DFCits_p.js} +3 -3
- package/{lq-CMzJMKYu.js → lq-CnCh2Cek.js} +2 -2
- package/{lsq-CJFVdiGq.js → lsq-Z8YTkngq.js} +2 -2
- package/{math-DLZM_qu3.js → math-DmS2HVnB.js} +3 -3
- package/{mathInput-BRWecq0J.js → mathInput-BK9jtmCy.js} +3 -3
- package/{matrixInput-D9OSOupB.js → matrixInput-B2r-RRoq.js} +3 -3
- package/{mdash-NGpH8PbV.js → mdash-BSnirjtX.js} +2 -2
- package/{nbsp-BkDcEEMd.js → nbsp-DxIPs3C-.js} +2 -2
- package/{ndash-7uwZ0Vtv.js → ndash-BOPV84e3.js} +2 -2
- package/{number-BjW9vouS.js → number-BYuSXu-v.js} +3 -3
- package/{orbitalDiagram-DVfWFW5p.js → orbitalDiagram-eFMJxKTZ.js} +2 -2
- package/{orbitalDiagramInput-TI_kpwe2.js → orbitalDiagramInput-CicG-INc.js} +2 -2
- package/{p-DIRk568L.js → p-DXe2zMsQ.js} +3 -3
- package/package.json +1 -1
- package/{paginatorControls-DtNpYi-3.js → paginatorControls-DBYh7Yws.js} +2 -2
- package/{pegboard-Bd1SmP6c.js → pegboard-DLrRWpOH.js} +3 -3
- package/{point-ajtgi6lk.js → point-BapGaqMw.js} +3 -3
- package/{polygon-DcXyS9Ph.js → polygon-sDXvM8jd.js} +3 -3
- package/{polyline-CRwTNWf5.js → polyline-Cif5rrfX.js} +3 -3
- package/{pre-ISpysPrB.js → pre-zeO-zSVj.js} +3 -3
- package/{pretzel-C-W3KUtT.js → pretzel-BstN2DXP.js} +10 -10
- package/{q-9YAZWbJW.js → q-BUN6d3Fd.js} +3 -3
- package/{ray-DTvHO_-L.js → ray-BS6bApZ0.js} +3 -3
- package/{ref-D633sFJy.js → ref-B15YsZxi.js} +2 -2
- package/{regionBetweenCurveXAxis-DNfFew93.js → regionBetweenCurveXAxis-BFdzcUTg.js} +3 -3
- package/{regionBetweenCurves-CLA-Zsiq.js → regionBetweenCurves-5M_ZSELl.js} +3 -3
- package/{row-CV1QCTA0.js → row-CAjl4Ibp.js} +2 -2
- package/{rq-BRPvlvjn.js → rq-DLZgaomf.js} +2 -2
- package/{rsq-BQMfhXNb.js → rsq-BOdq6ZBb.js} +2 -2
- package/{section-DT_Z-23R.js → section-CqM5HBbU.js} +4 -4
- package/{sideBySide-Dtp5c9BG.js → sideBySide-Dhds4V3W.js} +2 -2
- package/{slider-BFyzacAf.js → slider-CMIx3Y1_.js} +2 -2
- package/{solution-1VBLNvz4.js → solution-DJEdQYGt.js} +4 -4
- package/{spreadsheet-MfSFcH3t.js → spreadsheet-F_qMPeut.js} +2 -2
- package/{sq-n0NGxzEy.js → sq-MhOLnvCm.js} +3 -3
- package/style.css +6 -16
- package/{subsetOfRealsInput-CkL6dCxk.js → subsetOfRealsInput-BIHaW2VJ.js} +2 -2
- package/{summaryStatistics-CWXqxbd3.js → summaryStatistics-DxOXNQ_g.js} +2 -2
- package/{table-CPAT4aYa.js → table-DUxrWqxG.js} +2 -2
- package/{tabular-smi1xfCS.js → tabular-p1MDkcGW.js} +2 -2
- package/{tag-DOduYdqv.js → tag--bKUwRVR.js} +2 -2
- package/{text-Da5gA47C.js → text-D33ED9K_.js} +3 -3
- package/{textInput-Ct1xd6qU.js → textInput-ksnzYkPE.js} +4 -4
- package/useDoenetRenderer-DaxiEBL2.js +109 -0
- package/{vector-D_QrHdix.js → vector-DnhsbMGp.js} +3 -3
- package/{video-eWJTnq9V.js → video-gio1LNIF.js} +2 -2
- package/Viewer/renderers/utils/AnswerResponseMenu.d.ts.map +0 -1
- package/checkwork-Bq0PLxIc.js +0 -1320
- package/useDoenetRenderer-CA8ny0Vp.js +0 -109
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports, B as Button } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports, B as Button } from "./doenetml-sRNYlCqd.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
4
4
|
const paginatorControls = React__default.memo(function PaginatorControls(props) {
|
|
5
5
|
let { id, SVs, actions, callAction } = useDoenetRenderer(props, false);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
2
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
-
import { BoardContext, BASE_LAYER_OFFSET } from "./graph-
|
|
4
|
-
import { e as Context } from "./doenetml-
|
|
2
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
3
|
+
import { BoardContext, BASE_LAYER_OFFSET } from "./graph-BJc72uU7.js";
|
|
4
|
+
import { e as Context } from "./doenetml-sRNYlCqd.js";
|
|
5
5
|
const pegboard = React__default.memo(function Pegboard(props) {
|
|
6
6
|
let { SVs } = useDoenetRenderer(props);
|
|
7
7
|
Pegboard.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as DocContext, t as textRendererStyle, j as jsxRuntimeExports, M as MathJax } from "./doenetml-
|
|
1
|
+
import { d as DocContext, t as textRendererStyle, j as jsxRuntimeExports, M as MathJax } from "./doenetml-sRNYlCqd.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { BoardContext, POINT_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
4
|
+
import { BoardContext, POINT_LAYER_OFFSET } from "./graph-BJc72uU7.js";
|
|
5
5
|
import { c as characterizeOffGraphPoint } from "./offGraphIndicators-CQe746sb.js";
|
|
6
6
|
import { n as normalizePointStyle, a as normalizePointSize, b as adjustPointLabelPosition, c as calculatePointLabelAnchor } from "./graph-Sj2XO7Lr.js";
|
|
7
7
|
const point = React__default.memo(function Point(props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as DocContext, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { d as DocContext, j as jsxRuntimeExports } from "./doenetml-sRNYlCqd.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { BoardContext, LINE_LAYER_OFFSET, VERTEX_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET, VERTEX_LAYER_OFFSET } from "./graph-BJc72uU7.js";
|
|
5
5
|
const polygon = React__default.memo(function Polygon(props) {
|
|
6
6
|
let { componentIdx, id, SVs, actions, sourceOfUpdate, callAction } = useDoenetRenderer(props);
|
|
7
7
|
Polygon.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as DocContext, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { d as DocContext, j as jsxRuntimeExports } from "./doenetml-sRNYlCqd.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { BoardContext, LINE_LAYER_OFFSET, VERTEX_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET, VERTEX_LAYER_OFFSET } from "./graph-BJc72uU7.js";
|
|
5
5
|
const polyline = React__default.memo(function Polyline(props) {
|
|
6
6
|
let { componentIdx, id, SVs, actions, sourceOfUpdate, callAction } = useDoenetRenderer(props);
|
|
7
7
|
Polyline.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-sRNYlCqd.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites-TjAu4fHD.js";
|
|
5
5
|
const pre = React__default.memo(function Pre(props) {
|
|
6
6
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
7
7
|
const ref = useRef(null);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, d as DocContext, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, d as DocContext, j as jsxRuntimeExports } from "./doenetml-sRNYlCqd.js";
|
|
2
2
|
import React__default, { useRef, useContext } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { A as
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
4
|
+
import { A as AnswerResponseButton, c as createCheckworkComponent } from "./checkwork-n17Hhm9K.js";
|
|
5
5
|
const pretzel = React__default.memo(function Pretzel(props) {
|
|
6
6
|
let {
|
|
7
7
|
componentIdx,
|
|
@@ -15,7 +15,7 @@ const pretzel = React__default.memo(function Pretzel(props) {
|
|
|
15
15
|
} = useDoenetRenderer(props);
|
|
16
16
|
const ref = useRef(null);
|
|
17
17
|
useRecordVisibilityChanges(ref, callAction, actions);
|
|
18
|
-
const {
|
|
18
|
+
const { showAnswerResponseButton, answerResponseCounts } = useContext(DocContext) || {};
|
|
19
19
|
if (SVs.hidden) {
|
|
20
20
|
return null;
|
|
21
21
|
}
|
|
@@ -23,10 +23,10 @@ const pretzel = React__default.memo(function Pretzel(props) {
|
|
|
23
23
|
let submitAnswer = () => callAction({
|
|
24
24
|
action: actions.submitAnswer
|
|
25
25
|
});
|
|
26
|
-
let
|
|
27
|
-
if (
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
let answerResponseButton = null;
|
|
27
|
+
if (showAnswerResponseButton) {
|
|
28
|
+
answerResponseButton = /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29
|
+
AnswerResponseButton,
|
|
30
30
|
{
|
|
31
31
|
answerId: id,
|
|
32
32
|
answerComponentIdx: componentIdx,
|
|
@@ -86,12 +86,12 @@ const pretzel = React__default.memo(function Pretzel(props) {
|
|
|
86
86
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { id, ref, style: { marginBottom: "4px" }, children: [
|
|
87
87
|
problemGrids,
|
|
88
88
|
checkworkComponent,
|
|
89
|
-
|
|
89
|
+
answerResponseButton
|
|
90
90
|
] });
|
|
91
91
|
} else {
|
|
92
92
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { id, ref, style: { marginBottom: "4px" }, children: [
|
|
93
93
|
problemGrids,
|
|
94
|
-
|
|
94
|
+
answerResponseButton
|
|
95
95
|
] });
|
|
96
96
|
}
|
|
97
97
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-sRNYlCqd.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites-TjAu4fHD.js";
|
|
5
5
|
const q = React__default.memo(function Q(props) {
|
|
6
6
|
let { SVs, children } = useDoenetRenderer(props);
|
|
7
7
|
if (SVs.hidden) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as DocContext, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { d as DocContext, j as jsxRuntimeExports } from "./doenetml-sRNYlCqd.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-DaxiEBL2.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-BJc72uU7.js";
|
|
5
5
|
const ray = React__default.memo(function Ray(props) {
|
|
6
6
|
let { componentIdx, id, SVs, actions, callAction } = useDoenetRenderer(props);
|
|
7
7
|
Ray.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as DocContext, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { d as DocContext, j as jsxRuntimeExports } from "./doenetml-sRNYlCqd.js";
|
|
2
2
|
import React__default, { useContext } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
4
4
|
import styled from "styled-components";
|
|
5
5
|
const RefButton = styled.button`
|
|
6
6
|
position: relative;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as DocContext, g as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { d as DocContext, g as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-sRNYlCqd.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-DaxiEBL2.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-BJc72uU7.js";
|
|
5
5
|
const regionBetweenCurveXAxis = React__default.memo(function RegionBetweenCurveXAxis(props) {
|
|
6
6
|
let { id, SVs } = useDoenetRenderer(props);
|
|
7
7
|
RegionBetweenCurveXAxis.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as DocContext, g as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { d as DocContext, g as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-sRNYlCqd.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-DaxiEBL2.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-BJc72uU7.js";
|
|
5
5
|
const regionBetweenCurves = React__default.memo(function RegionBetweenCurves(props) {
|
|
6
6
|
let { id, SVs } = useDoenetRenderer(props);
|
|
7
7
|
RegionBetweenCurves.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-sRNYlCqd.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.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-sRNYlCqd.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.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-sRNYlCqd.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.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 { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-sRNYlCqd.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { F as FontAwesomeIcon } from "./index.es-
|
|
3
|
+
import { F as FontAwesomeIcon } from "./index.es-DOHR9mG3.js";
|
|
4
4
|
import { e as faCaretDown, g as faCaretRight, a as faLevelDownAlt, b as faCheck, c as faTimes, d as faCloud } from "./index-CS9Bi7Fd.js";
|
|
5
5
|
import styled from "styled-components";
|
|
6
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
7
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
6
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
7
|
+
import { a as addCommasForCompositeRanges } from "./composites-TjAu4fHD.js";
|
|
8
8
|
const Button = styled.button`
|
|
9
9
|
position: relative;
|
|
10
10
|
height: 24px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-sRNYlCqd.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
4
4
|
const sideBySide = React__default.memo(function sideBySide2(props) {
|
|
5
5
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
6
6
|
const ref = useRef(null);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports, A as ActionButtonGroup, n as ActionButton, M as MathJax, e as Context } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports, A as ActionButtonGroup, n as ActionButton, M as MathJax, e as Context } from "./doenetml-sRNYlCqd.js";
|
|
2
2
|
import React__default, { useRef, useState, useEffect } from "react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
5
5
|
let round_to_decimals = (x, n) => Context.round_numbers_to_decimals(x, n).tree;
|
|
6
6
|
const SliderContainer = styled.div`
|
|
7
7
|
width: fit-content;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-sRNYlCqd.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-DaxiEBL2.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-DOHR9mG3.js";
|
|
5
5
|
import { h as faPuzzlePiece } from "./index-CS9Bi7Fd.js";
|
|
6
6
|
import styled from "styled-components";
|
|
7
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
7
|
+
import { a as addCommasForCompositeRanges } from "./composites-TjAu4fHD.js";
|
|
8
8
|
const SpanStyling = styled.span`
|
|
9
9
|
// display: block;
|
|
10
10
|
// margin: SVs.open ? 12px 4px 0px 4px : 12px 4px 12px 4px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as commonjsGlobal,
|
|
1
|
+
import { q as commonjsGlobal, af as getAugmentedNamespace, ae as getDefaultExportFromCjs, u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-sRNYlCqd.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
4
4
|
import require$$2 from "react-dom";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
6
|
var es_symbol = {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-sRNYlCqd.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites-TjAu4fHD.js";
|
|
5
5
|
const sq = React__default.memo(function Sq(props) {
|
|
6
6
|
let { SVs, children } = useDoenetRenderer(props);
|
|
7
7
|
if (SVs.hidden) {
|
package/style.css
CHANGED
|
@@ -1473,7 +1473,7 @@ Tailwind base is purposely not included because we want all styles to be prefixe
|
|
|
1473
1473
|
.update-syntax-menu {
|
|
1474
1474
|
z-index: 100;
|
|
1475
1475
|
}
|
|
1476
|
-
.answer-response-
|
|
1476
|
+
.answer-response-button {
|
|
1477
1477
|
--button-color: #aaa;
|
|
1478
1478
|
--button-hover-color: #ccc;
|
|
1479
1479
|
--button-active-color: #ddd;
|
|
@@ -1481,22 +1481,12 @@ Tailwind base is purposely not included because we want all styles to be prefixe
|
|
|
1481
1481
|
height: 2.2em;
|
|
1482
1482
|
width: 2.2em;
|
|
1483
1483
|
}
|
|
1484
|
-
.answer-response-
|
|
1484
|
+
.answer-response-tooltip-anchor {
|
|
1485
|
+
display: inline;
|
|
1486
|
+
}
|
|
1487
|
+
.answer-response-tooltip {
|
|
1485
1488
|
background-color: var(--mainGray);
|
|
1486
|
-
padding: 0.
|
|
1487
|
-
margin-top: 2px;
|
|
1488
|
-
border-radius: var(--mainBorderRadius);
|
|
1489
|
-
display: flex;
|
|
1490
|
-
flex-direction: column;
|
|
1491
|
-
|
|
1492
|
-
.answer-response-menu-item {
|
|
1493
|
-
padding: 0.2em 0.5em;
|
|
1494
|
-
cursor: pointer;
|
|
1495
|
-
&:hover {
|
|
1496
|
-
background-color: var(--mainBlue);
|
|
1497
|
-
color: white;
|
|
1498
|
-
}
|
|
1499
|
-
}
|
|
1489
|
+
padding: 0.2em 0.5em;
|
|
1500
1490
|
}
|
|
1501
1491
|
/* Customize the label (the container) */
|
|
1502
1492
|
.doenetml-boolean-container {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports, T as ToggleButtonGroup, o as ToggleButton, A as ActionButtonGroup, n as ActionButton } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports, T as ToggleButtonGroup, o as ToggleButton, A as ActionButtonGroup, n as ActionButton } from "./doenetml-sRNYlCqd.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
5
5
|
const TextNoSelect = styled.text`
|
|
6
6
|
-webkit-user-select: none;
|
|
7
7
|
-moz-user-select: none;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-sRNYlCqd.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
5
|
const summaryStatistics = React__default.memo(function Tabular(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-sRNYlCqd.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.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-sRNYlCqd.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
5
|
const tabular = React__default.memo(function Tabular(props) {
|
|
6
6
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./doenetml-sRNYlCqd.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.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,7 +1,7 @@
|
|
|
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-sRNYlCqd.js";
|
|
2
2
|
import React__default, { useRef, useContext, useEffect } from "react";
|
|
3
|
-
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-BJc72uU7.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
5
5
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-Sj2XO7Lr.js";
|
|
6
6
|
const text = React__default.memo(function Text(props) {
|
|
7
7
|
let { componentIdx, id, SVs, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,11 +1,11 @@
|
|
|
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-sRNYlCqd.js";
|
|
2
2
|
import { useState, useRef, useContext, useEffect } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { F as FontAwesomeIcon } from "./index.es-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-DOHR9mG3.js";
|
|
5
5
|
import { a as faLevelDownAlt, b as faCheck, c as faTimes, d as faCloud } from "./index-CS9Bi7Fd.js";
|
|
6
6
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
7
7
|
import styled from "styled-components";
|
|
8
|
-
import { BoardContext } from "./graph-
|
|
8
|
+
import { BoardContext } from "./graph-BJc72uU7.js";
|
|
9
9
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-Sj2XO7Lr.js";
|
|
10
10
|
const Button = styled.button`
|
|
11
11
|
position: relative;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { h as useAppSelector, i as mainSlice, k as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-sRNYlCqd.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
|
+
if (Object.keys(renderersToLoad).length > 0) {
|
|
37
|
+
renderersLoadComponent(
|
|
38
|
+
Object.values(renderersToLoad),
|
|
39
|
+
Object.keys(renderersToLoad)
|
|
40
|
+
).then((newRendererClasses) => {
|
|
41
|
+
Object.assign(props.rendererClasses, newRendererClasses);
|
|
42
|
+
setRenderersToLoad({});
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}, [renderersToLoad, props.rendererClasses]);
|
|
46
|
+
function createChildFromInstructions(childInstructions, loadMoreRenderers2) {
|
|
47
|
+
if (typeof childInstructions === "string" || childInstructions === null) {
|
|
48
|
+
return childInstructions;
|
|
49
|
+
}
|
|
50
|
+
let propsForChild = {
|
|
51
|
+
key: props.coreId + childInstructions.componentIdx,
|
|
52
|
+
componentInstructions: childInstructions,
|
|
53
|
+
rendererClasses: props.rendererClasses,
|
|
54
|
+
coreId: props.coreId,
|
|
55
|
+
docId: props.docId,
|
|
56
|
+
activityId: props.activityId,
|
|
57
|
+
callAction: props.callAction,
|
|
58
|
+
fetchExternalDoenetML: props.fetchExternalDoenetML
|
|
59
|
+
};
|
|
60
|
+
let rendererClass = props.rendererClasses[childInstructions.rendererType];
|
|
61
|
+
if (!rendererClass) {
|
|
62
|
+
if (loadMoreRenderers2) {
|
|
63
|
+
setRenderersToLoad((old) => {
|
|
64
|
+
let rendererPromises = { ...old };
|
|
65
|
+
if (!(childInstructions.rendererType in rendererPromises)) {
|
|
66
|
+
rendererPromises[childInstructions.rendererType] = __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./renderers/_error.tsx": () => import("./_error-DacdROUl.js"), "./renderers/alert.tsx": () => import("./alert-C8fzteWj.js"), "./renderers/angle.tsx": () => import("./angle-BUfNJ5pr.js"), "./renderers/answer.tsx": () => import("./answer-VaRBTsuJ.js"), "./renderers/asList.tsx": () => import("./asList-CI4c1C0S.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-C4OPDdr3.js"), "./renderers/boolean.tsx": () => import("./boolean-Cx8Ap9YX.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-BHSeOXKe.js"), "./renderers/br.tsx": () => import("./br-zQwnfkFP.js"), "./renderers/button.tsx": () => import("./button-CJQY5U79.js"), "./renderers/c.tsx": () => import("./c-VEX0flHS.js"), "./renderers/cell.tsx": () => import("./cell-B9PlIPCR.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-BRqkeCFl.js"), "./renderers/circle.tsx": () => import("./circle-CXVHt7c3.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-ClgouZGU.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-Do2mH-YQ.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-BXHNKAeC.js"), "./renderers/containerInline.tsx": () => import("./containerInline-DI_a6AhM.js"), "./renderers/curve.tsx": () => import("./curve-B8HrdaaR.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-D81Tiiuc.js"), "./renderers/em.tsx": () => import("./em-DDw9Si3H.js"), "./renderers/embed.tsx": () => import("./embed-BEW6CoWr.js"), "./renderers/feedback.tsx": () => import("./feedback-DVB2ksCT.js"), "./renderers/figure.tsx": () => import("./figure-DjVSSN6M.js"), "./renderers/footnote.tsx": () => import("./footnote-CUU3PpfT.js"), "./renderers/graph.tsx": () => import("./graph-BJc72uU7.js"), "./renderers/hint.tsx": () => import("./hint-_mytVHpK.js"), "./renderers/hr.tsx": () => import("./hr-CWLmUpy0.js"), "./renderers/image.tsx": () => import("./image-ClTE4iuH.js"), "./renderers/label.tsx": () => import("./label-ttulCvy_.js"), "./renderers/legend.tsx": () => import("./legend-CGnJ45xO.js"), "./renderers/line.tsx": () => import("./line-CK-q5MoI.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-BURohQkt.js"), "./renderers/list.tsx": () => import("./list-DFCits_p.js"), "./renderers/lq.tsx": () => import("./lq-CnCh2Cek.js"), "./renderers/lsq.tsx": () => import("./lsq-Z8YTkngq.js"), "./renderers/math.tsx": () => import("./math-DmS2HVnB.js"), "./renderers/mathInput.tsx": () => import("./mathInput-BK9jtmCy.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-B2r-RRoq.js"), "./renderers/mdash.tsx": () => import("./mdash-BSnirjtX.js"), "./renderers/nbsp.tsx": () => import("./nbsp-DxIPs3C-.js"), "./renderers/ndash.tsx": () => import("./ndash-BOPV84e3.js"), "./renderers/number.tsx": () => import("./number-BYuSXu-v.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-eFMJxKTZ.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-CicG-INc.js"), "./renderers/p.tsx": () => import("./p-DXe2zMsQ.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-DBYh7Yws.js"), "./renderers/pegboard.tsx": () => import("./pegboard-DLrRWpOH.js"), "./renderers/point.tsx": () => import("./point-BapGaqMw.js"), "./renderers/polygon.tsx": () => import("./polygon-sDXvM8jd.js"), "./renderers/polyline.tsx": () => import("./polyline-Cif5rrfX.js"), "./renderers/pre.tsx": () => import("./pre-zeO-zSVj.js"), "./renderers/pretzel.tsx": () => import("./pretzel-BstN2DXP.js"), "./renderers/q.tsx": () => import("./q-BUN6d3Fd.js"), "./renderers/ray.tsx": () => import("./ray-BS6bApZ0.js"), "./renderers/ref.tsx": () => import("./ref-B15YsZxi.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-BFdzcUTg.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-5M_ZSELl.js"), "./renderers/row.tsx": () => import("./row-CAjl4Ibp.js"), "./renderers/rq.tsx": () => import("./rq-DLZgaomf.js"), "./renderers/rsq.tsx": () => import("./rsq-BOdq6ZBb.js"), "./renderers/section.tsx": () => import("./section-CqM5HBbU.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-Dhds4V3W.js"), "./renderers/slider.tsx": () => import("./slider-CMIx3Y1_.js"), "./renderers/solution.tsx": () => import("./solution-DJEdQYGt.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-F_qMPeut.js"), "./renderers/sq.tsx": () => import("./sq-MhOLnvCm.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-BIHaW2VJ.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-DxOXNQ_g.js"), "./renderers/table.tsx": () => import("./table-DUxrWqxG.js"), "./renderers/tabular.tsx": () => import("./tabular-p1MDkcGW.js"), "./renderers/tag.tsx": () => import("./tag--bKUwRVR.js"), "./renderers/text.tsx": () => import("./text-D33ED9K_.js"), "./renderers/textInput.tsx": () => import("./textInput-ksnzYkPE.js"), "./renderers/vector.tsx": () => import("./vector-DnhsbMGp.js"), "./renderers/video.tsx": () => import("./video-gio1LNIF.js") }), `./renderers/${childInstructions.rendererType}.tsx`, 3);
|
|
67
|
+
}
|
|
68
|
+
return rendererPromises;
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
let child = React__default.createElement(rendererClass, propsForChild);
|
|
74
|
+
return child;
|
|
75
|
+
}
|
|
76
|
+
let rendererType = props.componentInstructions.rendererType;
|
|
77
|
+
const callAction = (argObj) => {
|
|
78
|
+
if (!argObj.componentIdx) {
|
|
79
|
+
argObj = { ...argObj };
|
|
80
|
+
argObj.componentIdx = componentIdx;
|
|
81
|
+
}
|
|
82
|
+
if (!argObj.rendererType) {
|
|
83
|
+
argObj = { ...argObj };
|
|
84
|
+
argObj.rendererType = rendererType;
|
|
85
|
+
}
|
|
86
|
+
return props.callAction(argObj);
|
|
87
|
+
};
|
|
88
|
+
return {
|
|
89
|
+
componentIdx: effectiveIdx,
|
|
90
|
+
id: prefixForIds + id,
|
|
91
|
+
SVs: stateValues,
|
|
92
|
+
docId: props.docId,
|
|
93
|
+
activityId: props.activityId,
|
|
94
|
+
actions,
|
|
95
|
+
children,
|
|
96
|
+
sourceOfUpdate,
|
|
97
|
+
ignoreUpdate,
|
|
98
|
+
rendererName,
|
|
99
|
+
initializeChildren: () => {
|
|
100
|
+
},
|
|
101
|
+
callAction,
|
|
102
|
+
doenetViewerUrl: props.doenetViewerUrl,
|
|
103
|
+
scrollableContainer: props.scrollableContainer,
|
|
104
|
+
fetchExternalDoenetML: props.fetchExternalDoenetML
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
export {
|
|
108
|
+
useDoenetRenderer as u
|
|
109
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
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-sRNYlCqd.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { BoardContext, LINE_LAYER_OFFSET, VERTEX_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET, VERTEX_LAYER_OFFSET } from "./graph-BJc72uU7.js";
|
|
5
5
|
const vector = React__default.memo(function Vector(props) {
|
|
6
6
|
let { componentIdx, id, SVs, actions, sourceOfUpdate, callAction } = useDoenetRenderer(props);
|
|
7
7
|
Vector.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, j as jsxRuntimeExports } from "./doenetml-sRNYlCqd.js";
|
|
2
2
|
import React__default, { useRef, useEffect } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-DaxiEBL2.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
5
|
import styled from "styled-components";
|
|
6
6
|
const VideoStyling = styled.div`
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AnswerResponseMenu.d.ts","sourceRoot":"","sources":["../../../../src/Viewer/renderers/utils/AnswerResponseMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,0BAA0B,CAAC;AAElC,wBAAgB,kBAAkB,CAAC,EAC/B,QAAQ,EACR,kBAAkB,EAClB,UAAU,EACV,KAAK,EACL,YAAgB,GACnB,EAAE;IACC,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,qBAyBA"}
|