@khanacademy/perseus 42.0.2 → 42.0.3

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
@@ -22821,10 +22821,10 @@ const propsTransform = function (widgetOptions) {
22821
22821
  const propUpgrades$2 = {
22822
22822
  /* c8 ignore next */
22823
22823
  "1": initialProps => {
22824
- // If the initialProps has a value, it means we're upgrading from
22824
+ // If the initialProps has simplify, it means we're upgrading from
22825
22825
  // input-number to numeric-input. In this case, we need to upgrade
22826
22826
  // the widget options accordingly.
22827
- if (initialProps.value) {
22827
+ if (initialProps.simplify !== undefined) {
22828
22828
  // If the answerType is not number or percent, we need to provide
22829
22829
  // the answer form for the numeric-input widget
22830
22830
  const provideAnswerForm = initialProps.answerType !== "number" && initialProps.answerType !== "percent";
@@ -45421,7 +45421,7 @@ const init = function () {
45421
45421
 
45422
45422
  // This file is processed by a Rollup plugin (replace) to inject the production
45423
45423
  const libName = "@khanacademy/perseus";
45424
- const libVersion = "42.0.2";
45424
+ const libVersion = "42.0.3";
45425
45425
  perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
45426
45426
 
45427
45427
  const apiVersion = {
@@ -49623,7 +49623,7 @@ const parseRadioWidget = parseWidget(constant("radio"), object({
49623
49623
  displayCount: optional(any),
49624
49624
  // v0 props
49625
49625
  // `noneOfTheAbove` is still in use (but only set to `false`).
49626
- noneOfTheAbove: constant(false)
49626
+ noneOfTheAbove: optional(constant(false))
49627
49627
  }));
49628
49628
 
49629
49629
  const parseSorterWidget = parseWidget(constant("sorter"), object({