@commercetools-frontend/application-shell 22.37.0 → 22.38.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 +1 -1
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-application-shell.esm.js +1 -1
- package/dist/{custom-view-dev-host-4ffa028a.esm.js → custom-view-dev-host-28296b93.esm.js} +1 -1
- package/dist/{custom-view-dev-host-b9b860f1.cjs.prod.js → custom-view-dev-host-c3553291.cjs.prod.js} +1 -1
- package/dist/{custom-view-dev-host-785f2683.cjs.dev.js → custom-view-dev-host-dc096f4b.cjs.dev.js} +1 -1
- package/dist/declarations/src/components/application-page-title/application-page-title.d.ts +2 -3
- package/dist/declarations/src/components/inject-reducers/inject-reducers.d.ts +2 -3
- package/dist/declarations/src/components/navbar/menu-items.d.ts +3 -5
- package/dist/{error-apologizer-84dc825c.cjs.prod.js → error-apologizer-1f6f7df4.cjs.prod.js} +4 -4
- package/dist/{error-apologizer-f6793491.cjs.dev.js → error-apologizer-3c7ded7d.cjs.dev.js} +4 -4
- package/dist/{error-apologizer-76f087f4.esm.js → error-apologizer-8a4b7078.esm.js} +4 -4
- package/dist/{index-5e00785a.cjs.dev.js → index-4d2cd8af.cjs.dev.js} +38 -45
- package/dist/{index-937169c0.cjs.prod.js → index-658a8571.cjs.prod.js} +38 -45
- package/dist/{index-bdd71e4c.esm.js → index-b8d7b0f7.esm.js} +38 -45
- package/dist/{navbar-1465f182.cjs.prod.js → navbar-471b2d55.cjs.prod.js} +25 -21
- package/dist/{navbar-62d10e1c.cjs.dev.js → navbar-4b46fe69.cjs.dev.js} +28 -24
- package/dist/{navbar-7b53adec.esm.js → navbar-7bdb6674.esm.js} +28 -24
- package/dist/{oidc-callback-88818ecc.cjs.dev.js → oidc-callback-145f9bfd.cjs.dev.js} +1 -1
- package/dist/{oidc-callback-4dc1c13f.esm.js → oidc-callback-6930da2f.esm.js} +1 -1
- package/dist/{oidc-callback-75bd9ce0.cjs.prod.js → oidc-callback-d181b6b4.cjs.prod.js} +1 -1
- package/dist/{project-container-0a3ddb21.cjs.prod.js → project-container-3751ad22.cjs.prod.js} +12 -15
- package/dist/{project-container-f3698c44.cjs.dev.js → project-container-4324878f.cjs.dev.js} +12 -15
- package/dist/{project-container-ac9ffbf7.esm.js → project-container-c811c1fb.esm.js} +12 -15
- package/dist/{project-expired-7d2fab4d.cjs.dev.js → project-expired-573cb808.cjs.dev.js} +6 -6
- package/dist/{project-expired-054375d0.esm.js → project-expired-94f17c78.esm.js} +6 -6
- package/dist/{project-expired-25c363cd.cjs.prod.js → project-expired-ea81591f.cjs.prod.js} +6 -6
- package/dist/{project-not-found-f488a2e1.cjs.dev.js → project-not-found-5e4d9b8e.cjs.dev.js} +8 -8
- package/dist/{project-not-found-555741b8.cjs.prod.js → project-not-found-65f14725.cjs.prod.js} +8 -8
- package/dist/{project-not-found-e3a64bcc.esm.js → project-not-found-e8dc2e03.esm.js} +8 -8
- package/dist/{project-not-initialized-3e7cb9fb.esm.js → project-not-initialized-1e6886b0.esm.js} +6 -6
- package/dist/{project-not-initialized-11f193fe.cjs.dev.js → project-not-initialized-41623b2a.cjs.dev.js} +6 -6
- package/dist/{project-not-initialized-4932ab18.cjs.prod.js → project-not-initialized-7d020d44.cjs.prod.js} +6 -6
- package/dist/{project-suspended-5e840d00.cjs.dev.js → project-suspended-6c0fdc26.cjs.dev.js} +8 -8
- package/dist/{project-suspended-1340f99e.cjs.prod.js → project-suspended-bd697466.cjs.prod.js} +8 -8
- package/dist/{project-suspended-5a8b040e.esm.js → project-suspended-f1951de9.esm.js} +8 -8
- package/dist/{quick-access-59946146.cjs.dev.js → quick-access-249a0084.cjs.dev.js} +123 -123
- package/dist/{quick-access-ef9f6828.esm.js → quick-access-4fe70e35.esm.js} +123 -123
- package/dist/{quick-access-b183c7bd.cjs.prod.js → quick-access-91e915f9.cjs.prod.js} +123 -123
- package/dist/{redirect-to-logout-0f4a8317.cjs.dev.js → redirect-to-logout-339b312b.cjs.dev.js} +1 -1
- package/dist/{redirect-to-logout-ddf6cdac.esm.js → redirect-to-logout-384d200e.esm.js} +1 -1
- package/dist/{redirect-to-logout-4f59c9b7.cjs.prod.js → redirect-to-logout-923481be.cjs.prod.js} +1 -1
- package/dist/{requests-in-flight-loader-28b03925.cjs.dev.js → requests-in-flight-loader-37572fc9.cjs.dev.js} +3 -4
- package/dist/{requests-in-flight-loader-4f45b8ce.cjs.prod.js → requests-in-flight-loader-6623cdb0.cjs.prod.js} +3 -4
- package/dist/{requests-in-flight-loader-c8b1d4e1.esm.js → requests-in-flight-loader-fdb9c655.esm.js} +3 -4
- package/dist/{service-page-project-switcher-5fb3181e.cjs.prod.js → service-page-project-switcher-89ced286.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-66a1d372.cjs.dev.js → service-page-project-switcher-a7386e47.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-da22aefc.esm.js → service-page-project-switcher-c6e2df4d.esm.js} +1 -1
- package/dist/{user-settings-menu-dc94ceb2.esm.js → user-settings-menu-15c0d82b.esm.js} +12 -18
- package/dist/{user-settings-menu-a0813186.cjs.dev.js → user-settings-menu-4ff11354.cjs.dev.js} +12 -18
- package/dist/{user-settings-menu-ead5fed2.cjs.prod.js → user-settings-menu-9c195d53.cjs.prod.js} +12 -18
- package/package.json +17 -17
|
@@ -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-4d2cd8af.cjs.dev.js');
|
|
6
6
|
var index = require('./index-b1476d46.cjs.dev.js');
|
|
7
7
|
var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
|
|
8
8
|
var ssr = require('@commercetools-frontend/application-config/ssr');
|
|
@@ -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-658a8571.cjs.prod.js');
|
|
6
6
|
var index = require('./index-91985d64.cjs.prod.js');
|
|
7
7
|
var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
|
|
8
8
|
var ssr = require('@commercetools-frontend/application-config/ssr');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { f as ApplicationPageTitle, A as ApplicationShell, e as ApplicationShellProvider, C as ConfigureIntlProvider, h as CustomViewShell, j as ErrorApologizer, i as FetchUser, I as InjectReducers, R as RedirectToLogin, k as RedirectToLogout, S as SetupFlopFlipProvider, l as SuspendedRoute, g as getBrowserLocale, m as getPreviousProjectKey, s as setupGlobalErrorListener, u as useRoutesCreator, v as version } from './index-
|
|
1
|
+
export { f as ApplicationPageTitle, A as ApplicationShell, e as ApplicationShellProvider, C as ConfigureIntlProvider, h as CustomViewShell, j as ErrorApologizer, i as FetchUser, I as InjectReducers, R as RedirectToLogin, k as RedirectToLogout, S as SetupFlopFlipProvider, l as SuspendedRoute, g as getBrowserLocale, m as getPreviousProjectKey, s as setupGlobalErrorListener, u as useRoutesCreator, v as version } from './index-b8d7b0f7.esm.js';
|
|
2
2
|
export { R as RouteCatchAll, a as applyDefaultMiddlewares } from './index-b6081c20.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';
|
|
@@ -9,7 +9,7 @@ import Constraints from '@commercetools-uikit/constraints';
|
|
|
9
9
|
import PrimaryButton from '@commercetools-uikit/primary-button';
|
|
10
10
|
import Spacings from '@commercetools-uikit/spacings';
|
|
11
11
|
import Text from '@commercetools-uikit/text';
|
|
12
|
-
import { A as ApplicationShell } from './index-
|
|
12
|
+
import { A as ApplicationShell } from './index-b8d7b0f7.esm.js';
|
|
13
13
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
14
14
|
import './index-b6081c20.esm.js';
|
|
15
15
|
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
package/dist/{custom-view-dev-host-b9b860f1.cjs.prod.js → custom-view-dev-host-c3553291.cjs.prod.js}
RENAMED
|
@@ -11,7 +11,7 @@ var Constraints = require('@commercetools-uikit/constraints');
|
|
|
11
11
|
var PrimaryButton = require('@commercetools-uikit/primary-button');
|
|
12
12
|
var Spacings = require('@commercetools-uikit/spacings');
|
|
13
13
|
var Text = require('@commercetools-uikit/text');
|
|
14
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
14
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-658a8571.cjs.prod.js');
|
|
15
15
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
16
16
|
require('./index-91985d64.cjs.prod.js');
|
|
17
17
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
package/dist/{custom-view-dev-host-785f2683.cjs.dev.js → custom-view-dev-host-dc096f4b.cjs.dev.js}
RENAMED
|
@@ -11,7 +11,7 @@ var Constraints = require('@commercetools-uikit/constraints');
|
|
|
11
11
|
var PrimaryButton = require('@commercetools-uikit/primary-button');
|
|
12
12
|
var Spacings = require('@commercetools-uikit/spacings');
|
|
13
13
|
var Text = require('@commercetools-uikit/text');
|
|
14
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
14
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-4d2cd8af.cjs.dev.js');
|
|
15
15
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
16
16
|
require('./index-b1476d46.cjs.dev.js');
|
|
17
17
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
@@ -15,11 +15,10 @@ type TApplicationPageTitleProps = {
|
|
|
15
15
|
* <ApplicationPageTitle additionalParts={['T-Shirt red']} />
|
|
16
16
|
* // T-Shirt red - Products - my-shop - Merchant Center
|
|
17
17
|
*/
|
|
18
|
-
additionalParts
|
|
18
|
+
additionalParts?: string[];
|
|
19
19
|
};
|
|
20
20
|
declare const ApplicationPageTitle: {
|
|
21
|
-
(
|
|
21
|
+
({ additionalParts, }: TApplicationPageTitleProps): null;
|
|
22
22
|
displayName: string;
|
|
23
|
-
defaultProps: TApplicationPageTitleProps;
|
|
24
23
|
};
|
|
25
24
|
export default ApplicationPageTitle;
|
|
@@ -3,12 +3,11 @@ import type { ReducersMapObject } from 'redux';
|
|
|
3
3
|
type Props = {
|
|
4
4
|
id: string;
|
|
5
5
|
reducers: ReducersMapObject;
|
|
6
|
-
shouldCleanUpOnUnmount
|
|
6
|
+
shouldCleanUpOnUnmount?: boolean;
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
};
|
|
9
9
|
declare const InjectReducers: {
|
|
10
|
-
(props: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
|
|
10
|
+
({ shouldCleanUpOnUnmount, ...props }: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
|
|
11
11
|
displayName: string;
|
|
12
|
-
defaultProps: Pick<Props, "shouldCleanUpOnUnmount">;
|
|
13
12
|
};
|
|
14
13
|
export default InjectReducers;
|
|
@@ -55,7 +55,7 @@ declare const MenuItem: {
|
|
|
55
55
|
};
|
|
56
56
|
export type MenuItemLinkProps = {
|
|
57
57
|
linkTo?: string;
|
|
58
|
-
exactMatch
|
|
58
|
+
exactMatch?: boolean;
|
|
59
59
|
children: ReactNode;
|
|
60
60
|
onClick?: (event: SyntheticEvent<HTMLAnchorElement>) => void;
|
|
61
61
|
useFullRedirectsForLinks?: boolean;
|
|
@@ -63,9 +63,8 @@ export type MenuItemLinkProps = {
|
|
|
63
63
|
isSubmenuFocused?: boolean;
|
|
64
64
|
};
|
|
65
65
|
declare const MenuItemLink: {
|
|
66
|
-
(props: MenuItemLinkProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
66
|
+
({ exactMatch, ...props }: MenuItemLinkProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
67
67
|
displayName: string;
|
|
68
|
-
defaultProps: Pick<MenuItemLinkProps, "exactMatch">;
|
|
69
68
|
};
|
|
70
69
|
type RestrictedMenuItemProps = {
|
|
71
70
|
featureToggle?: string;
|
|
@@ -79,9 +78,8 @@ type RestrictedMenuItemProps = {
|
|
|
79
78
|
children: ReactNode;
|
|
80
79
|
};
|
|
81
80
|
declare const RestrictedMenuItem: {
|
|
82
|
-
(props: RestrictedMenuItemProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
|
|
81
|
+
({ permissions, ...props }: RestrictedMenuItemProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
|
|
83
82
|
displayName: string;
|
|
84
|
-
defaultProps: Pick<RestrictedMenuItemProps, "permissions">;
|
|
85
83
|
};
|
|
86
84
|
type MenuLabelProps = {
|
|
87
85
|
labelAllLocales: TLocalizedField[];
|
package/dist/{error-apologizer-84dc825c.cjs.prod.js → error-apologizer-1f6f7df4.cjs.prod.js}
RENAMED
|
@@ -28,12 +28,12 @@ var UnexpectedErrorSVG__default = /*#__PURE__*/_interopDefault(UnexpectedErrorSV
|
|
|
28
28
|
|
|
29
29
|
var messages = reactIntl.defineMessages({
|
|
30
30
|
title: {
|
|
31
|
-
id:
|
|
32
|
-
defaultMessage:
|
|
31
|
+
id: "ErrorApologizer.title",
|
|
32
|
+
defaultMessage: "Sorry! An unexpected error occured."
|
|
33
33
|
},
|
|
34
34
|
notifiedTeam: {
|
|
35
|
-
id:
|
|
36
|
-
defaultMessage:
|
|
35
|
+
id: "ErrorApologizer.notifiedTeam",
|
|
36
|
+
defaultMessage: "Our team has been notified about this issue."
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
|
|
@@ -28,12 +28,12 @@ var UnexpectedErrorSVG__default = /*#__PURE__*/_interopDefault(UnexpectedErrorSV
|
|
|
28
28
|
|
|
29
29
|
var messages = reactIntl.defineMessages({
|
|
30
30
|
title: {
|
|
31
|
-
id:
|
|
32
|
-
defaultMessage:
|
|
31
|
+
id: "ErrorApologizer.title",
|
|
32
|
+
defaultMessage: "Sorry! An unexpected error occured."
|
|
33
33
|
},
|
|
34
34
|
notifiedTeam: {
|
|
35
|
-
id:
|
|
36
|
-
defaultMessage:
|
|
35
|
+
id: "ErrorApologizer.notifiedTeam",
|
|
36
|
+
defaultMessage: "Our team has been notified about this issue."
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
|
|
@@ -14,12 +14,12 @@ import { jsx } from '@emotion/react/jsx-runtime';
|
|
|
14
14
|
|
|
15
15
|
var messages = defineMessages({
|
|
16
16
|
title: {
|
|
17
|
-
id:
|
|
18
|
-
defaultMessage:
|
|
17
|
+
id: "ErrorApologizer.title",
|
|
18
|
+
defaultMessage: "Sorry! An unexpected error occured."
|
|
19
19
|
},
|
|
20
20
|
notifiedTeam: {
|
|
21
|
-
id:
|
|
22
|
-
defaultMessage:
|
|
21
|
+
id: "ErrorApologizer.notifiedTeam",
|
|
22
|
+
defaultMessage: "Our team has been notified about this issue."
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
|
|
@@ -111,9 +111,9 @@ var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
|
|
|
111
111
|
var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
|
|
112
112
|
|
|
113
113
|
// NOTE: This string will be replaced on build time with the package version.
|
|
114
|
-
var version = "22.
|
|
114
|
+
var version = "22.38.0";
|
|
115
115
|
|
|
116
|
-
const RequestsInFlightLoader = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./requests-in-flight-loader-
|
|
116
|
+
const RequestsInFlightLoader = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./requests-in-flight-loader-37572fc9.cjs.dev.js' /* webpackChunkName: "requests-in-flight-loader" */); }));
|
|
117
117
|
|
|
118
118
|
// Attempt to load the `projectKey` from localStorage
|
|
119
119
|
function selectProjectKeyFromLocalStorage() {
|
|
@@ -129,8 +129,8 @@ const getPreviousProjectKey = defaultProjectKeyOfUser => {
|
|
|
129
129
|
|
|
130
130
|
var messages$1 = reactIntl.defineMessages({
|
|
131
131
|
backToProjectLink: {
|
|
132
|
-
id:
|
|
133
|
-
defaultMessage:
|
|
132
|
+
id: "AppBar.backToProjectLink",
|
|
133
|
+
defaultMessage: "Back to project"
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
|
|
@@ -231,33 +231,28 @@ LoadingPlaceholder.displayName = 'LoadingPlaceholder';
|
|
|
231
231
|
|
|
232
232
|
var messages = reactIntl.defineMessages({
|
|
233
233
|
projectsLabel: {
|
|
234
|
-
id:
|
|
235
|
-
|
|
236
|
-
defaultMessage: 'Projects'
|
|
234
|
+
id: "ProjectSwitcher.projectsLabel",
|
|
235
|
+
defaultMessage: "Projects"
|
|
237
236
|
},
|
|
238
237
|
searchPlaceholder: {
|
|
239
|
-
id:
|
|
240
|
-
|
|
241
|
-
defaultMessage: 'Search for a project'
|
|
238
|
+
id: "ProjectSwitcher.searchPlaceholder",
|
|
239
|
+
defaultMessage: "Search for a project"
|
|
242
240
|
},
|
|
243
241
|
noResults: {
|
|
244
|
-
id:
|
|
245
|
-
|
|
246
|
-
defaultMessage: 'Sorry, but there are no projects that match your search.'
|
|
242
|
+
id: "ProjectSwitcher.noResults",
|
|
243
|
+
defaultMessage: "Sorry, but there are no projects that match your search."
|
|
247
244
|
},
|
|
248
245
|
suspended: {
|
|
249
|
-
id:
|
|
250
|
-
|
|
251
|
-
defaultMessage: 'Suspended'
|
|
246
|
+
id: "ProjectSwitcher.suspended",
|
|
247
|
+
defaultMessage: "Suspended"
|
|
252
248
|
},
|
|
253
249
|
expired: {
|
|
254
|
-
id:
|
|
255
|
-
|
|
256
|
-
defaultMessage: 'Expired'
|
|
250
|
+
id: "ProjectSwitcher.expired",
|
|
251
|
+
defaultMessage: "Expired"
|
|
257
252
|
}
|
|
258
253
|
});
|
|
259
254
|
|
|
260
|
-
const _excluded = ["children"];
|
|
255
|
+
const _excluded$1 = ["children"];
|
|
261
256
|
function ownKeys$8(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
262
257
|
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$8(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$8(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
263
258
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$4() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
@@ -265,7 +260,7 @@ var ProjectsQuery = { kind: "Document", definitions: [{ kind: "OperationDefiniti
|
|
|
265
260
|
const PROJECT_SWITCHER_LABEL_ID = 'project-switcher-label';
|
|
266
261
|
const ValueContainer = _ref2 => {
|
|
267
262
|
let children = _ref2.children,
|
|
268
|
-
restProps = _objectWithoutProperties(_ref2, _excluded);
|
|
263
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$1);
|
|
269
264
|
return jsxRuntime.jsx(Text__default["default"].Body, {
|
|
270
265
|
fontWeight: "medium",
|
|
271
266
|
as: "span",
|
|
@@ -402,7 +397,7 @@ ProjectSwitcher.displayName = 'ProjectSwitcher';
|
|
|
402
397
|
// eslint-disable-next-line import/prefer-default-export
|
|
403
398
|
const REQUESTS_IN_FLIGHT_LOADER_DOM_ID = 'loader-for-requests-in-flight';
|
|
404
399
|
|
|
405
|
-
const UserSettingsMenu = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./user-settings-menu-
|
|
400
|
+
const UserSettingsMenu = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./user-settings-menu-4ff11354.cjs.dev.js' /* webpackChunkName: "user-settings-menu" */); }));
|
|
406
401
|
|
|
407
402
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$3() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
408
403
|
var _ref$1 = process.env.NODE_ENV === "production" ? {
|
|
@@ -557,7 +552,7 @@ ConfigureIntlProvider.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
557
552
|
} : {};
|
|
558
553
|
ConfigureIntlProvider.displayName = 'ConfigureIntlProvider';
|
|
559
554
|
|
|
560
|
-
const ErrorApologizer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./error-apologizer-
|
|
555
|
+
const ErrorApologizer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./error-apologizer-3c7ded7d.cjs.dev.js' /* webpackChunkName: "error-apologizer" */); }));
|
|
561
556
|
|
|
562
557
|
var ProjectQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchProject" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "projectKey" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "project" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "key" }, value: { kind: "Variable", name: { kind: "Name", value: "projectKey" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "version" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "countries" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "currencies" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "languages" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "initialized" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "expiry" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "isActive" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "daysLeft" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "suspension" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "isActive" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "reason" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "isProductionProject" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "allAppliedPermissions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedActionRights" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedDataFences" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "StoreDataFence" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "__typename" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "allPermissionsForAllApplications" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allAppliedPermissions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedActionRights" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedMenuVisibilities" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedDataFences" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "StoreDataFence" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "__typename" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "Field", name: { kind: "Name", value: "owner" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "sampleDataImportDataset" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "isUserAdminOfCurrentProject" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 1081, source: { body: "query FetchProject($projectKey: String) {\n project(key: $projectKey) {\n key\n version\n name\n countries\n currencies\n languages\n initialized\n expiry {\n isActive\n daysLeft\n }\n suspension {\n isActive\n reason\n }\n isProductionProject\n allAppliedPermissions {\n name\n value\n }\n allAppliedActionRights {\n group\n name\n value\n }\n allAppliedDataFences {\n ... on StoreDataFence {\n type\n name\n value\n group\n __typename\n }\n }\n allPermissionsForAllApplications {\n allAppliedPermissions {\n name\n value\n }\n allAppliedActionRights {\n group\n name\n value\n }\n allAppliedMenuVisibilities {\n name\n value\n }\n allAppliedDataFences {\n ... on StoreDataFence {\n type\n name\n value\n group\n __typename\n }\n }\n }\n owner {\n id\n name\n }\n sampleDataImportDataset\n isUserAdminOfCurrentProject\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
563
558
|
const FetchProject = props => {
|
|
@@ -613,9 +608,9 @@ FetchUser.propTypes = {
|
|
|
613
608
|
};
|
|
614
609
|
FetchUser.displayName = 'FetchUser';
|
|
615
610
|
|
|
616
|
-
const Navbar = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./navbar-
|
|
611
|
+
const Navbar = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./navbar-4b46fe69.cjs.dev.js' /* webpackChunkName: "navbar" */); }));
|
|
617
612
|
|
|
618
|
-
const ProjectContainer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-container-
|
|
613
|
+
const ProjectContainer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-container-4324878f.cjs.dev.js' /* webpackChunkName: "project-container" */); }));
|
|
619
614
|
|
|
620
615
|
const getSelectedDataLocaleForProject = projectLocales => {
|
|
621
616
|
const cachedDataLocale = window.localStorage.getItem(constants.STORAGE_KEYS.SELECTED_DATA_LOCALE);
|
|
@@ -739,7 +734,7 @@ var pimIndexerStates = {
|
|
|
739
734
|
NOT_INDEXED: 'NOT_INDEXED'
|
|
740
735
|
};
|
|
741
736
|
|
|
742
|
-
const QuickAccess = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./quick-access-
|
|
737
|
+
const QuickAccess = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./quick-access-249a0084.cjs.dev.js' /* webpackChunkName: "quick-access" */); }));
|
|
743
738
|
const QuickAccessTrigger = props => {
|
|
744
739
|
const _useState = react.useState(false),
|
|
745
740
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -827,7 +822,7 @@ QuickAccessTrigger.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
827
822
|
} : {};
|
|
828
823
|
QuickAccessTrigger.displayName = 'QuickAccessTrigger';
|
|
829
824
|
|
|
830
|
-
const RedirectToLogout = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-logout-
|
|
825
|
+
const RedirectToLogout = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-logout-339b312b.cjs.dev.js' /* webpackChunkName: "redirect-to-logout" */); }));
|
|
831
826
|
|
|
832
827
|
const RedirectToProjectCreate = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-project-create-f4f01842.cjs.dev.js' /* webpackChunkName: "redirect-to-project-create" */); }));
|
|
833
828
|
|
|
@@ -1299,9 +1294,6 @@ ApplicationShellAuthenticated.displayName = 'ApplicationShellAuthenticated';
|
|
|
1299
1294
|
|
|
1300
1295
|
const maxTitleCharLength = 24;
|
|
1301
1296
|
const staticPaths = ['account', 'login'];
|
|
1302
|
-
const defaultProps$1 = {
|
|
1303
|
-
additionalParts: []
|
|
1304
|
-
};
|
|
1305
1297
|
const getPageTitle = (pathname, additionalParts) => {
|
|
1306
1298
|
const _pathname$split = pathname.split('/'),
|
|
1307
1299
|
_pathname$split2 = _slicedToArray(_pathname$split, 3),
|
|
@@ -1318,19 +1310,20 @@ const getPageTitle = (pathname, additionalParts) => {
|
|
|
1318
1310
|
}
|
|
1319
1311
|
return [...(customTitleParts || []), entryPointUriPath, projectKeyOrStaticPath, 'Merchant Center'].join(' - ');
|
|
1320
1312
|
};
|
|
1321
|
-
const ApplicationPageTitle =
|
|
1313
|
+
const ApplicationPageTitle = _ref => {
|
|
1314
|
+
let _ref$additionalParts = _ref.additionalParts,
|
|
1315
|
+
additionalParts = _ref$additionalParts === void 0 ? [] : _ref$additionalParts;
|
|
1322
1316
|
const location = reactRouterDom.useLocation();
|
|
1323
1317
|
react.useLayoutEffect(() => {
|
|
1324
|
-
const pageTitle = getPageTitle(location.pathname,
|
|
1318
|
+
const pageTitle = getPageTitle(location.pathname, additionalParts);
|
|
1325
1319
|
document.title = pageTitle;
|
|
1326
|
-
}, [location.pathname,
|
|
1320
|
+
}, [location.pathname, additionalParts]);
|
|
1327
1321
|
return null;
|
|
1328
1322
|
};
|
|
1329
1323
|
ApplicationPageTitle.propTypes = {
|
|
1330
|
-
additionalParts: _pt__default["default"].arrayOf(_pt__default["default"].string)
|
|
1324
|
+
additionalParts: _pt__default["default"].arrayOf(_pt__default["default"].string)
|
|
1331
1325
|
};
|
|
1332
1326
|
ApplicationPageTitle.displayName = 'ApplicationPageTitle';
|
|
1333
|
-
ApplicationPageTitle.defaultProps = defaultProps$1;
|
|
1334
1327
|
|
|
1335
1328
|
function ownKeys$5(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1336
1329
|
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$5(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$5(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
@@ -1473,7 +1466,7 @@ const hasCachedAuthenticationState = () => {
|
|
|
1473
1466
|
return window.localStorage.getItem(constants.STORAGE_KEYS.IS_AUTHENTICATED) === 'true';
|
|
1474
1467
|
};
|
|
1475
1468
|
|
|
1476
|
-
const OidcCallback = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./oidc-callback-
|
|
1469
|
+
const OidcCallback = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./oidc-callback-145f9bfd.cjs.dev.js' /* webpackChunkName: "oidc-callback" */); }));
|
|
1477
1470
|
|
|
1478
1471
|
function ownKeys$4(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1479
1472
|
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
@@ -1706,7 +1699,7 @@ ApplicationShell.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1706
1699
|
ApplicationShell.displayName = 'ApplicationShell';
|
|
1707
1700
|
ApplicationShell.version = version;
|
|
1708
1701
|
|
|
1709
|
-
const CustomViewDevHost = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./custom-view-dev-host-
|
|
1702
|
+
const CustomViewDevHost = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./custom-view-dev-host-dc096f4b.cjs.dev.js' /* webpackChunkName: "custom-view-dev-host" */); }));
|
|
1710
1703
|
|
|
1711
1704
|
function CustomViewFlopFlipProvider(props) {
|
|
1712
1705
|
const adapterArgs = react.useMemo(() => ({
|
|
@@ -2058,10 +2051,11 @@ CustomViewShellWrapper.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2058
2051
|
children: _pt__default["default"].node.isRequired
|
|
2059
2052
|
} : {};
|
|
2060
2053
|
|
|
2061
|
-
const
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2054
|
+
const _excluded = ["shouldCleanUpOnUnmount"];
|
|
2055
|
+
const InjectReducers = _ref => {
|
|
2056
|
+
let _ref$shouldCleanUpOnU = _ref.shouldCleanUpOnUnmount,
|
|
2057
|
+
shouldCleanUpOnUnmount = _ref$shouldCleanUpOnU === void 0 ? true : _ref$shouldCleanUpOnU,
|
|
2058
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
2065
2059
|
const _useState = react.useState(false),
|
|
2066
2060
|
_useState2 = _slicedToArray(_useState, 2),
|
|
2067
2061
|
areReducersInjected = _useState2[0],
|
|
@@ -2074,13 +2068,13 @@ const InjectReducers = props => {
|
|
|
2074
2068
|
});
|
|
2075
2069
|
setAreReducersInjected(true);
|
|
2076
2070
|
return () => {
|
|
2077
|
-
if (
|
|
2071
|
+
if (shouldCleanUpOnUnmount) {
|
|
2078
2072
|
store.removeReducers({
|
|
2079
2073
|
id: props.id
|
|
2080
2074
|
});
|
|
2081
2075
|
}
|
|
2082
2076
|
};
|
|
2083
|
-
}, [props.id, props.reducers,
|
|
2077
|
+
}, [props.id, props.reducers, shouldCleanUpOnUnmount, store]);
|
|
2084
2078
|
|
|
2085
2079
|
// Render children only when the plugin reducers have been injected
|
|
2086
2080
|
if (areReducersInjected) return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
@@ -2091,11 +2085,10 @@ const InjectReducers = props => {
|
|
|
2091
2085
|
InjectReducers.propTypes = {
|
|
2092
2086
|
id: _pt__default["default"].string.isRequired,
|
|
2093
2087
|
reducers: _pt__default["default"].any.isRequired,
|
|
2094
|
-
shouldCleanUpOnUnmount: _pt__default["default"].bool
|
|
2088
|
+
shouldCleanUpOnUnmount: _pt__default["default"].bool,
|
|
2095
2089
|
children: _pt__default["default"].node.isRequired
|
|
2096
2090
|
};
|
|
2097
2091
|
InjectReducers.displayName = 'InjectReducers';
|
|
2098
|
-
InjectReducers.defaultProps = defaultProps;
|
|
2099
2092
|
|
|
2100
2093
|
const errorMessageIgnoreList = [/ResizeObserver loop (limit exceeded|completed with undelivered notifications)/i];
|
|
2101
2094
|
|