@kubb/plugin-zod 3.0.0-alpha.11 → 3.0.0-alpha.12

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.
@@ -2581,9 +2581,9 @@ var SchemaGenerator2 = class extends pluginOas.SchemaGenerator {
2581
2581
  logger: pluginManager.logger
2582
2582
  });
2583
2583
  const tree = this.parse({ schema, name });
2584
- root.render(
2585
- /* @__PURE__ */ jsxRuntime.jsx(react.App, { pluginManager, plugin: { ...plugin, options }, mode, children: /* @__PURE__ */ jsxRuntime.jsx(components.Oas, { oas, children: /* @__PURE__ */ jsxRuntime.jsx(components.Oas.Schema, { name, value: schema, tree, children: /* @__PURE__ */ jsxRuntime.jsx(Schema.File, {}) }) }) })
2586
- );
2584
+ const Component = () => /* @__PURE__ */ jsxRuntime.jsx(react.App, { pluginManager, plugin: { ...plugin, options }, mode, children: /* @__PURE__ */ jsxRuntime.jsx(components.Oas, { oas, children: /* @__PURE__ */ jsxRuntime.jsx(components.Oas.Schema, { name, value: schema, tree, children: /* @__PURE__ */ jsxRuntime.jsx(Schema.File, {}) }) }) });
2585
+ Component.displayName = transformers4.pascalCase(name);
2586
+ root.render(/* @__PURE__ */ jsxRuntime.jsx(Component, {}));
2587
2587
  return root.files;
2588
2588
  }
2589
2589
  };
@@ -2702,9 +2702,9 @@ var OperationGenerator = class extends pluginOas.OperationGenerator {
2702
2702
  const root = react.createRoot({
2703
2703
  logger: pluginManager.logger
2704
2704
  });
2705
- root.render(
2706
- /* @__PURE__ */ jsxRuntime.jsx(react.App, { pluginManager, plugin, mode, children: /* @__PURE__ */ jsxRuntime.jsx(components.Oas, { oas, operations, generator: this, children: plugin.options.oasType && /* @__PURE__ */ jsxRuntime.jsx(OasType.File, { name: "oas", typeName: "Oas" }) }) })
2707
- );
2705
+ const Component = () => /* @__PURE__ */ jsxRuntime.jsx(react.App, { pluginManager, plugin, mode, children: /* @__PURE__ */ jsxRuntime.jsx(components.Oas, { oas, operations, generator: this, children: plugin.options.oasType && /* @__PURE__ */ jsxRuntime.jsx(OasType.File, { name: "oas", typeName: "Oas" }) }) });
2706
+ Component.displayName = transformers4.pascalCase("operations");
2707
+ root.render(/* @__PURE__ */ jsxRuntime.jsx(Component, {}));
2708
2708
  return root.files;
2709
2709
  }
2710
2710
  async operation(operation, options) {
@@ -2712,9 +2712,9 @@ var OperationGenerator = class extends pluginOas.OperationGenerator {
2712
2712
  const root = react.createRoot({
2713
2713
  logger: pluginManager.logger
2714
2714
  });
2715
- root.render(
2716
- /* @__PURE__ */ jsxRuntime.jsx(react.App, { pluginManager, plugin: { ...plugin, options }, mode, children: /* @__PURE__ */ jsxRuntime.jsx(components.Oas, { oas, operations: [operation], generator: this, children: /* @__PURE__ */ jsxRuntime.jsx(components.Oas.Operation, { operation, children: /* @__PURE__ */ jsxRuntime.jsx(OperationSchema.File, {}) }) }) })
2717
- );
2715
+ const Component = () => /* @__PURE__ */ jsxRuntime.jsx(react.App, { pluginManager, plugin: { ...plugin, options }, mode, children: /* @__PURE__ */ jsxRuntime.jsx(components.Oas, { oas, operations: [operation], generator: this, children: /* @__PURE__ */ jsxRuntime.jsx(components.Oas.Operation, { operation, children: /* @__PURE__ */ jsxRuntime.jsx(OperationSchema.File, {}) }) }) });
2716
+ Component.displayName = transformers4.pascalCase(operation.getOperationId());
2717
+ root.render(/* @__PURE__ */ jsxRuntime.jsx(Component, {}));
2718
2718
  return root.files;
2719
2719
  }
2720
2720
  };
@@ -3458,5 +3458,5 @@ exports.Schema = Schema2;
3458
3458
  exports.init_cjs_shims = init_cjs_shims;
3459
3459
  exports.pluginZod = pluginZod;
3460
3460
  exports.pluginZodName = pluginZodName;
3461
- //# sourceMappingURL=chunk-WDPKVCXH.cjs.map
3462
- //# sourceMappingURL=chunk-WDPKVCXH.cjs.map
3461
+ //# sourceMappingURL=chunk-N2VGLM33.cjs.map
3462
+ //# sourceMappingURL=chunk-N2VGLM33.cjs.map