@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/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 { maxLengthPerChoice: t, language: n } = this.props, { note: r } = this.props;
56938
- E(e.feedback) && this.setState({ showCorrectAnswer: !1 }), e.alwaysShowCorrect && this.setState({ showCorrectAnswer: !0 }), t && !O(t, e.maxLengthPerChoice) && (this.changeSession = this.getChangeSession(e.maxLengthPerChoice)), r && n && n !== e.language && r === G7.t("common:commonCorrectAnswerWithAlternates", { lng: n }) && (r = G7.t("common:commonCorrectAnswerWithAlternates", { lng: e.language }));
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.changeSession(e);
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, {