@pie-element/explicit-constructed-response 11.1.2-next.10 → 11.1.2-next.12
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/author/index.js +1 -1
- package/dist/browser/delivery/index.js +71 -11
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/{dist-Bf-VDZs4.js → dist-7r5IDQTj.js} +16 -5
- package/dist/browser/{dist-Bf-VDZs4.js.map → dist-7r5IDQTj.js.map} +1 -1
- package/dist/browser/{main-DfIrflzI.js → main-C3qOHwA5.js} +245 -247
- package/dist/browser/{main-DfIrflzI.js.map → main-C3qOHwA5.js.map} +1 -1
- package/dist/browser/print/index.js +2 -2
- package/dist/delivery/index.js +18 -8
- package/dist/delivery/main.d.ts +0 -2
- package/dist/delivery/main.js +36 -38
- package/dist/index.iife.js +100 -100
- package/module/print.js +18 -9
- package/module/print.js.map +1 -1
- package/package.json +8 -15
package/module/print.js
CHANGED
|
@@ -49869,6 +49869,8 @@ var F$ = (e) => {
|
|
|
49869
49869
|
classes: t
|
|
49870
49870
|
}) });
|
|
49871
49871
|
}, I$ = F("div")(() => ({
|
|
49872
|
+
height: 0,
|
|
49873
|
+
overflow: "visible",
|
|
49872
49874
|
"& .defaultToolbar": {
|
|
49873
49875
|
display: "flex",
|
|
49874
49876
|
width: "100%",
|
|
@@ -49904,13 +49906,14 @@ var F$ = (e) => {
|
|
|
49904
49906
|
color: "var(--white)"
|
|
49905
49907
|
},
|
|
49906
49908
|
"& .toolbar": {
|
|
49907
|
-
position: "
|
|
49909
|
+
position: "relative",
|
|
49910
|
+
top: "5px",
|
|
49908
49911
|
zIndex: 20,
|
|
49909
49912
|
cursor: "pointer",
|
|
49910
49913
|
justifyContent: "space-between",
|
|
49911
49914
|
background: "var(--editable-html-toolbar-bg, #efefef)",
|
|
49912
49915
|
minWidth: "280px",
|
|
49913
|
-
margin:
|
|
49916
|
+
margin: 0,
|
|
49914
49917
|
padding: "2px",
|
|
49915
49918
|
boxShadow: "0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12)",
|
|
49916
49919
|
boxSizing: "border-box",
|
|
@@ -49919,7 +49922,10 @@ var F$ = (e) => {
|
|
|
49919
49922
|
pointerEvents: "none"
|
|
49920
49923
|
},
|
|
49921
49924
|
"& .toolbarWithNoDone": { minWidth: "265px" },
|
|
49922
|
-
"& .toolbarTop": {
|
|
49925
|
+
"& .toolbarTop": {
|
|
49926
|
+
position: "absolute",
|
|
49927
|
+
top: "-45px"
|
|
49928
|
+
},
|
|
49923
49929
|
"& .toolbarRight": { right: 0 },
|
|
49924
49930
|
"& .fullWidth": { width: "100%" },
|
|
49925
49931
|
"& .hidden": { visibility: "hidden" },
|
|
@@ -56591,6 +56597,8 @@ var S7 = jA.create({
|
|
|
56591
56597
|
"--red-light": "#ffebe5",
|
|
56592
56598
|
"--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
|
|
56593
56599
|
}, M7 = (e) => ({
|
|
56600
|
+
role: "textbox",
|
|
56601
|
+
"data-pie-editor": "true",
|
|
56594
56602
|
spellcheck: e ? "true" : "false",
|
|
56595
56603
|
autocorrect: e ? "on" : "off",
|
|
56596
56604
|
autocapitalize: e ? "on" : "off"
|
|
@@ -56757,7 +56765,10 @@ var S7 = jA.create({
|
|
|
56757
56765
|
h?.setEditable(!e.disabled);
|
|
56758
56766
|
}, [e.disabled, h]), (0, _.useEffect)(() => {
|
|
56759
56767
|
if (!h) return;
|
|
56760
|
-
let e = h.options?.editorProps, t =
|
|
56768
|
+
let e = h.options?.editorProps, t = {
|
|
56769
|
+
...e?.attributes,
|
|
56770
|
+
...M7(m)
|
|
56771
|
+
};
|
|
56761
56772
|
e?.attributes?.spellcheck !== t.spellcheck && h.setOptions({ editorProps: {
|
|
56762
56773
|
...e,
|
|
56763
56774
|
attributes: t
|
|
@@ -56921,17 +56932,15 @@ var z7 = R7(Wf, "UiLayout") || R7(W7.UiLayout, "UiLayout"), B7 = R7(xp, "Preview
|
|
|
56921
56932
|
};
|
|
56922
56933
|
static defaultProps = { value: {} };
|
|
56923
56934
|
state = { showCorrectAnswer: this.props.alwaysShowCorrect || !1 };
|
|
56924
|
-
getChangeSession = (e) => e && e.every((e, t, n) => e === n[0] && e === 1) ? this.props.onChange : C(this.props.onChange, 200, { maxWait: 200 });
|
|
56925
56935
|
UNSAFE_componentWillReceiveProps(e) {
|
|
56926
|
-
let {
|
|
56927
|
-
E(e.feedback) && this.setState({ showCorrectAnswer: !1 }), e.alwaysShowCorrect && this.setState({ showCorrectAnswer: !0 }),
|
|
56936
|
+
let { language: t } = this.props, { note: n } = this.props;
|
|
56937
|
+
E(e.feedback) && this.setState({ showCorrectAnswer: !1 }), e.alwaysShowCorrect && this.setState({ showCorrectAnswer: !0 }), n && t && t !== e.language && n === G7.t("common:commonCorrectAnswerWithAlternates", { lng: t }) && (n = G7.t("common:commonCorrectAnswerWithAlternates", { lng: e.language }));
|
|
56928
56938
|
}
|
|
56929
56939
|
toggleShowCorrect = () => {
|
|
56930
56940
|
this.setState({ showCorrectAnswer: !this.state.showCorrectAnswer });
|
|
56931
56941
|
};
|
|
56932
|
-
changeSession = this.getChangeSession(this.props.maxLengthPerChoice);
|
|
56933
56942
|
onChange = (e) => {
|
|
56934
|
-
this.
|
|
56943
|
+
this.props.onChange(e);
|
|
56935
56944
|
};
|
|
56936
56945
|
render() {
|
|
56937
56946
|
let { showCorrectAnswer: e } = this.state, { alwaysShowCorrect: t, animationsDisabled: n, mode: r, displayType: i, role: a, language: o, maxLengthPerChoice: s, maxLengthPerChoiceEnabled: c, note: l, playerSpellCheckEnabled: u, prompt: d, rationale: f, showNote: p, teacherInstructions: m, responseAreaInputConfiguration: h, model: g, value: _ } = this.props, { extraCSSRules: v } = g || {}, y = (e || r === "view" && a === "instructor") && p && l, b = /* @__PURE__ */ (0, M.jsx)(B7, {
|