@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.
Files changed (200) hide show
  1. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +10 -10
  2. package/dist/components/AnimatedFigurePage/useParallax.d.ts +2 -2
  3. package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
  4. package/dist/components/AppContainer/components/AppSidebarButton.d.ts +1 -4
  5. package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
  6. package/dist/components/AppContainer/components/AppSidebarButton.js +15 -22
  7. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
  8. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +21 -22
  9. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  10. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +91 -48
  11. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
  12. package/dist/components/AppShell/AppShell.module.css.js +5 -5
  13. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +1 -3
  14. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
  15. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +63 -89
  16. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +1 -1
  17. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
  18. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +26 -35
  19. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
  20. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +1 -1
  21. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
  22. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +36 -43
  23. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +0 -4
  24. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
  25. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +20 -59
  26. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +18 -28
  27. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  28. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +18 -22
  29. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +1 -1
  30. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +8 -8
  31. package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
  32. package/dist/components/ColorPicker/ColorPicker.d.ts +21 -19
  33. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  34. package/dist/components/ColorPicker/ColorPicker.js +144 -136
  35. package/dist/components/ColorPicker/ColorPicker.module.css.js +31 -0
  36. package/dist/components/ColorPicker/ColorPickerList.d.ts +6 -0
  37. package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -0
  38. package/dist/components/ColorPicker/ColorPickerList.js +134 -0
  39. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts +13 -0
  40. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -0
  41. package/dist/components/ColorPicker/ColorPickerToolbar.js +149 -0
  42. package/dist/components/ColorPicker/icons.d.ts +11 -0
  43. package/dist/components/ColorPicker/icons.d.ts.map +1 -0
  44. package/dist/components/ColorPicker/icons.js +71 -0
  45. package/dist/components/ColorPicker/types.d.ts +49 -0
  46. package/dist/components/ColorPicker/types.d.ts.map +1 -0
  47. package/dist/components/ColorPicker/types.js +10 -0
  48. package/dist/components/ColorPicker/useRecentColors.d.ts +13 -0
  49. package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -0
  50. package/dist/components/ColorPicker/useRecentColors.js +39 -0
  51. package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
  52. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
  53. package/dist/components/CommentComposer/CommentEditorHotkeys.js +4 -3
  54. package/dist/components/CommentComposer/index.js +1 -1
  55. package/dist/components/CommentComposer/useVirtualAnchor.d.ts +1 -1
  56. package/dist/components/CommentComposer/useVirtualAnchor.d.ts.map +1 -1
  57. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  58. package/dist/components/Copyright/Copyright.module.css.js +1 -1
  59. package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
  60. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  61. package/dist/components/EmojiPicker/EmojiPanel.js +22 -22
  62. package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
  63. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  64. package/dist/components/EmojiPicker/EmojiPicker.js +1 -0
  65. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
  66. package/dist/components/EmojiPicker/IconsPanel.js +13 -13
  67. package/dist/components/EntityIcon.d.ts.map +1 -1
  68. package/dist/components/EntityIcon.js +33 -43
  69. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  70. package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
  71. package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
  72. package/dist/components/FilePicker/FilePicker.d.ts +4 -2
  73. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  74. package/dist/components/FilePicker/FilePicker.js +241 -226
  75. package/dist/components/FilePicker/FilePicker.module.css.js +14 -12
  76. package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
  77. package/dist/components/FilePicker/FilePickerGallery.js +60 -34
  78. package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
  79. package/dist/components/FilePicker/FilePickerGiphy.js +38 -39
  80. package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
  81. package/dist/components/FilePicker/FilePickerLink.js +29 -26
  82. package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
  83. package/dist/components/FilePicker/FilePickerUnsplash.js +42 -43
  84. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  85. package/dist/components/FilePicker/FilePickerUpload.js +51 -35
  86. package/dist/components/FilePicker/coverCollections.d.ts +4 -0
  87. package/dist/components/FilePicker/coverCollections.d.ts.map +1 -0
  88. package/dist/components/FilePicker/coverCollections.js +164 -0
  89. package/dist/components/FilePicker/index.d.ts +1 -0
  90. package/dist/components/FilePicker/index.d.ts.map +1 -1
  91. package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
  92. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  93. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
  94. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
  95. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
  96. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
  97. package/dist/components/FormViewer/helpers/conditions.d.ts +38 -38
  98. package/dist/components/FormViewer/helpers/helpers.d.ts +38 -38
  99. package/dist/components/FormViewer/helpers/steps.d.ts +38 -38
  100. package/dist/components/FormViewer/hooks/useActiveControl.d.ts +19 -19
  101. package/dist/components/FormViewer/hooks/useActiveStep.d.ts +38 -38
  102. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +0 -6
  103. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts.map +1 -1
  104. package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +3 -4
  105. package/dist/components/FormViewer/hooks/useFormMobile.d.ts +1 -1
  106. package/dist/components/FormViewer/hooks/useFormMobile.d.ts.map +1 -1
  107. package/dist/components/FormViewer/store/formStore.d.ts +248 -248
  108. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  109. package/dist/components/FormViewer/store/formStoreApi.d.ts +124 -124
  110. package/dist/components/FormViewer/store/selectors.d.ts +11655 -11655
  111. package/dist/components/FormViewer/types/form.d.ts +1 -1
  112. package/dist/components/FormViewer/types/form.d.ts.map +1 -1
  113. package/dist/components/FormViewer/types/schemes.d.ts +6358 -381
  114. package/dist/components/FormViewer/types/schemes.d.ts.map +1 -1
  115. package/dist/components/FormViewer/types/schemes.js +1 -1
  116. package/dist/components/GroupAvatar/index.d.ts +1 -3
  117. package/dist/components/GroupAvatar/index.d.ts.map +1 -1
  118. package/dist/components/GroupAvatar/index.js +21 -24
  119. package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
  120. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
  121. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
  122. package/dist/components/Loaders/styles.module.css.js +6 -6
  123. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
  124. package/dist/components/MediaLibrary/MediaLibraryRow.js +7 -7
  125. package/dist/components/NavMenu/NavMenu.d.ts +1 -3
  126. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  127. package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
  128. package/dist/components/NavMenu/components/DnDProvider.d.ts +1 -1
  129. package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
  130. package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts +1 -7
  131. package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts.map +1 -1
  132. package/dist/components/NavMenu/components/NavMenuActionIcon.js +23 -21
  133. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  134. package/dist/components/NewColorPicker/components/Target.d.ts +1 -3
  135. package/dist/components/NewColorPicker/components/Target.d.ts.map +1 -1
  136. package/dist/components/NewColorPicker/components/Target.js +43 -48
  137. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
  138. package/dist/components/Notification/Notification.js +1 -3
  139. package/dist/components/Notification/Notification.module.css.js +1 -1
  140. package/dist/components/Notification/NotificationCard.d.ts +1 -3
  141. package/dist/components/Notification/NotificationCard.d.ts.map +1 -1
  142. package/dist/components/Notification/NotificationCard.js +86 -87
  143. package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +3 -3
  144. package/dist/components/OnBoarding/steps/styles.module.css.js +9 -9
  145. package/dist/components/OnBoarding/styles.module.css.js +7 -7
  146. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts +1 -1
  147. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts.map +1 -1
  148. package/dist/components/OnboardingTour/OnboardingTourWrapper.js +74 -70
  149. package/dist/components/ProjectIcon/ProjectIcon.d.ts +12 -7
  150. package/dist/components/ProjectIcon/ProjectIcon.d.ts.map +1 -1
  151. package/dist/components/ProjectIcon/ProjectIcon.js +60 -58
  152. package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
  153. package/dist/components/SettingsSection/styles.module.css.js +1 -1
  154. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
  155. package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
  156. package/dist/components/UserAvatar/index.d.ts +1 -2
  157. package/dist/components/UserAvatar/index.d.ts.map +1 -1
  158. package/dist/components/UserAvatar/index.js +35 -38
  159. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +3 -3
  160. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts.map +1 -1
  161. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +18 -19
  162. package/dist/components/WorkspaceMenu/WorkspaceItem.js +17 -17
  163. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +7 -7
  164. package/dist/components/table/FrontTable.d.ts.map +1 -1
  165. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  166. package/dist/config/brand.js +8 -8
  167. package/dist/config/envConfig.d.ts +0 -8
  168. package/dist/config/envConfig.d.ts.map +1 -1
  169. package/dist/config/envConfig.js +13 -21
  170. package/dist/helpers/getFileIcons.d.ts.map +1 -1
  171. package/dist/helpers/getFileIcons.js +45 -63
  172. package/dist/helpers/getFileType.d.ts +1 -1
  173. package/dist/helpers/getFileType.d.ts.map +1 -1
  174. package/dist/helpers/getFileType.js +8 -29
  175. package/dist/helpers/getPartOfTheDay.d.ts +1 -1
  176. package/dist/helpers/platform.d.ts +1 -1
  177. package/dist/helpers/platform.d.ts.map +1 -1
  178. package/dist/helpers/platform.js +4 -5
  179. package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
  180. package/dist/helpers/showNotifications.d.ts.map +1 -1
  181. package/dist/helpers/showNotifications.js +29 -30
  182. package/dist/helpers/showNotifications.module.css.js +1 -1
  183. package/dist/hooks/useOutsideClick.d.ts +1 -1
  184. package/dist/hooks/useOutsideClick.d.ts.map +1 -1
  185. package/dist/index.css +1 -1
  186. package/dist/index.d.ts +6 -1
  187. package/dist/index.d.ts.map +1 -1
  188. package/dist/index.js +509 -498
  189. package/dist/lang/locales/ui_en.json.js +20 -18
  190. package/dist/lang/locales/ui_es.json.js +14 -12
  191. package/dist/lang/locales/ui_ru.json.js +15 -13
  192. package/dist/node_modules/countries-and-timezones/esm/index.js +4011 -281
  193. package/docs/README.md +499 -499
  194. package/package.json +75 -75
  195. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts +0 -6
  196. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts.map +0 -1
  197. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.js +0 -16
  198. package/dist/helpers/offlineSuppression.d.ts +0 -3
  199. package/dist/helpers/offlineSuppression.d.ts.map +0 -1
  200. package/dist/helpers/offlineSuppression.js +0 -8
