@doenet/doenetml 0.6.0-alpha3 → 0.6.0-alpha5

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.
Files changed (119) hide show
  1. package/dist/{ActionButtonGroup-f9a56616.js → ActionButtonGroup-cce60f98.js} +15 -16
  2. package/dist/{ToggleButton-8da16cc2.js → ToggleButton-67a72bb5.js} +7 -8
  3. package/dist/alert-33a70a3d.js +12 -0
  4. package/dist/{angle-40d0f6e5.js → angle-27255fe0.js} +4 -7
  5. package/dist/{answer-5f1c4979.js → answer-2afd88fa.js} +22 -24
  6. package/dist/{asList-c80d2031.js → asList-b1a434a8.js} +5 -7
  7. package/dist/blockQuote-8da178e1.js +22 -0
  8. package/dist/boolean-b742fe48.js +12 -0
  9. package/dist/{booleanInput-45df7ed1.js → booleanInput-9a61bf21.js} +13 -15
  10. package/dist/booleanInput.css +1 -0
  11. package/dist/{button-9c4d0fd2.js → button-0f49bac0.js} +15 -18
  12. package/dist/c-f11cfb55.js +12 -0
  13. package/dist/callAction-45217748.js +12 -0
  14. package/dist/{cell-fcd153d3.js → cell-0e133fa0.js} +5 -7
  15. package/dist/{chart-3891d729.js → chart-3fb05dec.js} +15 -17
  16. package/dist/{choiceInput-8b419109.js → choiceInput-06f9fe0d.js} +42 -43
  17. package/dist/choiceInput.css +1 -0
  18. package/dist/{circle-4ade8a0f.js → circle-58b448e4.js} +4 -7
  19. package/dist/{cobwebPolyline-18a1467d.js → cobwebPolyline-97c318ac.js} +4 -7
  20. package/dist/{codeEditor-af9a5cf1.js → codeEditor-a6457ef2.js} +19 -21
  21. package/dist/{codeViewer-df817eee.js → codeViewer-861c4813.js} +7 -9
  22. package/dist/containerBlock-c729c3c7.js +22 -0
  23. package/dist/containerInline-5f5c3422.js +12 -0
  24. package/dist/{contentBrowser-470db41c.js → contentBrowser-df4ee62e.js} +14 -16
  25. package/dist/{contentPicker-ecce4a79.js → contentPicker-d3e4b364.js} +9 -11
  26. package/dist/{curve-a6592419.js → curve-17572fc3.js} +4 -7
  27. package/dist/doenetml.js +15 -18
  28. package/dist/ellipsis-28863ba2.js +12 -0
  29. package/dist/em-65a27a36.js +12 -0
  30. package/dist/{embed-9bc2c461.js → embed-b47e5ea5.js} +9 -11
  31. package/dist/{feedback-a590c58f.js → feedback-3bbde9f2.js} +16 -18
  32. package/dist/{figure-a5ce1591.js → figure-7d10aba0.js} +3 -5
  33. package/dist/{footnote-5396cb55.js → footnote-c70ce2c5.js} +7 -9
  34. package/dist/{graph-102e9613.js → graph-d69449f2.js} +1 -3
  35. package/dist/{hint-5886a633.js → hint-c8e96cfa.js} +19 -21
  36. package/dist/{image-8e043789.js → image-19660806.js} +4 -6
  37. package/dist/{index-d3e0f79a.js → index-7481592c.js} +1 -1
  38. package/dist/{index-85d4fdb6.js → index-7912373f.js} +89797 -88659
  39. package/dist/{index-7998d090.js → index-9317ebc1.js} +1 -1
  40. package/dist/index.css +1 -0
  41. package/dist/{label-cdd6d4a5.js → label-b9c6a62a.js} +19 -22
  42. package/dist/{legend-52744e3c.js → legend-1fd4a6df.js} +8 -11
  43. package/dist/{line-c3fbafa6.js → line-d9273eb3.js} +17 -20
  44. package/dist/{lineSegment-ef21d787.js → lineSegment-d8c96e17.js} +4 -7
  45. package/dist/{list-4aecfe4d.js → list-f0b49f78.js} +11 -13
  46. package/dist/{lq-3b39cf5b.js → lq-90e8a033.js} +1 -3
  47. package/dist/lsq-8cac08e0.js +9 -0
  48. package/dist/{math-4beb47d1.js → math-8f654445.js} +4 -7
  49. package/dist/{mathInput-a8cc60be.js → mathInput-dbd1ba40.js} +6 -9
  50. package/dist/mathInput.css +1 -0
  51. package/dist/{mathInputog-1303492b.js → mathInputog-6d84c7f3.js} +2 -3
  52. package/dist/{mathList-dcb3e340.js → mathList-b458bb31.js} +9 -11
  53. package/dist/{matrixInput-f4bdc517.js → matrixInput-f651b375.js} +6 -9
  54. package/dist/mdash-6806bcce.js +9 -0
  55. package/dist/nbsp-fcc79f6e.js +9 -0
  56. package/dist/ndash-c720354c.js +9 -0
  57. package/dist/{number-6f1f3643.js → number-79d34feb.js} +4 -7
  58. package/dist/{numberList-a696789a.js → numberList-d50ce33a.js} +6 -8
  59. package/dist/{orbitalDiagram-b00c95a2.js → orbitalDiagram-4b563b6b.js} +32 -34
  60. package/dist/{orbitalDiagramInput-59420ea8.js → orbitalDiagramInput-76732581.js} +11 -13
  61. package/dist/p-5232cada.js +22 -0
  62. package/dist/{paginatorControls-f758f5a8.js → paginatorControls-b70730d0.js} +4 -6
  63. package/dist/{pegboard-9795cd51.js → pegboard-79f9c901.js} +14 -17
  64. package/dist/{point-545ffb65.js → point-d3f0e709.js} +4 -7
  65. package/dist/{polygon-fc4843a1.js → polygon-451f6aab.js} +4 -7
  66. package/dist/{polyline-7551a56f.js → polyline-b8610944.js} +4 -7
  67. package/dist/pre-f5c6b49a.js +22 -0
  68. package/dist/q-ea153de6.js +14 -0
  69. package/dist/{ray-782ed614.js → ray-8ebc8e35.js} +19 -22
  70. package/dist/{ref-08765c0f.js → ref-3f4e54aa.js} +18 -20
  71. package/dist/{regionBetweenCurveXAxis-fb8a3c9c.js → regionBetweenCurveXAxis-fa31ef83.js} +9 -12
  72. package/dist/{renderDoenetML-3a37978d.js → renderDoenetML-5fbe5a5f.js} +4 -6
  73. package/dist/{row-6e13f678.js → row-3a111c29.js} +5 -7
  74. package/dist/{rq-e36238a4.js → rq-be748d03.js} +3 -5
  75. package/dist/rsq-2ec34103.js +9 -0
  76. package/dist/{section-4746da87.js → section-5a53d600.js} +32 -34
  77. package/dist/{sideBySide-247e2dc5.js → sideBySide-8b21239b.js} +7 -9
  78. package/dist/{slider-e55a8838.js → slider-bc9bd636.js} +36 -38
  79. package/dist/{solution-ed56d868.js → solution-61675899.js} +26 -28
  80. package/dist/{spreadsheet-5cf21f01.js → spreadsheet-8f61699e.js} +10214 -10214
  81. package/dist/spreadsheet.css +41 -0
  82. package/dist/sq-08ee83a3.js +14 -0
  83. package/dist/{subsetOfRealsInput-e55e5c2b.js → subsetOfRealsInput-a151c105.js} +46 -48
  84. package/dist/{summaryStatistics-42f1a384.js → summaryStatistics-dc26ed99.js} +6 -8
  85. package/dist/{table-d99a11f9.js → table-48b11b9c.js} +9 -11
  86. package/dist/{tabular-398150dd.js → tabular-f3c4f0f4.js} +7 -9
  87. package/dist/tag-7ef067e8.js +17 -0
  88. package/dist/{text-00615612.js → text-bc66e68e.js} +50 -53
  89. package/dist/{textInput-26b3e2e2.js → textInput-cb97b103.js} +28 -30
  90. package/dist/textList-4fa2b394.js +20 -0
  91. package/dist/{triggerSet-d62aa283.js → triggerSet-47fe087c.js} +7 -9
  92. package/dist/updateValue-2620a937.js +20 -0
  93. package/dist/{vector-9d0a33ff.js → vector-1aaf00e9.js} +4 -7
  94. package/dist/{video-e7fd83ab.js → video-7b44cfcf.js} +14 -16
  95. package/package.json +6 -9
  96. package/dist/alert-e14bfd03.js +0 -14
  97. package/dist/blockQuote-71c980cc.js +0 -24
  98. package/dist/boolean-5855f758.js +0 -14
  99. package/dist/c-18bd5f9e.js +0 -14
  100. package/dist/callAction-13bd9520.js +0 -14
  101. package/dist/containerBlock-4624186b.js +0 -24
  102. package/dist/containerInline-44e4a079.js +0 -14
  103. package/dist/doenetml.umd.cjs +0 -20897
  104. package/dist/ellipsis-b157c3ba.js +0 -14
  105. package/dist/em-f951d01a.js +0 -14
  106. package/dist/lsq-5ad1e572.js +0 -11
  107. package/dist/mathInput-4ed993c7.js +0 -1
  108. package/dist/mdash-e8d37006.js +0 -11
  109. package/dist/nbsp-0a9573c6.js +0 -11
  110. package/dist/ndash-cb0f855e.js +0 -11
  111. package/dist/p-bbad4c3a.js +0 -24
  112. package/dist/pre-976f6d04.js +0 -24
  113. package/dist/q-138ac8a8.js +0 -16
  114. package/dist/rsq-5d347142.js +0 -11
  115. package/dist/sq-9b3da9df.js +0 -16
  116. package/dist/style.css +0 -41
  117. package/dist/tag-499e57c1.js +0 -19
  118. package/dist/textList-34576ab3.js +0 -22
  119. package/dist/updateValue-59710b32.js +0 -22
