@proteinjs/user-ui 1.7.1 → 1.7.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.
- package/CHANGELOG.md +11 -0
- package/dist/src/auth/AuthMessagePanel.d.ts +13 -2
- package/dist/src/auth/AuthMessagePanel.d.ts.map +1 -1
- package/dist/src/auth/AuthMessagePanel.js +7 -4
- package/dist/src/auth/AuthMessagePanel.js.map +1 -1
- package/package.json +2 -2
- package/src/auth/AuthMessagePanel.tsx +16 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.7.2](https://github.com/proteinjs/user/compare/@proteinjs/user-ui@1.7.1...@proteinjs/user-ui@1.7.2) (2026-08-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* AuthMessagePanel keeps the login form's column — an optional read-only field carries the fixed value the status is about (e.g. the waitlist confirmation's email), so status pages render title, field, action instead of floating two text lines over a lone button ([d156bee](https://github.com/proteinjs/user/commit/d156bee5e4178ea7394c3df4aed62444dbde2ff6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [1.7.1](https://github.com/proteinjs/user/compare/@proteinjs/user-ui@1.7.0...@proteinjs/user-ui@1.7.1) (2026-08-26)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @proteinjs/user-ui
|
|
@@ -2,12 +2,23 @@ import React from 'react';
|
|
|
2
2
|
export interface AuthMessagePanelProps {
|
|
3
3
|
title: string;
|
|
4
4
|
body: string;
|
|
5
|
+
/**
|
|
6
|
+
* The fixed value the message is ABOUT (e.g. the email a waitlist confirmation holds a spot
|
|
7
|
+
* for) — rendered as a read-only auth field so the status page keeps the auth surfaces' form
|
|
8
|
+
* column (title → field → action, the login page's grammar) instead of floating two text
|
|
9
|
+
* lines over a lone full-width button.
|
|
10
|
+
*/
|
|
11
|
+
field?: {
|
|
12
|
+
label: string;
|
|
13
|
+
value: string;
|
|
14
|
+
};
|
|
5
15
|
actionName: string;
|
|
6
16
|
actionHref: string;
|
|
7
17
|
}
|
|
8
18
|
/**
|
|
9
|
-
* Status states of the auth flows (link expired, reset complete,
|
|
10
|
-
* a title, one line of body copy,
|
|
19
|
+
* Status states of the auth flows (waitlist confirmations, link expired, reset complete,
|
|
20
|
+
* signup unavailable): a title, one line of body copy, the optional fixed value the state is
|
|
21
|
+
* about, and a single primary action — the same column and rhythm as the login form.
|
|
11
22
|
*/
|
|
12
23
|
export declare function AuthMessagePanel(props: AuthMessagePanelProps): React.JSX.Element;
|
|
13
24
|
//# sourceMappingURL=AuthMessagePanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthMessagePanel.d.ts","sourceRoot":"","sources":["../../../src/auth/AuthMessagePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AuthMessagePanel.d.ts","sourceRoot":"","sources":["../../../src/auth/AuthMessagePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,KAAK,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,qBAc5D"}
|
|
@@ -8,14 +8,17 @@ var react_1 = __importDefault(require("react"));
|
|
|
8
8
|
var material_1 = require("@mui/material");
|
|
9
9
|
var AuthLayout_1 = require("./AuthLayout");
|
|
10
10
|
var AuthButton_1 = require("./AuthButton");
|
|
11
|
+
var AuthTextField_1 = require("./AuthTextField");
|
|
11
12
|
/**
|
|
12
|
-
* Status states of the auth flows (link expired, reset complete,
|
|
13
|
-
* a title, one line of body copy,
|
|
13
|
+
* Status states of the auth flows (waitlist confirmations, link expired, reset complete,
|
|
14
|
+
* signup unavailable): a title, one line of body copy, the optional fixed value the state is
|
|
15
|
+
* about, and a single primary action — the same column and rhythm as the login form.
|
|
14
16
|
*/
|
|
15
17
|
function AuthMessagePanel(props) {
|
|
16
|
-
var title = props.title, body = props.body, actionName = props.actionName, actionHref = props.actionHref;
|
|
18
|
+
var title = props.title, body = props.body, field = props.field, actionName = props.actionName, actionHref = props.actionHref;
|
|
17
19
|
return (react_1.default.createElement(AuthLayout_1.AuthLayout, { title: title, subtitle: body },
|
|
18
|
-
react_1.default.createElement(
|
|
20
|
+
field ? react_1.default.createElement(AuthTextField_1.AuthTextField, { label: field.label, value: field.value, readOnly: true }) : null,
|
|
21
|
+
react_1.default.createElement(material_1.Box, { sx: { mt: field ? 0 : 1 } },
|
|
19
22
|
react_1.default.createElement(AuthButton_1.AuthButton, { type: 'button', href: actionHref }, actionName))));
|
|
20
23
|
}
|
|
21
24
|
exports.AuthMessagePanel = AuthMessagePanel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthMessagePanel.js","sourceRoot":"","sources":["../../../src/auth/AuthMessagePanel.tsx"],"names":[],"mappings":";;;;;;AAAA,gDAA0B;AAC1B,0CAAoC;AACpC,2CAA0C;AAC1C,2CAA0C;
|
|
1
|
+
{"version":3,"file":"AuthMessagePanel.js","sourceRoot":"","sources":["../../../src/auth/AuthMessagePanel.tsx"],"names":[],"mappings":";;;;;;AAAA,gDAA0B;AAC1B,0CAAoC;AACpC,2CAA0C;AAC1C,2CAA0C;AAC1C,iDAAgD;AAgBhD;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,KAA4B;IACnD,IAAA,KAAK,GAA0C,KAAK,MAA/C,EAAE,IAAI,GAAoC,KAAK,KAAzC,EAAE,KAAK,GAA6B,KAAK,MAAlC,EAAE,UAAU,GAAiB,KAAK,WAAtB,EAAE,UAAU,GAAK,KAAK,WAAV,CAAW;IAC7D,OAAO,CACL,8BAAC,uBAAU,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI;QACrC,KAAK,CAAC,CAAC,CAAC,8BAAC,6BAAa,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,QAAQ,SAAG,CAAC,CAAC,CAAC,IAAI;QAGlF,8BAAC,cAAG,IAAC,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;YAC5B,8BAAC,uBAAU,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,UAAU,IACvC,UAAU,CACA,CACT,CACK,CACd,CAAC;AACJ,CAAC;AAdD,4CAcC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proteinjs/user-ui",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "User ui components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
},
|
|
57
57
|
"main": "./dist/generated/index.js",
|
|
58
58
|
"types": "./dist/generated/index.d.ts",
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "2d225fe58861618aad5eb4522501c86bb10ef8ab"
|
|
60
60
|
}
|
|
@@ -2,23 +2,35 @@ import React from 'react';
|
|
|
2
2
|
import { Box } from '@mui/material';
|
|
3
3
|
import { AuthLayout } from './AuthLayout';
|
|
4
4
|
import { AuthButton } from './AuthButton';
|
|
5
|
+
import { AuthTextField } from './AuthTextField';
|
|
5
6
|
|
|
6
7
|
export interface AuthMessagePanelProps {
|
|
7
8
|
title: string;
|
|
8
9
|
body: string;
|
|
10
|
+
/**
|
|
11
|
+
* The fixed value the message is ABOUT (e.g. the email a waitlist confirmation holds a spot
|
|
12
|
+
* for) — rendered as a read-only auth field so the status page keeps the auth surfaces' form
|
|
13
|
+
* column (title → field → action, the login page's grammar) instead of floating two text
|
|
14
|
+
* lines over a lone full-width button.
|
|
15
|
+
*/
|
|
16
|
+
field?: { label: string; value: string };
|
|
9
17
|
actionName: string;
|
|
10
18
|
actionHref: string;
|
|
11
19
|
}
|
|
12
20
|
|
|
13
21
|
/**
|
|
14
|
-
* Status states of the auth flows (link expired, reset complete,
|
|
15
|
-
* a title, one line of body copy,
|
|
22
|
+
* Status states of the auth flows (waitlist confirmations, link expired, reset complete,
|
|
23
|
+
* signup unavailable): a title, one line of body copy, the optional fixed value the state is
|
|
24
|
+
* about, and a single primary action — the same column and rhythm as the login form.
|
|
16
25
|
*/
|
|
17
26
|
export function AuthMessagePanel(props: AuthMessagePanelProps) {
|
|
18
|
-
const { title, body, actionName, actionHref } = props;
|
|
27
|
+
const { title, body, field, actionName, actionHref } = props;
|
|
19
28
|
return (
|
|
20
29
|
<AuthLayout title={title} subtitle={body}>
|
|
21
|
-
<
|
|
30
|
+
{field ? <AuthTextField label={field.label} value={field.value} readOnly /> : null}
|
|
31
|
+
{/* With a field above, its own bottom rhythm spaces the action (the login layout);
|
|
32
|
+
without one, keep a small breath under the body line. */}
|
|
33
|
+
<Box sx={{ mt: field ? 0 : 1 }}>
|
|
22
34
|
<AuthButton type='button' href={actionHref}>
|
|
23
35
|
{actionName}
|
|
24
36
|
</AuthButton>
|