@commercetools-frontend/application-shell 21.9.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-9df8f75e.cjs.dev.js → application-entry-point-4de6686c.cjs.dev.js} +48 -14
- package/dist/{application-entry-point-0650332e.cjs.prod.js → application-entry-point-9a23a345.cjs.prod.js} +48 -14
- package/dist/{application-entry-point-f104319e.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/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/types/generated/ctp.d.ts +15 -1
- package/dist/declarations/src/utils/http-client.d.ts +19 -0
- package/dist/{index-edd1f296.esm.js → index-5062ecc2.esm.js} +254 -102
- package/dist/{index-3dac983e.cjs.prod.js → index-e96ff96a.cjs.prod.js} +257 -100
- package/dist/{index-b0b16985.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-23ed250a.cjs.prod.js → project-expired-1f22bb6e.cjs.dev.js} +7 -5
- package/dist/{project-expired-5f0f3bb2.cjs.dev.js → project-expired-3802e644.cjs.prod.js} +7 -5
- package/dist/{project-expired-e4b56600.esm.js → project-expired-609688e8.esm.js} +7 -5
- package/dist/{project-not-found-24cd5af4.cjs.dev.js → project-not-found-2bf5f586.cjs.dev.js} +7 -5
- package/dist/{project-not-found-cf44540b.cjs.prod.js → project-not-found-345a1103.cjs.prod.js} +7 -5
- package/dist/{project-not-found-11ee63f2.esm.js → project-not-found-931cbb6b.esm.js} +7 -5
- package/dist/{project-not-initialized-e5b36044.cjs.dev.js → project-not-initialized-24d58aac.cjs.dev.js} +7 -5
- package/dist/{project-not-initialized-23dd0a8d.esm.js → project-not-initialized-69a8f77c.esm.js} +7 -5
- package/dist/{project-not-initialized-f160d31e.cjs.prod.js → project-not-initialized-f840b682.cjs.prod.js} +7 -5
- package/dist/{project-suspended-f6f25355.cjs.prod.js → project-suspended-283ebad8.cjs.prod.js} +7 -5
- package/dist/{project-suspended-ad97c11c.cjs.dev.js → project-suspended-a21d49f2.cjs.dev.js} +7 -5
- package/dist/{project-suspended-5b470857.esm.js → project-suspended-b650b271.esm.js} +7 -5
- package/dist/{quick-access-5223e91a.esm.js → quick-access-193a477e.esm.js} +6 -4
- package/dist/{quick-access-cdb8ce9e.cjs.prod.js → quick-access-6368a1c1.cjs.prod.js} +6 -4
- package/dist/{quick-access-4077e80d.cjs.dev.js → quick-access-d42f4898.cjs.dev.js} +6 -4
- package/dist/{service-page-project-switcher-ab9d0c0e.cjs.dev.js → service-page-project-switcher-5d2bef22.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-057e819c.cjs.prod.js → service-page-project-switcher-5e28ee0f.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-f29ee61d.esm.js → service-page-project-switcher-ea8878cf.esm.js} +1 -1
- package/package.json +16 -16
- 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
|
@@ -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';
|
|
@@ -119,6 +119,7 @@ export declare type TAddCartLineItem = {
|
|
|
119
119
|
externalPrice?: InputMaybe<TBaseMoneyInput>;
|
|
120
120
|
externalTaxRate?: InputMaybe<TExternalTaxRateDraft>;
|
|
121
121
|
externalTotalPrice?: InputMaybe<TExternalLineItemTotalPriceDraft>;
|
|
122
|
+
inventoryMode?: InputMaybe<TInventoryMode>;
|
|
122
123
|
productId?: InputMaybe<Scalars['String']>;
|
|
123
124
|
quantity?: InputMaybe<Scalars['Long']>;
|
|
124
125
|
shippingDetails?: InputMaybe<TItemShippingDetailsDraft>;
|
|
@@ -321,6 +322,7 @@ export declare type TAddStagedOrderLineItem = {
|
|
|
321
322
|
externalPrice?: InputMaybe<TBaseMoneyInput>;
|
|
322
323
|
externalTaxRate?: InputMaybe<TExternalTaxRateDraft>;
|
|
323
324
|
externalTotalPrice?: InputMaybe<TExternalLineItemTotalPriceDraft>;
|
|
325
|
+
inventoryMode?: InputMaybe<TInventoryMode>;
|
|
324
326
|
productId?: InputMaybe<Scalars['String']>;
|
|
325
327
|
quantity?: InputMaybe<Scalars['Long']>;
|
|
326
328
|
shippingDetails?: InputMaybe<TItemShippingDetailsDraftType>;
|
|
@@ -513,6 +515,9 @@ export declare type TApplyCartDeltaToLineItemShippingDetailsTargets = {
|
|
|
513
515
|
lineItemId: Scalars['String'];
|
|
514
516
|
targetsDelta: Array<TShippingTargetDraft>;
|
|
515
517
|
};
|
|
518
|
+
export declare type TApplyStagedChanges = {
|
|
519
|
+
dummy?: InputMaybe<Scalars['String']>;
|
|
520
|
+
};
|
|
516
521
|
export declare type TAsset = {
|
|
517
522
|
__typename?: 'Asset';
|
|
518
523
|
custom?: Maybe<TCustomFieldsType>;
|
|
@@ -3219,7 +3224,7 @@ export declare type TLineItem = {
|
|
|
3219
3224
|
distributionChannel?: Maybe<TChannel>;
|
|
3220
3225
|
distributionChannelRef?: Maybe<TReference>;
|
|
3221
3226
|
id: Scalars['String'];
|
|
3222
|
-
inventoryMode?: Maybe<
|
|
3227
|
+
inventoryMode?: Maybe<TInventoryMode>;
|
|
3223
3228
|
lastModifiedAt?: Maybe<Scalars['DateTime']>;
|
|
3224
3229
|
lineItemMode: TLineItemMode;
|
|
3225
3230
|
name?: Maybe<Scalars['String']>;
|
|
@@ -3257,6 +3262,7 @@ export declare type TLineItemDraft = {
|
|
|
3257
3262
|
externalPrice?: InputMaybe<TBaseMoneyInput>;
|
|
3258
3263
|
externalTaxRate?: InputMaybe<TExternalTaxRateDraft>;
|
|
3259
3264
|
externalTotalPrice?: InputMaybe<TExternalLineItemTotalPriceDraft>;
|
|
3265
|
+
inventoryMode?: InputMaybe<TInventoryMode>;
|
|
3260
3266
|
productId?: InputMaybe<Scalars['String']>;
|
|
3261
3267
|
quantity?: InputMaybe<Scalars['Long']>;
|
|
3262
3268
|
shippingDetails?: InputMaybe<TItemShippingDetailsDraft>;
|
|
@@ -3272,6 +3278,7 @@ export declare type TLineItemDraftOutput = {
|
|
|
3272
3278
|
externalPrice?: Maybe<TBaseMoney>;
|
|
3273
3279
|
externalTaxRate?: Maybe<TExternalTaxRateDraftOutput>;
|
|
3274
3280
|
externalTotalPrice?: Maybe<TExternalLineItemTotalPrice>;
|
|
3281
|
+
inventoryMode?: Maybe<TInventoryMode>;
|
|
3275
3282
|
productId?: Maybe<Scalars['String']>;
|
|
3276
3283
|
quantity?: Maybe<Scalars['Long']>;
|
|
3277
3284
|
shippingDetails?: Maybe<TItemShippingDetailsDraftOutput>;
|
|
@@ -9801,6 +9808,7 @@ export declare type TStandalonePrice = TVersioned & {
|
|
|
9801
9808
|
custom?: Maybe<TCustomFieldsType>;
|
|
9802
9809
|
customerGroupRef?: Maybe<TReference>;
|
|
9803
9810
|
discounted?: Maybe<TDiscountedProductPriceValue>;
|
|
9811
|
+
expiresAt?: Maybe<Scalars['DateTime']>;
|
|
9804
9812
|
id: Scalars['String'];
|
|
9805
9813
|
key?: Maybe<Scalars['String']>;
|
|
9806
9814
|
lastModifiedAt: Scalars['DateTime'];
|
|
@@ -9846,7 +9854,13 @@ export declare type TStandalonePriceQueryResult = {
|
|
|
9846
9854
|
results: Array<TStandalonePrice>;
|
|
9847
9855
|
total: Scalars['Long'];
|
|
9848
9856
|
};
|
|
9857
|
+
export declare type TStandalonePriceStagedChangesApplied = TMessagePayload & {
|
|
9858
|
+
__typename?: 'StandalonePriceStagedChangesApplied';
|
|
9859
|
+
stagedChanges: TStagedPriceValue;
|
|
9860
|
+
type: Scalars['String'];
|
|
9861
|
+
};
|
|
9849
9862
|
export declare type TStandalonePriceUpdateAction = {
|
|
9863
|
+
applyStagedChanges?: InputMaybe<TApplyStagedChanges>;
|
|
9850
9864
|
changeValue?: InputMaybe<TChangeStandalonePriceValue>;
|
|
9851
9865
|
setCustomField?: InputMaybe<TSetStandalonePriceCustomFields>;
|
|
9852
9866
|
setCustomType?: InputMaybe<TCustomFieldsDraft>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare type THeaders = Record<string, string>;
|
|
2
|
+
export declare type TConfig = {
|
|
3
|
+
userAgent?: string;
|
|
4
|
+
headers?: THeaders;
|
|
5
|
+
};
|
|
6
|
+
export declare type TOptions = {
|
|
7
|
+
credentials: 'include';
|
|
8
|
+
headers: THeaders;
|
|
9
|
+
};
|
|
10
|
+
export declare type TFetcherResponse<Data> = {
|
|
11
|
+
data: Data;
|
|
12
|
+
statusCode: number;
|
|
13
|
+
getHeader: (headerName: string) => string | null;
|
|
14
|
+
};
|
|
15
|
+
export declare type TFetcher<Data> = (options: TOptions) => Promise<TFetcherResponse<Data>>;
|
|
16
|
+
declare function buildApiUrl(endpoint: string): string;
|
|
17
|
+
declare function createHttpClientOptions(config?: TConfig): TOptions;
|
|
18
|
+
declare function executeHttpClientRequest<Data>(fetcher: TFetcher<Data>, config?: TConfig): Promise<Data>;
|
|
19
|
+
export { buildApiUrl, createHttpClientOptions, executeHttpClientRequest };
|