@pie-element/explicit-constructed-response 11.1.2-next.11 → 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/delivery/index.js +70 -10
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/{main-CzJ8NicJ.js → main-C3qOHwA5.js} +245 -247
- package/dist/browser/{main-CzJ8NicJ.js.map → main-C3qOHwA5.js.map} +1 -1
- package/dist/browser/print/index.js +1 -1
- 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 +3 -5
- package/module/print.js.map +1 -1
- package/package.json +2 -2
package/module/print.js
CHANGED
|
@@ -56932,17 +56932,15 @@ var z7 = R7(Wf, "UiLayout") || R7(W7.UiLayout, "UiLayout"), B7 = R7(xp, "Preview
|
|
|
56932
56932
|
};
|
|
56933
56933
|
static defaultProps = { value: {} };
|
|
56934
56934
|
state = { showCorrectAnswer: this.props.alwaysShowCorrect || !1 };
|
|
56935
|
-
getChangeSession = (e) => e && e.every((e, t, n) => e === n[0] && e === 1) ? this.props.onChange : C(this.props.onChange, 200, { maxWait: 200 });
|
|
56936
56935
|
UNSAFE_componentWillReceiveProps(e) {
|
|
56937
|
-
let {
|
|
56938
|
-
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 }));
|
|
56939
56938
|
}
|
|
56940
56939
|
toggleShowCorrect = () => {
|
|
56941
56940
|
this.setState({ showCorrectAnswer: !this.state.showCorrectAnswer });
|
|
56942
56941
|
};
|
|
56943
|
-
changeSession = this.getChangeSession(this.props.maxLengthPerChoice);
|
|
56944
56942
|
onChange = (e) => {
|
|
56945
|
-
this.
|
|
56943
|
+
this.props.onChange(e);
|
|
56946
56944
|
};
|
|
56947
56945
|
render() {
|
|
56948
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, {
|