@xyo-network/file-browser-plugin 4.1.1 → 4.2.0
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/browser/index.d.ts +8 -54
- package/package.json +12 -13
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,54 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
file?: File;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
type FileSchema = 'network.xyo.file';
|
|
13
|
-
declare const FileSchema: FileSchema;
|
|
14
|
-
|
|
15
|
-
type BinaryDataHash = string;
|
|
16
|
-
/** @description File location and optional data */
|
|
17
|
-
type FilePayload = Payload<{
|
|
18
|
-
created?: number;
|
|
19
|
-
hash: BinaryDataHash;
|
|
20
|
-
length: number;
|
|
21
|
-
/** @field Storage specific meta data */
|
|
22
|
-
meta?: Record<string, string | number>;
|
|
23
|
-
modified?: number;
|
|
24
|
-
uri: string;
|
|
25
|
-
}, FileSchema>;
|
|
26
|
-
declare const isFilePayload: (x?: unknown | null) => x is FilePayload;
|
|
27
|
-
|
|
28
|
-
type FileWitnessConfigSchema = 'network.xyo.file.witness.config';
|
|
29
|
-
declare const FileWitnessConfigSchema: FileWitnessConfigSchema;
|
|
30
|
-
type FileWitnessConfig = WitnessConfig<{
|
|
31
|
-
schema: FileWitnessConfigSchema;
|
|
32
|
-
storage?: 'data-uri';
|
|
33
|
-
}>;
|
|
34
|
-
|
|
35
|
-
type FileWitnessParams = WitnessParams<AnyConfigSchema<FileWitnessConfig>>;
|
|
36
|
-
declare abstract class FileWitness<TParams extends FileWitnessParams = FileWitnessParams> extends AbstractWitness<TParams> implements WitnessModule {
|
|
37
|
-
static readonly configSchemas: Schema[];
|
|
38
|
-
static readonly defaultConfigSchema: Schema;
|
|
39
|
-
protected observeHandler(payloads?: Payload[]): Promisable<Payload[]>;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
type BrowserFileWitnessParams = FileWitnessParams & BrowserFileWitnessAdditionalParams;
|
|
43
|
-
declare class BrowserFileWitness extends FileWitness<BrowserFileWitnessParams> {
|
|
44
|
-
static readonly configSchemas: Schema[];
|
|
45
|
-
static readonly defaultConfigSchema: Schema;
|
|
46
|
-
protected observeHandler(): Promise<FilePayload[]>;
|
|
47
|
-
private readBinaryFile;
|
|
48
|
-
private witnessBrowserFile;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
declare const BrowserFilePlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<BrowserFileWitness>;
|
|
52
|
-
|
|
53
|
-
export { BrowserFilePlugin, BrowserFileWitness, FileSchema, FileWitness, FileWitnessConfigSchema, BrowserFilePlugin as default, isFilePayload };
|
|
54
|
-
export type { BinaryDataHash, BrowserFileWitnessAdditionalParams, FilePayload, FileWitnessConfig, FileWitnessParams };
|
|
1
|
+
export * from './BrowserFileWitness.ts';
|
|
2
|
+
export * from './Config.ts';
|
|
3
|
+
export * from './Params.ts';
|
|
4
|
+
export * from './Payload.ts';
|
|
5
|
+
export { BrowserFilePlugin, BrowserFilePlugin as default } from './PluginBrowser.ts';
|
|
6
|
+
export * from './Schema.ts';
|
|
7
|
+
export * from './Witness.ts';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/file-browser-plugin",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -30,21 +30,20 @@
|
|
|
30
30
|
"types": "dist/browser/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@scure/base": "^1.2.6",
|
|
33
|
-
"@xylabs/assert": "^4.
|
|
34
|
-
"@xylabs/promise": "^4.
|
|
35
|
-
"@xyo-network/abstract-witness": "^4.
|
|
36
|
-
"@xyo-network/module-model": "^4.
|
|
37
|
-
"@xyo-network/payload-builder": "^4.
|
|
38
|
-
"@xyo-network/payload-model": "^4.
|
|
39
|
-
"@xyo-network/payloadset-plugin": "^4.
|
|
40
|
-
"@xyo-network/witness-model": "^4.
|
|
33
|
+
"@xylabs/assert": "^4.15.1",
|
|
34
|
+
"@xylabs/promise": "^4.15.1",
|
|
35
|
+
"@xyo-network/abstract-witness": "^4.3.0",
|
|
36
|
+
"@xyo-network/module-model": "^4.3.0",
|
|
37
|
+
"@xyo-network/payload-builder": "^4.3.0",
|
|
38
|
+
"@xyo-network/payload-model": "^4.3.0",
|
|
39
|
+
"@xyo-network/payloadset-plugin": "^4.3.0",
|
|
40
|
+
"@xyo-network/witness-model": "^4.3.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/sha.js": "^2.4.4",
|
|
44
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.
|
|
45
|
-
"@xylabs/tsconfig": "^7.0.
|
|
46
|
-
"@xylabs/vitest-extended": "^4.
|
|
47
|
-
"knip": "^5.62.0",
|
|
44
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.1",
|
|
45
|
+
"@xylabs/tsconfig": "^7.0.1",
|
|
46
|
+
"@xylabs/vitest-extended": "^4.15.1",
|
|
48
47
|
"typescript": "^5.8.3",
|
|
49
48
|
"vitest": "^3.2.4"
|
|
50
49
|
},
|