@tanstack/query-devtools 5.1.0 → 5.7.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/Devtools/{QHLLQ2XL.jsx → G2DL2NKW.jsx} +149 -1298
- package/build/Devtools/{BWLPXLBN.js → G2MVXYID.js} +156 -1306
- package/build/Devtools/{QHGCTHEZ.jsx → RGHE4TS2.jsx} +148 -1300
- package/build/Devtools/{CRASJTHY.js → VZTWBJH5.js} +156 -1307
- package/build/chunk/{Z53XT47W.js → 2CFRQNPI.js} +1200 -3
- package/build/chunk/3V52ZCRQ.js +3231 -0
- package/build/chunk/{JRAMSUCV.jsx → MJH6GUJH.jsx} +1222 -3
- package/build/chunk/SPPEWFNK.jsx +3295 -0
- package/build/dev.cjs +9973 -9921
- package/build/dev.js +7 -3
- package/build/dev.jsx +9 -4
- package/build/index.cjs +9972 -9920
- package/build/index.d.cts +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +7 -3
- package/build/index.jsx +9 -4
- package/package.json +2 -2
- package/src/Devtools.tsx +50 -14
- package/src/Explorer.tsx +5 -5
- package/src/index.tsx +8 -2
- package/src/theme.ts +71 -71
- package/src/utils.tsx +14 -0
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
Switch,
|
|
12
12
|
batch,
|
|
13
13
|
children,
|
|
14
|
+
convertRemToPixels,
|
|
14
15
|
createComponent,
|
|
15
16
|
createComputed,
|
|
16
17
|
createContext,
|
|
@@ -21,22 +22,34 @@ import {
|
|
|
21
22
|
createSignal,
|
|
22
23
|
createUniqueId,
|
|
23
24
|
delegateEvents,
|
|
25
|
+
deleteNestedDataByPath,
|
|
26
|
+
displayValue,
|
|
24
27
|
getListener,
|
|
28
|
+
getMutationStatusColor,
|
|
25
29
|
getOwner,
|
|
30
|
+
getPreferredColorScheme,
|
|
31
|
+
getQueryStatusColor,
|
|
32
|
+
getQueryStatusColorByLabel,
|
|
33
|
+
getQueryStatusLabel,
|
|
34
|
+
getSidedProp,
|
|
26
35
|
isServer,
|
|
27
36
|
mergeProps,
|
|
37
|
+
mutationSortFns,
|
|
28
38
|
on,
|
|
29
39
|
onCleanup,
|
|
30
40
|
onMount,
|
|
31
41
|
setAttribute,
|
|
42
|
+
sortFns,
|
|
32
43
|
splitProps,
|
|
33
44
|
spread,
|
|
45
|
+
stringify,
|
|
34
46
|
template,
|
|
35
47
|
untrack,
|
|
48
|
+
updateNestedDataByPath,
|
|
36
49
|
use,
|
|
37
50
|
useContext,
|
|
38
51
|
useTransition
|
|
39
|
-
} from "../chunk/
|
|
52
|
+
} from "../chunk/MJH6GUJH.jsx";
|
|
40
53
|
|
|
41
54
|
// ../../node_modules/.pnpm/@tanstack+match-sorter-utils@8.8.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
|
|
42
55
|
var characterMap = {
|
|
@@ -719,8 +732,8 @@ var noop = () => {
|
|
|
719
732
|
function createListTransition(source, options) {
|
|
720
733
|
const initSource = untrack(source);
|
|
721
734
|
if (isServer) {
|
|
722
|
-
const
|
|
723
|
-
return () =>
|
|
735
|
+
const copy = initSource.slice();
|
|
736
|
+
return () => copy;
|
|
724
737
|
}
|
|
725
738
|
const { onChange } = options;
|
|
726
739
|
let prevSet = new Set(options.appear ? void 0 : initSource);
|
|
@@ -1739,7 +1752,7 @@ function isElementInScope(element, scope) {
|
|
|
1739
1752
|
}
|
|
1740
1753
|
function getFocusableTreeWalker(root, opts, scope) {
|
|
1741
1754
|
const selector = opts?.tabbable ? TABBABLE_ELEMENT_SELECTOR : FOCUSABLE_ELEMENT_SELECTOR;
|
|
1742
|
-
const
|
|
1755
|
+
const walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {
|
|
1743
1756
|
acceptNode(node) {
|
|
1744
1757
|
if (opts?.from?.contains(node)) {
|
|
1745
1758
|
return NodeFilter.FILTER_REJECT;
|
|
@@ -1751,9 +1764,9 @@ function getFocusableTreeWalker(root, opts, scope) {
|
|
|
1751
1764
|
}
|
|
1752
1765
|
});
|
|
1753
1766
|
if (opts?.from) {
|
|
1754
|
-
|
|
1767
|
+
walker.currentNode = opts.from;
|
|
1755
1768
|
}
|
|
1756
|
-
return
|
|
1769
|
+
return walker;
|
|
1757
1770
|
}
|
|
1758
1771
|
function noop3() {
|
|
1759
1772
|
return;
|
|
@@ -2087,19 +2100,19 @@ function updatePath(current, path, traversed = []) {
|
|
|
2087
2100
|
let part, prev = current;
|
|
2088
2101
|
if (path.length > 1) {
|
|
2089
2102
|
part = path.shift();
|
|
2090
|
-
const partType = typeof part,
|
|
2103
|
+
const partType = typeof part, isArray2 = Array.isArray(current);
|
|
2091
2104
|
if (Array.isArray(part)) {
|
|
2092
2105
|
for (let i2 = 0; i2 < part.length; i2++) {
|
|
2093
2106
|
updatePath(current, [part[i2]].concat(path), traversed);
|
|
2094
2107
|
}
|
|
2095
2108
|
return;
|
|
2096
|
-
} else if (
|
|
2109
|
+
} else if (isArray2 && partType === "function") {
|
|
2097
2110
|
for (let i2 = 0; i2 < current.length; i2++) {
|
|
2098
2111
|
if (part(current[i2], i2))
|
|
2099
2112
|
updatePath(current, [i2].concat(path), traversed);
|
|
2100
2113
|
}
|
|
2101
2114
|
return;
|
|
2102
|
-
} else if (
|
|
2115
|
+
} else if (isArray2 && partType === "object") {
|
|
2103
2116
|
const { from = 0, to = current.length - 1, by = 1 } = part;
|
|
2104
2117
|
for (let i2 = from; i2 <= to; i2 += by) {
|
|
2105
2118
|
updatePath(current, [i2].concat(path), traversed);
|
|
@@ -2128,11 +2141,11 @@ function updatePath(current, path, traversed = []) {
|
|
|
2128
2141
|
}
|
|
2129
2142
|
function createStore(...[store, options]) {
|
|
2130
2143
|
const unwrappedStore = unwrap(store || {});
|
|
2131
|
-
const
|
|
2144
|
+
const isArray2 = Array.isArray(unwrappedStore);
|
|
2132
2145
|
const wrappedStore = wrap$1(unwrappedStore);
|
|
2133
2146
|
function setStore(...args) {
|
|
2134
2147
|
batch(() => {
|
|
2135
|
-
|
|
2148
|
+
isArray2 && args.length === 1 ? updateArray(unwrappedStore, args[0]) : updatePath(unwrappedStore, args);
|
|
2136
2149
|
});
|
|
2137
2150
|
}
|
|
2138
2151
|
return [wrappedStore, setStore];
|
|
@@ -4127,7 +4140,7 @@ function ariaHideOutside(targets, root = document.body) {
|
|
|
4127
4140
|
}
|
|
4128
4141
|
return NodeFilter.FILTER_ACCEPT;
|
|
4129
4142
|
};
|
|
4130
|
-
const
|
|
4143
|
+
const walker = document.createTreeWalker(root2, NodeFilter.SHOW_ELEMENT, {
|
|
4131
4144
|
acceptNode
|
|
4132
4145
|
});
|
|
4133
4146
|
const acceptRoot = acceptNode(root2);
|
|
@@ -4135,10 +4148,10 @@ function ariaHideOutside(targets, root = document.body) {
|
|
|
4135
4148
|
hide2(root2);
|
|
4136
4149
|
}
|
|
4137
4150
|
if (acceptRoot !== NodeFilter.FILTER_REJECT) {
|
|
4138
|
-
let node =
|
|
4151
|
+
let node = walker.nextNode();
|
|
4139
4152
|
while (node != null) {
|
|
4140
4153
|
hide2(node);
|
|
4141
|
-
node =
|
|
4154
|
+
node = walker.nextNode();
|
|
4142
4155
|
}
|
|
4143
4156
|
}
|
|
4144
4157
|
};
|
|
@@ -5110,13 +5123,13 @@ function createSelectableCollection(props, ref, scrollRef) {
|
|
|
5110
5123
|
if (e2.shiftKey) {
|
|
5111
5124
|
refEl.focus();
|
|
5112
5125
|
} else {
|
|
5113
|
-
const
|
|
5126
|
+
const walker = getFocusableTreeWalker(refEl, {
|
|
5114
5127
|
tabbable: true
|
|
5115
5128
|
});
|
|
5116
5129
|
let next;
|
|
5117
5130
|
let last;
|
|
5118
5131
|
do {
|
|
5119
|
-
last =
|
|
5132
|
+
last = walker.lastChild();
|
|
5120
5133
|
if (last) {
|
|
5121
5134
|
next = last;
|
|
5122
5135
|
}
|
|
@@ -8737,35 +8750,35 @@ var tokens = {
|
|
|
8737
8750
|
},
|
|
8738
8751
|
font: {
|
|
8739
8752
|
size: {
|
|
8740
|
-
"2xs": "0.
|
|
8741
|
-
xs: "0.
|
|
8742
|
-
sm: "0.
|
|
8743
|
-
md: "
|
|
8744
|
-
lg: "1.
|
|
8745
|
-
xl: "1.
|
|
8746
|
-
"2xl": "1.
|
|
8747
|
-
"3xl": "1.
|
|
8748
|
-
"4xl": "2.
|
|
8749
|
-
"5xl": "
|
|
8750
|
-
"6xl": "3.
|
|
8751
|
-
"7xl": "4.
|
|
8752
|
-
"8xl": "
|
|
8753
|
-
"9xl": "
|
|
8753
|
+
"2xs": "calc(var(--tsqd-font-size) * 0.625)",
|
|
8754
|
+
xs: "calc(var(--tsqd-font-size) * 0.75)",
|
|
8755
|
+
sm: "calc(var(--tsqd-font-size) * 0.875)",
|
|
8756
|
+
md: "var(--tsqd-font-size)",
|
|
8757
|
+
lg: "calc(var(--tsqd-font-size) * 1.125)",
|
|
8758
|
+
xl: "calc(var(--tsqd-font-size) * 1.25)",
|
|
8759
|
+
"2xl": "calc(var(--tsqd-font-size) * 1.5)",
|
|
8760
|
+
"3xl": "calc(var(--tsqd-font-size) * 1.875)",
|
|
8761
|
+
"4xl": "calc(var(--tsqd-font-size) * 2.25)",
|
|
8762
|
+
"5xl": "calc(var(--tsqd-font-size) * 3)",
|
|
8763
|
+
"6xl": "calc(var(--tsqd-font-size) * 3.75)",
|
|
8764
|
+
"7xl": "calc(var(--tsqd-font-size) * 4.5)",
|
|
8765
|
+
"8xl": "calc(var(--tsqd-font-size) * 6)",
|
|
8766
|
+
"9xl": "calc(var(--tsqd-font-size) * 8)"
|
|
8754
8767
|
},
|
|
8755
8768
|
lineHeight: {
|
|
8756
|
-
xs: "
|
|
8757
|
-
sm: "1.
|
|
8758
|
-
md: "1.
|
|
8759
|
-
lg: "1.
|
|
8760
|
-
xl: "
|
|
8761
|
-
"2xl": "
|
|
8762
|
-
"3xl": "2.
|
|
8763
|
-
"4xl": "2.
|
|
8764
|
-
"5xl": "
|
|
8765
|
-
"6xl": "
|
|
8766
|
-
"7xl": "
|
|
8767
|
-
"8xl": "
|
|
8768
|
-
"9xl": "
|
|
8769
|
+
xs: "calc(var(--tsqd-font-size) * 1)",
|
|
8770
|
+
sm: "calc(var(--tsqd-font-size) * 1.25)",
|
|
8771
|
+
md: "calc(var(--tsqd-font-size) * 1.5)",
|
|
8772
|
+
lg: "calc(var(--tsqd-font-size) * 1.75)",
|
|
8773
|
+
xl: "calc(var(--tsqd-font-size) * 2)",
|
|
8774
|
+
"2xl": "calc(var(--tsqd-font-size) * 2.25)",
|
|
8775
|
+
"3xl": "calc(var(--tsqd-font-size) * 2.5)",
|
|
8776
|
+
"4xl": "calc(var(--tsqd-font-size) * 2.75)",
|
|
8777
|
+
"5xl": "calc(var(--tsqd-font-size) * 3)",
|
|
8778
|
+
"6xl": "calc(var(--tsqd-font-size) * 3.25)",
|
|
8779
|
+
"7xl": "calc(var(--tsqd-font-size) * 3.5)",
|
|
8780
|
+
"8xl": "calc(var(--tsqd-font-size) * 3.75)",
|
|
8781
|
+
"9xl": "calc(var(--tsqd-font-size) * 4)"
|
|
8769
8782
|
},
|
|
8770
8783
|
weight: {
|
|
8771
8784
|
thin: "100",
|
|
@@ -8790,55 +8803,55 @@ var tokens = {
|
|
|
8790
8803
|
border: {
|
|
8791
8804
|
radius: {
|
|
8792
8805
|
none: "0px",
|
|
8793
|
-
xs: "0.
|
|
8794
|
-
sm: "0.
|
|
8795
|
-
md: "0.
|
|
8796
|
-
lg: "0.
|
|
8797
|
-
xl: "0.
|
|
8798
|
-
"2xl": "
|
|
8799
|
-
"3xl": "1.
|
|
8806
|
+
xs: "calc(var(--tsqd-font-size) * 0.125)",
|
|
8807
|
+
sm: "calc(var(--tsqd-font-size) * 0.25)",
|
|
8808
|
+
md: "calc(var(--tsqd-font-size) * 0.375)",
|
|
8809
|
+
lg: "calc(var(--tsqd-font-size) * 0.5)",
|
|
8810
|
+
xl: "calc(var(--tsqd-font-size) * 0.75)",
|
|
8811
|
+
"2xl": "calc(var(--tsqd-font-size) * 1)",
|
|
8812
|
+
"3xl": "calc(var(--tsqd-font-size) * 1.5)",
|
|
8800
8813
|
full: "9999px"
|
|
8801
8814
|
}
|
|
8802
8815
|
},
|
|
8803
8816
|
size: {
|
|
8804
8817
|
0: "0px",
|
|
8805
|
-
0.25: "0.
|
|
8806
|
-
0.5: "0.
|
|
8807
|
-
1: "0.
|
|
8808
|
-
1.5: "0.
|
|
8809
|
-
2: "0.
|
|
8810
|
-
2.5: "0.
|
|
8811
|
-
3: "0.
|
|
8812
|
-
3.5: "0.
|
|
8813
|
-
4: "
|
|
8814
|
-
4.5: "1.
|
|
8815
|
-
5: "1.
|
|
8816
|
-
5.5: "1.
|
|
8817
|
-
6: "1.
|
|
8818
|
-
6.5: "1.
|
|
8819
|
-
7: "1.
|
|
8820
|
-
8: "
|
|
8821
|
-
9: "2.
|
|
8822
|
-
10: "2.
|
|
8823
|
-
11: "2.
|
|
8824
|
-
12: "
|
|
8825
|
-
14: "3.
|
|
8826
|
-
16: "
|
|
8827
|
-
20: "
|
|
8828
|
-
24: "
|
|
8829
|
-
28: "
|
|
8830
|
-
32: "
|
|
8831
|
-
36: "
|
|
8832
|
-
40: "
|
|
8833
|
-
44: "
|
|
8834
|
-
48: "
|
|
8835
|
-
52: "
|
|
8836
|
-
56: "
|
|
8837
|
-
60: "
|
|
8838
|
-
64: "
|
|
8839
|
-
72: "
|
|
8840
|
-
80: "
|
|
8841
|
-
96: "
|
|
8818
|
+
0.25: "calc(var(--tsqd-font-size) * 0.0625)",
|
|
8819
|
+
0.5: "calc(var(--tsqd-font-size) * 0.125)",
|
|
8820
|
+
1: "calc(var(--tsqd-font-size) * 0.25)",
|
|
8821
|
+
1.5: "calc(var(--tsqd-font-size) * 0.375)",
|
|
8822
|
+
2: "calc(var(--tsqd-font-size) * 0.5)",
|
|
8823
|
+
2.5: "calc(var(--tsqd-font-size) * 0.625)",
|
|
8824
|
+
3: "calc(var(--tsqd-font-size) * 0.75)",
|
|
8825
|
+
3.5: "calc(var(--tsqd-font-size) * 0.875)",
|
|
8826
|
+
4: "calc(var(--tsqd-font-size) * 1)",
|
|
8827
|
+
4.5: "calc(var(--tsqd-font-size) * 1.125)",
|
|
8828
|
+
5: "calc(var(--tsqd-font-size) * 1.25)",
|
|
8829
|
+
5.5: "calc(var(--tsqd-font-size) * 1.375)",
|
|
8830
|
+
6: "calc(var(--tsqd-font-size) * 1.5)",
|
|
8831
|
+
6.5: "calc(var(--tsqd-font-size) * 1.625)",
|
|
8832
|
+
7: "calc(var(--tsqd-font-size) * 1.75)",
|
|
8833
|
+
8: "calc(var(--tsqd-font-size) * 2)",
|
|
8834
|
+
9: "calc(var(--tsqd-font-size) * 2.25)",
|
|
8835
|
+
10: "calc(var(--tsqd-font-size) * 2.5)",
|
|
8836
|
+
11: "calc(var(--tsqd-font-size) * 2.75)",
|
|
8837
|
+
12: "calc(var(--tsqd-font-size) * 3)",
|
|
8838
|
+
14: "calc(var(--tsqd-font-size) * 3.5)",
|
|
8839
|
+
16: "calc(var(--tsqd-font-size) * 4)",
|
|
8840
|
+
20: "calc(var(--tsqd-font-size) * 5)",
|
|
8841
|
+
24: "calc(var(--tsqd-font-size) * 6)",
|
|
8842
|
+
28: "calc(var(--tsqd-font-size) * 7)",
|
|
8843
|
+
32: "calc(var(--tsqd-font-size) * 8)",
|
|
8844
|
+
36: "calc(var(--tsqd-font-size) * 9)",
|
|
8845
|
+
40: "calc(var(--tsqd-font-size) * 10)",
|
|
8846
|
+
44: "calc(var(--tsqd-font-size) * 11)",
|
|
8847
|
+
48: "calc(var(--tsqd-font-size) * 12)",
|
|
8848
|
+
52: "calc(var(--tsqd-font-size) * 13)",
|
|
8849
|
+
56: "calc(var(--tsqd-font-size) * 14)",
|
|
8850
|
+
60: "calc(var(--tsqd-font-size) * 15)",
|
|
8851
|
+
64: "calc(var(--tsqd-font-size) * 16)",
|
|
8852
|
+
72: "calc(var(--tsqd-font-size) * 18)",
|
|
8853
|
+
80: "calc(var(--tsqd-font-size) * 20)",
|
|
8854
|
+
96: "calc(var(--tsqd-font-size) * 24)"
|
|
8842
8855
|
},
|
|
8843
8856
|
shadow: Shadow,
|
|
8844
8857
|
zIndices: {
|
|
@@ -8858,1199 +8871,6 @@ var tokens = {
|
|
|
8858
8871
|
}
|
|
8859
8872
|
};
|
|
8860
8873
|
|
|
8861
|
-
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/double-indexed-kv.js
|
|
8862
|
-
var DoubleIndexedKV = (
|
|
8863
|
-
/** @class */
|
|
8864
|
-
function() {
|
|
8865
|
-
function DoubleIndexedKV2() {
|
|
8866
|
-
this.keyToValue = /* @__PURE__ */ new Map();
|
|
8867
|
-
this.valueToKey = /* @__PURE__ */ new Map();
|
|
8868
|
-
}
|
|
8869
|
-
DoubleIndexedKV2.prototype.set = function(key, value) {
|
|
8870
|
-
this.keyToValue.set(key, value);
|
|
8871
|
-
this.valueToKey.set(value, key);
|
|
8872
|
-
};
|
|
8873
|
-
DoubleIndexedKV2.prototype.getByKey = function(key) {
|
|
8874
|
-
return this.keyToValue.get(key);
|
|
8875
|
-
};
|
|
8876
|
-
DoubleIndexedKV2.prototype.getByValue = function(value) {
|
|
8877
|
-
return this.valueToKey.get(value);
|
|
8878
|
-
};
|
|
8879
|
-
DoubleIndexedKV2.prototype.clear = function() {
|
|
8880
|
-
this.keyToValue.clear();
|
|
8881
|
-
this.valueToKey.clear();
|
|
8882
|
-
};
|
|
8883
|
-
return DoubleIndexedKV2;
|
|
8884
|
-
}()
|
|
8885
|
-
);
|
|
8886
|
-
|
|
8887
|
-
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/registry.js
|
|
8888
|
-
var Registry = (
|
|
8889
|
-
/** @class */
|
|
8890
|
-
function() {
|
|
8891
|
-
function Registry2(generateIdentifier) {
|
|
8892
|
-
this.generateIdentifier = generateIdentifier;
|
|
8893
|
-
this.kv = new DoubleIndexedKV();
|
|
8894
|
-
}
|
|
8895
|
-
Registry2.prototype.register = function(value, identifier) {
|
|
8896
|
-
if (this.kv.getByValue(value)) {
|
|
8897
|
-
return;
|
|
8898
|
-
}
|
|
8899
|
-
if (!identifier) {
|
|
8900
|
-
identifier = this.generateIdentifier(value);
|
|
8901
|
-
}
|
|
8902
|
-
this.kv.set(identifier, value);
|
|
8903
|
-
};
|
|
8904
|
-
Registry2.prototype.clear = function() {
|
|
8905
|
-
this.kv.clear();
|
|
8906
|
-
};
|
|
8907
|
-
Registry2.prototype.getIdentifier = function(value) {
|
|
8908
|
-
return this.kv.getByValue(value);
|
|
8909
|
-
};
|
|
8910
|
-
Registry2.prototype.getValue = function(identifier) {
|
|
8911
|
-
return this.kv.getByKey(identifier);
|
|
8912
|
-
};
|
|
8913
|
-
return Registry2;
|
|
8914
|
-
}()
|
|
8915
|
-
);
|
|
8916
|
-
|
|
8917
|
-
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/class-registry.js
|
|
8918
|
-
var __extends = function() {
|
|
8919
|
-
var extendStatics = function(d, b2) {
|
|
8920
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
|
8921
|
-
d2.__proto__ = b3;
|
|
8922
|
-
} || function(d2, b3) {
|
|
8923
|
-
for (var p2 in b3)
|
|
8924
|
-
if (Object.prototype.hasOwnProperty.call(b3, p2))
|
|
8925
|
-
d2[p2] = b3[p2];
|
|
8926
|
-
};
|
|
8927
|
-
return extendStatics(d, b2);
|
|
8928
|
-
};
|
|
8929
|
-
return function(d, b2) {
|
|
8930
|
-
if (typeof b2 !== "function" && b2 !== null)
|
|
8931
|
-
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
8932
|
-
extendStatics(d, b2);
|
|
8933
|
-
function __() {
|
|
8934
|
-
this.constructor = d;
|
|
8935
|
-
}
|
|
8936
|
-
d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
8937
|
-
};
|
|
8938
|
-
}();
|
|
8939
|
-
var ClassRegistry = (
|
|
8940
|
-
/** @class */
|
|
8941
|
-
function(_super) {
|
|
8942
|
-
__extends(ClassRegistry2, _super);
|
|
8943
|
-
function ClassRegistry2() {
|
|
8944
|
-
var _this = _super.call(this, function(c2) {
|
|
8945
|
-
return c2.name;
|
|
8946
|
-
}) || this;
|
|
8947
|
-
_this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
8948
|
-
return _this;
|
|
8949
|
-
}
|
|
8950
|
-
ClassRegistry2.prototype.register = function(value, options) {
|
|
8951
|
-
if (typeof options === "object") {
|
|
8952
|
-
if (options.allowProps) {
|
|
8953
|
-
this.classToAllowedProps.set(value, options.allowProps);
|
|
8954
|
-
}
|
|
8955
|
-
_super.prototype.register.call(this, value, options.identifier);
|
|
8956
|
-
} else {
|
|
8957
|
-
_super.prototype.register.call(this, value, options);
|
|
8958
|
-
}
|
|
8959
|
-
};
|
|
8960
|
-
ClassRegistry2.prototype.getAllowedProps = function(value) {
|
|
8961
|
-
return this.classToAllowedProps.get(value);
|
|
8962
|
-
};
|
|
8963
|
-
return ClassRegistry2;
|
|
8964
|
-
}(Registry)
|
|
8965
|
-
);
|
|
8966
|
-
|
|
8967
|
-
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/util.js
|
|
8968
|
-
var __read = function(o2, n2) {
|
|
8969
|
-
var m = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
8970
|
-
if (!m)
|
|
8971
|
-
return o2;
|
|
8972
|
-
var i2 = m.call(o2), r2, ar = [], e2;
|
|
8973
|
-
try {
|
|
8974
|
-
while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
|
|
8975
|
-
ar.push(r2.value);
|
|
8976
|
-
} catch (error) {
|
|
8977
|
-
e2 = { error };
|
|
8978
|
-
} finally {
|
|
8979
|
-
try {
|
|
8980
|
-
if (r2 && !r2.done && (m = i2["return"]))
|
|
8981
|
-
m.call(i2);
|
|
8982
|
-
} finally {
|
|
8983
|
-
if (e2)
|
|
8984
|
-
throw e2.error;
|
|
8985
|
-
}
|
|
8986
|
-
}
|
|
8987
|
-
return ar;
|
|
8988
|
-
};
|
|
8989
|
-
function valuesOfObj(record) {
|
|
8990
|
-
if ("values" in Object) {
|
|
8991
|
-
return Object.values(record);
|
|
8992
|
-
}
|
|
8993
|
-
var values = [];
|
|
8994
|
-
for (var key in record) {
|
|
8995
|
-
if (record.hasOwnProperty(key)) {
|
|
8996
|
-
values.push(record[key]);
|
|
8997
|
-
}
|
|
8998
|
-
}
|
|
8999
|
-
return values;
|
|
9000
|
-
}
|
|
9001
|
-
function find2(record, predicate) {
|
|
9002
|
-
var values = valuesOfObj(record);
|
|
9003
|
-
if ("find" in values) {
|
|
9004
|
-
return values.find(predicate);
|
|
9005
|
-
}
|
|
9006
|
-
var valuesNotNever = values;
|
|
9007
|
-
for (var i2 = 0; i2 < valuesNotNever.length; i2++) {
|
|
9008
|
-
var value = valuesNotNever[i2];
|
|
9009
|
-
if (predicate(value)) {
|
|
9010
|
-
return value;
|
|
9011
|
-
}
|
|
9012
|
-
}
|
|
9013
|
-
return void 0;
|
|
9014
|
-
}
|
|
9015
|
-
function forEach(record, run) {
|
|
9016
|
-
Object.entries(record).forEach(function(_a) {
|
|
9017
|
-
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
9018
|
-
return run(value, key);
|
|
9019
|
-
});
|
|
9020
|
-
}
|
|
9021
|
-
function includes(arr, value) {
|
|
9022
|
-
return arr.indexOf(value) !== -1;
|
|
9023
|
-
}
|
|
9024
|
-
function findArr(record, predicate) {
|
|
9025
|
-
for (var i2 = 0; i2 < record.length; i2++) {
|
|
9026
|
-
var value = record[i2];
|
|
9027
|
-
if (predicate(value)) {
|
|
9028
|
-
return value;
|
|
9029
|
-
}
|
|
9030
|
-
}
|
|
9031
|
-
return void 0;
|
|
9032
|
-
}
|
|
9033
|
-
|
|
9034
|
-
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/custom-transformer-registry.js
|
|
9035
|
-
var CustomTransformerRegistry = (
|
|
9036
|
-
/** @class */
|
|
9037
|
-
function() {
|
|
9038
|
-
function CustomTransformerRegistry2() {
|
|
9039
|
-
this.transfomers = {};
|
|
9040
|
-
}
|
|
9041
|
-
CustomTransformerRegistry2.prototype.register = function(transformer) {
|
|
9042
|
-
this.transfomers[transformer.name] = transformer;
|
|
9043
|
-
};
|
|
9044
|
-
CustomTransformerRegistry2.prototype.findApplicable = function(v) {
|
|
9045
|
-
return find2(this.transfomers, function(transformer) {
|
|
9046
|
-
return transformer.isApplicable(v);
|
|
9047
|
-
});
|
|
9048
|
-
};
|
|
9049
|
-
CustomTransformerRegistry2.prototype.findByName = function(name) {
|
|
9050
|
-
return this.transfomers[name];
|
|
9051
|
-
};
|
|
9052
|
-
return CustomTransformerRegistry2;
|
|
9053
|
-
}()
|
|
9054
|
-
);
|
|
9055
|
-
|
|
9056
|
-
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/is.js
|
|
9057
|
-
var getType = function(payload) {
|
|
9058
|
-
return Object.prototype.toString.call(payload).slice(8, -1);
|
|
9059
|
-
};
|
|
9060
|
-
var isUndefined = function(payload) {
|
|
9061
|
-
return typeof payload === "undefined";
|
|
9062
|
-
};
|
|
9063
|
-
var isNull = function(payload) {
|
|
9064
|
-
return payload === null;
|
|
9065
|
-
};
|
|
9066
|
-
var isPlainObject = function(payload) {
|
|
9067
|
-
if (typeof payload !== "object" || payload === null)
|
|
9068
|
-
return false;
|
|
9069
|
-
if (payload === Object.prototype)
|
|
9070
|
-
return false;
|
|
9071
|
-
if (Object.getPrototypeOf(payload) === null)
|
|
9072
|
-
return true;
|
|
9073
|
-
return Object.getPrototypeOf(payload) === Object.prototype;
|
|
9074
|
-
};
|
|
9075
|
-
var isEmptyObject = function(payload) {
|
|
9076
|
-
return isPlainObject(payload) && Object.keys(payload).length === 0;
|
|
9077
|
-
};
|
|
9078
|
-
var isArray2 = function(payload) {
|
|
9079
|
-
return Array.isArray(payload);
|
|
9080
|
-
};
|
|
9081
|
-
var isString2 = function(payload) {
|
|
9082
|
-
return typeof payload === "string";
|
|
9083
|
-
};
|
|
9084
|
-
var isNumber2 = function(payload) {
|
|
9085
|
-
return typeof payload === "number" && !isNaN(payload);
|
|
9086
|
-
};
|
|
9087
|
-
var isBoolean = function(payload) {
|
|
9088
|
-
return typeof payload === "boolean";
|
|
9089
|
-
};
|
|
9090
|
-
var isRegExp = function(payload) {
|
|
9091
|
-
return payload instanceof RegExp;
|
|
9092
|
-
};
|
|
9093
|
-
var isMap = function(payload) {
|
|
9094
|
-
return payload instanceof Map;
|
|
9095
|
-
};
|
|
9096
|
-
var isSet = function(payload) {
|
|
9097
|
-
return payload instanceof Set;
|
|
9098
|
-
};
|
|
9099
|
-
var isSymbol = function(payload) {
|
|
9100
|
-
return getType(payload) === "Symbol";
|
|
9101
|
-
};
|
|
9102
|
-
var isDate = function(payload) {
|
|
9103
|
-
return payload instanceof Date && !isNaN(payload.valueOf());
|
|
9104
|
-
};
|
|
9105
|
-
var isError = function(payload) {
|
|
9106
|
-
return payload instanceof Error;
|
|
9107
|
-
};
|
|
9108
|
-
var isNaNValue = function(payload) {
|
|
9109
|
-
return typeof payload === "number" && isNaN(payload);
|
|
9110
|
-
};
|
|
9111
|
-
var isPrimitive = function(payload) {
|
|
9112
|
-
return isBoolean(payload) || isNull(payload) || isUndefined(payload) || isNumber2(payload) || isString2(payload) || isSymbol(payload);
|
|
9113
|
-
};
|
|
9114
|
-
var isBigint = function(payload) {
|
|
9115
|
-
return typeof payload === "bigint";
|
|
9116
|
-
};
|
|
9117
|
-
var isInfinite = function(payload) {
|
|
9118
|
-
return payload === Infinity || payload === -Infinity;
|
|
9119
|
-
};
|
|
9120
|
-
var isTypedArray = function(payload) {
|
|
9121
|
-
return ArrayBuffer.isView(payload) && !(payload instanceof DataView);
|
|
9122
|
-
};
|
|
9123
|
-
var isURL = function(payload) {
|
|
9124
|
-
return payload instanceof URL;
|
|
9125
|
-
};
|
|
9126
|
-
|
|
9127
|
-
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/pathstringifier.js
|
|
9128
|
-
var escapeKey = function(key) {
|
|
9129
|
-
return key.replace(/\./g, "\\.");
|
|
9130
|
-
};
|
|
9131
|
-
var stringifyPath = function(path) {
|
|
9132
|
-
return path.map(String).map(escapeKey).join(".");
|
|
9133
|
-
};
|
|
9134
|
-
var parsePath = function(string) {
|
|
9135
|
-
var result = [];
|
|
9136
|
-
var segment = "";
|
|
9137
|
-
for (var i2 = 0; i2 < string.length; i2++) {
|
|
9138
|
-
var char = string.charAt(i2);
|
|
9139
|
-
var isEscapedDot = char === "\\" && string.charAt(i2 + 1) === ".";
|
|
9140
|
-
if (isEscapedDot) {
|
|
9141
|
-
segment += ".";
|
|
9142
|
-
i2++;
|
|
9143
|
-
continue;
|
|
9144
|
-
}
|
|
9145
|
-
var isEndOfSegment = char === ".";
|
|
9146
|
-
if (isEndOfSegment) {
|
|
9147
|
-
result.push(segment);
|
|
9148
|
-
segment = "";
|
|
9149
|
-
continue;
|
|
9150
|
-
}
|
|
9151
|
-
segment += char;
|
|
9152
|
-
}
|
|
9153
|
-
var lastSegment = segment;
|
|
9154
|
-
result.push(lastSegment);
|
|
9155
|
-
return result;
|
|
9156
|
-
};
|
|
9157
|
-
|
|
9158
|
-
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/transformer.js
|
|
9159
|
-
var __assign = function() {
|
|
9160
|
-
__assign = Object.assign || function(t2) {
|
|
9161
|
-
for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
9162
|
-
s2 = arguments[i2];
|
|
9163
|
-
for (var p2 in s2)
|
|
9164
|
-
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
9165
|
-
t2[p2] = s2[p2];
|
|
9166
|
-
}
|
|
9167
|
-
return t2;
|
|
9168
|
-
};
|
|
9169
|
-
return __assign.apply(this, arguments);
|
|
9170
|
-
};
|
|
9171
|
-
var __read2 = function(o2, n2) {
|
|
9172
|
-
var m = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
9173
|
-
if (!m)
|
|
9174
|
-
return o2;
|
|
9175
|
-
var i2 = m.call(o2), r2, ar = [], e2;
|
|
9176
|
-
try {
|
|
9177
|
-
while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
|
|
9178
|
-
ar.push(r2.value);
|
|
9179
|
-
} catch (error) {
|
|
9180
|
-
e2 = { error };
|
|
9181
|
-
} finally {
|
|
9182
|
-
try {
|
|
9183
|
-
if (r2 && !r2.done && (m = i2["return"]))
|
|
9184
|
-
m.call(i2);
|
|
9185
|
-
} finally {
|
|
9186
|
-
if (e2)
|
|
9187
|
-
throw e2.error;
|
|
9188
|
-
}
|
|
9189
|
-
}
|
|
9190
|
-
return ar;
|
|
9191
|
-
};
|
|
9192
|
-
var __spreadArray = function(to, from) {
|
|
9193
|
-
for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
|
|
9194
|
-
to[j] = from[i2];
|
|
9195
|
-
return to;
|
|
9196
|
-
};
|
|
9197
|
-
function simpleTransformation(isApplicable, annotation, transform, untransform) {
|
|
9198
|
-
return {
|
|
9199
|
-
isApplicable,
|
|
9200
|
-
annotation,
|
|
9201
|
-
transform,
|
|
9202
|
-
untransform
|
|
9203
|
-
};
|
|
9204
|
-
}
|
|
9205
|
-
var simpleRules = [
|
|
9206
|
-
simpleTransformation(isUndefined, "undefined", function() {
|
|
9207
|
-
return null;
|
|
9208
|
-
}, function() {
|
|
9209
|
-
return void 0;
|
|
9210
|
-
}),
|
|
9211
|
-
simpleTransformation(isBigint, "bigint", function(v) {
|
|
9212
|
-
return v.toString();
|
|
9213
|
-
}, function(v) {
|
|
9214
|
-
if (typeof BigInt !== "undefined") {
|
|
9215
|
-
return BigInt(v);
|
|
9216
|
-
}
|
|
9217
|
-
console.error("Please add a BigInt polyfill.");
|
|
9218
|
-
return v;
|
|
9219
|
-
}),
|
|
9220
|
-
simpleTransformation(isDate, "Date", function(v) {
|
|
9221
|
-
return v.toISOString();
|
|
9222
|
-
}, function(v) {
|
|
9223
|
-
return new Date(v);
|
|
9224
|
-
}),
|
|
9225
|
-
simpleTransformation(isError, "Error", function(v, superJson) {
|
|
9226
|
-
var baseError = {
|
|
9227
|
-
name: v.name,
|
|
9228
|
-
message: v.message
|
|
9229
|
-
};
|
|
9230
|
-
superJson.allowedErrorProps.forEach(function(prop) {
|
|
9231
|
-
baseError[prop] = v[prop];
|
|
9232
|
-
});
|
|
9233
|
-
return baseError;
|
|
9234
|
-
}, function(v, superJson) {
|
|
9235
|
-
var e2 = new Error(v.message);
|
|
9236
|
-
e2.name = v.name;
|
|
9237
|
-
e2.stack = v.stack;
|
|
9238
|
-
superJson.allowedErrorProps.forEach(function(prop) {
|
|
9239
|
-
e2[prop] = v[prop];
|
|
9240
|
-
});
|
|
9241
|
-
return e2;
|
|
9242
|
-
}),
|
|
9243
|
-
simpleTransformation(isRegExp, "regexp", function(v) {
|
|
9244
|
-
return "" + v;
|
|
9245
|
-
}, function(regex) {
|
|
9246
|
-
var body = regex.slice(1, regex.lastIndexOf("/"));
|
|
9247
|
-
var flags = regex.slice(regex.lastIndexOf("/") + 1);
|
|
9248
|
-
return new RegExp(body, flags);
|
|
9249
|
-
}),
|
|
9250
|
-
simpleTransformation(
|
|
9251
|
-
isSet,
|
|
9252
|
-
"set",
|
|
9253
|
-
// (sets only exist in es6+)
|
|
9254
|
-
// eslint-disable-next-line es5/no-es6-methods
|
|
9255
|
-
function(v) {
|
|
9256
|
-
return __spreadArray([], __read2(v.values()));
|
|
9257
|
-
},
|
|
9258
|
-
function(v) {
|
|
9259
|
-
return new Set(v);
|
|
9260
|
-
}
|
|
9261
|
-
),
|
|
9262
|
-
simpleTransformation(isMap, "map", function(v) {
|
|
9263
|
-
return __spreadArray([], __read2(v.entries()));
|
|
9264
|
-
}, function(v) {
|
|
9265
|
-
return new Map(v);
|
|
9266
|
-
}),
|
|
9267
|
-
simpleTransformation(function(v) {
|
|
9268
|
-
return isNaNValue(v) || isInfinite(v);
|
|
9269
|
-
}, "number", function(v) {
|
|
9270
|
-
if (isNaNValue(v)) {
|
|
9271
|
-
return "NaN";
|
|
9272
|
-
}
|
|
9273
|
-
if (v > 0) {
|
|
9274
|
-
return "Infinity";
|
|
9275
|
-
} else {
|
|
9276
|
-
return "-Infinity";
|
|
9277
|
-
}
|
|
9278
|
-
}, Number),
|
|
9279
|
-
simpleTransformation(function(v) {
|
|
9280
|
-
return v === 0 && 1 / v === -Infinity;
|
|
9281
|
-
}, "number", function() {
|
|
9282
|
-
return "-0";
|
|
9283
|
-
}, Number),
|
|
9284
|
-
simpleTransformation(isURL, "URL", function(v) {
|
|
9285
|
-
return v.toString();
|
|
9286
|
-
}, function(v) {
|
|
9287
|
-
return new URL(v);
|
|
9288
|
-
})
|
|
9289
|
-
];
|
|
9290
|
-
function compositeTransformation(isApplicable, annotation, transform, untransform) {
|
|
9291
|
-
return {
|
|
9292
|
-
isApplicable,
|
|
9293
|
-
annotation,
|
|
9294
|
-
transform,
|
|
9295
|
-
untransform
|
|
9296
|
-
};
|
|
9297
|
-
}
|
|
9298
|
-
var symbolRule = compositeTransformation(function(s2, superJson) {
|
|
9299
|
-
if (isSymbol(s2)) {
|
|
9300
|
-
var isRegistered = !!superJson.symbolRegistry.getIdentifier(s2);
|
|
9301
|
-
return isRegistered;
|
|
9302
|
-
}
|
|
9303
|
-
return false;
|
|
9304
|
-
}, function(s2, superJson) {
|
|
9305
|
-
var identifier = superJson.symbolRegistry.getIdentifier(s2);
|
|
9306
|
-
return ["symbol", identifier];
|
|
9307
|
-
}, function(v) {
|
|
9308
|
-
return v.description;
|
|
9309
|
-
}, function(_, a2, superJson) {
|
|
9310
|
-
var value = superJson.symbolRegistry.getValue(a2[1]);
|
|
9311
|
-
if (!value) {
|
|
9312
|
-
throw new Error("Trying to deserialize unknown symbol");
|
|
9313
|
-
}
|
|
9314
|
-
return value;
|
|
9315
|
-
});
|
|
9316
|
-
var constructorToName = [
|
|
9317
|
-
Int8Array,
|
|
9318
|
-
Uint8Array,
|
|
9319
|
-
Int16Array,
|
|
9320
|
-
Uint16Array,
|
|
9321
|
-
Int32Array,
|
|
9322
|
-
Uint32Array,
|
|
9323
|
-
Float32Array,
|
|
9324
|
-
Float64Array,
|
|
9325
|
-
Uint8ClampedArray
|
|
9326
|
-
].reduce(function(obj, ctor) {
|
|
9327
|
-
obj[ctor.name] = ctor;
|
|
9328
|
-
return obj;
|
|
9329
|
-
}, {});
|
|
9330
|
-
var typedArrayRule = compositeTransformation(isTypedArray, function(v) {
|
|
9331
|
-
return ["typed-array", v.constructor.name];
|
|
9332
|
-
}, function(v) {
|
|
9333
|
-
return __spreadArray([], __read2(v));
|
|
9334
|
-
}, function(v, a2) {
|
|
9335
|
-
var ctor = constructorToName[a2[1]];
|
|
9336
|
-
if (!ctor) {
|
|
9337
|
-
throw new Error("Trying to deserialize unknown typed array");
|
|
9338
|
-
}
|
|
9339
|
-
return new ctor(v);
|
|
9340
|
-
});
|
|
9341
|
-
function isInstanceOfRegisteredClass(potentialClass, superJson) {
|
|
9342
|
-
if (potentialClass === null || potentialClass === void 0 ? void 0 : potentialClass.constructor) {
|
|
9343
|
-
var isRegistered = !!superJson.classRegistry.getIdentifier(potentialClass.constructor);
|
|
9344
|
-
return isRegistered;
|
|
9345
|
-
}
|
|
9346
|
-
return false;
|
|
9347
|
-
}
|
|
9348
|
-
var classRule = compositeTransformation(isInstanceOfRegisteredClass, function(clazz, superJson) {
|
|
9349
|
-
var identifier = superJson.classRegistry.getIdentifier(clazz.constructor);
|
|
9350
|
-
return ["class", identifier];
|
|
9351
|
-
}, function(clazz, superJson) {
|
|
9352
|
-
var allowedProps = superJson.classRegistry.getAllowedProps(clazz.constructor);
|
|
9353
|
-
if (!allowedProps) {
|
|
9354
|
-
return __assign({}, clazz);
|
|
9355
|
-
}
|
|
9356
|
-
var result = {};
|
|
9357
|
-
allowedProps.forEach(function(prop) {
|
|
9358
|
-
result[prop] = clazz[prop];
|
|
9359
|
-
});
|
|
9360
|
-
return result;
|
|
9361
|
-
}, function(v, a2, superJson) {
|
|
9362
|
-
var clazz = superJson.classRegistry.getValue(a2[1]);
|
|
9363
|
-
if (!clazz) {
|
|
9364
|
-
throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");
|
|
9365
|
-
}
|
|
9366
|
-
return Object.assign(Object.create(clazz.prototype), v);
|
|
9367
|
-
});
|
|
9368
|
-
var customRule = compositeTransformation(function(value, superJson) {
|
|
9369
|
-
return !!superJson.customTransformerRegistry.findApplicable(value);
|
|
9370
|
-
}, function(value, superJson) {
|
|
9371
|
-
var transformer = superJson.customTransformerRegistry.findApplicable(value);
|
|
9372
|
-
return ["custom", transformer.name];
|
|
9373
|
-
}, function(value, superJson) {
|
|
9374
|
-
var transformer = superJson.customTransformerRegistry.findApplicable(value);
|
|
9375
|
-
return transformer.serialize(value);
|
|
9376
|
-
}, function(v, a2, superJson) {
|
|
9377
|
-
var transformer = superJson.customTransformerRegistry.findByName(a2[1]);
|
|
9378
|
-
if (!transformer) {
|
|
9379
|
-
throw new Error("Trying to deserialize unknown custom value");
|
|
9380
|
-
}
|
|
9381
|
-
return transformer.deserialize(v);
|
|
9382
|
-
});
|
|
9383
|
-
var compositeRules = [classRule, symbolRule, customRule, typedArrayRule];
|
|
9384
|
-
var transformValue = function(value, superJson) {
|
|
9385
|
-
var applicableCompositeRule = findArr(compositeRules, function(rule) {
|
|
9386
|
-
return rule.isApplicable(value, superJson);
|
|
9387
|
-
});
|
|
9388
|
-
if (applicableCompositeRule) {
|
|
9389
|
-
return {
|
|
9390
|
-
value: applicableCompositeRule.transform(value, superJson),
|
|
9391
|
-
type: applicableCompositeRule.annotation(value, superJson)
|
|
9392
|
-
};
|
|
9393
|
-
}
|
|
9394
|
-
var applicableSimpleRule = findArr(simpleRules, function(rule) {
|
|
9395
|
-
return rule.isApplicable(value, superJson);
|
|
9396
|
-
});
|
|
9397
|
-
if (applicableSimpleRule) {
|
|
9398
|
-
return {
|
|
9399
|
-
value: applicableSimpleRule.transform(value, superJson),
|
|
9400
|
-
type: applicableSimpleRule.annotation
|
|
9401
|
-
};
|
|
9402
|
-
}
|
|
9403
|
-
return void 0;
|
|
9404
|
-
};
|
|
9405
|
-
var simpleRulesByAnnotation = {};
|
|
9406
|
-
simpleRules.forEach(function(rule) {
|
|
9407
|
-
simpleRulesByAnnotation[rule.annotation] = rule;
|
|
9408
|
-
});
|
|
9409
|
-
var untransformValue = function(json, type, superJson) {
|
|
9410
|
-
if (isArray2(type)) {
|
|
9411
|
-
switch (type[0]) {
|
|
9412
|
-
case "symbol":
|
|
9413
|
-
return symbolRule.untransform(json, type, superJson);
|
|
9414
|
-
case "class":
|
|
9415
|
-
return classRule.untransform(json, type, superJson);
|
|
9416
|
-
case "custom":
|
|
9417
|
-
return customRule.untransform(json, type, superJson);
|
|
9418
|
-
case "typed-array":
|
|
9419
|
-
return typedArrayRule.untransform(json, type, superJson);
|
|
9420
|
-
default:
|
|
9421
|
-
throw new Error("Unknown transformation: " + type);
|
|
9422
|
-
}
|
|
9423
|
-
} else {
|
|
9424
|
-
var transformation = simpleRulesByAnnotation[type];
|
|
9425
|
-
if (!transformation) {
|
|
9426
|
-
throw new Error("Unknown transformation: " + type);
|
|
9427
|
-
}
|
|
9428
|
-
return transformation.untransform(json, superJson);
|
|
9429
|
-
}
|
|
9430
|
-
};
|
|
9431
|
-
|
|
9432
|
-
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/accessDeep.js
|
|
9433
|
-
var getNthKey = function(value, n2) {
|
|
9434
|
-
var keys2 = value.keys();
|
|
9435
|
-
while (n2 > 0) {
|
|
9436
|
-
keys2.next();
|
|
9437
|
-
n2--;
|
|
9438
|
-
}
|
|
9439
|
-
return keys2.next().value;
|
|
9440
|
-
};
|
|
9441
|
-
function validatePath(path) {
|
|
9442
|
-
if (includes(path, "__proto__")) {
|
|
9443
|
-
throw new Error("__proto__ is not allowed as a property");
|
|
9444
|
-
}
|
|
9445
|
-
if (includes(path, "prototype")) {
|
|
9446
|
-
throw new Error("prototype is not allowed as a property");
|
|
9447
|
-
}
|
|
9448
|
-
if (includes(path, "constructor")) {
|
|
9449
|
-
throw new Error("constructor is not allowed as a property");
|
|
9450
|
-
}
|
|
9451
|
-
}
|
|
9452
|
-
var getDeep = function(object, path) {
|
|
9453
|
-
validatePath(path);
|
|
9454
|
-
for (var i2 = 0; i2 < path.length; i2++) {
|
|
9455
|
-
var key = path[i2];
|
|
9456
|
-
if (isSet(object)) {
|
|
9457
|
-
object = getNthKey(object, +key);
|
|
9458
|
-
} else if (isMap(object)) {
|
|
9459
|
-
var row = +key;
|
|
9460
|
-
var type = +path[++i2] === 0 ? "key" : "value";
|
|
9461
|
-
var keyOfRow = getNthKey(object, row);
|
|
9462
|
-
switch (type) {
|
|
9463
|
-
case "key":
|
|
9464
|
-
object = keyOfRow;
|
|
9465
|
-
break;
|
|
9466
|
-
case "value":
|
|
9467
|
-
object = object.get(keyOfRow);
|
|
9468
|
-
break;
|
|
9469
|
-
}
|
|
9470
|
-
} else {
|
|
9471
|
-
object = object[key];
|
|
9472
|
-
}
|
|
9473
|
-
}
|
|
9474
|
-
return object;
|
|
9475
|
-
};
|
|
9476
|
-
var setDeep = function(object, path, mapper) {
|
|
9477
|
-
validatePath(path);
|
|
9478
|
-
if (path.length === 0) {
|
|
9479
|
-
return mapper(object);
|
|
9480
|
-
}
|
|
9481
|
-
var parent = object;
|
|
9482
|
-
for (var i2 = 0; i2 < path.length - 1; i2++) {
|
|
9483
|
-
var key = path[i2];
|
|
9484
|
-
if (isArray2(parent)) {
|
|
9485
|
-
var index = +key;
|
|
9486
|
-
parent = parent[index];
|
|
9487
|
-
} else if (isPlainObject(parent)) {
|
|
9488
|
-
parent = parent[key];
|
|
9489
|
-
} else if (isSet(parent)) {
|
|
9490
|
-
var row = +key;
|
|
9491
|
-
parent = getNthKey(parent, row);
|
|
9492
|
-
} else if (isMap(parent)) {
|
|
9493
|
-
var isEnd = i2 === path.length - 2;
|
|
9494
|
-
if (isEnd) {
|
|
9495
|
-
break;
|
|
9496
|
-
}
|
|
9497
|
-
var row = +key;
|
|
9498
|
-
var type = +path[++i2] === 0 ? "key" : "value";
|
|
9499
|
-
var keyOfRow = getNthKey(parent, row);
|
|
9500
|
-
switch (type) {
|
|
9501
|
-
case "key":
|
|
9502
|
-
parent = keyOfRow;
|
|
9503
|
-
break;
|
|
9504
|
-
case "value":
|
|
9505
|
-
parent = parent.get(keyOfRow);
|
|
9506
|
-
break;
|
|
9507
|
-
}
|
|
9508
|
-
}
|
|
9509
|
-
}
|
|
9510
|
-
var lastKey = path[path.length - 1];
|
|
9511
|
-
if (isArray2(parent)) {
|
|
9512
|
-
parent[+lastKey] = mapper(parent[+lastKey]);
|
|
9513
|
-
} else if (isPlainObject(parent)) {
|
|
9514
|
-
parent[lastKey] = mapper(parent[lastKey]);
|
|
9515
|
-
}
|
|
9516
|
-
if (isSet(parent)) {
|
|
9517
|
-
var oldValue = getNthKey(parent, +lastKey);
|
|
9518
|
-
var newValue = mapper(oldValue);
|
|
9519
|
-
if (oldValue !== newValue) {
|
|
9520
|
-
parent["delete"](oldValue);
|
|
9521
|
-
parent.add(newValue);
|
|
9522
|
-
}
|
|
9523
|
-
}
|
|
9524
|
-
if (isMap(parent)) {
|
|
9525
|
-
var row = +path[path.length - 2];
|
|
9526
|
-
var keyToRow = getNthKey(parent, row);
|
|
9527
|
-
var type = +lastKey === 0 ? "key" : "value";
|
|
9528
|
-
switch (type) {
|
|
9529
|
-
case "key": {
|
|
9530
|
-
var newKey = mapper(keyToRow);
|
|
9531
|
-
parent.set(newKey, parent.get(keyToRow));
|
|
9532
|
-
if (newKey !== keyToRow) {
|
|
9533
|
-
parent["delete"](keyToRow);
|
|
9534
|
-
}
|
|
9535
|
-
break;
|
|
9536
|
-
}
|
|
9537
|
-
case "value": {
|
|
9538
|
-
parent.set(keyToRow, mapper(parent.get(keyToRow)));
|
|
9539
|
-
break;
|
|
9540
|
-
}
|
|
9541
|
-
}
|
|
9542
|
-
}
|
|
9543
|
-
return object;
|
|
9544
|
-
};
|
|
9545
|
-
|
|
9546
|
-
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/plainer.js
|
|
9547
|
-
var __read3 = function(o2, n2) {
|
|
9548
|
-
var m = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
9549
|
-
if (!m)
|
|
9550
|
-
return o2;
|
|
9551
|
-
var i2 = m.call(o2), r2, ar = [], e2;
|
|
9552
|
-
try {
|
|
9553
|
-
while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
|
|
9554
|
-
ar.push(r2.value);
|
|
9555
|
-
} catch (error) {
|
|
9556
|
-
e2 = { error };
|
|
9557
|
-
} finally {
|
|
9558
|
-
try {
|
|
9559
|
-
if (r2 && !r2.done && (m = i2["return"]))
|
|
9560
|
-
m.call(i2);
|
|
9561
|
-
} finally {
|
|
9562
|
-
if (e2)
|
|
9563
|
-
throw e2.error;
|
|
9564
|
-
}
|
|
9565
|
-
}
|
|
9566
|
-
return ar;
|
|
9567
|
-
};
|
|
9568
|
-
var __spreadArray2 = function(to, from) {
|
|
9569
|
-
for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
|
|
9570
|
-
to[j] = from[i2];
|
|
9571
|
-
return to;
|
|
9572
|
-
};
|
|
9573
|
-
function traverse(tree, walker2, origin) {
|
|
9574
|
-
if (origin === void 0) {
|
|
9575
|
-
origin = [];
|
|
9576
|
-
}
|
|
9577
|
-
if (!tree) {
|
|
9578
|
-
return;
|
|
9579
|
-
}
|
|
9580
|
-
if (!isArray2(tree)) {
|
|
9581
|
-
forEach(tree, function(subtree, key) {
|
|
9582
|
-
return traverse(subtree, walker2, __spreadArray2(__spreadArray2([], __read3(origin)), __read3(parsePath(key))));
|
|
9583
|
-
});
|
|
9584
|
-
return;
|
|
9585
|
-
}
|
|
9586
|
-
var _a = __read3(tree, 2), nodeValue = _a[0], children2 = _a[1];
|
|
9587
|
-
if (children2) {
|
|
9588
|
-
forEach(children2, function(child, key) {
|
|
9589
|
-
traverse(child, walker2, __spreadArray2(__spreadArray2([], __read3(origin)), __read3(parsePath(key))));
|
|
9590
|
-
});
|
|
9591
|
-
}
|
|
9592
|
-
walker2(nodeValue, origin);
|
|
9593
|
-
}
|
|
9594
|
-
function applyValueAnnotations(plain, annotations, superJson) {
|
|
9595
|
-
traverse(annotations, function(type, path) {
|
|
9596
|
-
plain = setDeep(plain, path, function(v) {
|
|
9597
|
-
return untransformValue(v, type, superJson);
|
|
9598
|
-
});
|
|
9599
|
-
});
|
|
9600
|
-
return plain;
|
|
9601
|
-
}
|
|
9602
|
-
function applyReferentialEqualityAnnotations(plain, annotations) {
|
|
9603
|
-
function apply(identicalPaths, path) {
|
|
9604
|
-
var object = getDeep(plain, parsePath(path));
|
|
9605
|
-
identicalPaths.map(parsePath).forEach(function(identicalObjectPath) {
|
|
9606
|
-
plain = setDeep(plain, identicalObjectPath, function() {
|
|
9607
|
-
return object;
|
|
9608
|
-
});
|
|
9609
|
-
});
|
|
9610
|
-
}
|
|
9611
|
-
if (isArray2(annotations)) {
|
|
9612
|
-
var _a = __read3(annotations, 2), root = _a[0], other = _a[1];
|
|
9613
|
-
root.forEach(function(identicalPath) {
|
|
9614
|
-
plain = setDeep(plain, parsePath(identicalPath), function() {
|
|
9615
|
-
return plain;
|
|
9616
|
-
});
|
|
9617
|
-
});
|
|
9618
|
-
if (other) {
|
|
9619
|
-
forEach(other, apply);
|
|
9620
|
-
}
|
|
9621
|
-
} else {
|
|
9622
|
-
forEach(annotations, apply);
|
|
9623
|
-
}
|
|
9624
|
-
return plain;
|
|
9625
|
-
}
|
|
9626
|
-
var isDeep = function(object, superJson) {
|
|
9627
|
-
return isPlainObject(object) || isArray2(object) || isMap(object) || isSet(object) || isInstanceOfRegisteredClass(object, superJson);
|
|
9628
|
-
};
|
|
9629
|
-
function addIdentity(object, path, identities) {
|
|
9630
|
-
var existingSet = identities.get(object);
|
|
9631
|
-
if (existingSet) {
|
|
9632
|
-
existingSet.push(path);
|
|
9633
|
-
} else {
|
|
9634
|
-
identities.set(object, [path]);
|
|
9635
|
-
}
|
|
9636
|
-
}
|
|
9637
|
-
function generateReferentialEqualityAnnotations(identitites) {
|
|
9638
|
-
var result = {};
|
|
9639
|
-
var rootEqualityPaths = void 0;
|
|
9640
|
-
identitites.forEach(function(paths) {
|
|
9641
|
-
if (paths.length <= 1) {
|
|
9642
|
-
return;
|
|
9643
|
-
}
|
|
9644
|
-
var _a = __read3(paths.map(function(path) {
|
|
9645
|
-
return path.map(String);
|
|
9646
|
-
}).sort(function(a2, b2) {
|
|
9647
|
-
return a2.length - b2.length;
|
|
9648
|
-
})), shortestPath = _a[0], identicalPaths = _a.slice(1);
|
|
9649
|
-
if (shortestPath.length === 0) {
|
|
9650
|
-
rootEqualityPaths = identicalPaths.map(stringifyPath);
|
|
9651
|
-
} else {
|
|
9652
|
-
result[stringifyPath(shortestPath)] = identicalPaths.map(stringifyPath);
|
|
9653
|
-
}
|
|
9654
|
-
});
|
|
9655
|
-
if (rootEqualityPaths) {
|
|
9656
|
-
if (isEmptyObject(result)) {
|
|
9657
|
-
return [rootEqualityPaths];
|
|
9658
|
-
} else {
|
|
9659
|
-
return [rootEqualityPaths, result];
|
|
9660
|
-
}
|
|
9661
|
-
} else {
|
|
9662
|
-
return isEmptyObject(result) ? void 0 : result;
|
|
9663
|
-
}
|
|
9664
|
-
}
|
|
9665
|
-
var walker = function(object, identities, superJson, path, objectsInThisPath) {
|
|
9666
|
-
var _a;
|
|
9667
|
-
if (path === void 0) {
|
|
9668
|
-
path = [];
|
|
9669
|
-
}
|
|
9670
|
-
if (objectsInThisPath === void 0) {
|
|
9671
|
-
objectsInThisPath = [];
|
|
9672
|
-
}
|
|
9673
|
-
if (!isPrimitive(object)) {
|
|
9674
|
-
addIdentity(object, path, identities);
|
|
9675
|
-
}
|
|
9676
|
-
if (!isDeep(object, superJson)) {
|
|
9677
|
-
var transformed_1 = transformValue(object, superJson);
|
|
9678
|
-
if (transformed_1) {
|
|
9679
|
-
return {
|
|
9680
|
-
transformedValue: transformed_1.value,
|
|
9681
|
-
annotations: [transformed_1.type]
|
|
9682
|
-
};
|
|
9683
|
-
} else {
|
|
9684
|
-
return {
|
|
9685
|
-
transformedValue: object
|
|
9686
|
-
};
|
|
9687
|
-
}
|
|
9688
|
-
}
|
|
9689
|
-
if (includes(objectsInThisPath, object)) {
|
|
9690
|
-
return {
|
|
9691
|
-
transformedValue: null
|
|
9692
|
-
};
|
|
9693
|
-
}
|
|
9694
|
-
var transformationResult = transformValue(object, superJson);
|
|
9695
|
-
var transformed = (_a = transformationResult === null || transformationResult === void 0 ? void 0 : transformationResult.value) !== null && _a !== void 0 ? _a : object;
|
|
9696
|
-
if (!isPrimitive(object)) {
|
|
9697
|
-
objectsInThisPath = __spreadArray2(__spreadArray2([], __read3(objectsInThisPath)), [object]);
|
|
9698
|
-
}
|
|
9699
|
-
var transformedValue = isArray2(transformed) ? [] : {};
|
|
9700
|
-
var innerAnnotations = {};
|
|
9701
|
-
forEach(transformed, function(value, index) {
|
|
9702
|
-
var recursiveResult = walker(value, identities, superJson, __spreadArray2(__spreadArray2([], __read3(path)), [index]), objectsInThisPath);
|
|
9703
|
-
transformedValue[index] = recursiveResult.transformedValue;
|
|
9704
|
-
if (isArray2(recursiveResult.annotations)) {
|
|
9705
|
-
innerAnnotations[index] = recursiveResult.annotations;
|
|
9706
|
-
} else if (isPlainObject(recursiveResult.annotations)) {
|
|
9707
|
-
forEach(recursiveResult.annotations, function(tree, key) {
|
|
9708
|
-
innerAnnotations[escapeKey(index) + "." + key] = tree;
|
|
9709
|
-
});
|
|
9710
|
-
}
|
|
9711
|
-
});
|
|
9712
|
-
if (isEmptyObject(innerAnnotations)) {
|
|
9713
|
-
return {
|
|
9714
|
-
transformedValue,
|
|
9715
|
-
annotations: !!transformationResult ? [transformationResult.type] : void 0
|
|
9716
|
-
};
|
|
9717
|
-
} else {
|
|
9718
|
-
return {
|
|
9719
|
-
transformedValue,
|
|
9720
|
-
annotations: !!transformationResult ? [transformationResult.type, innerAnnotations] : innerAnnotations
|
|
9721
|
-
};
|
|
9722
|
-
}
|
|
9723
|
-
};
|
|
9724
|
-
|
|
9725
|
-
// ../../node_modules/.pnpm/is-what@4.1.15/node_modules/is-what/dist/index.js
|
|
9726
|
-
function getType2(payload) {
|
|
9727
|
-
return Object.prototype.toString.call(payload).slice(8, -1);
|
|
9728
|
-
}
|
|
9729
|
-
function isUndefined2(payload) {
|
|
9730
|
-
return getType2(payload) === "Undefined";
|
|
9731
|
-
}
|
|
9732
|
-
function isNull2(payload) {
|
|
9733
|
-
return getType2(payload) === "Null";
|
|
9734
|
-
}
|
|
9735
|
-
function isPlainObject2(payload) {
|
|
9736
|
-
if (getType2(payload) !== "Object")
|
|
9737
|
-
return false;
|
|
9738
|
-
const prototype = Object.getPrototypeOf(payload);
|
|
9739
|
-
return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
|
|
9740
|
-
}
|
|
9741
|
-
function isArray3(payload) {
|
|
9742
|
-
return getType2(payload) === "Array";
|
|
9743
|
-
}
|
|
9744
|
-
var isNullOrUndefined = isOneOf(isNull2, isUndefined2);
|
|
9745
|
-
function isOneOf(a2, b2, c2, d, e2) {
|
|
9746
|
-
return (value) => a2(value) || b2(value) || !!c2 && c2(value) || !!d && d(value) || !!e2 && e2(value);
|
|
9747
|
-
}
|
|
9748
|
-
|
|
9749
|
-
// ../../node_modules/.pnpm/copy-anything@3.0.5/node_modules/copy-anything/dist/index.js
|
|
9750
|
-
function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
|
|
9751
|
-
const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
|
|
9752
|
-
if (propType === "enumerable")
|
|
9753
|
-
carry[key] = newVal;
|
|
9754
|
-
if (includeNonenumerable && propType === "nonenumerable") {
|
|
9755
|
-
Object.defineProperty(carry, key, {
|
|
9756
|
-
value: newVal,
|
|
9757
|
-
enumerable: false,
|
|
9758
|
-
writable: true,
|
|
9759
|
-
configurable: true
|
|
9760
|
-
});
|
|
9761
|
-
}
|
|
9762
|
-
}
|
|
9763
|
-
function copy(target, options = {}) {
|
|
9764
|
-
if (isArray3(target)) {
|
|
9765
|
-
return target.map((item) => copy(item, options));
|
|
9766
|
-
}
|
|
9767
|
-
if (!isPlainObject2(target)) {
|
|
9768
|
-
return target;
|
|
9769
|
-
}
|
|
9770
|
-
const props = Object.getOwnPropertyNames(target);
|
|
9771
|
-
const symbols = Object.getOwnPropertySymbols(target);
|
|
9772
|
-
return [...props, ...symbols].reduce((carry, key) => {
|
|
9773
|
-
if (isArray3(options.props) && !options.props.includes(key)) {
|
|
9774
|
-
return carry;
|
|
9775
|
-
}
|
|
9776
|
-
const val = target[key];
|
|
9777
|
-
const newVal = copy(val, options);
|
|
9778
|
-
assignProp(carry, key, newVal, target, options.nonenumerable);
|
|
9779
|
-
return carry;
|
|
9780
|
-
}, {});
|
|
9781
|
-
}
|
|
9782
|
-
|
|
9783
|
-
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/index.js
|
|
9784
|
-
var __assign2 = function() {
|
|
9785
|
-
__assign2 = Object.assign || function(t2) {
|
|
9786
|
-
for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
9787
|
-
s2 = arguments[i2];
|
|
9788
|
-
for (var p2 in s2)
|
|
9789
|
-
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
9790
|
-
t2[p2] = s2[p2];
|
|
9791
|
-
}
|
|
9792
|
-
return t2;
|
|
9793
|
-
};
|
|
9794
|
-
return __assign2.apply(this, arguments);
|
|
9795
|
-
};
|
|
9796
|
-
var __read4 = function(o2, n2) {
|
|
9797
|
-
var m = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
9798
|
-
if (!m)
|
|
9799
|
-
return o2;
|
|
9800
|
-
var i2 = m.call(o2), r2, ar = [], e2;
|
|
9801
|
-
try {
|
|
9802
|
-
while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
|
|
9803
|
-
ar.push(r2.value);
|
|
9804
|
-
} catch (error) {
|
|
9805
|
-
e2 = { error };
|
|
9806
|
-
} finally {
|
|
9807
|
-
try {
|
|
9808
|
-
if (r2 && !r2.done && (m = i2["return"]))
|
|
9809
|
-
m.call(i2);
|
|
9810
|
-
} finally {
|
|
9811
|
-
if (e2)
|
|
9812
|
-
throw e2.error;
|
|
9813
|
-
}
|
|
9814
|
-
}
|
|
9815
|
-
return ar;
|
|
9816
|
-
};
|
|
9817
|
-
var __spreadArray3 = function(to, from) {
|
|
9818
|
-
for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
|
|
9819
|
-
to[j] = from[i2];
|
|
9820
|
-
return to;
|
|
9821
|
-
};
|
|
9822
|
-
var SuperJSON = (
|
|
9823
|
-
/** @class */
|
|
9824
|
-
function() {
|
|
9825
|
-
function SuperJSON2() {
|
|
9826
|
-
this.classRegistry = new ClassRegistry();
|
|
9827
|
-
this.symbolRegistry = new Registry(function(s2) {
|
|
9828
|
-
var _a;
|
|
9829
|
-
return (_a = s2.description) !== null && _a !== void 0 ? _a : "";
|
|
9830
|
-
});
|
|
9831
|
-
this.customTransformerRegistry = new CustomTransformerRegistry();
|
|
9832
|
-
this.allowedErrorProps = [];
|
|
9833
|
-
}
|
|
9834
|
-
SuperJSON2.prototype.serialize = function(object) {
|
|
9835
|
-
var identities = /* @__PURE__ */ new Map();
|
|
9836
|
-
var output = walker(object, identities, this);
|
|
9837
|
-
var res = {
|
|
9838
|
-
json: output.transformedValue
|
|
9839
|
-
};
|
|
9840
|
-
if (output.annotations) {
|
|
9841
|
-
res.meta = __assign2(__assign2({}, res.meta), { values: output.annotations });
|
|
9842
|
-
}
|
|
9843
|
-
var equalityAnnotations = generateReferentialEqualityAnnotations(identities);
|
|
9844
|
-
if (equalityAnnotations) {
|
|
9845
|
-
res.meta = __assign2(__assign2({}, res.meta), { referentialEqualities: equalityAnnotations });
|
|
9846
|
-
}
|
|
9847
|
-
return res;
|
|
9848
|
-
};
|
|
9849
|
-
SuperJSON2.prototype.deserialize = function(payload) {
|
|
9850
|
-
var json = payload.json, meta = payload.meta;
|
|
9851
|
-
var result = copy(json);
|
|
9852
|
-
if (meta === null || meta === void 0 ? void 0 : meta.values) {
|
|
9853
|
-
result = applyValueAnnotations(result, meta.values, this);
|
|
9854
|
-
}
|
|
9855
|
-
if (meta === null || meta === void 0 ? void 0 : meta.referentialEqualities) {
|
|
9856
|
-
result = applyReferentialEqualityAnnotations(result, meta.referentialEqualities);
|
|
9857
|
-
}
|
|
9858
|
-
return result;
|
|
9859
|
-
};
|
|
9860
|
-
SuperJSON2.prototype.stringify = function(object) {
|
|
9861
|
-
return JSON.stringify(this.serialize(object));
|
|
9862
|
-
};
|
|
9863
|
-
SuperJSON2.prototype.parse = function(string) {
|
|
9864
|
-
return this.deserialize(JSON.parse(string));
|
|
9865
|
-
};
|
|
9866
|
-
SuperJSON2.prototype.registerClass = function(v, options) {
|
|
9867
|
-
this.classRegistry.register(v, options);
|
|
9868
|
-
};
|
|
9869
|
-
SuperJSON2.prototype.registerSymbol = function(v, identifier) {
|
|
9870
|
-
this.symbolRegistry.register(v, identifier);
|
|
9871
|
-
};
|
|
9872
|
-
SuperJSON2.prototype.registerCustom = function(transformer, name) {
|
|
9873
|
-
this.customTransformerRegistry.register(__assign2({ name }, transformer));
|
|
9874
|
-
};
|
|
9875
|
-
SuperJSON2.prototype.allowErrorProps = function() {
|
|
9876
|
-
var _a;
|
|
9877
|
-
var props = [];
|
|
9878
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
9879
|
-
props[_i] = arguments[_i];
|
|
9880
|
-
}
|
|
9881
|
-
(_a = this.allowedErrorProps).push.apply(_a, __spreadArray3([], __read4(props)));
|
|
9882
|
-
};
|
|
9883
|
-
SuperJSON2.defaultInstance = new SuperJSON2();
|
|
9884
|
-
SuperJSON2.serialize = SuperJSON2.defaultInstance.serialize.bind(SuperJSON2.defaultInstance);
|
|
9885
|
-
SuperJSON2.deserialize = SuperJSON2.defaultInstance.deserialize.bind(SuperJSON2.defaultInstance);
|
|
9886
|
-
SuperJSON2.stringify = SuperJSON2.defaultInstance.stringify.bind(SuperJSON2.defaultInstance);
|
|
9887
|
-
SuperJSON2.parse = SuperJSON2.defaultInstance.parse.bind(SuperJSON2.defaultInstance);
|
|
9888
|
-
SuperJSON2.registerClass = SuperJSON2.defaultInstance.registerClass.bind(SuperJSON2.defaultInstance);
|
|
9889
|
-
SuperJSON2.registerSymbol = SuperJSON2.defaultInstance.registerSymbol.bind(SuperJSON2.defaultInstance);
|
|
9890
|
-
SuperJSON2.registerCustom = SuperJSON2.defaultInstance.registerCustom.bind(SuperJSON2.defaultInstance);
|
|
9891
|
-
SuperJSON2.allowErrorProps = SuperJSON2.defaultInstance.allowErrorProps.bind(SuperJSON2.defaultInstance);
|
|
9892
|
-
return SuperJSON2;
|
|
9893
|
-
}()
|
|
9894
|
-
);
|
|
9895
|
-
var serialize = SuperJSON.serialize;
|
|
9896
|
-
var deserialize = SuperJSON.deserialize;
|
|
9897
|
-
var stringify = SuperJSON.stringify;
|
|
9898
|
-
var parse = SuperJSON.parse;
|
|
9899
|
-
var registerClass = SuperJSON.registerClass;
|
|
9900
|
-
var registerCustom = SuperJSON.registerCustom;
|
|
9901
|
-
var registerSymbol = SuperJSON.registerSymbol;
|
|
9902
|
-
var allowErrorProps = SuperJSON.allowErrorProps;
|
|
9903
|
-
|
|
9904
|
-
// src/utils.tsx
|
|
9905
|
-
function getQueryStatusLabel(query) {
|
|
9906
|
-
return query.state.fetchStatus === "fetching" ? "fetching" : !query.getObserversCount() ? "inactive" : query.state.fetchStatus === "paused" ? "paused" : query.isStale() ? "stale" : "fresh";
|
|
9907
|
-
}
|
|
9908
|
-
function getSidedProp(prop, side) {
|
|
9909
|
-
return `${prop}${side.charAt(0).toUpperCase() + side.slice(1)}`;
|
|
9910
|
-
}
|
|
9911
|
-
function getQueryStatusColor({
|
|
9912
|
-
queryState,
|
|
9913
|
-
observerCount,
|
|
9914
|
-
isStale
|
|
9915
|
-
}) {
|
|
9916
|
-
return queryState.fetchStatus === "fetching" ? "blue" : !observerCount ? "gray" : queryState.fetchStatus === "paused" ? "purple" : isStale ? "yellow" : "green";
|
|
9917
|
-
}
|
|
9918
|
-
function getMutationStatusColor({
|
|
9919
|
-
status,
|
|
9920
|
-
isPaused
|
|
9921
|
-
}) {
|
|
9922
|
-
return isPaused ? "purple" : status === "error" ? "red" : status === "pending" ? "yellow" : status === "success" ? "green" : "gray";
|
|
9923
|
-
}
|
|
9924
|
-
function getQueryStatusColorByLabel(label) {
|
|
9925
|
-
return label === "fresh" ? "green" : label === "stale" ? "yellow" : label === "paused" ? "purple" : label === "inactive" ? "gray" : "blue";
|
|
9926
|
-
}
|
|
9927
|
-
var displayValue = (value, beautify = false) => {
|
|
9928
|
-
const { json } = serialize(value);
|
|
9929
|
-
return JSON.stringify(json, null, beautify ? 2 : void 0);
|
|
9930
|
-
};
|
|
9931
|
-
var getStatusRank = (q) => q.state.fetchStatus !== "idle" ? 0 : !q.getObserversCount() ? 3 : q.isStale() ? 2 : 1;
|
|
9932
|
-
var queryHashSort = (a2, b2) => a2.queryHash.localeCompare(b2.queryHash);
|
|
9933
|
-
var dateSort = (a2, b2) => a2.state.dataUpdatedAt < b2.state.dataUpdatedAt ? 1 : -1;
|
|
9934
|
-
var statusAndDateSort = (a2, b2) => {
|
|
9935
|
-
if (getStatusRank(a2) === getStatusRank(b2)) {
|
|
9936
|
-
return dateSort(a2, b2);
|
|
9937
|
-
}
|
|
9938
|
-
return getStatusRank(a2) > getStatusRank(b2) ? 1 : -1;
|
|
9939
|
-
};
|
|
9940
|
-
var sortFns = {
|
|
9941
|
-
status: statusAndDateSort,
|
|
9942
|
-
"query hash": queryHashSort,
|
|
9943
|
-
"last updated": dateSort
|
|
9944
|
-
};
|
|
9945
|
-
var getMutationStatusRank = (m) => m.state.isPaused ? 0 : m.state.status === "error" ? 2 : m.state.status === "pending" ? 1 : 3;
|
|
9946
|
-
var mutationDateSort = (a2, b2) => a2.state.submittedAt < b2.state.submittedAt ? 1 : -1;
|
|
9947
|
-
var mutationStatusSort = (a2, b2) => {
|
|
9948
|
-
if (getMutationStatusRank(a2) === getMutationStatusRank(b2)) {
|
|
9949
|
-
return mutationDateSort(a2, b2);
|
|
9950
|
-
}
|
|
9951
|
-
return getMutationStatusRank(a2) > getMutationStatusRank(b2) ? 1 : -1;
|
|
9952
|
-
};
|
|
9953
|
-
var mutationSortFns = {
|
|
9954
|
-
status: mutationStatusSort,
|
|
9955
|
-
"last updated": mutationDateSort
|
|
9956
|
-
};
|
|
9957
|
-
var convertRemToPixels = (rem) => {
|
|
9958
|
-
return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
9959
|
-
};
|
|
9960
|
-
var getPreferredColorScheme = () => {
|
|
9961
|
-
const [colorScheme, setColorScheme] = createSignal("dark");
|
|
9962
|
-
onMount(() => {
|
|
9963
|
-
const query = window.matchMedia("(prefers-color-scheme: dark)");
|
|
9964
|
-
setColorScheme(query.matches ? "dark" : "light");
|
|
9965
|
-
const listener = (e2) => {
|
|
9966
|
-
setColorScheme(e2.matches ? "dark" : "light");
|
|
9967
|
-
};
|
|
9968
|
-
query.addEventListener("change", listener);
|
|
9969
|
-
onCleanup(() => query.removeEventListener("change", listener));
|
|
9970
|
-
});
|
|
9971
|
-
return colorScheme;
|
|
9972
|
-
};
|
|
9973
|
-
var updateNestedDataByPath = (oldData, updatePath2, value) => {
|
|
9974
|
-
if (updatePath2.length === 0) {
|
|
9975
|
-
return value;
|
|
9976
|
-
}
|
|
9977
|
-
if (oldData instanceof Map) {
|
|
9978
|
-
const newData = new Map(oldData);
|
|
9979
|
-
if (updatePath2.length === 1) {
|
|
9980
|
-
newData.set(updatePath2[0], value);
|
|
9981
|
-
return newData;
|
|
9982
|
-
}
|
|
9983
|
-
const [head, ...tail] = updatePath2;
|
|
9984
|
-
newData.set(head, updateNestedDataByPath(newData.get(head), tail, value));
|
|
9985
|
-
return newData;
|
|
9986
|
-
}
|
|
9987
|
-
if (oldData instanceof Set) {
|
|
9988
|
-
const setAsArray = updateNestedDataByPath(
|
|
9989
|
-
Array.from(oldData),
|
|
9990
|
-
updatePath2,
|
|
9991
|
-
value
|
|
9992
|
-
);
|
|
9993
|
-
return new Set(setAsArray);
|
|
9994
|
-
}
|
|
9995
|
-
if (Array.isArray(oldData)) {
|
|
9996
|
-
const newData = [...oldData];
|
|
9997
|
-
if (updatePath2.length === 1) {
|
|
9998
|
-
newData[updatePath2[0]] = value;
|
|
9999
|
-
return newData;
|
|
10000
|
-
}
|
|
10001
|
-
const [head, ...tail] = updatePath2;
|
|
10002
|
-
newData[head] = updateNestedDataByPath(newData[head], tail, value);
|
|
10003
|
-
return newData;
|
|
10004
|
-
}
|
|
10005
|
-
if (oldData instanceof Object) {
|
|
10006
|
-
const newData = { ...oldData };
|
|
10007
|
-
if (updatePath2.length === 1) {
|
|
10008
|
-
newData[updatePath2[0]] = value;
|
|
10009
|
-
return newData;
|
|
10010
|
-
}
|
|
10011
|
-
const [head, ...tail] = updatePath2;
|
|
10012
|
-
newData[head] = updateNestedDataByPath(newData[head], tail, value);
|
|
10013
|
-
return newData;
|
|
10014
|
-
}
|
|
10015
|
-
return oldData;
|
|
10016
|
-
};
|
|
10017
|
-
var deleteNestedDataByPath = (oldData, deletePath) => {
|
|
10018
|
-
if (oldData instanceof Map) {
|
|
10019
|
-
const newData = new Map(oldData);
|
|
10020
|
-
if (deletePath.length === 1) {
|
|
10021
|
-
newData.delete(deletePath[0]);
|
|
10022
|
-
return newData;
|
|
10023
|
-
}
|
|
10024
|
-
const [head, ...tail] = deletePath;
|
|
10025
|
-
newData.set(head, deleteNestedDataByPath(newData.get(head), tail));
|
|
10026
|
-
return newData;
|
|
10027
|
-
}
|
|
10028
|
-
if (oldData instanceof Set) {
|
|
10029
|
-
const setAsArray = deleteNestedDataByPath(Array.from(oldData), deletePath);
|
|
10030
|
-
return new Set(setAsArray);
|
|
10031
|
-
}
|
|
10032
|
-
if (Array.isArray(oldData)) {
|
|
10033
|
-
const newData = [...oldData];
|
|
10034
|
-
if (deletePath.length === 1) {
|
|
10035
|
-
return newData.filter((_, idx) => idx.toString() !== deletePath[0]);
|
|
10036
|
-
}
|
|
10037
|
-
const [head, ...tail] = deletePath;
|
|
10038
|
-
newData[head] = deleteNestedDataByPath(newData[head], tail);
|
|
10039
|
-
return newData;
|
|
10040
|
-
}
|
|
10041
|
-
if (oldData instanceof Object) {
|
|
10042
|
-
const newData = { ...oldData };
|
|
10043
|
-
if (deletePath.length === 1) {
|
|
10044
|
-
delete newData[deletePath[0]];
|
|
10045
|
-
return newData;
|
|
10046
|
-
}
|
|
10047
|
-
const [head, ...tail] = deletePath;
|
|
10048
|
-
newData[head] = deleteNestedDataByPath(newData[head], tail);
|
|
10049
|
-
return newData;
|
|
10050
|
-
}
|
|
10051
|
-
return oldData;
|
|
10052
|
-
};
|
|
10053
|
-
|
|
10054
8874
|
// src/icons/index.tsx
|
|
10055
8875
|
function Search() {
|
|
10056
8876
|
return <svg
|
|
@@ -11225,7 +10045,6 @@ var CopyButton = (props) => {
|
|
|
11225
10045
|
}, 1500);
|
|
11226
10046
|
},
|
|
11227
10047
|
(err) => {
|
|
11228
|
-
console.error("Failed to copy: ", err);
|
|
11229
10048
|
setCopyState("ErrorCopy");
|
|
11230
10049
|
setTimeout(() => {
|
|
11231
10050
|
setCopyState("NoCopy");
|
|
@@ -11507,8 +10326,8 @@ var stylesFactory = (theme) => {
|
|
|
11507
10326
|
expanderButtonContainer: u`
|
|
11508
10327
|
display: flex;
|
|
11509
10328
|
align-items: center;
|
|
11510
|
-
line-height:
|
|
11511
|
-
min-height:
|
|
10329
|
+
line-height: ${size2[4]};
|
|
10330
|
+
min-height: ${size2[4]};
|
|
11512
10331
|
gap: ${size2[2]};
|
|
11513
10332
|
`,
|
|
11514
10333
|
expanderButton: u`
|
|
@@ -11516,7 +10335,7 @@ var stylesFactory = (theme) => {
|
|
|
11516
10335
|
color: inherit;
|
|
11517
10336
|
font: inherit;
|
|
11518
10337
|
outline: inherit;
|
|
11519
|
-
height:
|
|
10338
|
+
height: ${size2[5]};
|
|
11520
10339
|
background: transparent;
|
|
11521
10340
|
border: none;
|
|
11522
10341
|
padding: 0;
|
|
@@ -11558,8 +10377,8 @@ var stylesFactory = (theme) => {
|
|
|
11558
10377
|
display: inline-flex;
|
|
11559
10378
|
gap: ${size2[2]};
|
|
11560
10379
|
width: 100%;
|
|
11561
|
-
margin
|
|
11562
|
-
line-height:
|
|
10380
|
+
margin: ${size2[0.25]} 0px;
|
|
10381
|
+
line-height: ${size2[4.5]};
|
|
11563
10382
|
align-items: center;
|
|
11564
10383
|
`,
|
|
11565
10384
|
editableInput: u`
|
|
@@ -11659,8 +10478,9 @@ var Devtools = (props) => {
|
|
|
11659
10478
|
const position = createMemo(() => {
|
|
11660
10479
|
return props.localStore.position || useQueryDevtoolsContext().position || POSITION;
|
|
11661
10480
|
});
|
|
10481
|
+
let transitionsContainerRef;
|
|
11662
10482
|
createEffect(() => {
|
|
11663
|
-
const root =
|
|
10483
|
+
const root = transitionsContainerRef.parentElement;
|
|
11664
10484
|
const height = props.localStore.height || DEFAULT_HEIGHT;
|
|
11665
10485
|
const width = props.localStore.width || DEFAULT_WIDTH;
|
|
11666
10486
|
const panelPosition = position();
|
|
@@ -11673,6 +10493,18 @@ var Devtools = (props) => {
|
|
|
11673
10493
|
`${panelPosition === "left" ? "-" : ""}${width}px`
|
|
11674
10494
|
);
|
|
11675
10495
|
});
|
|
10496
|
+
onMount(() => {
|
|
10497
|
+
const onFocus = () => {
|
|
10498
|
+
const root = transitionsContainerRef.parentElement;
|
|
10499
|
+
const fontSize = getComputedStyle(root).fontSize;
|
|
10500
|
+
root.style.setProperty("--tsqd-font-size", fontSize);
|
|
10501
|
+
};
|
|
10502
|
+
onFocus();
|
|
10503
|
+
window.addEventListener("focus", onFocus);
|
|
10504
|
+
onCleanup(() => {
|
|
10505
|
+
window.removeEventListener("focus", onFocus);
|
|
10506
|
+
});
|
|
10507
|
+
});
|
|
11676
10508
|
return <div
|
|
11677
10509
|
class={clsx(
|
|
11678
10510
|
u`
|
|
@@ -11698,6 +10530,7 @@ var Devtools = (props) => {
|
|
|
11698
10530
|
`,
|
|
11699
10531
|
"tsqd-transitions-container"
|
|
11700
10532
|
)}
|
|
10533
|
+
ref={transitionsContainerRef}
|
|
11701
10534
|
>
|
|
11702
10535
|
<TransitionGroup name="tsqd-panel-transition"><Show when={isOpen()}><DevtoolsPanel
|
|
11703
10536
|
localStore={props.localStore}
|
|
@@ -11864,6 +10697,7 @@ var DevtoolsPanel = (props) => {
|
|
|
11864
10697
|
var ContentView = (props) => {
|
|
11865
10698
|
setupQueryCacheSubscription();
|
|
11866
10699
|
setupMutationCacheSubscription();
|
|
10700
|
+
let containerRef;
|
|
11867
10701
|
const theme = useTheme();
|
|
11868
10702
|
const styles = createMemo(() => {
|
|
11869
10703
|
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
@@ -11941,6 +10775,11 @@ var ContentView = (props) => {
|
|
|
11941
10775
|
const setDevtoolsPosition = (pos) => {
|
|
11942
10776
|
props.setLocalStore("position", pos);
|
|
11943
10777
|
};
|
|
10778
|
+
const setComputedVariables = (el) => {
|
|
10779
|
+
const computedStyle = getComputedStyle(containerRef);
|
|
10780
|
+
const variable = computedStyle.getPropertyValue("--tsqd-font-size");
|
|
10781
|
+
el.style.setProperty("--tsqd-font-size", variable);
|
|
10782
|
+
};
|
|
11944
10783
|
return <>
|
|
11945
10784
|
<div
|
|
11946
10785
|
class={clsx(
|
|
@@ -11951,6 +10790,7 @@ var ContentView = (props) => {
|
|
|
11951
10790
|
`,
|
|
11952
10791
|
"tsqd-queries-container"
|
|
11953
10792
|
)}
|
|
10793
|
+
ref={containerRef}
|
|
11954
10794
|
>
|
|
11955
10795
|
<div class={clsx(styles().row, "tsqd-header")}>
|
|
11956
10796
|
<div class={styles().logoAndToggleContainer}>
|
|
@@ -12121,7 +10961,9 @@ var ContentView = (props) => {
|
|
|
12121
10961
|
"tsqd-action-settings"
|
|
12122
10962
|
)}
|
|
12123
10963
|
><Settings /></index$d.Trigger>
|
|
12124
|
-
<index$d.Portal
|
|
10964
|
+
<index$d.Portal
|
|
10965
|
+
ref={(el) => setComputedVariables(el)}
|
|
10966
|
+
><index$d.Content
|
|
12125
10967
|
class={clsx(styles().settingsMenu, "tsqd-settings-menu")}
|
|
12126
10968
|
>
|
|
12127
10969
|
<div
|
|
@@ -12141,7 +10983,9 @@ var ContentView = (props) => {
|
|
|
12141
10983
|
<span>Position</span>
|
|
12142
10984
|
<ChevronDown />
|
|
12143
10985
|
</index$d.SubTrigger>
|
|
12144
|
-
<index$d.Portal
|
|
10986
|
+
<index$d.Portal
|
|
10987
|
+
ref={(el) => setComputedVariables(el)}
|
|
10988
|
+
><index$d.SubContent
|
|
12145
10989
|
class={clsx(
|
|
12146
10990
|
styles().settingsMenu,
|
|
12147
10991
|
"tsqd-settings-submenu"
|
|
@@ -12216,7 +11060,9 @@ var ContentView = (props) => {
|
|
|
12216
11060
|
<span>Theme</span>
|
|
12217
11061
|
<ChevronDown />
|
|
12218
11062
|
</index$d.SubTrigger>
|
|
12219
|
-
<index$d.Portal
|
|
11063
|
+
<index$d.Portal
|
|
11064
|
+
ref={(el) => setComputedVariables(el)}
|
|
11065
|
+
><index$d.SubContent
|
|
12220
11066
|
class={clsx(
|
|
12221
11067
|
styles().settingsMenu,
|
|
12222
11068
|
"tsqd-settings-submenu"
|
|
@@ -12906,7 +11752,7 @@ var QueryDetails = () => {
|
|
|
12906
11752
|
<div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Data Explorer</div>
|
|
12907
11753
|
<div
|
|
12908
11754
|
style={{
|
|
12909
|
-
padding:
|
|
11755
|
+
padding: tokens.size[2]
|
|
12910
11756
|
}}
|
|
12911
11757
|
class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"
|
|
12912
11758
|
><Explorer
|
|
@@ -12919,7 +11765,7 @@ var QueryDetails = () => {
|
|
|
12919
11765
|
<div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Query Explorer</div>
|
|
12920
11766
|
<div
|
|
12921
11767
|
style={{
|
|
12922
|
-
padding:
|
|
11768
|
+
padding: tokens.size[2]
|
|
12923
11769
|
}}
|
|
12924
11770
|
class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"
|
|
12925
11771
|
><Explorer
|
|
@@ -13010,7 +11856,7 @@ var MutationDetails = () => {
|
|
|
13010
11856
|
<div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Variables Details</div>
|
|
13011
11857
|
<div
|
|
13012
11858
|
style={{
|
|
13013
|
-
padding:
|
|
11859
|
+
padding: tokens.size[2]
|
|
13014
11860
|
}}
|
|
13015
11861
|
class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"
|
|
13016
11862
|
><Explorer
|
|
@@ -13021,7 +11867,7 @@ var MutationDetails = () => {
|
|
|
13021
11867
|
<div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Context Details</div>
|
|
13022
11868
|
<div
|
|
13023
11869
|
style={{
|
|
13024
|
-
padding:
|
|
11870
|
+
padding: tokens.size[2]
|
|
13025
11871
|
}}
|
|
13026
11872
|
class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"
|
|
13027
11873
|
><Explorer
|
|
@@ -13032,7 +11878,7 @@ var MutationDetails = () => {
|
|
|
13032
11878
|
<div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Data Explorer</div>
|
|
13033
11879
|
<div
|
|
13034
11880
|
style={{
|
|
13035
|
-
padding:
|
|
11881
|
+
padding: tokens.size[2]
|
|
13036
11882
|
}}
|
|
13037
11883
|
class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"
|
|
13038
11884
|
><Explorer
|
|
@@ -13043,7 +11889,7 @@ var MutationDetails = () => {
|
|
|
13043
11889
|
<div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Mutations Explorer</div>
|
|
13044
11890
|
<div
|
|
13045
11891
|
style={{
|
|
13046
|
-
padding:
|
|
11892
|
+
padding: tokens.size[2]
|
|
13047
11893
|
}}
|
|
13048
11894
|
class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"
|
|
13049
11895
|
><Explorer
|
|
@@ -13216,7 +12062,7 @@ var stylesFactory2 = (theme) => {
|
|
|
13216
12062
|
right: 0;
|
|
13217
12063
|
left: 0;
|
|
13218
12064
|
max-height: 90%;
|
|
13219
|
-
min-height:
|
|
12065
|
+
min-height: ${size2[14]};
|
|
13220
12066
|
border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13221
12067
|
`,
|
|
13222
12068
|
"panel-position-bottom": u`
|
|
@@ -13224,7 +12070,7 @@ var stylesFactory2 = (theme) => {
|
|
|
13224
12070
|
right: 0;
|
|
13225
12071
|
left: 0;
|
|
13226
12072
|
max-height: 90%;
|
|
13227
|
-
min-height:
|
|
12073
|
+
min-height: ${size2[14]};
|
|
13228
12074
|
border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13229
12075
|
`,
|
|
13230
12076
|
"panel-position-right": u`
|
|
@@ -13556,6 +12402,8 @@ var stylesFactory2 = (theme) => {
|
|
|
13556
12402
|
outline: 2px solid ${colors.blue[800]};
|
|
13557
12403
|
}
|
|
13558
12404
|
& svg {
|
|
12405
|
+
width: ${tokens.size[3]};
|
|
12406
|
+
height: ${tokens.size[3]};
|
|
13559
12407
|
color: ${t2(colors.gray[500], colors.gray[400])};
|
|
13560
12408
|
}
|
|
13561
12409
|
}
|
|
@@ -13641,8 +12489,8 @@ var stylesFactory2 = (theme) => {
|
|
|
13641
12489
|
border-radius: ${tokens.border.radius.sm};
|
|
13642
12490
|
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
13643
12491
|
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
13644
|
-
width:
|
|
13645
|
-
height:
|
|
12492
|
+
width: ${tokens.size[6.5]};
|
|
12493
|
+
height: ${tokens.size[6.5]};
|
|
13646
12494
|
justify-content: center;
|
|
13647
12495
|
display: flex;
|
|
13648
12496
|
align-items: center;
|