@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/SPPEWFNK.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,1198 +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
|
-
return v;
|
|
9218
|
-
}),
|
|
9219
|
-
simpleTransformation(isDate, "Date", function(v) {
|
|
9220
|
-
return v.toISOString();
|
|
9221
|
-
}, function(v) {
|
|
9222
|
-
return new Date(v);
|
|
9223
|
-
}),
|
|
9224
|
-
simpleTransformation(isError, "Error", function(v, superJson) {
|
|
9225
|
-
var baseError = {
|
|
9226
|
-
name: v.name,
|
|
9227
|
-
message: v.message
|
|
9228
|
-
};
|
|
9229
|
-
superJson.allowedErrorProps.forEach(function(prop) {
|
|
9230
|
-
baseError[prop] = v[prop];
|
|
9231
|
-
});
|
|
9232
|
-
return baseError;
|
|
9233
|
-
}, function(v, superJson) {
|
|
9234
|
-
var e2 = new Error(v.message);
|
|
9235
|
-
e2.name = v.name;
|
|
9236
|
-
e2.stack = v.stack;
|
|
9237
|
-
superJson.allowedErrorProps.forEach(function(prop) {
|
|
9238
|
-
e2[prop] = v[prop];
|
|
9239
|
-
});
|
|
9240
|
-
return e2;
|
|
9241
|
-
}),
|
|
9242
|
-
simpleTransformation(isRegExp, "regexp", function(v) {
|
|
9243
|
-
return "" + v;
|
|
9244
|
-
}, function(regex) {
|
|
9245
|
-
var body = regex.slice(1, regex.lastIndexOf("/"));
|
|
9246
|
-
var flags = regex.slice(regex.lastIndexOf("/") + 1);
|
|
9247
|
-
return new RegExp(body, flags);
|
|
9248
|
-
}),
|
|
9249
|
-
simpleTransformation(
|
|
9250
|
-
isSet,
|
|
9251
|
-
"set",
|
|
9252
|
-
// (sets only exist in es6+)
|
|
9253
|
-
// eslint-disable-next-line es5/no-es6-methods
|
|
9254
|
-
function(v) {
|
|
9255
|
-
return __spreadArray([], __read2(v.values()));
|
|
9256
|
-
},
|
|
9257
|
-
function(v) {
|
|
9258
|
-
return new Set(v);
|
|
9259
|
-
}
|
|
9260
|
-
),
|
|
9261
|
-
simpleTransformation(isMap, "map", function(v) {
|
|
9262
|
-
return __spreadArray([], __read2(v.entries()));
|
|
9263
|
-
}, function(v) {
|
|
9264
|
-
return new Map(v);
|
|
9265
|
-
}),
|
|
9266
|
-
simpleTransformation(function(v) {
|
|
9267
|
-
return isNaNValue(v) || isInfinite(v);
|
|
9268
|
-
}, "number", function(v) {
|
|
9269
|
-
if (isNaNValue(v)) {
|
|
9270
|
-
return "NaN";
|
|
9271
|
-
}
|
|
9272
|
-
if (v > 0) {
|
|
9273
|
-
return "Infinity";
|
|
9274
|
-
} else {
|
|
9275
|
-
return "-Infinity";
|
|
9276
|
-
}
|
|
9277
|
-
}, Number),
|
|
9278
|
-
simpleTransformation(function(v) {
|
|
9279
|
-
return v === 0 && 1 / v === -Infinity;
|
|
9280
|
-
}, "number", function() {
|
|
9281
|
-
return "-0";
|
|
9282
|
-
}, Number),
|
|
9283
|
-
simpleTransformation(isURL, "URL", function(v) {
|
|
9284
|
-
return v.toString();
|
|
9285
|
-
}, function(v) {
|
|
9286
|
-
return new URL(v);
|
|
9287
|
-
})
|
|
9288
|
-
];
|
|
9289
|
-
function compositeTransformation(isApplicable, annotation, transform, untransform) {
|
|
9290
|
-
return {
|
|
9291
|
-
isApplicable,
|
|
9292
|
-
annotation,
|
|
9293
|
-
transform,
|
|
9294
|
-
untransform
|
|
9295
|
-
};
|
|
9296
|
-
}
|
|
9297
|
-
var symbolRule = compositeTransformation(function(s2, superJson) {
|
|
9298
|
-
if (isSymbol(s2)) {
|
|
9299
|
-
var isRegistered = !!superJson.symbolRegistry.getIdentifier(s2);
|
|
9300
|
-
return isRegistered;
|
|
9301
|
-
}
|
|
9302
|
-
return false;
|
|
9303
|
-
}, function(s2, superJson) {
|
|
9304
|
-
var identifier = superJson.symbolRegistry.getIdentifier(s2);
|
|
9305
|
-
return ["symbol", identifier];
|
|
9306
|
-
}, function(v) {
|
|
9307
|
-
return v.description;
|
|
9308
|
-
}, function(_, a2, superJson) {
|
|
9309
|
-
var value = superJson.symbolRegistry.getValue(a2[1]);
|
|
9310
|
-
if (!value) {
|
|
9311
|
-
throw new Error("Trying to deserialize unknown symbol");
|
|
9312
|
-
}
|
|
9313
|
-
return value;
|
|
9314
|
-
});
|
|
9315
|
-
var constructorToName = [
|
|
9316
|
-
Int8Array,
|
|
9317
|
-
Uint8Array,
|
|
9318
|
-
Int16Array,
|
|
9319
|
-
Uint16Array,
|
|
9320
|
-
Int32Array,
|
|
9321
|
-
Uint32Array,
|
|
9322
|
-
Float32Array,
|
|
9323
|
-
Float64Array,
|
|
9324
|
-
Uint8ClampedArray
|
|
9325
|
-
].reduce(function(obj, ctor) {
|
|
9326
|
-
obj[ctor.name] = ctor;
|
|
9327
|
-
return obj;
|
|
9328
|
-
}, {});
|
|
9329
|
-
var typedArrayRule = compositeTransformation(isTypedArray, function(v) {
|
|
9330
|
-
return ["typed-array", v.constructor.name];
|
|
9331
|
-
}, function(v) {
|
|
9332
|
-
return __spreadArray([], __read2(v));
|
|
9333
|
-
}, function(v, a2) {
|
|
9334
|
-
var ctor = constructorToName[a2[1]];
|
|
9335
|
-
if (!ctor) {
|
|
9336
|
-
throw new Error("Trying to deserialize unknown typed array");
|
|
9337
|
-
}
|
|
9338
|
-
return new ctor(v);
|
|
9339
|
-
});
|
|
9340
|
-
function isInstanceOfRegisteredClass(potentialClass, superJson) {
|
|
9341
|
-
if (potentialClass === null || potentialClass === void 0 ? void 0 : potentialClass.constructor) {
|
|
9342
|
-
var isRegistered = !!superJson.classRegistry.getIdentifier(potentialClass.constructor);
|
|
9343
|
-
return isRegistered;
|
|
9344
|
-
}
|
|
9345
|
-
return false;
|
|
9346
|
-
}
|
|
9347
|
-
var classRule = compositeTransformation(isInstanceOfRegisteredClass, function(clazz, superJson) {
|
|
9348
|
-
var identifier = superJson.classRegistry.getIdentifier(clazz.constructor);
|
|
9349
|
-
return ["class", identifier];
|
|
9350
|
-
}, function(clazz, superJson) {
|
|
9351
|
-
var allowedProps = superJson.classRegistry.getAllowedProps(clazz.constructor);
|
|
9352
|
-
if (!allowedProps) {
|
|
9353
|
-
return __assign({}, clazz);
|
|
9354
|
-
}
|
|
9355
|
-
var result = {};
|
|
9356
|
-
allowedProps.forEach(function(prop) {
|
|
9357
|
-
result[prop] = clazz[prop];
|
|
9358
|
-
});
|
|
9359
|
-
return result;
|
|
9360
|
-
}, function(v, a2, superJson) {
|
|
9361
|
-
var clazz = superJson.classRegistry.getValue(a2[1]);
|
|
9362
|
-
if (!clazz) {
|
|
9363
|
-
throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");
|
|
9364
|
-
}
|
|
9365
|
-
return Object.assign(Object.create(clazz.prototype), v);
|
|
9366
|
-
});
|
|
9367
|
-
var customRule = compositeTransformation(function(value, superJson) {
|
|
9368
|
-
return !!superJson.customTransformerRegistry.findApplicable(value);
|
|
9369
|
-
}, function(value, superJson) {
|
|
9370
|
-
var transformer = superJson.customTransformerRegistry.findApplicable(value);
|
|
9371
|
-
return ["custom", transformer.name];
|
|
9372
|
-
}, function(value, superJson) {
|
|
9373
|
-
var transformer = superJson.customTransformerRegistry.findApplicable(value);
|
|
9374
|
-
return transformer.serialize(value);
|
|
9375
|
-
}, function(v, a2, superJson) {
|
|
9376
|
-
var transformer = superJson.customTransformerRegistry.findByName(a2[1]);
|
|
9377
|
-
if (!transformer) {
|
|
9378
|
-
throw new Error("Trying to deserialize unknown custom value");
|
|
9379
|
-
}
|
|
9380
|
-
return transformer.deserialize(v);
|
|
9381
|
-
});
|
|
9382
|
-
var compositeRules = [classRule, symbolRule, customRule, typedArrayRule];
|
|
9383
|
-
var transformValue = function(value, superJson) {
|
|
9384
|
-
var applicableCompositeRule = findArr(compositeRules, function(rule) {
|
|
9385
|
-
return rule.isApplicable(value, superJson);
|
|
9386
|
-
});
|
|
9387
|
-
if (applicableCompositeRule) {
|
|
9388
|
-
return {
|
|
9389
|
-
value: applicableCompositeRule.transform(value, superJson),
|
|
9390
|
-
type: applicableCompositeRule.annotation(value, superJson)
|
|
9391
|
-
};
|
|
9392
|
-
}
|
|
9393
|
-
var applicableSimpleRule = findArr(simpleRules, function(rule) {
|
|
9394
|
-
return rule.isApplicable(value, superJson);
|
|
9395
|
-
});
|
|
9396
|
-
if (applicableSimpleRule) {
|
|
9397
|
-
return {
|
|
9398
|
-
value: applicableSimpleRule.transform(value, superJson),
|
|
9399
|
-
type: applicableSimpleRule.annotation
|
|
9400
|
-
};
|
|
9401
|
-
}
|
|
9402
|
-
return void 0;
|
|
9403
|
-
};
|
|
9404
|
-
var simpleRulesByAnnotation = {};
|
|
9405
|
-
simpleRules.forEach(function(rule) {
|
|
9406
|
-
simpleRulesByAnnotation[rule.annotation] = rule;
|
|
9407
|
-
});
|
|
9408
|
-
var untransformValue = function(json, type, superJson) {
|
|
9409
|
-
if (isArray2(type)) {
|
|
9410
|
-
switch (type[0]) {
|
|
9411
|
-
case "symbol":
|
|
9412
|
-
return symbolRule.untransform(json, type, superJson);
|
|
9413
|
-
case "class":
|
|
9414
|
-
return classRule.untransform(json, type, superJson);
|
|
9415
|
-
case "custom":
|
|
9416
|
-
return customRule.untransform(json, type, superJson);
|
|
9417
|
-
case "typed-array":
|
|
9418
|
-
return typedArrayRule.untransform(json, type, superJson);
|
|
9419
|
-
default:
|
|
9420
|
-
throw new Error("Unknown transformation: " + type);
|
|
9421
|
-
}
|
|
9422
|
-
} else {
|
|
9423
|
-
var transformation = simpleRulesByAnnotation[type];
|
|
9424
|
-
if (!transformation) {
|
|
9425
|
-
throw new Error("Unknown transformation: " + type);
|
|
9426
|
-
}
|
|
9427
|
-
return transformation.untransform(json, superJson);
|
|
9428
|
-
}
|
|
9429
|
-
};
|
|
9430
|
-
|
|
9431
|
-
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/accessDeep.js
|
|
9432
|
-
var getNthKey = function(value, n2) {
|
|
9433
|
-
var keys2 = value.keys();
|
|
9434
|
-
while (n2 > 0) {
|
|
9435
|
-
keys2.next();
|
|
9436
|
-
n2--;
|
|
9437
|
-
}
|
|
9438
|
-
return keys2.next().value;
|
|
9439
|
-
};
|
|
9440
|
-
function validatePath(path) {
|
|
9441
|
-
if (includes(path, "__proto__")) {
|
|
9442
|
-
throw new Error("__proto__ is not allowed as a property");
|
|
9443
|
-
}
|
|
9444
|
-
if (includes(path, "prototype")) {
|
|
9445
|
-
throw new Error("prototype is not allowed as a property");
|
|
9446
|
-
}
|
|
9447
|
-
if (includes(path, "constructor")) {
|
|
9448
|
-
throw new Error("constructor is not allowed as a property");
|
|
9449
|
-
}
|
|
9450
|
-
}
|
|
9451
|
-
var getDeep = function(object, path) {
|
|
9452
|
-
validatePath(path);
|
|
9453
|
-
for (var i2 = 0; i2 < path.length; i2++) {
|
|
9454
|
-
var key = path[i2];
|
|
9455
|
-
if (isSet(object)) {
|
|
9456
|
-
object = getNthKey(object, +key);
|
|
9457
|
-
} else if (isMap(object)) {
|
|
9458
|
-
var row = +key;
|
|
9459
|
-
var type = +path[++i2] === 0 ? "key" : "value";
|
|
9460
|
-
var keyOfRow = getNthKey(object, row);
|
|
9461
|
-
switch (type) {
|
|
9462
|
-
case "key":
|
|
9463
|
-
object = keyOfRow;
|
|
9464
|
-
break;
|
|
9465
|
-
case "value":
|
|
9466
|
-
object = object.get(keyOfRow);
|
|
9467
|
-
break;
|
|
9468
|
-
}
|
|
9469
|
-
} else {
|
|
9470
|
-
object = object[key];
|
|
9471
|
-
}
|
|
9472
|
-
}
|
|
9473
|
-
return object;
|
|
9474
|
-
};
|
|
9475
|
-
var setDeep = function(object, path, mapper) {
|
|
9476
|
-
validatePath(path);
|
|
9477
|
-
if (path.length === 0) {
|
|
9478
|
-
return mapper(object);
|
|
9479
|
-
}
|
|
9480
|
-
var parent = object;
|
|
9481
|
-
for (var i2 = 0; i2 < path.length - 1; i2++) {
|
|
9482
|
-
var key = path[i2];
|
|
9483
|
-
if (isArray2(parent)) {
|
|
9484
|
-
var index = +key;
|
|
9485
|
-
parent = parent[index];
|
|
9486
|
-
} else if (isPlainObject(parent)) {
|
|
9487
|
-
parent = parent[key];
|
|
9488
|
-
} else if (isSet(parent)) {
|
|
9489
|
-
var row = +key;
|
|
9490
|
-
parent = getNthKey(parent, row);
|
|
9491
|
-
} else if (isMap(parent)) {
|
|
9492
|
-
var isEnd = i2 === path.length - 2;
|
|
9493
|
-
if (isEnd) {
|
|
9494
|
-
break;
|
|
9495
|
-
}
|
|
9496
|
-
var row = +key;
|
|
9497
|
-
var type = +path[++i2] === 0 ? "key" : "value";
|
|
9498
|
-
var keyOfRow = getNthKey(parent, row);
|
|
9499
|
-
switch (type) {
|
|
9500
|
-
case "key":
|
|
9501
|
-
parent = keyOfRow;
|
|
9502
|
-
break;
|
|
9503
|
-
case "value":
|
|
9504
|
-
parent = parent.get(keyOfRow);
|
|
9505
|
-
break;
|
|
9506
|
-
}
|
|
9507
|
-
}
|
|
9508
|
-
}
|
|
9509
|
-
var lastKey = path[path.length - 1];
|
|
9510
|
-
if (isArray2(parent)) {
|
|
9511
|
-
parent[+lastKey] = mapper(parent[+lastKey]);
|
|
9512
|
-
} else if (isPlainObject(parent)) {
|
|
9513
|
-
parent[lastKey] = mapper(parent[lastKey]);
|
|
9514
|
-
}
|
|
9515
|
-
if (isSet(parent)) {
|
|
9516
|
-
var oldValue = getNthKey(parent, +lastKey);
|
|
9517
|
-
var newValue = mapper(oldValue);
|
|
9518
|
-
if (oldValue !== newValue) {
|
|
9519
|
-
parent["delete"](oldValue);
|
|
9520
|
-
parent.add(newValue);
|
|
9521
|
-
}
|
|
9522
|
-
}
|
|
9523
|
-
if (isMap(parent)) {
|
|
9524
|
-
var row = +path[path.length - 2];
|
|
9525
|
-
var keyToRow = getNthKey(parent, row);
|
|
9526
|
-
var type = +lastKey === 0 ? "key" : "value";
|
|
9527
|
-
switch (type) {
|
|
9528
|
-
case "key": {
|
|
9529
|
-
var newKey = mapper(keyToRow);
|
|
9530
|
-
parent.set(newKey, parent.get(keyToRow));
|
|
9531
|
-
if (newKey !== keyToRow) {
|
|
9532
|
-
parent["delete"](keyToRow);
|
|
9533
|
-
}
|
|
9534
|
-
break;
|
|
9535
|
-
}
|
|
9536
|
-
case "value": {
|
|
9537
|
-
parent.set(keyToRow, mapper(parent.get(keyToRow)));
|
|
9538
|
-
break;
|
|
9539
|
-
}
|
|
9540
|
-
}
|
|
9541
|
-
}
|
|
9542
|
-
return object;
|
|
9543
|
-
};
|
|
9544
|
-
|
|
9545
|
-
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/plainer.js
|
|
9546
|
-
var __read3 = function(o2, n2) {
|
|
9547
|
-
var m = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
9548
|
-
if (!m)
|
|
9549
|
-
return o2;
|
|
9550
|
-
var i2 = m.call(o2), r2, ar = [], e2;
|
|
9551
|
-
try {
|
|
9552
|
-
while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
|
|
9553
|
-
ar.push(r2.value);
|
|
9554
|
-
} catch (error) {
|
|
9555
|
-
e2 = { error };
|
|
9556
|
-
} finally {
|
|
9557
|
-
try {
|
|
9558
|
-
if (r2 && !r2.done && (m = i2["return"]))
|
|
9559
|
-
m.call(i2);
|
|
9560
|
-
} finally {
|
|
9561
|
-
if (e2)
|
|
9562
|
-
throw e2.error;
|
|
9563
|
-
}
|
|
9564
|
-
}
|
|
9565
|
-
return ar;
|
|
9566
|
-
};
|
|
9567
|
-
var __spreadArray2 = function(to, from) {
|
|
9568
|
-
for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
|
|
9569
|
-
to[j] = from[i2];
|
|
9570
|
-
return to;
|
|
9571
|
-
};
|
|
9572
|
-
function traverse(tree, walker2, origin) {
|
|
9573
|
-
if (origin === void 0) {
|
|
9574
|
-
origin = [];
|
|
9575
|
-
}
|
|
9576
|
-
if (!tree) {
|
|
9577
|
-
return;
|
|
9578
|
-
}
|
|
9579
|
-
if (!isArray2(tree)) {
|
|
9580
|
-
forEach(tree, function(subtree, key) {
|
|
9581
|
-
return traverse(subtree, walker2, __spreadArray2(__spreadArray2([], __read3(origin)), __read3(parsePath(key))));
|
|
9582
|
-
});
|
|
9583
|
-
return;
|
|
9584
|
-
}
|
|
9585
|
-
var _a = __read3(tree, 2), nodeValue = _a[0], children2 = _a[1];
|
|
9586
|
-
if (children2) {
|
|
9587
|
-
forEach(children2, function(child, key) {
|
|
9588
|
-
traverse(child, walker2, __spreadArray2(__spreadArray2([], __read3(origin)), __read3(parsePath(key))));
|
|
9589
|
-
});
|
|
9590
|
-
}
|
|
9591
|
-
walker2(nodeValue, origin);
|
|
9592
|
-
}
|
|
9593
|
-
function applyValueAnnotations(plain, annotations, superJson) {
|
|
9594
|
-
traverse(annotations, function(type, path) {
|
|
9595
|
-
plain = setDeep(plain, path, function(v) {
|
|
9596
|
-
return untransformValue(v, type, superJson);
|
|
9597
|
-
});
|
|
9598
|
-
});
|
|
9599
|
-
return plain;
|
|
9600
|
-
}
|
|
9601
|
-
function applyReferentialEqualityAnnotations(plain, annotations) {
|
|
9602
|
-
function apply(identicalPaths, path) {
|
|
9603
|
-
var object = getDeep(plain, parsePath(path));
|
|
9604
|
-
identicalPaths.map(parsePath).forEach(function(identicalObjectPath) {
|
|
9605
|
-
plain = setDeep(plain, identicalObjectPath, function() {
|
|
9606
|
-
return object;
|
|
9607
|
-
});
|
|
9608
|
-
});
|
|
9609
|
-
}
|
|
9610
|
-
if (isArray2(annotations)) {
|
|
9611
|
-
var _a = __read3(annotations, 2), root = _a[0], other = _a[1];
|
|
9612
|
-
root.forEach(function(identicalPath) {
|
|
9613
|
-
plain = setDeep(plain, parsePath(identicalPath), function() {
|
|
9614
|
-
return plain;
|
|
9615
|
-
});
|
|
9616
|
-
});
|
|
9617
|
-
if (other) {
|
|
9618
|
-
forEach(other, apply);
|
|
9619
|
-
}
|
|
9620
|
-
} else {
|
|
9621
|
-
forEach(annotations, apply);
|
|
9622
|
-
}
|
|
9623
|
-
return plain;
|
|
9624
|
-
}
|
|
9625
|
-
var isDeep = function(object, superJson) {
|
|
9626
|
-
return isPlainObject(object) || isArray2(object) || isMap(object) || isSet(object) || isInstanceOfRegisteredClass(object, superJson);
|
|
9627
|
-
};
|
|
9628
|
-
function addIdentity(object, path, identities) {
|
|
9629
|
-
var existingSet = identities.get(object);
|
|
9630
|
-
if (existingSet) {
|
|
9631
|
-
existingSet.push(path);
|
|
9632
|
-
} else {
|
|
9633
|
-
identities.set(object, [path]);
|
|
9634
|
-
}
|
|
9635
|
-
}
|
|
9636
|
-
function generateReferentialEqualityAnnotations(identitites) {
|
|
9637
|
-
var result = {};
|
|
9638
|
-
var rootEqualityPaths = void 0;
|
|
9639
|
-
identitites.forEach(function(paths) {
|
|
9640
|
-
if (paths.length <= 1) {
|
|
9641
|
-
return;
|
|
9642
|
-
}
|
|
9643
|
-
var _a = __read3(paths.map(function(path) {
|
|
9644
|
-
return path.map(String);
|
|
9645
|
-
}).sort(function(a2, b2) {
|
|
9646
|
-
return a2.length - b2.length;
|
|
9647
|
-
})), shortestPath = _a[0], identicalPaths = _a.slice(1);
|
|
9648
|
-
if (shortestPath.length === 0) {
|
|
9649
|
-
rootEqualityPaths = identicalPaths.map(stringifyPath);
|
|
9650
|
-
} else {
|
|
9651
|
-
result[stringifyPath(shortestPath)] = identicalPaths.map(stringifyPath);
|
|
9652
|
-
}
|
|
9653
|
-
});
|
|
9654
|
-
if (rootEqualityPaths) {
|
|
9655
|
-
if (isEmptyObject(result)) {
|
|
9656
|
-
return [rootEqualityPaths];
|
|
9657
|
-
} else {
|
|
9658
|
-
return [rootEqualityPaths, result];
|
|
9659
|
-
}
|
|
9660
|
-
} else {
|
|
9661
|
-
return isEmptyObject(result) ? void 0 : result;
|
|
9662
|
-
}
|
|
9663
|
-
}
|
|
9664
|
-
var walker = function(object, identities, superJson, path, objectsInThisPath) {
|
|
9665
|
-
var _a;
|
|
9666
|
-
if (path === void 0) {
|
|
9667
|
-
path = [];
|
|
9668
|
-
}
|
|
9669
|
-
if (objectsInThisPath === void 0) {
|
|
9670
|
-
objectsInThisPath = [];
|
|
9671
|
-
}
|
|
9672
|
-
if (!isPrimitive(object)) {
|
|
9673
|
-
addIdentity(object, path, identities);
|
|
9674
|
-
}
|
|
9675
|
-
if (!isDeep(object, superJson)) {
|
|
9676
|
-
var transformed_1 = transformValue(object, superJson);
|
|
9677
|
-
if (transformed_1) {
|
|
9678
|
-
return {
|
|
9679
|
-
transformedValue: transformed_1.value,
|
|
9680
|
-
annotations: [transformed_1.type]
|
|
9681
|
-
};
|
|
9682
|
-
} else {
|
|
9683
|
-
return {
|
|
9684
|
-
transformedValue: object
|
|
9685
|
-
};
|
|
9686
|
-
}
|
|
9687
|
-
}
|
|
9688
|
-
if (includes(objectsInThisPath, object)) {
|
|
9689
|
-
return {
|
|
9690
|
-
transformedValue: null
|
|
9691
|
-
};
|
|
9692
|
-
}
|
|
9693
|
-
var transformationResult = transformValue(object, superJson);
|
|
9694
|
-
var transformed = (_a = transformationResult === null || transformationResult === void 0 ? void 0 : transformationResult.value) !== null && _a !== void 0 ? _a : object;
|
|
9695
|
-
if (!isPrimitive(object)) {
|
|
9696
|
-
objectsInThisPath = __spreadArray2(__spreadArray2([], __read3(objectsInThisPath)), [object]);
|
|
9697
|
-
}
|
|
9698
|
-
var transformedValue = isArray2(transformed) ? [] : {};
|
|
9699
|
-
var innerAnnotations = {};
|
|
9700
|
-
forEach(transformed, function(value, index) {
|
|
9701
|
-
var recursiveResult = walker(value, identities, superJson, __spreadArray2(__spreadArray2([], __read3(path)), [index]), objectsInThisPath);
|
|
9702
|
-
transformedValue[index] = recursiveResult.transformedValue;
|
|
9703
|
-
if (isArray2(recursiveResult.annotations)) {
|
|
9704
|
-
innerAnnotations[index] = recursiveResult.annotations;
|
|
9705
|
-
} else if (isPlainObject(recursiveResult.annotations)) {
|
|
9706
|
-
forEach(recursiveResult.annotations, function(tree, key) {
|
|
9707
|
-
innerAnnotations[escapeKey(index) + "." + key] = tree;
|
|
9708
|
-
});
|
|
9709
|
-
}
|
|
9710
|
-
});
|
|
9711
|
-
if (isEmptyObject(innerAnnotations)) {
|
|
9712
|
-
return {
|
|
9713
|
-
transformedValue,
|
|
9714
|
-
annotations: !!transformationResult ? [transformationResult.type] : void 0
|
|
9715
|
-
};
|
|
9716
|
-
} else {
|
|
9717
|
-
return {
|
|
9718
|
-
transformedValue,
|
|
9719
|
-
annotations: !!transformationResult ? [transformationResult.type, innerAnnotations] : innerAnnotations
|
|
9720
|
-
};
|
|
9721
|
-
}
|
|
9722
|
-
};
|
|
9723
|
-
|
|
9724
|
-
// ../../node_modules/.pnpm/is-what@4.1.15/node_modules/is-what/dist/index.js
|
|
9725
|
-
function getType2(payload) {
|
|
9726
|
-
return Object.prototype.toString.call(payload).slice(8, -1);
|
|
9727
|
-
}
|
|
9728
|
-
function isUndefined2(payload) {
|
|
9729
|
-
return getType2(payload) === "Undefined";
|
|
9730
|
-
}
|
|
9731
|
-
function isNull2(payload) {
|
|
9732
|
-
return getType2(payload) === "Null";
|
|
9733
|
-
}
|
|
9734
|
-
function isPlainObject2(payload) {
|
|
9735
|
-
if (getType2(payload) !== "Object")
|
|
9736
|
-
return false;
|
|
9737
|
-
const prototype = Object.getPrototypeOf(payload);
|
|
9738
|
-
return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
|
|
9739
|
-
}
|
|
9740
|
-
function isArray3(payload) {
|
|
9741
|
-
return getType2(payload) === "Array";
|
|
9742
|
-
}
|
|
9743
|
-
var isNullOrUndefined = isOneOf(isNull2, isUndefined2);
|
|
9744
|
-
function isOneOf(a2, b2, c2, d, e2) {
|
|
9745
|
-
return (value) => a2(value) || b2(value) || !!c2 && c2(value) || !!d && d(value) || !!e2 && e2(value);
|
|
9746
|
-
}
|
|
9747
|
-
|
|
9748
|
-
// ../../node_modules/.pnpm/copy-anything@3.0.5/node_modules/copy-anything/dist/index.js
|
|
9749
|
-
function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
|
|
9750
|
-
const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
|
|
9751
|
-
if (propType === "enumerable")
|
|
9752
|
-
carry[key] = newVal;
|
|
9753
|
-
if (includeNonenumerable && propType === "nonenumerable") {
|
|
9754
|
-
Object.defineProperty(carry, key, {
|
|
9755
|
-
value: newVal,
|
|
9756
|
-
enumerable: false,
|
|
9757
|
-
writable: true,
|
|
9758
|
-
configurable: true
|
|
9759
|
-
});
|
|
9760
|
-
}
|
|
9761
|
-
}
|
|
9762
|
-
function copy(target, options = {}) {
|
|
9763
|
-
if (isArray3(target)) {
|
|
9764
|
-
return target.map((item) => copy(item, options));
|
|
9765
|
-
}
|
|
9766
|
-
if (!isPlainObject2(target)) {
|
|
9767
|
-
return target;
|
|
9768
|
-
}
|
|
9769
|
-
const props = Object.getOwnPropertyNames(target);
|
|
9770
|
-
const symbols = Object.getOwnPropertySymbols(target);
|
|
9771
|
-
return [...props, ...symbols].reduce((carry, key) => {
|
|
9772
|
-
if (isArray3(options.props) && !options.props.includes(key)) {
|
|
9773
|
-
return carry;
|
|
9774
|
-
}
|
|
9775
|
-
const val = target[key];
|
|
9776
|
-
const newVal = copy(val, options);
|
|
9777
|
-
assignProp(carry, key, newVal, target, options.nonenumerable);
|
|
9778
|
-
return carry;
|
|
9779
|
-
}, {});
|
|
9780
|
-
}
|
|
9781
|
-
|
|
9782
|
-
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/index.js
|
|
9783
|
-
var __assign2 = function() {
|
|
9784
|
-
__assign2 = Object.assign || function(t2) {
|
|
9785
|
-
for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
9786
|
-
s2 = arguments[i2];
|
|
9787
|
-
for (var p2 in s2)
|
|
9788
|
-
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
9789
|
-
t2[p2] = s2[p2];
|
|
9790
|
-
}
|
|
9791
|
-
return t2;
|
|
9792
|
-
};
|
|
9793
|
-
return __assign2.apply(this, arguments);
|
|
9794
|
-
};
|
|
9795
|
-
var __read4 = function(o2, n2) {
|
|
9796
|
-
var m = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
9797
|
-
if (!m)
|
|
9798
|
-
return o2;
|
|
9799
|
-
var i2 = m.call(o2), r2, ar = [], e2;
|
|
9800
|
-
try {
|
|
9801
|
-
while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
|
|
9802
|
-
ar.push(r2.value);
|
|
9803
|
-
} catch (error) {
|
|
9804
|
-
e2 = { error };
|
|
9805
|
-
} finally {
|
|
9806
|
-
try {
|
|
9807
|
-
if (r2 && !r2.done && (m = i2["return"]))
|
|
9808
|
-
m.call(i2);
|
|
9809
|
-
} finally {
|
|
9810
|
-
if (e2)
|
|
9811
|
-
throw e2.error;
|
|
9812
|
-
}
|
|
9813
|
-
}
|
|
9814
|
-
return ar;
|
|
9815
|
-
};
|
|
9816
|
-
var __spreadArray3 = function(to, from) {
|
|
9817
|
-
for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
|
|
9818
|
-
to[j] = from[i2];
|
|
9819
|
-
return to;
|
|
9820
|
-
};
|
|
9821
|
-
var SuperJSON = (
|
|
9822
|
-
/** @class */
|
|
9823
|
-
function() {
|
|
9824
|
-
function SuperJSON2() {
|
|
9825
|
-
this.classRegistry = new ClassRegistry();
|
|
9826
|
-
this.symbolRegistry = new Registry(function(s2) {
|
|
9827
|
-
var _a;
|
|
9828
|
-
return (_a = s2.description) !== null && _a !== void 0 ? _a : "";
|
|
9829
|
-
});
|
|
9830
|
-
this.customTransformerRegistry = new CustomTransformerRegistry();
|
|
9831
|
-
this.allowedErrorProps = [];
|
|
9832
|
-
}
|
|
9833
|
-
SuperJSON2.prototype.serialize = function(object) {
|
|
9834
|
-
var identities = /* @__PURE__ */ new Map();
|
|
9835
|
-
var output = walker(object, identities, this);
|
|
9836
|
-
var res = {
|
|
9837
|
-
json: output.transformedValue
|
|
9838
|
-
};
|
|
9839
|
-
if (output.annotations) {
|
|
9840
|
-
res.meta = __assign2(__assign2({}, res.meta), { values: output.annotations });
|
|
9841
|
-
}
|
|
9842
|
-
var equalityAnnotations = generateReferentialEqualityAnnotations(identities);
|
|
9843
|
-
if (equalityAnnotations) {
|
|
9844
|
-
res.meta = __assign2(__assign2({}, res.meta), { referentialEqualities: equalityAnnotations });
|
|
9845
|
-
}
|
|
9846
|
-
return res;
|
|
9847
|
-
};
|
|
9848
|
-
SuperJSON2.prototype.deserialize = function(payload) {
|
|
9849
|
-
var json = payload.json, meta = payload.meta;
|
|
9850
|
-
var result = copy(json);
|
|
9851
|
-
if (meta === null || meta === void 0 ? void 0 : meta.values) {
|
|
9852
|
-
result = applyValueAnnotations(result, meta.values, this);
|
|
9853
|
-
}
|
|
9854
|
-
if (meta === null || meta === void 0 ? void 0 : meta.referentialEqualities) {
|
|
9855
|
-
result = applyReferentialEqualityAnnotations(result, meta.referentialEqualities);
|
|
9856
|
-
}
|
|
9857
|
-
return result;
|
|
9858
|
-
};
|
|
9859
|
-
SuperJSON2.prototype.stringify = function(object) {
|
|
9860
|
-
return JSON.stringify(this.serialize(object));
|
|
9861
|
-
};
|
|
9862
|
-
SuperJSON2.prototype.parse = function(string) {
|
|
9863
|
-
return this.deserialize(JSON.parse(string));
|
|
9864
|
-
};
|
|
9865
|
-
SuperJSON2.prototype.registerClass = function(v, options) {
|
|
9866
|
-
this.classRegistry.register(v, options);
|
|
9867
|
-
};
|
|
9868
|
-
SuperJSON2.prototype.registerSymbol = function(v, identifier) {
|
|
9869
|
-
this.symbolRegistry.register(v, identifier);
|
|
9870
|
-
};
|
|
9871
|
-
SuperJSON2.prototype.registerCustom = function(transformer, name) {
|
|
9872
|
-
this.customTransformerRegistry.register(__assign2({ name }, transformer));
|
|
9873
|
-
};
|
|
9874
|
-
SuperJSON2.prototype.allowErrorProps = function() {
|
|
9875
|
-
var _a;
|
|
9876
|
-
var props = [];
|
|
9877
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
9878
|
-
props[_i] = arguments[_i];
|
|
9879
|
-
}
|
|
9880
|
-
(_a = this.allowedErrorProps).push.apply(_a, __spreadArray3([], __read4(props)));
|
|
9881
|
-
};
|
|
9882
|
-
SuperJSON2.defaultInstance = new SuperJSON2();
|
|
9883
|
-
SuperJSON2.serialize = SuperJSON2.defaultInstance.serialize.bind(SuperJSON2.defaultInstance);
|
|
9884
|
-
SuperJSON2.deserialize = SuperJSON2.defaultInstance.deserialize.bind(SuperJSON2.defaultInstance);
|
|
9885
|
-
SuperJSON2.stringify = SuperJSON2.defaultInstance.stringify.bind(SuperJSON2.defaultInstance);
|
|
9886
|
-
SuperJSON2.parse = SuperJSON2.defaultInstance.parse.bind(SuperJSON2.defaultInstance);
|
|
9887
|
-
SuperJSON2.registerClass = SuperJSON2.defaultInstance.registerClass.bind(SuperJSON2.defaultInstance);
|
|
9888
|
-
SuperJSON2.registerSymbol = SuperJSON2.defaultInstance.registerSymbol.bind(SuperJSON2.defaultInstance);
|
|
9889
|
-
SuperJSON2.registerCustom = SuperJSON2.defaultInstance.registerCustom.bind(SuperJSON2.defaultInstance);
|
|
9890
|
-
SuperJSON2.allowErrorProps = SuperJSON2.defaultInstance.allowErrorProps.bind(SuperJSON2.defaultInstance);
|
|
9891
|
-
return SuperJSON2;
|
|
9892
|
-
}()
|
|
9893
|
-
);
|
|
9894
|
-
var serialize = SuperJSON.serialize;
|
|
9895
|
-
var deserialize = SuperJSON.deserialize;
|
|
9896
|
-
var stringify = SuperJSON.stringify;
|
|
9897
|
-
var parse = SuperJSON.parse;
|
|
9898
|
-
var registerClass = SuperJSON.registerClass;
|
|
9899
|
-
var registerCustom = SuperJSON.registerCustom;
|
|
9900
|
-
var registerSymbol = SuperJSON.registerSymbol;
|
|
9901
|
-
var allowErrorProps = SuperJSON.allowErrorProps;
|
|
9902
|
-
|
|
9903
|
-
// src/utils.tsx
|
|
9904
|
-
function getQueryStatusLabel(query) {
|
|
9905
|
-
return query.state.fetchStatus === "fetching" ? "fetching" : !query.getObserversCount() ? "inactive" : query.state.fetchStatus === "paused" ? "paused" : query.isStale() ? "stale" : "fresh";
|
|
9906
|
-
}
|
|
9907
|
-
function getSidedProp(prop, side) {
|
|
9908
|
-
return `${prop}${side.charAt(0).toUpperCase() + side.slice(1)}`;
|
|
9909
|
-
}
|
|
9910
|
-
function getQueryStatusColor({
|
|
9911
|
-
queryState,
|
|
9912
|
-
observerCount,
|
|
9913
|
-
isStale
|
|
9914
|
-
}) {
|
|
9915
|
-
return queryState.fetchStatus === "fetching" ? "blue" : !observerCount ? "gray" : queryState.fetchStatus === "paused" ? "purple" : isStale ? "yellow" : "green";
|
|
9916
|
-
}
|
|
9917
|
-
function getMutationStatusColor({
|
|
9918
|
-
status,
|
|
9919
|
-
isPaused
|
|
9920
|
-
}) {
|
|
9921
|
-
return isPaused ? "purple" : status === "error" ? "red" : status === "pending" ? "yellow" : status === "success" ? "green" : "gray";
|
|
9922
|
-
}
|
|
9923
|
-
function getQueryStatusColorByLabel(label) {
|
|
9924
|
-
return label === "fresh" ? "green" : label === "stale" ? "yellow" : label === "paused" ? "purple" : label === "inactive" ? "gray" : "blue";
|
|
9925
|
-
}
|
|
9926
|
-
var displayValue = (value, beautify = false) => {
|
|
9927
|
-
const { json } = serialize(value);
|
|
9928
|
-
return JSON.stringify(json, null, beautify ? 2 : void 0);
|
|
9929
|
-
};
|
|
9930
|
-
var getStatusRank = (q) => q.state.fetchStatus !== "idle" ? 0 : !q.getObserversCount() ? 3 : q.isStale() ? 2 : 1;
|
|
9931
|
-
var queryHashSort = (a2, b2) => a2.queryHash.localeCompare(b2.queryHash);
|
|
9932
|
-
var dateSort = (a2, b2) => a2.state.dataUpdatedAt < b2.state.dataUpdatedAt ? 1 : -1;
|
|
9933
|
-
var statusAndDateSort = (a2, b2) => {
|
|
9934
|
-
if (getStatusRank(a2) === getStatusRank(b2)) {
|
|
9935
|
-
return dateSort(a2, b2);
|
|
9936
|
-
}
|
|
9937
|
-
return getStatusRank(a2) > getStatusRank(b2) ? 1 : -1;
|
|
9938
|
-
};
|
|
9939
|
-
var sortFns = {
|
|
9940
|
-
status: statusAndDateSort,
|
|
9941
|
-
"query hash": queryHashSort,
|
|
9942
|
-
"last updated": dateSort
|
|
9943
|
-
};
|
|
9944
|
-
var getMutationStatusRank = (m) => m.state.isPaused ? 0 : m.state.status === "error" ? 2 : m.state.status === "pending" ? 1 : 3;
|
|
9945
|
-
var mutationDateSort = (a2, b2) => a2.state.submittedAt < b2.state.submittedAt ? 1 : -1;
|
|
9946
|
-
var mutationStatusSort = (a2, b2) => {
|
|
9947
|
-
if (getMutationStatusRank(a2) === getMutationStatusRank(b2)) {
|
|
9948
|
-
return mutationDateSort(a2, b2);
|
|
9949
|
-
}
|
|
9950
|
-
return getMutationStatusRank(a2) > getMutationStatusRank(b2) ? 1 : -1;
|
|
9951
|
-
};
|
|
9952
|
-
var mutationSortFns = {
|
|
9953
|
-
status: mutationStatusSort,
|
|
9954
|
-
"last updated": mutationDateSort
|
|
9955
|
-
};
|
|
9956
|
-
var convertRemToPixels = (rem) => {
|
|
9957
|
-
return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
9958
|
-
};
|
|
9959
|
-
var getPreferredColorScheme = () => {
|
|
9960
|
-
const [colorScheme, setColorScheme] = createSignal("dark");
|
|
9961
|
-
onMount(() => {
|
|
9962
|
-
const query = window.matchMedia("(prefers-color-scheme: dark)");
|
|
9963
|
-
setColorScheme(query.matches ? "dark" : "light");
|
|
9964
|
-
const listener = (e2) => {
|
|
9965
|
-
setColorScheme(e2.matches ? "dark" : "light");
|
|
9966
|
-
};
|
|
9967
|
-
query.addEventListener("change", listener);
|
|
9968
|
-
onCleanup(() => query.removeEventListener("change", listener));
|
|
9969
|
-
});
|
|
9970
|
-
return colorScheme;
|
|
9971
|
-
};
|
|
9972
|
-
var updateNestedDataByPath = (oldData, updatePath2, value) => {
|
|
9973
|
-
if (updatePath2.length === 0) {
|
|
9974
|
-
return value;
|
|
9975
|
-
}
|
|
9976
|
-
if (oldData instanceof Map) {
|
|
9977
|
-
const newData = new Map(oldData);
|
|
9978
|
-
if (updatePath2.length === 1) {
|
|
9979
|
-
newData.set(updatePath2[0], value);
|
|
9980
|
-
return newData;
|
|
9981
|
-
}
|
|
9982
|
-
const [head, ...tail] = updatePath2;
|
|
9983
|
-
newData.set(head, updateNestedDataByPath(newData.get(head), tail, value));
|
|
9984
|
-
return newData;
|
|
9985
|
-
}
|
|
9986
|
-
if (oldData instanceof Set) {
|
|
9987
|
-
const setAsArray = updateNestedDataByPath(
|
|
9988
|
-
Array.from(oldData),
|
|
9989
|
-
updatePath2,
|
|
9990
|
-
value
|
|
9991
|
-
);
|
|
9992
|
-
return new Set(setAsArray);
|
|
9993
|
-
}
|
|
9994
|
-
if (Array.isArray(oldData)) {
|
|
9995
|
-
const newData = [...oldData];
|
|
9996
|
-
if (updatePath2.length === 1) {
|
|
9997
|
-
newData[updatePath2[0]] = value;
|
|
9998
|
-
return newData;
|
|
9999
|
-
}
|
|
10000
|
-
const [head, ...tail] = updatePath2;
|
|
10001
|
-
newData[head] = updateNestedDataByPath(newData[head], tail, value);
|
|
10002
|
-
return newData;
|
|
10003
|
-
}
|
|
10004
|
-
if (oldData instanceof Object) {
|
|
10005
|
-
const newData = { ...oldData };
|
|
10006
|
-
if (updatePath2.length === 1) {
|
|
10007
|
-
newData[updatePath2[0]] = value;
|
|
10008
|
-
return newData;
|
|
10009
|
-
}
|
|
10010
|
-
const [head, ...tail] = updatePath2;
|
|
10011
|
-
newData[head] = updateNestedDataByPath(newData[head], tail, value);
|
|
10012
|
-
return newData;
|
|
10013
|
-
}
|
|
10014
|
-
return oldData;
|
|
10015
|
-
};
|
|
10016
|
-
var deleteNestedDataByPath = (oldData, deletePath) => {
|
|
10017
|
-
if (oldData instanceof Map) {
|
|
10018
|
-
const newData = new Map(oldData);
|
|
10019
|
-
if (deletePath.length === 1) {
|
|
10020
|
-
newData.delete(deletePath[0]);
|
|
10021
|
-
return newData;
|
|
10022
|
-
}
|
|
10023
|
-
const [head, ...tail] = deletePath;
|
|
10024
|
-
newData.set(head, deleteNestedDataByPath(newData.get(head), tail));
|
|
10025
|
-
return newData;
|
|
10026
|
-
}
|
|
10027
|
-
if (oldData instanceof Set) {
|
|
10028
|
-
const setAsArray = deleteNestedDataByPath(Array.from(oldData), deletePath);
|
|
10029
|
-
return new Set(setAsArray);
|
|
10030
|
-
}
|
|
10031
|
-
if (Array.isArray(oldData)) {
|
|
10032
|
-
const newData = [...oldData];
|
|
10033
|
-
if (deletePath.length === 1) {
|
|
10034
|
-
return newData.filter((_, idx) => idx.toString() !== deletePath[0]);
|
|
10035
|
-
}
|
|
10036
|
-
const [head, ...tail] = deletePath;
|
|
10037
|
-
newData[head] = deleteNestedDataByPath(newData[head], tail);
|
|
10038
|
-
return newData;
|
|
10039
|
-
}
|
|
10040
|
-
if (oldData instanceof Object) {
|
|
10041
|
-
const newData = { ...oldData };
|
|
10042
|
-
if (deletePath.length === 1) {
|
|
10043
|
-
delete newData[deletePath[0]];
|
|
10044
|
-
return newData;
|
|
10045
|
-
}
|
|
10046
|
-
const [head, ...tail] = deletePath;
|
|
10047
|
-
newData[head] = deleteNestedDataByPath(newData[head], tail);
|
|
10048
|
-
return newData;
|
|
10049
|
-
}
|
|
10050
|
-
return oldData;
|
|
10051
|
-
};
|
|
10052
|
-
|
|
10053
8874
|
// src/icons/index.tsx
|
|
10054
8875
|
function Search() {
|
|
10055
8876
|
return <svg
|
|
@@ -11224,6 +10045,7 @@ var CopyButton = (props) => {
|
|
|
11224
10045
|
}, 1500);
|
|
11225
10046
|
},
|
|
11226
10047
|
(err) => {
|
|
10048
|
+
console.error("Failed to copy: ", err);
|
|
11227
10049
|
setCopyState("ErrorCopy");
|
|
11228
10050
|
setTimeout(() => {
|
|
11229
10051
|
setCopyState("NoCopy");
|
|
@@ -11505,8 +10327,8 @@ var stylesFactory = (theme) => {
|
|
|
11505
10327
|
expanderButtonContainer: u`
|
|
11506
10328
|
display: flex;
|
|
11507
10329
|
align-items: center;
|
|
11508
|
-
line-height:
|
|
11509
|
-
min-height:
|
|
10330
|
+
line-height: ${size2[4]};
|
|
10331
|
+
min-height: ${size2[4]};
|
|
11510
10332
|
gap: ${size2[2]};
|
|
11511
10333
|
`,
|
|
11512
10334
|
expanderButton: u`
|
|
@@ -11514,7 +10336,7 @@ var stylesFactory = (theme) => {
|
|
|
11514
10336
|
color: inherit;
|
|
11515
10337
|
font: inherit;
|
|
11516
10338
|
outline: inherit;
|
|
11517
|
-
height:
|
|
10339
|
+
height: ${size2[5]};
|
|
11518
10340
|
background: transparent;
|
|
11519
10341
|
border: none;
|
|
11520
10342
|
padding: 0;
|
|
@@ -11556,8 +10378,8 @@ var stylesFactory = (theme) => {
|
|
|
11556
10378
|
display: inline-flex;
|
|
11557
10379
|
gap: ${size2[2]};
|
|
11558
10380
|
width: 100%;
|
|
11559
|
-
margin
|
|
11560
|
-
line-height:
|
|
10381
|
+
margin: ${size2[0.25]} 0px;
|
|
10382
|
+
line-height: ${size2[4.5]};
|
|
11561
10383
|
align-items: center;
|
|
11562
10384
|
`,
|
|
11563
10385
|
editableInput: u`
|
|
@@ -11657,8 +10479,9 @@ var Devtools = (props) => {
|
|
|
11657
10479
|
const position = createMemo(() => {
|
|
11658
10480
|
return props.localStore.position || useQueryDevtoolsContext().position || POSITION;
|
|
11659
10481
|
});
|
|
10482
|
+
let transitionsContainerRef;
|
|
11660
10483
|
createEffect(() => {
|
|
11661
|
-
const root =
|
|
10484
|
+
const root = transitionsContainerRef.parentElement;
|
|
11662
10485
|
const height = props.localStore.height || DEFAULT_HEIGHT;
|
|
11663
10486
|
const width = props.localStore.width || DEFAULT_WIDTH;
|
|
11664
10487
|
const panelPosition = position();
|
|
@@ -11671,6 +10494,18 @@ var Devtools = (props) => {
|
|
|
11671
10494
|
`${panelPosition === "left" ? "-" : ""}${width}px`
|
|
11672
10495
|
);
|
|
11673
10496
|
});
|
|
10497
|
+
onMount(() => {
|
|
10498
|
+
const onFocus = () => {
|
|
10499
|
+
const root = transitionsContainerRef.parentElement;
|
|
10500
|
+
const fontSize = getComputedStyle(root).fontSize;
|
|
10501
|
+
root.style.setProperty("--tsqd-font-size", fontSize);
|
|
10502
|
+
};
|
|
10503
|
+
onFocus();
|
|
10504
|
+
window.addEventListener("focus", onFocus);
|
|
10505
|
+
onCleanup(() => {
|
|
10506
|
+
window.removeEventListener("focus", onFocus);
|
|
10507
|
+
});
|
|
10508
|
+
});
|
|
11674
10509
|
return <div
|
|
11675
10510
|
class={clsx(
|
|
11676
10511
|
u`
|
|
@@ -11696,6 +10531,7 @@ var Devtools = (props) => {
|
|
|
11696
10531
|
`,
|
|
11697
10532
|
"tsqd-transitions-container"
|
|
11698
10533
|
)}
|
|
10534
|
+
ref={transitionsContainerRef}
|
|
11699
10535
|
>
|
|
11700
10536
|
<TransitionGroup name="tsqd-panel-transition"><Show when={isOpen()}><DevtoolsPanel
|
|
11701
10537
|
localStore={props.localStore}
|
|
@@ -11862,6 +10698,7 @@ var DevtoolsPanel = (props) => {
|
|
|
11862
10698
|
var ContentView = (props) => {
|
|
11863
10699
|
setupQueryCacheSubscription();
|
|
11864
10700
|
setupMutationCacheSubscription();
|
|
10701
|
+
let containerRef;
|
|
11865
10702
|
const theme = useTheme();
|
|
11866
10703
|
const styles = createMemo(() => {
|
|
11867
10704
|
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
@@ -11939,6 +10776,11 @@ var ContentView = (props) => {
|
|
|
11939
10776
|
const setDevtoolsPosition = (pos) => {
|
|
11940
10777
|
props.setLocalStore("position", pos);
|
|
11941
10778
|
};
|
|
10779
|
+
const setComputedVariables = (el) => {
|
|
10780
|
+
const computedStyle = getComputedStyle(containerRef);
|
|
10781
|
+
const variable = computedStyle.getPropertyValue("--tsqd-font-size");
|
|
10782
|
+
el.style.setProperty("--tsqd-font-size", variable);
|
|
10783
|
+
};
|
|
11942
10784
|
return <>
|
|
11943
10785
|
<div
|
|
11944
10786
|
class={clsx(
|
|
@@ -11949,6 +10791,7 @@ var ContentView = (props) => {
|
|
|
11949
10791
|
`,
|
|
11950
10792
|
"tsqd-queries-container"
|
|
11951
10793
|
)}
|
|
10794
|
+
ref={containerRef}
|
|
11952
10795
|
>
|
|
11953
10796
|
<div class={clsx(styles().row, "tsqd-header")}>
|
|
11954
10797
|
<div class={styles().logoAndToggleContainer}>
|
|
@@ -12119,7 +10962,9 @@ var ContentView = (props) => {
|
|
|
12119
10962
|
"tsqd-action-settings"
|
|
12120
10963
|
)}
|
|
12121
10964
|
><Settings /></index$d.Trigger>
|
|
12122
|
-
<index$d.Portal
|
|
10965
|
+
<index$d.Portal
|
|
10966
|
+
ref={(el) => setComputedVariables(el)}
|
|
10967
|
+
><index$d.Content
|
|
12123
10968
|
class={clsx(styles().settingsMenu, "tsqd-settings-menu")}
|
|
12124
10969
|
>
|
|
12125
10970
|
<div
|
|
@@ -12139,7 +10984,9 @@ var ContentView = (props) => {
|
|
|
12139
10984
|
<span>Position</span>
|
|
12140
10985
|
<ChevronDown />
|
|
12141
10986
|
</index$d.SubTrigger>
|
|
12142
|
-
<index$d.Portal
|
|
10987
|
+
<index$d.Portal
|
|
10988
|
+
ref={(el) => setComputedVariables(el)}
|
|
10989
|
+
><index$d.SubContent
|
|
12143
10990
|
class={clsx(
|
|
12144
10991
|
styles().settingsMenu,
|
|
12145
10992
|
"tsqd-settings-submenu"
|
|
@@ -12214,7 +11061,9 @@ var ContentView = (props) => {
|
|
|
12214
11061
|
<span>Theme</span>
|
|
12215
11062
|
<ChevronDown />
|
|
12216
11063
|
</index$d.SubTrigger>
|
|
12217
|
-
<index$d.Portal
|
|
11064
|
+
<index$d.Portal
|
|
11065
|
+
ref={(el) => setComputedVariables(el)}
|
|
11066
|
+
><index$d.SubContent
|
|
12218
11067
|
class={clsx(
|
|
12219
11068
|
styles().settingsMenu,
|
|
12220
11069
|
"tsqd-settings-submenu"
|
|
@@ -12904,7 +11753,7 @@ var QueryDetails = () => {
|
|
|
12904
11753
|
<div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Data Explorer</div>
|
|
12905
11754
|
<div
|
|
12906
11755
|
style={{
|
|
12907
|
-
padding:
|
|
11756
|
+
padding: tokens.size[2]
|
|
12908
11757
|
}}
|
|
12909
11758
|
class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"
|
|
12910
11759
|
><Explorer
|
|
@@ -12917,7 +11766,7 @@ var QueryDetails = () => {
|
|
|
12917
11766
|
<div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Query Explorer</div>
|
|
12918
11767
|
<div
|
|
12919
11768
|
style={{
|
|
12920
|
-
padding:
|
|
11769
|
+
padding: tokens.size[2]
|
|
12921
11770
|
}}
|
|
12922
11771
|
class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"
|
|
12923
11772
|
><Explorer
|
|
@@ -13008,7 +11857,7 @@ var MutationDetails = () => {
|
|
|
13008
11857
|
<div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Variables Details</div>
|
|
13009
11858
|
<div
|
|
13010
11859
|
style={{
|
|
13011
|
-
padding:
|
|
11860
|
+
padding: tokens.size[2]
|
|
13012
11861
|
}}
|
|
13013
11862
|
class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"
|
|
13014
11863
|
><Explorer
|
|
@@ -13019,7 +11868,7 @@ var MutationDetails = () => {
|
|
|
13019
11868
|
<div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Context Details</div>
|
|
13020
11869
|
<div
|
|
13021
11870
|
style={{
|
|
13022
|
-
padding:
|
|
11871
|
+
padding: tokens.size[2]
|
|
13023
11872
|
}}
|
|
13024
11873
|
class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"
|
|
13025
11874
|
><Explorer
|
|
@@ -13030,7 +11879,7 @@ var MutationDetails = () => {
|
|
|
13030
11879
|
<div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Data Explorer</div>
|
|
13031
11880
|
<div
|
|
13032
11881
|
style={{
|
|
13033
|
-
padding:
|
|
11882
|
+
padding: tokens.size[2]
|
|
13034
11883
|
}}
|
|
13035
11884
|
class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"
|
|
13036
11885
|
><Explorer
|
|
@@ -13041,7 +11890,7 @@ var MutationDetails = () => {
|
|
|
13041
11890
|
<div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Mutations Explorer</div>
|
|
13042
11891
|
<div
|
|
13043
11892
|
style={{
|
|
13044
|
-
padding:
|
|
11893
|
+
padding: tokens.size[2]
|
|
13045
11894
|
}}
|
|
13046
11895
|
class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"
|
|
13047
11896
|
><Explorer
|
|
@@ -13214,7 +12063,7 @@ var stylesFactory2 = (theme) => {
|
|
|
13214
12063
|
right: 0;
|
|
13215
12064
|
left: 0;
|
|
13216
12065
|
max-height: 90%;
|
|
13217
|
-
min-height:
|
|
12066
|
+
min-height: ${size2[14]};
|
|
13218
12067
|
border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13219
12068
|
`,
|
|
13220
12069
|
"panel-position-bottom": u`
|
|
@@ -13222,7 +12071,7 @@ var stylesFactory2 = (theme) => {
|
|
|
13222
12071
|
right: 0;
|
|
13223
12072
|
left: 0;
|
|
13224
12073
|
max-height: 90%;
|
|
13225
|
-
min-height:
|
|
12074
|
+
min-height: ${size2[14]};
|
|
13226
12075
|
border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
13227
12076
|
`,
|
|
13228
12077
|
"panel-position-right": u`
|
|
@@ -13554,6 +12403,8 @@ var stylesFactory2 = (theme) => {
|
|
|
13554
12403
|
outline: 2px solid ${colors.blue[800]};
|
|
13555
12404
|
}
|
|
13556
12405
|
& svg {
|
|
12406
|
+
width: ${tokens.size[3]};
|
|
12407
|
+
height: ${tokens.size[3]};
|
|
13557
12408
|
color: ${t2(colors.gray[500], colors.gray[400])};
|
|
13558
12409
|
}
|
|
13559
12410
|
}
|
|
@@ -13639,8 +12490,8 @@ var stylesFactory2 = (theme) => {
|
|
|
13639
12490
|
border-radius: ${tokens.border.radius.sm};
|
|
13640
12491
|
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
13641
12492
|
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
13642
|
-
width:
|
|
13643
|
-
height:
|
|
12493
|
+
width: ${tokens.size[6.5]};
|
|
12494
|
+
height: ${tokens.size[6.5]};
|
|
13644
12495
|
justify-content: center;
|
|
13645
12496
|
display: flex;
|
|
13646
12497
|
align-items: center;
|