@layers-app/shared 0.2.4 → 0.2.6

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 (341) hide show
  1. package/dist/assets/jsons/emoji-categorized-windows.json.js +4 -0
  2. package/dist/assets/jsons/emoji-categorized-windows10.json.js +4 -0
  3. package/dist/assets/svg/flags/es.svg.js +4 -0
  4. package/dist/assets/svg/flags/ru.svg.js +4 -0
  5. package/dist/assets/svg/flags/us.svg.js +4 -0
  6. package/dist/assets/svg/globeIcon.svg.js +5 -0
  7. package/dist/assets/svg/socials/github.svg.js +5 -0
  8. package/dist/assets/svg/socials/instagram.svg.js +5 -0
  9. package/dist/assets/svg/socials/x.svg.js +5 -0
  10. package/dist/assets/svg/socials/youtube.svg.js +5 -0
  11. package/dist/assets/svg/users.svg.js +5 -0
  12. package/dist/assets/svg/whatsapp-icon.svg.js +5 -0
  13. package/dist/components/AliasTextInput/AliasTextInput.d.ts +3 -1
  14. package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
  15. package/dist/components/AliasTextInput/AliasTextInput.js +63 -54
  16. package/dist/components/AppContainer/AppContainer.d.ts +1 -1
  17. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  18. package/dist/components/AppContainer/AppContainer.js +48 -45
  19. package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
  20. package/dist/components/AppContainer/components/AppSidebarButton.js +1 -1
  21. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +5 -5
  22. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  23. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +57 -44
  24. package/dist/components/AppContainer/components/Main.d.ts +5 -1
  25. package/dist/components/AppContainer/components/Main.d.ts.map +1 -1
  26. package/dist/components/AppContainer/components/Main.js +11 -8
  27. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  28. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +34 -19
  29. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
  30. package/dist/components/AppContainer/components/menus/MoreMenu.js +8 -8
  31. package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.d.ts +1 -0
  32. package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.d.ts.map +1 -1
  33. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  34. package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
  35. package/dist/components/AppContainer/hooks/useAppContainer.js +45 -42
  36. package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
  37. package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +1 -0
  38. package/dist/components/AppContainer/types.d.ts +2 -0
  39. package/dist/components/AppContainer/types.d.ts.map +1 -1
  40. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts +1 -1
  41. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts.map +1 -1
  42. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +1 -1
  43. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
  44. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +5 -5
  45. package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts +1 -1
  46. package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts.map +1 -1
  47. package/dist/components/AttachmentsGalleryModal/components/ModalFooter.js +4 -4
  48. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts +1 -1
  49. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  50. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
  51. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts +1 -1
  52. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
  53. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +1 -1
  54. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
  55. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +9 -9
  56. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  57. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +114 -88
  58. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +9 -9
  59. package/dist/components/BouncingLogo/BouncingLogo.d.ts +6 -2
  60. package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
  61. package/dist/components/BouncingLogo/BouncingLogo.js +13 -14
  62. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +12 -10
  63. package/dist/components/ColorPicker/ColorPicker.d.ts +2 -0
  64. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  65. package/dist/components/ColorPicker/ColorPicker.js +66 -59
  66. package/dist/components/CommentComposer/CommentEditorHotkeys.js +1 -1
  67. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  68. package/dist/components/Copyright/index.d.ts.map +1 -1
  69. package/dist/components/Copyright/index.js +6 -6
  70. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  71. package/dist/components/EmojiPicker/EmojiPanel.js +14 -14
  72. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  73. package/dist/components/EmojiPicker/EmojiPicker.js +87 -95
  74. package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
  75. package/dist/components/EmojiPicker/IconsPanel.js +37 -38
  76. package/dist/components/EmojiPicker/utils.d.ts +11 -0
  77. package/dist/components/EmojiPicker/utils.d.ts.map +1 -0
  78. package/dist/components/EmojiPicker/utils.js +46 -0
  79. package/dist/components/EntityIcon.d.ts +5 -2
  80. package/dist/components/EntityIcon.d.ts.map +1 -1
  81. package/dist/components/EntityIcon.js +44 -46
  82. package/dist/components/FilePicker/FilePicker.d.ts +33 -2
  83. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  84. package/dist/components/FilePicker/FilePicker.js +155 -105
  85. package/dist/components/FilePicker/FilePicker.module.css.js +9 -7
  86. package/dist/components/FilePicker/FilePickerGoogleDrive.d.ts +22 -0
  87. package/dist/components/FilePicker/FilePickerGoogleDrive.d.ts.map +1 -0
  88. package/dist/components/FilePicker/FilePickerGoogleDrive.js +86 -0
  89. package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
  90. package/dist/components/FilePicker/FilePickerUnsplash.js +69 -52
  91. package/dist/components/FilePicker/types.d.ts +1 -1
  92. package/dist/components/FilePicker/types.d.ts.map +1 -1
  93. package/dist/components/FormViewer/FormViewer.module.css.js +18 -18
  94. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts +4 -2
  95. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts.map +1 -1
  96. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.js +51 -26
  97. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.d.ts.map +1 -1
  98. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.js +25 -23
  99. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  100. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts +5 -2
  101. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts.map +1 -1
  102. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +105 -96
  103. package/dist/components/FormViewer/components/fields/SliderField.d.ts.map +1 -1
  104. package/dist/components/FormViewer/components/fields/SliderField.js +19 -18
  105. package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts.map +1 -1
  106. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +1 -1
  107. package/dist/components/FormViewer/helpers/cssScoping.d.ts.map +1 -1
  108. package/dist/components/FormViewer/helpers/staticClasses.d.ts.map +1 -1
  109. package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +15 -15
  110. package/dist/components/FormViewer/hooks/useInterpolateText.js +3 -3
  111. package/dist/components/FormViewer/store/formStore.d.ts +10 -3
  112. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  113. package/dist/components/FormViewer/store/formStore.js +3 -3
  114. package/dist/components/FormViewer/store/selectors.js +1 -1
  115. package/dist/components/GroupAvatar/index.d.ts +1 -0
  116. package/dist/components/GroupAvatar/index.d.ts.map +1 -1
  117. package/dist/components/GroupAvatar/index.js +9 -8
  118. package/dist/components/ImageCropper/ImageCropper.d.ts +19 -0
  119. package/dist/components/ImageCropper/ImageCropper.d.ts.map +1 -0
  120. package/dist/components/ImageCropper/ImageCropper.js +356 -0
  121. package/dist/components/ImageCropper/ImageCropper.module.css.js +51 -0
  122. package/dist/components/ImageCropper/cropUtils.d.ts +22 -0
  123. package/dist/components/ImageCropper/cropUtils.d.ts.map +1 -0
  124. package/dist/components/ImageCropper/cropUtils.js +42 -0
  125. package/dist/components/ImageCropper/index.d.ts +4 -0
  126. package/dist/components/ImageCropper/index.d.ts.map +1 -0
  127. package/dist/components/ImageCropper/useCropInteraction.d.ts +28 -0
  128. package/dist/components/ImageCropper/useCropInteraction.d.ts.map +1 -0
  129. package/dist/components/ImageCropper/useCropInteraction.js +76 -0
  130. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts +21 -0
  131. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -0
  132. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.js +73 -0
  133. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +19 -0
  134. package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts +6 -0
  135. package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts.map +1 -0
  136. package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.js +60 -0
  137. package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts +6 -0
  138. package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts.map +1 -0
  139. package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.js +21 -0
  140. package/dist/components/IntegrationFlowAnimation/icons/NotionIcon.d.ts +6 -0
  141. package/dist/components/IntegrationFlowAnimation/icons/NotionIcon.d.ts.map +1 -0
  142. package/dist/components/IntegrationFlowAnimation/icons/NotionIcon.js +35 -0
  143. package/dist/components/IntegrationFlowAnimation/icons/index.d.ts +4 -0
  144. package/dist/components/IntegrationFlowAnimation/icons/index.d.ts.map +1 -0
  145. package/dist/components/IntegrationFlowAnimation/index.d.ts +5 -0
  146. package/dist/components/IntegrationFlowAnimation/index.d.ts.map +1 -0
  147. package/dist/components/LanguagePicker/LanguagePicker.d.ts +2 -1
  148. package/dist/components/LanguagePicker/LanguagePicker.d.ts.map +1 -1
  149. package/dist/components/LanguagePicker/LanguagePicker.js +26 -22
  150. package/dist/components/Loaders/styles.module.css.js +1 -1
  151. package/dist/components/MediaLibrary/MediaLibrary.d.ts +3 -0
  152. package/dist/components/MediaLibrary/MediaLibrary.d.ts.map +1 -0
  153. package/dist/components/MediaLibrary/MediaLibrary.js +93 -0
  154. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +17 -0
  155. package/dist/components/MediaLibrary/MediaLibraryBreadcrumbs.d.ts +8 -0
  156. package/dist/components/MediaLibrary/MediaLibraryBreadcrumbs.d.ts.map +1 -0
  157. package/dist/components/MediaLibrary/MediaLibraryBreadcrumbs.js +22 -0
  158. package/dist/components/MediaLibrary/MediaLibraryBrowser.d.ts +12 -0
  159. package/dist/components/MediaLibrary/MediaLibraryBrowser.d.ts.map +1 -0
  160. package/dist/components/MediaLibrary/MediaLibraryBrowser.js +52 -0
  161. package/dist/components/MediaLibrary/MediaLibraryRow.d.ts +9 -0
  162. package/dist/components/MediaLibrary/MediaLibraryRow.d.ts.map +1 -0
  163. package/dist/components/MediaLibrary/MediaLibraryRow.js +29 -0
  164. package/dist/components/MediaLibrary/index.d.ts +4 -0
  165. package/dist/components/MediaLibrary/index.d.ts.map +1 -0
  166. package/dist/components/MediaLibrary/types.d.ts +31 -0
  167. package/dist/components/MediaLibrary/types.d.ts.map +1 -0
  168. package/dist/components/NavMenu/NavMenu.d.ts +4 -1
  169. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  170. package/dist/components/NavMenu/NavMenu.js +96 -77
  171. package/dist/components/NavMenu/NavMenu.module.css.js +10 -10
  172. package/dist/components/NavMenu/components/DnDItem.d.ts +2 -1
  173. package/dist/components/NavMenu/components/DnDItem.d.ts.map +1 -1
  174. package/dist/components/NavMenu/components/DnDItem.js +32 -30
  175. package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
  176. package/dist/components/NavMenu/components/DnDProvider.js +28 -26
  177. package/dist/components/NavMenu/components/DraggableOverlay.d.ts.map +1 -1
  178. package/dist/components/NavMenu/components/NavMenuItem.d.ts +1 -1
  179. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  180. package/dist/components/NavMenu/components/NavMenuItem.js +108 -94
  181. package/dist/components/NavMenu/store.d.ts +1 -0
  182. package/dist/components/NavMenu/store.d.ts.map +1 -1
  183. package/dist/components/NavMenu/types.d.ts +1 -0
  184. package/dist/components/NavMenu/types.d.ts.map +1 -1
  185. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  186. package/dist/components/NoData/NoData.d.ts +38 -27
  187. package/dist/components/NoData/NoData.d.ts.map +1 -1
  188. package/dist/components/NoData/NoData.js +82 -79
  189. package/dist/components/OnBoarding/ProjectBoard.js +17 -17
  190. package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.js +7 -7
  191. package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.d.ts.map +1 -1
  192. package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.js +9 -9
  193. package/dist/components/OnBoarding/steps/CreateFirstProject.js +5 -5
  194. package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.js +7 -7
  195. package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.js +6 -6
  196. package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.d.ts.map +1 -1
  197. package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.js +10 -10
  198. package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.js +5 -5
  199. package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.js +10 -10
  200. package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.d.ts.map +1 -1
  201. package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.d.ts.map +1 -1
  202. package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.js +8 -8
  203. package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.js +5 -5
  204. package/dist/components/OnBoarding/steps/StartedStep.js +5 -5
  205. package/dist/components/SearchFilters/components/DateFilter.js +19 -19
  206. package/dist/components/SearchFilters/components/SearchHelp.d.ts.map +1 -1
  207. package/dist/components/SearchFilters/components/SearchHelp.js +7 -7
  208. package/dist/components/SettingsSection/index.d.ts +12 -0
  209. package/dist/components/SettingsSection/index.d.ts.map +1 -0
  210. package/dist/components/SettingsSection/index.js +36 -0
  211. package/dist/components/SettingsSection/styles.module.css.js +7 -0
  212. package/dist/components/SocialLinkRow/index.d.ts +11 -0
  213. package/dist/components/SocialLinkRow/index.d.ts.map +1 -0
  214. package/dist/components/SocialLinkRow/index.js +109 -0
  215. package/dist/components/SortableList/SortableList.d.ts.map +1 -1
  216. package/dist/components/SortableList/components/SortableItem/SortableItem.d.ts.map +1 -1
  217. package/dist/components/SortableList/components/SortableItem/SortableItem.js +4 -12
  218. package/dist/components/SortableList/components/SortableItem/index.d.ts +1 -1
  219. package/dist/components/SortableList/components/SortableItem/index.d.ts.map +1 -1
  220. package/dist/components/StorageUsageEntityList/StorageEntityItem.d.ts +2 -6
  221. package/dist/components/StorageUsageEntityList/StorageEntityItem.d.ts.map +1 -1
  222. package/dist/components/StorageUsageEntityList/StorageEntityItem.js +19 -59
  223. package/dist/components/StorageUsageEntityList/StorageUsageEntityList.d.ts +1 -1
  224. package/dist/components/StorageUsageEntityList/StorageUsageEntityList.d.ts.map +1 -1
  225. package/dist/components/StorageUsageEntityList/StorageUsageEntityList.js +6 -24
  226. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +7 -0
  227. package/dist/components/StorageUsageProgress/index.d.ts +2 -2
  228. package/dist/components/StorageUsageProgress/index.d.ts.map +1 -1
  229. package/dist/components/StorageUsageProgress/index.js +76 -41
  230. package/dist/components/ThemeIndicator/index.d.ts.map +1 -1
  231. package/dist/components/ThemeIndicator/index.js +4 -4
  232. package/dist/components/TimezonePicker/index.d.ts +9 -0
  233. package/dist/components/TimezonePicker/index.d.ts.map +1 -0
  234. package/dist/components/TimezonePicker/index.js +90 -0
  235. package/dist/components/UserAvatar/index.js +14 -14
  236. package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
  237. package/dist/components/WorkspaceMenu/WorkspaceItem.js +18 -17
  238. package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
  239. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +78 -74
  240. package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
  241. package/dist/components/modals/RemoveConfirmModal.js +31 -24
  242. package/dist/components/table/components/TableHeaders.js +3 -3
  243. package/dist/components/table/components/TablePanel.js +1 -1
  244. package/dist/components/table/export.d.ts.map +1 -1
  245. package/dist/components/table/helpers/columns.js +3 -3
  246. package/dist/components/table/hooks/TableProvider.js +3 -3
  247. package/dist/components/table/hooks/useSaveRowCount.d.ts.map +1 -1
  248. package/dist/components/table/hooks/useSaveRowCount.js +4 -4
  249. package/dist/components/table/hooks/useSorting.d.ts.map +1 -1
  250. package/dist/components/table/hooks/useSorting.js +3 -1
  251. package/dist/components/table/selectors.js +6 -6
  252. package/dist/constants.d.ts.map +1 -1
  253. package/dist/constants.js +8 -1
  254. package/dist/helpers/getFileIcons.js +12 -12
  255. package/dist/helpers/getFileType.d.ts +1 -2
  256. package/dist/helpers/getFileType.d.ts.map +1 -1
  257. package/dist/helpers/getFileType.js +5 -6
  258. package/dist/helpers/isAppMode.d.ts +1 -1
  259. package/dist/helpers/isAppMode.d.ts.map +1 -1
  260. package/dist/helpers/showNotifications.d.ts +14 -3
  261. package/dist/helpers/showNotifications.d.ts.map +1 -1
  262. package/dist/helpers/showNotifications.js +152 -61
  263. package/dist/helpers/showNotifications.module.css.js +29 -0
  264. package/dist/helpers/timezones.d.ts +12 -0
  265. package/dist/helpers/timezones.d.ts.map +1 -0
  266. package/dist/helpers/timezones.js +59 -0
  267. package/dist/helpers/validateAliasFormat.d.ts +2 -0
  268. package/dist/helpers/validateAliasFormat.d.ts.map +1 -0
  269. package/dist/helpers/validateAliasFormat.js +4 -0
  270. package/dist/hooks/useNumberQueryParam.js +3 -3
  271. package/dist/hooks/useOutsideClick.d.ts.map +1 -1
  272. package/dist/hooks/useVideoUploadGuard.d.ts +2 -0
  273. package/dist/hooks/useVideoUploadGuard.d.ts.map +1 -0
  274. package/dist/hooks/useVideoUploadGuard.js +24 -0
  275. package/dist/index.css +1 -1
  276. package/dist/index.d.ts +13 -5
  277. package/dist/index.d.ts.map +1 -1
  278. package/dist/index.js +388 -346
  279. package/dist/lang/locales/ui_en.json.js +24 -22
  280. package/dist/lang/locales/ui_es.json.js +22 -20
  281. package/dist/lang/locales/ui_ru.json.js +18 -16
  282. package/dist/lib/contentImport/index.d.ts +4 -0
  283. package/dist/lib/contentImport/index.d.ts.map +1 -0
  284. package/dist/lib/contentImport/lexicalSerializer.d.ts +19 -0
  285. package/dist/lib/contentImport/lexicalSerializer.d.ts.map +1 -0
  286. package/dist/lib/contentImport/lexicalSerializer.js +215 -0
  287. package/dist/lib/contentImport/types.d.ts +161 -0
  288. package/dist/lib/contentImport/types.d.ts.map +1 -0
  289. package/dist/lib/contentImport/utils.d.ts +35 -0
  290. package/dist/lib/contentImport/utils.d.ts.map +1 -0
  291. package/dist/lib/contentImport/utils.js +145 -0
  292. package/dist/node_modules/countries-and-timezones/esm/index.js +4031 -0
  293. package/dist/store/plansModal.d.ts.map +1 -1
  294. package/dist/store/plansModal.js +8 -7
  295. package/dist/store/trashModal.d.ts +8 -0
  296. package/dist/store/trashModal.d.ts.map +1 -0
  297. package/dist/store/trashModal.js +13 -0
  298. package/dist/types/storageCategories.d.ts +4 -0
  299. package/dist/types/storageCategories.d.ts.map +1 -0
  300. package/dist/types/storageCategories.js +21 -0
  301. package/dist/utils/formatStorage.d.ts +8 -2
  302. package/dist/utils/formatStorage.d.ts.map +1 -1
  303. package/dist/utils/formatStorage.js +10 -5
  304. package/dist/utils/getCroppedBlob.d.ts +3 -0
  305. package/dist/utils/getCroppedBlob.d.ts.map +1 -0
  306. package/dist/utils/getCroppedBlob.js +21 -0
  307. package/docs/README.md +17 -4
  308. package/package.json +1 -1
  309. package/dist/assets/fileTypes/archives.svg.js +0 -5
  310. package/dist/assets/fileTypes/audio.svg.js +0 -5
  311. package/dist/assets/fileTypes/code.svg.js +0 -5
  312. package/dist/assets/fileTypes/documentsStorage.svg.js +0 -5
  313. package/dist/assets/fileTypes/images.svg.js +0 -5
  314. package/dist/assets/fileTypes/other.svg.js +0 -5
  315. package/dist/assets/fileTypes/videos.svg.js +0 -5
  316. package/dist/assets/images/flags/es.svg.js +0 -4
  317. package/dist/assets/images/flags/ru.svg.js +0 -4
  318. package/dist/assets/images/flags/us.svg.js +0 -4
  319. package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts +0 -3
  320. package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts.map +0 -1
  321. package/dist/components/AppContainer/hooks/useSetAppContainerLayout.js +0 -10
  322. package/dist/components/EmojiPicker/getIconsList.d.ts +0 -8
  323. package/dist/components/EmojiPicker/getIconsList.d.ts.map +0 -1
  324. package/dist/components/EmojiPicker/getIconsList.js +0 -32
  325. package/dist/components/EmojiPicker/getRandomIcon.d.ts +0 -2
  326. package/dist/components/EmojiPicker/getRandomIcon.d.ts.map +0 -1
  327. package/dist/components/EmojiPicker/getRandomIcon.js +0 -10
  328. package/dist/components/NoData/NoData.module.css.js +0 -7
  329. package/dist/components/PaymentCancel/PaymentCancel.d.ts +0 -2
  330. package/dist/components/PaymentCancel/PaymentCancel.d.ts.map +0 -1
  331. package/dist/components/PaymentCancel/PaymentCancel.js +0 -41
  332. package/dist/components/PaymentError/PaymentError.d.ts +0 -2
  333. package/dist/components/PaymentError/PaymentError.d.ts.map +0 -1
  334. package/dist/components/PaymentError/PaymentError.js +0 -41
  335. package/dist/components/PaymentSuccess/PaymentSuccess.d.ts +0 -2
  336. package/dist/components/PaymentSuccess/PaymentSuccess.d.ts.map +0 -1
  337. package/dist/components/PaymentSuccess/PaymentSuccess.js +0 -41
  338. package/dist/node_modules/@layers-app/layers/src/api/common.js +0 -41
  339. package/dist/store/accessOptionsControl.d.ts +0 -17
  340. package/dist/store/accessOptionsControl.d.ts.map +0 -1
  341. package/dist/store/accessOptionsControl.js +0 -18
