@commercetools-frontend/application-shell 22.30.2 → 22.31.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.
Files changed (90) hide show
  1. package/dist/{application-entry-point-2365588d.esm.js → application-entry-point-44f059a0.esm.js} +3 -3
  2. package/dist/{application-entry-point-257a1cbc.cjs.prod.js → application-entry-point-654951a6.cjs.prod.js} +2 -2
  3. package/dist/{application-entry-point-a403a123.cjs.dev.js → application-entry-point-c2f77f23.cjs.dev.js} +3 -3
  4. package/dist/commercetools-frontend-application-shell.cjs.dev.js +11 -5
  5. package/dist/commercetools-frontend-application-shell.cjs.prod.js +11 -5
  6. package/dist/commercetools-frontend-application-shell.esm.js +5 -5
  7. package/dist/{custom-view-dev-host-2dbeffde.cjs.dev.js → custom-view-dev-host-1ef244b8.cjs.dev.js} +12 -16
  8. package/dist/{custom-view-dev-host-54b19a22.esm.js → custom-view-dev-host-83d6228b.esm.js} +12 -15
  9. package/dist/{custom-view-dev-host-55efb1ea.cjs.prod.js → custom-view-dev-host-9469b02c.cjs.prod.js} +12 -16
  10. package/dist/declarations/src/components/application-page-title/application-page-title.d.ts +16 -0
  11. package/dist/declarations/src/components/application-shell/application-shell.d.ts +17 -0
  12. package/dist/declarations/src/components/application-shell-authenticated/application-shell-authenticated.d.ts +4 -0
  13. package/dist/declarations/src/components/workspaces-navigation-button/index.d.ts +1 -0
  14. package/dist/declarations/src/components/workspaces-navigation-button/messages.d.ts +8 -0
  15. package/dist/declarations/src/components/workspaces-navigation-button/workspaces-navigation-button.d.ts +3 -0
  16. package/dist/declarations/src/configure-store.d.ts +3 -0
  17. package/dist/declarations/src/hooks/use-routes-creator/use-routes-creator.d.ts +3 -0
  18. package/dist/declarations/src/index.d.ts +16 -1
  19. package/dist/declarations/src/types/generated/ctp.d.ts +562 -0
  20. package/dist/declarations/src/types/generated/mc.d.ts +5 -0
  21. package/dist/declarations/src/types/generated/proxy.d.ts +3 -0
  22. package/dist/declarations/src/types/generated/settings.d.ts +22 -0
  23. package/dist/declarations/src/utils/get-mc-origin/get-mc-origin.d.ts +16 -0
  24. package/dist/{index-055ebc13.cjs.prod.js → index-91985d64.cjs.prod.js} +2 -2
  25. package/dist/{index-ca28cb0d.esm.js → index-9475648a.esm.js} +185 -154
  26. package/dist/{index-ca730730.cjs.dev.js → index-b1476d46.cjs.dev.js} +2 -2
  27. package/dist/{index-4e5248df.esm.js → index-b6081c20.esm.js} +2 -2
  28. package/dist/{index-8974720c.cjs.dev.js → index-bd1c5108.cjs.dev.js} +190 -153
  29. package/dist/{index-176564c3.cjs.prod.js → index-ff4b1f1e.cjs.prod.js} +175 -144
  30. package/dist/{navbar-e3ee2a76.esm.js → navbar-18ab9da8.esm.js} +80 -97
  31. package/dist/{navbar-ced649a9.cjs.prod.js → navbar-32ad8010.cjs.prod.js} +80 -98
  32. package/dist/{navbar-f981de75.cjs.dev.js → navbar-4068efee.cjs.dev.js} +80 -98
  33. package/dist/oidc-6c6599a2.cjs.dev.js +98 -0
  34. package/dist/oidc-8275c04f.esm.js +84 -0
  35. package/dist/{oidc-callback-b6c08a0a.cjs.prod.js → oidc-callback-365669c2.cjs.prod.js} +11 -12
  36. package/dist/{oidc-callback-394ce33e.cjs.dev.js → oidc-callback-910e1e1c.cjs.dev.js} +11 -12
  37. package/dist/{oidc-callback-96d0d22a.esm.js → oidc-callback-a622f3a5.esm.js} +11 -12
  38. package/dist/oidc-d02d4ab8.cjs.prod.js +98 -0
  39. package/dist/{project-container-d690330d.cjs.prod.js → project-container-4cc1a369.cjs.prod.js} +15 -17
  40. package/dist/{project-container-4c04ecd0.cjs.dev.js → project-container-ba49f3db.cjs.dev.js} +15 -17
  41. package/dist/{project-container-66355b01.esm.js → project-container-edb85c22.esm.js} +15 -17
  42. package/dist/{project-expired-e9d9a604.cjs.dev.js → project-expired-378bcfb0.cjs.dev.js} +8 -8
  43. package/dist/{project-expired-6f0e2ae2.cjs.prod.js → project-expired-59d50031.cjs.prod.js} +8 -8
  44. package/dist/{project-expired-4768f135.esm.js → project-expired-ef791516.esm.js} +8 -8
  45. package/dist/{project-not-found-dcc624b2.cjs.dev.js → project-not-found-543b8e4f.cjs.dev.js} +7 -7
  46. package/dist/{project-not-found-06f0f8b0.cjs.prod.js → project-not-found-a7faf93c.cjs.prod.js} +7 -7
  47. package/dist/{project-not-found-412af385.esm.js → project-not-found-bc7cea0c.esm.js} +7 -7
  48. package/dist/{project-not-initialized-dcb97eb4.esm.js → project-not-initialized-88376a4a.esm.js} +8 -8
  49. package/dist/{project-not-initialized-702e4e28.cjs.dev.js → project-not-initialized-a9c3afa0.cjs.dev.js} +8 -8
  50. package/dist/{project-not-initialized-610860be.cjs.prod.js → project-not-initialized-e9560ddb.cjs.prod.js} +8 -8
  51. package/dist/{project-suspended-ab653b2d.cjs.prod.js → project-suspended-0686fc53.cjs.prod.js} +7 -7
  52. package/dist/{project-suspended-40040cb1.cjs.dev.js → project-suspended-5cc4bc59.cjs.dev.js} +7 -7
  53. package/dist/{project-suspended-50e15143.esm.js → project-suspended-8fa0b06e.esm.js} +7 -7
  54. package/dist/{quick-access-438951ba.cjs.dev.js → quick-access-3479fec8.cjs.dev.js} +204 -133
  55. package/dist/{quick-access-8efb79f3.esm.js → quick-access-72e35fc8.esm.js} +204 -132
  56. package/dist/{quick-access-0d122c64.cjs.prod.js → quick-access-96ea968d.cjs.prod.js} +204 -133
  57. package/dist/{redirect-to-login-3ebce35d.cjs.dev.js → redirect-to-login-32ebe009.cjs.dev.js} +10 -13
  58. package/dist/{redirect-to-login-3c5a3f4a.cjs.prod.js → redirect-to-login-60a00442.cjs.prod.js} +10 -13
  59. package/dist/{redirect-to-login-af9860c8.esm.js → redirect-to-login-b69fb5ce.esm.js} +10 -13
  60. package/dist/{redirect-to-logout-7b30e94c.esm.js → redirect-to-logout-4ee944fa.esm.js} +9 -10
  61. package/dist/{redirect-to-logout-1fa97ad0.cjs.prod.js → redirect-to-logout-d017b04b.cjs.prod.js} +9 -10
  62. package/dist/{redirect-to-logout-78fabe18.cjs.dev.js → redirect-to-logout-edf8d35c.cjs.dev.js} +9 -10
  63. package/dist/{redirector-0a16c1d1.cjs.prod.js → redirector-01f35da8.cjs.prod.js} +3 -4
  64. package/dist/{redirector-d2fd2b5e.esm.js → redirector-76670a54.esm.js} +3 -4
  65. package/dist/{redirector-e58b9bc3.cjs.dev.js → redirector-98dfc5f0.cjs.dev.js} +3 -4
  66. package/dist/{requests-in-flight-loader-04924584.cjs.dev.js → requests-in-flight-loader-0a78e347.cjs.dev.js} +7 -7
  67. package/dist/{requests-in-flight-loader-ef8411a8.cjs.prod.js → requests-in-flight-loader-61257a90.cjs.prod.js} +7 -7
  68. package/dist/{requests-in-flight-loader-020da4f3.esm.js → requests-in-flight-loader-efda7302.esm.js} +7 -7
  69. package/dist/{service-page-project-switcher-893c4acc.cjs.prod.js → service-page-project-switcher-9310d282.cjs.prod.js} +1 -1
  70. package/dist/{service-page-project-switcher-550025cd.cjs.dev.js → service-page-project-switcher-ae1cd6fa.cjs.dev.js} +1 -1
  71. package/dist/{service-page-project-switcher-eec5d6be.esm.js → service-page-project-switcher-fb693a35.esm.js} +1 -1
  72. package/dist/{use-applications-menu-2fe3d465.cjs.dev.js → use-applications-menu-222b9106.cjs.prod.js} +40 -49
  73. package/dist/{use-applications-menu-0d3f4ffc.cjs.prod.js → use-applications-menu-302a0ac8.cjs.dev.js} +40 -49
  74. package/dist/{use-applications-menu-03759eab.esm.js → use-applications-menu-b583e9c3.esm.js} +38 -46
  75. package/dist/{user-settings-menu-bbc43c88.cjs.dev.js → user-settings-menu-7c17f227.cjs.dev.js} +22 -29
  76. package/dist/{user-settings-menu-3f86267c.cjs.prod.js → user-settings-menu-8bba9f50.cjs.prod.js} +22 -29
  77. package/dist/{user-settings-menu-36bea559.esm.js → user-settings-menu-ff4a6c63.esm.js} +22 -29
  78. package/dist/{version-tracker-7cce73f6.cjs.dev.js → version-tracker-54afa816.cjs.dev.js} +6 -6
  79. package/dist/{version-tracker-1ca99690.cjs.prod.js → version-tracker-5aea360a.cjs.prod.js} +6 -6
  80. package/dist/{version-tracker-610f66eb.esm.js → version-tracker-935e29c6.esm.js} +6 -6
  81. package/package.json +32 -31
  82. package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +1 -2
  83. package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +1 -2
  84. package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +1 -2
  85. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +21 -26
  86. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +21 -26
  87. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +16 -20
  88. package/dist/oidc-63e926e1.cjs.dev.js +0 -115
  89. package/dist/oidc-cfa56c46.cjs.prod.js +0 -115
  90. package/dist/oidc-ff53dfd3.esm.js +0 -100
