@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/CHANGELOG.md +17 -0
- package/dist/es/index.js +2 -2
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/widgets/image-editor.tsx +19 -13
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @khanacademy/perseus-editor
|
|
2
2
|
|
|
3
|
+
## 2.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e08f85ee: Add testing and improve error logging in the image editor
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [e08f85ee]
|
|
12
|
+
- @khanacademy/perseus@7.2.0
|
|
13
|
+
|
|
14
|
+
## 2.5.2
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- eeda31bd: Fix loading graphie URLs into the image editor
|
|
19
|
+
|
|
3
20
|
## 2.5.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/es/index.js
CHANGED
|
@@ -28178,7 +28178,7 @@ const ImageEditor = createReactClass({
|
|
|
28178
28178
|
const backgroundImage = this.props.backgroundImage;
|
|
28179
28179
|
const imageSettings = /*#__PURE__*/React.createElement("div", {
|
|
28180
28180
|
className: "image-settings"
|
|
28181
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("label", null, /*#__PURE__*/React.createElement("div", null, "Preview:"), /*#__PURE__*/React.createElement("img", {
|
|
28181
|
+
}, !Util.isLabeledSVG(backgroundImage.url) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("label", null, /*#__PURE__*/React.createElement("div", null, "Preview:"), /*#__PURE__*/React.createElement("img", {
|
|
28182
28182
|
alt: "Editor preview of image",
|
|
28183
28183
|
src: backgroundImage.url,
|
|
28184
28184
|
style: {
|
|
@@ -28342,7 +28342,7 @@ const ImageEditor = createReactClass({
|
|
|
28342
28342
|
this.setUrl(url, size[0], size[1], true);
|
|
28343
28343
|
} catch (error) {
|
|
28344
28344
|
this.setState({
|
|
28345
|
-
backgroundImageError: `There was an error loading the image URL: ${error}`
|
|
28345
|
+
backgroundImageError: `There was an error loading the image URL: ${JSON.stringify(error, null, 2)}`
|
|
28346
28346
|
});
|
|
28347
28347
|
}
|
|
28348
28348
|
},
|