@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 CHANGED
@@ -37,6 +37,8 @@ declare const _default: {
37
37
  exports: {
38
38
  ".": string;
39
39
  "./*": string;
40
+ "./lib": string;
41
+ "./lib/*": string;
40
42
  };
41
43
  files: string[];
42
44
  scripts: {
@@ -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, updateItem, type _Sidebar } from '@axium/storage/client';
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 updateItem(item.id, data);
104
+ await updateItemMetadata(item.id, data);
105
105
  item.name = data.name;
106
106
  }}
107
107
  >
package/lib/index.ts ADDED
@@ -0,0 +1,3 @@
1
+ export { default as StorageList } from './StorageList.svelte';
2
+ export { default as StorageSidebar } from './StorageSidebar.svelte';
3
+ export { default as StorageSidebarItem } from './StorageSidebarItem.svelte';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/storage",
3
- "version": "0.3.0",
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",