stream-chat-react-native-core 5.13.0-beta.2 → 5.13.0-beta.4

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 (79) hide show
  1. package/lib/commonjs/components/MessageInput/AttachButton.js +4 -10
  2. package/lib/commonjs/components/MessageInput/AttachButton.js.map +1 -1
  3. package/lib/commonjs/components/MessageInput/CommandsButton.js +4 -10
  4. package/lib/commonjs/components/MessageInput/CommandsButton.js.map +1 -1
  5. package/lib/commonjs/components/MessageInput/SendButton.js +7 -7
  6. package/lib/commonjs/components/MessageInput/SendButton.js.map +1 -1
  7. package/lib/commonjs/mock-builders/api/sendReaction.js.map +1 -1
  8. package/lib/commonjs/version.json +1 -1
  9. package/lib/module/components/MessageInput/AttachButton.js +4 -10
  10. package/lib/module/components/MessageInput/AttachButton.js.map +1 -1
  11. package/lib/module/components/MessageInput/CommandsButton.js +4 -10
  12. package/lib/module/components/MessageInput/CommandsButton.js.map +1 -1
  13. package/lib/module/components/MessageInput/SendButton.js +7 -7
  14. package/lib/module/components/MessageInput/SendButton.js.map +1 -1
  15. package/lib/module/mock-builders/api/sendReaction.js.map +1 -1
  16. package/lib/module/version.json +1 -1
  17. package/package.json +1 -1
  18. package/src/__tests__/offline-support/index.test.ts +13 -0
  19. package/src/__tests__/offline-support/offline-feature.js +686 -0
  20. package/src/__tests__/offline-support/optimistic-update.js +374 -0
  21. package/src/components/MessageInput/AttachButton.tsx +3 -4
  22. package/src/components/MessageInput/CommandsButton.tsx +3 -4
  23. package/src/components/MessageInput/SendButton.tsx +4 -3
  24. package/src/components/MessageInput/__tests__/__snapshots__/AttachButton.test.js.snap +120 -152
  25. package/src/components/MessageInput/__tests__/__snapshots__/SendButton.test.js.snap +248 -248
  26. package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +182 -214
  27. package/src/version.json +1 -1
  28. package/lib/typescript/components/Attachment/__tests__/openUrlSafely.test.d.ts +0 -1
  29. package/lib/typescript/components/ChannelList/hooks/listeners/__tests__/useChannelUpdated.test.d.ts +0 -1
  30. package/lib/typescript/components/ChannelPreview/__tests__/ChannelPreview.test.d.ts +0 -1
  31. package/lib/typescript/components/ChannelPreview/hooks/__tests__/useChannelPreviewDisplayName.test.d.ts +0 -1
  32. package/lib/typescript/components/ChannelPreview/hooks/__tests__/useLatestMessagePreview.test.d.ts +0 -1
  33. package/lib/typescript/components/Chat/hooks/__tests__/useAppSettings.test.d.ts +0 -1
  34. package/lib/typescript/components/ImageGallery/__tests__/AnimatedVideoGallery.test.d.ts +0 -1
  35. package/lib/typescript/components/ImageGallery/__tests__/ImageGallery.test.d.ts +0 -1
  36. package/lib/typescript/components/ImageGallery/__tests__/ImageGalleryFooter.test.d.ts +0 -1
  37. package/lib/typescript/components/ImageGallery/__tests__/ImageGalleryGrid.test.d.ts +0 -1
  38. package/lib/typescript/components/ImageGallery/__tests__/ImageGalleryGridHandle.test.d.ts +0 -1
  39. package/lib/typescript/components/ImageGallery/__tests__/ImageGalleryHeader.test.d.ts +0 -1
  40. package/lib/typescript/components/ImageGallery/__tests__/ImageGalleryOverlay.test.d.ts +0 -1
  41. package/lib/typescript/components/ImageGallery/__tests__/ImageGalleryVideoControl.test.d.ts +0 -1
  42. package/lib/typescript/components/ImageGallery/components/__tests__/ImageGalleryHeader.test.d.ts +0 -1
  43. package/lib/typescript/components/Message/MessageSimple/__tests__/MessageTextContainer.test.d.ts +0 -1
  44. package/lib/typescript/components/MessageInput/__tests__/AudioAttachmentUploadPreviewExpo.test.d.ts +0 -1
  45. package/lib/typescript/components/MessageInput/__tests__/AudioAttachmentUploadPreviewNative.test.d.ts +0 -1
  46. package/lib/typescript/components/MessageList/__tests__/useMessageList.test.d.ts +0 -1
  47. package/lib/typescript/components/MessageList/utils/__tests__/getDateSeparators.test.d.ts +0 -1
  48. package/lib/typescript/components/Reply/__tests__/Reply.test.d.ts +0 -1
  49. package/lib/typescript/contexts/__tests__/index.test.d.ts +0 -1
  50. package/lib/typescript/contexts/messageInputContext/__tests__/MessageInputContext.test.d.ts +0 -1
  51. package/lib/typescript/contexts/messageInputContext/__tests__/isValidMessage.test.d.ts +0 -1
  52. package/lib/typescript/contexts/messageInputContext/__tests__/pickFile.test.d.ts +0 -1
  53. package/lib/typescript/contexts/messageInputContext/__tests__/removeFile.test.d.ts +0 -1
  54. package/lib/typescript/contexts/messageInputContext/__tests__/removeImage.test.d.ts +0 -1
  55. package/lib/typescript/contexts/messageInputContext/__tests__/sendMessage.test.d.ts +0 -1
  56. package/lib/typescript/contexts/messageInputContext/__tests__/sendMessageAsync.test.d.ts +0 -1
  57. package/lib/typescript/contexts/messageInputContext/__tests__/updateMessage.test.d.ts +0 -1
  58. package/lib/typescript/contexts/messageInputContext/__tests__/uploadFile.test.d.ts +0 -1
  59. package/lib/typescript/contexts/messageInputContext/__tests__/uploadImage.test.d.ts +0 -1
  60. package/lib/typescript/contexts/messageInputContext/__tests__/useMessageDetailsForState.test.d.ts +0 -1
  61. package/lib/typescript/hooks/__tests__/useAppStateListener.test.d.ts +0 -1
  62. package/lib/typescript/hooks/__tests__/useTranslatedMessage.test.d.ts +0 -1
  63. package/lib/typescript/mock-builders/api/channelMocks.d.ts +0 -14
  64. package/lib/typescript/mock-builders/api/getOrCreateChannel.d.ts +0 -19
  65. package/lib/typescript/mock-builders/api/queryMembers.d.ts +0 -161
  66. package/lib/typescript/mock-builders/api/useMockedApis.d.ts +0 -1
  67. package/lib/typescript/mock-builders/api/utils.d.ts +0 -7
  68. package/lib/typescript/mock-builders/event/messageNew.d.ts +0 -2
  69. package/lib/typescript/mock-builders/event/messageRead.d.ts +0 -8
  70. package/lib/typescript/mock-builders/generator/attachment.d.ts +0 -10
  71. package/lib/typescript/mock-builders/generator/channel.d.ts +0 -120
  72. package/lib/typescript/mock-builders/generator/message.d.ts +0 -38
  73. package/lib/typescript/mock-builders/generator/user.d.ts +0 -30
  74. package/lib/typescript/mock-builders/mock.d.ts +0 -3
  75. package/lib/typescript/store/sqlite-utils/__tests__/createSelectQuery.test.d.ts +0 -1
  76. package/lib/typescript/utils/__tests__/patchMessageTextCommand.test.d.ts +0 -1
  77. package/src/__tests__/offline-feature.test.js +0 -675
  78. package/src/__tests__/optimistic-update.test.js +0 -369
  79. /package/src/mock-builders/api/{sendReaction.tsx → sendReaction.ts} +0 -0
