lyrics-transcriber 0.44.0__py3-none-any.whl → 0.46.0__py3-none-any.whl

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 (29) hide show
  1. lyrics_transcriber/frontend/.yarn/releases/{yarn-4.6.0.cjs → yarn-4.7.0.cjs} +292 -291
  2. lyrics_transcriber/frontend/.yarnrc.yml +1 -1
  3. lyrics_transcriber/frontend/dist/assets/{index-DVoI6Z16.js → index-BXOpmKq-.js} +2715 -2030
  4. lyrics_transcriber/frontend/dist/assets/index-BXOpmKq-.js.map +1 -0
  5. lyrics_transcriber/frontend/dist/index.html +1 -1
  6. lyrics_transcriber/frontend/package.json +1 -1
  7. lyrics_transcriber/frontend/src/App.tsx +1 -1
  8. lyrics_transcriber/frontend/src/components/EditActionBar.tsx +68 -0
  9. lyrics_transcriber/frontend/src/components/EditModal.tsx +376 -303
  10. lyrics_transcriber/frontend/src/components/EditTimelineSection.tsx +373 -0
  11. lyrics_transcriber/frontend/src/components/EditWordList.tsx +308 -0
  12. lyrics_transcriber/frontend/src/components/Header.tsx +8 -23
  13. lyrics_transcriber/frontend/src/components/LyricsAnalyzer.tsx +460 -62
  14. lyrics_transcriber/frontend/src/components/ReferenceView.tsx +3 -1
  15. lyrics_transcriber/frontend/src/components/TranscriptionView.tsx +7 -7
  16. lyrics_transcriber/frontend/src/components/WordDivider.tsx +4 -3
  17. lyrics_transcriber/frontend/src/components/shared/components/HighlightedText.tsx +4 -2
  18. lyrics_transcriber/frontend/src/components/shared/components/SourceSelector.tsx +26 -3
  19. lyrics_transcriber/frontend/src/components/shared/components/Word.tsx +1 -1
  20. lyrics_transcriber/frontend/src/components/shared/types.ts +2 -0
  21. lyrics_transcriber/frontend/src/components/shared/utils/keyboardHandlers.ts +68 -46
  22. lyrics_transcriber/frontend/tsconfig.tsbuildinfo +1 -1
  23. {lyrics_transcriber-0.44.0.dist-info → lyrics_transcriber-0.46.0.dist-info}/METADATA +1 -1
  24. {lyrics_transcriber-0.44.0.dist-info → lyrics_transcriber-0.46.0.dist-info}/RECORD +27 -25
  25. lyrics_transcriber/frontend/dist/assets/index-DVoI6Z16.js.map +0 -1
  26. lyrics_transcriber/frontend/src/components/GlobalSyncEditor.tsx +0 -675
  27. {lyrics_transcriber-0.44.0.dist-info → lyrics_transcriber-0.46.0.dist-info}/LICENSE +0 -0
  28. {lyrics_transcriber-0.44.0.dist-info → lyrics_transcriber-0.46.0.dist-info}/WHEEL +0 -0
  29. {lyrics_transcriber-0.44.0.dist-info → lyrics_transcriber-0.46.0.dist-info}/entry_points.txt +0 -0
@@ -1,14 +1,12 @@
1
1
  import { Box, Button, Typography, useMediaQuery, useTheme, Switch, FormControlLabel, Tooltip, Paper } from '@mui/material'
2
2
  import LockIcon from '@mui/icons-material/Lock'
3
3
  import UploadFileIcon from '@mui/icons-material/UploadFile'
4
- import TextSnippetIcon from '@mui/icons-material/TextSnippet'
5
4
  import FindReplaceIcon from '@mui/icons-material/FindReplace'
6
- import TimerIcon from '@mui/icons-material/Timer'
7
- import { CorrectionData } from '../types'
5
+ import EditIcon from '@mui/icons-material/Edit'
6
+ import { CorrectionData, InteractionMode } from '../types'
8
7
  import CorrectionMetrics from './CorrectionMetrics'
9
8
  import ModeSelector from './ModeSelector'
10
9
  import AudioPlayer from './AudioPlayer'
11
- import { InteractionMode } from '../types'
12
10
  import { ApiClient } from '../api'
13
11
  import { findWordById } from './shared/utils/wordUtils'
14
12
 
@@ -29,9 +27,8 @@ interface HeaderProps {
29
27
  onHandlerToggle: (handler: string, enabled: boolean) => void
30
28
  isUpdatingHandlers: boolean
31
29
  onHandlerClick?: (handler: string) => void
32
- onAddLyrics?: () => void
33
30
  onFindReplace?: () => void
34
- onEditSync?: () => void
31
+ onEditAll?: () => void
35
32
  }
36
33
 
37
34
  export default function Header({
@@ -47,9 +44,8 @@ export default function Header({
47
44
  onHandlerToggle,
48
45
  isUpdatingHandlers,
49
46
  onHandlerClick,
50
- onAddLyrics,
51
47
  onFindReplace,
52
- onEditSync
48
+ onEditAll,
53
49
  }: HeaderProps) {
54
50
  const theme = useTheme()
55
51
  const isMobile = useMediaQuery(theme.breakpoints.down('md'))
@@ -254,15 +250,15 @@ export default function Header({
254
250
  Find/Replace
255
251
  </Button>
256
252
  )}
257
- {!isReadOnly && onEditSync && (
253
+ {!isReadOnly && onEditAll && (
258
254
  <Button
259
255
  variant="outlined"
260
256
  size="small"
261
- onClick={onEditSync}
262
- startIcon={<TimerIcon />}
257
+ onClick={onEditAll}
258
+ startIcon={<EditIcon />}
263
259
  sx={{ minWidth: 'fit-content', height: '32px' }}
264
260
  >
265
- Edit Sync
261
+ Edit All
266
262
  </Button>
267
263
  )}
268
264
  <AudioPlayer
@@ -271,17 +267,6 @@ export default function Header({
271
267
  audioHash={audioHash}
272
268
  />
273
269
  </Box>
274
- {!isReadOnly && apiClient && onAddLyrics && (
275
- <Button
276
- variant="outlined"
277
- size="small"
278
- onClick={onAddLyrics}
279
- startIcon={<TextSnippetIcon />}
280
- sx={{ minWidth: 'fit-content', height: '32px' }}
281
- >
282
- Add Reference Lyrics
283
- </Button>
284
- )}
285
270
  </Box>
286
271
  </Paper>
287
272
  </>