@commercetools-frontend/application-shell 22.5.0 → 22.7.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-c3884344.esm.js → application-entry-point-4b2f37d2.esm.js} +1 -1
- package/dist/{application-entry-point-b9ed252b.cjs.dev.js → application-entry-point-78dcfccf.cjs.dev.js} +1 -1
- package/dist/{application-entry-point-98c4a247.cjs.prod.js → application-entry-point-9eaf625b.cjs.prod.js} +1 -1
- package/dist/commercetools-frontend-application-shell.cjs.dev.js +8 -11
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +8 -11
- package/dist/commercetools-frontend-application-shell.esm.js +5 -11
- package/dist/{configure-apollo-235efa51.cjs.prod.js → configure-apollo-651219fe.cjs.prod.js} +12 -3
- package/dist/{configure-apollo-5baefe27.esm.js → configure-apollo-7d1735c1.esm.js} +12 -3
- package/dist/{configure-apollo-4187db53.cjs.dev.js → configure-apollo-fd556518.cjs.dev.js} +12 -3
- package/dist/{constants-55f41c8c.esm.js → constants-a09fbec1.esm.js} +1 -0
- package/dist/{constants-4408614d.cjs.prod.js → constants-a1140922.cjs.dev.js} +1 -0
- package/dist/{constants-5c1ecb73.cjs.dev.js → constants-ed10e935.cjs.prod.js} +1 -0
- package/dist/declarations/src/components/application-shell-authenticated/application-shell-authenticated.d.ts +4 -1
- package/dist/declarations/src/components/application-shell-authenticated/new-main-navigation-flag-wrapper.d.ts +9 -0
- package/dist/declarations/src/components/application-shell-provider/utils.d.ts +1 -1
- package/dist/declarations/src/components/custom-view-context/custom-view-context.d.ts +12 -0
- package/dist/declarations/src/components/custom-view-context/index.d.ts +1 -0
- package/dist/declarations/src/components/custom-view-shell/custom-view-shell.d.ts +9 -0
- package/dist/declarations/src/components/custom-view-shell/index.d.ts +1 -0
- package/dist/declarations/src/components/custom-view-shell-authenticated/custom-view-shell-authenticated.d.ts +12 -0
- package/dist/declarations/src/components/custom-view-shell-authenticated/index.d.ts +1 -0
- package/dist/declarations/src/components/navbar/compiled/navbar.css.json.d.ts +1 -1
- package/dist/declarations/src/components/navbar/index.d.ts +6 -2
- package/dist/declarations/src/components/navbar/menu-items.d.ts +4 -4
- package/dist/declarations/src/components/navbar/navbar-skeleton.d.ts +6 -0
- package/dist/declarations/src/components/navbar/navbar-skeleton.styles.d.ts +43 -0
- package/dist/declarations/src/components/navbar/navbar.d.ts +5 -2
- package/dist/declarations/src/components/project-container/index.d.ts +1 -0
- package/dist/declarations/src/constants.d.ts +1 -0
- package/dist/declarations/src/feature-toggles.d.ts +4 -1
- package/dist/declarations/src/index.d.ts +2 -0
- package/dist/declarations/src/types/generated/ctp.d.ts +124 -51
- package/dist/declarations/src/types/generated/mc.d.ts +0 -83
- package/dist/declarations/src/types/generated/settings.d.ts +106 -0
- package/dist/{index-53b461f0.cjs.prod.js → index-62467df5.cjs.prod.js} +444 -647
- package/dist/index-763cd304.esm.js +2032 -0
- package/dist/index-b4696e0a.cjs.dev.js +2099 -0
- package/dist/navbar-21b59702.cjs.prod.js +1144 -0
- package/dist/navbar-a44260f4.esm.js +1209 -0
- package/dist/navbar-f1d631ef.cjs.dev.js +1239 -0
- package/dist/{oidc-3376ec84.cjs.dev.js → oidc-244125d3.cjs.dev.js} +1 -1
- package/dist/{oidc-3a2cf8b3.cjs.prod.js → oidc-a780f067.cjs.prod.js} +1 -1
- package/dist/{oidc-38887b2d.esm.js → oidc-c4e99cfc.esm.js} +1 -1
- package/dist/{oidc-callback-f46de3c1.cjs.dev.js → oidc-callback-842c6103.cjs.dev.js} +6 -12
- package/dist/{oidc-callback-d31b1579.cjs.prod.js → oidc-callback-a6503499.cjs.prod.js} +6 -12
- package/dist/{oidc-callback-d408517e.esm.js → oidc-callback-ff7160f9.esm.js} +6 -12
- package/dist/{project-container-a905608b.esm.js → project-container-c34b3563.esm.js} +11 -15
- package/dist/{project-container-5c3c1313.cjs.prod.js → project-container-e2770668.cjs.prod.js} +11 -15
- package/dist/{project-container-b35d260e.cjs.dev.js → project-container-fcbf04f4.cjs.dev.js} +11 -15
- package/dist/{project-expired-2569ae58.esm.js → project-expired-1e0021f1.esm.js} +7 -13
- package/dist/{project-expired-1a5269ad.cjs.prod.js → project-expired-2b816199.cjs.prod.js} +7 -13
- package/dist/{project-expired-b956df4c.cjs.dev.js → project-expired-75edfdaa.cjs.dev.js} +7 -13
- package/dist/{project-not-found-60750783.esm.js → project-not-found-4d882010.esm.js} +7 -13
- package/dist/{project-not-found-0bc6b9f7.cjs.dev.js → project-not-found-77cc9900.cjs.dev.js} +7 -13
- package/dist/{project-not-found-cf2cc554.cjs.prod.js → project-not-found-8cdc8967.cjs.prod.js} +7 -13
- package/dist/{project-not-initialized-75f5537a.cjs.prod.js → project-not-initialized-1e158ec7.cjs.prod.js} +7 -13
- package/dist/{project-not-initialized-191aa18a.cjs.dev.js → project-not-initialized-29cabc17.cjs.dev.js} +7 -13
- package/dist/{project-not-initialized-f2578daa.esm.js → project-not-initialized-98825943.esm.js} +7 -13
- package/dist/{project-suspended-4c195259.cjs.prod.js → project-suspended-8c1f499c.cjs.prod.js} +7 -13
- package/dist/{project-suspended-873c47c2.esm.js → project-suspended-ed2b1227.esm.js} +7 -13
- package/dist/{project-suspended-f66a1459.cjs.dev.js → project-suspended-fc98b3d1.cjs.dev.js} +7 -13
- package/dist/{quick-access-34af5278.esm.js → quick-access-158b499a.esm.js} +5 -10
- package/dist/{quick-access-567cd0e8.cjs.prod.js → quick-access-c6e99d06.cjs.prod.js} +5 -10
- package/dist/{quick-access-923ce592.cjs.dev.js → quick-access-cfeb6cec.cjs.dev.js} +5 -10
- package/dist/{redirect-to-login-07eb52a4.esm.js → redirect-to-login-6906966c.esm.js} +3 -3
- package/dist/{redirect-to-login-7d02dc5b.cjs.dev.js → redirect-to-login-88714a9b.cjs.dev.js} +3 -3
- package/dist/{redirect-to-login-5710f920.cjs.prod.js → redirect-to-login-d133b84f.cjs.prod.js} +3 -3
- package/dist/{redirect-to-logout-bebe4068.esm.js → redirect-to-logout-27a66cc7.esm.js} +6 -12
- package/dist/{redirect-to-logout-e3b14844.cjs.dev.js → redirect-to-logout-4f3f82f1.cjs.dev.js} +6 -12
- package/dist/{redirect-to-logout-cc82cee3.cjs.prod.js → redirect-to-logout-55feba64.cjs.prod.js} +6 -12
- package/dist/{requests-in-flight-loader-4d55dd23.cjs.prod.js → requests-in-flight-loader-219f802b.cjs.prod.js} +6 -12
- package/dist/{requests-in-flight-loader-f87c011b.esm.js → requests-in-flight-loader-7dbb4644.esm.js} +6 -12
- package/dist/{requests-in-flight-loader-81315c1b.cjs.dev.js → requests-in-flight-loader-929aec28.cjs.dev.js} +6 -12
- package/dist/{service-page-project-switcher-1f88b9ef.cjs.dev.js → service-page-project-switcher-6fe90ebf.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-c0df9b6e.esm.js → service-page-project-switcher-b118a954.esm.js} +1 -1
- package/dist/{service-page-project-switcher-e1562491.cjs.prod.js → service-page-project-switcher-fe34254d.cjs.prod.js} +1 -1
- package/dist/{use-applications-menu-862cdf4b.cjs.prod.js → use-applications-menu-37b8d2c6.cjs.dev.js} +9 -8
- package/dist/{use-applications-menu-8857654a.cjs.dev.js → use-applications-menu-bf23bd5d.cjs.prod.js} +9 -8
- package/dist/{use-applications-menu-435f0838.esm.js → use-applications-menu-fabb6a77.esm.js} +9 -8
- package/dist/{user-settings-menu-ff17aa78.esm.js → user-settings-menu-e4439479.esm.js} +7 -13
- package/dist/{user-settings-menu-7aec4a5a.cjs.dev.js → user-settings-menu-ef7fee49.cjs.dev.js} +7 -13
- package/dist/{user-settings-menu-d5d5dba3.cjs.prod.js → user-settings-menu-fa056e1c.cjs.prod.js} +7 -13
- package/dist/{version-tracker-9ca66a1c.esm.js → version-tracker-cc9a8d4c.esm.js} +2 -2
- package/dist/{version-tracker-b4681839.cjs.prod.js → version-tracker-e1338396.cjs.prod.js} +2 -2
- package/dist/{version-tracker-7df81f43.cjs.dev.js → version-tracker-f72dd9c8.cjs.dev.js} +2 -2
- package/package.json +33 -33
- 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 +3 -3
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +3 -3
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +3 -3
- package/dist/index-31dd568f.cjs.dev.js +0 -2352
- package/dist/index-937934ba.esm.js +0 -2273
- package/dist/navbar-766fb0fd.cjs.prod.js +0 -588
- package/dist/navbar-80df957b.cjs.dev.js +0 -609
- package/dist/navbar-a5c6bfcb.esm.js +0 -589
package/dist/{application-entry-point-c3884344.esm.js → application-entry-point-4b2f37d2.esm.js}
RENAMED
|
@@ -14,7 +14,7 @@ import invariant from 'tiny-invariant';
|
|
|
14
14
|
import { PageUnauthorized } from '@commercetools-frontend/application-components';
|
|
15
15
|
import { entryPointUriPathToPermissionKeys } from '@commercetools-frontend/application-config/ssr';
|
|
16
16
|
import { useIsAuthorized } from '@commercetools-frontend/permissions';
|
|
17
|
-
import { R as RouteCatchAll } from './configure-apollo-
|
|
17
|
+
import { R as RouteCatchAll } from './configure-apollo-7d1735c1.esm.js';
|
|
18
18
|
import { jsxs, jsx, Fragment } from '@emotion/react/jsx-runtime';
|
|
19
19
|
|
|
20
20
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -16,7 +16,7 @@ var invariant = require('tiny-invariant');
|
|
|
16
16
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
17
17
|
var ssr = require('@commercetools-frontend/application-config/ssr');
|
|
18
18
|
var permissions = require('@commercetools-frontend/permissions');
|
|
19
|
-
var configureApollo = require('./configure-apollo-
|
|
19
|
+
var configureApollo = require('./configure-apollo-fd556518.cjs.dev.js');
|
|
20
20
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
21
21
|
|
|
22
22
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -16,7 +16,7 @@ var invariant = require('tiny-invariant');
|
|
|
16
16
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
17
17
|
var ssr = require('@commercetools-frontend/application-config/ssr');
|
|
18
18
|
var permissions = require('@commercetools-frontend/permissions');
|
|
19
|
-
var configureApollo = require('./configure-apollo-
|
|
19
|
+
var configureApollo = require('./configure-apollo-651219fe.cjs.prod.js');
|
|
20
20
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
21
21
|
|
|
22
22
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var configureApollo = require('./configure-apollo-
|
|
6
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
5
|
+
var configureApollo = require('./configure-apollo-fd556518.cjs.dev.js');
|
|
6
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-b4696e0a.cjs.dev.js');
|
|
7
7
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
8
8
|
require('uuid');
|
|
9
9
|
var ssr = require('@commercetools-frontend/application-config/ssr');
|
|
@@ -33,7 +33,7 @@ require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
|
|
|
33
33
|
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
34
34
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
35
35
|
require('@commercetools-frontend/sentry');
|
|
36
|
-
require('./constants-
|
|
36
|
+
require('./constants-a1140922.cjs.dev.js');
|
|
37
37
|
require('@commercetools-frontend/react-notifications');
|
|
38
38
|
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
39
39
|
require('redux-logger');
|
|
@@ -83,20 +83,14 @@ require('@apollo/client/react');
|
|
|
83
83
|
require('@commercetools-frontend/assets/images/ct-logo.svg');
|
|
84
84
|
require('@commercetools-uikit/loading-spinner');
|
|
85
85
|
require('@commercetools-frontend/l10n');
|
|
86
|
-
require('@babel/runtime-corejs3/core-js-stable/array/from');
|
|
87
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
88
|
-
require('classnames');
|
|
89
|
-
require('@commercetools-frontend/assets/images/diagonal-line.svg');
|
|
90
|
-
require('@commercetools-frontend/permissions');
|
|
91
|
-
require('@commercetools-uikit/icons/inline-svg');
|
|
92
|
-
require('lodash/isNil');
|
|
93
86
|
require('@babel/runtime-corejs3/core-js-stable/object/from-entries');
|
|
94
87
|
require('@babel/runtime-corejs3/core-js-stable/instance/flags');
|
|
95
88
|
require('@flopflip/combine-adapters');
|
|
96
89
|
require('@flopflip/http-adapter');
|
|
90
|
+
require('@flopflip/types');
|
|
97
91
|
require('react-redux');
|
|
98
92
|
require('lodash/upperFirst');
|
|
99
|
-
require('./oidc-
|
|
93
|
+
require('./oidc-244125d3.cjs.dev.js');
|
|
100
94
|
require('@commercetools-uikit/design-system/materials/resets.css');
|
|
101
95
|
require('@commercetools-frontend/actions-global');
|
|
102
96
|
|
|
@@ -120,11 +114,14 @@ exports.ApplicationPageTitle = dist_commercetoolsFrontendApplicationShell.Applic
|
|
|
120
114
|
exports.ApplicationShell = dist_commercetoolsFrontendApplicationShell.ApplicationShell;
|
|
121
115
|
exports.ApplicationShellProvider = dist_commercetoolsFrontendApplicationShell.ApplicationShellProvider;
|
|
122
116
|
exports.ConfigureIntlProvider = dist_commercetoolsFrontendApplicationShell.ConfigureIntlProvider;
|
|
117
|
+
exports.CustomViewContextProvider = dist_commercetoolsFrontendApplicationShell.CustomViewContextProvider;
|
|
118
|
+
exports.CustomViewShell = dist_commercetoolsFrontendApplicationShell.CustomViewShell;
|
|
123
119
|
exports.InjectReducers = dist_commercetoolsFrontendApplicationShell.InjectReducers;
|
|
124
120
|
exports.SetupFlopFlipProvider = dist_commercetoolsFrontendApplicationShell.SetupFlopFlipProvider;
|
|
125
121
|
exports.SuspendedRoute = dist_commercetoolsFrontendApplicationShell.SuspendedRoute;
|
|
126
122
|
exports.createApolloContextForProxyForwardTo = dist_commercetoolsFrontendApplicationShell.createApolloContextForProxyForwardTo;
|
|
127
123
|
exports.setupGlobalErrorListener = dist_commercetoolsFrontendApplicationShell.setupGlobalErrorListener;
|
|
124
|
+
exports.useCustomViewContext = dist_commercetoolsFrontendApplicationShell.useCustomViewContext;
|
|
128
125
|
exports.useMcLazyQuery = dist_commercetoolsFrontendApplicationShell.useMcLazyQuery;
|
|
129
126
|
exports.useMcMutation = dist_commercetoolsFrontendApplicationShell.useMcMutation;
|
|
130
127
|
exports.useMcQuery = dist_commercetoolsFrontendApplicationShell.useMcQuery;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var configureApollo = require('./configure-apollo-
|
|
6
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
5
|
+
var configureApollo = require('./configure-apollo-651219fe.cjs.prod.js');
|
|
6
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-62467df5.cjs.prod.js');
|
|
7
7
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
8
8
|
require('uuid');
|
|
9
9
|
var ssr = require('@commercetools-frontend/application-config/ssr');
|
|
@@ -33,7 +33,7 @@ require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
|
|
|
33
33
|
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
34
34
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
35
35
|
require('@commercetools-frontend/sentry');
|
|
36
|
-
require('./constants-
|
|
36
|
+
require('./constants-ed10e935.cjs.prod.js');
|
|
37
37
|
require('@commercetools-frontend/react-notifications');
|
|
38
38
|
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
39
39
|
require('redux-logger');
|
|
@@ -83,20 +83,14 @@ require('@apollo/client/react');
|
|
|
83
83
|
require('@commercetools-frontend/assets/images/ct-logo.svg');
|
|
84
84
|
require('@commercetools-uikit/loading-spinner');
|
|
85
85
|
require('@commercetools-frontend/l10n');
|
|
86
|
-
require('@babel/runtime-corejs3/core-js-stable/array/from');
|
|
87
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
88
|
-
require('classnames');
|
|
89
|
-
require('@commercetools-frontend/assets/images/diagonal-line.svg');
|
|
90
|
-
require('@commercetools-frontend/permissions');
|
|
91
|
-
require('@commercetools-uikit/icons/inline-svg');
|
|
92
|
-
require('lodash/isNil');
|
|
93
86
|
require('@babel/runtime-corejs3/core-js-stable/object/from-entries');
|
|
94
87
|
require('@babel/runtime-corejs3/core-js-stable/instance/flags');
|
|
95
88
|
require('@flopflip/combine-adapters');
|
|
96
89
|
require('@flopflip/http-adapter');
|
|
90
|
+
require('@flopflip/types');
|
|
97
91
|
require('react-redux');
|
|
98
92
|
require('lodash/upperFirst');
|
|
99
|
-
require('./oidc-
|
|
93
|
+
require('./oidc-a780f067.cjs.prod.js');
|
|
100
94
|
require('@commercetools-uikit/design-system/materials/resets.css');
|
|
101
95
|
require('@commercetools-frontend/actions-global');
|
|
102
96
|
|
|
@@ -120,11 +114,14 @@ exports.ApplicationPageTitle = dist_commercetoolsFrontendApplicationShell.Applic
|
|
|
120
114
|
exports.ApplicationShell = dist_commercetoolsFrontendApplicationShell.ApplicationShell;
|
|
121
115
|
exports.ApplicationShellProvider = dist_commercetoolsFrontendApplicationShell.ApplicationShellProvider;
|
|
122
116
|
exports.ConfigureIntlProvider = dist_commercetoolsFrontendApplicationShell.ConfigureIntlProvider;
|
|
117
|
+
exports.CustomViewContextProvider = dist_commercetoolsFrontendApplicationShell.CustomViewContextProvider;
|
|
118
|
+
exports.CustomViewShell = dist_commercetoolsFrontendApplicationShell.CustomViewShell;
|
|
123
119
|
exports.InjectReducers = dist_commercetoolsFrontendApplicationShell.InjectReducers;
|
|
124
120
|
exports.SetupFlopFlipProvider = dist_commercetoolsFrontendApplicationShell.SetupFlopFlipProvider;
|
|
125
121
|
exports.SuspendedRoute = dist_commercetoolsFrontendApplicationShell.SuspendedRoute;
|
|
126
122
|
exports.createApolloContextForProxyForwardTo = dist_commercetoolsFrontendApplicationShell.createApolloContextForProxyForwardTo;
|
|
127
123
|
exports.setupGlobalErrorListener = dist_commercetoolsFrontendApplicationShell.setupGlobalErrorListener;
|
|
124
|
+
exports.useCustomViewContext = dist_commercetoolsFrontendApplicationShell.useCustomViewContext;
|
|
128
125
|
exports.useMcLazyQuery = dist_commercetoolsFrontendApplicationShell.useMcLazyQuery;
|
|
129
126
|
exports.useMcMutation = dist_commercetoolsFrontendApplicationShell.useMcMutation;
|
|
130
127
|
exports.useMcQuery = dist_commercetoolsFrontendApplicationShell.useMcQuery;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { R as RouteCatchAll, h as applyDefaultMiddlewares, k as buildApiUrl, d as createApolloClient, l as createHttpClientOptions, m as executeHttpClientRequest, g as getMcApiUrl, a as selectProjectKeyFromUrl, j as selectUserId, f as version } from './configure-apollo-
|
|
2
|
-
export {
|
|
1
|
+
export { R as RouteCatchAll, h as applyDefaultMiddlewares, k as buildApiUrl, d as createApolloClient, l as createHttpClientOptions, m as executeHttpClientRequest, g as getMcApiUrl, a as selectProjectKeyFromUrl, j as selectUserId, f as version } from './configure-apollo-7d1735c1.esm.js';
|
|
2
|
+
export { f as ApplicationPageTitle, d as ApplicationShell, e as ApplicationShellProvider, C as ConfigureIntlProvider, m as CustomViewContextProvider, g as CustomViewShell, I as InjectReducers, S as SetupFlopFlipProvider, i as SuspendedRoute, h as createApolloContextForProxyForwardTo, s as setupGlobalErrorListener, n as useCustomViewContext, j as useMcLazyQuery, k as useMcMutation, u as useMcQuery, l as useRoutesCreator } from './index-763cd304.esm.js';
|
|
3
3
|
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
4
4
|
import 'uuid';
|
|
5
5
|
export { entryPointUriPathToPermissionKeys, entryPointUriPathToResourceAccesses } from '@commercetools-frontend/application-config/ssr';
|
|
@@ -29,7 +29,7 @@ import '@babel/runtime-corejs3/core-js-stable/instance/index-of';
|
|
|
29
29
|
import '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
30
30
|
import '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
31
31
|
import '@commercetools-frontend/sentry';
|
|
32
|
-
import './constants-
|
|
32
|
+
import './constants-a09fbec1.esm.js';
|
|
33
33
|
import '@commercetools-frontend/react-notifications';
|
|
34
34
|
import '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
|
|
35
35
|
import 'redux-logger';
|
|
@@ -79,19 +79,13 @@ import '@apollo/client/react';
|
|
|
79
79
|
import '@commercetools-frontend/assets/images/ct-logo.svg';
|
|
80
80
|
import '@commercetools-uikit/loading-spinner';
|
|
81
81
|
import '@commercetools-frontend/l10n';
|
|
82
|
-
import '@babel/runtime-corejs3/core-js-stable/array/from';
|
|
83
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/every';
|
|
84
|
-
import 'classnames';
|
|
85
|
-
import '@commercetools-frontend/assets/images/diagonal-line.svg';
|
|
86
|
-
import '@commercetools-frontend/permissions';
|
|
87
|
-
import '@commercetools-uikit/icons/inline-svg';
|
|
88
|
-
import 'lodash/isNil';
|
|
89
82
|
import '@babel/runtime-corejs3/core-js-stable/object/from-entries';
|
|
90
83
|
import '@babel/runtime-corejs3/core-js-stable/instance/flags';
|
|
91
84
|
import '@flopflip/combine-adapters';
|
|
92
85
|
import '@flopflip/http-adapter';
|
|
86
|
+
import '@flopflip/types';
|
|
93
87
|
import 'react-redux';
|
|
94
88
|
import 'lodash/upperFirst';
|
|
95
|
-
import './oidc-
|
|
89
|
+
import './oidc-c4e99cfc.esm.js';
|
|
96
90
|
import '@commercetools-uikit/design-system/materials/resets.css';
|
|
97
91
|
import '@commercetools-frontend/actions-global';
|
package/dist/{configure-apollo-235efa51.cjs.prod.js → configure-apollo-651219fe.cjs.prod.js}
RENAMED
|
@@ -25,7 +25,7 @@ var _indexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/in
|
|
|
25
25
|
var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
26
26
|
var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
27
27
|
var sentry = require('@commercetools-frontend/sentry');
|
|
28
|
-
var constants$1 = require('./constants-
|
|
28
|
+
var constants$1 = require('./constants-ed10e935.cjs.prod.js');
|
|
29
29
|
var reactNotifications = require('@commercetools-frontend/react-notifications');
|
|
30
30
|
var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
31
31
|
var reduxLogger = require('redux-logger');
|
|
@@ -87,7 +87,7 @@ var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construc
|
|
|
87
87
|
var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
|
|
88
88
|
|
|
89
89
|
// NOTE: This string will be replaced on build time with the package version.
|
|
90
|
-
var applicationShellVersion = "22.
|
|
90
|
+
var applicationShellVersion = "22.7.0";
|
|
91
91
|
|
|
92
92
|
const isShowRequestInFlightAction = action => action.type === constants.SHOW_LOADING;
|
|
93
93
|
const isHideRequestInFlightAction = action => action.type === constants.HIDE_LOADING;
|
|
@@ -201,7 +201,15 @@ const staticUrlPathsInPositionOfProjectKey = ['login', 'logout', 'account'];
|
|
|
201
201
|
// return `undefined` as we're not within a project context.
|
|
202
202
|
function selectProjectKeyFromUrl() {
|
|
203
203
|
let locationPath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.location.pathname;
|
|
204
|
-
|
|
204
|
+
let possibleProjectKey = '';
|
|
205
|
+
const pathParts = locationPath.split('/');
|
|
206
|
+
if (pathParts[1] === 'custom-views') {
|
|
207
|
+
// Custom Views paths: /custom-views/:customViewId/projects/:projectKey
|
|
208
|
+
possibleProjectKey = pathParts[4];
|
|
209
|
+
} else {
|
|
210
|
+
// Application paths: /:projectKey/:applicationId
|
|
211
|
+
possibleProjectKey = pathParts[1];
|
|
212
|
+
}
|
|
205
213
|
return _includesInstanceProperty__default["default"](staticUrlPathsInPositionOfProjectKey).call(staticUrlPathsInPositionOfProjectKey, possibleProjectKey) ? undefined : possibleProjectKey;
|
|
206
214
|
}
|
|
207
215
|
|
|
@@ -548,6 +556,7 @@ function createHttpClientOptions() {
|
|
|
548
556
|
[constants$1.SUPPORTED_HEADERS.ACCEPT]: 'application/json',
|
|
549
557
|
[constants$1.SUPPORTED_HEADERS.AUTHORIZATION]: sessionToken ? "Bearer ".concat(sessionToken) : undefined,
|
|
550
558
|
[constants$1.SUPPORTED_HEADERS.X_APPLICATION_ID]: window.app.applicationId,
|
|
559
|
+
[constants$1.SUPPORTED_HEADERS.X_CUSTOM_VIEW_ID]: window.app.customViewId,
|
|
551
560
|
[constants$1.SUPPORTED_HEADERS.X_CORRELATION_ID]: getCorrelationId({
|
|
552
561
|
userId
|
|
553
562
|
}),
|
|
@@ -23,7 +23,7 @@ import _indexOfInstanceProperty from '@babel/runtime-corejs3/core-js-stable/inst
|
|
|
23
23
|
import _sliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
24
24
|
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
25
25
|
import { reportErrorToSentry } from '@commercetools-frontend/sentry';
|
|
26
|
-
import { S as STORAGE_KEYS, L as LOGIN_STRATEGY_OIDC, a as SUPPORTED_HEADERS } from './constants-
|
|
26
|
+
import { S as STORAGE_KEYS, L as LOGIN_STRATEGY_OIDC, a as SUPPORTED_HEADERS } from './constants-a09fbec1.esm.js';
|
|
27
27
|
import { selectPageNotifications } from '@commercetools-frontend/react-notifications';
|
|
28
28
|
import _startsWithInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
|
|
29
29
|
import { createLogger } from 'redux-logger';
|
|
@@ -52,7 +52,7 @@ import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringif
|
|
|
52
52
|
import { RetryLink } from '@apollo/client/link/retry';
|
|
53
53
|
|
|
54
54
|
// NOTE: This string will be replaced on build time with the package version.
|
|
55
|
-
var applicationShellVersion = "22.
|
|
55
|
+
var applicationShellVersion = "22.7.0";
|
|
56
56
|
|
|
57
57
|
const isShowRequestInFlightAction = action => action.type === SHOW_LOADING;
|
|
58
58
|
const isHideRequestInFlightAction = action => action.type === HIDE_LOADING;
|
|
@@ -167,7 +167,15 @@ const staticUrlPathsInPositionOfProjectKey = ['login', 'logout', 'account'];
|
|
|
167
167
|
// return `undefined` as we're not within a project context.
|
|
168
168
|
function selectProjectKeyFromUrl() {
|
|
169
169
|
let locationPath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.location.pathname;
|
|
170
|
-
|
|
170
|
+
let possibleProjectKey = '';
|
|
171
|
+
const pathParts = locationPath.split('/');
|
|
172
|
+
if (pathParts[1] === 'custom-views') {
|
|
173
|
+
// Custom Views paths: /custom-views/:customViewId/projects/:projectKey
|
|
174
|
+
possibleProjectKey = pathParts[4];
|
|
175
|
+
} else {
|
|
176
|
+
// Application paths: /:projectKey/:applicationId
|
|
177
|
+
possibleProjectKey = pathParts[1];
|
|
178
|
+
}
|
|
171
179
|
return _includesInstanceProperty(staticUrlPathsInPositionOfProjectKey).call(staticUrlPathsInPositionOfProjectKey, possibleProjectKey) ? undefined : possibleProjectKey;
|
|
172
180
|
}
|
|
173
181
|
|
|
@@ -519,6 +527,7 @@ function createHttpClientOptions() {
|
|
|
519
527
|
[SUPPORTED_HEADERS.ACCEPT]: 'application/json',
|
|
520
528
|
[SUPPORTED_HEADERS.AUTHORIZATION]: sessionToken ? "Bearer ".concat(sessionToken) : undefined,
|
|
521
529
|
[SUPPORTED_HEADERS.X_APPLICATION_ID]: window.app.applicationId,
|
|
530
|
+
[SUPPORTED_HEADERS.X_CUSTOM_VIEW_ID]: window.app.customViewId,
|
|
522
531
|
[SUPPORTED_HEADERS.X_CORRELATION_ID]: getCorrelationId({
|
|
523
532
|
userId
|
|
524
533
|
}),
|
|
@@ -25,7 +25,7 @@ var _indexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/in
|
|
|
25
25
|
var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
26
26
|
var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
27
27
|
var sentry = require('@commercetools-frontend/sentry');
|
|
28
|
-
var constants$1 = require('./constants-
|
|
28
|
+
var constants$1 = require('./constants-a1140922.cjs.dev.js');
|
|
29
29
|
var reactNotifications = require('@commercetools-frontend/react-notifications');
|
|
30
30
|
var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
31
31
|
var reduxLogger = require('redux-logger');
|
|
@@ -87,7 +87,7 @@ var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construc
|
|
|
87
87
|
var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
|
|
88
88
|
|
|
89
89
|
// NOTE: This string will be replaced on build time with the package version.
|
|
90
|
-
var applicationShellVersion = "22.
|
|
90
|
+
var applicationShellVersion = "22.7.0";
|
|
91
91
|
|
|
92
92
|
const isShowRequestInFlightAction = action => action.type === constants.SHOW_LOADING;
|
|
93
93
|
const isHideRequestInFlightAction = action => action.type === constants.HIDE_LOADING;
|
|
@@ -202,7 +202,15 @@ const staticUrlPathsInPositionOfProjectKey = ['login', 'logout', 'account'];
|
|
|
202
202
|
// return `undefined` as we're not within a project context.
|
|
203
203
|
function selectProjectKeyFromUrl() {
|
|
204
204
|
let locationPath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.location.pathname;
|
|
205
|
-
|
|
205
|
+
let possibleProjectKey = '';
|
|
206
|
+
const pathParts = locationPath.split('/');
|
|
207
|
+
if (pathParts[1] === 'custom-views') {
|
|
208
|
+
// Custom Views paths: /custom-views/:customViewId/projects/:projectKey
|
|
209
|
+
possibleProjectKey = pathParts[4];
|
|
210
|
+
} else {
|
|
211
|
+
// Application paths: /:projectKey/:applicationId
|
|
212
|
+
possibleProjectKey = pathParts[1];
|
|
213
|
+
}
|
|
206
214
|
return _includesInstanceProperty__default["default"](staticUrlPathsInPositionOfProjectKey).call(staticUrlPathsInPositionOfProjectKey, possibleProjectKey) ? undefined : possibleProjectKey;
|
|
207
215
|
}
|
|
208
216
|
|
|
@@ -554,6 +562,7 @@ function createHttpClientOptions() {
|
|
|
554
562
|
[constants$1.SUPPORTED_HEADERS.ACCEPT]: 'application/json',
|
|
555
563
|
[constants$1.SUPPORTED_HEADERS.AUTHORIZATION]: sessionToken ? "Bearer ".concat(sessionToken) : undefined,
|
|
556
564
|
[constants$1.SUPPORTED_HEADERS.X_APPLICATION_ID]: window.app.applicationId,
|
|
565
|
+
[constants$1.SUPPORTED_HEADERS.X_CUSTOM_VIEW_ID]: window.app.customViewId,
|
|
557
566
|
[constants$1.SUPPORTED_HEADERS.X_CORRELATION_ID]: getCorrelationId({
|
|
558
567
|
userId
|
|
559
568
|
}),
|
|
@@ -10,6 +10,7 @@ const SUPPORTED_HEADERS = {
|
|
|
10
10
|
AUTHORIZATION: 'Authorization',
|
|
11
11
|
CONTENT_TYPE: 'Content-Type',
|
|
12
12
|
X_APPLICATION_ID: 'X-Application-Id',
|
|
13
|
+
X_CUSTOM_VIEW_ID: 'X-Custom-View-Id',
|
|
13
14
|
X_CORRELATION_ID: 'X-Correlation-Id',
|
|
14
15
|
X_FEATURE_FLAG: 'X-Feature-Flag',
|
|
15
16
|
X_FORWARD_TO: 'X-Forward-To',
|
|
@@ -12,6 +12,7 @@ const SUPPORTED_HEADERS = {
|
|
|
12
12
|
AUTHORIZATION: 'Authorization',
|
|
13
13
|
CONTENT_TYPE: 'Content-Type',
|
|
14
14
|
X_APPLICATION_ID: 'X-Application-Id',
|
|
15
|
+
X_CUSTOM_VIEW_ID: 'X-Custom-View-Id',
|
|
15
16
|
X_CORRELATION_ID: 'X-Correlation-Id',
|
|
16
17
|
X_FEATURE_FLAG: 'X-Feature-Flag',
|
|
17
18
|
X_FORWARD_TO: 'X-Forward-To',
|
|
@@ -12,6 +12,7 @@ const SUPPORTED_HEADERS = {
|
|
|
12
12
|
AUTHORIZATION: 'Authorization',
|
|
13
13
|
CONTENT_TYPE: 'Content-Type',
|
|
14
14
|
X_APPLICATION_ID: 'X-Application-Id',
|
|
15
|
+
X_CUSTOM_VIEW_ID: 'X-Custom-View-Id',
|
|
15
16
|
X_CORRELATION_ID: 'X-Correlation-Id',
|
|
16
17
|
X_FEATURE_FLAG: 'X-Feature-Flag',
|
|
17
18
|
X_FORWARD_TO: 'X-Forward-To',
|
|
@@ -10,10 +10,13 @@ type TApplicationShellAuthenticationProps = {
|
|
|
10
10
|
render?: () => JSX.Element;
|
|
11
11
|
children?: ReactNode;
|
|
12
12
|
};
|
|
13
|
+
type MainContainerProps = {
|
|
14
|
+
isNewNavigationEnabled: boolean;
|
|
15
|
+
};
|
|
13
16
|
export declare const MainContainer: import("@emotion/styled").StyledComponent<{
|
|
14
17
|
theme?: import("@emotion/react").Theme | undefined;
|
|
15
18
|
as?: import("react").ElementType<any> | undefined;
|
|
16
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
19
|
+
} & MainContainerProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
17
20
|
export declare const ApplicationShellAuthenticated: {
|
|
18
21
|
(props: TApplicationShellAuthenticationProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
19
22
|
displayName: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type TNewMainNavigationFlagWrapperChildrenProps = {
|
|
3
|
+
isNewNavigationEnabled: boolean;
|
|
4
|
+
isNewNavigationEnabledEvaluationReady: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const NewMainNavigationFlagWrapper: (props: {
|
|
7
|
+
children: ({ isNewNavigationEnabled, isNewNavigationEnabledEvaluationReady, }: TNewMainNavigationFlagWrapperChildrenProps) => JSX.Element;
|
|
8
|
+
}) => JSX.Element;
|
|
9
|
+
export default NewMainNavigationFlagWrapper;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type EnhancedHistory } from '@commercetools-frontend/browser-history';
|
|
2
2
|
export declare const getBrowserHistory: () => EnhancedHistory;
|
|
3
|
-
export declare const getBrowserLocale: (win: Window) =>
|
|
3
|
+
export declare const getBrowserLocale: (win: Window) => import("@commercetools-frontend/l10n/supported-locales").TSupportedLocale;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type TCustomView } from '../../types/generated/settings';
|
|
3
|
+
type TCustomViewContext = {
|
|
4
|
+
config: TCustomView;
|
|
5
|
+
};
|
|
6
|
+
type TCustomViewContextProviderProps = {
|
|
7
|
+
config: TCustomView;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare const CustomViewContextProvider: (props: TCustomViewContextProviderProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
11
|
+
export declare const useCustomViewContext: () => TCustomViewContext;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './custom-view-context';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
|
|
3
|
+
type TCustomViewShellProps = {
|
|
4
|
+
customViewId: string;
|
|
5
|
+
messages: TAsyncLocaleDataProps['applicationMessages'];
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
declare function CustomViewShell(props: TCustomViewShellProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
9
|
+
export default CustomViewShell;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './custom-view-shell';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { ApplicationWindow } from '@commercetools-frontend/constants';
|
|
3
|
+
import { type TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
|
|
4
|
+
type TCustomViewShellAuthenticatedProps = {
|
|
5
|
+
dataLocale: string;
|
|
6
|
+
environment: ApplicationWindow['app'];
|
|
7
|
+
messages: TAsyncLocaleDataProps['applicationMessages'];
|
|
8
|
+
projectKey?: string;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
declare function CustomViewShellAuthenticated(props: TCustomViewShellAuthenticatedProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
12
|
+
export default CustomViewShellAuthenticated;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './custom-view-shell-authenticated';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/* eslint-disable prettier/prettier */
|
|
2
|
-
declare const styles: {"left-navigation":"navbar-mod__left-navigation___n7yUt","list":"navbar-mod__list___RCV3J","scrollable-menu":"navbar-mod__scrollable-menu___64pxJ","list-item":"navbar-mod__list-item___MjK6t","item-link":"navbar-mod__item-link___X2Ina","item-icon-text":"navbar-mod__item-icon-text___a-8JY","icon":"navbar-mod__icon___bLsep","icon__active":"navbar-mod__icon__active___asorg","title":"navbar-mod__title___eRWUj","expander":"navbar-mod__expander___jyAUi","expand-icon":"navbar-mod__expand-icon___BtmRa","item--bottom":"navbar-mod__item--bottom___eW7nh","item__active":"navbar-mod__item__active___lo1sr","item_menu-open":"navbar-mod__item_menu-open___zk0zh","item_menu-collapsed":"navbar-mod__item_menu-collapsed___cluyY","item__no-submenu":"navbar-mod__item__no-submenu___0lmiH","sublist":"navbar-mod__sublist___os1s7","sublist-no-children":"navbar-mod__sublist-no-children___Dy-h-","title-copy":"navbar-mod__title-copy___o2y1q","sublist__inactive":"navbar-mod__sublist__inactive___kJvf-","sublist-item":"navbar-mod__sublist-item___gafkS","text":"navbar-mod__text___ccHEu","text-link":"navbar-mod__text-link___dhtj6","item_menu__active":"navbar-mod__item_menu__active___5xFRw","icon-container":"navbar-mod__icon-container___w3FtA","fixed-menu":"navbar-mod__fixed-menu___42tD9","sublist-expanded__active":"navbar-mod__sublist-expanded__active___240JK","sublist-collapsed__active":"navbar-mod__sublist-collapsed__active___-9vYh","highlighted":"navbar-mod__highlighted___oJWkA","hidden":"navbar-mod__hidden___TQLSs","divider":"navbar-mod__divider___TpVzu","loading-dot-container":"navbar-mod__loading-dot-container___G2LVb"};
|
|
2
|
+
declare const styles: {"left-navigation":"navbar-mod__left-navigation___n7yUt","left-navigation-new":"navbar-mod__left-navigation-new___31u-2","list":"navbar-mod__list___RCV3J","scrollable-menu":"navbar-mod__scrollable-menu___64pxJ","list-item":"navbar-mod__list-item___MjK6t","item-link":"navbar-mod__item-link___X2Ina","item-icon-text":"navbar-mod__item-icon-text___a-8JY","icon":"navbar-mod__icon___bLsep","icon__active":"navbar-mod__icon__active___asorg","title":"navbar-mod__title___eRWUj","expander":"navbar-mod__expander___jyAUi","expand-icon":"navbar-mod__expand-icon___BtmRa","item--bottom":"navbar-mod__item--bottom___eW7nh","item__active":"navbar-mod__item__active___lo1sr","item_menu-open":"navbar-mod__item_menu-open___zk0zh","item_menu-collapsed":"navbar-mod__item_menu-collapsed___cluyY","item__no-submenu":"navbar-mod__item__no-submenu___0lmiH","sublist":"navbar-mod__sublist___os1s7","sublist-no-children":"navbar-mod__sublist-no-children___Dy-h-","title-copy":"navbar-mod__title-copy___o2y1q","sublist-new":"navbar-mod__sublist-new___5gy2L","sublist__inactive":"navbar-mod__sublist__inactive___kJvf-","sublist-item":"navbar-mod__sublist-item___gafkS","text":"navbar-mod__text___ccHEu","text-link":"navbar-mod__text-link___dhtj6","item_menu__active":"navbar-mod__item_menu__active___5xFRw","icon-container":"navbar-mod__icon-container___w3FtA","fixed-menu":"navbar-mod__fixed-menu___42tD9","sublist-expanded__active":"navbar-mod__sublist-expanded__active___240JK","sublist-collapsed__active":"navbar-mod__sublist-collapsed__active___-9vYh","sublist-collapsed-new__active":"navbar-mod__sublist-collapsed-new__active___scHEz","sublist-expanded-new__active":"navbar-mod__sublist-expanded-new__active___KJ32l","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-new":"navbar-mod__scrollable-menu-new___4yfOE"};
|
|
3
3
|
export default styles;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const Navbar: import("react").LazyExoticComponent<{
|
|
3
3
|
(props: {
|
|
4
|
-
applicationLocale
|
|
4
|
+
applicationLocale?: string | undefined;
|
|
5
5
|
projectKey: string;
|
|
6
6
|
environment: {
|
|
7
7
|
useFullRedirectsForLinks?: boolean | undefined;
|
|
8
8
|
} & {
|
|
9
9
|
applicationId: string;
|
|
10
|
+
customViewId?: string | undefined;
|
|
10
11
|
applicationName: string;
|
|
11
12
|
entryPointUriPath: string;
|
|
12
13
|
revision: string;
|
|
@@ -94,7 +95,10 @@ declare const Navbar: import("react").LazyExoticComponent<{
|
|
|
94
95
|
};
|
|
95
96
|
} | null | undefined;
|
|
96
97
|
onMenuItemClick?: ((event: import("react").SyntheticEvent<HTMLAnchorElement, Event>) => void) | undefined;
|
|
97
|
-
|
|
98
|
+
isLoading: boolean;
|
|
99
|
+
isNewNavigationEnabled: boolean;
|
|
100
|
+
isNewNavigationEnabledEvaluationReady: boolean;
|
|
101
|
+
}): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
|
|
98
102
|
displayName: string;
|
|
99
103
|
}>;
|
|
100
104
|
export default Navbar;
|
|
@@ -35,6 +35,8 @@ type MenuGroupProps = {
|
|
|
35
35
|
isExpanded?: boolean;
|
|
36
36
|
hasSubmenu?: boolean;
|
|
37
37
|
children?: ReactNode;
|
|
38
|
+
verticalPosition?: number;
|
|
39
|
+
isNewNavigationEnabled?: boolean;
|
|
38
40
|
};
|
|
39
41
|
declare const MenuGroup: {
|
|
40
42
|
(props: MenuGroupProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
|
|
@@ -50,10 +52,7 @@ type MenuItemProps = {
|
|
|
50
52
|
onMouseLeave?: MouseEventHandler<HTMLElement>;
|
|
51
53
|
children: ReactNode;
|
|
52
54
|
};
|
|
53
|
-
declare const MenuItem:
|
|
54
|
-
(props: MenuItemProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
55
|
-
displayName: string;
|
|
56
|
-
};
|
|
55
|
+
declare const MenuItem: import("react").ForwardRefExoticComponent<MenuItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
57
56
|
export type MenuItemLinkProps = {
|
|
58
57
|
linkTo?: string;
|
|
59
58
|
exactMatch: boolean;
|
|
@@ -94,6 +93,7 @@ type MenuLabelProps = {
|
|
|
94
93
|
declare const MenuLabel: (props: MenuLabelProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
95
94
|
type TNavBarLayoutProps = {
|
|
96
95
|
children: ReactNode;
|
|
96
|
+
isNewNavigationEnabled?: boolean;
|
|
97
97
|
};
|
|
98
98
|
declare const NavBarLayout: import("react").ForwardRefExoticComponent<TNavBarLayoutProps & import("react").RefAttributes<HTMLElement>>;
|
|
99
99
|
export { RestrictedMenuItem, MenuItem, MenuItemLink, IconSwitcher, MenuGroup, MenuLabel, MenuItemDivider, MenuExpander, Faded, NavBarLayout, };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type TNavBarSkeletonProps = {
|
|
3
|
+
isExpanded: boolean;
|
|
4
|
+
};
|
|
5
|
+
type TMenuItemProps = {
|
|
6
|
+
contentWidth: 'wide' | 'narrow';
|
|
7
|
+
};
|
|
8
|
+
declare const NavBarLayout: (props: TNavBarSkeletonProps & {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
11
|
+
declare const NavBarHeader: import("@emotion/styled").StyledComponent<{
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
as?: import("react").ElementType<any> | undefined;
|
|
14
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
|
+
declare const NavBarBody: import("@emotion/styled").StyledComponent<{
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any> | undefined;
|
|
18
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
+
declare const NavBarFooter: import("@emotion/styled").StyledComponent<{
|
|
20
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
+
as?: import("react").ElementType<any> | undefined;
|
|
22
|
+
} & TNavBarSkeletonProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
|
+
declare const ExpandIcon: import("@emotion/styled").StyledComponent<{
|
|
24
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
+
as?: import("react").ElementType<any> | undefined;
|
|
26
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
27
|
+
declare const MenuItemContainer: import("@emotion/styled").StyledComponent<{
|
|
28
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
+
as?: import("react").ElementType<any> | undefined;
|
|
30
|
+
} & TMenuItemProps & TNavBarSkeletonProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
31
|
+
declare const MenuItemIcon: import("@emotion/styled").StyledComponent<{
|
|
32
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
33
|
+
as?: import("react").ElementType<any> | undefined;
|
|
34
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
35
|
+
declare const MenuItemTitle: import("@emotion/styled").StyledComponent<{
|
|
36
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
37
|
+
as?: import("react").ElementType<any> | undefined;
|
|
38
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
39
|
+
declare const MenuItemGroup: import("@emotion/styled").StyledComponent<{
|
|
40
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
41
|
+
as?: import("react").ElementType<any> | undefined;
|
|
42
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
43
|
+
export { NavBarLayout, NavBarHeader, NavBarBody, NavBarFooter, ExpandIcon, MenuItemContainer, MenuItemIcon, MenuItemTitle, MenuItemGroup, type TNavBarSkeletonProps, type TMenuItemProps, };
|
|
@@ -2,16 +2,19 @@ import type { TApplicationContext } from '@commercetools-frontend/application-sh
|
|
|
2
2
|
import type { TFetchProjectQuery } from '../../types/generated/mc';
|
|
3
3
|
import { type MenuItemLinkProps } from './menu-items';
|
|
4
4
|
type TNavbarProps = {
|
|
5
|
-
applicationLocale
|
|
5
|
+
applicationLocale?: string;
|
|
6
6
|
projectKey: string;
|
|
7
7
|
environment: TApplicationContext<{
|
|
8
8
|
useFullRedirectsForLinks?: boolean;
|
|
9
9
|
}>['environment'];
|
|
10
10
|
project: TFetchProjectQuery['project'];
|
|
11
11
|
onMenuItemClick?: MenuItemLinkProps['onClick'];
|
|
12
|
+
isLoading: boolean;
|
|
13
|
+
isNewNavigationEnabled: boolean;
|
|
14
|
+
isNewNavigationEnabledEvaluationReady: boolean;
|
|
12
15
|
};
|
|
13
16
|
declare const NavBar: {
|
|
14
|
-
(props: TNavbarProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
17
|
+
(props: TNavbarProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
|
|
15
18
|
displayName: string;
|
|
16
19
|
};
|
|
17
20
|
export default NavBar;
|
|
@@ -10,6 +10,7 @@ export declare const SUPPORTED_HEADERS: {
|
|
|
10
10
|
readonly AUTHORIZATION: "Authorization";
|
|
11
11
|
readonly CONTENT_TYPE: "Content-Type";
|
|
12
12
|
readonly X_APPLICATION_ID: "X-Application-Id";
|
|
13
|
+
readonly X_CUSTOM_VIEW_ID: "X-Custom-View-Id";
|
|
13
14
|
readonly X_CORRELATION_ID: "X-Correlation-Id";
|
|
14
15
|
readonly X_FEATURE_FLAG: "X-Feature-Flag";
|
|
15
16
|
readonly X_FORWARD_TO: "X-Forward-To";
|
|
@@ -3,6 +3,8 @@ export { default as version } from './version';
|
|
|
3
3
|
export { default as ApplicationShell } from './components/application-shell';
|
|
4
4
|
export { default as ApplicationShellProvider } from './components/application-shell-provider';
|
|
5
5
|
export { default as ApplicationPageTitle } from './components/application-page-title';
|
|
6
|
+
export { default as CustomViewShell } from './components/custom-view-shell';
|
|
7
|
+
export * from './components/custom-view-context';
|
|
6
8
|
export { default as createApolloClient } from './configure-apollo';
|
|
7
9
|
export { applyDefaultMiddlewares } from './configure-store';
|
|
8
10
|
export { default as InjectReducers } from './components/inject-reducers';
|