@@ -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 './index-4e5248df.esm.js';
17
+ import { R as RouteCatchAll } from './index-b6081c20.esm.js';
18
18
  import { jsxs, jsx, Fragment } from '@emotion/react/jsx-runtime';
19
19
 
20
20
  function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -63,9 +63,9 @@ const ApplicationEntryPoint = props => {
63
63
  process.env.NODE_ENV === 'production' ? null : jsx(Redirect, {
64
64
  exact: true,
65
65
  from: "/:projectKey",
66
- to: "/:projectKey/".concat(entryPointUriPath)
66
+ to: `/:projectKey/${entryPointUriPath}`
67
67
  }), jsx(Route, {
68
- path: "/:projectKey/".concat(entryPointUriPath),
68
+ path: `/:projectKey/${entryPointUriPath}`,
69
69
  children: jsx(ApplicationRoute, _objectSpread({}, props))
70
70
  }), jsx(RouteCatchAll, {})]
71
71
  });
@@ -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 index = require('./index-055ebc13.cjs.prod.js');
19
+ var index = require('./index-91985d64.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 }; }
@@ -67,7 +67,7 @@ const ApplicationEntryPoint = props => {
67
67
  // For development, it's useful to redirect to the actual
68
68
  // application routes when you open the browser at http://localhost:3001
69
69
  null , jsxRuntime.jsx(reactRouterDom.Route, {
70
- path: "/:projectKey/".concat(entryPointUriPath),
70
+ path: `/:projectKey/${entryPointUriPath}`,
71
71
  children: jsxRuntime.jsx(ApplicationRoute, _objectSpread({}, props))
72
72
  }), jsxRuntime.jsx(index.RouteCatchAll, {})]
73
73
  });
