v1.0 with SW PWA enabled
This commit is contained in:
91
frontend/node_modules/@tanstack/react-query/build/legacy/HydrationBoundary.cjs
generated
vendored
Normal file
91
frontend/node_modules/@tanstack/react-query/build/legacy/HydrationBoundary.cjs
generated
vendored
Normal file
@ -0,0 +1,91 @@
|
||||
"use strict";
|
||||
"use client";
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/HydrationBoundary.tsx
|
||||
var HydrationBoundary_exports = {};
|
||||
__export(HydrationBoundary_exports, {
|
||||
HydrationBoundary: () => HydrationBoundary
|
||||
});
|
||||
module.exports = __toCommonJS(HydrationBoundary_exports);
|
||||
var React = __toESM(require("react"), 1);
|
||||
var import_query_core = require("@tanstack/query-core");
|
||||
var import_QueryClientProvider = require("./QueryClientProvider.cjs");
|
||||
var HydrationBoundary = ({
|
||||
children,
|
||||
options = {},
|
||||
state,
|
||||
queryClient
|
||||
}) => {
|
||||
const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
|
||||
const optionsRef = React.useRef(options);
|
||||
React.useEffect(() => {
|
||||
optionsRef.current = options;
|
||||
});
|
||||
const hydrationQueue = React.useMemo(() => {
|
||||
if (state) {
|
||||
if (typeof state !== "object") {
|
||||
return;
|
||||
}
|
||||
const queryCache = client.getQueryCache();
|
||||
const queries = state.queries || [];
|
||||
const newQueries = [];
|
||||
const existingQueries = [];
|
||||
for (const dehydratedQuery of queries) {
|
||||
const existingQuery = queryCache.get(dehydratedQuery.queryHash);
|
||||
if (!existingQuery) {
|
||||
newQueries.push(dehydratedQuery);
|
||||
} else {
|
||||
const hydrationIsNewer = dehydratedQuery.state.dataUpdatedAt > existingQuery.state.dataUpdatedAt || dehydratedQuery.promise && existingQuery.state.status !== "pending" && existingQuery.state.fetchStatus !== "fetching" && dehydratedQuery.dehydratedAt !== void 0 && dehydratedQuery.dehydratedAt > existingQuery.state.dataUpdatedAt;
|
||||
if (hydrationIsNewer) {
|
||||
existingQueries.push(dehydratedQuery);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (newQueries.length > 0) {
|
||||
(0, import_query_core.hydrate)(client, { queries: newQueries }, optionsRef.current);
|
||||
}
|
||||
if (existingQueries.length > 0) {
|
||||
return existingQueries;
|
||||
}
|
||||
}
|
||||
return void 0;
|
||||
}, [client, state]);
|
||||
React.useEffect(() => {
|
||||
if (hydrationQueue) {
|
||||
(0, import_query_core.hydrate)(client, { queries: hydrationQueue }, optionsRef.current);
|
||||
}
|
||||
}, [client, hydrationQueue]);
|
||||
return children;
|
||||
};
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
HydrationBoundary
|
||||
});
|
||||
//# sourceMappingURL=HydrationBoundary.cjs.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/HydrationBoundary.cjs.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/HydrationBoundary.cjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
14
frontend/node_modules/@tanstack/react-query/build/legacy/HydrationBoundary.d.cts
generated
vendored
Normal file
14
frontend/node_modules/@tanstack/react-query/build/legacy/HydrationBoundary.d.cts
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
import * as React from 'react';
|
||||
import { DehydratedState, OmitKeyof, HydrateOptions, QueryClient } from '@tanstack/query-core';
|
||||
|
||||
interface HydrationBoundaryProps {
|
||||
state: DehydratedState | null | undefined;
|
||||
options?: OmitKeyof<HydrateOptions, 'defaultOptions'> & {
|
||||
defaultOptions?: OmitKeyof<Exclude<HydrateOptions['defaultOptions'], undefined>, 'mutations'>;
|
||||
};
|
||||
children?: React.ReactNode;
|
||||
queryClient?: QueryClient;
|
||||
}
|
||||
declare const HydrationBoundary: ({ children, options, state, queryClient, }: HydrationBoundaryProps) => React.ReactElement;
|
||||
|
||||
export { HydrationBoundary, type HydrationBoundaryProps };
|
||||
14
frontend/node_modules/@tanstack/react-query/build/legacy/HydrationBoundary.d.ts
generated
vendored
Normal file
14
frontend/node_modules/@tanstack/react-query/build/legacy/HydrationBoundary.d.ts
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
import * as React from 'react';
|
||||
import { DehydratedState, OmitKeyof, HydrateOptions, QueryClient } from '@tanstack/query-core';
|
||||
|
||||
interface HydrationBoundaryProps {
|
||||
state: DehydratedState | null | undefined;
|
||||
options?: OmitKeyof<HydrateOptions, 'defaultOptions'> & {
|
||||
defaultOptions?: OmitKeyof<Exclude<HydrateOptions['defaultOptions'], undefined>, 'mutations'>;
|
||||
};
|
||||
children?: React.ReactNode;
|
||||
queryClient?: QueryClient;
|
||||
}
|
||||
declare const HydrationBoundary: ({ children, options, state, queryClient, }: HydrationBoundaryProps) => React.ReactElement;
|
||||
|
||||
export { HydrationBoundary, type HydrationBoundaryProps };
|
||||
57
frontend/node_modules/@tanstack/react-query/build/legacy/HydrationBoundary.js
generated
vendored
Normal file
57
frontend/node_modules/@tanstack/react-query/build/legacy/HydrationBoundary.js
generated
vendored
Normal file
@ -0,0 +1,57 @@
|
||||
"use client";
|
||||
|
||||
// src/HydrationBoundary.tsx
|
||||
import * as React from "react";
|
||||
import { hydrate } from "@tanstack/query-core";
|
||||
import { useQueryClient } from "./QueryClientProvider.js";
|
||||
var HydrationBoundary = ({
|
||||
children,
|
||||
options = {},
|
||||
state,
|
||||
queryClient
|
||||
}) => {
|
||||
const client = useQueryClient(queryClient);
|
||||
const optionsRef = React.useRef(options);
|
||||
React.useEffect(() => {
|
||||
optionsRef.current = options;
|
||||
});
|
||||
const hydrationQueue = React.useMemo(() => {
|
||||
if (state) {
|
||||
if (typeof state !== "object") {
|
||||
return;
|
||||
}
|
||||
const queryCache = client.getQueryCache();
|
||||
const queries = state.queries || [];
|
||||
const newQueries = [];
|
||||
const existingQueries = [];
|
||||
for (const dehydratedQuery of queries) {
|
||||
const existingQuery = queryCache.get(dehydratedQuery.queryHash);
|
||||
if (!existingQuery) {
|
||||
newQueries.push(dehydratedQuery);
|
||||
} else {
|
||||
const hydrationIsNewer = dehydratedQuery.state.dataUpdatedAt > existingQuery.state.dataUpdatedAt || dehydratedQuery.promise && existingQuery.state.status !== "pending" && existingQuery.state.fetchStatus !== "fetching" && dehydratedQuery.dehydratedAt !== void 0 && dehydratedQuery.dehydratedAt > existingQuery.state.dataUpdatedAt;
|
||||
if (hydrationIsNewer) {
|
||||
existingQueries.push(dehydratedQuery);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (newQueries.length > 0) {
|
||||
hydrate(client, { queries: newQueries }, optionsRef.current);
|
||||
}
|
||||
if (existingQueries.length > 0) {
|
||||
return existingQueries;
|
||||
}
|
||||
}
|
||||
return void 0;
|
||||
}, [client, state]);
|
||||
React.useEffect(() => {
|
||||
if (hydrationQueue) {
|
||||
hydrate(client, { queries: hydrationQueue }, optionsRef.current);
|
||||
}
|
||||
}, [client, hydrationQueue]);
|
||||
return children;
|
||||
};
|
||||
export {
|
||||
HydrationBoundary
|
||||
};
|
||||
//# sourceMappingURL=HydrationBoundary.js.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/HydrationBoundary.js.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/HydrationBoundary.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
47
frontend/node_modules/@tanstack/react-query/build/legacy/IsRestoringProvider.cjs
generated
vendored
Normal file
47
frontend/node_modules/@tanstack/react-query/build/legacy/IsRestoringProvider.cjs
generated
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
"use client";
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/IsRestoringProvider.ts
|
||||
var IsRestoringProvider_exports = {};
|
||||
__export(IsRestoringProvider_exports, {
|
||||
IsRestoringProvider: () => IsRestoringProvider,
|
||||
useIsRestoring: () => useIsRestoring
|
||||
});
|
||||
module.exports = __toCommonJS(IsRestoringProvider_exports);
|
||||
var React = __toESM(require("react"), 1);
|
||||
var IsRestoringContext = React.createContext(false);
|
||||
var useIsRestoring = () => React.useContext(IsRestoringContext);
|
||||
var IsRestoringProvider = IsRestoringContext.Provider;
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
IsRestoringProvider,
|
||||
useIsRestoring
|
||||
});
|
||||
//# sourceMappingURL=IsRestoringProvider.cjs.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/IsRestoringProvider.cjs.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/IsRestoringProvider.cjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/IsRestoringProvider.ts"],"sourcesContent":["'use client'\nimport * as React from 'react'\n\nconst IsRestoringContext = React.createContext(false)\n\nexport const useIsRestoring = () => React.useContext(IsRestoringContext)\nexport const IsRestoringProvider = IsRestoringContext.Provider\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,YAAuB;AAEvB,IAAM,qBAA2B,oBAAc,KAAK;AAE7C,IAAM,iBAAiB,MAAY,iBAAW,kBAAkB;AAChE,IAAM,sBAAsB,mBAAmB;","names":[]}
|
||||
6
frontend/node_modules/@tanstack/react-query/build/legacy/IsRestoringProvider.d.cts
generated
vendored
Normal file
6
frontend/node_modules/@tanstack/react-query/build/legacy/IsRestoringProvider.d.cts
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
import * as React from 'react';
|
||||
|
||||
declare const useIsRestoring: () => boolean;
|
||||
declare const IsRestoringProvider: React.Provider<boolean>;
|
||||
|
||||
export { IsRestoringProvider, useIsRestoring };
|
||||
6
frontend/node_modules/@tanstack/react-query/build/legacy/IsRestoringProvider.d.ts
generated
vendored
Normal file
6
frontend/node_modules/@tanstack/react-query/build/legacy/IsRestoringProvider.d.ts
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
import * as React from 'react';
|
||||
|
||||
declare const useIsRestoring: () => boolean;
|
||||
declare const IsRestoringProvider: React.Provider<boolean>;
|
||||
|
||||
export { IsRestoringProvider, useIsRestoring };
|
||||
12
frontend/node_modules/@tanstack/react-query/build/legacy/IsRestoringProvider.js
generated
vendored
Normal file
12
frontend/node_modules/@tanstack/react-query/build/legacy/IsRestoringProvider.js
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
"use client";
|
||||
|
||||
// src/IsRestoringProvider.ts
|
||||
import * as React from "react";
|
||||
var IsRestoringContext = React.createContext(false);
|
||||
var useIsRestoring = () => React.useContext(IsRestoringContext);
|
||||
var IsRestoringProvider = IsRestoringContext.Provider;
|
||||
export {
|
||||
IsRestoringProvider,
|
||||
useIsRestoring
|
||||
};
|
||||
//# sourceMappingURL=IsRestoringProvider.js.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/IsRestoringProvider.js.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/IsRestoringProvider.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/IsRestoringProvider.ts"],"sourcesContent":["'use client'\nimport * as React from 'react'\n\nconst IsRestoringContext = React.createContext(false)\n\nexport const useIsRestoring = () => React.useContext(IsRestoringContext)\nexport const IsRestoringProvider = IsRestoringContext.Provider\n"],"mappings":";;;AACA,YAAY,WAAW;AAEvB,IAAM,qBAA2B,oBAAc,KAAK;AAE7C,IAAM,iBAAiB,MAAY,iBAAW,kBAAkB;AAChE,IAAM,sBAAsB,mBAAmB;","names":[]}
|
||||
72
frontend/node_modules/@tanstack/react-query/build/legacy/QueryClientProvider.cjs
generated
vendored
Normal file
72
frontend/node_modules/@tanstack/react-query/build/legacy/QueryClientProvider.cjs
generated
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
"use strict";
|
||||
"use client";
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/QueryClientProvider.tsx
|
||||
var QueryClientProvider_exports = {};
|
||||
__export(QueryClientProvider_exports, {
|
||||
QueryClientContext: () => QueryClientContext,
|
||||
QueryClientProvider: () => QueryClientProvider,
|
||||
useQueryClient: () => useQueryClient
|
||||
});
|
||||
module.exports = __toCommonJS(QueryClientProvider_exports);
|
||||
var React = __toESM(require("react"), 1);
|
||||
var import_jsx_runtime = require("react/jsx-runtime");
|
||||
var QueryClientContext = React.createContext(
|
||||
void 0
|
||||
);
|
||||
var useQueryClient = (queryClient) => {
|
||||
const client = React.useContext(QueryClientContext);
|
||||
if (queryClient) {
|
||||
return queryClient;
|
||||
}
|
||||
if (!client) {
|
||||
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
||||
}
|
||||
return client;
|
||||
};
|
||||
var QueryClientProvider = ({
|
||||
client,
|
||||
children
|
||||
}) => {
|
||||
React.useEffect(() => {
|
||||
client.mount();
|
||||
return () => {
|
||||
client.unmount();
|
||||
};
|
||||
}, [client]);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QueryClientContext.Provider, { value: client, children });
|
||||
};
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
QueryClientContext,
|
||||
QueryClientProvider,
|
||||
useQueryClient
|
||||
});
|
||||
//# sourceMappingURL=QueryClientProvider.cjs.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/QueryClientProvider.cjs.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/QueryClientProvider.cjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/QueryClientProvider.tsx"],"sourcesContent":["'use client'\nimport * as React from 'react'\n\nimport type { QueryClient } from '@tanstack/query-core'\n\nexport const QueryClientContext = React.createContext<QueryClient | undefined>(\n undefined,\n)\n\nexport const useQueryClient = (queryClient?: QueryClient) => {\n const client = React.useContext(QueryClientContext)\n\n if (queryClient) {\n return queryClient\n }\n\n if (!client) {\n throw new Error('No QueryClient set, use QueryClientProvider to set one')\n }\n\n return client\n}\n\nexport type QueryClientProviderProps = {\n client: QueryClient\n children?: React.ReactNode\n}\n\nexport const QueryClientProvider = ({\n client,\n children,\n}: QueryClientProviderProps): React.JSX.Element => {\n React.useEffect(() => {\n client.mount()\n return () => {\n client.unmount()\n }\n }, [client])\n\n return (\n <QueryClientContext.Provider value={client}>\n {children}\n </QueryClientContext.Provider>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,YAAuB;AAuCnB;AAnCG,IAAM,qBAA2B;AAAA,EACtC;AACF;AAEO,IAAM,iBAAiB,CAAC,gBAA8B;AAC3D,QAAM,SAAe,iBAAW,kBAAkB;AAElD,MAAI,aAAa;AACf,WAAO;AAAA,EACT;AAEA,MAAI,CAAC,QAAQ;AACX,UAAM,IAAI,MAAM,wDAAwD;AAAA,EAC1E;AAEA,SAAO;AACT;AAOO,IAAM,sBAAsB,CAAC;AAAA,EAClC;AAAA,EACA;AACF,MAAmD;AACjD,EAAM,gBAAU,MAAM;AACpB,WAAO,MAAM;AACb,WAAO,MAAM;AACX,aAAO,QAAQ;AAAA,IACjB;AAAA,EACF,GAAG,CAAC,MAAM,CAAC;AAEX,SACE,4CAAC,mBAAmB,UAAnB,EAA4B,OAAO,QACjC,UACH;AAEJ;","names":[]}
|
||||
12
frontend/node_modules/@tanstack/react-query/build/legacy/QueryClientProvider.d.cts
generated
vendored
Normal file
12
frontend/node_modules/@tanstack/react-query/build/legacy/QueryClientProvider.d.cts
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
import * as React from 'react';
|
||||
import { QueryClient } from '@tanstack/query-core';
|
||||
|
||||
declare const QueryClientContext: React.Context<QueryClient | undefined>;
|
||||
declare const useQueryClient: (queryClient?: QueryClient) => QueryClient;
|
||||
type QueryClientProviderProps = {
|
||||
client: QueryClient;
|
||||
children?: React.ReactNode;
|
||||
};
|
||||
declare const QueryClientProvider: ({ client, children, }: QueryClientProviderProps) => React.JSX.Element;
|
||||
|
||||
export { QueryClientContext, QueryClientProvider, type QueryClientProviderProps, useQueryClient };
|
||||
12
frontend/node_modules/@tanstack/react-query/build/legacy/QueryClientProvider.d.ts
generated
vendored
Normal file
12
frontend/node_modules/@tanstack/react-query/build/legacy/QueryClientProvider.d.ts
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
import * as React from 'react';
|
||||
import { QueryClient } from '@tanstack/query-core';
|
||||
|
||||
declare const QueryClientContext: React.Context<QueryClient | undefined>;
|
||||
declare const useQueryClient: (queryClient?: QueryClient) => QueryClient;
|
||||
type QueryClientProviderProps = {
|
||||
client: QueryClient;
|
||||
children?: React.ReactNode;
|
||||
};
|
||||
declare const QueryClientProvider: ({ client, children, }: QueryClientProviderProps) => React.JSX.Element;
|
||||
|
||||
export { QueryClientContext, QueryClientProvider, type QueryClientProviderProps, useQueryClient };
|
||||
36
frontend/node_modules/@tanstack/react-query/build/legacy/QueryClientProvider.js
generated
vendored
Normal file
36
frontend/node_modules/@tanstack/react-query/build/legacy/QueryClientProvider.js
generated
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
"use client";
|
||||
|
||||
// src/QueryClientProvider.tsx
|
||||
import * as React from "react";
|
||||
import { jsx } from "react/jsx-runtime";
|
||||
var QueryClientContext = React.createContext(
|
||||
void 0
|
||||
);
|
||||
var useQueryClient = (queryClient) => {
|
||||
const client = React.useContext(QueryClientContext);
|
||||
if (queryClient) {
|
||||
return queryClient;
|
||||
}
|
||||
if (!client) {
|
||||
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
||||
}
|
||||
return client;
|
||||
};
|
||||
var QueryClientProvider = ({
|
||||
client,
|
||||
children
|
||||
}) => {
|
||||
React.useEffect(() => {
|
||||
client.mount();
|
||||
return () => {
|
||||
client.unmount();
|
||||
};
|
||||
}, [client]);
|
||||
return /* @__PURE__ */ jsx(QueryClientContext.Provider, { value: client, children });
|
||||
};
|
||||
export {
|
||||
QueryClientContext,
|
||||
QueryClientProvider,
|
||||
useQueryClient
|
||||
};
|
||||
//# sourceMappingURL=QueryClientProvider.js.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/QueryClientProvider.js.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/QueryClientProvider.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/QueryClientProvider.tsx"],"sourcesContent":["'use client'\nimport * as React from 'react'\n\nimport type { QueryClient } from '@tanstack/query-core'\n\nexport const QueryClientContext = React.createContext<QueryClient | undefined>(\n undefined,\n)\n\nexport const useQueryClient = (queryClient?: QueryClient) => {\n const client = React.useContext(QueryClientContext)\n\n if (queryClient) {\n return queryClient\n }\n\n if (!client) {\n throw new Error('No QueryClient set, use QueryClientProvider to set one')\n }\n\n return client\n}\n\nexport type QueryClientProviderProps = {\n client: QueryClient\n children?: React.ReactNode\n}\n\nexport const QueryClientProvider = ({\n client,\n children,\n}: QueryClientProviderProps): React.JSX.Element => {\n React.useEffect(() => {\n client.mount()\n return () => {\n client.unmount()\n }\n }, [client])\n\n return (\n <QueryClientContext.Provider value={client}>\n {children}\n </QueryClientContext.Provider>\n )\n}\n"],"mappings":";;;AACA,YAAY,WAAW;AAuCnB;AAnCG,IAAM,qBAA2B;AAAA,EACtC;AACF;AAEO,IAAM,iBAAiB,CAAC,gBAA8B;AAC3D,QAAM,SAAe,iBAAW,kBAAkB;AAElD,MAAI,aAAa;AACf,WAAO;AAAA,EACT;AAEA,MAAI,CAAC,QAAQ;AACX,UAAM,IAAI,MAAM,wDAAwD;AAAA,EAC1E;AAEA,SAAO;AACT;AAOO,IAAM,sBAAsB,CAAC;AAAA,EAClC;AAAA,EACA;AACF,MAAmD;AACjD,EAAM,gBAAU,MAAM;AACpB,WAAO,MAAM;AACb,WAAO,MAAM;AACX,aAAO,QAAQ;AAAA,IACjB;AAAA,EACF,GAAG,CAAC,MAAM,CAAC;AAEX,SACE,oBAAC,mBAAmB,UAAnB,EAA4B,OAAO,QACjC,UACH;AAEJ;","names":[]}
|
||||
67
frontend/node_modules/@tanstack/react-query/build/legacy/QueryErrorResetBoundary.cjs
generated
vendored
Normal file
67
frontend/node_modules/@tanstack/react-query/build/legacy/QueryErrorResetBoundary.cjs
generated
vendored
Normal file
@ -0,0 +1,67 @@
|
||||
"use strict";
|
||||
"use client";
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/QueryErrorResetBoundary.tsx
|
||||
var QueryErrorResetBoundary_exports = {};
|
||||
__export(QueryErrorResetBoundary_exports, {
|
||||
QueryErrorResetBoundary: () => QueryErrorResetBoundary,
|
||||
useQueryErrorResetBoundary: () => useQueryErrorResetBoundary
|
||||
});
|
||||
module.exports = __toCommonJS(QueryErrorResetBoundary_exports);
|
||||
var React = __toESM(require("react"), 1);
|
||||
var import_jsx_runtime = require("react/jsx-runtime");
|
||||
function createValue() {
|
||||
let isReset = false;
|
||||
return {
|
||||
clearReset: () => {
|
||||
isReset = false;
|
||||
},
|
||||
reset: () => {
|
||||
isReset = true;
|
||||
},
|
||||
isReset: () => {
|
||||
return isReset;
|
||||
}
|
||||
};
|
||||
}
|
||||
var QueryErrorResetBoundaryContext = React.createContext(createValue());
|
||||
var useQueryErrorResetBoundary = () => React.useContext(QueryErrorResetBoundaryContext);
|
||||
var QueryErrorResetBoundary = ({
|
||||
children
|
||||
}) => {
|
||||
const [value] = React.useState(() => createValue());
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QueryErrorResetBoundaryContext.Provider, { value, children: typeof children === "function" ? children(value) : children });
|
||||
};
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
QueryErrorResetBoundary,
|
||||
useQueryErrorResetBoundary
|
||||
});
|
||||
//# sourceMappingURL=QueryErrorResetBoundary.cjs.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/QueryErrorResetBoundary.cjs.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/QueryErrorResetBoundary.cjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/QueryErrorResetBoundary.tsx"],"sourcesContent":["'use client'\nimport * as React from 'react'\n\n// CONTEXT\nexport type QueryErrorResetFunction = () => void\nexport type QueryErrorIsResetFunction = () => boolean\nexport type QueryErrorClearResetFunction = () => void\n\nexport interface QueryErrorResetBoundaryValue {\n clearReset: QueryErrorClearResetFunction\n isReset: QueryErrorIsResetFunction\n reset: QueryErrorResetFunction\n}\n\nfunction createValue(): QueryErrorResetBoundaryValue {\n let isReset = false\n return {\n clearReset: () => {\n isReset = false\n },\n reset: () => {\n isReset = true\n },\n isReset: () => {\n return isReset\n },\n }\n}\n\nconst QueryErrorResetBoundaryContext = React.createContext(createValue())\n\n// HOOK\n\nexport const useQueryErrorResetBoundary = () =>\n React.useContext(QueryErrorResetBoundaryContext)\n\n// COMPONENT\n\nexport type QueryErrorResetBoundaryFunction = (\n value: QueryErrorResetBoundaryValue,\n) => React.ReactNode\n\nexport interface QueryErrorResetBoundaryProps {\n children: QueryErrorResetBoundaryFunction | React.ReactNode\n}\n\nexport const QueryErrorResetBoundary = ({\n children,\n}: QueryErrorResetBoundaryProps) => {\n const [value] = React.useState(() => createValue())\n return (\n <QueryErrorResetBoundaryContext.Provider value={value}>\n {typeof children === 'function' ? children(value) : children}\n </QueryErrorResetBoundaryContext.Provider>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,YAAuB;AAkDnB;AArCJ,SAAS,cAA4C;AACnD,MAAI,UAAU;AACd,SAAO;AAAA,IACL,YAAY,MAAM;AAChB,gBAAU;AAAA,IACZ;AAAA,IACA,OAAO,MAAM;AACX,gBAAU;AAAA,IACZ;AAAA,IACA,SAAS,MAAM;AACb,aAAO;AAAA,IACT;AAAA,EACF;AACF;AAEA,IAAM,iCAAuC,oBAAc,YAAY,CAAC;AAIjE,IAAM,6BAA6B,MAClC,iBAAW,8BAA8B;AAY1C,IAAM,0BAA0B,CAAC;AAAA,EACtC;AACF,MAAoC;AAClC,QAAM,CAAC,KAAK,IAAU,eAAS,MAAM,YAAY,CAAC;AAClD,SACE,4CAAC,+BAA+B,UAA/B,EAAwC,OACtC,iBAAO,aAAa,aAAa,SAAS,KAAK,IAAI,UACtD;AAEJ;","names":[]}
|
||||
19
frontend/node_modules/@tanstack/react-query/build/legacy/QueryErrorResetBoundary.d.cts
generated
vendored
Normal file
19
frontend/node_modules/@tanstack/react-query/build/legacy/QueryErrorResetBoundary.d.cts
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
import * as react_jsx_runtime from 'react/jsx-runtime';
|
||||
import * as React from 'react';
|
||||
|
||||
type QueryErrorResetFunction = () => void;
|
||||
type QueryErrorIsResetFunction = () => boolean;
|
||||
type QueryErrorClearResetFunction = () => void;
|
||||
interface QueryErrorResetBoundaryValue {
|
||||
clearReset: QueryErrorClearResetFunction;
|
||||
isReset: QueryErrorIsResetFunction;
|
||||
reset: QueryErrorResetFunction;
|
||||
}
|
||||
declare const useQueryErrorResetBoundary: () => QueryErrorResetBoundaryValue;
|
||||
type QueryErrorResetBoundaryFunction = (value: QueryErrorResetBoundaryValue) => React.ReactNode;
|
||||
interface QueryErrorResetBoundaryProps {
|
||||
children: QueryErrorResetBoundaryFunction | React.ReactNode;
|
||||
}
|
||||
declare const QueryErrorResetBoundary: ({ children, }: QueryErrorResetBoundaryProps) => react_jsx_runtime.JSX.Element;
|
||||
|
||||
export { type QueryErrorClearResetFunction, type QueryErrorIsResetFunction, QueryErrorResetBoundary, type QueryErrorResetBoundaryFunction, type QueryErrorResetBoundaryProps, type QueryErrorResetBoundaryValue, type QueryErrorResetFunction, useQueryErrorResetBoundary };
|
||||
19
frontend/node_modules/@tanstack/react-query/build/legacy/QueryErrorResetBoundary.d.ts
generated
vendored
Normal file
19
frontend/node_modules/@tanstack/react-query/build/legacy/QueryErrorResetBoundary.d.ts
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
import * as react_jsx_runtime from 'react/jsx-runtime';
|
||||
import * as React from 'react';
|
||||
|
||||
type QueryErrorResetFunction = () => void;
|
||||
type QueryErrorIsResetFunction = () => boolean;
|
||||
type QueryErrorClearResetFunction = () => void;
|
||||
interface QueryErrorResetBoundaryValue {
|
||||
clearReset: QueryErrorClearResetFunction;
|
||||
isReset: QueryErrorIsResetFunction;
|
||||
reset: QueryErrorResetFunction;
|
||||
}
|
||||
declare const useQueryErrorResetBoundary: () => QueryErrorResetBoundaryValue;
|
||||
type QueryErrorResetBoundaryFunction = (value: QueryErrorResetBoundaryValue) => React.ReactNode;
|
||||
interface QueryErrorResetBoundaryProps {
|
||||
children: QueryErrorResetBoundaryFunction | React.ReactNode;
|
||||
}
|
||||
declare const QueryErrorResetBoundary: ({ children, }: QueryErrorResetBoundaryProps) => react_jsx_runtime.JSX.Element;
|
||||
|
||||
export { type QueryErrorClearResetFunction, type QueryErrorIsResetFunction, QueryErrorResetBoundary, type QueryErrorResetBoundaryFunction, type QueryErrorResetBoundaryProps, type QueryErrorResetBoundaryValue, type QueryErrorResetFunction, useQueryErrorResetBoundary };
|
||||
32
frontend/node_modules/@tanstack/react-query/build/legacy/QueryErrorResetBoundary.js
generated
vendored
Normal file
32
frontend/node_modules/@tanstack/react-query/build/legacy/QueryErrorResetBoundary.js
generated
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
"use client";
|
||||
|
||||
// src/QueryErrorResetBoundary.tsx
|
||||
import * as React from "react";
|
||||
import { jsx } from "react/jsx-runtime";
|
||||
function createValue() {
|
||||
let isReset = false;
|
||||
return {
|
||||
clearReset: () => {
|
||||
isReset = false;
|
||||
},
|
||||
reset: () => {
|
||||
isReset = true;
|
||||
},
|
||||
isReset: () => {
|
||||
return isReset;
|
||||
}
|
||||
};
|
||||
}
|
||||
var QueryErrorResetBoundaryContext = React.createContext(createValue());
|
||||
var useQueryErrorResetBoundary = () => React.useContext(QueryErrorResetBoundaryContext);
|
||||
var QueryErrorResetBoundary = ({
|
||||
children
|
||||
}) => {
|
||||
const [value] = React.useState(() => createValue());
|
||||
return /* @__PURE__ */ jsx(QueryErrorResetBoundaryContext.Provider, { value, children: typeof children === "function" ? children(value) : children });
|
||||
};
|
||||
export {
|
||||
QueryErrorResetBoundary,
|
||||
useQueryErrorResetBoundary
|
||||
};
|
||||
//# sourceMappingURL=QueryErrorResetBoundary.js.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/QueryErrorResetBoundary.js.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/QueryErrorResetBoundary.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/QueryErrorResetBoundary.tsx"],"sourcesContent":["'use client'\nimport * as React from 'react'\n\n// CONTEXT\nexport type QueryErrorResetFunction = () => void\nexport type QueryErrorIsResetFunction = () => boolean\nexport type QueryErrorClearResetFunction = () => void\n\nexport interface QueryErrorResetBoundaryValue {\n clearReset: QueryErrorClearResetFunction\n isReset: QueryErrorIsResetFunction\n reset: QueryErrorResetFunction\n}\n\nfunction createValue(): QueryErrorResetBoundaryValue {\n let isReset = false\n return {\n clearReset: () => {\n isReset = false\n },\n reset: () => {\n isReset = true\n },\n isReset: () => {\n return isReset\n },\n }\n}\n\nconst QueryErrorResetBoundaryContext = React.createContext(createValue())\n\n// HOOK\n\nexport const useQueryErrorResetBoundary = () =>\n React.useContext(QueryErrorResetBoundaryContext)\n\n// COMPONENT\n\nexport type QueryErrorResetBoundaryFunction = (\n value: QueryErrorResetBoundaryValue,\n) => React.ReactNode\n\nexport interface QueryErrorResetBoundaryProps {\n children: QueryErrorResetBoundaryFunction | React.ReactNode\n}\n\nexport const QueryErrorResetBoundary = ({\n children,\n}: QueryErrorResetBoundaryProps) => {\n const [value] = React.useState(() => createValue())\n return (\n <QueryErrorResetBoundaryContext.Provider value={value}>\n {typeof children === 'function' ? children(value) : children}\n </QueryErrorResetBoundaryContext.Provider>\n )\n}\n"],"mappings":";;;AACA,YAAY,WAAW;AAkDnB;AArCJ,SAAS,cAA4C;AACnD,MAAI,UAAU;AACd,SAAO;AAAA,IACL,YAAY,MAAM;AAChB,gBAAU;AAAA,IACZ;AAAA,IACA,OAAO,MAAM;AACX,gBAAU;AAAA,IACZ;AAAA,IACA,SAAS,MAAM;AACb,aAAO;AAAA,IACT;AAAA,EACF;AACF;AAEA,IAAM,iCAAuC,oBAAc,YAAY,CAAC;AAIjE,IAAM,6BAA6B,MAClC,iBAAW,8BAA8B;AAY1C,IAAM,0BAA0B,CAAC;AAAA,EACtC;AACF,MAAoC;AAClC,QAAM,CAAC,KAAK,IAAU,eAAS,MAAM,YAAY,CAAC;AAClD,SACE,oBAAC,+BAA+B,UAA/B,EAAwC,OACtC,iBAAO,aAAa,aAAa,SAAS,KAAK,IAAI,UACtD;AAEJ;","names":[]}
|
||||
69
frontend/node_modules/@tanstack/react-query/build/legacy/errorBoundaryUtils.cjs
generated
vendored
Normal file
69
frontend/node_modules/@tanstack/react-query/build/legacy/errorBoundaryUtils.cjs
generated
vendored
Normal file
@ -0,0 +1,69 @@
|
||||
"use strict";
|
||||
"use client";
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/errorBoundaryUtils.ts
|
||||
var errorBoundaryUtils_exports = {};
|
||||
__export(errorBoundaryUtils_exports, {
|
||||
ensurePreventErrorBoundaryRetry: () => ensurePreventErrorBoundaryRetry,
|
||||
getHasError: () => getHasError,
|
||||
useClearResetErrorBoundary: () => useClearResetErrorBoundary
|
||||
});
|
||||
module.exports = __toCommonJS(errorBoundaryUtils_exports);
|
||||
var React = __toESM(require("react"), 1);
|
||||
var import_query_core = require("@tanstack/query-core");
|
||||
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {
|
||||
const throwOnError = (query == null ? void 0 : query.state.error) && typeof options.throwOnError === "function" ? (0, import_query_core.shouldThrowError)(options.throwOnError, [query.state.error, query]) : options.throwOnError;
|
||||
if (options.suspense || options.experimental_prefetchInRender || throwOnError) {
|
||||
if (!errorResetBoundary.isReset()) {
|
||||
options.retryOnMount = false;
|
||||
}
|
||||
}
|
||||
};
|
||||
var useClearResetErrorBoundary = (errorResetBoundary) => {
|
||||
React.useEffect(() => {
|
||||
errorResetBoundary.clearReset();
|
||||
}, [errorResetBoundary]);
|
||||
};
|
||||
var getHasError = ({
|
||||
result,
|
||||
errorResetBoundary,
|
||||
throwOnError,
|
||||
query,
|
||||
suspense
|
||||
}) => {
|
||||
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || (0, import_query_core.shouldThrowError)(throwOnError, [result.error, query]));
|
||||
};
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
ensurePreventErrorBoundaryRetry,
|
||||
getHasError,
|
||||
useClearResetErrorBoundary
|
||||
});
|
||||
//# sourceMappingURL=errorBoundaryUtils.cjs.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/errorBoundaryUtils.cjs.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/errorBoundaryUtils.cjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/errorBoundaryUtils.ts"],"sourcesContent":["'use client'\nimport * as React from 'react'\nimport { shouldThrowError } from '@tanstack/query-core'\nimport type {\n DefaultedQueryObserverOptions,\n Query,\n QueryKey,\n QueryObserverResult,\n ThrowOnError,\n} from '@tanstack/query-core'\nimport type { QueryErrorResetBoundaryValue } from './QueryErrorResetBoundary'\n\nexport const ensurePreventErrorBoundaryRetry = <\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey extends QueryKey,\n>(\n options: DefaultedQueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n errorResetBoundary: QueryErrorResetBoundaryValue,\n query: Query<TQueryFnData, TError, TQueryData, TQueryKey> | undefined,\n) => {\n const throwOnError =\n query?.state.error && typeof options.throwOnError === 'function'\n ? shouldThrowError(options.throwOnError, [query.state.error, query])\n : options.throwOnError\n\n if (\n options.suspense ||\n options.experimental_prefetchInRender ||\n throwOnError\n ) {\n // Prevent retrying failed query if the error boundary has not been reset yet\n if (!errorResetBoundary.isReset()) {\n options.retryOnMount = false\n }\n }\n}\n\nexport const useClearResetErrorBoundary = (\n errorResetBoundary: QueryErrorResetBoundaryValue,\n) => {\n React.useEffect(() => {\n errorResetBoundary.clearReset()\n }, [errorResetBoundary])\n}\n\nexport const getHasError = <\n TData,\n TError,\n TQueryFnData,\n TQueryData,\n TQueryKey extends QueryKey,\n>({\n result,\n errorResetBoundary,\n throwOnError,\n query,\n suspense,\n}: {\n result: QueryObserverResult<TData, TError>\n errorResetBoundary: QueryErrorResetBoundaryValue\n throwOnError: ThrowOnError<TQueryFnData, TError, TQueryData, TQueryKey>\n query: Query<TQueryFnData, TError, TQueryData, TQueryKey> | undefined\n suspense: boolean | undefined\n}) => {\n return (\n result.isError &&\n !errorResetBoundary.isReset() &&\n !result.isFetching &&\n query &&\n ((suspense && result.data === undefined) ||\n shouldThrowError(throwOnError, [result.error, query]))\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,YAAuB;AACvB,wBAAiC;AAU1B,IAAM,kCAAkC,CAO7C,SAOA,oBACA,UACG;AACH,QAAM,gBACJ,+BAAO,MAAM,UAAS,OAAO,QAAQ,iBAAiB,iBAClD,oCAAiB,QAAQ,cAAc,CAAC,MAAM,MAAM,OAAO,KAAK,CAAC,IACjE,QAAQ;AAEd,MACE,QAAQ,YACR,QAAQ,iCACR,cACA;AAEA,QAAI,CAAC,mBAAmB,QAAQ,GAAG;AACjC,cAAQ,eAAe;AAAA,IACzB;AAAA,EACF;AACF;AAEO,IAAM,6BAA6B,CACxC,uBACG;AACH,EAAM,gBAAU,MAAM;AACpB,uBAAmB,WAAW;AAAA,EAChC,GAAG,CAAC,kBAAkB,CAAC;AACzB;AAEO,IAAM,cAAc,CAMzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAMM;AACJ,SACE,OAAO,WACP,CAAC,mBAAmB,QAAQ,KAC5B,CAAC,OAAO,cACR,UACE,YAAY,OAAO,SAAS,cAC5B,oCAAiB,cAAc,CAAC,OAAO,OAAO,KAAK,CAAC;AAE1D;","names":[]}
|
||||
16
frontend/node_modules/@tanstack/react-query/build/legacy/errorBoundaryUtils.d.cts
generated
vendored
Normal file
16
frontend/node_modules/@tanstack/react-query/build/legacy/errorBoundaryUtils.d.cts
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
import { QueryKey, DefaultedQueryObserverOptions, Query, QueryObserverResult, ThrowOnError } from '@tanstack/query-core';
|
||||
import { QueryErrorResetBoundaryValue } from './QueryErrorResetBoundary.cjs';
|
||||
import 'react/jsx-runtime';
|
||||
import 'react';
|
||||
|
||||
declare const ensurePreventErrorBoundaryRetry: <TQueryFnData, TError, TData, TQueryData, TQueryKey extends QueryKey>(options: DefaultedQueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>, errorResetBoundary: QueryErrorResetBoundaryValue, query: Query<TQueryFnData, TError, TQueryData, TQueryKey> | undefined) => void;
|
||||
declare const useClearResetErrorBoundary: (errorResetBoundary: QueryErrorResetBoundaryValue) => void;
|
||||
declare const getHasError: <TData, TError, TQueryFnData, TQueryData, TQueryKey extends QueryKey>({ result, errorResetBoundary, throwOnError, query, suspense, }: {
|
||||
result: QueryObserverResult<TData, TError>;
|
||||
errorResetBoundary: QueryErrorResetBoundaryValue;
|
||||
throwOnError: ThrowOnError<TQueryFnData, TError, TQueryData, TQueryKey>;
|
||||
query: Query<TQueryFnData, TError, TQueryData, TQueryKey> | undefined;
|
||||
suspense: boolean | undefined;
|
||||
}) => boolean | undefined;
|
||||
|
||||
export { ensurePreventErrorBoundaryRetry, getHasError, useClearResetErrorBoundary };
|
||||
16
frontend/node_modules/@tanstack/react-query/build/legacy/errorBoundaryUtils.d.ts
generated
vendored
Normal file
16
frontend/node_modules/@tanstack/react-query/build/legacy/errorBoundaryUtils.d.ts
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
import { QueryKey, DefaultedQueryObserverOptions, Query, QueryObserverResult, ThrowOnError } from '@tanstack/query-core';
|
||||
import { QueryErrorResetBoundaryValue } from './QueryErrorResetBoundary.js';
|
||||
import 'react/jsx-runtime';
|
||||
import 'react';
|
||||
|
||||
declare const ensurePreventErrorBoundaryRetry: <TQueryFnData, TError, TData, TQueryData, TQueryKey extends QueryKey>(options: DefaultedQueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>, errorResetBoundary: QueryErrorResetBoundaryValue, query: Query<TQueryFnData, TError, TQueryData, TQueryKey> | undefined) => void;
|
||||
declare const useClearResetErrorBoundary: (errorResetBoundary: QueryErrorResetBoundaryValue) => void;
|
||||
declare const getHasError: <TData, TError, TQueryFnData, TQueryData, TQueryKey extends QueryKey>({ result, errorResetBoundary, throwOnError, query, suspense, }: {
|
||||
result: QueryObserverResult<TData, TError>;
|
||||
errorResetBoundary: QueryErrorResetBoundaryValue;
|
||||
throwOnError: ThrowOnError<TQueryFnData, TError, TQueryData, TQueryKey>;
|
||||
query: Query<TQueryFnData, TError, TQueryData, TQueryKey> | undefined;
|
||||
suspense: boolean | undefined;
|
||||
}) => boolean | undefined;
|
||||
|
||||
export { ensurePreventErrorBoundaryRetry, getHasError, useClearResetErrorBoundary };
|
||||
33
frontend/node_modules/@tanstack/react-query/build/legacy/errorBoundaryUtils.js
generated
vendored
Normal file
33
frontend/node_modules/@tanstack/react-query/build/legacy/errorBoundaryUtils.js
generated
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
"use client";
|
||||
|
||||
// src/errorBoundaryUtils.ts
|
||||
import * as React from "react";
|
||||
import { shouldThrowError } from "@tanstack/query-core";
|
||||
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {
|
||||
const throwOnError = (query == null ? void 0 : query.state.error) && typeof options.throwOnError === "function" ? shouldThrowError(options.throwOnError, [query.state.error, query]) : options.throwOnError;
|
||||
if (options.suspense || options.experimental_prefetchInRender || throwOnError) {
|
||||
if (!errorResetBoundary.isReset()) {
|
||||
options.retryOnMount = false;
|
||||
}
|
||||
}
|
||||
};
|
||||
var useClearResetErrorBoundary = (errorResetBoundary) => {
|
||||
React.useEffect(() => {
|
||||
errorResetBoundary.clearReset();
|
||||
}, [errorResetBoundary]);
|
||||
};
|
||||
var getHasError = ({
|
||||
result,
|
||||
errorResetBoundary,
|
||||
throwOnError,
|
||||
query,
|
||||
suspense
|
||||
}) => {
|
||||
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
|
||||
};
|
||||
export {
|
||||
ensurePreventErrorBoundaryRetry,
|
||||
getHasError,
|
||||
useClearResetErrorBoundary
|
||||
};
|
||||
//# sourceMappingURL=errorBoundaryUtils.js.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/errorBoundaryUtils.js.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/errorBoundaryUtils.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/errorBoundaryUtils.ts"],"sourcesContent":["'use client'\nimport * as React from 'react'\nimport { shouldThrowError } from '@tanstack/query-core'\nimport type {\n DefaultedQueryObserverOptions,\n Query,\n QueryKey,\n QueryObserverResult,\n ThrowOnError,\n} from '@tanstack/query-core'\nimport type { QueryErrorResetBoundaryValue } from './QueryErrorResetBoundary'\n\nexport const ensurePreventErrorBoundaryRetry = <\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey extends QueryKey,\n>(\n options: DefaultedQueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n errorResetBoundary: QueryErrorResetBoundaryValue,\n query: Query<TQueryFnData, TError, TQueryData, TQueryKey> | undefined,\n) => {\n const throwOnError =\n query?.state.error && typeof options.throwOnError === 'function'\n ? shouldThrowError(options.throwOnError, [query.state.error, query])\n : options.throwOnError\n\n if (\n options.suspense ||\n options.experimental_prefetchInRender ||\n throwOnError\n ) {\n // Prevent retrying failed query if the error boundary has not been reset yet\n if (!errorResetBoundary.isReset()) {\n options.retryOnMount = false\n }\n }\n}\n\nexport const useClearResetErrorBoundary = (\n errorResetBoundary: QueryErrorResetBoundaryValue,\n) => {\n React.useEffect(() => {\n errorResetBoundary.clearReset()\n }, [errorResetBoundary])\n}\n\nexport const getHasError = <\n TData,\n TError,\n TQueryFnData,\n TQueryData,\n TQueryKey extends QueryKey,\n>({\n result,\n errorResetBoundary,\n throwOnError,\n query,\n suspense,\n}: {\n result: QueryObserverResult<TData, TError>\n errorResetBoundary: QueryErrorResetBoundaryValue\n throwOnError: ThrowOnError<TQueryFnData, TError, TQueryData, TQueryKey>\n query: Query<TQueryFnData, TError, TQueryData, TQueryKey> | undefined\n suspense: boolean | undefined\n}) => {\n return (\n result.isError &&\n !errorResetBoundary.isReset() &&\n !result.isFetching &&\n query &&\n ((suspense && result.data === undefined) ||\n shouldThrowError(throwOnError, [result.error, query]))\n )\n}\n"],"mappings":";;;AACA,YAAY,WAAW;AACvB,SAAS,wBAAwB;AAU1B,IAAM,kCAAkC,CAO7C,SAOA,oBACA,UACG;AACH,QAAM,gBACJ,+BAAO,MAAM,UAAS,OAAO,QAAQ,iBAAiB,aAClD,iBAAiB,QAAQ,cAAc,CAAC,MAAM,MAAM,OAAO,KAAK,CAAC,IACjE,QAAQ;AAEd,MACE,QAAQ,YACR,QAAQ,iCACR,cACA;AAEA,QAAI,CAAC,mBAAmB,QAAQ,GAAG;AACjC,cAAQ,eAAe;AAAA,IACzB;AAAA,EACF;AACF;AAEO,IAAM,6BAA6B,CACxC,uBACG;AACH,EAAM,gBAAU,MAAM;AACpB,uBAAmB,WAAW;AAAA,EAChC,GAAG,CAAC,kBAAkB,CAAC;AACzB;AAEO,IAAM,cAAc,CAMzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAMM;AACJ,SACE,OAAO,WACP,CAAC,mBAAmB,QAAQ,KAC5B,CAAC,OAAO,cACR,UACE,YAAY,OAAO,SAAS,UAC5B,iBAAiB,cAAc,CAAC,OAAO,OAAO,KAAK,CAAC;AAE1D;","names":[]}
|
||||
97
frontend/node_modules/@tanstack/react-query/build/legacy/index.cjs
generated
vendored
Normal file
97
frontend/node_modules/@tanstack/react-query/build/legacy/index.cjs
generated
vendored
Normal file
@ -0,0 +1,97 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/index.ts
|
||||
var index_exports = {};
|
||||
__export(index_exports, {
|
||||
HydrationBoundary: () => import_HydrationBoundary.HydrationBoundary,
|
||||
IsRestoringProvider: () => import_IsRestoringProvider.IsRestoringProvider,
|
||||
QueryClientContext: () => import_QueryClientProvider.QueryClientContext,
|
||||
QueryClientProvider: () => import_QueryClientProvider.QueryClientProvider,
|
||||
QueryErrorResetBoundary: () => import_QueryErrorResetBoundary.QueryErrorResetBoundary,
|
||||
infiniteQueryOptions: () => import_infiniteQueryOptions.infiniteQueryOptions,
|
||||
mutationOptions: () => import_mutationOptions.mutationOptions,
|
||||
queryOptions: () => import_queryOptions.queryOptions,
|
||||
useInfiniteQuery: () => import_useInfiniteQuery.useInfiniteQuery,
|
||||
useIsFetching: () => import_useIsFetching.useIsFetching,
|
||||
useIsMutating: () => import_useMutationState.useIsMutating,
|
||||
useIsRestoring: () => import_IsRestoringProvider.useIsRestoring,
|
||||
useMutation: () => import_useMutation.useMutation,
|
||||
useMutationState: () => import_useMutationState.useMutationState,
|
||||
usePrefetchInfiniteQuery: () => import_usePrefetchInfiniteQuery.usePrefetchInfiniteQuery,
|
||||
usePrefetchQuery: () => import_usePrefetchQuery.usePrefetchQuery,
|
||||
useQueries: () => import_useQueries.useQueries,
|
||||
useQuery: () => import_useQuery.useQuery,
|
||||
useQueryClient: () => import_QueryClientProvider.useQueryClient,
|
||||
useQueryErrorResetBoundary: () => import_QueryErrorResetBoundary.useQueryErrorResetBoundary,
|
||||
useSuspenseInfiniteQuery: () => import_useSuspenseInfiniteQuery.useSuspenseInfiniteQuery,
|
||||
useSuspenseQueries: () => import_useSuspenseQueries.useSuspenseQueries,
|
||||
useSuspenseQuery: () => import_useSuspenseQuery.useSuspenseQuery
|
||||
});
|
||||
module.exports = __toCommonJS(index_exports);
|
||||
__reExport(index_exports, require("@tanstack/query-core"), module.exports);
|
||||
__reExport(index_exports, require("./types.cjs"), module.exports);
|
||||
var import_useQueries = require("./useQueries.cjs");
|
||||
var import_useQuery = require("./useQuery.cjs");
|
||||
var import_useSuspenseQuery = require("./useSuspenseQuery.cjs");
|
||||
var import_useSuspenseInfiniteQuery = require("./useSuspenseInfiniteQuery.cjs");
|
||||
var import_useSuspenseQueries = require("./useSuspenseQueries.cjs");
|
||||
var import_usePrefetchQuery = require("./usePrefetchQuery.cjs");
|
||||
var import_usePrefetchInfiniteQuery = require("./usePrefetchInfiniteQuery.cjs");
|
||||
var import_queryOptions = require("./queryOptions.cjs");
|
||||
var import_infiniteQueryOptions = require("./infiniteQueryOptions.cjs");
|
||||
var import_QueryClientProvider = require("./QueryClientProvider.cjs");
|
||||
var import_HydrationBoundary = require("./HydrationBoundary.cjs");
|
||||
var import_QueryErrorResetBoundary = require("./QueryErrorResetBoundary.cjs");
|
||||
var import_useIsFetching = require("./useIsFetching.cjs");
|
||||
var import_useMutationState = require("./useMutationState.cjs");
|
||||
var import_useMutation = require("./useMutation.cjs");
|
||||
var import_mutationOptions = require("./mutationOptions.cjs");
|
||||
var import_useInfiniteQuery = require("./useInfiniteQuery.cjs");
|
||||
var import_IsRestoringProvider = require("./IsRestoringProvider.cjs");
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
HydrationBoundary,
|
||||
IsRestoringProvider,
|
||||
QueryClientContext,
|
||||
QueryClientProvider,
|
||||
QueryErrorResetBoundary,
|
||||
infiniteQueryOptions,
|
||||
mutationOptions,
|
||||
queryOptions,
|
||||
useInfiniteQuery,
|
||||
useIsFetching,
|
||||
useIsMutating,
|
||||
useIsRestoring,
|
||||
useMutation,
|
||||
useMutationState,
|
||||
usePrefetchInfiniteQuery,
|
||||
usePrefetchQuery,
|
||||
useQueries,
|
||||
useQuery,
|
||||
useQueryClient,
|
||||
useQueryErrorResetBoundary,
|
||||
useSuspenseInfiniteQuery,
|
||||
useSuspenseQueries,
|
||||
useSuspenseQuery,
|
||||
...require("@tanstack/query-core"),
|
||||
...require("./types.cjs")
|
||||
});
|
||||
//# sourceMappingURL=index.cjs.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/index.cjs.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/index.cjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/* istanbul ignore file */\n\n// Re-export core\nexport * from '@tanstack/query-core'\n\n// React Query\nexport * from './types'\nexport { useQueries } from './useQueries'\nexport type { QueriesResults, QueriesOptions } from './useQueries'\nexport { useQuery } from './useQuery'\nexport { useSuspenseQuery } from './useSuspenseQuery'\nexport { useSuspenseInfiniteQuery } from './useSuspenseInfiniteQuery'\nexport { useSuspenseQueries } from './useSuspenseQueries'\nexport type {\n SuspenseQueriesResults,\n SuspenseQueriesOptions,\n} from './useSuspenseQueries'\nexport { usePrefetchQuery } from './usePrefetchQuery'\nexport { usePrefetchInfiniteQuery } from './usePrefetchInfiniteQuery'\nexport { queryOptions } from './queryOptions'\nexport type {\n DefinedInitialDataOptions,\n UndefinedInitialDataOptions,\n UnusedSkipTokenOptions,\n} from './queryOptions'\nexport { infiniteQueryOptions } from './infiniteQueryOptions'\nexport type {\n DefinedInitialDataInfiniteOptions,\n UndefinedInitialDataInfiniteOptions,\n UnusedSkipTokenInfiniteOptions,\n} from './infiniteQueryOptions'\nexport {\n QueryClientContext,\n QueryClientProvider,\n useQueryClient,\n} from './QueryClientProvider'\nexport type { QueryClientProviderProps } from './QueryClientProvider'\nexport type { QueryErrorResetBoundaryProps } from './QueryErrorResetBoundary'\nexport { HydrationBoundary } from './HydrationBoundary'\nexport type { HydrationBoundaryProps } from './HydrationBoundary'\nexport type {\n QueryErrorClearResetFunction,\n QueryErrorIsResetFunction,\n QueryErrorResetBoundaryFunction,\n QueryErrorResetFunction,\n} from './QueryErrorResetBoundary'\nexport {\n QueryErrorResetBoundary,\n useQueryErrorResetBoundary,\n} from './QueryErrorResetBoundary'\nexport { useIsFetching } from './useIsFetching'\nexport { useIsMutating, useMutationState } from './useMutationState'\nexport { useMutation } from './useMutation'\nexport { mutationOptions } from './mutationOptions'\nexport { useInfiniteQuery } from './useInfiniteQuery'\nexport { useIsRestoring, IsRestoringProvider } from './IsRestoringProvider'\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;AAGA,0BAAc,iCAHd;AAMA,0BAAc,wBANd;AAOA,wBAA2B;AAE3B,sBAAyB;AACzB,8BAAiC;AACjC,sCAAyC;AACzC,gCAAmC;AAKnC,8BAAiC;AACjC,sCAAyC;AACzC,0BAA6B;AAM7B,kCAAqC;AAMrC,iCAIO;AAGP,+BAAkC;AAQlC,qCAGO;AACP,2BAA8B;AAC9B,8BAAgD;AAChD,yBAA4B;AAC5B,6BAAgC;AAChC,8BAAiC;AACjC,iCAAoD;","names":[]}
|
||||
22
frontend/node_modules/@tanstack/react-query/build/legacy/index.d.cts
generated
vendored
Normal file
22
frontend/node_modules/@tanstack/react-query/build/legacy/index.d.cts
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
export * from '@tanstack/query-core';
|
||||
export { AnyUseBaseQueryOptions, AnyUseInfiniteQueryOptions, AnyUseMutationOptions, AnyUseQueryOptions, AnyUseSuspenseInfiniteQueryOptions, AnyUseSuspenseQueryOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, UseBaseMutationResult, UseBaseQueryOptions, UseBaseQueryResult, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutateAsyncFunction, UseMutateFunction, UseMutationOptions, UseMutationResult, UsePrefetchQueryOptions, UseQueryOptions, UseQueryResult, UseSuspenseInfiniteQueryOptions, UseSuspenseInfiniteQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from './types.cjs';
|
||||
export { QueriesOptions, QueriesResults, useQueries } from './useQueries.cjs';
|
||||
export { useQuery } from './useQuery.cjs';
|
||||
export { useSuspenseQuery } from './useSuspenseQuery.cjs';
|
||||
export { useSuspenseInfiniteQuery } from './useSuspenseInfiniteQuery.cjs';
|
||||
export { SuspenseQueriesOptions, SuspenseQueriesResults, useSuspenseQueries } from './useSuspenseQueries.cjs';
|
||||
export { usePrefetchQuery } from './usePrefetchQuery.cjs';
|
||||
export { usePrefetchInfiniteQuery } from './usePrefetchInfiniteQuery.cjs';
|
||||
export { DefinedInitialDataOptions, UndefinedInitialDataOptions, UnusedSkipTokenOptions, queryOptions } from './queryOptions.cjs';
|
||||
export { DefinedInitialDataInfiniteOptions, UndefinedInitialDataInfiniteOptions, UnusedSkipTokenInfiniteOptions, infiniteQueryOptions } from './infiniteQueryOptions.cjs';
|
||||
export { QueryClientContext, QueryClientProvider, QueryClientProviderProps, useQueryClient } from './QueryClientProvider.cjs';
|
||||
export { QueryErrorClearResetFunction, QueryErrorIsResetFunction, QueryErrorResetBoundary, QueryErrorResetBoundaryFunction, QueryErrorResetBoundaryProps, QueryErrorResetFunction, useQueryErrorResetBoundary } from './QueryErrorResetBoundary.cjs';
|
||||
export { HydrationBoundary, HydrationBoundaryProps } from './HydrationBoundary.cjs';
|
||||
export { useIsFetching } from './useIsFetching.cjs';
|
||||
export { useIsMutating, useMutationState } from './useMutationState.cjs';
|
||||
export { useMutation } from './useMutation.cjs';
|
||||
export { mutationOptions } from './mutationOptions.cjs';
|
||||
export { useInfiniteQuery } from './useInfiniteQuery.cjs';
|
||||
export { IsRestoringProvider, useIsRestoring } from './IsRestoringProvider.cjs';
|
||||
import 'react';
|
||||
import 'react/jsx-runtime';
|
||||
22
frontend/node_modules/@tanstack/react-query/build/legacy/index.d.ts
generated
vendored
Normal file
22
frontend/node_modules/@tanstack/react-query/build/legacy/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
export * from '@tanstack/query-core';
|
||||
export { AnyUseBaseQueryOptions, AnyUseInfiniteQueryOptions, AnyUseMutationOptions, AnyUseQueryOptions, AnyUseSuspenseInfiniteQueryOptions, AnyUseSuspenseQueryOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, UseBaseMutationResult, UseBaseQueryOptions, UseBaseQueryResult, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutateAsyncFunction, UseMutateFunction, UseMutationOptions, UseMutationResult, UsePrefetchQueryOptions, UseQueryOptions, UseQueryResult, UseSuspenseInfiniteQueryOptions, UseSuspenseInfiniteQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from './types.js';
|
||||
export { QueriesOptions, QueriesResults, useQueries } from './useQueries.js';
|
||||
export { useQuery } from './useQuery.js';
|
||||
export { useSuspenseQuery } from './useSuspenseQuery.js';
|
||||
export { useSuspenseInfiniteQuery } from './useSuspenseInfiniteQuery.js';
|
||||
export { SuspenseQueriesOptions, SuspenseQueriesResults, useSuspenseQueries } from './useSuspenseQueries.js';
|
||||
export { usePrefetchQuery } from './usePrefetchQuery.js';
|
||||
export { usePrefetchInfiniteQuery } from './usePrefetchInfiniteQuery.js';
|
||||
export { DefinedInitialDataOptions, UndefinedInitialDataOptions, UnusedSkipTokenOptions, queryOptions } from './queryOptions.js';
|
||||
export { DefinedInitialDataInfiniteOptions, UndefinedInitialDataInfiniteOptions, UnusedSkipTokenInfiniteOptions, infiniteQueryOptions } from './infiniteQueryOptions.js';
|
||||
export { QueryClientContext, QueryClientProvider, QueryClientProviderProps, useQueryClient } from './QueryClientProvider.js';
|
||||
export { QueryErrorClearResetFunction, QueryErrorIsResetFunction, QueryErrorResetBoundary, QueryErrorResetBoundaryFunction, QueryErrorResetBoundaryProps, QueryErrorResetFunction, useQueryErrorResetBoundary } from './QueryErrorResetBoundary.js';
|
||||
export { HydrationBoundary, HydrationBoundaryProps } from './HydrationBoundary.js';
|
||||
export { useIsFetching } from './useIsFetching.js';
|
||||
export { useIsMutating, useMutationState } from './useMutationState.js';
|
||||
export { useMutation } from './useMutation.js';
|
||||
export { mutationOptions } from './mutationOptions.js';
|
||||
export { useInfiniteQuery } from './useInfiniteQuery.js';
|
||||
export { IsRestoringProvider, useIsRestoring } from './IsRestoringProvider.js';
|
||||
import 'react';
|
||||
import 'react/jsx-runtime';
|
||||
54
frontend/node_modules/@tanstack/react-query/build/legacy/index.js
generated
vendored
Normal file
54
frontend/node_modules/@tanstack/react-query/build/legacy/index.js
generated
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
// src/index.ts
|
||||
export * from "@tanstack/query-core";
|
||||
export * from "./types.js";
|
||||
import { useQueries } from "./useQueries.js";
|
||||
import { useQuery } from "./useQuery.js";
|
||||
import { useSuspenseQuery } from "./useSuspenseQuery.js";
|
||||
import { useSuspenseInfiniteQuery } from "./useSuspenseInfiniteQuery.js";
|
||||
import { useSuspenseQueries } from "./useSuspenseQueries.js";
|
||||
import { usePrefetchQuery } from "./usePrefetchQuery.js";
|
||||
import { usePrefetchInfiniteQuery } from "./usePrefetchInfiniteQuery.js";
|
||||
import { queryOptions } from "./queryOptions.js";
|
||||
import { infiniteQueryOptions } from "./infiniteQueryOptions.js";
|
||||
import {
|
||||
QueryClientContext,
|
||||
QueryClientProvider,
|
||||
useQueryClient
|
||||
} from "./QueryClientProvider.js";
|
||||
import { HydrationBoundary } from "./HydrationBoundary.js";
|
||||
import {
|
||||
QueryErrorResetBoundary,
|
||||
useQueryErrorResetBoundary
|
||||
} from "./QueryErrorResetBoundary.js";
|
||||
import { useIsFetching } from "./useIsFetching.js";
|
||||
import { useIsMutating, useMutationState } from "./useMutationState.js";
|
||||
import { useMutation } from "./useMutation.js";
|
||||
import { mutationOptions } from "./mutationOptions.js";
|
||||
import { useInfiniteQuery } from "./useInfiniteQuery.js";
|
||||
import { useIsRestoring, IsRestoringProvider } from "./IsRestoringProvider.js";
|
||||
export {
|
||||
HydrationBoundary,
|
||||
IsRestoringProvider,
|
||||
QueryClientContext,
|
||||
QueryClientProvider,
|
||||
QueryErrorResetBoundary,
|
||||
infiniteQueryOptions,
|
||||
mutationOptions,
|
||||
queryOptions,
|
||||
useInfiniteQuery,
|
||||
useIsFetching,
|
||||
useIsMutating,
|
||||
useIsRestoring,
|
||||
useMutation,
|
||||
useMutationState,
|
||||
usePrefetchInfiniteQuery,
|
||||
usePrefetchQuery,
|
||||
useQueries,
|
||||
useQuery,
|
||||
useQueryClient,
|
||||
useQueryErrorResetBoundary,
|
||||
useSuspenseInfiniteQuery,
|
||||
useSuspenseQueries,
|
||||
useSuspenseQuery
|
||||
};
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/index.js.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/index.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/* istanbul ignore file */\n\n// Re-export core\nexport * from '@tanstack/query-core'\n\n// React Query\nexport * from './types'\nexport { useQueries } from './useQueries'\nexport type { QueriesResults, QueriesOptions } from './useQueries'\nexport { useQuery } from './useQuery'\nexport { useSuspenseQuery } from './useSuspenseQuery'\nexport { useSuspenseInfiniteQuery } from './useSuspenseInfiniteQuery'\nexport { useSuspenseQueries } from './useSuspenseQueries'\nexport type {\n SuspenseQueriesResults,\n SuspenseQueriesOptions,\n} from './useSuspenseQueries'\nexport { usePrefetchQuery } from './usePrefetchQuery'\nexport { usePrefetchInfiniteQuery } from './usePrefetchInfiniteQuery'\nexport { queryOptions } from './queryOptions'\nexport type {\n DefinedInitialDataOptions,\n UndefinedInitialDataOptions,\n UnusedSkipTokenOptions,\n} from './queryOptions'\nexport { infiniteQueryOptions } from './infiniteQueryOptions'\nexport type {\n DefinedInitialDataInfiniteOptions,\n UndefinedInitialDataInfiniteOptions,\n UnusedSkipTokenInfiniteOptions,\n} from './infiniteQueryOptions'\nexport {\n QueryClientContext,\n QueryClientProvider,\n useQueryClient,\n} from './QueryClientProvider'\nexport type { QueryClientProviderProps } from './QueryClientProvider'\nexport type { QueryErrorResetBoundaryProps } from './QueryErrorResetBoundary'\nexport { HydrationBoundary } from './HydrationBoundary'\nexport type { HydrationBoundaryProps } from './HydrationBoundary'\nexport type {\n QueryErrorClearResetFunction,\n QueryErrorIsResetFunction,\n QueryErrorResetBoundaryFunction,\n QueryErrorResetFunction,\n} from './QueryErrorResetBoundary'\nexport {\n QueryErrorResetBoundary,\n useQueryErrorResetBoundary,\n} from './QueryErrorResetBoundary'\nexport { useIsFetching } from './useIsFetching'\nexport { useIsMutating, useMutationState } from './useMutationState'\nexport { useMutation } from './useMutation'\nexport { mutationOptions } from './mutationOptions'\nexport { useInfiniteQuery } from './useInfiniteQuery'\nexport { useIsRestoring, IsRestoringProvider } from './IsRestoringProvider'\n"],"mappings":";AAGA,cAAc;AAGd,cAAc;AACd,SAAS,kBAAkB;AAE3B,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAAS,gCAAgC;AACzC,SAAS,0BAA0B;AAKnC,SAAS,wBAAwB;AACjC,SAAS,gCAAgC;AACzC,SAAS,oBAAoB;AAM7B,SAAS,4BAA4B;AAMrC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,SAAS,yBAAyB;AAQlC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP,SAAS,qBAAqB;AAC9B,SAAS,eAAe,wBAAwB;AAChD,SAAS,mBAAmB;AAC5B,SAAS,uBAAuB;AAChC,SAAS,wBAAwB;AACjC,SAAS,gBAAgB,2BAA2B;","names":[]}
|
||||
33
frontend/node_modules/@tanstack/react-query/build/legacy/infiniteQueryOptions.cjs
generated
vendored
Normal file
33
frontend/node_modules/@tanstack/react-query/build/legacy/infiniteQueryOptions.cjs
generated
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/infiniteQueryOptions.ts
|
||||
var infiniteQueryOptions_exports = {};
|
||||
__export(infiniteQueryOptions_exports, {
|
||||
infiniteQueryOptions: () => infiniteQueryOptions
|
||||
});
|
||||
module.exports = __toCommonJS(infiniteQueryOptions_exports);
|
||||
function infiniteQueryOptions(options) {
|
||||
return options;
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
infiniteQueryOptions
|
||||
});
|
||||
//# sourceMappingURL=infiniteQueryOptions.cjs.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/infiniteQueryOptions.cjs.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/infiniteQueryOptions.cjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/infiniteQueryOptions.ts"],"sourcesContent":["import type {\n DataTag,\n DefaultError,\n InfiniteData,\n InitialDataFunction,\n NonUndefinedGuard,\n OmitKeyof,\n QueryKey,\n SkipToken,\n} from '@tanstack/query-core'\nimport type { UseInfiniteQueryOptions } from './types'\n\nexport type UndefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n> = UseInfiniteQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n> & {\n initialData?:\n | undefined\n | NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>\n | InitialDataFunction<\n NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>\n >\n}\n\nexport type UnusedSkipTokenInfiniteOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n> = OmitKeyof<\n UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>,\n 'queryFn'\n> & {\n queryFn?: Exclude<\n UseInfiniteQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >['queryFn'],\n SkipToken | undefined\n >\n}\n\nexport type DefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n> = UseInfiniteQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n> & {\n initialData:\n | NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>\n | (() => NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>)\n | undefined\n}\n\nexport function infiniteQueryOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n>(\n options: DefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >,\n): DefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n> & {\n queryKey: DataTag<TQueryKey, InfiniteData<TQueryFnData>, TError>\n}\n\nexport function infiniteQueryOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n>(\n options: UnusedSkipTokenInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >,\n): UnusedSkipTokenInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n> & {\n queryKey: DataTag<TQueryKey, InfiniteData<TQueryFnData>, TError>\n}\n\nexport function infiniteQueryOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n>(\n options: UndefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >,\n): UndefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n> & {\n queryKey: DataTag<TQueryKey, InfiniteData<TQueryFnData>, TError>\n}\n\nexport function infiniteQueryOptions(options: unknown) {\n return options\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkJO,SAAS,qBAAqB,SAAkB;AACrD,SAAO;AACT;","names":[]}
|
||||
23
frontend/node_modules/@tanstack/react-query/build/legacy/infiniteQueryOptions.d.cts
generated
vendored
Normal file
23
frontend/node_modules/@tanstack/react-query/build/legacy/infiniteQueryOptions.d.cts
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
import { DefaultError, InfiniteData, QueryKey, NonUndefinedGuard, DataTag, OmitKeyof, SkipToken, InitialDataFunction } from '@tanstack/query-core';
|
||||
import { UseInfiniteQueryOptions } from './types.cjs';
|
||||
|
||||
type UndefinedInitialDataInfiniteOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & {
|
||||
initialData?: undefined | NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>> | InitialDataFunction<NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>>;
|
||||
};
|
||||
type UnusedSkipTokenInfiniteOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = OmitKeyof<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, 'queryFn'> & {
|
||||
queryFn?: Exclude<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>['queryFn'], SkipToken | undefined>;
|
||||
};
|
||||
type DefinedInitialDataInfiniteOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & {
|
||||
initialData: NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>> | (() => NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>) | undefined;
|
||||
};
|
||||
declare function infiniteQueryOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: DefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>): DefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & {
|
||||
queryKey: DataTag<TQueryKey, InfiniteData<TQueryFnData>, TError>;
|
||||
};
|
||||
declare function infiniteQueryOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: UnusedSkipTokenInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>): UnusedSkipTokenInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & {
|
||||
queryKey: DataTag<TQueryKey, InfiniteData<TQueryFnData>, TError>;
|
||||
};
|
||||
declare function infiniteQueryOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: UndefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>): UndefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & {
|
||||
queryKey: DataTag<TQueryKey, InfiniteData<TQueryFnData>, TError>;
|
||||
};
|
||||
|
||||
export { type DefinedInitialDataInfiniteOptions, type UndefinedInitialDataInfiniteOptions, type UnusedSkipTokenInfiniteOptions, infiniteQueryOptions };
|
||||
23
frontend/node_modules/@tanstack/react-query/build/legacy/infiniteQueryOptions.d.ts
generated
vendored
Normal file
23
frontend/node_modules/@tanstack/react-query/build/legacy/infiniteQueryOptions.d.ts
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
import { DefaultError, InfiniteData, QueryKey, NonUndefinedGuard, DataTag, OmitKeyof, SkipToken, InitialDataFunction } from '@tanstack/query-core';
|
||||
import { UseInfiniteQueryOptions } from './types.js';
|
||||
|
||||
type UndefinedInitialDataInfiniteOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & {
|
||||
initialData?: undefined | NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>> | InitialDataFunction<NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>>;
|
||||
};
|
||||
type UnusedSkipTokenInfiniteOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = OmitKeyof<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, 'queryFn'> & {
|
||||
queryFn?: Exclude<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>['queryFn'], SkipToken | undefined>;
|
||||
};
|
||||
type DefinedInitialDataInfiniteOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & {
|
||||
initialData: NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>> | (() => NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>) | undefined;
|
||||
};
|
||||
declare function infiniteQueryOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: DefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>): DefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & {
|
||||
queryKey: DataTag<TQueryKey, InfiniteData<TQueryFnData>, TError>;
|
||||
};
|
||||
declare function infiniteQueryOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: UnusedSkipTokenInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>): UnusedSkipTokenInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & {
|
||||
queryKey: DataTag<TQueryKey, InfiniteData<TQueryFnData>, TError>;
|
||||
};
|
||||
declare function infiniteQueryOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: UndefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>): UndefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & {
|
||||
queryKey: DataTag<TQueryKey, InfiniteData<TQueryFnData>, TError>;
|
||||
};
|
||||
|
||||
export { type DefinedInitialDataInfiniteOptions, type UndefinedInitialDataInfiniteOptions, type UnusedSkipTokenInfiniteOptions, infiniteQueryOptions };
|
||||
8
frontend/node_modules/@tanstack/react-query/build/legacy/infiniteQueryOptions.js
generated
vendored
Normal file
8
frontend/node_modules/@tanstack/react-query/build/legacy/infiniteQueryOptions.js
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// src/infiniteQueryOptions.ts
|
||||
function infiniteQueryOptions(options) {
|
||||
return options;
|
||||
}
|
||||
export {
|
||||
infiniteQueryOptions
|
||||
};
|
||||
//# sourceMappingURL=infiniteQueryOptions.js.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/infiniteQueryOptions.js.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/infiniteQueryOptions.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/infiniteQueryOptions.ts"],"sourcesContent":["import type {\n DataTag,\n DefaultError,\n InfiniteData,\n InitialDataFunction,\n NonUndefinedGuard,\n OmitKeyof,\n QueryKey,\n SkipToken,\n} from '@tanstack/query-core'\nimport type { UseInfiniteQueryOptions } from './types'\n\nexport type UndefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n> = UseInfiniteQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n> & {\n initialData?:\n | undefined\n | NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>\n | InitialDataFunction<\n NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>\n >\n}\n\nexport type UnusedSkipTokenInfiniteOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n> = OmitKeyof<\n UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>,\n 'queryFn'\n> & {\n queryFn?: Exclude<\n UseInfiniteQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >['queryFn'],\n SkipToken | undefined\n >\n}\n\nexport type DefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n> = UseInfiniteQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n> & {\n initialData:\n | NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>\n | (() => NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>)\n | undefined\n}\n\nexport function infiniteQueryOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n>(\n options: DefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >,\n): DefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n> & {\n queryKey: DataTag<TQueryKey, InfiniteData<TQueryFnData>, TError>\n}\n\nexport function infiniteQueryOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n>(\n options: UnusedSkipTokenInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >,\n): UnusedSkipTokenInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n> & {\n queryKey: DataTag<TQueryKey, InfiniteData<TQueryFnData>, TError>\n}\n\nexport function infiniteQueryOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n>(\n options: UndefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >,\n): UndefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n> & {\n queryKey: DataTag<TQueryKey, InfiniteData<TQueryFnData>, TError>\n}\n\nexport function infiniteQueryOptions(options: unknown) {\n return options\n}\n"],"mappings":";AAkJO,SAAS,qBAAqB,SAAkB;AACrD,SAAO;AACT;","names":[]}
|
||||
33
frontend/node_modules/@tanstack/react-query/build/legacy/mutationOptions.cjs
generated
vendored
Normal file
33
frontend/node_modules/@tanstack/react-query/build/legacy/mutationOptions.cjs
generated
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/mutationOptions.ts
|
||||
var mutationOptions_exports = {};
|
||||
__export(mutationOptions_exports, {
|
||||
mutationOptions: () => mutationOptions
|
||||
});
|
||||
module.exports = __toCommonJS(mutationOptions_exports);
|
||||
function mutationOptions(options) {
|
||||
return options;
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
mutationOptions
|
||||
});
|
||||
//# sourceMappingURL=mutationOptions.cjs.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/mutationOptions.cjs.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/mutationOptions.cjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/mutationOptions.ts"],"sourcesContent":["import type { DefaultError, WithRequired } from '@tanstack/query-core'\nimport type { UseMutationOptions } from './types'\n\nexport function mutationOptions<\n TData = unknown,\n TError = DefaultError,\n TVariables = void,\n TOnMutateResult = unknown,\n>(\n options: WithRequired<\n UseMutationOptions<TData, TError, TVariables, TOnMutateResult>,\n 'mutationKey'\n >,\n): WithRequired<\n UseMutationOptions<TData, TError, TVariables, TOnMutateResult>,\n 'mutationKey'\n>\nexport function mutationOptions<\n TData = unknown,\n TError = DefaultError,\n TVariables = void,\n TOnMutateResult = unknown,\n>(\n options: Omit<\n UseMutationOptions<TData, TError, TVariables, TOnMutateResult>,\n 'mutationKey'\n >,\n): Omit<\n UseMutationOptions<TData, TError, TVariables, TOnMutateResult>,\n 'mutationKey'\n>\nexport function mutationOptions<\n TData = unknown,\n TError = DefaultError,\n TVariables = void,\n TOnMutateResult = unknown,\n>(\n options: UseMutationOptions<TData, TError, TVariables, TOnMutateResult>,\n): UseMutationOptions<TData, TError, TVariables, TOnMutateResult> {\n return options\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BO,SAAS,gBAMd,SACgE;AAChE,SAAO;AACT;","names":[]}
|
||||
7
frontend/node_modules/@tanstack/react-query/build/legacy/mutationOptions.d.cts
generated
vendored
Normal file
7
frontend/node_modules/@tanstack/react-query/build/legacy/mutationOptions.d.cts
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
import { DefaultError, WithRequired } from '@tanstack/query-core';
|
||||
import { UseMutationOptions } from './types.cjs';
|
||||
|
||||
declare function mutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options: WithRequired<UseMutationOptions<TData, TError, TVariables, TOnMutateResult>, 'mutationKey'>): WithRequired<UseMutationOptions<TData, TError, TVariables, TOnMutateResult>, 'mutationKey'>;
|
||||
declare function mutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options: Omit<UseMutationOptions<TData, TError, TVariables, TOnMutateResult>, 'mutationKey'>): Omit<UseMutationOptions<TData, TError, TVariables, TOnMutateResult>, 'mutationKey'>;
|
||||
|
||||
export { mutationOptions };
|
||||
7
frontend/node_modules/@tanstack/react-query/build/legacy/mutationOptions.d.ts
generated
vendored
Normal file
7
frontend/node_modules/@tanstack/react-query/build/legacy/mutationOptions.d.ts
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
import { DefaultError, WithRequired } from '@tanstack/query-core';
|
||||
import { UseMutationOptions } from './types.js';
|
||||
|
||||
declare function mutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options: WithRequired<UseMutationOptions<TData, TError, TVariables, TOnMutateResult>, 'mutationKey'>): WithRequired<UseMutationOptions<TData, TError, TVariables, TOnMutateResult>, 'mutationKey'>;
|
||||
declare function mutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options: Omit<UseMutationOptions<TData, TError, TVariables, TOnMutateResult>, 'mutationKey'>): Omit<UseMutationOptions<TData, TError, TVariables, TOnMutateResult>, 'mutationKey'>;
|
||||
|
||||
export { mutationOptions };
|
||||
8
frontend/node_modules/@tanstack/react-query/build/legacy/mutationOptions.js
generated
vendored
Normal file
8
frontend/node_modules/@tanstack/react-query/build/legacy/mutationOptions.js
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// src/mutationOptions.ts
|
||||
function mutationOptions(options) {
|
||||
return options;
|
||||
}
|
||||
export {
|
||||
mutationOptions
|
||||
};
|
||||
//# sourceMappingURL=mutationOptions.js.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/mutationOptions.js.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/mutationOptions.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/mutationOptions.ts"],"sourcesContent":["import type { DefaultError, WithRequired } from '@tanstack/query-core'\nimport type { UseMutationOptions } from './types'\n\nexport function mutationOptions<\n TData = unknown,\n TError = DefaultError,\n TVariables = void,\n TOnMutateResult = unknown,\n>(\n options: WithRequired<\n UseMutationOptions<TData, TError, TVariables, TOnMutateResult>,\n 'mutationKey'\n >,\n): WithRequired<\n UseMutationOptions<TData, TError, TVariables, TOnMutateResult>,\n 'mutationKey'\n>\nexport function mutationOptions<\n TData = unknown,\n TError = DefaultError,\n TVariables = void,\n TOnMutateResult = unknown,\n>(\n options: Omit<\n UseMutationOptions<TData, TError, TVariables, TOnMutateResult>,\n 'mutationKey'\n >,\n): Omit<\n UseMutationOptions<TData, TError, TVariables, TOnMutateResult>,\n 'mutationKey'\n>\nexport function mutationOptions<\n TData = unknown,\n TError = DefaultError,\n TVariables = void,\n TOnMutateResult = unknown,\n>(\n options: UseMutationOptions<TData, TError, TVariables, TOnMutateResult>,\n): UseMutationOptions<TData, TError, TVariables, TOnMutateResult> {\n return options\n}\n"],"mappings":";AA+BO,SAAS,gBAMd,SACgE;AAChE,SAAO;AACT;","names":[]}
|
||||
33
frontend/node_modules/@tanstack/react-query/build/legacy/queryOptions.cjs
generated
vendored
Normal file
33
frontend/node_modules/@tanstack/react-query/build/legacy/queryOptions.cjs
generated
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/queryOptions.ts
|
||||
var queryOptions_exports = {};
|
||||
__export(queryOptions_exports, {
|
||||
queryOptions: () => queryOptions
|
||||
});
|
||||
module.exports = __toCommonJS(queryOptions_exports);
|
||||
function queryOptions(options) {
|
||||
return options;
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
queryOptions
|
||||
});
|
||||
//# sourceMappingURL=queryOptions.cjs.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/queryOptions.cjs.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/queryOptions.cjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/queryOptions.ts"],"sourcesContent":["import type {\n DataTag,\n DefaultError,\n InitialDataFunction,\n NonUndefinedGuard,\n OmitKeyof,\n QueryFunction,\n QueryKey,\n SkipToken,\n} from '@tanstack/query-core'\nimport type { UseQueryOptions } from './types'\n\nexport type UndefinedInitialDataOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = UseQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {\n initialData?:\n | undefined\n | InitialDataFunction<NonUndefinedGuard<TQueryFnData>>\n | NonUndefinedGuard<TQueryFnData>\n}\n\nexport type UnusedSkipTokenOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = OmitKeyof<\n UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n 'queryFn'\n> & {\n queryFn?: Exclude<\n UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>['queryFn'],\n SkipToken | undefined\n >\n}\n\nexport type DefinedInitialDataOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryFn'> & {\n initialData:\n | NonUndefinedGuard<TQueryFnData>\n | (() => NonUndefinedGuard<TQueryFnData>)\n queryFn?: QueryFunction<TQueryFnData, TQueryKey>\n}\n\nexport function queryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>,\n): DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & {\n queryKey: DataTag<TQueryKey, TQueryFnData, TError>\n}\n\nexport function queryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UnusedSkipTokenOptions<TQueryFnData, TError, TData, TQueryKey>,\n): UnusedSkipTokenOptions<TQueryFnData, TError, TData, TQueryKey> & {\n queryKey: DataTag<TQueryKey, TQueryFnData, TError>\n}\n\nexport function queryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>,\n): UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & {\n queryKey: DataTag<TQueryKey, TQueryFnData, TError>\n}\n\nexport function queryOptions(options: unknown) {\n return options\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAoFO,SAAS,aAAa,SAAkB;AAC7C,SAAO;AACT;","names":[]}
|
||||
24
frontend/node_modules/@tanstack/react-query/build/legacy/queryOptions.d.cts
generated
vendored
Normal file
24
frontend/node_modules/@tanstack/react-query/build/legacy/queryOptions.d.cts
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
import { DefaultError, QueryKey, NonUndefinedGuard, QueryFunction, InitialDataFunction, DataTag, OmitKeyof, SkipToken } from '@tanstack/query-core';
|
||||
import { UseQueryOptions } from './types.cjs';
|
||||
|
||||
type UndefinedInitialDataOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = UseQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
||||
initialData?: undefined | InitialDataFunction<NonUndefinedGuard<TQueryFnData>> | NonUndefinedGuard<TQueryFnData>;
|
||||
};
|
||||
type UnusedSkipTokenOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryFn'> & {
|
||||
queryFn?: Exclude<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>['queryFn'], SkipToken | undefined>;
|
||||
};
|
||||
type DefinedInitialDataOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryFn'> & {
|
||||
initialData: NonUndefinedGuard<TQueryFnData> | (() => NonUndefinedGuard<TQueryFnData>);
|
||||
queryFn?: QueryFunction<TQueryFnData, TQueryKey>;
|
||||
};
|
||||
declare function queryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>): DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
||||
queryKey: DataTag<TQueryKey, TQueryFnData, TError>;
|
||||
};
|
||||
declare function queryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UnusedSkipTokenOptions<TQueryFnData, TError, TData, TQueryKey>): UnusedSkipTokenOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
||||
queryKey: DataTag<TQueryKey, TQueryFnData, TError>;
|
||||
};
|
||||
declare function queryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>): UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
||||
queryKey: DataTag<TQueryKey, TQueryFnData, TError>;
|
||||
};
|
||||
|
||||
export { type DefinedInitialDataOptions, type UndefinedInitialDataOptions, type UnusedSkipTokenOptions, queryOptions };
|
||||
24
frontend/node_modules/@tanstack/react-query/build/legacy/queryOptions.d.ts
generated
vendored
Normal file
24
frontend/node_modules/@tanstack/react-query/build/legacy/queryOptions.d.ts
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
import { DefaultError, QueryKey, NonUndefinedGuard, QueryFunction, InitialDataFunction, DataTag, OmitKeyof, SkipToken } from '@tanstack/query-core';
|
||||
import { UseQueryOptions } from './types.js';
|
||||
|
||||
type UndefinedInitialDataOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = UseQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
||||
initialData?: undefined | InitialDataFunction<NonUndefinedGuard<TQueryFnData>> | NonUndefinedGuard<TQueryFnData>;
|
||||
};
|
||||
type UnusedSkipTokenOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryFn'> & {
|
||||
queryFn?: Exclude<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>['queryFn'], SkipToken | undefined>;
|
||||
};
|
||||
type DefinedInitialDataOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryFn'> & {
|
||||
initialData: NonUndefinedGuard<TQueryFnData> | (() => NonUndefinedGuard<TQueryFnData>);
|
||||
queryFn?: QueryFunction<TQueryFnData, TQueryKey>;
|
||||
};
|
||||
declare function queryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>): DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
||||
queryKey: DataTag<TQueryKey, TQueryFnData, TError>;
|
||||
};
|
||||
declare function queryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UnusedSkipTokenOptions<TQueryFnData, TError, TData, TQueryKey>): UnusedSkipTokenOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
||||
queryKey: DataTag<TQueryKey, TQueryFnData, TError>;
|
||||
};
|
||||
declare function queryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>): UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
||||
queryKey: DataTag<TQueryKey, TQueryFnData, TError>;
|
||||
};
|
||||
|
||||
export { type DefinedInitialDataOptions, type UndefinedInitialDataOptions, type UnusedSkipTokenOptions, queryOptions };
|
||||
8
frontend/node_modules/@tanstack/react-query/build/legacy/queryOptions.js
generated
vendored
Normal file
8
frontend/node_modules/@tanstack/react-query/build/legacy/queryOptions.js
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// src/queryOptions.ts
|
||||
function queryOptions(options) {
|
||||
return options;
|
||||
}
|
||||
export {
|
||||
queryOptions
|
||||
};
|
||||
//# sourceMappingURL=queryOptions.js.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/queryOptions.js.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/queryOptions.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/queryOptions.ts"],"sourcesContent":["import type {\n DataTag,\n DefaultError,\n InitialDataFunction,\n NonUndefinedGuard,\n OmitKeyof,\n QueryFunction,\n QueryKey,\n SkipToken,\n} from '@tanstack/query-core'\nimport type { UseQueryOptions } from './types'\n\nexport type UndefinedInitialDataOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = UseQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {\n initialData?:\n | undefined\n | InitialDataFunction<NonUndefinedGuard<TQueryFnData>>\n | NonUndefinedGuard<TQueryFnData>\n}\n\nexport type UnusedSkipTokenOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = OmitKeyof<\n UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n 'queryFn'\n> & {\n queryFn?: Exclude<\n UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>['queryFn'],\n SkipToken | undefined\n >\n}\n\nexport type DefinedInitialDataOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryFn'> & {\n initialData:\n | NonUndefinedGuard<TQueryFnData>\n | (() => NonUndefinedGuard<TQueryFnData>)\n queryFn?: QueryFunction<TQueryFnData, TQueryKey>\n}\n\nexport function queryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>,\n): DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & {\n queryKey: DataTag<TQueryKey, TQueryFnData, TError>\n}\n\nexport function queryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UnusedSkipTokenOptions<TQueryFnData, TError, TData, TQueryKey>,\n): UnusedSkipTokenOptions<TQueryFnData, TError, TData, TQueryKey> & {\n queryKey: DataTag<TQueryKey, TQueryFnData, TError>\n}\n\nexport function queryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>,\n): UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & {\n queryKey: DataTag<TQueryKey, TQueryFnData, TError>\n}\n\nexport function queryOptions(options: unknown) {\n return options\n}\n"],"mappings":";AAoFO,SAAS,aAAa,SAAkB;AAC7C,SAAO;AACT;","names":[]}
|
||||
58
frontend/node_modules/@tanstack/react-query/build/legacy/suspense.cjs
generated
vendored
Normal file
58
frontend/node_modules/@tanstack/react-query/build/legacy/suspense.cjs
generated
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/suspense.ts
|
||||
var suspense_exports = {};
|
||||
__export(suspense_exports, {
|
||||
defaultThrowOnError: () => defaultThrowOnError,
|
||||
ensureSuspenseTimers: () => ensureSuspenseTimers,
|
||||
fetchOptimistic: () => fetchOptimistic,
|
||||
shouldSuspend: () => shouldSuspend,
|
||||
willFetch: () => willFetch
|
||||
});
|
||||
module.exports = __toCommonJS(suspense_exports);
|
||||
var defaultThrowOnError = (_error, query) => query.state.data === void 0;
|
||||
var ensureSuspenseTimers = (defaultedOptions) => {
|
||||
if (defaultedOptions.suspense) {
|
||||
const MIN_SUSPENSE_TIME_MS = 1e3;
|
||||
const clamp = (value) => value === "static" ? value : Math.max(value ?? MIN_SUSPENSE_TIME_MS, MIN_SUSPENSE_TIME_MS);
|
||||
const originalStaleTime = defaultedOptions.staleTime;
|
||||
defaultedOptions.staleTime = typeof originalStaleTime === "function" ? (...args) => clamp(originalStaleTime(...args)) : clamp(originalStaleTime);
|
||||
if (typeof defaultedOptions.gcTime === "number") {
|
||||
defaultedOptions.gcTime = Math.max(
|
||||
defaultedOptions.gcTime,
|
||||
MIN_SUSPENSE_TIME_MS
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
var willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring;
|
||||
var shouldSuspend = (defaultedOptions, result) => (defaultedOptions == null ? void 0 : defaultedOptions.suspense) && result.isPending;
|
||||
var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {
|
||||
errorResetBoundary.clearReset();
|
||||
});
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
defaultThrowOnError,
|
||||
ensureSuspenseTimers,
|
||||
fetchOptimistic,
|
||||
shouldSuspend,
|
||||
willFetch
|
||||
});
|
||||
//# sourceMappingURL=suspense.cjs.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/suspense.cjs.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/suspense.cjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/suspense.ts"],"sourcesContent":["import type {\n DefaultError,\n DefaultedQueryObserverOptions,\n Query,\n QueryKey,\n QueryObserver,\n QueryObserverResult,\n} from '@tanstack/query-core'\nimport type { QueryErrorResetBoundaryValue } from './QueryErrorResetBoundary'\n\nexport const defaultThrowOnError = <\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n _error: TError,\n query: Query<TQueryFnData, TError, TData, TQueryKey>,\n) => query.state.data === undefined\n\nexport const ensureSuspenseTimers = (\n defaultedOptions: DefaultedQueryObserverOptions<any, any, any, any, any>,\n) => {\n if (defaultedOptions.suspense) {\n // Handle staleTime to ensure minimum 1000ms in Suspense mode\n // This prevents unnecessary refetching when components remount after suspending\n const MIN_SUSPENSE_TIME_MS = 1000\n\n const clamp = (value: number | 'static' | undefined) =>\n value === 'static'\n ? value\n : Math.max(value ?? MIN_SUSPENSE_TIME_MS, MIN_SUSPENSE_TIME_MS)\n\n const originalStaleTime = defaultedOptions.staleTime\n defaultedOptions.staleTime =\n typeof originalStaleTime === 'function'\n ? (...args) => clamp(originalStaleTime(...args))\n : clamp(originalStaleTime)\n\n if (typeof defaultedOptions.gcTime === 'number') {\n defaultedOptions.gcTime = Math.max(\n defaultedOptions.gcTime,\n MIN_SUSPENSE_TIME_MS,\n )\n }\n }\n}\n\nexport const willFetch = (\n result: QueryObserverResult<any, any>,\n isRestoring: boolean,\n) => result.isLoading && result.isFetching && !isRestoring\n\nexport const shouldSuspend = (\n defaultedOptions:\n | DefaultedQueryObserverOptions<any, any, any, any, any>\n | undefined,\n result: QueryObserverResult<any, any>,\n) => defaultedOptions?.suspense && result.isPending\n\nexport const fetchOptimistic = <\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey extends QueryKey,\n>(\n defaultedOptions: DefaultedQueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n observer: QueryObserver<TQueryFnData, TError, TData, TQueryData, TQueryKey>,\n errorResetBoundary: QueryErrorResetBoundaryValue,\n) =>\n observer.fetchOptimistic(defaultedOptions).catch(() => {\n errorResetBoundary.clearReset()\n })\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUO,IAAM,sBAAsB,CAMjC,QACA,UACG,MAAM,MAAM,SAAS;AAEnB,IAAM,uBAAuB,CAClC,qBACG;AACH,MAAI,iBAAiB,UAAU;AAG7B,UAAM,uBAAuB;AAE7B,UAAM,QAAQ,CAAC,UACb,UAAU,WACN,QACA,KAAK,IAAI,SAAS,sBAAsB,oBAAoB;AAElE,UAAM,oBAAoB,iBAAiB;AAC3C,qBAAiB,YACf,OAAO,sBAAsB,aACzB,IAAI,SAAS,MAAM,kBAAkB,GAAG,IAAI,CAAC,IAC7C,MAAM,iBAAiB;AAE7B,QAAI,OAAO,iBAAiB,WAAW,UAAU;AAC/C,uBAAiB,SAAS,KAAK;AAAA,QAC7B,iBAAiB;AAAA,QACjB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAEO,IAAM,YAAY,CACvB,QACA,gBACG,OAAO,aAAa,OAAO,cAAc,CAAC;AAExC,IAAM,gBAAgB,CAC3B,kBAGA,YACG,qDAAkB,aAAY,OAAO;AAEnC,IAAM,kBAAkB,CAO7B,kBAOA,UACA,uBAEA,SAAS,gBAAgB,gBAAgB,EAAE,MAAM,MAAM;AACrD,qBAAmB,WAAW;AAChC,CAAC;","names":[]}
|
||||
12
frontend/node_modules/@tanstack/react-query/build/legacy/suspense.d.cts
generated
vendored
Normal file
12
frontend/node_modules/@tanstack/react-query/build/legacy/suspense.d.cts
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
import { DefaultError, QueryKey, Query, DefaultedQueryObserverOptions, QueryObserverResult, QueryObserver } from '@tanstack/query-core';
|
||||
import { QueryErrorResetBoundaryValue } from './QueryErrorResetBoundary.cjs';
|
||||
import 'react/jsx-runtime';
|
||||
import 'react';
|
||||
|
||||
declare const defaultThrowOnError: <TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(_error: TError, query: Query<TQueryFnData, TError, TData, TQueryKey>) => boolean;
|
||||
declare const ensureSuspenseTimers: (defaultedOptions: DefaultedQueryObserverOptions<any, any, any, any, any>) => void;
|
||||
declare const willFetch: (result: QueryObserverResult<any, any>, isRestoring: boolean) => boolean;
|
||||
declare const shouldSuspend: (defaultedOptions: DefaultedQueryObserverOptions<any, any, any, any, any> | undefined, result: QueryObserverResult<any, any>) => boolean | undefined;
|
||||
declare const fetchOptimistic: <TQueryFnData, TError, TData, TQueryData, TQueryKey extends QueryKey>(defaultedOptions: DefaultedQueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>, observer: QueryObserver<TQueryFnData, TError, TData, TQueryData, TQueryKey>, errorResetBoundary: QueryErrorResetBoundaryValue) => Promise<void | QueryObserverResult<TData, TError>>;
|
||||
|
||||
export { defaultThrowOnError, ensureSuspenseTimers, fetchOptimistic, shouldSuspend, willFetch };
|
||||
12
frontend/node_modules/@tanstack/react-query/build/legacy/suspense.d.ts
generated
vendored
Normal file
12
frontend/node_modules/@tanstack/react-query/build/legacy/suspense.d.ts
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
import { DefaultError, QueryKey, Query, DefaultedQueryObserverOptions, QueryObserverResult, QueryObserver } from '@tanstack/query-core';
|
||||
import { QueryErrorResetBoundaryValue } from './QueryErrorResetBoundary.js';
|
||||
import 'react/jsx-runtime';
|
||||
import 'react';
|
||||
|
||||
declare const defaultThrowOnError: <TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(_error: TError, query: Query<TQueryFnData, TError, TData, TQueryKey>) => boolean;
|
||||
declare const ensureSuspenseTimers: (defaultedOptions: DefaultedQueryObserverOptions<any, any, any, any, any>) => void;
|
||||
declare const willFetch: (result: QueryObserverResult<any, any>, isRestoring: boolean) => boolean;
|
||||
declare const shouldSuspend: (defaultedOptions: DefaultedQueryObserverOptions<any, any, any, any, any> | undefined, result: QueryObserverResult<any, any>) => boolean | undefined;
|
||||
declare const fetchOptimistic: <TQueryFnData, TError, TData, TQueryData, TQueryKey extends QueryKey>(defaultedOptions: DefaultedQueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>, observer: QueryObserver<TQueryFnData, TError, TData, TQueryData, TQueryKey>, errorResetBoundary: QueryErrorResetBoundaryValue) => Promise<void | QueryObserverResult<TData, TError>>;
|
||||
|
||||
export { defaultThrowOnError, ensureSuspenseTimers, fetchOptimistic, shouldSuspend, willFetch };
|
||||
29
frontend/node_modules/@tanstack/react-query/build/legacy/suspense.js
generated
vendored
Normal file
29
frontend/node_modules/@tanstack/react-query/build/legacy/suspense.js
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
// src/suspense.ts
|
||||
var defaultThrowOnError = (_error, query) => query.state.data === void 0;
|
||||
var ensureSuspenseTimers = (defaultedOptions) => {
|
||||
if (defaultedOptions.suspense) {
|
||||
const MIN_SUSPENSE_TIME_MS = 1e3;
|
||||
const clamp = (value) => value === "static" ? value : Math.max(value ?? MIN_SUSPENSE_TIME_MS, MIN_SUSPENSE_TIME_MS);
|
||||
const originalStaleTime = defaultedOptions.staleTime;
|
||||
defaultedOptions.staleTime = typeof originalStaleTime === "function" ? (...args) => clamp(originalStaleTime(...args)) : clamp(originalStaleTime);
|
||||
if (typeof defaultedOptions.gcTime === "number") {
|
||||
defaultedOptions.gcTime = Math.max(
|
||||
defaultedOptions.gcTime,
|
||||
MIN_SUSPENSE_TIME_MS
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
var willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring;
|
||||
var shouldSuspend = (defaultedOptions, result) => (defaultedOptions == null ? void 0 : defaultedOptions.suspense) && result.isPending;
|
||||
var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {
|
||||
errorResetBoundary.clearReset();
|
||||
});
|
||||
export {
|
||||
defaultThrowOnError,
|
||||
ensureSuspenseTimers,
|
||||
fetchOptimistic,
|
||||
shouldSuspend,
|
||||
willFetch
|
||||
};
|
||||
//# sourceMappingURL=suspense.js.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/suspense.js.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/suspense.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/suspense.ts"],"sourcesContent":["import type {\n DefaultError,\n DefaultedQueryObserverOptions,\n Query,\n QueryKey,\n QueryObserver,\n QueryObserverResult,\n} from '@tanstack/query-core'\nimport type { QueryErrorResetBoundaryValue } from './QueryErrorResetBoundary'\n\nexport const defaultThrowOnError = <\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n _error: TError,\n query: Query<TQueryFnData, TError, TData, TQueryKey>,\n) => query.state.data === undefined\n\nexport const ensureSuspenseTimers = (\n defaultedOptions: DefaultedQueryObserverOptions<any, any, any, any, any>,\n) => {\n if (defaultedOptions.suspense) {\n // Handle staleTime to ensure minimum 1000ms in Suspense mode\n // This prevents unnecessary refetching when components remount after suspending\n const MIN_SUSPENSE_TIME_MS = 1000\n\n const clamp = (value: number | 'static' | undefined) =>\n value === 'static'\n ? value\n : Math.max(value ?? MIN_SUSPENSE_TIME_MS, MIN_SUSPENSE_TIME_MS)\n\n const originalStaleTime = defaultedOptions.staleTime\n defaultedOptions.staleTime =\n typeof originalStaleTime === 'function'\n ? (...args) => clamp(originalStaleTime(...args))\n : clamp(originalStaleTime)\n\n if (typeof defaultedOptions.gcTime === 'number') {\n defaultedOptions.gcTime = Math.max(\n defaultedOptions.gcTime,\n MIN_SUSPENSE_TIME_MS,\n )\n }\n }\n}\n\nexport const willFetch = (\n result: QueryObserverResult<any, any>,\n isRestoring: boolean,\n) => result.isLoading && result.isFetching && !isRestoring\n\nexport const shouldSuspend = (\n defaultedOptions:\n | DefaultedQueryObserverOptions<any, any, any, any, any>\n | undefined,\n result: QueryObserverResult<any, any>,\n) => defaultedOptions?.suspense && result.isPending\n\nexport const fetchOptimistic = <\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey extends QueryKey,\n>(\n defaultedOptions: DefaultedQueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n observer: QueryObserver<TQueryFnData, TError, TData, TQueryData, TQueryKey>,\n errorResetBoundary: QueryErrorResetBoundaryValue,\n) =>\n observer.fetchOptimistic(defaultedOptions).catch(() => {\n errorResetBoundary.clearReset()\n })\n"],"mappings":";AAUO,IAAM,sBAAsB,CAMjC,QACA,UACG,MAAM,MAAM,SAAS;AAEnB,IAAM,uBAAuB,CAClC,qBACG;AACH,MAAI,iBAAiB,UAAU;AAG7B,UAAM,uBAAuB;AAE7B,UAAM,QAAQ,CAAC,UACb,UAAU,WACN,QACA,KAAK,IAAI,SAAS,sBAAsB,oBAAoB;AAElE,UAAM,oBAAoB,iBAAiB;AAC3C,qBAAiB,YACf,OAAO,sBAAsB,aACzB,IAAI,SAAS,MAAM,kBAAkB,GAAG,IAAI,CAAC,IAC7C,MAAM,iBAAiB;AAE7B,QAAI,OAAO,iBAAiB,WAAW,UAAU;AAC/C,uBAAiB,SAAS,KAAK;AAAA,QAC7B,iBAAiB;AAAA,QACjB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAEO,IAAM,YAAY,CACvB,QACA,gBACG,OAAO,aAAa,OAAO,cAAc,CAAC;AAExC,IAAM,gBAAgB,CAC3B,kBAGA,YACG,qDAAkB,aAAY,OAAO;AAEnC,IAAM,kBAAkB,CAO7B,kBAOA,UACA,uBAEA,SAAS,gBAAgB,gBAAgB,EAAE,MAAM,MAAM;AACrD,qBAAmB,WAAW;AAChC,CAAC;","names":[]}
|
||||
19
frontend/node_modules/@tanstack/react-query/build/legacy/types.cjs
generated
vendored
Normal file
19
frontend/node_modules/@tanstack/react-query/build/legacy/types.cjs
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/types.ts
|
||||
var types_exports = {};
|
||||
module.exports = __toCommonJS(types_exports);
|
||||
//# sourceMappingURL=types.cjs.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/types.cjs.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/types.cjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
52
frontend/node_modules/@tanstack/react-query/build/legacy/types.d.cts
generated
vendored
Normal file
52
frontend/node_modules/@tanstack/react-query/build/legacy/types.d.cts
generated
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
import { DefaultError, QueryObserverResult, DefinedQueryObserverResult, QueryKey, OmitKeyof, QueryObserverOptions, SkipToken, DistributiveOmit, InfiniteQueryObserverOptions, DefinedInfiniteQueryObserverResult, FetchQueryOptions, MutationObserverOptions, Override, MutationObserverResult, MutateFunction, InfiniteQueryObserverResult } from '@tanstack/query-core';
|
||||
|
||||
type AnyUseBaseQueryOptions = UseBaseQueryOptions<any, any, any, any, any>;
|
||||
interface UseBaseQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> extends QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey> {
|
||||
/**
|
||||
* Set this to `false` to unsubscribe this observer from updates to the query cache.
|
||||
* Defaults to `true`.
|
||||
*/
|
||||
subscribed?: boolean;
|
||||
}
|
||||
interface UsePrefetchQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> extends OmitKeyof<FetchQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryFn'> {
|
||||
queryFn?: Exclude<FetchQueryOptions<TQueryFnData, TError, TData, TQueryKey>['queryFn'], SkipToken>;
|
||||
}
|
||||
type AnyUseQueryOptions = UseQueryOptions<any, any, any, any>;
|
||||
interface UseQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> extends OmitKeyof<UseBaseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, 'suspense'> {
|
||||
}
|
||||
type AnyUseSuspenseQueryOptions = UseSuspenseQueryOptions<any, any, any, any>;
|
||||
interface UseSuspenseQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> extends OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryFn' | 'enabled' | 'throwOnError' | 'placeholderData'> {
|
||||
queryFn?: Exclude<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>['queryFn'], SkipToken>;
|
||||
}
|
||||
type AnyUseInfiniteQueryOptions = UseInfiniteQueryOptions<any, any, any, any, any>;
|
||||
interface UseInfiniteQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> extends OmitKeyof<InfiniteQueryObserverOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, 'suspense'> {
|
||||
/**
|
||||
* Set this to `false` to unsubscribe this observer from updates to the query cache.
|
||||
* Defaults to `true`.
|
||||
*/
|
||||
subscribed?: boolean;
|
||||
}
|
||||
type AnyUseSuspenseInfiniteQueryOptions = UseSuspenseInfiniteQueryOptions<any, any, any, any, any>;
|
||||
interface UseSuspenseInfiniteQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> extends OmitKeyof<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, 'queryFn' | 'enabled' | 'throwOnError' | 'placeholderData'> {
|
||||
queryFn?: Exclude<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>['queryFn'], SkipToken>;
|
||||
}
|
||||
type UseBaseQueryResult<TData = unknown, TError = DefaultError> = QueryObserverResult<TData, TError>;
|
||||
type UseQueryResult<TData = unknown, TError = DefaultError> = UseBaseQueryResult<TData, TError>;
|
||||
type UseSuspenseQueryResult<TData = unknown, TError = DefaultError> = DistributiveOmit<DefinedQueryObserverResult<TData, TError>, 'isPlaceholderData' | 'promise'>;
|
||||
type DefinedUseQueryResult<TData = unknown, TError = DefaultError> = DefinedQueryObserverResult<TData, TError>;
|
||||
type UseInfiniteQueryResult<TData = unknown, TError = DefaultError> = InfiniteQueryObserverResult<TData, TError>;
|
||||
type DefinedUseInfiniteQueryResult<TData = unknown, TError = DefaultError> = DefinedInfiniteQueryObserverResult<TData, TError>;
|
||||
type UseSuspenseInfiniteQueryResult<TData = unknown, TError = DefaultError> = OmitKeyof<DefinedInfiniteQueryObserverResult<TData, TError>, 'isPlaceholderData' | 'promise'>;
|
||||
type AnyUseMutationOptions = UseMutationOptions<any, any, any, any>;
|
||||
interface UseMutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown> extends OmitKeyof<MutationObserverOptions<TData, TError, TVariables, TOnMutateResult>, '_defaulted'> {
|
||||
}
|
||||
type UseMutateFunction<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown> = (...args: Parameters<MutateFunction<TData, TError, TVariables, TOnMutateResult>>) => void;
|
||||
type UseMutateAsyncFunction<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown> = MutateFunction<TData, TError, TVariables, TOnMutateResult>;
|
||||
type UseBaseMutationResult<TData = unknown, TError = DefaultError, TVariables = unknown, TOnMutateResult = unknown> = Override<MutationObserverResult<TData, TError, TVariables, TOnMutateResult>, {
|
||||
mutate: UseMutateFunction<TData, TError, TVariables, TOnMutateResult>;
|
||||
}> & {
|
||||
mutateAsync: UseMutateAsyncFunction<TData, TError, TVariables, TOnMutateResult>;
|
||||
};
|
||||
type UseMutationResult<TData = unknown, TError = DefaultError, TVariables = unknown, TOnMutateResult = unknown> = UseBaseMutationResult<TData, TError, TVariables, TOnMutateResult>;
|
||||
|
||||
export type { AnyUseBaseQueryOptions, AnyUseInfiniteQueryOptions, AnyUseMutationOptions, AnyUseQueryOptions, AnyUseSuspenseInfiniteQueryOptions, AnyUseSuspenseQueryOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, UseBaseMutationResult, UseBaseQueryOptions, UseBaseQueryResult, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutateAsyncFunction, UseMutateFunction, UseMutationOptions, UseMutationResult, UsePrefetchQueryOptions, UseQueryOptions, UseQueryResult, UseSuspenseInfiniteQueryOptions, UseSuspenseInfiniteQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult };
|
||||
52
frontend/node_modules/@tanstack/react-query/build/legacy/types.d.ts
generated
vendored
Normal file
52
frontend/node_modules/@tanstack/react-query/build/legacy/types.d.ts
generated
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
import { DefaultError, QueryObserverResult, DefinedQueryObserverResult, QueryKey, OmitKeyof, QueryObserverOptions, SkipToken, DistributiveOmit, InfiniteQueryObserverOptions, DefinedInfiniteQueryObserverResult, FetchQueryOptions, MutationObserverOptions, Override, MutationObserverResult, MutateFunction, InfiniteQueryObserverResult } from '@tanstack/query-core';
|
||||
|
||||
type AnyUseBaseQueryOptions = UseBaseQueryOptions<any, any, any, any, any>;
|
||||
interface UseBaseQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> extends QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey> {
|
||||
/**
|
||||
* Set this to `false` to unsubscribe this observer from updates to the query cache.
|
||||
* Defaults to `true`.
|
||||
*/
|
||||
subscribed?: boolean;
|
||||
}
|
||||
interface UsePrefetchQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> extends OmitKeyof<FetchQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryFn'> {
|
||||
queryFn?: Exclude<FetchQueryOptions<TQueryFnData, TError, TData, TQueryKey>['queryFn'], SkipToken>;
|
||||
}
|
||||
type AnyUseQueryOptions = UseQueryOptions<any, any, any, any>;
|
||||
interface UseQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> extends OmitKeyof<UseBaseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, 'suspense'> {
|
||||
}
|
||||
type AnyUseSuspenseQueryOptions = UseSuspenseQueryOptions<any, any, any, any>;
|
||||
interface UseSuspenseQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> extends OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryFn' | 'enabled' | 'throwOnError' | 'placeholderData'> {
|
||||
queryFn?: Exclude<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>['queryFn'], SkipToken>;
|
||||
}
|
||||
type AnyUseInfiniteQueryOptions = UseInfiniteQueryOptions<any, any, any, any, any>;
|
||||
interface UseInfiniteQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> extends OmitKeyof<InfiniteQueryObserverOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, 'suspense'> {
|
||||
/**
|
||||
* Set this to `false` to unsubscribe this observer from updates to the query cache.
|
||||
* Defaults to `true`.
|
||||
*/
|
||||
subscribed?: boolean;
|
||||
}
|
||||
type AnyUseSuspenseInfiniteQueryOptions = UseSuspenseInfiniteQueryOptions<any, any, any, any, any>;
|
||||
interface UseSuspenseInfiniteQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> extends OmitKeyof<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, 'queryFn' | 'enabled' | 'throwOnError' | 'placeholderData'> {
|
||||
queryFn?: Exclude<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>['queryFn'], SkipToken>;
|
||||
}
|
||||
type UseBaseQueryResult<TData = unknown, TError = DefaultError> = QueryObserverResult<TData, TError>;
|
||||
type UseQueryResult<TData = unknown, TError = DefaultError> = UseBaseQueryResult<TData, TError>;
|
||||
type UseSuspenseQueryResult<TData = unknown, TError = DefaultError> = DistributiveOmit<DefinedQueryObserverResult<TData, TError>, 'isPlaceholderData' | 'promise'>;
|
||||
type DefinedUseQueryResult<TData = unknown, TError = DefaultError> = DefinedQueryObserverResult<TData, TError>;
|
||||
type UseInfiniteQueryResult<TData = unknown, TError = DefaultError> = InfiniteQueryObserverResult<TData, TError>;
|
||||
type DefinedUseInfiniteQueryResult<TData = unknown, TError = DefaultError> = DefinedInfiniteQueryObserverResult<TData, TError>;
|
||||
type UseSuspenseInfiniteQueryResult<TData = unknown, TError = DefaultError> = OmitKeyof<DefinedInfiniteQueryObserverResult<TData, TError>, 'isPlaceholderData' | 'promise'>;
|
||||
type AnyUseMutationOptions = UseMutationOptions<any, any, any, any>;
|
||||
interface UseMutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown> extends OmitKeyof<MutationObserverOptions<TData, TError, TVariables, TOnMutateResult>, '_defaulted'> {
|
||||
}
|
||||
type UseMutateFunction<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown> = (...args: Parameters<MutateFunction<TData, TError, TVariables, TOnMutateResult>>) => void;
|
||||
type UseMutateAsyncFunction<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown> = MutateFunction<TData, TError, TVariables, TOnMutateResult>;
|
||||
type UseBaseMutationResult<TData = unknown, TError = DefaultError, TVariables = unknown, TOnMutateResult = unknown> = Override<MutationObserverResult<TData, TError, TVariables, TOnMutateResult>, {
|
||||
mutate: UseMutateFunction<TData, TError, TVariables, TOnMutateResult>;
|
||||
}> & {
|
||||
mutateAsync: UseMutateAsyncFunction<TData, TError, TVariables, TOnMutateResult>;
|
||||
};
|
||||
type UseMutationResult<TData = unknown, TError = DefaultError, TVariables = unknown, TOnMutateResult = unknown> = UseBaseMutationResult<TData, TError, TVariables, TOnMutateResult>;
|
||||
|
||||
export type { AnyUseBaseQueryOptions, AnyUseInfiniteQueryOptions, AnyUseMutationOptions, AnyUseQueryOptions, AnyUseSuspenseInfiniteQueryOptions, AnyUseSuspenseQueryOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, UseBaseMutationResult, UseBaseQueryOptions, UseBaseQueryResult, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutateAsyncFunction, UseMutateFunction, UseMutationOptions, UseMutationResult, UsePrefetchQueryOptions, UseQueryOptions, UseQueryResult, UseSuspenseInfiniteQueryOptions, UseSuspenseInfiniteQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult };
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/types.js
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/types.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
//# sourceMappingURL=types.js.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/types.js.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/types.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
||||
133
frontend/node_modules/@tanstack/react-query/build/legacy/useBaseQuery.cjs
generated
vendored
Normal file
133
frontend/node_modules/@tanstack/react-query/build/legacy/useBaseQuery.cjs
generated
vendored
Normal file
@ -0,0 +1,133 @@
|
||||
"use strict";
|
||||
"use client";
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/useBaseQuery.ts
|
||||
var useBaseQuery_exports = {};
|
||||
__export(useBaseQuery_exports, {
|
||||
useBaseQuery: () => useBaseQuery
|
||||
});
|
||||
module.exports = __toCommonJS(useBaseQuery_exports);
|
||||
var React = __toESM(require("react"), 1);
|
||||
var import_query_core = require("@tanstack/query-core");
|
||||
var import_QueryClientProvider = require("./QueryClientProvider.cjs");
|
||||
var import_QueryErrorResetBoundary = require("./QueryErrorResetBoundary.cjs");
|
||||
var import_errorBoundaryUtils = require("./errorBoundaryUtils.cjs");
|
||||
var import_IsRestoringProvider = require("./IsRestoringProvider.cjs");
|
||||
var import_suspense = require("./suspense.cjs");
|
||||
function useBaseQuery(options, Observer, queryClient) {
|
||||
var _a, _b, _c, _d;
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
if (typeof options !== "object" || Array.isArray(options)) {
|
||||
throw new Error(
|
||||
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
||||
);
|
||||
}
|
||||
}
|
||||
const isRestoring = (0, import_IsRestoringProvider.useIsRestoring)();
|
||||
const errorResetBoundary = (0, import_QueryErrorResetBoundary.useQueryErrorResetBoundary)();
|
||||
const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
|
||||
const defaultedOptions = client.defaultQueryOptions(options);
|
||||
(_b = (_a = client.getDefaultOptions().queries) == null ? void 0 : _a._experimental_beforeQuery) == null ? void 0 : _b.call(
|
||||
_a,
|
||||
defaultedOptions
|
||||
);
|
||||
const query = client.getQueryCache().get(defaultedOptions.queryHash);
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
if (!defaultedOptions.queryFn) {
|
||||
console.error(
|
||||
`[${defaultedOptions.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
|
||||
);
|
||||
}
|
||||
}
|
||||
defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
|
||||
(0, import_suspense.ensureSuspenseTimers)(defaultedOptions);
|
||||
(0, import_errorBoundaryUtils.ensurePreventErrorBoundaryRetry)(defaultedOptions, errorResetBoundary, query);
|
||||
(0, import_errorBoundaryUtils.useClearResetErrorBoundary)(errorResetBoundary);
|
||||
const isNewCacheEntry = !client.getQueryCache().get(defaultedOptions.queryHash);
|
||||
const [observer] = React.useState(
|
||||
() => new Observer(
|
||||
client,
|
||||
defaultedOptions
|
||||
)
|
||||
);
|
||||
const result = observer.getOptimisticResult(defaultedOptions);
|
||||
const shouldSubscribe = !isRestoring && options.subscribed !== false;
|
||||
React.useSyncExternalStore(
|
||||
React.useCallback(
|
||||
(onStoreChange) => {
|
||||
const unsubscribe = shouldSubscribe ? observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)) : import_query_core.noop;
|
||||
observer.updateResult();
|
||||
return unsubscribe;
|
||||
},
|
||||
[observer, shouldSubscribe]
|
||||
),
|
||||
() => observer.getCurrentResult(),
|
||||
() => observer.getCurrentResult()
|
||||
);
|
||||
React.useEffect(() => {
|
||||
observer.setOptions(defaultedOptions);
|
||||
}, [defaultedOptions, observer]);
|
||||
if ((0, import_suspense.shouldSuspend)(defaultedOptions, result)) {
|
||||
throw (0, import_suspense.fetchOptimistic)(defaultedOptions, observer, errorResetBoundary);
|
||||
}
|
||||
if ((0, import_errorBoundaryUtils.getHasError)({
|
||||
result,
|
||||
errorResetBoundary,
|
||||
throwOnError: defaultedOptions.throwOnError,
|
||||
query,
|
||||
suspense: defaultedOptions.suspense
|
||||
})) {
|
||||
throw result.error;
|
||||
}
|
||||
;
|
||||
(_d = (_c = client.getDefaultOptions().queries) == null ? void 0 : _c._experimental_afterQuery) == null ? void 0 : _d.call(
|
||||
_c,
|
||||
defaultedOptions,
|
||||
result
|
||||
);
|
||||
if (defaultedOptions.experimental_prefetchInRender && !import_query_core.isServer && (0, import_suspense.willFetch)(result, isRestoring)) {
|
||||
const promise = isNewCacheEntry ? (
|
||||
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
||||
(0, import_suspense.fetchOptimistic)(defaultedOptions, observer, errorResetBoundary)
|
||||
) : (
|
||||
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
||||
query == null ? void 0 : query.promise
|
||||
);
|
||||
promise == null ? void 0 : promise.catch(import_query_core.noop).finally(() => {
|
||||
observer.updateResult();
|
||||
});
|
||||
}
|
||||
return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
useBaseQuery
|
||||
});
|
||||
//# sourceMappingURL=useBaseQuery.cjs.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/useBaseQuery.cjs.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/useBaseQuery.cjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
6
frontend/node_modules/@tanstack/react-query/build/legacy/useBaseQuery.d.cts
generated
vendored
Normal file
6
frontend/node_modules/@tanstack/react-query/build/legacy/useBaseQuery.d.cts
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
import { QueryKey, QueryObserver, QueryClient, QueryObserverResult } from '@tanstack/query-core';
|
||||
import { UseBaseQueryOptions } from './types.cjs';
|
||||
|
||||
declare function useBaseQuery<TQueryFnData, TError, TData, TQueryData, TQueryKey extends QueryKey>(options: UseBaseQueryOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>, Observer: typeof QueryObserver, queryClient?: QueryClient): QueryObserverResult<TData, TError>;
|
||||
|
||||
export { useBaseQuery };
|
||||
6
frontend/node_modules/@tanstack/react-query/build/legacy/useBaseQuery.d.ts
generated
vendored
Normal file
6
frontend/node_modules/@tanstack/react-query/build/legacy/useBaseQuery.d.ts
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
import { QueryKey, QueryObserver, QueryClient, QueryObserverResult } from '@tanstack/query-core';
|
||||
import { UseBaseQueryOptions } from './types.js';
|
||||
|
||||
declare function useBaseQuery<TQueryFnData, TError, TData, TQueryData, TQueryKey extends QueryKey>(options: UseBaseQueryOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>, Observer: typeof QueryObserver, queryClient?: QueryClient): QueryObserverResult<TData, TError>;
|
||||
|
||||
export { useBaseQuery };
|
||||
108
frontend/node_modules/@tanstack/react-query/build/legacy/useBaseQuery.js
generated
vendored
Normal file
108
frontend/node_modules/@tanstack/react-query/build/legacy/useBaseQuery.js
generated
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
"use client";
|
||||
|
||||
// src/useBaseQuery.ts
|
||||
import * as React from "react";
|
||||
import { isServer, noop, notifyManager } from "@tanstack/query-core";
|
||||
import { useQueryClient } from "./QueryClientProvider.js";
|
||||
import { useQueryErrorResetBoundary } from "./QueryErrorResetBoundary.js";
|
||||
import {
|
||||
ensurePreventErrorBoundaryRetry,
|
||||
getHasError,
|
||||
useClearResetErrorBoundary
|
||||
} from "./errorBoundaryUtils.js";
|
||||
import { useIsRestoring } from "./IsRestoringProvider.js";
|
||||
import {
|
||||
ensureSuspenseTimers,
|
||||
fetchOptimistic,
|
||||
shouldSuspend,
|
||||
willFetch
|
||||
} from "./suspense.js";
|
||||
function useBaseQuery(options, Observer, queryClient) {
|
||||
var _a, _b, _c, _d;
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
if (typeof options !== "object" || Array.isArray(options)) {
|
||||
throw new Error(
|
||||
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
||||
);
|
||||
}
|
||||
}
|
||||
const isRestoring = useIsRestoring();
|
||||
const errorResetBoundary = useQueryErrorResetBoundary();
|
||||
const client = useQueryClient(queryClient);
|
||||
const defaultedOptions = client.defaultQueryOptions(options);
|
||||
(_b = (_a = client.getDefaultOptions().queries) == null ? void 0 : _a._experimental_beforeQuery) == null ? void 0 : _b.call(
|
||||
_a,
|
||||
defaultedOptions
|
||||
);
|
||||
const query = client.getQueryCache().get(defaultedOptions.queryHash);
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
if (!defaultedOptions.queryFn) {
|
||||
console.error(
|
||||
`[${defaultedOptions.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
|
||||
);
|
||||
}
|
||||
}
|
||||
defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
|
||||
ensureSuspenseTimers(defaultedOptions);
|
||||
ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary, query);
|
||||
useClearResetErrorBoundary(errorResetBoundary);
|
||||
const isNewCacheEntry = !client.getQueryCache().get(defaultedOptions.queryHash);
|
||||
const [observer] = React.useState(
|
||||
() => new Observer(
|
||||
client,
|
||||
defaultedOptions
|
||||
)
|
||||
);
|
||||
const result = observer.getOptimisticResult(defaultedOptions);
|
||||
const shouldSubscribe = !isRestoring && options.subscribed !== false;
|
||||
React.useSyncExternalStore(
|
||||
React.useCallback(
|
||||
(onStoreChange) => {
|
||||
const unsubscribe = shouldSubscribe ? observer.subscribe(notifyManager.batchCalls(onStoreChange)) : noop;
|
||||
observer.updateResult();
|
||||
return unsubscribe;
|
||||
},
|
||||
[observer, shouldSubscribe]
|
||||
),
|
||||
() => observer.getCurrentResult(),
|
||||
() => observer.getCurrentResult()
|
||||
);
|
||||
React.useEffect(() => {
|
||||
observer.setOptions(defaultedOptions);
|
||||
}, [defaultedOptions, observer]);
|
||||
if (shouldSuspend(defaultedOptions, result)) {
|
||||
throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary);
|
||||
}
|
||||
if (getHasError({
|
||||
result,
|
||||
errorResetBoundary,
|
||||
throwOnError: defaultedOptions.throwOnError,
|
||||
query,
|
||||
suspense: defaultedOptions.suspense
|
||||
})) {
|
||||
throw result.error;
|
||||
}
|
||||
;
|
||||
(_d = (_c = client.getDefaultOptions().queries) == null ? void 0 : _c._experimental_afterQuery) == null ? void 0 : _d.call(
|
||||
_c,
|
||||
defaultedOptions,
|
||||
result
|
||||
);
|
||||
if (defaultedOptions.experimental_prefetchInRender && !isServer && willFetch(result, isRestoring)) {
|
||||
const promise = isNewCacheEntry ? (
|
||||
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
||||
fetchOptimistic(defaultedOptions, observer, errorResetBoundary)
|
||||
) : (
|
||||
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
||||
query == null ? void 0 : query.promise
|
||||
);
|
||||
promise == null ? void 0 : promise.catch(noop).finally(() => {
|
||||
observer.updateResult();
|
||||
});
|
||||
}
|
||||
return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
|
||||
}
|
||||
export {
|
||||
useBaseQuery
|
||||
};
|
||||
//# sourceMappingURL=useBaseQuery.js.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/useBaseQuery.js.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/useBaseQuery.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
40
frontend/node_modules/@tanstack/react-query/build/legacy/useInfiniteQuery.cjs
generated
vendored
Normal file
40
frontend/node_modules/@tanstack/react-query/build/legacy/useInfiniteQuery.cjs
generated
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
"use strict";
|
||||
"use client";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/useInfiniteQuery.ts
|
||||
var useInfiniteQuery_exports = {};
|
||||
__export(useInfiniteQuery_exports, {
|
||||
useInfiniteQuery: () => useInfiniteQuery
|
||||
});
|
||||
module.exports = __toCommonJS(useInfiniteQuery_exports);
|
||||
var import_query_core = require("@tanstack/query-core");
|
||||
var import_useBaseQuery = require("./useBaseQuery.cjs");
|
||||
function useInfiniteQuery(options, queryClient) {
|
||||
return (0, import_useBaseQuery.useBaseQuery)(
|
||||
options,
|
||||
import_query_core.InfiniteQueryObserver,
|
||||
queryClient
|
||||
);
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
useInfiniteQuery
|
||||
});
|
||||
//# sourceMappingURL=useInfiniteQuery.cjs.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/useInfiniteQuery.cjs.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/useInfiniteQuery.cjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/useInfiniteQuery.ts"],"sourcesContent":["'use client'\nimport { InfiniteQueryObserver } from '@tanstack/query-core'\nimport { useBaseQuery } from './useBaseQuery'\nimport type {\n DefaultError,\n InfiniteData,\n QueryClient,\n QueryKey,\n QueryObserver,\n} from '@tanstack/query-core'\nimport type {\n DefinedUseInfiniteQueryResult,\n UseInfiniteQueryOptions,\n UseInfiniteQueryResult,\n} from './types'\nimport type {\n DefinedInitialDataInfiniteOptions,\n UndefinedInitialDataInfiniteOptions,\n} from './infiniteQueryOptions'\n\nexport function useInfiniteQuery<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n>(\n options: DefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >,\n queryClient?: QueryClient,\n): DefinedUseInfiniteQueryResult<TData, TError>\n\nexport function useInfiniteQuery<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n>(\n options: UndefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >,\n queryClient?: QueryClient,\n): UseInfiniteQueryResult<TData, TError>\n\nexport function useInfiniteQuery<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n>(\n options: UseInfiniteQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >,\n queryClient?: QueryClient,\n): UseInfiniteQueryResult<TData, TError>\n\nexport function useInfiniteQuery(\n options: UseInfiniteQueryOptions,\n queryClient?: QueryClient,\n) {\n return useBaseQuery(\n options,\n InfiniteQueryObserver as typeof QueryObserver,\n queryClient,\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,wBAAsC;AACtC,0BAA6B;AAqEtB,SAAS,iBACd,SACA,aACA;AACA,aAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;","names":[]}
|
||||
9
frontend/node_modules/@tanstack/react-query/build/legacy/useInfiniteQuery.d.cts
generated
vendored
Normal file
9
frontend/node_modules/@tanstack/react-query/build/legacy/useInfiniteQuery.d.cts
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import { DefaultError, InfiniteData, QueryKey, QueryClient } from '@tanstack/query-core';
|
||||
import { DefinedUseInfiniteQueryResult, UseInfiniteQueryResult, UseInfiniteQueryOptions } from './types.cjs';
|
||||
import { DefinedInitialDataInfiniteOptions, UndefinedInitialDataInfiniteOptions } from './infiniteQueryOptions.cjs';
|
||||
|
||||
declare function useInfiniteQuery<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: DefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, queryClient?: QueryClient): DefinedUseInfiniteQueryResult<TData, TError>;
|
||||
declare function useInfiniteQuery<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: UndefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, queryClient?: QueryClient): UseInfiniteQueryResult<TData, TError>;
|
||||
declare function useInfiniteQuery<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, queryClient?: QueryClient): UseInfiniteQueryResult<TData, TError>;
|
||||
|
||||
export { useInfiniteQuery };
|
||||
9
frontend/node_modules/@tanstack/react-query/build/legacy/useInfiniteQuery.d.ts
generated
vendored
Normal file
9
frontend/node_modules/@tanstack/react-query/build/legacy/useInfiniteQuery.d.ts
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import { DefaultError, InfiniteData, QueryKey, QueryClient } from '@tanstack/query-core';
|
||||
import { DefinedUseInfiniteQueryResult, UseInfiniteQueryResult, UseInfiniteQueryOptions } from './types.js';
|
||||
import { DefinedInitialDataInfiniteOptions, UndefinedInitialDataInfiniteOptions } from './infiniteQueryOptions.js';
|
||||
|
||||
declare function useInfiniteQuery<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: DefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, queryClient?: QueryClient): DefinedUseInfiniteQueryResult<TData, TError>;
|
||||
declare function useInfiniteQuery<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: UndefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, queryClient?: QueryClient): UseInfiniteQueryResult<TData, TError>;
|
||||
declare function useInfiniteQuery<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, queryClient?: QueryClient): UseInfiniteQueryResult<TData, TError>;
|
||||
|
||||
export { useInfiniteQuery };
|
||||
16
frontend/node_modules/@tanstack/react-query/build/legacy/useInfiniteQuery.js
generated
vendored
Normal file
16
frontend/node_modules/@tanstack/react-query/build/legacy/useInfiniteQuery.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
"use client";
|
||||
|
||||
// src/useInfiniteQuery.ts
|
||||
import { InfiniteQueryObserver } from "@tanstack/query-core";
|
||||
import { useBaseQuery } from "./useBaseQuery.js";
|
||||
function useInfiniteQuery(options, queryClient) {
|
||||
return useBaseQuery(
|
||||
options,
|
||||
InfiniteQueryObserver,
|
||||
queryClient
|
||||
);
|
||||
}
|
||||
export {
|
||||
useInfiniteQuery
|
||||
};
|
||||
//# sourceMappingURL=useInfiniteQuery.js.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/useInfiniteQuery.js.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/useInfiniteQuery.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/useInfiniteQuery.ts"],"sourcesContent":["'use client'\nimport { InfiniteQueryObserver } from '@tanstack/query-core'\nimport { useBaseQuery } from './useBaseQuery'\nimport type {\n DefaultError,\n InfiniteData,\n QueryClient,\n QueryKey,\n QueryObserver,\n} from '@tanstack/query-core'\nimport type {\n DefinedUseInfiniteQueryResult,\n UseInfiniteQueryOptions,\n UseInfiniteQueryResult,\n} from './types'\nimport type {\n DefinedInitialDataInfiniteOptions,\n UndefinedInitialDataInfiniteOptions,\n} from './infiniteQueryOptions'\n\nexport function useInfiniteQuery<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n>(\n options: DefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >,\n queryClient?: QueryClient,\n): DefinedUseInfiniteQueryResult<TData, TError>\n\nexport function useInfiniteQuery<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n>(\n options: UndefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >,\n queryClient?: QueryClient,\n): UseInfiniteQueryResult<TData, TError>\n\nexport function useInfiniteQuery<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n>(\n options: UseInfiniteQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >,\n queryClient?: QueryClient,\n): UseInfiniteQueryResult<TData, TError>\n\nexport function useInfiniteQuery(\n options: UseInfiniteQueryOptions,\n queryClient?: QueryClient,\n) {\n return useBaseQuery(\n options,\n InfiniteQueryObserver as typeof QueryObserver,\n queryClient,\n )\n}\n"],"mappings":";;;AACA,SAAS,6BAA6B;AACtC,SAAS,oBAAoB;AAqEtB,SAAS,iBACd,SACA,aACA;AACA,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;","names":[]}
|
||||
56
frontend/node_modules/@tanstack/react-query/build/legacy/useIsFetching.cjs
generated
vendored
Normal file
56
frontend/node_modules/@tanstack/react-query/build/legacy/useIsFetching.cjs
generated
vendored
Normal file
@ -0,0 +1,56 @@
|
||||
"use strict";
|
||||
"use client";
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/useIsFetching.ts
|
||||
var useIsFetching_exports = {};
|
||||
__export(useIsFetching_exports, {
|
||||
useIsFetching: () => useIsFetching
|
||||
});
|
||||
module.exports = __toCommonJS(useIsFetching_exports);
|
||||
var React = __toESM(require("react"), 1);
|
||||
var import_query_core = require("@tanstack/query-core");
|
||||
var import_QueryClientProvider = require("./QueryClientProvider.cjs");
|
||||
function useIsFetching(filters, queryClient) {
|
||||
const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
|
||||
const queryCache = client.getQueryCache();
|
||||
return React.useSyncExternalStore(
|
||||
React.useCallback(
|
||||
(onStoreChange) => queryCache.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
|
||||
[queryCache]
|
||||
),
|
||||
() => client.isFetching(filters),
|
||||
() => client.isFetching(filters)
|
||||
);
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
useIsFetching
|
||||
});
|
||||
//# sourceMappingURL=useIsFetching.cjs.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/useIsFetching.cjs.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/useIsFetching.cjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/useIsFetching.ts"],"sourcesContent":["'use client'\nimport * as React from 'react'\nimport { notifyManager } from '@tanstack/query-core'\n\nimport { useQueryClient } from './QueryClientProvider'\nimport type { QueryClient, QueryFilters } from '@tanstack/query-core'\n\nexport function useIsFetching(\n filters?: QueryFilters,\n queryClient?: QueryClient,\n): number {\n const client = useQueryClient(queryClient)\n const queryCache = client.getQueryCache()\n\n return React.useSyncExternalStore(\n React.useCallback(\n (onStoreChange) =>\n queryCache.subscribe(notifyManager.batchCalls(onStoreChange)),\n [queryCache],\n ),\n () => client.isFetching(filters),\n () => client.isFetching(filters),\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,YAAuB;AACvB,wBAA8B;AAE9B,iCAA+B;AAGxB,SAAS,cACd,SACA,aACQ;AACR,QAAM,aAAS,2CAAe,WAAW;AACzC,QAAM,aAAa,OAAO,cAAc;AAExC,SAAa;AAAA,IACL;AAAA,MACJ,CAAC,kBACC,WAAW,UAAU,gCAAc,WAAW,aAAa,CAAC;AAAA,MAC9D,CAAC,UAAU;AAAA,IACb;AAAA,IACA,MAAM,OAAO,WAAW,OAAO;AAAA,IAC/B,MAAM,OAAO,WAAW,OAAO;AAAA,EACjC;AACF;","names":[]}
|
||||
5
frontend/node_modules/@tanstack/react-query/build/legacy/useIsFetching.d.cts
generated
vendored
Normal file
5
frontend/node_modules/@tanstack/react-query/build/legacy/useIsFetching.d.cts
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
import { QueryFilters, QueryClient } from '@tanstack/query-core';
|
||||
|
||||
declare function useIsFetching(filters?: QueryFilters, queryClient?: QueryClient): number;
|
||||
|
||||
export { useIsFetching };
|
||||
5
frontend/node_modules/@tanstack/react-query/build/legacy/useIsFetching.d.ts
generated
vendored
Normal file
5
frontend/node_modules/@tanstack/react-query/build/legacy/useIsFetching.d.ts
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
import { QueryFilters, QueryClient } from '@tanstack/query-core';
|
||||
|
||||
declare function useIsFetching(filters?: QueryFilters, queryClient?: QueryClient): number;
|
||||
|
||||
export { useIsFetching };
|
||||
22
frontend/node_modules/@tanstack/react-query/build/legacy/useIsFetching.js
generated
vendored
Normal file
22
frontend/node_modules/@tanstack/react-query/build/legacy/useIsFetching.js
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
"use client";
|
||||
|
||||
// src/useIsFetching.ts
|
||||
import * as React from "react";
|
||||
import { notifyManager } from "@tanstack/query-core";
|
||||
import { useQueryClient } from "./QueryClientProvider.js";
|
||||
function useIsFetching(filters, queryClient) {
|
||||
const client = useQueryClient(queryClient);
|
||||
const queryCache = client.getQueryCache();
|
||||
return React.useSyncExternalStore(
|
||||
React.useCallback(
|
||||
(onStoreChange) => queryCache.subscribe(notifyManager.batchCalls(onStoreChange)),
|
||||
[queryCache]
|
||||
),
|
||||
() => client.isFetching(filters),
|
||||
() => client.isFetching(filters)
|
||||
);
|
||||
}
|
||||
export {
|
||||
useIsFetching
|
||||
};
|
||||
//# sourceMappingURL=useIsFetching.js.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/useIsFetching.js.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/useIsFetching.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/useIsFetching.ts"],"sourcesContent":["'use client'\nimport * as React from 'react'\nimport { notifyManager } from '@tanstack/query-core'\n\nimport { useQueryClient } from './QueryClientProvider'\nimport type { QueryClient, QueryFilters } from '@tanstack/query-core'\n\nexport function useIsFetching(\n filters?: QueryFilters,\n queryClient?: QueryClient,\n): number {\n const client = useQueryClient(queryClient)\n const queryCache = client.getQueryCache()\n\n return React.useSyncExternalStore(\n React.useCallback(\n (onStoreChange) =>\n queryCache.subscribe(notifyManager.batchCalls(onStoreChange)),\n [queryCache],\n ),\n () => client.isFetching(filters),\n () => client.isFetching(filters),\n )\n}\n"],"mappings":";;;AACA,YAAY,WAAW;AACvB,SAAS,qBAAqB;AAE9B,SAAS,sBAAsB;AAGxB,SAAS,cACd,SACA,aACQ;AACR,QAAM,SAAS,eAAe,WAAW;AACzC,QAAM,aAAa,OAAO,cAAc;AAExC,SAAa;AAAA,IACL;AAAA,MACJ,CAAC,kBACC,WAAW,UAAU,cAAc,WAAW,aAAa,CAAC;AAAA,MAC9D,CAAC,UAAU;AAAA,IACb;AAAA,IACA,MAAM,OAAO,WAAW,OAAO;AAAA,IAC/B,MAAM,OAAO,WAAW,OAAO;AAAA,EACjC;AACF;","names":[]}
|
||||
74
frontend/node_modules/@tanstack/react-query/build/legacy/useMutation.cjs
generated
vendored
Normal file
74
frontend/node_modules/@tanstack/react-query/build/legacy/useMutation.cjs
generated
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
"use strict";
|
||||
"use client";
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/useMutation.ts
|
||||
var useMutation_exports = {};
|
||||
__export(useMutation_exports, {
|
||||
useMutation: () => useMutation
|
||||
});
|
||||
module.exports = __toCommonJS(useMutation_exports);
|
||||
var React = __toESM(require("react"), 1);
|
||||
var import_query_core = require("@tanstack/query-core");
|
||||
var import_QueryClientProvider = require("./QueryClientProvider.cjs");
|
||||
function useMutation(options, queryClient) {
|
||||
const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
|
||||
const [observer] = React.useState(
|
||||
() => new import_query_core.MutationObserver(
|
||||
client,
|
||||
options
|
||||
)
|
||||
);
|
||||
React.useEffect(() => {
|
||||
observer.setOptions(options);
|
||||
}, [observer, options]);
|
||||
const result = React.useSyncExternalStore(
|
||||
React.useCallback(
|
||||
(onStoreChange) => observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
|
||||
[observer]
|
||||
),
|
||||
() => observer.getCurrentResult(),
|
||||
() => observer.getCurrentResult()
|
||||
);
|
||||
const mutate = React.useCallback(
|
||||
(variables, mutateOptions) => {
|
||||
observer.mutate(variables, mutateOptions).catch(import_query_core.noop);
|
||||
},
|
||||
[observer]
|
||||
);
|
||||
if (result.error && (0, import_query_core.shouldThrowError)(observer.options.throwOnError, [result.error])) {
|
||||
throw result.error;
|
||||
}
|
||||
return { ...result, mutate, mutateAsync: result.mutate };
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
useMutation
|
||||
});
|
||||
//# sourceMappingURL=useMutation.cjs.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/useMutation.cjs.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/useMutation.cjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/useMutation.ts"],"sourcesContent":["'use client'\nimport * as React from 'react'\nimport {\n MutationObserver,\n noop,\n notifyManager,\n shouldThrowError,\n} from '@tanstack/query-core'\nimport { useQueryClient } from './QueryClientProvider'\nimport type {\n UseMutateFunction,\n UseMutationOptions,\n UseMutationResult,\n} from './types'\nimport type { DefaultError, QueryClient } from '@tanstack/query-core'\n\n// HOOK\n\nexport function useMutation<\n TData = unknown,\n TError = DefaultError,\n TVariables = void,\n TOnMutateResult = unknown,\n>(\n options: UseMutationOptions<TData, TError, TVariables, TOnMutateResult>,\n queryClient?: QueryClient,\n): UseMutationResult<TData, TError, TVariables, TOnMutateResult> {\n const client = useQueryClient(queryClient)\n\n const [observer] = React.useState(\n () =>\n new MutationObserver<TData, TError, TVariables, TOnMutateResult>(\n client,\n options,\n ),\n )\n\n React.useEffect(() => {\n observer.setOptions(options)\n }, [observer, options])\n\n const result = React.useSyncExternalStore(\n React.useCallback(\n (onStoreChange) =>\n observer.subscribe(notifyManager.batchCalls(onStoreChange)),\n [observer],\n ),\n () => observer.getCurrentResult(),\n () => observer.getCurrentResult(),\n )\n\n const mutate = React.useCallback<\n UseMutateFunction<TData, TError, TVariables, TOnMutateResult>\n >(\n (variables, mutateOptions) => {\n observer.mutate(variables, mutateOptions).catch(noop)\n },\n [observer],\n )\n\n if (\n result.error &&\n shouldThrowError(observer.options.throwOnError, [result.error])\n ) {\n throw result.error\n }\n\n return { ...result, mutate, mutateAsync: result.mutate }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,YAAuB;AACvB,wBAKO;AACP,iCAA+B;AAUxB,SAAS,YAMd,SACA,aAC+D;AAC/D,QAAM,aAAS,2CAAe,WAAW;AAEzC,QAAM,CAAC,QAAQ,IAAU;AAAA,IACvB,MACE,IAAI;AAAA,MACF;AAAA,MACA;AAAA,IACF;AAAA,EACJ;AAEA,EAAM,gBAAU,MAAM;AACpB,aAAS,WAAW,OAAO;AAAA,EAC7B,GAAG,CAAC,UAAU,OAAO,CAAC;AAEtB,QAAM,SAAe;AAAA,IACb;AAAA,MACJ,CAAC,kBACC,SAAS,UAAU,gCAAc,WAAW,aAAa,CAAC;AAAA,MAC5D,CAAC,QAAQ;AAAA,IACX;AAAA,IACA,MAAM,SAAS,iBAAiB;AAAA,IAChC,MAAM,SAAS,iBAAiB;AAAA,EAClC;AAEA,QAAM,SAAe;AAAA,IAGnB,CAAC,WAAW,kBAAkB;AAC5B,eAAS,OAAO,WAAW,aAAa,EAAE,MAAM,sBAAI;AAAA,IACtD;AAAA,IACA,CAAC,QAAQ;AAAA,EACX;AAEA,MACE,OAAO,aACP,oCAAiB,SAAS,QAAQ,cAAc,CAAC,OAAO,KAAK,CAAC,GAC9D;AACA,UAAM,OAAO;AAAA,EACf;AAEA,SAAO,EAAE,GAAG,QAAQ,QAAQ,aAAa,OAAO,OAAO;AACzD;","names":[]}
|
||||
6
frontend/node_modules/@tanstack/react-query/build/legacy/useMutation.d.cts
generated
vendored
Normal file
6
frontend/node_modules/@tanstack/react-query/build/legacy/useMutation.d.cts
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
import { UseMutationOptions, UseMutationResult } from './types.cjs';
|
||||
import { DefaultError, QueryClient } from '@tanstack/query-core';
|
||||
|
||||
declare function useMutation<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options: UseMutationOptions<TData, TError, TVariables, TOnMutateResult>, queryClient?: QueryClient): UseMutationResult<TData, TError, TVariables, TOnMutateResult>;
|
||||
|
||||
export { useMutation };
|
||||
6
frontend/node_modules/@tanstack/react-query/build/legacy/useMutation.d.ts
generated
vendored
Normal file
6
frontend/node_modules/@tanstack/react-query/build/legacy/useMutation.d.ts
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
import { UseMutationOptions, UseMutationResult } from './types.js';
|
||||
import { DefaultError, QueryClient } from '@tanstack/query-core';
|
||||
|
||||
declare function useMutation<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options: UseMutationOptions<TData, TError, TVariables, TOnMutateResult>, queryClient?: QueryClient): UseMutationResult<TData, TError, TVariables, TOnMutateResult>;
|
||||
|
||||
export { useMutation };
|
||||
45
frontend/node_modules/@tanstack/react-query/build/legacy/useMutation.js
generated
vendored
Normal file
45
frontend/node_modules/@tanstack/react-query/build/legacy/useMutation.js
generated
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
"use client";
|
||||
|
||||
// src/useMutation.ts
|
||||
import * as React from "react";
|
||||
import {
|
||||
MutationObserver,
|
||||
noop,
|
||||
notifyManager,
|
||||
shouldThrowError
|
||||
} from "@tanstack/query-core";
|
||||
import { useQueryClient } from "./QueryClientProvider.js";
|
||||
function useMutation(options, queryClient) {
|
||||
const client = useQueryClient(queryClient);
|
||||
const [observer] = React.useState(
|
||||
() => new MutationObserver(
|
||||
client,
|
||||
options
|
||||
)
|
||||
);
|
||||
React.useEffect(() => {
|
||||
observer.setOptions(options);
|
||||
}, [observer, options]);
|
||||
const result = React.useSyncExternalStore(
|
||||
React.useCallback(
|
||||
(onStoreChange) => observer.subscribe(notifyManager.batchCalls(onStoreChange)),
|
||||
[observer]
|
||||
),
|
||||
() => observer.getCurrentResult(),
|
||||
() => observer.getCurrentResult()
|
||||
);
|
||||
const mutate = React.useCallback(
|
||||
(variables, mutateOptions) => {
|
||||
observer.mutate(variables, mutateOptions).catch(noop);
|
||||
},
|
||||
[observer]
|
||||
);
|
||||
if (result.error && shouldThrowError(observer.options.throwOnError, [result.error])) {
|
||||
throw result.error;
|
||||
}
|
||||
return { ...result, mutate, mutateAsync: result.mutate };
|
||||
}
|
||||
export {
|
||||
useMutation
|
||||
};
|
||||
//# sourceMappingURL=useMutation.js.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/useMutation.js.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/useMutation.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/useMutation.ts"],"sourcesContent":["'use client'\nimport * as React from 'react'\nimport {\n MutationObserver,\n noop,\n notifyManager,\n shouldThrowError,\n} from '@tanstack/query-core'\nimport { useQueryClient } from './QueryClientProvider'\nimport type {\n UseMutateFunction,\n UseMutationOptions,\n UseMutationResult,\n} from './types'\nimport type { DefaultError, QueryClient } from '@tanstack/query-core'\n\n// HOOK\n\nexport function useMutation<\n TData = unknown,\n TError = DefaultError,\n TVariables = void,\n TOnMutateResult = unknown,\n>(\n options: UseMutationOptions<TData, TError, TVariables, TOnMutateResult>,\n queryClient?: QueryClient,\n): UseMutationResult<TData, TError, TVariables, TOnMutateResult> {\n const client = useQueryClient(queryClient)\n\n const [observer] = React.useState(\n () =>\n new MutationObserver<TData, TError, TVariables, TOnMutateResult>(\n client,\n options,\n ),\n )\n\n React.useEffect(() => {\n observer.setOptions(options)\n }, [observer, options])\n\n const result = React.useSyncExternalStore(\n React.useCallback(\n (onStoreChange) =>\n observer.subscribe(notifyManager.batchCalls(onStoreChange)),\n [observer],\n ),\n () => observer.getCurrentResult(),\n () => observer.getCurrentResult(),\n )\n\n const mutate = React.useCallback<\n UseMutateFunction<TData, TError, TVariables, TOnMutateResult>\n >(\n (variables, mutateOptions) => {\n observer.mutate(variables, mutateOptions).catch(noop)\n },\n [observer],\n )\n\n if (\n result.error &&\n shouldThrowError(observer.options.throwOnError, [result.error])\n ) {\n throw result.error\n }\n\n return { ...result, mutate, mutateAsync: result.mutate }\n}\n"],"mappings":";;;AACA,YAAY,WAAW;AACvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,sBAAsB;AAUxB,SAAS,YAMd,SACA,aAC+D;AAC/D,QAAM,SAAS,eAAe,WAAW;AAEzC,QAAM,CAAC,QAAQ,IAAU;AAAA,IACvB,MACE,IAAI;AAAA,MACF;AAAA,MACA;AAAA,IACF;AAAA,EACJ;AAEA,EAAM,gBAAU,MAAM;AACpB,aAAS,WAAW,OAAO;AAAA,EAC7B,GAAG,CAAC,UAAU,OAAO,CAAC;AAEtB,QAAM,SAAe;AAAA,IACb;AAAA,MACJ,CAAC,kBACC,SAAS,UAAU,cAAc,WAAW,aAAa,CAAC;AAAA,MAC5D,CAAC,QAAQ;AAAA,IACX;AAAA,IACA,MAAM,SAAS,iBAAiB;AAAA,IAChC,MAAM,SAAS,iBAAiB;AAAA,EAClC;AAEA,QAAM,SAAe;AAAA,IAGnB,CAAC,WAAW,kBAAkB;AAC5B,eAAS,OAAO,WAAW,aAAa,EAAE,MAAM,IAAI;AAAA,IACtD;AAAA,IACA,CAAC,QAAQ;AAAA,EACX;AAEA,MACE,OAAO,SACP,iBAAiB,SAAS,QAAQ,cAAc,CAAC,OAAO,KAAK,CAAC,GAC9D;AACA,UAAM,OAAO;AAAA,EACf;AAEA,SAAO,EAAE,GAAG,QAAQ,QAAQ,aAAa,OAAO,OAAO;AACzD;","names":[]}
|
||||
86
frontend/node_modules/@tanstack/react-query/build/legacy/useMutationState.cjs
generated
vendored
Normal file
86
frontend/node_modules/@tanstack/react-query/build/legacy/useMutationState.cjs
generated
vendored
Normal file
@ -0,0 +1,86 @@
|
||||
"use strict";
|
||||
"use client";
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/useMutationState.ts
|
||||
var useMutationState_exports = {};
|
||||
__export(useMutationState_exports, {
|
||||
useIsMutating: () => useIsMutating,
|
||||
useMutationState: () => useMutationState
|
||||
});
|
||||
module.exports = __toCommonJS(useMutationState_exports);
|
||||
var React = __toESM(require("react"), 1);
|
||||
var import_query_core = require("@tanstack/query-core");
|
||||
var import_QueryClientProvider = require("./QueryClientProvider.cjs");
|
||||
function useIsMutating(filters, queryClient) {
|
||||
const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
|
||||
return useMutationState(
|
||||
{ filters: { ...filters, status: "pending" } },
|
||||
client
|
||||
).length;
|
||||
}
|
||||
function getResult(mutationCache, options) {
|
||||
return mutationCache.findAll(options.filters).map(
|
||||
(mutation) => options.select ? options.select(mutation) : mutation.state
|
||||
);
|
||||
}
|
||||
function useMutationState(options = {}, queryClient) {
|
||||
const mutationCache = (0, import_QueryClientProvider.useQueryClient)(queryClient).getMutationCache();
|
||||
const optionsRef = React.useRef(options);
|
||||
const result = React.useRef(null);
|
||||
if (result.current === null) {
|
||||
result.current = getResult(mutationCache, options);
|
||||
}
|
||||
React.useEffect(() => {
|
||||
optionsRef.current = options;
|
||||
});
|
||||
return React.useSyncExternalStore(
|
||||
React.useCallback(
|
||||
(onStoreChange) => mutationCache.subscribe(() => {
|
||||
const nextResult = (0, import_query_core.replaceEqualDeep)(
|
||||
result.current,
|
||||
getResult(mutationCache, optionsRef.current)
|
||||
);
|
||||
if (result.current !== nextResult) {
|
||||
result.current = nextResult;
|
||||
import_query_core.notifyManager.schedule(onStoreChange);
|
||||
}
|
||||
}),
|
||||
[mutationCache]
|
||||
),
|
||||
() => result.current,
|
||||
() => result.current
|
||||
);
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
useIsMutating,
|
||||
useMutationState
|
||||
});
|
||||
//# sourceMappingURL=useMutationState.cjs.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/useMutationState.cjs.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/useMutationState.cjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/useMutationState.ts"],"sourcesContent":["'use client'\nimport * as React from 'react'\n\nimport { notifyManager, replaceEqualDeep } from '@tanstack/query-core'\nimport { useQueryClient } from './QueryClientProvider'\nimport type {\n Mutation,\n MutationCache,\n MutationFilters,\n MutationState,\n QueryClient,\n} from '@tanstack/query-core'\n\nexport function useIsMutating(\n filters?: MutationFilters,\n queryClient?: QueryClient,\n): number {\n const client = useQueryClient(queryClient)\n return useMutationState(\n { filters: { ...filters, status: 'pending' } },\n client,\n ).length\n}\n\ntype MutationStateOptions<TResult = MutationState> = {\n filters?: MutationFilters\n select?: (mutation: Mutation) => TResult\n}\n\nfunction getResult<TResult = MutationState>(\n mutationCache: MutationCache,\n options: MutationStateOptions<TResult>,\n): Array<TResult> {\n return mutationCache\n .findAll(options.filters)\n .map(\n (mutation): TResult =>\n (options.select ? options.select(mutation) : mutation.state) as TResult,\n )\n}\n\nexport function useMutationState<TResult = MutationState>(\n options: MutationStateOptions<TResult> = {},\n queryClient?: QueryClient,\n): Array<TResult> {\n const mutationCache = useQueryClient(queryClient).getMutationCache()\n const optionsRef = React.useRef(options)\n const result = React.useRef<Array<TResult>>(null)\n if (result.current === null) {\n result.current = getResult(mutationCache, options)\n }\n\n React.useEffect(() => {\n optionsRef.current = options\n })\n\n return React.useSyncExternalStore(\n React.useCallback(\n (onStoreChange) =>\n mutationCache.subscribe(() => {\n const nextResult = replaceEqualDeep(\n result.current,\n getResult(mutationCache, optionsRef.current),\n )\n if (result.current !== nextResult) {\n result.current = nextResult\n notifyManager.schedule(onStoreChange)\n }\n }),\n [mutationCache],\n ),\n () => result.current,\n () => result.current,\n )!\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,YAAuB;AAEvB,wBAAgD;AAChD,iCAA+B;AASxB,SAAS,cACd,SACA,aACQ;AACR,QAAM,aAAS,2CAAe,WAAW;AACzC,SAAO;AAAA,IACL,EAAE,SAAS,EAAE,GAAG,SAAS,QAAQ,UAAU,EAAE;AAAA,IAC7C;AAAA,EACF,EAAE;AACJ;AAOA,SAAS,UACP,eACA,SACgB;AAChB,SAAO,cACJ,QAAQ,QAAQ,OAAO,EACvB;AAAA,IACC,CAAC,aACE,QAAQ,SAAS,QAAQ,OAAO,QAAQ,IAAI,SAAS;AAAA,EAC1D;AACJ;AAEO,SAAS,iBACd,UAAyC,CAAC,GAC1C,aACgB;AAChB,QAAM,oBAAgB,2CAAe,WAAW,EAAE,iBAAiB;AACnE,QAAM,aAAmB,aAAO,OAAO;AACvC,QAAM,SAAe,aAAuB,IAAI;AAChD,MAAI,OAAO,YAAY,MAAM;AAC3B,WAAO,UAAU,UAAU,eAAe,OAAO;AAAA,EACnD;AAEA,EAAM,gBAAU,MAAM;AACpB,eAAW,UAAU;AAAA,EACvB,CAAC;AAED,SAAa;AAAA,IACL;AAAA,MACJ,CAAC,kBACC,cAAc,UAAU,MAAM;AAC5B,cAAM,iBAAa;AAAA,UACjB,OAAO;AAAA,UACP,UAAU,eAAe,WAAW,OAAO;AAAA,QAC7C;AACA,YAAI,OAAO,YAAY,YAAY;AACjC,iBAAO,UAAU;AACjB,0CAAc,SAAS,aAAa;AAAA,QACtC;AAAA,MACF,CAAC;AAAA,MACH,CAAC,aAAa;AAAA,IAChB;AAAA,IACA,MAAM,OAAO;AAAA,IACb,MAAM,OAAO;AAAA,EACf;AACF;","names":[]}
|
||||
10
frontend/node_modules/@tanstack/react-query/build/legacy/useMutationState.d.cts
generated
vendored
Normal file
10
frontend/node_modules/@tanstack/react-query/build/legacy/useMutationState.d.cts
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
import { MutationFilters, QueryClient, MutationState, Mutation } from '@tanstack/query-core';
|
||||
|
||||
declare function useIsMutating(filters?: MutationFilters, queryClient?: QueryClient): number;
|
||||
type MutationStateOptions<TResult = MutationState> = {
|
||||
filters?: MutationFilters;
|
||||
select?: (mutation: Mutation) => TResult;
|
||||
};
|
||||
declare function useMutationState<TResult = MutationState>(options?: MutationStateOptions<TResult>, queryClient?: QueryClient): Array<TResult>;
|
||||
|
||||
export { useIsMutating, useMutationState };
|
||||
10
frontend/node_modules/@tanstack/react-query/build/legacy/useMutationState.d.ts
generated
vendored
Normal file
10
frontend/node_modules/@tanstack/react-query/build/legacy/useMutationState.d.ts
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
import { MutationFilters, QueryClient, MutationState, Mutation } from '@tanstack/query-core';
|
||||
|
||||
declare function useIsMutating(filters?: MutationFilters, queryClient?: QueryClient): number;
|
||||
type MutationStateOptions<TResult = MutationState> = {
|
||||
filters?: MutationFilters;
|
||||
select?: (mutation: Mutation) => TResult;
|
||||
};
|
||||
declare function useMutationState<TResult = MutationState>(options?: MutationStateOptions<TResult>, queryClient?: QueryClient): Array<TResult>;
|
||||
|
||||
export { useIsMutating, useMutationState };
|
||||
51
frontend/node_modules/@tanstack/react-query/build/legacy/useMutationState.js
generated
vendored
Normal file
51
frontend/node_modules/@tanstack/react-query/build/legacy/useMutationState.js
generated
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
"use client";
|
||||
|
||||
// src/useMutationState.ts
|
||||
import * as React from "react";
|
||||
import { notifyManager, replaceEqualDeep } from "@tanstack/query-core";
|
||||
import { useQueryClient } from "./QueryClientProvider.js";
|
||||
function useIsMutating(filters, queryClient) {
|
||||
const client = useQueryClient(queryClient);
|
||||
return useMutationState(
|
||||
{ filters: { ...filters, status: "pending" } },
|
||||
client
|
||||
).length;
|
||||
}
|
||||
function getResult(mutationCache, options) {
|
||||
return mutationCache.findAll(options.filters).map(
|
||||
(mutation) => options.select ? options.select(mutation) : mutation.state
|
||||
);
|
||||
}
|
||||
function useMutationState(options = {}, queryClient) {
|
||||
const mutationCache = useQueryClient(queryClient).getMutationCache();
|
||||
const optionsRef = React.useRef(options);
|
||||
const result = React.useRef(null);
|
||||
if (result.current === null) {
|
||||
result.current = getResult(mutationCache, options);
|
||||
}
|
||||
React.useEffect(() => {
|
||||
optionsRef.current = options;
|
||||
});
|
||||
return React.useSyncExternalStore(
|
||||
React.useCallback(
|
||||
(onStoreChange) => mutationCache.subscribe(() => {
|
||||
const nextResult = replaceEqualDeep(
|
||||
result.current,
|
||||
getResult(mutationCache, optionsRef.current)
|
||||
);
|
||||
if (result.current !== nextResult) {
|
||||
result.current = nextResult;
|
||||
notifyManager.schedule(onStoreChange);
|
||||
}
|
||||
}),
|
||||
[mutationCache]
|
||||
),
|
||||
() => result.current,
|
||||
() => result.current
|
||||
);
|
||||
}
|
||||
export {
|
||||
useIsMutating,
|
||||
useMutationState
|
||||
};
|
||||
//# sourceMappingURL=useMutationState.js.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/useMutationState.js.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/useMutationState.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/useMutationState.ts"],"sourcesContent":["'use client'\nimport * as React from 'react'\n\nimport { notifyManager, replaceEqualDeep } from '@tanstack/query-core'\nimport { useQueryClient } from './QueryClientProvider'\nimport type {\n Mutation,\n MutationCache,\n MutationFilters,\n MutationState,\n QueryClient,\n} from '@tanstack/query-core'\n\nexport function useIsMutating(\n filters?: MutationFilters,\n queryClient?: QueryClient,\n): number {\n const client = useQueryClient(queryClient)\n return useMutationState(\n { filters: { ...filters, status: 'pending' } },\n client,\n ).length\n}\n\ntype MutationStateOptions<TResult = MutationState> = {\n filters?: MutationFilters\n select?: (mutation: Mutation) => TResult\n}\n\nfunction getResult<TResult = MutationState>(\n mutationCache: MutationCache,\n options: MutationStateOptions<TResult>,\n): Array<TResult> {\n return mutationCache\n .findAll(options.filters)\n .map(\n (mutation): TResult =>\n (options.select ? options.select(mutation) : mutation.state) as TResult,\n )\n}\n\nexport function useMutationState<TResult = MutationState>(\n options: MutationStateOptions<TResult> = {},\n queryClient?: QueryClient,\n): Array<TResult> {\n const mutationCache = useQueryClient(queryClient).getMutationCache()\n const optionsRef = React.useRef(options)\n const result = React.useRef<Array<TResult>>(null)\n if (result.current === null) {\n result.current = getResult(mutationCache, options)\n }\n\n React.useEffect(() => {\n optionsRef.current = options\n })\n\n return React.useSyncExternalStore(\n React.useCallback(\n (onStoreChange) =>\n mutationCache.subscribe(() => {\n const nextResult = replaceEqualDeep(\n result.current,\n getResult(mutationCache, optionsRef.current),\n )\n if (result.current !== nextResult) {\n result.current = nextResult\n notifyManager.schedule(onStoreChange)\n }\n }),\n [mutationCache],\n ),\n () => result.current,\n () => result.current,\n )!\n}\n"],"mappings":";;;AACA,YAAY,WAAW;AAEvB,SAAS,eAAe,wBAAwB;AAChD,SAAS,sBAAsB;AASxB,SAAS,cACd,SACA,aACQ;AACR,QAAM,SAAS,eAAe,WAAW;AACzC,SAAO;AAAA,IACL,EAAE,SAAS,EAAE,GAAG,SAAS,QAAQ,UAAU,EAAE;AAAA,IAC7C;AAAA,EACF,EAAE;AACJ;AAOA,SAAS,UACP,eACA,SACgB;AAChB,SAAO,cACJ,QAAQ,QAAQ,OAAO,EACvB;AAAA,IACC,CAAC,aACE,QAAQ,SAAS,QAAQ,OAAO,QAAQ,IAAI,SAAS;AAAA,EAC1D;AACJ;AAEO,SAAS,iBACd,UAAyC,CAAC,GAC1C,aACgB;AAChB,QAAM,gBAAgB,eAAe,WAAW,EAAE,iBAAiB;AACnE,QAAM,aAAmB,aAAO,OAAO;AACvC,QAAM,SAAe,aAAuB,IAAI;AAChD,MAAI,OAAO,YAAY,MAAM;AAC3B,WAAO,UAAU,UAAU,eAAe,OAAO;AAAA,EACnD;AAEA,EAAM,gBAAU,MAAM;AACpB,eAAW,UAAU;AAAA,EACvB,CAAC;AAED,SAAa;AAAA,IACL;AAAA,MACJ,CAAC,kBACC,cAAc,UAAU,MAAM;AAC5B,cAAM,aAAa;AAAA,UACjB,OAAO;AAAA,UACP,UAAU,eAAe,WAAW,OAAO;AAAA,QAC7C;AACA,YAAI,OAAO,YAAY,YAAY;AACjC,iBAAO,UAAU;AACjB,wBAAc,SAAS,aAAa;AAAA,QACtC;AAAA,MACF,CAAC;AAAA,MACH,CAAC,aAAa;AAAA,IAChB;AAAA,IACA,MAAM,OAAO;AAAA,IACb,MAAM,OAAO;AAAA,EACf;AACF;","names":[]}
|
||||
37
frontend/node_modules/@tanstack/react-query/build/legacy/usePrefetchInfiniteQuery.cjs
generated
vendored
Normal file
37
frontend/node_modules/@tanstack/react-query/build/legacy/usePrefetchInfiniteQuery.cjs
generated
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/usePrefetchInfiniteQuery.tsx
|
||||
var usePrefetchInfiniteQuery_exports = {};
|
||||
__export(usePrefetchInfiniteQuery_exports, {
|
||||
usePrefetchInfiniteQuery: () => usePrefetchInfiniteQuery
|
||||
});
|
||||
module.exports = __toCommonJS(usePrefetchInfiniteQuery_exports);
|
||||
var import_QueryClientProvider = require("./QueryClientProvider.cjs");
|
||||
function usePrefetchInfiniteQuery(options, queryClient) {
|
||||
const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
|
||||
if (!client.getQueryState(options.queryKey)) {
|
||||
client.prefetchInfiniteQuery(options);
|
||||
}
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
usePrefetchInfiniteQuery
|
||||
});
|
||||
//# sourceMappingURL=usePrefetchInfiniteQuery.cjs.map
|
||||
1
frontend/node_modules/@tanstack/react-query/build/legacy/usePrefetchInfiniteQuery.cjs.map
generated
vendored
Normal file
1
frontend/node_modules/@tanstack/react-query/build/legacy/usePrefetchInfiniteQuery.cjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/usePrefetchInfiniteQuery.tsx"],"sourcesContent":["import { useQueryClient } from './QueryClientProvider'\nimport type {\n DefaultError,\n FetchInfiniteQueryOptions,\n QueryClient,\n QueryKey,\n} from '@tanstack/query-core'\n\nexport function usePrefetchInfiniteQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n>(\n options: FetchInfiniteQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >,\n queryClient?: QueryClient,\n) {\n const client = useQueryClient(queryClient)\n\n if (!client.getQueryState(options.queryKey)) {\n client.prefetchInfiniteQuery(options)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iCAA+B;AAQxB,SAAS,yBAOd,SAOA,aACA;AACA,QAAM,aAAS,2CAAe,WAAW;AAEzC,MAAI,CAAC,OAAO,cAAc,QAAQ,QAAQ,GAAG;AAC3C,WAAO,sBAAsB,OAAO;AAAA,EACtC;AACF;","names":[]}
|
||||
5
frontend/node_modules/@tanstack/react-query/build/legacy/usePrefetchInfiniteQuery.d.cts
generated
vendored
Normal file
5
frontend/node_modules/@tanstack/react-query/build/legacy/usePrefetchInfiniteQuery.d.cts
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
import { DefaultError, QueryKey, FetchInfiniteQueryOptions, QueryClient } from '@tanstack/query-core';
|
||||
|
||||
declare function usePrefetchInfiniteQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, queryClient?: QueryClient): void;
|
||||
|
||||
export { usePrefetchInfiniteQuery };
|
||||
5
frontend/node_modules/@tanstack/react-query/build/legacy/usePrefetchInfiniteQuery.d.ts
generated
vendored
Normal file
5
frontend/node_modules/@tanstack/react-query/build/legacy/usePrefetchInfiniteQuery.d.ts
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
import { DefaultError, QueryKey, FetchInfiniteQueryOptions, QueryClient } from '@tanstack/query-core';
|
||||
|
||||
declare function usePrefetchInfiniteQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, queryClient?: QueryClient): void;
|
||||
|
||||
export { usePrefetchInfiniteQuery };
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user