@khanacademy/perseus 11.4.0 → 11.5.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/CHANGELOG.md +24 -0
- package/dist/es/index.js +6 -7
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +6 -7
- package/dist/index.js.map +1 -1
- package/dist/widgets/expression.d.ts +2 -6
- package/package.json +3 -2
- package/src/widgets/__stories__/expression.stories.tsx +5 -1
- package/src/widgets/__tests__/expression-mobile.test.tsx +346 -0
- package/src/widgets/expression.tsx +11 -9
- package/tsconfig-build.tsbuildinfo +1 -1
package/dist/index.js
CHANGED
|
@@ -2962,19 +2962,18 @@ const keypadConfigurationForProps = widgetOptions => {
|
|
|
2962
2962
|
|
|
2963
2963
|
// TODO(charlie): Alert the keypad as to which of these symbols should be
|
|
2964
2964
|
// treated as functions.
|
|
2965
|
-
const extraVariables = Object.keys(uniqueExtraVariables);
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
extraConstants.sort();
|
|
2969
|
-
const extraKeys = [...extraVariables, ...extraConstants];
|
|
2965
|
+
const extraVariables = Object.keys(uniqueExtraVariables).sort();
|
|
2966
|
+
const extraConstants = Object.keys(uniqueExtraConstants).sort();
|
|
2967
|
+
let extraKeys = [...extraVariables, ...extraConstants];
|
|
2970
2968
|
if (!extraKeys.length) {
|
|
2971
2969
|
// If there are no extra symbols available, we include Pi anyway, so
|
|
2972
2970
|
// that the "extra symbols" button doesn't appear empty.
|
|
2973
|
-
extraKeys
|
|
2971
|
+
extraKeys = ["PI"];
|
|
2974
2972
|
}
|
|
2975
2973
|
return {
|
|
2976
2974
|
keypadType,
|
|
2977
|
-
extraKeys
|
|
2975
|
+
extraKeys,
|
|
2976
|
+
times: widgetOptions.times
|
|
2978
2977
|
};
|
|
2979
2978
|
};
|
|
2980
2979
|
const propUpgrades$2 = {
|