@weavy/uikit-react 13.0.0 → 14.0.1
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/changelog.md +30 -0
- package/dist/cjs/{types/client → client}/WeavyClient.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Attachment.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Avatar.d.ts +0 -0
- package/dist/{esm/types → cjs}/components/Chat.d.ts +1 -1
- package/dist/cjs/{types/components → components}/Conversation.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationBadge.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationForm.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationList.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationListItem.d.ts +0 -0
- package/dist/cjs/{types/components → components}/File.d.ts +0 -0
- package/dist/cjs/{types/components → components}/FileBrowser.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Image.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Meeting.d.ts +0 -0
- package/dist/cjs/{types/components → components}/MeetingCard.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Meetings.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Message.d.ts +0 -0
- package/dist/{esm/types → cjs}/components/Messages.d.ts +3 -1
- package/dist/cjs/{types/components → components}/Messenger.d.ts +0 -0
- package/dist/cjs/{types/components → components}/NewConversation.d.ts +0 -0
- package/dist/cjs/{types/components → components}/PdfViewer.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Presence.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Preview.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Reactions.d.ts +0 -0
- package/dist/cjs/{types/components → components}/SearchUsers.d.ts +0 -0
- package/dist/cjs/{types/components → components}/SeenBy.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Typing.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/MessengerContext.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/PreviewContext.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/UserContext.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/WeavyContext.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useBadge.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useChat.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useConversation.d.ts +0 -0
- package/dist/cjs/hooks/useConversations.d.ts +1 -0
- package/dist/cjs/{types/hooks → hooks}/useDebounce.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useEvents.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useFileUploader.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMembers.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMessages.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateChat.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateConversation.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateConversationName.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateDeleteReaction.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateExternalBlobs.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateMeeting.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateMembers.d.ts +0 -0
- package/dist/{esm/types → cjs}/hooks/useMutateMessage.d.ts +1 -1
- package/dist/cjs/{types/hooks → hooks}/useMutatePinned.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateReaction.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateRead.d.ts +1 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateRemoveMembers.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateTyping.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/usePresence.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/usePreview.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useReactions.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useSearchUsers.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useThrottle.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useUser.d.ts +0 -0
- package/dist/cjs/{types/index.d.ts → index.d.ts} +0 -0
- package/dist/cjs/index.js +6 -28
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/{types/Chat.d.ts → Chat.d.ts} +1 -0
- package/dist/cjs/types/{types/Conversation.d.ts → Conversation.d.ts} +0 -0
- package/dist/cjs/types/{types/ConversationListItem.d.ts → ConversationListItem.d.ts} +0 -0
- package/dist/{esm/types → cjs}/types/Message.d.ts +2 -0
- package/dist/cjs/types/{types/Messenger.d.ts → Messenger.d.ts} +0 -0
- package/dist/cjs/types/{types/types.d.ts → types.d.ts} +47 -4
- package/dist/cjs/{types/ui → ui}/Button.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Dropdown.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Icon.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Overlay.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Spinner.d.ts +2 -1
- package/dist/cjs/{types/utils → utils}/fileUtilities.d.ts +0 -0
- package/dist/css/weavy-chat.css +1543 -959
- package/dist/css/weavy-messenger.css +1903 -1302
- package/dist/css/weavy.css +1703 -1102
- package/dist/esm/{types/client → client}/WeavyClient.d.ts +0 -0
- package/dist/esm/{types/components → components}/Attachment.d.ts +0 -0
- package/dist/esm/{types/components → components}/Avatar.d.ts +0 -0
- package/dist/{cjs/types → esm}/components/Chat.d.ts +1 -1
- package/dist/esm/{types/components → components}/Conversation.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationBadge.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationForm.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationList.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationListItem.d.ts +0 -0
- package/dist/esm/{types/components → components}/File.d.ts +0 -0
- package/dist/esm/{types/components → components}/FileBrowser.d.ts +0 -0
- package/dist/esm/{types/components → components}/Image.d.ts +0 -0
- package/dist/esm/{types/components → components}/Meeting.d.ts +0 -0
- package/dist/esm/{types/components → components}/MeetingCard.d.ts +0 -0
- package/dist/esm/{types/components → components}/Meetings.d.ts +0 -0
- package/dist/esm/{types/components → components}/Message.d.ts +0 -0
- package/dist/{cjs/types → esm}/components/Messages.d.ts +3 -1
- package/dist/esm/{types/components → components}/Messenger.d.ts +0 -0
- package/dist/esm/{types/components → components}/NewConversation.d.ts +0 -0
- package/dist/esm/{types/components → components}/PdfViewer.d.ts +0 -0
- package/dist/esm/{types/components → components}/Presence.d.ts +0 -0
- package/dist/esm/{types/components → components}/Preview.d.ts +0 -0
- package/dist/esm/{types/components → components}/Reactions.d.ts +0 -0
- package/dist/esm/{types/components → components}/SearchUsers.d.ts +0 -0
- package/dist/esm/{types/components → components}/SeenBy.d.ts +0 -0
- package/dist/esm/{types/components → components}/Typing.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/MessengerContext.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/PreviewContext.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/UserContext.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/WeavyContext.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useBadge.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useChat.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useConversation.d.ts +0 -0
- package/dist/esm/hooks/useConversations.d.ts +1 -0
- package/dist/esm/{types/hooks → hooks}/useDebounce.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useEvents.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useFileUploader.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMembers.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMessages.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateChat.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateConversation.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateConversationName.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateDeleteReaction.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateExternalBlobs.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateMeeting.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateMembers.d.ts +0 -0
- package/dist/{cjs/types → esm}/hooks/useMutateMessage.d.ts +1 -1
- package/dist/esm/{types/hooks → hooks}/useMutatePinned.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateReaction.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateRead.d.ts +1 -0
- package/dist/esm/{types/hooks → hooks}/useMutateRemoveMembers.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateTyping.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/usePresence.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/usePreview.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useReactions.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useSearchUsers.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useThrottle.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useUser.d.ts +0 -0
- package/dist/esm/{types/index.d.ts → index.d.ts} +0 -0
- package/dist/esm/index.js +6 -28
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/{types/Chat.d.ts → Chat.d.ts} +1 -0
- package/dist/esm/types/{types/Conversation.d.ts → Conversation.d.ts} +0 -0
- package/dist/esm/types/{types/ConversationListItem.d.ts → ConversationListItem.d.ts} +0 -0
- package/dist/{cjs/types → esm}/types/Message.d.ts +2 -0
- package/dist/esm/types/{types/Messenger.d.ts → Messenger.d.ts} +0 -0
- package/dist/esm/types/{types/types.d.ts → types.d.ts} +47 -4
- package/dist/esm/{types/ui → ui}/Button.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Dropdown.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Icon.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Overlay.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Spinner.d.ts +2 -1
- package/dist/esm/{types/utils → utils}/fileUtilities.d.ts +0 -0
- package/dist/index.d.ts +2 -1
- package/package.json +18 -15
- package/{rollup.config.js → rollup.config.mjs} +10 -3
- package/src/client/WeavyClient.ts +12 -17
- package/src/components/Attachment.tsx +5 -5
- package/src/components/Chat.tsx +6 -5
- package/src/components/Conversation.tsx +26 -20
- package/src/components/ConversationBadge.tsx +7 -5
- package/src/components/ConversationForm.tsx +1 -1
- package/src/components/ConversationList.tsx +59 -11
- package/src/components/ConversationListItem.tsx +94 -58
- package/src/components/FileBrowser.tsx +53 -50
- package/src/components/Image.tsx +2 -1
- package/src/components/MeetingCard.tsx +35 -13
- package/src/components/Meetings.tsx +1 -1
- package/src/components/Message.tsx +41 -42
- package/src/components/Messages.tsx +61 -60
- package/src/components/Messenger.tsx +7 -2
- package/src/components/NewConversation.tsx +1 -1
- package/src/components/PdfViewer.tsx +5 -5
- package/src/components/Preview.tsx +2 -2
- package/src/components/Reactions.tsx +11 -5
- package/src/components/SearchUsers.tsx +19 -9
- package/src/components/SeenBy.tsx +13 -7
- package/src/components/Typing.tsx +11 -12
- package/src/contexts/UserContext.tsx +1 -1
- package/src/contexts/WeavyContext.tsx +3 -3
- package/src/hooks/useConversations.ts +15 -5
- package/src/hooks/useMutateMessage.ts +1 -5
- package/src/hooks/useMutateRead.ts +5 -3
- package/src/hooks/usePresence.ts +2 -3
- package/src/hooks/useReactions.ts +11 -12
- package/src/scss/theme/_alert.scss +61 -63
- package/src/scss/theme/_appbar.scss +105 -30
- package/src/scss/theme/_avatar.scss +23 -28
- package/src/scss/theme/_badge.scss +26 -18
- package/src/scss/theme/_buttons.scss +107 -52
- package/src/scss/theme/_card.scss +102 -4
- package/src/scss/theme/_checkbox.scss +16 -20
- package/src/scss/theme/_code-vscode-dark.scss +3 -3
- package/src/scss/theme/_code-vscode-light.scss +3 -3
- package/src/scss/theme/_code.scss +0 -2
- package/src/scss/theme/_comment-editor-cm.scss +97 -0
- package/src/scss/theme/_comment-editor.scss +129 -0
- package/src/scss/theme/_comments.scss +66 -0
- package/src/scss/theme/_content.scss +33 -5
- package/src/scss/theme/_conversations.scss +19 -78
- package/src/scss/theme/_dropdown.scss +102 -15
- package/src/scss/theme/_embed.scss +135 -0
- package/src/scss/theme/_facepile.scss +11 -0
- package/src/scss/theme/_filebrowser.scss +1 -1
- package/src/scss/theme/_files.scss +76 -47
- package/src/scss/theme/_grid.scss +8 -0
- package/src/scss/theme/_icons.scss +155 -19
- package/src/scss/theme/_image-grid.scss +7 -12
- package/src/scss/theme/_input.scss +160 -0
- package/src/scss/theme/_item.scss +169 -0
- package/src/scss/theme/_list.scss +57 -0
- package/src/scss/theme/_meeting.scss +11 -0
- package/src/scss/theme/_message-editor-cm.scss +95 -0
- package/src/scss/theme/_message-editor.scss +65 -19
- package/src/scss/theme/_messages.scss +51 -105
- package/src/scss/theme/_meta.scss +12 -0
- package/src/scss/theme/_overlays.scss +31 -76
- package/src/scss/theme/_pager.scss +5 -1
- package/src/scss/theme/_pane.scss +13 -2
- package/src/scss/theme/_panels.scss +33 -28
- package/src/scss/theme/_picker-list.scss +5 -3
- package/src/scss/theme/_placeholder.scss +19 -0
- package/src/scss/theme/_poll.scss +49 -0
- package/src/scss/theme/_post-editor-cm.scss +100 -0
- package/src/scss/theme/_post-editor.scss +127 -0
- package/src/scss/theme/_post.scss +83 -0
- package/src/scss/theme/_preview-code.scss +11 -2
- package/src/scss/theme/_preview-embed.scss +8 -2
- package/src/scss/theme/_preview-image.scss +8 -26
- package/src/scss/theme/_preview-media.scss +1 -0
- package/src/scss/theme/_preview-pdf.scss +10 -15
- package/src/scss/theme/_preview.scss +57 -79
- package/src/scss/theme/_reactions.scss +48 -17
- package/src/scss/theme/_sheet.scss +59 -0
- package/src/scss/theme/_sidebar.scss +86 -0
- package/src/scss/theme/_spinner.scss +11 -7
- package/src/scss/theme/_tab.scss +72 -0
- package/src/scss/theme/_tables.scss +70 -23
- package/src/scss/theme/_toasts.scss +56 -26
- package/src/scss/theme/_type.scss +41 -0
- package/src/scss/theme/{mixins → base}/_backdrop.scss +0 -0
- package/src/scss/theme/{bootstrap/mixins → base}/_breakpoints.scss +9 -0
- package/src/scss/theme/base/_colors.scss +315 -0
- package/src/scss/theme/base/_md.scss +19 -0
- package/src/scss/theme/base/_palette.scss +130 -0
- package/src/scss/theme/{mixins → base}/_position.scss +5 -5
- package/src/scss/theme/base/_reboot.scss +51 -0
- package/src/scss/theme/base/_scroll.scss +180 -0
- package/src/scss/theme/base/_svg.scss +49 -0
- package/src/scss/theme/base/_text.scss +23 -0
- package/src/scss/theme/base/_vars.scss +203 -0
- package/src/scss/theme/{fonts → base/fonts}/_fontmapping-roboto.scss +0 -0
- package/src/scss/theme/{fonts → base/fonts}/_fontmapping-segoe-ui.scss +0 -0
- package/src/scss/theme/base/fonts/_index.scss +2 -0
- package/src/scss/weavy-chat.scss +10 -4
- package/src/scss/weavy-messenger.scss +37 -21
- package/src/types/Chat.ts +2 -1
- package/src/types/Message.ts +3 -1
- package/src/types/types.ts +56 -5
- package/src/ui/Icon.tsx +1 -1
- package/src/ui/Spinner.tsx +3 -2
- package/src/utils/infiniteScroll.js +12 -3
- package/src/utils/postal-parent.js +398 -0
- package/src/utils/promise.js +187 -0
- package/src/utils/scrollbarDetection.js +71 -9
- package/src/utils/utils.js +547 -0
- package/dist/cjs/types/hooks/useConversations.d.ts +0 -1
- package/dist/esm/types/hooks/useConversations.d.ts +0 -1
- package/src/scss/theme/_attachments.scss +0 -74
- package/src/scss/theme/_cm-editor.scss +0 -42
- package/src/scss/theme/_colors.scss +0 -520
- package/src/scss/theme/_config.scss +0 -6
- package/src/scss/theme/_inputs.scss +0 -28
- package/src/scss/theme/_nav.scss +0 -52
- package/src/scss/theme/_palette.scss +0 -165
- package/src/scss/theme/_preview-icon.scss +0 -41
- package/src/scss/theme/_reboot.scss +0 -41
- package/src/scss/theme/_root.scss +0 -2
- package/src/scss/theme/_scroll.scss +0 -55
- package/src/scss/theme/_search.scss +0 -68
- package/src/scss/theme/_turbo.scss +0 -17
- package/src/scss/theme/_variables.scss +0 -139
- package/src/scss/theme/bootstrap/_accordion.scss +0 -146
- package/src/scss/theme/bootstrap/_alert.scss +0 -71
- package/src/scss/theme/bootstrap/_badge.scss +0 -38
- package/src/scss/theme/bootstrap/_breadcrumb.scss +0 -40
- package/src/scss/theme/bootstrap/_button-group.scss +0 -142
- package/src/scss/theme/bootstrap/_buttons.scss +0 -186
- package/src/scss/theme/bootstrap/_card.scss +0 -234
- package/src/scss/theme/bootstrap/_carousel.scss +0 -229
- package/src/scss/theme/bootstrap/_close.scss +0 -40
- package/src/scss/theme/bootstrap/_containers.scss +0 -41
- package/src/scss/theme/bootstrap/_dropdown.scss +0 -248
- package/src/scss/theme/bootstrap/_forms.scss +0 -9
- package/src/scss/theme/bootstrap/_functions.scss +0 -302
- package/src/scss/theme/bootstrap/_grid.scss +0 -33
- package/src/scss/theme/bootstrap/_helpers.scss +0 -10
- package/src/scss/theme/bootstrap/_images.scss +0 -42
- package/src/scss/theme/bootstrap/_list-group.scss +0 -191
- package/src/scss/theme/bootstrap/_maps.scss +0 -54
- package/src/scss/theme/bootstrap/_mixins.scss +0 -43
- package/src/scss/theme/bootstrap/_modal.scss +0 -237
- package/src/scss/theme/bootstrap/_nav.scss +0 -172
- package/src/scss/theme/bootstrap/_navbar.scss +0 -276
- package/src/scss/theme/bootstrap/_offcanvas.scss +0 -143
- package/src/scss/theme/bootstrap/_pagination.scss +0 -109
- package/src/scss/theme/bootstrap/_placeholders.scss +0 -51
- package/src/scss/theme/bootstrap/_popover.scss +0 -196
- package/src/scss/theme/bootstrap/_progress.scss +0 -59
- package/src/scss/theme/bootstrap/_reboot.scss +0 -610
- package/src/scss/theme/bootstrap/_root.scss +0 -73
- package/src/scss/theme/bootstrap/_spinners.scss +0 -85
- package/src/scss/theme/bootstrap/_tables.scss +0 -164
- package/src/scss/theme/bootstrap/_toasts.scss +0 -70
- package/src/scss/theme/bootstrap/_tooltip.scss +0 -120
- package/src/scss/theme/bootstrap/_transitions.scss +0 -27
- package/src/scss/theme/bootstrap/_type.scss +0 -106
- package/src/scss/theme/bootstrap/_utilities.scss +0 -647
- package/src/scss/theme/bootstrap/_variables.scss +0 -1633
- package/src/scss/theme/bootstrap/forms/_floating-labels.scss +0 -74
- package/src/scss/theme/bootstrap/forms/_form-check.scss +0 -175
- package/src/scss/theme/bootstrap/forms/_form-control.scss +0 -194
- package/src/scss/theme/bootstrap/forms/_form-range.scss +0 -91
- package/src/scss/theme/bootstrap/forms/_form-select.scss +0 -71
- package/src/scss/theme/bootstrap/forms/_form-text.scss +0 -11
- package/src/scss/theme/bootstrap/forms/_input-group.scss +0 -129
- package/src/scss/theme/bootstrap/forms/_labels.scss +0 -36
- package/src/scss/theme/bootstrap/forms/_validation.scss +0 -12
- package/src/scss/theme/bootstrap/helpers/_clearfix.scss +0 -3
- package/src/scss/theme/bootstrap/helpers/_color-bg.scss +0 -10
- package/src/scss/theme/bootstrap/helpers/_colored-links.scss +0 -12
- package/src/scss/theme/bootstrap/helpers/_position.scss +0 -36
- package/src/scss/theme/bootstrap/helpers/_ratio.scss +0 -26
- package/src/scss/theme/bootstrap/helpers/_stacks.scss +0 -15
- package/src/scss/theme/bootstrap/helpers/_stretched-link.scss +0 -15
- package/src/scss/theme/bootstrap/helpers/_text-truncation.scss +0 -7
- package/src/scss/theme/bootstrap/helpers/_visually-hidden.scss +0 -8
- package/src/scss/theme/bootstrap/helpers/_vr.scss +0 -8
- package/src/scss/theme/bootstrap/mixins/_alert.scss +0 -15
- package/src/scss/theme/bootstrap/mixins/_backdrop.scss +0 -14
- package/src/scss/theme/bootstrap/mixins/_banner.scss +0 -9
- package/src/scss/theme/bootstrap/mixins/_border-radius.scss +0 -78
- package/src/scss/theme/bootstrap/mixins/_box-shadow.scss +0 -18
- package/src/scss/theme/bootstrap/mixins/_buttons.scss +0 -70
- package/src/scss/theme/bootstrap/mixins/_caret.scss +0 -64
- package/src/scss/theme/bootstrap/mixins/_clearfix.scss +0 -9
- package/src/scss/theme/bootstrap/mixins/_color-scheme.scss +0 -7
- package/src/scss/theme/bootstrap/mixins/_container.scss +0 -11
- package/src/scss/theme/bootstrap/mixins/_deprecate.scss +0 -10
- package/src/scss/theme/bootstrap/mixins/_forms.scss +0 -152
- package/src/scss/theme/bootstrap/mixins/_gradients.scss +0 -47
- package/src/scss/theme/bootstrap/mixins/_grid.scss +0 -151
- package/src/scss/theme/bootstrap/mixins/_image.scss +0 -16
- package/src/scss/theme/bootstrap/mixins/_list-group.scss +0 -24
- package/src/scss/theme/bootstrap/mixins/_lists.scss +0 -7
- package/src/scss/theme/bootstrap/mixins/_pagination.scss +0 -10
- package/src/scss/theme/bootstrap/mixins/_reset-text.scss +0 -17
- package/src/scss/theme/bootstrap/mixins/_resize.scss +0 -6
- package/src/scss/theme/bootstrap/mixins/_table-variants.scss +0 -24
- package/src/scss/theme/bootstrap/mixins/_text-truncate.scss +0 -8
- package/src/scss/theme/bootstrap/mixins/_transition.scss +0 -26
- package/src/scss/theme/bootstrap/mixins/_utilities.scss +0 -97
- package/src/scss/theme/bootstrap/mixins/_visually-hidden.scss +0 -29
- package/src/scss/theme/bootstrap/utilities/_api.scss +0 -47
- package/src/scss/theme/bootstrap/vendor/_rfs.scss +0 -354
- package/src/scss/theme/bs/_badge.scss +0 -20
- package/src/scss/theme/bs/_buttons.scss +0 -185
- package/src/scss/theme/bs/_dropdown.scss +0 -86
- package/src/scss/theme/bs/_forms.scss +0 -161
- package/src/scss/theme/bs/_list-group.scss +0 -73
- package/src/scss/theme/bs/_tables.scss +0 -46
- package/src/scss/theme/fonts/_index.scss +0 -2
- package/src/scss/theme/mixins/_palette.scss +0 -165
- package/src/scss/theme/mixins/_scrollbar.scss +0 -110
package/src/scss/weavy-chat.scss
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// weavy reboot
|
|
2
|
-
@use "theme/reboot";
|
|
2
|
+
@use "theme/base/reboot";
|
|
3
|
+
@use "theme/base/scroll";
|
|
4
|
+
@use "theme/base/vars";
|
|
5
|
+
|
|
3
6
|
// weavy ui components
|
|
4
|
-
@use "theme/attachments";
|
|
5
7
|
@use "theme/avatar";
|
|
6
8
|
@use "theme/buttons";
|
|
7
9
|
@use "theme/code";
|
|
@@ -10,8 +12,12 @@
|
|
|
10
12
|
@use "theme/emoji";
|
|
11
13
|
@use "theme/icons";
|
|
12
14
|
@use "theme/image-grid";
|
|
15
|
+
@use "theme/input";
|
|
16
|
+
@use "theme/item";
|
|
17
|
+
@use "theme/list";
|
|
13
18
|
@use "theme/messages";
|
|
14
19
|
@use "theme/message-editor";
|
|
20
|
+
@use "theme/meta";
|
|
15
21
|
@use "theme/overlays";
|
|
16
22
|
@use "theme/pager";
|
|
17
23
|
@use "theme/pane";
|
|
@@ -21,12 +27,12 @@
|
|
|
21
27
|
@use "theme/preview-code";
|
|
22
28
|
@use "theme/preview-embed";
|
|
23
29
|
@use "theme/preview-html";
|
|
24
|
-
@use "theme/preview-icon";
|
|
25
30
|
@use "theme/preview-image";
|
|
26
31
|
@use "theme/preview-media";
|
|
27
32
|
@use "theme/preview-pdf";
|
|
28
33
|
@use "theme/preview-text";
|
|
29
34
|
@use "theme/reactions";
|
|
30
|
-
@use "theme/scroll";
|
|
31
35
|
@use "theme/spinner";
|
|
36
|
+
@use "theme/type";
|
|
32
37
|
@use "theme/typing";
|
|
38
|
+
@use "theme/meeting";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// weavy reboot
|
|
2
|
-
@use "theme/reboot";
|
|
2
|
+
@use "theme/base/reboot";
|
|
3
|
+
@use "theme/base/scroll";
|
|
4
|
+
@use "theme/base/colors";
|
|
3
5
|
|
|
4
6
|
// weavy ui components
|
|
5
7
|
@use "theme/appbar";
|
|
6
|
-
@use "theme/attachments";
|
|
7
8
|
@use "theme/avatar";
|
|
8
9
|
@use "theme/badge";
|
|
9
10
|
@use "theme/buttons";
|
|
@@ -15,9 +16,12 @@
|
|
|
15
16
|
@use "theme/emoji";
|
|
16
17
|
@use "theme/icons";
|
|
17
18
|
@use "theme/image-grid";
|
|
18
|
-
@use "theme/
|
|
19
|
+
@use "theme/input";
|
|
20
|
+
@use "theme/item";
|
|
21
|
+
@use "theme/list";
|
|
19
22
|
@use "theme/messages";
|
|
20
23
|
@use "theme/message-editor";
|
|
24
|
+
@use "theme/meta";
|
|
21
25
|
@use "theme/overlays";
|
|
22
26
|
@use "theme/pager";
|
|
23
27
|
@use "theme/pane";
|
|
@@ -27,35 +31,47 @@
|
|
|
27
31
|
@use "theme/preview-code";
|
|
28
32
|
@use "theme/preview-embed";
|
|
29
33
|
@use "theme/preview-html";
|
|
30
|
-
@use "theme/preview-icon";
|
|
31
34
|
@use "theme/preview-image";
|
|
32
35
|
@use "theme/preview-media";
|
|
33
36
|
@use "theme/preview-pdf";
|
|
34
37
|
@use "theme/preview-text";
|
|
35
38
|
@use "theme/reactions";
|
|
36
|
-
@use "theme/search";
|
|
37
|
-
@use "theme/scroll";
|
|
38
39
|
@use "theme/spinner";
|
|
40
|
+
@use "theme/tables";
|
|
41
|
+
@use "theme/type";
|
|
39
42
|
@use "theme/typing";
|
|
43
|
+
@use "theme/meeting";
|
|
40
44
|
|
|
41
45
|
// layout
|
|
42
46
|
.wy-messenger-provider {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
display: flex;
|
|
48
|
+
min-height: 0;
|
|
49
|
+
min-width: 0;
|
|
50
|
+
flex: 1 1 0;
|
|
51
|
+
}
|
|
48
52
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
.wy-messenger-sidebar {
|
|
54
|
+
---background-color: #{colors.$background};
|
|
55
|
+
---color: #{colors.$on-background};
|
|
56
|
+
|
|
57
|
+
background-color: var(---background-color);
|
|
58
|
+
color: var(---color);
|
|
59
|
+
|
|
60
|
+
width: 300px;
|
|
61
|
+
border-right: 1px solid #{colors.$outline-variant};
|
|
62
|
+
}
|
|
53
63
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
64
|
+
.wy-messenger-conversation {
|
|
65
|
+
---background-color: #{colors.$background};
|
|
66
|
+
---color: #{colors.$on-background};
|
|
67
|
+
|
|
68
|
+
background-color: var(---background-color);
|
|
69
|
+
color: var(---color);
|
|
70
|
+
|
|
71
|
+
overflow-anchor: none;
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
flex: 1 1 0;
|
|
75
|
+
}
|
|
60
76
|
|
|
61
77
|
|
package/src/types/Chat.ts
CHANGED
package/src/types/Message.ts
CHANGED
|
@@ -6,11 +6,13 @@ export interface MessageProps {
|
|
|
6
6
|
avatar?: string,
|
|
7
7
|
name: string,
|
|
8
8
|
created_at: string,
|
|
9
|
+
created_by: string,
|
|
9
10
|
attachments: AttachmentType[],
|
|
10
11
|
meeting: MeetingCardType,
|
|
11
12
|
parentId: number | null,
|
|
12
13
|
reactions: ReactableType[],
|
|
13
14
|
reactions_count?: number,
|
|
14
|
-
seenBy: MemberType[]
|
|
15
|
+
seenBy: MemberType[],
|
|
16
|
+
chatRoom: boolean
|
|
15
17
|
}
|
|
16
18
|
|
package/src/types/types.ts
CHANGED
|
@@ -92,9 +92,16 @@ type MemberType = {
|
|
|
92
92
|
name: string,
|
|
93
93
|
display_name: string,
|
|
94
94
|
avatar_url: string,
|
|
95
|
-
delivered_at
|
|
96
|
-
read_at
|
|
97
|
-
presence: string
|
|
95
|
+
delivered_at?: string,
|
|
96
|
+
read_at?: string,
|
|
97
|
+
presence: string,
|
|
98
|
+
marked_id?: number,
|
|
99
|
+
marked_at?: string
|
|
100
|
+
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
type MemberTypingType = MemberType & {
|
|
104
|
+
time: number
|
|
98
105
|
}
|
|
99
106
|
|
|
100
107
|
type MessageType = {
|
|
@@ -105,6 +112,7 @@ type MessageType = {
|
|
|
105
112
|
temp?: boolean,
|
|
106
113
|
created_at: string,
|
|
107
114
|
created_by: MemberType,
|
|
115
|
+
created_by_id: number,
|
|
108
116
|
attachments: AttachmentType[],
|
|
109
117
|
attachment_ids: number[],
|
|
110
118
|
meeting: MeetingCardType,
|
|
@@ -114,10 +122,11 @@ type MessageType = {
|
|
|
114
122
|
|
|
115
123
|
type UserType = {
|
|
116
124
|
id: number,
|
|
125
|
+
uid: string,
|
|
126
|
+
name: string,
|
|
117
127
|
username: string,
|
|
118
128
|
email: string,
|
|
119
|
-
|
|
120
|
-
title: string,
|
|
129
|
+
display_name: string,
|
|
121
130
|
avatar_url: string,
|
|
122
131
|
presence: string
|
|
123
132
|
}
|
|
@@ -189,3 +198,45 @@ type BadgeType = {
|
|
|
189
198
|
rooms: number,
|
|
190
199
|
chat: number
|
|
191
200
|
}
|
|
201
|
+
|
|
202
|
+
type EntityType = {
|
|
203
|
+
id: number,
|
|
204
|
+
type: string
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
type RealtimeMessage = {
|
|
208
|
+
action: string,
|
|
209
|
+
id: number,
|
|
210
|
+
actor: UserType,
|
|
211
|
+
message: MessageType
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
type RealtimeReaction = {
|
|
215
|
+
action: string,
|
|
216
|
+
id: number,
|
|
217
|
+
actor: UserType,
|
|
218
|
+
entity: EntityType,
|
|
219
|
+
reaction: string
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
type RealtimeApp = {
|
|
223
|
+
action: string,
|
|
224
|
+
id: number,
|
|
225
|
+
actor: UserType,
|
|
226
|
+
app: ConversationType
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
type RealtimeMember = {
|
|
230
|
+
action: string,
|
|
231
|
+
id: number,
|
|
232
|
+
actor: UserType,
|
|
233
|
+
app: ConversationType,
|
|
234
|
+
member: MemberType
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
type RealtimeTyping = {
|
|
238
|
+
action: string,
|
|
239
|
+
id: number,
|
|
240
|
+
actor: MemberTypingType,
|
|
241
|
+
conversation: ConversationType
|
|
242
|
+
}
|
package/src/ui/Icon.tsx
CHANGED
|
@@ -103,7 +103,7 @@ const Icon = ({ name, color = "", size, ...props }: Props) => {
|
|
|
103
103
|
let overlayPath = getIconOverlay(name);
|
|
104
104
|
|
|
105
105
|
return (
|
|
106
|
-
<span className={'wy-icon ' + color} style={{width: size && (size * 1.5 + "rem"), height: size && (size * 1.5 + "rem")}} { ...props }>
|
|
106
|
+
<span className={'wy-icon' + (color ? ' wy-icon-' + color : '')} style={{width: size && (size * 1.5 + "rem"), height: size && (size * 1.5 + "rem")}} { ...props }>
|
|
107
107
|
{iconPath ? <MdiIcon.Icon color={color} path={iconPath} size={size} /> : name }
|
|
108
108
|
{overlayPath && <MdiIcon.Icon color={color} path={overlayPath} className="wy-icon-overlay" size={(size || 1) / 2} /> }
|
|
109
109
|
</span>
|
package/src/ui/Spinner.tsx
CHANGED
|
@@ -4,12 +4,13 @@ import classNames from 'classnames';
|
|
|
4
4
|
type SpinnerProps = {
|
|
5
5
|
size?: number,
|
|
6
6
|
spin?: boolean,
|
|
7
|
+
overlay?: boolean
|
|
7
8
|
}
|
|
8
9
|
|
|
9
|
-
const SpinnerImpl = ({ spin = true, size = 24 }: SpinnerProps) => {
|
|
10
|
+
const SpinnerImpl = ({ spin = true, size = 24, overlay= false }: SpinnerProps) => {
|
|
10
11
|
|
|
11
12
|
return (
|
|
12
|
-
<svg className={classNames("wy-spinner", {"wy-spin" : spin })} width={size} height={size} viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle fill="none" cx="12" cy="12" r="11"
|
|
13
|
+
<svg className={classNames("wy-spinner", {"wy-spin" : spin, "wy-spinner-overlay" : overlay })} width={size} height={size} viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle fill="none" cx="12" cy="12" r="11" strokeLinecap="butt" strokeWidth="2" /></svg>
|
|
13
14
|
)
|
|
14
15
|
}
|
|
15
16
|
|
|
@@ -6,9 +6,15 @@
|
|
|
6
6
|
* @returns IntersectionObserver
|
|
7
7
|
*/
|
|
8
8
|
export function createScroller(observeElement, whenNext) {
|
|
9
|
-
console.log("creating regular scroller");
|
|
9
|
+
//console.log("creating regular scroller");
|
|
10
10
|
var parent = getScrollParent(observeElement);
|
|
11
11
|
|
|
12
|
+
// Disable scroll anchoring https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-anchor/Guide_to_scroll_anchoring
|
|
13
|
+
parent.style.overflowAnchor = "none";
|
|
14
|
+
|
|
15
|
+
// Bug using scrollingElement in frames. See https://github.com/w3c/IntersectionObserver/issues/372
|
|
16
|
+
var intersectionParent = (parent === document.documentElement ? document : parent);
|
|
17
|
+
|
|
12
18
|
whenNext ??= () => Promise.reject(new Error("No scroller handler function defined")); // default
|
|
13
19
|
|
|
14
20
|
const nextObserver = new IntersectionObserver((entries, observer) => {
|
|
@@ -17,7 +23,7 @@
|
|
|
17
23
|
whenNext();
|
|
18
24
|
}
|
|
19
25
|
});
|
|
20
|
-
}, { root:
|
|
26
|
+
}, { root: intersectionParent, threshold: 0, rootMargin: "500px" });
|
|
21
27
|
|
|
22
28
|
nextObserver.observe(observeElement);
|
|
23
29
|
|
|
@@ -41,6 +47,9 @@ export function createReverseScroller(observeElement, whenNext) {
|
|
|
41
47
|
// Disable scroll anchoring https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-anchor/Guide_to_scroll_anchoring
|
|
42
48
|
parent.style.overflowAnchor = "none";
|
|
43
49
|
|
|
50
|
+
// Bug using scrollingElement in frames. See https://github.com/w3c/IntersectionObserver/issues/372
|
|
51
|
+
var intersectionParent = (parent === document.documentElement ? document : parent);
|
|
52
|
+
|
|
44
53
|
whenNext ??= () => Promise.reject(new Error("No reverse scroller handler function defined")); // default
|
|
45
54
|
|
|
46
55
|
const prevObserver = new IntersectionObserver((entries, observer) => {
|
|
@@ -97,7 +106,7 @@ export function createReverseScroller(observeElement, whenNext) {
|
|
|
97
106
|
}
|
|
98
107
|
}
|
|
99
108
|
})
|
|
100
|
-
}, { root:
|
|
109
|
+
}, { root: intersectionParent, threshold: 0, rootMargin: "500px" });
|
|
101
110
|
|
|
102
111
|
prevObserver.observe(observeElement);
|
|
103
112
|
|