@molecule/app-auth-shell-react 4.0.3 → 4.1.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/README.md +9 -10
- package/dist/AuthShell.d.ts +1 -1
- package/dist/AuthShell.d.ts.map +1 -1
- package/dist/AuthShell.js +5 -2
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/package.json +6 -8
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-11-
|
|
6
|
+
Generated: 2026-11-24T08:56:58.465Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-auth-shell-react
|
|
@@ -78,7 +78,7 @@ export function Login() {
|
|
|
78
78
|
## Installation
|
|
79
79
|
|
|
80
80
|
```bash
|
|
81
|
-
npm install @molecule/app-auth-shell-react @molecule/app-logger @molecule/app-react @molecule/app-storage @molecule/app-ui react
|
|
81
|
+
npm install @molecule/app-auth-shell-react @molecule/app-logger @molecule/app-react @molecule/app-storage @molecule/app-ui react
|
|
82
82
|
npm install -D @types/react
|
|
83
83
|
```
|
|
84
84
|
|
|
@@ -511,9 +511,9 @@ function AuthShell({
|
|
|
511
511
|
heading,
|
|
512
512
|
subheading,
|
|
513
513
|
children,
|
|
514
|
-
footer,
|
|
514
|
+
footer: footerProp,
|
|
515
515
|
brand,
|
|
516
|
-
decoration,
|
|
516
|
+
decoration: decorationProp,
|
|
517
517
|
backTo = '/',
|
|
518
518
|
showBackLink = true,
|
|
519
519
|
formStateStorage,
|
|
@@ -552,11 +552,10 @@ const DEFAULT_AUTH_FORM_STATE_KEY: 'molecule.auth.form-state'
|
|
|
552
552
|
Peer dependencies:
|
|
553
553
|
|
|
554
554
|
- `@molecule/app-logger` ^1.0.1
|
|
555
|
-
- `@molecule/app-react` ^4.
|
|
555
|
+
- `@molecule/app-react` ^4.13.0
|
|
556
556
|
- `@molecule/app-storage` ^1.0.1
|
|
557
557
|
- `@molecule/app-ui` ^1.3.11
|
|
558
558
|
- `react` ^18.0.0 || ^19.0.0
|
|
559
|
-
- `react-router` ^7.0.0 || ^8.0.0
|
|
560
559
|
|
|
561
560
|
### Runtime Dependencies
|
|
562
561
|
|
|
@@ -565,11 +564,11 @@ Peer dependencies:
|
|
|
565
564
|
- `@molecule/app-storage`
|
|
566
565
|
- `@molecule/app-ui`
|
|
567
566
|
- `react`
|
|
568
|
-
- `react-router`
|
|
569
567
|
|
|
570
|
-
`AuthShell` renders
|
|
571
|
-
so it MUST be rendered inside
|
|
572
|
-
|
|
568
|
+
`AuthShell` renders an `<Link>` from `@molecule/app-react/link`
|
|
569
|
+
("Back to home") by default, so it MUST be rendered inside the app's
|
|
570
|
+
router (`RouterProvider`); pass `showBackLink={false}` in router-less
|
|
571
|
+
setups. The back link's arrow uses the Material Symbols
|
|
573
572
|
icon font — load it, or the glyph renders as text; the glyph span is
|
|
574
573
|
`aria-hidden="true"`, so the link's accessible name is its `t()` label
|
|
575
574
|
alone. The default glass
|
package/dist/AuthShell.d.ts
CHANGED
|
@@ -212,6 +212,6 @@ export interface AuthShellProps {
|
|
|
212
212
|
* rendered inside inherits cross-view email persistence via
|
|
213
213
|
* `useAuthFormStateContext()`.
|
|
214
214
|
*/
|
|
215
|
-
export declare function AuthShell({ heading, subheading, children, footer, brand, decoration, backTo, showBackLink, formStateStorage, formStateKey, }: AuthShellProps): JSX.Element;
|
|
215
|
+
export declare function AuthShell({ heading, subheading, children, footer: footerProp, brand, decoration: decorationProp, backTo, showBackLink, formStateStorage, formStateKey, }: AuthShellProps): JSX.Element;
|
|
216
216
|
export default AuthShell;
|
|
217
217
|
//# sourceMappingURL=AuthShell.d.ts.map
|
package/dist/AuthShell.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthShell.d.ts","sourceRoot":"","sources":["../src/AuthShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAe,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"AuthShell.d.ts","sourceRoot":"","sources":["../src/AuthShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAe,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKvF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAK5D;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,SAAS,CAAA;IACnB,wDAAwD;IACxD,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,mHAAmH;IACnH,MAAM,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAA;CAC/B;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,KAAK,EACL,SAAS,EACT,MAAmB,GACpB,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAgBvC;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,GAAG,CAAC,OAAO,CAGtF;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,SAAS,CAAA;IACnB,2EAA2E;IAC3E,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,uGAAuG;IACvG,cAAc,CAAC,EAAE,MAAM,C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,CAAC,EAAE,SAAS,CAAA;IAClB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,eAAe,CAAA;IAClC,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,EACxB,OAAO,EACP,UAAU,EACV,QAAQ,EACR,MAAM,EAAE,UAAU,EAClB,KAAK,EACL,UAAU,EAAE,cAAc,EAC1B,MAAY,EACZ,YAAmB,EACnB,gBAAgB,EAChB,YAAY,GACb,EAAE,cAAc,GAAG,GAAG,CAAC,OAAO,CAmB9B;AAED,eAAe,SAAS,CAAA"}
|
package/dist/AuthShell.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Link } from 'react-router';
|
|
3
2
|
import { useTranslation } from '@molecule/app-react';
|
|
3
|
+
import { Link } from '@molecule/app-react/link';
|
|
4
|
+
import { slot } from '@molecule/app-react/render';
|
|
4
5
|
import { getClassMap } from '@molecule/app-ui';
|
|
5
6
|
import { AuthFormStateProvider } from './AuthFormStateProvider.js';
|
|
6
7
|
/**
|
|
@@ -95,7 +96,9 @@ export function AuthShellCardColumn({ children, className, as = 'section', ...re
|
|
|
95
96
|
* rendered inside inherits cross-view email persistence via
|
|
96
97
|
* `useAuthFormStateContext()`.
|
|
97
98
|
*/
|
|
98
|
-
export function AuthShell({ heading, subheading, children, footer, brand, decoration, backTo = '/', showBackLink = true, formStateStorage, formStateKey, }) {
|
|
99
|
+
export function AuthShell({ heading, subheading, children, footer: footerProp, brand, decoration: decorationProp, backTo = '/', showBackLink = true, formStateStorage, formStateKey, }) {
|
|
100
|
+
const footer = slot(footerProp);
|
|
101
|
+
const decoration = slot(decorationProp);
|
|
99
102
|
return (_jsx(AuthFormStateProvider, { storage: formStateStorage, storageKey: formStateKey, children: _jsxs(AuthShellContainer, { children: [decoration ? _jsx(AuthShellDecoration, { children: decoration }) : null, _jsxs("div", { children: [_jsxs(AuthShellCard, { children: [brand, _jsx(AuthShellHeading, { heading: heading, subheading: subheading }), children, footer ? _jsx(AuthShellFooter, { children: footer }) : null] }), showBackLink ? _jsx(AuthShellBackLink, { to: backTo }) : null] })] }) }));
|
|
100
103
|
}
|
|
101
104
|
export default AuthShell;
|
package/dist/index.d.ts
CHANGED
|
@@ -54,9 +54,10 @@
|
|
|
54
54
|
* ```
|
|
55
55
|
*
|
|
56
56
|
* @remarks
|
|
57
|
-
* `AuthShell` renders
|
|
58
|
-
* so it MUST be rendered inside
|
|
59
|
-
*
|
|
57
|
+
* `AuthShell` renders an `<Link>` from `@molecule/app-react/link`
|
|
58
|
+
* ("Back to home") by default, so it MUST be rendered inside the app's
|
|
59
|
+
* router (`RouterProvider`); pass `showBackLink={false}` in router-less
|
|
60
|
+
* setups. The back link's arrow uses the Material Symbols
|
|
60
61
|
* icon font — load it, or the glyph renders as text; the glyph span is
|
|
61
62
|
* `aria-hidden="true"`, so the link's accessible name is its `t()` label
|
|
62
63
|
* alone. The default glass
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AAEH,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -54,9 +54,10 @@
|
|
|
54
54
|
* ```
|
|
55
55
|
*
|
|
56
56
|
* @remarks
|
|
57
|
-
* `AuthShell` renders
|
|
58
|
-
* so it MUST be rendered inside
|
|
59
|
-
*
|
|
57
|
+
* `AuthShell` renders an `<Link>` from `@molecule/app-react/link`
|
|
58
|
+
* ("Back to home") by default, so it MUST be rendered inside the app's
|
|
59
|
+
* router (`RouterProvider`); pass `showBackLink={false}` in router-less
|
|
60
|
+
* setups. The back link's arrow uses the Material Symbols
|
|
60
61
|
* icon font — load it, or the glyph renders as text; the glyph span is
|
|
61
62
|
* `aria-hidden="true"`, so the link's accessible name is its `t()` label
|
|
62
63
|
* alone. The default glass
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-auth-shell-react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Auth-page layout shell — centered card with heading/subheading/form/footer + back-link below. Composable children for per-app decorative background + brand mark.",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/app-auth-shell-react",
|
|
6
6
|
"type": "module",
|
|
@@ -36,25 +36,23 @@
|
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@molecule/app-logger": "^1.0.1",
|
|
39
|
-
"@molecule/app-react": "^4.
|
|
39
|
+
"@molecule/app-react": "^4.13.0",
|
|
40
40
|
"@molecule/app-storage": "^1.0.1",
|
|
41
41
|
"@molecule/app-ui": "^1.3.11",
|
|
42
|
-
"react": "^18.0.0 || ^19.0.0"
|
|
43
|
-
"react-router": "^7.0.0 || ^8.0.0"
|
|
42
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
44
43
|
},
|
|
45
44
|
"devDependencies": {
|
|
46
45
|
"@molecule/app-logger": "1.1.0",
|
|
47
|
-
"@molecule/app-react": "4.
|
|
46
|
+
"@molecule/app-react": "4.13.0",
|
|
48
47
|
"@molecule/app-storage": "1.1.1",
|
|
49
|
-
"@molecule/app-ui": "1.
|
|
48
|
+
"@molecule/app-ui": "1.5.0",
|
|
50
49
|
"@testing-library/react": "16.3.3",
|
|
51
50
|
"@types/node": "26.6.5",
|
|
52
51
|
"@types/react": "19.3.0",
|
|
53
52
|
"@types/react-dom": "19.3.0",
|
|
54
|
-
"jsdom": "
|
|
53
|
+
"jsdom": "31.0.1",
|
|
55
54
|
"react": "19.3.1",
|
|
56
55
|
"react-dom": "19.3.1",
|
|
57
|
-
"react-router": "8.5.0",
|
|
58
56
|
"typescript": "6.0.3",
|
|
59
57
|
"vitest": "4.1.12"
|
|
60
58
|
}
|