@commercetools-frontend/application-shell 21.3.2 → 21.3.5
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-575996c4.cjs.dev.js → application-entry-point-2fa512ec.cjs.dev.js} +2 -2
- package/dist/{application-entry-point-f21c8316.cjs.prod.js → application-entry-point-dae0d1ac.cjs.prod.js} +2 -2
- package/dist/{application-entry-point-bad42f46.esm.js → application-entry-point-f7f932ac.esm.js} +2 -2
- package/dist/commercetools-frontend-application-shell.cjs.dev.js +4 -4
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +4 -4
- package/dist/commercetools-frontend-application-shell.esm.js +4 -4
- package/dist/{constants-745aeeca.cjs.prod.js → constants-0b2cadbb.cjs.dev.js} +6 -0
- package/dist/{constants-33a16227.esm.js → constants-6f8e0d87.esm.js} +6 -1
- package/dist/{constants-fdbe0e9d.cjs.dev.js → constants-9710f983.cjs.prod.js} +6 -0
- package/dist/declarations/src/components/application-shell/application-shell.d.ts +1 -1
- package/dist/declarations/src/components/navbar/tracking-events.d.ts +18 -0
- package/dist/declarations/src/constants.d.ts +5 -0
- package/dist/{index-655dc306.cjs.prod.js → index-32cd533b.cjs.prod.js} +91 -56
- package/dist/{index-6ed51d04.esm.js → index-82d5b1c3.esm.js} +105 -74
- package/dist/{index-7809bd4b.cjs.dev.js → index-93c8f750.cjs.dev.js} +105 -74
- package/dist/{oidc-dc44ab6f.cjs.dev.js → oidc-137df8f6.cjs.dev.js} +1 -1
- package/dist/{oidc-415a3ef6.esm.js → oidc-ad6058e2.esm.js} +1 -1
- package/dist/{oidc-69515812.cjs.prod.js → oidc-ebdbe61e.cjs.prod.js} +1 -1
- package/dist/{project-expired-9e2d78cb.esm.js → project-expired-1a886e82.esm.js} +5 -5
- package/dist/{project-expired-78a70097.cjs.prod.js → project-expired-59cb3714.cjs.prod.js} +5 -5
- package/dist/{project-expired-3bd528cf.cjs.dev.js → project-expired-5ca5c513.cjs.dev.js} +5 -5
- package/dist/{project-not-found-745820fa.esm.js → project-not-found-11385ed7.esm.js} +5 -5
- package/dist/{project-not-found-4c43cd16.cjs.dev.js → project-not-found-58d2f8b8.cjs.dev.js} +5 -5
- package/dist/{project-not-found-bff932dd.cjs.prod.js → project-not-found-998fdc8e.cjs.prod.js} +5 -5
- package/dist/{project-not-initialized-8c5c6c80.cjs.dev.js → project-not-initialized-23a82ed9.cjs.dev.js} +5 -5
- package/dist/{project-not-initialized-5666fe79.esm.js → project-not-initialized-79f12b4a.esm.js} +5 -5
- package/dist/{project-not-initialized-64ac7587.cjs.prod.js → project-not-initialized-aca1e34f.cjs.prod.js} +5 -5
- package/dist/{project-suspended-b4842f42.esm.js → project-suspended-170c347b.esm.js} +5 -5
- package/dist/{project-suspended-a59a41d4.cjs.dev.js → project-suspended-b5ddb9fe.cjs.dev.js} +5 -5
- package/dist/{project-suspended-540da552.cjs.prod.js → project-suspended-e5827cf6.cjs.prod.js} +5 -5
- package/dist/{quick-access-1d4f2411.cjs.prod.js → quick-access-09abcedb.cjs.prod.js} +4 -4
- package/dist/{quick-access-1233f1f8.esm.js → quick-access-16aecbb3.esm.js} +4 -4
- package/dist/{quick-access-76a86348.cjs.dev.js → quick-access-55223033.cjs.dev.js} +4 -4
- package/dist/{service-page-project-switcher-a7a51a39.esm.js → service-page-project-switcher-1cfe4ec7.esm.js} +1 -1
- package/dist/{service-page-project-switcher-000c0941.cjs.dev.js → service-page-project-switcher-26115cef.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-1abf73ea.cjs.prod.js → service-page-project-switcher-2df3c182.cjs.prod.js} +1 -1
- package/package.json +29 -29
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +2 -2
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +2 -2
- package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +2 -2
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +2 -2
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +2 -2
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +2 -2
|
@@ -22,7 +22,7 @@ var omitEmpty = require('omit-empty-es');
|
|
|
22
22
|
var notifications = require('@commercetools-frontend/notifications');
|
|
23
23
|
var sdk = require('@commercetools-frontend/sdk');
|
|
24
24
|
var constants = require('@commercetools-frontend/constants');
|
|
25
|
-
var constants$1 = require('./constants-
|
|
25
|
+
var constants$1 = require('./constants-0b2cadbb.cjs.dev.js');
|
|
26
26
|
var reactNotifications = require('@commercetools-frontend/react-notifications');
|
|
27
27
|
var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
28
28
|
var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
@@ -101,7 +101,7 @@ var _pt__default = /*#__PURE__*/_interopDefault(_pt);
|
|
|
101
101
|
var invariant__default = /*#__PURE__*/_interopDefault(invariant);
|
|
102
102
|
|
|
103
103
|
// NOTE: This string will be replaced on build time with the package version.
|
|
104
|
-
var version = "21.3.
|
|
104
|
+
var version = "21.3.5";
|
|
105
105
|
|
|
106
106
|
var isAddNotificationErrorAction = function isAddNotificationErrorAction(action) {
|
|
107
107
|
var errorAction = action;
|
|
@@ -22,7 +22,7 @@ var omitEmpty = require('omit-empty-es');
|
|
|
22
22
|
var notifications = require('@commercetools-frontend/notifications');
|
|
23
23
|
var sdk = require('@commercetools-frontend/sdk');
|
|
24
24
|
var constants = require('@commercetools-frontend/constants');
|
|
25
|
-
var constants$1 = require('./constants-
|
|
25
|
+
var constants$1 = require('./constants-9710f983.cjs.prod.js');
|
|
26
26
|
var reactNotifications = require('@commercetools-frontend/react-notifications');
|
|
27
27
|
var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
28
28
|
var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
@@ -100,7 +100,7 @@ var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
|
|
|
100
100
|
var invariant__default = /*#__PURE__*/_interopDefault(invariant);
|
|
101
101
|
|
|
102
102
|
// NOTE: This string will be replaced on build time with the package version.
|
|
103
|
-
var version = "21.3.
|
|
103
|
+
var version = "21.3.5";
|
|
104
104
|
|
|
105
105
|
var isAddNotificationErrorAction = function isAddNotificationErrorAction(action) {
|
|
106
106
|
var errorAction = action;
|
package/dist/{application-entry-point-bad42f46.esm.js → application-entry-point-f7f932ac.esm.js}
RENAMED
|
@@ -20,7 +20,7 @@ import omitEmpty from 'omit-empty-es';
|
|
|
20
20
|
import { ADD_NOTIFICATION, removeNotification, REMOVE_NOTIFICATION, reducer, middleware } from '@commercetools-frontend/notifications';
|
|
21
21
|
import { createMiddleware } from '@commercetools-frontend/sdk';
|
|
22
22
|
import { HIDE_ALL_PAGE_NOTIFICATIONS, NOTIFICATION_KINDS_PAGE, SHOW_LOADING, HIDE_LOADING, GRAPHQL_TARGETS, STATUS_CODES, LOGOUT_REASONS } from '@commercetools-frontend/constants';
|
|
23
|
-
import { S as STORAGE_KEYS, L as LOGIN_STRATEGY_OIDC, c as SUPPORTED_HEADERS } from './constants-
|
|
23
|
+
import { S as STORAGE_KEYS, L as LOGIN_STRATEGY_OIDC, c as SUPPORTED_HEADERS } from './constants-6f8e0d87.esm.js';
|
|
24
24
|
import { selectPageNotifications } from '@commercetools-frontend/react-notifications';
|
|
25
25
|
import _startsWithInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
|
|
26
26
|
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
@@ -60,7 +60,7 @@ import { entryPointUriPathToPermissionKeys } from '@commercetools-frontend/appli
|
|
|
60
60
|
import { useApplicationContext } from '@commercetools-frontend/application-shell-connectors';
|
|
61
61
|
|
|
62
62
|
// NOTE: This string will be replaced on build time with the package version.
|
|
63
|
-
var version = "21.3.
|
|
63
|
+
var version = "21.3.5";
|
|
64
64
|
|
|
65
65
|
var isAddNotificationErrorAction = function isAddNotificationErrorAction(action) {
|
|
66
66
|
var errorAction = action;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var applicationEntryPoint = require('./application-entry-point-
|
|
6
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
5
|
+
var applicationEntryPoint = require('./application-entry-point-2fa512ec.cjs.dev.js');
|
|
6
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-93c8f750.cjs.dev.js');
|
|
7
7
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
8
8
|
require('uuid');
|
|
9
9
|
require('@babel/runtime-corejs3/core-js-stable/url');
|
|
@@ -31,7 +31,7 @@ require('omit-empty-es');
|
|
|
31
31
|
require('@commercetools-frontend/notifications');
|
|
32
32
|
require('@commercetools-frontend/sdk');
|
|
33
33
|
require('@commercetools-frontend/constants');
|
|
34
|
-
require('./constants-
|
|
34
|
+
require('./constants-0b2cadbb.cjs.dev.js');
|
|
35
35
|
require('@commercetools-frontend/react-notifications');
|
|
36
36
|
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
37
37
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
@@ -73,7 +73,7 @@ require('perfume.js');
|
|
|
73
73
|
require('@babel/runtime-corejs3/core-js-stable/instance/reverse');
|
|
74
74
|
require('lodash/camelCase');
|
|
75
75
|
require('@apollo/client/react');
|
|
76
|
-
require('./oidc-
|
|
76
|
+
require('./oidc-137df8f6.cjs.dev.js');
|
|
77
77
|
require('qss');
|
|
78
78
|
require('jwt-decode');
|
|
79
79
|
require('@commercetools-frontend/assets/images/locked-diamond.svg');
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var applicationEntryPoint = require('./application-entry-point-
|
|
6
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
5
|
+
var applicationEntryPoint = require('./application-entry-point-dae0d1ac.cjs.prod.js');
|
|
6
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-32cd533b.cjs.prod.js');
|
|
7
7
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
8
8
|
require('uuid');
|
|
9
9
|
require('@babel/runtime-corejs3/core-js-stable/url');
|
|
@@ -31,7 +31,7 @@ require('omit-empty-es');
|
|
|
31
31
|
require('@commercetools-frontend/notifications');
|
|
32
32
|
require('@commercetools-frontend/sdk');
|
|
33
33
|
require('@commercetools-frontend/constants');
|
|
34
|
-
require('./constants-
|
|
34
|
+
require('./constants-9710f983.cjs.prod.js');
|
|
35
35
|
require('@commercetools-frontend/react-notifications');
|
|
36
36
|
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
37
37
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
@@ -73,7 +73,7 @@ require('perfume.js');
|
|
|
73
73
|
require('@babel/runtime-corejs3/core-js-stable/instance/reverse');
|
|
74
74
|
require('lodash/camelCase');
|
|
75
75
|
require('@apollo/client/react');
|
|
76
|
-
require('./oidc-
|
|
76
|
+
require('./oidc-ebdbe61e.cjs.prod.js');
|
|
77
77
|
require('qss');
|
|
78
78
|
require('jwt-decode');
|
|
79
79
|
require('@commercetools-frontend/assets/images/locked-diamond.svg');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { p as RouteCatchAll, q as applyDefaultMiddlewares, f as createApolloClient, n as selectProjectKeyFromUrl, t as selectUserId, v as version } from './application-entry-point-
|
|
2
|
-
export { A as ApplicationShell, a as ApplicationShellProvider, C as ConfigureIntlProvider, G as GtmContext, b as GtmUserLogoutTracker, I as InjectReducers, S as SetupFlopFlipProvider, c as createApolloContextForProxyForwardTo, s as setupGlobalErrorListener, d as useMcLazyQuery, e as useMcMutation, u as useMcQuery } from './index-
|
|
1
|
+
export { p as RouteCatchAll, q as applyDefaultMiddlewares, f as createApolloClient, n as selectProjectKeyFromUrl, t as selectUserId, v as version } from './application-entry-point-f7f932ac.esm.js';
|
|
2
|
+
export { A as ApplicationShell, a as ApplicationShellProvider, C as ConfigureIntlProvider, G as GtmContext, b as GtmUserLogoutTracker, I as InjectReducers, S as SetupFlopFlipProvider, c as createApolloContextForProxyForwardTo, s as setupGlobalErrorListener, d as useMcLazyQuery, e as useMcMutation, u as useMcQuery } from './index-82d5b1c3.esm.js';
|
|
3
3
|
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
4
4
|
import 'uuid';
|
|
5
5
|
import '@babel/runtime-corejs3/core-js-stable/url';
|
|
@@ -27,7 +27,7 @@ import 'omit-empty-es';
|
|
|
27
27
|
import '@commercetools-frontend/notifications';
|
|
28
28
|
import '@commercetools-frontend/sdk';
|
|
29
29
|
import '@commercetools-frontend/constants';
|
|
30
|
-
import './constants-
|
|
30
|
+
import './constants-6f8e0d87.esm.js';
|
|
31
31
|
import '@commercetools-frontend/react-notifications';
|
|
32
32
|
import '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
|
|
33
33
|
import '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
@@ -69,7 +69,7 @@ import 'perfume.js';
|
|
|
69
69
|
import '@babel/runtime-corejs3/core-js-stable/instance/reverse';
|
|
70
70
|
import 'lodash/camelCase';
|
|
71
71
|
import '@apollo/client/react';
|
|
72
|
-
import './oidc-
|
|
72
|
+
import './oidc-ad6058e2.esm.js';
|
|
73
73
|
import 'qss';
|
|
74
74
|
import 'jwt-decode';
|
|
75
75
|
import '@commercetools-frontend/assets/images/locked-diamond.svg';
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var DIMENSIONS = {
|
|
4
|
+
header: '43px',
|
|
5
|
+
navMenu: '64px',
|
|
6
|
+
navMenuExpanded: '200px'
|
|
7
|
+
};
|
|
3
8
|
var SUPPORTED_HEADERS = {
|
|
4
9
|
ACCEPT_VERSION: 'Accept-version',
|
|
5
10
|
AUTHORIZATION: 'Authorization',
|
|
@@ -46,6 +51,7 @@ var OIDC_CLAIMS = {
|
|
|
46
51
|
};
|
|
47
52
|
|
|
48
53
|
exports.CONTAINERS = CONTAINERS;
|
|
54
|
+
exports.DIMENSIONS = DIMENSIONS;
|
|
49
55
|
exports.LOGIN_STRATEGY_OIDC = LOGIN_STRATEGY_OIDC;
|
|
50
56
|
exports.OIDC_CLAIMS = OIDC_CLAIMS;
|
|
51
57
|
exports.OIDC_RESPONSE_TYPES = OIDC_RESPONSE_TYPES;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
var DIMENSIONS = {
|
|
2
|
+
header: '43px',
|
|
3
|
+
navMenu: '64px',
|
|
4
|
+
navMenuExpanded: '200px'
|
|
5
|
+
};
|
|
1
6
|
var SUPPORTED_HEADERS = {
|
|
2
7
|
ACCEPT_VERSION: 'Accept-version',
|
|
3
8
|
AUTHORIZATION: 'Authorization',
|
|
@@ -43,4 +48,4 @@ var OIDC_CLAIMS = {
|
|
|
43
48
|
MANAGE: 'manage'
|
|
44
49
|
};
|
|
45
50
|
|
|
46
|
-
export { CONTAINERS as C, LOGIN_STRATEGY_OIDC as L, OIDC_CLAIMS as O, STORAGE_KEYS as S, SUSPENSION_REASONS as a, OIDC_RESPONSE_TYPES as b, SUPPORTED_HEADERS as c };
|
|
51
|
+
export { CONTAINERS as C, DIMENSIONS as D, LOGIN_STRATEGY_OIDC as L, OIDC_CLAIMS as O, STORAGE_KEYS as S, SUSPENSION_REASONS as a, OIDC_RESPONSE_TYPES as b, SUPPORTED_HEADERS as c };
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var DIMENSIONS = {
|
|
4
|
+
header: '43px',
|
|
5
|
+
navMenu: '64px',
|
|
6
|
+
navMenuExpanded: '200px'
|
|
7
|
+
};
|
|
3
8
|
var SUPPORTED_HEADERS = {
|
|
4
9
|
ACCEPT_VERSION: 'Accept-version',
|
|
5
10
|
AUTHORIZATION: 'Authorization',
|
|
@@ -46,6 +51,7 @@ var OIDC_CLAIMS = {
|
|
|
46
51
|
};
|
|
47
52
|
|
|
48
53
|
exports.CONTAINERS = CONTAINERS;
|
|
54
|
+
exports.DIMENSIONS = DIMENSIONS;
|
|
49
55
|
exports.LOGIN_STRATEGY_OIDC = LOGIN_STRATEGY_OIDC;
|
|
50
56
|
exports.OIDC_CLAIMS = OIDC_CLAIMS;
|
|
51
57
|
exports.OIDC_RESPONSE_TYPES = OIDC_RESPONSE_TYPES;
|
|
@@ -4,7 +4,7 @@ import type { NormalizedCacheObject } from '@apollo/client';
|
|
|
4
4
|
import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
|
|
5
5
|
import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
|
|
6
6
|
import type { TrackingList } from '../../utils/gtm';
|
|
7
|
-
import { ReactNode, SyntheticEvent } from 'react';
|
|
7
|
+
import { type ReactNode, type SyntheticEvent } from 'react';
|
|
8
8
|
import { ApolloClient } from '@apollo/client';
|
|
9
9
|
declare type Props<AdditionalEnvironmentProperties extends {}> = {
|
|
10
10
|
apolloClient?: ApolloClient<NormalizedCacheObject>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly collapseMainNav: {
|
|
3
|
+
readonly action: "CollapseMainNav";
|
|
4
|
+
readonly category: "Main-Navigation";
|
|
5
|
+
readonly label: "Collapse Main Navigation";
|
|
6
|
+
};
|
|
7
|
+
readonly expandMainNav: {
|
|
8
|
+
readonly action: "ExpandMainNav";
|
|
9
|
+
readonly category: "Main-Navigation";
|
|
10
|
+
readonly label: "Expand Main Navigation";
|
|
11
|
+
};
|
|
12
|
+
readonly goToSupport: {
|
|
13
|
+
readonly action: "GoToSupport";
|
|
14
|
+
readonly category: "Main-Navigation";
|
|
15
|
+
readonly label: "Go to Support";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var applicationEntryPoint = require('./application-entry-point-
|
|
3
|
+
var applicationEntryPoint = require('./application-entry-point-dae0d1ac.cjs.prod.js');
|
|
4
4
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
5
5
|
var _styled = require('@emotion/styled/base');
|
|
6
6
|
var _pt = require('prop-types');
|
|
@@ -24,8 +24,8 @@ var applicationShellConnectors = require('@commercetools-frontend/application-sh
|
|
|
24
24
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
25
25
|
var reactNotifications = require('@commercetools-frontend/react-notifications');
|
|
26
26
|
var i18n = require('@commercetools-frontend/i18n');
|
|
27
|
+
var constants = require('./constants-9710f983.cjs.prod.js');
|
|
27
28
|
var uuid = require('uuid');
|
|
28
|
-
var constants = require('./constants-745aeeca.cjs.prod.js');
|
|
29
29
|
var _URL = require('@babel/runtime-corejs3/core-js-stable/url');
|
|
30
30
|
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
31
31
|
var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
@@ -38,7 +38,7 @@ var reactRedux = require('react-redux');
|
|
|
38
38
|
var history = require('@commercetools-frontend/browser-history');
|
|
39
39
|
var reactIntl = require('react-intl');
|
|
40
40
|
var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
41
|
-
var oidc = require('./oidc-
|
|
41
|
+
var oidc = require('./oidc-ebdbe61e.cjs.prod.js');
|
|
42
42
|
var qss = require('qss');
|
|
43
43
|
var jwtDecode = require('jwt-decode');
|
|
44
44
|
var FailedAuthenticationSVG = require('@commercetools-frontend/assets/images/locked-diamond.svg');
|
|
@@ -1406,7 +1406,7 @@ FetchProject.displayName = 'FetchProject';
|
|
|
1406
1406
|
|
|
1407
1407
|
function ownKeys$9(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1408
1408
|
|
|
1409
|
-
function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var
|
|
1409
|
+
function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$9(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$9(Object(source))).call(_context4, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
1410
1410
|
var FetchApplicationsMenu = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchApplicationsMenu" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "applicationsMenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "navBar" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "shouldRenderDivider" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "icon" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "menuVisibility" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "dataFences" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "actionRights" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "submenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "menuVisibility" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "actionRights" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "dataFences" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "Field", name: { kind: "Name", value: "appBar" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 849, source: { body: "query FetchApplicationsMenu {\n applicationsMenu {\n navBar {\n shouldRenderDivider\n key\n uriPath\n icon\n labelAllLocales {\n locale\n value\n }\n featureToggle\n menuVisibility\n permissions\n dataFences {\n group\n name\n type\n }\n actionRights {\n group\n name\n }\n submenu {\n key\n uriPath\n labelAllLocales {\n locale\n value\n }\n featureToggle\n menuVisibility\n permissions\n actionRights {\n group\n name\n }\n dataFences {\n group\n name\n type\n }\n }\n }\n appBar {\n key\n uriPath\n labelAllLocales {\n locale\n value\n }\n featureToggle\n permissions\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
1411
1411
|
var supportedLocales = ['en', 'de', 'es', 'fr-FR', 'zh-CN', 'ja'];
|
|
1412
1412
|
var defaultApiUrl$1 = window.location.origin;
|
|
@@ -1471,19 +1471,12 @@ var mapApplicationMenuConfigToGraqhQLQueryResult = function mapApplicationMenuCo
|
|
|
1471
1471
|
// @ts-ignore: not defined in schema, as it's only used internally.
|
|
1472
1472
|
dataFences: (_menuLinks$dataFences = menuLinks.dataFences) !== null && _menuLinks$dataFences !== void 0 ? _menuLinks$dataFences : null,
|
|
1473
1473
|
submenu: _mapInstanceProperty__default["default"](_context = menuLinks.submenuLinks).call(_context, function (submenuLink) {
|
|
1474
|
-
var _context2,
|
|
1474
|
+
var _context2, _submenuLink$featureT, _submenuLink$menuVisi, _submenuLink$actionRi, _submenuLink$dataFenc;
|
|
1475
1475
|
|
|
1476
1476
|
return {
|
|
1477
1477
|
__typename: 'BaseMenu',
|
|
1478
1478
|
key: _concatInstanceProperty__default["default"](_context2 = "".concat(entryPointUriPath, "-")).call(_context2, submenuLink.uriPath),
|
|
1479
|
-
|
|
1480
|
-
// to the entry point URI path.
|
|
1481
|
-
// However, when rendering the link, we need to provide the full uri path.
|
|
1482
|
-
// Special case when the value is `/`: it means that the link is supposed to be
|
|
1483
|
-
// treated the same as the entry point uri path. In this case, the return value
|
|
1484
|
-
// should not contain any unnecessary trailing slash and therefore we return the
|
|
1485
|
-
// main value `entryPointUriPath`.
|
|
1486
|
-
uriPath: submenuLink.uriPath === '/' ? entryPointUriPath : _concatInstanceProperty__default["default"](_context3 = "".concat(entryPointUriPath, "/")).call(_context3, submenuLink.uriPath),
|
|
1479
|
+
uriPath: submenuLink.uriPath,
|
|
1487
1480
|
labelAllLocales: mapLabelAllLocalesWithDefaults(submenuLink.labelAllLocales, submenuLink.defaultLabel),
|
|
1488
1481
|
permissions: submenuLink.permissions,
|
|
1489
1482
|
// @ts-ignore: not defined in schema, as it's only used internally.
|
|
@@ -2183,7 +2176,7 @@ var AppBar = function AppBar(props) {
|
|
|
2183
2176
|
|
|
2184
2177
|
var previousProjectKey = getPreviousProjectKey((_props$user$defaultPr = (_props$user = props.user) === null || _props$user === void 0 ? void 0 : _props$user.defaultProjectKey) !== null && _props$user$defaultPr !== void 0 ? _props$user$defaultPr : undefined);
|
|
2185
2178
|
return jsxRuntime.jsxs("div", {
|
|
2186
|
-
css: /*#__PURE__*/react$2.css("box-shadow:", designSystem.customProperties.shadow1, ";min-height:
|
|
2179
|
+
css: /*#__PURE__*/react$2.css("background-color:", designSystem.customProperties.colorSurface, ";box-shadow:", designSystem.customProperties.shadow1, ";min-height:", constants.DIMENSIONS.header, ";position:relative;width:100%;z-index:20000;display:flex;align-items:center;justify-content:space-between;" + ("" ), "" ),
|
|
2187
2180
|
"data-test": "top-navigation",
|
|
2188
2181
|
children: [jsxRuntime.jsxs(Spacings__default["default"].Inline, {
|
|
2189
2182
|
children: [jsxRuntime.jsx("div", {
|
|
@@ -2237,7 +2230,7 @@ var AppBar = function AppBar(props) {
|
|
|
2237
2230
|
});
|
|
2238
2231
|
}()]
|
|
2239
2232
|
}), jsxRuntime.jsx("div", {
|
|
2240
|
-
css: /*#__PURE__*/react$2.css("border-left:1px ", designSystem.customProperties.colorNeutral90, " solid;height:
|
|
2233
|
+
css: /*#__PURE__*/react$2.css("border-left:1px ", designSystem.customProperties.colorNeutral90, " solid;height:", constants.DIMENSIONS.header, ";" + ("" ), "" )
|
|
2241
2234
|
}), props.user ? jsxRuntime.jsx(UserSettingsMenu, {
|
|
2242
2235
|
language: props.user.language,
|
|
2243
2236
|
firstName: props.user.firstName,
|
|
@@ -2332,19 +2325,19 @@ var LocaleSwitcher = function LocaleSwitcher(props) {
|
|
|
2332
2325
|
LocaleSwitcher.propTypes = {};
|
|
2333
2326
|
|
|
2334
2327
|
var ProjectNotFound = /*#__PURE__*/react.lazy(function () {
|
|
2335
|
-
return Promise.resolve().then(function () { return require('./project-not-found-
|
|
2328
|
+
return Promise.resolve().then(function () { return require('./project-not-found-998fdc8e.cjs.prod.js'
|
|
2336
2329
|
/* webpackChunkName: "project-not-found" */
|
|
2337
2330
|
); });
|
|
2338
2331
|
});
|
|
2339
2332
|
|
|
2340
2333
|
var ProjectExpired = /*#__PURE__*/react.lazy(function () {
|
|
2341
|
-
return Promise.resolve().then(function () { return require('./project-expired-
|
|
2334
|
+
return Promise.resolve().then(function () { return require('./project-expired-59cb3714.cjs.prod.js'
|
|
2342
2335
|
/* webpackChunkName: "project-expired" */
|
|
2343
2336
|
); });
|
|
2344
2337
|
});
|
|
2345
2338
|
|
|
2346
2339
|
var ProjectNotInitialized = /*#__PURE__*/react.lazy(function () {
|
|
2347
|
-
return Promise.resolve().then(function () { return require('./project-not-initialized-
|
|
2340
|
+
return Promise.resolve().then(function () { return require('./project-not-initialized-aca1e34f.cjs.prod.js'
|
|
2348
2341
|
/* webpackChunkName: "project-not-initialized" */
|
|
2349
2342
|
); });
|
|
2350
2343
|
});
|
|
@@ -2391,7 +2384,7 @@ var RedirectToProjectCreate = function RedirectToProjectCreate() {
|
|
|
2391
2384
|
RedirectToProjectCreate.displayName = 'RedirectToProjectCreate';
|
|
2392
2385
|
|
|
2393
2386
|
var ProjectSuspended = /*#__PURE__*/react.lazy(function () {
|
|
2394
|
-
return Promise.resolve().then(function () { return require('./project-suspended-
|
|
2387
|
+
return Promise.resolve().then(function () { return require('./project-suspended-e5827cf6.cjs.prod.js'
|
|
2395
2388
|
/* webpackChunkName: "project-suspended" */
|
|
2396
2389
|
); });
|
|
2397
2390
|
});
|
|
@@ -3007,6 +3000,24 @@ var useNavbarStateManager = function useNavbarStateManager(props) {
|
|
|
3007
3000
|
});
|
|
3008
3001
|
};
|
|
3009
3002
|
|
|
3003
|
+
var trackingEvents$1 = {
|
|
3004
|
+
collapseMainNav: {
|
|
3005
|
+
action: 'CollapseMainNav',
|
|
3006
|
+
category: 'Main-Navigation',
|
|
3007
|
+
label: 'Collapse Main Navigation'
|
|
3008
|
+
},
|
|
3009
|
+
expandMainNav: {
|
|
3010
|
+
action: 'ExpandMainNav',
|
|
3011
|
+
category: 'Main-Navigation',
|
|
3012
|
+
label: 'Expand Main Navigation'
|
|
3013
|
+
},
|
|
3014
|
+
goToSupport: {
|
|
3015
|
+
action: 'GoToSupport',
|
|
3016
|
+
category: 'Main-Navigation',
|
|
3017
|
+
label: 'Go to Support'
|
|
3018
|
+
}
|
|
3019
|
+
};
|
|
3020
|
+
|
|
3010
3021
|
var _excluded = ["icon"];
|
|
3011
3022
|
|
|
3012
3023
|
function ownKeys$2(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -3127,10 +3138,18 @@ IconSwitcher.propTypes = {};
|
|
|
3127
3138
|
IconSwitcher.displayName = 'IconSwitcher';
|
|
3128
3139
|
|
|
3129
3140
|
var MenuExpander = function MenuExpander(props) {
|
|
3141
|
+
var gtmTracking = react.useContext(GtmContext);
|
|
3130
3142
|
return jsxRuntime.jsx("li", {
|
|
3131
3143
|
className: classnames__default["default"](styles['list-item'], styles.expander, _defineProperty({}, styles.hidden, !props.isVisible)),
|
|
3132
3144
|
children: jsxRuntime.jsx("div", {
|
|
3133
|
-
onClick:
|
|
3145
|
+
onClick: function onClick(event) {
|
|
3146
|
+
var _trackingEvents = trackingEvents$1[props.isMenuOpen ? 'collapseMainNav' : 'expandMainNav'],
|
|
3147
|
+
action = _trackingEvents.action,
|
|
3148
|
+
category = _trackingEvents.category,
|
|
3149
|
+
label = _trackingEvents.label;
|
|
3150
|
+
gtmTracking.track(action, category, label);
|
|
3151
|
+
props.onClick(event);
|
|
3152
|
+
},
|
|
3134
3153
|
className: styles['expand-icon'],
|
|
3135
3154
|
"data-testid": "menu-expander",
|
|
3136
3155
|
children: jsxRuntime.jsx(icons.BackIcon, {
|
|
@@ -3464,6 +3483,7 @@ var NavBar = function NavBar(props) {
|
|
|
3464
3483
|
|
|
3465
3484
|
var useFullRedirectsForLinks = Boolean(props.environment.useFullRedirectsForLinks);
|
|
3466
3485
|
var location = reactRouterDom.useLocation();
|
|
3486
|
+
var gtmTracking = react.useContext(GtmContext);
|
|
3467
3487
|
var projectPermissions = react.useMemo(function () {
|
|
3468
3488
|
var _props$project, _props$project2, _props$project3;
|
|
3469
3489
|
|
|
@@ -3501,7 +3521,8 @@ var NavBar = function NavBar(props) {
|
|
|
3501
3521
|
menuVisibilities: menuVisibilities,
|
|
3502
3522
|
applicationLocale: props.applicationLocale,
|
|
3503
3523
|
projectKey: props.projectKey,
|
|
3504
|
-
useFullRedirectsForLinks: useFullRedirectsForLinks
|
|
3524
|
+
useFullRedirectsForLinks: useFullRedirectsForLinks,
|
|
3525
|
+
onMenuItemClick: props.onMenuItemClick
|
|
3505
3526
|
}, menu.key);
|
|
3506
3527
|
})
|
|
3507
3528
|
}), jsxRuntime.jsxs("div", {
|
|
@@ -3511,6 +3532,8 @@ var NavBar = function NavBar(props) {
|
|
|
3511
3532
|
isActive: false,
|
|
3512
3533
|
isMenuOpen: isMenuOpen,
|
|
3513
3534
|
onClick: function onClick() {
|
|
3535
|
+
gtmTracking.track(trackingEvents$1.goToSupport.action, trackingEvents$1.goToSupport.category, trackingEvents$1.goToSupport.label);
|
|
3536
|
+
|
|
3514
3537
|
_handleToggleItem('fixed-support');
|
|
3515
3538
|
},
|
|
3516
3539
|
onMouseEnter: isMenuOpen ? undefined : function () {
|
|
@@ -3537,7 +3560,8 @@ var NavBar = function NavBar(props) {
|
|
|
3537
3560
|
})
|
|
3538
3561
|
}), jsxRuntime.jsx(MenuExpander, {
|
|
3539
3562
|
isVisible: isExpanderVisible,
|
|
3540
|
-
onClick: handleToggleMenu
|
|
3563
|
+
onClick: handleToggleMenu,
|
|
3564
|
+
isMenuOpen: isMenuOpen
|
|
3541
3565
|
})]
|
|
3542
3566
|
})]
|
|
3543
3567
|
})
|
|
@@ -3606,7 +3630,7 @@ var pimIndexerStates = {
|
|
|
3606
3630
|
};
|
|
3607
3631
|
|
|
3608
3632
|
var QuickAccess = /*#__PURE__*/react.lazy(function () {
|
|
3609
|
-
return Promise.resolve().then(function () { return require('./quick-access-
|
|
3633
|
+
return Promise.resolve().then(function () { return require('./quick-access-09abcedb.cjs.prod.js'
|
|
3610
3634
|
/* webpackChunkName: "quick-access" */
|
|
3611
3635
|
); });
|
|
3612
3636
|
});
|
|
@@ -3911,11 +3935,6 @@ var _ref5 = {
|
|
|
3911
3935
|
styles: "grid-row:1;grid-column:1/3"
|
|
3912
3936
|
} ;
|
|
3913
3937
|
|
|
3914
|
-
var _ref6 = {
|
|
3915
|
-
name: "1gbbf0w",
|
|
3916
|
-
styles: "height:100vh;display:grid;grid-template-rows:auto 43px 1fr;grid-template-columns:auto 1fr"
|
|
3917
|
-
} ;
|
|
3918
|
-
|
|
3919
3938
|
var RestrictedApplication = function RestrictedApplication(props) {
|
|
3920
3939
|
var applicationEnvironment = applicationShellConnectors.useApplicationContext(function (context) {
|
|
3921
3940
|
return context.environment;
|
|
@@ -3926,11 +3945,17 @@ var RestrictedApplication = function RestrictedApplication(props) {
|
|
|
3926
3945
|
// ok-ish but we might want to look into a more performant solution.
|
|
3927
3946
|
|
|
3928
3947
|
var location = reactRouterDom.useLocation();
|
|
3948
|
+
var notificationsGlobalRef = react.useRef(null);
|
|
3949
|
+
var notificationsPageRef = react.useRef(null);
|
|
3950
|
+
var layoutRefs = react.useRef({
|
|
3951
|
+
notificationsGlobalRef: notificationsGlobalRef,
|
|
3952
|
+
notificationsPageRef: notificationsPageRef
|
|
3953
|
+
});
|
|
3929
3954
|
return jsxRuntime.jsx(FetchUser, {
|
|
3930
|
-
children: function children(
|
|
3931
|
-
var isLoadingUser =
|
|
3932
|
-
user =
|
|
3933
|
-
error =
|
|
3955
|
+
children: function children(_ref6) {
|
|
3956
|
+
var isLoadingUser = _ref6.isLoading,
|
|
3957
|
+
user = _ref6.user,
|
|
3958
|
+
error = _ref6.error;
|
|
3934
3959
|
|
|
3935
3960
|
if (error) {
|
|
3936
3961
|
// In case there is an unauthorized error, we redirect to the login page
|
|
@@ -3953,9 +3978,9 @@ var RestrictedApplication = function RestrictedApplication(props) {
|
|
|
3953
3978
|
return jsxRuntime.jsx(i18n.AsyncLocaleData, {
|
|
3954
3979
|
locale: userLocale,
|
|
3955
3980
|
applicationMessages: props.applicationMessages,
|
|
3956
|
-
children: function children(
|
|
3957
|
-
var locale =
|
|
3958
|
-
messages =
|
|
3981
|
+
children: function children(_ref7) {
|
|
3982
|
+
var locale = _ref7.locale,
|
|
3983
|
+
messages = _ref7.messages;
|
|
3959
3984
|
sentry.reportErrorToSentry(error, {});
|
|
3960
3985
|
return jsxRuntime.jsx(ConfigureIntlProvider, {
|
|
3961
3986
|
locale: locale,
|
|
@@ -3973,12 +3998,12 @@ var RestrictedApplication = function RestrictedApplication(props) {
|
|
|
3973
3998
|
children: jsxRuntime.jsx(i18n.AsyncLocaleData, {
|
|
3974
3999
|
locale: user === null || user === void 0 ? void 0 : user.language,
|
|
3975
4000
|
applicationMessages: props.applicationMessages,
|
|
3976
|
-
children: function children(
|
|
4001
|
+
children: function children(_ref8) {
|
|
3977
4002
|
var _user$businessRole;
|
|
3978
4003
|
|
|
3979
|
-
var isLoadingLocaleData =
|
|
3980
|
-
locale =
|
|
3981
|
-
messages =
|
|
4004
|
+
var isLoadingLocaleData = _ref8.isLoading,
|
|
4005
|
+
locale = _ref8.locale,
|
|
4006
|
+
messages = _ref8.messages;
|
|
3982
4007
|
return jsxRuntime.jsx(ConfigureIntlProvider // We do not want to pass the language as long as the locale data
|
|
3983
4008
|
// is not loaded.
|
|
3984
4009
|
, _objectSpread(_objectSpread({}, isLoadingLocaleData ? {} : {
|
|
@@ -4002,8 +4027,9 @@ var RestrictedApplication = function RestrictedApplication(props) {
|
|
|
4002
4027
|
userBusinessRole: (_user$businessRole = user === null || user === void 0 ? void 0 : user.businessRole) !== null && _user$businessRole !== void 0 ? _user$businessRole : undefined
|
|
4003
4028
|
}), jsxRuntime.jsxs("div", {
|
|
4004
4029
|
role: "application-layout",
|
|
4005
|
-
css:
|
|
4030
|
+
css: /*#__PURE__*/react$2.css("height:100vh;display:grid;grid-template-rows:auto ", constants.DIMENSIONS.header, " 1fr;grid-template-columns:auto 1fr;" + ("" ), "" ),
|
|
4006
4031
|
children: [jsxRuntime.jsx("div", {
|
|
4032
|
+
ref: notificationsGlobalRef,
|
|
4007
4033
|
role: "global-notifications",
|
|
4008
4034
|
css: _ref5,
|
|
4009
4035
|
children: jsxRuntime.jsx(reactNotifications.NotificationsList, {
|
|
@@ -4014,9 +4040,9 @@ var RestrictedApplication = function RestrictedApplication(props) {
|
|
|
4014
4040
|
if (!projectKeyFromUrl) return jsxRuntime.jsx(QuickAccessTrigger, {});
|
|
4015
4041
|
return jsxRuntime.jsx(FetchProject, {
|
|
4016
4042
|
projectKey: projectKeyFromUrl,
|
|
4017
|
-
children: function children(
|
|
4018
|
-
var isProjectLoading =
|
|
4019
|
-
project =
|
|
4043
|
+
children: function children(_ref9) {
|
|
4044
|
+
var isProjectLoading = _ref9.isLoading,
|
|
4045
|
+
project = _ref9.project;
|
|
4020
4046
|
if (isProjectLoading || !project) return null; // when used outside of a project context,
|
|
4021
4047
|
// or when the project is expired or supsended
|
|
4022
4048
|
|
|
@@ -4024,9 +4050,9 @@ var RestrictedApplication = function RestrictedApplication(props) {
|
|
|
4024
4050
|
if (!shouldUseProjectContext) return jsxRuntime.jsx(QuickAccessTrigger, {});
|
|
4025
4051
|
return jsxRuntime.jsx(ProjectDataLocale, {
|
|
4026
4052
|
locales: project.languages,
|
|
4027
|
-
children: function children(
|
|
4028
|
-
var dataLocale =
|
|
4029
|
-
setProjectDataLocale =
|
|
4053
|
+
children: function children(_ref10) {
|
|
4054
|
+
var dataLocale = _ref10.locale,
|
|
4055
|
+
setProjectDataLocale = _ref10.setProjectDataLocale;
|
|
4030
4056
|
return jsxRuntime.jsx(applicationShellConnectors.ApplicationContextProvider, {
|
|
4031
4057
|
user: user,
|
|
4032
4058
|
project: project,
|
|
@@ -4065,9 +4091,9 @@ var RestrictedApplication = function RestrictedApplication(props) {
|
|
|
4065
4091
|
if (!projectKeyFromUrl) return null;
|
|
4066
4092
|
return jsxRuntime.jsx(FetchProject, {
|
|
4067
4093
|
projectKey: projectKeyFromUrl,
|
|
4068
|
-
children: function children(
|
|
4069
|
-
var isLoadingProject =
|
|
4070
|
-
project =
|
|
4094
|
+
children: function children(_ref11) {
|
|
4095
|
+
var isLoadingProject = _ref11.isLoading,
|
|
4096
|
+
project = _ref11.project;
|
|
4071
4097
|
// Render the loading navbar as long as all the data
|
|
4072
4098
|
// hasn't been loaded, or if the project does not exist.
|
|
4073
4099
|
if (isLoadingUser || isLoadingLocaleData || isLoadingProject || !locale || !project) return jsxRuntime.jsx(LoadingNavBar, {});
|
|
@@ -4093,13 +4119,22 @@ var RestrictedApplication = function RestrictedApplication(props) {
|
|
|
4093
4119
|
children: jsxRuntime.jsx(ApplicationLoader, {})
|
|
4094
4120
|
}) : jsxRuntime.jsxs(MainContainer, {
|
|
4095
4121
|
role: "main",
|
|
4096
|
-
children: [jsxRuntime.jsx(
|
|
4097
|
-
|
|
4122
|
+
children: [jsxRuntime.jsx("div", {
|
|
4123
|
+
ref: notificationsPageRef,
|
|
4124
|
+
children: jsxRuntime.jsx(reactNotifications.NotificationsList, {
|
|
4125
|
+
domain: constants$1.DOMAINS.PAGE
|
|
4126
|
+
})
|
|
4098
4127
|
}), jsxRuntime.jsx(reactNotifications.NotificationsList, {
|
|
4099
4128
|
domain: constants$1.DOMAINS.SIDE
|
|
4100
4129
|
}), jsxRuntime.jsxs("div", {
|
|
4101
4130
|
css: _ref2,
|
|
4102
|
-
children: [jsxRuntime.jsx(applicationComponents.PortalsContainer
|
|
4131
|
+
children: [jsxRuntime.jsx(applicationComponents.PortalsContainer // @ts-ignore
|
|
4132
|
+
, {
|
|
4133
|
+
ref: layoutRefs,
|
|
4134
|
+
offsetTop: constants.DIMENSIONS.header,
|
|
4135
|
+
offsetLeft: projectKeyFromUrl ? constants.DIMENSIONS.navMenu : '0px',
|
|
4136
|
+
offsetLeftOnExpandedMenu: projectKeyFromUrl ? constants.DIMENSIONS.navMenuExpanded : '0px'
|
|
4137
|
+
}), jsxRuntime.jsxs(reactRouterDom.Switch, {
|
|
4103
4138
|
children: [jsxRuntime.jsx(reactRouterDom.Redirect, {
|
|
4104
4139
|
from: "/profile",
|
|
4105
4140
|
to: "/account/profile"
|
|
@@ -4174,8 +4209,8 @@ var RestrictedApplication = function RestrictedApplication(props) {
|
|
|
4174
4209
|
RestrictedApplication.displayName = 'RestrictedApplication';
|
|
4175
4210
|
|
|
4176
4211
|
var _ref = {
|
|
4177
|
-
name: "
|
|
4178
|
-
styles: "#app{height:100%;}
|
|
4212
|
+
name: "172jsbd",
|
|
4213
|
+
styles: "#app{height:100%;}"
|
|
4179
4214
|
} ;
|
|
4180
4215
|
|
|
4181
4216
|
var ApplicationShell = function ApplicationShell(props) {
|
|
@@ -4195,8 +4230,8 @@ var ApplicationShell = function ApplicationShell(props) {
|
|
|
4195
4230
|
environment: props.environment,
|
|
4196
4231
|
trackingEventList: props.trackingEventList,
|
|
4197
4232
|
applicationMessages: props.applicationMessages,
|
|
4198
|
-
children: function children(
|
|
4199
|
-
var isAuthenticated =
|
|
4233
|
+
children: function children(_ref12) {
|
|
4234
|
+
var isAuthenticated = _ref12.isAuthenticated;
|
|
4200
4235
|
|
|
4201
4236
|
if (isAuthenticated) {
|
|
4202
4237
|
return jsxRuntime.jsxs(reactRouterDom.Switch, {
|