@commercetools-frontend/application-shell 22.17.1 → 22.18.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 +4 -4
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +4 -4
- package/dist/commercetools-frontend-application-shell.esm.js +4 -4
- package/dist/{custom-view-dev-host-173d757f.cjs.dev.js → custom-view-dev-host-7f4b9f06.cjs.dev.js} +3 -4
- package/dist/{custom-view-dev-host-a2b1a4d7.esm.js → custom-view-dev-host-b4ef2628.esm.js} +3 -4
- package/dist/{custom-view-dev-host-98d703b2.cjs.prod.js → custom-view-dev-host-ca22b6ea.cjs.prod.js} +3 -4
- package/dist/declarations/src/components/locale-switcher/messages.d.ts +10 -0
- package/dist/declarations/src/components/navbar/main-navbar.styles.d.ts +6 -25
- package/dist/declarations/src/components/navbar/menu-items.d.ts +1 -1
- package/dist/declarations/src/components/navbar/menu-items.styles.d.ts +25 -3
- package/dist/declarations/src/components/navbar/shared.styles.d.ts +18 -0
- package/dist/declarations/src/components/project-container/index.d.ts +1 -0
- package/dist/declarations/src/components/project-switcher/project-switcher.d.ts +1 -1
- package/dist/declarations/src/constants.d.ts +1 -0
- package/dist/declarations/src/types/generated/mc.d.ts +11 -0
- package/dist/{index-26c3cd26.esm.js → index-cb9692b6.esm.js} +113 -102
- package/dist/{index-34857f5d.cjs.prod.js → index-e9dcdd6b.cjs.prod.js} +98 -81
- package/dist/{index-5b8b7642.cjs.dev.js → index-f4019b48.cjs.dev.js} +112 -100
- package/dist/navbar-5746809d.esm.js +1301 -0
- package/dist/navbar-72c13dfc.cjs.dev.js +1334 -0
- package/dist/{navbar-388915b2.cjs.prod.js → navbar-7861442e.cjs.prod.js} +99 -114
- package/dist/{oidc-3b2cb733.cjs.dev.js → oidc-63e926e1.cjs.dev.js} +1 -0
- package/dist/{oidc-callback-c8efe7ba.esm.js → oidc-callback-03d24112.esm.js} +3 -4
- package/dist/{oidc-callback-3d649198.cjs.dev.js → oidc-callback-0fd6d96a.cjs.dev.js} +3 -4
- package/dist/{oidc-callback-c69379ab.cjs.prod.js → oidc-callback-976ae406.cjs.prod.js} +3 -4
- package/dist/{oidc-3f3b899b.cjs.prod.js → oidc-cfa56c46.cjs.prod.js} +1 -0
- package/dist/{oidc-fc4fcb80.esm.js → oidc-ff53dfd3.esm.js} +1 -0
- package/dist/{project-container-6c7d85c0.cjs.dev.js → project-container-9b6f3420.cjs.dev.js} +84 -32
- package/dist/{project-container-9e75aae7.esm.js → project-container-b26c2799.esm.js} +84 -35
- package/dist/{project-container-e4c5f80e.cjs.prod.js → project-container-fdb07759.cjs.prod.js} +84 -26
- package/dist/{project-expired-43a434ae.cjs.prod.js → project-expired-813ce6d0.cjs.prod.js} +5 -5
- package/dist/{project-expired-f40270ef.esm.js → project-expired-97e082ba.esm.js} +5 -5
- package/dist/{project-expired-7bbbe590.cjs.dev.js → project-expired-9de5b065.cjs.dev.js} +5 -5
- package/dist/{project-not-found-aae0a068.esm.js → project-not-found-126e7ace.esm.js} +5 -5
- package/dist/{project-not-found-9c0bea44.cjs.prod.js → project-not-found-6456d26e.cjs.prod.js} +5 -5
- package/dist/{project-not-found-652ac0d0.cjs.dev.js → project-not-found-edcab1e8.cjs.dev.js} +5 -5
- package/dist/{project-not-initialized-bc8fa99d.esm.js → project-not-initialized-4996ab49.esm.js} +5 -5
- package/dist/{project-not-initialized-3dc6a33c.cjs.dev.js → project-not-initialized-49bfd602.cjs.dev.js} +5 -5
- package/dist/{project-not-initialized-bf5307be.cjs.prod.js → project-not-initialized-f1d6b6e1.cjs.prod.js} +5 -5
- package/dist/{project-suspended-94651ca2.cjs.prod.js → project-suspended-2c241a17.cjs.prod.js} +5 -5
- package/dist/{project-suspended-f869f2b9.esm.js → project-suspended-47b2a786.esm.js} +5 -5
- package/dist/{project-suspended-f020657e.cjs.dev.js → project-suspended-e4b68d8c.cjs.dev.js} +5 -5
- package/dist/quick-access-3788f5f3.esm.js +1818 -0
- package/dist/{quick-access-54c3641d.cjs.prod.js → quick-access-76e2b7b2.cjs.prod.js} +10 -10
- package/dist/quick-access-93dc1db2.cjs.dev.js +1848 -0
- package/dist/{redirect-to-login-27f04af9.esm.js → redirect-to-login-5615df08.esm.js} +1 -1
- package/dist/{redirect-to-login-de87752f.cjs.dev.js → redirect-to-login-5e78faae.cjs.dev.js} +1 -1
- package/dist/{redirect-to-login-94c2cd1c.cjs.prod.js → redirect-to-login-ad874fb5.cjs.prod.js} +1 -1
- package/dist/{redirect-to-logout-6b79a0d8.cjs.dev.js → redirect-to-logout-a6780000.cjs.dev.js} +4 -4
- package/dist/{redirect-to-logout-c5293ad1.esm.js → redirect-to-logout-e071855b.esm.js} +4 -4
- package/dist/{redirect-to-logout-ba8bec27.cjs.prod.js → redirect-to-logout-f5c85702.cjs.prod.js} +4 -4
- package/dist/{requests-in-flight-loader-05796dc4.cjs.prod.js → requests-in-flight-loader-6538e2bb.cjs.prod.js} +4 -4
- package/dist/{requests-in-flight-loader-ec6bbe7f.cjs.dev.js → requests-in-flight-loader-9c8fdf46.cjs.dev.js} +4 -4
- package/dist/{requests-in-flight-loader-705f11ea.esm.js → requests-in-flight-loader-d79e3abb.esm.js} +4 -4
- package/dist/{service-page-project-switcher-a0f58134.esm.js → service-page-project-switcher-049e3472.esm.js} +1 -1
- package/dist/{service-page-project-switcher-d8ab6351.cjs.prod.js → service-page-project-switcher-36b4ec4a.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-7a637a8a.cjs.dev.js → service-page-project-switcher-9ac7dc0f.cjs.dev.js} +1 -1
- package/dist/{user-settings-menu-a407e40b.cjs.prod.js → user-settings-menu-1314b25d.cjs.prod.js} +2 -3
- package/dist/user-settings-menu-60dc5e0a.cjs.dev.js +364 -0
- package/dist/user-settings-menu-dcbb0bd3.esm.js +338 -0
- package/dist/{version-tracker-e59dc87d.cjs.dev.js → version-tracker-7d8e5a87.cjs.dev.js} +4 -4
- package/dist/{version-tracker-5c358901.cjs.prod.js → version-tracker-c96362fe.cjs.prod.js} +4 -4
- package/dist/{version-tracker-f2f14ae0.esm.js → version-tracker-e09696f5.esm.js} +4 -4
- package/package.json +31 -30
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +1 -1
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +1 -1
- package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +1 -1
- package/dist/navbar-46b731da.cjs.dev.js +0 -1371
- package/dist/navbar-d70b1501.esm.js +0 -1338
- package/dist/quick-access-5e4dbd52.cjs.dev.js +0 -1848
- package/dist/quick-access-dc2e6a2c.esm.js +0 -1818
- package/dist/user-settings-menu-c71c89ae.esm.js +0 -339
- package/dist/user-settings-menu-f0becc7b.cjs.dev.js +0 -365
|
@@ -40,7 +40,7 @@ var designSystem = require('@commercetools-uikit/design-system');
|
|
|
40
40
|
var icons = require('@commercetools-uikit/icons');
|
|
41
41
|
var LoadingSpinner = require('@commercetools-uikit/loading-spinner');
|
|
42
42
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
43
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
43
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-e9dcdd6b.cjs.prod.js');
|
|
44
44
|
var _Promise = require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
45
45
|
var _reduceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
46
46
|
var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
@@ -59,16 +59,16 @@ require('redux-logger');
|
|
|
59
59
|
require('@emotion/styled/base');
|
|
60
60
|
require('@commercetools-frontend/application-components');
|
|
61
61
|
require('@commercetools-frontend/i18n');
|
|
62
|
-
require('./oidc-
|
|
62
|
+
require('./oidc-cfa56c46.cjs.prod.js');
|
|
63
63
|
require('@babel/runtime-corejs3/core-js-stable/url');
|
|
64
64
|
require('@commercetools-uikit/spacings');
|
|
65
65
|
require('@commercetools-uikit/flat-button');
|
|
66
|
-
require('@babel/runtime-corejs3/helpers/
|
|
67
|
-
require('@babel/runtime-corejs3/helpers/extends');
|
|
66
|
+
require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
68
67
|
require('memoize-one');
|
|
69
68
|
require('react-select');
|
|
70
69
|
require('@commercetools-uikit/accessible-hidden');
|
|
71
70
|
require('@commercetools-uikit/select-input');
|
|
71
|
+
require('@commercetools-uikit/text');
|
|
72
72
|
require('@commercetools-frontend/assets/images/ct-logo.svg');
|
|
73
73
|
require('@commercetools-frontend/browser-history');
|
|
74
74
|
require('@commercetools-frontend/l10n');
|
|
@@ -847,7 +847,7 @@ const Butler = props => {
|
|
|
847
847
|
tabIndex: -1,
|
|
848
848
|
children: jsxRuntime.jsxs("div", {
|
|
849
849
|
ref: searchContainerRef,
|
|
850
|
-
css: /*#__PURE__*/react.css("background-color:", designSystem.
|
|
850
|
+
css: /*#__PURE__*/react.css("background-color:", designSystem.designTokens.colorSurface, ";border:0;border-radius:", designSystem.designTokens.borderRadius4, ";min-height:40px;z-index:20002;width:400px;margin:40px auto;overflow:hidden;-webkit-box-shadow:0 10px 30px -8px rgba(0, 0, 0, 0.75);-moz-box-shadow:0 10px 30px -8px rgba(0, 0, 0, 0.75);box-shadow:0 10px 30px -8px rgba(0, 0, 0, 0.75);padding-bottom:", state.hasNetworkError ? '0' : designSystem.designTokens.spacingS, ";" + ("" ), "" ),
|
|
851
851
|
onClick: event => {
|
|
852
852
|
// Avoid closing when the searchContainer itself is clicked
|
|
853
853
|
// If we don't do this, then the overlay will close when e.g.
|
|
@@ -859,7 +859,7 @@ const Butler = props => {
|
|
|
859
859
|
css: _ref,
|
|
860
860
|
children: [jsxRuntime.jsx("label", {
|
|
861
861
|
htmlFor: "quick-access-search-input",
|
|
862
|
-
css: /*#__PURE__*/react.css("align-self:center;padding-left:", designSystem.
|
|
862
|
+
css: /*#__PURE__*/react.css("align-self:center;padding-left:", designSystem.designTokens.spacingM, ";margin-top:", designSystem.designTokens.spacingS, ";" + ("" ), "" ),
|
|
863
863
|
children: jsxRuntime.jsx(icons.SearchIcon, {
|
|
864
864
|
color: "neutral60"
|
|
865
865
|
})
|
|
@@ -868,7 +868,7 @@ const Butler = props => {
|
|
|
868
868
|
ref: searchInputRef,
|
|
869
869
|
placeholder: intl.formatMessage(messages.inputPlacehoder),
|
|
870
870
|
type: "text",
|
|
871
|
-
css: /*#__PURE__*/react.css("width:100%;border:0;outline:0;font-size:22px;font-weight:300;padding:", designSystem.
|
|
871
|
+
css: /*#__PURE__*/react.css("width:100%;border:0;outline:0;font-size:22px;font-weight:300;padding:", designSystem.designTokens.spacingM, " ", designSystem.designTokens.spacingM, " ", designSystem.designTokens.spacingS, " ", designSystem.designTokens.spacingS, ";&::placeholder{color:", designSystem.designTokens.colorNeutral60, ";}" + ("" ), "" ),
|
|
872
872
|
value: state.searchText,
|
|
873
873
|
onChange: handleChange,
|
|
874
874
|
onKeyDown: handleKeyDown,
|
|
@@ -877,16 +877,16 @@ const Butler = props => {
|
|
|
877
877
|
autoComplete: "off",
|
|
878
878
|
"data-testid": "quick-access-search-input"
|
|
879
879
|
}), state.isLoading && jsxRuntime.jsx("div", {
|
|
880
|
-
css: /*#__PURE__*/react.css("align-self:center;margin-top:", designSystem.
|
|
880
|
+
css: /*#__PURE__*/react.css("align-self:center;margin-top:", designSystem.designTokens.spacingS, ";margin-right:", designSystem.designTokens.spacingS, ";" + ("" ), "" ),
|
|
881
881
|
children: jsxRuntime.jsx(LoadingSpinner__default["default"], {})
|
|
882
882
|
})]
|
|
883
883
|
}), ((_context10, _context11) => {
|
|
884
884
|
if (state.hasNetworkError) return jsxRuntime.jsx("div", {
|
|
885
|
-
css: /*#__PURE__*/react.css("overflow:hidden;white-space:nowrap;cursor:default;background:", designSystem.
|
|
885
|
+
css: /*#__PURE__*/react.css("overflow:hidden;white-space:nowrap;cursor:default;background:", designSystem.designTokens.colorError, ";text-align:center;text-transform:uppercase;color:", designSystem.designTokens.colorSurface, ";font-size:", designSystem.designTokens.fontSize20, ";padding:", designSystem.designTokens.spacingXs, ";" + ("" ), "" ),
|
|
886
886
|
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread({}, messages.offline))
|
|
887
887
|
});
|
|
888
888
|
if (state.results.length === 0 && _trimInstanceProperty__default["default"](_context10 = state.searchText).call(_context10).length > 0) return jsxRuntime.jsx("div", {
|
|
889
|
-
css: /*#__PURE__*/react.css("overflow:hidden;white-space:nowrap;cursor:default;background:", designSystem.
|
|
889
|
+
css: /*#__PURE__*/react.css("overflow:hidden;white-space:nowrap;cursor:default;background:", designSystem.designTokens.colorNeutral, ";color:", designSystem.designTokens.colorSolid, ";text-align:center;text-transform:uppercase;font-size:", designSystem.designTokens.fontSize20, ";padding:", designSystem.designTokens.spacingXs, ";" + ("" ), "" ),
|
|
890
890
|
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread({}, messages.noResults))
|
|
891
891
|
});
|
|
892
892
|
return _mapInstanceProperty__default["default"](_context11 = state.results).call(_context11, (command, index) => jsxRuntime.jsx(ButlerCommand, {
|