@tanstack/query-devtools 5.67.2 → 5.71.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.
- package/build/DevtoolsComponent/{J3FDRF32.js → BOZWRHTN.js} +2 -2
- package/build/DevtoolsComponent/{VONRGPZ6.js → ZRV36ZCO.js} +2 -2
- package/build/DevtoolsPanelComponent/{2QQPFIXG.js → TFRCC47K.js} +2 -2
- package/build/DevtoolsPanelComponent/{3VW64HDT.js → U2DVUOLY.js} +2 -2
- package/build/chunk/{4F76KWFD.js → KMI5VYOH.js} +54 -48
- package/build/chunk/{YIUCDINQ.js → KX7DYCBK.js} +54 -48
- package/build/chunk/{TBLV65XX.js → L3NTYGQ3.js} +42 -42
- package/build/chunk/{67EVQ76A.js → YADWEDPJ.js} +42 -42
- package/build/dev.cjs +147 -141
- package/build/dev.js +3 -3
- package/build/index.cjs +147 -141
- package/build/index.d.cts +9 -5
- package/build/index.d.ts +9 -5
- package/build/index.js +3 -3
- package/package.json +4 -4
|
@@ -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/YADWEDPJ.js';
|
|
2
|
+
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/KMI5VYOH.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/L3NTYGQ3.js';
|
|
2
|
+
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/KX7DYCBK.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/L3NTYGQ3.js';
|
|
2
|
+
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/KX7DYCBK.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/YADWEDPJ.js';
|
|
2
|
+
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/KMI5VYOH.js';
|
|
3
3
|
|
|
4
4
|
// src/DevtoolsPanelComponent.tsx
|
|
5
5
|
var DevtoolsPanelComponent = (props) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
1
|
+
// ../../node_modules/.pnpm/solid-js@1.9.5/node_modules/solid-js/dist/solid.js
|
|
2
2
|
var sharedConfig = {
|
|
3
3
|
context: void 0,
|
|
4
4
|
registry: void 0,
|
|
@@ -25,6 +25,7 @@ function nextHydrateContext() {
|
|
|
25
25
|
count: 0
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
+
var IS_DEV = false;
|
|
28
29
|
var equalFn = (a, b) => a === b;
|
|
29
30
|
var $PROXY = Symbol("solid-proxy");
|
|
30
31
|
var SUPPORTS_PROXY = typeof Proxy === "function";
|
|
@@ -463,7 +464,7 @@ function writeSignal(node, value, isComp) {
|
|
|
463
464
|
}
|
|
464
465
|
if (Updates.length > 1e6) {
|
|
465
466
|
Updates = [];
|
|
466
|
-
if (
|
|
467
|
+
if (IS_DEV)
|
|
467
468
|
;
|
|
468
469
|
throw new Error();
|
|
469
470
|
}
|
|
@@ -1231,7 +1232,7 @@ function lazy(fn) {
|
|
|
1231
1232
|
let Comp;
|
|
1232
1233
|
return createMemo(
|
|
1233
1234
|
() => (Comp = comp()) ? untrack(() => {
|
|
1234
|
-
if (
|
|
1235
|
+
if (IS_DEV)
|
|
1235
1236
|
;
|
|
1236
1237
|
if (!ctx || sharedConfig.done)
|
|
1237
1238
|
return Comp(props);
|
|
@@ -1266,8 +1267,9 @@ function Index(props) {
|
|
|
1266
1267
|
}
|
|
1267
1268
|
function Show(props) {
|
|
1268
1269
|
const keyed = props.keyed;
|
|
1269
|
-
const
|
|
1270
|
-
|
|
1270
|
+
const conditionValue = createMemo(() => props.when, void 0, void 0);
|
|
1271
|
+
const condition = keyed ? conditionValue : createMemo(conditionValue, void 0, {
|
|
1272
|
+
equals: (a, b) => !a === !b
|
|
1271
1273
|
});
|
|
1272
1274
|
return createMemo(
|
|
1273
1275
|
() => {
|
|
@@ -1280,7 +1282,7 @@ function Show(props) {
|
|
|
1280
1282
|
keyed ? c : () => {
|
|
1281
1283
|
if (!untrack(condition))
|
|
1282
1284
|
throw narrowedError("Show");
|
|
1283
|
-
return
|
|
1285
|
+
return conditionValue();
|
|
1284
1286
|
}
|
|
1285
1287
|
)
|
|
1286
1288
|
) : child;
|
|
@@ -1292,43 +1294,44 @@ function Show(props) {
|
|
|
1292
1294
|
);
|
|
1293
1295
|
}
|
|
1294
1296
|
function Switch(props) {
|
|
1295
|
-
|
|
1296
|
-
const
|
|
1297
|
-
|
|
1298
|
-
()
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
equals
|
|
1297
|
+
const chs = children(() => props.children);
|
|
1298
|
+
const switchFunc = createMemo(() => {
|
|
1299
|
+
const ch = chs();
|
|
1300
|
+
const mps = Array.isArray(ch) ? ch : [ch];
|
|
1301
|
+
let func = () => void 0;
|
|
1302
|
+
for (let i = 0; i < mps.length; i++) {
|
|
1303
|
+
const index = i;
|
|
1304
|
+
const mp = mps[i];
|
|
1305
|
+
const prevFunc = func;
|
|
1306
|
+
const conditionValue = createMemo(
|
|
1307
|
+
() => prevFunc() ? void 0 : mp.when,
|
|
1308
|
+
void 0,
|
|
1309
|
+
void 0
|
|
1310
|
+
);
|
|
1311
|
+
const condition = mp.keyed ? conditionValue : createMemo(conditionValue, void 0, {
|
|
1312
|
+
equals: (a, b) => !a === !b
|
|
1313
|
+
});
|
|
1314
|
+
func = () => prevFunc() || (condition() ? [index, conditionValue, mp] : void 0);
|
|
1314
1315
|
}
|
|
1315
|
-
|
|
1316
|
+
return func;
|
|
1317
|
+
});
|
|
1316
1318
|
return createMemo(
|
|
1317
1319
|
() => {
|
|
1318
|
-
const
|
|
1319
|
-
if (
|
|
1320
|
+
const sel = switchFunc()();
|
|
1321
|
+
if (!sel)
|
|
1320
1322
|
return props.fallback;
|
|
1321
|
-
const
|
|
1322
|
-
const
|
|
1323
|
+
const [index, conditionValue, mp] = sel;
|
|
1324
|
+
const child = mp.children;
|
|
1325
|
+
const fn = typeof child === "function" && child.length > 0;
|
|
1323
1326
|
return fn ? untrack(
|
|
1324
|
-
() =>
|
|
1325
|
-
keyed ?
|
|
1326
|
-
if (untrack(
|
|
1327
|
+
() => child(
|
|
1328
|
+
mp.keyed ? conditionValue() : () => {
|
|
1329
|
+
if (untrack(switchFunc)()?.[0] !== index)
|
|
1327
1330
|
throw narrowedError("Match");
|
|
1328
|
-
return
|
|
1331
|
+
return conditionValue();
|
|
1329
1332
|
}
|
|
1330
1333
|
)
|
|
1331
|
-
) :
|
|
1334
|
+
) : child;
|
|
1332
1335
|
},
|
|
1333
1336
|
void 0,
|
|
1334
1337
|
void 0
|
|
@@ -1339,7 +1342,7 @@ function Match(props) {
|
|
|
1339
1342
|
}
|
|
1340
1343
|
var DEV = void 0;
|
|
1341
1344
|
|
|
1342
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
1345
|
+
// ../../node_modules/.pnpm/solid-js@1.9.5/node_modules/solid-js/web/dist/web.js
|
|
1343
1346
|
var booleans = [
|
|
1344
1347
|
"allowfullscreen",
|
|
1345
1348
|
"async",
|
|
@@ -1591,12 +1594,12 @@ function render(code, element, init, options = {}) {
|
|
|
1591
1594
|
element.textContent = "";
|
|
1592
1595
|
};
|
|
1593
1596
|
}
|
|
1594
|
-
function template(html, isImportNode, isSVG) {
|
|
1597
|
+
function template(html, isImportNode, isSVG, isMathML) {
|
|
1595
1598
|
let node;
|
|
1596
1599
|
const create = () => {
|
|
1597
|
-
const t = document.createElement("template");
|
|
1600
|
+
const t = isMathML ? document.createElementNS("http://www.w3.org/1998/Math/MathML", "template") : document.createElement("template");
|
|
1598
1601
|
t.innerHTML = html;
|
|
1599
|
-
return isSVG ? t.content.firstChild.firstChild : t.content.firstChild;
|
|
1602
|
+
return isSVG ? t.content.firstChild.firstChild : isMathML ? t.firstChild : t.content.firstChild;
|
|
1600
1603
|
};
|
|
1601
1604
|
const fn = isImportNode ? () => untrack(() => document.importNode(node || (node = create()), true)) : () => (node || (node = create())).cloneNode(true);
|
|
1602
1605
|
fn.cloneNode = fn;
|
|
@@ -2080,22 +2083,25 @@ function Portal(props) {
|
|
|
2080
2083
|
);
|
|
2081
2084
|
return marker;
|
|
2082
2085
|
}
|
|
2083
|
-
function
|
|
2084
|
-
const
|
|
2085
|
-
const cached = createMemo(() => p.component);
|
|
2086
|
+
function createDynamic(component, props) {
|
|
2087
|
+
const cached = createMemo(component);
|
|
2086
2088
|
return createMemo(() => {
|
|
2087
|
-
const
|
|
2088
|
-
switch (typeof
|
|
2089
|
+
const component2 = cached();
|
|
2090
|
+
switch (typeof component2) {
|
|
2089
2091
|
case "function":
|
|
2090
|
-
return untrack(() =>
|
|
2092
|
+
return untrack(() => component2(props));
|
|
2091
2093
|
case "string":
|
|
2092
|
-
const isSvg = SVGElements.has(
|
|
2093
|
-
const el = sharedConfig.context ? getNextElement() : createElement(
|
|
2094
|
-
spread(el,
|
|
2094
|
+
const isSvg = SVGElements.has(component2);
|
|
2095
|
+
const el = sharedConfig.context ? getNextElement() : createElement(component2, isSvg);
|
|
2096
|
+
spread(el, props, isSvg);
|
|
2095
2097
|
return el;
|
|
2096
2098
|
}
|
|
2097
2099
|
});
|
|
2098
2100
|
}
|
|
2101
|
+
function Dynamic(props) {
|
|
2102
|
+
const [, others] = splitProps(props, ["component"]);
|
|
2103
|
+
return createDynamic(() => props.component, others);
|
|
2104
|
+
}
|
|
2099
2105
|
|
|
2100
2106
|
// ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/double-indexed-kv.js
|
|
2101
2107
|
var DoubleIndexedKV = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
1
|
+
// ../../node_modules/.pnpm/solid-js@1.9.5/node_modules/solid-js/dist/solid.js
|
|
2
2
|
var sharedConfig = {
|
|
3
3
|
context: void 0,
|
|
4
4
|
registry: void 0,
|
|
@@ -25,6 +25,7 @@ function nextHydrateContext() {
|
|
|
25
25
|
count: 0
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
+
var IS_DEV = false;
|
|
28
29
|
var equalFn = (a, b) => a === b;
|
|
29
30
|
var $PROXY = Symbol("solid-proxy");
|
|
30
31
|
var SUPPORTS_PROXY = typeof Proxy === "function";
|
|
@@ -463,7 +464,7 @@ function writeSignal(node, value, isComp) {
|
|
|
463
464
|
}
|
|
464
465
|
if (Updates.length > 1e6) {
|
|
465
466
|
Updates = [];
|
|
466
|
-
if (
|
|
467
|
+
if (IS_DEV)
|
|
467
468
|
;
|
|
468
469
|
throw new Error();
|
|
469
470
|
}
|
|
@@ -1231,7 +1232,7 @@ function lazy(fn) {
|
|
|
1231
1232
|
let Comp;
|
|
1232
1233
|
return createMemo(
|
|
1233
1234
|
() => (Comp = comp()) ? untrack(() => {
|
|
1234
|
-
if (
|
|
1235
|
+
if (IS_DEV)
|
|
1235
1236
|
;
|
|
1236
1237
|
if (!ctx || sharedConfig.done)
|
|
1237
1238
|
return Comp(props);
|
|
@@ -1266,8 +1267,9 @@ function Index(props) {
|
|
|
1266
1267
|
}
|
|
1267
1268
|
function Show(props) {
|
|
1268
1269
|
const keyed = props.keyed;
|
|
1269
|
-
const
|
|
1270
|
-
|
|
1270
|
+
const conditionValue = createMemo(() => props.when, void 0, void 0);
|
|
1271
|
+
const condition = keyed ? conditionValue : createMemo(conditionValue, void 0, {
|
|
1272
|
+
equals: (a, b) => !a === !b
|
|
1271
1273
|
});
|
|
1272
1274
|
return createMemo(
|
|
1273
1275
|
() => {
|
|
@@ -1280,7 +1282,7 @@ function Show(props) {
|
|
|
1280
1282
|
keyed ? c : () => {
|
|
1281
1283
|
if (!untrack(condition))
|
|
1282
1284
|
throw narrowedError("Show");
|
|
1283
|
-
return
|
|
1285
|
+
return conditionValue();
|
|
1284
1286
|
}
|
|
1285
1287
|
)
|
|
1286
1288
|
) : child;
|
|
@@ -1292,43 +1294,44 @@ function Show(props) {
|
|
|
1292
1294
|
);
|
|
1293
1295
|
}
|
|
1294
1296
|
function Switch(props) {
|
|
1295
|
-
|
|
1296
|
-
const
|
|
1297
|
-
|
|
1298
|
-
()
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
equals
|
|
1297
|
+
const chs = children(() => props.children);
|
|
1298
|
+
const switchFunc = createMemo(() => {
|
|
1299
|
+
const ch = chs();
|
|
1300
|
+
const mps = Array.isArray(ch) ? ch : [ch];
|
|
1301
|
+
let func = () => void 0;
|
|
1302
|
+
for (let i = 0; i < mps.length; i++) {
|
|
1303
|
+
const index = i;
|
|
1304
|
+
const mp = mps[i];
|
|
1305
|
+
const prevFunc = func;
|
|
1306
|
+
const conditionValue = createMemo(
|
|
1307
|
+
() => prevFunc() ? void 0 : mp.when,
|
|
1308
|
+
void 0,
|
|
1309
|
+
void 0
|
|
1310
|
+
);
|
|
1311
|
+
const condition = mp.keyed ? conditionValue : createMemo(conditionValue, void 0, {
|
|
1312
|
+
equals: (a, b) => !a === !b
|
|
1313
|
+
});
|
|
1314
|
+
func = () => prevFunc() || (condition() ? [index, conditionValue, mp] : void 0);
|
|
1314
1315
|
}
|
|
1315
|
-
|
|
1316
|
+
return func;
|
|
1317
|
+
});
|
|
1316
1318
|
return createMemo(
|
|
1317
1319
|
() => {
|
|
1318
|
-
const
|
|
1319
|
-
if (
|
|
1320
|
+
const sel = switchFunc()();
|
|
1321
|
+
if (!sel)
|
|
1320
1322
|
return props.fallback;
|
|
1321
|
-
const
|
|
1322
|
-
const
|
|
1323
|
+
const [index, conditionValue, mp] = sel;
|
|
1324
|
+
const child = mp.children;
|
|
1325
|
+
const fn = typeof child === "function" && child.length > 0;
|
|
1323
1326
|
return fn ? untrack(
|
|
1324
|
-
() =>
|
|
1325
|
-
keyed ?
|
|
1326
|
-
if (untrack(
|
|
1327
|
+
() => child(
|
|
1328
|
+
mp.keyed ? conditionValue() : () => {
|
|
1329
|
+
if (untrack(switchFunc)()?.[0] !== index)
|
|
1327
1330
|
throw narrowedError("Match");
|
|
1328
|
-
return
|
|
1331
|
+
return conditionValue();
|
|
1329
1332
|
}
|
|
1330
1333
|
)
|
|
1331
|
-
) :
|
|
1334
|
+
) : child;
|
|
1332
1335
|
},
|
|
1333
1336
|
void 0,
|
|
1334
1337
|
void 0
|
|
@@ -1339,7 +1342,7 @@ function Match(props) {
|
|
|
1339
1342
|
}
|
|
1340
1343
|
var DEV = void 0;
|
|
1341
1344
|
|
|
1342
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
1345
|
+
// ../../node_modules/.pnpm/solid-js@1.9.5/node_modules/solid-js/web/dist/web.js
|
|
1343
1346
|
var booleans = [
|
|
1344
1347
|
"allowfullscreen",
|
|
1345
1348
|
"async",
|
|
@@ -1591,12 +1594,12 @@ function render(code, element, init, options = {}) {
|
|
|
1591
1594
|
element.textContent = "";
|
|
1592
1595
|
};
|
|
1593
1596
|
}
|
|
1594
|
-
function template(html, isImportNode, isSVG) {
|
|
1597
|
+
function template(html, isImportNode, isSVG, isMathML) {
|
|
1595
1598
|
let node;
|
|
1596
1599
|
const create = () => {
|
|
1597
|
-
const t = document.createElement("template");
|
|
1600
|
+
const t = isMathML ? document.createElementNS("http://www.w3.org/1998/Math/MathML", "template") : document.createElement("template");
|
|
1598
1601
|
t.innerHTML = html;
|
|
1599
|
-
return isSVG ? t.content.firstChild.firstChild : t.content.firstChild;
|
|
1602
|
+
return isSVG ? t.content.firstChild.firstChild : isMathML ? t.firstChild : t.content.firstChild;
|
|
1600
1603
|
};
|
|
1601
1604
|
const fn = isImportNode ? () => untrack(() => document.importNode(node || (node = create()), true)) : () => (node || (node = create())).cloneNode(true);
|
|
1602
1605
|
fn.cloneNode = fn;
|
|
@@ -2080,22 +2083,25 @@ function Portal(props) {
|
|
|
2080
2083
|
);
|
|
2081
2084
|
return marker;
|
|
2082
2085
|
}
|
|
2083
|
-
function
|
|
2084
|
-
const
|
|
2085
|
-
const cached = createMemo(() => p.component);
|
|
2086
|
+
function createDynamic(component, props) {
|
|
2087
|
+
const cached = createMemo(component);
|
|
2086
2088
|
return createMemo(() => {
|
|
2087
|
-
const
|
|
2088
|
-
switch (typeof
|
|
2089
|
+
const component2 = cached();
|
|
2090
|
+
switch (typeof component2) {
|
|
2089
2091
|
case "function":
|
|
2090
|
-
return untrack(() =>
|
|
2092
|
+
return untrack(() => component2(props));
|
|
2091
2093
|
case "string":
|
|
2092
|
-
const isSvg = SVGElements.has(
|
|
2093
|
-
const el = sharedConfig.context ? getNextElement() : createElement(
|
|
2094
|
-
spread(el,
|
|
2094
|
+
const isSvg = SVGElements.has(component2);
|
|
2095
|
+
const el = sharedConfig.context ? getNextElement() : createElement(component2, isSvg);
|
|
2096
|
+
spread(el, props, isSvg);
|
|
2095
2097
|
return el;
|
|
2096
2098
|
}
|
|
2097
2099
|
});
|
|
2098
2100
|
}
|
|
2101
|
+
function Dynamic(props) {
|
|
2102
|
+
const [, others] = splitProps(props, ["component"]);
|
|
2103
|
+
return createDynamic(() => props.component, others);
|
|
2104
|
+
}
|
|
2099
2105
|
|
|
2100
2106
|
// ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/double-indexed-kv.js
|
|
2101
2107
|
var DoubleIndexedKV = class {
|