@fonderie/react-admin-screens 0.8.0 → 1.0.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/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { AdminClient, ConfigAdminClient, CourierAdminClient, AuthAdminClient, BillingAdminClient, AuditAdminClient } from '@fonderie/client';
3
3
 
4
- type AdminPage = 'attention' | 'modules' | 'doctor' | 'config' | 'routes' | 'migrations' | 'tokens' | 'log' | 'settings' | 'templates' | 'users' | 'catalog' | 'subscriber' | 'audit';
4
+ type AdminPage = 'attention' | 'modules' | 'doctor' | 'environment' | 'routes' | 'migrations' | 'tokens' | 'log' | 'settings' | 'templates' | 'users' | 'catalog' | 'subscriber' | 'audit';
5
5
  interface IAdminShellProps {
6
6
  client: AdminClient;
7
7
  configClient?: ConfigAdminClient;
@@ -30,10 +30,10 @@ interface IDoctorScreenProps {
30
30
  }
31
31
  declare function DoctorScreen({ client }: IDoctorScreenProps): react.JSX.Element;
32
32
 
33
- interface IConfigScreenProps {
33
+ interface IEnvironmentScreenProps {
34
34
  client: AdminClient;
35
35
  }
36
- declare function ConfigScreen({ client }: IConfigScreenProps): react.JSX.Element;
36
+ declare function EnvironmentScreen({ client }: IEnvironmentScreenProps): react.JSX.Element;
37
37
 
38
38
  interface IRoutesScreenProps {
39
39
  client: AdminClient;
@@ -79,4 +79,4 @@ interface IAuditScreenProps {
79
79
  }
80
80
  declare function AuditScreen({ client, pageSize }: IAuditScreenProps): react.JSX.Element;
81
81
 
82
- export { AdminLogScreen, type AdminPage, AdminShell, AttentionScreen, AuditScreen, CatalogScreen, ConfigScreen, DoctorScreen, type IAdminLogScreenProps, type IAdminShellProps, type IAttentionScreenProps, type IAuditScreenProps, type ICatalogScreenProps, type IConfigScreenProps, type IDoctorScreenProps, type IMigrationsScreenProps, type IModulesScreenProps, type IRoutesScreenProps, type ISubscriberScreenProps, type ITokensScreenProps, type IUsersScreenProps, MigrationsScreen, ModulesScreen, RoutesScreen, SubscriberScreen, TokensScreen, UsersScreen };
82
+ export { AdminLogScreen, type AdminPage, AdminShell, AttentionScreen, AuditScreen, CatalogScreen, DoctorScreen, EnvironmentScreen, type IAdminLogScreenProps, type IAdminShellProps, type IAttentionScreenProps, type IAuditScreenProps, type ICatalogScreenProps, type IDoctorScreenProps, type IEnvironmentScreenProps, type IMigrationsScreenProps, type IModulesScreenProps, type IRoutesScreenProps, type ISubscriberScreenProps, type ITokensScreenProps, type IUsersScreenProps, MigrationsScreen, ModulesScreen, RoutesScreen, SubscriberScreen, TokensScreen, UsersScreen };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { AdminClient, ConfigAdminClient, CourierAdminClient, AuthAdminClient, BillingAdminClient, AuditAdminClient } from '@fonderie/client';
3
3
 
4
- type AdminPage = 'attention' | 'modules' | 'doctor' | 'config' | 'routes' | 'migrations' | 'tokens' | 'log' | 'settings' | 'templates' | 'users' | 'catalog' | 'subscriber' | 'audit';
4
+ type AdminPage = 'attention' | 'modules' | 'doctor' | 'environment' | 'routes' | 'migrations' | 'tokens' | 'log' | 'settings' | 'templates' | 'users' | 'catalog' | 'subscriber' | 'audit';
5
5
  interface IAdminShellProps {
6
6
  client: AdminClient;
7
7
  configClient?: ConfigAdminClient;
@@ -30,10 +30,10 @@ interface IDoctorScreenProps {
30
30
  }
31
31
  declare function DoctorScreen({ client }: IDoctorScreenProps): react.JSX.Element;
32
32
 
33
- interface IConfigScreenProps {
33
+ interface IEnvironmentScreenProps {
34
34
  client: AdminClient;
35
35
  }
36
- declare function ConfigScreen({ client }: IConfigScreenProps): react.JSX.Element;
36
+ declare function EnvironmentScreen({ client }: IEnvironmentScreenProps): react.JSX.Element;
37
37
 
38
38
  interface IRoutesScreenProps {
39
39
  client: AdminClient;
@@ -79,4 +79,4 @@ interface IAuditScreenProps {
79
79
  }
80
80
  declare function AuditScreen({ client, pageSize }: IAuditScreenProps): react.JSX.Element;
81
81
 
82
- export { AdminLogScreen, type AdminPage, AdminShell, AttentionScreen, AuditScreen, CatalogScreen, ConfigScreen, DoctorScreen, type IAdminLogScreenProps, type IAdminShellProps, type IAttentionScreenProps, type IAuditScreenProps, type ICatalogScreenProps, type IConfigScreenProps, type IDoctorScreenProps, type IMigrationsScreenProps, type IModulesScreenProps, type IRoutesScreenProps, type ISubscriberScreenProps, type ITokensScreenProps, type IUsersScreenProps, MigrationsScreen, ModulesScreen, RoutesScreen, SubscriberScreen, TokensScreen, UsersScreen };
82
+ export { AdminLogScreen, type AdminPage, AdminShell, AttentionScreen, AuditScreen, CatalogScreen, DoctorScreen, EnvironmentScreen, type IAdminLogScreenProps, type IAdminShellProps, type IAttentionScreenProps, type IAuditScreenProps, type ICatalogScreenProps, type IDoctorScreenProps, type IEnvironmentScreenProps, type IMigrationsScreenProps, type IModulesScreenProps, type IRoutesScreenProps, type ISubscriberScreenProps, type ITokensScreenProps, type IUsersScreenProps, MigrationsScreen, ModulesScreen, RoutesScreen, SubscriberScreen, TokensScreen, UsersScreen };
package/dist/index.js CHANGED
@@ -225,11 +225,11 @@ function AttentionScreen({ client }) {
225
225
  ] });
226
226
  }
227
227
 
228
- // src/screens/ConfigScreen.tsx
229
- import { useAdminConfig } from "@fonderie/react-admin";
228
+ // src/screens/EnvironmentScreen.tsx
229
+ import { useAdminEnvironment } from "@fonderie/react-admin";
230
230
  import { Fragment as Fragment2, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
231
- function ConfigScreen({ client }) {
232
- const { report, isLoading, error } = useAdminConfig(client);
231
+ function EnvironmentScreen({ client }) {
232
+ const { report, isLoading, error } = useAdminEnvironment(client);
233
233
  return /* @__PURE__ */ jsxs3("div", { style: styles.container, children: [
234
234
  /* @__PURE__ */ jsx3("h1", { style: styles.title, children: "Configuration" }),
235
235
  isLoading ? /* @__PURE__ */ jsx3("p", { style: styles.status, children: "Loading\u2026" }) : error ? /* @__PURE__ */ jsx3("p", { style: styles.error, role: "alert", children: error.explanation }) : report ? /* @__PURE__ */ jsxs3(Fragment2, { children: [
@@ -1179,7 +1179,7 @@ var NAV = [
1179
1179
  group: "System",
1180
1180
  items: [
1181
1181
  { page: "modules", label: "Modules" },
1182
- { page: "config", label: "Configuration" },
1182
+ { page: "environment", label: "Environment" },
1183
1183
  { page: "doctor", label: "Doctor" },
1184
1184
  { page: "routes", label: "Routes" }
1185
1185
  ]
@@ -1240,8 +1240,8 @@ function AdminShell({
1240
1240
  case "doctor":
1241
1241
  body = /* @__PURE__ */ jsx13(DoctorScreen, { client });
1242
1242
  break;
1243
- case "config":
1244
- body = /* @__PURE__ */ jsx13(ConfigScreen, { client });
1243
+ case "environment":
1244
+ body = /* @__PURE__ */ jsx13(EnvironmentScreen, { client });
1245
1245
  break;
1246
1246
  case "routes":
1247
1247
  body = /* @__PURE__ */ jsx13(RoutesScreen, { client });
@@ -1341,8 +1341,8 @@ export {
1341
1341
  AttentionScreen,
1342
1342
  AuditScreen,
1343
1343
  CatalogScreen,
1344
- ConfigScreen,
1345
1344
  DoctorScreen,
1345
+ EnvironmentScreen,
1346
1346
  MigrationsScreen,
1347
1347
  ModulesScreen,
1348
1348
  RoutesScreen,