@commercetools-frontend/application-shell 21.23.6 → 21.23.7

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 (86) hide show
  1. package/dist/{application-entry-point-a5e0024a.esm.js → application-entry-point-1ae5f4e8.esm.js} +1 -1
  2. package/dist/{application-entry-point-aa2c7e84.cjs.dev.js → application-entry-point-70fe25e2.cjs.dev.js} +1 -1
  3. package/dist/{application-entry-point-b55292d8.cjs.prod.js → application-entry-point-d9033fe0.cjs.prod.js} +1 -1
  4. package/dist/commercetools-frontend-application-shell.cjs.dev.js +2 -2
  5. package/dist/commercetools-frontend-application-shell.cjs.prod.js +2 -2
  6. package/dist/commercetools-frontend-application-shell.esm.js +2 -2
  7. package/dist/declarations/src/components/app-bar/app-bar.d.ts +1 -1
  8. package/dist/declarations/src/components/application-entry-point/application-entry-point.d.ts +1 -1
  9. package/dist/declarations/src/components/application-loader/application-loader.d.ts +1 -1
  10. package/dist/declarations/src/components/application-page-title/application-page-title.d.ts +1 -1
  11. package/dist/declarations/src/components/application-shell/application-shell.d.ts +1 -1
  12. package/dist/declarations/src/components/application-shell/redirect-to-logout.d.ts +2 -2
  13. package/dist/declarations/src/components/application-shell-provider/application-shell-provider.d.ts +1 -1
  14. package/dist/declarations/src/components/application-shell-provider/use-coerced-environment-values.d.ts +1 -1
  15. package/dist/declarations/src/components/authenticated/am-i-logged-in.d.ts +2 -2
  16. package/dist/declarations/src/components/authenticated/authenticated.d.ts +2 -2
  17. package/dist/declarations/src/components/authenticated/oidc-callback-error-page.d.ts +1 -1
  18. package/dist/declarations/src/components/authenticated/oidc-callback.d.ts +1 -1
  19. package/dist/declarations/src/components/authenticated/types.d.ts +1 -1
  20. package/dist/declarations/src/components/back-to-project/back-to-project.d.ts +1 -1
  21. package/dist/declarations/src/components/configure-intl-provider/configure-intl-provider.d.ts +1 -1
  22. package/dist/declarations/src/components/error-boundary/error-boundary.d.ts +2 -2
  23. package/dist/declarations/src/components/fetch-project/fetch-project.d.ts +2 -2
  24. package/dist/declarations/src/components/fetch-user/fetch-user.d.ts +2 -2
  25. package/dist/declarations/src/components/gtm-application-tracker/gtm-application-tracker.d.ts +1 -1
  26. package/dist/declarations/src/components/gtm-booter/gtm-booter.d.ts +2 -2
  27. package/dist/declarations/src/components/gtm-user-tracker/gtm-user-tracker.d.ts +2 -2
  28. package/dist/declarations/src/components/inject-reducers/inject-reducers.d.ts +1 -1
  29. package/dist/declarations/src/components/loading-placeholder/loading-placeholder.d.ts +1 -1
  30. package/dist/declarations/src/components/locale-switcher/locale-switcher.d.ts +2 -2
  31. package/dist/declarations/src/components/navbar/navbar.d.ts +2 -2
  32. package/dist/declarations/src/components/navbar/use-navbar-state-manager.d.ts +1 -1
  33. package/dist/declarations/src/components/project-container/project-container.d.ts +2 -2
  34. package/dist/declarations/src/components/project-data-locale/project-data-locale.d.ts +2 -2
  35. package/dist/declarations/src/components/project-suspended/project-suspended.d.ts +1 -1
  36. package/dist/declarations/src/components/project-switcher/project-switcher.d.ts +2 -2
  37. package/dist/declarations/src/components/quick-access/butler/butler.d.ts +1 -1
  38. package/dist/declarations/src/components/quick-access/butler-command/butler-command.d.ts +1 -1
  39. package/dist/declarations/src/components/quick-access/create-commands.d.ts +1 -1
  40. package/dist/declarations/src/components/quick-access/index.d.ts +1 -1
  41. package/dist/declarations/src/components/quick-access/quick-access.d.ts +1 -1
  42. package/dist/declarations/src/components/quick-access/sub-commands.d.ts +2 -2
  43. package/dist/declarations/src/components/quick-access/types.d.ts +9 -9
  44. package/dist/declarations/src/components/redirector/redirector.d.ts +3 -3
  45. package/dist/declarations/src/components/requests-in-flight-loader/types.d.ts +3 -3
  46. package/dist/declarations/src/components/setup-flop-flip-provider/setup-flop-flip-provider.d.ts +1 -1
  47. package/dist/declarations/src/components/user-settings-menu/user-settings-menu.d.ts +2 -2
  48. package/dist/declarations/src/configure-apollo.d.ts +1 -1
  49. package/dist/declarations/src/configure-store.d.ts +1 -1
  50. package/dist/declarations/src/export-types.d.ts +7 -7
  51. package/dist/declarations/src/hooks/apollo-hooks/apollo-hooks.d.ts +5 -5
  52. package/dist/declarations/src/hooks/use-applications-menu/use-applications-menu.d.ts +3 -3
  53. package/dist/declarations/src/test-utils/test-utils.d.ts +14 -14
  54. package/dist/declarations/src/types/generated/ctp.d.ts +1744 -1744
  55. package/dist/declarations/src/types/generated/mc.d.ts +103 -103
  56. package/dist/declarations/src/types/generated/proxy.d.ts +17 -17
  57. package/dist/declarations/src/types/generated/settings.d.ts +248 -248
  58. package/dist/declarations/src/utils/apollo-context.d.ts +1 -1
  59. package/dist/declarations/src/utils/gtm.d.ts +3 -3
  60. package/dist/declarations/src/utils/http-client.d.ts +9 -9
  61. package/dist/declarations/src/utils/oidc.d.ts +1 -1
  62. package/dist/{index-c01a777b.esm.js → index-4e02fc7d.esm.js} +12 -12
  63. package/dist/{index-4a6d85a4.cjs.prod.js → index-5121d456.cjs.prod.js} +6 -6
  64. package/dist/{index-262372b7.cjs.dev.js → index-b670dcc9.cjs.dev.js} +12 -12
  65. package/dist/{project-expired-7b0e3eea.cjs.dev.js → project-expired-1d22bd87.cjs.dev.js} +3 -3
  66. package/dist/{project-expired-61d9514b.esm.js → project-expired-5f0a4280.esm.js} +3 -3
  67. package/dist/{project-expired-cd9a8e0c.cjs.prod.js → project-expired-be0779a1.cjs.prod.js} +3 -3
  68. package/dist/{project-not-found-58170d92.cjs.dev.js → project-not-found-24271e19.cjs.dev.js} +3 -3
  69. package/dist/{project-not-found-59b8b379.cjs.prod.js → project-not-found-38edd86f.cjs.prod.js} +3 -3
  70. package/dist/{project-not-found-26a09355.esm.js → project-not-found-bbe7f3e3.esm.js} +3 -3
  71. package/dist/{project-not-initialized-872979f7.esm.js → project-not-initialized-1baffdba.esm.js} +3 -3
  72. package/dist/{project-not-initialized-98a129a3.cjs.prod.js → project-not-initialized-5421145e.cjs.prod.js} +3 -3
  73. package/dist/{project-not-initialized-1772e41b.cjs.dev.js → project-not-initialized-e216c26a.cjs.dev.js} +3 -3
  74. package/dist/{project-suspended-65b9db9f.cjs.prod.js → project-suspended-7b788e80.cjs.prod.js} +3 -3
  75. package/dist/{project-suspended-1d86f27b.esm.js → project-suspended-a476b2ea.esm.js} +3 -3
  76. package/dist/{project-suspended-fe774108.cjs.dev.js → project-suspended-b912cf26.cjs.dev.js} +3 -3
  77. package/dist/{quick-access-4b7707a1.cjs.dev.js → quick-access-85d0adc0.cjs.dev.js} +2 -2
  78. package/dist/{quick-access-d0b73e0d.cjs.prod.js → quick-access-96835213.cjs.prod.js} +2 -2
  79. package/dist/{quick-access-2c191668.esm.js → quick-access-da0a782e.esm.js} +2 -2
  80. package/dist/{service-page-project-switcher-b88b36fe.cjs.prod.js → service-page-project-switcher-28c3b007.cjs.prod.js} +1 -1
  81. package/dist/{service-page-project-switcher-4ce0f8db.cjs.dev.js → service-page-project-switcher-59207cc6.cjs.dev.js} +1 -1
  82. package/dist/{service-page-project-switcher-21b3d4f1.esm.js → service-page-project-switcher-95663d25.esm.js} +1 -1
  83. package/package.json +47 -47
  84. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +1 -1
  85. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +1 -1
  86. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +1 -1
