@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.
- package/dist/{chunk-Z5LNW4XC.js → chunk-BWE5OHCP.js} +11 -11
- package/dist/chunk-BWE5OHCP.js.map +1 -0
- package/dist/{chunk-WDPKVCXH.cjs → chunk-N2VGLM33.cjs} +11 -11
- package/dist/chunk-N2VGLM33.cjs.map +1 -0
- package/dist/components.cjs +5 -5
- package/dist/components.js +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.js +2 -2
- package/package.json +12 -12
- package/dist/chunk-WDPKVCXH.cjs.map +0 -1
- package/dist/chunk-Z5LNW4XC.js.map +0 -1
|
@@ -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
|
-
|
|
2585
|
-
|
|
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
|
-
|
|
2706
|
-
|
|
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
|
-
|
|
2716
|
-
|
|
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-
|
|
3462
|
-
//# sourceMappingURL=chunk-
|
|
3461
|
+
//# sourceMappingURL=chunk-N2VGLM33.cjs.map
|
|
3462
|
+
//# sourceMappingURL=chunk-N2VGLM33.cjs.map
|