webamp 1.4.3-beta.5 → 2.0.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.
Files changed (154) hide show
  1. package/README.md +20 -0
  2. package/built/types/js/Disposable.d.ts +11 -0
  3. package/built/types/js/actionCreators/equalizer.d.ts +8 -0
  4. package/built/types/js/actionCreators/files.d.ts +24 -0
  5. package/built/types/js/actionCreators/index.d.ts +22 -0
  6. package/built/types/js/actionCreators/media.d.ts +20 -0
  7. package/built/types/js/actionCreators/milkdrop.d.ts +13 -0
  8. package/built/types/js/actionCreators/playlist.d.ts +16 -0
  9. package/built/types/js/actionCreators/windows.d.ts +27 -0
  10. package/built/types/js/actionTypes.d.ts +87 -0
  11. package/built/types/js/components/App.d.ts +12 -0
  12. package/built/types/js/components/Balance.d.ts +8 -0
  13. package/built/types/js/components/Character.d.ts +9 -0
  14. package/built/types/js/components/CharacterString.d.ts +6 -0
  15. package/built/types/js/components/ClickedDiv.d.ts +8 -0
  16. package/built/types/js/components/ClipPaths.d.ts +8 -0
  17. package/built/types/js/components/ContextMenu.d.ts +31 -0
  18. package/built/types/js/components/ContextMenuTarget.d.ts +9 -0
  19. package/built/types/js/components/ContextMenuWrapper.d.ts +7 -0
  20. package/built/types/js/components/Css.d.ts +7 -0
  21. package/built/types/js/components/DropTarget.d.ts +13 -0
  22. package/built/types/js/components/EqualizerWindow/Band.d.ts +14 -0
  23. package/built/types/js/components/EqualizerWindow/EqAuto.d.ts +3 -0
  24. package/built/types/js/components/EqualizerWindow/EqGraph.d.ts +2 -0
  25. package/built/types/js/components/EqualizerWindow/EqOn.d.ts +2 -0
  26. package/built/types/js/components/EqualizerWindow/EqTitleButtons.d.ts +1 -0
  27. package/built/types/js/components/EqualizerWindow/EqualizerShade.d.ts +2 -0
  28. package/built/types/js/components/EqualizerWindow/PresetsContextMenu.d.ts +2 -0
  29. package/built/types/js/components/EqualizerWindow/index.d.ts +2 -0
  30. package/built/types/js/components/EqualizerWindow/spline.d.ts +1 -0
  31. package/built/types/js/components/FFTNullsoft.d.ts +16 -0
  32. package/built/types/js/components/FocusTarget.d.ts +9 -0
  33. package/built/types/js/components/Fullscreen.d.ts +8 -0
  34. package/built/types/js/components/GenWindow/index.d.ts +14 -0
  35. package/built/types/js/components/MainWindow/ActionButtons.d.ts +3 -0
  36. package/built/types/js/components/MainWindow/Close.d.ts +3 -0
  37. package/built/types/js/components/MainWindow/ClutterBar.d.ts +3 -0
  38. package/built/types/js/components/MainWindow/Eject.d.ts +3 -0
  39. package/built/types/js/components/MainWindow/EqToggleButton.d.ts +3 -0
  40. package/built/types/js/components/MainWindow/Kbps.d.ts +3 -0
  41. package/built/types/js/components/MainWindow/Khz.d.ts +3 -0
  42. package/built/types/js/components/MainWindow/MainBalance.d.ts +4 -0
  43. package/built/types/js/components/MainWindow/MainContextMenu.d.ts +7 -0
  44. package/built/types/js/components/MainWindow/MainVolume.d.ts +3 -0
  45. package/built/types/js/components/MainWindow/Marquee.d.ts +7 -0
  46. package/built/types/js/components/MainWindow/Minimize.d.ts +3 -0
  47. package/built/types/js/components/MainWindow/MonoStereo.d.ts +3 -0
  48. package/built/types/js/components/MainWindow/PlaylistToggleButton.d.ts +3 -0
  49. package/built/types/js/components/MainWindow/Position.d.ts +3 -0
  50. package/built/types/js/components/MainWindow/Repeat.d.ts +3 -0
  51. package/built/types/js/components/MainWindow/Shade.d.ts +3 -0
  52. package/built/types/js/components/MainWindow/Shuffle.d.ts +3 -0
  53. package/built/types/js/components/MainWindow/Time.d.ts +3 -0
  54. package/built/types/js/components/MainWindow/index.d.ts +8 -0
  55. package/built/types/js/components/MilkdropWindow/Background.d.ts +7 -0
  56. package/built/types/js/components/MilkdropWindow/Desktop.d.ts +7 -0
  57. package/built/types/js/components/MilkdropWindow/MilkdropContextMenu.d.ts +6 -0
  58. package/built/types/js/components/MilkdropWindow/PresetOverlay.d.ts +7 -0
  59. package/built/types/js/components/MilkdropWindow/Visualizer.d.ts +7 -0
  60. package/built/types/js/components/MilkdropWindow/index.d.ts +5 -0
  61. package/built/types/js/components/MiniTime.d.ts +2 -0
  62. package/built/types/js/components/OptionsContextMenu.d.ts +2 -0
  63. package/built/types/js/components/PlaybackContextMenu.d.ts +2 -0
  64. package/built/types/js/components/PlaylistWindow/AddMenu.d.ts +2 -0
  65. package/built/types/js/components/PlaylistWindow/ListMenu.d.ts +1 -0
  66. package/built/types/js/components/PlaylistWindow/MiscMenu.d.ts +2 -0
  67. package/built/types/js/components/PlaylistWindow/MiscOptionsContextMenu.d.ts +2 -0
  68. package/built/types/js/components/PlaylistWindow/PlaylistActionArea.d.ts +2 -0
  69. package/built/types/js/components/PlaylistWindow/PlaylistMenu.d.ts +8 -0
  70. package/built/types/js/components/PlaylistWindow/PlaylistMenuEntry.d.ts +7 -0
  71. package/built/types/js/components/PlaylistWindow/PlaylistResizeTarget.d.ts +5 -0
  72. package/built/types/js/components/PlaylistWindow/PlaylistScrollBar.d.ts +1 -0
  73. package/built/types/js/components/PlaylistWindow/PlaylistShade.d.ts +2 -0
  74. package/built/types/js/components/PlaylistWindow/RemoveMenu.d.ts +2 -0
  75. package/built/types/js/components/PlaylistWindow/RunningTimeDisplay.d.ts +2 -0
  76. package/built/types/js/components/PlaylistWindow/SelectionMenu.d.ts +1 -0
  77. package/built/types/js/components/PlaylistWindow/SortContextMenu.d.ts +1 -0
  78. package/built/types/js/components/PlaylistWindow/TrackCell.d.ts +9 -0
  79. package/built/types/js/components/PlaylistWindow/TrackList.d.ts +2 -0
  80. package/built/types/js/components/PlaylistWindow/TrackTitle.d.ts +6 -0
  81. package/built/types/js/components/PlaylistWindow/index.d.ts +5 -0
  82. package/built/types/js/components/ResizeTarget.d.ts +11 -0
  83. package/built/types/js/components/Skin.d.ts +1 -0
  84. package/built/types/js/components/SkinsContextMenu.d.ts +2 -0
  85. package/built/types/js/components/VerticalSlider.d.ts +15 -0
  86. package/built/types/js/components/Vis.d.ts +5 -0
  87. package/built/types/js/components/VisPainter.d.ts +147 -0
  88. package/built/types/js/components/Volume.d.ts +8 -0
  89. package/built/types/js/components/WinampButton.d.ts +23 -0
  90. package/built/types/js/components/WindowManager.d.ts +8 -0
  91. package/built/types/js/constants.d.ts +38 -0
  92. package/built/types/js/emitter.d.ts +9 -0
  93. package/built/types/js/fileUtils.d.ts +15 -0
  94. package/built/types/js/hooks.d.ts +21 -0
  95. package/built/types/js/hotkeys.d.ts +2 -0
  96. package/built/types/js/loadQueue.d.ts +9 -0
  97. package/built/types/js/marqueeUtils.d.ts +6 -0
  98. package/built/types/js/marqueeUtils.test.d.ts +1 -0
  99. package/built/types/js/media/StereoBalanceNode.d.ts +3 -0
  100. package/built/types/js/media/elementSource.d.ts +26 -0
  101. package/built/types/js/media/index.d.ts +43 -0
  102. package/built/types/js/mediaMiddleware.d.ts +4 -0
  103. package/built/types/js/playlistHtml.d.ts +10 -0
  104. package/built/types/js/reducers/display.d.ts +26 -0
  105. package/built/types/js/reducers/equalizer.d.ts +10 -0
  106. package/built/types/js/reducers/index.d.ts +4 -0
  107. package/built/types/js/reducers/media.d.ts +14 -0
  108. package/built/types/js/reducers/milkdrop.d.ts +15 -0
  109. package/built/types/js/reducers/network.d.ts +6 -0
  110. package/built/types/js/reducers/playlist.d.ts +9 -0
  111. package/built/types/js/reducers/settings.d.ts +6 -0
  112. package/built/types/js/reducers/tracks.d.ts +7 -0
  113. package/built/types/js/reducers/tracks.test.d.ts +1 -0
  114. package/built/types/js/reducers/userInput.d.ts +9 -0
  115. package/built/types/js/reducers/windows.d.ts +34 -0
  116. package/built/types/js/regionParser.d.ts +6 -0
  117. package/built/types/js/resizeUtils.d.ts +23 -0
  118. package/built/types/js/resizeUtils.test.d.ts +1 -0
  119. package/built/types/js/selectors.d.ts +184 -0
  120. package/built/types/js/selectors.test.d.ts +1 -0
  121. package/built/types/js/serialization.test.d.ts +1 -0
  122. package/built/types/js/serializedStates/v1Types.d.ts +64 -0
  123. package/built/types/js/skinParser.d.ts +12 -0
  124. package/built/types/js/skinParserUtils.d.ts +19 -0
  125. package/built/types/js/skinSelectors.d.ts +6 -0
  126. package/built/types/js/skinSprites.d.ts +17 -0
  127. package/built/types/js/snapUtils.d.ts +32 -0
  128. package/built/types/js/snapUtils.test.d.ts +1 -0
  129. package/built/types/js/spinParserUtils.test.d.ts +1 -0
  130. package/built/types/js/store.d.ts +4 -0
  131. package/built/types/js/trackUtils.d.ts +3 -0
  132. package/built/types/js/types.d.ts +734 -0
  133. package/built/types/js/utils.d.ts +71 -0
  134. package/built/types/js/utils.test.d.ts +1 -0
  135. package/built/types/js/webamp.d.ts +6 -0
  136. package/built/types/js/webampLazy.d.ts +156 -0
  137. package/built/types/scripts/postcss-optimize-data-uri-pngs.d.ts +2 -0
  138. package/built/types/scripts/rollupPlugins.d.mts +8 -0
  139. package/built/types/vite.config.d.ts +2 -0
  140. package/built/webamp.bundle.js +43627 -36184
  141. package/built/webamp.bundle.js.map +1 -0
  142. package/built/webamp.bundle.min.js +43 -71
  143. package/built/webamp.bundle.min.js.map +1 -1
  144. package/built/webamp.bundle.min.mjs +44 -0
  145. package/built/webamp.bundle.min.mjs.map +1 -0
  146. package/built/webamp.lazy-bundle.js +14215 -18995
  147. package/built/webamp.lazy-bundle.js.map +1 -0
  148. package/built/webamp.lazy-bundle.min.js +41 -50
  149. package/built/webamp.lazy-bundle.min.js.map +1 -1
  150. package/built/webamp.lazy-bundle.min.mjs +42 -0
  151. package/built/webamp.lazy-bundle.min.mjs.map +1 -0
  152. package/package.json +68 -75
  153. package/CHANGELOG.md +0 -198
  154. package/index.d.ts +0 -277
