@khanacademy/perseus 11.3.0 → 11.5.0

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.css CHANGED
@@ -1597,9 +1597,6 @@ body.mobile ul.inequalities-one-line-radios > li {
1597
1597
  .framework-perseus.perseus-article:not(.perseus-mobile) .MathJax .math {
1598
1598
  color: inherit;
1599
1599
  }
1600
- .framework-perseus.perseus-article:not(.perseus-mobile) .perseus-image-widget {
1601
- text-align: center;
1602
- }
1603
1600
  .framework-perseus.perseus-article:not(.perseus-mobile) .perseus-image-caption .perseus-renderer .paragraph .paragraph,
1604
1601
  .framework-perseus.perseus-article:not(.perseus-mobile) .perseus-image-caption .perseus-renderer .paragraph ol,
1605
1602
  .framework-perseus.perseus-article:not(.perseus-mobile) .perseus-image-caption .perseus-renderer .paragraph ul {
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
- extraVariables.sort();
2967
- const extraConstants = Object.keys(uniqueExtraConstants);
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.push("PI");
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 = {