@khanacademy/perseus 11.2.1 → 11.4.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 +27 -0
- package/dist/error-boundary.d.ts +1 -0
- package/dist/es/index.css +0 -3
- package/dist/es/index.js +8 -4
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +0 -3
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/error-boundary.tsx +5 -1
- package/src/renderer.tsx +4 -1
- package/src/styles/articles.less +0 -4
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @khanacademy/perseus
|
|
2
2
|
|
|
3
|
+
## 11.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 6751a680: Make article image widget behave more like other image widgets
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [388b6506]
|
|
12
|
+
- Updated dependencies [4f4fe4f9]
|
|
13
|
+
- Updated dependencies [388b6506]
|
|
14
|
+
- @khanacademy/perseus-linter@0.3.4
|
|
15
|
+
- @khanacademy/perseus-core@1.1.0
|
|
16
|
+
- @khanacademy/pure-markdown@0.2.6
|
|
17
|
+
- @khanacademy/math-input@12.1.1
|
|
18
|
+
|
|
19
|
+
## 11.3.0
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- 26fc0b41: Updated ErrorBoundary logging to include the componentStack as well as the widget type as metadata.
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [a5a60852]
|
|
28
|
+
- @khanacademy/math-input@12.1.0
|
|
29
|
+
|
|
3
30
|
## 11.2.1
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/dist/error-boundary.d.ts
CHANGED
package/dist/es/index.css
CHANGED
|
@@ -1597,9 +1597,6 @@ body.mobile ul.inequalities-one-line-radios > li {
|
|
|
1597
1597
|
.framework-perseus.perseus-article:not(.perseus-mobile) .MathJax .math {
|
|
1598
1598
|
color: inherit;
|
|
1599
1599
|
}
|
|
1600
|
-
.framework-perseus.perseus-article:not(.perseus-mobile) .perseus-image-widget {
|
|
1601
|
-
text-align: center;
|
|
1602
|
-
}
|
|
1603
1600
|
.framework-perseus.perseus-article:not(.perseus-mobile) .perseus-image-caption .perseus-renderer .paragraph .paragraph,
|
|
1604
1601
|
.framework-perseus.perseus-article:not(.perseus-mobile) .perseus-image-caption .perseus-renderer .paragraph ol,
|
|
1605
1602
|
.framework-perseus.perseus-article:not(.perseus-mobile) .perseus-image-caption .perseus-renderer .paragraph ul {
|
package/dist/es/index.js
CHANGED
|
@@ -17729,9 +17729,9 @@ class ErrorBoundary extends React.Component {
|
|
|
17729
17729
|
});
|
|
17730
17730
|
Log.error("Perseus error boundary caught error", Errors.Internal, {
|
|
17731
17731
|
cause: error,
|
|
17732
|
-
loggedMetadata: {
|
|
17733
|
-
|
|
17734
|
-
}
|
|
17732
|
+
loggedMetadata: _extends({
|
|
17733
|
+
componentStack: info.componentStack
|
|
17734
|
+
}, this.props.metadata)
|
|
17735
17735
|
});
|
|
17736
17736
|
}
|
|
17737
17737
|
render() {
|
|
@@ -19321,7 +19321,11 @@ class Renderer extends React.Component {
|
|
|
19321
19321
|
// filtered out in this.render(), so we shouldn't have to
|
|
19322
19322
|
// worry about using this widget key and ref:
|
|
19323
19323
|
return /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
19324
|
-
key: "container:" + id
|
|
19324
|
+
key: "container:" + id,
|
|
19325
|
+
metadata: {
|
|
19326
|
+
widget_type: type,
|
|
19327
|
+
widget_id: id
|
|
19328
|
+
}
|
|
19325
19329
|
}, /*#__PURE__*/React.createElement(WidgetContainer, {
|
|
19326
19330
|
ref: "container:" + id,
|
|
19327
19331
|
type: type,
|