@pie-element/match 12.1.2-next.27 → 12.1.2-next.30
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/{Typography-DZO80icZ.js → Typography-BX-ak3_U.js} +326 -330
- package/dist/browser/{Typography-DZO80icZ.js.map → Typography-BX-ak3_U.js.map} +1 -1
- package/dist/browser/author/index.js +65 -59
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +24 -24
- package/dist/browser/editor-runtime/{Typography-DneM6GGO.js → Typography-l-ZVRFDi.js} +326 -330
- package/dist/browser/editor-runtime/{Typography-DneM6GGO.js.map → Typography-l-ZVRFDi.js.map} +1 -1
- package/dist/browser/editor-runtime/author/index.js +3489 -3483
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +24 -24
- package/dist/index.iife.js +21 -21
- package/package.json +13 -13
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as e } from "../browser-kkT1XVKw.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Nt as t, O as n, a as r, d as i, dt as a, f as o, ft as s, ht as c, k as l, n as u, p as d, pt as f, r as p, t as m, u as h, x as g } from "../Typography-BX-ak3_U.js";
|
|
3
3
|
import _, { useRef as v } from "react";
|
|
4
4
|
import { createRoot as y } from "react-dom/client";
|
|
5
5
|
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
6
6
|
//#region ../../lib-react/correct-answer-toggle/dist/expander.js
|
|
7
|
-
var S = /* @__PURE__ */ e(
|
|
7
|
+
var S = /* @__PURE__ */ e(t(), 1), C = "height ease-in 300ms, opacity ease-in 300ms", w = c("div")(() => ({
|
|
8
8
|
position: "relative",
|
|
9
9
|
height: 0,
|
|
10
10
|
overflow: "hidden",
|
|
@@ -137,7 +137,7 @@ D.propTypes = {
|
|
|
137
137
|
fgFill: S.default.string.isRequired,
|
|
138
138
|
borderFill: S.default.string.isRequired
|
|
139
139
|
};
|
|
140
|
-
var ee =
|
|
140
|
+
var ee = c("div")(({ size: e }) => ({
|
|
141
141
|
width: e || "25px",
|
|
142
142
|
height: e || "25px"
|
|
143
143
|
})), O = ({ open: e, size: t }) => /* @__PURE__ */ b(ee, {
|
|
@@ -1688,29 +1688,29 @@ function G(e) {
|
|
|
1688
1688
|
function Ue(e, t) {
|
|
1689
1689
|
return !e || G(e) ? e : G(e.default) ? e.default : t && G(e[t]) ? e[t] : t && G(e[t]?.default) ? e[t].default : e;
|
|
1690
1690
|
}
|
|
1691
|
-
var We = Ue(
|
|
1691
|
+
var We = Ue(o, "Readable") || Ue(Ke.Readable, "Readable"), Ge = r, K = Ge.default, Ke = K && typeof K == "object" ? K : Ge, { translator: q } = He, qe = {
|
|
1692
1692
|
WebkitTouchCallout: "none",
|
|
1693
1693
|
WebkitUserSelect: "none",
|
|
1694
1694
|
KhtmlUserSelect: "none",
|
|
1695
1695
|
MozUserSelect: "none",
|
|
1696
1696
|
msUserSelect: "none",
|
|
1697
1697
|
userSelect: "none"
|
|
1698
|
-
}, Je =
|
|
1698
|
+
}, Je = c("div")(() => ({
|
|
1699
1699
|
width: "100%",
|
|
1700
1700
|
cursor: "pointer"
|
|
1701
|
-
})), Ye =
|
|
1701
|
+
})), Ye = c("div")(() => ({
|
|
1702
1702
|
margin: "0 auto",
|
|
1703
1703
|
textAlign: "center",
|
|
1704
1704
|
display: "flex"
|
|
1705
|
-
})), Xe =
|
|
1705
|
+
})), Xe = c("div")(() => ({
|
|
1706
1706
|
width: "fit-content",
|
|
1707
1707
|
minWidth: "140px",
|
|
1708
1708
|
alignSelf: "center",
|
|
1709
1709
|
verticalAlign: "middle",
|
|
1710
|
-
color: `var(--correct-answer-toggle-label-color, ${
|
|
1710
|
+
color: `var(--correct-answer-toggle-label-color, ${s.text()})`,
|
|
1711
1711
|
fontWeight: "normal",
|
|
1712
1712
|
...qe
|
|
1713
|
-
})), Ze =
|
|
1713
|
+
})), Ze = c("div")(() => ({
|
|
1714
1714
|
position: "absolute",
|
|
1715
1715
|
width: "25px",
|
|
1716
1716
|
"&.enter": { opacity: "0" },
|
|
@@ -1723,7 +1723,7 @@ var We = Ue(s, "Readable") || Ue(Ke.Readable, "Readable"), Ge = i, K = Ge.defaul
|
|
|
1723
1723
|
opacity: "0",
|
|
1724
1724
|
transition: "opacity 0.3s ease-in"
|
|
1725
1725
|
}
|
|
1726
|
-
})), Qe =
|
|
1726
|
+
})), Qe = c("div")(() => ({
|
|
1727
1727
|
width: "25px",
|
|
1728
1728
|
marginRight: "5px",
|
|
1729
1729
|
display: "flex",
|
|
@@ -1814,21 +1814,21 @@ var We = Ue(s, "Readable") || Ue(Ke.Readable, "Readable"), Ge = i, K = Ge.defaul
|
|
|
1814
1814
|
})
|
|
1815
1815
|
});
|
|
1816
1816
|
}
|
|
1817
|
-
}, et =
|
|
1817
|
+
}, et = c("div")(({ theme: e }) => ({
|
|
1818
1818
|
marginLeft: "auto",
|
|
1819
1819
|
marginRight: "auto",
|
|
1820
1820
|
marginTop: e.spacing(1),
|
|
1821
1821
|
marginBottom: e.spacing(1)
|
|
1822
|
-
})), tt =
|
|
1822
|
+
})), tt = c("td")({ padding: "5px 0" }), nt = c(m)(({ theme: e }) => ({ margin: e.spacing(2) })), rt = c("th")({ padding: 0 }), J = c("div")(({ theme: e, isQuestionText: t }) => ({
|
|
1823
1823
|
padding: e.spacing(1.5),
|
|
1824
1824
|
textAlign: t ? "left" : "center"
|
|
1825
|
-
})), it =
|
|
1825
|
+
})), it = c("tr")({
|
|
1826
1826
|
border: 0,
|
|
1827
|
-
borderTop: `2.5px solid ${
|
|
1827
|
+
borderTop: `2.5px solid ${s.primaryLight()}`,
|
|
1828
1828
|
width: "100%"
|
|
1829
|
-
}), at =
|
|
1830
|
-
color:
|
|
1831
|
-
backgroundColor:
|
|
1829
|
+
}), at = c("table")({
|
|
1830
|
+
color: s.text(),
|
|
1831
|
+
backgroundColor: s.background(),
|
|
1832
1832
|
borderCollapse: "collapse",
|
|
1833
1833
|
borderSpacing: 0,
|
|
1834
1834
|
marginBottom: 0
|
|
@@ -1859,7 +1859,7 @@ var We = Ue(s, "Readable") || Ue(Ke.Readable, "Readable"), Ge = i, K = Ge.defaul
|
|
|
1859
1859
|
};
|
|
1860
1860
|
controlColor = (e, t, n) => {
|
|
1861
1861
|
let { showCorrect: r, disabled: i, view: a } = this.props, o = i && !a;
|
|
1862
|
-
return r && t === !0 || o && this.answerIsCorrect(e, t, n) ?
|
|
1862
|
+
return r && t === !0 || o && this.answerIsCorrect(e, t, n) ? s.correct() : o && this.answerIsIncorrect(e, t, n) ? s.incorrect() : t === !0 && !o ? s.primary() : i ? s.disabled() : s.text();
|
|
1863
1863
|
};
|
|
1864
1864
|
render() {
|
|
1865
1865
|
let { headers: e, rows: t, choiceMode: n, answers: r, disabled: i } = this.props, a = n === "radio" ? p : u;
|
|
@@ -1898,7 +1898,7 @@ var We = Ue(s, "Readable") || Ue(Ke.Readable, "Readable"), Ge = i, K = Ge.defaul
|
|
|
1898
1898
|
pointerEvents: i ? "initial" : "auto",
|
|
1899
1899
|
opacity: i ? .7 : 1,
|
|
1900
1900
|
"& input": { width: "100% !important" },
|
|
1901
|
-
"&&:hover:not(.Mui-disabled)": { color:
|
|
1901
|
+
"&&:hover:not(.Mui-disabled)": { color: s.primaryLight() }
|
|
1902
1902
|
},
|
|
1903
1903
|
disabled: i,
|
|
1904
1904
|
onChange: this.onRowValueChange(e.id, r),
|
|
@@ -1918,7 +1918,7 @@ function Y(e) {
|
|
|
1918
1918
|
function X(e, t) {
|
|
1919
1919
|
return !e || Y(e) ? e : Y(e.default) ? e.default : t && Y(e[t]) ? e[t] : t && Y(e[t]?.default) ? e[t].default : e;
|
|
1920
1920
|
}
|
|
1921
|
-
var st = X(g, "UiLayout") || X($.UiLayout, "UiLayout"), Z = X(d, "PreviewPrompt") || X($.PreviewPrompt, "PreviewPrompt"), ct = X(
|
|
1921
|
+
var st = X(g, "UiLayout") || X($.UiLayout, "UiLayout"), Z = X(d, "PreviewPrompt") || X($.PreviewPrompt, "PreviewPrompt"), ct = X(a, "Feedback") || X($.Feedback, "Feedback"), lt = X(n, "Collapsible") || X($.Collapsible, "Collapsible"), ut = r, Q = ut.default, $ = Q && typeof Q == "object" ? Q : ut, dt = c("div")({ verticalAlign: "middle" }), ft = c(lt)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), pt = class extends _.Component {
|
|
1922
1922
|
static propTypes = {
|
|
1923
1923
|
session: S.default.object.isRequired,
|
|
1924
1924
|
onSessionChange: S.default.func,
|
|
@@ -1969,11 +1969,11 @@ var st = X(g, "UiLayout") || X($.UiLayout, "UiLayout"), Z = X(d, "PreviewPrompt"
|
|
|
1969
1969
|
} }), this.callOnSessionChange);
|
|
1970
1970
|
};
|
|
1971
1971
|
render() {
|
|
1972
|
-
let { model: e } = this.props, { showCorrect: t, session: n } = this.state, { correctness: r = {}, extraCSSRules:
|
|
1972
|
+
let { model: e } = this.props, { showCorrect: t, session: n } = this.state, { correctness: r = {}, extraCSSRules: a, language: o } = e, s = r.correctness && r.correctness !== "correct", c = e.rationale && (i(e.rationale) || h(e.rationale));
|
|
1973
1973
|
return /* @__PURE__ */ x(st, {
|
|
1974
|
-
extraCSSRules:
|
|
1974
|
+
extraCSSRules: a,
|
|
1975
1975
|
children: [
|
|
1976
|
-
e.teacherInstructions && (
|
|
1976
|
+
e.teacherInstructions && (i(e.teacherInstructions) || h(e.teacherInstructions)) && /* @__PURE__ */ b(ft, {
|
|
1977
1977
|
labels: {
|
|
1978
1978
|
hidden: "Show Teacher Instructions",
|
|
1979
1979
|
visible: "Hide Teacher Instructions"
|
|
@@ -2079,7 +2079,7 @@ var mt = class e extends CustomEvent {
|
|
|
2079
2079
|
onSessionChange: this.sessionChanged.bind(this)
|
|
2080
2080
|
});
|
|
2081
2081
|
this._root ||= y(this), this._root.render(e), queueMicrotask(() => {
|
|
2082
|
-
|
|
2082
|
+
l(this);
|
|
2083
2083
|
});
|
|
2084
2084
|
}
|
|
2085
2085
|
disconnectedCallback() {
|