@layers-app/shared 0.4.4 → 0.4.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.
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
- package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +72 -79
- package/dist/components/AppContainer/AppContainer.module.css.js +6 -6
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +24 -22
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +46 -37
- package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
- package/dist/components/AppContainer/components/Header.js +6 -5
- package/dist/components/AppContainer/components/Main.js +4 -4
- package/dist/components/AppContainer/components/SidebarToggleButton.d.ts.map +1 -1
- package/dist/components/AppContainer/components/SidebarToggleButton.js +25 -16
- package/dist/components/AppContainer/components/SlideAnimation.js +4 -4
- package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
- package/dist/components/AppContainer/components/ToolSidebar.js +161 -128
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +131 -121
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +59 -56
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
- package/dist/components/AppContainer/types.d.ts +1 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.module.css.js +5 -5
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +33 -33
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +37 -37
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +54 -36
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +2 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +84 -37
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/helpers.js +22 -17
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +28 -25
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +36 -41
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +7 -7
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +138 -84
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +24 -14
- package/dist/components/BouncingLogo/BouncingLogo.d.ts +1 -3
- package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.js +14 -20
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -8
- package/dist/components/Chat/CallMessage/CallMessage.module.css.js +15 -0
- package/dist/components/Chat/CallMessage/index.d.ts +21 -0
- package/dist/components/Chat/CallMessage/index.d.ts.map +1 -0
- package/dist/components/Chat/CallMessage/index.js +49 -0
- package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +9 -0
- package/dist/components/Chat/ChatBubble/index.d.ts +14 -0
- package/dist/components/Chat/ChatBubble/index.d.ts.map +1 -0
- package/dist/components/Chat/ChatBubble/index.js +32 -0
- package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +17 -0
- package/dist/components/Chat/ChatHeader/index.d.ts +42 -0
- package/dist/components/Chat/ChatHeader/index.d.ts.map +1 -0
- package/dist/components/Chat/ChatHeader/index.js +78 -0
- package/dist/components/Chat/ChatInput/ChatInput.module.css.js +49 -0
- package/dist/components/Chat/ChatInput/index.d.ts +74 -0
- package/dist/components/Chat/ChatInput/index.d.ts.map +1 -0
- package/dist/components/Chat/ChatInput/index.js +288 -0
- package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts +3 -0
- package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts.map +1 -0
- package/dist/components/Chat/ChatInput/smilePlusIcon.js +49 -0
- package/dist/components/Chat/ChatLayout/ChatLayout.module.css.js +15 -0
- package/dist/components/Chat/ChatLayout/index.d.ts +17 -0
- package/dist/components/Chat/ChatLayout/index.d.ts.map +1 -0
- package/dist/components/Chat/ChatLayout/index.js +43 -0
- package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +21 -0
- package/dist/components/Chat/ChatMessage/index.d.ts +47 -0
- package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -0
- package/dist/components/Chat/ChatMessage/index.js +206 -0
- package/dist/components/Chat/ChatPill/ChatPill.module.css.js +11 -0
- package/dist/components/Chat/ChatPill/index.d.ts +12 -0
- package/dist/components/Chat/ChatPill/index.d.ts.map +1 -0
- package/dist/components/Chat/ChatPill/index.js +21 -0
- package/dist/components/Chat/DayMeta/index.d.ts +11 -0
- package/dist/components/Chat/DayMeta/index.d.ts.map +1 -0
- package/dist/components/Chat/DayMeta/index.js +9 -0
- package/dist/components/Chat/DialogItem/DialogItem.module.css.js +17 -0
- package/dist/components/Chat/DialogItem/index.d.ts +41 -0
- package/dist/components/Chat/DialogItem/index.d.ts.map +1 -0
- package/dist/components/Chat/DialogItem/index.js +107 -0
- package/dist/components/Chat/DialogList/DialogList.module.css.js +7 -0
- package/dist/components/Chat/DialogList/index.d.ts +11 -0
- package/dist/components/Chat/DialogList/index.d.ts.map +1 -0
- package/dist/components/Chat/DialogList/index.js +19 -0
- package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +13 -0
- package/dist/components/Chat/MediaDocument/index.d.ts +15 -0
- package/dist/components/Chat/MediaDocument/index.d.ts.map +1 -0
- package/dist/components/Chat/MediaDocument/index.js +73 -0
- package/dist/components/Chat/MessageActions/MessageActions.module.css.js +7 -0
- package/dist/components/Chat/MessageActions/index.d.ts +23 -0
- package/dist/components/Chat/MessageActions/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageActions/index.js +68 -0
- package/dist/components/Chat/MessageAuthor/index.d.ts +20 -0
- package/dist/components/Chat/MessageAuthor/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageAuthor/index.js +36 -0
- package/dist/components/Chat/MessageForward/MessageForward.module.css.js +7 -0
- package/dist/components/Chat/MessageForward/index.d.ts +13 -0
- package/dist/components/Chat/MessageForward/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageForward/index.js +30 -0
- package/dist/components/Chat/MessageList/MessageList.module.css.js +21 -0
- package/dist/components/Chat/MessageList/index.d.ts +39 -0
- package/dist/components/Chat/MessageList/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageList/index.js +159 -0
- package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +13 -0
- package/dist/components/Chat/MessageMeta/index.d.ts +16 -0
- package/dist/components/Chat/MessageMeta/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageMeta/index.js +33 -0
- package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +15 -0
- package/dist/components/Chat/MessageReactions/index.d.ts +32 -0
- package/dist/components/Chat/MessageReactions/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageReactions/index.js +72 -0
- package/dist/components/Chat/MessageReply/MessageReply.module.css.js +15 -0
- package/dist/components/Chat/MessageReply/index.d.ts +15 -0
- package/dist/components/Chat/MessageReply/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageReply/index.js +40 -0
- package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +11 -0
- package/dist/components/Chat/MessageStatus/index.d.ts +14 -0
- package/dist/components/Chat/MessageStatus/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageStatus/index.js +68 -0
- package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +11 -0
- package/dist/components/Chat/ServiceMessage/index.d.ts +13 -0
- package/dist/components/Chat/ServiceMessage/index.d.ts.map +1 -0
- package/dist/components/Chat/ServiceMessage/index.js +21 -0
- package/dist/components/Chat/UnreadSeparator/index.d.ts +11 -0
- package/dist/components/Chat/UnreadSeparator/index.d.ts.map +1 -0
- package/dist/components/Chat/UnreadSeparator/index.js +13 -0
- package/dist/components/Chat/colors.d.ts +7 -0
- package/dist/components/Chat/colors.d.ts.map +1 -0
- package/dist/components/Chat/colors.js +30 -0
- package/dist/components/Chat/icons.d.ts +9 -0
- package/dist/components/Chat/icons.d.ts.map +1 -0
- package/dist/components/Chat/icons.js +49 -0
- package/dist/components/Chat/index.d.ts +24 -0
- package/dist/components/Chat/index.d.ts.map +1 -0
- package/dist/components/Chat/mock-data.d.ts +32 -0
- package/dist/components/Chat/mock-data.d.ts.map +1 -0
- package/dist/components/Chat/types.d.ts +159 -0
- package/dist/components/Chat/types.d.ts.map +1 -0
- package/dist/components/CircleColorPicker/CircleColorPicker.d.ts.map +1 -1
- package/dist/components/CircleColorPicker/CircleColorPicker.js +17 -15
- package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.module.css.js +32 -26
- package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerList.js +81 -68
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +75 -70
- package/dist/components/ColorPicker/icons.js +5 -5
- package/dist/components/ColorPicker/types.d.ts +6 -0
- package/dist/components/ColorPicker/types.d.ts.map +1 -1
- package/dist/components/ColorPicker/types.js +53 -11
- package/dist/components/ColorPicker/useRecentColors.d.ts +3 -1
- package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -1
- package/dist/components/ColorPicker/useRecentColors.js +43 -20
- package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
- package/dist/components/CommentComposer/types.js +9 -0
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/Copyright.module.css.js +1 -1
- package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.d.ts +2 -1
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +73 -72
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +23 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +126 -88
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +28 -25
- package/dist/components/EntityIcon.d.ts +1 -0
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +90 -33
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/ErrorPage/components/Error403.d.ts +5 -1
- package/dist/components/ErrorPage/components/Error403.d.ts.map +1 -1
- package/dist/components/ErrorPage/components/Error403.js +25 -21
- package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
- package/dist/components/ErrorPage/index.d.ts +5 -1
- package/dist/components/ErrorPage/index.d.ts.map +1 -1
- package/dist/components/ErrorPage/index.js +17 -10
- package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +135 -161
- package/dist/components/FilePicker/FilePicker.module.css.js +8 -12
- package/dist/components/FilePicker/FilePickerGallery.js +13 -13
- package/dist/components/FilePicker/FilePickerGiphy.js +4 -4
- package/dist/components/FilePicker/FilePickerGoogleDrive.js +3 -3
- package/dist/components/FilePicker/FilePickerUnsplash.js +18 -18
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +55 -47
- package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
- package/dist/components/Loaders/styles.module.css.js +6 -6
- package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
- package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +23 -23
- package/dist/components/MusicPlayerBar/components/HoverActions.js +28 -28
- package/dist/components/NavMenu/NavMenu.d.ts +7 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.js +54 -44
- package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +84 -84
- package/dist/components/NavMenu/types.d.ts +4 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/PillTabs/PillTabs.d.ts +19 -0
- package/dist/components/PillTabs/PillTabs.d.ts.map +1 -0
- package/dist/components/PillTabs/PillTabs.js +50 -0
- package/dist/components/PillTabs/PillTabs.module.css.js +11 -0
- package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
- package/dist/components/SettingsSection/styles.module.css.js +1 -1
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
- package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +16 -14
- package/dist/components/modals/RemoveConfirmModal.js +1 -1
- package/dist/components/table/FrontTable.d.ts.map +1 -1
- package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
- package/dist/config/envConfig.d.ts +2 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +41 -37
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.d.ts +15 -0
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +114 -72
- package/dist/helpers/showNotifications.module.css.js +16 -4
- package/dist/hooks/useUiPref.d.ts +2 -0
- package/dist/hooks/useUiPref.d.ts.map +1 -0
- package/dist/hooks/useUiPref.js +80 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +588 -527
- package/dist/lang/locales/ui_en.json.js +5 -5
- package/dist/lang/locales/ui_es.json.js +1 -1
- package/dist/lang/locales/ui_ru.json.js +1 -1
- package/docs/README.md +499 -499
- package/package.json +78 -75
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as l, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { Tabs as s, Flex as p } from "@mantine/core";
|
|
3
|
+
import e from "./PillTabs.module.css.js";
|
|
4
|
+
const f = ({
|
|
5
|
+
value: r,
|
|
6
|
+
onChange: t,
|
|
7
|
+
items: i,
|
|
8
|
+
height: d = 44,
|
|
9
|
+
pillHeight: n = 36,
|
|
10
|
+
pillPaddingX: b = 8,
|
|
11
|
+
rightSlot: c,
|
|
12
|
+
className: o
|
|
13
|
+
}) => /* @__PURE__ */ l(
|
|
14
|
+
s,
|
|
15
|
+
{
|
|
16
|
+
variant: "default",
|
|
17
|
+
value: r,
|
|
18
|
+
onChange: (a) => a && t(a),
|
|
19
|
+
className: o,
|
|
20
|
+
classNames: { list: e.tabsList, tab: e.tab },
|
|
21
|
+
w: "100%",
|
|
22
|
+
children: /* @__PURE__ */ h(s.List, { h: d, children: [
|
|
23
|
+
i.map((a) => /* @__PURE__ */ l(
|
|
24
|
+
s.Tab,
|
|
25
|
+
{
|
|
26
|
+
value: a.value,
|
|
27
|
+
disabled: a.disabled,
|
|
28
|
+
"data-cy": a["data-cy"],
|
|
29
|
+
h: "100%",
|
|
30
|
+
p: 0,
|
|
31
|
+
children: /* @__PURE__ */ l(
|
|
32
|
+
p,
|
|
33
|
+
{
|
|
34
|
+
className: e.tabPill,
|
|
35
|
+
px: b,
|
|
36
|
+
h: n,
|
|
37
|
+
align: "center",
|
|
38
|
+
children: a.label
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
},
|
|
42
|
+
a.value
|
|
43
|
+
)),
|
|
44
|
+
c
|
|
45
|
+
] })
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
export {
|
|
49
|
+
f as PillTabs
|
|
50
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_container_f42en_1", e = "_depthBox_f42en_21", n = "_item_f42en_37", o = {
|
|
2
2
|
container: t,
|
|
3
3
|
depthBox: e,
|
|
4
|
-
item:
|
|
4
|
+
item: n
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
7
|
t as container,
|
|
8
|
-
|
|
8
|
+
o as default,
|
|
9
9
|
e as depthBox,
|
|
10
|
-
|
|
10
|
+
n as item
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceItem.d.ts","sourceRoot":"","sources":["../../../src/components/WorkspaceMenu/WorkspaceItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,UAAU,kBAAkB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa;IAClE,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;IACzB,SAAS,EAAE,CAAC,CAAC;CACd;AAED,eAAO,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"WorkspaceItem.d.ts","sourceRoot":"","sources":["../../../src/components/WorkspaceMenu/WorkspaceItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,UAAU,kBAAkB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa;IAClE,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;IACzB,SAAS,EAAE,CAAC,CAAC;CACd;AAED,eAAO,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,4CA0CvE,CAAC"}
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t, jsxs as n, Fragment as l } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation as c } from "react-i18next";
|
|
3
3
|
import { Menu as p, Flex as m, Box as a, Text as i } from "@mantine/core";
|
|
4
|
-
import { usePlatform as
|
|
4
|
+
import { usePlatform as d } from "../../hooks/usePlatform.js";
|
|
5
5
|
import { WorkspaceAvatar as u } from "../WorkspaceAvatar/WorkspaceAvatar.js";
|
|
6
|
-
const
|
|
7
|
-
const { t: r } = c("workspaceMenu"), o =
|
|
8
|
-
return /* @__PURE__ */
|
|
6
|
+
const I = ({ workspace: e, onClick: s }) => {
|
|
7
|
+
const { t: r } = c("workspaceMenu"), o = d();
|
|
8
|
+
return /* @__PURE__ */ t(
|
|
9
9
|
p.Item,
|
|
10
10
|
{
|
|
11
|
+
"data-cy": `workspace-menu-item-${e.workspaceId}`,
|
|
12
|
+
"data-testid": `workspace-menu-item-${e.workspaceId}`,
|
|
11
13
|
p: 4,
|
|
12
|
-
onClick: () =>
|
|
14
|
+
onClick: () => s?.(e),
|
|
13
15
|
component: "a",
|
|
14
16
|
styles: { itemLabel: { minWidth: 0 } },
|
|
15
|
-
children: /* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
!e?.invitation && /* @__PURE__ */
|
|
20
|
-
o.has("memberCount") && e.totalMembers ? /* @__PURE__ */
|
|
17
|
+
children: /* @__PURE__ */ n(m, { gap: 12, children: [
|
|
18
|
+
/* @__PURE__ */ t(u, { workspace: e, size: 36 }),
|
|
19
|
+
/* @__PURE__ */ n(a, { flex: 1, miw: 0, children: [
|
|
20
|
+
/* @__PURE__ */ t(i, { truncate: !0, size: "sm", fw: 500, c: "var(--mantine-color-bright)", children: e.workspaceName }),
|
|
21
|
+
!e?.invitation && /* @__PURE__ */ t(i, { c: "gray", fw: 500, size: "xs", component: "span", children: /* @__PURE__ */ n(m, { gap: 8, component: "span", children: [
|
|
22
|
+
o.has("memberCount") && e.totalMembers ? /* @__PURE__ */ n(l, { children: [
|
|
21
23
|
r("member", { count: e.totalMembers }),
|
|
22
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ t(
|
|
23
25
|
a,
|
|
24
26
|
{
|
|
25
27
|
w: 2,
|
|
@@ -38,5 +40,5 @@ const M = ({ workspace: e, onClick: l }) => {
|
|
|
38
40
|
);
|
|
39
41
|
};
|
|
40
42
|
export {
|
|
41
|
-
|
|
43
|
+
I as WorkspaceItem
|
|
42
44
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as g, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Delete02Icon as v } from "@hugeicons/core-free-icons";
|
|
3
3
|
import { HugeiconsIcon as y } from "@hugeicons/react";
|
|
4
4
|
import { Stack as C, Text as c } from "@mantine/core";
|
|
5
5
|
import { modals as a } from "@mantine/modals";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FrontTable.d.ts","sourceRoot":"","sources":["../../../src/components/table/FrontTable.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"FrontTable.d.ts","sourceRoot":"","sources":["../../../src/components/table/FrontTable.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;gBAAV,CAAA;iBACA,CAAC;gBACA,CAAC;;CAOb,CAAC;AAEH,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useColumnsResizing.d.ts","sourceRoot":"","sources":["../../../../src/components/table/hooks/useColumnsResizing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAW9C,eAAO,MAAM,kBAAkB,GAAI,UAAU,gBAAgB,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useColumnsResizing.d.ts","sourceRoot":"","sources":["../../../../src/components/table/hooks/useColumnsResizing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAW9C,eAAO,MAAM,kBAAkB,GAAI,UAAU,gBAAgB,CAAC,OAAO,CAAC;oBAc/B,GAAG;;CAqEzC,CAAC"}
|
|
@@ -70,6 +70,7 @@ export interface EnvConfig {
|
|
|
70
70
|
};
|
|
71
71
|
livekit?: {
|
|
72
72
|
enabled?: boolean;
|
|
73
|
+
callsEnabled?: boolean;
|
|
73
74
|
url?: string;
|
|
74
75
|
};
|
|
75
76
|
office?: {
|
|
@@ -106,6 +107,7 @@ export interface EnvConfig {
|
|
|
106
107
|
}
|
|
107
108
|
export declare const getEnvConfig: () => EnvConfig;
|
|
108
109
|
export declare const isLivekitEnabled: () => boolean;
|
|
110
|
+
export declare const isLivekitCallsEnabled: () => boolean;
|
|
109
111
|
export declare const isOfficeEnabled: () => boolean;
|
|
110
112
|
export declare const getOfficeUrl: () => string | undefined;
|
|
111
113
|
export declare const getEnvValue: <T>(selector: (config: EnvConfig) => T | undefined, fallback?: T) => T | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envConfig.d.ts","sourceRoot":"","sources":["../../src/config/envConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,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CAA8B,WASzE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,GAAG,SAAS,KAAG,MAK5D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,KAAG,MAAM,GAAG,IAYxD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAO,MAAM,GAAG,IAO5C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,GAAG,SAAS,EAAE,MAAM,MAAM,WASxE,CAAC"}
|
package/dist/config/envConfig.js
CHANGED
|
@@ -1,60 +1,64 @@
|
|
|
1
|
-
const
|
|
1
|
+
const i = () => {
|
|
2
2
|
const n = typeof window > "u" ? void 0 : window;
|
|
3
3
|
return n?.envConfig == null ? {} : n.envConfig;
|
|
4
4
|
}, u = () => {
|
|
5
|
-
const { livekit: n } =
|
|
5
|
+
const { livekit: n } = i();
|
|
6
6
|
return !!(n?.enabled && n.url);
|
|
7
7
|
}, a = () => {
|
|
8
|
-
const {
|
|
9
|
-
return
|
|
8
|
+
const { livekit: n } = i();
|
|
9
|
+
return !n?.enabled || !n.url ? !1 : n.callsEnabled ?? !0;
|
|
10
10
|
}, f = () => {
|
|
11
|
-
const { office: n } =
|
|
11
|
+
const { office: n } = i();
|
|
12
|
+
return !!(n?.enabled && n.url);
|
|
13
|
+
}, d = () => {
|
|
14
|
+
const { office: n } = i();
|
|
12
15
|
return n?.enabled ? n.url : void 0;
|
|
13
|
-
},
|
|
14
|
-
const
|
|
15
|
-
return
|
|
16
|
-
},
|
|
17
|
-
for (const
|
|
18
|
-
if (typeof
|
|
16
|
+
}, m = (n, e) => {
|
|
17
|
+
const t = n(i());
|
|
18
|
+
return t === void 0 ? e : t;
|
|
19
|
+
}, v = (...n) => {
|
|
20
|
+
for (const e of n) {
|
|
21
|
+
if (typeof e != "string")
|
|
19
22
|
continue;
|
|
20
|
-
const
|
|
21
|
-
if (
|
|
22
|
-
return
|
|
23
|
+
const t = e.trim();
|
|
24
|
+
if (t)
|
|
25
|
+
return t;
|
|
23
26
|
}
|
|
24
|
-
}, s = (n, { trailingSlash:
|
|
27
|
+
}, s = (n, { trailingSlash: e = !1 } = {}) => {
|
|
25
28
|
const r = n.trim().replace(/\/+$/, "");
|
|
26
|
-
return r ?
|
|
27
|
-
},
|
|
28
|
-
const
|
|
29
|
-
if (!
|
|
30
|
-
const
|
|
29
|
+
return r ? e ? `${r}/` : r : e ? "/" : "";
|
|
30
|
+
}, l = (n) => n == null ? "" : s(n), c = (n) => {
|
|
31
|
+
const e = n.trim().match(/^(\d+(?:\.\d+)?)\s*(KB|MB|GB|TB)$/i);
|
|
32
|
+
if (!e) return null;
|
|
33
|
+
const t = parseFloat(e[1]), r = e[2].toUpperCase(), o = {
|
|
31
34
|
KB: 1024,
|
|
32
35
|
MB: 1024 ** 2,
|
|
33
36
|
GB: 1024 ** 3,
|
|
34
37
|
TB: 1024 ** 4
|
|
35
38
|
};
|
|
36
|
-
return Math.round(
|
|
37
|
-
},
|
|
38
|
-
const n =
|
|
39
|
+
return Math.round(t * o[r]);
|
|
40
|
+
}, B = () => {
|
|
41
|
+
const n = i().maxFileSize;
|
|
39
42
|
if (n) {
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
43
|
+
const e = c(n);
|
|
44
|
+
if (e) return e;
|
|
42
45
|
}
|
|
43
46
|
return null;
|
|
44
|
-
},
|
|
45
|
-
const
|
|
46
|
-
return r ? `${r}${
|
|
47
|
+
}, g = (n, e) => {
|
|
48
|
+
const t = e.startsWith("/") ? e : `/${e}`, r = l(n);
|
|
49
|
+
return r ? `${r}${t}` : t;
|
|
47
50
|
};
|
|
48
51
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
i as getEnvConfig,
|
|
53
|
+
m as getEnvValue,
|
|
54
|
+
B as getMaxUploadSize,
|
|
55
|
+
d as getOfficeUrl,
|
|
56
|
+
a as isLivekitCallsEnabled,
|
|
53
57
|
u as isLivekitEnabled,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
f as isOfficeEnabled,
|
|
59
|
+
g as joinBaseUrlPath,
|
|
60
|
+
l as normalizeBaseUrl,
|
|
57
61
|
s as normalizeUrl,
|
|
58
|
-
|
|
59
|
-
|
|
62
|
+
c as parseSizeToBytes,
|
|
63
|
+
v as resolveNonBlankString
|
|
60
64
|
};
|
|
@@ -9,6 +9,7 @@ export interface NotificationAction {
|
|
|
9
9
|
export type ExtendedNotificationData = Omit<NotificationData, 'message'> & {
|
|
10
10
|
message?: ReactNode;
|
|
11
11
|
actions?: NotificationAction[];
|
|
12
|
+
bypassOfflineSuppression?: boolean;
|
|
12
13
|
};
|
|
13
14
|
export declare const showRequestNotifications: <Response, Request extends Promise<Response> = Promise<Response>>(request: Request, options?: {
|
|
14
15
|
notifyId?: string;
|
|
@@ -16,6 +17,20 @@ export declare const showRequestNotifications: <Response, Request extends Promis
|
|
|
16
17
|
errorMsg?: ((err: any) => MessageType) | MessageType;
|
|
17
18
|
}) => Promise<any>;
|
|
18
19
|
export declare const showMessageNotification: (props: ExtendedNotificationData) => void;
|
|
20
|
+
export interface ChatToastProps {
|
|
21
|
+
id: string;
|
|
22
|
+
title: ReactNode;
|
|
23
|
+
body: ReactNode;
|
|
24
|
+
icon?: ReactNode;
|
|
25
|
+
onClick: () => void;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Chat/mention toast: a single clickable card (icon + 1-line title + 2-line
|
|
29
|
+
* clamped body). Clicking anywhere opens the conversation; the X dismisses.
|
|
30
|
+
* No action button — one tap, like a native notification. Re-showing the same
|
|
31
|
+
* id swaps the content in place rather than spamming a new card.
|
|
32
|
+
*/
|
|
33
|
+
export declare const showChatToast: ({ id, title, body, icon, onClick }: ChatToastProps) => void;
|
|
19
34
|
export declare const updateMessageNotification: (props: ExtendedNotificationData & {
|
|
20
35
|
id: string;
|
|
21
36
|
}) => void;
|
|
@@ -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;
|
|
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;IAC/B,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC,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;AA0CF,eAAO,MAAM,uBAAuB,GAAI,OAAO,wBAAwB,SAKtE,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AASD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,oCAAoC,cAAc,SA8C/E,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,76 +1,117 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { InformationCircleIcon as
|
|
3
|
-
import { HugeiconsIcon as
|
|
4
|
-
import { Box as
|
|
5
|
-
import { notifications as
|
|
6
|
-
import { isFunction as
|
|
7
|
-
import { isOfflineSuppressed as
|
|
8
|
-
import
|
|
9
|
-
let
|
|
10
|
-
const
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
|
|
1
|
+
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { InformationCircleIcon as S, CheckmarkCircle02Icon as T, Alert01Icon as O, Alert02Icon as b } from "@hugeicons/core-free-icons";
|
|
3
|
+
import { HugeiconsIcon as m } from "@hugeicons/react";
|
|
4
|
+
import { UnstyledButton as x, Group as k, Box as l, Text as w, Button as z } from "@mantine/core";
|
|
5
|
+
import { notifications as u } from "@mantine/notifications";
|
|
6
|
+
import { isFunction as C, isObject as g } from "lodash-es";
|
|
7
|
+
import { isOfflineSuppressed as M } from "./offlineSuppression.js";
|
|
8
|
+
import c from "./showNotifications.module.css.js";
|
|
9
|
+
let v = 0;
|
|
10
|
+
const j = /* @__PURE__ */ r(m, { icon: T, size: 14, color: "white" }), q = /* @__PURE__ */ r(m, { icon: b, size: 14, color: "white" }), W = /* @__PURE__ */ r(m, { icon: O, size: 14, color: "white" }), N = /* @__PURE__ */ r(m, { icon: S, size: 14, color: "white" }), I = (o, t) => t?.length ? /* @__PURE__ */ p(l, { children: [
|
|
11
|
+
/* @__PURE__ */ r(l, { children: o }),
|
|
12
|
+
/* @__PURE__ */ r(l, { className: c.actions, children: t.map((s, e) => /* @__PURE__ */ r(
|
|
13
|
+
z,
|
|
14
14
|
{
|
|
15
15
|
size: "compact-sm",
|
|
16
|
-
variant:
|
|
17
|
-
onClick:
|
|
16
|
+
variant: s.variant ?? "default",
|
|
17
|
+
onClick: s.onClick,
|
|
18
18
|
radius: "md",
|
|
19
|
-
children:
|
|
19
|
+
children: s.label
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
e
|
|
22
22
|
)) })
|
|
23
|
-
] }) : o,
|
|
24
|
-
const { successMsg:
|
|
25
|
-
return o.then((
|
|
26
|
-
if (
|
|
27
|
-
const n =
|
|
23
|
+
] }) : o, J = (o, t = {}) => {
|
|
24
|
+
const { successMsg: s, errorMsg: e } = t;
|
|
25
|
+
return o.then((i) => {
|
|
26
|
+
if (s) {
|
|
27
|
+
const n = C(s) ? s(i) : s, a = {
|
|
28
28
|
id: t.notifyId,
|
|
29
|
-
...
|
|
29
|
+
...g(n) ? n : { message: n }
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
P(a);
|
|
32
32
|
}
|
|
33
|
-
return
|
|
34
|
-
}).catch((
|
|
35
|
-
if (
|
|
36
|
-
const n =
|
|
33
|
+
return i;
|
|
34
|
+
}).catch((i) => {
|
|
35
|
+
if (e) {
|
|
36
|
+
const n = C(e) ? e(i) : e, a = {
|
|
37
37
|
id: t.notifyId,
|
|
38
|
-
...
|
|
38
|
+
...g(n) ? n : { message: n }
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
R(a);
|
|
41
41
|
}
|
|
42
|
-
return
|
|
42
|
+
return i;
|
|
43
43
|
});
|
|
44
|
-
},
|
|
45
|
-
root:
|
|
46
|
-
icon:
|
|
47
|
-
title:
|
|
48
|
-
description:
|
|
49
|
-
},
|
|
50
|
-
const {
|
|
51
|
-
|
|
44
|
+
}, y = {
|
|
45
|
+
root: c.root,
|
|
46
|
+
icon: c.icon,
|
|
47
|
+
title: c.title,
|
|
48
|
+
description: c.description
|
|
49
|
+
}, f = (o, t) => {
|
|
50
|
+
const {
|
|
51
|
+
actions: s,
|
|
52
|
+
message: e,
|
|
53
|
+
onClose: i,
|
|
54
|
+
bypassOfflineSuppression: n,
|
|
55
|
+
...a
|
|
56
|
+
} = o, h = `ntf-${++v}`, B = a.id ?? h;
|
|
57
|
+
u.show({
|
|
52
58
|
color: t.color,
|
|
53
59
|
radius: 12,
|
|
54
60
|
p: "sm",
|
|
55
|
-
...
|
|
56
|
-
id:
|
|
57
|
-
icon
|
|
61
|
+
...a,
|
|
62
|
+
id: B,
|
|
63
|
+
// Let callers override the icon (e.g. a chat toast showing the sender's avatar);
|
|
64
|
+
// fall back to the status icon (info/success/etc.) when none is supplied.
|
|
65
|
+
icon: a.icon ?? t.icon,
|
|
58
66
|
withCloseButton: !0,
|
|
59
67
|
withBorder: !0,
|
|
60
|
-
classNames:
|
|
68
|
+
classNames: y,
|
|
61
69
|
onClose: () => {
|
|
62
|
-
|
|
70
|
+
i?.(o);
|
|
63
71
|
},
|
|
64
|
-
message:
|
|
72
|
+
message: I(e, s)
|
|
65
73
|
});
|
|
66
|
-
},
|
|
67
|
-
|
|
74
|
+
}, L = (o) => {
|
|
75
|
+
f(o, {
|
|
68
76
|
color: "blue",
|
|
69
|
-
icon:
|
|
77
|
+
icon: N
|
|
70
78
|
});
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
|
|
79
|
+
}, d = /* @__PURE__ */ new Set();
|
|
80
|
+
let A = 0;
|
|
81
|
+
const Q = ({ id: o, title: t, body: s, icon: e, onClick: i }) => {
|
|
82
|
+
const n = ++A, a = /* @__PURE__ */ r(
|
|
83
|
+
x,
|
|
84
|
+
{
|
|
85
|
+
className: c.chatToast,
|
|
86
|
+
onClick: () => {
|
|
87
|
+
u.hide(o), i();
|
|
88
|
+
},
|
|
89
|
+
children: /* @__PURE__ */ p(k, { gap: "sm", wrap: "nowrap", align: "flex-start", children: [
|
|
90
|
+
e ? /* @__PURE__ */ r(l, { className: c.chatToastIcon, children: e }) : null,
|
|
91
|
+
/* @__PURE__ */ p(l, { style: { minWidth: 0, flex: 1 }, children: [
|
|
92
|
+
/* @__PURE__ */ r(w, { className: c.chatToastTitle, children: t }),
|
|
93
|
+
/* @__PURE__ */ r(w, { className: c.chatToastBody, children: s }, n)
|
|
94
|
+
] })
|
|
95
|
+
] })
|
|
96
|
+
}
|
|
97
|
+
), h = {
|
|
98
|
+
id: o,
|
|
99
|
+
radius: 12,
|
|
100
|
+
p: "sm",
|
|
101
|
+
withCloseButton: !0,
|
|
102
|
+
withBorder: !0,
|
|
103
|
+
autoClose: 6e3,
|
|
104
|
+
classNames: {
|
|
105
|
+
root: c.chatToastRoot,
|
|
106
|
+
closeButton: c.chatToastClose
|
|
107
|
+
},
|
|
108
|
+
message: a,
|
|
109
|
+
onClose: () => d.delete(o)
|
|
110
|
+
};
|
|
111
|
+
d.has(o) ? u.update(h) : (d.add(o), u.show(h));
|
|
112
|
+
}, E = (o, t) => {
|
|
113
|
+
const { actions: s, message: e, onClose: i, ...n } = o;
|
|
114
|
+
u.update({
|
|
74
115
|
color: t.color,
|
|
75
116
|
radius: 12,
|
|
76
117
|
p: "sm",
|
|
@@ -78,38 +119,39 @@ const S = /* @__PURE__ */ e(a, { icon: y, size: 14, color: "white" }), k = /* @_
|
|
|
78
119
|
icon: t.icon,
|
|
79
120
|
withCloseButton: !0,
|
|
80
121
|
withBorder: !0,
|
|
81
|
-
classNames:
|
|
122
|
+
classNames: y,
|
|
82
123
|
onClose: () => {
|
|
83
|
-
|
|
124
|
+
i?.(o);
|
|
84
125
|
},
|
|
85
|
-
message:
|
|
126
|
+
message: I(e, s)
|
|
86
127
|
});
|
|
87
|
-
},
|
|
88
|
-
|
|
128
|
+
}, V = (o) => {
|
|
129
|
+
E(o, {
|
|
89
130
|
color: "var(--mantine-color-blue-outline)",
|
|
90
|
-
icon:
|
|
131
|
+
icon: N
|
|
91
132
|
});
|
|
92
|
-
},
|
|
93
|
-
|
|
133
|
+
}, P = (o) => {
|
|
134
|
+
f(o, {
|
|
94
135
|
color: "green",
|
|
95
|
-
icon:
|
|
136
|
+
icon: j
|
|
96
137
|
});
|
|
97
|
-
},
|
|
98
|
-
|
|
138
|
+
}, X = (o) => {
|
|
139
|
+
f(o, {
|
|
99
140
|
color: "yellow",
|
|
100
|
-
icon:
|
|
141
|
+
icon: W
|
|
101
142
|
});
|
|
102
|
-
},
|
|
103
|
-
|
|
143
|
+
}, R = (o) => {
|
|
144
|
+
!o.bypassOfflineSuppression && M() || f(o, {
|
|
104
145
|
color: "red",
|
|
105
|
-
icon:
|
|
146
|
+
icon: q
|
|
106
147
|
});
|
|
107
148
|
};
|
|
108
149
|
export {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
150
|
+
Q as showChatToast,
|
|
151
|
+
R as showErrorNotification,
|
|
152
|
+
L as showMessageNotification,
|
|
153
|
+
J as showRequestNotifications,
|
|
154
|
+
P as showSuccessNotification,
|
|
155
|
+
X as showWarningNotification,
|
|
156
|
+
V as updateMessageNotification
|
|
115
157
|
};
|
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_root_wm0dw_1", o = "_icon_wm0dw_15", c = "_title_wm0dw_49", s = "_description_wm0dw_65", a = "_actions_wm0dw_77", _ = "_chatToastRoot_wm0dw_93", n = "_chatToast_wm0dw_93", w = "_chatToastIcon_wm0dw_135", T = "_chatToastTitle_wm0dw_147", d = "_chatToastBody_wm0dw_167", h = "_chatToastClose_wm0dw_231", i = {
|
|
2
2
|
root: t,
|
|
3
3
|
icon: o,
|
|
4
4
|
title: c,
|
|
5
5
|
description: s,
|
|
6
|
-
actions:
|
|
6
|
+
actions: a,
|
|
7
|
+
chatToastRoot: _,
|
|
8
|
+
chatToast: n,
|
|
9
|
+
chatToastIcon: w,
|
|
10
|
+
chatToastTitle: T,
|
|
11
|
+
chatToastBody: d,
|
|
12
|
+
chatToastClose: h
|
|
7
13
|
};
|
|
8
14
|
export {
|
|
9
|
-
|
|
10
|
-
n as
|
|
15
|
+
a as actions,
|
|
16
|
+
n as chatToast,
|
|
17
|
+
d as chatToastBody,
|
|
18
|
+
h as chatToastClose,
|
|
19
|
+
w as chatToastIcon,
|
|
20
|
+
_ as chatToastRoot,
|
|
21
|
+
T as chatToastTitle,
|
|
22
|
+
i as default,
|
|
11
23
|
s as description,
|
|
12
24
|
o as icon,
|
|
13
25
|
t as root,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUiPref.d.ts","sourceRoot":"","sources":["../../src/hooks/useUiPref.ts"],"names":[],"mappings":"AA4GA,wBAAgB,SAAS,CAAC,CAAC,EACzB,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,CAAC,GACd,SAAS,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,CAAC,CAiDpD"}
|