@byomakase/omakase-react-components 1.2.2 → 1.3.0-SNAPSHOT.1772555046
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 +1 -1
- package/dist/index.cjs.js +94 -52
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.d.ts +118 -9
- package/dist/index.es.js +14761 -3382
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +94 -52
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.es.d.ts
CHANGED
|
@@ -1,15 +1,27 @@
|
|
|
1
|
+
import { AudioApi } from '@byomakase/omakase-player';
|
|
2
|
+
import { AuthenticationData } from '@byomakase/omakase-player/dist/common/authentication';
|
|
3
|
+
import { ChromingApi } from '@byomakase/omakase-player';
|
|
1
4
|
import { ConfigWithOptionalStyle } from '@byomakase/omakase-player';
|
|
2
5
|
import { convertFlowIdToSubtitlesId } from '../../../../shared/util/tams-util';
|
|
3
6
|
import { default as default_2 } from 'react';
|
|
4
7
|
import { LabelLaneConfig } from '@byomakase/omakase-player';
|
|
8
|
+
import { Manifest } from '../../../plugins/virtual-manifest/src';
|
|
5
9
|
import { Marker } from '@byomakase/omakase-player';
|
|
6
10
|
import { MarkerLane } from '@byomakase/omakase-player';
|
|
7
11
|
import { MarkerLaneConfig } from '@byomakase/omakase-player';
|
|
8
12
|
import { MarkerListApi } from '@byomakase/omakase-player';
|
|
9
|
-
import { MarkerListConfig } from '@byomakase/omakase-player
|
|
13
|
+
import { MarkerListConfig } from '@byomakase/omakase-player';
|
|
14
|
+
import { MarkerListConfig as MarkerListConfig_2 } from '@byomakase/omakase-player/dist/marker-list/marker-list';
|
|
15
|
+
import { Observable } from 'rxjs';
|
|
10
16
|
import { OmakasePlayer } from '@byomakase/omakase-player';
|
|
17
|
+
import { OmakasePlayerApi } from '@byomakase/omakase-player';
|
|
11
18
|
import { OmakasePlayerConfig } from '@byomakase/omakase-player';
|
|
12
19
|
import { PeriodMarkerStyle } from '@byomakase/omakase-player';
|
|
20
|
+
import { resolveAudioManifestName } from '../../../../shared/util/tams-util';
|
|
21
|
+
import { resolveTextManifestName } from '../../../../shared/util/tams-util';
|
|
22
|
+
import { RouterVisualizationApi } from '@byomakase/omakase-player';
|
|
23
|
+
import { RouterVisualizationConfig } from '@byomakase/omakase-player/dist/router-visualization/router-visualization';
|
|
24
|
+
import { SubtitlesApi } from '@byomakase/omakase-player';
|
|
13
25
|
import { SubtitlesLaneConfig } from '@byomakase/omakase-player';
|
|
14
26
|
import { TextLabelStyle } from '@byomakase/omakase-player';
|
|
15
27
|
import { ThumbnailLaneConfig } from '@byomakase/omakase-player';
|
|
@@ -22,6 +34,10 @@ import { TimelineLaneStyle } from '@byomakase/omakase-player';
|
|
|
22
34
|
import { TimelineNode } from '@byomakase/omakase-player';
|
|
23
35
|
import { TimeRangeUtil } from '../../../../shared/util/time-range-util';
|
|
24
36
|
import { Video } from '@byomakase/omakase-player';
|
|
37
|
+
import { Video as Video_2 } from '@byomakase/omakase-player/dist/video/model';
|
|
38
|
+
import { VideoApi } from '@byomakase/omakase-player';
|
|
39
|
+
import { VideoLoadedEvent } from '@byomakase/omakase-player';
|
|
40
|
+
import { VideoLoadingEvent } from '@byomakase/omakase-player';
|
|
25
41
|
import { VideoLoadOptions } from '@byomakase/omakase-player';
|
|
26
42
|
|
|
27
43
|
/**
|
|
@@ -732,6 +748,8 @@ export declare interface FlowStoragePost {
|
|
|
732
748
|
limit?: number;
|
|
733
749
|
}
|
|
734
750
|
|
|
751
|
+
export declare function gatherAndExportToManifest(flow: Flow, subflows?: Flow[], flowsSegments?: Map<string, FlowSegment[]>): Manifest;
|
|
752
|
+
|
|
735
753
|
/**
|
|
736
754
|
* Time-addressable Media Store
|
|
737
755
|
*
|
|
@@ -1050,8 +1068,8 @@ declare type NodeConstructionData = {
|
|
|
1050
1068
|
export declare const OmakaseMarkerListComponent: default_2.MemoExoticComponent<({ omakasePlayer, config, onCreateMarkerListCallback, }: OmakaseMarkerListComponentProps) => default_2.JSX.Element>;
|
|
1051
1069
|
|
|
1052
1070
|
declare type OmakaseMarkerListComponentProps = {
|
|
1053
|
-
omakasePlayer:
|
|
1054
|
-
config:
|
|
1071
|
+
omakasePlayer: OmakasePlayerApi;
|
|
1072
|
+
config: MarkerListConfig_2;
|
|
1055
1073
|
onCreateMarkerListCallback?: (markerListApi: MarkerListApi) => void;
|
|
1056
1074
|
};
|
|
1057
1075
|
|
|
@@ -1070,7 +1088,7 @@ export declare class OmakasePlayerTimelineBuilder {
|
|
|
1070
1088
|
private _lanes;
|
|
1071
1089
|
private _markersLaneMap;
|
|
1072
1090
|
private _laneNodenMap;
|
|
1073
|
-
constructor(omakasePlayer:
|
|
1091
|
+
constructor(omakasePlayer: OmakasePlayerApi);
|
|
1074
1092
|
addMarkerLane(config: TimelineLaneConfigDefaultsExcluded<MarkerLaneConfig>): void;
|
|
1075
1093
|
addMarkers(markerLaneId: string, markers: Marker[]): void;
|
|
1076
1094
|
addTimelineNode(laneId: string, nodeConstructionData: NodeConstructionData): void;
|
|
@@ -1085,7 +1103,7 @@ export declare class OmakasePlayerTimelineBuilder {
|
|
|
1085
1103
|
export declare const OmakasePlayerTimelineComponent: default_2.MemoExoticComponent<({ omakasePlayer, onTimelineCreatedCallback, timelineConfig, enableHotKeys, }: OmakasePlayerTimelineComponentProps) => default_2.JSX.Element>;
|
|
1086
1104
|
|
|
1087
1105
|
declare interface OmakasePlayerTimelineComponentProps {
|
|
1088
|
-
omakasePlayer:
|
|
1106
|
+
omakasePlayer: OmakasePlayerApi;
|
|
1089
1107
|
onTimelineCreatedCallback: (timeline: TimelineApi) => void;
|
|
1090
1108
|
timelineConfig: Partial<ConfigWithOptionalStyle<TimelineConfig>>;
|
|
1091
1109
|
enableHotKeys?: boolean;
|
|
@@ -1106,7 +1124,7 @@ declare type OmakasePlayerTimelineControlsToolbarConstants = {
|
|
|
1106
1124
|
|
|
1107
1125
|
declare type OmakasePlayerTimelineControlsToolbarProps = {
|
|
1108
1126
|
selectedMarker: Marker | undefined;
|
|
1109
|
-
omakasePlayer:
|
|
1127
|
+
omakasePlayer: OmakasePlayerApi;
|
|
1110
1128
|
markerListApi?: MarkerListApi;
|
|
1111
1129
|
segmentationLanes: MarkerLane[];
|
|
1112
1130
|
source: MarkerLane | undefined;
|
|
@@ -1118,17 +1136,40 @@ declare type OmakasePlayerTimelineControlsToolbarProps = {
|
|
|
1118
1136
|
onMarkerClickCallback: (marker: Marker | undefined) => void;
|
|
1119
1137
|
};
|
|
1120
1138
|
|
|
1139
|
+
export declare class OmakaseTamsPlayer implements OmakasePlayerApi {
|
|
1140
|
+
private _player;
|
|
1141
|
+
private _videoApiProxy;
|
|
1142
|
+
private _authenticationData?;
|
|
1143
|
+
private _tamsEndpoint?;
|
|
1144
|
+
constructor(config?: Partial<OmakasePlayerConfig>);
|
|
1145
|
+
loadVideo(videoSource: string | TamsMediaData | string[], options?: TamsVideoLoadOptions): Observable<TamsVideo | Video_2>;
|
|
1146
|
+
private _loadTamsMedia;
|
|
1147
|
+
createTimeline(config: Partial<ConfigWithOptionalStyle<TimelineConfig>>): Observable<TimelineApi>;
|
|
1148
|
+
createMarkerList(config: MarkerListConfig): Observable<MarkerListApi>;
|
|
1149
|
+
initializeRouterVisualization(config: RouterVisualizationConfig): RouterVisualizationApi;
|
|
1150
|
+
setAuthentication(authentication: AuthenticationData): void;
|
|
1151
|
+
get timeline(): TimelineApi | undefined;
|
|
1152
|
+
get audio(): AudioApi;
|
|
1153
|
+
get subtitles(): SubtitlesApi;
|
|
1154
|
+
get config(): OmakasePlayerConfig;
|
|
1155
|
+
set config(config: OmakasePlayerConfig);
|
|
1156
|
+
get chroming(): ChromingApi;
|
|
1157
|
+
destroy(): void;
|
|
1158
|
+
get video(): TamsVideoApi;
|
|
1159
|
+
setTamsEndpoint(endpoint: string): void;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1121
1162
|
export declare const OmakaseTamsPlayerComponent: default_2.NamedExoticComponent<OmakaseTamsPlayerComponentProps>;
|
|
1122
1163
|
|
|
1123
1164
|
declare type OmakaseTamsPlayerComponentProps = {
|
|
1124
1165
|
flow: Flow;
|
|
1125
|
-
|
|
1166
|
+
subflows: Flow[];
|
|
1126
1167
|
flowsSegments: Map<string, FlowSegment[]>;
|
|
1127
|
-
onVideoLoadedCallback?: (omakasePlayer:
|
|
1168
|
+
onVideoLoadedCallback?: (omakasePlayer: OmakasePlayerApi, video: TamsVideo) => void;
|
|
1128
1169
|
config: Partial<OmakasePlayerConfig>;
|
|
1129
1170
|
timerange: string;
|
|
1130
1171
|
videoLoadOptions?: VideoLoadOptions;
|
|
1131
|
-
|
|
1172
|
+
enableHotkeys?: boolean;
|
|
1132
1173
|
};
|
|
1133
1174
|
|
|
1134
1175
|
export declare const OmakaseTimeRangePicker: ({ timeRange, maxTimeRange, numberOfSegments, segmentSize, maxSliderRange, onCheckmarkClickCallback, }: OmakaseTimerangePickerProps) => default_2.JSX.Element;
|
|
@@ -1244,6 +1285,14 @@ export declare interface RegisterWebhook1 {
|
|
|
1244
1285
|
accept_get_urls?: Array<string>;
|
|
1245
1286
|
}
|
|
1246
1287
|
|
|
1288
|
+
export declare function removeGapsInSegments(segments?: FlowSegment[]): FlowSegment[] | undefined;
|
|
1289
|
+
|
|
1290
|
+
export declare function removeGapsInSegmentsByExtending(segments?: FlowSegment[]): FlowSegment[] | undefined;
|
|
1291
|
+
|
|
1292
|
+
export { resolveAudioManifestName }
|
|
1293
|
+
|
|
1294
|
+
export { resolveTextManifestName }
|
|
1295
|
+
|
|
1247
1296
|
/**
|
|
1248
1297
|
* Provides information about the store service
|
|
1249
1298
|
*/
|
|
@@ -1363,6 +1412,42 @@ export declare namespace Source {
|
|
|
1363
1412
|
};
|
|
1364
1413
|
}
|
|
1365
1414
|
|
|
1415
|
+
declare type TamsMediaData = {
|
|
1416
|
+
flow: Flow;
|
|
1417
|
+
subflows?: Flow[];
|
|
1418
|
+
flowsSegments: Map<string, FlowSegment[]>;
|
|
1419
|
+
};
|
|
1420
|
+
|
|
1421
|
+
export declare interface TamsVideo extends Video {
|
|
1422
|
+
mediaStartTime: number;
|
|
1423
|
+
thumbnailVttTrackUrl?: string;
|
|
1424
|
+
tamsMediaData?: Partial<TamsMediaData>;
|
|
1425
|
+
videoUrls?: Map<string, string>;
|
|
1426
|
+
audioUrls?: Map<string, string>;
|
|
1427
|
+
textUrls?: Map<string, string>;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
export declare interface TamsVideoApi extends VideoApi {
|
|
1431
|
+
getVideo: () => TamsVideo | undefined;
|
|
1432
|
+
isTamsLoaded: () => boolean;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
export declare interface TamsVideoLoadedEvent extends VideoLoadedEvent {
|
|
1436
|
+
isTamsLoaded?: boolean;
|
|
1437
|
+
video: Video | TamsVideo;
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
export declare interface TamsVideoLoadingEvent extends VideoLoadingEvent {
|
|
1441
|
+
isTamsLoading?: boolean;
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
export declare interface TamsVideoLoadOptions extends VideoLoadOptions {
|
|
1445
|
+
timerange?: string | undefined;
|
|
1446
|
+
duration?: number | undefined;
|
|
1447
|
+
returnTamsMediaData?: boolean;
|
|
1448
|
+
ffomTimeZoneOffset?: number;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1366
1451
|
export { TimecodeUtil }
|
|
1367
1452
|
|
|
1368
1453
|
export { TimeRangeUtil }
|
|
@@ -1453,6 +1538,30 @@ export declare interface UpdateServiceInfo {
|
|
|
1453
1538
|
description?: string;
|
|
1454
1539
|
}
|
|
1455
1540
|
|
|
1541
|
+
export declare function validateTamsPayload(flow: Flow, subflows?: Flow[], flowsSegments?: Map<string, FlowSegment[]>): {
|
|
1542
|
+
valid: boolean;
|
|
1543
|
+
message?: string;
|
|
1544
|
+
};
|
|
1545
|
+
|
|
1546
|
+
export declare class VideoApiProxy {
|
|
1547
|
+
private _player;
|
|
1548
|
+
private _proxy;
|
|
1549
|
+
private _mediaStartTime?;
|
|
1550
|
+
private _loadOptions?;
|
|
1551
|
+
private _onVideoLoaded$;
|
|
1552
|
+
private _onVideoLoading$;
|
|
1553
|
+
private _isTamsLoading;
|
|
1554
|
+
private _lastVideoLoadedEvent$?;
|
|
1555
|
+
private _tamsVideo?;
|
|
1556
|
+
constructor(omakasePlayer: OmakasePlayer);
|
|
1557
|
+
get proxy(): TamsVideoApi;
|
|
1558
|
+
get mediaStartTime(): number | undefined;
|
|
1559
|
+
get loadOptions(): TamsVideoLoadOptions | undefined;
|
|
1560
|
+
set loadOptions(loadOptions: TamsVideoLoadOptions | undefined);
|
|
1561
|
+
set mediaStartTime(mediaStartTime: number | undefined);
|
|
1562
|
+
emitVideoLoadedEvent(tamsVideo: TamsVideo): void;
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1456
1565
|
/**
|
|
1457
1566
|
* Describes a video Flow
|
|
1458
1567
|
*/
|