@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.
Files changed (145) hide show
  1. package/dist/Card-Ch3cTL6G.cjs.map +1 -1
  2. package/dist/Card-DezN34Sz.cjs.map +1 -1
  3. package/dist/Card-DiSXLhzw.cjs.map +1 -1
  4. package/dist/Card-DndbBigk.js.map +1 -1
  5. package/dist/Card-giUAe8IB.js.map +1 -1
  6. package/dist/Card-qFB_y7k3.js.map +1 -1
  7. package/dist/LockedThumbnail-C9Y0oCjv.js.map +1 -1
  8. package/dist/LockedThumbnail-DkdVuMZM.cjs.map +1 -1
  9. package/dist/index-B_8de68T.cjs.map +1 -1
  10. package/dist/index-DGVCJzwy.js.map +1 -1
  11. package/package.json +1 -1
  12. package/src/index.ts +26 -26
  13. package/src/{components → stream}/ChannelActionsMenu/ChannelActionsMenu.test.tsx +1 -1
  14. package/src/{components → stream}/ChannelActionsMenu/index.tsx +1 -1
  15. package/src/{components → stream}/MessagingShell/LoadingState.tsx +1 -1
  16. package/src/types.ts +1 -1
  17. /package/src/{components → primitives}/ActionButton/ActionButton.stories.tsx +0 -0
  18. /package/src/{components → primitives}/ActionButton/ActionButton.test.tsx +0 -0
  19. /package/src/{components → primitives}/ActionButton/index.tsx +0 -0
  20. /package/src/{components → primitives}/CloseButton/CloseButton.stories.tsx +0 -0
  21. /package/src/{components → primitives}/CloseButton/index.tsx +0 -0
  22. /package/src/{components → primitives}/IconButton/IconButton.stories.tsx +0 -0
  23. /package/src/{components → primitives}/IconButton/index.tsx +0 -0
  24. /package/src/{components → primitives}/Loading/Loading.stories.tsx +0 -0
  25. /package/src/{components → primitives}/Loading/index.tsx +0 -0
  26. /package/src/{components → primitives}/SearchInput/SearchInput.stories.tsx +0 -0
  27. /package/src/{components → primitives}/SearchInput/SearchInput.test.tsx +0 -0
  28. /package/src/{components → primitives}/SearchInput/index.tsx +0 -0
  29. /package/src/{components → stream}/AttachmentCard/AttachmentCard.stories.tsx +0 -0
  30. /package/src/{components → stream}/AttachmentCard/MediaPlayer.tsx +0 -0
  31. /package/src/{components → stream}/AttachmentCard/Thumbnail.tsx +0 -0
  32. /package/src/{components → stream}/AttachmentCard/index.tsx +0 -0
  33. /package/src/{components → stream}/AttachmentCard/utils/icons.ts +0 -0
  34. /package/src/{components → stream}/AttachmentCard/utils/mimeType.test.ts +0 -0
  35. /package/src/{components → stream}/AttachmentCard/utils/mimeType.ts +0 -0
  36. /package/src/{components → stream}/Avatar/Avatar.stories.tsx +0 -0
  37. /package/src/{components → stream}/Avatar/getAvatarEmoji.ts +0 -0
  38. /package/src/{components → stream}/Avatar/index.tsx +0 -0
  39. /package/src/{components → stream}/ChannelList/ChannelList.stories.tsx +0 -0
  40. /package/src/{components → stream}/ChannelList/ChannelListContext.tsx +0 -0
  41. /package/src/{components → stream}/ChannelList/CustomChannelPreview.stories.tsx +0 -0
  42. /package/src/{components → stream}/ChannelList/CustomChannelPreview.test.tsx +0 -0
  43. /package/src/{components → stream}/ChannelList/CustomChannelPreview.tsx +0 -0
  44. /package/src/{components → stream}/ChannelList/index.test.tsx +0 -0
  45. /package/src/{components → stream}/ChannelList/index.tsx +0 -0
  46. /package/src/{components → stream}/ChannelView.stories.tsx +0 -0
  47. /package/src/{components → stream}/ChannelView.test.tsx +0 -0
  48. /package/src/{components → stream}/ChannelView.tsx +0 -0
  49. /package/src/{components → stream}/CustomDateSeparator/CustomDateSeparator.stories.tsx +0 -0
  50. /package/src/{components → stream}/CustomDateSeparator/index.tsx +0 -0
  51. /package/src/{components → stream}/CustomLinkPreviewList/CustomLinkPreviewCard.stories.tsx +0 -0
  52. /package/src/{components → stream}/CustomLinkPreviewList/CustomLinkPreviewCard.tsx +0 -0
  53. /package/src/{components → stream}/CustomLinkPreviewList/index.tsx +0 -0
  54. /package/src/{components → stream}/CustomMessage/CustomMessage.stories.tsx +0 -0
  55. /package/src/{components → stream}/CustomMessage/CustomMessageActions.tsx +0 -0
  56. /package/src/{components → stream}/CustomMessage/MessageAttachmentConversations.stories.tsx +0 -0
  57. /package/src/{components → stream}/CustomMessage/MessageTag.stories.tsx +0 -0
  58. /package/src/{components → stream}/CustomMessage/MessageTag.test.tsx +0 -0
  59. /package/src/{components → stream}/CustomMessage/MessageTag.tsx +0 -0
  60. /package/src/{components → stream}/CustomMessage/MessageVoteButtons.stories.tsx +0 -0
  61. /package/src/{components → stream}/CustomMessage/MessageVoteButtons.tsx +0 -0
  62. /package/src/{components → stream}/CustomMessage/context.tsx +0 -0
  63. /package/src/{components → stream}/CustomMessage/index.tsx +0 -0
  64. /package/src/{components → stream}/CustomMessageInput/CustomMessageInput.stories.tsx +0 -0
  65. /package/src/{components → stream}/CustomMessageInput/CustomMessageInput.test.tsx +0 -0
  66. /package/src/{components → stream}/CustomMessageInput/index.tsx +0 -0
  67. /package/src/{components → stream}/CustomSystemMessage/CustomSystemMessage.stories.tsx +0 -0
  68. /package/src/{components → stream}/CustomSystemMessage/CustomSystemMessage.test.tsx +0 -0
  69. /package/src/{components → stream}/CustomSystemMessage/index.tsx +0 -0
  70. /package/src/{components → stream}/CustomTypingIndicator/CustomTypingIndicator.stories.tsx +0 -0
  71. /package/src/{components → stream}/CustomTypingIndicator/CustomTypingIndicator.test.tsx +0 -0
  72. /package/src/{components → stream}/CustomTypingIndicator/DmAgentContext.ts +0 -0
  73. /package/src/{components → stream}/CustomTypingIndicator/index.tsx +0 -0
  74. /package/src/{components → stream}/FaqList/FaqList.stories.tsx +0 -0
  75. /package/src/{components → stream}/FaqList/FaqListItem.stories.tsx +0 -0
  76. /package/src/{components → stream}/FaqList/FaqListItem.tsx +0 -0
  77. /package/src/{components → stream}/FaqList/index.tsx +0 -0
  78. /package/src/{components → stream}/LinkAttachment/LinkAttachment.stories.tsx +0 -0
  79. /package/src/{components → stream}/LinkAttachment/LinkAttachment.test.tsx +0 -0
  80. /package/src/{components → stream}/LinkAttachment/components/Composer/Card.tsx +0 -0
  81. /package/src/{components → stream}/LinkAttachment/components/Composer/index.ts +0 -0
  82. /package/src/{components → stream}/LinkAttachment/components/Received/Card.tsx +0 -0
  83. /package/src/{components → stream}/LinkAttachment/components/Received/index.ts +0 -0
  84. /package/src/{components → stream}/LinkAttachment/components/Sent/Card.tsx +0 -0
  85. /package/src/{components → stream}/LinkAttachment/components/Sent/index.ts +0 -0
  86. /package/src/{components → stream}/LinkAttachment/components/_shared/CardBody.tsx +0 -0
  87. /package/src/{components → stream}/LinkAttachment/components/_shared/CardCta.tsx +0 -0
  88. /package/src/{components → stream}/LinkAttachment/components/_shared/CardShell.tsx +0 -0
  89. /package/src/{components → stream}/LinkAttachment/components/_shared/CardThumbnail.tsx +0 -0
  90. /package/src/{components → stream}/LinkAttachment/components/_shared/normalizeExternalHref.ts +0 -0
  91. /package/src/{components → stream}/LinkAttachment/index.tsx +0 -0
  92. /package/src/{components → stream}/LinkAttachment/types.ts +0 -0
  93. /package/src/{components → stream}/LockedAttachment/LockedAttachment.stories.tsx +0 -0
  94. /package/src/{components → stream}/LockedAttachment/components/Composer/Card.tsx +0 -0
  95. /package/src/{components → stream}/LockedAttachment/components/Composer/index.ts +0 -0
  96. /package/src/{components → stream}/LockedAttachment/components/Received/Card.tsx +0 -0
  97. /package/src/{components → stream}/LockedAttachment/components/Received/CardActions.tsx +0 -0
  98. /package/src/{components → stream}/LockedAttachment/components/Received/index.ts +0 -0
  99. /package/src/{components → stream}/LockedAttachment/components/Sent/Card.tsx +0 -0
  100. /package/src/{components → stream}/LockedAttachment/components/Sent/index.ts +0 -0
  101. /package/src/{components → stream}/LockedAttachment/components/_shared/CardBody.tsx +0 -0
  102. /package/src/{components → stream}/LockedAttachment/components/_shared/GalleryThumbnail.tsx +0 -0
  103. /package/src/{components → stream}/LockedAttachment/components/_shared/LockBadge.tsx +0 -0
  104. /package/src/{components → stream}/LockedAttachment/components/_shared/LockedCardShell.tsx +0 -0
  105. /package/src/{components → stream}/LockedAttachment/components/_shared/LockedThumbnail.tsx +0 -0
  106. /package/src/{components → stream}/LockedAttachment/index.tsx +0 -0
  107. /package/src/{components → stream}/LockedAttachment/types.ts +0 -0
  108. /package/src/{components → stream}/MediaMessage/MediaMessage.stories.tsx +0 -0
  109. /package/src/{components → stream}/MediaMessage/MediaMessage.test.tsx +0 -0
  110. /package/src/{components → stream}/MediaMessage/index.tsx +0 -0
  111. /package/src/{components → stream}/MessageAttachment/Audio/AudioAttachment.stories.tsx +0 -0
  112. /package/src/{components → stream}/MessageAttachment/Audio/index.tsx +0 -0
  113. /package/src/{components → stream}/MessageAttachment/File/FileAttachment.stories.tsx +0 -0
  114. /package/src/{components → stream}/MessageAttachment/File/index.tsx +0 -0
  115. /package/src/{components → stream}/MessageAttachment/Image/ImageAttachment.stories.tsx +0 -0
  116. /package/src/{components → stream}/MessageAttachment/Image/index.tsx +0 -0
  117. /package/src/{components → stream}/MessageAttachment/MessageAttachment.test.tsx +0 -0
  118. /package/src/{components → stream}/MessageAttachment/Pdf/PdfAttachment.stories.tsx +0 -0
  119. /package/src/{components → stream}/MessageAttachment/Pdf/index.tsx +0 -0
  120. /package/src/{components → stream}/MessageAttachment/Video/VideoAttachment.stories.tsx +0 -0
  121. /package/src/{components → stream}/MessageAttachment/Video/index.tsx +0 -0
  122. /package/src/{components → stream}/MessageAttachment/_shared/Bubble.tsx +0 -0
  123. /package/src/{components → stream}/MessageAttachment/_shared/CarouselNav.tsx +0 -0
  124. /package/src/{components → stream}/MessageAttachment/_shared/CompactDocumentRow.tsx +0 -0
  125. /package/src/{components → stream}/MessageAttachment/_shared/DismissButton.tsx +0 -0
  126. /package/src/{components → stream}/MessageAttachment/_shared/DownloadAction.tsx +0 -0
  127. /package/src/{components → stream}/MessageAttachment/_shared/ImageViewer.tsx +0 -0
  128. /package/src/{components → stream}/MessageAttachment/_shared/MediaStackGrid.tsx +0 -0
  129. /package/src/{components → stream}/MessageAttachment/_shared/PdfViewer.tsx +0 -0
  130. /package/src/{components → stream}/MessageAttachment/_shared/VideoViewer.tsx +0 -0
  131. /package/src/{components → stream}/MessageAttachment/_shared/ViewerShell.tsx +0 -0
  132. /package/src/{components → stream}/MessageAttachment/_shared/fileMeta.test.ts +0 -0
  133. /package/src/{components → stream}/MessageAttachment/_shared/fileMeta.ts +0 -0
  134. /package/src/{components → stream}/MessageAttachment/_shared/triggerDownload.ts +0 -0
  135. /package/src/{components → stream}/MessageAttachment/_shared/useCarousel.ts +0 -0
  136. /package/src/{components → stream}/MessageAttachment/_shared/useViewer.ts +0 -0
  137. /package/src/{components → stream}/MessageAttachment/index.tsx +0 -0
  138. /package/src/{components → stream}/MessageAttachment/stories/StoryTable.tsx +0 -0
  139. /package/src/{components → stream}/MessageAttachment/types.ts +0 -0
  140. /package/src/{components → stream}/MessagingShell/ChannelEmptyState.tsx +0 -0
  141. /package/src/{components → stream}/MessagingShell/ErrorState.stories.tsx +0 -0
  142. /package/src/{components → stream}/MessagingShell/ErrorState.tsx +0 -0
  143. /package/src/{components → stream}/MessagingShell/LoadingState.stories.tsx +0 -0
  144. /package/src/{components → stream}/MessagingShell/MessagingShell.test.tsx +0 -0
  145. /package/src/{components → stream}/MessagingShell/index.tsx +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linktr.ee/messaging-react",
