@linktr.ee/messaging-react 1.0.1 → 1.1.0-ks-migrate-styles-1760927135

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 (41) hide show
  1. package/dist/assets/index.css +1 -0
  2. package/dist/index.d.ts +2 -1
  3. package/dist/index.js +846 -1080
  4. package/dist/index.js.map +1 -1
  5. package/package.json +6 -5
  6. package/src/components/ActionButton/ActionButton.stories.tsx +2 -1
  7. package/src/components/ActionButton/ActionButton.test.tsx +2 -0
  8. package/src/components/Avatar/Avatar.stories.tsx +2 -1
  9. package/src/components/Avatar/avatarColors.ts +21 -22
  10. package/src/components/Avatar/index.tsx +2 -1
  11. package/src/components/ChannelList/ChannelList.stories.tsx +4 -2
  12. package/src/components/ChannelList/CustomChannelPreview.stories.tsx +31 -27
  13. package/src/components/ChannelList/CustomChannelPreview.tsx +29 -28
  14. package/src/components/ChannelList/index.tsx +43 -35
  15. package/src/components/ChannelView.tsx +150 -127
  16. package/src/components/CloseButton/index.tsx +4 -5
  17. package/src/components/IconButton/IconButton.stories.tsx +3 -3
  18. package/src/components/Loading/Loading.stories.tsx +2 -1
  19. package/src/components/Loading/index.tsx +7 -9
  20. package/src/components/MessagingShell/EmptyState.stories.tsx +2 -1
  21. package/src/components/MessagingShell/EmptyState.tsx +23 -20
  22. package/src/components/MessagingShell/ErrorState.stories.tsx +2 -1
  23. package/src/components/MessagingShell/LoadingState.stories.tsx +2 -1
  24. package/src/components/MessagingShell/LoadingState.tsx +3 -5
  25. package/src/components/MessagingShell/index.tsx +159 -135
  26. package/src/components/ParticipantPicker/ParticipantItem.stories.tsx +4 -2
  27. package/src/components/ParticipantPicker/ParticipantItem.tsx +25 -21
  28. package/src/components/ParticipantPicker/ParticipantPicker.stories.tsx +4 -2
  29. package/src/components/ParticipantPicker/ParticipantPicker.tsx +104 -76
  30. package/src/components/ParticipantPicker/index.tsx +93 -72
  31. package/src/components/SearchInput/SearchInput.stories.tsx +2 -1
  32. package/src/components/SearchInput/SearchInput.test.tsx +4 -2
  33. package/src/components/SearchInput/index.tsx +14 -15
  34. package/src/hooks/useParticipants.ts +1 -0
  35. package/src/index.ts +3 -0
  36. package/src/providers/MessagingProvider.tsx +213 -135
  37. package/src/stories/mocks.tsx +18 -19
  38. package/src/styles.css +75 -0
  39. package/src/test/setup.ts +11 -12
  40. package/src/test/utils.tsx +6 -7
  41. package/src/types.ts +1 -1
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { Channel } from 'stream-chat';
2
2
  import { default as default_2 } from 'react';
3
3
  import { MessagingUser } from '@linktr.ee/messaging-core';
4
+ import { StreamChat } from 'stream-chat';
4
5
  import { StreamChatService } from '@linktr.ee/messaging-core';
5
6
  import { StreamChatServiceConfig } from '@linktr.ee/messaging-core';
6
7
 
@@ -66,7 +67,7 @@ export declare interface MessagingCapabilities {
66
67
  */
67
68
  declare interface MessagingContextValue {
68
69
  service: StreamChatService | null;
69
- client: any;
70
+ client: StreamChat | null;
70
71
  isConnected: boolean;
71
72
  isLoading: boolean;
72
73
  error: string | null;