@commercetools-frontend/staff-bar 0.1.0 → 0.1.2
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 +4 -3
- package/dist/{staff-bar-de09c0ab.esm.js → staff-bar-39f94642.esm.js} +5 -3
- package/dist/{staff-bar-570552b8.cjs.prod.js → staff-bar-52abd75c.cjs.prod.js} +5 -3
- package/dist/{staff-bar-bff87562.cjs.dev.js → staff-bar-97d34d2b.cjs.dev.js} +5 -3
- package/package.json +8 -8
- package/scripts/generate-environments-config.mjs +6 -8
|
@@ -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-97d34d2b.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-52abd75c.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-39f94642.esm.js'));
|
|
60
60
|
function StaffBar(props) {
|
|
61
61
|
if (process.env.NODE_ENV === 'test' || window.Cypress && !window.sessionStorage?.enableStaffBarForCypress) {
|
|
62
62
|
return null;
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
"url": "https://mc.att.us-east-1.aws.commercetools.com"
|
|
5
5
|
}
|
|
6
6
|
},
|
|
7
|
-
"
|
|
7
|
+
"AmazonWebServicesEurope": {
|
|
8
8
|
"MerchantCenterFrontend": {
|
|
9
9
|
"url": "https://mc.eu-central-1.aws.commercetools.com"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
|
-
"
|
|
12
|
+
"AmazonWebServicesUnitedStates": {
|
|
13
13
|
"MerchantCenterFrontend": {
|
|
14
14
|
"url": "https://mc.us-east-2.aws.commercetools.com"
|
|
15
15
|
}
|
|
@@ -58,5 +58,6 @@
|
|
|
58
58
|
"MerchantCenterFrontend": {
|
|
59
59
|
"url": "https://mc.us-central1.gcp.commercetools.com"
|
|
60
60
|
}
|
|
61
|
-
}
|
|
61
|
+
},
|
|
62
|
+
"default": {}
|
|
62
63
|
}
|
|
@@ -41,12 +41,12 @@ var config = {
|
|
|
41
41
|
url: "https://mc.att.us-east-1.aws.commercetools.com"
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
|
-
|
|
44
|
+
AmazonWebServicesEurope: {
|
|
45
45
|
MerchantCenterFrontend: {
|
|
46
46
|
url: "https://mc.eu-central-1.aws.commercetools.com"
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
|
|
49
|
+
AmazonWebServicesUnitedStates: {
|
|
50
50
|
MerchantCenterFrontend: {
|
|
51
51
|
url: "https://mc.us-east-2.aws.commercetools.com"
|
|
52
52
|
}
|
|
@@ -95,6 +95,8 @@ var config = {
|
|
|
95
95
|
MerchantCenterFrontend: {
|
|
96
96
|
url: "https://mc.us-central1.gcp.commercetools.com"
|
|
97
97
|
}
|
|
98
|
+
},
|
|
99
|
+
"default": {
|
|
98
100
|
}
|
|
99
101
|
};
|
|
100
102
|
|
|
@@ -120,7 +122,7 @@ const getOptionsForEnvironment = (label, config) => {
|
|
|
120
122
|
};
|
|
121
123
|
};
|
|
122
124
|
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);
|
|
123
|
-
const AWS = _filterInstanceProperty(_context2 = [getOptionsForEnvironment('AWS
|
|
125
|
+
const AWS = _filterInstanceProperty(_context2 = [getOptionsForEnvironment('AWS EU', config.AmazonWebServicesEurope), getOptionsForEnvironment('AWS US', config.AmazonWebServicesUnitedStates)]).call(_context2, nonNullable);
|
|
124
126
|
const Azure = _filterInstanceProperty(_context3 = [getOptionsForEnvironment('Azure Europe (Staging)', config.AzureEuropeStaging), getOptionsForEnvironment('Azure USA', config.AzureUnitedStates), getOptionsForEnvironment('Azure Europe', config.AzureEurope)]).call(_context3, nonNullable);
|
|
125
127
|
const PRIVATE = _filterInstanceProperty(_context4 = [getOptionsForEnvironment('AWS AT&T', config.AmazonWebServicesATT), getOptionsForEnvironment('AWS Volkswagen', config.AmazonWebServicesVolkswagen), getOptionsForEnvironment('AWS Volkswagen (Staging)', config.AmazonWebServicesVolkswagenStaging)]).call(_context4, nonNullable);
|
|
126
128
|
const ENV = [{
|
|
@@ -65,12 +65,12 @@ var config = {
|
|
|
65
65
|
url: "https://mc.att.us-east-1.aws.commercetools.com"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
|
|
68
|
+
AmazonWebServicesEurope: {
|
|
69
69
|
MerchantCenterFrontend: {
|
|
70
70
|
url: "https://mc.eu-central-1.aws.commercetools.com"
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
|
-
|
|
73
|
+
AmazonWebServicesUnitedStates: {
|
|
74
74
|
MerchantCenterFrontend: {
|
|
75
75
|
url: "https://mc.us-east-2.aws.commercetools.com"
|
|
76
76
|
}
|
|
@@ -119,6 +119,8 @@ var config = {
|
|
|
119
119
|
MerchantCenterFrontend: {
|
|
120
120
|
url: "https://mc.us-central1.gcp.commercetools.com"
|
|
121
121
|
}
|
|
122
|
+
},
|
|
123
|
+
"default": {
|
|
122
124
|
}
|
|
123
125
|
};
|
|
124
126
|
|
|
@@ -144,7 +146,7 @@ const getOptionsForEnvironment = (label, config) => {
|
|
|
144
146
|
};
|
|
145
147
|
};
|
|
146
148
|
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);
|
|
147
|
-
const AWS = _filterInstanceProperty__default["default"](_context2 = [getOptionsForEnvironment('AWS
|
|
149
|
+
const AWS = _filterInstanceProperty__default["default"](_context2 = [getOptionsForEnvironment('AWS EU', config.AmazonWebServicesEurope), getOptionsForEnvironment('AWS US', config.AmazonWebServicesUnitedStates)]).call(_context2, nonNullable);
|
|
148
150
|
const Azure = _filterInstanceProperty__default["default"](_context3 = [getOptionsForEnvironment('Azure Europe (Staging)', config.AzureEuropeStaging), getOptionsForEnvironment('Azure USA', config.AzureUnitedStates), getOptionsForEnvironment('Azure Europe', config.AzureEurope)]).call(_context3, nonNullable);
|
|
149
151
|
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);
|
|
150
152
|
const ENV = [{
|
|
@@ -65,12 +65,12 @@ var config = {
|
|
|
65
65
|
url: "https://mc.att.us-east-1.aws.commercetools.com"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
|
|
68
|
+
AmazonWebServicesEurope: {
|
|
69
69
|
MerchantCenterFrontend: {
|
|
70
70
|
url: "https://mc.eu-central-1.aws.commercetools.com"
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
|
-
|
|
73
|
+
AmazonWebServicesUnitedStates: {
|
|
74
74
|
MerchantCenterFrontend: {
|
|
75
75
|
url: "https://mc.us-east-2.aws.commercetools.com"
|
|
76
76
|
}
|
|
@@ -119,6 +119,8 @@ var config = {
|
|
|
119
119
|
MerchantCenterFrontend: {
|
|
120
120
|
url: "https://mc.us-central1.gcp.commercetools.com"
|
|
121
121
|
}
|
|
122
|
+
},
|
|
123
|
+
"default": {
|
|
122
124
|
}
|
|
123
125
|
};
|
|
124
126
|
|
|
@@ -144,7 +146,7 @@ const getOptionsForEnvironment = (label, config) => {
|
|
|
144
146
|
};
|
|
145
147
|
};
|
|
146
148
|
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);
|
|
147
|
-
const AWS = _filterInstanceProperty__default["default"](_context2 = [getOptionsForEnvironment('AWS
|
|
149
|
+
const AWS = _filterInstanceProperty__default["default"](_context2 = [getOptionsForEnvironment('AWS EU', config.AmazonWebServicesEurope), getOptionsForEnvironment('AWS US', config.AmazonWebServicesUnitedStates)]).call(_context2, nonNullable);
|
|
148
150
|
const Azure = _filterInstanceProperty__default["default"](_context3 = [getOptionsForEnvironment('Azure Europe (Staging)', config.AzureEuropeStaging), getOptionsForEnvironment('Azure USA', config.AzureUnitedStates), getOptionsForEnvironment('Azure Europe', config.AzureEurope)]).call(_context3, nonNullable);
|
|
149
151
|
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);
|
|
150
152
|
const ENV = [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/staff-bar",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
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": "npm:@commercetools-frontend/application-components@^22.
|
|
21
|
-
"@commercetools-frontend/application-shell": "npm:@commercetools-frontend/application-shell@^22.
|
|
22
|
-
"@commercetools-frontend/ui-kit": "npm:@commercetools-frontend/ui-kit@^19.
|
|
20
|
+
"@commercetools-frontend/application-components": "npm:@commercetools-frontend/application-components@^22.35.0",
|
|
21
|
+
"@commercetools-frontend/application-shell": "npm:@commercetools-frontend/application-shell@^22.35.0",
|
|
22
|
+
"@commercetools-frontend/ui-kit": "npm:@commercetools-frontend/ui-kit@^19.13.0",
|
|
23
23
|
"@flopflip/types": "14.0.1",
|
|
24
24
|
"lodash": "4.17.21",
|
|
25
25
|
"prop-types": "15.8.1",
|
|
@@ -28,8 +28,8 @@
|
|
|
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.35.0",
|
|
32
|
+
"@commercetools-frontend/constants": "22.35.0",
|
|
33
33
|
"@emotion/react": "11.13.3",
|
|
34
34
|
"@manypkg/find-root": "2.2.3",
|
|
35
35
|
"@types/react": "17.0.80",
|
|
@@ -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.35.0",
|
|
44
|
+
"@commercetools-frontend/constants": "^22.35.0",
|
|
45
45
|
"@emotion/react": "11.x",
|
|
46
46
|
"react": "17.x"
|
|
47
47
|
},
|
|
@@ -19,14 +19,12 @@ async function run() {
|
|
|
19
19
|
const partialEnvironmentsConfig = Object.entries(
|
|
20
20
|
entireEnvironmentsConfig
|
|
21
21
|
).reduce((processedEnvs, [nextEnvName, nextEnvValue]) => {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
-
}
|
|
22
|
+
return {
|
|
23
|
+
...processedEnvs,
|
|
24
|
+
[nextEnvName]: {
|
|
25
|
+
MerchantCenterFrontend: nextEnvValue.MerchantCenterFrontend,
|
|
26
|
+
},
|
|
27
|
+
};
|
|
30
28
|
|
|
31
29
|
return processedEnvs;
|
|
32
30
|
}, {});
|