@axium/notes 0.1.3 → 0.1.5

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.
Files changed (2) hide show
  1. package/lib/Note.svelte +5 -1
  2. package/package.json +2 -2
package/lib/Note.svelte CHANGED
@@ -5,6 +5,7 @@
5
5
  import type { Note } from '@axium/notes/common';
6
6
  import { page } from '$app/state';
7
7
  import { copy } from '@axium/client/clipboard';
8
+ import { download } from 'utilium/dom.js';
8
9
 
9
10
  let { note = $bindable(), notes = $bindable() }: { note: Note; notes?: Note[] } = $props();
10
11
  </script>
@@ -34,6 +35,9 @@
34
35
  >
35
36
  <Icon i="trash" /> Delete
36
37
  </div>
38
+ <div class="menu-item" onclick={() => download(note.title + '.txt', note.content ?? '')}>
39
+ <Icon i="file-arrow-down" /> Download
40
+ </div>
37
41
  {#if notes}
38
42
  <div
39
43
  class="menu-item"
@@ -47,7 +51,7 @@
47
51
  {/if}
48
52
  {#if page.data.session?.user.preferences.debug}
49
53
  <div class="menu-item" onclick={() => copy('text/plain', note.id)}>
50
- <Icon i="copy" --size="14px" />
54
+ <Icon i="hashtag" --size="14px" />
51
55
  Copy ID
52
56
  </div>
53
57
  {/if}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/notes",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "author": "James Prevett <axium@jamespre.dev> (https://jamespre.dev)",
5
5
  "description": "Notes for Axium",
6
6
  "funding": {
@@ -39,7 +39,7 @@
39
39
  "@axium/core": ">=0.6.0",
40
40
  "@axium/server": ">=0.22.0",
41
41
  "@sveltejs/kit": "^2.27.3",
42
- "utilium": "^2.3.8"
42
+ "utilium": "^2.4.0"
43
43
  },
44
44
  "dependencies": {
45
45
  "zod": "^4.0.5"