@axium/storage 0.3.0 → 0.3.1
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/plugin.d.ts +2 -0
- package/lib/StorageSidebarItem.svelte +2 -2
- package/lib/index.ts +3 -0
- package/package.json +4 -2
package/dist/plugin.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import * as icon from '@axium/core/icons';
|
|
3
3
|
import { ClipboardCopy, FormDialog, Icon } from '@axium/server/lib';
|
|
4
|
-
import { deleteItem,
|
|
4
|
+
import { deleteItem, updateItemMetadata, type _Sidebar } from '@axium/storage/client';
|
|
5
5
|
import type { StorageItemMetadata } from '@axium/storage/common';
|
|
6
6
|
import { getContext } from 'svelte';
|
|
7
7
|
import StorageSidebarItem from './StorageSidebarItem.svelte';
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
bind:dialog={dialogs.rename}
|
|
102
102
|
submitText="Rename"
|
|
103
103
|
submit={async (data: { name: string }) => {
|
|
104
|
-
await
|
|
104
|
+
await updateItemMetadata(item.id, data);
|
|
105
105
|
item.name = data.name;
|
|
106
106
|
}}
|
|
107
107
|
>
|
package/lib/index.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axium/storage",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"author": "James Prevett <axium@jamespre.dev> (https://jamespre.dev)",
|
|
5
5
|
"description": "User file storage for Axium",
|
|
6
6
|
"funding": {
|
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
"types": "dist/index.d.ts",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": "./dist/index.js",
|
|
24
|
-
"./*": "./dist/*.js"
|
|
24
|
+
"./*": "./dist/*.js",
|
|
25
|
+
"./lib": "./lib/index.js",
|
|
26
|
+
"./lib/*": "./lib/*.js"
|
|
25
27
|
},
|
|
26
28
|
"files": [
|
|
27
29
|
"dist",
|