@raystack/frontier 0.110.0 → 0.111.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.
@@ -59,13 +59,15 @@ type AuditLogsViewProps = {
59
59
  appName?: string;
60
60
  /** Callback to export audit logs as CSV with the current query filters applied. */
61
61
  onExportCsv?: (query: RQLRequest) => Promise<void>;
62
- /** Navigation callback for links within audit log entries (e.g. to org/user pages). */
63
- onNavigate?: (path: string) => void;
62
+ /** Navigate to a link in an audit entry (e.g. org/user page). `state` carries the org id. */
63
+ onNavigate?: (path: string, state?: {
64
+ orgId?: string;
65
+ }) => void;
64
66
  };
65
67
  declare function AuditLogsView({ appName, onExportCsv, onNavigate }?: AuditLogsViewProps): react_jsx_runtime.JSX.Element;
66
68
 
67
69
  type AdminsViewProps = {
68
- onNavigateToOrg?: (orgId: string) => void;
70
+ onNavigateToOrg?: (slug: string, orgId: string) => void;
69
71
  /** Icon rendered in the page header next to the title. */
70
72
  icon?: ReactNode;
71
73
  };
@@ -119,8 +121,8 @@ declare function UsersView({ selectedUserId, onCloseDetail, onExportUsers, onNav
119
121
  type OrganizationListViewProps = {
120
122
  /** App name displayed in the page title (e.g. "Frontier Admin"). */
121
123
  appName?: string;
122
- /** Called when a user clicks on an organization row. Use to navigate to the org detail page. */
123
- onNavigateToOrg?: (id: string) => void;
124
+ /** Row click → navigate to the org. `slug` for the URL, `orgId` for the lookup. */
125
+ onNavigateToOrg?: (slug: string, orgId: string) => void;
124
126
  /** Callback to export organizations list as CSV. Shown in navbar when provided. */
125
127
  onExportCsv?: () => Promise<void>;
126
128
  /** List of allowed organization types for filtering / creation. */
@@ -151,8 +153,10 @@ type OrganizationDetailsViewProps = {
151
153
  organizationTypes?: string[];
152
154
  /** Current browser path (e.g. `location.pathname`) for highlighting active nav tabs. */
153
155
  currentPath: string;
154
- /** Navigation callback for tab switches (e.g. `useNavigate()` from react-router-dom). */
155
- onNavigate: (path: string) => void;
156
+ /** Navigation for tabs/breadcrumbs; `state` carries the org id (fast path). */
157
+ onNavigate: (path: string, state?: {
158
+ orgId?: string;
159
+ }) => void;
156
160
  children?: React.ReactNode;
157
161
  };
158
162
  declare const OrganizationDetailsView: ({ organizationId, onExportMembers, onExportProjects, onExportTokens, appUrl, tokenProductId, countries, organizationTypes, currentPath, onNavigate, children, }: OrganizationDetailsViewProps) => react_jsx_runtime.JSX.Element;