hazo_auth 10.5.0 → 10.6.0

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 CHANGED
@@ -1620,11 +1620,11 @@ The component automatically shows/hides tabs based on the user's permissions, so
1620
1620
 
1621
1621
  ### Choose the UI Shell (Test Sidebar vs Standalone)
1622
1622
 
1623
- By default, the pages render inside the "test workspace" sidebar so you can quickly preview every flow. When you reuse the routes inside another project you'll usually want a clean, standalone wrapper instead. Set this in `hazo_auth_config.ini`:
1623
+ By default, pages render with a clean, standalone wrapper that inherits your own app shell, layout, and theme tokens. The "test workspace" sidebar (`test_sidebar`) is opt-in and intended only for this package's own demo/dev app (Storybook screenshots, quickly previewing every flow). Set this in `hazo_auth_config.ini`:
1624
1624
 
1625
1625
  ```ini
1626
1626
  [hazo_auth__ui_shell]
1627
- # Options: test_sidebar | standalone
1627
+ # Options: standalone (default) | test_sidebar
1628
1628
  layout_mode = standalone
1629
1629
  vertical_center = auto # 'auto' enables vertical centering when navbar is present
1630
1630
  # Optional tweaks for the standalone header wrapper/classes:
@@ -1634,11 +1634,13 @@ vertical_center = auto # 'auto' enables vertical centering when navbar is prese
1634
1634
  # standalone_content_class = mx-auto w-full max-w-4xl rounded-2xl border bg-card
1635
1635
  ```
1636
1636
 
1637
- - `test_sidebar`: keeps the developer sidebar (perfect for the demo workspace or Storybook screenshots).
1638
- - `standalone`: renders the page body directly so it inherits your own app shell, layout, and theme tokens.
1637
+ - `standalone` (default): renders the page body directly so it inherits your own app shell, layout, and theme tokens.
1638
+ - `test_sidebar`: keeps the developer sidebar. Opt-in only, meant for this package's own demo/dev app do not set this in consuming apps.
1639
1639
  - `vertical_center`: controls vertical centering of auth content (`auto` enables centering when navbar is present)
1640
1640
  - The wrapper and content class overrides let you align spacing/borders with your design system without editing package code.
1641
1641
 
1642
+ **`pages/*` vs `components/layouts/*`:** The `hazo_auth/pages/*` exports (e.g. `hazo_auth/pages/login`, `/register`, etc.) are full-screen pages meant to be rendered at page root by consumers — they should not be wrapped in a fixed-width card/container. If you need an embedded/card-style form (e.g. inside a modal or a section of an existing page), use the bare `components/layouts/login` component with `layout="form_only"` instead.
1643
+
1642
1644
  ### Authentication Page Navbar
1643
1645
 
1644
1646
  **The navbar now works automatically** - zero-config server page components include the navbar based on configuration without manual wrapping.
