@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/dist/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/index.js
CHANGED
|
@@ -17791,7 +17791,8 @@ class ErrorBoundary extends React__namespace.Component {
|
|
|
17791
17791
|
Log.error("Perseus error boundary caught error", Errors.Internal, {
|
|
17792
17792
|
cause: error,
|
|
17793
17793
|
loggedMetadata: {
|
|
17794
|
-
|
|
17794
|
+
componentStack: info.componentStack,
|
|
17795
|
+
...this.props.metadata
|
|
17795
17796
|
}
|
|
17796
17797
|
});
|
|
17797
17798
|
}
|
|
@@ -19411,7 +19412,11 @@ class Renderer extends React__namespace.Component {
|
|
|
19411
19412
|
// filtered out in this.render(), so we shouldn't have to
|
|
19412
19413
|
// worry about using this widget key and ref:
|
|
19413
19414
|
return /*#__PURE__*/React__namespace.createElement(ErrorBoundary, {
|
|
19414
|
-
key: "container:" + id
|
|
19415
|
+
key: "container:" + id,
|
|
19416
|
+
metadata: {
|
|
19417
|
+
widget_type: type,
|
|
19418
|
+
widget_id: id
|
|
19419
|
+
}
|
|
19415
19420
|
}, /*#__PURE__*/React__namespace.createElement(WidgetContainer, {
|
|
19416
19421
|
ref: "container:" + id,
|
|
19417
19422
|
type: type,
|