@commercetools-frontend/application-shell 21.8.0 → 21.10.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.
- package/dist/{application-entry-point-f22a0ec9.cjs.dev.js → application-entry-point-4de6686c.cjs.dev.js} +48 -14
- package/dist/{application-entry-point-dc4da815.cjs.prod.js → application-entry-point-9a23a345.cjs.prod.js} +48 -14
- package/dist/{application-entry-point-14c74303.esm.js → application-entry-point-a5b662f7.esm.js} +48 -16
- package/dist/commercetools-frontend-application-shell.cjs.dev.js +9 -4
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +9 -4
- package/dist/commercetools-frontend-application-shell.esm.js +6 -4
- package/dist/{constants-3cf6ed64.esm.js → constants-a3c850be.esm.js} +4 -1
- package/dist/{constants-bf2e1d68.cjs.dev.js → constants-c2c238ff.cjs.prod.js} +4 -1
- package/dist/{constants-f34da47c.cjs.prod.js → constants-d9a5241e.cjs.dev.js} +4 -1
- package/dist/declarations/src/components/requests-in-flight-loader/reducer.d.ts +1 -1
- package/dist/declarations/src/configure-apollo.d.ts +2 -1
- package/dist/declarations/src/constants.d.ts +3 -0
- package/dist/declarations/src/export-types.d.ts +9 -0
- package/dist/declarations/src/index.d.ts +2 -0
- package/dist/declarations/src/test-utils/test-utils.d.ts +3 -3
- package/dist/declarations/src/types/generated/ctp.d.ts +603 -4
- package/dist/declarations/src/types/generated/mc.d.ts +11 -0
- package/dist/declarations/src/types/generated/settings.d.ts +104 -8
- package/dist/declarations/src/utils/get-previous-project-key/get-previous-project-key.d.ts +1 -1
- package/dist/declarations/src/utils/gtm.d.ts +3 -3
- package/dist/declarations/src/utils/http-client.d.ts +19 -0
- package/dist/declarations/src/utils/oidc-storage.d.ts +2 -2
- package/dist/{index-691497c4.esm.js → index-5062ecc2.esm.js} +254 -102
- package/dist/{index-b937ebec.cjs.prod.js → index-e96ff96a.cjs.prod.js} +257 -100
- package/dist/{index-b67a270d.cjs.dev.js → index-f576ae07.cjs.dev.js} +257 -100
- package/dist/{oidc-82e151f9.cjs.prod.js → oidc-5b507512.cjs.prod.js} +1 -1
- package/dist/{oidc-8af521ca.esm.js → oidc-5cae2dba.esm.js} +1 -1
- package/dist/{oidc-ff089e6f.cjs.dev.js → oidc-9134face.cjs.dev.js} +1 -1
- package/dist/{project-expired-3ff8b6af.cjs.dev.js → project-expired-1f22bb6e.cjs.dev.js} +7 -5
- package/dist/{project-expired-f6ee2c5a.cjs.prod.js → project-expired-3802e644.cjs.prod.js} +7 -5
- package/dist/{project-expired-af63adca.esm.js → project-expired-609688e8.esm.js} +7 -5
- package/dist/{project-not-found-4d6af409.cjs.prod.js → project-not-found-2bf5f586.cjs.dev.js} +7 -5
- package/dist/{project-not-found-0fb97434.cjs.dev.js → project-not-found-345a1103.cjs.prod.js} +7 -5
- package/dist/{project-not-found-a8ec89b8.esm.js → project-not-found-931cbb6b.esm.js} +7 -5
- package/dist/{project-not-initialized-1a4af9f3.cjs.dev.js → project-not-initialized-24d58aac.cjs.dev.js} +7 -5
- package/dist/{project-not-initialized-7fb913bb.esm.js → project-not-initialized-69a8f77c.esm.js} +7 -5
- package/dist/{project-not-initialized-e67beb94.cjs.prod.js → project-not-initialized-f840b682.cjs.prod.js} +7 -5
- package/dist/{project-suspended-dc511990.cjs.prod.js → project-suspended-283ebad8.cjs.prod.js} +7 -5
- package/dist/{project-suspended-a3e8e976.cjs.dev.js → project-suspended-a21d49f2.cjs.dev.js} +7 -5
- package/dist/{project-suspended-b8d28c48.esm.js → project-suspended-b650b271.esm.js} +7 -5
- package/dist/{quick-access-69f5ce27.esm.js → quick-access-193a477e.esm.js} +6 -4
- package/dist/{quick-access-3c5120c2.cjs.prod.js → quick-access-6368a1c1.cjs.prod.js} +6 -4
- package/dist/{quick-access-c71b6351.cjs.dev.js → quick-access-d42f4898.cjs.dev.js} +6 -4
- package/dist/{service-page-project-switcher-76aa47ce.cjs.dev.js → service-page-project-switcher-5d2bef22.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-7dcfaf3a.cjs.prod.js → service-page-project-switcher-5e28ee0f.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-dffc7091.esm.js → service-page-project-switcher-ea8878cf.esm.js} +1 -1
- package/package.json +41 -41
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +2 -2
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +2 -2
- package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +2 -2
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +2 -2
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +2 -2
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +2 -2
|
@@ -4,8 +4,10 @@ export declare const DIMENSIONS: {
|
|
|
4
4
|
readonly navMenuExpanded: "200px";
|
|
5
5
|
};
|
|
6
6
|
export declare const SUPPORTED_HEADERS: {
|
|
7
|
+
readonly ACCEPT: "Accept";
|
|
7
8
|
readonly ACCEPT_VERSION: "Accept-version";
|
|
8
9
|
readonly AUTHORIZATION: "Authorization";
|
|
10
|
+
readonly CONTENT_TYPE: "Content-Type";
|
|
9
11
|
readonly X_APPLICATION_ID: "X-Application-Id";
|
|
10
12
|
readonly X_CORRELATION_ID: "X-Correlation-Id";
|
|
11
13
|
readonly X_FEATURE_FLAG: "X-Feature-Flag";
|
|
@@ -16,6 +18,7 @@ export declare const SUPPORTED_HEADERS: {
|
|
|
16
18
|
readonly X_PROJECT_KEY: "X-Project-Key";
|
|
17
19
|
readonly X_TEAM_ID: "X-Team-Id";
|
|
18
20
|
readonly X_TOKEN_RETRY: "X-Force-Token";
|
|
21
|
+
readonly X_USER_AGENT: "X-User-Agent";
|
|
19
22
|
};
|
|
20
23
|
export declare const CONTAINERS: {
|
|
21
24
|
readonly LOCALE_SWITCHER: "locale-switcher-container";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TApolloContext as ApolloContext, TForwardToAudiencePolicy as ForwardToAudiencePolicy } from './utils/apollo-context';
|
|
2
|
+
import type { TFetcher, TFetcherResponse, THeaders, TConfig, TOptions } 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;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './export-types';
|
|
1
2
|
export { default as version } from './version';
|
|
2
3
|
export { default as ApplicationShell } from './components/application-shell';
|
|
3
4
|
export { default as ApplicationShellProvider } from './components/application-shell-provider';
|
|
@@ -13,6 +14,7 @@ export { default as SetupFlopFlipProvider } from './components/setup-flop-flip-p
|
|
|
13
14
|
export { default as ConfigureIntlProvider } from './components/configure-intl-provider';
|
|
14
15
|
export { default as SuspendedRoute } from './components/suspended-route';
|
|
15
16
|
export { useMcQuery, useMcLazyQuery, useMcMutation, } from './hooks/apollo-hooks';
|
|
17
|
+
export { buildApiUrl, createHttpClientOptions, executeHttpClientRequest, } from './utils/http-client';
|
|
16
18
|
export { entryPointUriPathToPermissionKeys, entryPointUriPathToResourceAccesses, } from '@commercetools-frontend/application-config/ssr';
|
|
17
19
|
export { ToggleFeature, injectFeatureToggle, injectFeatureToggles, branchOnFeatureToggle, ConfigureFlopFlip, ReconfigureFlopFlip, useFeatureToggle, useFeatureToggles, useFlagVariation, useFlagVariations, useAdapterStatus, useAdapterReconfiguration, } from '@flopflip/react-broadcast';
|
|
18
20
|
export { default as ldAdapter } from '@flopflip/launchdarkly-adapter';
|
|
@@ -16,14 +16,14 @@ declare type TAllAppliedPermission = {
|
|
|
16
16
|
name: string;
|
|
17
17
|
value: boolean;
|
|
18
18
|
};
|
|
19
|
-
declare const denormalizePermissions: (permissions?: TPermissions
|
|
19
|
+
declare const denormalizePermissions: (permissions?: TPermissions) => TAllAppliedPermission[];
|
|
20
20
|
declare type TNormalizedActionRights = {
|
|
21
21
|
[key: string]: TPermissions;
|
|
22
22
|
};
|
|
23
23
|
declare type TAllAppliedActionRight = TAllAppliedPermission & {
|
|
24
24
|
group: string;
|
|
25
25
|
};
|
|
26
|
-
declare const denormalizeActionRights: (actionRights?: TNormalizedActionRights
|
|
26
|
+
declare const denormalizeActionRights: (actionRights?: TNormalizedActionRights) => TAllAppliedActionRight[];
|
|
27
27
|
declare type TNormalizedDataFenceStorePermissions = {
|
|
28
28
|
[key: string]: {
|
|
29
29
|
values: string[];
|
|
@@ -42,7 +42,7 @@ declare type TAllAppliedDataFence = {
|
|
|
42
42
|
value: string;
|
|
43
43
|
group: string;
|
|
44
44
|
};
|
|
45
|
-
declare const denormalizeDataFences: (dataFences?: TNormalizedDataFences
|
|
45
|
+
declare const denormalizeDataFences: (dataFences?: TNormalizedDataFences) => TAllAppliedDataFence[];
|
|
46
46
|
declare const mapResourceAccessToAppliedPermissions: (resourceAccesses: string[]) => TAllAppliedPermission[];
|
|
47
47
|
export declare type TRenderAppOptions<AdditionalEnvironmentProperties = {}> = {
|
|
48
48
|
locale: string;
|