@khanacademy/perseus 11.2.1 → 11.3.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
@@ -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
- info: info.toString()
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,