@moises.ai/design-system 4.18.14 → 4.18.15
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.js
CHANGED
|
@@ -8534,12 +8534,12 @@ const nb = ({
|
|
|
8534
8534
|
E.preventDefault(), E.stopPropagation(), y(!k);
|
|
8535
8535
|
}, [k]), N = J((E) => {
|
|
8536
8536
|
E.stopPropagation();
|
|
8537
|
-
|
|
8537
|
+
let B = [];
|
|
8538
|
+
o === "voice" ? B = i.filter((x) => {
|
|
8538
8539
|
var O;
|
|
8539
8540
|
return !x.loading && ((O = x.transfers) == null ? void 0 : O.length) > 0;
|
|
8540
|
-
});
|
|
8541
|
-
|
|
8542
|
-
}, [g, i]);
|
|
8541
|
+
}) : B = i.filter((x) => !x.loading && x.audioUrl), g == null || g(B);
|
|
8542
|
+
}, [g, i, o]);
|
|
8543
8543
|
return /* @__PURE__ */ v(
|
|
8544
8544
|
S,
|
|
8545
8545
|
{
|
|
@@ -8832,7 +8832,7 @@ const nb = ({
|
|
|
8832
8832
|
}
|
|
8833
8833
|
),
|
|
8834
8834
|
(f || h) && w && /* @__PURE__ */ a(S, { align: "center", justify: "center", pl: "2", children: /* @__PURE__ */ a(Sn, {}) }),
|
|
8835
|
-
!f && !h ? /* @__PURE__ */ a(S, { align: "center", justify: "center",
|
|
8835
|
+
!f && !h ? /* @__PURE__ */ a(S, { align: "center", justify: "center", children: /* @__PURE__ */ a(
|
|
8836
8836
|
Oe,
|
|
8837
8837
|
{
|
|
8838
8838
|
variant: "soft",
|
package/package.json
CHANGED
|
@@ -53,9 +53,14 @@ const ProjectItem = ({
|
|
|
53
53
|
|
|
54
54
|
const handleInsertAllTracks = useCallback((e) => {
|
|
55
55
|
e.stopPropagation()
|
|
56
|
-
|
|
56
|
+
let tracksFiltered = []
|
|
57
|
+
if (type === 'voice') {
|
|
58
|
+
tracksFiltered = allTracks.filter((track) => !track.loading && track.transfers?.length > 0)
|
|
59
|
+
} else {
|
|
60
|
+
tracksFiltered = allTracks.filter((track) => !track.loading && track.audioUrl)
|
|
61
|
+
}
|
|
57
62
|
onInsertAllTracks?.(tracksFiltered)
|
|
58
|
-
}, [onInsertAllTracks, allTracks])
|
|
63
|
+
}, [onInsertAllTracks, allTracks, type])
|
|
59
64
|
|
|
60
65
|
return (
|
|
61
66
|
<Flex
|