@@ -1,19 +1,9 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
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 = {
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
- // 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",
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: "#40C057",
40
- // green-6 (Excel)
41
- xlsx: "#40C057",
42
- sheet: "#40C057",
43
- pptx: "#FF922B",
44
- // orange-5 (PowerPoint)
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: 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;
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
- F,
57
+ h,
76
58
  {
77
59
  radius: "sm",
78
- size: e,
79
- style: { backgroundColor: d, color: "white" },
80
- children: /* @__PURE__ */ o(A, { color: "white" })
60
+ size: t,
61
+ style: { backgroundColor: s, color: "white" },
62
+ children: /* @__PURE__ */ o(w, { color: "white" })
81
63
  }
82
64
  ) : /* @__PURE__ */ o(
83
- F,
65
+ h,
84
66
  {
85
67
  radius: "sm",
86
- size: e,
87
- style: { backgroundColor: d, color: "white" },
88
- children: /* @__PURE__ */ o(C, { icon: u })
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
- H as getFileIcons
75
+ k as getFileIcons
94
76
  };
@@ -1,2 +1,2 @@
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";
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,EAC/B,WAAW,MAAM,GAAG,IAAI,gKAkEzB,CAAC"}
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 = (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"))
1
+ const n = (e, t = !0) => {
2
+ if (e.includes("text"))
22
3
  return "documents";
23
- if (t.includes("image"))
24
- return "image";
25
- if (t.includes("video"))
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 e ? "documents" : "xlsx";
16
+ return t ? "documents" : "xlsx";
38
17
  case "application/vnd.openxmlformats-officedocument.wordprocessingml.document":
39
- return e ? "documents" : "docx";
18
+ return t ? "documents" : "docx";
40
19
  case "application/vnd.openxmlformats-officedocument.presentationml.presentation":
41
- return e ? "presentation" : "pptx";
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 | 3 | 1 | 2;
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", "memberCount"];
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,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"}
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"}
@@ -8,17 +8,16 @@ const t = [
8
8
  "plans",
9
9
  "shareAccess",
10
10
  "planBadges",
11
- "alias",
12
- "memberCount"
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 = a[e] ?? [];
17
+ const s = r[e] ?? [];
19
18
  return {
20
19
  mode: e,
21
- has: (r) => s.includes(r),
20
+ has: (a) => s.includes(a),
22
21
  isDesktop: e === "DESKTOP"
23
22
  };
24
23
  }, l = "SAAS", o = "platformModeOverride", n = (e) => {
@@ -1,9 +1,9 @@
1
- const o = "_root_1y0ew_1", t = "_body_1y0ew_7", s = {
1
+ const o = "_root_1rr11_1", r = "_body_1rr11_13", t = {
2
2
  root: o,
3
- body: t
3
+ body: r
4
4
  };
5
5
  export {
6
- t as body,
7
- s as default,
6
+ r as body,
7
+ t as default,
8
8
  o as root
9
9
  };
@@ -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;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
+ {"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 O } from "@hugeicons/core-free-icons";
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 b } from "@mantine/core";
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 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: [
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
- b,
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, D = (o, t = {}) => {
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
- v(r);
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
- q(r);
39
+ v(r);
41
40
  }
42
41
  return c;
43
42
  });
44
- }, g = {
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: g,
59
+ classNames: p,
61
60
  onClose: () => {
62
61
  c?.(o);
63
62
  },
64
- message: w(s, i)
63
+ message: g(s, i)
65
64
  });
66
- }, G = (o) => {
65
+ }, $ = (o) => {
67
66
  m(o, {
68
67
  color: "blue",
69
- icon: p
68
+ icon: w
70
69
  });
71
- }, j = (o, t) => {
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: g,
80
+ classNames: p,
82
81
  onClose: () => {
83
82
  c?.(o);
84
83
  },
85
- message: w(s, i)
84
+ message: g(s, i)
86
85
  });
