@cloud-os/sandbox-app-standard-bridge 20251212.0.5 → 20251213.0.2

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.
@@ -0,0 +1,9 @@
1
+ import { File } from "../../Interface/Io/File";
2
+ export declare abstract class StorageProviderHook {
3
+ abstract name(): Promise<string>;
4
+ abstract include(prefix: string, key: string): Promise<boolean>;
5
+ abstract list(prefix: string): Promise<File[]>;
6
+ abstract read(prefix: string, key: string): Promise<ArrayBuffer | null>;
7
+ abstract write(prefix: string, key: string, value: ArrayBuffer): Promise<void>;
8
+ abstract delete(prefix: string, key: string): Promise<void>;
9
+ }
@@ -0,0 +1,2 @@
1
+ export class StorageProviderHook {
2
+ }
@@ -0,0 +1 @@
1
+ export { StorageProviderHook } from "./Io/StorageProviderHook";
@@ -0,0 +1 @@
1
+ export { StorageProviderHook } from "./Io/StorageProviderHook";
@@ -0,0 +1,7 @@
1
+ import { FileType } from "./FileType";
2
+ export interface File {
3
+ id: string;
4
+ type: FileType;
5
+ name: string;
6
+ extension: string | null;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare const FileType: {
2
+ readonly File: "file";
3
+ readonly Directory: "directory";
4
+ };
5
+ export type FileType = typeof FileType[keyof typeof FileType];
@@ -0,0 +1,4 @@
1
+ export const FileType = {
2
+ File: "file",
3
+ Directory: "directory",
4
+ };
@@ -6,3 +6,5 @@ export { InstallApplicationInfo } from "./System/InstallApplicationInfo";
6
6
  export { RunningApplciationInfo } from "./System/RunningApplicaationInfo";
7
7
  export { ProcessInfo } from "./System/ProcessInfo";
8
8
  export { Event } from "./SandboxApplication/Event";
9
+ export { File } from "./Io/File";
10
+ export { FileType } from "./Io/FileType";
@@ -1 +1,2 @@
1
1
  export { Event } from "./SandboxApplication/Event";
2
+ export { FileType } from "./Io/FileType";
package/dist/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export * from "./Event/index";
3
3
  export * from "./Interface/index";
4
4
  export * from "./Props/index";
5
5
  export * from "./Components/index";
6
+ export * from "./Hooks/index";
package/dist/index.js CHANGED
@@ -3,3 +3,4 @@ export * from "./Event/index";
3
3
  export * from "./Interface/index";
4
4
  export * from "./Props/index";
5
5
  export * from "./Components/index";
6
+ export * from "./Hooks/index";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-os/sandbox-app-standard-bridge",
3
- "version": "20251212.0.5",
3
+ "version": "20251213.0.2",
4
4
  "description": "",
5
5
  "author": "jack8228@enerqi.tw <jack8228@enerqi.tw>",
6
6
  "main": "dist/index.js",