@khanacademy/perseus-editor 4.3.4 → 4.4.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.
@@ -1,12 +1,14 @@
1
- import PropTypes from "prop-types";
1
+ import { Changeable } from "@khanacademy/perseus";
2
2
  import * as React from "react";
3
- type Props = any;
3
+ import type { PerseusSimpleMarkdownTesterWidgetOptions } from "@khanacademy/perseus";
4
+ type Props = Changeable.ChangeableProps & {
5
+ value: PerseusSimpleMarkdownTesterWidgetOptions["value"];
6
+ };
7
+ type DefaultProps = {
8
+ value: Props["value"];
9
+ };
4
10
  declare class SimpleMarkdownTester extends React.Component<Props> {
5
- static propTypes: {
6
- value: PropTypes.Requireable<string>;
7
- onChange: PropTypes.Validator<(...args: any[]) => any>;
8
- };
9
- static defaultProps: Props;
11
+ static defaultProps: DefaultProps;
10
12
  /**
11
13
  * This is the widget's grading function.
12
14
  *
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Perseus editors",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "4.3.4",
6
+ "version": "4.4.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -27,8 +27,8 @@
27
27
  "dependencies": {
28
28
  "@khanacademy/kas": "^0.3.8",
29
29
  "@khanacademy/kmath": "^0.1.12",
30
- "@khanacademy/math-input": "^17.2.2",
31
- "@khanacademy/perseus": "^19.7.2",
30
+ "@khanacademy/math-input": "^17.2.3",
31
+ "@khanacademy/perseus": "^19.8.0",
32
32
  "@khanacademy/perseus-core": "1.4.2"
33
33
  },
34
34
  "devDependencies": {