@khanacademy/perseus 71.2.1 → 71.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.
@@ -1,3 +1,3 @@
1
1
  import * as React from "react";
2
2
  import type { ImageDescriptionAndCaptionProps } from "./image-description-and-caption";
3
- export default function ExploreImageModalContent({ backgroundImage, caption, alt, longDescription, linterContext, apiOptions, box, labels, range, }: ImageDescriptionAndCaptionProps): React.JSX.Element | null;
3
+ export default function ExploreImageModalContent({ backgroundImage, caption, alt, longDescription, linterContext, apiOptions, box, labels, range, zoomSize, }: ImageDescriptionAndCaptionProps): React.JSX.Element | null;
@@ -13,5 +13,14 @@ export interface ImageDescriptionAndCaptionProps {
13
13
  range: [Interval, Interval];
14
14
  linterContext: LinterContextProps;
15
15
  apiOptions: APIOptions;
16
+ /**
17
+ * zoomSize represents the larger of the image’s natural size (calculated on load)
18
+ * and the saved backgroundImage size (specified when the content is written). This
19
+ * ensures that zooming is enabled only if the image is sufficiently large.
20
+ * image (calculated on load) and the saved backgroundImage size (specified
21
+ * when the content is written). This larger image size is used to
22
+ * determine if the image is large enough to allow zooming.
23
+ */
24
+ zoomSize: Size;
16
25
  }
17
26
  export declare const ImageDescriptionAndCaption: (props: ImageDescriptionAndCaptionProps) => React.JSX.Element;
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": "71.2.1",
6
+ "version": "71.2.2",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -44,13 +44,13 @@
44
44
  "@khanacademy/kas": "2.1.2",
45
45
  "@khanacademy/keypad-context": "3.2.10",
46
46
  "@khanacademy/kmath": "2.2.10",
47
- "@khanacademy/perseus-core": "19.5.0",
47
+ "@khanacademy/math-input": "26.2.11",
48
48
  "@khanacademy/perseus-linter": "4.4.0",
49
+ "@khanacademy/perseus-core": "19.5.0",
49
50
  "@khanacademy/perseus-score": "7.7.10",
50
51
  "@khanacademy/perseus-utils": "2.1.0",
51
52
  "@khanacademy/pure-markdown": "2.2.0",
52
- "@khanacademy/simple-markdown": "2.1.0",
53
- "@khanacademy/math-input": "26.2.11"
53
+ "@khanacademy/simple-markdown": "2.1.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@khanacademy/wonder-blocks-announcer": "1.0.3",