@lobb-js/lobb-ext-auth 0.11.2 → 0.11.3

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/index.js CHANGED
@@ -57,7 +57,7 @@ export default function extension(utils) {
57
57
  {
58
58
  label: "Auth",
59
59
  icon: utils.components.Icons.Key,
60
- href: "/studio/extensions/auth/settings/users",
60
+ href: "/studio/extensions/auth/settings",
61
61
  represents: "auth_users",
62
62
  },
63
63
  ],
@@ -10,6 +10,15 @@
10
10
  const { Icons } = components;
11
11
  const auth_settings_page = $derived(props.utils.page.url.pathname.split("/")[5]);
12
12
  const isSmall = $derived(!props.utils.mediaQueries.sm.current);
13
+
14
+ // Bare /studio/extensions/auth/settings has no sub-page to render, which
15
+ // would leave the page blank. Redirect to the first sub-page (Users) so
16
+ // landing on the settings root always shows something useful.
17
+ $effect(() => {
18
+ if (!auth_settings_page) {
19
+ props.utils.goto("/studio/extensions/auth/settings/users");
20
+ }
21
+ });
13
22
  </script>
14
23
 
15
24
  <!-- TODO: add the sidebar in here to add these pages
@@ -62,7 +62,7 @@ export default function extension(utils: ExtensionUtils): Extension {
62
62
  {
63
63
  label: "Auth",
64
64
  icon: utils.components.Icons.Key,
65
- href: "/studio/extensions/auth/settings/users",
65
+ href: "/studio/extensions/auth/settings",
66
66
  represents: "auth_users",
67
67
  },
68
68
  ],
@@ -10,6 +10,15 @@
10
10
  const { Icons } = components;
11
11
  const auth_settings_page = $derived(props.utils.page.url.pathname.split("/")[5]);
12
12
  const isSmall = $derived(!props.utils.mediaQueries.sm.current);
13
+
14
+ // Bare /studio/extensions/auth/settings has no sub-page to render, which
15
+ // would leave the page blank. Redirect to the first sub-page (Users) so
16
+ // landing on the settings root always shows something useful.
17
+ $effect(() => {
18
+ if (!auth_settings_page) {
19
+ props.utils.goto("/studio/extensions/auth/settings/users");
20
+ }
21
+ });
13
22
  </script>
14
23
 
15
24
  <!-- TODO: add the sidebar in here to add these pages
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobb-js/lobb-ext-auth",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -32,12 +32,12 @@
32
32
  "package": "svelte-package --input extensions/auth/studio"
33
33
  },
34
34
  "dependencies": {
35
- "@lobb-js/core": "^0.32.1",
35
+ "@lobb-js/core": "^0.33.0",
36
36
  "argon2": "^0.40.3",
37
37
  "hono": "^4.7.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@lobb-js/studio": "^0.29.1",
40
+ "@lobb-js/studio": "^0.31.0",
41
41
  "@lucide/svelte": "^0.563.1",
42
42
  "@sveltejs/adapter-node": "^5.5.4",
43
43
  "@sveltejs/kit": "^2.60.1",