@tanstack/react-query-devtools 4.2.1 → 4.2.2

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.
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
2669
2669
  </script>
2670
2670
  <script>
2671
2671
  /*<!--*/
2672
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages/react-query-devtools/src/noop.ts","uid":"0a90-199"}]}],"isRoot":true},"nodeParts":{"0a90-199":{"renderedLength":114,"gzipLength":82,"brotliLength":0,"mainUid":"0a90-198"}},"nodeMetas":{"0a90-198":{"id":"/packages/react-query-devtools/src/noop.ts","moduleParts":{"index.production.js":"0a90-199"},"imported":[],"importedBy":[],"isEntry":true}},"env":{"rollup":"2.76.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
2672
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages/react-query-devtools/src/noop.ts","uid":"b78a-201"}]}],"isRoot":true},"nodeParts":{"b78a-201":{"renderedLength":114,"gzipLength":82,"brotliLength":0,"mainUid":"b78a-200"}},"nodeMetas":{"b78a-200":{"id":"/packages/react-query-devtools/src/noop.ts","moduleParts":{"index.production.js":"b78a-201"},"imported":[],"importedBy":[],"isEntry":true}},"env":{"rollup":"2.76.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
2673
2673
 
2674
2674
  const run = () => {
2675
2675
  const width = window.innerWidth;
package/build/stats.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "children": [
9
9
  {
10
10
  "name": "packages/react-query-devtools/src/noop.ts",
11
- "uid": "0a90-201"
11
+ "uid": "b78a-203"
12
12
  }
13
13
  ]
14
14
  }
@@ -16,18 +16,18 @@
16
16
  "isRoot": true
17
17
  },
18
18
  "nodeParts": {
19
- "0a90-201": {
19
+ "b78a-203": {
20
20
  "renderedLength": 114,
21
21
  "gzipLength": 82,
22
22
  "brotliLength": 0,
23
- "mainUid": "0a90-200"
23
+ "mainUid": "b78a-202"
24
24
  }
25
25
  },
26
26
  "nodeMetas": {
27
- "0a90-200": {
27
+ "b78a-202": {
28
28
  "id": "/packages/react-query-devtools/src/noop.ts",
29
29
  "moduleParts": {
30
- "index.production.js": "0a90-201"
30
+ "index.production.js": "b78a-203"
31
31
  },
32
32
  "imported": [],
33
33
  "importedBy": [],
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export default function ScreenReader({ text }: {
3
+ text: string;
4
+ }): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-query-devtools",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "TODO",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -40,6 +40,6 @@
40
40
  "peerDependencies": {
41
41
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
42
42
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
43
- "@tanstack/react-query": "^4.0.0"
43
+ "@tanstack/react-query": "4.2.2"
44
44
  }
45
45
  }
package/src/devtools.tsx CHANGED
@@ -12,6 +12,7 @@ import {
12
12
  import { rankItem, compareItems } from '@tanstack/match-sorter-utils'
13
13
  import useLocalStorage from './useLocalStorage'
14
14
  import { sortFns, useIsMounted } from './utils'
15
+ import ScreenReader from './screenreader'
15
16
 
16
17
  import {
17
18
  Panel,
@@ -368,6 +369,7 @@ export function ReactQueryDevtools({
368
369
  }}
369
370
  >
370
371
  <Logo aria-hidden />
372
+ <ScreenReader text="Open React Query Devtools" />
371
373
  </button>
372
374
  ) : null}
373
375
  </Container>
@@ -538,6 +540,7 @@ export const ReactQueryDevtoolsPanel = React.forwardRef<
538
540
  }}
539
541
  >
540
542
  <Logo aria-hidden />
543
+ <ScreenReader text="Close React Query Devtools" />
541
544
  </button>
542
545
  <div
543
546
  style={{
@@ -0,0 +1,16 @@
1
+ import * as React from 'react'
2
+
3
+ export default function ScreenReader({ text }: { text: string }) {
4
+ return (
5
+ <span
6
+ style={{
7
+ position: 'absolute',
8
+ width: '0.1px',
9
+ height: '0.1px',
10
+ overflow: 'hidden',
11
+ }}
12
+ >
13
+ {text}
14
+ </span>
15
+ )
16
+ }