@buoy-gg/react-query 7.0.33 → 7.0.35
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/lib/commonjs/react-query/components/DataEditorMode.js +2 -2
- package/lib/commonjs/react-query/components/FilterStatusBadge.js +1 -1
- package/lib/commonjs/react-query/components/MutationEditorMode.js +2 -2
- package/lib/commonjs/react-query/components/modals/MutationBrowserFooter.js +7 -19
- package/lib/commonjs/react-query/components/modals/QueryBrowserFooter.js +7 -19
- package/lib/commonjs/react-query/components/modals/ReactQueryModalHeader.js +23 -71
- package/lib/commonjs/react-query/components/query-browser/MutationButton.js +2 -2
- package/lib/commonjs/react-query/components/query-browser/MutationDetails.js +4 -4
- package/lib/commonjs/react-query/components/query-browser/MutationDetailsChips.js +1 -1
- package/lib/commonjs/react-query/components/query-browser/MutationInformation.js +1 -1
- package/lib/commonjs/react-query/components/query-browser/MutationStatusCount.js +51 -87
- package/lib/commonjs/react-query/components/query-browser/MutationsList.js +1 -1
- package/lib/commonjs/react-query/components/query-browser/QueryBrowser.js +3 -12
- package/lib/commonjs/react-query/components/query-browser/QueryDetails.js +4 -4
- package/lib/commonjs/react-query/components/query-browser/QueryDetailsChip.js +1 -1
- package/lib/commonjs/react-query/components/query-browser/QueryStatusCount.js +66 -112
- package/lib/commonjs/react-query/components/query-browser/StorageStatusCount.js +22 -67
- package/lib/commonjs/react-query/stores/reactQueryEventStore.js +13 -22
- package/lib/commonjs/react-query/sync/snapshotProvider.js +17 -62
- package/lib/module/react-query/components/DataEditorMode.js +3 -3
- package/lib/module/react-query/components/FilterStatusBadge.js +2 -2
- package/lib/module/react-query/components/MutationEditorMode.js +3 -3
- package/lib/module/react-query/components/modals/MutationBrowserFooter.js +8 -20
- package/lib/module/react-query/components/modals/QueryBrowserFooter.js +8 -20
- package/lib/module/react-query/components/modals/ReactQueryModalHeader.js +25 -73
- package/lib/module/react-query/components/query-browser/MutationButton.js +3 -3
- package/lib/module/react-query/components/query-browser/MutationDetails.js +5 -5
- package/lib/module/react-query/components/query-browser/MutationDetailsChips.js +2 -2
- package/lib/module/react-query/components/query-browser/MutationInformation.js +2 -2
- package/lib/module/react-query/components/query-browser/MutationStatusCount.js +51 -87
- package/lib/module/react-query/components/query-browser/MutationsList.js +2 -2
- package/lib/module/react-query/components/query-browser/QueryBrowser.js +4 -13
- package/lib/module/react-query/components/query-browser/QueryDetails.js +5 -5
- package/lib/module/react-query/components/query-browser/QueryDetailsChip.js +2 -2
- package/lib/module/react-query/components/query-browser/QueryStatusCount.js +66 -112
- package/lib/module/react-query/components/query-browser/StorageStatusCount.js +22 -67
- package/lib/module/react-query/stores/reactQueryEventStore.js +13 -22
- package/lib/module/react-query/sync/snapshotProvider.js +18 -63
- package/lib/typescript/react-query/components/modals/MutationBrowserFooter.d.ts.map +1 -1
- package/lib/typescript/react-query/components/modals/QueryBrowserFooter.d.ts.map +1 -1
- package/lib/typescript/react-query/components/modals/ReactQueryModalHeader.d.ts.map +1 -1
- package/lib/typescript/react-query/components/query-browser/MutationStatusCount.d.ts.map +1 -1
- package/lib/typescript/react-query/components/query-browser/QueryBrowser.d.ts.map +1 -1
- package/lib/typescript/react-query/components/query-browser/QueryStatusCount.d.ts.map +1 -1
- package/lib/typescript/react-query/components/query-browser/StorageStatusCount.d.ts.map +1 -1
- package/lib/typescript/react-query/stores/reactQueryEventStore.d.ts +3 -8
- package/lib/typescript/react-query/stores/reactQueryEventStore.d.ts.map +1 -1
- package/lib/typescript/react-query/sync/snapshotProvider.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { View, StyleSheet, ScrollView } from "react-native";
|
|
3
|
+
import { ChipStrip, useChipTap } from "@buoy-gg/shared-ui";
|
|
5
4
|
import QueryStatus from "./QueryStatus";
|
|
6
5
|
import useQueryStatusCounts from "../../hooks/useQueryStatusCounts";
|
|
7
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -20,122 +19,77 @@ const QueryStatusCount = ({
|
|
|
20
19
|
paused,
|
|
21
20
|
inactive
|
|
22
21
|
} = useQueryStatusCounts();
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
const {
|
|
23
|
+
scrollProps,
|
|
24
|
+
onTouchStart: handleTouchStart,
|
|
25
|
+
isTap
|
|
26
|
+
} = useChipTap();
|
|
28
27
|
const handleFilterClick = (filter, event) => {
|
|
29
|
-
if (event)
|
|
30
|
-
// Calculate distance moved during touch (like ChipTabs)
|
|
31
|
-
const dx = Math.abs(event.nativeEvent.pageX - touchStartX.current);
|
|
32
|
-
const dy = Math.abs(event.nativeEvent.pageY - touchStartY.current);
|
|
33
|
-
|
|
34
|
-
// If touch moved more than 5px in any direction, it's a swipe, not a tap
|
|
35
|
-
if (dx > 5 || dy > 5 || isScrolling) {
|
|
36
|
-
return; // Don't trigger filter change
|
|
37
|
-
}
|
|
38
|
-
}
|
|
28
|
+
if (!isTap(event)) return;
|
|
39
29
|
if (onFilterChange) {
|
|
40
30
|
// Toggle filter: if already active, clear it; otherwise set it
|
|
41
31
|
onFilterChange(activeFilter === filter ? null : filter);
|
|
42
32
|
}
|
|
43
33
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
size: size
|
|
104
|
-
}), /*#__PURE__*/_jsx(QueryStatus, {
|
|
105
|
-
label: "Idle",
|
|
106
|
-
color: "gray",
|
|
107
|
-
count: inactive,
|
|
108
|
-
isActive: activeFilter === "inactive",
|
|
109
|
-
onPress: event => handleFilterClick("inactive", event),
|
|
110
|
-
onTouchStart: handleTouchStart,
|
|
111
|
-
testID: "buoy-rq-status-inactive",
|
|
112
|
-
showLabel: true // Always show labels now
|
|
113
|
-
,
|
|
114
|
-
size: size
|
|
115
|
-
})]
|
|
116
|
-
})
|
|
34
|
+
return /*#__PURE__*/_jsxs(ChipStrip, {
|
|
35
|
+
scrollProps: scrollProps,
|
|
36
|
+
sentryLabel: "ignore devtools query status count scroll",
|
|
37
|
+
children: [/*#__PURE__*/_jsx(QueryStatus, {
|
|
38
|
+
label: "Fresh",
|
|
39
|
+
color: "green",
|
|
40
|
+
count: fresh,
|
|
41
|
+
isActive: activeFilter === "fresh",
|
|
42
|
+
onPress: event => handleFilterClick("fresh", event),
|
|
43
|
+
onTouchStart: handleTouchStart,
|
|
44
|
+
testID: "buoy-rq-status-fresh",
|
|
45
|
+
showLabel: true // Always show labels now
|
|
46
|
+
,
|
|
47
|
+
size: size
|
|
48
|
+
}), /*#__PURE__*/_jsx(QueryStatus, {
|
|
49
|
+
label: "Loading",
|
|
50
|
+
color: "blue",
|
|
51
|
+
count: fetching,
|
|
52
|
+
isActive: activeFilter === "fetching",
|
|
53
|
+
onPress: event => handleFilterClick("fetching", event),
|
|
54
|
+
onTouchStart: handleTouchStart,
|
|
55
|
+
testID: "buoy-rq-status-fetching",
|
|
56
|
+
showLabel: true // Always show labels now
|
|
57
|
+
,
|
|
58
|
+
size: size
|
|
59
|
+
}), /*#__PURE__*/_jsx(QueryStatus, {
|
|
60
|
+
label: "Paused",
|
|
61
|
+
color: "purple",
|
|
62
|
+
count: paused,
|
|
63
|
+
isActive: activeFilter === "paused",
|
|
64
|
+
onPress: event => handleFilterClick("paused", event),
|
|
65
|
+
onTouchStart: handleTouchStart,
|
|
66
|
+
testID: "buoy-rq-status-paused",
|
|
67
|
+
showLabel: true // Always show labels now
|
|
68
|
+
,
|
|
69
|
+
size: size
|
|
70
|
+
}), /*#__PURE__*/_jsx(QueryStatus, {
|
|
71
|
+
label: "Stale",
|
|
72
|
+
color: "yellow",
|
|
73
|
+
count: stale,
|
|
74
|
+
isActive: activeFilter === "stale",
|
|
75
|
+
onPress: event => handleFilterClick("stale", event),
|
|
76
|
+
onTouchStart: handleTouchStart,
|
|
77
|
+
testID: "buoy-rq-status-stale",
|
|
78
|
+
showLabel: true // Always show labels now
|
|
79
|
+
,
|
|
80
|
+
size: size
|
|
81
|
+
}), /*#__PURE__*/_jsx(QueryStatus, {
|
|
82
|
+
label: "Idle",
|
|
83
|
+
color: "gray",
|
|
84
|
+
count: inactive,
|
|
85
|
+
isActive: activeFilter === "inactive",
|
|
86
|
+
onPress: event => handleFilterClick("inactive", event),
|
|
87
|
+
onTouchStart: handleTouchStart,
|
|
88
|
+
testID: "buoy-rq-status-inactive",
|
|
89
|
+
showLabel: true // Always show labels now
|
|
90
|
+
,
|
|
91
|
+
size: size
|
|
92
|
+
})]
|
|
117
93
|
});
|
|
118
94
|
};
|
|
119
|
-
const styles = StyleSheet.create({
|
|
120
|
-
queryStatusContainer: {
|
|
121
|
-
// Container for ScrollView - take full width
|
|
122
|
-
flex: 1,
|
|
123
|
-
minWidth: 0
|
|
124
|
-
},
|
|
125
|
-
scrollView: {
|
|
126
|
-
// ScrollView itself styles
|
|
127
|
-
flex: 1
|
|
128
|
-
},
|
|
129
|
-
scrollContent: {
|
|
130
|
-
// ScrollView content styles
|
|
131
|
-
flexDirection: "row",
|
|
132
|
-
alignItems: "center",
|
|
133
|
-
gap: 8,
|
|
134
|
-
// Spacing between chips
|
|
135
|
-
paddingHorizontal: 4,
|
|
136
|
-
// Small padding on ends
|
|
137
|
-
paddingVertical: 4,
|
|
138
|
-
flexGrow: 1 // Allow content to grow to fill available space
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
95
|
export default QueryStatusCount;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { View, StyleSheet, ScrollView } from "react-native";
|
|
3
|
+
import { ChipStrip, useChipTap } from "@buoy-gg/shared-ui";
|
|
5
4
|
import QueryStatus from "./QueryStatus";
|
|
6
5
|
import { getStorageTypeLabel, getStorageTypeColor } from "../../utils/storageQueryUtils";
|
|
7
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -19,21 +18,13 @@ const StorageStatusCount = ({
|
|
|
19
18
|
onStorageTypesChange,
|
|
20
19
|
counts
|
|
21
20
|
}) => {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
const {
|
|
22
|
+
scrollProps,
|
|
23
|
+
onTouchStart: handleTouchStart,
|
|
24
|
+
isTap
|
|
25
|
+
} = useChipTap();
|
|
26
26
|
const handleStorageTypeToggle = (storageType, event) => {
|
|
27
|
-
if (event)
|
|
28
|
-
// Calculate distance moved during touch (like QueryStatusCount)
|
|
29
|
-
const dx = Math.abs(event.nativeEvent.pageX - touchStartX.current);
|
|
30
|
-
const dy = Math.abs(event.nativeEvent.pageY - touchStartY.current);
|
|
31
|
-
|
|
32
|
-
// If touch moved more than 5px in any direction, it's a swipe, not a tap
|
|
33
|
-
if (dx > 5 || dy > 5 || isScrolling) {
|
|
34
|
-
return; // Don't trigger filter change
|
|
35
|
-
}
|
|
36
|
-
}
|
|
27
|
+
if (!isTap(event)) return;
|
|
37
28
|
if (onStorageTypesChange) {
|
|
38
29
|
const newStorageTypes = new Set(activeStorageTypes);
|
|
39
30
|
if (newStorageTypes.has(storageType)) {
|
|
@@ -44,58 +35,22 @@ const StorageStatusCount = ({
|
|
|
44
35
|
onStorageTypesChange(newStorageTypes);
|
|
45
36
|
}
|
|
46
37
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
onMomentumScrollEnd: () => setTimeout(() => setIsScrolling(false), 300),
|
|
63
|
-
children: allStorageTypes.map(storageType => {
|
|
64
|
-
const count = counts?.[storageType] ?? 0;
|
|
65
|
-
return /*#__PURE__*/_jsx(QueryStatus, {
|
|
66
|
-
label: getStorageTypeLabel(storageType),
|
|
67
|
-
color: getStorageTypeColor(storageType),
|
|
68
|
-
count: count // Show actual storage query counts
|
|
69
|
-
,
|
|
70
|
-
isActive: activeStorageTypes.has(storageType),
|
|
71
|
-
onPress: event => handleStorageTypeToggle(storageType, event),
|
|
72
|
-
onTouchStart: handleTouchStart,
|
|
73
|
-
showLabel: true
|
|
74
|
-
}, storageType);
|
|
75
|
-
})
|
|
38
|
+
return /*#__PURE__*/_jsx(ChipStrip, {
|
|
39
|
+
scrollProps: scrollProps,
|
|
40
|
+
sentryLabel: "ignore devtools storage status count scroll",
|
|
41
|
+
children: allStorageTypes.map(storageType => {
|
|
42
|
+
const count = counts?.[storageType] ?? 0;
|
|
43
|
+
return /*#__PURE__*/_jsx(QueryStatus, {
|
|
44
|
+
label: getStorageTypeLabel(storageType),
|
|
45
|
+
color: getStorageTypeColor(storageType),
|
|
46
|
+
count: count // Show actual storage query counts
|
|
47
|
+
,
|
|
48
|
+
isActive: activeStorageTypes.has(storageType),
|
|
49
|
+
onPress: event => handleStorageTypeToggle(storageType, event),
|
|
50
|
+
onTouchStart: handleTouchStart,
|
|
51
|
+
showLabel: true
|
|
52
|
+
}, storageType);
|
|
76
53
|
})
|
|
77
54
|
});
|
|
78
55
|
};
|
|
79
|
-
const styles = StyleSheet.create({
|
|
80
|
-
storageStatusContainer: {
|
|
81
|
-
// Container for ScrollView - take full width
|
|
82
|
-
flex: 1,
|
|
83
|
-
minWidth: 0
|
|
84
|
-
},
|
|
85
|
-
scrollView: {
|
|
86
|
-
// ScrollView itself styles
|
|
87
|
-
flex: 1
|
|
88
|
-
},
|
|
89
|
-
scrollContent: {
|
|
90
|
-
// ScrollView content styles
|
|
91
|
-
flexDirection: "row",
|
|
92
|
-
alignItems: "center",
|
|
93
|
-
gap: 8,
|
|
94
|
-
// Spacing between chips
|
|
95
|
-
paddingHorizontal: 4,
|
|
96
|
-
// Small padding on ends
|
|
97
|
-
paddingVertical: 4,
|
|
98
|
-
flexGrow: 1 // Allow content to grow to fill available space
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
56
|
export default StorageStatusCount;
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* 3. The Events DevTools subscribes to these events
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
+
import { ChangeLog } from "@buoy-gg/shared-ui";
|
|
15
16
|
import { isStorageQuery } from "../utils/storageQueryUtils";
|
|
16
17
|
|
|
17
18
|
/**
|
|
@@ -26,13 +27,15 @@ let eventIdCounter = 0;
|
|
|
26
27
|
function generateEventId() {
|
|
27
28
|
return `rq-${Date.now()}-${++eventIdCounter}`;
|
|
28
29
|
}
|
|
29
|
-
class ReactQueryEventStore {
|
|
30
|
-
events = [];
|
|
31
|
-
listeners = new Set();
|
|
30
|
+
class ReactQueryEventStore extends ChangeLog {
|
|
32
31
|
queryClient = null;
|
|
33
32
|
queryUnsubscribe = null;
|
|
34
33
|
mutationUnsubscribe = null;
|
|
35
|
-
|
|
34
|
+
constructor() {
|
|
35
|
+
super({
|
|
36
|
+
max: 200
|
|
37
|
+
});
|
|
38
|
+
}
|
|
36
39
|
|
|
37
40
|
// Track fetch start times for duration calculation
|
|
38
41
|
fetchStartTimes = new Map();
|
|
@@ -243,43 +246,31 @@ class ReactQueryEventStore {
|
|
|
243
246
|
* Add an event to the store
|
|
244
247
|
*/
|
|
245
248
|
addEvent(event) {
|
|
246
|
-
this.
|
|
247
|
-
this.notifyListeners();
|
|
249
|
+
this.record(event);
|
|
248
250
|
}
|
|
249
251
|
|
|
250
252
|
/**
|
|
251
253
|
* Get all events
|
|
252
254
|
*/
|
|
253
255
|
getEvents() {
|
|
254
|
-
return this.
|
|
256
|
+
return this.items;
|
|
255
257
|
}
|
|
256
258
|
|
|
257
259
|
/**
|
|
258
260
|
* Subscribe to event changes
|
|
259
261
|
*/
|
|
260
262
|
subscribe(listener) {
|
|
261
|
-
|
|
263
|
+
const unsubscribe = super.subscribe(listener);
|
|
262
264
|
// Immediately call with current events
|
|
263
|
-
listener(this.
|
|
264
|
-
return
|
|
265
|
-
this.listeners.delete(listener);
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Notify all listeners
|
|
271
|
-
*/
|
|
272
|
-
notifyListeners() {
|
|
273
|
-
const events = this.events;
|
|
274
|
-
this.listeners.forEach(listener => listener(events));
|
|
265
|
+
listener(this.items);
|
|
266
|
+
return unsubscribe;
|
|
275
267
|
}
|
|
276
268
|
|
|
277
269
|
/**
|
|
278
270
|
* Clear all events
|
|
279
271
|
*/
|
|
280
272
|
clearEvents() {
|
|
281
|
-
this.
|
|
282
|
-
this.notifyListeners();
|
|
273
|
+
this.clear();
|
|
283
274
|
}
|
|
284
275
|
|
|
285
276
|
/**
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
* the mutation cache is cleared instead.
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
-
import { registerStateSnapshotProvider, superJsonSerialize } from "@buoy-gg/shared-ui";
|
|
21
|
-
import { boundedDeepEqual, jsonLikelyLargerThan } from "@buoy-gg/shared-ui/dataViewer";
|
|
20
|
+
import { classifyPreviewItem, createRestoreScope, emptyRestoreResult, failedRestore, registerStateSnapshotProvider, superJsonSerialize } from "@buoy-gg/shared-ui";
|
|
22
21
|
import { isWireDataMarker } from "./dehydrate";
|
|
23
22
|
/** A restored query must never claim an in-flight fetch it doesn't have. */
|
|
24
23
|
function normalizeState(state) {
|
|
@@ -49,7 +48,6 @@ function queryLabel(queryKey, queryHash) {
|
|
|
49
48
|
return queryHash;
|
|
50
49
|
}
|
|
51
50
|
}
|
|
52
|
-
const ITEM_RENDER_BYTE_LIMIT = 256 * 1024;
|
|
53
51
|
|
|
54
52
|
/**
|
|
55
53
|
* A query `error` (and `fetchFailureReason`) usually holds the live
|
|
@@ -151,31 +149,15 @@ export function createQuerySnapshotProvider(queryClient) {
|
|
|
151
149
|
},
|
|
152
150
|
async restore(data, options) {
|
|
153
151
|
const snapshot = data;
|
|
154
|
-
const
|
|
155
|
-
const
|
|
156
|
-
const touch = key => !excludedSet.has(key) && (!includedSet || includedSet.has(key));
|
|
157
|
-
let excludedHits = 0;
|
|
158
|
-
const result = {
|
|
159
|
-
ok: true,
|
|
160
|
-
applied: 0,
|
|
161
|
-
skipped: [],
|
|
162
|
-
warnings: []
|
|
163
|
-
};
|
|
152
|
+
const scope = createRestoreScope(options);
|
|
153
|
+
const result = emptyRestoreResult();
|
|
164
154
|
if (!snapshot?.queries) {
|
|
165
|
-
return
|
|
166
|
-
ok: false,
|
|
167
|
-
applied: 0,
|
|
168
|
-
skipped: [],
|
|
169
|
-
warnings: ["empty query snapshot"]
|
|
170
|
-
};
|
|
155
|
+
return failedRestore("empty query snapshot");
|
|
171
156
|
}
|
|
172
157
|
const cache = queryClient.getQueryCache();
|
|
173
158
|
const snapHashes = new Set(snapshot.queries.map(q => q.queryHash));
|
|
174
159
|
for (const snap of snapshot.queries) {
|
|
175
|
-
if (!
|
|
176
|
-
excludedHits += 1;
|
|
177
|
-
continue;
|
|
178
|
-
}
|
|
160
|
+
if (!scope.allows(snap.queryHash)) continue;
|
|
179
161
|
// Snapshots taken before the raw-capture fix hold a wire placeholder
|
|
180
162
|
// instead of the data. Writing that into the cache hands the app an
|
|
181
163
|
// object with none of its fields — leave the live query alone and say
|
|
@@ -216,10 +198,7 @@ export function createQuerySnapshotProvider(queryClient) {
|
|
|
216
198
|
// Cache entries the snapshot doesn't know about get removed; a mounted
|
|
217
199
|
// observer will rebuild + refetch its query on next interaction.
|
|
218
200
|
for (const query of cache.getAll().slice()) {
|
|
219
|
-
if (!
|
|
220
|
-
excludedHits += 1;
|
|
221
|
-
continue;
|
|
222
|
-
}
|
|
201
|
+
if (!scope.allows(query.queryHash)) continue;
|
|
223
202
|
if (!snapHashes.has(query.queryHash)) {
|
|
224
203
|
try {
|
|
225
204
|
cache.remove(query);
|
|
@@ -237,9 +216,8 @@ export function createQuerySnapshotProvider(queryClient) {
|
|
|
237
216
|
queryClient.getMutationCache().clear();
|
|
238
217
|
result.warnings.push(`mutation cache cleared (${mutationCount} mutation(s))`);
|
|
239
218
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}
|
|
219
|
+
const excludedWarning = scope.excludedWarning("quer(y/ies)");
|
|
220
|
+
if (excludedWarning) result.warnings.push(excludedWarning);
|
|
243
221
|
return result;
|
|
244
222
|
},
|
|
245
223
|
/** Per-query restore preview. `base` omitted = compare against live cache. */
|
|
@@ -265,39 +243,16 @@ export function createQuerySnapshotProvider(queryClient) {
|
|
|
265
243
|
continue;
|
|
266
244
|
}
|
|
267
245
|
const baseQ = baseByHash.get(q.queryHash);
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
const newVal = comparableQuery(q);
|
|
279
|
-
if (boundedDeepEqual(oldVal, newVal)) {
|
|
280
|
-
items.push({
|
|
281
|
-
key: q.queryHash,
|
|
282
|
-
label,
|
|
283
|
-
verdict: "unchanged"
|
|
284
|
-
});
|
|
285
|
-
} else if (jsonLikelyLargerThan(oldVal, ITEM_RENDER_BYTE_LIMIT) || jsonLikelyLargerThan(newVal, ITEM_RENDER_BYTE_LIMIT)) {
|
|
286
|
-
items.push({
|
|
287
|
-
key: q.queryHash,
|
|
288
|
-
label,
|
|
289
|
-
verdict: "too-large",
|
|
290
|
-
reason: "query data too large to render a diff — restore still applies it"
|
|
291
|
-
});
|
|
292
|
-
} else {
|
|
293
|
-
items.push({
|
|
294
|
-
key: q.queryHash,
|
|
295
|
-
label,
|
|
296
|
-
verdict: "changed",
|
|
297
|
-
oldValue: oldVal,
|
|
298
|
-
newValue: newVal
|
|
299
|
-
});
|
|
300
|
-
}
|
|
246
|
+
items.push(classifyPreviewItem({
|
|
247
|
+
key: q.queryHash,
|
|
248
|
+
label,
|
|
249
|
+
oldValue: baseQ ? comparableQuery(baseQ) : undefined,
|
|
250
|
+
newValue: comparableQuery(q),
|
|
251
|
+
inOld: baseQ !== undefined,
|
|
252
|
+
inNew: true
|
|
253
|
+
}, {
|
|
254
|
+
tooLargeReason: "query data too large to render a diff — restore still applies it"
|
|
255
|
+
}));
|
|
301
256
|
}
|
|
302
257
|
for (const q of baseQueries) {
|
|
303
258
|
if (!targetByHash.has(q.queryHash)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MutationBrowserFooter.d.ts","sourceRoot":"","sources":["../../../../../src/react-query/components/modals/MutationBrowserFooter.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"MutationBrowserFooter.d.ts","sourceRoot":"","sources":["../../../../../src/react-query/components/modals/MutationBrowserFooter.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiC,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAI9E,UAAU,0BAA0B;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACjD,SAAS,EAAE,SAAS,CAAC;IACrB,uDAAuD;IACvD,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;CAC5B;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,YAAY,EACZ,cAAc,EACd,SAAS,EACT,IAAgB,GACjB,EAAE,0BAA0B,+BA0B5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryBrowserFooter.d.ts","sourceRoot":"","sources":["../../../../../src/react-query/components/modals/QueryBrowserFooter.tsx"],"names":[],"mappings":"AAIA,UAAU,uBAAuB;IAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACjD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,uDAAuD;IACvD,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;CAC5B;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,YAAY,EACZ,cAAc,EACd,cAAqB,EAAE,4CAA4C;AACnE,IAAgB,GACjB,EAAE,uBAAuB,+
|
|
1
|
+
{"version":3,"file":"QueryBrowserFooter.d.ts","sourceRoot":"","sources":["../../../../../src/react-query/components/modals/QueryBrowserFooter.tsx"],"names":[],"mappings":"AAIA,UAAU,uBAAuB;IAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACjD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,uDAAuD;IACvD,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;CAC5B;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,YAAY,EACZ,cAAc,EACd,cAAqB,EAAE,4CAA4C;AACnE,IAAgB,GACjB,EAAE,uBAAuB,+BAqBzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactQueryModalHeader.d.ts","sourceRoot":"","sources":["../../../../../src/react-query/components/modals/ReactQueryModalHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAMxD,UAAU,0BAA0B;IAClC,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,gBAAgB,CAAC,EAAE,QAAQ,CAAC;IAC5B,SAAS,EAAE,SAAS,GAAG,WAAW,CAAC;IACnC,WAAW,EAAE,CAAC,GAAG,EAAE,SAAS,GAAG,WAAW,KAAK,IAAI,CAAC;IACpD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,aAAa,EACb,gBAAgB,EAChB,SAAS,EACT,WAAW,EACX,MAAM,EACN,UAAe,EACf,cAAc,EACd,aAAa,EACb,gBAAwB,EACxB,YAAY,EACZ,cAAsB,GACvB,EAAE,0BAA0B,+
|
|
1
|
+
{"version":3,"file":"ReactQueryModalHeader.d.ts","sourceRoot":"","sources":["../../../../../src/react-query/components/modals/ReactQueryModalHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAMxD,UAAU,0BAA0B;IAClC,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,gBAAgB,CAAC,EAAE,QAAQ,CAAC;IAC5B,SAAS,EAAE,SAAS,GAAG,WAAW,CAAC;IACnC,WAAW,EAAE,CAAC,GAAG,EAAE,SAAS,GAAG,WAAW,KAAK,IAAI,CAAC;IACpD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,aAAa,EACb,gBAAgB,EAChB,SAAS,EACT,WAAW,EACX,MAAM,EACN,UAAe,EACf,cAAc,EACd,aAAa,EACb,gBAAwB,EACxB,YAAY,EACZ,cAAsB,GACvB,EAAE,0BAA0B,+BAgL5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MutationStatusCount.d.ts","sourceRoot":"","sources":["../../../../../src/react-query/components/query-browser/MutationStatusCount.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MutationStatusCount.d.ts","sourceRoot":"","sources":["../../../../../src/react-query/components/query-browser/MutationStatusCount.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,UAAU,wBAAwB;IAChC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACjD,sDAAsD;IACtD,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;CAC5B;AAED;;;GAGG;AACH,QAAA,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAkErD,CAAC;AAGF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryBrowser.d.ts","sourceRoot":"","sources":["../../../../../src/react-query/components/query-browser/QueryBrowser.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoC,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAI9C,OAAO,EAGL,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"QueryBrowser.d.ts","sourceRoot":"","sources":["../../../../../src/react-query/components/query-browser/QueryBrowser.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoC,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAI9C,OAAO,EAGL,KAAK,gBAAgB,EAGtB,MAAM,oBAAoB,CAAC;AAE5B,UAAU,KAAK;IACb,aAAa,EAAE,KAAK,GAAG,SAAS,CAAC;IACjC,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,KAAK,IAAI,CAAC;IAClD,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,qBAAqB,CAAC,EAAE,SAAS,CAAC;IAClC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9B,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,aAAa,EACb,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,qBAAqB,EACrB,OAAO,EAAE,eAAe,EACxB,UAAe,EACf,eAA2B,EAC3B,gBAA4B,GAC7B,EAAE,KAAK,+BA+IP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryStatusCount.d.ts","sourceRoot":"","sources":["../../../../../src/react-query/components/query-browser/QueryStatusCount.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"QueryStatusCount.d.ts","sourceRoot":"","sources":["../../../../../src/react-query/components/query-browser/QueryStatusCount.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAM3B,UAAU,qBAAqB;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACjD,sDAAsD;IACtD,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA8E/C,CAAC;AAGF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageStatusCount.d.ts","sourceRoot":"","sources":["../../../../../src/react-query/components/query-browser/StorageStatusCount.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"StorageStatusCount.d.ts","sourceRoot":"","sources":["../../../../../src/react-query/components/query-browser/StorageStatusCount.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAI3B,OAAO,EACL,WAAW,EAGZ,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,UAAU,uBAAuB;IAC/B,kBAAkB,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;IACtC,oBAAoB,CAAC,EAAE,CAAC,YAAY,EAAE,GAAG,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAChE,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,QAAA,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CA4CnD,CAAC;AAGF,eAAe,kBAAkB,CAAC"}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* 2. The store will emit events for query/mutation state changes
|
|
10
10
|
* 3. The Events DevTools subscribes to these events
|
|
11
11
|
*/
|
|
12
|
+
import { ChangeLog } from "@buoy-gg/shared-ui";
|
|
12
13
|
import type { QueryClient, Query, Mutation } from "@tanstack/react-query";
|
|
13
14
|
/**
|
|
14
15
|
* React Query event types for the unified timeline
|
|
@@ -35,13 +36,11 @@ export interface ReactQueryEvent {
|
|
|
35
36
|
mutation?: Mutation;
|
|
36
37
|
}
|
|
37
38
|
type ReactQueryEventListener = (events: ReactQueryEvent[]) => void;
|
|
38
|
-
declare class ReactQueryEventStore {
|
|
39
|
-
private events;
|
|
40
|
-
private listeners;
|
|
39
|
+
declare class ReactQueryEventStore extends ChangeLog<ReactQueryEvent> {
|
|
41
40
|
private queryClient;
|
|
42
41
|
private queryUnsubscribe;
|
|
43
42
|
private mutationUnsubscribe;
|
|
44
|
-
|
|
43
|
+
constructor();
|
|
45
44
|
private fetchStartTimes;
|
|
46
45
|
private mutationStartTimes;
|
|
47
46
|
private lastQueryStates;
|
|
@@ -75,10 +74,6 @@ declare class ReactQueryEventStore {
|
|
|
75
74
|
* Subscribe to event changes
|
|
76
75
|
*/
|
|
77
76
|
subscribe(listener: ReactQueryEventListener): () => void;
|
|
78
|
-
/**
|
|
79
|
-
* Notify all listeners
|
|
80
|
-
*/
|
|
81
|
-
private notifyListeners;
|
|
82
77
|
/**
|
|
83
78
|
* Clear all events
|
|
84
79
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactQueryEventStore.d.ts","sourceRoot":"","sources":["../../../../src/react-query/stores/reactQueryEventStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG1E;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC3B,mBAAmB,GACnB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,gBAAgB,GAChB,kBAAkB,GAClB,gBAAgB,CAAC;AAErB;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,mBAAmB,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAElB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC;IACxB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,KAAK,uBAAuB,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;AAOnE,cAAM,
|
|
1
|
+
{"version":3,"file":"reactQueryEventStore.d.ts","sourceRoot":"","sources":["../../../../src/react-query/stores/reactQueryEventStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG1E;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC3B,mBAAmB,GACnB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,gBAAgB,GAChB,kBAAkB,GAClB,gBAAgB,CAAC;AAErB;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,mBAAmB,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAElB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC;IACxB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,KAAK,uBAAuB,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;AAOnE,cAAM,oBAAqB,SAAQ,SAAS,CAAC,eAAe,CAAC;IAC3D,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,gBAAgB,CAA6B;IACrD,OAAO,CAAC,mBAAmB,CAA6B;;IAOxD,OAAO,CAAC,eAAe,CAAkC;IACzD,OAAO,CAAC,kBAAkB,CAAkC;IAG5D,OAAO,CAAC,eAAe,CAAmE;IAC1F,OAAO,CAAC,kBAAkB,CAAkC;IAE5D;;;OAGG;IACH,cAAc,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI;IAqB9C;;OAEG;IACH,UAAU,IAAI,IAAI;IAgBlB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IA6FzB;;OAEG;IACH,OAAO,CAAC,oBAAoB;IA4D5B;;OAEG;IACH,OAAO,CAAC,QAAQ;IAIhB;;OAEG;IACH,SAAS,IAAI,eAAe,EAAE;IAI9B;;OAEG;IACM,SAAS,CAAC,QAAQ,EAAE,uBAAuB,GAAG,MAAM,IAAI;IAOjE;;OAEG;IACH,WAAW,IAAI,IAAI;IAInB;;OAEG;IACH,WAAW,IAAI,OAAO;CAGvB;AAGD,eAAO,MAAM,oBAAoB,sBAA6B,CAAC;AAG/D,eAAO,MAAM,cAAc,GAAI,aAAa,WAAW,SACL,CAAC;AACnD,eAAO,MAAM,qBAAqB,YAA0C,CAAC;AAC7E,eAAO,MAAM,mBAAmB,yBAAyC,CAAC;AAC1E,eAAO,MAAM,2BAA2B,GAAI,UAAU,uBAAuB,WA9Bd,IA+BrB,CAAC;AAC3C,eAAO,MAAM,qBAAqB,YAA2C,CAAC;AAC9E,eAAO,MAAM,qBAAqB,eAA2C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshotProvider.d.ts","sourceRoot":"","sources":["../../../../src/react-query/sync/snapshotProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,WAAW,EAAc,MAAM,uBAAuB,CAAC;AACrE,OAAO,
|
|
1
|
+
{"version":3,"file":"snapshotProvider.d.ts","sourceRoot":"","sources":["../../../../src/react-query/sync/snapshotProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,WAAW,EAAc,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAOL,KAAK,qBAAqB,EAK3B,MAAM,oBAAoB,CAAC;AA2G5B,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,WAAW,GACvB,qBAAqB,CAmKvB;AAED,4EAA4E;AAC5E,wBAAgB,6BAA6B,CAC3C,WAAW,EAAE,WAAW,GACvB,MAAM,IAAI,CAEZ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/react-query",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.35",
|
|
4
4
|
"description": "TanStack Query devtools inside your React Native app — cache inspection, refetch & invalidate, offline toggle. Part of Buoy devtools.",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"**/snapshotProvider.ts"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@buoy-gg/
|
|
33
|
-
"@buoy-gg/
|
|
32
|
+
"@buoy-gg/shared-ui": "^7.0.35",
|
|
33
|
+
"@buoy-gg/floating-tools-core": "^7.0.35"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@tanstack/react-query": ">=5.0.0",
|