@doenet/doenetml 0.7.0-alpha54 → 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/Viewer/renderers/utils/AnswerResponseButton.d.ts.map +1 -1
- package/{_error-C_-Cf-n2.js → _error-DacdROUl.js} +2 -2
- package/{alert-MJhKXjOS.js → alert-C8fzteWj.js} +3 -3
- package/{angle-BpYvF3te.js → angle-BUfNJ5pr.js} +3 -3
- package/{answer-CuS5aZTS.js → answer-VaRBTsuJ.js} +3 -3
- package/{asList-pFpAEmGs.js → asList-CI4c1C0S.js} +2 -2
- package/{blockQuote-BwtSgf5T.js → blockQuote-C4OPDdr3.js} +3 -3
- package/{boolean-DcKFD1Fy.js → boolean-Cx8Ap9YX.js} +2 -2
- package/{booleanInput-CwLNoidq.js → booleanInput-BHSeOXKe.js} +4 -4
- package/{br-CWfv5Yfo.js → br-zQwnfkFP.js} +2 -2
- package/{button-BLuW2QCj.js → button-CJQY5U79.js} +3 -3
- package/{c-BrtRcbB_.js → c-VEX0flHS.js} +3 -3
- package/{cell-DlXycmel.js → cell-B9PlIPCR.js} +3 -3
- package/checkwork-n17Hhm9K.js +841 -0
- package/{choiceInput-Dz1A3w9Z.js → choiceInput-BRqkeCFl.js} +3 -3
- package/{circle-DYkwnDWP.js → circle-CXVHt7c3.js} +3 -3
- package/{cobwebPolyline-C6pbYMrH.js → cobwebPolyline-ClgouZGU.js} +3 -3
- package/{codeEditor-DdBAcjIB.js → codeEditor-Do2mH-YQ.js} +2 -2
- package/{composites-DyD9mtrW.js → composites-TjAu4fHD.js} +1 -1
- package/{containerBlock-CJ1pBE7O.js → containerBlock-BXHNKAeC.js} +3 -3
- package/{containerInline-DhgYNACz.js → containerInline-DI_a6AhM.js} +3 -3
- package/{curve-ooDlQwfV.js → curve-B8HrdaaR.js} +3 -3
- package/doenetml-inline-worker.js +2 -2
- package/{doenetml-C1a-oMqu.js → doenetml-sRNYlCqd.js} +43 -7
- package/{ellipsis-B-ln6U7X.js → ellipsis-D81Tiiuc.js} +2 -2
- package/{em-CEObxn8A.js → em-DDw9Si3H.js} +3 -3
- package/{embed-BAO0fW47.js → embed-BEW6CoWr.js} +2 -2
- package/{feedback-BpBf5hFU.js → feedback-DVB2ksCT.js} +4 -4
- package/{figure-BuslO32V.js → figure-DjVSSN6M.js} +3 -3
- package/{footnote-Al4M2M0W.js → footnote-CUU3PpfT.js} +2 -2
- package/{graph-r49CFaUv.js → graph-BJc72uU7.js} +2 -2
- package/{hint-BO406okN.js → hint-_mytVHpK.js} +4 -4
- package/{hr-UwFvQ05W.js → hr-CWLmUpy0.js} +2 -2
- package/{image-D8EwdSwZ.js → image-ClTE4iuH.js} +3 -3
- package/{index-Do6rFsPK.js → index-DP21-YKk.js} +1 -1
- package/{index.es-DwVEXQe4.js → index.es-DOHR9mG3.js} +1 -1
- package/index.js +1 -1
- package/{label-B9hE5qQ5.js → label-ttulCvy_.js} +3 -3
- package/{legend-Dao1VCWV.js → legend-CGnJ45xO.js} +3 -3
- package/{line-DpdAQLpf.js → line-CK-q5MoI.js} +3 -3
- package/{lineSegment-BkMHiYwR.js → lineSegment-BURohQkt.js} +3 -3
- package/{list-uhJLLQqN.js → list-DFCits_p.js} +3 -3
- package/{lq-CI72iL-9.js → lq-CnCh2Cek.js} +2 -2
- package/{lsq-DVFGTMD9.js → lsq-Z8YTkngq.js} +2 -2
- package/{math-D7d4dQ2-.js → math-DmS2HVnB.js} +3 -3
- package/{mathInput-CpZzH0MX.js → mathInput-BK9jtmCy.js} +3 -3
- package/{matrixInput-CpV6kMy_.js → matrixInput-B2r-RRoq.js} +3 -3
- package/{mdash-CRz-3iDH.js → mdash-BSnirjtX.js} +2 -2
- package/{nbsp-D-SLRemn.js → nbsp-DxIPs3C-.js} +2 -2
- package/{ndash-B43H3bVO.js → ndash-BOPV84e3.js} +2 -2
- package/{number-De1SJm5e.js → number-BYuSXu-v.js} +3 -3
- package/{orbitalDiagram-DnIYHZa8.js → orbitalDiagram-eFMJxKTZ.js} +2 -2
- package/{orbitalDiagramInput-CLznCd5S.js → orbitalDiagramInput-CicG-INc.js} +2 -2
- package/{p-75d6EEkg.js → p-DXe2zMsQ.js} +3 -3
- package/package.json +1 -1
- package/{paginatorControls--vMcNSXv.js → paginatorControls-DBYh7Yws.js} +2 -2
- package/{pegboard-DT9abIL-.js → pegboard-DLrRWpOH.js} +3 -3
- package/{point-BHZ4o6NX.js → point-BapGaqMw.js} +3 -3
- package/{polygon-BiEMEyjk.js → polygon-sDXvM8jd.js} +3 -3
- package/{polyline-noPFbzFC.js → polyline-Cif5rrfX.js} +3 -3
- package/{pre-YizZHsZJ.js → pre-zeO-zSVj.js} +3 -3
- package/{pretzel-DD2ytdMP.js → pretzel-BstN2DXP.js} +3 -3
- package/{q-CtoWDQGH.js → q-BUN6d3Fd.js} +3 -3
- package/{ray-BQF4PwFi.js → ray-BS6bApZ0.js} +3 -3
- package/{ref-DHfvHSCh.js → ref-B15YsZxi.js} +2 -2
- package/{regionBetweenCurveXAxis-CBl2mtC7.js → regionBetweenCurveXAxis-BFdzcUTg.js} +3 -3
- package/{regionBetweenCurves-DrQ4AX6q.js → regionBetweenCurves-5M_ZSELl.js} +3 -3
- package/{row-DJbLSGc8.js → row-CAjl4Ibp.js} +2 -2
- package/{rq-BD3HFkhc.js → rq-DLZgaomf.js} +2 -2
- package/{rsq-DRn1_kFR.js → rsq-BOdq6ZBb.js} +2 -2
- package/{section-Da_am71R.js → section-CqM5HBbU.js} +4 -4
- package/{sideBySide-DpcQxkvw.js → sideBySide-Dhds4V3W.js} +2 -2
- package/{slider-DK8PUbd9.js → slider-CMIx3Y1_.js} +2 -2
- package/{solution-O_NmIk_k.js → solution-DJEdQYGt.js} +4 -4
- package/{spreadsheet-Dy1dHEv0.js → spreadsheet-F_qMPeut.js} +2 -2
- package/{sq-BCFfXZkj.js → sq-MhOLnvCm.js} +3 -3
- package/style.css +7 -0
- package/{subsetOfRealsInput-CdidOJbE.js → subsetOfRealsInput-BIHaW2VJ.js} +2 -2
- package/{summaryStatistics-Ce7TOEzD.js → summaryStatistics-DxOXNQ_g.js} +2 -2
- package/{table-CGlfqr1L.js → table-DUxrWqxG.js} +2 -2
- package/{tabular-piECKsrd.js → tabular-p1MDkcGW.js} +2 -2
- package/{tag-BDVE5gVz.js → tag--bKUwRVR.js} +2 -2
- package/{text-D9bFKQGa.js → text-D33ED9K_.js} +3 -3
- package/{textInput-CNacHNm3.js → textInput-ksnzYkPE.js} +4 -4
- package/useDoenetRenderer-DaxiEBL2.js +109 -0
- package/{vector-6XLsqMaA.js → vector-DnhsbMGp.js} +3 -3
- package/{video-aqnwoAr2.js → video-gio1LNIF.js} +2 -2
- package/checkwork-DDY5Zou5.js +0 -184
- package/useDoenetRenderer-CMXlgrx4.js +0 -109
|
@@ -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 {
|
|
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
|
@@ -1481,6 +1481,13 @@ 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-tooltip-anchor {
|
|
1485
|
+
display: inline;
|
|
1486
|
+
}
|
|
1487
|
+
.answer-response-tooltip {
|
|
1488
|
+
background-color: var(--mainGray);
|
|
1489
|
+
padding: 0.2em 0.5em;
|
|
1490
|
+
}
|
|
1484
1491
|
/* Customize the label (the container) */
|
|
1485
1492
|
.doenetml-boolean-container {
|
|
1486
1493
|
/* display: inline-block; */
|
|
@@ -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`
|
package/checkwork-DDY5Zou5.js
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports, q as Button$1 } from "./doenetml-C1a-oMqu.js";
|
|
2
|
-
import { F as FontAwesomeIcon } from "./index.es-DwVEXQe4.js";
|
|
3
|
-
import { a as faLevelDownAlt, b as faCheck, c as faTimes, d as faCloud } from "./index-CS9Bi7Fd.js";
|
|
4
|
-
import styled from "styled-components";
|
|
5
|
-
function AnswerResponseButton({
|
|
6
|
-
answerId,
|
|
7
|
-
answerComponentIdx,
|
|
8
|
-
activityId,
|
|
9
|
-
docId,
|
|
10
|
-
numResponses = 0
|
|
11
|
-
}) {
|
|
12
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
13
|
-
Button$1,
|
|
14
|
-
{
|
|
15
|
-
className: "doenet-button action-button answer-response-button",
|
|
16
|
-
onClick: () => {
|
|
17
|
-
window.postMessage({
|
|
18
|
-
subject: "requestAnswerResponses",
|
|
19
|
-
answerComponentIdx,
|
|
20
|
-
answerId,
|
|
21
|
-
activityId,
|
|
22
|
-
docId
|
|
23
|
-
});
|
|
24
|
-
},
|
|
25
|
-
children: numResponses
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
const Button = styled.button`
|
|
30
|
-
position: relative;
|
|
31
|
-
height: 24px;
|
|
32
|
-
display: inline-block;
|
|
33
|
-
color: white;
|
|
34
|
-
background-color: var(--mainBlue);
|
|
35
|
-
padding: 2px;
|
|
36
|
-
/* border: var(--mainBorder); */
|
|
37
|
-
border: none;
|
|
38
|
-
border-radius: var(--mainBorderRadius);
|
|
39
|
-
margin: 0px 4px 4px 0px;
|
|
40
|
-
|
|
41
|
-
&:hover {
|
|
42
|
-
background-color: var(--lightBlue);
|
|
43
|
-
color: black;
|
|
44
|
-
}
|
|
45
|
-
`;
|
|
46
|
-
function createCheckworkComponent(SVs, disabled, id, submitAnswer) {
|
|
47
|
-
let validationState = "unvalidated";
|
|
48
|
-
if (SVs.justSubmitted || SVs.numAttemptsLeft < 1) {
|
|
49
|
-
if (SVs.creditAchieved === 1) {
|
|
50
|
-
validationState = "correct";
|
|
51
|
-
} else if (SVs.creditAchieved === 0) {
|
|
52
|
-
validationState = "incorrect";
|
|
53
|
-
} else {
|
|
54
|
-
validationState = "partialcorrect";
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
let checkWorkStyle = {
|
|
58
|
-
cursor: "pointer",
|
|
59
|
-
padding: "1px 6px 1px 6px"
|
|
60
|
-
};
|
|
61
|
-
let checkWorkTabIndex = "0";
|
|
62
|
-
if (disabled) {
|
|
63
|
-
checkWorkStyle.backgroundColor = getComputedStyle(
|
|
64
|
-
document.documentElement
|
|
65
|
-
).getPropertyValue("--mainGray");
|
|
66
|
-
checkWorkStyle.color = "black";
|
|
67
|
-
checkWorkStyle.cursor = "not-allowed";
|
|
68
|
-
checkWorkTabIndex = "-1";
|
|
69
|
-
}
|
|
70
|
-
let checkWorkText = SVs.submitLabel;
|
|
71
|
-
if (!SVs.showCorrectness) {
|
|
72
|
-
checkWorkText = SVs.submitLabelNoCorrectness;
|
|
73
|
-
}
|
|
74
|
-
let checkworkComponent = /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
75
|
-
Button,
|
|
76
|
-
{
|
|
77
|
-
id: id + "_submit",
|
|
78
|
-
tabIndex: +checkWorkTabIndex,
|
|
79
|
-
disabled,
|
|
80
|
-
style: checkWorkStyle,
|
|
81
|
-
onClick: submitAnswer,
|
|
82
|
-
children: [
|
|
83
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
84
|
-
FontAwesomeIcon,
|
|
85
|
-
{
|
|
86
|
-
icon: faLevelDownAlt,
|
|
87
|
-
transform: { rotate: 90 }
|
|
88
|
-
}
|
|
89
|
-
),
|
|
90
|
-
" ",
|
|
91
|
-
checkWorkText
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
);
|
|
95
|
-
if (SVs.showCorrectness) {
|
|
96
|
-
if (validationState === "correct") {
|
|
97
|
-
checkWorkStyle.backgroundColor = getComputedStyle(
|
|
98
|
-
document.documentElement
|
|
99
|
-
).getPropertyValue("--mainGreen");
|
|
100
|
-
checkworkComponent = /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
101
|
-
Button,
|
|
102
|
-
{
|
|
103
|
-
id: id + "_correct",
|
|
104
|
-
style: checkWorkStyle,
|
|
105
|
-
tabIndex: +checkWorkTabIndex,
|
|
106
|
-
children: [
|
|
107
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(FontAwesomeIcon, { icon: faCheck }),
|
|
108
|
-
" Correct"
|
|
109
|
-
]
|
|
110
|
-
}
|
|
111
|
-
);
|
|
112
|
-
} else if (validationState === "incorrect") {
|
|
113
|
-
checkWorkStyle.backgroundColor = getComputedStyle(
|
|
114
|
-
document.documentElement
|
|
115
|
-
).getPropertyValue("--mainRed");
|
|
116
|
-
checkworkComponent = /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
117
|
-
Button,
|
|
118
|
-
{
|
|
119
|
-
id: id + "_incorrect",
|
|
120
|
-
style: checkWorkStyle,
|
|
121
|
-
tabIndex: +checkWorkTabIndex,
|
|
122
|
-
children: [
|
|
123
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(FontAwesomeIcon, { icon: faTimes }),
|
|
124
|
-
" Incorrect"
|
|
125
|
-
]
|
|
126
|
-
}
|
|
127
|
-
);
|
|
128
|
-
} else if (validationState === "partialcorrect") {
|
|
129
|
-
checkWorkStyle.backgroundColor = "#efab34";
|
|
130
|
-
let percent = Math.round(SVs.creditAchieved * 100);
|
|
131
|
-
let partialCreditContents = `${percent}% Correct`;
|
|
132
|
-
checkworkComponent = /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
133
|
-
Button,
|
|
134
|
-
{
|
|
135
|
-
id: id + "_partial",
|
|
136
|
-
style: checkWorkStyle,
|
|
137
|
-
tabIndex: +checkWorkTabIndex,
|
|
138
|
-
children: partialCreditContents
|
|
139
|
-
}
|
|
140
|
-
);
|
|
141
|
-
}
|
|
142
|
-
} else {
|
|
143
|
-
if (validationState !== "unvalidated") {
|
|
144
|
-
checkWorkStyle.backgroundColor = "rgb(74, 3, 217)";
|
|
145
|
-
checkworkComponent = /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
146
|
-
Button,
|
|
147
|
-
{
|
|
148
|
-
id: id + "_saved",
|
|
149
|
-
style: checkWorkStyle,
|
|
150
|
-
tabIndex: +checkWorkTabIndex,
|
|
151
|
-
children: [
|
|
152
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(FontAwesomeIcon, { icon: faCloud }),
|
|
153
|
-
" Response Saved"
|
|
154
|
-
]
|
|
155
|
-
}
|
|
156
|
-
);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
if (SVs.numAttemptsLeft < 0) {
|
|
160
|
-
checkworkComponent = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
161
|
-
checkworkComponent,
|
|
162
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "(no attempts remaining)" })
|
|
163
|
-
] });
|
|
164
|
-
} else if (SVs.numAttemptsLeft == 1) {
|
|
165
|
-
checkworkComponent = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
166
|
-
checkworkComponent,
|
|
167
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "(1 attempt remaining)" })
|
|
168
|
-
] });
|
|
169
|
-
} else if (Number.isFinite(SVs.numAttemptsLeft)) {
|
|
170
|
-
checkworkComponent = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
171
|
-
checkworkComponent,
|
|
172
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
|
|
173
|
-
"(",
|
|
174
|
-
SVs.numAttemptsLeft,
|
|
175
|
-
" attempts remaining)"
|
|
176
|
-
] })
|
|
177
|
-
] });
|
|
178
|
-
}
|
|
179
|
-
return checkworkComponent;
|
|
180
|
-
}
|
|
181
|
-
export {
|
|
182
|
-
AnswerResponseButton as A,
|
|
183
|
-
createCheckworkComponent as c
|
|
184
|
-
};
|