@byomakase/omakase-react-components 1.3.0 → 1.4.1
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/README.md +37 -2
- package/dist/index.cjs.js +94 -72
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.d.ts +19 -16
- package/dist/index.es.js +4365 -3820
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +94 -72
- package/dist/index.umd.js.map +1 -1
- package/dist/omakase-react-components.css +1 -1
- package/package.json +2 -2
package/dist/index.es.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ export declare interface AudioFlow {
|
|
|
92
92
|
* Key value is a freeform string.
|
|
93
93
|
*/
|
|
94
94
|
tags?: {
|
|
95
|
-
[key: string]: string;
|
|
95
|
+
[key: string]: string | string[];
|
|
96
96
|
};
|
|
97
97
|
/**
|
|
98
98
|
* A change to the flow metadata, not including metadata_version, last_update or segments, results in a new version. If the metadata_version for flow instances is identical then the metadata is identical.
|
|
@@ -156,7 +156,7 @@ export declare interface AudioFlow {
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
export declare namespace AudioFlow {
|
|
159
|
-
export type FormatEnum =
|
|
159
|
+
export type FormatEnum = "urn:x-nmos:format:audio";
|
|
160
160
|
const FormatEnum: {
|
|
161
161
|
UrnxNmosformataudio: FormatEnum;
|
|
162
162
|
};
|
|
@@ -396,7 +396,7 @@ export declare interface DataFlow {
|
|
|
396
396
|
* Key value is a freeform string.
|
|
397
397
|
*/
|
|
398
398
|
tags?: {
|
|
399
|
-
[key: string]: string;
|
|
399
|
+
[key: string]: string | string[];
|
|
400
400
|
};
|
|
401
401
|
/**
|
|
402
402
|
* A change to the flow metadata, not including metadata_version, last_update or segments, results in a new version. If the metadata_version for flow instances is identical then the metadata is identical.
|
|
@@ -460,7 +460,7 @@ export declare interface DataFlow {
|
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
export declare namespace DataFlow {
|
|
463
|
-
export type FormatEnum =
|
|
463
|
+
export type FormatEnum = "urn:x-nmos:format:data";
|
|
464
464
|
const FormatEnum: {
|
|
465
465
|
UrnxNmosformatdata: FormatEnum;
|
|
466
466
|
};
|
|
@@ -815,7 +815,7 @@ export declare interface ImageFlow {
|
|
|
815
815
|
* Key value is a freeform string.
|
|
816
816
|
*/
|
|
817
817
|
tags?: {
|
|
818
|
-
[key: string]: string;
|
|
818
|
+
[key: string]: string | string[];
|
|
819
819
|
};
|
|
820
820
|
/**
|
|
821
821
|
* A change to the flow metadata, not including metadata_version, last_update or segments, results in a new version. If the metadata_version for flow instances is identical then the metadata is identical.
|
|
@@ -991,7 +991,7 @@ export declare interface MultiEssenceFlow {
|
|
|
991
991
|
* Key value is a freeform string.
|
|
992
992
|
*/
|
|
993
993
|
tags?: {
|
|
994
|
-
[key: string]: string;
|
|
994
|
+
[key: string]: string | string[];
|
|
995
995
|
};
|
|
996
996
|
/**
|
|
997
997
|
* A change to the flow metadata, not including metadata_version, last_update or segments, results in a new version. If the metadata_version for flow instances is identical then the metadata is identical.
|
|
@@ -1054,7 +1054,7 @@ export declare interface MultiEssenceFlow {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
|
|
1056
1056
|
export declare namespace MultiEssenceFlow {
|
|
1057
|
-
export type FormatEnum =
|
|
1057
|
+
export type FormatEnum = "urn:x-nmos:format:multi";
|
|
1058
1058
|
const FormatEnum: {
|
|
1059
1059
|
UrnxNmosformatmulti: FormatEnum;
|
|
1060
1060
|
};
|
|
@@ -1109,7 +1109,7 @@ declare interface OmakasePlayerTimelineComponentProps {
|
|
|
1109
1109
|
enableHotKeys?: boolean;
|
|
1110
1110
|
}
|
|
1111
1111
|
|
|
1112
|
-
export declare const OmakasePlayerTimelineControlsToolbar: ({ selectedMarker, omakasePlayer,
|
|
1112
|
+
export declare const OmakasePlayerTimelineControlsToolbar: ({ selectedMarker, omakasePlayer, enableHotKeys, segmentationLanes, setSegmentationLanes, setSelectedMarker, onMarkerClickCallback, setSource, source, constants, }: OmakasePlayerTimelineControlsToolbarProps) => default_2.JSX.Element;
|
|
1113
1113
|
|
|
1114
1114
|
declare type OmakasePlayerTimelineControlsToolbarConstants = {
|
|
1115
1115
|
HIGHLIGHTED_PERIOD_MARKER_STYLE: Partial<PeriodMarkerStyle> & {
|
|
@@ -1125,7 +1125,6 @@ declare type OmakasePlayerTimelineControlsToolbarConstants = {
|
|
|
1125
1125
|
declare type OmakasePlayerTimelineControlsToolbarProps = {
|
|
1126
1126
|
selectedMarker: Marker | undefined;
|
|
1127
1127
|
omakasePlayer: OmakasePlayerApi;
|
|
1128
|
-
markerListApi?: MarkerListApi;
|
|
1129
1128
|
segmentationLanes: MarkerLane[];
|
|
1130
1129
|
source: MarkerLane | undefined;
|
|
1131
1130
|
enableHotKeys?: boolean;
|
|
@@ -1172,16 +1171,17 @@ declare type OmakaseTamsPlayerComponentProps = {
|
|
|
1172
1171
|
enableHotkeys?: boolean;
|
|
1173
1172
|
};
|
|
1174
1173
|
|
|
1175
|
-
export declare const
|
|
1174
|
+
export declare const OmakaseTimeRangeSelectorComponent: ({ timeRange, maxTimeRange, numberOfSegments, segmentSize, maxSliderRange, onCheckmarkClickCallback, segmentLabelFormatter, durationLabelFormatter, }: OmakaseTimeRangeSelectorProps) => default_2.JSX.Element;
|
|
1176
1175
|
|
|
1177
|
-
declare type
|
|
1176
|
+
declare type OmakaseTimeRangeSelectorProps = {
|
|
1178
1177
|
timeRange: string;
|
|
1179
1178
|
maxTimeRange: string;
|
|
1180
1179
|
numberOfSegments: number;
|
|
1181
1180
|
segmentSize: number;
|
|
1182
1181
|
maxSliderRange: number;
|
|
1183
1182
|
onCheckmarkClickCallback: (start: number, end: number) => void;
|
|
1184
|
-
|
|
1183
|
+
segmentLabelFormatter?: (seconds: number) => string;
|
|
1184
|
+
durationLabelFormatter?: (seconds: number) => string;
|
|
1185
1185
|
};
|
|
1186
1186
|
|
|
1187
1187
|
/**
|
|
@@ -1391,7 +1391,7 @@ export declare interface Source {
|
|
|
1391
1391
|
* Key value is a freeform string.
|
|
1392
1392
|
*/
|
|
1393
1393
|
tags?: {
|
|
1394
|
-
[key: string]: string;
|
|
1394
|
+
[key: string]: string | string[];
|
|
1395
1395
|
};
|
|
1396
1396
|
/**
|
|
1397
1397
|
* List of Sources that are collected together by this Source. This attribute is intended to be read-only. Implementations SHOULD ignore this if given in a PUT request, and instead manage it internally. Source collections can be inferred from Flow collection definitions.
|
|
@@ -1404,7 +1404,7 @@ export declare interface Source {
|
|
|
1404
1404
|
}
|
|
1405
1405
|
|
|
1406
1406
|
export declare namespace Source {
|
|
1407
|
-
export type FormatEnum =
|
|
1407
|
+
export type FormatEnum = "urn:x-nmos:format:video" | "urn:x-nmos:format:audio" | "urn:x-nmos:format:data" | "urn:x-nmos:format:multi";
|
|
1408
1408
|
const FormatEnum: {
|
|
1409
1409
|
Video: FormatEnum;
|
|
1410
1410
|
Audio: FormatEnum;
|
|
@@ -1431,6 +1431,7 @@ export declare interface TamsVideo extends Video {
|
|
|
1431
1431
|
export declare interface TamsVideoApi extends VideoApi {
|
|
1432
1432
|
getVideo: () => TamsVideo | undefined;
|
|
1433
1433
|
isTamsLoaded: () => boolean;
|
|
1434
|
+
getVideoLoadOptions: () => TamsVideoLoadOptions | undefined;
|
|
1434
1435
|
}
|
|
1435
1436
|
|
|
1436
1437
|
export declare interface TamsVideoLoadedEvent extends VideoLoadedEvent {
|
|
@@ -1549,6 +1550,7 @@ export declare class VideoApiProxy {
|
|
|
1549
1550
|
private _proxy;
|
|
1550
1551
|
private _mediaStartTime?;
|
|
1551
1552
|
private _loadOptions?;
|
|
1553
|
+
private _requestedDuration?;
|
|
1552
1554
|
private _onVideoLoaded$;
|
|
1553
1555
|
private _onVideoLoading$;
|
|
1554
1556
|
private _isTamsLoading;
|
|
@@ -1560,6 +1562,7 @@ export declare class VideoApiProxy {
|
|
|
1560
1562
|
get loadOptions(): TamsVideoLoadOptions | undefined;
|
|
1561
1563
|
set loadOptions(loadOptions: TamsVideoLoadOptions | undefined);
|
|
1562
1564
|
set mediaStartTime(mediaStartTime: number | undefined);
|
|
1565
|
+
set requestedDuration(value: number | undefined);
|
|
1563
1566
|
setTamsVideo(tamsVideo: TamsVideo): void;
|
|
1564
1567
|
emitVideoLoadedEvent(): void;
|
|
1565
1568
|
}
|
|
@@ -1596,7 +1599,7 @@ export declare interface VideoFlow {
|
|
|
1596
1599
|
* Key value is a freeform string.
|
|
1597
1600
|
*/
|
|
1598
1601
|
tags?: {
|
|
1599
|
-
[key: string]: string;
|
|
1602
|
+
[key: string]: string | string[];
|
|
1600
1603
|
};
|
|
1601
1604
|
/**
|
|
1602
1605
|
* A change to the flow metadata, not including metadata_version, last_update or segments, results in a new version. If the metadata_version for flow instances is identical then the metadata is identical.
|
|
@@ -1660,7 +1663,7 @@ export declare interface VideoFlow {
|
|
|
1660
1663
|
}
|
|
1661
1664
|
|
|
1662
1665
|
export declare namespace VideoFlow {
|
|
1663
|
-
export type FormatEnum =
|
|
1666
|
+
export type FormatEnum = "urn:x-nmos:format:video";
|
|
1664
1667
|
const FormatEnum: {
|
|
1665
1668
|
UrnxNmosformatvideo: FormatEnum;
|
|
1666
1669
|
};
|