@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,19 +1,9 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { HugeiconsIcon as
|
|
4
|
-
import { ThemeIcon as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
if (r === "folder")
|
|
8
|
-
return /* @__PURE__ */ o(
|
|
9
|
-
C,
|
|
10
|
-
{
|
|
11
|
-
icon: x,
|
|
12
|
-
size: e,
|
|
13
|
-
color: "var(--mantine-color-blue-5)"
|
|
14
|
-
}
|
|
15
|
-
);
|
|
16
|
-
const i = {
|
|
2
|
+
import { AlertCircleIcon as d, File01Icon as C, Ppt01Icon as p, Xls01Icon as e, HtmlFile01Icon as a, Doc01Icon as c, Pdf01Icon as u, MpFour01Icon as m, Mp301Icon as g, Zip01Icon as F, Rar01Icon as B } from "@hugeicons/core-free-icons";
|
|
3
|
+
import { HugeiconsIcon as E } from "@hugeicons/react";
|
|
4
|
+
import { ThemeIcon as h, Loader as w } from "@mantine/core";
|
|
5
|
+
const k = (I, f, t = 16) => {
|
|
6
|
+
const n = (I || "").toLowerCase(), r = f || n === "folder" ? "folder" : n, i = {
|
|
17
7
|
rar: "#4C6EF5",
|
|
18
8
|
// indigo-6
|
|
19
9
|
archieve: "#4C6EF5",
|
|
@@ -21,74 +11,66 @@ const H = (h, f, e = 16) => {
|
|
|
21
11
|
// violet-6
|
|
22
12
|
mp4: "#CC5DE8",
|
|
23
13
|
// grape-5
|
|
24
|
-
video: "#CC5DE8",
|
|
25
|
-
image: "#15AABF",
|
|
26
|
-
// cyan-6
|
|
27
14
|
media: "#CC5DE8",
|
|
28
15
|
pdf: "#FA5252",
|
|
29
16
|
// red-6
|
|
30
|
-
|
|
31
|
-
//
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
docx: "#228BE6",
|
|
35
|
-
documents: "#228BE6",
|
|
17
|
+
doc: "#12B886",
|
|
18
|
+
// teal-6
|
|
19
|
+
docx: "#12B886",
|
|
20
|
+
documents: "#12B886",
|
|
36
21
|
html: "#22B8CF",
|
|
37
22
|
// cyan-5
|
|
38
23
|
diagram: "#22B8CF",
|
|
39
|
-
xls: "#
|
|
40
|
-
//
|
|
41
|
-
xlsx: "#
|
|
42
|
-
sheet: "#
|
|
43
|
-
pptx: "#
|
|
44
|
-
|
|
45
|
-
presentation: "#FF922B",
|
|
24
|
+
xls: "#FF922B",
|
|
25
|
+
// orange-5
|
|
26
|
+
xlsx: "#FF922B",
|
|
27
|
+
sheet: "#FF922B",
|
|
28
|
+
pptx: "#7950F2",
|
|
29
|
+
presentation: "#7950F2",
|
|
46
30
|
error: "#868E96",
|
|
47
31
|
loading: "#868E96",
|
|
48
32
|
other: "#868E96",
|
|
49
33
|
folder: "#868E96"
|
|
50
34
|
}, l = {
|
|
51
|
-
rar:
|
|
52
|
-
archieve:
|
|
53
|
-
zip:
|
|
54
|
-
mp3:
|
|
55
|
-
mp4:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
error: a
|
|
73
|
-
}, d = i[r] || i.other, u = l[r] || l.other;
|
|
35
|
+
rar: B,
|
|
36
|
+
archieve: F,
|
|
37
|
+
zip: F,
|
|
38
|
+
mp3: g,
|
|
39
|
+
mp4: m,
|
|
40
|
+
media: m,
|
|
41
|
+
pdf: u,
|
|
42
|
+
doc: c,
|
|
43
|
+
docx: c,
|
|
44
|
+
documents: c,
|
|
45
|
+
html: a,
|
|
46
|
+
diagram: a,
|
|
47
|
+
xls: e,
|
|
48
|
+
xlsx: e,
|
|
49
|
+
sheet: e,
|
|
50
|
+
pptx: p,
|
|
51
|
+
presentation: p,
|
|
52
|
+
other: d,
|
|
53
|
+
folder: C,
|
|
54
|
+
error: d
|
|
55
|
+
}, s = i[r] || i.other, x = l[r] || l.other;
|
|
74
56
|
return r === "loading" ? /* @__PURE__ */ o(
|
|
75
|
-
|
|
57
|
+
h,
|
|
76
58
|
{
|
|
77
59
|
radius: "sm",
|
|
78
|
-
size:
|
|
79
|
-
style: { backgroundColor:
|
|
80
|
-
children: /* @__PURE__ */ o(
|
|
60
|
+
size: t,
|
|
61
|
+
style: { backgroundColor: s, color: "white" },
|
|
62
|
+
children: /* @__PURE__ */ o(w, { color: "white" })
|
|
81
63
|
}
|
|
82
64
|
) : /* @__PURE__ */ o(
|
|
83
|
-
|
|
65
|
+
h,
|
|
84
66
|
{
|
|
85
67
|
radius: "sm",
|
|
86
|
-
size:
|
|
87
|
-
style: { backgroundColor:
|
|
88
|
-
children: /* @__PURE__ */ o(
|
|
68
|
+
size: t,
|
|
69
|
+
style: { backgroundColor: s, color: "white" },
|
|
70
|
+
children: /* @__PURE__ */ o(E, { icon: x })
|
|
89
71
|
}
|
|
90
72
|
);
|
|
91
73
|
};
|
|
92
74
|
export {
|
|
93
|
-
|
|
75
|
+
k as getFileIcons
|
|
94
76
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getFileType: (mimeType: string, groupByCategory?: boolean
|
|
1
|
+
export declare const getFileType: (mimeType: string, groupByCategory?: boolean) => "other" | "presentation" | "documents" | "folder" | "media" | "pdf" | "doc" | "xls" | "xlsx" | "docx" | "pptx" | "diagram" | "archieve";
|
|
2
2
|
//# sourceMappingURL=getFileType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFileType.d.ts","sourceRoot":"","sources":["../../src/helpers/getFileType.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GACtB,UAAU,MAAM,EAChB,kBAAiB,OAAc,
|
|
1
|
+
{"version":3,"file":"getFileType.d.ts","sourceRoot":"","sources":["../../src/helpers/getFileType.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GACtB,UAAU,MAAM,EAChB,kBAAiB,OAAc,4IAsChC,CAAC"}
|
|
@@ -1,30 +1,9 @@
|
|
|
1
|
-
const n = (
|
|
2
|
-
if (
|
|
3
|
-
switch (c.split(".").pop()?.toLowerCase() ?? "") {
|
|
4
|
-
case "docx":
|
|
5
|
-
case "doc":
|
|
6
|
-
case "odt":
|
|
7
|
-
case "rtf":
|
|
8
|
-
return e ? "documents" : "docx";
|
|
9
|
-
case "xlsx":
|
|
10
|
-
case "xls":
|
|
11
|
-
case "ods":
|
|
12
|
-
case "csv":
|
|
13
|
-
return e ? "documents" : "xlsx";
|
|
14
|
-
case "pptx":
|
|
15
|
-
case "ppt":
|
|
16
|
-
case "odp":
|
|
17
|
-
return e ? "presentation" : "pptx";
|
|
18
|
-
case "pdf":
|
|
19
|
-
return "pdf";
|
|
20
|
-
}
|
|
21
|
-
if (t.includes("text"))
|
|
1
|
+
const n = (e, t = !0) => {
|
|
2
|
+
if (e.includes("text"))
|
|
22
3
|
return "documents";
|
|
23
|
-
if (
|
|
24
|
-
return "
|
|
25
|
-
|
|
26
|
-
return "video";
|
|
27
|
-
switch (t.toLowerCase()) {
|
|
4
|
+
if (e.includes("image") || e.includes("video"))
|
|
5
|
+
return "media";
|
|
6
|
+
switch (e.toLowerCase()) {
|
|
28
7
|
case "application/pdf":
|
|
29
8
|
return "pdf";
|
|
30
9
|
case "application/msword":
|
|
@@ -34,11 +13,11 @@ const n = (t, e = !0, c) => {
|
|
|
34
13
|
case "application/excel":
|
|
35
14
|
return "xls";
|
|
36
15
|
case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":
|
|
37
|
-
return
|
|
16
|
+
return t ? "documents" : "xlsx";
|
|
38
17
|
case "application/vnd.openxmlformats-officedocument.wordprocessingml.document":
|
|
39
|
-
return
|
|
18
|
+
return t ? "documents" : "docx";
|
|
40
19
|
case "application/vnd.openxmlformats-officedocument.presentationml.presentation":
|
|
41
|
-
return
|
|
20
|
+
return t ? "presentation" : "pptx";
|
|
42
21
|
case "application/slides":
|
|
43
22
|
return "media";
|
|
44
23
|
case "audio/mpeg":
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getPartOfTheDay: (timezone?: string) => 0 |
|
|
1
|
+
export declare const getPartOfTheDay: (timezone?: string) => 0 | 1 | 2 | 3;
|
|
2
2
|
//# sourceMappingURL=getPartOfTheDay.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { appMode } from './isAppMode';
|
|
2
|
-
declare const ALL_CAPABILITIES: readonly ["socialAuth", "forgotPassword", "inviteUsers", "exportPdf", "giphy", "comments", "plans", "shareAccess", "planBadges", "alias"
|
|
2
|
+
declare const ALL_CAPABILITIES: readonly ["socialAuth", "forgotPassword", "inviteUsers", "exportPdf", "giphy", "comments", "plans", "shareAccess", "planBadges", "alias"];
|
|
3
3
|
export type PlatformCapability = (typeof ALL_CAPABILITIES)[number];
|
|
4
4
|
export type PlatformInfo = {
|
|
5
5
|
mode: appMode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../src/helpers/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAQtC,QAAA,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../src/helpers/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAQtC,QAAA,MAAM,gBAAgB,2IAWZ,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAQnE,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,GAAG,EAAE,CAAC,UAAU,EAAE,kBAAkB,KAAK,OAAO,CAAC;IACjD,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,MAAM,OAAO,KAAG,YAO/C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OAAgB,CAAC;AAI5C,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,GAAG,OAAO,SAOjD,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,MAAM,GAAG,OAAO,SAOhD,CAAC"}
|
package/dist/helpers/platform.js
CHANGED
|
@@ -8,17 +8,16 @@ const t = [
|
|
|
8
8
|
"plans",
|
|
9
9
|
"shareAccess",
|
|
10
10
|
"planBadges",
|
|
11
|
-
"alias"
|
|
12
|
-
|
|
13
|
-
], a = {
|
|
11
|
+
"alias"
|
|
12
|
+
], r = {
|
|
14
13
|
SAAS: t,
|
|
15
14
|
DESKTOP: ["socialAuth"],
|
|
16
15
|
SERVER: t
|
|
17
16
|
}, c = (e) => {
|
|
18
|
-
const s =
|
|
17
|
+
const s = r[e] ?? [];
|
|
19
18
|
return {
|
|
20
19
|
mode: e,
|
|
21
|
-
has: (
|
|
20
|
+
has: (a) => s.includes(a),
|
|
22
21
|
isDesktop: e === "DESKTOP"
|
|
23
22
|
};
|
|
24
23
|
}, l = "SAAS", o = "platformModeOverride", n = (e) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"showNotifications.d.ts","sourceRoot":"","sources":["../../src/helpers/showNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUlC,OAAO,EAAE,gBAAgB,EAAiB,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"showNotifications.d.ts","sourceRoot":"","sources":["../../src/helpers/showNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUlC,OAAO,EAAE,gBAAgB,EAAiB,MAAM,wBAAwB,CAAC;AAKzE,KAAK,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAAC;AAetD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAChC;AAED,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,GAAG;IACzE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAChC,CAAC;AA4BF,eAAO,MAAM,wBAAwB,GACnC,QAAQ,EACR,OAAO,SAAS,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,EAErD,SAAS,OAAO,EAChB,UAAS;IACP,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,QAAQ,KAAK,WAAW,CAAC,GAAG,WAAW,CAAC;IAC5D,QAAQ,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK,WAAW,CAAC,GAAG,WAAW,CAAC;CACjD,iBA+BP,CAAC;AAkCF,eAAO,MAAM,uBAAuB,GAAI,OAAO,wBAAwB,SAKtE,CAAC;AAwBF,eAAO,MAAM,yBAAyB,GACpC,OAAO,wBAAwB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,SAMjD,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,wBAAwB,SAKtE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,wBAAwB,SAKtE,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,wBAAwB,SAKpE,CAAC"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { jsxs as I, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { InformationCircleIcon as N, CheckmarkCircle02Icon as y, Alert01Icon as B, Alert02Icon as
|
|
2
|
+
import { InformationCircleIcon as N, CheckmarkCircle02Icon as y, Alert01Icon as B, Alert02Icon as b } from "@hugeicons/core-free-icons";
|
|
3
3
|
import { HugeiconsIcon as a } from "@hugeicons/react";
|
|
4
|
-
import { Box as u, Button as
|
|
4
|
+
import { Box as u, Button as z } from "@mantine/core";
|
|
5
5
|
import { notifications as h } from "@mantine/notifications";
|
|
6
6
|
import { isFunction as f, isObject as d } from "lodash-es";
|
|
7
|
-
import { isOfflineSuppressed as z } from "./offlineSuppression.js";
|
|
8
7
|
import l from "./showNotifications.module.css.js";
|
|
9
8
|
let M = 0;
|
|
10
|
-
const
|
|
9
|
+
const O = /* @__PURE__ */ e(a, { icon: y, size: 14, color: "white" }), k = /* @__PURE__ */ e(a, { icon: b, size: 14, color: "white" }), x = /* @__PURE__ */ e(a, { icon: B, size: 14, color: "white" }), w = /* @__PURE__ */ e(a, { icon: N, size: 14, color: "white" }), g = (o, t) => t?.length ? /* @__PURE__ */ I(u, { children: [
|
|
11
10
|
/* @__PURE__ */ e(u, { children: o }),
|
|
12
11
|
/* @__PURE__ */ e(u, { className: l.actions, children: t.map((i, s) => /* @__PURE__ */ e(
|
|
13
|
-
|
|
12
|
+
z,
|
|
14
13
|
{
|
|
15
14
|
size: "compact-sm",
|
|
16
15
|
variant: i.variant ?? "default",
|
|
@@ -20,7 +19,7 @@ const S = /* @__PURE__ */ e(a, { icon: y, size: 14, color: "white" }), k = /* @_
|
|
|
20
19
|
},
|
|
21
20
|
s
|
|
22
21
|
)) })
|
|
23
|
-
] }) : o,
|
|
22
|
+
] }) : o, R = (o, t = {}) => {
|
|
24
23
|
const { successMsg: i, errorMsg: s } = t;
|
|
25
24
|
return o.then((c) => {
|
|
26
25
|
if (i) {
|
|
@@ -28,7 +27,7 @@ const S = /* @__PURE__ */ e(a, { icon: y, size: 14, color: "white" }), k = /* @_
|
|
|
28
27
|
id: t.notifyId,
|
|
29
28
|
...d(n) ? n : { message: n }
|
|
30
29
|
};
|
|
31
|
-
|
|
30
|
+
j(r);
|
|
32
31
|
}
|
|
33
32
|
return c;
|
|
34
33
|
}).catch((c) => {
|
|
@@ -37,11 +36,11 @@ const S = /* @__PURE__ */ e(a, { icon: y, size: 14, color: "white" }), k = /* @_
|
|
|
37
36
|
id: t.notifyId,
|
|
38
37
|
...d(n) ? n : { message: n }
|
|
39
38
|
};
|
|
40
|
-
|
|
39
|
+
v(r);
|
|
41
40
|
}
|
|
42
41
|
return c;
|
|
43
42
|
});
|
|
44
|
-
},
|
|
43
|
+
}, p = {
|
|
45
44
|
root: l.root,
|
|
46
45
|
icon: l.icon,
|
|
47
46
|
title: l.title,
|
|
@@ -57,18 +56,18 @@ const S = /* @__PURE__ */ e(a, { icon: y, size: 14, color: "white" }), k = /* @_
|
|
|
57
56
|
icon: t.icon,
|
|
58
57
|
withCloseButton: !0,
|
|
59
58
|
withBorder: !0,
|
|
60
|
-
classNames:
|
|
59
|
+
classNames: p,
|
|
61
60
|
onClose: () => {
|
|
62
61
|
c?.(o);
|
|
63
62
|
},
|
|
64
|
-
message:
|
|
63
|
+
message: g(s, i)
|
|
65
64
|
});
|
|
66
|
-
},
|
|
65
|
+
}, $ = (o) => {
|
|
67
66
|
m(o, {
|
|
68
67
|
color: "blue",
|
|
69
|
-
icon:
|
|
68
|
+
icon: w
|
|
70
69
|
});
|
|
71
|
-
},
|
|
70
|
+
}, S = (o, t) => {
|
|
72
71
|
const { actions: i, message: s, onClose: c, ...n } = o;
|
|
73
72
|
h.update({
|
|
74
73
|
color: t.color,
|
|
@@ -78,38 +77,38 @@ const S = /* @__PURE__ */ e(a, { icon: y, size: 14, color: "white" }), k = /* @_
|
|
|
78
77
|
icon: t.icon,
|
|
79
78
|
withCloseButton: !0,
|
|
80
79
|
withBorder: !0,
|
|
81
|
-
classNames:
|
|
80
|
+
classNames: p,
|
|
82
81
|
onClose: () => {
|
|
83
82
|
c?.(o);
|
|
84
83
|
},
|
|
85
|
-
message:
|
|
84
|
+
message: g(s, i)
|
|
86
85
|
});
|
|
87
|
-
},
|
|
88
|
-
|
|
86
|
+
}, D = (o) => {
|
|
87
|
+
S(o, {
|
|
89
88
|
color: "var(--mantine-color-blue-outline)",
|
|
90
|
-
icon:
|
|
89
|
+
icon: w
|
|
91
90
|
});
|
|
92
|
-
},
|
|
91
|
+
}, j = (o) => {
|
|
93
92
|
m(o, {
|
|
94
93
|
color: "green",
|
|
95
|
-
icon:
|
|
94
|
+
icon: O
|
|
96
95
|
});
|
|
97
|
-
},
|
|
96
|
+
}, G = (o) => {
|
|
98
97
|
m(o, {
|
|
99
98
|
color: "yellow",
|
|
100
99
|
icon: x
|
|
101
100
|
});
|
|
102
|
-
},
|
|
103
|
-
|
|
101
|
+
}, v = (o) => {
|
|
102
|
+
m(o, {
|
|
104
103
|
color: "red",
|
|
105
104
|
icon: k
|
|
106
105
|
});
|
|
107
106
|
};
|
|
108
107
|
export {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
108
|
+
v as showErrorNotification,
|
|
109
|
+
$ as showMessageNotification,
|
|
110
|
+
R as showRequestNotifications,
|
|
111
|
+
j as showSuccessNotification,
|
|
112
|
+
G as showWarningNotification,
|
|
113
|
+
D as updateMessageNotification
|
|
115
114
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_root_zr3bj_1", o = "_icon_zr3bj_15", c = "_title_zr3bj_49", s = "_description_zr3bj_65", i = "_actions_zr3bj_77", n = {
|
|
2
2
|
root: t,
|
|
3
3
|
icon: o,
|
|
4
4
|
title: c,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function useOutsideClick<T extends HTMLElement = HTMLElement>(handler: (event: MouseEvent | PointerEvent) => void, options?: {
|
|
2
2
|
events?: string[];
|
|
3
3
|
enabled?: boolean;
|
|
4
|
-
}): import("react").
|
|
4
|
+
}): import("react").MutableRefObject<T | null>;
|
|
5
5
|
//# sourceMappingURL=useOutsideClick.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOutsideClick.d.ts","sourceRoot":"","sources":["../../src/hooks/useOutsideClick.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EACjE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,YAAY,KAAK,IAAI,EACnD,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"useOutsideClick.d.ts","sourceRoot":"","sources":["../../src/hooks/useOutsideClick.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EACjE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,YAAY,KAAK,IAAI,EACnD,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,8CA+BnD"}
|