@commercetools-frontend/application-shell 22.4.0 → 22.5.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 (76) hide show
  1. package/dist/{application-entry-point-a3327f4e.cjs.prod.js → application-entry-point-98c4a247.cjs.prod.js} +1 -1
  2. package/dist/{application-entry-point-8ce63730.cjs.dev.js → application-entry-point-b9ed252b.cjs.dev.js} +1 -1
  3. package/dist/{application-entry-point-91f3f4e0.esm.js → application-entry-point-c3884344.esm.js} +1 -1
  4. package/dist/commercetools-frontend-application-shell.cjs.dev.js +4 -4
  5. package/dist/commercetools-frontend-application-shell.cjs.prod.js +4 -4
  6. package/dist/commercetools-frontend-application-shell.esm.js +4 -4
  7. package/dist/{configure-apollo-ca853ad3.cjs.prod.js → configure-apollo-235efa51.cjs.prod.js} +2 -2
  8. package/dist/{configure-apollo-224c15bf.cjs.dev.js → configure-apollo-4187db53.cjs.dev.js} +2 -2
  9. package/dist/{configure-apollo-d347769e.esm.js → configure-apollo-5baefe27.esm.js} +2 -2
  10. package/dist/{constants-539514a6.cjs.prod.js → constants-4408614d.cjs.prod.js} +1 -0
  11. package/dist/{constants-16199962.esm.js → constants-55f41c8c.esm.js} +1 -0
  12. package/dist/{constants-e1225230.cjs.dev.js → constants-5c1ecb73.cjs.dev.js} +1 -0
  13. package/dist/declarations/src/components/navbar/index.d.ts +1 -0
  14. package/dist/declarations/src/constants.d.ts +1 -0
  15. package/dist/declarations/src/types/generated/ctp.d.ts +2152 -219
  16. package/dist/declarations/src/types/generated/mc.d.ts +20 -4
  17. package/dist/declarations/src/types/generated/settings.d.ts +27 -0
  18. package/dist/declarations/src/utils/oidc.d.ts +1 -0
  19. package/dist/{index-449a0b19.cjs.dev.js → index-31dd568f.cjs.dev.js} +16 -15
  20. package/dist/{index-4d7aff8d.cjs.prod.js → index-53b461f0.cjs.prod.js} +16 -15
  21. package/dist/{index-428ee834.esm.js → index-937934ba.esm.js} +16 -15
  22. package/dist/{navbar-eb3817d3.cjs.prod.js → navbar-766fb0fd.cjs.prod.js} +5 -5
  23. package/dist/{navbar-422a63fd.cjs.dev.js → navbar-80df957b.cjs.dev.js} +5 -5
  24. package/dist/{navbar-4448734c.esm.js → navbar-a5c6bfcb.esm.js} +5 -5
  25. package/dist/{oidc-7b43f6c0.cjs.dev.js → oidc-3376ec84.cjs.dev.js} +6 -2
  26. package/dist/{oidc-cd2edc3c.esm.js → oidc-38887b2d.esm.js} +6 -2
  27. package/dist/{oidc-73f8d7c7.cjs.prod.js → oidc-3a2cf8b3.cjs.prod.js} +6 -2
  28. package/dist/{oidc-callback-5c3f11b1.cjs.prod.js → oidc-callback-d31b1579.cjs.prod.js} +4 -4
  29. package/dist/{oidc-callback-b3bf5eea.esm.js → oidc-callback-d408517e.esm.js} +4 -4
  30. package/dist/{oidc-callback-82f92783.cjs.dev.js → oidc-callback-f46de3c1.cjs.dev.js} +4 -4
  31. package/dist/{project-container-d06edf3c.cjs.prod.js → project-container-5c3c1313.cjs.prod.js} +9 -9
  32. package/dist/{project-container-1b8dfa84.esm.js → project-container-a905608b.esm.js} +9 -9
  33. package/dist/{project-container-573ab51d.cjs.dev.js → project-container-b35d260e.cjs.dev.js} +9 -9
  34. package/dist/{project-expired-4a9c9b7c.cjs.prod.js → project-expired-1a5269ad.cjs.prod.js} +5 -5
  35. package/dist/{project-expired-5449c9ce.esm.js → project-expired-2569ae58.esm.js} +5 -5
  36. package/dist/{project-expired-fc99f8e1.cjs.dev.js → project-expired-b956df4c.cjs.dev.js} +5 -5
  37. package/dist/{project-not-found-c9a93e94.cjs.dev.js → project-not-found-0bc6b9f7.cjs.dev.js} +5 -5
  38. package/dist/{project-not-found-ebad0784.esm.js → project-not-found-60750783.esm.js} +5 -5
  39. package/dist/{project-not-found-53be23f8.cjs.prod.js → project-not-found-cf2cc554.cjs.prod.js} +5 -5
  40. package/dist/{project-not-initialized-9d8b1f41.cjs.dev.js → project-not-initialized-191aa18a.cjs.dev.js} +5 -5
  41. package/dist/{project-not-initialized-5ac81acf.cjs.prod.js → project-not-initialized-75f5537a.cjs.prod.js} +5 -5
  42. package/dist/{project-not-initialized-e7420ae4.esm.js → project-not-initialized-f2578daa.esm.js} +5 -5
  43. package/dist/{project-suspended-858997b5.cjs.prod.js → project-suspended-4c195259.cjs.prod.js} +5 -5
  44. package/dist/{project-suspended-ae6be238.esm.js → project-suspended-873c47c2.esm.js} +5 -5
  45. package/dist/{project-suspended-aadbc421.cjs.dev.js → project-suspended-f66a1459.cjs.dev.js} +5 -5
  46. package/dist/{quick-access-83a410fc.esm.js → quick-access-34af5278.esm.js} +4 -4
  47. package/dist/{quick-access-388272f6.cjs.prod.js → quick-access-567cd0e8.cjs.prod.js} +4 -4
  48. package/dist/{quick-access-2166c70b.cjs.dev.js → quick-access-923ce592.cjs.dev.js} +4 -4
  49. package/dist/{redirect-to-login-215259ac.esm.js → redirect-to-login-07eb52a4.esm.js} +7 -6
  50. package/dist/{redirect-to-login-f8abbec8.cjs.prod.js → redirect-to-login-5710f920.cjs.prod.js} +7 -6
  51. package/dist/{redirect-to-login-d71732d8.cjs.dev.js → redirect-to-login-7d02dc5b.cjs.dev.js} +7 -6
  52. package/dist/{redirect-to-logout-b03744bb.esm.js → redirect-to-logout-bebe4068.esm.js} +4 -4
  53. package/dist/{redirect-to-logout-d0f4a461.cjs.prod.js → redirect-to-logout-cc82cee3.cjs.prod.js} +4 -4
  54. package/dist/{redirect-to-logout-632a89d0.cjs.dev.js → redirect-to-logout-e3b14844.cjs.dev.js} +4 -4
  55. package/dist/{requests-in-flight-loader-ebb28f2c.cjs.prod.js → requests-in-flight-loader-4d55dd23.cjs.prod.js} +4 -4
  56. package/dist/{requests-in-flight-loader-e5229e4a.cjs.dev.js → requests-in-flight-loader-81315c1b.cjs.dev.js} +4 -4
  57. package/dist/{requests-in-flight-loader-07c3e208.esm.js → requests-in-flight-loader-f87c011b.esm.js} +4 -4
  58. package/dist/{service-page-project-switcher-4a63922f.cjs.dev.js → service-page-project-switcher-1f88b9ef.cjs.dev.js} +1 -1
  59. package/dist/{service-page-project-switcher-7b697042.esm.js → service-page-project-switcher-c0df9b6e.esm.js} +1 -1
  60. package/dist/{service-page-project-switcher-22cbbfad.cjs.prod.js → service-page-project-switcher-e1562491.cjs.prod.js} +1 -1
  61. package/dist/{use-applications-menu-5a349e4a.esm.js → use-applications-menu-435f0838.esm.js} +1 -1
  62. package/dist/{use-applications-menu-dcc6949b.cjs.prod.js → use-applications-menu-862cdf4b.cjs.prod.js} +1 -1
  63. package/dist/{use-applications-menu-77d54fc8.cjs.dev.js → use-applications-menu-8857654a.cjs.dev.js} +1 -1
  64. package/dist/{user-settings-menu-ab8697fe.cjs.dev.js → user-settings-menu-7aec4a5a.cjs.dev.js} +5 -5
  65. package/dist/{user-settings-menu-7140393c.cjs.prod.js → user-settings-menu-d5d5dba3.cjs.prod.js} +5 -5
  66. package/dist/{user-settings-menu-840f92bd.esm.js → user-settings-menu-ff17aa78.esm.js} +5 -5
  67. package/dist/{version-tracker-7526b2f4.cjs.dev.js → version-tracker-7df81f43.cjs.dev.js} +2 -2
  68. package/dist/{version-tracker-fa881678.esm.js → version-tracker-9ca66a1c.esm.js} +2 -2
  69. package/dist/{version-tracker-bf9b7dd3.cjs.prod.js → version-tracker-b4681839.cjs.prod.js} +2 -2
  70. package/package.json +16 -16
  71. package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +2 -2
  72. package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +2 -2
  73. package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +2 -2
  74. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +3 -3
  75. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +3 -3
  76. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +3 -3
