@layers-app/shared 0.3.8 → 0.4.0
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/AnimatedFigurePage/AnimatedFigurePage.module.css.js +10 -10
- package/dist/components/AnimatedFigurePage/useParallax.d.ts +2 -2
- package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts +1 -4
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +15 -22
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +21 -22
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +91 -48
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
- package/dist/components/AppShell/AppShell.module.css.js +5 -5
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +1 -3
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +63 -89
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +26 -35
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +36 -43
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +0 -4
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +20 -59
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +18 -28
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +18 -22
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +8 -8
- package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +21 -19
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +144 -136
- package/dist/components/ColorPicker/ColorPicker.module.css.js +31 -0
- package/dist/components/ColorPicker/ColorPickerList.d.ts +6 -0
- package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -0
- package/dist/components/ColorPicker/ColorPickerList.js +134 -0
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts +13 -0
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -0
- package/dist/components/ColorPicker/ColorPickerToolbar.js +149 -0
- package/dist/components/ColorPicker/icons.d.ts +11 -0
- package/dist/components/ColorPicker/icons.d.ts.map +1 -0
- package/dist/components/ColorPicker/icons.js +71 -0
- package/dist/components/ColorPicker/types.d.ts +49 -0
- package/dist/components/ColorPicker/types.d.ts.map +1 -0
- package/dist/components/ColorPicker/types.js +10 -0
- package/dist/components/ColorPicker/useRecentColors.d.ts +13 -0
- package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -0
- package/dist/components/ColorPicker/useRecentColors.js +39 -0
- package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
- package/dist/components/CommentComposer/CommentEditorHotkeys.js +4 -3
- package/dist/components/CommentComposer/index.js +1 -1
- package/dist/components/CommentComposer/useVirtualAnchor.d.ts +1 -1
- package/dist/components/CommentComposer/useVirtualAnchor.d.ts.map +1 -1
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/Copyright.module.css.js +1 -1
- package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +22 -22
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +1 -0
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- package/dist/components/EmojiPicker/IconsPanel.js +13 -13
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +33 -43
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
- package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
- package/dist/components/FilePicker/FilePicker.d.ts +4 -2
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +241 -226
- package/dist/components/FilePicker/FilePicker.module.css.js +14 -12
- package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGallery.js +60 -34
- package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.js +38 -39
- package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerLink.js +29 -26
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +42 -43
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +51 -35
- package/dist/components/FilePicker/coverCollections.d.ts +4 -0
- package/dist/components/FilePicker/coverCollections.d.ts.map +1 -0
- package/dist/components/FilePicker/coverCollections.js +164 -0
- package/dist/components/FilePicker/index.d.ts +1 -0
- package/dist/components/FilePicker/index.d.ts.map +1 -1
- package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
- package/dist/components/FormViewer/helpers/conditions.d.ts +38 -38
- package/dist/components/FormViewer/helpers/helpers.d.ts +38 -38
- package/dist/components/FormViewer/helpers/steps.d.ts +38 -38
- package/dist/components/FormViewer/hooks/useActiveControl.d.ts +19 -19
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +38 -38
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +0 -6
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts.map +1 -1
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +3 -4
- package/dist/components/FormViewer/hooks/useFormMobile.d.ts +1 -1
- package/dist/components/FormViewer/hooks/useFormMobile.d.ts.map +1 -1
- package/dist/components/FormViewer/store/formStore.d.ts +248 -248
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/FormViewer/store/formStoreApi.d.ts +124 -124
- package/dist/components/FormViewer/store/selectors.d.ts +11655 -11655
- package/dist/components/FormViewer/types/form.d.ts +1 -1
- package/dist/components/FormViewer/types/form.d.ts.map +1 -1
- package/dist/components/FormViewer/types/schemes.d.ts +6358 -381
- package/dist/components/FormViewer/types/schemes.d.ts.map +1 -1
- package/dist/components/FormViewer/types/schemes.js +1 -1
- package/dist/components/GroupAvatar/index.d.ts +1 -3
- package/dist/components/GroupAvatar/index.d.ts.map +1 -1
- package/dist/components/GroupAvatar/index.js +21 -24
- package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
- package/dist/components/Loaders/styles.module.css.js +6 -6
- package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
- package/dist/components/MediaLibrary/MediaLibraryRow.js +7 -7
- package/dist/components/NavMenu/NavMenu.d.ts +1 -3
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
- package/dist/components/NavMenu/components/DnDProvider.d.ts +1 -1
- package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts +1 -7
- package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuActionIcon.js +23 -21
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NewColorPicker/components/Target.d.ts +1 -3
- package/dist/components/NewColorPicker/components/Target.d.ts.map +1 -1
- package/dist/components/NewColorPicker/components/Target.js +43 -48
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.js +1 -3
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/Notification/NotificationCard.d.ts +1 -3
- package/dist/components/Notification/NotificationCard.d.ts.map +1 -1
- package/dist/components/Notification/NotificationCard.js +86 -87
- package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +3 -3
- package/dist/components/OnBoarding/steps/styles.module.css.js +9 -9
- package/dist/components/OnBoarding/styles.module.css.js +7 -7
- package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts +1 -1
- package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts.map +1 -1
- package/dist/components/OnboardingTour/OnboardingTourWrapper.js +74 -70
- package/dist/components/ProjectIcon/ProjectIcon.d.ts +12 -7
- package/dist/components/ProjectIcon/ProjectIcon.d.ts.map +1 -1
- package/dist/components/ProjectIcon/ProjectIcon.js +60 -58
- package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
- package/dist/components/SettingsSection/styles.module.css.js +1 -1
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
- package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
- package/dist/components/UserAvatar/index.d.ts +1 -2
- package/dist/components/UserAvatar/index.d.ts.map +1 -1
- package/dist/components/UserAvatar/index.js +35 -38
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +3 -3
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts.map +1 -1
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +18 -19
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +17 -17
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +7 -7
- package/dist/components/table/FrontTable.d.ts.map +1 -1
- package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
- package/dist/config/brand.js +8 -8
- package/dist/config/envConfig.d.ts +0 -8
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +13 -21
- package/dist/helpers/getFileIcons.d.ts.map +1 -1
- package/dist/helpers/getFileIcons.js +45 -63
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +8 -29
- package/dist/helpers/getPartOfTheDay.d.ts +1 -1
- package/dist/helpers/platform.d.ts +1 -1
- package/dist/helpers/platform.d.ts.map +1 -1
- package/dist/helpers/platform.js +4 -5
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +29 -30
- package/dist/helpers/showNotifications.module.css.js +1 -1
- package/dist/hooks/useOutsideClick.d.ts +1 -1
- package/dist/hooks/useOutsideClick.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +509 -498
- package/dist/lang/locales/ui_en.json.js +20 -18
- package/dist/lang/locales/ui_es.json.js +14 -12
- package/dist/lang/locales/ui_ru.json.js +15 -13
- package/dist/node_modules/countries-and-timezones/esm/index.js +4011 -281
- package/docs/README.md +499 -499
- package/package.json +75 -75
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts +0 -6
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts.map +0 -1
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.js +0 -16
- package/dist/helpers/offlineSuppression.d.ts +0 -3
- package/dist/helpers/offlineSuppression.d.ts.map +0 -1
- package/dist/helpers/offlineSuppression.js +0 -8
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import j from "
|
|
5
|
-
import
|
|
2
|
+
import { forwardRef as u } from "react";
|
|
3
|
+
import { Avatar as d, Text as y } from "@mantine/core";
|
|
4
|
+
import { omit as x, isString as S, isNil as j } from "lodash-es";
|
|
5
|
+
import L from "query-string";
|
|
6
|
+
import { DEFAULT_VALUES as w } from "../../constants.js";
|
|
6
7
|
import { customIcons as v } from "../EmojiPicker/custom-icons/customIcons.js";
|
|
7
|
-
var
|
|
8
|
+
var I = /* @__PURE__ */ ((r) => (r.OUTLINED = "o", r.FILLED = "f", r))(I || {}), c;
|
|
8
9
|
((r) => {
|
|
9
10
|
r.parse = (t) => {
|
|
10
|
-
if (!
|
|
11
|
+
if (!S(t) || t.trim() === "") return null;
|
|
11
12
|
const e = new URLSearchParams(t);
|
|
12
13
|
return {
|
|
13
14
|
icon: e.get("i") || "",
|
|
@@ -16,7 +17,7 @@ var w = /* @__PURE__ */ ((r) => (r.OUTLINED = "o", r.FILLED = "f", r))(w || {}),
|
|
|
16
17
|
type: e.get("t") || "o"
|
|
17
18
|
/* OUTLINED */
|
|
18
19
|
};
|
|
19
|
-
}, r.stringify = (t) =>
|
|
20
|
+
}, r.stringify = (t) => j(t) ? "" : L.stringify({
|
|
20
21
|
i: t.icon || void 0,
|
|
21
22
|
c: t.color || void 0,
|
|
22
23
|
e: t.emoji || void 0,
|
|
@@ -24,63 +25,64 @@ var w = /* @__PURE__ */ ((r) => (r.OUTLINED = "o", r.FILLED = "f", r))(w || {}),
|
|
|
24
25
|
/* OUTLINED */
|
|
25
26
|
});
|
|
26
27
|
})(c || (c = {}));
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}) => {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
28
|
+
const O = u(
|
|
29
|
+
({
|
|
30
|
+
icon: r,
|
|
31
|
+
name: t,
|
|
32
|
+
fallback: e,
|
|
33
|
+
size: i,
|
|
34
|
+
textSize: n,
|
|
35
|
+
fallbackColorById: f,
|
|
36
|
+
initials: l = !0,
|
|
37
|
+
fallbackColor: g,
|
|
38
|
+
...s
|
|
39
|
+
}, p) => {
|
|
40
|
+
const m = c.parse(r);
|
|
41
|
+
if (!m && !e) return null;
|
|
42
|
+
const h = m?.color || (f ? "initials" : g) || w.COLORS[0];
|
|
43
|
+
return /* @__PURE__ */ o(
|
|
44
|
+
d,
|
|
45
|
+
{
|
|
46
|
+
ref: p,
|
|
47
|
+
variant: "transparent",
|
|
48
|
+
color: h,
|
|
49
|
+
name: f,
|
|
50
|
+
size: i || 20,
|
|
51
|
+
style: {
|
|
52
|
+
overflow: s.radius ? "hidden" : "visible",
|
|
53
|
+
...s.style
|
|
54
|
+
},
|
|
55
|
+
...x(s, ["style"]),
|
|
56
|
+
children: /* @__PURE__ */ o(
|
|
57
|
+
y,
|
|
58
|
+
{
|
|
59
|
+
fz: `${n || i}px`,
|
|
60
|
+
fw: "bold",
|
|
61
|
+
tt: "uppercase",
|
|
62
|
+
style: {
|
|
63
|
+
display: "flex",
|
|
64
|
+
alignItems: "center",
|
|
65
|
+
justifyContent: "center",
|
|
66
|
+
lineHeight: "normal"
|
|
67
|
+
},
|
|
68
|
+
children: A(m, e, l, t)
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
), A = (r, t, e, i) => {
|
|
73
75
|
const n = v?.[r?.icon || ""];
|
|
74
76
|
return n ? /* @__PURE__ */ o(n, { width: "1em", height: "1em", style: { flexShrink: 0 } }) : r?.icon ? /* @__PURE__ */ o("svg", { width: "1em", height: "1em", style: { flexShrink: 0 }, children: /* @__PURE__ */ o(
|
|
75
77
|
"use",
|
|
76
78
|
{
|
|
77
79
|
xlinkHref: `/tabler-sprite${r.type === "f" ? "-filled" : ""}.svg#tabler-${r.type === "f" ? "filled-" : ""}${r.icon}`
|
|
78
80
|
}
|
|
79
|
-
) }) : r?.emoji ? r.emoji : t || (i && e ?
|
|
80
|
-
},
|
|
81
|
+
) }) : r?.emoji ? r.emoji : t || (i && e ? C(i) : null);
|
|
82
|
+
}, C = (r) => String.fromCodePoint(r?.trim()?.codePointAt(0) ?? 1);
|
|
81
83
|
export {
|
|
82
84
|
c as IconEntity,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
I as IconType,
|
|
86
|
+
O as ProjectIcon,
|
|
87
|
+
A as renderIcon
|
|
86
88
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_container_f42en_1", e = "_depthBox_f42en_21", n = "_item_f42en_37", o = {
|
|
2
2
|
container: t,
|
|
3
3
|
depthBox: e,
|
|
4
|
-
item:
|
|
4
|
+
item: n
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
7
|
t as container,
|
|
8
|
-
|
|
8
|
+
o as default,
|
|
9
9
|
e as depthBox,
|
|
10
|
-
|
|
10
|
+
n as item
|
|
11
11
|
};
|
|
@@ -2,9 +2,8 @@ import React, { ReactNode } from 'react';
|
|
|
2
2
|
import { AvatarProps } from '@mantine/core';
|
|
3
3
|
import { MenuUser } from '../AppContainer/components/menus/UserMenu/MenuUserDropdown';
|
|
4
4
|
export interface UserAvatarProps extends AvatarProps, Omit<React.ComponentPropsWithoutRef<'div'>, keyof AvatarProps> {
|
|
5
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
6
5
|
user?: Partial<MenuUser> | null;
|
|
7
6
|
emptyIcon?: ReactNode;
|
|
8
7
|
}
|
|
9
|
-
export declare const UserAvatar:
|
|
8
|
+
export declare const UserAvatar: React.ForwardRefExoticComponent<UserAvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/UserAvatar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/UserAvatar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAErD,OAAO,EAAU,WAAW,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAC;AAGtF,MAAM,WAAW,eACf,SAAQ,WAAW,EACjB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,MAAM,WAAW,CAAC;IAChE,IAAI,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,eAAO,MAAM,UAAU,wFAuCtB,CAAC"}
|
|
@@ -1,42 +1,39 @@
|
|
|
1
1
|
import { jsx as t, Fragment as c } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { forwardRef as m } from "react";
|
|
3
|
+
import { Avatar as d } from "@mantine/core";
|
|
3
4
|
import { IconUser as l } from "@tabler/icons-react";
|
|
4
|
-
import { ProjectIcon as
|
|
5
|
-
const
|
|
6
|
-
user:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
children: a ? /* @__PURE__ */ t(c, { children: a.name?.charAt(0) }) : /* @__PURE__ */ t(c, { children: e ?? /* @__PURE__ */ t(l, { size: "70%" }) })
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
};
|
|
5
|
+
import { ProjectIcon as f } from "../ProjectIcon/ProjectIcon.js";
|
|
6
|
+
const A = m(
|
|
7
|
+
({ user: r, size: o = 24, emptyIcon: e, ...i }, n) => {
|
|
8
|
+
const a = r?.avatar || r?.avatarUrl;
|
|
9
|
+
return a && (a.includes("i=") || a.includes("e=")) ? /* @__PURE__ */ t(
|
|
10
|
+
f,
|
|
11
|
+
{
|
|
12
|
+
icon: a,
|
|
13
|
+
name: r?.name,
|
|
14
|
+
fallbackColorById: r?.id,
|
|
15
|
+
size: o,
|
|
16
|
+
textSize: typeof o == "number" ? o * 0.75 : void 0,
|
|
17
|
+
radius: i.radius,
|
|
18
|
+
...i,
|
|
19
|
+
ref: n
|
|
20
|
+
}
|
|
21
|
+
) : /* @__PURE__ */ t(
|
|
22
|
+
d,
|
|
23
|
+
{
|
|
24
|
+
src: a,
|
|
25
|
+
color: "initials",
|
|
26
|
+
tt: "uppercase",
|
|
27
|
+
size: o,
|
|
28
|
+
variant: "filled",
|
|
29
|
+
name: r?.id ?? "",
|
|
30
|
+
...i,
|
|
31
|
+
ref: n,
|
|
32
|
+
children: r ? /* @__PURE__ */ t(c, { children: r.name?.charAt(0) }) : /* @__PURE__ */ t(c, { children: e ?? /* @__PURE__ */ t(l, { size: "70%" }) })
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
);
|
|
40
37
|
export {
|
|
41
|
-
|
|
38
|
+
A as UserAvatar
|
|
42
39
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { AvatarProps } from '@mantine/core';
|
|
3
2
|
import { MenuWorkspace } from '../WorkspaceMenu/WorkspaceMenu';
|
|
4
3
|
export type WorkspaceAvatarProps = AvatarProps & {
|
|
5
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
6
4
|
workspace?: MenuWorkspace | null;
|
|
7
5
|
};
|
|
8
|
-
export declare const WorkspaceAvatar:
|
|
6
|
+
export declare const WorkspaceAvatar: import("react").ForwardRefExoticComponent<AvatarProps & {
|
|
7
|
+
workspace?: MenuWorkspace | null;
|
|
8
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
9
|
//# sourceMappingURL=WorkspaceAvatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/WorkspaceAvatar/WorkspaceAvatar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WorkspaceAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/WorkspaceAvatar/WorkspaceAvatar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,WAAW,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG;IAC/C,SAAS,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,eAAe;gBAHd,aAAa,GAAG,IAAI;kDAkBjC,CAAC"}
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import i from "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
2
|
+
import { forwardRef as e } from "react";
|
|
3
|
+
import { Avatar as i } from "@mantine/core";
|
|
4
|
+
import m from "../../assets/default-workspace-avatar.jpg.js";
|
|
5
|
+
const c = e(
|
|
6
|
+
({ workspace: r, ...a }, t) => /* @__PURE__ */ o(
|
|
7
|
+
i,
|
|
8
|
+
{
|
|
9
|
+
src: r?.workspaceIcon || m,
|
|
10
|
+
tt: "uppercase",
|
|
11
|
+
color: "initials",
|
|
12
|
+
variant: "filled",
|
|
13
|
+
name: r?.workspaceId,
|
|
14
|
+
radius: "var(--mantine-radius-default)",
|
|
15
|
+
...a,
|
|
16
|
+
ref: t
|
|
17
|
+
}
|
|
18
|
+
)
|
|
20
19
|
);
|
|
21
20
|
export {
|
|
22
|
-
|
|
21
|
+
c as WorkspaceAvatar
|
|
23
22
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, jsxs as t, Fragment as s } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation as c } from "react-i18next";
|
|
3
|
-
import { Menu as p, Flex as
|
|
3
|
+
import { Menu as p, Flex as o, Box as m, Text as i } from "@mantine/core";
|
|
4
4
|
import { usePlatform as h } from "../../hooks/usePlatform.js";
|
|
5
|
-
import { WorkspaceAvatar as
|
|
6
|
-
const M = ({ workspace:
|
|
7
|
-
const { t: r } = c("workspaceMenu"),
|
|
8
|
-
return /* @__PURE__ */
|
|
5
|
+
import { WorkspaceAvatar as d } from "../WorkspaceAvatar/WorkspaceAvatar.js";
|
|
6
|
+
const M = ({ workspace: n, onClick: a }) => {
|
|
7
|
+
const { t: r } = c("workspaceMenu"), l = h();
|
|
8
|
+
return /* @__PURE__ */ e(
|
|
9
9
|
p.Item,
|
|
10
10
|
{
|
|
11
11
|
p: 4,
|
|
12
|
-
onClick: () =>
|
|
12
|
+
onClick: () => a?.(n),
|
|
13
13
|
component: "a",
|
|
14
14
|
styles: { itemLabel: { minWidth: 0 } },
|
|
15
|
-
children: /* @__PURE__ */ t(
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */ t(
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
!
|
|
20
|
-
|
|
21
|
-
r("member", { count:
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
|
|
15
|
+
children: /* @__PURE__ */ t(o, { gap: 12, children: [
|
|
16
|
+
/* @__PURE__ */ e(d, { workspace: n, size: 36 }),
|
|
17
|
+
/* @__PURE__ */ t(m, { flex: 1, miw: 0, children: [
|
|
18
|
+
/* @__PURE__ */ e(i, { truncate: !0, size: "sm", fw: 500, c: "var(--mantine-color-bright)", children: n.workspaceName }),
|
|
19
|
+
!n?.invitation && /* @__PURE__ */ e(i, { c: "gray", fw: 500, size: "xs", component: "span", children: /* @__PURE__ */ t(o, { gap: 8, component: "span", children: [
|
|
20
|
+
n.totalMembers ? /* @__PURE__ */ t(s, { children: [
|
|
21
|
+
r("member", { count: n.totalMembers }),
|
|
22
|
+
/* @__PURE__ */ e(
|
|
23
|
+
m,
|
|
24
24
|
{
|
|
25
25
|
w: 2,
|
|
26
26
|
h: 2,
|
|
@@ -30,7 +30,7 @@ const M = ({ workspace: e, onClick: l }) => {
|
|
|
30
30
|
}
|
|
31
31
|
)
|
|
32
32
|
] }) : null,
|
|
33
|
-
|
|
33
|
+
l.has("planBadges") && r(`plans.${n.plan}`)
|
|
34
34
|
] }) })
|
|
35
35
|
] })
|
|
36
36
|
] })
|
|
@@ -20,11 +20,11 @@ const te = ({
|
|
|
20
20
|
workspaceLink: t,
|
|
21
21
|
settingsLink: p,
|
|
22
22
|
membersLink: y,
|
|
23
|
-
isAnonym:
|
|
24
|
-
publicMode:
|
|
23
|
+
isAnonym: I,
|
|
24
|
+
publicMode: L
|
|
25
25
|
}) => {
|
|
26
|
-
const { t:
|
|
27
|
-
return
|
|
26
|
+
const { t: W } = u("workspaceMenu"), { isMobile: g } = T(), [C, f] = K(!1);
|
|
27
|
+
return I || L ? /* @__PURE__ */ e(l, { w: "100%", justify: g ? "start" : "center", children: /* @__PURE__ */ e("a", { href: "/", children: /* @__PURE__ */ e(
|
|
28
28
|
O,
|
|
29
29
|
{
|
|
30
30
|
minified: !g,
|
|
@@ -34,7 +34,7 @@ const te = ({
|
|
|
34
34
|
) }) }) : /* @__PURE__ */ e(M, { children: /* @__PURE__ */ o(
|
|
35
35
|
m,
|
|
36
36
|
{
|
|
37
|
-
opened:
|
|
37
|
+
opened: C,
|
|
38
38
|
onChange: f,
|
|
39
39
|
position: "right-start",
|
|
40
40
|
keepMounted: !1,
|
|
@@ -43,7 +43,7 @@ const te = ({
|
|
|
43
43
|
children: [
|
|
44
44
|
/* @__PURE__ */ e(m.Target, { children: r ?? /* @__PURE__ */ o(l, { onClick: () => f((w) => !w), children: [
|
|
45
45
|
/* @__PURE__ */ e(x, { size: 30, workspace: n }),
|
|
46
|
-
/* @__PURE__ */ e(l, { justify: "space-between", align: "center", w: "100%", miw: 0, children: /* @__PURE__ */ e(N, { label: n.workspaceName, children: /* @__PURE__ */ e(d, { size: "md", truncate: !0, children: n?.workspaceName ||
|
|
46
|
+
/* @__PURE__ */ e(l, { justify: "space-between", align: "center", w: "100%", miw: 0, children: /* @__PURE__ */ e(N, { label: n.workspaceName, children: /* @__PURE__ */ e(d, { size: "md", truncate: !0, children: n?.workspaceName || W("noName") }) }) })
|
|
47
47
|
] }) }),
|
|
48
48
|
/* @__PURE__ */ e(m.Dropdown, { w: 338, children: /* @__PURE__ */ o(a, { gap: 6, children: [
|
|
49
49
|
/* @__PURE__ */ e(
|
|
@@ -86,7 +86,7 @@ const te = ({
|
|
|
86
86
|
/* @__PURE__ */ o(a, { gap: 0, miw: 0, children: [
|
|
87
87
|
/* @__PURE__ */ e(d, { truncate: !0, size: "md", fw: 500, c: "var(--mantine-color-bright)", children: r.workspaceName || t("noName") }),
|
|
88
88
|
/* @__PURE__ */ e(d, { c: "gray", size: "sm", fw: 500, component: "span", children: /* @__PURE__ */ o(l, { gap: 6, component: "span", children: [
|
|
89
|
-
|
|
89
|
+
r.totalMembers ? /* @__PURE__ */ o(M, { children: [
|
|
90
90
|
t("member", { count: r.totalMembers }),
|
|
91
91
|
/* @__PURE__ */ e(
|
|
92
92
|
h,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FrontTable.d.ts","sourceRoot":"","sources":["../../../src/components/table/FrontTable.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"FrontTable.d.ts","sourceRoot":"","sources":["../../../src/components/table/FrontTable.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;gBAAV,CAAA;iBACA,CAAC;gBACA,CAAC;;CAOb,CAAC;AAEH,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useColumnsResizing.d.ts","sourceRoot":"","sources":["../../../../src/components/table/hooks/useColumnsResizing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAW9C,eAAO,MAAM,kBAAkB,GAAI,UAAU,gBAAgB,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useColumnsResizing.d.ts","sourceRoot":"","sources":["../../../../src/components/table/hooks/useColumnsResizing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAW9C,eAAO,MAAM,kBAAkB,GAAI,UAAU,gBAAgB,CAAC,OAAO,CAAC;oBAczD,GAAG;;CAqEf,CAAC"}
|
package/dist/config/brand.js
CHANGED
|
@@ -2,16 +2,16 @@ import g from "../assets/layers-logo-full.svg.js";
|
|
|
2
2
|
import s from "../assets/layers-logo-full.svg2.js";
|
|
3
3
|
import i from "../assets/layers-logo-icon.svg.js";
|
|
4
4
|
import p from "../assets/layers-logo-icon.svg2.js";
|
|
5
|
-
import
|
|
6
|
-
import { resolveNonBlankString as o, normalizeUrl as
|
|
7
|
-
const d = { VITE_APP_NAME: "Layers"
|
|
5
|
+
import c from "../assets/logo-copyright.svg.js";
|
|
6
|
+
import { resolveNonBlankString as o, normalizeUrl as n, getEnvConfig as m } from "./envConfig.js";
|
|
7
|
+
const d = { VITE_APP_NAME: "Layers" }, t = d, e = () => m(), l = {
|
|
8
8
|
get name() {
|
|
9
|
-
return o(e().appName,
|
|
9
|
+
return o(e().appName, t.VITE_APP_NAME) || "Layers";
|
|
10
10
|
},
|
|
11
11
|
// Bundled SVG components (support currentColor for theme switching)
|
|
12
12
|
LogoFull: s,
|
|
13
13
|
LogoIcon: p,
|
|
14
|
-
LogoCopyright:
|
|
14
|
+
LogoCopyright: c,
|
|
15
15
|
// Custom URLs from admin panel (null if not configured)
|
|
16
16
|
get customIconUrl() {
|
|
17
17
|
return o(e().logoIconUrl) || o(e().logoFullUrl) || null;
|
|
@@ -30,13 +30,13 @@ const d = { VITE_APP_NAME: "Layers", VITE_APP_URL: "https://app.layers.md" }, n
|
|
|
30
30
|
return o(e().logoIconUrl) || i;
|
|
31
31
|
},
|
|
32
32
|
get websiteUrl() {
|
|
33
|
-
return
|
|
33
|
+
return n(
|
|
34
34
|
o(e().websiteUrl) || "https://layers.md"
|
|
35
35
|
);
|
|
36
36
|
},
|
|
37
37
|
get appUrl() {
|
|
38
|
-
return
|
|
39
|
-
o(e().appUrl,
|
|
38
|
+
return n(
|
|
39
|
+
o(e().appUrl, t.VITE_APP_URL) || "https://app.layers.md/",
|
|
40
40
|
{ trailingSlash: !0 }
|
|
41
41
|
);
|
|
42
42
|
},
|
|
@@ -72,12 +72,6 @@ export interface EnvConfig {
|
|
|
72
72
|
enabled?: boolean;
|
|
73
73
|
url?: string;
|
|
74
74
|
};
|
|
75
|
-
office?: {
|
|
76
|
-
/** True only when the OnlyOffice App Store add-on is installed and running. */
|
|
77
|
-
enabled?: boolean;
|
|
78
|
-
/** Reverse-proxy prefix — /office/** by default. */
|
|
79
|
-
url?: string;
|
|
80
|
-
};
|
|
81
75
|
integrations?: {
|
|
82
76
|
googleDrive?: {
|
|
83
77
|
enabled?: boolean;
|
|
@@ -102,8 +96,6 @@ export interface EnvConfig {
|
|
|
102
96
|
}
|
|
103
97
|
export declare const getEnvConfig: () => EnvConfig;
|
|
104
98
|
export declare const isLivekitEnabled: () => boolean;
|
|
105
|
-
export declare const isOfficeEnabled: () => boolean;
|
|
106
|
-
export declare const getOfficeUrl: () => string | undefined;
|
|
107
99
|
export declare const getEnvValue: <T>(selector: (config: EnvConfig) => T | undefined, fallback?: T) => T | undefined;
|
|
108
100
|
export declare const resolveNonBlankString: (...values: Array<string | undefined | null>) => string | undefined;
|
|
109
101
|
export declare const normalizeUrl: (value: string, { trailingSlash }?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envConfig.d.ts","sourceRoot":"","sources":["../../src/config/envConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE;QACT,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,MAAM,CAAC,EAAE;QACP,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,QAAQ,CAAC,EAAE,MAAM,CA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AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAO,MAAM,GAAG,IAO5C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,GAAG,SAAS,EAAE,MAAM,MAAM,WASxE,CAAC"}
|
package/dist/config/envConfig.js
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
const o = () => {
|
|
2
2
|
const n = typeof window > "u" ? void 0 : window;
|
|
3
3
|
return n?.envConfig == null ? {} : n.envConfig;
|
|
4
|
-
},
|
|
4
|
+
}, c = () => {
|
|
5
5
|
const { livekit: n } = o();
|
|
6
6
|
return !!(n?.enabled && n.url);
|
|
7
|
-
}, a = () => {
|
|
8
|
-
const { office: n } = o();
|
|
9
|
-
return !!(n?.enabled && n.url);
|
|
10
|
-
}, f = () => {
|
|
11
|
-
const { office: n } = o();
|
|
12
|
-
return n?.enabled ? n.url : void 0;
|
|
13
|
-
}, d = (n, t) => {
|
|
7
|
+
}, a = (n, t) => {
|
|
14
8
|
const e = n(o());
|
|
15
9
|
return e === void 0 ? t : e;
|
|
16
|
-
},
|
|
10
|
+
}, d = (...n) => {
|
|
17
11
|
for (const t of n) {
|
|
18
12
|
if (typeof t != "string")
|
|
19
13
|
continue;
|
|
@@ -24,7 +18,7 @@ const o = () => {
|
|
|
24
18
|
}, s = (n, { trailingSlash: t = !1 } = {}) => {
|
|
25
19
|
const r = n.trim().replace(/\/+$/, "");
|
|
26
20
|
return r ? t ? `${r}/` : r : t ? "/" : "";
|
|
27
|
-
},
|
|
21
|
+
}, u = (n) => n == null ? "" : s(n), l = (n) => {
|
|
28
22
|
const t = n.trim().match(/^(\d+(?:\.\d+)?)\s*(KB|MB|GB|TB)$/i);
|
|
29
23
|
if (!t) return null;
|
|
30
24
|
const e = parseFloat(t[1]), r = t[2].toUpperCase(), i = {
|
|
@@ -34,27 +28,25 @@ const o = () => {
|
|
|
34
28
|
TB: 1024 ** 4
|
|
35
29
|
};
|
|
36
30
|
return Math.round(e * i[r]);
|
|
37
|
-
},
|
|
31
|
+
}, f = () => {
|
|
38
32
|
const n = o().maxFileSize;
|
|
39
33
|
if (n) {
|
|
40
34
|
const t = l(n);
|
|
41
35
|
if (t) return t;
|
|
42
36
|
}
|
|
43
37
|
return null;
|
|
44
|
-
},
|
|
45
|
-
const e = t.startsWith("/") ? t : `/${t}`, r =
|
|
38
|
+
}, m = (n, t) => {
|
|
39
|
+
const e = t.startsWith("/") ? t : `/${t}`, r = u(n);
|
|
46
40
|
return r ? `${r}${e}` : e;
|
|
47
41
|
};
|
|
48
42
|
export {
|
|
49
43
|
o as getEnvConfig,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
B as joinBaseUrlPath,
|
|
56
|
-
c as normalizeBaseUrl,
|
|
44
|
+
a as getEnvValue,
|
|
45
|
+
f as getMaxUploadSize,
|
|
46
|
+
c as isLivekitEnabled,
|
|
47
|
+
m as joinBaseUrlPath,
|
|
48
|
+
u as normalizeBaseUrl,
|
|
57
49
|
s as normalizeUrl,
|
|
58
50
|
l as parseSizeToBytes,
|
|
59
|
-
|
|
51
|
+
d as resolveNonBlankString
|
|
60
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFileIcons.d.ts","sourceRoot":"","sources":["../../src/helpers/getFileIcons.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getFileIcons.d.ts","sourceRoot":"","sources":["../../src/helpers/getFileIcons.tsx"],"names":[],"mappings":"AAgBA,eAAO,MAAM,YAAY,GACvB,UAAU,MAAM,EAChB,WAAW,OAAO,EAClB,OAAM,MAAW,4CA4ElB,CAAC"}
|