lyrics-transcriber 0.45.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.
- lyrics_transcriber/frontend/.yarn/releases/{yarn-4.6.0.cjs → yarn-4.7.0.cjs} +292 -291
- lyrics_transcriber/frontend/.yarnrc.yml +1 -1
- lyrics_transcriber/frontend/dist/assets/{index-ZCT0s9MG.js → index-BXOpmKq-.js} +104 -87
- lyrics_transcriber/frontend/dist/assets/index-BXOpmKq-.js.map +1 -0
- lyrics_transcriber/frontend/dist/index.html +1 -1
- lyrics_transcriber/frontend/package.json +1 -1
- lyrics_transcriber/frontend/src/components/Header.tsx +1 -16
- lyrics_transcriber/frontend/src/components/LyricsAnalyzer.tsx +5 -3
- lyrics_transcriber/frontend/src/components/ReferenceView.tsx +3 -1
- lyrics_transcriber/frontend/src/components/shared/components/HighlightedText.tsx +4 -2
- lyrics_transcriber/frontend/src/components/shared/components/SourceSelector.tsx +26 -3
- lyrics_transcriber/frontend/src/components/shared/components/Word.tsx +2 -1
- lyrics_transcriber/frontend/src/components/shared/types.ts +2 -0
- {lyrics_transcriber-0.45.0.dist-info → lyrics_transcriber-0.46.0.dist-info}/METADATA +1 -1
- {lyrics_transcriber-0.45.0.dist-info → lyrics_transcriber-0.46.0.dist-info}/RECORD +18 -18
- lyrics_transcriber/frontend/dist/assets/index-ZCT0s9MG.js.map +0 -1
- {lyrics_transcriber-0.45.0.dist-info → lyrics_transcriber-0.46.0.dist-info}/LICENSE +0 -0
- {lyrics_transcriber-0.45.0.dist-info → lyrics_transcriber-0.46.0.dist-info}/WHEEL +0 -0
- {lyrics_transcriber-0.45.0.dist-info → lyrics_transcriber-0.46.0.dist-info}/entry_points.txt +0 -0
@@ -32843,25 +32843,53 @@ function calculateReferenceLinePositions(corrected_segments, anchors, currentSou
|
|
32843
32843
|
}
|
32844
32844
|
return { linePositions };
|
32845
32845
|
}
|
32846
|
-
|
32847
|
-
|
32848
|
-
|
32849
|
-
|
32850
|
-
|
32851
|
-
|
32852
|
-
|
32853
|
-
|
32854
|
-
|
32855
|
-
|
32856
|
-
|
32857
|
-
|
32858
|
-
|
32859
|
-
|
32846
|
+
const AddIcon = createSvgIcon(/* @__PURE__ */ jsxRuntimeExports.jsx("path", {
|
32847
|
+
d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
|
32848
|
+
}), "Add");
|
32849
|
+
function SourceSelector({ currentSource, onSourceChange, availableSources, onAddLyrics }) {
|
32850
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { sx: { display: "flex", flexWrap: "wrap", gap: 0.3, alignItems: "center" }, children: [
|
32851
|
+
availableSources.map((source) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
32852
|
+
Button,
|
32853
|
+
{
|
32854
|
+
size: "small",
|
32855
|
+
variant: currentSource === source ? "contained" : "outlined",
|
32856
|
+
onClick: () => onSourceChange(source),
|
32857
|
+
sx: {
|
32858
|
+
mr: 0,
|
32859
|
+
py: 0.2,
|
32860
|
+
px: 0.8,
|
32861
|
+
minWidth: "auto",
|
32862
|
+
fontSize: "0.7rem",
|
32863
|
+
lineHeight: 1.2
|
32864
|
+
},
|
32865
|
+
children: source.charAt(0).toUpperCase() + source.slice(1)
|
32860
32866
|
},
|
32861
|
-
|
32862
|
-
|
32863
|
-
|
32864
|
-
|
32867
|
+
source
|
32868
|
+
)),
|
32869
|
+
onAddLyrics && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
32870
|
+
Button,
|
32871
|
+
{
|
32872
|
+
size: "small",
|
32873
|
+
variant: "outlined",
|
32874
|
+
onClick: onAddLyrics,
|
32875
|
+
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(AddIcon, { sx: { fontSize: "0.9rem" } }),
|
32876
|
+
sx: {
|
32877
|
+
mr: 0,
|
32878
|
+
py: 0.2,
|
32879
|
+
px: 0.8,
|
32880
|
+
minWidth: "auto",
|
32881
|
+
fontSize: "0.7rem",
|
32882
|
+
lineHeight: 1.2,
|
32883
|
+
"& .MuiButton-startIcon": {
|
32884
|
+
marginLeft: "-5px",
|
32885
|
+
marginRight: "1px",
|
32886
|
+
marginTop: "-1px"
|
32887
|
+
}
|
32888
|
+
},
|
32889
|
+
children: "New"
|
32890
|
+
}
|
32891
|
+
)
|
32892
|
+
] });
|
32865
32893
|
}
|
32866
32894
|
const HighlightedWord = styled$1("span")(
|
32867
32895
|
({ shouldFlash }) => ({
|
@@ -32922,7 +32950,11 @@ const WordComponent = React.memo(function Word({
|
|
32922
32950
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
32923
32951
|
/* @__PURE__ */ jsxRuntimeExports.jsx("strong", { children: "Corrected by:" }),
|
32924
32952
|
" ",
|
32925
|
-
correction.handler
|
32953
|
+
correction.handler,
|
32954
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
32955
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("strong", { children: "Source:" }),
|
32956
|
+
" ",
|
32957
|
+
correction.source
|
32926
32958
|
] });
|
32927
32959
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: tooltipContent, arrow: true, placement: "top", children: wordElement });
|
32928
32960
|
}
|
@@ -33186,7 +33218,8 @@ function HighlightedText({
|
|
33186
33218
|
return correction ? {
|
33187
33219
|
originalWord: correction.original_word,
|
33188
33220
|
handler: correction.handler,
|
33189
|
-
confidence: correction.confidence
|
33221
|
+
confidence: correction.confidence,
|
33222
|
+
source: correction.source
|
33190
33223
|
} : null;
|
33191
33224
|
})()
|
33192
33225
|
},
|
@@ -33215,7 +33248,8 @@ function HighlightedText({
|
|
33215
33248
|
const correctionInfo = correction ? {
|
33216
33249
|
originalWord: correction.original_word,
|
33217
33250
|
handler: correction.handler,
|
33218
|
-
confidence: correction.confidence
|
33251
|
+
confidence: correction.confidence,
|
33252
|
+
source: correction.source
|
33219
33253
|
} : null;
|
33220
33254
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, { children: [
|
33221
33255
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -33386,7 +33420,8 @@ function ReferenceView({
|
|
33386
33420
|
highlightInfo,
|
33387
33421
|
mode,
|
33388
33422
|
gaps,
|
33389
|
-
corrections
|
33423
|
+
corrections,
|
33424
|
+
onAddLyrics
|
33390
33425
|
}) {
|
33391
33426
|
var _a;
|
33392
33427
|
const availableSources = reactExports.useMemo(
|
@@ -33496,7 +33531,8 @@ function ReferenceView({
|
|
33496
33531
|
{
|
33497
33532
|
availableSources,
|
33498
33533
|
currentSource: effectiveCurrentSource,
|
33499
|
-
onSourceChange
|
33534
|
+
onSourceChange,
|
33535
|
+
onAddLyrics
|
33500
33536
|
}
|
33501
33537
|
)
|
33502
33538
|
] }),
|
@@ -34563,9 +34599,6 @@ const SplitIcon = createSvgIcon(/* @__PURE__ */ jsxRuntimeExports.jsx("path", {
|
|
34563
34599
|
const AutoFixHighIcon = createSvgIcon(/* @__PURE__ */ jsxRuntimeExports.jsx("path", {
|
34564
34600
|
d: "M7.5 5.6 10 7 8.6 4.5 10 2 7.5 3.4 5 2l1.4 2.5L5 7zm12 9.8L17 14l1.4 2.5L17 19l2.5-1.4L22 19l-1.4-2.5L22 14zM22 2l-2.5 1.4L17 2l1.4 2.5L17 7l2.5-1.4L22 7l-1.4-2.5zm-7.63 5.29a.996.996 0 0 0-1.41 0L1.29 18.96c-.39.39-.39 1.02 0 1.41l2.34 2.34c.39.39 1.02.39 1.41 0L16.7 11.05c.39-.39.39-1.02 0-1.41zm-1.03 5.49-2.12-2.12 2.44-2.44 2.12 2.12z"
|
34565
34601
|
}), "AutoFixHigh");
|
34566
|
-
const AddIcon = createSvgIcon(/* @__PURE__ */ jsxRuntimeExports.jsx("path", {
|
34567
|
-
d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
|
34568
|
-
}), "Add");
|
34569
34602
|
const MergeIcon = createSvgIcon(/* @__PURE__ */ jsxRuntimeExports.jsx("path", {
|
34570
34603
|
d: "M17 20.41 18.41 19 15 15.59 13.59 17zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5z"
|
34571
34604
|
}), "CallMerge");
|
@@ -35674,9 +35707,6 @@ const PauseIcon = createSvgIcon(/* @__PURE__ */ jsxRuntimeExports.jsx("path", {
|
|
35674
35707
|
const PlayArrowIcon = createSvgIcon(/* @__PURE__ */ jsxRuntimeExports.jsx("path", {
|
35675
35708
|
d: "M8 5v14l11-7z"
|
35676
35709
|
}), "PlayArrow");
|
35677
|
-
const TextSnippetIcon = createSvgIcon(/* @__PURE__ */ jsxRuntimeExports.jsx("path", {
|
35678
|
-
d: "m20.41 8.41-4.83-4.83c-.37-.37-.88-.58-1.41-.58H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.42M7 7h7v2H7zm10 10H7v-2h10zm0-4H7v-2h10z"
|
35679
|
-
}), "TextSnippet");
|
35680
35710
|
const normalizeWordForComparison = (word) => ({
|
35681
35711
|
text: word.text,
|
35682
35712
|
start_time: word.start_time ?? 0,
|
@@ -36435,7 +36465,6 @@ function Header({
|
|
36435
36465
|
onHandlerToggle,
|
36436
36466
|
isUpdatingHandlers,
|
36437
36467
|
onHandlerClick,
|
36438
|
-
onAddLyrics,
|
36439
36468
|
onFindReplace,
|
36440
36469
|
onEditAll
|
36441
36470
|
}) {
|
@@ -36581,71 +36610,58 @@ function Header({
|
|
36581
36610
|
}
|
36582
36611
|
) })
|
36583
36612
|
] }),
|
36584
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Paper, { sx: { p: 0.8, mb: 1 }, children: /* @__PURE__ */ jsxRuntimeExports.
|
36613
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Paper, { sx: { p: 0.8, mb: 1 }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { sx: {
|
36585
36614
|
display: "flex",
|
36586
36615
|
flexDirection: isMobile ? "column" : "row",
|
36587
36616
|
gap: 1,
|
36588
36617
|
alignItems: isMobile ? "flex-start" : "center",
|
36589
36618
|
justifyContent: "space-between",
|
36590
36619
|
width: "100%"
|
36620
|
+
}, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { sx: {
|
36621
|
+
display: "flex",
|
36622
|
+
gap: 1,
|
36623
|
+
flexDirection: isMobile ? "column" : "row",
|
36624
|
+
alignItems: isMobile ? "flex-start" : "center",
|
36625
|
+
height: "32px"
|
36591
36626
|
}, children: [
|
36592
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
36593
|
-
|
36594
|
-
|
36595
|
-
|
36596
|
-
|
36597
|
-
|
36598
|
-
|
36599
|
-
|
36600
|
-
|
36601
|
-
|
36602
|
-
|
36603
|
-
|
36604
|
-
|
36605
|
-
|
36606
|
-
|
36607
|
-
|
36608
|
-
|
36609
|
-
|
36610
|
-
|
36611
|
-
onClick: onFindReplace,
|
36612
|
-
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(FindReplaceIcon, {}),
|
36613
|
-
sx: { minWidth: "fit-content", height: "32px" },
|
36614
|
-
children: "Find/Replace"
|
36615
|
-
}
|
36616
|
-
),
|
36617
|
-
!isReadOnly && onEditAll && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
36618
|
-
Button,
|
36619
|
-
{
|
36620
|
-
variant: "outlined",
|
36621
|
-
size: "small",
|
36622
|
-
onClick: onEditAll,
|
36623
|
-
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(EditIcon, {}),
|
36624
|
-
sx: { minWidth: "fit-content", height: "32px" },
|
36625
|
-
children: "Edit All"
|
36626
|
-
}
|
36627
|
-
),
|
36628
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
36629
|
-
AudioPlayer,
|
36630
|
-
{
|
36631
|
-
apiClient,
|
36632
|
-
onTimeUpdate,
|
36633
|
-
audioHash
|
36634
|
-
}
|
36635
|
-
)
|
36636
|
-
] }),
|
36637
|
-
!isReadOnly && apiClient && onAddLyrics && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
36627
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
36628
|
+
ModeSelector,
|
36629
|
+
{
|
36630
|
+
effectiveMode,
|
36631
|
+
onChange: onModeChange
|
36632
|
+
}
|
36633
|
+
),
|
36634
|
+
!isReadOnly && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
36635
|
+
Button,
|
36636
|
+
{
|
36637
|
+
variant: "outlined",
|
36638
|
+
size: "small",
|
36639
|
+
onClick: onFindReplace,
|
36640
|
+
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(FindReplaceIcon, {}),
|
36641
|
+
sx: { minWidth: "fit-content", height: "32px" },
|
36642
|
+
children: "Find/Replace"
|
36643
|
+
}
|
36644
|
+
),
|
36645
|
+
!isReadOnly && onEditAll && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
36638
36646
|
Button,
|
36639
36647
|
{
|
36640
36648
|
variant: "outlined",
|
36641
36649
|
size: "small",
|
36642
|
-
onClick:
|
36643
|
-
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
36650
|
+
onClick: onEditAll,
|
36651
|
+
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(EditIcon, {}),
|
36644
36652
|
sx: { minWidth: "fit-content", height: "32px" },
|
36645
|
-
children: "
|
36653
|
+
children: "Edit All"
|
36654
|
+
}
|
36655
|
+
),
|
36656
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
36657
|
+
AudioPlayer,
|
36658
|
+
{
|
36659
|
+
apiClient,
|
36660
|
+
onTimeUpdate,
|
36661
|
+
audioHash
|
36646
36662
|
}
|
36647
36663
|
)
|
36648
|
-
] }) })
|
36664
|
+
] }) }) })
|
36649
36665
|
] });
|
36650
36666
|
}
|
36651
36667
|
function AddLyricsModal({
|
@@ -37119,7 +37135,8 @@ const MemoizedReferenceView = reactExports.memo(function MemoizedReferenceView2(
|
|
37119
37135
|
currentSource,
|
37120
37136
|
onSourceChange,
|
37121
37137
|
corrected_segments,
|
37122
|
-
corrections
|
37138
|
+
corrections,
|
37139
|
+
onAddLyrics
|
37123
37140
|
}) {
|
37124
37141
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
37125
37142
|
ReferenceView,
|
@@ -37135,7 +37152,8 @@ const MemoizedReferenceView = reactExports.memo(function MemoizedReferenceView2(
|
|
37135
37152
|
currentSource,
|
37136
37153
|
onSourceChange,
|
37137
37154
|
corrected_segments,
|
37138
|
-
corrections
|
37155
|
+
corrections,
|
37156
|
+
onAddLyrics
|
37139
37157
|
}
|
37140
37158
|
);
|
37141
37159
|
});
|
@@ -37152,7 +37170,6 @@ const MemoizedHeader = reactExports.memo(function MemoizedHeader2({
|
|
37152
37170
|
onHandlerToggle,
|
37153
37171
|
isUpdatingHandlers,
|
37154
37172
|
onHandlerClick,
|
37155
|
-
onAddLyrics,
|
37156
37173
|
onFindReplace,
|
37157
37174
|
onEditAll
|
37158
37175
|
}) {
|
@@ -37171,7 +37188,6 @@ const MemoizedHeader = reactExports.memo(function MemoizedHeader2({
|
|
37171
37188
|
onHandlerToggle,
|
37172
37189
|
isUpdatingHandlers,
|
37173
37190
|
onHandlerClick,
|
37174
|
-
onAddLyrics,
|
37175
37191
|
onFindReplace,
|
37176
37192
|
onEditAll
|
37177
37193
|
}
|
@@ -37706,7 +37722,8 @@ function LyricsAnalyzer({ data: initialData, onFileLoad, apiClient, isReadOnly,
|
|
37706
37722
|
currentSource,
|
37707
37723
|
onSourceChange: setCurrentSource,
|
37708
37724
|
corrected_segments: data.corrected_segments,
|
37709
|
-
corrections: data.corrections
|
37725
|
+
corrections: data.corrections,
|
37726
|
+
onAddLyrics: () => setIsAddLyricsModalOpen(true)
|
37710
37727
|
}
|
37711
37728
|
) })
|
37712
37729
|
] }),
|
@@ -38141,4 +38158,4 @@ ReactDOM$1.createRoot(document.getElementById("root")).render(
|
|
38141
38158
|
/* @__PURE__ */ jsxRuntimeExports.jsx(App, {})
|
38142
38159
|
] })
|
38143
38160
|
);
|
38144
|
-
//# sourceMappingURL=index-
|
38161
|
+
//# sourceMappingURL=index-BXOpmKq-.js.map
|