@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/es/index.js +4 -4
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -22599,10 +22599,10 @@ const propsTransform = function propsTransform(widgetOptions) {
|
|
|
22599
22599
|
const propUpgrades$2 = {
|
|
22600
22600
|
/* c8 ignore next */
|
|
22601
22601
|
"1": initialProps => {
|
|
22602
|
-
// If the initialProps has
|
|
22602
|
+
// If the initialProps has simplify, it means we're upgrading from
|
|
22603
22603
|
// input-number to numeric-input. In this case, we need to upgrade
|
|
22604
22604
|
// the widget options accordingly.
|
|
22605
|
-
if (initialProps.
|
|
22605
|
+
if (initialProps.simplify !== undefined) {
|
|
22606
22606
|
// If the answerType is not number or percent, we need to provide
|
|
22607
22607
|
// the answer form for the numeric-input widget
|
|
22608
22608
|
const provideAnswerForm = initialProps.answerType !== "number" && initialProps.answerType !== "percent";
|
|
@@ -45053,7 +45053,7 @@ const init = function init() {
|
|
|
45053
45053
|
|
|
45054
45054
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
45055
45055
|
const libName = "@khanacademy/perseus";
|
|
45056
|
-
const libVersion = "42.0.
|
|
45056
|
+
const libVersion = "42.0.3";
|
|
45057
45057
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
45058
45058
|
|
|
45059
45059
|
const apiVersion = {
|
|
@@ -49235,7 +49235,7 @@ const parseRadioWidget = parseWidget(constant("radio"), object({
|
|
|
49235
49235
|
displayCount: optional(any),
|
|
49236
49236
|
// v0 props
|
|
49237
49237
|
// `noneOfTheAbove` is still in use (but only set to `false`).
|
|
49238
|
-
noneOfTheAbove: constant(false)
|
|
49238
|
+
noneOfTheAbove: optional(constant(false))
|
|
49239
49239
|
}));
|
|
49240
49240
|
|
|
49241
49241
|
const parseSorterWidget = parseWidget(constant("sorter"), object({
|