@commercetools-frontend/application-shell 22.10.0 → 22.12.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/commercetools-frontend-application-shell.cjs.dev.js +5 -5
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +5 -5
- package/dist/commercetools-frontend-application-shell.esm.js +5 -5
- package/dist/{custom-view-dev-host-cb49959d.esm.js → custom-view-dev-host-97825f04.esm.js} +5 -5
- package/dist/{custom-view-dev-host-379d3461.cjs.dev.js → custom-view-dev-host-ab602e4b.cjs.dev.js} +5 -5
- package/dist/declarations/src/components/app-bar/app-bar.d.ts +0 -1
- package/dist/declarations/src/components/application-shell/application-shell.d.ts +1 -0
- package/dist/declarations/src/components/application-shell-authenticated/application-shell-authenticated.d.ts +1 -4
- package/dist/declarations/src/components/custom-view-shell/custom-view-shell.d.ts +3 -0
- package/dist/declarations/src/components/locale-switcher/locale-switcher.d.ts +1 -4
- package/dist/declarations/src/components/navbar/compiled/navbar.css.json.d.ts +3 -0
- package/dist/declarations/src/components/navbar/index.d.ts +1 -3
- package/dist/declarations/src/components/navbar/{navbar-new/menu-items.d.ts → menu-items.d.ts} +1 -1
- package/dist/declarations/src/components/navbar/navbar.d.ts +43 -4
- package/dist/declarations/src/components/navbar/use-navbar-state-manager.d.ts +0 -1
- package/dist/declarations/src/components/project-switcher/project-switcher.d.ts +1 -4
- package/dist/declarations/src/constants.d.ts +2 -6
- package/dist/declarations/src/test-utils/custom-views-utils.d.ts +10 -1
- package/dist/declarations/src/types/generated/settings.d.ts +114 -1
- package/dist/index-090350e1.esm.js +2017 -0
- package/dist/index-4f10b4f6.cjs.dev.js +2077 -0
- package/dist/{index-1d3e351d.cjs.prod.js → index-d1be72d3.cjs.prod.js} +278 -304
- package/dist/navbar-10252888.cjs.prod.js +1096 -0
- package/dist/navbar-948abeab.cjs.dev.js +1230 -0
- package/dist/navbar-ba4b5961.esm.js +1199 -0
- package/dist/{oidc-b2ac8a92.cjs.prod.js → oidc-088842ab.cjs.prod.js} +3 -7
- package/dist/{oidc-0c6ca06c.cjs.dev.js → oidc-b577ced5.cjs.dev.js} +3 -7
- package/dist/{oidc-95696f7b.esm.js → oidc-beeb911e.esm.js} +3 -7
- package/dist/{oidc-callback-23a07314.esm.js → oidc-callback-0c55b52a.esm.js} +5 -5
- package/dist/{oidc-callback-d8c66ca9.cjs.dev.js → oidc-callback-79de3285.cjs.dev.js} +5 -5
- package/dist/{oidc-callback-c3d56a4a.cjs.prod.js → oidc-callback-fd6fc3cb.cjs.prod.js} +5 -5
- package/dist/{project-container-216869fc.cjs.prod.js → project-container-d6ef4f95.cjs.prod.js} +22 -19
- package/dist/project-container-d7e433b2.cjs.dev.js +341 -0
- package/dist/project-container-dc6a77c1.esm.js +322 -0
- package/dist/{project-expired-112eb293.esm.js → project-expired-15d1e2ad.esm.js} +6 -6
- package/dist/{project-expired-4015d379.cjs.prod.js → project-expired-5f27a7e0.cjs.prod.js} +6 -6
- package/dist/{project-expired-94a0f5f7.cjs.dev.js → project-expired-cd8490b4.cjs.dev.js} +6 -6
- package/dist/{project-not-found-fcfed135.cjs.dev.js → project-not-found-1c22a5d3.cjs.dev.js} +6 -6
- package/dist/{project-not-found-9aee8dfd.esm.js → project-not-found-343dd667.esm.js} +6 -6
- package/dist/{project-not-found-9ac24482.cjs.prod.js → project-not-found-c43387f6.cjs.prod.js} +6 -6
- package/dist/{project-not-initialized-5624fe32.cjs.prod.js → project-not-initialized-6294cbc3.cjs.prod.js} +6 -6
- package/dist/{project-not-initialized-814ee00a.cjs.dev.js → project-not-initialized-e2dec8e0.cjs.dev.js} +6 -6
- package/dist/{project-not-initialized-51df89c0.esm.js → project-not-initialized-f3c58ee4.esm.js} +6 -6
- package/dist/{project-suspended-0a013a7f.cjs.prod.js → project-suspended-10846838.cjs.prod.js} +6 -6
- package/dist/{project-suspended-10fa0f61.cjs.dev.js → project-suspended-8ce7ddfc.cjs.dev.js} +6 -6
- package/dist/{project-suspended-e30818a8.esm.js → project-suspended-ab6c0490.esm.js} +6 -6
- package/dist/{quick-access-d5863124.esm.js → quick-access-51aa3d25.esm.js} +5 -5
- package/dist/{quick-access-9613aac7.cjs.dev.js → quick-access-5f0de0db.cjs.dev.js} +5 -5
- package/dist/{quick-access-a2d6f564.cjs.prod.js → quick-access-6a5e691d.cjs.prod.js} +5 -5
- package/dist/{redirect-to-login-aa538da2.cjs.dev.js → redirect-to-login-0a3097b7.cjs.dev.js} +1 -1
- package/dist/{redirect-to-login-9535ddbc.esm.js → redirect-to-login-238fc787.esm.js} +1 -1
- package/dist/{redirect-to-login-ee9f3801.cjs.prod.js → redirect-to-login-d261e811.cjs.prod.js} +1 -1
- package/dist/{redirect-to-logout-4889145e.cjs.prod.js → redirect-to-logout-469ef788.cjs.prod.js} +5 -5
- package/dist/{redirect-to-logout-9a89f5d8.esm.js → redirect-to-logout-799ffcc9.esm.js} +5 -5
- package/dist/{redirect-to-logout-202a372c.cjs.dev.js → redirect-to-logout-a0f22525.cjs.dev.js} +5 -5
- package/dist/{requests-in-flight-loader-697dd557.esm.js → requests-in-flight-loader-24dd0f9b.esm.js} +5 -5
- package/dist/{requests-in-flight-loader-9bc6935e.cjs.prod.js → requests-in-flight-loader-3929ce45.cjs.prod.js} +5 -5
- package/dist/{requests-in-flight-loader-55be9493.cjs.dev.js → requests-in-flight-loader-d5fb3a86.cjs.dev.js} +5 -5
- package/dist/{service-page-project-switcher-e3896261.cjs.prod.js → service-page-project-switcher-38212a13.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-ef2835a1.cjs.dev.js → service-page-project-switcher-9bb9d702.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-4bc59464.esm.js → service-page-project-switcher-ce8f6d34.esm.js} +1 -1
- package/dist/{user-settings-menu-59dbf5d2.cjs.dev.js → user-settings-menu-1b68d2f1.cjs.dev.js} +1 -1
- package/dist/{user-settings-menu-70751be9.cjs.prod.js → user-settings-menu-4e010c39.cjs.prod.js} +1 -1
- package/dist/{user-settings-menu-5841d422.esm.js → user-settings-menu-622c7fad.esm.js} +1 -1
- package/dist/{version-tracker-d1c9e71c.esm.js → version-tracker-219aff77.esm.js} +5 -5
- package/dist/{version-tracker-df0e6378.cjs.dev.js → version-tracker-3a534278.cjs.dev.js} +5 -5
- package/dist/{version-tracker-ea617837.cjs.prod.js → version-tracker-420ad591.cjs.prod.js} +5 -5
- package/package.json +21 -21
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +1 -1
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +1 -1
- package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +1 -1
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +8 -2
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +8 -2
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +9 -3
- package/dist/declarations/src/components/application-shell-authenticated/new-main-navigation-flag-wrapper.d.ts +0 -9
- package/dist/declarations/src/components/navbar/navbar-new/compiled/navbar.css.json.d.ts +0 -3
- package/dist/declarations/src/components/navbar/navbar-new/navbar.d.ts +0 -48
- package/dist/declarations/src/components/navbar/navbar-old/compiled/navbar.css.json.d.ts +0 -3
- package/dist/declarations/src/components/navbar/navbar-old/loading-navbar.d.ts +0 -5
- package/dist/declarations/src/components/navbar/navbar-old/menu-items.d.ts +0 -100
- package/dist/declarations/src/components/navbar/navbar-old/navbar.d.ts +0 -48
- package/dist/declarations/src/components/navbar/navbar-old/navbar.styles.d.ts +0 -7
- package/dist/declarations/src/components/navbar/use-loading-menu-layout-effect.d.ts +0 -2
- package/dist/declarations/src/feature-toggles.d.ts +0 -4
- package/dist/index-8c459700.cjs.dev.js +0 -2079
- package/dist/index-b87860b8.esm.js +0 -2017
- package/dist/navbar-117d6a67.esm.js +0 -2006
- package/dist/navbar-4dc84744.cjs.prod.js +0 -1834
- package/dist/navbar-a4e4bff2.cjs.dev.js +0 -2037
- package/dist/project-container-41ab7c8c.esm.js +0 -321
- package/dist/project-container-61346ae8.cjs.dev.js +0 -340
- /package/dist/declarations/src/components/navbar/{navbar-new/navbar-skeleton.d.ts → navbar-skeleton.d.ts} +0 -0
- /package/dist/declarations/src/components/navbar/{navbar-new/navbar-skeleton.styles.d.ts → navbar-skeleton.styles.d.ts} +0 -0
- /package/dist/declarations/src/components/navbar/{navbar-new/navbar.styles.d.ts → navbar.styles.d.ts} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
5
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-4f10b4f6.cjs.dev.js');
|
|
6
6
|
var index = require('./index-37a25e51.cjs.dev.js');
|
|
7
7
|
var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
|
|
8
8
|
var ssr = require('@commercetools-frontend/application-config/ssr');
|
|
@@ -30,11 +30,10 @@ require('@commercetools-frontend/constants');
|
|
|
30
30
|
require('@commercetools-frontend/i18n');
|
|
31
31
|
require('@commercetools-frontend/react-notifications');
|
|
32
32
|
require('@commercetools-frontend/sentry');
|
|
33
|
-
require('./oidc-
|
|
33
|
+
require('./oidc-b577ced5.cjs.dev.js');
|
|
34
34
|
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
35
35
|
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
36
36
|
require('@babel/runtime-corejs3/core-js-stable/url');
|
|
37
|
-
require('@commercetools-frontend/assets/images/logo.svg');
|
|
38
37
|
require('@commercetools-uikit/design-system');
|
|
39
38
|
require('@commercetools-uikit/spacings');
|
|
40
39
|
require('react-intl');
|
|
@@ -43,8 +42,10 @@ require('@commercetools-uikit/icons');
|
|
|
43
42
|
require('./use-is-served-by-proxy-ed411f45.cjs.dev.js');
|
|
44
43
|
require('@emotion/react/jsx-runtime');
|
|
45
44
|
require('@babel/runtime-corejs3/helpers/taggedTemplateLiteral');
|
|
46
|
-
require('@babel/runtime-corejs3/helpers/
|
|
45
|
+
require('@babel/runtime-corejs3/helpers/objectDestructuringEmpty');
|
|
46
|
+
require('@babel/runtime-corejs3/helpers/extends');
|
|
47
47
|
require('memoize-one');
|
|
48
|
+
require('react-select');
|
|
48
49
|
require('@commercetools-uikit/accessible-hidden');
|
|
49
50
|
require('@commercetools-uikit/select-input');
|
|
50
51
|
require('@commercetools-frontend/assets/images/ct-logo.svg');
|
|
@@ -66,7 +67,6 @@ require('@apollo/client/react');
|
|
|
66
67
|
require('@flopflip/combine-adapters');
|
|
67
68
|
require('@flopflip/http-adapter');
|
|
68
69
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
69
|
-
require('@flopflip/types');
|
|
70
70
|
require('react-redux');
|
|
71
71
|
require('lodash/upperFirst');
|
|
72
72
|
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
5
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-d1be72d3.cjs.prod.js');
|
|
6
6
|
var index = require('./index-6cd618cc.cjs.prod.js');
|
|
7
7
|
var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
|
|
8
8
|
var ssr = require('@commercetools-frontend/application-config/ssr');
|
|
@@ -30,11 +30,10 @@ require('@commercetools-frontend/constants');
|
|
|
30
30
|
require('@commercetools-frontend/i18n');
|
|
31
31
|
require('@commercetools-frontend/react-notifications');
|
|
32
32
|
require('@commercetools-frontend/sentry');
|
|
33
|
-
require('./oidc-
|
|
33
|
+
require('./oidc-088842ab.cjs.prod.js');
|
|
34
34
|
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
35
35
|
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
36
36
|
require('@babel/runtime-corejs3/core-js-stable/url');
|
|
37
|
-
require('@commercetools-frontend/assets/images/logo.svg');
|
|
38
37
|
require('@commercetools-uikit/design-system');
|
|
39
38
|
require('@commercetools-uikit/spacings');
|
|
40
39
|
require('react-intl');
|
|
@@ -43,8 +42,10 @@ require('@commercetools-uikit/icons');
|
|
|
43
42
|
require('./use-is-served-by-proxy-845cace5.cjs.prod.js');
|
|
44
43
|
require('@emotion/react/jsx-runtime');
|
|
45
44
|
require('@babel/runtime-corejs3/helpers/taggedTemplateLiteral');
|
|
46
|
-
require('@babel/runtime-corejs3/helpers/
|
|
45
|
+
require('@babel/runtime-corejs3/helpers/objectDestructuringEmpty');
|
|
46
|
+
require('@babel/runtime-corejs3/helpers/extends');
|
|
47
47
|
require('memoize-one');
|
|
48
|
+
require('react-select');
|
|
48
49
|
require('@commercetools-uikit/accessible-hidden');
|
|
49
50
|
require('@commercetools-uikit/select-input');
|
|
50
51
|
require('@commercetools-frontend/assets/images/ct-logo.svg');
|
|
@@ -66,7 +67,6 @@ require('@apollo/client/react');
|
|
|
66
67
|
require('@flopflip/combine-adapters');
|
|
67
68
|
require('@flopflip/http-adapter');
|
|
68
69
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
69
|
-
require('@flopflip/types');
|
|
70
70
|
require('react-redux');
|
|
71
71
|
require('lodash/upperFirst');
|
|
72
72
|
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as ApplicationPageTitle, A as ApplicationShell, f as ApplicationShellProvider, C as ConfigureIntlProvider, h as CustomViewShell, I as InjectReducers, S as SetupFlopFlipProvider, i as SuspendedRoute, s as setupGlobalErrorListener, u as useRoutesCreator, d as version } from './index-
|
|
1
|
+
export { g as ApplicationPageTitle, A as ApplicationShell, f as ApplicationShellProvider, C as ConfigureIntlProvider, h as CustomViewShell, I as InjectReducers, S as SetupFlopFlipProvider, i as SuspendedRoute, s as setupGlobalErrorListener, u as useRoutesCreator, d as version } from './index-090350e1.esm.js';
|
|
2
2
|
export { R as RouteCatchAll, a as applyDefaultMiddlewares } from './index-89e5711a.esm.js';
|
|
3
3
|
export { buildApiUrl, createApolloClient, createApolloContextForProxyForwardTo, createHttpClientOptions, executeHttpClientRequest, getMcApiUrl, selectProjectKeyFromUrl, selectUserId, useMcLazyQuery, useMcMutation, useMcQuery } from '@commercetools-frontend/application-shell-connectors';
|
|
4
4
|
export { entryPointUriPathToPermissionKeys, entryPointUriPathToResourceAccesses } from '@commercetools-frontend/application-config/ssr';
|
|
@@ -26,11 +26,10 @@ import '@commercetools-frontend/constants';
|
|
|
26
26
|
import '@commercetools-frontend/i18n';
|
|
27
27
|
import '@commercetools-frontend/react-notifications';
|
|
28
28
|
import '@commercetools-frontend/sentry';
|
|
29
|
-
import './oidc-
|
|
29
|
+
import './oidc-beeb911e.esm.js';
|
|
30
30
|
import '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
31
31
|
import '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
32
32
|
import '@babel/runtime-corejs3/core-js-stable/url';
|
|
33
|
-
import '@commercetools-frontend/assets/images/logo.svg';
|
|
34
33
|
import '@commercetools-uikit/design-system';
|
|
35
34
|
import '@commercetools-uikit/spacings';
|
|
36
35
|
import 'react-intl';
|
|
@@ -39,8 +38,10 @@ import '@commercetools-uikit/icons';
|
|
|
39
38
|
import './use-is-served-by-proxy-77984220.esm.js';
|
|
40
39
|
import '@emotion/react/jsx-runtime';
|
|
41
40
|
import '@babel/runtime-corejs3/helpers/taggedTemplateLiteral';
|
|
42
|
-
import '@babel/runtime-corejs3/helpers/
|
|
41
|
+
import '@babel/runtime-corejs3/helpers/objectDestructuringEmpty';
|
|
42
|
+
import '@babel/runtime-corejs3/helpers/extends';
|
|
43
43
|
import 'memoize-one';
|
|
44
|
+
import 'react-select';
|
|
44
45
|
import '@commercetools-uikit/accessible-hidden';
|
|
45
46
|
import '@commercetools-uikit/select-input';
|
|
46
47
|
import '@commercetools-frontend/assets/images/ct-logo.svg';
|
|
@@ -62,7 +63,6 @@ import '@apollo/client/react';
|
|
|
62
63
|
import '@flopflip/combine-adapters';
|
|
63
64
|
import '@flopflip/http-adapter';
|
|
64
65
|
import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
|
|
65
|
-
import '@flopflip/types';
|
|
66
66
|
import 'react-redux';
|
|
67
67
|
import 'lodash/upperFirst';
|
|
68
68
|
import '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
|
|
@@ -10,7 +10,7 @@ import Constraints from '@commercetools-uikit/constraints';
|
|
|
10
10
|
import PrimaryButton from '@commercetools-uikit/primary-button';
|
|
11
11
|
import Spacings from '@commercetools-uikit/spacings';
|
|
12
12
|
import Text from '@commercetools-uikit/text';
|
|
13
|
-
import { A as ApplicationShell } from './index-
|
|
13
|
+
import { A as ApplicationShell } from './index-090350e1.esm.js';
|
|
14
14
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
15
15
|
import './index-89e5711a.esm.js';
|
|
16
16
|
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
@@ -45,17 +45,18 @@ import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
|
45
45
|
import '@babel/runtime-corejs3/core-js-stable/array/is-array';
|
|
46
46
|
import '@emotion/react';
|
|
47
47
|
import '@commercetools-frontend/i18n';
|
|
48
|
-
import './oidc-
|
|
48
|
+
import './oidc-beeb911e.esm.js';
|
|
49
49
|
import '@babel/runtime-corejs3/core-js-stable/url';
|
|
50
|
-
import '@commercetools-frontend/assets/images/logo.svg';
|
|
51
50
|
import '@commercetools-uikit/design-system';
|
|
52
51
|
import 'react-intl';
|
|
53
52
|
import '@commercetools-uikit/flat-button';
|
|
54
53
|
import '@commercetools-uikit/icons';
|
|
55
54
|
import './use-is-served-by-proxy-77984220.esm.js';
|
|
56
55
|
import '@babel/runtime-corejs3/helpers/taggedTemplateLiteral';
|
|
57
|
-
import '@babel/runtime-corejs3/helpers/
|
|
56
|
+
import '@babel/runtime-corejs3/helpers/objectDestructuringEmpty';
|
|
57
|
+
import '@babel/runtime-corejs3/helpers/extends';
|
|
58
58
|
import 'memoize-one';
|
|
59
|
+
import 'react-select';
|
|
59
60
|
import '@commercetools-uikit/accessible-hidden';
|
|
60
61
|
import '@commercetools-uikit/select-input';
|
|
61
62
|
import '@commercetools-frontend/assets/images/ct-logo.svg';
|
|
@@ -74,7 +75,6 @@ import '@flopflip/combine-adapters';
|
|
|
74
75
|
import '@flopflip/http-adapter';
|
|
75
76
|
import '@flopflip/launchdarkly-adapter';
|
|
76
77
|
import '@flopflip/react-broadcast';
|
|
77
|
-
import '@flopflip/types';
|
|
78
78
|
import 'react-redux';
|
|
79
79
|
import 'lodash/upperFirst';
|
|
80
80
|
import '@commercetools-uikit/design-system/materials/resets.css';
|
package/dist/{custom-view-dev-host-379d3461.cjs.dev.js → custom-view-dev-host-ab602e4b.cjs.dev.js}
RENAMED
|
@@ -12,7 +12,7 @@ var Constraints = require('@commercetools-uikit/constraints');
|
|
|
12
12
|
var PrimaryButton = require('@commercetools-uikit/primary-button');
|
|
13
13
|
var Spacings = require('@commercetools-uikit/spacings');
|
|
14
14
|
var Text = require('@commercetools-uikit/text');
|
|
15
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
15
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-4f10b4f6.cjs.dev.js');
|
|
16
16
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
17
17
|
require('./index-37a25e51.cjs.dev.js');
|
|
18
18
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
@@ -47,17 +47,18 @@ require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
|
47
47
|
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
48
48
|
require('@emotion/react');
|
|
49
49
|
require('@commercetools-frontend/i18n');
|
|
50
|
-
require('./oidc-
|
|
50
|
+
require('./oidc-b577ced5.cjs.dev.js');
|
|
51
51
|
require('@babel/runtime-corejs3/core-js-stable/url');
|
|
52
|
-
require('@commercetools-frontend/assets/images/logo.svg');
|
|
53
52
|
require('@commercetools-uikit/design-system');
|
|
54
53
|
require('react-intl');
|
|
55
54
|
require('@commercetools-uikit/flat-button');
|
|
56
55
|
require('@commercetools-uikit/icons');
|
|
57
56
|
require('./use-is-served-by-proxy-ed411f45.cjs.dev.js');
|
|
58
57
|
require('@babel/runtime-corejs3/helpers/taggedTemplateLiteral');
|
|
59
|
-
require('@babel/runtime-corejs3/helpers/
|
|
58
|
+
require('@babel/runtime-corejs3/helpers/objectDestructuringEmpty');
|
|
59
|
+
require('@babel/runtime-corejs3/helpers/extends');
|
|
60
60
|
require('memoize-one');
|
|
61
|
+
require('react-select');
|
|
61
62
|
require('@commercetools-uikit/accessible-hidden');
|
|
62
63
|
require('@commercetools-uikit/select-input');
|
|
63
64
|
require('@commercetools-frontend/assets/images/ct-logo.svg');
|
|
@@ -76,7 +77,6 @@ require('@flopflip/combine-adapters');
|
|
|
76
77
|
require('@flopflip/http-adapter');
|
|
77
78
|
require('@flopflip/launchdarkly-adapter');
|
|
78
79
|
require('@flopflip/react-broadcast');
|
|
79
|
-
require('@flopflip/types');
|
|
80
80
|
require('react-redux');
|
|
81
81
|
require('lodash/upperFirst');
|
|
82
82
|
require('@commercetools-uikit/design-system/materials/resets.css');
|
|
@@ -2,7 +2,6 @@ import type { TFetchLoggedInUserQuery } from '../../types/generated/mc';
|
|
|
2
2
|
type Props = {
|
|
3
3
|
user: TFetchLoggedInUserQuery['user'];
|
|
4
4
|
projectKeyFromUrl?: string;
|
|
5
|
-
isNewNavigationEnabled: boolean;
|
|
6
5
|
};
|
|
7
6
|
declare const AppBar: {
|
|
8
7
|
(props: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -10,13 +10,10 @@ type TApplicationShellAuthenticationProps = {
|
|
|
10
10
|
render?: () => JSX.Element;
|
|
11
11
|
children?: ReactNode;
|
|
12
12
|
};
|
|
13
|
-
type MainContainerProps = {
|
|
14
|
-
isNewNavigationEnabled: boolean;
|
|
15
|
-
};
|
|
16
13
|
export declare const MainContainer: import("@emotion/styled").StyledComponent<{
|
|
17
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
18
15
|
as?: import("react").ElementType<any> | undefined;
|
|
19
|
-
}
|
|
16
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
20
17
|
export declare const ApplicationShellAuthenticated: {
|
|
21
18
|
(props: TApplicationShellAuthenticationProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
22
19
|
displayName: string;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
+
import { ApolloClient, type NormalizedCacheObject } from '@apollo/client';
|
|
2
3
|
import { type TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
|
|
3
4
|
type TCustomViewShellProps = {
|
|
5
|
+
apolloClient?: ApolloClient<NormalizedCacheObject>;
|
|
4
6
|
applicationMessages: TAsyncLocaleDataProps['applicationMessages'];
|
|
5
7
|
disableDevHost?: boolean;
|
|
8
|
+
enableReactStrictMode?: boolean;
|
|
6
9
|
children: ReactNode;
|
|
7
10
|
};
|
|
8
11
|
declare const CustomViewShellWrapper: (props: TCustomViewShellProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import type { SingleValueProps } from 'react-select';
|
|
2
|
-
type CustomSingleValueProps = SingleValueProps & {
|
|
3
|
-
localeCount: number;
|
|
4
|
-
};
|
|
5
2
|
type Props = {
|
|
6
3
|
projectDataLocale: string;
|
|
7
4
|
setProjectDataLocale: (locale: string) => void;
|
|
8
5
|
availableLocales: string[];
|
|
9
6
|
};
|
|
10
7
|
export declare const SingleValue: {
|
|
11
|
-
(props:
|
|
8
|
+
(props: SingleValueProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
12
9
|
displayName: string;
|
|
13
10
|
};
|
|
14
11
|
declare const LocaleSwitcher: (props: Props) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/* eslint-disable prettier/prettier */
|
|
2
|
+
declare const styles: {"left-navigation":"navbar-mod__left-navigation___n7yUt","navigation-header":"navbar-mod__navigation-header___Z6fOr","icon-container":"navbar-mod__icon-container___w3FtA","title":"navbar-mod__title___eRWUj","visible":"navbar-mod__visible___AKV1b","icon":"navbar-mod__icon___bLsep","list":"navbar-mod__list___RCV3J","list-item":"navbar-mod__list-item___MjK6t","item-link":"navbar-mod__item-link___X2Ina","item-icon-text":"navbar-mod__item-icon-text___a-8JY","expander":"navbar-mod__expander___jyAUi","expand-icon":"navbar-mod__expand-icon___BtmRa","item--bottom":"navbar-mod__item--bottom___eW7nh","item_menu__active":"navbar-mod__item_menu__active___5xFRw","item_menu-open":"navbar-mod__item_menu-open___zk0zh","item_menu-collapsed":"navbar-mod__item_menu-collapsed___cluyY","item__active":"navbar-mod__item__active___lo1sr","sublist":"navbar-mod__sublist___os1s7","sublist-expanded__active":"navbar-mod__sublist-expanded__active___240JK","sublist-collapsed__active":"navbar-mod__sublist-collapsed__active___-9vYh","sublist-collapsed__active__above":"navbar-mod__sublist-collapsed__active__above___BXCeM","sublist__inactive":"navbar-mod__sublist__inactive___kJvf-","sublist-item":"navbar-mod__sublist-item___gafkS","sublist-item__active":"navbar-mod__sublist-item__active___QC6pa","text":"navbar-mod__text___ccHEu","text-link":"navbar-mod__text-link___dhtj6","text-link-sublist-wrapper":"navbar-mod__text-link-sublist-wrapper___1JN4x","text-link-sublist":"navbar-mod__text-link-sublist___AoIpU","navlink-clickable-content":"navbar-mod__navlink-clickable-content___bzddC","fixed-menu":"navbar-mod__fixed-menu___42tD9","support-menu":"navbar-mod__support-menu___fi5Ka","tooltip-container":"navbar-mod__tooltip-container___iJYyi","tooltip":"navbar-mod__tooltip___1ID3j","sublist-collapsed__empty":"navbar-mod__sublist-collapsed__empty___FBUli","highlighted":"navbar-mod__highlighted___oJWkA","hidden":"navbar-mod__hidden___TQLSs","divider":"navbar-mod__divider___TpVzu","loading-dot-container":"navbar-mod__loading-dot-container___G2LVb","scrollable-menu":"navbar-mod__scrollable-menu___64pxJ"};
|
|
3
|
+
export default styles;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const Navbar: import("react").LazyExoticComponent<{
|
|
3
|
-
(props: import("./navbar
|
|
4
|
-
isNewNavigationEnabled: boolean;
|
|
5
|
-
}): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
3
|
+
(props: import("./navbar").TNavbarProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
6
4
|
displayName: string;
|
|
7
5
|
}>;
|
|
8
6
|
export default Navbar;
|
package/dist/declarations/src/components/navbar/{navbar-new/menu-items.d.ts → menu-items.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MouseEventHandler, type ReactNode, type SyntheticEvent } from 'react';
|
|
2
2
|
import type { TNormalizedMenuVisibilities, TNormalizedPermissions, TNormalizedActionRights, TNormalizedDataFences } from '@commercetools-frontend/application-shell-connectors';
|
|
3
3
|
import { BackIcon } from '@commercetools-uikit/icons';
|
|
4
|
-
import type { TDataFence, TActionRight, TLocalizedField } from '
|
|
4
|
+
import type { TDataFence, TActionRight, TLocalizedField } from '../../types/generated/proxy';
|
|
5
5
|
type TProjectPermissions = {
|
|
6
6
|
permissions: TNormalizedPermissions | null;
|
|
7
7
|
actionRights: TNormalizedActionRights | null;
|
|
@@ -1,8 +1,47 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type MouseEventHandler } from 'react';
|
|
2
|
+
import type { RouteComponentProps } from 'react-router-dom';
|
|
3
|
+
import type { TApplicationContext, TNormalizedMenuVisibilities, TNormalizedPermissions, TNormalizedActionRights, TNormalizedDataFences } from '@commercetools-frontend/application-shell-connectors';
|
|
4
|
+
import type { TFetchProjectQuery } from '../../types/generated/mc';
|
|
5
|
+
import type { TNavbarMenu } from '../../types/generated/proxy';
|
|
6
|
+
import { type MenuItemLinkProps } from './menu-items';
|
|
7
|
+
type TProjectPermissions = {
|
|
8
|
+
permissions: TNormalizedPermissions | null;
|
|
9
|
+
actionRights: TNormalizedActionRights | null;
|
|
10
|
+
dataFences: TNormalizedDataFences | null;
|
|
11
|
+
};
|
|
12
|
+
type TMenuWithDefaultLabel = TNavbarMenu & {
|
|
13
|
+
defaultLabel?: string;
|
|
14
|
+
};
|
|
15
|
+
type ApplicationMenuProps = {
|
|
16
|
+
location: RouteComponentProps['location'];
|
|
17
|
+
menu: TMenuWithDefaultLabel;
|
|
18
|
+
isActive: boolean;
|
|
19
|
+
isMenuOpen: boolean;
|
|
20
|
+
shouldCloseMenuFly: MouseEventHandler<HTMLElement>;
|
|
21
|
+
projectPermissions: TProjectPermissions;
|
|
22
|
+
menuVisibilities: TNormalizedMenuVisibilities | null;
|
|
23
|
+
handleToggleItem: () => void;
|
|
24
|
+
applicationLocale: string;
|
|
25
|
+
projectKey: string;
|
|
26
|
+
useFullRedirectsForLinks: boolean;
|
|
27
|
+
onMenuItemClick?: MenuItemLinkProps['onClick'];
|
|
28
|
+
};
|
|
29
|
+
export declare const ApplicationMenu: {
|
|
30
|
+
(props: ApplicationMenuProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
31
|
+
displayName: string;
|
|
32
|
+
};
|
|
33
|
+
export type TNavbarProps = {
|
|
34
|
+
applicationLocale?: string;
|
|
35
|
+
projectKey: string;
|
|
36
|
+
environment: TApplicationContext<{
|
|
37
|
+
useFullRedirectsForLinks?: boolean;
|
|
38
|
+
}>['environment'];
|
|
39
|
+
project: TFetchProjectQuery['project'];
|
|
40
|
+
onMenuItemClick?: MenuItemLinkProps['onClick'];
|
|
41
|
+
isLoading: boolean;
|
|
42
|
+
};
|
|
2
43
|
declare const NavBar: {
|
|
3
|
-
(props: TNavbarProps
|
|
4
|
-
isNewNavigationEnabled: boolean;
|
|
5
|
-
}): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
44
|
+
(props: TNavbarProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
6
45
|
displayName: string;
|
|
7
46
|
};
|
|
8
47
|
export default NavBar;
|
|
@@ -3,7 +3,6 @@ import { type TApplicationContext } from '@commercetools-frontend/application-sh
|
|
|
3
3
|
import type { TNavbarMenu } from '../../types/generated/proxy';
|
|
4
4
|
type HookProps = {
|
|
5
5
|
environment: TApplicationContext<{}>['environment'];
|
|
6
|
-
newNavigation?: boolean;
|
|
7
6
|
};
|
|
8
7
|
declare const useNavbarStateManager: (props: HookProps) => {
|
|
9
8
|
navBarNode: import("react").RefObject<HTMLElement>;
|
|
@@ -2,10 +2,7 @@ import type { OptionProps, ValueContainerProps } from 'react-select';
|
|
|
2
2
|
type Props = {
|
|
3
3
|
projectKey?: string;
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
projectCount: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const ProjectSwitcherValueContainer: ({ projectCount, ...restProps }: CustomValueContainerProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
5
|
+
export declare const ValueContainer: ({ ...restProps }: ValueContainerProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
9
6
|
export declare const ProjectSwitcherOption: (props: OptionProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
10
7
|
declare const ProjectSwitcher: {
|
|
11
8
|
(props: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
export declare const DIMENSIONS: {
|
|
2
2
|
readonly header: "56px";
|
|
3
|
-
readonly
|
|
4
|
-
readonly
|
|
5
|
-
readonly navMenuExpanded: "245px";
|
|
3
|
+
readonly navMenu: "80px";
|
|
4
|
+
readonly navMenuExpanded: "256px";
|
|
6
5
|
readonly navMenuItemHeight: "48px";
|
|
7
|
-
readonly newNavMenu: "80px";
|
|
8
|
-
readonly newNavMenuExpanded: "256px";
|
|
9
6
|
};
|
|
10
7
|
export declare const WINDOW_SIZES: {
|
|
11
|
-
readonly NARROW: 918;
|
|
12
8
|
readonly STANDARD: 1024;
|
|
13
9
|
readonly WIDE: 1200;
|
|
14
10
|
};
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import { ApolloClient, type NormalizedCacheObject } from '@apollo/client';
|
|
2
3
|
import type { RenderResult } from '@testing-library/react';
|
|
3
|
-
import type
|
|
4
|
+
import { type TProviderProps } from '@commercetools-frontend/application-shell-connectors';
|
|
5
|
+
import { type CustomViewData } from '@commercetools-frontend/constants';
|
|
4
6
|
type TRenderCustomViewParams = {
|
|
5
7
|
locale: string;
|
|
6
8
|
projectKey?: string;
|
|
9
|
+
projectAllAppliedPermissions?: {
|
|
10
|
+
name: string;
|
|
11
|
+
value: boolean;
|
|
12
|
+
}[];
|
|
7
13
|
customViewHostUrl?: string;
|
|
8
14
|
customViewConfig?: Partial<CustomViewData>;
|
|
15
|
+
apolloClient?: ApolloClient<NormalizedCacheObject>;
|
|
16
|
+
environment?: Partial<TProviderProps<{}>['environment']>;
|
|
17
|
+
user?: Partial<TProviderProps<{}>['user']>;
|
|
9
18
|
children: ReactNode;
|
|
10
19
|
};
|
|
11
20
|
export declare const renderCustomView: (props: TRenderCustomViewParams) => RenderResult;
|