@kubb/plugin-oas 2.25.0 → 3.0.0-alpha.0

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 (44) hide show
  1. package/dist/{OperationGenerator-DO5tNGuT.d.ts → OperationGenerator-B0RLFu4P.d.ts} +1 -1
  2. package/dist/{OperationGenerator-BV6QRtkW.d.cts → OperationGenerator-CrCcKl3S.d.cts} +1 -1
  3. package/dist/{Schema-D41ItX9C.d.ts → Schema-DefwBJMc.d.ts} +3 -1
  4. package/dist/{Schema-FGI5VPqc.d.cts → Schema-an5hOrjZ.d.cts} +3 -1
  5. package/dist/{chunk-CO7DS2KL.cjs → chunk-3UN2S6P2.cjs} +3 -3
  6. package/dist/{chunk-CO7DS2KL.cjs.map → chunk-3UN2S6P2.cjs.map} +1 -1
  7. package/dist/{chunk-EK7UO5ZW.js → chunk-GUPCIAYT.js} +2 -2
  8. package/dist/{chunk-PFN2GSIC.cjs → chunk-J7IF3KA3.cjs} +3 -3
  9. package/dist/{chunk-PFN2GSIC.cjs.map → chunk-J7IF3KA3.cjs.map} +1 -1
  10. package/dist/{chunk-CCPZYOTX.cjs → chunk-K4GEQ3C2.cjs} +24 -21
  11. package/dist/chunk-K4GEQ3C2.cjs.map +1 -0
  12. package/dist/{chunk-KI3GNEKH.js → chunk-QSM6A5QX.js} +5 -5
  13. package/dist/{chunk-KI3GNEKH.js.map → chunk-QSM6A5QX.js.map} +1 -1
  14. package/dist/{chunk-TL7TBM2U.cjs → chunk-UKUEVTRB.cjs} +25 -25
  15. package/dist/{chunk-TL7TBM2U.cjs.map → chunk-UKUEVTRB.cjs.map} +1 -1
  16. package/dist/{chunk-LRJFQCDO.js → chunk-Y272OQMW.js} +3 -3
  17. package/dist/{chunk-LRJFQCDO.js.map → chunk-Y272OQMW.js.map} +1 -1
  18. package/dist/{chunk-UZLE6NIY.js → chunk-ZZ7ZC4TT.js} +5 -2
  19. package/dist/chunk-ZZ7ZC4TT.js.map +1 -0
  20. package/dist/components.cjs +5 -5
  21. package/dist/components.d.cts +4 -4
  22. package/dist/components.d.ts +4 -4
  23. package/dist/components.js +3 -3
  24. package/dist/hooks.cjs +13 -13
  25. package/dist/hooks.d.cts +2 -2
  26. package/dist/hooks.d.ts +2 -2
  27. package/dist/hooks.js +3 -3
  28. package/dist/index.cjs +20 -20
  29. package/dist/index.d.cts +3 -3
  30. package/dist/index.d.ts +3 -3
  31. package/dist/index.js +3 -3
  32. package/dist/{types-Db0qp8u-.d.ts → types-BP45TdiW.d.cts} +1 -1
  33. package/dist/{types-Db0qp8u-.d.cts → types-BP45TdiW.d.ts} +1 -1
  34. package/dist/utils.cjs +8 -8
  35. package/dist/utils.d.cts +2 -2
  36. package/dist/utils.d.ts +2 -2
  37. package/dist/utils.js +2 -2
  38. package/package.json +12 -12
  39. package/src/SchemaGenerator.ts +5 -1
  40. package/src/components/Schema.tsx +5 -2
  41. package/src/types.ts +1 -1
  42. package/dist/chunk-CCPZYOTX.cjs.map +0 -1
  43. package/dist/chunk-UZLE6NIY.js.map +0 -1
  44. /package/dist/{chunk-EK7UO5ZW.js.map → chunk-GUPCIAYT.js.map} +0 -0
@@ -1,18 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkCCPZYOTXcjs = require('./chunk-CCPZYOTX.cjs');
4
+ var _chunkK4GEQ3C2cjs = require('./chunk-K4GEQ3C2.cjs');
5
5
 
6
6
 
7
7
 
8
8
 
9
- var _chunkPFN2GSICcjs = require('./chunk-PFN2GSIC.cjs');
9
+ var _chunkJ7IF3KA3cjs = require('./chunk-J7IF3KA3.cjs');
10
10
 
