@tanstack/query-core 5.90.20 → 5.91.0
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/legacy/_tsup-dts-rollup.d.cts +2227 -0
- package/build/legacy/_tsup-dts-rollup.d.ts +2227 -0
- package/build/legacy/environmentManager.cjs +48 -0
- package/build/legacy/environmentManager.cjs.map +1 -0
- package/build/legacy/environmentManager.d.cts +2 -0
- package/build/legacy/environmentManager.d.ts +2 -0
- package/build/legacy/environmentManager.js +25 -0
- package/build/legacy/environmentManager.js.map +1 -0
- package/build/legacy/focusManager.cjs +1 -2
- package/build/legacy/focusManager.cjs.map +1 -1
- package/build/legacy/focusManager.d.cts +2 -17
- package/build/legacy/focusManager.d.ts +2 -17
- package/build/legacy/focusManager.js +1 -2
- package/build/legacy/focusManager.js.map +1 -1
- package/build/legacy/hydration.d.cts +7 -3
- package/build/legacy/hydration.d.ts +7 -3
- package/build/legacy/index.cjs +3 -0
- package/build/legacy/index.cjs.map +1 -1
- package/build/legacy/index.d.cts +142 -10
- package/build/legacy/index.d.ts +142 -10
- package/build/legacy/index.js +2 -0
- package/build/legacy/index.js.map +1 -1
- package/build/legacy/infiniteQueryBehavior.d.cts +3 -15
- package/build/legacy/infiniteQueryBehavior.d.ts +3 -15
- package/build/legacy/infiniteQueryObserver.d.cts +1 -20
- package/build/legacy/infiniteQueryObserver.d.ts +1 -20
- package/build/legacy/mutation.d.cts +4 -3
- package/build/legacy/mutation.d.ts +4 -3
- package/build/legacy/mutationCache.d.cts +2 -3
- package/build/legacy/mutationCache.d.ts +2 -3
- package/build/legacy/mutationObserver.d.cts +1 -3
- package/build/legacy/mutationObserver.d.ts +1 -3
- package/build/legacy/notifyManager.d.cts +3 -46
- package/build/legacy/notifyManager.d.ts +3 -46
- package/build/legacy/onlineManager.cjs +1 -2
- package/build/legacy/onlineManager.cjs.map +1 -1
- package/build/legacy/onlineManager.d.cts +2 -16
- package/build/legacy/onlineManager.d.ts +2 -16
- package/build/legacy/onlineManager.js +1 -2
- package/build/legacy/onlineManager.js.map +1 -1
- package/build/legacy/queriesObserver.d.cts +2 -27
- package/build/legacy/queriesObserver.d.ts +2 -27
- package/build/legacy/query.d.cts +10 -3
- package/build/legacy/query.d.ts +10 -3
- package/build/legacy/queryCache.d.cts +3 -3
- package/build/legacy/queryCache.d.ts +3 -3
- package/build/legacy/queryClient.d.cts +1 -3
- package/build/legacy/queryClient.d.ts +1 -3
- package/build/legacy/queryObserver.cjs +3 -2
- package/build/legacy/queryObserver.cjs.map +1 -1
- package/build/legacy/queryObserver.d.cts +1 -3
- package/build/legacy/queryObserver.d.ts +1 -3
- package/build/legacy/queryObserver.js +3 -3
- package/build/legacy/queryObserver.js.map +1 -1
- package/build/legacy/removable.cjs +2 -1
- package/build/legacy/removable.cjs.map +1 -1
- package/build/legacy/removable.d.cts +1 -11
- package/build/legacy/removable.d.ts +1 -11
- package/build/legacy/removable.js +3 -2
- package/build/legacy/removable.js.map +1 -1
- package/build/legacy/retryer.cjs +2 -1
- package/build/legacy/retryer.cjs.map +1 -1
- package/build/legacy/retryer.d.cts +7 -3
- package/build/legacy/retryer.d.ts +7 -3
- package/build/legacy/retryer.js +3 -2
- package/build/legacy/retryer.js.map +1 -1
- package/build/legacy/streamedQuery.d.cts +1 -34
- package/build/legacy/streamedQuery.d.ts +1 -34
- package/build/legacy/subscribable.d.cts +1 -10
- package/build/legacy/subscribable.d.ts +1 -10
- package/build/legacy/thenable.cjs.map +1 -1
- package/build/legacy/thenable.d.cts +6 -47
- package/build/legacy/thenable.d.ts +6 -47
- package/build/legacy/thenable.js.map +1 -1
- package/build/legacy/timeoutManager.d.cts +7 -58
- package/build/legacy/timeoutManager.d.ts +7 -58
- package/build/legacy/types.d.cts +95 -3
- package/build/legacy/types.d.ts +95 -3
- package/build/legacy/utils.cjs.map +1 -1
- package/build/legacy/utils.d.cts +30 -3
- package/build/legacy/utils.d.ts +30 -3
- package/build/legacy/utils.js.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.cts +2227 -0
- package/build/modern/_tsup-dts-rollup.d.ts +2227 -0
- package/build/modern/environmentManager.cjs +48 -0
- package/build/modern/environmentManager.cjs.map +1 -0
- package/build/modern/environmentManager.d.cts +2 -0
- package/build/modern/environmentManager.d.ts +2 -0
- package/build/modern/environmentManager.js +23 -0
- package/build/modern/environmentManager.js.map +1 -0
- package/build/modern/focusManager.cjs +1 -2
- package/build/modern/focusManager.cjs.map +1 -1
- package/build/modern/focusManager.d.cts +2 -17
- package/build/modern/focusManager.d.ts +2 -17
- package/build/modern/focusManager.js +1 -2
- package/build/modern/focusManager.js.map +1 -1
- package/build/modern/hydration.d.cts +7 -3
- package/build/modern/hydration.d.ts +7 -3
- package/build/modern/index.cjs +3 -0
- package/build/modern/index.cjs.map +1 -1
- package/build/modern/index.d.cts +142 -10
- package/build/modern/index.d.ts +142 -10
- package/build/modern/index.js +2 -0
- package/build/modern/index.js.map +1 -1
- package/build/modern/infiniteQueryBehavior.d.cts +3 -15
- package/build/modern/infiniteQueryBehavior.d.ts +3 -15
- package/build/modern/infiniteQueryObserver.d.cts +1 -20
- package/build/modern/infiniteQueryObserver.d.ts +1 -20
- package/build/modern/mutation.d.cts +4 -3
- package/build/modern/mutation.d.ts +4 -3
- package/build/modern/mutationCache.d.cts +2 -3
- package/build/modern/mutationCache.d.ts +2 -3
- package/build/modern/mutationObserver.d.cts +1 -3
- package/build/modern/mutationObserver.d.ts +1 -3
- package/build/modern/notifyManager.d.cts +3 -46
- package/build/modern/notifyManager.d.ts +3 -46
- package/build/modern/onlineManager.cjs +1 -2
- package/build/modern/onlineManager.cjs.map +1 -1
- package/build/modern/onlineManager.d.cts +2 -16
- package/build/modern/onlineManager.d.ts +2 -16
- package/build/modern/onlineManager.js +1 -2
- package/build/modern/onlineManager.js.map +1 -1
- package/build/modern/queriesObserver.d.cts +2 -27
- package/build/modern/queriesObserver.d.ts +2 -27
- package/build/modern/query.d.cts +10 -3
- package/build/modern/query.d.ts +10 -3
- package/build/modern/queryCache.d.cts +3 -3
- package/build/modern/queryCache.d.ts +3 -3
- package/build/modern/queryClient.d.cts +1 -3
- package/build/modern/queryClient.d.ts +1 -3
- package/build/modern/queryObserver.cjs +3 -2
- package/build/modern/queryObserver.cjs.map +1 -1
- package/build/modern/queryObserver.d.cts +1 -3
- package/build/modern/queryObserver.d.ts +1 -3
- package/build/modern/queryObserver.js +3 -3
- package/build/modern/queryObserver.js.map +1 -1
- package/build/modern/removable.cjs +2 -1
- package/build/modern/removable.cjs.map +1 -1
- package/build/modern/removable.d.cts +1 -11
- package/build/modern/removable.d.ts +1 -11
- package/build/modern/removable.js +3 -2
- package/build/modern/removable.js.map +1 -1
- package/build/modern/retryer.cjs +2 -1
- package/build/modern/retryer.cjs.map +1 -1
- package/build/modern/retryer.d.cts +7 -3
- package/build/modern/retryer.d.ts +7 -3
- package/build/modern/retryer.js +3 -2
- package/build/modern/retryer.js.map +1 -1
- package/build/modern/streamedQuery.d.cts +1 -34
- package/build/modern/streamedQuery.d.ts +1 -34
- package/build/modern/subscribable.d.cts +1 -10
- package/build/modern/subscribable.d.ts +1 -10
- package/build/modern/thenable.cjs.map +1 -1
- package/build/modern/thenable.d.cts +6 -47
- package/build/modern/thenable.d.ts +6 -47
- package/build/modern/thenable.js.map +1 -1
- package/build/modern/timeoutManager.d.cts +7 -58
- package/build/modern/timeoutManager.d.ts +7 -58
- package/build/modern/types.d.cts +95 -3
- package/build/modern/types.d.ts +95 -3
- package/build/modern/utils.cjs.map +1 -1
- package/build/modern/utils.d.cts +30 -3
- package/build/modern/utils.d.ts +30 -3
- package/build/modern/utils.js.map +1 -1
- package/package.json +4 -5
- package/src/environmentManager.ts +25 -0
- package/src/focusManager.ts +1 -2
- package/src/index.ts +1 -0
- package/src/onlineManager.ts +1 -2
- package/src/queryObserver.ts +7 -3
- package/src/removable.ts +3 -2
- package/src/retryer.ts +3 -2
- package/src/thenable.ts +1 -1
- package/src/utils.ts +3 -0
- package/build/legacy/hydration-BlEVG2Lp.d.ts +0 -1384
- package/build/legacy/hydration-uphG6M-i.d.cts +0 -1384
- package/build/modern/hydration-BlEVG2Lp.d.ts +0 -1384
- package/build/modern/hydration-uphG6M-i.d.cts +0 -1384
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/environmentManager.ts
|
|
21
|
+
var environmentManager_exports = {};
|
|
22
|
+
__export(environmentManager_exports, {
|
|
23
|
+
environmentManager: () => environmentManager
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(environmentManager_exports);
|
|
26
|
+
var import_utils = require("./utils.cjs");
|
|
27
|
+
var environmentManager = /* @__PURE__ */ (() => {
|
|
28
|
+
let isServerFn = () => import_utils.isServer;
|
|
29
|
+
return {
|
|
30
|
+
/**
|
|
31
|
+
* Returns whether the current runtime should be treated as a server environment.
|
|
32
|
+
*/
|
|
33
|
+
isServer() {
|
|
34
|
+
return isServerFn();
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* Overrides the server check globally.
|
|
38
|
+
*/
|
|
39
|
+
setIsServer(isServerValue) {
|
|
40
|
+
isServerFn = isServerValue;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
})();
|
|
44
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
+
0 && (module.exports = {
|
|
46
|
+
environmentManager
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=environmentManager.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/environmentManager.ts"],"sourcesContent":["import { isServer } from './utils'\n\nexport type IsServerValue = () => boolean\n\n/**\n * Manages environment detection used by TanStack Query internals.\n */\nexport const environmentManager = (() => {\n let isServerFn: IsServerValue = () => isServer\n\n return {\n /**\n * Returns whether the current runtime should be treated as a server environment.\n */\n isServer(): boolean {\n return isServerFn()\n },\n /**\n * Overrides the server check globally.\n */\n setIsServer(isServerValue: IsServerValue): void {\n isServerFn = isServerValue\n },\n }\n})()\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAyB;AAOlB,IAAM,qBAAsB,uBAAM;AACvC,MAAI,aAA4B,MAAM;AAEtC,SAAO;AAAA;AAAA;AAAA;AAAA,IAIL,WAAoB;AAClB,aAAO,WAAW;AAAA,IACpB;AAAA;AAAA;AAAA;AAAA,IAIA,YAAY,eAAoC;AAC9C,mBAAa;AAAA,IACf;AAAA,EACF;AACF,GAAG;","names":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "./chunk-PXG64RU4.js";
|
|
2
|
+
|
|
3
|
+
// src/environmentManager.ts
|
|
4
|
+
import { isServer } from "./utils.js";
|
|
5
|
+
var environmentManager = /* @__PURE__ */ (() => {
|
|
6
|
+
let isServerFn = () => isServer;
|
|
7
|
+
return {
|
|
8
|
+
/**
|
|
9
|
+
* Returns whether the current runtime should be treated as a server environment.
|
|
10
|
+
*/
|
|
11
|
+
isServer() {
|
|
12
|
+
return isServerFn();
|
|
13
|
+
},
|
|
14
|
+
/**
|
|
15
|
+
* Overrides the server check globally.
|
|
16
|
+
*/
|
|
17
|
+
setIsServer(isServerValue) {
|
|
18
|
+
isServerFn = isServerValue;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
})();
|
|
22
|
+
export {
|
|
23
|
+
environmentManager
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=environmentManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/environmentManager.ts"],"sourcesContent":["import { isServer } from './utils'\n\nexport type IsServerValue = () => boolean\n\n/**\n * Manages environment detection used by TanStack Query internals.\n */\nexport const environmentManager = (() => {\n let isServerFn: IsServerValue = () => isServer\n\n return {\n /**\n * Returns whether the current runtime should be treated as a server environment.\n */\n isServer(): boolean {\n return isServerFn()\n },\n /**\n * Overrides the server check globally.\n */\n setIsServer(isServerValue: IsServerValue): void {\n isServerFn = isServerValue\n },\n }\n})()\n"],"mappings":";;;AAAA,SAAS,gBAAgB;AAOlB,IAAM,qBAAsB,uBAAM;AACvC,MAAI,aAA4B,MAAM;AAEtC,SAAO;AAAA;AAAA;AAAA;AAAA,IAIL,WAAoB;AAClB,aAAO,WAAW;AAAA,IACpB;AAAA;AAAA;AAAA;AAAA,IAIA,YAAY,eAAoC;AAC9C,mBAAa;AAAA,IACf;AAAA,EACF;AACF,GAAG;","names":[]}
|
|
@@ -32,7 +32,6 @@ __export(focusManager_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(focusManager_exports);
|
|
34
34
|
var import_subscribable = require("./subscribable.cjs");
|
|
35
|
-
var import_utils = require("./utils.cjs");
|
|
36
35
|
var _focused, _cleanup, _setup;
|
|
37
36
|
var FocusManager = class extends import_subscribable.Subscribable {
|
|
38
37
|
constructor() {
|
|
@@ -41,7 +40,7 @@ var FocusManager = class extends import_subscribable.Subscribable {
|
|
|
41
40
|
__privateAdd(this, _cleanup);
|
|
42
41
|
__privateAdd(this, _setup);
|
|
43
42
|
__privateSet(this, _setup, (onFocus) => {
|
|
44
|
-
if (
|
|
43
|
+
if (typeof window !== "undefined" && window.addEventListener) {
|
|
45
44
|
const listener = () => onFocus();
|
|
46
45
|
window.addEventListener("visibilitychange", listener, false);
|
|
47
46
|
return () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/focusManager.ts"],"sourcesContent":["import { Subscribable } from './subscribable'\
|
|
1
|
+
{"version":3,"sources":["../../src/focusManager.ts"],"sourcesContent":["import { Subscribable } from './subscribable'\n\ntype Listener = (focused: boolean) => void\n\ntype SetupFn = (\n setFocused: (focused?: boolean) => void,\n) => (() => void) | undefined\n\nexport class FocusManager extends Subscribable<Listener> {\n #focused?: boolean\n #cleanup?: () => void\n\n #setup: SetupFn\n\n constructor() {\n super()\n this.#setup = (onFocus) => {\n // addEventListener does not exist in React Native, but window does\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n if (typeof window !== 'undefined' && window.addEventListener) {\n const listener = () => onFocus()\n // Listen to visibilitychange\n window.addEventListener('visibilitychange', listener, false)\n\n return () => {\n // Be sure to unsubscribe if a new handler is set\n window.removeEventListener('visibilitychange', listener)\n }\n }\n return\n }\n }\n\n protected onSubscribe(): void {\n if (!this.#cleanup) {\n this.setEventListener(this.#setup)\n }\n }\n\n protected onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#cleanup?.()\n this.#cleanup = undefined\n }\n }\n\n setEventListener(setup: SetupFn): void {\n this.#setup = setup\n this.#cleanup?.()\n this.#cleanup = setup((focused) => {\n if (typeof focused === 'boolean') {\n this.setFocused(focused)\n } else {\n this.onFocus()\n }\n })\n }\n\n setFocused(focused?: boolean): void {\n const changed = this.#focused !== focused\n if (changed) {\n this.#focused = focused\n this.onFocus()\n }\n }\n\n onFocus(): void {\n const isFocused = this.isFocused()\n this.listeners.forEach((listener) => {\n listener(isFocused)\n })\n }\n\n isFocused(): boolean {\n if (typeof this.#focused === 'boolean') {\n return this.#focused\n }\n\n // document global can be unavailable in react native\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n return globalThis.document?.visibilityState !== 'hidden'\n }\n}\n\nexport const focusManager = new FocusManager()\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA6B;AAA7B;AAQO,IAAM,eAAN,cAA2B,iCAAuB;AAAA,EAMvD,cAAc;AACZ,UAAM;AANR;AACA;AAEA;AAIE,uBAAK,QAAS,CAAC,YAAY;AAGzB,UAAI,OAAO,WAAW,eAAe,OAAO,kBAAkB;AAC5D,cAAM,WAAW,MAAM,QAAQ;AAE/B,eAAO,iBAAiB,oBAAoB,UAAU,KAAK;AAE3D,eAAO,MAAM;AAEX,iBAAO,oBAAoB,oBAAoB,QAAQ;AAAA,QACzD;AAAA,MACF;AACA;AAAA,IACF;AAAA,EACF;AAAA,EAEU,cAAoB;AAC5B,QAAI,CAAC,mBAAK,WAAU;AAClB,WAAK,iBAAiB,mBAAK,OAAM;AAAA,IACnC;AAAA,EACF;AAAA,EAEU,gBAAgB;AAvC5B;AAwCI,QAAI,CAAC,KAAK,aAAa,GAAG;AACxB,+BAAK,cAAL;AACA,yBAAK,UAAW;AAAA,IAClB;AAAA,EACF;AAAA,EAEA,iBAAiB,OAAsB;AA9CzC;AA+CI,uBAAK,QAAS;AACd,6BAAK,cAAL;AACA,uBAAK,UAAW,MAAM,CAAC,YAAY;AACjC,UAAI,OAAO,YAAY,WAAW;AAChC,aAAK,WAAW,OAAO;AAAA,MACzB,OAAO;AACL,aAAK,QAAQ;AAAA,MACf;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,WAAW,SAAyB;AAClC,UAAM,UAAU,mBAAK,cAAa;AAClC,QAAI,SAAS;AACX,yBAAK,UAAW;AAChB,WAAK,QAAQ;AAAA,IACf;AAAA,EACF;AAAA,EAEA,UAAgB;AACd,UAAM,YAAY,KAAK,UAAU;AACjC,SAAK,UAAU,QAAQ,CAAC,aAAa;AACnC,eAAS,SAAS;AAAA,IACpB,CAAC;AAAA,EACH;AAAA,EAEA,YAAqB;AAzEvB;AA0EI,QAAI,OAAO,mBAAK,cAAa,WAAW;AACtC,aAAO,mBAAK;AAAA,IACd;AAIA,aAAO,gBAAW,aAAX,mBAAqB,qBAAoB;AAAA,EAClD;AACF;AAzEE;AACA;AAEA;AAwEK,IAAM,eAAe,IAAI,aAAa;","names":[]}
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type Listener = (focused: boolean) => void;
|
|
4
|
-
type SetupFn = (setFocused: (focused?: boolean) => void) => (() => void) | undefined;
|
|
5
|
-
declare class FocusManager extends Subscribable<Listener> {
|
|
6
|
-
#private;
|
|
7
|
-
constructor();
|
|
8
|
-
protected onSubscribe(): void;
|
|
9
|
-
protected onUnsubscribe(): void;
|
|
10
|
-
setEventListener(setup: SetupFn): void;
|
|
11
|
-
setFocused(focused?: boolean): void;
|
|
12
|
-
onFocus(): void;
|
|
13
|
-
isFocused(): boolean;
|
|
14
|
-
}
|
|
15
|
-
declare const focusManager: FocusManager;
|
|
16
|
-
|
|
17
|
-
export { FocusManager, focusManager };
|
|
1
|
+
export { FocusManager } from './_tsup-dts-rollup.cjs';
|
|
2
|
+
export { focusManager } from './_tsup-dts-rollup.cjs';
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type Listener = (focused: boolean) => void;
|
|
4
|
-
type SetupFn = (setFocused: (focused?: boolean) => void) => (() => void) | undefined;
|
|
5
|
-
declare class FocusManager extends Subscribable<Listener> {
|
|
6
|
-
#private;
|
|
7
|
-
constructor();
|
|
8
|
-
protected onSubscribe(): void;
|
|
9
|
-
protected onUnsubscribe(): void;
|
|
10
|
-
setEventListener(setup: SetupFn): void;
|
|
11
|
-
setFocused(focused?: boolean): void;
|
|
12
|
-
onFocus(): void;
|
|
13
|
-
isFocused(): boolean;
|
|
14
|
-
}
|
|
15
|
-
declare const focusManager: FocusManager;
|
|
16
|
-
|
|
17
|
-
export { FocusManager, focusManager };
|
|
1
|
+
export { FocusManager } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { focusManager } from './_tsup-dts-rollup.js';
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
|
|
7
7
|
// src/focusManager.ts
|
|
8
8
|
import { Subscribable } from "./subscribable.js";
|
|
9
|
-
import { isServer } from "./utils.js";
|
|
10
9
|
var _focused, _cleanup, _setup;
|
|
11
10
|
var FocusManager = class extends Subscribable {
|
|
12
11
|
constructor() {
|
|
@@ -15,7 +14,7 @@ var FocusManager = class extends Subscribable {
|
|
|
15
14
|
__privateAdd(this, _cleanup);
|
|
16
15
|
__privateAdd(this, _setup);
|
|
17
16
|
__privateSet(this, _setup, (onFocus) => {
|
|
18
|
-
if (
|
|
17
|
+
if (typeof window !== "undefined" && window.addEventListener) {
|
|
19
18
|
const listener = () => onFocus();
|
|
20
19
|
window.addEventListener("visibilitychange", listener, false);
|
|
21
20
|
return () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/focusManager.ts"],"sourcesContent":["import { Subscribable } from './subscribable'\
|
|
1
|
+
{"version":3,"sources":["../../src/focusManager.ts"],"sourcesContent":["import { Subscribable } from './subscribable'\n\ntype Listener = (focused: boolean) => void\n\ntype SetupFn = (\n setFocused: (focused?: boolean) => void,\n) => (() => void) | undefined\n\nexport class FocusManager extends Subscribable<Listener> {\n #focused?: boolean\n #cleanup?: () => void\n\n #setup: SetupFn\n\n constructor() {\n super()\n this.#setup = (onFocus) => {\n // addEventListener does not exist in React Native, but window does\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n if (typeof window !== 'undefined' && window.addEventListener) {\n const listener = () => onFocus()\n // Listen to visibilitychange\n window.addEventListener('visibilitychange', listener, false)\n\n return () => {\n // Be sure to unsubscribe if a new handler is set\n window.removeEventListener('visibilitychange', listener)\n }\n }\n return\n }\n }\n\n protected onSubscribe(): void {\n if (!this.#cleanup) {\n this.setEventListener(this.#setup)\n }\n }\n\n protected onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#cleanup?.()\n this.#cleanup = undefined\n }\n }\n\n setEventListener(setup: SetupFn): void {\n this.#setup = setup\n this.#cleanup?.()\n this.#cleanup = setup((focused) => {\n if (typeof focused === 'boolean') {\n this.setFocused(focused)\n } else {\n this.onFocus()\n }\n })\n }\n\n setFocused(focused?: boolean): void {\n const changed = this.#focused !== focused\n if (changed) {\n this.#focused = focused\n this.onFocus()\n }\n }\n\n onFocus(): void {\n const isFocused = this.isFocused()\n this.listeners.forEach((listener) => {\n listener(isFocused)\n })\n }\n\n isFocused(): boolean {\n if (typeof this.#focused === 'boolean') {\n return this.#focused\n }\n\n // document global can be unavailable in react native\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n return globalThis.document?.visibilityState !== 'hidden'\n }\n}\n\nexport const focusManager = new FocusManager()\n"],"mappings":";;;;;;;AAAA,SAAS,oBAAoB;AAA7B;AAQO,IAAM,eAAN,cAA2B,aAAuB;AAAA,EAMvD,cAAc;AACZ,UAAM;AANR;AACA;AAEA;AAIE,uBAAK,QAAS,CAAC,YAAY;AAGzB,UAAI,OAAO,WAAW,eAAe,OAAO,kBAAkB;AAC5D,cAAM,WAAW,MAAM,QAAQ;AAE/B,eAAO,iBAAiB,oBAAoB,UAAU,KAAK;AAE3D,eAAO,MAAM;AAEX,iBAAO,oBAAoB,oBAAoB,QAAQ;AAAA,QACzD;AAAA,MACF;AACA;AAAA,IACF;AAAA,EACF;AAAA,EAEU,cAAoB;AAC5B,QAAI,CAAC,mBAAK,WAAU;AAClB,WAAK,iBAAiB,mBAAK,OAAM;AAAA,IACnC;AAAA,EACF;AAAA,EAEU,gBAAgB;AAvC5B;AAwCI,QAAI,CAAC,KAAK,aAAa,GAAG;AACxB,+BAAK,cAAL;AACA,yBAAK,UAAW;AAAA,IAClB;AAAA,EACF;AAAA,EAEA,iBAAiB,OAAsB;AA9CzC;AA+CI,uBAAK,QAAS;AACd,6BAAK,cAAL;AACA,uBAAK,UAAW,MAAM,CAAC,YAAY;AACjC,UAAI,OAAO,YAAY,WAAW;AAChC,aAAK,WAAW,OAAO;AAAA,MACzB,OAAO;AACL,aAAK,QAAQ;AAAA,MACf;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,WAAW,SAAyB;AAClC,UAAM,UAAU,mBAAK,cAAa;AAClC,QAAI,SAAS;AACX,yBAAK,UAAW;AAChB,WAAK,QAAQ;AAAA,IACf;AAAA,EACF;AAAA,EAEA,UAAgB;AACd,UAAM,YAAY,KAAK,UAAU;AACjC,SAAK,UAAU,QAAQ,CAAC,aAAa;AACnC,eAAS,SAAS;AAAA,IACpB,CAAC;AAAA,EACH;AAAA,EAEA,YAAqB;AAzEvB;AA0EI,QAAI,OAAO,mBAAK,cAAa,WAAW;AACtC,aAAO,mBAAK;AAAA,IACd;AAIA,aAAO,gBAAW,aAAX,mBAAqB,qBAAoB;AAAA,EAClD;AACF;AAzEE;AACA;AAEA;AAwEK,IAAM,eAAe,IAAI,aAAa;","names":[]}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export { defaultShouldDehydrateMutation } from './_tsup-dts-rollup.cjs';
|
|
2
|
+
export { defaultShouldDehydrateQuery } from './_tsup-dts-rollup.cjs';
|
|
3
|
+
export { dehydrate } from './_tsup-dts-rollup.cjs';
|
|
4
|
+
export { hydrate } from './_tsup-dts-rollup.cjs';
|
|
5
|
+
export { DehydrateOptions } from './_tsup-dts-rollup.cjs';
|
|
6
|
+
export { HydrateOptions } from './_tsup-dts-rollup.cjs';
|
|
7
|
+
export { DehydratedState } from './_tsup-dts-rollup.cjs';
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export { defaultShouldDehydrateMutation } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { defaultShouldDehydrateQuery } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { dehydrate } from './_tsup-dts-rollup.js';
|
|
4
|
+
export { hydrate } from './_tsup-dts-rollup.js';
|
|
5
|
+
export { DehydrateOptions } from './_tsup-dts-rollup.js';
|
|
6
|
+
export { HydrateOptions } from './_tsup-dts-rollup.js';
|
|
7
|
+
export { DehydratedState } from './_tsup-dts-rollup.js';
|
package/build/legacy/index.cjs
CHANGED
|
@@ -35,6 +35,7 @@ __export(index_exports, {
|
|
|
35
35
|
defaultShouldDehydrateMutation: () => import_hydration.defaultShouldDehydrateMutation,
|
|
36
36
|
defaultShouldDehydrateQuery: () => import_hydration.defaultShouldDehydrateQuery,
|
|
37
37
|
dehydrate: () => import_hydration.dehydrate,
|
|
38
|
+
environmentManager: () => import_environmentManager.environmentManager,
|
|
38
39
|
experimental_streamedQuery: () => import_streamedQuery.streamedQuery,
|
|
39
40
|
focusManager: () => import_focusManager.focusManager,
|
|
40
41
|
hashKey: () => import_utils.hashKey,
|
|
@@ -55,6 +56,7 @@ __export(index_exports, {
|
|
|
55
56
|
});
|
|
56
57
|
module.exports = __toCommonJS(index_exports);
|
|
57
58
|
var import_focusManager = require("./focusManager.cjs");
|
|
59
|
+
var import_environmentManager = require("./environmentManager.cjs");
|
|
58
60
|
var import_hydration = require("./hydration.cjs");
|
|
59
61
|
var import_infiniteQueryObserver = require("./infiniteQueryObserver.cjs");
|
|
60
62
|
var import_mutationCache = require("./mutationCache.cjs");
|
|
@@ -88,6 +90,7 @@ __reExport(index_exports, require("./types.cjs"), module.exports);
|
|
|
88
90
|
defaultShouldDehydrateMutation,
|
|
89
91
|
defaultShouldDehydrateQuery,
|
|
90
92
|
dehydrate,
|
|
93
|
+
environmentManager,
|
|
91
94
|
experimental_streamedQuery,
|
|
92
95
|
focusManager,
|
|
93
96
|
hashKey,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/* istanbul ignore file */\n\nexport { focusManager } from './focusManager'\nexport {\n defaultShouldDehydrateMutation,\n defaultShouldDehydrateQuery,\n dehydrate,\n hydrate,\n} from './hydration'\nexport { InfiniteQueryObserver } from './infiniteQueryObserver'\nexport { MutationCache } from './mutationCache'\nexport type { MutationCacheNotifyEvent } from './mutationCache'\nexport { MutationObserver } from './mutationObserver'\nexport { defaultScheduler, notifyManager } from './notifyManager'\nexport { onlineManager } from './onlineManager'\nexport { QueriesObserver } from './queriesObserver'\nexport { QueryCache } from './queryCache'\nexport type { QueryCacheNotifyEvent } from './queryCache'\nexport { QueryClient } from './queryClient'\nexport { QueryObserver } from './queryObserver'\nexport { CancelledError, isCancelledError } from './retryer'\nexport {\n timeoutManager,\n type ManagedTimerId,\n type TimeoutCallback,\n type TimeoutProvider,\n} from './timeoutManager'\nexport {\n hashKey,\n isServer,\n keepPreviousData,\n matchMutation,\n matchQuery,\n noop,\n partialMatchKey,\n replaceEqualDeep,\n shouldThrowError,\n skipToken,\n} from './utils'\nexport type { MutationFilters, QueryFilters, SkipToken, Updater } from './utils'\n\nexport { streamedQuery as experimental_streamedQuery } from './streamedQuery'\n\n// Types\nexport type {\n DehydratedState,\n DehydrateOptions,\n HydrateOptions,\n} from './hydration'\nexport { Mutation } from './mutation'\nexport type { MutationState } from './mutation'\nexport type { QueriesObserverOptions } from './queriesObserver'\nexport { Query } from './query'\nexport type { QueryState } from './query'\nexport * from './types'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,0BAA6B;AAC7B,uBAKO;AACP,mCAAsC;AACtC,2BAA8B;AAE9B,8BAAiC;AACjC,2BAAgD;AAChD,2BAA8B;AAC9B,6BAAgC;AAChC,wBAA2B;AAE3B,yBAA4B;AAC5B,2BAA8B;AAC9B,qBAAiD;AACjD,4BAKO;AACP,mBAWO;AAGP,2BAA4D;AAQ5D,sBAAyB;AAGzB,mBAAsB;AAEtB,0BAAc,
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/* istanbul ignore file */\n\nexport { focusManager } from './focusManager'\nexport { environmentManager } from './environmentManager'\nexport {\n defaultShouldDehydrateMutation,\n defaultShouldDehydrateQuery,\n dehydrate,\n hydrate,\n} from './hydration'\nexport { InfiniteQueryObserver } from './infiniteQueryObserver'\nexport { MutationCache } from './mutationCache'\nexport type { MutationCacheNotifyEvent } from './mutationCache'\nexport { MutationObserver } from './mutationObserver'\nexport { defaultScheduler, notifyManager } from './notifyManager'\nexport { onlineManager } from './onlineManager'\nexport { QueriesObserver } from './queriesObserver'\nexport { QueryCache } from './queryCache'\nexport type { QueryCacheNotifyEvent } from './queryCache'\nexport { QueryClient } from './queryClient'\nexport { QueryObserver } from './queryObserver'\nexport { CancelledError, isCancelledError } from './retryer'\nexport {\n timeoutManager,\n type ManagedTimerId,\n type TimeoutCallback,\n type TimeoutProvider,\n} from './timeoutManager'\nexport {\n hashKey,\n isServer,\n keepPreviousData,\n matchMutation,\n matchQuery,\n noop,\n partialMatchKey,\n replaceEqualDeep,\n shouldThrowError,\n skipToken,\n} from './utils'\nexport type { MutationFilters, QueryFilters, SkipToken, Updater } from './utils'\n\nexport { streamedQuery as experimental_streamedQuery } from './streamedQuery'\n\n// Types\nexport type {\n DehydratedState,\n DehydrateOptions,\n HydrateOptions,\n} from './hydration'\nexport { Mutation } from './mutation'\nexport type { MutationState } from './mutation'\nexport type { QueriesObserverOptions } from './queriesObserver'\nexport { Query } from './query'\nexport type { QueryState } from './query'\nexport * from './types'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,0BAA6B;AAC7B,gCAAmC;AACnC,uBAKO;AACP,mCAAsC;AACtC,2BAA8B;AAE9B,8BAAiC;AACjC,2BAAgD;AAChD,2BAA8B;AAC9B,6BAAgC;AAChC,wBAA2B;AAE3B,yBAA4B;AAC5B,2BAA8B;AAC9B,qBAAiD;AACjD,4BAKO;AACP,mBAWO;AAGP,2BAA4D;AAQ5D,sBAAyB;AAGzB,mBAAsB;AAEtB,0BAAc,wBAvDd;","names":[]}
|
package/build/legacy/index.d.cts
CHANGED
|
@@ -1,10 +1,142 @@
|
|
|
1
|
-
export { focusManager } from './
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
export { focusManager_alias_1 as focusManager } from './_tsup-dts-rollup.cjs';
|
|
2
|
+
export { environmentManager_alias_1 as environmentManager } from './_tsup-dts-rollup.cjs';
|
|
3
|
+
export { defaultShouldDehydrateMutation_alias_1 as defaultShouldDehydrateMutation } from './_tsup-dts-rollup.cjs';
|
|
4
|
+
export { defaultShouldDehydrateQuery_alias_1 as defaultShouldDehydrateQuery } from './_tsup-dts-rollup.cjs';
|
|
5
|
+
export { dehydrate_alias_1 as dehydrate } from './_tsup-dts-rollup.cjs';
|
|
6
|
+
export { hydrate_alias_1 as hydrate } from './_tsup-dts-rollup.cjs';
|
|
7
|
+
export { InfiniteQueryObserver } from './_tsup-dts-rollup.cjs';
|
|
8
|
+
export { MutationCache } from './_tsup-dts-rollup.cjs';
|
|
9
|
+
export { MutationCacheNotifyEvent } from './_tsup-dts-rollup.cjs';
|
|
10
|
+
export { MutationObserver } from './_tsup-dts-rollup.cjs';
|
|
11
|
+
export { defaultScheduler } from './_tsup-dts-rollup.cjs';
|
|
12
|
+
export { notifyManager } from './_tsup-dts-rollup.cjs';
|
|
13
|
+
export { onlineManager } from './_tsup-dts-rollup.cjs';
|
|
14
|
+
export { QueriesObserver } from './_tsup-dts-rollup.cjs';
|
|
15
|
+
export { QueryCache } from './_tsup-dts-rollup.cjs';
|
|
16
|
+
export { QueryCacheNotifyEvent } from './_tsup-dts-rollup.cjs';
|
|
17
|
+
export { QueryClient } from './_tsup-dts-rollup.cjs';
|
|
18
|
+
export { QueryObserver } from './_tsup-dts-rollup.cjs';
|
|
19
|
+
export { CancelledError } from './_tsup-dts-rollup.cjs';
|
|
20
|
+
export { isCancelledError } from './_tsup-dts-rollup.cjs';
|
|
21
|
+
export { timeoutManager } from './_tsup-dts-rollup.cjs';
|
|
22
|
+
export { ManagedTimerId } from './_tsup-dts-rollup.cjs';
|
|
23
|
+
export { TimeoutCallback } from './_tsup-dts-rollup.cjs';
|
|
24
|
+
export { TimeoutProvider } from './_tsup-dts-rollup.cjs';
|
|
25
|
+
export { hashKey } from './_tsup-dts-rollup.cjs';
|
|
26
|
+
export { isServer } from './_tsup-dts-rollup.cjs';
|
|
27
|
+
export { keepPreviousData } from './_tsup-dts-rollup.cjs';
|
|
28
|
+
export { matchMutation } from './_tsup-dts-rollup.cjs';
|
|
29
|
+
export { matchQuery } from './_tsup-dts-rollup.cjs';
|
|
30
|
+
export { noop } from './_tsup-dts-rollup.cjs';
|
|
31
|
+
export { partialMatchKey } from './_tsup-dts-rollup.cjs';
|
|
32
|
+
export { replaceEqualDeep } from './_tsup-dts-rollup.cjs';
|
|
33
|
+
export { shouldThrowError } from './_tsup-dts-rollup.cjs';
|
|
34
|
+
export { skipToken } from './_tsup-dts-rollup.cjs';
|
|
35
|
+
export { MutationFilters } from './_tsup-dts-rollup.cjs';
|
|
36
|
+
export { QueryFilters } from './_tsup-dts-rollup.cjs';
|
|
37
|
+
export { SkipToken } from './_tsup-dts-rollup.cjs';
|
|
38
|
+
export { Updater } from './_tsup-dts-rollup.cjs';
|
|
39
|
+
export { experimental_streamedQuery } from './_tsup-dts-rollup.cjs';
|
|
40
|
+
export { DehydratedState_alias_1 as DehydratedState } from './_tsup-dts-rollup.cjs';
|
|
41
|
+
export { DehydrateOptions_alias_1 as DehydrateOptions } from './_tsup-dts-rollup.cjs';
|
|
42
|
+
export { HydrateOptions_alias_1 as HydrateOptions } from './_tsup-dts-rollup.cjs';
|
|
43
|
+
export { Mutation } from './_tsup-dts-rollup.cjs';
|
|
44
|
+
export { MutationState } from './_tsup-dts-rollup.cjs';
|
|
45
|
+
export { QueriesObserverOptions } from './_tsup-dts-rollup.cjs';
|
|
46
|
+
export { Query } from './_tsup-dts-rollup.cjs';
|
|
47
|
+
export { QueryState } from './_tsup-dts-rollup.cjs';
|
|
48
|
+
export { NonUndefinedGuard } from './_tsup-dts-rollup.cjs';
|
|
49
|
+
export { DistributiveOmit } from './_tsup-dts-rollup.cjs';
|
|
50
|
+
export { OmitKeyof } from './_tsup-dts-rollup.cjs';
|
|
51
|
+
export { Override } from './_tsup-dts-rollup.cjs';
|
|
52
|
+
export { NoInfer } from './_tsup-dts-rollup.cjs';
|
|
53
|
+
export { Register } from './_tsup-dts-rollup.cjs';
|
|
54
|
+
export { DefaultError } from './_tsup-dts-rollup.cjs';
|
|
55
|
+
export { QueryKey } from './_tsup-dts-rollup.cjs';
|
|
56
|
+
export { dataTagSymbol } from './_tsup-dts-rollup.cjs';
|
|
57
|
+
export { dataTagErrorSymbol } from './_tsup-dts-rollup.cjs';
|
|
58
|
+
export { unsetMarker } from './_tsup-dts-rollup.cjs';
|
|
59
|
+
export { UnsetMarker } from './_tsup-dts-rollup.cjs';
|
|
60
|
+
export { AnyDataTag } from './_tsup-dts-rollup.cjs';
|
|
61
|
+
export { DataTag } from './_tsup-dts-rollup.cjs';
|
|
62
|
+
export { InferDataFromTag } from './_tsup-dts-rollup.cjs';
|
|
63
|
+
export { InferErrorFromTag } from './_tsup-dts-rollup.cjs';
|
|
64
|
+
export { QueryFunction } from './_tsup-dts-rollup.cjs';
|
|
65
|
+
export { StaleTime } from './_tsup-dts-rollup.cjs';
|
|
66
|
+
export { StaleTimeFunction } from './_tsup-dts-rollup.cjs';
|
|
67
|
+
export { Enabled } from './_tsup-dts-rollup.cjs';
|
|
68
|
+
export { QueryPersister } from './_tsup-dts-rollup.cjs';
|
|
69
|
+
export { QueryFunctionContext } from './_tsup-dts-rollup.cjs';
|
|
70
|
+
export { InitialDataFunction } from './_tsup-dts-rollup.cjs';
|
|
71
|
+
export { PlaceholderDataFunction } from './_tsup-dts-rollup.cjs';
|
|
72
|
+
export { QueriesPlaceholderDataFunction } from './_tsup-dts-rollup.cjs';
|
|
73
|
+
export { QueryKeyHashFunction } from './_tsup-dts-rollup.cjs';
|
|
74
|
+
export { GetPreviousPageParamFunction } from './_tsup-dts-rollup.cjs';
|
|
75
|
+
export { GetNextPageParamFunction } from './_tsup-dts-rollup.cjs';
|
|
76
|
+
export { InfiniteData } from './_tsup-dts-rollup.cjs';
|
|
77
|
+
export { QueryMeta } from './_tsup-dts-rollup.cjs';
|
|
78
|
+
export { NetworkMode } from './_tsup-dts-rollup.cjs';
|
|
79
|
+
export { NotifyOnChangeProps } from './_tsup-dts-rollup.cjs';
|
|
80
|
+
export { QueryOptions } from './_tsup-dts-rollup.cjs';
|
|
81
|
+
export { InitialPageParam } from './_tsup-dts-rollup.cjs';
|
|
82
|
+
export { InfiniteQueryPageParamsOptions } from './_tsup-dts-rollup.cjs';
|
|
83
|
+
export { ThrowOnError } from './_tsup-dts-rollup.cjs';
|
|
84
|
+
export { QueryObserverOptions } from './_tsup-dts-rollup.cjs';
|
|
85
|
+
export { WithRequired } from './_tsup-dts-rollup.cjs';
|
|
86
|
+
export { DefaultedQueryObserverOptions } from './_tsup-dts-rollup.cjs';
|
|
87
|
+
export { InfiniteQueryObserverOptions } from './_tsup-dts-rollup.cjs';
|
|
88
|
+
export { DefaultedInfiniteQueryObserverOptions } from './_tsup-dts-rollup.cjs';
|
|
89
|
+
export { FetchQueryOptions } from './_tsup-dts-rollup.cjs';
|
|
90
|
+
export { EnsureQueryDataOptions } from './_tsup-dts-rollup.cjs';
|
|
91
|
+
export { EnsureInfiniteQueryDataOptions } from './_tsup-dts-rollup.cjs';
|
|
92
|
+
export { FetchInfiniteQueryOptions } from './_tsup-dts-rollup.cjs';
|
|
93
|
+
export { ResultOptions } from './_tsup-dts-rollup.cjs';
|
|
94
|
+
export { RefetchOptions } from './_tsup-dts-rollup.cjs';
|
|
95
|
+
export { InvalidateQueryFilters } from './_tsup-dts-rollup.cjs';
|
|
96
|
+
export { RefetchQueryFilters } from './_tsup-dts-rollup.cjs';
|
|
97
|
+
export { InvalidateOptions } from './_tsup-dts-rollup.cjs';
|
|
98
|
+
export { ResetOptions } from './_tsup-dts-rollup.cjs';
|
|
99
|
+
export { FetchNextPageOptions } from './_tsup-dts-rollup.cjs';
|
|
100
|
+
export { FetchPreviousPageOptions } from './_tsup-dts-rollup.cjs';
|
|
101
|
+
export { QueryStatus } from './_tsup-dts-rollup.cjs';
|
|
102
|
+
export { FetchStatus } from './_tsup-dts-rollup.cjs';
|
|
103
|
+
export { QueryObserverBaseResult } from './_tsup-dts-rollup.cjs';
|
|
104
|
+
export { QueryObserverPendingResult } from './_tsup-dts-rollup.cjs';
|
|
105
|
+
export { QueryObserverLoadingResult } from './_tsup-dts-rollup.cjs';
|
|
106
|
+
export { QueryObserverLoadingErrorResult } from './_tsup-dts-rollup.cjs';
|
|
107
|
+
export { QueryObserverRefetchErrorResult } from './_tsup-dts-rollup.cjs';
|
|
108
|
+
export { QueryObserverSuccessResult } from './_tsup-dts-rollup.cjs';
|
|
109
|
+
export { QueryObserverPlaceholderResult } from './_tsup-dts-rollup.cjs';
|
|
110
|
+
export { DefinedQueryObserverResult } from './_tsup-dts-rollup.cjs';
|
|
111
|
+
export { QueryObserverResult } from './_tsup-dts-rollup.cjs';
|
|
112
|
+
export { InfiniteQueryObserverBaseResult } from './_tsup-dts-rollup.cjs';
|
|
113
|
+
export { InfiniteQueryObserverPendingResult } from './_tsup-dts-rollup.cjs';
|
|
114
|
+
export { InfiniteQueryObserverLoadingResult } from './_tsup-dts-rollup.cjs';
|
|
115
|
+
export { InfiniteQueryObserverLoadingErrorResult } from './_tsup-dts-rollup.cjs';
|
|
116
|
+
export { InfiniteQueryObserverRefetchErrorResult } from './_tsup-dts-rollup.cjs';
|
|
117
|
+
export { InfiniteQueryObserverSuccessResult } from './_tsup-dts-rollup.cjs';
|
|
118
|
+
export { InfiniteQueryObserverPlaceholderResult } from './_tsup-dts-rollup.cjs';
|
|
119
|
+
export { DefinedInfiniteQueryObserverResult } from './_tsup-dts-rollup.cjs';
|
|
120
|
+
export { InfiniteQueryObserverResult } from './_tsup-dts-rollup.cjs';
|
|
121
|
+
export { MutationKey } from './_tsup-dts-rollup.cjs';
|
|
122
|
+
export { MutationStatus } from './_tsup-dts-rollup.cjs';
|
|
123
|
+
export { MutationScope } from './_tsup-dts-rollup.cjs';
|
|
124
|
+
export { MutationMeta } from './_tsup-dts-rollup.cjs';
|
|
125
|
+
export { MutationFunctionContext } from './_tsup-dts-rollup.cjs';
|
|
126
|
+
export { MutationFunction } from './_tsup-dts-rollup.cjs';
|
|
127
|
+
export { MutationOptions } from './_tsup-dts-rollup.cjs';
|
|
128
|
+
export { MutationObserverOptions } from './_tsup-dts-rollup.cjs';
|
|
129
|
+
export { MutateOptions } from './_tsup-dts-rollup.cjs';
|
|
130
|
+
export { MutateFunction } from './_tsup-dts-rollup.cjs';
|
|
131
|
+
export { MutationObserverBaseResult } from './_tsup-dts-rollup.cjs';
|
|
132
|
+
export { MutationObserverIdleResult } from './_tsup-dts-rollup.cjs';
|
|
133
|
+
export { MutationObserverLoadingResult } from './_tsup-dts-rollup.cjs';
|
|
134
|
+
export { MutationObserverErrorResult } from './_tsup-dts-rollup.cjs';
|
|
135
|
+
export { MutationObserverSuccessResult } from './_tsup-dts-rollup.cjs';
|
|
136
|
+
export { MutationObserverResult } from './_tsup-dts-rollup.cjs';
|
|
137
|
+
export { QueryClientConfig } from './_tsup-dts-rollup.cjs';
|
|
138
|
+
export { DefaultOptions } from './_tsup-dts-rollup.cjs';
|
|
139
|
+
export { CancelOptions } from './_tsup-dts-rollup.cjs';
|
|
140
|
+
export { SetDataOptions } from './_tsup-dts-rollup.cjs';
|
|
141
|
+
export { NotifyEventType } from './_tsup-dts-rollup.cjs';
|
|
142
|
+
export { NotifyEvent } from './_tsup-dts-rollup.cjs';
|
package/build/legacy/index.d.ts
CHANGED
|
@@ -1,10 +1,142 @@
|
|
|
1
|
-
export { focusManager } from './
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
export { focusManager_alias_1 as focusManager } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { environmentManager_alias_1 as environmentManager } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { defaultShouldDehydrateMutation_alias_1 as defaultShouldDehydrateMutation } from './_tsup-dts-rollup.js';
|
|
4
|
+
export { defaultShouldDehydrateQuery_alias_1 as defaultShouldDehydrateQuery } from './_tsup-dts-rollup.js';
|
|
5
|
+
export { dehydrate_alias_1 as dehydrate } from './_tsup-dts-rollup.js';
|
|
6
|
+
export { hydrate_alias_1 as hydrate } from './_tsup-dts-rollup.js';
|
|
7
|
+
export { InfiniteQueryObserver } from './_tsup-dts-rollup.js';
|
|
8
|
+
export { MutationCache } from './_tsup-dts-rollup.js';
|
|
9
|
+
export { MutationCacheNotifyEvent } from './_tsup-dts-rollup.js';
|
|
10
|
+
export { MutationObserver } from './_tsup-dts-rollup.js';
|
|
11
|
+
export { defaultScheduler } from './_tsup-dts-rollup.js';
|
|
12
|
+
export { notifyManager } from './_tsup-dts-rollup.js';
|
|
13
|
+
export { onlineManager } from './_tsup-dts-rollup.js';
|
|
14
|
+
export { QueriesObserver } from './_tsup-dts-rollup.js';
|
|
15
|
+
export { QueryCache } from './_tsup-dts-rollup.js';
|
|
16
|
+
export { QueryCacheNotifyEvent } from './_tsup-dts-rollup.js';
|
|
17
|
+
export { QueryClient } from './_tsup-dts-rollup.js';
|
|
18
|
+
export { QueryObserver } from './_tsup-dts-rollup.js';
|
|
19
|
+
export { CancelledError } from './_tsup-dts-rollup.js';
|
|
20
|
+
export { isCancelledError } from './_tsup-dts-rollup.js';
|
|
21
|
+
export { timeoutManager } from './_tsup-dts-rollup.js';
|
|
22
|
+
export { ManagedTimerId } from './_tsup-dts-rollup.js';
|
|
23
|
+
export { TimeoutCallback } from './_tsup-dts-rollup.js';
|
|
24
|
+
export { TimeoutProvider } from './_tsup-dts-rollup.js';
|
|
25
|
+
export { hashKey } from './_tsup-dts-rollup.js';
|
|
26
|
+
export { isServer } from './_tsup-dts-rollup.js';
|
|
27
|
+
export { keepPreviousData } from './_tsup-dts-rollup.js';
|
|
28
|
+
export { matchMutation } from './_tsup-dts-rollup.js';
|
|
29
|
+
export { matchQuery } from './_tsup-dts-rollup.js';
|
|
30
|
+
export { noop } from './_tsup-dts-rollup.js';
|
|
31
|
+
export { partialMatchKey } from './_tsup-dts-rollup.js';
|
|
32
|
+
export { replaceEqualDeep } from './_tsup-dts-rollup.js';
|
|
33
|
+
export { shouldThrowError } from './_tsup-dts-rollup.js';
|
|
34
|
+
export { skipToken } from './_tsup-dts-rollup.js';
|
|
35
|
+
export { MutationFilters } from './_tsup-dts-rollup.js';
|
|
36
|
+
export { QueryFilters } from './_tsup-dts-rollup.js';
|
|
37
|
+
export { SkipToken } from './_tsup-dts-rollup.js';
|
|
38
|
+
export { Updater } from './_tsup-dts-rollup.js';
|
|
39
|
+
export { experimental_streamedQuery } from './_tsup-dts-rollup.js';
|
|
40
|
+
export { DehydratedState_alias_1 as DehydratedState } from './_tsup-dts-rollup.js';
|
|
41
|
+
export { DehydrateOptions_alias_1 as DehydrateOptions } from './_tsup-dts-rollup.js';
|
|
42
|
+
export { HydrateOptions_alias_1 as HydrateOptions } from './_tsup-dts-rollup.js';
|
|
43
|
+
export { Mutation } from './_tsup-dts-rollup.js';
|
|
44
|
+
export { MutationState } from './_tsup-dts-rollup.js';
|
|
45
|
+
export { QueriesObserverOptions } from './_tsup-dts-rollup.js';
|
|
46
|
+
export { Query } from './_tsup-dts-rollup.js';
|
|
47
|
+
export { QueryState } from './_tsup-dts-rollup.js';
|
|
48
|
+
export { NonUndefinedGuard } from './_tsup-dts-rollup.js';
|
|
49
|
+
export { DistributiveOmit } from './_tsup-dts-rollup.js';
|
|
50
|
+
export { OmitKeyof } from './_tsup-dts-rollup.js';
|
|
51
|
+
export { Override } from './_tsup-dts-rollup.js';
|
|
52
|
+
export { NoInfer } from './_tsup-dts-rollup.js';
|
|
53
|
+
export { Register } from './_tsup-dts-rollup.js';
|
|
54
|
+
export { DefaultError } from './_tsup-dts-rollup.js';
|
|
55
|
+
export { QueryKey } from './_tsup-dts-rollup.js';
|
|
56
|
+
export { dataTagSymbol } from './_tsup-dts-rollup.js';
|
|
57
|
+
export { dataTagErrorSymbol } from './_tsup-dts-rollup.js';
|
|
58
|
+
export { unsetMarker } from './_tsup-dts-rollup.js';
|
|
59
|
+
export { UnsetMarker } from './_tsup-dts-rollup.js';
|
|
60
|
+
export { AnyDataTag } from './_tsup-dts-rollup.js';
|
|
61
|
+
export { DataTag } from './_tsup-dts-rollup.js';
|
|
62
|
+
export { InferDataFromTag } from './_tsup-dts-rollup.js';
|
|
63
|
+
export { InferErrorFromTag } from './_tsup-dts-rollup.js';
|
|
64
|
+
export { QueryFunction } from './_tsup-dts-rollup.js';
|
|
65
|
+
export { StaleTime } from './_tsup-dts-rollup.js';
|
|
66
|
+
export { StaleTimeFunction } from './_tsup-dts-rollup.js';
|
|
67
|
+
export { Enabled } from './_tsup-dts-rollup.js';
|
|
68
|
+
export { QueryPersister } from './_tsup-dts-rollup.js';
|
|
69
|
+
export { QueryFunctionContext } from './_tsup-dts-rollup.js';
|
|
70
|
+
export { InitialDataFunction } from './_tsup-dts-rollup.js';
|
|
71
|
+
export { PlaceholderDataFunction } from './_tsup-dts-rollup.js';
|
|
72
|
+
export { QueriesPlaceholderDataFunction } from './_tsup-dts-rollup.js';
|
|
73
|
+
export { QueryKeyHashFunction } from './_tsup-dts-rollup.js';
|
|
74
|
+
export { GetPreviousPageParamFunction } from './_tsup-dts-rollup.js';
|
|
75
|
+
export { GetNextPageParamFunction } from './_tsup-dts-rollup.js';
|
|
76
|
+
export { InfiniteData } from './_tsup-dts-rollup.js';
|
|
77
|
+
export { QueryMeta } from './_tsup-dts-rollup.js';
|
|
78
|
+
export { NetworkMode } from './_tsup-dts-rollup.js';
|
|
79
|
+
export { NotifyOnChangeProps } from './_tsup-dts-rollup.js';
|
|
80
|
+
export { QueryOptions } from './_tsup-dts-rollup.js';
|
|
81
|
+
export { InitialPageParam } from './_tsup-dts-rollup.js';
|
|
82
|
+
export { InfiniteQueryPageParamsOptions } from './_tsup-dts-rollup.js';
|
|
83
|
+
export { ThrowOnError } from './_tsup-dts-rollup.js';
|
|
84
|
+
export { QueryObserverOptions } from './_tsup-dts-rollup.js';
|
|
85
|
+
export { WithRequired } from './_tsup-dts-rollup.js';
|
|
86
|
+
export { DefaultedQueryObserverOptions } from './_tsup-dts-rollup.js';
|
|
87
|
+
export { InfiniteQueryObserverOptions } from './_tsup-dts-rollup.js';
|
|
88
|
+
export { DefaultedInfiniteQueryObserverOptions } from './_tsup-dts-rollup.js';
|
|
89
|
+
export { FetchQueryOptions } from './_tsup-dts-rollup.js';
|
|
90
|
+
export { EnsureQueryDataOptions } from './_tsup-dts-rollup.js';
|
|
91
|
+
export { EnsureInfiniteQueryDataOptions } from './_tsup-dts-rollup.js';
|
|
92
|
+
export { FetchInfiniteQueryOptions } from './_tsup-dts-rollup.js';
|
|
93
|
+
export { ResultOptions } from './_tsup-dts-rollup.js';
|
|
94
|
+
export { RefetchOptions } from './_tsup-dts-rollup.js';
|
|
95
|
+
export { InvalidateQueryFilters } from './_tsup-dts-rollup.js';
|
|
96
|
+
export { RefetchQueryFilters } from './_tsup-dts-rollup.js';
|
|
97
|
+
export { InvalidateOptions } from './_tsup-dts-rollup.js';
|
|
98
|
+
export { ResetOptions } from './_tsup-dts-rollup.js';
|
|
99
|
+
export { FetchNextPageOptions } from './_tsup-dts-rollup.js';
|
|
100
|
+
export { FetchPreviousPageOptions } from './_tsup-dts-rollup.js';
|
|
101
|
+
export { QueryStatus } from './_tsup-dts-rollup.js';
|
|
102
|
+
export { FetchStatus } from './_tsup-dts-rollup.js';
|
|
103
|
+
export { QueryObserverBaseResult } from './_tsup-dts-rollup.js';
|
|
104
|
+
export { QueryObserverPendingResult } from './_tsup-dts-rollup.js';
|
|
105
|
+
export { QueryObserverLoadingResult } from './_tsup-dts-rollup.js';
|
|
106
|
+
export { QueryObserverLoadingErrorResult } from './_tsup-dts-rollup.js';
|
|
107
|
+
export { QueryObserverRefetchErrorResult } from './_tsup-dts-rollup.js';
|
|
108
|
+
export { QueryObserverSuccessResult } from './_tsup-dts-rollup.js';
|
|
109
|
+
export { QueryObserverPlaceholderResult } from './_tsup-dts-rollup.js';
|
|
110
|
+
export { DefinedQueryObserverResult } from './_tsup-dts-rollup.js';
|
|
111
|
+
export { QueryObserverResult } from './_tsup-dts-rollup.js';
|
|
112
|
+
export { InfiniteQueryObserverBaseResult } from './_tsup-dts-rollup.js';
|
|
113
|
+
export { InfiniteQueryObserverPendingResult } from './_tsup-dts-rollup.js';
|
|
114
|
+
export { InfiniteQueryObserverLoadingResult } from './_tsup-dts-rollup.js';
|
|
115
|
+
export { InfiniteQueryObserverLoadingErrorResult } from './_tsup-dts-rollup.js';
|
|
116
|
+
export { InfiniteQueryObserverRefetchErrorResult } from './_tsup-dts-rollup.js';
|
|
117
|
+
export { InfiniteQueryObserverSuccessResult } from './_tsup-dts-rollup.js';
|
|
118
|
+
export { InfiniteQueryObserverPlaceholderResult } from './_tsup-dts-rollup.js';
|
|
119
|
+
export { DefinedInfiniteQueryObserverResult } from './_tsup-dts-rollup.js';
|
|
120
|
+
export { InfiniteQueryObserverResult } from './_tsup-dts-rollup.js';
|
|
121
|
+
export { MutationKey } from './_tsup-dts-rollup.js';
|
|
122
|
+
export { MutationStatus } from './_tsup-dts-rollup.js';
|
|
123
|
+
export { MutationScope } from './_tsup-dts-rollup.js';
|
|
124
|
+
export { MutationMeta } from './_tsup-dts-rollup.js';
|
|
125
|
+
export { MutationFunctionContext } from './_tsup-dts-rollup.js';
|
|
126
|
+
export { MutationFunction } from './_tsup-dts-rollup.js';
|
|
127
|
+
export { MutationOptions } from './_tsup-dts-rollup.js';
|
|
128
|
+
export { MutationObserverOptions } from './_tsup-dts-rollup.js';
|
|
129
|
+
export { MutateOptions } from './_tsup-dts-rollup.js';
|
|
130
|
+
export { MutateFunction } from './_tsup-dts-rollup.js';
|
|
131
|
+
export { MutationObserverBaseResult } from './_tsup-dts-rollup.js';
|
|
132
|
+
export { MutationObserverIdleResult } from './_tsup-dts-rollup.js';
|
|
133
|
+
export { MutationObserverLoadingResult } from './_tsup-dts-rollup.js';
|
|
134
|
+
export { MutationObserverErrorResult } from './_tsup-dts-rollup.js';
|
|
135
|
+
export { MutationObserverSuccessResult } from './_tsup-dts-rollup.js';
|
|
136
|
+
export { MutationObserverResult } from './_tsup-dts-rollup.js';
|
|
137
|
+
export { QueryClientConfig } from './_tsup-dts-rollup.js';
|
|
138
|
+
export { DefaultOptions } from './_tsup-dts-rollup.js';
|
|
139
|
+
export { CancelOptions } from './_tsup-dts-rollup.js';
|
|
140
|
+
export { SetDataOptions } from './_tsup-dts-rollup.js';
|
|
141
|
+
export { NotifyEventType } from './_tsup-dts-rollup.js';
|
|
142
|
+
export { NotifyEvent } from './_tsup-dts-rollup.js';
|
package/build/legacy/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import "./chunk-PXG64RU4.js";
|
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
4
|
import { focusManager } from "./focusManager.js";
|
|
5
|
+
import { environmentManager } from "./environmentManager.js";
|
|
5
6
|
import {
|
|
6
7
|
defaultShouldDehydrateMutation,
|
|
7
8
|
defaultShouldDehydrateQuery,
|
|
@@ -52,6 +53,7 @@ export {
|
|
|
52
53
|
defaultShouldDehydrateMutation,
|
|
53
54
|
defaultShouldDehydrateQuery,
|
|
54
55
|
dehydrate,
|
|
56
|
+
environmentManager,
|
|
55
57
|
streamedQuery as experimental_streamedQuery,
|
|
56
58
|
focusManager,
|
|
57
59
|
hashKey,
|