@krak-stack/auth 0.1.51 → 0.1.53
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/admin/api.group.d.ts +60 -0
- package/dist/admin/schema.d.ts +64 -0
- package/dist/admin/schema.js +41 -0
- package/dist/api.d.ts +297 -216
- package/dist/components/admin-organization-form.js +110 -69
- package/dist/components/admin-organizations.js +99 -6
- package/dist/components/admin-users.js +38 -4
- package/dist/components/auth-client-api.d.ts +60 -0
- package/dist/components/auth-client.d.ts +17 -1
- package/dist/components/auth-client.js +15 -1
- package/dist/components/auth-forms.d.ts +1 -0
- package/dist/components/auth-forms.js +309 -252
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/organization-switcher.d.ts +18 -7
- package/dist/components/organization-switcher.js +264 -189
- package/dist/components/user-button.js +197 -178
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/schema.d.ts +1 -0
- package/dist/schema.js +2 -0
- package/dist/server/api.group.d.ts +22 -1
- package/dist/server/api.group.js +10 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/schema.d.ts +20 -0
- package/dist/server/schema.js +5 -0
- package/dist/service.d.ts +50 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ export { KrakstackAuthProvider, useAuthClient, useKrakstackAuth, useKrakstackAut
|
|
|
2
2
|
export { createAuthUiClient } from "./auth-client";
|
|
3
3
|
export { OrganizationSwitcher } from "./organization-switcher";
|
|
4
4
|
export { MemberRequired } from "./member-required";
|
|
5
|
-
export { ResetPassword, Signin, Signup, TwoFactor } from "./auth-forms";
|
|
5
|
+
export { ResetPassword, Signin, Signup, TwoFactor, VerifyEmail, } from "./auth-forms";
|
|
6
6
|
export { UserButton } from "./user-button";
|
|
7
7
|
export { AdminOrganizationsTable } from "./admin-organizations";
|
|
8
8
|
export { AdminOrganizationForm } from "./admin-organization-form";
|
package/dist/components/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export { KrakstackAuthProvider, useAuthClient, useKrakstackAuth, useKrakstackAut
|
|
|
2
2
|
export { createAuthUiClient } from "./auth-client";
|
|
3
3
|
export { OrganizationSwitcher } from "./organization-switcher";
|
|
4
4
|
export { MemberRequired } from "./member-required";
|
|
5
|
-
export { ResetPassword, Signin, Signup, TwoFactor } from "./auth-forms";
|
|
5
|
+
export { ResetPassword, Signin, Signup, TwoFactor, VerifyEmail, } from "./auth-forms";
|
|
6
6
|
export { UserButton } from "./user-button";
|
|
7
7
|
export { AdminOrganizationsTable } from "./admin-organizations";
|
|
8
8
|
export { AdminOrganizationForm } from "./admin-organization-form";
|
|
@@ -10,7 +10,7 @@ declare const messages: {
|
|
|
10
10
|
readonly organization_copy_id: "Copy organization ID";
|
|
11
11
|
readonly organization_create_slug_conflict: "That organization slug is already in use. Choose a different slug.";
|
|
12
12
|
readonly organization_create_title: "Create organization";
|
|
13
|
-
readonly organization_edit_description: "Update the active organization's
|
|
13
|
+
readonly organization_edit_description: "Update the active organization's localized profile.";
|
|
14
14
|
readonly organization_invitation_cancel: "Cancel invitation";
|
|
15
15
|
readonly organization_invitation_cancel_error: "Could not cancel the invitation.";
|
|
16
16
|
readonly organization_invitation_accept: "Accept invitation";
|
|
@@ -39,6 +39,9 @@ declare const messages: {
|
|
|
39
39
|
readonly organization_invite_member_title: "Invite a member";
|
|
40
40
|
readonly organization_loading: "Loading...";
|
|
41
41
|
readonly organization_location: "Location";
|
|
42
|
+
readonly organization_parent: "Parent organization";
|
|
43
|
+
readonly organization_parent_description: "Optionally group this organization under another organization.";
|
|
44
|
+
readonly organization_parent_none: "No parent organization";
|
|
42
45
|
readonly organization_icon: "Icon";
|
|
43
46
|
readonly organization_logo: "Logo";
|
|
44
47
|
readonly organization_logo_upload_error: "Could not upload the organization logo.";
|
|
@@ -56,7 +59,7 @@ declare const messages: {
|
|
|
56
59
|
readonly organization_members_heading: "Organization members";
|
|
57
60
|
readonly organization_members_load_error: "Could not load organization members.";
|
|
58
61
|
readonly organization_members_title: "Members";
|
|
59
|
-
readonly
|
|
62
|
+
readonly organization_name_required: "Enter a name in at least one language.";
|
|
60
63
|
readonly organization_role_admin: "Admin";
|
|
61
64
|
readonly organization_role_member: "Member";
|
|
62
65
|
readonly organization_role_owner: "Owner";
|
|
@@ -67,10 +70,11 @@ declare const messages: {
|
|
|
67
70
|
readonly organization_switcher_label: "Organization";
|
|
68
71
|
readonly organization_switcher_manage: "Manage organization";
|
|
69
72
|
readonly organization_switcher_no_other_organizations: "No other organizations.";
|
|
73
|
+
readonly organization_switcher_personal: "Personal";
|
|
70
74
|
readonly organization_translation_description: "Localized organization details stored in metadata.";
|
|
71
75
|
readonly organization_translation_english: "English profile";
|
|
72
76
|
readonly organization_translation_french: "French profile";
|
|
73
|
-
readonly organization_translation_name: "
|
|
77
|
+
readonly organization_translation_name: "Name";
|
|
74
78
|
readonly organization_update_error: "Could not update the organization.";
|
|
75
79
|
readonly table_empty: "No results.";
|
|
76
80
|
readonly user_api_key_create_error: "Could not create the API key.";
|
|
@@ -97,7 +101,7 @@ declare const messages: {
|
|
|
97
101
|
readonly organization_copy_id: "Copier l'ID de l'organisation";
|
|
98
102
|
readonly organization_create_slug_conflict: "Ce slug d'organisation est déjà utilisé. Choisissez un autre slug.";
|
|
99
103
|
readonly organization_create_title: "Créer une organisation";
|
|
100
|
-
readonly organization_edit_description: "Mettez à jour
|
|
104
|
+
readonly organization_edit_description: "Mettez à jour le profil localisé de l'organisation active.";
|
|
101
105
|
readonly organization_invitation_cancel: "Annuler l'invitation";
|
|
102
106
|
readonly organization_invitation_cancel_error: "Impossible d'annuler l'invitation.";
|
|
103
107
|
readonly organization_invitation_accept: "Accepter l'invitation";
|
|
@@ -126,6 +130,9 @@ declare const messages: {
|
|
|
126
130
|
readonly organization_invite_member_title: "Inviter un membre";
|
|
127
131
|
readonly organization_loading: "Chargement...";
|
|
128
132
|
readonly organization_location: "Emplacement";
|
|
133
|
+
readonly organization_parent: "Organisation parente";
|
|
134
|
+
readonly organization_parent_description: "Regroupez facultativement cette organisation sous une autre organisation.";
|
|
135
|
+
readonly organization_parent_none: "Aucune organisation parente";
|
|
129
136
|
readonly organization_icon: "Icône";
|
|
130
137
|
readonly organization_logo: "Logo";
|
|
131
138
|
readonly organization_logo_upload_error: "Impossible de téléverser le logo de l'organisation.";
|
|
@@ -143,7 +150,7 @@ declare const messages: {
|
|
|
143
150
|
readonly organization_members_heading: "Membres de l'organisation";
|
|
144
151
|
readonly organization_members_load_error: "Impossible de charger les membres de l'organisation.";
|
|
145
152
|
readonly organization_members_title: "Membres";
|
|
146
|
-
readonly
|
|
153
|
+
readonly organization_name_required: "Saisissez un nom dans au moins une langue.";
|
|
147
154
|
readonly organization_role_admin: "Admin";
|
|
148
155
|
readonly organization_role_member: "Membre";
|
|
149
156
|
readonly organization_role_owner: "Propriétaire";
|
|
@@ -154,10 +161,11 @@ declare const messages: {
|
|
|
154
161
|
readonly organization_switcher_label: "Organisation";
|
|
155
162
|
readonly organization_switcher_manage: "Gérer l'organisation";
|
|
156
163
|
readonly organization_switcher_no_other_organizations: "Aucune autre organisation.";
|
|
164
|
+
readonly organization_switcher_personal: "Personnel";
|
|
157
165
|
readonly organization_translation_description: "Détails localisés de l'organisation stockés dans les métadonnées.";
|
|
158
166
|
readonly organization_translation_english: "Profil anglais";
|
|
159
167
|
readonly organization_translation_french: "Profil français";
|
|
160
|
-
readonly organization_translation_name: "Nom
|
|
168
|
+
readonly organization_translation_name: "Nom";
|
|
161
169
|
readonly organization_update_error: "Impossible de mettre à jour l'organisation.";
|
|
162
170
|
readonly table_empty: "Aucun résultat.";
|
|
163
171
|
readonly user_api_key_create_error: "Impossible de créer la clé API.";
|
|
@@ -189,6 +197,7 @@ export type OrganizationSwitcherProps = {
|
|
|
189
197
|
menuActions?: ReactNode;
|
|
190
198
|
renderUnauthenticated?: () => ReactNode;
|
|
191
199
|
locked?: boolean;
|
|
200
|
+
organizationWhitelist?: readonly string[];
|
|
192
201
|
messages?: OrganizationSwitcherMessages;
|
|
193
202
|
dialog?: OrganizationSwitcherDialog | null;
|
|
194
203
|
onChange?: (organization: OrganizationSummary | null) => void;
|
|
@@ -200,7 +209,9 @@ type OrganizationSummary = {
|
|
|
200
209
|
name: string;
|
|
201
210
|
slug: string;
|
|
202
211
|
metadata?: unknown;
|
|
212
|
+
userId?: string | null;
|
|
213
|
+
parentId?: string | null;
|
|
203
214
|
};
|
|
204
215
|
export type OrganizationSwitcherDialog = "create" | "manage" | "members" | "apiKeys" | "invitations";
|
|
205
|
-
export declare function OrganizationSwitcher({ authClient: providedAuthClient, baseUrl, side, className, defaultDialog, hideTrigger, menuActions, renderUnauthenticated, locked, messages, dialog: controlledDialog, onChange, onCreate, onDialogChange, }: OrganizationSwitcherProps): import("react").JSX.Element;
|
|
216
|
+
export declare function OrganizationSwitcher({ authClient: providedAuthClient, baseUrl, side, className, defaultDialog, hideTrigger, menuActions, renderUnauthenticated, locked, organizationWhitelist, messages, dialog: controlledDialog, onChange, onCreate, onDialogChange, }: OrganizationSwitcherProps): import("react").JSX.Element;
|
|
206
217
|
export {};
|