@kubb/plugin-oas 2.24.0 → 2.25.1
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/{Schema-D41ItX9C.d.ts → Schema-DefwBJMc.d.ts} +3 -1
- package/dist/{Schema-FGI5VPqc.d.cts → Schema-an5hOrjZ.d.cts} +3 -1
- package/dist/{chunk-KI3GNEKH.js → chunk-6QFVU3BI.js} +5 -5
- package/dist/{chunk-KI3GNEKH.js.map → chunk-6QFVU3BI.js.map} +1 -1
- package/dist/{chunk-EK7UO5ZW.js → chunk-7BYOJGO3.js} +2 -2
- package/dist/{chunk-CO7DS2KL.cjs → chunk-DHPXS6V7.cjs} +3 -3
- package/dist/{chunk-CO7DS2KL.cjs.map → chunk-DHPXS6V7.cjs.map} +1 -1
- package/dist/{chunk-LRJFQCDO.js → chunk-E4NYDEAU.js} +3 -3
- package/dist/{chunk-LRJFQCDO.js.map → chunk-E4NYDEAU.js.map} +1 -1
- package/dist/{chunk-UZLE6NIY.js → chunk-KGR7UP2W.js} +2 -2
- package/dist/{chunk-CCPZYOTX.cjs → chunk-M62LERKB.cjs} +21 -21
- package/dist/{chunk-CCPZYOTX.cjs.map → chunk-M62LERKB.cjs.map} +1 -1
- package/dist/{chunk-TL7TBM2U.cjs → chunk-NLQIW5KR.cjs} +25 -25
- package/dist/{chunk-TL7TBM2U.cjs.map → chunk-NLQIW5KR.cjs.map} +1 -1
- package/dist/{chunk-PFN2GSIC.cjs → chunk-PHNRHM3I.cjs} +3 -3
- package/dist/{chunk-PFN2GSIC.cjs.map → chunk-PHNRHM3I.cjs.map} +1 -1
- package/dist/components.cjs +5 -5
- package/dist/components.d.cts +2 -2
- package/dist/components.d.ts +2 -2
- package/dist/components.js +3 -3
- package/dist/hooks.cjs +13 -13
- package/dist/hooks.d.cts +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +3 -3
- package/dist/index.cjs +20 -20
- package/dist/index.js +3 -3
- package/dist/utils.cjs +8 -8
- package/dist/utils.js +2 -2
- package/package.json +11 -11
- package/src/components/Schema.tsx +5 -2
- /package/dist/{chunk-EK7UO5ZW.js.map → chunk-7BYOJGO3.js.map} +0 -0
- /package/dist/{chunk-UZLE6NIY.js.map → chunk-KGR7UP2W.js.map} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import * as KubbFile from '@kubb/fs/types';
|
|
3
4
|
import { SchemaObject } from '@kubb/oas';
|
|
4
5
|
import { KubbNode } from '@kubb/react';
|
|
5
6
|
import { S as Schema$1 } from './SchemaMapper-CsBQ6eEx.js';
|
|
@@ -18,7 +19,7 @@ type Props = {
|
|
|
18
19
|
declare function Schema({ name, value, tree, children }: Props): KubbNode;
|
|
19
20
|
declare namespace Schema {
|
|
20
21
|
var File: ({ output, isTypeOnly, children }: FileProps) => ReactNode;
|
|
21
|
-
var Imports: ({ isTypeOnly }: SchemaImportsProps) => ReactNode;
|
|
22
|
+
var Imports: ({ isTypeOnly, extName }: SchemaImportsProps) => ReactNode;
|
|
22
23
|
var Context: react.Context<SchemaContextProps>;
|
|
23
24
|
}
|
|
24
25
|
type FileProps = {
|
|
@@ -28,6 +29,7 @@ type FileProps = {
|
|
|
28
29
|
};
|
|
29
30
|
type SchemaImportsProps = {
|
|
30
31
|
isTypeOnly?: boolean;
|
|
32
|
+
extName?: KubbFile.Extname;
|
|
31
33
|
};
|
|
32
34
|
|
|
33
35
|
export { Schema as S, type SchemaContextProps as a };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import * as KubbFile from '@kubb/fs/types';
|
|
3
4
|
import { SchemaObject } from '@kubb/oas';
|
|
4
5
|
import { KubbNode } from '@kubb/react';
|
|
5
6
|
import { S as Schema$1 } from './SchemaMapper-CsBQ6eEx.cjs';
|
|
@@ -18,7 +19,7 @@ type Props = {
|
|
|
18
19
|
declare function Schema({ name, value, tree, children }: Props): KubbNode;
|
|
19
20
|
declare namespace Schema {
|
|
20
21
|
var File: ({ output, isTypeOnly, children }: FileProps) => ReactNode;
|
|
21
|
-
var Imports: ({ isTypeOnly }: SchemaImportsProps) => ReactNode;
|
|
22
|
+
var Imports: ({ isTypeOnly, extName }: SchemaImportsProps) => ReactNode;
|
|
22
23
|
var Context: react.Context<SchemaContextProps>;
|
|
23
24
|
}
|
|
24
25
|
type FileProps = {
|
|
@@ -28,6 +29,7 @@ type FileProps = {
|
|
|
28
29
|
};
|
|
29
30
|
type SchemaImportsProps = {
|
|
30
31
|
isTypeOnly?: boolean;
|
|
32
|
+
extName?: KubbFile.Extname;
|
|
31
33
|
};
|
|
32
34
|
|
|
33
35
|
export { Schema as S, type SchemaContextProps as a };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SchemaGenerator,
|
|
3
3
|
schemaKeywords
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KGR7UP2W.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__toESM,
|
|
8
8
|
init_esm_shims
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-E4NYDEAU.js";
|
|
10
10
|
|
|
11
11
|
// ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js
|
|
12
12
|
var require_react_production_min = __commonJS({
|
|
@@ -3179,7 +3179,7 @@ Schema.File = function({ output, isTypeOnly, children }) {
|
|
|
3179
3179
|
}
|
|
3180
3180
|
) });
|
|
3181
3181
|
};
|
|
3182
|
-
Schema.Imports = ({ isTypeOnly }) => {
|
|
3182
|
+
Schema.Imports = ({ isTypeOnly, extName }) => {
|
|
3183
3183
|
const { tree } = useSchema();
|
|
3184
3184
|
const { path: root } = useFile();
|
|
3185
3185
|
const refs = SchemaGenerator.deepSearch(tree, schemaKeywords.ref);
|
|
@@ -3187,7 +3187,7 @@ Schema.Imports = ({ isTypeOnly }) => {
|
|
|
3187
3187
|
if (!item.args.path) {
|
|
3188
3188
|
return void 0;
|
|
3189
3189
|
}
|
|
3190
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(File.Import, { root, name: [item.args.name], path: item.args.path, isTypeOnly: item.args.isTypeOnly ?? isTypeOnly }, i);
|
|
3190
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(File.Import, { extName, root, name: [item.args.name], path: item.args.path, isTypeOnly: item.args.isTypeOnly ?? isTypeOnly }, i);
|
|
3191
3191
|
}).filter(Boolean) });
|
|
3192
3192
|
};
|
|
3193
3193
|
Schema.Context = SchemaContext;
|
|
@@ -3262,4 +3262,4 @@ react/cjs/react-jsx-runtime.development.js:
|
|
|
3262
3262
|
* LICENSE file in the root directory of this source tree.
|
|
3263
3263
|
*)
|
|
3264
3264
|
*/
|
|
3265
|
-
//# sourceMappingURL=chunk-
|
|
3265
|
+
//# sourceMappingURL=chunk-6QFVU3BI.js.map
|