@khanacademy/perseus 66.2.0 → 66.2.1
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.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/widget-ai-utils/interactive-graph/interactive-graph-ai-utils.d.ts +1 -1
- package/dist/widgets/{interactive-graph.d.ts → interactive-graphs/interactive-graph.d.ts} +25 -25
- package/package.json +37 -37
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type interactiveGraph from "../../widgets/interactive-graph";
|
|
1
|
+
import type interactiveGraph from "../../widgets/interactive-graphs/interactive-graph";
|
|
2
2
|
import type { UnsupportedWidgetPromptJSON } from "../unsupported-widget";
|
|
3
3
|
import type { PerseusGraphType } from "@khanacademy/perseus-core";
|
|
4
4
|
import type React from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import type { StatefulMafsGraphType } from "./
|
|
3
|
-
import type { QuadraticGraphState } from "./
|
|
4
|
-
import type { Coord } from "
|
|
5
|
-
import type { WidgetProps } from "
|
|
6
|
-
import type { InteractiveGraphPromptJSON } from "
|
|
7
|
-
import type { UnsupportedWidgetPromptJSON } from "
|
|
2
|
+
import type { StatefulMafsGraphType } from "./stateful-mafs-graph";
|
|
3
|
+
import type { QuadraticGraphState } from "./types";
|
|
4
|
+
import type { Coord } from "../../interactive2/types";
|
|
5
|
+
import type { WidgetProps } from "../../types";
|
|
6
|
+
import type { InteractiveGraphPromptJSON } from "../../widget-ai-utils/interactive-graph/interactive-graph-ai-utils";
|
|
7
|
+
import type { UnsupportedWidgetPromptJSON } from "../../widget-ai-utils/unsupported-widget";
|
|
8
8
|
import type { QuadraticCoefficient, SineCoefficient, Range } from "@khanacademy/kmath";
|
|
9
9
|
import type { PerseusGraphType, PerseusGraphTypeAngle, PerseusGraphTypePoint, PerseusGraphTypeSegment, PerseusInteractiveGraphWidgetOptions, GraphRange, InteractiveGraphPublicWidgetOptions, LockedFigure, PerseusImageBackground, MarkingsType, PerseusInteractiveGraphUserInput, AxisLabelLocation } from "@khanacademy/perseus-core";
|
|
10
10
|
type RenderProps = {
|
|
@@ -155,7 +155,7 @@ declare class InteractiveGraph extends React.Component<Props, State> {
|
|
|
155
155
|
problemNum: number | null | undefined;
|
|
156
156
|
apiOptions: Readonly<Readonly<{
|
|
157
157
|
isArticle?: boolean;
|
|
158
|
-
onFocusChange?: (newFocusPath: import("
|
|
158
|
+
onFocusChange?: (newFocusPath: import("../..").FocusPath, oldFocusPath: import("../..").FocusPath, keypadHeight?: number, focusedElement?: HTMLElement) => unknown;
|
|
159
159
|
GroupMetadataEditor?: React.ComponentType<any>;
|
|
160
160
|
showAlignmentOptions?: boolean;
|
|
161
161
|
readOnly?: boolean;
|
|
@@ -170,12 +170,12 @@ declare class InteractiveGraph extends React.Component<Props, State> {
|
|
|
170
170
|
baseElements?: {
|
|
171
171
|
Link: React.ComponentType<any>;
|
|
172
172
|
};
|
|
173
|
-
imagePreloader?: (dimensions: import("
|
|
173
|
+
imagePreloader?: (dimensions: import("../../types").Dimensions) => React.ReactNode;
|
|
174
174
|
trackInteraction?: (args: {
|
|
175
175
|
type: string;
|
|
176
176
|
id: string;
|
|
177
177
|
correct?: boolean;
|
|
178
|
-
} & Partial<import("
|
|
178
|
+
} & Partial<import("../../types").TrackingGradedGroupExtraArguments> & Partial<{
|
|
179
179
|
visible: number;
|
|
180
180
|
}>) => void;
|
|
181
181
|
customKeypad?: boolean;
|
|
@@ -189,30 +189,30 @@ declare class InteractiveGraph extends React.Component<Props, State> {
|
|
|
189
189
|
flags?: Record<"new-radio-widget", boolean>;
|
|
190
190
|
onWidgetStartProps?: (widgets: import("@khanacademy/perseus-core").PerseusWidgetsMap) => void;
|
|
191
191
|
}> & {
|
|
192
|
-
baseElements: NonNullable<import("
|
|
193
|
-
canScrollPage: NonNullable<import("
|
|
194
|
-
editorChangeDelay: NonNullable<import("
|
|
195
|
-
groupAnnotator: NonNullable<import("
|
|
196
|
-
isArticle: NonNullable<import("
|
|
197
|
-
isMobile: NonNullable<import("
|
|
198
|
-
isMobileApp: NonNullable<import("
|
|
199
|
-
onFocusChange: NonNullable<import("
|
|
200
|
-
readOnly: NonNullable<import("
|
|
201
|
-
setDrawingAreaAvailable: NonNullable<import("
|
|
202
|
-
showAlignmentOptions: NonNullable<import("
|
|
192
|
+
baseElements: NonNullable<import("../..").APIOptions["baseElements"]>;
|
|
193
|
+
canScrollPage: NonNullable<import("../..").APIOptions["canScrollPage"]>;
|
|
194
|
+
editorChangeDelay: NonNullable<import("../..").APIOptions["editorChangeDelay"]>;
|
|
195
|
+
groupAnnotator: NonNullable<import("../..").APIOptions["groupAnnotator"]>;
|
|
196
|
+
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
|
197
|
+
isMobile: NonNullable<import("../..").APIOptions["isMobile"]>;
|
|
198
|
+
isMobileApp: NonNullable<import("../..").APIOptions["isMobileApp"]>;
|
|
199
|
+
onFocusChange: NonNullable<import("../..").APIOptions["onFocusChange"]>;
|
|
200
|
+
readOnly: NonNullable<import("../..").APIOptions["readOnly"]>;
|
|
201
|
+
setDrawingAreaAvailable: NonNullable<import("../..").APIOptions["setDrawingAreaAvailable"]>;
|
|
202
|
+
showAlignmentOptions: NonNullable<import("../..").APIOptions["showAlignmentOptions"]>;
|
|
203
203
|
}>;
|
|
204
204
|
keypadElement?: any;
|
|
205
205
|
questionCompleted?: boolean;
|
|
206
|
-
onFocus: (blurPath: import("
|
|
207
|
-
onBlur: (blurPath: import("
|
|
208
|
-
findWidgets: (criterion: import("
|
|
206
|
+
onFocus: (blurPath: import("../..").FocusPath) => void;
|
|
207
|
+
onBlur: (blurPath: import("../..").FocusPath) => void;
|
|
208
|
+
findWidgets: (criterion: import("../../types").FilterCriterion) => ReadonlyArray<import("../../types").Widget>;
|
|
209
209
|
reviewMode: boolean;
|
|
210
210
|
showSolutions?: import("@khanacademy/perseus-core").ShowSolutions;
|
|
211
|
-
onChange: import("
|
|
211
|
+
onChange: import("../..").ChangeHandler;
|
|
212
212
|
handleUserInput: (newUserInput: PerseusGraphType, cb?: () => void, silent?: boolean) => void;
|
|
213
213
|
isLastUsedWidget: boolean;
|
|
214
214
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
215
|
-
containerSizeClass: import("
|
|
215
|
+
containerSizeClass: import("../../util/sizing-utils").SizeClass;
|
|
216
216
|
};
|
|
217
217
|
render(): React.JSX.Element;
|
|
218
218
|
/**
|
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.1",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -42,36 +42,36 @@
|
|
|
42
42
|
"tiny-invariant": "1.3.1",
|
|
43
43
|
"uuid": "^10.0.0",
|
|
44
44
|
"@khanacademy/kas": "2.1.0",
|
|
45
|
-
"@khanacademy/keypad-context": "3.1.1",
|
|
46
45
|
"@khanacademy/kmath": "2.1.1",
|
|
46
|
+
"@khanacademy/keypad-context": "3.1.1",
|
|
47
47
|
"@khanacademy/math-input": "26.1.1",
|
|
48
48
|
"@khanacademy/perseus-core": "18.4.0",
|
|
49
49
|
"@khanacademy/perseus-linter": "4.2.1",
|
|
50
|
-
"@khanacademy/perseus-score": "7.3.0",
|
|
51
50
|
"@khanacademy/perseus-utils": "2.1.0",
|
|
51
|
+
"@khanacademy/perseus-score": "7.4.0",
|
|
52
52
|
"@khanacademy/pure-markdown": "2.2.0",
|
|
53
53
|
"@khanacademy/simple-markdown": "2.1.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@khanacademy/wonder-blocks-banner": "4.2.
|
|
57
|
-
"@khanacademy/wonder-blocks-button": "10.2.
|
|
58
|
-
"@khanacademy/wonder-blocks-clickable": "7.1.
|
|
56
|
+
"@khanacademy/wonder-blocks-banner": "4.2.11",
|
|
57
|
+
"@khanacademy/wonder-blocks-button": "10.2.15",
|
|
58
|
+
"@khanacademy/wonder-blocks-clickable": "7.1.19",
|
|
59
59
|
"@khanacademy/wonder-blocks-core": "12.3.0",
|
|
60
60
|
"@khanacademy/wonder-blocks-data": "14.1.4",
|
|
61
|
-
"@khanacademy/wonder-blocks-dropdown": "10.
|
|
62
|
-
"@khanacademy/wonder-blocks-form": "7.
|
|
63
|
-
"@khanacademy/wonder-blocks-icon-button": "10.3.
|
|
64
|
-
"@khanacademy/wonder-blocks-icon": "5.2.
|
|
65
|
-
"@khanacademy/wonder-blocks-labeled-field": "3.2.
|
|
66
|
-
"@khanacademy/wonder-blocks-layout": "3.1.
|
|
67
|
-
"@khanacademy/wonder-blocks-link": "9.1.
|
|
68
|
-
"@khanacademy/wonder-blocks-pill": "3.1.
|
|
69
|
-
"@khanacademy/wonder-blocks-popover": "6.1.
|
|
70
|
-
"@khanacademy/wonder-blocks-progress-spinner": "3.1.
|
|
71
|
-
"@khanacademy/wonder-blocks-switch": "3.3.
|
|
72
|
-
"@khanacademy/wonder-blocks-tokens": "12.0.
|
|
73
|
-
"@khanacademy/wonder-blocks-tooltip": "4.1.
|
|
74
|
-
"@khanacademy/wonder-blocks-typography": "4.2.
|
|
61
|
+
"@khanacademy/wonder-blocks-dropdown": "10.3.0",
|
|
62
|
+
"@khanacademy/wonder-blocks-form": "7.3.1",
|
|
63
|
+
"@khanacademy/wonder-blocks-icon-button": "10.3.14",
|
|
64
|
+
"@khanacademy/wonder-blocks-icon": "5.2.13",
|
|
65
|
+
"@khanacademy/wonder-blocks-labeled-field": "3.2.2",
|
|
66
|
+
"@khanacademy/wonder-blocks-layout": "3.1.30",
|
|
67
|
+
"@khanacademy/wonder-blocks-link": "9.1.19",
|
|
68
|
+
"@khanacademy/wonder-blocks-pill": "3.1.34",
|
|
69
|
+
"@khanacademy/wonder-blocks-popover": "6.1.22",
|
|
70
|
+
"@khanacademy/wonder-blocks-progress-spinner": "3.1.30",
|
|
71
|
+
"@khanacademy/wonder-blocks-switch": "3.3.12",
|
|
72
|
+
"@khanacademy/wonder-blocks-tokens": "12.0.1",
|
|
73
|
+
"@khanacademy/wonder-blocks-tooltip": "4.1.36",
|
|
74
|
+
"@khanacademy/wonder-blocks-typography": "4.2.15",
|
|
75
75
|
"@khanacademy/wonder-stuff-core": "1.5.5",
|
|
76
76
|
"@phosphor-icons/core": "2.0.2",
|
|
77
77
|
"@popperjs/core": "2.10.2",
|
|
@@ -90,25 +90,25 @@
|
|
|
90
90
|
"raphael": "1.5.4"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
|
-
"@khanacademy/wonder-blocks-banner": "^4.2.
|
|
94
|
-
"@khanacademy/wonder-blocks-button": "^10.2.
|
|
95
|
-
"@khanacademy/wonder-blocks-clickable": "^7.1.
|
|
93
|
+
"@khanacademy/wonder-blocks-banner": "^4.2.11",
|
|
94
|
+
"@khanacademy/wonder-blocks-button": "^10.2.15",
|
|
95
|
+
"@khanacademy/wonder-blocks-clickable": "^7.1.19",
|
|
96
96
|
"@khanacademy/wonder-blocks-core": "^12.3.0",
|
|
97
97
|
"@khanacademy/wonder-blocks-data": "^14.1.4",
|
|
98
|
-
"@khanacademy/wonder-blocks-dropdown": "^10.
|
|
99
|
-
"@khanacademy/wonder-blocks-form": "^7.
|
|
100
|
-
"@khanacademy/wonder-blocks-icon": "^5.2.
|
|
101
|
-
"@khanacademy/wonder-blocks-icon-button": "^10.3.
|
|
102
|
-
"@khanacademy/wonder-blocks-labeled-field": "^3.2.
|
|
103
|
-
"@khanacademy/wonder-blocks-layout": "^3.1.
|
|
104
|
-
"@khanacademy/wonder-blocks-link": "^9.1.
|
|
105
|
-
"@khanacademy/wonder-blocks-pill": "^3.1.
|
|
106
|
-
"@khanacademy/wonder-blocks-popover": "^6.1.
|
|
107
|
-
"@khanacademy/wonder-blocks-progress-spinner": "^3.1.
|
|
108
|
-
"@khanacademy/wonder-blocks-switch": "^3.3.
|
|
109
|
-
"@khanacademy/wonder-blocks-tokens": "^12.0.
|
|
110
|
-
"@khanacademy/wonder-blocks-tooltip": "^4.1.
|
|
111
|
-
"@khanacademy/wonder-blocks-typography": "^4.2.
|
|
98
|
+
"@khanacademy/wonder-blocks-dropdown": "^10.3.0",
|
|
99
|
+
"@khanacademy/wonder-blocks-form": "^7.3.1",
|
|
100
|
+
"@khanacademy/wonder-blocks-icon": "^5.2.13",
|
|
101
|
+
"@khanacademy/wonder-blocks-icon-button": "^10.3.14",
|
|
102
|
+
"@khanacademy/wonder-blocks-labeled-field": "^3.2.2",
|
|
103
|
+
"@khanacademy/wonder-blocks-layout": "^3.1.30",
|
|
104
|
+
"@khanacademy/wonder-blocks-link": "^9.1.19",
|
|
105
|
+
"@khanacademy/wonder-blocks-pill": "^3.1.34",
|
|
106
|
+
"@khanacademy/wonder-blocks-popover": "^6.1.22",
|
|
107
|
+
"@khanacademy/wonder-blocks-progress-spinner": "^3.1.30",
|
|
108
|
+
"@khanacademy/wonder-blocks-switch": "^3.3.12",
|
|
109
|
+
"@khanacademy/wonder-blocks-tokens": "^12.0.1",
|
|
110
|
+
"@khanacademy/wonder-blocks-tooltip": "^4.1.36",
|
|
111
|
+
"@khanacademy/wonder-blocks-typography": "^4.2.15",
|
|
112
112
|
"@khanacademy/wonder-stuff-core": "^1.5.5",
|
|
113
113
|
"@phosphor-icons/core": "^2.0.2",
|
|
114
114
|
"@popperjs/core": "^2.10.2",
|