@commercetools-frontend/staff-bar 0.1.2 → 1.0.0
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.d.ts +1 -1
- 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 +0 -15
- package/dist/{staff-bar-97d34d2b.cjs.dev.js → staff-bar-0226f43e.cjs.dev.js} +2 -21
- package/dist/{staff-bar-52abd75c.cjs.prod.js → staff-bar-5a56b00a.cjs.prod.js} +2 -21
- package/dist/{staff-bar-39f94642.esm.js → staff-bar-5f9df5ec.esm.js} +2 -21
- package/package.json +9 -10
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./declarations/src/index";
|
|
1
|
+
export * from "./declarations/src/index.js";
|
|
2
2
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVyY2V0b29scy1mcm9udGVuZC1zdGFmZi1iYXIuY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuL2RlY2xhcmF0aW9ucy9zcmMvaW5kZXguZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9
|
|
@@ -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-0226f43e.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-5a56b00a.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-5f9df5ec.esm.js'));
|
|
60
60
|
function StaffBar(props) {
|
|
61
61
|
if (process.env.NODE_ENV === 'test' || window.Cypress && !window.sessionStorage?.enableStaffBarForCypress) {
|
|
62
62
|
return null;
|
|
@@ -24,21 +24,6 @@
|
|
|
24
24
|
"url": "https://mc.vw-stage.eu-central-1.aws.commercetools.com"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
-
"AzureEurope": {
|
|
28
|
-
"MerchantCenterFrontend": {
|
|
29
|
-
"url": "https://mc.germanywestcentral.azure.commercetools.com"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"AzureEuropeStaging": {
|
|
33
|
-
"MerchantCenterFrontend": {
|
|
34
|
-
"url": "https://mc.northeurope.azure.escemo.com"
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"AzureUnitedStates": {
|
|
38
|
-
"MerchantCenterFrontend": {
|
|
39
|
-
"url": "https://mc.eastus.azure.commercetools.com"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
27
|
"GoogleCloudPlatformAustralia": {
|
|
43
28
|
"MerchantCenterFrontend": {
|
|
44
29
|
"url": "https://mc.australia-southeast1.gcp.commercetools.com"
|
|
@@ -85,21 +85,6 @@ var config = {
|
|
|
85
85
|
url: "https://mc.vw-stage.eu-central-1.aws.commercetools.com"
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
|
-
AzureEurope: {
|
|
89
|
-
MerchantCenterFrontend: {
|
|
90
|
-
url: "https://mc.germanywestcentral.azure.commercetools.com"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
AzureEuropeStaging: {
|
|
94
|
-
MerchantCenterFrontend: {
|
|
95
|
-
url: "https://mc.northeurope.azure.escemo.com"
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
AzureUnitedStates: {
|
|
99
|
-
MerchantCenterFrontend: {
|
|
100
|
-
url: "https://mc.eastus.azure.commercetools.com"
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
88
|
GoogleCloudPlatformAustralia: {
|
|
104
89
|
MerchantCenterFrontend: {
|
|
105
90
|
url: "https://mc.australia-southeast1.gcp.commercetools.com"
|
|
@@ -124,7 +109,7 @@ var config = {
|
|
|
124
109
|
}
|
|
125
110
|
};
|
|
126
111
|
|
|
127
|
-
var _context, _context2, _context3
|
|
112
|
+
var _context, _context2, _context3;
|
|
128
113
|
const LOCAL_ENV = {
|
|
129
114
|
label: 'Local Dev',
|
|
130
115
|
value: 'http://localhost:3001'
|
|
@@ -147,17 +132,13 @@ const getOptionsForEnvironment = (label, config) => {
|
|
|
147
132
|
};
|
|
148
133
|
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);
|
|
149
134
|
const AWS = _filterInstanceProperty__default["default"](_context2 = [getOptionsForEnvironment('AWS EU', config.AmazonWebServicesEurope), getOptionsForEnvironment('AWS US', config.AmazonWebServicesUnitedStates)]).call(_context2, nonNullable);
|
|
150
|
-
const
|
|
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);
|
|
135
|
+
const PRIVATE = _filterInstanceProperty__default["default"](_context3 = [getOptionsForEnvironment('AWS AT&T', config.AmazonWebServicesATT), getOptionsForEnvironment('AWS Volkswagen', config.AmazonWebServicesVolkswagen), getOptionsForEnvironment('AWS Volkswagen (Staging)', config.AmazonWebServicesVolkswagenStaging)]).call(_context3, nonNullable);
|
|
152
136
|
const ENV = [{
|
|
153
137
|
options: GCP,
|
|
154
138
|
group: 'GCP'
|
|
155
139
|
}, {
|
|
156
140
|
options: AWS,
|
|
157
141
|
group: 'AWS'
|
|
158
|
-
}, {
|
|
159
|
-
options: Azure,
|
|
160
|
-
group: 'Azure'
|
|
161
142
|
}, {
|
|
162
143
|
options: PRIVATE,
|
|
163
144
|
group: 'Private'
|
|
@@ -85,21 +85,6 @@ var config = {
|
|
|
85
85
|
url: "https://mc.vw-stage.eu-central-1.aws.commercetools.com"
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
|
-
AzureEurope: {
|
|
89
|
-
MerchantCenterFrontend: {
|
|
90
|
-
url: "https://mc.germanywestcentral.azure.commercetools.com"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
AzureEuropeStaging: {
|
|
94
|
-
MerchantCenterFrontend: {
|
|
95
|
-
url: "https://mc.northeurope.azure.escemo.com"
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
AzureUnitedStates: {
|
|
99
|
-
MerchantCenterFrontend: {
|
|
100
|
-
url: "https://mc.eastus.azure.commercetools.com"
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
88
|
GoogleCloudPlatformAustralia: {
|
|
104
89
|
MerchantCenterFrontend: {
|
|
105
90
|
url: "https://mc.australia-southeast1.gcp.commercetools.com"
|
|
@@ -124,7 +109,7 @@ var config = {
|
|
|
124
109
|
}
|
|
125
110
|
};
|
|
126
111
|
|
|
127
|
-
var _context, _context2, _context3
|
|
112
|
+
var _context, _context2, _context3;
|
|
128
113
|
const LOCAL_ENV = {
|
|
129
114
|
label: 'Local Dev',
|
|
130
115
|
value: 'http://localhost:3001'
|
|
@@ -147,17 +132,13 @@ const getOptionsForEnvironment = (label, config) => {
|
|
|
147
132
|
};
|
|
148
133
|
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);
|
|
149
134
|
const AWS = _filterInstanceProperty__default["default"](_context2 = [getOptionsForEnvironment('AWS EU', config.AmazonWebServicesEurope), getOptionsForEnvironment('AWS US', config.AmazonWebServicesUnitedStates)]).call(_context2, nonNullable);
|
|
150
|
-
const
|
|
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);
|
|
135
|
+
const PRIVATE = _filterInstanceProperty__default["default"](_context3 = [getOptionsForEnvironment('AWS AT&T', config.AmazonWebServicesATT), getOptionsForEnvironment('AWS Volkswagen', config.AmazonWebServicesVolkswagen), getOptionsForEnvironment('AWS Volkswagen (Staging)', config.AmazonWebServicesVolkswagenStaging)]).call(_context3, nonNullable);
|
|
152
136
|
const ENV = [{
|
|
153
137
|
options: GCP,
|
|
154
138
|
group: 'GCP'
|
|
155
139
|
}, {
|
|
156
140
|
options: AWS,
|
|
157
141
|
group: 'AWS'
|
|
158
|
-
}, {
|
|
159
|
-
options: Azure,
|
|
160
|
-
group: 'Azure'
|
|
161
142
|
}, {
|
|
162
143
|
options: PRIVATE,
|
|
163
144
|
group: 'Private'
|
|
@@ -61,21 +61,6 @@ var config = {
|
|
|
61
61
|
url: "https://mc.vw-stage.eu-central-1.aws.commercetools.com"
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
|
-
AzureEurope: {
|
|
65
|
-
MerchantCenterFrontend: {
|
|
66
|
-
url: "https://mc.germanywestcentral.azure.commercetools.com"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
AzureEuropeStaging: {
|
|
70
|
-
MerchantCenterFrontend: {
|
|
71
|
-
url: "https://mc.northeurope.azure.escemo.com"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
AzureUnitedStates: {
|
|
75
|
-
MerchantCenterFrontend: {
|
|
76
|
-
url: "https://mc.eastus.azure.commercetools.com"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
64
|
GoogleCloudPlatformAustralia: {
|
|
80
65
|
MerchantCenterFrontend: {
|
|
81
66
|
url: "https://mc.australia-southeast1.gcp.commercetools.com"
|
|
@@ -100,7 +85,7 @@ var config = {
|
|
|
100
85
|
}
|
|
101
86
|
};
|
|
102
87
|
|
|
103
|
-
var _context, _context2, _context3
|
|
88
|
+
var _context, _context2, _context3;
|
|
104
89
|
const LOCAL_ENV = {
|
|
105
90
|
label: 'Local Dev',
|
|
106
91
|
value: 'http://localhost:3001'
|
|
@@ -123,17 +108,13 @@ const getOptionsForEnvironment = (label, config) => {
|
|
|
123
108
|
};
|
|
124
109
|
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
110
|
const AWS = _filterInstanceProperty(_context2 = [getOptionsForEnvironment('AWS EU', config.AmazonWebServicesEurope), getOptionsForEnvironment('AWS US', config.AmazonWebServicesUnitedStates)]).call(_context2, nonNullable);
|
|
126
|
-
const
|
|
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);
|
|
111
|
+
const PRIVATE = _filterInstanceProperty(_context3 = [getOptionsForEnvironment('AWS AT&T', config.AmazonWebServicesATT), getOptionsForEnvironment('AWS Volkswagen', config.AmazonWebServicesVolkswagen), getOptionsForEnvironment('AWS Volkswagen (Staging)', config.AmazonWebServicesVolkswagenStaging)]).call(_context3, nonNullable);
|
|
128
112
|
const ENV = [{
|
|
129
113
|
options: GCP,
|
|
130
114
|
group: 'GCP'
|
|
131
115
|
}, {
|
|
132
116
|
options: AWS,
|
|
133
117
|
group: 'AWS'
|
|
134
|
-
}, {
|
|
135
|
-
options: Azure,
|
|
136
|
-
group: 'Azure'
|
|
137
118
|
}, {
|
|
138
119
|
options: PRIVATE,
|
|
139
120
|
group: 'Private'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/staff-bar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
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",
|
|
@@ -15,11 +15,10 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@apollo/client": "3.7.10",
|
|
17
17
|
"@babel/core": "^7.22.11",
|
|
18
|
-
"@babel/runtime": "^7.21.0",
|
|
19
18
|
"@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.
|
|
19
|
+
"@commercetools-frontend/application-components": "npm:@commercetools-frontend/application-components@^22.37.0",
|
|
20
|
+
"@commercetools-frontend/application-shell": "npm:@commercetools-frontend/application-shell@^22.37.0",
|
|
21
|
+
"@commercetools-frontend/ui-kit": "npm:@commercetools-frontend/ui-kit@^19.22.0",
|
|
23
22
|
"@flopflip/types": "14.0.1",
|
|
24
23
|
"lodash": "4.17.21",
|
|
25
24
|
"prop-types": "15.8.1",
|
|
@@ -28,11 +27,11 @@
|
|
|
28
27
|
"typescript": "5.2.2"
|
|
29
28
|
},
|
|
30
29
|
"devDependencies": {
|
|
31
|
-
"@commercetools-frontend/application-shell-connectors": "22.
|
|
32
|
-
"@commercetools-frontend/constants": "22.
|
|
30
|
+
"@commercetools-frontend/application-shell-connectors": "22.37.0",
|
|
31
|
+
"@commercetools-frontend/constants": "22.37.0",
|
|
33
32
|
"@emotion/react": "11.13.3",
|
|
34
33
|
"@manypkg/find-root": "2.2.3",
|
|
35
|
-
"@types/react": "17.0.
|
|
34
|
+
"@types/react": "17.0.83",
|
|
36
35
|
"@types/react-dom": "17.0.25",
|
|
37
36
|
"@types/react-router-dom": "5.3.3",
|
|
38
37
|
"prettier": "2.8.8",
|
|
@@ -40,8 +39,8 @@
|
|
|
40
39
|
"react": "17.0.2"
|
|
41
40
|
},
|
|
42
41
|
"peerDependencies": {
|
|
43
|
-
"@commercetools-frontend/application-shell-connectors": "^22.
|
|
44
|
-
"@commercetools-frontend/constants": "^22.
|
|
42
|
+
"@commercetools-frontend/application-shell-connectors": "^22.37.0",
|
|
43
|
+
"@commercetools-frontend/constants": "^22.37.0",
|
|
45
44
|
"@emotion/react": "11.x",
|
|
46
45
|
"react": "17.x"
|
|
47
46
|
},
|