package/README.md CHANGED
@@ -35,6 +35,26 @@ To update snapshots run
35
35
 
36
36
  yarn test -u
37
37
 
38
+ ## Cutting a Release
39
+
40
+ 1. Update the version number in `package.json`
41
+ 2. Rename the "Next" title at the top of `CHANGELOG.md` to the new version number and ensure it is up to date
42
+ 3. Update the static `VERSION` property of the `Webamp` class in `webampLazy.tsx`
43
+ 4. Git commit
44
+ 5. `cd packages/webamp`
45
+ 6. `npm publish`
46
+ 7. Git tag the commit (e.g. `1.4.2` or `1.4.3-beta.3`)
47
+ 8. Push tag to GitHub `git push origin <TAG_NAME>`
48
+ 9. Update all the examples to use the new version:
49
+
50
+ - `minimal/index.html`
51
+ - `minimalMilkdrop/index.html`
52
+ - `webpack/package.json`
53
+ - `webpackLazyLoad/package.json`
54
+ - https://codesandbox.io/s/y0xypox60z
55
+
56
+ 8. Commit and push
57
+
38
58
  ## Reference
39
59
 
40
60
  - [skinspecs.pdf](http://members.xoom.it/skinart/tutorial/skinspecs..pdf)
@@ -0,0 +1,11 @@
1
+ type Teardown = (() => void) | {
2
+ dispose: () => void;
3
+ };
4
+ export default class Disposable {
5
+ _teardowns: Teardown[];
6
+ disposed: boolean;
7
+ constructor();
8
+ add(...teardowns: Teardown[]): void;
9
+ dispose(): void;
10
+ }
11
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Band, Thunk, Action } from "../types";
2
+ export declare function setEqBand(band: Band, value: number): Action;
3
+ export declare function setEqToMax(): Thunk;
4
+ export declare function setEqToMid(): Thunk;
5
+ export declare function setEqToMin(): Thunk;
6
+ export declare function setPreamp(value: number): Action;
7
+ export declare function toggleEq(): Thunk;
8
+ export declare function toggleEqAuto(): Thunk;
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ import { LoadStyle, Thunk, Track, EqfPreset, WindowId } from "../types";
3
+ export declare function addTracksFromReferences(fileReferences: FileList, loadStyle: LoadStyle, atIndex: number | undefined): Thunk;
4
+ export declare function loadFilesFromReferences(fileReferences: FileList, loadStyle?: LoadStyle, atIndex?: number | undefined): Thunk;
5
+ export declare function setSkinFromBlob(blob: Blob | Promise<Blob>): Thunk;
6
+ export declare function setSkinFromUrl(url: string): Thunk;
7
+ export declare function openEqfFileDialog(): Thunk;
8
+ export declare function openMediaFileDialog(): Thunk;
9
+ export declare function openSkinFileDialog(): Thunk;
10
+ export declare function fetchMediaDuration(url: string, id: number): Thunk;
11
+ export declare function loadMedia(e: React.DragEvent<HTMLDivElement>, loadStyle?: LoadStyle, atIndex?: number): Thunk;
12
+ export declare function loadMediaFiles(tracks: Track[], loadStyle?: LoadStyle, atIndex?: number): Thunk;
13
+ export declare function loadMediaFile(track: Track, priority?: LoadStyle, atIndex?: number): Thunk;
14
+ export declare function fetchMediaTags(file: string | Blob, id: number): Thunk;
15
+ export declare function setEqFromFileReference(fileReference: File): Thunk;
16
+ export declare function setEqFromObject(preset: EqfPreset): Thunk;
17
+ export declare function downloadPreset(): Thunk;
18
+ export declare function downloadHtmlPlaylist(): Thunk;
19
+ export declare function addFilesAtIndex(nextIndex: number): Thunk;
20
+ export declare function addDirAtIndex(nextIndex: number): Thunk;
21
+ export declare function addFilesFromUrl(atIndex?: number): Thunk;
22
+ export declare function addFilesFromList(): Thunk;
23
+ export declare function saveFilesToList(): Thunk;
24
+ export declare function droppedFiles(e: React.DragEvent, windowId: WindowId): Thunk;
@@ -0,0 +1,22 @@
1
+ import { Thunk, Action, Slider } from "../types";
2
+ import { SerializedStateV1 } from "../serializedStates/v1Types";
3
+ export { toggleDoubleSizeMode, toggleEqualizerShadeMode, togglePlaylistShadeMode, closeWindow, setWindowSize, toggleWindow, updateWindowPositions, toggleMainWindowShadeMode, centerWindowsInContainer, centerWindowsInView, resetWindowSizes, browserWindowSizeChanged, ensureWindowsAreOnScreen, stackWindows, toggleLlamaMode, setFocusedWindow, setWindowLayout, } from "./windows";
4
+ export { play, pause, stop, nextN, next, previous, seekToTime, seekForward, seekBackward, setVolume, playTrack, playTrackNow, adjustVolume, scrollVolume, setBalance, toggleRepeat, toggleShuffle, toggleTimeMode, } from "./media";
5
+ export { setEqBand, setEqToMax, setEqToMid, setEqToMin, setPreamp, toggleEq, toggleEqAuto, } from "./equalizer";
6
+ export { addTracksFromReferences, loadFilesFromReferences, setSkinFromUrl, openEqfFileDialog, openMediaFileDialog, openSkinFileDialog, fetchMediaDuration, loadMedia, loadMediaFiles, loadMediaFile, fetchMediaTags, setEqFromFileReference, downloadPreset, setEqFromObject, downloadHtmlPlaylist, addDirAtIndex, addFilesAtIndex, addFilesFromUrl, addFilesFromList, saveFilesToList, droppedFiles, } from "./files";
7
+ export { cropPlaylist, removeSelectedTracks, removeAllTracks, reverseList, randomizeList, sortListByTitle, setPlaylistScrollPosition, scrollNTracks, scrollPlaylistByDelta, scrollUpFourTracks, scrollDownFourTracks, dragSelected, selectAll, selectZero, invertSelection, } from "./playlist";
8
+ export { initializePresets, requestPresetAtIndex, selectRandomPreset, selectNextPreset, selectPreviousPreset, appendPresetFileList, handlePresetDrop, loadPresets, toggleRandomizePresets, togglePresetCycling, scheduleMilkdropMessage, } from "./milkdrop";
9
+ export declare function close(): Thunk;
10
+ export declare function open(): Action;
11
+ export declare function toggleVisualizerStyle(): Action;
12
+ export declare function minimize(): Action;
13
+ export declare function setFocus(input: string): Action;
14
+ export declare function unsetFocus(): Action;
15
+ export declare function focusBand(band: Slider): Action;
16
+ export declare function loadSerializedState(serializedState: SerializedStateV1): Thunk;
17
+ export declare function loadDefaultSkin(): Action;
18
+ export declare function toggleMilkdropDesktop(): Thunk;
19
+ export declare function setMilkdropFullscreen(enabled: boolean): Action;
20
+ export declare function toggleMilkdropFullscreen(): Thunk;
21
+ export declare function togglePresetOverlay(): Thunk;
22
+ export declare function stepMarquee(): Action;
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { Thunk, Action } from "../types";
3
+ export declare function playTrack(id: number): Thunk;
4
+ export declare function playTrackNow(id: number): Action;
5
+ export declare function play(): Thunk;
6
+ export declare function pause(): Thunk;
7
+ export declare function stop(): Action;
8
+ export declare function nextN(n: number): Thunk;
9
+ export declare function next(): Thunk;
10
+ export declare function previous(): Thunk;
11
+ export declare function seekToTime(seconds: number): Thunk;
12
+ export declare function seekForward(seconds: number): Thunk;
13
+ export declare function seekBackward(seconds: number): Thunk;
14
+ export declare function setVolume(volume: number): Action;
15
+ export declare function adjustVolume(volumeDiff: number): Thunk;
16
+ export declare function scrollVolume(e: React.WheelEvent<HTMLDivElement>): Thunk;
17
+ export declare function setBalance(balance: number): Action;
18
+ export declare function toggleRepeat(): Action;
19
+ export declare function toggleShuffle(): Action;
20
+ export declare function toggleTimeMode(): Action;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { TransitionType, ButterchurnOptions, StatePreset, Thunk, Action } from "../types";
3
+ export declare function initializePresets(presetOptions: ButterchurnOptions): Thunk;
4
+ export declare function loadPresets(presets: StatePreset[]): Thunk;
5
+ export declare function appendPresetFileList(fileList: FileList): Thunk;
6
+ export declare function selectNextPreset(transitionType?: TransitionType): Thunk;
7
+ export declare function selectPreviousPreset(transitionType?: TransitionType): Thunk;
8
+ export declare function selectRandomPreset(transitionType?: TransitionType): Thunk;
9
+ export declare function requestPresetAtIndex(index: number, transitionType: TransitionType, addToHistory: boolean): Thunk;
10
+ export declare function handlePresetDrop(e: React.DragEvent): Thunk;
11
+ export declare function toggleRandomizePresets(): Action;
12
+ export declare function togglePresetCycling(): Action;
13
+ export declare function scheduleMilkdropMessage(message: string): Action;
@@ -0,0 +1,16 @@
1
+ import { Thunk, Action } from "../types";
2
+ export declare function cropPlaylist(): Thunk;
3
+ export declare function removeSelectedTracks(): Thunk;
4
+ export declare function removeAllTracks(): Thunk;
5
+ export declare function reverseList(): Action;
6
+ export declare function randomizeList(): Action;
7
+ export declare function sortListByTitle(): Thunk;
8
+ export declare function setPlaylistScrollPosition(position: number): Action;
9
+ export declare function scrollNTracks(n: number): Thunk;
10
+ export declare function scrollPlaylistByDelta(e: WheelEvent): Thunk;
11
+ export declare function scrollUpFourTracks(): Thunk;
12
+ export declare function scrollDownFourTracks(): Thunk;
13
+ export declare function dragSelected(offset: number): Thunk;
14
+ export declare function invertSelection(): Action;
15
+ export declare function selectZero(): Action;
16
+ export declare function selectAll(): Action;
@@ -0,0 +1,27 @@
1
+ import { Action, Thunk, WindowId, WindowPositions, WindowLayout } from "../types";
2
+ export declare function toggleDoubleSizeMode(): Thunk;
3
+ export declare function toggleLlamaMode(): Action;
4
+ export declare function toggleEqualizerShadeMode(): Thunk;
5
+ export declare function toggleMainWindowShadeMode(): Thunk;
6
+ export declare function togglePlaylistShadeMode(): Thunk;
7
+ export declare function closeWindow(windowId: WindowId): Action;
8
+ export declare function setFocusedWindow(window: WindowId | null): Action;
9
+ export declare function setWindowSize(windowId: WindowId, size: [number, number]): Action;
10
+ export declare function toggleWindow(windowId: WindowId): Action;
11
+ export declare function updateWindowPositions(positions: WindowPositions, absolute?: boolean): Action;
12
+ export declare function centerWindowsInContainer(container: HTMLElement): Thunk;
13
+ export declare function centerWindowsInView(): Thunk;
14
+ export declare function centerWindows(box: {
15
+ left: number;
16
+ top: number;
17
+ width: number;
18
+ height: number;
19
+ }): Thunk;
20
+ export declare function browserWindowSizeChanged(size: {
21
+ height: number;
22
+ width: number;
23
+ }): Thunk;
24
+ export declare function resetWindowSizes(): Action;
25
+ export declare function stackWindows(): Thunk;
26
+ export declare function setWindowLayout(layout?: WindowLayout): Thunk;
27
+ export declare function ensureWindowsAreOnScreen(): Thunk;
@@ -0,0 +1,87 @@
1
+ export declare const ADD_TRACK_FROM_URL = "ADD_TRACK_FROM_URL";
2
+ export declare const CLOSE_WINAMP = "CLOSE_WINAMP";
3
+ export declare const OPEN_WINAMP = "OPEN_WINAMP";
4
+ export declare const MINIMIZE_WINAMP = "MINIMIZE_WINAMP";
5
+ export declare const IS_PLAYING = "IS_PLAYING";
6
+ export declare const IS_STOPPED = "IS_STOPPED";
7
+ export declare const PAUSE = "PAUSE";
8
+ export declare const PLAY = "PLAY";
9
+ export declare const SEEK_TO_PERCENT_COMPLETE = "SEEK_TO_PERCENT_COMPLETE";
10
+ export declare const SET_BALANCE = "SET_BALANCE";
11
+ export declare const SET_BAND_VALUE = "SET_BAND_VALUE";
12
+ export declare const SET_FOCUS = "SET_FOCUS";
13
+ export declare const SET_BAND_FOCUS = "SET_BAND_FOCUS";
14
+ export declare const SET_FOCUSED_WINDOW = "SET_FOCUSED_WINDOW";
15
+ export declare const SET_MEDIA = "SET_MEDIA";
16
+ export declare const SET_SCRUB_POSITION = "SET_SCRUB_POSITION";
17
+ export declare const SET_SKIN_DATA = "SET_SKIN_DATA";
18
+ export declare const SET_VOLUME = "SET_VOLUME";
19
+ export declare const START_WORKING = "START_WORKING";
20
+ export declare const STEP_MARQUEE = "STEP_MARQUEE";
21
+ export declare const STOP = "STOP";
22
+ export declare const STOP_WORKING = "STOP_WORKING";
23
+ export declare const TOGGLE_DOUBLESIZE_MODE = "TOGGLE_DOUBLESIZE_MODE";
24
+ export declare const SET_EQ_AUTO = "SET_EQ_AUTO";
25
+ export declare const SET_EQ_ON = "SET_EQ_ON";
26
+ export declare const SET_EQ_OFF = "SET_EQ_OFF";
27
+ export declare const TOGGLE_LLAMA_MODE = "TOGGLE_LLAMA_MODE";
28
+ export declare const TOGGLE_REPEAT = "TOGGLE_REPEAT";
29
+ export declare const TOGGLE_SHUFFLE = "TOGGLE_SHUFFLE";
30
+ export declare const TOGGLE_TIME_MODE = "TOGGLE_TIME_MODE";
31
+ export declare const TOGGLE_VISUALIZER_STYLE = "TOGGLE_VISUALIZER_STYLE";
32
+ export declare const UNSET_FOCUS = "UNSET_FOCUS";
33
+ export declare const UPDATE_TIME_ELAPSED = "UPDATE_TIME_ELAPSED";
34
+ export declare const SET_USER_MESSAGE = "SET_USER_MESSAGE";
35
+ export declare const UNSET_USER_MESSAGE = "UNSET_USER_MESSAGE";
36
+ export declare const SET_PLAYLIST_SCROLL_POSITION = "SET_PLAYLIST_SCROLL_POSITION";
37
+ export declare const CLICKED_TRACK = "CLICKED_TRACK";
38
+ export declare const CTRL_CLICKED_TRACK = "CTRL_CLICKED_TRACK";
39
+ export declare const SHIFT_CLICKED_TRACK = "SHIFT_CLICKED_TRACK";
40
+ export declare const SELECT_ALL = "SELECT_ALL";
41
+ export declare const SELECT_ZERO = "SELECT_ZERO";
42
+ export declare const INVERT_SELECTION = "INVERT_SELECTION";
43
+ export declare const REMOVE_ALL_TRACKS = "REMOVE_ALL_TRACKS";
44
+ export declare const CROP_TRACKS = "CROP_TRACKS";
45
+ export declare const FILE_INFO = "FILE_INFO";
46
+ export declare const REMOVE_TRACKS = "REMOVE_TRACKS";
47
+ export declare const SET_AVAILABLE_SKINS = "SET_AVAILABLE_SKINS";
48
+ export declare const REVERSE_LIST = "REVERSE_LIST";
49
+ export declare const RANDOMIZE_LIST = "RANDOMIZE_LIST";
50
+ export declare const SET_TRACK_ORDER = "SET_TRACK_ORDER";
51
+ export declare const PLAY_TRACK = "PLAY_TRACK";
52
+ export declare const BUFFER_TRACK = "BUFFER_TRACK";
53
+ export declare const DRAG_SELECTED = "DRAG_SELECTED";
54
+ export declare const SET_MEDIA_TAGS = "SET_MEDIA_TAGS";
55
+ export declare const SET_MEDIA_DURATION = "SET_MEDIA_DURATION";
56
+ export declare const TOGGLE_WINDOW = "TOGGLE_WINDOW";
57
+ export declare const CLOSE_WINDOW = "CLOSE_WINDOW";
58
+ export declare const MEDIA_TAG_REQUEST_INITIALIZED = "MEDIA_TAG_REQUEST_INITIALIZED";
59
+ export declare const MEDIA_TAG_REQUEST_FAILED = "MEDIA_TAG_REQUEST_FAILED";
60
+ export declare const NETWORK_CONNECTED = "NETWORK_CONNECTED";
61
+ export declare const NETWORK_DISCONNECTED = "NETWORK_DISCONNECTED";
62
+ export declare const UPDATE_WINDOW_POSITIONS = "UPDATE_WINDOW_POSITIONS";
63
+ export declare const WINDOW_SIZE_CHANGED = "WINDOW_SIZE_CHANGED";
64
+ export declare const TOGGLE_WINDOW_SHADE_MODE = "TOGGLE_WINDOW_SHADE_MODE";
65
+ export declare const LOADED = "LOADED";
66
+ export declare const SET_Z_INDEX = "SET_Z_INDEX";
67
+ export declare const DISABLE_MARQUEE = "DISABLE_MARQUEE";
68
+ export declare const SET_DUMMY_VIZ_DATA = "SET_DUMMY_VIZ_DATA";
69
+ export declare const LOADING = "LOADING";
70
+ export declare const CLOSE_REQUESTED = "CLOSE_REQUESTED";
71
+ export declare const LOAD_SERIALIZED_STATE = "LOAD_SERIALIZED_STATE";
72
+ export declare const RESET_WINDOW_SIZES = "RESET_WINDOW_SIZES";
73
+ export declare const BROWSER_WINDOW_SIZE_CHANGED = "BROWSER_WINDOW_SIZE_CHANGED";
74
+ export declare const LOAD_DEFAULT_SKIN = "LOAD_DEFAULT_SKIN";
75
+ export declare const ENABLE_MILKDROP = "ENABLE_MILKDROP";
76
+ export declare const SET_MILKDROP_DESKTOP = "SET_MILKDROP_DESKTOP";
77
+ export declare const SET_VISUALIZER_STYLE = "SET_VISUALIZER_STYLE";
78
+ export declare const GOT_BUTTERCHURN_PRESETS = "GOT_BUTTERCHURN_PRESETS";
79
+ export declare const GOT_BUTTERCHURN = "GOT_BUTTERCHURN";
80
+ export declare const RESOLVE_PRESET_AT_INDEX = "RESOLVE_PRESET_AT_INDEX";
81
+ export declare const SELECT_PRESET_AT_INDEX = "SELECT_PRESET_AT_INDEX";
82
+ export declare const TOGGLE_PRESET_OVERLAY = "TOGGLE_PRESET_OVERLAY";
83
+ export declare const PRESET_REQUESTED = "PRESET_REQUESTED";
84
+ export declare const TOGGLE_RANDOMIZE_PRESETS = "TOGGLE_RANDOMIZE_PRESETS";
85
+ export declare const TOGGLE_PRESET_CYCLING = "TOGGLE_PRESET_CYCLING";
86
+ export declare const SCHEDULE_MILKDROP_MESSAGE = "SCHEDULE_MILKDROP_MESSAGE";
87
+ export declare const SET_MILKDROP_FULLSCREEN = "SET_MILKDROP_FULLSCREEN";
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { FilePicker } from "../types";
3
+ import Media from "../media";
4
+ interface Props {
5
+ filePickers: FilePicker[];
6
+ media: Media;
7
+ }
8
+ /**
9
+ * Constructs the windows to render
10
+ */
11
+ export default function App({ media, filePickers }: Props): import("react").ReactPortal | null;
12
+ export {};
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ interface Props {
3
+ id?: string;
4
+ style?: React.CSSProperties;
5
+ className?: string;
6
+ }
7
+ export default function Balance({ style, className, id }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react/experimental" />
2
+ import * as React from "react";
3
+ interface Props extends React.HTMLAttributes<HTMLSpanElement> {
4
+ children: string | number;
5
+ className?: string;
6
+ }
7
+ export declare const characterClassName: (char: string | number) => string;
8
+ declare const Character: React.MemoExoticComponent<({ children: char, className, ...passThrough }: Props) => import("react/jsx-runtime").JSX.Element>;
9
+ export default Character;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ children: string;
4
+ }
5
+ declare const CharacterString: import("react").MemoExoticComponent<(props: Props) => import("react/jsx-runtime").JSX.Element>;
6
+ export default CharacterString;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ /// <reference types="react/experimental" />
3
+ interface Props extends React.HTMLAttributes<HTMLDivElement> {
4
+ className?: string;
5
+ onPointerDown?: (e: React.PointerEvent<HTMLDivElement>) => void;
6
+ }
7
+ declare function ClickedDiv(props: Props): import("react/jsx-runtime").JSX.Element;
8
+ export default ClickedDiv;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ children: {
4
+ [id: string]: string[];
5
+ };
6
+ };
7
+ export default function ClipPaths({ children }: Props): import("react").ReactPortal;
8
+ export {};
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ export declare const Hr: () => import("react/jsx-runtime").JSX.Element;
3
+ interface ParentProps {
4
+ label: string;
5
+ children: React.ReactNode;
6
+ }
7
+ export declare const Parent: ({ children, label }: ParentProps) => import("react/jsx-runtime").JSX.Element;
8
+ interface LinkNodeProps {
9
+ label: string;
10
+ href: string;
11
+ target?: string;
12
+ }
13
+ export declare const LinkNode: (props: LinkNodeProps) => import("react/jsx-runtime").JSX.Element;
14
+ interface NodeProps {
15
+ label: string;
16
+ checked?: boolean;
17
+ hotkey?: string;
18
+ className?: string;
19
+ onClick?: () => void;
20
+ }
21
+ export declare const Node: (props: NodeProps) => import("react/jsx-runtime").JSX.Element;
22
+ interface ContextMenuProps {
23
+ children: React.ReactNode;
24
+ offsetTop: number;
25
+ offsetLeft: number;
26
+ top?: boolean;
27
+ bottom?: boolean;
28
+ selected: boolean;
29
+ }
30
+ export default function ContextMenu({ children, offsetTop, offsetLeft, top, bottom, selected, }: ContextMenuProps): import("react/jsx-runtime").JSX.Element | null;
31
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ /// <reference types="react/experimental" />
3
+ interface Props extends React.HTMLAttributes<HTMLDivElement> {
4
+ renderMenu: () => React.ReactNode;
5
+ top?: boolean;
6
+ bottom?: boolean;
7
+ }
8
+ declare function ContextMenuTarget(props: Props): import("react/jsx-runtime").JSX.Element;
9
+ export default ContextMenuTarget;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from "react";
2
+ interface Props {
3
+ renderContents(): ReactNode;
4
+ children: ReactNode;
5
+ }
6
+ export default function ContextMenuWraper({ children, renderContents, ...passThroughProps }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ children: string;
4
+ id?: string;
5
+ };
6
+ export default function Css({ children, id }: Props): import("react").ReactPortal;
7
+ export {};
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ /// <reference types="react/experimental" />
3
+ import { WindowId } from "../types";
4
+ interface Coord {
5
+ x: number;
6
+ y: number;
7
+ }
8
+ interface Props extends React.HTMLAttributes<HTMLDivElement> {
9
+ handleDrop(e: React.DragEvent<HTMLDivElement>, coord: Coord): void;
10
+ windowId: WindowId;
11
+ }
12
+ declare const DropTarget: (props: Props) => import("react/jsx-runtime").JSX.Element;
13
+ export default DropTarget;
@@ -0,0 +1,14 @@
1
+ import { Slider as SliderType } from "../../types";
2
+ interface Props {
3
+ id: string;
4
+ band: SliderType;
5
+ onChange(value: number): void;
6
+ clickOriginatedInEq?: boolean;
7
+ }
8
+ export declare const spriteNumber: (value: number) => number;
9
+ export declare const spriteOffsets: (number: number) => {
10
+ x: number;
11
+ y: number;
12
+ };
13
+ export default function Band({ id, onChange, band, clickOriginatedInEq, }: Props): import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const EqAuto: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ export default EqAuto;
@@ -0,0 +1,2 @@
1
+ declare function EqGraph(): import("react/jsx-runtime").JSX.Element;
2
+ export default EqGraph;
@@ -0,0 +1,2 @@
1
+ declare const EqOn: () => import("react/jsx-runtime").JSX.Element;
2
+ export default EqOn;
@@ -0,0 +1 @@
1
+ export default function EqTitleButtons(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare const EqualizerShade: () => import("react/jsx-runtime").JSX.Element;
2
+ export default EqualizerShade;
@@ -0,0 +1,2 @@
1
+ declare const PresetsContextMenu: () => import("react/jsx-runtime").JSX.Element;
2
+ export default PresetsContextMenu;
@@ -0,0 +1,2 @@
1
+ declare const EqualizerWindow: () => import("react/jsx-runtime").JSX.Element;
2
+ export default EqualizerWindow;
@@ -0,0 +1 @@
1
+ export default function spline(xs: any, ys: any): number[];
@@ -0,0 +1,16 @@
1
+ export declare class FFT {
2
+ private bitrevtable;
3
+ private envelope;
4
+ private equalize;
5
+ private temp1;
6
+ private temp2;
7
+ private cossintable;
8
+ private static readonly TWO_PI;
9
+ private static readonly HALF_PI;
10
+ constructor();
11
+ private initEqualizeTable;
12
+ private initEnvelopeTable;
13
+ private initBitRevTable;
14
+ private initCosSinTable;
15
+ timeToFrequencyDomain(inWavedata: Float32Array, outSpectraldata: Float32Array): void;
16
+ }
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { WindowId } from "../types";
3
+ interface Props {
4
+ onKeyDown?(e: KeyboardEvent): void;
5
+ windowId: WindowId;
6
+ children: React.ReactNode;
7
+ }
8
+ declare function FocusTarget({ onKeyDown, windowId, children }: Props): import("react/jsx-runtime").JSX.Element;
9
+ export default FocusTarget;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from "react";
2
+ interface Props {
3
+ enabled: boolean;
4
+ children: ReactNode;
5
+ onChange(fullscreen: boolean): void;
6
+ }
7
+ declare function FullScreen(props: Props): import("react/jsx-runtime").JSX.Element;
8
+ export default FullScreen;
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ import { WindowId } from "../../types";
3
+ interface WindowSize {
4
+ width: number;
5
+ height: number;
6
+ }
7
+ interface Props {
8
+ windowId: WindowId;
9
+ children: (windowSize: WindowSize) => React.ReactNode;
10
+ title: string;
11
+ onKeyDown?(e: KeyboardEvent): void;
12
+ }
13
+ export declare const GenWindow: ({ children, title, windowId, onKeyDown }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ export default GenWindow;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const ActionButtons: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ export default ActionButtons;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Close: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ export default Close;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const ClutterBar: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ export default ClutterBar;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Eject: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ export default Eject;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const EqToggleButton: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ export default EqToggleButton;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Kbps: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ export default Kbps;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Khz: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ export default Khz;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const offsetFromBalance: (balance: number) => number;
3
+ declare const MainBalance: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
4
+ export default MainBalance;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { FilePicker } from "../../types";
3
+ interface Props {
4
+ filePickers: FilePicker[];
5
+ }
6
+ declare const MainContextMenu: import("react").MemoExoticComponent<({ filePickers }: Props) => import("react/jsx-runtime").JSX.Element>;
7
+ export default MainContextMenu;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const MainVolume: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ export default MainVolume;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ export declare const mod: (n: number, m: number) => number;
3
+ export declare const stepOffset: (text: string, step: number, pixels: number) => number;
4
+ export declare const pixelUnits: (pixels: number) => string;
5
+ export declare const loopText: (text: string) => string;
6
+ declare const Marquee: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
7
+ export default Marquee;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Minimize: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ export default Minimize;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const MonoStereo: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ export default MonoStereo;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const PlaylistToggleButton: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ export default PlaylistToggleButton;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Position: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ export default Position;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Repeat: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ export default Repeat;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Shade: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ export default Shade;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Shuffle: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ export default Shuffle;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Time: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ export default Time;