@waveform-playlist/ui-components 7.1.1 → 7.1.2
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.mts +9 -8
- package/dist/index.d.ts +9 -8
- package/dist/index.js +201 -250
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +113 -161
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -669,13 +669,6 @@ interface TrackMenuProps {
|
|
|
669
669
|
}
|
|
670
670
|
declare const TrackMenu: react__default.FC<TrackMenuProps>;
|
|
671
671
|
|
|
672
|
-
/**
|
|
673
|
-
* Maximum width in CSS pixels for a single canvas chunk.
|
|
674
|
-
* Canvas elements are split into chunks of this width to enable
|
|
675
|
-
* horizontal virtual scrolling — only visible chunks are mounted.
|
|
676
|
-
*/
|
|
677
|
-
declare const MAX_CANVAS_WIDTH = 1000;
|
|
678
|
-
|
|
679
672
|
type Props$1 = {
|
|
680
673
|
children: ReactNode;
|
|
681
674
|
};
|
|
@@ -753,6 +746,14 @@ declare const useScrollViewport: () => ScrollViewport | null;
|
|
|
753
746
|
* the set of visible chunks actually changes, not on every scroll update.
|
|
754
747
|
*/
|
|
755
748
|
declare function useScrollViewportSelector<T>(selector: (viewport: ScrollViewport | null) => T): T;
|
|
749
|
+
/**
|
|
750
|
+
* Returns the indices of canvas chunks that are currently visible (plus overscan buffer).
|
|
751
|
+
* Only triggers a re-render when the set of visible chunks changes, not on every scroll pixel.
|
|
752
|
+
*
|
|
753
|
+
* @param totalWidth Total width in CSS pixels of the content being chunked.
|
|
754
|
+
* @param chunkWidth Width of each chunk in CSS pixels (typically MAX_CANVAS_WIDTH, 1000).
|
|
755
|
+
*/
|
|
756
|
+
declare function useVisibleChunkIndices(totalWidth: number, chunkWidth: number): number[];
|
|
756
757
|
|
|
757
758
|
declare function samplesToSeconds(samples: number, sampleRate: number): number;
|
|
758
759
|
declare function secondsToSamples(seconds: number, sampleRate: number): number;
|
|
@@ -827,4 +828,4 @@ declare const BaseSlider: styled_components_dist_types.IStyledComponentBase<"web
|
|
|
827
828
|
ref?: ((instance: HTMLInputElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLInputElement> | null | undefined;
|
|
828
829
|
}>, never>, never>> & string;
|
|
829
830
|
|
|
830
|
-
export { AudioPosition, type AudioPositionProps, AutomaticScrollCheckbox, type AutomaticScrollCheckboxProps, BaseButton, BaseCheckbox, BaseCheckboxLabel, BaseCheckboxWrapper, BaseControlButton, BaseInput, BaseLabel, BaseSelect, BaseSlider, Button, ButtonGroup, CLIP_BOUNDARY_WIDTH, CLIP_BOUNDARY_WIDTH_TOUCH, CLIP_HEADER_HEIGHT, Channel, type ChannelProps, Clip, ClipBoundary, type ClipBoundaryProps, ClipHeader, ClipHeaderPresentational, type ClipHeaderPresentationalProps, type ClipHeaderProps, type ClipProps, CloseButton, Controls$1 as Controls, type ControlsWrapperProps, DevicePixelRatioProvider, DotsIcon, type DragHandleProps$1 as DragHandleProps, FadeOverlay, type FadeOverlayProps, type GradientStop, Header, InlineLabel, LoopRegion, LoopRegionMarkers, type LoopRegionMarkersProps, type LoopRegionProps,
|
|
831
|
+
export { AudioPosition, type AudioPositionProps, AutomaticScrollCheckbox, type AutomaticScrollCheckboxProps, BaseButton, BaseCheckbox, BaseCheckboxLabel, BaseCheckboxWrapper, BaseControlButton, BaseInput, BaseLabel, BaseSelect, BaseSlider, Button, ButtonGroup, CLIP_BOUNDARY_WIDTH, CLIP_BOUNDARY_WIDTH_TOUCH, CLIP_HEADER_HEIGHT, Channel, type ChannelProps, Clip, ClipBoundary, type ClipBoundaryProps, ClipHeader, ClipHeaderPresentational, type ClipHeaderPresentationalProps, type ClipHeaderProps, type ClipProps, CloseButton, Controls$1 as Controls, type ControlsWrapperProps, DevicePixelRatioProvider, DotsIcon, type DragHandleProps$1 as DragHandleProps, FadeOverlay, type FadeOverlayProps, type GradientStop, Header, InlineLabel, LoopRegion, LoopRegionMarkers, type LoopRegionMarkersProps, type LoopRegionProps, MasterVolumeControl, type MasterVolumeControlProps, Playhead, type PlayheadProps, PlayheadWithMarker, Playlist, PlaylistErrorBoundary, type PlaylistErrorBoundaryProps, PlaylistInfoContext, type PlaylistProps, PlayoutProvider, type RenderPlayheadFunction, ScreenReaderOnly, type ScrollViewport, ScrollViewportProvider, Selection, type SelectionProps, SelectionTimeInputs, type SelectionTimeInputsProps, Slider, SliderWrapper, SmartChannel, type SmartChannelProps, SmartScale, type SmartScaleProps, SpectrogramChannel, type SpectrogramChannelProps, SpectrogramLabels, type SpectrogramLabelsProps, type SpectrogramWorkerCanvasApi, StyledPlaylist, StyledTimeScale, type TimeFormat, TimeFormatSelect, type TimeFormatSelectProps, TimeInput, type TimeInputProps, TimeScale, type TimeScaleProps, TimescaleLoopRegion, type TimescaleLoopRegionProps, Track, TrackControlsContext, TrackMenu, type TrackMenuItem, type TrackMenuProps, type TrackProps, TrashIcon, VolumeDownIcon, VolumeUpIcon, type WaveformColor, type WaveformDrawMode, type WaveformGradient, type WaveformPlaylistTheme, darkTheme, defaultTheme, formatTime, isWaveformGradient, parseTime, pixelsToSamples, pixelsToSeconds, samplesToPixels, samplesToSeconds, secondsToPixels, secondsToSamples, useDevicePixelRatio, usePlaylistInfo, usePlayoutStatus, usePlayoutStatusUpdate, useScrollViewport, useScrollViewportSelector, useTheme, useTrackControls, useVisibleChunkIndices, waveformColorToCss };
|
package/dist/index.d.ts
CHANGED
|
@@ -669,13 +669,6 @@ interface TrackMenuProps {
|
|
|
669
669
|
}
|
|
670
670
|
declare const TrackMenu: react__default.FC<TrackMenuProps>;
|
|
671
671
|
|
|
672
|
-
/**
|
|
673
|
-
* Maximum width in CSS pixels for a single canvas chunk.
|
|
674
|
-
* Canvas elements are split into chunks of this width to enable
|
|
675
|
-
* horizontal virtual scrolling — only visible chunks are mounted.
|
|
676
|
-
*/
|
|
677
|
-
declare const MAX_CANVAS_WIDTH = 1000;
|
|
678
|
-
|
|
679
672
|
type Props$1 = {
|
|
680
673
|
children: ReactNode;
|
|
681
674
|
};
|
|
@@ -753,6 +746,14 @@ declare const useScrollViewport: () => ScrollViewport | null;
|
|
|
753
746
|
* the set of visible chunks actually changes, not on every scroll update.
|
|
754
747
|
*/
|
|
755
748
|
declare function useScrollViewportSelector<T>(selector: (viewport: ScrollViewport | null) => T): T;
|
|
749
|
+
/**
|
|
750
|
+
* Returns the indices of canvas chunks that are currently visible (plus overscan buffer).
|
|
751
|
+
* Only triggers a re-render when the set of visible chunks changes, not on every scroll pixel.
|
|
752
|
+
*
|
|
753
|
+
* @param totalWidth Total width in CSS pixels of the content being chunked.
|
|
754
|
+
* @param chunkWidth Width of each chunk in CSS pixels (typically MAX_CANVAS_WIDTH, 1000).
|
|
755
|
+
*/
|
|
756
|
+
declare function useVisibleChunkIndices(totalWidth: number, chunkWidth: number): number[];
|
|
756
757
|
|
|
757
758
|
declare function samplesToSeconds(samples: number, sampleRate: number): number;
|
|
758
759
|
declare function secondsToSamples(seconds: number, sampleRate: number): number;
|
|
@@ -827,4 +828,4 @@ declare const BaseSlider: styled_components_dist_types.IStyledComponentBase<"web
|
|
|
827
828
|
ref?: ((instance: HTMLInputElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLInputElement> | null | undefined;
|
|
828
829
|
}>, never>, never>> & string;
|
|
829
830
|
|
|
830
|
-
export { AudioPosition, type AudioPositionProps, AutomaticScrollCheckbox, type AutomaticScrollCheckboxProps, BaseButton, BaseCheckbox, BaseCheckboxLabel, BaseCheckboxWrapper, BaseControlButton, BaseInput, BaseLabel, BaseSelect, BaseSlider, Button, ButtonGroup, CLIP_BOUNDARY_WIDTH, CLIP_BOUNDARY_WIDTH_TOUCH, CLIP_HEADER_HEIGHT, Channel, type ChannelProps, Clip, ClipBoundary, type ClipBoundaryProps, ClipHeader, ClipHeaderPresentational, type ClipHeaderPresentationalProps, type ClipHeaderProps, type ClipProps, CloseButton, Controls$1 as Controls, type ControlsWrapperProps, DevicePixelRatioProvider, DotsIcon, type DragHandleProps$1 as DragHandleProps, FadeOverlay, type FadeOverlayProps, type GradientStop, Header, InlineLabel, LoopRegion, LoopRegionMarkers, type LoopRegionMarkersProps, type LoopRegionProps,
|
|
831
|
+
export { AudioPosition, type AudioPositionProps, AutomaticScrollCheckbox, type AutomaticScrollCheckboxProps, BaseButton, BaseCheckbox, BaseCheckboxLabel, BaseCheckboxWrapper, BaseControlButton, BaseInput, BaseLabel, BaseSelect, BaseSlider, Button, ButtonGroup, CLIP_BOUNDARY_WIDTH, CLIP_BOUNDARY_WIDTH_TOUCH, CLIP_HEADER_HEIGHT, Channel, type ChannelProps, Clip, ClipBoundary, type ClipBoundaryProps, ClipHeader, ClipHeaderPresentational, type ClipHeaderPresentationalProps, type ClipHeaderProps, type ClipProps, CloseButton, Controls$1 as Controls, type ControlsWrapperProps, DevicePixelRatioProvider, DotsIcon, type DragHandleProps$1 as DragHandleProps, FadeOverlay, type FadeOverlayProps, type GradientStop, Header, InlineLabel, LoopRegion, LoopRegionMarkers, type LoopRegionMarkersProps, type LoopRegionProps, MasterVolumeControl, type MasterVolumeControlProps, Playhead, type PlayheadProps, PlayheadWithMarker, Playlist, PlaylistErrorBoundary, type PlaylistErrorBoundaryProps, PlaylistInfoContext, type PlaylistProps, PlayoutProvider, type RenderPlayheadFunction, ScreenReaderOnly, type ScrollViewport, ScrollViewportProvider, Selection, type SelectionProps, SelectionTimeInputs, type SelectionTimeInputsProps, Slider, SliderWrapper, SmartChannel, type SmartChannelProps, SmartScale, type SmartScaleProps, SpectrogramChannel, type SpectrogramChannelProps, SpectrogramLabels, type SpectrogramLabelsProps, type SpectrogramWorkerCanvasApi, StyledPlaylist, StyledTimeScale, type TimeFormat, TimeFormatSelect, type TimeFormatSelectProps, TimeInput, type TimeInputProps, TimeScale, type TimeScaleProps, TimescaleLoopRegion, type TimescaleLoopRegionProps, Track, TrackControlsContext, TrackMenu, type TrackMenuItem, type TrackMenuProps, type TrackProps, TrashIcon, VolumeDownIcon, VolumeUpIcon, type WaveformColor, type WaveformDrawMode, type WaveformGradient, type WaveformPlaylistTheme, darkTheme, defaultTheme, formatTime, isWaveformGradient, parseTime, pixelsToSamples, pixelsToSeconds, samplesToPixels, samplesToSeconds, secondsToPixels, secondsToSamples, useDevicePixelRatio, usePlaylistInfo, usePlayoutStatus, usePlayoutStatusUpdate, useScrollViewport, useScrollViewportSelector, useTheme, useTrackControls, useVisibleChunkIndices, waveformColorToCss };
|