@vivix-labs/media-tools 1.0.0-beta.2 → 1.0.0-beta.6

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/shared.d.ts CHANGED
@@ -78,6 +78,17 @@ interface StagedFile {
78
78
  originalName: string;
79
79
  details: Record<string, any>;
80
80
  }
81
+ interface UploadChunk {
82
+ uploadId: string;
83
+ originalName: string;
84
+ totalBytes: number;
85
+ offset: number;
86
+ bytes: Uint8Array;
87
+ }
88
+ interface UploadProgress {
89
+ nextOffset: number;
90
+ staged?: StagedFile;
91
+ }
81
92
  type SqlScalar = null | string | number;
82
93
  interface SqlInput {
83
94
  sql: string;
@@ -161,6 +172,8 @@ interface DataAPI {
161
172
  }[];
162
173
  stage(source: AsyncIterable<Uint8Array>, originalName: string, actorId: string, options?: StageOptions): Promise<StagedFile>;
163
174
  stageText(text: string, actorId: string): Promise<StagedFile>;
175
+ /** Bounded JSON transport into the existing staging area; does not publish a version. */
176
+ stageChunk(input: UploadChunk, actorId: string): Promise<UploadProgress>;
164
177
  publish(stagingIds: string[], objectId: string, versionId: string, operationId: string, actorId: string, fileRoles?: string[]): Promise<{
165
178
  files: FileValue[];
166
179
  details: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vivix-labs/media-tools",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.6",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -37,9 +37,9 @@
37
37
  "react-dom": "^19.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@vivix-labs/ui-system": "1.0.0-beta.2"
40
+ "@vivix-labs/ui-system": "workspace:*"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "node ../../scripts/build-product-packages.mjs media-tools"
44
44
  }
45
- }
45
+ }