@@ -27,11 +27,15 @@ export type UiShellConfig = {
27
27
  /**
28
28
  * Reads ui shell configuration controlling whether pages use the sidebar test shell
29
29
  * or a clean standalone wrapper that inherits consumer project styling.
30
+ *
31
+ * `standalone` is the default so consuming apps get a clean wrapper out of the box.
32
+ * `test_sidebar` must be explicitly opted into via config and is intended for use
33
+ * by this package's own demo/dev app only.
30
34
  */
31
35
  export function get_ui_shell_config(): UiShellConfig {
32
36
  const section = "hazo_auth__ui_shell";
33
37
 
34
- const layoutModeValue = get_config_value(section, "layout_mode", "test_sidebar").toLowerCase();
38
+ const layoutModeValue = get_config_value(section, "layout_mode", "standalone").toLowerCase();
35
39
  const layout_mode: UiShellLayoutMode =
36
40
  layoutModeValue === "standalone" ? "standalone" : "test_sidebar";
37
41
 
@@ -17,6 +17,10 @@ export type UiShellConfig = {
17
17
  /**
18
18
  * Reads ui shell configuration controlling whether pages use the sidebar test shell
19
19
  * or a clean standalone wrapper that inherits consumer project styling.
20
+ *
21
+ * `standalone` is the default so consuming apps get a clean wrapper out of the box.
22
+ * `test_sidebar` must be explicitly opted into via config and is intended for use
23
+ * by this package's own demo/dev app only.
20
24
  */
21
25
  export declare function get_ui_shell_config(): UiShellConfig;
22
26
  //# sourceMappingURL=ui_shell_config.server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui_shell_config.server.d.ts","sourceRoot":"","sources":["../../src/lib/ui_shell_config.server.ts"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAC;AAIrB,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAG9E,MAAM,MAAM,iBAAiB,GAAG,cAAc,GAAG,YAAY,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG;IAC1B,WAAW,EAAE,iBAAiB,CAAC;IAC/B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,wBAAwB,EAAE,MAAM,CAAC;IACjC,wBAAwB,EAAE,MAAM,CAAC;IACjC,uBAAuB,EAAE,OAAO,CAAC;IACjC,2BAA2B,EAAE,OAAO,CAAC;IACrC,+CAA+C;IAC/C,MAAM,EAAE,YAAY,CAAC;IACrB,mDAAmD;IACnD,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAGF;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,aAAa,CA6DnD"}
1
+ {"version":3,"file":"ui_shell_config.server.d.ts","sourceRoot":"","sources":["../../src/lib/ui_shell_config.server.ts"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAC;AAIrB,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAG9E,MAAM,MAAM,iBAAiB,GAAG,cAAc,GAAG,YAAY,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG;IAC1B,WAAW,EAAE,iBAAiB,CAAC;IAC/B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,wBAAwB,EAAE,MAAM,CAAC;IACjC,wBAAwB,EAAE,MAAM,CAAC;IACjC,uBAAuB,EAAE,OAAO,CAAC;IACjC,2BAA2B,EAAE,OAAO,CAAC;IACrC,+CAA+C;IAC/C,MAAM,EAAE,YAAY,CAAC;IACrB,mDAAmD;IACnD,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAGF;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,IAAI,aAAa,CA6DnD"}
@@ -8,10 +8,14 @@ import { get_navbar_config } from "./navbar_config.server.js";
8
8
  /**
9
9
  * Reads ui shell configuration controlling whether pages use the sidebar test shell
10
10
  * or a clean standalone wrapper that inherits consumer project styling.
11
+ *
12
+ * `standalone` is the default so consuming apps get a clean wrapper out of the box.
13
+ * `test_sidebar` must be explicitly opted into via config and is intended for use
14
+ * by this package's own demo/dev app only.
11
15
  */
12
16
  export function get_ui_shell_config() {
13
17
  const section = "hazo_auth__ui_shell";
14
- const layoutModeValue = get_config_value(section, "layout_mode", "test_sidebar").toLowerCase();
18
+ const layoutModeValue = get_config_value(section, "layout_mode", "standalone").toLowerCase();
15
19
  const layout_mode = layoutModeValue === "standalone" ? "standalone" : "test_sidebar";
16
20
  const standalone_heading = get_config_value(section, "standalone_heading", "Welcome to hazo auth");
17
21
  const standalone_description = get_config_value(section, "standalone_description", "Reuse the packaged authentication flows while inheriting your existing app shell styles.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hazo_auth",
3
- "version": "10.5.0",
3
+ "version": "10.6.0",
4
4
  "description": "Zero-config authentication UI components for Next.js with RBAC, OAuth, scope-based multi-tenancy, and invitations",
5
5
  "keywords": [
6
6
  "authentication",
@@ -262,14 +262,14 @@
262
262
  "@radix-ui/react-switch": "^1.2.0",
263
263
  "@radix-ui/react-tabs": "^1.1.0",
264
264
  "@radix-ui/react-tooltip": "^1.2.0",
265
- "hazo_api": "^2.4.0",
265
+ "hazo_api": "^2.5.1",
266
266
  "hazo_config": "^2.4.1",
267
267
  "hazo_connect": "^3.9.0",
268
- "hazo_core": "^1.2.0",
268
+ "hazo_core": "^1.2.1",
269
269
  "hazo_logs": "^2.1.1",
270
270
  "hazo_notify": "^6.1.4",
271
- "hazo_secure": "^1.1.0",
272
- "hazo_ui": "^4.6.2",
271
+ "hazo_secure": "^1.3.0",
272
+ "hazo_ui": "^4.9.0",
273
273
  "input-otp": "^1.4.0",
274
274
  "lucide-react": "^0.553.0",
275
275
  "next": "^14.0.0",
@@ -408,7 +408,7 @@
408
408
  "hazo_core": "^1.2.1",
409
409
  "hazo_logs": "^2.1.1",
410
410
  "hazo_notify": "^6.1.4",
411
- "hazo_ui": "^4.7.0",
411
+ "hazo_ui": "^4.9.0",
412
412
  "input-otp": "^1.4.0",
413
413
  "jest": "^30.2.0",
414
414
  "jest-environment-jsdom": "^30.0.0",