@linktr.ee/messaging-react 3.3.10 → 3.3.11-rc-1781608642
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/Card-Ch3cTL6G.cjs.map +1 -1
- package/dist/Card-DezN34Sz.cjs.map +1 -1
- package/dist/Card-DiSXLhzw.cjs.map +1 -1
- package/dist/Card-DndbBigk.js.map +1 -1
- package/dist/Card-giUAe8IB.js.map +1 -1
- package/dist/Card-qFB_y7k3.js.map +1 -1
- package/dist/LockedThumbnail-C9Y0oCjv.js.map +1 -1
- package/dist/LockedThumbnail-DkdVuMZM.cjs.map +1 -1
- package/dist/index-B_8de68T.cjs.map +1 -1
- package/dist/index-DGVCJzwy.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +26 -26
- package/src/{components → stream}/ChannelActionsMenu/ChannelActionsMenu.test.tsx +1 -1
- package/src/{components → stream}/ChannelActionsMenu/index.tsx +1 -1
- package/src/{components → stream}/MessagingShell/LoadingState.tsx +1 -1
- package/src/types.ts +1 -1
- /package/src/{components → primitives}/ActionButton/ActionButton.stories.tsx +0 -0
- /package/src/{components → primitives}/ActionButton/ActionButton.test.tsx +0 -0
- /package/src/{components → primitives}/ActionButton/index.tsx +0 -0
- /package/src/{components → primitives}/CloseButton/CloseButton.stories.tsx +0 -0
- /package/src/{components → primitives}/CloseButton/index.tsx +0 -0
- /package/src/{components → primitives}/IconButton/IconButton.stories.tsx +0 -0
- /package/src/{components → primitives}/IconButton/index.tsx +0 -0
- /package/src/{components → primitives}/Loading/Loading.stories.tsx +0 -0
- /package/src/{components → primitives}/Loading/index.tsx +0 -0
- /package/src/{components → primitives}/SearchInput/SearchInput.stories.tsx +0 -0
- /package/src/{components → primitives}/SearchInput/SearchInput.test.tsx +0 -0
- /package/src/{components → primitives}/SearchInput/index.tsx +0 -0
- /package/src/{components → stream}/AttachmentCard/AttachmentCard.stories.tsx +0 -0
- /package/src/{components → stream}/AttachmentCard/MediaPlayer.tsx +0 -0
- /package/src/{components → stream}/AttachmentCard/Thumbnail.tsx +0 -0
- /package/src/{components → stream}/AttachmentCard/index.tsx +0 -0
- /package/src/{components → stream}/AttachmentCard/utils/icons.ts +0 -0
- /package/src/{components → stream}/AttachmentCard/utils/mimeType.test.ts +0 -0
- /package/src/{components → stream}/AttachmentCard/utils/mimeType.ts +0 -0
- /package/src/{components → stream}/Avatar/Avatar.stories.tsx +0 -0
- /package/src/{components → stream}/Avatar/getAvatarEmoji.ts +0 -0
- /package/src/{components → stream}/Avatar/index.tsx +0 -0
- /package/src/{components → stream}/ChannelList/ChannelList.stories.tsx +0 -0
- /package/src/{components → stream}/ChannelList/ChannelListContext.tsx +0 -0
- /package/src/{components → stream}/ChannelList/CustomChannelPreview.stories.tsx +0 -0
- /package/src/{components → stream}/ChannelList/CustomChannelPreview.test.tsx +0 -0
- /package/src/{components → stream}/ChannelList/CustomChannelPreview.tsx +0 -0
- /package/src/{components → stream}/ChannelList/index.test.tsx +0 -0
- /package/src/{components → stream}/ChannelList/index.tsx +0 -0
- /package/src/{components → stream}/ChannelView.stories.tsx +0 -0
- /package/src/{components → stream}/ChannelView.test.tsx +0 -0
- /package/src/{components → stream}/ChannelView.tsx +0 -0
- /package/src/{components → stream}/CustomDateSeparator/CustomDateSeparator.stories.tsx +0 -0
- /package/src/{components → stream}/CustomDateSeparator/index.tsx +0 -0
- /package/src/{components → stream}/CustomLinkPreviewList/CustomLinkPreviewCard.stories.tsx +0 -0
- /package/src/{components → stream}/CustomLinkPreviewList/CustomLinkPreviewCard.tsx +0 -0
- /package/src/{components → stream}/CustomLinkPreviewList/index.tsx +0 -0
- /package/src/{components → stream}/CustomMessage/CustomMessage.stories.tsx +0 -0
- /package/src/{components → stream}/CustomMessage/CustomMessageActions.tsx +0 -0
- /package/src/{components → stream}/CustomMessage/MessageAttachmentConversations.stories.tsx +0 -0
- /package/src/{components → stream}/CustomMessage/MessageTag.stories.tsx +0 -0
- /package/src/{components → stream}/CustomMessage/MessageTag.test.tsx +0 -0
- /package/src/{components → stream}/CustomMessage/MessageTag.tsx +0 -0
- /package/src/{components → stream}/CustomMessage/MessageVoteButtons.stories.tsx +0 -0
- /package/src/{components → stream}/CustomMessage/MessageVoteButtons.tsx +0 -0
- /package/src/{components → stream}/CustomMessage/context.tsx +0 -0
- /package/src/{components → stream}/CustomMessage/index.tsx +0 -0
- /package/src/{components → stream}/CustomMessageInput/CustomMessageInput.stories.tsx +0 -0
- /package/src/{components → stream}/CustomMessageInput/CustomMessageInput.test.tsx +0 -0
- /package/src/{components → stream}/CustomMessageInput/index.tsx +0 -0
- /package/src/{components → stream}/CustomSystemMessage/CustomSystemMessage.stories.tsx +0 -0
- /package/src/{components → stream}/CustomSystemMessage/CustomSystemMessage.test.tsx +0 -0
- /package/src/{components → stream}/CustomSystemMessage/index.tsx +0 -0
- /package/src/{components → stream}/CustomTypingIndicator/CustomTypingIndicator.stories.tsx +0 -0
- /package/src/{components → stream}/CustomTypingIndicator/CustomTypingIndicator.test.tsx +0 -0
- /package/src/{components → stream}/CustomTypingIndicator/DmAgentContext.ts +0 -0
- /package/src/{components → stream}/CustomTypingIndicator/index.tsx +0 -0
- /package/src/{components → stream}/FaqList/FaqList.stories.tsx +0 -0
- /package/src/{components → stream}/FaqList/FaqListItem.stories.tsx +0 -0
- /package/src/{components → stream}/FaqList/FaqListItem.tsx +0 -0
- /package/src/{components → stream}/FaqList/index.tsx +0 -0
- /package/src/{components → stream}/LinkAttachment/LinkAttachment.stories.tsx +0 -0
- /package/src/{components → stream}/LinkAttachment/LinkAttachment.test.tsx +0 -0
- /package/src/{components → stream}/LinkAttachment/components/Composer/Card.tsx +0 -0
- /package/src/{components → stream}/LinkAttachment/components/Composer/index.ts +0 -0
- /package/src/{components → stream}/LinkAttachment/components/Received/Card.tsx +0 -0
- /package/src/{components → stream}/LinkAttachment/components/Received/index.ts +0 -0
- /package/src/{components → stream}/LinkAttachment/components/Sent/Card.tsx +0 -0
- /package/src/{components → stream}/LinkAttachment/components/Sent/index.ts +0 -0
- /package/src/{components → stream}/LinkAttachment/components/_shared/CardBody.tsx +0 -0
- /package/src/{components → stream}/LinkAttachment/components/_shared/CardCta.tsx +0 -0
- /package/src/{components → stream}/LinkAttachment/components/_shared/CardShell.tsx +0 -0
- /package/src/{components → stream}/LinkAttachment/components/_shared/CardThumbnail.tsx +0 -0
- /package/src/{components → stream}/LinkAttachment/components/_shared/normalizeExternalHref.ts +0 -0
- /package/src/{components → stream}/LinkAttachment/index.tsx +0 -0
- /package/src/{components → stream}/LinkAttachment/types.ts +0 -0
- /package/src/{components → stream}/LockedAttachment/LockedAttachment.stories.tsx +0 -0
- /package/src/{components → stream}/LockedAttachment/components/Composer/Card.tsx +0 -0
- /package/src/{components → stream}/LockedAttachment/components/Composer/index.ts +0 -0
- /package/src/{components → stream}/LockedAttachment/components/Received/Card.tsx +0 -0
- /package/src/{components → stream}/LockedAttachment/components/Received/CardActions.tsx +0 -0
- /package/src/{components → stream}/LockedAttachment/components/Received/index.ts +0 -0
- /package/src/{components → stream}/LockedAttachment/components/Sent/Card.tsx +0 -0
- /package/src/{components → stream}/LockedAttachment/components/Sent/index.ts +0 -0
- /package/src/{components → stream}/LockedAttachment/components/_shared/CardBody.tsx +0 -0
- /package/src/{components → stream}/LockedAttachment/components/_shared/GalleryThumbnail.tsx +0 -0
- /package/src/{components → stream}/LockedAttachment/components/_shared/LockBadge.tsx +0 -0
- /package/src/{components → stream}/LockedAttachment/components/_shared/LockedCardShell.tsx +0 -0
- /package/src/{components → stream}/LockedAttachment/components/_shared/LockedThumbnail.tsx +0 -0
- /package/src/{components → stream}/LockedAttachment/index.tsx +0 -0
- /package/src/{components → stream}/LockedAttachment/types.ts +0 -0
- /package/src/{components → stream}/MediaMessage/MediaMessage.stories.tsx +0 -0
- /package/src/{components → stream}/MediaMessage/MediaMessage.test.tsx +0 -0
- /package/src/{components → stream}/MediaMessage/index.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/Audio/AudioAttachment.stories.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/Audio/index.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/File/FileAttachment.stories.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/File/index.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/Image/ImageAttachment.stories.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/Image/index.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/MessageAttachment.test.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/Pdf/PdfAttachment.stories.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/Pdf/index.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/Video/VideoAttachment.stories.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/Video/index.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/_shared/Bubble.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/_shared/CarouselNav.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/_shared/CompactDocumentRow.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/_shared/DismissButton.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/_shared/DownloadAction.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/_shared/ImageViewer.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/_shared/MediaStackGrid.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/_shared/PdfViewer.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/_shared/VideoViewer.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/_shared/ViewerShell.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/_shared/fileMeta.test.ts +0 -0
- /package/src/{components → stream}/MessageAttachment/_shared/fileMeta.ts +0 -0
- /package/src/{components → stream}/MessageAttachment/_shared/triggerDownload.ts +0 -0
- /package/src/{components → stream}/MessageAttachment/_shared/useCarousel.ts +0 -0
- /package/src/{components → stream}/MessageAttachment/_shared/useViewer.ts +0 -0
- /package/src/{components → stream}/MessageAttachment/index.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/stories/StoryTable.tsx +0 -0
- /package/src/{components → stream}/MessageAttachment/types.ts +0 -0
- /package/src/{components → stream}/MessagingShell/ChannelEmptyState.tsx +0 -0
- /package/src/{components → stream}/MessagingShell/ErrorState.stories.tsx +0 -0
- /package/src/{components → stream}/MessagingShell/ErrorState.tsx +0 -0
- /package/src/{components → stream}/MessagingShell/LoadingState.stories.tsx +0 -0
- /package/src/{components → stream}/MessagingShell/MessagingShell.test.tsx +0 -0
- /package/src/{components → stream}/MessagingShell/index.tsx +0 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -2,37 +2,37 @@
|
|
|
2
2
|
import './styles.css'
|
|
3
3
|
|
|
4
4
|
// Components
|
|
5
|
-
export { MessagingShell } from './
|
|
6
|
-
export { ChannelList } from './
|
|
7
|
-
export { ChannelView } from './
|
|
8
|
-
export { default as ActionButton } from './
|
|
9
|
-
export { default as LockedAttachment } from './
|
|
10
|
-
export { default as LinkAttachment } from './
|
|
11
|
-
export { default as MessageAttachment } from './
|
|
12
|
-
export { Avatar } from './
|
|
13
|
-
export { FaqList } from './
|
|
14
|
-
export { FaqListItem } from './
|
|
15
|
-
export { ChannelEmptyState } from './
|
|
16
|
-
export { MessageVoteButtons } from './
|
|
5
|
+
export { MessagingShell } from './stream/MessagingShell'
|
|
6
|
+
export { ChannelList } from './stream/ChannelList'
|
|
7
|
+
export { ChannelView } from './stream/ChannelView'
|
|
8
|
+
export { default as ActionButton } from './primitives/ActionButton'
|
|
9
|
+
export { default as LockedAttachment } from './stream/LockedAttachment'
|
|
10
|
+
export { default as LinkAttachment } from './stream/LinkAttachment'
|
|
11
|
+
export { default as MessageAttachment } from './stream/MessageAttachment'
|
|
12
|
+
export { Avatar } from './stream/Avatar'
|
|
13
|
+
export { FaqList } from './stream/FaqList'
|
|
14
|
+
export { FaqListItem } from './stream/FaqList/FaqListItem'
|
|
15
|
+
export { ChannelEmptyState } from './stream/MessagingShell/ChannelEmptyState'
|
|
16
|
+
export { MessageVoteButtons } from './stream/CustomMessage/MessageVoteButtons'
|
|
17
17
|
export {
|
|
18
18
|
MediaMessage,
|
|
19
19
|
isLinkAttachment,
|
|
20
20
|
resolveLinkAttachment,
|
|
21
21
|
resolveMediaFromMessage,
|
|
22
|
-
} from './
|
|
22
|
+
} from './stream/MediaMessage'
|
|
23
23
|
export type {
|
|
24
24
|
MediaMessageProps,
|
|
25
25
|
MediaMessageResolved,
|
|
26
|
-
} from './
|
|
26
|
+
} from './stream/MediaMessage'
|
|
27
27
|
|
|
28
28
|
// Providers
|
|
29
29
|
export { MessagingProvider } from './providers/MessagingProvider'
|
|
30
|
-
export { CustomMessageProvider } from './
|
|
30
|
+
export { CustomMessageProvider } from './stream/CustomMessage/context'
|
|
31
31
|
|
|
32
32
|
// Hooks
|
|
33
33
|
export { useMessaging } from './hooks/useMessaging'
|
|
34
34
|
export { useMessageVote } from './hooks/useMessageVote'
|
|
35
|
-
export { useCustomMessage } from './
|
|
35
|
+
export { useCustomMessage } from './stream/CustomMessage/context'
|
|
36
36
|
|
|
37
37
|
// Utils
|
|
38
38
|
export { formatRelativeTime } from './utils/formatRelativeTime'
|
|
@@ -63,8 +63,8 @@ export type {
|
|
|
63
63
|
OfficialCtaActionPayload,
|
|
64
64
|
OfficialCtaAttachment,
|
|
65
65
|
} from './stream-custom-data'
|
|
66
|
-
export type { AvatarProps } from './
|
|
67
|
-
export type { ActionButtonProps } from './
|
|
66
|
+
export type { AvatarProps } from './stream/Avatar'
|
|
67
|
+
export type { ActionButtonProps } from './primitives/ActionButton'
|
|
68
68
|
export type {
|
|
69
69
|
ComposerCardProps,
|
|
70
70
|
SentCardProps,
|
|
@@ -74,7 +74,7 @@ export type {
|
|
|
74
74
|
// Deprecated aliases preserved for backwards compatibility:
|
|
75
75
|
CreatorCardProps,
|
|
76
76
|
VisitorCardProps,
|
|
77
|
-
} from './
|
|
77
|
+
} from './stream/LockedAttachment'
|
|
78
78
|
export type {
|
|
79
79
|
ComposerCardProps as LinkAttachmentComposerCardProps,
|
|
80
80
|
SentCardProps as LinkAttachmentSentCardProps,
|
|
@@ -82,7 +82,7 @@ export type {
|
|
|
82
82
|
LinkAttachmentBaseProps,
|
|
83
83
|
LinkAttachmentCta,
|
|
84
84
|
LinkAttachmentLayout,
|
|
85
|
-
} from './
|
|
85
|
+
} from './stream/LinkAttachment'
|
|
86
86
|
export type {
|
|
87
87
|
ImageComposerProps as MessageAttachmentImageComposerProps,
|
|
88
88
|
ImageSentProps as MessageAttachmentImageSentProps,
|
|
@@ -107,15 +107,15 @@ export type {
|
|
|
107
107
|
BubbleGroupPosition as MessageAttachmentGroupPosition,
|
|
108
108
|
MessageAttachmentBaseProps,
|
|
109
109
|
MessageAttachmentState,
|
|
110
|
-
} from './
|
|
110
|
+
} from './stream/MessageAttachment'
|
|
111
111
|
export {
|
|
112
112
|
formatFileSize,
|
|
113
113
|
getFileExtensionLabel,
|
|
114
114
|
buildCompactMetaLabel,
|
|
115
115
|
bubbleGroupPositionFromStream as messageAttachmentGroupPositionFromStream,
|
|
116
|
-
} from './
|
|
117
|
-
export type { CustomMessageRegistry } from './
|
|
118
|
-
export type { AttachmentSourceType } from './
|
|
119
|
-
export type { Faq, FaqListProps } from './
|
|
120
|
-
export type { FaqListItemProps } from './
|
|
116
|
+
} from './stream/MessageAttachment'
|
|
117
|
+
export type { CustomMessageRegistry } from './stream/CustomMessage/context'
|
|
118
|
+
export type { AttachmentSourceType } from './stream/AttachmentCard/utils/mimeType'
|
|
119
|
+
export type { Faq, FaqListProps } from './stream/FaqList'
|
|
120
|
+
export type { FaqListItemProps } from './stream/FaqList/FaqListItem'
|
|
121
121
|
export type { VoteSelection } from './hooks/useMessageVote'
|
|
@@ -10,7 +10,7 @@ import React, { useCallback, useEffect, useId, useRef, useState } from 'react'
|
|
|
10
10
|
import type { Channel as ChannelType, ChannelMemberResponse } from 'stream-chat'
|
|
11
11
|
|
|
12
12
|
import { useChannelModerationActions } from '../../hooks/useChannelModerationActions'
|
|
13
|
-
import ActionButton from '
|
|
13
|
+
import ActionButton from '../../primitives/ActionButton'
|
|
14
14
|
|
|
15
15
|
export interface ChannelActionsMenuProps {
|
|
16
16
|
channel: ChannelType
|
package/src/types.ts
CHANGED
|
@@ -14,7 +14,7 @@ import type { EmptyStateIndicatorProps } from 'stream-chat-react'
|
|
|
14
14
|
|
|
15
15
|
import type { MessageMetadata } from './stream-custom-data'
|
|
16
16
|
|
|
17
|
-
export type { LockedAttachmentSource } from './
|
|
17
|
+
export type { LockedAttachmentSource } from './stream/LockedAttachment'
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Callback invoked when a user clicks a link inside the channel view.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/{components → stream}/LinkAttachment/components/_shared/normalizeExternalHref.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|