@khanacademy/perseus 77.5.2 → 77.6.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.css +2 -2
- package/dist/es/index.css.map +1 -1
- package/dist/es/index.js +11 -11
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/util/test-utils.d.ts +3 -1
- package/dist/widgets/interactive-graphs/interactive-graph.d.ts +7 -1
- package/dist/widgets/interactive-graphs/mafs-graph.d.ts +1 -0
- package/dist/widgets/interactive-graphs/reducer/use-graph-config.d.ts +2 -1
- package/dist/widgets/interactive-graphs/stateful-mafs-graph.d.ts +1 -0
- package/package.json +44 -44
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { CategorizerWidget, PerseusRenderer, PerseusWidgetTypes, PerseusScore, UserInputMap, PerseusItem } from "@khanacademy/perseus-core";
|
|
2
2
|
/**
|
|
3
|
-
* Thin wrapper around scorePerseusItem for internal testing
|
|
3
|
+
* Thin wrapper around scorePerseusItem for internal testing. Returns the
|
|
4
|
+
* aggregate score; tests that need the per-widget breakdown should call
|
|
5
|
+
* `scorePerseusItem` directly.
|
|
4
6
|
*/
|
|
5
7
|
export declare function scorePerseusItemTesting(perseusRenderData: PerseusRenderer, userInputMap: UserInputMap): PerseusScore;
|
|
6
8
|
/**
|
|
@@ -4,7 +4,7 @@ import type { StatefulMafsGraphType } from "./stateful-mafs-graph";
|
|
|
4
4
|
import type { WidgetProps } from "../../types";
|
|
5
5
|
import type { InteractiveGraphPromptJSON } from "../../widget-ai-utils/interactive-graph/interactive-graph-ai-utils";
|
|
6
6
|
import type { UnsupportedWidgetPromptJSON } from "../../widget-ai-utils/unsupported-widget";
|
|
7
|
-
import type { PerseusGraphType, PerseusInteractiveGraphWidgetOptions, GraphRange, InteractiveGraphPublicWidgetOptions, LockedFigure, PerseusImageBackground, MarkingsType, PerseusInteractiveGraphUserInput, AxisLabelLocation, ShowAxisArrows } from "@khanacademy/perseus-core";
|
|
7
|
+
import type { PerseusGraphType, PerseusInteractiveGraphWidgetOptions, GraphRange, InteractiveGraphPublicWidgetOptions, LockedFigure, PerseusImageBackground, MarkingsType, PerseusInteractiveGraphUserInput, AxisLabelLocation, ShowAxisArrows, ShowAxisTicks } from "@khanacademy/perseus-core";
|
|
8
8
|
type InteractiveGraphProps = {
|
|
9
9
|
/**
|
|
10
10
|
* Where the little black axis lines & labels (ticks) should render.
|
|
@@ -86,6 +86,10 @@ type InteractiveGraphProps = {
|
|
|
86
86
|
* Whether to show the arrows on the axis.
|
|
87
87
|
*/
|
|
88
88
|
showAxisArrows: ShowAxisArrows;
|
|
89
|
+
/**
|
|
90
|
+
* Whether to show tick marks and tick numbers per axis.
|
|
91
|
+
*/
|
|
92
|
+
showAxisTicks: ShowAxisTicks;
|
|
89
93
|
/**
|
|
90
94
|
* The type of graph
|
|
91
95
|
*/
|
|
@@ -114,6 +118,7 @@ type DefaultProps = {
|
|
|
114
118
|
labelLocation: Props["labelLocation"];
|
|
115
119
|
range: Props["range"];
|
|
116
120
|
showAxisArrows: Props["showAxisArrows"];
|
|
121
|
+
showAxisTicks: Props["showAxisTicks"];
|
|
117
122
|
step: Props["step"];
|
|
118
123
|
backgroundImage: Props["backgroundImage"];
|
|
119
124
|
markings: Props["markings"];
|
|
@@ -150,6 +155,7 @@ declare class InteractiveGraph extends React.Component<Props, State> {
|
|
|
150
155
|
rulerTicks?: number;
|
|
151
156
|
range: GraphRange;
|
|
152
157
|
showAxisArrows: ShowAxisArrows;
|
|
158
|
+
showAxisTicks: ShowAxisTicks;
|
|
153
159
|
correct?: PerseusGraphType;
|
|
154
160
|
lockedFigures: LockedFigure[];
|
|
155
161
|
fullGraphAriaLabel?: string;
|
|
@@ -16,6 +16,7 @@ export type MafsGraphProps = {
|
|
|
16
16
|
labels: ReadonlyArray<string>;
|
|
17
17
|
labelLocation?: InteractiveGraphProps["labelLocation"];
|
|
18
18
|
showAxisArrows: InteractiveGraphProps["showAxisArrows"];
|
|
19
|
+
showAxisTicks: InteractiveGraphProps["showAxisTicks"];
|
|
19
20
|
fullGraphAriaLabel?: InteractiveGraphProps["fullGraphAriaLabel"];
|
|
20
21
|
fullGraphAriaDescription?: InteractiveGraphProps["fullGraphAriaDescription"];
|
|
21
22
|
state: InteractiveGraphState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { AxisLabelLocation, ShowAxisArrows, MarkingsType } from "@khanacademy/perseus-core";
|
|
2
|
+
import type { AxisLabelLocation, ShowAxisArrows, ShowAxisTicks, MarkingsType } from "@khanacademy/perseus-core";
|
|
3
3
|
import type { Interval, vec } from "mafs";
|
|
4
4
|
export type GraphConfig = {
|
|
5
5
|
range: [Interval, Interval];
|
|
@@ -16,6 +16,7 @@ export type GraphConfig = {
|
|
|
16
16
|
disableKeyboardInteraction?: boolean;
|
|
17
17
|
interactiveColor?: string;
|
|
18
18
|
showAxisArrows: ShowAxisArrows;
|
|
19
|
+
showAxisTicks: ShowAxisTicks;
|
|
19
20
|
};
|
|
20
21
|
export declare const GraphConfigContext: React.Context<GraphConfig>;
|
|
21
22
|
export default function useGraphConfig(): GraphConfig;
|
|
@@ -26,6 +26,7 @@ export type StatefulMafsGraphProps = {
|
|
|
26
26
|
readOnly: boolean;
|
|
27
27
|
static: InteractiveGraphProps["static"];
|
|
28
28
|
showAxisArrows: InteractiveGraphProps["showAxisArrows"];
|
|
29
|
+
showAxisTicks: InteractiveGraphProps["showAxisTicks"];
|
|
29
30
|
widgetId: string;
|
|
30
31
|
graded?: boolean | null;
|
|
31
32
|
};
|
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": "77.
|
|
6
|
+
"version": "77.6.1",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -43,39 +43,39 @@
|
|
|
43
43
|
"tiny-invariant": "1.3.1",
|
|
44
44
|
"uuid": "^10.0.0",
|
|
45
45
|
"@khanacademy/kas": "2.2.3",
|
|
46
|
-
"@khanacademy/keypad-context": "3.2.
|
|
47
|
-
"@khanacademy/kmath": "2.4.
|
|
48
|
-
"@khanacademy/math-input": "26.4.
|
|
49
|
-
"@khanacademy/perseus-core": "26.
|
|
50
|
-
"@khanacademy/perseus-linter": "5.0.
|
|
51
|
-
"@khanacademy/perseus-score": "8.
|
|
46
|
+
"@khanacademy/keypad-context": "3.2.52",
|
|
47
|
+
"@khanacademy/kmath": "2.4.10",
|
|
48
|
+
"@khanacademy/math-input": "26.4.24",
|
|
49
|
+
"@khanacademy/perseus-core": "26.3.0",
|
|
50
|
+
"@khanacademy/perseus-linter": "5.0.7",
|
|
51
|
+
"@khanacademy/perseus-score": "8.10.0",
|
|
52
52
|
"@khanacademy/perseus-utils": "2.1.5",
|
|
53
53
|
"@khanacademy/pure-markdown": "2.2.8",
|
|
54
54
|
"@khanacademy/simple-markdown": "2.2.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@khanacademy/wonder-blocks-announcer": "1.1.0",
|
|
58
|
-
"@khanacademy/wonder-blocks-banner": "5.0.
|
|
59
|
-
"@khanacademy/wonder-blocks-button": "11.5.
|
|
60
|
-
"@khanacademy/wonder-blocks-clickable": "8.1.
|
|
58
|
+
"@khanacademy/wonder-blocks-banner": "5.0.21",
|
|
59
|
+
"@khanacademy/wonder-blocks-button": "11.5.2",
|
|
60
|
+
"@khanacademy/wonder-blocks-clickable": "8.1.7",
|
|
61
61
|
"@khanacademy/wonder-blocks-core": "12.4.3",
|
|
62
62
|
"@khanacademy/wonder-blocks-data": "15.0.1",
|
|
63
|
-
"@khanacademy/wonder-blocks-dropdown": "10.8.
|
|
64
|
-
"@khanacademy/wonder-blocks-form": "7.5.
|
|
65
|
-
"@khanacademy/wonder-blocks-icon": "5.3.
|
|
66
|
-
"@khanacademy/wonder-blocks-icon-button": "11.2.
|
|
67
|
-
"@khanacademy/wonder-blocks-labeled-field": "4.0.
|
|
68
|
-
"@khanacademy/wonder-blocks-layout": "3.1.
|
|
69
|
-
"@khanacademy/wonder-blocks-link": "10.1.
|
|
70
|
-
"@khanacademy/wonder-blocks-modal": "8.6.
|
|
71
|
-
"@khanacademy/wonder-blocks-pill": "3.1.
|
|
72
|
-
"@khanacademy/wonder-blocks-popover": "6.2.
|
|
73
|
-
"@khanacademy/wonder-blocks-progress-spinner": "3.1.
|
|
74
|
-
"@khanacademy/wonder-blocks-switch": "3.3.
|
|
63
|
+
"@khanacademy/wonder-blocks-dropdown": "10.8.7",
|
|
64
|
+
"@khanacademy/wonder-blocks-form": "7.5.8",
|
|
65
|
+
"@khanacademy/wonder-blocks-icon": "5.3.11",
|
|
66
|
+
"@khanacademy/wonder-blocks-icon-button": "11.2.2",
|
|
67
|
+
"@khanacademy/wonder-blocks-labeled-field": "4.0.18",
|
|
68
|
+
"@khanacademy/wonder-blocks-layout": "3.1.48",
|
|
69
|
+
"@khanacademy/wonder-blocks-link": "10.1.9",
|
|
70
|
+
"@khanacademy/wonder-blocks-modal": "8.6.3",
|
|
71
|
+
"@khanacademy/wonder-blocks-pill": "3.1.60",
|
|
72
|
+
"@khanacademy/wonder-blocks-popover": "6.2.2",
|
|
73
|
+
"@khanacademy/wonder-blocks-progress-spinner": "3.1.48",
|
|
74
|
+
"@khanacademy/wonder-blocks-switch": "3.3.32",
|
|
75
75
|
"@khanacademy/wonder-blocks-timing": "7.0.4",
|
|
76
|
-
"@khanacademy/wonder-blocks-tokens": "16.
|
|
77
|
-
"@khanacademy/wonder-blocks-tooltip": "4.1.
|
|
78
|
-
"@khanacademy/wonder-blocks-typography": "4.3.
|
|
76
|
+
"@khanacademy/wonder-blocks-tokens": "16.3.0",
|
|
77
|
+
"@khanacademy/wonder-blocks-tooltip": "4.1.72",
|
|
78
|
+
"@khanacademy/wonder-blocks-typography": "4.3.1",
|
|
79
79
|
"@khanacademy/wonder-stuff-core": "3.0.0",
|
|
80
80
|
"@phosphor-icons/core": "2.0.2",
|
|
81
81
|
"@popperjs/core": "2.10.2",
|
|
@@ -92,27 +92,27 @@
|
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
94
|
"@khanacademy/wonder-blocks-announcer": "^1.1.0",
|
|
95
|
-
"@khanacademy/wonder-blocks-banner": "^5.0.
|
|
96
|
-
"@khanacademy/wonder-blocks-button": "^11.5.
|
|
97
|
-
"@khanacademy/wonder-blocks-clickable": "^8.1.
|
|
95
|
+
"@khanacademy/wonder-blocks-banner": "^5.0.21",
|
|
96
|
+
"@khanacademy/wonder-blocks-button": "^11.5.2",
|
|
97
|
+
"@khanacademy/wonder-blocks-clickable": "^8.1.7",
|
|
98
98
|
"@khanacademy/wonder-blocks-core": "^12.4.3",
|
|
99
99
|
"@khanacademy/wonder-blocks-data": "^15.0.1",
|
|
100
|
-
"@khanacademy/wonder-blocks-dropdown": "^10.8.
|
|
101
|
-
"@khanacademy/wonder-blocks-form": "^7.5.
|
|
102
|
-
"@khanacademy/wonder-blocks-icon": "^5.3.
|
|
103
|
-
"@khanacademy/wonder-blocks-icon-button": "^11.2.
|
|
104
|
-
"@khanacademy/wonder-blocks-labeled-field": "^4.0.
|
|
105
|
-
"@khanacademy/wonder-blocks-layout": "^3.1.
|
|
106
|
-
"@khanacademy/wonder-blocks-link": "^10.1.
|
|
107
|
-
"@khanacademy/wonder-blocks-modal": "^8.6.
|
|
108
|
-
"@khanacademy/wonder-blocks-pill": "^3.1.
|
|
109
|
-
"@khanacademy/wonder-blocks-popover": "^6.2.
|
|
110
|
-
"@khanacademy/wonder-blocks-progress-spinner": "^3.1.
|
|
111
|
-
"@khanacademy/wonder-blocks-switch": "^3.3.
|
|
100
|
+
"@khanacademy/wonder-blocks-dropdown": "^10.8.7",
|
|
101
|
+
"@khanacademy/wonder-blocks-form": "^7.5.8",
|
|
102
|
+
"@khanacademy/wonder-blocks-icon": "^5.3.11",
|
|
103
|
+
"@khanacademy/wonder-blocks-icon-button": "^11.2.2",
|
|
104
|
+
"@khanacademy/wonder-blocks-labeled-field": "^4.0.18",
|
|
105
|
+
"@khanacademy/wonder-blocks-layout": "^3.1.48",
|
|
106
|
+
"@khanacademy/wonder-blocks-link": "^10.1.9",
|
|
107
|
+
"@khanacademy/wonder-blocks-modal": "^8.6.3",
|
|
108
|
+
"@khanacademy/wonder-blocks-pill": "^3.1.60",
|
|
109
|
+
"@khanacademy/wonder-blocks-popover": "^6.2.2",
|
|
110
|
+
"@khanacademy/wonder-blocks-progress-spinner": "^3.1.48",
|
|
111
|
+
"@khanacademy/wonder-blocks-switch": "^3.3.32",
|
|
112
112
|
"@khanacademy/wonder-blocks-timing": "^7.0.4",
|
|
113
|
-
"@khanacademy/wonder-blocks-tokens": "^16.
|
|
114
|
-
"@khanacademy/wonder-blocks-tooltip": "^4.1.
|
|
115
|
-
"@khanacademy/wonder-blocks-typography": "^4.3.
|
|
113
|
+
"@khanacademy/wonder-blocks-tokens": "^16.3.0",
|
|
114
|
+
"@khanacademy/wonder-blocks-tooltip": "^4.1.72",
|
|
115
|
+
"@khanacademy/wonder-blocks-typography": "^4.3.1",
|
|
116
116
|
"@khanacademy/wonder-stuff-core": "^3.0.0",
|
|
117
117
|
"@phosphor-icons/core": "^2.0.2",
|
|
118
118
|
"@popperjs/core": "^2.10.2",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
},
|
|
128
128
|
"keywords": [],
|
|
129
129
|
"khan": {
|
|
130
|
-
"catalogHash": "
|
|
130
|
+
"catalogHash": "d7fadad1d0d39388"
|
|
131
131
|
},
|
|
132
132
|
"scripts": {}
|
|
133
133
|
}
|