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