@commercetools-frontend/application-shell 22.13.2 → 22.14.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.
Files changed (54) hide show
  1. package/dist/commercetools-frontend-application-shell.cjs.dev.js +1 -1
  2. package/dist/commercetools-frontend-application-shell.cjs.prod.js +1 -1
  3. package/dist/commercetools-frontend-application-shell.esm.js +1 -1
  4. package/dist/{custom-view-dev-host-10307be1.esm.js → custom-view-dev-host-6b8b1a2c.esm.js} +1 -1
  5. package/dist/{custom-view-dev-host-84ca67b3.cjs.dev.js → custom-view-dev-host-83c771a9.cjs.dev.js} +1 -1
  6. package/dist/declarations/src/components/navbar/use-navbar-state-manager.d.ts +2 -51
  7. package/dist/declarations/src/hooks/use-applications-menu/use-applications-menu.d.ts +2 -2
  8. package/dist/declarations/src/types/generated/proxy.d.ts +39 -29
  9. package/dist/{index-cabf6b9d.cjs.prod.js → index-2e03bc7f.cjs.prod.js} +9 -9
  10. package/dist/{index-f50a13ee.cjs.dev.js → index-93163e6f.cjs.dev.js} +10 -10
  11. package/dist/{index-de372251.esm.js → index-d0cc26cf.esm.js} +10 -10
  12. package/dist/{navbar-2372be36.cjs.dev.js → navbar-8409df86.cjs.dev.js} +43 -47
  13. package/dist/{navbar-969b25dc.cjs.prod.js → navbar-be902d73.cjs.prod.js} +42 -46
  14. package/dist/{navbar-508a24b2.esm.js → navbar-e4559c93.esm.js} +41 -47
  15. package/dist/{oidc-callback-ffa16252.cjs.dev.js → oidc-callback-52afa441.cjs.dev.js} +1 -1
  16. package/dist/{oidc-callback-84b511c4.cjs.prod.js → oidc-callback-67f7eeea.cjs.prod.js} +1 -1
  17. package/dist/{oidc-callback-2f8e4074.esm.js → oidc-callback-ad0d8522.esm.js} +1 -1
  18. package/dist/{project-container-2bc52b09.cjs.prod.js → project-container-6a136f77.cjs.prod.js} +5 -5
  19. package/dist/{project-container-e5a131c2.cjs.dev.js → project-container-9d01ccb6.cjs.dev.js} +5 -5
  20. package/dist/{project-container-56b0225d.esm.js → project-container-bbd490b1.esm.js} +5 -5
  21. package/dist/{project-expired-48d542d9.cjs.dev.js → project-expired-2657defd.cjs.dev.js} +2 -2
  22. package/dist/{project-expired-4fe7ddbd.cjs.prod.js → project-expired-8ce1768d.cjs.prod.js} +2 -2
  23. package/dist/{project-expired-73620557.esm.js → project-expired-9cd9ff5b.esm.js} +2 -2
  24. package/dist/{project-not-found-21e638b0.esm.js → project-not-found-0148e8be.esm.js} +2 -2
  25. package/dist/{project-not-found-19beff59.cjs.prod.js → project-not-found-7d41aa6f.cjs.prod.js} +2 -2
  26. package/dist/{project-not-found-989e5932.cjs.dev.js → project-not-found-816b1a9a.cjs.dev.js} +2 -2
  27. package/dist/{project-not-initialized-615b3158.esm.js → project-not-initialized-607936f1.esm.js} +2 -2
  28. package/dist/{project-not-initialized-d0dcdbc4.cjs.prod.js → project-not-initialized-a0349b22.cjs.prod.js} +2 -2
  29. package/dist/{project-not-initialized-d3332f87.cjs.dev.js → project-not-initialized-c4a4208e.cjs.dev.js} +2 -2
  30. package/dist/{project-suspended-b402d9a2.esm.js → project-suspended-7f10ffb1.esm.js} +2 -2
  31. package/dist/{project-suspended-35389f71.cjs.prod.js → project-suspended-82131f50.cjs.prod.js} +2 -2
  32. package/dist/{project-suspended-a9f55c2a.cjs.dev.js → project-suspended-f05b59fb.cjs.dev.js} +2 -2
  33. package/dist/{quick-access-75f67cd7.cjs.dev.js → quick-access-4aa2fd16.cjs.dev.js} +1 -1
  34. package/dist/{quick-access-0743fc3e.cjs.prod.js → quick-access-72817cf0.cjs.prod.js} +1 -1
  35. package/dist/{quick-access-d27d2fce.esm.js → quick-access-cb5fac20.esm.js} +1 -1
  36. package/dist/{redirect-to-logout-4dae50dd.cjs.prod.js → redirect-to-logout-1e4fb965.cjs.prod.js} +1 -1
  37. package/dist/{redirect-to-logout-aa6ed39f.cjs.dev.js → redirect-to-logout-47c97a37.cjs.dev.js} +1 -1
  38. package/dist/{redirect-to-logout-2660b893.esm.js → redirect-to-logout-e45a9b6b.esm.js} +1 -1
  39. package/dist/{requests-in-flight-loader-7bf939df.esm.js → requests-in-flight-loader-0aca3a8f.esm.js} +1 -1
  40. package/dist/{requests-in-flight-loader-9a5616eb.cjs.dev.js → requests-in-flight-loader-7e8d0887.cjs.dev.js} +1 -1
  41. package/dist/{requests-in-flight-loader-e0364672.cjs.prod.js → requests-in-flight-loader-e5910774.cjs.prod.js} +1 -1
  42. package/dist/{service-page-project-switcher-6b534271.cjs.prod.js → service-page-project-switcher-0ee0fa7a.cjs.prod.js} +1 -1
  43. package/dist/{service-page-project-switcher-172ca5ad.esm.js → service-page-project-switcher-ccb5b6a3.esm.js} +1 -1
  44. package/dist/{service-page-project-switcher-dd53170f.cjs.dev.js → service-page-project-switcher-d35a5d4e.cjs.dev.js} +1 -1
  45. package/dist/{use-applications-menu-902e4f5f.esm.js → use-applications-menu-03759eab.esm.js} +38 -34
  46. package/dist/{use-applications-menu-c03f484f.cjs.dev.js → use-applications-menu-0d3f4ffc.cjs.prod.js} +38 -34
  47. package/dist/{use-applications-menu-10d6d71b.cjs.prod.js → use-applications-menu-2fe3d465.cjs.dev.js} +38 -34
  48. package/dist/{user-settings-menu-79570f93.cjs.dev.js → user-settings-menu-1ae6c56e.cjs.dev.js} +1 -1
  49. package/dist/{user-settings-menu-2fa90966.cjs.prod.js → user-settings-menu-4580467a.cjs.prod.js} +1 -1
  50. package/dist/{user-settings-menu-c087b178.esm.js → user-settings-menu-46fe08bf.esm.js} +1 -1
  51. package/dist/{version-tracker-12cfc847.cjs.dev.js → version-tracker-61ec7616.cjs.dev.js} +1 -1
  52. package/dist/{version-tracker-1e2a9a9c.esm.js → version-tracker-c3ec53c5.esm.js} +1 -1
  53. package/dist/{version-tracker-bec11f33.cjs.prod.js → version-tracker-f9ae24af.cjs.prod.js} +1 -1
  54. package/package.json +16 -16
