@doenet/doenetml 0.7.0-alpha10 → 0.7.0-alpha12
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 +3 -1
- package/EditorViewer/EditorViewer.d.ts.map +1 -1
- package/Viewer/ActivityViewer.d.ts +1 -1
- package/Viewer/ActivityViewer.d.ts.map +1 -1
- package/Viewer/renderers/mathInput.d.ts.map +1 -1
- package/{_error-jVNzF083.js → _error-BNb1wPaq.js} +1 -1
- package/{alert-Cy1uWKme.js → alert-CJ5KqG69.js} +2 -2
- package/{angle-Wlm1grTA.js → angle-DJV7H0NA.js} +2 -2
- package/{answer-14B8lecm.js → answer-Bat-m023.js} +1 -1
- package/{asList-D2YW_RvJ.js → asList-GMEjaFIM.js} +1 -1
- package/{blockQuote-ZEikAUtu.js → blockQuote-adVMOg2J.js} +2 -2
- package/{boolean-B-0NpYcc.js → boolean-BqJLSn9R.js} +1 -1
- package/{booleanInput-DEcpcWrj.js → booleanInput-m6sExedG.js} +2 -2
- package/{button-DoY7PhPx.js → button-BZ4fPSkZ.js} +2 -2
- package/{c-DzlrL05L.js → c-H1okV1KK.js} +2 -2
- package/{cell-DG4QcjnM.js → cell-CHC_0-BS.js} +2 -2
- package/{chart-DJ4DDqZy.js → chart-4Swsindk.js} +1 -1
- package/{choiceInput-F0Uu_FGB.js → choiceInput-DlTS3fNy.js} +1 -1
- package/{circle-D7ph9WAy.js → circle-dNrswAct.js} +2 -2
- package/{cobwebPolyline-5paYQxjf.js → cobwebPolyline-CqgpjlPu.js} +2 -2
- package/{codeEditor-BBxZoqoq.js → codeEditor-BkhGCbwJ.js} +1 -1
- package/{codeViewer-nx2-dYwW.js → codeViewer-BFSwaCv-.js} +1 -1
- package/{composites-BBCEFAj_.js → composites-BqYq4CH5.js} +1 -1
- package/{containerBlock-DMzVl5Ms.js → containerBlock-D4YsB1Q6.js} +2 -2
- package/{containerInline--E57wnbp.js → containerInline-BqdniIk6.js} +2 -2
- package/{contentBrowser-ChL9VY4B.js → contentBrowser-BMsV4YTv.js} +2 -2
- package/{contentPicker-4GyRkhDP.js → contentPicker-DSCvYxmH.js} +2 -2
- package/{curve-CQsPgQij.js → curve-CNPoDiUD.js} +2 -2
- package/{doenetml-DAkjPYTP.js → doenetml-Dne68l6W.js} +6015 -2108
- package/doenetml-inline-worker.d.ts +2 -0
- package/doenetml-inline-worker.d.ts.map +1 -0
- package/doenetml-inline-worker.js +2 -2
- package/doenetml.d.ts +5 -2
- package/doenetml.d.ts.map +1 -1
- package/{ellipsis-Dxz6_W3m.js → ellipsis-B0ynd7_T.js} +1 -1
- package/{em-CEgLXcTs.js → em-H5U5XvBA.js} +2 -2
- package/{embed-CwRkpxuR.js → embed-tZipaumg.js} +1 -1
- package/{feedback-B_X7z8FZ.js → feedback-CxCb7s3L.js} +2 -2
- package/{figure-DaIoYZ2f.js → figure-D-iM-h9h.js} +1 -1
- package/{footnote-BSDe1S7W.js → footnote-DBNwb4xv.js} +1 -1
- package/{graph-CwXLl26y.js → graph-C5t44GvT.js} +1 -1
- package/{hint-DChGj0d1.js → hint-DvRQC1MZ.js} +2 -2
- package/{image-DIdW9vpA.js → image-oJKeGU64.js} +2 -2
- package/index.d.ts +3 -3
- package/index.d.ts.map +1 -1
- package/{doenetml.js → index.js} +1 -1
- package/{label-jqpIp_zT.js → label-DMK0AuRa.js} +2 -2
- package/{legend-DT9aNnM5.js → legend-CiggAI2Z.js} +2 -2
- package/{line-D10sUzbH.js → line-BlY60fLK.js} +2 -2
- package/{lineSegment-BSUCusgw.js → lineSegment-C1LxkFvG.js} +2 -2
- package/{list-m7dq98hN.js → list-DOyGQfW4.js} +2 -2
- package/{lq-8dh8Kygs.js → lq-BE-j_328.js} +1 -1
- package/{lsq-DVoGvJGU.js → lsq-DGTCL3mf.js} +1 -1
- package/{math-D3IKbWkR.js → math-iTqcKJSk.js} +2 -2
- package/{mathInput-mKmXLbH8.js → mathInput-C7dmq-as.js} +30 -60
- package/{mathList-DYBLce-c.js → mathList-Tr3Pk-M_.js} +1 -1
- package/{matrixInput-DpNcnmy9.js → matrixInput-CXbO4hqv.js} +1 -1
- package/{mdash-BLogiTlN.js → mdash-3vnYaj5o.js} +1 -1
- package/{nbsp-D1jizDqn.js → nbsp-BD9BO4hA.js} +1 -1
- package/{ndash-CJqDJCBU.js → ndash-DWlmvOP5.js} +1 -1
- package/{number-BQUBPS_x.js → number-BZaYVIAf.js} +2 -2
- package/{numberList-CMni_MCD.js → numberList-Pd-LJ6Wo.js} +1 -1
- package/{orbitalDiagram-ZyTHh-mU.js → orbitalDiagram-DlJnUGra.js} +1 -1
- package/{orbitalDiagramInput-650eUTow.js → orbitalDiagramInput-DFzU-zg3.js} +1 -1
- package/{p-D3Wwkufn.js → p-BqsCSPWo.js} +2 -2
- package/package.json +3 -3
- package/{paginatorControls-WPaorrCf.js → paginatorControls-D52GhDxJ.js} +1 -1
- package/{pegboard-m3wVuHt1.js → pegboard-sCVEqok4.js} +2 -2
- package/{point-CSJ-R5Hs.js → point-Dg7GLAsg.js} +2 -2
- package/{polygon-zpPM4hns.js → polygon-BMBYLQz6.js} +2 -2
- package/{polyline-WuUII6Lq.js → polyline-B4KxmbnR.js} +2 -2
- package/{pre-grZkx5-b.js → pre-BFpSHszI.js} +2 -2
- package/{q-BPHeACJv.js → q-DXb-YgUj.js} +2 -2
- package/{ray-DcjWUOsX.js → ray-Cmtx5UzB.js} +2 -2
- package/{ref-BvmgWRHb.js → ref-BzwQEX_r.js} +1 -1
- package/{regionBetweenCurveXAxis-DiIb8G6X.js → regionBetweenCurveXAxis-BccEhT2c.js} +2 -2
- package/{regionBetweenCurves-5Ma0CM2m.js → regionBetweenCurves-DnMR7Hlg.js} +2 -2
- package/{row-DpvzgtDH.js → row-DZSWfCR4.js} +1 -1
- package/{rq-CdTeifVe.js → rq-CsE5CjHZ.js} +1 -1
- package/{rsq-CGUHW4fr.js → rsq-C4yMBTxf.js} +1 -1
- package/{section-BpdyMOaq.js → section-Bi9Cum4C.js} +2 -2
- package/{sideBySide-detTM118.js → sideBySide-pAkbqBDf.js} +1 -1
- package/{slider-CdiDrUaP.js → slider-DxI5oL5-.js} +1 -1
- package/{solution-BLFDbgDm.js → solution-Bq6DZCNU.js} +2 -2
- package/{spreadsheet-C-vwSPgJ.js → spreadsheet-BOJvyzc9.js} +1 -1
- package/{sq-BTee3sf7.js → sq-BjxGKBXn.js} +2 -2
- package/style.css +1401 -0
- package/{subsetOfRealsInput-BZMq4xkh.js → subsetOfRealsInput-CUOwGVyE.js} +1 -1
- package/{summaryStatistics-BerH2iDg.js → summaryStatistics-ClgQYgTD.js} +1 -1
- package/{table-Dcs_oFdr.js → table-CAy_ewwX.js} +1 -1
- package/{tabular-DidIfD40.js → tabular-UfdFVmh6.js} +1 -1
- package/{tag-C_-5mp74.js → tag-DiBS5Kwa.js} +1 -1
- package/{text-vFbJSWJl.js → text-BVn6Hhyo.js} +2 -2
- package/{textInput-DK59oHJF.js → textInput-N0efZNml.js} +2 -2
- package/{textList-BWvtUGkt.js → textList-Da3JclOF.js} +1 -1
- package/{vector-Dhd5JSM6.js → vector-CAbl8NMJ.js} +2 -2
- package/{video-COpxktCK.js → video-DtKtfKq-.js} +1 -1
- package/EditorViewer/ResizableSideBySide.d.ts +0 -10
- package/EditorViewer/ResizableSideBySide.d.ts.map +0 -1
- package/index-inline-worker.d.ts +0 -2
- package/index-inline-worker.d.ts.map +0 -1
package/doenetml.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { ErrorDescription } from '@doenet/utils';
|
|
2
3
|
|
|
3
4
|
export declare const version: string;
|
|
4
5
|
export type DoenetMLFlags = {
|
|
@@ -16,7 +17,7 @@ export type DoenetMLFlags = {
|
|
|
16
17
|
};
|
|
17
18
|
type DoenetMLFlagsSubset = Partial<DoenetMLFlags>;
|
|
18
19
|
export declare const defaultFlags: DoenetMLFlags;
|
|
19
|
-
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, }: {
|
|
20
21
|
doenetML: string;
|
|
21
22
|
flags?: DoenetMLFlagsSubset;
|
|
22
23
|
cid?: string;
|
|
@@ -54,8 +55,9 @@ export declare function DoenetViewer({ doenetML, flags: specifiedFlags, cid, act
|
|
|
54
55
|
scrollableContainer?: HTMLDivElement | Window;
|
|
55
56
|
darkMode?: string;
|
|
56
57
|
showAnswerTitles?: boolean;
|
|
58
|
+
includeVariantSelector?: boolean;
|
|
57
59
|
}): React.JSX.Element;
|
|
58
|
-
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, }: {
|
|
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, }: {
|
|
59
61
|
doenetML: string;
|
|
60
62
|
activityId?: string;
|
|
61
63
|
paginate?: boolean;
|
|
@@ -82,6 +84,7 @@ export declare function DoenetEditor({ doenetML, activityId, paginate, addVirtua
|
|
|
82
84
|
showFormatter?: boolean;
|
|
83
85
|
showErrorsWarnings?: boolean;
|
|
84
86
|
border?: string;
|
|
87
|
+
initialErrors?: ErrorDescription[];
|
|
85
88
|
}): React.JSX.Element;
|
|
86
89
|
export {};
|
|
87
90
|
//# sourceMappingURL=doenetml.d.ts.map
|
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;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,c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Renderer, j as jsxRuntimeExports } from "./doenetml-Dne68l6W.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-Dne68l6W.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
3
|
+
import { a as addCommasForCompositeRanges } from "./composites-BqYq4CH5.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-Dne68l6W.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-Dne68l6W.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-BqYq4CH5.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-Dne68l6W.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-Dne68l6W.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-Dne68l6W.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-Dne68l6W.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-BqYq4CH5.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-Dne68l6W.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-C5t44GvT.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.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export { DoenetViewer, DoenetEditor } from './doenetml';
|
|
2
|
+
export { mathjaxConfig, cidFromText, retrieveTextFileForCid, serializedComponentsReplacer, serializedComponentsReviver, } from '@doenet/utils';
|
|
3
|
+
export { calculateOrderAndVariants, determineNumberOfActivityVariants, parseActivityDefinition, returnNumberOfActivityVariantsForCid, } from './utils/activityUtils';
|
|
1
4
|
export { CodeMirror } from '@doenet/codemirror';
|
|
2
5
|
export { parseAndCompile } from '@doenet/parser';
|
|
3
|
-
export { DoenetViewer, DoenetEditor } from './doenetml';
|
|
4
|
-
export { mathjaxConfig, cidFromText, retrieveTextFileForCid, serializedComponentsReplacer, serializedComponentsReviver } from '@doenet/utils';
|
|
5
|
-
export { calculateOrderAndVariants, determineNumberOfActivityVariants, parseActivityDefinition, returnNumberOfActivityVariantsForCid } from './utils/activityUtils';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,EACH,aAAa,EACb,WAAW,EACX,sBAAsB,EACtB,4BAA4B,EAC5B,2BAA2B,GAE9B,MAAM,eAAe,CAAC;AACvB,OAAO,EACH,yBAAyB,EACzB,iCAAiC,EACjC,uBAAuB,EACvB,oCAAoC,GACvC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC"}
|
package/{doenetml.js → index.js}
RENAMED
|
@@ -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-Dne68l6W.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-C5t44GvT.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-Dne68l6W.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { BoardContext } from "./graph-
|
|
3
|
+
import { BoardContext } from "./graph-C5t44GvT.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-Dne68l6W.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-C5t44GvT.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-Dne68l6W.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-C5t44GvT.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-Dne68l6W.js";
|
|
2
2
|
import React__default, { useEffect } from "react";
|
|
3
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
3
|
+
import { a as addCommasForCompositeRanges } from "./composites-BqYq4CH5.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-Dne68l6W.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-Dne68l6W.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-Dne68l6W.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-C5t44GvT.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-Dne68l6W.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-Dne68l6W.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-Dne68l6W.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-Dne68l6W.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-Dne68l6W.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-Dne68l6W.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-Dne68l6W.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-C5t44GvT.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-Dne68l6W.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-Dne68l6W.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-Dne68l6W.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-Dne68l6W.js";
|
|
2
2
|
import React__default, { useEffect } from "react";
|
|
3
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
3
|
+
import { a as addCommasForCompositeRanges } from "./composites-BqYq4CH5.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-alpha12",
|
|
6
6
|
"license": "AGPL-3.0-or-later",
|
|
7
7
|
"homepage": "https://github.com/Doenet/DoenetML#readme",
|
|
8
8
|
"repository": "github:Doenet/DoenetML",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
],
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"import": "./
|
|
15
|
-
"require": "./
|
|
14
|
+
"import": "./index.js",
|
|
15
|
+
"require": "./index.js"
|
|
16
16
|
},
|
|
17
17
|
"./*": {
|
|
18
18
|
"import": "./*",
|
|
@@ -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-Dne68l6W.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-Dne68l6W.js";
|
|
3
|
+
import { BoardContext, BASE_LAYER_OFFSET } from "./graph-C5t44GvT.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-Dne68l6W.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-C5t44GvT.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-Dne68l6W.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-C5t44GvT.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-Dne68l6W.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-C5t44GvT.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-Dne68l6W.js";
|
|
2
2
|
import React__default, { useEffect } from "react";
|
|
3
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
3
|
+
import { a as addCommasForCompositeRanges } from "./composites-BqYq4CH5.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-Dne68l6W.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
3
|
+
import { a as addCommasForCompositeRanges } from "./composites-BqYq4CH5.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-Dne68l6W.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-C5t44GvT.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-Dne68l6W.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-Dne68l6W.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-C5t44GvT.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-Dne68l6W.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-C5t44GvT.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-Dne68l6W.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-Dne68l6W.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);
|