@@ -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 index = require('./index-ca730730.cjs.dev.js');
19
+ var index = require('./index-b1476d46.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 }; }
@@ -78,9 +78,9 @@ const ApplicationEntryPoint = props => {
78
78
  process.env.NODE_ENV === 'production' ? null : jsxRuntime.jsx(reactRouterDom.Redirect, {
79
79
  exact: true,
80
80
  from: "/:projectKey",
81
- to: "/:projectKey/".concat(entryPointUriPath)
81
+ to: `/:projectKey/${entryPointUriPath}`
82
82
  }), jsxRuntime.jsx(reactRouterDom.Route, {
83
- path: "/:projectKey/".concat(entryPointUriPath),
83
+ path: `/:projectKey/${entryPointUriPath}`,
84
84
  children: jsxRuntime.jsx(ApplicationRoute, _objectSpread({}, props))
85
85
  }), jsxRuntime.jsx(index.RouteCatchAll, {})]
86
86
  });
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_commercetoolsFrontendApplicationShell = require('./index-8974720c.cjs.dev.js');
6
- var index = require('./index-ca730730.cjs.dev.js');
5
+ var dist_commercetoolsFrontendApplicationShell = require('./index-bd1c5108.cjs.dev.js');
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');
9
9
  var reactBroadcast = require('@flopflip/react-broadcast');
@@ -30,8 +30,7 @@ require('@commercetools-frontend/constants');
30
30
  require('@commercetools-frontend/i18n');
31
31
  require('@commercetools-frontend/react-notifications');
32
32
  require('@commercetools-frontend/sentry');
33
- require('./oidc-63e926e1.cjs.dev.js');
34
- require('@babel/runtime-corejs3/core-js-stable/instance/concat');
33
+ require('./oidc-6c6599a2.cjs.dev.js');
35
34
  require('@babel/runtime-corejs3/core-js-stable/instance/map');
36
35
  require('@babel/runtime-corejs3/core-js-stable/url');
37
36
  require('@commercetools-uikit/design-system');
@@ -41,13 +40,14 @@ require('@commercetools-uikit/flat-button');
41
40
  require('@commercetools-uikit/icons');
42
41
  require('./location-c835b8df.cjs.dev.js');
43
42
  require('@emotion/react/jsx-runtime');
44
- require('@babel/runtime-corejs3/helpers/taggedTemplateLiteral');
45
43
  require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
46
44
  require('memoize-one');
47
45
  require('react-select');
48
46
  require('@commercetools-uikit/accessible-hidden');
49
47
  require('@commercetools-uikit/select-input');
50
48
  require('@commercetools-uikit/text');
49
+ require('@commercetools-uikit/secondary-button');
50
+ require('@commercetools-uikit/tooltip');
51
51
  require('@commercetools-frontend/assets/images/ct-logo.svg');
52
52
  require('@commercetools-uikit/loading-spinner');
53
53
  require('@commercetools-frontend/browser-history');
@@ -98,9 +98,15 @@ exports.ApplicationShell = dist_commercetoolsFrontendApplicationShell.Applicatio
98
98
  exports.ApplicationShellProvider = dist_commercetoolsFrontendApplicationShell.ApplicationShellProvider;
99
99
  exports.ConfigureIntlProvider = dist_commercetoolsFrontendApplicationShell.ConfigureIntlProvider;
100
100
  exports.CustomViewShell = dist_commercetoolsFrontendApplicationShell.CustomViewShellWrapper;
101
+ exports.ErrorApologizer = dist_commercetoolsFrontendApplicationShell.ErrorApologizer;
102
+ exports.FetchUser = dist_commercetoolsFrontendApplicationShell.FetchUser;
101
103
  exports.InjectReducers = dist_commercetoolsFrontendApplicationShell.InjectReducers;
104
+ exports.RedirectToLogin = dist_commercetoolsFrontendApplicationShell.RedirectToLogin;
105
+ exports.RedirectToLogout = dist_commercetoolsFrontendApplicationShell.RedirectToLogout;
102
106
  exports.SetupFlopFlipProvider = dist_commercetoolsFrontendApplicationShell.SetupFlopFlipProvider;
103
107
  exports.SuspendedRoute = dist_commercetoolsFrontendApplicationShell.SuspendedRoute;
108
+ exports.getBrowserLocale = dist_commercetoolsFrontendApplicationShell.getBrowserLocale;
109
+ exports.getPreviousProjectKey = dist_commercetoolsFrontendApplicationShell.getPreviousProjectKey;
104
110
  exports.setupGlobalErrorListener = dist_commercetoolsFrontendApplicationShell.setupGlobalErrorListener;
105
111
  exports.useRoutesCreator = dist_commercetoolsFrontendApplicationShell.useRoutesCreator;
106
112
  exports.version = dist_commercetoolsFrontendApplicationShell.applicationShellVersion;
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_commercetoolsFrontendApplicationShell = require('./index-176564c3.cjs.prod.js');
6
- var index = require('./index-055ebc13.cjs.prod.js');
5
+ var dist_commercetoolsFrontendApplicationShell = require('./index-ff4b1f1e.cjs.prod.js');
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');
9
9
  var reactBroadcast = require('@flopflip/react-broadcast');
@@ -30,8 +30,7 @@ require('@commercetools-frontend/constants');
30
30
  require('@commercetools-frontend/i18n');
31
31
  require('@commercetools-frontend/react-notifications');
32
32
  require('@commercetools-frontend/sentry');
33
- require('./oidc-cfa56c46.cjs.prod.js');
34
- require('@babel/runtime-corejs3/core-js-stable/instance/concat');
33
+ require('./oidc-d02d4ab8.cjs.prod.js');
35
34
  require('@babel/runtime-corejs3/core-js-stable/instance/map');
36
35
  require('@babel/runtime-corejs3/core-js-stable/url');
37
36
  require('@commercetools-uikit/design-system');
