@khanacademy/perseus 84.2.0 → 85.0.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/dist/types.d.ts CHANGED
@@ -341,9 +341,6 @@ export type WidgetProps<TWidgetOptions, TUserInput = Empty, TrackingExtraArgs =
341
341
  linterContext: LinterContextProps;
342
342
  containerSizeClass: SizeClass;
343
343
  };
344
- export type ChangeFn = (newPropsOrSinglePropName: string | {
345
- [key: string]: any;
346
- }, propValue?: any, callback?: () => unknown) => any;
347
344
  export type SharedRendererProps = {
348
345
  apiOptions: APIOptions;
349
346
  linterContext: LinterContextProps;
@@ -1,13 +1,10 @@
1
1
  import * as React from "react";
2
- import type { PerseusDependenciesV2, WidgetProps } from "../../types";
3
- import type { PerseusDefinitionWidgetOptions, PerseusRenderer } from "@khanacademy/perseus-core";
4
- type DefinitionProps = WidgetProps<PerseusDefinitionWidgetOptions> & {
5
- widgets: PerseusRenderer["widgets"];
6
- dependencies: PerseusDependenciesV2;
7
- };
2
+ import type { Widget, WidgetProps } from "../../types";
3
+ import type { PerseusDefinitionWidgetOptions } from "@khanacademy/perseus-core";
4
+ type Props = WidgetProps<PerseusDefinitionWidgetOptions>;
8
5
  declare const _default: {
9
6
  name: string;
10
7
  displayName: string;
11
- widget: React.ForwardRefExoticComponent<Omit<DefinitionProps, "dependencies"> & React.RefAttributes<any>>;
8
+ widget: React.ForwardRefExoticComponent<Props & React.RefAttributes<Widget>>;
12
9
  };
13
10
  export default _default;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Core Perseus API (includes renderers and widgets)",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "84.2.0",
6
+ "version": "85.0.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -45,15 +45,15 @@
45
45
  "uuid": "^10.0.0",
46
46
  "jquery": "^2.1.1",
47
47
  "@khanacademy/kas": "2.2.6",
48
- "@khanacademy/keypad-context": "3.2.84",
49
- "@khanacademy/kmath": "2.4.43",
50
- "@khanacademy/perseus-core": "36.1.0",
51
- "@khanacademy/perseus-linter": "5.1.24",
52
- "@khanacademy/perseus-score": "8.12.16",
53
- "@khanacademy/pure-markdown": "2.3.2",
48
+ "@khanacademy/keypad-context": "3.2.85",
49
+ "@khanacademy/kmath": "2.4.44",
50
+ "@khanacademy/math-input": "27.0.5",
51
+ "@khanacademy/perseus-core": "37.0.0",
52
+ "@khanacademy/perseus-linter": "5.1.25",
53
+ "@khanacademy/perseus-score": "8.12.17",
54
54
  "@khanacademy/perseus-utils": "2.1.5",
55
- "@khanacademy/simple-markdown": "3.0.1",
56
- "@khanacademy/math-input": "27.0.4"
55
+ "@khanacademy/pure-markdown": "2.3.2",
56
+ "@khanacademy/simple-markdown": "3.0.1"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@khanacademy/wonder-blocks-announcer": "1.1.1",
@@ -1,35 +0,0 @@
1
- /**
2
- * Changeable
3
- *
4
- * Adds a this.change() function to a component
5
- *
6
- * This.change takes prop changes as parameters, and calls
7
- * this.props.onChange with the modified props.
8
- */
9
- import type { ChangeFn } from "../types";
10
- /**
11
- * this.change()
12
- *
13
- * Can be called as follows:
14
- * this.change(newProps, callback);
15
- *
16
- * this.change(propName, propValue, callback);
17
- *
18
- * this.change(propName) -> returns a lambda that takes a prop value to
19
- * set and a callback to call after having set that value.
20
- *
21
- * TODO(LEMS-3245) remove Changeable
22
- *
23
- * @deprecated
24
- */
25
- export declare const change: ChangeFn;
26
- /**
27
- * TODO(LEMS-3245) remove Changeable
28
- *
29
- * @deprecated
30
- */
31
- export type ChangeableProps = {
32
- onChange: (values: {
33
- [key: string]: any;
34
- }, callback?: (() => unknown) | null | undefined, silent?: boolean) => unknown;
35
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * @deprecated do not use EditorJsonify
3
- * See LEMS-4108 for more details
4
- */
5
- declare const EditorJsonify: {
6
- readonly serialize: () => any;
7
- };
8
- export default EditorJsonify;
@@ -1,5 +0,0 @@
1
- /**
2
- * @deprecated do not use the denylist
3
- * See LEMS-4108 for more details
4
- */
5
- export declare function excludeDenylistKeys(obj: Record<any, any>): {};