dune-react 0.0.32 → 0.0.33
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/components/puck-block/footer-sections/centered-minimal-footer/index.d.ts +11 -0
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.js +1 -0
- package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +11 -0
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +11 -0
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +1 -1
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +11 -0
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +1 -1
- package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +11 -0
- package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +11 -0
- package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +11 -0
- package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +11 -0
- package/dist/components/puck-block/header-sections/centered-navbar/index.js +1 -0
- package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +11 -0
- package/dist/components/puck-block/header-sections/drawer-navbar/index.js +1 -1
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +11 -0
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.js +1 -1
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +11 -0
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.js +1 -1
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +11 -0
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.js +1 -1
- package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +11 -0
- package/dist/components/puck-block/header-sections/standard-navbar/index.js +1 -0
- package/dist/components/puck-block/hero-sections/tab-hero/component.js +1 -0
- package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +3 -6
- package/dist/components/puck-block/hero-sections/tab-hero/index.js +2 -7
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/component.js +13 -0
- package/dist/components/puck-block/pricing-sections/split-pricing/component.js +2 -1
- package/dist/components/puck-block/registry.generated.d.ts +102 -6
- package/dist/components/puck-core/core/puck-fields-to-zod.d.ts +40 -0
- package/dist/components/puck-core/core/puck-fields-to-zod.js +113 -0
- package/dist/components/puck-core/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js +44 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js +43 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js +29 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js +665 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js +569 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js +410 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js +74 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js +37 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js +72 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js +314 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js +95 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js +81 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js +51 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js +1345 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js +362 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js +430 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js +8 -0
- package/package.json +3 -2
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
import { globalRegistry } from "./registries.js";
|
|
2
|
+
function initializeContext(params) {
|
|
3
|
+
let target = (params == null ? void 0 : params.target) ?? "draft-2020-12";
|
|
4
|
+
if (target === "draft-4")
|
|
5
|
+
target = "draft-04";
|
|
6
|
+
if (target === "draft-7")
|
|
7
|
+
target = "draft-07";
|
|
8
|
+
return {
|
|
9
|
+
processors: params.processors ?? {},
|
|
10
|
+
metadataRegistry: (params == null ? void 0 : params.metadata) ?? globalRegistry,
|
|
11
|
+
target,
|
|
12
|
+
unrepresentable: (params == null ? void 0 : params.unrepresentable) ?? "throw",
|
|
13
|
+
override: (params == null ? void 0 : params.override) ?? (() => {
|
|
14
|
+
}),
|
|
15
|
+
io: (params == null ? void 0 : params.io) ?? "output",
|
|
16
|
+
counter: 0,
|
|
17
|
+
seen: /* @__PURE__ */ new Map(),
|
|
18
|
+
cycles: (params == null ? void 0 : params.cycles) ?? "ref",
|
|
19
|
+
reused: (params == null ? void 0 : params.reused) ?? "inline",
|
|
20
|
+
external: (params == null ? void 0 : params.external) ?? void 0
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
24
|
+
var _a2, _b;
|
|
25
|
+
var _a;
|
|
26
|
+
const def = schema._zod.def;
|
|
27
|
+
const seen = ctx.seen.get(schema);
|
|
28
|
+
if (seen) {
|
|
29
|
+
seen.count++;
|
|
30
|
+
const isCycle = _params.schemaPath.includes(schema);
|
|
31
|
+
if (isCycle) {
|
|
32
|
+
seen.cycle = _params.path;
|
|
33
|
+
}
|
|
34
|
+
return seen.schema;
|
|
35
|
+
}
|
|
36
|
+
const result = { schema: {}, count: 1, cycle: void 0, path: _params.path };
|
|
37
|
+
ctx.seen.set(schema, result);
|
|
38
|
+
const overrideSchema = (_b = (_a2 = schema._zod).toJSONSchema) == null ? void 0 : _b.call(_a2);
|
|
39
|
+
if (overrideSchema) {
|
|
40
|
+
result.schema = overrideSchema;
|
|
41
|
+
} else {
|
|
42
|
+
const params = {
|
|
43
|
+
..._params,
|
|
44
|
+
schemaPath: [..._params.schemaPath, schema],
|
|
45
|
+
path: _params.path
|
|
46
|
+
};
|
|
47
|
+
if (schema._zod.processJSONSchema) {
|
|
48
|
+
schema._zod.processJSONSchema(ctx, result.schema, params);
|
|
49
|
+
} else {
|
|
50
|
+
const _json = result.schema;
|
|
51
|
+
const processor = ctx.processors[def.type];
|
|
52
|
+
if (!processor) {
|
|
53
|
+
throw new Error(`[toJSONSchema]: Non-representable type encountered: ${def.type}`);
|
|
54
|
+
}
|
|
55
|
+
processor(schema, ctx, _json, params);
|
|
56
|
+
}
|
|
57
|
+
const parent = schema._zod.parent;
|
|
58
|
+
if (parent) {
|
|
59
|
+
if (!result.ref)
|
|
60
|
+
result.ref = parent;
|
|
61
|
+
process(parent, ctx, params);
|
|
62
|
+
ctx.seen.get(parent).isParent = true;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const meta = ctx.metadataRegistry.get(schema);
|
|
66
|
+
if (meta)
|
|
67
|
+
Object.assign(result.schema, meta);
|
|
68
|
+
if (ctx.io === "input" && isTransforming(schema)) {
|
|
69
|
+
delete result.schema.examples;
|
|
70
|
+
delete result.schema.default;
|
|
71
|
+
}
|
|
72
|
+
if (ctx.io === "input" && result.schema._prefault)
|
|
73
|
+
(_a = result.schema).default ?? (_a.default = result.schema._prefault);
|
|
74
|
+
delete result.schema._prefault;
|
|
75
|
+
const _result = ctx.seen.get(schema);
|
|
76
|
+
return _result.schema;
|
|
77
|
+
}
|
|
78
|
+
function extractDefs(ctx, schema) {
|
|
79
|
+
var _a, _b, _c, _d;
|
|
80
|
+
const root = ctx.seen.get(schema);
|
|
81
|
+
if (!root)
|
|
82
|
+
throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
83
|
+
const idToSchema = /* @__PURE__ */ new Map();
|
|
84
|
+
for (const entry of ctx.seen.entries()) {
|
|
85
|
+
const id = (_a = ctx.metadataRegistry.get(entry[0])) == null ? void 0 : _a.id;
|
|
86
|
+
if (id) {
|
|
87
|
+
const existing = idToSchema.get(id);
|
|
88
|
+
if (existing && existing !== entry[0]) {
|
|
89
|
+
throw new Error(`Duplicate schema id "${id}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);
|
|
90
|
+
}
|
|
91
|
+
idToSchema.set(id, entry[0]);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
const makeURI = (entry) => {
|
|
95
|
+
var _a2;
|
|
96
|
+
const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
97
|
+
if (ctx.external) {
|
|
98
|
+
const externalId = (_a2 = ctx.external.registry.get(entry[0])) == null ? void 0 : _a2.id;
|
|
99
|
+
const uriGenerator = ctx.external.uri ?? ((id2) => id2);
|
|
100
|
+
if (externalId) {
|
|
101
|
+
return { ref: uriGenerator(externalId) };
|
|
102
|
+
}
|
|
103
|
+
const id = entry[1].defId ?? entry[1].schema.id ?? `schema${ctx.counter++}`;
|
|
104
|
+
entry[1].defId = id;
|
|
105
|
+
return { defId: id, ref: `${uriGenerator("__shared")}#/${defsSegment}/${id}` };
|
|
106
|
+
}
|
|
107
|
+
if (entry[1] === root) {
|
|
108
|
+
return { ref: "#" };
|
|
109
|
+
}
|
|
110
|
+
const uriPrefix = `#`;
|
|
111
|
+
const defUriPrefix = `${uriPrefix}/${defsSegment}/`;
|
|
112
|
+
const defId = entry[1].schema.id ?? `__schema${ctx.counter++}`;
|
|
113
|
+
return { defId, ref: defUriPrefix + defId };
|
|
114
|
+
};
|
|
115
|
+
const extractToDef = (entry) => {
|
|
116
|
+
if (entry[1].schema.$ref) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
const seen = entry[1];
|
|
120
|
+
const { ref, defId } = makeURI(entry);
|
|
121
|
+
seen.def = { ...seen.schema };
|
|
122
|
+
if (defId)
|
|
123
|
+
seen.defId = defId;
|
|
124
|
+
const schema2 = seen.schema;
|
|
125
|
+
for (const key in schema2) {
|
|
126
|
+
delete schema2[key];
|
|
127
|
+
}
|
|
128
|
+
schema2.$ref = ref;
|
|
129
|
+
};
|
|
130
|
+
if (ctx.cycles === "throw") {
|
|
131
|
+
for (const entry of ctx.seen.entries()) {
|
|
132
|
+
const seen = entry[1];
|
|
133
|
+
if (seen.cycle) {
|
|
134
|
+
throw new Error(`Cycle detected: #/${(_b = seen.cycle) == null ? void 0 : _b.join("/")}/<root>
|
|
135
|
+
|
|
136
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
for (const entry of ctx.seen.entries()) {
|
|
141
|
+
const seen = entry[1];
|
|
142
|
+
if (schema === entry[0]) {
|
|
143
|
+
extractToDef(entry);
|
|
144
|
+
continue;
|
|
145
|
+
}
|
|
146
|
+
if (ctx.external) {
|
|
147
|
+
const ext = (_c = ctx.external.registry.get(entry[0])) == null ? void 0 : _c.id;
|
|
148
|
+
if (schema !== entry[0] && ext) {
|
|
149
|
+
extractToDef(entry);
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
const id = (_d = ctx.metadataRegistry.get(entry[0])) == null ? void 0 : _d.id;
|
|
154
|
+
if (id) {
|
|
155
|
+
extractToDef(entry);
|
|
156
|
+
continue;
|
|
157
|
+
}
|
|
158
|
+
if (seen.cycle) {
|
|
159
|
+
extractToDef(entry);
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
if (seen.count > 1) {
|
|
163
|
+
if (ctx.reused === "ref") {
|
|
164
|
+
extractToDef(entry);
|
|
165
|
+
continue;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
function finalize(ctx, schema) {
|
|
171
|
+
var _a, _b, _c;
|
|
172
|
+
const root = ctx.seen.get(schema);
|
|
173
|
+
if (!root)
|
|
174
|
+
throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
175
|
+
const flattenRef = (zodSchema) => {
|
|
176
|
+
const seen = ctx.seen.get(zodSchema);
|
|
177
|
+
if (seen.ref === null)
|
|
178
|
+
return;
|
|
179
|
+
const schema2 = seen.def ?? seen.schema;
|
|
180
|
+
const _cached = { ...schema2 };
|
|
181
|
+
const ref = seen.ref;
|
|
182
|
+
seen.ref = null;
|
|
183
|
+
if (ref) {
|
|
184
|
+
flattenRef(ref);
|
|
185
|
+
const refSeen = ctx.seen.get(ref);
|
|
186
|
+
const refSchema = refSeen.schema;
|
|
187
|
+
if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
|
|
188
|
+
schema2.allOf = schema2.allOf ?? [];
|
|
189
|
+
schema2.allOf.push(refSchema);
|
|
190
|
+
} else {
|
|
191
|
+
Object.assign(schema2, refSchema);
|
|
192
|
+
}
|
|
193
|
+
Object.assign(schema2, _cached);
|
|
194
|
+
const isParentRef = zodSchema._zod.parent === ref;
|
|
195
|
+
if (isParentRef) {
|
|
196
|
+
for (const key in schema2) {
|
|
197
|
+
if (key === "$ref" || key === "allOf")
|
|
198
|
+
continue;
|
|
199
|
+
if (!(key in _cached)) {
|
|
200
|
+
delete schema2[key];
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
if (refSchema.$ref && refSeen.def) {
|
|
205
|
+
for (const key in schema2) {
|
|
206
|
+
if (key === "$ref" || key === "allOf")
|
|
207
|
+
continue;
|
|
208
|
+
if (key in refSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(refSeen.def[key])) {
|
|
209
|
+
delete schema2[key];
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
const parent = zodSchema._zod.parent;
|
|
215
|
+
if (parent && parent !== ref) {
|
|
216
|
+
flattenRef(parent);
|
|
217
|
+
const parentSeen = ctx.seen.get(parent);
|
|
218
|
+
if (parentSeen == null ? void 0 : parentSeen.schema.$ref) {
|
|
219
|
+
schema2.$ref = parentSeen.schema.$ref;
|
|
220
|
+
if (parentSeen.def) {
|
|
221
|
+
for (const key in schema2) {
|
|
222
|
+
if (key === "$ref" || key === "allOf")
|
|
223
|
+
continue;
|
|
224
|
+
if (key in parentSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(parentSeen.def[key])) {
|
|
225
|
+
delete schema2[key];
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
ctx.override({
|
|
232
|
+
zodSchema,
|
|
233
|
+
jsonSchema: schema2,
|
|
234
|
+
path: seen.path ?? []
|
|
235
|
+
});
|
|
236
|
+
};
|
|
237
|
+
for (const entry of [...ctx.seen.entries()].reverse()) {
|
|
238
|
+
flattenRef(entry[0]);
|
|
239
|
+
}
|
|
240
|
+
const result = {};
|
|
241
|
+
if (ctx.target === "draft-2020-12") {
|
|
242
|
+
result.$schema = "https://json-schema.org/draft/2020-12/schema";
|
|
243
|
+
} else if (ctx.target === "draft-07") {
|
|
244
|
+
result.$schema = "http://json-schema.org/draft-07/schema#";
|
|
245
|
+
} else if (ctx.target === "draft-04") {
|
|
246
|
+
result.$schema = "http://json-schema.org/draft-04/schema#";
|
|
247
|
+
} else if (ctx.target === "openapi-3.0") ;
|
|
248
|
+
else ;
|
|
249
|
+
if ((_a = ctx.external) == null ? void 0 : _a.uri) {
|
|
250
|
+
const id = (_b = ctx.external.registry.get(schema)) == null ? void 0 : _b.id;
|
|
251
|
+
if (!id)
|
|
252
|
+
throw new Error("Schema is missing an `id` property");
|
|
253
|
+
result.$id = ctx.external.uri(id);
|
|
254
|
+
}
|
|
255
|
+
Object.assign(result, root.def ?? root.schema);
|
|
256
|
+
const defs = ((_c = ctx.external) == null ? void 0 : _c.defs) ?? {};
|
|
257
|
+
for (const entry of ctx.seen.entries()) {
|
|
258
|
+
const seen = entry[1];
|
|
259
|
+
if (seen.def && seen.defId) {
|
|
260
|
+
defs[seen.defId] = seen.def;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
if (ctx.external) ;
|
|
264
|
+
else {
|
|
265
|
+
if (Object.keys(defs).length > 0) {
|
|
266
|
+
if (ctx.target === "draft-2020-12") {
|
|
267
|
+
result.$defs = defs;
|
|
268
|
+
} else {
|
|
269
|
+
result.definitions = defs;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
try {
|
|
274
|
+
const finalized = JSON.parse(JSON.stringify(result));
|
|
275
|
+
Object.defineProperty(finalized, "~standard", {
|
|
276
|
+
value: {
|
|
277
|
+
...schema["~standard"],
|
|
278
|
+
jsonSchema: {
|
|
279
|
+
input: createStandardJSONSchemaMethod(schema, "input", ctx.processors),
|
|
280
|
+
output: createStandardJSONSchemaMethod(schema, "output", ctx.processors)
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
enumerable: false,
|
|
284
|
+
writable: false
|
|
285
|
+
});
|
|
286
|
+
return finalized;
|
|
287
|
+
} catch (_err) {
|
|
288
|
+
throw new Error("Error converting schema to JSON.");
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
function isTransforming(_schema, _ctx) {
|
|
292
|
+
const ctx = _ctx ?? { seen: /* @__PURE__ */ new Set() };
|
|
293
|
+
if (ctx.seen.has(_schema))
|
|
294
|
+
return false;
|
|
295
|
+
ctx.seen.add(_schema);
|
|
296
|
+
const def = _schema._zod.def;
|
|
297
|
+
if (def.type === "transform")
|
|
298
|
+
return true;
|
|
299
|
+
if (def.type === "array")
|
|
300
|
+
return isTransforming(def.element, ctx);
|
|
301
|
+
if (def.type === "set")
|
|
302
|
+
return isTransforming(def.valueType, ctx);
|
|
303
|
+
if (def.type === "lazy")
|
|
304
|
+
return isTransforming(def.getter(), ctx);
|
|
305
|
+
if (def.type === "promise" || def.type === "optional" || def.type === "nonoptional" || def.type === "nullable" || def.type === "readonly" || def.type === "default" || def.type === "prefault") {
|
|
306
|
+
return isTransforming(def.innerType, ctx);
|
|
307
|
+
}
|
|
308
|
+
if (def.type === "intersection") {
|
|
309
|
+
return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
|
|
310
|
+
}
|
|
311
|
+
if (def.type === "record" || def.type === "map") {
|
|
312
|
+
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
313
|
+
}
|
|
314
|
+
if (def.type === "pipe") {
|
|
315
|
+
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
316
|
+
}
|
|
317
|
+
if (def.type === "object") {
|
|
318
|
+
for (const key in def.shape) {
|
|
319
|
+
if (isTransforming(def.shape[key], ctx))
|
|
320
|
+
return true;
|
|
321
|
+
}
|
|
322
|
+
return false;
|
|
323
|
+
}
|
|
324
|
+
if (def.type === "union") {
|
|
325
|
+
for (const option of def.options) {
|
|
326
|
+
if (isTransforming(option, ctx))
|
|
327
|
+
return true;
|
|
328
|
+
}
|
|
329
|
+
return false;
|
|
330
|
+
}
|
|
331
|
+
if (def.type === "tuple") {
|
|
332
|
+
for (const item of def.items) {
|
|
333
|
+
if (isTransforming(item, ctx))
|
|
334
|
+
return true;
|
|
335
|
+
}
|
|
336
|
+
if (def.rest && isTransforming(def.rest, ctx))
|
|
337
|
+
return true;
|
|
338
|
+
return false;
|
|
339
|
+
}
|
|
340
|
+
return false;
|
|
341
|
+
}
|
|
342
|
+
const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
343
|
+
const ctx = initializeContext({ ...params, processors });
|
|
344
|
+
process(schema, ctx);
|
|
345
|
+
extractDefs(ctx, schema);
|
|
346
|
+
return finalize(ctx, schema);
|
|
347
|
+
};
|
|
348
|
+
const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
349
|
+
const { libraryOptions, target } = params ?? {};
|
|
350
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
351
|
+
process(schema, ctx);
|
|
352
|
+
extractDefs(ctx, schema);
|
|
353
|
+
return finalize(ctx, schema);
|
|
354
|
+
};
|
|
355
|
+
export {
|
|
356
|
+
createStandardJSONSchemaMethod,
|
|
357
|
+
createToJSONSchemaMethod,
|
|
358
|
+
extractDefs,
|
|
359
|
+
finalize,
|
|
360
|
+
initializeContext,
|
|
361
|
+
process
|
|
362
|
+
};
|