3
- "version": "3.3.10",
3
+ "version": "3.3.11-rc-1781608642",
4
4
  "description": "React messaging components built on messaging-core for web applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
package/src/index.ts CHANGED
@@ -2,37 +2,37 @@
2
2
  import './styles.css'
3
3
 
4
4
  // Components
5
- export { MessagingShell } from './components/MessagingShell'
6
- export { ChannelList } from './components/ChannelList'
7
- export { ChannelView } from './components/ChannelView'
8
- export { default as ActionButton } from './components/ActionButton'
9
- export { default as LockedAttachment } from './components/LockedAttachment'
10
- export { default as LinkAttachment } from './components/LinkAttachment'
11
- export { default as MessageAttachment } from './components/MessageAttachment'
12
- export { Avatar } from './components/Avatar'
13
- export { FaqList } from './components/FaqList'
14
- export { FaqListItem } from './components/FaqList/FaqListItem'
15
- export { ChannelEmptyState } from './components/MessagingShell/ChannelEmptyState'
16
- export { MessageVoteButtons } from './components/CustomMessage/MessageVoteButtons'
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 './components/MediaMessage'
22
+ } from './stream/MediaMessage'
23
23
  export type {
24
24
  MediaMessageProps,
25
25
  MediaMessageResolved,
26
- } from './components/MediaMessage'
26
+ } from './stream/MediaMessage'
27
27
 
