@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linktr.ee/messaging-react",
3
- "version": "1.12.1",
3
+ "version": "1.12.2-rc-1765326466",
4
4
  "description": "React messaging components built on messaging-core for web applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -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}
@@ -2,5 +2,6 @@ import React from 'react'
2
2
 
3
3
  /**
4
4
  * Empty state component shown when a channel has no messages
5
+ * Returns null to show nothing - the LoadingIndicator handles the loading state
5
6
  */
6
7
  export const ChannelEmptyState: React.FC = () => null
@@ -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
- // Normal mode: hide on mobile when channel selected, show on desktop
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
- // Normal mode: show when no channel selected
437
- 'flex flex-col w-full lg:flex-1 lg:max-w-2xl':
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,