@linktr.ee/messaging-react 4.4.6-rc-1788244692 → 4.4.6-rc-1788244816

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.6-rc-1788244692",
3
+ "version": "4.4.6-rc-1788244816",
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-1788244692",
54
- "@linktr.ee/messaging-taxonomy": "0.11.0-rc-1788244692",
53
+ "@linktr.ee/messaging-core": "2.6.0-rc-1788244816",
54
+ "@linktr.ee/messaging-taxonomy": "0.11.0-rc-1788244816",
55
55
  "@phosphor-icons/react": "^2.1.10"
56
56
  },
57
57
  "devDependencies": {
@@ -1111,8 +1111,7 @@ describe('ViewerShell focus management', () => {
1111
1111
  // toolbar — keyboard users should land on it on open so Escape
1112
1112
  // / Tab work without an extra click.
1113
1113
  const close = screen.getByLabelText('Close viewer')
1114
- // eslint-disable-next-line testing-library/no-node-access -- focus-management internals are the deliberate DOM contract.
1115
- expect(document.activeElement).toBe(close)
1114
+ expect(close).toHaveFocus()
1116
1115
  })
1117
1116
 
1118
1117
  it('restores focus to the opener when the viewer closes', async () => {
@@ -1125,8 +1124,7 @@ describe('ViewerShell focus management', () => {
1125
1124
  )
1126
1125
  const opener = screen.getByLabelText('Open doc.pdf')
1127
1126
  opener.focus()
1128
- // eslint-disable-next-line testing-library/no-node-access -- focus-management internals are the deliberate DOM contract.
1129
- expect(document.activeElement).toBe(opener)
1127
+ expect(opener).toHaveFocus()
1130
1128
 
1131
1129
  await user.click(opener)
1132
1130
  expectViewerOpen('pdf-viewer')
@@ -1137,8 +1135,7 @@ describe('ViewerShell focus management', () => {
1137
1135
  // before the viewer mounted (the row's Open button), and the
1138
1136
  // dialog should no longer carry the `[open]` attribute.
1139
1137
  expectViewerClosed('pdf-viewer')
1140
- // eslint-disable-next-line testing-library/no-node-access -- focus-management internals are the deliberate DOM contract.
1141
- expect(document.activeElement).toBe(opener)
1138
+ expect(opener).toHaveFocus()
1142
1139
  })
1143
1140
  })
1144
1141
 
@@ -207,8 +207,7 @@ describe('ViewerShell', () => {
207
207
  </ViewerShell>
208
208
  )
209
209
  ).not.toThrow()
210
- // eslint-disable-next-line testing-library/no-node-access -- focus-management internals are the deliberate DOM contract.
211
- expect(document.activeElement).not.toBe(previouslyFocused)
210
+ expect(previouslyFocused).not.toHaveFocus()
212
211
  })
213
212
 
214
213
  it('uses the default accessible label', () => {