@@ -1416,178 +1416,146 @@ exports[`Thread should match thread snapshot 1`] = `
1416
1416
  ]
1417
1417
  }
1418
1418
  >
1419
- <RNGestureHandlerButton
1420
- collapsable={false}
1421
- delayLongPress={600}
1422
- enabled={true}
1423
- exclusive={true}
1424
- handlerTag={4}
1425
- handlerType="NativeViewGestureHandler"
1426
- hitSlop={
1419
+ <View
1420
+ accessibilityState={
1427
1421
  Object {
1428
- "bottom": 15,
1429
- "left": 15,
1430
- "right": 5,
1431
- "top": 15,
1422
+ "disabled": false,
1432
1423
  }
1433
1424
  }
1434
- onGestureEvent={[Function]}
1435
- onGestureHandlerEvent={[Function]}
1436
- onGestureHandlerStateChange={[Function]}
1437
- onHandlerStateChange={[Function]}
1438
- rippleColor={0}
1425
+ accessible={true}
1426
+ collapsable={false}
1427
+ focusable={true}
1428
+ onBlur={[Function]}
1429
+ onClick={[Function]}
1430
+ onFocus={[Function]}
1431
+ onResponderGrant={[Function]}
1432
+ onResponderMove={[Function]}
1433
+ onResponderRelease={[Function]}
1434
+ onResponderTerminate={[Function]}
1435
+ onResponderTerminationRequest={[Function]}
1436
+ onStartShouldSetResponder={[Function]}
1437
+ style={
1438
+ Array [
1439
+ Object {},
1440
+ ]
1441
+ }
1439
1442
  testID="attach-button"
1440
- touchSoundDisabled={false}
1441
1443
  >
1442
- <View
1443
- accessible={true}
1444
- collapsable={false}
1445
- hitSlop={
1446
- Object {
1447
- "bottom": 15,
1448
- "left": 15,
1449
- "right": 5,
1450
- "top": 15,
1451
- }
1452
- }
1444
+ <RNSVGSvgView
1445
+ align="xMidYMid"
1446
+ bbHeight={24}
1447
+ bbWidth={24}
1448
+ focusable={false}
1449
+ height={24}
1450
+ meetOrSlice={0}
1451
+ minX={0}
1452
+ minY={0}
1453
+ pathFill="#7A7A7A"
1453
1454
  style={
1454
- Object {
1455
- "opacity": 1,
1456
- }
1455
+ Array [
1456
+ Object {
1457
+ "backgroundColor": "transparent",
1458
+ "borderWidth": 0,
1459
+ },
1460
+ Object {
1461
+ "flex": 0,
1462
+ "height": 24,
1463
+ "width": 24,
1464
+ },
1465
+ ]
1457
1466
  }
1467
+ vbHeight={24}
1468
+ vbWidth={24}
1469
+ width={24}
1458
1470
  >
1459
- <RNSVGSvgView
1460
- align="xMidYMid"
1461
- bbHeight={24}
1462
- bbWidth={24}
1463
- focusable={false}
1464
- height={24}
1465
- meetOrSlice={0}
1466
- minX={0}
1467
- minY={0}
1468
- pathFill="#7A7A7A"
1469
- style={
1470
- Array [
1471
- Object {
1472
- "backgroundColor": "transparent",
1473
- "borderWidth": 0,
1474
- },
1475
- Object {
1476
- "flex": 0,
1477
- "height": 24,
1478
- "width": 24,
1479
- },
1480
- ]
1481
- }
1482
- vbHeight={24}
1483
- vbWidth={24}
1484
- width={24}
1485
- >
1486
- <RNSVGGroup>
1487
- <RNSVGPath
1488
- clipRule={0}
1489
- d="M13.468 2.888a5.07 5.07 0 012.983.635 5.07 5.07 0 012.041 2.265c.45 1.01.546 2.254-.144 3.449l-4.5 7.794a3.232 3.232 0 01-1.427 1.294c-.757.342-1.696.367-2.671-.196-.975-.563-1.422-1.389-1.506-2.215a3.233 3.233 0 01.408-1.883l4-6.928a1 1 0 011.732 1l-4 6.928c-.087.15-.176.425-.15.682.02.196.105.447.516.684.41.237.671.185.85.105.236-.107.43-.32.516-.47l4.5-7.795c.31-.538.29-1.093.049-1.636a3.072 3.072 0 00-1.214-1.346 3.072 3.072 0 00-1.773-.378c-.591.062-1.082.322-1.392.86l-5 8.66c-.654 1.133-.286 3.3 1.964 4.598 2.25 1.3 4.31.535 4.964-.598l3.5-6.062a1 1 0 111.732 1l-3.5 6.062c-1.345 2.33-4.75 3.031-7.696 1.33-2.946-1.7-4.042-5-2.696-7.33l5-8.66c.69-1.195 1.815-1.733 2.914-1.85z"
1490
- fill={4286216826}
1491
- fillRule={0}
1492
- propList={
1493
- Array [
1494
- "fill",
1495
- "fillRule",
1496
- ]
1497
- }
1498
- />
1499
- </RNSVGGroup>
1500
- </RNSVGSvgView>
1501
- </View>
1502
- </RNGestureHandlerButton>
1471
+ <RNSVGGroup>
1472
+ <RNSVGPath
1473
+ clipRule={0}
1474
+ d="M13.468 2.888a5.07 5.07 0 012.983.635 5.07 5.07 0 012.041 2.265c.45 1.01.546 2.254-.144 3.449l-4.5 7.794a3.232 3.232 0 01-1.427 1.294c-.757.342-1.696.367-2.671-.196-.975-.563-1.422-1.389-1.506-2.215a3.233 3.233 0 01.408-1.883l4-6.928a1 1 0 011.732 1l-4 6.928c-.087.15-.176.425-.15.682.02.196.105.447.516.684.41.237.671.185.85.105.236-.107.43-.32.516-.47l4.5-7.795c.31-.538.29-1.093.049-1.636a3.072 3.072 0 00-1.214-1.346 3.072 3.072 0 00-1.773-.378c-.591.062-1.082.322-1.392.86l-5 8.66c-.654 1.133-.286 3.3 1.964 4.598 2.25 1.3 4.31.535 4.964-.598l3.5-6.062a1 1 0 111.732 1l-3.5 6.062c-1.345 2.33-4.75 3.031-7.696 1.33-2.946-1.7-4.042-5-2.696-7.33l5-8.66c.69-1.195 1.815-1.733 2.914-1.85z"
1475
+ fill={4286216826}
1476
+ fillRule={0}
1477
+ propList={
1478
+ Array [
1479
+ "fill",
1480
+ "fillRule",
1481
+ ]
1482
+ }
1483
+ />
1484
+ </RNSVGGroup>
1485
+ </RNSVGSvgView>
1486
+ </View>
1503
1487
  </View>
1504
1488
  <View
1505
1489
  style={Object {}}
1506
1490
  >
1507
- <RNGestureHandlerButton
1508
- collapsable={false}
1509
- delayLongPress={600}
1510
- enabled={true}
1511
- exclusive={true}
1512
- handlerTag={5}
1513
- handlerType="NativeViewGestureHandler"
1514
- hitSlop={
1491
+ <View
1492
+ accessibilityState={
1515
1493
  Object {
1516
- "bottom": 15,
1517
- "left": 5,
1518
- "right": 15,
1519
- "top": 15,
1494
+ "disabled": false,
1520
1495
  }
1521
1496
  }
1522
- onGestureEvent={[Function]}
1523
- onGestureHandlerEvent={[Function]}
1524
- onGestureHandlerStateChange={[Function]}
1525
- onHandlerStateChange={[Function]}
1526
- rippleColor={0}
1497
+ accessible={true}
1498
+ collapsable={false}
1499
+ focusable={true}
1500
+ onBlur={[Function]}
1501
+ onClick={[Function]}
1502
+ onFocus={[Function]}
1503
+ onResponderGrant={[Function]}
1504
+ onResponderMove={[Function]}
1505
+ onResponderRelease={[Function]}
1506
+ onResponderTerminate={[Function]}
1507
+ onResponderTerminationRequest={[Function]}
1508
+ onStartShouldSetResponder={[Function]}
1509
+ style={
1510
+ Array [
1511
+ Object {},
1512
+ ]
1513
+ }
1527
1514
  testID="commands-button"
1528
- touchSoundDisabled={false}
1529
1515
  >
1530
- <View
1531
- accessible={true}
1532
- collapsable={false}
1533
- hitSlop={
1534
- Object {
1535
- "bottom": 15,
1536
- "left": 5,
1537
- "right": 15,
1538
- "top": 15,
1539
- }
1540
- }
1516
+ <RNSVGSvgView
1517
+ align="xMidYMid"
1518
+ bbHeight={24}
1519
+ bbWidth={24}
1520
+ focusable={false}
1521
+ height={24}
1522
+ meetOrSlice={0}
1523
+ minX={0}
1524
+ minY={0}
1525
+ pathFill="#7A7A7A"
1541
1526
  style={
1542
- Object {
1543
- "opacity": 1,
1544
- }
1527
+ Array [
1528
+ Object {
1529
+ "backgroundColor": "transparent",
1530
+ "borderWidth": 0,
1531
+ },
1532
+ Object {
1533
+ "flex": 0,
1534
+ "height": 24,
1535
+ "width": 24,
1536
+ },
1537
+ ]
1545
1538
  }
1539
+ vbHeight={24}
1540
+ vbWidth={24}
1541
+ width={24}
1546
1542
  >
1547
- <RNSVGSvgView
1548
- align="xMidYMid"
1549
- bbHeight={24}
1550
- bbWidth={24}
1551
- focusable={false}
1552
- height={24}
1553
- meetOrSlice={0}
1554
- minX={0}
1555
- minY={0}
1556
- pathFill="#7A7A7A"
1557
- style={
1558
- Array [
1559
- Object {
1560
- "backgroundColor": "transparent",
1561
- "borderWidth": 0,
1562
- },
1563
- Object {
1564
- "flex": 0,
1565
- "height": 24,
1566
- "width": 24,
1567
- },
1568
- ]
1569
- }
1570
- vbHeight={24}
1571
- vbWidth={24}
1572
- width={24}
1573
- >
1574
- <RNSVGGroup>
1575
- <RNSVGPath
1576
- clipRule={0}
1577
- d="M11.636 4H16l-2.91 5.818H16L10.546 20l1.09-7.273H8L11.636 4z"
1578
- fill={4286216826}
1579
- fillRule={0}
1580
- propList={
1581
- Array [
1582
- "fill",
1583
- "fillRule",
1584
- ]
1585
- }
1586
- />
1587
- </RNSVGGroup>
1588
- </RNSVGSvgView>
1589
- </View>
1590
- </RNGestureHandlerButton>
1543
+ <RNSVGGroup>
1544
+ <RNSVGPath
1545
+ clipRule={0}
1546
+ d="M11.636 4H16l-2.91 5.818H16L10.546 20l1.09-7.273H8L11.636 4z"
1547
+ fill={4286216826}
1548
+ fillRule={0}
1549
+ propList={
1550
+ Array [
1551
+ "fill",
1552
+ "fillRule",
1553
+ ]
1554
+ }
1555
+ />
1556
+ </RNSVGGroup>
1557
+ </RNSVGSvgView>
1558
+ </View>
1591
1559
  </View>
1592
1560
  </View>
1593
1561
  <View
@@ -1664,74 +1632,74 @@ exports[`Thread should match thread snapshot 1`] = `
1664
1632
  ]
