@doenet/doenetml 0.6.0-alpha4 → 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-31bfb1b3.js → ActionButtonGroup-cce60f98.js} +15 -16
  2. package/dist/{ToggleButton-0de1d1ad.js → ToggleButton-67a72bb5.js} +7 -8
  3. package/dist/alert-33a70a3d.js +12 -0
  4. package/dist/{angle-6303c120.js → angle-27255fe0.js} +4 -7
  5. package/dist/{answer-b6e2b76b.js → answer-2afd88fa.js} +22 -24
  6. package/dist/{asList-f29800e2.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-aa010bde.js → booleanInput-9a61bf21.js} +13 -15
  10. package/dist/booleanInput.css +1 -0
  11. package/dist/{button-11f3ce47.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-c960b90f.js → cell-0e133fa0.js} +5 -7
  15. package/dist/{chart-023bde15.js → chart-3fb05dec.js} +15 -17
  16. package/dist/{choiceInput-de46af5c.js → choiceInput-06f9fe0d.js} +42 -43
  17. package/dist/choiceInput.css +1 -0
  18. package/dist/{circle-f81b0ce2.js → circle-58b448e4.js} +4 -7
  19. package/dist/{cobwebPolyline-36398f33.js → cobwebPolyline-97c318ac.js} +4 -7
  20. package/dist/{codeEditor-fd87d345.js → codeEditor-a6457ef2.js} +19 -21
  21. package/dist/{codeViewer-c43574e8.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-a8846036.js → contentBrowser-df4ee62e.js} +14 -16
  25. package/dist/{contentPicker-5d94aee4.js → contentPicker-d3e4b364.js} +9 -11
  26. package/dist/{curve-3c32f52c.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-d76b6d41.js → embed-b47e5ea5.js} +9 -11
  31. package/dist/{feedback-ba6007b5.js → feedback-3bbde9f2.js} +16 -18
  32. package/dist/{figure-dba5c46d.js → figure-7d10aba0.js} +3 -5
  33. package/dist/{footnote-2d1dd0b3.js → footnote-c70ce2c5.js} +7 -9
  34. package/dist/{graph-6d43a295.js → graph-d69449f2.js} +1 -3
  35. package/dist/{hint-49a1f4dd.js → hint-c8e96cfa.js} +19 -21
  36. package/dist/{image-08c5648a.js → image-19660806.js} +4 -6
  37. package/dist/{index-44cba13f.js → index-7481592c.js} +1 -1
  38. package/dist/{index-1fe56d63.js → index-7912373f.js} +89788 -88658
  39. package/dist/{index-89409889.js → index-9317ebc1.js} +1 -1
  40. package/dist/index.css +1 -0
  41. package/dist/{label-c4255bb7.js → label-b9c6a62a.js} +19 -22
  42. package/dist/{legend-8a6252a7.js → legend-1fd4a6df.js} +8 -11
  43. package/dist/{line-d1d8ea00.js → line-d9273eb3.js} +17 -20
  44. package/dist/{lineSegment-15ae7c77.js → lineSegment-d8c96e17.js} +4 -7
  45. package/dist/{list-7404c656.js → list-f0b49f78.js} +11 -13
  46. package/dist/{lq-5ade7be1.js → lq-90e8a033.js} +1 -3
  47. package/dist/lsq-8cac08e0.js +9 -0
  48. package/dist/{math-f332495e.js → math-8f654445.js} +4 -7
  49. package/dist/{mathInput-dba9b45f.js → mathInput-dbd1ba40.js} +6 -9
  50. package/dist/mathInput.css +1 -0
  51. package/dist/{mathInputog-4d940ee5.js → mathInputog-6d84c7f3.js} +2 -3
  52. package/dist/{mathList-40fa12ed.js → mathList-b458bb31.js} +9 -11
  53. package/dist/{matrixInput-88797a87.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-3bbc6035.js → number-79d34feb.js} +4 -7
  58. package/dist/{numberList-1327be8e.js → numberList-d50ce33a.js} +6 -8
  59. package/dist/{orbitalDiagram-19b6f7cc.js → orbitalDiagram-4b563b6b.js} +32 -34
  60. package/dist/{orbitalDiagramInput-3338fef1.js → orbitalDiagramInput-76732581.js} +11 -13
  61. package/dist/p-5232cada.js +22 -0
  62. package/dist/{paginatorControls-fa58eb04.js → paginatorControls-b70730d0.js} +4 -6
  63. package/dist/{pegboard-a1474de3.js → pegboard-79f9c901.js} +14 -17
  64. package/dist/{point-1a6406f1.js → point-d3f0e709.js} +4 -7
  65. package/dist/{polygon-beb8998f.js → polygon-451f6aab.js} +4 -7
  66. package/dist/{polyline-6909b72f.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-924469a6.js → ray-8ebc8e35.js} +19 -22
  70. package/dist/{ref-c04324bd.js → ref-3f4e54aa.js} +18 -20
  71. package/dist/{regionBetweenCurveXAxis-88c574b3.js → regionBetweenCurveXAxis-fa31ef83.js} +9 -12
  72. package/dist/{renderDoenetML-30a09380.js → renderDoenetML-5fbe5a5f.js} +4 -6
  73. package/dist/{row-9d0dd9b6.js → row-3a111c29.js} +5 -7
  74. package/dist/{rq-8871d38f.js → rq-be748d03.js} +3 -5
  75. package/dist/rsq-2ec34103.js +9 -0
  76. package/dist/{section-62b11261.js → section-5a53d600.js} +32 -34
  77. package/dist/{sideBySide-f4409af1.js → sideBySide-8b21239b.js} +7 -9
  78. package/dist/{slider-d2d21eec.js → slider-bc9bd636.js} +36 -38
  79. package/dist/{solution-24ca310d.js → solution-61675899.js} +26 -28
  80. package/dist/{spreadsheet-b22ce017.js → spreadsheet-8f61699e.js} +2 -2
  81. package/dist/spreadsheet.css +41 -0
  82. package/dist/sq-08ee83a3.js +14 -0
  83. package/dist/{subsetOfRealsInput-f1530700.js → subsetOfRealsInput-a151c105.js} +46 -48
  84. package/dist/{summaryStatistics-5328d69f.js → summaryStatistics-dc26ed99.js} +6 -8
  85. package/dist/{table-f0250db5.js → table-48b11b9c.js} +9 -11
  86. package/dist/{tabular-14305157.js → tabular-f3c4f0f4.js} +7 -9
  87. package/dist/tag-7ef067e8.js +17 -0
  88. package/dist/{text-7df7d444.js → text-bc66e68e.js} +50 -53
  89. package/dist/{textInput-abbe8a72.js → textInput-cb97b103.js} +28 -30
  90. package/dist/textList-4fa2b394.js +20 -0
  91. package/dist/{triggerSet-88520bfe.js → triggerSet-47fe087c.js} +7 -9
  92. package/dist/updateValue-2620a937.js +20 -0
  93. package/dist/{vector-3d487c1f.js → vector-1aaf00e9.js} +4 -7
  94. package/dist/{video-438560fd.js → video-7b44cfcf.js} +14 -16
  95. package/package.json +6 -9
  96. package/dist/alert-2f90cc72.js +0 -14
  97. package/dist/blockQuote-4be59e9a.js +0 -24
  98. package/dist/boolean-4cad6c61.js +0 -14
  99. package/dist/c-0431b8c4.js +0 -14
  100. package/dist/callAction-845e6eea.js +0 -14
  101. package/dist/containerBlock-69ae5478.js +0 -24
  102. package/dist/containerInline-8ec824bc.js +0 -14
  103. package/dist/doenetml.umd.cjs +0 -20897
  104. package/dist/ellipsis-fef08d11.js +0 -14
  105. package/dist/em-e6a08864.js +0 -14
  106. package/dist/lsq-734012bd.js +0 -11
  107. package/dist/mathInput-4ed993c7.js +0 -1
  108. package/dist/mdash-df0e40e7.js +0 -11
  109. package/dist/nbsp-ab2fca18.js +0 -11
  110. package/dist/ndash-3b71f713.js +0 -11
  111. package/dist/p-9d23a34a.js +0 -24
  112. package/dist/pre-df87553f.js +0 -24
  113. package/dist/q-146f150b.js +0 -16
  114. package/dist/rsq-7fff414a.js +0 -11
  115. package/dist/sq-140828b8.js +0 -16
  116. package/dist/style.css +0 -41
  117. package/dist/tag-cd067754.js +0 -19
  118. package/dist/textList-0afecfe3.js +0 -22
  119. package/dist/updateValue-b7933086.js +0 -22
