@layers-app/shared 0.3.7 → 0.3.9
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 +4 -1
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +22 -15
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +22 -21
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +48 -91
- 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 +3 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +89 -63
- 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 +35 -26
- 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 +43 -36
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts +6 -0
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.js +16 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +4 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +59 -20
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +28 -18
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +22 -18
- 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 +23 -18
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +145 -139
- package/dist/components/ColorPicker/ColorPicker.module.css.js +14 -14
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +71 -88
- package/dist/components/ColorPicker/icons.js +1 -1
- 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 +3 -4
- 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 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +0 -1
- 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 +43 -33
- 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 +2 -4
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +226 -241
- package/dist/components/FilePicker/FilePicker.module.css.js +12 -14
- package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGallery.js +34 -60
- package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.js +39 -38
- package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerLink.js +26 -29
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +43 -42
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +35 -51
- package/dist/components/FilePicker/index.d.ts +0 -1
- 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 +6 -0
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts.map +1 -1
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +4 -3
- 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 +381 -6358
- 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 +3 -1
- package/dist/components/GroupAvatar/index.d.ts.map +1 -1
- package/dist/components/GroupAvatar/index.js +24 -21
- 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 +3 -1
- 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 +7 -1
- package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuActionIcon.js +21 -23
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NewColorPicker/components/Target.d.ts +3 -1
- package/dist/components/NewColorPicker/components/Target.d.ts.map +1 -1
- package/dist/components/NewColorPicker/components/Target.js +48 -43
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.js +3 -1
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/Notification/NotificationCard.d.ts +3 -1
- package/dist/components/Notification/NotificationCard.d.ts.map +1 -1
- package/dist/components/Notification/NotificationCard.js +87 -86
- 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 +70 -74
- package/dist/components/ProjectIcon/ProjectIcon.d.ts +7 -12
- package/dist/components/ProjectIcon/ProjectIcon.d.ts.map +1 -1
- package/dist/components/ProjectIcon/ProjectIcon.js +58 -60
- 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/TextColorIcon.d.ts +8 -0
- package/dist/components/TextColorIcon.d.ts.map +1 -0
- package/dist/components/TextColorIcon.js +60 -0
- package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
- package/dist/components/UserAvatar/index.d.ts +2 -1
- package/dist/components/UserAvatar/index.d.ts.map +1 -1
- package/dist/components/UserAvatar/index.js +38 -35
- 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 +19 -18
- 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/envConfig.d.ts +8 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +21 -13
- package/dist/helpers/getFileIcons.d.ts.map +1 -1
- package/dist/helpers/getFileIcons.js +63 -45
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +29 -8
- package/dist/helpers/getPartOfTheDay.d.ts +1 -1
- package/dist/helpers/offlineSuppression.d.ts +3 -0
- package/dist/helpers/offlineSuppression.d.ts.map +1 -0
- package/dist/helpers/offlineSuppression.js +8 -0
- package/dist/helpers/platform.d.ts +1 -1
- package/dist/helpers/platform.d.ts.map +1 -1
- package/dist/helpers/platform.js +5 -4
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +30 -29
- 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 +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +467 -465
- package/dist/lang/locales/ui_en.json.js +18 -20
- package/dist/lang/locales/ui_es.json.js +12 -14
- package/dist/lang/locales/ui_ru.json.js +13 -15
- package/dist/node_modules/countries-and-timezones/esm/index.js +281 -4011
- package/docs/README.md +499 -499
- package/package.json +75 -75
- package/dist/components/FilePicker/coverCollections.d.ts +0 -4
- package/dist/components/FilePicker/coverCollections.d.ts.map +0 -1
- package/dist/components/FilePicker/coverCollections.js +0 -164
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { AlertCircleIcon as
|
|
3
|
-
import { HugeiconsIcon as
|
|
4
|
-
import { ThemeIcon as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
2
|
+
import { Folder01Icon as x, AlertCircleIcon as a, File01Icon as E, Ppt01Icon as m, Xls01Icon as c, HtmlFile01Icon as p, Doc01Icon as n, Pdf01Icon as g, MpFour01Icon as s, Image01Icon as B, FileVideoIcon as v, Mp301Icon as w, Zip01Icon as I, Rar01Icon as y } from "@hugeicons/core-free-icons";
|
|
3
|
+
import { HugeiconsIcon as C } from "@hugeicons/react";
|
|
4
|
+
import { ThemeIcon as F, Loader as A } from "@mantine/core";
|
|
5
|
+
const H = (h, f, e = 16) => {
|
|
6
|
+
const t = (h || "").toLowerCase(), r = f || t === "folder" ? "folder" : t;
|
|
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 = {
|
|
7
17
|
rar: "#4C6EF5",
|
|
8
18
|
// indigo-6
|
|
9
19
|
archieve: "#4C6EF5",
|
|
@@ -11,66 +21,74 @@ const k = (I, f, t = 16) => {
|
|
|
11
21
|
// violet-6
|
|
12
22
|
mp4: "#CC5DE8",
|
|
13
23
|
// grape-5
|
|
24
|
+
video: "#CC5DE8",
|
|
25
|
+
image: "#15AABF",
|
|
26
|
+
// cyan-6
|
|
14
27
|
media: "#CC5DE8",
|
|
15
28
|
pdf: "#FA5252",
|
|
16
29
|
// red-6
|
|
17
|
-
|
|
18
|
-
//
|
|
19
|
-
|
|
20
|
-
|
|
30
|
+
// Microsoft Office brand-aligned palette (Mantine-bright shades):
|
|
31
|
+
// docx → blue, xlsx → green, pptx → orange
|
|
32
|
+
doc: "#228BE6",
|
|
33
|
+
// blue-6 (Word)
|
|
34
|
+
docx: "#228BE6",
|
|
35
|
+
documents: "#228BE6",
|
|
21
36
|
html: "#22B8CF",
|
|
22
37
|
// cyan-5
|
|
23
38
|
diagram: "#22B8CF",
|
|
24
|
-
xls: "#
|
|
25
|
-
//
|
|
26
|
-
xlsx: "#
|
|
27
|
-
sheet: "#
|
|
28
|
-
pptx: "#
|
|
29
|
-
|
|
39
|
+
xls: "#40C057",
|
|
40
|
+
// green-6 (Excel)
|
|
41
|
+
xlsx: "#40C057",
|
|
42
|
+
sheet: "#40C057",
|
|
43
|
+
pptx: "#FF922B",
|
|
44
|
+
// orange-5 (PowerPoint)
|
|
45
|
+
presentation: "#FF922B",
|
|
30
46
|
error: "#868E96",
|
|
31
47
|
loading: "#868E96",
|
|
32
48
|
other: "#868E96",
|
|
33
49
|
folder: "#868E96"
|
|
34
50
|
}, l = {
|
|
35
|
-
rar:
|
|
36
|
-
archieve:
|
|
37
|
-
zip:
|
|
38
|
-
mp3:
|
|
39
|
-
mp4:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
rar: y,
|
|
52
|
+
archieve: I,
|
|
53
|
+
zip: I,
|
|
54
|
+
mp3: w,
|
|
55
|
+
mp4: s,
|
|
56
|
+
video: v,
|
|
57
|
+
image: B,
|
|
58
|
+
media: s,
|
|
59
|
+
pdf: g,
|
|
60
|
+
doc: n,
|
|
61
|
+
docx: n,
|
|
62
|
+
documents: n,
|
|
63
|
+
html: p,
|
|
64
|
+
diagram: p,
|
|
65
|
+
xls: c,
|
|
66
|
+
xlsx: c,
|
|
67
|
+
sheet: c,
|
|
68
|
+
pptx: m,
|
|
69
|
+
presentation: m,
|
|
70
|
+
other: a,
|
|
71
|
+
folder: E,
|
|
72
|
+
error: a
|
|
73
|
+
}, d = i[r] || i.other, u = l[r] || l.other;
|
|
56
74
|
return r === "loading" ? /* @__PURE__ */ o(
|
|
57
|
-
|
|
75
|
+
F,
|
|
58
76
|
{
|
|
59
77
|
radius: "sm",
|
|
60
|
-
size:
|
|
61
|
-
style: { backgroundColor:
|
|
62
|
-
children: /* @__PURE__ */ o(
|
|
78
|
+
size: e,
|
|
79
|
+
style: { backgroundColor: d, color: "white" },
|
|
80
|
+
children: /* @__PURE__ */ o(A, { color: "white" })
|
|
63
81
|
}
|
|
64
82
|
) : /* @__PURE__ */ o(
|
|
65
|
-
|
|
83
|
+
F,
|
|
66
84
|
{
|
|
67
85
|
radius: "sm",
|
|
68
|
-
size:
|
|
69
|
-
style: { backgroundColor:
|
|
70
|
-
children: /* @__PURE__ */ o(
|
|
86
|
+
size: e,
|
|
87
|
+
style: { backgroundColor: d, color: "white" },
|
|
88
|
+
children: /* @__PURE__ */ o(C, { icon: u })
|
|
71
89
|
}
|
|
72
90
|
);
|
|
73
91
|
};
|
|
74
92
|
export {
|
|
75
|
-
|
|
93
|
+
H as getFileIcons
|
|
76
94
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getFileType: (mimeType: string, groupByCategory?: boolean) => "other" | "presentation" | "documents" | "folder" | "
|
|
1
|
+
export declare const getFileType: (mimeType: string, groupByCategory?: boolean, fileName?: string | null) => "other" | "presentation" | "image" | "documents" | "folder" | "docx" | "xlsx" | "pptx" | "pdf" | "video" | "doc" | "xls" | "media" | "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,EAC/B,WAAW,MAAM,GAAG,IAAI,gKAkEzB,CAAC"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
|
-
const n = (
|
|
2
|
-
if (
|
|
1
|
+
const n = (t, e = !0, c) => {
|
|
2
|
+
if (c)
|
|
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"))
|
|
3
22
|
return "documents";
|
|
4
|
-
if (
|
|
5
|
-
return "
|
|
6
|
-
|
|
23
|
+
if (t.includes("image"))
|
|
24
|
+
return "image";
|
|
25
|
+
if (t.includes("video"))
|
|
26
|
+
return "video";
|
|
27
|
+
switch (t.toLowerCase()) {
|
|
7
28
|
case "application/pdf":
|
|
8
29
|
return "pdf";
|
|
9
30
|
case "application/msword":
|
|
@@ -13,11 +34,11 @@ const n = (e, t = !0) => {
|
|
|
13
34
|
case "application/excel":
|
|
14
35
|
return "xls";
|
|
15
36
|
case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":
|
|
16
|
-
return
|
|
37
|
+
return e ? "documents" : "xlsx";
|
|
17
38
|
case "application/vnd.openxmlformats-officedocument.wordprocessingml.document":
|
|
18
|
-
return
|
|
39
|
+
return e ? "documents" : "docx";
|
|
19
40
|
case "application/vnd.openxmlformats-officedocument.presentationml.presentation":
|
|
20
|
-
return
|
|
41
|
+
return e ? "presentation" : "pptx";
|
|
21
42
|
case "application/slides":
|
|
22
43
|
return "media";
|
|
23
44
|
case "audio/mpeg":
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getPartOfTheDay: (timezone?: string) => 0 |
|
|
1
|
+
export declare const getPartOfTheDay: (timezone?: string) => 0 | 3 | 1 | 2;
|
|
2
2
|
//# sourceMappingURL=getPartOfTheDay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offlineSuppression.d.ts","sourceRoot":"","sources":["../../src/helpers/offlineSuppression.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,GAAI,OAAO,OAAO,KAAG,IAEtD,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,OAAqB,CAAC"}
|
|
@@ -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", "memberCount"];
|
|
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,0JAYZ,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,16 +8,17 @@ const t = [
|
|
|
8
8
|
"plans",
|
|
9
9
|
"shareAccess",
|
|
10
10
|
"planBadges",
|
|
11
|
-
"alias"
|
|
12
|
-
|
|
11
|
+
"alias",
|
|
12
|
+
"memberCount"
|
|
13
|
+
], a = {
|
|
13
14
|
SAAS: t,
|
|
14
15
|
DESKTOP: ["socialAuth"],
|
|
15
16
|
SERVER: t
|
|
16
17
|
}, c = (e) => {
|
|
17
|
-
const s =
|
|
18
|
+
const s = a[e] ?? [];
|
|
18
19
|
return {
|
|
19
20
|
mode: e,
|
|
20
|
-
has: (
|
|
21
|
+
has: (r) => s.includes(r),
|
|
21
22
|
isDesktop: e === "DESKTOP"
|
|
22
23
|
};
|
|
23
24
|
}, 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;AAOzE,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,SAMpE,CAAC"}
|
|
@@ -1,15 +1,16 @@
|
|
|
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 O } 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 b } 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";
|
|
7
8
|
import l from "./showNotifications.module.css.js";
|
|
8
9
|
let M = 0;
|
|
9
|
-
const
|
|
10
|
+
const S = /* @__PURE__ */ e(a, { icon: y, size: 14, color: "white" }), k = /* @__PURE__ */ e(a, { icon: O, size: 14, color: "white" }), x = /* @__PURE__ */ e(a, { icon: B, size: 14, color: "white" }), p = /* @__PURE__ */ e(a, { icon: N, size: 14, color: "white" }), w = (o, t) => t?.length ? /* @__PURE__ */ I(u, { children: [
|
|
10
11
|
/* @__PURE__ */ e(u, { children: o }),
|
|
11
12
|
/* @__PURE__ */ e(u, { className: l.actions, children: t.map((i, s) => /* @__PURE__ */ e(
|
|
12
|
-
|
|
13
|
+
b,
|
|
13
14
|
{
|
|
14
15
|
size: "compact-sm",
|
|
15
16
|
variant: i.variant ?? "default",
|
|
@@ -19,7 +20,7 @@ const O = /* @__PURE__ */ e(a, { icon: y, size: 14, color: "white" }), k = /* @_
|
|
|
19
20
|
},
|
|
20
21
|
s
|
|
21
22
|
)) })
|
|
22
|
-
] }) : o,
|
|
23
|
+
] }) : o, D = (o, t = {}) => {
|
|
23
24
|
const { successMsg: i, errorMsg: s } = t;
|
|
24
25
|
return o.then((c) => {
|
|
25
26
|
if (i) {
|
|
@@ -27,7 +28,7 @@ const O = /* @__PURE__ */ e(a, { icon: y, size: 14, color: "white" }), k = /* @_
|
|
|
27
28
|
id: t.notifyId,
|
|
28
29
|
...d(n) ? n : { message: n }
|
|
29
30
|
};
|
|
30
|
-
|
|
31
|
+
v(r);
|
|
31
32
|
}
|
|
32
33
|
return c;
|
|
33
34
|
}).catch((c) => {
|
|
@@ -36,11 +37,11 @@ const O = /* @__PURE__ */ e(a, { icon: y, size: 14, color: "white" }), k = /* @_
|
|
|
36
37
|
id: t.notifyId,
|
|
37
38
|
...d(n) ? n : { message: n }
|
|
38
39
|
};
|
|
39
|
-
|
|
40
|
+
q(r);
|
|
40
41
|
}
|
|
41
42
|
return c;
|
|
42
43
|
});
|
|
43
|
-
},
|
|
44
|
+
}, g = {
|
|
44
45
|
root: l.root,
|
|
45
46
|
icon: l.icon,
|
|
46
47
|
title: l.title,
|
|
@@ -56,18 +57,18 @@ const O = /* @__PURE__ */ e(a, { icon: y, size: 14, color: "white" }), k = /* @_
|
|
|
56
57
|
icon: t.icon,
|
|
57
58
|
withCloseButton: !0,
|
|
58
59
|
withBorder: !0,
|
|
59
|
-
classNames:
|
|
60
|
+
classNames: g,
|
|
60
61
|
onClose: () => {
|
|
61
62
|
c?.(o);
|
|
62
63
|
},
|
|
63
|
-
message:
|
|
64
|
+
message: w(s, i)
|
|
64
65
|
});
|
|
65
|
-
},
|
|
66
|
+
}, G = (o) => {
|
|
66
67
|
m(o, {
|
|
67
68
|
color: "blue",
|
|
68
|
-
icon:
|
|
69
|
+
icon: p
|
|
69
70
|
});
|
|
70
|
-
},
|
|
71
|
+
}, j = (o, t) => {
|
|
71
72
|
const { actions: i, message: s, onClose: c, ...n } = o;
|
|
72
73
|
h.update({
|
|
73
74
|
color: t.color,
|
|
@@ -77,38 +78,38 @@ const O = /* @__PURE__ */ e(a, { icon: y, size: 14, color: "white" }), k = /* @_
|
|
|
77
78
|
icon: t.icon,
|
|
78
79
|
withCloseButton: !0,
|
|
79
80
|
withBorder: !0,
|
|
80
|
-
classNames:
|
|
81
|
+
classNames: g,
|
|
81
82
|
onClose: () => {
|
|
82
83
|
c?.(o);
|
|
83
84
|
},
|
|
84
|
-
message:
|
|
85
|
+
message: w(s, i)
|
|
85
86
|
});
|
|
86
|
-
},
|
|
87
|
-
|
|
87
|
+
}, J = (o) => {
|
|
88
|
+
j(o, {
|
|
88
89
|
color: "var(--mantine-color-blue-outline)",
|
|
89
|
-
icon:
|
|
90
|
+
icon: p
|
|
90
91
|
});
|
|
91
|
-
},
|
|
92
|
+
}, v = (o) => {
|
|
92
93
|
m(o, {
|
|
93
94
|
color: "green",
|
|
94
|
-
icon:
|
|
95
|
+
icon: S
|
|
95
96
|
});
|
|
96
|
-
},
|
|
97
|
+
}, K = (o) => {
|
|
97
98
|
m(o, {
|
|
98
99
|
color: "yellow",
|
|
99
100
|
icon: x
|
|
100
101
|
});
|
|
101
|
-
},
|
|
102
|
-
m(o, {
|
|
102
|
+
}, q = (o) => {
|
|
103
|
+
z() || m(o, {
|
|
103
104
|
color: "red",
|
|
104
105
|
icon: k
|
|
105
106
|
});
|
|
106
107
|
};
|
|
107
108
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
109
|
+
q as showErrorNotification,
|
|
110
|
+
G as showMessageNotification,
|
|
111
|
+
D as showRequestNotifications,
|
|
112
|
+
v as showSuccessNotification,
|
|
113
|
+
K as showWarningNotification,
|
|
114
|
+
J as updateMessageNotification
|
|
114
115
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_root_rhb1u_1", o = "_icon_rhb1u_8", c = "_title_rhb1u_25", s = "_description_rhb1u_33", i = "_actions_rhb1u_39", 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").RefObject<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,uCA+BnD"}
|