1665
1633
  }
1666
1634
  >
1667
- <RNGestureHandlerButton
1635
+ <View
1636
+ accessibilityState={
1637
+ Object {
1638
+ "disabled": true,
1639
+ }
1640
+ }
1641
+ accessible={true}
1668
1642
  collapsable={false}
1669
- delayLongPress={600}
1670
- enabled={false}
1671
- exclusive={true}
1672
- handlerTag={6}
1673
- handlerType="NativeViewGestureHandler"
1674
- onGestureEvent={[Function]}
1675
- onGestureHandlerEvent={[Function]}
1676
- onGestureHandlerStateChange={[Function]}
1677
- onHandlerStateChange={[Function]}
1678
- rippleColor={0}
1643
+ focusable={true}
1644
+ onBlur={[Function]}
1645
+ onClick={[Function]}
1646
+ onFocus={[Function]}
1647
+ onResponderGrant={[Function]}
1648
+ onResponderMove={[Function]}
1649
+ onResponderRelease={[Function]}
1650
+ onResponderTerminate={[Function]}
1651
+ onResponderTerminationRequest={[Function]}
1652
+ onStartShouldSetResponder={[Function]}
1653
+ style={
1654
+ Array [
1655
+ Object {},
1656
+ ]
1657
+ }
1679
1658
  testID="send-button"
