@raystack/frontier 0.86.1 → 0.86.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raystack/frontier",
3
- "version": "0.86.1",
3
+ "version": "0.86.2",
4
4
  "description": "A js library for frontier",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -417,8 +417,27 @@ declare function usePreferences({ autoFetch }?: {
417
417
 
418
418
  interface LayoutProps {
419
419
  title: string;
420
+ description?: string;
421
+ }
422
+ declare function Layout({ title, description, children }: PropsWithChildren<LayoutProps>): react_jsx_runtime.JSX.Element;
423
+
424
+ interface PageHeaderProps {
425
+ title: string;
426
+ description?: string | ReactNode$1;
420
427
  }
421
- declare function Layout({ title, children }: PropsWithChildren<LayoutProps>): react_jsx_runtime.JSX.Element;
428
+ /**
429
+ * PageHeader - Component for displaying page header with a title and optional description on top of SDK pages.
430
+ *
431
+ * @param title - The main heading text for the page
432
+ * @param description - Optional description text or ReactNode displayed below the title
433
+ *
434
+ * @example
435
+ * <PageHeader
436
+ * title="Sessions"
437
+ * description="Devices logged into this account."
438
+ * />
439
+ */
440
+ declare const PageHeader: ({ title, description }: PageHeaderProps) => react_jsx_runtime.JSX.Element;
422
441
 
423
442
  declare const PREFERENCE_OPTIONS: {
424
443
  readonly NEWSLETTER: "newsletter";
@@ -438,4 +457,4 @@ declare function timestampToDayjs(timestamp?: Timestamp): Dayjs | null;
438
457
  declare function isNullTimestamp(timestamp?: Timestamp): boolean;
439
458
  type TimeStamp = Timestamp;
440
459
 
441
- export { AvatarUpload, Container, CreateOrganization, CustomizationProvider, FrontierClientBillingOptions, FrontierClientCustomizationOptions, FrontierClientOptions, FrontierProvider, Header, Layout, MagicLink, MagicLinkVerify, OrganizationProfile, PREFERENCE_OPTIONS, SignIn, SignUp, Subscribe, TimeStamp, Updates, Window, isNullTimestamp, queryClient, timestampToDate, timestampToDayjs, useBillingPermission, useConnectQueryPolling, useFrontier, usePreferences, useTokens };
460
+ export { AvatarUpload, Container, CreateOrganization, CustomizationProvider, FrontierClientBillingOptions, FrontierClientCustomizationOptions, FrontierClientOptions, FrontierProvider, Header, Layout, MagicLink, MagicLinkVerify, OrganizationProfile, PREFERENCE_OPTIONS, PageHeader, SignIn, SignUp, Subscribe, TimeStamp, Updates, Window, isNullTimestamp, queryClient, timestampToDate, timestampToDayjs, useBillingPermission, useConnectQueryPolling, useFrontier, usePreferences, useTokens };