@@ -41,13 +40,14 @@ require('@commercetools-uikit/flat-button');
41
40
  require('@commercetools-uikit/icons');
42
41
  require('./location-537e0660.cjs.prod.js');
43
42
  require('@emotion/react/jsx-runtime');
44
- require('@babel/runtime-corejs3/helpers/taggedTemplateLiteral');
45
43
  require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
46
44
  require('memoize-one');
47
45
  require('react-select');
48
46
  require('@commercetools-uikit/accessible-hidden');
49
47
  require('@commercetools-uikit/select-input');
50
48
  require('@commercetools-uikit/text');
49
+ require('@commercetools-uikit/secondary-button');
50
+ require('@commercetools-uikit/tooltip');
51
51
  require('@commercetools-frontend/assets/images/ct-logo.svg');
52
52
  require('@commercetools-uikit/loading-spinner');
53
53
  require('@commercetools-frontend/browser-history');
@@ -98,9 +98,15 @@ exports.ApplicationShell = dist_commercetoolsFrontendApplicationShell.Applicatio
98
98
  exports.ApplicationShellProvider = dist_commercetoolsFrontendApplicationShell.ApplicationShellProvider;
99
99
  exports.ConfigureIntlProvider = dist_commercetoolsFrontendApplicationShell.ConfigureIntlProvider;
100
100
  exports.CustomViewShell = dist_commercetoolsFrontendApplicationShell.CustomViewShellWrapper;
101
+ exports.ErrorApologizer = dist_commercetoolsFrontendApplicationShell.ErrorApologizer;
102
+ exports.FetchUser = dist_commercetoolsFrontendApplicationShell.FetchUser;
101
103
  exports.InjectReducers = dist_commercetoolsFrontendApplicationShell.InjectReducers;
104
+ exports.RedirectToLogin = dist_commercetoolsFrontendApplicationShell.RedirectToLogin;
105
+ exports.RedirectToLogout = dist_commercetoolsFrontendApplicationShell.RedirectToLogout;
102
106
  exports.SetupFlopFlipProvider = dist_commercetoolsFrontendApplicationShell.SetupFlopFlipProvider;
103
107
  exports.SuspendedRoute = dist_commercetoolsFrontendApplicationShell.SuspendedRoute;
108
+ exports.getBrowserLocale = dist_commercetoolsFrontendApplicationShell.getBrowserLocale;
109
+ exports.getPreviousProjectKey = dist_commercetoolsFrontendApplicationShell.getPreviousProjectKey;
104
110
  exports.setupGlobalErrorListener = dist_commercetoolsFrontendApplicationShell.setupGlobalErrorListener;
105
111
  exports.useRoutesCreator = dist_commercetoolsFrontendApplicationShell.useRoutesCreator;
106
112
  exports.version = dist_commercetoolsFrontendApplicationShell.applicationShellVersion;
@@ -1,5 +1,5 @@
1
- export { g as ApplicationPageTitle, A as ApplicationShell, f as ApplicationShellProvider, C as ConfigureIntlProvider, h as CustomViewShell, I as InjectReducers, S as SetupFlopFlipProvider, i as SuspendedRoute, s as setupGlobalErrorListener, u as useRoutesCreator, d as version } from './index-ca28cb0d.esm.js';
2
- export { R as RouteCatchAll, a as applyDefaultMiddlewares } from './index-4e5248df.esm.js';
1
+ export { h as ApplicationPageTitle, A as ApplicationShell, f as ApplicationShellProvider, C as ConfigureIntlProvider, i as CustomViewShell, k as ErrorApologizer, j as FetchUser, I as InjectReducers, R as RedirectToLogin, l as RedirectToLogout, S as SetupFlopFlipProvider, m as SuspendedRoute, g as getBrowserLocale, n as getPreviousProjectKey, s as setupGlobalErrorListener, u as useRoutesCreator, d as version } from './index-9475648a.esm.js';
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';
5
5
  export { ConfigureFlopFlip, ReconfigureFlopFlip, ToggleFeature, branchOnFeatureToggle, injectFeatureToggle, injectFeatureToggles, useAdapterReconfiguration, useAdapterStatus, useFeatureToggle, useFeatureToggles, useFlagVariation, useFlagVariations } from '@flopflip/react-broadcast';
@@ -26,8 +26,7 @@ import '@commercetools-frontend/constants';
26
26
  import '@commercetools-frontend/i18n';
27
27
  import '@commercetools-frontend/react-notifications';
28
28
  import '@commercetools-frontend/sentry';
29
- import './oidc-ff53dfd3.esm.js';
30
- import '@babel/runtime-corejs3/core-js-stable/instance/concat';
29
+ import './oidc-8275c04f.esm.js';
31
30
  import '@babel/runtime-corejs3/core-js-stable/instance/map';
32
31
  import '@babel/runtime-corejs3/core-js-stable/url';
33
32
  import '@commercetools-uikit/design-system';
@@ -37,13 +36,14 @@ import '@commercetools-uikit/flat-button';
37
36
  import '@commercetools-uikit/icons';
38
37
  import './location-f21dbc25.esm.js';
39
38
  import '@emotion/react/jsx-runtime';
40
- import '@babel/runtime-corejs3/helpers/taggedTemplateLiteral';
41
39
  import '@babel/runtime-corejs3/helpers/objectWithoutProperties';
42
40
  import 'memoize-one';
43
41
  import 'react-select';
44
42
  import '@commercetools-uikit/accessible-hidden';
45
43
  import '@commercetools-uikit/select-input';
46
44
  import '@commercetools-uikit/text';
45
+ import '@commercetools-uikit/secondary-button';
46
+ import '@commercetools-uikit/tooltip';
47
47
  import '@commercetools-frontend/assets/images/ct-logo.svg';
48
48
  import '@commercetools-uikit/loading-spinner';
49
49
  import '@commercetools-frontend/browser-history';
@@ -3,7 +3,6 @@
3
3
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
4
4
  var _pt = require('prop-types');
5
5
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
6
- var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
7
6
  var react = require('react');
8
7
  var reactRouterDom = require('react-router-dom');
