@video-editor/protocol 0.0.1-beta.2 → 0.0.1-beta.4
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/index.d.ts +26 -8
- package/dist/index.js +4 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -112,7 +112,7 @@ export declare function createVideoProtocolManager(protocol: IVideoProtocol): {
|
|
|
112
112
|
readonly endTime: number;
|
|
113
113
|
readonly segmentType: "frames";
|
|
114
114
|
readonly extra?: {
|
|
115
|
-
readonly [x: string]:
|
|
115
|
+
readonly [x: string]: never;
|
|
116
116
|
} | null | undefined;
|
|
117
117
|
} | {
|
|
118
118
|
readonly type: "image";
|
|
@@ -162,7 +162,7 @@ export declare function createVideoProtocolManager(protocol: IVideoProtocol): {
|
|
|
162
162
|
readonly endTime: number;
|
|
163
163
|
readonly segmentType: "frames";
|
|
164
164
|
readonly extra?: {
|
|
165
|
-
readonly [x: string]:
|
|
165
|
+
readonly [x: string]: never;
|
|
166
166
|
} | null | undefined;
|
|
167
167
|
} | {
|
|
168
168
|
readonly type: "3D";
|
|
@@ -211,9 +211,12 @@ export declare function createVideoProtocolManager(protocol: IVideoProtocol): {
|
|
|
211
211
|
readonly endTime: number;
|
|
212
212
|
readonly segmentType: "frames";
|
|
213
213
|
readonly extra?: {
|
|
214
|
-
readonly [x: string]:
|
|
214
|
+
readonly [x: string]: never;
|
|
215
215
|
} | null | undefined;
|
|
216
216
|
})[];
|
|
217
|
+
readonly extra?: {
|
|
218
|
+
readonly [x: string]: never;
|
|
219
|
+
} | null | undefined;
|
|
217
220
|
readonly isMain?: boolean | undefined;
|
|
218
221
|
}[];
|
|
219
222
|
text: readonly {
|
|
@@ -267,9 +270,12 @@ export declare function createVideoProtocolManager(protocol: IVideoProtocol): {
|
|
|
267
270
|
readonly endTime: number;
|
|
268
271
|
readonly url?: string | undefined;
|
|
269
272
|
readonly extra?: {
|
|
270
|
-
readonly [x: string]:
|
|
273
|
+
readonly [x: string]: never;
|
|
271
274
|
} | null | undefined;
|
|
272
275
|
}[];
|
|
276
|
+
readonly extra?: {
|
|
277
|
+
readonly [x: string]: never;
|
|
278
|
+
} | null | undefined;
|
|
273
279
|
}[];
|
|
274
280
|
image: readonly {
|
|
275
281
|
readonly trackId: string;
|
|
@@ -309,9 +315,12 @@ export declare function createVideoProtocolManager(protocol: IVideoProtocol): {
|
|
|
309
315
|
readonly startTime: number;
|
|
310
316
|
readonly endTime: number;
|
|
311
317
|
readonly extra?: {
|
|
312
|
-
readonly [x: string]:
|
|
318
|
+
readonly [x: string]: never;
|
|
313
319
|
} | null | undefined;
|
|
314
320
|
}[];
|
|
321
|
+
readonly extra?: {
|
|
322
|
+
readonly [x: string]: never;
|
|
323
|
+
} | null | undefined;
|
|
315
324
|
}[];
|
|
316
325
|
audio: readonly {
|
|
317
326
|
readonly trackId: string;
|
|
@@ -328,9 +337,12 @@ export declare function createVideoProtocolManager(protocol: IVideoProtocol): {
|
|
|
328
337
|
readonly startTime: number;
|
|
329
338
|
readonly endTime: number;
|
|
330
339
|
readonly extra?: {
|
|
331
|
-
readonly [x: string]:
|
|
340
|
+
readonly [x: string]: never;
|
|
332
341
|
} | null | undefined;
|
|
333
342
|
}[];
|
|
343
|
+
readonly extra?: {
|
|
344
|
+
readonly [x: string]: never;
|
|
345
|
+
} | null | undefined;
|
|
334
346
|
}[];
|
|
335
347
|
effect: readonly {
|
|
336
348
|
readonly trackId: string;
|
|
@@ -344,9 +356,12 @@ export declare function createVideoProtocolManager(protocol: IVideoProtocol): {
|
|
|
344
356
|
readonly endTime: number;
|
|
345
357
|
readonly url?: string | undefined;
|
|
346
358
|
readonly extra?: {
|
|
347
|
-
readonly [x: string]:
|
|
359
|
+
readonly [x: string]: never;
|
|
348
360
|
} | null | undefined;
|
|
349
361
|
}[];
|
|
362
|
+
readonly extra?: {
|
|
363
|
+
readonly [x: string]: never;
|
|
364
|
+
} | null | undefined;
|
|
350
365
|
}[];
|
|
351
366
|
filter: readonly {
|
|
352
367
|
readonly trackId: string;
|
|
@@ -361,9 +376,12 @@ export declare function createVideoProtocolManager(protocol: IVideoProtocol): {
|
|
|
361
376
|
readonly endTime: number;
|
|
362
377
|
readonly url?: string | undefined;
|
|
363
378
|
readonly extra?: {
|
|
364
|
-
readonly [x: string]:
|
|
379
|
+
readonly [x: string]: never;
|
|
365
380
|
} | null | undefined;
|
|
366
381
|
}[];
|
|
382
|
+
readonly extra?: {
|
|
383
|
+
readonly [x: string]: never;
|
|
384
|
+
} | null | undefined;
|
|
367
385
|
}[];
|
|
368
386
|
}>;
|
|
369
387
|
segmentMap: ComputedRef<Record<string, DeepReadonly<SegmentUnion | undefined>>>;
|
package/dist/index.js
CHANGED
|
@@ -6536,7 +6536,8 @@ const kd = /* @__PURE__ */ vt(Bd), Xe = "data must be", bt = "must be >= 0", St
|
|
|
6536
6536
|
width: { type: "number", minimum: 0 },
|
|
6537
6537
|
height: { type: "number", minimum: 0 },
|
|
6538
6538
|
fps: { type: "number", minimum: 1 },
|
|
6539
|
-
tracks: { type: "array", items: { type: "object" } }
|
|
6539
|
+
tracks: { type: "array", items: { type: "object" } },
|
|
6540
|
+
extra: { type: "object", nullable: !0, additionalProperties: !0 }
|
|
6540
6541
|
},
|
|
6541
6542
|
required: ["version", "width", "height", "fps", "tracks"],
|
|
6542
6543
|
errorMessage: {
|
|
@@ -6854,7 +6855,8 @@ const kd = /* @__PURE__ */ vt(Bd), Xe = "data must be", bt = "must be >= 0", St
|
|
|
6854
6855
|
trackId: { type: "string" },
|
|
6855
6856
|
trackType: { type: "string", enum: ["frames", "image", "text", "audio", "effect", "filter"] },
|
|
6856
6857
|
children: { type: "array", items: { type: "object" } },
|
|
6857
|
-
isMain: { type: "boolean", nullable: !0 }
|
|
6858
|
+
isMain: { type: "boolean", nullable: !0 },
|
|
6859
|
+
extra: { type: "object", nullable: !0, additionalProperties: !0 }
|
|
6858
6860
|
},
|
|
6859
6861
|
required: ["trackId", "trackType", "children"],
|
|
6860
6862
|
errorMessage: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@video-editor/protocol",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.1-beta.
|
|
4
|
+
"version": "0.0.1-beta.4",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"import": "./dist/index.js"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"ajv-keywords": "^5.1.0",
|
|
25
25
|
"immer": "^11.0.0",
|
|
26
26
|
"opfs-tools": "^0.7.4",
|
|
27
|
-
"@video-editor/shared": "0.0.1-beta.
|
|
27
|
+
"@video-editor/shared": "0.0.1-beta.4"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build:types": "vue-tsc --declaration --emitDeclarationOnly",
|