@khanacademy/perseus 66.2.1 → 66.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.
- package/README.md +1 -1
- package/dist/es/index.css +1 -1
- package/dist/es/index.css.map +1 -1
- package/dist/es/index.js +17 -17
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +17 -17
- package/dist/index.js.map +1 -1
- package/dist/server-item-renderer.d.ts +2 -2
- package/dist/user-input-manager.d.ts +2 -2
- package/dist/widgets/graded-group/graded-group-answer-bar.d.ts +1 -1
- package/dist/widgets/graded-group/graded-group.d.ts +2 -2
- package/package.json +4 -4
|
@@ -124,7 +124,7 @@ export declare class ServerItemRenderer extends React.Component<Props, State> im
|
|
|
124
124
|
setAssetStatus: (assetKey: string, status: boolean) => void;
|
|
125
125
|
render(): React.ReactNode;
|
|
126
126
|
}
|
|
127
|
-
declare const
|
|
127
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Pick<SharedRendererProps & OwnProps & HOCProps, keyof OwnProps> & {
|
|
128
128
|
apiOptions?: Readonly<{
|
|
129
129
|
isArticle?: boolean;
|
|
130
130
|
onFocusChange?: (newFocusPath: FocusPath, oldFocusPath: FocusPath, keypadHeight?: number, focusedElement?: HTMLElement) => unknown;
|
|
@@ -164,4 +164,4 @@ declare const ref: React.ForwardRefExoticComponent<Omit<Pick<SharedRendererProps
|
|
|
164
164
|
linterContext?: PerseusLinter.LinterContextProps | undefined;
|
|
165
165
|
onRendered?: ((isRendered: boolean) => void) | undefined;
|
|
166
166
|
} & {}, "onRendered"> & React.RefAttributes<ServerItemRenderer>>;
|
|
167
|
-
export default
|
|
167
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PerseusWidgetsMap, UserInputMap } from "@khanacademy/perseus-core";
|
|
2
2
|
export type InitializeUserInputCallback = (widgetOptions: PerseusWidgetsMap, problemNum: number) => void;
|
|
3
3
|
export type RestoreUserInputFromSerializedStateCallback = (serializedState: unknown, widgetOptions: PerseusWidgetsMap) => void;
|
|
4
|
-
export type HandleUserInputCallback = (widgetId: string, userInput: UserInputMap[keyof UserInputMap]) => void;
|
|
4
|
+
export type HandleUserInputCallback = (widgetId: string, userInput: UserInputMap[keyof UserInputMap], widgetsEmpty: boolean) => void;
|
|
5
5
|
type FunctionChildParams = {
|
|
6
6
|
userInput: UserInputMap;
|
|
7
7
|
handleUserInput: HandleUserInputCallback;
|
|
@@ -14,7 +14,7 @@ type FunctionChildParams = {
|
|
|
14
14
|
type Props = {
|
|
15
15
|
widgets: PerseusWidgetsMap;
|
|
16
16
|
problemNum: number;
|
|
17
|
-
handleUserInput?: (userInput: UserInputMap) => void;
|
|
17
|
+
handleUserInput?: (userInput: UserInputMap, widgetsEmpty: boolean) => void;
|
|
18
18
|
children: (payload: FunctionChildParams) => JSX.Element | null;
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { PerseusI18nContext } from "../../components/i18n-context";
|
|
3
3
|
import type { APIOptions } from "../../types";
|
|
4
|
-
export type ANSWER_BAR_STATES = "
|
|
4
|
+
export type ANSWER_BAR_STATES = "ACTIVE" | "INACTIVE" | "INCORRECT" | "CORRECT";
|
|
5
5
|
type Props = {
|
|
6
6
|
answerBarState: ANSWER_BAR_STATES;
|
|
7
7
|
apiOptions: APIOptions;
|
|
@@ -4,7 +4,7 @@ import Renderer from "../../renderer";
|
|
|
4
4
|
import type { ANSWER_BAR_STATES } from "./graded-group-answer-bar";
|
|
5
5
|
import type { FocusPath, TrackingGradedGroupExtraArguments, Widget, WidgetProps } from "../../types";
|
|
6
6
|
import type { GradedGroupPromptJSON } from "../../widget-ai-utils/graded-group/graded-group-ai-utils";
|
|
7
|
-
import type { PerseusGradedGroupWidgetOptions } from "@khanacademy/perseus-core";
|
|
7
|
+
import type { PerseusGradedGroupWidgetOptions, UserInputMap } from "@khanacademy/perseus-core";
|
|
8
8
|
declare const GRADING_STATUSES: {
|
|
9
9
|
readonly ungraded: "ungraded";
|
|
10
10
|
readonly correct: "correct";
|
|
@@ -40,7 +40,7 @@ export declare class GradedGroup extends React.Component<Props, State> implement
|
|
|
40
40
|
hintRendererRef: React.RefObject<Renderer>;
|
|
41
41
|
shouldComponentUpdate(nextProps: Props, nextState: State): boolean;
|
|
42
42
|
change: (...args: ReadonlyArray<unknown>) => any;
|
|
43
|
-
_handleUserInput(): void;
|
|
43
|
+
_handleUserInput(_userInput: UserInputMap, widgetsEmpty: boolean): void;
|
|
44
44
|
_checkAnswer: () => void;
|
|
45
45
|
getInputPaths: () => ReadonlyArray<FocusPath>;
|
|
46
46
|
getPromptJSON(): GradedGroupPromptJSON;
|
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": "66.2.
|
|
6
|
+
"version": "66.2.2",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"tiny-invariant": "1.3.1",
|
|
43
43
|
"uuid": "^10.0.0",
|
|
44
44
|
"@khanacademy/kas": "2.1.0",
|
|
45
|
-
"@khanacademy/kmath": "2.1.1",
|
|
46
45
|
"@khanacademy/keypad-context": "3.1.1",
|
|
47
|
-
"@khanacademy/
|
|
46
|
+
"@khanacademy/kmath": "2.1.1",
|
|
47
|
+
"@khanacademy/math-input": "26.1.2",
|
|
48
48
|
"@khanacademy/perseus-core": "18.4.0",
|
|
49
49
|
"@khanacademy/perseus-linter": "4.2.1",
|
|
50
|
-
"@khanacademy/perseus-utils": "2.1.0",
|
|
51
50
|
"@khanacademy/perseus-score": "7.4.0",
|
|
52
51
|
"@khanacademy/pure-markdown": "2.2.0",
|
|
52
|
+
"@khanacademy/perseus-utils": "2.1.0",
|
|
53
53
|
"@khanacademy/simple-markdown": "2.1.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|