@tanstack/query-devtools 5.23.0 → 5.27.0
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/Devtools/{NXICSXP3.js → DBFR2OSQ.js} +154 -115
- package/build/Devtools/{T73WTYCS.jsx → MZG6MFIN.jsx} +141 -115
- package/build/Devtools/{QUGYIDRL.js → UXHVNKJK.js} +155 -114
- package/build/Devtools/{6EDF3GZQ.jsx → ZI3HPF3S.jsx} +141 -115
- package/build/chunk/{AZNCIVVX.jsx → 4MX274MJ.jsx} +15 -3
- package/build/chunk/{XKKA3NOX.js → BWUNFN7M.js} +15 -4
- package/build/chunk/{O2PITFF6.js → EY5FZ5D2.js} +15 -4
- package/build/chunk/{PQZZ5Z2E.jsx → HLOIZPIT.jsx} +15 -3
- package/build/dev.cjs +175 -118
- package/build/dev.js +10 -4
- package/build/dev.jsx +8 -4
- package/build/index.cjs +175 -118
- package/build/index.d.cts +2 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +10 -4
- package/build/index.jsx +8 -4
- package/package.json +2 -2
- package/src/Context.ts +2 -0
- package/src/Devtools.tsx +93 -32
- package/src/index.tsx +6 -1
- package/src/utils.tsx +9 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createContext, delegateEvents, sortFns, mutationSortFns, createSignal, $PROXY, $TRACK, getListener, batch, getPreferredColorScheme, createMemo, createComponent, createEffect, onMount, onCleanup, Show, Portal, use, insert, createRenderEffect, className, on, setAttribute, getQueryStatusColor, getMutationStatusColor, getQueryStatusLabel, spread, mergeProps, getQueryStatusColorByLabel, displayValue, For, isServer, createUniqueId, useContext, Index, updateNestedDataByPath, template, convertRemToPixels, getSidedProp, untrack, useTransition, createRoot, splitProps, addEventListener, stringify, Switch, Match, deleteNestedDataByPath, Dynamic, children, createComputed, getOwner, DEV } from '../chunk/
|
|
1
|
+
import { createContext, delegateEvents, sortFns, mutationSortFns, createSignal, $PROXY, $TRACK, getListener, batch, getPreferredColorScheme, createMemo, createComponent, createEffect, onMount, onCleanup, Show, Portal, use, insert, createRenderEffect, className, on, setAttribute, getQueryStatusColor, getMutationStatusColor, getQueryStatusLabel, spread, mergeProps, getQueryStatusColorByLabel, displayValue, For, isServer, createUniqueId, useContext, Index, updateNestedDataByPath, template, convertRemToPixels, getSidedProp, untrack, useTransition, createRoot, splitProps, addEventListener, stringify, Switch, Match, deleteNestedDataByPath, clearDelegatedEvents, Dynamic, children, createComputed, getOwner, DEV } from '../chunk/EY5FZ5D2.js';
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/.pnpm/@tanstack+match-sorter-utils@8.11.8/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
|
|
4
4
|
var characterMap = {
|
|
@@ -8836,7 +8836,8 @@ var QueryDevtoolsContext = createContext({
|
|
|
8836
8836
|
client: void 0,
|
|
8837
8837
|
onlineManager: void 0,
|
|
8838
8838
|
queryFlavor: "",
|
|
8839
|
-
version: ""
|
|
8839
|
+
version: "",
|
|
8840
|
+
shadowDOMTarget: void 0
|
|
8840
8841
|
});
|
|
8841
8842
|
function useQueryDevtoolsContext() {
|
|
8842
8843
|
return useContext(QueryDevtoolsContext);
|
|
@@ -8903,6 +8904,7 @@ var CopyButton = (props) => {
|
|
|
8903
8904
|
setCopyState("NoCopy");
|
|
8904
8905
|
}, 1500);
|
|
8905
8906
|
}, (err) => {
|
|
8907
|
+
console.error("Failed to copy: ", err);
|
|
8906
8908
|
setCopyState("ErrorCopy");
|
|
8907
8909
|
setTimeout(() => {
|
|
8908
8910
|
setCopyState("NoCopy");
|
|
@@ -9551,13 +9553,17 @@ var PiPProvider = (props) => {
|
|
|
9551
9553
|
if (pipWindow() != null) {
|
|
9552
9554
|
return;
|
|
9553
9555
|
}
|
|
9554
|
-
const pip = window.open("", "", `width=${width},height=${height},popup`);
|
|
9556
|
+
const pip = window.open("", "TSQD-Devtools-Panel", `width=${width},height=${height},popup`);
|
|
9555
9557
|
if (!pip) {
|
|
9556
9558
|
throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");
|
|
9557
9559
|
}
|
|
9560
|
+
pip.document.head.innerHTML = "";
|
|
9561
|
+
pip.document.body.innerHTML = "";
|
|
9562
|
+
clearDelegatedEvents(pip.document);
|
|
9558
9563
|
pip.document.title = "TanStack Query Devtools";
|
|
9559
9564
|
pip.document.body.style.margin = "0";
|
|
9560
9565
|
pip.addEventListener("pagehide", () => {
|
|
9566
|
+
props.setLocalStore("pip_open", "false");
|
|
9561
9567
|
setPipWindow(null);
|
|
9562
9568
|
});
|
|
9563
9569
|
[...document.styleSheets].forEach((styleSheet) => {
|
|
@@ -9587,23 +9593,21 @@ var PiPProvider = (props) => {
|
|
|
9587
9593
|
}
|
|
9588
9594
|
});
|
|
9589
9595
|
delegateEvents(["focusin", "focusout", "pointermove", "keydown", "pointerdown", "pointerup", "click", "mousedown", "input"], pip.document);
|
|
9596
|
+
props.setLocalStore("pip_open", "true");
|
|
9590
9597
|
setPipWindow(pip);
|
|
9591
9598
|
};
|
|
9592
9599
|
createEffect(() => {
|
|
9593
|
-
const
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
onCleanup(() => {
|
|
9598
|
-
window.removeEventListener("beforeunload", closePipWindowOnUnload);
|
|
9599
|
-
});
|
|
9600
|
+
const pip_open = props.localStore.pip_open ?? "false";
|
|
9601
|
+
if (pip_open === "true") {
|
|
9602
|
+
requestPipWindow(Number(window.innerWidth), Number(props.localStore.height || DEFAULT_HEIGHT));
|
|
9603
|
+
}
|
|
9600
9604
|
});
|
|
9601
9605
|
createEffect(() => {
|
|
9602
|
-
const gooberStyles = document.
|
|
9606
|
+
const gooberStyles = (useQueryDevtoolsContext().shadowDOMTarget || document).querySelector("#_goober");
|
|
9603
9607
|
const w = pipWindow();
|
|
9604
9608
|
if (gooberStyles && w) {
|
|
9605
9609
|
const observer = new MutationObserver(() => {
|
|
9606
|
-
const pip_style = w.document.
|
|
9610
|
+
const pip_style = (useQueryDevtoolsContext().shadowDOMTarget || w.document).querySelector("#_goober");
|
|
9607
9611
|
if (pip_style) {
|
|
9608
9612
|
pip_style.textContent = gooberStyles.textContent;
|
|
9609
9613
|
}
|
|
@@ -9658,6 +9662,8 @@ var DevtoolsComponent = (props) => {
|
|
|
9658
9662
|
value: props,
|
|
9659
9663
|
get children() {
|
|
9660
9664
|
return createComponent(PiPProvider, {
|
|
9665
|
+
localStore,
|
|
9666
|
+
setLocalStore,
|
|
9661
9667
|
get children() {
|
|
9662
9668
|
return createComponent(ThemeContext.Provider, {
|
|
9663
9669
|
value: theme,
|
|
@@ -9676,8 +9682,11 @@ var DevtoolsComponent = (props) => {
|
|
|
9676
9682
|
var Devtools_default = DevtoolsComponent;
|
|
9677
9683
|
var Devtools = (props) => {
|
|
9678
9684
|
const theme = useTheme();
|
|
9685
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
9686
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
9687
|
+
}) : u;
|
|
9679
9688
|
const styles = createMemo(() => {
|
|
9680
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
9689
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
9681
9690
|
});
|
|
9682
9691
|
const pip = usePiPWindow();
|
|
9683
9692
|
const buttonPosition = createMemo(() => {
|
|
@@ -9710,9 +9719,10 @@ var Devtools = (props) => {
|
|
|
9710
9719
|
window.removeEventListener("focus", onFocus);
|
|
9711
9720
|
});
|
|
9712
9721
|
});
|
|
9722
|
+
const pip_open = createMemo(() => props.localStore.pip_open ?? "false");
|
|
9713
9723
|
return [createComponent(Show, {
|
|
9714
9724
|
get when() {
|
|
9715
|
-
return pip().pipWindow;
|
|
9725
|
+
return createMemo(() => !!pip().pipWindow)() && pip_open() == "true";
|
|
9716
9726
|
},
|
|
9717
9727
|
get children() {
|
|
9718
9728
|
return createComponent(Portal, {
|
|
@@ -9744,7 +9754,7 @@ var Devtools = (props) => {
|
|
|
9744
9754
|
get children() {
|
|
9745
9755
|
return createComponent(Show, {
|
|
9746
9756
|
get when() {
|
|
9747
|
-
return createMemo(() => !!isOpen()
|
|
9757
|
+
return createMemo(() => !!(isOpen() && !pip().pipWindow))() && pip_open() == "false";
|
|
9748
9758
|
},
|
|
9749
9759
|
get children() {
|
|
9750
9760
|
return createComponent(DevtoolsPanel, {
|
|
@@ -9777,7 +9787,7 @@ var Devtools = (props) => {
|
|
|
9777
9787
|
});
|
|
9778
9788
|
}
|
|
9779
9789
|
}), null);
|
|
9780
|
-
createRenderEffect(() => className(_el$, clsx(
|
|
9790
|
+
createRenderEffect(() => className(_el$, clsx(css`
|
|
9781
9791
|
& .tsqd-panel-transition-exit-active,
|
|
9782
9792
|
& .tsqd-panel-transition-enter-active {
|
|
9783
9793
|
transition:
|
|
@@ -9810,8 +9820,11 @@ var Devtools = (props) => {
|
|
|
9810
9820
|
var PiPPanel = (props) => {
|
|
9811
9821
|
const pip = usePiPWindow();
|
|
9812
9822
|
const theme = useTheme();
|
|
9823
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
9824
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
9825
|
+
}) : u;
|
|
9813
9826
|
const styles = createMemo(() => {
|
|
9814
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
9827
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
9815
9828
|
});
|
|
9816
9829
|
const getPanelDynamicStyles = () => {
|
|
9817
9830
|
const {
|
|
@@ -9819,12 +9832,12 @@ var PiPPanel = (props) => {
|
|
|
9819
9832
|
} = tokens;
|
|
9820
9833
|
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
9821
9834
|
if (panelWidth() < secondBreakpoint) {
|
|
9822
|
-
return
|
|
9835
|
+
return css`
|
|
9823
9836
|
flex-direction: column;
|
|
9824
9837
|
background-color: ${t2(colors.gray[300], colors.gray[600])};
|
|
9825
9838
|
`;
|
|
9826
9839
|
}
|
|
9827
|
-
return
|
|
9840
|
+
return css`
|
|
9828
9841
|
flex-direction: row;
|
|
9829
9842
|
background-color: ${t2(colors.gray[200], colors.darkGray[900])};
|
|
9830
9843
|
`;
|
|
@@ -9838,6 +9851,7 @@ var PiPPanel = (props) => {
|
|
|
9838
9851
|
};
|
|
9839
9852
|
if (win) {
|
|
9840
9853
|
win.addEventListener("resize", resizeCB);
|
|
9854
|
+
resizeCB();
|
|
9841
9855
|
}
|
|
9842
9856
|
onCleanup(() => {
|
|
9843
9857
|
if (win) {
|
|
@@ -9853,7 +9867,7 @@ var PiPPanel = (props) => {
|
|
|
9853
9867
|
_el$5.style.setProperty("width", "100vw");
|
|
9854
9868
|
insert(_el$5, () => props.children);
|
|
9855
9869
|
createRenderEffect(() => className(_el$5, clsx(styles().panel, getPanelDynamicStyles(), {
|
|
9856
|
-
[
|
|
9870
|
+
[css`
|
|
9857
9871
|
min-width: min-content;
|
|
9858
9872
|
`]: panelWidth() < thirdBreakpoint
|
|
9859
9873
|
}, "tsqd-main-panel")));
|
|
@@ -9862,8 +9876,11 @@ var PiPPanel = (props) => {
|
|
|
9862
9876
|
};
|
|
9863
9877
|
var DevtoolsPanel = (props) => {
|
|
9864
9878
|
const theme = useTheme();
|
|
9879
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
9880
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
9881
|
+
}) : u;
|
|
9865
9882
|
const styles = createMemo(() => {
|
|
9866
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
9883
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
9867
9884
|
});
|
|
9868
9885
|
const [isResizing, setIsResizing] = createSignal(false);
|
|
9869
9886
|
const position = createMemo(() => props.localStore.position || useQueryDevtoolsContext().position || POSITION);
|
|
@@ -9957,12 +9974,12 @@ var DevtoolsPanel = (props) => {
|
|
|
9957
9974
|
} = tokens;
|
|
9958
9975
|
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
9959
9976
|
if (panelWidth() < secondBreakpoint) {
|
|
9960
|
-
return
|
|
9977
|
+
return css`
|
|
9961
9978
|
flex-direction: column;
|
|
9962
9979
|
background-color: ${t2(colors.gray[300], colors.gray[600])};
|
|
9963
9980
|
`;
|
|
9964
9981
|
}
|
|
9965
|
-
return
|
|
9982
|
+
return css`
|
|
9966
9983
|
flex-direction: row;
|
|
9967
9984
|
background-color: ${t2(colors.gray[200], colors.darkGray[900])};
|
|
9968
9985
|
`;
|
|
@@ -9984,7 +10001,7 @@ var DevtoolsPanel = (props) => {
|
|
|
9984
10001
|
}), null);
|
|
9985
10002
|
createRenderEffect((_p$) => {
|
|
9986
10003
|
const _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
|
|
9987
|
-
[
|
|
10004
|
+
[css`
|
|
9988
10005
|
min-width: min-content;
|
|
9989
10006
|
`]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
|
|
9990
10007
|
}, "tsqd-main-panel"), _v$2 = position() === "bottom" || position() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto", _v$3 = position() === "right" || position() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto", _v$4 = clsx(styles().dragHandle, styles()[`dragHandle-position-${position()}`], "tsqd-drag-handle"), _v$5 = clsx(styles().closeBtn, styles()[`closeBtn-position-${position()}`], "tsqd-minimize-btn");
|
|
@@ -10009,8 +10026,11 @@ var ContentView = (props) => {
|
|
|
10009
10026
|
setupMutationCacheSubscription();
|
|
10010
10027
|
let containerRef;
|
|
10011
10028
|
const theme = useTheme();
|
|
10029
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
10030
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
10031
|
+
}) : u;
|
|
10012
10032
|
const styles = createMemo(() => {
|
|
10013
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10033
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10014
10034
|
});
|
|
10015
10035
|
const pip = usePiPWindow();
|
|
10016
10036
|
const [selectedView, setSelectedView] = createSignal("queries");
|
|
@@ -10441,10 +10461,10 @@ var ContentView = (props) => {
|
|
|
10441
10461
|
}
|
|
10442
10462
|
}), null);
|
|
10443
10463
|
createRenderEffect((_p$) => {
|
|
10444
|
-
const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) &&
|
|
10464
|
+
const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && css`
|
|
10445
10465
|
height: 50%;
|
|
10446
10466
|
max-height: 50%;
|
|
10447
|
-
`, panelWidth() < secondBreakpoint && !(selectedQueryHash() || selectedMutationId()) &&
|
|
10467
|
+
`, panelWidth() < secondBreakpoint && !(selectedQueryHash() || selectedMutationId()) && css`
|
|
10448
10468
|
height: 100%;
|
|
10449
10469
|
max-height: 100%;
|
|
10450
10470
|
`, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = styles().logoAndToggleContainer, _v$9 = clsx(styles().logo, "tsqd-text-logo-container"), _v$10 = clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack"), _v$11 = clsx(styles().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$12 = clsx(styles().row, "tsqd-filters-actions-container"), _v$13 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$14 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$15 = clsx("tsqd-query-filter-textfield"), _v$16 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$17 = `Sort order ${(selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1 ? "descending" : "ascending"}`, _v$18 = (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1, _v$19 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$20 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$21 = `Clear ${selectedView()} cache`, _v$22 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$23 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$24 = offline(), _v$25 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
|
|
@@ -10511,8 +10531,11 @@ var ContentView = (props) => {
|
|
|
10511
10531
|
};
|
|
10512
10532
|
var QueryRow = (props) => {
|
|
10513
10533
|
const theme = useTheme();
|
|
10534
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
10535
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
10536
|
+
}) : u;
|
|
10514
10537
|
const styles = createMemo(() => {
|
|
10515
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10538
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10516
10539
|
});
|
|
10517
10540
|
const {
|
|
10518
10541
|
colors,
|
|
@@ -10538,12 +10561,12 @@ var QueryRow = (props) => {
|
|
|
10538
10561
|
}));
|
|
10539
10562
|
const getObserverCountColorStyles = () => {
|
|
10540
10563
|
if (color() === "gray") {
|
|
10541
|
-
return
|
|
10564
|
+
return css`
|
|
10542
10565
|
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
10543
10566
|
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
10544
10567
|
`;
|
|
10545
10568
|
}
|
|
10546
|
-
return
|
|
10569
|
+
return css`
|
|
10547
10570
|
background-color: ${t2(colors[color()][200] + alpha[80], colors[color()][900])};
|
|
10548
10571
|
color: ${t2(colors[color()][800], colors[color()][300])};
|
|
10549
10572
|
`;
|
|
@@ -10582,8 +10605,11 @@ var QueryRow = (props) => {
|
|
|
10582
10605
|
};
|
|
10583
10606
|
var MutationRow = (props) => {
|
|
10584
10607
|
const theme = useTheme();
|
|
10608
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
10609
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
10610
|
+
}) : u;
|
|
10585
10611
|
const styles = createMemo(() => {
|
|
10586
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10612
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10587
10613
|
});
|
|
10588
10614
|
const {
|
|
10589
10615
|
colors,
|
|
@@ -10615,12 +10641,12 @@ var MutationRow = (props) => {
|
|
|
10615
10641
|
}));
|
|
10616
10642
|
const getObserverCountColorStyles = () => {
|
|
10617
10643
|
if (color() === "gray") {
|
|
10618
|
-
return
|
|
10644
|
+
return css`
|
|
10619
10645
|
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
10620
10646
|
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
10621
10647
|
`;
|
|
10622
10648
|
}
|
|
10623
|
-
return
|
|
10649
|
+
return css`
|
|
10624
10650
|
background-color: ${t2(colors[color()][200] + alpha[80], colors[color()][900])};
|
|
10625
10651
|
color: ${t2(colors[color()][800], colors[color()][300])};
|
|
10626
10652
|
`;
|
|
@@ -10697,8 +10723,11 @@ var QueryStatusCount = () => {
|
|
|
10697
10723
|
const paused = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "paused").length);
|
|
10698
10724
|
const inactive = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "inactive").length);
|
|
10699
10725
|
const theme = useTheme();
|
|
10726
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
10727
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
10728
|
+
}) : u;
|
|
10700
10729
|
const styles = createMemo(() => {
|
|
10701
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10730
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10702
10731
|
});
|
|
10703
10732
|
return (() => {
|
|
10704
10733
|
const _el$55 = _tmpl$26();
|
|
@@ -10759,8 +10788,11 @@ var MutationStatusCount = () => {
|
|
|
10759
10788
|
status: m.state.status
|
|
10760
10789
|
}) === "red").length);
|
|
10761
10790
|
const theme = useTheme();
|
|
10791
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
10792
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
10793
|
+
}) : u;
|
|
10762
10794
|
const styles = createMemo(() => {
|
|
10763
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10795
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10764
10796
|
});
|
|
10765
10797
|
return (() => {
|
|
10766
10798
|
const _el$56 = _tmpl$26();
|
|
@@ -10798,8 +10830,11 @@ var MutationStatusCount = () => {
|
|
|
10798
10830
|
};
|
|
10799
10831
|
var QueryStatus = (props) => {
|
|
10800
10832
|
const theme = useTheme();
|
|
10833
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
10834
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
10835
|
+
}) : u;
|
|
10801
10836
|
const styles = createMemo(() => {
|
|
10802
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10837
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10803
10838
|
});
|
|
10804
10839
|
const {
|
|
10805
10840
|
colors,
|
|
@@ -10836,7 +10871,7 @@ var QueryStatus = (props) => {
|
|
|
10836
10871
|
return showLabel();
|
|
10837
10872
|
},
|
|
10838
10873
|
get ["class"]() {
|
|
10839
|
-
return clsx(styles().queryStatusTag, !showLabel() &&
|
|
10874
|
+
return clsx(styles().queryStatusTag, !showLabel() && css`
|
|
10840
10875
|
cursor: pointer;
|
|
10841
10876
|
&:hover {
|
|
10842
10877
|
background: ${t2(colors.gray[200], colors.darkGray[400])}${alpha[80]};
|
|
@@ -10870,12 +10905,12 @@ var QueryStatus = (props) => {
|
|
|
10870
10905
|
}), _el$61);
|
|
10871
10906
|
insert(_el$61, () => props.count);
|
|
10872
10907
|
createRenderEffect((_p$) => {
|
|
10873
|
-
const _v$32 = clsx(
|
|
10908
|
+
const _v$32 = clsx(css`
|
|
10874
10909
|
width: ${tokens.size[1.5]};
|
|
10875
10910
|
height: ${tokens.size[1.5]};
|
|
10876
10911
|
border-radius: ${tokens.border.radius.full};
|
|
10877
10912
|
background-color: ${tokens.colors[props.color][500]};
|
|
10878
|
-
`, "tsqd-query-status-tag-dot"), _v$33 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" &&
|
|
10913
|
+
`, "tsqd-query-status-tag-dot"), _v$33 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" && css`
|
|
10879
10914
|
background-color: ${t2(colors[props.color][100], colors[props.color][900])};
|
|
10880
10915
|
color: ${t2(colors[props.color][700], colors[props.color][300])};
|
|
10881
10916
|
`, "tsqd-query-status-tag-count");
|
|
@@ -10891,8 +10926,11 @@ var QueryStatus = (props) => {
|
|
|
10891
10926
|
};
|
|
10892
10927
|
var QueryDetails = () => {
|
|
10893
10928
|
const theme = useTheme();
|
|
10929
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
10930
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
10931
|
+
}) : u;
|
|
10894
10932
|
const styles = createMemo(() => {
|
|
10895
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10933
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10896
10934
|
});
|
|
10897
10935
|
const {
|
|
10898
10936
|
colors
|
|
@@ -10955,13 +10993,13 @@ var QueryDetails = () => {
|
|
|
10955
10993
|
});
|
|
10956
10994
|
const getQueryStatusColors = () => {
|
|
10957
10995
|
if (color() === "gray") {
|
|
10958
|
-
return
|
|
10996
|
+
return css`
|
|
10959
10997
|
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
10960
10998
|
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
10961
10999
|
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
10962
11000
|
`;
|
|
10963
11001
|
}
|
|
10964
|
-
return
|
|
11002
|
+
return css`
|
|
10965
11003
|
background-color: ${t2(colors[color()][100], colors[color()][900])};
|
|
10966
11004
|
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
10967
11005
|
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
@@ -11027,9 +11065,9 @@ var QueryDetails = () => {
|
|
|
11027
11065
|
};
|
|
11028
11066
|
insert(_el$88, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$90);
|
|
11029
11067
|
createRenderEffect((_p$) => {
|
|
11030
|
-
const _v$34 = clsx(
|
|
11068
|
+
const _v$34 = clsx(css`
|
|
11031
11069
|
color: ${t2(colors.red[500], colors.red[400])};
|
|
11032
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$35 = queryStatus() === "pending", _v$36 =
|
|
11070
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$35 = queryStatus() === "pending", _v$36 = css`
|
|
11033
11071
|
background-color: ${t2(colors.red[500], colors.red[400])};
|
|
11034
11072
|
`;
|
|
11035
11073
|
_v$34 !== _p$._v$34 && className(_el$88, _p$._v$34 = _v$34);
|
|
@@ -11067,7 +11105,7 @@ var QueryDetails = () => {
|
|
|
11067
11105
|
}), null);
|
|
11068
11106
|
insert(_el$91, createComponent(ChevronDown, {}), null);
|
|
11069
11107
|
createRenderEffect((_p$) => {
|
|
11070
|
-
const _v$37 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$38 =
|
|
11108
|
+
const _v$37 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$38 = css`
|
|
11071
11109
|
background-color: ${tokens.colors.red[400]};
|
|
11072
11110
|
`, _v$39 = queryStatus() === "pending";
|
|
11073
11111
|
_v$37 !== _p$._v$37 && className(_el$91, _p$._v$37 = _v$37);
|
|
@@ -11101,25 +11139,25 @@ var QueryDetails = () => {
|
|
|
11101
11139
|
}
|
|
11102
11140
|
}));
|
|
11103
11141
|
createRenderEffect((_p$) => {
|
|
11104
|
-
const _v$40 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$41 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$42 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$43 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$44 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$45 = clsx(styles().actionsBody, "tsqd-query-details-actions-container"), _v$46 = clsx(
|
|
11142
|
+
const _v$40 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$41 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$42 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$43 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$44 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$45 = clsx(styles().actionsBody, "tsqd-query-details-actions-container"), _v$46 = clsx(css`
|
|
11105
11143
|
color: ${t2(colors.blue[600], colors.blue[400])};
|
|
11106
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$47 = statusLabel() === "fetching", _v$48 =
|
|
11144
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$47 = statusLabel() === "fetching", _v$48 = css`
|
|
11107
11145
|
background-color: ${t2(colors.blue[600], colors.blue[400])};
|
|
11108
|
-
`, _v$49 = clsx(
|
|
11146
|
+
`, _v$49 = clsx(css`
|
|
11109
11147
|
color: ${t2(colors.yellow[600], colors.yellow[400])};
|
|
11110
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$50 = queryStatus() === "pending", _v$51 =
|
|
11148
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$50 = queryStatus() === "pending", _v$51 = css`
|
|
11111
11149
|
background-color: ${t2(colors.yellow[600], colors.yellow[400])};
|
|
11112
|
-
`, _v$52 = clsx(
|
|
11150
|
+
`, _v$52 = clsx(css`
|
|
11113
11151
|
color: ${t2(colors.gray[600], colors.gray[300])};
|
|
11114
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$53 = queryStatus() === "pending", _v$54 =
|
|
11152
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$53 = queryStatus() === "pending", _v$54 = css`
|
|
11115
11153
|
background-color: ${t2(colors.gray[600], colors.gray[400])};
|
|
11116
|
-
`, _v$55 = clsx(
|
|
11154
|
+
`, _v$55 = clsx(css`
|
|
11117
11155
|
color: ${t2(colors.pink[500], colors.pink[400])};
|
|
11118
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$56 = statusLabel() === "fetching", _v$57 =
|
|
11156
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$56 = statusLabel() === "fetching", _v$57 = css`
|
|
11119
11157
|
background-color: ${t2(colors.pink[500], colors.pink[400])};
|
|
11120
|
-
`, _v$58 = clsx(
|
|
11158
|
+
`, _v$58 = clsx(css`
|
|
11121
11159
|
color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
11122
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$59 = restoringLoading(), _v$60 =
|
|
11160
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$59 = restoringLoading(), _v$60 = css`
|
|
11123
11161
|
background-color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
11124
11162
|
`, _v$61 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$62 = tokens.size[2], _v$63 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$64 = tokens.size[2];
|
|
11125
11163
|
_v$40 !== _p$._v$40 && className(_el$62, _p$._v$40 = _v$40);
|
|
@@ -11181,8 +11219,11 @@ var QueryDetails = () => {
|
|
|
11181
11219
|
};
|
|
11182
11220
|
var MutationDetails = () => {
|
|
11183
11221
|
const theme = useTheme();
|
|
11222
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
11223
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
11224
|
+
}) : u;
|
|
11184
11225
|
const styles = createMemo(() => {
|
|
11185
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
11226
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
11186
11227
|
});
|
|
11187
11228
|
const {
|
|
11188
11229
|
colors
|
|
@@ -11209,13 +11250,13 @@ var MutationDetails = () => {
|
|
|
11209
11250
|
const activeMutation = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().find((mutation) => mutation.mutationId === selectedMutationId()), false);
|
|
11210
11251
|
const getQueryStatusColors = () => {
|
|
11211
11252
|
if (color() === "gray") {
|
|
11212
|
-
return
|
|
11253
|
+
return css`
|
|
11213
11254
|
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
11214
11255
|
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
11215
11256
|
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
11216
11257
|
`;
|
|
11217
11258
|
}
|
|
11218
|
-
return
|
|
11259
|
+
return css`
|
|
11219
11260
|
background-color: ${t2(colors[color()][100], colors[color()][900])};
|
|
11220
11261
|
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
11221
11262
|
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
@@ -11389,7 +11430,7 @@ var createSubscribeToMutationCacheBatcher = (callback, equalityCheck = true) =>
|
|
|
11389
11430
|
});
|
|
11390
11431
|
return value;
|
|
11391
11432
|
};
|
|
11392
|
-
var stylesFactory2 = (theme) => {
|
|
11433
|
+
var stylesFactory2 = (theme, css) => {
|
|
11393
11434
|
const {
|
|
11394
11435
|
colors,
|
|
11395
11436
|
font,
|
|
@@ -11400,7 +11441,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11400
11441
|
} = tokens;
|
|
11401
11442
|
const t2 = (light, dark) => theme === "light" ? light : dark;
|
|
11402
11443
|
return {
|
|
11403
|
-
devtoolsBtn:
|
|
11444
|
+
devtoolsBtn: css`
|
|
11404
11445
|
z-index: 100000;
|
|
11405
11446
|
position: fixed;
|
|
11406
11447
|
padding: 4px;
|
|
@@ -11454,7 +11495,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11454
11495
|
}
|
|
11455
11496
|
}
|
|
11456
11497
|
`,
|
|
11457
|
-
panel:
|
|
11498
|
+
panel: css`
|
|
11458
11499
|
position: fixed;
|
|
11459
11500
|
z-index: 9999;
|
|
11460
11501
|
display: flex;
|
|
@@ -11480,26 +11521,26 @@ var stylesFactory2 = (theme) => {
|
|
|
11480
11521
|
background: ${t2(colors.gray[400], colors.darkGray[300])};
|
|
11481
11522
|
}
|
|
11482
11523
|
`,
|
|
11483
|
-
"devtoolsBtn-position-bottom-right":
|
|
11524
|
+
"devtoolsBtn-position-bottom-right": css`
|
|
11484
11525
|
bottom: 12px;
|
|
11485
11526
|
right: 12px;
|
|
11486
11527
|
`,
|
|
11487
|
-
"devtoolsBtn-position-bottom-left":
|
|
11528
|
+
"devtoolsBtn-position-bottom-left": css`
|
|
11488
11529
|
bottom: 12px;
|
|
11489
11530
|
left: 12px;
|
|
11490
11531
|
`,
|
|
11491
|
-
"devtoolsBtn-position-top-left":
|
|
11532
|
+
"devtoolsBtn-position-top-left": css`
|
|
11492
11533
|
top: 12px;
|
|
11493
11534
|
left: 12px;
|
|
11494
11535
|
`,
|
|
11495
|
-
"devtoolsBtn-position-top-right":
|
|
11536
|
+
"devtoolsBtn-position-top-right": css`
|
|
11496
11537
|
top: 12px;
|
|
11497
11538
|
right: 12px;
|
|
11498
11539
|
`,
|
|
11499
|
-
"devtoolsBtn-position-relative":
|
|
11540
|
+
"devtoolsBtn-position-relative": css`
|
|
11500
11541
|
position: relative;
|
|
11501
11542
|
`,
|
|
11502
|
-
"panel-position-top":
|
|
11543
|
+
"panel-position-top": css`
|
|
11503
11544
|
top: 0;
|
|
11504
11545
|
right: 0;
|
|
11505
11546
|
left: 0;
|
|
@@ -11507,7 +11548,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11507
11548
|
min-height: ${size2[14]};
|
|
11508
11549
|
border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
11509
11550
|
`,
|
|
11510
|
-
"panel-position-bottom":
|
|
11551
|
+
"panel-position-bottom": css`
|
|
11511
11552
|
bottom: 0;
|
|
11512
11553
|
right: 0;
|
|
11513
11554
|
left: 0;
|
|
@@ -11515,21 +11556,21 @@ var stylesFactory2 = (theme) => {
|
|
|
11515
11556
|
min-height: ${size2[14]};
|
|
11516
11557
|
border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
11517
11558
|
`,
|
|
11518
|
-
"panel-position-right":
|
|
11559
|
+
"panel-position-right": css`
|
|
11519
11560
|
bottom: 0;
|
|
11520
11561
|
right: 0;
|
|
11521
11562
|
top: 0;
|
|
11522
11563
|
border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
11523
11564
|
max-width: 90%;
|
|
11524
11565
|
`,
|
|
11525
|
-
"panel-position-left":
|
|
11566
|
+
"panel-position-left": css`
|
|
11526
11567
|
bottom: 0;
|
|
11527
11568
|
left: 0;
|
|
11528
11569
|
top: 0;
|
|
11529
11570
|
border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
11530
11571
|
max-width: 90%;
|
|
11531
11572
|
`,
|
|
11532
|
-
closeBtn:
|
|
11573
|
+
closeBtn: css`
|
|
11533
11574
|
position: absolute;
|
|
11534
11575
|
cursor: pointer;
|
|
11535
11576
|
z-index: 5;
|
|
@@ -11550,7 +11591,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11550
11591
|
height: ${size2[2]};
|
|
11551
11592
|
}
|
|
11552
11593
|
`,
|
|
11553
|
-
"closeBtn-position-top":
|
|
11594
|
+
"closeBtn-position-top": css`
|
|
11554
11595
|
bottom: 0;
|
|
11555
11596
|
right: ${size2[2]};
|
|
11556
11597
|
transform: translate(0, 100%);
|
|
@@ -11574,7 +11615,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11574
11615
|
transform: rotate(180deg);
|
|
11575
11616
|
}
|
|
11576
11617
|
`,
|
|
11577
|
-
"closeBtn-position-bottom":
|
|
11618
|
+
"closeBtn-position-bottom": css`
|
|
11578
11619
|
top: 0;
|
|
11579
11620
|
right: ${size2[2]};
|
|
11580
11621
|
transform: translate(0, -100%);
|
|
@@ -11594,7 +11635,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11594
11635
|
width: calc(100% + ${size2[5]});
|
|
11595
11636
|
}
|
|
11596
11637
|
`,
|
|
11597
|
-
"closeBtn-position-right":
|
|
11638
|
+
"closeBtn-position-right": css`
|
|
11598
11639
|
bottom: ${size2[2]};
|
|
11599
11640
|
left: 0;
|
|
11600
11641
|
transform: translate(-100%, 0);
|
|
@@ -11617,7 +11658,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11617
11658
|
transform: rotate(-90deg);
|
|
11618
11659
|
}
|
|
11619
11660
|
`,
|
|
11620
|
-
"closeBtn-position-left":
|
|
11661
|
+
"closeBtn-position-left": css`
|
|
11621
11662
|
bottom: ${size2[2]};
|
|
11622
11663
|
right: 0;
|
|
11623
11664
|
transform: translate(100%, 0);
|
|
@@ -11640,7 +11681,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11640
11681
|
transform: rotate(90deg);
|
|
11641
11682
|
}
|
|
11642
11683
|
`,
|
|
11643
|
-
queriesContainer:
|
|
11684
|
+
queriesContainer: css`
|
|
11644
11685
|
flex: 1 1 700px;
|
|
11645
11686
|
background-color: ${t2(colors.gray[50], colors.darkGray[700])};
|
|
11646
11687
|
display: flex;
|
|
@@ -11649,7 +11690,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11649
11690
|
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
11650
11691
|
}
|
|
11651
11692
|
`,
|
|
11652
|
-
dragHandle:
|
|
11693
|
+
dragHandle: css`
|
|
11653
11694
|
position: absolute;
|
|
11654
11695
|
transition: background-color 0.125s ease;
|
|
11655
11696
|
&:hover {
|
|
@@ -11657,31 +11698,31 @@ var stylesFactory2 = (theme) => {
|
|
|
11657
11698
|
}
|
|
11658
11699
|
z-index: 4;
|
|
11659
11700
|
`,
|
|
11660
|
-
"dragHandle-position-top":
|
|
11701
|
+
"dragHandle-position-top": css`
|
|
11661
11702
|
bottom: 0;
|
|
11662
11703
|
width: 100%;
|
|
11663
11704
|
height: 3px;
|
|
11664
11705
|
cursor: ns-resize;
|
|
11665
11706
|
`,
|
|
11666
|
-
"dragHandle-position-bottom":
|
|
11707
|
+
"dragHandle-position-bottom": css`
|
|
11667
11708
|
top: 0;
|
|
11668
11709
|
width: 100%;
|
|
11669
11710
|
height: 3px;
|
|
11670
11711
|
cursor: ns-resize;
|
|
11671
11712
|
`,
|
|
11672
|
-
"dragHandle-position-right":
|
|
11713
|
+
"dragHandle-position-right": css`
|
|
11673
11714
|
left: 0;
|
|
11674
11715
|
width: 3px;
|
|
11675
11716
|
height: 100%;
|
|
11676
11717
|
cursor: ew-resize;
|
|
11677
11718
|
`,
|
|
11678
|
-
"dragHandle-position-left":
|
|
11719
|
+
"dragHandle-position-left": css`
|
|
11679
11720
|
right: 0;
|
|
11680
11721
|
width: 3px;
|
|
11681
11722
|
height: 100%;
|
|
11682
11723
|
cursor: ew-resize;
|
|
11683
11724
|
`,
|
|
11684
|
-
row:
|
|
11725
|
+
row: css`
|
|
11685
11726
|
display: flex;
|
|
11686
11727
|
justify-content: space-between;
|
|
11687
11728
|
align-items: center;
|
|
@@ -11698,12 +11739,12 @@ var stylesFactory2 = (theme) => {
|
|
|
11698
11739
|
flex-direction: column;
|
|
11699
11740
|
}
|
|
11700
11741
|
`,
|
|
11701
|
-
logoAndToggleContainer:
|
|
11742
|
+
logoAndToggleContainer: css`
|
|
11702
11743
|
display: flex;
|
|
11703
11744
|
gap: ${tokens.size[3]};
|
|
11704
11745
|
align-items: center;
|
|
11705
11746
|
`,
|
|
11706
|
-
logo:
|
|
11747
|
+
logo: css`
|
|
11707
11748
|
cursor: pointer;
|
|
11708
11749
|
display: flex;
|
|
11709
11750
|
flex-direction: column;
|
|
@@ -11720,14 +11761,14 @@ var stylesFactory2 = (theme) => {
|
|
|
11720
11761
|
outline: 2px solid ${colors.blue[800]};
|
|
11721
11762
|
}
|
|
11722
11763
|
`,
|
|
11723
|
-
tanstackLogo:
|
|
11764
|
+
tanstackLogo: css`
|
|
11724
11765
|
font-size: ${font.size.md};
|
|
11725
11766
|
font-weight: ${font.weight.bold};
|
|
11726
11767
|
line-height: ${font.lineHeight.xs};
|
|
11727
11768
|
white-space: nowrap;
|
|
11728
11769
|
color: ${t2(colors.gray[600], colors.gray[300])};
|
|
11729
11770
|
`,
|
|
11730
|
-
queryFlavorLogo:
|
|
11771
|
+
queryFlavorLogo: css`
|
|
11731
11772
|
font-weight: ${font.weight.semibold};
|
|
11732
11773
|
font-size: ${font.size.xs};
|
|
11733
11774
|
background: linear-gradient(
|
|
@@ -11740,12 +11781,12 @@ var stylesFactory2 = (theme) => {
|
|
|
11740
11781
|
-webkit-text-fill-color: transparent;
|
|
11741
11782
|
white-space: nowrap;
|
|
11742
11783
|
`,
|
|
11743
|
-
queryStatusContainer:
|
|
11784
|
+
queryStatusContainer: css`
|
|
11744
11785
|
display: flex;
|
|
11745
11786
|
gap: ${tokens.size[2]};
|
|
11746
11787
|
height: min-content;
|
|
11747
11788
|
`,
|
|
11748
|
-
queryStatusTag:
|
|
11789
|
+
queryStatusTag: css`
|
|
11749
11790
|
display: flex;
|
|
11750
11791
|
gap: ${tokens.size[1.5]};
|
|
11751
11792
|
box-sizing: border-box;
|
|
@@ -11766,10 +11807,10 @@ var stylesFactory2 = (theme) => {
|
|
|
11766
11807
|
outline: 2px solid ${colors.blue[800]};
|
|
11767
11808
|
}
|
|
11768
11809
|
`,
|
|
11769
|
-
queryStatusTagLabel:
|
|
11810
|
+
queryStatusTagLabel: css`
|
|
11770
11811
|
font-size: ${font.size.xs};
|
|
11771
11812
|
`,
|
|
11772
|
-
queryStatusCount:
|
|
11813
|
+
queryStatusCount: css`
|
|
11773
11814
|
font-size: ${font.size.xs};
|
|
11774
11815
|
padding: 0 5px;
|
|
11775
11816
|
display: flex;
|
|
@@ -11781,7 +11822,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11781
11822
|
font-variant-numeric: tabular-nums;
|
|
11782
11823
|
height: ${tokens.size[4.5]};
|
|
11783
11824
|
`,
|
|
11784
|
-
statusTooltip:
|
|
11825
|
+
statusTooltip: css`
|
|
11785
11826
|
position: absolute;
|
|
11786
11827
|
z-index: 1;
|
|
11787
11828
|
background-color: ${t2(colors.gray[50], colors.darkGray[500])};
|
|
@@ -11821,7 +11862,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11821
11862
|
border-width: 7px;
|
|
11822
11863
|
}
|
|
11823
11864
|
`,
|
|
11824
|
-
filtersContainer:
|
|
11865
|
+
filtersContainer: css`
|
|
11825
11866
|
display: flex;
|
|
11826
11867
|
gap: ${tokens.size[2]};
|
|
11827
11868
|
& > button {
|
|
@@ -11850,7 +11891,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11850
11891
|
}
|
|
11851
11892
|
}
|
|
11852
11893
|
`,
|
|
11853
|
-
filterInput:
|
|
11894
|
+
filterInput: css`
|
|
11854
11895
|
padding: ${size2[0.5]} ${size2[2]};
|
|
11855
11896
|
border-radius: ${tokens.border.radius.sm};
|
|
11856
11897
|
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
@@ -11889,7 +11930,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11889
11930
|
outline: 2px solid ${colors.blue[800]};
|
|
11890
11931
|
}
|
|
11891
11932
|
`,
|
|
11892
|
-
filterSelect:
|
|
11933
|
+
filterSelect: css`
|
|
11893
11934
|
padding: ${tokens.size[0.5]} ${tokens.size[2]};
|
|
11894
11935
|
border-radius: ${tokens.border.radius.sm};
|
|
11895
11936
|
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
@@ -11923,11 +11964,11 @@ var stylesFactory2 = (theme) => {
|
|
|
11923
11964
|
outline: 2px solid ${colors.blue[800]};
|
|
11924
11965
|
}
|
|
11925
11966
|
`,
|
|
11926
|
-
actionsContainer:
|
|
11967
|
+
actionsContainer: css`
|
|
11927
11968
|
display: flex;
|
|
11928
11969
|
gap: ${tokens.size[2]};
|
|
11929
11970
|
`,
|
|
11930
|
-
actionsBtn:
|
|
11971
|
+
actionsBtn: css`
|
|
11931
11972
|
border-radius: ${tokens.border.radius.sm};
|
|
11932
11973
|
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
11933
11974
|
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
@@ -11954,13 +11995,13 @@ var stylesFactory2 = (theme) => {
|
|
|
11954
11995
|
outline: 2px solid ${colors.blue[800]};
|
|
11955
11996
|
}
|
|
11956
11997
|
`,
|
|
11957
|
-
actionsBtnOffline:
|
|
11998
|
+
actionsBtnOffline: css`
|
|
11958
11999
|
& svg {
|
|
11959
12000
|
stroke: ${t2(colors.yellow[700], colors.yellow[500])};
|
|
11960
12001
|
fill: ${t2(colors.yellow[700], colors.yellow[500])};
|
|
11961
12002
|
}
|
|
11962
12003
|
`,
|
|
11963
|
-
overflowQueryContainer:
|
|
12004
|
+
overflowQueryContainer: css`
|
|
11964
12005
|
flex: 1;
|
|
11965
12006
|
overflow-y: auto;
|
|
11966
12007
|
& > div {
|
|
@@ -11968,7 +12009,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11968
12009
|
flex-direction: column;
|
|
11969
12010
|
}
|
|
11970
12011
|
`,
|
|
11971
|
-
queryRow:
|
|
12012
|
+
queryRow: css`
|
|
11972
12013
|
display: flex;
|
|
11973
12014
|
align-items: center;
|
|
11974
12015
|
padding: 0;
|
|
@@ -12030,10 +12071,10 @@ var stylesFactory2 = (theme) => {
|
|
|
12030
12071
|
font-size: ${font.size.xs};
|
|
12031
12072
|
}
|
|
12032
12073
|
`,
|
|
12033
|
-
selectedQueryRow:
|
|
12074
|
+
selectedQueryRow: css`
|
|
12034
12075
|
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
12035
12076
|
`,
|
|
12036
|
-
detailsContainer:
|
|
12077
|
+
detailsContainer: css`
|
|
12037
12078
|
flex: 1 1 700px;
|
|
12038
12079
|
background-color: ${t2(colors.gray[50], colors.darkGray[700])};
|
|
12039
12080
|
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
@@ -12044,7 +12085,7 @@ var stylesFactory2 = (theme) => {
|
|
|
12044
12085
|
display: flex;
|
|
12045
12086
|
text-align: left;
|
|
12046
12087
|
`,
|
|
12047
|
-
detailsHeader:
|
|
12088
|
+
detailsHeader: css`
|
|
12048
12089
|
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
12049
12090
|
position: sticky;
|
|
12050
12091
|
top: 0;
|
|
@@ -12056,7 +12097,7 @@ var stylesFactory2 = (theme) => {
|
|
|
12056
12097
|
line-height: ${font.lineHeight.xs};
|
|
12057
12098
|
text-align: left;
|
|
12058
12099
|
`,
|
|
12059
|
-
detailsBody:
|
|
12100
|
+
detailsBody: css`
|
|
12060
12101
|
margin: ${tokens.size[1.5]} 0px ${tokens.size[2]} 0px;
|
|
12061
12102
|
& > div {
|
|
12062
12103
|
display: flex;
|
|
@@ -12090,13 +12131,13 @@ var stylesFactory2 = (theme) => {
|
|
|
12090
12131
|
align-items: center;
|
|
12091
12132
|
}
|
|
12092
12133
|
`,
|
|
12093
|
-
queryDetailsStatus:
|
|
12134
|
+
queryDetailsStatus: css`
|
|
12094
12135
|
border: 1px solid ${colors.darkGray[200]};
|
|
12095
12136
|
border-radius: ${tokens.border.radius.sm};
|
|
12096
12137
|
font-weight: ${font.weight.medium};
|
|
12097
12138
|
padding: ${tokens.size[1]} ${tokens.size[2.5]};
|
|
12098
12139
|
`,
|
|
12099
|
-
actionsBody:
|
|
12140
|
+
actionsBody: css`
|
|
12100
12141
|
flex-wrap: wrap;
|
|
12101
12142
|
margin: ${tokens.size[2]} 0px ${tokens.size[2]} 0px;
|
|
12102
12143
|
display: flex;
|
|
@@ -12136,7 +12177,7 @@ var stylesFactory2 = (theme) => {
|
|
|
12136
12177
|
}
|
|
12137
12178
|
}
|
|
12138
12179
|
`,
|
|
12139
|
-
actionsSelect:
|
|
12180
|
+
actionsSelect: css`
|
|
12140
12181
|
font-size: ${font.size.xs};
|
|
12141
12182
|
padding: ${tokens.size[0.5]} ${tokens.size[2]};
|
|
12142
12183
|
display: flex;
|
|
@@ -12185,7 +12226,7 @@ var stylesFactory2 = (theme) => {
|
|
|
12185
12226
|
height: ${tokens.size[2]};
|
|
12186
12227
|
}
|
|
12187
12228
|
`,
|
|
12188
|
-
settingsMenu:
|
|
12229
|
+
settingsMenu: css`
|
|
12189
12230
|
display: flex;
|
|
12190
12231
|
& * {
|
|
12191
12232
|
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
@@ -12201,7 +12242,7 @@ var stylesFactory2 = (theme) => {
|
|
|
12201
12242
|
min-width: 120px;
|
|
12202
12243
|
padding: ${size2[0.5]};
|
|
12203
12244
|
`,
|
|
12204
|
-
settingsSubTrigger:
|
|
12245
|
+
settingsSubTrigger: css`
|
|
12205
12246
|
display: flex;
|
|
12206
12247
|
align-items: center;
|
|
12207
12248
|
justify-content: space-between;
|
|
@@ -12229,14 +12270,14 @@ var stylesFactory2 = (theme) => {
|
|
|
12229
12270
|
cursor: not-allowed;
|
|
12230
12271
|
}
|
|
12231
12272
|
`,
|
|
12232
|
-
settingsMenuHeader:
|
|
12273
|
+
settingsMenuHeader: css`
|
|
12233
12274
|
padding: ${tokens.size[1]} ${tokens.size[1]};
|
|
12234
12275
|
font-weight: ${font.weight.medium};
|
|
12235
12276
|
border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
12236
12277
|
color: ${t2(colors.gray[500], colors.gray[400])};
|
|
12237
12278
|
font-size: ${font.size["xs"]};
|
|
12238
12279
|
`,
|
|
12239
|
-
settingsSubButton:
|
|
12280
|
+
settingsSubButton: css`
|
|
12240
12281
|
display: flex;
|
|
12241
12282
|
align-items: center;
|
|
12242
12283
|
justify-content: space-between;
|
|
@@ -12258,7 +12299,7 @@ var stylesFactory2 = (theme) => {
|
|
|
12258
12299
|
outline: 2px solid ${colors.blue[800]};
|
|
12259
12300
|
}
|
|
12260
12301
|
`,
|
|
12261
|
-
themeSelectedButton:
|
|
12302
|
+
themeSelectedButton: css`
|
|
12262
12303
|
background-color: ${t2(colors.purple[100], colors.purple[900])};
|
|
12263
12304
|
color: ${t2(colors.purple[700], colors.purple[300])};
|
|
12264
12305
|
& svg {
|
|
@@ -12268,7 +12309,7 @@ var stylesFactory2 = (theme) => {
|
|
|
12268
12309
|
background-color: ${t2(colors.purple[100], colors.purple[900])};
|
|
12269
12310
|
}
|
|
12270
12311
|
`,
|
|
12271
|
-
viewToggle:
|
|
12312
|
+
viewToggle: css`
|
|
12272
12313
|
border-radius: ${tokens.border.radius.sm};
|
|
12273
12314
|
background-color: ${t2(colors.gray[200], colors.darkGray[600])};
|
|
12274
12315
|
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
@@ -12320,8 +12361,8 @@ var stylesFactory2 = (theme) => {
|
|
|
12320
12361
|
`
|
|
12321
12362
|
};
|
|
12322
12363
|
};
|
|
12323
|
-
var lightStyles2 = stylesFactory2("light");
|
|
12324
|
-
var darkStyles2 = stylesFactory2("dark");
|
|
12364
|
+
var lightStyles2 = (css) => stylesFactory2("light", css);
|
|
12365
|
+
var darkStyles2 = (css) => stylesFactory2("dark", css);
|
|
12325
12366
|
delegateEvents(["click", "mousedown", "input"]);
|
|
12326
12367
|
/*! Bundled license information:
|
|
12327
12368
|
|