@tanstack/query-devtools 5.101.1 → 5.101.3
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/build/DevtoolsComponent/{I4EE2JD6.js → SO26Z5QU.js} +2 -2
- package/build/DevtoolsComponent/{KX7FEU5Y.js → ZXV6FBN7.js} +2 -2
- package/build/DevtoolsPanelComponent/{C2NHY6T5.js → MO2VZFYH.js} +2 -2
- package/build/DevtoolsPanelComponent/{RTO6RD2J.js → MYKLHYJZ.js} +2 -2
- package/build/chunk/{RJYFHVWH.js → M4GWWVAC.js} +8 -8
- package/build/chunk/{WLGSOJG7.js → OJ5GAW4I.js} +5 -2
- package/build/chunk/{B5IE7ZLN.js → RQBHRHJL.js} +5 -2
- package/build/chunk/{LLLYVUVC.js → ZCXR2IAF.js} +8 -8
- package/build/dev.cjs +12 -9
- package/build/dev.js +3 -3
- package/build/index.cjs +12 -9
- package/build/index.js +3 -3
- package/package.json +2 -2
- package/src/Devtools.tsx +3 -1
- package/src/contexts/PiPContext.tsx +1 -0
- package/src/utils.tsx +13 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, Devtools } from '../chunk/
|
|
2
|
-
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/
|
|
1
|
+
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, Devtools } from '../chunk/OJ5GAW4I.js';
|
|
2
|
+
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/M4GWWVAC.js';
|
|
3
3
|
|
|
4
4
|
// src/DevtoolsComponent.tsx
|
|
5
5
|
var DevtoolsComponent = (props) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, Devtools } from '../chunk/
|
|
2
|
-
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/
|
|
1
|
+
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, Devtools } from '../chunk/RQBHRHJL.js';
|
|
2
|
+
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/ZCXR2IAF.js';
|
|
3
3
|
|
|
4
4
|
// src/DevtoolsComponent.tsx
|
|
5
5
|
var DevtoolsComponent = (props) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, ParentPanel, ContentView } from '../chunk/
|
|
2
|
-
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/
|
|
1
|
+
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, ParentPanel, ContentView } from '../chunk/RQBHRHJL.js';
|
|
2
|
+
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/ZCXR2IAF.js';
|
|
3
3
|
|
|
4
4
|
// src/DevtoolsPanelComponent.tsx
|
|
5
5
|
var DevtoolsPanelComponent = (props) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, ParentPanel, ContentView } from '../chunk/
|
|
2
|
-
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/
|
|
1
|
+
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, ParentPanel, ContentView } from '../chunk/OJ5GAW4I.js';
|
|
2
|
+
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/M4GWWVAC.js';
|
|
3
3
|
|
|
4
4
|
// src/DevtoolsPanelComponent.tsx
|
|
5
5
|
var DevtoolsPanelComponent = (props) => {
|
|
@@ -2776,7 +2776,10 @@ var displayValue = (value, beautify = false) => {
|
|
|
2776
2776
|
};
|
|
2777
2777
|
var getStatusRank = (q) => q.state.fetchStatus !== "idle" ? 0 : !q.getObserversCount() ? 3 : q.isStale() ? 2 : 1;
|
|
2778
2778
|
var queryHashSort = (a, b) => a.queryHash.localeCompare(b.queryHash);
|
|
2779
|
-
var dateSort = (a, b) =>
|
|
2779
|
+
var dateSort = (a, b) => {
|
|
2780
|
+
const diff = b.state.dataUpdatedAt - a.state.dataUpdatedAt;
|
|
2781
|
+
return diff < 0 ? -1 : diff > 0 ? 1 : 0;
|
|
2782
|
+
};
|
|
2780
2783
|
var statusAndDateSort = (a, b) => {
|
|
2781
2784
|
if (getStatusRank(a) === getStatusRank(b)) {
|
|
2782
2785
|
return dateSort(a, b);
|
|
@@ -2898,18 +2901,15 @@ var deleteNestedDataByPath = (oldData, deletePath) => {
|
|
|
2898
2901
|
};
|
|
2899
2902
|
var setupStyleSheet = (nonce, target) => {
|
|
2900
2903
|
if (!nonce) return;
|
|
2901
|
-
|
|
2902
|
-
|
|
2904
|
+
window.__nonce__ = nonce;
|
|
2905
|
+
const root = target ?? document.head;
|
|
2906
|
+
if (root.querySelector("#_goober")) return;
|
|
2903
2907
|
const styleTag = document.createElement("style");
|
|
2904
2908
|
const textNode = document.createTextNode("");
|
|
2905
2909
|
styleTag.appendChild(textNode);
|
|
2906
2910
|
styleTag.id = "_goober";
|
|
2907
2911
|
styleTag.setAttribute("nonce", nonce);
|
|
2908
|
-
|
|
2909
|
-
target.appendChild(styleTag);
|
|
2910
|
-
} else {
|
|
2911
|
-
document.head.appendChild(styleTag);
|
|
2912
|
-
}
|
|
2912
|
+
root.appendChild(styleTag);
|
|
2913
2913
|
};
|
|
2914
2914
|
|
|
2915
2915
|
export { $TRACK, DEV, Dynamic, For, Index, Match, Portal, Show, Switch, addEventListener, batch, className, clearDelegatedEvents, convertRemToPixels, createComponent, createComputed, createContext, createEffect, createMemo, createRenderEffect, createRoot, createSignal, createUniqueId, delegateEvents, deleteNestedDataByPath, displayValue, getMutationStatusColor, getOwner, getPreferredColorScheme, getQueryStatusColor, getQueryStatusColorByLabel, getQueryStatusLabel, getSidedProp, insert, isServer, lazy, memo, mergeProps, mutationSortFns, on, onCleanup, onMount, render, serialize, setAttribute, setStyleProperty, setupStyleSheet, sortFns, splitProps, spread, stringify, template, untrack, updateNestedDataByPath, use, useContext, useTransition };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { sortFns, mutationSortFns, createContext, splitProps, createMemo, createComponent, mergeProps, createSignal, useContext, createUniqueId, createEffect, onCleanup, Show, on, delegateEvents, Dynamic, createRenderEffect, setAttribute, memo, Portal, untrack, isServer, onMount, createComputed, getOwner, template, use, insert, className, getSidedProp, convertRemToPixels, setStyleProperty, getQueryStatusColor, getMutationStatusColor, getQueryStatusLabel, spread, getQueryStatusColorByLabel, displayValue, For, batch, clearDelegatedEvents, serialize, Index, updateNestedDataByPath, $TRACK, createRoot, DEV, addEventListener, stringify, Switch, Match, deleteNestedDataByPath, useTransition } from './
|
|
1
|
+
import { sortFns, mutationSortFns, createContext, splitProps, createMemo, createComponent, mergeProps, createSignal, useContext, createUniqueId, createEffect, onCleanup, Show, on, delegateEvents, Dynamic, createRenderEffect, setAttribute, memo, Portal, untrack, isServer, onMount, createComputed, getOwner, template, use, insert, className, getSidedProp, convertRemToPixels, setStyleProperty, getQueryStatusColor, getMutationStatusColor, getQueryStatusLabel, spread, getQueryStatusColorByLabel, displayValue, For, batch, clearDelegatedEvents, serialize, Index, updateNestedDataByPath, $TRACK, createRoot, DEV, addEventListener, stringify, Switch, Match, deleteNestedDataByPath, useTransition } from './M4GWWVAC.js';
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/.pnpm/@solid-primitives+utils@6.4.0_solid-js@1.9.12/node_modules/@solid-primitives/utils/dist/index.js
|
|
4
4
|
var isClient = !isServer;
|
|
@@ -306,6 +306,7 @@ var PiPProvider = (props) => {
|
|
|
306
306
|
const w = pipWindow();
|
|
307
307
|
if (w != null) {
|
|
308
308
|
w.close();
|
|
309
|
+
props.setLocalStore("pip_open", "false");
|
|
309
310
|
setPipWindow(null);
|
|
310
311
|
}
|
|
311
312
|
};
|
|
@@ -10386,7 +10387,7 @@ var ContentView = (props) => {
|
|
|
10386
10387
|
get children() {
|
|
10387
10388
|
return [createComponent(dropdown_menu_exports.SubTrigger, {
|
|
10388
10389
|
get ["class"]() {
|
|
10389
|
-
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-
|
|
10390
|
+
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-theme");
|
|
10390
10391
|
},
|
|
10391
10392
|
get children() {
|
|
10392
10393
|
return [_tmpl$152(), createComponent(ChevronDown, {})];
|
|
@@ -11703,6 +11704,8 @@ var stylesFactory2 = (theme, css) => {
|
|
|
11703
11704
|
right: -8px;
|
|
11704
11705
|
bottom: -8px;
|
|
11705
11706
|
border-radius: 9999px;
|
|
11707
|
+
-webkit-transform: translateZ(0);
|
|
11708
|
+
transform: translateZ(0);
|
|
11706
11709
|
|
|
11707
11710
|
& svg {
|
|
11708
11711
|
position: absolute;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { sortFns, mutationSortFns, createContext, splitProps, createMemo, createComponent, mergeProps, createSignal, useContext, createUniqueId, createEffect, onCleanup, Show, on, delegateEvents, Dynamic, createRenderEffect, setAttribute, memo, Portal, untrack, isServer, onMount, createComputed, getOwner, template, use, insert, className, getSidedProp, convertRemToPixels, setStyleProperty, getQueryStatusColor, getMutationStatusColor, getQueryStatusLabel, spread, getQueryStatusColorByLabel, displayValue, For, batch, clearDelegatedEvents, serialize, Index, updateNestedDataByPath, $TRACK, createRoot, DEV, addEventListener, stringify, Switch, Match, deleteNestedDataByPath, useTransition } from './
|
|
1
|
+
import { sortFns, mutationSortFns, createContext, splitProps, createMemo, createComponent, mergeProps, createSignal, useContext, createUniqueId, createEffect, onCleanup, Show, on, delegateEvents, Dynamic, createRenderEffect, setAttribute, memo, Portal, untrack, isServer, onMount, createComputed, getOwner, template, use, insert, className, getSidedProp, convertRemToPixels, setStyleProperty, getQueryStatusColor, getMutationStatusColor, getQueryStatusLabel, spread, getQueryStatusColorByLabel, displayValue, For, batch, clearDelegatedEvents, serialize, Index, updateNestedDataByPath, $TRACK, createRoot, DEV, addEventListener, stringify, Switch, Match, deleteNestedDataByPath, useTransition } from './ZCXR2IAF.js';
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/.pnpm/@solid-primitives+utils@6.4.0_solid-js@1.9.12/node_modules/@solid-primitives/utils/dist/index.js
|
|
4
4
|
var isClient = !isServer;
|
|
@@ -306,6 +306,7 @@ var PiPProvider = (props) => {
|
|
|
306
306
|
const w = pipWindow();
|
|
307
307
|
if (w != null) {
|
|
308
308
|
w.close();
|
|
309
|
+
props.setLocalStore("pip_open", "false");
|
|
309
310
|
setPipWindow(null);
|
|
310
311
|
}
|
|
311
312
|
};
|
|
@@ -10384,7 +10385,7 @@ var ContentView = (props) => {
|
|
|
10384
10385
|
get children() {
|
|
10385
10386
|
return [createComponent(dropdown_menu_exports.SubTrigger, {
|
|
10386
10387
|
get ["class"]() {
|
|
10387
|
-
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-
|
|
10388
|
+
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-theme");
|
|
10388
10389
|
},
|
|
10389
10390
|
get children() {
|
|
10390
10391
|
return [_tmpl$152(), createComponent(ChevronDown, {})];
|
|
@@ -11701,6 +11702,8 @@ var stylesFactory2 = (theme, css) => {
|
|
|
11701
11702
|
right: -8px;
|
|
11702
11703
|
bottom: -8px;
|
|
11703
11704
|
border-radius: 9999px;
|
|
11705
|
+
-webkit-transform: translateZ(0);
|
|
11706
|
+
transform: translateZ(0);
|
|
11704
11707
|
|
|
11705
11708
|
& svg {
|
|
11706
11709
|
position: absolute;
|
|
@@ -2775,7 +2775,10 @@ var displayValue = (value, beautify = false) => {
|
|
|
2775
2775
|
};
|
|
2776
2776
|
var getStatusRank = (q) => q.state.fetchStatus !== "idle" ? 0 : !q.getObserversCount() ? 3 : q.isStale() ? 2 : 1;
|
|
2777
2777
|
var queryHashSort = (a, b) => a.queryHash.localeCompare(b.queryHash);
|
|
2778
|
-
var dateSort = (a, b) =>
|
|
2778
|
+
var dateSort = (a, b) => {
|
|
2779
|
+
const diff = b.state.dataUpdatedAt - a.state.dataUpdatedAt;
|
|
2780
|
+
return diff < 0 ? -1 : diff > 0 ? 1 : 0;
|
|
2781
|
+
};
|
|
2779
2782
|
var statusAndDateSort = (a, b) => {
|
|
2780
2783
|
if (getStatusRank(a) === getStatusRank(b)) {
|
|
2781
2784
|
return dateSort(a, b);
|
|
@@ -2897,18 +2900,15 @@ var deleteNestedDataByPath = (oldData, deletePath) => {
|
|
|
2897
2900
|
};
|
|
2898
2901
|
var setupStyleSheet = (nonce, target) => {
|
|
2899
2902
|
if (!nonce) return;
|
|
2900
|
-
|
|
2901
|
-
|
|
2903
|
+
window.__nonce__ = nonce;
|
|
2904
|
+
const root = target ?? document.head;
|
|
2905
|
+
if (root.querySelector("#_goober")) return;
|
|
2902
2906
|
const styleTag = document.createElement("style");
|
|
2903
2907
|
const textNode = document.createTextNode("");
|
|
2904
2908
|
styleTag.appendChild(textNode);
|
|
2905
2909
|
styleTag.id = "_goober";
|
|
2906
2910
|
styleTag.setAttribute("nonce", nonce);
|
|
2907
|
-
|
|
2908
|
-
target.appendChild(styleTag);
|
|
2909
|
-
} else {
|
|
2910
|
-
document.head.appendChild(styleTag);
|
|
2911
|
-
}
|
|
2911
|
+
root.appendChild(styleTag);
|
|
2912
2912
|
};
|
|
2913
2913
|
|
|
2914
2914
|
export { $TRACK, DEV, Dynamic, For, Index, Match, Portal, Show, Switch, addEventListener, batch, className, clearDelegatedEvents, convertRemToPixels, createComponent, createComputed, createContext, createEffect, createMemo, createRenderEffect, createRoot, createSignal, createUniqueId, delegateEvents, deleteNestedDataByPath, displayValue, getMutationStatusColor, getOwner, getPreferredColorScheme, getQueryStatusColor, getQueryStatusColorByLabel, getQueryStatusLabel, getSidedProp, insert, isServer, lazy, memo, mergeProps, mutationSortFns, on, onCleanup, onMount, render, serialize, setAttribute, setStyleProperty, setupStyleSheet, sortFns, splitProps, spread, stringify, template, untrack, updateNestedDataByPath, use, useContext, useTransition };
|
package/build/dev.cjs
CHANGED
|
@@ -2903,7 +2903,10 @@ var init_utils = __esm({
|
|
|
2903
2903
|
};
|
|
2904
2904
|
getStatusRank = (q) => q.state.fetchStatus !== "idle" ? 0 : !q.getObserversCount() ? 3 : q.isStale() ? 2 : 1;
|
|
2905
2905
|
queryHashSort = (a2, b2) => a2.queryHash.localeCompare(b2.queryHash);
|
|
2906
|
-
dateSort = (a2, b2) =>
|
|
2906
|
+
dateSort = (a2, b2) => {
|
|
2907
|
+
const diff = b2.state.dataUpdatedAt - a2.state.dataUpdatedAt;
|
|
2908
|
+
return diff < 0 ? -1 : diff > 0 ? 1 : 0;
|
|
2909
|
+
};
|
|
2907
2910
|
statusAndDateSort = (a2, b2) => {
|
|
2908
2911
|
if (getStatusRank(a2) === getStatusRank(b2)) {
|
|
2909
2912
|
return dateSort(a2, b2);
|
|
@@ -3025,18 +3028,15 @@ var init_utils = __esm({
|
|
|
3025
3028
|
};
|
|
3026
3029
|
setupStyleSheet = (nonce, target) => {
|
|
3027
3030
|
if (!nonce) return;
|
|
3028
|
-
|
|
3029
|
-
|
|
3031
|
+
window.__nonce__ = nonce;
|
|
3032
|
+
const root = target ?? document.head;
|
|
3033
|
+
if (root.querySelector("#_goober")) return;
|
|
3030
3034
|
const styleTag = document.createElement("style");
|
|
3031
3035
|
const textNode = document.createTextNode("");
|
|
3032
3036
|
styleTag.appendChild(textNode);
|
|
3033
3037
|
styleTag.id = "_goober";
|
|
3034
3038
|
styleTag.setAttribute("nonce", nonce);
|
|
3035
|
-
|
|
3036
|
-
target.appendChild(styleTag);
|
|
3037
|
-
} else {
|
|
3038
|
-
document.head.appendChild(styleTag);
|
|
3039
|
-
}
|
|
3039
|
+
root.appendChild(styleTag);
|
|
3040
3040
|
};
|
|
3041
3041
|
}
|
|
3042
3042
|
});
|
|
@@ -12359,6 +12359,7 @@ var init_PiPContext = __esm({
|
|
|
12359
12359
|
const w = pipWindow();
|
|
12360
12360
|
if (w != null) {
|
|
12361
12361
|
w.close();
|
|
12362
|
+
props.setLocalStore("pip_open", "false");
|
|
12362
12363
|
setPipWindow(null);
|
|
12363
12364
|
}
|
|
12364
12365
|
};
|
|
@@ -14032,7 +14033,7 @@ var init_Devtools = __esm({
|
|
|
14032
14033
|
get children() {
|
|
14033
14034
|
return [createComponent(dropdown_menu_exports.SubTrigger, {
|
|
14034
14035
|
get ["class"]() {
|
|
14035
|
-
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-
|
|
14036
|
+
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-theme");
|
|
14036
14037
|
},
|
|
14037
14038
|
get children() {
|
|
14038
14039
|
return [_tmpl$152(), createComponent(ChevronDown, {})];
|
|
@@ -15349,6 +15350,8 @@ var init_Devtools = __esm({
|
|
|
15349
15350
|
right: -8px;
|
|
15350
15351
|
bottom: -8px;
|
|
15351
15352
|
border-radius: 9999px;
|
|
15353
|
+
-webkit-transform: translateZ(0);
|
|
15354
|
+
transform: translateZ(0);
|
|
15352
15355
|
|
|
15353
15356
|
& svg {
|
|
15354
15357
|
position: absolute;
|
package/build/dev.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSignal, render, lazy, setupStyleSheet, createComponent, mergeProps } from './chunk/
|
|
1
|
+
import { createSignal, render, lazy, setupStyleSheet, createComponent, mergeProps } from './chunk/M4GWWVAC.js';
|
|
2
2
|
|
|
3
3
|
// src/TanstackQueryDevtools.tsx
|
|
4
4
|
var TanstackQueryDevtools = class {
|
|
@@ -80,7 +80,7 @@ var TanstackQueryDevtools = class {
|
|
|
80
80
|
if (this.#Component) {
|
|
81
81
|
Devtools = this.#Component;
|
|
82
82
|
} else {
|
|
83
|
-
Devtools = lazy(() => import('./DevtoolsComponent/
|
|
83
|
+
Devtools = lazy(() => import('./DevtoolsComponent/SO26Z5QU.js'));
|
|
84
84
|
this.#Component = Devtools;
|
|
85
85
|
}
|
|
86
86
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
|
@@ -220,7 +220,7 @@ var TanstackQueryDevtoolsPanel = class {
|
|
|
220
220
|
if (this.#Component) {
|
|
221
221
|
Devtools = this.#Component;
|
|
222
222
|
} else {
|
|
223
|
-
Devtools = lazy(() => import('./DevtoolsPanelComponent/
|
|
223
|
+
Devtools = lazy(() => import('./DevtoolsPanelComponent/MYKLHYJZ.js'));
|
|
224
224
|
this.#Component = Devtools;
|
|
225
225
|
}
|
|
226
226
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
package/build/index.cjs
CHANGED
|
@@ -2902,7 +2902,10 @@ var init_utils = __esm({
|
|
|
2902
2902
|
};
|
|
2903
2903
|
getStatusRank = (q) => q.state.fetchStatus !== "idle" ? 0 : !q.getObserversCount() ? 3 : q.isStale() ? 2 : 1;
|
|
2904
2904
|
queryHashSort = (a2, b2) => a2.queryHash.localeCompare(b2.queryHash);
|
|
2905
|
-
dateSort = (a2, b2) =>
|
|
2905
|
+
dateSort = (a2, b2) => {
|
|
2906
|
+
const diff = b2.state.dataUpdatedAt - a2.state.dataUpdatedAt;
|
|
2907
|
+
return diff < 0 ? -1 : diff > 0 ? 1 : 0;
|
|
2908
|
+
};
|
|
2906
2909
|
statusAndDateSort = (a2, b2) => {
|
|
2907
2910
|
if (getStatusRank(a2) === getStatusRank(b2)) {
|
|
2908
2911
|
return dateSort(a2, b2);
|
|
@@ -3024,18 +3027,15 @@ var init_utils = __esm({
|
|
|
3024
3027
|
};
|
|
3025
3028
|
setupStyleSheet = (nonce, target) => {
|
|
3026
3029
|
if (!nonce) return;
|
|
3027
|
-
|
|
3028
|
-
|
|
3030
|
+
window.__nonce__ = nonce;
|
|
3031
|
+
const root = target ?? document.head;
|
|
3032
|
+
if (root.querySelector("#_goober")) return;
|
|
3029
3033
|
const styleTag = document.createElement("style");
|
|
3030
3034
|
const textNode = document.createTextNode("");
|
|
3031
3035
|
styleTag.appendChild(textNode);
|
|
3032
3036
|
styleTag.id = "_goober";
|
|
3033
3037
|
styleTag.setAttribute("nonce", nonce);
|
|
3034
|
-
|
|
3035
|
-
target.appendChild(styleTag);
|
|
3036
|
-
} else {
|
|
3037
|
-
document.head.appendChild(styleTag);
|
|
3038
|
-
}
|
|
3038
|
+
root.appendChild(styleTag);
|
|
3039
3039
|
};
|
|
3040
3040
|
}
|
|
3041
3041
|
});
|
|
@@ -12358,6 +12358,7 @@ var init_PiPContext = __esm({
|
|
|
12358
12358
|
const w = pipWindow();
|
|
12359
12359
|
if (w != null) {
|
|
12360
12360
|
w.close();
|
|
12361
|
+
props.setLocalStore("pip_open", "false");
|
|
12361
12362
|
setPipWindow(null);
|
|
12362
12363
|
}
|
|
12363
12364
|
};
|
|
@@ -14029,7 +14030,7 @@ var init_Devtools = __esm({
|
|
|
14029
14030
|
get children() {
|
|
14030
14031
|
return [createComponent(dropdown_menu_exports.SubTrigger, {
|
|
14031
14032
|
get ["class"]() {
|
|
14032
|
-
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-
|
|
14033
|
+
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-theme");
|
|
14033
14034
|
},
|
|
14034
14035
|
get children() {
|
|
14035
14036
|
return [_tmpl$152(), createComponent(ChevronDown, {})];
|
|
@@ -15346,6 +15347,8 @@ var init_Devtools = __esm({
|
|
|
15346
15347
|
right: -8px;
|
|
15347
15348
|
bottom: -8px;
|
|
15348
15349
|
border-radius: 9999px;
|
|
15350
|
+
-webkit-transform: translateZ(0);
|
|
15351
|
+
transform: translateZ(0);
|
|
15349
15352
|
|
|
15350
15353
|
& svg {
|
|
15351
15354
|
position: absolute;
|
package/build/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSignal, render, lazy, setupStyleSheet, createComponent, mergeProps } from './chunk/
|
|
1
|
+
import { createSignal, render, lazy, setupStyleSheet, createComponent, mergeProps } from './chunk/ZCXR2IAF.js';
|
|
2
2
|
|
|
3
3
|
// src/TanstackQueryDevtools.tsx
|
|
4
4
|
var TanstackQueryDevtools = class {
|
|
@@ -80,7 +80,7 @@ var TanstackQueryDevtools = class {
|
|
|
80
80
|
if (this.#Component) {
|
|
81
81
|
Devtools = this.#Component;
|
|
82
82
|
} else {
|
|
83
|
-
Devtools = lazy(() => import('./DevtoolsComponent/
|
|
83
|
+
Devtools = lazy(() => import('./DevtoolsComponent/ZXV6FBN7.js'));
|
|
84
84
|
this.#Component = Devtools;
|
|
85
85
|
}
|
|
86
86
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
|
@@ -220,7 +220,7 @@ var TanstackQueryDevtoolsPanel = class {
|
|
|
220
220
|
if (this.#Component) {
|
|
221
221
|
Devtools = this.#Component;
|
|
222
222
|
} else {
|
|
223
|
-
Devtools = lazy(() => import('./DevtoolsPanelComponent/
|
|
223
|
+
Devtools = lazy(() => import('./DevtoolsPanelComponent/MO2VZFYH.js'));
|
|
224
224
|
this.#Component = Devtools;
|
|
225
225
|
}
|
|
226
226
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/query-devtools",
|
|
3
|
-
"version": "5.101.
|
|
3
|
+
"version": "5.101.3",
|
|
4
4
|
"description": "Developer tools to interact with and visualize the TanStack Query cache",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"superjson": "^2.2.2",
|
|
59
59
|
"tsup-preset-solid": "^2.2.0",
|
|
60
60
|
"vite-plugin-solid": "^2.11.6",
|
|
61
|
-
"@tanstack/query-core": "5.101.
|
|
61
|
+
"@tanstack/query-core": "5.101.3"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"clean": "premove ./build ./coverage ./dist-ts",
|
package/src/Devtools.tsx
CHANGED
|
@@ -1192,7 +1192,7 @@ export const ContentView: Component<ContentViewProps> = (props) => {
|
|
|
1192
1192
|
class={cx(
|
|
1193
1193
|
styles().settingsSubTrigger,
|
|
1194
1194
|
'tsqd-settings-menu-sub-trigger',
|
|
1195
|
-
'tsqd-settings-menu-sub-trigger-
|
|
1195
|
+
'tsqd-settings-menu-sub-trigger-theme',
|
|
1196
1196
|
)}
|
|
1197
1197
|
>
|
|
1198
1198
|
<span>Theme</span>
|
|
@@ -2745,6 +2745,8 @@ const stylesFactory = (
|
|
|
2745
2745
|
right: -8px;
|
|
2746
2746
|
bottom: -8px;
|
|
2747
2747
|
border-radius: 9999px;
|
|
2748
|
+
-webkit-transform: translateZ(0);
|
|
2749
|
+
transform: translateZ(0);
|
|
2748
2750
|
|
|
2749
2751
|
& svg {
|
|
2750
2752
|
position: absolute;
|
package/src/utils.tsx
CHANGED
|
@@ -101,8 +101,10 @@ const getStatusRank = (q: Query) =>
|
|
|
101
101
|
|
|
102
102
|
const queryHashSort: SortFn = (a, b) => a.queryHash.localeCompare(b.queryHash)
|
|
103
103
|
|
|
104
|
-
const dateSort: SortFn = (a, b) =>
|
|
105
|
-
|
|
104
|
+
const dateSort: SortFn = (a, b) => {
|
|
105
|
+
const diff = b.state.dataUpdatedAt - a.state.dataUpdatedAt
|
|
106
|
+
return diff < 0 ? -1 : diff > 0 ? 1 : 0
|
|
107
|
+
}
|
|
106
108
|
|
|
107
109
|
const statusAndDateSort: SortFn = (a, b) => {
|
|
108
110
|
if (getStatusRank(a) === getStatusRank(b)) {
|
|
@@ -305,19 +307,18 @@ export const deleteNestedDataByPath = (
|
|
|
305
307
|
// Sets up the goober stylesheet
|
|
306
308
|
// Adds a nonce to the style tag if needed
|
|
307
309
|
export const setupStyleSheet = (nonce?: string, target?: ShadowRoot) => {
|
|
308
|
-
if (!nonce)
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
310
|
+
if (!nonce)
|
|
311
|
+
return // Goober reads window.__nonce__ every time it creates or accesses its style
|
|
312
|
+
// element (el.nonce = window.__nonce__). Without this, goober overwrites the
|
|
313
|
+
// nonce we set on the pre-created element with undefined, clearing it.
|
|
314
|
+
;(window as any).__nonce__ = nonce
|
|
315
|
+
|
|
316
|
+
const root = target ?? document.head
|
|
317
|
+
if (root.querySelector('#_goober')) return
|
|
313
318
|
const styleTag = document.createElement('style')
|
|
314
319
|
const textNode = document.createTextNode('')
|
|
315
320
|
styleTag.appendChild(textNode)
|
|
316
321
|
styleTag.id = '_goober'
|
|
317
322
|
styleTag.setAttribute('nonce', nonce)
|
|
318
|
-
|
|
319
|
-
target.appendChild(styleTag)
|
|
320
|
-
} else {
|
|
321
|
-
document.head.appendChild(styleTag)
|
|
322
|
-
}
|
|
323
|
+
root.appendChild(styleTag)
|
|
323
324
|
}
|