@riverbankcms/sdk 0.60.7 → 0.60.11

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/_dts/api/src/index.d.ts +2 -1
  2. package/dist/_dts/api/src/navigation/linkValue.d.ts +15 -2
  3. package/dist/_dts/api/src/navigation.d.ts +2 -0
  4. package/dist/_dts/blocks/src/index.d.ts +2 -1
  5. package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +185 -0
  6. package/dist/_dts/blocks/src/system/manifest/index.d.ts +1 -0
  7. package/dist/_dts/blocks/src/system/manifest/validation.d.ts +2 -84
  8. package/dist/_dts/blocks/src/system/node/fragments/ctaButton.d.ts +2 -2
  9. package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +2 -1
  10. package/dist/_dts/blocks/src/system/types/link.d.ts +100 -2
  11. package/dist/_dts/db/src/schemas/forms.d.ts +24 -3
  12. package/dist/_dts/editor-blocks/src/widgets/link/LinkSummary.d.ts +1 -1
  13. package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +1 -1
  14. package/dist/_dts/editor-blocks/src/widgets/link/utils.d.ts +1 -1
  15. package/dist/_dts/sdk/src/config/typed-entries.d.ts +36 -1
  16. package/dist/_dts/sdk/src/contracts/content.d.ts +13 -2
  17. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  18. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +1 -0
  19. package/dist/_dts/sdk/src/version.d.ts +1 -1
  20. package/dist/_dts/theme-core/src/buttons/classNames.d.ts +21 -0
  21. package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -0
  22. package/dist/_dts/theme-core/src/buttons/types.d.ts +1 -0
  23. package/dist/cli/index.mjs +736 -427
  24. package/dist/client/bookings.mjs +746 -149
  25. package/dist/client/client.mjs +40389 -39847
  26. package/dist/client/hooks.mjs +1737 -1735
  27. package/dist/client/rendering/client.mjs +351 -113
  28. package/dist/client/rendering/islands.mjs +4549 -4366
  29. package/dist/client/rendering.mjs +1915 -1373
  30. package/dist/preview-next/client/runtime.mjs +1509 -945
  31. package/dist/server/components.mjs +3148 -2781
  32. package/dist/server/config-validation.mjs +1727 -1725
  33. package/dist/server/config.mjs +1727 -1725
  34. package/dist/server/data.mjs +1737 -1735
  35. package/dist/server/index.mjs +1 -1
  36. package/dist/server/next.mjs +3193 -2826
  37. package/dist/server/page-converter.mjs +10 -10
  38. package/dist/server/prebuild.mjs +1 -1
  39. package/dist/server/rendering/server.mjs +3161 -2794
  40. package/dist/server/rendering.mjs +3161 -2794
  41. package/dist/server/routing.mjs +297 -314
  42. package/dist/server/server.mjs +1738 -1736
  43. package/package.json +1 -1
  44. package/dist/_dts/blocks/src/system/runtime/shared/themedButtonClass.d.ts +0 -11
@@ -6262,7 +6262,7 @@ var SimpleCache = class {
6262
6262
  };
6263
6263
 
6264
6264
  // src/version.ts
6265
- var SDK_VERSION = "0.60.7";
6265
+ var SDK_VERSION = "0.60.11";
6266
6266
 
6267
6267
  // src/client/error.ts
