@khanacademy/perseus-editor 25.1.0 → 25.1.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.
@@ -1,8 +1,10 @@
1
1
  import * as React from "react";
2
+ import type { StyleType } from "@khanacademy/wonder-blocks-core";
2
3
  type StyleOptions = "solid" | "dashed";
3
4
  type Props = {
4
5
  selectedValue: StyleOptions;
5
6
  onChange: (newValue: StyleOptions) => void;
7
+ containerStyle?: StyleType;
6
8
  };
7
9
  declare const LineStrokeSelect: (props: Props) => React.JSX.Element;
8
10
  export default LineStrokeSelect;
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import type { StrokeWeight } from "@khanacademy/perseus-core";
3
+ import type { StyleType } from "@khanacademy/wonder-blocks-core";
4
+ type Props = {
5
+ selectedValue: StrokeWeight;
6
+ onChange: (newValue: StrokeWeight) => void;
7
+ containerStyle?: StyleType;
8
+ };
9
+ declare const LineWeightSelect: (props: Props) => React.JSX.Element;
10
+ export default LineWeightSelect;
@@ -1,4 +1,4 @@
1
- import { type LockedEllipseType, type LockedFigure, type LockedFigureColor, type LockedFigureFillType, type LockedFigureType, type LockedFunctionType, type LockedLabelType, type LockedLineType, type LockedPointType, type LockedPolygonType, type LockedVectorType, type LockedLineStyle } from "@khanacademy/perseus-core";
1
+ import { type LockedEllipseType, type LockedFigure, type LockedFigureColor, type LockedFigureFillType, type LockedFigureType, type LockedFunctionType, type LockedLabelType, type LockedLineType, type LockedPointType, type LockedPolygonType, type LockedVectorType, type LockedLineStyle, type StrokeWeight } from "@khanacademy/perseus-core";
2
2
  export declare function getDefaultFigureForType(type: "point"): LockedPointType;
3
3
  export declare function getDefaultFigureForType(type: "line"): LockedLineType;
4
4
  export declare function getDefaultFigureForType(type: "vector"): LockedVectorType;
@@ -7,7 +7,7 @@ export declare function getDefaultFigureForType(type: "polygon"): LockedPolygonT
7
7
  export declare function getDefaultFigureForType(type: "function"): LockedFunctionType;
8
8
  export declare function getDefaultFigureForType(type: "label"): LockedLabelType;
9
9
  export declare function getDefaultFigureForType(type: LockedFigureType): LockedFigure;
10
- export declare function generateLockedFigureAppearanceDescription(color: LockedFigureColor, strokeStyle?: LockedLineStyle, fill?: LockedFigureFillType): string;
10
+ export declare function generateLockedFigureAppearanceDescription(color: LockedFigureColor, strokeStyle?: LockedLineStyle, fill?: LockedFigureFillType, weight?: StrokeWeight): string;
11
11
  /**
12
12
  * Given a string that may contain math within TeX represented by $...$,
13
13
  * returns the spoken math equivalent using the SpeechRuleEngine.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Perseus editors",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "25.1.0",
6
+ "version": "25.1.1",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -35,13 +35,13 @@
35
35
  "mafs": "^0.19.0",
36
36
  "tiny-invariant": "1.3.1",
37
37
  "@khanacademy/kas": "2.0.9",
38
- "@khanacademy/keypad-context": "3.0.21",
39
- "@khanacademy/perseus-linter": "4.0.8",
40
- "@khanacademy/math-input": "26.0.10",
41
- "@khanacademy/kmath": "2.0.21",
42
- "@khanacademy/perseus": "65.3.6",
43
- "@khanacademy/perseus-core": "16.0.0",
44
- "@khanacademy/perseus-score": "7.1.8",
38
+ "@khanacademy/keypad-context": "3.0.22",
39
+ "@khanacademy/kmath": "2.0.22",
40
+ "@khanacademy/perseus-linter": "4.0.9",
41
+ "@khanacademy/math-input": "26.0.11",
42
+ "@khanacademy/perseus": "65.3.7",
43
+ "@khanacademy/perseus-core": "16.1.0",
44
+ "@khanacademy/perseus-score": "7.1.9",
45
45
  "@khanacademy/perseus-utils": "2.0.5",
46
46
  "@khanacademy/pure-markdown": "2.0.9"
47
47
  },
@@ -74,8 +74,8 @@
74
74
  "react": "18.2.0",
75
75
  "react-dom": "18.2.0",
76
76
  "underscore": "1.4.4",
77
- "perseus-build-settings": "0.9.0",
78
- "jsdiff": "1.0.2"
77
+ "jsdiff": "1.0.2",
78
+ "perseus-build-settings": "0.9.0"
79
79
  },
80
80
  "peerDependencies": {
81
81
  "@khanacademy/mathjax-renderer": "^3.0.0",