@sendbird/uikit-react-native-foundation 3.1.2 → 3.2.0
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/lib/commonjs/assets/icon/icon-audio-off-filled.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-off-filled@2x.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-off-filled@3x.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-off.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-off@2x.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-off@3x.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-on-filled.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-on-filled@2x.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-on-filled@3x.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-on.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-on@2x.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-on@3x.png +0 -0
- package/lib/commonjs/assets/icon/icon-pause.png +0 -0
- package/lib/commonjs/assets/icon/icon-pause@2x.png +0 -0
- package/lib/commonjs/assets/icon/icon-pause@3x.png +0 -0
- package/lib/commonjs/assets/icon/icon-recording.png +0 -0
- package/lib/commonjs/assets/icon/icon-recording@2x.png +0 -0
- package/lib/commonjs/assets/icon/icon-recording@3x.png +0 -0
- package/lib/commonjs/assets/icon/icon-stop.png +0 -0
- package/lib/commonjs/assets/icon/icon-stop@2x.png +0 -0
- package/lib/commonjs/assets/icon/icon-stop@3x.png +0 -0
- package/lib/commonjs/assets/icon/index.js +7 -0
- package/lib/commonjs/assets/icon/index.js.map +1 -1
- package/lib/commonjs/components/Box/index.js +2 -2
- package/lib/commonjs/components/Box/index.js.map +1 -1
- package/lib/commonjs/components/Icon/index.js +4 -3
- package/lib/commonjs/components/Icon/index.js.map +1 -1
- package/lib/commonjs/components/Image/FastImageInternal.js.map +1 -1
- package/lib/commonjs/components/Image/index.js.map +1 -1
- package/lib/commonjs/components/Modal/index.js +1 -1
- package/lib/commonjs/components/Modal/index.js.map +1 -1
- package/lib/commonjs/components/PressBox/index.js.map +1 -1
- package/lib/commonjs/components/ProgressBar/index.js +72 -0
- package/lib/commonjs/components/ProgressBar/index.js.map +1 -0
- package/lib/commonjs/components/RegexText/index.js.map +1 -1
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/styles/HeaderStyleContext.js.map +1 -1
- package/lib/commonjs/styles/createScaleFactor.js +5 -4
- package/lib/commonjs/styles/createScaleFactor.js.map +1 -1
- package/lib/commonjs/theme/DarkUIKitTheme.js +80 -36
- package/lib/commonjs/theme/DarkUIKitTheme.js.map +1 -1
- package/lib/commonjs/theme/LightUIKitTheme.js +80 -36
- package/lib/commonjs/theme/LightUIKitTheme.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/ui/Avatar/index.js +4 -3
- package/lib/commonjs/ui/Avatar/index.js.map +1 -1
- package/lib/commonjs/ui/BottomSheet/index.js.map +1 -1
- package/lib/commonjs/ui/Dialog/DialogSheet.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelMessage/Message.file.voice.js +108 -0
- package/lib/commonjs/ui/GroupChannelMessage/Message.file.voice.js.map +1 -0
- package/lib/commonjs/ui/GroupChannelMessage/Message.unknown.js +1 -1
- package/lib/commonjs/ui/GroupChannelMessage/Message.unknown.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelMessage/index.js +2 -0
- package/lib/commonjs/ui/GroupChannelMessage/index.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelPreview/index.js.map +1 -1
- package/lib/commonjs/ui/Header/index.js +5 -4
- package/lib/commonjs/ui/Header/index.js.map +1 -1
- package/lib/commonjs/ui/OpenChannelMessage/MessageContainer.js.map +1 -1
- package/lib/commonjs/ui/OpenChannelPreview/index.js.map +1 -1
- package/lib/commonjs/ui/ProfileCard/index.js.map +1 -1
- package/lib/module/assets/icon/icon-audio-off-filled.png +0 -0
- package/lib/module/assets/icon/icon-audio-off-filled@2x.png +0 -0
- package/lib/module/assets/icon/icon-audio-off-filled@3x.png +0 -0
- package/lib/module/assets/icon/icon-audio-off.png +0 -0
- package/lib/module/assets/icon/icon-audio-off@2x.png +0 -0
- package/lib/module/assets/icon/icon-audio-off@3x.png +0 -0
- package/lib/module/assets/icon/icon-audio-on-filled.png +0 -0
- package/lib/module/assets/icon/icon-audio-on-filled@2x.png +0 -0
- package/lib/module/assets/icon/icon-audio-on-filled@3x.png +0 -0
- package/lib/module/assets/icon/icon-audio-on.png +0 -0
- package/lib/module/assets/icon/icon-audio-on@2x.png +0 -0
- package/lib/module/assets/icon/icon-audio-on@3x.png +0 -0
- package/lib/module/assets/icon/icon-pause.png +0 -0
- package/lib/module/assets/icon/icon-pause@2x.png +0 -0
- package/lib/module/assets/icon/icon-pause@3x.png +0 -0
- package/lib/module/assets/icon/icon-recording.png +0 -0
- package/lib/module/assets/icon/icon-recording@2x.png +0 -0
- package/lib/module/assets/icon/icon-recording@3x.png +0 -0
- package/lib/module/assets/icon/icon-stop.png +0 -0
- package/lib/module/assets/icon/icon-stop@2x.png +0 -0
- package/lib/module/assets/icon/icon-stop@3x.png +0 -0
- package/lib/module/assets/icon/index.js +7 -0
- package/lib/module/assets/icon/index.js.map +1 -1
- package/lib/module/components/Box/index.js +2 -2
- package/lib/module/components/Box/index.js.map +1 -1
- package/lib/module/components/Icon/index.js +4 -3
- package/lib/module/components/Icon/index.js.map +1 -1
- package/lib/module/components/Image/FastImageInternal.js.map +1 -1
- package/lib/module/components/Image/index.js.map +1 -1
- package/lib/module/components/Modal/index.js +1 -1
- package/lib/module/components/Modal/index.js.map +1 -1
- package/lib/module/components/PressBox/index.js.map +1 -1
- package/lib/module/components/ProgressBar/index.js +62 -0
- package/lib/module/components/ProgressBar/index.js.map +1 -0
- package/lib/module/components/RegexText/index.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/styles/HeaderStyleContext.js.map +1 -1
- package/lib/module/styles/createScaleFactor.js +5 -4
- package/lib/module/styles/createScaleFactor.js.map +1 -1
- package/lib/module/theme/DarkUIKitTheme.js +80 -36
- package/lib/module/theme/DarkUIKitTheme.js.map +1 -1
- package/lib/module/theme/LightUIKitTheme.js +80 -36
- package/lib/module/theme/LightUIKitTheme.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/module/ui/Avatar/index.js +4 -3
- package/lib/module/ui/Avatar/index.js.map +1 -1
- package/lib/module/ui/BottomSheet/index.js.map +1 -1
- package/lib/module/ui/Dialog/DialogSheet.js.map +1 -1
- package/lib/module/ui/GroupChannelMessage/Message.file.voice.js +98 -0
- package/lib/module/ui/GroupChannelMessage/Message.file.voice.js.map +1 -0
- package/lib/module/ui/GroupChannelMessage/Message.unknown.js +1 -1
- package/lib/module/ui/GroupChannelMessage/Message.unknown.js.map +1 -1
- package/lib/module/ui/GroupChannelMessage/index.js +2 -0
- package/lib/module/ui/GroupChannelMessage/index.js.map +1 -1
- package/lib/module/ui/GroupChannelPreview/index.js.map +1 -1
- package/lib/module/ui/Header/index.js +5 -4
- package/lib/module/ui/Header/index.js.map +1 -1
- package/lib/module/ui/OpenChannelMessage/MessageContainer.js.map +1 -1
- package/lib/module/ui/OpenChannelPreview/index.js.map +1 -1
- package/lib/module/ui/ProfileCard/index.js.map +1 -1
- package/lib/typescript/src/assets/icon/index.d.ts +7 -0
- package/lib/typescript/src/components/Box/index.d.ts +2 -1
- package/lib/typescript/src/components/Divider/index.d.ts +2 -1
- package/lib/typescript/src/components/Icon/index.d.ts +76 -7
- package/lib/typescript/src/components/Image/FastImageInternal.d.ts +2 -1
- package/lib/typescript/src/components/Image/index.d.ts +2 -1
- package/lib/typescript/src/components/ImageWithPlaceholder/index.d.ts +2 -1
- package/lib/typescript/src/components/Modal/index.d.ts +2 -1
- package/lib/typescript/src/components/PressBox/index.d.ts +2 -1
- package/lib/typescript/src/components/ProgressBar/index.d.ts +12 -0
- package/lib/typescript/src/components/RegexText/index.d.ts +3 -2
- package/lib/typescript/src/components/Switch/index.d.ts +1 -1
- package/lib/typescript/src/components/Text/index.d.ts +2 -1
- package/lib/typescript/src/components/VideoThumbnail/index.d.ts +2 -1
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/styles/HeaderStyleContext.d.ts +2 -2
- package/lib/typescript/src/styles/createScaleFactor.d.ts +4 -5
- package/lib/typescript/src/theme/UIKitThemeProvider.d.ts +1 -1
- package/lib/typescript/src/types.d.ts +11 -7
- package/lib/typescript/src/ui/ActionMenu/index.d.ts +2 -1
- package/lib/typescript/src/ui/Alert/index.d.ts +2 -1
- package/lib/typescript/src/ui/Avatar/AvatarGroup.d.ts +1 -1
- package/lib/typescript/src/ui/Avatar/AvatarIcon.d.ts +2 -1
- package/lib/typescript/src/ui/Avatar/index.d.ts +16 -8
- package/lib/typescript/src/ui/Badge/index.d.ts +2 -1
- package/lib/typescript/src/ui/BottomSheet/index.d.ts +3 -2
- package/lib/typescript/src/ui/Button/index.d.ts +1 -1
- package/lib/typescript/src/ui/ChannelFrozenBanner/index.d.ts +2 -1
- package/lib/typescript/src/ui/Dialog/DialogBox.d.ts +1 -1
- package/lib/typescript/src/ui/Dialog/DialogSheet.d.ts +3 -3
- package/lib/typescript/src/ui/Dialog/index.d.ts +1 -1
- package/lib/typescript/src/ui/GroupChannelMessage/Message.admin.d.ts +2 -1
- package/lib/typescript/src/ui/GroupChannelMessage/Message.file.d.ts +2 -1
- package/lib/typescript/src/ui/GroupChannelMessage/Message.file.image.d.ts +2 -1
- package/lib/typescript/src/ui/GroupChannelMessage/Message.file.video.d.ts +2 -1
- package/lib/typescript/src/ui/GroupChannelMessage/Message.file.voice.d.ts +14 -0
- package/lib/typescript/src/ui/GroupChannelMessage/Message.unknown.d.ts +2 -1
- package/lib/typescript/src/ui/GroupChannelMessage/Message.user.d.ts +2 -1
- package/lib/typescript/src/ui/GroupChannelMessage/Message.user.og.d.ts +2 -1
- package/lib/typescript/src/ui/GroupChannelMessage/MessageBubbleWithText.d.ts +2 -1
- package/lib/typescript/src/ui/GroupChannelMessage/MessageContainer.d.ts +4 -3
- package/lib/typescript/src/ui/GroupChannelMessage/MessageOpenGraph.d.ts +2 -1
- package/lib/typescript/src/ui/GroupChannelMessage/index.d.ts +43 -7
- package/lib/typescript/src/ui/GroupChannelPreview/index.d.ts +3 -3
- package/lib/typescript/src/ui/Header/index.d.ts +8 -12
- package/lib/typescript/src/ui/LoadingSpinner/index.d.ts +2 -1
- package/lib/typescript/src/ui/MenuBar/index.d.ts +1 -1
- package/lib/typescript/src/ui/OpenChannelMessage/Message.admin.d.ts +2 -1
- package/lib/typescript/src/ui/OpenChannelMessage/Message.file.d.ts +2 -1
- package/lib/typescript/src/ui/OpenChannelMessage/Message.file.image.d.ts +2 -1
- package/lib/typescript/src/ui/OpenChannelMessage/Message.file.video.d.ts +2 -1
- package/lib/typescript/src/ui/OpenChannelMessage/Message.unknown.d.ts +2 -1
- package/lib/typescript/src/ui/OpenChannelMessage/Message.user.d.ts +2 -1
- package/lib/typescript/src/ui/OpenChannelMessage/Message.user.og.d.ts +2 -1
- package/lib/typescript/src/ui/OpenChannelMessage/MessageContainer.d.ts +2 -1
- package/lib/typescript/src/ui/OpenChannelMessage/index.d.ts +7 -7
- package/lib/typescript/src/ui/OpenChannelPreview/index.d.ts +2 -2
- package/lib/typescript/src/ui/OutlinedButton/index.d.ts +2 -1
- package/lib/typescript/src/ui/Placeholder/index.d.ts +2 -1
- package/lib/typescript/src/ui/ProfileCard/index.d.ts +3 -2
- package/lib/typescript/src/ui/Prompt/index.d.ts +2 -1
- package/lib/typescript/src/ui/Toast/index.d.ts +2 -2
- package/package.json +5 -9
- package/src/assets/icon/icon-audio-off-filled.png +0 -0
- package/src/assets/icon/icon-audio-off-filled@2x.png +0 -0
- package/src/assets/icon/icon-audio-off-filled@3x.png +0 -0
- package/src/assets/icon/icon-audio-off.png +0 -0
- package/src/assets/icon/icon-audio-off@2x.png +0 -0
- package/src/assets/icon/icon-audio-off@3x.png +0 -0
- package/src/assets/icon/icon-audio-on-filled.png +0 -0
- package/src/assets/icon/icon-audio-on-filled@2x.png +0 -0
- package/src/assets/icon/icon-audio-on-filled@3x.png +0 -0
- package/src/assets/icon/icon-audio-on.png +0 -0
- package/src/assets/icon/icon-audio-on@2x.png +0 -0
- package/src/assets/icon/icon-audio-on@3x.png +0 -0
- package/src/assets/icon/icon-pause.png +0 -0
- package/src/assets/icon/icon-pause@2x.png +0 -0
- package/src/assets/icon/icon-pause@3x.png +0 -0
- package/src/assets/icon/icon-recording.png +0 -0
- package/src/assets/icon/icon-recording@2x.png +0 -0
- package/src/assets/icon/icon-recording@3x.png +0 -0
- package/src/assets/icon/icon-stop.png +0 -0
- package/src/assets/icon/icon-stop@2x.png +0 -0
- package/src/assets/icon/icon-stop@3x.png +0 -0
- package/src/assets/icon/index.ts +7 -0
- package/src/components/Box/index.tsx +1 -1
- package/src/components/Icon/index.tsx +6 -7
- package/src/components/Image/FastImageInternal.tsx +3 -2
- package/src/components/Image/index.ts +2 -1
- package/src/components/Modal/index.tsx +1 -1
- package/src/components/PressBox/index.tsx +1 -0
- package/src/components/ProgressBar/index.tsx +72 -0
- package/src/components/RegexText/index.tsx +3 -3
- package/src/index.ts +1 -0
- package/src/styles/HeaderStyleContext.tsx +1 -1
- package/src/styles/createScaleFactor.ts +5 -5
- package/src/theme/DarkUIKitTheme.ts +80 -37
- package/src/theme/LightUIKitTheme.ts +80 -37
- package/src/types.ts +31 -7
- package/src/ui/Avatar/index.tsx +6 -14
- package/src/ui/BottomSheet/index.tsx +2 -2
- package/src/ui/Dialog/DialogSheet.tsx +2 -2
- package/src/ui/GroupChannelMessage/Message.file.voice.tsx +123 -0
- package/src/ui/GroupChannelMessage/Message.unknown.tsx +1 -1
- package/src/ui/GroupChannelMessage/index.ts +7 -0
- package/src/ui/GroupChannelPreview/index.tsx +2 -2
- package/src/ui/Header/index.tsx +8 -12
- package/src/ui/OpenChannelMessage/MessageContainer.tsx +1 -1
- package/src/ui/OpenChannelPreview/index.tsx +1 -1
- package/src/ui/ProfileCard/index.tsx +2 -2
|
@@ -3,5 +3,5 @@ import type { UIKitTheme } from '../types';
|
|
|
3
3
|
type Props = React.PropsWithChildren<{
|
|
4
4
|
theme?: UIKitTheme;
|
|
5
5
|
}>;
|
|
6
|
-
declare const UIKitThemeProvider: ({ children, theme }: Props) => JSX.Element;
|
|
6
|
+
declare const UIKitThemeProvider: ({ children, theme }: Props) => React.JSX.Element;
|
|
7
7
|
export default UIKitThemeProvider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
2
|
import type { TextStyle } from 'react-native';
|
|
3
3
|
export interface UIKitTypography {
|
|
4
4
|
h1: FontAttributes;
|
|
@@ -26,7 +26,7 @@ export interface UIKitTheme {
|
|
|
26
26
|
colors: UIKitColors;
|
|
27
27
|
typography: UIKitTypography;
|
|
28
28
|
}
|
|
29
|
-
export type Component = 'Header' | 'Button' | 'Dialog' | 'Input' | 'Badge' | 'Placeholder' | 'DateSeparator' | 'GroupChannelMessage' | 'GroupChannelPreview' | 'ProfileCard' | 'Reaction' | 'OpenChannelMessage' | 'OpenChannelPreview';
|
|
29
|
+
export type Component = 'Header' | 'Button' | 'Dialog' | 'Input' | 'Badge' | 'Placeholder' | 'DateSeparator' | 'GroupChannelMessage' | 'GroupChannelPreview' | 'ProfileCard' | 'Reaction' | 'OpenChannelMessage' | 'OpenChannelPreview' | 'VoiceMessageInput';
|
|
30
30
|
export type GetColorTree<Tree extends {
|
|
31
31
|
Variant: {
|
|
32
32
|
[key in Component]: string;
|
|
@@ -53,6 +53,7 @@ export type ComponentColorTree = GetColorTree<{
|
|
|
53
53
|
Reaction: 'default' | 'rounded';
|
|
54
54
|
OpenChannelMessage: 'default';
|
|
55
55
|
OpenChannelPreview: 'default';
|
|
56
|
+
VoiceMessageInput: 'default';
|
|
56
57
|
};
|
|
57
58
|
State: {
|
|
58
59
|
Header: 'none';
|
|
@@ -68,6 +69,7 @@ export type ComponentColorTree = GetColorTree<{
|
|
|
68
69
|
Reaction: 'enabled' | 'selected';
|
|
69
70
|
OpenChannelMessage: 'enabled' | 'pressed';
|
|
70
71
|
OpenChannelPreview: 'none';
|
|
72
|
+
VoiceMessageInput: 'active' | 'inactive';
|
|
71
73
|
};
|
|
72
74
|
ColorPart: {
|
|
73
75
|
Header: 'background' | 'borderBottom';
|
|
@@ -77,12 +79,13 @@ export type ComponentColorTree = GetColorTree<{
|
|
|
77
79
|
Badge: 'text' | 'background';
|
|
78
80
|
Placeholder: 'content' | 'highlight';
|
|
79
81
|
DateSeparator: 'text' | 'background';
|
|
80
|
-
GroupChannelMessage: 'textMsg' | 'textEdited' | 'textSenderName' | 'textTime' | 'background';
|
|
82
|
+
GroupChannelMessage: 'textMsg' | 'textEdited' | 'textSenderName' | 'textTime' | 'textVoicePlaytime' | 'background' | 'voiceSpinner' | 'voiceProgressTrack' | 'voiceActionIcon' | 'voiceActionIconBackground';
|
|
81
83
|
GroupChannelPreview: 'textTitle' | 'textTitleCaption' | 'textBody' | 'memberCount' | 'bodyIcon' | 'background' | 'coverBackground' | 'bodyIconBackground' | 'separator';
|
|
82
84
|
ProfileCard: 'textUsername' | 'textBodyLabel' | 'textBody' | 'background';
|
|
83
85
|
Reaction: 'background' | 'highlight';
|
|
84
86
|
OpenChannelMessage: 'textMsg' | 'textMsgPostfix' | 'textSenderName' | 'textTime' | 'textOperator' | 'background' | 'bubbleBackground' | 'adminBackground';
|
|
85
87
|
OpenChannelPreview: 'textTitle' | 'textParticipants' | 'frozenIcon' | 'participantsIcon' | 'background' | 'coverBackground' | 'separator';
|
|
88
|
+
VoiceMessageInput: 'textCancel' | 'textTime' | 'background' | 'actionIcon' | 'actionIconBackground' | 'sendIcon' | 'sendIconBackground' | 'progressTrack' | 'recording';
|
|
86
89
|
};
|
|
87
90
|
}>;
|
|
88
91
|
export type ComponentColors<T extends Component> = {
|
|
@@ -129,13 +132,14 @@ export interface UIKitColors {
|
|
|
129
132
|
reaction: ComponentColors<'Reaction'>;
|
|
130
133
|
openChannelMessage: ComponentColors<'OpenChannelMessage'>;
|
|
131
134
|
openChannelPreview: ComponentColors<'OpenChannelPreview'>;
|
|
135
|
+
voiceMessageInput: ComponentColors<'VoiceMessageInput'>;
|
|
132
136
|
};
|
|
133
137
|
}
|
|
134
|
-
export type HeaderElement =
|
|
138
|
+
export type HeaderElement = ReactNode;
|
|
135
139
|
export type HeaderPartProps = {
|
|
136
|
-
title?:
|
|
137
|
-
right?:
|
|
138
|
-
left?:
|
|
140
|
+
title?: ReactNode;
|
|
141
|
+
right?: ReactNode;
|
|
142
|
+
left?: ReactNode;
|
|
139
143
|
onPressLeft?: (...params: any[]) => any;
|
|
140
144
|
onPressRight?: (...params: any[]) => any;
|
|
141
145
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export type ActionMenuItem = {
|
|
2
3
|
title?: string;
|
|
3
4
|
menuItems: {
|
|
@@ -13,5 +14,5 @@ type Props = {
|
|
|
13
14
|
onError?: (error: unknown) => void;
|
|
14
15
|
onDismiss?: () => void;
|
|
15
16
|
} & ActionMenuItem;
|
|
16
|
-
declare const ActionMenu: ({ visible, onHide, onError, onDismiss, title, menuItems }: Props) => JSX.Element;
|
|
17
|
+
declare const ActionMenu: ({ visible, onHide, onError, onDismiss, title, menuItems }: Props) => React.JSX.Element;
|
|
17
18
|
export default ActionMenu;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { AlertButton } from 'react-native';
|
|
2
3
|
export type AlertItem = {
|
|
3
4
|
title?: string;
|
|
@@ -9,5 +10,5 @@ type Props = {
|
|
|
9
10
|
onHide: () => void;
|
|
10
11
|
onDismiss?: () => void;
|
|
11
12
|
} & AlertItem;
|
|
12
|
-
declare const Alert: ({ onDismiss, visible, onHide, title, message, buttons }: Props) => JSX.Element;
|
|
13
|
+
declare const Alert: ({ onDismiss, visible, onHide, title, message, buttons }: Props) => React.JSX.Element;
|
|
13
14
|
export default Alert;
|
|
@@ -4,5 +4,5 @@ type Props = React.PropsWithChildren<{
|
|
|
4
4
|
size?: number;
|
|
5
5
|
containerStyle?: StyleProp<ViewStyle>;
|
|
6
6
|
}>;
|
|
7
|
-
declare const AvatarGroup: ({ children, containerStyle, size }: Props) => JSX.Element;
|
|
7
|
+
declare const AvatarGroup: ({ children, containerStyle, size }: Props) => React.JSX.Element;
|
|
8
8
|
export default AvatarGroup;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
import Icon from '../../components/Icon';
|
|
3
4
|
type Props = {
|
|
@@ -6,5 +7,5 @@ type Props = {
|
|
|
6
7
|
backgroundColor?: string;
|
|
7
8
|
containerStyle?: StyleProp<ViewStyle>;
|
|
8
9
|
};
|
|
9
|
-
declare const AvatarIcon: ({ size, icon, containerStyle, backgroundColor }: Props) => JSX.Element;
|
|
10
|
+
declare const AvatarIcon: ({ size, icon, containerStyle, backgroundColor }: Props) => React.JSX.Element;
|
|
10
11
|
export default AvatarIcon;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
-
import AvatarGroup from './AvatarGroup';
|
|
3
|
-
import AvatarIcon from './AvatarIcon';
|
|
4
|
-
type SubComponents = {
|
|
5
|
-
Group: typeof AvatarGroup;
|
|
6
|
-
Icon: typeof AvatarIcon;
|
|
7
|
-
};
|
|
8
3
|
type Props = {
|
|
9
4
|
uri?: string;
|
|
10
5
|
size?: number;
|
|
@@ -12,5 +7,18 @@ type Props = {
|
|
|
12
7
|
muted?: boolean;
|
|
13
8
|
containerStyle?: StyleProp<ViewStyle>;
|
|
14
9
|
};
|
|
15
|
-
declare const
|
|
16
|
-
|
|
10
|
+
declare const _default: (({ uri, square, muted, size, containerStyle }: Props) => React.JSX.Element) & {
|
|
11
|
+
Group: ({ children, containerStyle, size }: {
|
|
12
|
+
size?: number | undefined;
|
|
13
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
14
|
+
} & {
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}) => React.JSX.Element;
|
|
17
|
+
Icon: ({ size, icon, containerStyle, backgroundColor }: {
|
|
18
|
+
icon: "message" | "recording" | "done" | "search" | "chat-hide" | "chat-show" | "add" | "archive" | "arrow-left" | "audio-off-filled" | "audio-off" | "audio-on-filled" | "audio-on" | "ban" | "broadcast" | "camera" | "channels" | "chat-filled" | "chat" | "checkbox-off" | "checkbox-on" | "chevron-down" | "chevron-right" | "close" | "copy" | "create" | "delete" | "document" | "done-all" | "download" | "edit" | "emoji-more" | "error" | "file-audio" | "file-document" | "freeze" | "gif" | "info" | "leave" | "members" | "moderation" | "more" | "mute" | "notifications-filled" | "notifications-off-filled" | "notifications" | "operator" | "pause" | "photo" | "play" | "plus" | "question" | "radio-off" | "radio-on" | "refresh" | "remove" | "reply-filled" | "reply" | "send" | "settings-filled" | "spinner" | "stop" | "streaming" | "supergroup" | "theme" | "thumbnail-none" | "unarchive" | "user";
|
|
19
|
+
size?: number | undefined;
|
|
20
|
+
backgroundColor?: string | undefined;
|
|
21
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
22
|
+
}) => React.JSX.Element;
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
type Props = {
|
|
3
4
|
count: number;
|
|
@@ -7,5 +8,5 @@ type Props = {
|
|
|
7
8
|
style?: StyleProp<ViewStyle>;
|
|
8
9
|
size?: 'small' | 'default';
|
|
9
10
|
};
|
|
10
|
-
declare const Badge: ({ count, maxCount, badgeColor, textColor, style, size }: Props) => JSX.Element;
|
|
11
|
+
declare const Badge: ({ count, maxCount, badgeColor, textColor, style, size }: Props) => React.JSX.Element;
|
|
11
12
|
export default Badge;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
1
2
|
import type Icon from '../../components/Icon';
|
|
2
3
|
type HeaderProps = {
|
|
3
4
|
onClose: () => Promise<void>;
|
|
@@ -11,7 +12,7 @@ export type BottomSheetItem = {
|
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
onPress: () => void;
|
|
13
14
|
}[];
|
|
14
|
-
HeaderComponent?: (props: HeaderProps) =>
|
|
15
|
+
HeaderComponent?: (props: HeaderProps) => ReactNode;
|
|
15
16
|
};
|
|
16
17
|
type Props = {
|
|
17
18
|
visible: boolean;
|
|
@@ -19,5 +20,5 @@ type Props = {
|
|
|
19
20
|
onError?: (error: unknown) => void;
|
|
20
21
|
onDismiss?: () => void;
|
|
21
22
|
} & BottomSheetItem;
|
|
22
|
-
declare const BottomSheet: ({ onDismiss, onHide, visible, sheetItems, HeaderComponent }: Props) => JSX.Element;
|
|
23
|
+
declare const BottomSheet: ({ onDismiss, onHide, visible, sheetItems, HeaderComponent }: Props) => React.JSX.Element;
|
|
23
24
|
export default BottomSheet;
|
|
@@ -10,5 +10,5 @@ type Props = React.PropsWithChildren<{
|
|
|
10
10
|
buttonColor?: string;
|
|
11
11
|
contentColor?: string;
|
|
12
12
|
}>;
|
|
13
|
-
declare const Button: ({ icon, variant, buttonColor, contentColor, disabled, onPress, style, children, }: Props) => JSX.Element;
|
|
13
|
+
declare const Button: ({ icon, variant, buttonColor, contentColor, disabled, onPress, style, children, }: Props) => React.JSX.Element;
|
|
14
14
|
export default Button;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
type Props = {
|
|
3
4
|
style?: StyleProp<ViewStyle>;
|
|
@@ -5,5 +6,5 @@ type Props = {
|
|
|
5
6
|
textColor?: string;
|
|
6
7
|
backgroundColor?: string;
|
|
7
8
|
};
|
|
8
|
-
declare const ChannelFrozenBanner: ({ text, backgroundColor, textColor, style }: Props) => JSX.Element;
|
|
9
|
+
declare const ChannelFrozenBanner: ({ text, backgroundColor, textColor, style }: Props) => React.JSX.Element;
|
|
9
10
|
export default ChannelFrozenBanner;
|
|
@@ -3,5 +3,5 @@ import { StyleProp, ViewStyle } from 'react-native';
|
|
|
3
3
|
type Props = React.PropsWithChildren<{
|
|
4
4
|
style?: StyleProp<ViewStyle>;
|
|
5
5
|
}>;
|
|
6
|
-
declare const DialogBox: ({ style, children }: Props) => JSX.Element;
|
|
6
|
+
declare const DialogBox: ({ style, children }: Props) => React.JSX.Element;
|
|
7
7
|
export default DialogBox;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import Icon from '../../components/Icon';
|
|
4
4
|
type Props = React.PropsWithChildren<{
|
|
5
5
|
style?: StyleProp<ViewStyle>;
|
|
6
6
|
}>;
|
|
7
|
-
declare const DialogSheet: ((props: Props) =>
|
|
7
|
+
declare const DialogSheet: ((props: Props) => ReactNode) & {
|
|
8
8
|
Item: typeof SheetItem;
|
|
9
9
|
};
|
|
10
10
|
export type SheetItemProps = {
|
|
@@ -14,5 +14,5 @@ export type SheetItemProps = {
|
|
|
14
14
|
titleColor?: string;
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
};
|
|
17
|
-
declare const SheetItem: ({ icon, title, iconColor, titleColor, disabled }: SheetItemProps) => JSX.Element;
|
|
17
|
+
declare const SheetItem: ({ icon, title, iconColor, titleColor, disabled }: SheetItemProps) => React.JSX.Element;
|
|
18
18
|
export default DialogSheet;
|
|
@@ -38,7 +38,7 @@ type Props = React.PropsWithChildren<{
|
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
}>;
|
|
41
|
-
export declare const DialogProvider: ({ defaultLabels, children }: Props) => JSX.Element;
|
|
41
|
+
export declare const DialogProvider: ({ defaultLabels, children }: Props) => React.JSX.Element;
|
|
42
42
|
export declare const useActionMenu: () => Pick<DialogContextType, "openMenu">;
|
|
43
43
|
export declare const useAlert: () => Pick<DialogContextType, "alert">;
|
|
44
44
|
export declare const usePrompt: () => Pick<DialogContextType, "openPrompt">;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdAdminMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { GroupChannelMessageProps } from './index';
|
|
3
|
-
declare const AdminMessage: (props: GroupChannelMessageProps<SendbirdAdminMessage>) => JSX.Element;
|
|
4
|
+
declare const AdminMessage: (props: GroupChannelMessageProps<SendbirdAdminMessage>) => React.JSX.Element;
|
|
4
5
|
export default AdminMessage;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { SendbirdFileMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { GroupChannelMessageProps } from './index';
|
|
3
4
|
type Props = GroupChannelMessageProps<SendbirdFileMessage>;
|
|
4
|
-
declare const FileMessage: (props: Props) => JSX.Element;
|
|
5
|
+
declare const FileMessage: (props: Props) => React.JSX.Element;
|
|
5
6
|
export default FileMessage;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdFileMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { GroupChannelMessageProps } from './index';
|
|
3
|
-
declare const ImageFileMessage: (props: GroupChannelMessageProps<SendbirdFileMessage>) => JSX.Element;
|
|
4
|
+
declare const ImageFileMessage: (props: GroupChannelMessageProps<SendbirdFileMessage>) => React.JSX.Element;
|
|
4
5
|
export default ImageFileMessage;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdFileMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { GroupChannelMessageProps } from './index';
|
|
3
4
|
type Props = GroupChannelMessageProps<SendbirdFileMessage, {
|
|
@@ -5,5 +6,5 @@ type Props = GroupChannelMessageProps<SendbirdFileMessage, {
|
|
|
5
6
|
path: string;
|
|
6
7
|
} | null>;
|
|
7
8
|
}>;
|
|
8
|
-
declare const VideoFileMessage: (props: Props) => JSX.Element;
|
|
9
|
+
declare const VideoFileMessage: (props: Props) => React.JSX.Element;
|
|
9
10
|
export default VideoFileMessage;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SendbirdFileMessage } from '@sendbird/uikit-utils';
|
|
3
|
+
import type { GroupChannelMessageProps } from './index';
|
|
4
|
+
export type VoiceFileMessageState = {
|
|
5
|
+
status: 'preparing' | 'playing' | 'paused';
|
|
6
|
+
currentTime: number;
|
|
7
|
+
duration: number;
|
|
8
|
+
};
|
|
9
|
+
type Props = GroupChannelMessageProps<SendbirdFileMessage, {
|
|
10
|
+
durationMetaArrayKey?: string;
|
|
11
|
+
onUnmount: () => void;
|
|
12
|
+
}>;
|
|
13
|
+
declare const VoiceFileMessage: (props: Props) => React.JSX.Element;
|
|
14
|
+
export default VoiceFileMessage;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { GroupChannelMessageProps } from './index';
|
|
3
|
-
declare const UnknownMessage: (props: GroupChannelMessageProps<SendbirdMessage>) => JSX.Element;
|
|
4
|
+
declare const UnknownMessage: (props: GroupChannelMessageProps<SendbirdMessage>) => React.JSX.Element;
|
|
4
5
|
export default UnknownMessage;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdUserMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { RegexTextPattern } from '../../components/RegexText';
|
|
3
4
|
import type { GroupChannelMessageProps } from './index';
|
|
@@ -5,5 +6,5 @@ type Props = GroupChannelMessageProps<SendbirdUserMessage, {
|
|
|
5
6
|
regexTextPatterns?: RegexTextPattern[];
|
|
6
7
|
renderRegexTextChildren?: (message: SendbirdUserMessage) => string;
|
|
7
8
|
}>;
|
|
8
|
-
declare const UserMessage: (props: Props) => JSX.Element;
|
|
9
|
+
declare const UserMessage: (props: Props) => React.JSX.Element;
|
|
9
10
|
export default UserMessage;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdUserMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { RegexTextPattern } from '../../components/RegexText';
|
|
3
4
|
import type { GroupChannelMessageProps } from './index';
|
|
@@ -5,5 +6,5 @@ type Props = GroupChannelMessageProps<SendbirdUserMessage, {
|
|
|
5
6
|
regexTextPatterns?: RegexTextPattern[];
|
|
6
7
|
renderRegexTextChildren?: (message: SendbirdUserMessage) => string;
|
|
7
8
|
}>;
|
|
8
|
-
declare const OpenGraphUserMessage: (props: Props) => JSX.Element;
|
|
9
|
+
declare const OpenGraphUserMessage: (props: Props) => React.JSX.Element;
|
|
9
10
|
export default OpenGraphUserMessage;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { SendbirdUserMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import { RegexTextPattern } from '../../components/RegexText';
|
|
3
4
|
import type { GroupChannelMessageProps } from './index';
|
|
@@ -6,5 +7,5 @@ type Props = GroupChannelMessageProps<SendbirdUserMessage, {
|
|
|
6
7
|
regexTextPatterns?: RegexTextPattern[];
|
|
7
8
|
renderRegexTextChildren?: (message: SendbirdUserMessage) => string;
|
|
8
9
|
}>;
|
|
9
|
-
declare const MessageBubbleWithText: ({ backgroundColor, message, onPressURL, onLongPress, strings, variant, regexTextPatterns, renderRegexTextChildren, }: Props) => JSX.Element;
|
|
10
|
+
declare const MessageBubbleWithText: ({ backgroundColor, message, onPressURL, onLongPress, strings, variant, regexTextPatterns, renderRegexTextChildren, }: Props) => React.JSX.Element;
|
|
10
11
|
export default MessageBubbleWithText;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { GroupChannelMessageProps } from './index';
|
|
3
4
|
type Props = GroupChannelMessageProps<SendbirdMessage>;
|
|
4
5
|
declare const MessageContainer: {
|
|
5
|
-
(props: Props): JSX.Element;
|
|
6
|
-
Incoming({ children, groupedWithNext, groupedWithPrev, message, onPressAvatar, strings, parentMessage, }: Props): JSX.Element;
|
|
7
|
-
Outgoing({ children, message, groupedWithNext, strings, sendingStatus, parentMessage, }: Props): JSX.Element;
|
|
6
|
+
(props: Props): React.JSX.Element;
|
|
7
|
+
Incoming({ children, groupedWithNext, groupedWithPrev, message, onPressAvatar, strings, parentMessage, }: Props): React.JSX.Element;
|
|
8
|
+
Outgoing({ children, message, groupedWithNext, strings, sendingStatus, parentMessage, }: Props): React.JSX.Element;
|
|
8
9
|
};
|
|
9
10
|
export default MessageContainer;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdUserMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
declare const MessageOpenGraph: ({ onPressURL, onLongPress, ogMetaData, variant, }: {
|
|
3
4
|
ogMetaData: NonNullable<SendbirdUserMessage['ogMetaData']>;
|
|
4
5
|
variant: 'outgoing' | 'incoming';
|
|
5
6
|
onPressURL?: ((url: string) => void) | undefined;
|
|
6
7
|
onLongPress?: (() => void) | undefined;
|
|
7
|
-
}) => JSX.Element;
|
|
8
|
+
}) => React.JSX.Element;
|
|
8
9
|
export default MessageOpenGraph;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { SendbirdGroupChannel, SendbirdMessage, SendbirdUser } from '@sendbird/uikit-utils';
|
|
3
|
+
import type { VoiceFileMessageState } from './Message.file.voice';
|
|
3
4
|
export type GroupChannelMessageProps<T extends SendbirdMessage, AdditionalProps = unknown> = {
|
|
4
5
|
channel: SendbirdGroupChannel;
|
|
5
6
|
message: T;
|
|
@@ -22,6 +23,7 @@ export type GroupChannelMessageProps<T extends SendbirdMessage, AdditionalProps
|
|
|
22
23
|
onPressAvatar?: () => void;
|
|
23
24
|
onPressURL?: (url: string) => void;
|
|
24
25
|
onPressMentionedUser?: (mentionedUser?: SendbirdUser) => void;
|
|
26
|
+
onToggleVoiceMessage?: (state: VoiceFileMessageState, setState: React.Dispatch<React.SetStateAction<VoiceFileMessageState>>) => Promise<void>;
|
|
25
27
|
} & AdditionalProps;
|
|
26
28
|
declare const GroupChannelMessage: {
|
|
27
29
|
User: (props: {
|
|
@@ -46,10 +48,11 @@ declare const GroupChannelMessage: {
|
|
|
46
48
|
onPressAvatar?: (() => void) | undefined;
|
|
47
49
|
onPressURL?: ((url: string) => void) | undefined;
|
|
48
50
|
onPressMentionedUser?: ((mentionedUser?: SendbirdUser) => void) | undefined;
|
|
51
|
+
onToggleVoiceMessage?: ((state: VoiceFileMessageState, setState: React.Dispatch<React.SetStateAction<VoiceFileMessageState>>) => Promise<void>) | undefined;
|
|
49
52
|
} & {
|
|
50
53
|
regexTextPatterns?: import("../..").RegexTextPattern[] | undefined;
|
|
51
54
|
renderRegexTextChildren?: ((message: import("@sendbird/chat/message").UserMessage) => string) | undefined;
|
|
52
|
-
}) => JSX.Element;
|
|
55
|
+
}) => React.JSX.Element;
|
|
53
56
|
OpenGraphUser: (props: {
|
|
54
57
|
channel: SendbirdGroupChannel;
|
|
55
58
|
message: import("@sendbird/chat/message").UserMessage;
|
|
@@ -72,10 +75,11 @@ declare const GroupChannelMessage: {
|
|
|
72
75
|
onPressAvatar?: (() => void) | undefined;
|
|
73
76
|
onPressURL?: ((url: string) => void) | undefined;
|
|
74
77
|
onPressMentionedUser?: ((mentionedUser?: SendbirdUser) => void) | undefined;
|
|
78
|
+
onToggleVoiceMessage?: ((state: VoiceFileMessageState, setState: React.Dispatch<React.SetStateAction<VoiceFileMessageState>>) => Promise<void>) | undefined;
|
|
75
79
|
} & {
|
|
76
80
|
regexTextPatterns?: import("../..").RegexTextPattern[] | undefined;
|
|
77
81
|
renderRegexTextChildren?: ((message: import("@sendbird/chat/message").UserMessage) => string) | undefined;
|
|
78
|
-
}) => JSX.Element;
|
|
82
|
+
}) => React.JSX.Element;
|
|
79
83
|
File: (props: {
|
|
80
84
|
channel: SendbirdGroupChannel;
|
|
81
85
|
message: import("@sendbird/chat/message").FileMessage;
|
|
@@ -98,7 +102,8 @@ declare const GroupChannelMessage: {
|
|
|
98
102
|
onPressAvatar?: (() => void) | undefined;
|
|
99
103
|
onPressURL?: ((url: string) => void) | undefined;
|
|
100
104
|
onPressMentionedUser?: ((mentionedUser?: SendbirdUser) => void) | undefined;
|
|
101
|
-
|
|
105
|
+
onToggleVoiceMessage?: ((state: VoiceFileMessageState, setState: React.Dispatch<React.SetStateAction<VoiceFileMessageState>>) => Promise<void>) | undefined;
|
|
106
|
+
}) => React.JSX.Element;
|
|
102
107
|
ImageFile: (props: {
|
|
103
108
|
channel: SendbirdGroupChannel;
|
|
104
109
|
message: import("@sendbird/chat/message").FileMessage;
|
|
@@ -121,7 +126,8 @@ declare const GroupChannelMessage: {
|
|
|
121
126
|
onPressAvatar?: (() => void) | undefined;
|
|
122
127
|
onPressURL?: ((url: string) => void) | undefined;
|
|
123
128
|
onPressMentionedUser?: ((mentionedUser?: SendbirdUser) => void) | undefined;
|
|
124
|
-
|
|
129
|
+
onToggleVoiceMessage?: ((state: VoiceFileMessageState, setState: React.Dispatch<React.SetStateAction<VoiceFileMessageState>>) => Promise<void>) | undefined;
|
|
130
|
+
}) => React.JSX.Element;
|
|
125
131
|
VideoFile: (props: {
|
|
126
132
|
channel: SendbirdGroupChannel;
|
|
127
133
|
message: import("@sendbird/chat/message").FileMessage;
|
|
@@ -144,11 +150,39 @@ declare const GroupChannelMessage: {
|
|
|
144
150
|
onPressAvatar?: (() => void) | undefined;
|
|
145
151
|
onPressURL?: ((url: string) => void) | undefined;
|
|
146
152
|
onPressMentionedUser?: ((mentionedUser?: SendbirdUser) => void) | undefined;
|
|
153
|
+
onToggleVoiceMessage?: ((state: VoiceFileMessageState, setState: React.Dispatch<React.SetStateAction<VoiceFileMessageState>>) => Promise<void>) | undefined;
|
|
147
154
|
} & {
|
|
148
155
|
fetchThumbnailFromVideoSource: (uri: string) => Promise<{
|
|
149
156
|
path: string;
|
|
150
157
|
} | null>;
|
|
151
|
-
}) => JSX.Element;
|
|
158
|
+
}) => React.JSX.Element;
|
|
159
|
+
VoiceFile: (props: {
|
|
160
|
+
channel: SendbirdGroupChannel;
|
|
161
|
+
message: import("@sendbird/chat/message").FileMessage;
|
|
162
|
+
variant?: "incoming" | "outgoing" | undefined;
|
|
163
|
+
strings?: {
|
|
164
|
+
senderName?: string | undefined;
|
|
165
|
+
sentDate?: string | undefined;
|
|
166
|
+
edited?: string | undefined;
|
|
167
|
+
fileName?: string | undefined;
|
|
168
|
+
unknownTitle?: string | undefined;
|
|
169
|
+
unknownDescription?: string | undefined;
|
|
170
|
+
} | undefined;
|
|
171
|
+
children?: React.ReactNode;
|
|
172
|
+
sendingStatus?: React.ReactNode;
|
|
173
|
+
parentMessage?: React.ReactNode;
|
|
174
|
+
groupedWithPrev: boolean;
|
|
175
|
+
groupedWithNext: boolean;
|
|
176
|
+
onPress?: (() => void) | undefined;
|
|
177
|
+
onLongPress?: (() => void) | undefined;
|
|
178
|
+
onPressAvatar?: (() => void) | undefined;
|
|
179
|
+
onPressURL?: ((url: string) => void) | undefined;
|
|
180
|
+
onPressMentionedUser?: ((mentionedUser?: SendbirdUser) => void) | undefined;
|
|
181
|
+
onToggleVoiceMessage?: ((state: VoiceFileMessageState, setState: React.Dispatch<React.SetStateAction<VoiceFileMessageState>>) => Promise<void>) | undefined;
|
|
182
|
+
} & {
|
|
183
|
+
durationMetaArrayKey?: string | undefined;
|
|
184
|
+
onUnmount: () => void;
|
|
185
|
+
}) => React.JSX.Element;
|
|
152
186
|
Admin: (props: {
|
|
153
187
|
channel: SendbirdGroupChannel;
|
|
154
188
|
message: import("@sendbird/chat/message").AdminMessage;
|
|
@@ -171,7 +205,8 @@ declare const GroupChannelMessage: {
|
|
|
171
205
|
onPressAvatar?: (() => void) | undefined;
|
|
172
206
|
onPressURL?: ((url: string) => void) | undefined;
|
|
173
207
|
onPressMentionedUser?: ((mentionedUser?: SendbirdUser) => void) | undefined;
|
|
174
|
-
|
|
208
|
+
onToggleVoiceMessage?: ((state: VoiceFileMessageState, setState: React.Dispatch<React.SetStateAction<VoiceFileMessageState>>) => Promise<void>) | undefined;
|
|
209
|
+
}) => React.JSX.Element;
|
|
175
210
|
Unknown: (props: {
|
|
176
211
|
channel: SendbirdGroupChannel;
|
|
177
212
|
message: SendbirdMessage;
|
|
@@ -194,6 +229,7 @@ declare const GroupChannelMessage: {
|
|
|
194
229
|
onPressAvatar?: (() => void) | undefined;
|
|
195
230
|
onPressURL?: ((url: string) => void) | undefined;
|
|
196
231
|
onPressMentionedUser?: ((mentionedUser?: SendbirdUser) => void) | undefined;
|
|
197
|
-
|
|
232
|
+
onToggleVoiceMessage?: ((state: VoiceFileMessageState, setState: React.Dispatch<React.SetStateAction<VoiceFileMessageState>>) => Promise<void>) | undefined;
|
|
233
|
+
}) => React.JSX.Element;
|
|
198
234
|
};
|
|
199
235
|
export default GroupChannelMessage;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Icon from '../../components/Icon';
|
|
3
3
|
type Props = {
|
|
4
|
-
customCover?: React.
|
|
4
|
+
customCover?: React.ReactNode;
|
|
5
5
|
coverUrl: string;
|
|
6
6
|
title: string;
|
|
7
7
|
titleCaption: string;
|
|
8
|
-
titleCaptionLeft?: React.
|
|
8
|
+
titleCaptionLeft?: React.ReactNode;
|
|
9
9
|
bodyIcon?: keyof typeof Icon.Assets;
|
|
10
10
|
body: string;
|
|
11
11
|
memberCount?: number;
|
|
@@ -17,5 +17,5 @@ type Props = {
|
|
|
17
17
|
mentioned?: boolean;
|
|
18
18
|
mentionTrigger?: string;
|
|
19
19
|
};
|
|
20
|
-
declare const GroupChannelPreview: ({ customCover, coverUrl, memberCount, badgeCount, maxBadgeCount, body, bodyIcon, title, titleCaption, titleCaptionLeft, frozen, notificationOff, broadcast, mentioned, mentionTrigger, }: Props) => JSX.Element;
|
|
20
|
+
declare const GroupChannelPreview: ({ customCover, coverUrl, memberCount, badgeCount, maxBadgeCount, body, bodyIcon, title, titleCaption, titleCaptionLeft, frozen, notificationOff, broadcast, mentioned, mentionTrigger, }: Props) => React.JSX.Element;
|
|
21
21
|
export default GroupChannelPreview;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TouchableOpacityProps } from 'react-native';
|
|
3
3
|
import { TextProps } from '../../components/Text';
|
|
4
|
-
import type { BaseHeaderProps } from '../../index';
|
|
5
|
-
type HeaderElement = string | React.ReactElement | null;
|
|
4
|
+
import type { BaseHeaderProps, HeaderElement } from '../../index';
|
|
6
5
|
export type HeaderProps = BaseHeaderProps<{
|
|
7
6
|
title?: HeaderElement;
|
|
8
7
|
left?: HeaderElement;
|
|
@@ -14,14 +13,11 @@ export type HeaderProps = BaseHeaderProps<{
|
|
|
14
13
|
clearStatusBarTopInset?: boolean;
|
|
15
14
|
statusBarTopInsetAs?: 'padding' | 'margin';
|
|
16
15
|
}>;
|
|
17
|
-
declare const
|
|
18
|
-
Button:
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
declare const _default: (({ children, titleAlign, title, left, right, onPressLeft, onPressRight, clearTitleMargin, clearStatusBarTopInset, statusBarTopInsetAs, }: HeaderProps) => React.JSX.Element) & {
|
|
17
|
+
Button: ({ children, disabled, onPress, color, ...props }: TouchableOpacityProps & {
|
|
18
|
+
color?: string | undefined;
|
|
19
|
+
}) => React.JSX.Element;
|
|
20
|
+
Title: ({ children, style, ...props }: TextProps) => React.JSX.Element;
|
|
21
|
+
Subtitle: ({ children, style, ...props }: TextProps) => React.JSX.Element;
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
-
declare const HeaderSubtitle: ({ children, style, ...props }: TextProps) => JSX.Element;
|
|
24
|
-
declare const HeaderButton: ({ children, disabled, onPress, color, ...props }: TouchableOpacityProps & {
|
|
25
|
-
color?: string | undefined;
|
|
26
|
-
}) => JSX.Element;
|
|
27
|
-
export default Header;
|
|
23
|
+
export default _default;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
type Props = {
|
|
3
4
|
size?: number;
|
|
4
5
|
color?: string;
|
|
5
6
|
style?: StyleProp<ViewStyle>;
|
|
6
7
|
};
|
|
7
|
-
declare const LoadingSpinner: ({ size, color, style }: Props) => JSX.Element;
|
|
8
|
+
declare const LoadingSpinner: ({ size, color, style }: Props) => React.JSX.Element;
|
|
8
9
|
export default LoadingSpinner;
|
|
@@ -12,5 +12,5 @@ export type MenuBarProps = {
|
|
|
12
12
|
actionLabel?: string;
|
|
13
13
|
actionItem?: React.ReactNode;
|
|
14
14
|
};
|
|
15
|
-
declare const MenuBar: ({ variant, disabled, visible, onPress, name, icon, iconColor, iconBackgroundColor, actionLabel, actionItem, }: MenuBarProps) => JSX.Element | null;
|
|
15
|
+
declare const MenuBar: ({ variant, disabled, visible, onPress, name, icon, iconColor, iconBackgroundColor, actionLabel, actionItem, }: MenuBarProps) => React.JSX.Element | null;
|
|
16
16
|
export default MenuBar;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdAdminMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { OpenChannelMessageProps } from './index';
|
|
3
|
-
declare const AdminMessage: (props: OpenChannelMessageProps<SendbirdAdminMessage>) => JSX.Element;
|
|
4
|
+
declare const AdminMessage: (props: OpenChannelMessageProps<SendbirdAdminMessage>) => React.JSX.Element;
|
|
4
5
|
export default AdminMessage;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { SendbirdFileMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { OpenChannelMessageProps } from './index';
|
|
3
4
|
type Props = {};
|
|
4
|
-
declare const FileMessage: (props: OpenChannelMessageProps<SendbirdFileMessage, Props>) => JSX.Element;
|
|
5
|
+
declare const FileMessage: (props: OpenChannelMessageProps<SendbirdFileMessage, Props>) => React.JSX.Element;
|
|
5
6
|
export default FileMessage;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdFileMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { OpenChannelMessageProps } from './index';
|
|
3
|
-
declare const ImageFileMessage: (props: OpenChannelMessageProps<SendbirdFileMessage>) => JSX.Element;
|
|
4
|
+
declare const ImageFileMessage: (props: OpenChannelMessageProps<SendbirdFileMessage>) => React.JSX.Element;
|
|
4
5
|
export default ImageFileMessage;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdFileMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { OpenChannelMessageProps } from './index';
|
|
3
4
|
type Props = {
|
|
@@ -5,5 +6,5 @@ type Props = {
|
|
|
5
6
|
path: string;
|
|
6
7
|
} | null>;
|
|
7
8
|
};
|
|
8
|
-
declare const VideoFileMessage: (props: OpenChannelMessageProps<SendbirdFileMessage, Props>) => JSX.Element;
|
|
9
|
+
declare const VideoFileMessage: (props: OpenChannelMessageProps<SendbirdFileMessage, Props>) => React.JSX.Element;
|
|
9
10
|
export default VideoFileMessage;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { OpenChannelMessageProps } from './index';
|
|
3
|
-
declare const UnknownMessage: (props: OpenChannelMessageProps<SendbirdMessage>) => JSX.Element;
|
|
4
|
+
declare const UnknownMessage: (props: OpenChannelMessageProps<SendbirdMessage>) => React.JSX.Element;
|
|
4
5
|
export default UnknownMessage;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdUserMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { OpenChannelMessageProps } from './index';
|
|
3
4
|
type Props = {};
|
|
4
|
-
declare const UserMessage: (props: OpenChannelMessageProps<SendbirdUserMessage, Props>) => JSX.Element;
|
|
5
|
+
declare const UserMessage: (props: OpenChannelMessageProps<SendbirdUserMessage, Props>) => React.JSX.Element;
|
|
5
6
|
export default UserMessage;
|