@khanacademy/perseus-editor 2.5.1 → 2.6.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/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: {
@@ -28490,7 +28490,7 @@ const ImageEditor = createReactClass__default["default"]({
28490
28490
  this.setUrl(url, size[0], size[1], true);
28491
28491
  } catch (error) {
28492
28492
  this.setState({
28493
- backgroundImageError: "There was an error loading the image URL: ".concat(error)
28493
+ backgroundImageError: "There was an error loading the image URL: ".concat(JSON.stringify(error, null, 2))
28494
28494
  });
28495
28495
  }
28496
28496
  },