@krak-stack/auth 0.2.21 → 0.2.22
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @krak-stack/auth
|
|
2
2
|
|
|
3
|
+
## 0.2.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Update the KrakStack registry development dependency and minimum peer requirement to `0.1.48` for corrected image previews, full-width image inputs, file metadata, and non-overlapping replace/delete actions. Use compact, consistently sized icon and logo previews in account and organization forms without changing suggested upload resolutions.
|
|
8
|
+
|
|
3
9
|
## 0.2.21
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -149,8 +149,8 @@ export function AdminOrganizationForm({ organization, onClose, onSaved, }) {
|
|
|
149
149
|
logo: assetUrl(organization?.logo, baseUrl),
|
|
150
150
|
parentId: organization?.parentId ?? noParentOrganization,
|
|
151
151
|
}, children: _jsxs("div", { className: "flex flex-col gap-4", children: [_jsx(form.name, { autoFocus: true, label: m.field_name }), _jsx(form.slug, { description: m.organization_slug_description, label: m.organization_slug }), _jsx(form.logo, { label: m.organization_field_logo_url, size: {
|
|
152
|
-
width:
|
|
153
|
-
height:
|
|
152
|
+
width: 140,
|
|
153
|
+
height: 40,
|
|
154
154
|
suggestedWidth: 512,
|
|
155
155
|
suggestedHeight: 512,
|
|
156
156
|
} }), _jsx(form.parentId, { description: m.organization_parent_description, emptyLabel: m.organization_parent_empty, items: parentOptions, label: m.organization_parent, placeholder: m.organization_parent_none }), _jsx(SubmitError, { result: submitResult }), _jsx(SubmitButton, { form: form, children: m.form_submit })] }) })] }) }));
|
|
@@ -1030,23 +1030,23 @@ function EditOrganizationSection({ header, baseUrl, editingLocale, organization,
|
|
|
1030
1030
|
event.stopPropagation();
|
|
1031
1031
|
submit();
|
|
1032
1032
|
}, children: _jsxs(ScrollableDialogContent, { size: "2xl", children: [_jsx(ScrollableDialogHeader, { children: header }), _jsxs(ScrollableDialogBody, { className: "flex flex-col gap-4", padding: "form", children: [_jsxs(OrganizationFormSection, { title: m.organization_profile(), description: m.organization_translation_description(), children: [_jsxs(FieldSet, { disabled: editingLocale !== "en", className: editingLocale === "en" ? "contents" : "hidden", children: [_jsx(form.enName, { label: m.organization_translation_name() }), _jsx(form.enLogo, { label: m.organization_logo(), size: {
|
|
1033
|
-
width:
|
|
1034
|
-
height:
|
|
1033
|
+
width: 140,
|
|
1034
|
+
height: 40,
|
|
1035
1035
|
suggestedWidth: 350,
|
|
1036
1036
|
suggestedHeight: 100,
|
|
1037
1037
|
} }), _jsx(form.enIcon, { label: m.organization_icon(), size: {
|
|
1038
|
-
width:
|
|
1039
|
-
height:
|
|
1038
|
+
width: 40,
|
|
1039
|
+
height: 40,
|
|
1040
1040
|
suggestedWidth: 512,
|
|
1041
1041
|
suggestedHeight: 512,
|
|
1042
1042
|
} })] }), _jsxs(FieldSet, { disabled: editingLocale !== "fr", className: editingLocale === "fr" ? "contents" : "hidden", children: [_jsx(form.frName, { label: m.organization_translation_name() }), _jsx(form.frLogo, { label: m.organization_logo(), size: {
|
|
1043
|
-
width:
|
|
1044
|
-
height:
|
|
1043
|
+
width: 140,
|
|
1044
|
+
height: 40,
|
|
1045
1045
|
suggestedWidth: 350,
|
|
1046
1046
|
suggestedHeight: 100,
|
|
1047
1047
|
} }), _jsx(form.frIcon, { label: m.organization_icon(), size: {
|
|
1048
|
-
width:
|
|
1049
|
-
height:
|
|
1048
|
+
width: 40,
|
|
1049
|
+
height: 40,
|
|
1050
1050
|
suggestedWidth: 512,
|
|
1051
1051
|
suggestedHeight: 512,
|
|
1052
1052
|
} })] })] }), _jsx(Separator, { className: "my-2" }), _jsx(form.slug, { label: m.organization_slug(), description: m.organization_slug_identifier_description(), required: true }), _jsx(Separator, { className: "my-2" }), _jsxs(OrganizationFormSection, { title: m.organization_contact(), children: [_jsx(OrganizationContactGroup, { title: m.organization_contact_email_type(), children: _jsx(form.emails, { locale: editingLocale, messages: organizationContactFieldMessages(m) }) }), _jsx(OrganizationContactGroup, { title: m.organization_contact_phone_type(), children: _jsx(form.phones, { locale: editingLocale, messages: organizationContactFieldMessages(m) }) }), _jsx(OrganizationContactGroup, { title: m.organization_contact_website_type(), children: _jsx(form.websites, { locale: editingLocale, messages: organizationContactFieldMessages(m) }) }), _jsx(OrganizationContactGroup, { title: m.organization_contact_social_type(), children: _jsx(form.socials, { locale: editingLocale, messages: organizationContactFieldMessages(m) }) })] }), _jsx(Separator, { className: "my-2" }), _jsx(OrganizationFormSection, { title: m.organization_address(), children: _jsx(form.addresses, { locale: editingLocale, messages: organizationContactFieldMessages(m) }) })] }), _jsx(DialogFooter, { className: "-mx-6 -mb-6 border-t px-6 py-4", children: _jsxs("div", { className: "flex flex-col gap-3", children: [_jsx(SubmitError, { result: submitResult }), _jsx(SubmitButton, { form: form })] }) })] }) }) }));
|
|
@@ -1106,23 +1106,23 @@ function CreateOrganizationSection({ header, baseUrl, editingLocale, onCreated,
|
|
|
1106
1106
|
event.stopPropagation();
|
|
1107
1107
|
submit();
|
|
1108
1108
|
}, children: _jsxs(ScrollableDialogContent, { size: "2xl", children: [_jsx(ScrollableDialogHeader, { children: header }), _jsxs(ScrollableDialogBody, { className: "flex flex-col gap-4", padding: "form", children: [_jsxs(OrganizationFormSection, { title: m.organization_profile(), description: m.organization_translation_description(), children: [_jsxs(FieldSet, { disabled: editingLocale !== "en", className: editingLocale === "en" ? "contents" : "hidden", children: [_jsx(form.enName, { label: m.organization_translation_name() }), _jsx(form.enLogo, { label: m.organization_logo(), size: {
|
|
1109
|
-
width:
|
|
1110
|
-
height:
|
|
1109
|
+
width: 140,
|
|
1110
|
+
height: 40,
|
|
1111
1111
|
suggestedWidth: 350,
|
|
1112
1112
|
suggestedHeight: 100,
|
|
1113
1113
|
} }), _jsx(form.enIcon, { label: m.organization_icon(), size: {
|
|
1114
|
-
width:
|
|
1115
|
-
height:
|
|
1114
|
+
width: 40,
|
|
1115
|
+
height: 40,
|
|
1116
1116
|
suggestedWidth: 512,
|
|
1117
1117
|
suggestedHeight: 512,
|
|
1118
1118
|
} })] }), _jsxs(FieldSet, { disabled: editingLocale !== "fr", className: editingLocale === "fr" ? "contents" : "hidden", children: [_jsx(form.frName, { label: m.organization_translation_name() }), _jsx(form.frLogo, { label: m.organization_logo(), size: {
|
|
1119
|
-
width:
|
|
1120
|
-
height:
|
|
1119
|
+
width: 140,
|
|
1120
|
+
height: 40,
|
|
1121
1121
|
suggestedWidth: 350,
|
|
1122
1122
|
suggestedHeight: 100,
|
|
1123
1123
|
} }), _jsx(form.frIcon, { label: m.organization_icon(), size: {
|
|
1124
|
-
width:
|
|
1125
|
-
height:
|
|
1124
|
+
width: 40,
|
|
1125
|
+
height: 40,
|
|
1126
1126
|
suggestedWidth: 512,
|
|
1127
1127
|
suggestedHeight: 512,
|
|
1128
1128
|
} })] })] }), _jsx(Separator, { className: "my-2" }), _jsx(form.slug, { label: m.organization_slug(), description: `${m.organization_slug_identifier_description()} ${m.organization_slug_description()}` }), _jsx(Separator, { className: "my-2" }), _jsxs(OrganizationFormSection, { title: m.organization_contact(), children: [_jsx(OrganizationContactGroup, { title: m.organization_contact_email_type(), children: _jsx(form.emails, { locale: editingLocale, messages: organizationContactFieldMessages(m) }) }), _jsx(OrganizationContactGroup, { title: m.organization_contact_phone_type(), children: _jsx(form.phones, { locale: editingLocale, messages: organizationContactFieldMessages(m) }) }), _jsx(OrganizationContactGroup, { title: m.organization_contact_website_type(), children: _jsx(form.websites, { locale: editingLocale, messages: organizationContactFieldMessages(m) }) }), _jsx(OrganizationContactGroup, { title: m.organization_contact_social_type(), children: _jsx(form.socials, { locale: editingLocale, messages: organizationContactFieldMessages(m) }) })] }), _jsx(Separator, { className: "my-2" }), _jsx(OrganizationFormSection, { title: m.organization_address(), children: _jsx(form.addresses, { locale: editingLocale, messages: organizationContactFieldMessages(m) }) })] }), _jsx(DialogFooter, { className: "-mx-6 -mb-6 border-t px-6 py-4", children: _jsxs("div", { className: "flex flex-col gap-3", children: [_jsx(SubmitError, { result: submitResult }), _jsx(SubmitButton, { form: form })] }) })] }) }) }));
|
|
@@ -826,8 +826,8 @@ const UserForm = ({ defaultValues, error, onSubmit, }) => {
|
|
|
826
826
|
event.stopPropagation();
|
|
827
827
|
submit();
|
|
828
828
|
}, children: _jsxs(ScrollableDialogContent, { size: "3xl", children: [_jsx(ScrollableDialogHeader, { children: _jsxs(DialogHeader, { children: [_jsx(DialogTitle, { className: "text-2xl", children: m.user_form_title() }), _jsx(DialogDescription, { children: m.user_form_description() })] }) }), _jsxs(ScrollableDialogBody, { className: "flex flex-col gap-4", padding: "form", children: [_jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsx("h2", { className: "text-sm leading-none font-medium", children: m.user_profile_title() }), _jsx("p", { className: "text-muted-foreground text-sm", children: m.user_profile_description() })] }), _jsx(form.image, { label: m.user_profile_photo_upload_label(), size: {
|
|
829
|
-
width:
|
|
830
|
-
height:
|
|
829
|
+
width: 40,
|
|
830
|
+
height: 40,
|
|
831
831
|
suggestedWidth: 512,
|
|
832
832
|
suggestedHeight: 512,
|
|
833
833
|
} }), _jsx(form.name, { label: m.user_form_name_label(), autoComplete: "name", required: true }), _jsx(Separator, {}), _jsxs("div", { className: "flex flex-col gap-4", children: [_jsxs("div", { className: "flex flex-wrap items-start justify-between gap-3", children: [_jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsx("h3", { className: "text-sm leading-none font-medium", children: m.user_contact_title() }), _jsx("p", { className: "text-muted-foreground text-sm", children: m.user_contact_description() })] }), _jsx(EditingLocaleSwitcher, { locale: auth?.locale, value: editingLocale, onValueChange: (value) => setEditingLocale(value === "fr" ? "fr" : "en") })] }), _jsx(UserContactGroup, { title: m.user_contact_email_type(), children: _jsx(form.emails, { locale: editingLocale, maxItems: USER_CONTACT_LIMIT, messages: userContactFieldMessages(m) }) }), _jsx(UserContactGroup, { title: m.user_contact_phone_type(), children: _jsx(form.phones, { locale: editingLocale, maxItems: USER_CONTACT_LIMIT, messages: userContactFieldMessages(m) }) }), _jsx(UserContactGroup, { title: m.user_contact_website_type(), children: _jsx(form.websites, { locale: editingLocale, maxItems: USER_CONTACT_LIMIT, messages: userContactFieldMessages(m) }) }), _jsx(UserContactGroup, { title: m.user_contact_social_type(), children: _jsx(form.socials, { locale: editingLocale, maxItems: USER_CONTACT_LIMIT, messages: userContactFieldMessages(m) }) })] })] }), _jsx(DialogFooter, { className: "-mx-6 -mb-6 border-t px-6 py-4", children: _jsxs("div", { className: "flex flex-col gap-3", children: [error && (_jsx("p", { role: "alert", className: "text-destructive text-sm", children: error })), _jsx(SubmitButton, { form: form })] }) })] }) }) }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krak-stack/auth",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.22",
|
|
4
4
|
"description": "Effect HttpApi clients and schemas for KrakStack Auth.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
"react-qr-code": "^2.2.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@krak-stack/registry": "0.1.
|
|
79
|
+
"@krak-stack/registry": "0.1.48"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"@krak-stack/registry": "^0.1.
|
|
82
|
+
"@krak-stack/registry": "^0.1.48",
|
|
83
83
|
"@tanstack/react-router": "^1.170.15",
|
|
84
84
|
"effect": "^4.0.0",
|
|
85
85
|
"input-otp": "^1.5.0",
|