@linktr.ee/messaging-react 1.0.2 → 1.1.0-rc-1760927977
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/assets/index.css +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +836 -1079
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
- package/src/components/ActionButton/ActionButton.stories.tsx +2 -1
- package/src/components/ActionButton/ActionButton.test.tsx +2 -0
- package/src/components/Avatar/Avatar.stories.tsx +2 -1
- package/src/components/Avatar/index.tsx +2 -1
- package/src/components/ChannelList/ChannelList.stories.tsx +4 -2
- package/src/components/ChannelList/CustomChannelPreview.stories.tsx +31 -27
- package/src/components/ChannelList/CustomChannelPreview.tsx +5 -11
- package/src/components/ChannelList/index.tsx +43 -35
- package/src/components/ChannelView.tsx +150 -127
- package/src/components/CloseButton/index.tsx +4 -5
- package/src/components/IconButton/IconButton.stories.tsx +3 -3
- package/src/components/Loading/Loading.stories.tsx +2 -1
- package/src/components/Loading/index.tsx +7 -9
- package/src/components/MessagingShell/EmptyState.stories.tsx +2 -1
- package/src/components/MessagingShell/ErrorState.stories.tsx +2 -1
- package/src/components/MessagingShell/LoadingState.stories.tsx +2 -1
- package/src/components/MessagingShell/LoadingState.tsx +3 -5
- package/src/components/MessagingShell/index.tsx +159 -135
- package/src/components/ParticipantPicker/ParticipantItem.stories.tsx +4 -2
- package/src/components/ParticipantPicker/ParticipantItem.tsx +25 -21
- package/src/components/ParticipantPicker/ParticipantPicker.stories.tsx +4 -2
- package/src/components/ParticipantPicker/ParticipantPicker.tsx +104 -76
- package/src/components/ParticipantPicker/index.tsx +93 -72
- package/src/components/SearchInput/SearchInput.stories.tsx +2 -1
- package/src/components/SearchInput/SearchInput.test.tsx +4 -2
- package/src/components/SearchInput/index.tsx +14 -15
- package/src/hooks/useParticipants.ts +1 -0
- package/src/index.ts +3 -0
- package/src/providers/MessagingProvider.tsx +213 -135
- package/src/stories/mocks.tsx +18 -19
- package/src/styles.css +75 -0
- package/src/test/setup.ts +11 -12
- package/src/test/utils.tsx +6 -7
- package/src/types.ts +1 -1
package/src/test/utils.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { render, RenderOptions, RenderResult } from '@testing-library/react'
|
|
2
|
-
import { ReactElement, ReactNode } from 'react'
|
|
1
|
+
import { render, RenderOptions, RenderResult } from '@testing-library/react'
|
|
2
|
+
import { ReactElement, ReactNode } from 'react'
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Custom render function that wraps components with common providers
|
|
@@ -9,15 +9,14 @@ export function renderWithProviders(
|
|
|
9
9
|
options?: Omit<RenderOptions, 'wrapper'>
|
|
10
10
|
): RenderResult {
|
|
11
11
|
function Wrapper({ children }: { children: ReactNode }) {
|
|
12
|
-
return <>{children}
|
|
12
|
+
return <>{children}</>
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
return render(ui, { wrapper: Wrapper, ...options })
|
|
15
|
+
return render(ui, { wrapper: Wrapper, ...options })
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Re-export everything from React Testing Library
|
|
20
20
|
*/
|
|
21
|
-
export * from '@testing-library/react'
|
|
22
|
-
export { default as userEvent } from '@testing-library/user-event'
|
|
23
|
-
|
|
21
|
+
export * from '@testing-library/react'
|
|
22
|
+
export { default as userEvent } from '@testing-library/user-event'
|
package/src/types.ts
CHANGED