@raystack/frontier 0.110.0 → 0.112.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/admin/dist/index.d.ts +11 -7
- package/admin/dist/index.js +596 -659
- package/admin/dist/index.mjs +445 -508
- package/client/dist/index.js +130 -132
- package/client/dist/index.mjs +130 -132
- package/package.json +1 -1
package/admin/dist/index.d.ts
CHANGED
|
@@ -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
|
-
/**
|
|
63
|
-
onNavigate?: (path: string
|
|
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
|
-
/**
|
|
123
|
-
onNavigateToOrg?: (
|
|
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
|
|
155
|
-
onNavigate: (path: string
|
|
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;
|