@pie-element/categorize 13.2.0-next.18 → 13.2.0-next.20
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/browser/{alert-dialog-D7zUk8HM.js → alert-dialog-Cxmcc8UK.js} +2776 -2743
- package/dist/browser/alert-dialog-Cxmcc8UK.js.map +1 -0
- package/dist/browser/author/index.js +30 -30
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +31 -31
- package/dist/browser/editor-runtime/alert-dialog-BWczQUJH.js +11550 -0
- package/dist/browser/editor-runtime/alert-dialog-BWczQUJH.js.map +1 -0
- package/dist/browser/editor-runtime/assets/Symbola-4c507403.woff2 +0 -0
- package/dist/browser/editor-runtime/author/index.js +19290 -0
- package/dist/browser/editor-runtime/author/index.js.map +1 -0
- package/dist/browser/editor-runtime/controller/index.js +372 -0
- package/dist/browser/editor-runtime/controller/index.js.map +1 -0
- package/dist/browser/editor-runtime/delivery/index.js +1220 -0
- package/dist/browser/editor-runtime/delivery/index.js.map +1 -0
- package/dist/browser/editor-runtime/dist-BiRlv37L.js +1973 -0
- package/dist/browser/editor-runtime/dist-BiRlv37L.js.map +1 -0
- package/dist/browser/editor-runtime/rolldown-runtime-CHQKHQ89.js +32 -0
- package/dist/index.iife.js +35 -35
- package/package.json +22 -10
- package/dist/browser/alert-dialog-D7zUk8HM.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as e } from "../rolldown-runtime-CWhphoD1.js";
|
|
2
|
-
import { Bt as t, C as n, Dt as r, E as i, F as a, H as o,
|
|
2
|
+
import { Bt as t, C as n, Dt as r, E as i, F as a, H as o, Mt as s, Nt as c, St as l, T as u, Tt as d, Ut as f, _ as p, bt as m, d as h, f as g, g as ee, gt as _, h as v, jt as y, l as b, m as x, p as S, s as te, t as ne, u as re, w as C, yt as ie, zt as ae } from "../alert-dialog-Cxmcc8UK.js";
|
|
3
3
|
import { D as oe, E as w, l as T, r as E, t as se } from "../dist-Denz71xw.js";
|
|
4
4
|
import * as D from "react";
|
|
5
5
|
import O, { useRef as k, useState as ce } from "react";
|
|
@@ -77,7 +77,7 @@ de.propTypes = {
|
|
|
77
77
|
fgFill: M.default.string.isRequired,
|
|
78
78
|
borderFill: M.default.string.isRequired
|
|
79
79
|
};
|
|
80
|
-
var fe =
|
|
80
|
+
var fe = l("div")(({ size: e }) => ({
|
|
81
81
|
width: e || "25px",
|
|
82
82
|
height: e || "25px"
|
|
83
83
|
})), N = ({ open: e, size: t }) => /* @__PURE__ */ A(fe, {
|
|
@@ -134,7 +134,7 @@ function he(e, t, n) {
|
|
|
134
134
|
var ge = (e) => {
|
|
135
135
|
let { draggingNodeRect: t, transform: n, scrollableAncestorRects: r } = e, i = r[0];
|
|
136
136
|
return !t || !i ? n : he(n, t, i);
|
|
137
|
-
}, _e = "height ease-in 300ms, opacity ease-in 300ms", ve =
|
|
137
|
+
}, _e = "height ease-in 300ms, opacity ease-in 300ms", ve = l("div")(() => ({
|
|
138
138
|
position: "relative",
|
|
139
139
|
height: 0,
|
|
140
140
|
overflow: "hidden",
|
|
@@ -202,21 +202,21 @@ function F(e) {
|
|
|
202
202
|
function be(e, t) {
|
|
203
203
|
return !e || F(e) ? e : F(e.default) ? e.default : t && F(e[t]) ? e[t] : t && F(e[t]?.default) ? e[t].default : e;
|
|
204
204
|
}
|
|
205
|
-
var xe = be(
|
|
205
|
+
var xe = be(u, "Readable") || be(Se.Readable, "Readable"), I = p, L = I.default, Se = L && typeof L == "object" ? L : I, { translator: R } = w, Ce = {
|
|
206
206
|
WebkitTouchCallout: "none",
|
|
207
207
|
WebkitUserSelect: "none",
|
|
208
208
|
KhtmlUserSelect: "none",
|
|
209
209
|
MozUserSelect: "none",
|
|
210
210
|
msUserSelect: "none",
|
|
211
211
|
userSelect: "none"
|
|
212
|
-
}, we =
|
|
212
|
+
}, we = l("div")(() => ({
|
|
213
213
|
width: "100%",
|
|
214
214
|
cursor: "pointer"
|
|
215
|
-
})), Te =
|
|
215
|
+
})), Te = l("div")(() => ({
|
|
216
216
|
margin: "0 auto",
|
|
217
217
|
textAlign: "center",
|
|
218
218
|
display: "flex"
|
|
219
|
-
})), Ee =
|
|
219
|
+
})), Ee = l("div")(() => ({
|
|
220
220
|
width: "fit-content",
|
|
221
221
|
minWidth: "140px",
|
|
222
222
|
alignSelf: "center",
|
|
@@ -224,7 +224,7 @@ var xe = be(d, "Readable") || be(Se.Readable, "Readable"), I = p, L = I.default,
|
|
|
224
224
|
color: `var(--correct-answer-toggle-label-color, ${t.text()})`,
|
|
225
225
|
fontWeight: "normal",
|
|
226
226
|
...Ce
|
|
227
|
-
})), z =
|
|
227
|
+
})), z = l("div")(() => ({
|
|
228
228
|
position: "absolute",
|
|
229
229
|
width: "25px",
|
|
230
230
|
"&.enter": { opacity: "0" },
|
|
@@ -237,7 +237,7 @@ var xe = be(d, "Readable") || be(Se.Readable, "Readable"), I = p, L = I.default,
|
|
|
237
237
|
opacity: "0",
|
|
238
238
|
transition: "opacity 0.3s ease-in"
|
|
239
239
|
}
|
|
240
|
-
})), De =
|
|
240
|
+
})), De = l("div")(() => ({
|
|
241
241
|
width: "25px",
|
|
242
242
|
marginRight: "5px",
|
|
243
243
|
display: "flex",
|
|
@@ -332,7 +332,7 @@ var xe = be(d, "Readable") || be(Se.Readable, "Readable"), I = p, L = I.default,
|
|
|
332
332
|
//#endregion
|
|
333
333
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/CardContent/cardContentClasses.js
|
|
334
334
|
function ke(e) {
|
|
335
|
-
return
|
|
335
|
+
return s("MuiCardContent", e);
|
|
336
336
|
}
|
|
337
337
|
y("MuiCardContent", ["root"]);
|
|
338
338
|
//#endregion
|
|
@@ -340,7 +340,7 @@ y("MuiCardContent", ["root"]);
|
|
|
340
340
|
var Ae = (e) => {
|
|
341
341
|
let { classes: t } = e;
|
|
342
342
|
return r({ root: ["root"] }, ke, t);
|
|
343
|
-
}, je =
|
|
343
|
+
}, je = l("div", {
|
|
344
344
|
name: "MuiCardContent",
|
|
345
345
|
slot: "Root"
|
|
346
346
|
})({
|
|
@@ -356,7 +356,7 @@ var Ae = (e) => {
|
|
|
356
356
|
};
|
|
357
357
|
return /*#__PURE__*/ A(je, {
|
|
358
358
|
as: i,
|
|
359
|
-
className:
|
|
359
|
+
className: c(Ae(o).root, r),
|
|
360
360
|
ownerState: o,
|
|
361
361
|
ref: t,
|
|
362
362
|
...a
|
|
@@ -368,7 +368,7 @@ var Ae = (e) => {
|
|
|
368
368
|
var B = {
|
|
369
369
|
content: M.default.string.isRequired,
|
|
370
370
|
id: M.default.string
|
|
371
|
-
}, Ne =
|
|
371
|
+
}, Ne = l("div", { shouldForwardProp: (e) => ![
|
|
372
372
|
"isDragging",
|
|
373
373
|
"disabled",
|
|
374
374
|
"correct",
|
|
@@ -381,12 +381,12 @@ var B = {
|
|
|
381
381
|
...i && { border: `solid 2px ${t.buttonFocusOutline()}` },
|
|
382
382
|
...r === !0 && { border: `solid 2px ${t.correct()}` },
|
|
383
383
|
...r === !1 && { border: `solid 2px ${t.incorrect()}` }
|
|
384
|
-
})), Pe =
|
|
384
|
+
})), Pe = l(te, { shouldForwardProp: (e) => e !== "isSelected" })(({ isSelected: e }) => ({
|
|
385
385
|
color: t.text(),
|
|
386
386
|
backgroundColor: t.background(),
|
|
387
387
|
width: "100%",
|
|
388
388
|
opacity: e ? .5 : 1
|
|
389
|
-
})), Fe =
|
|
389
|
+
})), Fe = l(Me)(({ theme: e }) => ({
|
|
390
390
|
color: t.text(),
|
|
391
391
|
backgroundColor: t.white(),
|
|
392
392
|
"&:last-child": { paddingBottom: e.spacing(2) },
|
|
@@ -469,14 +469,14 @@ var H = b.withUid(V);
|
|
|
469
469
|
//#region src/delivery/categorize/droppable-placeholder.tsx
|
|
470
470
|
(0, P.default)("@pie-ui:categorize:droppable-placeholder");
|
|
471
471
|
var U = ({ children: e, grid: n, disabled: r, choiceBoard: i, minRowHeight: a, id: o, correct: s, selectedItem: c, onPlacementClick: l }) => {
|
|
472
|
-
let u =
|
|
472
|
+
let u = d(), [f, p] = ce(!1), { setNodeRef: m, isOver: g } = ee({
|
|
473
473
|
id: o,
|
|
474
474
|
data: {
|
|
475
475
|
itemType: "categorize",
|
|
476
476
|
categoryId: o
|
|
477
477
|
},
|
|
478
478
|
disabled: r
|
|
479
|
-
}), _ = !!c, v = g || _ &&
|
|
479
|
+
}), _ = !!c, v = g || _ && f && !r, y = !r, b = () => {
|
|
480
480
|
r || !c || l?.(o);
|
|
481
481
|
}, x = (e) => {
|
|
482
482
|
e.target === e.currentTarget && (e.code === "Space" || e.code === "Enter") && (e.preventDefault(), b());
|
|
@@ -535,10 +535,10 @@ U.propTypes = {
|
|
|
535
535
|
};
|
|
536
536
|
//#endregion
|
|
537
537
|
//#region src/delivery/categorize/choices.tsx
|
|
538
|
-
var Le =
|
|
538
|
+
var Le = l("div")({
|
|
539
539
|
flex: 1,
|
|
540
540
|
touchAction: "none"
|
|
541
|
-
}), Re =
|
|
541
|
+
}), Re = l("div")(({ theme: e }) => ({
|
|
542
542
|
margin: "0 auto",
|
|
543
543
|
textAlign: "center",
|
|
544
544
|
paddingTop: e.spacing(1)
|
|
@@ -607,7 +607,7 @@ var Le = u("div")({
|
|
|
607
607
|
children: t
|
|
608
608
|
});
|
|
609
609
|
}
|
|
610
|
-
}, Ve =
|
|
610
|
+
}, Ve = l("div")(({ theme: e }) => ({
|
|
611
611
|
display: "grid",
|
|
612
612
|
columnGap: e.spacing(1),
|
|
613
613
|
gridColumnGap: e.spacing(1),
|
|
@@ -655,7 +655,7 @@ var Le = u("div")({
|
|
|
655
655
|
})
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
|
-
}, We =
|
|
658
|
+
}, We = l("div")(({ theme: e }) => ({
|
|
659
659
|
display: "flex",
|
|
660
660
|
flexDirection: "column",
|
|
661
661
|
flex: 2
|
|
@@ -705,18 +705,18 @@ var Le = u("div")({
|
|
|
705
705
|
})
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
|
-
}, Ke =
|
|
708
|
+
}, Ke = l("div")(({ theme: e }) => ({
|
|
709
709
|
color: t.text(),
|
|
710
710
|
backgroundColor: t.background(),
|
|
711
711
|
textAlign: "center",
|
|
712
712
|
paddingTop: e.spacing(1)
|
|
713
|
-
})), qe =
|
|
713
|
+
})), qe = l("div")({
|
|
714
714
|
alignItems: "center",
|
|
715
715
|
display: "flex",
|
|
716
716
|
justifyContent: "center",
|
|
717
717
|
flex: .5,
|
|
718
718
|
marginRight: "12px"
|
|
719
|
-
}), Je =
|
|
719
|
+
}), Je = l("div")({
|
|
720
720
|
display: "flex",
|
|
721
721
|
flex: "2",
|
|
722
722
|
flexDirection: "column"
|
|
@@ -777,7 +777,7 @@ var Qe = G(a, "UiLayout") || G(Y.UiLayout, "UiLayout"), K = G(i, "PreviewPrompt"
|
|
|
777
777
|
static propTypes = { children: M.default.node };
|
|
778
778
|
containerRef = O.createRef();
|
|
779
779
|
componentDidMount() {
|
|
780
|
-
this.containerRef.current &&
|
|
780
|
+
this.containerRef.current && f(this.containerRef.current);
|
|
781
781
|
}
|
|
782
782
|
render() {
|
|
783
783
|
return /* @__PURE__ */ A("div", {
|
|
@@ -1055,19 +1055,19 @@ var Qe = G(a, "UiLayout") || G(Y.UiLayout, "UiLayout"), K = G(i, "PreviewPrompt"
|
|
|
1055
1055
|
})
|
|
1056
1056
|
});
|
|
1057
1057
|
}
|
|
1058
|
-
}, ot =
|
|
1058
|
+
}, ot = l(Qe)({
|
|
1059
1059
|
color: t.text(),
|
|
1060
1060
|
backgroundColor: t.background(),
|
|
1061
1061
|
position: "relative"
|
|
1062
|
-
}), st =
|
|
1062
|
+
}), st = l("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), ct = l("div")(({ theme: e }) => ({
|
|
1063
1063
|
marginBottom: e.spacing(1),
|
|
1064
1064
|
maxWidth: "100%",
|
|
1065
1065
|
overflowX: "auto",
|
|
1066
1066
|
overflowY: "hidden"
|
|
1067
|
-
})), lt =
|
|
1067
|
+
})), lt = l("div")(() => ({
|
|
1068
1068
|
display: "flex",
|
|
1069
1069
|
minWidth: "min-content"
|
|
1070
|
-
})), ut =
|
|
1070
|
+
})), ut = l($e)(({ theme: e }) => ({ paddingBottom: e.spacing(2) }));
|
|
1071
1071
|
//#endregion
|
|
1072
1072
|
//#region src/delivery/index.ts
|
|
1073
1073
|
function Q(e) {
|
|
@@ -1082,7 +1082,7 @@ var ft = dt("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMC
|
|
|
1082
1082
|
}
|
|
1083
1083
|
_scheduleMathRender = () => {
|
|
1084
1084
|
this._mathRenderPending || (this._mathRenderPending = !0, requestAnimationFrame(() => {
|
|
1085
|
-
this._mathObserver && !this._mathObserverPaused && this._mathObserver.disconnect(),
|
|
1085
|
+
this._mathObserver && !this._mathObserverPaused && this._mathObserver.disconnect(), f(this), this._mathRenderPending = !1, setTimeout(() => {
|
|
1086
1086
|
this._mathObserver && !this._mathObserverPaused && this._mathObserver.observe(this, {
|
|
1087
1087
|
childList: !0,
|
|
1088
1088
|
subtree: !0,
|
|
@@ -1144,7 +1144,7 @@ var ft = dt("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMC
|
|
|
1144
1144
|
this._session.answers = e, this._session.selector = "Mouse", this.dispatchEvent(new me(this.tagName.toLowerCase(), this.isComplete())), this.render();
|
|
1145
1145
|
}
|
|
1146
1146
|
onShowCorrectToggle() {
|
|
1147
|
-
|
|
1147
|
+
f(this);
|
|
1148
1148
|
}
|
|
1149
1149
|
_createAudioInfoToast() {
|
|
1150
1150
|
let e = document.createElement("div");
|