stream-chat-react-native-core 9.6.2-beta.1 → 9.6.2-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.
- package/lib/commonjs/components/Channel/Channel.js +1 -1
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageContent.js +19 -4
- package/lib/commonjs/components/Message/MessageItemView/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageTextContainer.js +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageTextContainer.js.map +1 -1
- package/lib/commonjs/components/index.js +11 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Channel/Channel.js +1 -1
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageContent.js +19 -4
- package/lib/module/components/Message/MessageItemView/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageTextContainer.js +1 -1
- package/lib/module/components/Message/MessageItemView/MessageTextContainer.js.map +1 -1
- package/lib/module/components/index.js +11 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageContent.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +1 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Channel/Channel.tsx +1 -1
- package/src/components/Message/MessageItemView/MessageContent.tsx +24 -4
- package/src/components/Message/MessageItemView/MessageTextContainer.tsx +1 -1
- package/src/components/Message/MessageItemView/__tests__/MessageContent.test.tsx +116 -0
- package/src/components/Message/MessageItemView/__tests__/__snapshots__/MessageTextContainer.test.tsx.snap +1 -1
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.tsx.snap +120 -116
- package/src/components/index.ts +1 -0
- package/src/version.json +1 -1
|
@@ -530,57 +530,58 @@ exports[`Thread should match thread snapshot 1`] = `
|
|
|
530
530
|
{},
|
|
531
531
|
]
|
|
532
532
|
}
|
|
533
|
-
/>
|
|
534
|
-
<View
|
|
535
|
-
style={
|
|
536
|
-
[
|
|
537
|
-
{
|
|
538
|
-
"maxWidth": 256,
|
|
539
|
-
"paddingHorizontal": 12,
|
|
540
|
-
},
|
|
541
|
-
{},
|
|
542
|
-
undefined,
|
|
543
|
-
]
|
|
544
|
-
}
|
|
545
|
-
testID="message-text-container"
|
|
546
533
|
>
|
|
547
534
|
<View
|
|
548
535
|
style={
|
|
549
536
|
[
|
|
550
537
|
{
|
|
551
|
-
"
|
|
538
|
+
"maxWidth": 256,
|
|
539
|
+
"paddingHorizontal": 4,
|
|
552
540
|
},
|
|
541
|
+
{},
|
|
553
542
|
undefined,
|
|
554
543
|
]
|
|
555
544
|
}
|
|
545
|
+
testID="message-text-container"
|
|
556
546
|
>
|
|
557
|
-
<
|
|
547
|
+
<View
|
|
558
548
|
style={
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
"lineHeight": 20,
|
|
566
|
-
"marginBottom": 8,
|
|
567
|
-
"marginTop": 8,
|
|
568
|
-
}
|
|
549
|
+
[
|
|
550
|
+
{
|
|
551
|
+
"alignSelf": "stretch",
|
|
552
|
+
},
|
|
553
|
+
undefined,
|
|
554
|
+
]
|
|
569
555
|
}
|
|
570
556
|
>
|
|
571
557
|
<Text
|
|
572
558
|
style={
|
|
573
559
|
{
|
|
574
|
-
"
|
|
560
|
+
"alignItems": "flex-start",
|
|
561
|
+
"flexDirection": "row",
|
|
562
|
+
"flexWrap": "wrap",
|
|
575
563
|
"fontSize": 17,
|
|
564
|
+
"justifyContent": "flex-start",
|
|
576
565
|
"lineHeight": 20,
|
|
577
|
-
"
|
|
566
|
+
"marginBottom": 8,
|
|
567
|
+
"marginTop": 8,
|
|
578
568
|
}
|
|
579
569
|
}
|
|
580
570
|
>
|
|
581
|
-
|
|
571
|
+
<Text
|
|
572
|
+
style={
|
|
573
|
+
{
|
|
574
|
+
"color": "#1a1b25",
|
|
575
|
+
"fontSize": 17,
|
|
576
|
+
"lineHeight": 20,
|
|
577
|
+
"writingDirection": "ltr",
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
>
|
|
581
|
+
Message6
|
|
582
|
+
</Text>
|
|
582
583
|
</Text>
|
|
583
|
-
</
|
|
584
|
+
</View>
|
|
584
585
|
</View>
|
|
585
586
|
</View>
|
|
586
587
|
</View>
|
|
@@ -864,57 +865,58 @@ exports[`Thread should match thread snapshot 1`] = `
|
|
|
864
865
|
{},
|
|
865
866
|
]
|
|
866
867
|
}
|
|
867
|
-
/>
|
|
868
|
-
<View
|
|
869
|
-
style={
|
|
870
|
-
[
|
|
871
|
-
{
|
|
872
|
-
"maxWidth": 256,
|
|
873
|
-
"paddingHorizontal": 12,
|
|
874
|
-
},
|
|
875
|
-
{},
|
|
876
|
-
undefined,
|
|
877
|
-
]
|
|
878
|
-
}
|
|
879
|
-
testID="message-text-container"
|
|
880
868
|
>
|
|
881
869
|
<View
|
|
882
870
|
style={
|
|
883
871
|
[
|
|
884
872
|
{
|
|
885
|
-
"
|
|
873
|
+
"maxWidth": 256,
|
|
874
|
+
"paddingHorizontal": 4,
|
|
886
875
|
},
|
|
876
|
+
{},
|
|
887
877
|
undefined,
|
|
888
878
|
]
|
|
889
879
|
}
|
|
880
|
+
testID="message-text-container"
|
|
890
881
|
>
|
|
891
|
-
<
|
|
882
|
+
<View
|
|
892
883
|
style={
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
"lineHeight": 20,
|
|
900
|
-
"marginBottom": 8,
|
|
901
|
-
"marginTop": 8,
|
|
902
|
-
}
|
|
884
|
+
[
|
|
885
|
+
{
|
|
886
|
+
"alignSelf": "stretch",
|
|
887
|
+
},
|
|
888
|
+
undefined,
|
|
889
|
+
]
|
|
903
890
|
}
|
|
904
891
|
>
|
|
905
892
|
<Text
|
|
906
893
|
style={
|
|
907
894
|
{
|
|
908
|
-
"
|
|
895
|
+
"alignItems": "flex-start",
|
|
896
|
+
"flexDirection": "row",
|
|
897
|
+
"flexWrap": "wrap",
|
|
909
898
|
"fontSize": 17,
|
|
899
|
+
"justifyContent": "flex-start",
|
|
910
900
|
"lineHeight": 20,
|
|
911
|
-
"
|
|
901
|
+
"marginBottom": 8,
|
|
902
|
+
"marginTop": 8,
|
|
912
903
|
}
|
|
913
904
|
}
|
|
914
905
|
>
|
|
915
|
-
|
|
906
|
+
<Text
|
|
907
|
+
style={
|
|
908
|
+
{
|
|
909
|
+
"color": "#1a1b25",
|
|
910
|
+
"fontSize": 17,
|
|
911
|
+
"lineHeight": 20,
|
|
912
|
+
"writingDirection": "ltr",
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
>
|
|
916
|
+
Message5
|
|
917
|
+
</Text>
|
|
916
918
|
</Text>
|
|
917
|
-
</
|
|
919
|
+
</View>
|
|
918
920
|
</View>
|
|
919
921
|
</View>
|
|
920
922
|
</View>
|
|
@@ -1232,57 +1234,58 @@ exports[`Thread should match thread snapshot 1`] = `
|
|
|
1232
1234
|
{},
|
|
1233
1235
|
]
|
|
1234
1236
|
}
|
|
1235
|
-
/>
|
|
1236
|
-
<View
|
|
1237
|
-
style={
|
|
1238
|
-
[
|
|
1239
|
-
{
|
|
1240
|
-
"maxWidth": 256,
|
|
1241
|
-
"paddingHorizontal": 12,
|
|
1242
|
-
},
|
|
1243
|
-
{},
|
|
1244
|
-
undefined,
|
|
1245
|
-
]
|
|
1246
|
-
}
|
|
1247
|
-
testID="message-text-container"
|
|
1248
1237
|
>
|
|
1249
1238
|
<View
|
|
1250
1239
|
style={
|
|
1251
1240
|
[
|
|
1252
1241
|
{
|
|
1253
|
-
"
|
|
1242
|
+
"maxWidth": 256,
|
|
1243
|
+
"paddingHorizontal": 4,
|
|
1254
1244
|
},
|
|
1245
|
+
{},
|
|
1255
1246
|
undefined,
|
|
1256
1247
|
]
|
|
1257
1248
|
}
|
|
1249
|
+
testID="message-text-container"
|
|
1258
1250
|
>
|
|
1259
|
-
<
|
|
1251
|
+
<View
|
|
1260
1252
|
style={
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
"lineHeight": 20,
|
|
1268
|
-
"marginBottom": 8,
|
|
1269
|
-
"marginTop": 8,
|
|
1270
|
-
}
|
|
1253
|
+
[
|
|
1254
|
+
{
|
|
1255
|
+
"alignSelf": "stretch",
|
|
1256
|
+
},
|
|
1257
|
+
undefined,
|
|
1258
|
+
]
|
|
1271
1259
|
}
|
|
1272
1260
|
>
|
|
1273
1261
|
<Text
|
|
1274
1262
|
style={
|
|
1275
1263
|
{
|
|
1276
|
-
"
|
|
1264
|
+
"alignItems": "flex-start",
|
|
1265
|
+
"flexDirection": "row",
|
|
1266
|
+
"flexWrap": "wrap",
|
|
1277
1267
|
"fontSize": 17,
|
|
1268
|
+
"justifyContent": "flex-start",
|
|
1278
1269
|
"lineHeight": 20,
|
|
1279
|
-
"
|
|
1270
|
+
"marginBottom": 8,
|
|
1271
|
+
"marginTop": 8,
|
|
1280
1272
|
}
|
|
1281
1273
|
}
|
|
1282
1274
|
>
|
|
1283
|
-
|
|
1275
|
+
<Text
|
|
1276
|
+
style={
|
|
1277
|
+
{
|
|
1278
|
+
"color": "#1a1b25",
|
|
1279
|
+
"fontSize": 17,
|
|
1280
|
+
"lineHeight": 20,
|
|
1281
|
+
"writingDirection": "ltr",
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
>
|
|
1285
|
+
Message4
|
|
1286
|
+
</Text>
|
|
1284
1287
|
</Text>
|
|
1285
|
-
</
|
|
1288
|
+
</View>
|
|
1286
1289
|
</View>
|
|
1287
1290
|
</View>
|
|
1288
1291
|
</View>
|
|
@@ -1560,57 +1563,58 @@ exports[`Thread should match thread snapshot 1`] = `
|
|
|
1560
1563
|
{},
|
|
1561
1564
|
]
|
|
1562
1565
|
}
|
|
1563
|
-
/>
|
|
1564
|
-
<View
|
|
1565
|
-
style={
|
|
1566
|
-
[
|
|
1567
|
-
{
|
|
1568
|
-
"maxWidth": 256,
|
|
1569
|
-
"paddingHorizontal": 12,
|
|
1570
|
-
},
|
|
1571
|
-
{},
|
|
1572
|
-
undefined,
|
|
1573
|
-
]
|
|
1574
|
-
}
|
|
1575
|
-
testID="message-text-container"
|
|
1576
1566
|
>
|
|
1577
1567
|
<View
|
|
1578
1568
|
style={
|
|
1579
1569
|
[
|
|
1580
1570
|
{
|
|
1581
|
-
"
|
|
1571
|
+
"maxWidth": 256,
|
|
1572
|
+
"paddingHorizontal": 4,
|
|
1582
1573
|
},
|
|
1574
|
+
{},
|
|
1583
1575
|
undefined,
|
|
1584
1576
|
]
|
|
1585
1577
|
}
|
|
1578
|
+
testID="message-text-container"
|
|
1586
1579
|
>
|
|
1587
|
-
<
|
|
1580
|
+
<View
|
|
1588
1581
|
style={
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
"lineHeight": 20,
|
|
1596
|
-
"marginBottom": 8,
|
|
1597
|
-
"marginTop": 8,
|
|
1598
|
-
}
|
|
1582
|
+
[
|
|
1583
|
+
{
|
|
1584
|
+
"alignSelf": "stretch",
|
|
1585
|
+
},
|
|
1586
|
+
undefined,
|
|
1587
|
+
]
|
|
1599
1588
|
}
|
|
1600
1589
|
>
|
|
1601
1590
|
<Text
|
|
1602
1591
|
style={
|
|
1603
1592
|
{
|
|
1604
|
-
"
|
|
1593
|
+
"alignItems": "flex-start",
|
|
1594
|
+
"flexDirection": "row",
|
|
1595
|
+
"flexWrap": "wrap",
|
|
1605
1596
|
"fontSize": 17,
|
|
1597
|
+
"justifyContent": "flex-start",
|
|
1606
1598
|
"lineHeight": 20,
|
|
1607
|
-
"
|
|
1599
|
+
"marginBottom": 8,
|
|
1600
|
+
"marginTop": 8,
|
|
1608
1601
|
}
|
|
1609
1602
|
}
|
|
1610
1603
|
>
|
|
1611
|
-
|
|
1604
|
+
<Text
|
|
1605
|
+
style={
|
|
1606
|
+
{
|
|
1607
|
+
"color": "#1a1b25",
|
|
1608
|
+
"fontSize": 17,
|
|
1609
|
+
"lineHeight": 20,
|
|
1610
|
+
"writingDirection": "ltr",
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
>
|
|
1614
|
+
Message3
|
|
1615
|
+
</Text>
|
|
1612
1616
|
</Text>
|
|
1613
|
-
</
|
|
1617
|
+
</View>
|
|
1614
1618
|
</View>
|
|
1615
1619
|
</View>
|
|
1616
1620
|
</View>
|
package/src/components/index.ts
CHANGED
|
@@ -130,6 +130,7 @@ export * from './MessageInput/MessageInputFooterView';
|
|
|
130
130
|
export * from './MessageInput/MessageInputHeaderView';
|
|
131
131
|
export * from './MessageInput/MessageInputLeadingView';
|
|
132
132
|
export * from './MessageInput/MessageInputTrailingView';
|
|
133
|
+
export * from './MessageInput/components/OutputButtons';
|
|
133
134
|
export * from './MessageInput/components/OutputButtons/SendButton';
|
|
134
135
|
export * from './MessageInput/SendMessageDisallowedIndicator';
|
|
135
136
|
export * from './MessageInput/ShowThreadMessageInChannelButton';
|
package/src/version.json
CHANGED