stream-chat-react-native-core 8.4.1-beta.1 → 8.4.1-beta.3

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.
Files changed (52) hide show
  1. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +2 -2
  2. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  3. package/lib/commonjs/components/Message/Message.js +5 -2
  4. package/lib/commonjs/components/Message/Message.js.map +1 -1
  5. package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListBottom.js +14 -5
  6. package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListBottom.js.map +1 -1
  7. package/lib/commonjs/components/MessageInput/AttachmentUploadPreviewList.js +5 -5
  8. package/lib/commonjs/components/MessageInput/AttachmentUploadPreviewList.js.map +1 -1
  9. package/lib/commonjs/components/MessageInput/MessageInput.js +5 -7
  10. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  11. package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +11 -4
  12. package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
  13. package/lib/commonjs/components/MessageMenu/ReactionButton.js +18 -8
  14. package/lib/commonjs/components/MessageMenu/ReactionButton.js.map +1 -1
  15. package/lib/commonjs/contexts/themeContext/utils/theme.js +3 -17
  16. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  17. package/lib/commonjs/version.json +1 -1
  18. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +2 -2
  19. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  20. package/lib/module/components/Message/Message.js +5 -2
  21. package/lib/module/components/Message/Message.js.map +1 -1
  22. package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListBottom.js +14 -5
  23. package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListBottom.js.map +1 -1
  24. package/lib/module/components/MessageInput/AttachmentUploadPreviewList.js +5 -5
  25. package/lib/module/components/MessageInput/AttachmentUploadPreviewList.js.map +1 -1
  26. package/lib/module/components/MessageInput/MessageInput.js +5 -7
  27. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  28. package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +11 -4
  29. package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
  30. package/lib/module/components/MessageMenu/ReactionButton.js +18 -8
  31. package/lib/module/components/MessageMenu/ReactionButton.js.map +1 -1
  32. package/lib/module/contexts/themeContext/utils/theme.js +3 -17
  33. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  34. package/lib/module/version.json +1 -1
  35. package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts.map +1 -1
  36. package/lib/typescript/components/MessageInput/MessageInput.d.ts.map +1 -1
  37. package/lib/typescript/components/MessageMenu/ReactionButton.d.ts.map +1 -1
  38. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +12 -12
  39. package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
  40. package/lib/typescript/hooks/useTranslatedMessage.d.ts.map +1 -1
  41. package/package.json +2 -2
  42. package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +2 -2
  43. package/src/components/Message/Message.tsx +2 -2
  44. package/src/components/Message/MessageSimple/ReactionList/ReactionListBottom.tsx +5 -5
  45. package/src/components/MessageInput/AttachmentUploadPreviewList.tsx +7 -4
  46. package/src/components/MessageInput/MessageInput.tsx +2 -4
  47. package/src/components/MessageMenu/MessageUserReactionsItem.tsx +5 -5
  48. package/src/components/MessageMenu/ReactionButton.tsx +5 -4
  49. package/src/components/MessageMenu/__tests__/ReactionButton.test.tsx +2 -4
  50. package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +2 -5
  51. package/src/contexts/themeContext/utils/theme.ts +13 -27
  52. package/src/version.json +1 -1
