@tanstack/react-query-devtools 5.0.0-alpha.47 → 5.0.0-alpha.48
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/lib/index.prod.esm.js +16 -52
- package/build/lib/index.prod.esm.js.map +1 -1
- package/build/lib/index.prod.js +16 -52
- package/build/lib/index.prod.js.map +1 -1
- package/build/lib/index.prod.mjs +16 -52
- package/build/lib/index.prod.mjs.map +1 -1
- package/build/umd/index.development.js +16 -52
- package/build/umd/index.development.js.map +1 -1
- package/package.json +1 -1
|
@@ -1112,35 +1112,6 @@
|
|
|
1112
1112
|
return [node];
|
|
1113
1113
|
}
|
|
1114
1114
|
|
|
1115
|
-
function _defineProperty(obj, key, value) {
|
|
1116
|
-
key = _toPropertyKey(key);
|
|
1117
|
-
if (key in obj) {
|
|
1118
|
-
Object.defineProperty(obj, key, {
|
|
1119
|
-
value: value,
|
|
1120
|
-
enumerable: true,
|
|
1121
|
-
configurable: true,
|
|
1122
|
-
writable: true
|
|
1123
|
-
});
|
|
1124
|
-
} else {
|
|
1125
|
-
obj[key] = value;
|
|
1126
|
-
}
|
|
1127
|
-
return obj;
|
|
1128
|
-
}
|
|
1129
|
-
function _toPrimitive(input, hint) {
|
|
1130
|
-
if (typeof input !== "object" || input === null) return input;
|
|
1131
|
-
var prim = input[Symbol.toPrimitive];
|
|
1132
|
-
if (prim !== undefined) {
|
|
1133
|
-
var res = prim.call(input, hint || "default");
|
|
1134
|
-
if (typeof res !== "object") return res;
|
|
1135
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1136
|
-
}
|
|
1137
|
-
return (hint === "string" ? String : Number)(input);
|
|
1138
|
-
}
|
|
1139
|
-
function _toPropertyKey(arg) {
|
|
1140
|
-
var key = _toPrimitive(arg, "string");
|
|
1141
|
-
return typeof key === "symbol" ? key : String(key);
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
1115
|
/**
|
|
1145
1116
|
* match-sorter-utils
|
|
1146
1117
|
*
|
|
@@ -2507,7 +2478,7 @@
|
|
|
2507
2478
|
* @param {function} callback
|
|
2508
2479
|
* @return {string}
|
|
2509
2480
|
*/
|
|
2510
|
-
function serialize(children, callback) {
|
|
2481
|
+
function serialize$1(children, callback) {
|
|
2511
2482
|
var output = '';
|
|
2512
2483
|
var length = sizeof(children);
|
|
2513
2484
|
for (var i = 0; i < length; i++) output += callback(children[i], i, children, callback) || '';
|
|
@@ -2521,7 +2492,7 @@
|
|
|
2521
2492
|
* @param {function} callback
|
|
2522
2493
|
* @return {string}
|
|
2523
2494
|
*/
|
|
2524
|
-
function stringify(element, index, children, callback) {
|
|
2495
|
+
function stringify$1(element, index, children, callback) {
|
|
2525
2496
|
switch (element.type) {
|
|
2526
2497
|
case LAYER:
|
|
2527
2498
|
if (element.children.length) break;
|
|
@@ -2531,11 +2502,11 @@
|
|
|
2531
2502
|
case COMMENT:
|
|
2532
2503
|
return '';
|
|
2533
2504
|
case KEYFRAMES:
|
|
2534
|
-
return element.return = element.value + '{' + serialize(element.children, callback) + '}';
|
|
2505
|
+
return element.return = element.value + '{' + serialize$1(element.children, callback) + '}';
|
|
2535
2506
|
case RULESET:
|
|
2536
2507
|
element.value = element.props.join(',');
|
|
2537
2508
|
}
|
|
2538
|
-
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : '';
|
|
2509
|
+
return strlen(children = serialize$1(element.children, callback)) ? element.return = element.value + '{' + children + '}' : '';
|
|
2539
2510
|
}
|
|
2540
2511
|
|
|
2541
2512
|
/**
|
|
@@ -2953,7 +2924,7 @@
|
|
|
2953
2924
|
element["return"] = prefix(element.value, element.length);
|
|
2954
2925
|
break;
|
|
2955
2926
|
case KEYFRAMES:
|
|
2956
|
-
return serialize([copy$1(element, {
|
|
2927
|
+
return serialize$1([copy$1(element, {
|
|
2957
2928
|
value: replace(element.value, '@', '@' + WEBKIT)
|
|
2958
2929
|
})], callback);
|
|
2959
2930
|
case RULESET:
|
|
@@ -2962,13 +2933,13 @@
|
|
|
2962
2933
|
// :read-(only|write)
|
|
2963
2934
|
case ':read-only':
|
|
2964
2935
|
case ':read-write':
|
|
2965
|
-
return serialize([copy$1(element, {
|
|
2936
|
+
return serialize$1([copy$1(element, {
|
|
2966
2937
|
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
|
2967
2938
|
})], callback);
|
|
2968
2939
|
// :placeholder
|
|
2969
2940
|
|
|
2970
2941
|
case '::placeholder':
|
|
2971
|
-
return serialize([copy$1(element, {
|
|
2942
|
+
return serialize$1([copy$1(element, {
|
|
2972
2943
|
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
|
2973
2944
|
}), copy$1(element, {
|
|
2974
2945
|
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
|
@@ -3051,7 +3022,7 @@
|
|
|
3051
3022
|
}
|
|
3052
3023
|
if (isBrowser$1) {
|
|
3053
3024
|
var currentSheet;
|
|
3054
|
-
var finalizingPlugins = [stringify, function (element) {
|
|
3025
|
+
var finalizingPlugins = [stringify$1, function (element) {
|
|
3055
3026
|
if (!element.root) {
|
|
3056
3027
|
if (element["return"]) {
|
|
3057
3028
|
currentSheet.insert(element["return"]);
|
|
@@ -3064,7 +3035,7 @@
|
|
|
3064
3035
|
} ];
|
|
3065
3036
|
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
3066
3037
|
var stylis = function stylis(styles) {
|
|
3067
|
-
return serialize(compile(styles), serializer);
|
|
3038
|
+
return serialize$1(compile(styles), serializer);
|
|
3068
3039
|
};
|
|
3069
3040
|
_insert = function insert(selector, serialized, sheet, shouldCache) {
|
|
3070
3041
|
currentSheet = sheet;
|
|
@@ -3081,10 +3052,10 @@
|
|
|
3081
3052
|
}
|
|
3082
3053
|
};
|
|
3083
3054
|
} else {
|
|
3084
|
-
var _finalizingPlugins = [stringify];
|
|
3055
|
+
var _finalizingPlugins = [stringify$1];
|
|
3085
3056
|
var _serializer = middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
|
|
3086
3057
|
var _stylis = function _stylis(styles) {
|
|
3087
|
-
return serialize(compile(styles), _serializer);
|
|
3058
|
+
return serialize$1(compile(styles), _serializer);
|
|
3088
3059
|
}; // $FlowFixMe
|
|
3089
3060
|
|
|
3090
3061
|
var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
|
|
@@ -4978,6 +4949,8 @@
|
|
|
4978
4949
|
SuperJSON.allowErrorProps = SuperJSON.defaultInstance.allowErrorProps.bind(SuperJSON.defaultInstance);
|
|
4979
4950
|
return SuperJSON;
|
|
4980
4951
|
}();
|
|
4952
|
+
var serialize = SuperJSON.serialize;
|
|
4953
|
+
var stringify = SuperJSON.stringify;
|
|
4981
4954
|
|
|
4982
4955
|
function getQueryStatusLabel(query) {
|
|
4983
4956
|
return query.state.fetchStatus === 'fetching' ? 'fetching' : !query.getObserversCount() ? 'inactive' : query.state.fetchStatus === 'paused' ? 'paused' : query.isStale() ? 'stale' : 'fresh';
|
|
@@ -5001,7 +4974,7 @@
|
|
|
5001
4974
|
const displayValue = (value, beautify = false) => {
|
|
5002
4975
|
const {
|
|
5003
4976
|
json
|
|
5004
|
-
} =
|
|
4977
|
+
} = serialize(value);
|
|
5005
4978
|
return JSON.stringify(json, null, beautify ? 2 : undefined);
|
|
5006
4979
|
};
|
|
5007
4980
|
|
|
@@ -5207,7 +5180,7 @@
|
|
|
5207
5180
|
return (() => {
|
|
5208
5181
|
const _el$2 = _tmpl$2$1.cloneNode(true);
|
|
5209
5182
|
addEventListener(_el$2, "click", copyState() === 'NoCopy' ? () => {
|
|
5210
|
-
navigator.clipboard.writeText(
|
|
5183
|
+
navigator.clipboard.writeText(stringify(props.value)).then(() => {
|
|
5211
5184
|
setCopyState('SuccessCopy');
|
|
5212
5185
|
setTimeout(() => {
|
|
5213
5186
|
setCopyState('NoCopy');
|
|
@@ -7863,17 +7836,8 @@
|
|
|
7863
7836
|
delegateEvents(["click", "mousedown", "input"]);
|
|
7864
7837
|
|
|
7865
7838
|
class TanstackQueryDevtools {
|
|
7839
|
+
isMounted = false;
|
|
7866
7840
|
constructor(config) {
|
|
7867
|
-
_defineProperty(this, "client", void 0);
|
|
7868
|
-
_defineProperty(this, "onlineManager", void 0);
|
|
7869
|
-
_defineProperty(this, "queryFlavor", void 0);
|
|
7870
|
-
_defineProperty(this, "version", void 0);
|
|
7871
|
-
_defineProperty(this, "isMounted", false);
|
|
7872
|
-
_defineProperty(this, "buttonPosition", void 0);
|
|
7873
|
-
_defineProperty(this, "position", void 0);
|
|
7874
|
-
_defineProperty(this, "initialIsOpen", void 0);
|
|
7875
|
-
_defineProperty(this, "errorTypes", void 0);
|
|
7876
|
-
_defineProperty(this, "dispose", void 0);
|
|
7877
7841
|
const {
|
|
7878
7842
|
client,
|
|
7879
7843
|
queryFlavor,
|