@fonderie/react-admin-screens 1.5.0 → 1.6.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/index.cjs +567 -472
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -16
- package/dist/index.d.ts +31 -16
- package/dist/index.js +595 -469
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { AdminClient, ConfigAdminClient, CourierAdminClient, AuthAdminClient, BillingAdminClient, AuditAdminClient, SubscriberType } from '@fonderie/client';
|
|
3
|
+
import { AdminClient, ConfigAdminClient, CourierAdminClient, AuthAdminClient, BillingAdminClient, AuditAdminClient, AdminLocale, SubscriberType } from '@fonderie/client';
|
|
4
4
|
|
|
5
5
|
type AdminPage = 'attention' | 'modules' | 'doctor' | 'environment' | 'routes' | 'migrations' | 'tokens' | 'operators' | 'log' | 'settings' | 'templates' | 'users' | 'catalog' | 'subscriber' | 'audit';
|
|
6
6
|
interface IAdminShellProps {
|
|
@@ -19,62 +19,73 @@ interface IAdminShellProps {
|
|
|
19
19
|
operators?: boolean;
|
|
20
20
|
currentOperator?: string;
|
|
21
21
|
publicConfigUrl?: string;
|
|
22
|
+
locale?: AdminLocale | undefined;
|
|
22
23
|
}
|
|
23
|
-
declare function AdminShell({ client, configClient, courierClient, authClient, billingClient, auditClient, environment, page, onNavigate, appName, envLabel, footer, operators, currentOperator, publicConfigUrl, }: IAdminShellProps): react.JSX.Element;
|
|
24
|
+
declare function AdminShell({ client, configClient, courierClient, authClient, billingClient, auditClient, environment, page, onNavigate, appName, envLabel, footer, operators, currentOperator, publicConfigUrl, locale, }: IAdminShellProps): react.JSX.Element;
|
|
24
25
|
|
|
25
26
|
interface IAttentionScreenProps {
|
|
26
27
|
client: AdminClient;
|
|
28
|
+
locale?: AdminLocale | undefined;
|
|
27
29
|
}
|
|
28
|
-
declare function AttentionScreen({ client }: IAttentionScreenProps): react.JSX.Element;
|
|
30
|
+
declare function AttentionScreen({ client, locale }: IAttentionScreenProps): react.JSX.Element;
|
|
29
31
|
|
|
30
32
|
interface IModulesScreenProps {
|
|
31
33
|
client: AdminClient;
|
|
34
|
+
locale?: AdminLocale | undefined;
|
|
32
35
|
}
|
|
33
|
-
declare function ModulesScreen({ client }: IModulesScreenProps): react.JSX.Element;
|
|
36
|
+
declare function ModulesScreen({ client, locale }: IModulesScreenProps): react.JSX.Element;
|
|
34
37
|
|
|
35
38
|
interface IDoctorScreenProps {
|
|
36
39
|
client: AdminClient;
|
|
40
|
+
locale?: AdminLocale | undefined;
|
|
37
41
|
}
|
|
38
|
-
declare function DoctorScreen({ client }: IDoctorScreenProps): react.JSX.Element;
|
|
42
|
+
declare function DoctorScreen({ client, locale }: IDoctorScreenProps): react.JSX.Element;
|
|
39
43
|
|
|
40
44
|
interface IEnvironmentScreenProps {
|
|
41
45
|
client: AdminClient;
|
|
46
|
+
locale?: AdminLocale | undefined;
|
|
42
47
|
}
|
|
43
|
-
declare function EnvironmentScreen({ client }: IEnvironmentScreenProps): react.JSX.Element;
|
|
48
|
+
declare function EnvironmentScreen({ client, locale }: IEnvironmentScreenProps): react.JSX.Element;
|
|
44
49
|
|
|
45
50
|
interface IRoutesScreenProps {
|
|
46
51
|
client: AdminClient;
|
|
52
|
+
locale?: AdminLocale | undefined;
|
|
47
53
|
}
|
|
48
|
-
declare function RoutesScreen({ client }: IRoutesScreenProps): react.JSX.Element;
|
|
54
|
+
declare function RoutesScreen({ client, locale }: IRoutesScreenProps): react.JSX.Element;
|
|
49
55
|
|
|
50
56
|
interface ITokensScreenProps {
|
|
51
57
|
client: AdminClient;
|
|
58
|
+
locale?: AdminLocale | undefined;
|
|
52
59
|
}
|
|
53
|
-
declare function TokensScreen({ client }: ITokensScreenProps): react.JSX.Element;
|
|
60
|
+
declare function TokensScreen({ client, locale }: ITokensScreenProps): react.JSX.Element;
|
|
54
61
|
|
|
55
62
|
interface IMigrationsScreenProps {
|
|
56
63
|
client: AdminClient;
|
|
64
|
+
locale?: AdminLocale | undefined;
|
|
57
65
|
}
|
|
58
|
-
declare function MigrationsScreen({ client }: IMigrationsScreenProps): react.JSX.Element;
|
|
66
|
+
declare function MigrationsScreen({ client, locale }: IMigrationsScreenProps): react.JSX.Element;
|
|
59
67
|
|
|
60
68
|
interface IAdminLogScreenProps {
|
|
61
69
|
client: AdminClient;
|
|
62
70
|
pageSize?: number;
|
|
71
|
+
locale?: AdminLocale | undefined;
|
|
63
72
|
}
|
|
64
|
-
declare function AdminLogScreen({ client, pageSize }: IAdminLogScreenProps): react.JSX.Element;
|
|
73
|
+
declare function AdminLogScreen({ client, pageSize, locale }: IAdminLogScreenProps): react.JSX.Element;
|
|
65
74
|
|
|
66
75
|
interface IUsersScreenProps {
|
|
67
76
|
client: AuthAdminClient;
|
|
68
77
|
pageSize?: number;
|
|
69
78
|
billingClient?: BillingAdminClient | undefined;
|
|
70
79
|
openUserId?: string | undefined;
|
|
80
|
+
locale?: AdminLocale | undefined;
|
|
71
81
|
}
|
|
72
|
-
declare function UsersScreen({ client, pageSize, billingClient, openUserId, }: IUsersScreenProps): react.JSX.Element;
|
|
82
|
+
declare function UsersScreen({ client, pageSize, billingClient, openUserId, locale, }: IUsersScreenProps): react.JSX.Element;
|
|
73
83
|
|
|
74
84
|
interface ICatalogScreenProps {
|
|
75
85
|
client: BillingAdminClient;
|
|
86
|
+
locale?: AdminLocale | undefined;
|
|
76
87
|
}
|
|
77
|
-
declare function CatalogScreen({ client }: ICatalogScreenProps): react.JSX.Element;
|
|
88
|
+
declare function CatalogScreen({ client, locale }: ICatalogScreenProps): react.JSX.Element;
|
|
78
89
|
|
|
79
90
|
interface ISubscriberScreenProps {
|
|
80
91
|
client: BillingAdminClient;
|
|
@@ -84,20 +95,23 @@ interface ISubscriberScreenProps {
|
|
|
84
95
|
* live beside their account. Omit to open everything here.
|
|
85
96
|
*/
|
|
86
97
|
onOpenUser?: (userId: string) => void;
|
|
98
|
+
locale?: AdminLocale | undefined;
|
|
87
99
|
}
|
|
88
|
-
declare function SubscriberScreen({ client, pageSize, onOpenUser }: ISubscriberScreenProps): react.JSX.Element;
|
|
100
|
+
declare function SubscriberScreen({ client, pageSize, onOpenUser, locale, }: ISubscriberScreenProps): react.JSX.Element;
|
|
89
101
|
|
|
90
102
|
interface IAuditScreenProps {
|
|
91
103
|
client: AuditAdminClient;
|
|
92
104
|
pageSize?: number;
|
|
105
|
+
locale?: AdminLocale | undefined;
|
|
93
106
|
}
|
|
94
|
-
declare function AuditScreen({ client, pageSize }: IAuditScreenProps): react.JSX.Element;
|
|
107
|
+
declare function AuditScreen({ client, pageSize, locale }: IAuditScreenProps): react.JSX.Element;
|
|
95
108
|
|
|
96
109
|
interface IOperatorsScreenProps {
|
|
97
110
|
client: AdminClient;
|
|
98
111
|
me?: string | undefined;
|
|
112
|
+
locale?: AdminLocale | undefined;
|
|
99
113
|
}
|
|
100
|
-
declare function OperatorsScreen({ client, me }: IOperatorsScreenProps): react.JSX.Element;
|
|
114
|
+
declare function OperatorsScreen({ client, me, locale }: IOperatorsScreenProps): react.JSX.Element;
|
|
101
115
|
|
|
102
116
|
interface ISubscriberBillingProps {
|
|
103
117
|
client: BillingAdminClient;
|
|
@@ -105,7 +119,8 @@ interface ISubscriberBillingProps {
|
|
|
105
119
|
type: SubscriberType;
|
|
106
120
|
id: string;
|
|
107
121
|
};
|
|
122
|
+
locale?: AdminLocale | undefined;
|
|
108
123
|
}
|
|
109
|
-
declare function SubscriberBilling({ client, subscriber }: ISubscriberBillingProps): react.JSX.Element;
|
|
124
|
+
declare function SubscriberBilling({ client, subscriber, locale }: ISubscriberBillingProps): react.JSX.Element;
|
|
110
125
|
|
|
111
126
|
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 IOperatorsScreenProps, type IRoutesScreenProps, type ISubscriberBillingProps, type ISubscriberScreenProps, type ITokensScreenProps, type IUsersScreenProps, MigrationsScreen, ModulesScreen, OperatorsScreen, RoutesScreen, SubscriberBilling, SubscriberScreen, TokensScreen, UsersScreen };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { AdminClient, ConfigAdminClient, CourierAdminClient, AuthAdminClient, BillingAdminClient, AuditAdminClient, SubscriberType } from '@fonderie/client';
|
|
3
|
+
import { AdminClient, ConfigAdminClient, CourierAdminClient, AuthAdminClient, BillingAdminClient, AuditAdminClient, AdminLocale, SubscriberType } from '@fonderie/client';
|
|
4
4
|
|
|
5
5
|
type AdminPage = 'attention' | 'modules' | 'doctor' | 'environment' | 'routes' | 'migrations' | 'tokens' | 'operators' | 'log' | 'settings' | 'templates' | 'users' | 'catalog' | 'subscriber' | 'audit';
|
|
6
6
|
interface IAdminShellProps {
|
|
@@ -19,62 +19,73 @@ interface IAdminShellProps {
|
|
|
19
19
|
operators?: boolean;
|
|
20
20
|
currentOperator?: string;
|
|
21
21
|
publicConfigUrl?: string;
|
|
22
|
+
locale?: AdminLocale | undefined;
|
|
22
23
|
}
|
|
23
|
-
declare function AdminShell({ client, configClient, courierClient, authClient, billingClient, auditClient, environment, page, onNavigate, appName, envLabel, footer, operators, currentOperator, publicConfigUrl, }: IAdminShellProps): react.JSX.Element;
|
|
24
|
+
declare function AdminShell({ client, configClient, courierClient, authClient, billingClient, auditClient, environment, page, onNavigate, appName, envLabel, footer, operators, currentOperator, publicConfigUrl, locale, }: IAdminShellProps): react.JSX.Element;
|
|
24
25
|
|
|
25
26
|
interface IAttentionScreenProps {
|
|
26
27
|
client: AdminClient;
|
|
28
|
+
locale?: AdminLocale | undefined;
|
|
27
29
|
}
|
|
28
|
-
declare function AttentionScreen({ client }: IAttentionScreenProps): react.JSX.Element;
|
|
30
|
+
declare function AttentionScreen({ client, locale }: IAttentionScreenProps): react.JSX.Element;
|
|
29
31
|
|
|
30
32
|
interface IModulesScreenProps {
|
|
31
33
|
client: AdminClient;
|
|
34
|
+
locale?: AdminLocale | undefined;
|
|
32
35
|
}
|
|
33
|
-
declare function ModulesScreen({ client }: IModulesScreenProps): react.JSX.Element;
|
|
36
|
+
declare function ModulesScreen({ client, locale }: IModulesScreenProps): react.JSX.Element;
|
|
34
37
|
|
|
35
38
|
interface IDoctorScreenProps {
|
|
36
39
|
client: AdminClient;
|
|
40
|
+
locale?: AdminLocale | undefined;
|
|
37
41
|
}
|
|
38
|
-
declare function DoctorScreen({ client }: IDoctorScreenProps): react.JSX.Element;
|
|
42
|
+
declare function DoctorScreen({ client, locale }: IDoctorScreenProps): react.JSX.Element;
|
|
39
43
|
|
|
40
44
|
interface IEnvironmentScreenProps {
|
|
41
45
|
client: AdminClient;
|
|
46
|
+
locale?: AdminLocale | undefined;
|
|
42
47
|
}
|
|
43
|
-
declare function EnvironmentScreen({ client }: IEnvironmentScreenProps): react.JSX.Element;
|
|
48
|
+
declare function EnvironmentScreen({ client, locale }: IEnvironmentScreenProps): react.JSX.Element;
|
|
44
49
|
|
|
45
50
|
interface IRoutesScreenProps {
|
|
46
51
|
client: AdminClient;
|
|
52
|
+
locale?: AdminLocale | undefined;
|
|
47
53
|
}
|
|
48
|
-
declare function RoutesScreen({ client }: IRoutesScreenProps): react.JSX.Element;
|
|
54
|
+
declare function RoutesScreen({ client, locale }: IRoutesScreenProps): react.JSX.Element;
|
|
49
55
|
|
|
50
56
|
interface ITokensScreenProps {
|
|
51
57
|
client: AdminClient;
|
|
58
|
+
locale?: AdminLocale | undefined;
|
|
52
59
|
}
|
|
53
|
-
declare function TokensScreen({ client }: ITokensScreenProps): react.JSX.Element;
|
|
60
|
+
declare function TokensScreen({ client, locale }: ITokensScreenProps): react.JSX.Element;
|
|
54
61
|
|
|
55
62
|
interface IMigrationsScreenProps {
|
|
56
63
|
client: AdminClient;
|
|
64
|
+
locale?: AdminLocale | undefined;
|
|
57
65
|
}
|
|
58
|
-
declare function MigrationsScreen({ client }: IMigrationsScreenProps): react.JSX.Element;
|
|
66
|
+
declare function MigrationsScreen({ client, locale }: IMigrationsScreenProps): react.JSX.Element;
|
|
59
67
|
|
|
60
68
|
interface IAdminLogScreenProps {
|
|
61
69
|
client: AdminClient;
|
|
62
70
|
pageSize?: number;
|
|
71
|
+
locale?: AdminLocale | undefined;
|
|
63
72
|
}
|
|
64
|
-
declare function AdminLogScreen({ client, pageSize }: IAdminLogScreenProps): react.JSX.Element;
|
|
73
|
+
declare function AdminLogScreen({ client, pageSize, locale }: IAdminLogScreenProps): react.JSX.Element;
|
|
65
74
|
|
|
66
75
|
interface IUsersScreenProps {
|
|
67
76
|
client: AuthAdminClient;
|
|
68
77
|
pageSize?: number;
|
|
69
78
|
billingClient?: BillingAdminClient | undefined;
|
|
70
79
|
openUserId?: string | undefined;
|
|
80
|
+
locale?: AdminLocale | undefined;
|
|
71
81
|
}
|
|
72
|
-
declare function UsersScreen({ client, pageSize, billingClient, openUserId, }: IUsersScreenProps): react.JSX.Element;
|
|
82
|
+
declare function UsersScreen({ client, pageSize, billingClient, openUserId, locale, }: IUsersScreenProps): react.JSX.Element;
|
|
73
83
|
|
|
74
84
|
interface ICatalogScreenProps {
|
|
75
85
|
client: BillingAdminClient;
|
|
86
|
+
locale?: AdminLocale | undefined;
|
|
76
87
|
}
|
|
77
|
-
declare function CatalogScreen({ client }: ICatalogScreenProps): react.JSX.Element;
|
|
88
|
+
declare function CatalogScreen({ client, locale }: ICatalogScreenProps): react.JSX.Element;
|
|
78
89
|
|
|
79
90
|
interface ISubscriberScreenProps {
|
|
80
91
|
client: BillingAdminClient;
|
|
@@ -84,20 +95,23 @@ interface ISubscriberScreenProps {
|
|
|
84
95
|
* live beside their account. Omit to open everything here.
|
|
85
96
|
*/
|
|
86
97
|
onOpenUser?: (userId: string) => void;
|
|
98
|
+
locale?: AdminLocale | undefined;
|
|
87
99
|
}
|
|
88
|
-
declare function SubscriberScreen({ client, pageSize, onOpenUser }: ISubscriberScreenProps): react.JSX.Element;
|
|
100
|
+
declare function SubscriberScreen({ client, pageSize, onOpenUser, locale, }: ISubscriberScreenProps): react.JSX.Element;
|
|
89
101
|
|
|
90
102
|
interface IAuditScreenProps {
|
|
91
103
|
client: AuditAdminClient;
|
|
92
104
|
pageSize?: number;
|
|
105
|
+
locale?: AdminLocale | undefined;
|
|
93
106
|
}
|
|
94
|
-
declare function AuditScreen({ client, pageSize }: IAuditScreenProps): react.JSX.Element;
|
|
107
|
+
declare function AuditScreen({ client, pageSize, locale }: IAuditScreenProps): react.JSX.Element;
|
|
95
108
|
|
|
96
109
|
interface IOperatorsScreenProps {
|
|
97
110
|
client: AdminClient;
|
|
98
111
|
me?: string | undefined;
|
|
112
|
+
locale?: AdminLocale | undefined;
|
|
99
113
|
}
|
|
100
|
-
declare function OperatorsScreen({ client, me }: IOperatorsScreenProps): react.JSX.Element;
|
|
114
|
+
declare function OperatorsScreen({ client, me, locale }: IOperatorsScreenProps): react.JSX.Element;
|
|
101
115
|
|
|
102
116
|
interface ISubscriberBillingProps {
|
|
103
117
|
client: BillingAdminClient;
|
|
@@ -105,7 +119,8 @@ interface ISubscriberBillingProps {
|
|
|
105
119
|
type: SubscriberType;
|
|
106
120
|
id: string;
|
|
107
121
|
};
|
|
122
|
+
locale?: AdminLocale | undefined;
|
|
108
123
|
}
|
|
109
|
-
declare function SubscriberBilling({ client, subscriber }: ISubscriberBillingProps): react.JSX.Element;
|
|
124
|
+
declare function SubscriberBilling({ client, subscriber, locale }: ISubscriberBillingProps): react.JSX.Element;
|
|
110
125
|
|
|
111
126
|
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 IOperatorsScreenProps, type IRoutesScreenProps, type ISubscriberBillingProps, type ISubscriberScreenProps, type ITokensScreenProps, type IUsersScreenProps, MigrationsScreen, ModulesScreen, OperatorsScreen, RoutesScreen, SubscriberBilling, SubscriberScreen, TokensScreen, UsersScreen };
|