@kubb/plugin-oas 3.0.0-alpha.4 → 3.0.0-alpha.6

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 (36) hide show
  1. package/dist/{OperationGenerator-D7rSlflc.d.cts → OperationGenerator-Do52cvD0.d.cts} +1 -1
  2. package/dist/{OperationGenerator-vw0Zf-Mi.d.ts → OperationGenerator-Dzs1oRvm.d.ts} +1 -1
  3. package/dist/{Schema-gHgN14i2.d.ts → Schema-C90zFdkU.d.ts} +1 -1
  4. package/dist/{Schema-DxyOIX7q.d.cts → Schema-DDVEcNcu.d.cts} +1 -1
  5. package/dist/{chunk-264TCCJF.cjs → chunk-RQZBFORW.cjs} +6 -6
  6. package/dist/{chunk-264TCCJF.cjs.map → chunk-RQZBFORW.cjs.map} +1 -1
  7. package/dist/{chunk-FZN3PBEK.js → chunk-UJNAXXVE.js} +7 -7
  8. package/dist/{chunk-FZN3PBEK.js.map → chunk-UJNAXXVE.js.map} +1 -1
  9. package/dist/components.cjs +2 -2
  10. package/dist/components.d.cts +3 -3
  11. package/dist/components.d.ts +3 -3
  12. package/dist/components.js +1 -1
  13. package/dist/hooks.cjs +6 -6
  14. package/dist/hooks.d.cts +2 -2
  15. package/dist/hooks.d.ts +2 -2
  16. package/dist/hooks.js +1 -1
  17. package/dist/index.cjs +18 -31
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +2 -2
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +13 -26
  22. package/dist/index.js.map +1 -1
  23. package/dist/utils.cjs +2 -3
  24. package/dist/utils.cjs.map +1 -1
  25. package/dist/utils.d.cts +4 -1
  26. package/dist/utils.d.ts +4 -1
  27. package/dist/utils.js +2 -3
  28. package/dist/utils.js.map +1 -1
  29. package/package.json +9 -9
  30. package/src/components/Oas.tsx +1 -1
  31. package/src/components/Operation.tsx +1 -1
  32. package/src/components/Schema.tsx +22 -28
  33. package/src/parser.tsx +2 -1
  34. package/src/plugin.ts +13 -29
  35. package/src/utils/getGroupedByTagFiles.ts +5 -3
  36. package/src/utils/getParams.ts +1 -1
@@ -2,7 +2,7 @@ import { FileMetaBase, ResolveNameParams, PluginFactoryOptions, Generator, Plugi
2
2
  import * as KubbFile from '@kubb/fs/types';
3
3
  import { SchemaObject, Oas, contentType, Operation } from '@kubb/oas';
4
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';
5
- import { KubbNode } from '@kubb/react';
5
+ import { KubbNode } from '@kubb/react/types';
6
6
  import { S as Schema, c as SchemaKeywordMapper } from './SchemaMapper-BM1IGWqD.cjs';
7
7
 
8
8
  type GetSchemaGeneratorOptions<T extends SchemaGenerator<any, any, any>> = T extends SchemaGenerator<infer Options, any, any> ? Options : never;
@@ -2,7 +2,7 @@ import { FileMetaBase, ResolveNameParams, PluginFactoryOptions, Generator, Plugi
2
2
  import * as KubbFile from '@kubb/fs/types';
3
3
  import { SchemaObject, Oas, contentType, Operation } from '@kubb/oas';
4
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';
5
- import { KubbNode } from '@kubb/react';
5
+ import { KubbNode } from '@kubb/react/types';
6
6
  import { S as Schema, c as SchemaKeywordMapper } from './SchemaMapper-BM1IGWqD.js';
7
7
 
8
8
  type GetSchemaGeneratorOptions<T extends SchemaGenerator<any, any, any>> = T extends SchemaGenerator<infer Options, any, any> ? Options : never;
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
  import * as KubbFile from '@kubb/fs/types';
4
4
  import { SchemaObject } from '@kubb/oas';
5
- import { KubbNode } from '@kubb/react';
5
+ import { KubbNode } from '@kubb/react/types';
6
6
  import { S as Schema$1 } from './SchemaMapper-BM1IGWqD.js';
7
7
 
8
8
  type SchemaContextProps = {
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
  import * as KubbFile from '@kubb/fs/types';
4
4
  import { SchemaObject } from '@kubb/oas';
5
- import { KubbNode } from '@kubb/react';
5
+ import { KubbNode } from '@kubb/react/types';
6
6
  import { S as Schema$1 } from './SchemaMapper-BM1IGWqD.cjs';
7
7
 
8
8
  type SchemaContextProps = {
@@ -3844,7 +3844,7 @@ Schema.File = function({ output, isTypeOnly, children }) {
3844
3844
  if (!resolvedPath2) {
3845
3845
  return null;
3846
3846
  }
3847
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(_react.Parser, { language: "typescript", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
3847
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
3848
3848
  _react.File,
3849
3849
  {
3850
3850
  baseName: baseName2,
@@ -3854,7 +3854,7 @@ Schema.File = function({ output, isTypeOnly, children }) {
3854
3854
  },
3855
3855
  children
3856
3856
  }
3857
- ) });
3857
+ );
3858
3858
  }
3859
3859
  const baseName = `${pluginManager.resolveName({
3860
3860
  name,
@@ -3868,7 +3868,7 @@ Schema.File = function({ output, isTypeOnly, children }) {
3868
3868
  if (!resolvedPath) {
3869
3869
  return null;
3870
3870
  }
3871
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(_react.Parser, { language: "typescript", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
3871
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
3872
3872
  _react.File,
3873
3873
  {
3874
3874
  baseName,
@@ -3881,7 +3881,7 @@ Schema.File = function({ output, isTypeOnly, children }) {
3881
3881
  children
3882
3882
  ]
3883
3883
  }
3884
- ) });
3884
+ );
3885
3885
  };
3886
3886
  Schema.Imports = ({ isTypeOnly, extName }) => {
3887
3887
  const { tree } = useSchema();
@@ -3891,7 +3891,7 @@ Schema.Imports = ({ isTypeOnly, extName }) => {
3891
3891
  if (!item.args.path) {
3892
3892
  return void 0;
3893
3893
  }
3894
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(_react.File.Import, { extName, root, name: [item.args.name], path: item.args.path, isTypeOnly: _nullishCoalesce(item.args.isTypeOnly, () => ( isTypeOnly)) }, i);
3894
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(_react.File.Import, { root, name: [item.args.name], path: item.args.path, isTypeOnly: _nullishCoalesce(item.args.isTypeOnly, () => ( isTypeOnly)) }, i);
3895
3895
  }), 'access', _42 => _42.filter, 'call', _43 => _43(Boolean)]) });
3896
3896
  };
3897
3897
  Schema.Context = SchemaContext;
@@ -3970,4 +3970,4 @@ react/cjs/react-jsx-runtime.development.js:
3970
3970
  * LICENSE file in the root directory of this source tree.
3971
3971
  *)
3972
3972
  */
3973
- //# sourceMappingURL=chunk-264TCCJF.cjs.map
3973
+ //# sourceMappingURL=chunk-RQZBFORW.cjs.map