@linktr.ee/messaging-react 1.33.0 → 1.33.1-rc-1777335817

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linktr.ee/messaging-react",
3
- "version": "1.33.0",
3
+ "version": "1.33.1-rc-1777335817",
4
4
  "description": "React messaging components built on messaging-core for web applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/styles.css CHANGED
@@ -113,6 +113,21 @@
113
113
  inset-inline: auto;
114
114
  }
115
115
 
116
+ /* Channel list load-more button overrides */
117
+ .str-chat__channel-list .str-chat__load-more-button__button {
118
+ background-color: #121110;
119
+ color: #fff;
120
+ border-radius: 0.75rem;
121
+ padding-inline: 1rem;
122
+ font-size: 0.875rem;
123
+ height: 40px;
124
+ }
125
+
126
+ .str-chat__channel-list .str-chat__load-more-button__button:disabled {
127
+ background-color: #121110;
128
+ color: #fff;
129
+ }
130
+
116
131
  /* Custom message tag styles */
117
132
  .message-tag {
118
133
  display: inline-flex;
@@ -53,14 +53,14 @@ describe('formatRelativeTime', () => {
53
53
  const date = new Date('2024-01-15T09:30:00Z')
54
54
  const result = formatRelativeTime(date)
55
55
  // Should be "9:30 AM" format
56
- expect(result).toMatch(/^\d{1,2}:\d{2} (AM|PM)$/)
56
+ expect(result).toMatch(/^\d{1,2}:\d{2} (AM|PM)$/i)
57
57
  })
58
58
 
59
59
  it('should return time in 12-hour format for messages from late last night (same day)', () => {
60
60
  mockDate('2024-01-15T23:59:00Z')
61
61
  const date = new Date('2024-01-15T00:01:00Z')
62
62
  const result = formatRelativeTime(date)
63
- expect(result).toMatch(/^\d{1,2}:\d{2} (AM|PM)$/)
63
+ expect(result).toMatch(/^\d{1,2}:\d{2} (AM|PM)$/i)
64
64
  })
65
65
  })
66
66