@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.
- package/dist/{ActionButtonGroup-31bfb1b3.js → ActionButtonGroup-cce60f98.js} +15 -16
- package/dist/{ToggleButton-0de1d1ad.js → ToggleButton-67a72bb5.js} +7 -8
- package/dist/alert-33a70a3d.js +12 -0
- package/dist/{angle-6303c120.js → angle-27255fe0.js} +4 -7
- package/dist/{answer-b6e2b76b.js → answer-2afd88fa.js} +22 -24
- package/dist/{asList-f29800e2.js → asList-b1a434a8.js} +5 -7
- package/dist/blockQuote-8da178e1.js +22 -0
- package/dist/boolean-b742fe48.js +12 -0
- package/dist/{booleanInput-aa010bde.js → booleanInput-9a61bf21.js} +13 -15
- package/dist/booleanInput.css +1 -0
- package/dist/{button-11f3ce47.js → button-0f49bac0.js} +15 -18
- package/dist/c-f11cfb55.js +12 -0
- package/dist/callAction-45217748.js +12 -0
- package/dist/{cell-c960b90f.js → cell-0e133fa0.js} +5 -7
- package/dist/{chart-023bde15.js → chart-3fb05dec.js} +15 -17
- package/dist/{choiceInput-de46af5c.js → choiceInput-06f9fe0d.js} +42 -43
- package/dist/choiceInput.css +1 -0
- package/dist/{circle-f81b0ce2.js → circle-58b448e4.js} +4 -7
- package/dist/{cobwebPolyline-36398f33.js → cobwebPolyline-97c318ac.js} +4 -7
- package/dist/{codeEditor-fd87d345.js → codeEditor-a6457ef2.js} +19 -21
- package/dist/{codeViewer-c43574e8.js → codeViewer-861c4813.js} +7 -9
- package/dist/containerBlock-c729c3c7.js +22 -0
- package/dist/containerInline-5f5c3422.js +12 -0
- package/dist/{contentBrowser-a8846036.js → contentBrowser-df4ee62e.js} +14 -16
- package/dist/{contentPicker-5d94aee4.js → contentPicker-d3e4b364.js} +9 -11
- package/dist/{curve-3c32f52c.js → curve-17572fc3.js} +4 -7
- package/dist/doenetml.js +15 -18
- package/dist/ellipsis-28863ba2.js +12 -0
- package/dist/em-65a27a36.js +12 -0
- package/dist/{embed-d76b6d41.js → embed-b47e5ea5.js} +9 -11
- package/dist/{feedback-ba6007b5.js → feedback-3bbde9f2.js} +16 -18
- package/dist/{figure-dba5c46d.js → figure-7d10aba0.js} +3 -5
- package/dist/{footnote-2d1dd0b3.js → footnote-c70ce2c5.js} +7 -9
- package/dist/{graph-6d43a295.js → graph-d69449f2.js} +1 -3
- package/dist/{hint-49a1f4dd.js → hint-c8e96cfa.js} +19 -21
- package/dist/{image-08c5648a.js → image-19660806.js} +4 -6
- package/dist/{index-44cba13f.js → index-7481592c.js} +1 -1
- package/dist/{index-1fe56d63.js → index-7912373f.js} +89788 -88658
- package/dist/{index-89409889.js → index-9317ebc1.js} +1 -1
- package/dist/index.css +1 -0
- package/dist/{label-c4255bb7.js → label-b9c6a62a.js} +19 -22
- package/dist/{legend-8a6252a7.js → legend-1fd4a6df.js} +8 -11
- package/dist/{line-d1d8ea00.js → line-d9273eb3.js} +17 -20
- package/dist/{lineSegment-15ae7c77.js → lineSegment-d8c96e17.js} +4 -7
- package/dist/{list-7404c656.js → list-f0b49f78.js} +11 -13
- package/dist/{lq-5ade7be1.js → lq-90e8a033.js} +1 -3
- package/dist/lsq-8cac08e0.js +9 -0
- package/dist/{math-f332495e.js → math-8f654445.js} +4 -7
- package/dist/{mathInput-dba9b45f.js → mathInput-dbd1ba40.js} +6 -9
- package/dist/mathInput.css +1 -0
- package/dist/{mathInputog-4d940ee5.js → mathInputog-6d84c7f3.js} +2 -3
- package/dist/{mathList-40fa12ed.js → mathList-b458bb31.js} +9 -11
- package/dist/{matrixInput-88797a87.js → matrixInput-f651b375.js} +6 -9
- package/dist/mdash-6806bcce.js +9 -0
- package/dist/nbsp-fcc79f6e.js +9 -0
- package/dist/ndash-c720354c.js +9 -0
- package/dist/{number-3bbc6035.js → number-79d34feb.js} +4 -7
- package/dist/{numberList-1327be8e.js → numberList-d50ce33a.js} +6 -8
- package/dist/{orbitalDiagram-19b6f7cc.js → orbitalDiagram-4b563b6b.js} +32 -34
- package/dist/{orbitalDiagramInput-3338fef1.js → orbitalDiagramInput-76732581.js} +11 -13
- package/dist/p-5232cada.js +22 -0
- package/dist/{paginatorControls-fa58eb04.js → paginatorControls-b70730d0.js} +4 -6
- package/dist/{pegboard-a1474de3.js → pegboard-79f9c901.js} +14 -17
- package/dist/{point-1a6406f1.js → point-d3f0e709.js} +4 -7
- package/dist/{polygon-beb8998f.js → polygon-451f6aab.js} +4 -7
- package/dist/{polyline-6909b72f.js → polyline-b8610944.js} +4 -7
- package/dist/pre-f5c6b49a.js +22 -0
- package/dist/q-ea153de6.js +14 -0
- package/dist/{ray-924469a6.js → ray-8ebc8e35.js} +19 -22
- package/dist/{ref-c04324bd.js → ref-3f4e54aa.js} +18 -20
- package/dist/{regionBetweenCurveXAxis-88c574b3.js → regionBetweenCurveXAxis-fa31ef83.js} +9 -12
- package/dist/{renderDoenetML-30a09380.js → renderDoenetML-5fbe5a5f.js} +4 -6
- package/dist/{row-9d0dd9b6.js → row-3a111c29.js} +5 -7
- package/dist/{rq-8871d38f.js → rq-be748d03.js} +3 -5
- package/dist/rsq-2ec34103.js +9 -0
- package/dist/{section-62b11261.js → section-5a53d600.js} +32 -34
- package/dist/{sideBySide-f4409af1.js → sideBySide-8b21239b.js} +7 -9
- package/dist/{slider-d2d21eec.js → slider-bc9bd636.js} +36 -38
- package/dist/{solution-24ca310d.js → solution-61675899.js} +26 -28
- package/dist/{spreadsheet-b22ce017.js → spreadsheet-8f61699e.js} +2 -2
- package/dist/spreadsheet.css +41 -0
- package/dist/sq-08ee83a3.js +14 -0
- package/dist/{subsetOfRealsInput-f1530700.js → subsetOfRealsInput-a151c105.js} +46 -48
- package/dist/{summaryStatistics-5328d69f.js → summaryStatistics-dc26ed99.js} +6 -8
- package/dist/{table-f0250db5.js → table-48b11b9c.js} +9 -11
- package/dist/{tabular-14305157.js → tabular-f3c4f0f4.js} +7 -9
- package/dist/tag-7ef067e8.js +17 -0
- package/dist/{text-7df7d444.js → text-bc66e68e.js} +50 -53
- package/dist/{textInput-abbe8a72.js → textInput-cb97b103.js} +28 -30
- package/dist/textList-4fa2b394.js +20 -0
- package/dist/{triggerSet-88520bfe.js → triggerSet-47fe087c.js} +7 -9
- package/dist/updateValue-2620a937.js +20 -0
- package/dist/{vector-3d487c1f.js → vector-1aaf00e9.js} +4 -7
- package/dist/{video-438560fd.js → video-7b44cfcf.js} +14 -16
- package/package.json +6 -9
- package/dist/alert-2f90cc72.js +0 -14
- package/dist/blockQuote-4be59e9a.js +0 -24
- package/dist/boolean-4cad6c61.js +0 -14
- package/dist/c-0431b8c4.js +0 -14
- package/dist/callAction-845e6eea.js +0 -14
- package/dist/containerBlock-69ae5478.js +0 -24
- package/dist/containerInline-8ec824bc.js +0 -14
- package/dist/doenetml.umd.cjs +0 -20897
- package/dist/ellipsis-fef08d11.js +0 -14
- package/dist/em-e6a08864.js +0 -14
- package/dist/lsq-734012bd.js +0 -11
- package/dist/mathInput-4ed993c7.js +0 -1
- package/dist/mdash-df0e40e7.js +0 -11
- package/dist/nbsp-ab2fca18.js +0 -11
- package/dist/ndash-3b71f713.js +0 -11
- package/dist/p-9d23a34a.js +0 -24
- package/dist/pre-df87553f.js +0 -24
- package/dist/q-146f150b.js +0 -16
- package/dist/rsq-7fff414a.js +0 -11
- package/dist/sq-140828b8.js +0 -16
- package/dist/style.css +0 -41
- package/dist/tag-cd067754.js +0 -19
- package/dist/textList-0afecfe3.js +0 -22
- package/dist/updateValue-b7933086.js +0 -22
|
@@ -1,31 +1,28 @@
|
|
|
1
|
-
import { u as
|
|
1
|
+
import { u as oe, d as ce, e as ie, C as V, g as $, j as S, t as le } from "./index-7912373f.js";
|
|
2
2
|
import se, { useRef as c, useContext as ue, useEffect as H } from "react";
|
|
3
|
-
import { BoardContext as ae, TEXT_LAYER_OFFSET as I } from "./graph-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import "./css-ab4d83ca.js";
|
|
7
|
-
const ye = se.memo(function W(q) {
|
|
8
|
-
let { name: _, id: D, SVs: t, actions: a, sourceOfUpdate: de, callAction: d } = ne(q);
|
|
3
|
+
import { BoardContext as ae, TEXT_LAYER_OFFSET as I } from "./graph-d69449f2.js";
|
|
4
|
+
const ge = se.memo(function W(q) {
|
|
5
|
+
let { name: _, id: D, SVs: t, actions: a, sourceOfUpdate: de, callAction: d } = oe(q);
|
|
9
6
|
W.ignoreActionsWithoutCore = () => !0;
|
|
10
7
|
let e = c(null), A = c(null), P = c(null);
|
|
11
|
-
const
|
|
12
|
-
let
|
|
8
|
+
const o = ue(ae);
|
|
9
|
+
let y = c(null), F = c(null), X = c(!1), O = c(!1), u = c(!1), f = c(null), h = c(null), B = c(null), T = c(null), v = c(!1), C = c(!1);
|
|
13
10
|
v.current = t.fixed, C.current = !t.draggable || t.fixLocation || t.fixed;
|
|
14
11
|
const b = ce(ie);
|
|
15
12
|
H(() => () => {
|
|
16
|
-
e.current !== null && Q(),
|
|
13
|
+
e.current !== null && Q(), o && o.off("move", N);
|
|
17
14
|
}, []), H(() => {
|
|
18
|
-
|
|
19
|
-
}, [
|
|
15
|
+
o && o.on("move", N);
|
|
16
|
+
}, [o]);
|
|
20
17
|
function K() {
|
|
21
|
-
let l = b === "dark" ? t.selectedStyle.textColorDarkMode : t.selectedStyle.textColor, s = b === "dark" ? t.selectedStyle.backgroundColorDarkMode : t.selectedStyle.backgroundColor,
|
|
22
|
-
s && (
|
|
18
|
+
let l = b === "dark" ? t.selectedStyle.textColorDarkMode : t.selectedStyle.textColor, s = b === "dark" ? t.selectedStyle.backgroundColorDarkMode : t.selectedStyle.backgroundColor, m = "";
|
|
19
|
+
s && (m += `background-color: ${s}`);
|
|
23
20
|
let x = {
|
|
24
21
|
visible: !t.hidden,
|
|
25
22
|
fixed: v.current,
|
|
26
23
|
layer: 10 * t.layer + I,
|
|
27
|
-
cssStyle:
|
|
28
|
-
highlightCssStyle:
|
|
24
|
+
cssStyle: m,
|
|
25
|
+
highlightCssStyle: m,
|
|
29
26
|
strokeColor: l,
|
|
30
27
|
strokeOpacity: 1,
|
|
31
28
|
highlightStrokeColor: l,
|
|
@@ -34,35 +31,35 @@ const ye = se.memo(function W(q) {
|
|
|
34
31
|
parse: !1
|
|
35
32
|
}, i;
|
|
36
33
|
try {
|
|
37
|
-
let r = V.fromAst(t.anchor),
|
|
34
|
+
let r = V.fromAst(t.anchor), p = [
|
|
38
35
|
r.get_component(0).evaluate_to_constant(),
|
|
39
36
|
r.get_component(1).evaluate_to_constant()
|
|
40
37
|
];
|
|
41
|
-
Number.isFinite(
|
|
38
|
+
Number.isFinite(p[0]) || (p[0] = 0, x.visible = !1), Number.isFinite(p[1]) || (p[1] = 0, x.visible = !1), i = o.create("point", p, {
|
|
42
39
|
visible: !1
|
|
43
40
|
});
|
|
44
41
|
} catch {
|
|
45
|
-
x.visible = !1, i =
|
|
42
|
+
x.visible = !1, i = o.create("point", [0, 0], { visible: !1 });
|
|
46
43
|
}
|
|
47
44
|
x.anchor = i;
|
|
48
|
-
let { anchorx: k, anchory:
|
|
45
|
+
let { anchorx: k, anchory: g } = $(
|
|
49
46
|
t.positionFromAnchor
|
|
50
47
|
);
|
|
51
|
-
x.anchorx = k, x.anchory =
|
|
52
|
-
let
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
x.anchorx = k, x.anchory = g, P.current = [k, g];
|
|
49
|
+
let n = o.create("text", [0, 0, t.text], x);
|
|
50
|
+
n.isDraggable = !C.current, n.on("down", function(r) {
|
|
51
|
+
y.current = [r.x, r.y], F.current = [...i.coords.scrCoords], u.current = !1, X.current = !0, O.current = !1, v.current || d({
|
|
55
52
|
action: a.textFocused,
|
|
56
53
|
args: { name: _ }
|
|
57
54
|
// send name so get original name if adapted
|
|
58
55
|
});
|
|
59
|
-
}),
|
|
56
|
+
}), n.on("hit", function(r) {
|
|
60
57
|
F.current = [...i.coords.scrCoords], u.current = !1, d({
|
|
61
58
|
action: a.textFocused,
|
|
62
59
|
args: { name: _ }
|
|
63
60
|
// send name so get original name if adapted
|
|
64
61
|
});
|
|
65
|
-
}),
|
|
62
|
+
}), n.on("up", function(r) {
|
|
66
63
|
u.current ? (d({
|
|
67
64
|
action: a.moveText,
|
|
68
65
|
args: {
|
|
@@ -74,7 +71,7 @@ const ye = se.memo(function W(q) {
|
|
|
74
71
|
args: { name: _ }
|
|
75
72
|
// send name so get original name if adapted
|
|
76
73
|
}), X.current = !1;
|
|
77
|
-
}),
|
|
74
|
+
}), n.on("keyfocusout", function(r) {
|
|
78
75
|
u.current && (d({
|
|
79
76
|
action: a.moveText,
|
|
80
77
|
args: {
|
|
@@ -82,24 +79,24 @@ const ye = se.memo(function W(q) {
|
|
|
82
79
|
y: h.current
|
|
83
80
|
}
|
|
84
81
|
}), u.current = !1);
|
|
85
|
-
}),
|
|
86
|
-
let
|
|
87
|
-
(!
|
|
88
|
-
let [j, w, E, G] =
|
|
82
|
+
}), n.on("drag", function(r) {
|
|
83
|
+
let p = r.type === "pointermove";
|
|
84
|
+
(!p || Math.abs(r.x - y.current[0]) > 0.1 || Math.abs(r.y - y.current[1]) > 0.1) && (u.current = !0);
|
|
85
|
+
let [j, w, E, G] = o.getBoundingBox(), J = n.size[0] / o.unitX, Y = n.size[1] / o.unitY, U = P.current[0], L = P.current[1], R = 0;
|
|
89
86
|
U === "middle" ? R = -J / 2 : U === "right" && (R = -J);
|
|
90
87
|
let M = 0;
|
|
91
88
|
L === "middle" ? M = -Y / 2 : L === "top" && (M = -Y);
|
|
92
|
-
let ee = j + 0.04 * (E - j) - R - J, te = E - 0.04 * (E - j) - R, re = G + 0.04 * (w - G) - M - Y,
|
|
93
|
-
if (
|
|
94
|
-
var z =
|
|
95
|
-
f.current = (F.current[1] + r.x -
|
|
89
|
+
let ee = j + 0.04 * (E - j) - R - J, te = E - 0.04 * (E - j) - R, re = G + 0.04 * (w - G) - M - Y, ne = w - 0.04 * (w - G) - M;
|
|
90
|
+
if (p) {
|
|
91
|
+
var z = o.origin.scrCoords;
|
|
92
|
+
f.current = (F.current[1] + r.x - y.current[0] - z[1]) / o.unitX, h.current = (z[2] - (F.current[2] + r.y - y.current[1])) / o.unitY;
|
|
96
93
|
} else
|
|
97
|
-
f.current = i.X() +
|
|
94
|
+
f.current = i.X() + n.relativeCoords.usrCoords[1], h.current = i.Y() + n.relativeCoords.usrCoords[2];
|
|
98
95
|
f.current = Math.min(
|
|
99
96
|
te,
|
|
100
97
|
Math.max(ee, f.current)
|
|
101
98
|
), h.current = Math.min(
|
|
102
|
-
|
|
99
|
+
ne,
|
|
103
100
|
Math.max(re, h.current)
|
|
104
101
|
), d({
|
|
105
102
|
action: a.moveText,
|
|
@@ -109,11 +106,11 @@ const ye = se.memo(function W(q) {
|
|
|
109
106
|
transient: !0,
|
|
110
107
|
skippable: !0
|
|
111
108
|
}
|
|
112
|
-
}),
|
|
109
|
+
}), n.relativeCoords.setCoordinates(JXG.COORDS_BY_USER, [0, 0]), i.coords.setCoordinates(
|
|
113
110
|
JXG.COORDS_BY_USER,
|
|
114
111
|
B.current
|
|
115
112
|
);
|
|
116
|
-
}),
|
|
113
|
+
}), n.on("keydown", function(r) {
|
|
117
114
|
r.key === "Enter" && (u.current && (d({
|
|
118
115
|
action: a.moveText,
|
|
119
116
|
args: {
|
|
@@ -125,15 +122,15 @@ const ye = se.memo(function W(q) {
|
|
|
125
122
|
args: { name: _ }
|
|
126
123
|
// send name so get original name if adapted
|
|
127
124
|
}));
|
|
128
|
-
}), e.current =
|
|
125
|
+
}), e.current = n, A.current = i, T.current = t.positionFromAnchor;
|
|
129
126
|
}
|
|
130
127
|
function N(l) {
|
|
131
|
-
X.current && (Math.abs(l.x -
|
|
128
|
+
X.current && (Math.abs(l.x - y.current[0]) > 0.1 || Math.abs(l.y - y.current[1]) > 0.1) && (O.current = !0);
|
|
132
129
|
}
|
|
133
130
|
function Q() {
|
|
134
|
-
e.current.off("drag"), e.current.off("down"), e.current.off("hit"), e.current.off("up"), e.current.off("keyfocusout"), e.current.off("keydown"),
|
|
131
|
+
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;
|
|
135
132
|
}
|
|
136
|
-
if (
|
|
133
|
+
if (o) {
|
|
137
134
|
let l;
|
|
138
135
|
try {
|
|
139
136
|
let s = V.fromAst(t.anchor);
|
|
@@ -153,21 +150,21 @@ const ye = se.memo(function W(q) {
|
|
|
153
150
|
), e.current.setText(t.text);
|
|
154
151
|
let s = !t.hidden;
|
|
155
152
|
if (Number.isFinite(l[0]) && Number.isFinite(l[1])) {
|
|
156
|
-
let
|
|
157
|
-
e.current.visProp.visible = s, e.current.visPropCalc.visible = s,
|
|
153
|
+
let n = e.current.visProp.visible !== s;
|
|
154
|
+
e.current.visProp.visible = s, e.current.visPropCalc.visible = s, n && e.current.setAttribute({ visible: s });
|
|
158
155
|
} else
|
|
159
156
|
e.current.visProp.visible = !1, e.current.visPropCalc.visible = !1;
|
|
160
|
-
let
|
|
161
|
-
e.current.visProp.layer !==
|
|
162
|
-
let i = b === "dark" ? t.selectedStyle.textColorDarkMode : t.selectedStyle.textColor, k = b === "dark" ? t.selectedStyle.backgroundColorDarkMode : t.selectedStyle.backgroundColor,
|
|
163
|
-
if (k ?
|
|
164
|
-
let { anchorx:
|
|
157
|
+
let m = 10 * t.layer + I;
|
|
158
|
+
e.current.visProp.layer !== m && e.current.setAttribute({ layer: m });
|
|
159
|
+
let i = b === "dark" ? t.selectedStyle.textColorDarkMode : t.selectedStyle.textColor, k = b === "dark" ? t.selectedStyle.backgroundColorDarkMode : t.selectedStyle.backgroundColor, g = "";
|
|
160
|
+
if (k ? g += `background-color: ${k}` : g += "background-color: transparent", e.current.visProp.strokecolor !== i && (e.current.visProp.strokecolor = i, e.current.visProp.highlightstrokecolor = i), e.current.visProp.cssstyle !== g && (e.current.visProp.cssstyle = g, e.current.visProp.highlightcssstyle = g), e.current.visProp.highlight = !C.current, e.current.visProp.fixed = v.current, e.current.isDraggable = !C.current, e.current.needsUpdate = !0, t.positionFromAnchor !== T.current) {
|
|
161
|
+
let { anchorx: n, anchory: r } = $(
|
|
165
162
|
t.positionFromAnchor
|
|
166
163
|
);
|
|
167
|
-
e.current.visProp.anchorx =
|
|
164
|
+
e.current.visProp.anchorx = n, e.current.visProp.anchory = r, P.current = [n, r], T.current = t.positionFromAnchor, e.current.fullUpdate();
|
|
168
165
|
} else
|
|
169
166
|
e.current.update();
|
|
170
|
-
A.current.needsUpdate = !0, A.current.update(),
|
|
167
|
+
A.current.needsUpdate = !0, A.current.update(), o.updateRenderer();
|
|
171
168
|
}
|
|
172
169
|
return /* @__PURE__ */ S.jsx("a", { name: D });
|
|
173
170
|
}
|
|
@@ -180,5 +177,5 @@ const ye = se.memo(function W(q) {
|
|
|
180
177
|
] });
|
|
181
178
|
});
|
|
182
179
|
export {
|
|
183
|
-
|
|
180
|
+
ge as default
|
|
184
181
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { u as ye, R as Ce, r as ke, C as oe, g as le, j as a, F as O, f as we, a as Ve, b as Ae, c as je, M as Ie } from "./index-
|
|
1
|
+
import { u as ye, R as Ce, r as ke, C as oe, g as le, j as a, F as O, f as we, a as Ve, b as Ae, c as je, s as ee, M as Ie } from "./index-7912373f.js";
|
|
2
2
|
import _e, { useState as Ne, useRef as l, useContext as Se, useEffect as Be } from "react";
|
|
3
3
|
import { s as ue } from "./css-ab4d83ca.js";
|
|
4
|
-
import
|
|
5
|
-
import { BoardContext as Pe } from "./graph-6d43a295.js";
|
|
6
|
-
import "react-dom";
|
|
4
|
+
import { BoardContext as Pe } from "./graph-d69449f2.js";
|
|
7
5
|
const I = ee.button`
|
|
8
6
|
position: relative;
|
|
9
7
|
height: 24px;
|
|
@@ -47,19 +45,19 @@ const I = ee.button`
|
|
|
47
45
|
function se(u) {
|
|
48
46
|
let {
|
|
49
47
|
name: Fe,
|
|
50
|
-
id:
|
|
48
|
+
id: m,
|
|
51
49
|
SVs: e,
|
|
52
50
|
actions: p,
|
|
53
51
|
sourceOfUpdate: Le,
|
|
54
52
|
ignoreUpdate: ce,
|
|
55
53
|
rendererName: de,
|
|
56
|
-
callAction:
|
|
54
|
+
callAction: f
|
|
57
55
|
} = ye(u), _ = ue(e.width), pe = ue(e.height);
|
|
58
56
|
se.baseStateVariable = "immediateValue", se.ignoreActionsWithoutCore = (n) => n === "moveInput";
|
|
59
57
|
const [w, W] = Ne(e.immediateValue);
|
|
60
58
|
let C = l(null);
|
|
61
59
|
C.current = w;
|
|
62
|
-
const
|
|
60
|
+
const fe = Ce(ke(de));
|
|
63
61
|
let N = l(e.immediateValue), te = l(null), V = l(null), t = l(null), S = l(null), B = l(null);
|
|
64
62
|
const s = Se(Pe);
|
|
65
63
|
let A = l(!1), M = l(!1), h = l(!1), v = l(null), b = l(null), re = l(null), T = l(null), K = l(!1), j = l(!1);
|
|
@@ -69,17 +67,17 @@ function se(u) {
|
|
|
69
67
|
let k = "unvalidated";
|
|
70
68
|
e.valueHasBeenValidated && (e.creditAchieved === 1 ? k = "correct" : e.creditAchieved === 0 ? k = "incorrect" : k = "partialcorrect");
|
|
71
69
|
function P(n) {
|
|
72
|
-
n.key === "Enter" && (N.current = C.current,
|
|
70
|
+
n.key === "Enter" && (N.current = C.current, f({
|
|
73
71
|
action: p.updateValue,
|
|
74
72
|
baseVariableValue: C.current
|
|
75
|
-
}), e.includeCheckWork && !e.suppressCheckwork && !e.expanded && k === "unvalidated" &&
|
|
73
|
+
}), e.includeCheckWork && !e.suppressCheckwork && !e.expanded && k === "unvalidated" && f({
|
|
76
74
|
action: p.submitAnswer
|
|
77
75
|
}));
|
|
78
76
|
}
|
|
79
77
|
function R(n) {
|
|
80
78
|
if (n.key === "Escape") {
|
|
81
79
|
let r = N.current;
|
|
82
|
-
r !== C.current && (W(r), V.current = e.immediateValue,
|
|
80
|
+
r !== C.current && (W(r), V.current = e.immediateValue, f({
|
|
83
81
|
action: p.updateImmediateValue,
|
|
84
82
|
args: {
|
|
85
83
|
text: r
|
|
@@ -92,17 +90,17 @@ function se(u) {
|
|
|
92
90
|
te.current = !0;
|
|
93
91
|
}
|
|
94
92
|
function F(n) {
|
|
95
|
-
te.current = !1, N.current = C.current,
|
|
93
|
+
te.current = !1, N.current = C.current, f({
|
|
96
94
|
action: p.updateValue,
|
|
97
95
|
baseVariableValue: C.current
|
|
98
96
|
});
|
|
99
97
|
}
|
|
100
98
|
function L(n) {
|
|
101
99
|
let r = n.target.value;
|
|
102
|
-
r !== C.current && (W(r),
|
|
100
|
+
r !== C.current && (W(r), fe((x) => {
|
|
103
101
|
let g = { ...x };
|
|
104
102
|
return g.ignoreUpdate = !0, g;
|
|
105
|
-
}), V.current = e.immediateValue,
|
|
103
|
+
}), V.current = e.immediateValue, f({
|
|
106
104
|
action: p.updateImmediateValue,
|
|
107
105
|
args: {
|
|
108
106
|
text: r
|
|
@@ -110,7 +108,7 @@ function se(u) {
|
|
|
110
108
|
baseVariableValue: r
|
|
111
109
|
}));
|
|
112
110
|
}
|
|
113
|
-
function
|
|
111
|
+
function me() {
|
|
114
112
|
let n = {
|
|
115
113
|
visible: !e.hidden,
|
|
116
114
|
fixed: K.current,
|
|
@@ -148,7 +146,7 @@ function se(u) {
|
|
|
148
146
|
}), i.on("hit", function(o) {
|
|
149
147
|
h.current = !1;
|
|
150
148
|
}), i.on("up", function(o) {
|
|
151
|
-
h.current && (
|
|
149
|
+
h.current && (f({
|
|
152
150
|
action: p.moveInput,
|
|
153
151
|
args: {
|
|
154
152
|
x: v.current,
|
|
@@ -156,7 +154,7 @@ function se(u) {
|
|
|
156
154
|
}
|
|
157
155
|
}), h.current = !1);
|
|
158
156
|
}), i.on("keyfocusout", function(o) {
|
|
159
|
-
h.current && (
|
|
157
|
+
h.current && (f({
|
|
160
158
|
action: p.moveInput,
|
|
161
159
|
args: {
|
|
162
160
|
x: v.current,
|
|
@@ -182,7 +180,7 @@ function se(u) {
|
|
|
182
180
|
), b.current = Math.min(
|
|
183
181
|
ge,
|
|
184
182
|
Math.max(be, b.current)
|
|
185
|
-
),
|
|
183
|
+
), f({
|
|
186
184
|
action: p.moveInput,
|
|
187
185
|
args: {
|
|
188
186
|
x: v.current,
|
|
@@ -195,7 +193,7 @@ function se(u) {
|
|
|
195
193
|
re.current
|
|
196
194
|
);
|
|
197
195
|
}), i.on("keydown", function(o) {
|
|
198
|
-
o.key === "Enter" && h.current && (
|
|
196
|
+
o.key === "Enter" && h.current && (f({
|
|
199
197
|
action: p.moveInput,
|
|
200
198
|
args: {
|
|
201
199
|
x: v.current,
|
|
@@ -230,7 +228,7 @@ function se(u) {
|
|
|
230
228
|
n = [NaN, NaN];
|
|
231
229
|
}
|
|
232
230
|
if (re.current = n, t.current === null)
|
|
233
|
-
|
|
231
|
+
me();
|
|
234
232
|
else {
|
|
235
233
|
t.current.Value() !== w && t.current.set(w), t.current.relativeCoords.setCoordinates(
|
|
236
234
|
JXG.COORDS_BY_USER,
|
|
@@ -254,12 +252,12 @@ function se(u) {
|
|
|
254
252
|
t.current.update();
|
|
255
253
|
S.current.needsUpdate = !0, S.current.update(), s.updateRenderer();
|
|
256
254
|
}
|
|
257
|
-
return /* @__PURE__ */ a.jsx("a", { name:
|
|
255
|
+
return /* @__PURE__ */ a.jsx("a", { name: m });
|
|
258
256
|
}
|
|
259
257
|
if (e.hidden)
|
|
260
258
|
return null;
|
|
261
259
|
let G = e.disabled;
|
|
262
|
-
const X =
|
|
260
|
+
const X = m + "_input";
|
|
263
261
|
let c = {
|
|
264
262
|
cursor: "pointer",
|
|
265
263
|
padding: "1px 6px 1px 6px"
|
|
@@ -273,15 +271,15 @@ function se(u) {
|
|
|
273
271
|
d = /* @__PURE__ */ a.jsx(
|
|
274
272
|
I,
|
|
275
273
|
{
|
|
276
|
-
id:
|
|
274
|
+
id: m + "_submit",
|
|
277
275
|
tabIndex: "0",
|
|
278
276
|
disabled: G,
|
|
279
277
|
style: c,
|
|
280
|
-
onClick: () =>
|
|
278
|
+
onClick: () => f({
|
|
281
279
|
action: p.submitAnswer
|
|
282
280
|
}),
|
|
283
281
|
onKeyPress: (n) => {
|
|
284
|
-
n.key === "Enter" &&
|
|
282
|
+
n.key === "Enter" && f({
|
|
285
283
|
action: p.submitAnswer
|
|
286
284
|
});
|
|
287
285
|
},
|
|
@@ -301,16 +299,16 @@ function se(u) {
|
|
|
301
299
|
if (k === "correct")
|
|
302
300
|
c.backgroundColor = getComputedStyle(
|
|
303
301
|
document.documentElement
|
|
304
|
-
).getPropertyValue("--mainGreen"), d = /* @__PURE__ */ a.jsx(I, { id:
|
|
302
|
+
).getPropertyValue("--mainGreen"), d = /* @__PURE__ */ a.jsx(I, { id: m + "_correct", style: c, children: /* @__PURE__ */ a.jsx(O, { icon: Ve }) });
|
|
305
303
|
else if (k === "partialcorrect") {
|
|
306
304
|
let r = `${Math.round(e.creditAchieved * 100)} %`;
|
|
307
|
-
c.width = "44px", c.backgroundColor = "#efab34", d = /* @__PURE__ */ a.jsx(I, { id:
|
|
305
|
+
c.width = "44px", c.backgroundColor = "#efab34", d = /* @__PURE__ */ a.jsx(I, { id: m + "_partial", style: c, children: r });
|
|
308
306
|
} else
|
|
309
307
|
c.backgroundColor = getComputedStyle(
|
|
310
308
|
document.documentElement
|
|
311
|
-
).getPropertyValue("--mainRed"), d = /* @__PURE__ */ a.jsx(I, { id:
|
|
309
|
+
).getPropertyValue("--mainRed"), d = /* @__PURE__ */ a.jsx(I, { id: m + "_incorrect", style: c, children: /* @__PURE__ */ a.jsx(O, { icon: Ae }) });
|
|
312
310
|
else
|
|
313
|
-
c.backgroundColor = "rgb(74, 3, 217)", c.padding = "1px 8px 1px 4px", d = /* @__PURE__ */ a.jsx(I, { id:
|
|
311
|
+
c.backgroundColor = "rgb(74, 3, 217)", c.padding = "1px 8px 1px 4px", d = /* @__PURE__ */ a.jsx(I, { id: m + "_saved", style: c, children: /* @__PURE__ */ a.jsx(O, { icon: je }) });
|
|
314
312
|
e.numAttemptsLeft < 0 ? d = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
315
313
|
d,
|
|
316
314
|
/* @__PURE__ */ a.jsx("span", { children: "(no attempts remaining)" })
|
|
@@ -373,12 +371,12 @@ function se(u) {
|
|
|
373
371
|
X
|
|
374
372
|
)
|
|
375
373
|
] }), /* @__PURE__ */ a.jsxs(_e.Fragment, { children: [
|
|
376
|
-
/* @__PURE__ */ a.jsx("a", { name:
|
|
374
|
+
/* @__PURE__ */ a.jsx("a", { name: m }),
|
|
377
375
|
/* @__PURE__ */ a.jsxs(
|
|
378
376
|
"span",
|
|
379
377
|
{
|
|
380
378
|
className: "textInputSurroundingBox",
|
|
381
|
-
id:
|
|
379
|
+
id: m,
|
|
382
380
|
style: { display: "inline-flex", maxWidth: "100%" },
|
|
383
381
|
children: [
|
|
384
382
|
Y,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { u as x, j as t } from "./index-7912373f.js";
|
|
2
|
+
import s from "react";
|
|
3
|
+
const f = s.memo(function(i) {
|
|
4
|
+
let { name: o, id: e, SVs: n, children: r } = x(i);
|
|
5
|
+
if (n.hidden)
|
|
6
|
+
return null;
|
|
7
|
+
if (r.length === 0 && n.text)
|
|
8
|
+
return /* @__PURE__ */ t.jsxs(s.Fragment, { children: [
|
|
9
|
+
/* @__PURE__ */ t.jsx("a", { name: e }),
|
|
10
|
+
/* @__PURE__ */ t.jsx("span", { id: e, children: n.text })
|
|
11
|
+
] }, e);
|
|
12
|
+
let a = r.slice(1).reduce((m, l) => [...m, ", ", l], [r[0]]);
|
|
13
|
+
return /* @__PURE__ */ t.jsxs(s.Fragment, { children: [
|
|
14
|
+
/* @__PURE__ */ t.jsx("a", { name: e }),
|
|
15
|
+
a
|
|
16
|
+
] }, e);
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
f as default
|
|
20
|
+
};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const f = l.memo(function(n) {
|
|
6
|
-
let { name: e, SVs: t, actions: r, callAction: o } = s(n, !1);
|
|
1
|
+
import { u as a, j as i, B as l } from "./index-7912373f.js";
|
|
2
|
+
import o from "react";
|
|
3
|
+
const m = o.memo(function(n) {
|
|
4
|
+
let { name: e, SVs: t, actions: r, callAction: s } = a(n, !1);
|
|
7
5
|
return t.hidden ? null : /* @__PURE__ */ i.jsxs("div", { id: e, style: { margin: "12px 0", display: "inline-block" }, children: [
|
|
8
6
|
/* @__PURE__ */ i.jsx("a", { name: e }),
|
|
9
7
|
/* @__PURE__ */ i.jsx(
|
|
10
|
-
|
|
8
|
+
l,
|
|
11
9
|
{
|
|
12
10
|
id: e + "_button",
|
|
13
|
-
onClick: () =>
|
|
11
|
+
onClick: () => s({ action: r.triggerActions }),
|
|
14
12
|
disabled: t.disabled,
|
|
15
13
|
value: t.label
|
|
16
14
|
}
|
|
@@ -18,5 +16,5 @@ const f = l.memo(function(n) {
|
|
|
18
16
|
] });
|
|
19
17
|
});
|
|
20
18
|
export {
|
|
21
|
-
|
|
19
|
+
m as default
|
|
22
20
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { u as s, j as t, B as d } from "./index-7912373f.js";
|
|
2
|
+
import o from "react";
|
|
3
|
+
const m = o.memo(function(l) {
|
|
4
|
+
let { name: e, SVs: a, actions: n, callAction: i } = s(l, !1);
|
|
5
|
+
return a.hidden ? null : /* @__PURE__ */ t.jsxs("div", { id: e, margin: "12px 0", style: { display: "inline-block" }, children: [
|
|
6
|
+
/* @__PURE__ */ t.jsx("a", { name: e }),
|
|
7
|
+
/* @__PURE__ */ t.jsx(
|
|
8
|
+
d,
|
|
9
|
+
{
|
|
10
|
+
id: e + "_button",
|
|
11
|
+
onClick: () => i({ action: n.updateValue }),
|
|
12
|
+
disabled: a.disabled,
|
|
13
|
+
value: a.label
|
|
14
|
+
}
|
|
15
|
+
)
|
|
16
|
+
] });
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
m as default
|
|
20
|
+
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { u as re, d as te, e as ne, j as P, t as oe, M as ce } from "./index-
|
|
1
|
+
import { u as re, d as te, e as ne, j as P, t as oe, M as ce } from "./index-7912373f.js";
|
|
2
2
|
import ie, { useContext as le, useRef as s, useEffect as H } from "react";
|
|
3
|
-
import { BoardContext as ue, LINE_LAYER_OFFSET as N, VERTEX_LAYER_OFFSET as z } from "./graph-
|
|
4
|
-
|
|
5
|
-
import "styled-components";
|
|
6
|
-
import "./css-ab4d83ca.js";
|
|
7
|
-
const ge = ie.memo(function F(K) {
|
|
3
|
+
import { BoardContext as ue, LINE_LAYER_OFFSET as N, VERTEX_LAYER_OFFSET as z } from "./graph-d69449f2.js";
|
|
4
|
+
const fe = ie.memo(function F(K) {
|
|
8
5
|
let { name: h, id: L, SVs: e, actions: c, sourceOfUpdate: _, callAction: i } = re(K);
|
|
9
6
|
F.ignoreActionsWithoutCore = () => !0;
|
|
10
7
|
const l = le(ue);
|
|
@@ -272,5 +269,5 @@ function q(F) {
|
|
|
272
269
|
return F === "solid" ? 0 : F === "dashed" ? 2 : F === "dotted" ? 1 : 0;
|
|
273
270
|
}
|
|
274
271
|
export {
|
|
275
|
-
|
|
272
|
+
fe as default
|
|
276
273
|
};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { u as W, j as g, V as L } from "./index-
|
|
2
|
-
import
|
|
3
|
-
import { s as
|
|
4
|
-
|
|
5
|
-
import "react-dom";
|
|
6
|
-
const F = z.div`
|
|
1
|
+
import { u as W, j as g, V as L, s as M } from "./index-7912373f.js";
|
|
2
|
+
import _, { useRef as o, useEffect as v } from "react";
|
|
3
|
+
import { s as z } from "./css-ab4d83ca.js";
|
|
4
|
+
const F = M.div`
|
|
7
5
|
&: focus {
|
|
8
6
|
outline: 2px solid var(--canvastext);
|
|
9
7
|
outline-offset: 2px;
|
|
10
8
|
}
|
|
11
|
-
`,
|
|
9
|
+
`, K = _.memo(function(I) {
|
|
12
10
|
var x;
|
|
13
|
-
let { name: $, id: T, SVs: n, actions: a, callAction: l } = W(I), r = o(null),
|
|
11
|
+
let { name: $, id: T, SVs: n, actions: a, callAction: l } = W(I), r = o(null), y = o(null), c = o(null), i = o([]), s = o(null), C = o(null), P = o(0), d = o(null), w = o(null), p = o(null), A = (e) => {
|
|
14
12
|
l({
|
|
15
13
|
action: a.recordVisibilityChange,
|
|
16
14
|
args: { isVisible: e }
|
|
@@ -41,9 +39,9 @@ const F = z.div`
|
|
|
41
39
|
}, [window.YT]);
|
|
42
40
|
function N() {
|
|
43
41
|
let e = r.current.getCurrentTime(), t;
|
|
44
|
-
|
|
42
|
+
y.current ? t = e - y.current : t = e - c.current, !(c.current >= 0) || t > 0 && t < 1 ? (c.current = e, y.current = null) : t !== 0 && (y.current = e);
|
|
45
43
|
let m = Math.floor(e);
|
|
46
|
-
m !==
|
|
44
|
+
m !== p.current && (p.current = m, l({
|
|
47
45
|
action: a.setTime,
|
|
48
46
|
args: {
|
|
49
47
|
time: m
|
|
@@ -81,7 +79,7 @@ const F = z.div`
|
|
|
81
79
|
startingPoint: u,
|
|
82
80
|
rate: E
|
|
83
81
|
}
|
|
84
|
-
], d.current = u, c.current = u,
|
|
82
|
+
], d.current = u, c.current = u, y.current = null, l({
|
|
85
83
|
action: a.recordVideoStarted,
|
|
86
84
|
args: {
|
|
87
85
|
beginTime: r.current.getCurrentTime(),
|
|
@@ -131,7 +129,7 @@ const F = z.div`
|
|
|
131
129
|
endTime: k,
|
|
132
130
|
duration: t
|
|
133
131
|
}
|
|
134
|
-
}), s.current = e.data, d.current = null, c.current = k,
|
|
132
|
+
}), s.current = e.data, d.current = null, c.current = k, y.current = null;
|
|
135
133
|
}
|
|
136
134
|
break;
|
|
137
135
|
case window.YT.PlayerState.ENDED:
|
|
@@ -166,14 +164,14 @@ const F = z.div`
|
|
|
166
164
|
}
|
|
167
165
|
if ((x = r.current) != null && x.getPlayerState) {
|
|
168
166
|
let e = r.current.getPlayerState();
|
|
169
|
-
if (n.state === "playing" ? (e === window.YT.PlayerState.UNSTARTED || e === window.YT.PlayerState.PAUSED || e === window.YT.PlayerState.CUED || e === window.YT.PlayerState.ENDED) && r.current.playVideo() : n.state === "stopped" && e === window.YT.PlayerState.PLAYING && r.current.pauseVideo(), n.time !== Number(
|
|
167
|
+
if (n.state === "playing" ? (e === window.YT.PlayerState.UNSTARTED || e === window.YT.PlayerState.PAUSED || e === window.YT.PlayerState.CUED || e === window.YT.PlayerState.ENDED) && r.current.playVideo() : n.state === "stopped" && e === window.YT.PlayerState.PLAYING && r.current.pauseVideo(), n.time !== Number(p.current)) {
|
|
170
168
|
let t = n.time, m = r.current.getDuration();
|
|
171
169
|
t > m && (t = Math.floor(m), l({
|
|
172
170
|
action: a.setTime,
|
|
173
171
|
args: {
|
|
174
172
|
time: t
|
|
175
173
|
}
|
|
176
|
-
})), t !== Number(
|
|
174
|
+
})), t !== Number(p.current) && (r.current.getPlayerState() === window.YT.PlayerState.CUED ? (r.current.pauseVideo(), r.current.seekTo(t, !0), setTimeout(() => r.current.pauseVideo(), 200)) : r.current.seekTo(t, !0), p.current = t);
|
|
177
175
|
}
|
|
178
176
|
}
|
|
179
177
|
if (n.hidden)
|
|
@@ -190,7 +188,7 @@ const F = z.div`
|
|
|
190
188
|
};
|
|
191
189
|
let Y = {
|
|
192
190
|
maxWidth: "100%",
|
|
193
|
-
width:
|
|
191
|
+
width: z(n.width),
|
|
194
192
|
aspectRatio: String(n.aspectRatio)
|
|
195
193
|
}, S;
|
|
196
194
|
return n.youtube ? S = /* @__PURE__ */ g.jsx(
|
|
@@ -216,5 +214,5 @@ const F = z.div`
|
|
|
216
214
|
] }) });
|
|
217
215
|
});
|
|
218
216
|
export {
|
|
219
|
-
|
|
217
|
+
K as default
|
|
220
218
|
};
|
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.6.0-
|
|
5
|
+
"version": "0.6.0-alpha5",
|
|
6
6
|
"license": "AGPL-3.0-or-later",
|
|
7
7
|
"homepage": "https://github.com/Doenet/DoenetML#readme",
|
|
8
8
|
"private": false,
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
],
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
|
-
"import": "./dist/doenetml.js"
|
|
16
|
-
"require": "./dist/doenetml.umd.cjs"
|
|
15
|
+
"import": "./dist/doenetml.js"
|
|
17
16
|
}
|
|
18
17
|
},
|
|
19
18
|
"scripts": {
|
|
@@ -72,8 +71,7 @@
|
|
|
72
71
|
"react-router-dom": "^6.11.2",
|
|
73
72
|
"react-simple-code-editor": "^0.13.0",
|
|
74
73
|
"react-visibility-sensor-v2": "^1.0.0",
|
|
75
|
-
"recoil": "^0.7.7"
|
|
76
|
-
"styled-components": "^5.3.11"
|
|
74
|
+
"recoil": "^0.7.7"
|
|
77
75
|
},
|
|
78
76
|
"devDependencies": {
|
|
79
77
|
"@babel/core": "^7.18.9",
|
|
@@ -83,9 +81,6 @@
|
|
|
83
81
|
"@types/react": "^18.0.37",
|
|
84
82
|
"@types/react-dom": "^18.0.11",
|
|
85
83
|
"@vitejs/plugin-react": "^4.0.0",
|
|
86
|
-
"cypress": "^12.13.0",
|
|
87
|
-
"cypress-parallel": "^0.13.0",
|
|
88
|
-
"cypress-wait-until": "^1.7.2",
|
|
89
84
|
"eslint": "^8.38.0",
|
|
90
85
|
"eslint-plugin-react": "^7.32.2",
|
|
91
86
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
@@ -94,6 +89,8 @@
|
|
|
94
89
|
"react": "^18.2.0",
|
|
95
90
|
"react-dom": "^18.2.0",
|
|
96
91
|
"rollup-plugin-polyfill-node": "^0.12.0",
|
|
97
|
-
"
|
|
92
|
+
"styled-components": "^5.3.11",
|
|
93
|
+
"vite": "^4.3.9",
|
|
94
|
+
"vite-plugin-lib-inject-css": "^1.2.0"
|
|
98
95
|
}
|
|
99
96
|
}
|
package/dist/alert-2f90cc72.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { u as s, j as r } from "./index-1fe56d63.js";
|
|
2
|
-
import i from "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
import "styled-components";
|
|
5
|
-
const p = i.memo(function(t) {
|
|
6
|
-
let { name: a, id: e, SVs: n, children: o } = s(t);
|
|
7
|
-
return n.hidden ? null : /* @__PURE__ */ r.jsxs("strong", { id: e, children: [
|
|
8
|
-
/* @__PURE__ */ r.jsx("a", { name: e }),
|
|
9
|
-
o
|
|
10
|
-
] });
|
|
11
|
-
});
|
|
12
|
-
export {
|
|
13
|
-
p as default
|
|
14
|
-
};
|