@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
|
@@ -276,7 +276,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
276
276
|
borderBottomColor: _sharedUi.night.color.accent + "33",
|
|
277
277
|
letterSpacing: 0.5,
|
|
278
278
|
textTransform: "uppercase",
|
|
279
|
-
fontFamily:
|
|
279
|
+
fontFamily: _sharedUi.monoFont
|
|
280
280
|
},
|
|
281
281
|
queryExplorerContent: {
|
|
282
282
|
padding: 8
|
|
@@ -309,7 +309,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
309
309
|
borderBottomColor: _sharedUi.night.color.accent + "33",
|
|
310
310
|
letterSpacing: 0.5,
|
|
311
311
|
textTransform: "uppercase",
|
|
312
|
-
fontFamily:
|
|
312
|
+
fontFamily: _sharedUi.monoFont
|
|
313
313
|
},
|
|
314
314
|
dataContent: {
|
|
315
315
|
padding: 8
|
|
@@ -236,7 +236,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
236
236
|
borderBottomColor: _sharedUi.night.color.accent + "33",
|
|
237
237
|
letterSpacing: 0.5,
|
|
238
238
|
textTransform: "uppercase",
|
|
239
|
-
fontFamily:
|
|
239
|
+
fontFamily: _sharedUi.monoFont
|
|
240
240
|
},
|
|
241
241
|
mutationExplorerContent: {
|
|
242
242
|
padding: 8
|
|
@@ -268,7 +268,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
268
268
|
borderBottomColor: _sharedUi.night.color.accent + "33",
|
|
269
269
|
letterSpacing: 0.5,
|
|
270
270
|
textTransform: "uppercase",
|
|
271
|
-
fontFamily:
|
|
271
|
+
fontFamily: _sharedUi.monoFont
|
|
272
272
|
},
|
|
273
273
|
dataContent: {
|
|
274
274
|
padding: 8
|
|
@@ -33,13 +33,12 @@ function MutationBrowserFooter({
|
|
|
33
33
|
const paddingBottom = (0, _react.useMemo)(() => {
|
|
34
34
|
return !isFloatingMode ? insets.bottom : 0;
|
|
35
35
|
}, [isFloatingMode, insets.bottom]);
|
|
36
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
36
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ToolFooter, {
|
|
37
37
|
// Force re-render with key change
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
!isFloatingMode && styles.dockedFooter],
|
|
38
|
+
floating: isFloatingMode,
|
|
39
|
+
safeArea: false,
|
|
40
|
+
paddingBottom: paddingBottom,
|
|
41
|
+
style: styles.filterFooter,
|
|
43
42
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
44
43
|
style: styles.filterContainer,
|
|
45
44
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MutationStatusCount.default, {
|
|
@@ -52,19 +51,8 @@ function MutationBrowserFooter({
|
|
|
52
51
|
}
|
|
53
52
|
const styles = _reactNative.StyleSheet.create({
|
|
54
53
|
filterFooter: {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
paddingVertical: 8,
|
|
58
|
-
paddingHorizontal: 0,
|
|
59
|
-
// Transparent so the night sheet's star field shows through.
|
|
60
|
-
// Night glass bar — matches the shared EventStepperFooter backing.
|
|
61
|
-
backgroundColor: "rgba(5, 5, 5, 0.92)",
|
|
62
|
-
borderBottomLeftRadius: 14,
|
|
63
|
-
borderBottomRightRadius: 14
|
|
64
|
-
},
|
|
65
|
-
dockedFooter: {
|
|
66
|
-
borderBottomLeftRadius: 0,
|
|
67
|
-
borderBottomRightRadius: 0
|
|
54
|
+
paddingTop: 8,
|
|
55
|
+
paddingHorizontal: 0
|
|
68
56
|
},
|
|
69
57
|
filterContainer: {
|
|
70
58
|
minHeight: 32,
|
|
@@ -29,12 +29,11 @@ function QueryBrowserFooter({
|
|
|
29
29
|
const insets = (0, _sharedUi.useSafeAreaInsets)({
|
|
30
30
|
minBottom: 16
|
|
31
31
|
});
|
|
32
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
!isFloatingMode && styles.dockedFooter],
|
|
32
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ToolFooter, {
|
|
33
|
+
floating: isFloatingMode,
|
|
34
|
+
safeArea: false,
|
|
35
|
+
paddingBottom: !isFloatingMode ? insets.bottom : 0,
|
|
36
|
+
style: styles.filterFooter,
|
|
38
37
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
39
38
|
style: styles.filterContainer,
|
|
40
39
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_QueryStatusCount.default, {
|
|
@@ -47,19 +46,8 @@ function QueryBrowserFooter({
|
|
|
47
46
|
}
|
|
48
47
|
const styles = _reactNative.StyleSheet.create({
|
|
49
48
|
filterFooter: {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
paddingVertical: 8,
|
|
53
|
-
paddingHorizontal: 0,
|
|
54
|
-
// Transparent so the night sheet's star field shows through.
|
|
55
|
-
// Night glass bar — matches the shared EventStepperFooter backing.
|
|
56
|
-
backgroundColor: "rgba(5, 5, 5, 0.92)",
|
|
57
|
-
borderBottomLeftRadius: 14,
|
|
58
|
-
borderBottomRightRadius: 14
|
|
59
|
-
},
|
|
60
|
-
dockedFooter: {
|
|
61
|
-
borderBottomLeftRadius: 0,
|
|
62
|
-
borderBottomRightRadius: 0
|
|
49
|
+
paddingTop: 8,
|
|
50
|
+
paddingHorizontal: 0
|
|
63
51
|
},
|
|
64
52
|
filterContainer: {
|
|
65
53
|
minHeight: 32,
|
|
@@ -90,54 +90,29 @@ function ReactQueryModalHeader({
|
|
|
90
90
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ModalHeader.Content, {
|
|
91
91
|
title: "",
|
|
92
92
|
noMargin: true,
|
|
93
|
-
children: isSearchActive ? /*#__PURE__*/(0, _jsxRuntime.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}), searchText.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity
|
|
117
|
-
// react-native-web delays press-in ~50ms by default (native
|
|
118
|
-
// fires it immediately), which would put it AFTER the blur.
|
|
119
|
-
, {
|
|
120
|
-
delayPressIn: 0,
|
|
121
|
-
onPressIn: () => {
|
|
122
|
-
clearPressRef.current = true;
|
|
123
|
-
},
|
|
124
|
-
onPressOut: () => {
|
|
125
|
-
clearPressRef.current = false;
|
|
126
|
-
},
|
|
127
|
-
onPress: () => {
|
|
128
|
-
handleSearch("");
|
|
129
|
-
setIsSearchActive(false);
|
|
130
|
-
},
|
|
131
|
-
"sentry-label": "ignore clear search header",
|
|
132
|
-
testID: "buoy-rq-search-clear",
|
|
133
|
-
accessibilityRole: "button",
|
|
134
|
-
accessibilityLabel: "Clear search",
|
|
135
|
-
style: styles.headerSearchClear,
|
|
136
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.X, {
|
|
137
|
-
size: 14,
|
|
138
|
-
color: _sharedUi.night.color.textSecondary
|
|
139
|
-
})
|
|
140
|
-
}) : null]
|
|
93
|
+
children: isSearchActive ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ModalHeader.Search, {
|
|
94
|
+
value: searchText,
|
|
95
|
+
onChangeText: handleSearch,
|
|
96
|
+
onCancel: () => {
|
|
97
|
+
handleSearch("");
|
|
98
|
+
setIsSearchActive(false);
|
|
99
|
+
},
|
|
100
|
+
onDismiss: () => setIsSearchActive(false),
|
|
101
|
+
dismissOnBlur: true,
|
|
102
|
+
clearOnlyWhenText: true,
|
|
103
|
+
placeholder: "Search query keys...",
|
|
104
|
+
accessibilityLabel: "Search queries and mutations",
|
|
105
|
+
iconSize: 14
|
|
106
|
+
// These handles predate the shared field and are the reverse of
|
|
107
|
+
// its convention (container = "-field", input = bare); kept as-is
|
|
108
|
+
// so the e2e suite keeps its targets.
|
|
109
|
+
,
|
|
110
|
+
testID: "buoy-rq-search",
|
|
111
|
+
containerTestID: "buoy-rq-search-field",
|
|
112
|
+
clearTestID: "buoy-rq-search-clear",
|
|
113
|
+
inputProps: {
|
|
114
|
+
"sentry-label": "ignore react query search header"
|
|
115
|
+
}
|
|
141
116
|
}) : showWifiToggle ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
142
117
|
style: styles.tabRow,
|
|
143
118
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
@@ -206,29 +181,6 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
206
181
|
tabSelectorWrap: {
|
|
207
182
|
flex: 1
|
|
208
183
|
},
|
|
209
|
-
headerSearchContainer: {
|
|
210
|
-
flexDirection: "row",
|
|
211
|
-
alignItems: "center",
|
|
212
|
-
backgroundColor: _sharedUi.night.color.surfaceElevated,
|
|
213
|
-
borderRadius: 6,
|
|
214
|
-
paddingHorizontal: 8,
|
|
215
|
-
paddingVertical: 4,
|
|
216
|
-
gap: 6,
|
|
217
|
-
marginHorizontal: 12,
|
|
218
|
-
marginVertical: 8
|
|
219
|
-
},
|
|
220
|
-
headerSearchInput: {
|
|
221
|
-
flex: 1,
|
|
222
|
-
color: _sharedUi.night.color.text,
|
|
223
|
-
fontSize: 13,
|
|
224
|
-
fontFamily: "monospace",
|
|
225
|
-
padding: 0,
|
|
226
|
-
margin: 0,
|
|
227
|
-
minHeight: 18
|
|
228
|
-
},
|
|
229
|
-
headerSearchClear: {
|
|
230
|
-
padding: 2
|
|
231
|
-
},
|
|
232
184
|
headerActionButton: {
|
|
233
185
|
padding: 6,
|
|
234
186
|
borderRadius: 4
|
|
@@ -172,7 +172,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
172
172
|
paddingHorizontal: 12
|
|
173
173
|
},
|
|
174
174
|
mutationKey: {
|
|
175
|
-
fontFamily:
|
|
175
|
+
fontFamily: _sharedUi.monoFont,
|
|
176
176
|
fontSize: 12,
|
|
177
177
|
color: _sharedUi.night.color.text,
|
|
178
178
|
lineHeight: 16
|
|
@@ -185,6 +185,6 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
185
185
|
bottomRightText: {
|
|
186
186
|
fontSize: 9,
|
|
187
187
|
color: _sharedUi.night.color.textTertiary,
|
|
188
|
-
fontFamily:
|
|
188
|
+
fontFamily: _sharedUi.monoFont
|
|
189
189
|
}
|
|
190
190
|
});
|
|
@@ -78,7 +78,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
78
78
|
borderBottomColor: _sharedUi.night.color.accent + "33",
|
|
79
79
|
letterSpacing: 0.5,
|
|
80
80
|
textTransform: "uppercase",
|
|
81
|
-
fontFamily:
|
|
81
|
+
fontFamily: _sharedUi.monoFont
|
|
82
82
|
},
|
|
83
83
|
row: {
|
|
84
84
|
flexDirection: "row",
|
|
@@ -96,7 +96,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
96
96
|
flexWrap: {
|
|
97
97
|
fontSize: 12,
|
|
98
98
|
color: _sharedUi.night.color.text,
|
|
99
|
-
fontFamily:
|
|
99
|
+
fontFamily: _sharedUi.monoFont,
|
|
100
100
|
lineHeight: 18,
|
|
101
101
|
flexShrink: 1,
|
|
102
102
|
backgroundColor: _sharedUi.night.color.accent + "15",
|
|
@@ -112,13 +112,13 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
112
112
|
fontWeight: "600",
|
|
113
113
|
letterSpacing: 0.5,
|
|
114
114
|
textTransform: "uppercase",
|
|
115
|
-
fontFamily:
|
|
115
|
+
fontFamily: _sharedUi.monoFont
|
|
116
116
|
},
|
|
117
117
|
valueText: {
|
|
118
118
|
fontSize: 12,
|
|
119
119
|
color: _sharedUi.night.color.text,
|
|
120
120
|
fontWeight: "500",
|
|
121
121
|
fontVariant: ["tabular-nums"],
|
|
122
|
-
fontFamily:
|
|
122
|
+
fontFamily: _sharedUi.monoFont
|
|
123
123
|
}
|
|
124
124
|
});
|
|
@@ -102,7 +102,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
102
102
|
borderTopRightRadius: 8,
|
|
103
103
|
borderBottomWidth: 1,
|
|
104
104
|
borderBottomColor: _sharedUi.night.color.accent + "33",
|
|
105
|
-
fontFamily:
|
|
105
|
+
fontFamily: _sharedUi.monoFont,
|
|
106
106
|
letterSpacing: 1,
|
|
107
107
|
textTransform: "uppercase"
|
|
108
108
|
},
|
|
@@ -4,10 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _sharedUi = require("@buoy-gg/shared-ui");
|
|
8
8
|
var _QueryStatus = _interopRequireDefault(require("./QueryStatus"));
|
|
9
9
|
var _useQueryStatusCounts = require("../../hooks/useQueryStatusCounts");
|
|
10
|
-
var _react = require("react");
|
|
11
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
12
|
/**
|
|
@@ -25,96 +24,61 @@ const MutationStatusCount = ({
|
|
|
25
24
|
error,
|
|
26
25
|
paused
|
|
27
26
|
} = (0, _useQueryStatusCounts.useMutationStatusCounts)();
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
const {
|
|
28
|
+
scrollProps,
|
|
29
|
+
onTouchStart: handleTouchStart,
|
|
30
|
+
isTap
|
|
31
|
+
} = (0, _sharedUi.useChipTap)();
|
|
31
32
|
const handleFilterClick = (filter, event) => {
|
|
32
|
-
if (event)
|
|
33
|
-
const dx = Math.abs(event.nativeEvent.pageX - touchStartX.current);
|
|
34
|
-
const dy = Math.abs(event.nativeEvent.pageY - touchStartY.current);
|
|
35
|
-
if (dx > 5 || dy > 5 || isScrolling) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
33
|
+
if (!isTap(event)) return;
|
|
39
34
|
if (onFilterChange) {
|
|
40
35
|
onFilterChange(activeFilter === filter ? null : filter);
|
|
41
36
|
}
|
|
42
37
|
};
|
|
43
|
-
|
|
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
|
-
showLabel: true,
|
|
88
|
-
size: size
|
|
89
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_QueryStatus.default, {
|
|
90
|
-
label: "Paused",
|
|
91
|
-
color: "purple",
|
|
92
|
-
count: paused,
|
|
93
|
-
isActive: activeFilter === "paused",
|
|
94
|
-
onPress: event => handleFilterClick("paused", event),
|
|
95
|
-
onTouchStart: handleTouchStart,
|
|
96
|
-
testID: "buoy-rq-mstatus-paused",
|
|
97
|
-
showLabel: true,
|
|
98
|
-
size: size
|
|
99
|
-
})]
|
|
100
|
-
})
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_sharedUi.ChipStrip, {
|
|
39
|
+
scrollProps: scrollProps,
|
|
40
|
+
sentryLabel: "ignore devtools mutation status count scroll",
|
|
41
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_QueryStatus.default, {
|
|
42
|
+
label: "Pending",
|
|
43
|
+
color: "blue",
|
|
44
|
+
count: pending,
|
|
45
|
+
isActive: activeFilter === "pending",
|
|
46
|
+
onPress: event => handleFilterClick("pending", event),
|
|
47
|
+
onTouchStart: handleTouchStart,
|
|
48
|
+
testID: "buoy-rq-mstatus-pending",
|
|
49
|
+
showLabel: true,
|
|
50
|
+
size: size
|
|
51
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_QueryStatus.default, {
|
|
52
|
+
label: "Success",
|
|
53
|
+
color: "green",
|
|
54
|
+
count: success,
|
|
55
|
+
isActive: activeFilter === "success",
|
|
56
|
+
onPress: event => handleFilterClick("success", event),
|
|
57
|
+
onTouchStart: handleTouchStart,
|
|
58
|
+
testID: "buoy-rq-mstatus-success",
|
|
59
|
+
showLabel: true,
|
|
60
|
+
size: size
|
|
61
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_QueryStatus.default, {
|
|
62
|
+
label: "Error",
|
|
63
|
+
color: "red",
|
|
64
|
+
count: error,
|
|
65
|
+
isActive: activeFilter === "error",
|
|
66
|
+
onPress: event => handleFilterClick("error", event),
|
|
67
|
+
onTouchStart: handleTouchStart,
|
|
68
|
+
testID: "buoy-rq-mstatus-error",
|
|
69
|
+
showLabel: true,
|
|
70
|
+
size: size
|
|
71
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_QueryStatus.default, {
|
|
72
|
+
label: "Paused",
|
|
73
|
+
color: "purple",
|
|
74
|
+
count: paused,
|
|
75
|
+
isActive: activeFilter === "paused",
|
|
76
|
+
onPress: event => handleFilterClick("paused", event),
|
|
77
|
+
onTouchStart: handleTouchStart,
|
|
78
|
+
testID: "buoy-rq-mstatus-paused",
|
|
79
|
+
showLabel: true,
|
|
80
|
+
size: size
|
|
81
|
+
})]
|
|
101
82
|
});
|
|
102
83
|
};
|
|
103
|
-
const styles = _reactNative.StyleSheet.create({
|
|
104
|
-
mutationStatusContainer: {
|
|
105
|
-
flex: 1,
|
|
106
|
-
minWidth: 0
|
|
107
|
-
},
|
|
108
|
-
scrollView: {
|
|
109
|
-
flex: 1
|
|
110
|
-
},
|
|
111
|
-
scrollContent: {
|
|
112
|
-
flexDirection: "row",
|
|
113
|
-
alignItems: "center",
|
|
114
|
-
gap: 8,
|
|
115
|
-
paddingHorizontal: 4,
|
|
116
|
-
paddingVertical: 4,
|
|
117
|
-
flexGrow: 1
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
84
|
var _default = exports.default = MutationStatusCount;
|
|
@@ -131,17 +131,8 @@ function QueryBrowser({
|
|
|
131
131
|
isSelected: selectedQuery?.queryHash === query.queryHash,
|
|
132
132
|
onSelect: handleQuerySelect
|
|
133
133
|
}),
|
|
134
|
-
showsVerticalScrollIndicator: true
|
|
135
|
-
|
|
136
|
-
// screen, so e2e bundles (Metro with EXPO_PUBLIC_E2E=1) turn clipping
|
|
137
|
-
// off. Inlined at bundle time; a non-inlining bundler keeps prod
|
|
138
|
-
// behavior.
|
|
139
|
-
,
|
|
140
|
-
removeClippedSubviews: !(typeof process !== "undefined" && process.env?.EXPO_PUBLIC_E2E),
|
|
141
|
-
initialNumToRender: 12,
|
|
142
|
-
maxToRenderPerBatch: 8,
|
|
143
|
-
windowSize: 5,
|
|
144
|
-
updateCellsBatchingPeriod: 50
|
|
134
|
+
showsVerticalScrollIndicator: true,
|
|
135
|
+
..._sharedUi.EVENT_LIST_PRESET
|
|
145
136
|
})
|
|
146
137
|
);
|
|
147
138
|
}
|
|
@@ -184,7 +175,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
184
175
|
color: _sharedUi.night.color.textTertiary,
|
|
185
176
|
fontSize: 14,
|
|
186
177
|
textAlign: "center",
|
|
187
|
-
fontFamily:
|
|
178
|
+
fontFamily: _sharedUi.monoFont,
|
|
188
179
|
letterSpacing: 0.5
|
|
189
180
|
}
|
|
190
181
|
});
|
|
@@ -95,7 +95,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
95
95
|
borderBottomColor: _sharedUi.night.color.accent + "33",
|
|
96
96
|
letterSpacing: 0.5,
|
|
97
97
|
textTransform: "uppercase",
|
|
98
|
-
fontFamily:
|
|
98
|
+
fontFamily: _sharedUi.monoFont
|
|
99
99
|
},
|
|
100
100
|
row: {
|
|
101
101
|
flexDirection: "row",
|
|
@@ -113,7 +113,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
113
113
|
queryKeyText: {
|
|
114
114
|
fontSize: 12,
|
|
115
115
|
color: _sharedUi.night.color.text,
|
|
116
|
-
fontFamily:
|
|
116
|
+
fontFamily: _sharedUi.monoFont,
|
|
117
117
|
lineHeight: 18,
|
|
118
118
|
flexShrink: 1,
|
|
119
119
|
backgroundColor: _sharedUi.night.color.accent + "15",
|
|
@@ -129,13 +129,13 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
129
129
|
fontWeight: "600",
|
|
130
130
|
letterSpacing: 0.5,
|
|
131
131
|
textTransform: "uppercase",
|
|
132
|
-
fontFamily:
|
|
132
|
+
fontFamily: _sharedUi.monoFont
|
|
133
133
|
},
|
|
134
134
|
valueText: {
|
|
135
135
|
fontSize: 12,
|
|
136
136
|
color: _sharedUi.night.color.text,
|
|
137
137
|
fontWeight: "500",
|
|
138
138
|
fontVariant: ["tabular-nums"],
|
|
139
|
-
fontFamily:
|
|
139
|
+
fontFamily: _sharedUi.monoFont
|
|
140
140
|
}
|
|
141
141
|
});
|