@@ -1,5 +1,4 @@
1
- import { isAppMode as r } from "./isAppMode.js";
2
- const a = (e, t = "SAAS") => {
1
+ const n = (e, t = !0) => {
3
2
  if (e.includes("text"))
4
3
  return "documents";
5
4
  if (e.includes("image") || e.includes("video"))
@@ -14,11 +13,11 @@ const a = (e, t = "SAAS") => {
14
13
  case "application/excel":
15
14
  return "documents";
16
15
  case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":
17
- return r(t, "SAAS") ? "documents" : "xlsx";
16
+ return t ? "documents" : "xlsx";
18
17
  case "application/vnd.openxmlformats-officedocument.wordprocessingml.document":
19
- return r(t, "SAAS") ? "documents" : "docx";
18
+ return t ? "documents" : "docx";
20
19
  case "application/vnd.openxmlformats-officedocument.presentationml.presentation":
21
- return r(t, "SAAS") ? "presentation" : "pptx";
20
+ return t ? "presentation" : "pptx";
22
21
  case "application/slides":
23
22
  return "media";
24
23
  case "audio/mpeg":
@@ -36,5 +35,5 @@ const a = (e, t = "SAAS") => {
36
35
  }
37
36
  };
38
37
  export {
39
- a as getFileType
38
+ n as getFileType
40
39
  };
@@ -1,3 +1,3 @@
1
1
  export type appMode = 'SERVER' | 'DESKTOP' | 'SAAS';
2
- export declare const isAppMode: (actualMode: appMode | undefined, expectedMode: appMode) => boolean;
2
+ export declare const isAppMode: (actualMode: appMode | null | undefined, expectedMode: appMode) => boolean;
3
3
  //# sourceMappingURL=isAppMode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isAppMode.d.ts","sourceRoot":"","sources":["../../src/helpers/isAppMode.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAEpD,eAAO,MAAM,SAAS,GACpB,YAAY,OAAO,GAAG,SAAS,EAC/B,cAAc,OAAO,KACpB,OAEF,CAAC"}
1
+ {"version":3,"file":"isAppMode.d.ts","sourceRoot":"","sources":["../../src/helpers/isAppMode.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAEpD,eAAO,MAAM,SAAS,GACpB,YAAY,OAAO,GAAG,IAAI,GAAG,SAAS,EACtC,cAAc,OAAO,KACpB,OAEF,CAAC"}
@@ -1,12 +1,23 @@
1
+ import { ReactNode } from 'react';
1
2
  import { NotificationData } from '@mantine/notifications';
2
3
  type MessageType = string | number | NotificationData;
4
+ export interface NotificationAction {
5
+ label: ReactNode;
6
+ onClick: () => void;
7
+ variant?: 'filled' | 'default';
8
+ }
9
+ export type ExtendedNotificationData = Omit<NotificationData, 'message'> & {
10
+ message?: ReactNode;
11
+ actions?: NotificationAction[];
12
+ };
3
13
  export declare const showRequestNotifications: <Response, Request extends Promise<Response> = Promise<Response>>(request: Request, options?: {
4
14
  notifyId?: string;
5
15
  successMsg?: ((res: Response) => MessageType) | MessageType;
6
16
  errorMsg?: ((err: any) => MessageType) | MessageType;
7
17
  }) => Promise<any>;
8
- export declare const showMessageNotification: (props: NotificationData) => void;
9
- export declare const showSuccessNotification: (props: NotificationData) => void;
10
- export declare const showErrorNotification: (props: NotificationData) => void;
18
+ export declare const showMessageNotification: (props: ExtendedNotificationData) => void;
19
+ export declare const showSuccessNotification: (props: ExtendedNotificationData) => void;
20
+ export declare const showWarningNotification: (props: ExtendedNotificationData) => void;
21
+ export declare const showErrorNotification: (props: ExtendedNotificationData) => void;
11
22
  export {};
12
23
  //# sourceMappingURL=showNotifications.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"showNotifications.d.ts","sourceRoot":"","sources":["../../src/helpers/showNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAoB,MAAM,wBAAwB,CAAC;AAG5E,KAAK,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAAC;AA+BtD,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;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,gBAAgB,SAS9D,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,gBAAgB,SAQ9D,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,gBAAgB,SAS5D,CAAC"}
1
+ {"version":3,"file":"showNotifications.d.ts","sourceRoot":"","sources":["../../src/helpers/showNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAC;AAUvD,OAAO,EACL,gBAAgB,EAGjB,MAAM,wBAAwB,CAAC;AAMhC,KAAK,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAAC;AAiBtD,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;AA2GF,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;AAyCF,eAAO,MAAM,uBAAuB,GAAI,OAAO,wBAAwB,SAKtE,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,72 +1,163 @@
1
- import { showNotification as r } from "@mantine/notifications";
2
- import { isFunction as f, isObject as a } from "lodash-es";
3
- const l = (t) => {
4
- const o = t.title ? {
5
- alignContent: "flex-start",
6
- alignItems: "flex-start",
7
- justifyContent: "flex-start"
8
- } : void 0, n = t.title ? void 0 : { display: "flex", alignSelf: "center" };
9
- return { root: o, body: n, description: {
10
- lineHeight: "16px"
11
- }, title: {
12
- fontWeight: 400
13
- }, icon: {
14
- marginInlineEnd: "0px",
15
- marginRight: "12px",
16
- marginLeft: "2px",
17
- marginTop: "1px",
18
- width: 18,
19
- height: 18
20
- } };
21
- }, m = (t, o = {}) => {
22
- const { successMsg: n, errorMsg: s } = o;
23
- return t.then((e) => {
24
- if (n) {
25
- const i = f(n) ? n(e) : n, c = {
26
- id: o.notifyId,
27
- ...a(i) ? i : { message: i }
1
+ import { jsx as n, jsxs as l } from "react/jsx-runtime";
2
+ import { useState as N, useEffect as v } from "react";
3
+ import { InformationCircleIcon as C, CheckmarkCircle02Icon as y, Alert01Icon as b, Alert02Icon as x } from "@hugeicons/core-free-icons";
4
+ import { HugeiconsIcon as d } from "@hugeicons/react";
5
+ import { CloseButton as B, Box as f, Button as O } from "@mantine/core";
6
+ import { showNotification as k, notifications as z } from "@mantine/notifications";
7
+ import { motion as h } from "framer-motion";
8
+ import { isFunction as p, isObject as w } from "lodash-es";
9
+ import s from "./showNotifications.module.css.js";
10
+ let M = 0;
11
+ const g = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ n(d, { icon: y, size: 14, color: "white" }), H = /* @__PURE__ */ n(d, { icon: x, size: 14, color: "white" }), R = /* @__PURE__ */ n(d, { icon: b, size: 14, color: "white" }), S = /* @__PURE__ */ n(d, { icon: C, size: 14, color: "white" }), W = (o, i) => i?.length ? /* @__PURE__ */ l(f, { children: [
12
+ /* @__PURE__ */ n(f, { children: o }),
13
+ /* @__PURE__ */ n(f, { className: s.actions, children: i.map((e, c) => /* @__PURE__ */ n(
14
+ O,
15
+ {
16
+ size: "compact-sm",
17
+ variant: e.variant ?? "default",
18
+ onClick: e.onClick,
19
+ radius: "md",
20
+ children: e.label
21
+ },
22
+ c
23
+ )) })
24
+ ] }) : o;
25
+ function j({
26
+ id: o,
27
+ title: i,
28
+ icon: e,
29
+ children: c
30
+ }) {
31
+ const [t, r] = N(!1);
32
+ return v(() => (g.set(o, () => r(!0)), () => {
33
+ g.delete(o);
34
+ }), [o]), /* @__PURE__ */ l(
35
+ h.div,
36
+ {
37
+ className: s.root,
38
+ initial: { width: 48, maxHeight: 48 },
39
+ animate: t ? { width: [316, 316, 48], maxHeight: [300, 48, 48] } : { width: [48, 316, 316], maxHeight: [48, 48, 300] },
40
+ transition: t ? { duration: 0.5, ease: "easeIn", times: [0, 0.35, 1] } : { duration: 0.5, ease: "easeOut", times: [0, 0.65, 1] },
41
+ children: [
42
+ /* @__PURE__ */ l("div", { className: i ? s.contentRow : s.contentRowCentered, children: [
43
+ /* @__PURE__ */ n("div", { className: s.icon, children: e }),
44
+ /* @__PURE__ */ l(
45
+ h.div,
46
+ {
47
+ className: s.body,
48
+ initial: { opacity: 0 },
49
+ animate: { opacity: t ? 0 : 1 },
50
+ transition: t ? { duration: 0.15, ease: "easeIn" } : { duration: 0.2, delay: 0.3, ease: "easeOut" },
51
+ children: [
52
+ i && /* @__PURE__ */ n("div", { className: s.title, children: i }),
53
+ c && /* @__PURE__ */ n(
54
+ "div",
55
+ {
56
+ className: i ? s.description : s.descriptionWithoutTitle,
57
+ children: c
58
+ }
59
+ )
60
+ ]
61
+ }
62
+ )
63
+ ] }),
64
+ /* @__PURE__ */ n(
65
+ h.div,
66
+ {
67
+ className: s.closeButtonWrapper,
68
+ initial: { opacity: 0 },
69
+ animate: { opacity: t ? 0 : 1 },
70
+ transition: t ? { duration: 0.15, ease: "easeIn" } : { duration: 0.2, delay: 0.3, ease: "easeOut" },
71
+ children: /* @__PURE__ */ n(
72
+ B,
73
+ {
74
+ className: s.closeButton,
75
+ size: 24,
76
+ onClick: () => z.hide(o)
77
+ }
78
+ )
79
+ }
80
+ )
81
+ ]
82
+ }
83
+ );
84
+ }
85
+ const Q = (o, i = {}) => {
86
+ const { successMsg: e, errorMsg: c } = i;
87
+ return o.then((t) => {
88
+ if (e) {
89
+ const r = p(e) ? e(t) : e, a = {
90
+ id: i.notifyId,
91
+ ...w(r) ? r : { message: r }
28
92
  };
29
- g(c);
93
+ E(a);
30
94
  }
31
- return e;
32
- }).catch((e) => {
33
- if (s) {
34
- const i = f(s) ? s(e) : s, c = {
35
- id: o.notifyId,
36
- ...a(i) ? i : { message: i }
95
+ return t;
96
+ }).catch((t) => {
97
+ if (c) {
98
+ const r = p(c) ? c(t) : c, a = {
99
+ id: i.notifyId,
100
+ ...w(r) ? r : { message: r }
37
101
  };
38
- h(c);
102
+ q(a);
39
103
  }
40
- return e;
104
+ return t;
105
+ });
106
+ }, m = (o, i) => {
107
+ const { actions: e, title: c, message: t, onClose: r, ...a } = o, I = `ntf-${++M}`, u = a.id ?? I;
108
+ k({
109
+ color: i.color,
110
+ radius: 12,
111
+ ...a,
112
+ id: u,
113
+ icon: void 0,
114
+ title: void 0,
115
+ withCloseButton: !1,
116
+ withBorder: !1,
117
+ p: 0,
118
+ classNames: { root: s.mantineRoot },
119
+ styles: {
120
+ root: { background: "none", border: "none", boxShadow: "none" },
121
+ body: { margin: 0 }
122
+ },
123
+ onClose: () => {
124
+ g.get(u)?.(), r?.(o);
125
+ },
126
+ message: /* @__PURE__ */ n(
127
+ j,
128
+ {
129
+ id: u,
130
+ title: c,
131
+ icon: i.icon,
132
+ children: W(t, e)
133
+ }
134
+ )
135
+ });
136
+ }, U = (o) => {
137
+ m(o, {
138
+ color: "var(--mantine-color-blue-outline)",
139
+ icon: S
41
140
  });
42
- }, y = (t) => {
43
- const o = l(t);
44
- r({
45
- color: "blue",
46
- styles: o,
47
- withCloseButton: !0,
48
- ...t
141
+ }, E = (o) => {
142
+ m(o, {
143
+ color: "var(--mantine-color-green-outline)",
144
+ icon: A
49
145
  });
50
- }, g = (t) => {
51
- const o = l(t);
52
- r({
53
- color: "green",
54
- styles: o,
55
- withCloseButton: !0,
56
- ...t
146
+ }, V = (o) => {
147
+ m(o, {
148
+ color: "var(--mantine-color-yellow-outline)",
149
+ icon: R
57
150
  });
58
- }, h = (t) => {
59
- const o = l(t);
60
- r({
61
- color: "red",
62
- styles: o,
63
- withCloseButton: !0,
64
- ...t
151
+ }, q = (o) => {
152
+ m(o, {
153
+ color: "var(--mantine-color-red-outline)",
154
+ icon: H
65
155
  });
66
156
  };
67
157
  export {
68
- h as showErrorNotification,
69
- y as showMessageNotification,
70
- m as showRequestNotifications,
71
- g as showSuccessNotification
158
+ q as showErrorNotification,
159
+ U as showMessageNotification,
160
+ Q as showRequestNotifications,
161
+ E as showSuccessNotification,
162
+ V as showWarningNotification
72
163
  };
@@ -0,0 +1,29 @@
1
+ const t = "_mantineRoot_1pbtj_2", o = "_root_1pbtj_11", n = "_contentRow_1pbtj_22", e = "_contentRowCentered_1pbtj_27", c = "_icon_1pbtj_32", _ = "_body_1pbtj_45", s = "_title_1pbtj_50", i = "_description_1pbtj_62", p = "_descriptionWithoutTitle_1pbtj_68", r = "_closeButtonWrapper_1pbtj_75", b = "_closeButton_1pbtj_75", l = "_actions_1pbtj_85", d = {
2
+ mantineRoot: t,
3
+ root: o,
4
+ contentRow: n,
5
+ contentRowCentered: e,
6
+ icon: c,
7
+ body: _,
8
+ title: s,
9
+ description: i,
10
+ descriptionWithoutTitle: p,
11
+ closeButtonWrapper: r,
12
+ closeButton: b,
13
+ actions: l
14
+ };
15
+ export {
16
+ l as actions,
17
+ _ as body,
18
+ b as closeButton,
19
+ r as closeButtonWrapper,
20
+ n as contentRow,
21
+ e as contentRowCentered,
22
+ d as default,
23
+ i as description,
24
+ p as descriptionWithoutTitle,
25
+ c as icon,
26
+ t as mantineRoot,
27
+ o as root,
28
+ s as title
29
+ };
@@ -0,0 +1,12 @@
1
+ export declare const getUtcOffset: (tz: string, date: Date) => string | null;
2
+ export declare const isValidTimeZone: (tz: string) => boolean;
3
+ export declare const getBrowserTimeZone: () => string;
4
+ export declare const getSafeFormatter: (tz: string) => Intl.DateTimeFormat;
5
+ export declare const getTimeZones: () => {
6
+ value: string;
7
+ label: string;
8
+ searchableLabel: string;
9
+ offset: number;
10
+ }[];
11
+ export declare const parseInvalidTz: (tz: string) => string;
12
+ //# sourceMappingURL=timezones.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timezones.d.ts","sourceRoot":"","sources":["../../src/helpers/timezones.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,GAAI,IAAI,MAAM,EAAE,MAAM,IAAI,KAAG,MAAM,GAAG,IAkC9D,CAAC;AACF,eAAO,MAAM,eAAe,GAAI,IAAI,MAAM,YAOzC,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAE9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,IAAI,MAAM,wBAO1C,CAAC;AACF,eAAO,MAAM,YAAY;WAMd,MAAM;WACN,MAAM;qBACI,MAAM;YACf,MAAM;GA2BjB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,IAAI,MAAM,WAQxC,CAAC"}
@@ -0,0 +1,59 @@
1
+ import { getAllCountries as y } from "../node_modules/countries-and-timezones/esm/index.js";
2
+ const T = (n, r) => {
3
+ try {
4
+ const o = new Intl.DateTimeFormat("en-US", {
5
+ timeZone: n,
6
+ hour12: !1,
7
+ year: "numeric",
8
+ month: "2-digit",
9
+ day: "2-digit",
10
+ hour: "2-digit",
11
+ minute: "2-digit",
12
+ second: "2-digit"
13
+ }).formatToParts(r), a = +o.find((t) => t.type === "year").value, e = +o.find((t) => t.type === "month").value, i = +o.find((t) => t.type === "day").value, c = +o.find((t) => t.type === "hour").value, l = +o.find((t) => t.type === "minute").value, u = +o.find((t) => t.type === "second").value;
14
+ let s = (Date.UTC(a, e - 1, i, c, l, u) - r.getTime()) / (60 * 1e3);
15
+ s = Math.round(s);
16
+ const f = s >= 0 ? "+" : "-", p = String(Math.floor(Math.abs(s) / 60)).padStart(2, "0"), g = String(Math.abs(s) % 60).padStart(2, "0");
17
+ return `${f}${p}:${g}`;
18
+ } catch {
19
+ return null;
20
+ }
21
+ }, h = (n) => {
22
+ try {
23
+ return !0;
24
+ } catch {
25
+ return !1;
26
+ }
27
+ }, v = () => Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC", S = (n) => {
28
+ const r = h() ? n : v();
29
+ return new Intl.DateTimeFormat("en-US", {
30
+ timeZone: r,
31
+ dateStyle: "medium",
32
+ timeStyle: "short"
33
+ });
34
+ }, Z = () => {
35
+ const n = /* @__PURE__ */ new Date(), r = y(), m = /* @__PURE__ */ new Set(), o = [];
36
+ return Object.values(r).forEach((a) => {
37
+ a.timezones.forEach((e) => {
38
+ if (m.has(e)) return;
39
+ m.add(e);
40
+ const i = T(e, n)?.replace("UTC", ""), c = i?.match(/([+-])(\d{2}):(\d{2})/);
41
+ if (!c) return;
42
+ const [l, u, d, s] = c, f = (parseInt(d) * 60 + parseInt(s)) * (u === "+" ? 1 : -1);
43
+ o.push({
44
+ value: e,
45
+ label: `(UTC${i}) ${e}`,
46
+ searchableLabel: `${a.name.toLowerCase()} ${e.toLowerCase()} utc${i}`,
47
+ offset: f
48
+ });
49
+ });
50
+ }), o.sort((a, e) => a.offset - e.offset);
51
+ }, b = (n) => h() ? n : S(n).resolvedOptions().timeZone;
52
+ export {
53
+ v as getBrowserTimeZone,
54
+ S as getSafeFormatter,
55
+ Z as getTimeZones,
56
+ T as getUtcOffset,
57
+ h as isValidTimeZone,
58
+ b as parseInvalidTz
59
+ };
@@ -0,0 +1,2 @@
1
+ export declare const validateAliasFormat: (alias: string, allowEmpty?: boolean) => boolean;
2
+ //# sourceMappingURL=validateAliasFormat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateAliasFormat.d.ts","sourceRoot":"","sources":["../../src/helpers/validateAliasFormat.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,GAC9B,OAAO,MAAM,EACb,oBAAiB,KAChB,OAOF,CAAC"}
@@ -0,0 +1,4 @@
1
+ const r = (t, e = !0) => e && t.length === 0 ? !0 : !(t.length < 3 || t.length > 50 || !/^[a-z0-9_-]+$/.test(t) || /^[-_]|[-_]$/.test(t) || /[-_]{2}/.test(t));
2
+ export {
3
+ r as validateAliasFormat
4
+ };
@@ -1,10 +1,10 @@
1
- import { useParams as s, useSearchParams as a } from "react-router-dom";
1
+ import { useSearchParams as s, useParams as a } from "react-router-dom";
2
2
  import { isNumber as t } from "lodash-es";
3
3
  const o = (r) => t(r) && !isNaN(r), n = (r) => {
4
- const { [r]: e } = s();
4
+ const { [r]: e } = a();
5
5
  return e || null;
6
6
  }, c = (r) => {
7
- const [e] = a();
7
+ const [e] = s();
8
8
  return e.get(r);
9
9
  };
10
10
  export {
@@ -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,8CA2BnD"}
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"}
@@ -0,0 +1,2 @@
1
+ export declare function useVideoUploadGuard(isUploading: boolean): void;
2
+ //# sourceMappingURL=useVideoUploadGuard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useVideoUploadGuard.d.ts","sourceRoot":"","sources":["../../src/hooks/useVideoUploadGuard.ts"],"names":[],"mappings":"AAMA,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,OAAO,QAoBvD"}
@@ -0,0 +1,24 @@
1
+ import { useEffect as r } from "react";
2
+ import { useTranslation as s } from "react-i18next";
3
+ import { useBlocker as t } from "react-router-dom";
4
+ import { openRemoveConfirmModal as l } from "../components/modals/RemoveConfirmModal.js";
5
+ function d(n) {
6
+ const { t: e } = s(), o = t(n);
7
+ r(() => {
8
+ o.state === "blocked" && l({
9
+ title: e("videoUpload.title", { ns: "pages" }),
10
+ children: e("videoUpload.message", { ns: "pages" }),
11
+ labels: {
12
+ confirm: e("videoUpload.confirm", { ns: "pages" }),
13
+ cancel: e("videoUpload.cancel", { ns: "pages" })
14
+ },
15
+ icon: null,
16
+ onConfirm: () => o.proceed?.(),
17
+ onCancel: () => o.reset?.(),
18
+ onClose: () => o.reset?.()
19
+ });
20
+ }, [o.state, e]);
21
+ }
22
+ export {
23
+ d as useVideoUploadGuard
24
+ };