@kerne/react 0.1.0 → 0.1.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.
@@ -0,0 +1,241 @@
1
+ interface KerneLocalization {
2
+ common: {
3
+ email: string;
4
+ emailPlaceholder: string;
5
+ password: string;
6
+ passwordPlaceholder: string;
7
+ name: string;
8
+ namePlaceholder: string;
9
+ cancel: string;
10
+ continue: string;
11
+ or: string;
12
+ /** Fallback for the tenant's app name when the config carries none. */
13
+ thisApp: string;
14
+ backToSignIn: string;
15
+ sending: string;
16
+ continueWith: string;
17
+ securedByKerne: string;
18
+ loading: string;
19
+ };
20
+ signIn: {
21
+ title: string;
22
+ signUpPrompt: string;
23
+ signUpLink: string;
24
+ signUpForApp: string;
25
+ submit: string;
26
+ submitting: string;
27
+ magicSubmit: string;
28
+ magicSubmitting: string;
29
+ magicSubtitle: string;
30
+ forgotPassword: string;
31
+ useMagicLink: string;
32
+ usePassword: string;
33
+ linkSent: string;
34
+ unavailable: string;
35
+ loadFailed: string;
36
+ };
37
+ signUp: {
38
+ title: string;
39
+ titleWithApp: string;
40
+ signInPrompt: string;
41
+ signInLink: string;
42
+ submit: string;
43
+ submitting: string;
44
+ magicSubmit: string;
45
+ magicSubmitting: string;
46
+ invitationCode: string;
47
+ invitationNeeded: string;
48
+ closedTitle: string;
49
+ closedBody: string;
50
+ linkSent: string;
51
+ useMagicLink: string;
52
+ usePassword: string;
53
+ unavailable: string;
54
+ loadFailed: string;
55
+ };
56
+ resetPassword: {
57
+ requestTitle: string;
58
+ requestSubtitle: string;
59
+ requestSubmit: string;
60
+ requestSubmitting: string;
61
+ requestSent: string;
62
+ rememberedPrompt: string;
63
+ title: string;
64
+ subtitle: string;
65
+ newPassword: string;
66
+ confirmPassword: string;
67
+ mismatch: string;
68
+ submit: string;
69
+ submitting: string;
70
+ doneTitle: string;
71
+ doneBody: string;
72
+ incompleteTitle: string;
73
+ incompleteBody: string;
74
+ };
75
+ magicLink: {
76
+ pendingTitle: string;
77
+ pendingBody: string;
78
+ doneTitle: string;
79
+ doneBody: string;
80
+ failedTitle: string;
81
+ missingToken: string;
82
+ };
83
+ verifyEmail: {
84
+ title: string;
85
+ subtitle: string;
86
+ code: string;
87
+ submit: string;
88
+ submitting: string;
89
+ resend: string;
90
+ resent: string;
91
+ verifyingTitle: string;
92
+ verifyingBody: string;
93
+ doneTitle: string;
94
+ doneBody: string;
95
+ failedTitle: string;
96
+ newCode: string;
97
+ };
98
+ activate: {
99
+ title: string;
100
+ credentialsSubtitle: string;
101
+ magicSubtitle: string;
102
+ confirmPassword: string;
103
+ mismatch: string;
104
+ submit: string;
105
+ submitting: string;
106
+ failedTitle: string;
107
+ missingToken: string;
108
+ goToSignIn: string;
109
+ };
110
+ waitlist: {
111
+ title: string;
112
+ subtitle: string;
113
+ submit: string;
114
+ submitting: string;
115
+ joined: string;
116
+ };
117
+ profile: {
118
+ navLabel: string;
119
+ tabProfile: string;
120
+ tabSecurity: string;
121
+ tabBilling: string;
122
+ profileTitle: string;
123
+ profileDesc: string;
124
+ securityTitle: string;
125
+ securityDesc: string;
126
+ billingTitle: string;
127
+ billingDesc: string;
128
+ firstName: string;
129
+ firstNamePlaceholder: string;
130
+ lastName: string;
131
+ lastNamePlaceholder: string;
132
+ save: string;
133
+ saving: string;
134
+ saved: string;
135
+ emailSectionTitle: string;
136
+ emailSectionDesc: string;
137
+ verified: string;
138
+ unverified: string;
139
+ verify: string;
140
+ verificationSent: string;
141
+ unnamed: string;
142
+ };
143
+ security: {
144
+ passwordTitle: string;
145
+ passwordDesc: string;
146
+ currentPassword: string;
147
+ newPassword: string;
148
+ confirmPassword: string;
149
+ submit: string;
150
+ submitting: string;
151
+ changed: string;
152
+ mismatch: string;
153
+ sameAsCurrent: string;
154
+ deleteTitle: string;
155
+ deleteDesc: string;
156
+ deleteAction: string;
157
+ deleteConfirm: string;
158
+ deleting: string;
159
+ };
160
+ billing: {
161
+ currentPlan: string;
162
+ plan: string;
163
+ price: string;
164
+ status: string;
165
+ renews: string;
166
+ ends: string;
167
+ trialEnds: string;
168
+ managePortal: string;
169
+ opening: string;
170
+ freePlan: string;
171
+ seePlans: string;
172
+ cancelNotice: string;
173
+ changePlan: string;
174
+ current: string;
175
+ switchTo: string;
176
+ noPlans: string;
177
+ notOnInterval: string;
178
+ loadFailed: string;
179
+ loadingPlan: string;
180
+ loadingPlans: string;
181
+ intervalGroupLabel: string;
182
+ intervalMonth: string;
183
+ intervalYear: string;
184
+ intervalWeek: string;
185
+ intervalDay: string;
186
+ statusActive: string;
187
+ statusTrialing: string;
188
+ statusPastDue: string;
189
+ statusCanceled: string;
190
+ statusUnpaid: string;
191
+ statusPaused: string;
192
+ };
193
+ usage: {
194
+ title: string;
195
+ subtitle: string;
196
+ used: string;
197
+ nothingMetered: string;
198
+ overage: string;
199
+ limitReached: string;
200
+ loading: string;
201
+ loadFailed: string;
202
+ };
203
+ checkout: {
204
+ confirmingTitle: string;
205
+ confirmingBody: string;
206
+ pendingTitle: string;
207
+ pendingBody: string;
208
+ doneTitle: string;
209
+ doneBody: string;
210
+ cancelTitle: string;
211
+ cancelBody: string;
212
+ backToPlans: string;
213
+ };
214
+ upgrade: {
215
+ quotaTitle: string;
216
+ quotaBody: string;
217
+ featureTitle: string;
218
+ featureBody: string;
219
+ action: string;
220
+ checking: string;
221
+ };
222
+ account: {
223
+ menuLabel: string;
224
+ signOut: string;
225
+ };
226
+ /**
227
+ * Keyed by the API's stable ErrorCode (see packages/core/src/errors).
228
+ * Anything absent falls back to `generic` - never to the raw server message,
229
+ * which is written for an integrator and is always English.
230
+ */
231
+ errors: Record<string, string> & {
232
+ generic: string;
233
+ };
234
+ }
235
+ declare const defaultLocalization: KerneLocalization;
236
+ type DeepPartial<T> = {
237
+ [K in keyof T]?: Partial<T[K]>;
238
+ };
239
+ declare function useLocalization(): KerneLocalization;
240
+
241
+ export { type DeepPartial as D, type KerneLocalization as K, defaultLocalization as d, useLocalization as u };
@@ -0,0 +1,241 @@
1
+ interface KerneLocalization {
2
+ common: {
3
+ email: string;
4
+ emailPlaceholder: string;
5
+ password: string;
6
+ passwordPlaceholder: string;
7
+ name: string;
8
+ namePlaceholder: string;
9
+ cancel: string;
10
+ continue: string;
11
+ or: string;
12
+ /** Fallback for the tenant's app name when the config carries none. */
13
+ thisApp: string;
14
+ backToSignIn: string;
15
+ sending: string;
16
+ continueWith: string;
17
+ securedByKerne: string;
18
+ loading: string;
19
+ };
20
+ signIn: {
21
+ title: string;
22
+ signUpPrompt: string;
23
+ signUpLink: string;
24
+ signUpForApp: string;
25
+ submit: string;
26
+ submitting: string;
27
+ magicSubmit: string;
28
+ magicSubmitting: string;
29
+ magicSubtitle: string;
30
+ forgotPassword: string;
31
+ useMagicLink: string;
32
+ usePassword: string;
33
+ linkSent: string;
34
+ unavailable: string;
35
+ loadFailed: string;
36
+ };
37
+ signUp: {
38
+ title: string;
39
+ titleWithApp: string;
40
+ signInPrompt: string;
41
+ signInLink: string;
42
+ submit: string;
43
+ submitting: string;
44
+ magicSubmit: string;
45
+ magicSubmitting: string;
46
+ invitationCode: string;
47
+ invitationNeeded: string;
48
+ closedTitle: string;
49
+ closedBody: string;
50
+ linkSent: string;
51
+ useMagicLink: string;
52
+ usePassword: string;
53
+ unavailable: string;
54
+ loadFailed: string;
55
+ };
56
+ resetPassword: {
57
+ requestTitle: string;
58
+ requestSubtitle: string;
59
+ requestSubmit: string;
60
+ requestSubmitting: string;
61
+ requestSent: string;
62
+ rememberedPrompt: string;
63
+ title: string;
64
+ subtitle: string;
65
+ newPassword: string;
66
+ confirmPassword: string;
67
+ mismatch: string;
68
+ submit: string;
69
+ submitting: string;
70
+ doneTitle: string;
71
+ doneBody: string;
72
+ incompleteTitle: string;
73
+ incompleteBody: string;
74
+ };
75
+ magicLink: {
76
+ pendingTitle: string;
77
+ pendingBody: string;
78
+ doneTitle: string;
79
+ doneBody: string;
80
+ failedTitle: string;
81
+ missingToken: string;
82
+ };
83
+ verifyEmail: {
84
+ title: string;
85
+ subtitle: string;
86
+ code: string;
87
+ submit: string;
88
+ submitting: string;
89
+ resend: string;
90
+ resent: string;
91
+ verifyingTitle: string;
92
+ verifyingBody: string;
93
+ doneTitle: string;
94
+ doneBody: string;
95
+ failedTitle: string;
96
+ newCode: string;
97
+ };
98
+ activate: {
99
+ title: string;
100
+ credentialsSubtitle: string;
101
+ magicSubtitle: string;
102
+ confirmPassword: string;
103
+ mismatch: string;
104
+ submit: string;
105
+ submitting: string;
106
+ failedTitle: string;
107
+ missingToken: string;
108
+ goToSignIn: string;
109
+ };
110
+ waitlist: {
111
+ title: string;
112
+ subtitle: string;
113
+ submit: string;
114
+ submitting: string;
115
+ joined: string;
116
+ };
117
+ profile: {
118
+ navLabel: string;
119
+ tabProfile: string;
120
+ tabSecurity: string;
121
+ tabBilling: string;
122
+ profileTitle: string;
123
+ profileDesc: string;
124
+ securityTitle: string;
125
+ securityDesc: string;
126
+ billingTitle: string;
127
+ billingDesc: string;
128
+ firstName: string;
129
+ firstNamePlaceholder: string;
130
+ lastName: string;
131
+ lastNamePlaceholder: string;
132
+ save: string;
133
+ saving: string;
134
+ saved: string;
135
+ emailSectionTitle: string;
136
+ emailSectionDesc: string;
137
+ verified: string;
138
+ unverified: string;
139
+ verify: string;
140
+ verificationSent: string;
141
+ unnamed: string;
142
+ };
143
+ security: {
144
+ passwordTitle: string;
145
+ passwordDesc: string;
146
+ currentPassword: string;
147
+ newPassword: string;
148
+ confirmPassword: string;
149
+ submit: string;
150
+ submitting: string;
151
+ changed: string;
152
+ mismatch: string;
153
+ sameAsCurrent: string;
154
+ deleteTitle: string;
155
+ deleteDesc: string;
156
+ deleteAction: string;
157
+ deleteConfirm: string;
158
+ deleting: string;
159
+ };
160
+ billing: {
161
+ currentPlan: string;
162
+ plan: string;
163
+ price: string;
164
+ status: string;
165
+ renews: string;
166
+ ends: string;
167
+ trialEnds: string;
168
+ managePortal: string;
169
+ opening: string;
170
+ freePlan: string;
171
+ seePlans: string;
172
+ cancelNotice: string;
173
+ changePlan: string;
174
+ current: string;
175
+ switchTo: string;
176
+ noPlans: string;
177
+ notOnInterval: string;
178
+ loadFailed: string;
179
+ loadingPlan: string;
180
+ loadingPlans: string;
181
+ intervalGroupLabel: string;
182
+ intervalMonth: string;
183
+ intervalYear: string;
184
+ intervalWeek: string;
185
+ intervalDay: string;
186
+ statusActive: string;
187
+ statusTrialing: string;
188
+ statusPastDue: string;
189
+ statusCanceled: string;
190
+ statusUnpaid: string;
191
+ statusPaused: string;
192
+ };
193
+ usage: {
194
+ title: string;
195
+ subtitle: string;
196
+ used: string;
197
+ nothingMetered: string;
198
+ overage: string;
199
+ limitReached: string;
200
+ loading: string;
201
+ loadFailed: string;
202
+ };
203
+ checkout: {
204
+ confirmingTitle: string;
205
+ confirmingBody: string;
206
+ pendingTitle: string;
207
+ pendingBody: string;
208
+ doneTitle: string;
209
+ doneBody: string;
210
+ cancelTitle: string;
211
+ cancelBody: string;
212
+ backToPlans: string;
213
+ };
214
+ upgrade: {
215
+ quotaTitle: string;
216
+ quotaBody: string;
217
+ featureTitle: string;
218
+ featureBody: string;
219
+ action: string;
220
+ checking: string;
221
+ };
222
+ account: {
223
+ menuLabel: string;
224
+ signOut: string;
225
+ };
226
+ /**
227
+ * Keyed by the API's stable ErrorCode (see packages/core/src/errors).
228
+ * Anything absent falls back to `generic` - never to the raw server message,
229
+ * which is written for an integrator and is always English.
230
+ */
231
+ errors: Record<string, string> & {
232
+ generic: string;
233
+ };
234
+ }
235
+ declare const defaultLocalization: KerneLocalization;
236
+ type DeepPartial<T> = {
237
+ [K in keyof T]?: Partial<T[K]>;
238
+ };
239
+ declare function useLocalization(): KerneLocalization;
240
+
241
+ export { type DeepPartial as D, type KerneLocalization as K, defaultLocalization as d, useLocalization as u };