@@ -1,4 +1,4 @@
1
- import { g as getMcApiUrl, s as setActiveProjectKey, a as selectProjectKeyFromUrl, R as RouteCatchAll, b as getActiveProjectKey, r as removeActiveProjectKey, c as getSessionScope, d as createApolloClient, i as internalReduxStore, e as setCachedApolloClient, f as applicationShellVersion } from './configure-apollo-d347769e.esm.js';
1
+ import { g as getMcApiUrl, s as setActiveProjectKey, a as selectProjectKeyFromUrl, R as RouteCatchAll, b as getActiveProjectKey, r as removeActiveProjectKey, c as getSessionScope, d as createApolloClient, i as internalReduxStore, e as setCachedApolloClient, f as applicationShellVersion } from './configure-apollo-5baefe27.esm.js';
2
2
  import _pt from 'prop-types';
3
3
  import { lazy, useEffect, forwardRef, useLayoutEffect, useRef, useState, useCallback, Component, Suspense, useMemo } from 'react';
4
4
  import { NavLink, useLocation, Route, Switch, Redirect, Router, useRouteMatch, useHistory, generatePath } from 'react-router-dom';
@@ -22,7 +22,7 @@ import { GRAPHQL_TARGETS, NO_VALUE_FALLBACK, LOGOUT_REASONS, DOMAINS } from '@co
22
22
  import { AsyncLocaleData } from '@commercetools-frontend/i18n';
23
23
  import { NotificationsList } from '@commercetools-frontend/react-notifications';
24
24
  import { reportErrorToSentry, SentryUserTracker, boot } from '@commercetools-frontend/sentry';
25
- import { S as STORAGE_KEYS, D as DIMENSIONS, C as CONTAINERS, O as OIDC_CLAIMS } from './constants-16199962.esm.js';
25
+ import { S as STORAGE_KEYS, D as DIMENSIONS, C as CONTAINERS, O as OIDC_CLAIMS } from './constants-55f41c8c.esm.js';
26
26
  import 'uuid';
27
27
  import '@babel/runtime-corejs3/core-js-stable/url';
28
28
  import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
@@ -71,14 +71,14 @@ import ldAdapter from '@flopflip/launchdarkly-adapter';
71
71
  import _reduceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/reduce';
72
72
  import { Provider, useStore } from 'react-redux';
73
73
  import upperFirst from 'lodash/upperFirst';
74
- import { b as buildOidcScope } from './oidc-cd2edc3c.esm.js';
74
+ import { b as buildOidcScope } from './oidc-38887b2d.esm.js';
75
75
  import '@commercetools-uikit/design-system/materials/resets.css';
76
76
  import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
77
77
  import _someInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/some';
78
78
  import { showUnexpectedErrorNotification } from '@commercetools-frontend/actions-global';
79
79
  import '@commercetools-frontend/application-config/ssr';
80
80
 
81
- const RequestsInFlightLoader = /*#__PURE__*/lazy(() => import('./requests-in-flight-loader-07c3e208.esm.js' /* webpackChunkName: "requests-in-flight-loader" */));
81
+ const RequestsInFlightLoader = /*#__PURE__*/lazy(() => import('./requests-in-flight-loader-f87c011b.esm.js' /* webpackChunkName: "requests-in-flight-loader" */));
82
82
 
83
83
  // Attempt to load the `projectKey` from localStorage