11
11
  // ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js
12
- var require_react_production_min = _chunkPFN2GSICcjs.__commonJS.call(void 0, {
12
+ var require_react_production_min = _chunkJ7IF3KA3cjs.__commonJS.call(void 0, {
13
13
  "../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js"(exports) {
14
14
  "use strict";
15
- _chunkPFN2GSICcjs.init_cjs_shims.call(void 0, );
15
+ _chunkJ7IF3KA3cjs.init_cjs_shims.call(void 0, );
16
16
  var l = Symbol.for("react.element");
17
17
  var n = Symbol.for("react.portal");
18
18
  var p = Symbol.for("react.fragment");
@@ -283,10 +283,10 @@ var require_react_production_min = _chunkPFN2GSICcjs.__commonJS.call(void 0, {
283
283
  });
284
284
 
285
285
  // ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js
286
- var require_react_development = _chunkPFN2GSICcjs.__commonJS.call(void 0, {
286
+ var require_react_development = _chunkJ7IF3KA3cjs.__commonJS.call(void 0, {
287
287
  "../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js"(exports, module) {
288
288
  "use strict";
289
- _chunkPFN2GSICcjs.init_cjs_shims.call(void 0, );
289
+ _chunkJ7IF3KA3cjs.init_cjs_shims.call(void 0, );
290
290
  if (process.env.NODE_ENV !== "production") {
291
291
  (function() {
292
292
  "use strict";
@@ -2158,10 +2158,10 @@ var require_react_development = _chunkPFN2GSICcjs.__commonJS.call(void 0, {
2158
2158
  });
2159
2159
 
2160
2160
  // ../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js
2161
- var require_react = _chunkPFN2GSICcjs.__commonJS.call(void 0, {
2161
+ var require_react = _chunkJ7IF3KA3cjs.__commonJS.call(void 0, {
2162
2162
  "../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"(exports, module) {
2163
2163
  "use strict";
2164
- _chunkPFN2GSICcjs.init_cjs_shims.call(void 0, );
2164
+ _chunkJ7IF3KA3cjs.init_cjs_shims.call(void 0, );
2165
2165
  if (process.env.NODE_ENV === "production") {
2166
2166
  module.exports = require_react_production_min();
2167
2167
  } else {
@@ -2171,10 +2171,10 @@ var require_react = _chunkPFN2GSICcjs.__commonJS.call(void 0, {
2171
2171
  });
2172
2172
 
2173
2173
  // ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js
2174
- var require_react_jsx_runtime_production_min = _chunkPFN2GSICcjs.__commonJS.call(void 0, {
2174
+ var require_react_jsx_runtime_production_min = _chunkJ7IF3KA3cjs.__commonJS.call(void 0, {
2175
2175
  "../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js"(exports) {
2176
2176
  "use strict";
2177
- _chunkPFN2GSICcjs.init_cjs_shims.call(void 0, );
2177
+ _chunkJ7IF3KA3cjs.init_cjs_shims.call(void 0, );
2178
2178
  var f = require_react();
2179
2179
  var k = Symbol.for("react.element");
2180
2180
  var l = Symbol.for("react.fragment");
@@ -2197,10 +2197,10 @@ var require_react_jsx_runtime_production_min = _chunkPFN2GSICcjs.__commonJS.call
2197
2197
  });
2198
2198
 
2199
2199
  // ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js
2200
- var require_react_jsx_runtime_development = _chunkPFN2GSICcjs.__commonJS.call(void 0, {
2200
+ var require_react_jsx_runtime_development = _chunkJ7IF3KA3cjs.__commonJS.call(void 0, {
2201
2201
  "../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
2202
2202
  "use strict";
2203
- _chunkPFN2GSICcjs.init_cjs_shims.call(void 0, );
2203
+ _chunkJ7IF3KA3cjs.init_cjs_shims.call(void 0, );
2204
2204
  if (process.env.NODE_ENV !== "production") {
2205
2205
  (function() {
2206
2206
  "use strict";
@@ -3091,10 +3091,10 @@ var require_react_jsx_runtime_development = _chunkPFN2GSICcjs.__commonJS.call(vo
3091
3091
  });
3092
3092
 
3093
3093
  // ../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js
3094
- var require_jsx_runtime = _chunkPFN2GSICcjs.__commonJS.call(void 0, {
3094
+ var require_jsx_runtime = _chunkJ7IF3KA3cjs.__commonJS.call(void 0, {
3095
3095
  "../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"(exports, module) {
3096
3096
  "use strict";
3097
- _chunkPFN2GSICcjs.init_cjs_shims.call(void 0, );
3097
+ _chunkJ7IF3KA3cjs.init_cjs_shims.call(void 0, );
3098
3098
  if (process.env.NODE_ENV === "production") {
3099
3099
  module.exports = require_react_jsx_runtime_production_min();
3100
3100
  } else {
@@ -3104,8 +3104,8 @@ var require_jsx_runtime = _chunkPFN2GSICcjs.__commonJS.call(void 0, {
3104
3104
  });
3105
3105
 
3106
3106
  // src/components/Operation.tsx
3107
- _chunkPFN2GSICcjs.init_cjs_shims.call(void 0, );
3108
- var import_jsx_runtime = _chunkPFN2GSICcjs.__toESM.call(void 0, require_jsx_runtime(), 1);
3107
+ _chunkJ7IF3KA3cjs.init_cjs_shims.call(void 0, );
3108
+ var import_jsx_runtime = _chunkJ7IF3KA3cjs.__toESM.call(void 0, require_jsx_runtime(), 1);
3109
3109
  var _react = require('@kubb/react');
3110
3110
  var OperationContext = _react.createContext.call(void 0, {});
3111
3111
  function Operation({ operation, children }) {
@@ -3114,13 +3114,13 @@ function Operation({ operation, children }) {
3114
3114
  Operation.Context = OperationContext;
3115
3115
 
3116
3116
  // src/hooks/useSchema.ts
3117
- _chunkPFN2GSICcjs.init_cjs_shims.call(void 0, );
3117
+ _chunkJ7IF3KA3cjs.init_cjs_shims.call(void 0, );
3118
3118
 
3119
3119
 
3120
3120
  // src/components/Schema.tsx
3121
- _chunkPFN2GSICcjs.init_cjs_shims.call(void 0, );
3121
+ _chunkJ7IF3KA3cjs.init_cjs_shims.call(void 0, );
3122
3122
 
3123
- var import_jsx_runtime2 = _chunkPFN2GSICcjs.__toESM.call(void 0, require_jsx_runtime(), 1);
3123
+ var import_jsx_runtime2 = _chunkJ7IF3KA3cjs.__toESM.call(void 0, require_jsx_runtime(), 1);
3124
3124
  var SchemaContext = _react.createContext.call(void 0, {
3125
3125
  name: "unknown",
3126
3126
  tree: []
@@ -3179,15 +3179,15 @@ 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 } = _react.useFile.call(void 0, );
3185
- const refs = _chunkCCPZYOTXcjs.SchemaGenerator.deepSearch(tree, _chunkCCPZYOTXcjs.schemaKeywords.ref);
3185
+ const refs = _chunkK4GEQ3C2cjs.SchemaGenerator.deepSearch(tree, _chunkK4GEQ3C2cjs.schemaKeywords.ref);
3186
3186
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: _optionalChain([refs, 'optionalAccess', _ => _.map, 'call', _2 => _2((item, i) => {
3187
3187
  if (!item.args.path) {
3188
3188
  return void 0;
3189
3189
  }
3190
- 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);
3190
+ 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);
3191
3191
  }), 'access', _3 => _3.filter, 'call', _4 => _4(Boolean)]) });
3192
3192
  };
3193
3193
  Schema.Context = SchemaContext;
@@ -3199,9 +3199,9 @@ function useSchema() {
3199
3199
  }
3200
3200
 
3201
3201
  // src/components/Oas.tsx
3202
- _chunkPFN2GSICcjs.init_cjs_shims.call(void 0, );
3202
+ _chunkJ7IF3KA3cjs.init_cjs_shims.call(void 0, );
3203
3203
 
3204
- var import_jsx_runtime3 = _chunkPFN2GSICcjs.__toESM.call(void 0, require_jsx_runtime(), 1);
3204
+ var import_jsx_runtime3 = _chunkJ7IF3KA3cjs.__toESM.call(void 0, require_jsx_runtime(), 1);
3205
3205
  var OasContext = _react.createContext.call(void 0, {});
3206
3206
  function Oas({ oas, children, operations, generator }) {
3207
3207
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(OasContext.Provider, { value: { oas, generator, operations }, children });
@@ -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-TL7TBM2U.cjs.map
3265
+ //# sourceMappingURL=chunk-UKUEVTRB.cjs.map