@axium/email 0.1.5 → 0.1.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/email",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "author": "James Prevett <axium@jamespre.dev>",
5
5
  "description": "Email for Axium",
6
6
  "funding": {
@@ -38,8 +38,8 @@
38
38
  "build": "tsc"
39
39
  },
40
40
  "peerDependencies": {
41
- "@axium/client": ">=0.37.0",
42
- "@axium/core": ">=0.39.0",
41
+ "@axium/client": ">=0.39.0",
42
+ "@axium/core": ">=0.41.0",
43
43
  "@axium/server": ">=0.51.0",
44
44
  "@sveltejs/kit": "^2.27.3",
45
45
  "commander": "^15.0.0",
@@ -2,7 +2,7 @@
2
2
  import { afterNavigate, invalidateAll } from '$app/navigation';
3
3
  import { page } from '$app/state';
4
4
  import { text } from '@axium/client';
5
- import { Icon } from '@axium/client/components';
5
+ import { Icon, TopBarContent } from '@axium/client/components';
6
6
  import { Composer } from '@axium/email/components';
7
7
  import { setContext } from 'svelte';
8
8
  import { emailApp, type EmailApp } from './context.js';
@@ -33,6 +33,8 @@
33
33
  const current = $derived(page.params.folder ?? 'inbox');
34
34
  </script>
35
35
 
36
+ <TopBarContent name={text('app_name.email')} icon="envelope" href="/email" />
37
+
36
38
  <div id="email-app">
37
39
  <div id="email-sidebar" bind:this={sidebar}>
38
40
  <button class="compose icon-text" onclick={() => composer?.compose()}>
@@ -1,6 +1,6 @@
1
1
  import { invalidateAll } from '$app/navigation';
2
2
  import { addListener } from '@axium/client/socket';
3
- import { getCurrentSession } from '@axium/client/user';
3
+ import { currentSession } from '@axium/client/user';
4
4
  import type { Session, UserPublic } from '@axium/core';
5
5
  import '@axium/email/common';
6
6
 
@@ -11,7 +11,7 @@ addListener('email.received', () => void invalidateAll());
11
11
  export async function load({ parent }) {
12
12
  let { session }: { session?: (Session & { user: UserPublic }) | null } = await parent();
13
13
 
14
- session ||= await getCurrentSession().catch(() => null);
14
+ session ||= await currentSession();
15
15
 
16
16
  return { session };
17
17
  }
@@ -1,12 +1,8 @@
1
- body:has(#email-app) {
2
- top: 4em;
3
- }
4
-
5
1
  #email-app {
6
2
  display: grid;
7
3
  grid-template-columns: 15em 1fr;
8
- inset: 0;
9
- position: absolute;
4
+ position: fixed;
5
+ inset: var(--top-bar-height, 0px) 0 0;
10
6
  }
11
7
 
12
8
  #email-sidebar {