@khanacademy/perseus 22.1.0 → 22.3.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.css +4 -6
- package/dist/es/index.js +187 -176
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +4 -6
- package/dist/index.js +186 -175
- package/dist/index.js.map +1 -1
- package/dist/perseus-types.d.ts +1 -1
- package/dist/widgets/interactive-graphs/graph-locked-layer.d.ts +2 -0
- package/dist/widgets/interactive-graphs/graphs/components/vector.d.ts +2 -1
- package/dist/widgets/interactive-graphs/locked-line.d.ts +5 -1
- package/package.json +5 -5
package/dist/perseus-types.d.ts
CHANGED
|
@@ -347,7 +347,7 @@ export type PerseusInteractiveGraphWidgetOptions = {
|
|
|
347
347
|
correct: PerseusGraphType;
|
|
348
348
|
lockedFigures?: ReadonlyArray<LockedFigure>;
|
|
349
349
|
};
|
|
350
|
-
declare const lockedFigureColorNames: readonly ["
|
|
350
|
+
declare const lockedFigureColorNames: readonly ["green", "grayH", "purple", "pink", "red"];
|
|
351
351
|
export type LockedFigureColor = (typeof lockedFigureColorNames)[number];
|
|
352
352
|
export declare const lockedFigureColors: Record<LockedFigureColor, string>;
|
|
353
353
|
export type LockedFigure = LockedPointType | LockedLineType;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { LockedFigure } from "../../perseus-types";
|
|
3
|
+
import type { Interval } from "mafs";
|
|
3
4
|
type Props = {
|
|
4
5
|
lockedFigures: ReadonlyArray<LockedFigure>;
|
|
6
|
+
range: [x: Interval, y: Interval];
|
|
5
7
|
};
|
|
6
8
|
declare const GraphLockedLayer: (props: Props) => JSX.Element;
|
|
7
9
|
export default GraphLockedLayer;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { vec } from "mafs";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
type Props = {
|
|
4
4
|
tail: vec.Vector2;
|
|
5
5
|
tip: vec.Vector2;
|
|
6
6
|
color: string;
|
|
7
|
+
style?: React.SVGProps<SVGLineElement>["style"];
|
|
7
8
|
};
|
|
8
9
|
export declare function Vector(props: Props): JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { LockedLineType } from "../../perseus-types";
|
|
3
|
-
|
|
3
|
+
import type { Interval } from "mafs";
|
|
4
|
+
type Props = LockedLineType & {
|
|
5
|
+
range: [Interval, Interval];
|
|
6
|
+
};
|
|
7
|
+
declare const LockedLine: (props: Props) => JSX.Element;
|
|
4
8
|
export default LockedLine;
|
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": "22.
|
|
6
|
+
"version": "22.3.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@khanacademy/kas": "^0.3.9",
|
|
43
43
|
"@khanacademy/kmath": "^0.1.12",
|
|
44
|
-
"@khanacademy/math-input": "^18.0
|
|
44
|
+
"@khanacademy/math-input": "^18.1.0",
|
|
45
45
|
"@khanacademy/perseus-core": "1.4.2",
|
|
46
46
|
"@khanacademy/perseus-linter": "^0.3.12",
|
|
47
|
-
"@khanacademy/pure-markdown": "^0.3.
|
|
47
|
+
"@khanacademy/pure-markdown": "^0.3.3",
|
|
48
48
|
"@khanacademy/simple-markdown": "^0.11.4",
|
|
49
|
-
"mafs": "
|
|
49
|
+
"mafs": "0.18.5"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@khanacademy/wonder-blocks-banner": "^3.0.41",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"jquery": "^2.1.1",
|
|
77
77
|
"katex": "^0.11.1",
|
|
78
78
|
"lodash.debounce": "^4.0.8",
|
|
79
|
-
"perseus-build-settings": "^0.4.
|
|
79
|
+
"perseus-build-settings": "^0.4.1",
|
|
80
80
|
"prop-types": "^15.6.1",
|
|
81
81
|
"react": "16.14.0",
|
|
82
82
|
"react-dom": "16.14.0",
|