@khanacademy/perseus 61.1.0 → 61.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/dist/es/index.js +2 -2
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/widgets/iframe/iframe.d.ts +2 -2
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -433,7 +433,7 @@ export type UniversalWidgetProps<ReviewModeRubric = Empty, TrackingExtraArgs = E
|
|
|
433
433
|
};
|
|
434
434
|
export type ChangeFn = (newPropsOrSinglePropName: string | {
|
|
435
435
|
[key: string]: any;
|
|
436
|
-
}, propValue?: any, callback?: () => unknown) => any
|
|
436
|
+
}, propValue?: any, callback?: () => unknown) => any;
|
|
437
437
|
export type SharedRendererProps = {
|
|
438
438
|
apiOptions: APIOptions;
|
|
439
439
|
linterContext: LinterContextProps;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* but could also be used for embedding viz's hosted elsewhere.
|
|
8
8
|
*/
|
|
9
9
|
import * as React from "react";
|
|
10
|
-
import type { WidgetProps, Widget } from "../../types";
|
|
10
|
+
import type { WidgetProps, Widget, ChangeFn } from "../../types";
|
|
11
11
|
import type { UnsupportedWidgetPromptJSON } from "../../widget-ai-utils/unsupported-widget";
|
|
12
12
|
import type { PerseusIFrameUserInput, UserInputStatus, PerseusIFrameWidgetOptions } from "@khanacademy/perseus-core";
|
|
13
13
|
type RenderProps = PerseusIFrameWidgetOptions & {
|
|
@@ -30,7 +30,7 @@ declare class Iframe extends React.Component<Props> implements Widget {
|
|
|
30
30
|
getUserInput(): PerseusIFrameUserInput;
|
|
31
31
|
getPromptJSON(): UnsupportedWidgetPromptJSON;
|
|
32
32
|
handleMessageEvent: (arg1: any) => void;
|
|
33
|
-
change:
|
|
33
|
+
change: ChangeFn;
|
|
34
34
|
render(): React.ReactNode;
|
|
35
35
|
}
|
|
36
36
|
declare const _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": "61.
|
|
6
|
+
"version": "61.2.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"tiny-invariant": "^1.3.1",
|
|
43
43
|
"uuid": "^10.0.0",
|
|
44
44
|
"@khanacademy/kas": "2.0.3",
|
|
45
|
-
"@khanacademy/keypad-context": "3.0.7",
|
|
46
45
|
"@khanacademy/kmath": "2.0.7",
|
|
47
|
-
"@khanacademy/
|
|
46
|
+
"@khanacademy/keypad-context": "3.0.7",
|
|
48
47
|
"@khanacademy/perseus-core": "10.0.0",
|
|
48
|
+
"@khanacademy/math-input": "25.1.2",
|
|
49
49
|
"@khanacademy/perseus-linter": "3.0.7",
|
|
50
50
|
"@khanacademy/perseus-score": "5.0.4",
|
|
51
51
|
"@khanacademy/perseus-utils": "2.0.2",
|