@janiscommerce/ui-web 1.8.0 → 1.9.0-beta.1

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 CHANGED
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.9.0-beta.1] - 2026-04-08
11
+
12
+ ### Added
13
+
14
+ - ErrorBoundary component story
15
+
16
+ ### Changed
17
+
18
+ - ErrorBoundary component to consolidate it and use it from outside
19
+
10
20
  ## [1.8.0] - 2026-02-03
11
21
 
12
22
  ### Added:
package/dist/index.esm.js CHANGED
@@ -9510,7 +9510,11 @@ var styled$6 = {
9510
9510
  Icon: styled$j(Icon).withConfig({
9511
9511
  displayName: "styles__Icon",
9512
9512
  componentId: "sc-3jodl7-1"
9513
- })(["margin-right:6px;flex-shrink:0;"])
9513
+ })(["margin-right:6px;flex-shrink:0;"]),
9514
+ Message: styled$j.span.withConfig({
9515
+ displayName: "styles__Message",
9516
+ componentId: "sc-3jodl7-2"
9517
+ })(["color:", ";font-size:", ";font-family:", ";"], palette.statusRed, typography.size.baseSmall, typography.fontFamily)
9514
9518
  };
9515
9519
 
9516
9520
  var DefaultError = function DefaultError(_ref) {
@@ -9518,16 +9522,15 @@ var DefaultError = function DefaultError(_ref) {
9518
9522
  return /*#__PURE__*/React__default.createElement(styled$6.Wrapper, null, /*#__PURE__*/React__default.createElement(styled$6.Icon, {
9519
9523
  name: "exclamation_circle",
9520
9524
  color: "statusRed"
9521
- }), /*#__PURE__*/React__default.createElement("p", {
9522
- color: "statusRed",
9523
- fontSize: "baseSmall"
9524
- }, message));
9525
+ }), /*#__PURE__*/React__default.createElement(styled$6.Message, null, message));
9525
9526
  };
9526
9527
 
9527
9528
  DefaultError.defaultProps = {
9528
- message: 'something went wrong error'
9529
+ message: 'Something went wrong'
9529
9530
  };
9530
9531
 
9532
+ /** Class boundary: React has no hook equivalent to componentDidCatch / getDerivedStateFromError; a functional wrapper may be evaluated later (JMV-4037). */
9533
+
9531
9534
  var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
9532
9535
  _inherits$2(ErrorBoundary, _React$Component);
9533
9536