@commercetools-frontend/staff-bar 0.0.4 → 0.0.6
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/{staff-bar-2d3722bd.cjs.dev.js → staff-bar-484a6be2.cjs.dev.js} +8 -3
- package/dist/{staff-bar-b54828ca.cjs.prod.js → staff-bar-72bd9500.cjs.prod.js} +7 -2
- package/dist/{staff-bar-e1239c70.esm.js → staff-bar-f2b25039.esm.js} +8 -3
- package/package.json +9 -9
|
@@ -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-484a6be2.cjs.dev.js'); }));
|
|
76
76
|
function StaffBar(props) {
|
|
77
77
|
var _window$sessionStorag;
|
|
78
78
|
if (process.env.NODE_ENV === 'test' || window.Cypress && !((_window$sessionStorag = window.sessionStorage) !== null && _window$sessionStorag !== void 0 && _window$sessionStorag.enableStaffBarForCypress)) {
|
|
@@ -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-72bd9500.cjs.prod.js'); }));
|
|
76
76
|
function StaffBar(props) {
|
|
77
77
|
var _window$sessionStorag;
|
|
78
78
|
if (window.Cypress && !((_window$sessionStorag = window.sessionStorage) !== null && _window$sessionStorag !== void 0 && _window$sessionStorag.enableStaffBarForCypress)) {
|
|
@@ -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-f2b25039.esm.js'));
|
|
60
60
|
function StaffBar(props) {
|
|
61
61
|
var _window$sessionStorag;
|
|
62
62
|
if (process.env.NODE_ENV === 'test' || window.Cypress && !((_window$sessionStorag = window.sessionStorage) !== null && _window$sessionStorag !== void 0 && _window$sessionStorag.enableStaffBarForCypress)) {
|
|
@@ -104,6 +104,11 @@ var config = {
|
|
|
104
104
|
url: "https://mc.northeurope.azure.escemo.com"
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
|
+
AzureUnitedStates: {
|
|
108
|
+
MerchantCenterFrontend: {
|
|
109
|
+
url: "https://mc.eastus.azure.commercetools.com"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
107
112
|
GoogleCloudPlatformAustralia: {
|
|
108
113
|
MerchantCenterFrontend: {
|
|
109
114
|
url: "https://mc.australia-southeast1.gcp.commercetools.com"
|
|
@@ -149,7 +154,7 @@ const getOptionsForEnvironment = (label, config) => {
|
|
|
149
154
|
};
|
|
150
155
|
const GCP = _filterInstanceProperty__default["default"](_context = [getOptionsForEnvironment('GCP Australia', config.GoogleCloudPlatformAustralia), getOptionsForEnvironment('GCP Europe', config.GoogleCloudPlatformEurope), getOptionsForEnvironment('GCP USA', config.GoogleCloudPlatformUnitedStates), getOptionsForEnvironment('GCP Europe (Staging)', config.GoogleCloudPlatformEuropeStaging)]).call(_context, nonNullable);
|
|
151
156
|
const AWS = _filterInstanceProperty__default["default"](_context2 = [getOptionsForEnvironment('AWS China', config.AmazonWebServicesChina), getOptionsForEnvironment('AWS Frankfurt', config.AmazonWebServicesFrankfurt), getOptionsForEnvironment('AWS Ohio', config.AmazonWebServicesOhio), getOptionsForEnvironment('AWS China (Staging)', config.AmazonWebServicesChinaStaging)]).call(_context2, nonNullable);
|
|
152
|
-
const Azure = _filterInstanceProperty__default["default"](_context3 = [getOptionsForEnvironment('Azure Europe (Staging)', config.AzureEuropeStaging)]).call(_context3, nonNullable);
|
|
157
|
+
const Azure = _filterInstanceProperty__default["default"](_context3 = [getOptionsForEnvironment('Azure Europe (Staging)', config.AzureEuropeStaging), getOptionsForEnvironment('Azure USA', config.AzureUnitedStates)]).call(_context3, nonNullable);
|
|
153
158
|
const PRIVATE = _filterInstanceProperty__default["default"](_context4 = [getOptionsForEnvironment('AWS AT&T', config.AmazonWebServicesATT), getOptionsForEnvironment('AWS Volkswagen', config.AmazonWebServicesVolkswagen), getOptionsForEnvironment('AWS Volkswagen (Staging)', config.AmazonWebServicesVolkswagenStaging)]).call(_context4, nonNullable);
|
|
154
159
|
const ENV = [{
|
|
155
160
|
options: GCP,
|
|
@@ -172,7 +177,7 @@ var _ref$5 = process.env.NODE_ENV === "production" ? {
|
|
|
172
177
|
} : {
|
|
173
178
|
name: "mnd5nn-EnvironmentSwitcher",
|
|
174
179
|
styles: "width:206px;label:EnvironmentSwitcher;",
|
|
175
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozL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1hcCgoeyBvcHRpb25zIH0pID0+IG9wdGlvbnMpXG4gICAgICAgICAgLmZsYXQoKVxuICAgICAgICAgIC5maW5kKCh7IHZhbHVlIH0pID0+IHZhbHVlID09PSBjdXJyZW50VVJMKT8udmFsdWVcbiAgICAgICk7XG4gICAgfVxuICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSByZWFjdC1ob29rcy9leGhhdXN0aXZlLWRlcHNcbiAgfSwgW10pO1xuXG4gIHJldHVybiAoXG4gICAgPFNwYWNpbmdzLklubGluZSBhbGlnbkl0ZW1zPVwiY2VudGVyXCI+XG4gICAgICA8VGV4dC5EZXRhaWw+RW52aXJvbm1lbnQ8L1RleHQuRGV0YWlsPlxuICAgICAgPGRpdlxuICAgICAgICBjc3M9e2Nzc2BcbiAgICAgICAgICB3aWR0aDogMjA2cHg7XG4gICAgICAgIGB9XG4gICAgICA+
|
|
180
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVudmlyb25tZW50LXN3aXRjaGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFnQ2dCIiwiZmlsZSI6ImVudmlyb25tZW50LXN3aXRjaGVyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHVzZUVmZmVjdCwgdXNlU3RhdGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyBTZWxlY3RJbnB1dCwgU3BhY2luZ3MsIFRleHQgfSBmcm9tICdAY29tbWVyY2V0b29scy1mcm9udGVuZC91aS1raXQnO1xuaW1wb3J0IHsgRU5WLCBMT0NBTF9FTlYsIFBSRVZJRVdfQlJBTkNIIH0gZnJvbSAnLi9jb25zdGFudHMnO1xuXG5jb25zdCBFbnZpcm9ubWVudFN3aXRjaGVyID0gKCkgPT4ge1xuICBjb25zdCBbdm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snZW52LXNlbGVjdG9yJ31cbiAgICAgICAgICBuYW1lPXsnZW52IHNlbGVjdG9yJ31cbiAgICAgICAgICBpc1NlYXJjaGFibGU9e3RydWV9XG4gICAgICAgICAgaG9yaXpvbnRhbENvbnN0cmFpbnQ9ezV9XG4gICAgICAgICAgbWVudVBvcnRhbFRhcmdldD17ZG9jdW1lbnQuYm9keX1cbiAgICAgICAgICBtZW51UG9ydGFsWkluZGV4PXszMDAwMH1cbiAgICAgICAgICBvbkNoYW5nZT17KGV2ZW50KSA9PiB7XG4gICAgICAgICAgICBzZXRWYWx1ZShldmVudC50YXJnZXQudmFsdWUgYXMgc3RyaW5nKTtcbiAgICAgICAgICAgIGlmIChldmVudC50YXJnZXQudmFsdWUpIHtcbiAgICAgICAgICAgICAgd2luZG93Lm9wZW4oZXZlbnQudGFyZ2V0LnZhbHVlIGFzIHN0cmluZywgJ19zZWxmJyk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfX1cbiAgICAgICAgICB2YWx1ZT17dmFsdWV9XG4gICAgICAgICAgb3B0aW9ucz17RU5WfVxuICAgICAgICAgIHNob3dPcHRpb25Hcm91cERpdmlkZXJcbiAgICAgICAgLz5cbiAgICAgIDwvZGl2PlxuICAgIDwvU3BhY2luZ3MuSW5saW5lPlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgRW52aXJvbm1lbnRTd2l0Y2hlcjtcbiJdfQ== */",
|
|
176
181
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
|
|
177
182
|
};
|
|
178
183
|
const EnvironmentSwitcher = () => {
|
|
@@ -214,7 +219,7 @@ const EnvironmentSwitcher = () => {
|
|
|
214
219
|
children: jsxRuntime.jsx(uiKit.SelectInput, {
|
|
215
220
|
id: 'env-selector',
|
|
216
221
|
name: 'env selector',
|
|
217
|
-
isSearchable:
|
|
222
|
+
isSearchable: true,
|
|
218
223
|
horizontalConstraint: 5,
|
|
219
224
|
menuPortalTarget: document.body,
|
|
220
225
|
menuPortalZIndex: 30000,
|
|
@@ -104,6 +104,11 @@ var config = {
|
|
|
104
104
|
url: "https://mc.northeurope.azure.escemo.com"
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
|
+
AzureUnitedStates: {
|
|
108
|
+
MerchantCenterFrontend: {
|
|
109
|
+
url: "https://mc.eastus.azure.commercetools.com"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
107
112
|
GoogleCloudPlatformAustralia: {
|
|
108
113
|
MerchantCenterFrontend: {
|
|
109
114
|
url: "https://mc.australia-southeast1.gcp.commercetools.com"
|
|
@@ -149,7 +154,7 @@ const getOptionsForEnvironment = (label, config) => {
|
|
|
149
154
|
};
|
|
150
155
|
const GCP = _filterInstanceProperty__default["default"](_context = [getOptionsForEnvironment('GCP Australia', config.GoogleCloudPlatformAustralia), getOptionsForEnvironment('GCP Europe', config.GoogleCloudPlatformEurope), getOptionsForEnvironment('GCP USA', config.GoogleCloudPlatformUnitedStates), getOptionsForEnvironment('GCP Europe (Staging)', config.GoogleCloudPlatformEuropeStaging)]).call(_context, nonNullable);
|
|
151
156
|
const AWS = _filterInstanceProperty__default["default"](_context2 = [getOptionsForEnvironment('AWS China', config.AmazonWebServicesChina), getOptionsForEnvironment('AWS Frankfurt', config.AmazonWebServicesFrankfurt), getOptionsForEnvironment('AWS Ohio', config.AmazonWebServicesOhio), getOptionsForEnvironment('AWS China (Staging)', config.AmazonWebServicesChinaStaging)]).call(_context2, nonNullable);
|
|
152
|
-
const Azure = _filterInstanceProperty__default["default"](_context3 = [getOptionsForEnvironment('Azure Europe (Staging)', config.AzureEuropeStaging)]).call(_context3, nonNullable);
|
|
157
|
+
const Azure = _filterInstanceProperty__default["default"](_context3 = [getOptionsForEnvironment('Azure Europe (Staging)', config.AzureEuropeStaging), getOptionsForEnvironment('Azure USA', config.AzureUnitedStates)]).call(_context3, nonNullable);
|
|
153
158
|
const PRIVATE = _filterInstanceProperty__default["default"](_context4 = [getOptionsForEnvironment('AWS AT&T', config.AmazonWebServicesATT), getOptionsForEnvironment('AWS Volkswagen', config.AmazonWebServicesVolkswagen), getOptionsForEnvironment('AWS Volkswagen (Staging)', config.AmazonWebServicesVolkswagenStaging)]).call(_context4, nonNullable);
|
|
154
159
|
const ENV = [{
|
|
155
160
|
options: GCP,
|
|
@@ -208,7 +213,7 @@ const EnvironmentSwitcher = () => {
|
|
|
208
213
|
children: jsxRuntime.jsx(uiKit.SelectInput, {
|
|
209
214
|
id: 'env-selector',
|
|
210
215
|
name: 'env selector',
|
|
211
|
-
isSearchable:
|
|
216
|
+
isSearchable: true,
|
|
212
217
|
horizontalConstraint: 5,
|
|
213
218
|
menuPortalTarget: document.body,
|
|
214
219
|
menuPortalZIndex: 30000,
|
|
@@ -78,6 +78,11 @@ var config = {
|
|
|
78
78
|
url: "https://mc.northeurope.azure.escemo.com"
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
|
+
AzureUnitedStates: {
|
|
82
|
+
MerchantCenterFrontend: {
|
|
83
|
+
url: "https://mc.eastus.azure.commercetools.com"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
81
86
|
GoogleCloudPlatformAustralia: {
|
|
82
87
|
MerchantCenterFrontend: {
|
|
83
88
|
url: "https://mc.australia-southeast1.gcp.commercetools.com"
|
|
@@ -123,7 +128,7 @@ const getOptionsForEnvironment = (label, config) => {
|
|
|
123
128
|
};
|
|
124
129
|
const GCP = _filterInstanceProperty(_context = [getOptionsForEnvironment('GCP Australia', config.GoogleCloudPlatformAustralia), getOptionsForEnvironment('GCP Europe', config.GoogleCloudPlatformEurope), getOptionsForEnvironment('GCP USA', config.GoogleCloudPlatformUnitedStates), getOptionsForEnvironment('GCP Europe (Staging)', config.GoogleCloudPlatformEuropeStaging)]).call(_context, nonNullable);
|
|
125
130
|
const AWS = _filterInstanceProperty(_context2 = [getOptionsForEnvironment('AWS China', config.AmazonWebServicesChina), getOptionsForEnvironment('AWS Frankfurt', config.AmazonWebServicesFrankfurt), getOptionsForEnvironment('AWS Ohio', config.AmazonWebServicesOhio), getOptionsForEnvironment('AWS China (Staging)', config.AmazonWebServicesChinaStaging)]).call(_context2, nonNullable);
|
|
126
|
-
const Azure = _filterInstanceProperty(_context3 = [getOptionsForEnvironment('Azure Europe (Staging)', config.AzureEuropeStaging)]).call(_context3, nonNullable);
|
|
131
|
+
const Azure = _filterInstanceProperty(_context3 = [getOptionsForEnvironment('Azure Europe (Staging)', config.AzureEuropeStaging), getOptionsForEnvironment('Azure USA', config.AzureUnitedStates)]).call(_context3, nonNullable);
|
|
127
132
|
const PRIVATE = _filterInstanceProperty(_context4 = [getOptionsForEnvironment('AWS AT&T', config.AmazonWebServicesATT), getOptionsForEnvironment('AWS Volkswagen', config.AmazonWebServicesVolkswagen), getOptionsForEnvironment('AWS Volkswagen (Staging)', config.AmazonWebServicesVolkswagenStaging)]).call(_context4, nonNullable);
|
|
128
133
|
const ENV = [{
|
|
129
134
|
options: GCP,
|
|
@@ -146,7 +151,7 @@ var _ref$5 = process.env.NODE_ENV === "production" ? {
|
|
|
146
151
|
} : {
|
|
147
152
|
name: "mnd5nn-EnvironmentSwitcher",
|
|
148
153
|
styles: "width:206px;label:EnvironmentSwitcher;",
|
|
149
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVudmlyb25tZW50LXN3aXRjaGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFnQ2dCIiwiZmlsZSI6ImVudmlyb25tZW50LXN3aXRjaGVyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHVzZUVmZmVjdCwgdXNlU3RhdGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyBTZWxlY3RJbnB1dCwgU3BhY2luZ3MsIFRleHQgfSBmcm9tICdAY29tbWVyY2V0b29scy1mcm9udGVuZC91aS1raXQnO1xua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0YWlsPlxuICAgICAgPGRpdlxuICAgICAgICBjc3M9e2Nzc2BcbiAgICAgICAgICB3aWR0aDogMjA2cHg7XG4gICAgICAgIGB9XG4gICAgICA+
|
|
154
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVudmlyb25tZW50LXN3aXRjaGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFnQ2dCIiwiZmlsZSI6ImVudmlyb25tZW50LXN3aXRjaGVyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHVzZUVmZmVjdCwgdXNlU3RhdGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyBTZWxlY3RJbnB1dCwgU3BhY2luZ3MsIFRleHQgfSBmcm9tICdAY29tbWVyY2V0b29scy1mcm9udGVuZC91aS1raXQnO1xuaW1wb3J0IHsgRU5WLCBMT0NBTF9FTlYsIFBSRVZJRVdfQlJBTkNIIH0gZnJvbSAnLi9jb25zdGFudHMnO1xuXG5jb25zdCBFbnZpcm9ubWVudFN3aXRjaGVyID0gKCkgPT4ge1xuICBjb25zdCBbdmFsdWUsIHNldFZhbHVlXSA9IHVzZVN0YXRlPHN0cmluZyB8IG51bGw+KCk7XG5cbiAgdXNlRWZmZWN0KCgpID0+IHtcbiAgICBjb25zdCBjdXJyZW50VVJMID0gd2luZG93Py5sb2NhdGlvbj8ub3JpZ2luO1xuICAgIGlmIChjdXJyZW50VVJMID09PSBMT0NBTF9FTlYudmFsdWUpIHtcbiAgICAgIEVOVlswXT8ub3B0aW9ucy51bnNoaWZ0KExPQ0FMX0VOVik7XG4gICAgfVxuICAgIGlmIChjdXJyZW50VVJMLmluY2x1ZGVzKCdwcmV2aWV3JykpIHtcbiAgICAgIEVOVlswXT8ub3B0aW9ucy51bnNoaWZ0KFBSRVZJRVdfQlJBTkNIKTtcbiAgICB9XG4gICAgaWYgKGN1cnJlbnRVUkwuaW5jbHVkZXMoJ3ByZXZpZXcnKSkge1xuICAgICAgc2V0VmFsdWUoJycpO1xuICAgIH0gZWxzZSB7XG4gICAgICBzZXRWYWx1ZShcbiAgICAgICAgRU5WLm1hcCgoeyBvcHRpb25zIH0pID0+IG9wdGlvbnMpXG4gICAgICAgICAgLmZsYXQoKVxuICAgICAgICAgIC5maW5kKCh7IHZhbHVlIH0pID0+IHZhbHVlID09PSBjdXJyZW50VVJMKT8udmFsdWVcbiAgICAgICk7XG4gICAgfVxuICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSByZWFjdC1ob29rcy9leGhhdXN0aXZlLWRlcHNcbiAgfSwgW10pO1xuXG4gIHJldHVybiAoXG4gICAgPFNwYWNpbmdzLklubGluZSBhbGlnbkl0ZW1zPVwiY2VudGVyXCI+XG4gICAgICA8VGV4dC5EZXRhaWw+RW52aXJvbm1lbnQ8L1RleHQuRGV0YWlsPlxuICAgICAgPGRpdlxuICAgICAgICBjc3M9e2Nzc2BcbiAgICAgICAgICB3aWR0aDogMjA2cHg7XG4gICAgICAgIGB9XG4gICAgICA+XG4gICAgICAgIDxTZWxlY3RJbnB1dFxuICAgICAgICAgIGlkPXsnZW52LXNlbGVjdG9yJ31cbiAgICAgICAgICBuYW1lPXsnZW52IHNlbGVjdG9yJ31cbiAgICAgICAgICBpc1NlYXJjaGFibGU9e3RydWV9XG4gICAgICAgICAgaG9yaXpvbnRhbENvbnN0cmFpbnQ9ezV9XG4gICAgICAgICAgbWVudVBvcnRhbFRhcmdldD17ZG9jdW1lbnQuYm9keX1cbiAgICAgICAgICBtZW51UG9ydGFsWkluZGV4PXszMDAwMH1cbiAgICAgICAgICBvbkNoYW5nZT17KGV2ZW50KSA9PiB7XG4gICAgICAgICAgICBzZXRWYWx1ZShldmVudC50YXJnZXQudmFsdWUgYXMgc3RyaW5nKTtcbiAgICAgICAgICAgIGlmIChldmVudC50YXJnZXQudmFsdWUpIHtcbiAgICAgICAgICAgICAgd2luZG93Lm9wZW4oZXZlbnQudGFyZ2V0LnZhbHVlIGFzIHN0cmluZywgJ19zZWxmJyk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfX1cbiAgICAgICAgICB2YWx1ZT17dmFsdWV9XG4gICAgICAgICAgb3B0aW9ucz17RU5WfVxuICAgICAgICAgIHNob3dPcHRpb25Hcm91cERpdmlkZXJcbiAgICAgICAgLz5cbiAgICAgIDwvZGl2PlxuICAgIDwvU3BhY2luZ3MuSW5saW5lPlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgRW52aXJvbm1lbnRTd2l0Y2hlcjtcbiJdfQ== */",
|
|
150
155
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
|
|
151
156
|
};
|
|
152
157
|
const EnvironmentSwitcher = () => {
|
|
@@ -188,7 +193,7 @@ const EnvironmentSwitcher = () => {
|
|
|
188
193
|
children: jsx(SelectInput, {
|
|
189
194
|
id: 'env-selector',
|
|
190
195
|
name: 'env selector',
|
|
191
|
-
isSearchable:
|
|
196
|
+
isSearchable: true,
|
|
192
197
|
horizontalConstraint: 5,
|
|
193
198
|
menuPortalTarget: document.body,
|
|
194
199
|
menuPortalZIndex: 30000,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/staff-bar",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
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",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"@babel/core": "^7.22.11",
|
|
18
18
|
"@babel/runtime": "^7.21.0",
|
|
19
19
|
"@babel/runtime-corejs3": "^7.21.0",
|
|
20
|
-
"@commercetools-frontend/application-components": "22.
|
|
21
|
-
"@commercetools-frontend/application-shell": "22.
|
|
22
|
-
"@commercetools-frontend/ui-kit": "19.
|
|
20
|
+
"@commercetools-frontend/application-components": "22.29.0",
|
|
21
|
+
"@commercetools-frontend/application-shell": "22.29.0",
|
|
22
|
+
"@commercetools-frontend/ui-kit": "19.7.0",
|
|
23
23
|
"@flopflip/types": "14.0.1",
|
|
24
24
|
"lodash": "4.17.21",
|
|
25
25
|
"prop-types": "15.8.1",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"typescript": "5.2.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@commercetools-frontend/application-shell-connectors": "22.
|
|
32
|
-
"@commercetools-frontend/constants": "22.
|
|
31
|
+
"@commercetools-frontend/application-shell-connectors": "22.29.0",
|
|
32
|
+
"@commercetools-frontend/constants": "22.29.0",
|
|
33
33
|
"@emotion/react": "^11.11.1",
|
|
34
|
-
"@manypkg/find-root": "2.2.
|
|
34
|
+
"@manypkg/find-root": "2.2.2",
|
|
35
35
|
"@types/react": "17.0.80",
|
|
36
36
|
"@types/react-dom": "17.0.25",
|
|
37
37
|
"@types/react-router-dom": "5.3.3",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"react": "17.0.2"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@commercetools-frontend/application-shell-connectors": "22.
|
|
44
|
-
"@commercetools-frontend/constants": "22.
|
|
43
|
+
"@commercetools-frontend/application-shell-connectors": "22.29.0",
|
|
44
|
+
"@commercetools-frontend/constants": "22.29.0",
|
|
45
45
|
"@emotion/react": "11.x",
|
|
46
46
|
"react": "17.x"
|
|
47
47
|
},
|