@linktr.ee/messaging-react 1.12.1 → 1.12.2-rc-1765326466
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/package.json
CHANGED
|
@@ -25,6 +25,7 @@ import { CloseButton } from './CloseButton'
|
|
|
25
25
|
import { CustomMessageInput } from './CustomMessageInput'
|
|
26
26
|
import { CustomSystemMessage } from './CustomSystemMessage'
|
|
27
27
|
import { ChannelEmptyState } from './MessagingShell/ChannelEmptyState'
|
|
28
|
+
import { LoadingState } from './MessagingShell/LoadingState'
|
|
28
29
|
|
|
29
30
|
// Custom user type with email and username
|
|
30
31
|
type CustomUser = {
|
|
@@ -559,6 +560,7 @@ export const ChannelView = React.memo<ChannelViewProps>(
|
|
|
559
560
|
channel={channel}
|
|
560
561
|
MessageSystem={CustomSystemMessage}
|
|
561
562
|
EmptyStateIndicator={CustomChannelEmptyState}
|
|
563
|
+
LoadingIndicator={LoadingState}
|
|
562
564
|
>
|
|
563
565
|
<ChannelViewInner
|
|
564
566
|
onBack={onBack}
|
|
@@ -426,15 +426,14 @@ export const MessagingShell: React.FC<MessagingShellProps> = ({
|
|
|
426
426
|
className={classNames(
|
|
427
427
|
'messaging-channel-list-sidebar min-h-0 min-w-0 lg:flex lg:flex-col',
|
|
428
428
|
{
|
|
429
|
-
// Explicitly hidden via prop or in direct conversation mode
|
|
430
429
|
'!hidden': showChannelList === false || directConversationMode,
|
|
431
|
-
//
|
|
430
|
+
// Hide on mobile when channel selected, show on desktop with consistent narrow width
|
|
432
431
|
'hidden lg:flex lg:w-80 lg:min-w-[280px] lg:max-w-[360px]':
|
|
433
432
|
showChannelList !== false &&
|
|
434
433
|
!directConversationMode &&
|
|
435
434
|
isChannelSelected,
|
|
436
|
-
//
|
|
437
|
-
'flex flex-col w-full lg:
|
|
435
|
+
// Show on mobile when no channel selected, use same narrow width on desktop
|
|
436
|
+
'flex flex-col w-full lg:w-80 lg:min-w-[280px] lg:max-w-[360px]':
|
|
438
437
|
showChannelList !== false &&
|
|
439
438
|
!directConversationMode &&
|
|
440
439
|
!isChannelSelected,
|