@khanacademy/perseus-editor 31.2.0 → 31.2.2

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.
@@ -30,3 +30,10 @@ export declare const wbFieldStylesWithDescription: {
30
30
  * => newHeight = (newWidth * height) / width
31
31
  */
32
32
  export declare function getOtherSideLengthWithPreservedAspectRatio(sideLength: number, otherSideLength: number, newSideLength: number): number;
33
+ /**
34
+ * Checks if a dimension is invalid. A dimension is valid if it's
35
+ * a positive, non-infinite number.
36
+ * @param dimension - The dimension (height or width) to check.
37
+ * @returns True if the dimension is invalid, false otherwise.
38
+ */
39
+ export declare function isInvalidDimension(dimension: number): boolean;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Perseus editors",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "31.2.0",
6
+ "version": "31.2.2",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -35,14 +35,14 @@
35
35
  "katex": "0.11.1",
36
36
  "mafs": "^0.19.0",
37
37
  "tiny-invariant": "1.3.1",
38
- "@khanacademy/kas": "2.2.2",
39
- "@khanacademy/keypad-context": "3.2.47",
40
- "@khanacademy/kmath": "2.4.5",
41
- "@khanacademy/math-input": "26.4.19",
42
- "@khanacademy/perseus": "77.4.1",
43
- "@khanacademy/perseus-core": "26.0.2",
44
- "@khanacademy/perseus-linter": "5.0.2",
45
- "@khanacademy/perseus-score": "8.8.1",
38
+ "@khanacademy/kas": "2.2.3",
39
+ "@khanacademy/keypad-context": "3.2.48",
40
+ "@khanacademy/kmath": "2.4.6",
41
+ "@khanacademy/math-input": "26.4.20",
42
+ "@khanacademy/perseus": "77.5.0",
43
+ "@khanacademy/perseus-core": "26.0.3",
44
+ "@khanacademy/perseus-linter": "5.0.3",
45
+ "@khanacademy/perseus-score": "8.8.2",
46
46
  "@khanacademy/perseus-utils": "2.1.5"
47
47
  },
48
48
  "devDependencies": {