@tanstack/query-devtools 5.0.0-alpha.83 → 5.0.0-alpha.86
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/dist/cjs/{Devtools-db0a46c4.cjs → Devtools-5eee2153.cjs} +2298 -2300
- package/dist/cjs/Devtools-5eee2153.cjs.map +1 -0
- package/dist/cjs/{index-ac83639f.cjs → index-94a2ab18.cjs} +2 -2
- package/dist/cjs/{index-ac83639f.cjs.map → index-94a2ab18.cjs.map} +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/{Devtools-5d9adcd8.js → Devtools-74e35f67.js} +2298 -2300
- package/dist/esm/Devtools-74e35f67.js.map +1 -0
- package/dist/esm/{index-339c169d.js → index-7b089165.js} +3 -3
- package/dist/esm/{index-339c169d.js.map → index-7b089165.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/source/Devtools.jsx +7 -9
- package/dist/source/Explorer.jsx +3 -3
- package/dist/types/Context.d.ts +1 -1
- package/dist/types/Devtools.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/Context.ts +1 -1
- package/src/Devtools.tsx +18 -20
- package/src/Explorer.tsx +3 -3
- package/src/index.tsx +3 -3
- package/src/utils.tsx +1 -1
- package/dist/cjs/Devtools-db0a46c4.cjs.map +0 -1
- package/dist/esm/Devtools-5d9adcd8.js.map +0 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { T as TanstackQueryDevtools } from './index-
|
|
1
|
+
export { T as TanstackQueryDevtools } from './index-7b089165.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/source/Devtools.jsx
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { createEffect, createMemo, createSignal, on, onCleanup, onMount,
|
|
1
|
+
import { For, Show, createEffect, createMemo, createSignal, on, onCleanup, onMount, } from 'solid-js';
|
|
2
2
|
import { rankItem } from '@tanstack/match-sorter-utils';
|
|
3
3
|
import { css, cx } from '@emotion/css';
|
|
4
|
+
import { TransitionGroup } from 'solid-transition-group';
|
|
5
|
+
import { Key } from '@solid-primitives/keyed';
|
|
6
|
+
import { createLocalStorage } from '@solid-primitives/storage';
|
|
7
|
+
import { createResizeObserver } from '@solid-primitives/resize-observer';
|
|
4
8
|
import { tokens } from './theme';
|
|
5
|
-
import {
|
|
9
|
+
import { convertRemToPixels, displayValue, getQueryStatusColor, getQueryStatusColorByLabel, getQueryStatusLabel, getSidedProp, sortFns, } from './utils';
|
|
6
10
|
import { ArrowDown, ArrowUp, ChevronDown, Offline, Search, Settings, TanstackLogo, Wifi, } from './icons';
|
|
7
11
|
import Explorer from './Explorer';
|
|
8
12
|
import { QueryDevtoolsContext, useQueryDevtoolsContext } from './Context';
|
|
9
|
-
import { TransitionGroup } from 'solid-transition-group';
|
|
10
13
|
import { loadFonts } from './fonts';
|
|
11
|
-
import { Key } from '@solid-primitives/keyed';
|
|
12
|
-
import { createLocalStorage } from '@solid-primitives/storage';
|
|
13
|
-
import { createResizeObserver } from '@solid-primitives/resize-observer';
|
|
14
14
|
const firstBreakpoint = 1024;
|
|
15
15
|
const secondBreakpoint = 796;
|
|
16
16
|
const thirdBreakpoint = 700;
|
|
@@ -302,14 +302,12 @@ export const DevtoolsPanel = (props) => {
|
|
|
302
302
|
<div class={styles.actionsContainer}>
|
|
303
303
|
<button onClick={() => {
|
|
304
304
|
if (offline()) {
|
|
305
|
-
onlineManager().setOnline(
|
|
305
|
+
onlineManager().setOnline(true);
|
|
306
306
|
setOffline(false);
|
|
307
|
-
window.dispatchEvent(new Event('online'));
|
|
308
307
|
}
|
|
309
308
|
else {
|
|
310
309
|
onlineManager().setOnline(false);
|
|
311
310
|
setOffline(true);
|
|
312
|
-
window.dispatchEvent(new Event('offline'));
|
|
313
311
|
}
|
|
314
312
|
}} class={styles.actionsBtn} aria-label={`${offline()
|
|
315
313
|
? 'Unset offline mocking behavior'
|
package/dist/source/Explorer.jsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { displayValue } from './utils';
|
|
2
1
|
import { stringify } from 'superjson';
|
|
3
2
|
import { css, cx } from '@emotion/css';
|
|
4
|
-
import {
|
|
5
|
-
import { createMemo, createSignal, Index, Match, Show, Switch } from 'solid-js';
|
|
3
|
+
import { Index, Match, Show, Switch, createMemo, createSignal } from 'solid-js';
|
|
6
4
|
import { Key } from '@solid-primitives/keyed';
|
|
5
|
+
import { tokens } from './theme';
|
|
6
|
+
import { displayValue } from './utils';
|
|
7
7
|
import { CopiedCopier, Copier, ErrorCopier } from './icons';
|
|
8
8
|
/**
|
|
9
9
|
* Chunk elements in the array by size
|
package/dist/types/Context.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { QueryClient, onlineManager
|
|
1
|
+
import type { Query, QueryClient, onlineManager } from '@tanstack/query-core';
|
|
2
2
|
type XPosition = 'left' | 'right';
|
|
3
3
|
type YPosition = 'top' | 'bottom';
|
|
4
4
|
export type DevtoolsPosition = XPosition | YPosition;
|
package/dist/types/Devtools.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Component, JSX } from 'solid-js';
|
|
2
|
-
import type { Query } from '@tanstack/query-core';
|
|
3
1
|
import type { QueryDevtoolsProps } from './Context';
|
|
2
|
+
import type { Query } from '@tanstack/query-core';
|
|
4
3
|
import type { StorageObject, StorageSetter } from '@solid-primitives/storage';
|
|
4
|
+
import type { Component, JSX } from 'solid-js';
|
|
5
5
|
interface DevtoolsPanelProps {
|
|
6
6
|
localStore: StorageObject<string>;
|
|
7
7
|
setLocalStore: StorageSetter<string, unknown>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { QueryClient, onlineManager as TonlineManager } from '@tanstack/query-core';
|
|
2
2
|
import type { DevtoolsComponent } from './Devtools';
|
|
3
|
-
import type { DevtoolsButtonPosition, DevtoolsPosition, QueryDevtoolsProps
|
|
3
|
+
import type { DevToolsErrorType, DevtoolsButtonPosition, DevtoolsPosition, QueryDevtoolsProps } from './Context';
|
|
4
4
|
import type { Signal } from 'solid-js';
|
|
5
5
|
export type { DevtoolsButtonPosition, DevtoolsPosition, DevToolsErrorType };
|
|
6
6
|
export interface TanstackQueryDevtoolsConfig extends QueryDevtoolsProps {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/query-devtools",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.86",
|
|
4
4
|
"description": "Developer tools to interact with and visualize the TanStack Query cache",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"vite-plugin-solid": "^2.5.0",
|
|
47
|
-
"@tanstack/query-core": "5.0.0-alpha.
|
|
47
|
+
"@tanstack/query-core": "5.0.0-alpha.86"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"clean": "rimraf ./dist && rimraf ./coverage",
|
package/src/Context.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { QueryClient, onlineManager, Query } from '@tanstack/query-core'
|
|
2
1
|
import { createContext, useContext } from 'solid-js'
|
|
2
|
+
import type { Query, QueryClient, onlineManager } from '@tanstack/query-core'
|
|
3
3
|
|
|
4
4
|
type XPosition = 'left' | 'right'
|
|
5
5
|
type YPosition = 'top' | 'bottom'
|
package/src/Devtools.tsx
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import type { Accessor, Component, JSX, Setter } from 'solid-js'
|
|
2
1
|
import {
|
|
2
|
+
For,
|
|
3
|
+
Show,
|
|
3
4
|
createEffect,
|
|
4
5
|
createMemo,
|
|
5
6
|
createSignal,
|
|
6
7
|
on,
|
|
7
8
|
onCleanup,
|
|
8
9
|
onMount,
|
|
9
|
-
For,
|
|
10
|
-
Show,
|
|
11
10
|
} from 'solid-js'
|
|
12
11
|
import { rankItem } from '@tanstack/match-sorter-utils'
|
|
13
12
|
import { css, cx } from '@emotion/css'
|
|
13
|
+
import { TransitionGroup } from 'solid-transition-group'
|
|
14
|
+
import { Key } from '@solid-primitives/keyed'
|
|
15
|
+
import { createLocalStorage } from '@solid-primitives/storage'
|
|
16
|
+
import { createResizeObserver } from '@solid-primitives/resize-observer'
|
|
14
17
|
import { tokens } from './theme'
|
|
15
|
-
import type { Query, QueryCache, QueryState } from '@tanstack/query-core'
|
|
16
18
|
import {
|
|
17
|
-
|
|
18
|
-
getQueryStatusColor,
|
|
19
|
+
convertRemToPixels,
|
|
19
20
|
displayValue,
|
|
21
|
+
getQueryStatusColor,
|
|
20
22
|
getQueryStatusColorByLabel,
|
|
21
|
-
|
|
22
|
-
convertRemToPixels,
|
|
23
|
+
getQueryStatusLabel,
|
|
23
24
|
getSidedProp,
|
|
25
|
+
sortFns,
|
|
24
26
|
} from './utils'
|
|
25
27
|
import {
|
|
26
28
|
ArrowDown,
|
|
@@ -33,19 +35,17 @@ import {
|
|
|
33
35
|
Wifi,
|
|
34
36
|
} from './icons'
|
|
35
37
|
import Explorer from './Explorer'
|
|
38
|
+
import { QueryDevtoolsContext, useQueryDevtoolsContext } from './Context'
|
|
39
|
+
import { loadFonts } from './fonts'
|
|
36
40
|
import type {
|
|
37
|
-
QueryDevtoolsProps,
|
|
38
|
-
DevtoolsPosition,
|
|
39
|
-
DevtoolsButtonPosition,
|
|
40
41
|
DevToolsErrorType,
|
|
42
|
+
DevtoolsButtonPosition,
|
|
43
|
+
DevtoolsPosition,
|
|
44
|
+
QueryDevtoolsProps,
|
|
41
45
|
} from './Context'
|
|
42
|
-
import {
|
|
43
|
-
import { TransitionGroup } from 'solid-transition-group'
|
|
44
|
-
import { loadFonts } from './fonts'
|
|
45
|
-
import { Key } from '@solid-primitives/keyed'
|
|
46
|
+
import type { Query, QueryCache, QueryState } from '@tanstack/query-core'
|
|
46
47
|
import type { StorageObject, StorageSetter } from '@solid-primitives/storage'
|
|
47
|
-
import {
|
|
48
|
-
import { createResizeObserver } from '@solid-primitives/resize-observer'
|
|
48
|
+
import type { Accessor, Component, JSX, Setter } from 'solid-js'
|
|
49
49
|
|
|
50
50
|
interface DevtoolsPanelProps {
|
|
51
51
|
localStore: StorageObject<string>
|
|
@@ -485,13 +485,11 @@ export const DevtoolsPanel: Component<DevtoolsPanelProps> = (props) => {
|
|
|
485
485
|
<button
|
|
486
486
|
onClick={() => {
|
|
487
487
|
if (offline()) {
|
|
488
|
-
onlineManager().setOnline(
|
|
488
|
+
onlineManager().setOnline(true)
|
|
489
489
|
setOffline(false)
|
|
490
|
-
window.dispatchEvent(new Event('online'))
|
|
491
490
|
} else {
|
|
492
491
|
onlineManager().setOnline(false)
|
|
493
492
|
setOffline(true)
|
|
494
|
-
window.dispatchEvent(new Event('offline'))
|
|
495
493
|
}
|
|
496
494
|
}}
|
|
497
495
|
class={styles.actionsBtn}
|
package/src/Explorer.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { displayValue } from './utils'
|
|
2
1
|
import { stringify } from 'superjson'
|
|
3
2
|
import { css, cx } from '@emotion/css'
|
|
4
|
-
import {
|
|
5
|
-
import { createMemo, createSignal, Index, Match, Show, Switch } from 'solid-js'
|
|
3
|
+
import { Index, Match, Show, Switch, createMemo, createSignal } from 'solid-js'
|
|
6
4
|
import { Key } from '@solid-primitives/keyed'
|
|
5
|
+
import { tokens } from './theme'
|
|
6
|
+
import { displayValue } from './utils'
|
|
7
7
|
import { CopiedCopier, Copier, ErrorCopier } from './icons'
|
|
8
8
|
|
|
9
9
|
/**
|
package/src/index.tsx
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import { render } from 'solid-js/web'
|
|
2
|
+
import { createSignal, lazy } from 'solid-js'
|
|
1
3
|
import type {
|
|
2
4
|
QueryClient,
|
|
3
5
|
onlineManager as TonlineManager,
|
|
4
6
|
} from '@tanstack/query-core'
|
|
5
7
|
import type { DevtoolsComponent } from './Devtools'
|
|
6
|
-
import { render } from 'solid-js/web'
|
|
7
8
|
import type {
|
|
9
|
+
DevToolsErrorType,
|
|
8
10
|
DevtoolsButtonPosition,
|
|
9
11
|
DevtoolsPosition,
|
|
10
12
|
QueryDevtoolsProps,
|
|
11
|
-
DevToolsErrorType,
|
|
12
13
|
} from './Context'
|
|
13
14
|
import type { Signal } from 'solid-js'
|
|
14
|
-
import { createSignal, lazy } from 'solid-js'
|
|
15
15
|
|
|
16
16
|
export type { DevtoolsButtonPosition, DevtoolsPosition, DevToolsErrorType }
|
|
17
17
|
export interface TanstackQueryDevtoolsConfig extends QueryDevtoolsProps {}
|
package/src/utils.tsx
CHANGED