@doenet/doenetml 0.7.0-alpha11 → 0.7.0-alpha13
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/mathInput.d.ts.map +1 -1
- package/{_error-CpDWODWX.js → _error-CFB2dqQi.js} +1 -1
- package/{alert-T-4wbTHR.js → alert-CALg00zV.js} +2 -2
- package/{angle-CohQZKnv.js → angle-3KId8PPa.js} +2 -2
- package/{answer-DKkKqAfG.js → answer-CJFVrXs9.js} +1 -1
- package/{asList-6p09BAvO.js → asList--DJsmIGY.js} +1 -1
- package/{blockQuote-C2T8mZAu.js → blockQuote-B2SVvPOo.js} +2 -2
- package/{boolean-CfxF8pdO.js → boolean-DaTphDAg.js} +1 -1
- package/{booleanInput-yaVO3Fmc.js → booleanInput-mjp7d_he.js} +2 -2
- package/{button-CtM2lqdB.js → button-rrXWqYxT.js} +2 -2
- package/{c-VAAxuw0-.js → c-D1jJLd11.js} +2 -2
- package/{cell-SnFtn0fa.js → cell-Cu9g6IOU.js} +2 -2
- package/{chart-q2ncIozQ.js → chart-CsR86Vbm.js} +1 -1
- package/{choiceInput-CKvjotDV.js → choiceInput-BJFP64vs.js} +1 -1
- package/{circle-BP_RVxHL.js → circle-B-K2wDIS.js} +2 -2
- package/{cobwebPolyline-BJaUtqWw.js → cobwebPolyline-DEUMlqcf.js} +2 -2
- package/{codeEditor-B4-uSL1D.js → codeEditor-PjMDtYJE.js} +1 -1
- package/{codeViewer-C-YAkowh.js → codeViewer-DSdCZ-3m.js} +1 -1
- package/{composites-DSgGEPRX.js → composites-B4d_qb1X.js} +1 -1
- package/{containerBlock-CHl4LV2w.js → containerBlock-DxPpOpbP.js} +2 -2
- package/{containerInline-C-HU2Ghb.js → containerInline-Bmc68_Vi.js} +2 -2
- package/{contentBrowser-DPYzXB3V.js → contentBrowser-eRckkC3v.js} +2 -2
- package/{contentPicker-xCbyQGf1.js → contentPicker-M8d3Ei6P.js} +2 -2
- package/{curve-CpjB-gX4.js → curve-KeK-qN7i.js} +2 -2
- package/{doenetml-PhohErMk.js → doenetml-CtJLfxyt.js} +5997 -2098
- package/doenetml-inline-worker.js +2 -2
- package/doenetml.d.ts +2 -1
- package/doenetml.d.ts.map +1 -1
- package/{ellipsis-D4FvvnyK.js → ellipsis-C2tY2yOV.js} +1 -1
- package/{em-BNmnwpQZ.js → em-LgHbEKCU.js} +2 -2
- package/{embed-Dud8pkvH.js → embed-z4IZTAUn.js} +1 -1
- package/{feedback-DLlAwALH.js → feedback-DAkOjcr5.js} +2 -2
- package/{figure-CXoDoh7P.js → figure-5eX0eP7z.js} +1 -1
- package/{footnote-C6KwVcno.js → footnote-CobGskpE.js} +1 -1
- package/{graph-CdEbh0Ro.js → graph-CYqlJi59.js} +1 -1
- package/{hint-1eaF26Mf.js → hint-DrEaMOWO.js} +2 -2
- package/{image-Bpz0dJmc.js → image-BckdjgSw.js} +2 -2
- package/index.js +1 -1
- package/{label-FPyBi10A.js → label-Ck_K9Mks.js} +2 -2
- package/{legend-CL-wtO6L.js → legend-1ba9bop8.js} +2 -2
- package/{line-rHK6zkuw.js → line-9K6ms_kY.js} +2 -2
- package/{lineSegment-DYjt_M4J.js → lineSegment-BpGZxfXf.js} +2 -2
- package/{list-D72PaV_9.js → list-B0AwR0SG.js} +2 -2
- package/{lq-B2k69EGr.js → lq-Dg0BFwak.js} +1 -1
- package/{lsq-D4tb6DvQ.js → lsq-D7-x7XKq.js} +1 -1
- package/{math-szQKPeZB.js → math-DdDnZUaE.js} +2 -2
- package/{mathInput-Dyur_KIe.js → mathInput-8acL0v5f.js} +30 -60
- package/{mathList-QaQjt10V.js → mathList-BnOBHnsq.js} +1 -1
- package/{matrixInput-CP3-cIM2.js → matrixInput-C5e9DwTQ.js} +1 -1
- package/{mdash-CgLPj02H.js → mdash-DtOeCy-n.js} +1 -1
- package/{nbsp-CYgXRVH2.js → nbsp-DA97MF-u.js} +1 -1
- package/{ndash-C6VHo7Gb.js → ndash-BiwrOcKN.js} +1 -1
- package/{number-Cu0JRm-6.js → number-CFYtLmcB.js} +2 -2
- package/{numberList-CkEwBbAf.js → numberList-B7qd51ru.js} +1 -1
- package/{orbitalDiagram-8KtMxCTl.js → orbitalDiagram-BdskokK2.js} +1 -1
- package/{orbitalDiagramInput-B6v_Tiok.js → orbitalDiagramInput-HXHteU3X.js} +1 -1
- package/{p-BQg9ayI_.js → p-dSvnRgQ2.js} +2 -2
- package/package.json +1 -1
- package/{paginatorControls-DWHDjymD.js → paginatorControls-CT86TzXW.js} +1 -1
- package/{pegboard-BP-D95dV.js → pegboard-Dn3VV5sZ.js} +2 -2
- package/{point-FC7hKxya.js → point-BHnms-H_.js} +2 -2
- package/{polygon-BmdAs1Ib.js → polygon-BdbfKquy.js} +2 -2
- package/{polyline-CcNXdVo0.js → polyline-C1J44bR1.js} +2 -2
- package/{pre-BqtkVtIP.js → pre-Djs_odob.js} +2 -2
- package/{q-DR2oENaM.js → q-LSyIR891.js} +2 -2
- package/{ray-CpLY1w6F.js → ray-DysrTWB9.js} +2 -2
- package/{ref-FjI0Y3K3.js → ref-CGAXDRS5.js} +1 -1
- package/{regionBetweenCurveXAxis-D2LogJz1.js → regionBetweenCurveXAxis-C5N2y2Dh.js} +2 -2
- package/{regionBetweenCurves-DdRlKAVj.js → regionBetweenCurves-IwcdN5v9.js} +2 -2
- package/{row-DsCvlAMy.js → row-CEoPWdqi.js} +1 -1
- package/{rq-Dgs4H49l.js → rq-CAjofWAV.js} +1 -1
- package/{rsq-BoFCbmSb.js → rsq-DBxz_uFq.js} +1 -1
- package/{section-DRpkIWAZ.js → section-BmKzuxwy.js} +2 -2
- package/{sideBySide-_6K3eCp7.js → sideBySide-DiKDq6i-.js} +1 -1
- package/{slider-DgSuyIuI.js → slider-CPNaM0ai.js} +1 -1
- package/{solution-CLpi8Jg7.js → solution-C36LkkTB.js} +2 -2
- package/{spreadsheet-9_YNU-jR.js → spreadsheet-DQbOrDLF.js} +1 -1
- package/{sq-N-rxBUyt.js → sq-D_xeHM2u.js} +2 -2
- package/style.css +1401 -0
- package/{subsetOfRealsInput-B390oaN_.js → subsetOfRealsInput-BdzUlFv_.js} +1 -1
- package/{summaryStatistics-D0CfTaBJ.js → summaryStatistics-DOHzEudE.js} +1 -1
- package/{table-D7PCtWEC.js → table-CuZ1z35c.js} +1 -1
- package/{tabular-mFKQEWdo.js → tabular-By9CQ0X4.js} +1 -1
- package/{tag-CEqOC375.js → tag-DKkB_GSJ.js} +1 -1
- package/{text-B1LvKWGx.js → text-onMOrqdT.js} +2 -2
- package/{textInput-BumnCL0m.js → textInput-CMWlWOKH.js} +2 -2
- package/{textList-BwCwyPEX.js → textList-BD1l9bqW.js} +1 -1
- package/{vector-ph0L6D9J.js → vector-CTARTRW6.js} +2 -2
- package/{video-C4oKZioa.js → video-BCFY-QV7.js} +1 -1
package/doenetml.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type DoenetMLFlags = {
|
|
|
17
17
|
};
|
|
18
18
|
type DoenetMLFlagsSubset = Partial<DoenetMLFlags>;
|
|
19
19
|
export declare const defaultFlags: DoenetMLFlags;
|
|
20
|
-
export declare function DoenetViewer({ doenetML, flags: specifiedFlags, cid, activityId, userId, attemptNumber, requestedVariantIndex, updateCreditAchievedCallback, updateActivityStatusCallback, updateAttemptNumber, pageChangedCallback, paginate, showFinishButton, cidChangedCallback, checkIfCidChanged, setActivityAsCompleted, setIsInErrorState, apiURLs, generatedVariantCallback, setErrorsAndWarningsCallback, forceDisable, forceShowCorrectness, forceShowSolution, forceUnsuppressCheckwork, addVirtualKeyboard, addBottomPadding, location, navigate, updateDataOnContentChange, idsIncludeActivityId, linkSettings, scrollableContainer, darkMode, showAnswerTitles, }: {
|
|
20
|
+
export declare function DoenetViewer({ doenetML, flags: specifiedFlags, cid, activityId, userId, attemptNumber, requestedVariantIndex, updateCreditAchievedCallback, updateActivityStatusCallback, updateAttemptNumber, pageChangedCallback, paginate, showFinishButton, cidChangedCallback, checkIfCidChanged, setActivityAsCompleted, setIsInErrorState, apiURLs, generatedVariantCallback: specifiedGeneratedVariantCallback, setErrorsAndWarningsCallback, forceDisable, forceShowCorrectness, forceShowSolution, forceUnsuppressCheckwork, addVirtualKeyboard, addBottomPadding, location, navigate, updateDataOnContentChange, idsIncludeActivityId, linkSettings, scrollableContainer, darkMode, showAnswerTitles, includeVariantSelector, }: {
|
|
21
21
|
doenetML: string;
|
|
22
22
|
flags?: DoenetMLFlagsSubset;
|
|
23
23
|
cid?: string;
|
|
@@ -55,6 +55,7 @@ export declare function DoenetViewer({ doenetML, flags: specifiedFlags, cid, act
|
|
|
55
55
|
scrollableContainer?: HTMLDivElement | Window;
|
|
56
56
|
darkMode?: string;
|
|
57
57
|
showAnswerTitles?: boolean;
|
|
58
|
+
includeVariantSelector?: boolean;
|
|
58
59
|
}): React.JSX.Element;
|
|
59
60
|
export declare function DoenetEditor({ doenetML, activityId, paginate, addVirtualKeyboard, addBottomPadding, location, navigate, idsIncludeActivityId, linkSettings, darkMode, showAnswerTitles, width, height, viewerLocation, backgroundColor, showViewer, doenetmlChangeCallback, immediateDoenetmlChangeCallback, id, readOnly, showFormatter, showErrorsWarnings, border, initialErrors, }: {
|
|
60
61
|
doenetML: string;
|
package/doenetml.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doenetml.d.ts","sourceRoot":"","sources":["../src/doenetml.tsx"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC;AAGxB,OAAO,
|
|
1
|
+
{"version":3,"file":"doenetml.d.ts","sourceRoot":"","sources":["../src/doenetml.tsx"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC;AAGxB,OAAO,KAAwC,MAAM,OAAO,CAAC;AAI7D,OAAO,EAAiB,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGhE,OAAO,oCAAoC,CAAC;AAI5C,eAAO,MAAM,OAAO,EAAE,MAAyB,CAAC;AAEhD,MAAM,MAAM,aAAa,GAAG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AM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACtC,qBA8CA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
const ellipsis = React__default.memo(function Ellipsis(props) {
|
|
4
4
|
let { name, id, SVs } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
3
|
+
import { a as addCommasForCompositeRanges } from "./composites-B4d_qb1X.js";
|
|
4
4
|
const em = React__default.memo(function Em(props) {
|
|
5
5
|
let { name, id, SVs, children } = useDoenetRenderer(props);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useEffect } from "react";
|
|
3
3
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
4
4
|
const embed = React__default.memo(function Figure(props) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor, F as FontAwesomeIcon } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor, F as FontAwesomeIcon } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useEffect } from "react";
|
|
3
3
|
import { f as faComment } from "./index-Cmul9E2n.js";
|
|
4
4
|
import styled from "styled-components";
|
|
5
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
5
|
+
import { a as addCommasForCompositeRanges } from "./composites-B4d_qb1X.js";
|
|
6
6
|
const FeedbackStyling = styled.aside`
|
|
7
7
|
background-color: var(--canvas);
|
|
8
8
|
margin: 0px 4px 12px 4px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as PropTypes, _ as _extends, u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor } from "./doenetml-
|
|
1
|
+
import { Y as PropTypes, _ as _extends, u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { createElement, Component, useEffect, useState } from "react";
|
|
3
3
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
4
4
|
if (null == r) return {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useState } from "react";
|
|
3
3
|
const footnote = React__default.memo(function Footnote(props) {
|
|
4
4
|
let { name, id, SVs } = useDoenetRenderer(props, false);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor, n as Context, w as cesc } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor, n as Context, w as cesc } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useState, useRef, useEffect, createContext } from "react";
|
|
3
3
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
4
4
|
var __webpack_modules__ = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor, F as FontAwesomeIcon, z as faLightbulb } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor, F as FontAwesomeIcon, z as faLightbulb } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useEffect } from "react";
|
|
3
3
|
import { a as faLightbulb$1 } from "./index-Cmul9E2n.js";
|
|
4
4
|
import styled from "styled-components";
|
|
5
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
5
|
+
import { a as addCommasForCompositeRanges } from "./composites-B4d_qb1X.js";
|
|
6
6
|
const SpanStyling = styled.span`
|
|
7
7
|
&: focus {
|
|
8
8
|
outline: 2px solid var(--canvastext);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, A as retrieveMediaForCid, n as Context, j as jsxRuntimeExports, V as VisibilitySensor } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, A as retrieveMediaForCid, n as Context, j as jsxRuntimeExports, V as VisibilitySensor } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useState, useRef, useContext, useEffect } from "react";
|
|
3
|
-
import { BoardContext, IMAGE_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { BoardContext, IMAGE_LAYER_OFFSET } from "./graph-CYqlJi59.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
5
|
const image = React__default.memo(function Image(props) {
|
|
6
6
|
var _a;
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, P as PageContext, n as Context, j as jsxRuntimeExports, E as textRendererStyle, M as MathJax } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, P as PageContext, n as Context, j as jsxRuntimeExports, E as textRendererStyle, M as MathJax } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useRef, useContext, useEffect } from "react";
|
|
3
|
-
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-CYqlJi59.js";
|
|
4
4
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-DhkJvcM2.js";
|
|
5
5
|
const label = React__default.memo(function Label(props) {
|
|
6
6
|
let { name, id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, G as deepCompare, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, G as deepCompare, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { BoardContext } from "./graph-
|
|
3
|
+
import { BoardContext } from "./graph-CYqlJi59.js";
|
|
4
4
|
const legend = React__default.memo(function Legend(props) {
|
|
5
5
|
let { name, id, SVs } = useDoenetRenderer(props);
|
|
6
6
|
const board = useContext(BoardContext);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, P as PageContext, j as jsxRuntimeExports, E as textRendererStyle, M as MathJax } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, P as PageContext, j as jsxRuntimeExports, E as textRendererStyle, M as MathJax } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-CYqlJi59.js";
|
|
4
4
|
const line = React__default.memo(function Line(props) {
|
|
5
5
|
var _a;
|
|
6
6
|
let { name, id, SVs, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, P as PageContext, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, P as PageContext, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { BoardContext, LINE_LAYER_OFFSET, VERTEX_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { BoardContext, LINE_LAYER_OFFSET, VERTEX_LAYER_OFFSET } from "./graph-CYqlJi59.js";
|
|
4
4
|
const lineSegment = React__default.memo(function LineSegment(props) {
|
|
5
5
|
let { name, id, SVs, actions, sourceOfUpdate, callAction } = useDoenetRenderer(props);
|
|
6
6
|
LineSegment.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useEffect } from "react";
|
|
3
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
3
|
+
import { a as addCommasForCompositeRanges } from "./composites-B4d_qb1X.js";
|
|
4
4
|
const list = React__default.memo(function List(props) {
|
|
5
5
|
let { name, id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
6
6
|
let onChangeVisibility = (isVisible) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
const lq = React__default.memo(function Lq(props) {
|
|
4
4
|
let { SVs } = useDoenetRenderer(props, false);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
const lsq = React__default.memo(function Lsq(props) {
|
|
4
4
|
let { SVs } = useDoenetRenderer(props, false);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, P as PageContext, n as Context, j as jsxRuntimeExports, w as cesc, E as textRendererStyle, M as MathJax } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, P as PageContext, n as Context, j as jsxRuntimeExports, w as cesc, E as textRendererStyle, M as MathJax } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useRef, useContext, useEffect } from "react";
|
|
3
|
-
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-CYqlJi59.js";
|
|
4
4
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-DhkJvcM2.js";
|
|
5
5
|
const math = React__default.memo(function MathComponent(props) {
|
|
6
6
|
let { name, id, SVs, actions, sourceOfUpdate, callAction } = useDoenetRenderer(props);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Z as commonjsGlobal, u as useDoenetRenderer, x as Recoil_index_24, y as rendererState, P as PageContext, $ as focusedMathField, a0 as focusedMathFieldReturn, a1 as
|
|
1
|
+
import { Z as commonjsGlobal, u as useDoenetRenderer, x as Recoil_index_24, y as rendererState, P as PageContext, $ as focusedMathField, a0 as focusedMathFieldReturn, a1 as Recoil_index_22, a2 as palletRef, j as jsxRuntimeExports, F as FontAwesomeIcon, h as faLevelDownAlt, i as faCheck, k as faTimes, l as faCloud, M as MathJax } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useState, useRef, useContext } from "react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
/* empty css */
|
|
@@ -21077,6 +21077,8 @@ function MathInput(props) {
|
|
|
21077
21077
|
const [mathField, setMathField] = useState(null);
|
|
21078
21078
|
const [focused, setFocused] = useState(null);
|
|
21079
21079
|
const textareaRef = useRef(null);
|
|
21080
|
+
const lastKeyboardAccessTime = useRef(0);
|
|
21081
|
+
const keyboardCausedBlur = useRef(false);
|
|
21080
21082
|
const setRendererState = Recoil_index_24(rendererState(rendererName));
|
|
21081
21083
|
const { showAnswerTitles } = useContext(PageContext) || {};
|
|
21082
21084
|
let rendererValue = useRef(SVs.rawRendererValue);
|
|
@@ -21090,8 +21092,7 @@ function MathInput(props) {
|
|
|
21090
21092
|
let validationState = useRef(null);
|
|
21091
21093
|
const setFocusedField = Recoil_index_24(focusedMathField);
|
|
21092
21094
|
const setFocusedFieldReturn = Recoil_index_24(focusedMathFieldReturn);
|
|
21093
|
-
const containerRef =
|
|
21094
|
-
const dragHandleRef = Recoil_index_20(handleRef);
|
|
21095
|
+
const [containerRef, setContainerRef] = Recoil_index_22(palletRef);
|
|
21095
21096
|
const updateValidationState = () => {
|
|
21096
21097
|
validationState.current = "unvalidated";
|
|
21097
21098
|
if (SVs.valueHasBeenValidated) {
|
|
@@ -21104,31 +21105,22 @@ function MathInput(props) {
|
|
|
21104
21105
|
}
|
|
21105
21106
|
}
|
|
21106
21107
|
};
|
|
21107
|
-
const handleVirtualKeyboardClick = (
|
|
21108
|
-
|
|
21109
|
-
if (!
|
|
21110
|
-
console.log("Empty value");
|
|
21108
|
+
const handleVirtualKeyboardClick = ({ type, command, timestamp }) => {
|
|
21109
|
+
lastKeyboardAccessTime.current = timestamp;
|
|
21110
|
+
if (!mathField || !keyboardCausedBlur.current) {
|
|
21111
21111
|
return;
|
|
21112
21112
|
}
|
|
21113
|
-
|
|
21114
|
-
|
|
21115
|
-
|
|
21116
|
-
if (
|
|
21117
|
-
mathField.
|
|
21118
|
-
} else if (
|
|
21119
|
-
mathField.
|
|
21120
|
-
} else if (
|
|
21121
|
-
mathField.
|
|
21122
|
-
} else if (command == "type") {
|
|
21123
|
-
mathField.typedText(input);
|
|
21113
|
+
mathField.focus();
|
|
21114
|
+
if (type == "cmd") {
|
|
21115
|
+
mathField.cmd(command);
|
|
21116
|
+
} else if (type == "write") {
|
|
21117
|
+
mathField.write(command);
|
|
21118
|
+
} else if (type == "keystroke") {
|
|
21119
|
+
mathField.keystroke(command);
|
|
21120
|
+
} else if (type == "type") {
|
|
21121
|
+
mathField.typedText(command);
|
|
21124
21122
|
}
|
|
21125
21123
|
};
|
|
21126
|
-
const handleDefaultVirtualKeyboardClick = (text) => {
|
|
21127
|
-
console.log("no mathinput field focused");
|
|
21128
|
-
};
|
|
21129
|
-
const handleDefaultVirtualKeyboardReturn = (text) => {
|
|
21130
|
-
console.log("no mathinput field focused");
|
|
21131
|
-
};
|
|
21132
21124
|
const handlePressEnter = (e) => {
|
|
21133
21125
|
callAction({
|
|
21134
21126
|
action: actions.updateValue,
|
|
@@ -21140,30 +21132,26 @@ function MathInput(props) {
|
|
|
21140
21132
|
});
|
|
21141
21133
|
}
|
|
21142
21134
|
};
|
|
21143
|
-
|
|
21135
|
+
React__default.useEffect(() => {
|
|
21136
|
+
if (!mathField || mathField.el() !== containerRef) {
|
|
21137
|
+
return;
|
|
21138
|
+
}
|
|
21144
21139
|
setFocusedField(() => handleVirtualKeyboardClick);
|
|
21140
|
+
}, [mathField, containerRef]);
|
|
21141
|
+
const handleFocus = (e) => {
|
|
21142
|
+
if (mathField) {
|
|
21143
|
+
setContainerRef(mathField.el());
|
|
21144
|
+
}
|
|
21145
21145
|
setFocusedFieldReturn(() => handlePressEnter);
|
|
21146
21146
|
setFocused(true);
|
|
21147
21147
|
};
|
|
21148
21148
|
const handleBlur = (e) => {
|
|
21149
|
-
|
|
21150
|
-
|
|
21151
|
-
|
|
21152
|
-
|
|
21153
|
-
}, 100);
|
|
21154
|
-
} else if ((_b = dragHandleRef == null ? void 0 : dragHandleRef.current) == null ? void 0 : _b.contains(e.relatedTarget)) {
|
|
21155
|
-
setTimeout(() => {
|
|
21156
|
-
mathField.focus();
|
|
21157
|
-
}, 100);
|
|
21158
|
-
} else {
|
|
21159
|
-
callAction({
|
|
21160
|
-
action: actions.updateValue,
|
|
21161
|
-
baseVariableValue: rendererValue.current
|
|
21162
|
-
});
|
|
21163
|
-
setFocusedField(() => handleDefaultVirtualKeyboardClick);
|
|
21164
|
-
setFocusedFieldReturn(() => handleDefaultVirtualKeyboardReturn);
|
|
21165
|
-
}
|
|
21149
|
+
callAction({
|
|
21150
|
+
action: actions.updateValue,
|
|
21151
|
+
baseVariableValue: rendererValue.current
|
|
21152
|
+
});
|
|
21166
21153
|
setFocused(false);
|
|
21154
|
+
keyboardCausedBlur.current = Math.abs(lastKeyboardAccessTime.current - /* @__PURE__ */ new Date()) < 100;
|
|
21167
21155
|
};
|
|
21168
21156
|
const onChangeHandler = (text) => {
|
|
21169
21157
|
var _a;
|
|
@@ -21331,24 +21319,6 @@ function MathInput(props) {
|
|
|
21331
21319
|
substituteTextarea: function() {
|
|
21332
21320
|
textareaRef.current = document.createElement("textarea");
|
|
21333
21321
|
textareaRef.current.disabled = SVs.disabled;
|
|
21334
|
-
textareaRef.current.addEventListener(
|
|
21335
|
-
"focusout",
|
|
21336
|
-
(e) => {
|
|
21337
|
-
let keyboards = Array.from(
|
|
21338
|
-
document.getElementsByClassName(
|
|
21339
|
-
"keyboardcontainer"
|
|
21340
|
-
)
|
|
21341
|
-
);
|
|
21342
|
-
keyboards.forEach((keyboard) => {
|
|
21343
|
-
if (keyboard == null ? void 0 : keyboard.contains(
|
|
21344
|
-
e.relatedTarget
|
|
21345
|
-
)) {
|
|
21346
|
-
e.target.focus();
|
|
21347
|
-
}
|
|
21348
|
-
});
|
|
21349
|
-
},
|
|
21350
|
-
false
|
|
21351
|
-
);
|
|
21352
21322
|
return textareaRef.current;
|
|
21353
21323
|
}
|
|
21354
21324
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports, M as MathJax } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports, M as MathJax } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
const mathList = React__default.memo(function MathList(props) {
|
|
4
4
|
let { name, id, SVs, children } = useDoenetRenderer(props);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, P as PageContext, j as jsxRuntimeExports, F as FontAwesomeIcon, h as faLevelDownAlt, i as faCheck, k as faTimes, l as faCloud, I as ActionButtonGroup, J as ActionButton } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, P as PageContext, j as jsxRuntimeExports, F as FontAwesomeIcon, h as faLevelDownAlt, i as faCheck, k as faTimes, l as faCloud, I as ActionButtonGroup, J as ActionButton } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useRef, useContext } from "react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
/* empty css */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
const mdash = React__default.memo(function Ndash(props) {
|
|
4
4
|
let { SVs } = useDoenetRenderer(props, false);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
const nbsp = React__default.memo(function Nbsp(props) {
|
|
4
4
|
let { SVs } = useDoenetRenderer(props, false);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
const ndash = React__default.memo(function Ndash(props) {
|
|
4
4
|
let { SVs } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, P as PageContext, n as Context, j as jsxRuntimeExports, E as textRendererStyle, M as MathJax } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, P as PageContext, n as Context, j as jsxRuntimeExports, E as textRendererStyle, M as MathJax } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useRef, useContext, useEffect } from "react";
|
|
3
|
-
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-CYqlJi59.js";
|
|
4
4
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-DhkJvcM2.js";
|
|
5
5
|
const number = React__default.memo(function NumberComponent(props) {
|
|
6
6
|
let { name, id, SVs, actions, sourceOfUpdate, callAction } = useDoenetRenderer(props);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
const numberList = React__default.memo(function MathList(props) {
|
|
4
4
|
let { name, id, SVs, children } = useDoenetRenderer(props);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { createRef, useEffect } from "react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
const Box = styled.svg`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor, B as Button$1 } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor, B as Button$1 } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { createRef, useEffect } from "react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
const Box = styled.svg`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useEffect } from "react";
|
|
3
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
3
|
+
import { a as addCommasForCompositeRanges } from "./composites-B4d_qb1X.js";
|
|
4
4
|
const p = React__default.memo(function P(props) {
|
|
5
5
|
let { name, id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
6
6
|
let onChangeVisibility = (isVisible) => {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@doenet/doenetml",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "Semantic markup for building interactive web activities",
|
|
5
|
-
"version": "0.7.0-
|
|
5
|
+
"version": "0.7.0-alpha13",
|
|
6
6
|
"license": "AGPL-3.0-or-later",
|
|
7
7
|
"homepage": "https://github.com/Doenet/DoenetML#readme",
|
|
8
8
|
"repository": "github:Doenet/DoenetML",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports, B as Button$1 } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports, B as Button$1 } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
const paginatorControls = React__default.memo(function PaginatorControls(props) {
|
|
4
4
|
let { name, id, SVs, actions, callAction } = useDoenetRenderer(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
2
|
-
import { u as useDoenetRenderer, n as Context } from "./doenetml-
|
|
3
|
-
import { BoardContext, BASE_LAYER_OFFSET } from "./graph-
|
|
2
|
+
import { u as useDoenetRenderer, n as Context } from "./doenetml-CtJLfxyt.js";
|
|
3
|
+
import { BoardContext, BASE_LAYER_OFFSET } from "./graph-CYqlJi59.js";
|
|
4
4
|
const pegboard = React__default.memo(function Pegboard(props) {
|
|
5
5
|
var _a;
|
|
6
6
|
let { name, id, SVs, actions, sourceOfUpdate, callAction } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, P as PageContext, j as jsxRuntimeExports, E as textRendererStyle, M as MathJax } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, P as PageContext, j as jsxRuntimeExports, E as textRendererStyle, M as MathJax } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { BoardContext, POINT_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { BoardContext, POINT_LAYER_OFFSET } from "./graph-CYqlJi59.js";
|
|
4
4
|
import { c as characterizeOffGraphPoint } from "./offGraphIndicators-4rjyYdQV.js";
|
|
5
5
|
import { n as normalizePointStyle, c as normalizePointSize, d as adjustPointLabelPosition, e as calculatePointLabelAnchor } from "./graph-DhkJvcM2.js";
|
|
6
6
|
const point = React__default.memo(function Point(props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, P as PageContext, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, P as PageContext, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { BoardContext, LINE_LAYER_OFFSET, VERTEX_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { BoardContext, LINE_LAYER_OFFSET, VERTEX_LAYER_OFFSET } from "./graph-CYqlJi59.js";
|
|
4
4
|
const polygon = React__default.memo(function Polygon(props) {
|
|
5
5
|
let { name, id, SVs, actions, sourceOfUpdate, callAction } = useDoenetRenderer(props);
|
|
6
6
|
Polygon.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, P as PageContext, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, P as PageContext, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { BoardContext, LINE_LAYER_OFFSET, VERTEX_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { BoardContext, LINE_LAYER_OFFSET, VERTEX_LAYER_OFFSET } from "./graph-CYqlJi59.js";
|
|
4
4
|
const polyline = React__default.memo(function Polyline(props) {
|
|
5
5
|
let { name, id, SVs, actions, sourceOfUpdate, callAction } = useDoenetRenderer(props);
|
|
6
6
|
Polyline.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useEffect } from "react";
|
|
3
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
3
|
+
import { a as addCommasForCompositeRanges } from "./composites-B4d_qb1X.js";
|
|
4
4
|
const pre = React__default.memo(function Pre(props) {
|
|
5
5
|
let { name, id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
6
6
|
let onChangeVisibility = (isVisible) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
3
|
+
import { a as addCommasForCompositeRanges } from "./composites-B4d_qb1X.js";
|
|
4
4
|
const q = React__default.memo(function Q(props) {
|
|
5
5
|
let { name, id, SVs, children } = useDoenetRenderer(props);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, P as PageContext, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, P as PageContext, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-CYqlJi59.js";
|
|
4
4
|
const ray = React__default.memo(function Ray(props) {
|
|
5
5
|
let { name, id, SVs, actions, sourceOfUpdate, callAction } = useDoenetRenderer(props);
|
|
6
6
|
Ray.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, P as PageContext, K as getURLFromRef, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, P as PageContext, K as getURLFromRef, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useContext } from "react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
const RefButton = styled.button`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, P as PageContext, o as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, P as PageContext, o as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-CYqlJi59.js";
|
|
4
4
|
const regionBetweenCurveXAxis = React__default.memo(function RegionBetweenCurveXAxis(props) {
|
|
5
5
|
let { name, id, SVs } = useDoenetRenderer(props);
|
|
6
6
|
RegionBetweenCurveXAxis.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, P as PageContext, o as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, P as PageContext, o as createFunctionFromDefinition, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-CYqlJi59.js";
|
|
4
4
|
const regionBetweenCurves = React__default.memo(function RegionBetweenCurves(props) {
|
|
5
5
|
let { name, id, SVs } = useDoenetRenderer(props);
|
|
6
6
|
RegionBetweenCurves.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
const row = React__default.memo(function Row(props) {
|
|
4
4
|
let { name, id, SVs, children } = useDoenetRenderer(props);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
const rq = React__default.memo(function Rq(props) {
|
|
4
4
|
let { SVs } = useDoenetRenderer(props, false);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
const rsq = React__default.memo(function Rsq(props) {
|
|
4
4
|
let { SVs } = useDoenetRenderer(props, false);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports, F as FontAwesomeIcon, L as faCaretDown, N as faCaretRight, V as VisibilitySensor, h as faLevelDownAlt, i as faCheck, k as faTimes, l as faCloud } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports, F as FontAwesomeIcon, L as faCaretDown, N as faCaretRight, V as VisibilitySensor, h as faLevelDownAlt, i as faCheck, k as faTimes, l as faCloud } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useEffect, useRef } from "react";
|
|
3
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
3
|
+
import { a as addCommasForCompositeRanges } from "./composites-B4d_qb1X.js";
|
|
4
4
|
const section = React__default.memo(function Section(props) {
|
|
5
5
|
var _a;
|
|
6
6
|
let { name, id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useEffect } from "react";
|
|
3
3
|
const sideBySide = React__default.memo(function sideBySide2(props) {
|
|
4
4
|
let { name, id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, x as Recoil_index_24, y as rendererState, j as jsxRuntimeExports, I as ActionButtonGroup, J as ActionButton, M as MathJax, n as Context } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, x as Recoil_index_24, y as rendererState, j as jsxRuntimeExports, I as ActionButtonGroup, J as ActionButton, M as MathJax, n as Context } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useRef, useState, useEffect } from "react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
let round_to_decimals = (x, n) => Context.round_numbers_to_decimals(x, n).tree;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor, F as FontAwesomeIcon, O as faPuzzlePiece } from "./doenetml-
|
|
1
|
+
import { u as useDoenetRenderer, j as jsxRuntimeExports, V as VisibilitySensor, F as FontAwesomeIcon, O as faPuzzlePiece } from "./doenetml-CtJLfxyt.js";
|
|
2
2
|
import React__default, { useEffect } from "react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites-B4d_qb1X.js";
|
|
5
5
|
const SpanStyling = styled.span`
|
|
6
6
|
// display: block;
|
|
7
7
|
// margin: SVs.open ? 12px 4px 0px 4px : 12px 4px 12px 4px;
|