28
28
  // Providers
29
29
  export { MessagingProvider } from './providers/MessagingProvider'
30
- export { CustomMessageProvider } from './components/CustomMessage/context'
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 './components/CustomMessage/context'
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 './components/Avatar'
67
- export type { ActionButtonProps } from './components/ActionButton'
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 './components/LockedAttachment'
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 './components/LinkAttachment'
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 './components/MessageAttachment'
110
+ } from './stream/MessageAttachment'
111
111
  export {
112
112
  formatFileSize,
113
113
  getFileExtensionLabel,
114
114
  buildCompactMetaLabel,
115
115
  bubbleGroupPositionFromStream as messageAttachmentGroupPositionFromStream,
116
- } from './components/MessageAttachment'
117
- export type { CustomMessageRegistry } from './components/CustomMessage/context'
118
- export type { AttachmentSourceType } from './components/AttachmentCard/utils/mimeType'
119
- export type { Faq, FaqListProps } from './components/FaqList'
120
- export type { FaqListItemProps } from './components/FaqList/FaqListItem'
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'
@@ -34,7 +34,7 @@ vi.mock('../../providers/MessagingProvider', () => ({
34
34
  useMessagingContext: () => mockContext,
35
35
  }))
36
36
 
37
- vi.mock('../ActionButton', () => ({
37
+ vi.mock('../../primitives/ActionButton', () => ({
38
38
  default: ({
39
39
  children,
40
40
  onClick,
@@ -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 '../ActionButton'
13
+ import ActionButton from '../../primitives/ActionButton'
14
14
 
15
15
  export interface ChannelActionsMenuProps {
16
16
  channel: ChannelType
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
 
3
- import Loading from '../Loading'
3
+ import Loading from '../../primitives/Loading'
4
4
 
5
5
  /**
6
6
  * Loading state component
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 './components/LockedAttachment'
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