@commercetools-frontend/application-shell 21.1.0 → 21.2.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-10908788.esm.js → application-entry-point-35823e6a.esm.js} +1 -1
- package/dist/{application-entry-point-71cfde83.cjs.prod.js → application-entry-point-7f30d2ba.cjs.prod.js} +1 -1
- package/dist/{application-entry-point-2063c101.cjs.dev.js → application-entry-point-a6a0af92.cjs.dev.js} +1 -1
- package/dist/commercetools-frontend-application-shell.cjs.dev.js +2 -3
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +2 -3
- package/dist/commercetools-frontend-application-shell.esm.js +2 -3
- package/dist/declarations/src/components/locale-switcher/locale-switcher.d.ts +1 -3
- package/dist/declarations/src/components/project-switcher/project-switcher.d.ts +2 -6
- package/dist/{index-99afd6a5.cjs.prod.js → index-a137d138.cjs.prod.js} +14 -13
- package/dist/{index-66e80691.esm.js → index-aa15e33c.esm.js} +28 -27
- package/dist/{index-0d3c2afb.cjs.dev.js → index-dcc52a07.cjs.dev.js} +28 -27
- package/dist/{project-expired-1457aa11.esm.js → project-expired-869c2e90.esm.js} +3 -4
- package/dist/{project-expired-39b59db7.cjs.dev.js → project-expired-c3423456.cjs.dev.js} +3 -4
- package/dist/{project-expired-1d712e0a.cjs.prod.js → project-expired-d78f409e.cjs.prod.js} +3 -4
- package/dist/{project-not-found-39900646.cjs.prod.js → project-not-found-0e6cff4a.cjs.prod.js} +3 -4
- package/dist/{project-not-found-5bc32b8f.esm.js → project-not-found-5ef3ee79.esm.js} +3 -4
- package/dist/{project-not-found-30f966b3.cjs.dev.js → project-not-found-7179ba45.cjs.dev.js} +3 -4
- package/dist/{project-not-initialized-bdee60c3.esm.js → project-not-initialized-34bbe63a.esm.js} +3 -4
- package/dist/{project-not-initialized-0e6770d8.cjs.prod.js → project-not-initialized-ca9859aa.cjs.prod.js} +3 -4
- package/dist/{project-not-initialized-970c8b04.cjs.dev.js → project-not-initialized-d9491e58.cjs.dev.js} +3 -4
- package/dist/{project-suspended-2c0ab2ec.cjs.dev.js → project-suspended-62cfcb36.cjs.dev.js} +3 -4
- package/dist/{project-suspended-043fe66c.esm.js → project-suspended-67a4df2c.esm.js} +3 -4
- package/dist/{project-suspended-69e9ac0a.cjs.prod.js → project-suspended-a3444cac.cjs.prod.js} +3 -4
- package/dist/{quick-access-ba9d9590.cjs.prod.js → quick-access-08a3e28d.cjs.prod.js} +2 -3
- package/dist/{quick-access-32db9d21.cjs.dev.js → quick-access-b3fd259e.cjs.dev.js} +2 -3
- package/dist/{quick-access-8e4b5a5a.esm.js → quick-access-c3dc89c4.esm.js} +2 -3
- package/dist/{service-page-project-switcher-8b2212e0.cjs.prod.js → service-page-project-switcher-0e939c5c.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-39aa4ced.esm.js → service-page-project-switcher-1d465f9e.esm.js} +1 -1
- package/dist/{service-page-project-switcher-59415acd.cjs.dev.js → service-page-project-switcher-264b43c6.cjs.dev.js} +1 -1
- package/package.json +14 -14
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +1 -1
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +1 -1
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +1 -1
package/dist/{application-entry-point-10908788.esm.js → application-entry-point-35823e6a.esm.js}
RENAMED
|
@@ -60,7 +60,7 @@ import { PageNotFound, PageUnauthorized } from '@commercetools-frontend/applicat
|
|
|
60
60
|
import { useApplicationContext } from '@commercetools-frontend/application-shell-connectors';
|
|
61
61
|
|
|
62
62
|
// NOTE: This string will be replaced on build time with the package version.
|
|
63
|
-
var version = "21.
|
|
63
|
+
var version = "21.2.0";
|
|
64
64
|
|
|
65
65
|
var isAddNotificationErrorAction = function isAddNotificationErrorAction(action) {
|
|
66
66
|
var errorAction = action;
|
|
@@ -100,7 +100,7 @@ var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
|
|
|
100
100
|
var invariant__default = /*#__PURE__*/_interopDefault(invariant);
|
|
101
101
|
|
|
102
102
|
// NOTE: This string will be replaced on build time with the package version.
|
|
103
|
-
var version = "21.
|
|
103
|
+
var version = "21.2.0";
|
|
104
104
|
|
|
105
105
|
var isAddNotificationErrorAction = function isAddNotificationErrorAction(action) {
|
|
106
106
|
var errorAction = action;
|
|
@@ -101,7 +101,7 @@ var _pt__default = /*#__PURE__*/_interopDefault(_pt);
|
|
|
101
101
|
var invariant__default = /*#__PURE__*/_interopDefault(invariant);
|
|
102
102
|
|
|
103
103
|
// NOTE: This string will be replaced on build time with the package version.
|
|
104
|
-
var version = "21.
|
|
104
|
+
var version = "21.2.0";
|
|
105
105
|
|
|
106
106
|
var isAddNotificationErrorAction = function isAddNotificationErrorAction(action) {
|
|
107
107
|
var errorAction = action;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var applicationEntryPoint = require('./application-entry-point-
|
|
6
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
5
|
+
var applicationEntryPoint = require('./application-entry-point-a6a0af92.cjs.dev.js');
|
|
6
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-dcc52a07.cjs.dev.js');
|
|
7
7
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
8
8
|
require('uuid');
|
|
9
9
|
require('@babel/runtime-corejs3/core-js-stable/url');
|
|
@@ -102,7 +102,6 @@ require('memoize-one');
|
|
|
102
102
|
require('@commercetools-uikit/select-input');
|
|
103
103
|
require('@babel/runtime-corejs3/helpers/taggedTemplateLiteral');
|
|
104
104
|
require('lodash/isNil');
|
|
105
|
-
require('react-select');
|
|
106
105
|
require('@babel/runtime-corejs3/helpers/asyncToGenerator');
|
|
107
106
|
require('@babel/runtime-corejs3/regenerator');
|
|
108
107
|
require('@babel/runtime-corejs3/core-js-stable/object/from-entries');
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var applicationEntryPoint = require('./application-entry-point-
|
|
6
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
5
|
+
var applicationEntryPoint = require('./application-entry-point-7f30d2ba.cjs.prod.js');
|
|
6
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-a137d138.cjs.prod.js');
|
|
7
7
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
8
8
|
require('uuid');
|
|
9
9
|
require('@babel/runtime-corejs3/core-js-stable/url');
|
|
@@ -102,7 +102,6 @@ require('memoize-one');
|
|
|
102
102
|
require('@commercetools-uikit/select-input');
|
|
103
103
|
require('@babel/runtime-corejs3/helpers/taggedTemplateLiteral');
|
|
104
104
|
require('lodash/isNil');
|
|
105
|
-
require('react-select');
|
|
106
105
|
require('@babel/runtime-corejs3/helpers/asyncToGenerator');
|
|
107
106
|
require('@babel/runtime-corejs3/regenerator');
|
|
108
107
|
require('@babel/runtime-corejs3/core-js-stable/object/from-entries');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { p as RouteCatchAll, q as applyDefaultMiddlewares, f as createApolloClient, n as selectProjectKeyFromUrl, t as selectUserId, v as version } from './application-entry-point-
|
|
2
|
-
export { A as ApplicationShell, a as ApplicationShellProvider, C as ConfigureIntlProvider, G as GtmContext, b as GtmUserLogoutTracker, I as InjectReducers, S as SetupFlopFlipProvider, c as createApolloContextForProxyForwardTo, s as setupGlobalErrorListener, d as useMcLazyQuery, e as useMcMutation, u as useMcQuery } from './index-
|
|
1
|
+
export { p as RouteCatchAll, q as applyDefaultMiddlewares, f as createApolloClient, n as selectProjectKeyFromUrl, t as selectUserId, v as version } from './application-entry-point-35823e6a.esm.js';
|
|
2
|
+
export { A as ApplicationShell, a as ApplicationShellProvider, C as ConfigureIntlProvider, G as GtmContext, b as GtmUserLogoutTracker, I as InjectReducers, S as SetupFlopFlipProvider, c as createApolloContextForProxyForwardTo, s as setupGlobalErrorListener, d as useMcLazyQuery, e as useMcMutation, u as useMcQuery } from './index-aa15e33c.esm.js';
|
|
3
3
|
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
4
4
|
import 'uuid';
|
|
5
5
|
import '@babel/runtime-corejs3/core-js-stable/url';
|
|
@@ -98,7 +98,6 @@ import 'memoize-one';
|
|
|
98
98
|
import '@commercetools-uikit/select-input';
|
|
99
99
|
import '@babel/runtime-corejs3/helpers/taggedTemplateLiteral';
|
|
100
100
|
import 'lodash/isNil';
|
|
101
|
-
import 'react-select';
|
|
102
101
|
import '@babel/runtime-corejs3/helpers/asyncToGenerator';
|
|
103
102
|
import '@babel/runtime-corejs3/regenerator';
|
|
104
103
|
import '@babel/runtime-corejs3/core-js-stable/object/from-entries';
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
/// <reference types="commercetools-uikit__select-input" />
|
|
2
1
|
import type { SingleValueProps } from 'react-select';
|
|
3
|
-
|
|
4
|
-
declare type CustomSingleValueProps = SingleValueProps<SelectInputOption, false> & {
|
|
2
|
+
declare type CustomSingleValueProps = SingleValueProps & {
|
|
5
3
|
localeCount: number;
|
|
6
4
|
};
|
|
7
5
|
declare type Props = {
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import type { OptionProps, ValueContainerProps } from 'react-select';
|
|
2
|
-
import type { TProject } from '../../types/generated/mc';
|
|
3
2
|
declare type Props = {
|
|
4
3
|
projectKey?: string;
|
|
5
4
|
};
|
|
6
|
-
declare type
|
|
7
|
-
label: string;
|
|
8
|
-
};
|
|
9
|
-
declare type CustomValueContainerProps = ValueContainerProps<OptionType, false> & {
|
|
5
|
+
declare type CustomValueContainerProps = ValueContainerProps & {
|
|
10
6
|
projectCount: number;
|
|
11
7
|
};
|
|
12
8
|
export declare const ProjectSwitcherValueContainer: ({ projectCount, ...restProps }: CustomValueContainerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
-
export declare const ProjectSwitcherOption: (props: OptionProps
|
|
9
|
+
export declare const ProjectSwitcherOption: (props: OptionProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
10
|
declare const ProjectSwitcher: {
|
|
15
11
|
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
16
12
|
displayName: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var applicationEntryPoint = require('./application-entry-point-
|
|
3
|
+
var applicationEntryPoint = require('./application-entry-point-7f30d2ba.cjs.prod.js');
|
|
4
4
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
5
5
|
var _styled = require('@emotion/styled/base');
|
|
6
6
|
var _pt = require('prop-types');
|
|
@@ -76,7 +76,6 @@ var SelectInput = require('@commercetools-uikit/select-input');
|
|
|
76
76
|
var _taggedTemplateLiteral = require('@babel/runtime-corejs3/helpers/taggedTemplateLiteral');
|
|
77
77
|
var ReactDOM = require('react-dom');
|
|
78
78
|
var isNil = require('lodash/isNil');
|
|
79
|
-
var reactSelect = require('react-select');
|
|
80
79
|
var _asyncToGenerator = require('@babel/runtime-corejs3/helpers/asyncToGenerator');
|
|
81
80
|
var _regeneratorRuntime = require('@babel/runtime-corejs3/regenerator');
|
|
82
81
|
var _Object$fromEntries = require('@babel/runtime-corejs3/core-js-stable/object/from-entries');
|
|
@@ -1937,12 +1936,13 @@ var _ref3$1 = {
|
|
|
1937
1936
|
} ;
|
|
1938
1937
|
|
|
1939
1938
|
var ProjectSwitcherOption = function ProjectSwitcherOption(props) {
|
|
1939
|
+
var project = props.data;
|
|
1940
1940
|
return jsxRuntime.jsx(SelectInput__default["default"].Option, _objectSpread$7(_objectSpread$7({}, props), {}, {
|
|
1941
1941
|
children: jsxRuntime.jsxs("div", {
|
|
1942
1942
|
css: _ref3$1,
|
|
1943
1943
|
children: [jsxRuntime.jsxs("div", {
|
|
1944
1944
|
css: /*#__PURE__*/react$2.css("color:", props.isDisabled ? designSystem.customProperties.colorNeutral : designSystem.customProperties.colorAccent, ";" + ("" ), "" ),
|
|
1945
|
-
children: [
|
|
1945
|
+
children: [project.name, props.isDisabled && jsxRuntime.jsx("span", {
|
|
1946
1946
|
css: _ref2$2,
|
|
1947
1947
|
children: jsxRuntime.jsx(icons.ErrorIcon, {
|
|
1948
1948
|
size: "medium"
|
|
@@ -1950,11 +1950,11 @@ var ProjectSwitcherOption = function ProjectSwitcherOption(props) {
|
|
|
1950
1950
|
})]
|
|
1951
1951
|
}), jsxRuntime.jsx("div", {
|
|
1952
1952
|
css: /*#__PURE__*/react$2.css("font-size:11px;color:", props.isDisabled ? designSystem.customProperties.colorNeutral : 'inherit', ";" + ("" ), "" ),
|
|
1953
|
-
children:
|
|
1954
|
-
}),
|
|
1953
|
+
children: project.key
|
|
1954
|
+
}), project.suspension && project.suspension.isActive && jsxRuntime.jsx("div", {
|
|
1955
1955
|
css: /*#__PURE__*/react$2.css("font-size:11px;color:", designSystem.customProperties.colorError, ";" + ("" ), "" ),
|
|
1956
1956
|
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$7({}, messages$3.suspended))
|
|
1957
|
-
}),
|
|
1957
|
+
}), project.expiry && project.expiry.isActive && jsxRuntime.jsx("div", {
|
|
1958
1958
|
css: /*#__PURE__*/react$2.css("font-size:11px;color:", designSystem.customProperties.colorError, ";" + ("" ), "" ),
|
|
1959
1959
|
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$7({}, messages$3.expired))
|
|
1960
1960
|
})]
|
|
@@ -2022,7 +2022,8 @@ var ProjectSwitcher = function ProjectSwitcher(props) {
|
|
|
2022
2022
|
},
|
|
2023
2023
|
options: data && data.user && mapProjectsToOptions(data.user.projects.results),
|
|
2024
2024
|
isOptionDisabled: function isOptionDisabled(option) {
|
|
2025
|
-
|
|
2025
|
+
var project = option;
|
|
2026
|
+
return project.suspension.isActive || project.expiry.isActive;
|
|
2026
2027
|
},
|
|
2027
2028
|
components: {
|
|
2028
2029
|
Option: ProjectSwitcherOption,
|
|
@@ -2279,7 +2280,7 @@ _SingleValue.propTypes = {};
|
|
|
2279
2280
|
_SingleValue.displayName = 'SingleValue';
|
|
2280
2281
|
|
|
2281
2282
|
var PatchedValueContainer = function PatchedValueContainer(props) {
|
|
2282
|
-
return jsxRuntime.jsx(
|
|
2283
|
+
return jsxRuntime.jsx(SelectInput__default["default"].ValueContainer, _objectSpread$6(_objectSpread$6({}, props), {}, {
|
|
2283
2284
|
innerProps: {
|
|
2284
2285
|
style: {
|
|
2285
2286
|
display: 'flex'
|
|
@@ -2329,19 +2330,19 @@ var LocaleSwitcher = function LocaleSwitcher(props) {
|
|
|
2329
2330
|
LocaleSwitcher.propTypes = {};
|
|
2330
2331
|
|
|
2331
2332
|
var ProjectNotFound = /*#__PURE__*/react.lazy(function () {
|
|
2332
|
-
return Promise.resolve().then(function () { return require('./project-not-found-
|
|
2333
|
+
return Promise.resolve().then(function () { return require('./project-not-found-0e6cff4a.cjs.prod.js'
|
|
2333
2334
|
/* webpackChunkName: "project-not-found" */
|
|
2334
2335
|
); });
|
|
2335
2336
|
});
|
|
2336
2337
|
|
|
2337
2338
|
var ProjectExpired = /*#__PURE__*/react.lazy(function () {
|
|
2338
|
-
return Promise.resolve().then(function () { return require('./project-expired-
|
|
2339
|
+
return Promise.resolve().then(function () { return require('./project-expired-d78f409e.cjs.prod.js'
|
|
2339
2340
|
/* webpackChunkName: "project-expired" */
|
|
2340
2341
|
); });
|
|
2341
2342
|
});
|
|
2342
2343
|
|
|
2343
2344
|
var ProjectNotInitialized = /*#__PURE__*/react.lazy(function () {
|
|
2344
|
-
return Promise.resolve().then(function () { return require('./project-not-initialized-
|
|
2345
|
+
return Promise.resolve().then(function () { return require('./project-not-initialized-ca9859aa.cjs.prod.js'
|
|
2345
2346
|
/* webpackChunkName: "project-not-initialized" */
|
|
2346
2347
|
); });
|
|
2347
2348
|
});
|
|
@@ -2388,7 +2389,7 @@ var RedirectToProjectCreate = function RedirectToProjectCreate() {
|
|
|
2388
2389
|
RedirectToProjectCreate.displayName = 'RedirectToProjectCreate';
|
|
2389
2390
|
|
|
2390
2391
|
var ProjectSuspended = /*#__PURE__*/react.lazy(function () {
|
|
2391
|
-
return Promise.resolve().then(function () { return require('./project-suspended-
|
|
2392
|
+
return Promise.resolve().then(function () { return require('./project-suspended-a3444cac.cjs.prod.js'
|
|
2392
2393
|
/* webpackChunkName: "project-suspended" */
|
|
2393
2394
|
); });
|
|
2394
2395
|
});
|
|
@@ -3603,7 +3604,7 @@ var pimIndexerStates = {
|
|
|
3603
3604
|
};
|
|
3604
3605
|
|
|
3605
3606
|
var QuickAccess = /*#__PURE__*/react.lazy(function () {
|
|
3606
|
-
return Promise.resolve().then(function () { return require('./quick-access-
|
|
3607
|
+
return Promise.resolve().then(function () { return require('./quick-access-08a3e28d.cjs.prod.js'
|
|
3607
3608
|
/* webpackChunkName: "quick-access" */
|
|
3608
3609
|
); });
|
|
3609
3610
|
});
|