9
8
  var applicationComponents = require('@commercetools-frontend/application-components');
@@ -12,9 +11,9 @@ var Constraints = require('@commercetools-uikit/constraints');
12
11
  var PrimaryButton = require('@commercetools-uikit/primary-button');
13
12
  var Spacings = require('@commercetools-uikit/spacings');
14
13
  var Text = require('@commercetools-uikit/text');
15
- var dist_commercetoolsFrontendApplicationShell = require('./index-8974720c.cjs.dev.js');
14
+ var dist_commercetoolsFrontendApplicationShell = require('./index-bd1c5108.cjs.dev.js');
16
15
  var jsxRuntime = require('@emotion/react/jsx-runtime');
17
- require('./index-ca730730.cjs.dev.js');
16
+ require('./index-b1476d46.cjs.dev.js');
18
17
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
19
18
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
20
19
  require('@babel/runtime-corejs3/core-js-stable/instance/filter');
@@ -47,19 +46,21 @@ require('@babel/runtime-corejs3/core-js-stable/instance/find');
47
46
  require('@babel/runtime-corejs3/core-js-stable/array/is-array');
48
47
  require('@emotion/react');
49
48
  require('@commercetools-frontend/i18n');
50
- require('./oidc-63e926e1.cjs.dev.js');
49
+ require('./oidc-6c6599a2.cjs.dev.js');
51
50
  require('@babel/runtime-corejs3/core-js-stable/url');
52
51
  require('@commercetools-uikit/design-system');
53
52
  require('react-intl');
54
53
  require('@commercetools-uikit/flat-button');
55
54
  require('@commercetools-uikit/icons');
56
55
  require('./location-c835b8df.cjs.dev.js');
57
- require('@babel/runtime-corejs3/helpers/taggedTemplateLiteral');
58
56
  require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
59
57
  require('memoize-one');
60
58
  require('react-select');
61
59
  require('@commercetools-uikit/accessible-hidden');
62
60
  require('@commercetools-uikit/select-input');
61
+ require('@flopflip/react-broadcast');
62
+ require('@commercetools-uikit/secondary-button');
63
+ require('@commercetools-uikit/tooltip');
63
64
  require('@commercetools-frontend/assets/images/ct-logo.svg');
64
65
  require('@commercetools-uikit/loading-spinner');
65
66
  require('@commercetools-frontend/l10n');
@@ -75,7 +76,6 @@ require('@apollo/client/react');
75
76
  require('@flopflip/combine-adapters');
76
77
  require('@flopflip/http-adapter');
77
78
  require('@flopflip/launchdarkly-adapter');
78
- require('@flopflip/react-broadcast');
79
79
  require('@flopflip/types');
80
80
  require('react-redux');
81
81
  require('lodash/upperFirst');
@@ -91,7 +91,6 @@ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e };
91
91
 
92
92
  var _pt__default = /*#__PURE__*/_interopDefault(_pt);
93
93
  var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
94
- var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
95
94
  var history__default = /*#__PURE__*/_interopDefault(history);
96
95
  var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
97
96
  var PrimaryButton__default = /*#__PURE__*/_interopDefault(PrimaryButton);
@@ -99,13 +98,13 @@ var Spacings__default = /*#__PURE__*/_interopDefault(Spacings);
99
98
  var Text__default = /*#__PURE__*/_interopDefault(Text);
100
99
 
101
100
  const LocalCustomViewLauncher = props => {
102
- var _props$environment$__, _context, _customViewConfig$typ, _props$environment$__2;
101
+ var _context;
103
102
  const _useState = react.useState(false),
104
103
  _useState2 = _slicedToArray(_useState, 2),
105
104
  shouldRenderCustomView = _useState2[0],
106
105
  setShouldRenderCustomView = _useState2[1];
107
106
  // We expect this in development to be defined.
108
- const customViewConfig = (_props$environment$__ = props.environment.__DEVELOPMENT__) === null || _props$environment$__ === void 0 ? void 0 : _props$environment$__.customViewConfig;
107
+ const customViewConfig = props.environment.__DEVELOPMENT__?.customViewConfig;
109
108
  return jsxRuntime.jsx("main", {
110
109
  children: jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
111
110
  max: "scale",
@@ -133,10 +132,7 @@ const LocalCustomViewLauncher = props => {
133
132
  })]
134
133
  }), jsxRuntime.jsxs("li", {
135
134
  children: ["Custom View permissions:", ' ', jsxRuntime.jsx("b", {
136
- children: _mapInstanceProperty__default["default"](_context = customViewConfig.permissions).call(_context, permission => {
137
- var _context2;
138
- return _concatInstanceProperty__default["default"](_context2 = "(".concat(permission.name, ": ")).call(_context2, permission.oAuthScopes.join(', '), ")");
139
- }).join(', ')
135
+ children: _mapInstanceProperty__default["default"](_context = customViewConfig.permissions).call(_context, permission => `(${permission.name}: ${permission.oAuthScopes.join(', ')})`).join(', ')
140
136
  })]
141
137
  }), jsxRuntime.jsxs("li", {
142
138
  children: ["Custom View locators:", ' ', jsxRuntime.jsx("b", {
@@ -148,7 +144,7 @@ const LocalCustomViewLauncher = props => {
148
144
  })]
149
145
  }), jsxRuntime.jsxs("li", {
150
146
  children: ["Custom View size:", ' ', jsxRuntime.jsx("b", {
151
- children: (_customViewConfig$typ = customViewConfig.typeSettings) === null || _customViewConfig$typ === void 0 ? void 0 : _customViewConfig$typ.size
147
+ children: customViewConfig.typeSettings?.size
152
148
  })]
153
149
  })]
154
150
  })
@@ -163,7 +159,7 @@ const LocalCustomViewLauncher = props => {
163
159
  })]
164
160
  }), shouldRenderCustomView && jsxRuntime.jsx(applicationComponents.CustomViewLoader, {
165
161
  customView: customViewConfig,
166
- hostUrl: (_props$environment$__2 = props.environment.__DEVELOPMENT__) === null || _props$environment$__2 === void 0 ? void 0 : _props$environment$__2.customViewHostUrl,
162
+ hostUrl: props.environment.__DEVELOPMENT__?.customViewHostUrl,
167
163
  onClose: () => setShouldRenderCustomView(false)
168
164
  })]
