@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/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 { aL as s, bp as t, bq as o, aM as r, aN as c, aO as n, aP as u, aQ as i, aR as d, aS as l, aT as p, br as b, aU as g, bO as m, aV as S, aW as I, aw as k, bs as T, bt as R, bu as D, bv as y, aX as h, aA as C, aB as A, bH as P, aY as H, aZ as F, bw as v, bP as f, bQ as B, bR as L, bT as O, bV as E, bY as N, b$ as G, c1 as w, c6 as M, c8 as V, cd as x, ci as W, ck as J, cm as U, co as Y, cq as X, cu as Z, cv as _, cw as $, a_ as j, aE as q, a$ as z, bS as K, bU as Q, bW as aa, bZ as ea, b_ as sa, c0 as ta, c2 as oa, c3 as ra, c4 as ca, c5 as na, c7 as ua, c9 as ia, ce as da, cj as la, cl as pa, cn as ba, cp as ga, cr as ma, cs as Sa, ct as Ia, bx as ka, by as Ta, bz as Ra, bA as Da, bI as ya, aJ as ha, bB as Ca, b0 as Aa, bC as Pa, bD as Ha, b1 as Fa, b2 as va, b3 as fa, b4 as Ba, bE as La, cA as Oa, cB as Ea, cD as Na, cE as Ga, cF as wa, cG as Ma, cH as Va, cI as xa, cK as Wa, cL as Ja, cM as Ua, bJ as Ya, b5 as Xa, bK as Za, b6 as _a, b7 as $a, b8 as ja, b9 as qa, bb as za, bc as Ka, bd as Qa, be as ae, bf as ee, bk as se, bg as te, bL as oe, bl as re, bm as ce, bh as ne, bn as ue, bi as ie, bM as de, aK as le, bN as pe, bo as be, bj as ge, aG as me, ab as Se, az as Ie, bF as ke, bG as Te, _ as Re, $ as De, aa as ye, aI as he, cb as Ce, bX as Ae, a0 as Pe, a1 as He, a2 as Fe, ac as ve, ad as fe, af as Be, cP as Le, cQ as Oe, cc as Ee, a3 as Ne, a4 as Ge, a5 as we, cR as Me, cS as Ve, cT as xe, cU as We, cV as Je, ag as Ue, ah as Ye, cJ as Xe, cW as Ze, cz as _e, ae as $e, cX as je, cY as qe, cZ as ze, ai as Ke, aj as Qe, c_ as as, c$ as es, d0 as ss, am as ts, an as os, W as rs, ak as cs, al as ns, aD as us, Y as is, R as ds, cf as ls, cg as ps, ch as bs, a6 as gs, X as ms, Z as Ss, a7 as Is, cx as ks, a8 as Ts, aF as Rs, a9 as Ds, ao as ys, ap as hs, ax as Cs, ay as As, aq as Ps, ar as Hs, as as Fs, ca as vs, at as fs, au as Bs, av as Ls, cC as Os, cN as Es, cO as Ns, aC as Gs, u as ws, aH as Ms, cy as Vs, ba as xs } from "./main-Bc7WPO8T.js";
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
- C as ErrorBoundary,
27
- A as GTMProvider,
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
- Ca as PageError,
81
- Aa as PageHeading,
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
- Ce as flatSelectValues,
135
- Ae as formatCentsToCurrency,
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 referenceOrigins,
181
- Is as removeMillisecondsFromIsoDate,
182
- ks as setApiFormErrors,
183
- Ts as sortAndGroupByDate,
184
- Rs as t,
185
- Ds as timeSeparator,
186
- ys as useAppLinking,
187
- hs as useClickAway,
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
- As as useCoreSdkProvider,
190
- Ps as useDelayShow,
191
- Hs as useEditMetadataOverlay,
192
- Fs as useEditTagsOverlay,
193
- vs as useInputResourceGroupOverlay,
194
- fs as useIsChanged,
195
- Bs as useOnBlurFromContainer,
196
- Ls as useOverlay,
197
- Os as useResourceAddressOverlay,
198
- Es as useResourceFilters,
199
- Ns as useResourceList,
200
- Gs as useTagManager,
201
- ws as useTokenProvider,
202
- Ms as useTranslation,
203
- Vs as useValidationFeedback,
204
- xs as withSkeletonTemplate
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 { TokenProviderAllowedApp, TokenProviderAuthSettings, TokenProviderAuthUser, TokenProviderExtras, TokenProviderRoleActions } from './types';
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: Exclude<TokenProviderAllowedApp, 'dashboard'>) => boolean;
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 needs to match one of the allowed app slugs enabled in the dashboard.
20
- * It is used to persist token for current app only.
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: TokenProviderAllowedApp;
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 { TokenProviderAllowedApp } from '.';
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: TokenProviderAllowedApp[];
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: TokenProviderAllowedApp[];
21
+ accessibleApps: TokenProviderClAppSlug[];
22
22
  };
23
23
  };
24
24
  export declare const reducer: (state: TokenProviderInternalState, action: Action) => TokenProviderInternalState;
@@ -1,13 +1,13 @@
1
- import { TokenProviderAllowedApp } from './types';
1
+ import { TokenProviderAllowedAppSlug } from './types';
2
2
  type ItemType = 'accessToken' | 'extras';
3
3
  export declare function makeStorageKey({ appSlug, organizationSlug, itemType }: {
4
- appSlug: TokenProviderAllowedApp;
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: TokenProviderAllowedApp;
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: TokenProviderAllowedApp;
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 TokenProviderAllowedApp = 'bundles' | 'customers' | 'exports' | 'gift_cards' | 'imports' | 'inventory' | 'orders' | 'price_lists' | 'promotions' | 'returns' | 'shipments' | 'sku_lists' | 'skus' | 'stock_transfers' | 'subscriptions' | 'tags' | 'webhooks' | 'dashboard' | 'resources' | 'generic';
4
- export type TokenProviderTokenApplicationKind = 'integration' | 'sales_channel' | 'webapp' | 'resources' | TokenProviderAllowedApp;
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: TokenProviderAllowedApp;
94
+ kind: TokenProviderAllowedAppKind;
74
95
  core: boolean;
75
96
  }>;
76
97
  }
@@ -1,6 +1,6 @@
1
- import { TokenProviderAllowedApp, TokenProviderTokenApplicationKind } from '.';
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?: TokenProviderAllowedApp[];
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
- export type ClAppKey = `clApp_${TokenProviderAllowedApp}`;
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: TokenProviderAllowedApp): void;
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 interface PageLayoutProps extends Pick<PageHeadingProps, 'title' | 'description' | 'navigationButton' | 'toolbar' | 'gap'>, Pick<ContainerProps, 'minHeight'> {
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
- export declare const PageLayout: import('../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
24
- children: ReactNode;
25
- mode?: "test" | "live"
19
+ } & ({
20
+ overlay?: false;
21
+ } | {
26
22
  /**
27
23
  * Renders as overlay
28
24
  */
29
- | undefined;
30
- overlay?: boolean
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
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercelayer/app-elements",
3
- "version": "5.2.1",
3
+ "version": "5.3.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [