@commercetools-frontend/application-shell 21.23.6 → 21.23.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{application-entry-point-a5e0024a.esm.js → application-entry-point-3de5bb7b.esm.js} +1 -1
- package/dist/{application-entry-point-aa2c7e84.cjs.dev.js → application-entry-point-47bc3ef6.cjs.dev.js} +1 -1
- package/dist/{application-entry-point-b55292d8.cjs.prod.js → application-entry-point-920662c3.cjs.prod.js} +1 -1
- package/dist/commercetools-frontend-application-shell.cjs.dev.js +2 -2
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +2 -2
- package/dist/commercetools-frontend-application-shell.esm.js +2 -2
- package/dist/declarations/src/components/app-bar/app-bar.d.ts +1 -1
- package/dist/declarations/src/components/application-entry-point/application-entry-point.d.ts +1 -1
- package/dist/declarations/src/components/application-loader/application-loader.d.ts +1 -1
- package/dist/declarations/src/components/application-page-title/application-page-title.d.ts +1 -1
- package/dist/declarations/src/components/application-shell/application-shell.d.ts +1 -1
- package/dist/declarations/src/components/application-shell/redirect-to-logout.d.ts +2 -2
- package/dist/declarations/src/components/application-shell-provider/application-shell-provider.d.ts +1 -1
- package/dist/declarations/src/components/application-shell-provider/use-coerced-environment-values.d.ts +1 -1
- package/dist/declarations/src/components/authenticated/am-i-logged-in.d.ts +2 -2
- package/dist/declarations/src/components/authenticated/authenticated.d.ts +2 -2
- package/dist/declarations/src/components/authenticated/oidc-callback-error-page.d.ts +1 -1
- package/dist/declarations/src/components/authenticated/oidc-callback.d.ts +1 -1
- package/dist/declarations/src/components/authenticated/types.d.ts +1 -1
- package/dist/declarations/src/components/back-to-project/back-to-project.d.ts +1 -1
- package/dist/declarations/src/components/configure-intl-provider/configure-intl-provider.d.ts +1 -1
- package/dist/declarations/src/components/error-boundary/error-boundary.d.ts +2 -2
- package/dist/declarations/src/components/fetch-project/fetch-project.d.ts +2 -2
- package/dist/declarations/src/components/fetch-user/fetch-user.d.ts +2 -2
- package/dist/declarations/src/components/gtm-application-tracker/gtm-application-tracker.d.ts +1 -1
- package/dist/declarations/src/components/gtm-booter/gtm-booter.d.ts +2 -2
- package/dist/declarations/src/components/gtm-user-tracker/gtm-user-tracker.d.ts +2 -2
- package/dist/declarations/src/components/inject-reducers/inject-reducers.d.ts +1 -1
- package/dist/declarations/src/components/loading-placeholder/loading-placeholder.d.ts +1 -1
- package/dist/declarations/src/components/locale-switcher/locale-switcher.d.ts +2 -2
- package/dist/declarations/src/components/navbar/navbar.d.ts +2 -2
- package/dist/declarations/src/components/navbar/use-navbar-state-manager.d.ts +1 -1
- package/dist/declarations/src/components/project-container/project-container.d.ts +2 -2
- package/dist/declarations/src/components/project-data-locale/project-data-locale.d.ts +2 -2
- package/dist/declarations/src/components/project-suspended/project-suspended.d.ts +1 -1
- package/dist/declarations/src/components/project-switcher/project-switcher.d.ts +2 -2
- package/dist/declarations/src/components/quick-access/butler/butler.d.ts +1 -1
- package/dist/declarations/src/components/quick-access/butler-command/butler-command.d.ts +1 -1
- package/dist/declarations/src/components/quick-access/create-commands.d.ts +1 -1
- package/dist/declarations/src/components/quick-access/index.d.ts +1 -1
- package/dist/declarations/src/components/quick-access/quick-access.d.ts +1 -1
- package/dist/declarations/src/components/quick-access/sub-commands.d.ts +2 -2
- package/dist/declarations/src/components/quick-access/types.d.ts +9 -9
- package/dist/declarations/src/components/redirector/redirector.d.ts +3 -3
- package/dist/declarations/src/components/requests-in-flight-loader/types.d.ts +3 -3
- package/dist/declarations/src/components/setup-flop-flip-provider/setup-flop-flip-provider.d.ts +1 -1
- package/dist/declarations/src/components/user-settings-menu/user-settings-menu.d.ts +2 -2
- package/dist/declarations/src/configure-apollo.d.ts +1 -1
- package/dist/declarations/src/configure-store.d.ts +1 -1
- package/dist/declarations/src/export-types.d.ts +7 -7
- package/dist/declarations/src/hooks/apollo-hooks/apollo-hooks.d.ts +5 -5
- package/dist/declarations/src/hooks/use-applications-menu/use-applications-menu.d.ts +3 -3
- package/dist/declarations/src/test-utils/test-utils.d.ts +14 -14
- package/dist/declarations/src/types/generated/ctp.d.ts +1744 -1744
- package/dist/declarations/src/types/generated/mc.d.ts +103 -103
- package/dist/declarations/src/types/generated/proxy.d.ts +17 -17
- package/dist/declarations/src/types/generated/settings.d.ts +248 -248
- package/dist/declarations/src/utils/apollo-context.d.ts +1 -1
- package/dist/declarations/src/utils/gtm.d.ts +3 -3
- package/dist/declarations/src/utils/http-client.d.ts +9 -9
- package/dist/declarations/src/utils/oidc.d.ts +1 -1
- package/dist/{index-4a6d85a4.cjs.prod.js → index-02840607.cjs.prod.js} +6 -6
- package/dist/{index-c01a777b.esm.js → index-a365497c.esm.js} +12 -12
- package/dist/{index-262372b7.cjs.dev.js → index-c669d80d.cjs.dev.js} +12 -12
- package/dist/{project-expired-7b0e3eea.cjs.dev.js → project-expired-4c31c076.cjs.dev.js} +3 -3
- package/dist/{project-expired-cd9a8e0c.cjs.prod.js → project-expired-73cd56a4.cjs.prod.js} +3 -3
- package/dist/{project-expired-61d9514b.esm.js → project-expired-dddb8bdd.esm.js} +3 -3
- package/dist/{project-not-found-26a09355.esm.js → project-not-found-78888b62.esm.js} +3 -3
- package/dist/{project-not-found-59b8b379.cjs.prod.js → project-not-found-995fe44d.cjs.prod.js} +3 -3
- package/dist/{project-not-found-58170d92.cjs.dev.js → project-not-found-cdc721b9.cjs.dev.js} +3 -3
- package/dist/{project-not-initialized-1772e41b.cjs.dev.js → project-not-initialized-84fcd111.cjs.dev.js} +3 -3
- package/dist/{project-not-initialized-872979f7.esm.js → project-not-initialized-850948aa.esm.js} +3 -3
- package/dist/{project-not-initialized-98a129a3.cjs.prod.js → project-not-initialized-f51eadf1.cjs.prod.js} +3 -3
- package/dist/{project-suspended-1d86f27b.esm.js → project-suspended-22a5fa09.esm.js} +3 -3
- package/dist/{project-suspended-fe774108.cjs.dev.js → project-suspended-874df94f.cjs.dev.js} +3 -3
- package/dist/{project-suspended-65b9db9f.cjs.prod.js → project-suspended-ae0665f4.cjs.prod.js} +3 -3
- package/dist/{quick-access-2c191668.esm.js → quick-access-b7d195a8.esm.js} +2 -2
- package/dist/{quick-access-4b7707a1.cjs.dev.js → quick-access-cc7bf7ae.cjs.dev.js} +2 -2
- package/dist/{quick-access-d0b73e0d.cjs.prod.js → quick-access-fb3e1a02.cjs.prod.js} +2 -2
- package/dist/{service-page-project-switcher-b88b36fe.cjs.prod.js → service-page-project-switcher-59cf960d.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-21b3d4f1.esm.js → service-page-project-switcher-65d7e109.esm.js} +1 -1
- package/dist/{service-page-project-switcher-4ce0f8db.cjs.dev.js → service-page-project-switcher-f4369b5b.cjs.dev.js} +1 -1
- package/package.json +47 -47
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +1 -1
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +1 -1
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +1 -1
package/dist/{application-entry-point-a5e0024a.esm.js → application-entry-point-3de5bb7b.esm.js}
RENAMED
|
@@ -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.
|
|
73
|
+
var version = "21.23.8";
|
|
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.
|
|
116
|
+
var version = "21.23.8";
|
|
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.
|
|
115
|
+
var version = "21.23.8";
|
|
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-
|
|
6
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
5
|
+
var applicationEntryPoint = require('./application-entry-point-47bc3ef6.cjs.dev.js');
|
|
6
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-c669d80d.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-
|
|
6
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
5
|
+
var applicationEntryPoint = require('./application-entry-point-920662c3.cjs.prod.js');
|
|
6
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-02840607.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-
|
|
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-
|
|
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-3de5bb7b.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-a365497c.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';
|
package/dist/declarations/src/components/application-entry-point/application-entry-point.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TProviderProps } from '@commercetools-frontend/application-shell-connectors';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
|
|
3
|
+
type Props<AdditionalEnvironmentProperties extends {}> = {
|
|
4
4
|
environment: TProviderProps<AdditionalEnvironmentProperties>['environment'];
|
|
5
5
|
disableRoutePermissionCheck?: boolean;
|
|
6
6
|
render?: () => JSX.Element;
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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;
|
package/dist/declarations/src/components/application-shell-provider/application-shell-provider.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
2
|
+
type ShallowJson = {
|
|
3
3
|
[key: string]: unknown;
|
|
4
4
|
};
|
|
5
5
|
declare const useCoercedEnvironmentValues: <AdditionalEnvironmentProperties extends {}>(environment: ShallowJson) => AdditionalEnvironmentProperties & {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
|
|
3
|
-
|
|
3
|
+
type RenderFnArgs = {
|
|
4
4
|
isAuthenticated: boolean;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type TProps = {
|
|
7
7
|
render: (args: RenderFnArgs) => JSX.Element;
|
|
8
8
|
locale: string;
|
|
9
9
|
applicationMessages: TAsyncLocaleDataProps['applicationMessages'];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Component, ErrorInfo, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
type Props = {
|
|
3
3
|
pathname?: string;
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
};
|
|
6
|
-
|
|
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
|
-
|
|
4
|
+
type RenderFnArgs = {
|
|
5
5
|
isLoading: boolean;
|
|
6
6
|
error?: ApolloError;
|
|
7
7
|
project: TFetchProjectQuery['project'];
|
|
8
8
|
};
|
|
9
|
-
|
|
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
|
-
|
|
4
|
+
type RenderFnArgs = {
|
|
5
5
|
isLoading: boolean;
|
|
6
6
|
error?: ApolloError;
|
|
7
7
|
user: TFetchLoggedInUserQuery['user'];
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type Props = {
|
|
10
10
|
children: (args: RenderFnArgs) => ReactNode;
|
|
11
11
|
};
|
|
12
12
|
declare const FetchUser: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type TGtmTrackingEventList = {
|
|
3
3
|
[key: string]: string;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
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
|
-
|
|
3
|
-
|
|
2
|
+
type TFetchedUser = TFetchLoggedInUserQuery['user'];
|
|
3
|
+
type Props = {
|
|
4
4
|
user: TFetchedUser;
|
|
5
5
|
};
|
|
6
6
|
declare const GtmUserTracker: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { SingleValueProps } from 'react-select';
|
|
2
|
-
|
|
2
|
+
type CustomSingleValueProps = SingleValueProps & {
|
|
3
3
|
localeCount: number;
|
|
4
4
|
};
|
|
5
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
5
|
+
type QueryParams = {
|
|
6
6
|
projectKey: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
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
|
-
|
|
2
|
+
type RenderFnArgs = {
|
|
3
3
|
locale: string;
|
|
4
4
|
setProjectDataLocale: (locale: string) => void;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type Props = {
|
|
7
7
|
locales: string[];
|
|
8
8
|
children: (args: RenderFnArgs) => ReactNode;
|
|
9
9
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { OptionProps, ValueContainerProps } from 'react-select';
|
|
2
|
-
|
|
2
|
+
type Props = {
|
|
3
3
|
projectKey?: string;
|
|
4
4
|
};
|
|
5
|
-
|
|
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,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
|
-
|
|
4
|
+
type CreateCommandsOptions = {
|
|
5
5
|
intl: IntlShape;
|
|
6
6
|
applicationContext: TApplicationContext<{}>;
|
|
7
7
|
featureToggles: {
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
|
8
|
-
export
|
|
9
|
-
export
|
|
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
|
|
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
|
|
21
|
-
export
|
|
22
|
-
export
|
|
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
|
|
27
|
+
export type HistoryEntry = {
|
|
28
28
|
searchText: SearchText;
|
|
29
29
|
results: Command[];
|
|
30
30
|
};
|
|
31
|
-
export
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
4
|
-
export
|
|
3
|
+
export type TRequestsInFlightState = string[];
|
|
4
|
+
export type TShowRequestInFlightAction = Action<typeof SHOW_LOADING> & {
|
|
5
5
|
payload: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type THideRequestInFlightAction = Action<typeof HIDE_LOADING> & {
|
|
8
8
|
payload: string;
|
|
9
9
|
};
|
package/dist/declarations/src/components/setup-flop-flip-provider/setup-flop-flip-provider.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
4
|
-
|
|
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,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
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
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
|
-
|
|
4
|
+
type TQueryOptionsWithContext<TData = unknown, TVariables extends OperationVariables = OperationVariables> = QueryHookOptions<TData, TVariables> & {
|
|
5
5
|
context: TApolloContext;
|
|
6
6
|
};
|
|
7
|
-
|
|
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
|
|
5
|
-
export
|
|
6
|
-
export
|
|
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'];
|