@@ -12,12 +12,12 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
12
12
  var reactIntl = require('react-intl');
13
13
  var applicationComponents = require('@commercetools-frontend/application-components');
14
14
  var ProjectSuspendedSVG = require('@commercetools-frontend/assets/images/locked-diamond.svg');
15
- var servicePageProjectSwitcher = require('./service-page-project-switcher-6b534271.cjs.prod.js');
15
+ var servicePageProjectSwitcher = require('./service-page-project-switcher-0ee0fa7a.cjs.prod.js');
16
16
  var jsxRuntime = require('@emotion/react/jsx-runtime');
17
17
  require('@emotion/styled/base');
18
18
  require('react-router-dom');
19
19
  require('@commercetools-frontend/application-shell-connectors');
20
- require('./index-cabf6b9d.cjs.prod.js');
20
+ require('./index-2e03bc7f.cjs.prod.js');
21
21
  require('prop-types');
22
22
  require('react');
23
23
  require('./index-6cd618cc.cjs.prod.js');
@@ -12,12 +12,12 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
12
12
  var reactIntl = require('react-intl');
13
13
  var applicationComponents = require('@commercetools-frontend/application-components');
14
14
  var ProjectSuspendedSVG = require('@commercetools-frontend/assets/images/locked-diamond.svg');
15
- var servicePageProjectSwitcher = require('./service-page-project-switcher-dd53170f.cjs.dev.js');
15
+ var servicePageProjectSwitcher = require('./service-page-project-switcher-d35a5d4e.cjs.dev.js');
16
16
  var jsxRuntime = require('@emotion/react/jsx-runtime');
17
17
  require('@emotion/styled/base');
18
18
  require('react-router-dom');
19
19
  require('@commercetools-frontend/application-shell-connectors');
20
- require('./index-f50a13ee.cjs.dev.js');
20
+ require('./index-93163e6f.cjs.dev.js');
21
21
  require('prop-types');
22
22
  require('react');
23
23
  require('./index-37a25e51.cjs.dev.js');
@@ -40,7 +40,7 @@ var designSystem = require('@commercetools-uikit/design-system');
40
40
  var icons = require('@commercetools-uikit/icons');
41
41
  var LoadingSpinner = require('@commercetools-uikit/loading-spinner');
42
42
  var jsxRuntime = require('@emotion/react/jsx-runtime');
43
- var dist_commercetoolsFrontendApplicationShell = require('./index-f50a13ee.cjs.dev.js');
43
+ var dist_commercetoolsFrontendApplicationShell = require('./index-93163e6f.cjs.dev.js');
44
44
  var _Promise = require('@babel/runtime-corejs3/core-js-stable/promise');
45
45
  var _reduceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
46
46
  var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
@@ -40,7 +40,7 @@ var designSystem = require('@commercetools-uikit/design-system');
40
40
  var icons = require('@commercetools-uikit/icons');
41
41
  var LoadingSpinner = require('@commercetools-uikit/loading-spinner');
42
42
  var jsxRuntime = require('@emotion/react/jsx-runtime');
43
- var dist_commercetoolsFrontendApplicationShell = require('./index-cabf6b9d.cjs.prod.js');
43
+ var dist_commercetoolsFrontendApplicationShell = require('./index-2e03bc7f.cjs.prod.js');
44
44
  var _Promise = require('@babel/runtime-corejs3/core-js-stable/promise');
45
45
  var _reduceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
46
46
  var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
@@ -38,7 +38,7 @@ import { customProperties } from '@commercetools-uikit/design-system';
38
38
  import { AngleThinRightIcon, SearchIcon } from '@commercetools-uikit/icons';
39
39
  import LoadingSpinner from '@commercetools-uikit/loading-spinner';
40
40
  import { jsxs, jsx } from '@emotion/react/jsx-runtime';
41
- import { B as ButlerContainer, p as pimIndexerStates } from './index-de372251.esm.js';
41
+ import { B as ButlerContainer, p as pimIndexerStates } from './index-d0cc26cf.esm.js';
42
42
  import _Promise from '@babel/runtime-corejs3/core-js-stable/promise';
43
43
  import _reduceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/reduce';
44
44
  import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
