Skip to content

Commit b455eb0

Browse files
committed
Merge branch 'main' into expo-52
2 parents 8118a94 + 2f6126d commit b455eb0

File tree

168 files changed

+4311
-2192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+4311
-2192
lines changed

packages/react-bindings/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
44

5+
## [1.2.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-bindings-1.1.23...@stream-io/video-react-bindings-1.2.0) (2024-11-25)
6+
7+
8+
### Features
9+
10+
* **design-v2:** sdk and dogfood app design-v2 changes ([#1549](https://github.com/GetStream/stream-video-js/issues/1549)) ([480a359](https://github.com/GetStream/stream-video-js/commit/480a3593516e6662b35a44f97c72259548d08445))
11+
512
## [1.1.23](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-bindings-1.1.22...@stream-io/video-react-bindings-1.1.23) (2024-11-22)
613

714
### Dependency Updates

packages/react-bindings/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stream-io/video-react-bindings",
3-
"version": "1.1.23",
3+
"version": "1.2.0",
44
"packageManager": "[email protected]",
55
"main": "./dist/index.cjs.js",
66
"module": "./dist/index.es.js",

packages/react-bindings/src/hooks/callUtilHooks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useCallback, useEffect, useState } from 'react';
22
import { useCall } from '../contexts';
33
import { useIsCallRecordingInProgress } from './callStateHooks';
4+
45
/**
56
* Custom hook for toggling call recording in a video call.
67
*

packages/react-native-sdk/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
44

5+
## [1.4.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-1.3.8...@stream-io/video-react-native-sdk-1.4.0) (2024-11-25)
6+
7+
### Dependency Updates
8+
9+
* `@stream-io/video-react-bindings` updated to version `1.2.0`
10+
11+
### Features
12+
13+
* **design-v2:** sdk and dogfood app design-v2 changes ([#1549](https://github.com/GetStream/stream-video-js/issues/1549)) ([480a359](https://github.com/GetStream/stream-video-js/commit/480a3593516e6662b35a44f97c72259548d08445))
14+
515
## [1.3.8](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-1.3.7...@stream-io/video-react-native-sdk-1.3.8) (2024-11-22)
616

717
### Dependency Updates

packages/react-native-sdk/__tests__/components/CallControls.test.tsx

Lines changed: 2 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import { mockClientWithUser } from '../mocks/client';
33
import mockParticipant from '../mocks/participant';
44
import { ButtonTestIds, ComponentTestIds } from '../../src/constants/TestIds';
55
import { mockCall } from '../mocks/call';
6-
import { fireEvent, render, screen, waitFor } from '../utils/RNTLTools';
6+
import { fireEvent, render, screen } from '../utils/RNTLTools';
77
import { OwnCapability } from '@stream-io/video-client';
88
import { defaultEmojiReactions } from '../../src/constants';
9-
import { CallControls } from '../../src/components/Call/CallControls/CallControls';
10-
import { ChatButton } from '../../src/components/Call/CallControls/ChatButton';
9+
import { CallControls } from '../../src';
1110
import { HangUpCallButton } from '../../src/components/Call/CallControls/HangupCallButton';
1211
import { ReactionsButton } from '../../src/components/Call/CallControls/ReactionsButton';
1312

@@ -18,48 +17,6 @@ enum P_IDS {
1817
LOCAL_1 = 'local-1',
1918
}
2019

21-
describe('ChatButton', () => {
22-
it('should render an unread badge indicator when the value is defined in the chatButton prop', async () => {
23-
const call = mockCall(mockClientWithUser(), [
24-
mockParticipant({
25-
isLocalParticipant: true,
26-
sessionId: P_IDS.LOCAL_1,
27-
userId: P_IDS.LOCAL_1,
28-
}),
29-
]);
30-
31-
render(<ChatButton onPressHandler={jest.fn()} unreadBadgeCount={1} />, {
32-
call,
33-
});
34-
35-
const indicator = await screen.findByText('1');
36-
37-
expect(indicator).toBeVisible();
38-
});
39-
40-
it('should not render an unread badge indicator when the value is 0 in the chatButton prop', async () => {
41-
const call = mockCall(mockClientWithUser(), [
42-
mockParticipant({
43-
isLocalParticipant: true,
44-
sessionId: P_IDS.LOCAL_1,
45-
userId: P_IDS.LOCAL_1,
46-
}),
47-
]);
48-
49-
render(<ChatButton onPressHandler={jest.fn()} unreadBadgeCount={0} />, {
50-
call,
51-
});
52-
53-
await waitFor(() =>
54-
expect(() =>
55-
screen.getByTestId(ComponentTestIds.CHAT_UNREAD_BADGE_COUNT_INDICATOR)
56-
).toThrow(
57-
/Unable to find an element with testID: chat-unread-badge-count-indicator/i
58-
)
59-
);
60-
});
61-
});
62-
6320
describe('ReactionsButton', () => {
6421
it('render reaction button in call controls component', async () => {
6522
const call = mockCall(

packages/react-native-sdk/__tests__/components/ParticipantView.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ describe('ParticipantView', () => {
4343
expect(
4444
await screen.findByTestId(ComponentTestIds.PARTICIPANT_AVATAR)
4545
).toBeOnTheScreen();
46-
expect(screen.getByTestId(IconTestIds.MUTED_VIDEO)).toBeOnTheScreen();
4746
expect(screen.getByText(testParticipant.name)).toBeOnTheScreen();
4847
// reaction is visible and then disappears after 5500 ms
4948
expect(screen.getByText('🎉')).toBeOnTheScreen();

packages/react-native-sdk/docusaurus/docs/reactnative/04-ui-components/call/call-content.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import CallContentSpotlight from '../../assets/04-ui-components/call/call-conten
1010

1111
import CallTopView from '../../common-content/ui-components/call/call-content/call-top-view.mdx';
1212
import CallControls from '../../common-content/ui-components/call/call-content/call-controls.mdx';
13-
import ParticipantsInfoBadge from '../../common-content/ui-components/call/call-content/participants-info-badge.mdx';
1413
import Landscape from '../../common-content/ui-components/call/call-content/landscape.mdx';
1514
import OnBackPressed from '../../common-content/ui-components/call/call-content/on-back-pressed.mdx';
1615
import OnParticipantInfoPress from '../../common-content/ui-components/call/call-content/on-participant-info-press.mdx';

packages/react-native-sdk/docusaurus/docs/reactnative/04-ui-components/call/call-top-view.mdx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ id: call-top-view
33
title: CallTopView
44
---
55

6-
import ParticipantsInfoBadge from '../../common-content/ui-components/call/call-content/participants-info-badge.mdx';
76
import OnBackPressed from '../../common-content/ui-components/call/call-content/on-back-pressed.mdx';
87
import OnParticipantInfoPress from '../../common-content/ui-components/call/call-content/on-participant-info-press.mdx';
98

@@ -60,10 +59,6 @@ Style to override the container of the `CallTopView`.
6059
| ---------------------------------------------------------- |
6160
| [ViewStyle](https://reactnative.dev/docs/view-style-props) |
6261

63-
### `ParticipantsInfoBadge`
64-
65-
<ParticipantsInfoBadge />
66-
6762
## Customization
6863

6964
You can create your own custom `CallTopView` using the [Call Top View UI Cookbook guide](../../../ui-cookbook/replacing-call-top-view/).

packages/react-native-sdk/docusaurus/docs/reactnative/05-ui-cookbook/19-call-quality-rating.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const FeedbackModal: = () => {
6969
<TouchableOpacity onPress={onClose} style={[styles.closeButton]}>
7070
<IconWrapper>
7171
<Close
72-
color={colors.typeSecondary}
72+
color={colors.iconPrimary}
7373
size={variants.roundButtonSizes.sm}
7474
/>
7575
</IconWrapper>
@@ -93,8 +93,8 @@ const FeedbackModal: = () => {
9393
<Star
9494
color={
9595
selectedRating && selectedRating >= rating
96-
? colors.iconAlertSuccess
97-
: colors.typeSecondary
96+
? colors.iconSuccess
97+
: colors.iconPrimary
9898
}
9999
/>
100100
</TouchableOpacity>

packages/react-native-sdk/docusaurus/docs/reactnative/common-content/ui-components/call/call-content/participants-info-badge.mdx

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)