169
165
  })
@@ -172,7 +168,7 @@ const LocalCustomViewLauncher = props => {
172
168
  };
173
169
  const SimulatedIframeRoute = props => {
174
170
  const routeMatch = reactRouterDom.useRouteMatch();
175
- console.info("\u2139\uFE0F Rendering a Custom View as it would be rendered within an iframe", routeMatch.url);
171
+ console.info(`ℹ️ Rendering a Custom View as it would be rendered within an iframe`, routeMatch.url);
176
172
  return jsxRuntime.jsx(jsxRuntime.Fragment, {
177
173
  children: props.children
178
174
  });
@@ -1,7 +1,6 @@
1
1
  import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
2
2
  import _pt from 'prop-types';
3
3
  import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
4
- import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
5
4
  import { useState } from 'react';
6
5
  import { Router, Switch, Route, useRouteMatch } from 'react-router-dom';
7
6
  import { CustomViewLoader } from '@commercetools-frontend/application-components';
@@ -10,9 +9,9 @@ import Constraints from '@commercetools-uikit/constraints';
10
9
  import PrimaryButton from '@commercetools-uikit/primary-button';
11
10
  import Spacings from '@commercetools-uikit/spacings';
12
11
  import Text from '@commercetools-uikit/text';
13
- import { A as ApplicationShell } from './index-ca28cb0d.esm.js';
12
+ import { A as ApplicationShell } from './index-9475648a.esm.js';
14
13
  import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
15
- import './index-4e5248df.esm.js';
14
+ import './index-b6081c20.esm.js';
16
15
  import '@babel/runtime-corejs3/core-js-stable/object/keys';
17
16
  import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
18
17
  import '@babel/runtime-corejs3/core-js-stable/instance/filter';
@@ -45,19 +44,21 @@ import '@babel/runtime-corejs3/core-js-stable/instance/find';
45
44
  import '@babel/runtime-corejs3/core-js-stable/array/is-array';
46
45
  import '@emotion/react';
47
46
  import '@commercetools-frontend/i18n';
48
- import './oidc-ff53dfd3.esm.js';
47
+ import './oidc-8275c04f.esm.js';
49
48
  import '@babel/runtime-corejs3/core-js-stable/url';
50
49
  import '@commercetools-uikit/design-system';
51
50
  import 'react-intl';
52
51
  import '@commercetools-uikit/flat-button';
53
52
  import '@commercetools-uikit/icons';
54
53
  import './location-f21dbc25.esm.js';
55
- import '@babel/runtime-corejs3/helpers/taggedTemplateLiteral';
56
54
  import '@babel/runtime-corejs3/helpers/objectWithoutProperties';
57
55
  import 'memoize-one';
58
56
  import 'react-select';
59
57
  import '@commercetools-uikit/accessible-hidden';
60
58
  import '@commercetools-uikit/select-input';
59
+ import '@flopflip/react-broadcast';
60
+ import '@commercetools-uikit/secondary-button';
61
+ import '@commercetools-uikit/tooltip';
61
62
  import '@commercetools-frontend/assets/images/ct-logo.svg';
62
63
  import '@commercetools-uikit/loading-spinner';
63
64
  import '@commercetools-frontend/l10n';
@@ -73,7 +74,6 @@ import '@apollo/client/react';
73
74
  import '@flopflip/combine-adapters';
74
75
  import '@flopflip/http-adapter';
75
76
  import '@flopflip/launchdarkly-adapter';
76
- import '@flopflip/react-broadcast';
77
77
  import '@flopflip/types';
78
78
  import 'react-redux';
79
79
  import 'lodash/upperFirst';
@@ -86,13 +86,13 @@ import '@babel/runtime-corejs3/core-js-stable/instance/some';
86
86
  import '@commercetools-frontend/actions-global';
87
87
 
88
88
  const LocalCustomViewLauncher = props => {
89
- var _props$environment$__, _context, _customViewConfig$typ, _props$environment$__2;
89
+ var _context;
90
90
  const _useState = useState(false),
91
91
  _useState2 = _slicedToArray(_useState, 2),
92
92
  shouldRenderCustomView = _useState2[0],
93
93
  setShouldRenderCustomView = _useState2[1];
94
94
  // We expect this in development to be defined.
95
- const customViewConfig = (_props$environment$__ = props.environment.__DEVELOPMENT__) === null || _props$environment$__ === void 0 ? void 0 : _props$environment$__.customViewConfig;
95
+ const customViewConfig = props.environment.__DEVELOPMENT__?.customViewConfig;
96
96
  return jsx("main", {
97
97
  children: jsx(Constraints.Horizontal, {
98
98
  max: "scale",
@@ -120,10 +120,7 @@ const LocalCustomViewLauncher = props => {
120
120
  })]
121
121
  }), jsxs("li", {
122
122
  children: ["Custom View permissions:", ' ', jsx("b", {
123
- children: _mapInstanceProperty(_context = customViewConfig.permissions).call(_context, permission => {
124
- var _context2;
125
- return _concatInstanceProperty(_context2 = "(".concat(permission.name, ": ")).call(_context2, permission.oAuthScopes.join(', '), ")");
126
- }).join(', ')
123
+ children: _mapInstanceProperty(_context = customViewConfig.permissions).call(_context, permission => `(${permission.name}: ${permission.oAuthScopes.join(', ')})`).join(', ')
127
124
  })]
128
125
  }), jsxs("li", {
129
126
  children: ["Custom View locators:", ' ', jsx("b", {
@@ -135,7 +132,7 @@ const LocalCustomViewLauncher = props => {
135
132
  })]
136
133
  }), jsxs("li", {
137
134
  children: ["Custom View size:", ' ', jsx("b", {
138
- children: (_customViewConfig$typ = customViewConfig.typeSettings) === null || _customViewConfig$typ === void 0 ? void 0 : _customViewConfig$typ.size
135
+ children: customViewConfig.typeSettings?.size
139
136
  })]
140
137
  })]
141
138
  })
