@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 CHANGED
@@ -2,7 +2,7 @@ import * as KAS from '@khanacademy/kas';
2
2
  import { MathInputI18nContext, CursorContext, getKeyTranslator, createMathField, getCursorContext, DesktopKeypad, convertDotToTimesByLocale, mathQuillInstance, KeypadInput, KeypadType, KeyArray, keypadElementPropType } from '@khanacademy/math-input';
3
3
  import * as PerseusLinter from '@khanacademy/perseus-linter';
4
4
  import { linterContextDefault, Rule, linterContextProps } from '@khanacademy/perseus-linter';
5
- import { View, RenderStateRoot, useUniqueIdWithMock, UniqueIDProvider, Text as Text$2 } from '@khanacademy/wonder-blocks-core';
5
+ import { View, RenderStateRoot, UniqueIDProvider, useUniqueIdWithMock, Text as Text$2 } from '@khanacademy/wonder-blocks-core';
6
6
  import Tooltip$1 from '@khanacademy/wonder-blocks-tooltip';
7
7
  import classNames from 'classnames';
8
8
  import * as React from 'react';
@@ -23407,8 +23407,6 @@ const Choice = function Choice(props) {
23407
23407
  const showDimmed = !reviewMode && apiOptions.readOnly || crossedOut;
23408
23408
  const letter = getChoiceLetter(pos, strings);
23409
23409
  const a11yText = getA11yText(letter, checked, correct, crossedOut, showCorrectness, strings);
23410
- const idFactory = useUniqueIdWithMock(`choice`);
23411
- const choiceId = idFactory.get(letter);
23412
23410
  return /*#__PURE__*/React.createElement("div", {
23413
23411
  style: {
23414
23412
  // @ts-expect-error - TS2322 - Type '{ dispay: string; flexDirection: "column"; color: string; }' is not assignable to type 'Properties<string | number, string & {}>'.
@@ -23427,9 +23425,8 @@ const Choice = function Choice(props) {
23427
23425
  }
23428
23426
  }, /*#__PURE__*/React.createElement("div", {
23429
23427
  className: "perseus-sr-only"
23430
- }, /*#__PURE__*/React.createElement("input", {
23428
+ }, /*#__PURE__*/React.createElement("label", null, a11yText, " \xA0 ", content, /*#__PURE__*/React.createElement("input", {
23431
23429
  type: multipleSelect ? "checkbox" : "radio",
23432
- id: choiceId,
23433
23430
  checked: checked,
23434
23431
  onClick: () => {
23435
23432
  // If we're checking a crossed-out option, let's
@@ -23443,9 +23440,7 @@ const Choice = function Choice(props) {
23443
23440
  disabled: disabled || apiOptions.readOnly,
23444
23441
  tabIndex: -1,
23445
23442
  className: ClassNames.RADIO.OPTION_CONTENT
23446
- }), /*#__PURE__*/React.createElement("label", {
23447
- htmlFor: choiceId
23448
- }, a11yText, " \xA0 ", content)), /*#__PURE__*/React.createElement(Clickable, {
23443
+ }))), /*#__PURE__*/React.createElement(Clickable, {
23449
23444
  onClick: () => {
23450
23445
  // If we're checking a crossed-out option, let's
23451
23446
  // also uncross it.
@@ -43294,7 +43289,7 @@ const init = function init(options) {
43294
43289
 
43295
43290
  // This file is processed by a Rollup plugin (replace) to inject the production
43296
43291
  const libName = "@khanacademy/perseus";
43297
- const libVersion = "22.4.1";
43292
+ const libVersion = "22.4.2";
43298
43293
  addLibraryVersionToPerseusDebug(libName, libVersion);
43299
43294
 
43300
43295
  const apiVersion = {