@@ -70,7 +70,7 @@ import { entryPointUriPathToPermissionKeys } from '@commercetools-frontend/appli
70
70
  import { useApplicationContext } from '@commercetools-frontend/application-shell-connectors';
71
71
 
72
72
  // NOTE: This string will be replaced on build time with the package version.
73
- var version = "21.23.6";
73
+ var version = "21.23.7";
74
74
 
75
75
  var isAddNotificationErrorAction = function isAddNotificationErrorAction(action) {
76
76
  var errorAction = action;
@@ -113,7 +113,7 @@ var _pt__default = /*#__PURE__*/_interopDefault(_pt);
113
113
  var invariant__default = /*#__PURE__*/_interopDefault(invariant);
114
114
 
115
115
  // NOTE: This string will be replaced on build time with the package version.
116
- var version = "21.23.6";
116
+ var version = "21.23.7";
117
117
 
118
118
  var isAddNotificationErrorAction = function isAddNotificationErrorAction(action) {
119
119
  var errorAction = action;
@@ -112,7 +112,7 @@ var _regeneratorRuntime__default = /*#__PURE__*/_interopDefault(_regeneratorRunt
112
112
  var invariant__default = /*#__PURE__*/_interopDefault(invariant);
113
113
 
114
114
  // NOTE: This string will be replaced on build time with the package version.
115
- var version = "21.23.6";
115
+ var version = "21.23.7";
116
116
 
117
117
  var isAddNotificationErrorAction = function isAddNotificationErrorAction(action) {
118
118
  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-aa2c7e84.cjs.dev.js');
6
- var dist_commercetoolsFrontendApplicationShell = require('./index-262372b7.cjs.dev.js');
5
+ var applicationEntryPoint = require('./application-entry-point-70fe25e2.cjs.dev.js');
6
+ var dist_commercetoolsFrontendApplicationShell = require('./index-b670dcc9.cjs.dev.js');
7
7
  require('@babel/runtime-corejs3/core-js-stable/instance/filter');
8
8
  require('uuid');
9
9
  var ssr = require('@commercetools-frontend/application-config/ssr');
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var applicationEntryPoint = require('./application-entry-point-b55292d8.cjs.prod.js');
6
- var dist_commercetoolsFrontendApplicationShell = require('./index-4a6d85a4.cjs.prod.js');
5
+ var applicationEntryPoint = require('./application-entry-point-d9033fe0.cjs.prod.js');
6
+ var dist_commercetoolsFrontendApplicationShell = require('./index-5121d456.cjs.prod.js');
7
7
  require('@babel/runtime-corejs3/core-js-stable/instance/filter');
8
8
  require('uuid');
9
9
  var ssr = require('@commercetools-frontend/application-config/ssr');
@@ -1,5 +1,5 @@
1
- export { p as RouteCatchAll, q as applyDefaultMiddlewares, w as buildApiUrl, f as createApolloClient, x as createHttpClientOptions, y as executeHttpClientRequest, g as getMcApiUrl, n as selectProjectKeyFromUrl, t as selectUserId, v as version } from './application-entry-point-a5e0024a.esm.js';
2
- export { b as ApplicationPageTitle, A as ApplicationShell, a as ApplicationShellProvider, C as ConfigureIntlProvider, G as GtmContext, d as GtmUserLogoutTracker, I as InjectReducers, S as SetupFlopFlipProvider, e as SuspendedRoute, c as createApolloContextForProxyForwardTo, s as setupGlobalErrorListener, f as useMcLazyQuery, g as useMcMutation, u as useMcQuery } from './index-c01a777b.esm.js';
1
+ export { p as RouteCatchAll, q as applyDefaultMiddlewares, w as buildApiUrl, f as createApolloClient, x as createHttpClientOptions, y as executeHttpClientRequest, g as getMcApiUrl, n as selectProjectKeyFromUrl, t as selectUserId, v as version } from './application-entry-point-1ae5f4e8.esm.js';
2
+ export { b as ApplicationPageTitle, A as ApplicationShell, a as ApplicationShellProvider, C as ConfigureIntlProvider, G as GtmContext, d as GtmUserLogoutTracker, I as InjectReducers, S as SetupFlopFlipProvider, e as SuspendedRoute, c as createApolloContextForProxyForwardTo, s as setupGlobalErrorListener, f as useMcLazyQuery, g as useMcMutation, u as useMcQuery } from './index-4e02fc7d.esm.js';
3
3
  import '@babel/runtime-corejs3/core-js-stable/instance/filter';
4
4
  import 'uuid';
5
5
  export { entryPointUriPathToPermissionKeys, entryPointUriPathToResourceAccesses } from '@commercetools-frontend/application-config/ssr';
@@ -1,5 +1,5 @@
1
1
  import type { TFetchLoggedInUserQuery } from '../../types/generated/mc';
2
- declare type Props = {
2
+ type Props = {
3
3
  user: TFetchLoggedInUserQuery['user'];
4
4
  projectKeyFromUrl?: string;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import type { TProviderProps } from '@commercetools-frontend/application-shell-connectors';
2
2
  import { ReactNode } from 'react';
3
- declare type Props<AdditionalEnvironmentProperties extends {}> = {
3
+ type Props<AdditionalEnvironmentProperties extends {}> = {
4
4
  environment: TProviderProps<AdditionalEnvironmentProperties>['environment'];
5
5
  disableRoutePermissionCheck?: boolean;
6
6
  render?: () => JSX.Element;
@@ -1,4 +1,4 @@
1
- declare type Props = {
1
+ type Props = {
2
2
  showLogo?: boolean;
3
3
  };
4
4
  declare const ApplicationLoader: {
@@ -1,4 +1,4 @@
1
- declare type TApplicationPageTitleProps = {
1
+ type TApplicationPageTitleProps = {
2
2
  additionalParts: string[];
3
3
  };
4
4
  declare const ApplicationPageTitle: {
@@ -6,7 +6,7 @@ import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
6
6
  import type { TrackingList } from '../../utils/gtm';
7
7
  import { type ReactNode, type SyntheticEvent } from 'react';
8
8
  import { ApolloClient } from '@apollo/client';
9
- declare type Props<AdditionalEnvironmentProperties extends {}> = {
9
+ type Props<AdditionalEnvironmentProperties extends {}> = {
10
10
  apolloClient?: ApolloClient<NormalizedCacheObject>;
11
11
  environment: TApplicationContext<AdditionalEnvironmentProperties>['environment'];
12
12
  featureFlags?: TFlags;
@@ -1,6 +1,6 @@
1
1
  import { LOGOUT_REASONS } from '@commercetools-frontend/constants';
2
- declare type Props = {
3
- reason?: typeof LOGOUT_REASONS[keyof typeof LOGOUT_REASONS];
2
+ type Props = {
3
+ reason?: (typeof LOGOUT_REASONS)[keyof typeof LOGOUT_REASONS];
4
4
  };
5
5
  declare const RedirectToLogout: (props: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
6
6
  export default RedirectToLogout;
@@ -5,7 +5,7 @@ import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
5
5
  import type { TrackingList } from '../../utils/gtm';
6
6
  import '../../track-performance';
7
7
  import { ApolloClient } from '@apollo/client';
8
- declare type Props<AdditionalEnvironmentProperties extends {}> = {
8
+ type Props<AdditionalEnvironmentProperties extends {}> = {
9
9
  apolloClient?: ApolloClient<NormalizedCacheObject>;
10
10
  environment: TApplicationContext<AdditionalEnvironmentProperties>['environment'];
11
11
  trackingEventList?: TrackingList;
@@ -1,5 +1,5 @@
1
1
  import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
2
- declare type ShallowJson = {
2
+ type ShallowJson = {
3
3
  [key: string]: unknown;
4
4
  };
5
5
  declare const useCoercedEnvironmentValues: <AdditionalEnvironmentProperties extends {}>(environment: ShallowJson) => AdditionalEnvironmentProperties & {
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- declare type RenderFnArgs = {
2
+ type RenderFnArgs = {
3
3
  isAuthenticated: boolean;
4
4
  };
5
- declare type Props = {
5
+ type Props = {
6
6
  render: (args: RenderFnArgs) => JSX.Element;
7
7
  children?: never;
8
8
  };
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
3
- declare type RenderFnArgs = {
3
+ type RenderFnArgs = {
4
4
  isAuthenticated: boolean;
5
5
  };
6
- export declare type TProps = {
6
+ export type TProps = {
7
7
  render: (args: RenderFnArgs) => JSX.Element;
8
8
  locale: string;
9
9
  applicationMessages: TAsyncLocaleDataProps['applicationMessages'];
@@ -1,5 +1,5 @@
1
1
  import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
2
- declare type TProps = {
2
+ type TProps = {
3
3
  message: string;
4
4
  locale: string;
5
5
  applicationMessages: TAsyncLocaleDataProps['applicationMessages'];
@@ -1,5 +1,5 @@
1
1
  import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
2
- export declare type TProps = {
2
+ export type TProps = {
3
3
  locale: string;
4
4
  applicationMessages: TAsyncLocaleDataProps['applicationMessages'];
5
5
  children?: never;
@@ -1,4 +1,4 @@
1
- export declare type AuthorizeSessionState = {
1
+ export type AuthorizeSessionState = {
2
2
  applicationId: string;
3
3
  query: {
4
4
  redirectTo?: string;
@@ -1,4 +1,4 @@
1
- declare type Props = {
1
+ type Props = {
2
2
  projectKey?: string;
3
3
  };
4
4
  export declare const BackToProject: {
@@ -1,6 +1,6 @@
1
1
  import type { IntlConfig } from 'react-intl';
2
2
  import { ReactNode } from 'react';
3
- declare type Props = {
3
+ type Props = {
4
4
  locale?: string;
5
5
  messages?: IntlConfig['messages'];
6
6
  children: ReactNode;
@@ -1,9 +1,9 @@
1
1
  import { Component, ErrorInfo, ReactNode } from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  pathname?: string;
4
4
  children: ReactNode;
5
5
  };
6
- declare type State = {
6
+ type State = {
7
7
  hasError: boolean;
8
8
  };
9
9
  declare class ErrorBoundary extends Component<Props, State> {
@@ -1,12 +1,12 @@
1
1
  import type { ApolloError } from '@apollo/client/errors';
2
2
  import type { TFetchProjectQuery } from '../../types/generated/mc';
3
3
  import { ReactNode } from 'react';
4
- declare type RenderFnArgs = {
4
+ type RenderFnArgs = {
5
5
  isLoading: boolean;
6
6
  error?: ApolloError;
7
7
  project: TFetchProjectQuery['project'];
8
8
  };
9
- declare type Props = {
9
+ type Props = {
10
10
  projectKey: string;
11
11
  skip?: boolean;
12
12
  children: (args: RenderFnArgs) => ReactNode;
@@ -1,12 +1,12 @@
1
1
  import type { ApolloError } from '@apollo/client/errors';
2
2
  import type { TFetchLoggedInUserQuery } from '../../types/generated/mc';
3
3
  import { ReactNode } from 'react';
4
- declare type RenderFnArgs = {
4
+ type RenderFnArgs = {
5
5
  isLoading: boolean;
6
6
  error?: ApolloError;
7
7
  user: TFetchLoggedInUserQuery['user'];
8
8
  };
9
- declare type Props = {
9
+ type Props = {
10
10
  children: (args: RenderFnArgs) => ReactNode;
11
11
  };
12
12
  declare const FetchUser: {
@@ -1,4 +1,4 @@
1
- declare type Props = {
1
+ type Props = {
2
2
  applicationName: string;
3
3
  projectKey?: string;
4
4
  userBusinessRole?: string;
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
- export declare type TGtmTrackingEventList = {
2
+ export type TGtmTrackingEventList = {
3
3
  [key: string]: string;
4
4
  };
5
- export declare type Props = {
5
+ export type Props = {
6
6
  trackingEventList: {
7
7
  [key: string]: string | TGtmTrackingEventList;
8
8
  };
@@ -1,6 +1,6 @@
1
1
  import type { TFetchLoggedInUserQuery } from '../../types/generated/mc';
2
- declare type TFetchedUser = TFetchLoggedInUserQuery['user'];
3
- declare type Props = {
2
+ type TFetchedUser = TFetchLoggedInUserQuery['user'];
3
+ type Props = {
4
4
  user: TFetchedUser;
5
5
  };
6
6
  declare const GtmUserTracker: {
@@ -1,6 +1,6 @@
1
1
  import type { ReducersMapObject } from 'redux';
2
2
  import { ReactNode } from 'react';
3
- declare type Props = {
3
+ type Props = {
4
4
  id: string;
5
5
  reducers: ReducersMapObject;
6
6
  shouldCleanUpOnUnmount: boolean;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  shape: 'dot' | 'rect';
4
4
  size: 's' | 'm' | 'l' | 'xl';
5
5
  };
@@ -1,8 +1,8 @@
1
1
  import type { SingleValueProps } from 'react-select';
2
- declare type CustomSingleValueProps = SingleValueProps & {
2
+ type CustomSingleValueProps = SingleValueProps & {
3
3
  localeCount: number;
4
4
  };
5
- declare type Props = {
5
+ type Props = {
6
6
  projectDataLocale: string;
7
7
  setProjectDataLocale: (locale: string) => void;
8
8
  availableLocales: string[];
@@ -1,14 +1,14 @@
1
1
  import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
2
2
  import type { TFetchProjectQuery } from '../../types/generated/mc';
3
3
  import { ReactNode, SyntheticEvent } from 'react';
4
- declare type MenuItemLinkProps = {
4
+ type MenuItemLinkProps = {
5
5
  linkTo?: string;
6
6
  exactMatch: boolean;
7
7
  children: ReactNode;
8
8
  onClick?: <TrackFn>(event: SyntheticEvent<HTMLAnchorElement>, track: TrackFn) => void;
9
9
  useFullRedirectsForLinks?: boolean;
10
10
  };
11
- declare type NavbarProps<AdditionalEnvironmentProperties extends {}> = {
11
+ type NavbarProps<AdditionalEnvironmentProperties extends {}> = {
12
12
  applicationLocale: string;
13
13
  projectKey: string;
14
14
  environment: TApplicationContext<AdditionalEnvironmentProperties>['environment'];
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
3
3
  import type { TNavbarMenu } from '../../types/generated/proxy';
4
- declare type HookProps = {
4
+ type HookProps = {
5
5
  environment: TApplicationContext<{}>['environment'];
6
6
  };
7
7
  declare const useNavbarStateManager: (props: HookProps) => {
@@ -2,10 +2,10 @@ import type { RouteComponentProps } from 'react-router-dom';
2
2
  import type { TProviderProps } from '@commercetools-frontend/application-shell-connectors';
3
3
  import type { TFetchLoggedInUserQuery } from '../../types/generated/mc';
4
4
  import { ReactNode } from 'react';
5
- declare type QueryParams = {
5
+ type QueryParams = {
6
6
  projectKey: string;
7
7
  };
8
- declare type Props<AdditionalEnvironmentProperties extends {}> = Pick<RouteComponentProps<QueryParams>, 'match' | 'location'> & {
8
+ type Props<AdditionalEnvironmentProperties extends {}> = Pick<RouteComponentProps<QueryParams>, 'match' | 'location'> & {
9
9
  user: TFetchLoggedInUserQuery['user'];
10
10
  environment: TProviderProps<AdditionalEnvironmentProperties>['environment'];
11
11
  disableRoutePermissionCheck?: boolean;
@@ -1,9 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
- declare type RenderFnArgs = {
2
+ type RenderFnArgs = {
3
3
  locale: string;
4
4
  setProjectDataLocale: (locale: string) => void;
5
5
  };
6
- declare type Props = {
6
+ type Props = {
7
7
  locales: string[];
8
8
  children: (args: RenderFnArgs) => ReactNode;
9
9
  };
@@ -1,4 +1,4 @@
1
- declare type Props = {
1
+ type Props = {
2
2
  isTemporary?: boolean;
3
3
  };
4
4
  declare const ProjectSuspended: {
@@ -1,8 +1,8 @@
1
1
  import type { OptionProps, ValueContainerProps } from 'react-select';
2
- declare type Props = {
2
+ type Props = {
3
3
  projectKey?: string;
4
4
  };
5
- declare type CustomValueContainerProps = ValueContainerProps & {
5
+ type CustomValueContainerProps = ValueContainerProps & {
6
6
  projectCount: number;
7
7
  };
8
8
  export declare const ProjectSwitcherValueContainer: ({ projectCount, ...restProps }: CustomValueContainerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import type { Command, SearchText, HistoryEntry } from '../types';
2
- declare type Props = {
2
+ type Props = {
3
3
  historyEntries: HistoryEntry[];
4
4
  onHistoryEntriesChange: (historyEntries: HistoryEntry[]) => void;
5
5
  search: (searchText: SearchText) => Promise<Command[]>;
@@ -1,6 +1,6 @@
1
1
  import type { Command } from '../types';
2
2
  import { MouseEventHandler } from 'react';
3
- declare type Props = {
3
+ type Props = {
4
4
  command: Command;
5
5
  isSelected?: boolean;
6
6
  onClick: MouseEventHandler<HTMLDivElement>;
@@ -1,7 +1,7 @@
1
1
  import type { IntlShape } from 'react-intl';
2
2
  import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
3
3
  import type { Command } from './types';
4
- declare type CreateCommandsOptions = {
4
+ type CreateCommandsOptions = {
5
5
  intl: IntlShape;
6
6
  applicationContext: TApplicationContext<{}>;
7
7
  featureToggles: {
@@ -1,4 +1,4 @@
1
- declare type Props = {
1
+ type Props = {
2
2
  onChangeProjectDataLocale?: (locale: string) => void;
3
3
  };
4
4
  declare const QuickAccessTrigger: {
@@ -1,5 +1,5 @@
1
1
  import pimIndexerStates from './pim-indexer-states';
2
- declare type Props = {
2
+ type Props = {
3
3
  pimIndexerState: keyof typeof pimIndexerStates;
4
4
  onPimIndexerStateChange: (pimIndexerState: keyof typeof pimIndexerStates) => void;
5
5
  onClose: () => void;
@@ -1,14 +1,14 @@
1
1
  import type { IntlShape } from 'react-intl';
2
2
  import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
3
3
  import type { Command } from './types';
4
- declare type CreateProductVariantSubCommandsOptions = {
4
+ type CreateProductVariantSubCommandsOptions = {
5
5
  intl: IntlShape;
6
6
  applicationContext: TApplicationContext<{}>;
7
7
  productId: string;
8
8
  variantId: number;
9
9
  };
10
10
  export declare const createProductVariantSubCommands: ({ intl, applicationContext, productId, variantId, }: CreateProductVariantSubCommandsOptions) => Command[];
11
- declare type CreateProductTabsSubCommandsOptions = {
11
+ type CreateProductTabsSubCommandsOptions = {
12
12
  intl: IntlShape;
13
13
  applicationContext: TApplicationContext<{}>;
14
14
  productId: string;
@@ -4,28 +4,28 @@ import type { TApolloContext } from '../../utils/apollo-context';
4
4
  export declare const actionTypes: {
5
5
  readonly go: "go";
6
6
  };
7
- export declare type ActionAsFn = () => void;
8
- export declare type SubCommandAsFn = (execQuery: ExecGraphQlQuery) => Promise<Command[]>;
9
- export declare type Action = {
7
+ export type ActionAsFn = () => void;
8
+ export type SubCommandAsFn = (execQuery: ExecGraphQlQuery) => Promise<Command[]>;
9
+ export type Action = {
10
10
  type: typeof actionTypes.go;
11
11
  to: string;
12
12
  };
13
- export declare type Command = {
13
+ export type Command = {
14
14
  id: string;
15
15
  text: string;
16
16
  keywords?: string[];
17
17
  action: ActionAsFn | Action;
18
18
  subCommands?: SubCommandAsFn | Command[];
19
19
  };
20
- export declare type SearchText = string;
21
- export declare type SelectedResult = number;
22
- export declare type Stack = {
20
+ export type SearchText = string;
21
+ export type SelectedResult = number;
22
+ export type Stack = {
23
23
  searchText: SearchText;
24
24
  results: Command[];
25
25
  selectedResult: SelectedResult;
26
26
  };
27
- export declare type HistoryEntry = {
27
+ export type HistoryEntry = {
28
28
  searchText: SearchText;
29
29
  results: Command[];
30
30
  };
31
- export declare type ExecGraphQlQuery = <T>(document: DocumentNode, variables: OperationVariables, context?: TApolloContext) => Promise<ApolloQueryResult<T>['data']>;
31
+ export type ExecGraphQlQuery = <T>(document: DocumentNode, variables: OperationVariables, context?: TApolloContext) => Promise<ApolloQueryResult<T>['data']>;
@@ -1,7 +1,7 @@
1
1
  import type { RouteComponentProps } from 'react-router-dom';
2
2
  import { LOGOUT_REASONS } from '@commercetools-frontend/constants';
3
- declare type QueryParams = {
4
- reason?: typeof LOGOUT_REASONS[keyof typeof LOGOUT_REASONS];
3
+ type QueryParams = {
4
+ reason?: (typeof LOGOUT_REASONS)[keyof typeof LOGOUT_REASONS];
5
5
  redirectTo?: string;
6
6
  client_id?: string;
7
7
  response_type?: string;
@@ -9,7 +9,7 @@ declare type QueryParams = {
9
9
  state?: string;
10
10
  nonce?: string;
11
11
  };
12
- declare type Props = {
12
+ type Props = {
13
13
  to: string;
14
14
  origin?: string;
15
15
  location?: RouteComponentProps['location'];
@@ -1,9 +1,9 @@
1
1
  import type { Action } from 'redux';
2
2
  import { SHOW_LOADING, HIDE_LOADING } from '@commercetools-frontend/constants';
3
- export declare type TRequestsInFlightState = string[];
4
- export declare type TShowRequestInFlightAction = Action<typeof SHOW_LOADING> & {
3
+ export type TRequestsInFlightState = string[];
4
+ export type TShowRequestInFlightAction = Action<typeof SHOW_LOADING> & {
5
5
  payload: string;
6
6
  };
7
- export declare type THideRequestInFlightAction = Action<typeof HIDE_LOADING> & {
7
+ export type THideRequestInFlightAction = Action<typeof HIDE_LOADING> & {
8
8
  payload: string;
9
9
  };
@@ -1,7 +1,7 @@
1
1
  import type { TFlags } from '@flopflip/types';
2
2
  import type { TFetchLoggedInUserQuery } from '../../types/generated/mc';
3
3
  import { ReactNode } from 'react';
4
- declare type Props = {
4
+ type Props = {
5
5
  projectKey?: string;
6
6
  user?: TFetchLoggedInUserQuery['user'];
7
7
  flags?: TFlags;
@@ -1,7 +1,7 @@
1
1
  import { type ControllerStateAndHelpers } from 'downshift';
2
2
  import type { TUser } from '../../types/generated/mc';
3
- declare type Props = Pick<TUser, 'language' | 'firstName' | 'lastName' | 'email' | 'gravatarHash'>;
4
- declare type MenuBodyProps = Props & {
3
+ type Props = Pick<TUser, 'language' | 'firstName' | 'lastName' | 'email' | 'gravatarHash'>;
4
+ type MenuBodyProps = Props & {
5
5
  downshiftProps: ControllerStateAndHelpers<{}>;
6
6
  };
7
7
  declare const UserAvatar: {
@@ -1,5 +1,5 @@
1
1
  import { type NormalizedCacheObject, type InMemoryCacheConfig, ApolloClient, ApolloLink } from '@apollo/client';
2
- declare type TApolloClientOptions = {
2
+ type TApolloClientOptions = {
3
3
  cache?: InMemoryCacheConfig;
4
4
  restLink?: ApolloLink;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { type ReducersMapObject, type Store, type Middleware, type StoreEnhancer } from '@reduxjs/toolkit';
2
- export declare type TEnhancedStore = Store & {
2
+ export type TEnhancedStore = Store & {
3
3
  injectedReducers: {
4
4
  [key: string]: ReducersMapObject;
5
5
  };
@@ -1,9 +1,9 @@
1
1
  import type { TApolloContext as ApolloContext } from './utils/apollo-context';
2
2
  import type { TFetcher, TFetcherResponse, THeaders, TConfig, TOptions, TForwardToAudiencePolicy as ForwardToAudiencePolicy } from './utils/http-client';
3
- export declare type TApolloContext = ApolloContext;
4
- export declare type TForwardToAudiencePolicy = ForwardToAudiencePolicy;
5
- export declare type THttpClientFetcher<Data> = TFetcher<Data>;
6
- export declare type THttpClientFetcherResponse<Data> = TFetcherResponse<Data>;
7
- export declare type THttpClientHeaders = THeaders;
8
- export declare type THttpClientConfig = TConfig;
9
- export declare type THttpClientOptions = TOptions;
3
+ export type TApolloContext = ApolloContext;
4
+ export type TForwardToAudiencePolicy = ForwardToAudiencePolicy;
5
+ export type THttpClientFetcher<Data> = TFetcher<Data>;
6
+ export type THttpClientFetcherResponse<Data> = TFetcherResponse<Data>;
7
+ export type THttpClientHeaders = THeaders;
8
+ export type THttpClientConfig = TConfig;
9
+ export type THttpClientOptions = TOptions;
@@ -1,13 +1,13 @@
1
1
  import type { DocumentNode } from 'graphql';
2
2
  import type { OperationVariables, QueryResult, QueryHookOptions, QueryTuple, MutationTuple, MutationHookOptions } from '@apollo/client';
3
3
  import type { TApolloContext } from '../../utils/apollo-context';
4
- declare type TQueryOptionsWithContext<TData = unknown, TVariables = OperationVariables> = QueryHookOptions<TData, TVariables> & {
4
+ type TQueryOptionsWithContext<TData = unknown, TVariables extends OperationVariables = OperationVariables> = QueryHookOptions<TData, TVariables> & {
5
5
  context: TApolloContext;
6
6
  };
7
- declare type TMutationOptionsWithContext<TData = unknown, TVariables = OperationVariables> = MutationHookOptions<TData, TVariables, TApolloContext> & {
7
+ type TMutationOptionsWithContext<TData = unknown, TVariables = OperationVariables> = MutationHookOptions<TData, TVariables, TApolloContext> & {
8
8
  context: TApolloContext;
9
9
  };
10
- declare function useMcQuery<TData = unknown, TVariables = OperationVariables>(query: DocumentNode, options?: TQueryOptionsWithContext<TData, TVariables>): QueryResult<TData, TVariables>;
11
- declare function useMcLazyQuery<TData = unknown, TVariables = OperationVariables>(query: DocumentNode, options?: TQueryOptionsWithContext<TData, TVariables>): QueryTuple<TData, TVariables>;
12
- declare function useMcMutation<TData = unknown, TVariables = OperationVariables>(mutation: DocumentNode, options?: TMutationOptionsWithContext<TData, TVariables>): MutationTuple<TData, TVariables, TApolloContext>;
10
+ declare function useMcQuery<TData = unknown, TVariables extends OperationVariables = OperationVariables>(query: DocumentNode, options?: TQueryOptionsWithContext<TData, TVariables>): QueryResult<TData, TVariables>;
11
+ declare function useMcLazyQuery<TData = unknown, TVariables extends OperationVariables = OperationVariables>(query: DocumentNode, options?: TQueryOptionsWithContext<TData, TVariables>): QueryTuple<TData, TVariables>;
12
+ declare function useMcMutation<TData = unknown, TVariables extends OperationVariables = OperationVariables>(mutation: DocumentNode, options?: TMutationOptionsWithContext<TData, TVariables>): MutationTuple<TData, TVariables, TApolloContext>;
13
13
  export { useMcQuery, useMcLazyQuery, useMcMutation };
@@ -1,9 +1,9 @@
1
1
  import type { QueryFunctionOptions } from '@apollo/client/react';
2
2
  import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
3
3
  import type { TFetchApplicationsMenuQuery } from '../../types/generated/proxy';
4
- export declare type MenuKey = 'appBar' | 'navBar';
5
- export declare type MenuLoaderResult<Key extends MenuKey> = Key extends 'appBar' ? TFetchApplicationsMenuQuery['applicationsMenu']['appBar'] : Key extends 'navBar' ? TFetchApplicationsMenuQuery['applicationsMenu']['navBar'] : never;
6
- export declare type Config = {
4
+ export type MenuKey = 'appBar' | 'navBar';
5
+ export type MenuLoaderResult<Key extends MenuKey> = Key extends 'appBar' ? TFetchApplicationsMenuQuery['applicationsMenu']['appBar'] : Key extends 'navBar' ? TFetchApplicationsMenuQuery['applicationsMenu']['navBar'] : never;
6
+ export type Config = {
7
7
  environment: TApplicationContext<{}>['environment'];
8
8
  queryOptions?: {
9
9
  onError?: QueryFunctionOptions['onError'];