1680
- touchSoundDisabled={false}
1681
1659
  >
1682
- <View
1683
- accessible={true}
1684
- collapsable={false}
1660
+ <RNSVGSvgView
1661
+ align="xMidYMid"
1662
+ bbHeight={24}
1663
+ bbWidth={24}
1664
+ focusable={false}
1665
+ height={24}
1666
+ meetOrSlice={0}
1667
+ minX={0}
1668
+ minY={0}
1669
+ pathFill="#DBDBDB"
1685
1670
  style={
1686
- Object {
1687
- "opacity": 1,
1688
- }
1671
+ Array [
1672
+ Object {
1673
+ "backgroundColor": "transparent",
1674
+ "borderWidth": 0,
1675
+ },
1676
+ Object {
1677
+ "flex": 0,
1678
+ "height": 24,
1679
+ "width": 24,
1680
+ },
1681
+ ]
1689
1682
  }
1683
+ vbHeight={24}
1684
+ vbWidth={24}
1685
+ width={24}
1690
1686
  >
1691
- <RNSVGSvgView
1692
- align="xMidYMid"
1693
- bbHeight={24}
1694
- bbWidth={24}
1695
- focusable={false}
1696
- height={24}
1697
- meetOrSlice={0}
1698
- minX={0}
1699
- minY={0}
1700
- pathFill="#DBDBDB"
1701
- style={
1702
- Array [
1703
- Object {
1704
- "backgroundColor": "transparent",
1705
- "borderWidth": 0,
1706
- },
1707
- Object {
1708
- "flex": 0,
1709
- "height": 24,
1710
- "width": 24,
1711
- },
1712
- ]
1713
- }
1714
- vbHeight={24}
1715
- vbWidth={24}
1716
- width={24}
1717
- >
1718
- <RNSVGGroup>
1719
- <RNSVGPath
1720
- clipRule={0}
1721
- d="M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12s4.48 10 10 10 10-4.48 10-10zM8 11h4V8l4 4-4 4v-3H8v-2z"
1722
- fill={4292598747}
1723
- fillRule={0}
1724
- propList={
1725
- Array [
1726
- "fill",
1727
- "fillRule",
1728
- ]
1729
- }
1730
- />
1731
- </RNSVGGroup>
1732
- </RNSVGSvgView>
1733
- </View>
1734
- </RNGestureHandlerButton>
1687
+ <RNSVGGroup>
1688
+ <RNSVGPath
1689
+ clipRule={0}
1690
+ d="M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12s4.48 10 10 10 10-4.48 10-10zM8 11h4V8l4 4-4 4v-3H8v-2z"
1691
+ fill={4292598747}
1692
+ fillRule={0}
1693
+ propList={
1694
+ Array [
1695
+ "fill",
1696
+ "fillRule",
1697
+ ]
1698
+ }
1699
+ />
1700
+ </RNSVGGroup>
1701
+ </RNSVGSvgView>
1702
+ </View>
1735
1703
  </View>
