lyrics-transcriber 0.44.0__py3-none-any.whl → 0.45.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 (22) hide show
  1. lyrics_transcriber/frontend/dist/assets/{index-DVoI6Z16.js → index-ZCT0s9MG.js} +2635 -1967
  2. lyrics_transcriber/frontend/dist/assets/index-ZCT0s9MG.js.map +1 -0
  3. lyrics_transcriber/frontend/dist/index.html +1 -1
  4. lyrics_transcriber/frontend/src/App.tsx +1 -1
  5. lyrics_transcriber/frontend/src/components/EditActionBar.tsx +68 -0
  6. lyrics_transcriber/frontend/src/components/EditModal.tsx +376 -303
  7. lyrics_transcriber/frontend/src/components/EditTimelineSection.tsx +373 -0
  8. lyrics_transcriber/frontend/src/components/EditWordList.tsx +308 -0
  9. lyrics_transcriber/frontend/src/components/Header.tsx +7 -7
  10. lyrics_transcriber/frontend/src/components/LyricsAnalyzer.tsx +458 -62
  11. lyrics_transcriber/frontend/src/components/TranscriptionView.tsx +7 -7
  12. lyrics_transcriber/frontend/src/components/WordDivider.tsx +4 -3
  13. lyrics_transcriber/frontend/src/components/shared/components/Word.tsx +1 -2
  14. lyrics_transcriber/frontend/src/components/shared/utils/keyboardHandlers.ts +68 -46
  15. lyrics_transcriber/frontend/tsconfig.tsbuildinfo +1 -1
  16. {lyrics_transcriber-0.44.0.dist-info → lyrics_transcriber-0.45.0.dist-info}/METADATA +1 -1
  17. {lyrics_transcriber-0.44.0.dist-info → lyrics_transcriber-0.45.0.dist-info}/RECORD +20 -18
  18. lyrics_transcriber/frontend/dist/assets/index-DVoI6Z16.js.map +0 -1
  19. lyrics_transcriber/frontend/src/components/GlobalSyncEditor.tsx +0 -675
  20. {lyrics_transcriber-0.44.0.dist-info → lyrics_transcriber-0.45.0.dist-info}/LICENSE +0 -0
  21. {lyrics_transcriber-0.44.0.dist-info → lyrics_transcriber-0.45.0.dist-info}/WHEEL +0 -0
  22. {lyrics_transcriber-0.44.0.dist-info → lyrics_transcriber-0.45.0.dist-info}/entry_points.txt +0 -0
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Lyrics Transcriber Analyzer</title>
8
- <script type="module" crossorigin src="/assets/index-DVoI6Z16.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-ZCT0s9MG.js"></script>
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
@@ -39,7 +39,7 @@ export default function App() {
39
39
  try {
40
40
  const client = new LiveApiClient(baseUrl)
41
41
  const data = await client.getCorrectionData()
42
- console.log('Full correction data from API:', data)
42
+ // console.log('Full correction data from API:', data)
43
43
  setData(data)
44
44
  } catch (err) {
45
45
  const error = err as Error
@@ -0,0 +1,68 @@
1
+ import { Box, Button } from '@mui/material'
2
+ import DeleteIcon from '@mui/icons-material/Delete'
3
+ import RestoreIcon from '@mui/icons-material/RestoreFromTrash'
4
+ import HistoryIcon from '@mui/icons-material/History'
5
+ import { LyricsSegment } from '../types'
6
+
7
+ interface EditActionBarProps {
8
+ onReset: () => void
9
+ onRevertToOriginal?: () => void
10
+ onDelete?: () => void
11
+ onClose: () => void
12
+ onSave: () => void
13
+ editedSegment: LyricsSegment | null
14
+ originalTranscribedSegment?: LyricsSegment | null
15
+ isGlobal?: boolean
16
+ }
17
+
18
+ export default function EditActionBar({
19
+ onReset,
20
+ onRevertToOriginal,
21
+ onDelete,
22
+ onClose,
23
+ onSave,
24
+ editedSegment,
25
+ originalTranscribedSegment,
26
+ isGlobal = false
27
+ }: EditActionBarProps) {
28
+ return (
29
+ <Box sx={{ display: 'flex', alignItems: 'center', gap: 1, width: '100%' }}>
30
+ <Box sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>
31
+ <Button
32
+ startIcon={<RestoreIcon />}
33
+ onClick={onReset}
34
+ color="warning"
35
+ >
36
+ Reset
37
+ </Button>
38
+ {originalTranscribedSegment && (
39
+ <Button
40
+ onClick={onRevertToOriginal}
41
+ startIcon={<HistoryIcon />}
42
+ >
43
+ Un-Correct
44
+ </Button>
45
+ )}
46
+ {!isGlobal && onDelete && (
47
+ <Button
48
+ startIcon={<DeleteIcon />}
49
+ onClick={onDelete}
50
+ color="error"
51
+ >
52
+ Delete Segment
53
+ </Button>
54
+ )}
55
+ </Box>
56
+ <Box sx={{ ml: 'auto', display: 'flex', gap: 1 }}>
57
+ <Button onClick={onClose}>Cancel</Button>
58
+ <Button
59
+ onClick={onSave}
60
+ variant="contained"
61
+ disabled={!editedSegment || editedSegment.words.length === 0}
62
+ >
63
+ Save
64
+ </Button>
65
+ </Box>
66
+ </Box>
67
+ )
68
+ }