@khanacademy/perseus 6.4.2 → 6.4.4
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 +17 -0
- package/dist/components/graph.d.ts +2 -2
- package/dist/components/graph.js.flow +2 -2
- package/dist/components/svg-image.d.ts +1 -1
- package/dist/components/svg-image.js.flow +1 -1
- 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/package.json +3 -3
- package/src/components/graph.tsx +3 -2
- package/src/components/svg-image.tsx +1 -1
- package/src/util/tex.ts +8 -6
- package/src/widgets/__tests__/expression.test.ts +0 -3
- package/src/widgets/expression.tsx +0 -1
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @khanacademy/perseus
|
|
2
2
|
|
|
3
|
+
## 6.4.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [71c631ea]
|
|
8
|
+
- @khanacademy/math-input@6.0.2
|
|
9
|
+
- @khanacademy/perseus-core@0.0.2
|
|
10
|
+
|
|
11
|
+
## 6.4.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 12b65f5e: Fix an issue where Graphie labels were sometimes incorrectly positioned when
|
|
16
|
+
MathJax 3 was injected as the TeX renderer.
|
|
17
|
+
- Updated dependencies [8d1745c1]
|
|
18
|
+
- @khanacademy/math-input@6.0.1
|
|
19
|
+
|
|
3
20
|
## 6.4.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { Coord } from "../interactive2/types";
|
|
3
|
-
import { PerseusImageBackground } from "../perseus-types";
|
|
2
|
+
import type { Coord } from "../interactive2/types";
|
|
3
|
+
import type { PerseusImageBackground } from "../perseus-types";
|
|
4
4
|
type Props = {
|
|
5
5
|
box: Readonly<[number, number]>;
|
|
6
6
|
labels: ReadonlyArray<string>;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
7
|
import * as React from "react";
|
|
8
|
-
import { Coord } from "../interactive2/types";
|
|
9
|
-
import { PerseusImageBackground } from "../perseus-types";
|
|
8
|
+
import type { Coord } from "../interactive2/types";
|
|
9
|
+
import type { PerseusImageBackground } from "../perseus-types";
|
|
10
10
|
declare type Props = {|
|
|
11
11
|
box: $ReadOnly<[number, number]>,
|
|
12
12
|
labels: $ReadOnlyArray<string>,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
7
|
import * as React from "react";
|
|
8
|
-
import { Coord } from "../interactive2/types";
|
|
8
|
+
import type { Coord } from "../interactive2/types";
|
|
9
9
|
import type { Size } from "../perseus-types";
|
|
10
10
|
import type { Alignment, Dimensions } from "../types";
|
|
11
11
|
declare type Props = {|
|
package/dist/es/index.js
CHANGED
|
@@ -2428,8 +2428,6 @@ const sendExpressionEvaluatedEvent = result => {
|
|
|
2428
2428
|
getDependencies().analytics({
|
|
2429
2429
|
type: "perseus:expression-evaluated",
|
|
2430
2430
|
payload: {
|
|
2431
|
-
virtualKeypadVersion: "PERSEUS_MATH_INPUT",
|
|
2432
|
-
// STOPSHIP: Or do we push that onto host application?
|
|
2433
2431
|
result
|
|
2434
2432
|
}
|
|
2435
2433
|
});
|
|
@@ -9092,12 +9090,13 @@ var Tex$1 = {
|
|
|
9092
9090
|
// We use createElement instead of JSX here because we can't name this file tex.tsx;
|
|
9093
9091
|
// that name is already taken.
|
|
9094
9092
|
render( /*#__PURE__*/React.createElement(TeX, {
|
|
9095
|
-
children: text
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9093
|
+
children: text,
|
|
9094
|
+
onRender: () => {
|
|
9095
|
+
if (callback) {
|
|
9096
|
+
doCallback(elem, callback);
|
|
9097
|
+
}
|
|
9099
9098
|
}
|
|
9100
|
-
});
|
|
9099
|
+
}), $katexHolder[0]);
|
|
9101
9100
|
}
|
|
9102
9101
|
},
|
|
9103
9102
|
// Function to restore a node to a non-math-processed state
|