@khanacademy/perseus 12.0.1 → 12.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @khanacademy/perseus
2
2
 
3
+ ## 12.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6dbc58c6: Fix image centering for widget
8
+
9
+ ### Patch Changes
10
+
11
+ - c4ae088f: Upgrades MathQuill to fix Android keyboard error
12
+ - Updated dependencies [c4ae088f]
13
+ - Updated dependencies [aea0387f]
14
+ - @khanacademy/math-input@14.2.0
15
+
3
16
  ## 12.0.1
4
17
 
5
18
  ### Patch Changes
package/dist/es/index.css CHANGED
@@ -2793,7 +2793,8 @@ body.mobile .categorizer-container td.category input[type="radio"] + span:active
2793
2793
  margin-left: -20px;
2794
2794
  }
2795
2795
  .perseus-image-widget {
2796
- margin: 0;
2796
+ margin-left: auto;
2797
+ margin-right: auto;
2797
2798
  }
2798
2799
  .perseus-image-widget .perseus-image-title {
2799
2800
  text-align: center;
@@ -2802,7 +2803,6 @@ body.mobile .categorizer-container td.category input[type="radio"] + span:active
2802
2803
  color: rgba(33, 36, 44, 0.7);
2803
2804
  padding-left: 16px;
2804
2805
  position: relative;
2805
- top: -12px;
2806
2806
  }
2807
2807
  .perseus-image-widget .perseus-image-caption::before {
2808
2808
  content: "";
package/dist/es/index.js CHANGED
@@ -26579,7 +26579,10 @@ class ImageWidget extends React.Component {
26579
26579
  })));
26580
26580
  }
26581
26581
  return /*#__PURE__*/React.createElement("figure", {
26582
- className: "perseus-image-widget"
26582
+ className: "perseus-image-widget",
26583
+ style: {
26584
+ maxWidth: backgroundImage.width
26585
+ }
26583
26586
  }, image, alt, titleAndCaption);
26584
26587
  }
26585
26588
  let title;
@@ -26606,7 +26609,10 @@ class ImageWidget extends React.Component {
26606
26609
  }));
26607
26610
  }
26608
26611
  return /*#__PURE__*/React.createElement("figure", {
26609
- className: "perseus-image-widget"
26612
+ className: "perseus-image-widget",
26613
+ style: {
26614
+ maxWidth: backgroundImage.width
26615
+ }
26610
26616
  }, title, image, alt, caption);
26611
26617
  }
26612
26618
  static validate(userInput, rubric) {
@@ -43742,7 +43748,7 @@ const init = function init(options) {
43742
43748
 
43743
43749
  // This file is processed by a Rollup plugin (replace) to inject the production
43744
43750
  const libName = "@khanacademy/perseus";
43745
- const libVersion = "12.0.1";
43751
+ const libVersion = "12.1.0";
43746
43752
  addLibraryVersionToPerseusDebug(libName, libVersion);
43747
43753
 
43748
43754
  const apiVersion = {