@commercelayer/app-elements 5.2.1 → 5.3.1
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/{CodeEditorComponent-sOC76yJV.js → CodeEditorComponent-CdciMcym.js} +1 -1
- package/dist/{InputDateComponent-BUnPCCDe.js → InputDateComponent-zfJcwzvy.js} +1 -1
- package/dist/{en-BmYJPi7w.js → en-BH0MKopU.js} +2 -1
- package/dist/helpers/appsNavigation.d.ts +3 -3
- package/dist/helpers/transactions.d.ts +7 -0
- package/dist/helpers/transactions.test.d.ts +1 -0
- package/dist/helpers/useAppLinking.d.ts +2 -3
- package/dist/{it-BG6oL8Br.js → it-CgBMZHQa.js} +2 -1
- package/dist/locales/en.d.ts +1 -0
- package/dist/{main-Bc7WPO8T.js → main-tnQun6Mf.js} +2602 -2597
- package/dist/main.d.ts +2 -1
- package/dist/main.js +32 -31
- package/dist/providers/TokenProvider/TokenProvider.d.ts +5 -5
- package/dist/providers/TokenProvider/index.d.ts +1 -1
- package/dist/providers/TokenProvider/reducer.d.ts +3 -3
- package/dist/providers/TokenProvider/storage.d.ts +4 -4
- package/dist/providers/TokenProvider/types.d.ts +24 -3
- package/dist/providers/TokenProvider/validateToken.d.ts +3 -3
- package/dist/providers/createApp.d.ts +3 -3
- package/dist/ui/composite/PageLayout.d.ts +37 -11
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { downloadJsonAsFile } from './helpers/downloadJsonAsFile';
|
|
|
6
6
|
export { computeFullname, formatDisplayName } from './helpers/name';
|
|
7
7
|
export { formatResourceName, getResourceEndpoint, type TriggerAttribute } from './helpers/resources';
|
|
8
8
|
export { getAvatarSrcFromRate, getParcelTrackingDetail, getParcelTrackingDetails, getShipmentRate, getShipmentRates, hasBeenPurchased, hasSingleTracking, type Rate, type TrackingDetail } from './helpers/tracking';
|
|
9
|
+
export { orderTransactionIsAnAsyncCapture } from './helpers/transactions';
|
|
9
10
|
export { getUnitOfWeightName, getUnitsOfWeightForSelect, type UnitOfWeight } from './helpers/unitsOfWeight';
|
|
10
11
|
export { useAppLinking } from './helpers/useAppLinking';
|
|
11
12
|
export { useClickAway } from './hooks/useClickAway';
|
|
@@ -20,7 +21,7 @@ export { createApp, type ClAppKey, type ClAppProps } from './providers/createApp
|
|
|
20
21
|
export { ErrorBoundary } from './providers/ErrorBoundary';
|
|
21
22
|
export { GTMProvider, useTagManager } from './providers/GTMProvider';
|
|
22
23
|
export { i18nLocales, I18NProvider, t, Trans, useTranslation, type I18NLocale } from './providers/I18NProvider';
|
|
23
|
-
export { encodeExtras, MetaTags, TokenProvider, useTokenProvider, type TokenProviderAllowedApp, type TokenProviderExtras, type TokenProviderPermissionItem, type TokenProviderRoleActions, type TokenProviderRolePermissions, type TokenProviderTokenApplicationKind } from './providers/TokenProvider';
|
|
24
|
+
export { encodeExtras, MetaTags, TokenProvider, useTokenProvider, type TokenProviderAllowedApp, type TokenProviderAllowedAppKind, type TokenProviderAllowedAppSlug, type TokenProviderClAppSlug, type TokenProviderExtras, type TokenProviderPermissionItem, type TokenProviderRoleActions, type TokenProviderRolePermissions, type TokenProviderTokenApplicationKind } from './providers/TokenProvider';
|
|
24
25
|
export { A, type AProps } from './ui/atoms/A';
|
|
25
26
|
export { Alert, type AlertProps } from './ui/atoms/Alert';
|
|
26
27
|
export { Avatar, type AvatarProps } from './ui/atoms/Avatar';
|
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { aM as s, bq as t, br as o, aN as r, aO as c, aP as n, aQ as u, aR as i, aS as d, aT as l, aU as p, bs as b, aV as g, bP as m, aW as S, aX as I, ax as k, bt as T, bu as R, bv as D, bw as y, aY as h, aB as A, aC as C, bI as P, aZ as H, a_ as F, bx as v, bQ as f, bR as B, bS as L, bU as O, bW as E, bZ as N, c0 as G, c2 as w, c7 as M, c9 as V, ce as x, cj as W, cl as J, cn as U, cp as Y, cr as X, cv as Z, cw as _, cx as $, a$ as j, aF as q, b0 as z, bT as K, bV as Q, bX as aa, b_ as ea, b$ as sa, c1 as ta, c3 as oa, c4 as ra, c5 as ca, c6 as na, c8 as ua, ca as ia, cf as da, ck as la, cm as pa, co as ba, cq as ga, cs as ma, ct as Sa, cu as Ia, by as ka, bz as Ta, bA as Ra, bB as Da, bJ as ya, aK as ha, bC as Aa, b1 as Ca, bD as Pa, bE as Ha, b2 as Fa, b3 as va, b4 as fa, b5 as Ba, bF as La, cB as Oa, cC as Ea, cE as Na, cF as Ga, cG as wa, cH as Ma, cI as Va, cJ as xa, cL as Wa, cM as Ja, cN as Ua, bK as Ya, b6 as Xa, bL as Za, b7 as _a, b8 as $a, b9 as ja, ba as qa, bc as za, bd as Ka, be as Qa, bf as ae, bg as ee, bl as se, bh as te, bM as oe, bm as re, bn as ce, bi as ne, bo as ue, bj as ie, bN as de, aL as le, bO as pe, bp as be, bk as ge, aH as me, ab as Se, aA as Ie, bG as ke, bH as Te, _ as Re, $ as De, aa as ye, aJ as he, cc as Ae, bY as Ce, a0 as Pe, a1 as He, a2 as Fe, ac as ve, ad as fe, af as Be, cQ as Le, cR as Oe, cd as Ee, a3 as Ne, a4 as Ge, a5 as we, cS as Me, cT as Ve, cU as xe, cV as We, cW as Je, ag as Ue, ah as Ye, cK as Xe, cX as Ze, cA as _e, ae as $e, cY as je, cZ as qe, c_ as ze, ai as Ke, aj as Qe, c$ as as, d0 as es, d1 as ss, an as ts, ao as os, W as rs, ak as cs, al as ns, aE as us, Y as is, R as ds, cg as ls, ch as ps, ci as bs, a6 as gs, X as ms, am as Ss, Z as Is, a7 as ks, cy as Ts, a8 as Rs, aG as Ds, a9 as ys, ap as hs, aq as As, ay as Cs, az as Ps, ar as Hs, as as Fs, at as vs, cb as fs, au as Bs, av as Ls, aw as Os, cD as Es, cO as Ns, cP as Gs, aD as ws, u as Ms, aI as Vs, cz as xs, bb as Ws } from "./main-tnQun6Mf.js";
|
|
3
3
|
export {
|
|
4
4
|
s as A,
|
|
5
5
|
t as ActionButtons,
|
|
@@ -23,8 +23,8 @@ export {
|
|
|
23
23
|
D as DropdownItem,
|
|
24
24
|
y as DropdownSearch,
|
|
25
25
|
h as EmptyState,
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
A as ErrorBoundary,
|
|
27
|
+
C as GTMProvider,
|
|
28
28
|
P as GenericPageNotFound,
|
|
29
29
|
H as Grid,
|
|
30
30
|
F as Hint,
|
|
@@ -77,8 +77,8 @@ export {
|
|
|
77
77
|
Da as ListItem,
|
|
78
78
|
ya as LoadingPage,
|
|
79
79
|
ha as MetaTags,
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
Aa as PageError,
|
|
81
|
+
Ca as PageHeading,
|
|
82
82
|
Pa as PageLayout,
|
|
83
83
|
Ha as PageSkeleton,
|
|
84
84
|
Fa as Pagination,
|
|
@@ -131,8 +131,8 @@ export {
|
|
|
131
131
|
De as currencyInputSelectOptions,
|
|
132
132
|
ye as downloadJsonAsFile,
|
|
133
133
|
he as encodeExtras,
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
Ae as flatSelectValues,
|
|
135
|
+
Ce as formatCentsToCurrency,
|
|
136
136
|
Pe as formatDate,
|
|
137
137
|
He as formatDateRange,
|
|
138
138
|
Fe as formatDateWithPredicate,
|
|
@@ -177,29 +177,30 @@ export {
|
|
|
177
177
|
bs as isSingleValueSelected,
|
|
178
178
|
gs as makeDateYearsRange,
|
|
179
179
|
ms as navigateTo,
|
|
180
|
-
Ss as
|
|
181
|
-
Is as
|
|
182
|
-
ks as
|
|
183
|
-
Ts as
|
|
184
|
-
Rs as
|
|
185
|
-
Ds as
|
|
186
|
-
ys as
|
|
187
|
-
hs as
|
|
180
|
+
Ss as orderTransactionIsAnAsyncCapture,
|
|
181
|
+
Is as referenceOrigins,
|
|
182
|
+
ks as removeMillisecondsFromIsoDate,
|
|
183
|
+
Ts as setApiFormErrors,
|
|
184
|
+
Rs as sortAndGroupByDate,
|
|
185
|
+
Ds as t,
|
|
186
|
+
ys as timeSeparator,
|
|
187
|
+
hs as useAppLinking,
|
|
188
|
+
As as useClickAway,
|
|
188
189
|
Cs as useCoreApi,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
190
|
+
Ps as useCoreSdkProvider,
|
|
191
|
+
Hs as useDelayShow,
|
|
192
|
+
Fs as useEditMetadataOverlay,
|
|
193
|
+
vs as useEditTagsOverlay,
|
|
194
|
+
fs as useInputResourceGroupOverlay,
|
|
195
|
+
Bs as useIsChanged,
|
|
196
|
+
Ls as useOnBlurFromContainer,
|
|
197
|
+
Os as useOverlay,
|
|
198
|
+
Es as useResourceAddressOverlay,
|
|
199
|
+
Ns as useResourceFilters,
|
|
200
|
+
Gs as useResourceList,
|
|
201
|
+
ws as useTagManager,
|
|
202
|
+
Ms as useTokenProvider,
|
|
203
|
+
Vs as useTranslation,
|
|
204
|
+
xs as useValidationFeedback,
|
|
205
|
+
Ws as withSkeletonTemplate
|
|
205
206
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { TokenProviderTokenApplicationKind } from '.';
|
|
2
2
|
import { ListableResourceType } from '@commercelayer/sdk';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { TokenProviderAllowedAppSlug, TokenProviderAuthSettings, TokenProviderAuthUser, TokenProviderClAppSlug, TokenProviderExtras, TokenProviderRoleActions } from './types';
|
|
5
5
|
export interface TokenProviderValue {
|
|
6
6
|
settings: TokenProviderAuthSettings;
|
|
7
7
|
user: TokenProviderAuthUser | null;
|
|
8
8
|
canUser: (action: TokenProviderRoleActions, resource: ListableResourceType) => boolean;
|
|
9
|
-
canAccess: (appSlug:
|
|
9
|
+
canAccess: (appSlug: TokenProviderClAppSlug) => boolean;
|
|
10
10
|
emitInvalidAuth: (reason: string) => void;
|
|
11
11
|
}
|
|
12
12
|
export interface TokenProviderProps {
|
|
@@ -16,10 +16,10 @@ export interface TokenProviderProps {
|
|
|
16
16
|
*/
|
|
17
17
|
kind: TokenProviderTokenApplicationKind;
|
|
18
18
|
/**
|
|
19
|
-
* The slug of the current app. It
|
|
20
|
-
* It is used
|
|
19
|
+
* The slug of the current app. It could match one of the allowed apps or a custom string.
|
|
20
|
+
* It is used as the app identifier (e.g. storage key).
|
|
21
21
|
*/
|
|
22
|
-
appSlug:
|
|
22
|
+
appSlug: TokenProviderAllowedAppSlug;
|
|
23
23
|
/**
|
|
24
24
|
* Set this to `true` to skip domain slug validation in dev mode.
|
|
25
25
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { encodeExtras } from './extras';
|
|
2
2
|
export { MetaTags } from './MetaTags';
|
|
3
3
|
export { TokenProvider, useTokenProvider } from './TokenProvider';
|
|
4
|
-
export type { TokenProviderAllowedApp, TokenProviderExtras, TokenProviderPermissionItem, TokenProviderRoleActions, TokenProviderRolePermissions, TokenProviderTokenApplicationKind } from './types';
|
|
4
|
+
export type { TokenProviderAllowedApp, TokenProviderAllowedAppKind, TokenProviderAllowedAppSlug, TokenProviderClAppSlug, TokenProviderExtras, TokenProviderPermissionItem, TokenProviderRoleActions, TokenProviderRolePermissions, TokenProviderTokenApplicationKind } from './types';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TokenProviderClAppSlug } from '.';
|
|
2
2
|
import { TokenProviderAuthSettings, TokenProviderAuthUser, TokenProviderRolePermissions } from './types';
|
|
3
3
|
interface TokenProviderInternalState {
|
|
4
4
|
validAuthToken?: string;
|
|
5
5
|
isLoading: boolean;
|
|
6
6
|
isTokenError: boolean;
|
|
7
7
|
rolePermissions: TokenProviderRolePermissions;
|
|
8
|
-
accessibleApps:
|
|
8
|
+
accessibleApps: TokenProviderClAppSlug[];
|
|
9
9
|
settings: TokenProviderAuthSettings;
|
|
10
10
|
user: TokenProviderAuthUser | null;
|
|
11
11
|
}
|
|
@@ -18,7 +18,7 @@ type Action = {
|
|
|
18
18
|
settings: TokenProviderAuthSettings;
|
|
19
19
|
user: TokenProviderAuthUser | null;
|
|
20
20
|
rolePermissions: TokenProviderRolePermissions;
|
|
21
|
-
accessibleApps:
|
|
21
|
+
accessibleApps: TokenProviderClAppSlug[];
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
export declare const reducer: (state: TokenProviderInternalState, action: Action) => TokenProviderInternalState;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TokenProviderAllowedAppSlug } from './types';
|
|
2
2
|
type ItemType = 'accessToken' | 'extras';
|
|
3
3
|
export declare function makeStorageKey({ appSlug, organizationSlug, itemType }: {
|
|
4
|
-
appSlug:
|
|
4
|
+
appSlug: TokenProviderAllowedAppSlug;
|
|
5
5
|
organizationSlug: string;
|
|
6
6
|
itemType: ItemType;
|
|
7
7
|
}): string;
|
|
8
8
|
export declare function getPersistentJWT({ appSlug, organizationSlug, itemType }: {
|
|
9
9
|
/** The app for which to get the token. */
|
|
10
|
-
appSlug:
|
|
10
|
+
appSlug: TokenProviderAllowedAppSlug;
|
|
11
11
|
/** The organization slug for the token we want to retrieve. */
|
|
12
12
|
organizationSlug?: string;
|
|
13
13
|
/** The JWT item type you want to retrieve. */
|
|
@@ -15,7 +15,7 @@ export declare function getPersistentJWT({ appSlug, organizationSlug, itemType }
|
|
|
15
15
|
}): string | null;
|
|
16
16
|
export declare function savePersistentJWT({ appSlug, jwt, organizationSlug, itemType }: {
|
|
17
17
|
/** The app for which to get the token. */
|
|
18
|
-
appSlug:
|
|
18
|
+
appSlug: TokenProviderAllowedAppSlug;
|
|
19
19
|
/** The token to save. */
|
|
20
20
|
jwt: string;
|
|
21
21
|
/** The organization slug for the token we want to store. */
|
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
import { ParsedScopes } from './getInfoFromJwt';
|
|
2
2
|
import { ListableResourceType } from '@commercelayer/sdk';
|
|
3
|
-
export type
|
|
4
|
-
|
|
3
|
+
export type TokenProviderClAppSlug = 'bundles' | 'customers' | 'exports' | 'gift_cards' | 'imports' | 'inventory' | 'orders' | 'price_lists' | 'promotions' | 'returns' | 'shipments' | 'sku_lists' | 'skus' | 'stock_transfers' | 'subscriptions' | 'tags' | 'webhooks';
|
|
4
|
+
/**
|
|
5
|
+
* TokenProviderAllowedApp is a type that contains all the possible kinds of the app that you can create inside the dashboard.
|
|
6
|
+
* As a convention Commerce Layer official apps have a slug that matches the kind of the app.
|
|
7
|
+
*/
|
|
8
|
+
export type TokenProviderAllowedAppKind = TokenProviderClAppSlug | 'generic';
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `TokenProviderAllowedAppKind` instead.
|
|
11
|
+
*/
|
|
12
|
+
export type TokenProviderAllowedApp = TokenProviderAllowedAppKind;
|
|
13
|
+
/**
|
|
14
|
+
* The application slug. It could match one of the allowed apps or a custom string.
|
|
15
|
+
* It is used as the app identifier (e.g. storage key).
|
|
16
|
+
*/
|
|
17
|
+
export type TokenProviderAllowedAppSlug = TokenProviderClAppSlug | (string & {});
|
|
18
|
+
/**
|
|
19
|
+
* TokenProviderTokenApplicationKind is a type that contains all the suitable api credential kinds.
|
|
20
|
+
* Depending on the kind, it could be used to identify:
|
|
21
|
+
* - an authentication api credential (eg. `integration`, `sales_channel`, `webapp`)
|
|
22
|
+
* - a particular feature in the dashboard (eg. `resources`, `links`)
|
|
23
|
+
* - an app with its dedicated set of permissions (eg. `order`, `customers`, etc...)
|
|
24
|
+
*/
|
|
25
|
+
export type TokenProviderTokenApplicationKind = 'integration' | 'sales_channel' | 'webapp' | 'resources' | 'links' | TokenProviderAllowedAppKind;
|
|
5
26
|
export type TokenProviderRoleActions = 'create' | 'destroy' | 'read' | 'update';
|
|
6
27
|
export type TokenProviderPermissionItem = Record<TokenProviderRoleActions, boolean>;
|
|
7
28
|
export type TokenProviderRolePermissions = Partial<Record<ListableResourceType | 'organizations', TokenProviderPermissionItem>>;
|
|
@@ -70,7 +91,7 @@ export interface TokenProviderTokenInfo {
|
|
|
70
91
|
*/
|
|
71
92
|
accessible_apps?: Array<{
|
|
72
93
|
name: string;
|
|
73
|
-
kind:
|
|
94
|
+
kind: TokenProviderAllowedAppKind;
|
|
74
95
|
core: boolean;
|
|
75
96
|
}>;
|
|
76
97
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TokenProviderTokenApplicationKind } from '.';
|
|
2
2
|
import { ParsedScopes } from './getInfoFromJwt';
|
|
3
|
-
import { Mode, TokenProviderAuthUser, TokenProviderRolePermissions } from './types';
|
|
3
|
+
import { Mode, TokenProviderAuthUser, TokenProviderClAppSlug, TokenProviderRolePermissions } from './types';
|
|
4
4
|
export declare function isTokenExpired({ accessToken, compareTo }: {
|
|
5
5
|
accessToken: string;
|
|
6
6
|
compareTo: Date;
|
|
@@ -11,7 +11,7 @@ interface ValidToken {
|
|
|
11
11
|
mode: Mode;
|
|
12
12
|
organizationSlug: string;
|
|
13
13
|
permissions?: TokenProviderRolePermissions;
|
|
14
|
-
accessibleApps?:
|
|
14
|
+
accessibleApps?: TokenProviderClAppSlug[];
|
|
15
15
|
user: TokenProviderAuthUser | null;
|
|
16
16
|
scopes?: ParsedScopes;
|
|
17
17
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { Root } from 'react-dom/client';
|
|
3
|
-
import { TokenProviderAllowedApp } from './TokenProvider';
|
|
4
3
|
import { TokenProviderProps } from './TokenProvider/TokenProvider';
|
|
5
|
-
|
|
4
|
+
import { TokenProviderAllowedAppSlug } from './TokenProvider/types';
|
|
5
|
+
export type ClAppKey = `clApp_${TokenProviderAllowedAppSlug}`;
|
|
6
6
|
/**
|
|
7
7
|
* Method to mount the React application in the provider `node` with the set of options passed as `props`.
|
|
8
8
|
*/
|
|
@@ -31,5 +31,5 @@ export interface ClAppProps extends Partial<Omit<TokenProviderProps, 'appSlug' |
|
|
|
31
31
|
* The React application will them be mounted into the provided `node` element, when the `init` method is called.
|
|
32
32
|
* @param children - The root component of the app.
|
|
33
33
|
**/
|
|
34
|
-
export declare function createApp(children: (props: ClAppProps) => ReactNode, appSlug:
|
|
34
|
+
export declare function createApp(children: (props: ClAppProps) => ReactNode, appSlug: TokenProviderAllowedAppSlug): void;
|
|
35
35
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ContainerProps } from '../atoms/Container';
|
|
2
2
|
import { PageHeadingProps } from '../atoms/PageHeading';
|
|
3
|
+
import { OverlayProps } from '../internals/Overlay';
|
|
3
4
|
import { ReactNode } from 'react';
|
|
4
|
-
export
|
|
5
|
+
export type PageLayoutProps = Pick<PageHeadingProps, 'title' | 'description' | 'navigationButton' | 'toolbar' | 'gap'> & Pick<ContainerProps, 'minHeight'> & {
|
|
5
6
|
/**
|
|
6
7
|
* Page content
|
|
7
8
|
*/
|
|
@@ -11,28 +12,44 @@ export interface PageLayoutProps extends Pick<PageHeadingProps, 'title' | 'descr
|
|
|
11
12
|
* Only if app is standalone mode.
|
|
12
13
|
*/
|
|
13
14
|
mode?: 'test' | 'live';
|
|
14
|
-
/**
|
|
15
|
-
* Renders as overlay
|
|
16
|
-
*/
|
|
17
|
-
overlay?: boolean;
|
|
18
15
|
/**
|
|
19
16
|
* Optional prop to enable scroll to top behavior on location change
|
|
20
17
|
*/
|
|
21
18
|
scrollToTop?: boolean;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
mode?: "test" | "live"
|
|
19
|
+
} & ({
|
|
20
|
+
overlay?: false;
|
|
21
|
+
} | {
|
|
26
22
|
/**
|
|
27
23
|
* Renders as overlay
|
|
28
24
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
overlay: true;
|
|
26
|
+
/**
|
|
27
|
+
* Footer element to be rendered at the bottom of the overlay.
|
|
28
|
+
**/
|
|
29
|
+
overlayFooter?: OverlayProps['footer'];
|
|
30
|
+
});
|
|
31
|
+
export declare const PageLayout: import('../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
32
|
+
description?: ReactNode;
|
|
33
|
+
title: ReactNode;
|
|
34
|
+
toolbar?: import('../atoms/PageHeading/PageHeadingToolbar').PageHeadingToolbarProps | undefined;
|
|
35
|
+
gap?: "none" | "only-top" | "only-bottom" | "both" | undefined;
|
|
36
|
+
navigationButton?: {
|
|
37
|
+
label: string;
|
|
38
|
+
onClick: () => void;
|
|
39
|
+
icon?: "x" | "arrowLeft";
|
|
40
|
+
} | undefined;
|
|
41
|
+
minHeight?: boolean | undefined;
|
|
42
|
+
children: ReactNode;
|
|
43
|
+
mode?: "test" | "live"
|
|
31
44
|
/**
|
|
32
45
|
* Optional prop to enable scroll to top behavior on location change
|
|
33
46
|
*/
|
|
34
47
|
| undefined;
|
|
35
48
|
scrollToTop?: boolean | undefined;
|
|
49
|
+
overlay?: false | undefined;
|
|
50
|
+
delayMs?: number | undefined;
|
|
51
|
+
isLoading?: boolean | undefined;
|
|
52
|
+
} | {
|
|
36
53
|
description?: ReactNode;
|
|
37
54
|
title: ReactNode;
|
|
38
55
|
toolbar?: import('../atoms/PageHeading/PageHeadingToolbar').PageHeadingToolbarProps | undefined;
|
|
@@ -43,6 +60,15 @@ export declare const PageLayout: import('../atoms/SkeletonTemplate').SkeletonTem
|
|
|
43
60
|
icon?: "x" | "arrowLeft";
|
|
44
61
|
} | undefined;
|
|
45
62
|
minHeight?: boolean | undefined;
|
|
63
|
+
children: ReactNode;
|
|
64
|
+
mode?: "test" | "live"
|
|
65
|
+
/**
|
|
66
|
+
* Optional prop to enable scroll to top behavior on location change
|
|
67
|
+
*/
|
|
68
|
+
| undefined;
|
|
69
|
+
scrollToTop?: boolean | undefined;
|
|
70
|
+
overlay: true;
|
|
71
|
+
overlayFooter?: ReactNode;
|
|
46
72
|
delayMs?: number | undefined;
|
|
47
73
|
isLoading?: boolean | undefined;
|
|
48
74
|
}>;
|