@khanacademy/perseus-editor 2.0.3 → 2.1.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 +42 -0
- package/dist/editor.d.ts +0 -3
- package/dist/editor.js.flow +0 -3
- package/dist/es/index.js +17430 -23
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +17429 -22
- package/dist/index.js.map +1 -1
- package/dist/section-control-button.d.ts +7 -10
- package/dist/section-control-button.js.flow +7 -14
- package/dist/widgets/unit-editor.d.ts +1 -1
- package/dist/widgets/unit-editor.js.flow +1 -1
- package/package.json +2 -2
- package/src/__stories__/editor.stories.tsx +1 -2
- package/src/__tests__/editor.test.tsx +4 -4
- package/src/article-editor.tsx +11 -16
- package/src/editor.tsx +1 -16
- package/{tsconfig.json → tsconfig-build.json} +3 -3
- package/tsconfig-build.tsbuildinfo +1 -0
- package/tsconfig.tsbuildinfo +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# @khanacademy/perseus-editor
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4a368030: Remove getKaTeX from the PerseusDependencies type
|
|
8
|
+
|
|
9
|
+
perseus-editor now detects KaTeX rendering errors by calling KaTeX directly,
|
|
10
|
+
rather than using getKaTeX from PerseusDependencies.
|
|
11
|
+
|
|
12
|
+
The logKaTeXError method, which was unused by Perseus, has been removed from
|
|
13
|
+
the PerseusDependencies type as well.
|
|
14
|
+
|
|
15
|
+
Clients should update their code by removing the getKaTeX and logKaTeXError
|
|
16
|
+
properties from their PerseusDependencies object. If they want to log an error
|
|
17
|
+
when TeX fails to render, they should do so in their TeX component.
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 9c4a6c96: Remove obsolete properties from the PerseusDependencies type
|
|
22
|
+
|
|
23
|
+
We are in the process of migrating the webapp and mobile repos to use
|
|
24
|
+
MathJax 3 as their math renderer instead of KaTeX. This change removes some of
|
|
25
|
+
Perseus's dependencies on KaTeX.
|
|
26
|
+
|
|
27
|
+
Clients should update their code by removing the `getRenderA11yString`,
|
|
28
|
+
`loadMathjax`, `KatexProvider`, and `shouldUseFutureKaTeX` properties from
|
|
29
|
+
their PerseusDependencies object.
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [4a368030]
|
|
32
|
+
- Updated dependencies [5cc23179]
|
|
33
|
+
- Updated dependencies [e0a087d0]
|
|
34
|
+
- Updated dependencies [b062ad47]
|
|
35
|
+
- Updated dependencies [8a47076d]
|
|
36
|
+
- Updated dependencies [09ab3260]
|
|
37
|
+
- Updated dependencies [5432857d]
|
|
38
|
+
- Updated dependencies [40c2736d]
|
|
39
|
+
- Updated dependencies [b585fe29]
|
|
40
|
+
- Updated dependencies [91617cfa]
|
|
41
|
+
- Updated dependencies [e284e7c1]
|
|
42
|
+
- Updated dependencies [9c4a6c96]
|
|
43
|
+
- @khanacademy/perseus@6.0.0
|
|
44
|
+
|
|
3
45
|
## 2.0.3
|
|
4
46
|
|
|
5
47
|
### Patch Changes
|
package/dist/editor.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import katex from "katex";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import type { ChangeHandler, WidgetInfo } from "@khanacademy/perseus";
|
|
4
3
|
type Props = Readonly<{
|
|
@@ -35,9 +34,7 @@ type DeafultProps = {
|
|
|
35
34
|
};
|
|
36
35
|
};
|
|
37
36
|
type State = {
|
|
38
|
-
showKatexErrors: boolean;
|
|
39
37
|
textAreaValue: string;
|
|
40
|
-
katex?: katex;
|
|
41
38
|
};
|
|
42
39
|
declare class Editor extends React.Component<Props, State> {
|
|
43
40
|
lastUserValue: string | null | undefined;
|
package/dist/editor.js.flow
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* Flowgen v1.21.0
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
|
-
import katex from "katex";
|
|
8
7
|
import * as React from "react";
|
|
9
8
|
import type { ChangeHandler, WidgetInfo } from "@khanacademy/perseus";
|
|
10
9
|
declare type Props = $ReadOnly<{|
|
|
@@ -41,9 +40,7 @@ declare type DeafultProps = {|
|
|
|
41
40
|
},
|
|
42
41
|
|};
|
|
43
42
|
declare type State = {|
|
|
44
|
-
showKatexErrors: boolean,
|
|
45
43
|
textAreaValue: string,
|
|
46
|
-
katex?: katex,
|
|
47
44
|
|};
|
|
48
45
|
declare class Editor extends React.Component<Props, State> {
|
|
49
46
|
lastUserValue: string | null | void;
|