84
84
  function selectProjectKeyFromLocalStorage() {
@@ -386,7 +386,7 @@ ProjectSwitcher.displayName = 'ProjectSwitcher';
386
386
  // eslint-disable-next-line import/prefer-default-export
387
387
  const REQUESTS_IN_FLIGHT_LOADER_DOM_ID = 'loader-for-requests-in-flight';
388
388
 
389
- const UserSettingsMenu = /*#__PURE__*/lazy(() => import('./user-settings-menu-840f92bd.esm.js' /* webpackChunkName: "user-settings-menu" */));
389
+ const UserSettingsMenu = /*#__PURE__*/lazy(() => import('./user-settings-menu-ff17aa78.esm.js' /* webpackChunkName: "user-settings-menu" */));
390
390
 
391
391
  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)."; }
392
392
  var _ref$1 = process.env.NODE_ENV === "production" ? {
@@ -537,7 +537,7 @@ ConfigureIntlProvider.displayName = 'ConfigureIntlProvider';
537
537
 
538
538
  const ErrorApologizer = /*#__PURE__*/lazy(() => import('./error-apologizer-e5c28e4c.esm.js' /* webpackChunkName: "error-apologizer" */));
539
539
 
540
- 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: "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: [] }] } }] } }] } }], loc: { start: 0, end: 997, 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 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 }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
540
+ 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: "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: [] }] } }] } }], loc: { start: 0, end: 1025, 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 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 }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
541
541
  const FetchProject = props => {
542
542
  const _useMcQuery = useMcQuery(ProjectQuery, {
543
543
  onError: reportErrorToSentry,
@@ -591,7 +591,7 @@ FetchUser.propTypes = {
591
591
  };
592
592
  FetchUser.displayName = 'FetchUser';
593
593
 
594
- const Navbar = /*#__PURE__*/lazy(() => import('./navbar-4448734c.esm.js' /* webpackChunkName: "navbar" */));
594
+ const Navbar = /*#__PURE__*/lazy(() => import('./navbar-a5c6bfcb.esm.js' /* webpackChunkName: "navbar" */));
595
595
 
596
596
  const _excluded = ["icon"];
597
597
  function ownKeys$7(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -1027,7 +1027,7 @@ const LoadingNavBar = () => {
1027
1027
  };
1028
1028
  LoadingNavBar.displayName = 'LoadingNavBar';
1029
1029
 
1030
- const ProjectContainer = /*#__PURE__*/lazy(() => import('./project-container-1b8dfa84.esm.js' /* webpackChunkName: "project-container" */));
1030
+ const ProjectContainer = /*#__PURE__*/lazy(() => import('./project-container-a905608b.esm.js' /* webpackChunkName: "project-container" */));
1031
1031
 
1032
1032
  const getSelectedDataLocaleForProject = projectLocales => {
1033
1033
  const cachedDataLocale = window.localStorage.getItem(STORAGE_KEYS.SELECTED_DATA_LOCALE);
@@ -1151,7 +1151,7 @@ var pimIndexerStates = {
1151
1151
  NOT_INDEXED: 'NOT_INDEXED'
1152
1152
  };
1153
1153
 
1154
- const QuickAccess = /*#__PURE__*/lazy(() => import('./quick-access-83a410fc.esm.js' /* webpackChunkName: "quick-access" */));
1154
+ const QuickAccess = /*#__PURE__*/lazy(() => import('./quick-access-34af5278.esm.js' /* webpackChunkName: "quick-access" */));
1155
1155
 
1156
1156
  const QuickAccessTrigger = props => {
1157
1157
  const _useState = useState(false),
@@ -1240,7 +1240,7 @@ QuickAccessTrigger.propTypes = process.env.NODE_ENV !== "production" ? {
1240
1240
  } : {};
1241
1241
  QuickAccessTrigger.displayName = 'QuickAccessTrigger';
1242
1242
 
1243
- const RedirectToLogout = /*#__PURE__*/lazy(() => import('./redirect-to-logout-b03744bb.esm.js' /* webpackChunkName: "redirect-to-logout" */));
1243
+ const RedirectToLogout = /*#__PURE__*/lazy(() => import('./redirect-to-logout-bebe4068.esm.js' /* webpackChunkName: "redirect-to-logout" */));
1244
1244
 
1245
1245
  const RedirectToProjectCreate = /*#__PURE__*/lazy(() => import('./redirect-to-project-create-c5323504.esm.js' /* webpackChunkName: "redirect-to-project-create" */));
1246
1246
 
@@ -1412,7 +1412,7 @@ const ThemeSwitcher = () => {
1412
1412
  });
1413
1413
  };
1414
1414
 
1415
- const VersionTracker = /*#__PURE__*/lazy(() => import('./version-tracker-fa881678.esm.js' /* webpackChunkName: "version-tracker" */));
1415
+ const VersionTracker = /*#__PURE__*/lazy(() => import('./version-tracker-9ca66a1c.esm.js' /* webpackChunkName: "version-tracker" */));
1416
1416
 
1417
1417
  function ownKeys$4(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1418
1418
  function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$4(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$4(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -1864,7 +1864,7 @@ const hasCachedAuthenticationState = () => {
1864
1864
  var _window$app$__DEVELOP, _window$app$__DEVELOP2;
1865
1865
  if ((_window$app$__DEVELOP = window.app.__DEVELOPMENT__) !== null && _window$app$__DEVELOP !== void 0 && (_window$app$__DEVELOP2 = _window$app$__DEVELOP.oidc) !== null && _window$app$__DEVELOP2 !== void 0 && _window$app$__DEVELOP2.authorizeUrl) {
1866
1866
  try {
1867
- var _window$app$__DEVELOP9, _window$app$__DEVELOP10, _window$app$__DEVELOP11, _window$app$__DEVELOP12, _window$app$__DEVELOP13, _window$app$__DEVELOP14;
1867
+ var _window$app$__DEVELOP9, _window$app$__DEVELOP10, _window$app$__DEVELOP11, _window$app$__DEVELOP12, _window$app$__DEVELOP13, _window$app$__DEVELOP14, _window$app$__DEVELOP15, _window$app$__DEVELOP16;
1868
1868
  const activeProjectKey = getActiveProjectKey();
1869
1869
  if (activeProjectKey) {
1870
1870
  var _window$app$__DEVELOP3, _window$app$__DEVELOP4;
@@ -1900,7 +1900,8 @@ const hasCachedAuthenticationState = () => {
1900
1900
  projectKey: activeProjectKey !== null && activeProjectKey !== void 0 ? activeProjectKey : undefined,
1901
1901
  oAuthScopes: (_window$app$__DEVELOP9 = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP9 === void 0 ? void 0 : (_window$app$__DEVELOP10 = _window$app$__DEVELOP9.oidc) === null || _window$app$__DEVELOP10 === void 0 ? void 0 : _window$app$__DEVELOP10.oAuthScopes,
1902
1902
  additionalOAuthScopes: (_window$app$__DEVELOP11 = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP11 === void 0 ? void 0 : (_window$app$__DEVELOP12 = _window$app$__DEVELOP11.oidc) === null || _window$app$__DEVELOP12 === void 0 ? void 0 : _window$app$__DEVELOP12.additionalOAuthScopes,
1903
- teamId: (_window$app$__DEVELOP13 = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP13 === void 0 ? void 0 : (_window$app$__DEVELOP14 = _window$app$__DEVELOP13.oidc) === null || _window$app$__DEVELOP14 === void 0 ? void 0 : _window$app$__DEVELOP14.teamId
1903
+ teamId: (_window$app$__DEVELOP13 = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP13 === void 0 ? void 0 : (_window$app$__DEVELOP14 = _window$app$__DEVELOP13.oidc) === null || _window$app$__DEVELOP14 === void 0 ? void 0 : _window$app$__DEVELOP14.teamId,
1904
+ applicationId: (_window$app$__DEVELOP15 = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP15 === void 0 ? void 0 : (_window$app$__DEVELOP16 = _window$app$__DEVELOP15.oidc) === null || _window$app$__DEVELOP16 === void 0 ? void 0 : _window$app$__DEVELOP16.applicationId
1904
1905
  });
1905
1906
  // Omit the project key from the check. This allows to switch projects
1906
1907
  // without having to log in again.
@@ -1918,7 +1919,7 @@ const hasCachedAuthenticationState = () => {
1918
1919
  return window.localStorage.getItem(STORAGE_KEYS.IS_AUTHENTICATED) === 'true';
1919
1920
  };
1920
1921
 
1921
- const OidcCallback = /*#__PURE__*/lazy(() => import('./oidc-callback-b3bf5eea.esm.js' /* webpackChunkName: "oidc-callback" */));
1922
+ const OidcCallback = /*#__PURE__*/lazy(() => import('./oidc-callback-d408517e.esm.js' /* webpackChunkName: "oidc-callback" */));
1922
1923
 
1923
1924
  function ownKeys$2(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1924
1925
  function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$2(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$2(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -2071,7 +2072,7 @@ ApplicationShellProvider.propTypes = process.env.NODE_ENV !== "production" ? {
2071
2072
  } : {};
2072
2073
  ApplicationShellProvider.displayName = 'ApplicationShellProvider';
2073
2074
 
2074
- const RedirectToLogin = /*#__PURE__*/lazy(() => import('./redirect-to-login-215259ac.esm.js' /* webpackChunkName: "redirect-to-login" */));
2075
+ const RedirectToLogin = /*#__PURE__*/lazy(() => import('./redirect-to-login-07eb52a4.esm.js' /* webpackChunkName: "redirect-to-login" */));
2075
2076
 
2076
2077
  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)."; }
2077
2078
  const styles = process.env.NODE_ENV === "production" ? {
@@ -20,15 +20,15 @@ var reactRouterDom = require('react-router-dom');
20
20
  var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
21
21
  var constants = require('@commercetools-frontend/constants');
22
22
  var icons = require('@commercetools-uikit/icons');
23
- var dist_commercetoolsFrontendApplicationShell = require('./index-4d7aff8d.cjs.prod.js');
23
+ var dist_commercetoolsFrontendApplicationShell = require('./index-53b461f0.cjs.prod.js');
24
24
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
25
25
  var isNil = require('lodash/isNil');
26
26
  var throttle = require('lodash/throttle');
27
27
  var sentry = require('@commercetools-frontend/sentry');
28
- var constants$1 = require('./constants-539514a6.cjs.prod.js');
29
- var useApplicationsMenu = require('./use-applications-menu-dcc6949b.cjs.prod.js');
28
+ var constants$1 = require('./constants-4408614d.cjs.prod.js');
29
+ var useApplicationsMenu = require('./use-applications-menu-862cdf4b.cjs.prod.js');
30
30
  var jsxRuntime = require('@emotion/react/jsx-runtime');
31
- require('./configure-apollo-ca853ad3.cjs.prod.js');
31
+ require('./configure-apollo-235efa51.cjs.prod.js');
32
32
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
33
33
  require('@babel/runtime-corejs3/core-js-stable/object/entries');
34
34
  require('@babel/runtime-corejs3/core-js-stable/reflect/has');
@@ -95,7 +95,7 @@ require('@flopflip/http-adapter');
95
95
  require('@flopflip/launchdarkly-adapter');
96
96
  require('react-redux');
97
97
  require('lodash/upperFirst');
98
- require('./oidc-73f8d7c7.cjs.prod.js');
98
+ require('./oidc-3a2cf8b3.cjs.prod.js');
99
99
  require('@commercetools-uikit/design-system/materials/resets.css');
100
100
  require('@commercetools-frontend/actions-global');
101
101
  require('@commercetools-frontend/application-config/ssr');
@@ -20,15 +20,15 @@ var reactRouterDom = require('react-router-dom');
20
20
  var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
21
21
  var constants = require('@commercetools-frontend/constants');
22
22
  var icons = require('@commercetools-uikit/icons');
23
- var dist_commercetoolsFrontendApplicationShell = require('./index-449a0b19.cjs.dev.js');
23
+ var dist_commercetoolsFrontendApplicationShell = require('./index-31dd568f.cjs.dev.js');
24
24
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
25
25
  var isNil = require('lodash/isNil');
26
26
  var throttle = require('lodash/throttle');
27
27
  var sentry = require('@commercetools-frontend/sentry');
28
- var constants$1 = require('./constants-e1225230.cjs.dev.js');
29
- var useApplicationsMenu = require('./use-applications-menu-77d54fc8.cjs.dev.js');
28
+ var constants$1 = require('./constants-5c1ecb73.cjs.dev.js');
29
+ var useApplicationsMenu = require('./use-applications-menu-8857654a.cjs.dev.js');
30
30
  var jsxRuntime = require('@emotion/react/jsx-runtime');
31
- require('./configure-apollo-224c15bf.cjs.dev.js');
31
+ require('./configure-apollo-4187db53.cjs.dev.js');
32
32
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
33
33
  require('@babel/runtime-corejs3/core-js-stable/object/entries');
34
34
  require('@babel/runtime-corejs3/core-js-stable/reflect/has');
@@ -95,7 +95,7 @@ require('@flopflip/http-adapter');
95
95
  require('@flopflip/launchdarkly-adapter');
96
96
  require('react-redux');
97
97
  require('lodash/upperFirst');
98
- require('./oidc-7b43f6c0.cjs.dev.js');
98
+ require('./oidc-3376ec84.cjs.dev.js');
99
99
  require('@commercetools-uikit/design-system/materials/resets.css');
100
100
  require('@commercetools-frontend/actions-global');
101
101
  require('@commercetools-frontend/application-config/ssr');
@@ -18,15 +18,15 @@ import { useLocation, matchPath } from 'react-router-dom';
18
18
  import { normalizeAllAppliedPermissions, normalizeAllAppliedActionRights, normalizeAllAppliedDataFences, normalizeAllAppliedMenuVisibilities } from '@commercetools-frontend/application-shell-connectors';
19
19
  import { GRAPHQL_TARGETS, SUPPORT_PORTAL_URL } from '@commercetools-frontend/constants';
20
20
  import { SupportIcon } from '@commercetools-uikit/icons';
21
- import { u as useMcQuery, N as NavBarLayout, M as MenuGroup, a as MenuItemDivider, F as Faded, b as MenuItem, c as MenuExpander, d as RestrictedMenuItem, e as MenuItemLink, I as IconSwitcher, f as MenuLabel } from './index-428ee834.esm.js';
21
+ import { u as useMcQuery, N as NavBarLayout, M as MenuGroup, a as MenuItemDivider, F as Faded, b as MenuItem, c as MenuExpander, d as RestrictedMenuItem, e as MenuItemLink, I as IconSwitcher, f as MenuLabel } from './index-937934ba.esm.js';
22
22
  import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
23
23
  import isNil from 'lodash/isNil';
24
24
  import throttle from 'lodash/throttle';
25
25
  import { reportErrorToSentry } from '@commercetools-frontend/sentry';
26
- import { S as STORAGE_KEYS } from './constants-16199962.esm.js';
27
- import { u as useApplicationsMenu } from './use-applications-menu-5a349e4a.esm.js';
26
+ import { S as STORAGE_KEYS } from './constants-55f41c8c.esm.js';
27
+ import { u as useApplicationsMenu } from './use-applications-menu-435f0838.esm.js';
28
28
  import { jsx, jsxs } from '@emotion/react/jsx-runtime';
29
- import './configure-apollo-d347769e.esm.js';
29
+ import './configure-apollo-5baefe27.esm.js';
30
30
  import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
31
31
  import '@babel/runtime-corejs3/core-js-stable/object/entries';
32
32
  import '@babel/runtime-corejs3/core-js-stable/reflect/has';
@@ -93,7 +93,7 @@ import '@flopflip/http-adapter';
93
93
  import '@flopflip/launchdarkly-adapter';
94
94
  import 'react-redux';
95
95
  import 'lodash/upperFirst';
96
- import './oidc-cd2edc3c.esm.js';
96
+ import './oidc-38887b2d.esm.js';
97
97
  import '@commercetools-uikit/design-system/materials/resets.css';
98
98
  import '@commercetools-frontend/actions-global';
99
99
  import '@commercetools-frontend/application-config/ssr';
@@ -3,7 +3,7 @@
3
3
  var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
4
4
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
5
5
  var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
6
- var constants = require('./constants-e1225230.cjs.dev.js');
6
+ var constants = require('./constants-5c1ecb73.cjs.dev.js');
7
7
 
8
8
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
9
9
 
@@ -45,10 +45,14 @@ const buildOidcScope = options => {
45
45
  });
46
46
  }
47
47
 
48
- // Set the teamId
48
+ // Set the teamId and applicationId
49
49
  if (options.teamId) {
50
50
  var _context11;
51
51
  claims.push(_concatInstanceProperty__default["default"](_context11 = "".concat(constants.OIDC_CLAIMS.TEAM_ID, ":")).call(_context11, options.teamId));
52
+ if (options.applicationId) {
53
+ var _context12;
54
+ claims.push(_concatInstanceProperty__default["default"](_context12 = "".concat(constants.OIDC_CLAIMS.APPLICATION_ID, ":")).call(_context12, options.applicationId));
55
+ }
52
56
  }
53
57
  return [
54
58
  // This is required as per OIDC spec.
@@ -1,7 +1,7 @@
1
1
  import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
2
2
  import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
3
3
  import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/for-each';
4
- import { O as OIDC_CLAIMS } from './constants-16199962.esm.js';
4
+ import { O as OIDC_CLAIMS } from './constants-55f41c8c.esm.js';
5
5
 
6
6
  const buildOidcScope = options => {
7
7
  var _context2, _options$oAuthScopes$, _options$oAuthScopes, _context4, _options$oAuthScopes$2, _options$oAuthScopes2;
@@ -37,10 +37,14 @@ const buildOidcScope = options => {
37
37
  });
38
38
  }
39
39
 
40
- // Set the teamId
40
+ // Set the teamId and applicationId
41
41
  if (options.teamId) {
42
42
  var _context11;
43
43
  claims.push(_concatInstanceProperty(_context11 = "".concat(OIDC_CLAIMS.TEAM_ID, ":")).call(_context11, options.teamId));
44
+ if (options.applicationId) {
45
+ var _context12;
46
+ claims.push(_concatInstanceProperty(_context12 = "".concat(OIDC_CLAIMS.APPLICATION_ID, ":")).call(_context12, options.applicationId));
47
+ }
44
48
  }
45
49
  return [
46
50
  // This is required as per OIDC spec.
@@ -3,7 +3,7 @@
3
3
  var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
4
4
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
5
5
  var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
6
- var constants = require('./constants-539514a6.cjs.prod.js');
6
+ var constants = require('./constants-4408614d.cjs.prod.js');
7
7
 
8
8
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
9
9
 
@@ -45,10 +45,14 @@ const buildOidcScope = options => {
45
45
  });
46
46
  }
47
47
 
48
- // Set the teamId
48
+ // Set the teamId and applicationId
49
49
  if (options.teamId) {
50
50
  var _context11;
51
51
  claims.push(_concatInstanceProperty__default["default"](_context11 = "".concat(constants.OIDC_CLAIMS.TEAM_ID, ":")).call(_context11, options.teamId));
52
+ if (options.applicationId) {
53
+ var _context12;
54
+ claims.push(_concatInstanceProperty__default["default"](_context12 = "".concat(constants.OIDC_CLAIMS.APPLICATION_ID, ":")).call(_context12, options.applicationId));
55
+ }
52
56
  }
53
57
  return [
54
58
  // This is required as per OIDC spec.
@@ -4,7 +4,7 @@ var _URL = require('@babel/runtime-corejs3/core-js-stable/url');
4
4
  var jwtDecode = require('jwt-decode');
5
5
  var qss = require('qss');
6
6
  var reactRouterDom = require('react-router-dom');
7
- var configureApollo = require('./configure-apollo-ca853ad3.cjs.prod.js');
7
+ var configureApollo = require('./configure-apollo-235efa51.cjs.prod.js');
8
8
  var redirector = require('./redirector-ec9fa17f.cjs.prod.js');
9
9
  var _styled = require('@emotion/styled/base');
10
10
  var applicationComponents = require('@commercetools-frontend/application-components');
@@ -18,7 +18,7 @@ var icons = require('@commercetools-uikit/icons');
18
18
  var notifications = require('@commercetools-uikit/notifications');
19
19
  var Spacings = require('@commercetools-uikit/spacings');
20
20
  var Text = require('@commercetools-uikit/text');
21
- var dist_commercetoolsFrontendApplicationShell = require('./index-4d7aff8d.cjs.prod.js');
21
+ var dist_commercetoolsFrontendApplicationShell = require('./index-53b461f0.cjs.prod.js');
22
22
  var jsxRuntime = require('@emotion/react/jsx-runtime');
23
23
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
24
24
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -45,7 +45,7 @@ require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
45
45
  require('@babel/runtime-corejs3/core-js-stable/instance/slice');
46
46
  require('@babel/runtime-corejs3/core-js-stable/instance/includes');
47
47
  require('@commercetools-frontend/sentry');
48
- require('./constants-539514a6.cjs.prod.js');
48
+ require('./constants-4408614d.cjs.prod.js');
49
49
  require('@commercetools-frontend/react-notifications');
50
50
  require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
51
51
  require('redux-logger');
@@ -101,7 +101,7 @@ require('@flopflip/http-adapter');
101
101
  require('@flopflip/launchdarkly-adapter');
102
102
  require('react-redux');
103
103
  require('lodash/upperFirst');
104
- require('./oidc-73f8d7c7.cjs.prod.js');
104
+ require('./oidc-3a2cf8b3.cjs.prod.js');
105
105
  require('@commercetools-uikit/design-system/materials/resets.css');
106
106
  require('@commercetools-frontend/actions-global');
107
107
  require('@commercetools-frontend/application-config/ssr');
@@ -2,7 +2,7 @@ import _URL from '@babel/runtime-corejs3/core-js-stable/url';
2
2
  import jwtDecode from 'jwt-decode';
3
3
  import { decode } from 'qss';
4
4
  import { useHistory, useLocation } from 'react-router-dom';
5
- import { t as getSessionState, u as setActiveSession } from './configure-apollo-d347769e.esm.js';
5
+ import { t as getSessionState, u as setActiveSession } from './configure-apollo-5baefe27.esm.js';
6
6
  import { R as Redirector } from './redirector-368eeb0f.esm.js';
7
7
  import _styled from '@emotion/styled/base';
8
8
  import { themesOverrides, PublicPageLayout } from '@commercetools-frontend/application-components';
@@ -16,7 +16,7 @@ import { AngleLeftIcon } from '@commercetools-uikit/icons';
16
16
  import { ContentNotification } from '@commercetools-uikit/notifications';
17
17
  import Spacings from '@commercetools-uikit/spacings';
18
18
  import Text from '@commercetools-uikit/text';
19
- import { C as ConfigureIntlProvider } from './index-428ee834.esm.js';
19
+ import { C as ConfigureIntlProvider } from './index-937934ba.esm.js';
20
20
  import { jsx, jsxs } from '@emotion/react/jsx-runtime';
21
21
  import '@babel/runtime-corejs3/core-js-stable/object/keys';
22
22
  import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
@@ -43,7 +43,7 @@ import '@babel/runtime-corejs3/core-js-stable/instance/index-of';
43
43
  import '@babel/runtime-corejs3/core-js-stable/instance/slice';
44
44
  import '@babel/runtime-corejs3/core-js-stable/instance/includes';
45
45
  import '@commercetools-frontend/sentry';
46
- import './constants-16199962.esm.js';
46
+ import './constants-55f41c8c.esm.js';
47
47
  import '@commercetools-frontend/react-notifications';
48
48
  import '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
49
49
  import 'redux-logger';
@@ -99,7 +99,7 @@ import '@flopflip/http-adapter';
99
99
  import '@flopflip/launchdarkly-adapter';
100
100
  import 'react-redux';
101
101
  import 'lodash/upperFirst';
102
- import './oidc-cd2edc3c.esm.js';
102
+ import './oidc-38887b2d.esm.js';
103
103
  import '@commercetools-uikit/design-system/materials/resets.css';
104
104
  import '@commercetools-frontend/actions-global';
105
105
  import '@commercetools-frontend/application-config/ssr';
@@ -4,7 +4,7 @@ var _URL = require('@babel/runtime-corejs3/core-js-stable/url');
4
4
  var jwtDecode = require('jwt-decode');
5
5
  var qss = require('qss');
6
6
  var reactRouterDom = require('react-router-dom');
7
- var configureApollo = require('./configure-apollo-224c15bf.cjs.dev.js');
7
+ var configureApollo = require('./configure-apollo-4187db53.cjs.dev.js');
8
8
  var redirector = require('./redirector-f71198cc.cjs.dev.js');
9
9
  var _styled = require('@emotion/styled/base');
10
10
  var applicationComponents = require('@commercetools-frontend/application-components');
@@ -18,7 +18,7 @@ var icons = require('@commercetools-uikit/icons');
18
18
  var notifications = require('@commercetools-uikit/notifications');
19
19
  var Spacings = require('@commercetools-uikit/spacings');
20
20
  var Text = require('@commercetools-uikit/text');
21
- var dist_commercetoolsFrontendApplicationShell = require('./index-449a0b19.cjs.dev.js');
21
+ var dist_commercetoolsFrontendApplicationShell = require('./index-31dd568f.cjs.dev.js');
22
22
  var jsxRuntime = require('@emotion/react/jsx-runtime');
23
23
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
24
24
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -45,7 +45,7 @@ require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
45
45
  require('@babel/runtime-corejs3/core-js-stable/instance/slice');
46
46
  require('@babel/runtime-corejs3/core-js-stable/instance/includes');
47
47
  require('@commercetools-frontend/sentry');
48
- require('./constants-e1225230.cjs.dev.js');
48
+ require('./constants-5c1ecb73.cjs.dev.js');
49
49
  require('@commercetools-frontend/react-notifications');
50
50
  require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
51
51
  require('redux-logger');
@@ -101,7 +101,7 @@ require('@flopflip/http-adapter');
101
101
  require('@flopflip/launchdarkly-adapter');
102
102
  require('react-redux');
103
103
  require('lodash/upperFirst');
104
- require('./oidc-7b43f6c0.cjs.dev.js');
104
+ require('./oidc-3376ec84.cjs.dev.js');
105
105
  require('@commercetools-uikit/design-system/materials/resets.css');
106
106
  require('@commercetools-frontend/actions-global');
107
107
  require('@commercetools-frontend/application-config/ssr');
@@ -10,9 +10,9 @@ var reactRouterDom = require('react-router-dom');
10
10
  var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
11
11
  var constants$1 = require('@commercetools-frontend/constants');
12
12
  var reactNotifications = require('@commercetools-frontend/react-notifications');
13
- var constants = require('./constants-539514a6.cjs.prod.js');
14
- var applicationEntryPoint = require('./application-entry-point-a3327f4e.cjs.prod.js');
15
- var dist_commercetoolsFrontendApplicationShell = require('./index-4d7aff8d.cjs.prod.js');
13
+ var constants = require('./constants-4408614d.cjs.prod.js');
14
+ var applicationEntryPoint = require('./application-entry-point-98c4a247.cjs.prod.js');
15
+ var dist_commercetoolsFrontendApplicationShell = require('./index-53b461f0.cjs.prod.js');
16
16
  var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
17
17
  var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
18
18
  var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
@@ -33,7 +33,7 @@ require('tiny-invariant');
33
33
  require('@commercetools-frontend/application-components');
34
34
  require('@commercetools-frontend/application-config/ssr');
35
35
  require('@commercetools-frontend/permissions');
36
- require('./configure-apollo-ca853ad3.cjs.prod.js');
36
+ require('./configure-apollo-235efa51.cjs.prod.js');
37
37
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
38
38
  require('@babel/runtime-corejs3/core-js-stable/object/entries');
39
39
  require('@babel/runtime-corejs3/core-js-stable/reflect/has');
@@ -97,7 +97,7 @@ require('@flopflip/http-adapter');
97
97
  require('@flopflip/launchdarkly-adapter');
98
98
  require('react-redux');
99
99
  require('lodash/upperFirst');
100
- require('./oidc-73f8d7c7.cjs.prod.js');
100
+ require('./oidc-3a2cf8b3.cjs.prod.js');
101
101
  require('@commercetools-uikit/design-system/materials/resets.css');
102
102
  require('@commercetools-frontend/actions-global');
103
103
 
@@ -192,13 +192,13 @@ const LocaleSwitcher = props => {
192
192
  };
193
193
  LocaleSwitcher.propTypes = {};
194
194
 
195
- const ProjectExpired = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-expired-4a9c9b7c.cjs.prod.js' /* webpackChunkName: "project-expired" */); }));
195
+ const ProjectExpired = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-expired-1a5269ad.cjs.prod.js' /* webpackChunkName: "project-expired" */); }));
196
196
 
197
- const ProjectNotFound = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-found-53be23f8.cjs.prod.js' /* webpackChunkName: "project-not-found" */); }));
197
+ const ProjectNotFound = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-found-cf2cc554.cjs.prod.js' /* webpackChunkName: "project-not-found" */); }));
198
198
 
199
- const ProjectNotInitialized = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-initialized-5ac81acf.cjs.prod.js' /* webpackChunkName: "project-not-initialized" */); }));
199
+ const ProjectNotInitialized = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-initialized-75f5537a.cjs.prod.js' /* webpackChunkName: "project-not-initialized" */); }));
200
200
 
201
- const ProjectSuspended = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-suspended-858997b5.cjs.prod.js' /* webpackChunkName: "project-suspended" */); }));
201
+ const ProjectSuspended = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-suspended-4c195259.cjs.prod.js' /* webpackChunkName: "project-suspended" */); }));
202
202
 
203
203
  var messages = reactIntl.defineMessages({
204
204
  trialDaysLeft: {
@@ -8,9 +8,9 @@ import { useLocation, useRouteMatch, Redirect, Switch, Route } from 'react-route
8
8
  import { ApplicationContextProvider } from '@commercetools-frontend/application-shell-connectors';
9
9
  import { LOGOUT_REASONS, DOMAINS } from '@commercetools-frontend/constants';
10
10
  import { Notifier } from '@commercetools-frontend/react-notifications';
11
- import { C as CONTAINERS, S as STORAGE_KEYS, c as SUSPENSION_REASONS } from './constants-16199962.esm.js';
12
- import { A as ApplicationEntryPoint } from './application-entry-point-91f3f4e0.esm.js';
13
- import { g as RedirectToProjectCreate, E as ErrorBoundary, A as ApplicationLoader, h as FetchProject, P as ProjectDataLocale } from './index-428ee834.esm.js';
11
+ import { C as CONTAINERS, S as STORAGE_KEYS, c as SUSPENSION_REASONS } from './constants-55f41c8c.esm.js';
12
+ import { A as ApplicationEntryPoint } from './application-entry-point-c3884344.esm.js';
13
+ import { g as RedirectToProjectCreate, E as ErrorBoundary, A as ApplicationLoader, h as FetchProject, P as ProjectDataLocale } from './index-937934ba.esm.js';
14
14
  import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
15
15
  import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
16
16
  import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
@@ -31,7 +31,7 @@ import 'tiny-invariant';
31
31
  import '@commercetools-frontend/application-components';
32
32
  import '@commercetools-frontend/application-config/ssr';
33
33
  import '@commercetools-frontend/permissions';
34
- import './configure-apollo-d347769e.esm.js';
34
+ import './configure-apollo-5baefe27.esm.js';
35
35
  import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
36
36
  import '@babel/runtime-corejs3/core-js-stable/object/entries';
37
37
  import '@babel/runtime-corejs3/core-js-stable/reflect/has';
@@ -95,7 +95,7 @@ import '@flopflip/http-adapter';
95
95
  import '@flopflip/launchdarkly-adapter';
96
96
  import 'react-redux';
97
97
  import 'lodash/upperFirst';
98
- import './oidc-cd2edc3c.esm.js';
98
+ import './oidc-38887b2d.esm.js';
99
99
  import '@commercetools-uikit/design-system/materials/resets.css';
100
100
  import '@commercetools-frontend/actions-global';
101
101
 
@@ -186,13 +186,13 @@ LocaleSwitcher.propTypes = process.env.NODE_ENV !== "production" ? {
186
186
  availableLocales: _pt.arrayOf(_pt.string).isRequired
187
187
  } : {};
188
188
 
189
- const ProjectExpired = /*#__PURE__*/lazy(() => import('./project-expired-5449c9ce.esm.js' /* webpackChunkName: "project-expired" */));
189
+ const ProjectExpired = /*#__PURE__*/lazy(() => import('./project-expired-2569ae58.esm.js' /* webpackChunkName: "project-expired" */));
190
190
 
191
- const ProjectNotFound = /*#__PURE__*/lazy(() => import('./project-not-found-ebad0784.esm.js' /* webpackChunkName: "project-not-found" */));
191
+ const ProjectNotFound = /*#__PURE__*/lazy(() => import('./project-not-found-60750783.esm.js' /* webpackChunkName: "project-not-found" */));
192
192
 
193
- const ProjectNotInitialized = /*#__PURE__*/lazy(() => import('./project-not-initialized-e7420ae4.esm.js' /* webpackChunkName: "project-not-initialized" */));
193
+ const ProjectNotInitialized = /*#__PURE__*/lazy(() => import('./project-not-initialized-f2578daa.esm.js' /* webpackChunkName: "project-not-initialized" */));
194
194
 
195
- const ProjectSuspended = /*#__PURE__*/lazy(() => import('./project-suspended-ae6be238.esm.js' /* webpackChunkName: "project-suspended" */));
195
+ const ProjectSuspended = /*#__PURE__*/lazy(() => import('./project-suspended-873c47c2.esm.js' /* webpackChunkName: "project-suspended" */));
196
196
 
197
197
  var messages = defineMessages({
198
198
  trialDaysLeft: {
@@ -10,9 +10,9 @@ var reactRouterDom = require('react-router-dom');
10
10
  var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
11
11
  var constants$1 = require('@commercetools-frontend/constants');
12
12
  var reactNotifications = require('@commercetools-frontend/react-notifications');
13
- var constants = require('./constants-e1225230.cjs.dev.js');
14
- var applicationEntryPoint = require('./application-entry-point-8ce63730.cjs.dev.js');
15
- var dist_commercetoolsFrontendApplicationShell = require('./index-449a0b19.cjs.dev.js');
13
+ var constants = require('./constants-5c1ecb73.cjs.dev.js');
14
+ var applicationEntryPoint = require('./application-entry-point-b9ed252b.cjs.dev.js');
15
+ var dist_commercetoolsFrontendApplicationShell = require('./index-31dd568f.cjs.dev.js');
16
16
  var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
17
17
  var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
18
18
  var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
@@ -33,7 +33,7 @@ require('tiny-invariant');
33
33
  require('@commercetools-frontend/application-components');
34
34
  require('@commercetools-frontend/application-config/ssr');
35
35
  require('@commercetools-frontend/permissions');
36
- require('./configure-apollo-224c15bf.cjs.dev.js');
36
+ require('./configure-apollo-4187db53.cjs.dev.js');
37
37
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
38
38
  require('@babel/runtime-corejs3/core-js-stable/object/entries');
39
39
  require('@babel/runtime-corejs3/core-js-stable/reflect/has');
@@ -97,7 +97,7 @@ require('@flopflip/http-adapter');
97
97
  require('@flopflip/launchdarkly-adapter');
98
98
  require('react-redux');
99
99
  require('lodash/upperFirst');
100
- require('./oidc-7b43f6c0.cjs.dev.js');
100
+ require('./oidc-3376ec84.cjs.dev.js');
101
101
  require('@commercetools-uikit/design-system/materials/resets.css');
102
102
  require('@commercetools-frontend/actions-global');
103
103
 
@@ -205,13 +205,13 @@ LocaleSwitcher.propTypes = process.env.NODE_ENV !== "production" ? {
205
205
  availableLocales: _pt__default["default"].arrayOf(_pt__default["default"].string).isRequired
206
206
  } : {};
207
207
 
208
- const ProjectExpired = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-expired-fc99f8e1.cjs.dev.js' /* webpackChunkName: "project-expired" */); }));
208
+ const ProjectExpired = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-expired-b956df4c.cjs.dev.js' /* webpackChunkName: "project-expired" */); }));
209
209
 
210
- const ProjectNotFound = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-found-c9a93e94.cjs.dev.js' /* webpackChunkName: "project-not-found" */); }));
210
+ const ProjectNotFound = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-found-0bc6b9f7.cjs.dev.js' /* webpackChunkName: "project-not-found" */); }));
211
211
 
212
- const ProjectNotInitialized = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-initialized-9d8b1f41.cjs.dev.js' /* webpackChunkName: "project-not-initialized" */); }));
212
+ const ProjectNotInitialized = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-initialized-191aa18a.cjs.dev.js' /* webpackChunkName: "project-not-initialized" */); }));
213
213
 
214
- const ProjectSuspended = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-suspended-aadbc421.cjs.dev.js' /* webpackChunkName: "project-suspended" */); }));
214
+ const ProjectSuspended = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-suspended-f66a1459.cjs.dev.js' /* webpackChunkName: "project-suspended" */); }));
215
215
 
216
216
  var messages = reactIntl.defineMessages({
217
217
  trialDaysLeft: {