@commercetools-frontend/application-shell 22.37.0 → 22.38.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commercetools-frontend-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-785f2683.cjs.dev.js → custom-view-dev-host-2f9cb1eb.cjs.dev.js} +1 -1
- package/dist/{custom-view-dev-host-4ffa028a.esm.js → custom-view-dev-host-a954c257.esm.js} +1 -1
- package/dist/{custom-view-dev-host-b9b860f1.cjs.prod.js → custom-view-dev-host-cdd6c4ab.cjs.prod.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-937169c0.cjs.prod.js → index-13c77c78.cjs.prod.js} +38 -45
- package/dist/{index-5e00785a.cjs.dev.js → index-9d3e0d9f.cjs.dev.js} +38 -45
- package/dist/{index-bdd71e4c.esm.js → index-b8ab4ddf.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-75bd9ce0.cjs.prod.js → oidc-callback-1098b4ec.cjs.prod.js} +1 -1
- package/dist/{oidc-callback-4dc1c13f.esm.js → oidc-callback-577eed60.esm.js} +1 -1
- package/dist/{oidc-callback-88818ecc.cjs.dev.js → oidc-callback-5b63c825.cjs.dev.js} +1 -1
- package/dist/{project-container-0a3ddb21.cjs.prod.js → project-container-0d389540.cjs.prod.js} +12 -15
- package/dist/{project-container-ac9ffbf7.esm.js → project-container-55ef2732.esm.js} +12 -15
- package/dist/{project-container-f3698c44.cjs.dev.js → project-container-e9e5bb67.cjs.dev.js} +12 -15
- package/dist/{project-expired-7d2fab4d.cjs.dev.js → project-expired-7acc38fa.cjs.dev.js} +6 -6
- package/dist/{project-expired-25c363cd.cjs.prod.js → project-expired-b07366c0.cjs.prod.js} +6 -6
- package/dist/{project-expired-054375d0.esm.js → project-expired-b35f55c4.esm.js} +6 -6
- package/dist/{project-not-found-e3a64bcc.esm.js → project-not-found-65a9d43e.esm.js} +8 -8
- package/dist/{project-not-found-555741b8.cjs.prod.js → project-not-found-84b462fe.cjs.prod.js} +8 -8
- package/dist/{project-not-found-f488a2e1.cjs.dev.js → project-not-found-fb746854.cjs.dev.js} +8 -8
- package/dist/{project-not-initialized-11f193fe.cjs.dev.js → project-not-initialized-612f4438.cjs.dev.js} +6 -6
- package/dist/{project-not-initialized-3e7cb9fb.esm.js → project-not-initialized-82be112b.esm.js} +6 -6
- package/dist/{project-not-initialized-4932ab18.cjs.prod.js → project-not-initialized-cdf015d1.cjs.prod.js} +6 -6
- package/dist/{project-suspended-1340f99e.cjs.prod.js → project-suspended-0461d2d9.cjs.prod.js} +8 -8
- package/dist/{project-suspended-5a8b040e.esm.js → project-suspended-4af37579.esm.js} +8 -8
- package/dist/{project-suspended-5e840d00.cjs.dev.js → project-suspended-a8abe9e0.cjs.dev.js} +8 -8
- package/dist/{quick-access-59946146.cjs.dev.js → quick-access-1a877ffe.cjs.dev.js} +123 -123
- package/dist/{quick-access-b183c7bd.cjs.prod.js → quick-access-865ffb39.cjs.prod.js} +123 -123
- package/dist/{quick-access-ef9f6828.esm.js → quick-access-b439c19f.esm.js} +123 -123
- package/dist/{redirect-to-logout-4f59c9b7.cjs.prod.js → redirect-to-logout-2344c069.cjs.prod.js} +1 -1
- package/dist/{redirect-to-logout-ddf6cdac.esm.js → redirect-to-logout-ad4aa270.esm.js} +1 -1
- package/dist/{redirect-to-logout-0f4a8317.cjs.dev.js → redirect-to-logout-f80bab18.cjs.dev.js} +1 -1
- package/dist/{requests-in-flight-loader-4f45b8ce.cjs.prod.js → requests-in-flight-loader-53867cf0.cjs.prod.js} +3 -4
- package/dist/{requests-in-flight-loader-c8b1d4e1.esm.js → requests-in-flight-loader-c31e1e4a.esm.js} +3 -4
- package/dist/{requests-in-flight-loader-28b03925.cjs.dev.js → requests-in-flight-loader-c64170fb.cjs.dev.js} +3 -4
- package/dist/{service-page-project-switcher-5fb3181e.cjs.prod.js → service-page-project-switcher-921da15d.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-66a1d372.cjs.dev.js → service-page-project-switcher-d55b36bf.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-da22aefc.esm.js → service-page-project-switcher-d86d70b5.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.1";
|
|
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-c64170fb.cjs.dev.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
|
|
|
@@ -231,33 +231,28 @@ LoadingPlaceholder.displayName = 'LoadingPlaceholder';
|
|
|
231
231
|
|
|
232
232
|
var messages = reactIntl.defineMessages({
|
|
233
233
|
projectsLabel: {
|
|
234
|
-
id:
|
|
235
|
-
|
|
236
|
-
defaultMessage: 'Projects'
|
|
234
|
+
id: "ProjectSwitcher.projectsLabel",
|
|
235
|
+
defaultMessage: "Projects"
|
|
237
236
|
},
|
|
238
237
|
searchPlaceholder: {
|
|
239
|
-
id:
|
|
240
|
-
|
|
241
|
-
defaultMessage: 'Search for a project'
|
|
238
|
+
id: "ProjectSwitcher.searchPlaceholder",
|
|
239
|
+
defaultMessage: "Search for a project"
|
|
242
240
|
},
|
|
243
241
|
noResults: {
|
|
244
|
-
id:
|
|
245
|
-
|
|
246
|
-
defaultMessage: 'Sorry, but there are no projects that match your search.'
|
|
242
|
+
id: "ProjectSwitcher.noResults",
|
|
243
|
+
defaultMessage: "Sorry, but there are no projects that match your search."
|
|
247
244
|
},
|
|
248
245
|
suspended: {
|
|
249
|
-
id:
|
|
250
|
-
|
|
251
|
-
defaultMessage: 'Suspended'
|
|
246
|
+
id: "ProjectSwitcher.suspended",
|
|
247
|
+
defaultMessage: "Suspended"
|
|
252
248
|
},
|
|
253
249
|
expired: {
|
|
254
|
-
id:
|
|
255
|
-
|
|
256
|
-
defaultMessage: 'Expired'
|
|
250
|
+
id: "ProjectSwitcher.expired",
|
|
251
|
+
defaultMessage: "Expired"
|
|
257
252
|
}
|
|
258
253
|
});
|
|
259
254
|
|
|
260
|
-
const _excluded = ["children"];
|
|
255
|
+
const _excluded$1 = ["children"];
|
|
261
256
|
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; }
|
|
262
257
|
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; }
|
|
263
258
|
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)."; }
|
|
@@ -265,7 +260,7 @@ var ProjectsQuery = { kind: "Document", definitions: [{ kind: "OperationDefiniti
|
|
|
265
260
|
const PROJECT_SWITCHER_LABEL_ID = 'project-switcher-label';
|
|
266
261
|
const ValueContainer = _ref2 => {
|
|
267
262
|
let children = _ref2.children,
|
|
268
|
-
restProps = _objectWithoutProperties(_ref2, _excluded);
|
|
263
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$1);
|
|
269
264
|
return jsxRuntime.jsx(Text__default["default"].Body, {
|
|
270
265
|
fontWeight: "medium",
|
|
271
266
|
as: "span",
|
|
@@ -402,7 +397,7 @@ ProjectSwitcher.displayName = 'ProjectSwitcher';
|
|
|
402
397
|
// eslint-disable-next-line import/prefer-default-export
|
|
403
398
|
const REQUESTS_IN_FLIGHT_LOADER_DOM_ID = 'loader-for-requests-in-flight';
|
|
404
399
|
|
|
405
|
-
const UserSettingsMenu = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./user-settings-menu-
|
|
400
|
+
const UserSettingsMenu = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./user-settings-menu-4ff11354.cjs.dev.js' /* webpackChunkName: "user-settings-menu" */); }));
|
|
406
401
|
|
|
407
402
|
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)."; }
|
|
408
403
|
var _ref$1 = process.env.NODE_ENV === "production" ? {
|
|
@@ -557,7 +552,7 @@ ConfigureIntlProvider.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
557
552
|
} : {};
|
|
558
553
|
ConfigureIntlProvider.displayName = 'ConfigureIntlProvider';
|
|
559
554
|
|
|
560
|
-
const ErrorApologizer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./error-apologizer-
|
|
555
|
+
const ErrorApologizer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./error-apologizer-3c7ded7d.cjs.dev.js' /* webpackChunkName: "error-apologizer" */); }));
|
|
561
556
|
|
|
562
557
|
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 } } } };
|
|
563
558
|
const FetchProject = props => {
|
|
@@ -613,9 +608,9 @@ FetchUser.propTypes = {
|
|
|
613
608
|
};
|
|
614
609
|
FetchUser.displayName = 'FetchUser';
|
|
615
610
|
|
|
616
|
-
const Navbar = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./navbar-
|
|
611
|
+
const Navbar = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./navbar-4b46fe69.cjs.dev.js' /* webpackChunkName: "navbar" */); }));
|
|
617
612
|
|
|
618
|
-
const ProjectContainer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-container-
|
|
613
|
+
const ProjectContainer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-container-e9e5bb67.cjs.dev.js' /* webpackChunkName: "project-container" */); }));
|
|
619
614
|
|
|
620
615
|
const getSelectedDataLocaleForProject = projectLocales => {
|
|
621
616
|
const cachedDataLocale = window.localStorage.getItem(constants.STORAGE_KEYS.SELECTED_DATA_LOCALE);
|
|
@@ -739,7 +734,7 @@ var pimIndexerStates = {
|
|
|
739
734
|
NOT_INDEXED: 'NOT_INDEXED'
|
|
740
735
|
};
|
|
741
736
|
|
|
742
|
-
const QuickAccess = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./quick-access-
|
|
737
|
+
const QuickAccess = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./quick-access-1a877ffe.cjs.dev.js' /* webpackChunkName: "quick-access" */); }));
|
|
743
738
|
const QuickAccessTrigger = props => {
|
|
744
739
|
const _useState = react.useState(false),
|
|
745
740
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -827,7 +822,7 @@ QuickAccessTrigger.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
827
822
|
} : {};
|
|
828
823
|
QuickAccessTrigger.displayName = 'QuickAccessTrigger';
|
|
829
824
|
|
|
830
|
-
const RedirectToLogout = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-logout-
|
|
825
|
+
const RedirectToLogout = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-logout-f80bab18.cjs.dev.js' /* webpackChunkName: "redirect-to-logout" */); }));
|
|
831
826
|
|
|
832
827
|
const RedirectToProjectCreate = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-project-create-f4f01842.cjs.dev.js' /* webpackChunkName: "redirect-to-project-create" */); }));
|
|
833
828
|
|
|
@@ -1299,9 +1294,6 @@ ApplicationShellAuthenticated.displayName = 'ApplicationShellAuthenticated';
|
|
|
1299
1294
|
|
|
1300
1295
|
const maxTitleCharLength = 24;
|
|
1301
1296
|
const staticPaths = ['account', 'login'];
|
|
1302
|
-
const defaultProps$1 = {
|
|
1303
|
-
additionalParts: []
|
|
1304
|
-
};
|
|
1305
1297
|
const getPageTitle = (pathname, additionalParts) => {
|
|
1306
1298
|
const _pathname$split = pathname.split('/'),
|
|
1307
1299
|
_pathname$split2 = _slicedToArray(_pathname$split, 3),
|
|
@@ -1318,19 +1310,20 @@ const getPageTitle = (pathname, additionalParts) => {
|
|
|
1318
1310
|
}
|
|
1319
1311
|
return [...(customTitleParts || []), entryPointUriPath, projectKeyOrStaticPath, 'Merchant Center'].join(' - ');
|
|
1320
1312
|
};
|
|
1321
|
-
const ApplicationPageTitle =
|
|
1313
|
+
const ApplicationPageTitle = _ref => {
|
|
1314
|
+
let _ref$additionalParts = _ref.additionalParts,
|
|
1315
|
+
additionalParts = _ref$additionalParts === void 0 ? [] : _ref$additionalParts;
|
|
1322
1316
|
const location = reactRouterDom.useLocation();
|
|
1323
1317
|
react.useLayoutEffect(() => {
|
|
1324
|
-
const pageTitle = getPageTitle(location.pathname,
|
|
1318
|
+
const pageTitle = getPageTitle(location.pathname, additionalParts);
|
|
1325
1319
|
document.title = pageTitle;
|
|
1326
|
-
}, [location.pathname,
|
|
1320
|
+
}, [location.pathname, additionalParts]);
|
|
1327
1321
|
return null;
|
|
1328
1322
|
};
|
|
1329
1323
|
ApplicationPageTitle.propTypes = {
|
|
1330
|
-
additionalParts: _pt__default["default"].arrayOf(_pt__default["default"].string)
|
|
1324
|
+
additionalParts: _pt__default["default"].arrayOf(_pt__default["default"].string)
|
|
1331
1325
|
};
|
|
1332
1326
|
ApplicationPageTitle.displayName = 'ApplicationPageTitle';
|
|
1333
|
-
ApplicationPageTitle.defaultProps = defaultProps$1;
|
|
1334
1327
|
|
|
1335
1328
|
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; }
|
|
1336
1329
|
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; }
|
|
@@ -1473,7 +1466,7 @@ const hasCachedAuthenticationState = () => {
|
|
|
1473
1466
|
return window.localStorage.getItem(constants.STORAGE_KEYS.IS_AUTHENTICATED) === 'true';
|
|
1474
1467
|
};
|
|
1475
1468
|
|
|
1476
|
-
const OidcCallback = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./oidc-callback-
|
|
1469
|
+
const OidcCallback = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./oidc-callback-5b63c825.cjs.dev.js' /* webpackChunkName: "oidc-callback" */); }));
|
|
1477
1470
|
|
|
1478
1471
|
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; }
|
|
1479
1472
|
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; }
|
|
@@ -1706,7 +1699,7 @@ ApplicationShell.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1706
1699
|
ApplicationShell.displayName = 'ApplicationShell';
|
|
1707
1700
|
ApplicationShell.version = version;
|
|
1708
1701
|
|
|
1709
|
-
const CustomViewDevHost = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./custom-view-dev-host-
|
|
1702
|
+
const CustomViewDevHost = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./custom-view-dev-host-2f9cb1eb.cjs.dev.js' /* webpackChunkName: "custom-view-dev-host" */); }));
|
|
1710
1703
|
|
|
1711
1704
|
function CustomViewFlopFlipProvider(props) {
|
|
1712
1705
|
const adapterArgs = react.useMemo(() => ({
|
|
@@ -2058,10 +2051,11 @@ CustomViewShellWrapper.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2058
2051
|
children: _pt__default["default"].node.isRequired
|
|
2059
2052
|
} : {};
|
|
2060
2053
|
|
|
2061
|
-
const
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2054
|
+
const _excluded = ["shouldCleanUpOnUnmount"];
|
|
2055
|
+
const InjectReducers = _ref => {
|
|
2056
|
+
let _ref$shouldCleanUpOnU = _ref.shouldCleanUpOnUnmount,
|
|
2057
|
+
shouldCleanUpOnUnmount = _ref$shouldCleanUpOnU === void 0 ? true : _ref$shouldCleanUpOnU,
|
|
2058
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
2065
2059
|
const _useState = react.useState(false),
|
|
2066
2060
|
_useState2 = _slicedToArray(_useState, 2),
|
|
2067
2061
|
areReducersInjected = _useState2[0],
|
|
@@ -2074,13 +2068,13 @@ const InjectReducers = props => {
|
|
|
2074
2068
|
});
|
|
2075
2069
|
setAreReducersInjected(true);
|
|
2076
2070
|
return () => {
|
|
2077
|
-
if (
|
|
2071
|
+
if (shouldCleanUpOnUnmount) {
|
|
2078
2072
|
store.removeReducers({
|
|
2079
2073
|
id: props.id
|
|
2080
2074
|
});
|
|
2081
2075
|
}
|
|
2082
2076
|
};
|
|
2083
|
-
}, [props.id, props.reducers,
|
|
2077
|
+
}, [props.id, props.reducers, shouldCleanUpOnUnmount, store]);
|
|
2084
2078
|
|
|
2085
2079
|
// Render children only when the plugin reducers have been injected
|
|
2086
2080
|
if (areReducersInjected) return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
@@ -2091,11 +2085,10 @@ const InjectReducers = props => {
|
|
|
2091
2085
|
InjectReducers.propTypes = {
|
|
2092
2086
|
id: _pt__default["default"].string.isRequired,
|
|
2093
2087
|
reducers: _pt__default["default"].any.isRequired,
|
|
2094
|
-
shouldCleanUpOnUnmount: _pt__default["default"].bool
|
|
2088
|
+
shouldCleanUpOnUnmount: _pt__default["default"].bool,
|
|
2095
2089
|
children: _pt__default["default"].node.isRequired
|
|
2096
2090
|
};
|
|
2097
2091
|
InjectReducers.displayName = 'InjectReducers';
|
|
2098
|
-
InjectReducers.defaultProps = defaultProps;
|
|
2099
2092
|
|
|
2100
2093
|
const errorMessageIgnoreList = [/ResizeObserver loop (limit exceeded|completed with undelivered notifications)/i];
|
|
2101
2094
|
|
|
@@ -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.1";
|
|
75
75
|
|
|
76
|
-
const RequestsInFlightLoader = /*#__PURE__*/lazy(() => import('./requests-in-flight-loader-
|
|
76
|
+
const RequestsInFlightLoader = /*#__PURE__*/lazy(() => import('./requests-in-flight-loader-c31e1e4a.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-55ef2732.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-b439c19f.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-ad4aa270.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-577eed60.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-a954c257.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
|
})]
|