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.
Files changed (50) hide show
  1. package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.d.ts +11 -0
  2. package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.js +1 -0
  3. package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +11 -0
  4. package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +11 -0
  5. package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +1 -1
  6. package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +11 -0
  7. package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +1 -1
  8. package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +11 -0
  9. package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +11 -0
  10. package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +11 -0
  11. package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +11 -0
  12. package/dist/components/puck-block/header-sections/centered-navbar/index.js +1 -0
  13. package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +11 -0
  14. package/dist/components/puck-block/header-sections/drawer-navbar/index.js +1 -1
  15. package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +11 -0
  16. package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.js +1 -1
  17. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +11 -0
  18. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.js +1 -1
  19. package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +11 -0
  20. package/dist/components/puck-block/header-sections/mega-menu-navbar/index.js +1 -1
  21. package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +11 -0
  22. package/dist/components/puck-block/header-sections/standard-navbar/index.js +1 -0
  23. package/dist/components/puck-block/hero-sections/tab-hero/component.js +1 -0
  24. package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +3 -6
  25. package/dist/components/puck-block/hero-sections/tab-hero/index.js +2 -7
  26. package/dist/components/puck-block/pricing-sections/pricing-comparison-table/component.js +13 -0
  27. package/dist/components/puck-block/pricing-sections/split-pricing/component.js +2 -1
  28. package/dist/components/puck-block/registry.generated.d.ts +102 -6
  29. package/dist/components/puck-core/core/puck-fields-to-zod.d.ts +40 -0
  30. package/dist/components/puck-core/core/puck-fields-to-zod.js +113 -0
  31. package/dist/components/puck-core/index.d.ts +1 -0
  32. package/dist/index.js +3 -0
  33. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js +44 -0
  34. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js +43 -0
  35. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js +29 -0
  36. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js +665 -0
  37. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js +569 -0
  38. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js +410 -0
  39. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js +74 -0
  40. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js +37 -0
  41. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js +72 -0
  42. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js +314 -0
  43. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js +95 -0
  44. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js +81 -0
  45. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js +51 -0
  46. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js +1345 -0
  47. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js +362 -0
  48. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js +430 -0
  49. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js +8 -0
  50. package/package.json +3 -2