1736
1704
  </View>
1737
1705
  <View
package/src/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "5.13.0-beta.2"
2
+ "version": "5.13.0-beta.4"
3
3
  }
@@ -1 +0,0 @@
1
- import '@testing-library/jest-native/extend-expect';
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- import type { Channel, FormatMessageResponse, MessageResponse } from 'stream-chat';
2
- import type { DefaultStreamChatGenerics } from '../../types/types';
3
- declare const CHANNEL: Channel<DefaultStreamChatGenerics>;
4
- declare const CHANNEL_WITH_MESSAGES_TEXT: Channel<DefaultStreamChatGenerics>;
5
- declare const CHANNEL_WITH_DELETED_MESSAGES: Channel<DefaultStreamChatGenerics>;
6
- declare const CHANNEL_WITH_NO_MESSAGES: Channel<DefaultStreamChatGenerics>;
7
- declare const CHANNEL_WITH_MESSAGE_COMMAND: Channel<DefaultStreamChatGenerics>;
8
- declare const CHANNEL_WITH_MESSAGES_ATTACHMENTS: Channel<DefaultStreamChatGenerics>;
9
- declare const LATEST_MESSAGE: MessageResponse<DefaultStreamChatGenerics>;
10
- declare const FORMATTED_MESSAGE: FormatMessageResponse<DefaultStreamChatGenerics>;
11
- declare const CHANNEL_WITH_MENTIONED_USERS: Channel<DefaultStreamChatGenerics>;
12
- declare const CHANNEL_WITH_EMPTY_MESSAGE: Channel<DefaultStreamChatGenerics>;
13
- declare const CHANNEL_WITH_MESSAGES: Channel<DefaultStreamChatGenerics>;
14
- export { CHANNEL, CHANNEL_WITH_EMPTY_MESSAGE, CHANNEL_WITH_MESSAGES, CHANNEL_WITH_MENTIONED_USERS, FORMATTED_MESSAGE, LATEST_MESSAGE, CHANNEL_WITH_MESSAGES_ATTACHMENTS, CHANNEL_WITH_MESSAGE_COMMAND as CHANNEL_WITH_MESSAGES_COMMAND, CHANNEL_WITH_NO_MESSAGES, CHANNEL_WITH_DELETED_MESSAGES, CHANNEL_WITH_MESSAGES_TEXT, };
@@ -1,19 +0,0 @@
1
- export declare type GetOrCreateChannelApiParams = {
2
- channel?: Record<string, any>;
3
- members?: Record<string, any>[];
4
- messages?: Record<string, any>[];
5
- };
6
- /**
7
- * Returns the api response for queryChannel api.
8
- *
9
- * api - /channels/{type}/{id}/query
10
- *
11
- * @param {*} channel
12
- */
13
- export declare const getOrCreateChannelApi: (channel?: GetOrCreateChannelApiParams) => {
14
- response: {
15
- data: any;
16
- status: number;
17
- };
18
- type: string;
19
- };