@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.
Files changed (58) hide show
  1. package/dist/{OperationGenerator-Dzs1oRvm.d.ts → OperationGenerator-DeXrfGDC.d.ts} +2 -2
  2. package/dist/{OperationGenerator-Do52cvD0.d.cts → OperationGenerator-DhJ0MBKc.d.cts} +2 -2
  3. package/dist/{Schema-C90zFdkU.d.ts → Schema-B1vcPGiK.d.ts} +2 -4
  4. package/dist/{Schema-DDVEcNcu.d.cts → Schema-DoSFh7Qd.d.cts} +2 -4
  5. package/dist/{SchemaMapper-BM1IGWqD.d.cts → SchemaMapper-sGcY1xL5.d.cts} +0 -1
  6. package/dist/{SchemaMapper-BM1IGWqD.d.ts → SchemaMapper-sGcY1xL5.d.ts} +0 -1
  7. package/dist/chunk-75BIOXB7.cjs +7 -0
  8. package/dist/{chunk-7KIEQOVZ.cjs.map → chunk-75BIOXB7.cjs.map} +1 -1
  9. package/dist/{chunk-UJNAXXVE.js → chunk-MUI5DWM3.js} +458 -465
  10. package/dist/{chunk-UJNAXXVE.js.map → chunk-MUI5DWM3.js.map} +1 -1
  11. package/dist/{chunk-Y4V7HHX7.js → chunk-N7EEVJA6.js} +3 -3
  12. package/dist/{chunk-P42X362U.cjs → chunk-NU4F7G47.cjs} +4 -16
  13. package/dist/chunk-NU4F7G47.cjs.map +1 -0
  14. package/dist/{chunk-QLJIL3U5.cjs → chunk-O76YQFZB.cjs} +3 -3
  15. package/dist/{chunk-QLJIL3U5.cjs.map → chunk-O76YQFZB.cjs.map} +1 -1
  16. package/dist/{chunk-TWKZEVSM.js → chunk-SQ64ESS4.js} +2 -2
  17. package/dist/{chunk-UB552H4J.js → chunk-SZDO532A.js} +3 -15
  18. package/dist/{chunk-UB552H4J.js.map → chunk-SZDO532A.js.map} +1 -1
  19. package/dist/{chunk-RQZBFORW.cjs → chunk-VSVVTCQB.cjs} +481 -488
  20. package/dist/chunk-VSVVTCQB.cjs.map +1 -0
  21. package/dist/components.cjs +4 -4
  22. package/dist/components.d.cts +4 -4
  23. package/dist/components.d.ts +4 -4
  24. package/dist/components.js +3 -3
  25. package/dist/hooks.cjs +12 -12
  26. package/dist/hooks.cjs.map +1 -1
  27. package/dist/hooks.d.cts +3 -3
  28. package/dist/hooks.d.ts +3 -3
  29. package/dist/hooks.js +2 -2
  30. package/dist/hooks.js.map +1 -1
  31. package/dist/index.cjs +112 -115
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.cts +4 -4
  34. package/dist/index.d.ts +4 -4
  35. package/dist/index.js +83 -86
  36. package/dist/index.js.map +1 -1
  37. package/dist/{types-C2RXaY0_.d.cts → types-CZTUCaE5.d.cts} +2 -0
  38. package/dist/{types-C2RXaY0_.d.ts → types-CZTUCaE5.d.ts} +2 -0
  39. package/dist/utils.cjs +9 -54
  40. package/dist/utils.cjs.map +1 -1
  41. package/dist/utils.d.cts +5 -35
  42. package/dist/utils.d.ts +5 -35
  43. package/dist/utils.js +2 -47
  44. package/dist/utils.js.map +1 -1
  45. package/package.json +9 -9
  46. package/src/SchemaGenerator.ts +2 -2
  47. package/src/SchemaMapper.ts +1 -1
  48. package/src/components/Schema.tsx +8 -4
  49. package/src/hooks/useOperationManager.ts +1 -0
  50. package/src/plugin.ts +11 -0
  51. package/src/types.ts +2 -0
  52. package/src/utils/index.ts +0 -1
  53. package/dist/chunk-7KIEQOVZ.cjs +0 -7
  54. package/dist/chunk-P42X362U.cjs.map +0 -1
  55. package/dist/chunk-RQZBFORW.cjs.map +0 -1
  56. package/src/utils/getGroupedByTagFiles.ts +0 -84
  57. /package/dist/{chunk-Y4V7HHX7.js.map → chunk-N7EEVJA6.js.map} +0 -0
  58. /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-C2RXaY0_.js';
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-BM1IGWqD.js';
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-C2RXaY0_.cjs';
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-BM1IGWqD.cjs';
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-BM1IGWqD.js';
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, extName }: SchemaImportsProps) => ReactNode;
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-BM1IGWqD.cjs';
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, extName }: SchemaImportsProps) => ReactNode;
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 };
@@ -107,7 +107,6 @@ type SchemaKeywordMapper = {
107
107
  args: {
108
108
  name: string;
109
109
  path: KubbFile.OptionalPath;
110
- isTypeOnly?: boolean;
111
110
  };
112
111
  };
113
112
  matches: {
@@ -107,7 +107,6 @@ type SchemaKeywordMapper = {
107
107
  args: {
108
108
  name: string;
109
109
  path: KubbFile.OptionalPath;
110
- isTypeOnly?: boolean;
111
110
  };
112
111
  };
113
112
  matches: {
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ var _chunkNU4F7G47cjs = require('./chunk-NU4F7G47.cjs');
4
+
5
+ // src/components/index.ts
6
+ _chunkNU4F7G47cjs.init_cjs_shims.call(void 0, );
7
+ //# sourceMappingURL=chunk-75BIOXB7.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/kubb/kubb/packages/plugin-oas/dist/chunk-7KIEQOVZ.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-7KIEQOVZ.cjs","sourcesContent":[null,"export { Oas } from './Oas.tsx'\nexport { Operation } from './Operation.tsx'\nexport { Schema } from './Schema.tsx'\n"]}
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"]}