@khanacademy/perseus-editor 35.2.0 → 35.2.2

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.
@@ -10,6 +10,7 @@ declare class ItemExtrasEditor extends React.Component<Props> {
10
10
  static defaultProps: PerseusAnswerArea;
11
11
  shouldShowCalculatorVariants(): boolean;
12
12
  shouldShowFinancialCalculatorOptions(): boolean;
13
+ handleVariantChange: (newVariant: string) => void;
13
14
  serialize(): PerseusAnswerArea;
14
15
  render(): React.ReactNode;
15
16
  }
@@ -1,8 +1,8 @@
1
1
  import * as React from "react";
2
- import type { Changeable } from "@khanacademy/perseus";
3
2
  type Props = {
4
3
  value?: string;
5
- } & Changeable.ChangeableProps;
4
+ onChange: (value: string) => void;
5
+ };
6
6
  declare class ArrowPicker extends React.Component<Props> {
7
7
  static defaultProps: {
8
8
  value: string;
@@ -1,9 +1,9 @@
1
1
  import * as React from "react";
2
- import type { Changeable } from "@khanacademy/perseus";
3
2
  type Props = {
4
3
  lightColors?: boolean;
5
4
  value?: string;
6
- } & Changeable.ChangeableProps;
5
+ onChange: (value: string) => void;
6
+ };
7
7
  declare class ColorPicker extends React.Component<Props> {
8
8
  static defaultProps: {
9
9
  lightColors: boolean;
@@ -1,8 +1,8 @@
1
1
  import * as React from "react";
2
- import type { Changeable } from "@khanacademy/perseus";
3
2
  type Props = {
4
3
  value?: string;
5
- } & Changeable.ChangeableProps;
4
+ onChange: (value: string) => void;
5
+ };
6
6
  declare class DashPicker extends React.Component<Props> {
7
7
  static defaultProps: {
8
8
  value: string;
@@ -2,9 +2,9 @@ import * as React from "react";
2
2
  type Props = {
3
3
  children: React.ReactElement<any> | ReadonlyArray<React.ReactElement<any>>;
4
4
  initiallyVisible: boolean;
5
- onDelete?: () => void | null | undefined;
6
- onDown?: () => void | null | undefined;
7
- onUp?: () => void | null | undefined;
5
+ onDelete?: (() => void) | null;
6
+ onDown?: (() => void) | null;
7
+ onUp?: (() => void) | null;
8
8
  title: string | React.ReactElement<any>;
9
9
  };
10
10
  type State = {
@@ -19,7 +19,6 @@ type DefaultProps = {
19
19
  declare class FunctionEditor extends React.Component<Props> {
20
20
  static defaultProps: DefaultProps;
21
21
  change: (arg1: any, arg2?: any, arg3?: any) => any;
22
- serialize: () => any;
23
22
  render(): React.ReactNode;
24
23
  }
25
24
  export default FunctionEditor;
@@ -15,7 +15,6 @@ type DefaultProps = {
15
15
  declare class LabelEditor extends React.Component<Props> {
16
16
  static defaultProps: DefaultProps;
17
17
  change: (arg1: any, arg2?: any, arg3?: any) => any;
18
- serialize: () => any;
19
18
  render(): React.ReactNode;
20
19
  }
21
20
  export default LabelEditor;
@@ -23,7 +23,6 @@ type DefaultProps = {
23
23
  declare class LineEditor extends React.Component<Props> {
24
24
  static defaultProps: DefaultProps;
25
25
  change: (arg1: any, arg2?: any, arg3?: any) => any;
26
- serialize: () => any;
27
26
  render(): React.ReactNode;
28
27
  }
29
28
  export default LineEditor;
@@ -24,7 +24,6 @@ type DefaultProps = {
24
24
  declare class MovableLineEditor extends React.Component<Props> {
25
25
  static defaultProps: DefaultProps;
26
26
  change: ChangeFn;
27
- serialize: () => any;
28
27
  render(): React.ReactNode;
29
28
  }
30
29
  export default MovableLineEditor;
@@ -19,7 +19,6 @@ type DefaultProps = {
19
19
  declare class MovablePointEditor extends React.Component<Props> {
20
20
  static defaultProps: DefaultProps;
21
21
  change: ChangeFn;
22
- serialize: () => any;
23
22
  render(): React.ReactNode;
24
23
  }
25
24
  export default MovablePointEditor;
@@ -21,7 +21,6 @@ type DefaultProps = {
21
21
  declare class ParametricEditor extends React.Component<Props> {
22
22
  static defaultProps: DefaultProps;
23
23
  change: (arg1: any, arg2?: any, arg3?: any) => any;
24
- serialize: () => any;
25
24
  render(): React.ReactNode;
26
25
  }
27
26
  export default ParametricEditor;
@@ -13,7 +13,6 @@ type DefaultProps = {
13
13
  declare class PointEditor extends React.Component<Props> {
14
14
  static defaultProps: DefaultProps;
15
15
  change: (arg1: any, arg2?: any, arg3?: any) => any;
16
- serialize: () => any;
17
16
  render(): React.ReactNode;
18
17
  }
19
18
  export default PointEditor;
@@ -17,7 +17,6 @@ type DefaultProps = {
17
17
  declare class RectangleEditor extends React.Component<Props> {
18
18
  static defaultProps: DefaultProps;
19
19
  change: (arg1: any, arg2?: any, arg3?: any) => any;
20
- serialize: () => any;
21
20
  render(): React.ReactNode;
22
21
  }
23
22
  export default RectangleEditor;
@@ -1,3 +1,10 @@
1
+ /**
2
+ * LockedLabelSettings is a component that allows the user to edit the
3
+ * settings of specifically a locked label on the graph within the
4
+ * Interactive Graph widget.
5
+ *
6
+ * Used in the interactive graph editor's locked figures section.
7
+ */
1
8
  import { type LockedLabelType } from "@khanacademy/perseus-core";
2
9
  import * as React from "react";
3
10
  import type { LockedFigureSettingsMovementType } from "./locked-figure-settings-actions";
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Perseus editors",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "35.2.0",
6
+ "version": "35.2.2",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -35,17 +35,17 @@
35
35
  "katex": "0.11.1",
36
36
  "mafs": "^0.19.0",
37
37
  "tiny-invariant": "1.3.1",
38
- "@khanacademy/kas": "2.2.3",
39
- "@khanacademy/keypad-context": "3.2.77",
40
- "@khanacademy/kmath": "2.4.36",
41
- "@khanacademy/math-input": "26.6.6",
42
- "@khanacademy/perseus": "82.1.0",
43
- "@khanacademy/perseus-core": "33.0.1",
44
- "@khanacademy/perseus-linter": "5.1.17",
38
+ "@khanacademy/kas": "2.2.5",
39
+ "@khanacademy/keypad-context": "3.2.79",
40
+ "@khanacademy/kmath": "2.4.38",
41
+ "@khanacademy/math-input": "26.6.8",
42
+ "@khanacademy/perseus": "83.0.0",
43
+ "@khanacademy/perseus-core": "34.0.1",
44
+ "@khanacademy/perseus-linter": "5.1.19",
45
45
  "@khanacademy/perseus-utils": "2.1.5"
46
46
  },
47
47
  "devDependencies": {
48
- "@khanacademy/mathjax-renderer": "3.0.0",
48
+ "@khanacademy/mathjax-renderer": "3.1.4",
49
49
  "@khanacademy/wonder-blocks-accordion": "3.1.68",
50
50
  "@khanacademy/wonder-blocks-badge": "1.1.20",
51
51
  "@khanacademy/wonder-blocks-banner": "5.1.10",
@@ -78,7 +78,7 @@
78
78
  "perseus-build-settings": "0.9.0"
79
79
  },
80
80
  "peerDependencies": {
81
- "@khanacademy/mathjax-renderer": "^3.0.0",
81
+ "@khanacademy/mathjax-renderer": "^3.1.4",
82
82
  "@khanacademy/wonder-blocks-accordion": "^3.1.68",
83
83
  "@khanacademy/wonder-blocks-badge": "^1.1.20",
84
84
  "@khanacademy/wonder-blocks-banner": "^5.1.10",
@@ -110,7 +110,7 @@
110
110
  },
111
111
  "keywords": [],
112
112
  "khan": {
113
- "catalogHash": "257c11435eb77df5"
113
+ "catalogHash": "39ba316e4306b578"
114
114
  },
115
115
  "scripts": {}
116
116
  }