@lobb-js/lobb-ext-auth 0.1.64 → 0.1.66

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 CHANGED
@@ -2,6 +2,23 @@
2
2
  All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
3
3
 
4
4
  - - -
5
+ ## auth-ext-studio@0.1.66 - 2026-03-01
6
+ #### Bug Fixes
7
+ - (**studio**) prevent @lobb-js/studio version shadowing in extensions - (cd674b9) - malik ben
8
+ #### Miscellaneous Chores
9
+ - (**version**) 0.15.0 - (0c2c345) - Cocogitto Bot
10
+ - fixing the /studio base issue - (de6686f) - Malik Najjar
11
+
12
+ - - -
13
+
14
+ ## auth-ext-studio@0.1.65 - 2026-02-22
15
+ #### Bug Fixes
16
+ - adding a studio prefix for the studio app - (6607b5a) - malik ben
17
+ #### Miscellaneous Chores
18
+ - (**version**) 0.14.2 - (6ecdc1d) - Cocogitto Bot
19
+
20
+ - - -
21
+
5
22
  ## auth-ext-studio@0.1.64 - 2026-02-21
6
23
  #### Bug Fixes
7
24
  - using default export instead of named export for extensions - (37dd485) - malik ben
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobb-js/lobb-ext-auth",
3
- "version": "0.1.64",
3
+ "version": "0.1.66",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/index.ts"
@@ -11,10 +11,8 @@
11
11
  "preview": "vite preview",
12
12
  "check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json"
13
13
  },
14
- "dependencies": {
15
- "@lobb-js/studio": "0.3.0"
16
- },
17
14
  "devDependencies": {
15
+ "@lobb-js/studio": "0.3.3",
18
16
  "@lucide/svelte": "^0.563.1",
19
17
  "@sveltejs/vite-plugin-svelte": "6.2.1",
20
18
  "@tailwindcss/vite": "^4.1.18",
package/src/auth.ts CHANGED
@@ -43,7 +43,7 @@ export class Auth {
43
43
  this.utils.lobb.setHeaders({
44
44
  Authorization: `Bearer ${session.access_token.token}`,
45
45
  });
46
- this.utils.location.navigate("/");
46
+ this.utils.location.navigate("/studio");
47
47
  }
48
48
 
49
49
  public async logout() {
@@ -52,6 +52,6 @@ export class Auth {
52
52
  route: "/api/extensions/auth/logout",
53
53
  });
54
54
  localStorage.removeItem("lobb_session");
55
- this.utils.location.navigate("/extensions/auth/login_page");
55
+ this.utils.location.navigate("/studio/extensions/auth/login_page");
56
56
  }
57
57
  }
package/src/index.ts CHANGED
@@ -20,7 +20,7 @@ export default function extension(utils: ExtensionUtils): Extension {
20
20
  {
21
21
  label: "Auth",
22
22
  icon: utils.components.Icons.Key,
23
- href: "/extensions/auth/settings/users",
23
+ href: "/studio/extensions/auth/settings/users",
24
24
  },
25
25
  ],
26
26
  bottom: [
@@ -28,14 +28,14 @@ export default function extension(utils: ExtensionUtils): Extension {
28
28
  label: "My User",
29
29
  icon: utils.components.Icons.User,
30
30
  onclick: () => {
31
- utils.location.navigate("/extensions/auth/user_settings");
31
+ utils.location.navigate("/studio/extensions/auth/user_settings");
32
32
  },
33
33
  navs: [
34
34
  {
35
35
  label: "User Settings",
36
36
  icon: utils.components.Icons.Settings,
37
37
  onclick: () => {
38
- utils.location.navigate("/extensions/auth/user_settings");
38
+ utils.location.navigate("/studio/extensions/auth/user_settings");
39
39
  },
40
40
  },
41
41
  {
@@ -8,7 +8,7 @@
8
8
  const components = props.utils.components;
9
9
  const { Sidebar } = components;
10
10
  const { Icons } = components;
11
- const auth_settings_page = $derived(props.utils.location.url.pathname.split("/")[4]);
11
+ const auth_settings_page = $derived(props.utils.location.url.pathname.split("/")[5]);
12
12
  const isSmall = $derived(!props.utils.mediaQueries.sm.current);
13
13
  </script>
14
14
 
@@ -23,23 +23,23 @@
23
23
  title="Auth settings"
24
24
  showSearch={false}
25
25
  isSelected={(element: any) => {
26
- const element_page = element.href?.split("/")[4];
26
+ const element_page = element.href?.split("/")[5];
27
27
  return element_page === auth_settings_page;
28
28
  }}
29
29
  data={[
30
30
  {
31
31
  name: "Users",
32
- href: "/extensions/auth/settings/users",
32
+ href: "/studio/extensions/auth/settings/users",
33
33
  icon: Icons.Users
34
34
  },
35
35
  {
36
36
  name: "roles and permissions",
37
- href: "/extensions/auth/settings/roles_and_permissions",
37
+ href: "/studio/extensions/auth/settings/roles_and_permissions",
38
38
  icon: Icons.ShieldUser
39
39
  },
40
40
  {
41
41
  name: "activity feed",
42
- href: "/extensions/auth/settings/activity_feed",
42
+ href: "/studio/extensions/auth/settings/activity_feed",
43
43
  icon: Icons.ClipboardList
44
44
  },
45
45
  ]} >
package/vite.config.ts CHANGED
@@ -5,6 +5,7 @@ import tailwindcss from "@tailwindcss/vite";
5
5
 
6
6
  // https://vite.dev/config/
7
7
  export default defineConfig({
8
+ base: '/studio',
8
9
  plugins: [
9
10
  ...lobbStudioPlugins(),
10
11
  tailwindcss(),