@@ -1,40 +1,38 @@
1
- import { u as g, j as i, V as j } from "./index-1fe56d63.js";
2
- import f, { createRef as u, useEffect as D } from "react";
3
- import O from "styled-components";
4
- import "react-dom";
5
- const U = O.svg`
1
+ import { u as g, j as i, V as j, s as u } from "./index-7912373f.js";
2
+ import f, { createRef as D, useEffect as O } from "react";
3
+ const U = u.svg`
6
4
  border: "2px solid red";
7
5
  margin: 2px;
8
6
  outline: none;
9
- `, T = f.memo(function(t) {
10
- let { name: l, id: r, SVs: e, actions: n, callAction: s } = g(t), a = u(e.fixed);
7
+ `, v = f.memo(function(t) {
8
+ let { name: l, id: s, SVs: e, actions: n, callAction: r } = g(t), a = D(e.fixed);
11
9
  a.current = e.fixed;
12
10
  let d = (o) => {
13
- s({
11
+ r({
14
12
  action: n.recordVisibilityChange,
15
13
  args: { isVisible: o }
16
14
  });
17
15
  };
18
- if (D(() => () => {
19
- s({
16
+ if (O(() => () => {
17
+ r({
20
18
  action: n.recordVisibilityChange,
21
19
  args: { isVisible: !1 }
22
20
  });
23
21
  }, []), e.hidden || !e.value)
24
22
  return null;
25
23
  let x = [...e.value].reverse(), h = [];
26
- for (let [o, p] of Object.entries(x)) {
27
- let c = x.length - o - 1;
24
+ for (let [o, c] of Object.entries(x)) {
25
+ let p = x.length - o - 1;
28
26
  h.push(
29
27
  /* @__PURE__ */ i.jsx(
30
28
  R,
31
29
  {
32
- rowNumber: c,
33
- orbitalText: p.orbitalText,
34
- boxes: p.boxes,
35
- name: r
30
+ rowNumber: p,
31
+ orbitalText: c.orbitalText,
32
+ boxes: c.boxes,
33
+ name: s
36
34
  },
37
- `OrbitalRow${c}`
35
+ `OrbitalRow${p}`
38
36
  )
39
37
  );
40
38
  }
@@ -42,7 +40,7 @@ const U = O.svg`
42
40
  }), R = f.memo(function({
43
41
  rowNumber: t,
44
42
  orbitalText: l,
45
- boxes: r,
43
+ boxes: s,
46
44
  name: e
47
45
  }) {
48
46
  let n = {
@@ -54,11 +52,11 @@ const U = O.svg`
54
52
  marginBottom: "2px",
55
53
  padding: "2px",
56
54
  border: "white solid 2px"
57
- }, s = [];
58
- for (let [a, d] of Object.entries(r))
59
- s.push(
55
+ }, r = [];
56
+ for (let [a, d] of Object.entries(s))
57
+ r.push(
60
58
  /* @__PURE__ */ i.jsx(
61
- V,
59
+ W,
62
60
  {
63
61
  boxNum: a,
64
62
  rowNumber: t,
@@ -76,27 +74,27 @@ const U = O.svg`
76
74
  style: n,
77
75
  children: [
78
76
  /* @__PURE__ */ i.jsx(
79
- m,
77
+ V,
80
78
  {
81
79
  orbitalText: l,
82
80
  rowNumber: t,
83
81
  name: e
84
82
  }
85
83
  ),
86
- s
84
+ r
87
85
  ]
88
86
  },
89
87
  `OrbitalRow${t}`
90
88
  );
91
- }), m = f.memo(function({
89
+ }), V = f.memo(function({
92
90
  rowNumber: t,
93
91
  orbitalText: l,
94
- name: r
92
+ name: s
95
93
  }) {
96
94
  return /* @__PURE__ */ i.jsx(
97
95
  "div",
98
96
  {
99
- id: `OrbitalText${t}${r}`,
97
+ id: `OrbitalText${t}${s}`,
100
98
  style: {
101
99
  marginRight: "4px",
102
100
  height: "14px",
@@ -108,10 +106,10 @@ const U = O.svg`
108
106
  children: l
109
107
  }
110
108
  );
111
- }), V = f.memo(function({
109
+ }), W = f.memo(function({
112
110
  boxNum: t,
113
111
  arrows: l = "",
114
- rowNumber: r,
112
+ rowNumber: s,
115
113
  name: e
116
114
  }) {
117
115
  const n = /* @__PURE__ */ i.jsx(
@@ -122,7 +120,7 @@ const U = O.svg`
122
120
  style: { fill: "none", stroke: "black", strokeWidth: "2" }
123
121
  },
124
122
  `orbitalboxfirstUp${t}`
125
- ), s = /* @__PURE__ */ i.jsx(
123
+ ), r = /* @__PURE__ */ i.jsx(
126
124
  "polyline",
127
125
  {
128
126
  id: `firstDown${t}`,
@@ -163,15 +161,15 @@ const U = O.svg`
163
161
  },
164
162
  `orbitalboxthirdDown${t}`
165
163
  );
166
- let o = [], [p, c, y] = l.split("");
167
- p == "U" && o.push(n), p == "D" && o.push(s), c == "U" && o.push(a), c == "D" && o.push(d), y == "U" && o.push(x), y == "D" && o.push(h);
164
+ let o = [], [c, p, y] = l.split("");
165
+ c == "U" && o.push(n), c == "D" && o.push(r), p == "U" && o.push(a), p == "D" && o.push(d), y == "U" && o.push(x), y == "D" && o.push(h);
168
166
  let k = 40;
169
167
  y && (k = 56);
170
168
  let w = "black", $ = "2px";
171
169
  return /* @__PURE__ */ i.jsxs(
172
170
  U,
173
171
  {
174
- id: `orbitalbox${e}${r}-${t}`,
172
+ id: `orbitalbox${e}${s}-${t}`,
175
173
  tabIndex: "-1",
176
174
  width: k,
177
175
  height: "40",
@@ -201,5 +199,5 @@ const U = O.svg`
201
199
  );
202
200
  });
203
201
  export {
204
- T as default
202
+ v as default
205
203
  };
@@ -1,15 +1,13 @@
1
- import { u as O, j as o, V as A } from "./index-1fe56d63.js";
2
- import j, { createRef as U, useEffect as S } from "react";
3
- import V from "styled-components";
4
- import "react-dom";
5
- const W = V.svg`
1
+ import { u as A, j as o, V as m, s as U } from "./index-7912373f.js";
2
+ import j, { createRef as S, useEffect as V } from "react";
3
+ const W = U.svg`
6
4
  border: "2px solid red";
7
5
  margin: 2px;
8
6
  outline: none;
9
- `, P = j.memo(function k(e) {
10
- let { name: u, id: i, SVs: d, actions: r, callAction: l } = O(e), p = d.selectedRowIndex - 1, g = d.selectedBoxIndex - 1;
7
+ `, z = j.memo(function k(e) {
8
+ let { name: u, id: i, SVs: d, actions: r, callAction: l } = A(e), p = d.selectedRowIndex - 1, g = d.selectedBoxIndex - 1;
11
9
  k.ignoreActionsWithoutCore = () => !0;
12
- let c = U(d.fixed);
10
+ let c = S(d.fixed);
13
11
  c.current = d.fixed;
14
12
  let f = (t) => {
15
13
  l({
@@ -17,7 +15,7 @@ const W = V.svg`
17
15
  args: { isVisible: t }
18
16
  });
19
17
  };
20
- if (S(() => () => {
18
+ if (V(() => () => {
21
19
  l({
22
20
  action: r.recordVisibilityChange,
23
21
  args: { isVisible: !1 }
@@ -46,8 +44,8 @@ const W = V.svg`
46
44
  });
47
45
  }
48
46
  function s(t) {
49
- var a, b, y, R, B, T, v, m, C, D;
50
- ((a = t.relatedTarget) == null ? void 0 : a.id) !== `orbitaladdrow${i}` && ((b = t.relatedTarget) == null ? void 0 : b.id) !== `orbitalremoverow${i}` && ((y = t.relatedTarget) == null ? void 0 : y.id) !== `orbitaladdbox${i}` && ((R = t.relatedTarget) == null ? void 0 : R.id) !== `orbitaladduparrow${i}` && ((B = t.relatedTarget) == null ? void 0 : B.id) !== `orbitaladddownarrow${i}` && ((T = t.relatedTarget) == null ? void 0 : T.id) !== `orbitalremovearrow${i}` && ((v = t.relatedTarget) == null ? void 0 : v.id) !== `orbitalremovebox${i}` && (((m = t.relatedTarget) == null ? void 0 : m.id) !== `OrbitalText${p}${i}` && ((C = t.relatedTarget) == null ? void 0 : C.id) !== `OrbitalRow${p}${i}` && ((D = t.relatedTarget) == null ? void 0 : D.id.substring(0, 10 + i.length)) !== `orbitalbox${i}` && h(-1), w(-1));
47
+ var a, b, y, R, B, T, v, C, D, O;
48
+ ((a = t.relatedTarget) == null ? void 0 : a.id) !== `orbitaladdrow${i}` && ((b = t.relatedTarget) == null ? void 0 : b.id) !== `orbitalremoverow${i}` && ((y = t.relatedTarget) == null ? void 0 : y.id) !== `orbitaladdbox${i}` && ((R = t.relatedTarget) == null ? void 0 : R.id) !== `orbitaladduparrow${i}` && ((B = t.relatedTarget) == null ? void 0 : B.id) !== `orbitaladddownarrow${i}` && ((T = t.relatedTarget) == null ? void 0 : T.id) !== `orbitalremovearrow${i}` && ((v = t.relatedTarget) == null ? void 0 : v.id) !== `orbitalremovebox${i}` && (((C = t.relatedTarget) == null ? void 0 : C.id) !== `OrbitalText${p}${i}` && ((D = t.relatedTarget) == null ? void 0 : D.id) !== `OrbitalRow${p}${i}` && ((O = t.relatedTarget) == null ? void 0 : O.id.substring(0, 10 + i.length)) !== `orbitalbox${i}` && h(-1), w(-1));
51
49
  }
52
50
  let x = [];
53
51
  for (let [t, a] of Object.entries(d.rows)) {
@@ -175,7 +173,7 @@ const W = V.svg`
175
173
  children: "Remove Arrow"
176
174
  }
177
175
  )
178
- ] })), /* @__PURE__ */ o.jsx(A, { partialVisibility: !0, onChange: f, children: /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
176
+ ] })), /* @__PURE__ */ o.jsx(m, { partialVisibility: !0, onChange: f, children: /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
179
177
  $,
180
178
  x
181
179
  ] }) });
@@ -365,5 +363,5 @@ const W = V.svg`
365
363
  );
366
364
  });
367
365
  export {
368
- P as default
366
+ z as default
369
367
  };
@@ -0,0 +1,22 @@
1
+ import { u as c, j as i, V as u } from "./index-7912373f.js";
2
+ import d, { useEffect as f } from "react";
3
+ const b = d.memo(function(r) {
4
+ let { name: h, id: e, SVs: s, children: a, actions: t, callAction: n } = c(r), l = (o) => {
5
+ n({
6
+ action: t.recordVisibilityChange,
7
+ args: { isVisible: o }
8
+ });
9
+ };
10
+ return f(() => () => {
11
+ n({
12
+ action: t.recordVisibilityChange,
13
+ args: { isVisible: !1 }
14
+ });
15
+ }, []), s.hidden ? null : /* @__PURE__ */ i.jsx(u, { partialVisibility: !0, onChange: l, children: /* @__PURE__ */ i.jsxs("p", { id: e, children: [
16
+ /* @__PURE__ */ i.jsx("a", { name: e }),
17
+ a
18
+ ] }) });
19
+ });
20
+ export {
21
+ b as default
22
+ };
@@ -1,9 +1,7 @@
1
- import { u as s, j as a } from "./index-1fe56d63.js";
1
+ import { u as o, j as a } from "./index-7912373f.js";
2
2
  import i from "react";
3
- import "react-dom";
4
- import "styled-components";
5
- const b = i.memo(function(o) {
6
- let { name: u, id: n, SVs: e, actions: r, callAction: t } = s(o, !1);
3
+ const g = i.memo(function(s) {
4
+ let { name: u, id: n, SVs: e, actions: r, callAction: t } = o(s, !1);
7
5
  return e.hidden ? null : /* @__PURE__ */ a.jsxs("p", { id: n, children: [
8
6
  /* @__PURE__ */ a.jsx("a", { name: n }),
9
7
  /* @__PURE__ */ a.jsx(
@@ -42,5 +40,5 @@ const b = i.memo(function(o) {
42
40
  ] });
43
41
  });
44
42
  export {
45
- b as default
43
+ g as default
46
44
  };
@@ -1,16 +1,13 @@
1
1
  import W, { useContext as q, useRef as F, useEffect as H } from "react";
2
- import { u as I, C as m } from "./index-1fe56d63.js";
3
- import { BoardContext as K, BASE_LAYER_OFFSET as R } from "./graph-6d43a295.js";
4
- import "react-dom";
5
- import "styled-components";
6
- import "./css-ab4d83ca.js";
7
- const ae = W.memo(function U(D) {
2
+ import { u as I, C as m } from "./index-7912373f.js";
3
+ import { BoardContext as K, BASE_LAYER_OFFSET as R } from "./graph-d69449f2.js";
4
+ const le = W.memo(function U(D) {
8
5
  var A;
9
6
  let { name: Q, id: Z, SVs: u, actions: $, sourceOfUpdate: ee, callAction: te } = I(D);
10
7
  U.ignoreActionsWithoutCore = () => !0;
11
8
  const l = q(K);
12
- let d = F(null), j = F(null), x = F(null), h = F(null), p = F(null), y = F(null);
13
- x.current = u.dx, h.current = u.dy, p.current = u.xoffset, y.current = u.yoffset;
9
+ let d = F(null), j = F(null), x = F(null), p = F(null), h = F(null), y = F(null);
10
+ x.current = u.dx, p.current = u.dy, h.current = u.xoffset, y.current = u.yoffset;
14
11
  let N = F({
15
12
  visible: !u.hidden,
16
13
  fixed: !0,
@@ -27,7 +24,7 @@ const ae = W.memo(function U(D) {
27
24
  P();
28
25
  }, []);
29
26
  function O() {
30
- let [o, b, g, v] = l.getBoundingBox(), M = (o - p.current) / x.current, C = (g - p.current) / x.current, w = (v - y.current) / h.current, B = (b - y.current) / h.current, f = m.math.round(Math.min(M, C) + 1), s = m.math.round(Math.max(M, C) - 1), i = m.math.round(Math.min(w, B) + 1), a = m.math.round(Math.max(w, B) - 1);
27
+ let [o, b, g, v] = l.getBoundingBox(), M = (o - h.current) / x.current, C = (g - h.current) / x.current, w = (v - y.current) / p.current, B = (b - y.current) / p.current, f = m.math.round(Math.min(M, C) + 1), s = m.math.round(Math.max(M, C) - 1), i = m.math.round(Math.min(w, B) + 1), a = m.math.round(Math.max(w, B) - 1);
31
28
  if (j.current = [f, s, i, a], Number.isFinite(f) && Number.isFinite(s) && Number.isFinite(i) && Number.isFinite(a)) {
32
29
  let t = [];
33
30
  for (let r = i; r <= a; r++) {
@@ -45,7 +42,7 @@ const ae = W.memo(function U(D) {
45
42
  d.current = t;
46
43
  }
47
44
  l.on("boundingbox", () => {
48
- let [t, r, c, e] = l.getBoundingBox(), n = (t - p.current) / x.current, Y = (c - p.current) / x.current, _ = (e - y.current) / h.current, E = (r - y.current) / h.current, S = m.math.round(Math.min(n, Y) + 1), G = m.math.round(Math.max(n, Y) - 1), J = m.math.round(Math.min(_, E) + 1), k = m.math.round(Math.max(_, E) - 1), [z, L, T, V] = j.current;
45
+ let [t, r, c, e] = l.getBoundingBox(), n = (t - h.current) / x.current, Y = (c - h.current) / x.current, _ = (e - y.current) / p.current, E = (r - y.current) / p.current, S = m.math.round(Math.min(n, Y) + 1), G = m.math.round(Math.max(n, Y) - 1), J = m.math.round(Math.min(_, E) + 1), k = m.math.round(Math.max(_, E) - 1), [z, L, T, V] = j.current;
49
46
  (S !== z || G !== L || J !== T || k !== V) && X(S, G, J, k);
50
47
  });
51
48
  }
@@ -63,9 +60,9 @@ const ae = W.memo(function U(D) {
63
60
  return P();
64
61
  let [M, C, w, B] = j.current, f = v - g + 1, s = B - w + 1, i = b - o + 1, a = C - M + 1;
65
62
  for (let t = 0; t < Math.min(f, s); t++) {
66
- let r = d.current[t], c = (t + g) * h.current + y.current;
63
+ let r = d.current[t], c = (t + g) * p.current + y.current;
67
64
  for (let e = 0; e < Math.min(i, a); e++) {
68
- let n = (e + o) * x.current + p.current;
65
+ let n = (e + o) * x.current + h.current;
69
66
  r[e].coords.setCoordinates(JXG.COORDS_BY_USER, [n, c]), r[e].needsUpdate = !0, r[e].update();
70
67
  }
71
68
  if (a > i)
@@ -75,7 +72,7 @@ const ae = W.memo(function U(D) {
75
72
  }
76
73
  else if (a < i)
77
74
  for (let e = a; e < i; e++) {
78
- let n = (e + o) * x.current + p.current;
75
+ let n = (e + o) * x.current + h.current;
79
76
  r.push(l.create("point", [n, c], N.current));
80
77
  }
81
78
  }
@@ -89,9 +86,9 @@ const ae = W.memo(function U(D) {
89
86
  }
90
87
  else if (s < f)
91
88
  for (let t = s; t < f; t++) {
92
- let r = [], c = (t + g) * h.current + y.current;
89
+ let r = [], c = (t + g) * p.current + y.current;
93
90
  for (let e = 0; e < i; e++) {
94
- let n = (e + o) * x.current + p.current;
91
+ let n = (e + o) * x.current + h.current;
95
92
  r.push(l.create("point", [n, c], N.current));
96
93
  }
97
94
  d.current.push(r);
@@ -102,7 +99,7 @@ const ae = W.memo(function U(D) {
102
99
  if (d.current === null)
103
100
  O();
104
101
  else {
105
- let [o, b, g, v] = l.getBoundingBox(), M = (o - p.current) / x.current, C = (g - p.current) / x.current, w = (v - y.current) / h.current, B = (b - y.current) / h.current, f = m.math.round(Math.min(M, C) + 1), s = m.math.round(Math.max(M, C) - 1), i = m.math.round(Math.min(w, B) + 1), a = m.math.round(Math.max(w, B) - 1);
102
+ let [o, b, g, v] = l.getBoundingBox(), M = (o - h.current) / x.current, C = (g - h.current) / x.current, w = (v - y.current) / p.current, B = (b - y.current) / p.current, f = m.math.round(Math.min(M, C) + 1), s = m.math.round(Math.max(M, C) - 1), i = m.math.round(Math.min(w, B) + 1), a = m.math.round(Math.max(w, B) - 1);
106
103
  X(f, s, i, a);
107
104
  let t = (A = d.current[0]) == null ? void 0 : A[0];
108
105
  if (t) {
@@ -116,5 +113,5 @@ const ae = W.memo(function U(D) {
116
113
  return null;
117
114
  });
118
115
  export {
119
- ae as default
116
+ le as default
120
117
  };
@@ -1,11 +1,8 @@
1
- import { u as he, d as ye, e as be, j as B, t as me, M as ve } from "./index-1fe56d63.js";
1
+ import { u as he, d as ye, e as be, j as B, t as me, M as ve } from "./index-7912373f.js";
2
2
  import xe, { useContext as ge, useRef as a, useEffect as ee } from "react";
3
- import { BoardContext as Pe, POINT_LAYER_OFFSET as re } from "./graph-6d43a295.js";
3
+ import { BoardContext as Pe, POINT_LAYER_OFFSET as re } from "./graph-d69449f2.js";
4
4
  import { c as ke, n as te, d as ne, e as ie, f as le } from "./offGraphIndicators-6eabeb84.js";
5
- import "react-dom";
6
- import "styled-components";
7
- import "./css-ab4d83ca.js";
8
- const Fe = xe.memo(function oe(ae) {
5
+ const Me = xe.memo(function oe(ae) {
9
6
  var Z, $;
10
7
  let { name: G, id: E, SVs: r, actions: s, sourceOfUpdate: Se, callAction: u } = he(ae);
11
8
  oe.ignoreActionsWithoutCore = () => !0;
@@ -239,5 +236,5 @@ const Fe = xe.memo(function oe(ae) {
239
236
  ] });
240
237
  });
241
238
  export {
242
- Fe as default
239
+ Me as default
243
240
  };
@@ -1,10 +1,7 @@
1
- import { u as Z, d as $, e as ee, j as X } from "./index-1fe56d63.js";
1
+ import { u as Z, d as $, e as ee, j as X } from "./index-7912373f.js";
2
2
  import re, { useContext as te, useRef as f, useEffect as B } from "react";
3
- import { BoardContext as oe, LINE_LAYER_OFFSET as F, VERTEX_LAYER_OFFSET as N } from "./graph-6d43a295.js";
4
- import "react-dom";
5
- import "styled-components";
6
- import "./css-ab4d83ca.js";
7
- const ae = re.memo(function P(q) {
3
+ import { BoardContext as oe, LINE_LAYER_OFFSET as F, VERTEX_LAYER_OFFSET as N } from "./graph-d69449f2.js";
4
+ const ce = re.memo(function P(q) {
8
5
  let { name: g, id: K, SVs: e, actions: p, sourceOfUpdate: L, callAction: y } = Z(q);
9
6
  P.ignoreActionsWithoutCore = () => !0;
10
7
  const c = te(oe);
@@ -257,5 +254,5 @@ function z(P) {
257
254
  return P === "solid" ? 0 : P === "dashed" ? 2 : P === "dotted" ? 1 : 0;
258
255
  }
259
256
  export {
260
- ae as default
257
+ ce as default
261
258
  };
@@ -1,10 +1,7 @@
1
- import { u as Z, d as $, e as z, j as I } from "./index-1fe56d63.js";
1
+ import { u as Z, d as $, e as z, j as I } from "./index-7912373f.js";
2
2
  import ee, { useContext as re, useRef as s, useEffect as U } from "react";
3
- import { BoardContext as te, LINE_LAYER_OFFSET as W, VERTEX_LAYER_OFFSET as N } from "./graph-6d43a295.js";
4
- import "react-dom";
5
- import "styled-components";
6
- import "./css-ab4d83ca.js";
7
- const se = ee.memo(function x(q) {
3
+ import { BoardContext as te, LINE_LAYER_OFFSET as W, VERTEX_LAYER_OFFSET as N } from "./graph-d69449f2.js";
4
+ const le = ee.memo(function x(q) {
8
5
  let { name: v, id: K, SVs: e, actions: f, sourceOfUpdate: D, callAction: d } = Z(q);
9
6
  x.ignoreActionsWithoutCore = () => !0;
10
7
  const c = re(te);
@@ -255,5 +252,5 @@ function B(x) {
255
252
  return x === "solid" ? 0 : x === "dashed" ? 2 : x === "dotted" ? 1 : 0;
256
253
  }
257
254
  export {
258
- se as default
255
+ le as default
259
256
  };
@@ -0,0 +1,22 @@
1
+ import { u as c, j as e, V as u } from "./index-7912373f.js";
2
+ import d, { useEffect as m } from "react";
3
+ const g = d.memo(function(n) {
4
+ let { name: h, id: i, SVs: s, children: a, actions: r, callAction: t } = c(n), l = (o) => {
5
+ t({
6
+ action: r.recordVisibilityChange,
7
+ args: { isVisible: o }
8
+ });
9
+ };
10
+ return m(() => () => {
11
+ t({
12
+ action: r.recordVisibilityChange,
13
+ args: { isVisible: !1 }
14
+ });
15
+ }, []), s.hidden ? null : /* @__PURE__ */ e.jsx(u, { partialVisibility: !0, onChange: l, children: /* @__PURE__ */ e.jsxs("pre", { id: i, style: { margin: "12px 0" }, children: [
16
+ /* @__PURE__ */ e.jsx("a", { name: i }),
17
+ a
18
+ ] }) });
19
+ });
20
+ export {
21
+ g as default
22
+ };
@@ -0,0 +1,14 @@
1
+ import { u as a, j as e } from "./index-7912373f.js";
2
+ import m from "react";
3
+ const l = m.memo(function(n) {
4
+ let { name: i, id: r, SVs: t, children: s } = a(n);
5
+ return t.hidden ? null : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
6
+ /* @__PURE__ */ e.jsx("a", { name: r }),
7
+ "“",
8
+ s,
9
+ "”"
10
+ ] });
11
+ });
12
+ export {
13
+ l as default
14
+ };
@@ -1,14 +1,11 @@
1
- import { u as W, d as Y, e as j, j as P } from "./index-1fe56d63.js";
1
+ import { u as W, d as Y, e as j, j as P } from "./index-7912373f.js";
2
2
  import U, { useContext as B, useRef as l, useEffect as _ } from "react";
3
- import { BoardContext as N, LINE_LAYER_OFFSET as G } from "./graph-6d43a295.js";
4
- import "react-dom";
5
- import "styled-components";
6
- import "./css-ab4d83ca.js";
7
- const Z = U.memo(function y(M) {
3
+ import { BoardContext as N, LINE_LAYER_OFFSET as G } from "./graph-d69449f2.js";
4
+ const z = U.memo(function y(M) {
8
5
  let { name: m, id: T, SVs: r, actions: s, sourceOfUpdate: H, callAction: d } = W(M);
9
6
  y.ignoreActionsWithoutCore = () => !0;
10
7
  const o = B(N);
11
- let e = l(null), f = l(null), k = l(null), S = l(!1), x = l(!1), p = l(!1), R = l(null), i = l(null), O = l(null), E = l(null), g = l(!1), v = l(!1);
8
+ let e = l(null), h = l(null), k = l(null), S = l(!1), x = l(!1), f = l(!1), R = l(null), i = l(null), O = l(null), E = l(null), g = l(!1), v = l(!1);
12
9
  O.current = r.numericalEndpoint, E.current = r.numericalThroughpoint, g.current = r.fixed, v.current = !r.draggable || r.fixLocation || r.fixed;
13
10
  const w = Y(j);
14
11
  _(() => () => {
@@ -44,12 +41,12 @@ const Z = U.memo(function y(M) {
44
41
  let C = [[...r.numericalEndpoint], [...r.numericalThroughpoint]], n = o.create("line", C, u);
45
42
  n.isDraggable = !v.current, n.on("drag", function(t) {
46
43
  let b = t.type === "pointermove";
47
- if (!b || Math.abs(t.x - f.current[0]) > 0.1 || Math.abs(t.y - f.current[1]) > 0.1) {
48
- p.current = !0, i.current = [];
44
+ if (!b || Math.abs(t.x - h.current[0]) > 0.1 || Math.abs(t.y - h.current[1]) > 0.1) {
45
+ f.current = !0, i.current = [];
49
46
  for (let a = 0; a < 2; a++)
50
47
  if (b) {
51
- var h = o.origin.scrCoords;
52
- let L = (k.current[a][1] + t.x - f.current[0] - h[1]) / o.unitX, J = (h[2] - (k.current[a][2] + t.y - f.current[1])) / o.unitY;
48
+ var p = o.origin.scrCoords;
49
+ let L = (k.current[a][1] + t.x - h.current[0] - p[1]) / o.unitX, J = (p[2] - (k.current[a][2] + t.y - h.current[1])) / o.unitY;
53
50
  i.current.push([L, J]);
54
51
  } else
55
52
  i.current.push([
@@ -77,7 +74,7 @@ const Z = U.memo(function y(M) {
77
74
  E.current
78
75
  );
79
76
  }), n.on("up", function(t) {
80
- p.current ? d({
77
+ f.current ? d({
81
78
  action: s.moveRay,
82
79
  args: {
83
80
  endpointcoords: i.current[0],
@@ -89,15 +86,15 @@ const Z = U.memo(function y(M) {
89
86
  // send name so get original name if adapted
90
87
  }), S.current = !1;
91
88
  }), n.on("keyfocusout", function(t) {
92
- p.current && (d({
89
+ f.current && (d({
93
90
  action: s.moveRay,
94
91
  args: {
95
92
  point1coords: i.current[0],
96
93
  point2coords: i.current[1]
97
94
  }
98
- }), p.current = !1);
95
+ }), f.current = !1);
99
96
  }), n.on("down", function(t) {
100
- p.current = !1, f.current = [t.x, t.y], k.current = [
97
+ f.current = !1, h.current = [t.x, t.y], k.current = [
101
98
  [...n.point1.coords.scrCoords],
102
99
  [...n.point2.coords.scrCoords]
103
100
  ], S.current = !0, x.current = !1, g.current || d({
@@ -106,19 +103,19 @@ const Z = U.memo(function y(M) {
106
103
  // send name so get original name if adapted
107
104
  });
108
105
  }), n.on("hit", function(t) {
109
- p.current = !1, d({
106
+ f.current = !1, d({
110
107
  action: s.rayFocused,
111
108
  args: { name: m }
112
109
  // send name so get original name if adapted
113
110
  });
114
111
  }), n.on("keydown", function(t) {
115
- t.key === "Enter" && (p.current && (d({
112
+ t.key === "Enter" && (f.current && (d({
116
113
  action: s.moveRay,
117
114
  args: {
118
115
  point1coords: i.current[0],
119
116
  point2coords: i.current[1]
120
117
  }
121
- }), p.current = !1), d({
118
+ }), f.current = !1), d({
122
119
  action: s.rayClicked,
123
120
  args: { name: m }
124
121
  // send name so get original name if adapted
@@ -126,7 +123,7 @@ const Z = U.memo(function y(M) {
126
123
  }), R.current = r.labelForGraph !== "", e.current = n;
127
124
  }
128
125
  function D(c) {
129
- S.current && (Math.abs(c.x - f.current[0]) > 0.1 || Math.abs(c.y - f.current[1]) > 0.1) && (x.current = !0);
126
+ S.current && (Math.abs(c.x - h.current[0]) > 0.1 || Math.abs(c.y - h.current[1]) > 0.1) && (x.current = !0);
130
127
  }
131
128
  function F() {
132
129
  e.current.off("drag"), e.current.off("down"), e.current.off("hit"), e.current.off("up"), e.current.off("keyfocusout"), e.current.off("keydown"), o.removeObject(e.current), e.current = null;
@@ -160,8 +157,8 @@ const Z = U.memo(function y(M) {
160
157
  e.current.visProp.strokecolor !== t && (e.current.visProp.strokecolor = t, e.current.visProp.highlightstrokecolor = t), e.current.visProp.strokewidth !== r.selectedStyle.lineWidth && (e.current.visProp.strokewidth = r.selectedStyle.lineWidth, e.current.visProp.highlightstrokewidth = r.selectedStyle.lineWidth), e.current.visProp.strokeopacity !== r.selectedStyle.lineOpacity && (e.current.visProp.strokeopacity = r.selectedStyle.lineOpacity, e.current.visProp.highlightstrokeopacity = r.selectedStyle.lineOpacity * 0.5);
161
158
  let b = X(r.selectedStyle.lineStyle);
162
159
  e.current.visProp.dash !== b && (e.current.visProp.dash = b), e.current.name = r.labelForGraph;
163
- let h = r.labelForGraph !== "";
164
- h != R.current && (e.current.setAttribute({ withlabel: h }), R.current = h), e.current.needsUpdate = !0, e.current.update(), e.current.hasLabel && (r.applyStyleToLabel ? e.current.label.visProp.strokecolor = t : e.current.label.visProp.strokecolor = "var(--canvastext)", e.current.label.needsUpdate = !0, e.current.label.update()), o.updateRenderer();
160
+ let p = r.labelForGraph !== "";
161
+ p != R.current && (e.current.setAttribute({ withlabel: p }), R.current = p), e.current.needsUpdate = !0, e.current.update(), e.current.hasLabel && (r.applyStyleToLabel ? e.current.label.visProp.strokecolor = t : e.current.label.visProp.strokecolor = "var(--canvastext)", e.current.label.needsUpdate = !0, e.current.label.update()), o.updateRenderer();
165
162
  }
166
163
  return r.hidden ? null : /* @__PURE__ */ P.jsx(P.Fragment, { children: /* @__PURE__ */ P.jsx("a", { name: T }) });
167
164
  });
@@ -169,5 +166,5 @@ function X(y) {
169
166
  return y === "solid" ? 0 : y === "dashed" ? 2 : y === "dotted" ? 1 : 0;
170
167
  }
171
168
  export {
172
- Z as default
169
+ z as default
173
170
  };
@@ -1,9 +1,7 @@
1
- import { u as h, d as g, G as j, H as k, j as t } from "./index-1fe56d63.js";
2
- import R from "react";
3
- import { L as B } from "./index-44cba13f.js";
4
- import y from "styled-components";
5
- import "react-dom";
6
- const c = y.button`
1
+ import { u as f, d as g, H as j, I as k, j as t, s as R } from "./index-7912373f.js";
2
+ import B from "react";
3
+ import { L as y } from "./index-7481592c.js";
4
+ const c = R.button`
7
5
  position: relative;
8
6
  height: 24px;
9
7
  display: inline-block;
@@ -27,15 +25,15 @@ const c = y.button`
27
25
  outline: 2px solid var(--mainBlue);
28
26
  outline-offset: 2px;
29
27
  }
30
- `, A = R.memo(function(u) {
31
- let { name: _, id: r, SVs: e, children: s, location: p, navigate: x } = h(u);
32
- const n = g(j);
33
- let m = p.search || "";
28
+ `, $ = B.memo(function(u) {
29
+ let { name: _, id: r, SVs: e, children: s, location: x, navigate: p } = f(u);
30
+ const i = g(j);
31
+ let m = x.search || "";
34
32
  if (e.hidden)
35
33
  return null;
36
34
  let o = s;
37
35
  s.length === 0 && (o = e.linkText);
38
- let { targetForATag: l, url: i, haveValidTarget: b, externalUri: v } = k({
36
+ let { targetForATag: l, url: n, haveValidTarget: b, externalUri: v } = k({
39
37
  cid: e.cid,
40
38
  doenetId: e.doenetId,
41
39
  variantIndex: e.variantIndex,
@@ -54,7 +52,7 @@ const c = y.button`
54
52
  c,
55
53
  {
56
54
  id: r + "_button",
57
- onClick: () => window.open(i, l),
55
+ onClick: () => window.open(n, l),
58
56
  disabled: e.disabled,
59
57
  children: e.linkText
60
58
  }
@@ -65,14 +63,14 @@ const c = y.button`
65
63
  c,
66
64
  {
67
65
  id: r + "_button",
68
- onClick: () => x(i),
66
+ onClick: () => p(n),
69
67
  disabled: e.disabled,
70
68
  children: e.linkText
71
69
  }
72
70
  )
73
71
  ] });
74
72
  if (b) {
75
- if (v || i === "#")
73
+ if (v || n === "#")
76
74
  return /* @__PURE__ */ t.jsx(
77
75
  "a",
78
76
  {
@@ -83,17 +81,17 @@ const c = y.button`
83
81
  target: l,
84
82
  id: r,
85
83
  name: r,
86
- href: i,
84
+ href: n,
87
85
  children: o
88
86
  }
89
87
  );
90
88
  {
91
- let f = n === window ? "scrollY" : "scrollTop", d = { fromLink: !0 };
89
+ let h = i === window ? "scrollY" : "scrollTop", d = { fromLink: !0 };
92
90
  return Object.defineProperty(d, "previousScrollPosition", {
93
- get: () => n == null ? void 0 : n[f],
91
+ get: () => i == null ? void 0 : i[h],
94
92
  enumerable: !0
95
93
  }), /* @__PURE__ */ t.jsx(
96
- B,
94
+ y,
97
95
  {
98
96
  style: {
99
97
  color: "var(--mainBlue)",
@@ -102,7 +100,7 @@ const c = y.button`
102
100
  target: l,
103
101
  id: r,
104
102
  name: r,
105
- to: i,
103
+ to: n,
106
104
  state: d,
107
105
  children: o
108
106
  }
@@ -112,5 +110,5 @@ const c = y.button`
112
110
  return /* @__PURE__ */ t.jsx("span", { id: r, children: o });
113
111
  });
114
112
  export {
115
- A as default
113
+ $ as default
116
114
  };