@khanacademy/perseus-editor 14.9.0 → 14.9.1

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/index.js CHANGED
@@ -98,7 +98,7 @@ var arrowCounterClockwise__default = /*#__PURE__*/_interopDefaultLegacy(arrowCou
98
98
 
99
99
  // This file is processed by a Rollup plugin (replace) to inject the production
100
100
  const libName = "@khanacademy/perseus-editor";
101
- const libVersion = "14.9.0";
101
+ const libVersion = "14.9.1";
102
102
  perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
103
103
 
104
104
  function _extends() {
@@ -34964,7 +34964,6 @@ class Option extends React__namespace.Component {
34964
34964
  value,
34965
34965
  onClick,
34966
34966
  children,
34967
- optionRenderer,
34968
34967
  disabled,
34969
34968
  hideFocusState,
34970
34969
  testId,
@@ -34991,14 +34990,7 @@ class Option extends React__namespace.Component {
34991
34990
  "aria-disabled": disabled,
34992
34991
  "aria-label": ariaLabel,
34993
34992
  "data-testid": testId
34994
- }, optionRenderer && optionRenderer(
34995
- /*#__PURE__*/
34996
- /**
34997
- * This expects a `React.Element<>` but `children` is a
34998
- * `React.Node`. We can convert a `React.Node` to a
34999
- * `React.Element<>` by wrapping it in a fragment.
35000
- */
35001
- React__namespace.createElement(React__namespace.Fragment, null, children), value || "", selected || false, disabled), !optionRenderer && /*#__PURE__*/React__namespace.createElement("span", {
34993
+ }, /*#__PURE__*/React__namespace.createElement("span", {
35002
34994
  className: aphrodite.css(styles$4.option, selected && styles$4.optionSelected, disabled && styles$4.optionDisabled)
35003
34995
  }, children, selected && /*#__PURE__*/React__namespace.createElement("span", {
35004
34996
  className: aphrodite.css(styles$4.check)
@@ -35025,7 +35017,6 @@ class OptionGroup extends React__namespace.Component {
35025
35017
  children,
35026
35018
  onSelected,
35027
35019
  selectedValues,
35028
- optionRenderer,
35029
35020
  noMargin,
35030
35021
  onDropdownClose,
35031
35022
  hideFocusState
@@ -35049,7 +35040,6 @@ class OptionGroup extends React__namespace.Component {
35049
35040
  selected: selected,
35050
35041
  // @ts-expect-error - TS2532 - Object is possibly 'undefined'.
35051
35042
  onClick: () => onSelected(child.props.value),
35052
- optionRenderer: optionRenderer,
35053
35043
  ref: reference,
35054
35044
  onDropdownClose: onDropdownClose,
35055
35045
  hideFocusState: hideFocusState