@@ -1,11 +1,8 @@
1
- import { u as R, d as x, e as S, h as p, j as l } from "./index-85d4fdb6.js";
1
+ import { u as R, d as x, e as S, h as p, j as l } from "./index-7912373f.js";
2
2
  import F, { useContext as O, useRef as v, useEffect as L } from "react";
3
- import { BoardContext as _, LINE_LAYER_OFFSET as y } from "./graph-102e9613.js";
4
- import "react-dom";
5
- import "styled-components";
6
- import "./css-ab4d83ca.js";
7
- const G = F.memo(function h(m) {
8
- let { name: j, id: o, SVs: e } = R(m);
3
+ import { BoardContext as _, LINE_LAYER_OFFSET as y } from "./graph-d69449f2.js";
4
+ const E = F.memo(function h(b) {
5
+ let { name: j, id: o, SVs: e } = R(b);
9
6
  h.ignoreActionsWithoutCore = () => !0;
10
7
  const t = O(_);
11
8
  let n = v(null), r = v(null);
@@ -13,7 +10,7 @@ const G = F.memo(function h(m) {
13
10
  L(() => () => {
14
11
  r.current !== null && s();
15
12
  }, []);
16
- function b() {
13
+ function g() {
17
14
  if (!e.haveFunction || e.boundaryValues.length !== 2 || !e.boundaryValues.every(Number.isFinite))
18
15
  return null;
19
16
  let i = c === "dark" ? e.selectedStyle.fillColorDarkMode : e.selectedStyle.fillColor, u = {
@@ -44,16 +41,16 @@ const G = F.memo(function h(m) {
44
41
  }
45
42
  if (t) {
46
43
  if (r.current === null)
47
- r.current = b();
44
+ r.current = g();
48
45
  else if (!e.haveFunction || e.boundaryValues.length !== 2 || !e.boundaryValues.every(Number.isFinite))
49
46
  s();
50
47
  else {
51
48
  let i = p(e.fDefinition);
52
49
  n.current.Y = i, r.current.visProp.visible = !e.hidden, r.current.visPropCalc.visible = !e.hidden;
53
- let [u, a] = e.boundaryValues, [g, C] = e.boundaryValues.map(i);
50
+ let [u, a] = e.boundaryValues, [m, C] = e.boundaryValues.map(i);
54
51
  r.current.curveLeft.coords.setCoordinates(JXG.COORDS_BY_USER, [
55
52
  u,
56
- g
53
+ m
57
54
  ]), r.current.curveRight.coords.setCoordinates(JXG.COORDS_BY_USER, [
58
55
  a,
59
56
  C
@@ -68,5 +65,5 @@ const G = F.memo(function h(m) {
68
65
  return e.hidden ? null : /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsx("a", { name: o }) });
69
66
  });
70
67
  export {
71
- G as default
68
+ E as default
72
69
  };
@@ -1,9 +1,7 @@
1
- import { u as n, j as s, V as u, I as c } from "./index-85d4fdb6.js";
1
+ import { u as n, j as s, V as u, J as c } from "./index-7912373f.js";
2
2
  import d, { useEffect as f } from "react";
3
- import "react-dom";
4
- import "styled-components";
5
- const w = d.memo(function(o) {
6
- let { name: g, id: i, SVs: t, children: m, actions: e, callAction: a } = n(o), r = (l) => {
3
+ const p = d.memo(function(o) {
4
+ let { name: g, id: i, SVs: t, children: h, actions: e, callAction: a } = n(o), r = (l) => {
7
5
  e.recordVisibilityChange && a({
8
6
  action: e.recordVisibilityChange,
9
7
  args: { isVisible: l }
@@ -37,5 +35,5 @@ const w = d.memo(function(o) {
37
35
  ) });
38
36
  });
39
37
  export {
40
- w as default
38
+ p as default
41
39
  };
@@ -1,14 +1,12 @@
1
- import { u as o, j as n } from "./index-85d4fdb6.js";
1
+ import { u as n, j as o } from "./index-7912373f.js";
2
2
  import d from "react";
3
- import "react-dom";
4
- import "styled-components";
5
- const c = d.memo(function(i) {
6
- let { name: m, id: r, SVs: e, children: l } = o(i);
3
+ const a = d.memo(function(i) {
4
+ let { name: m, id: r, SVs: e, children: l } = n(i);
7
5
  if (e.hidden)
8
6
  return null;
9
7
  let t = {};
10
- return e.valign !== null && (t.verticalAlign = e.valign), e.left !== "none" && (t.borderLeftStyle = "solid", e.left === "minor" ? t.borderLeftWidth = "thin" : e.left === "medium" ? t.borderLeftWidth = "medium" : t.borderLeftWidth = "thick"), /* @__PURE__ */ n.jsx("tr", { id: r, style: t, children: l });
8
+ return e.valign !== null && (t.verticalAlign = e.valign), e.left !== "none" && (t.borderLeftStyle = "solid", e.left === "minor" ? t.borderLeftWidth = "thin" : e.left === "medium" ? t.borderLeftWidth = "medium" : t.borderLeftWidth = "thick"), /* @__PURE__ */ o.jsx("tr", { id: r, style: t, children: l });
11
9
  });
12
10
  export {
13
- c as default
11
+ a as default
14
12
  };
@@ -1,11 +1,9 @@
1
- import { u as n, j as e } from "./index-85d4fdb6.js";
1
+ import { u as n, j as e } from "./index-7912373f.js";
2
2
  import o from "react";
3
- import "react-dom";
4
- import "styled-components";
5
- const f = o.memo(function(r) {
3
+ const m = o.memo(function(r) {
6
4
  let { SVs: t } = n(r, !1);
7
5
  return t.hidden ? null : /* @__PURE__ */ e.jsx(e.Fragment, { children: "”" });
8
6
  });
9
7
  export {
10
- f as default
8
+ m as default
11
9
  };
@@ -0,0 +1,9 @@
1
+ import { u as n, j as e } from "./index-7912373f.js";
2
+ import s from "react";
3
+ const m = s.memo(function(r) {
4
+ let { SVs: t } = n(r, !1);
5
+ return t.hidden ? null : /* @__PURE__ */ e.jsx(e.Fragment, { children: "’" });
6
+ });
7
+ export {
8
+ m as default
9
+ };
@@ -1,10 +1,8 @@
1
- import { u as R, j as e, F as p, J as B, K as w, V as f, f as S, a as A, b as V, c as T } from "./index-85d4fdb6.js";
1
+ import { u as R, j as e, F as p, K as B, N as w, V as f, f as S, a as A, b as V, c as T } from "./index-7912373f.js";
2
2
  import _, { useEffect as F, useRef as L } from "react";
3
- import "react-dom";
4
- import "styled-components";
5
- const W = _.memo(function(v) {
3
+ const G = _.memo(function(v) {
6
4
  var g;
7
- let { name: E, id: n, SVs: i, children: l, actions: x, callAction: m } = R(v), b = (r) => {
5
+ let { name: N, id: t, SVs: i, children: l, actions: x, callAction: m } = R(v), b = (r) => {
8
6
  m({
9
7
  action: x.recordVisibilityChange,
10
8
  args: { isVisible: r }
@@ -23,28 +21,28 @@ const W = _.memo(function(v) {
23
21
  };
24
22
  let j = () => m({
25
23
  action: x.submitAllAnswers
26
- }), t;
24
+ }), n;
27
25
  if (i.titleChildName) {
28
26
  for (let [r, h] of l.entries())
29
27
  if (((g = h == null ? void 0 : h.props) == null ? void 0 : g.componentInstructions.componentName) === i.titleChildName) {
30
- t = l[r], l.splice(r, 1);
28
+ n = l[r], l.splice(r, 1);
31
29
  break;
32
30
  }
33
31
  }
34
- t ? t = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
32
+ n ? n = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
35
33
  i.titlePrefix,
36
- t
37
- ] }) : i.inAList || (t = i.title);
38
- let a = null, u = n + "_title";
39
- i.collapsible && (i.open ? t = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
34
+ n
35
+ ] }) : i.inAList || (n = i.title);
36
+ let a = null, u = t + "_title";
37
+ i.collapsible && (i.open ? n = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
40
38
  /* @__PURE__ */ e.jsx(p, { icon: B }),
41
39
  " ",
42
- t,
40
+ n,
43
41
  " (click to close)"
44
- ] }) : t = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
42
+ ] }) : n = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
45
43
  /* @__PURE__ */ e.jsx(p, { icon: w }),
46
44
  " ",
47
- t,
45
+ n,
48
46
  " (click to open)"
49
47
  ] }));
50
48
  let c = {};
@@ -53,22 +51,22 @@ const W = _.memo(function(v) {
53
51
  marginBlockEnd: 0
54
52
  }), i.level) {
55
53
  case 0:
56
- a = /* @__PURE__ */ e.jsx("h1", { id: u, style: c, children: t });
54
+ a = /* @__PURE__ */ e.jsx("h1", { id: u, style: c, children: n });
57
55
  break;
58
56
  case 1:
59
- a = /* @__PURE__ */ e.jsx("h2", { id: u, style: c, children: t });
57
+ a = /* @__PURE__ */ e.jsx("h2", { id: u, style: c, children: n });
60
58
  break;
61
59
  case 2:
62
- a = /* @__PURE__ */ e.jsx("h3", { id: u, style: c, children: t });
60
+ a = /* @__PURE__ */ e.jsx("h3", { id: u, style: c, children: n });
63
61
  break;
64
62
  case 3:
65
- a = /* @__PURE__ */ e.jsx("h4", { id: u, style: c, children: t });
63
+ a = /* @__PURE__ */ e.jsx("h4", { id: u, style: c, children: n });
66
64
  break;
67
65
  case 4:
68
- a = /* @__PURE__ */ e.jsx("h5", { id: u, style: c, children: t });
66
+ a = /* @__PURE__ */ e.jsx("h5", { id: u, style: c, children: n });
69
67
  break;
70
68
  default:
71
- a = /* @__PURE__ */ e.jsx("h6", { id: u, style: c, children: t });
69
+ a = /* @__PURE__ */ e.jsx("h6", { id: u, style: c, children: n });
72
70
  break;
73
71
  }
74
72
  let s = null;
@@ -87,7 +85,7 @@ const W = _.memo(function(v) {
87
85
  if (i.showCorrectness || (h = i.submitLabelNoCorrectness), s = /* @__PURE__ */ e.jsxs(
88
86
  "button",
89
87
  {
90
- id: n + "_submit",
88
+ id: t + "_submit",
91
89
  tabIndex: "0",
92
90
  style: r,
93
91
  onClick: j,
@@ -102,22 +100,22 @@ const W = _.memo(function(v) {
102
100
  }
103
101
  ), i.showCorrectness) {
104
102
  if (o.current === "correct")
105
- r.backgroundColor = "var(--mainGreen)", s = /* @__PURE__ */ e.jsxs("span", { id: n + "_correct", style: r, children: [
103
+ r.backgroundColor = "var(--mainGreen)", s = /* @__PURE__ */ e.jsxs("span", { id: t + "_correct", style: r, children: [
106
104
  /* @__PURE__ */ e.jsx(p, { icon: A }),
107
105
  "  Correct"
108
106
  ] });
109
107
  else if (o.current === "incorrect")
110
- r.backgroundColor = "var(--mainRed)", s = /* @__PURE__ */ e.jsxs("span", { id: n + "_incorrect", style: r, children: [
108
+ r.backgroundColor = "var(--mainRed)", s = /* @__PURE__ */ e.jsxs("span", { id: t + "_incorrect", style: r, children: [
111
109
  /* @__PURE__ */ e.jsx(p, { icon: V }),
112
110
  "  Incorrect"
113
111
  ] });
114
112
  else if (o.current === "partialcorrect") {
115
113
  r.backgroundColor = "var(--mainYellow)";
116
114
  let C = `${Math.round(i.creditAchieved * 100)}% Correct`;
117
- s = /* @__PURE__ */ e.jsx("span", { id: n + "_partial", style: r, children: C });
115
+ s = /* @__PURE__ */ e.jsx("span", { id: t + "_partial", style: r, children: C });
118
116
  }
119
117
  } else
120
- o.current !== "unvalidated" && (r.backgroundColor = "var(--mainPurple)", s = /* @__PURE__ */ e.jsxs("span", { id: n + "_saved", style: r, children: [
118
+ o.current !== "unvalidated" && (r.backgroundColor = "var(--mainPurple)", s = /* @__PURE__ */ e.jsxs("span", { id: t + "_saved", style: r, children: [
121
119
  /* @__PURE__ */ e.jsx(p, { icon: T }),
122
120
  "  Response Saved"
123
121
  ] }));
@@ -125,7 +123,7 @@ const W = _.memo(function(v) {
125
123
  }
126
124
  i.asList && (l = /* @__PURE__ */ e.jsx("ol", { children: l.map((r) => /* @__PURE__ */ e.jsx("li", { children: r })) }));
127
125
  let d = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
128
- /* @__PURE__ */ e.jsx("a", { name: n }),
126
+ /* @__PURE__ */ e.jsx("a", { name: t }),
129
127
  a,
130
128
  l,
131
129
  s
@@ -159,7 +157,7 @@ const W = _.memo(function(v) {
159
157
  action: i.open ? x.closeSection : x.revealSection
160
158
  }),
161
159
  children: [
162
- /* @__PURE__ */ e.jsx("a", { name: n }),
160
+ /* @__PURE__ */ e.jsx("a", { name: t }),
163
161
  a
164
162
  ]
165
163
  }
@@ -189,7 +187,7 @@ const W = _.memo(function(v) {
189
187
  borderTopRightRadius: "var(--mainBorderRadius)"
190
188
  },
191
189
  children: [
192
- /* @__PURE__ */ e.jsx("a", { name: n }),
190
+ /* @__PURE__ */ e.jsx("a", { name: t }),
193
191
  a
194
192
  ]
195
193
  }
@@ -208,7 +206,7 @@ const W = _.memo(function(v) {
208
206
  {
209
207
  partialVisibility: !0,
210
208
  onChange: b,
211
- children: /* @__PURE__ */ e.jsxs("aside", { id: n, style: { margin: "12px 0" }, children: [
209
+ children: /* @__PURE__ */ e.jsxs("aside", { id: t, style: { margin: "12px 0" }, children: [
212
210
  " ",
213
211
  d,
214
212
  " "
@@ -221,7 +219,7 @@ const W = _.memo(function(v) {
221
219
  {
222
220
  partialVisibility: !0,
223
221
  onChange: b,
224
- children: /* @__PURE__ */ e.jsxs("article", { id: n, style: { margin: "12px 0" }, children: [
222
+ children: /* @__PURE__ */ e.jsxs("article", { id: t, style: { margin: "12px 0" }, children: [
225
223
  " ",
226
224
  d,
227
225
  " "
@@ -234,7 +232,7 @@ const W = _.memo(function(v) {
234
232
  {
235
233
  partialVisibility: !0,
236
234
  onChange: b,
237
- children: /* @__PURE__ */ e.jsxs("div", { id: n, style: { margin: "12px 0" }, children: [
235
+ children: /* @__PURE__ */ e.jsxs("div", { id: t, style: { margin: "12px 0" }, children: [
238
236
  " ",
239
237
  d,
240
238
  " "
@@ -249,7 +247,7 @@ const W = _.memo(function(v) {
249
247
  {
250
248
  partialVisibility: !0,
251
249
  onChange: b,
252
- children: /* @__PURE__ */ e.jsxs("section", { id: n, style: { margin: "12px 0" }, children: [
250
+ children: /* @__PURE__ */ e.jsxs("section", { id: t, style: { margin: "12px 0" }, children: [
253
251
  " ",
254
252
  d,
255
253
  " "
@@ -259,5 +257,5 @@ const W = _.memo(function(v) {
259
257
  }
260
258
  });
261
259
  export {
262
- W as default
260
+ G as default
263
261
  };
@@ -1,9 +1,7 @@
1
- import { u as y, j as t, V as x } from "./index-85d4fdb6.js";
1
+ import { u as y, j as t, V as x } from "./index-7912373f.js";
2
2
  import V, { useEffect as b } from "react";
3
- import "react-dom";
4
- import "styled-components";
5
- const W = V.memo(function(g) {
6
- let { name: C, id: n, SVs: i, children: s, actions: r, callAction: a } = y(g), m = (e) => {
3
+ const w = V.memo(function(g) {
4
+ let { name: C, id: n, SVs: i, children: s, actions: r, callAction: a } = y(g), c = (e) => {
7
5
  a({
8
6
  action: r.recordVisibilityChange,
9
7
  args: { isVisible: e }
@@ -17,9 +15,9 @@ const W = V.memo(function(g) {
17
15
  }, []), i.hidden)
18
16
  return null;
19
17
  let l = [];
20
- const c = i.margins[0], f = i.margins[1], u = s.length;
18
+ const m = i.margins[0], f = i.margins[1], u = s.length;
21
19
  for (let [e, d] of s.entries()) {
22
- let p = i.widths[e], o = c, h = f;
20
+ let p = i.widths[e], o = m, h = f;
23
21
  e > 0 && (o += i.gapWidth / 2), e < u - 1 && (h += i.gapWidth / 2), l.push(
24
22
  /* @__PURE__ */ t.jsx(
25
23
  "span",
@@ -35,7 +33,7 @@ const W = V.memo(function(g) {
35
33
  )
36
34
  );
37
35
  }
38
- return /* @__PURE__ */ t.jsx(x, { partialVisibility: !0, onChange: m, children: /* @__PURE__ */ t.jsxs(
36
+ return /* @__PURE__ */ t.jsx(x, { partialVisibility: !0, onChange: c, children: /* @__PURE__ */ t.jsxs(
39
37
  "div",
40
38
  {
41
39
  id: n,
@@ -48,5 +46,5 @@ const W = V.memo(function(g) {
48
46
  ) });
49
47
  });
50
48
  export {
51
- W as default
49
+ w as default
52
50
  };
@@ -1,8 +1,6 @@
1
- import { u as ne, R as re, r as se, j as l, E, M as H, C as ie } from "./index-85d4fdb6.js";
1
+ import { u as ne, R as re, r as se, j as l, s as D, G as E, M as H, C as ie } from "./index-7912373f.js";
2
2
  import ue, { useRef as K, useState as B, useEffect as J } from "react";
3
- import D from "styled-components";
4
- import { A as q } from "./ActionButtonGroup-f9a56616.js";
5
- import "react-dom";
3
+ import { A as q } from "./ActionButtonGroup-cce60f98.js";
6
4
  let I = (a, u) => ie.round_numbers_to_decimals(a, u).tree;
7
5
  const Q = D.div`
8
6
  width: fit-content;
@@ -50,17 +48,17 @@ const Q = D.div`
50
48
  user-select: none;
51
49
  `;
52
50
  function S(a, u, b, t) {
53
- let e, s = Math.max(Math.abs(t.firstItem), Math.abs(t.lastItem)), h = Math.round(Math.log(s) / Math.log(10));
54
- s === 0 && (h = 1);
55
- let O = 5 - h;
51
+ let e, s = Math.max(Math.abs(t.firstItem), Math.abs(t.lastItem)), m = Math.round(Math.log(s) / Math.log(10));
52
+ s === 0 && (m = 1);
53
+ let O = 5 - m;
56
54
  if (a.length === 0) {
57
55
  let r = [
58
56
  I(t.firstItem, O),
59
57
  I(t.lastItem, O)
60
58
  ], n = Math.min(t.numItems, 100), c = Math.floor(t.numItems / n);
61
- for (let m = 1; m < n; m++)
59
+ for (let h = 1; h < n; h++)
62
60
  r.push(
63
- I(t.from + t.step * m * c, O)
61
+ I(t.from + t.step * h * c, O)
64
62
  );
65
63
  e = F(r);
66
64
  } else {
@@ -70,9 +68,9 @@ function S(a, u, b, t) {
70
68
  const M = t.numItems;
71
69
  if (t.width.size > e * M)
72
70
  if (a.length === 0) {
73
- let r = [], n = [], c = Math.max(Math.abs(t.firstItem), Math.abs(t.lastItem)), m = Math.round(Math.log(c) / Math.log(10));
74
- c === 0 && (m = 1);
75
- let v = 5 - m;
71
+ let r = [], n = [], c = Math.max(Math.abs(t.firstItem), Math.abs(t.lastItem)), h = Math.round(Math.log(c) / Math.log(10));
72
+ c === 0 && (h = 1);
73
+ let v = 5 - h;
76
74
  for (let p = 0; p < t.numItems; p++) {
77
75
  let w = I(
78
76
  t.from + t.step * p,
@@ -105,10 +103,10 @@ function S(a, u, b, t) {
105
103
  } else if (t.width.size < e * M) {
106
104
  let r, n;
107
105
  if (a.length === 0) {
108
- let c = Math.floor(t.width.size / e), m = t.lastItem - t.firstItem, v = m / (c + 1), p = Math.max(Math.abs(t.firstItem), Math.abs(t.lastItem)), w = Math.round(Math.log(p) / Math.log(10)), $ = 1 - w, f = Math.max(
106
+ let c = Math.floor(t.width.size / e), h = t.lastItem - t.firstItem, v = h / (c + 1), p = Math.max(Math.abs(t.firstItem), Math.abs(t.lastItem)), w = Math.round(Math.log(p) / Math.log(10)), $ = 1 - w, f = Math.max(
109
107
  I(v, $),
110
108
  10 ** -$
111
- ), j = Math.floor(m / f) + 1, y = 5 - w;
109
+ ), j = Math.floor(h / f) + 1, y = 5 - w;
112
110
  n = [...Array(j).keys()].map(
113
111
  (A) => t.from + f * A
114
112
  ), r = n.map(
@@ -118,11 +116,11 @@ function S(a, u, b, t) {
118
116
  let c = Math.max(
119
117
  2,
120
118
  Math.floor(t.width.size / e)
121
- ), m = Math.ceil(
119
+ ), h = Math.ceil(
122
120
  (t.numItems - 1) / (c - 1) - 1e-10
123
- ), v = Math.floor((t.numItems - 1) / m + 1e-10) + 1;
121
+ ), v = Math.floor((t.numItems - 1) / h + 1e-10) + 1;
124
122
  r = [...Array(v).keys()].map(
125
- (f) => Math.round(m * f)
123
+ (f) => Math.round(h * f)
126
124
  );
127
125
  let p = Math.max(Math.abs(t.firstItem), Math.abs(t.lastItem)), $ = 2 - Math.round(Math.log(p) / Math.log(10));
128
126
  n = r.map(
@@ -130,8 +128,8 @@ function S(a, u, b, t) {
130
128
  );
131
129
  }
132
130
  return [
133
- r.map((c, m) => /* @__PURE__ */ l.jsx(T, { x: `${c * u}px` }, n[m])),
134
- r.map((c, m) => /* @__PURE__ */ l.jsx(k, { x: `${c * u}px`, children: n[m] }, n[m]))
131
+ r.map((c, h) => /* @__PURE__ */ l.jsx(T, { x: `${c * u}px` }, n[h])),
132
+ r.map((c, h) => /* @__PURE__ */ l.jsx(k, { x: `${c * u}px`, children: n[h] }, n[h]))
135
133
  ];
136
134
  } else
137
135
  return [
@@ -149,23 +147,23 @@ function ee(a, u, b) {
149
147
  const e = Object.keys(a).length;
150
148
  if (b.width.size > t * e)
151
149
  return [
152
- a.map((s, h) => /* @__PURE__ */ l.jsx(T, { x: `${h * u}px` }, s)),
153
- a.map((s, h) => /* @__PURE__ */ l.jsx(k, { x: `${h * u - 3}px`, children: s }, s))
150
+ a.map((s, m) => /* @__PURE__ */ l.jsx(T, { x: `${m * u}px` }, s)),
151
+ a.map((s, m) => /* @__PURE__ */ l.jsx(k, { x: `${m * u - 3}px`, children: s }, s))
154
152
  ];
155
153
  if (b.width.size < t)
156
154
  return [
157
- a.map((s, h) => h == 0 ? /* @__PURE__ */ l.jsx(T, { x: `${h * u}px` }, s) : ""),
158
- a.map((s, h) => {
159
- if (h == 0)
160
- return /* @__PURE__ */ l.jsx(k, { x: `${h * u - 3}px`, children: s }, s);
161
- if (h == 2)
162
- return /* @__PURE__ */ l.jsx(k, { x: `${h * u - 3}px`, children: "..." }, s);
155
+ a.map((s, m) => m == 0 ? /* @__PURE__ */ l.jsx(T, { x: `${m * u}px` }, s) : ""),
156
+ a.map((s, m) => {
157
+ if (m == 0)
158
+ return /* @__PURE__ */ l.jsx(k, { x: `${m * u - 3}px`, children: s }, s);
159
+ if (m == 2)
160
+ return /* @__PURE__ */ l.jsx(k, { x: `${m * u - 3}px`, children: "..." }, s);
163
161
  })
164
162
  ];
165
163
  if (b.width.size < t * e)
166
164
  return [
167
- a.map((s, h) => /* @__PURE__ */ l.jsx(T, { x: `${h * u}px` }, s)),
168
- a.map((s, h) => h == 0 || e === h + 1 ? /* @__PURE__ */ l.jsx(k, { x: `${h * u - 3}px`, children: s }, s) : /* @__PURE__ */ l.jsx(k, { x: `${h * u - 3}px`, children: s.length < 3 ? s : s.substr(0, 3) + "..." }, s))
165
+ a.map((s, m) => /* @__PURE__ */ l.jsx(T, { x: `${m * u}px` }, s)),
166
+ a.map((s, m) => m == 0 || e === m + 1 ? /* @__PURE__ */ l.jsx(k, { x: `${m * u - 3}px`, children: s }, s) : /* @__PURE__ */ l.jsx(k, { x: `${m * u - 3}px`, children: s.length < 3 ? s : s.substr(0, 3) + "..." }, s))
169
167
  ];
170
168
  }
171
169
  function te(a, u, b) {
@@ -178,10 +176,10 @@ function N(a, u, b) {
178
176
  ), e;
179
177
  return u.length === 0 ? e = b.from + b.step * t : e = u[t], [e, t];
180
178
  }
181
- const de = ue.memo(function a(u) {
182
- let { name: b, id: t, SVs: e, actions: s, ignoreUpdate: h, rendererName: O, callAction: M } = ne(u);
179
+ const he = ue.memo(function a(u) {
180
+ let { name: b, id: t, SVs: e, actions: s, ignoreUpdate: m, rendererName: O, callAction: M } = ne(u);
183
181
  a.baseStateVariable = "index";
184
- const r = K(null), n = re(se(O)), [c, m] = B(0), v = K(!1), [p, w] = B(0), $ = e.type === "text" ? 0 : e.firstItem;
182
+ const r = K(null), n = re(se(O)), [c, h] = B(0), v = K(!1), [p, w] = B(0), $ = e.type === "text" ? 0 : e.firstItem;
185
183
  let f = e.width.size / (e.numItems - 1);
186
184
  const [j, y] = B(0);
187
185
  if (J(() => {
@@ -190,7 +188,7 @@ const de = ue.memo(function a(u) {
190
188
  w(x.left);
191
189
  }
192
190
  }, []), J(() => {
193
- !v.current && !h && (y(e.index), e.type !== "text" ? m(e.index / (e.numItems - 1) * e.width.size) : m(e.index * f));
191
+ !v.current && !m && (y(e.index), e.type !== "text" ? h(e.index / (e.numItems - 1) * e.width.size) : h(e.index * f));
194
192
  }, [e.index]), e.hidden)
195
193
  return null;
196
194
  if (e.disabled) {
@@ -251,7 +249,7 @@ const de = ue.memo(function a(u) {
251
249
  );
252
250
  }
253
251
  function A(x) {
254
- if (v.current = !0, document.addEventListener("mousemove", W), document.addEventListener("mouseup", V), m(x.nativeEvent.clientX - p), e.type !== "text") {
252
+ if (v.current = !0, document.addEventListener("mousemove", W), document.addEventListener("mouseup", V), h(x.nativeEvent.clientX - p), e.type !== "text") {
255
253
  let i = te(
256
254
  x.nativeEvent.clientX - p,
257
255
  f,
@@ -287,7 +285,7 @@ const de = ue.memo(function a(u) {
287
285
  f,
288
286
  $
289
287
  ), o = N(d, e.items, e);
290
- y(o[1]), m(o[1] * f), n((g) => {
288
+ y(o[1]), h(o[1] * f), n((g) => {
291
289
  let z = { ...g };
292
290
  return z.ignoreUpdate = !0, z;
293
291
  }), M({
@@ -297,7 +295,7 @@ const de = ue.memo(function a(u) {
297
295
  });
298
296
  } else {
299
297
  let i = Math.round((x.clientX - p) / f);
300
- i = Math.max(0, Math.min(e.numItems - 1, i)), y(i), m(i * f), n((d) => {
298
+ i = Math.max(0, Math.min(e.numItems - 1, i)), y(i), h(i * f), n((d) => {
301
299
  let o = { ...d };
302
300
  return o.ignoreUpdate = !0, o;
303
301
  }), M({
@@ -309,7 +307,7 @@ const de = ue.memo(function a(u) {
309
307
  }
310
308
  function W(x) {
311
309
  if (v.current)
312
- if (m(
310
+ if (h(
313
311
  Math.max(0, Math.min(e.width.size, x.clientX - p))
314
312
  ), e.type !== "text") {
315
313
  let i = te(
@@ -434,5 +432,5 @@ const de = ue.memo(function a(u) {
434
432
  );
435
433
  });
436
434
  export {
437
- de as default
435
+ he as default
438
436
  };
@@ -1,8 +1,6 @@
1
- import { u as g, j as e, V as y, F as c, L as u } from "./index-85d4fdb6.js";
2
- import h, { useEffect as k } from "react";
3
- import R from "styled-components";
4
- import "react-dom";
5
- const S = R.span`
1
+ import { u as g, j as e, V as y, s as h, F as c, O as u } from "./index-7912373f.js";
2
+ import k, { useEffect as R } from "react";
3
+ const S = h.span`
6
4
  // display: block;
7
5
  // margin: SVs.open ? 12px 4px 0px 4px : 12px 4px 12px 4px;
8
6
  // padding: 6px;
@@ -17,24 +15,24 @@ const S = R.span`
17
15
  outline: 2px solid var(--canvastext);
18
16
  outline-offset: 2px;
19
17
  }
20
- `, E = h.memo(function(b) {
21
- let { name: V, id: a, SVs: o, children: m, actions: i, callAction: t } = g(b), f = (n) => {
22
- t({
18
+ `, B = k.memo(function(b) {
19
+ let { name: V, id: s, SVs: o, children: m, actions: i, callAction: n } = g(b), f = (t) => {
20
+ n({
23
21
  action: i.recordVisibilityChange,
24
- args: { isVisible: n }
22
+ args: { isVisible: t }
25
23
  });
26
24
  };
27
- k(() => () => {
28
- t({
25
+ R(() => () => {
26
+ n({
29
27
  action: i.recordVisibilityChange,
30
28
  args: { isVisible: !1 }
31
29
  });
32
30
  }, []);
33
- let l = "open";
31
+ let p = "open";
34
32
  if (o.hidden)
35
33
  return null;
36
- let s, d = null, x = { display: "none" }, r, p;
37
- return o.open ? (s = /* @__PURE__ */ e.jsx(c, { icon: u }), l = "close", d = m, x = {
34
+ let a, d = null, x = { display: "none" }, r, l;
35
+ return o.open ? (a = /* @__PURE__ */ e.jsx(c, { icon: u }), p = "close", d = m, x = {
38
36
  display: "block",
39
37
  margin: "0px 4px 12px 4px",
40
38
  padding: "6px",
@@ -43,25 +41,25 @@ const S = R.span`
43
41
  borderBottomLeftRadius: "5px",
44
42
  borderBottomRightRadius: "5px",
45
43
  backgroundColor: "var(--canvas)"
46
- }, p = (n) => {
47
- n.key === "Enter" && t({
44
+ }, l = (t) => {
45
+ t.key === "Enter" && n({
48
46
  action: i.closeSolution
49
47
  });
50
48
  }, o.canBeClosed ? r = () => {
51
- t({
49
+ n({
52
50
  action: i.closeSolution
53
51
  });
54
52
  } : r = () => {
55
- }) : (s = /* @__PURE__ */ e.jsx(c, { icon: u, rotation: 90 }), r = () => {
56
- t({
53
+ }) : (a = /* @__PURE__ */ e.jsx(c, { icon: u, rotation: 90 }), r = () => {
54
+ n({
57
55
  action: i.revealSolution
58
56
  });
59
- }, p = (n) => {
60
- n.key === "Enter" && t({
57
+ }, l = (t) => {
58
+ t.key === "Enter" && n({
61
59
  action: i.revealSolution
62
60
  });
63
- }), /* @__PURE__ */ e.jsx(y, { partialVisibility: !0, onChange: f, children: /* @__PURE__ */ e.jsxs("aside", { id: a, style: { margin: "12px 0" }, children: [
64
- /* @__PURE__ */ e.jsx("a", { name: a }),
61
+ }), /* @__PURE__ */ e.jsx(y, { partialVisibility: !0, onChange: f, children: /* @__PURE__ */ e.jsxs("aside", { id: s, style: { margin: "12px 0" }, children: [
62
+ /* @__PURE__ */ e.jsx("a", { name: s }),
65
63
  /* @__PURE__ */ e.jsxs(
66
64
  S,
67
65
  {
@@ -78,17 +76,17 @@ const S = R.span`
78
76
  cursor: "pointer"
79
77
  },
80
78
  tabIndex: "0",
81
- id: a + "_button",
79
+ id: s + "_button",
82
80
  onClick: r,
83
- onKeyDown: p,
81
+ onKeyDown: l,
84
82
  children: [
85
- s,
83
+ a,
86
84
  " ",
87
85
  o.sectionName,
88
86
  " ",
89
87
  o.message,
90
88
  " (click to ",
91
- l,
89
+ p,
92
90
  ")"
93
91
  ]
94
92
  }
@@ -97,5 +95,5 @@ const S = R.span`
97
95
  ] }) });
98
96
  });
99
97
  export {
100
- E as default
98
+ B as default
101
99
  };