@commercetools-frontend/staff-bar 2.1.3 → 2.2.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/dist/commercetools-frontend-staff-bar.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-staff-bar.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-staff-bar.esm.js +1 -1
- package/dist/environments.config.json +2 -1
- package/dist/{staff-bar-0576cd67.cjs.dev.js → staff-bar-40e8ecd9.cjs.dev.js} +3 -1
- package/dist/{staff-bar-5f335f2a.esm.js → staff-bar-904e226a.esm.js} +3 -1
- package/dist/{staff-bar-43a3a63c.cjs.prod.js → staff-bar-cb3f63e4.cjs.prod.js} +3 -1
- package/package.json +12 -12
|
@@ -72,7 +72,7 @@ let ErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
72
72
|
|
|
73
73
|
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
74
74
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
75
|
-
const StaffBarComponent = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./staff-bar-
|
|
75
|
+
const StaffBarComponent = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./staff-bar-40e8ecd9.cjs.dev.js'); }));
|
|
76
76
|
function StaffBar(props) {
|
|
77
77
|
if (process.env.NODE_ENV === 'test' || window.Cypress && !window.sessionStorage?.enableStaffBarForCypress) {
|
|
78
78
|
return null;
|
|
@@ -72,7 +72,7 @@ let ErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
72
72
|
|
|
73
73
|
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
74
74
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
75
|
-
const StaffBarComponent = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./staff-bar-
|
|
75
|
+
const StaffBarComponent = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./staff-bar-cb3f63e4.cjs.prod.js'); }));
|
|
76
76
|
function StaffBar(props) {
|
|
77
77
|
if (window.Cypress && !window.sessionStorage?.enableStaffBarForCypress) {
|
|
78
78
|
return null;
|
|
@@ -56,7 +56,7 @@ let ErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
56
56
|
|
|
57
57
|
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
58
58
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
59
|
-
const StaffBarComponent = /*#__PURE__*/lazy(() => import('./staff-bar-
|
|
59
|
+
const StaffBarComponent = /*#__PURE__*/lazy(() => import('./staff-bar-904e226a.esm.js'));
|
|
60
60
|
function StaffBar(props) {
|
|
61
61
|
if (process.env.NODE_ENV === 'test' || window.Cypress && !window.sessionStorage?.enableStaffBarForCypress) {
|
|
62
62
|
return null;
|
|
@@ -110,6 +110,8 @@ var config = {
|
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
"default": {
|
|
113
|
+
},
|
|
114
|
+
"module.exports": {
|
|
113
115
|
}
|
|
114
116
|
};
|
|
115
117
|
|
|
@@ -231,7 +233,7 @@ const useStaffBarUser = () => {
|
|
|
231
233
|
error = _useMcQuery.error;
|
|
232
234
|
return {
|
|
233
235
|
userId: data?.user?.id,
|
|
234
|
-
isStaffMember: data?.user?.launchdarklyTrackingGroup === 'commercetools',
|
|
236
|
+
isStaffMember: data?.user?.launchdarklyTrackingGroup === 'commercetools' || data?.user?.launchdarklyTrackingGroup === 'mailosaur',
|
|
235
237
|
isDevMember: _includesInstanceProperty__default["default"](USER_ROLES_WITH_ALLOWED_ACCESS).call(USER_ROLES_WITH_ALLOWED_ACCESS, data?.user?.businessRole),
|
|
236
238
|
error
|
|
237
239
|
};
|
|
@@ -84,6 +84,8 @@ var config = {
|
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
"default": {
|
|
87
|
+
},
|
|
88
|
+
"module.exports": {
|
|
87
89
|
}
|
|
88
90
|
};
|
|
89
91
|
|
|
@@ -205,7 +207,7 @@ const useStaffBarUser = () => {
|
|
|
205
207
|
error = _useMcQuery.error;
|
|
206
208
|
return {
|
|
207
209
|
userId: data?.user?.id,
|
|
208
|
-
isStaffMember: data?.user?.launchdarklyTrackingGroup === 'commercetools',
|
|
210
|
+
isStaffMember: data?.user?.launchdarklyTrackingGroup === 'commercetools' || data?.user?.launchdarklyTrackingGroup === 'mailosaur',
|
|
209
211
|
isDevMember: _includesInstanceProperty(USER_ROLES_WITH_ALLOWED_ACCESS).call(USER_ROLES_WITH_ALLOWED_ACCESS, data?.user?.businessRole),
|
|
210
212
|
error
|
|
211
213
|
};
|
|
@@ -110,6 +110,8 @@ var config = {
|
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
"default": {
|
|
113
|
+
},
|
|
114
|
+
"module.exports": {
|
|
113
115
|
}
|
|
114
116
|
};
|
|
115
117
|
|
|
@@ -226,7 +228,7 @@ const useStaffBarUser = () => {
|
|
|
226
228
|
error = _useMcQuery.error;
|
|
227
229
|
return {
|
|
228
230
|
userId: data?.user?.id,
|
|
229
|
-
isStaffMember: data?.user?.launchdarklyTrackingGroup === 'commercetools',
|
|
231
|
+
isStaffMember: data?.user?.launchdarklyTrackingGroup === 'commercetools' || data?.user?.launchdarklyTrackingGroup === 'mailosaur',
|
|
230
232
|
isDevMember: _includesInstanceProperty__default["default"](USER_ROLES_WITH_ALLOWED_ACCESS).call(USER_ROLES_WITH_ALLOWED_ACCESS, data?.user?.businessRole),
|
|
231
233
|
error
|
|
232
234
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/staff-bar",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.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,31 +16,31 @@
|
|
|
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.2
|
|
20
|
-
"@commercetools-frontend/application-shell": "24.2
|
|
21
|
-
"@commercetools-frontend/ui-kit": "20.2.
|
|
19
|
+
"@commercetools-frontend/application-components": "24.7.2",
|
|
20
|
+
"@commercetools-frontend/application-shell": "24.7.2",
|
|
21
|
+
"@commercetools-frontend/ui-kit": "20.2.3",
|
|
22
22
|
"@flopflip/types": "14.0.1",
|
|
23
23
|
"lodash": "4.17.21",
|
|
24
24
|
"prop-types": "15.8.1",
|
|
25
|
-
"react-dom": "19.
|
|
25
|
+
"react-dom": "19.2.0",
|
|
26
26
|
"react-router-dom": "5.3.4",
|
|
27
27
|
"typescript": "5.2.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@commercetools-frontend/application-shell-connectors": "24.2
|
|
31
|
-
"@commercetools-frontend/constants": "24.2
|
|
30
|
+
"@commercetools-frontend/application-shell-connectors": "24.7.2",
|
|
31
|
+
"@commercetools-frontend/constants": "24.7.2",
|
|
32
32
|
"@emotion/react": "11.14.0",
|
|
33
33
|
"@manypkg/find-root": "2.2.3",
|
|
34
|
-
"@types/react": "19.
|
|
35
|
-
"@types/react-dom": "19.
|
|
34
|
+
"@types/react": "19.2.0",
|
|
35
|
+
"@types/react-dom": "19.1.9",
|
|
36
36
|
"@types/react-router-dom": "5.3.3",
|
|
37
37
|
"prettier": "2.8.8",
|
|
38
38
|
"rcfile": "1.0.3",
|
|
39
|
-
"react": "19.
|
|
39
|
+
"react": "19.2.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@commercetools-frontend/application-shell-connectors": "24.
|
|
43
|
-
"@commercetools-frontend/constants": "24.
|
|
42
|
+
"@commercetools-frontend/application-shell-connectors": "24.x",
|
|
43
|
+
"@commercetools-frontend/constants": "24.x",
|
|
44
44
|
"@emotion/react": "11.x",
|
|
45
45
|
"react": "19.x"
|
|
46
46
|
},
|