6268
6268
  var RiverbankApiError = class _RiverbankApiError extends Error {
@@ -9134,74 +9134,6 @@ function collectText(node) {
9134
9134
  return (node.content ?? []).map(collectText).join("");
9135
9135
  }
9136
9136
 
9137
- // ../api/src/aiPlayground.ts
9138
- import { z as z8 } from "zod";
9139
- var Rfc6902PatchOp = z8.discriminatedUnion("op", [
9140
- // Standard RFC-6902 operations
9141
- z8.object({
9142
- op: z8.literal("add"),
9143
- path: z8.string(),
9144
- value: z8.unknown()
9145
- }),
9146
- z8.object({
9147
- op: z8.literal("remove"),
9148
- path: z8.string()
9149
- }),
9150
- z8.object({
9151
- op: z8.literal("replace"),
9152
- path: z8.string(),
9153
- value: z8.unknown()
9154
- }),
9155
- z8.object({
9156
- op: z8.literal("move"),
9157
- from: z8.string(),
9158
- path: z8.string()
9159
- }),
9160
- z8.object({
9161
- op: z8.literal("copy"),
9162
- from: z8.string(),
9163
- path: z8.string()
9164
- }),
9165
- // Block-level operations (Phase 2)
9166
- z8.object({
9167
- op: z8.literal("add_block"),
9168
- blockKind: z8.string(),
9169
- afterBlockId: z8.string().nullable(),
9170
- content: z8.record(z8.string(), z8.unknown()),
9171
- rationale: z8.string()
9172
- }),
9173
- z8.object({
9174
- op: z8.literal("delete_block"),
9175
- blockId: z8.string(),
9176
- rationale: z8.string()
9177
- }),
9178
- z8.object({
9179
- op: z8.literal("reorder_block"),
9180
- blockId: z8.string(),
9181
- afterBlockId: z8.string().nullable(),
9182
- rationale: z8.string()
9183
- })
9184
- ]);
9185
- var PlaygroundProposeRequest = z8.object({
9186
- request: z8.string().min(1).max(2e3)
9187
- });
9188
- var MultiPagePatchEnvelope = z8.object({
9189
- pageId: z8.string(),
9190
- blockId: z8.string().optional(),
9191
- // Not present for page-level ops
9192
- blockKind: z8.string().optional(),
9193
- blockPurpose: z8.string().optional().nullable(),
9194
- ops: z8.array(Rfc6902PatchOp),
9195
- rationale: z8.string(),
9196
- currentContent: z8.record(z8.string(), z8.unknown()).optional()
9197
- });
9198
- var MultiPageUpdateResponse = z8.object({
9199
- patches: z8.array(MultiPagePatchEnvelope),
9200
- assistantMessage: z8.string(),
9201
- pagesModified: z8.number(),
9202
- toolCallsUsed: z8.number()
9203
- });
9204
-
9205
9137
  // ../blocks/src/system/manifest/augmentManifest.ts
9206
9138
  function augmentManifest(manifest) {
9207
9139
  let augmentedFields = manifest.fields ?? [];
@@ -9259,14 +9191,6 @@ function registerManifest(manifest) {
9259
9191
  return manifest;
9260
9192
  }
9261
9193
 
9262
- // ../blocks/src/lib/typeGuards.ts
9263
- function isRecord2(value) {
9264
- return typeof value === "object" && value !== null && !Array.isArray(value);
9265
- }
9266
- function isObjectRecord(value) {
9267
- return typeof value === "object" && value !== null;
9268
- }
9269
-
9270
9194
  // ../theme-core/src/site-styles/types.ts
9271
9195
  function asDesignBlockId(value) {
9272
9196
  return brandNonEmptyString(value, "DesignBlockId");
@@ -9574,10 +9498,10 @@ function assertUniqueLayoutProfileKeys(profiles) {
9574
9498
  }
9575
9499
 
9576
9500
  // ../theme-core/src/buttons/personalities/types.ts
9577
- import { z as z11 } from "zod";
9501
+ import { z as z10 } from "zod";
9578
9502
 
9579
9503
  // ../theme-core/src/buttons/types.ts
9580
- import { z as z9 } from "zod";
9504
+ import { z as z8 } from "zod";
9581
9505
  var VARIANT_ROLES = [
9582
9506
  "primary",
9583
9507
  "secondary",
@@ -9587,22 +9511,22 @@ var VARIANT_ROLES = [
9587
9511
  "tertiary",
9588
9512
  "accent"
9589
9513
  ];
9590
- var cornerStyleSchema = z9.enum(["square", "rounded", "pill"]);
9591
- var shadowSizeSchema = z9.enum(["none", "low", "medium", "high"]);
9592
- var textTransformSchema = z9.enum(["none", "uppercase", "lowercase", "capitalize"]);
9593
- var fontWeightSchema = z9.union([z9.literal(500), z9.literal(600), z9.literal(700)]);
9594
- var buttonTypographySchema = z9.enum(["body", "heading"]);
9595
- var letterSpacingSchema = z9.enum(["tight", "normal", "loose"]);
9596
- var hoverTransformSchema = z9.enum(["none", "lift", "scale", "press"]);
9597
- var hoverColorSchema = z9.enum(["none", "brighten", "darken", "saturate", "token"]);
9598
- var buttonPaddingPresetSchema = z9.enum(["compact", "default", "spacious"]);
9599
- var gradientStyleSchema = z9.enum(["linear", "radial", "conic"]);
9600
- var gradientSharpnessSchema = z9.enum(["smooth", "medium", "hard"]);
9601
- var prioritySchema = z9.union([z9.literal(1), z9.literal(2), z9.literal(3)]);
9602
- var variantRoleSchema = z9.enum(VARIANT_ROLES);
9603
- var buttonSizeNameSchema = z9.enum(["sm", "md", "lg", "xl"]);
9514
+ var cornerStyleSchema = z8.enum(["square", "rounded", "pill"]);
9515
+ var shadowSizeSchema = z8.enum(["none", "low", "medium", "high"]);
9516
+ var textTransformSchema = z8.enum(["none", "uppercase", "lowercase", "capitalize"]);
9517
+ var fontWeightSchema = z8.union([z8.literal(500), z8.literal(600), z8.literal(700)]);
9518
+ var buttonTypographySchema = z8.enum(["body", "heading"]);
9519
+ var letterSpacingSchema = z8.enum(["tight", "normal", "loose"]);
9520
+ var hoverTransformSchema = z8.enum(["none", "lift", "scale", "press"]);
9521
+ var hoverColorSchema = z8.enum(["none", "brighten", "darken", "saturate", "token"]);
9522
+ var buttonPaddingPresetSchema = z8.enum(["compact", "default", "spacious"]);
9523
+ var gradientStyleSchema = z8.enum(["linear", "radial", "conic"]);
9524
+ var gradientSharpnessSchema = z8.enum(["smooth", "medium", "hard"]);
9525
+ var prioritySchema = z8.union([z8.literal(1), z8.literal(2), z8.literal(3)]);
9526
+ var variantRoleSchema = z8.enum(VARIANT_ROLES);
9527
+ var buttonSizeNameSchema = z8.enum(["sm", "md", "lg", "xl"]);
9604
9528
  var PADDING_TOKEN_PATTERN = /^(?:0|\d+(?:\.\d+)?(?:rem|em|px|%))$/;
9605
- var paddingShorthandSchema = z9.string().refine(
9529
+ var paddingShorthandSchema = z8.string().refine(
9606
9530
  (value) => {
9607
9531
  const parts = value.split(/\s+/).filter(Boolean);
9608
9532
  return parts.length === 2 && parts.every((token) => PADDING_TOKEN_PATTERN.test(token));
@@ -9611,11 +9535,11 @@ var paddingShorthandSchema = z9.string().refine(
9611
9535
  message: 'Padding must be two space-separated CSS length tokens (e.g. "0.5rem 1rem"). Use `0` for zero.'
9612
9536
  }
9613
9537
  );
9614
- var buttonSizeConfigSchema = z9.object({
9538
+ var buttonSizeConfigSchema = z8.object({
9615
9539
  padding: paddingShorthandSchema,
9616
- fontSize: z9.string().optional()
9540
+ fontSize: z8.string().optional()
9617
9541
  });
9618
- var buttonSizesSchema = z9.object({
9542
+ var buttonSizesSchema = z8.object({
9619
9543
  sm: buttonSizeConfigSchema,
9620
9544
  md: buttonSizeConfigSchema,
9621
9545
  lg: buttonSizeConfigSchema,
@@ -9626,9 +9550,9 @@ var buttonSizesSchema = z9.object({
9626
9550
  lg,
9627
9551
  xl: xl ?? lg
9628
9552
  }));
9629
- var buttonGlobalSettingsSchema = z9.object({
9553
+ var buttonGlobalSettingsSchema = z8.object({
9630
9554
  cornerStyle: cornerStyleSchema,
9631
- cornerRadius: z9.number().min(0).max(24).optional(),
9555
+ cornerRadius: z8.number().min(0).max(24).optional(),
9632
9556
  shadow: shadowSizeSchema,
9633
9557
  textTransform: textTransformSchema,
9634
9558
  fontWeight: fontWeightSchema,
@@ -9638,104 +9562,104 @@ var buttonGlobalSettingsSchema = z9.object({
9638
9562
  * by the current generator and will be removed once the legacy
9639
9563
  * `primitives/content/components/Button.tsx` slot exports are deleted.
9640
9564
  */
9641
- borderWidth: z9.union([z9.literal(1), z9.literal(2), z9.literal(3)]),
9565
+ borderWidth: z8.union([z8.literal(1), z8.literal(2), z8.literal(3)]),
9642
9566
  // === Family-level typography ===
9643
9567
  // Typography source (body or heading) — selects which theme typography pool to inherit
9644
9568
  typography: buttonTypographySchema.optional(),
9645
9569
  // Font size for all variants in the family (Tailwind token, e.g. "text-xs", "text-sm")
9646
9570
  // Sized variants get this as default; fixed variants inherit unless they override.
9647
9571
  // Size class CSS may still override at run time for sized variants.
9648
- fontSize: z9.string().optional(),
9572
+ fontSize: z8.string().optional(),
9649
9573
  // Letter spacing applied to all variants
9650
9574
  letterSpacing: letterSpacingSchema.optional(),
9651
9575
  // Italic style
9652
- italic: z9.boolean().optional(),
9576
+ italic: z8.boolean().optional(),
9653
9577
  // Padding preset (applies to sized variants without a sizes config)
9654
9578
  paddingPreset: buttonPaddingPresetSchema.optional(),
9655
9579
  hoverTransform: hoverTransformSchema,
9656
9580
  hoverColor: hoverColorSchema,
9657
9581
  // When hoverColor is 'token', this specifies which token to use
9658
- hoverColorToken: z9.string().optional(),
9582
+ hoverColorToken: z8.string().optional(),
9659
9583
  // Gradient settings (if any variant uses gradients)
9660
9584
  gradientStyle: gradientStyleSchema.optional(),
9661
- gradientAngle: z9.number().min(0).max(360).optional(),
9585
+ gradientAngle: z8.number().min(0).max(360).optional(),
9662
9586
  gradientSharpness: gradientSharpnessSchema.optional()
9663
9587
  });
9664
- var gradientDirectionSchema = z9.enum(["to-r", "to-l", "to-t", "to-b", "to-tr", "to-tl", "to-br", "to-bl"]);
9665
- var buttonBackgroundSchema = z9.discriminatedUnion("type", [
9666
- z9.object({ type: z9.literal("solid"), colorToken: z9.string() }),
9667
- z9.object({
9668
- type: z9.literal("gradient"),
9669
- stops: z9.array(z9.string()).min(2),
9588
+ var gradientDirectionSchema = z8.enum(["to-r", "to-l", "to-t", "to-b", "to-tr", "to-tl", "to-br", "to-bl"]);
9589
+ var buttonBackgroundSchema = z8.discriminatedUnion("type", [
9590
+ z8.object({ type: z8.literal("solid"), colorToken: z8.string() }),
9591
+ z8.object({
9592
+ type: z8.literal("gradient"),
9593
+ stops: z8.array(z8.string()).min(2),
9670
9594
  direction: gradientDirectionSchema
9671
9595
  }),
9672
- z9.object({ type: z9.literal("transparent") })
9596
+ z8.object({ type: z8.literal("transparent") })
9673
9597
  ]);
9674
- var effectApplicationSchema = z9.object({
9675
- effectId: z9.string(),
9676
- options: z9.record(z9.string(), z9.any()).optional()
9677
- });
9678
- var buttonBorderSchema = z9.object({
9679
- widthClass: z9.string(),
9680
- colorToken: z9.string()
9681
- });
9682
- var variantShadowSchema = z9.object({
9683
- elevation: z9.enum(["none", "low", "medium", "high"]),
9684
- softness: z9.enum(["crisp", "soft", "hard"]).nullable(),
9685
- position: z9.enum(["bottom", "bottom-right"]).default("bottom")
9686
- });
9687
- var variantEffectsSchema = z9.object({
9688
- base: z9.array(effectApplicationSchema).optional(),
9689
- hover: z9.array(effectApplicationSchema).optional(),
9690
- active: z9.array(effectApplicationSchema).optional(),
9691
- focus: z9.array(effectApplicationSchema).optional()
9692
- });
9693
- var variantSizeOverridesSchema = z9.object({
9598
+ var effectApplicationSchema = z8.object({
9599
+ effectId: z8.string(),
9600
+ options: z8.record(z8.string(), z8.any()).optional()
9601
+ });
9602
+ var buttonBorderSchema = z8.object({
9603
+ widthClass: z8.string(),
9604
+ colorToken: z8.string()
9605
+ });
9606
+ var variantShadowSchema = z8.object({
9607
+ elevation: z8.enum(["none", "low", "medium", "high"]),
9608
+ softness: z8.enum(["crisp", "soft", "hard"]).nullable(),
9609
+ position: z8.enum(["bottom", "bottom-right"]).default("bottom")
9610
+ });
9611
+ var variantEffectsSchema = z8.object({
9612
+ base: z8.array(effectApplicationSchema).optional(),
9613
+ hover: z8.array(effectApplicationSchema).optional(),
9614
+ active: z8.array(effectApplicationSchema).optional(),
9615
+ focus: z8.array(effectApplicationSchema).optional()
9616
+ });
9617
+ var variantSizeOverridesSchema = z8.object({
9694
9618
  sm: buttonSizeConfigSchema.optional(),
9695
9619
  md: buttonSizeConfigSchema.optional(),
9696
9620
  lg: buttonSizeConfigSchema.optional(),
9697
9621
  xl: buttonSizeConfigSchema.optional()
9698
9622
  });
9699
- var buttonVariantSchema = z9.object({
9700
- id: z9.string(),
9701
- name: z9.string().min(1).max(20),
9702
- enabled: z9.boolean(),
9623
+ var buttonVariantSchema = z8.object({
9624
+ id: z8.string(),
9625
+ name: z8.string().min(1).max(20),
9626
+ enabled: z8.boolean(),
9703
9627
  priority: prioritySchema,
9704
9628
  // Base appearance (token-based)
9705
9629
  background: buttonBackgroundSchema,
9706
- textColorToken: z9.string(),
9630
+ textColorToken: z8.string(),
9707
9631
  /** Tailwind radius token (e.g. `'rounded-md'`). Omit to inherit from `global.cornerStyle`. */
9708
- borderRadius: z9.string().optional(),
9632
+ borderRadius: z8.string().optional(),
9709
9633
  // Optional shadow override (uses theme.shadow if not specified)
9710
9634
  shadow: variantShadowSchema.optional(),
9711
9635
  // Border (optional)
9712
9636
  border: buttonBorderSchema.optional(),
9713
9637
  // Hover background token (per-variant override, takes precedence over global hoverColorToken)
9714
- hoverBackgroundToken: z9.string().optional(),
9638
+ hoverBackgroundToken: z8.string().optional(),
9715
9639
  // Effect composition
9716
9640
  effects: variantEffectsSchema.optional(),
9717
9641
  // Per-variant size overrides — see VariantSizeOverrides
9718
9642
  sizes: variantSizeOverridesSchema.optional()
9719
9643
  });
9720
- var buttonSystemSchema = z9.object({
9644
+ var buttonSystemSchema = z8.object({
9721
9645
  global: buttonGlobalSettingsSchema,
9722
- variants: z9.array(buttonVariantSchema).min(1).max(6),
9646
+ variants: z8.array(buttonVariantSchema).min(1).max(6),
9723
9647
  sizes: buttonSizesSchema.optional()
9724
9648
  });
9725
9649
 
9726
9650
  // ../theme-core/src/site-styles/styleTags.ts
9727
- import { z as z10 } from "zod";
9651
+ import { z as z9 } from "zod";
9728
9652
  var STYLE_AXIS_VALUES = {
9729
9653
  tone: ["minimal", "classic", "bold"],
9730
9654
  energy: ["calm", "vibrant"],
9731
9655
  motion: ["subtle", "standard", "expressive"],
9732
9656
  era: ["editorial", "modern", "organic", "technical", "retro"]
9733
9657
  };
9734
- var styleTagsSchema = z10.object({
9735
- tone: z10.enum(STYLE_AXIS_VALUES.tone).optional(),
9736
- energy: z10.enum(STYLE_AXIS_VALUES.energy).optional(),
9737
- motion: z10.enum(STYLE_AXIS_VALUES.motion).optional(),
9738
- era: z10.enum(STYLE_AXIS_VALUES.era).optional()
9658
+ var styleTagsSchema = z9.object({
9659
+ tone: z9.enum(STYLE_AXIS_VALUES.tone).optional(),
9660
+ energy: z9.enum(STYLE_AXIS_VALUES.energy).optional(),
9661
+ motion: z9.enum(STYLE_AXIS_VALUES.motion).optional(),
9662
+ era: z9.enum(STYLE_AXIS_VALUES.era).optional()
9739
9663
  });
9740
9664
 
9741
9665
  // ../theme-core/src/buttons/personalities/types.ts
@@ -9745,11 +9669,11 @@ function asButtonPersonalityId(value) {
9745
9669
  }
9746
9670
  return value;
9747
9671
  }
9748
- var buttonPersonalityIdSchema = z11.string().min(1).transform((value) => asButtonPersonalityId(value));
9749
- var buttonPersonalitySchema = z11.object({
9672
+ var buttonPersonalityIdSchema = z10.string().min(1).transform((value) => asButtonPersonalityId(value));
9673
+ var buttonPersonalitySchema = z10.object({
9750
9674
  id: buttonPersonalityIdSchema,
9751
- name: z11.string().min(1),
9752
- description: z11.string().min(1),
9675
+ name: z10.string().min(1),
9676
+ description: z10.string().min(1),
9753
9677
  tags: styleTagsSchema,
9754
9678
  buttonSystem: buttonSystemSchema
9755
9679
  });
@@ -10288,51 +10212,51 @@ var personalitiesById = new Map(
10288
10212
  );
10289
10213
 
10290
10214
  // ../theme-core/src/palette/variants/types.ts
10291
- import { z as z23 } from "zod";
10215
+ import { z as z22 } from "zod";
10292
10216
 
10293
10217
  // ../theme-core/src/schema.ts
10294
- import { z as z22 } from "zod";
10218
+ import { z as z21 } from "zod";
10295
10219
 
10296
10220
  // ../theme-core/src/lib/media.ts
10297
- import z12 from "zod";
10298
- var hotspotSchema = z12.object({
10299
- x: z12.number().min(0).max(1),
10300
- y: z12.number().min(0).max(1),
10301
- radius: z12.number().optional()
10302
- });
10303
- var rotationSchema = z12.union([z12.literal(0), z12.literal(90), z12.literal(180), z12.literal(270)]);
10304
- var rectSchema = z12.tuple([z12.number(), z12.number(), z12.number(), z12.number()]);
10305
- var aspectCropSchema = z12.object({
10306
- aspect: z12.preprocess((value) => value == null ? void 0 : value, z12.string().optional()),
10307
- rect: z12.preprocess((value) => value == null ? void 0 : value, rectSchema.optional()),
10308
- hotspot: z12.preprocess((value) => value == null ? void 0 : value, hotspotSchema.optional()),
10309
- rotation: z12.preprocess((value) => value == null ? void 0 : value, rotationSchema.optional())
10310
- });
10311
- var transformSchema = z12.object({
10312
- aspectCrops: z12.preprocess((value) => {
10221
+ import z11 from "zod";
10222
+ var hotspotSchema = z11.object({
10223
+ x: z11.number().min(0).max(1),
10224
+ y: z11.number().min(0).max(1),
10225
+ radius: z11.number().optional()
10226
+ });
10227
+ var rotationSchema = z11.union([z11.literal(0), z11.literal(90), z11.literal(180), z11.literal(270)]);
10228
+ var rectSchema = z11.tuple([z11.number(), z11.number(), z11.number(), z11.number()]);
10229
+ var aspectCropSchema = z11.object({
10230
+ aspect: z11.preprocess((value) => value == null ? void 0 : value, z11.string().optional()),
10231
+ rect: z11.preprocess((value) => value == null ? void 0 : value, rectSchema.optional()),
10232
+ hotspot: z11.preprocess((value) => value == null ? void 0 : value, hotspotSchema.optional()),
10233
+ rotation: z11.preprocess((value) => value == null ? void 0 : value, rotationSchema.optional())
10234
+ });
10235
+ var transformSchema = z11.object({
10236
+ aspectCrops: z11.preprocess((value) => {
10313
10237
  if (!value || typeof value !== "object" || Array.isArray(value)) {
10314
10238
  return void 0;
10315
10239
  }
10316
10240
  return value;
10317
- }, z12.record(z12.string(), aspectCropSchema.catch({}))).optional(),
10241
+ }, z11.record(z11.string(), aspectCropSchema.catch({}))).optional(),
10318
10242
  rect: rectSchema.optional(),
10319
10243
  hotspot: hotspotSchema.optional(),
10320
10244
  rotation: rotationSchema.optional()
10321
10245
  });
10322
- var mediaSchema = z12.object({
10323
- type: z12.enum(["image", "video", "audio", "document", "spreadsheet", "archive"]),
10324
- purpose: z12.string().optional(),
10325
- placeholder: z12.boolean().default(true).optional(),
10326
- assetId: z12.string().optional(),
10327
- identifier: z12.string().optional(),
10328
- src: z12.string().optional(),
10329
- alt: z12.string().optional(),
10330
- filename: z12.string().optional(),
10331
- mimeType: z12.string().optional(),
10332
- width: z12.number().optional(),
10333
- height: z12.number().optional(),
10334
- storageBucket: z12.string().optional(),
10335
- storagePath: z12.string().optional(),
10246
+ var mediaSchema = z11.object({
10247
+ type: z11.enum(["image", "video", "audio", "document", "spreadsheet", "archive"]),
10248
+ purpose: z11.string().optional(),
10249
+ placeholder: z11.boolean().default(true).optional(),
10250
+ assetId: z11.string().optional(),
10251
+ identifier: z11.string().optional(),
10252
+ src: z11.string().optional(),
10253
+ alt: z11.string().optional(),
10254
+ filename: z11.string().optional(),
10255
+ mimeType: z11.string().optional(),
10256
+ width: z11.number().optional(),
10257
+ height: z11.number().optional(),
10258
+ storageBucket: z11.string().optional(),
10259
+ storagePath: z11.string().optional(),
10336
10260
  transform: transformSchema.optional()
10337
10261
  });
10338
10262
 
@@ -10340,48 +10264,48 @@ var mediaSchema = z12.object({
10340
10264
  var BUTTON_SIZE_NAMES = buttonSizeNameSchema.options;
10341
10265
 
10342
10266
  // ../theme-core/src/cards/types.ts
10343
- import { z as z13 } from "zod";
10344
- var cardSpacingSchema = z13.enum(["none", "compact", "cozy", "medium", "comfortable", "spacious"]);
10345
- var gradientDirectionSchema2 = z13.enum(["to-r", "to-l", "to-t", "to-b", "to-tr", "to-tl", "to-br", "to-bl"]);
10346
- var cardBackgroundSchema = z13.discriminatedUnion("type", [
10347
- z13.object({ type: z13.literal("solid"), colorToken: z13.string() }),
10348
- z13.object({
10349
- type: z13.literal("gradient"),
10350
- fromToken: z13.string(),
10351
- toToken: z13.string(),
10267
+ import { z as z12 } from "zod";
10268
+ var cardSpacingSchema = z12.enum(["none", "compact", "cozy", "medium", "comfortable", "spacious"]);
10269
+ var gradientDirectionSchema2 = z12.enum(["to-r", "to-l", "to-t", "to-b", "to-tr", "to-tl", "to-br", "to-bl"]);
10270
+ var cardBackgroundSchema = z12.discriminatedUnion("type", [
10271
+ z12.object({ type: z12.literal("solid"), colorToken: z12.string() }),
10272
+ z12.object({
10273
+ type: z12.literal("gradient"),
10274
+ fromToken: z12.string(),
10275
+ toToken: z12.string(),
10352
10276
  direction: gradientDirectionSchema2
10353
10277
  }),
10354
- z13.object({ type: z13.literal("transparent") })
10278
+ z12.object({ type: z12.literal("transparent") })
10355
10279
  ]);
10356
- var cardBorderSchema = z13.object({
10357
- widthClass: z13.string(),
10358
- colorToken: z13.string()
10359
- });
10360
- var cardVariantSchema = z13.object({
10361
- id: z13.string(),
10362
- name: z13.string().min(1).max(20),
10363
- enabled: z13.boolean(),
10364
- priority: z13.union([z13.literal(1), z13.literal(2), z13.literal(3)]),
10280
+ var cardBorderSchema = z12.object({
10281
+ widthClass: z12.string(),
10282
+ colorToken: z12.string()
10283
+ });
10284
+ var cardVariantSchema = z12.object({
10285
+ id: z12.string(),
10286
+ name: z12.string().min(1).max(20),
10287
+ enabled: z12.boolean(),
10288
+ priority: z12.union([z12.literal(1), z12.literal(2), z12.literal(3)]),
10365
10289
  // Appearance (token-based)
10366
10290
  background: cardBackgroundSchema,
10367
10291
  spacing: cardSpacingSchema,
10368
10292
  // Optional overrides (uses theme defaults if not specified)
10369
- shadow: z13.object({
10370
- elevation: z13.enum(["none", "low", "medium", "high"]),
10371
- softness: z13.enum(["crisp", "soft", "hard"]).nullable(),
10372
- position: z13.enum(["bottom", "bottom-right"]).default("bottom")
10293
+ shadow: z12.object({
10294
+ elevation: z12.enum(["none", "low", "medium", "high"]),
10295
+ softness: z12.enum(["crisp", "soft", "hard"]).nullable(),
10296
+ position: z12.enum(["bottom", "bottom-right"]).default("bottom")
10373
10297
  }).optional(),
10374
- corners: z13.enum(["square", "soft", "rounded", "pill"]).optional(),
10298
+ corners: z12.enum(["square", "soft", "rounded", "pill"]).optional(),
10375
10299
  // Border (optional)
10376
10300
  border: cardBorderSchema.optional()
10377
10301
  });
10378
- var cardSystemSchema = z13.object({
10379
- variants: z13.array(cardVariantSchema).min(1).max(3)
10302
+ var cardSystemSchema = z12.object({
10303
+ variants: z12.array(cardVariantSchema).min(1).max(3)
10380
10304
  });
10381
10305
 
10382
10306
  // ../theme-core/src/accordions/types.ts
10383
- import { z as z14 } from "zod";
10384
- var accordionIconSchema = z14.enum([
10307
+ import { z as z13 } from "zod";
10308
+ var accordionIconSchema = z13.enum([
10385
10309
  "plus-minus",
10386
10310
  // + becomes - (swap or rotate 90°)
10387
10311
  "chevron",
@@ -10393,180 +10317,180 @@ var accordionIconSchema = z14.enum([
10393
10317
  "circle-plus-minus"
10394
10318
  // ⊕ becomes ⊖ (swap with fade)
10395
10319
  ]);
10396
- var accordionSystemSchema = z14.object({
10320
+ var accordionSystemSchema = z13.object({
10397
10321
  // Visual styling (solid color only - gradients can be added later if needed)
10398
- background: z14.object({
10399
- type: z14.literal("solid"),
10400
- colorToken: z14.string()
10322
+ background: z13.object({
10323
+ type: z13.literal("solid"),
10324
+ colorToken: z13.string()
10401
10325
  }),
10402
10326
  // Spacing (padding inside items)
10403
- spacing: z14.enum(["none", "compact", "cozy", "medium", "comfortable", "spacious"]),
10327
+ spacing: z13.enum(["none", "compact", "cozy", "medium", "comfortable", "spacious"]),
10404
10328
  // Border radius (null = inherit from theme.corners)
10405
- corners: z14.enum(["square", "soft", "rounded", "pill"]).nullable(),
10329
+ corners: z13.enum(["square", "soft", "rounded", "pill"]).nullable(),
10406
10330
  // Border styling (null = inherit from theme.border)
10407
- border: z14.object({
10408
- widthClass: z14.string(),
10331
+ border: z13.object({
10332
+ widthClass: z13.string(),
10409
10333
  // e.g., 'border', 'border-2', 'border-0'
10410
- colorToken: z14.string()
10334
+ colorToken: z13.string()
10411
10335
  }).nullable(),
10412
10336
  // Shadow (null = inherit from theme.shadow)
10413
- shadow: z14.object({
10414
- elevation: z14.enum(["none", "low", "medium", "high"]),
10415
- softness: z14.enum(["soft", "crisp", "hard"]).nullable(),
10416
- position: z14.enum(["bottom", "bottom-right"])
10337
+ shadow: z13.object({
10338
+ elevation: z13.enum(["none", "low", "medium", "high"]),
10339
+ softness: z13.enum(["soft", "crisp", "hard"]).nullable(),
10340
+ position: z13.enum(["bottom", "bottom-right"])
10417
10341
  }).nullable(),
10418
10342
  // Icon style and animation
10419
- icon: z14.object({
10343
+ icon: z13.object({
10420
10344
  style: accordionIconSchema,
10421
- position: z14.enum(["left", "right"]),
10422
- size: z14.enum(["sm", "md", "lg"])
10345
+ position: z13.enum(["left", "right"]),
10346
+ size: z13.enum(["sm", "md", "lg"])
10423
10347
  }),
10424
10348
  // Trigger (question) styling
10425
- trigger: z14.object({
10426
- textColorToken: z14.string(),
10427
- fontWeight: z14.enum(["regular", "medium", "semibold", "bold"]).nullable()
10349
+ trigger: z13.object({
10350
+ textColorToken: z13.string(),
10351
+ fontWeight: z13.enum(["regular", "medium", "semibold", "bold"]).nullable()
10428
10352
  // null = inherit from theme
10429
10353
  }),
10430
10354
  // Hover state styling
10431
- hover: z14.object({
10432
- backgroundColorToken: z14.string().optional(),
10433
- textColorToken: z14.string().optional(),
10434
- borderColorToken: z14.string().optional()
10355
+ hover: z13.object({
10356
+ backgroundColorToken: z13.string().optional(),
10357
+ textColorToken: z13.string().optional(),
10358
+ borderColorToken: z13.string().optional()
10435
10359
  }),
10436
10360
  // Content (answer) styling
10437
- content: z14.object({
10438
- textColorToken: z14.string()
10361
+ content: z13.object({
10362
+ textColorToken: z13.string()
10439
10363
  })
10440
10364
  });
10441
10365
 
10442
10366
  // ../theme-core/src/inputs/types.ts
10443
- import { z as z15 } from "zod";
10444
- var inputSystemSchema = z15.object({
10367
+ import { z as z14 } from "zod";
10368
+ var inputSystemSchema = z14.object({
10445
10369
  // Base styling (applied to all inputs)
10446
- base: z15.object({
10447
- background: z15.union([
10448
- z15.object({
10449
- type: z15.literal("solid"),
10450
- colorToken: z15.string()
10370
+ base: z14.object({
10371
+ background: z14.union([
10372
+ z14.object({
10373
+ type: z14.literal("solid"),
10374
+ colorToken: z14.string()
10451
10375
  }),
10452
- z15.object({
10453
- type: z15.literal("transparent")
10376
+ z14.object({
10377
+ type: z14.literal("transparent")
10454
10378
  })
10455
10379
  ]),
10456
- textColorToken: z15.string(),
10457
- border: z15.object({
10458
- widthClass: z15.string(),
10380
+ textColorToken: z14.string(),
10381
+ border: z14.object({
10382
+ widthClass: z14.string(),
10459
10383
  // e.g., 'border', 'border-2'
10460
- colorToken: z15.string(),
10461
- style: z15.enum(["all", "underline"]).optional()
10384
+ colorToken: z14.string(),
10385
+ style: z14.enum(["all", "underline"]).optional()
10462
10386
  }),
10463
- corners: z15.enum(["square", "soft", "rounded", "pill"]).nullable(),
10387
+ corners: z14.enum(["square", "soft", "rounded", "pill"]).nullable(),
10464
10388
  // null = inherit from theme.corners
10465
- shadow: z15.object({
10466
- elevation: z15.enum(["none", "low", "medium"]),
10467
- softness: z15.enum(["soft", "crisp", "hard"]).nullable()
10389
+ shadow: z14.object({
10390
+ elevation: z14.enum(["none", "low", "medium"]),
10391
+ softness: z14.enum(["soft", "crisp", "hard"]).nullable()
10468
10392
  }).nullable(),
10469
- spacing: z15.enum(["compact", "cozy", "medium", "comfortable"]),
10393
+ spacing: z14.enum(["compact", "cozy", "medium", "comfortable"]),
10470
10394
  // padding inside inputs
10471
- fontSize: z15.enum(["sm", "base", "lg"])
10395
+ fontSize: z14.enum(["sm", "base", "lg"])
10472
10396
  }),
10473
10397
  // Label styling
10474
- label: z15.object({
10475
- textColorToken: z15.string(),
10476
- fontWeight: z15.enum(["regular", "medium", "semibold", "bold", "black"]),
10477
- fontSize: z15.enum(["2xs", "xs", "sm", "base"]),
10478
- textTransform: z15.enum(["none", "uppercase", "lowercase", "capitalize"]).optional(),
10479
- letterSpacing: z15.enum(["normal", "wide", "wider", "widest"]).optional(),
10480
- opacity: z15.number().min(0.2).max(1).optional()
10398
+ label: z14.object({
10399
+ textColorToken: z14.string(),
10400
+ fontWeight: z14.enum(["regular", "medium", "semibold", "bold", "black"]),
10401
+ fontSize: z14.enum(["2xs", "xs", "sm", "base"]),
10402
+ textTransform: z14.enum(["none", "uppercase", "lowercase", "capitalize"]).optional(),
10403
+ letterSpacing: z14.enum(["normal", "wide", "wider", "widest"]).optional(),
10404
+ opacity: z14.number().min(0.2).max(1).optional()
10481
10405
  }),
10482
10406
  // Focus state
10483
- focus: z15.object({
10484
- ringColorToken: z15.string(),
10485
- ringWidth: z15.enum(["0", "1", "2", "3"]),
10486
- borderColorToken: z15.string().optional()
10407
+ focus: z14.object({
10408
+ ringColorToken: z14.string(),
10409
+ ringWidth: z14.enum(["0", "1", "2", "3"]),
10410
+ borderColorToken: z14.string().optional()
10487
10411
  // Change border color on focus
10488
10412
  }),
10489
10413
  // Error state (for validation feedback)
10490
- error: z15.object({
10491
- borderColorToken: z15.string(),
10492
- textColorToken: z15.string()
10414
+ error: z14.object({
10415
+ borderColorToken: z14.string(),
10416
+ textColorToken: z14.string()
10493
10417
  }),
10494
10418
  // Disabled state
10495
- disabled: z15.object({
10496
- backgroundColorToken: z15.string(),
10497
- textColorToken: z15.string(),
10498
- opacity: z15.number().min(0.3).max(0.7)
10419
+ disabled: z14.object({
10420
+ backgroundColorToken: z14.string(),
10421
+ textColorToken: z14.string(),
10422
+ opacity: z14.number().min(0.3).max(0.7)
10499
10423
  })
10500
10424
  });
10501
10425
 
10502
10426
  // ../theme-core/src/gradients/types.ts
10503
- import { z as z16 } from "zod";
10504
- var gradientStopSchema = z16.object({
10505
- color: z16.string(),
10427
+ import { z as z15 } from "zod";
10428
+ var gradientStopSchema = z15.object({
10429
+ color: z15.string(),
10506
10430
  // Theme color token name (e.g., 'primary-500')
10507
- position: z16.number().min(0).max(100)
10431
+ position: z15.number().min(0).max(100)
10508
10432
  // Percentage 0-100
10509
10433
  });
10510
- var gradientConfigSchema = z16.object({
10511
- type: z16.enum(["linear", "radial"]),
10512
- angle: z16.number().min(0).max(360).optional(),
10434
+ var gradientConfigSchema = z15.object({
10435
+ type: z15.enum(["linear", "radial"]),
10436
+ angle: z15.number().min(0).max(360).optional(),
10513
10437
  // For linear gradients (degrees)
10514
- position: z16.string().optional(),
10438
+ position: z15.string().optional(),
10515
10439
  // For radial gradients ('center', 'top left', etc.)
10516
- stops: z16.array(gradientStopSchema).min(2)
10440
+ stops: z15.array(gradientStopSchema).min(2)
10517
10441
  });
10518
10442
 
10519
10443
  // ../theme-core/src/navigation/types.ts
10520
- import { z as z18 } from "zod";
10444
+ import { z as z17 } from "zod";
10521
10445
 
10522
10446
  // ../theme-core/src/interactive/baseSchema.ts
10523
- import { z as z17 } from "zod";
10524
- var interactiveTypographySchema = z17.object({
10447
+ import { z as z16 } from "zod";
10448
+ var interactiveTypographySchema = z16.object({
10525
10449
  /** Font family source */
10526
- typography: z17.enum(["body", "heading"]).default("body"),
10450
+ typography: z16.enum(["body", "heading"]).default("body"),
10527
10451
  /** Font weight */
10528
- fontWeight: z17.enum(["regular", "medium", "semibold", "bold"]).default("medium"),
10452
+ fontWeight: z16.enum(["regular", "medium", "semibold", "bold"]).default("medium"),
10529
10453
  /** Text transform */
10530
- textTransform: z17.enum(["none", "uppercase", "capitalize"]).default("none"),
10454
+ textTransform: z16.enum(["none", "uppercase", "capitalize"]).default("none"),
10531
10455
  /** Italic style */
10532
- italic: z17.boolean().default(false)
10456
+ italic: z16.boolean().default(false)
10533
10457
  });
10534
- var effectApplicationSchema2 = z17.object({
10458
+ var effectApplicationSchema2 = z16.object({
10535
10459
  /** Effect preset ID */
10536
- effectId: z17.string(),
10460
+ effectId: z16.string(),
10537
10461
  /** User-provided customization options */
10538
- options: z17.record(z17.string(), z17.any()).optional()
10462
+ options: z16.record(z16.string(), z16.any()).optional()
10539
10463
  });
10540
- var effectCompositionSchema = z17.object({
10464
+ var effectCompositionSchema = z16.object({
10541
10465
  /** Effects always applied */
10542
- base: z17.array(effectApplicationSchema2).optional(),
10466
+ base: z16.array(effectApplicationSchema2).optional(),
10543
10467
  /** Effects applied on hover */
10544
- hover: z17.array(effectApplicationSchema2).optional(),
10468
+ hover: z16.array(effectApplicationSchema2).optional(),
10545
10469
  /** Effects applied on active/pressed */
10546
- active: z17.array(effectApplicationSchema2).optional(),
10470
+ active: z16.array(effectApplicationSchema2).optional(),
10547
10471
  /** Effects applied on focus */
10548
- focus: z17.array(effectApplicationSchema2).optional()
10472
+ focus: z16.array(effectApplicationSchema2).optional()
10549
10473
  });
10550
10474
 
10551
10475
  // ../theme-core/src/navigation/types.ts
10552
- var navLinkPaddingSchema = z18.enum(["none", "compact", "default"]);
10553
- var navLinkPaddingXSchema = z18.enum(["none", "tight", "compact", "default", "relaxed", "spacious"]);
10554
- var navLinkBorderRadiusSchema = z18.enum(["none", "sm", "md", "full"]);
10555
- var navLinkTextSizeSchema = z18.enum(["xs", "sm", "base", "lg"]);
10556
- var navLinkLetterSpacingSchema = z18.enum(["normal", "wide", "wider", "widest"]);
10557
- var navLinkStyleSchema = z18.object({
10476
+ var navLinkPaddingSchema = z17.enum(["none", "compact", "default"]);
10477
+ var navLinkPaddingXSchema = z17.enum(["none", "tight", "compact", "default", "relaxed", "spacious"]);
10478
+ var navLinkBorderRadiusSchema = z17.enum(["none", "sm", "md", "full"]);
10479
+ var navLinkTextSizeSchema = z17.enum(["xs", "sm", "base", "lg"]);
10480
+ var navLinkLetterSpacingSchema = z17.enum(["normal", "wide", "wider", "widest"]);
10481
+ var navLinkStyleSchema = z17.object({
10558
10482
  /** Display name for the style */
10559
- name: z18.string().min(1).max(30).optional(),
10483
+ name: z17.string().min(1).max(30).optional(),
10560
10484
  /** Typography settings (inherited from interactive base) */
10561
10485
  ...interactiveTypographySchema.shape,
10562
10486
  /** Text color token */
10563
- colorToken: z18.string().default("text"),
10487
+ colorToken: z17.string().default("text"),
10564
10488
  /** Optional text size override */
10565
10489
  textSize: navLinkTextSizeSchema.optional(),
10566
10490
  /** Optional letter spacing override */
10567
10491
  letterSpacing: navLinkLetterSpacingSchema.optional(),
10568
10492
  /** Hover/active color token (for color-change effects) */
10569
- hoverColorToken: z18.string().nullable().optional(),
10493
+ hoverColorToken: z17.string().nullable().optional(),
10570
10494
  /** Padding preset */
10571
10495
  padding: navLinkPaddingSchema.default("compact"),
10572
10496
  /** Horizontal padding override (overrides horizontal component of padding preset) */
@@ -10578,7 +10502,7 @@ var navLinkStyleSchema = z18.object({
10578
10502
  });
10579
10503
 
10580
10504
  // ../theme-core/src/customCss/validation.ts
10581
- import { z as z19 } from "zod";
10505
+ import { z as z18 } from "zod";
10582
10506
  var FORBIDDEN_SELECTORS = [":root", "html", "body"];
10583
10507
  var UNIVERSAL_SELECTOR = "*";
10584
10508
  var REMOTE_URL_PATTERN = /url\s*\(\s*['"]?(https?:|\/\/)/i;
@@ -10620,7 +10544,7 @@ function containsForbiddenSelector(selector) {
10620
10544
  }
10621
10545
  return false;
10622
10546
  }
10623
- var selectorSchema = z19.string().min(1, "Selector cannot be empty").max(200, "Selector too long (max 200 characters)").refine(
10547
+ var selectorSchema = z18.string().min(1, "Selector cannot be empty").max(200, "Selector too long (max 200 characters)").refine(
10624
10548
  (s) => !containsForbiddenSelector(s),
10625
10549
  { message: "Global selectors (:root, html, body, *) are not allowed" }
10626
10550
  );
@@ -10630,38 +10554,38 @@ function containsRemoteUrl(value) {
10630
10554
  function containsJavascriptUrl(value) {
10631
10555
  return JAVASCRIPT_URL_PATTERN.test(value);
10632
10556
  }
10633
- var declarationValueSchema = z19.string().max(500, "Declaration value too long (max 500 characters)").refine(
10557
+ var declarationValueSchema = z18.string().max(500, "Declaration value too long (max 500 characters)").refine(
10634
10558
  (v) => !containsRemoteUrl(v),
10635
10559
  { message: "Remote url() references are not allowed. Use local paths, data URIs, or fragment IDs." }
10636
10560
  ).refine(
10637
10561
  (v) => !containsJavascriptUrl(v),
10638
10562
  { message: "javascript: URLs are not allowed" }
10639
10563
  );
10640
- var declarationsSchema = z19.record(
10641
- z19.string().min(1).max(100),
10564
+ var declarationsSchema = z18.record(
10565
+ z18.string().min(1).max(100),
10642
10566
  // property name
10643
10567
  declarationValueSchema
10644
10568
  // property value
10645
10569
  );
10646
- var customCssRuleSchema = z19.object({
10647
- id: z19.string().min(1, "Rule ID is required").max(50, "Rule ID too long"),
10570
+ var customCssRuleSchema = z18.object({
10571
+ id: z18.string().min(1, "Rule ID is required").max(50, "Rule ID too long"),
10648
10572
  selector: selectorSchema,
10649
10573
  declarations: declarationsSchema
10650
10574
  });
10651
10575
  var blockCustomCssRuleSchema = customCssRuleSchema.extend({
10652
- blockKind: z19.string().min(1, "Block kind is required").max(50, "Block kind too long")
10576
+ blockKind: z18.string().min(1, "Block kind is required").max(50, "Block kind too long")
10653
10577
  });
10654
- var customCssRulesSchema = z19.array(customCssRuleSchema).optional();
10655
- var blockCustomCssRulesSchema = z19.array(blockCustomCssRuleSchema).optional();
10578
+ var customCssRulesSchema = z18.array(customCssRuleSchema).optional();
10579
+ var blockCustomCssRulesSchema = z18.array(blockCustomCssRuleSchema).optional();
10656
10580
 
10657
10581
  // ../theme-core/src/customCss/atRuleValidation.ts
10658
- import { z as z20 } from "zod";
10582
+ import { z as z19 } from "zod";
10659
10583
  var KEYFRAME_OFFSET_PATTERN = /^(from|to|\d{1,3}%)$/i;
10660
10584
  var ANIMATION_NAME_PATTERN = /^[a-zA-Z_-][a-zA-Z0-9_-]*$/;
10661
10585
  var BLOCKED_AT_RULES = ["@import", "@charset"];
10662
10586
  var BLOCKED_AT_RULE_PATTERN = /@(?:import|charset)\b/i;
10663
- var ruleIdSchema = z20.string().min(1, "Rule ID is required").max(50, "Rule ID too long");
10664
- var nestedRuleSchema = z20.object({
10587
+ var ruleIdSchema = z19.string().min(1, "Rule ID is required").max(50, "Rule ID too long");
10588
+ var nestedRuleSchema = z19.object({
10665
10589
  selector: selectorSchema,
10666
10590
  declarations: declarationsSchema
10667
10591
  });
@@ -10673,146 +10597,146 @@ function isValidKeyframeOffset(offset) {
10673
10597
  const value = parseInt(match[1], 10);
10674
10598
  return value >= 0 && value <= 100;
10675
10599
  }
10676
- var keyframeOffsetSchema = z20.string().transform((offset) => offset.trim()).refine(
10600
+ var keyframeOffsetSchema = z19.string().transform((offset) => offset.trim()).refine(
10677
10601
  (offset) => KEYFRAME_OFFSET_PATTERN.test(offset),
10678
10602
  { message: 'Invalid keyframe offset. Use percentages (0%, 50%, 100%) or "from"/"to"' }
10679
10603
  ).refine(
10680
10604
  isValidKeyframeOffset,
10681
10605
  { message: "Keyframe offset must be between 0% and 100%" }
10682
10606
  );
10683
- var animationNameSchema = z20.string().min(1, "Animation name is required").max(50, "Animation name too long").refine(
10607
+ var animationNameSchema = z19.string().min(1, "Animation name is required").max(50, "Animation name too long").refine(
10684
10608
  (name) => ANIMATION_NAME_PATTERN.test(name),
10685
10609
  { message: "Invalid animation name. Use letters, numbers, dashes, underscores (start with letter, dash, or underscore)" }
10686
10610
  );
10687
- var keyframeSchema = z20.object({
10611
+ var keyframeSchema = z19.object({
10688
10612
  offset: keyframeOffsetSchema,
10689
10613
  declarations: declarationsSchema
10690
10614
  });
10691
- var keyframesAtRuleSchema = z20.object({
10615
+ var keyframesAtRuleSchema = z19.object({
10692
10616
  id: ruleIdSchema,
10693
- type: z20.literal("keyframes"),
10617
+ type: z19.literal("keyframes"),
10694
10618
  name: animationNameSchema,
10695
- frames: z20.array(keyframeSchema).min(1, "At least one keyframe is required")
10619
+ frames: z19.array(keyframeSchema).min(1, "At least one keyframe is required")
10696
10620
  });
10697
- var fontFaceDeclarationsSchema = z20.record(z20.string().min(1).max(100), declarationValueSchema).refine(
10621
+ var fontFaceDeclarationsSchema = z19.record(z19.string().min(1).max(100), declarationValueSchema).refine(
10698
10622
  (decls) => "fontFamily" in decls || "font-family" in decls,
10699
10623
  { message: "font-family is required in @font-face" }
10700
10624
  );
10701
- var fontFaceAtRuleSchema = z20.object({
10625
+ var fontFaceAtRuleSchema = z19.object({
10702
10626
  id: ruleIdSchema,
10703
- type: z20.literal("font-face"),
10627
+ type: z19.literal("font-face"),
10704
10628
  declarations: fontFaceDeclarationsSchema
10705
10629
  });
10706
- var mediaQuerySchema = z20.string().min(1, "Media query is required").max(200, "Media query too long");
10707
- var mediaAtRuleSchema = z20.object({
10630
+ var mediaQuerySchema = z19.string().min(1, "Media query is required").max(200, "Media query too long");
10631
+ var mediaAtRuleSchema = z19.object({
10708
10632
  id: ruleIdSchema,
10709
- type: z20.literal("media"),
10633
+ type: z19.literal("media"),
10710
10634
  query: mediaQuerySchema,
10711
- rules: z20.array(nestedRuleSchema).min(1, "At least one rule is required")
10635
+ rules: z19.array(nestedRuleSchema).min(1, "At least one rule is required")
10712
10636
  });
10713
- var supportsConditionSchema = z20.string().min(1, "Supports condition is required").max(200, "Supports condition too long");
10714
- var supportsAtRuleSchema = z20.object({
10637
+ var supportsConditionSchema = z19.string().min(1, "Supports condition is required").max(200, "Supports condition too long");
10638
+ var supportsAtRuleSchema = z19.object({
10715
10639
  id: ruleIdSchema,
10716
- type: z20.literal("supports"),
10640
+ type: z19.literal("supports"),
10717
10641
  condition: supportsConditionSchema,
10718
- rules: z20.array(nestedRuleSchema).min(1, "At least one rule is required")
10642
+ rules: z19.array(nestedRuleSchema).min(1, "At least one rule is required")
10719
10643
  });
10720
10644
  function containsBlockedAtRule(css) {
10721
10645
  return BLOCKED_AT_RULE_PATTERN.test(css);
10722
10646
  }
10723
- var rawCssSchema = z20.string().min(1, "CSS is required").max(5e3, "Raw CSS too long (max 5000 characters)").refine(
10647
+ var rawCssSchema = z19.string().min(1, "CSS is required").max(5e3, "Raw CSS too long (max 5000 characters)").refine(
10724
10648
  (css) => css.trim().startsWith("@"),
10725
10649
  { message: "Raw at-rule must start with @" }
10726
10650
  ).refine(
10727
10651
  (css) => !containsBlockedAtRule(css),
10728
10652
  { message: `Blocked at-rules: ${BLOCKED_AT_RULES.join(", ")}. Use typed at-rules or local assets instead.` }
10729
10653
  );
10730
- var rawAtRuleSchema = z20.object({
10654
+ var rawAtRuleSchema = z19.object({
10731
10655
  id: ruleIdSchema,
10732
- type: z20.literal("raw"),
10656
+ type: z19.literal("raw"),
10733
10657
  css: rawCssSchema
10734
10658
  });
10735
- var customCssAtRuleSchema = z20.discriminatedUnion("type", [
10659
+ var customCssAtRuleSchema = z19.discriminatedUnion("type", [
10736
10660
  keyframesAtRuleSchema,
10737
10661
  fontFaceAtRuleSchema,
10738
10662
  mediaAtRuleSchema,
10739
10663
  supportsAtRuleSchema,
10740
10664
  rawAtRuleSchema
10741
10665
  ]);
10742
- var customCssAtRulesSchema = z20.array(customCssAtRuleSchema).optional();
10666
+ var customCssAtRulesSchema = z19.array(customCssAtRuleSchema).optional();
10743
10667
 
10744
10668
  // ../theme-core/src/shared/componentStyles.ts
10745
- import { z as z21 } from "zod";
10746
- var componentBorderSchema = z21.object({
10747
- width: z21.enum(["none", "hairline", "thin", "medium", "thick"]).default("none"),
10748
- style: z21.enum(["solid", "dashed"]).default("solid"),
10749
- colorToken: z21.string().optional()
10669
+ import { z as z20 } from "zod";
10670
+ var componentBorderSchema = z20.object({
10671
+ width: z20.enum(["none", "hairline", "thin", "medium", "thick"]).default("none"),
10672
+ style: z20.enum(["solid", "dashed"]).default("solid"),
10673
+ colorToken: z20.string().optional()
10750
10674
  // defaults to "border" if not set
10751
10675
  });
10752
- var componentShadowSchema = z21.object({
10753
- elevation: z21.enum(["none", "sm", "md", "lg", "xl", "2xl"]).default("sm")
10676
+ var componentShadowSchema = z20.object({
10677
+ elevation: z20.enum(["none", "sm", "md", "lg", "xl", "2xl"]).default("sm")
10754
10678
  });
10755
10679
 
10756
10680
  // ../theme-core/src/schema.ts
10757
- var axesSchema = z22.object({
10758
- tone: z22.enum(["minimal", "classic", "bold"]),
10759
- energy: z22.enum(["calm", "vibrant"]),
10760
- density: z22.enum(["airy", "regular", "compact"]),
10761
- mediaBias: z22.enum(["text", "media", "mixed"]),
10762
- conversionBias: z22.enum(["low", "med", "high"]),
10763
- motion: z22.enum(["subtle", "standard", "expressive"])
10764
- });
10765
- var colourHexString = z22.string().regex(/^#([0-9A-Fa-f]{3}){1,2}$/);
10766
- var paletteColorSchema = z22.object({
10767
- name: z22.string().min(1),
10681
+ var axesSchema = z21.object({
10682
+ tone: z21.enum(["minimal", "classic", "bold"]),
10683
+ energy: z21.enum(["calm", "vibrant"]),
10684
+ density: z21.enum(["airy", "regular", "compact"]),
10685
+ mediaBias: z21.enum(["text", "media", "mixed"]),
10686
+ conversionBias: z21.enum(["low", "med", "high"]),
10687
+ motion: z21.enum(["subtle", "standard", "expressive"])
10688
+ });
10689
+ var colourHexString = z21.string().regex(/^#([0-9A-Fa-f]{3}){1,2}$/);
10690
+ var paletteColorSchema = z21.object({
10691
+ name: z21.string().min(1),
10768
10692
  hex: colourHexString
10769
10693
  });
10770
- var paletteMetaSchema = z22.object({
10771
- mode: z22.enum(["light", "dark"])
10694
+ var paletteMetaSchema = z21.object({
10695
+ mode: z21.enum(["light", "dark"])
10772
10696
  });
10773
- var paletteSchema = z22.object({
10774
- colors: z22.array(paletteColorSchema),
10697
+ var paletteSchema = z21.object({
10698
+ colors: z21.array(paletteColorSchema),
10775
10699
  meta: paletteMetaSchema
10776
10700
  });
10777
- var typographyStyleSchema = z22.object({
10778
- family: z22.string().min(1),
10779
- weight: z22.enum(["light", "regular", "medium", "semibold", "bold"]),
10780
- letterSpacing: z22.enum(["tight", "normal", "loose"]),
10781
- lineHeight: z22.enum(["normal", "relaxed", "loose"])
10701
+ var typographyStyleSchema = z21.object({
10702
+ family: z21.string().min(1),
10703
+ weight: z21.enum(["light", "regular", "medium", "semibold", "bold"]),
10704
+ letterSpacing: z21.enum(["tight", "normal", "loose"]),
10705
+ lineHeight: z21.enum(["normal", "relaxed", "loose"])
10782
10706
  });
10783
10707
  var bodyTypographyStyleSchema = typographyStyleSchema.extend({
10784
- size: z22.enum(["md", "lg", "xl"])
10708
+ size: z21.enum(["md", "lg", "xl"])
10785
10709
  });
10786
- var headingSizeSchema = z22.enum(["xs", "sm", "md", "lg", "xl", "2xl"]);
10787
- var headingTypographyOverridesSchema = z22.object({
10788
- weight: z22.enum(["light", "regular", "medium", "semibold", "bold"]).nullable().optional(),
10789
- letterSpacing: z22.enum(["tight", "normal", "loose"]).nullable().optional(),
10710
+ var headingSizeSchema = z21.enum(["xs", "sm", "md", "lg", "xl", "2xl"]);
10711
+ var headingTypographyOverridesSchema = z21.object({
10712
+ weight: z21.enum(["light", "regular", "medium", "semibold", "bold"]).nullable().optional(),
10713
+ letterSpacing: z21.enum(["tight", "normal", "loose"]).nullable().optional(),
10790
10714
  size: headingSizeSchema.nullable().optional(),
10791
- lineHeight: z22.enum(["normal", "relaxed", "loose"]).nullable().optional(),
10792
- italic: z22.boolean().nullable().optional(),
10793
- colorToken: z22.string().min(1).nullable().optional()
10715
+ lineHeight: z21.enum(["normal", "relaxed", "loose"]).nullable().optional(),
10716
+ italic: z21.boolean().nullable().optional(),
10717
+ colorToken: z21.string().min(1).nullable().optional()
10794
10718
  // Palette token name for heading color
10795
10719
  });
10796
10720
  var headingTypographyStyleSchema = typographyStyleSchema.extend({
10797
- case: z22.enum(["uppercase", "normal", "smallCaps"]).nullable(),
10798
- italic: z22.boolean().nullable(),
10799
- colorToken: z22.string().min(1).nullable().optional()
10721
+ case: z21.enum(["uppercase", "normal", "smallCaps"]).nullable(),
10722
+ italic: z21.boolean().nullable(),
10723
+ colorToken: z21.string().min(1).nullable().optional()
10800
10724
  // Palette token name for heading color
10801
10725
  });
10802
- var proseLinkUnderlineStyleSchema = z22.enum(["solid", "dotted", "dashed"]);
10803
- var proseLinkUnderlineThicknessSchema = z22.enum(["auto", "fromFont", "thin", "medium", "thick"]);
10804
- var proseLinkUnderlineOffsetSchema = z22.enum(["auto", "tight", "normal", "loose"]);
10805
- var proseLinkStyleSchema = z22.object({
10806
- colorToken: z22.string().min(1).optional(),
10807
- hoverColorToken: z22.string().min(1).optional(),
10808
- underline: z22.boolean().optional(),
10809
- decorationColorToken: z22.string().min(1).optional(),
10810
- hoverDecorationColorToken: z22.string().min(1).optional(),
10726
+ var proseLinkUnderlineStyleSchema = z21.enum(["solid", "dotted", "dashed"]);
10727
+ var proseLinkUnderlineThicknessSchema = z21.enum(["auto", "fromFont", "thin", "medium", "thick"]);
10728
+ var proseLinkUnderlineOffsetSchema = z21.enum(["auto", "tight", "normal", "loose"]);
10729
+ var proseLinkStyleSchema = z21.object({
10730
+ colorToken: z21.string().min(1).optional(),
10731
+ hoverColorToken: z21.string().min(1).optional(),
10732
+ underline: z21.boolean().optional(),
10733
+ decorationColorToken: z21.string().min(1).optional(),
10734
+ hoverDecorationColorToken: z21.string().min(1).optional(),
10811
10735
  underlineStyle: proseLinkUnderlineStyleSchema.optional(),
10812
10736
  underlineThickness: proseLinkUnderlineThicknessSchema.optional(),
10813
10737
  underlineOffset: proseLinkUnderlineOffsetSchema.optional()
10814
10738
  });
10815
- var semanticSpacingSchema = z22.enum([
10739
+ var semanticSpacingSchema = z21.enum([
10816
10740
  "none",
10817
10741
  "compact",
10818
10742
  "cozy",
@@ -10820,62 +10744,62 @@ var semanticSpacingSchema = z22.enum([
10820
10744
  "comfortable",
10821
10745
  "spacious"
10822
10746
  ]);
10823
- var boxRoundedSchema = z22.enum(["none", "sm", "md", "lg", "xl", "2xl", "full"]);
10824
- var boxBackgroundOverlaySchema = z22.object({
10825
- type: z22.enum(["none", "color", "gradient"]).nullable().optional(),
10826
- color: z22.string().nullable().optional(),
10827
- gradient: z22.string().nullable().optional(),
10828
- opacity: z22.number().min(0).max(1).nullable().optional()
10829
- });
10830
- var boxBackgroundSchema = z22.object({
10831
- type: z22.enum(["color", "gradient", "image"]).optional(),
10832
- color: z22.string().nullable().optional(),
10833
- gradient: z22.string().nullable().optional(),
10747
+ var boxRoundedSchema = z21.enum(["none", "sm", "md", "lg", "xl", "2xl", "full"]);
10748
+ var boxBackgroundOverlaySchema = z21.object({
10749
+ type: z21.enum(["none", "color", "gradient"]).nullable().optional(),
10750
+ color: z21.string().nullable().optional(),
10751
+ gradient: z21.string().nullable().optional(),
10752
+ opacity: z21.number().min(0).max(1).nullable().optional()
10753
+ });
10754
+ var boxBackgroundSchema = z21.object({
10755
+ type: z21.enum(["color", "gradient", "image"]).optional(),
10756
+ color: z21.string().nullable().optional(),
10757
+ gradient: z21.string().nullable().optional(),
10834
10758
  image: mediaSchema.nullable().optional(),
10835
- objectFit: z22.enum(["fill", "fit", "original", "custom"]).nullable().optional(),
10836
- scale: z22.string().nullable().optional(),
10837
- position: z22.string().nullable().optional(),
10838
- opacity: z22.number().min(0).max(1).nullable().optional(),
10759
+ objectFit: z21.enum(["fill", "fit", "original", "custom"]).nullable().optional(),
10760
+ scale: z21.string().nullable().optional(),
10761
+ position: z21.string().nullable().optional(),
10762
+ opacity: z21.number().min(0).max(1).nullable().optional(),
10839
10763
  overlay: boxBackgroundOverlaySchema.nullable().optional(),
10840
- textColor: z22.string().nullable().optional(),
10841
- headingColor: z22.string().nullable().optional()
10764
+ textColor: z21.string().nullable().optional(),
10765
+ headingColor: z21.string().nullable().optional()
10842
10766
  });
10843
- var sectionStylesOverrideSchema = z22.object({
10767
+ var sectionStylesOverrideSchema = z21.object({
10844
10768
  background: boxBackgroundSchema.nullable().optional(),
10845
10769
  spacing: semanticSpacingSchema.nullable().optional(),
10846
- minHeight: z22.enum(["none", "hero", "immersive"]).nullable().optional()
10770
+ minHeight: z21.enum(["none", "hero", "immersive"]).nullable().optional()
10847
10771
  });
10848
- var containerStylesOverrideSchema = z22.object({
10772
+ var containerStylesOverrideSchema = z21.object({
10849
10773
  background: boxBackgroundSchema.nullable().optional(),
10850
10774
  spacing: semanticSpacingSchema.nullable().optional(),
10851
- raised: z22.boolean().nullable().optional(),
10775
+ raised: z21.boolean().nullable().optional(),
10852
10776
  rounded: boxRoundedSchema.nullable().optional(),
10853
- fullWidth: z22.boolean().nullable().optional()
10777
+ fullWidth: z21.boolean().nullable().optional()
10854
10778
  });
10855
- var cardBorderOverrideSchema = z22.object({
10856
- enabled: z22.boolean().nullable().optional(),
10857
- width: z22.enum(["none", "1", "2", "3"]).nullable().optional(),
10858
- colorToken: z22.string().nullable().optional()
10779
+ var cardBorderOverrideSchema = z21.object({
10780
+ enabled: z21.boolean().nullable().optional(),
10781
+ width: z21.enum(["none", "1", "2", "3"]).nullable().optional(),
10782
+ colorToken: z21.string().nullable().optional()
10859
10783
  });
10860
- var cardStylesOverrideSchema = z22.object({
10784
+ var cardStylesOverrideSchema = z21.object({
10861
10785
  background: boxBackgroundSchema.nullable().optional(),
10862
10786
  border: cardBorderOverrideSchema.nullable().optional(),
10863
10787
  spacing: semanticSpacingSchema.nullable().optional(),
10864
- raised: z22.boolean().nullable().optional(),
10788
+ raised: z21.boolean().nullable().optional(),
10865
10789
  rounded: boxRoundedSchema.nullable().optional()
10866
10790
  });
10867
- var blockStyleOverridesSchema = z22.object({
10791
+ var blockStyleOverridesSchema = z21.object({
10868
10792
  sectionStyles: sectionStylesOverrideSchema.nullable().optional(),
10869
10793
  containerStyles: containerStylesOverrideSchema.nullable().optional(),
10870
10794
  cardStyles: cardStylesOverrideSchema.nullable().optional()
10871
10795
  });
10872
- var blockThemeOverrideSchema = z22.object({
10873
- typography: z22.object({
10796
+ var blockThemeOverrideSchema = z21.object({
10797
+ typography: z21.object({
10874
10798
  proseLinkStyle: proseLinkStyleSchema.optional()
10875
10799
  }).optional(),
10876
10800
  styles: blockStyleOverridesSchema.optional()
10877
10801
  });
10878
- var typographyScaleSchema = z22.enum([
10802
+ var typographyScaleSchema = z21.enum([
10879
10803
  // New intuitive names
10880
10804
  "compact",
10881
10805
  // ratio 1.2 (was minorThird)
@@ -10888,9 +10812,9 @@ var typographyScaleSchema = z22.enum([
10888
10812
  "majorThird",
10889
10813
  "perfectFourth"
10890
10814
  ]);
10891
- var typographySchema = z22.object({
10815
+ var typographySchema = z21.object({
10892
10816
  body: bodyTypographyStyleSchema,
10893
- headings: z22.object({
10817
+ headings: z21.object({
10894
10818
  default: headingTypographyStyleSchema,
10895
10819
  h1: headingTypographyOverridesSchema,
10896
10820
  h2: headingTypographyOverridesSchema,
@@ -10903,41 +10827,41 @@ var typographySchema = z22.object({
10903
10827
  scale: typographyScaleSchema,
10904
10828
  proseLinkStyle: proseLinkStyleSchema.optional()
10905
10829
  });
10906
- var spaceSchema = z22.enum(["comfortable", "standard", "dense"]);
10907
- var corners = z22.enum(["square", "soft", "rounded", "pill"]);
10908
- var shadow = z22.object({
10909
- elevation: z22.enum(["none", "low", "medium", "high"]),
10910
- softness: z22.enum(["crisp", "soft", "hard"]).nullable(),
10911
- position: z22.enum(["bottom", "bottom-right"]).default("bottom")
10830
+ var spaceSchema = z21.enum(["comfortable", "standard", "dense"]);
10831
+ var corners = z21.enum(["square", "soft", "rounded", "pill"]);
10832
+ var shadow = z21.object({
10833
+ elevation: z21.enum(["none", "low", "medium", "high"]),
10834
+ softness: z21.enum(["crisp", "soft", "hard"]).nullable(),
10835
+ position: z21.enum(["bottom", "bottom-right"]).default("bottom")
10912
10836
  });
10913
- var border = z22.object({
10914
- width: z22.enum(["none", "hairline", "thin", "thick"]),
10915
- style: z22.enum(["solid", "dashed"])
10837
+ var border = z21.object({
10838
+ width: z21.enum(["none", "hairline", "thin", "thick"]),
10839
+ style: z21.enum(["solid", "dashed"])
10916
10840
  });
10917
- var motion = z22.object({
10918
- level: z22.enum(["off", "low", "medium", "high"]),
10919
- easing: z22.enum(["standard", "snappy", "gentle"]).nullable()
10841
+ var motion = z21.object({
10842
+ level: z21.enum(["off", "low", "medium", "high"]),
10843
+ easing: z21.enum(["standard", "snappy", "gentle"]).nullable()
10920
10844
  });
10921
- var buttonStyle = z22.object({
10845
+ var buttonStyle = z21.object({
10922
10846
  shape: corners
10923
10847
  // Used for --radius-control CSS variable
10924
10848
  });
10925
- var cardStyle = z22.object({
10926
- elevation: z22.enum(["none", "low", "medium", "high"]),
10927
- border: z22.enum(["none", "subtle", "defined"]),
10849
+ var cardStyle = z21.object({
10850
+ elevation: z21.enum(["none", "low", "medium", "high"]),
10851
+ border: z21.enum(["none", "subtle", "defined"]),
10928
10852
  shape: corners,
10929
- headerStyle: z22.enum(["plain", "accentBar", "subtleBg"]).nullable(),
10930
- mediaTreatment: z22.enum(["square", "rounded", "bleed"]).nullable()
10853
+ headerStyle: z21.enum(["plain", "accentBar", "subtleBg"]).nullable(),
10854
+ mediaTreatment: z21.enum(["square", "rounded", "bleed"]).nullable()
10931
10855
  });
10932
- var inputStyle = z22.object({
10856
+ var inputStyle = z21.object({
10933
10857
  shape: corners,
10934
- border: z22.enum(["subtle", "defined", "underline"]),
10935
- focus: z22.enum(["glow", "ring", "underline"]),
10936
- label: z22.enum(["inside", "above"])
10858
+ border: z21.enum(["subtle", "defined", "underline"]),
10859
+ focus: z21.enum(["glow", "ring", "underline"]),
10860
+ label: z21.enum(["inside", "above"])
10937
10861
  });
10938
- var headerVariant = z22.enum(["classic", "centered", "transparent", "floating", "editorial"]);
10939
- var headerPositioning = z22.enum(["static", "sticky", "fixed"]);
10940
- var headerNavStyle = z22.enum([
10862
+ var headerVariant = z21.enum(["classic", "centered", "transparent", "floating", "editorial"]);
10863
+ var headerPositioning = z21.enum(["static", "sticky", "fixed"]);
10864
+ var headerNavStyle = z21.enum([
10941
10865
  "minimal",
10942
10866
  "underline",
10943
10867
  "underline-grow",
@@ -10946,82 +10870,82 @@ var headerNavStyle = z22.enum([
10946
10870
  "frosted",
10947
10871
  "solid"
10948
10872
  ]);
10949
- var navFontWeight = z22.enum(["regular", "medium", "semibold", "bold"]);
10950
- var headerMaxWidth = z22.enum(["container", "full"]);
10951
- var headerContainerSchema = z22.object({
10952
- rounded: z22.enum(["none", "sm", "md", "lg", "xl", "2xl"]).default("xl"),
10953
- border: z22.boolean().default(true),
10954
- shadow: z22.boolean().default(true),
10955
- padding: z22.enum(["sm", "md", "lg"]).default("md"),
10956
- tint: z22.string().nullable().optional(),
10957
- opacity: z22.number().min(0).max(1).default(0.12)
10873
+ var navFontWeight = z21.enum(["regular", "medium", "semibold", "bold"]);
10874
+ var headerMaxWidth = z21.enum(["container", "full"]);
10875
+ var headerContainerSchema = z21.object({
10876
+ rounded: z21.enum(["none", "sm", "md", "lg", "xl", "2xl"]).default("xl"),
10877
+ border: z21.boolean().default(true),
10878
+ shadow: z21.boolean().default(true),
10879
+ padding: z21.enum(["sm", "md", "lg"]).default("md"),
10880
+ tint: z21.string().nullable().optional(),
10881
+ opacity: z21.number().min(0).max(1).default(0.12)
10958
10882
  }).optional();
10959
10883
  var headerBorderSchema = componentBorderSchema.extend({
10960
- position: z22.enum(["bottom", "top", "both", "none"]).default("bottom")
10884
+ position: z21.enum(["bottom", "top", "both", "none"]).default("bottom")
10961
10885
  }).optional();
10962
- var logoStyleSchema = z22.object({
10963
- fontFamily: z22.enum(["heading", "body"]).default("heading"),
10964
- letterSpacing: z22.enum(["normal", "wide", "wider", "widest"]).default("normal"),
10965
- gradient: z22.boolean().default(false)
10886
+ var logoStyleSchema = z21.object({
10887
+ fontFamily: z21.enum(["heading", "body"]).default("heading"),
10888
+ letterSpacing: z21.enum(["normal", "wide", "wider", "widest"]).default("normal"),
10889
+ gradient: z21.boolean().default(false)
10966
10890
  }).optional();
10967
- var headerLogoTextSchema = z22.object({
10968
- mobileWrapLines: z22.union([z22.literal(1), z22.literal(2)]).optional(),
10969
- mobileMaxWidth: z22.enum(["xs", "sm", "md"]).optional(),
10970
- hideOnShrink: z22.boolean().optional()
10891
+ var headerLogoTextSchema = z21.object({
10892
+ mobileWrapLines: z21.union([z21.literal(1), z21.literal(2)]).optional(),
10893
+ mobileMaxWidth: z21.enum(["xs", "sm", "md"]).optional(),
10894
+ hideOnShrink: z21.boolean().optional()
10971
10895
  }).optional();
10972
- var navEffectsSchema = z22.object({
10973
- underlineGradient: z22.boolean().default(false),
10974
- glow: z22.boolean().default(false),
10975
- glowColor: z22.string().optional(),
10976
- neumorphic: z22.boolean().default(false)
10896
+ var navEffectsSchema = z21.object({
10897
+ underlineGradient: z21.boolean().default(false),
10898
+ glow: z21.boolean().default(false),
10899
+ glowColor: z21.string().optional(),
10900
+ neumorphic: z21.boolean().default(false)
10977
10901
  }).optional();
10978
- var dropdownStyleSchema = z22.object({
10902
+ var dropdownStyleSchema = z21.object({
10979
10903
  // Container styling
10980
- background: z22.string().default("surface"),
10904
+ background: z21.string().default("surface"),
10981
10905
  // color token
10982
- textColor: z22.string().default("text"),
10906
+ textColor: z21.string().default("text"),
10983
10907
  // color token
10984
- borderColor: z22.string().nullable().default("border"),
10908
+ borderColor: z21.string().nullable().default("border"),
10985
10909
  // null = no border
10986
- shadow: z22.enum(["none", "sm", "md", "lg"]).default("md"),
10987
- borderRadius: z22.enum(["none", "sm", "md", "lg"]).default("md"),
10910
+ shadow: z21.enum(["none", "sm", "md", "lg"]).default("md"),
10911
+ borderRadius: z21.enum(["none", "sm", "md", "lg"]).default("md"),
10988
10912
  // Link hover states (explicit control)
10989
- hoverBackground: z22.string().nullable().optional(),
10913
+ hoverBackground: z21.string().nullable().optional(),
10990
10914
  // color token, null = transparent
10991
- hoverTextColor: z22.string().nullable().optional(),
10915
+ hoverTextColor: z21.string().nullable().optional(),
10992
10916
  // color token, null = inherit
10993
10917
  // Typography
10994
- textTransform: z22.enum(["none", "uppercase", "capitalize"]).default("none"),
10995
- letterSpacing: z22.enum(["normal", "wide", "wider"]).default("normal"),
10996
- fontWeight: z22.enum(["regular", "medium", "semibold", "bold"]).optional(),
10918
+ textTransform: z21.enum(["none", "uppercase", "capitalize"]).default("none"),
10919
+ letterSpacing: z21.enum(["normal", "wide", "wider"]).default("normal"),
10920
+ fontWeight: z21.enum(["regular", "medium", "semibold", "bold"]).optional(),
10997
10921
  // optional = inherit from navWeight
10998
- textSize: z22.enum(["xs", "sm", "base", "lg"]).optional()
10922
+ textSize: z21.enum(["xs", "sm", "base", "lg"]).optional()
10999
10923
  // optional = no override (browser default)
11000
10924
  }).optional();
11001
- var headerCtaGapSchema = z22.enum(["none", "tight", "compact", "default", "relaxed", "spacious"]);
11002
- var navContainerSchema = z22.object({
11003
- type: z22.enum(["none", "pill", "glass"]).default("none"),
11004
- tint: z22.string().nullable().optional(),
11005
- opacity: z22.number().min(0).max(1).default(0.15)
10925
+ var headerCtaGapSchema = z21.enum(["none", "tight", "compact", "default", "relaxed", "spacious"]);
10926
+ var navContainerSchema = z21.object({
10927
+ type: z21.enum(["none", "pill", "glass"]).default("none"),
10928
+ tint: z21.string().nullable().optional(),
10929
+ opacity: z21.number().min(0).max(1).default(0.15)
11006
10930
  }).default({ type: "none", tint: null, opacity: 0.15 });
11007
- var headerBackgroundSchema = z22.object({
11008
- type: z22.enum(["color", "gradient", "image"]),
11009
- color: z22.string().nullable().optional(),
10931
+ var headerBackgroundSchema = z21.object({
10932
+ type: z21.enum(["color", "gradient", "image"]),
10933
+ color: z21.string().nullable().optional(),
11010
10934
  gradient: gradientConfigSchema.nullable().optional(),
11011
10935
  image: mediaSchema.nullable().optional(),
11012
- textColor: z22.string().nullable().optional()
10936
+ textColor: z21.string().nullable().optional()
11013
10937
  });
11014
- var headerSchema = z22.object({
10938
+ var headerSchema = z21.object({
11015
10939
  variant: headerVariant,
11016
10940
  positioning: headerPositioning,
11017
- shrinkOnScroll: z22.boolean(),
10941
+ shrinkOnScroll: z21.boolean(),
11018
10942
  maxWidth: headerMaxWidth,
11019
10943
  logoOverride: mediaSchema.nullable().optional(),
11020
10944
  background: headerBackgroundSchema.default({ type: "color", color: "surface" }),
11021
- textColor: z22.string().nullable().optional(),
10945
+ textColor: z21.string().nullable().optional(),
11022
10946
  // Site title and general header text
11023
10947
  navStyle: headerNavStyle,
11024
- navColor: z22.string().nullable().optional(),
10948
+ navColor: z21.string().nullable().optional(),
11025
10949
  // Nav links (inherits textColor if not set)
11026
10950
  navWeight: navFontWeight.default("medium"),
11027
10951
  // New fields for header system enhancement
@@ -11040,50 +10964,50 @@ var headerSchema = z22.object({
11040
10964
  // Dropdown menu styling (nav dropdowns and mobile drawer)
11041
10965
  dropdownStyle: dropdownStyleSchema
11042
10966
  });
11043
- var footerVariant = z22.enum(["simple", "columns", "split"]);
11044
- var footerMaxWidth = z22.enum(["container", "full"]);
11045
- var footerMode = z22.enum(["default", "blocks", "default+blocks", "none"]);
11046
- var footerNavLayoutMode = z22.enum(["stack", "inline", "inline-wrap"]);
11047
- var footerNavLayoutAlign = z22.enum(["start", "center", "end", "space-between"]);
11048
- var footerSpacing = z22.enum(["none", "tight", "compact", "default", "relaxed", "spacious"]);
11049
- var footerLogoPlacement = z22.enum(["left", "right", "above", "below"]);
11050
- var footerLogoSize = z22.enum(["sm", "md", "lg", "xl"]);
11051
- var footerLogoMaxHeight = z22.enum(["sm", "md", "lg", "xl"]);
11052
- var footerBottomTextLinkStyleSchema = z22.object({
11053
- colorToken: z22.string().optional(),
11054
- hoverColorToken: z22.string().nullable().optional(),
11055
- decorationColorToken: z22.string().nullable().optional(),
11056
- underline: z22.boolean().optional()
11057
- });
11058
- var footerBottomBarSchema = z22.object({
11059
- enabled: z22.boolean().optional(),
11060
- fullBleed: z22.boolean().optional(),
10967
+ var footerVariant = z21.enum(["simple", "columns", "split"]);
10968
+ var footerMaxWidth = z21.enum(["container", "full"]);
10969
+ var footerMode = z21.enum(["default", "blocks", "default+blocks", "none"]);
10970
+ var footerNavLayoutMode = z21.enum(["stack", "inline", "inline-wrap"]);
10971
+ var footerNavLayoutAlign = z21.enum(["start", "center", "end", "space-between"]);
10972
+ var footerSpacing = z21.enum(["none", "tight", "compact", "default", "relaxed", "spacious"]);
10973
+ var footerLogoPlacement = z21.enum(["left", "right", "above", "below"]);
10974
+ var footerLogoSize = z21.enum(["sm", "md", "lg", "xl"]);
10975
+ var footerLogoMaxHeight = z21.enum(["sm", "md", "lg", "xl"]);
10976
+ var footerBottomTextLinkStyleSchema = z21.object({
10977
+ colorToken: z21.string().optional(),
10978
+ hoverColorToken: z21.string().nullable().optional(),
10979
+ decorationColorToken: z21.string().nullable().optional(),
10980
+ underline: z21.boolean().optional()
10981
+ });
10982
+ var footerBottomBarSchema = z21.object({
10983
+ enabled: z21.boolean().optional(),
10984
+ fullBleed: z21.boolean().optional(),
11061
10985
  background: headerBackgroundSchema.optional(),
11062
- textColor: z22.string().nullable().optional(),
11063
- textAlign: z22.enum(["left", "center", "right"]).optional(),
10986
+ textColor: z21.string().nullable().optional(),
10987
+ textAlign: z21.enum(["left", "center", "right"]).optional(),
11064
10988
  paddingY: footerSpacing.optional(),
11065
10989
  paddingX: footerSpacing.optional(),
11066
- borderTop: z22.object({
11067
- colorToken: z22.string().nullable().optional(),
11068
- width: z22.enum(["none", "thin", "medium", "thick"]).optional()
10990
+ borderTop: z21.object({
10991
+ colorToken: z21.string().nullable().optional(),
10992
+ width: z21.enum(["none", "thin", "medium", "thick"]).optional()
11069
10993
  }).optional()
11070
10994
  });
11071
- var footerNavLayoutSchema = z22.object({
10995
+ var footerNavLayoutSchema = z21.object({
11072
10996
  layout: footerNavLayoutMode.optional(),
11073
10997
  align: footerNavLayoutAlign.optional(),
11074
10998
  gapX: footerSpacing.optional(),
11075
10999
  gapY: footerSpacing.optional(),
11076
- columns: z22.number().int().min(1).max(6).optional()
11000
+ columns: z21.number().int().min(1).max(6).optional()
11077
11001
  });
11078
- var footerLogoSchema = z22.object({
11079
- showLogo: z22.boolean().default(true),
11080
- showLogoText: z22.boolean().optional(),
11002
+ var footerLogoSchema = z21.object({
11003
+ showLogo: z21.boolean().default(true),
11004
+ showLogoText: z21.boolean().optional(),
11081
11005
  placement: footerLogoPlacement.optional(),
11082
11006
  size: footerLogoSize.optional(),
11083
11007
  maxHeight: footerLogoMaxHeight.optional(),
11084
- align: z22.enum(["start", "center", "end"]).optional()
11008
+ align: z21.enum(["start", "center", "end"]).optional()
11085
11009
  });
11086
- var footerSchema = z22.object({
11010
+ var footerSchema = z21.object({
11087
11011
  /**
11088
11012
  * SDK-only footer rendering mode.
11089
11013
  *
@@ -11092,11 +11016,11 @@ var footerSchema = z22.object({
11092
11016
  mode: footerMode.optional(),
11093
11017
  variant: footerVariant,
11094
11018
  maxWidth: footerMaxWidth,
11095
- showLogoText: z22.boolean().optional(),
11019
+ showLogoText: z21.boolean().optional(),
11096
11020
  background: headerBackgroundSchema.default({ type: "color", color: "surface" }),
11097
11021
  // Footer nav styling (independent from header)
11098
11022
  navStyle: headerNavStyle.default("minimal"),
11099
- navColor: z22.string().nullable().optional(),
11023
+ navColor: z21.string().nullable().optional(),
11100
11024
  navWeight: navFontWeight.default("medium"),
11101
11025
  // Full nav link customization (overrides navStyle if set)
11102
11026
  navLinkStyle: navLinkStyleSchema.optional(),
@@ -11107,15 +11031,15 @@ var footerSchema = z22.object({
11107
11031
  logo: footerLogoSchema.optional(),
11108
11032
  bottomBar: footerBottomBarSchema.optional()
11109
11033
  });
11110
- var containerPaddingPresetSchema = z22.enum(["tight", "compact", "default", "relaxed"]);
11111
- var layoutSchema = z22.object({
11112
- containerPadding: z22.object({
11034
+ var containerPaddingPresetSchema = z21.enum(["tight", "compact", "default", "relaxed"]);
11035
+ var layoutSchema = z21.object({
11036
+ containerPadding: z21.object({
11113
11037
  mobile: containerPaddingPresetSchema.optional(),
11114
11038
  tablet: containerPaddingPresetSchema.optional(),
11115
11039
  desktop: containerPaddingPresetSchema.optional()
11116
11040
  }).optional()
11117
11041
  }).optional();
11118
- var heroTypographySizeSchema = z22.enum([
11042
+ var heroTypographySizeSchema = z21.enum([
11119
11043
  "sm",
11120
11044
  "base",
11121
11045
  "lg",
@@ -11126,14 +11050,14 @@ var heroTypographySizeSchema = z22.enum([
11126
11050
  "5xl",
11127
11051
  "6xl"
11128
11052
  ]);
11129
- var heroTypographyLineHeightSchema = z22.enum(["tight", "snug", "normal", "relaxed"]);
11130
- var heroResponsiveTypographySchema = z22.object({
11053
+ var heroTypographyLineHeightSchema = z21.enum(["tight", "snug", "normal", "relaxed"]);
11054
+ var heroResponsiveTypographySchema = z21.object({
11131
11055
  headlineSize: heroTypographySizeSchema.optional(),
11132
11056
  headlineLineHeight: heroTypographyLineHeightSchema.optional(),
11133
11057
  subheadlineSize: heroTypographySizeSchema.optional(),
11134
11058
  subheadlineLineHeight: heroTypographyLineHeightSchema.optional()
11135
11059
  });
11136
- var heroTypographySchema = z22.object({
11060
+ var heroTypographySchema = z21.object({
11137
11061
  headlineSize: heroTypographySizeSchema.optional(),
11138
11062
  headlineLineHeight: heroTypographyLineHeightSchema.optional(),
11139
11063
  subheadlineSize: heroTypographySizeSchema.optional(),
@@ -11142,24 +11066,24 @@ var heroTypographySchema = z22.object({
11142
11066
  microHeadlineLineHeight: heroTypographyLineHeightSchema.optional(),
11143
11067
  microSubheadlineSize: heroTypographySizeSchema.optional(),
11144
11068
  microSubheadlineLineHeight: heroTypographyLineHeightSchema.optional(),
11145
- responsive: z22.object({
11069
+ responsive: z21.object({
11146
11070
  tablet: heroResponsiveTypographySchema.optional(),
11147
11071
  mobile: heroResponsiveTypographySchema.optional()
11148
11072
  }).optional()
11149
11073
  });
11150
- var heroSchema = z22.object({
11074
+ var heroSchema = z21.object({
11151
11075
  typography: heroTypographySchema.optional()
11152
11076
  }).optional();
11153
- var gradientsSchema = z22.object({
11154
- button: z22.string().min(1).nullable().optional(),
11155
- hero: z22.string().min(1).nullable().optional(),
11156
- background: z22.string().min(1).nullable().optional()
11157
- });
11158
- var themeSchema = z22.object({
11159
- name: z22.string().min(1).max(30),
11160
- description: z22.string().min(1).max(400),
11161
- rationale: z22.string().min(1).max(400),
11162
- siteStyleId: z22.string().min(1).transform((value) => asSiteStyleId(value)).optional(),
11077
+ var gradientsSchema = z21.object({
11078
+ button: z21.string().min(1).nullable().optional(),
11079
+ hero: z21.string().min(1).nullable().optional(),
11080
+ background: z21.string().min(1).nullable().optional()
11081
+ });
11082
+ var themeSchema = z21.object({
11083
+ name: z21.string().min(1).max(30),
11084
+ description: z21.string().min(1).max(400),
11085
+ rationale: z21.string().min(1).max(400),
11086
+ siteStyleId: z21.string().min(1).transform((value) => asSiteStyleId(value)).optional(),
11163
11087
  axes: axesSchema,
11164
11088
  palette: paletteSchema,
11165
11089
  typography: typographySchema,
@@ -11186,16 +11110,16 @@ var themeSchema = z22.object({
11186
11110
  // Block-specific customization (Tier 3)
11187
11111
  // blockCustomVars: Per-block CSS variable overrides as bare values
11188
11112
  // Example: { "event-registration": { "--step-color": "#6d28d9" } }
11189
- blockCustomVars: z22.record(
11190
- z22.string(),
11113
+ blockCustomVars: z21.record(
11114
+ z21.string(),
11191
11115
  // block kind (matches data-block attribute)
11192
- z22.record(z22.string(), z22.string())
11116
+ z21.record(z21.string(), z21.string())
11193
11117
  // { '--var-name': 'value' }
11194
11118
  ).optional(),
11195
11119
  // Structured block-kind theme overrides (v1: typography prose-link style only)
11196
11120
  // Keyed by block kind (usually data-block value like "hero"; "block.hero" also accepted)
11197
- blockOverrides: z22.record(
11198
- z22.string(),
11121
+ blockOverrides: z21.record(
11122
+ z21.string(),
11199
11123
  blockThemeOverrideSchema
11200
11124
  ).optional(),
11201
11125
  // Structured custom CSS rules
@@ -11231,11 +11155,11 @@ var themeSchema = z22.object({
11231
11155
  * }
11232
11156
  * ```
11233
11157
  */
11234
- styleGroups: z22.record(z22.string(), z22.array(z22.string())).optional()
11158
+ styleGroups: z21.record(z21.string(), z21.array(z21.string())).optional()
11235
11159
  });
11236
- var themesTurnSchema = z22.object({
11237
- message: z22.string().min(1),
11238
- themes: z22.array(themeSchema).length(3)
11160
+ var themesTurnSchema = z21.object({
11161
+ message: z21.string().min(1),
11162
+ themes: z21.array(themeSchema).length(3)
11239
11163
  });
11240
11164
 
11241
11165
  // ../theme-core/src/palette/variants/types.ts
@@ -11245,7 +11169,7 @@ function asPaletteVariantId(value) {
11245
11169
  }
11246
11170
  return value;
11247
11171
  }
11248
- var paletteVariantIdSchema = z23.string().min(1).transform((value) => asPaletteVariantId(value));
11172
+ var paletteVariantIdSchema = z22.string().min(1).transform((value) => asPaletteVariantId(value));
11249
11173
  var PALETTE_TOKEN_NAMES = [
11250
11174
  "primary",
11251
11175
  "primaryForeground",
@@ -11261,19 +11185,19 @@ var PALETTE_TOKEN_NAMES = [
11261
11185
  "text",
11262
11186
  "border"
11263
11187
  ];
11264
- var paletteTokenNameSchema = z23.enum(PALETTE_TOKEN_NAMES);
11188
+ var paletteTokenNameSchema = z22.enum(PALETTE_TOKEN_NAMES);
11265
11189
  var HEX_COLOR_REGEX = /^#[0-9a-f]{6}$/;
11266
- var hexColorSchema = z23.string().regex(HEX_COLOR_REGEX, "Hex must be #RRGGBB (lowercase)").transform((value) => value);
11190
+ var hexColorSchema = z22.string().regex(HEX_COLOR_REGEX, "Hex must be #RRGGBB (lowercase)").transform((value) => value);
11267
11191
  var variantPaletteColorSchema = paletteColorSchema.extend({
11268
11192
  name: paletteTokenNameSchema
11269
11193
  });
11270
- var paletteVariantSchema = z23.object({
11194
+ var paletteVariantSchema = z22.object({
11271
11195
  id: paletteVariantIdSchema,
11272
- name: z23.string().min(1),
11273
- description: z23.string().min(1),
11196
+ name: z22.string().min(1),
11197
+ description: z22.string().min(1),
11274
11198
  tags: styleTagsSchema,
11275
- mode: z23.enum(["light", "dark"]),
11276
- colors: z23.array(variantPaletteColorSchema).min(1)
11199
+ mode: z22.enum(["light", "dark"]),
11200
+ colors: z22.array(variantPaletteColorSchema).min(1)
11277
11201
  });
11278
11202
  function definePaletteVariant(input) {
11279
11203
  return {
@@ -11285,7 +11209,7 @@ function definePaletteVariant(input) {
11285
11209
  colors: input.colors
11286
11210
  };
11287
11211
  }
11288
- var paletteOverridesSchema = z23.object({
11212
+ var paletteOverridesSchema = z22.object({
11289
11213
  primary: hexColorSchema.optional(),
11290
11214
  primaryForeground: hexColorSchema.optional(),
11291
11215
  secondary: hexColorSchema.optional(),
@@ -11962,7 +11886,7 @@ var curatedSiteStylesById = new Map(
11962
11886
  );
11963
11887
 
11964
11888
  // ../theme-core/src/site-styles/designState.ts
11965
- import { z as z24 } from "zod";
11889
+ import { z as z23 } from "zod";
11966
11890
 
11967
11891
  // ../theme-core/src/site-styles/rawStyleFields.ts
11968
11892
  var themeV2RuntimeStyleFieldNames = [
@@ -11988,13 +11912,13 @@ var themeV2NormalEditorRawStyleFieldNameSet = new Set(
11988
11912
 
11989
11913
  // ../theme-core/src/site-styles/designState.ts
11990
11914
  var themeV2DesignStateSchemaVersion = 1;
11991
- var designResolutionPolicySchema = z24.enum(["generated", "user", "admin", "sdk"]);
11992
- var runtimeStyleFieldNameSchema = z24.enum(themeV2RuntimeStyleFieldNames);
11993
- var nonEmptyRuntimeStyleFieldNamesSchema = z24.array(runtimeStyleFieldNameSchema).min(1).transform((fields3) => [
11915
+ var designResolutionPolicySchema = z23.enum(["generated", "user", "admin", "sdk"]);
11916
+ var runtimeStyleFieldNameSchema = z23.enum(themeV2RuntimeStyleFieldNames);
11917
+ var nonEmptyRuntimeStyleFieldNamesSchema = z23.array(runtimeStyleFieldNameSchema).min(1).transform((fields3) => [
11994
11918
  fields3[0],
11995
11919
  ...fields3.slice(1)
11996
11920
  ]);
11997
- var heroLegibilityStrategySchema = z24.enum([
11921
+ var heroLegibilityStrategySchema = z23.enum([
11998
11922
  "none",
11999
11923
  "scrim-gradient",
12000
11924
  "solid-panel"
@@ -12016,66 +11940,66 @@ var userFlushTreatments = uniqueNonEmpty(
12016
11940
  var userFlushBleeds = uniqueNonEmpty(
12017
11941
  userDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "flush-panel").map((frame) => frame.bleed)
12018
11942
  );
12019
- var contentFrameIntentSchema = z24.discriminatedUnion("kind", [
12020
- z24.object({ kind: z24.literal("plain") }).strict(),
12021
- z24.object({
12022
- kind: z24.literal("panel"),
12023
- treatment: z24.enum(userPanelTreatments)
11943
+ var contentFrameIntentSchema = z23.discriminatedUnion("kind", [
11944
+ z23.object({ kind: z23.literal("plain") }).strict(),
11945
+ z23.object({
11946
+ kind: z23.literal("panel"),
11947
+ treatment: z23.enum(userPanelTreatments)
12024
11948
  }).strict(),
12025
- z24.object({
12026
- kind: z24.literal("flush-panel"),
12027
- treatment: z24.enum(userFlushTreatments),
12028
- bleed: z24.enum(userFlushBleeds)
11949
+ z23.object({
11950
+ kind: z23.literal("flush-panel"),
11951
+ treatment: z23.enum(userFlushTreatments),
11952
+ bleed: z23.enum(userFlushBleeds)
12029
11953
  }).strict()
12030
11954
  ]);
12031
- var blockDesignPlanSchema = z24.object({
12032
- blockId: z24.string().min(1).transform(asDesignBlockId),
12033
- blockKind: z24.string().min(1),
12034
- purpose: z24.string().min(1),
12035
- sectionSurface: z24.enum(userDesignOptionCatalog.sectionSurfaces),
11955
+ var blockDesignPlanSchema = z23.object({
11956
+ blockId: z23.string().min(1).transform(asDesignBlockId),
11957
+ blockKind: z23.string().min(1),
11958
+ purpose: z23.string().min(1),
11959
+ sectionSurface: z23.enum(userDesignOptionCatalog.sectionSurfaces),
12036
11960
  contentFrame: contentFrameIntentSchema,
12037
- itemSurface: z24.enum(userDesignOptionCatalog.itemSurfaces),
12038
- transitionAfter: z24.enum(userDesignOptionCatalog.transitions),
12039
- emphasis: z24.enum(userDesignOptionCatalog.emphases),
11961
+ itemSurface: z23.enum(userDesignOptionCatalog.itemSurfaces),
11962
+ transitionAfter: z23.enum(userDesignOptionCatalog.transitions),
11963
+ emphasis: z23.enum(userDesignOptionCatalog.emphases),
12040
11964
  heroLegibility: heroLegibilityStrategySchema.optional()
12041
11965
  }).strict();
12042
- var styleAuthoritySchema = z24.discriminatedUnion("kind", [
12043
- z24.object({
12044
- kind: z24.literal("theme-v2"),
11966
+ var styleAuthoritySchema = z23.discriminatedUnion("kind", [
11967
+ z23.object({
11968
+ kind: z23.literal("theme-v2"),
12045
11969
  source: designResolutionPolicySchema,
12046
- siteStyleId: z24.string().min(1).transform(asSiteStyleId),
12047
- templateId: z24.string().min(1).transform(asDesignSystemTemplateId),
12048
- templateVersion: z24.number().int().nonnegative(),
12049
- resolverVersion: z24.number().int().nonnegative()
11970
+ siteStyleId: z23.string().min(1).transform(asSiteStyleId),
11971
+ templateId: z23.string().min(1).transform(asDesignSystemTemplateId),
11972
+ templateVersion: z23.number().int().nonnegative(),
11973
+ resolverVersion: z23.number().int().nonnegative()
12050
11974
  }).strict(),
12051
- z24.object({
12052
- kind: z24.literal("legacy-raw"),
12053
- reason: z24.enum(["pre-theme-v2", "manual-runtime-fields"])
11975
+ z23.object({
11976
+ kind: z23.literal("legacy-raw"),
11977
+ reason: z23.enum(["pre-theme-v2", "manual-runtime-fields"])
12054
11978
  }).strict(),
12055
- z24.object({
12056
- kind: z24.literal("advanced-detached"),
12057
- reason: z24.literal("detached-custom-runtime-fields")
11979
+ z23.object({
11980
+ kind: z23.literal("advanced-detached"),
11981
+ reason: z23.literal("detached-custom-runtime-fields")
12058
11982
  }).strict()
12059
11983
  ]);
12060
- var blockRuntimeStyleAuthoritySchema = z24.object({
12061
- unit: z24.literal("block-runtime-fields"),
12062
- blockId: z24.string().min(1).transform(asDesignBlockId),
11984
+ var blockRuntimeStyleAuthoritySchema = z23.object({
11985
+ unit: z23.literal("block-runtime-fields"),
11986
+ blockId: z23.string().min(1).transform(asDesignBlockId),
12063
11987
  fields: nonEmptyRuntimeStyleFieldNamesSchema,
12064
11988
  authority: styleAuthoritySchema
12065
11989
  }).strict();
12066
- var persistedPageDesignStateV1Schema = z24.object({
12067
- schemaVersion: z24.literal(themeV2DesignStateSchemaVersion),
12068
- siteStyleId: z24.string().min(1).transform(asSiteStyleId),
12069
- templateId: z24.string().min(1).transform(asDesignSystemTemplateId),
12070
- templateVersion: z24.number().int().nonnegative(),
12071
- resolverVersion: z24.number().int().nonnegative(),
12072
- rhythmPresetId: z24.string().min(1),
12073
- blocks: z24.array(blockDesignPlanSchema),
12074
- styleAuthorities: z24.array(blockRuntimeStyleAuthoritySchema)
11990
+ var persistedPageDesignStateV1Schema = z23.object({
11991
+ schemaVersion: z23.literal(themeV2DesignStateSchemaVersion),
11992
+ siteStyleId: z23.string().min(1).transform(asSiteStyleId),
11993
+ templateId: z23.string().min(1).transform(asDesignSystemTemplateId),
11994
+ templateVersion: z23.number().int().nonnegative(),
11995
+ resolverVersion: z23.number().int().nonnegative(),
11996
+ rhythmPresetId: z23.string().min(1),
11997
+ blocks: z23.array(blockDesignPlanSchema),
11998
+ styleAuthorities: z23.array(blockRuntimeStyleAuthoritySchema)
12075
11999
  }).strict();
12076
12000
 
12077
12001
  // ../theme-core/src/site-styles/generatedSchemas.ts
12078
- import { z as z25 } from "zod";
12002
+ import { z as z24 } from "zod";
12079
12003
  function uniqueNonEmpty2(values) {
12080
12004
  const uniqueValues = [...new Set(values)];
12081
12005
  const firstValue = uniqueValues[0];
@@ -12093,105 +12017,105 @@ var generatedFlushTreatments = uniqueNonEmpty2(
12093
12017
  var generatedFlushBleeds = uniqueNonEmpty2(
12094
12018
  generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "flush-panel").map((frame) => frame.bleed)
12095
12019
  );
12096
- var generatedPanelFrameSchema = z25.object({
12097
- kind: z25.literal("panel"),
12098
- treatment: z25.enum(generatedPanelTreatments)
12020
+ var generatedPanelFrameSchema = z24.object({
12021
+ kind: z24.literal("panel"),
12022
+ treatment: z24.enum(generatedPanelTreatments)
12099
12023
  }).strict();
12100
- var generatedFlushPanelFrameSchema = z25.object({
12101
- kind: z25.literal("flush-panel"),
12102
- treatment: z25.enum(generatedFlushTreatments),
12103
- bleed: z25.enum(generatedFlushBleeds)
12024
+ var generatedFlushPanelFrameSchema = z24.object({
12025
+ kind: z24.literal("flush-panel"),
12026
+ treatment: z24.enum(generatedFlushTreatments),
12027
+ bleed: z24.enum(generatedFlushBleeds)
12104
12028
  }).strict();
12105
- var generatedContentFrameIntentSchema = z25.discriminatedUnion("kind", [
12106
- z25.object({ kind: z25.literal("plain") }).strict(),
12029
+ var generatedContentFrameIntentSchema = z24.discriminatedUnion("kind", [
12030
+ z24.object({ kind: z24.literal("plain") }).strict(),
12107
12031
  generatedPanelFrameSchema,
12108
12032
  generatedFlushPanelFrameSchema
12109
12033
  ]);
12110
- var generatedSiteStyleIdSchema = z25.enum(curatedSiteStyleIdValues).transform(asSiteStyleId);
12034
+ var generatedSiteStyleIdSchema = z24.enum(curatedSiteStyleIdValues).transform(asSiteStyleId);
12111
12035
  function generatedChoiceSchema(valueSchema) {
12112
- return z25.discriminatedUnion("kind", [
12113
- z25.object({
12114
- source: z25.literal("generated"),
12115
- kind: z25.literal("auto")
12036
+ return z24.discriminatedUnion("kind", [
12037
+ z24.object({
12038
+ source: z24.literal("generated"),
12039
+ kind: z24.literal("auto")
12116
12040
  }).strict(),
12117
- z25.object({
12118
- source: z25.literal("generated"),
12119
- kind: z25.literal("explicit"),
12041
+ z24.object({
12042
+ source: z24.literal("generated"),
12043
+ kind: z24.literal("explicit"),
12120
12044
  value: valueSchema
12121
12045
  }).strict()
12122
12046
  ]);
12123
12047
  }
12124
- var generatedBlockDesignIntentSchema = z25.object({
12048
+ var generatedBlockDesignIntentSchema = z24.object({
12125
12049
  sectionSurface: generatedChoiceSchema(
12126
- z25.enum(generatedDesignOptionCatalog.sectionSurfaces)
12050
+ z24.enum(generatedDesignOptionCatalog.sectionSurfaces)
12127
12051
  ),
12128
12052
  contentFrame: generatedChoiceSchema(generatedContentFrameIntentSchema),
12129
12053
  itemSurface: generatedChoiceSchema(
12130
- z25.enum(generatedDesignOptionCatalog.itemSurfaces)
12054
+ z24.enum(generatedDesignOptionCatalog.itemSurfaces)
12131
12055
  ),
12132
12056
  transitionAfter: generatedChoiceSchema(
12133
- z25.enum(generatedDesignOptionCatalog.transitions)
12057
+ z24.enum(generatedDesignOptionCatalog.transitions)
12134
12058
  ),
12135
12059
  emphasis: generatedChoiceSchema(
12136
- z25.enum(generatedDesignOptionCatalog.emphases)
12060
+ z24.enum(generatedDesignOptionCatalog.emphases)
12137
12061
  )
12138
12062
  }).strict();
12139
- var generatedMediaCompositionIntentSchema = z25.enum([
12063
+ var generatedMediaCompositionIntentSchema = z24.enum([
12140
12064
  "none",
12141
12065
  "supporting",
12142
12066
  "dominant"
12143
12067
  ]);
12144
- var generatedDecorativeCompositionIntentSchema = z25.enum([
12068
+ var generatedDecorativeCompositionIntentSchema = z24.enum([
12145
12069
  "none",
12146
12070
  "supporting"
12147
12071
  ]);
12148
- var generatedHeroLegibilityStrategySchema = z25.enum([
12072
+ var generatedHeroLegibilityStrategySchema = z24.enum([
12149
12073
  "none",
12150
12074
  "scrim-gradient"
12151
12075
  ]);
12152
- var generatedBlockMediaIntentSchema = z25.object({
12076
+ var generatedBlockMediaIntentSchema = z24.object({
12153
12077
  media: generatedMediaCompositionIntentSchema,
12154
12078
  decorative: generatedDecorativeCompositionIntentSchema,
12155
12079
  heroLegibility: generatedChoiceSchema(generatedHeroLegibilityStrategySchema)
12156
12080
  }).strict();
12157
- var generatedBoundaryIntentSchema = z25.object({
12081
+ var generatedBoundaryIntentSchema = z24.object({
12158
12082
  transitionAfter: generatedChoiceSchema(
12159
- z25.enum(generatedDesignOptionCatalog.transitions)
12083
+ z24.enum(generatedDesignOptionCatalog.transitions)
12160
12084
  )
12161
12085
  }).strict();
12162
- var generatedPageDesignBlockIntentSchema = z25.object({
12163
- blockId: z25.string().min(1),
12164
- blockKind: z25.string().min(1),
12165
- purpose: z25.string().min(1),
12086
+ var generatedPageDesignBlockIntentSchema = z24.object({
12087
+ blockId: z24.string().min(1),
12088
+ blockKind: z24.string().min(1),
12089
+ purpose: z24.string().min(1),
12166
12090
  design: generatedBlockDesignIntentSchema,
12167
12091
  mediaIntent: generatedBlockMediaIntentSchema,
12168
12092
  boundaryIntent: generatedBoundaryIntentSchema
12169
12093
  }).strict();
12170
- var generatedPageDesignIntentSchema = z25.object({
12094
+ var generatedPageDesignIntentSchema = z24.object({
12171
12095
  siteStyleId: generatedSiteStyleIdSchema,
12172
- blocks: z25.array(generatedPageDesignBlockIntentSchema)
12096
+ blocks: z24.array(generatedPageDesignBlockIntentSchema)
12173
12097
  }).strict();
12174
12098
 
12175
12099
  // ../theme-core/src/site-styles/pageDesignIntent.ts
12176
- import { z as z26 } from "zod";
12100
+ import { z as z25 } from "zod";
12177
12101
  var pageDesignIntentSchemaVersion = 1;
12178
- var pageDesignUserPinnedAppearanceChoiceSchema = z26.object({
12179
- kind: z26.literal("user-pinned"),
12180
- value: z26.string().min(1).transform(asAppearancePresetId)
12102
+ var pageDesignUserPinnedAppearanceChoiceSchema = z25.object({
12103
+ kind: z25.literal("user-pinned"),
12104
+ value: z25.string().min(1).transform(asAppearancePresetId)
12181
12105
  }).strict();
12182
- var pageDesignUserPinnedBoundaryChoiceSchema = z26.object({
12183
- kind: z26.literal("user-pinned"),
12184
- value: z26.string().min(1).transform(asBoundaryOptionId)
12106
+ var pageDesignUserPinnedBoundaryChoiceSchema = z25.object({
12107
+ kind: z25.literal("user-pinned"),
12108
+ value: z25.string().min(1).transform(asBoundaryOptionId)
12185
12109
  }).strict();
12186
- var pageDesignBlockLookPinSchema = z26.object({
12187
- blockId: z26.string().min(1).transform(asDesignBlockId),
12188
- blockKind: z26.string().min(1),
12110
+ var pageDesignBlockLookPinSchema = z25.object({
12111
+ blockId: z25.string().min(1).transform(asDesignBlockId),
12112
+ blockKind: z25.string().min(1),
12189
12113
  choice: pageDesignUserPinnedAppearanceChoiceSchema
12190
12114
  }).strict();
12191
- var pageDesignBoundaryPinSchema = z26.object({
12192
- boundaryId: z26.string().min(1).transform(asDesignBoundaryId),
12193
- previousBlockId: z26.string().min(1).transform(asDesignBlockId),
12194
- nextBlockId: z26.string().min(1).transform(asDesignBlockId),
12115
+ var pageDesignBoundaryPinSchema = z25.object({
12116
+ boundaryId: z25.string().min(1).transform(asDesignBoundaryId),
12117
+ previousBlockId: z25.string().min(1).transform(asDesignBlockId),
12118
+ nextBlockId: z25.string().min(1).transform(asDesignBlockId),
12195
12119
  choice: pageDesignUserPinnedBoundaryChoiceSchema
12196
12120
  }).strict().superRefine((pin, ctx) => {
12197
12121
  const expectedBoundaryId = makeBoundaryId(
@@ -12200,18 +12124,18 @@ var pageDesignBoundaryPinSchema = z26.object({
12200
12124
  );
12201
12125
  if (pin.boundaryId !== expectedBoundaryId) {
12202
12126
  ctx.addIssue({
12203
- code: z26.ZodIssueCode.custom,
12127
+ code: z25.ZodIssueCode.custom,
12204
12128
  path: ["boundaryId"],
12205
12129
  message: `Boundary id must match previousBlockId and nextBlockId. Expected ${expectedBoundaryId}.`
12206
12130
  });
12207
12131
  }
12208
12132
  });
12209
- var pageDesignIntentV1Schema = z26.object({
12210
- schemaVersion: z26.literal(pageDesignIntentSchemaVersion),
12211
- siteStyleId: z26.string().min(1).transform(asSiteStyleId),
12212
- pageFlowPresetId: z26.string().min(1).transform(asPageFlowPresetId),
12213
- blockLookPins: z26.array(pageDesignBlockLookPinSchema),
12214
- boundaryPins: z26.array(pageDesignBoundaryPinSchema)
12133
+ var pageDesignIntentV1Schema = z25.object({
12134
+ schemaVersion: z25.literal(pageDesignIntentSchemaVersion),
12135
+ siteStyleId: z25.string().min(1).transform(asSiteStyleId),
12136
+ pageFlowPresetId: z25.string().min(1).transform(asPageFlowPresetId),
12137
+ blockLookPins: z25.array(pageDesignBlockLookPinSchema),
12138
+ boundaryPins: z25.array(pageDesignBoundaryPinSchema)
12215
12139
  }).strict().superRefine((intent, ctx) => {
12216
12140
  addDuplicateStringIssues(ctx, {
12217
12141
  values: intent.blockLookPins.map((pin) => pin.blockId),
@@ -12237,7 +12161,7 @@ function addDuplicateStringIssues(ctx, input) {
12237
12161
  }
12238
12162
  for (const duplicate of duplicates) {
12239
12163
  ctx.addIssue({
12240
- code: z26.ZodIssueCode.custom,
12164
+ code: z25.ZodIssueCode.custom,
12241
12165
  path: [...input.path],
12242
12166
  message: `Duplicate ${input.label}: ${duplicate}.`
12243
12167
  });
@@ -12389,75 +12313,75 @@ var defaultComponentRuntimeRules = defineComponentRuntimeRules({
12389
12313
  });
12390
12314
 
12391
12315
  // ../theme-core/src/site-styles/pageDesignAuthority.ts
12392
- import { z as z27 } from "zod";
12393
- var nonEmptyStringSchema = z27.string().min(1);
12316
+ import { z as z26 } from "zod";
12317
+ var nonEmptyStringSchema = z26.string().min(1);
12394
12318
  var blockContentVersionIdSchema = nonEmptyStringSchema.transform(asBlockContentVersionId);
12395
12319
  var designBlockIdSchema = nonEmptyStringSchema.transform(asDesignBlockId);
12396
12320
  var designPageIdSchema = nonEmptyStringSchema.transform(asDesignPageId);
12397
12321
  var designEntryIdSchema = nonEmptyStringSchema.transform(asDesignEntryId);
12398
- var blockOrderIndexSchema = z27.number().int().nonnegative().transform(asBlockOrderIndex);
12399
- var publishedPageBlockSnapshotSchema = z27.object({
12400
- kind: z27.literal("published-block-content"),
12322
+ var blockOrderIndexSchema = z26.number().int().nonnegative().transform(asBlockOrderIndex);
12323
+ var publishedPageBlockSnapshotSchema = z26.object({
12324
+ kind: z26.literal("published-block-content"),
12401
12325
  blockId: designBlockIdSchema,
12402
12326
  contentVersionId: blockContentVersionIdSchema,
12403
- identifier: z27.string().nullable(),
12327
+ identifier: z26.string().nullable(),
12404
12328
  blockKind: nonEmptyStringSchema,
12405
12329
  orderIndex: blockOrderIndexSchema
12406
12330
  }).strict();
12407
- var draftPageBlockSnapshotSchema = z27.object({
12408
- kind: z27.literal("draft-block-content"),
12331
+ var draftPageBlockSnapshotSchema = z26.object({
12332
+ kind: z26.literal("draft-block-content"),
12409
12333
  blockId: designBlockIdSchema,
12410
12334
  contentVersionId: blockContentVersionIdSchema.nullable(),
12411
- identifier: z27.string().nullable(),
12335
+ identifier: z26.string().nullable(),
12412
12336
  blockKind: nonEmptyStringSchema,
12413
12337
  orderIndex: blockOrderIndexSchema
12414
12338
  }).strict();
12415
- var missingPageBlockSnapshotSchema = z27.object({
12416
- kind: z27.literal("missing-block-content"),
12339
+ var missingPageBlockSnapshotSchema = z26.object({
12340
+ kind: z26.literal("missing-block-content"),
12417
12341
  blockId: designBlockIdSchema,
12418
- identifier: z27.string().nullable(),
12342
+ identifier: z26.string().nullable(),
12419
12343
  blockKind: nonEmptyStringSchema,
12420
12344
  orderIndex: blockOrderIndexSchema,
12421
- reason: z27.enum([
12345
+ reason: z26.enum([
12422
12346
  "new-block",
12423
12347
  "deleted-content-version",
12424
12348
  "unpublished-block"
12425
12349
  ])
12426
12350
  }).strict();
12427
- var pageBlockSnapshotSchema = z27.discriminatedUnion("kind", [
12351
+ var pageBlockSnapshotSchema = z26.discriminatedUnion("kind", [
12428
12352
  publishedPageBlockSnapshotSchema,
12429
12353
  draftPageBlockSnapshotSchema,
12430
12354
  missingPageBlockSnapshotSchema
12431
12355
  ]);
12432
- var publishedPageBlockSequenceSchema = z27.array(publishedPageBlockSnapshotSchema).superRefine(validateBlockSequence);
12433
- var draftPageBlockSequenceSchema = z27.array(pageBlockSnapshotSchema).superRefine(validateBlockSequence);
12434
- var publishedPageDesignVersionDataV1Schema = z27.object({
12435
- schemaVersion: z27.literal(1),
12436
- stage: z27.literal("published"),
12356
+ var publishedPageBlockSequenceSchema = z26.array(publishedPageBlockSnapshotSchema).superRefine(validateBlockSequence);
12357
+ var draftPageBlockSequenceSchema = z26.array(pageBlockSnapshotSchema).superRefine(validateBlockSequence);
12358
+ var publishedPageDesignVersionDataV1Schema = z26.object({
12359
+ schemaVersion: z26.literal(1),
12360
+ stage: z26.literal("published"),
12437
12361
  pageId: designPageIdSchema,
12438
12362
  blockSequence: publishedPageBlockSequenceSchema
12439
12363
  }).strict();
12440
- var draftPageDesignVersionDataV1Schema = z27.object({
12441
- schemaVersion: z27.literal(1),
12442
- stage: z27.literal("draft"),
12364
+ var draftPageDesignVersionDataV1Schema = z26.object({
12365
+ schemaVersion: z26.literal(1),
12366
+ stage: z26.literal("draft"),
12443
12367
  pageId: designPageIdSchema,
12444
12368
  blockSequence: draftPageBlockSequenceSchema
12445
12369
  }).strict();
12446
- var pageDesignVersionDataV1Schema = z27.discriminatedUnion("stage", [
12370
+ var pageDesignVersionDataV1Schema = z26.discriminatedUnion("stage", [
12447
12371
  publishedPageDesignVersionDataV1Schema,
12448
12372
  draftPageDesignVersionDataV1Schema
12449
12373
  ]);
12450
- var contentVersionOwnerSchema = z27.discriminatedUnion("kind", [
12451
- z27.object({
12452
- kind: z27.literal("block"),
12374
+ var contentVersionOwnerSchema = z26.discriminatedUnion("kind", [
12375
+ z26.object({
12376
+ kind: z26.literal("block"),
12453
12377
  blockId: designBlockIdSchema
12454
12378
  }).strict(),
12455
- z27.object({
12456
- kind: z27.literal("entry"),
12379
+ z26.object({
12380
+ kind: z26.literal("entry"),
12457
12381
  entryId: designEntryIdSchema
12458
12382
  }).strict(),
12459
- z27.object({
12460
- kind: z27.literal("page"),
12383
+ z26.object({
12384
+ kind: z26.literal("page"),
12461
12385
  pageId: designPageIdSchema
12462
12386
  }).strict()
12463
12387
  ]);
@@ -12474,7 +12398,7 @@ function collectBlockSequenceIssues(snapshots) {
12474
12398
  snapshots.forEach((snapshot, index) => {
12475
12399
  if (seenBlockIds.has(snapshot.blockId)) {
12476
12400
  issues.push({
12477
- code: z27.ZodIssueCode.custom,
12401
+ code: z26.ZodIssueCode.custom,
12478
12402
  message: `Duplicate blockId in page design blockSequence: ${snapshot.blockId}`,
12479
12403
  path: [index, "blockId"]
12480
12404
  });
@@ -12483,7 +12407,7 @@ function collectBlockSequenceIssues(snapshots) {
12483
12407
  const orderIndex = snapshot.orderIndex;
12484
12408
  if (seenOrderIndexes.has(orderIndex)) {
12485
12409
  issues.push({
12486
- code: z27.ZodIssueCode.custom,
12410
+ code: z26.ZodIssueCode.custom,
12487
12411
  message: `Duplicate orderIndex in page design blockSequence: ${String(orderIndex)}`,
12488
12412
  path: [index, "orderIndex"]
12489
12413
  });
@@ -12491,7 +12415,7 @@ function collectBlockSequenceIssues(snapshots) {
12491
12415
  seenOrderIndexes.add(orderIndex);
12492
12416
  if (previousOrderIndex !== null && orderIndex <= previousOrderIndex) {
12493
12417
  issues.push({
12494
- code: z27.ZodIssueCode.custom,
12418
+ code: z26.ZodIssueCode.custom,
12495
12419
  message: `Expected orderIndex greater than ${String(previousOrderIndex)} for blockSequence position ${String(index)}; received ${String(orderIndex)}.`,
12496
12420
  path: [index, "orderIndex"]
12497
12421
  });
@@ -12544,7 +12468,7 @@ var pageFlowPresets = [
12544
12468
  ];
12545
12469
 
12546
12470
  // ../theme-core/src/site-styles/tokenRecipes.ts
12547
- import { z as z28 } from "zod";
12471
+ import { z as z27 } from "zod";
12548
12472
  var themeTokenRecipeOptions = {
12549
12473
  palette: ["brand-led", "warm-neutral", "high-contrast", "soft-natural"],
12550
12474
  contrast: ["standard", "strong", "maximum"],
@@ -12559,14 +12483,14 @@ var themeTokenRecipeOptions = {
12559
12483
  spacing: ["compact", "regular", "airy"],
12560
12484
  motion: ["none", "subtle", "expressive"]
12561
12485
  };
12562
- var themeTokenRecipesSchema = z28.object({
12563
- palette: z28.enum(themeTokenRecipeOptions.palette),
12564
- contrast: z28.enum(themeTokenRecipeOptions.contrast),
12565
- radius: z28.enum(themeTokenRecipeOptions.radius),
12566
- shadow: z28.enum(themeTokenRecipeOptions.shadow),
12567
- typography: z28.enum(themeTokenRecipeOptions.typography),
12568
- spacing: z28.enum(themeTokenRecipeOptions.spacing),
12569
- motion: z28.enum(themeTokenRecipeOptions.motion)
12486
+ var themeTokenRecipesSchema = z27.object({
12487
+ palette: z27.enum(themeTokenRecipeOptions.palette),
12488
+ contrast: z27.enum(themeTokenRecipeOptions.contrast),
12489
+ radius: z27.enum(themeTokenRecipeOptions.radius),
12490
+ shadow: z27.enum(themeTokenRecipeOptions.shadow),
12491
+ typography: z27.enum(themeTokenRecipeOptions.typography),
12492
+ spacing: z27.enum(themeTokenRecipeOptions.spacing),
12493
+ motion: z27.enum(themeTokenRecipeOptions.motion)
12570
12494
  });
12571
12495
 
12572
12496
  // ../blocks/src/system/designCapabilities.ts
@@ -14843,26 +14767,26 @@ function sectionState(opts) {
14843
14767
  }
14844
14768
 
14845
14769
  // ../blocks/src/system/fragments/types.ts
14846
- import { z as z29 } from "zod";
14770
+ import { z as z28 } from "zod";
14847
14771
  var FRAGMENT_ID_PATTERN = /^[a-z0-9](?:[a-z0-9._-]*[a-z0-9])?$/i;
14848
14772
  var FIELD_ID_PATTERN = /^[a-z][a-zA-Z0-9_-]*$/;
14849
- var dataLoaderSchema = z29.object({
14850
- endpoint: z29.string().min(1, "Fragment data loader requires an endpoint"),
14851
- params: z29.record(z29.string(), z29.unknown()).default({}),
14852
- mode: z29.enum(["server", "client"]).default("server")
14773
+ var dataLoaderSchema = z28.object({
14774
+ endpoint: z28.string().min(1, "Fragment data loader requires an endpoint"),
14775
+ params: z28.record(z28.string(), z28.unknown()).default({}),
14776
+ mode: z28.enum(["server", "client"]).default("server")
14853
14777
  });
14854
- var fragmentDataSchema = z29.object({
14855
- key: z29.string().min(1, "Fragment data key is required"),
14778
+ var fragmentDataSchema = z28.object({
14779
+ key: z28.string().min(1, "Fragment data key is required"),
14856
14780
  loader: dataLoaderSchema.optional()
14857
14781
  });
14858
- var fragmentConfigSchema = z29.object({
14859
- id: z29.string().min(1, "Fragment id is required").regex(FRAGMENT_ID_PATTERN, "Fragment id must be alphanumeric with optional . _ - separators"),
14860
- title: z29.string().optional(),
14861
- description: z29.string().optional(),
14862
- category: z29.enum(["content", "media", "interactive", "layout"]).optional(),
14863
- icon: z29.string().optional(),
14782
+ var fragmentConfigSchema = z28.object({
14783
+ id: z28.string().min(1, "Fragment id is required").regex(FRAGMENT_ID_PATTERN, "Fragment id must be alphanumeric with optional . _ - separators"),
14784
+ title: z28.string().optional(),
14785
+ description: z28.string().optional(),
14786
+ category: z28.enum(["content", "media", "interactive", "layout"]).optional(),
14787
+ icon: z28.string().optional(),
14864
14788
  fields: fieldSchema.array().default([]),
14865
- layout: z29.union([NodeSchema, NodeSchema.array()]).transform((value) => Array.isArray(value) ? value : [value]),
14789
+ layout: z28.union([NodeSchema, NodeSchema.array()]).transform((value) => Array.isArray(value) ? value : [value]),
14866
14790
  data: fragmentDataSchema.optional()
14867
14791
  });
14868
14792
  var FragmentConfigError = class extends Error {
@@ -17512,7 +17436,7 @@ var bodyTextBlockDefinition = {
17512
17436
  };
17513
17437
 
17514
17438
  // ../blocks/src/system/blocks/blog-post.tsx
17515
- import { z as z30 } from "zod";
17439
+ import { z as z29 } from "zod";
17516
17440
  var composition = composeFragments([{ fragment: blogFeaturedPostFragment }]);
17517
17441
  var blogPostLayout = section(
17518
17442
  { background: "background", className: "rb-px-6 rb-py-12" },
@@ -17541,17 +17465,17 @@ var blogPostManifest = createBlockManifest({
17541
17465
  additionalFields: composition.fields,
17542
17466
  layout: blogPostLayout
17543
17467
  });
17544
- var blogPostDataSchema = z30.object({
17545
- id: z30.string(),
17546
- title: z30.string(),
17547
- slug: z30.string(),
17548
- path: z30.string(),
17549
- excerpt: z30.string().nullable().optional(),
17550
- image: z30.object({
17551
- url: z30.string().optional().nullable(),
17552
- alt: z30.string().optional().nullable()
17468
+ var blogPostDataSchema = z29.object({
17469
+ id: z29.string(),
17470
+ title: z29.string(),
17471
+ slug: z29.string(),
17472
+ path: z29.string(),
17473
+ excerpt: z29.string().nullable().optional(),
17474
+ image: z29.object({
17475
+ url: z29.string().optional().nullable(),
17476
+ alt: z29.string().optional().nullable()
17553
17477
  }).nullable().optional(),
17554
- publishedAt: z30.string().nullable().optional()
17478
+ publishedAt: z29.string().nullable().optional()
17555
17479
  });
17556
17480
  var blogPostBlockDefinition = {
17557
17481
  manifest: blogPostManifest,
@@ -17560,7 +17484,7 @@ var blogPostBlockDefinition = {
17560
17484
  };
17561
17485
 
17562
17486
  // ../blocks/src/system/blocks/blog-listing.ts
17563
- import { z as z31 } from "zod";
17487
+ import { z as z30 } from "zod";
17564
17488
  var blogListingDataLoader = {
17565
17489
  endpoint: "listPublishedEntries",
17566
17490
  params: {
@@ -17878,24 +17802,24 @@ var blogListingManifest = createBlockManifest({
17878
17802
  spacing: "lg"
17879
17803
  }
17880
17804
  });
17881
- var blogPostListEntrySchema = z31.object({
17882
- id: z31.string(),
17883
- slug: z31.string(),
17884
- path: z31.string(),
17885
- title: z31.string(),
17886
- excerpt: z31.string().nullable().optional(),
17887
- publishedAt: z31.string().nullable().optional(),
17888
- updatedAt: z31.string(),
17889
- status: z31.string(),
17890
- image: z31.object({
17891
- url: z31.string(),
17892
- alt: z31.string().nullable().optional()
17805
+ var blogPostListEntrySchema = z30.object({
17806
+ id: z30.string(),
17807
+ slug: z30.string(),
17808
+ path: z30.string(),
17809
+ title: z30.string(),
17810
+ excerpt: z30.string().nullable().optional(),
17811
+ publishedAt: z30.string().nullable().optional(),
17812
+ updatedAt: z30.string(),
17813
+ status: z30.string(),
17814
+ image: z30.object({
17815
+ url: z30.string(),
17816
+ alt: z30.string().nullable().optional()
17893
17817
  }).nullable().optional()
17894
17818
  });
17895
17819
  var blogListingBlockDefinition = {
17896
17820
  manifest: blogListingManifest,
17897
17821
  dataSchemas: {
17898
- posts: z31.array(blogPostListEntrySchema).optional()
17822
+ posts: z30.array(blogPostListEntrySchema).optional()
17899
17823
  },
17900
17824
  dataLoaders: {
17901
17825
  posts: blogListingDataLoader
@@ -17959,10 +17883,10 @@ var singleButtonBlockDefinition = {
17959
17883
  };
17960
17884
 
17961
17885
  // ../blocks/src/system/blocks/form.tsx
17962
- import { z as z33 } from "zod";
17886
+ import { z as z32 } from "zod";
17963
17887
 
17964
17888
  // ../blocks/src/system/runtime/nodes/form.interactive.ts
17965
- import { z as z32 } from "zod";
17889
+ import { z as z31 } from "zod";
17966
17890
 
17967
17891
  // ../blocks/src/contracts/runtime.ts
17968
17892
  function decodeSuccess(value) {
@@ -18010,14 +17934,14 @@ function defineClientOwnedBlockRuntime(runtime) {
18010
17934
  }
18011
17935
 
18012
17936
  // ../blocks/src/contracts/islands.ts
18013
- function isObjectRecord2(value) {
17937
+ function isObjectRecord(value) {
18014
17938
  return typeof value === "object" && value !== null;
18015
17939
  }
18016
17940
  function pickRecordKeys(source, keys) {
18017
17941
  return Object.fromEntries(keys.map((key) => [key, source[key]]));
18018
17942
  }
18019
17943
  function expectEncodedRecord(value, label) {
18020
- if (isObjectRecord2(value)) {
17944
+ if (isObjectRecord(value)) {
18021
17945
  return value;
18022
17946
  }
18023
17947
  throw new Error(`Expected ${label} codec to encode an object`);
@@ -18049,7 +17973,7 @@ function createInteractiveIslandCodec(options) {
18049
17973
  };
18050
17974
  },
18051
17975
  decode: (input) => {
18052
- if (!isObjectRecord2(input)) {
17976
+ if (!isObjectRecord(input)) {
18053
17977
  return decodeFailure([{ path: [], message: "Expected island props object" }]);
18054
17978
  }
18055
17979
  const metaResult = options.meta.decode(pickRecordKeys(input, options.metaKeys));
@@ -18061,7 +17985,7 @@ function createInteractiveIslandCodec(options) {
18061
17985
  });
18062
17986
  }
18063
17987
  const renderInput = input.render;
18064
- if (!isObjectRecord2(renderInput)) {
17988
+ if (!isObjectRecord(renderInput)) {
18065
17989
  renderIssues.push({
18066
17990
  path: ["render"],
18067
17991
  message: "Expected render object"
@@ -18127,75 +18051,75 @@ function groupFormFields(fields3) {
18127
18051
  }
18128
18052
 
18129
18053
  // ../blocks/src/system/runtime/nodes/form.interactive.ts
18130
- var formFieldSchema = z32.object({
18131
- id: z32.string(),
18132
- label: z32.string().optional(),
18133
- type: z32.string().optional(),
18134
- required: z32.boolean().optional(),
18135
- placeholder: z32.string().optional(),
18136
- helpText: z32.string().optional(),
18137
- layout: z32.object({
18138
- width: z32.enum(["full", "half"]).optional()
18054
+ var formFieldSchema = z31.object({
18055
+ id: z31.string(),
18056
+ label: z31.string().optional(),
18057
+ type: z31.string().optional(),
18058
+ required: z31.boolean().optional(),
18059
+ placeholder: z31.string().optional(),
18060
+ helpText: z31.string().optional(),
18061
+ layout: z31.object({
18062
+ width: z31.enum(["full", "half"]).optional()
18139
18063
  }).optional(),
18140
- rows: z32.number().optional(),
18141
- options: z32.array(z32.object({
18142
- value: z32.string(),
18143
- label: z32.string()
18064
+ rows: z31.number().optional(),
18065
+ options: z31.array(z31.object({
18066
+ value: z31.string(),
18067
+ label: z31.string()
18144
18068
  })).optional(),
18145
- multiple: z32.boolean().optional(),
18146
- minLength: z32.number().optional(),
18147
- maxLength: z32.number().optional(),
18148
- pattern: z32.string().optional(),
18149
- min: z32.number().optional(),
18150
- max: z32.number().optional()
18151
- });
18152
- var formRecordSchema = z32.object({
18153
- id: z32.string(),
18154
- schemaJson: z32.object({
18155
- fields: z32.array(formFieldSchema).optional()
18069
+ multiple: z31.boolean().optional(),
18070
+ minLength: z31.number().optional(),
18071
+ maxLength: z31.number().optional(),
18072
+ pattern: z31.string().optional(),
18073
+ min: z31.number().optional(),
18074
+ max: z31.number().optional()
18075
+ });
18076
+ var formRecordSchema = z31.object({
18077
+ id: z31.string(),
18078
+ schemaJson: z31.object({
18079
+ fields: z31.array(formFieldSchema).optional()
18156
18080
  }).optional()
18157
18081
  });
18158
- var formFieldGroupSchema = z32.discriminatedUnion("type", [
18159
- z32.object({
18160
- type: z32.literal("single"),
18161
- key: z32.string(),
18082
+ var formFieldGroupSchema = z31.discriminatedUnion("type", [
18083
+ z31.object({
18084
+ type: z31.literal("single"),
18085
+ key: z31.string(),
18162
18086
  field: formFieldSchema
18163
18087
  }),
18164
- z32.object({
18165
- type: z32.literal("row"),
18166
- key: z32.string(),
18167
- fields: z32.tuple([formFieldSchema, formFieldSchema])
18088
+ z31.object({
18089
+ type: z31.literal("row"),
18090
+ key: z31.string(),
18091
+ fields: z31.tuple([formFieldSchema, formFieldSchema])
18168
18092
  })
18169
18093
  ]);
18170
- var formSourceSchema = z32.object({
18094
+ var formSourceSchema = z31.object({
18171
18095
  value: formRecordSchema.optional(),
18172
- siteId: z32.string().optional(),
18173
- apiBaseUrl: z32.string().optional(),
18174
- submitLabel: z32.string().optional(),
18175
- successMessage: z32.string().nullable().optional(),
18176
- className: z32.string().optional(),
18177
- spamProtectionEnabled: z32.boolean().optional()
18178
- });
18179
- var formDisplaySchema = z32.object({
18180
- kind: z32.literal("form"),
18181
- state: z32.enum(["missing", "ready"]),
18182
- className: z32.string().nullable(),
18183
- formId: z32.string().nullable(),
18184
- submitLabel: z32.string(),
18185
- successMessage: z32.string().nullable(),
18096
+ siteId: z31.string().optional(),
18097
+ apiBaseUrl: z31.string().optional(),
18098
+ submitLabel: z31.string().optional(),
18099
+ successMessage: z31.string().nullable().optional(),
18100
+ className: z31.string().optional(),
18101
+ spamProtectionEnabled: z31.boolean().optional()
18102
+ });
18103
+ var formDisplaySchema = z31.object({
18104
+ kind: z31.literal("form"),
18105
+ state: z31.enum(["missing", "ready"]),
18106
+ className: z31.string().nullable(),
18107
+ formId: z31.string().nullable(),
18108
+ submitLabel: z31.string(),
18109
+ successMessage: z31.string().nullable(),
18186
18110
  form: formRecordSchema.nullable(),
18187
- groups: z32.array(formFieldGroupSchema)
18111
+ groups: z31.array(formFieldGroupSchema)
18188
18112
  });
18189
- var formHydrationSchema = z32.object({
18190
- spamProtectionEnabled: z32.boolean().optional()
18113
+ var formHydrationSchema = z31.object({
18114
+ spamProtectionEnabled: z31.boolean().optional()
18191
18115
  });
18192
- var formRenderSchema = z32.object({
18116
+ var formRenderSchema = z31.object({
18193
18117
  display: formDisplaySchema,
18194
18118
  hydration: formHydrationSchema
18195
18119
  });
18196
- var formIslandMetaCodec = createZodCodec(z32.object({
18197
- siteId: z32.string().optional(),
18198
- apiBaseUrl: z32.string().optional()
18120
+ var formIslandMetaCodec = createZodCodec(z31.object({
18121
+ siteId: z31.string().optional(),
18122
+ apiBaseUrl: z31.string().optional()
18199
18123
  }));
18200
18124
  var formIslandMetaKeys = defineInteractiveIslandMetaKeys("siteId", "apiBaseUrl");
18201
18125
  function buildFormDisplay(source) {
@@ -18270,16 +18194,16 @@ var formManifest = createBlockManifest({
18270
18194
  tags: ["form", "contact", "input", "submit", "fields", "signup", "lead-capture"],
18271
18195
  icon: "FormInput"
18272
18196
  });
18273
- var formDataSchema = z33.object({
18274
- id: z33.string(),
18275
- siteId: z33.string(),
18276
- userId: z33.string(),
18277
- name: z33.string(),
18278
- slug: z33.string(),
18279
- schemaJson: z33.any(),
18280
- settingsJson: z33.any().optional(),
18281
- createdAt: z33.string(),
18282
- updatedAt: z33.string()
18197
+ var formDataSchema = z32.object({
18198
+ id: z32.string(),
18199
+ siteId: z32.string(),
18200
+ userId: z32.string(),
18201
+ name: z32.string(),
18202
+ slug: z32.string(),
18203
+ schemaJson: z32.any(),
18204
+ settingsJson: z32.any().optional(),
18205
+ createdAt: z32.string(),
18206
+ updatedAt: z32.string()
18283
18207
  });
18284
18208
  var formBlockDefinition = {
18285
18209
  manifest: formManifest,
@@ -18325,7 +18249,7 @@ var faqBlockDefinition = {
18325
18249
  };
18326
18250
 
18327
18251
  // ../blocks/src/system/transforms/registry/formatting.ts
18328
- import { z as z34 } from "zod";
18252
+ import { z as z33 } from "zod";
18329
18253
  var uppercaseTransform = {
18330
18254
  id: "string.uppercase",
18331
18255
  kind: "string",
@@ -18336,7 +18260,7 @@ var fallbackTransform = {
18336
18260
  id: "value.fallback",
18337
18261
  kind: "formatter",
18338
18262
  summary: "Provide fallback when value is null or undefined",
18339
- schema: z34.object({ fallback: z34.unknown() }),
18263
+ schema: z33.object({ fallback: z33.unknown() }),
18340
18264
  run: (value, options) => value === null || value === void 0 || value === "" ? options.fallback : value
18341
18265
  };
18342
18266
  var dateFormatShort = {
@@ -18383,8 +18307,8 @@ var jsonArrayTransform = {
18383
18307
  return "";
18384
18308
  }
18385
18309
  };
18386
- var marqueeLoopOptionsSchema = z34.object({
18387
- minItems: z34.number().int().min(1).default(10)
18310
+ var marqueeLoopOptionsSchema = z33.object({
18311
+ minItems: z33.number().int().min(1).default(10)
18388
18312
  });
18389
18313
  var marqueeLoopTransform = {
18390
18314
  id: "array.marqueeLoop",
@@ -18412,7 +18336,7 @@ var formattingTransforms = [
18412
18336
  ];
18413
18337
 
18414
18338
  // ../blocks/src/system/transforms/registry/ui.ts
18415
- import { z as z35 } from "zod";
18339
+ import { z as z34 } from "zod";
18416
18340
  var joinClasses3 = (parts) => parts.filter(
18417
18341
  (part) => typeof part === "string" && part.trim().length > 0
18418
18342
  ).join(" ").replace(/\s+/g, " ").trim();
@@ -18472,8 +18396,8 @@ function getNavStyleClasses(navStyle) {
18472
18396
  return baseClasses;
18473
18397
  }
18474
18398
  }
18475
- var headerNavClassOptionsSchema = z35.object({
18476
- base: z35.string().optional()
18399
+ var headerNavClassOptionsSchema = z34.object({
18400
+ base: z34.string().optional()
18477
18401
  });
18478
18402
  var headerNavLinkClassTransform = {
18479
18403
  id: "ui.headerNavLinkClass",
@@ -18556,8 +18480,8 @@ function resolveHeroContentMaxWidth(content) {
18556
18480
  return raw;
18557
18481
  return "default";
18558
18482
  }
18559
- var heroContentWrapperClassSchema = z35.object({
18560
- base: z35.string().optional()
18483
+ var heroContentWrapperClassSchema = z34.object({
18484
+ base: z34.string().optional()
18561
18485
  });
18562
18486
  var heroContentWrapperClassTransform = {
18563
18487
  id: "ui.heroContentWrapperClass",
@@ -18599,8 +18523,8 @@ var heroStackJustifyFromVerticalAlignmentTransform = {
18599
18523
  return vertical === "top" ? "start" : vertical === "bottom" ? "end" : "center";
18600
18524
  }
18601
18525
  };
18602
- var heroGridClassFromVerticalAlignmentSchema = z35.object({
18603
- base: z35.string()
18526
+ var heroGridClassFromVerticalAlignmentSchema = z34.object({
18527
+ base: z34.string()
18604
18528
  });
18605
18529
  var heroGridClassFromVerticalAlignmentTransform = {
18606
18530
  id: "ui.heroGridClassFromVerticalAlignment",
@@ -18614,10 +18538,10 @@ var heroGridClassFromVerticalAlignmentTransform = {
18614
18538
  return joinClasses3([options.base, itemsClass]);
18615
18539
  }
18616
18540
  };
18617
- var imageFragmentClassOptionsSchema = z35.object({
18618
- base: z35.string(),
18619
- whenAuto: z35.string(),
18620
- whenFixed: z35.string()
18541
+ var imageFragmentClassOptionsSchema = z34.object({
18542
+ base: z34.string(),
18543
+ whenAuto: z34.string(),
18544
+ whenFixed: z34.string()
18621
18545
  });
18622
18546
  var imageFragmentClassTransform = {
18623
18547
  id: "ui.imageFragmentClass",
@@ -18633,9 +18557,9 @@ var imageFragmentClassTransform = {
18633
18557
  ]);
18634
18558
  }
18635
18559
  };
18636
- var imageFragmentSizeOptionsSchema = z35.object({
18637
- max: z35.number().int().positive().default(1920),
18638
- quality: z35.number().int().min(1).max(100).default(85)
18560
+ var imageFragmentSizeOptionsSchema = z34.object({
18561
+ max: z34.number().int().positive().default(1920),
18562
+ quality: z34.number().int().min(1).max(100).default(85)
18639
18563
  });
18640
18564
  var imageFragmentSizeTransform = {
18641
18565
  id: "ui.imageFragmentSize",
@@ -18655,9 +18579,9 @@ var imageFragmentSizeTransform = {
18655
18579
  return { width, height, quality, resize: "cover" };
18656
18580
  }
18657
18581
  };
18658
- var conditionalClassOptionsSchema = z35.object({
18659
- whenTrue: z35.string(),
18660
- whenFalse: z35.string()
18582
+ var conditionalClassOptionsSchema = z34.object({
18583
+ whenTrue: z34.string(),
18584
+ whenFalse: z34.string()
18661
18585
  });
18662
18586
  var conditionalClassTransform = {
18663
18587
  id: "ui.conditionalClass",
@@ -18669,9 +18593,9 @@ var conditionalClassTransform = {
18669
18593
  return isTrue ? options.whenTrue : options.whenFalse;
18670
18594
  }
18671
18595
  };
18672
- var twoColumnContainerClassOptionsSchema = z35.object({
18673
- base: z35.string(),
18674
- reverseClass: z35.string()
18596
+ var twoColumnContainerClassOptionsSchema = z34.object({
18597
+ base: z34.string(),
18598
+ reverseClass: z34.string()
18675
18599
  });
18676
18600
  var twoColumnContainerClassTransform = {
18677
18601
  id: "ui.twoColumnContainerClass",
@@ -18686,8 +18610,8 @@ var twoColumnContainerClassTransform = {
18686
18610
  ]);
18687
18611
  }
18688
18612
  };
18689
- var twoColumnFlexBasisOptionsSchema = z35.object({
18690
- side: z35.enum(["image", "text"])
18613
+ var twoColumnFlexBasisOptionsSchema = z34.object({
18614
+ side: z34.enum(["image", "text"])
18691
18615
  });
18692
18616
  var twoColumnFlexBasisTransform = {
18693
18617
  id: "ui.twoColumnFlexBasis",
@@ -18701,8 +18625,8 @@ var twoColumnFlexBasisTransform = {
18701
18625
  return `${percent}%`;
18702
18626
  }
18703
18627
  };
18704
- var columnsDesktopSpanClassOptionsSchema = z35.object({
18705
- base: z35.string().optional()
18628
+ var columnsDesktopSpanClassOptionsSchema = z34.object({
18629
+ base: z34.string().optional()
18706
18630
  });
18707
18631
  var columnsDesktopSpanClassTransform = {
18708
18632
  id: "ui.columnsDesktopSpanClass",
@@ -18744,8 +18668,8 @@ var columnsColsAtTransform = {
18744
18668
  id: "ui.columnsColsAt",
18745
18669
  kind: "formatter",
18746
18670
  summary: "Resolve columns count for a specific breakpoint",
18747
- schema: z35.object({
18748
- breakpoint: z35.enum(["mobile", "md", "lg", "xl"])
18671
+ schema: z34.object({
18672
+ breakpoint: z34.enum(["mobile", "md", "lg", "xl"])
18749
18673
  }),
18750
18674
  run: (value, options) => {
18751
18675
  const content = asPartialObject(value) ?? {};
@@ -18869,7 +18793,7 @@ var uiTransforms = [
18869
18793
  ];
18870
18794
 
18871
18795
  // ../blocks/src/system/transforms/registry/layout.ts
18872
- import { z as z36 } from "zod";
18796
+ import { z as z35 } from "zod";
18873
18797
 
18874
18798
  // ../theme-core/src/palette/utils/colorConversion.ts
18875
18799
  var mod = (a, n) => (a % n + n) % n;
@@ -18940,10 +18864,10 @@ function featuresFromHex(hex) {
18940
18864
  var joinClasses4 = (parts) => parts.filter(
18941
18865
  (part) => typeof part === "string" && part.trim().length > 0
18942
18866
  ).join(" ").replace(/\s+/g, " ").trim();
18943
- var maxWidthClassSchema = z36.object({
18944
- base: z36.string().optional(),
18945
- container: z36.string().optional(),
18946
- full: z36.string().optional()
18867
+ var maxWidthClassSchema = z35.object({
18868
+ base: z35.string().optional(),
18869
+ container: z35.string().optional(),
18870
+ full: z35.string().optional()
18947
18871
  });
18948
18872
  var maxWidthClassTransform = {
18949
18873
  id: "layout.maxWidthClass",
@@ -18959,11 +18883,11 @@ var maxWidthClassTransform = {
18959
18883
  return joinClasses4([base, chosen]);
18960
18884
  }
18961
18885
  };
18962
- var headerRootClassSchema = z36.object({
18963
- base: z36.string().optional(),
18964
- sticky: z36.string().optional(),
18965
- stickyTransparent: z36.string().optional(),
18966
- invert: z36.string().optional()
18886
+ var headerRootClassSchema = z35.object({
18887
+ base: z35.string().optional(),
18888
+ sticky: z35.string().optional(),
18889
+ stickyTransparent: z35.string().optional(),
18890
+ invert: z35.string().optional()
18967
18891
  });
18968
18892
  function resolveBackgroundVisualStyles(backgroundColor, tokens, defaultToken = "surface") {
18969
18893
  const backgroundToken = typeof backgroundColor === "string" && backgroundColor.trim().length > 0 ? backgroundColor : defaultToken;
@@ -19084,11 +19008,11 @@ var headerRootClassTransform = {
19084
19008
  return joinClasses4(classes);
19085
19009
  }
19086
19010
  };
19087
- var footerRootClassSchema = z36.object({
19088
- base: z36.string().optional(),
19089
- surface: z36.string().optional(),
19090
- tokenPrefix: z36.string().optional(),
19091
- transparent: z36.string().optional()
19011
+ var footerRootClassSchema = z35.object({
19012
+ base: z35.string().optional(),
19013
+ surface: z35.string().optional(),
19014
+ tokenPrefix: z35.string().optional(),
19015
+ transparent: z35.string().optional()
19092
19016
  });
19093
19017
  var footerRootClassTransform = {
19094
19018
  id: "layout.footerRootClass",
@@ -19192,8 +19116,8 @@ var footerAlignClassMap = {
19192
19116
  end: "rb-justify-end",
19193
19117
  "space-between": "rb-justify-between"
19194
19118
  };
19195
- var footerBottomBarClassSchema = z36.object({
19196
- base: z36.string().optional()
19119
+ var footerBottomBarClassSchema = z35.object({
19120
+ base: z35.string().optional()
19197
19121
  });
19198
19122
  var footerBottomBarClassTransform = {
19199
19123
  id: "layout.footerBottomBarClass",
@@ -19215,10 +19139,10 @@ var footerBottomBarClassTransform = {
19215
19139
  ]);
19216
19140
  }
19217
19141
  };
19218
- var footerBottomBarContainerClassSchema = z36.object({
19219
- base: z36.string().optional(),
19220
- fullBleed: z36.string().optional(),
19221
- contained: z36.string().optional()
19142
+ var footerBottomBarContainerClassSchema = z35.object({
19143
+ base: z35.string().optional(),
19144
+ fullBleed: z35.string().optional(),
19145
+ contained: z35.string().optional()
19222
19146
  });
19223
19147
  var footerBottomBarContainerClassTransform = {
19224
19148
  id: "layout.footerBottomBarContainerClass",
@@ -19303,8 +19227,8 @@ var footerSplitNavSingleClassTransform = {
19303
19227
  ]);
19304
19228
  }
19305
19229
  };
19306
- var footerLogoClassSchema = z36.object({
19307
- base: z36.string().optional()
19230
+ var footerLogoClassSchema = z35.object({
19231
+ base: z35.string().optional()
19308
19232
  });
19309
19233
  var footerLogoClassTransform = {
19310
19234
  id: "layout.footerLogoClass",
@@ -19326,8 +19250,8 @@ var footerLogoClassTransform = {
19326
19250
  ]);
19327
19251
  }
19328
19252
  };
19329
- var footerLogoMediaClassSchema = z36.object({
19330
- base: z36.string().optional()
19253
+ var footerLogoMediaClassSchema = z35.object({
19254
+ base: z35.string().optional()
19331
19255
  });
19332
19256
  var footerLogoMediaClassTransform = {
19333
19257
  id: "layout.footerLogoMediaClass",
@@ -19381,12 +19305,12 @@ var layoutTransforms = [
19381
19305
  ];
19382
19306
 
19383
19307
  // ../blocks/src/system/transforms/registry/media.ts
19384
- import { z as z37 } from "zod";
19385
- var mediaFromUrlOptionsSchema = z37.object({
19386
- width: z37.number().int().positive().optional(),
19387
- height: z37.number().int().positive().optional(),
19388
- quality: z37.number().int().min(1).max(100).optional(),
19389
- resize: z37.enum(["cover", "contain", "fill"]).optional()
19308
+ import { z as z36 } from "zod";
19309
+ var mediaFromUrlOptionsSchema = z36.object({
19310
+ width: z36.number().int().positive().optional(),
19311
+ height: z36.number().int().positive().optional(),
19312
+ quality: z36.number().int().min(1).max(100).optional(),
19313
+ resize: z36.enum(["cover", "contain", "fill"]).optional()
19390
19314
  });
19391
19315
  function maybeBuildSupabaseTransformUrl(inputUrl, options) {
19392
19316
  const width = options.width;
@@ -19434,10 +19358,20 @@ var mediaFromUrl = {
19434
19358
  var mediaTransforms = [mediaFromUrl];
19435
19359
 
19436
19360
  // ../blocks/src/system/transforms/registry/content.ts
19437
- import { z as z38 } from "zod";
19438
- var supportedRichTextTokenSchema = z38.enum(["year", "site_name"]);
19439
- var interpolateRichTextTokensOptionsSchema = z38.object({
19440
- tokens: z38.array(supportedRichTextTokenSchema).default(["year", "site_name"])
19361
+ import { z as z37 } from "zod";
19362
+
19363
+ // ../blocks/src/lib/typeGuards.ts
19364
+ function isRecord2(value) {
19365
+ return typeof value === "object" && value !== null && !Array.isArray(value);
19366
+ }
19367
+ function isObjectRecord2(value) {
19368
+ return typeof value === "object" && value !== null;
19369
+ }
19370
+
19371
+ // ../blocks/src/system/transforms/registry/content.ts
19372
+ var supportedRichTextTokenSchema = z37.enum(["year", "site_name"]);
19373
+ var interpolateRichTextTokensOptionsSchema = z37.object({
19374
+ tokens: z37.array(supportedRichTextTokenSchema).default(["year", "site_name"])
19441
19375
  });
19442
19376
  var richTextTokenPattern = /\{\{\s*([a-zA-Z0-9_]+)\s*\}\}/g;
19443
19377
  function getSiteName(context) {
@@ -21247,7 +21181,7 @@ var mediaTextBlockDefinition = {
21247
21181
  };
21248
21182
 
21249
21183
  // ../blocks/src/system/blocks/appointment-booking.tsx
21250
- import { z as z39 } from "zod";
21184
+ import { z as z38 } from "zod";
21251
21185
  var appointmentBookingManifest = createBlockManifest({
21252
21186
  id: "block.appointment-booking",
21253
21187
  version: "2.0.0",
@@ -21323,11 +21257,11 @@ var appointmentBookingManifest = createBlockManifest({
21323
21257
  })
21324
21258
  ]
21325
21259
  });
21326
- var availabilityDataSchema = z39.object({
21327
- slots: z39.array(z39.object({
21328
- startAt: z39.string(),
21329
- endAt: z39.string(),
21330
- resourceId: z39.string()
21260
+ var availabilityDataSchema = z38.object({
21261
+ slots: z38.array(z38.object({
21262
+ startAt: z38.string(),
21263
+ endAt: z38.string(),
21264
+ resourceId: z38.string()
21331
21265
  }))
21332
21266
  });
21333
21267
  var appointmentBookingBlockDefinition = {
@@ -21352,13 +21286,13 @@ var appointmentBookingBlockDefinition = {
21352
21286
  };
21353
21287
 
21354
21288
  // ../blocks/src/system/blocks/event-registration.ts
21355
- import { z as z47 } from "zod";
21289
+ import { z as z46 } from "zod";
21356
21290
 
21357
21291
  // ../blocks/src/system/blocks/events/shared/schemas.ts
21358
- import { z as z43 } from "zod";
21292
+ import { z as z42 } from "zod";
21359
21293
 
21360
21294
  // ../blocks/src/lib/media.ts
21361
- import z40 from "zod";
21295
+ import z39 from "zod";
21362
21296
  var PUBLIC_DOWNLOAD_MEDIA_TYPES = [
21363
21297
  "document",
21364
21298
  "spreadsheet",
@@ -21366,52 +21300,52 @@ var PUBLIC_DOWNLOAD_MEDIA_TYPES = [
21366
21300
  "audio",
21367
21301
  "video"
21368
21302
  ];
21369
- var hotspotSchema2 = z40.object({
21370
- x: z40.number().min(0).max(1),
21371
- y: z40.number().min(0).max(1),
21372
- radius: z40.number().optional()
21373
- });
21374
- var rotationSchema2 = z40.union([z40.literal(0), z40.literal(90), z40.literal(180), z40.literal(270)]);
21375
- var rectSchema2 = z40.tuple([z40.number(), z40.number(), z40.number(), z40.number()]);
21376
- var aspectCropSchema2 = z40.object({
21377
- aspect: z40.preprocess((value) => value == null ? void 0 : value, z40.string().optional()),
21378
- rect: z40.preprocess((value) => value == null ? void 0 : value, rectSchema2.optional()),
21379
- hotspot: z40.preprocess((value) => value == null ? void 0 : value, hotspotSchema2.optional()),
21380
- rotation: z40.preprocess((value) => value == null ? void 0 : value, rotationSchema2.optional())
21381
- });
21382
- var transformSchema2 = z40.object({
21383
- aspectCrops: z40.preprocess((value) => {
21303
+ var hotspotSchema2 = z39.object({
21304
+ x: z39.number().min(0).max(1),
21305
+ y: z39.number().min(0).max(1),
21306
+ radius: z39.number().optional()
21307
+ });
21308
+ var rotationSchema2 = z39.union([z39.literal(0), z39.literal(90), z39.literal(180), z39.literal(270)]);
21309
+ var rectSchema2 = z39.tuple([z39.number(), z39.number(), z39.number(), z39.number()]);
21310
+ var aspectCropSchema2 = z39.object({
21311
+ aspect: z39.preprocess((value) => value == null ? void 0 : value, z39.string().optional()),
21312
+ rect: z39.preprocess((value) => value == null ? void 0 : value, rectSchema2.optional()),
21313
+ hotspot: z39.preprocess((value) => value == null ? void 0 : value, hotspotSchema2.optional()),
21314
+ rotation: z39.preprocess((value) => value == null ? void 0 : value, rotationSchema2.optional())
21315
+ });
21316
+ var transformSchema2 = z39.object({
21317
+ aspectCrops: z39.preprocess((value) => {
21384
21318
  if (!value || typeof value !== "object" || Array.isArray(value)) {
21385
21319
  return void 0;
21386
21320
  }
21387
21321
  return value;
21388
- }, z40.record(z40.string(), aspectCropSchema2.catch({}))).optional(),
21322
+ }, z39.record(z39.string(), aspectCropSchema2.catch({}))).optional(),
21389
21323
  rect: rectSchema2.optional(),
21390
21324
  hotspot: hotspotSchema2.optional(),
21391
21325
  rotation: rotationSchema2.optional()
21392
21326
  });
21393
- var mediaBaseSchema = z40.object({
21394
- purpose: z40.string().optional(),
21395
- placeholder: z40.boolean().default(true).optional(),
21396
- assetId: z40.string().optional(),
21397
- identifier: z40.string().optional(),
21398
- src: z40.string().optional(),
21399
- alt: z40.string().optional(),
21400
- filename: z40.string().optional(),
21401
- mimeType: z40.string().optional(),
21402
- width: z40.number().optional(),
21403
- height: z40.number().optional(),
21404
- storageBucket: z40.string().optional(),
21405
- storagePath: z40.string().optional(),
21327
+ var mediaBaseSchema = z39.object({
21328
+ purpose: z39.string().optional(),
21329
+ placeholder: z39.boolean().default(true).optional(),
21330
+ assetId: z39.string().optional(),
21331
+ identifier: z39.string().optional(),
21332
+ src: z39.string().optional(),
21333
+ alt: z39.string().optional(),
21334
+ filename: z39.string().optional(),
21335
+ mimeType: z39.string().optional(),
21336
+ width: z39.number().optional(),
21337
+ height: z39.number().optional(),
21338
+ storageBucket: z39.string().optional(),
21339
+ storagePath: z39.string().optional(),
21406
21340
  transform: transformSchema2.optional()
21407
21341
  });
21408
- var imageMediaSchema = mediaBaseSchema.extend({ type: z40.literal("image") });
21409
- var videoMediaSchema = mediaBaseSchema.extend({ type: z40.literal("video") });
21410
- var audioMediaSchema = mediaBaseSchema.extend({ type: z40.literal("audio") });
21411
- var documentMediaSchema = mediaBaseSchema.extend({ type: z40.literal("document") });
21412
- var spreadsheetMediaSchema = mediaBaseSchema.extend({ type: z40.literal("spreadsheet") });
21413
- var archiveMediaSchema = mediaBaseSchema.extend({ type: z40.literal("archive") });
21414
- var mediaSchema2 = z40.discriminatedUnion("type", [
21342
+ var imageMediaSchema = mediaBaseSchema.extend({ type: z39.literal("image") });
21343
+ var videoMediaSchema = mediaBaseSchema.extend({ type: z39.literal("video") });
21344
+ var audioMediaSchema = mediaBaseSchema.extend({ type: z39.literal("audio") });
21345
+ var documentMediaSchema = mediaBaseSchema.extend({ type: z39.literal("document") });
21346
+ var spreadsheetMediaSchema = mediaBaseSchema.extend({ type: z39.literal("spreadsheet") });
21347
+ var archiveMediaSchema = mediaBaseSchema.extend({ type: z39.literal("archive") });
21348
+ var mediaSchema2 = z39.discriminatedUnion("type", [
21415
21349
  imageMediaSchema,
21416
21350
  videoMediaSchema,
21417
21351
  audioMediaSchema,
@@ -21421,252 +21355,252 @@ var mediaSchema2 = z40.discriminatedUnion("type", [
21421
21355
  ]);
21422
21356
 
21423
21357
  // ../blocks/src/system/blocks/shared/bookingPaymentTerms.ts
21424
- import { z as z41 } from "zod";
21425
- var bookingDepositRefundPolicySchema = z41.enum([
21358
+ import { z as z40 } from "zod";
21359
+ var bookingDepositRefundPolicySchema = z40.enum([
21426
21360
  "refundable",
21427
21361
  "non_refundable"
21428
21362
  ]);
21429
- var bookingInstalmentPlanSchema = z41.union([
21430
- z41.object({
21431
- kind: z41.literal("deposit_plus_one_remainder"),
21432
- depositAmountCents: z41.number().int().min(0),
21363
+ var bookingInstalmentPlanSchema = z40.union([
21364
+ z40.object({
21365
+ kind: z40.literal("deposit_plus_one_remainder"),
21366
+ depositAmountCents: z40.number().int().min(0),
21433
21367
  depositRefundability: bookingDepositRefundPolicySchema,
21434
- remainderDueCount: z41.number().int().positive(),
21435
- intervalUnit: z41.enum(["day", "week", "month"])
21368
+ remainderDueCount: z40.number().int().positive(),
21369
+ intervalUnit: z40.enum(["day", "week", "month"])
21436
21370
  }),
21437
- z41.object({
21438
- kind: z41.literal("deposit_plus_scheduled_instalments"),
21439
- depositAmountCents: z41.number().int().min(0),
21371
+ z40.object({
21372
+ kind: z40.literal("deposit_plus_scheduled_instalments"),
21373
+ depositAmountCents: z40.number().int().min(0),
21440
21374
  depositRefundability: bookingDepositRefundPolicySchema,
21441
- instalmentCount: z41.number().int().positive(),
21442
- intervalCount: z41.number().int().positive(),
21443
- intervalUnit: z41.enum(["day", "week", "month"])
21375
+ instalmentCount: z40.number().int().positive(),
21376
+ intervalCount: z40.number().int().positive(),
21377
+ intervalUnit: z40.enum(["day", "week", "month"])
21444
21378
  }),
21445
- z41.object({
21446
- kind: z41.literal("equal_scheduled_instalments"),
21447
- instalmentCount: z41.number().int().positive(),
21448
- intervalCount: z41.number().int().positive(),
21449
- intervalUnit: z41.enum(["day", "week", "month"])
21379
+ z40.object({
21380
+ kind: z40.literal("equal_scheduled_instalments"),
21381
+ instalmentCount: z40.number().int().positive(),
21382
+ intervalCount: z40.number().int().positive(),
21383
+ intervalUnit: z40.enum(["day", "week", "month"])
21450
21384
  })
21451
21385
  ]);
21452
- var bookingFlexibleBalanceDueDateRuleSchema = z41.union([
21453
- z41.object({
21454
- kind: z41.literal("relative_to_start_date"),
21455
- daysBeforeStart: z41.number().int().positive()
21386
+ var bookingFlexibleBalanceDueDateRuleSchema = z40.union([
21387
+ z40.object({
21388
+ kind: z40.literal("relative_to_start_date"),
21389
+ daysBeforeStart: z40.number().int().positive()
21456
21390
  }),
21457
- z41.object({
21458
- kind: z41.literal("fixed_calendar_date"),
21459
- dueAt: z41.string().datetime()
21391
+ z40.object({
21392
+ kind: z40.literal("fixed_calendar_date"),
21393
+ dueAt: z40.string().datetime()
21460
21394
  })
21461
21395
  ]);
21462
- var bookingFlexibleBalanceConfigSchema = z41.object({
21463
- upfrontAmountCents: z41.number().int().min(0),
21396
+ var bookingFlexibleBalanceConfigSchema = z40.object({
21397
+ upfrontAmountCents: z40.number().int().min(0),
21464
21398
  dueDateRule: bookingFlexibleBalanceDueDateRuleSchema,
21465
21399
  depositRefundability: bookingDepositRefundPolicySchema
21466
21400
  });
21467
- var blockBookingPaymentCollectionOptionSchema = z41.union([
21468
- z41.object({
21469
- kind: z41.literal("upfront")
21401
+ var blockBookingPaymentCollectionOptionSchema = z40.union([
21402
+ z40.object({
21403
+ kind: z40.literal("upfront")
21470
21404
  }),
21471
- z41.object({
21472
- kind: z41.literal("deferred_manual")
21405
+ z40.object({
21406
+ kind: z40.literal("deferred_manual")
21473
21407
  }),
21474
- z41.object({
21475
- kind: z41.literal("instalment_plan"),
21408
+ z40.object({
21409
+ kind: z40.literal("instalment_plan"),
21476
21410
  plan: bookingInstalmentPlanSchema
21477
21411
  }),
21478
- z41.object({
21479
- kind: z41.literal("flexible_balance"),
21412
+ z40.object({
21413
+ kind: z40.literal("flexible_balance"),
21480
21414
  config: bookingFlexibleBalanceConfigSchema
21481
21415
  })
21482
21416
  ]);
21483
- var blockBookingPaymentTermsSchema = z41.object({
21484
- allowedOptions: z41.array(blockBookingPaymentCollectionOptionSchema).min(1)
21417
+ var blockBookingPaymentTermsSchema = z40.object({
21418
+ allowedOptions: z40.array(blockBookingPaymentCollectionOptionSchema).min(1)
21485
21419
  });
21486
21420
 
21487
21421
  // ../blocks/src/system/blocks/courses/shared/schemas.ts
21488
- import { z as z42 } from "zod";
21489
- var courseVenueSchema = z42.object({
21490
- id: z42.string(),
21491
- name: z42.string(),
21492
- address: z42.string().nullable()
21422
+ import { z as z41 } from "zod";
21423
+ var courseVenueSchema = z41.object({
21424
+ id: z41.string(),
21425
+ name: z41.string(),
21426
+ address: z41.string().nullable()
21427
+ });
21428
+ var courseSessionSchema = z41.object({
21429
+ id: z41.string(),
21430
+ startsAt: z41.string(),
21431
+ endsAt: z41.string(),
21432
+ timeZone: z41.string(),
21433
+ capacityOverride: z41.number().nullable().optional(),
21434
+ overrides: z41.record(z41.string(), z41.unknown()).nullable().optional()
21435
+ });
21436
+ var courseTeamMemberSummarySchema = z41.object({
21437
+ id: z41.string(),
21438
+ name: z41.string(),
21439
+ roleLabel: z41.string().nullable(),
21440
+ summary: z41.string().nullable(),
21441
+ profilePath: z41.string().nullable()
21442
+ });
21443
+ var coursePricingOptionSchema = z41.object({
21444
+ id: z41.string(),
21445
+ name: z41.string(),
21446
+ description: z41.string().nullable(),
21447
+ priceAmount: z41.number(),
21448
+ isActive: z41.boolean(),
21449
+ sortOrder: z41.number(),
21450
+ capacityLimit: z41.number().nullable(),
21451
+ saleStartsAt: z41.string().nullable(),
21452
+ saleEndsAt: z41.string().nullable(),
21453
+ attendanceScope: z41.enum(["in_person", "online", "both"]).nullable().optional()
21454
+ });
21455
+ var coursePricingSchema = z41.object({
21456
+ bookingRequirement: z41.enum(["none", "required"]),
21457
+ pricingStrategy: z41.enum(["free", "single", "tiered"]),
21458
+ currency: z41.string(),
21459
+ singlePriceAmount: z41.number().nullable(),
21460
+ paymentTerms: blockBookingPaymentTermsSchema,
21461
+ options: z41.array(coursePricingOptionSchema)
21462
+ });
21463
+ var publicCourseSchema = z41.object({
21464
+ id: z41.string(),
21465
+ title: z41.string(),
21466
+ slug: z41.string(),
21467
+ description: z41.unknown().nullable(),
21468
+ teamMembers: z41.array(courseTeamMemberSummarySchema).optional(),
21469
+ enrollmentOpen: z41.boolean(),
21470
+ pricing: coursePricingSchema.optional(),
21471
+ priceCents: z41.number().nullable(),
21472
+ currency: z41.string(),
21473
+ paymentTerms: blockBookingPaymentTermsSchema,
21474
+ enrollmentCapacity: z41.number().nullable(),
21475
+ acceptsMemberships: z41.boolean(),
21476
+ status: z41.enum(["active", "draft", "cancelled"]),
21477
+ sessionsCount: z41.number(),
21478
+ enrolledCount: z41.number(),
21479
+ availableSpots: z41.number().nullable(),
21480
+ sessions: z41.array(courseSessionSchema),
21481
+ venue: courseVenueSchema.nullable(),
21482
+ contentEntryId: z41.string().nullable()
21493
21483
  });
21494
- var courseSessionSchema = z42.object({
21484
+ var publicCoursesArraySchema = z41.array(publicCourseSchema);
21485
+
21486
+ // ../blocks/src/system/blocks/events/shared/schemas.ts
21487
+ var eventPresetSchema = z42.enum(["event", "class", "workshop", "retreat", "performance"]);
21488
+ var eventScheduleScopeSchema = z42.enum(["recurring", "oneOff"]);
21489
+ var eventVenueSchema = z42.object({
21495
21490
  id: z42.string(),
21496
- startsAt: z42.string(),
21497
- endsAt: z42.string(),
21498
- timeZone: z42.string(),
21499
- capacityOverride: z42.number().nullable().optional(),
21500
- overrides: z42.record(z42.string(), z42.unknown()).nullable().optional()
21491
+ name: z42.string(),
21492
+ address: z42.string().nullable(),
21493
+ location: z42.object({
21494
+ lat: z42.number(),
21495
+ lng: z42.number()
21496
+ }).nullable()
21501
21497
  });
21502
- var courseTeamMemberSummarySchema = z42.object({
21498
+ var eventCategorySchema = z42.object({
21503
21499
  id: z42.string(),
21504
21500
  name: z42.string(),
21505
- roleLabel: z42.string().nullable(),
21506
- summary: z42.string().nullable(),
21507
- profilePath: z42.string().nullable()
21501
+ color: z42.string().nullable()
21508
21502
  });
21509
- var coursePricingOptionSchema = z42.object({
21503
+ var pricingTypeSchema = z42.enum(["free", "paid", "pass_only", "membership_only"]);
21504
+ var accessRestrictionSchema = z42.enum(["none", "category"]);
21505
+ var eventPricingModeSchema = z42.enum(["single", "ticket_types"]);
21506
+ var publicEventAttendanceModeSchema = z42.enum(["in_person", "online"]);
21507
+ var publicEventAttendanceModeAvailabilitySchema = z42.object({
21508
+ mode: publicEventAttendanceModeSchema,
21509
+ capacity: z42.number().nullable(),
21510
+ registeredCount: z42.number(),
21511
+ availableSpots: z42.number().nullable(),
21512
+ waitlistEnabled: z42.boolean()
21513
+ });
21514
+ var publicEventTicketTypeAvailabilitySchema = z42.union([
21515
+ z42.object({
21516
+ kind: z42.literal("available"),
21517
+ remainingCapacity: z42.number().nullable()
21518
+ }),
21519
+ z42.object({
21520
+ kind: z42.literal("unavailable"),
21521
+ reason: z42.enum(["inactive", "not_on_sale_yet", "sale_ended", "sold_out", "event_sold_out"]),
21522
+ remainingCapacity: z42.number().nullable()
21523
+ })
21524
+ ]);
21525
+ var publicEventTicketTypeSchema = z42.object({
21510
21526
  id: z42.string(),
21527
+ siteId: z42.string(),
21528
+ eventSeriesId: z42.string(),
21511
21529
  name: z42.string(),
21512
21530
  description: z42.string().nullable(),
21513
21531
  priceAmount: z42.number(),
21514
21532
  isActive: z42.boolean(),
21515
21533
  sortOrder: z42.number(),
21534
+ capacityMode: z42.enum(["limited", "unlimited"]),
21516
21535
  capacityLimit: z42.number().nullable(),
21536
+ attendanceScope: z42.enum(["in_person", "online", "both"]).optional(),
21517
21537
  saleStartsAt: z42.string().nullable(),
21518
21538
  saleEndsAt: z42.string().nullable(),
21519
- attendanceScope: z42.enum(["in_person", "online", "both"]).nullable().optional()
21520
- });
21521
- var coursePricingSchema = z42.object({
21522
- bookingRequirement: z42.enum(["none", "required"]),
21523
- pricingStrategy: z42.enum(["free", "single", "tiered"]),
21524
- currency: z42.string(),
21525
- singlePriceAmount: z42.number().nullable(),
21526
- paymentTerms: blockBookingPaymentTermsSchema,
21527
- options: z42.array(coursePricingOptionSchema)
21528
- });
21529
- var publicCourseSchema = z42.object({
21530
- id: z42.string(),
21531
- title: z42.string(),
21532
- slug: z42.string(),
21533
- description: z42.unknown().nullable(),
21534
- teamMembers: z42.array(courseTeamMemberSummarySchema).optional(),
21535
- enrollmentOpen: z42.boolean(),
21536
- pricing: coursePricingSchema.optional(),
21537
- priceCents: z42.number().nullable(),
21538
- currency: z42.string(),
21539
- paymentTerms: blockBookingPaymentTermsSchema,
21540
- enrollmentCapacity: z42.number().nullable(),
21541
- acceptsMemberships: z42.boolean(),
21542
- status: z42.enum(["active", "draft", "cancelled"]),
21543
- sessionsCount: z42.number(),
21544
- enrolledCount: z42.number(),
21545
- availableSpots: z42.number().nullable(),
21546
- sessions: z42.array(courseSessionSchema),
21547
- venue: courseVenueSchema.nullable(),
21548
- contentEntryId: z42.string().nullable()
21549
- });
21550
- var publicCoursesArraySchema = z42.array(publicCourseSchema);
21551
-
21552
- // ../blocks/src/system/blocks/events/shared/schemas.ts
21553
- var eventPresetSchema = z43.enum(["event", "class", "workshop", "retreat", "performance"]);
21554
- var eventScheduleScopeSchema = z43.enum(["recurring", "oneOff"]);
21555
- var eventVenueSchema = z43.object({
21556
- id: z43.string(),
21557
- name: z43.string(),
21558
- address: z43.string().nullable(),
21559
- location: z43.object({
21560
- lat: z43.number(),
21561
- lng: z43.number()
21562
- }).nullable()
21563
- });
21564
- var eventCategorySchema = z43.object({
21565
- id: z43.string(),
21566
- name: z43.string(),
21567
- color: z43.string().nullable()
21568
- });
21569
- var pricingTypeSchema = z43.enum(["free", "paid", "pass_only", "membership_only"]);
21570
- var accessRestrictionSchema = z43.enum(["none", "category"]);
21571
- var eventPricingModeSchema = z43.enum(["single", "ticket_types"]);
21572
- var publicEventAttendanceModeSchema = z43.enum(["in_person", "online"]);
21573
- var publicEventAttendanceModeAvailabilitySchema = z43.object({
21574
- mode: publicEventAttendanceModeSchema,
21575
- capacity: z43.number().nullable(),
21576
- registeredCount: z43.number(),
21577
- availableSpots: z43.number().nullable(),
21578
- waitlistEnabled: z43.boolean()
21579
- });
21580
- var publicEventTicketTypeAvailabilitySchema = z43.union([
21581
- z43.object({
21582
- kind: z43.literal("available"),
21583
- remainingCapacity: z43.number().nullable()
21584
- }),
21585
- z43.object({
21586
- kind: z43.literal("unavailable"),
21587
- reason: z43.enum(["inactive", "not_on_sale_yet", "sale_ended", "sold_out", "event_sold_out"]),
21588
- remainingCapacity: z43.number().nullable()
21589
- })
21590
- ]);
21591
- var publicEventTicketTypeSchema = z43.object({
21592
- id: z43.string(),
21593
- siteId: z43.string(),
21594
- eventSeriesId: z43.string(),
21595
- name: z43.string(),
21596
- description: z43.string().nullable(),
21597
- priceAmount: z43.number(),
21598
- isActive: z43.boolean(),
21599
- sortOrder: z43.number(),
21600
- capacityMode: z43.enum(["limited", "unlimited"]),
21601
- capacityLimit: z43.number().nullable(),
21602
- attendanceScope: z43.enum(["in_person", "online", "both"]).optional(),
21603
- saleStartsAt: z43.string().nullable(),
21604
- saleEndsAt: z43.string().nullable(),
21605
21539
  availability: publicEventTicketTypeAvailabilitySchema,
21606
- createdAt: z43.string(),
21607
- updatedAt: z43.string()
21540
+ createdAt: z42.string(),
21541
+ updatedAt: z42.string()
21608
21542
  });
21609
- var publicTeamMemberSummarySchema = z43.object({
21610
- id: z43.string(),
21611
- name: z43.string(),
21612
- roleLabel: z43.string().nullable(),
21613
- summary: z43.string().nullable(),
21614
- profilePath: z43.string().nullable()
21543
+ var publicTeamMemberSummarySchema = z42.object({
21544
+ id: z42.string(),
21545
+ name: z42.string(),
21546
+ roleLabel: z42.string().nullable(),
21547
+ summary: z42.string().nullable(),
21548
+ profilePath: z42.string().nullable()
21615
21549
  });
21616
- var publicEventSchema = z43.object({
21617
- kind: z43.enum(["event", "course_session"]).optional(),
21550
+ var publicEventSchema = z42.object({
21551
+ kind: z42.enum(["event", "course_session"]).optional(),
21618
21552
  eventPreset: eventPresetSchema.optional(),
21619
21553
  scheduleScope: eventScheduleScopeSchema.optional(),
21620
- id: z43.string(),
21621
- occurrenceId: z43.string(),
21622
- seriesId: z43.string(),
21623
- title: z43.string(),
21624
- description: z43.string().nullable(),
21625
- presentation: z43.object({
21626
- cardTitleOverride: z43.string().nullable().optional(),
21627
- summary: z43.string().nullable().optional(),
21554
+ id: z42.string(),
21555
+ occurrenceId: z42.string(),
21556
+ seriesId: z42.string(),
21557
+ title: z42.string(),
21558
+ description: z42.string().nullable(),
21559
+ presentation: z42.object({
21560
+ cardTitleOverride: z42.string().nullable().optional(),
21561
+ summary: z42.string().nullable().optional(),
21628
21562
  image: mediaSchema2.nullable().optional(),
21629
- tags: z43.array(z43.string()).optional(),
21630
- ctaLabel: z43.string().nullable().optional(),
21631
- badges: z43.array(z43.string()).optional()
21563
+ tags: z42.array(z42.string()).optional(),
21564
+ ctaLabel: z42.string().nullable().optional(),
21565
+ badges: z42.array(z42.string()).optional()
21632
21566
  }).optional(),
21633
- slug: z43.string(),
21634
- path: z43.string(),
21635
- requiresRegistration: z43.boolean(),
21636
- deliveryMode: z43.enum(["in_person", "online", "hybrid"]),
21637
- attendanceModes: z43.array(publicEventAttendanceModeAvailabilitySchema),
21638
- startsAt: z43.string(),
21639
- endsAt: z43.string(),
21640
- capacity: z43.number().nullable(),
21641
- registeredCount: z43.number(),
21642
- availableSpots: z43.number().nullable(),
21643
- waitlistEnabled: z43.boolean(),
21567
+ slug: z42.string(),
21568
+ path: z42.string(),
21569
+ requiresRegistration: z42.boolean(),
21570
+ deliveryMode: z42.enum(["in_person", "online", "hybrid"]),
21571
+ attendanceModes: z42.array(publicEventAttendanceModeAvailabilitySchema),
21572
+ startsAt: z42.string(),
21573
+ endsAt: z42.string(),
21574
+ capacity: z42.number().nullable(),
21575
+ registeredCount: z42.number(),
21576
+ availableSpots: z42.number().nullable(),
21577
+ waitlistEnabled: z42.boolean(),
21644
21578
  venue: eventVenueSchema.nullable(),
21645
21579
  eventCategory: eventCategorySchema.nullable(),
21646
- teamMembers: z43.array(publicTeamMemberSummarySchema).optional(),
21647
- status: z43.enum(["active", "draft", "archived"]).optional(),
21648
- timeZone: z43.string(),
21580
+ teamMembers: z42.array(publicTeamMemberSummarySchema).optional(),
21581
+ status: z42.enum(["active", "draft", "archived"]).optional(),
21582
+ timeZone: z42.string(),
21649
21583
  // Pricing & access fields
21650
21584
  pricingType: pricingTypeSchema,
21651
- price: z43.number().nullable(),
21652
- currency: z43.string(),
21585
+ price: z42.number().nullable(),
21586
+ currency: z42.string(),
21653
21587
  paymentTerms: blockBookingPaymentTermsSchema,
21654
21588
  pricingMode: eventPricingModeSchema.optional(),
21655
- ticketTypes: z43.array(publicEventTicketTypeSchema).optional(),
21589
+ ticketTypes: z42.array(publicEventTicketTypeSchema).optional(),
21656
21590
  accessRestriction: accessRestrictionSchema,
21657
- allowedCategoryIds: z43.array(z43.string()),
21658
- requireGuestDetails: z43.boolean().optional(),
21659
- acceptsPasses: z43.boolean().optional(),
21660
- acceptsMemberships: z43.boolean().optional(),
21661
- course: z43.object({
21662
- id: z43.string(),
21591
+ allowedCategoryIds: z42.array(z42.string()),
21592
+ requireGuestDetails: z42.boolean().optional(),
21593
+ acceptsPasses: z42.boolean().optional(),
21594
+ acceptsMemberships: z42.boolean().optional(),
21595
+ course: z42.object({
21596
+ id: z42.string(),
21663
21597
  pricing: coursePricingSchema.optional(),
21664
- priceCents: z43.number().nullable(),
21665
- currency: z43.string(),
21666
- enrollmentOpen: z43.boolean()
21598
+ priceCents: z42.number().nullable(),
21599
+ currency: z42.string(),
21600
+ enrollmentOpen: z42.boolean()
21667
21601
  }).nullable().optional()
21668
21602
  });
21669
- var publicEventsArraySchema = z43.array(publicEventSchema);
21603
+ var publicEventsArraySchema = z42.array(publicEventSchema);
21670
21604
 
21671
21605
  // ../blocks/src/system/blocks/events/shared/fields.ts
21672
21606
  var cardStylingFields = [
@@ -21870,83 +21804,83 @@ function normalizeEventStaffMemberId(value) {
21870
21804
  }
21871
21805
 
21872
21806
  // ../blocks/src/system/blocks/event-registration.shared.ts
21873
- import { z as z44 } from "zod";
21874
- var occurrenceContextSchema = z44.object({
21875
- id: z44.string(),
21876
- seriesId: z44.string(),
21877
- startsAt: z44.string(),
21878
- endsAt: z44.string(),
21879
- timeZone: z44.string(),
21880
- capacityOverride: z44.number().nullable().optional(),
21881
- overrides: z44.record(z44.string(), z44.unknown()).nullable().optional()
21807
+ import { z as z43 } from "zod";
21808
+ var occurrenceContextSchema = z43.object({
21809
+ id: z43.string(),
21810
+ seriesId: z43.string(),
21811
+ startsAt: z43.string(),
21812
+ endsAt: z43.string(),
21813
+ timeZone: z43.string(),
21814
+ capacityOverride: z43.number().nullable().optional(),
21815
+ overrides: z43.record(z43.string(), z43.unknown()).nullable().optional()
21882
21816
  }).nullable();
21883
21817
 
21884
21818
  // ../blocks/src/system/runtime/nodes/event-registration.interactive.ts
21885
- import { z as z46 } from "zod";
21819
+ import { z as z45 } from "zod";
21886
21820
 
21887
21821
  // ../blocks/src/system/runtime/nodes/shared/contract-schemas.ts
21888
- import { z as z45 } from "zod";
21889
- var previewStageSchema = z45.enum(["preview", "published"]);
21890
- var registrationButtonVariantSchema = z45.enum(["primary", "secondary", "outline"]);
21891
- var eventButtonVariantSchema = z45.enum(["primary", "secondary", "outline", "link"]);
21892
- var eventLayoutSchema = z45.enum(["grid", "stack", "compact"]);
21893
- var columnOptionSchema = z45.enum(["2", "3", "4"]);
21894
- var weekStartSchema = z45.enum(["sunday", "monday"]);
21895
- var filterAutoShowSchema = z45.enum(["auto", "always", "never"]);
21896
- var calendarTabViewsSchema = z45.enum(["both", "month", "week"]);
21822
+ import { z as z44 } from "zod";
21823
+ var previewStageSchema = z44.enum(["preview", "published"]);
21824
+ var registrationButtonVariantSchema = z44.enum(["primary", "secondary", "outline"]);
21825
+ var eventButtonVariantSchema = z44.enum(["primary", "secondary", "outline", "link"]);
21826
+ var eventLayoutSchema = z44.enum(["grid", "stack", "compact"]);
21827
+ var columnOptionSchema = z44.enum(["2", "3", "4"]);
21828
+ var weekStartSchema = z44.enum(["sunday", "monday"]);
21829
+ var filterAutoShowSchema = z44.enum(["auto", "always", "never"]);
21830
+ var calendarTabViewsSchema = z44.enum(["both", "month", "week"]);
21897
21831
 
21898
21832
  // ../blocks/src/system/runtime/nodes/event-registration.interactive.ts
21899
- var contentEntrySchema = z46.object({
21900
- id: z46.string(),
21901
- slug: z46.string(),
21902
- contentTypeSlug: z46.string()
21903
- });
21904
- var eventRegistrationSourceSchema = z46.object({
21905
- siteId: z46.string().optional(),
21906
- apiBaseUrl: z46.string().optional(),
21907
- portalToken: z46.string().nullable().optional(),
21833
+ var contentEntrySchema = z45.object({
21834
+ id: z45.string(),
21835
+ slug: z45.string(),
21836
+ contentTypeSlug: z45.string()
21837
+ });
21838
+ var eventRegistrationSourceSchema = z45.object({
21839
+ siteId: z45.string().optional(),
21840
+ apiBaseUrl: z45.string().optional(),
21841
+ portalToken: z45.string().nullable().optional(),
21908
21842
  occurrenceContext: occurrenceContextSchema.optional(),
21909
21843
  contentEntry: contentEntrySchema.nullable().optional(),
21910
- events: z46.array(publicEventSchema).nullable().optional(),
21911
- className: z46.string().nullable().optional(),
21912
- buttonText: z46.string().nullable().optional(),
21913
- maxTickets: z46.string().nullable().optional(),
21914
- showVenue: z46.boolean().optional(),
21915
- showCapacity: z46.boolean().optional(),
21916
- successMessage: z46.string().optional(),
21917
- waitlistMessage: z46.string().optional(),
21844
+ events: z45.array(publicEventSchema).nullable().optional(),
21845
+ className: z45.string().nullable().optional(),
21846
+ buttonText: z45.string().nullable().optional(),
21847
+ maxTickets: z45.string().nullable().optional(),
21848
+ showVenue: z45.boolean().optional(),
21849
+ showCapacity: z45.boolean().optional(),
21850
+ successMessage: z45.string().optional(),
21851
+ waitlistMessage: z45.string().optional(),
21918
21852
  buttonVariant: registrationButtonVariantSchema.optional(),
21919
- spamProtectionEnabled: z46.boolean().optional(),
21853
+ spamProtectionEnabled: z45.boolean().optional(),
21920
21854
  stage: previewStageSchema.optional(),
21921
- supportEmail: z46.string().optional()
21855
+ supportEmail: z45.string().optional()
21922
21856
  });
21923
- var eventRegistrationDisplaySchema = z46.object({
21924
- kind: z46.literal("event-registration"),
21925
- state: z46.literal("shell"),
21926
- className: z46.string().nullable(),
21927
- summaryButtonText: z46.string()
21857
+ var eventRegistrationDisplaySchema = z45.object({
21858
+ kind: z45.literal("event-registration"),
21859
+ state: z45.literal("shell"),
21860
+ className: z45.string().nullable(),
21861
+ summaryButtonText: z45.string()
21928
21862
  });
21929
- var eventRegistrationHydrationSchema = z46.object({
21863
+ var eventRegistrationHydrationSchema = z45.object({
21930
21864
  occurrenceContext: occurrenceContextSchema.optional(),
21931
21865
  contentEntry: contentEntrySchema.nullable().optional(),
21932
- events: z46.array(publicEventSchema).nullable().optional(),
21933
- maxTickets: z46.string().optional(),
21934
- showVenue: z46.boolean().optional(),
21935
- showCapacity: z46.boolean().optional(),
21936
- successMessage: z46.string().optional(),
21937
- waitlistMessage: z46.string().optional(),
21866
+ events: z45.array(publicEventSchema).nullable().optional(),
21867
+ maxTickets: z45.string().optional(),
21868
+ showVenue: z45.boolean().optional(),
21869
+ showCapacity: z45.boolean().optional(),
21870
+ successMessage: z45.string().optional(),
21871
+ waitlistMessage: z45.string().optional(),
21938
21872
  buttonVariant: registrationButtonVariantSchema.optional(),
21939
- spamProtectionEnabled: z46.boolean().optional(),
21940
- supportEmail: z46.string().optional()
21873
+ spamProtectionEnabled: z45.boolean().optional(),
21874
+ supportEmail: z45.string().optional()
21941
21875
  });
21942
- var eventRegistrationRenderSchema = z46.object({
21876
+ var eventRegistrationRenderSchema = z45.object({
21943
21877
  display: eventRegistrationDisplaySchema,
21944
21878
  hydration: eventRegistrationHydrationSchema
21945
21879
  });
21946
- var eventRegistrationIslandMetaCodec = createZodCodec(z46.object({
21947
- siteId: z46.string().optional(),
21948
- apiBaseUrl: z46.string().optional(),
21949
- portalToken: z46.string().nullable().optional(),
21880
+ var eventRegistrationIslandMetaCodec = createZodCodec(z45.object({
21881
+ siteId: z45.string().optional(),
21882
+ apiBaseUrl: z45.string().optional(),
21883
+ portalToken: z45.string().nullable().optional(),
21950
21884
  stage: previewStageSchema.optional()
21951
21885
  }));
21952
21886
  var eventRegistrationIslandMetaKeys = defineInteractiveIslandMetaKeys(
@@ -22163,7 +22097,7 @@ var eventRegistrationBlockDefinition = {
22163
22097
  manifest: eventRegistrationManifest,
22164
22098
  runtime: eventRegistrationBlockRuntime,
22165
22099
  dataSchemas: {
22166
- events: z47.array(publicEventSchema).optional(),
22100
+ events: z46.array(publicEventSchema).optional(),
22167
22101
  occurrenceContext: occurrenceContextSchema.optional()
22168
22102
  },
22169
22103
  dataLoaders: {
@@ -22186,72 +22120,72 @@ var eventRegistrationBlockDefinition = {
22186
22120
  };
22187
22121
 
22188
22122
  // ../blocks/src/system/runtime/nodes/course-registration.interactive.ts
22189
- import { z as z48 } from "zod";
22190
- var contentEntrySchema2 = z48.object({
22191
- id: z48.string(),
22192
- slug: z48.string(),
22193
- contentTypeSlug: z48.string()
22194
- });
22195
- var courseEntrySubrouteContextSchema = z48.union([
22196
- z48.object({
22197
- kind: z48.literal("course-run"),
22198
- run: z48.object({
22199
- courseId: z48.string(),
22200
- seriesId: z48.string(),
22201
- runSlug: z48.string()
22123
+ import { z as z47 } from "zod";
22124
+ var contentEntrySchema2 = z47.object({
22125
+ id: z47.string(),
22126
+ slug: z47.string(),
22127
+ contentTypeSlug: z47.string()
22128
+ });
22129
+ var courseEntrySubrouteContextSchema = z47.union([
22130
+ z47.object({
22131
+ kind: z47.literal("course-run"),
22132
+ run: z47.object({
22133
+ courseId: z47.string(),
22134
+ seriesId: z47.string(),
22135
+ runSlug: z47.string()
22202
22136
  })
22203
22137
  }),
22204
- z48.object({
22205
- kind: z48.literal("event-occurrence"),
22138
+ z47.object({
22139
+ kind: z47.literal("event-occurrence"),
22206
22140
  occurrence: occurrenceContextSchema
22207
22141
  })
22208
22142
  ]);
22209
- var courseRegistrationSourceSchema = z48.object({
22210
- siteId: z48.string().optional(),
22211
- apiBaseUrl: z48.string().optional(),
22212
- portalToken: z48.string().nullable().optional(),
22143
+ var courseRegistrationSourceSchema = z47.object({
22144
+ siteId: z47.string().optional(),
22145
+ apiBaseUrl: z47.string().optional(),
22146
+ portalToken: z47.string().nullable().optional(),
22213
22147
  contentEntry: contentEntrySchema2.nullable().optional(),
22214
22148
  entrySubrouteContext: courseEntrySubrouteContextSchema.nullable().optional(),
22215
- courses: z48.array(publicCourseSchema).nullable().optional(),
22216
- className: z48.string().nullable().optional(),
22217
- showSessions: z48.boolean().optional(),
22218
- showPrice: z48.boolean().optional(),
22219
- showCapacity: z48.boolean().optional(),
22220
- showVenue: z48.boolean().optional(),
22221
- successMessage: z48.string().optional(),
22222
- waitlistMessage: z48.string().optional(),
22223
- membershipMessage: z48.string().optional(),
22224
- buttonText: z48.string().nullable().optional(),
22149
+ courses: z47.array(publicCourseSchema).nullable().optional(),
22150
+ className: z47.string().nullable().optional(),
22151
+ showSessions: z47.boolean().optional(),
22152
+ showPrice: z47.boolean().optional(),
22153
+ showCapacity: z47.boolean().optional(),
22154
+ showVenue: z47.boolean().optional(),
22155
+ successMessage: z47.string().optional(),
22156
+ waitlistMessage: z47.string().optional(),
22157
+ membershipMessage: z47.string().optional(),
22158
+ buttonText: z47.string().nullable().optional(),
22225
22159
  buttonVariant: registrationButtonVariantSchema.optional(),
22226
22160
  stage: previewStageSchema.optional()
22227
22161
  });
22228
- var courseRegistrationDisplaySchema = z48.object({
22229
- kind: z48.literal("course-registration"),
22230
- state: z48.literal("shell"),
22231
- className: z48.string().nullable(),
22232
- summaryButtonText: z48.string()
22162
+ var courseRegistrationDisplaySchema = z47.object({
22163
+ kind: z47.literal("course-registration"),
22164
+ state: z47.literal("shell"),
22165
+ className: z47.string().nullable(),
22166
+ summaryButtonText: z47.string()
22233
22167
  });
22234
- var courseRegistrationHydrationSchema = z48.object({
22168
+ var courseRegistrationHydrationSchema = z47.object({
22235
22169
  contentEntry: contentEntrySchema2.nullable().optional(),
22236
22170
  entrySubrouteContext: courseEntrySubrouteContextSchema.nullable().optional(),
22237
- courses: z48.array(publicCourseSchema).nullable().optional(),
22238
- showSessions: z48.boolean().optional(),
22239
- showPrice: z48.boolean().optional(),
22240
- showCapacity: z48.boolean().optional(),
22241
- showVenue: z48.boolean().optional(),
22242
- successMessage: z48.string().optional(),
22243
- waitlistMessage: z48.string().optional(),
22244
- membershipMessage: z48.string().optional(),
22171
+ courses: z47.array(publicCourseSchema).nullable().optional(),
22172
+ showSessions: z47.boolean().optional(),
22173
+ showPrice: z47.boolean().optional(),
22174
+ showCapacity: z47.boolean().optional(),
22175
+ showVenue: z47.boolean().optional(),
22176
+ successMessage: z47.string().optional(),
22177
+ waitlistMessage: z47.string().optional(),
22178
+ membershipMessage: z47.string().optional(),
22245
22179
  buttonVariant: registrationButtonVariantSchema.optional()
22246
22180
  });
22247
- var courseRegistrationRenderSchema = z48.object({
22181
+ var courseRegistrationRenderSchema = z47.object({
22248
22182
  display: courseRegistrationDisplaySchema,
22249
22183
  hydration: courseRegistrationHydrationSchema
22250
22184
  });
22251
- var courseRegistrationIslandMetaCodec = createZodCodec(z48.object({
22252
- siteId: z48.string().optional(),
22253
- apiBaseUrl: z48.string().optional(),
22254
- portalToken: z48.string().nullable().optional(),
22185
+ var courseRegistrationIslandMetaCodec = createZodCodec(z47.object({
22186
+ siteId: z47.string().optional(),
22187
+ apiBaseUrl: z47.string().optional(),
22188
+ portalToken: z47.string().nullable().optional(),
22255
22189
  stage: previewStageSchema.optional()
22256
22190
  }));
22257
22191
  var courseRegistrationIslandMetaKeys = defineInteractiveIslandMetaKeys(
@@ -22511,32 +22445,32 @@ var courseRegistrationBlockDefinition = {
22511
22445
  };
22512
22446
 
22513
22447
  // ../blocks/src/system/blocks/event-details.ts
22514
- import { z as z50 } from "zod";
22448
+ import { z as z49 } from "zod";
22515
22449
 
22516
22450
  // ../blocks/src/system/blocks/shop.shared.ts
22517
- import { z as z49 } from "zod";
22518
- var publicPassProductSchema = z49.object({
22519
- id: z49.string(),
22520
- productUseCase: z49.enum(["event_pass", "appointment_package"]).default("event_pass"),
22521
- name: z49.string(),
22522
- description: z49.string().nullable(),
22523
- price: z49.number(),
22524
- currency: z49.string(),
22525
- creditsTotal: z49.number(),
22526
- pricePerCredit: z49.number(),
22527
- validDays: z49.number().nullable(),
22528
- eligibleCategoryIds: z49.array(z49.string()),
22529
- eligibleCategoryNames: z49.array(z49.string())
22530
- });
22531
- var publicMembershipProductSchema = z49.object({
22532
- id: z49.string(),
22533
- name: z49.string(),
22534
- description: z49.string().nullable(),
22535
- price: z49.number(),
22536
- currency: z49.string(),
22537
- billingInterval: z49.enum(["month", "year"]),
22538
- eligibleCategoryIds: z49.array(z49.string()),
22539
- eligibleCategoryNames: z49.array(z49.string())
22451
+ import { z as z48 } from "zod";
22452
+ var publicPassProductSchema = z48.object({
22453
+ id: z48.string(),
22454
+ productUseCase: z48.enum(["event_pass", "appointment_package"]).default("event_pass"),
22455
+ name: z48.string(),
22456
+ description: z48.string().nullable(),
22457
+ price: z48.number(),
22458
+ currency: z48.string(),
22459
+ creditsTotal: z48.number(),
22460
+ pricePerCredit: z48.number(),
22461
+ validDays: z48.number().nullable(),
22462
+ eligibleCategoryIds: z48.array(z48.string()),
22463
+ eligibleCategoryNames: z48.array(z48.string())
22464
+ });
22465
+ var publicMembershipProductSchema = z48.object({
22466
+ id: z48.string(),
22467
+ name: z48.string(),
22468
+ description: z48.string().nullable(),
22469
+ price: z48.number(),
22470
+ currency: z48.string(),
22471
+ billingInterval: z48.enum(["month", "year"]),
22472
+ eligibleCategoryIds: z48.array(z48.string()),
22473
+ eligibleCategoryNames: z48.array(z48.string())
22540
22474
  });
22541
22475
 
22542
22476
  // ../blocks/src/system/blocks/event-details.ts
@@ -22668,22 +22602,22 @@ var eventDetailsManifest = createBlockManifest({
22668
22602
  })
22669
22603
  ]
22670
22604
  });
22671
- var occurrenceContextSchema2 = z50.object({
22672
- id: z50.string(),
22673
- seriesId: z50.string(),
22674
- startsAt: z50.string(),
22675
- endsAt: z50.string(),
22676
- timeZone: z50.string(),
22677
- capacityOverride: z50.number().nullable().optional(),
22678
- overrides: z50.record(z50.string(), z50.unknown()).nullable().optional()
22605
+ var occurrenceContextSchema2 = z49.object({
22606
+ id: z49.string(),
22607
+ seriesId: z49.string(),
22608
+ startsAt: z49.string(),
22609
+ endsAt: z49.string(),
22610
+ timeZone: z49.string(),
22611
+ capacityOverride: z49.number().nullable().optional(),
22612
+ overrides: z49.record(z49.string(), z49.unknown()).nullable().optional()
22679
22613
  }).nullable();
22680
22614
  var eventDetailsBlockDefinition = {
22681
22615
  manifest: eventDetailsManifest,
22682
22616
  dataSchemas: {
22683
- eventDetailsData: z50.object({
22617
+ eventDetailsData: z49.object({
22684
22618
  events: publicEventsArraySchema,
22685
- sitePasses: z50.object({ passes: z50.array(publicPassProductSchema) }),
22686
- siteMemberships: z50.object({ memberships: z50.array(publicMembershipProductSchema) })
22619
+ sitePasses: z49.object({ passes: z49.array(publicPassProductSchema) }),
22620
+ siteMemberships: z49.object({ memberships: z49.array(publicMembershipProductSchema) })
22687
22621
  }).optional(),
22688
22622
  occurrenceContext: occurrenceContextSchema2.optional()
22689
22623
  },
@@ -23002,7 +22936,7 @@ var eventSpotlightBlockDefinition = {
23002
22936
  };
23003
22937
 
23004
22938
  // ../blocks/src/system/runtime/nodes/events/EventListing.interactive.ts
23005
- import { z as z51 } from "zod";
22939
+ import { z as z50 } from "zod";
23006
22940
 
23007
22941
  // ../blocks/src/system/runtime/nodes/events/shared/utils.ts
23008
22942
  var COLUMN_CLASSES = {
@@ -23109,87 +23043,87 @@ function computeMediaTransformStyle(value, style, targetAspectRatio, options) {
23109
23043
  }
23110
23044
 
23111
23045
  // ../blocks/src/system/runtime/nodes/events/EventListing.interactive.ts
23112
- var cardVariantSchema2 = z51.enum(["default", "variant1", "variant2"]);
23113
- var cardOrientationSchema = z51.enum(["vertical", "horizontal"]);
23114
- var eventBlockKindSchema = z51.enum(eventBlockKindValues);
23115
- var eventSurfaceScopeSchema = z51.enum(eventSurfaceScopeValues);
23116
- var eventScheduleScopeSchema2 = z51.enum(eventScheduleScopeValues);
23117
- var eventListingSourceSchema = z51.object({
23118
- events: z51.array(publicEventSchema).nullable().optional(),
23119
- siteId: z51.string(),
23120
- apiBaseUrl: z51.string().optional(),
23046
+ var cardVariantSchema2 = z50.enum(["default", "variant1", "variant2"]);
23047
+ var cardOrientationSchema = z50.enum(["vertical", "horizontal"]);
23048
+ var eventBlockKindSchema = z50.enum(eventBlockKindValues);
23049
+ var eventSurfaceScopeSchema = z50.enum(eventSurfaceScopeValues);
23050
+ var eventScheduleScopeSchema2 = z50.enum(eventScheduleScopeValues);
23051
+ var eventListingSourceSchema = z50.object({
23052
+ events: z50.array(publicEventSchema).nullable().optional(),
23053
+ siteId: z50.string(),
23054
+ apiBaseUrl: z50.string().optional(),
23121
23055
  stage: previewStageSchema.optional(),
23122
23056
  layout: eventLayoutSchema.optional(),
23123
23057
  columns: columnOptionSchema.optional(),
23124
- eventsPerPage: z51.string().optional(),
23125
- paginationMode: z51.enum(["loadMore", "seeAllLink"]).optional(),
23126
- seeAllUrl: z51.string().optional(),
23127
- loadMoreText: z51.string().optional(),
23058
+ eventsPerPage: z50.string().optional(),
23059
+ paginationMode: z50.enum(["loadMore", "seeAllLink"]).optional(),
23060
+ seeAllUrl: z50.string().optional(),
23061
+ loadMoreText: z50.string().optional(),
23128
23062
  cardVariant: cardVariantSchema2.optional(),
23129
23063
  buttonVariant: eventButtonVariantSchema.optional(),
23130
- buttonText: z51.string().optional(),
23131
- showVenue: z51.boolean().optional(),
23132
- showMap: z51.boolean().optional(),
23133
- showCapacity: z51.boolean().optional(),
23134
- emptyMessage: z51.string().optional(),
23135
- className: z51.string().optional(),
23136
- showFilters: z51.boolean().nullable().optional(),
23064
+ buttonText: z50.string().optional(),
23065
+ showVenue: z50.boolean().optional(),
23066
+ showMap: z50.boolean().optional(),
23067
+ showCapacity: z50.boolean().optional(),
23068
+ emptyMessage: z50.string().optional(),
23069
+ className: z50.string().optional(),
23070
+ showFilters: z50.boolean().nullable().optional(),
23137
23071
  showCategoryFilter: filterAutoShowSchema.optional(),
23138
- showVenueFilter: z51.boolean().nullable().optional(),
23139
- showStaffFilter: z51.boolean().nullable().optional(),
23072
+ showVenueFilter: z50.boolean().nullable().optional(),
23073
+ showStaffFilter: z50.boolean().nullable().optional(),
23140
23074
  eventKind: eventBlockKindSchema.nullable().optional(),
23141
23075
  eventSurface: eventSurfaceScopeSchema.nullable().optional(),
23142
- filterEventPresets: z51.union([z51.string(), z51.array(z51.string())]).nullable().optional(),
23076
+ filterEventPresets: z50.union([z50.string(), z50.array(z50.string())]).nullable().optional(),
23143
23077
  scheduleScope: eventScheduleScopeSchema2.nullable().optional(),
23144
- filterCategoryIds: z51.string().nullable().optional(),
23145
- filterStaffMemberId: z51.string().nullable().optional(),
23146
- filterVenueId: z51.string().nullable().optional()
23078
+ filterCategoryIds: z50.string().nullable().optional(),
23079
+ filterStaffMemberId: z50.string().nullable().optional(),
23080
+ filterVenueId: z50.string().nullable().optional()
23147
23081
  });
23148
- var eventListingDisplaySchema = z51.object({
23149
- kind: z51.literal("event-listing"),
23150
- state: z51.enum(["loading", "empty", "ready"]),
23082
+ var eventListingDisplaySchema = z50.object({
23083
+ kind: z50.literal("event-listing"),
23084
+ state: z50.enum(["loading", "empty", "ready"]),
23151
23085
  listLayout: eventLayoutSchema,
23152
- className: z51.string().nullable(),
23153
- emptyMessage: z51.string(),
23154
- loadingMessage: z51.string(),
23155
- containerClass: z51.string(),
23086
+ className: z50.string().nullable(),
23087
+ emptyMessage: z50.string(),
23088
+ loadingMessage: z50.string(),
23089
+ containerClass: z50.string(),
23156
23090
  cardVariant: cardVariantSchema2,
23157
23091
  buttonVariant: eventButtonVariantSchema,
23158
- buttonText: z51.string(),
23159
- showVenue: z51.boolean(),
23160
- showMap: z51.boolean(),
23161
- showCapacity: z51.boolean(),
23092
+ buttonText: z50.string(),
23093
+ showVenue: z50.boolean(),
23094
+ showMap: z50.boolean(),
23095
+ showCapacity: z50.boolean(),
23162
23096
  orientation: cardOrientationSchema,
23163
- events: z51.array(publicEventSchema)
23097
+ events: z50.array(publicEventSchema)
23164
23098
  });
23165
- var eventListingHydrationSchema = z51.object({
23166
- siteId: z51.string(),
23099
+ var eventListingHydrationSchema = z50.object({
23100
+ siteId: z50.string(),
23167
23101
  stage: previewStageSchema.optional(),
23168
- eventsPerPage: z51.string(),
23169
- paginationMode: z51.enum(["loadMore", "seeAllLink"]),
23170
- seeAllUrl: z51.string().optional(),
23171
- loadMoreText: z51.string(),
23172
- showFilters: z51.boolean(),
23102
+ eventsPerPage: z50.string(),
23103
+ paginationMode: z50.enum(["loadMore", "seeAllLink"]),
23104
+ seeAllUrl: z50.string().optional(),
23105
+ loadMoreText: z50.string(),
23106
+ showFilters: z50.boolean(),
23173
23107
  showCategoryFilter: filterAutoShowSchema,
23174
- showVenueFilter: z51.boolean(),
23175
- showStaffFilter: z51.boolean(),
23108
+ showVenueFilter: z50.boolean(),
23109
+ showStaffFilter: z50.boolean(),
23176
23110
  eventKind: eventBlockKindSchema,
23177
23111
  eventSurface: eventSurfaceScopeSchema,
23178
- filterEventPresets: z51.string().nullable(),
23112
+ filterEventPresets: z50.string().nullable(),
23179
23113
  scheduleScope: eventScheduleScopeSchema2,
23180
- filterCategoryIds: z51.string().nullable().optional(),
23181
- filterStaffMemberId: z51.string().nullable().optional(),
23182
- filterVenueId: z51.string().nullable().optional(),
23183
- fetchInitialEventsOnMount: z51.boolean()
23114
+ filterCategoryIds: z50.string().nullable().optional(),
23115
+ filterStaffMemberId: z50.string().nullable().optional(),
23116
+ filterVenueId: z50.string().nullable().optional(),
23117
+ fetchInitialEventsOnMount: z50.boolean()
23184
23118
  });
23185
- var eventListingRenderSchema = z51.object({
23119
+ var eventListingRenderSchema = z50.object({
23186
23120
  display: eventListingDisplaySchema,
23187
23121
  hydration: eventListingHydrationSchema
23188
23122
  });
23189
23123
  var eventListingIslandMetaCodec = createZodCodec(
23190
- z51.object({
23191
- siteId: z51.string(),
23192
- apiBaseUrl: z51.string().optional(),
23124
+ z50.object({
23125
+ siteId: z50.string(),
23126
+ apiBaseUrl: z50.string().optional(),
23193
23127
  stage: previewStageSchema.optional()
23194
23128
  })
23195
23129
  );
@@ -23508,93 +23442,93 @@ var eventListingBlockDefinition = {
23508
23442
  };
23509
23443
 
23510
23444
  // ../blocks/src/system/runtime/nodes/events/EventCalendar.interactive.ts
23511
- import { z as z52 } from "zod";
23512
- var displayModeSchema = z52.enum(["combined", "month", "week", "list", "timetable"]);
23513
- var eventBlockKindSchema2 = z52.enum(eventBlockKindValues);
23514
- var eventSurfaceScopeSchema2 = z52.enum(eventSurfaceScopeValues);
23515
- var eventScheduleScopeSchema3 = z52.enum(eventScheduleScopeValues);
23516
- var eventCalendarSourceSchema = z52.object(
23445
+ import { z as z51 } from "zod";
23446
+ var displayModeSchema = z51.enum(["combined", "month", "week", "list", "timetable"]);
23447
+ var eventBlockKindSchema2 = z51.enum(eventBlockKindValues);
23448
+ var eventSurfaceScopeSchema2 = z51.enum(eventSurfaceScopeValues);
23449
+ var eventScheduleScopeSchema3 = z51.enum(eventScheduleScopeValues);
23450
+ var eventCalendarSourceSchema = z51.object(
23517
23451
  {
23518
- events: z52.array(publicEventSchema).nullable().optional(),
23519
- siteId: z52.string(),
23520
- apiBaseUrl: z52.string().optional(),
23452
+ events: z51.array(publicEventSchema).nullable().optional(),
23453
+ siteId: z51.string(),
23454
+ apiBaseUrl: z51.string().optional(),
23521
23455
  stage: previewStageSchema.optional(),
23522
23456
  displayMode: displayModeSchema.nullable().optional(),
23523
23457
  listLayout: eventLayoutSchema.optional(),
23524
23458
  listColumns: columnOptionSchema.optional(),
23525
23459
  layout: eventLayoutSchema.optional(),
23526
23460
  columns: columnOptionSchema.optional(),
23527
- eventsPerPage: z52.string().optional(),
23528
- compactEventsPerPage: z52.string().optional(),
23529
- loadMoreText: z52.string().optional(),
23461
+ eventsPerPage: z51.string().optional(),
23462
+ compactEventsPerPage: z51.string().optional(),
23463
+ loadMoreText: z51.string().optional(),
23530
23464
  startOfWeek: weekStartSchema.optional(),
23531
23465
  calendarTabViews: calendarTabViewsSchema.optional(),
23532
- showFilters: z52.boolean().nullable().optional(),
23466
+ showFilters: z51.boolean().nullable().optional(),
23533
23467
  showCategoryFilter: filterAutoShowSchema.optional(),
23534
- showVenueFilter: z52.boolean().nullable().optional(),
23535
- showStaffFilter: z52.boolean().nullable().optional(),
23468
+ showVenueFilter: z51.boolean().nullable().optional(),
23469
+ showStaffFilter: z51.boolean().nullable().optional(),
23536
23470
  kind: eventBlockKindSchema2.nullable().optional(),
23537
23471
  eventSurface: eventSurfaceScopeSchema2.nullable().optional(),
23538
- filterEventPresets: z52.union([z52.string(), z52.array(z52.string())]).nullable().optional(),
23472
+ filterEventPresets: z51.union([z51.string(), z51.array(z51.string())]).nullable().optional(),
23539
23473
  scheduleScope: eventScheduleScopeSchema3.nullable().optional(),
23540
- filterCategoryIds: z52.union([z52.string(), z52.array(z52.string())]).nullable().optional(),
23541
- filterStaffMemberId: z52.string().nullable().optional(),
23542
- filterVenueId: z52.string().nullable().optional(),
23474
+ filterCategoryIds: z51.union([z51.string(), z51.array(z51.string())]).nullable().optional(),
23475
+ filterStaffMemberId: z51.string().nullable().optional(),
23476
+ filterVenueId: z51.string().nullable().optional(),
23543
23477
  buttonVariant: eventButtonVariantSchema.optional(),
23544
- buttonText: z52.string().optional(),
23545
- showVenue: z52.boolean().nullable().optional(),
23546
- showMap: z52.boolean().nullable().optional(),
23547
- showCapacity: z52.boolean().nullable().optional(),
23548
- emptyMessage: z52.string().optional(),
23549
- className: z52.string().optional()
23478
+ buttonText: z51.string().optional(),
23479
+ showVenue: z51.boolean().nullable().optional(),
23480
+ showMap: z51.boolean().nullable().optional(),
23481
+ showCapacity: z51.boolean().nullable().optional(),
23482
+ emptyMessage: z51.string().optional(),
23483
+ className: z51.string().optional()
23550
23484
  }
23551
23485
  );
23552
- var eventCalendarDisplaySchema = z52.object({
23553
- kind: z52.literal("event-calendar"),
23486
+ var eventCalendarDisplaySchema = z51.object({
23487
+ kind: z51.literal("event-calendar"),
23554
23488
  displayMode: displayModeSchema,
23555
- className: z52.string().nullable(),
23556
- events: z52.array(publicEventSchema),
23489
+ className: z51.string().nullable(),
23490
+ events: z51.array(publicEventSchema),
23557
23491
  listLayout: eventLayoutSchema,
23558
23492
  listColumns: columnOptionSchema,
23559
- eventsPerPage: z52.string(),
23560
- loadMoreText: z52.string(),
23493
+ eventsPerPage: z51.string(),
23494
+ loadMoreText: z51.string(),
23561
23495
  startOfWeek: weekStartSchema,
23562
23496
  calendarTabViews: calendarTabViewsSchema,
23563
- showFilters: z52.boolean(),
23497
+ showFilters: z51.boolean(),
23564
23498
  showCategoryFilter: filterAutoShowSchema,
23565
- showVenueFilter: z52.boolean(),
23566
- showStaffFilter: z52.boolean(),
23499
+ showVenueFilter: z51.boolean(),
23500
+ showStaffFilter: z51.boolean(),
23567
23501
  eventKind: eventBlockKindSchema2,
23568
23502
  eventSurface: eventSurfaceScopeSchema2,
23569
- filterEventPresets: z52.string().nullable(),
23503
+ filterEventPresets: z51.string().nullable(),
23570
23504
  scheduleScope: eventScheduleScopeSchema3,
23571
- filterCategoryIds: z52.string().nullable(),
23572
- filterStaffMemberId: z52.string().nullable(),
23573
- filterVenueId: z52.string().nullable(),
23505
+ filterCategoryIds: z51.string().nullable(),
23506
+ filterStaffMemberId: z51.string().nullable(),
23507
+ filterVenueId: z51.string().nullable(),
23574
23508
  buttonVariant: eventButtonVariantSchema,
23575
- buttonText: z52.string(),
23576
- showVenue: z52.boolean(),
23577
- showMap: z52.boolean(),
23578
- showCapacity: z52.boolean(),
23579
- emptyMessage: z52.string()
23580
- });
23581
- var eventCalendarHydrationSchema = z52.object({
23582
- siteId: z52.string(),
23509
+ buttonText: z51.string(),
23510
+ showVenue: z51.boolean(),
23511
+ showMap: z51.boolean(),
23512
+ showCapacity: z51.boolean(),
23513
+ emptyMessage: z51.string()
23514
+ });
23515
+ var eventCalendarHydrationSchema = z51.object({
23516
+ siteId: z51.string(),
23583
23517
  stage: previewStageSchema.optional(),
23584
- prefetchedEvents: z52.boolean(),
23518
+ prefetchedEvents: z51.boolean(),
23585
23519
  eventKind: eventBlockKindSchema2,
23586
23520
  eventSurface: eventSurfaceScopeSchema2,
23587
- filterEventPresets: z52.string().nullable(),
23521
+ filterEventPresets: z51.string().nullable(),
23588
23522
  scheduleScope: eventScheduleScopeSchema3
23589
23523
  });
23590
- var eventCalendarRenderSchema = z52.object({
23524
+ var eventCalendarRenderSchema = z51.object({
23591
23525
  display: eventCalendarDisplaySchema,
23592
23526
  hydration: eventCalendarHydrationSchema
23593
23527
  });
23594
23528
  var eventCalendarIslandMetaCodec = createZodCodec(
23595
- z52.object({
23596
- siteId: z52.string(),
23597
- apiBaseUrl: z52.string().optional(),
23529
+ z51.object({
23530
+ siteId: z51.string(),
23531
+ apiBaseUrl: z51.string().optional(),
23598
23532
  stage: previewStageSchema.optional()
23599
23533
  })
23600
23534
  );
@@ -24188,7 +24122,7 @@ var eventCalendarBlockDefinition = {
24188
24122
  };
24189
24123
 
24190
24124
  // ../blocks/src/system/blocks/embed.ts
24191
- import { z as z53 } from "zod";
24125
+ import { z as z52 } from "zod";
24192
24126
  var embedFields = [
24193
24127
  // Section heading
24194
24128
  parseFieldDefinition({
@@ -24419,18 +24353,18 @@ var embedManifest = createBlockManifest({
24419
24353
  spacing: "lg"
24420
24354
  }
24421
24355
  });
24422
- var embedEntrySchema = z53.object({
24423
- id: z53.string(),
24424
- identifier: z53.string(),
24425
- title: z53.string(),
24426
- slug: z53.string().nullable().optional(),
24427
- content: z53.record(z53.string(), z53.unknown()).optional(),
24428
- publishedAt: z53.string().nullable().optional()
24356
+ var embedEntrySchema = z52.object({
24357
+ id: z52.string(),
24358
+ identifier: z52.string(),
24359
+ title: z52.string(),
24360
+ slug: z52.string().nullable().optional(),
24361
+ content: z52.record(z52.string(), z52.unknown()).optional(),
24362
+ publishedAt: z52.string().nullable().optional()
24429
24363
  });
24430
24364
  var embedBlockDefinition = {
24431
24365
  manifest: embedManifest,
24432
24366
  dataSchemas: {
24433
- entries: z53.array(embedEntrySchema).optional()
24367
+ entries: z52.array(embedEntrySchema).optional()
24434
24368
  },
24435
24369
  dataLoaders: {
24436
24370
  entries: {
@@ -25605,54 +25539,54 @@ var fileDownloadBlockDefinition = {
25605
25539
  };
25606
25540
 
25607
25541
  // ../blocks/src/system/blocks/shop.ts
25608
- import { z as z57 } from "zod";
25542
+ import { z as z56 } from "zod";
25609
25543
 
25610
25544
  // ../blocks/src/system/runtime/nodes/shop.interactive.ts
25611
- import { z as z56 } from "zod";
25545
+ import { z as z55 } from "zod";
25612
25546
 
25613
25547
  // ../blocks/src/system/blocks/products/shared.ts
25614
- import { z as z54 } from "zod";
25615
- var publicProductVariantSchema = z54.object({
25616
- id: z54.string(),
25617
- title: z54.string(),
25618
- sku: z54.string().nullable(),
25619
- priceCents: z54.number(),
25620
- stockQuantity: z54.number().nullable(),
25621
- soldOut: z54.boolean()
25622
- });
25623
- var publicProductSchema = z54.object({
25624
- id: z54.string(),
25625
- contentEntryId: z54.string().nullable(),
25626
- title: z54.string(),
25627
- slug: z54.string(),
25628
- path: z54.string().nullable(),
25629
- status: z54.enum(["draft", "active"]),
25630
- priceCents: z54.number(),
25631
- currency: z54.string(),
25632
- productType: z54.enum(["physical", "digital"]),
25633
- requiresShipping: z54.boolean(),
25634
- hasVariants: z54.boolean(),
25635
- trackInventory: z54.boolean(),
25636
- soldOut: z54.boolean(),
25637
- category: z54.object({
25638
- id: z54.string(),
25639
- name: z54.string(),
25640
- slug: z54.string()
25548
+ import { z as z53 } from "zod";
25549
+ var publicProductVariantSchema = z53.object({
25550
+ id: z53.string(),
25551
+ title: z53.string(),
25552
+ sku: z53.string().nullable(),
25553
+ priceCents: z53.number(),
25554
+ stockQuantity: z53.number().nullable(),
25555
+ soldOut: z53.boolean()
25556
+ });
25557
+ var publicProductSchema = z53.object({
25558
+ id: z53.string(),
25559
+ contentEntryId: z53.string().nullable(),
25560
+ title: z53.string(),
25561
+ slug: z53.string(),
25562
+ path: z53.string().nullable(),
25563
+ status: z53.enum(["draft", "active"]),
25564
+ priceCents: z53.number(),
25565
+ currency: z53.string(),
25566
+ productType: z53.enum(["physical", "digital"]),
25567
+ requiresShipping: z53.boolean(),
25568
+ hasVariants: z53.boolean(),
25569
+ trackInventory: z53.boolean(),
25570
+ soldOut: z53.boolean(),
25571
+ category: z53.object({
25572
+ id: z53.string(),
25573
+ name: z53.string(),
25574
+ slug: z53.string()
25641
25575
  }).nullable(),
25642
- summary: z54.string().nullable(),
25643
- badges: z54.array(z54.string()),
25644
- ctaLabel: z54.string().nullable(),
25645
- body: z54.unknown().nullable(),
25646
- gallery: z54.array(
25647
- z54.object({
25648
- url: z54.string(),
25649
- alt: z54.string().nullable()
25576
+ summary: z53.string().nullable(),
25577
+ badges: z53.array(z53.string()),
25578
+ ctaLabel: z53.string().nullable(),
25579
+ body: z53.unknown().nullable(),
25580
+ gallery: z53.array(
25581
+ z53.object({
25582
+ url: z53.string(),
25583
+ alt: z53.string().nullable()
25650
25584
  })
25651
25585
  ),
25652
- variants: z54.array(publicProductVariantSchema)
25586
+ variants: z53.array(publicProductVariantSchema)
25653
25587
  });
25654
- var publicProductsResponseSchema = z54.object({
25655
- products: z54.array(publicProductSchema)
25588
+ var publicProductsResponseSchema = z53.object({
25589
+ products: z53.array(publicProductSchema)
25656
25590
  });
25657
25591
 
25658
25592
  // ../blocks/src/system/runtime/api/creditProducts.ts
@@ -25716,26 +25650,26 @@ function deriveCreditProductLabels(products, options = {}) {
25716
25650
  }
25717
25651
 
25718
25652
  // ../blocks/src/system/runtime/nodes/shop-commerce.shared.ts
25719
- import { z as z55 } from "zod";
25720
- var storedProductCartItemSchema = z55.object({
25721
- kind: z55.literal("product"),
25722
- productId: z55.string().min(1),
25723
- variantId: z55.string().min(1).optional().nullable(),
25724
- title: z55.string().min(1),
25725
- variantTitle: z55.string().optional().nullable(),
25726
- quantity: z55.number().finite(),
25727
- unitPriceCents: z55.number().finite(),
25728
- currency: z55.string().min(1),
25729
- imageUrl: z55.string().optional().nullable(),
25730
- soldOut: z55.boolean().optional()
25731
- });
25732
- var storedPassCartItemSchema = z55.object({
25733
- kind: z55.literal("pass"),
25734
- passId: z55.string().min(1),
25735
- title: z55.string().min(1),
25736
- quantity: z55.number().finite().optional(),
25737
- unitPriceCents: z55.number().finite(),
25738
- currency: z55.string().min(1)
25653
+ import { z as z54 } from "zod";
25654
+ var storedProductCartItemSchema = z54.object({
25655
+ kind: z54.literal("product"),
25656
+ productId: z54.string().min(1),
25657
+ variantId: z54.string().min(1).optional().nullable(),
25658
+ title: z54.string().min(1),
25659
+ variantTitle: z54.string().optional().nullable(),
25660
+ quantity: z54.number().finite(),
25661
+ unitPriceCents: z54.number().finite(),
25662
+ currency: z54.string().min(1),
25663
+ imageUrl: z54.string().optional().nullable(),
25664
+ soldOut: z54.boolean().optional()
25665
+ });
25666
+ var storedPassCartItemSchema = z54.object({
25667
+ kind: z54.literal("pass"),
25668
+ passId: z54.string().min(1),
25669
+ title: z54.string().min(1),
25670
+ quantity: z54.number().finite().optional(),
25671
+ unitPriceCents: z54.number().finite(),
25672
+ currency: z54.string().min(1)
25739
25673
  });
25740
25674
  function deriveCommerceCheckoutState(state) {
25741
25675
  if (state.items.length === 0) {
@@ -25974,219 +25908,219 @@ function formatValidity(days) {
25974
25908
  }
25975
25909
 
25976
25910
  // ../blocks/src/system/runtime/nodes/shop.interactive.ts
25977
- var shopModeSchema = z56.enum(["passes-memberships", "product-list", "product-detail", "cart", "checkout"]);
25978
- var contentEntrySchema3 = z56.object({
25979
- id: z56.string().nullable().optional(),
25980
- slug: z56.string().nullable().optional()
25911
+ var shopModeSchema = z55.enum(["passes-memberships", "product-list", "product-detail", "cart", "checkout"]);
25912
+ var contentEntrySchema3 = z55.object({
25913
+ id: z55.string().nullable().optional(),
25914
+ slug: z55.string().nullable().optional()
25981
25915
  }).nullable();
25982
- var shopSourceSchema = z56.object({
25983
- className: z56.string().nullable().optional(),
25916
+ var shopSourceSchema = z55.object({
25917
+ className: z55.string().nullable().optional(),
25984
25918
  mode: shopModeSchema.optional(),
25985
- heading: z56.string().nullable().optional(),
25986
- productSlug: z56.string().nullable().optional(),
25987
- showPasses: z56.boolean().optional(),
25988
- showMemberships: z56.boolean().optional(),
25989
- layout: z56.enum(["grid", "list"]).optional(),
25990
- columns: z56.string().optional(),
25991
- showDescriptions: z56.boolean().optional(),
25992
- showSummary: z56.boolean().optional(),
25993
- showBody: z56.boolean().optional(),
25994
- showBadges: z56.boolean().optional(),
25995
- showPrices: z56.boolean().optional(),
25996
- showValidityPeriod: z56.boolean().optional(),
25997
- showPricePerCredit: z56.boolean().nullable().optional(),
25998
- passesHeading: z56.string().optional(),
25999
- membershipsHeading: z56.string().optional(),
26000
- buyButtonText: z56.string().optional(),
26001
- addButtonText: z56.string().optional(),
26002
- passPurchaseMode: z56.enum(["add_to_cart", "buy_now"]).optional(),
26003
- subscribeButtonText: z56.string().optional(),
26004
- emptyStateText: z56.string().optional(),
26005
- checkoutButtonText: z56.string().optional(),
26006
- clearButtonText: z56.string().optional(),
26007
- submitButtonText: z56.string().optional(),
25919
+ heading: z55.string().nullable().optional(),
25920
+ productSlug: z55.string().nullable().optional(),
25921
+ showPasses: z55.boolean().optional(),
25922
+ showMemberships: z55.boolean().optional(),
25923
+ layout: z55.enum(["grid", "list"]).optional(),
25924
+ columns: z55.string().optional(),
25925
+ showDescriptions: z55.boolean().optional(),
25926
+ showSummary: z55.boolean().optional(),
25927
+ showBody: z55.boolean().optional(),
25928
+ showBadges: z55.boolean().optional(),
25929
+ showPrices: z55.boolean().optional(),
25930
+ showValidityPeriod: z55.boolean().optional(),
25931
+ showPricePerCredit: z55.boolean().nullable().optional(),
25932
+ passesHeading: z55.string().optional(),
25933
+ membershipsHeading: z55.string().optional(),
25934
+ buyButtonText: z55.string().optional(),
25935
+ addButtonText: z55.string().optional(),
25936
+ passPurchaseMode: z55.enum(["add_to_cart", "buy_now"]).optional(),
25937
+ subscribeButtonText: z55.string().optional(),
25938
+ emptyStateText: z55.string().optional(),
25939
+ checkoutButtonText: z55.string().optional(),
25940
+ clearButtonText: z55.string().optional(),
25941
+ submitButtonText: z55.string().optional(),
26008
25942
  contentEntry: contentEntrySchema3.optional(),
26009
- passes: z56.array(publicPassProductSchema).nullable().optional(),
26010
- memberships: z56.array(publicMembershipProductSchema).nullable().optional(),
26011
- products: z56.array(publicProductSchema).nullable().optional(),
26012
- siteId: z56.string().optional(),
26013
- apiBaseUrl: z56.string().optional(),
25943
+ passes: z55.array(publicPassProductSchema).nullable().optional(),
25944
+ memberships: z55.array(publicMembershipProductSchema).nullable().optional(),
25945
+ products: z55.array(publicProductSchema).nullable().optional(),
25946
+ siteId: z55.string().optional(),
25947
+ apiBaseUrl: z55.string().optional(),
26014
25948
  stage: previewStageSchema.optional()
26015
25949
  });
26016
- var productVariantOptionDisplaySchema = z56.object({
26017
- id: z56.string(),
26018
- label: z56.string(),
26019
- soldOut: z56.boolean()
26020
- });
26021
- var productCardDisplaySchema = z56.object({
26022
- productId: z56.string(),
26023
- title: z56.string(),
26024
- path: z56.string().nullable(),
26025
- summary: z56.string().nullable(),
26026
- priceLabel: z56.string().nullable(),
26027
- badges: z56.array(z56.string()),
26028
- image: z56.object({
26029
- url: z56.string(),
26030
- alt: z56.string().nullable()
25950
+ var productVariantOptionDisplaySchema = z55.object({
25951
+ id: z55.string(),
25952
+ label: z55.string(),
25953
+ soldOut: z55.boolean()
25954
+ });
25955
+ var productCardDisplaySchema = z55.object({
25956
+ productId: z55.string(),
25957
+ title: z55.string(),
25958
+ path: z55.string().nullable(),
25959
+ summary: z55.string().nullable(),
25960
+ priceLabel: z55.string().nullable(),
25961
+ badges: z55.array(z55.string()),
25962
+ image: z55.object({
25963
+ url: z55.string(),
25964
+ alt: z55.string().nullable()
26031
25965
  }).nullable(),
26032
- variantOptions: z56.array(productVariantOptionDisplaySchema),
26033
- selectedVariantId: z56.string().nullable(),
26034
- selectionLabel: z56.string(),
26035
- actionLabel: z56.string(),
26036
- soldOut: z56.boolean()
26037
- });
26038
- var productListDisplaySchema = z56.object({
26039
- kind: z56.literal("product-list"),
26040
- state: z56.enum(["empty", "ready"]),
26041
- heading: z56.string().nullable(),
26042
- className: z56.string().nullable(),
26043
- layout: z56.enum(["grid", "list"]),
26044
- columns: z56.string(),
26045
- emptyMessage: z56.string(),
26046
- cards: z56.array(productCardDisplaySchema)
26047
- });
26048
- var productDetailDisplaySchema = z56.discriminatedUnion("state", [
26049
- z56.object({
26050
- kind: z56.literal("product-detail"),
26051
- state: z56.literal("empty"),
26052
- heading: z56.string().nullable(),
26053
- className: z56.string().nullable(),
26054
- emptyMessage: z56.string()
25966
+ variantOptions: z55.array(productVariantOptionDisplaySchema),
25967
+ selectedVariantId: z55.string().nullable(),
25968
+ selectionLabel: z55.string(),
25969
+ actionLabel: z55.string(),
25970
+ soldOut: z55.boolean()
25971
+ });
25972
+ var productListDisplaySchema = z55.object({
25973
+ kind: z55.literal("product-list"),
25974
+ state: z55.enum(["empty", "ready"]),
25975
+ heading: z55.string().nullable(),
25976
+ className: z55.string().nullable(),
25977
+ layout: z55.enum(["grid", "list"]),
25978
+ columns: z55.string(),
25979
+ emptyMessage: z55.string(),
25980
+ cards: z55.array(productCardDisplaySchema)
25981
+ });
25982
+ var productDetailDisplaySchema = z55.discriminatedUnion("state", [
25983
+ z55.object({
25984
+ kind: z55.literal("product-detail"),
25985
+ state: z55.literal("empty"),
25986
+ heading: z55.string().nullable(),
25987
+ className: z55.string().nullable(),
25988
+ emptyMessage: z55.string()
26055
25989
  }),
26056
- z56.object({
26057
- kind: z56.literal("product-detail"),
26058
- state: z56.literal("ready"),
26059
- heading: z56.string().nullable(),
26060
- className: z56.string().nullable(),
26061
- title: z56.string(),
26062
- priceLabel: z56.string(),
26063
- summary: z56.string().nullable(),
26064
- badges: z56.array(z56.string()),
26065
- categoryLabel: z56.string().nullable(),
26066
- gallery: z56.array(z56.object({
26067
- url: z56.string(),
26068
- alt: z56.string().nullable()
25990
+ z55.object({
25991
+ kind: z55.literal("product-detail"),
25992
+ state: z55.literal("ready"),
25993
+ heading: z55.string().nullable(),
25994
+ className: z55.string().nullable(),
25995
+ title: z55.string(),
25996
+ priceLabel: z55.string(),
25997
+ summary: z55.string().nullable(),
25998
+ badges: z55.array(z55.string()),
25999
+ categoryLabel: z55.string().nullable(),
26000
+ gallery: z55.array(z55.object({
26001
+ url: z55.string(),
26002
+ alt: z55.string().nullable()
26069
26003
  })),
26070
- variantOptions: z56.array(productVariantOptionDisplaySchema),
26071
- selectedVariantId: z56.string().nullable(),
26072
- selectionLabel: z56.string(),
26073
- actionLabel: z56.string(),
26074
- soldOut: z56.boolean(),
26075
- body: z56.unknown().nullable()
26004
+ variantOptions: z55.array(productVariantOptionDisplaySchema),
26005
+ selectedVariantId: z55.string().nullable(),
26006
+ selectionLabel: z55.string(),
26007
+ actionLabel: z55.string(),
26008
+ soldOut: z55.boolean(),
26009
+ body: z55.unknown().nullable()
26076
26010
  })
26077
26011
  ]);
26078
- var passCardDisplaySchema = z56.object({
26079
- id: z56.string(),
26080
- title: z56.string(),
26081
- description: z56.string().nullable(),
26082
- priceLabel: z56.string(),
26083
- creditsLabel: z56.string(),
26084
- perCreditLabel: z56.string().nullable(),
26085
- validityLabel: z56.string().nullable(),
26086
- actionLabel: z56.string()
26087
- });
26088
- var membershipCardDisplaySchema = z56.object({
26089
- id: z56.string(),
26090
- title: z56.string(),
26091
- description: z56.string().nullable(),
26092
- priceLabel: z56.string(),
26093
- intervalLabel: z56.string(),
26094
- actionLabel: z56.string()
26095
- });
26096
- var passesMembershipsDisplaySchema = z56.object({
26097
- kind: z56.literal("passes-memberships"),
26098
- state: z56.enum(["empty", "ready"]),
26099
- className: z56.string().nullable(),
26100
- layout: z56.enum(["grid", "list"]),
26101
- columns: z56.string(),
26102
- emptyMessage: z56.string(),
26103
- passesHeading: z56.string(),
26104
- membershipsHeading: z56.string(),
26105
- passes: z56.array(passCardDisplaySchema),
26106
- memberships: z56.array(membershipCardDisplaySchema)
26107
- });
26108
- var cartLineDisplaySchema = z56.object({
26109
- key: z56.string(),
26110
- title: z56.string(),
26111
- priceLabel: z56.string(),
26112
- quantity: z56.number(),
26113
- quantityEditable: z56.boolean()
26114
- });
26115
- var cartDisplaySchema = z56.object({
26116
- kind: z56.literal("cart"),
26117
- state: z56.enum(["empty", "ready"]),
26118
- heading: z56.string().nullable(),
26119
- className: z56.string().nullable(),
26120
- emptyMessage: z56.string(),
26121
- supportText: z56.string().nullable(),
26122
- items: z56.array(cartLineDisplaySchema),
26123
- subtotalLabel: z56.string().nullable(),
26124
- checkoutButtonText: z56.string(),
26125
- clearButtonText: z56.string()
26126
- });
26127
- var checkoutDisplaySchema = z56.object({
26128
- kind: z56.literal("checkout"),
26129
- state: z56.enum(["empty", "blocked", "ready"]),
26130
- heading: z56.string().nullable(),
26131
- className: z56.string().nullable(),
26132
- message: z56.string().nullable(),
26133
- submitButtonText: z56.string()
26134
- });
26135
- var passesMembershipsHydrationSchema = z56.object({
26136
- passes: z56.array(publicPassProductSchema),
26137
- memberships: z56.array(publicMembershipProductSchema),
26138
- passPurchaseMode: z56.enum(["add_to_cart", "buy_now"])
26139
- });
26140
- var productListHydrationSchema = z56.object({
26141
- products: z56.array(publicProductSchema),
26142
- showSummary: z56.boolean(),
26143
- showBadges: z56.boolean(),
26144
- showPrices: z56.boolean(),
26145
- addButtonText: z56.string()
26146
- });
26147
- var productDetailHydrationSchema = z56.object({
26148
- products: z56.array(publicProductSchema),
26149
- productId: z56.string().nullable(),
26150
- showSummary: z56.boolean(),
26151
- showBadges: z56.boolean(),
26152
- showBody: z56.boolean(),
26153
- addButtonText: z56.string()
26154
- });
26155
- var cartHydrationSchema = z56.object({
26156
- emptyStateText: z56.string(),
26157
- checkoutButtonText: z56.string(),
26158
- clearButtonText: z56.string()
26159
- });
26160
- var checkoutHydrationSchema = z56.object({
26161
- emptyStateText: z56.string(),
26162
- submitButtonText: z56.string()
26163
- });
26164
- var passesMembershipsRenderSchema = z56.object({
26012
+ var passCardDisplaySchema = z55.object({
26013
+ id: z55.string(),
26014
+ title: z55.string(),
26015
+ description: z55.string().nullable(),
26016
+ priceLabel: z55.string(),
26017
+ creditsLabel: z55.string(),
26018
+ perCreditLabel: z55.string().nullable(),
26019
+ validityLabel: z55.string().nullable(),
26020
+ actionLabel: z55.string()
26021
+ });
26022
+ var membershipCardDisplaySchema = z55.object({
26023
+ id: z55.string(),
26024
+ title: z55.string(),
26025
+ description: z55.string().nullable(),
26026
+ priceLabel: z55.string(),
26027
+ intervalLabel: z55.string(),
26028
+ actionLabel: z55.string()
26029
+ });
26030
+ var passesMembershipsDisplaySchema = z55.object({
26031
+ kind: z55.literal("passes-memberships"),
26032
+ state: z55.enum(["empty", "ready"]),
26033
+ className: z55.string().nullable(),
26034
+ layout: z55.enum(["grid", "list"]),
26035
+ columns: z55.string(),
26036
+ emptyMessage: z55.string(),
26037
+ passesHeading: z55.string(),
26038
+ membershipsHeading: z55.string(),
26039
+ passes: z55.array(passCardDisplaySchema),
26040
+ memberships: z55.array(membershipCardDisplaySchema)
26041
+ });
26042
+ var cartLineDisplaySchema = z55.object({
26043
+ key: z55.string(),
26044
+ title: z55.string(),
26045
+ priceLabel: z55.string(),
26046
+ quantity: z55.number(),
26047
+ quantityEditable: z55.boolean()
26048
+ });
26049
+ var cartDisplaySchema = z55.object({
26050
+ kind: z55.literal("cart"),
26051
+ state: z55.enum(["empty", "ready"]),
26052
+ heading: z55.string().nullable(),
26053
+ className: z55.string().nullable(),
26054
+ emptyMessage: z55.string(),
26055
+ supportText: z55.string().nullable(),
26056
+ items: z55.array(cartLineDisplaySchema),
26057
+ subtotalLabel: z55.string().nullable(),
26058
+ checkoutButtonText: z55.string(),
26059
+ clearButtonText: z55.string()
26060
+ });
26061
+ var checkoutDisplaySchema = z55.object({
26062
+ kind: z55.literal("checkout"),
26063
+ state: z55.enum(["empty", "blocked", "ready"]),
26064
+ heading: z55.string().nullable(),
26065
+ className: z55.string().nullable(),
26066
+ message: z55.string().nullable(),
26067
+ submitButtonText: z55.string()
26068
+ });
26069
+ var passesMembershipsHydrationSchema = z55.object({
26070
+ passes: z55.array(publicPassProductSchema),
26071
+ memberships: z55.array(publicMembershipProductSchema),
26072
+ passPurchaseMode: z55.enum(["add_to_cart", "buy_now"])
26073
+ });
26074
+ var productListHydrationSchema = z55.object({
26075
+ products: z55.array(publicProductSchema),
26076
+ showSummary: z55.boolean(),
26077
+ showBadges: z55.boolean(),
26078
+ showPrices: z55.boolean(),
26079
+ addButtonText: z55.string()
26080
+ });
26081
+ var productDetailHydrationSchema = z55.object({
26082
+ products: z55.array(publicProductSchema),
26083
+ productId: z55.string().nullable(),
26084
+ showSummary: z55.boolean(),
26085
+ showBadges: z55.boolean(),
26086
+ showBody: z55.boolean(),
26087
+ addButtonText: z55.string()
26088
+ });
26089
+ var cartHydrationSchema = z55.object({
26090
+ emptyStateText: z55.string(),
26091
+ checkoutButtonText: z55.string(),
26092
+ clearButtonText: z55.string()
26093
+ });
26094
+ var checkoutHydrationSchema = z55.object({
26095
+ emptyStateText: z55.string(),
26096
+ submitButtonText: z55.string()
26097
+ });
26098
+ var passesMembershipsRenderSchema = z55.object({
26165
26099
  display: passesMembershipsDisplaySchema,
26166
26100
  hydration: passesMembershipsHydrationSchema
26167
26101
  });
26168
- var productListRenderSchema = z56.object({
26102
+ var productListRenderSchema = z55.object({
26169
26103
  display: productListDisplaySchema,
26170
26104
  hydration: productListHydrationSchema
26171
26105
  });
26172
- var productDetailRenderSchema = z56.object({
26106
+ var productDetailRenderSchema = z55.object({
26173
26107
  display: productDetailDisplaySchema,
26174
26108
  hydration: productDetailHydrationSchema
26175
26109
  });
26176
- var cartRenderSchema = z56.object({
26110
+ var cartRenderSchema = z55.object({
26177
26111
  display: cartDisplaySchema,
26178
26112
  hydration: cartHydrationSchema
26179
26113
  });
26180
- var checkoutRenderSchema = z56.object({
26114
+ var checkoutRenderSchema = z55.object({
26181
26115
  display: checkoutDisplaySchema,
26182
26116
  hydration: checkoutHydrationSchema
26183
26117
  });
26184
26118
  function resolveShowPricePerCredit(source) {
26185
26119
  return source.showPricePerCredit ?? true;
26186
26120
  }
26187
- var shopIslandMetaCodec = createZodCodec(z56.object({
26188
- siteId: z56.string().optional(),
26189
- apiBaseUrl: z56.string().optional(),
26121
+ var shopIslandMetaCodec = createZodCodec(z55.object({
26122
+ siteId: z55.string().optional(),
26123
+ apiBaseUrl: z55.string().optional(),
26190
26124
  stage: previewStageSchema.optional()
26191
26125
  }));
26192
26126
  var shopIslandMetaKeys = defineInteractiveIslandMetaKeys("siteId", "apiBaseUrl", "stage");
@@ -26568,9 +26502,9 @@ var shopBlockDefinition = {
26568
26502
  runtime: shopBlockRuntime,
26569
26503
  dataSchemas: {
26570
26504
  // listPublicPasses returns { passes: [...] }
26571
- passes: z57.object({ passes: z57.array(publicPassProductSchema) }).optional(),
26505
+ passes: z56.object({ passes: z56.array(publicPassProductSchema) }).optional(),
26572
26506
  // listPublicMemberships returns { memberships: [...] }
26573
- memberships: z57.object({ memberships: z57.array(publicMembershipProductSchema) }).optional()
26507
+ memberships: z56.object({ memberships: z56.array(publicMembershipProductSchema) }).optional()
26574
26508
  },
26575
26509
  dataLoaders: {
26576
26510
  // Load passes for display
@@ -26593,7 +26527,7 @@ var shopBlockDefinition = {
26593
26527
  };
26594
26528
 
26595
26529
  // ../blocks/src/system/blocks/product-list.ts
26596
- import { z as z58 } from "zod";
26530
+ import { z as z57 } from "zod";
26597
26531
  var productListManifest = createBlockManifest({
26598
26532
  id: "block.product-list",
26599
26533
  version: "1.0.0",
@@ -26735,7 +26669,7 @@ var productListBlockDefinition = {
26735
26669
  }
26736
26670
  }
26737
26671
  };
26738
- var productListDataSchema = z58.object({
26672
+ var productListDataSchema = z57.object({
26739
26673
  products: publicProductsResponseSchema.optional()
26740
26674
  });
26741
26675
 
@@ -27005,72 +26939,72 @@ var checkoutBlockDefinition = {
27005
26939
  };
27006
26940
 
27007
26941
  // ../blocks/src/system/runtime/nodes/gifting.interactive.ts
27008
- import { z as z59 } from "zod";
27009
- var publicGiftCardOfferSchema = z59.object({
27010
- id: z59.string(),
27011
- kind: z59.literal("gift_card"),
27012
- title: z59.string(),
27013
- description: z59.string().nullable(),
27014
- sortOrder: z59.number().int(),
27015
- giftCard: z59.object({
27016
- fixedDenominations: z59.array(z59.number().int().positive()),
27017
- customAmountEnabled: z59.boolean(),
27018
- customAmountMinCents: z59.number().int().positive(),
27019
- customAmountMaxCents: z59.number().int().positive()
26942
+ import { z as z58 } from "zod";
26943
+ var publicGiftCardOfferSchema = z58.object({
26944
+ id: z58.string(),
26945
+ kind: z58.literal("gift_card"),
26946
+ title: z58.string(),
26947
+ description: z58.string().nullable(),
26948
+ sortOrder: z58.number().int(),
26949
+ giftCard: z58.object({
26950
+ fixedDenominations: z58.array(z58.number().int().positive()),
26951
+ customAmountEnabled: z58.boolean(),
26952
+ customAmountMinCents: z58.number().int().positive(),
26953
+ customAmountMaxCents: z58.number().int().positive()
27020
26954
  }),
27021
- voucher: z59.null()
27022
- });
27023
- var publicVoucherOfferSchema = z59.object({
27024
- id: z59.string(),
27025
- kind: z59.literal("voucher"),
27026
- title: z59.string(),
27027
- description: z59.string().nullable(),
27028
- sortOrder: z59.number().int(),
27029
- giftCard: z59.null(),
27030
- voucher: z59.object({
27031
- purchaseAmountCents: z59.number().int().positive()
26955
+ voucher: z58.null()
26956
+ });
26957
+ var publicVoucherOfferSchema = z58.object({
26958
+ id: z58.string(),
26959
+ kind: z58.literal("voucher"),
26960
+ title: z58.string(),
26961
+ description: z58.string().nullable(),
26962
+ sortOrder: z58.number().int(),
26963
+ giftCard: z58.null(),
26964
+ voucher: z58.object({
26965
+ purchaseAmountCents: z58.number().int().positive()
27032
26966
  })
27033
26967
  });
27034
- var publicGiftingOffersResponseSchema = z59.object({
27035
- currency: z59.string(),
27036
- giftCards: z59.array(publicGiftCardOfferSchema),
27037
- vouchers: z59.array(publicVoucherOfferSchema)
26968
+ var publicGiftingOffersResponseSchema = z58.object({
26969
+ currency: z58.string(),
26970
+ giftCards: z58.array(publicGiftCardOfferSchema),
26971
+ vouchers: z58.array(publicVoucherOfferSchema)
27038
26972
  });
27039
- var giftingSourceSchema = z59.object({
27040
- siteId: z59.string().optional(),
27041
- apiBaseUrl: z59.string().optional(),
26973
+ var giftingSourceSchema = z58.object({
26974
+ siteId: z58.string().optional(),
26975
+ apiBaseUrl: z58.string().optional(),
27042
26976
  offers: publicGiftingOffersResponseSchema.nullable().optional(),
27043
- className: z59.string().nullable().optional(),
27044
- heading: z59.string().nullable().optional(),
27045
- intro: z59.string().nullable().optional(),
27046
- giftCardsHeading: z59.string().nullable().optional(),
27047
- vouchersHeading: z59.string().nullable().optional(),
27048
- emptyStateText: z59.string().nullable().optional(),
27049
- checkoutButtonText: z59.string().nullable().optional(),
27050
- successMessage: z59.string().nullable().optional()
27051
- });
27052
- var giftingDisplaySchema = z59.object({
27053
- kind: z59.literal("gifting"),
27054
- state: z59.literal("ready"),
27055
- className: z59.string().nullable(),
27056
- heading: z59.string(),
27057
- intro: z59.string().nullable(),
27058
- giftCardsHeading: z59.string(),
27059
- vouchersHeading: z59.string(),
27060
- emptyStateText: z59.string()
27061
- });
27062
- var giftingHydrationSchema = z59.object({
26977
+ className: z58.string().nullable().optional(),
26978
+ heading: z58.string().nullable().optional(),
26979
+ intro: z58.string().nullable().optional(),
26980
+ giftCardsHeading: z58.string().nullable().optional(),
26981
+ vouchersHeading: z58.string().nullable().optional(),
26982
+ emptyStateText: z58.string().nullable().optional(),
26983
+ checkoutButtonText: z58.string().nullable().optional(),
26984
+ successMessage: z58.string().nullable().optional()
26985
+ });
26986
+ var giftingDisplaySchema = z58.object({
26987
+ kind: z58.literal("gifting"),
26988
+ state: z58.literal("ready"),
26989
+ className: z58.string().nullable(),
26990
+ heading: z58.string(),
26991
+ intro: z58.string().nullable(),
26992
+ giftCardsHeading: z58.string(),
26993
+ vouchersHeading: z58.string(),
26994
+ emptyStateText: z58.string()
26995
+ });
26996
+ var giftingHydrationSchema = z58.object({
27063
26997
  offers: publicGiftingOffersResponseSchema.nullable(),
27064
- checkoutButtonText: z59.string(),
27065
- successMessage: z59.string()
26998
+ checkoutButtonText: z58.string(),
26999
+ successMessage: z58.string()
27066
27000
  });
27067
- var giftingRenderSchema = z59.object({
27001
+ var giftingRenderSchema = z58.object({
27068
27002
  display: giftingDisplaySchema,
27069
27003
  hydration: giftingHydrationSchema
27070
27004
  });
27071
- var giftingIslandMetaCodec = createZodCodec(z59.object({
27072
- siteId: z59.string().optional(),
27073
- apiBaseUrl: z59.string().optional()
27005
+ var giftingIslandMetaCodec = createZodCodec(z58.object({
27006
+ siteId: z58.string().optional(),
27007
+ apiBaseUrl: z58.string().optional()
27074
27008
  }));
27075
27009
  var giftingIslandMetaKeys = defineInteractiveIslandMetaKeys(
27076
27010
  "siteId",
@@ -27241,7 +27175,7 @@ var giftingBlockDefinition = {
27241
27175
  };
27242
27176
 
27243
27177
  // ../blocks/src/system/runtime/nodes/newsletter-form.interactive.ts
27244
- import { z as z60 } from "zod";
27178
+ import { z as z59 } from "zod";
27245
27179
 
27246
27180
  // ../blocks/src/system/runtime/nodes/newsletter-form.types.ts
27247
27181
  function getPresetFields(preset2, options) {
@@ -27295,49 +27229,49 @@ function withOptionalPhone(fields3, includePhone) {
27295
27229
  }
27296
27230
 
27297
27231
  // ../blocks/src/system/runtime/nodes/newsletter-form.interactive.ts
27298
- var newsletterPresetSchema = z60.enum(["emailOnly", "emailName", "emailFirstLast", "emailNameCompany"]);
27299
- var newsletterFieldSchema = z60.object({
27300
- id: z60.string(),
27301
- type: z60.enum(["email", "text"]),
27302
- label: z60.string(),
27303
- required: z60.boolean(),
27304
- placeholder: z60.string().optional()
27305
- });
27306
- var newsletterSourceSchema = z60.object({
27307
- siteId: z60.string().optional(),
27308
- apiBaseUrl: z60.string().optional(),
27309
- listId: z60.string().nullable().optional(),
27232
+ var newsletterPresetSchema = z59.enum(["emailOnly", "emailName", "emailFirstLast", "emailNameCompany"]);
27233
+ var newsletterFieldSchema = z59.object({
27234
+ id: z59.string(),
27235
+ type: z59.enum(["email", "text"]),
27236
+ label: z59.string(),
27237
+ required: z59.boolean(),
27238
+ placeholder: z59.string().optional()
27239
+ });
27240
+ var newsletterSourceSchema = z59.object({
27241
+ siteId: z59.string().optional(),
27242
+ apiBaseUrl: z59.string().optional(),
27243
+ listId: z59.string().nullable().optional(),
27310
27244
  preset: newsletterPresetSchema.optional(),
27311
- includePhone: z60.boolean().optional(),
27312
- buttonLabel: z60.string().nullable().optional(),
27313
- successMessage: z60.string().nullable().optional(),
27314
- privacyNote: z60.string().nullable().optional(),
27315
- tags: z60.string().nullable().optional(),
27316
- spamProtectionEnabled: z60.boolean().optional(),
27317
- className: z60.string().nullable().optional()
27318
- });
27319
- var newsletterDisplaySchema = z60.object({
27320
- kind: z60.literal("newsletter-form"),
27321
- className: z60.string().nullable(),
27322
- buttonLabel: z60.string(),
27323
- successMessage: z60.string().nullable(),
27324
- privacyNote: z60.string().nullable(),
27325
- fields: z60.array(newsletterFieldSchema)
27326
- });
27327
- var newsletterHydrationSchema = z60.object({
27328
- listId: z60.string().nullable().optional(),
27245
+ includePhone: z59.boolean().optional(),
27246
+ buttonLabel: z59.string().nullable().optional(),
27247
+ successMessage: z59.string().nullable().optional(),
27248
+ privacyNote: z59.string().nullable().optional(),
27249
+ tags: z59.string().nullable().optional(),
27250
+ spamProtectionEnabled: z59.boolean().optional(),
27251
+ className: z59.string().nullable().optional()
27252
+ });
27253
+ var newsletterDisplaySchema = z59.object({
27254
+ kind: z59.literal("newsletter-form"),
27255
+ className: z59.string().nullable(),
27256
+ buttonLabel: z59.string(),
27257
+ successMessage: z59.string().nullable(),
27258
+ privacyNote: z59.string().nullable(),
27259
+ fields: z59.array(newsletterFieldSchema)
27260
+ });
27261
+ var newsletterHydrationSchema = z59.object({
27262
+ listId: z59.string().nullable().optional(),
27329
27263
  preset: newsletterPresetSchema,
27330
- includePhone: z60.boolean(),
27331
- tags: z60.string().nullable().optional(),
27332
- spamProtectionEnabled: z60.boolean().optional()
27264
+ includePhone: z59.boolean(),
27265
+ tags: z59.string().nullable().optional(),
27266
+ spamProtectionEnabled: z59.boolean().optional()
27333
27267
  });
27334
- var newsletterRenderSchema = z60.object({
27268
+ var newsletterRenderSchema = z59.object({
27335
27269
  display: newsletterDisplaySchema,
27336
27270
  hydration: newsletterHydrationSchema
27337
27271
  });
27338
- var newsletterIslandMetaCodec = createZodCodec(z60.object({
27339
- siteId: z60.string().optional(),
27340
- apiBaseUrl: z60.string().optional()
27272
+ var newsletterIslandMetaCodec = createZodCodec(z59.object({
27273
+ siteId: z59.string().optional(),
27274
+ apiBaseUrl: z59.string().optional()
27341
27275
  }));
27342
27276
  var newsletterIslandMetaKeys = defineInteractiveIslandMetaKeys("siteId", "apiBaseUrl");
27343
27277
  function buildNewsletterDisplay(source) {
@@ -27458,23 +27392,23 @@ var newsletterSignupBlockDefinition = {
27458
27392
  };
27459
27393
 
27460
27394
  // ../blocks/src/system/blocks/team-members.ts
27461
- import { z as z61 } from "zod";
27395
+ import { z as z60 } from "zod";
27462
27396
  var ITEM_NAME2 = "member";
27463
27397
  var teamMemberPhotoSchema = mediaSchema2.refine((media2) => media2.type === "image", {
27464
27398
  message: "Team member photos must be image media"
27465
27399
  }).nullable();
27466
- var teamMemberDataSchema = z61.object({
27467
- _type: z61.literal("teamMember"),
27468
- id: z61.string(),
27469
- name: z61.string(),
27470
- role: z61.string().nullable(),
27471
- roleLabel: z61.string().nullable(),
27472
- bio: z61.string().nullable(),
27473
- summary: z61.string().nullable(),
27400
+ var teamMemberDataSchema = z60.object({
27401
+ _type: z60.literal("teamMember"),
27402
+ id: z60.string(),
27403
+ name: z60.string(),
27404
+ role: z60.string().nullable(),
27405
+ roleLabel: z60.string().nullable(),
27406
+ bio: z60.string().nullable(),
27407
+ summary: z60.string().nullable(),
27474
27408
  photo: teamMemberPhotoSchema,
27475
- profilePath: z61.string().nullable()
27409
+ profilePath: z60.string().nullable()
27476
27410
  });
27477
- var teamMembersDataSchema = z61.array(teamMemberDataSchema);
27411
+ var teamMembersDataSchema = z60.array(teamMemberDataSchema);
27478
27412
  var dynamicSourceWhen = { equals: "site_staff" };
27479
27413
  var manualSourceWhen = { equals: "site_staff", not: true };
27480
27414
  var headingNode = text(
@@ -29248,10 +29182,10 @@ function normalizeDataLoaders(def) {
29248
29182
  }
29249
29183
  function normalizeContent(block) {
29250
29184
  const source = block.draftContent ?? block.content ?? block.publishedContent ?? {};
29251
- if (!isObjectRecord(source)) return {};
29185
+ if (!isObjectRecord2(source)) return {};
29252
29186
  if ("data" in source) {
29253
29187
  const data = source.data;
29254
- if (isObjectRecord(data)) {
29188
+ if (isObjectRecord2(data)) {
29255
29189
  return data;
29256
29190
  }
29257
29191
  if (data === null || data === void 0) {
@@ -29376,7 +29310,7 @@ async function prefetchBlockData(page, context, options) {
29376
29310
 
29377
29311
  // ../blocks/src/system/data/normalizeLoaderParams.ts
29378
29312
  function toStringParams(value) {
29379
- if (!isObjectRecord(value)) return {};
29313
+ if (!isObjectRecord2(value)) return {};
29380
29314
  const out = {};
29381
29315
  for (const [k, v] of Object.entries(value)) {
29382
29316
  if (typeof v === "string") out[k] = v;
@@ -29434,6 +29368,74 @@ function normalizeLoaderParams(endpoint, params, context) {
29434
29368
  return out;
29435
29369
  }
29436
29370
 
29371
+ // ../api/src/aiPlayground.ts
29372
+ import { z as z61 } from "zod";
29373
+ var Rfc6902PatchOp = z61.discriminatedUnion("op", [
29374
+ // Standard RFC-6902 operations
29375
+ z61.object({
29376
+ op: z61.literal("add"),
29377
+ path: z61.string(),
29378
+ value: z61.unknown()
29379
+ }),
29380
+ z61.object({
29381
+ op: z61.literal("remove"),
29382
+ path: z61.string()
29383
+ }),
29384
+ z61.object({
29385
+ op: z61.literal("replace"),
29386
+ path: z61.string(),
29387
+ value: z61.unknown()
29388
+ }),
29389
+ z61.object({
29390
+ op: z61.literal("move"),
29391
+ from: z61.string(),
29392
+ path: z61.string()
29393
+ }),
29394
+ z61.object({
29395
+ op: z61.literal("copy"),
29396
+ from: z61.string(),
29397
+ path: z61.string()
29398
+ }),
29399
+ // Block-level operations (Phase 2)
29400
+ z61.object({
29401
+ op: z61.literal("add_block"),
29402
+ blockKind: z61.string(),
29403
+ afterBlockId: z61.string().nullable(),
29404
+ content: z61.record(z61.string(), z61.unknown()),
29405
+ rationale: z61.string()
29406
+ }),
29407
+ z61.object({
29408
+ op: z61.literal("delete_block"),
29409
+ blockId: z61.string(),
29410
+ rationale: z61.string()
29411
+ }),
29412
+ z61.object({
29413
+ op: z61.literal("reorder_block"),
29414
+ blockId: z61.string(),
29415
+ afterBlockId: z61.string().nullable(),
29416
+ rationale: z61.string()
29417
+ })
29418
+ ]);
29419
+ var PlaygroundProposeRequest = z61.object({
29420
+ request: z61.string().min(1).max(2e3)
29421
+ });
29422
+ var MultiPagePatchEnvelope = z61.object({
29423
+ pageId: z61.string(),
29424
+ blockId: z61.string().optional(),
29425
+ // Not present for page-level ops
29426
+ blockKind: z61.string().optional(),
29427
+ blockPurpose: z61.string().optional().nullable(),
29428
+ ops: z61.array(Rfc6902PatchOp),
29429
+ rationale: z61.string(),
29430
+ currentContent: z61.record(z61.string(), z61.unknown()).optional()
29431
+ });
29432
+ var MultiPageUpdateResponse = z61.object({
29433
+ patches: z61.array(MultiPagePatchEnvelope),
29434
+ assistantMessage: z61.string(),
29435
+ pagesModified: z61.number(),
29436
+ toolCallsUsed: z61.number()
29437
+ });
29438
+
29437
29439
  // src/data/prefetchBlockData.ts
29438
29440
  var SUPPORTED_LOADER_ENDPOINTS2 = [
29439
29441
  "listPublishedEntries",