@linktr.ee/messaging-react 4.4.7-rc-1788243598 → 4.4.7

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": "4.4.7-rc-1788243598",
3
+ "version": "4.4.7",
4
4
  "description": "React messaging components built on messaging-core for web applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -50,8 +50,8 @@
50
50
  "chromatic:local": "yarn storybook:build && chromatic"
51
51
  },
52
52
  "dependencies": {
53
- "@linktr.ee/messaging-core": "2.6.0-rc-1788243598",
54
- "@linktr.ee/messaging-taxonomy": "0.11.0-rc-1788243598",
53
+ "@linktr.ee/messaging-core": "^2.6.0",
54
+ "@linktr.ee/messaging-taxonomy": "^0.11.0",
55
55
  "@phosphor-icons/react": "^2.1.10"
56
56
  },
57
57
  "devDependencies": {
@@ -335,7 +335,7 @@ describe('CustomMessage', () => {
335
335
  expect(screen.getByText('Locked attachment')).toBeInTheDocument()
336
336
  })
337
337
 
338
- it('renders a link attachment alongside a locked text attachment', () => {
338
+ it('does not render a link attachment alongside a locked text attachment', () => {
339
339
  mockedUseMessageContext.mockReturnValue({
340
340
  message: {
341
341
  id: 'locked-text-message',
@@ -375,7 +375,7 @@ describe('CustomMessage', () => {
375
375
  </OutboundContext.Provider>
376
376
  )
377
377
 
378
- expect(screen.getByText(/reactjs philippines/i)).toBeInTheDocument()
378
+ expect(screen.queryByText(/reactjs philippines/i)).not.toBeInTheDocument()
379
379
  expect(screen.getByText('Locked attachment')).toBeInTheDocument()
380
380
  })
381
381
 
@@ -378,7 +378,6 @@ const CustomMessageWithContext = (props: CustomMessageWithContextProps) => {
378
378
  )}
379
379
  {!isMine && MessageActions && <MessageActions />}
380
380
  </div>
381
- {lockedLinkCards}
382
381
  </div>
383
382
  ) : isMediaAttachmentMessage(message) ? (
384
383
  <div className="str-chat__message-bubble-wrapper message-locked-attachment-wrapper">