@tanstack/solid-query-devtools 6.0.0-alpha.2 → 6.0.0-beta.4
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/chunk/OUUOFKOT.js +54 -0
- package/build/chunk/RNXRSYV2.js +52 -0
- package/build/dev.cjs +18 -1199
- package/build/dev.js +3 -3
- package/build/dev.jsx +7 -1189
- package/build/devtools/{BK5V6NH3.js → BN3QOQGH.js} +1 -1
- package/build/devtools/{CBPRJMAC.js → DAAYGNEN.js} +1 -1
- package/build/devtoolsPanel/{A5BO2WVY.js → FI3ZIJCV.js} +1 -1
- package/build/devtoolsPanel/{KNUODKZO.js → SQHQ34QQ.js} +1 -1
- package/build/index.cjs +8 -1155
- package/build/index.js +3 -3
- package/build/index.jsx +7 -1152
- package/package.json +7 -7
- package/build/chunk/75V4Q6CI.js +0 -1231
- package/build/chunk/AU2REB6C.js +0 -1195
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { createRenderEffect, untrack, runWithOwner, sharedConfig } from 'solid-js';
|
|
2
|
+
|
|
3
|
+
// ../../node_modules/.pnpm/@solidjs+web@2.0.0-beta.7_@solidjs+signals@2.0.0-beta.7_solid-js@2.0.0-beta.7/node_modules/@solidjs/web/dist/dev.js
|
|
4
|
+
var effect = (fn, effectFn) => createRenderEffect(fn, effectFn, {
|
|
5
|
+
transparent: true
|
|
6
|
+
});
|
|
7
|
+
function create(html, bypassGuard, flag) {
|
|
8
|
+
if (isHydrating() && !bypassGuard) throw new Error("Failed attempt to create new DOM elements during hydration. Check that the libraries you are using support hydration.");
|
|
9
|
+
const t = document.createElement("template");
|
|
10
|
+
t.innerHTML = html;
|
|
11
|
+
return flag === 2 ? t.content.firstChild.firstChild : t.content.firstChild;
|
|
12
|
+
}
|
|
13
|
+
function template(html, flag) {
|
|
14
|
+
let node;
|
|
15
|
+
const fn = flag === 1 ? (bypassGuard) => document.importNode(node || (node = create(html, bypassGuard, flag)), true) : (bypassGuard) => (node || (node = create(html, bypassGuard, flag))).cloneNode(true);
|
|
16
|
+
fn._html = flag === 2 ? html.replace(/^<[^>]+>/, "") : html;
|
|
17
|
+
return fn;
|
|
18
|
+
}
|
|
19
|
+
function setAttribute(node, name, value) {
|
|
20
|
+
if (isHydrating(node)) return;
|
|
21
|
+
node.removeAttribute(name);
|
|
22
|
+
}
|
|
23
|
+
function style(node, value, prev) {
|
|
24
|
+
if (!value) {
|
|
25
|
+
if (prev) setAttribute(node, "style");
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const nodeStyle = node.style;
|
|
29
|
+
if (typeof value === "string") return nodeStyle.cssText = value;
|
|
30
|
+
typeof prev === "string" && (nodeStyle.cssText = prev = void 0);
|
|
31
|
+
prev || (prev = {});
|
|
32
|
+
value || (value = {});
|
|
33
|
+
let v, s;
|
|
34
|
+
for (s in value) {
|
|
35
|
+
v = value[s];
|
|
36
|
+
if (v !== prev[s]) nodeStyle.setProperty(s, v);
|
|
37
|
+
delete prev[s];
|
|
38
|
+
}
|
|
39
|
+
for (s in prev) value[s] == null && nodeStyle.removeProperty(s);
|
|
40
|
+
}
|
|
41
|
+
function applyRef(r, element) {
|
|
42
|
+
Array.isArray(r) ? r.flat(Infinity).forEach((f) => f && f(element)) : r(element);
|
|
43
|
+
}
|
|
44
|
+
function ref(fn, element) {
|
|
45
|
+
const resolved = untrack(fn);
|
|
46
|
+
runWithOwner(null, () => applyRef(resolved, element));
|
|
47
|
+
}
|
|
48
|
+
function isHydrating(node) {
|
|
49
|
+
return sharedConfig.hydrating && (!node || node.isConnected);
|
|
50
|
+
}
|
|
51
|
+
var isServer = false;
|
|
52
|
+
var isDev = true;
|
|
53
|
+
|
|
54
|
+
export { effect, isDev, isServer, ref, style, template };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { createRenderEffect, untrack, runWithOwner, sharedConfig } from 'solid-js';
|
|
2
|
+
|
|
3
|
+
// ../../node_modules/.pnpm/@solidjs+web@2.0.0-beta.7_@solidjs+signals@2.0.0-beta.7_solid-js@2.0.0-beta.7/node_modules/@solidjs/web/dist/web.js
|
|
4
|
+
var effect = (fn, effectFn) => createRenderEffect(fn, effectFn, {
|
|
5
|
+
transparent: true
|
|
6
|
+
});
|
|
7
|
+
function create(html, bypassGuard, flag) {
|
|
8
|
+
const t = document.createElement("template");
|
|
9
|
+
t.innerHTML = html;
|
|
10
|
+
return flag === 2 ? t.content.firstChild.firstChild : t.content.firstChild;
|
|
11
|
+
}
|
|
12
|
+
function template(html, flag) {
|
|
13
|
+
let node;
|
|
14
|
+
const fn = flag === 1 ? (bypassGuard) => document.importNode(node || (node = create(html, bypassGuard, flag)), true) : (bypassGuard) => (node || (node = create(html, bypassGuard, flag))).cloneNode(true);
|
|
15
|
+
return fn;
|
|
16
|
+
}
|
|
17
|
+
function setAttribute(node, name, value) {
|
|
18
|
+
if (isHydrating(node)) return;
|
|
19
|
+
node.removeAttribute(name);
|
|
20
|
+
}
|
|
21
|
+
function style(node, value, prev) {
|
|
22
|
+
if (!value) {
|
|
23
|
+
if (prev) setAttribute(node, "style");
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const nodeStyle = node.style;
|
|
27
|
+
if (typeof value === "string") return nodeStyle.cssText = value;
|
|
28
|
+
typeof prev === "string" && (nodeStyle.cssText = prev = void 0);
|
|
29
|
+
prev || (prev = {});
|
|
30
|
+
value || (value = {});
|
|
31
|
+
let v, s;
|
|
32
|
+
for (s in value) {
|
|
33
|
+
v = value[s];
|
|
34
|
+
if (v !== prev[s]) nodeStyle.setProperty(s, v);
|
|
35
|
+
delete prev[s];
|
|
36
|
+
}
|
|
37
|
+
for (s in prev) value[s] == null && nodeStyle.removeProperty(s);
|
|
38
|
+
}
|
|
39
|
+
function applyRef(r, element) {
|
|
40
|
+
Array.isArray(r) ? r.flat(Infinity).forEach((f) => f && f(element)) : r(element);
|
|
41
|
+
}
|
|
42
|
+
function ref(fn, element) {
|
|
43
|
+
const resolved = untrack(fn);
|
|
44
|
+
runWithOwner(null, () => applyRef(resolved, element));
|
|
45
|
+
}
|
|
46
|
+
function isHydrating(node) {
|
|
47
|
+
return sharedConfig.hydrating && (!node || node.isConnected);
|
|
48
|
+
}
|
|
49
|
+
var isServer = false;
|
|
50
|
+
var isDev = false;
|
|
51
|
+
|
|
52
|
+
export { effect, isDev, isServer, ref, style, template };
|