@khanacademy/perseus 27.1.0 → 28.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/image-loader.d.ts +2 -2
- package/dist/components/{info-tip.d.ts → info-tip/index.d.ts} +2 -2
- package/dist/components/info-tip/info-tip-base.d.ts +6 -0
- package/dist/components.d.ts +0 -1
- package/dist/es/index.js +445 -341
- package/dist/es/index.js.map +1 -1
- package/dist/es/strings.js +6 -2
- package/dist/es/strings.js.map +1 -1
- package/dist/hints-renderer.d.ts +2 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +433 -327
- package/dist/index.js.map +1 -1
- package/dist/interactive2/movable-point.d.ts +3 -3
- package/dist/perseus-api.d.ts +5 -2
- package/dist/perseus-types.d.ts +10 -6
- package/dist/renderer.d.ts +2 -1
- package/dist/server-item-renderer.d.ts +5 -2
- package/dist/strings.d.ts +2 -0
- package/dist/strings.js +6 -2
- package/dist/strings.js.map +1 -1
- package/dist/types.d.ts +8 -8
- package/dist/util/{katex-preprocess.d.ts → tex-preprocess.d.ts} +1 -1
- package/dist/widgets/expression.d.ts +32 -14
- package/dist/widgets/interactive-graphs/graphs/angle.d.ts +7 -0
- package/dist/widgets/interactive-graphs/graphs/components/angle-indicators.d.ts +0 -2
- package/dist/widgets/interactive-graphs/graphs/components/movable-point.d.ts +3 -2
- package/dist/widgets/interactive-graphs/graphs/polygon.d.ts +1 -0
- package/dist/widgets/interactive-graphs/graphs/use-draggable.d.ts +7 -1
- package/dist/widgets/interactive-graphs/locked-figures/locked-function.d.ts +1 -1
- package/dist/widgets/interactive-graphs/mafs-graph.d.ts +1 -0
- package/dist/widgets/interactive-graphs/math/geometry.d.ts +2 -1
- package/dist/widgets/interactive-graphs/reducer/initialize-graph-state.d.ts +10 -1
- package/dist/widgets/interactive-graphs/reducer/use-graph-config.d.ts +1 -1
- package/dist/widgets/interactive-graphs/stateful-mafs-graph.d.ts +1 -0
- package/dist/widgets/label-image.d.ts +10 -4
- package/package.json +6 -6
- package/dist/components/info-tip/info-tip.d.ts +0 -6
- package/dist/components/prop-check-box.d.ts +0 -4
|
@@ -11,7 +11,7 @@ export type GraphConfig = {
|
|
|
11
11
|
width: number;
|
|
12
12
|
height: number;
|
|
13
13
|
labels: readonly string[];
|
|
14
|
-
|
|
14
|
+
disableKeyboardInteraction?: boolean;
|
|
15
15
|
};
|
|
16
16
|
export declare const GraphConfigContext: React.Context<GraphConfig>;
|
|
17
17
|
export default function useGraphConfig(): GraphConfig;
|
|
@@ -18,5 +18,6 @@ export type StatefulMafsGraphProps = {
|
|
|
18
18
|
showProtractor: boolean;
|
|
19
19
|
labels: InteractiveGraphProps["labels"];
|
|
20
20
|
hintMode: boolean;
|
|
21
|
+
readOnly: boolean;
|
|
21
22
|
};
|
|
22
23
|
export declare const StatefulMafsGraph: React.ForwardRefExoticComponent<StatefulMafsGraphProps & React.RefAttributes<Partial<Widget>>>;
|
|
@@ -142,10 +142,13 @@ declare const _default: Readonly<{
|
|
|
142
142
|
ray?: boolean | undefined;
|
|
143
143
|
segment?: boolean | undefined;
|
|
144
144
|
} & {
|
|
145
|
-
"interactive-graph-locked-features-m2"?: boolean | undefined;
|
|
146
145
|
"interactive-graph-locked-features-m2b"?: boolean | undefined;
|
|
147
146
|
} & {
|
|
148
|
-
"start-coords-ui"?: boolean | undefined;
|
|
147
|
+
"start-coords-ui-phase-1"?: boolean | undefined;
|
|
148
|
+
"start-coords-ui-phase-2"?: boolean | undefined;
|
|
149
|
+
"start-coords-ui-point"?: boolean | undefined;
|
|
150
|
+
"start-coords-ui-polygon"?: boolean | undefined;
|
|
151
|
+
"start-coords-ui-angle"?: boolean | undefined;
|
|
149
152
|
}) | undefined;
|
|
150
153
|
} | undefined;
|
|
151
154
|
onWidgetStartProps?: ((widgets: import("..").PerseusWidgetsMap) => void) | undefined;
|
|
@@ -207,10 +210,13 @@ declare const _default: Readonly<{
|
|
|
207
210
|
ray?: boolean | undefined;
|
|
208
211
|
segment?: boolean | undefined;
|
|
209
212
|
} & {
|
|
210
|
-
"interactive-graph-locked-features-m2"?: boolean | undefined;
|
|
211
213
|
"interactive-graph-locked-features-m2b"?: boolean | undefined;
|
|
212
214
|
} & {
|
|
213
|
-
"start-coords-ui"?: boolean | undefined;
|
|
215
|
+
"start-coords-ui-phase-1"?: boolean | undefined;
|
|
216
|
+
"start-coords-ui-phase-2"?: boolean | undefined;
|
|
217
|
+
"start-coords-ui-point"?: boolean | undefined;
|
|
218
|
+
"start-coords-ui-polygon"?: boolean | undefined;
|
|
219
|
+
"start-coords-ui-angle"?: boolean | undefined;
|
|
214
220
|
}) | undefined;
|
|
215
221
|
} | undefined;
|
|
216
222
|
onWidgetStartProps?: ((widgets: import("..").PerseusWidgetsMap) => void) | undefined;
|
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": "28.0.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -41,13 +41,14 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@khanacademy/kas": "^0.3.11",
|
|
43
43
|
"@khanacademy/kmath": "^0.1.13",
|
|
44
|
-
"@khanacademy/math-input": "^20.1.
|
|
44
|
+
"@khanacademy/math-input": "^20.1.1",
|
|
45
45
|
"@khanacademy/perseus-core": "1.5.0",
|
|
46
46
|
"@khanacademy/perseus-linter": "^1.0.0",
|
|
47
47
|
"@khanacademy/pure-markdown": "^0.3.7",
|
|
48
48
|
"@khanacademy/simple-markdown": "^0.13.0",
|
|
49
49
|
"@use-gesture/react": "^10.2.27",
|
|
50
|
-
"mafs": "0.19.0"
|
|
50
|
+
"mafs": "0.19.0",
|
|
51
|
+
"uuid": "^10.0.0"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
54
|
"@khanacademy/wonder-blocks-banner": "3.0.42",
|
|
@@ -61,7 +62,7 @@
|
|
|
61
62
|
"@khanacademy/wonder-blocks-layout": "2.0.32",
|
|
62
63
|
"@khanacademy/wonder-blocks-link": "6.1.1",
|
|
63
64
|
"@khanacademy/wonder-blocks-pill": "2.2.1",
|
|
64
|
-
"@khanacademy/wonder-blocks-popover": "3.2.
|
|
65
|
+
"@khanacademy/wonder-blocks-popover": "3.2.11",
|
|
65
66
|
"@khanacademy/wonder-blocks-progress-spinner": "2.1.1",
|
|
66
67
|
"@khanacademy/wonder-blocks-switch": "1.1.16",
|
|
67
68
|
"@khanacademy/wonder-blocks-tokens": "1.3.0",
|
|
@@ -75,7 +76,6 @@
|
|
|
75
76
|
"create-react-class": "15.6.3",
|
|
76
77
|
"intersection-observer": "^0.12.0",
|
|
77
78
|
"jquery": "^2.1.1",
|
|
78
|
-
"katex": "0.11.1",
|
|
79
79
|
"lodash.debounce": "^4.0.8",
|
|
80
80
|
"perseus-build-settings": "^0.4.1",
|
|
81
81
|
"prop-types": "15.6.1",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"@khanacademy/wonder-blocks-layout": "2.0.32",
|
|
97
97
|
"@khanacademy/wonder-blocks-link": "6.1.1",
|
|
98
98
|
"@khanacademy/wonder-blocks-pill": "2.2.1",
|
|
99
|
-
"@khanacademy/wonder-blocks-popover": "3.2.
|
|
99
|
+
"@khanacademy/wonder-blocks-popover": "3.2.11",
|
|
100
100
|
"@khanacademy/wonder-blocks-progress-spinner": "2.1.1",
|
|
101
101
|
"@khanacademy/wonder-blocks-switch": "1.1.16",
|
|
102
102
|
"@khanacademy/wonder-blocks-tokens": "1.3.0",
|