@layers-app/shared 0.4.2 → 0.4.3
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/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +15 -16
- package/dist/components/EmojiPicker/EmojiPanel.js +6 -6
- package/dist/components/EmojiPicker/IconsPanel.js +11 -11
- package/dist/components/FormViewer/helpers/steps.d.ts.map +1 -1
- package/dist/components/FormViewer/helpers/steps.js +11 -11
- package/dist/components/MusicPlayerBar/MusicPlayerBar.d.ts +3 -0
- package/dist/components/MusicPlayerBar/MusicPlayerBar.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/MusicPlayerBar.js +239 -0
- package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +49 -0
- package/dist/components/MusicPlayerBar/components/HiddenAudio.d.ts +10 -0
- package/dist/components/MusicPlayerBar/components/HiddenAudio.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/components/HiddenAudio.js +35 -0
- package/dist/components/MusicPlayerBar/components/HoverActions.d.ts +20 -0
- package/dist/components/MusicPlayerBar/components/HoverActions.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/components/HoverActions.js +88 -0
- package/dist/components/MusicPlayerBar/components/MobileActionsDrawer.d.ts +18 -0
- package/dist/components/MusicPlayerBar/components/MobileActionsDrawer.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/components/MobileActionsDrawer.js +91 -0
- package/dist/components/MusicPlayerBar/components/MobileSpeedDrawer.d.ts +11 -0
- package/dist/components/MusicPlayerBar/components/MobileSpeedDrawer.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/components/MobileSpeedDrawer.js +38 -0
- package/dist/components/MusicPlayerBar/components/MobileTailControls.d.ts +11 -0
- package/dist/components/MusicPlayerBar/components/MobileTailControls.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/components/MobileTailControls.js +50 -0
- package/dist/components/MusicPlayerBar/components/PlayButton.d.ts +9 -0
- package/dist/components/MusicPlayerBar/components/PlayButton.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/components/PlayButton.js +28 -0
- package/dist/components/MusicPlayerBar/components/SpeedPopover.d.ts +11 -0
- package/dist/components/MusicPlayerBar/components/SpeedPopover.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/components/SpeedPopover.js +90 -0
- package/dist/components/MusicPlayerBar/components/Timer.d.ts +8 -0
- package/dist/components/MusicPlayerBar/components/Timer.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/components/Timer.js +25 -0
- package/dist/components/MusicPlayerBar/components/VolumePopover.d.ts +15 -0
- package/dist/components/MusicPlayerBar/components/VolumePopover.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/components/VolumePopover.js +86 -0
- package/dist/components/MusicPlayerBar/components/Waveform.d.ts +12 -0
- package/dist/components/MusicPlayerBar/components/Waveform.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/components/Waveform.js +47 -0
- package/dist/components/MusicPlayerBar/constants.d.ts +19 -0
- package/dist/components/MusicPlayerBar/constants.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/constants.js +21 -0
- package/dist/components/MusicPlayerBar/helpers.d.ts +11 -0
- package/dist/components/MusicPlayerBar/helpers.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/helpers.js +44 -0
- package/dist/components/MusicPlayerBar/hooks/useAudioPlayback.d.ts +23 -0
- package/dist/components/MusicPlayerBar/hooks/useAudioPlayback.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/hooks/useAudioPlayback.js +49 -0
- package/dist/components/MusicPlayerBar/hooks/useCopyFeedback.d.ts +6 -0
- package/dist/components/MusicPlayerBar/hooks/useCopyFeedback.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/hooks/useCopyFeedback.js +17 -0
- package/dist/components/MusicPlayerBar/hooks/useHoverPopover.d.ts +9 -0
- package/dist/components/MusicPlayerBar/hooks/useHoverPopover.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/hooks/useHoverPopover.js +18 -0
- package/dist/components/MusicPlayerBar/hooks/useMusicPlayerLabels.d.ts +3 -0
- package/dist/components/MusicPlayerBar/hooks/useMusicPlayerLabels.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/hooks/useMusicPlayerLabels.js +26 -0
- package/dist/components/MusicPlayerBar/hooks/useWaveform.d.ts +7 -0
- package/dist/components/MusicPlayerBar/hooks/useWaveform.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/hooks/useWaveform.js +28 -0
- package/dist/components/MusicPlayerBar/index.d.ts +3 -0
- package/dist/components/MusicPlayerBar/index.d.ts.map +1 -0
- package/dist/components/MusicPlayerBar/types.d.ts +33 -0
- package/dist/components/MusicPlayerBar/types.d.ts.map +1 -0
- package/dist/components/NavbarResizer/NavbarResizer.js +1 -1
- package/dist/components/OnboardingTour/OnboardingTourFooter.js +1 -1
- package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
- package/dist/components/table/hooks/useColumnsResizing.js +1 -1
- package/dist/helpers/isNoAccessError.d.ts +2 -0
- package/dist/helpers/isNoAccessError.d.ts.map +1 -0
- package/dist/helpers/isNoAccessError.js +7 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +109 -109
- package/dist/lang/locales/ui_en.json.js +6 -4
- package/dist/lang/locales/ui_es.json.js +8 -6
- package/dist/lang/locales/ui_ru.json.js +9 -7
- package/package.json +2 -2
- package/dist/assets/images/person.png.js +0 -4
- package/dist/assets/images/person2.png.js +0 -4
- package/dist/assets/images/person3.png.js +0 -4
- package/dist/assets/images/person4.png.js +0 -4
- package/dist/components/OnBoarding/OnBoardingPage.d.ts +0 -2
- package/dist/components/OnBoarding/OnBoardingPage.d.ts.map +0 -1
- package/dist/components/OnBoarding/OnBoardingPage.js +0 -80
- package/dist/components/OnBoarding/ProjectBoard.d.ts +0 -5
- package/dist/components/OnBoarding/ProjectBoard.d.ts.map +0 -1
- package/dist/components/OnBoarding/ProjectBoard.js +0 -141
- package/dist/components/OnBoarding/StepsNavBar.d.ts +0 -5
- package/dist/components/OnBoarding/StepsNavBar.d.ts.map +0 -1
- package/dist/components/OnBoarding/StepsNavBar.js +0 -21
- package/dist/components/OnBoarding/index.d.ts +0 -2
- package/dist/components/OnBoarding/index.d.ts.map +0 -1
- package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.d.ts +0 -3
- package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.d.ts.map +0 -1
- package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.js +0 -42
- package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.d.ts +0 -3
- package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.d.ts.map +0 -1
- package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.js +0 -51
- package/dist/components/OnBoarding/steps/CreateFirstProject.d.ts +0 -3
- package/dist/components/OnBoarding/steps/CreateFirstProject.d.ts.map +0 -1
- package/dist/components/OnBoarding/steps/CreateFirstProject.js +0 -45
- package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.d.ts +0 -3
- package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.d.ts.map +0 -1
- package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.js +0 -42
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusBadge.d.ts +0 -9
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusBadge.d.ts.map +0 -1
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusBadge.js +0 -22
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.d.ts +0 -3
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.d.ts.map +0 -1
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.js +0 -217
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.d.ts +0 -3
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.d.ts.map +0 -1
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.js +0 -16
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.d.ts +0 -3
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.d.ts.map +0 -1
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.js +0 -56
- package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.d.ts +0 -3
- package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.d.ts.map +0 -1
- package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.js +0 -272
- package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +0 -9
- package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.d.ts +0 -3
- package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.d.ts.map +0 -1
- package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.js +0 -86
- package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.d.ts +0 -3
- package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.d.ts.map +0 -1
- package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.js +0 -26
- package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.d.ts +0 -9
- package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.d.ts.map +0 -1
- package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.js +0 -61
- package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.d.ts +0 -3
- package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.d.ts.map +0 -1
- package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.js +0 -42
- package/dist/components/OnBoarding/steps/StartedStep.d.ts +0 -3
- package/dist/components/OnBoarding/steps/StartedStep.d.ts.map +0 -1
- package/dist/components/OnBoarding/steps/StartedStep.js +0 -71
- package/dist/components/OnBoarding/steps/Wrapper.d.ts +0 -15
- package/dist/components/OnBoarding/steps/Wrapper.d.ts.map +0 -1
- package/dist/components/OnBoarding/steps/Wrapper.js +0 -49
- package/dist/components/OnBoarding/steps/styles.module.css.js +0 -17
- package/dist/components/OnBoarding/styles.module.css.js +0 -15
- package/dist/store/onboarding.d.ts +0 -30
- package/dist/store/onboarding.d.ts.map +0 -1
- package/dist/store/onboarding.js +0 -53
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelpMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/AppContainer/components/menus/HelpMenu/HelpMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HelpMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/AppContainer/components/menus/HelpMenu/HelpMenu.tsx"],"names":[],"mappings":"AAmCA,eAAO,MAAM,QAAQ,+CA2PpB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as I } from "react/jsx-runtime";
|
|
2
2
|
import { useState as A, useRef as $, useMemo as B, useCallback as h, useEffect as R } from "react";
|
|
3
3
|
import { useTranslation as _ } from "react-i18next";
|
|
4
|
-
import { DiscountTag02Icon as
|
|
4
|
+
import { DiscountTag02Icon as U, CustomerSupportIcon as H, Book02Icon as N, Structure02Icon as O, BookOpen01Icon as W, LicenseIcon as G } from "@hugeicons/core-free-icons";
|
|
5
5
|
import { HugeiconsIcon as s } from "@hugeicons/react";
|
|
6
6
|
import { Stack as K, Button as u, Menu as i, Popover as g, UnstyledButton as Y, Group as q, Text as S } from "@mantine/core";
|
|
7
7
|
import { IconChevronRight as J } from "@tabler/icons-react";
|
|
@@ -15,9 +15,8 @@ import { usePlatform as te } from "../../../../../hooks/usePlatform.js";
|
|
|
15
15
|
import { resetFeatureFlow as oe } from "../../../../../store/featureProgress.js";
|
|
16
16
|
import { useAppContainerDataStore as re } from "../../../hooks/useAppContainerDataStore.js";
|
|
17
17
|
import { WhatsNew as ie } from "./WhatsNew.js";
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
const ze = () => {
|
|
18
|
+
import { FeatureProgressKey as ne } from "../../../../FeatureProgress/constants.js";
|
|
19
|
+
const Me = () => {
|
|
21
20
|
const { t } = _("helpMenu"), y = te(), [M, f] = A(!1), c = $(null), T = B(() => {
|
|
22
21
|
const r = Z().analytics;
|
|
23
22
|
return r?.intercomEnabled !== !1 && !!r?.intercomAppId;
|
|
@@ -30,7 +29,7 @@ const ze = () => {
|
|
|
30
29
|
updatedAt: P,
|
|
31
30
|
privacyPolicyLink: x,
|
|
32
31
|
userAgreementLink: F,
|
|
33
|
-
whatsNewItems:
|
|
32
|
+
whatsNewItems: v
|
|
34
33
|
} = re(), j = () => {
|
|
35
34
|
m();
|
|
36
35
|
const r = new URL(window.location.href);
|
|
@@ -38,11 +37,11 @@ const ze = () => {
|
|
|
38
37
|
window.history.state,
|
|
39
38
|
"",
|
|
40
39
|
`${r.pathname}${r.search}${r.hash}`
|
|
41
|
-
)),
|
|
42
|
-
const p = window.location.pathname.split("/").filter(Boolean), L = p[0],
|
|
40
|
+
)), oe(ne.GraphStart);
|
|
41
|
+
const p = window.location.pathname.split("/").filter(Boolean), L = p[0], b = p[1] === "pages" ? p[2] : void 0, l = L || C.active.workspaceId;
|
|
43
42
|
if (l) {
|
|
44
|
-
if (
|
|
45
|
-
window.location.assign(`/${l}/pages/${
|
|
43
|
+
if (b) {
|
|
44
|
+
window.location.assign(`/${l}/pages/${b}`);
|
|
46
45
|
return;
|
|
47
46
|
}
|
|
48
47
|
const k = D?.(l);
|
|
@@ -116,7 +115,7 @@ const ze = () => {
|
|
|
116
115
|
onClick: () => {
|
|
117
116
|
w(), z(t("contactSalesMessage"));
|
|
118
117
|
},
|
|
119
|
-
leftSection: /* @__PURE__ */ e(s, { icon:
|
|
118
|
+
leftSection: /* @__PURE__ */ e(s, { icon: U, size: 16 }),
|
|
120
119
|
children: t("contactSales")
|
|
121
120
|
}
|
|
122
121
|
),
|
|
@@ -124,7 +123,7 @@ const ze = () => {
|
|
|
124
123
|
i.Item,
|
|
125
124
|
{
|
|
126
125
|
onClick: w,
|
|
127
|
-
leftSection: /* @__PURE__ */ e(s, { icon:
|
|
126
|
+
leftSection: /* @__PURE__ */ e(s, { icon: H, size: 16 }),
|
|
128
127
|
children: t("getSupport")
|
|
129
128
|
}
|
|
130
129
|
),
|
|
@@ -143,7 +142,7 @@ const ze = () => {
|
|
|
143
142
|
/* @__PURE__ */ e(g.Target, { children: /* @__PURE__ */ e("div", { onMouseEnter: d, onMouseLeave: m, children: /* @__PURE__ */ e(
|
|
144
143
|
i.Item,
|
|
145
144
|
{
|
|
146
|
-
leftSection: /* @__PURE__ */ e(s, { icon:
|
|
145
|
+
leftSection: /* @__PURE__ */ e(s, { icon: N, size: 16 }),
|
|
147
146
|
rightSection: /* @__PURE__ */ e(J, { size: 14 }),
|
|
148
147
|
onClick: (r) => {
|
|
149
148
|
r.preventDefault(), d();
|
|
@@ -175,7 +174,7 @@ const ze = () => {
|
|
|
175
174
|
/* @__PURE__ */ e(
|
|
176
175
|
s,
|
|
177
176
|
{
|
|
178
|
-
icon:
|
|
177
|
+
icon: O,
|
|
179
178
|
size: 16,
|
|
180
179
|
color: "var(--mantine-color-dimmed)"
|
|
181
180
|
}
|
|
@@ -212,8 +211,8 @@ const ze = () => {
|
|
|
212
211
|
}
|
|
213
212
|
),
|
|
214
213
|
/* @__PURE__ */ e(i.Divider, {}),
|
|
215
|
-
!!
|
|
216
|
-
/* @__PURE__ */ e(ie, { items:
|
|
214
|
+
!!v?.length && /* @__PURE__ */ a(I, { children: [
|
|
215
|
+
/* @__PURE__ */ e(ie, { items: v }),
|
|
217
216
|
/* @__PURE__ */ e(i.Divider, {})
|
|
218
217
|
] }),
|
|
219
218
|
/* @__PURE__ */ a(S, { size: "xs", c: "dimmed", children: [
|
|
@@ -233,5 +232,5 @@ const ze = () => {
|
|
|
233
232
|
] });
|
|
234
233
|
};
|
|
235
234
|
export {
|
|
236
|
-
|
|
235
|
+
Me as HelpMenu
|
|
237
236
|
};
|
|
@@ -3,8 +3,8 @@ import { useState as d, useRef as p, useEffect as R, useCallback as K } from "re
|
|
|
3
3
|
import { useTranslation as L } from "react-i18next";
|
|
4
4
|
import { Search01Icon as U, ShuffleIcon as V, Clock01Icon as W, SmileIcon as X, Pizza01Icon as Z, FootballIcon as _, Airplane01Icon as ee, BulbIcon as te, Asterisk02Icon as oe, Flag02Icon as re } from "@hugeicons/core-free-icons";
|
|
5
5
|
import { HugeiconsIcon as c } from "@hugeicons/react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { useEvent as ne } from "@layers-app/draggable-ui";
|
|
7
|
+
import { Stack as v, FocusTrap as ie, Flex as z, TextInput as ce, Tooltip as se, ActionIcon as A, Paper as F, Text as q, SimpleGrid as N } from "@mantine/core";
|
|
8
8
|
import ae from "fuse.js";
|
|
9
9
|
import le from "../../assets/svg/dog.svg.js";
|
|
10
10
|
import { pickRandomEmoji as fe } from "../../helpers/pickRandomEmoji.js";
|
|
@@ -80,7 +80,7 @@ const he = [
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
[a]
|
|
83
|
-
), D =
|
|
83
|
+
), D = ne((e) => {
|
|
84
84
|
const o = e.currentTarget.getAttribute("data-icon");
|
|
85
85
|
o && (C?.(
|
|
86
86
|
de.stringify({
|
|
@@ -114,7 +114,7 @@ const he = [
|
|
|
114
114
|
}), r !== x.current && (x.current = r, k(r));
|
|
115
115
|
}, J = typeof m == "string";
|
|
116
116
|
return /* @__PURE__ */ y(v, { gap: 0, h: "100%", children: [
|
|
117
|
-
/* @__PURE__ */ t(
|
|
117
|
+
/* @__PURE__ */ t(ie, { active: !0, children: /* @__PURE__ */ y(
|
|
118
118
|
z,
|
|
119
119
|
{
|
|
120
120
|
my: "sm",
|
|
@@ -125,7 +125,7 @@ const he = [
|
|
|
125
125
|
h: 38,
|
|
126
126
|
children: [
|
|
127
127
|
/* @__PURE__ */ t(
|
|
128
|
-
|
|
128
|
+
ce,
|
|
129
129
|
{
|
|
130
130
|
leftSection: /* @__PURE__ */ t(c, { size: 16, icon: U }),
|
|
131
131
|
value: S,
|
|
@@ -142,7 +142,7 @@ const he = [
|
|
|
142
142
|
radius: "var(--mantine-radius-default)"
|
|
143
143
|
}
|
|
144
144
|
),
|
|
145
|
-
/* @__PURE__ */ t(
|
|
145
|
+
/* @__PURE__ */ t(se, { withArrow: !0, label: u?.random || G("random"), children: /* @__PURE__ */ t(
|
|
146
146
|
A,
|
|
147
147
|
{
|
|
148
148
|
h: 36,
|
|
@@ -3,8 +3,8 @@ import { memo as M, useState as x, useEffect as U, useCallback as V, useMemo as
|
|
|
3
3
|
import { useTranslation as G } from "react-i18next";
|
|
4
4
|
import { Search01Icon as Q, ShuffleIcon as Y } from "@hugeicons/core-free-icons";
|
|
5
5
|
import { HugeiconsIcon as L } from "@hugeicons/react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { useEvent as _ } from "@layers-app/draggable-ui";
|
|
7
|
+
import { useMantineTheme as J, parseThemeColor as K, darken as W, Stack as y, Text as b, Flex as z, FocusTrap as X, TextInput as Z, Tooltip as ee, ActionIcon as oe, Box as te, Paper as E, SimpleGrid as N } from "@mantine/core";
|
|
8
8
|
import { groupBy as re } from "lodash-es";
|
|
9
9
|
import { DEFAULT_VALUES as ie } from "../../constants.js";
|
|
10
10
|
import { ColorPicker as ne } from "../ColorPicker/ColorPicker.js";
|
|
@@ -31,7 +31,7 @@ const Ce = M(
|
|
|
31
31
|
project: r,
|
|
32
32
|
keepOpenOnRandom: C = !1
|
|
33
33
|
}) => {
|
|
34
|
-
const w =
|
|
34
|
+
const w = J(), [f, R] = x(""), { t: k } = G("ui"), [P, $] = x(
|
|
35
35
|
[]
|
|
36
36
|
);
|
|
37
37
|
U(() => {
|
|
@@ -57,7 +57,7 @@ const Ce = M(
|
|
|
57
57
|
S(v.map((d) => d.n));
|
|
58
58
|
},
|
|
59
59
|
[r]
|
|
60
|
-
), i = I.parse(u), g =
|
|
60
|
+
), i = I.parse(u), g = _((o) => {
|
|
61
61
|
const t = o.currentTarget.getAttribute("data-icon");
|
|
62
62
|
t && (l?.(
|
|
63
63
|
I.stringify({
|
|
@@ -66,7 +66,7 @@ const Ce = M(
|
|
|
66
66
|
type: i?.type || A.FILLED
|
|
67
67
|
})
|
|
68
68
|
), a || p());
|
|
69
|
-
}), n =
|
|
69
|
+
}), n = K({
|
|
70
70
|
color: i?.color || ie.COLORS[0],
|
|
71
71
|
theme: w
|
|
72
72
|
}), O = j(() => n.isThemeColor ? {
|
|
@@ -74,7 +74,7 @@ const Ce = M(
|
|
|
74
74
|
"--icon-color-hover": `var(--mantine-color-${n.color}-filled-hover)`
|
|
75
75
|
} : {
|
|
76
76
|
"--icon-color": n.value,
|
|
77
|
-
"--icon-color-hover":
|
|
77
|
+
"--icon-color-hover": W(n.value, 0.2)
|
|
78
78
|
}, [n]), q = async () => {
|
|
79
79
|
const o = await ae(r);
|
|
80
80
|
S([]), l?.(I.stringify({ icon: o, color: i?.color })), !a && !C && p();
|
|
@@ -112,8 +112,8 @@ const Ce = M(
|
|
|
112
112
|
)
|
|
113
113
|
] }),
|
|
114
114
|
/* @__PURE__ */ m(z, { w: "100%", justify: "space-between", gap: 4, px: 8, h: 38, children: [
|
|
115
|
-
/* @__PURE__ */ e(
|
|
116
|
-
|
|
115
|
+
/* @__PURE__ */ e(X, { active: !0, children: /* @__PURE__ */ e(
|
|
116
|
+
Z,
|
|
117
117
|
{
|
|
118
118
|
leftSection: /* @__PURE__ */ e(L, { size: 16, icon: Q }),
|
|
119
119
|
value: f,
|
|
@@ -130,8 +130,8 @@ const Ce = M(
|
|
|
130
130
|
radius: "var(--mantine-radius-default)"
|
|
131
131
|
}
|
|
132
132
|
) }),
|
|
133
|
-
/* @__PURE__ */ e(
|
|
134
|
-
|
|
133
|
+
/* @__PURE__ */ e(ee, { withArrow: !0, label: c?.random || k("random"), children: /* @__PURE__ */ e(
|
|
134
|
+
oe,
|
|
135
135
|
{
|
|
136
136
|
h: 36,
|
|
137
137
|
w: 36,
|
|
@@ -150,7 +150,7 @@ const Ce = M(
|
|
|
150
150
|
}
|
|
151
151
|
) })
|
|
152
152
|
] }),
|
|
153
|
-
/* @__PURE__ */ e(
|
|
153
|
+
/* @__PURE__ */ e(te, { h: "100%", pl: 8, pt: 4, style: O, children: /* @__PURE__ */ e(
|
|
154
154
|
y,
|
|
155
155
|
{
|
|
156
156
|
mah: "210px",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../../src/components/FormViewer/helpers/steps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,eAAO,MAAM,YAAY,GAAI,OAAO,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../../src/components/FormViewer/helpers/steps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,eAAO,MAAM,YAAY,GAAI,OAAO,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aACuB,CAAC;AAEtE,eAAO,MAAM,mBAAmB,iBAAiB,CAAC;AAClD,eAAO,MAAM,qBAAqB,mBAAmB,CAAC;AAEtD,eAAO,MAAM,mBAAmB,GAAI,GAAG,SAAS,KAAG,QAkBlD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,GAAG,SAAS,KAAG,QAoBhD,CAAC;AAEF,eAAO,MAAM,WAAW,IAAI,CAAC;AAC7B,eAAO,MAAM,mBAAmB,IAAI,CAAC;AACrC,eAAO,MAAM,WAAW,OAAO,CAAC;AAChC,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAE5C,eAAO,MAAM,wBAAwB,0BAA0B,CAAC;AAChE,eAAO,MAAM,sBAAsB,wBAAwB,CAAC;AAE5D,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,eAAO,MAAM,yBAAyB,GAAI,GAAG,SAAS,WACE,CAAC;AAEzD,eAAO,MAAM,WAAW,cAAiC,CAAC;AAE1D,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,kBAAkB,MAAM,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { randomId as o } from "@mantine/hooks";
|
|
2
2
|
import { brand as r } from "../../../config/brand.js";
|
|
3
|
-
const c = (t) => t.find((n) => n.isStart) || t.at(0), T = "__end_step__", s = "__start_step__",
|
|
3
|
+
const c = (t) => t.find((n) => n.isStart) || t.filter((n) => !n.isEnd).at(0), T = "__end_step__", s = "__start_step__", E = (t) => ({
|
|
4
4
|
id: s,
|
|
5
5
|
trigger: "",
|
|
6
6
|
isStart: !0,
|
|
@@ -16,7 +16,7 @@ const c = (t) => t.find((n) => n.isStart) || t.at(0), T = "__end_step__", s = "_
|
|
|
16
16
|
buttonIcon: "i=player-play"
|
|
17
17
|
}
|
|
18
18
|
]
|
|
19
|
-
}),
|
|
19
|
+
}), I = (t) => ({
|
|
20
20
|
id: e(),
|
|
21
21
|
trigger: "",
|
|
22
22
|
isEnd: !0,
|
|
@@ -34,23 +34,23 @@ const c = (t) => t.find((n) => n.isStart) || t.at(0), T = "__end_step__", s = "_
|
|
|
34
34
|
theme: {
|
|
35
35
|
align: "center"
|
|
36
36
|
}
|
|
37
|
-
}),
|
|
38
|
-
`), e = () => o().split("-")[1],
|
|
37
|
+
}), d = 0, D = 1, a = 9999, p = 99, l = "CREATE_CONDITION_FORM", O = "EDIT_CONDITION_FORM", S = 20, N = (t) => [1, 2, 3].map((n) => t("option") + " " + n).join(`
|
|
38
|
+
`), e = () => o().split("-")[1], f = 100, u = 100;
|
|
39
39
|
export {
|
|
40
40
|
l as CREATE_CONDITION_FORM_ID,
|
|
41
41
|
T as DEFAULT_END_STEP_ID,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
a as DEFAULT_MAX,
|
|
43
|
+
f as DEFAULT_MEDIA_BRIGHTNESS,
|
|
44
|
+
u as DEFAULT_MEDIA_SIZE,
|
|
45
|
+
d as DEFAULT_MIN,
|
|
46
|
+
D as DEFAULT_OPTIONS_MIN,
|
|
47
47
|
p as DEFAULT_OPTION_MAX_LENGTH,
|
|
48
48
|
s as DEFAULT_START_STEP_ID,
|
|
49
49
|
O as EDIT_CONDITION_FORM_ID,
|
|
50
50
|
S as MAX_OPTIONS_COUNT,
|
|
51
51
|
N as getDefaultDropdownOptions,
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
I as getDefaultEndStep,
|
|
53
|
+
E as getDefaultStartStep,
|
|
54
54
|
c as getFirstStep,
|
|
55
55
|
e as getRandomId
|
|
56
56
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { MusicPlayerBarProps } from './types';
|
|
2
|
+
export declare function MusicPlayerBar({ src, duration: durationProp, playbackRates, initialVolume, waveformHeights, disable, showDelete, showDownload, showCopyLink, onDelete, onDownload, onCopyLink, onCopyError, extraActions, }: MusicPlayerBarProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=MusicPlayerBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MusicPlayerBar.d.ts","sourceRoot":"","sources":["../../../src/components/MusicPlayerBar/MusicPlayerBar.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAInD,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,QAAQ,EAAE,YAAY,EACtB,aAA6B,EAC7B,aAAiB,EACjB,eAAe,EACf,OAAe,EACf,UAAiB,EACjB,YAAmB,EACnB,YAAmB,EACnB,QAAQ,EACR,UAAU,EACV,UAAU,EACV,WAAW,EACX,YAAY,GACb,EAAE,mBAAmB,2CA+OrB"}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { jsxs as p, Fragment as Z, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as a } from "react";
|
|
3
|
+
import { useMediaQuery as O, useDisclosure as x } from "@mantine/hooks";
|
|
4
|
+
import { HiddenAudio as ee } from "./components/HiddenAudio.js";
|
|
5
|
+
import { HoverActions as oe } from "./components/HoverActions.js";
|
|
6
|
+
import { MobileActionsDrawer as te } from "./components/MobileActionsDrawer.js";
|
|
7
|
+
import { MobileSpeedDrawer as re } from "./components/MobileSpeedDrawer.js";
|
|
8
|
+
import { MobileTailControls as ae } from "./components/MobileTailControls.js";
|
|
9
|
+
import { PlayButton as ne } from "./components/PlayButton.js";
|
|
10
|
+
import { SpeedPopover as le } from "./components/SpeedPopover.js";
|
|
11
|
+
import { Timer as ie } from "./components/Timer.js";
|
|
12
|
+
import { VolumePopover as de } from "./components/VolumePopover.js";
|
|
13
|
+
import { Waveform as se } from "./components/Waveform.js";
|
|
14
|
+
import { TOUCH_DEVICE_QUERY as pe, TOUCH_TABLET_QUERY as ce, HOVER_CAPABLE_QUERY as me, DEFAULT_RATES as ue, SPEED_POPOVER_CLOSE_DELAY_MS as fe, SPEED_POPOVER_OPEN_DELAY_MS as ve, VOLUME_POPOVER_CLOSE_DELAY_MS as be, VOLUME_POPOVER_OPEN_DELAY_MS as Le } from "./constants.js";
|
|
15
|
+
import { downloadByUrl as Ee, resolveDownloadFileName as De } from "./helpers.js";
|
|
16
|
+
import { useAudioPlayback as he } from "./hooks/useAudioPlayback.js";
|
|
17
|
+
import { useCopyFeedback as Pe } from "./hooks/useCopyFeedback.js";
|
|
18
|
+
import { useHoverPopover as B } from "./hooks/useHoverPopover.js";
|
|
19
|
+
import { useMusicPlayerLabels as Se } from "./hooks/useMusicPlayerLabels.js";
|
|
20
|
+
import { useWaveform as Te } from "./hooks/useWaveform.js";
|
|
21
|
+
import c from "./MusicPlayerBar.module.css.js";
|
|
22
|
+
function We({
|
|
23
|
+
src: n,
|
|
24
|
+
duration: H,
|
|
25
|
+
playbackRates: i = ue,
|
|
26
|
+
initialVolume: N = 1,
|
|
27
|
+
waveformHeights: Y,
|
|
28
|
+
disable: m = !1,
|
|
29
|
+
showDelete: u = !0,
|
|
30
|
+
showDownload: f = !0,
|
|
31
|
+
showCopyLink: v = !0,
|
|
32
|
+
onDelete: b,
|
|
33
|
+
onDownload: L,
|
|
34
|
+
onCopyLink: _,
|
|
35
|
+
onCopyError: C,
|
|
36
|
+
extraActions: y
|
|
37
|
+
}) {
|
|
38
|
+
const o = Se(), l = O(pe, !1), I = O(ce, !1), F = O(me, !0), e = he({
|
|
39
|
+
durationProp: H,
|
|
40
|
+
initialVolume: N,
|
|
41
|
+
playbackRates: i
|
|
42
|
+
}), E = Te(Y), d = B(
|
|
43
|
+
ve,
|
|
44
|
+
fe
|
|
45
|
+
), D = B(
|
|
46
|
+
Le,
|
|
47
|
+
be
|
|
48
|
+
), { linkCopied: g, markCopied: A } = Pe(), [
|
|
49
|
+
Q,
|
|
50
|
+
{ open: M, close: h }
|
|
51
|
+
] = x(!1), [
|
|
52
|
+
j,
|
|
53
|
+
{ open: w, close: P }
|
|
54
|
+
] = x(!1), W = a(
|
|
55
|
+
(t) => {
|
|
56
|
+
const s = e.audioRef.current;
|
|
57
|
+
if (!s || !e.duration) return;
|
|
58
|
+
const U = t * e.duration;
|
|
59
|
+
s.currentTime = U, e.setCurrentTime(U);
|
|
60
|
+
},
|
|
61
|
+
[e]
|
|
62
|
+
), $ = a(
|
|
63
|
+
(t) => {
|
|
64
|
+
e.selectRate(t), d.setOpened(!1);
|
|
65
|
+
},
|
|
66
|
+
[e, d]
|
|
67
|
+
), R = a(
|
|
68
|
+
(t) => {
|
|
69
|
+
if (t.stopPropagation(), t.preventDefault(), L) {
|
|
70
|
+
L();
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
Ee(n, De(n));
|
|
74
|
+
},
|
|
75
|
+
[L, n]
|
|
76
|
+
), k = a(
|
|
77
|
+
(t) => {
|
|
78
|
+
t.stopPropagation(), t.preventDefault();
|
|
79
|
+
const s = _ ?? (() => navigator.clipboard.writeText(n));
|
|
80
|
+
Promise.resolve(s()).then(
|
|
81
|
+
() => A(),
|
|
82
|
+
() => C?.()
|
|
83
|
+
);
|
|
84
|
+
},
|
|
85
|
+
[_, C, n, A]
|
|
86
|
+
), V = a(() => {
|
|
87
|
+
b?.();
|
|
88
|
+
}, [b]), q = a(() => {
|
|
89
|
+
h(), w();
|
|
90
|
+
}, [h, w]), z = a(() => {
|
|
91
|
+
P(), M();
|
|
92
|
+
}, [P, M]), G = a(
|
|
93
|
+
(t) => e.selectRate(t),
|
|
94
|
+
[e]
|
|
95
|
+
), J = e.duration > 0 ? e.currentTime / e.duration : 0, K = Math.round(J * E.barCount), X = i[e.rateIndex] ?? 1, S = !!b, T = f || v || u && S || !!y;
|
|
96
|
+
return /* @__PURE__ */ p(Z, { children: [
|
|
97
|
+
/* @__PURE__ */ r(
|
|
98
|
+
ee,
|
|
99
|
+
{
|
|
100
|
+
audioRef: e.audioRef,
|
|
101
|
+
src: n,
|
|
102
|
+
onLoadedMetadata: e.handleLoadedMetadata,
|
|
103
|
+
onEnded: e.handleEnded,
|
|
104
|
+
onTimeUpdate: e.setCurrentTime
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
/* @__PURE__ */ p(
|
|
108
|
+
"div",
|
|
109
|
+
{
|
|
110
|
+
"data-testid": "music-player-bar",
|
|
111
|
+
className: `${c.bar} music-player-bar`,
|
|
112
|
+
"data-popovers-open": d.opened || D.opened || void 0,
|
|
113
|
+
"data-volume-open": D.opened || void 0,
|
|
114
|
+
"data-hover-actions-reduced": m || void 0,
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ r(
|
|
117
|
+
ne,
|
|
118
|
+
{
|
|
119
|
+
playing: e.playing,
|
|
120
|
+
onToggle: e.togglePlay,
|
|
121
|
+
playLabel: o.play,
|
|
122
|
+
pauseLabel: o.pause
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
/* @__PURE__ */ r(
|
|
126
|
+
ie,
|
|
127
|
+
{
|
|
128
|
+
currentTime: e.currentTime,
|
|
129
|
+
duration: e.duration,
|
|
130
|
+
label: o.timeDisplay
|
|
131
|
+
}
|
|
132
|
+
),
|
|
133
|
+
/* @__PURE__ */ r(
|
|
134
|
+
se,
|
|
135
|
+
{
|
|
136
|
+
clipRef: E.clipRef,
|
|
137
|
+
heights: E.heights,
|
|
138
|
+
activeBar: K,
|
|
139
|
+
currentTime: e.currentTime,
|
|
140
|
+
duration: e.duration,
|
|
141
|
+
label: o.waveformSeek,
|
|
142
|
+
onSeek: W
|
|
143
|
+
}
|
|
144
|
+
),
|
|
145
|
+
/* @__PURE__ */ p("div", { className: c.tailRail, children: [
|
|
146
|
+
l ? /* @__PURE__ */ r(
|
|
147
|
+
ae,
|
|
148
|
+
{
|
|
149
|
+
currentRate: X,
|
|
150
|
+
showMore: T,
|
|
151
|
+
speedLabel: o.playbackSpeed,
|
|
152
|
+
moreLabel: o.more,
|
|
153
|
+
onOpenSpeedDrawer: q,
|
|
154
|
+
onOpenActionsDrawer: z
|
|
155
|
+
}
|
|
156
|
+
) : /* @__PURE__ */ p("div", { className: c.tail, children: [
|
|
157
|
+
/* @__PURE__ */ r(
|
|
158
|
+
le,
|
|
159
|
+
{
|
|
160
|
+
popover: d,
|
|
161
|
+
rates: i,
|
|
162
|
+
currentIndex: e.rateIndex,
|
|
163
|
+
label: o.playbackSpeed,
|
|
164
|
+
onSelect: $
|
|
165
|
+
}
|
|
166
|
+
),
|
|
167
|
+
/* @__PURE__ */ r(
|
|
168
|
+
de,
|
|
169
|
+
{
|
|
170
|
+
popover: D,
|
|
171
|
+
volume: e.volume,
|
|
172
|
+
muted: e.muted,
|
|
173
|
+
isTouchTablet: I,
|
|
174
|
+
muteLabel: o.mute,
|
|
175
|
+
unmuteLabel: o.unmute,
|
|
176
|
+
volumeLabel: o.volume,
|
|
177
|
+
onToggleMute: e.toggleMuted,
|
|
178
|
+
onVolumeChange: e.handleVolumeChange
|
|
179
|
+
}
|
|
180
|
+
)
|
|
181
|
+
] }),
|
|
182
|
+
!l && /* @__PURE__ */ r("div", { className: c.tailSpacer, "aria-hidden": !0 })
|
|
183
|
+
] }),
|
|
184
|
+
!l && T && /* @__PURE__ */ r(
|
|
185
|
+
oe,
|
|
186
|
+
{
|
|
187
|
+
disable: m,
|
|
188
|
+
linkCopied: g,
|
|
189
|
+
showDownload: f,
|
|
190
|
+
showCopyLink: v,
|
|
191
|
+
showDelete: u,
|
|
192
|
+
hasDelete: S,
|
|
193
|
+
tooltipsDisabled: !F,
|
|
194
|
+
downloadLabel: o.download,
|
|
195
|
+
copyLinkLabel: o.copyLink,
|
|
196
|
+
deleteLabel: o.delete,
|
|
197
|
+
onDownload: R,
|
|
198
|
+
onCopyLink: k,
|
|
199
|
+
onDelete: V,
|
|
200
|
+
extraActions: y
|
|
201
|
+
}
|
|
202
|
+
)
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
),
|
|
206
|
+
l && /* @__PURE__ */ r(
|
|
207
|
+
re,
|
|
208
|
+
{
|
|
209
|
+
opened: j,
|
|
210
|
+
rates: i,
|
|
211
|
+
currentIndex: e.rateIndex,
|
|
212
|
+
title: o.playbackSpeed,
|
|
213
|
+
onSelect: G,
|
|
214
|
+
onClose: P
|
|
215
|
+
}
|
|
216
|
+
),
|
|
217
|
+
l && T && /* @__PURE__ */ r(
|
|
218
|
+
te,
|
|
219
|
+
{
|
|
220
|
+
opened: Q,
|
|
221
|
+
title: o.mobileActionsTitle,
|
|
222
|
+
linkCopied: g,
|
|
223
|
+
showDownload: f,
|
|
224
|
+
showCopyLink: v,
|
|
225
|
+
showDelete: u && S && !m,
|
|
226
|
+
downloadLabel: o.download,
|
|
227
|
+
copyLinkLabel: o.copyLink,
|
|
228
|
+
deleteLabel: o.delete,
|
|
229
|
+
onDownload: R,
|
|
230
|
+
onCopyLink: k,
|
|
231
|
+
onDelete: V,
|
|
232
|
+
onClose: h
|
|
233
|
+
}
|
|
234
|
+
)
|
|
235
|
+
] });
|
|
236
|
+
}
|
|
237
|
+
export {
|
|
238
|
+
We as MusicPlayerBar
|
|
239
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const e = "_bar_1vkxh_1", t = "_waveformClip_1vkxh_34", o = "_waveform_1vkxh_34", _ = "_tailRail_1vkxh_53", s = "_tail_1vkxh_53", n = "_tailSpacer_1vkxh_69", v = "_hoverActions_1vkxh_88", i = "_stem_1vkxh_119", c = "_stemActive_1vkxh_126", p = "_stemInactive_1vkxh_131", r = "_playBtn_1vkxh_136", a = "_timer_1vkxh_141", h = "_speedTrigger_1vkxh_146", l = "_speedChip_1vkxh_163", d = "_speedChipActive_1vkxh_183", m = "_speedLabel_1vkxh_191", x = "_volumeDropdown_1vkxh_197", k = "_volumeSlider_1vkxh_205", w = "_speedDropdown_1vkxh_228", A = "_ghostDropdown_1vkxh_240", g = "_hoverActionItem_1vkxh_248", C = "_actionIconBtn_1vkxh_261", D = {
|
|
2
|
+
bar: e,
|
|
3
|
+
waveformClip: t,
|
|
4
|
+
waveform: o,
|
|
5
|
+
tailRail: _,
|
|
6
|
+
tail: s,
|
|
7
|
+
tailSpacer: n,
|
|
8
|
+
hoverActions: v,
|
|
9
|
+
stem: i,
|
|
10
|
+
stemActive: c,
|
|
11
|
+
stemInactive: p,
|
|
12
|
+
playBtn: r,
|
|
13
|
+
timer: a,
|
|
14
|
+
speedTrigger: h,
|
|
15
|
+
speedChip: l,
|
|
16
|
+
speedChipActive: d,
|
|
17
|
+
speedLabel: m,
|
|
18
|
+
volumeDropdown: x,
|
|
19
|
+
volumeSlider: k,
|
|
20
|
+
speedDropdown: w,
|
|
21
|
+
ghostDropdown: A,
|
|
22
|
+
hoverActionItem: g,
|
|
23
|
+
actionIconBtn: C
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
C as actionIconBtn,
|
|
27
|
+
e as bar,
|
|
28
|
+
D as default,
|
|
29
|
+
A as ghostDropdown,
|
|
30
|
+
g as hoverActionItem,
|
|
31
|
+
v as hoverActions,
|
|
32
|
+
r as playBtn,
|
|
33
|
+
l as speedChip,
|
|
34
|
+
d as speedChipActive,
|
|
35
|
+
w as speedDropdown,
|
|
36
|
+
m as speedLabel,
|
|
37
|
+
h as speedTrigger,
|
|
38
|
+
i as stem,
|
|
39
|
+
c as stemActive,
|
|
40
|
+
p as stemInactive,
|
|
41
|
+
s as tail,
|
|
42
|
+
_ as tailRail,
|
|
43
|
+
n as tailSpacer,
|
|
44
|
+
a as timer,
|
|
45
|
+
x as volumeDropdown,
|
|
46
|
+
k as volumeSlider,
|
|
47
|
+
o as waveform,
|
|
48
|
+
t as waveformClip
|
|
49
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
audioRef: React.MutableRefObject<HTMLAudioElement | null>;
|
|
3
|
+
src: string;
|
|
4
|
+
onLoadedMetadata: () => void;
|
|
5
|
+
onEnded: () => void;
|
|
6
|
+
onTimeUpdate: (value: number) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function HiddenAudio({ audioRef, src, onLoadedMetadata, onEnded, onTimeUpdate, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=HiddenAudio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HiddenAudio.d.ts","sourceRoot":"","sources":["../../../../src/components/MusicPlayerBar/components/HiddenAudio.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,KAAK,CAAC,gBAAgB,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IAC1D,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,GAAG,EACH,gBAAgB,EAChB,OAAO,EACP,YAAY,GACb,EAAE,KAAK,2CAuBP"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as p } from "react";
|
|
3
|
+
function m({
|
|
4
|
+
audioRef: t,
|
|
5
|
+
src: o,
|
|
6
|
+
onLoadedMetadata: r,
|
|
7
|
+
onEnded: i,
|
|
8
|
+
onTimeUpdate: e
|
|
9
|
+
}) {
|
|
10
|
+
const n = p(() => {
|
|
11
|
+
e(t.current?.currentTime ?? 0);
|
|
12
|
+
}, [t, e]);
|
|
13
|
+
return /* @__PURE__ */ a(
|
|
14
|
+
"audio",
|
|
15
|
+
{
|
|
16
|
+
ref: t,
|
|
17
|
+
src: o,
|
|
18
|
+
title: "",
|
|
19
|
+
onLoadedMetadata: r,
|
|
20
|
+
onTimeUpdate: n,
|
|
21
|
+
onEnded: i,
|
|
22
|
+
preload: "metadata",
|
|
23
|
+
style: {
|
|
24
|
+
position: "absolute",
|
|
25
|
+
width: 0,
|
|
26
|
+
height: 0,
|
|
27
|
+
opacity: 0,
|
|
28
|
+
pointerEvents: "none"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
m as HiddenAudio
|
|
35
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
disable: boolean;
|
|
4
|
+
linkCopied: boolean;
|
|
5
|
+
showDownload: boolean;
|
|
6
|
+
showCopyLink: boolean;
|
|
7
|
+
showDelete: boolean;
|
|
8
|
+
hasDelete: boolean;
|
|
9
|
+
tooltipsDisabled: boolean;
|
|
10
|
+
downloadLabel: string;
|
|
11
|
+
copyLinkLabel: string;
|
|
12
|
+
deleteLabel: string;
|
|
13
|
+
onDownload: (e: React.MouseEvent) => void;
|
|
14
|
+
onCopyLink: (e: React.MouseEvent) => void;
|
|
15
|
+
onDelete: () => void;
|
|
16
|
+
extraActions?: ReactNode;
|
|
17
|
+
};
|
|
18
|
+
export declare function HoverActions({ disable, linkCopied, showDownload, showCopyLink, showDelete, hasDelete, tooltipsDisabled, downloadLabel, copyLinkLabel, deleteLabel, onDownload, onCopyLink, onDelete, extraActions, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=HoverActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HoverActions.d.ts","sourceRoot":"","sources":["../../../../src/components/MusicPlayerBar/components/HoverActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAavC,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC1C,UAAU,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC1C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B,CAAC;AAoCF,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,UAAU,EACV,QAAQ,EACR,YAAY,GACb,EAAE,KAAK,2CA2CP"}
|