@byline/admin 3.5.0 → 3.5.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/forms/form-renderer.js +1 -0
- package/dist/modules/admin-account/components/change-password.js +1 -0
- package/dist/modules/admin-account/components/preferences.js +1 -0
- package/dist/modules/admin-account/components/update.js +1 -0
- package/dist/modules/admin-roles/components/create.js +1 -0
- package/dist/modules/admin-roles/components/update.js +1 -0
- package/dist/modules/admin-users/components/create.js +1 -0
- package/dist/modules/admin-users/components/set-password.js +1 -0
- package/dist/modules/admin-users/components/update.js +1 -0
- package/dist/modules/auth/components/sign-in-form.js +1 -0
- package/package.json +5 -5
- package/src/forms/form-renderer.tsx +6 -1
- package/src/modules/admin-account/components/change-password.tsx +1 -0
- package/src/modules/admin-account/components/preferences.tsx +1 -0
- package/src/modules/admin-account/components/update.tsx +1 -0
- package/src/modules/admin-roles/components/create.tsx +1 -0
- package/src/modules/admin-roles/components/update.tsx +1 -0
- package/src/modules/admin-users/components/create.tsx +1 -0
- package/src/modules/admin-users/components/set-password.tsx +1 -0
- package/src/modules/admin-users/components/update.tsx +1 -0
- package/src/modules/auth/components/sign-in-form.tsx +6 -1
|
@@ -394,6 +394,7 @@ const FormContent = ({ mode, fields, onSubmit, onCancel, onStatusChange, onUnpub
|
|
|
394
394
|
}, `tabset:${set.name}`);
|
|
395
395
|
};
|
|
396
396
|
return /*#__PURE__*/ jsxs("form", {
|
|
397
|
+
method: "post",
|
|
397
398
|
noValidate: true,
|
|
398
399
|
onSubmit: handleSubmit,
|
|
399
400
|
className: classnames('byline-form', form_renderer_module.form),
|
|
@@ -87,6 +87,7 @@ function ChangeAccountPassword({ account, onClose, onSuccess }) {
|
|
|
87
87
|
return /*#__PURE__*/ jsx("div", {
|
|
88
88
|
className: classnames('byline-account-change-password-wrap', change_password_module.wrap),
|
|
89
89
|
children: /*#__PURE__*/ jsxs("form", {
|
|
90
|
+
method: "post",
|
|
90
91
|
noValidate: true,
|
|
91
92
|
onSubmit: (event)=>{
|
|
92
93
|
event.preventDefault();
|
|
@@ -73,6 +73,7 @@ function Preferences({ account, onClose, onSuccess }) {
|
|
|
73
73
|
return /*#__PURE__*/ jsx("div", {
|
|
74
74
|
className: classnames('byline-account-preferences-wrap', preferences_module.wrap),
|
|
75
75
|
children: /*#__PURE__*/ jsxs("form", {
|
|
76
|
+
method: "post",
|
|
76
77
|
noValidate: true,
|
|
77
78
|
onSubmit: (event)=>{
|
|
78
79
|
event.preventDefault();
|
|
@@ -102,6 +102,7 @@ function UpdateAccount({ account, onClose, onSuccess }) {
|
|
|
102
102
|
return /*#__PURE__*/ jsx("div", {
|
|
103
103
|
className: classnames('byline-account-update-wrap', update_module.wrap),
|
|
104
104
|
children: /*#__PURE__*/ jsxs("form", {
|
|
105
|
+
method: "post",
|
|
105
106
|
noValidate: true,
|
|
106
107
|
onSubmit: (event)=>{
|
|
107
108
|
event.preventDefault();
|
|
@@ -82,6 +82,7 @@ function CreateAdminRole({ onClose, onSuccess }) {
|
|
|
82
82
|
return /*#__PURE__*/ jsx("div", {
|
|
83
83
|
className: classnames('byline-role-create-wrap', create_module.wrap),
|
|
84
84
|
children: /*#__PURE__*/ jsxs("form", {
|
|
85
|
+
method: "post",
|
|
85
86
|
noValidate: true,
|
|
86
87
|
onSubmit: (event)=>{
|
|
87
88
|
event.preventDefault();
|
|
@@ -75,6 +75,7 @@ function UpdateRole({ role, onClose, onSuccess }) {
|
|
|
75
75
|
return /*#__PURE__*/ jsx("div", {
|
|
76
76
|
className: classnames('byline-role-update-wrap', update_module.wrap),
|
|
77
77
|
children: /*#__PURE__*/ jsxs("form", {
|
|
78
|
+
method: "post",
|
|
78
79
|
noValidate: true,
|
|
79
80
|
onSubmit: (event)=>{
|
|
80
81
|
event.preventDefault();
|
|
@@ -101,6 +101,7 @@ function CreateAdminUser({ onClose, onSuccess }) {
|
|
|
101
101
|
return /*#__PURE__*/ jsx("div", {
|
|
102
102
|
className: classnames('byline-user-create-wrap', create_module.wrap),
|
|
103
103
|
children: /*#__PURE__*/ jsxs("form", {
|
|
104
|
+
method: "post",
|
|
104
105
|
noValidate: true,
|
|
105
106
|
onSubmit: (event)=>{
|
|
106
107
|
event.preventDefault();
|
|
@@ -68,6 +68,7 @@ function SetPassword({ user, onClose, onSuccess }) {
|
|
|
68
68
|
return /*#__PURE__*/ jsx("div", {
|
|
69
69
|
className: classnames('byline-user-set-password-wrap', set_password_module.wrap),
|
|
70
70
|
children: /*#__PURE__*/ jsxs("form", {
|
|
71
|
+
method: "post",
|
|
71
72
|
noValidate: true,
|
|
72
73
|
onSubmit: (event)=>{
|
|
73
74
|
event.preventDefault();
|
|
@@ -112,6 +112,7 @@ function UpdateUser({ user, onClose, onSuccess }) {
|
|
|
112
112
|
return /*#__PURE__*/ jsx("div", {
|
|
113
113
|
className: classnames('byline-user-update-wrap', update_module.wrap),
|
|
114
114
|
children: /*#__PURE__*/ jsxs("form", {
|
|
115
|
+
method: "post",
|
|
115
116
|
noValidate: true,
|
|
116
117
|
onSubmit: (event)=>{
|
|
117
118
|
event.preventDefault();
|
|
@@ -56,6 +56,7 @@ function SignInForm({ callbackUrl, homeUrl }) {
|
|
|
56
56
|
}),
|
|
57
57
|
/*#__PURE__*/ jsx(Card.Content, {
|
|
58
58
|
children: /*#__PURE__*/ jsxs("form", {
|
|
59
|
+
method: "post",
|
|
59
60
|
onSubmit: handleSubmit,
|
|
60
61
|
noValidate: true,
|
|
61
62
|
className: classnames('byline-sign-in-form', sign_in_form_module.form),
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@byline/admin",
|
|
3
3
|
"private": false,
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
|
-
"version": "3.5.
|
|
5
|
+
"version": "3.5.1",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=20.9.0"
|
|
8
8
|
},
|
|
@@ -146,10 +146,10 @@
|
|
|
146
146
|
"uuid": "^14.0.0",
|
|
147
147
|
"zod": "^4.4.3",
|
|
148
148
|
"zod-form-data": "^3.0.1",
|
|
149
|
-
"@byline/auth": "3.5.
|
|
150
|
-
"@byline/
|
|
151
|
-
"@byline/
|
|
152
|
-
"@byline/core": "3.5.
|
|
149
|
+
"@byline/auth": "3.5.1",
|
|
150
|
+
"@byline/i18n": "3.5.1",
|
|
151
|
+
"@byline/ui": "3.5.1",
|
|
152
|
+
"@byline/core": "3.5.1"
|
|
153
153
|
},
|
|
154
154
|
"peerDependencies": {
|
|
155
155
|
"react": "^19.0.0",
|
|
@@ -737,7 +737,12 @@ const FormContent = ({
|
|
|
737
737
|
}
|
|
738
738
|
|
|
739
739
|
return (
|
|
740
|
-
<form
|
|
740
|
+
<form
|
|
741
|
+
method="post"
|
|
742
|
+
noValidate
|
|
743
|
+
onSubmit={handleSubmit}
|
|
744
|
+
className={cx('byline-form', styles.form)}
|
|
745
|
+
>
|
|
741
746
|
<div className={cx('byline-form-heading-row', styles['heading-row'])}>
|
|
742
747
|
<h1 className={cx('byline-form-heading', styles.heading)}>{heading}</h1>
|
|
743
748
|
{/* Source-locale anchor indicator removed pending heading-layout work.
|
|
@@ -130,6 +130,7 @@ export function ChangeAccountPassword({ account, onClose, onSuccess }: ChangePas
|
|
|
130
130
|
return (
|
|
131
131
|
<div className={cx('byline-account-change-password-wrap', styles.wrap)}>
|
|
132
132
|
<form
|
|
133
|
+
method="post"
|
|
133
134
|
noValidate
|
|
134
135
|
onSubmit={(event) => {
|
|
135
136
|
event.preventDefault()
|
|
@@ -131,6 +131,7 @@ export function Preferences({ account, onClose, onSuccess }: PreferencesProps) {
|
|
|
131
131
|
return (
|
|
132
132
|
<div className={cx('byline-account-preferences-wrap', styles.wrap)}>
|
|
133
133
|
<form
|
|
134
|
+
method="post"
|
|
134
135
|
noValidate
|
|
135
136
|
onSubmit={(event) => {
|
|
136
137
|
event.preventDefault()
|
|
@@ -158,6 +158,7 @@ export function UpdateAccount({ account, onClose, onSuccess }: UpdateAccountProp
|
|
|
158
158
|
return (
|
|
159
159
|
<div className={cx('byline-account-update-wrap', styles.wrap)}>
|
|
160
160
|
<form
|
|
161
|
+
method="post"
|
|
161
162
|
noValidate
|
|
162
163
|
onSubmit={(event) => {
|
|
163
164
|
event.preventDefault()
|
|
@@ -128,6 +128,7 @@ export function CreateAdminRole({ onClose, onSuccess }: CreateAdminRoleProps) {
|
|
|
128
128
|
return (
|
|
129
129
|
<div className={cx('byline-role-create-wrap', styles.wrap)}>
|
|
130
130
|
<form
|
|
131
|
+
method="post"
|
|
131
132
|
noValidate
|
|
132
133
|
onSubmit={(event) => {
|
|
133
134
|
event.preventDefault()
|
|
@@ -155,6 +155,7 @@ export function CreateAdminUser({ onClose, onSuccess }: CreateAdminUserProps) {
|
|
|
155
155
|
return (
|
|
156
156
|
<div className={cx('byline-user-create-wrap', styles.wrap)}>
|
|
157
157
|
<form
|
|
158
|
+
method="post"
|
|
158
159
|
noValidate
|
|
159
160
|
onSubmit={(event) => {
|
|
160
161
|
event.preventDefault()
|
|
@@ -105,6 +105,7 @@ export function SetPassword({ user, onClose, onSuccess }: SetPasswordProps) {
|
|
|
105
105
|
return (
|
|
106
106
|
<div className={cx('byline-user-set-password-wrap', styles.wrap)}>
|
|
107
107
|
<form
|
|
108
|
+
method="post"
|
|
108
109
|
noValidate
|
|
109
110
|
onSubmit={(event) => {
|
|
110
111
|
event.preventDefault()
|
|
@@ -88,7 +88,12 @@ export function SignInForm({ callbackUrl, homeUrl }: SignInFormProps) {
|
|
|
88
88
|
)}
|
|
89
89
|
</Card.Header>
|
|
90
90
|
<Card.Content>
|
|
91
|
-
<form
|
|
91
|
+
<form
|
|
92
|
+
method="post"
|
|
93
|
+
onSubmit={handleSubmit}
|
|
94
|
+
noValidate
|
|
95
|
+
className={cx('byline-sign-in-form', styles.form)}
|
|
96
|
+
>
|
|
92
97
|
<div className={cx('byline-sign-in-fields', styles.fields)}>
|
|
93
98
|
<Input
|
|
94
99
|
label={t('common.fields.email')}
|