@@ -14,7 +14,7 @@ var applicationShellConnectors = require('@commercetools-frontend/application-sh
14
14
  var constants = require('@commercetools-frontend/constants');
15
15
  var useIsServedByProxy = require('./use-is-served-by-proxy-845cace5.cjs.prod.js');
16
16
  var getMcOrigin = require('./get-mc-origin-8f7a578c.cjs.prod.js');
17
- var dist_commercetoolsFrontendApplicationShell = require('./index-cabf6b9d.cjs.prod.js');
17
+ var dist_commercetoolsFrontendApplicationShell = require('./index-2e03bc7f.cjs.prod.js');
18
18
  var redirector = require('./redirector-752b4efc.cjs.prod.js');
19
19
  var jsxRuntime = require('@emotion/react/jsx-runtime');
20
20
  require('@babel/runtime-corejs3/helpers/slicedToArray');
@@ -14,7 +14,7 @@ var applicationShellConnectors = require('@commercetools-frontend/application-sh
14
14
  var constants = require('@commercetools-frontend/constants');
15
15
  var useIsServedByProxy = require('./use-is-served-by-proxy-ed411f45.cjs.dev.js');
16
16
  var getMcOrigin = require('./get-mc-origin-a86dff20.cjs.dev.js');
17
- var dist_commercetoolsFrontendApplicationShell = require('./index-f50a13ee.cjs.dev.js');
17
+ var dist_commercetoolsFrontendApplicationShell = require('./index-93163e6f.cjs.dev.js');
18
18
  var redirector = require('./redirector-5daa8baa.cjs.dev.js');
19
19
  var jsxRuntime = require('@emotion/react/jsx-runtime');
20
20
  require('@babel/runtime-corejs3/helpers/slicedToArray');
@@ -12,7 +12,7 @@ import { oidcStorage } from '@commercetools-frontend/application-shell-connector
12
12
  import { LOGOUT_REASONS } from '@commercetools-frontend/constants';
13
13
  import { u as useIsServedByProxy } from './use-is-served-by-proxy-77984220.esm.js';
14
14
  import { g as getMcOrigin } from './get-mc-origin-fecfee07.esm.js';
15
- import { R as RedirectToLogin } from './index-de372251.esm.js';
15
+ import { R as RedirectToLogin } from './index-d0cc26cf.esm.js';
16
16
  import { R as Redirector } from './redirector-db8b5cd2.esm.js';
17
17
  import { jsx } from '@emotion/react/jsx-runtime';
18
18
  import '@babel/runtime-corejs3/helpers/slicedToArray';
@@ -11,7 +11,7 @@ import ReactDOM from 'react-dom';
11
11
  import { defineMessages, FormattedMessage } from 'react-intl';
12
12
  import { useSelector } from 'react-redux';
13
13
  import LoadingSpinner from '@commercetools-uikit/loading-spinner';
14
- import { c as REQUESTS_IN_FLIGHT_LOADER_DOM_ID } from './index-de372251.esm.js';
14
+ import { c as REQUESTS_IN_FLIGHT_LOADER_DOM_ID } from './index-d0cc26cf.esm.js';
15
15
  import { jsx } from '@emotion/react/jsx-runtime';
16
16
  import 'prop-types';
17
17
  import 'react';
@@ -13,7 +13,7 @@ var ReactDOM = require('react-dom');
13
13
  var reactIntl = require('react-intl');
14
14
  var reactRedux = require('react-redux');
15
15
  var LoadingSpinner = require('@commercetools-uikit/loading-spinner');
16
- var dist_commercetoolsFrontendApplicationShell = require('./index-f50a13ee.cjs.dev.js');
16
+ var dist_commercetoolsFrontendApplicationShell = require('./index-93163e6f.cjs.dev.js');
17
17
  var jsxRuntime = require('@emotion/react/jsx-runtime');
18
18
  require('prop-types');
19
19
  require('react');
@@ -13,7 +13,7 @@ var ReactDOM = require('react-dom');
13
13
  var reactIntl = require('react-intl');
14
14
  var reactRedux = require('react-redux');
15
15
  var LoadingSpinner = require('@commercetools-uikit/loading-spinner');
16
- var dist_commercetoolsFrontendApplicationShell = require('./index-cabf6b9d.cjs.prod.js');
16
+ var dist_commercetoolsFrontendApplicationShell = require('./index-2e03bc7f.cjs.prod.js');
17
17
  var jsxRuntime = require('@emotion/react/jsx-runtime');
18
18
  require('prop-types');
19
19
  require('react');
@@ -3,7 +3,7 @@
3
3
  var _styled = require('@emotion/styled/base');
4
4
  var reactRouterDom = require('react-router-dom');
5
5
  var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
6
- var dist_commercetoolsFrontendApplicationShell = require('./index-cabf6b9d.cjs.prod.js');
6
+ var dist_commercetoolsFrontendApplicationShell = require('./index-2e03bc7f.cjs.prod.js');
7
7
  var jsxRuntime = require('@emotion/react/jsx-runtime');
8
8
 
9
9
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -1,7 +1,7 @@
1
1
  import _styled from '@emotion/styled/base';
2
2
  import { useParams } from 'react-router-dom';
3
3
  import { useApplicationContext } from '@commercetools-frontend/application-shell-connectors';
4
- import { e as ProjectSwitcher } from './index-de372251.esm.js';
4
+ import { e as ProjectSwitcher } from './index-d0cc26cf.esm.js';
5
5
  import { jsx } from '@emotion/react/jsx-runtime';
6
6
 
7
7
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { 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)."; }
@@ -3,7 +3,7 @@
3
3
  var _styled = require('@emotion/styled/base');
4
4
  var reactRouterDom = require('react-router-dom');
5
5
  var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
6
- var dist_commercetoolsFrontendApplicationShell = require('./index-f50a13ee.cjs.dev.js');
6
+ var dist_commercetoolsFrontendApplicationShell = require('./index-93163e6f.cjs.dev.js');
7
7
  var jsxRuntime = require('@emotion/react/jsx-runtime');
8
8
 
9
9
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -18,7 +18,7 @@ import { getSupportedLocales } from '@commercetools-frontend/l10n';
18
18
 
19
19
  function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20
20
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context4 = ownKeys(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context5 = ownKeys(Object(t))).call(_context5, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
21
- var FetchApplicationsMenu = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchApplicationsMenu" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "applicationsMenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "navBar" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "icon" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "menuVisibility" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "dataFences" }, 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: "type" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "actionRights" }, 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: "submenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "menuVisibility" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "actionRights" }, 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: "dataFences" }, 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: "type" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "Field", name: { kind: "Name", value: "appBar" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 823, source: { body: "query FetchApplicationsMenu {\n applicationsMenu {\n navBar {\n key\n uriPath\n icon\n labelAllLocales {\n locale\n value\n }\n featureToggle\n menuVisibility\n permissions\n dataFences {\n group\n name\n type\n }\n actionRights {\n group\n name\n }\n submenu {\n key\n uriPath\n labelAllLocales {\n locale\n value\n }\n featureToggle\n menuVisibility\n permissions\n actionRights {\n group\n name\n }\n dataFences {\n group\n name\n type\n }\n }\n }\n appBar {\n key\n uriPath\n labelAllLocales {\n locale\n value\n }\n featureToggle\n permissions\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
21
+ var FetchApplicationsMenu = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchApplicationsMenu" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "applicationsMenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "appBar" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "navBarGroups" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "items" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "icon" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "menuVisibility" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "actionRights" }, 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: "dataFences" }, 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: "type" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "submenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "menuVisibility" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "actionRights" }, 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: "dataFences" }, 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: "type" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }] } }], loc: { start: 0, end: 939, source: { body: "query FetchApplicationsMenu {\n applicationsMenu {\n appBar {\n key\n uriPath\n labelAllLocales {\n locale\n value\n }\n featureToggle\n permissions\n }\n navBarGroups {\n key\n items {\n key\n uriPath\n icon\n labelAllLocales {\n locale\n value\n }\n featureToggle\n menuVisibility\n permissions\n actionRights {\n group\n name\n }\n dataFences {\n group\n name\n type\n }\n submenu {\n key\n uriPath\n labelAllLocales {\n locale\n value\n }\n featureToggle\n menuVisibility\n permissions\n actionRights {\n group\n name\n }\n dataFences {\n group\n name\n type\n }\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
22
22
  const defaultApiUrl = window.location.origin;
23
23
  const mapLabelAllLocalesWithDefaults = (labelAllLocales, defaultLabel) => {
24
24
  let mappedLabelAllLocales = labelAllLocales;
@@ -55,39 +55,43 @@ const mapApplicationMenuConfigToGraqhQLQueryResult = applicationConfig => {
55
55
  return {
56
56
  applicationsMenu: {
57
57
  __typename: 'ApplicationsMenu',
58
- navBar: menuLinks ? [{
59
- __typename: 'NavbarMenu',
60
- key: entryPointUriPath,
61
- uriPath: entryPointUriPath,
62
- icon: menuLinks.icon,
63
- labelAllLocales: mapLabelAllLocalesWithDefaults(menuLinks.labelAllLocales, menuLinks.defaultLabel),
64
- permissions: menuLinks.permissions,
65
- // @ts-ignore: not defined in schema, as it's only used internally.
66
- featureToggle: (_menuLinks$featureTog = menuLinks.featureToggle) !== null && _menuLinks$featureTog !== void 0 ? _menuLinks$featureTog : null,
67
- // @ts-ignore: not defined in schema, as it's only used internally.
68
- menuVisibility: (_menuLinks$menuVisibi = menuLinks.menuVisibility) !== null && _menuLinks$menuVisibi !== void 0 ? _menuLinks$menuVisibi : null,
69
- // @ts-ignore: not defined in schema, as it's only used internally.
70
- actionRights: (_menuLinks$actionRigh = menuLinks.actionRights) !== null && _menuLinks$actionRigh !== void 0 ? _menuLinks$actionRigh : null,
71
- // @ts-ignore: not defined in schema, as it's only used internally.
72
- dataFences: (_menuLinks$dataFences = menuLinks.dataFences) !== null && _menuLinks$dataFences !== void 0 ? _menuLinks$dataFences : null,
73
- submenu: _mapInstanceProperty(_context2 = menuLinks.submenuLinks).call(_context2, submenuLink => {
74
- var _context3, _submenuLink$featureT, _submenuLink$menuVisi, _submenuLink$actionRi, _submenuLink$dataFenc;
75
- return {
76
- __typename: 'BaseMenu',
77
- key: _concatInstanceProperty(_context3 = "".concat(entryPointUriPath, "-")).call(_context3, submenuLink.uriPath),
78
- uriPath: submenuLink.uriPath,
79
- labelAllLocales: mapLabelAllLocalesWithDefaults(submenuLink.labelAllLocales, submenuLink.defaultLabel),
80
- permissions: submenuLink.permissions,
81
- // @ts-ignore: not defined in schema, as it's only used internally.
82
- featureToggle: (_submenuLink$featureT = submenuLink.featureToggle) !== null && _submenuLink$featureT !== void 0 ? _submenuLink$featureT : null,
83
- // @ts-ignore: not defined in schema, as it's only used internally.
84
- menuVisibility: (_submenuLink$menuVisi = submenuLink.menuVisibility) !== null && _submenuLink$menuVisi !== void 0 ? _submenuLink$menuVisi : null,
85
- // @ts-ignore: not defined in schema, as it's only used internally.
86
- actionRights: (_submenuLink$actionRi = submenuLink.actionRights) !== null && _submenuLink$actionRi !== void 0 ? _submenuLink$actionRi : null,
87
- // @ts-ignore: not defined in schema, as it's only used internally.
88
- dataFences: (_submenuLink$dataFenc = submenuLink.dataFences) !== null && _submenuLink$dataFenc !== void 0 ? _submenuLink$dataFenc : null
89
- };
90
- })
58
+ navBarGroups: menuLinks ? [{
59
+ // for development, the navBarGroup key is set to '2' since all Custom Applications belong to the second Navbar group.
60
+ key: '2',
61
+ items: [{
62
+ __typename: 'NavbarMenu',
63
+ key: entryPointUriPath,
64
+ uriPath: entryPointUriPath,
65
+ icon: menuLinks.icon,
66
+ labelAllLocales: mapLabelAllLocalesWithDefaults(menuLinks.labelAllLocales, menuLinks.defaultLabel),
67
+ permissions: menuLinks.permissions,
68
+ // @ts-ignore: not defined in schema, as it's only used internally.
69
+ featureToggle: (_menuLinks$featureTog = menuLinks.featureToggle) !== null && _menuLinks$featureTog !== void 0 ? _menuLinks$featureTog : null,
70
+ // @ts-ignore: not defined in schema, as it's only used internally.
71
+ menuVisibility: (_menuLinks$menuVisibi = menuLinks.menuVisibility) !== null && _menuLinks$menuVisibi !== void 0 ? _menuLinks$menuVisibi : null,
72
+ // @ts-ignore: not defined in schema, as it's only used internally.
73
+ actionRights: (_menuLinks$actionRigh = menuLinks.actionRights) !== null && _menuLinks$actionRigh !== void 0 ? _menuLinks$actionRigh : null,
74
+ // @ts-ignore: not defined in schema, as it's only used internally.
75
+ dataFences: (_menuLinks$dataFences = menuLinks.dataFences) !== null && _menuLinks$dataFences !== void 0 ? _menuLinks$dataFences : null,
76
+ submenu: _mapInstanceProperty(_context2 = menuLinks.submenuLinks).call(_context2, submenuLink => {
77
+ var _context3, _submenuLink$featureT, _submenuLink$menuVisi, _submenuLink$actionRi, _submenuLink$dataFenc;
78
+ return {
79
+ __typename: 'BaseMenu',
80
+ key: _concatInstanceProperty(_context3 = "".concat(entryPointUriPath, "-")).call(_context3, submenuLink.uriPath),
81
+ uriPath: submenuLink.uriPath,
82
+ labelAllLocales: mapLabelAllLocalesWithDefaults(submenuLink.labelAllLocales, submenuLink.defaultLabel),
83
+ permissions: submenuLink.permissions,
84
+ // @ts-ignore: not defined in schema, as it's only used internally.
85
+ featureToggle: (_submenuLink$featureT = submenuLink.featureToggle) !== null && _submenuLink$featureT !== void 0 ? _submenuLink$featureT : null,
86
+ // @ts-ignore: not defined in schema, as it's only used internally.
87
+ menuVisibility: (_submenuLink$menuVisi = submenuLink.menuVisibility) !== null && _submenuLink$menuVisi !== void 0 ? _submenuLink$menuVisi : null,
88
+ // @ts-ignore: not defined in schema, as it's only used internally.
89
+ actionRights: (_submenuLink$actionRi = submenuLink.actionRights) !== null && _submenuLink$actionRi !== void 0 ? _submenuLink$actionRi : null,
90
+ // @ts-ignore: not defined in schema, as it's only used internally.
91
+ dataFences: (_submenuLink$dataFenc = submenuLink.dataFences) !== null && _submenuLink$dataFenc !== void 0 ? _submenuLink$dataFenc : null
92
+ };
93
+ })
94
+ }]
91
95
  }] : [],
92
96
  appBar: _mapInstanceProperty(accountLinks).call(accountLinks, menuLink => {
93
97
  var _menuLink$featureTogg;
@@ -34,7 +34,7 @@ var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInsta
34
34
 
35
35
  function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
36
36
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context4 = ownKeys(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context5 = ownKeys(Object(t))).call(_context5, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
37
- var FetchApplicationsMenu = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchApplicationsMenu" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "applicationsMenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "navBar" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "icon" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "menuVisibility" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "dataFences" }, 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: "type" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "actionRights" }, 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: "submenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "menuVisibility" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "actionRights" }, 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: "dataFences" }, 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: "type" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "Field", name: { kind: "Name", value: "appBar" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 823, source: { body: "query FetchApplicationsMenu {\n applicationsMenu {\n navBar {\n key\n uriPath\n icon\n labelAllLocales {\n locale\n value\n }\n featureToggle\n menuVisibility\n permissions\n dataFences {\n group\n name\n type\n }\n actionRights {\n group\n name\n }\n submenu {\n key\n uriPath\n labelAllLocales {\n locale\n value\n }\n featureToggle\n menuVisibility\n permissions\n actionRights {\n group\n name\n }\n dataFences {\n group\n name\n type\n }\n }\n }\n appBar {\n key\n uriPath\n labelAllLocales {\n locale\n value\n }\n featureToggle\n permissions\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
37
+ var FetchApplicationsMenu = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchApplicationsMenu" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "applicationsMenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "appBar" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "navBarGroups" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "items" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "icon" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "menuVisibility" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "actionRights" }, 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: "dataFences" }, 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: "type" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "submenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "menuVisibility" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "actionRights" }, 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: "dataFences" }, 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: "type" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }] } }], loc: { start: 0, end: 939, source: { body: "query FetchApplicationsMenu {\n applicationsMenu {\n appBar {\n key\n uriPath\n labelAllLocales {\n locale\n value\n }\n featureToggle\n permissions\n }\n navBarGroups {\n key\n items {\n key\n uriPath\n icon\n labelAllLocales {\n locale\n value\n }\n featureToggle\n menuVisibility\n permissions\n actionRights {\n group\n name\n }\n dataFences {\n group\n name\n type\n }\n submenu {\n key\n uriPath\n labelAllLocales {\n locale\n value\n }\n featureToggle\n menuVisibility\n permissions\n actionRights {\n group\n name\n }\n dataFences {\n group\n name\n type\n }\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
38
38
  const defaultApiUrl = window.location.origin;
39
39
  const mapLabelAllLocalesWithDefaults = (labelAllLocales, defaultLabel) => {
40
40
  let mappedLabelAllLocales = labelAllLocales;
@@ -71,39 +71,43 @@ const mapApplicationMenuConfigToGraqhQLQueryResult = applicationConfig => {
71
71
  return {
72
72
  applicationsMenu: {
73
73
  __typename: 'ApplicationsMenu',
74
- navBar: menuLinks ? [{
75
- __typename: 'NavbarMenu',
76
- key: entryPointUriPath,
77
- uriPath: entryPointUriPath,
78
- icon: menuLinks.icon,
79
- labelAllLocales: mapLabelAllLocalesWithDefaults(menuLinks.labelAllLocales, menuLinks.defaultLabel),
80
- permissions: menuLinks.permissions,
81
- // @ts-ignore: not defined in schema, as it's only used internally.
82
- featureToggle: (_menuLinks$featureTog = menuLinks.featureToggle) !== null && _menuLinks$featureTog !== void 0 ? _menuLinks$featureTog : null,
83
- // @ts-ignore: not defined in schema, as it's only used internally.
84
- menuVisibility: (_menuLinks$menuVisibi = menuLinks.menuVisibility) !== null && _menuLinks$menuVisibi !== void 0 ? _menuLinks$menuVisibi : null,
85
- // @ts-ignore: not defined in schema, as it's only used internally.
86
- actionRights: (_menuLinks$actionRigh = menuLinks.actionRights) !== null && _menuLinks$actionRigh !== void 0 ? _menuLinks$actionRigh : null,
87
- // @ts-ignore: not defined in schema, as it's only used internally.
88
- dataFences: (_menuLinks$dataFences = menuLinks.dataFences) !== null && _menuLinks$dataFences !== void 0 ? _menuLinks$dataFences : null,
89
- submenu: _mapInstanceProperty__default["default"](_context2 = menuLinks.submenuLinks).call(_context2, submenuLink => {
90
- var _context3, _submenuLink$featureT, _submenuLink$menuVisi, _submenuLink$actionRi, _submenuLink$dataFenc;
91
- return {
92
- __typename: 'BaseMenu',
93
- key: _concatInstanceProperty__default["default"](_context3 = "".concat(entryPointUriPath, "-")).call(_context3, submenuLink.uriPath),
94
- uriPath: submenuLink.uriPath,
95
- labelAllLocales: mapLabelAllLocalesWithDefaults(submenuLink.labelAllLocales, submenuLink.defaultLabel),
96
- permissions: submenuLink.permissions,
97
- // @ts-ignore: not defined in schema, as it's only used internally.
98
- featureToggle: (_submenuLink$featureT = submenuLink.featureToggle) !== null && _submenuLink$featureT !== void 0 ? _submenuLink$featureT : null,
99
- // @ts-ignore: not defined in schema, as it's only used internally.
100
- menuVisibility: (_submenuLink$menuVisi = submenuLink.menuVisibility) !== null && _submenuLink$menuVisi !== void 0 ? _submenuLink$menuVisi : null,
101
- // @ts-ignore: not defined in schema, as it's only used internally.
102
- actionRights: (_submenuLink$actionRi = submenuLink.actionRights) !== null && _submenuLink$actionRi !== void 0 ? _submenuLink$actionRi : null,
103
- // @ts-ignore: not defined in schema, as it's only used internally.
104
- dataFences: (_submenuLink$dataFenc = submenuLink.dataFences) !== null && _submenuLink$dataFenc !== void 0 ? _submenuLink$dataFenc : null
105
- };
106
- })
74
+ navBarGroups: menuLinks ? [{
75
+ // for development, the navBarGroup key is set to '2' since all Custom Applications belong to the second Navbar group.
76
+ key: '2',
77
+ items: [{
78
+ __typename: 'NavbarMenu',
79
+ key: entryPointUriPath,
80
+ uriPath: entryPointUriPath,
81
+ icon: menuLinks.icon,
82
+ labelAllLocales: mapLabelAllLocalesWithDefaults(menuLinks.labelAllLocales, menuLinks.defaultLabel),
83
+ permissions: menuLinks.permissions,
84
+ // @ts-ignore: not defined in schema, as it's only used internally.
85
+ featureToggle: (_menuLinks$featureTog = menuLinks.featureToggle) !== null && _menuLinks$featureTog !== void 0 ? _menuLinks$featureTog : null,
86
+ // @ts-ignore: not defined in schema, as it's only used internally.
87
+ menuVisibility: (_menuLinks$menuVisibi = menuLinks.menuVisibility) !== null && _menuLinks$menuVisibi !== void 0 ? _menuLinks$menuVisibi : null,
88
+ // @ts-ignore: not defined in schema, as it's only used internally.
89
+ actionRights: (_menuLinks$actionRigh = menuLinks.actionRights) !== null && _menuLinks$actionRigh !== void 0 ? _menuLinks$actionRigh : null,
90
+ // @ts-ignore: not defined in schema, as it's only used internally.
91
+ dataFences: (_menuLinks$dataFences = menuLinks.dataFences) !== null && _menuLinks$dataFences !== void 0 ? _menuLinks$dataFences : null,
92
+ submenu: _mapInstanceProperty__default["default"](_context2 = menuLinks.submenuLinks).call(_context2, submenuLink => {
93
+ var _context3, _submenuLink$featureT, _submenuLink$menuVisi, _submenuLink$actionRi, _submenuLink$dataFenc;
94
+ return {
95
+ __typename: 'BaseMenu',
96
+ key: _concatInstanceProperty__default["default"](_context3 = "".concat(entryPointUriPath, "-")).call(_context3, submenuLink.uriPath),
97
+ uriPath: submenuLink.uriPath,
98
+ labelAllLocales: mapLabelAllLocalesWithDefaults(submenuLink.labelAllLocales, submenuLink.defaultLabel),
99
+ permissions: submenuLink.permissions,
100
+ // @ts-ignore: not defined in schema, as it's only used internally.
101
+ featureToggle: (_submenuLink$featureT = submenuLink.featureToggle) !== null && _submenuLink$featureT !== void 0 ? _submenuLink$featureT : null,
102
+ // @ts-ignore: not defined in schema, as it's only used internally.
103
+ menuVisibility: (_submenuLink$menuVisi = submenuLink.menuVisibility) !== null && _submenuLink$menuVisi !== void 0 ? _submenuLink$menuVisi : null,
104
+ // @ts-ignore: not defined in schema, as it's only used internally.
105
+ actionRights: (_submenuLink$actionRi = submenuLink.actionRights) !== null && _submenuLink$actionRi !== void 0 ? _submenuLink$actionRi : null,
106
+ // @ts-ignore: not defined in schema, as it's only used internally.
107
+ dataFences: (_submenuLink$dataFenc = submenuLink.dataFences) !== null && _submenuLink$dataFenc !== void 0 ? _submenuLink$dataFenc : null
108
+ };
109
+ })
110
+ }]
107
111
  }] : [],
108
112
  appBar: _mapInstanceProperty__default["default"](accountLinks).call(accountLinks, menuLink => {
109
113
  var _menuLink$featureTogg;
@@ -34,7 +34,7 @@ var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInsta
34
34
 
35
35
  function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
36
36
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context4 = ownKeys(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context5 = ownKeys(Object(t))).call(_context5, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
37
- var FetchApplicationsMenu = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchApplicationsMenu" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "applicationsMenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "navBar" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "icon" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "menuVisibility" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "dataFences" }, 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: "type" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "actionRights" }, 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: "submenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "menuVisibility" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "actionRights" }, 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: "dataFences" }, 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: "type" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "Field", name: { kind: "Name", value: "appBar" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 823, source: { body: "query FetchApplicationsMenu {\n applicationsMenu {\n navBar {\n key\n uriPath\n icon\n labelAllLocales {\n locale\n value\n }\n featureToggle\n menuVisibility\n permissions\n dataFences {\n group\n name\n type\n }\n actionRights {\n group\n name\n }\n submenu {\n key\n uriPath\n labelAllLocales {\n locale\n value\n }\n featureToggle\n menuVisibility\n permissions\n actionRights {\n group\n name\n }\n dataFences {\n group\n name\n type\n }\n }\n }\n appBar {\n key\n uriPath\n labelAllLocales {\n locale\n value\n }\n featureToggle\n permissions\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
37
+ var FetchApplicationsMenu = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchApplicationsMenu" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "applicationsMenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "appBar" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "navBarGroups" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "items" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "icon" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "menuVisibility" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "actionRights" }, 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: "dataFences" }, 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: "type" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "submenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "menuVisibility" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "actionRights" }, 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: "dataFences" }, 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: "type" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }] } }], loc: { start: 0, end: 939, source: { body: "query FetchApplicationsMenu {\n applicationsMenu {\n appBar {\n key\n uriPath\n labelAllLocales {\n locale\n value\n }\n featureToggle\n permissions\n }\n navBarGroups {\n key\n items {\n key\n uriPath\n icon\n labelAllLocales {\n locale\n value\n }\n featureToggle\n menuVisibility\n permissions\n actionRights {\n group\n name\n }\n dataFences {\n group\n name\n type\n }\n submenu {\n key\n uriPath\n labelAllLocales {\n locale\n value\n }\n featureToggle\n menuVisibility\n permissions\n actionRights {\n group\n name\n }\n dataFences {\n group\n name\n type\n }\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
38
38
  const defaultApiUrl = window.location.origin;
39
39
  const mapLabelAllLocalesWithDefaults = (labelAllLocales, defaultLabel) => {
40
40
  let mappedLabelAllLocales = labelAllLocales;
@@ -71,39 +71,43 @@ const mapApplicationMenuConfigToGraqhQLQueryResult = applicationConfig => {
71
71
  return {
72
72
  applicationsMenu: {
73
73
  __typename: 'ApplicationsMenu',
74
- navBar: menuLinks ? [{
75
- __typename: 'NavbarMenu',
76
- key: entryPointUriPath,
77
- uriPath: entryPointUriPath,
78
- icon: menuLinks.icon,
79
- labelAllLocales: mapLabelAllLocalesWithDefaults(menuLinks.labelAllLocales, menuLinks.defaultLabel),
80
- permissions: menuLinks.permissions,
81
- // @ts-ignore: not defined in schema, as it's only used internally.
82
- featureToggle: (_menuLinks$featureTog = menuLinks.featureToggle) !== null && _menuLinks$featureTog !== void 0 ? _menuLinks$featureTog : null,
83
- // @ts-ignore: not defined in schema, as it's only used internally.
84
- menuVisibility: (_menuLinks$menuVisibi = menuLinks.menuVisibility) !== null && _menuLinks$menuVisibi !== void 0 ? _menuLinks$menuVisibi : null,
85
- // @ts-ignore: not defined in schema, as it's only used internally.
86
- actionRights: (_menuLinks$actionRigh = menuLinks.actionRights) !== null && _menuLinks$actionRigh !== void 0 ? _menuLinks$actionRigh : null,
87
- // @ts-ignore: not defined in schema, as it's only used internally.
88
- dataFences: (_menuLinks$dataFences = menuLinks.dataFences) !== null && _menuLinks$dataFences !== void 0 ? _menuLinks$dataFences : null,
89
- submenu: _mapInstanceProperty__default["default"](_context2 = menuLinks.submenuLinks).call(_context2, submenuLink => {
90
- var _context3, _submenuLink$featureT, _submenuLink$menuVisi, _submenuLink$actionRi, _submenuLink$dataFenc;
91
- return {
92
- __typename: 'BaseMenu',
93
- key: _concatInstanceProperty__default["default"](_context3 = "".concat(entryPointUriPath, "-")).call(_context3, submenuLink.uriPath),
94
- uriPath: submenuLink.uriPath,
95
- labelAllLocales: mapLabelAllLocalesWithDefaults(submenuLink.labelAllLocales, submenuLink.defaultLabel),
96
- permissions: submenuLink.permissions,
97
- // @ts-ignore: not defined in schema, as it's only used internally.
98
- featureToggle: (_submenuLink$featureT = submenuLink.featureToggle) !== null && _submenuLink$featureT !== void 0 ? _submenuLink$featureT : null,
99
- // @ts-ignore: not defined in schema, as it's only used internally.
100
- menuVisibility: (_submenuLink$menuVisi = submenuLink.menuVisibility) !== null && _submenuLink$menuVisi !== void 0 ? _submenuLink$menuVisi : null,
101
- // @ts-ignore: not defined in schema, as it's only used internally.
102
- actionRights: (_submenuLink$actionRi = submenuLink.actionRights) !== null && _submenuLink$actionRi !== void 0 ? _submenuLink$actionRi : null,
103
- // @ts-ignore: not defined in schema, as it's only used internally.
104
- dataFences: (_submenuLink$dataFenc = submenuLink.dataFences) !== null && _submenuLink$dataFenc !== void 0 ? _submenuLink$dataFenc : null
105
- };
106
- })
74
+ navBarGroups: menuLinks ? [{
75
+ // for development, the navBarGroup key is set to '2' since all Custom Applications belong to the second Navbar group.
76
+ key: '2',
77
+ items: [{
78
+ __typename: 'NavbarMenu',
79
+ key: entryPointUriPath,
80
+ uriPath: entryPointUriPath,
81
+ icon: menuLinks.icon,
82
+ labelAllLocales: mapLabelAllLocalesWithDefaults(menuLinks.labelAllLocales, menuLinks.defaultLabel),
83
+ permissions: menuLinks.permissions,
84
+ // @ts-ignore: not defined in schema, as it's only used internally.
85
+ featureToggle: (_menuLinks$featureTog = menuLinks.featureToggle) !== null && _menuLinks$featureTog !== void 0 ? _menuLinks$featureTog : null,
86
+ // @ts-ignore: not defined in schema, as it's only used internally.
87
+ menuVisibility: (_menuLinks$menuVisibi = menuLinks.menuVisibility) !== null && _menuLinks$menuVisibi !== void 0 ? _menuLinks$menuVisibi : null,
88
+ // @ts-ignore: not defined in schema, as it's only used internally.
89
+ actionRights: (_menuLinks$actionRigh = menuLinks.actionRights) !== null && _menuLinks$actionRigh !== void 0 ? _menuLinks$actionRigh : null,
90
+ // @ts-ignore: not defined in schema, as it's only used internally.
91
+ dataFences: (_menuLinks$dataFences = menuLinks.dataFences) !== null && _menuLinks$dataFences !== void 0 ? _menuLinks$dataFences : null,
92
+ submenu: _mapInstanceProperty__default["default"](_context2 = menuLinks.submenuLinks).call(_context2, submenuLink => {
93
+ var _context3, _submenuLink$featureT, _submenuLink$menuVisi, _submenuLink$actionRi, _submenuLink$dataFenc;
94
+ return {
95
+ __typename: 'BaseMenu',
96
+ key: _concatInstanceProperty__default["default"](_context3 = "".concat(entryPointUriPath, "-")).call(_context3, submenuLink.uriPath),
97
+ uriPath: submenuLink.uriPath,
98
+ labelAllLocales: mapLabelAllLocalesWithDefaults(submenuLink.labelAllLocales, submenuLink.defaultLabel),
99
+ permissions: submenuLink.permissions,
100
+ // @ts-ignore: not defined in schema, as it's only used internally.
101
+ featureToggle: (_submenuLink$featureT = submenuLink.featureToggle) !== null && _submenuLink$featureT !== void 0 ? _submenuLink$featureT : null,
102
+ // @ts-ignore: not defined in schema, as it's only used internally.
103
+ menuVisibility: (_submenuLink$menuVisi = submenuLink.menuVisibility) !== null && _submenuLink$menuVisi !== void 0 ? _submenuLink$menuVisi : null,
104
+ // @ts-ignore: not defined in schema, as it's only used internally.
105
+ actionRights: (_submenuLink$actionRi = submenuLink.actionRights) !== null && _submenuLink$actionRi !== void 0 ? _submenuLink$actionRi : null,
106
+ // @ts-ignore: not defined in schema, as it's only used internally.
107
+ dataFences: (_submenuLink$dataFenc = submenuLink.dataFences) !== null && _submenuLink$dataFenc !== void 0 ? _submenuLink$dataFenc : null
108
+ };
109
+ })
110
+ }]
107
111
  }] : [],
108
112
  appBar: _mapInstanceProperty__default["default"](accountLinks).call(accountLinks, menuLink => {
109
113
  var _menuLink$featureTogg;
@@ -32,7 +32,7 @@ var designSystem = require('@commercetools-uikit/design-system');
32
32
  var Spacings = require('@commercetools-uikit/spacings');
33
33
  var Text = require('@commercetools-uikit/text');
34
34
  var oidc = require('./oidc-7c48215c.cjs.dev.js');
35
- var useApplicationsMenu = require('./use-applications-menu-c03f484f.cjs.dev.js');
35
+ var useApplicationsMenu = require('./use-applications-menu-2fe3d465.cjs.dev.js');
36
36
  var jsxRuntime = require('@emotion/react/jsx-runtime');
37
37
  require('@babel/runtime-corejs3/core-js-stable/instance/concat');
38
38
  require('@apollo/client');
@@ -32,7 +32,7 @@ var designSystem = require('@commercetools-uikit/design-system');
32
32
  var Spacings = require('@commercetools-uikit/spacings');
33
33
  var Text = require('@commercetools-uikit/text');
34
34
  var oidc = require('./oidc-b070ff6c.cjs.prod.js');
35
- var useApplicationsMenu = require('./use-applications-menu-10d6d71b.cjs.prod.js');
35
+ var useApplicationsMenu = require('./use-applications-menu-0d3f4ffc.cjs.prod.js');
36
36
  var jsxRuntime = require('@emotion/react/jsx-runtime');
37
37
  require('@babel/runtime-corejs3/core-js-stable/instance/concat');
38
38
  require('@apollo/client');
@@ -30,7 +30,7 @@ import { designTokens } from '@commercetools-uikit/design-system';
30
30
  import Spacings from '@commercetools-uikit/spacings';
31
31
  import Text from '@commercetools-uikit/text';
32
32
  import { D as DIMENSIONS } from './oidc-da8526e3.esm.js';
33
- import { u as useApplicationsMenu } from './use-applications-menu-902e4f5f.esm.js';
33
+ import { u as useApplicationsMenu } from './use-applications-menu-03759eab.esm.js';
34
34
  import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
35
35
  import '@babel/runtime-corejs3/core-js-stable/instance/concat';
36
36
  import '@apollo/client';