@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.
- package/dist/{application-entry-point-a5e0024a.esm.js → application-entry-point-1ae5f4e8.esm.js} +1 -1
- package/dist/{application-entry-point-aa2c7e84.cjs.dev.js → application-entry-point-70fe25e2.cjs.dev.js} +1 -1
- package/dist/{application-entry-point-b55292d8.cjs.prod.js → application-entry-point-d9033fe0.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-c01a777b.esm.js → index-4e02fc7d.esm.js} +12 -12
- package/dist/{index-4a6d85a4.cjs.prod.js → index-5121d456.cjs.prod.js} +6 -6
- package/dist/{index-262372b7.cjs.dev.js → index-b670dcc9.cjs.dev.js} +12 -12
- package/dist/{project-expired-7b0e3eea.cjs.dev.js → project-expired-1d22bd87.cjs.dev.js} +3 -3
- package/dist/{project-expired-61d9514b.esm.js → project-expired-5f0a4280.esm.js} +3 -3
- package/dist/{project-expired-cd9a8e0c.cjs.prod.js → project-expired-be0779a1.cjs.prod.js} +3 -3
- package/dist/{project-not-found-58170d92.cjs.dev.js → project-not-found-24271e19.cjs.dev.js} +3 -3
- package/dist/{project-not-found-59b8b379.cjs.prod.js → project-not-found-38edd86f.cjs.prod.js} +3 -3
- package/dist/{project-not-found-26a09355.esm.js → project-not-found-bbe7f3e3.esm.js} +3 -3
- package/dist/{project-not-initialized-872979f7.esm.js → project-not-initialized-1baffdba.esm.js} +3 -3
- package/dist/{project-not-initialized-98a129a3.cjs.prod.js → project-not-initialized-5421145e.cjs.prod.js} +3 -3
- package/dist/{project-not-initialized-1772e41b.cjs.dev.js → project-not-initialized-e216c26a.cjs.dev.js} +3 -3
- package/dist/{project-suspended-65b9db9f.cjs.prod.js → project-suspended-7b788e80.cjs.prod.js} +3 -3
- package/dist/{project-suspended-1d86f27b.esm.js → project-suspended-a476b2ea.esm.js} +3 -3
- package/dist/{project-suspended-fe774108.cjs.dev.js → project-suspended-b912cf26.cjs.dev.js} +3 -3
- package/dist/{quick-access-4b7707a1.cjs.dev.js → quick-access-85d0adc0.cjs.dev.js} +2 -2
- package/dist/{quick-access-d0b73e0d.cjs.prod.js → quick-access-96835213.cjs.prod.js} +2 -2
- package/dist/{quick-access-2c191668.esm.js → quick-access-da0a782e.esm.js} +2 -2
- package/dist/{service-page-project-switcher-b88b36fe.cjs.prod.js → service-page-project-switcher-28c3b007.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-4ce0f8db.cjs.dev.js → service-page-project-switcher-59207cc6.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-21b3d4f1.esm.js → service-page-project-switcher-95663d25.esm.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
|
@@ -9,33 +9,33 @@ import { type TProviderProps } from '@commercetools-frontend/application-shell-c
|
|
|
9
9
|
import { type TMapNotificationToComponentProps } from '@commercetools-frontend/react-notifications';
|
|
10
10
|
import { type TSdkMock } from '@commercetools-frontend/sdk/test-utils';
|
|
11
11
|
import { createReduxStore } from '../configure-store';
|
|
12
|
-
|
|
12
|
+
type TPermissions = {
|
|
13
13
|
[key: string]: boolean;
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
type TAllAppliedPermission = {
|
|
16
16
|
name: string;
|
|
17
17
|
value: boolean;
|
|
18
18
|
};
|
|
19
19
|
declare const denormalizePermissions: (permissions?: TPermissions) => TAllAppliedPermission[];
|
|
20
|
-
|
|
20
|
+
type TNormalizedActionRights = {
|
|
21
21
|
[key: string]: TPermissions;
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
type TAllAppliedActionRight = TAllAppliedPermission & {
|
|
24
24
|
group: string;
|
|
25
25
|
};
|
|
26
26
|
declare const denormalizeActionRights: (actionRights?: TNormalizedActionRights) => TAllAppliedActionRight[];
|
|
27
|
-
|
|
27
|
+
type TNormalizedDataFenceStorePermissions = {
|
|
28
28
|
[key: string]: {
|
|
29
29
|
values: string[];
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
type TNormalizedDataFenceStores = {
|
|
33
33
|
[key: string]: TNormalizedDataFenceStorePermissions;
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
type TNormalizedDataFences = {
|
|
36
36
|
store: TNormalizedDataFenceStores;
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
type TAllAppliedDataFence = {
|
|
39
39
|
__typename: 'StoreDataFence';
|
|
40
40
|
type: string;
|
|
41
41
|
name: string;
|
|
@@ -44,7 +44,7 @@ declare type TAllAppliedDataFence = {
|
|
|
44
44
|
};
|
|
45
45
|
declare const denormalizeDataFences: (dataFences?: TNormalizedDataFences) => TAllAppliedDataFence[];
|
|
46
46
|
declare const mapResourceAccessToAppliedPermissions: (resourceAccesses: string[]) => TAllAppliedPermission[];
|
|
47
|
-
export
|
|
47
|
+
export type TRenderAppOptions<AdditionalEnvironmentProperties extends {} = {}> = {
|
|
48
48
|
locale: string;
|
|
49
49
|
mocks?: ReadonlyArray<MockedResponse>;
|
|
50
50
|
apolloClient?: ApolloClient<NormalizedCacheObject>;
|
|
@@ -58,18 +58,18 @@ export declare type TRenderAppOptions<AdditionalEnvironmentProperties extends {}
|
|
|
58
58
|
project: Partial<TProviderProps<AdditionalEnvironmentProperties>['project']>;
|
|
59
59
|
dataLocale: TProviderProps<AdditionalEnvironmentProperties>['projectDataLocale'];
|
|
60
60
|
} & rtl.RenderOptions;
|
|
61
|
-
|
|
61
|
+
type TRenderAppResult<AdditionalEnvironmentProperties extends {} = {}> = rtl.RenderResult & Pick<TRenderAppOptions<AdditionalEnvironmentProperties>, 'history' | 'user' | 'project' | 'environment'>;
|
|
62
62
|
declare function renderApp<AdditionalEnvironmentProperties extends {} = {}>(ui: ReactElement, options?: Partial<TRenderAppOptions<AdditionalEnvironmentProperties>>): TRenderAppResult<AdditionalEnvironmentProperties>;
|
|
63
|
-
export
|
|
63
|
+
export type TRenderAppWithReduxOptions<AdditionalEnvironmentProperties extends {} = {}, StoreState extends {} = {}> = {
|
|
64
64
|
store: ReturnType<typeof createReduxStore>;
|
|
65
65
|
storeState: StoreState;
|
|
66
66
|
sdkMocks: TSdkMock[];
|
|
67
67
|
mapNotificationToComponent: TMapNotificationToComponentProps['mapNotificationToComponent'];
|
|
68
68
|
} & TRenderAppOptions<AdditionalEnvironmentProperties>;
|
|
69
|
-
|
|
69
|
+
type TRenderAppWithReduxResult<AdditionalEnvironmentProperties extends {} = {}, StoreState extends {} = {}> = TRenderAppResult<AdditionalEnvironmentProperties> & Pick<TRenderAppWithReduxOptions<AdditionalEnvironmentProperties, StoreState>, 'store'>;
|
|
70
70
|
declare function renderAppWithRedux<AdditionalEnvironmentProperties extends {} = {}, StoreState extends {} = {}>(ui: ReactElement, options?: Partial<TRenderAppWithReduxOptions<AdditionalEnvironmentProperties, StoreState>>): TRenderAppWithReduxResult<AdditionalEnvironmentProperties, StoreState>;
|
|
71
|
-
export
|
|
72
|
-
export
|
|
71
|
+
export type TRenderHookOptions<RenderedHookProps, AdditionalEnvironmentProperties extends {} = {}, StoreState extends {} = {}> = TRenderAppWithReduxOptions<AdditionalEnvironmentProperties, StoreState> & rtlHooks.RenderHookOptions<RenderedHookProps>;
|
|
72
|
+
export type TRenderHookResult<RenderHookCallbackProps, RenderHookCallbackValue, AdditionalEnvironmentProperties extends {} = {}, StoreState extends {} = {}> = rtlHooks.RenderHookResult<RenderHookCallbackProps, RenderHookCallbackValue> & Pick<TRenderAppWithReduxResult<AdditionalEnvironmentProperties, StoreState>, 'store' | 'history' | 'user' | 'project' | 'environment'>;
|
|
73
73
|
declare function renderHook<RenderedHookProps, RenderedHookResult, AdditionalEnvironmentProperties extends {} = {}, StoreState extends {} = {}>(callback: (props: RenderedHookProps) => RenderedHookResult, options?: Partial<TRenderHookOptions<RenderedHookProps, AdditionalEnvironmentProperties, StoreState>>): TRenderHookResult<RenderedHookProps, RenderedHookResult, AdditionalEnvironmentProperties, StoreState>;
|
|
74
74
|
export * from '@testing-library/react';
|
|
75
75
|
declare const hooks: {
|