@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/components/sortable.d.ts +3 -0
- package/dist/es/index.css +4 -2
- package/dist/es/index.css.map +1 -1
- package/dist/es/index.js +12 -23
- package/dist/es/index.js.map +1 -1
- package/dist/es/strings.js +1 -1
- package/dist/es/strings.js.map +1 -1
- package/dist/index.css +4 -2
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.js +10 -24
- package/dist/index.js.map +1 -1
- package/dist/renderer.new.d.ts +0 -7
- package/dist/renderer.old.d.ts +0 -7
- package/dist/strings.d.ts +2 -0
- package/dist/strings.js +1 -1
- package/dist/strings.js.map +1 -1
- package/dist/types.d.ts +0 -3
- package/dist/widgets/definition/definition.d.ts +4 -7
- package/package.json +9 -9
- package/dist/mixins/changeable.d.ts +0 -35
- package/dist/mixins/editor-jsonify.d.ts +0 -8
- package/dist/mixins/widget-prop-denylist.d.ts +0 -5
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 {
|
|
3
|
-
import type { PerseusDefinitionWidgetOptions
|
|
4
|
-
type
|
|
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<
|
|
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": "
|
|
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.
|
|
49
|
-
"@khanacademy/kmath": "2.4.
|
|
50
|
-
"@khanacademy/
|
|
51
|
-
"@khanacademy/perseus-
|
|
52
|
-
"@khanacademy/perseus-
|
|
53
|
-
"@khanacademy/
|
|
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/
|
|
56
|
-
"@khanacademy/
|
|
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
|
-
};
|