@khanacademy/perseus-editor 2.0.3 → 2.2.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 CHANGED
@@ -1,5 +1,59 @@
1
1
  # @khanacademy/perseus-editor
2
2
 
3
+ ## 2.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e86cc72f: Keypad API: Button sets on keypad switched to optional booleans. Added all designed button sets as props, but not all are yet implemented.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [e86cc72f]
12
+ - Updated dependencies [ec37eb3d]
13
+ - @khanacademy/perseus@6.1.0
14
+
15
+ ## 2.1.0
16
+
17
+ ### Minor Changes
18
+
19
+ - 4a368030: Remove getKaTeX from the PerseusDependencies type
20
+
21
+ perseus-editor now detects KaTeX rendering errors by calling KaTeX directly,
22
+ rather than using getKaTeX from PerseusDependencies.
23
+
24
+ The logKaTeXError method, which was unused by Perseus, has been removed from
25
+ the PerseusDependencies type as well.
26
+
27
+ Clients should update their code by removing the getKaTeX and logKaTeXError
28
+ properties from their PerseusDependencies object. If they want to log an error
29
+ when TeX fails to render, they should do so in their TeX component.
30
+
31
+ ### Patch Changes
32
+
33
+ - 9c4a6c96: Remove obsolete properties from the PerseusDependencies type
34
+
35
+ We are in the process of migrating the webapp and mobile repos to use
36
+ MathJax 3 as their math renderer instead of KaTeX. This change removes some of
37
+ Perseus's dependencies on KaTeX.
38
+
39
+ Clients should update their code by removing the `getRenderA11yString`,
40
+ `loadMathjax`, `KatexProvider`, and `shouldUseFutureKaTeX` properties from
41
+ their PerseusDependencies object.
42
+
43
+ - Updated dependencies [4a368030]
44
+ - Updated dependencies [5cc23179]
45
+ - Updated dependencies [e0a087d0]
46
+ - Updated dependencies [b062ad47]
47
+ - Updated dependencies [8a47076d]
48
+ - Updated dependencies [09ab3260]
49
+ - Updated dependencies [5432857d]
50
+ - Updated dependencies [40c2736d]
51
+ - Updated dependencies [b585fe29]
52
+ - Updated dependencies [91617cfa]
53
+ - Updated dependencies [e284e7c1]
54
+ - Updated dependencies [9c4a6c96]
55
+ - @khanacademy/perseus@6.0.0
56
+
3
57
  ## 2.0.3
4
58
 
5
59
  ### 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;
@@ -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;