@kubb/plugin-react-query 5.10.0 → 5.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -4
- package/dist/index.d.ts +1 -4
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/docs/guides/calling-operations.md +11 -7
- package/docs/options.md +38 -20
- package/docs/overview.md +5 -3
- package/kubb-extension.json +8 -5
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Exclude, Group, Include, Output, OutputOptions, Override, PluginType, Resolver, ResolverPatch, ast } from "@kubb/kit";
|
|
2
2
|
import { ResolverTs } from "@kubb/plugin-ts";
|
|
3
|
-
import "@kubb/renderer-jsx";
|
|
4
|
-
import "@kubb/adapter-oas";
|
|
5
3
|
/**
|
|
6
4
|
* The client selector accepted by a consumer's `client` option. Each calls a registered contract
|
|
7
5
|
* client plugin.
|
|
@@ -593,5 +591,4 @@ export declare const pluginReactQuery: import("@kubb/kit").PluginFactory<PluginR
|
|
|
593
591
|
* ```
|
|
594
592
|
*/
|
|
595
593
|
export declare const resolverReactQuery: ResolverReactQuery;
|
|
596
|
-
export { type PageParamFn, type PluginReactQuery, type ResolverReactQuery, type Transformer, pluginReactQuery as default };
|
|
597
|
-
//# sourceMappingURL=index.d.cts.map
|
|
594
|
+
export { type PageParamFn, type PluginReactQuery, type ResolverReactQuery, type Transformer, pluginReactQuery as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Exclude, Group, Include, Output, OutputOptions, Override, PluginType, Resolver, ResolverPatch, ast } from "@kubb/kit";
|
|
2
2
|
import { ResolverTs } from "@kubb/plugin-ts";
|
|
3
|
-
import "@kubb/renderer-jsx";
|
|
4
|
-
import "@kubb/adapter-oas";
|
|
5
3
|
/**
|
|
6
4
|
* The client selector accepted by a consumer's `client` option. Each calls a registered contract
|
|
7
5
|
* client plugin.
|
|
@@ -593,5 +591,4 @@ export declare const pluginReactQuery: import("@kubb/kit").PluginFactory<PluginR
|
|
|
593
591
|
* ```
|
|
594
592
|
*/
|
|
595
593
|
export declare const resolverReactQuery: ResolverReactQuery;
|
|
596
|
-
export { type PageParamFn, type PluginReactQuery, type ResolverReactQuery, type Transformer, pluginReactQuery as default };
|
|
597
|
-
//# sourceMappingURL=index.d.ts.map
|
|
594
|
+
export { type PageParamFn, type PluginReactQuery, type ResolverReactQuery, type Transformer, pluginReactQuery as default };
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var compatibility = {
|
|
|
10
10
|
"node": ">=22.22"
|
|
11
11
|
};
|
|
12
12
|
// package.json
|
|
13
|
-
var version = "5.10.
|
|
13
|
+
var version = "5.10.2";
|
|
14
14
|
// ../../internals/client/src/resolveClient.ts
|
|
15
15
|
/**
|
|
16
16
|
* Resolves which client plugin a consumer (react-query, vue-query, swr, mcp) should call for an
|
|
@@ -1547,6 +1547,13 @@ const customHookOptionsFileGenerator = defineGenerator({
|
|
|
1547
1547
|
const relativeToOutput = path.relative(outputDir, file.path);
|
|
1548
1548
|
if (relativeToOutput === ".." || relativeToOutput.startsWith(`..${path.sep}`) || path.isAbsolute(relativeToOutput)) return null;
|
|
1549
1549
|
if (fs.existsSync(file.path)) return null;
|
|
1550
|
+
const hookOptionsPath = resolver.file({
|
|
1551
|
+
name: hookOptionsName,
|
|
1552
|
+
extname: ".ts",
|
|
1553
|
+
root,
|
|
1554
|
+
output,
|
|
1555
|
+
group: group ?? void 0
|
|
1556
|
+
}).path.replace(/[^/\\]+\.ts$/, `${hookOptionsName}.ts`);
|
|
1550
1557
|
return /* @__PURE__ */ jsxs(File, {
|
|
1551
1558
|
baseName: file.baseName,
|
|
1552
1559
|
path: file.path,
|
|
@@ -1563,7 +1570,8 @@ const customHookOptionsFileGenerator = defineGenerator({
|
|
|
1563
1570
|
/* @__PURE__ */ jsx(File.Import, {
|
|
1564
1571
|
name: [hookOptionsName],
|
|
1565
1572
|
root: file.path,
|
|
1566
|
-
path:
|
|
1573
|
+
path: hookOptionsPath,
|
|
1574
|
+
isTypeOnly: true
|
|
1567
1575
|
}),
|
|
1568
1576
|
/* @__PURE__ */ jsxs(File.Source, {
|
|
1569
1577
|
name,
|