@commercetools-frontend/application-shell 24.11.0 → 24.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{application-entry-point-c87294b0.cjs.dev.js → application-entry-point-18d8fba0.cjs.dev.js} +7 -4
- package/dist/{application-entry-point-10a5e1a5.esm.js → application-entry-point-1b23fb6b.esm.js} +6 -4
- package/dist/{application-entry-point-8c4b8e53.cjs.prod.js → application-entry-point-74a06151.cjs.prod.js} +4 -3
- package/dist/commercetools-frontend-application-shell.cjs.dev.js +12 -11
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +12 -11
- package/dist/commercetools-frontend-application-shell.esm.js +12 -11
- package/dist/{custom-view-dev-host-6091b78a.esm.js → custom-view-dev-host-b4f856d8.esm.js} +20 -16
- package/dist/{custom-view-dev-host-3a171a01.cjs.prod.js → custom-view-dev-host-bf11de47.cjs.prod.js} +21 -16
- package/dist/{custom-view-dev-host-40b33836.cjs.dev.js → custom-view-dev-host-f688743e.cjs.dev.js} +21 -16
- package/dist/declarations/src/types/generated/mc.d.ts +9 -8
- package/dist/declarations-connectors/src/components/application-context/index.d.ts +2 -3
- package/dist/declarations-connectors/src/components/application-context/normalizers.d.ts +1 -5
- package/dist/declarations-connectors/src/export-types.d.ts +1 -2
- package/dist/declarations-connectors/src/index.d.ts +1 -1
- package/dist/declarations-connectors/src/types/generated/mc.d.ts +9 -8
- package/dist/{index-7bdde97c.cjs.prod.js → index-242af4d2.cjs.prod.js} +201 -344
- package/dist/{index-614accc4.cjs.dev.js → index-25183095.cjs.dev.js} +2 -2
- package/dist/{index-245e2980.cjs.prod.js → index-52c724ed.cjs.prod.js} +2 -2
- package/dist/{index-86039df7.esm.js → index-5aaa33bb.esm.js} +2 -2
- package/dist/{index-67a5d8e8.esm.js → index-d8c26ca0.esm.js} +214 -363
- package/dist/{index-a57c8458.cjs.dev.js → index-dcd3d8a3.cjs.dev.js} +213 -364
- package/dist/{navbar-844d350d.esm.js → navbar-0bad8bc8.esm.js} +106 -110
- package/dist/{navbar-acc2cd1b.cjs.prod.js → navbar-7653417f.cjs.prod.js} +108 -112
- package/dist/{navbar-022383bd.cjs.dev.js → navbar-d4189469.cjs.dev.js} +108 -112
- package/dist/oidc-258fc018.cjs.prod.js +115 -0
- package/dist/oidc-35e8e62a.esm.js +100 -0
- package/dist/oidc-87d116c1.cjs.dev.js +115 -0
- package/dist/{oidc-callback-e07f0c20.cjs.dev.js → oidc-callback-11dae6b7.cjs.dev.js} +16 -14
- package/dist/{oidc-callback-ce8cbdfe.cjs.prod.js → oidc-callback-300966ee.cjs.prod.js} +16 -14
- package/dist/{oidc-callback-5f3d5280.esm.js → oidc-callback-82aa6be5.esm.js} +16 -14
- package/dist/{project-container-2d3d027a.cjs.prod.js → project-container-2f98a9d6.cjs.prod.js} +53 -19
- package/dist/{project-container-a11a31ca.cjs.dev.js → project-container-991a64a8.cjs.dev.js} +53 -19
- package/dist/{project-container-fba09841.esm.js → project-container-ce0f6228.esm.js} +52 -19
- package/dist/{project-expired-ede4d485.esm.js → project-expired-49e78c8c.esm.js} +12 -11
- package/dist/{project-expired-f38a712a.cjs.prod.js → project-expired-f753ba58.cjs.prod.js} +12 -11
- package/dist/{project-expired-9620dee4.cjs.dev.js → project-expired-fa4a86df.cjs.dev.js} +12 -11
- package/dist/{project-not-found-05683f8e.cjs.dev.js → project-not-found-261f37e8.cjs.dev.js} +11 -10
- package/dist/{project-not-found-093ab795.esm.js → project-not-found-ac82676b.esm.js} +11 -10
- package/dist/{project-not-found-cfa934da.cjs.prod.js → project-not-found-d594db71.cjs.prod.js} +11 -10
- package/dist/{project-not-initialized-1d934ae7.esm.js → project-not-initialized-4c02d4b2.esm.js} +12 -11
- package/dist/{project-not-initialized-b5a1400f.cjs.prod.js → project-not-initialized-5a77d844.cjs.prod.js} +12 -11
- package/dist/{project-not-initialized-1ed56a00.cjs.dev.js → project-not-initialized-c3a87ba6.cjs.dev.js} +12 -11
- package/dist/{project-suspended-68e80299.cjs.dev.js → project-suspended-42a90ea6.cjs.dev.js} +11 -10
- package/dist/{project-suspended-e0722654.esm.js → project-suspended-cd66814e.esm.js} +11 -10
- package/dist/{project-suspended-8e15a452.cjs.prod.js → project-suspended-dccadfd7.cjs.prod.js} +11 -10
- package/dist/{redirect-to-login-12f467b8.cjs.prod.js → redirect-to-login-3e4a6434.cjs.prod.js} +13 -10
- package/dist/{redirect-to-login-3bee13ba.cjs.dev.js → redirect-to-login-66ea895a.cjs.dev.js} +13 -10
- package/dist/{redirect-to-login-2944c890.esm.js → redirect-to-login-edbfacbc.esm.js} +13 -10
- package/dist/{redirect-to-logout-2802852c.cjs.prod.js → redirect-to-logout-99db4db7.cjs.prod.js} +14 -12
- package/dist/{redirect-to-logout-74b72fe8.cjs.dev.js → redirect-to-logout-ab0c374b.cjs.dev.js} +14 -12
- package/dist/{redirect-to-logout-5db48f16.esm.js → redirect-to-logout-ba40d106.esm.js} +14 -12
- package/dist/{redirector-72ccfbc2.cjs.dev.js → redirector-0efdd994.cjs.dev.js} +4 -3
- package/dist/{redirector-d856975f.esm.js → redirector-656c6ee7.esm.js} +4 -3
- package/dist/{redirector-0c72d0a4.cjs.prod.js → redirector-c858d578.cjs.prod.js} +4 -3
- package/dist/{requests-in-flight-loader-e25f4c31.esm.js → requests-in-flight-loader-64a40481.esm.js} +11 -10
- package/dist/{requests-in-flight-loader-bc904171.cjs.dev.js → requests-in-flight-loader-878840c1.cjs.dev.js} +11 -10
- package/dist/{requests-in-flight-loader-877c1541.cjs.prod.js → requests-in-flight-loader-df9d1de3.cjs.prod.js} +11 -10
- package/dist/{service-page-project-switcher-af044ac6.cjs.dev.js → service-page-project-switcher-0f1c1d7f.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-1dad9871.cjs.prod.js → service-page-project-switcher-532df57f.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-f3eac18a.esm.js → service-page-project-switcher-aca41b09.esm.js} +1 -1
- package/dist/{use-applications-menu-14a5a1f4.cjs.prod.js → use-applications-menu-21c7420b.cjs.prod.js} +48 -40
- package/dist/{use-applications-menu-823a2492.cjs.dev.js → use-applications-menu-7a85c3ee.cjs.dev.js} +48 -40
- package/dist/{use-applications-menu-1514af11.esm.js → use-applications-menu-8ff2d130.esm.js} +45 -38
- package/dist/{user-settings-menu-d75f4958.cjs.prod.js → user-settings-menu-2d3bfa75.cjs.prod.js} +29 -22
- package/dist/{user-settings-menu-f98bea89.esm.js → user-settings-menu-31e6bb38.esm.js} +29 -22
- package/dist/{user-settings-menu-6113cdd3.cjs.dev.js → user-settings-menu-c37b343f.cjs.dev.js} +29 -22
- package/package.json +16 -16
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +2 -1
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +2 -1
- package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +2 -1
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +26 -22
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +26 -22
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +20 -17
- package/dist/oidc-8827f9fe.cjs.dev.js +0 -98
- package/dist/oidc-b2520905.esm.js +0 -84
- package/dist/oidc-d74e6aa2.cjs.prod.js +0 -98
- package/dist/quick-access-9dd197bb.cjs.prod.js +0 -1875
- package/dist/quick-access-a665bbb7.cjs.dev.js +0 -1893
- package/dist/quick-access-dfc1f8a9.esm.js +0 -1865
package/dist/{use-applications-menu-1514af11.esm.js → use-applications-menu-8ff2d130.esm.js}
RENAMED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
|
|
2
|
-
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
3
|
-
import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
4
|
-
import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
5
1
|
import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
6
2
|
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
7
3
|
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
@@ -10,14 +6,19 @@ import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/inst
|
|
|
10
6
|
import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
11
7
|
import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
12
8
|
import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
9
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
|
|
10
|
+
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
11
|
+
import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
12
|
+
import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
13
|
+
import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
13
14
|
import { useState, useEffect } from 'react';
|
|
14
15
|
import { useApolloClient } from '@apollo/client';
|
|
15
16
|
import { useApplicationContext, useMcQuery } from '@commercetools-frontend/application-shell-connectors';
|
|
16
17
|
import { getSupportedLocales } from '@commercetools-frontend/l10n';
|
|
17
18
|
|
|
18
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; }
|
|
19
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
20
|
-
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: "
|
|
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: "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: "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: "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: 891, 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 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 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 } } } };
|
|
21
22
|
const defaultApiUrl = window.location.origin;
|
|
22
23
|
const mapLabelAllLocalesWithDefaults = (labelAllLocales, defaultLabel) => {
|
|
23
24
|
let mappedLabelAllLocales = labelAllLocales;
|
|
@@ -46,11 +47,11 @@ const mapLabelAllLocalesWithDefaults = (labelAllLocales, defaultLabel) => {
|
|
|
46
47
|
* This is only needed for development.
|
|
47
48
|
*/
|
|
48
49
|
const mapApplicationMenuConfigToGraqhQLQueryResult = applicationConfig => {
|
|
49
|
-
var _context2;
|
|
50
|
+
var _applicationConfig$__, _ref, _applicationConfig$__2, _menuLinks$featureTog, _menuLinks$menuVisibi, _menuLinks$actionRigh, _menuLinks$dataFences, _context2;
|
|
50
51
|
const entryPointUriPath = applicationConfig.entryPointUriPath;
|
|
51
|
-
const menuLinks = applicationConfig.__DEVELOPMENT__
|
|
52
|
+
const menuLinks = (_applicationConfig$__ = applicationConfig.__DEVELOPMENT__) === null || _applicationConfig$__ === void 0 ? void 0 : _applicationConfig$__.menuLinks;
|
|
52
53
|
// @ts-expect-error: the `accountLinks` is not explicitly typed as it's only used by the account app.
|
|
53
|
-
const accountLinks = applicationConfig.__DEVELOPMENT__
|
|
54
|
+
const accountLinks = (_ref = (_applicationConfig$__2 = applicationConfig.__DEVELOPMENT__) === null || _applicationConfig$__2 === void 0 ? void 0 : _applicationConfig$__2.accountLinks) !== null && _ref !== void 0 ? _ref : [];
|
|
54
55
|
return {
|
|
55
56
|
applicationsMenu: {
|
|
56
57
|
__typename: 'ApplicationsMenu',
|
|
@@ -65,39 +66,45 @@ const mapApplicationMenuConfigToGraqhQLQueryResult = applicationConfig => {
|
|
|
65
66
|
labelAllLocales: mapLabelAllLocalesWithDefaults(menuLinks.labelAllLocales, menuLinks.defaultLabel),
|
|
66
67
|
permissions: menuLinks.permissions,
|
|
67
68
|
// @ts-ignore: not defined in schema, as it's only used internally.
|
|
68
|
-
featureToggle: menuLinks.featureToggle
|
|
69
|
+
featureToggle: (_menuLinks$featureTog = menuLinks.featureToggle) !== null && _menuLinks$featureTog !== void 0 ? _menuLinks$featureTog : null,
|
|
69
70
|
// @ts-ignore: not defined in schema, as it's only used internally.
|
|
70
|
-
menuVisibility: menuLinks.menuVisibility
|
|
71
|
+
menuVisibility: (_menuLinks$menuVisibi = menuLinks.menuVisibility) !== null && _menuLinks$menuVisibi !== void 0 ? _menuLinks$menuVisibi : null,
|
|
71
72
|
// @ts-ignore: not defined in schema, as it's only used internally.
|
|
72
|
-
actionRights: menuLinks.actionRights
|
|
73
|
+
actionRights: (_menuLinks$actionRigh = menuLinks.actionRights) !== null && _menuLinks$actionRigh !== void 0 ? _menuLinks$actionRigh : null,
|
|
73
74
|
// @ts-ignore: not defined in schema, as it's only used internally.
|
|
74
|
-
dataFences: menuLinks.dataFences
|
|
75
|
-
submenu: _mapInstanceProperty(_context2 = menuLinks.submenuLinks).call(_context2, submenuLink =>
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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
|
+
})
|
|
90
94
|
}]
|
|
91
95
|
}] : [],
|
|
92
|
-
appBar: _mapInstanceProperty(accountLinks).call(accountLinks, menuLink =>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
appBar: _mapInstanceProperty(accountLinks).call(accountLinks, menuLink => {
|
|
97
|
+
var _menuLink$featureTogg;
|
|
98
|
+
return {
|
|
99
|
+
__typename: 'BaseMenu',
|
|
100
|
+
key: menuLink.uriPath,
|
|
101
|
+
uriPath: menuLink.uriPath,
|
|
102
|
+
labelAllLocales: mapLabelAllLocalesWithDefaults(menuLink.labelAllLocales, menuLink.defaultLabel),
|
|
103
|
+
permissions: menuLink.permissions,
|
|
104
|
+
// @ts-ignore: not defined in schema, as it's only used internally.
|
|
105
|
+
featureToggle: (_menuLink$featureTogg = menuLink.featureToggle) !== null && _menuLink$featureTogg !== void 0 ? _menuLink$featureTogg : null
|
|
106
|
+
};
|
|
107
|
+
})
|
|
101
108
|
}
|
|
102
109
|
};
|
|
103
110
|
};
|
|
@@ -126,7 +133,7 @@ function useApplicationsMenu(menuKey, config) {
|
|
|
126
133
|
fetchPolicy: config.environment.servedByProxy ? 'cache-first' : 'cache-only',
|
|
127
134
|
context: {
|
|
128
135
|
// Allow to overwrite the API url from application config
|
|
129
|
-
uri:
|
|
136
|
+
uri: "".concat(mcProxyApiUrl || defaultApiUrl, "/api/graphql"),
|
|
130
137
|
skipGraphQlTargetCheck: true
|
|
131
138
|
}
|
|
132
139
|
}),
|
package/dist/{user-settings-menu-d75f4958.cjs.prod.js → user-settings-menu-2d3bfa75.cjs.prod.js}
RENAMED
|
@@ -28,9 +28,10 @@ var Avatar = require('@commercetools-uikit/avatar');
|
|
|
28
28
|
var designSystem = require('@commercetools-uikit/design-system');
|
|
29
29
|
var Spacings = require('@commercetools-uikit/spacings');
|
|
30
30
|
var Text = require('@commercetools-uikit/text');
|
|
31
|
-
var oidc = require('./oidc-
|
|
32
|
-
var useApplicationsMenu = require('./use-applications-menu-
|
|
31
|
+
var oidc = require('./oidc-258fc018.cjs.prod.js');
|
|
32
|
+
var useApplicationsMenu = require('./use-applications-menu-21c7420b.cjs.prod.js');
|
|
33
33
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
34
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
34
35
|
require('@apollo/client');
|
|
35
36
|
require('@commercetools-frontend/l10n');
|
|
36
37
|
|
|
@@ -120,15 +121,17 @@ const UserAvatar = props => {
|
|
|
120
121
|
};
|
|
121
122
|
UserAvatar.displayName = 'UserAvatar';
|
|
122
123
|
function getIsFocusedElementInMenu() {
|
|
123
|
-
|
|
124
|
+
var _document$activeEleme;
|
|
125
|
+
return Boolean((_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 ? void 0 : _document$activeEleme.getAttribute('data-user-settings-menu'));
|
|
124
126
|
}
|
|
125
127
|
const stateReducer = (state, changes) => {
|
|
128
|
+
var _ref3;
|
|
126
129
|
switch (changes.type) {
|
|
127
130
|
// So in case the user wants to navigate with the tab button
|
|
128
131
|
// we need to make sure that the menu does not close
|
|
129
132
|
case Downshift__default["default"].stateChangeTypes.blurButton:
|
|
130
133
|
return _objectSpread(_objectSpread({}, changes), {}, {
|
|
131
|
-
isOpen: (state.isOpen && getIsFocusedElementInMenu())
|
|
134
|
+
isOpen: (_ref3 = state.isOpen && getIsFocusedElementInMenu()) !== null && _ref3 !== void 0 ? _ref3 : false
|
|
132
135
|
});
|
|
133
136
|
default:
|
|
134
137
|
return changes;
|
|
@@ -175,13 +178,14 @@ const UserSettingsMenuBody = props => {
|
|
|
175
178
|
// Focus on a menu item when it's opened through keyboard
|
|
176
179
|
const menuElementRef = react.useRef(null);
|
|
177
180
|
react.useEffect(() => {
|
|
178
|
-
|
|
181
|
+
var _menuElementRef$curre;
|
|
182
|
+
(_menuElementRef$curre = menuElementRef.current) === null || _menuElementRef$curre === void 0 || _menuElementRef$curre.focus();
|
|
179
183
|
}, []);
|
|
180
184
|
const environment = applicationShellConnectors.useApplicationContext(context => context.environment);
|
|
181
185
|
const applicationsAppBarMenu = useApplicationsMenu.useApplicationsMenu('appBar', {
|
|
182
186
|
environment
|
|
183
187
|
});
|
|
184
|
-
const accountMenuItems = applicationsAppBarMenu
|
|
188
|
+
const accountMenuItems = applicationsAppBarMenu !== null && applicationsAppBarMenu !== void 0 ? applicationsAppBarMenu : [];
|
|
185
189
|
return jsxRuntime.jsx("div", {
|
|
186
190
|
onKeyDown: event => {
|
|
187
191
|
if (event.key === 'Esc' || event.key === 'Tab' && !getIsFocusedElementInMenu()) {
|
|
@@ -213,27 +217,30 @@ const UserSettingsMenuBody = props => {
|
|
|
213
217
|
})
|
|
214
218
|
}), accountMenuItems.length > 0 ? jsxRuntime.jsx(MenuItem, {
|
|
215
219
|
hasDivider: true
|
|
216
|
-
}) : null, _mapInstanceProperty__default["default"](accountMenuItems).call(accountMenuItems, menu =>
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
220
|
+
}) : null, _mapInstanceProperty__default["default"](accountMenuItems).call(accountMenuItems, menu => {
|
|
221
|
+
var _menu$featureToggle;
|
|
222
|
+
return jsxRuntime.jsx(OptionalFeatureToggle, {
|
|
223
|
+
featureToggle: (_menu$featureToggle = menu.featureToggle) !== null && _menu$featureToggle !== void 0 ? _menu$featureToggle : undefined,
|
|
224
|
+
children: jsxRuntime.jsx(reactRouterDom.Link, {
|
|
225
|
+
css: getUserSettingsMenuItemLinkStyles(),
|
|
226
|
+
to: "/account/".concat(menu.uriPath),
|
|
227
|
+
onClick: () => props.downshiftProps.toggleMenu(),
|
|
228
|
+
"data-user-settings-menu": true,
|
|
229
|
+
ref: menuElementRef,
|
|
230
|
+
children: jsxRuntime.jsx(MenuItem, {
|
|
231
|
+
children: jsxRuntime.jsx(MenuItemLabel, {
|
|
232
|
+
children: jsxRuntime.jsx(Text__default["default"].Body, {
|
|
233
|
+
children: renderLabel(menu, props.language)
|
|
234
|
+
})
|
|
228
235
|
})
|
|
229
236
|
})
|
|
230
237
|
})
|
|
231
|
-
})
|
|
232
|
-
}
|
|
238
|
+
}, menu.key);
|
|
239
|
+
}), jsxRuntime.jsx(MenuItem, {
|
|
233
240
|
hasDivider: true
|
|
234
241
|
}), jsxRuntime.jsx("a", {
|
|
235
242
|
css: getUserSettingsMenuItemLinkStyles(),
|
|
236
|
-
href:
|
|
243
|
+
href: "https://commercetools.com/privacy#suppliers",
|
|
237
244
|
target: "_blank",
|
|
238
245
|
rel: "noopener noreferrer",
|
|
239
246
|
onClick: () => props.downshiftProps.toggleMenu(),
|
|
@@ -267,7 +274,7 @@ const UserSettingsMenuBody = props => {
|
|
|
267
274
|
// NOTE: we want to redirect to a new page so that the
|
|
268
275
|
// server can remove things like cookie for access token.
|
|
269
276
|
,
|
|
270
|
-
href:
|
|
277
|
+
href: "/logout?reason=".concat(constants.LOGOUT_REASONS.USER),
|
|
271
278
|
"data-test": "logout-button",
|
|
272
279
|
"data-user-settings-menu": true,
|
|
273
280
|
children: [jsxRuntime.jsx(MenuItem, {
|
|
@@ -26,9 +26,10 @@ import Avatar from '@commercetools-uikit/avatar';
|
|
|
26
26
|
import { designTokens } from '@commercetools-uikit/design-system';
|
|
27
27
|
import Spacings from '@commercetools-uikit/spacings';
|
|
28
28
|
import Text from '@commercetools-uikit/text';
|
|
29
|
-
import { D as DIMENSIONS } from './oidc-
|
|
30
|
-
import { u as useApplicationsMenu } from './use-applications-menu-
|
|
29
|
+
import { D as DIMENSIONS } from './oidc-35e8e62a.esm.js';
|
|
30
|
+
import { u as useApplicationsMenu } from './use-applications-menu-8ff2d130.esm.js';
|
|
31
31
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
32
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
32
33
|
import '@apollo/client';
|
|
33
34
|
import '@commercetools-frontend/l10n';
|
|
34
35
|
|
|
@@ -98,15 +99,17 @@ const UserAvatar = props => {
|
|
|
98
99
|
};
|
|
99
100
|
UserAvatar.displayName = 'UserAvatar';
|
|
100
101
|
function getIsFocusedElementInMenu() {
|
|
101
|
-
|
|
102
|
+
var _document$activeEleme;
|
|
103
|
+
return Boolean((_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 ? void 0 : _document$activeEleme.getAttribute('data-user-settings-menu'));
|
|
102
104
|
}
|
|
103
105
|
const stateReducer = (state, changes) => {
|
|
106
|
+
var _ref3;
|
|
104
107
|
switch (changes.type) {
|
|
105
108
|
// So in case the user wants to navigate with the tab button
|
|
106
109
|
// we need to make sure that the menu does not close
|
|
107
110
|
case Downshift.stateChangeTypes.blurButton:
|
|
108
111
|
return _objectSpread(_objectSpread({}, changes), {}, {
|
|
109
|
-
isOpen: (state.isOpen && getIsFocusedElementInMenu())
|
|
112
|
+
isOpen: (_ref3 = state.isOpen && getIsFocusedElementInMenu()) !== null && _ref3 !== void 0 ? _ref3 : false
|
|
110
113
|
});
|
|
111
114
|
default:
|
|
112
115
|
return changes;
|
|
@@ -160,13 +163,14 @@ const UserSettingsMenuBody = props => {
|
|
|
160
163
|
// Focus on a menu item when it's opened through keyboard
|
|
161
164
|
const menuElementRef = useRef(null);
|
|
162
165
|
useEffect(() => {
|
|
163
|
-
|
|
166
|
+
var _menuElementRef$curre;
|
|
167
|
+
(_menuElementRef$curre = menuElementRef.current) === null || _menuElementRef$curre === void 0 || _menuElementRef$curre.focus();
|
|
164
168
|
}, []);
|
|
165
169
|
const environment = useApplicationContext(context => context.environment);
|
|
166
170
|
const applicationsAppBarMenu = useApplicationsMenu('appBar', {
|
|
167
171
|
environment
|
|
168
172
|
});
|
|
169
|
-
const accountMenuItems = applicationsAppBarMenu
|
|
173
|
+
const accountMenuItems = applicationsAppBarMenu !== null && applicationsAppBarMenu !== void 0 ? applicationsAppBarMenu : [];
|
|
170
174
|
return jsx("div", {
|
|
171
175
|
onKeyDown: event => {
|
|
172
176
|
if (event.key === 'Esc' || event.key === 'Tab' && !getIsFocusedElementInMenu()) {
|
|
@@ -198,27 +202,30 @@ const UserSettingsMenuBody = props => {
|
|
|
198
202
|
})
|
|
199
203
|
}), accountMenuItems.length > 0 ? jsx(MenuItem, {
|
|
200
204
|
hasDivider: true
|
|
201
|
-
}) : null, _mapInstanceProperty(accountMenuItems).call(accountMenuItems, menu =>
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
205
|
+
}) : null, _mapInstanceProperty(accountMenuItems).call(accountMenuItems, menu => {
|
|
206
|
+
var _menu$featureToggle;
|
|
207
|
+
return jsx(OptionalFeatureToggle, {
|
|
208
|
+
featureToggle: (_menu$featureToggle = menu.featureToggle) !== null && _menu$featureToggle !== void 0 ? _menu$featureToggle : undefined,
|
|
209
|
+
children: jsx(Link, {
|
|
210
|
+
css: getUserSettingsMenuItemLinkStyles(),
|
|
211
|
+
to: "/account/".concat(menu.uriPath),
|
|
212
|
+
onClick: () => props.downshiftProps.toggleMenu(),
|
|
213
|
+
"data-user-settings-menu": true,
|
|
214
|
+
ref: menuElementRef,
|
|
215
|
+
children: jsx(MenuItem, {
|
|
216
|
+
children: jsx(MenuItemLabel, {
|
|
217
|
+
children: jsx(Text.Body, {
|
|
218
|
+
children: renderLabel(menu, props.language)
|
|
219
|
+
})
|
|
213
220
|
})
|
|
214
221
|
})
|
|
215
222
|
})
|
|
216
|
-
})
|
|
217
|
-
}
|
|
223
|
+
}, menu.key);
|
|
224
|
+
}), jsx(MenuItem, {
|
|
218
225
|
hasDivider: true
|
|
219
226
|
}), jsx("a", {
|
|
220
227
|
css: getUserSettingsMenuItemLinkStyles(),
|
|
221
|
-
href:
|
|
228
|
+
href: "https://commercetools.com/privacy#suppliers",
|
|
222
229
|
target: "_blank",
|
|
223
230
|
rel: "noopener noreferrer",
|
|
224
231
|
onClick: () => props.downshiftProps.toggleMenu(),
|
|
@@ -252,7 +259,7 @@ const UserSettingsMenuBody = props => {
|
|
|
252
259
|
// NOTE: we want to redirect to a new page so that the
|
|
253
260
|
// server can remove things like cookie for access token.
|
|
254
261
|
,
|
|
255
|
-
href:
|
|
262
|
+
href: "/logout?reason=".concat(LOGOUT_REASONS.USER),
|
|
256
263
|
"data-test": "logout-button",
|
|
257
264
|
"data-user-settings-menu": true,
|
|
258
265
|
children: [jsx(MenuItem, {
|
package/dist/{user-settings-menu-6113cdd3.cjs.dev.js → user-settings-menu-c37b343f.cjs.dev.js}
RENAMED
|
@@ -28,9 +28,10 @@ var Avatar = require('@commercetools-uikit/avatar');
|
|
|
28
28
|
var designSystem = require('@commercetools-uikit/design-system');
|
|
29
29
|
var Spacings = require('@commercetools-uikit/spacings');
|
|
30
30
|
var Text = require('@commercetools-uikit/text');
|
|
31
|
-
var oidc = require('./oidc-
|
|
32
|
-
var useApplicationsMenu = require('./use-applications-menu-
|
|
31
|
+
var oidc = require('./oidc-87d116c1.cjs.dev.js');
|
|
32
|
+
var useApplicationsMenu = require('./use-applications-menu-7a85c3ee.cjs.dev.js');
|
|
33
33
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
34
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
34
35
|
require('@apollo/client');
|
|
35
36
|
require('@commercetools-frontend/l10n');
|
|
36
37
|
|
|
@@ -121,15 +122,17 @@ const UserAvatar = props => {
|
|
|
121
122
|
};
|
|
122
123
|
UserAvatar.displayName = 'UserAvatar';
|
|
123
124
|
function getIsFocusedElementInMenu() {
|
|
124
|
-
|
|
125
|
+
var _document$activeEleme;
|
|
126
|
+
return Boolean((_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 ? void 0 : _document$activeEleme.getAttribute('data-user-settings-menu'));
|
|
125
127
|
}
|
|
126
128
|
const stateReducer = (state, changes) => {
|
|
129
|
+
var _ref3;
|
|
127
130
|
switch (changes.type) {
|
|
128
131
|
// So in case the user wants to navigate with the tab button
|
|
129
132
|
// we need to make sure that the menu does not close
|
|
130
133
|
case Downshift__default["default"].stateChangeTypes.blurButton:
|
|
131
134
|
return _objectSpread(_objectSpread({}, changes), {}, {
|
|
132
|
-
isOpen: (state.isOpen && getIsFocusedElementInMenu())
|
|
135
|
+
isOpen: (_ref3 = state.isOpen && getIsFocusedElementInMenu()) !== null && _ref3 !== void 0 ? _ref3 : false
|
|
133
136
|
});
|
|
134
137
|
default:
|
|
135
138
|
return changes;
|
|
@@ -183,13 +186,14 @@ const UserSettingsMenuBody = props => {
|
|
|
183
186
|
// Focus on a menu item when it's opened through keyboard
|
|
184
187
|
const menuElementRef = react.useRef(null);
|
|
185
188
|
react.useEffect(() => {
|
|
186
|
-
|
|
189
|
+
var _menuElementRef$curre;
|
|
190
|
+
(_menuElementRef$curre = menuElementRef.current) === null || _menuElementRef$curre === void 0 || _menuElementRef$curre.focus();
|
|
187
191
|
}, []);
|
|
188
192
|
const environment = applicationShellConnectors.useApplicationContext(context => context.environment);
|
|
189
193
|
const applicationsAppBarMenu = useApplicationsMenu.useApplicationsMenu('appBar', {
|
|
190
194
|
environment
|
|
191
195
|
});
|
|
192
|
-
const accountMenuItems = applicationsAppBarMenu
|
|
196
|
+
const accountMenuItems = applicationsAppBarMenu !== null && applicationsAppBarMenu !== void 0 ? applicationsAppBarMenu : [];
|
|
193
197
|
return jsxRuntime.jsx("div", {
|
|
194
198
|
onKeyDown: event => {
|
|
195
199
|
if (event.key === 'Esc' || event.key === 'Tab' && !getIsFocusedElementInMenu()) {
|
|
@@ -221,27 +225,30 @@ const UserSettingsMenuBody = props => {
|
|
|
221
225
|
})
|
|
222
226
|
}), accountMenuItems.length > 0 ? jsxRuntime.jsx(MenuItem, {
|
|
223
227
|
hasDivider: true
|
|
224
|
-
}) : null, _mapInstanceProperty__default["default"](accountMenuItems).call(accountMenuItems, menu =>
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
228
|
+
}) : null, _mapInstanceProperty__default["default"](accountMenuItems).call(accountMenuItems, menu => {
|
|
229
|
+
var _menu$featureToggle;
|
|
230
|
+
return jsxRuntime.jsx(OptionalFeatureToggle, {
|
|
231
|
+
featureToggle: (_menu$featureToggle = menu.featureToggle) !== null && _menu$featureToggle !== void 0 ? _menu$featureToggle : undefined,
|
|
232
|
+
children: jsxRuntime.jsx(reactRouterDom.Link, {
|
|
233
|
+
css: getUserSettingsMenuItemLinkStyles(),
|
|
234
|
+
to: "/account/".concat(menu.uriPath),
|
|
235
|
+
onClick: () => props.downshiftProps.toggleMenu(),
|
|
236
|
+
"data-user-settings-menu": true,
|
|
237
|
+
ref: menuElementRef,
|
|
238
|
+
children: jsxRuntime.jsx(MenuItem, {
|
|
239
|
+
children: jsxRuntime.jsx(MenuItemLabel, {
|
|
240
|
+
children: jsxRuntime.jsx(Text__default["default"].Body, {
|
|
241
|
+
children: renderLabel(menu, props.language)
|
|
242
|
+
})
|
|
236
243
|
})
|
|
237
244
|
})
|
|
238
245
|
})
|
|
239
|
-
})
|
|
240
|
-
}
|
|
246
|
+
}, menu.key);
|
|
247
|
+
}), jsxRuntime.jsx(MenuItem, {
|
|
241
248
|
hasDivider: true
|
|
242
249
|
}), jsxRuntime.jsx("a", {
|
|
243
250
|
css: getUserSettingsMenuItemLinkStyles(),
|
|
244
|
-
href:
|
|
251
|
+
href: "https://commercetools.com/privacy#suppliers",
|
|
245
252
|
target: "_blank",
|
|
246
253
|
rel: "noopener noreferrer",
|
|
247
254
|
onClick: () => props.downshiftProps.toggleMenu(),
|
|
@@ -275,7 +282,7 @@ const UserSettingsMenuBody = props => {
|
|
|
275
282
|
// NOTE: we want to redirect to a new page so that the
|
|
276
283
|
// server can remove things like cookie for access token.
|
|
277
284
|
,
|
|
278
|
-
href:
|
|
285
|
+
href: "/logout?reason=".concat(constants.LOGOUT_REASONS.USER),
|
|
279
286
|
"data-test": "logout-button",
|
|
280
287
|
"data-user-settings-menu": true,
|
|
281
288
|
children: [jsxRuntime.jsx(MenuItem, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-shell",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.13.0",
|
|
4
4
|
"description": "React component to bootstrap the general MC application logic",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -39,21 +39,21 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@babel/runtime": "^7.22.15",
|
|
41
41
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
42
|
-
"@commercetools-frontend/actions-global": "24.
|
|
43
|
-
"@commercetools-frontend/application-components": "24.
|
|
44
|
-
"@commercetools-frontend/application-config": "24.
|
|
45
|
-
"@commercetools-frontend/application-shell-connectors": "24.
|
|
46
|
-
"@commercetools-frontend/assets": "24.
|
|
47
|
-
"@commercetools-frontend/browser-history": "24.
|
|
48
|
-
"@commercetools-frontend/constants": "24.
|
|
49
|
-
"@commercetools-frontend/i18n": "24.
|
|
50
|
-
"@commercetools-frontend/l10n": "24.
|
|
51
|
-
"@commercetools-frontend/notifications": "24.
|
|
52
|
-
"@commercetools-frontend/permissions": "24.
|
|
53
|
-
"@commercetools-frontend/react-notifications": "24.
|
|
54
|
-
"@commercetools-frontend/sdk": "24.
|
|
55
|
-
"@commercetools-frontend/sentry": "24.
|
|
56
|
-
"@commercetools-frontend/url-utils": "24.
|
|
42
|
+
"@commercetools-frontend/actions-global": "24.13.0",
|
|
43
|
+
"@commercetools-frontend/application-components": "24.13.0",
|
|
44
|
+
"@commercetools-frontend/application-config": "24.13.0",
|
|
45
|
+
"@commercetools-frontend/application-shell-connectors": "24.13.0",
|
|
46
|
+
"@commercetools-frontend/assets": "24.13.0",
|
|
47
|
+
"@commercetools-frontend/browser-history": "24.13.0",
|
|
48
|
+
"@commercetools-frontend/constants": "24.13.0",
|
|
49
|
+
"@commercetools-frontend/i18n": "24.13.0",
|
|
50
|
+
"@commercetools-frontend/l10n": "24.13.0",
|
|
51
|
+
"@commercetools-frontend/notifications": "24.13.0",
|
|
52
|
+
"@commercetools-frontend/permissions": "24.13.0",
|
|
53
|
+
"@commercetools-frontend/react-notifications": "24.13.0",
|
|
54
|
+
"@commercetools-frontend/sdk": "24.13.0",
|
|
55
|
+
"@commercetools-frontend/sentry": "24.13.0",
|
|
56
|
+
"@commercetools-frontend/url-utils": "24.13.0",
|
|
57
57
|
"@commercetools-uikit/accessible-hidden": "^20.3.0",
|
|
58
58
|
"@commercetools-uikit/avatar": "^20.3.0",
|
|
59
59
|
"@commercetools-uikit/card": "^20.3.0",
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var ssr = require('@commercetools-frontend/application-config/ssr');
|
|
6
|
-
var oidc = require('../../dist/oidc-
|
|
6
|
+
var oidc = require('../../dist/oidc-87d116c1.cjs.dev.js');
|
|
7
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
7
8
|
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
8
9
|
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
9
10
|
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var ssr = require('@commercetools-frontend/application-config/ssr');
|
|
6
|
-
var oidc = require('../../dist/oidc-
|
|
6
|
+
var oidc = require('../../dist/oidc-258fc018.cjs.prod.js');
|
|
7
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
7
8
|
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
8
9
|
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
9
10
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { entryPointUriPathToPermissionKeys, entryPointUriPathToResourceAccesses } from '@commercetools-frontend/application-config/ssr';
|
|
2
|
-
export { b as buildOidcScope } from '../../dist/oidc-
|
|
2
|
+
export { b as buildOidcScope } from '../../dist/oidc-35e8e62a.esm.js';
|
|
3
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
3
4
|
import '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
4
5
|
import '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|