87
- }, J = (o) => {
88
- j(o, {
86
+ }, D = (o) => {
87
+ S(o, {
89
88
  color: "var(--mantine-color-blue-outline)",
90
- icon: p
89
+ icon: w
91
90
  });
92
- }, v = (o) => {
91
+ }, j = (o) => {
93
92
  m(o, {
94
93
  color: "green",
95
- icon: S
94
+ icon: O
96
95
  });
97
- }, K = (o) => {
96
+ }, G = (o) => {
98
97
  m(o, {
99
98
  color: "yellow",
100
99
  icon: x
101
100
  });
102
- }, q = (o) => {
103
- z() || m(o, {
101
+ }, v = (o) => {
102
+ m(o, {
104
103
  color: "red",
105
104
  icon: k
106
105
  });
107
106
  };
108
107
  export {
109
- q as showErrorNotification,
110
- G as showMessageNotification,
111
- D as showRequestNotifications,
112
- v as showSuccessNotification,
113
- K as showWarningNotification,
114
- J as updateMessageNotification
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 = "_root_rhb1u_1", o = "_icon_rhb1u_8", c = "_title_rhb1u_25", s = "_description_rhb1u_33", i = "_actions_rhb1u_39", n = {
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").RefObject<T | null>;
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,uCA+BnD"}
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"}