@liveblocks/react-ui 3.9.1 → 3.9.2-tiptap1
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/AiChat.cjs +133 -113
- package/dist/components/AiChat.cjs.map +1 -1
- package/dist/components/AiChat.js +133 -113
- package/dist/components/AiChat.js.map +1 -1
- package/dist/components/AiTool.cjs +120 -93
- package/dist/components/AiTool.cjs.map +1 -1
- package/dist/components/AiTool.js +120 -93
- package/dist/components/AiTool.js.map +1 -1
- package/dist/components/Comment.cjs +374 -374
- package/dist/components/Comment.cjs.map +1 -1
- package/dist/components/Comment.js +374 -374
- package/dist/components/Comment.js.map +1 -1
- package/dist/components/Composer.cjs +208 -259
- package/dist/components/Composer.cjs.map +1 -1
- package/dist/components/Composer.js +208 -259
- package/dist/components/Composer.js.map +1 -1
- package/dist/components/HistoryVersionSummary.cjs +28 -25
- package/dist/components/HistoryVersionSummary.cjs.map +1 -1
- package/dist/components/HistoryVersionSummary.js +28 -25
- package/dist/components/HistoryVersionSummary.js.map +1 -1
- package/dist/components/HistoryVersionSummaryList.cjs +9 -9
- package/dist/components/HistoryVersionSummaryList.cjs.map +1 -1
- package/dist/components/HistoryVersionSummaryList.js +9 -9
- package/dist/components/HistoryVersionSummaryList.js.map +1 -1
- package/dist/components/InboxNotification.cjs +264 -239
- package/dist/components/InboxNotification.cjs.map +1 -1
- package/dist/components/InboxNotification.js +264 -239
- package/dist/components/InboxNotification.js.map +1 -1
- package/dist/components/InboxNotificationList.cjs +19 -19
- package/dist/components/InboxNotificationList.cjs.map +1 -1
- package/dist/components/InboxNotificationList.js +19 -19
- package/dist/components/InboxNotificationList.js.map +1 -1
- package/dist/components/Thread.cjs +102 -82
- package/dist/components/Thread.cjs.map +1 -1
- package/dist/components/Thread.js +102 -82
- package/dist/components/Thread.js.map +1 -1
- package/dist/components/internal/AiChatAssistantMessage.cjs +164 -210
- package/dist/components/internal/AiChatAssistantMessage.cjs.map +1 -1
- package/dist/components/internal/AiChatAssistantMessage.js +164 -210
- package/dist/components/internal/AiChatAssistantMessage.js.map +1 -1
- package/dist/components/internal/AiChatUserMessage.cjs +29 -26
- package/dist/components/internal/AiChatUserMessage.cjs.map +1 -1
- package/dist/components/internal/AiChatUserMessage.js +29 -26
- package/dist/components/internal/AiChatUserMessage.js.map +1 -1
- package/dist/components/internal/AiComposer.cjs +37 -53
- package/dist/components/internal/AiComposer.cjs.map +1 -1
- package/dist/components/internal/AiComposer.js +37 -53
- package/dist/components/internal/AiComposer.js.map +1 -1
- package/dist/components/internal/Attachment.cjs +170 -181
- package/dist/components/internal/Attachment.cjs.map +1 -1
- package/dist/components/internal/Attachment.js +170 -181
- package/dist/components/internal/Attachment.js.map +1 -1
- package/dist/components/internal/Attribution.cjs +27 -18
- package/dist/components/internal/Attribution.cjs.map +1 -1
- package/dist/components/internal/Attribution.js +27 -18
- package/dist/components/internal/Attribution.js.map +1 -1
- package/dist/components/internal/Avatar.cjs +30 -32
- package/dist/components/internal/Avatar.cjs.map +1 -1
- package/dist/components/internal/Avatar.js +30 -32
- package/dist/components/internal/Avatar.js.map +1 -1
- package/dist/components/internal/Button.cjs +34 -47
- package/dist/components/internal/Button.cjs.map +1 -1
- package/dist/components/internal/Button.js +34 -47
- package/dist/components/internal/Button.js.map +1 -1
- package/dist/components/internal/CodeBlock.cjs +15 -34
- package/dist/components/internal/CodeBlock.cjs.map +1 -1
- package/dist/components/internal/CodeBlock.js +15 -34
- package/dist/components/internal/CodeBlock.js.map +1 -1
- package/dist/components/internal/Dropdown.cjs +37 -37
- package/dist/components/internal/Dropdown.cjs.map +1 -1
- package/dist/components/internal/Dropdown.js +37 -37
- package/dist/components/internal/Dropdown.js.map +1 -1
- package/dist/components/internal/Emoji.cjs +16 -13
- package/dist/components/internal/Emoji.cjs.map +1 -1
- package/dist/components/internal/Emoji.js +16 -13
- package/dist/components/internal/Emoji.js.map +1 -1
- package/dist/components/internal/EmojiPicker.cjs +61 -102
- package/dist/components/internal/EmojiPicker.cjs.map +1 -1
- package/dist/components/internal/EmojiPicker.js +61 -102
- package/dist/components/internal/EmojiPicker.js.map +1 -1
- package/dist/components/internal/Favicon.cjs +1 -10
- package/dist/components/internal/Favicon.cjs.map +1 -1
- package/dist/components/internal/Favicon.js +1 -10
- package/dist/components/internal/Favicon.js.map +1 -1
- package/dist/components/internal/Group.cjs +12 -9
- package/dist/components/internal/Group.cjs.map +1 -1
- package/dist/components/internal/Group.js +12 -9
- package/dist/components/internal/Group.js.map +1 -1
- package/dist/components/internal/GroupDescription.cjs +1 -5
- package/dist/components/internal/GroupDescription.cjs.map +1 -1
- package/dist/components/internal/GroupDescription.js +1 -5
- package/dist/components/internal/GroupDescription.js.map +1 -1
- package/dist/components/internal/Icon.cjs +18 -15
- package/dist/components/internal/Icon.cjs.map +1 -1
- package/dist/components/internal/Icon.js +18 -15
- package/dist/components/internal/Icon.js.map +1 -1
- package/dist/components/internal/InboxNotificationThread.cjs +38 -50
- package/dist/components/internal/InboxNotificationThread.cjs.map +1 -1
- package/dist/components/internal/InboxNotificationThread.js +38 -50
- package/dist/components/internal/InboxNotificationThread.js.map +1 -1
- package/dist/components/internal/List.cjs +9 -6
- package/dist/components/internal/List.cjs.map +1 -1
- package/dist/components/internal/List.js +9 -6
- package/dist/components/internal/List.js.map +1 -1
- package/dist/components/internal/Prose.cjs +7 -14
- package/dist/components/internal/Prose.cjs.map +1 -1
- package/dist/components/internal/Prose.js +7 -14
- package/dist/components/internal/Prose.js.map +1 -1
- package/dist/components/internal/Room.cjs +9 -6
- package/dist/components/internal/Room.cjs.map +1 -1
- package/dist/components/internal/Room.js +9 -6
- package/dist/components/internal/Room.js.map +1 -1
- package/dist/components/internal/Tooltip.cjs +43 -56
- package/dist/components/internal/Tooltip.cjs.map +1 -1
- package/dist/components/internal/Tooltip.js +43 -56
- package/dist/components/internal/Tooltip.js.map +1 -1
- package/dist/components/internal/User.cjs +12 -9
- package/dist/components/internal/User.cjs.map +1 -1
- package/dist/components/internal/User.js +12 -9
- package/dist/components/internal/User.js.map +1 -1
- package/dist/components.cjs +1 -4
- package/dist/components.cjs.map +1 -1
- package/dist/components.js +1 -4
- package/dist/components.js.map +1 -1
- package/dist/config.cjs +1 -10
- package/dist/config.cjs.map +1 -1
- package/dist/config.js +1 -10
- package/dist/config.js.map +1 -1
- package/dist/icons/ArrowCornerDownRight.cjs +1 -6
- package/dist/icons/ArrowCornerDownRight.cjs.map +1 -1
- package/dist/icons/ArrowCornerDownRight.js +1 -6
- package/dist/icons/ArrowCornerDownRight.js.map +1 -1
- package/dist/icons/ArrowCornerUpRight.cjs +1 -6
- package/dist/icons/ArrowCornerUpRight.cjs.map +1 -1
- package/dist/icons/ArrowCornerUpRight.js +1 -6
- package/dist/icons/ArrowCornerUpRight.js.map +1 -1
- package/dist/icons/ArrowDown.cjs +1 -6
- package/dist/icons/ArrowDown.cjs.map +1 -1
- package/dist/icons/ArrowDown.js +1 -6
- package/dist/icons/ArrowDown.js.map +1 -1
- package/dist/icons/ArrowUp.cjs +1 -6
- package/dist/icons/ArrowUp.cjs.map +1 -1
- package/dist/icons/ArrowUp.js +1 -6
- package/dist/icons/ArrowUp.js.map +1 -1
- package/dist/icons/Attachment.cjs +1 -6
- package/dist/icons/Attachment.cjs.map +1 -1
- package/dist/icons/Attachment.js +1 -6
- package/dist/icons/Attachment.js.map +1 -1
- package/dist/icons/Bell.cjs +1 -6
- package/dist/icons/Bell.cjs.map +1 -1
- package/dist/icons/Bell.js +1 -6
- package/dist/icons/Bell.js.map +1 -1
- package/dist/icons/BellCrossed.cjs +1 -6
- package/dist/icons/BellCrossed.cjs.map +1 -1
- package/dist/icons/BellCrossed.js +1 -6
- package/dist/icons/BellCrossed.js.map +1 -1
- package/dist/icons/Blockquote.cjs +1 -6
- package/dist/icons/Blockquote.cjs.map +1 -1
- package/dist/icons/Blockquote.js +1 -6
- package/dist/icons/Blockquote.js.map +1 -1
- package/dist/icons/Bold.cjs +1 -6
- package/dist/icons/Bold.cjs.map +1 -1
- package/dist/icons/Bold.js +1 -6
- package/dist/icons/Bold.js.map +1 -1
- package/dist/icons/Check.cjs +1 -6
- package/dist/icons/Check.cjs.map +1 -1
- package/dist/icons/Check.js +1 -6
- package/dist/icons/Check.js.map +1 -1
- package/dist/icons/CheckCircle.cjs +4 -13
- package/dist/icons/CheckCircle.cjs.map +1 -1
- package/dist/icons/CheckCircle.js +4 -13
- package/dist/icons/CheckCircle.js.map +1 -1
- package/dist/icons/CheckCircleFill.cjs +4 -15
- package/dist/icons/CheckCircleFill.cjs.map +1 -1
- package/dist/icons/CheckCircleFill.js +4 -15
- package/dist/icons/CheckCircleFill.js.map +1 -1
- package/dist/icons/ChevronDown.cjs +1 -6
- package/dist/icons/ChevronDown.cjs.map +1 -1
- package/dist/icons/ChevronDown.js +1 -6
- package/dist/icons/ChevronDown.js.map +1 -1
- package/dist/icons/ChevronLeft.cjs +1 -6
- package/dist/icons/ChevronLeft.cjs.map +1 -1
- package/dist/icons/ChevronLeft.js +1 -6
- package/dist/icons/ChevronLeft.js.map +1 -1
- package/dist/icons/ChevronRight.cjs +1 -6
- package/dist/icons/ChevronRight.cjs.map +1 -1
- package/dist/icons/ChevronRight.js +1 -6
- package/dist/icons/ChevronRight.js.map +1 -1
- package/dist/icons/ChevronUp.cjs +1 -6
- package/dist/icons/ChevronUp.cjs.map +1 -1
- package/dist/icons/ChevronUp.js +1 -6
- package/dist/icons/ChevronUp.js.map +1 -1
- package/dist/icons/Code.cjs +1 -6
- package/dist/icons/Code.cjs.map +1 -1
- package/dist/icons/Code.js +1 -6
- package/dist/icons/Code.js.map +1 -1
- package/dist/icons/Comment.cjs +1 -6
- package/dist/icons/Comment.cjs.map +1 -1
- package/dist/icons/Comment.js +1 -6
- package/dist/icons/Comment.js.map +1 -1
- package/dist/icons/Copy.cjs +4 -15
- package/dist/icons/Copy.cjs.map +1 -1
- package/dist/icons/Copy.js +4 -15
- package/dist/icons/Copy.js.map +1 -1
- package/dist/icons/Cross.cjs +4 -11
- package/dist/icons/Cross.cjs.map +1 -1
- package/dist/icons/Cross.js +4 -11
- package/dist/icons/Cross.js.map +1 -1
- package/dist/icons/CrossCircleFill.cjs +4 -15
- package/dist/icons/CrossCircleFill.cjs.map +1 -1
- package/dist/icons/CrossCircleFill.js +4 -15
- package/dist/icons/CrossCircleFill.js.map +1 -1
- package/dist/icons/Delete.cjs +1 -6
- package/dist/icons/Delete.cjs.map +1 -1
- package/dist/icons/Delete.js +1 -6
- package/dist/icons/Delete.js.map +1 -1
- package/dist/icons/Edit.cjs +1 -6
- package/dist/icons/Edit.cjs.map +1 -1
- package/dist/icons/Edit.js +1 -6
- package/dist/icons/Edit.js.map +1 -1
- package/dist/icons/Ellipsis.cjs +5 -21
- package/dist/icons/Ellipsis.cjs.map +1 -1
- package/dist/icons/Ellipsis.js +5 -21
- package/dist/icons/Ellipsis.js.map +1 -1
- package/dist/icons/Emoji.cjs +7 -24
- package/dist/icons/Emoji.cjs.map +1 -1
- package/dist/icons/Emoji.js +7 -24
- package/dist/icons/Emoji.js.map +1 -1
- package/dist/icons/EmojiPlus.cjs +8 -27
- package/dist/icons/EmojiPlus.cjs.map +1 -1
- package/dist/icons/EmojiPlus.js +8 -27
- package/dist/icons/EmojiPlus.js.map +1 -1
- package/dist/icons/Globe.cjs +4 -13
- package/dist/icons/Globe.cjs.map +1 -1
- package/dist/icons/Globe.js +4 -13
- package/dist/icons/Globe.js.map +1 -1
- package/dist/icons/H1.cjs +1 -6
- package/dist/icons/H1.cjs.map +1 -1
- package/dist/icons/H1.js +1 -6
- package/dist/icons/H1.js.map +1 -1
- package/dist/icons/H2.cjs +1 -6
- package/dist/icons/H2.cjs.map +1 -1
- package/dist/icons/H2.js +1 -6
- package/dist/icons/H2.js.map +1 -1
- package/dist/icons/H3.cjs +1 -6
- package/dist/icons/H3.cjs.map +1 -1
- package/dist/icons/H3.js +1 -6
- package/dist/icons/H3.js.map +1 -1
- package/dist/icons/Italic.cjs +1 -6
- package/dist/icons/Italic.cjs.map +1 -1
- package/dist/icons/Italic.js +1 -6
- package/dist/icons/Italic.js.map +1 -1
- package/dist/icons/Lengthen.cjs +1 -6
- package/dist/icons/Lengthen.cjs.map +1 -1
- package/dist/icons/Lengthen.js +1 -6
- package/dist/icons/Lengthen.js.map +1 -1
- package/dist/icons/ListOrdered.cjs +1 -6
- package/dist/icons/ListOrdered.cjs.map +1 -1
- package/dist/icons/ListOrdered.js +1 -6
- package/dist/icons/ListOrdered.js.map +1 -1
- package/dist/icons/ListUnordered.cjs +8 -29
- package/dist/icons/ListUnordered.cjs.map +1 -1
- package/dist/icons/ListUnordered.js +8 -29
- package/dist/icons/ListUnordered.js.map +1 -1
- package/dist/icons/Mention.cjs +4 -11
- package/dist/icons/Mention.cjs.map +1 -1
- package/dist/icons/Mention.js +4 -11
- package/dist/icons/Mention.js.map +1 -1
- package/dist/icons/MinusCircle.cjs +4 -13
- package/dist/icons/MinusCircle.cjs.map +1 -1
- package/dist/icons/MinusCircle.js +4 -13
- package/dist/icons/MinusCircle.js.map +1 -1
- package/dist/icons/QuestionMark.cjs +5 -16
- package/dist/icons/QuestionMark.cjs.map +1 -1
- package/dist/icons/QuestionMark.js +5 -16
- package/dist/icons/QuestionMark.js.map +1 -1
- package/dist/icons/Redo.cjs +4 -11
- package/dist/icons/Redo.cjs.map +1 -1
- package/dist/icons/Redo.js +4 -11
- package/dist/icons/Redo.js.map +1 -1
- package/dist/icons/Restore.cjs +4 -11
- package/dist/icons/Restore.cjs.map +1 -1
- package/dist/icons/Restore.js +4 -11
- package/dist/icons/Restore.js.map +1 -1
- package/dist/icons/Retry.cjs +4 -11
- package/dist/icons/Retry.cjs.map +1 -1
- package/dist/icons/Retry.js +4 -11
- package/dist/icons/Retry.js.map +1 -1
- package/dist/icons/Search.cjs +1 -6
- package/dist/icons/Search.cjs.map +1 -1
- package/dist/icons/Search.js +1 -6
- package/dist/icons/Search.js.map +1 -1
- package/dist/icons/Send.cjs +1 -6
- package/dist/icons/Send.cjs.map +1 -1
- package/dist/icons/Send.js +1 -6
- package/dist/icons/Send.js.map +1 -1
- package/dist/icons/Shorten.cjs +1 -6
- package/dist/icons/Shorten.cjs.map +1 -1
- package/dist/icons/Shorten.js +1 -6
- package/dist/icons/Shorten.js.map +1 -1
- package/dist/icons/Sparkles.cjs +1 -6
- package/dist/icons/Sparkles.cjs.map +1 -1
- package/dist/icons/Sparkles.js +1 -6
- package/dist/icons/Sparkles.js.map +1 -1
- package/dist/icons/SparklesText.cjs +4 -11
- package/dist/icons/SparklesText.cjs.map +1 -1
- package/dist/icons/SparklesText.js +4 -11
- package/dist/icons/SparklesText.js.map +1 -1
- package/dist/icons/Spinner.cjs +1 -7
- package/dist/icons/Spinner.cjs.map +1 -1
- package/dist/icons/Spinner.js +1 -7
- package/dist/icons/Spinner.js.map +1 -1
- package/dist/icons/Stop.cjs +1 -11
- package/dist/icons/Stop.cjs.map +1 -1
- package/dist/icons/Stop.js +1 -11
- package/dist/icons/Stop.js.map +1 -1
- package/dist/icons/Strikethrough.cjs +1 -6
- package/dist/icons/Strikethrough.cjs.map +1 -1
- package/dist/icons/Strikethrough.js +1 -6
- package/dist/icons/Strikethrough.js.map +1 -1
- package/dist/icons/Text.cjs +1 -6
- package/dist/icons/Text.cjs.map +1 -1
- package/dist/icons/Text.js +1 -6
- package/dist/icons/Text.js.map +1 -1
- package/dist/icons/Translate.cjs +4 -11
- package/dist/icons/Translate.cjs.map +1 -1
- package/dist/icons/Translate.js +4 -11
- package/dist/icons/Translate.js.map +1 -1
- package/dist/icons/Underline.cjs +1 -6
- package/dist/icons/Underline.cjs.map +1 -1
- package/dist/icons/Underline.js +1 -6
- package/dist/icons/Underline.js.map +1 -1
- package/dist/icons/Undo.cjs +4 -11
- package/dist/icons/Undo.cjs.map +1 -1
- package/dist/icons/Undo.js +4 -11
- package/dist/icons/Undo.js.map +1 -1
- package/dist/icons/User.cjs +1 -6
- package/dist/icons/User.cjs.map +1 -1
- package/dist/icons/User.js +1 -6
- package/dist/icons/User.js.map +1 -1
- package/dist/icons/Users.cjs +1 -6
- package/dist/icons/Users.cjs.map +1 -1
- package/dist/icons/Users.js +1 -6
- package/dist/icons/Users.js.map +1 -1
- package/dist/icons/Warning.cjs +4 -13
- package/dist/icons/Warning.cjs.map +1 -1
- package/dist/icons/Warning.js +4 -13
- package/dist/icons/Warning.js.map +1 -1
- package/dist/overrides.cjs +102 -150
- package/dist/overrides.cjs.map +1 -1
- package/dist/overrides.js +102 -150
- package/dist/overrides.js.map +1 -1
- package/dist/primitives/AiComposer/index.cjs +77 -65
- package/dist/primitives/AiComposer/index.cjs.map +1 -1
- package/dist/primitives/AiComposer/index.js +77 -65
- package/dist/primitives/AiComposer/index.js.map +1 -1
- package/dist/primitives/AiMessage/index.cjs +28 -49
- package/dist/primitives/AiMessage/index.cjs.map +1 -1
- package/dist/primitives/AiMessage/index.js +28 -49
- package/dist/primitives/AiMessage/index.js.map +1 -1
- package/dist/primitives/AiMessage/tool-invocation.cjs +5 -5
- package/dist/primitives/AiMessage/tool-invocation.cjs.map +1 -1
- package/dist/primitives/AiMessage/tool-invocation.js +5 -5
- package/dist/primitives/AiMessage/tool-invocation.js.map +1 -1
- package/dist/primitives/Collapsible/index.cjs +46 -34
- package/dist/primitives/Collapsible/index.cjs.map +1 -1
- package/dist/primitives/Collapsible/index.js +46 -34
- package/dist/primitives/Collapsible/index.js.map +1 -1
- package/dist/primitives/Comment/index.cjs +41 -64
- package/dist/primitives/Comment/index.cjs.map +1 -1
- package/dist/primitives/Comment/index.js +41 -64
- package/dist/primitives/Comment/index.js.map +1 -1
- package/dist/primitives/Composer/contexts.cjs.map +1 -1
- package/dist/primitives/Composer/contexts.js.map +1 -1
- package/dist/primitives/Composer/index.cjs +324 -312
- package/dist/primitives/Composer/index.cjs.map +1 -1
- package/dist/primitives/Composer/index.js +324 -312
- package/dist/primitives/Composer/index.js.map +1 -1
- package/dist/primitives/Composer/slate/plugins/auto-links.cjs.map +1 -1
- package/dist/primitives/Composer/slate/plugins/auto-links.js.map +1 -1
- package/dist/primitives/Composer/slate/plugins/custom-links.cjs.map +1 -1
- package/dist/primitives/Composer/slate/plugins/custom-links.js.map +1 -1
- package/dist/primitives/Composer/slate/plugins/mentions.cjs +1 -0
- package/dist/primitives/Composer/slate/plugins/mentions.cjs.map +1 -1
- package/dist/primitives/Composer/slate/plugins/mentions.js +1 -0
- package/dist/primitives/Composer/slate/plugins/mentions.js.map +1 -1
- package/dist/primitives/Composer/slate/plugins/paste.cjs +1 -0
- package/dist/primitives/Composer/slate/plugins/paste.cjs.map +1 -1
- package/dist/primitives/Composer/slate/plugins/paste.js +1 -0
- package/dist/primitives/Composer/slate/plugins/paste.js.map +1 -1
- package/dist/primitives/Composer/utils.cjs +3 -0
- package/dist/primitives/Composer/utils.cjs.map +1 -1
- package/dist/primitives/Composer/utils.js +3 -0
- package/dist/primitives/Composer/utils.js.map +1 -1
- package/dist/primitives/Duration.cjs +11 -7
- package/dist/primitives/Duration.cjs.map +1 -1
- package/dist/primitives/Duration.js +11 -7
- package/dist/primitives/Duration.js.map +1 -1
- package/dist/primitives/FileSize.cjs +2 -5
- package/dist/primitives/FileSize.cjs.map +1 -1
- package/dist/primitives/FileSize.js +2 -5
- package/dist/primitives/FileSize.js.map +1 -1
- package/dist/primitives/Markdown.cjs +80 -188
- package/dist/primitives/Markdown.cjs.map +1 -1
- package/dist/primitives/Markdown.js +80 -188
- package/dist/primitives/Markdown.js.map +1 -1
- package/dist/primitives/Timestamp.cjs +12 -7
- package/dist/primitives/Timestamp.cjs.map +1 -1
- package/dist/primitives/Timestamp.js +12 -7
- package/dist/primitives/Timestamp.js.map +1 -1
- package/dist/primitives/slate/utils/get-dom-range.cjs.map +1 -1
- package/dist/primitives/slate/utils/get-dom-range.js.map +1 -1
- package/dist/primitives/slate/utils/get-match-range.cjs.map +1 -1
- package/dist/primitives/slate/utils/get-match-range.js.map +1 -1
- package/dist/primitives/slate/utils/is-empty.cjs.map +1 -1
- package/dist/primitives/slate/utils/is-empty.js.map +1 -1
- package/dist/primitives/slate/utils/marks.cjs.map +1 -1
- package/dist/primitives/slate/utils/marks.js.map +1 -1
- package/dist/shared.cjs.map +1 -1
- package/dist/shared.js.map +1 -1
- package/dist/utils/ErrorBoundary.cjs +1 -6
- package/dist/utils/ErrorBoundary.cjs.map +1 -1
- package/dist/utils/ErrorBoundary.js +1 -6
- package/dist/utils/ErrorBoundary.js.map +1 -1
- package/dist/utils/Persist.cjs +1 -4
- package/dist/utils/Persist.cjs.map +1 -1
- package/dist/utils/Persist.js +1 -4
- package/dist/utils/Persist.js.map +1 -1
- package/dist/utils/Portal.cjs +1 -5
- package/dist/utils/Portal.cjs.map +1 -1
- package/dist/utils/Portal.js +1 -5
- package/dist/utils/Portal.js.map +1 -1
- package/dist/utils/format-file-size.cjs.map +1 -1
- package/dist/utils/format-file-size.js.map +1 -1
- package/dist/utils/is-key.cjs.map +1 -1
- package/dist/utils/is-key.js.map +1 -1
- package/dist/utils/pluralize.cjs.map +1 -1
- package/dist/utils/pluralize.js.map +1 -1
- package/dist/utils/use-controllable-state.cjs.map +1 -1
- package/dist/utils/use-controllable-state.js.map +1 -1
- package/dist/utils/use-rerender.cjs +3 -0
- package/dist/utils/use-rerender.cjs.map +1 -1
- package/dist/utils/use-rerender.js +3 -0
- package/dist/utils/use-rerender.js.map +1 -1
- package/dist/utils/use-visible.cjs.map +1 -1
- package/dist/utils/use-visible.js.map +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +4 -4
|
@@ -93,8 +93,9 @@ const InboxNotificationLayout = forwardRef(
|
|
|
93
93
|
const handleDelete = useCallback(() => {
|
|
94
94
|
deleteInboxNotification(inboxNotification.id);
|
|
95
95
|
}, [inboxNotification.id, deleteInboxNotification]);
|
|
96
|
-
return /* @__PURE__ */ jsx(TooltipProvider, {
|
|
97
|
-
|
|
96
|
+
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(
|
|
97
|
+
Component,
|
|
98
|
+
{
|
|
98
99
|
className: cn(
|
|
99
100
|
"lb-root lb-inbox-notification",
|
|
100
101
|
showActions === "hover" && "lb-inbox-notification:show-actions-hover",
|
|
@@ -109,107 +110,93 @@ const InboxNotificationLayout = forwardRef(
|
|
|
109
110
|
...props,
|
|
110
111
|
ref: forwardedRef,
|
|
111
112
|
children: [
|
|
112
|
-
aside && /* @__PURE__ */ jsx("div", {
|
|
113
|
-
|
|
114
|
-
children:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
icon: /* @__PURE__ */ jsx(EllipsisIcon, {})
|
|
178
|
-
})
|
|
179
|
-
})
|
|
180
|
-
})
|
|
181
|
-
})
|
|
182
|
-
})
|
|
183
|
-
]
|
|
184
|
-
}),
|
|
185
|
-
/* @__PURE__ */ jsx("div", {
|
|
186
|
-
className: "lb-inbox-notification-body",
|
|
187
|
-
children
|
|
188
|
-
})
|
|
189
|
-
]
|
|
190
|
-
})
|
|
113
|
+
aside && /* @__PURE__ */ jsx("div", { className: "lb-inbox-notification-aside", children: aside }),
|
|
114
|
+
/* @__PURE__ */ jsxs("div", { className: "lb-inbox-notification-content", children: [
|
|
115
|
+
/* @__PURE__ */ jsxs("div", { className: "lb-inbox-notification-header", children: [
|
|
116
|
+
/* @__PURE__ */ jsx("span", { className: "lb-inbox-notification-title", children: title }),
|
|
117
|
+
/* @__PURE__ */ jsx("div", { className: "lb-inbox-notification-details", children: /* @__PURE__ */ jsxs("span", { className: "lb-inbox-notification-details-labels", children: [
|
|
118
|
+
/* @__PURE__ */ jsx(
|
|
119
|
+
Timestamp,
|
|
120
|
+
{
|
|
121
|
+
locale: $.locale,
|
|
122
|
+
date,
|
|
123
|
+
className: "lb-date lb-inbox-notification-date"
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
unread && /* @__PURE__ */ jsx(
|
|
127
|
+
"span",
|
|
128
|
+
{
|
|
129
|
+
className: "lb-inbox-notification-unread-indicator",
|
|
130
|
+
role: "presentation"
|
|
131
|
+
}
|
|
132
|
+
)
|
|
133
|
+
] }) }),
|
|
134
|
+
showActions && /* @__PURE__ */ jsx("div", { className: "lb-inbox-notification-actions", children: /* @__PURE__ */ jsx(
|
|
135
|
+
Dropdown,
|
|
136
|
+
{
|
|
137
|
+
open: isMoreActionOpen,
|
|
138
|
+
onOpenChange: setMoreActionOpen,
|
|
139
|
+
align: "end",
|
|
140
|
+
content: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
141
|
+
additionalDropdownItemsBefore,
|
|
142
|
+
unread ? /* @__PURE__ */ jsx(
|
|
143
|
+
DropdownItem,
|
|
144
|
+
{
|
|
145
|
+
onSelect: handleMarkAsRead,
|
|
146
|
+
onClick: stopPropagation,
|
|
147
|
+
icon: /* @__PURE__ */ jsx(CheckIcon, {}),
|
|
148
|
+
children: $.INBOX_NOTIFICATION_MARK_AS_READ
|
|
149
|
+
}
|
|
150
|
+
) : null,
|
|
151
|
+
/* @__PURE__ */ jsx(
|
|
152
|
+
DropdownItem,
|
|
153
|
+
{
|
|
154
|
+
onSelect: handleDelete,
|
|
155
|
+
onClick: stopPropagation,
|
|
156
|
+
icon: /* @__PURE__ */ jsx(DeleteIcon, {}),
|
|
157
|
+
children: $.INBOX_NOTIFICATION_DELETE
|
|
158
|
+
}
|
|
159
|
+
),
|
|
160
|
+
additionalDropdownItemsAfter
|
|
161
|
+
] }),
|
|
162
|
+
children: /* @__PURE__ */ jsx(Tooltip, { content: $.INBOX_NOTIFICATION_MORE, children: /* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
163
|
+
Button,
|
|
164
|
+
{
|
|
165
|
+
className: "lb-inbox-notification-action",
|
|
166
|
+
onClick: handleMoreClick,
|
|
167
|
+
onPointerDown: preventDefaultAndStopPropagation,
|
|
168
|
+
onPointerUp: preventDefaultAndStopPropagation,
|
|
169
|
+
"aria-label": $.INBOX_NOTIFICATION_MORE,
|
|
170
|
+
icon: /* @__PURE__ */ jsx(EllipsisIcon, {})
|
|
171
|
+
}
|
|
172
|
+
) }) })
|
|
173
|
+
}
|
|
174
|
+
) })
|
|
175
|
+
] }),
|
|
176
|
+
/* @__PURE__ */ jsx("div", { className: "lb-inbox-notification-body", children })
|
|
177
|
+
] })
|
|
191
178
|
]
|
|
192
|
-
}
|
|
193
|
-
});
|
|
179
|
+
}
|
|
180
|
+
) });
|
|
194
181
|
}
|
|
195
182
|
);
|
|
196
183
|
function InboxNotificationIcon({
|
|
197
184
|
className,
|
|
198
185
|
...props
|
|
199
186
|
}) {
|
|
200
|
-
return /* @__PURE__ */ jsx("div", {
|
|
201
|
-
className: cn("lb-inbox-notification-icon", className),
|
|
202
|
-
...props
|
|
203
|
-
});
|
|
187
|
+
return /* @__PURE__ */ jsx("div", { className: cn("lb-inbox-notification-icon", className), ...props });
|
|
204
188
|
}
|
|
205
189
|
function InboxNotificationAvatar({
|
|
206
190
|
className,
|
|
207
191
|
...props
|
|
208
192
|
}) {
|
|
209
|
-
return /* @__PURE__ */ jsx(
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
193
|
+
return /* @__PURE__ */ jsx(
|
|
194
|
+
Avatar,
|
|
195
|
+
{
|
|
196
|
+
className: cn("lb-inbox-notification-avatar", className),
|
|
197
|
+
...props
|
|
198
|
+
}
|
|
199
|
+
);
|
|
213
200
|
}
|
|
214
201
|
const InboxNotificationThread = forwardRef(
|
|
215
202
|
({
|
|
@@ -246,34 +233,31 @@ const InboxNotificationThread = forwardRef(
|
|
|
246
233
|
case "comments": {
|
|
247
234
|
const reversedUserIds = [...contents2.userIds].reverse();
|
|
248
235
|
const firstUserId = reversedUserIds[0];
|
|
249
|
-
const aside2 = /* @__PURE__ */ jsx(InboxNotificationAvatar, {
|
|
250
|
-
userId: firstUserId
|
|
251
|
-
});
|
|
236
|
+
const aside2 = /* @__PURE__ */ jsx(InboxNotificationAvatar, { userId: firstUserId });
|
|
252
237
|
const title2 = $.INBOX_NOTIFICATION_THREAD_COMMENTS_LIST(
|
|
253
|
-
/* @__PURE__ */ jsx(
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
replaceSelf: true
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
showRoomName ? /* @__PURE__ */ jsx(Room, {
|
|
263
|
-
roomId: thread.roomId
|
|
264
|
-
}) : void 0,
|
|
238
|
+
/* @__PURE__ */ jsx(
|
|
239
|
+
List,
|
|
240
|
+
{
|
|
241
|
+
values: reversedUserIds.map((userId) => /* @__PURE__ */ jsx(User, { userId, replaceSelf: true }, userId)),
|
|
242
|
+
formatRemaining: $.LIST_REMAINING_USERS,
|
|
243
|
+
truncate: INBOX_NOTIFICATION_THREAD_MAX_COMMENTS - 1,
|
|
244
|
+
locale: $.locale
|
|
245
|
+
}
|
|
246
|
+
),
|
|
247
|
+
showRoomName ? /* @__PURE__ */ jsx(Room, { roomId: thread.roomId }) : void 0,
|
|
265
248
|
reversedUserIds.length
|
|
266
249
|
);
|
|
267
|
-
const content2 = /* @__PURE__ */ jsx("div", {
|
|
268
|
-
|
|
269
|
-
|
|
250
|
+
const content2 = /* @__PURE__ */ jsx("div", { className: "lb-inbox-notification-comments", children: contents2.comments.map((comment) => /* @__PURE__ */ jsx(
|
|
251
|
+
InboxNotificationComment,
|
|
252
|
+
{
|
|
270
253
|
comment,
|
|
271
254
|
showHeader: contents2.comments.length > 1,
|
|
272
255
|
showAttachments,
|
|
273
256
|
showReactions,
|
|
274
257
|
overrides
|
|
275
|
-
},
|
|
276
|
-
|
|
258
|
+
},
|
|
259
|
+
comment.id
|
|
260
|
+
)) });
|
|
277
261
|
return {
|
|
278
262
|
unread: contents2.unread,
|
|
279
263
|
date: contents2.date,
|
|
@@ -287,27 +271,22 @@ const InboxNotificationThread = forwardRef(
|
|
|
287
271
|
case "mention": {
|
|
288
272
|
const mentionCreatedBy = contents2.userIds[0];
|
|
289
273
|
const mentionComment = contents2.comments[0];
|
|
290
|
-
const aside2 = /* @__PURE__ */ jsx(InboxNotificationAvatar, {
|
|
291
|
-
userId: mentionCreatedBy
|
|
292
|
-
});
|
|
274
|
+
const aside2 = /* @__PURE__ */ jsx(InboxNotificationAvatar, { userId: mentionCreatedBy });
|
|
293
275
|
const title2 = $.INBOX_NOTIFICATION_THREAD_MENTION(
|
|
294
|
-
/* @__PURE__ */ jsx(User, {
|
|
295
|
-
|
|
296
|
-
}, mentionCreatedBy),
|
|
297
|
-
showRoomName ? /* @__PURE__ */ jsx(Room, {
|
|
298
|
-
roomId: thread.roomId
|
|
299
|
-
}) : void 0
|
|
276
|
+
/* @__PURE__ */ jsx(User, { userId: mentionCreatedBy }, mentionCreatedBy),
|
|
277
|
+
showRoomName ? /* @__PURE__ */ jsx(Room, { roomId: thread.roomId }) : void 0
|
|
300
278
|
);
|
|
301
|
-
const content2 = /* @__PURE__ */ jsx("div", {
|
|
302
|
-
|
|
303
|
-
|
|
279
|
+
const content2 = /* @__PURE__ */ jsx("div", { className: "lb-inbox-notification-comments", children: /* @__PURE__ */ jsx(
|
|
280
|
+
InboxNotificationComment,
|
|
281
|
+
{
|
|
304
282
|
comment: mentionComment,
|
|
305
283
|
showHeader: false,
|
|
306
284
|
showAttachments,
|
|
307
285
|
showReactions,
|
|
308
286
|
overrides
|
|
309
|
-
},
|
|
310
|
-
|
|
287
|
+
},
|
|
288
|
+
mentionComment.id
|
|
289
|
+
) });
|
|
311
290
|
return {
|
|
312
291
|
unread: contents2.unread,
|
|
313
292
|
date: contents2.date,
|
|
@@ -337,7 +316,10 @@ const InboxNotificationThread = forwardRef(
|
|
|
337
316
|
]);
|
|
338
317
|
const resolvedHref = useMemo(() => {
|
|
339
318
|
const resolvedHref2 = href ?? info?.url;
|
|
340
|
-
return resolvedHref2 ?
|
|
319
|
+
return resolvedHref2 ? (
|
|
320
|
+
// Set the comment ID as the URL hash.
|
|
321
|
+
generateUrl(resolvedHref2, void 0, contents?.commentId)
|
|
322
|
+
) : void 0;
|
|
341
323
|
}, [contents?.commentId, href, info?.url]);
|
|
342
324
|
const handleSubscribeChange = useCallback(() => {
|
|
343
325
|
if (subscriptionStatus === "subscribed") {
|
|
@@ -353,26 +335,32 @@ const InboxNotificationThread = forwardRef(
|
|
|
353
335
|
return null;
|
|
354
336
|
}
|
|
355
337
|
const { aside, title, content, date, unread } = contents;
|
|
356
|
-
return /* @__PURE__ */ jsx(
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
338
|
+
return /* @__PURE__ */ jsx(
|
|
339
|
+
InboxNotificationLayout,
|
|
340
|
+
{
|
|
341
|
+
inboxNotification,
|
|
342
|
+
aside,
|
|
343
|
+
title,
|
|
344
|
+
date,
|
|
345
|
+
unread,
|
|
346
|
+
overrides,
|
|
347
|
+
href: resolvedHref,
|
|
348
|
+
showActions,
|
|
349
|
+
markAsReadOnClick: false,
|
|
350
|
+
additionalDropdownItemsBefore: /* @__PURE__ */ jsx(
|
|
351
|
+
DropdownItem,
|
|
352
|
+
{
|
|
353
|
+
onSelect: handleSubscribeChange,
|
|
354
|
+
onClick: stopPropagation,
|
|
355
|
+
icon: subscriptionStatus === "subscribed" ? /* @__PURE__ */ jsx(BellCrossedIcon, {}) : /* @__PURE__ */ jsx(BellIcon, {}),
|
|
356
|
+
children: subscriptionStatus === "subscribed" ? $.THREAD_UNSUBSCRIBE : $.THREAD_SUBSCRIBE
|
|
357
|
+
}
|
|
358
|
+
),
|
|
359
|
+
...props,
|
|
360
|
+
ref: forwardedRef,
|
|
361
|
+
children: content
|
|
362
|
+
}
|
|
363
|
+
);
|
|
376
364
|
}
|
|
377
365
|
);
|
|
378
366
|
const InboxNotificationTextMention = forwardRef(
|
|
@@ -393,27 +381,30 @@ const InboxNotificationTextMention = forwardRef(
|
|
|
393
381
|
const unread = useMemo(() => {
|
|
394
382
|
return !inboxNotification.readAt || inboxNotification.notifiedAt > inboxNotification.readAt;
|
|
395
383
|
}, [inboxNotification.notifiedAt, inboxNotification.readAt]);
|
|
396
|
-
return /* @__PURE__ */ jsx(
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
384
|
+
return /* @__PURE__ */ jsx(
|
|
385
|
+
InboxNotificationLayout,
|
|
386
|
+
{
|
|
387
|
+
inboxNotification,
|
|
388
|
+
aside: /* @__PURE__ */ jsx(InboxNotificationAvatar, { userId: inboxNotification.createdBy }),
|
|
389
|
+
title: $.INBOX_NOTIFICATION_TEXT_MENTION(
|
|
390
|
+
/* @__PURE__ */ jsx(
|
|
391
|
+
User,
|
|
392
|
+
{
|
|
393
|
+
userId: inboxNotification.createdBy
|
|
394
|
+
},
|
|
395
|
+
inboxNotification.createdBy
|
|
396
|
+
),
|
|
397
|
+
showRoomName ? /* @__PURE__ */ jsx(Room, { roomId: inboxNotification.roomId }) : void 0
|
|
398
|
+
),
|
|
399
|
+
date: inboxNotification.notifiedAt,
|
|
400
|
+
unread,
|
|
401
|
+
overrides,
|
|
402
|
+
showActions,
|
|
403
|
+
href: resolvedHref,
|
|
404
|
+
...props,
|
|
405
|
+
ref
|
|
406
|
+
}
|
|
407
|
+
);
|
|
417
408
|
}
|
|
418
409
|
);
|
|
419
410
|
const InboxNotificationCustom = forwardRef(
|
|
@@ -429,18 +420,21 @@ const InboxNotificationCustom = forwardRef(
|
|
|
429
420
|
const unread = useMemo(() => {
|
|
430
421
|
return !inboxNotification.readAt || inboxNotification.notifiedAt > inboxNotification.readAt;
|
|
431
422
|
}, [inboxNotification.notifiedAt, inboxNotification.readAt]);
|
|
432
|
-
return /* @__PURE__ */ jsx(
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
423
|
+
return /* @__PURE__ */ jsx(
|
|
424
|
+
InboxNotificationLayout,
|
|
425
|
+
{
|
|
426
|
+
inboxNotification,
|
|
427
|
+
aside,
|
|
428
|
+
title,
|
|
429
|
+
date: inboxNotification.notifiedAt,
|
|
430
|
+
unread,
|
|
431
|
+
overrides,
|
|
432
|
+
showActions,
|
|
433
|
+
...props,
|
|
434
|
+
ref: forwardedRef,
|
|
435
|
+
children
|
|
436
|
+
}
|
|
437
|
+
);
|
|
444
438
|
}
|
|
445
439
|
);
|
|
446
440
|
const InboxNotificationInspector = forwardRef(
|
|
@@ -448,52 +442,51 @@ const InboxNotificationInspector = forwardRef(
|
|
|
448
442
|
const unread = useMemo(() => {
|
|
449
443
|
return !inboxNotification.readAt || inboxNotification.notifiedAt > inboxNotification.readAt;
|
|
450
444
|
}, [inboxNotification.notifiedAt, inboxNotification.readAt]);
|
|
451
|
-
return /* @__PURE__ */ jsx(
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
445
|
+
return /* @__PURE__ */ jsx(
|
|
446
|
+
InboxNotificationLayout,
|
|
447
|
+
{
|
|
448
|
+
inboxNotification,
|
|
449
|
+
title: /* @__PURE__ */ jsx("code", { children: inboxNotification.id }),
|
|
450
|
+
date: inboxNotification.notifiedAt,
|
|
451
|
+
unread,
|
|
452
|
+
overrides,
|
|
453
|
+
showActions,
|
|
454
|
+
...props,
|
|
455
|
+
ref: forwardedRef,
|
|
456
|
+
"data-inspector": "",
|
|
457
|
+
children: /* @__PURE__ */ jsx(
|
|
458
|
+
CodeBlock,
|
|
459
|
+
{
|
|
460
|
+
title: "Data",
|
|
461
|
+
code: JSON.stringify(inboxNotification, null, 2)
|
|
462
|
+
}
|
|
463
|
+
)
|
|
464
|
+
}
|
|
465
|
+
);
|
|
468
466
|
}
|
|
469
467
|
);
|
|
470
468
|
const InboxNotificationCustomMissing = forwardRef(({ inboxNotification, ...props }, forwardedRef) => {
|
|
471
|
-
return /* @__PURE__ */ jsxs(
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
469
|
+
return /* @__PURE__ */ jsxs(
|
|
470
|
+
InboxNotificationCustom,
|
|
471
|
+
{
|
|
472
|
+
inboxNotification,
|
|
473
|
+
...props,
|
|
474
|
+
title: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
476
475
|
"Custom notification kind ",
|
|
477
|
-
/* @__PURE__ */ jsx("code", {
|
|
478
|
-
children: inboxNotification.kind
|
|
479
|
-
}),
|
|
476
|
+
/* @__PURE__ */ jsx("code", { children: inboxNotification.kind }),
|
|
480
477
|
" is not handled"
|
|
478
|
+
] }),
|
|
479
|
+
aside: /* @__PURE__ */ jsx(InboxNotificationIcon, { children: /* @__PURE__ */ jsx(WarningIcon, {}) }),
|
|
480
|
+
ref: forwardedRef,
|
|
481
|
+
"data-missing": "",
|
|
482
|
+
children: [
|
|
483
|
+
"Notifications of this kind won\u2019t be displayed in production. Use the",
|
|
484
|
+
" ",
|
|
485
|
+
/* @__PURE__ */ jsx("code", { children: "kinds" }),
|
|
486
|
+
" prop to define how they should be rendered, learn more in the console."
|
|
481
487
|
]
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
children: /* @__PURE__ */ jsx(WarningIcon, {})
|
|
485
|
-
}),
|
|
486
|
-
ref: forwardedRef,
|
|
487
|
-
"data-missing": "",
|
|
488
|
-
children: [
|
|
489
|
-
"Notifications of this kind won\u2019t be displayed in production. Use the",
|
|
490
|
-
" ",
|
|
491
|
-
/* @__PURE__ */ jsx("code", {
|
|
492
|
-
children: "kinds"
|
|
493
|
-
}),
|
|
494
|
-
" prop to define how they should be rendered, learn more in the console."
|
|
495
|
-
]
|
|
496
|
-
});
|
|
488
|
+
}
|
|
489
|
+
);
|
|
497
490
|
});
|
|
498
491
|
const InboxNotification = Object.assign(
|
|
499
492
|
forwardRef(
|
|
@@ -501,19 +494,25 @@ const InboxNotification = Object.assign(
|
|
|
501
494
|
switch (inboxNotification.kind) {
|
|
502
495
|
case "thread": {
|
|
503
496
|
const ResolvedInboxNotificationThread = kinds?.thread ?? InboxNotificationThread;
|
|
504
|
-
return /* @__PURE__ */ jsx(
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
497
|
+
return /* @__PURE__ */ jsx(
|
|
498
|
+
ResolvedInboxNotificationThread,
|
|
499
|
+
{
|
|
500
|
+
inboxNotification,
|
|
501
|
+
...props,
|
|
502
|
+
ref: forwardedRef
|
|
503
|
+
}
|
|
504
|
+
);
|
|
509
505
|
}
|
|
510
506
|
case "textMention": {
|
|
511
507
|
const ResolvedInboxNotificationTextMention = kinds?.textMention ?? InboxNotificationTextMention;
|
|
512
|
-
return /* @__PURE__ */ jsx(
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
508
|
+
return /* @__PURE__ */ jsx(
|
|
509
|
+
ResolvedInboxNotificationTextMention,
|
|
510
|
+
{
|
|
511
|
+
inboxNotification,
|
|
512
|
+
...props,
|
|
513
|
+
ref: forwardedRef
|
|
514
|
+
}
|
|
515
|
+
);
|
|
517
516
|
}
|
|
518
517
|
default: {
|
|
519
518
|
const ResolvedInboxNotificationCustom = kinds?.[inboxNotification.kind];
|
|
@@ -522,28 +521,54 @@ const InboxNotification = Object.assign(
|
|
|
522
521
|
warnOnce(
|
|
523
522
|
`Custom notification kind "${inboxNotification.kind}" is not handled so notifications of this kind will not be displayed in production. Use the kinds prop to define how they should be rendered. Learn more: https://liveblocks.io/docs/api-reference/liveblocks-react-ui#Rendering-notification-kinds-differently.`
|
|
524
523
|
);
|
|
525
|
-
return /* @__PURE__ */ jsx(
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
524
|
+
return /* @__PURE__ */ jsx(
|
|
525
|
+
InboxNotificationCustomMissing,
|
|
526
|
+
{
|
|
527
|
+
inboxNotification,
|
|
528
|
+
...props,
|
|
529
|
+
ref: forwardedRef
|
|
530
|
+
}
|
|
531
|
+
);
|
|
530
532
|
} else {
|
|
531
533
|
return null;
|
|
532
534
|
}
|
|
533
535
|
}
|
|
534
|
-
return /* @__PURE__ */ jsx(
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
536
|
+
return /* @__PURE__ */ jsx(
|
|
537
|
+
ResolvedInboxNotificationCustom,
|
|
538
|
+
{
|
|
539
|
+
inboxNotification,
|
|
540
|
+
...props,
|
|
541
|
+
ref: forwardedRef
|
|
542
|
+
}
|
|
543
|
+
);
|
|
539
544
|
}
|
|
540
545
|
}
|
|
541
546
|
}
|
|
542
547
|
),
|
|
543
548
|
{
|
|
549
|
+
/**
|
|
550
|
+
* Displays a thread inbox notification kind.
|
|
551
|
+
*/
|
|
544
552
|
Thread: InboxNotificationThread,
|
|
553
|
+
/**
|
|
554
|
+
* Displays a text mention inbox notification kind.
|
|
555
|
+
*/
|
|
545
556
|
TextMention: InboxNotificationTextMention,
|
|
557
|
+
/**
|
|
558
|
+
* Displays a custom inbox notification kind.
|
|
559
|
+
*/
|
|
546
560
|
Custom: InboxNotificationCustom,
|
|
561
|
+
/**
|
|
562
|
+
* Display the inbox notification's data, which can be useful during development.
|
|
563
|
+
*
|
|
564
|
+
* @example
|
|
565
|
+
* <InboxNotification
|
|
566
|
+
* inboxNotification={inboxNotification}
|
|
567
|
+
* kinds={{
|
|
568
|
+
* $custom: InboxNotification.Inspector,
|
|
569
|
+
* }}
|
|
570
|
+
* />
|
|
571
|
+
*/
|
|
547
572
|
Inspector: InboxNotificationInspector,
|
|
548
573
|
Icon: InboxNotificationIcon,
|
|
549
574
|
Avatar: InboxNotificationAvatar
|