@kubb/plugin-oas 3.0.0-alpha.6 → 3.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{OperationGenerator-Dzs1oRvm.d.ts → OperationGenerator-DeXrfGDC.d.ts} +2 -2
- package/dist/{OperationGenerator-Do52cvD0.d.cts → OperationGenerator-DhJ0MBKc.d.cts} +2 -2
- package/dist/{Schema-C90zFdkU.d.ts → Schema-B1vcPGiK.d.ts} +2 -4
- package/dist/{Schema-DDVEcNcu.d.cts → Schema-DoSFh7Qd.d.cts} +2 -4
- package/dist/{SchemaMapper-BM1IGWqD.d.cts → SchemaMapper-sGcY1xL5.d.cts} +0 -1
- package/dist/{SchemaMapper-BM1IGWqD.d.ts → SchemaMapper-sGcY1xL5.d.ts} +0 -1
- package/dist/chunk-75BIOXB7.cjs +7 -0
- package/dist/{chunk-7KIEQOVZ.cjs.map → chunk-75BIOXB7.cjs.map} +1 -1
- package/dist/{chunk-UJNAXXVE.js → chunk-MUI5DWM3.js} +458 -465
- package/dist/{chunk-UJNAXXVE.js.map → chunk-MUI5DWM3.js.map} +1 -1
- package/dist/{chunk-Y4V7HHX7.js → chunk-N7EEVJA6.js} +3 -3
- package/dist/{chunk-P42X362U.cjs → chunk-NU4F7G47.cjs} +4 -16
- package/dist/chunk-NU4F7G47.cjs.map +1 -0
- package/dist/{chunk-QLJIL3U5.cjs → chunk-O76YQFZB.cjs} +3 -3
- package/dist/{chunk-QLJIL3U5.cjs.map → chunk-O76YQFZB.cjs.map} +1 -1
- package/dist/{chunk-TWKZEVSM.js → chunk-SQ64ESS4.js} +2 -2
- package/dist/{chunk-UB552H4J.js → chunk-SZDO532A.js} +3 -15
- package/dist/{chunk-UB552H4J.js.map → chunk-SZDO532A.js.map} +1 -1
- package/dist/{chunk-RQZBFORW.cjs → chunk-VSVVTCQB.cjs} +481 -488
- package/dist/chunk-VSVVTCQB.cjs.map +1 -0
- package/dist/components.cjs +4 -4
- package/dist/components.d.cts +4 -4
- package/dist/components.d.ts +4 -4
- package/dist/components.js +3 -3
- package/dist/hooks.cjs +12 -12
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +3 -3
- package/dist/hooks.d.ts +3 -3
- package/dist/hooks.js +2 -2
- package/dist/hooks.js.map +1 -1
- package/dist/index.cjs +112 -115
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +83 -86
- package/dist/index.js.map +1 -1
- package/dist/{types-C2RXaY0_.d.cts → types-CZTUCaE5.d.cts} +2 -0
- package/dist/{types-C2RXaY0_.d.ts → types-CZTUCaE5.d.ts} +2 -0
- package/dist/utils.cjs +9 -54
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +5 -35
- package/dist/utils.d.ts +5 -35
- package/dist/utils.js +2 -47
- package/dist/utils.js.map +1 -1
- package/package.json +9 -9
- package/src/SchemaGenerator.ts +2 -2
- package/src/SchemaMapper.ts +1 -1
- package/src/components/Schema.tsx +8 -4
- package/src/hooks/useOperationManager.ts +1 -0
- package/src/plugin.ts +11 -0
- package/src/types.ts +2 -0
- package/src/utils/index.ts +0 -1
- package/dist/chunk-7KIEQOVZ.cjs +0 -7
- package/dist/chunk-P42X362U.cjs.map +0 -1
- package/dist/chunk-RQZBFORW.cjs.map +0 -1
- package/src/utils/getGroupedByTagFiles.ts +0 -84
- /package/dist/{chunk-Y4V7HHX7.js.map → chunk-N7EEVJA6.js.map} +0 -0
- /package/dist/{chunk-TWKZEVSM.js.map → chunk-SQ64ESS4.js.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FileMetaBase, ResolveNameParams, PluginFactoryOptions, Generator, PluginManager, Plugin } from '@kubb/core';
|
|
2
2
|
import * as KubbFile from '@kubb/fs/types';
|
|
3
3
|
import { SchemaObject, Oas, contentType, Operation } from '@kubb/oas';
|
|
4
|
-
import { d as OperationSchema, b as Refs, g as Override, f as OperationsByMethod, e as OperationSchemas, E as Exclude, I as Include } from './types-
|
|
4
|
+
import { d as OperationSchema, b as Refs, g as Override, f as OperationsByMethod, e as OperationSchemas, E as Exclude, I as Include } from './types-CZTUCaE5.js';
|
|
5
5
|
import { KubbNode } from '@kubb/react/types';
|
|
6
|
-
import { S as Schema, c as SchemaKeywordMapper } from './SchemaMapper-
|
|
6
|
+
import { S as Schema, c as SchemaKeywordMapper } from './SchemaMapper-sGcY1xL5.js';
|
|
7
7
|
|
|
8
8
|
type GetSchemaGeneratorOptions<T extends SchemaGenerator<any, any, any>> = T extends SchemaGenerator<infer Options, any, any> ? Options : never;
|
|
9
9
|
type SchemaMethodResult<TFileMeta extends FileMetaBase> = Promise<KubbFile.File<TFileMeta> | Array<KubbFile.File<TFileMeta>> | null>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FileMetaBase, ResolveNameParams, PluginFactoryOptions, Generator, PluginManager, Plugin } from '@kubb/core';
|
|
2
2
|
import * as KubbFile from '@kubb/fs/types';
|
|
3
3
|
import { SchemaObject, Oas, contentType, Operation } from '@kubb/oas';
|
|
4
|
-
import { d as OperationSchema, b as Refs, g as Override, f as OperationsByMethod, e as OperationSchemas, E as Exclude, I as Include } from './types-
|
|
4
|
+
import { d as OperationSchema, b as Refs, g as Override, f as OperationsByMethod, e as OperationSchemas, E as Exclude, I as Include } from './types-CZTUCaE5.cjs';
|
|
5
5
|
import { KubbNode } from '@kubb/react/types';
|
|
6
|
-
import { S as Schema, c as SchemaKeywordMapper } from './SchemaMapper-
|
|
6
|
+
import { S as Schema, c as SchemaKeywordMapper } from './SchemaMapper-sGcY1xL5.cjs';
|
|
7
7
|
|
|
8
8
|
type GetSchemaGeneratorOptions<T extends SchemaGenerator<any, any, any>> = T extends SchemaGenerator<infer Options, any, any> ? Options : never;
|
|
9
9
|
type SchemaMethodResult<TFileMeta extends FileMetaBase> = Promise<KubbFile.File<TFileMeta> | Array<KubbFile.File<TFileMeta>> | null>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import * as KubbFile from '@kubb/fs/types';
|
|
4
3
|
import { SchemaObject } from '@kubb/oas';
|
|
5
4
|
import { KubbNode } from '@kubb/react/types';
|
|
6
|
-
import { S as Schema$1 } from './SchemaMapper-
|
|
5
|
+
import { S as Schema$1 } from './SchemaMapper-sGcY1xL5.js';
|
|
7
6
|
|
|
8
7
|
type SchemaContextProps = {
|
|
9
8
|
name: string;
|
|
@@ -19,7 +18,7 @@ type Props = {
|
|
|
19
18
|
declare function Schema({ name, value, tree, children }: Props): KubbNode;
|
|
20
19
|
declare namespace Schema {
|
|
21
20
|
var File: ({ output, isTypeOnly, children }: FileProps) => ReactNode;
|
|
22
|
-
var Imports: ({ isTypeOnly
|
|
21
|
+
var Imports: ({ isTypeOnly }: SchemaImportsProps) => ReactNode;
|
|
23
22
|
var Context: react.Context<SchemaContextProps>;
|
|
24
23
|
}
|
|
25
24
|
type FileProps = {
|
|
@@ -29,7 +28,6 @@ type FileProps = {
|
|
|
29
28
|
};
|
|
30
29
|
type SchemaImportsProps = {
|
|
31
30
|
isTypeOnly?: boolean;
|
|
32
|
-
extName?: KubbFile.Extname;
|
|
33
31
|
};
|
|
34
32
|
|
|
35
33
|
export { Schema as S, type SchemaContextProps as a };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import * as KubbFile from '@kubb/fs/types';
|
|
4
3
|
import { SchemaObject } from '@kubb/oas';
|
|
5
4
|
import { KubbNode } from '@kubb/react/types';
|
|
6
|
-
import { S as Schema$1 } from './SchemaMapper-
|
|
5
|
+
import { S as Schema$1 } from './SchemaMapper-sGcY1xL5.cjs';
|
|
7
6
|
|
|
8
7
|
type SchemaContextProps = {
|
|
9
8
|
name: string;
|
|
@@ -19,7 +18,7 @@ type Props = {
|
|
|
19
18
|
declare function Schema({ name, value, tree, children }: Props): KubbNode;
|
|
20
19
|
declare namespace Schema {
|
|
21
20
|
var File: ({ output, isTypeOnly, children }: FileProps) => ReactNode;
|
|
22
|
-
var Imports: ({ isTypeOnly
|
|
21
|
+
var Imports: ({ isTypeOnly }: SchemaImportsProps) => ReactNode;
|
|
23
22
|
var Context: react.Context<SchemaContextProps>;
|
|
24
23
|
}
|
|
25
24
|
type FileProps = {
|
|
@@ -29,7 +28,6 @@ type FileProps = {
|
|
|
29
28
|
};
|
|
30
29
|
type SchemaImportsProps = {
|
|
31
30
|
isTypeOnly?: boolean;
|
|
32
|
-
extName?: KubbFile.Extname;
|
|
33
31
|
};
|
|
34
32
|
|
|
35
33
|
export { Schema as S, type SchemaContextProps as a };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/kubb/kubb/packages/plugin-oas/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/kubb/kubb/packages/plugin-oas/dist/chunk-75BIOXB7.cjs","../src/components/index.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACJA,8CAAA,CAAA","file":"/home/runner/work/kubb/kubb/packages/plugin-oas/dist/chunk-75BIOXB7.cjs","sourcesContent":[null,"export { Oas } from './Oas.tsx'\nexport { Operation } from './Operation.tsx'\nexport { Schema } from './Schema.tsx'\n"]}
|