@khanacademy/perseus-editor 2.5.1 → 2.5.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.
package/dist/index.js CHANGED
@@ -28323,7 +28323,7 @@ const ImageEditor = createReactClass__default["default"]({
28323
28323
  const backgroundImage = this.props.backgroundImage;
28324
28324
  const imageSettings = /*#__PURE__*/React__namespace.createElement("div", {
28325
28325
  className: "image-settings"
28326
- }, /*#__PURE__*/React__namespace.createElement("div", null, /*#__PURE__*/React__namespace.createElement("label", null, /*#__PURE__*/React__namespace.createElement("div", null, "Preview:"), /*#__PURE__*/React__namespace.createElement("img", {
28326
+ }, !perseus.Util.isLabeledSVG(backgroundImage.url) && /*#__PURE__*/React__namespace.createElement("div", null, /*#__PURE__*/React__namespace.createElement("label", null, /*#__PURE__*/React__namespace.createElement("div", null, "Preview:"), /*#__PURE__*/React__namespace.createElement("img", {
28327
28327
  alt: "Editor preview of image",
28328
28328
  src: backgroundImage.url,
28329
28329
  style: {