Skip to content

Commit 7faabf9

Browse files
committed
feat: rename MessageSimple to MessageItemView
1 parent 1ff30ca commit 7faabf9

File tree

72 files changed

+333
-329
lines changed

Some content is hidden

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

72 files changed

+333
-329
lines changed

package/src/components/AITypingIndicatorView/AITypingIndicatorView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const AITypingIndicatorView = ({
3434
) : null;
3535
};
3636

37-
AITypingIndicatorView.displayName = 'AITypingIndicatorView{messageSimple{content}}';
37+
AITypingIndicatorView.displayName = 'AITypingIndicatorView{messageItemView{content}}';
3838

3939
const useStyles = () => {
4040
const {

package/src/components/Attachment/FileAttachment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export const FileAttachment = (props: FileAttachmentProps) => {
120120
);
121121
};
122122

123-
FileAttachment.displayName = 'FileAttachment{messageSimple{file}}';
123+
FileAttachment.displayName = 'FileAttachment{messageItemView{file}}';
124124

125125
const useStyles = () => {
126126
const {

package/src/components/Attachment/FileAttachmentGroup.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const FileAttachmentGroupWithContext = (props: FileAttachmentGroupPropsWithConte
2828

2929
const {
3030
theme: {
31-
messageSimple: {
31+
messageItemView: {
3232
fileAttachmentGroup: { attachmentContainer, container },
3333
},
3434
},
@@ -106,4 +106,4 @@ const styles = StyleSheet.create({
106106
},
107107
});
108108

109-
FileAttachmentGroup.displayName = 'FileAttachmentGroup{messageSimple{fileAttachmentGroup}}';
109+
FileAttachmentGroup.displayName = 'FileAttachmentGroup{messageItemView{fileAttachmentGroup}}';

package/src/components/Attachment/FileIcon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ const sizeToNumber = (size?: 'sm' | 'md' | 'lg') => {
421421
export const FileIcon = ({ mimeType, size = 'md' }: FileIconProps) => {
422422
const {
423423
theme: {
424-
messageSimple: {
424+
messageItemView: {
425425
file: { icon },
426426
},
427427
},
@@ -432,4 +432,4 @@ export const FileIcon = ({ mimeType, size = 'md' }: FileIconProps) => {
432432
return <Icon {...(size ? sizeToNumber(size) : {})} {...icon} />;
433433
};
434434

435-
FileIcon.displayName = 'FileIcon{messageSimple{file{icon}}}';
435+
FileIcon.displayName = 'FileIcon{messageItemView{file{icon}}}';

package/src/components/Attachment/FilePreview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const FilePreview = (props: FilePreviewProps) => {
4343

4444
const {
4545
theme: {
46-
messageSimple: {
46+
messageItemView: {
4747
file: { container, details, fileSize, title },
4848
},
4949
},
@@ -70,7 +70,7 @@ export const FilePreview = (props: FilePreviewProps) => {
7070
);
7171
};
7272

73-
FilePreview.displayName = 'FilePreview{messageSimple{file}}';
73+
FilePreview.displayName = 'FilePreview{messageItemView{file}}';
7474

7575
const useStyles = () => {
7676
const {

package/src/components/Attachment/Gallery.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const GalleryWithContext = (props: GalleryPropsWithContext) => {
8989
const { resizableCDNHosts } = useChatConfigContext();
9090
const {
9191
theme: {
92-
messageSimple: {
92+
messageItemView: {
9393
gallery: {
9494
galleryContainer,
9595
galleryItemColumn,
@@ -261,7 +261,7 @@ const GalleryThumbnail = ({
261261
}: GalleryThumbnailProps) => {
262262
const {
263263
theme: {
264-
messageSimple: {
264+
messageItemView: {
265265
gallery: { image, imageBorderRadius, imageContainer, moreImagesContainer, moreImagesText },
266266
},
267267
semantics,
@@ -389,7 +389,7 @@ const GalleryImageThumbnail = ({
389389

390390
const {
391391
theme: {
392-
messageSimple: { gallery },
392+
messageItemView: { gallery },
393393
},
394394
} = useTheme();
395395

@@ -667,4 +667,4 @@ const useStyles = () => {
667667
}, [semantics, isMyMessage]);
668668
};
669669

670-
Gallery.displayName = 'Gallery{messageSimple{gallery}}';
670+
Gallery.displayName = 'Gallery{messageItemView{gallery}}';

package/src/components/Attachment/Giphy/Giphy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const GiphyWithContext = (props: GiphyPropsWithContext) => {
4545

4646
const {
4747
theme: {
48-
messageSimple: {
48+
messageItemView: {
4949
giphy: {
5050
actionButtonContainer,
5151
actionButton,
@@ -210,7 +210,7 @@ export const Giphy = (props: GiphyProps) => {
210210
);
211211
};
212212

213-
Giphy.displayName = 'Giphy{messageSimple{giphy}}';
213+
Giphy.displayName = 'Giphy{messageItemView{giphy}}';
214214

215215
const useStyles = () => {
216216
const {

package/src/components/Attachment/Giphy/GiphyImage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const GiphyImageWithContext = (props: GiphyImagePropsWithContext) => {
4949

5050
const {
5151
theme: {
52-
messageSimple: {
52+
messageItemView: {
5353
giphy: { giphyMask, giphy, imageIndicatorContainer },
5454
},
5555
},

package/src/components/Attachment/UnsupportedAttachment.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const UnsupportedAttachment = (props: UnsupportedAttachmentProps) => {
3434

3535
const {
3636
theme: {
37-
messageSimple: {
37+
messageItemView: {
3838
unsupportedAttachment: { container, details, title },
3939
},
4040
},
@@ -53,7 +53,7 @@ export const UnsupportedAttachment = (props: UnsupportedAttachmentProps) => {
5353
);
5454
};
5555

56-
UnsupportedAttachment.displayName = 'UnsupportedAttachment{messageSimple{file}}';
56+
UnsupportedAttachment.displayName = 'UnsupportedAttachment{messageItemView{file}}';
5757

5858
const useStyles = ({ isMyMessage }: { isMyMessage: boolean }) => {
5959
const {

package/src/components/Attachment/UrlPreview/URLPreview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const URLPreviewWithContext = (props: URLPreviewPropsWithContext) => {
7373

7474
const {
7575
theme: {
76-
messageSimple: {
76+
messageItemView: {
7777
card: {
7878
container,
7979
cover,
@@ -292,4 +292,4 @@ const useStyles = () => {
292292
);
293293
};
294294

295-
URLPreview.displayName = 'URLPreview{messageSimple{card}}';
295+
URLPreview.displayName = 'URLPreview{messageItemView{card}}';

0 commit comments

Comments
 (0)