@@ -150,7 +147,7 @@ const LocalCustomViewLauncher = props => {
150
147
  })]
151
148
  }), shouldRenderCustomView && jsx(CustomViewLoader, {
152
149
  customView: customViewConfig,
153
- hostUrl: (_props$environment$__2 = props.environment.__DEVELOPMENT__) === null || _props$environment$__2 === void 0 ? void 0 : _props$environment$__2.customViewHostUrl,
150
+ hostUrl: props.environment.__DEVELOPMENT__?.customViewHostUrl,
154
151
  onClose: () => setShouldRenderCustomView(false)
155
152
  })]
156
153
  })
@@ -159,7 +156,7 @@ const LocalCustomViewLauncher = props => {
159
156
  };
160
157
  const SimulatedIframeRoute = props => {
161
158
  const routeMatch = useRouteMatch();
162
- console.info("\u2139\uFE0F Rendering a Custom View as it would be rendered within an iframe", routeMatch.url);
159
+ console.info(`ℹ️ Rendering a Custom View as it would be rendered within an iframe`, routeMatch.url);
163
160
  return jsx(Fragment, {
164
161
  children: props.children
165
162
  });
@@ -3,7 +3,6 @@
3
3
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
4
4
  require('prop-types');
5
5
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
6
- var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
7
6
  var react = require('react');
8
7
  var reactRouterDom = require('react-router-dom');
9
8
  var applicationComponents = require('@commercetools-frontend/application-components');
@@ -12,9 +11,9 @@ var Constraints = require('@commercetools-uikit/constraints');
12
11
  var PrimaryButton = require('@commercetools-uikit/primary-button');
13
12
  var Spacings = require('@commercetools-uikit/spacings');
14
13
  var Text = require('@commercetools-uikit/text');
15
- var dist_commercetoolsFrontendApplicationShell = require('./index-176564c3.cjs.prod.js');
14
+ var dist_commercetoolsFrontendApplicationShell = require('./index-ff4b1f1e.cjs.prod.js');
16
15
  var jsxRuntime = require('@emotion/react/jsx-runtime');
17
- require('./index-055ebc13.cjs.prod.js');
16
+ require('./index-91985d64.cjs.prod.js');
18
17
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
19
18
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
20
19
  require('@babel/runtime-corejs3/core-js-stable/instance/filter');
@@ -47,19 +46,21 @@ require('@babel/runtime-corejs3/core-js-stable/instance/find');
47
46
  require('@babel/runtime-corejs3/core-js-stable/array/is-array');
48
47
  require('@emotion/react');
49
48
  require('@commercetools-frontend/i18n');
50
- require('./oidc-cfa56c46.cjs.prod.js');
49
+ require('./oidc-d02d4ab8.cjs.prod.js');
51
50
  require('@babel/runtime-corejs3/core-js-stable/url');
52
51
  require('@commercetools-uikit/design-system');
53
52
  require('react-intl');
54
53
  require('@commercetools-uikit/flat-button');
55
54
  require('@commercetools-uikit/icons');
56
55
  require('./location-537e0660.cjs.prod.js');
57
- require('@babel/runtime-corejs3/helpers/taggedTemplateLiteral');
58
56
  require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
59
57
  require('memoize-one');
60
58
  require('react-select');
61
59
  require('@commercetools-uikit/accessible-hidden');
62
60
  require('@commercetools-uikit/select-input');
61
+ require('@flopflip/react-broadcast');
62
+ require('@commercetools-uikit/secondary-button');
63
+ require('@commercetools-uikit/tooltip');
63
64
  require('@commercetools-frontend/assets/images/ct-logo.svg');
64
65
  require('@commercetools-uikit/loading-spinner');
65
66
  require('@commercetools-frontend/l10n');
@@ -75,7 +76,6 @@ require('@apollo/client/react');
75
76
  require('@flopflip/combine-adapters');
76
77
  require('@flopflip/http-adapter');
77
78
  require('@flopflip/launchdarkly-adapter');
78
- require('@flopflip/react-broadcast');
79
79
  require('@flopflip/types');
80
80
  require('react-redux');
81
81
  require('lodash/upperFirst');
@@ -90,7 +90,6 @@ require('@commercetools-frontend/actions-global');
90
90
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
91
91
 
92
92
  var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
93
- var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
94
93
  var history__default = /*#__PURE__*/_interopDefault(history);
95
94
  var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
96
95
  var PrimaryButton__default = /*#__PURE__*/_interopDefault(PrimaryButton);
@@ -98,13 +97,13 @@ var Spacings__default = /*#__PURE__*/_interopDefault(Spacings);
98
97
  var Text__default = /*#__PURE__*/_interopDefault(Text);
99
98
 
100
99
  const LocalCustomViewLauncher = props => {
101
- var _props$environment$__, _context, _customViewConfig$typ, _props$environment$__2;
100
+ var _context;
102
101
  const _useState = react.useState(false),
103
102
  _useState2 = _slicedToArray(_useState, 2),
104
103
  shouldRenderCustomView = _useState2[0],
105
104
  setShouldRenderCustomView = _useState2[1];
106
105
  // We expect this in development to be defined.
107
- const customViewConfig = (_props$environment$__ = props.environment.__DEVELOPMENT__) === null || _props$environment$__ === void 0 ? void 0 : _props$environment$__.customViewConfig;
106
+ const customViewConfig = props.environment.__DEVELOPMENT__?.customViewConfig;
108
107
  return jsxRuntime.jsx("main", {
109
108
  children: jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
110
109
  max: "scale",
@@ -132,10 +131,7 @@ const LocalCustomViewLauncher = props => {
132
131
  })]
133
132
  }), jsxRuntime.jsxs("li", {
134
133
  children: ["Custom View permissions:", ' ', jsxRuntime.jsx("b", {
135
- children: _mapInstanceProperty__default["default"](_context = customViewConfig.permissions).call(_context, permission => {
136
- var _context2;
137
- return _concatInstanceProperty__default["default"](_context2 = "(".concat(permission.name, ": ")).call(_context2, permission.oAuthScopes.join(', '), ")");
138
- }).join(', ')
134
+ children: _mapInstanceProperty__default["default"](_context = customViewConfig.permissions).call(_context, permission => `(${permission.name}: ${permission.oAuthScopes.join(', ')})`).join(', ')
139
135
  })]
140
136
  }), jsxRuntime.jsxs("li", {
141
137
  children: ["Custom View locators:", ' ', jsxRuntime.jsx("b", {
@@ -147,7 +143,7 @@ const LocalCustomViewLauncher = props => {
147
143
  })]
148
144
  }), jsxRuntime.jsxs("li", {
149
145
  children: ["Custom View size:", ' ', jsxRuntime.jsx("b", {
150
- children: (_customViewConfig$typ = customViewConfig.typeSettings) === null || _customViewConfig$typ === void 0 ? void 0 : _customViewConfig$typ.size
146
+ children: customViewConfig.typeSettings?.size
151
147
  })]
152
148
  })]
