@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/CHANGELOG.md +29 -0
- package/dist/es/index.css +0 -3
- package/dist/es/index.js +6 -7
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +0 -3
- package/dist/index.js +6 -7
- package/dist/index.js.map +1 -1
- package/dist/widgets/expression.d.ts +2 -6
- package/package.json +5 -5
- package/src/styles/articles.less +0 -4
- package/src/widgets/__stories__/expression.stories.tsx +5 -1
- package/src/widgets/expression.tsx +11 -9
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @khanacademy/perseus
|
|
2
2
|
|
|
3
|
+
## 11.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 609aeb0a: Ensured that the multiplication symbol in our keypad matches the selected symbol from content.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [91f88d0b]
|
|
12
|
+
- Updated dependencies [609aeb0a]
|
|
13
|
+
- Updated dependencies [4aac71b3]
|
|
14
|
+
- @khanacademy/math-input@13.0.0
|
|
15
|
+
|
|
16
|
+
## 11.4.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- 6751a680: Make article image widget behave more like other image widgets
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [388b6506]
|
|
25
|
+
- Updated dependencies [4f4fe4f9]
|
|
26
|
+
- Updated dependencies [388b6506]
|
|
27
|
+
- @khanacademy/perseus-linter@0.3.4
|
|
28
|
+
- @khanacademy/perseus-core@1.1.0
|
|
29
|
+
- @khanacademy/pure-markdown@0.2.6
|
|
30
|
+
- @khanacademy/math-input@12.1.1
|
|
31
|
+
|
|
3
32
|
## 11.3.0
|
|
4
33
|
|
|
5
34
|
### Minor Changes
|
package/dist/es/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/es/index.js
CHANGED
|
@@ -2899,19 +2899,18 @@ const keypadConfigurationForProps = widgetOptions => {
|
|
|
2899
2899
|
|
|
2900
2900
|
// TODO(charlie): Alert the keypad as to which of these symbols should be
|
|
2901
2901
|
// treated as functions.
|
|
2902
|
-
const extraVariables = Object.keys(uniqueExtraVariables);
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
extraConstants.sort();
|
|
2906
|
-
const extraKeys = [...extraVariables, ...extraConstants];
|
|
2902
|
+
const extraVariables = Object.keys(uniqueExtraVariables).sort();
|
|
2903
|
+
const extraConstants = Object.keys(uniqueExtraConstants).sort();
|
|
2904
|
+
let extraKeys = [...extraVariables, ...extraConstants];
|
|
2907
2905
|
if (!extraKeys.length) {
|
|
2908
2906
|
// If there are no extra symbols available, we include Pi anyway, so
|
|
2909
2907
|
// that the "extra symbols" button doesn't appear empty.
|
|
2910
|
-
extraKeys
|
|
2908
|
+
extraKeys = ["PI"];
|
|
2911
2909
|
}
|
|
2912
2910
|
return {
|
|
2913
2911
|
keypadType,
|
|
2914
|
-
extraKeys
|
|
2912
|
+
extraKeys,
|
|
2913
|
+
times: widgetOptions.times
|
|
2915
2914
|
};
|
|
2916
2915
|
};
|
|
2917
2916
|
const propUpgrades$2 = {
|