@commercetools-frontend/application-shell 21.3.3 → 21.4.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 (47) hide show
  1. package/dist/{application-entry-point-0178aabe.cjs.prod.js → application-entry-point-3208c4f3.cjs.prod.js} +2 -2
  2. package/dist/{application-entry-point-d60d4795.cjs.dev.js → application-entry-point-93c319cd.cjs.dev.js} +2 -2
  3. package/dist/{application-entry-point-df5ce5b0.esm.js → application-entry-point-f4bfa28c.esm.js} +2 -2
  4. package/dist/commercetools-frontend-application-shell.cjs.dev.js +5 -4
  5. package/dist/commercetools-frontend-application-shell.cjs.prod.js +5 -4
  6. package/dist/commercetools-frontend-application-shell.esm.js +4 -4
  7. package/dist/{constants-90b58549.cjs.prod.js → constants-0b2cadbb.cjs.dev.js} +5 -3
  8. package/dist/{constants-8c9773dd.esm.js → constants-6f8e0d87.esm.js} +5 -3
  9. package/dist/{constants-20e45958.cjs.dev.js → constants-9710f983.cjs.prod.js} +5 -3
  10. package/dist/declarations/src/components/application-shell/application-shell.d.ts +1 -1
  11. package/dist/declarations/src/components/navbar/tracking-events.d.ts +18 -0
  12. package/dist/declarations/src/components/suspended-route/index.d.ts +1 -0
  13. package/dist/declarations/src/components/suspended-route/suspended-route.d.ts +6 -0
  14. package/dist/declarations/src/constants.d.ts +3 -1
  15. package/dist/declarations/src/index.d.ts +1 -0
  16. package/dist/declarations/src/types/generated/ctp.d.ts +3024 -2558
  17. package/dist/{index-76ebb56d.cjs.prod.js → index-3b27087b.cjs.prod.js} +162 -101
  18. package/dist/{index-464be964.esm.js → index-6ca37a9e.esm.js} +174 -113
  19. package/dist/{index-dc0c3748.cjs.dev.js → index-7811a80d.cjs.dev.js} +174 -112
  20. package/dist/{oidc-cc8438b0.cjs.dev.js → oidc-137df8f6.cjs.dev.js} +1 -1
  21. package/dist/{oidc-54c28ae8.esm.js → oidc-ad6058e2.esm.js} +1 -1
  22. package/dist/{oidc-8ad956b5.cjs.prod.js → oidc-ebdbe61e.cjs.prod.js} +1 -1
  23. package/dist/{project-expired-04855cdb.esm.js → project-expired-1e1b8bb7.esm.js} +5 -5
  24. package/dist/{project-expired-38ca65c4.cjs.prod.js → project-expired-4fb1fa21.cjs.prod.js} +5 -5
  25. package/dist/{project-expired-1f02eb42.cjs.dev.js → project-expired-9aa9bd32.cjs.dev.js} +5 -5
  26. package/dist/{project-not-found-2640d731.esm.js → project-not-found-2c643ccf.esm.js} +5 -5
  27. package/dist/{project-not-found-ba2874ea.cjs.dev.js → project-not-found-593cb8bc.cjs.dev.js} +5 -5
  28. package/dist/{project-not-found-b3dc61be.cjs.prod.js → project-not-found-f7c72bc2.cjs.prod.js} +5 -5
  29. package/dist/{project-not-initialized-f77240ae.cjs.dev.js → project-not-initialized-663c6f30.cjs.dev.js} +5 -5
  30. package/dist/{project-not-initialized-1341a8ab.esm.js → project-not-initialized-9e1a375f.esm.js} +5 -5
  31. package/dist/{project-not-initialized-0f274fc5.cjs.prod.js → project-not-initialized-ddd60aea.cjs.prod.js} +5 -5
  32. package/dist/{project-suspended-f5ab439d.cjs.prod.js → project-suspended-79652662.cjs.prod.js} +5 -5
  33. package/dist/{project-suspended-c455d767.esm.js → project-suspended-d3bf3491.esm.js} +5 -5
  34. package/dist/{project-suspended-1bc5aaaf.cjs.dev.js → project-suspended-ea2273ff.cjs.dev.js} +5 -5
  35. package/dist/{quick-access-123514ab.cjs.prod.js → quick-access-49a9a234.cjs.prod.js} +4 -4
  36. package/dist/{quick-access-63b805ff.cjs.dev.js → quick-access-95a72c8e.cjs.dev.js} +4 -4
  37. package/dist/{quick-access-f000a045.esm.js → quick-access-e95191d5.esm.js} +4 -4
  38. package/dist/{service-page-project-switcher-2874e91c.esm.js → service-page-project-switcher-58fbc0e9.esm.js} +1 -1
  39. package/dist/{service-page-project-switcher-a4125c47.cjs.dev.js → service-page-project-switcher-cd92c326.cjs.dev.js} +1 -1
  40. package/dist/{service-page-project-switcher-0488bf1e.cjs.prod.js → service-page-project-switcher-f77c4359.cjs.prod.js} +1 -1
  41. package/package.json +36 -36
  42. package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +2 -2
  43. package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +2 -2
  44. package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +2 -2
  45. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +2 -2
  46. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +2 -2
  47. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +2 -2
