Skip to content

Commit f74ddd1

Browse files
Prettier changes only
1 parent c91defe commit f74ddd1

File tree

263 files changed

+1188
-1434
lines changed

Some content is hidden

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

263 files changed

+1188
-1434
lines changed

.releaserc.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,11 @@
7272
}
7373
],
7474
[
75-
"@semantic-release/exec", {
76-
"prepareCmd": "NEXT_VERSION=${nextRelease.version} npm run build"
77-
}],
75+
"@semantic-release/exec",
76+
{
77+
"prepareCmd": "NEXT_VERSION=${nextRelease.version} npm run build"
78+
}
79+
],
7880
[
7981
"@semantic-release/changelog",
8082
{

docusaurus/react_versioned_sidebars/version-11.x.x-sidebars.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,4 @@
146146
"troubleshooting/troubleshooting",
147147
"resources/resources"
148148
]
149-
}
149+
}

docusaurus/react_versions.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
[
2-
"11.x.x",
3-
"11.x.x-legacy"
4-
]
1+
["11.x.x", "11.x.x-legacy"]

e2e/user/Controller.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import type { Page } from '@playwright/test';
33
import selectors from './selectors';
44

55
export class Controller {
6-
constructor(private baseURL: string | undefined, private page: Page) {}
6+
constructor(
7+
private baseURL: string | undefined,
8+
private page: Page,
9+
) {}
710

811
async openStory(story: string, waitForPresence: string) {
912
await Promise.all([

e2e/user/components/Attachment/Attachment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { expect, Page } from '@playwright/test';
22

33
const attachmentTypes = ['card', 'img', 'gallery', 'video', 'file', 'media'] as const;
44

5-
type AttachmentType = typeof attachmentTypes[number];
5+
type AttachmentType = (typeof attachmentTypes)[number];
66

77
export function getAttachment(page: Page, type: AttachmentType) {
88
return page.locator(`.str-chat__message-attachment--${type}`);

examples/capacitor/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const apiKey = process.env.REACT_APP_STREAM_KEY as string;
1717
const userId = process.env.REACT_APP_USER_ID as string;
1818
const userToken = process.env.REACT_APP_USER_TOKEN as string;
1919

20-
const filters: ChannelFilters = { type: 'messaging', members: {$in: [userId]} };
20+
const filters: ChannelFilters = { type: 'messaging', members: { $in: [userId] } };
2121
const options: ChannelOptions = { state: true, presence: true, limit: 10 };
2222
const sort: ChannelSort = { last_message_at: -1, updated_at: -1 };
2323

examples/capacitor/src/components/CustomMessage.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,8 @@ import {
1616
import './CustomMessage.scss';
1717

1818
export const CustomMessage = () => {
19-
const {
20-
showDetailedReactions,
21-
isReactionEnabled,
22-
message,
23-
reactionSelectorRef,
24-
} = useMessageContext();
19+
const { showDetailedReactions, isReactionEnabled, message, reactionSelectorRef } =
20+
useMessageContext();
2521

2622
const messageWrapperRef = useRef<HTMLDivElement>(null);
2723

examples/capacitor/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import * as serviceWorker from './serviceWorker';
77
createRoot(document.getElementById('root')!).render(
88
<React.StrictMode>
99
<App />
10-
</React.StrictMode>
10+
</React.StrictMode>,
1111
);
1212

1313
// If you want your app to work offline and load faster, you can change

examples/typescript/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import {
1111
Window,
1212
} from 'stream-chat-react';
1313

14-
const params = (new Proxy(new URLSearchParams(window.location.search), {
14+
const params = new Proxy(new URLSearchParams(window.location.search), {
1515
get: (searchParams, property) => searchParams.get(property as string),
16-
}) as unknown) as Record<string, string | null>;
16+
}) as unknown as Record<string, string | null>;
1717

1818
const apiKey = process.env.REACT_APP_STREAM_KEY as string;
1919
const userId = params.uid || (process.env.REACT_APP_USER_ID as string);

examples/typescript/src/components/CustomMessage.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,8 @@ import {
1616
import './CustomMessage.scss';
1717

1818
export const CustomMessage = () => {
19-
const {
20-
showDetailedReactions,
21-
isReactionEnabled,
22-
message,
23-
reactionSelectorRef,
24-
} = useMessageContext();
19+
const { showDetailedReactions, isReactionEnabled, message, reactionSelectorRef } =
20+
useMessageContext();
2521

2622
const messageWrapperRef = useRef<HTMLDivElement>(null);
2723

0 commit comments

Comments
 (0)