@commercetools-frontend/staff-bar 2.1.0 → 2.1.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.
@@ -77,8 +77,11 @@ function StaffBar(props) {
77
77
  if (process.env.NODE_ENV === 'test' || window.Cypress && !window.sessionStorage?.enableStaffBarForCypress) {
78
78
  return null;
79
79
  }
80
- return jsxRuntime.jsx(ErrorBoundary, {
81
- children: jsxRuntime.jsx(StaffBarComponent, _objectSpread({}, props))
80
+ return jsxRuntime.jsx(react.Suspense, {
81
+ fallback: null,
82
+ children: jsxRuntime.jsx(ErrorBoundary, {
83
+ children: jsxRuntime.jsx(StaffBarComponent, _objectSpread({}, props))
84
+ })
82
85
  });
83
86
  }
84
87
 
@@ -77,8 +77,11 @@ function StaffBar(props) {
77
77
  if (window.Cypress && !window.sessionStorage?.enableStaffBarForCypress) {
78
78
  return null;
79
79
  }
80
- return jsxRuntime.jsx(ErrorBoundary, {
81
- children: jsxRuntime.jsx(StaffBarComponent, _objectSpread({}, props))
80
+ return jsxRuntime.jsx(react.Suspense, {
81
+ fallback: null,
82
+ children: jsxRuntime.jsx(ErrorBoundary, {
83
+ children: jsxRuntime.jsx(StaffBarComponent, _objectSpread({}, props))
84
+ })
82
85
  });
83
86
  }
84
87
 
@@ -7,7 +7,7 @@ import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-st
7
7
  import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/object/define-properties';
8
8
  import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
9
9
  import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
10
- import { Component, lazy } from 'react';
10
+ import { Component, Suspense, lazy } from 'react';
11
11
  import _Reflect$construct from '@babel/runtime-corejs3/core-js-stable/reflect/construct';
12
12
  import _classCallCheck from '@babel/runtime-corejs3/helpers/esm/classCallCheck';
13
13
  import _createClass from '@babel/runtime-corejs3/helpers/esm/createClass';
@@ -61,8 +61,11 @@ function StaffBar(props) {
61
61
  if (process.env.NODE_ENV === 'test' || window.Cypress && !window.sessionStorage?.enableStaffBarForCypress) {
62
62
  return null;
63
63
  }
64
- return jsx(ErrorBoundary, {
65
- children: jsx(StaffBarComponent, _objectSpread({}, props))
64
+ return jsx(Suspense, {
65
+ fallback: null,
66
+ children: jsx(ErrorBoundary, {
67
+ children: jsx(StaffBarComponent, _objectSpread({}, props))
68
+ })
66
69
  });
67
70
  }
68
71
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/staff-bar",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Toolbar that makes testing inside Merchant Center easier",
5
5
  "license": "MIT",
6
6
  "main": "dist/commercetools-frontend-staff-bar.cjs.js",
@@ -16,8 +16,8 @@
16
16
  "@apollo/client": "3.12.4",
17
17
  "@babel/core": "^7.22.11",
18
18
  "@babel/runtime-corejs3": "^7.21.0",
19
- "@commercetools-frontend/application-components": "24.0.0",
20
- "@commercetools-frontend/application-shell": "24.0.0",
19
+ "@commercetools-frontend/application-components": "24.1.0",
20
+ "@commercetools-frontend/application-shell": "24.1.0",
21
21
  "@commercetools-frontend/ui-kit": "20.0.0",
22
22
  "@flopflip/types": "14.0.1",
23
23
  "lodash": "4.17.21",
@@ -27,8 +27,8 @@
27
27
  "typescript": "5.2.2"
28
28
  },
29
29
  "devDependencies": {
30
- "@commercetools-frontend/application-shell-connectors": "24.0.0",
31
- "@commercetools-frontend/constants": "24.0.0",
30
+ "@commercetools-frontend/application-shell-connectors": "24.1.0",
31
+ "@commercetools-frontend/constants": "24.1.0",
32
32
  "@emotion/react": "11.14.0",
33
33
  "@manypkg/find-root": "2.2.3",
34
34
  "@types/react": "19.0.0",
@@ -39,8 +39,8 @@
39
39
  "react": "19.0.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "@commercetools-frontend/application-shell-connectors": "24.0.0",
43
- "@commercetools-frontend/constants": "24.0.0",
42
+ "@commercetools-frontend/application-shell-connectors": "24.1.0",
43
+ "@commercetools-frontend/constants": "24.1.0",
44
44
  "@emotion/react": "11.x",
45
45
  "react": "19.x"
46
46
  },