@@ -22,7 +22,7 @@ var omitEmpty = require('omit-empty-es');
22
22
  var notifications = require('@commercetools-frontend/notifications');
23
23
  var sdk = require('@commercetools-frontend/sdk');
24
24
  var constants = require('@commercetools-frontend/constants');
25
- var constants$1 = require('./constants-90b58549.cjs.prod.js');
25
+ var constants$1 = require('./constants-9710f983.cjs.prod.js');
26
26
  var reactNotifications = require('@commercetools-frontend/react-notifications');
27
27
  var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
28
28
  var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
@@ -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.3.3";
103
+ var version = "21.4.0";
104
104
 
105
105
  var isAddNotificationErrorAction = function isAddNotificationErrorAction(action) {
106
106
  var errorAction = action;
@@ -22,7 +22,7 @@ var omitEmpty = require('omit-empty-es');
22
22
  var notifications = require('@commercetools-frontend/notifications');
23
23
  var sdk = require('@commercetools-frontend/sdk');
24
24
  var constants = require('@commercetools-frontend/constants');
25
- var constants$1 = require('./constants-20e45958.cjs.dev.js');
25
+ var constants$1 = require('./constants-0b2cadbb.cjs.dev.js');
26
26
  var reactNotifications = require('@commercetools-frontend/react-notifications');
27
27
  var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
28
28
  var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
@@ -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.3.3";
104
+ var version = "21.4.0";
105
105
 
106
106
  var isAddNotificationErrorAction = function isAddNotificationErrorAction(action) {
107
107
  var errorAction = action;
@@ -20,7 +20,7 @@ import omitEmpty from 'omit-empty-es';
20
20
  import { ADD_NOTIFICATION, removeNotification, REMOVE_NOTIFICATION, reducer, middleware } from '@commercetools-frontend/notifications';
21
21
  import { createMiddleware } from '@commercetools-frontend/sdk';
22
22
  import { HIDE_ALL_PAGE_NOTIFICATIONS, NOTIFICATION_KINDS_PAGE, SHOW_LOADING, HIDE_LOADING, GRAPHQL_TARGETS, STATUS_CODES, LOGOUT_REASONS } from '@commercetools-frontend/constants';
23
- import { S as STORAGE_KEYS, L as LOGIN_STRATEGY_OIDC, c as SUPPORTED_HEADERS } from './constants-8c9773dd.esm.js';
23
+ import { S as STORAGE_KEYS, L as LOGIN_STRATEGY_OIDC, c as SUPPORTED_HEADERS } from './constants-6f8e0d87.esm.js';
24
24
  import { selectPageNotifications } from '@commercetools-frontend/react-notifications';
25
25
  import _startsWithInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
26
26
  import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
@@ -60,7 +60,7 @@ import { entryPointUriPathToPermissionKeys } from '@commercetools-frontend/appli
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.3.3";
63
+ var version = "21.4.0";
64
64
 
65
65
  var isAddNotificationErrorAction = function isAddNotificationErrorAction(action) {
66
66
  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-d60d4795.cjs.dev.js');
6
- var dist_commercetoolsFrontendApplicationShell = require('./index-dc0c3748.cjs.dev.js');
5
+ var applicationEntryPoint = require('./application-entry-point-93c319cd.cjs.dev.js');
6
+ var dist_commercetoolsFrontendApplicationShell = require('./index-7811a80d.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');
@@ -31,7 +31,7 @@ require('omit-empty-es');
31
31
  require('@commercetools-frontend/notifications');
32
32
  require('@commercetools-frontend/sdk');
33
33
  require('@commercetools-frontend/constants');
34
- require('./constants-20e45958.cjs.dev.js');
34
+ require('./constants-0b2cadbb.cjs.dev.js');
35
35
  require('@commercetools-frontend/react-notifications');
36
36
  require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
37
37
  require('@babel/runtime-corejs3/core-js-stable/instance/includes');
@@ -73,7 +73,7 @@ require('perfume.js');
73
73
  require('@babel/runtime-corejs3/core-js-stable/instance/reverse');
74
74
  require('lodash/camelCase');
75
75
  require('@apollo/client/react');
76
- require('./oidc-cc8438b0.cjs.dev.js');
76
+ require('./oidc-137df8f6.cjs.dev.js');
77
77
  require('qss');
78
78
  require('jwt-decode');
79
79
  require('@commercetools-frontend/assets/images/locked-diamond.svg');
@@ -135,6 +135,7 @@ exports.GtmContext = dist_commercetoolsFrontendApplicationShell.GtmContext;
135
135
  exports.GtmUserLogoutTracker = dist_commercetoolsFrontendApplicationShell.GtmUserLogoutTracker;
136
136
  exports.InjectReducers = dist_commercetoolsFrontendApplicationShell.InjectReducers;
137
137
  exports.SetupFlopFlipProvider = dist_commercetoolsFrontendApplicationShell.SetupFlopFlipProvider;
138
+ exports.SuspendedRoute = dist_commercetoolsFrontendApplicationShell.SuspendedRoute;
138
139
  exports.createApolloContextForProxyForwardTo = dist_commercetoolsFrontendApplicationShell.createApolloContextForProxyForwardTo;
139
140
  exports.setupGlobalErrorListener = dist_commercetoolsFrontendApplicationShell.setupGlobalErrorListener;
140
141
  exports.useMcLazyQuery = dist_commercetoolsFrontendApplicationShell.useMcLazyQuery;
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var applicationEntryPoint = require('./application-entry-point-0178aabe.cjs.prod.js');
6
- var dist_commercetoolsFrontendApplicationShell = require('./index-76ebb56d.cjs.prod.js');
5
+ var applicationEntryPoint = require('./application-entry-point-3208c4f3.cjs.prod.js');
6
+ var dist_commercetoolsFrontendApplicationShell = require('./index-3b27087b.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');
@@ -31,7 +31,7 @@ require('omit-empty-es');
31
31
  require('@commercetools-frontend/notifications');
32
32
  require('@commercetools-frontend/sdk');
33
33
  require('@commercetools-frontend/constants');
34
- require('./constants-90b58549.cjs.prod.js');
34
+ require('./constants-9710f983.cjs.prod.js');
35
35
  require('@commercetools-frontend/react-notifications');
36
36
  require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
37
37
  require('@babel/runtime-corejs3/core-js-stable/instance/includes');
@@ -73,7 +73,7 @@ require('perfume.js');
73
73
  require('@babel/runtime-corejs3/core-js-stable/instance/reverse');
74
74
  require('lodash/camelCase');
75
75
  require('@apollo/client/react');
76
- require('./oidc-8ad956b5.cjs.prod.js');
76
+ require('./oidc-ebdbe61e.cjs.prod.js');
77
77
  require('qss');
78
78
  require('jwt-decode');
79
79
  require('@commercetools-frontend/assets/images/locked-diamond.svg');
@@ -135,6 +135,7 @@ exports.GtmContext = dist_commercetoolsFrontendApplicationShell.GtmContext;
135
135
  exports.GtmUserLogoutTracker = dist_commercetoolsFrontendApplicationShell.GtmUserLogoutTracker;
136
136
  exports.InjectReducers = dist_commercetoolsFrontendApplicationShell.InjectReducers;
137
137
  exports.SetupFlopFlipProvider = dist_commercetoolsFrontendApplicationShell.SetupFlopFlipProvider;
138
+ exports.SuspendedRoute = dist_commercetoolsFrontendApplicationShell.SuspendedRoute;
138
139
  exports.createApolloContextForProxyForwardTo = dist_commercetoolsFrontendApplicationShell.createApolloContextForProxyForwardTo;
139
140
  exports.setupGlobalErrorListener = dist_commercetoolsFrontendApplicationShell.setupGlobalErrorListener;
140
141
  exports.useMcLazyQuery = dist_commercetoolsFrontendApplicationShell.useMcLazyQuery;
@@ -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-df5ce5b0.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-464be964.esm.js';
1
+ export { p as RouteCatchAll, q as applyDefaultMiddlewares, f as createApolloClient, n as selectProjectKeyFromUrl, t as selectUserId, v as version } from './application-entry-point-f4bfa28c.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, d as SuspendedRoute, c as createApolloContextForProxyForwardTo, s as setupGlobalErrorListener, e as useMcLazyQuery, f as useMcMutation, u as useMcQuery } from './index-6ca37a9e.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';
@@ -27,7 +27,7 @@ import 'omit-empty-es';
27
27
  import '@commercetools-frontend/notifications';
28
28
  import '@commercetools-frontend/sdk';
29
29
  import '@commercetools-frontend/constants';
30
- import './constants-8c9773dd.esm.js';
30
+ import './constants-6f8e0d87.esm.js';
31
31
  import '@commercetools-frontend/react-notifications';
32
32
  import '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
33
33
  import '@babel/runtime-corejs3/core-js-stable/instance/includes';
@@ -69,7 +69,7 @@ import 'perfume.js';
69
69
  import '@babel/runtime-corejs3/core-js-stable/instance/reverse';
70
70
  import 'lodash/camelCase';
71
71
  import '@apollo/client/react';
72
- import './oidc-54c28ae8.esm.js';
72
+ import './oidc-ad6058e2.esm.js';
73
73
  import 'qss';
74
74
  import 'jwt-decode';
75
75
  import '@commercetools-frontend/assets/images/locked-diamond.svg';
@@ -1,7 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var HEIGHTS = {
4
- header: '43px'
3
+ var DIMENSIONS = {
4
+ header: '43px',
5
+ navMenu: '64px',
6
+ navMenuExpanded: '200px'
5
7
  };
6
8
  var SUPPORTED_HEADERS = {
7
9
  ACCEPT_VERSION: 'Accept-version',
@@ -49,7 +51,7 @@ var OIDC_CLAIMS = {
49
51
  };
50
52
 
51
53
  exports.CONTAINERS = CONTAINERS;
52
- exports.HEIGHTS = HEIGHTS;
54
+ exports.DIMENSIONS = DIMENSIONS;
53
55
  exports.LOGIN_STRATEGY_OIDC = LOGIN_STRATEGY_OIDC;
54
56
  exports.OIDC_CLAIMS = OIDC_CLAIMS;
55
57
  exports.OIDC_RESPONSE_TYPES = OIDC_RESPONSE_TYPES;
@@ -1,5 +1,7 @@
1
- var HEIGHTS = {
2
- header: '43px'
1
+ var DIMENSIONS = {
2
+ header: '43px',
3
+ navMenu: '64px',
4
+ navMenuExpanded: '200px'
3
5
  };
4
6
  var SUPPORTED_HEADERS = {
5
7
  ACCEPT_VERSION: 'Accept-version',
@@ -46,4 +48,4 @@ var OIDC_CLAIMS = {
46
48
  MANAGE: 'manage'
47
49
  };
48
50
 
49
- export { CONTAINERS as C, HEIGHTS as H, LOGIN_STRATEGY_OIDC as L, OIDC_CLAIMS as O, STORAGE_KEYS as S, SUSPENSION_REASONS as a, OIDC_RESPONSE_TYPES as b, SUPPORTED_HEADERS as c };
51
+ export { CONTAINERS as C, DIMENSIONS as D, LOGIN_STRATEGY_OIDC as L, OIDC_CLAIMS as O, STORAGE_KEYS as S, SUSPENSION_REASONS as a, OIDC_RESPONSE_TYPES as b, SUPPORTED_HEADERS as c };
@@ -1,7 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var HEIGHTS = {
4
- header: '43px'
3
+ var DIMENSIONS = {
4
+ header: '43px',
5
+ navMenu: '64px',
6
+ navMenuExpanded: '200px'
5
7
  };
6
8
  var SUPPORTED_HEADERS = {
7
9
  ACCEPT_VERSION: 'Accept-version',
@@ -49,7 +51,7 @@ var OIDC_CLAIMS = {
49
51
  };
50
52
 
51
53
  exports.CONTAINERS = CONTAINERS;
52
- exports.HEIGHTS = HEIGHTS;
54
+ exports.DIMENSIONS = DIMENSIONS;
53
55
  exports.LOGIN_STRATEGY_OIDC = LOGIN_STRATEGY_OIDC;
54
56
  exports.OIDC_CLAIMS = OIDC_CLAIMS;
55
57
  exports.OIDC_RESPONSE_TYPES = OIDC_RESPONSE_TYPES;
@@ -4,7 +4,7 @@ import type { NormalizedCacheObject } from '@apollo/client';
4
4
  import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
5
5
  import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
6
6
  import type { TrackingList } from '../../utils/gtm';
7
- import { ReactNode, SyntheticEvent } from 'react';
7
+ import { type ReactNode, type SyntheticEvent } from 'react';
8
8
  import { ApolloClient } from '@apollo/client';
9
9
  declare type Props<AdditionalEnvironmentProperties extends {}> = {
10
10
  apolloClient?: ApolloClient<NormalizedCacheObject>;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ readonly collapseMainNav: {
3
+ readonly action: "CollapseMainNav";
4
+ readonly category: "Main-Navigation";
5
+ readonly label: "Collapse Main Navigation";
6
+ };
7
+ readonly expandMainNav: {
8
+ readonly action: "ExpandMainNav";
9
+ readonly category: "Main-Navigation";
10
+ readonly label: "Expand Main Navigation";
11
+ };
12
+ readonly goToSupport: {
13
+ readonly action: "GoToSupport";
14
+ readonly category: "Main-Navigation";
15
+ readonly label: "Go to Support";
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default } from './suspended-route';
@@ -0,0 +1,6 @@
1
+ import { type RouteProps } from 'react-router-dom';
2
+ declare const SuspendedRoute: {
3
+ (props: RouteProps): import("@emotion/react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
6
+ export default SuspendedRoute;
@@ -1,5 +1,7 @@
1
- export declare const HEIGHTS: {
1
+ export declare const DIMENSIONS: {
2
2
  readonly header: "43px";
3
+ readonly navMenu: "64px";
4
+ readonly navMenuExpanded: "200px";
3
5
  };
4
6
  export declare const SUPPORTED_HEADERS: {
5
7
  readonly ACCEPT_VERSION: "Accept-version";
@@ -11,6 +11,7 @@ export { GtmContext } from './components/gtm-booter';
11
11
  export { default as GtmUserLogoutTracker } from './components/gtm-user-logout-tracker';
12
12
  export { default as SetupFlopFlipProvider } from './components/setup-flop-flip-provider';
13
13
  export { default as ConfigureIntlProvider } from './components/configure-intl-provider';
14
+ export { default as SuspendedRoute } from './components/suspended-route';
14
15
  export { useMcQuery, useMcLazyQuery, useMcMutation, } from './hooks/apollo-hooks';
15
16
  export { entryPointUriPathToPermissionKeys, entryPointUriPathToResourceAccesses, } from '@commercetools-frontend/application-config/ssr';
16
17
  export { ToggleFeature, injectFeatureToggle, injectFeatureToggles, branchOnFeatureToggle, ConfigureFlopFlip, ReconfigureFlopFlip, useFeatureToggle, useFeatureToggles, useFlagVariation, useFlagVariations, useAdapterStatus, useAdapterReconfiguration, } from '@flopflip/react-broadcast';