@khanacademy/perseus 22.4.1 → 22.4.2
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/es/index.js +4 -9
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +3 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23621,8 +23621,6 @@ const Choice = function (props) {
|
|
|
23621
23621
|
const showDimmed = !reviewMode && apiOptions.readOnly || crossedOut;
|
|
23622
23622
|
const letter = getChoiceLetter(pos, strings);
|
|
23623
23623
|
const a11yText = getA11yText(letter, checked, correct, crossedOut, showCorrectness, strings);
|
|
23624
|
-
const idFactory = wonderBlocksCore.useUniqueIdWithMock(`choice`);
|
|
23625
|
-
const choiceId = idFactory.get(letter);
|
|
23626
23624
|
return /*#__PURE__*/React__namespace.createElement("div", {
|
|
23627
23625
|
style: {
|
|
23628
23626
|
// @ts-expect-error - TS2322 - Type '{ dispay: string; flexDirection: "column"; color: string; }' is not assignable to type 'Properties<string | number, string & {}>'.
|
|
@@ -23641,9 +23639,8 @@ const Choice = function (props) {
|
|
|
23641
23639
|
}
|
|
23642
23640
|
}, /*#__PURE__*/React__namespace.createElement("div", {
|
|
23643
23641
|
className: "perseus-sr-only"
|
|
23644
|
-
}, /*#__PURE__*/React__namespace.createElement("input", {
|
|
23642
|
+
}, /*#__PURE__*/React__namespace.createElement("label", null, a11yText, " \xA0 ", content, /*#__PURE__*/React__namespace.createElement("input", {
|
|
23645
23643
|
type: multipleSelect ? "checkbox" : "radio",
|
|
23646
|
-
id: choiceId,
|
|
23647
23644
|
checked: checked,
|
|
23648
23645
|
onClick: () => {
|
|
23649
23646
|
// If we're checking a crossed-out option, let's
|
|
@@ -23657,9 +23654,7 @@ const Choice = function (props) {
|
|
|
23657
23654
|
disabled: disabled || apiOptions.readOnly,
|
|
23658
23655
|
tabIndex: -1,
|
|
23659
23656
|
className: ClassNames.RADIO.OPTION_CONTENT
|
|
23660
|
-
}), /*#__PURE__*/React__namespace.createElement("
|
|
23661
|
-
htmlFor: choiceId
|
|
23662
|
-
}, a11yText, " \xA0 ", content)), /*#__PURE__*/React__namespace.createElement(Clickable__default["default"], {
|
|
23657
|
+
}))), /*#__PURE__*/React__namespace.createElement(Clickable__default["default"], {
|
|
23663
23658
|
onClick: () => {
|
|
23664
23659
|
// If we're checking a crossed-out option, let's
|
|
23665
23660
|
// also uncross it.
|
|
@@ -43623,7 +43618,7 @@ const init = function (options) {
|
|
|
43623
43618
|
|
|
43624
43619
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
43625
43620
|
const libName = "@khanacademy/perseus";
|
|
43626
|
-
const libVersion = "22.4.
|
|
43621
|
+
const libVersion = "22.4.2";
|
|
43627
43622
|
perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
43628
43623
|
|
|
43629
43624
|
const apiVersion = {
|