@@ -0,0 +1,430 @@
1
+ function getEnumValues(entries) {
2
+ const numericValues = Object.values(entries).filter((v) => typeof v === "number");
3
+ const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
4
+ return values;
5
+ }
6
+ function jsonStringifyReplacer(_, value) {
7
+ if (typeof value === "bigint")
8
+ return value.toString();
9
+ return value;
10
+ }
11
+ function cached(getter) {
12
+ return {
13
+ get value() {
14
+ {
15
+ const value = getter();
16
+ Object.defineProperty(this, "value", { value });
17
+ return value;
18
+ }
19
+ }
20
+ };
21
+ }
22
+ function nullish(input) {
23
+ return input === null || input === void 0;
24
+ }
25
+ function cleanRegex(source) {
26
+ const start = source.startsWith("^") ? 1 : 0;
27
+ const end = source.endsWith("$") ? source.length - 1 : source.length;
28
+ return source.slice(start, end);
29
+ }
30
+ function floatSafeRemainder(val, step) {
31
+ const valDecCount = (val.toString().split(".")[1] || "").length;
32
+ const stepString = step.toString();
33
+ let stepDecCount = (stepString.split(".")[1] || "").length;
34
+ if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
35
+ const match = stepString.match(/\d?e-(\d?)/);
36
+ if (match == null ? void 0 : match[1]) {
37
+ stepDecCount = Number.parseInt(match[1]);
38
+ }
39
+ }
40
+ const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
41
+ const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
42
+ const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
43
+ return valInt % stepInt / 10 ** decCount;
44
+ }
45
+ const EVALUATING = Symbol("evaluating");
46
+ function defineLazy(object, key, getter) {
47
+ let value = void 0;
48
+ Object.defineProperty(object, key, {
49
+ get() {
50
+ if (value === EVALUATING) {
51
+ return void 0;
52
+ }
53
+ if (value === void 0) {
54
+ value = EVALUATING;
55
+ value = getter();
56
+ }
57
+ return value;
58
+ },
59
+ set(v) {
60
+ Object.defineProperty(object, key, {
61
+ value: v
62
+ // configurable: true,
63
+ });
64
+ },
65
+ configurable: true
66
+ });
67
+ }
68
+ function assignProp(target, prop, value) {
69
+ Object.defineProperty(target, prop, {
70
+ value,
71
+ writable: true,
72
+ enumerable: true,
73
+ configurable: true
74
+ });
75
+ }
76
+ function mergeDefs(...defs) {
77
+ const mergedDescriptors = {};
78
+ for (const def of defs) {
79
+ const descriptors = Object.getOwnPropertyDescriptors(def);
80
+ Object.assign(mergedDescriptors, descriptors);
81
+ }
82
+ return Object.defineProperties({}, mergedDescriptors);
83
+ }
84
+ function esc(str) {
85
+ return JSON.stringify(str);
86
+ }
87
+ function slugify(input) {
88
+ return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
89
+ }
90
+ const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
91
+ };
92
+ function isObject(data) {
93
+ return typeof data === "object" && data !== null && !Array.isArray(data);
94
+ }
95
+ const allowsEval = cached(() => {
96
+ var _a;
97
+ if (typeof navigator !== "undefined" && ((_a = navigator == null ? void 0 : navigator.userAgent) == null ? void 0 : _a.includes("Cloudflare"))) {
98
+ return false;
99
+ }
100
+ try {
101
+ const F = Function;
102
+ new F("");
103
+ return true;
104
+ } catch (_) {
105
+ return false;
106
+ }
107
+ });
108
+ function isPlainObject(o) {
109
+ if (isObject(o) === false)
110
+ return false;
111
+ const ctor = o.constructor;
112
+ if (ctor === void 0)
113
+ return true;
114
+ if (typeof ctor !== "function")
115
+ return true;
116
+ const prot = ctor.prototype;
117
+ if (isObject(prot) === false)
118
+ return false;
119
+ if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) {
120
+ return false;
121
+ }
122
+ return true;
123
+ }
124
+ function shallowClone(o) {
125
+ if (isPlainObject(o))
126
+ return { ...o };
127
+ if (Array.isArray(o))
128
+ return [...o];
129
+ return o;
130
+ }
131
+ const propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
132
+ function escapeRegex(str) {
133
+ return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
134
+ }
135
+ function clone(inst, def, params) {
136
+ const cl = new inst._zod.constr(def ?? inst._zod.def);
137
+ if (!def || (params == null ? void 0 : params.parent))
138
+ cl._zod.parent = inst;
139
+ return cl;
140
+ }
141
+ function normalizeParams(_params) {
142
+ const params = _params;
143
+ if (!params)
144
+ return {};
145
+ if (typeof params === "string")
146
+ return { error: () => params };
147
+ if ((params == null ? void 0 : params.message) !== void 0) {
148
+ if ((params == null ? void 0 : params.error) !== void 0)
149
+ throw new Error("Cannot specify both `message` and `error` params");
150
+ params.error = params.message;
151
+ }
152
+ delete params.message;
153
+ if (typeof params.error === "string")
154
+ return { ...params, error: () => params.error };
155
+ return params;
156
+ }
157
+ function optionalKeys(shape) {
158
+ return Object.keys(shape).filter((k) => {
159
+ return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional";
160
+ });
161
+ }
162
+ const NUMBER_FORMAT_RANGES = {
163
+ safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
164
+ int32: [-2147483648, 2147483647],
165
+ uint32: [0, 4294967295],
166
+ float32: [-34028234663852886e22, 34028234663852886e22],
167
+ float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
168
+ };
169
+ function pick(schema, mask) {
170
+ const currDef = schema._zod.def;
171
+ const checks = currDef.checks;
172
+ const hasChecks = checks && checks.length > 0;
173
+ if (hasChecks) {
174
+ throw new Error(".pick() cannot be used on object schemas containing refinements");
175
+ }
176
+ const def = mergeDefs(schema._zod.def, {
177
+ get shape() {
178
+ const newShape = {};
179
+ for (const key in mask) {
180
+ if (!(key in currDef.shape)) {
181
+ throw new Error(`Unrecognized key: "${key}"`);
182
+ }
183
+ if (!mask[key])
184
+ continue;
185
+ newShape[key] = currDef.shape[key];
186
+ }
187
+ assignProp(this, "shape", newShape);
188
+ return newShape;
189
+ },
190
+ checks: []
191
+ });
192
+ return clone(schema, def);
193
+ }
194
+ function omit(schema, mask) {
195
+ const currDef = schema._zod.def;
196
+ const checks = currDef.checks;
197
+ const hasChecks = checks && checks.length > 0;
198
+ if (hasChecks) {
199
+ throw new Error(".omit() cannot be used on object schemas containing refinements");
200
+ }
201
+ const def = mergeDefs(schema._zod.def, {
202
+ get shape() {
203
+ const newShape = { ...schema._zod.def.shape };
204
+ for (const key in mask) {
205
+ if (!(key in currDef.shape)) {
206
+ throw new Error(`Unrecognized key: "${key}"`);
207
+ }
208
+ if (!mask[key])
209
+ continue;
210
+ delete newShape[key];
211
+ }
212
+ assignProp(this, "shape", newShape);
213
+ return newShape;
214
+ },
215
+ checks: []
216
+ });
217
+ return clone(schema, def);
218
+ }
219
+ function extend(schema, shape) {
220
+ if (!isPlainObject(shape)) {
221
+ throw new Error("Invalid input to extend: expected a plain object");
222
+ }
223
+ const checks = schema._zod.def.checks;
224
+ const hasChecks = checks && checks.length > 0;
225
+ if (hasChecks) {
226
+ const existingShape = schema._zod.def.shape;
227
+ for (const key in shape) {
228
+ if (Object.getOwnPropertyDescriptor(existingShape, key) !== void 0) {
229
+ throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
230
+ }
231
+ }
232
+ }
233
+ const def = mergeDefs(schema._zod.def, {
234
+ get shape() {
235
+ const _shape = { ...schema._zod.def.shape, ...shape };
236
+ assignProp(this, "shape", _shape);
237
+ return _shape;
238
+ }
239
+ });
240
+ return clone(schema, def);
241
+ }
242
+ function safeExtend(schema, shape) {
243
+ if (!isPlainObject(shape)) {
244
+ throw new Error("Invalid input to safeExtend: expected a plain object");
245
+ }
246
+ const def = mergeDefs(schema._zod.def, {
247
+ get shape() {
248
+ const _shape = { ...schema._zod.def.shape, ...shape };
249
+ assignProp(this, "shape", _shape);
250
+ return _shape;
251
+ }
252
+ });
253
+ return clone(schema, def);
254
+ }
255
+ function merge(a, b) {
256
+ const def = mergeDefs(a._zod.def, {
257
+ get shape() {
258
+ const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
259
+ assignProp(this, "shape", _shape);
260
+ return _shape;
261
+ },
262
+ get catchall() {
263
+ return b._zod.def.catchall;
264
+ },
265
+ checks: []
266
+ // delete existing checks
267
+ });
268
+ return clone(a, def);
269
+ }
270
+ function partial(Class, schema, mask) {
271
+ const currDef = schema._zod.def;
272
+ const checks = currDef.checks;
273
+ const hasChecks = checks && checks.length > 0;
274
+ if (hasChecks) {
275
+ throw new Error(".partial() cannot be used on object schemas containing refinements");
276
+ }
277
+ const def = mergeDefs(schema._zod.def, {
278
+ get shape() {
279
+ const oldShape = schema._zod.def.shape;
280
+ const shape = { ...oldShape };
281
+ if (mask) {
282
+ for (const key in mask) {
283
+ if (!(key in oldShape)) {
284
+ throw new Error(`Unrecognized key: "${key}"`);
285
+ }
286
+ if (!mask[key])
287
+ continue;
288
+ shape[key] = Class ? new Class({
289
+ type: "optional",
290
+ innerType: oldShape[key]
291
+ }) : oldShape[key];
292
+ }
293
+ } else {
294
+ for (const key in oldShape) {
295
+ shape[key] = Class ? new Class({
296
+ type: "optional",
297
+ innerType: oldShape[key]
298
+ }) : oldShape[key];
299
+ }
300
+ }
301
+ assignProp(this, "shape", shape);
302
+ return shape;
303
+ },
304
+ checks: []
305
+ });
306
+ return clone(schema, def);
307
+ }
308
+ function required(Class, schema, mask) {
309
+ const def = mergeDefs(schema._zod.def, {
310
+ get shape() {
311
+ const oldShape = schema._zod.def.shape;
312
+ const shape = { ...oldShape };
313
+ if (mask) {
314
+ for (const key in mask) {
315
+ if (!(key in shape)) {
316
+ throw new Error(`Unrecognized key: "${key}"`);
317
+ }
318
+ if (!mask[key])
319
+ continue;
320
+ shape[key] = new Class({
321
+ type: "nonoptional",
322
+ innerType: oldShape[key]
323
+ });
324
+ }
325
+ } else {
326
+ for (const key in oldShape) {
327
+ shape[key] = new Class({
328
+ type: "nonoptional",
329
+ innerType: oldShape[key]
330
+ });
331
+ }
332
+ }
333
+ assignProp(this, "shape", shape);
334
+ return shape;
335
+ }
336
+ });
337
+ return clone(schema, def);
338
+ }
339
+ function aborted(x, startIndex = 0) {
340
+ var _a;
341
+ if (x.aborted === true)
342
+ return true;
343
+ for (let i = startIndex; i < x.issues.length; i++) {
344
+ if (((_a = x.issues[i]) == null ? void 0 : _a.continue) !== true) {
345
+ return true;
346
+ }
347
+ }
348
+ return false;
349
+ }
350
+ function prefixIssues(path, issues) {
351
+ return issues.map((iss) => {
352
+ var _a;
353
+ (_a = iss).path ?? (_a.path = []);
354
+ iss.path.unshift(path);
355
+ return iss;
356
+ });
357
+ }
358
+ function unwrapMessage(message) {
359
+ return typeof message === "string" ? message : message == null ? void 0 : message.message;
360
+ }
361
+ function finalizeIssue(iss, ctx, config) {
362
+ var _a, _b, _c, _d, _e, _f;
363
+ const full = { ...iss, path: iss.path ?? [] };
364
+ if (!iss.message) {
365
+ const message = unwrapMessage((_c = (_b = (_a = iss.inst) == null ? void 0 : _a._zod.def) == null ? void 0 : _b.error) == null ? void 0 : _c.call(_b, iss)) ?? unwrapMessage((_d = ctx == null ? void 0 : ctx.error) == null ? void 0 : _d.call(ctx, iss)) ?? unwrapMessage((_e = config.customError) == null ? void 0 : _e.call(config, iss)) ?? unwrapMessage((_f = config.localeError) == null ? void 0 : _f.call(config, iss)) ?? "Invalid input";
366
+ full.message = message;
367
+ }
368
+ delete full.inst;
369
+ delete full.continue;
370
+ if (!(ctx == null ? void 0 : ctx.reportInput)) {
371
+ delete full.input;
372
+ }
373
+ return full;
374
+ }
375
+ function getLengthableOrigin(input) {
376
+ if (Array.isArray(input))
377
+ return "array";
378
+ if (typeof input === "string")
379
+ return "string";
380
+ return "unknown";
381
+ }
382
+ function issue(...args) {
383
+ const [iss, input, inst] = args;
384
+ if (typeof iss === "string") {
385
+ return {
386
+ message: iss,
387
+ code: "custom",
388
+ input,
389
+ inst
390
+ };
391
+ }
392
+ return { ...iss };
393
+ }
394
+ export {
395
+ NUMBER_FORMAT_RANGES,
396
+ aborted,
397
+ allowsEval,
398
+ assignProp,
399
+ cached,
400
+ captureStackTrace,
401
+ cleanRegex,
402
+ clone,
403
+ defineLazy,
404
+ esc,
405
+ escapeRegex,
406
+ extend,
407
+ finalizeIssue,
408
+ floatSafeRemainder,
409
+ getEnumValues,
410
+ getLengthableOrigin,
411
+ isObject,
412
+ isPlainObject,
413
+ issue,
414
+ jsonStringifyReplacer,
415
+ merge,
416
+ mergeDefs,
417
+ normalizeParams,
418
+ nullish,
419
+ omit,
420
+ optionalKeys,
421
+ partial,
422
+ pick,
423
+ prefixIssues,
424
+ propertyKeyTypes,
425
+ required,
426
+ safeExtend,
427
+ shallowClone,
428
+ slugify,
429
+ unwrapMessage
430
+ };
@@ -0,0 +1,8 @@
1
+ const version = {
2
+ major: 4,
3
+ minor: 3,
4
+ patch: 6
5
+ };
6
+ export {
7
+ version
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dune-react",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -418,6 +418,7 @@
418
418
  "embla-carousel-autoplay": "8.6.0",
419
419
  "react-error-boundary": "6.1.1",
420
420
  "react-icons": "5.6.0",
421
- "shadcn": "4.0.8"
421
+ "shadcn": "4.0.8",
422
+ "zod": "4.3.6"
422
423
  }
423
424
  }