@@ -70,8 +70,6 @@ const styles = StyleSheet.create({
70
70
  autoCompleteInputContainer: {
71
71
  alignItems: 'center',
72
72
  flexDirection: 'row',
73
- paddingLeft: 16,
74
- paddingRight: 16,
75
73
  },
76
74
  composerContainer: {
77
75
  alignItems: 'center',
@@ -92,7 +90,7 @@ const styles = StyleSheet.create({
92
90
  optionsContainer: {
93
91
  flexDirection: 'row',
94
92
  },
95
- replyContainer: { paddingBottom: 12, paddingHorizontal: 8 },
93
+ replyContainer: { paddingBottom: 0, paddingHorizontal: 8, paddingTop: 8 },
96
94
  sendButtonContainer: {},
97
95
  suggestionsListContainer: {
98
96
  position: 'absolute',
@@ -494,7 +492,6 @@ const MessageInputWithContext = (props: MessageInputPropsWithContext) => {
494
492
  styles.inputBoxContainer,
495
493
  {
496
494
  borderColor: grey_whisper,
497
- paddingVertical: command ? 8 : 12,
498
495
  },
499
496
  inputBoxContainer,
500
497
  isFocused ? focusedInputBoxContainer : null,
@@ -505,6 +502,7 @@ const MessageInputWithContext = (props: MessageInputPropsWithContext) => {
505
502
  <Reply />
506
503
  </View>
507
504
  )}
505
+
508
506
  <AttachmentUploadPreviewList />
509
507
  {command ? (
510
508
  <CommandInput disabled={!isOnline} />
@@ -32,7 +32,7 @@ export const MessageUserReactionsItem = ({
32
32
  const { id, name, type } = reaction;
33
33
  const {
34
34
  theme: {
35
- colors: { black, grey_gainsboro, white },
35
+ colors: { accent_blue, black, grey, grey_gainsboro, light_blue, white },
36
36
  messageMenu: {
37
37
  userReactions: {
38
38
  avatarContainer,
@@ -40,13 +40,13 @@ export const MessageUserReactionsItem = ({
40
40
  avatarName,
41
41
  avatarNameContainer,
42
42
  avatarSize,
43
- filledBackgroundColor,
44
- iconFilledColor,
45
- iconUnFilledColor,
43
+ filledBackgroundColor = light_blue,
44
+ iconFilledColor = accent_blue,
45
+ iconUnFilledColor = grey,
46
46
  radius,
47
47
  reactionBubbleBackground,
48
48
  reactionBubbleBorderRadius,
49
- unfilledBackgroundColor,
49
+ unfilledBackgroundColor = grey_gainsboro,
50
50
  },
51
51
  },
52
52
  },
@@ -29,12 +29,13 @@ export const ReactionButton = (props: ReactionButtonProps) => {
29
29
  const { Icon, onPress, selected, type } = props;
30
30
  const {
31
31
  theme: {
32
+ colors: { light_blue, accent_blue, white, grey },
32
33
  messageMenu: {
33
34
  reactionButton: {
34
- filledBackgroundColor,
35
- filledColor,
36
- unfilledBackgroundColor,
37
- unfilledColor,
35
+ filledBackgroundColor = light_blue,
36
+ filledColor = accent_blue,
37
+ unfilledBackgroundColor = white,
38
+ unfilledColor = grey,
38
39
  },
39
40
  reactionPicker: { buttonContainer, reactionIconSize },
40
41
  },
@@ -34,9 +34,7 @@ describe('ReactionButton', () => {
34
34
  );
35
35
 
36
36
  // Check if the unselected pathFill color is rendered by the mock Icon
37
- expect(
38
- getByText(defaultTheme.messageMenu.reactionButton.unfilledColor.toString()),
39
- ).toBeTruthy();
37
+ expect(getByText(defaultTheme.colors.grey.toString())).toBeTruthy();
40
38
  });
41
39
 
42
40
  it('should call onPress function with the correct reaction type when pressed', () => {
@@ -72,6 +70,6 @@ describe('ReactionButton', () => {
72
70
  </ThemeProvider>,
73
71
  );
74
72
 
75
- expect(getByText(defaultTheme.messageMenu.reactionButton.filledColor.toString())).toBeTruthy();
73
+ expect(getByText(defaultTheme.colors.accent_blue.toString())).toBeTruthy();
76
74
  });
77
75
  });
@@ -2135,7 +2135,6 @@ exports[`Thread should match thread snapshot 1`] = `
2135
2135
  },
2136
2136
  {
2137
2137
  "borderColor": "#ECEBEB",
2138
- "paddingVertical": 12,
2139
2138
  },
2140
2139
  {},
2141
2140
  null,
@@ -2148,8 +2147,6 @@ exports[`Thread should match thread snapshot 1`] = `
2148
2147
  {
2149
2148
  "alignItems": "center",
2150
2149
  "flexDirection": "row",
2151
- "paddingLeft": 16,
2152
- "paddingRight": 16,
2153
2150
  },
2154
2151
  {},
2155
2152
  ]
@@ -2171,13 +2168,13 @@ exports[`Thread should match thread snapshot 1`] = `
2171
2168
  "flex": 1,
2172
2169
  "fontSize": 16,
2173
2170
  "includeFontPadding": false,
2174
- "padding": 0,
2175
- "paddingTop": 0,
2171
+ "paddingVertical": 12,
2176
2172
  "textAlignVertical": "center",
2177
2173
  },
2178
2174
  {
2179
2175
  "color": "#000000",
2180
2176
  "maxHeight": 85,
2177
+ "paddingHorizontal": 16,
2181
2178
  "textAlign": "left",
2182
2179
  },
2183
2180
  {},
@@ -478,10 +478,10 @@ export type Theme = {
478
478
  height?: number;
479
479
  };
480
480
  reactionButton: {
481
- filledColor: ColorValue;
482
- unfilledColor: ColorValue;
483
- filledBackgroundColor: ColorValue;
484
- unfilledBackgroundColor: ColorValue;
481
+ filledColor?: ColorValue;
482
+ unfilledColor?: ColorValue;
483
+ filledBackgroundColor?: ColorValue;
484
+ unfilledBackgroundColor?: ColorValue;
485
485
  };
486
486
  reactionPicker: {
487
487
  buttonContainer: ViewStyle;
@@ -497,11 +497,11 @@ export type Theme = {
497
497
  avatarSize: number;
498
498
  container: ViewStyle;
499
499
  contentContainer: ViewStyle;
500
- filledBackgroundColor: ColorValue;
500
+ filledBackgroundColor?: ColorValue;
501
501
  flatlistColumnContainer: ViewStyle;
502
502
  flatlistContainer: ViewStyle;
503
- iconFilledColor: ColorValue;
504
- iconUnFilledColor: ColorValue;
503
+ iconFilledColor?: ColorValue;
504
+ iconUnFilledColor?: ColorValue;
505
505
  radius: number;
506
506
  reactionBubble: ViewStyle;
507
507
  reactionBubbleBackground: ViewStyle;
@@ -509,7 +509,7 @@ export type Theme = {
509
509
  reactionSelectorContainer: ViewStyle;
510
510
  reactionsText: TextStyle;
511
511
  title: TextStyle;
512
- unfilledBackgroundColor: ColorValue;
512
+ unfilledBackgroundColor?: ColorValue;
513
513
  };
514
514
  };
515
515
  messagePreview: {
@@ -660,12 +660,12 @@ export type Theme = {
660
660
  item: {
661
661
  container: ViewStyle;
662
662
  countText: TextStyle;
663
- filledBackgroundColor: ColorValue;
663
+ filledBackgroundColor?: ColorValue;
664
664
  icon: ViewStyle;
665
- iconFillColor: ColorValue;
665
+ iconFillColor?: ColorValue;
666
666
  iconSize: number;
667
- iconUnFillColor: ColorValue;
668
- unfilledBackgroundColor: ColorValue;
667
+ iconUnFillColor?: ColorValue;
668
+ unfilledBackgroundColor?: ColorValue;
669
669
  };
670
670
  };
671
671
  reactionListTop: {
@@ -1275,12 +1275,7 @@ export const defaultTheme: Theme = {
1275
1275
  title: {},
1276
1276
  },
1277
1277
  bottomSheet: {},
1278
- reactionButton: {
1279
- filledBackgroundColor: Colors.light_blue,
1280
- filledColor: Colors.accent_blue,
1281
- unfilledBackgroundColor: Colors.white,
1282
- unfilledColor: Colors.grey,
1283
- },
1278
+ reactionButton: {},
1284
1279
  reactionPicker: {
1285
1280
  buttonContainer: {},
1286
1281
  container: {},
@@ -1295,11 +1290,8 @@ export const defaultTheme: Theme = {
1295
1290
  avatarSize: 64,
1296
1291
  container: {},
1297
1292
  contentContainer: {},
1298
- filledBackgroundColor: Colors.light_blue,
1299
1293
  flatlistColumnContainer: {},
1300
1294
  flatlistContainer: {},
1301
- iconFilledColor: Colors.accent_blue,
1302
- iconUnFilledColor: Colors.grey,
1303
1295
  radius: 2,
1304
1296
  reactionBubble: {},
1305
1297
  reactionBubbleBackground: {},
@@ -1307,7 +1299,6 @@ export const defaultTheme: Theme = {
1307
1299
  reactionSelectorContainer: {},
1308
1300
  reactionsText: {},
1309
1301
  title: {},
1310
- unfilledBackgroundColor: Colors.grey_gainsboro,
1311
1302
  },
1312
1303
  },
1313
1304
  messagePreview: {
@@ -1481,12 +1472,8 @@ export const defaultTheme: Theme = {
1481
1472
  item: {
1482
1473
  container: {},
1483
1474
  countText: {},
1484
- filledBackgroundColor: Colors.light_blue,
1485
1475
  icon: {},
1486
- iconFillColor: Colors.accent_blue,
1487
1476
  iconSize: 16,
1488
- iconUnFillColor: Colors.grey,
1489
- unfilledBackgroundColor: Colors.grey_gainsboro,
1490
1477
  },
1491
1478
  },
1492
1479
  reactionListTop: {
@@ -1533,7 +1520,6 @@ export const defaultTheme: Theme = {
1533
1520
  container: {},
1534
1521
  },
1535
1522
  targetedMessageContainer: {},
1536
- unreadUnderlayColor: Colors.bg_gradient_start,
1537
1523
  videoThumbnail: {
1538
1524
  container: {},
1539
1525
  roundedView: {},
package/src/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "8.4.1-beta.1"
2
+ "version": "8.4.1-beta.3"
3
3
  }