@commercetools-frontend/application-shell 22.37.0 → 22.38.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-application-shell.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-application-shell.esm.js +1 -1
- package/dist/{custom-view-dev-host-4ffa028a.esm.js → custom-view-dev-host-28296b93.esm.js} +1 -1
- package/dist/{custom-view-dev-host-b9b860f1.cjs.prod.js → custom-view-dev-host-c3553291.cjs.prod.js} +1 -1
- package/dist/{custom-view-dev-host-785f2683.cjs.dev.js → custom-view-dev-host-dc096f4b.cjs.dev.js} +1 -1
- package/dist/declarations/src/components/application-page-title/application-page-title.d.ts +2 -3
- package/dist/declarations/src/components/inject-reducers/inject-reducers.d.ts +2 -3
- package/dist/declarations/src/components/navbar/menu-items.d.ts +3 -5
- package/dist/{error-apologizer-84dc825c.cjs.prod.js → error-apologizer-1f6f7df4.cjs.prod.js} +4 -4
- package/dist/{error-apologizer-f6793491.cjs.dev.js → error-apologizer-3c7ded7d.cjs.dev.js} +4 -4
- package/dist/{error-apologizer-76f087f4.esm.js → error-apologizer-8a4b7078.esm.js} +4 -4
- package/dist/{index-5e00785a.cjs.dev.js → index-4d2cd8af.cjs.dev.js} +38 -45
- package/dist/{index-937169c0.cjs.prod.js → index-658a8571.cjs.prod.js} +38 -45
- package/dist/{index-bdd71e4c.esm.js → index-b8d7b0f7.esm.js} +38 -45
- package/dist/{navbar-1465f182.cjs.prod.js → navbar-471b2d55.cjs.prod.js} +25 -21
- package/dist/{navbar-62d10e1c.cjs.dev.js → navbar-4b46fe69.cjs.dev.js} +28 -24
- package/dist/{navbar-7b53adec.esm.js → navbar-7bdb6674.esm.js} +28 -24
- package/dist/{oidc-callback-88818ecc.cjs.dev.js → oidc-callback-145f9bfd.cjs.dev.js} +1 -1
- package/dist/{oidc-callback-4dc1c13f.esm.js → oidc-callback-6930da2f.esm.js} +1 -1
- package/dist/{oidc-callback-75bd9ce0.cjs.prod.js → oidc-callback-d181b6b4.cjs.prod.js} +1 -1
- package/dist/{project-container-0a3ddb21.cjs.prod.js → project-container-3751ad22.cjs.prod.js} +12 -15
- package/dist/{project-container-f3698c44.cjs.dev.js → project-container-4324878f.cjs.dev.js} +12 -15
- package/dist/{project-container-ac9ffbf7.esm.js → project-container-c811c1fb.esm.js} +12 -15
- package/dist/{project-expired-7d2fab4d.cjs.dev.js → project-expired-573cb808.cjs.dev.js} +6 -6
- package/dist/{project-expired-054375d0.esm.js → project-expired-94f17c78.esm.js} +6 -6
- package/dist/{project-expired-25c363cd.cjs.prod.js → project-expired-ea81591f.cjs.prod.js} +6 -6
- package/dist/{project-not-found-f488a2e1.cjs.dev.js → project-not-found-5e4d9b8e.cjs.dev.js} +8 -8
- package/dist/{project-not-found-555741b8.cjs.prod.js → project-not-found-65f14725.cjs.prod.js} +8 -8
- package/dist/{project-not-found-e3a64bcc.esm.js → project-not-found-e8dc2e03.esm.js} +8 -8
- package/dist/{project-not-initialized-3e7cb9fb.esm.js → project-not-initialized-1e6886b0.esm.js} +6 -6
- package/dist/{project-not-initialized-11f193fe.cjs.dev.js → project-not-initialized-41623b2a.cjs.dev.js} +6 -6
- package/dist/{project-not-initialized-4932ab18.cjs.prod.js → project-not-initialized-7d020d44.cjs.prod.js} +6 -6
- package/dist/{project-suspended-5e840d00.cjs.dev.js → project-suspended-6c0fdc26.cjs.dev.js} +8 -8
- package/dist/{project-suspended-1340f99e.cjs.prod.js → project-suspended-bd697466.cjs.prod.js} +8 -8
- package/dist/{project-suspended-5a8b040e.esm.js → project-suspended-f1951de9.esm.js} +8 -8
- package/dist/{quick-access-59946146.cjs.dev.js → quick-access-249a0084.cjs.dev.js} +123 -123
- package/dist/{quick-access-ef9f6828.esm.js → quick-access-4fe70e35.esm.js} +123 -123
- package/dist/{quick-access-b183c7bd.cjs.prod.js → quick-access-91e915f9.cjs.prod.js} +123 -123
- package/dist/{redirect-to-logout-0f4a8317.cjs.dev.js → redirect-to-logout-339b312b.cjs.dev.js} +1 -1
- package/dist/{redirect-to-logout-ddf6cdac.esm.js → redirect-to-logout-384d200e.esm.js} +1 -1
- package/dist/{redirect-to-logout-4f59c9b7.cjs.prod.js → redirect-to-logout-923481be.cjs.prod.js} +1 -1
- package/dist/{requests-in-flight-loader-28b03925.cjs.dev.js → requests-in-flight-loader-37572fc9.cjs.dev.js} +3 -4
- package/dist/{requests-in-flight-loader-4f45b8ce.cjs.prod.js → requests-in-flight-loader-6623cdb0.cjs.prod.js} +3 -4
- package/dist/{requests-in-flight-loader-c8b1d4e1.esm.js → requests-in-flight-loader-fdb9c655.esm.js} +3 -4
- package/dist/{service-page-project-switcher-5fb3181e.cjs.prod.js → service-page-project-switcher-89ced286.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-66a1d372.cjs.dev.js → service-page-project-switcher-a7386e47.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-da22aefc.esm.js → service-page-project-switcher-c6e2df4d.esm.js} +1 -1
- package/dist/{user-settings-menu-dc94ceb2.esm.js → user-settings-menu-15c0d82b.esm.js} +12 -18
- package/dist/{user-settings-menu-a0813186.cjs.dev.js → user-settings-menu-4ff11354.cjs.dev.js} +12 -18
- package/dist/{user-settings-menu-ead5fed2.cjs.prod.js → user-settings-menu-9c195d53.cjs.prod.js} +12 -18
- package/package.json +17 -17
|
@@ -111,9 +111,9 @@ var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
|
|
|
111
111
|
var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
|
|
112
112
|
|
|
113
113
|
// NOTE: This string will be replaced on build time with the package version.
|
|
114
|
-
var version = "22.
|
|
114
|
+
var version = "22.38.0";
|
|
115
115
|
|
|
116
|
-
const RequestsInFlightLoader = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./requests-in-flight-loader-
|
|
116
|
+
const RequestsInFlightLoader = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./requests-in-flight-loader-6623cdb0.cjs.prod.js' /* webpackChunkName: "requests-in-flight-loader" */); }));
|
|
117
117
|
|
|
118
118
|
// Attempt to load the `projectKey` from localStorage
|
|
119
119
|
function selectProjectKeyFromLocalStorage() {
|
|
@@ -129,8 +129,8 @@ const getPreviousProjectKey = defaultProjectKeyOfUser => {
|
|
|
129
129
|
|
|
130
130
|
var messages$1 = reactIntl.defineMessages({
|
|
131
131
|
backToProjectLink: {
|
|
132
|
-
id:
|
|
133
|
-
defaultMessage:
|
|
132
|
+
id: "AppBar.backToProjectLink",
|
|
133
|
+
defaultMessage: "Back to project"
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
|
|
@@ -228,40 +228,35 @@ LoadingPlaceholder.displayName = 'LoadingPlaceholder';
|
|
|
228
228
|
|
|
229
229
|
var messages = reactIntl.defineMessages({
|
|
230
230
|
projectsLabel: {
|
|
231
|
-
id:
|
|
232
|
-
|
|
233
|
-
defaultMessage: 'Projects'
|
|
231
|
+
id: "ProjectSwitcher.projectsLabel",
|
|
232
|
+
defaultMessage: "Projects"
|
|
234
233
|
},
|
|
235
234
|
searchPlaceholder: {
|
|
236
|
-
id:
|
|
237
|
-
|
|
238
|
-
defaultMessage: 'Search for a project'
|
|
235
|
+
id: "ProjectSwitcher.searchPlaceholder",
|
|
236
|
+
defaultMessage: "Search for a project"
|
|
239
237
|
},
|
|
240
238
|
noResults: {
|
|
241
|
-
id:
|
|
242
|
-
|
|
243
|
-
defaultMessage: 'Sorry, but there are no projects that match your search.'
|
|
239
|
+
id: "ProjectSwitcher.noResults",
|
|
240
|
+
defaultMessage: "Sorry, but there are no projects that match your search."
|
|
244
241
|
},
|
|
245
242
|
suspended: {
|
|
246
|
-
id:
|
|
247
|
-
|
|
248
|
-
defaultMessage: 'Suspended'
|
|
243
|
+
id: "ProjectSwitcher.suspended",
|
|
244
|
+
defaultMessage: "Suspended"
|
|
249
245
|
},
|
|
250
246
|
expired: {
|
|
251
|
-
id:
|
|
252
|
-
|
|
253
|
-
defaultMessage: 'Expired'
|
|
247
|
+
id: "ProjectSwitcher.expired",
|
|
248
|
+
defaultMessage: "Expired"
|
|
254
249
|
}
|
|
255
250
|
});
|
|
256
251
|
|
|
257
|
-
const _excluded = ["children"];
|
|
252
|
+
const _excluded$1 = ["children"];
|
|
258
253
|
function ownKeys$8(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; }
|
|
259
254
|
function _objectSpread$8(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$8(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$8(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
260
255
|
var ProjectsQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchUserProjects" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", alias: { kind: "Name", value: "user" }, name: { kind: "Name", value: "me" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "projects" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "suspension" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "isActive" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "expiry" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "isActive" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "isProductionProject" }, arguments: [], directives: [] }] } }] } }] } }] } }], loc: { start: 0, end: 258, source: { body: "query FetchUserProjects {\n user: me {\n id\n projects {\n total\n results {\n name\n key\n suspension {\n isActive\n }\n expiry {\n isActive\n }\n isProductionProject\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
261
256
|
const PROJECT_SWITCHER_LABEL_ID = 'project-switcher-label';
|
|
262
257
|
const ValueContainer = _ref2 => {
|
|
263
258
|
let children = _ref2.children,
|
|
264
|
-
restProps = _objectWithoutProperties(_ref2, _excluded);
|
|
259
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$1);
|
|
265
260
|
return jsxRuntime.jsx(Text__default["default"].Body, {
|
|
266
261
|
fontWeight: "medium",
|
|
267
262
|
as: "span",
|
|
@@ -393,7 +388,7 @@ ProjectSwitcher.displayName = 'ProjectSwitcher';
|
|
|
393
388
|
// eslint-disable-next-line import/prefer-default-export
|
|
394
389
|
const REQUESTS_IN_FLIGHT_LOADER_DOM_ID = 'loader-for-requests-in-flight';
|
|
395
390
|
|
|
396
|
-
const UserSettingsMenu = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./user-settings-menu-
|
|
391
|
+
const UserSettingsMenu = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./user-settings-menu-9c195d53.cjs.prod.js' /* webpackChunkName: "user-settings-menu" */); }));
|
|
397
392
|
|
|
398
393
|
var _ref$1 = {
|
|
399
394
|
name: "zjik7",
|
|
@@ -529,7 +524,7 @@ const ConfigureIntlProvider = props => {
|
|
|
529
524
|
ConfigureIntlProvider.propTypes = {};
|
|
530
525
|
ConfigureIntlProvider.displayName = 'ConfigureIntlProvider';
|
|
531
526
|
|
|
532
|
-
const ErrorApologizer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./error-apologizer-
|
|
527
|
+
const ErrorApologizer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./error-apologizer-1f6f7df4.cjs.prod.js' /* webpackChunkName: "error-apologizer" */); }));
|
|
533
528
|
|
|
534
529
|
var ProjectQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchProject" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "projectKey" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "project" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "key" }, value: { kind: "Variable", name: { kind: "Name", value: "projectKey" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "version" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "countries" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "currencies" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "languages" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "initialized" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "expiry" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "isActive" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "daysLeft" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "suspension" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "isActive" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "reason" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "isProductionProject" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "allAppliedPermissions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedActionRights" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedDataFences" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "StoreDataFence" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "__typename" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "allPermissionsForAllApplications" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allAppliedPermissions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedActionRights" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedMenuVisibilities" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedDataFences" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "StoreDataFence" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "__typename" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "Field", name: { kind: "Name", value: "owner" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "sampleDataImportDataset" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "isUserAdminOfCurrentProject" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 1081, source: { body: "query FetchProject($projectKey: String) {\n project(key: $projectKey) {\n key\n version\n name\n countries\n currencies\n languages\n initialized\n expiry {\n isActive\n daysLeft\n }\n suspension {\n isActive\n reason\n }\n isProductionProject\n allAppliedPermissions {\n name\n value\n }\n allAppliedActionRights {\n group\n name\n value\n }\n allAppliedDataFences {\n ... on StoreDataFence {\n type\n name\n value\n group\n __typename\n }\n }\n allPermissionsForAllApplications {\n allAppliedPermissions {\n name\n value\n }\n allAppliedActionRights {\n group\n name\n value\n }\n allAppliedMenuVisibilities {\n name\n value\n }\n allAppliedDataFences {\n ... on StoreDataFence {\n type\n name\n value\n group\n __typename\n }\n }\n }\n owner {\n id\n name\n }\n sampleDataImportDataset\n isUserAdminOfCurrentProject\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
535
530
|
const FetchProject = props => {
|
|
@@ -585,9 +580,9 @@ FetchUser.propTypes = {
|
|
|
585
580
|
};
|
|
586
581
|
FetchUser.displayName = 'FetchUser';
|
|
587
582
|
|
|
588
|
-
const Navbar = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./navbar-
|
|
583
|
+
const Navbar = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./navbar-471b2d55.cjs.prod.js' /* webpackChunkName: "navbar" */); }));
|
|
589
584
|
|
|
590
|
-
const ProjectContainer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-container-
|
|
585
|
+
const ProjectContainer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-container-3751ad22.cjs.prod.js' /* webpackChunkName: "project-container" */); }));
|
|
591
586
|
|
|
592
587
|
const getSelectedDataLocaleForProject = projectLocales => {
|
|
593
588
|
const cachedDataLocale = window.localStorage.getItem(constants.STORAGE_KEYS.SELECTED_DATA_LOCALE);
|
|
@@ -699,7 +694,7 @@ var pimIndexerStates = {
|
|
|
699
694
|
NOT_INDEXED: 'NOT_INDEXED'
|
|
700
695
|
};
|
|
701
696
|
|
|
702
|
-
const QuickAccess = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./quick-access-
|
|
697
|
+
const QuickAccess = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./quick-access-91e915f9.cjs.prod.js' /* webpackChunkName: "quick-access" */); }));
|
|
703
698
|
const QuickAccessTrigger = props => {
|
|
704
699
|
const _useState = react.useState(false),
|
|
705
700
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -785,7 +780,7 @@ const QuickAccessTrigger = props => {
|
|
|
785
780
|
QuickAccessTrigger.propTypes = {};
|
|
786
781
|
QuickAccessTrigger.displayName = 'QuickAccessTrigger';
|
|
787
782
|
|
|
788
|
-
const RedirectToLogout = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-logout-
|
|
783
|
+
const RedirectToLogout = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-logout-923481be.cjs.prod.js' /* webpackChunkName: "redirect-to-logout" */); }));
|
|
789
784
|
|
|
790
785
|
const RedirectToProjectCreate = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-project-create-e4ff7797.cjs.prod.js' /* webpackChunkName: "redirect-to-project-create" */); }));
|
|
791
786
|
|
|
@@ -1197,9 +1192,6 @@ ApplicationShellAuthenticated.displayName = 'ApplicationShellAuthenticated';
|
|
|
1197
1192
|
|
|
1198
1193
|
const maxTitleCharLength = 24;
|
|
1199
1194
|
const staticPaths = ['account', 'login'];
|
|
1200
|
-
const defaultProps$1 = {
|
|
1201
|
-
additionalParts: []
|
|
1202
|
-
};
|
|
1203
1195
|
const getPageTitle = (pathname, additionalParts) => {
|
|
1204
1196
|
const _pathname$split = pathname.split('/'),
|
|
1205
1197
|
_pathname$split2 = _slicedToArray(_pathname$split, 3),
|
|
@@ -1216,19 +1208,20 @@ const getPageTitle = (pathname, additionalParts) => {
|
|
|
1216
1208
|
}
|
|
1217
1209
|
return [...(customTitleParts || []), entryPointUriPath, projectKeyOrStaticPath, 'Merchant Center'].join(' - ');
|
|
1218
1210
|
};
|
|
1219
|
-
const ApplicationPageTitle =
|
|
1211
|
+
const ApplicationPageTitle = _ref => {
|
|
1212
|
+
let _ref$additionalParts = _ref.additionalParts,
|
|
1213
|
+
additionalParts = _ref$additionalParts === void 0 ? [] : _ref$additionalParts;
|
|
1220
1214
|
const location = reactRouterDom.useLocation();
|
|
1221
1215
|
react.useLayoutEffect(() => {
|
|
1222
|
-
const pageTitle = getPageTitle(location.pathname,
|
|
1216
|
+
const pageTitle = getPageTitle(location.pathname, additionalParts);
|
|
1223
1217
|
document.title = pageTitle;
|
|
1224
|
-
}, [location.pathname,
|
|
1218
|
+
}, [location.pathname, additionalParts]);
|
|
1225
1219
|
return null;
|
|
1226
1220
|
};
|
|
1227
1221
|
ApplicationPageTitle.propTypes = {
|
|
1228
|
-
additionalParts: _pt__default["default"].arrayOf(_pt__default["default"].string)
|
|
1222
|
+
additionalParts: _pt__default["default"].arrayOf(_pt__default["default"].string)
|
|
1229
1223
|
};
|
|
1230
1224
|
ApplicationPageTitle.displayName = 'ApplicationPageTitle';
|
|
1231
|
-
ApplicationPageTitle.defaultProps = defaultProps$1;
|
|
1232
1225
|
|
|
1233
1226
|
function ownKeys$5(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; }
|
|
1234
1227
|
function _objectSpread$5(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$5(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$5(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
@@ -1371,7 +1364,7 @@ const hasCachedAuthenticationState = () => {
|
|
|
1371
1364
|
return window.localStorage.getItem(constants.STORAGE_KEYS.IS_AUTHENTICATED) === 'true';
|
|
1372
1365
|
};
|
|
1373
1366
|
|
|
1374
|
-
const OidcCallback = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./oidc-callback-
|
|
1367
|
+
const OidcCallback = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./oidc-callback-d181b6b4.cjs.prod.js' /* webpackChunkName: "oidc-callback" */); }));
|
|
1375
1368
|
|
|
1376
1369
|
function ownKeys$4(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; }
|
|
1377
1370
|
function _objectSpread$4(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$4(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$4(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
@@ -1582,7 +1575,7 @@ ApplicationShell.propTypes = {};
|
|
|
1582
1575
|
ApplicationShell.displayName = 'ApplicationShell';
|
|
1583
1576
|
ApplicationShell.version = version;
|
|
1584
1577
|
|
|
1585
|
-
const CustomViewDevHost = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./custom-view-dev-host-
|
|
1578
|
+
const CustomViewDevHost = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./custom-view-dev-host-c3553291.cjs.prod.js' /* webpackChunkName: "custom-view-dev-host" */); }));
|
|
1586
1579
|
|
|
1587
1580
|
function CustomViewFlopFlipProvider(props) {
|
|
1588
1581
|
const adapterArgs = react.useMemo(() => ({
|
|
@@ -1904,10 +1897,11 @@ const CustomViewShellWrapper = props => {
|
|
|
1904
1897
|
};
|
|
1905
1898
|
CustomViewShellWrapper.propTypes = {};
|
|
1906
1899
|
|
|
1907
|
-
const
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1900
|
+
const _excluded = ["shouldCleanUpOnUnmount"];
|
|
1901
|
+
const InjectReducers = _ref => {
|
|
1902
|
+
let _ref$shouldCleanUpOnU = _ref.shouldCleanUpOnUnmount,
|
|
1903
|
+
shouldCleanUpOnUnmount = _ref$shouldCleanUpOnU === void 0 ? true : _ref$shouldCleanUpOnU,
|
|
1904
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
1911
1905
|
const _useState = react.useState(false),
|
|
1912
1906
|
_useState2 = _slicedToArray(_useState, 2),
|
|
1913
1907
|
areReducersInjected = _useState2[0],
|
|
@@ -1920,13 +1914,13 @@ const InjectReducers = props => {
|
|
|
1920
1914
|
});
|
|
1921
1915
|
setAreReducersInjected(true);
|
|
1922
1916
|
return () => {
|
|
1923
|
-
if (
|
|
1917
|
+
if (shouldCleanUpOnUnmount) {
|
|
1924
1918
|
store.removeReducers({
|
|
1925
1919
|
id: props.id
|
|
1926
1920
|
});
|
|
1927
1921
|
}
|
|
1928
1922
|
};
|
|
1929
|
-
}, [props.id, props.reducers,
|
|
1923
|
+
}, [props.id, props.reducers, shouldCleanUpOnUnmount, store]);
|
|
1930
1924
|
|
|
1931
1925
|
// Render children only when the plugin reducers have been injected
|
|
1932
1926
|
if (areReducersInjected) return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
@@ -1937,11 +1931,10 @@ const InjectReducers = props => {
|
|
|
1937
1931
|
InjectReducers.propTypes = {
|
|
1938
1932
|
id: _pt__default["default"].string.isRequired,
|
|
1939
1933
|
reducers: _pt__default["default"].any.isRequired,
|
|
1940
|
-
shouldCleanUpOnUnmount: _pt__default["default"].bool
|
|
1934
|
+
shouldCleanUpOnUnmount: _pt__default["default"].bool,
|
|
1941
1935
|
children: _pt__default["default"].node.isRequired
|
|
1942
1936
|
};
|
|
1943
1937
|
InjectReducers.displayName = 'InjectReducers';
|
|
1944
|
-
InjectReducers.defaultProps = defaultProps;
|
|
1945
1938
|
|
|
1946
1939
|
const errorMessageIgnoreList = [/ResizeObserver loop (limit exceeded|completed with undelivered notifications)/i];
|
|
1947
1940
|
|
|
@@ -71,9 +71,9 @@ import _someInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instanc
|
|
|
71
71
|
import { showUnexpectedErrorNotification } from '@commercetools-frontend/actions-global';
|
|
72
72
|
|
|
73
73
|
// NOTE: This string will be replaced on build time with the package version.
|
|
74
|
-
var version = "22.
|
|
74
|
+
var version = "22.38.0";
|
|
75
75
|
|
|
76
|
-
const RequestsInFlightLoader = /*#__PURE__*/lazy(() => import('./requests-in-flight-loader-
|
|
76
|
+
const RequestsInFlightLoader = /*#__PURE__*/lazy(() => import('./requests-in-flight-loader-fdb9c655.esm.js' /* webpackChunkName: "requests-in-flight-loader" */));
|
|
77
77
|
|
|
78
78
|
// Attempt to load the `projectKey` from localStorage
|
|
79
79
|
function selectProjectKeyFromLocalStorage() {
|
|
@@ -89,8 +89,8 @@ const getPreviousProjectKey = defaultProjectKeyOfUser => {
|
|
|
89
89
|
|
|
90
90
|
var messages$1 = defineMessages({
|
|
91
91
|
backToProjectLink: {
|
|
92
|
-
id:
|
|
93
|
-
defaultMessage:
|
|
92
|
+
id: "AppBar.backToProjectLink",
|
|
93
|
+
defaultMessage: "Back to project"
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
|
|
@@ -191,33 +191,28 @@ LoadingPlaceholder.displayName = 'LoadingPlaceholder';
|
|
|
191
191
|
|
|
192
192
|
var messages = defineMessages({
|
|
193
193
|
projectsLabel: {
|
|
194
|
-
id:
|
|
195
|
-
|
|
196
|
-
defaultMessage: 'Projects'
|
|
194
|
+
id: "ProjectSwitcher.projectsLabel",
|
|
195
|
+
defaultMessage: "Projects"
|
|
197
196
|
},
|
|
198
197
|
searchPlaceholder: {
|
|
199
|
-
id:
|
|
200
|
-
|
|
201
|
-
defaultMessage: 'Search for a project'
|
|
198
|
+
id: "ProjectSwitcher.searchPlaceholder",
|
|
199
|
+
defaultMessage: "Search for a project"
|
|
202
200
|
},
|
|
203
201
|
noResults: {
|
|
204
|
-
id:
|
|
205
|
-
|
|
206
|
-
defaultMessage: 'Sorry, but there are no projects that match your search.'
|
|
202
|
+
id: "ProjectSwitcher.noResults",
|
|
203
|
+
defaultMessage: "Sorry, but there are no projects that match your search."
|
|
207
204
|
},
|
|
208
205
|
suspended: {
|
|
209
|
-
id:
|
|
210
|
-
|
|
211
|
-
defaultMessage: 'Suspended'
|
|
206
|
+
id: "ProjectSwitcher.suspended",
|
|
207
|
+
defaultMessage: "Suspended"
|
|
212
208
|
},
|
|
213
209
|
expired: {
|
|
214
|
-
id:
|
|
215
|
-
|
|
216
|
-
defaultMessage: 'Expired'
|
|
210
|
+
id: "ProjectSwitcher.expired",
|
|
211
|
+
defaultMessage: "Expired"
|
|
217
212
|
}
|
|
218
213
|
});
|
|
219
214
|
|
|
220
|
-
const _excluded = ["children"];
|
|
215
|
+
const _excluded$1 = ["children"];
|
|
221
216
|
function ownKeys$8(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; }
|
|
222
217
|
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$8(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$8(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
223
218
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$4() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
@@ -225,7 +220,7 @@ var ProjectsQuery = { kind: "Document", definitions: [{ kind: "OperationDefiniti
|
|
|
225
220
|
const PROJECT_SWITCHER_LABEL_ID = 'project-switcher-label';
|
|
226
221
|
const ValueContainer = _ref2 => {
|
|
227
222
|
let children = _ref2.children,
|
|
228
|
-
restProps = _objectWithoutProperties(_ref2, _excluded);
|
|
223
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$1);
|
|
229
224
|
return jsx(Text.Body, {
|
|
230
225
|
fontWeight: "medium",
|
|
231
226
|
as: "span",
|
|
@@ -362,7 +357,7 @@ ProjectSwitcher.displayName = 'ProjectSwitcher';
|
|
|
362
357
|
// eslint-disable-next-line import/prefer-default-export
|
|
363
358
|
const REQUESTS_IN_FLIGHT_LOADER_DOM_ID = 'loader-for-requests-in-flight';
|
|
364
359
|
|
|
365
|
-
const UserSettingsMenu = /*#__PURE__*/lazy(() => import('./user-settings-menu-
|
|
360
|
+
const UserSettingsMenu = /*#__PURE__*/lazy(() => import('./user-settings-menu-15c0d82b.esm.js' /* webpackChunkName: "user-settings-menu" */));
|
|
366
361
|
|
|
367
362
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$3() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
368
363
|
var _ref$1 = process.env.NODE_ENV === "production" ? {
|
|
@@ -517,7 +512,7 @@ ConfigureIntlProvider.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
517
512
|
} : {};
|
|
518
513
|
ConfigureIntlProvider.displayName = 'ConfigureIntlProvider';
|
|
519
514
|
|
|
520
|
-
const ErrorApologizer = /*#__PURE__*/lazy(() => import('./error-apologizer-
|
|
515
|
+
const ErrorApologizer = /*#__PURE__*/lazy(() => import('./error-apologizer-8a4b7078.esm.js' /* webpackChunkName: "error-apologizer" */));
|
|
521
516
|
|
|
522
517
|
var ProjectQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchProject" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "projectKey" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "project" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "key" }, value: { kind: "Variable", name: { kind: "Name", value: "projectKey" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "version" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "countries" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "currencies" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "languages" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "initialized" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "expiry" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "isActive" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "daysLeft" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "suspension" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "isActive" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "reason" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "isProductionProject" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "allAppliedPermissions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedActionRights" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedDataFences" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "StoreDataFence" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "__typename" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "allPermissionsForAllApplications" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allAppliedPermissions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedActionRights" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedMenuVisibilities" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedDataFences" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "StoreDataFence" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "__typename" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "Field", name: { kind: "Name", value: "owner" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "sampleDataImportDataset" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "isUserAdminOfCurrentProject" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 1081, source: { body: "query FetchProject($projectKey: String) {\n project(key: $projectKey) {\n key\n version\n name\n countries\n currencies\n languages\n initialized\n expiry {\n isActive\n daysLeft\n }\n suspension {\n isActive\n reason\n }\n isProductionProject\n allAppliedPermissions {\n name\n value\n }\n allAppliedActionRights {\n group\n name\n value\n }\n allAppliedDataFences {\n ... on StoreDataFence {\n type\n name\n value\n group\n __typename\n }\n }\n allPermissionsForAllApplications {\n allAppliedPermissions {\n name\n value\n }\n allAppliedActionRights {\n group\n name\n value\n }\n allAppliedMenuVisibilities {\n name\n value\n }\n allAppliedDataFences {\n ... on StoreDataFence {\n type\n name\n value\n group\n __typename\n }\n }\n }\n owner {\n id\n name\n }\n sampleDataImportDataset\n isUserAdminOfCurrentProject\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
523
518
|
const FetchProject = props => {
|
|
@@ -573,9 +568,9 @@ FetchUser.propTypes = {
|
|
|
573
568
|
};
|
|
574
569
|
FetchUser.displayName = 'FetchUser';
|
|
575
570
|
|
|
576
|
-
const Navbar = /*#__PURE__*/lazy(() => import('./navbar-
|
|
571
|
+
const Navbar = /*#__PURE__*/lazy(() => import('./navbar-7bdb6674.esm.js' /* webpackChunkName: "navbar" */));
|
|
577
572
|
|
|
578
|
-
const ProjectContainer = /*#__PURE__*/lazy(() => import('./project-container-
|
|
573
|
+
const ProjectContainer = /*#__PURE__*/lazy(() => import('./project-container-c811c1fb.esm.js' /* webpackChunkName: "project-container" */));
|
|
579
574
|
|
|
580
575
|
const getSelectedDataLocaleForProject = projectLocales => {
|
|
581
576
|
const cachedDataLocale = window.localStorage.getItem(STORAGE_KEYS.SELECTED_DATA_LOCALE);
|
|
@@ -699,7 +694,7 @@ var pimIndexerStates = {
|
|
|
699
694
|
NOT_INDEXED: 'NOT_INDEXED'
|
|
700
695
|
};
|
|
701
696
|
|
|
702
|
-
const QuickAccess = /*#__PURE__*/lazy(() => import('./quick-access-
|
|
697
|
+
const QuickAccess = /*#__PURE__*/lazy(() => import('./quick-access-4fe70e35.esm.js' /* webpackChunkName: "quick-access" */));
|
|
703
698
|
const QuickAccessTrigger = props => {
|
|
704
699
|
const _useState = useState(false),
|
|
705
700
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -787,7 +782,7 @@ QuickAccessTrigger.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
787
782
|
} : {};
|
|
788
783
|
QuickAccessTrigger.displayName = 'QuickAccessTrigger';
|
|
789
784
|
|
|
790
|
-
const RedirectToLogout = /*#__PURE__*/lazy(() => import('./redirect-to-logout-
|
|
785
|
+
const RedirectToLogout = /*#__PURE__*/lazy(() => import('./redirect-to-logout-384d200e.esm.js' /* webpackChunkName: "redirect-to-logout" */));
|
|
791
786
|
|
|
792
787
|
const RedirectToProjectCreate = /*#__PURE__*/lazy(() => import('./redirect-to-project-create-9249e554.esm.js' /* webpackChunkName: "redirect-to-project-create" */));
|
|
793
788
|
|
|
@@ -1259,9 +1254,6 @@ ApplicationShellAuthenticated.displayName = 'ApplicationShellAuthenticated';
|
|
|
1259
1254
|
|
|
1260
1255
|
const maxTitleCharLength = 24;
|
|
1261
1256
|
const staticPaths = ['account', 'login'];
|
|
1262
|
-
const defaultProps$1 = {
|
|
1263
|
-
additionalParts: []
|
|
1264
|
-
};
|
|
1265
1257
|
const getPageTitle = (pathname, additionalParts) => {
|
|
1266
1258
|
const _pathname$split = pathname.split('/'),
|
|
1267
1259
|
_pathname$split2 = _slicedToArray(_pathname$split, 3),
|
|
@@ -1278,19 +1270,20 @@ const getPageTitle = (pathname, additionalParts) => {
|
|
|
1278
1270
|
}
|
|
1279
1271
|
return [...(customTitleParts || []), entryPointUriPath, projectKeyOrStaticPath, 'Merchant Center'].join(' - ');
|
|
1280
1272
|
};
|
|
1281
|
-
const ApplicationPageTitle =
|
|
1273
|
+
const ApplicationPageTitle = _ref => {
|
|
1274
|
+
let _ref$additionalParts = _ref.additionalParts,
|
|
1275
|
+
additionalParts = _ref$additionalParts === void 0 ? [] : _ref$additionalParts;
|
|
1282
1276
|
const location = useLocation();
|
|
1283
1277
|
useLayoutEffect(() => {
|
|
1284
|
-
const pageTitle = getPageTitle(location.pathname,
|
|
1278
|
+
const pageTitle = getPageTitle(location.pathname, additionalParts);
|
|
1285
1279
|
document.title = pageTitle;
|
|
1286
|
-
}, [location.pathname,
|
|
1280
|
+
}, [location.pathname, additionalParts]);
|
|
1287
1281
|
return null;
|
|
1288
1282
|
};
|
|
1289
1283
|
ApplicationPageTitle.propTypes = {
|
|
1290
|
-
additionalParts: _pt.arrayOf(_pt.string)
|
|
1284
|
+
additionalParts: _pt.arrayOf(_pt.string)
|
|
1291
1285
|
};
|
|
1292
1286
|
ApplicationPageTitle.displayName = 'ApplicationPageTitle';
|
|
1293
|
-
ApplicationPageTitle.defaultProps = defaultProps$1;
|
|
1294
1287
|
|
|
1295
1288
|
function ownKeys$5(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; }
|
|
1296
1289
|
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$5(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$5(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -1433,7 +1426,7 @@ const hasCachedAuthenticationState = () => {
|
|
|
1433
1426
|
return window.localStorage.getItem(STORAGE_KEYS.IS_AUTHENTICATED) === 'true';
|
|
1434
1427
|
};
|
|
1435
1428
|
|
|
1436
|
-
const OidcCallback = /*#__PURE__*/lazy(() => import('./oidc-callback-
|
|
1429
|
+
const OidcCallback = /*#__PURE__*/lazy(() => import('./oidc-callback-6930da2f.esm.js' /* webpackChunkName: "oidc-callback" */));
|
|
1437
1430
|
|
|
1438
1431
|
function ownKeys$4(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; }
|
|
1439
1432
|
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -1666,7 +1659,7 @@ ApplicationShell.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1666
1659
|
ApplicationShell.displayName = 'ApplicationShell';
|
|
1667
1660
|
ApplicationShell.version = version;
|
|
1668
1661
|
|
|
1669
|
-
const CustomViewDevHost = /*#__PURE__*/lazy(() => import('./custom-view-dev-host-
|
|
1662
|
+
const CustomViewDevHost = /*#__PURE__*/lazy(() => import('./custom-view-dev-host-28296b93.esm.js' /* webpackChunkName: "custom-view-dev-host" */));
|
|
1670
1663
|
|
|
1671
1664
|
function CustomViewFlopFlipProvider(props) {
|
|
1672
1665
|
const adapterArgs = useMemo(() => ({
|
|
@@ -2018,10 +2011,11 @@ CustomViewShellWrapper.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2018
2011
|
children: _pt.node.isRequired
|
|
2019
2012
|
} : {};
|
|
2020
2013
|
|
|
2021
|
-
const
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2014
|
+
const _excluded = ["shouldCleanUpOnUnmount"];
|
|
2015
|
+
const InjectReducers = _ref => {
|
|
2016
|
+
let _ref$shouldCleanUpOnU = _ref.shouldCleanUpOnUnmount,
|
|
2017
|
+
shouldCleanUpOnUnmount = _ref$shouldCleanUpOnU === void 0 ? true : _ref$shouldCleanUpOnU,
|
|
2018
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
2025
2019
|
const _useState = useState(false),
|
|
2026
2020
|
_useState2 = _slicedToArray(_useState, 2),
|
|
2027
2021
|
areReducersInjected = _useState2[0],
|
|
@@ -2034,13 +2028,13 @@ const InjectReducers = props => {
|
|
|
2034
2028
|
});
|
|
2035
2029
|
setAreReducersInjected(true);
|
|
2036
2030
|
return () => {
|
|
2037
|
-
if (
|
|
2031
|
+
if (shouldCleanUpOnUnmount) {
|
|
2038
2032
|
store.removeReducers({
|
|
2039
2033
|
id: props.id
|
|
2040
2034
|
});
|
|
2041
2035
|
}
|
|
2042
2036
|
};
|
|
2043
|
-
}, [props.id, props.reducers,
|
|
2037
|
+
}, [props.id, props.reducers, shouldCleanUpOnUnmount, store]);
|
|
2044
2038
|
|
|
2045
2039
|
// Render children only when the plugin reducers have been injected
|
|
2046
2040
|
if (areReducersInjected) return jsx(Fragment, {
|
|
@@ -2051,11 +2045,10 @@ const InjectReducers = props => {
|
|
|
2051
2045
|
InjectReducers.propTypes = {
|
|
2052
2046
|
id: _pt.string.isRequired,
|
|
2053
2047
|
reducers: _pt.any.isRequired,
|
|
2054
|
-
shouldCleanUpOnUnmount: _pt.bool
|
|
2048
|
+
shouldCleanUpOnUnmount: _pt.bool,
|
|
2055
2049
|
children: _pt.node.isRequired
|
|
2056
2050
|
};
|
|
2057
2051
|
InjectReducers.displayName = 'InjectReducers';
|
|
2058
|
-
InjectReducers.defaultProps = defaultProps;
|
|
2059
2052
|
|
|
2060
2053
|
const errorMessageIgnoreList = [/ResizeObserver loop (limit exceeded|completed with undelivered notifications)/i];
|
|
2061
2054
|
|
|
@@ -204,7 +204,9 @@ const Text = /*#__PURE__*/_styled__default["default"]("div", {
|
|
|
204
204
|
} )("font-weight:", designSystem.designTokens.fontWeight400, ";font-size:", designSystem.designTokens.fontSize20, ";line-height:", designSystem.designTokens.lineHeight20, ";width:100%;height:100%;" + ("" ));
|
|
205
205
|
const getMenuItemLinkStyles = isSubmenuLink => [isSubmenuLink && /*#__PURE__*/react.css("display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:", designSystem.designTokens.colorSolid, ";font-weight:", designSystem.designTokens.fontWeight600, ";text-decoration:none;flex:1;padding:", designSystem.designTokens.spacing25, " ", designSystem.designTokens.spacing25, " ", designSystem.designTokens.spacing25, " ", designSystem.designTokens.spacing30, ";transition:padding 150ms ease-out;" + ("" ), "" ), !isSubmenuLink && /*#__PURE__*/react.css("color:", designSystem.designTokens.colorNeutral, ";text-decoration:none;display:flex;padding:", designSystem.designTokens.spacing25, ";align-items:center;justify-content:center;" + ("" ), "" )];
|
|
206
206
|
|
|
207
|
-
const _excluded = ["icon"]
|
|
207
|
+
const _excluded = ["icon"],
|
|
208
|
+
_excluded2 = ["exactMatch"],
|
|
209
|
+
_excluded3 = ["permissions"];
|
|
208
210
|
function ownKeys$2(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; }
|
|
209
211
|
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$2(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$2(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
210
212
|
const HeartIcon = /*#__PURE__*/react$1.lazy(() => Promise.resolve().then(function () { return require('./heart-01f01038.cjs.prod.js'); }));
|
|
@@ -363,9 +365,6 @@ const MenuItem$1 = props => {
|
|
|
363
365
|
};
|
|
364
366
|
MenuItem$1.propTypes = {};
|
|
365
367
|
MenuItem$1.displayName = 'MenuItem';
|
|
366
|
-
const menuItemLinkDefaultProps = {
|
|
367
|
-
exactMatch: false
|
|
368
|
-
};
|
|
369
368
|
const NavLinkWrapper = props => {
|
|
370
369
|
const Wrapper = props.isSubmenuLink ? TextLinkSublistWrapper : react$1.Fragment;
|
|
371
370
|
return jsxRuntime.jsx(Wrapper, {
|
|
@@ -380,14 +379,19 @@ const NavLinkClickableContentWrapper = props => {
|
|
|
380
379
|
});
|
|
381
380
|
};
|
|
382
381
|
NavLinkClickableContentWrapper.propTypes = {};
|
|
383
|
-
const MenuItemLink =
|
|
382
|
+
const MenuItemLink = _ref3 => {
|
|
383
|
+
let _ref3$exactMatch = _ref3.exactMatch,
|
|
384
|
+
exactMatch = _ref3$exactMatch === void 0 ? false : _ref3$exactMatch,
|
|
385
|
+
props = _objectWithoutProperties(_ref3, _excluded2);
|
|
384
386
|
const redirectTo = targetUrl => location.location.replace(targetUrl);
|
|
385
387
|
if (props.linkTo) {
|
|
386
388
|
const linkLevel = props.isSubmenuLink ? 'text-link-sublist' : 'text-link';
|
|
387
|
-
return jsxRuntime.jsx(NavLinkWrapper, _objectSpread$2(_objectSpread$2({
|
|
389
|
+
return jsxRuntime.jsx(NavLinkWrapper, _objectSpread$2(_objectSpread$2({
|
|
390
|
+
exactMatch: exactMatch
|
|
391
|
+
}, props), {}, {
|
|
388
392
|
children: jsxRuntime.jsx(reactRouterDom.NavLink, {
|
|
389
393
|
to: props.linkTo,
|
|
390
|
-
exact:
|
|
394
|
+
exact: exactMatch,
|
|
391
395
|
activeClassName: "highlighted",
|
|
392
396
|
"data-link-level": linkLevel,
|
|
393
397
|
css: getMenuItemLinkStyles(Boolean(props.isSubmenuLink)),
|
|
@@ -401,7 +405,9 @@ const MenuItemLink = props => {
|
|
|
401
405
|
props.onClick(event);
|
|
402
406
|
}
|
|
403
407
|
},
|
|
404
|
-
children: jsxRuntime.jsx(NavLinkClickableContentWrapper, _objectSpread$2(_objectSpread$2({
|
|
408
|
+
children: jsxRuntime.jsx(NavLinkClickableContentWrapper, _objectSpread$2(_objectSpread$2({
|
|
409
|
+
exactMatch: exactMatch
|
|
410
|
+
}, props), {}, {
|
|
405
411
|
children: props.children
|
|
406
412
|
}))
|
|
407
413
|
})
|
|
@@ -413,21 +419,20 @@ const MenuItemLink = props => {
|
|
|
413
419
|
};
|
|
414
420
|
MenuItemLink.propTypes = {};
|
|
415
421
|
MenuItemLink.displayName = 'MenuItemLink';
|
|
416
|
-
MenuItemLink.defaultProps = menuItemLinkDefaultProps;
|
|
417
422
|
const isEveryMenuVisibilitySetToHidden = (menuVisibilities, namesOfMenuVisibilities) => _Array$isArray__default["default"](namesOfMenuVisibilities) && namesOfMenuVisibilities.length > 0 && _everyInstanceProperty__default["default"](namesOfMenuVisibilities).call(namesOfMenuVisibilities, nameOfMenuVisibility => menuVisibilities && menuVisibilities[nameOfMenuVisibility] === true);
|
|
418
|
-
const restrictedMenuItemDefaultProps = {
|
|
419
|
-
permissions: []
|
|
420
|
-
};
|
|
421
423
|
function isLongLivedFlag(flag) {
|
|
422
424
|
return typeof flag?.value === 'boolean';
|
|
423
425
|
}
|
|
424
|
-
const RestrictedMenuItem =
|
|
426
|
+
const RestrictedMenuItem = _ref4 => {
|
|
427
|
+
let _ref4$permissions = _ref4.permissions,
|
|
428
|
+
permissions$1 = _ref4$permissions === void 0 ? [] : _ref4$permissions,
|
|
429
|
+
props = _objectWithoutProperties(_ref4, _excluded3);
|
|
425
430
|
// NOTE: Custom application are activated/deactivated while their
|
|
426
431
|
// visibility is not controlled via a visibiility overwrite.
|
|
427
432
|
const flagVariation = reactBroadcast.useFlagVariation(props.featureToggle);
|
|
428
433
|
if (isEveryMenuVisibilitySetToHidden(props.menuVisibilities, props.namesOfMenuVisibilities)) return null;
|
|
429
|
-
const permissionsWrapper = _Array$isArray__default["default"](
|
|
430
|
-
permissions:
|
|
434
|
+
const permissionsWrapper = _Array$isArray__default["default"](permissions$1) && permissions$1.length > 0 || _Array$isArray__default["default"](props.dataFences) && props.dataFences.length > 0 ? jsxRuntime.jsx(permissions.RestrictedByPermissions, {
|
|
435
|
+
permissions: permissions$1,
|
|
431
436
|
actionRights: props.actionRights,
|
|
432
437
|
dataFences: props.dataFences,
|
|
433
438
|
selectDataFenceData: demandedDataFence => {
|
|
@@ -457,7 +462,6 @@ const RestrictedMenuItem = props => {
|
|
|
457
462
|
};
|
|
458
463
|
RestrictedMenuItem.propTypes = {};
|
|
459
464
|
RestrictedMenuItem.displayName = 'RestrictedMenuItem';
|
|
460
|
-
RestrictedMenuItem.defaultProps = restrictedMenuItemDefaultProps;
|
|
461
465
|
const MenuLabel = props => {
|
|
462
466
|
var _context;
|
|
463
467
|
const localizedLabel = _findInstanceProperty__default["default"](_context = props.labelAllLocales).call(_context, loc => {
|
|
@@ -513,8 +517,8 @@ ItemContainer.displayName = 'ItemContainer';
|
|
|
513
517
|
|
|
514
518
|
var messages = reactIntl.defineMessages({
|
|
515
519
|
'NavBar.MCSupport.title': {
|
|
516
|
-
id:
|
|
517
|
-
defaultMessage:
|
|
520
|
+
id: "NavBar.MCSupport.title",
|
|
521
|
+
defaultMessage: "Support"
|
|
518
522
|
}
|
|
519
523
|
});
|
|
520
524
|
|
|
@@ -561,9 +565,6 @@ const MenuItem = props => {
|
|
|
561
565
|
children: [jsxRuntime.jsx(MenuItemIcon, {}), props.isExpanded && jsxRuntime.jsx(MenuItemTitle, {})]
|
|
562
566
|
});
|
|
563
567
|
};
|
|
564
|
-
MenuItem.defaultProps = {
|
|
565
|
-
contentWidth: 'wide'
|
|
566
|
-
};
|
|
567
568
|
const NavBarSkeleton = props => {
|
|
568
569
|
var _context, _context2, _context3, _context4;
|
|
569
570
|
return jsxRuntime.jsxs(NavBarLayout, {
|
|
@@ -578,14 +579,17 @@ const NavBarSkeleton = props => {
|
|
|
578
579
|
}), jsxRuntime.jsxs(NavBarBody, {
|
|
579
580
|
children: [jsxRuntime.jsx(MenuItemGroup, {
|
|
580
581
|
children: _mapInstanceProperty__default["default"](_context = [..._keysInstanceProperty__default["default"](_context2 = Array(2)).call(_context2)]).call(_context, index => jsxRuntime.jsx(MenuItem, {
|
|
582
|
+
contentWidth: "wide",
|
|
581
583
|
isExpanded: props.isExpanded
|
|
582
584
|
}, index))
|
|
583
585
|
}), jsxRuntime.jsx(MenuItemGroup, {
|
|
584
586
|
children: _mapInstanceProperty__default["default"](_context3 = [..._keysInstanceProperty__default["default"](_context4 = Array(10)).call(_context4)]).call(_context3, index => jsxRuntime.jsx(MenuItem, {
|
|
587
|
+
contentWidth: "wide",
|
|
585
588
|
isExpanded: props.isExpanded
|
|
586
589
|
}, index))
|
|
587
590
|
}), jsxRuntime.jsx(MenuItemGroup, {
|
|
588
591
|
children: jsxRuntime.jsx(MenuItem, {
|
|
592
|
+
contentWidth: "wide",
|
|
589
593
|
isExpanded: props.isExpanded
|
|
590
594
|
})
|
|
591
595
|
})]
|