153
149
  })
@@ -162,7 +158,7 @@ const LocalCustomViewLauncher = props => {
162
158
  })]
163
159
  }), shouldRenderCustomView && jsxRuntime.jsx(applicationComponents.CustomViewLoader, {
164
160
  customView: customViewConfig,
165
- hostUrl: (_props$environment$__2 = props.environment.__DEVELOPMENT__) === null || _props$environment$__2 === void 0 ? void 0 : _props$environment$__2.customViewHostUrl,
161
+ hostUrl: props.environment.__DEVELOPMENT__?.customViewHostUrl,
166
162
  onClose: () => setShouldRenderCustomView(false)
167
163
  })]
168
164
  })
@@ -171,7 +167,7 @@ const LocalCustomViewLauncher = props => {
171
167
  };
172
168
  const SimulatedIframeRoute = props => {
173
169
  const routeMatch = reactRouterDom.useRouteMatch();
174
- console.info("\u2139\uFE0F Rendering a Custom View as it would be rendered within an iframe", routeMatch.url);
170
+ console.info(`ℹ️ Rendering a Custom View as it would be rendered within an iframe`, routeMatch.url);
175
171
  return jsxRuntime.jsx(jsxRuntime.Fragment, {
176
172
  children: props.children
177
173
  });
@@ -1,4 +1,20 @@
1
1
  type TApplicationPageTitleProps = {
2
+ /**
3
+ * Prepend additional title parts to the default page title.
4
+ * The parts are concatenated with a `-` separator and might be truncated
5
+ * in the middle if each one exceeds 24 characters length.
6
+ *
7
+ * The default page title has always the format:
8
+ * <application_identifier> - <project_key> - Merchant Center
9
+ *
10
+ * Overwriting the default page title is recommended in detail pages
11
+ * where there is a human-readable resource identifier, for example a product name.
12
+ *
13
+ * @example
14
+ *
15
+ * <ApplicationPageTitle additionalParts={['T-Shirt red']} />
16
+ * // T-Shirt red - Products - my-shop - Merchant Center
17
+ */
2
18
  additionalParts: string[];
3
19
  };
4
20
  declare const ApplicationPageTitle: {
@@ -7,6 +7,23 @@ import type { TApplicationContext } from '@commercetools-frontend/application-sh
7
7
  import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
8
8
  type TApplicationShellProps = {
9
9
  apolloClient?: ApolloClient<NormalizedCacheObject>;
10
+ /**
11
+ * NOTE: the environment value passed here is usually `window.app`.
12
+ * This object usually contains values as string and will be "transformed"
13
+ * to a real object with proper scalar values in the ApplicationShell.
14
+ * To keep the types simple, we assign here the already coerced type object.
15
+ * This should be fine, as consumers of the application can use the
16
+ * `ApplicationWindow` type from the `@commercetools-frontend/constants` package
17
+ * to type cast it:
18
+ *
19
+ * ```tsx
20
+ * import { ApplicationWindow } from '@commercetools-frontend/constants';
21
+ *
22
+ * declare let window: ApplicationWindow;
23
+ *
24
+ * <ApplicationShell environment={window.app} />
25
+ * ```
26
+ */
10
27
  environment: TApplicationContext<{}>['environment'];
11
28
  featureFlags?: TFlags;
12
29
  defaultFeatureFlags?: TFlags;
@@ -14,6 +14,10 @@ export declare const MainContainer: import("@emotion/styled").StyledComponent<{
14
14
  theme?: import("@emotion/react").Theme | undefined;
15
15
  as?: import("react").ElementType<any> | undefined;
16
16
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
17
+ /**
18
+ * This component is rendered whenever the user is considered "authenticated"
19
+ * and contains the "restricted" application part.
20
+ */
17
21
  export declare const ApplicationShellAuthenticated: {
18
22
  (props: TApplicationShellAuthenticationProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
19
23
  displayName: string;
@@ -0,0 +1 @@
1
+ export { default } from './workspaces-navigation-button';
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ tooltip: {
3
+ id: string;
4
+ description: string;
5
+ defaultMessage: string;
6
+ };
7
+ };
8
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export declare const FEATURE_NAME = "Workspaces";
2
+ declare const WorkspacesNavigationButton: () => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
3
+ export default WorkspacesNavigationButton;
@@ -11,6 +11,9 @@ export type TEnhancedStore = Store & {
11
11
  id: string;
12
12
  }) => void;
13
13
  };
14
+ /**
15
+ * @deprecated: This function should not be used directly anymore.
16
+ */
14
17
  export declare const applyDefaultMiddlewares: (...middlewares: Middleware[]) => StoreEnhancer<{
15
18
  dispatch: unknown;
16
19
  }, {}>;
@@ -2,6 +2,9 @@ import type { History } from 'history';
2
2
  import { useLocation } from 'react-router-dom';
3
3
  export interface RouteParams extends Record<string, string> {
4
4
  }
5
+ /**
6
+ * The route path to match. Usually it starts with `/:projectKey/my-entry-point`.
7
+ */
5
8
  export type RoutePath = string;
6
9
  export type TMakeRouteOptions<Params extends RouteParams> = {
7
10
  params: Partial<Params>;