@byomakase/omakase-react-components 1.2.0-SNAPSHOT.1764842944 → 1.2.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.es.d.ts +1702 -2
- package/package.json +2 -2
- package/dist/packages/react/omakase-react-components/src/components/OmakaseMarkerListComponent/OmakaseMarkerListComponent.d.ts +0 -10
- package/dist/packages/react/omakase-react-components/src/components/OmakaseMarkerListComponent/index.d.ts +0 -1
- package/dist/packages/react/omakase-react-components/src/components/OmakasePlayerComponent/OmakasePlayerComponent.d.ts +0 -11
- package/dist/packages/react/omakase-react-components/src/components/OmakasePlayerComponent/OmakasePlayerHotKeyHandler.d.ts +0 -5
- package/dist/packages/react/omakase-react-components/src/components/OmakasePlayerComponent/index.d.ts +0 -1
- package/dist/packages/react/omakase-react-components/src/components/OmakasePlayerTimelineComponent/OmakasePlayerTimelineComponent.d.ts +0 -10
- package/dist/packages/react/omakase-react-components/src/components/OmakasePlayerTimelineComponent/OmakasePlayerTimelineHotKeyHandler.d.ts +0 -11
- package/dist/packages/react/omakase-react-components/src/components/OmakasePlayerTimelineComponent/OmaksePlayerTimelineBuilder.d.ts +0 -23
- package/dist/packages/react/omakase-react-components/src/components/OmakasePlayerTimelineComponent/index.d.ts +0 -2
- package/dist/packages/react/omakase-react-components/src/components/OmakasePlayerTimelineControlsToolbar/OmakaseButton.d.ts +0 -12
- package/dist/packages/react/omakase-react-components/src/components/OmakasePlayerTimelineControlsToolbar/OmakasePlayerTimelineControlsToolbar.d.ts +0 -27
- package/dist/packages/react/omakase-react-components/src/components/OmakasePlayerTimelineControlsToolbar/OmakasePlayerTimelineControlsToolbarHotKeyHandler.d.ts +0 -17
- package/dist/packages/react/omakase-react-components/src/components/OmakasePlayerTimelineControlsToolbar/index.d.ts +0 -1
- package/dist/packages/react/omakase-react-components/src/components/OmakaseTamsPlayerComponent/OmakaseTamsPlayerComponent.d.ts +0 -16
- package/dist/packages/react/omakase-react-components/src/components/OmakaseTamsPlayerComponent/index.d.ts +0 -1
- package/dist/packages/react/omakase-react-components/src/components/OmakaseTimeRangePicker/OmakaseTimeRangePicker.d.ts +0 -11
- package/dist/packages/react/omakase-react-components/src/components/OmakaseTimeRangePicker/index.d.ts +0 -1
- package/dist/packages/react/omakase-react-components/src/components/index.d.ts +0 -7
- package/dist/packages/react/omakase-react-components/src/icons/Back3Icon.d.ts +0 -3
- package/dist/packages/react/omakase-react-components/src/icons/DeleteMarkerIcon.d.ts +0 -3
- package/dist/packages/react/omakase-react-components/src/icons/Forward3Icon.d.ts +0 -3
- package/dist/packages/react/omakase-react-components/src/icons/LeftBracketIcon.d.ts +0 -3
- package/dist/packages/react/omakase-react-components/src/icons/LeftDoubleBracketIcon.d.ts +0 -3
- package/dist/packages/react/omakase-react-components/src/icons/LeftMarkerIcon.d.ts +0 -3
- package/dist/packages/react/omakase-react-components/src/icons/PlusIcon.d.ts +0 -3
- package/dist/packages/react/omakase-react-components/src/icons/RefreshIcon.d.ts +0 -3
- package/dist/packages/react/omakase-react-components/src/icons/RightBracketIcon.d.ts +0 -3
- package/dist/packages/react/omakase-react-components/src/icons/RightDoubleBracketIcon.d.ts +0 -3
- package/dist/packages/react/omakase-react-components/src/icons/RightMarkerIcon.d.ts +0 -3
- package/dist/packages/react/omakase-react-components/src/icons/SplitMarkerIcon.d.ts +0 -3
- package/dist/packages/react/omakase-react-components/src/icons/index.d.ts +0 -1
- package/dist/packages/react/omakase-react-components/src/index.d.ts +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byomakase/omakase-react-components",
|
|
3
|
-
"version": "1.2.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Omakase Player React.js wrapped components",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"vite-plugin-dts": "^4.5.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@byomakase/omakase-player": "0.
|
|
28
|
+
"@byomakase/omakase-player": "0.24.0",
|
|
29
29
|
"react": "^18.3.1"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { MarkerListApi, OmakasePlayer } from '@byomakase/omakase-player';
|
|
2
|
-
import { MarkerListConfig } from '@byomakase/omakase-player/dist/marker-list/marker-list';
|
|
3
|
-
import { default as React } from 'react';
|
|
4
|
-
type OmakaseMarkerListComponentProps = {
|
|
5
|
-
omakasePlayer: OmakasePlayer;
|
|
6
|
-
config: MarkerListConfig;
|
|
7
|
-
onCreateMarkerListCallback?: (markerListApi: MarkerListApi) => void;
|
|
8
|
-
};
|
|
9
|
-
declare const OmakaseMarkerListComponent: React.MemoExoticComponent<({ omakasePlayer, config, onCreateMarkerListCallback, }: OmakaseMarkerListComponentProps) => React.JSX.Element>;
|
|
10
|
-
export default OmakaseMarkerListComponent;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as OmakaseMarkerListComponent } from './OmakaseMarkerListComponent';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OmakasePlayer, OmakasePlayerConfig, Video, VideoLoadOptions } from '@byomakase/omakase-player';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
type OmakasePlayerComponentProps = {
|
|
4
|
-
videoUrl: string;
|
|
5
|
-
videoLoadOptions?: VideoLoadOptions;
|
|
6
|
-
onVideoLoadedCallback?: (omakasePlayer: OmakasePlayer, video: Video) => void;
|
|
7
|
-
config: Partial<OmakasePlayerConfig>;
|
|
8
|
-
enableHotkeys?: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare const OmakasePlayerComponent: React.NamedExoticComponent<OmakasePlayerComponentProps>;
|
|
11
|
-
export default OmakasePlayerComponent;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { HelpMenuGroup, OmakasePlayer } from '@byomakase/omakase-player';
|
|
2
|
-
export declare class OmakasePlayerHotKeyHandler {
|
|
3
|
-
static getKeyboardShortcutsHelpMenuGroup(): HelpMenuGroup;
|
|
4
|
-
static handleKeyboardEvent(event: KeyboardEvent, omakasePlayer: OmakasePlayer): boolean;
|
|
5
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './OmakasePlayerComponent';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { OmakasePlayer, TimelineApi, TimelineConfig, ConfigWithOptionalStyle } from '@byomakase/omakase-player';
|
|
3
|
-
interface OmakasePlayerTimelineComponentProps {
|
|
4
|
-
omakasePlayer: OmakasePlayer;
|
|
5
|
-
onTimelineCreatedCallback: (timeline: TimelineApi) => void;
|
|
6
|
-
timelineConfig: Partial<ConfigWithOptionalStyle<TimelineConfig>>;
|
|
7
|
-
enableHotKeys?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const OmakasePlayerTimelineComponent: React.MemoExoticComponent<({ omakasePlayer, onTimelineCreatedCallback, timelineConfig, enableHotKeys, }: OmakasePlayerTimelineComponentProps) => React.JSX.Element>;
|
|
10
|
-
export default OmakasePlayerTimelineComponent;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { HelpMenuGroup } from '@byomakase/omakase-player';
|
|
2
|
-
export declare class OmakasePlayerTimelineHotKeyHandler {
|
|
3
|
-
actionZoomIn?: () => void;
|
|
4
|
-
actionZoomOut?: () => void;
|
|
5
|
-
actionResetZoom?: () => void;
|
|
6
|
-
actionToggleNextAudioTrack?: () => void;
|
|
7
|
-
actionTogglePreviousAudioTrack?: () => void;
|
|
8
|
-
actionToggleCti?: () => void;
|
|
9
|
-
getKeyboardShortcutsHelpMenuGroup(): HelpMenuGroup;
|
|
10
|
-
handleKeyboardEvent(event: KeyboardEvent): boolean;
|
|
11
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ConfigWithOptionalStyle, LabelLaneConfig, Marker, MarkerLaneConfig, OmakasePlayer, SubtitlesLaneConfig, ThumbnailLaneConfig, TimelineApi, TimelineConfig, TimelineNode } from '@byomakase/omakase-player';
|
|
2
|
-
import { TimelineLaneComponentConfig, TimelineLaneConfigDefaultsExcluded } from '@byomakase/omakase-player/dist/timeline/timeline-lane';
|
|
3
|
-
type NodeConstructionData = {
|
|
4
|
-
config: TimelineLaneComponentConfig;
|
|
5
|
-
node: TimelineNode;
|
|
6
|
-
};
|
|
7
|
-
export declare class OmakasePlayerTimelineBuilder {
|
|
8
|
-
private omakasePlayer;
|
|
9
|
-
private _lanes;
|
|
10
|
-
private _markersLaneMap;
|
|
11
|
-
private _laneNodenMap;
|
|
12
|
-
constructor(omakasePlayer: OmakasePlayer);
|
|
13
|
-
addMarkerLane(config: TimelineLaneConfigDefaultsExcluded<MarkerLaneConfig>): void;
|
|
14
|
-
addMarkers(markerLaneId: string, markers: Marker[]): void;
|
|
15
|
-
addTimelineNode(laneId: string, nodeConstructionData: NodeConstructionData): void;
|
|
16
|
-
addThumbnailLane(config: TimelineLaneConfigDefaultsExcluded<ThumbnailLaneConfig>): void;
|
|
17
|
-
addLabelLane(config: TimelineLaneConfigDefaultsExcluded<LabelLaneConfig>): void;
|
|
18
|
-
addSubtitlesLane(config: TimelineLaneConfigDefaultsExcluded<SubtitlesLaneConfig>): void;
|
|
19
|
-
buildAndAttachTimeline(timelineConfig: Partial<ConfigWithOptionalStyle<TimelineConfig>>): void;
|
|
20
|
-
buildAttachedTimeline(timeline: TimelineApi): void;
|
|
21
|
-
private _createAndAttachLane;
|
|
22
|
-
}
|
|
23
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IconProps } from '../../icons/icons';
|
|
3
|
-
interface OmakaseButtonProps {
|
|
4
|
-
Icon: React.ComponentType<IconProps>;
|
|
5
|
-
width?: number;
|
|
6
|
-
height?: number;
|
|
7
|
-
text?: string;
|
|
8
|
-
onClick: () => void;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const OmakaseButton: ({ Icon, onClick, width, height, text, disabled, }: OmakaseButtonProps) => React.JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { Marker, MarkerLane, OmakasePlayer, MarkerListApi, TimelineLaneStyle, PeriodMarkerStyle, TextLabelStyle } from '@byomakase/omakase-player';
|
|
3
|
-
type OmakasePlayerTimelineControlsToolbarProps = {
|
|
4
|
-
selectedMarker: Marker | undefined;
|
|
5
|
-
omakasePlayer: OmakasePlayer;
|
|
6
|
-
markerListApi?: MarkerListApi;
|
|
7
|
-
segmentationLanes: MarkerLane[];
|
|
8
|
-
source: MarkerLane | undefined;
|
|
9
|
-
enableHotKeys?: boolean;
|
|
10
|
-
constants: OmakasePlayerTimelineControlsToolbarConstants;
|
|
11
|
-
setSource: React.Dispatch<React.SetStateAction<MarkerLane | undefined>>;
|
|
12
|
-
setSegmentationLanes: React.Dispatch<React.SetStateAction<MarkerLane[]>>;
|
|
13
|
-
setSelectedMarker: React.Dispatch<React.SetStateAction<Marker | undefined>>;
|
|
14
|
-
onMarkerClickCallback: (marker: Marker | undefined) => void;
|
|
15
|
-
};
|
|
16
|
-
export type OmakasePlayerTimelineControlsToolbarConstants = {
|
|
17
|
-
HIGHLIGHTED_PERIOD_MARKER_STYLE: Partial<PeriodMarkerStyle> & {
|
|
18
|
-
color: string;
|
|
19
|
-
};
|
|
20
|
-
PERIOD_MARKER_STYLE: Partial<PeriodMarkerStyle> & {
|
|
21
|
-
color: string;
|
|
22
|
-
};
|
|
23
|
-
TIMELINE_LANE_STYLE: Partial<TimelineLaneStyle>;
|
|
24
|
-
MARKER_LANE_TEXT_LABEL_STYLE: Partial<TextLabelStyle>;
|
|
25
|
-
};
|
|
26
|
-
declare const OmakasePlayerTimelineControlsToolbar: ({ selectedMarker, omakasePlayer, markerListApi, enableHotKeys, segmentationLanes, setSegmentationLanes, setSelectedMarker, onMarkerClickCallback, setSource, source, constants, }: OmakasePlayerTimelineControlsToolbarProps) => React.JSX.Element;
|
|
27
|
-
export default OmakasePlayerTimelineControlsToolbar;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { HelpMenuGroup, OmakasePlayer } from '@byomakase/omakase-player';
|
|
2
|
-
export declare class OmakasePlayerTimelineControlsToolbarHotKeyHandler {
|
|
3
|
-
actionMarkerInOut?: () => void;
|
|
4
|
-
actionMarkerSplit?: () => void;
|
|
5
|
-
actionMarkerDelete?: () => void;
|
|
6
|
-
actionPreviousMarkerToggle?: () => void;
|
|
7
|
-
actionNextMarkerToggle?: () => void;
|
|
8
|
-
actionSetMarkerStartToPlayhead?: () => void;
|
|
9
|
-
actionSetMarkerEndToPlayhead?: () => void;
|
|
10
|
-
actionSetPlayheadToMarkerStart?: () => void;
|
|
11
|
-
actionSetPlayheadToMarkerEnd?: () => void;
|
|
12
|
-
actionRewind3SecondsAndPlayToCurrent?: () => void;
|
|
13
|
-
actionPlay3SecondsAndRewindToCurrent?: () => void;
|
|
14
|
-
actionLoopActiveMarker?: () => void;
|
|
15
|
-
getKeyboardShortcutsHelpMenuGroup(): HelpMenuGroup;
|
|
16
|
-
handleKeyboardEvent(event: KeyboardEvent, omakasePlayer: OmakasePlayer): boolean;
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './OmakasePlayerTimelineControlsToolbar';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { OmakasePlayer, OmakasePlayerConfig, Video, VideoLoadOptions } from '@byomakase/omakase-player';
|
|
2
|
-
import { Flow, FlowSegment } from '../../../../../../shared/types/tams';
|
|
3
|
-
import { default as React } from 'react';
|
|
4
|
-
import { MediaInfo } from '../../../../../../shared/types/';
|
|
5
|
-
type OmakaseTamsPlayerComponentProps = {
|
|
6
|
-
flow: Flow;
|
|
7
|
-
childFlows: Flow[];
|
|
8
|
-
flowsSegments: Map<string, FlowSegment[]>;
|
|
9
|
-
onVideoLoadedCallback?: (omakasePlayer: OmakasePlayer, video: Video, mediaInfo: MediaInfo) => void;
|
|
10
|
-
config: Partial<OmakasePlayerConfig>;
|
|
11
|
-
timerange: string;
|
|
12
|
-
videoLoadOptions?: VideoLoadOptions;
|
|
13
|
-
enableHotkey?: boolean;
|
|
14
|
-
};
|
|
15
|
-
declare const OmakaseTamsPlayerComponent: React.NamedExoticComponent<OmakaseTamsPlayerComponentProps>;
|
|
16
|
-
export default OmakaseTamsPlayerComponent;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './OmakaseTamsPlayerComponent';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
type OmakaseTimerangePickerProps = {
|
|
3
|
-
timeRange: string;
|
|
4
|
-
maxTimeRange: string;
|
|
5
|
-
numberOfSegments: number;
|
|
6
|
-
segmentSize: number;
|
|
7
|
-
maxSliderRange: number;
|
|
8
|
-
onCheckmarkClickCallback: (start: number, end: number) => void;
|
|
9
|
-
};
|
|
10
|
-
declare const OmakaseTimeRangePicker: ({ timeRange, maxTimeRange, numberOfSegments, segmentSize, maxSliderRange, onCheckmarkClickCallback, }: OmakaseTimerangePickerProps) => React.JSX.Element;
|
|
11
|
-
export default OmakaseTimeRangePicker;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './OmakaseTimeRangePicker';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { OmakasePlayerTimelineBuilder } from './OmakasePlayerTimelineComponent';
|
|
2
|
-
export { default as OmakasePlayerComponent } from './OmakasePlayerComponent';
|
|
3
|
-
export { default as OmakasePlayerTimelineControlsToolbar } from './OmakasePlayerTimelineControlsToolbar';
|
|
4
|
-
export { default as OmakaseTamsPlayerComponent } from './OmakaseTamsPlayerComponent';
|
|
5
|
-
export { default as OmakasePlayerTimelineComponent } from './OmakasePlayerTimelineComponent';
|
|
6
|
-
export { default as OmakaseTimeRangePicker } from './OmakaseTimeRangePicker';
|
|
7
|
-
export { OmakaseMarkerListComponent } from './OmakaseMarkerListComponent';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { LeftDoubleBracketIcon } from './LeftDoubleBracketIcon';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { convertFlowIdToSubtitlesId } from '../../../../shared/util/tams-util';
|
|
2
|
-
export * from './components/index';
|
|
3
|
-
export { TimeRangeUtil } from '../../../../shared/util/time-range-util';
|
|
4
|
-
export { TimecodeUtil } from '../../../../shared/util/timecode-util';
|
|
5
|
-
export * from '../../../../shared/types/tams';
|