@vidispine/vdt-js 23.3.0-pre.5 → 23.3.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/index.d.ts +6 -4
- package/dist/index.js +3 -0
- package/package.json +15 -15
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ import type { TimeCodeType } from '@vidispine/types';
|
|
|
28
28
|
import type { TranscodePresetType } from '@vidispine/types';
|
|
29
29
|
import type { VideoComponentType } from '@vidispine/types';
|
|
30
30
|
|
|
31
|
+
declare type ArrayElement<ArrayType> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
|
|
32
|
+
|
|
31
33
|
/**
|
|
32
34
|
* Create a VidiCore metadata object from a more dense/simplified structure
|
|
33
35
|
*
|
|
@@ -355,7 +357,7 @@ export declare type InputTimespan = {
|
|
|
355
357
|
/** Base for timespan (typically undefined) */
|
|
356
358
|
base?: string;
|
|
357
359
|
/** Group or field metadata */
|
|
358
|
-
[groupOrFieldName: string]: InputGroupsOrFields;
|
|
360
|
+
[groupOrFieldName: string]: InputGroupsOrFields | string | number | undefined;
|
|
359
361
|
};
|
|
360
362
|
|
|
361
363
|
/** Possible input values for the field value */
|
|
@@ -592,7 +594,7 @@ export declare type ParsedGroupList<TOptions> = TOptions extends {
|
|
|
592
594
|
export declare type ParsedHighlightTimespan = {
|
|
593
595
|
start?: string;
|
|
594
596
|
end?: string;
|
|
595
|
-
[key: string]: string | string
|
|
597
|
+
[key: string]: string[] | string | undefined;
|
|
596
598
|
};
|
|
597
599
|
|
|
598
600
|
/**
|
|
@@ -675,7 +677,7 @@ export declare type ParsedTimespan<TOptions> = ((TOptions extends {
|
|
|
675
677
|
[name: string]: ParsedFieldList<TOptions>;
|
|
676
678
|
})) & ParsedTimespanAttributes;
|
|
677
679
|
|
|
678
|
-
export declare type ParsedTimespanAttributes = Omit<MetadataType['timespan']
|
|
680
|
+
export declare type ParsedTimespanAttributes = Omit<ArrayElement<MetadataType['timespan']>, 'field' | 'group'>;
|
|
679
681
|
|
|
680
682
|
export declare type ParsedTimespanList<TOptions> = TOptions extends {
|
|
681
683
|
timespanAsList?: true;
|
|
@@ -1042,7 +1044,7 @@ export declare const parseSimpleMetadataType: (simpleMetadataType: SimpleMetadat
|
|
|
1042
1044
|
*
|
|
1043
1045
|
* @category Metadata
|
|
1044
1046
|
*/
|
|
1045
|
-
export declare const parseTimespan: <TOptions extends ParseTimespanOptions = ParseTimespanOptions>(timespan: MetadataType['timespan']
|
|
1047
|
+
export declare const parseTimespan: <TOptions extends ParseTimespanOptions = ParseTimespanOptions>(timespan: ArrayElement<MetadataType['timespan']>, options?: TOptions) => ParsedTimespan<TOptions>;
|
|
1046
1048
|
|
|
1047
1049
|
/**
|
|
1048
1050
|
* Parses timespanList according to specified options.
|
package/dist/index.js
CHANGED
|
@@ -1334,10 +1334,12 @@ ${ye(o, {
|
|
|
1334
1334
|
} = i, _ = b(a || []), p = t != null && t.denominator ? ((t == null ? void 0 : t.denominator) || 1) / ((t == null ? void 0 : t.numerator) || 1) : void 0, f = p !== void 0 ? y(p, {
|
|
1335
1335
|
base: 10,
|
|
1336
1336
|
round: 1,
|
|
1337
|
+
// @ts-expect-error (incorrect symbols typing)
|
|
1337
1338
|
symbols: pt
|
|
1338
1339
|
}) : void 0;
|
|
1339
1340
|
let u, m;
|
|
1340
1341
|
return s !== void 0 && (u = y(s, { round: 2, symbols: ae }), m = Number(
|
|
1342
|
+
// @ts-expect-error (incorrect symbols typing)
|
|
1341
1343
|
(T = y(s, { exponent: 1, symbols: ae }).split(" kbps")) == null ? void 0 : T[0]
|
|
1342
1344
|
)), {
|
|
1343
1345
|
audioFormat: c,
|
|
@@ -1484,6 +1486,7 @@ ${ye(o, {
|
|
|
1484
1486
|
const { height: N, width: w } = o || {}, P = H(o), U = `${w}x${N}`;
|
|
1485
1487
|
let C, Z;
|
|
1486
1488
|
return r !== void 0 && (C = y(r, { round: 2, symbols: ce }), Z = Number(
|
|
1489
|
+
// @ts-expect-error (incorrect symbols typing)
|
|
1487
1490
|
(ee = y(r, { exponent: 2, symbols: ce }).split(" mbps")) == null ? void 0 : ee[0]
|
|
1488
1491
|
)), {
|
|
1489
1492
|
videoFormat: l,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vidispine/vdt-js",
|
|
3
|
-
"version": "23.3.0
|
|
3
|
+
"version": "23.3.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -37,26 +37,26 @@
|
|
|
37
37
|
"format": "prettier . --check"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@vidispine/types": "23.3.0
|
|
41
|
-
"filesize": "^10.0.
|
|
40
|
+
"@vidispine/types": "23.3.0",
|
|
41
|
+
"filesize": "^10.0.12"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@vidispine/eslint-config-base": "23.3.0
|
|
45
|
-
"@vidispine/eslint-config-mdx": "23.3.0
|
|
46
|
-
"@vidispine/eslint-config-storybook": "23.3.0
|
|
47
|
-
"@vidispine/eslint-config-typescript": "23.3.0
|
|
48
|
-
"@vidispine/tests": "23.3.0
|
|
49
|
-
"@vidispine/types": "23.3.0
|
|
44
|
+
"@vidispine/eslint-config-base": "23.3.0",
|
|
45
|
+
"@vidispine/eslint-config-mdx": "23.3.0",
|
|
46
|
+
"@vidispine/eslint-config-storybook": "23.3.0",
|
|
47
|
+
"@vidispine/eslint-config-typescript": "23.3.0",
|
|
48
|
+
"@vidispine/tests": "23.3.0",
|
|
49
|
+
"@vidispine/types": "23.3.0",
|
|
50
50
|
"concurrently": "7.6.0",
|
|
51
|
-
"eslint": "8.
|
|
52
|
-
"eslint-plugin-testing-library": "5.
|
|
53
|
-
"prettier": "2.8.
|
|
51
|
+
"eslint": "8.48.0",
|
|
52
|
+
"eslint-plugin-testing-library": "5.11.1",
|
|
53
|
+
"prettier": "2.8.8",
|
|
54
54
|
"rimraf": "3.0.2",
|
|
55
|
-
"typedoc": "0.23.
|
|
55
|
+
"typedoc": "0.23.28",
|
|
56
56
|
"typedoc-plugin-missing-exports": "1.0.0",
|
|
57
57
|
"typescript": "4.9.5",
|
|
58
|
-
"vite": "4.
|
|
59
|
-
"vite-plugin-dts": "3.
|
|
58
|
+
"vite": "4.4.9",
|
|
59
|
+
"vite-plugin-dts": "3.5.3"
|
|
60
60
|
},
|
|
61
61
|
"eslintConfig": {
|
|
62
62
|
"extends": [
|