@buoy-gg/react-query 7.0.7 → 7.0.8
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/package.json +3 -3
- package/lib/commonjs/react-query/ReactQueryDevTools.js +0 -335
- package/lib/commonjs/react-query/components/index.js +0 -253
- package/lib/commonjs/react-query/hooks/index.js +0 -96
- package/lib/commonjs/react-query/index.js +0 -27
- package/lib/commonjs/react-query/stores/index.js +0 -48
- package/lib/commonjs/react-query/types/index.js +0 -16
- package/lib/commonjs/react-query/utils/formatRelativeTime.js +0 -29
- package/lib/commonjs/react-query/utils/index.js +0 -170
- package/lib/module/react-query/ReactQueryDevTools.js +0 -68
- package/lib/module/react-query/components/index.js +0 -29
- package/lib/module/react-query/hooks/index.js +0 -23
- package/lib/module/react-query/index.js +0 -4
- package/lib/module/react-query/stores/index.js +0 -3
- package/lib/module/react-query/types/index.js +0 -3
- package/lib/module/react-query/utils/formatRelativeTime.js +0 -25
- package/lib/module/react-query/utils/index.js +0 -27
- package/lib/typescript/react-query/ReactQueryDevTools.d.ts +0 -45
- package/lib/typescript/react-query/ReactQueryDevTools.d.ts.map +0 -1
- package/lib/typescript/react-query/components/index.d.ts +0 -21
- package/lib/typescript/react-query/components/index.d.ts.map +0 -1
- package/lib/typescript/react-query/hooks/index.d.ts +0 -13
- package/lib/typescript/react-query/hooks/index.d.ts.map +0 -1
- package/lib/typescript/react-query/index.d.ts +0 -3
- package/lib/typescript/react-query/index.d.ts.map +0 -1
- package/lib/typescript/react-query/stores/index.d.ts +0 -2
- package/lib/typescript/react-query/stores/index.d.ts.map +0 -1
- package/lib/typescript/react-query/types/index.d.ts +0 -2
- package/lib/typescript/react-query/types/index.d.ts.map +0 -1
- package/lib/typescript/react-query/utils/formatRelativeTime.d.ts +0 -7
- package/lib/typescript/react-query/utils/formatRelativeTime.d.ts.map +0 -1
- package/lib/typescript/react-query/utils/index.d.ts +0 -17
- package/lib/typescript/react-query/utils/index.d.ts.map +0 -1
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _ReactQueryDevTools = require("./ReactQueryDevTools");
|
|
7
|
-
Object.keys(_ReactQueryDevTools).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _ReactQueryDevTools[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _ReactQueryDevTools[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
var _stores = require("./stores");
|
|
18
|
-
Object.keys(_stores).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _stores[key]) return;
|
|
21
|
-
Object.defineProperty(exports, key, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return _stores[key];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "clearReactQueryEvents", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _reactQueryEventStore.clearReactQueryEvents;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "disconnectQueryClient", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _reactQueryEventStore.disconnectQueryClient;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "getReactQueryEvents", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _reactQueryEventStore.getReactQueryEvents;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "isReactQueryConnected", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return _reactQueryEventStore.isReactQueryConnected;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "reactQueryEventStore", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return _reactQueryEventStore.reactQueryEventStore;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "setQueryClient", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return _reactQueryEventStore.setQueryClient;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "subscribeToReactQueryEvents", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () {
|
|
45
|
-
return _reactQueryEventStore.subscribeToReactQueryEvents;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
var _reactQueryEventStore = require("./reactQueryEventStore");
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _types = require("./types");
|
|
7
|
-
Object.keys(_types).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _types[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.formatRelativeTime = formatRelativeTime;
|
|
7
|
-
/**
|
|
8
|
-
* Formats a timestamp as a relative time string (e.g., "10s ago", "5m ago", "2h ago")
|
|
9
|
-
* @param timestamp - Unix timestamp in milliseconds
|
|
10
|
-
* @returns Formatted relative time string
|
|
11
|
-
*/
|
|
12
|
-
function formatRelativeTime(timestamp) {
|
|
13
|
-
const now = Date.now();
|
|
14
|
-
const diff = now - timestamp;
|
|
15
|
-
const seconds = Math.floor(diff / 1000);
|
|
16
|
-
if (seconds < 60) {
|
|
17
|
-
return `${seconds}s ago`;
|
|
18
|
-
}
|
|
19
|
-
const minutes = Math.floor(seconds / 60);
|
|
20
|
-
if (minutes < 60) {
|
|
21
|
-
return `${minutes}m ago`;
|
|
22
|
-
}
|
|
23
|
-
const hours = Math.floor(minutes / 60);
|
|
24
|
-
if (hours < 24) {
|
|
25
|
-
return `${hours}h ago`;
|
|
26
|
-
}
|
|
27
|
-
const days = Math.floor(hours / 24);
|
|
28
|
-
return `${days}d ago`;
|
|
29
|
-
}
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _exportNames = {
|
|
7
|
-
invalidate: true,
|
|
8
|
-
refetch: true,
|
|
9
|
-
reset: true,
|
|
10
|
-
remove: true,
|
|
11
|
-
deleteItem: true,
|
|
12
|
-
triggerError: true,
|
|
13
|
-
triggerLoading: true,
|
|
14
|
-
safeStringify: true,
|
|
15
|
-
displayValue: true,
|
|
16
|
-
parseDisplayValue: true
|
|
17
|
-
};
|
|
18
|
-
Object.defineProperty(exports, "deleteItem", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _deleteItem.default;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "displayValue", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return _sharedUi.displayValue;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "invalidate", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return _invalidate.default;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "parseDisplayValue", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return _sharedUi.parseDisplayValue;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "refetch", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () {
|
|
45
|
-
return _refetch.default;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "remove", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () {
|
|
51
|
-
return _remove.default;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "reset", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _reset.default;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "safeStringify", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function () {
|
|
63
|
-
return _sharedUi.safeStringify;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "triggerError", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function () {
|
|
69
|
-
return _triggerError.default;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "triggerLoading", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function () {
|
|
75
|
-
return _triggerLoading.default;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
var _invalidate = _interopRequireDefault(require("./actions/invalidate"));
|
|
79
|
-
var _refetch = _interopRequireDefault(require("./actions/refetch"));
|
|
80
|
-
var _reset = _interopRequireDefault(require("./actions/reset"));
|
|
81
|
-
var _remove = _interopRequireDefault(require("./actions/remove"));
|
|
82
|
-
var _deleteItem = _interopRequireDefault(require("./actions/deleteItem"));
|
|
83
|
-
var _triggerError = _interopRequireDefault(require("./actions/triggerError"));
|
|
84
|
-
var _triggerLoading = _interopRequireDefault(require("./actions/triggerLoading"));
|
|
85
|
-
var _getQueryStatusLabel = require("./getQueryStatusLabel");
|
|
86
|
-
Object.keys(_getQueryStatusLabel).forEach(function (key) {
|
|
87
|
-
if (key === "default" || key === "__esModule") return;
|
|
88
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
89
|
-
if (key in exports && exports[key] === _getQueryStatusLabel[key]) return;
|
|
90
|
-
Object.defineProperty(exports, key, {
|
|
91
|
-
enumerable: true,
|
|
92
|
-
get: function () {
|
|
93
|
-
return _getQueryStatusLabel[key];
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
var _getQueryStatusColor = require("./getQueryStatusColor");
|
|
98
|
-
Object.keys(_getQueryStatusColor).forEach(function (key) {
|
|
99
|
-
if (key === "default" || key === "__esModule") return;
|
|
100
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
101
|
-
if (key in exports && exports[key] === _getQueryStatusColor[key]) return;
|
|
102
|
-
Object.defineProperty(exports, key, {
|
|
103
|
-
enumerable: true,
|
|
104
|
-
get: function () {
|
|
105
|
-
return _getQueryStatusColor[key];
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
var _getStorageQueryCounts = require("./getStorageQueryCounts");
|
|
110
|
-
Object.keys(_getStorageQueryCounts).forEach(function (key) {
|
|
111
|
-
if (key === "default" || key === "__esModule") return;
|
|
112
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
113
|
-
if (key in exports && exports[key] === _getStorageQueryCounts[key]) return;
|
|
114
|
-
Object.defineProperty(exports, key, {
|
|
115
|
-
enumerable: true,
|
|
116
|
-
get: function () {
|
|
117
|
-
return _getStorageQueryCounts[key];
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
var _storageQueryUtils = require("./storageQueryUtils");
|
|
122
|
-
Object.keys(_storageQueryUtils).forEach(function (key) {
|
|
123
|
-
if (key === "default" || key === "__esModule") return;
|
|
124
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
125
|
-
if (key in exports && exports[key] === _storageQueryUtils[key]) return;
|
|
126
|
-
Object.defineProperty(exports, key, {
|
|
127
|
-
enumerable: true,
|
|
128
|
-
get: function () {
|
|
129
|
-
return _storageQueryUtils[key];
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
});
|
|
133
|
-
var _modalStorageOperations = require("./modalStorageOperations");
|
|
134
|
-
Object.keys(_modalStorageOperations).forEach(function (key) {
|
|
135
|
-
if (key === "default" || key === "__esModule") return;
|
|
136
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
137
|
-
if (key in exports && exports[key] === _modalStorageOperations[key]) return;
|
|
138
|
-
Object.defineProperty(exports, key, {
|
|
139
|
-
enumerable: true,
|
|
140
|
-
get: function () {
|
|
141
|
-
return _modalStorageOperations[key];
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
var _updateNestedDataByPath = require("./updateNestedDataByPath");
|
|
146
|
-
Object.keys(_updateNestedDataByPath).forEach(function (key) {
|
|
147
|
-
if (key === "default" || key === "__esModule") return;
|
|
148
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
149
|
-
if (key in exports && exports[key] === _updateNestedDataByPath[key]) return;
|
|
150
|
-
Object.defineProperty(exports, key, {
|
|
151
|
-
enumerable: true,
|
|
152
|
-
get: function () {
|
|
153
|
-
return _updateNestedDataByPath[key];
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
var _deleteNestedDataByPath = require("./deleteNestedDataByPath");
|
|
158
|
-
Object.keys(_deleteNestedDataByPath).forEach(function (key) {
|
|
159
|
-
if (key === "default" || key === "__esModule") return;
|
|
160
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
161
|
-
if (key in exports && exports[key] === _deleteNestedDataByPath[key]) return;
|
|
162
|
-
Object.defineProperty(exports, key, {
|
|
163
|
-
enumerable: true,
|
|
164
|
-
get: function () {
|
|
165
|
-
return _deleteNestedDataByPath[key];
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
});
|
|
169
|
-
var _sharedUi = require("@buoy-gg/shared-ui");
|
|
170
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Main entry point for the React Query Dev Tools feature
|
|
5
|
-
* This component orchestrates all React Query dev tools functionality
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// Re-export main modal component
|
|
9
|
-
export { ReactQueryModal } from "./components/modals/ReactQueryModal";
|
|
10
|
-
export { ReactQueryModalHeader } from "./components/modals/ReactQueryModalHeader";
|
|
11
|
-
|
|
12
|
-
// Re-export individual modals
|
|
13
|
-
export { QueryBrowserModal } from "./components/modals/QueryBrowserModal";
|
|
14
|
-
export { MutationBrowserModal } from "./components/modals/MutationBrowserModal";
|
|
15
|
-
export { MutationEditorModal } from "./components/modals/MutationEditorModal";
|
|
16
|
-
export { DataEditorModal } from "./components/modals/DataEditorModal";
|
|
17
|
-
|
|
18
|
-
// Re-export footer components
|
|
19
|
-
export { QueryBrowserFooter } from "./components/modals/QueryBrowserFooter";
|
|
20
|
-
export { MutationBrowserFooter } from "./components/modals/MutationBrowserFooter";
|
|
21
|
-
export { SwipeIndicator } from "./components/modals/SwipeIndicator";
|
|
22
|
-
|
|
23
|
-
// Re-export query browser components
|
|
24
|
-
export { Explorer } from "./components/query-browser";
|
|
25
|
-
export { QueryBrowser } from "./components/query-browser";
|
|
26
|
-
export { QueryDetails } from "./components/query-browser";
|
|
27
|
-
export { QueryInformation } from "./components/query-browser";
|
|
28
|
-
export { QueryActions } from "./components/query-browser";
|
|
29
|
-
export { QueryRow } from "./components/query-browser";
|
|
30
|
-
export { QueryStatus } from "./components/query-browser";
|
|
31
|
-
export { QueryStatusCount } from "./components/query-browser";
|
|
32
|
-
export { QueryDetailsChip } from "./components/query-browser";
|
|
33
|
-
|
|
34
|
-
// Re-export mutation components
|
|
35
|
-
export { MutationsList } from "./components/query-browser";
|
|
36
|
-
export { MutationDetails } from "./components/query-browser";
|
|
37
|
-
export { MutationInformation } from "./components/query-browser";
|
|
38
|
-
export { MutationButton } from "./components/query-browser";
|
|
39
|
-
export { MutationStatusCount } from "./components/query-browser";
|
|
40
|
-
export { MutationDetailsChips } from "./components/query-browser";
|
|
41
|
-
|
|
42
|
-
// Re-export action components
|
|
43
|
-
export { ActionButton } from "./components/query-browser";
|
|
44
|
-
export { ClearCacheButton } from "./components/query-browser";
|
|
45
|
-
export { NetworkToggleButton } from "./components/query-browser";
|
|
46
|
-
export { StorageStatusCount } from "./components/query-browser";
|
|
47
|
-
|
|
48
|
-
// Re-export shared components
|
|
49
|
-
export { VirtualizedDataExplorer, DataViewer, TypeLegend } from "@buoy-gg/shared-ui/dataViewer";
|
|
50
|
-
|
|
51
|
-
// Re-export mode components
|
|
52
|
-
export { QueryBrowserMode } from "./components/QueryBrowserMode";
|
|
53
|
-
export { MutationBrowserMode } from "./components/MutationBrowserMode";
|
|
54
|
-
export { MutationEditorMode } from "./components/MutationEditorMode";
|
|
55
|
-
export { DataEditorMode } from "./components/DataEditorMode";
|
|
56
|
-
export { QuerySelector } from "./components/QuerySelector";
|
|
57
|
-
export { QueryDebugInfo } from "./components/QueryDebugInfo";
|
|
58
|
-
export { WifiToggle } from "./components/WifiToggle";
|
|
59
|
-
export { ReactQuerySection } from "./components/ReactQuerySection";
|
|
60
|
-
|
|
61
|
-
// Re-export hooks
|
|
62
|
-
export * from "./hooks";
|
|
63
|
-
|
|
64
|
-
// Re-export utilities
|
|
65
|
-
export * from "./utils";
|
|
66
|
-
|
|
67
|
-
// Re-export types
|
|
68
|
-
export * from "./types";
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
// Modal components
|
|
4
|
-
export * from "./modals/ReactQueryModal";
|
|
5
|
-
export * from "./modals/ReactQueryModalHeader";
|
|
6
|
-
export * from "./modals/QueryBrowserModal";
|
|
7
|
-
export * from "./modals/MutationBrowserModal";
|
|
8
|
-
export * from "./modals/MutationEditorModal";
|
|
9
|
-
export * from "./modals/DataEditorModal";
|
|
10
|
-
export * from "./modals/QueryBrowserFooter";
|
|
11
|
-
export * from "./modals/MutationBrowserFooter";
|
|
12
|
-
export * from "./modals/SwipeIndicator";
|
|
13
|
-
|
|
14
|
-
// Query browser components (via barrel that maps defaults to named)
|
|
15
|
-
export * from "./query-browser";
|
|
16
|
-
|
|
17
|
-
// Shared components
|
|
18
|
-
export { VirtualizedDataExplorer, DataViewer, TypeLegend } from "@buoy-gg/shared-ui/dataViewer";
|
|
19
|
-
|
|
20
|
-
// Mode components
|
|
21
|
-
export * from "./QueryBrowserMode";
|
|
22
|
-
export * from "./MutationBrowserMode";
|
|
23
|
-
export * from "./MutationEditorMode";
|
|
24
|
-
export * from "./DataEditorMode";
|
|
25
|
-
export * from "./QuerySelector";
|
|
26
|
-
export * from "./QueryDebugInfo";
|
|
27
|
-
export * from "./WifiToggle";
|
|
28
|
-
export * from "./ReactQuerySection";
|
|
29
|
-
export { ReactQueryDevToolsModal } from "./ReactQueryDevToolsModal";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
// Query and Mutation hooks
|
|
4
|
-
export { default as useAllQueries } from "./useAllQueries";
|
|
5
|
-
export { default as useAllMutations } from "./useAllMutations";
|
|
6
|
-
export { useGetQueryByQueryKey, useGetQueryByQueryKeyWithVersion } from "./useSelectedQuery";
|
|
7
|
-
export { useGetMutationById } from "./useSelectedMutation";
|
|
8
|
-
export { default as useQueryStatusCounts } from "./useQueryStatusCounts";
|
|
9
|
-
export { useStorageQueryCounts } from "./useStorageQueryCounts";
|
|
10
|
-
|
|
11
|
-
// React Query state hooks
|
|
12
|
-
export { useReactQueryState } from "./useReactQueryState";
|
|
13
|
-
|
|
14
|
-
// Action button hooks
|
|
15
|
-
export { useActionButtons } from "./useActionButtons";
|
|
16
|
-
export { useMutationActionButtons } from "./useMutationActionButtons";
|
|
17
|
-
|
|
18
|
-
// Modal management hooks
|
|
19
|
-
export { useModalManager } from "./useModalManager";
|
|
20
|
-
export { useModalPersistence } from "./useModalPersistence";
|
|
21
|
-
|
|
22
|
-
// WiFi state hook
|
|
23
|
-
export { useWifiState } from "./useWifiState";
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Formats a timestamp as a relative time string (e.g., "10s ago", "5m ago", "2h ago")
|
|
5
|
-
* @param timestamp - Unix timestamp in milliseconds
|
|
6
|
-
* @returns Formatted relative time string
|
|
7
|
-
*/
|
|
8
|
-
export function formatRelativeTime(timestamp) {
|
|
9
|
-
const now = Date.now();
|
|
10
|
-
const diff = now - timestamp;
|
|
11
|
-
const seconds = Math.floor(diff / 1000);
|
|
12
|
-
if (seconds < 60) {
|
|
13
|
-
return `${seconds}s ago`;
|
|
14
|
-
}
|
|
15
|
-
const minutes = Math.floor(seconds / 60);
|
|
16
|
-
if (minutes < 60) {
|
|
17
|
-
return `${minutes}m ago`;
|
|
18
|
-
}
|
|
19
|
-
const hours = Math.floor(minutes / 60);
|
|
20
|
-
if (hours < 24) {
|
|
21
|
-
return `${hours}h ago`;
|
|
22
|
-
}
|
|
23
|
-
const days = Math.floor(hours / 24);
|
|
24
|
-
return `${days}d ago`;
|
|
25
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
// Action utilities (map default exports to named for consistency)
|
|
4
|
-
export { default as invalidate } from "./actions/invalidate";
|
|
5
|
-
export { default as refetch } from "./actions/refetch";
|
|
6
|
-
export { default as reset } from "./actions/reset";
|
|
7
|
-
export { default as remove } from "./actions/remove";
|
|
8
|
-
export { default as deleteItem } from "./actions/deleteItem";
|
|
9
|
-
export { default as triggerError } from "./actions/triggerError";
|
|
10
|
-
export { default as triggerLoading } from "./actions/triggerLoading";
|
|
11
|
-
|
|
12
|
-
// Query status utilities
|
|
13
|
-
export * from "./getQueryStatusLabel";
|
|
14
|
-
export * from "./getQueryStatusColor";
|
|
15
|
-
|
|
16
|
-
// Storage utilities
|
|
17
|
-
export * from "./getStorageQueryCounts";
|
|
18
|
-
export * from "./storageQueryUtils";
|
|
19
|
-
export * from "./modalStorageOperations";
|
|
20
|
-
|
|
21
|
-
// Data manipulation utilities
|
|
22
|
-
export * from "./updateNestedDataByPath";
|
|
23
|
-
export * from "./deleteNestedDataByPath";
|
|
24
|
-
export { safeStringify } from "@buoy-gg/shared-ui";
|
|
25
|
-
|
|
26
|
-
// Display utilities
|
|
27
|
-
export { displayValue, parseDisplayValue } from "@buoy-gg/shared-ui";
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Main entry point for the React Query Dev Tools feature
|
|
3
|
-
* This component orchestrates all React Query dev tools functionality
|
|
4
|
-
*/
|
|
5
|
-
export { ReactQueryModal } from "./components/modals/ReactQueryModal";
|
|
6
|
-
export { ReactQueryModalHeader } from "./components/modals/ReactQueryModalHeader";
|
|
7
|
-
export { QueryBrowserModal } from "./components/modals/QueryBrowserModal";
|
|
8
|
-
export { MutationBrowserModal } from "./components/modals/MutationBrowserModal";
|
|
9
|
-
export { MutationEditorModal } from "./components/modals/MutationEditorModal";
|
|
10
|
-
export { DataEditorModal } from "./components/modals/DataEditorModal";
|
|
11
|
-
export { QueryBrowserFooter } from "./components/modals/QueryBrowserFooter";
|
|
12
|
-
export { MutationBrowserFooter } from "./components/modals/MutationBrowserFooter";
|
|
13
|
-
export { SwipeIndicator } from "./components/modals/SwipeIndicator";
|
|
14
|
-
export { Explorer } from "./components/query-browser";
|
|
15
|
-
export { QueryBrowser } from "./components/query-browser";
|
|
16
|
-
export { QueryDetails } from "./components/query-browser";
|
|
17
|
-
export { QueryInformation } from "./components/query-browser";
|
|
18
|
-
export { QueryActions } from "./components/query-browser";
|
|
19
|
-
export { QueryRow } from "./components/query-browser";
|
|
20
|
-
export { QueryStatus } from "./components/query-browser";
|
|
21
|
-
export { QueryStatusCount } from "./components/query-browser";
|
|
22
|
-
export { QueryDetailsChip } from "./components/query-browser";
|
|
23
|
-
export { MutationsList } from "./components/query-browser";
|
|
24
|
-
export { MutationDetails } from "./components/query-browser";
|
|
25
|
-
export { MutationInformation } from "./components/query-browser";
|
|
26
|
-
export { MutationButton } from "./components/query-browser";
|
|
27
|
-
export { MutationStatusCount } from "./components/query-browser";
|
|
28
|
-
export { MutationDetailsChips } from "./components/query-browser";
|
|
29
|
-
export { ActionButton } from "./components/query-browser";
|
|
30
|
-
export { ClearCacheButton } from "./components/query-browser";
|
|
31
|
-
export { NetworkToggleButton } from "./components/query-browser";
|
|
32
|
-
export { StorageStatusCount } from "./components/query-browser";
|
|
33
|
-
export { VirtualizedDataExplorer, DataViewer, TypeLegend, } from "@buoy-gg/shared-ui/dataViewer";
|
|
34
|
-
export { QueryBrowserMode } from "./components/QueryBrowserMode";
|
|
35
|
-
export { MutationBrowserMode } from "./components/MutationBrowserMode";
|
|
36
|
-
export { MutationEditorMode } from "./components/MutationEditorMode";
|
|
37
|
-
export { DataEditorMode } from "./components/DataEditorMode";
|
|
38
|
-
export { QuerySelector } from "./components/QuerySelector";
|
|
39
|
-
export { QueryDebugInfo } from "./components/QueryDebugInfo";
|
|
40
|
-
export { WifiToggle } from "./components/WifiToggle";
|
|
41
|
-
export { ReactQuerySection } from "./components/ReactQuerySection";
|
|
42
|
-
export * from "./hooks";
|
|
43
|
-
export * from "./utils";
|
|
44
|
-
export * from "./types";
|
|
45
|
-
//# sourceMappingURL=ReactQueryDevTools.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactQueryDevTools.d.ts","sourceRoot":"","sources":["../../../src/react-query/ReactQueryDevTools.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAGlF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAGtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAGpE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG9D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAGlE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhE,OAAO,EACL,uBAAuB,EACvB,UAAU,EACV,UAAU,GACX,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAGnE,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export * from "./modals/ReactQueryModal";
|
|
2
|
-
export * from "./modals/ReactQueryModalHeader";
|
|
3
|
-
export * from "./modals/QueryBrowserModal";
|
|
4
|
-
export * from "./modals/MutationBrowserModal";
|
|
5
|
-
export * from "./modals/MutationEditorModal";
|
|
6
|
-
export * from "./modals/DataEditorModal";
|
|
7
|
-
export * from "./modals/QueryBrowserFooter";
|
|
8
|
-
export * from "./modals/MutationBrowserFooter";
|
|
9
|
-
export * from "./modals/SwipeIndicator";
|
|
10
|
-
export * from "./query-browser";
|
|
11
|
-
export { VirtualizedDataExplorer, DataViewer, TypeLegend, } from "@buoy-gg/shared-ui/dataViewer";
|
|
12
|
-
export * from "./QueryBrowserMode";
|
|
13
|
-
export * from "./MutationBrowserMode";
|
|
14
|
-
export * from "./MutationEditorMode";
|
|
15
|
-
export * from "./DataEditorMode";
|
|
16
|
-
export * from "./QuerySelector";
|
|
17
|
-
export * from "./QueryDebugInfo";
|
|
18
|
-
export * from "./WifiToggle";
|
|
19
|
-
export * from "./ReactQuerySection";
|
|
20
|
-
export { ReactQueryDevToolsModal } from "./ReactQueryDevToolsModal";
|
|
21
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react-query/components/index.ts"],"names":[],"mappings":"AACA,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AAGxC,cAAc,iBAAiB,CAAC;AAGhC,OAAO,EACL,uBAAuB,EACvB,UAAU,EACV,UAAU,GACX,MAAM,+BAA+B,CAAC;AAGvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { default as useAllQueries } from "./useAllQueries";
|
|
2
|
-
export { default as useAllMutations } from "./useAllMutations";
|
|
3
|
-
export { useGetQueryByQueryKey, useGetQueryByQueryKeyWithVersion } from "./useSelectedQuery";
|
|
4
|
-
export { useGetMutationById } from "./useSelectedMutation";
|
|
5
|
-
export { default as useQueryStatusCounts } from "./useQueryStatusCounts";
|
|
6
|
-
export { useStorageQueryCounts } from "./useStorageQueryCounts";
|
|
7
|
-
export { useReactQueryState } from "./useReactQueryState";
|
|
8
|
-
export { useActionButtons } from "./useActionButtons";
|
|
9
|
-
export { useMutationActionButtons } from "./useMutationActionButtons";
|
|
10
|
-
export { useModalManager } from "./useModalManager";
|
|
11
|
-
export { useModalPersistence } from "./useModalPersistence";
|
|
12
|
-
export { useWifiState } from "./useWifiState";
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react-query/hooks/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,gCAAgC,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAGtE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react-query/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { reactQueryEventStore, setQueryClient, disconnectQueryClient, getReactQueryEvents, subscribeToReactQueryEvents, clearReactQueryEvents, isReactQueryConnected, type ReactQueryEvent, type ReactQueryEventType, } from "./reactQueryEventStore";
|
|
2
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react-query/stores/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACnB,2BAA2B,EAC3B,qBAAqB,EACrB,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,GACzB,MAAM,wBAAwB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react-query/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Formats a timestamp as a relative time string (e.g., "10s ago", "5m ago", "2h ago")
|
|
3
|
-
* @param timestamp - Unix timestamp in milliseconds
|
|
4
|
-
* @returns Formatted relative time string
|
|
5
|
-
*/
|
|
6
|
-
export declare function formatRelativeTime(timestamp: number): string;
|
|
7
|
-
//# sourceMappingURL=formatRelativeTime.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formatRelativeTime.d.ts","sourceRoot":"","sources":["../../../../src/react-query/utils/formatRelativeTime.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAqB5D"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export { default as invalidate } from "./actions/invalidate";
|
|
2
|
-
export { default as refetch } from "./actions/refetch";
|
|
3
|
-
export { default as reset } from "./actions/reset";
|
|
4
|
-
export { default as remove } from "./actions/remove";
|
|
5
|
-
export { default as deleteItem } from "./actions/deleteItem";
|
|
6
|
-
export { default as triggerError } from "./actions/triggerError";
|
|
7
|
-
export { default as triggerLoading } from "./actions/triggerLoading";
|
|
8
|
-
export * from "./getQueryStatusLabel";
|
|
9
|
-
export * from "./getQueryStatusColor";
|
|
10
|
-
export * from "./getStorageQueryCounts";
|
|
11
|
-
export * from "./storageQueryUtils";
|
|
12
|
-
export * from "./modalStorageOperations";
|
|
13
|
-
export * from "./updateNestedDataByPath";
|
|
14
|
-
export * from "./deleteNestedDataByPath";
|
|
15
|
-
export { safeStringify } from "@buoy-gg/shared-ui";
|
|
16
|
-
export { displayValue, parseDisplayValue } from "@buoy-gg/shared-ui";
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react-query/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAGrE,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC"}
|