Skip to content

Commit 93a095c

Browse files
committed
chore: update package dependencies
1 parent 9c0a3f5 commit 93a095c

File tree

36 files changed

+423
-312
lines changed

36 files changed

+423
-312
lines changed

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"trailingComma": "all",
99
"bracketSpacing": true,
1010
"arrowParens": "always",
11+
"plugins": ["@trivago/prettier-plugin-sort-imports"],
1112
"importOrder": ["<THIRD_PARTY_MODULES>", "@sendbird[./]?", "^[./]"],
1213
"importOrderSeparation": true,
1314
"importOrderSortSpecifiers": true,

docs-validation/3_core-components/Provider/PlatformServiceProvider.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { MediaServiceInterface } from '@sendbird/uikit-react-native';
2+
import type { ReactNode } from 'react';
23

34
const isMediaFile = (_: string) => 0;
45
const MyDocumentPickerModule = {
@@ -34,7 +35,7 @@ async function fileServiceInterface(service: FileServiceInterface) {
3435
* {@link }
3536
* */
3637
async function mediaServiceInterface(service: MediaServiceInterface) {
37-
const jsx: JSX.Element = service.VideoComponent({
38+
const jsx: ReactNode = service.VideoComponent({
3839
source: 0 as number | { uri: string },
3940
resizeMode: '' as 'cover' | 'stretch' | 'contain' | undefined,
4041
onLoad: () => 0,

docs-validation/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@
3131
"@babel/runtime": "^7.12.5",
3232
"@react-native-community/eslint-config": "^2.0.0",
3333
"@types/jest": "^26.0.23",
34-
"@types/react": "^18.0.15",
34+
"@types/react": "*",
3535
"@types/react-native": "*",
36-
"@types/react-test-renderer": "^17.0.1",
3736
"@typescript-eslint/eslint-plugin": "^5.7.0",
3837
"@typescript-eslint/parser": "^5.7.0",
3938
"babel-jest": "^26.6.3",
@@ -44,6 +43,6 @@
4443
"react-dom": "17.0.2",
4544
"react-native-monorepo-tools": "^1.1.4",
4645
"react-test-renderer": "17.0.2",
47-
"typescript": "4.9.4"
46+
"typescript": "5.2.2"
4847
}
4948
}

package.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,31 +39,31 @@
3939
},
4040
"devDependencies": {
4141
"@testing-library/react-native": "11",
42-
"@trivago/prettier-plugin-sort-imports": "^3.4.0",
42+
"@trivago/prettier-plugin-sort-imports": "^4.2.1",
4343
"@types/jest": "^29.4.0",
44-
"@typescript-eslint/eslint-plugin": "^5.9.1",
45-
"@typescript-eslint/parser": "^5.9.1",
44+
"@typescript-eslint/eslint-plugin": "^6.9.1",
45+
"@typescript-eslint/parser": "^6.9.1",
4646
"babel-jest": "^29.4.3",
4747
"chalk": "^4",
4848
"concurrently": "^8.0.1",
4949
"conventional-changelog-conventionalcommits": "^5.0.0",
5050
"del-cli": "^4.0.1",
51-
"eslint": "^8.6.0",
52-
"eslint-config-prettier": "^8.5.0",
51+
"eslint": "^8.52.0",
52+
"eslint-config-prettier": "^9.0.0",
5353
"jest": "^29.4.3",
5454
"lerna": "^5.1.6",
5555
"node-fetch": "2.x",
5656
"patch-package": "^6.4.7",
5757
"postinstall-postinstall": "^2.1.0",
58-
"prettier": "^2.7.1",
58+
"prettier": "^2.8.8",
5959
"react": "17.0.2",
6060
"react-native": "0.67.5",
6161
"react-native-builder-bob": "^0.18.2",
6262
"react-native-fast-image": "^8.5.11",
6363
"react-native-safe-area-context": "^3.3.2",
6464
"react-test-renderer": "^17.0.2",
65-
"typedoc": "^0.23.7",
66-
"typescript": "4.9.4"
65+
"typedoc": "^0.25.3",
66+
"typescript": "5.2.2"
6767
},
6868
"jest": {
6969
"preset": "react-native",
@@ -96,6 +96,8 @@
9696
]
9797
},
9898
"resolutions": {
99-
"@sendbird/chat": "4.9.8"
99+
"@sendbird/chat": "4.9.8",
100+
"@types/react": "^18",
101+
"@types/react-native": "^0.67"
100102
}
101103
}

packages/uikit-chat-hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@types/react": "*",
5252
"react": "17.0.2",
5353
"react-native-builder-bob": "^0.18.0",
54-
"typescript": "4.9.4"
54+
"typescript": "5.2.2"
5555
},
5656
"peerDependencies": {
5757
"@sendbird/chat": "^4.9.8",

packages/uikit-react-native-foundation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"react-native-builder-bob": "^0.18.0",
5858
"react-native-fast-image": "^8.5.11",
5959
"react-native-safe-area-context": "^3.3.2",
60-
"typescript": "4.9.4"
60+
"typescript": "5.2.2"
6161
},
6262
"peerDependencies": {
6363
"react": ">=17.0.2",

packages/uikit-react-native-foundation/src/components/Icon/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import React, { ReactNode } from 'react';
22
import { Image, ImageStyle, StyleProp, StyleSheet, View, ViewStyle } from 'react-native';
33

44
import { FileType, convertFileTypeToMessageType, getFileIconFromMessageType } from '@sendbird/uikit-utils';
@@ -17,7 +17,7 @@ type Props = {
1717
style?: StyleProp<ImageStyle>;
1818
containerStyle?: StyleProp<ViewStyle>;
1919
};
20-
const Icon: ((props: Props) => JSX.Element) & {
20+
const Icon: ((props: Props) => ReactNode) & {
2121
Assets: typeof IconAssets;
2222
File: typeof FileIcon;
2323
} = ({ icon, color, size = 24, containerStyle, style }) => {
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
import type { ReactNode } from 'react';
12
import type { FastImageProps } from 'react-native-fast-image';
23

3-
let FastImageInternal: (props: FastImageProps) => JSX.Element | null = () => null;
4+
let FastImageInternal: (props: FastImageProps) => ReactNode | null = () => null;
45

56
try {
6-
FastImageInternal = require('react-native-fast-image') as (props: FastImageProps) => JSX.Element;
7+
FastImageInternal = require('react-native-fast-image') as (props: FastImageProps) => ReactNode;
78
} catch {}
89

910
export default FastImageInternal;

packages/uikit-react-native-foundation/src/components/Image/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { ReactNode } from 'react';
12
import type { ImageProps as NativeImageProps } from 'react-native';
23
import { NativeModules } from 'react-native';
34

@@ -7,7 +8,7 @@ export interface SendbirdImageProps extends Omit<NativeImageProps, 'onLoad' | 'o
78
tintColor?: string;
89
}
910

10-
export type SendbirdImageComponent = (props: SendbirdImageProps) => JSX.Element;
11+
export type SendbirdImageComponent = (props: SendbirdImageProps) => ReactNode;
1112

1213
function getImageModule(): SendbirdImageComponent {
1314
const hasFastImage = Boolean(NativeModules.FastImageView);

packages/uikit-react-native-foundation/src/components/RegexText/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import React, { ReactNode } from 'react';
22

33
import { replaceWithRegex } from '@sendbird/uikit-utils';
44

@@ -12,15 +12,15 @@ export interface RegexTextPattern {
1212
index: number;
1313
keyPrefix: string;
1414
parentProps?: TextProps;
15-
}): string | JSX.Element;
15+
}): string | ReactNode;
1616
}
1717

1818
type Props = { patterns: RegexTextPattern[] } & TextProps;
1919

2020
const RegexText = ({ children, patterns, ...props }: Props) => {
2121
if (patterns.length === 0 || typeof children !== 'string') return <>{children}</>;
2222

23-
const matchedTexts: Array<string | JSX.Element> = [children];
23+
const matchedTexts: Array<string | ReactNode> = [children];
2424

2525
patterns.forEach(({ regex, replacer }, patterIndex) => {
2626
const matchedTextsTemp = matchedTexts.concat();

0 commit comments

Comments
 (0)