@riverbankcms/sdk 0.60.7 → 0.60.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/api/src/navigation/linkValue.d.ts +1 -1
- package/dist/_dts/blocks/src/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +185 -0
- package/dist/_dts/blocks/src/system/manifest/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/manifest/validation.d.ts +2 -84
- package/dist/_dts/blocks/src/system/types/link.d.ts +93 -1
- package/dist/_dts/db/src/schemas/forms.d.ts +24 -3
- package/dist/_dts/editor-blocks/src/widgets/link/LinkSummary.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/utils.d.ts +1 -1
- package/dist/_dts/sdk/src/config/typed-entries.d.ts +36 -1
- package/dist/_dts/sdk/src/contracts/content.d.ts +6 -1
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/cli/index.mjs +676 -428
- package/dist/client/client.mjs +39991 -39754
- package/dist/client/hooks.mjs +1737 -1735
- package/dist/client/rendering.mjs +1463 -1226
- package/dist/preview-next/client/runtime.mjs +1052 -799
- package/dist/server/components.mjs +2983 -2745
- package/dist/server/config-validation.mjs +1727 -1725
- package/dist/server/config.mjs +1727 -1725
- package/dist/server/data.mjs +1737 -1735
- package/dist/server/index.mjs +1 -1
- package/dist/server/next.mjs +3026 -2788
- package/dist/server/page-converter.mjs +10 -10
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +2996 -2758
- package/dist/server/rendering.mjs +2996 -2758
- package/dist/server/routing.mjs +256 -285
- package/dist/server/server.mjs +1738 -1736
- package/package.json +1 -1
package/dist/server/server.mjs
CHANGED
|
@@ -6262,7 +6262,7 @@ var SimpleCache = class {
|
|
|
6262
6262
|
};
|
|
6263
6263
|
|
|
6264
6264
|
// src/version.ts
|
|
6265
|
-
var SDK_VERSION = "0.60.
|
|
6265
|
+
var SDK_VERSION = "0.60.9";
|
|
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
|
|
9501
|
+
import { z as z10 } from "zod";
|
|
9578
9502
|
|
|
9579
9503
|
// ../theme-core/src/buttons/types.ts
|
|
9580
|
-
import { z as
|
|
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 =
|
|
9591
|
-
var shadowSizeSchema =
|
|
9592
|
-
var textTransformSchema =
|
|
9593
|
-
var fontWeightSchema =
|
|
9594
|
-
var buttonTypographySchema =
|
|
9595
|
-
var letterSpacingSchema =
|
|
9596
|
-
var hoverTransformSchema =
|
|
9597
|
-
var hoverColorSchema =
|
|
9598
|
-
var buttonPaddingPresetSchema =
|
|
9599
|
-
var gradientStyleSchema =
|
|
9600
|
-
var gradientSharpnessSchema =
|
|
9601
|
-
var prioritySchema =
|
|
9602
|
-
var variantRoleSchema =
|
|
9603
|
-
var buttonSizeNameSchema =
|
|
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 =
|
|
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 =
|
|
9538
|
+
var buttonSizeConfigSchema = z8.object({
|
|
9615
9539
|
padding: paddingShorthandSchema,
|
|
9616
|
-
fontSize:
|
|
9540
|
+
fontSize: z8.string().optional()
|
|
9617
9541
|
});
|
|
9618
|
-
var buttonSizesSchema =
|
|
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 =
|
|
9553
|
+
var buttonGlobalSettingsSchema = z8.object({
|
|
9630
9554
|
cornerStyle: cornerStyleSchema,
|
|
9631
|
-
cornerRadius:
|
|
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:
|
|
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:
|
|
9572
|
+
fontSize: z8.string().optional(),
|
|
9649
9573
|
// Letter spacing applied to all variants
|
|
9650
9574
|
letterSpacing: letterSpacingSchema.optional(),
|
|
9651
9575
|
// Italic style
|
|
9652
|
-
italic:
|
|
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:
|
|
9582
|
+
hoverColorToken: z8.string().optional(),
|
|
9659
9583
|
// Gradient settings (if any variant uses gradients)
|
|
9660
9584
|
gradientStyle: gradientStyleSchema.optional(),
|
|
9661
|
-
gradientAngle:
|
|
9585
|
+
gradientAngle: z8.number().min(0).max(360).optional(),
|
|
9662
9586
|
gradientSharpness: gradientSharpnessSchema.optional()
|
|
9663
9587
|
});
|
|
9664
|
-
var gradientDirectionSchema =
|
|
9665
|
-
var buttonBackgroundSchema =
|
|
9666
|
-
|
|
9667
|
-
|
|
9668
|
-
type:
|
|
9669
|
-
stops:
|
|
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
|
-
|
|
9596
|
+
z8.object({ type: z8.literal("transparent") })
|
|
9673
9597
|
]);
|
|
9674
|
-
var effectApplicationSchema =
|
|
9675
|
-
effectId:
|
|
9676
|
-
options:
|
|
9677
|
-
});
|
|
9678
|
-
var buttonBorderSchema =
|
|
9679
|
-
widthClass:
|
|
9680
|
-
colorToken:
|
|
9681
|
-
});
|
|
9682
|
-
var variantShadowSchema =
|
|
9683
|
-
elevation:
|
|
9684
|
-
softness:
|
|
9685
|
-
position:
|
|
9686
|
-
});
|
|
9687
|
-
var variantEffectsSchema =
|
|
9688
|
-
base:
|
|
9689
|
-
hover:
|
|
9690
|
-
active:
|
|
9691
|
-
focus:
|
|
9692
|
-
});
|
|
9693
|
-
var variantSizeOverridesSchema =
|
|
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 =
|
|
9700
|
-
id:
|
|
9701
|
-
name:
|
|
9702
|
-
enabled:
|
|
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:
|
|
9630
|
+
textColorToken: z8.string(),
|
|
9707
9631
|
/** Tailwind radius token (e.g. `'rounded-md'`). Omit to inherit from `global.cornerStyle`. */
|
|
9708
|
-
borderRadius:
|
|
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:
|
|
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 =
|
|
9644
|
+
var buttonSystemSchema = z8.object({
|
|
9721
9645
|
global: buttonGlobalSettingsSchema,
|
|
9722
|
-
variants:
|
|
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
|
|
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 =
|
|
9735
|
-
tone:
|
|
9736
|
-
energy:
|
|
9737
|
-
motion:
|
|
9738
|
-
era:
|
|
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 =
|
|
9749
|
-
var buttonPersonalitySchema =
|
|
9672
|
+
var buttonPersonalityIdSchema = z10.string().min(1).transform((value) => asButtonPersonalityId(value));
|
|
9673
|
+
var buttonPersonalitySchema = z10.object({
|
|
9750
9674
|
id: buttonPersonalityIdSchema,
|
|
9751
|
-
name:
|
|
9752
|
-
description:
|
|
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
|
|
10215
|
+
import { z as z22 } from "zod";
|
|
10292
10216
|
|
|
10293
10217
|
// ../theme-core/src/schema.ts
|
|
10294
|
-
import { z as
|
|
10218
|
+
import { z as z21 } from "zod";
|
|
10295
10219
|
|
|
10296
10220
|
// ../theme-core/src/lib/media.ts
|
|
10297
|
-
import
|
|
10298
|
-
var hotspotSchema =
|
|
10299
|
-
x:
|
|
10300
|
-
y:
|
|
10301
|
-
radius:
|
|
10302
|
-
});
|
|
10303
|
-
var rotationSchema =
|
|
10304
|
-
var rectSchema =
|
|
10305
|
-
var aspectCropSchema =
|
|
10306
|
-
aspect:
|
|
10307
|
-
rect:
|
|
10308
|
-
hotspot:
|
|
10309
|
-
rotation:
|
|
10310
|
-
});
|
|
10311
|
-
var transformSchema =
|
|
10312
|
-
aspectCrops:
|
|
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
|
-
},
|
|
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 =
|
|
10323
|
-
type:
|
|
10324
|
-
purpose:
|
|
10325
|
-
placeholder:
|
|
10326
|
-
assetId:
|
|
10327
|
-
identifier:
|
|
10328
|
-
src:
|
|
10329
|
-
alt:
|
|
10330
|
-
filename:
|
|
10331
|
-
mimeType:
|
|
10332
|
-
width:
|
|
10333
|
-
height:
|
|
10334
|
-
storageBucket:
|
|
10335
|
-
storagePath:
|
|
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
|
|
10344
|
-
var cardSpacingSchema =
|
|
10345
|
-
var gradientDirectionSchema2 =
|
|
10346
|
-
var cardBackgroundSchema =
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
type:
|
|
10350
|
-
fromToken:
|
|
10351
|
-
toToken:
|
|
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
|
-
|
|
10278
|
+
z12.object({ type: z12.literal("transparent") })
|
|
10355
10279
|
]);
|
|
10356
|
-
var cardBorderSchema =
|
|
10357
|
-
widthClass:
|
|
10358
|
-
colorToken:
|
|
10359
|
-
});
|
|
10360
|
-
var cardVariantSchema =
|
|
10361
|
-
id:
|
|
10362
|
-
name:
|
|
10363
|
-
enabled:
|
|
10364
|
-
priority:
|
|
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:
|
|
10370
|
-
elevation:
|
|
10371
|
-
softness:
|
|
10372
|
-
position:
|
|
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:
|
|
10298
|
+
corners: z12.enum(["square", "soft", "rounded", "pill"]).optional(),
|
|
10375
10299
|
// Border (optional)
|
|
10376
10300
|
border: cardBorderSchema.optional()
|
|
10377
10301
|
});
|
|
10378
|
-
var cardSystemSchema =
|
|
10379
|
-
variants:
|
|
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
|
|
10384
|
-
var accordionIconSchema =
|
|
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 =
|
|
10320
|
+
var accordionSystemSchema = z13.object({
|
|
10397
10321
|
// Visual styling (solid color only - gradients can be added later if needed)
|
|
10398
|
-
background:
|
|
10399
|
-
type:
|
|
10400
|
-
colorToken:
|
|
10322
|
+
background: z13.object({
|
|
10323
|
+
type: z13.literal("solid"),
|
|
10324
|
+
colorToken: z13.string()
|
|
10401
10325
|
}),
|
|
10402
10326
|
// Spacing (padding inside items)
|
|
10403
|
-
spacing:
|
|
10327
|
+
spacing: z13.enum(["none", "compact", "cozy", "medium", "comfortable", "spacious"]),
|
|
10404
10328
|
// Border radius (null = inherit from theme.corners)
|
|
10405
|
-
corners:
|
|
10329
|
+
corners: z13.enum(["square", "soft", "rounded", "pill"]).nullable(),
|
|
10406
10330
|
// Border styling (null = inherit from theme.border)
|
|
10407
|
-
border:
|
|
10408
|
-
widthClass:
|
|
10331
|
+
border: z13.object({
|
|
10332
|
+
widthClass: z13.string(),
|
|
10409
10333
|
// e.g., 'border', 'border-2', 'border-0'
|
|
10410
|
-
colorToken:
|
|
10334
|
+
colorToken: z13.string()
|
|
10411
10335
|
}).nullable(),
|
|
10412
10336
|
// Shadow (null = inherit from theme.shadow)
|
|
10413
|
-
shadow:
|
|
10414
|
-
elevation:
|
|
10415
|
-
softness:
|
|
10416
|
-
position:
|
|
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:
|
|
10343
|
+
icon: z13.object({
|
|
10420
10344
|
style: accordionIconSchema,
|
|
10421
|
-
position:
|
|
10422
|
-
size:
|
|
10345
|
+
position: z13.enum(["left", "right"]),
|
|
10346
|
+
size: z13.enum(["sm", "md", "lg"])
|
|
10423
10347
|
}),
|
|
10424
10348
|
// Trigger (question) styling
|
|
10425
|
-
trigger:
|
|
10426
|
-
textColorToken:
|
|
10427
|
-
fontWeight:
|
|
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:
|
|
10432
|
-
backgroundColorToken:
|
|
10433
|
-
textColorToken:
|
|
10434
|
-
borderColorToken:
|
|
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:
|
|
10438
|
-
textColorToken:
|
|
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
|
|
10444
|
-
var inputSystemSchema =
|
|
10367
|
+
import { z as z14 } from "zod";
|
|
10368
|
+
var inputSystemSchema = z14.object({
|
|
10445
10369
|
// Base styling (applied to all inputs)
|
|
10446
|
-
base:
|
|
10447
|
-
background:
|
|
10448
|
-
|
|
10449
|
-
type:
|
|
10450
|
-
colorToken:
|
|
10370
|
+
base: z14.object({
|
|
10371
|
+
background: z14.union([
|
|
10372
|
+
z14.object({
|
|
10373
|
+
type: z14.literal("solid"),
|
|
10374
|
+
colorToken: z14.string()
|
|
10451
10375
|
}),
|
|
10452
|
-
|
|
10453
|
-
type:
|
|
10376
|
+
z14.object({
|
|
10377
|
+
type: z14.literal("transparent")
|
|
10454
10378
|
})
|
|
10455
10379
|
]),
|
|
10456
|
-
textColorToken:
|
|
10457
|
-
border:
|
|
10458
|
-
widthClass:
|
|
10380
|
+
textColorToken: z14.string(),
|
|
10381
|
+
border: z14.object({
|
|
10382
|
+
widthClass: z14.string(),
|
|
10459
10383
|
// e.g., 'border', 'border-2'
|
|
10460
|
-
colorToken:
|
|
10461
|
-
style:
|
|
10384
|
+
colorToken: z14.string(),
|
|
10385
|
+
style: z14.enum(["all", "underline"]).optional()
|
|
10462
10386
|
}),
|
|
10463
|
-
corners:
|
|
10387
|
+
corners: z14.enum(["square", "soft", "rounded", "pill"]).nullable(),
|
|
10464
10388
|
// null = inherit from theme.corners
|
|
10465
|
-
shadow:
|
|
10466
|
-
elevation:
|
|
10467
|
-
softness:
|
|
10389
|
+
shadow: z14.object({
|
|
10390
|
+
elevation: z14.enum(["none", "low", "medium"]),
|
|
10391
|
+
softness: z14.enum(["soft", "crisp", "hard"]).nullable()
|
|
10468
10392
|
}).nullable(),
|
|
10469
|
-
spacing:
|
|
10393
|
+
spacing: z14.enum(["compact", "cozy", "medium", "comfortable"]),
|
|
10470
10394
|
// padding inside inputs
|
|
10471
|
-
fontSize:
|
|
10395
|
+
fontSize: z14.enum(["sm", "base", "lg"])
|
|
10472
10396
|
}),
|
|
10473
10397
|
// Label styling
|
|
10474
|
-
label:
|
|
10475
|
-
textColorToken:
|
|
10476
|
-
fontWeight:
|
|
10477
|
-
fontSize:
|
|
10478
|
-
textTransform:
|
|
10479
|
-
letterSpacing:
|
|
10480
|
-
opacity:
|
|
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:
|
|
10484
|
-
ringColorToken:
|
|
10485
|
-
ringWidth:
|
|
10486
|
-
borderColorToken:
|
|
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:
|
|
10491
|
-
borderColorToken:
|
|
10492
|
-
textColorToken:
|
|
10414
|
+
error: z14.object({
|
|
10415
|
+
borderColorToken: z14.string(),
|
|
10416
|
+
textColorToken: z14.string()
|
|
10493
10417
|
}),
|
|
10494
10418
|
// Disabled state
|
|
10495
|
-
disabled:
|
|
10496
|
-
backgroundColorToken:
|
|
10497
|
-
textColorToken:
|
|
10498
|
-
opacity:
|
|
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
|
|
10504
|
-
var gradientStopSchema =
|
|
10505
|
-
color:
|
|
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:
|
|
10431
|
+
position: z15.number().min(0).max(100)
|
|
10508
10432
|
// Percentage 0-100
|
|
10509
10433
|
});
|
|
10510
|
-
var gradientConfigSchema =
|
|
10511
|
-
type:
|
|
10512
|
-
angle:
|
|
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:
|
|
10438
|
+
position: z15.string().optional(),
|
|
10515
10439
|
// For radial gradients ('center', 'top left', etc.)
|
|
10516
|
-
stops:
|
|
10440
|
+
stops: z15.array(gradientStopSchema).min(2)
|
|
10517
10441
|
});
|
|
10518
10442
|
|
|
10519
10443
|
// ../theme-core/src/navigation/types.ts
|
|
10520
|
-
import { z as
|
|
10444
|
+
import { z as z17 } from "zod";
|
|
10521
10445
|
|
|
10522
10446
|
// ../theme-core/src/interactive/baseSchema.ts
|
|
10523
|
-
import { z as
|
|
10524
|
-
var interactiveTypographySchema =
|
|
10447
|
+
import { z as z16 } from "zod";
|
|
10448
|
+
var interactiveTypographySchema = z16.object({
|
|
10525
10449
|
/** Font family source */
|
|
10526
|
-
typography:
|
|
10450
|
+
typography: z16.enum(["body", "heading"]).default("body"),
|
|
10527
10451
|
/** Font weight */
|
|
10528
|
-
fontWeight:
|
|
10452
|
+
fontWeight: z16.enum(["regular", "medium", "semibold", "bold"]).default("medium"),
|
|
10529
10453
|
/** Text transform */
|
|
10530
|
-
textTransform:
|
|
10454
|
+
textTransform: z16.enum(["none", "uppercase", "capitalize"]).default("none"),
|
|
10531
10455
|
/** Italic style */
|
|
10532
|
-
italic:
|
|
10456
|
+
italic: z16.boolean().default(false)
|
|
10533
10457
|
});
|
|
10534
|
-
var effectApplicationSchema2 =
|
|
10458
|
+
var effectApplicationSchema2 = z16.object({
|
|
10535
10459
|
/** Effect preset ID */
|
|
10536
|
-
effectId:
|
|
10460
|
+
effectId: z16.string(),
|
|
10537
10461
|
/** User-provided customization options */
|
|
10538
|
-
options:
|
|
10462
|
+
options: z16.record(z16.string(), z16.any()).optional()
|
|
10539
10463
|
});
|
|
10540
|
-
var effectCompositionSchema =
|
|
10464
|
+
var effectCompositionSchema = z16.object({
|
|
10541
10465
|
/** Effects always applied */
|
|
10542
|
-
base:
|
|
10466
|
+
base: z16.array(effectApplicationSchema2).optional(),
|
|
10543
10467
|
/** Effects applied on hover */
|
|
10544
|
-
hover:
|
|
10468
|
+
hover: z16.array(effectApplicationSchema2).optional(),
|
|
10545
10469
|
/** Effects applied on active/pressed */
|
|
10546
|
-
active:
|
|
10470
|
+
active: z16.array(effectApplicationSchema2).optional(),
|
|
10547
10471
|
/** Effects applied on focus */
|
|
10548
|
-
focus:
|
|
10472
|
+
focus: z16.array(effectApplicationSchema2).optional()
|
|
10549
10473
|
});
|
|
10550
10474
|
|
|
10551
10475
|
// ../theme-core/src/navigation/types.ts
|
|
10552
|
-
var navLinkPaddingSchema =
|
|
10553
|
-
var navLinkPaddingXSchema =
|
|
10554
|
-
var navLinkBorderRadiusSchema =
|
|
10555
|
-
var navLinkTextSizeSchema =
|
|
10556
|
-
var navLinkLetterSpacingSchema =
|
|
10557
|
-
var navLinkStyleSchema =
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
10641
|
-
|
|
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 =
|
|
10647
|
-
id:
|
|
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:
|
|
10576
|
+
blockKind: z18.string().min(1, "Block kind is required").max(50, "Block kind too long")
|
|
10653
10577
|
});
|
|
10654
|
-
var customCssRulesSchema =
|
|
10655
|
-
var blockCustomCssRulesSchema =
|
|
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
|
|
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 =
|
|
10664
|
-
var nestedRuleSchema =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
10611
|
+
var keyframeSchema = z19.object({
|
|
10688
10612
|
offset: keyframeOffsetSchema,
|
|
10689
10613
|
declarations: declarationsSchema
|
|
10690
10614
|
});
|
|
10691
|
-
var keyframesAtRuleSchema =
|
|
10615
|
+
var keyframesAtRuleSchema = z19.object({
|
|
10692
10616
|
id: ruleIdSchema,
|
|
10693
|
-
type:
|
|
10617
|
+
type: z19.literal("keyframes"),
|
|
10694
10618
|
name: animationNameSchema,
|
|
10695
|
-
frames:
|
|
10619
|
+
frames: z19.array(keyframeSchema).min(1, "At least one keyframe is required")
|
|
10696
10620
|
});
|
|
10697
|
-
var fontFaceDeclarationsSchema =
|
|
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 =
|
|
10625
|
+
var fontFaceAtRuleSchema = z19.object({
|
|
10702
10626
|
id: ruleIdSchema,
|
|
10703
|
-
type:
|
|
10627
|
+
type: z19.literal("font-face"),
|
|
10704
10628
|
declarations: fontFaceDeclarationsSchema
|
|
10705
10629
|
});
|
|
10706
|
-
var mediaQuerySchema =
|
|
10707
|
-
var mediaAtRuleSchema =
|
|
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:
|
|
10633
|
+
type: z19.literal("media"),
|
|
10710
10634
|
query: mediaQuerySchema,
|
|
10711
|
-
rules:
|
|
10635
|
+
rules: z19.array(nestedRuleSchema).min(1, "At least one rule is required")
|
|
10712
10636
|
});
|
|
10713
|
-
var supportsConditionSchema =
|
|
10714
|
-
var supportsAtRuleSchema =
|
|
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:
|
|
10640
|
+
type: z19.literal("supports"),
|
|
10717
10641
|
condition: supportsConditionSchema,
|
|
10718
|
-
rules:
|
|
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 =
|
|
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 =
|
|
10654
|
+
var rawAtRuleSchema = z19.object({
|
|
10731
10655
|
id: ruleIdSchema,
|
|
10732
|
-
type:
|
|
10656
|
+
type: z19.literal("raw"),
|
|
10733
10657
|
css: rawCssSchema
|
|
10734
10658
|
});
|
|
10735
|
-
var customCssAtRuleSchema =
|
|
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 =
|
|
10666
|
+
var customCssAtRulesSchema = z19.array(customCssAtRuleSchema).optional();
|
|
10743
10667
|
|
|
10744
10668
|
// ../theme-core/src/shared/componentStyles.ts
|
|
10745
|
-
import { z as
|
|
10746
|
-
var componentBorderSchema =
|
|
10747
|
-
width:
|
|
10748
|
-
style:
|
|
10749
|
-
colorToken:
|
|
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 =
|
|
10753
|
-
elevation:
|
|
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 =
|
|
10758
|
-
tone:
|
|
10759
|
-
energy:
|
|
10760
|
-
density:
|
|
10761
|
-
mediaBias:
|
|
10762
|
-
conversionBias:
|
|
10763
|
-
motion:
|
|
10764
|
-
});
|
|
10765
|
-
var colourHexString =
|
|
10766
|
-
var paletteColorSchema =
|
|
10767
|
-
name:
|
|
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 =
|
|
10771
|
-
mode:
|
|
10694
|
+
var paletteMetaSchema = z21.object({
|
|
10695
|
+
mode: z21.enum(["light", "dark"])
|
|
10772
10696
|
});
|
|
10773
|
-
var paletteSchema =
|
|
10774
|
-
colors:
|
|
10697
|
+
var paletteSchema = z21.object({
|
|
10698
|
+
colors: z21.array(paletteColorSchema),
|
|
10775
10699
|
meta: paletteMetaSchema
|
|
10776
10700
|
});
|
|
10777
|
-
var typographyStyleSchema =
|
|
10778
|
-
family:
|
|
10779
|
-
weight:
|
|
10780
|
-
letterSpacing:
|
|
10781
|
-
lineHeight:
|
|
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:
|
|
10708
|
+
size: z21.enum(["md", "lg", "xl"])
|
|
10785
10709
|
});
|
|
10786
|
-
var headingSizeSchema =
|
|
10787
|
-
var headingTypographyOverridesSchema =
|
|
10788
|
-
weight:
|
|
10789
|
-
letterSpacing:
|
|
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:
|
|
10792
|
-
italic:
|
|
10793
|
-
colorToken:
|
|
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:
|
|
10798
|
-
italic:
|
|
10799
|
-
colorToken:
|
|
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 =
|
|
10803
|
-
var proseLinkUnderlineThicknessSchema =
|
|
10804
|
-
var proseLinkUnderlineOffsetSchema =
|
|
10805
|
-
var proseLinkStyleSchema =
|
|
10806
|
-
colorToken:
|
|
10807
|
-
hoverColorToken:
|
|
10808
|
-
underline:
|
|
10809
|
-
decorationColorToken:
|
|
10810
|
-
hoverDecorationColorToken:
|
|
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 =
|
|
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 =
|
|
10824
|
-
var boxBackgroundOverlaySchema =
|
|
10825
|
-
type:
|
|
10826
|
-
color:
|
|
10827
|
-
gradient:
|
|
10828
|
-
opacity:
|
|
10829
|
-
});
|
|
10830
|
-
var boxBackgroundSchema =
|
|
10831
|
-
type:
|
|
10832
|
-
color:
|
|
10833
|
-
gradient:
|
|
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:
|
|
10836
|
-
scale:
|
|
10837
|
-
position:
|
|
10838
|
-
opacity:
|
|
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:
|
|
10841
|
-
headingColor:
|
|
10764
|
+
textColor: z21.string().nullable().optional(),
|
|
10765
|
+
headingColor: z21.string().nullable().optional()
|
|
10842
10766
|
});
|
|
10843
|
-
var sectionStylesOverrideSchema =
|
|
10767
|
+
var sectionStylesOverrideSchema = z21.object({
|
|
10844
10768
|
background: boxBackgroundSchema.nullable().optional(),
|
|
10845
10769
|
spacing: semanticSpacingSchema.nullable().optional(),
|
|
10846
|
-
minHeight:
|
|
10770
|
+
minHeight: z21.enum(["none", "hero", "immersive"]).nullable().optional()
|
|
10847
10771
|
});
|
|
10848
|
-
var containerStylesOverrideSchema =
|
|
10772
|
+
var containerStylesOverrideSchema = z21.object({
|
|
10849
10773
|
background: boxBackgroundSchema.nullable().optional(),
|
|
10850
10774
|
spacing: semanticSpacingSchema.nullable().optional(),
|
|
10851
|
-
raised:
|
|
10775
|
+
raised: z21.boolean().nullable().optional(),
|
|
10852
10776
|
rounded: boxRoundedSchema.nullable().optional(),
|
|
10853
|
-
fullWidth:
|
|
10777
|
+
fullWidth: z21.boolean().nullable().optional()
|
|
10854
10778
|
});
|
|
10855
|
-
var cardBorderOverrideSchema =
|
|
10856
|
-
enabled:
|
|
10857
|
-
width:
|
|
10858
|
-
colorToken:
|
|
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 =
|
|
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:
|
|
10788
|
+
raised: z21.boolean().nullable().optional(),
|
|
10865
10789
|
rounded: boxRoundedSchema.nullable().optional()
|
|
10866
10790
|
});
|
|
10867
|
-
var blockStyleOverridesSchema =
|
|
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 =
|
|
10873
|
-
typography:
|
|
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 =
|
|
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 =
|
|
10815
|
+
var typographySchema = z21.object({
|
|
10892
10816
|
body: bodyTypographyStyleSchema,
|
|
10893
|
-
headings:
|
|
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 =
|
|
10907
|
-
var corners =
|
|
10908
|
-
var shadow =
|
|
10909
|
-
elevation:
|
|
10910
|
-
softness:
|
|
10911
|
-
position:
|
|
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 =
|
|
10914
|
-
width:
|
|
10915
|
-
style:
|
|
10837
|
+
var border = z21.object({
|
|
10838
|
+
width: z21.enum(["none", "hairline", "thin", "thick"]),
|
|
10839
|
+
style: z21.enum(["solid", "dashed"])
|
|
10916
10840
|
});
|
|
10917
|
-
var motion =
|
|
10918
|
-
level:
|
|
10919
|
-
easing:
|
|
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 =
|
|
10845
|
+
var buttonStyle = z21.object({
|
|
10922
10846
|
shape: corners
|
|
10923
10847
|
// Used for --radius-control CSS variable
|
|
10924
10848
|
});
|
|
10925
|
-
var cardStyle =
|
|
10926
|
-
elevation:
|
|
10927
|
-
border:
|
|
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:
|
|
10930
|
-
mediaTreatment:
|
|
10853
|
+
headerStyle: z21.enum(["plain", "accentBar", "subtleBg"]).nullable(),
|
|
10854
|
+
mediaTreatment: z21.enum(["square", "rounded", "bleed"]).nullable()
|
|
10931
10855
|
});
|
|
10932
|
-
var inputStyle =
|
|
10856
|
+
var inputStyle = z21.object({
|
|
10933
10857
|
shape: corners,
|
|
10934
|
-
border:
|
|
10935
|
-
focus:
|
|
10936
|
-
label:
|
|
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 =
|
|
10939
|
-
var headerPositioning =
|
|
10940
|
-
var headerNavStyle =
|
|
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 =
|
|
10950
|
-
var headerMaxWidth =
|
|
10951
|
-
var headerContainerSchema =
|
|
10952
|
-
rounded:
|
|
10953
|
-
border:
|
|
10954
|
-
shadow:
|
|
10955
|
-
padding:
|
|
10956
|
-
tint:
|
|
10957
|
-
opacity:
|
|
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:
|
|
10884
|
+
position: z21.enum(["bottom", "top", "both", "none"]).default("bottom")
|
|
10961
10885
|
}).optional();
|
|
10962
|
-
var logoStyleSchema =
|
|
10963
|
-
fontFamily:
|
|
10964
|
-
letterSpacing:
|
|
10965
|
-
gradient:
|
|
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 =
|
|
10968
|
-
mobileWrapLines:
|
|
10969
|
-
mobileMaxWidth:
|
|
10970
|
-
hideOnShrink:
|
|
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 =
|
|
10973
|
-
underlineGradient:
|
|
10974
|
-
glow:
|
|
10975
|
-
glowColor:
|
|
10976
|
-
neumorphic:
|
|
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 =
|
|
10902
|
+
var dropdownStyleSchema = z21.object({
|
|
10979
10903
|
// Container styling
|
|
10980
|
-
background:
|
|
10904
|
+
background: z21.string().default("surface"),
|
|
10981
10905
|
// color token
|
|
10982
|
-
textColor:
|
|
10906
|
+
textColor: z21.string().default("text"),
|
|
10983
10907
|
// color token
|
|
10984
|
-
borderColor:
|
|
10908
|
+
borderColor: z21.string().nullable().default("border"),
|
|
10985
10909
|
// null = no border
|
|
10986
|
-
shadow:
|
|
10987
|
-
borderRadius:
|
|
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:
|
|
10913
|
+
hoverBackground: z21.string().nullable().optional(),
|
|
10990
10914
|
// color token, null = transparent
|
|
10991
|
-
hoverTextColor:
|
|
10915
|
+
hoverTextColor: z21.string().nullable().optional(),
|
|
10992
10916
|
// color token, null = inherit
|
|
10993
10917
|
// Typography
|
|
10994
|
-
textTransform:
|
|
10995
|
-
letterSpacing:
|
|
10996
|
-
fontWeight:
|
|
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:
|
|
10922
|
+
textSize: z21.enum(["xs", "sm", "base", "lg"]).optional()
|
|
10999
10923
|
// optional = no override (browser default)
|
|
11000
10924
|
}).optional();
|
|
11001
|
-
var headerCtaGapSchema =
|
|
11002
|
-
var navContainerSchema =
|
|
11003
|
-
type:
|
|
11004
|
-
tint:
|
|
11005
|
-
opacity:
|
|
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 =
|
|
11008
|
-
type:
|
|
11009
|
-
color:
|
|
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:
|
|
10936
|
+
textColor: z21.string().nullable().optional()
|
|
11013
10937
|
});
|
|
11014
|
-
var headerSchema =
|
|
10938
|
+
var headerSchema = z21.object({
|
|
11015
10939
|
variant: headerVariant,
|
|
11016
10940
|
positioning: headerPositioning,
|
|
11017
|
-
shrinkOnScroll:
|
|
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:
|
|
10945
|
+
textColor: z21.string().nullable().optional(),
|
|
11022
10946
|
// Site title and general header text
|
|
11023
10947
|
navStyle: headerNavStyle,
|
|
11024
|
-
navColor:
|
|
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 =
|
|
11044
|
-
var footerMaxWidth =
|
|
11045
|
-
var footerMode =
|
|
11046
|
-
var footerNavLayoutMode =
|
|
11047
|
-
var footerNavLayoutAlign =
|
|
11048
|
-
var footerSpacing =
|
|
11049
|
-
var footerLogoPlacement =
|
|
11050
|
-
var footerLogoSize =
|
|
11051
|
-
var footerLogoMaxHeight =
|
|
11052
|
-
var footerBottomTextLinkStyleSchema =
|
|
11053
|
-
colorToken:
|
|
11054
|
-
hoverColorToken:
|
|
11055
|
-
decorationColorToken:
|
|
11056
|
-
underline:
|
|
11057
|
-
});
|
|
11058
|
-
var footerBottomBarSchema =
|
|
11059
|
-
enabled:
|
|
11060
|
-
fullBleed:
|
|
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:
|
|
11063
|
-
textAlign:
|
|
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:
|
|
11067
|
-
colorToken:
|
|
11068
|
-
width:
|
|
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 =
|
|
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:
|
|
11000
|
+
columns: z21.number().int().min(1).max(6).optional()
|
|
11077
11001
|
});
|
|
11078
|
-
var footerLogoSchema =
|
|
11079
|
-
showLogo:
|
|
11080
|
-
showLogoText:
|
|
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:
|
|
11008
|
+
align: z21.enum(["start", "center", "end"]).optional()
|
|
11085
11009
|
});
|
|
11086
|
-
var footerSchema =
|
|
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:
|
|
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:
|
|
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 =
|
|
11111
|
-
var layoutSchema =
|
|
11112
|
-
containerPadding:
|
|
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 =
|
|
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 =
|
|
11130
|
-
var heroResponsiveTypographySchema =
|
|
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 =
|
|
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:
|
|
11069
|
+
responsive: z21.object({
|
|
11146
11070
|
tablet: heroResponsiveTypographySchema.optional(),
|
|
11147
11071
|
mobile: heroResponsiveTypographySchema.optional()
|
|
11148
11072
|
}).optional()
|
|
11149
11073
|
});
|
|
11150
|
-
var heroSchema =
|
|
11074
|
+
var heroSchema = z21.object({
|
|
11151
11075
|
typography: heroTypographySchema.optional()
|
|
11152
11076
|
}).optional();
|
|
11153
|
-
var gradientsSchema =
|
|
11154
|
-
button:
|
|
11155
|
-
hero:
|
|
11156
|
-
background:
|
|
11157
|
-
});
|
|
11158
|
-
var themeSchema =
|
|
11159
|
-
name:
|
|
11160
|
-
description:
|
|
11161
|
-
rationale:
|
|
11162
|
-
siteStyleId:
|
|
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:
|
|
11190
|
-
|
|
11113
|
+
blockCustomVars: z21.record(
|
|
11114
|
+
z21.string(),
|
|
11191
11115
|
// block kind (matches data-block attribute)
|
|
11192
|
-
|
|
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:
|
|
11198
|
-
|
|
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:
|
|
11158
|
+
styleGroups: z21.record(z21.string(), z21.array(z21.string())).optional()
|
|
11235
11159
|
});
|
|
11236
|
-
var themesTurnSchema =
|
|
11237
|
-
message:
|
|
11238
|
-
themes:
|
|
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 =
|
|
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 =
|
|
11188
|
+
var paletteTokenNameSchema = z22.enum(PALETTE_TOKEN_NAMES);
|
|
11265
11189
|
var HEX_COLOR_REGEX = /^#[0-9a-f]{6}$/;
|
|
11266
|
-
var hexColorSchema =
|
|
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 =
|
|
11194
|
+
var paletteVariantSchema = z22.object({
|
|
11271
11195
|
id: paletteVariantIdSchema,
|
|
11272
|
-
name:
|
|
11273
|
-
description:
|
|
11196
|
+
name: z22.string().min(1),
|
|
11197
|
+
description: z22.string().min(1),
|
|
11274
11198
|
tags: styleTagsSchema,
|
|
11275
|
-
mode:
|
|
11276
|
-
colors:
|
|
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 =
|
|
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
|
|
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 =
|
|
11992
|
-
var runtimeStyleFieldNameSchema =
|
|
11993
|
-
var nonEmptyRuntimeStyleFieldNamesSchema =
|
|
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 =
|
|
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 =
|
|
12020
|
-
|
|
12021
|
-
|
|
12022
|
-
kind:
|
|
12023
|
-
treatment:
|
|
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
|
-
|
|
12026
|
-
kind:
|
|
12027
|
-
treatment:
|
|
12028
|
-
bleed:
|
|
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 =
|
|
12032
|
-
blockId:
|
|
12033
|
-
blockKind:
|
|
12034
|
-
purpose:
|
|
12035
|
-
sectionSurface:
|
|
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:
|
|
12038
|
-
transitionAfter:
|
|
12039
|
-
emphasis:
|
|
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 =
|
|
12043
|
-
|
|
12044
|
-
kind:
|
|
11966
|
+
var styleAuthoritySchema = z23.discriminatedUnion("kind", [
|
|
11967
|
+
z23.object({
|
|
11968
|
+
kind: z23.literal("theme-v2"),
|
|
12045
11969
|
source: designResolutionPolicySchema,
|
|
12046
|
-
siteStyleId:
|
|
12047
|
-
templateId:
|
|
12048
|
-
templateVersion:
|
|
12049
|
-
resolverVersion:
|
|
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
|
-
|
|
12052
|
-
kind:
|
|
12053
|
-
reason:
|
|
11975
|
+
z23.object({
|
|
11976
|
+
kind: z23.literal("legacy-raw"),
|
|
11977
|
+
reason: z23.enum(["pre-theme-v2", "manual-runtime-fields"])
|
|
12054
11978
|
}).strict(),
|
|
12055
|
-
|
|
12056
|
-
kind:
|
|
12057
|
-
reason:
|
|
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 =
|
|
12061
|
-
unit:
|
|
12062
|
-
blockId:
|
|
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 =
|
|
12067
|
-
schemaVersion:
|
|
12068
|
-
siteStyleId:
|
|
12069
|
-
templateId:
|
|
12070
|
-
templateVersion:
|
|
12071
|
-
resolverVersion:
|
|
12072
|
-
rhythmPresetId:
|
|
12073
|
-
blocks:
|
|
12074
|
-
styleAuthorities:
|
|
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
|
|
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 =
|
|
12097
|
-
kind:
|
|
12098
|
-
treatment:
|
|
12020
|
+
var generatedPanelFrameSchema = z24.object({
|
|
12021
|
+
kind: z24.literal("panel"),
|
|
12022
|
+
treatment: z24.enum(generatedPanelTreatments)
|
|
12099
12023
|
}).strict();
|
|
12100
|
-
var generatedFlushPanelFrameSchema =
|
|
12101
|
-
kind:
|
|
12102
|
-
treatment:
|
|
12103
|
-
bleed:
|
|
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 =
|
|
12106
|
-
|
|
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 =
|
|
12034
|
+
var generatedSiteStyleIdSchema = z24.enum(curatedSiteStyleIdValues).transform(asSiteStyleId);
|
|
12111
12035
|
function generatedChoiceSchema(valueSchema) {
|
|
12112
|
-
return
|
|
12113
|
-
|
|
12114
|
-
source:
|
|
12115
|
-
kind:
|
|
12036
|
+
return z24.discriminatedUnion("kind", [
|
|
12037
|
+
z24.object({
|
|
12038
|
+
source: z24.literal("generated"),
|
|
12039
|
+
kind: z24.literal("auto")
|
|
12116
12040
|
}).strict(),
|
|
12117
|
-
|
|
12118
|
-
source:
|
|
12119
|
-
kind:
|
|
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 =
|
|
12048
|
+
var generatedBlockDesignIntentSchema = z24.object({
|
|
12125
12049
|
sectionSurface: generatedChoiceSchema(
|
|
12126
|
-
|
|
12050
|
+
z24.enum(generatedDesignOptionCatalog.sectionSurfaces)
|
|
12127
12051
|
),
|
|
12128
12052
|
contentFrame: generatedChoiceSchema(generatedContentFrameIntentSchema),
|
|
12129
12053
|
itemSurface: generatedChoiceSchema(
|
|
12130
|
-
|
|
12054
|
+
z24.enum(generatedDesignOptionCatalog.itemSurfaces)
|
|
12131
12055
|
),
|
|
12132
12056
|
transitionAfter: generatedChoiceSchema(
|
|
12133
|
-
|
|
12057
|
+
z24.enum(generatedDesignOptionCatalog.transitions)
|
|
12134
12058
|
),
|
|
12135
12059
|
emphasis: generatedChoiceSchema(
|
|
12136
|
-
|
|
12060
|
+
z24.enum(generatedDesignOptionCatalog.emphases)
|
|
12137
12061
|
)
|
|
12138
12062
|
}).strict();
|
|
12139
|
-
var generatedMediaCompositionIntentSchema =
|
|
12063
|
+
var generatedMediaCompositionIntentSchema = z24.enum([
|
|
12140
12064
|
"none",
|
|
12141
12065
|
"supporting",
|
|
12142
12066
|
"dominant"
|
|
12143
12067
|
]);
|
|
12144
|
-
var generatedDecorativeCompositionIntentSchema =
|
|
12068
|
+
var generatedDecorativeCompositionIntentSchema = z24.enum([
|
|
12145
12069
|
"none",
|
|
12146
12070
|
"supporting"
|
|
12147
12071
|
]);
|
|
12148
|
-
var generatedHeroLegibilityStrategySchema =
|
|
12072
|
+
var generatedHeroLegibilityStrategySchema = z24.enum([
|
|
12149
12073
|
"none",
|
|
12150
12074
|
"scrim-gradient"
|
|
12151
12075
|
]);
|
|
12152
|
-
var generatedBlockMediaIntentSchema =
|
|
12076
|
+
var generatedBlockMediaIntentSchema = z24.object({
|
|
12153
12077
|
media: generatedMediaCompositionIntentSchema,
|
|
12154
12078
|
decorative: generatedDecorativeCompositionIntentSchema,
|
|
12155
12079
|
heroLegibility: generatedChoiceSchema(generatedHeroLegibilityStrategySchema)
|
|
12156
12080
|
}).strict();
|
|
12157
|
-
var generatedBoundaryIntentSchema =
|
|
12081
|
+
var generatedBoundaryIntentSchema = z24.object({
|
|
12158
12082
|
transitionAfter: generatedChoiceSchema(
|
|
12159
|
-
|
|
12083
|
+
z24.enum(generatedDesignOptionCatalog.transitions)
|
|
12160
12084
|
)
|
|
12161
12085
|
}).strict();
|
|
12162
|
-
var generatedPageDesignBlockIntentSchema =
|
|
12163
|
-
blockId:
|
|
12164
|
-
blockKind:
|
|
12165
|
-
purpose:
|
|
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 =
|
|
12094
|
+
var generatedPageDesignIntentSchema = z24.object({
|
|
12171
12095
|
siteStyleId: generatedSiteStyleIdSchema,
|
|
12172
|
-
blocks:
|
|
12096
|
+
blocks: z24.array(generatedPageDesignBlockIntentSchema)
|
|
12173
12097
|
}).strict();
|
|
12174
12098
|
|
|
12175
12099
|
// ../theme-core/src/site-styles/pageDesignIntent.ts
|
|
12176
|
-
import { z as
|
|
12100
|
+
import { z as z25 } from "zod";
|
|
12177
12101
|
var pageDesignIntentSchemaVersion = 1;
|
|
12178
|
-
var pageDesignUserPinnedAppearanceChoiceSchema =
|
|
12179
|
-
kind:
|
|
12180
|
-
value:
|
|
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 =
|
|
12183
|
-
kind:
|
|
12184
|
-
value:
|
|
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 =
|
|
12187
|
-
blockId:
|
|
12188
|
-
blockKind:
|
|
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 =
|
|
12192
|
-
boundaryId:
|
|
12193
|
-
previousBlockId:
|
|
12194
|
-
nextBlockId:
|
|
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:
|
|
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 =
|
|
12210
|
-
schemaVersion:
|
|
12211
|
-
siteStyleId:
|
|
12212
|
-
pageFlowPresetId:
|
|
12213
|
-
blockLookPins:
|
|
12214
|
-
boundaryPins:
|
|
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:
|
|
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
|
|
12393
|
-
var nonEmptyStringSchema =
|
|
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 =
|
|
12399
|
-
var publishedPageBlockSnapshotSchema =
|
|
12400
|
-
kind:
|
|
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:
|
|
12327
|
+
identifier: z26.string().nullable(),
|
|
12404
12328
|
blockKind: nonEmptyStringSchema,
|
|
12405
12329
|
orderIndex: blockOrderIndexSchema
|
|
12406
12330
|
}).strict();
|
|
12407
|
-
var draftPageBlockSnapshotSchema =
|
|
12408
|
-
kind:
|
|
12331
|
+
var draftPageBlockSnapshotSchema = z26.object({
|
|
12332
|
+
kind: z26.literal("draft-block-content"),
|
|
12409
12333
|
blockId: designBlockIdSchema,
|
|
12410
12334
|
contentVersionId: blockContentVersionIdSchema.nullable(),
|
|
12411
|
-
identifier:
|
|
12335
|
+
identifier: z26.string().nullable(),
|
|
12412
12336
|
blockKind: nonEmptyStringSchema,
|
|
12413
12337
|
orderIndex: blockOrderIndexSchema
|
|
12414
12338
|
}).strict();
|
|
12415
|
-
var missingPageBlockSnapshotSchema =
|
|
12416
|
-
kind:
|
|
12339
|
+
var missingPageBlockSnapshotSchema = z26.object({
|
|
12340
|
+
kind: z26.literal("missing-block-content"),
|
|
12417
12341
|
blockId: designBlockIdSchema,
|
|
12418
|
-
identifier:
|
|
12342
|
+
identifier: z26.string().nullable(),
|
|
12419
12343
|
blockKind: nonEmptyStringSchema,
|
|
12420
12344
|
orderIndex: blockOrderIndexSchema,
|
|
12421
|
-
reason:
|
|
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 =
|
|
12351
|
+
var pageBlockSnapshotSchema = z26.discriminatedUnion("kind", [
|
|
12428
12352
|
publishedPageBlockSnapshotSchema,
|
|
12429
12353
|
draftPageBlockSnapshotSchema,
|
|
12430
12354
|
missingPageBlockSnapshotSchema
|
|
12431
12355
|
]);
|
|
12432
|
-
var publishedPageBlockSequenceSchema =
|
|
12433
|
-
var draftPageBlockSequenceSchema =
|
|
12434
|
-
var publishedPageDesignVersionDataV1Schema =
|
|
12435
|
-
schemaVersion:
|
|
12436
|
-
stage:
|
|
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 =
|
|
12441
|
-
schemaVersion:
|
|
12442
|
-
stage:
|
|
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 =
|
|
12370
|
+
var pageDesignVersionDataV1Schema = z26.discriminatedUnion("stage", [
|
|
12447
12371
|
publishedPageDesignVersionDataV1Schema,
|
|
12448
12372
|
draftPageDesignVersionDataV1Schema
|
|
12449
12373
|
]);
|
|
12450
|
-
var contentVersionOwnerSchema =
|
|
12451
|
-
|
|
12452
|
-
kind:
|
|
12374
|
+
var contentVersionOwnerSchema = z26.discriminatedUnion("kind", [
|
|
12375
|
+
z26.object({
|
|
12376
|
+
kind: z26.literal("block"),
|
|
12453
12377
|
blockId: designBlockIdSchema
|
|
12454
12378
|
}).strict(),
|
|
12455
|
-
|
|
12456
|
-
kind:
|
|
12379
|
+
z26.object({
|
|
12380
|
+
kind: z26.literal("entry"),
|
|
12457
12381
|
entryId: designEntryIdSchema
|
|
12458
12382
|
}).strict(),
|
|
12459
|
-
|
|
12460
|
-
kind:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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 =
|
|
12563
|
-
palette:
|
|
12564
|
-
contrast:
|
|
12565
|
-
radius:
|
|
12566
|
-
shadow:
|
|
12567
|
-
typography:
|
|
12568
|
-
spacing:
|
|
12569
|
-
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
|
|
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 =
|
|
14850
|
-
endpoint:
|
|
14851
|
-
params:
|
|
14852
|
-
mode:
|
|
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 =
|
|
14855
|
-
key:
|
|
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 =
|
|
14859
|
-
id:
|
|
14860
|
-
title:
|
|
14861
|
-
description:
|
|
14862
|
-
category:
|
|
14863
|
-
icon:
|
|
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:
|
|
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
|
|
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 =
|
|
17545
|
-
id:
|
|
17546
|
-
title:
|
|
17547
|
-
slug:
|
|
17548
|
-
path:
|
|
17549
|
-
excerpt:
|
|
17550
|
-
image:
|
|
17551
|
-
url:
|
|
17552
|
-
alt:
|
|
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:
|
|
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
|
|
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 =
|
|
17882
|
-
id:
|
|
17883
|
-
slug:
|
|
17884
|
-
path:
|
|
17885
|
-
title:
|
|
17886
|
-
excerpt:
|
|
17887
|
-
publishedAt:
|
|
17888
|
-
updatedAt:
|
|
17889
|
-
status:
|
|
17890
|
-
image:
|
|
17891
|
-
url:
|
|
17892
|
-
alt:
|
|
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:
|
|
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
|
|
17886
|
+
import { z as z32 } from "zod";
|
|
17963
17887
|
|
|
17964
17888
|
// ../blocks/src/system/runtime/nodes/form.interactive.ts
|
|
17965
|
-
import { z as
|
|
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
|
|
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 (
|
|
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 (!
|
|
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 (!
|
|
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 =
|
|
18131
|
-
id:
|
|
18132
|
-
label:
|
|
18133
|
-
type:
|
|
18134
|
-
required:
|
|
18135
|
-
placeholder:
|
|
18136
|
-
helpText:
|
|
18137
|
-
layout:
|
|
18138
|
-
width:
|
|
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:
|
|
18141
|
-
options:
|
|
18142
|
-
value:
|
|
18143
|
-
label:
|
|
18064
|
+
rows: z31.number().optional(),
|
|
18065
|
+
options: z31.array(z31.object({
|
|
18066
|
+
value: z31.string(),
|
|
18067
|
+
label: z31.string()
|
|
18144
18068
|
})).optional(),
|
|
18145
|
-
multiple:
|
|
18146
|
-
minLength:
|
|
18147
|
-
maxLength:
|
|
18148
|
-
pattern:
|
|
18149
|
-
min:
|
|
18150
|
-
max:
|
|
18151
|
-
});
|
|
18152
|
-
var formRecordSchema =
|
|
18153
|
-
id:
|
|
18154
|
-
schemaJson:
|
|
18155
|
-
fields:
|
|
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 =
|
|
18159
|
-
|
|
18160
|
-
type:
|
|
18161
|
-
key:
|
|
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
|
-
|
|
18165
|
-
type:
|
|
18166
|
-
key:
|
|
18167
|
-
fields:
|
|
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 =
|
|
18094
|
+
var formSourceSchema = z31.object({
|
|
18171
18095
|
value: formRecordSchema.optional(),
|
|
18172
|
-
siteId:
|
|
18173
|
-
apiBaseUrl:
|
|
18174
|
-
submitLabel:
|
|
18175
|
-
successMessage:
|
|
18176
|
-
className:
|
|
18177
|
-
spamProtectionEnabled:
|
|
18178
|
-
});
|
|
18179
|
-
var formDisplaySchema =
|
|
18180
|
-
kind:
|
|
18181
|
-
state:
|
|
18182
|
-
className:
|
|
18183
|
-
formId:
|
|
18184
|
-
submitLabel:
|
|
18185
|
-
successMessage:
|
|
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:
|
|
18111
|
+
groups: z31.array(formFieldGroupSchema)
|
|
18188
18112
|
});
|
|
18189
|
-
var formHydrationSchema =
|
|
18190
|
-
spamProtectionEnabled:
|
|
18113
|
+
var formHydrationSchema = z31.object({
|
|
18114
|
+
spamProtectionEnabled: z31.boolean().optional()
|
|
18191
18115
|
});
|
|
18192
|
-
var formRenderSchema =
|
|
18116
|
+
var formRenderSchema = z31.object({
|
|
18193
18117
|
display: formDisplaySchema,
|
|
18194
18118
|
hydration: formHydrationSchema
|
|
18195
18119
|
});
|
|
18196
|
-
var formIslandMetaCodec = createZodCodec(
|
|
18197
|
-
siteId:
|
|
18198
|
-
apiBaseUrl:
|
|
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 =
|
|
18274
|
-
id:
|
|
18275
|
-
siteId:
|
|
18276
|
-
userId:
|
|
18277
|
-
name:
|
|
18278
|
-
slug:
|
|
18279
|
-
schemaJson:
|
|
18280
|
-
settingsJson:
|
|
18281
|
-
createdAt:
|
|
18282
|
-
updatedAt:
|
|
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
|
|
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:
|
|
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 =
|
|
18387
|
-
minItems:
|
|
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
|
|
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 =
|
|
18476
|
-
base:
|
|
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 =
|
|
18560
|
-
base:
|
|
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 =
|
|
18603
|
-
base:
|
|
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 =
|
|
18618
|
-
base:
|
|
18619
|
-
whenAuto:
|
|
18620
|
-
whenFixed:
|
|
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 =
|
|
18637
|
-
max:
|
|
18638
|
-
quality:
|
|
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 =
|
|
18659
|
-
whenTrue:
|
|
18660
|
-
whenFalse:
|
|
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 =
|
|
18673
|
-
base:
|
|
18674
|
-
reverseClass:
|
|
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 =
|
|
18690
|
-
side:
|
|
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 =
|
|
18705
|
-
base:
|
|
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:
|
|
18748
|
-
breakpoint:
|
|
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
|
|
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 =
|
|
18944
|
-
base:
|
|
18945
|
-
container:
|
|
18946
|
-
full:
|
|
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 =
|
|
18963
|
-
base:
|
|
18964
|
-
sticky:
|
|
18965
|
-
stickyTransparent:
|
|
18966
|
-
invert:
|
|
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 =
|
|
19088
|
-
base:
|
|
19089
|
-
surface:
|
|
19090
|
-
tokenPrefix:
|
|
19091
|
-
transparent:
|
|
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 =
|
|
19196
|
-
base:
|
|
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 =
|
|
19219
|
-
base:
|
|
19220
|
-
fullBleed:
|
|
19221
|
-
contained:
|
|
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 =
|
|
19307
|
-
base:
|
|
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 =
|
|
19330
|
-
base:
|
|
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
|
|
19385
|
-
var mediaFromUrlOptionsSchema =
|
|
19386
|
-
width:
|
|
19387
|
-
height:
|
|
19388
|
-
quality:
|
|
19389
|
-
resize:
|
|
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
|
|
19438
|
-
|
|
19439
|
-
|
|
19440
|
-
|
|
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
|
|
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 =
|
|
21327
|
-
slots:
|
|
21328
|
-
startAt:
|
|
21329
|
-
endAt:
|
|
21330
|
-
resourceId:
|
|
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
|
|
21289
|
+
import { z as z46 } from "zod";
|
|
21356
21290
|
|
|
21357
21291
|
// ../blocks/src/system/blocks/events/shared/schemas.ts
|
|
21358
|
-
import { z as
|
|
21292
|
+
import { z as z42 } from "zod";
|
|
21359
21293
|
|
|
21360
21294
|
// ../blocks/src/lib/media.ts
|
|
21361
|
-
import
|
|
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 =
|
|
21370
|
-
x:
|
|
21371
|
-
y:
|
|
21372
|
-
radius:
|
|
21373
|
-
});
|
|
21374
|
-
var rotationSchema2 =
|
|
21375
|
-
var rectSchema2 =
|
|
21376
|
-
var aspectCropSchema2 =
|
|
21377
|
-
aspect:
|
|
21378
|
-
rect:
|
|
21379
|
-
hotspot:
|
|
21380
|
-
rotation:
|
|
21381
|
-
});
|
|
21382
|
-
var transformSchema2 =
|
|
21383
|
-
aspectCrops:
|
|
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
|
-
},
|
|
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 =
|
|
21394
|
-
purpose:
|
|
21395
|
-
placeholder:
|
|
21396
|
-
assetId:
|
|
21397
|
-
identifier:
|
|
21398
|
-
src:
|
|
21399
|
-
alt:
|
|
21400
|
-
filename:
|
|
21401
|
-
mimeType:
|
|
21402
|
-
width:
|
|
21403
|
-
height:
|
|
21404
|
-
storageBucket:
|
|
21405
|
-
storagePath:
|
|
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:
|
|
21409
|
-
var videoMediaSchema = mediaBaseSchema.extend({ type:
|
|
21410
|
-
var audioMediaSchema = mediaBaseSchema.extend({ type:
|
|
21411
|
-
var documentMediaSchema = mediaBaseSchema.extend({ type:
|
|
21412
|
-
var spreadsheetMediaSchema = mediaBaseSchema.extend({ type:
|
|
21413
|
-
var archiveMediaSchema = mediaBaseSchema.extend({ type:
|
|
21414
|
-
var mediaSchema2 =
|
|
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
|
|
21425
|
-
var bookingDepositRefundPolicySchema =
|
|
21358
|
+
import { z as z40 } from "zod";
|
|
21359
|
+
var bookingDepositRefundPolicySchema = z40.enum([
|
|
21426
21360
|
"refundable",
|
|
21427
21361
|
"non_refundable"
|
|
21428
21362
|
]);
|
|
21429
|
-
var bookingInstalmentPlanSchema =
|
|
21430
|
-
|
|
21431
|
-
kind:
|
|
21432
|
-
depositAmountCents:
|
|
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:
|
|
21435
|
-
intervalUnit:
|
|
21368
|
+
remainderDueCount: z40.number().int().positive(),
|
|
21369
|
+
intervalUnit: z40.enum(["day", "week", "month"])
|
|
21436
21370
|
}),
|
|
21437
|
-
|
|
21438
|
-
kind:
|
|
21439
|
-
depositAmountCents:
|
|
21371
|
+
z40.object({
|
|
21372
|
+
kind: z40.literal("deposit_plus_scheduled_instalments"),
|
|
21373
|
+
depositAmountCents: z40.number().int().min(0),
|
|
21440
21374
|
depositRefundability: bookingDepositRefundPolicySchema,
|
|
21441
|
-
instalmentCount:
|
|
21442
|
-
intervalCount:
|
|
21443
|
-
intervalUnit:
|
|
21375
|
+
instalmentCount: z40.number().int().positive(),
|
|
21376
|
+
intervalCount: z40.number().int().positive(),
|
|
21377
|
+
intervalUnit: z40.enum(["day", "week", "month"])
|
|
21444
21378
|
}),
|
|
21445
|
-
|
|
21446
|
-
kind:
|
|
21447
|
-
instalmentCount:
|
|
21448
|
-
intervalCount:
|
|
21449
|
-
intervalUnit:
|
|
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 =
|
|
21453
|
-
|
|
21454
|
-
kind:
|
|
21455
|
-
daysBeforeStart:
|
|
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
|
-
|
|
21458
|
-
kind:
|
|
21459
|
-
dueAt:
|
|
21391
|
+
z40.object({
|
|
21392
|
+
kind: z40.literal("fixed_calendar_date"),
|
|
21393
|
+
dueAt: z40.string().datetime()
|
|
21460
21394
|
})
|
|
21461
21395
|
]);
|
|
21462
|
-
var bookingFlexibleBalanceConfigSchema =
|
|
21463
|
-
upfrontAmountCents:
|
|
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 =
|
|
21468
|
-
|
|
21469
|
-
kind:
|
|
21401
|
+
var blockBookingPaymentCollectionOptionSchema = z40.union([
|
|
21402
|
+
z40.object({
|
|
21403
|
+
kind: z40.literal("upfront")
|
|
21470
21404
|
}),
|
|
21471
|
-
|
|
21472
|
-
kind:
|
|
21405
|
+
z40.object({
|
|
21406
|
+
kind: z40.literal("deferred_manual")
|
|
21473
21407
|
}),
|
|
21474
|
-
|
|
21475
|
-
kind:
|
|
21408
|
+
z40.object({
|
|
21409
|
+
kind: z40.literal("instalment_plan"),
|
|
21476
21410
|
plan: bookingInstalmentPlanSchema
|
|
21477
21411
|
}),
|
|
21478
|
-
|
|
21479
|
-
kind:
|
|
21412
|
+
z40.object({
|
|
21413
|
+
kind: z40.literal("flexible_balance"),
|
|
21480
21414
|
config: bookingFlexibleBalanceConfigSchema
|
|
21481
21415
|
})
|
|
21482
21416
|
]);
|
|
21483
|
-
var blockBookingPaymentTermsSchema =
|
|
21484
|
-
allowedOptions:
|
|
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
|
|
21489
|
-
var courseVenueSchema =
|
|
21490
|
-
id:
|
|
21491
|
-
name:
|
|
21492
|
-
address:
|
|
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
|
|
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
|
-
|
|
21497
|
-
|
|
21498
|
-
|
|
21499
|
-
|
|
21500
|
-
|
|
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
|
|
21498
|
+
var eventCategorySchema = z42.object({
|
|
21503
21499
|
id: z42.string(),
|
|
21504
21500
|
name: z42.string(),
|
|
21505
|
-
|
|
21506
|
-
summary: z42.string().nullable(),
|
|
21507
|
-
profilePath: z42.string().nullable()
|
|
21501
|
+
color: z42.string().nullable()
|
|
21508
21502
|
});
|
|
21509
|
-
var
|
|
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:
|
|
21607
|
-
updatedAt:
|
|
21540
|
+
createdAt: z42.string(),
|
|
21541
|
+
updatedAt: z42.string()
|
|
21608
21542
|
});
|
|
21609
|
-
var publicTeamMemberSummarySchema =
|
|
21610
|
-
id:
|
|
21611
|
-
name:
|
|
21612
|
-
roleLabel:
|
|
21613
|
-
summary:
|
|
21614
|
-
profilePath:
|
|
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 =
|
|
21617
|
-
kind:
|
|
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:
|
|
21621
|
-
occurrenceId:
|
|
21622
|
-
seriesId:
|
|
21623
|
-
title:
|
|
21624
|
-
description:
|
|
21625
|
-
presentation:
|
|
21626
|
-
cardTitleOverride:
|
|
21627
|
-
summary:
|
|
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:
|
|
21630
|
-
ctaLabel:
|
|
21631
|
-
badges:
|
|
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:
|
|
21634
|
-
path:
|
|
21635
|
-
requiresRegistration:
|
|
21636
|
-
deliveryMode:
|
|
21637
|
-
attendanceModes:
|
|
21638
|
-
startsAt:
|
|
21639
|
-
endsAt:
|
|
21640
|
-
capacity:
|
|
21641
|
-
registeredCount:
|
|
21642
|
-
availableSpots:
|
|
21643
|
-
waitlistEnabled:
|
|
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:
|
|
21647
|
-
status:
|
|
21648
|
-
timeZone:
|
|
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:
|
|
21652
|
-
currency:
|
|
21585
|
+
price: z42.number().nullable(),
|
|
21586
|
+
currency: z42.string(),
|
|
21653
21587
|
paymentTerms: blockBookingPaymentTermsSchema,
|
|
21654
21588
|
pricingMode: eventPricingModeSchema.optional(),
|
|
21655
|
-
ticketTypes:
|
|
21589
|
+
ticketTypes: z42.array(publicEventTicketTypeSchema).optional(),
|
|
21656
21590
|
accessRestriction: accessRestrictionSchema,
|
|
21657
|
-
allowedCategoryIds:
|
|
21658
|
-
requireGuestDetails:
|
|
21659
|
-
acceptsPasses:
|
|
21660
|
-
acceptsMemberships:
|
|
21661
|
-
course:
|
|
21662
|
-
id:
|
|
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:
|
|
21665
|
-
currency:
|
|
21666
|
-
enrollmentOpen:
|
|
21598
|
+
priceCents: z42.number().nullable(),
|
|
21599
|
+
currency: z42.string(),
|
|
21600
|
+
enrollmentOpen: z42.boolean()
|
|
21667
21601
|
}).nullable().optional()
|
|
21668
21602
|
});
|
|
21669
|
-
var publicEventsArraySchema =
|
|
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
|
|
21874
|
-
var occurrenceContextSchema =
|
|
21875
|
-
id:
|
|
21876
|
-
seriesId:
|
|
21877
|
-
startsAt:
|
|
21878
|
-
endsAt:
|
|
21879
|
-
timeZone:
|
|
21880
|
-
capacityOverride:
|
|
21881
|
-
overrides:
|
|
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
|
|
21819
|
+
import { z as z45 } from "zod";
|
|
21886
21820
|
|
|
21887
21821
|
// ../blocks/src/system/runtime/nodes/shared/contract-schemas.ts
|
|
21888
|
-
import { z as
|
|
21889
|
-
var previewStageSchema =
|
|
21890
|
-
var registrationButtonVariantSchema =
|
|
21891
|
-
var eventButtonVariantSchema =
|
|
21892
|
-
var eventLayoutSchema =
|
|
21893
|
-
var columnOptionSchema =
|
|
21894
|
-
var weekStartSchema =
|
|
21895
|
-
var filterAutoShowSchema =
|
|
21896
|
-
var calendarTabViewsSchema =
|
|
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 =
|
|
21900
|
-
id:
|
|
21901
|
-
slug:
|
|
21902
|
-
contentTypeSlug:
|
|
21903
|
-
});
|
|
21904
|
-
var eventRegistrationSourceSchema =
|
|
21905
|
-
siteId:
|
|
21906
|
-
apiBaseUrl:
|
|
21907
|
-
portalToken:
|
|
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:
|
|
21911
|
-
className:
|
|
21912
|
-
buttonText:
|
|
21913
|
-
maxTickets:
|
|
21914
|
-
showVenue:
|
|
21915
|
-
showCapacity:
|
|
21916
|
-
successMessage:
|
|
21917
|
-
waitlistMessage:
|
|
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:
|
|
21853
|
+
spamProtectionEnabled: z45.boolean().optional(),
|
|
21920
21854
|
stage: previewStageSchema.optional(),
|
|
21921
|
-
supportEmail:
|
|
21855
|
+
supportEmail: z45.string().optional()
|
|
21922
21856
|
});
|
|
21923
|
-
var eventRegistrationDisplaySchema =
|
|
21924
|
-
kind:
|
|
21925
|
-
state:
|
|
21926
|
-
className:
|
|
21927
|
-
summaryButtonText:
|
|
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 =
|
|
21863
|
+
var eventRegistrationHydrationSchema = z45.object({
|
|
21930
21864
|
occurrenceContext: occurrenceContextSchema.optional(),
|
|
21931
21865
|
contentEntry: contentEntrySchema.nullable().optional(),
|
|
21932
|
-
events:
|
|
21933
|
-
maxTickets:
|
|
21934
|
-
showVenue:
|
|
21935
|
-
showCapacity:
|
|
21936
|
-
successMessage:
|
|
21937
|
-
waitlistMessage:
|
|
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:
|
|
21940
|
-
supportEmail:
|
|
21873
|
+
spamProtectionEnabled: z45.boolean().optional(),
|
|
21874
|
+
supportEmail: z45.string().optional()
|
|
21941
21875
|
});
|
|
21942
|
-
var eventRegistrationRenderSchema =
|
|
21876
|
+
var eventRegistrationRenderSchema = z45.object({
|
|
21943
21877
|
display: eventRegistrationDisplaySchema,
|
|
21944
21878
|
hydration: eventRegistrationHydrationSchema
|
|
21945
21879
|
});
|
|
21946
|
-
var eventRegistrationIslandMetaCodec = createZodCodec(
|
|
21947
|
-
siteId:
|
|
21948
|
-
apiBaseUrl:
|
|
21949
|
-
portalToken:
|
|
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:
|
|
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
|
|
22190
|
-
var contentEntrySchema2 =
|
|
22191
|
-
id:
|
|
22192
|
-
slug:
|
|
22193
|
-
contentTypeSlug:
|
|
22194
|
-
});
|
|
22195
|
-
var courseEntrySubrouteContextSchema =
|
|
22196
|
-
|
|
22197
|
-
kind:
|
|
22198
|
-
run:
|
|
22199
|
-
courseId:
|
|
22200
|
-
seriesId:
|
|
22201
|
-
runSlug:
|
|
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
|
-
|
|
22205
|
-
kind:
|
|
22138
|
+
z47.object({
|
|
22139
|
+
kind: z47.literal("event-occurrence"),
|
|
22206
22140
|
occurrence: occurrenceContextSchema
|
|
22207
22141
|
})
|
|
22208
22142
|
]);
|
|
22209
|
-
var courseRegistrationSourceSchema =
|
|
22210
|
-
siteId:
|
|
22211
|
-
apiBaseUrl:
|
|
22212
|
-
portalToken:
|
|
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:
|
|
22216
|
-
className:
|
|
22217
|
-
showSessions:
|
|
22218
|
-
showPrice:
|
|
22219
|
-
showCapacity:
|
|
22220
|
-
showVenue:
|
|
22221
|
-
successMessage:
|
|
22222
|
-
waitlistMessage:
|
|
22223
|
-
membershipMessage:
|
|
22224
|
-
buttonText:
|
|
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 =
|
|
22229
|
-
kind:
|
|
22230
|
-
state:
|
|
22231
|
-
className:
|
|
22232
|
-
summaryButtonText:
|
|
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 =
|
|
22168
|
+
var courseRegistrationHydrationSchema = z47.object({
|
|
22235
22169
|
contentEntry: contentEntrySchema2.nullable().optional(),
|
|
22236
22170
|
entrySubrouteContext: courseEntrySubrouteContextSchema.nullable().optional(),
|
|
22237
|
-
courses:
|
|
22238
|
-
showSessions:
|
|
22239
|
-
showPrice:
|
|
22240
|
-
showCapacity:
|
|
22241
|
-
showVenue:
|
|
22242
|
-
successMessage:
|
|
22243
|
-
waitlistMessage:
|
|
22244
|
-
membershipMessage:
|
|
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 =
|
|
22181
|
+
var courseRegistrationRenderSchema = z47.object({
|
|
22248
22182
|
display: courseRegistrationDisplaySchema,
|
|
22249
22183
|
hydration: courseRegistrationHydrationSchema
|
|
22250
22184
|
});
|
|
22251
|
-
var courseRegistrationIslandMetaCodec = createZodCodec(
|
|
22252
|
-
siteId:
|
|
22253
|
-
apiBaseUrl:
|
|
22254
|
-
portalToken:
|
|
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
|
|
22448
|
+
import { z as z49 } from "zod";
|
|
22515
22449
|
|
|
22516
22450
|
// ../blocks/src/system/blocks/shop.shared.ts
|
|
22517
|
-
import { z as
|
|
22518
|
-
var publicPassProductSchema =
|
|
22519
|
-
id:
|
|
22520
|
-
productUseCase:
|
|
22521
|
-
name:
|
|
22522
|
-
description:
|
|
22523
|
-
price:
|
|
22524
|
-
currency:
|
|
22525
|
-
creditsTotal:
|
|
22526
|
-
pricePerCredit:
|
|
22527
|
-
validDays:
|
|
22528
|
-
eligibleCategoryIds:
|
|
22529
|
-
eligibleCategoryNames:
|
|
22530
|
-
});
|
|
22531
|
-
var publicMembershipProductSchema =
|
|
22532
|
-
id:
|
|
22533
|
-
name:
|
|
22534
|
-
description:
|
|
22535
|
-
price:
|
|
22536
|
-
currency:
|
|
22537
|
-
billingInterval:
|
|
22538
|
-
eligibleCategoryIds:
|
|
22539
|
-
eligibleCategoryNames:
|
|
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 =
|
|
22672
|
-
id:
|
|
22673
|
-
seriesId:
|
|
22674
|
-
startsAt:
|
|
22675
|
-
endsAt:
|
|
22676
|
-
timeZone:
|
|
22677
|
-
capacityOverride:
|
|
22678
|
-
overrides:
|
|
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:
|
|
22617
|
+
eventDetailsData: z49.object({
|
|
22684
22618
|
events: publicEventsArraySchema,
|
|
22685
|
-
sitePasses:
|
|
22686
|
-
siteMemberships:
|
|
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
|
|
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 =
|
|
23113
|
-
var cardOrientationSchema =
|
|
23114
|
-
var eventBlockKindSchema =
|
|
23115
|
-
var eventSurfaceScopeSchema =
|
|
23116
|
-
var eventScheduleScopeSchema2 =
|
|
23117
|
-
var eventListingSourceSchema =
|
|
23118
|
-
events:
|
|
23119
|
-
siteId:
|
|
23120
|
-
apiBaseUrl:
|
|
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:
|
|
23125
|
-
paginationMode:
|
|
23126
|
-
seeAllUrl:
|
|
23127
|
-
loadMoreText:
|
|
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:
|
|
23131
|
-
showVenue:
|
|
23132
|
-
showMap:
|
|
23133
|
-
showCapacity:
|
|
23134
|
-
emptyMessage:
|
|
23135
|
-
className:
|
|
23136
|
-
showFilters:
|
|
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:
|
|
23139
|
-
showStaffFilter:
|
|
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:
|
|
23076
|
+
filterEventPresets: z50.union([z50.string(), z50.array(z50.string())]).nullable().optional(),
|
|
23143
23077
|
scheduleScope: eventScheduleScopeSchema2.nullable().optional(),
|
|
23144
|
-
filterCategoryIds:
|
|
23145
|
-
filterStaffMemberId:
|
|
23146
|
-
filterVenueId:
|
|
23078
|
+
filterCategoryIds: z50.string().nullable().optional(),
|
|
23079
|
+
filterStaffMemberId: z50.string().nullable().optional(),
|
|
23080
|
+
filterVenueId: z50.string().nullable().optional()
|
|
23147
23081
|
});
|
|
23148
|
-
var eventListingDisplaySchema =
|
|
23149
|
-
kind:
|
|
23150
|
-
state:
|
|
23082
|
+
var eventListingDisplaySchema = z50.object({
|
|
23083
|
+
kind: z50.literal("event-listing"),
|
|
23084
|
+
state: z50.enum(["loading", "empty", "ready"]),
|
|
23151
23085
|
listLayout: eventLayoutSchema,
|
|
23152
|
-
className:
|
|
23153
|
-
emptyMessage:
|
|
23154
|
-
loadingMessage:
|
|
23155
|
-
containerClass:
|
|
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:
|
|
23159
|
-
showVenue:
|
|
23160
|
-
showMap:
|
|
23161
|
-
showCapacity:
|
|
23092
|
+
buttonText: z50.string(),
|
|
23093
|
+
showVenue: z50.boolean(),
|
|
23094
|
+
showMap: z50.boolean(),
|
|
23095
|
+
showCapacity: z50.boolean(),
|
|
23162
23096
|
orientation: cardOrientationSchema,
|
|
23163
|
-
events:
|
|
23097
|
+
events: z50.array(publicEventSchema)
|
|
23164
23098
|
});
|
|
23165
|
-
var eventListingHydrationSchema =
|
|
23166
|
-
siteId:
|
|
23099
|
+
var eventListingHydrationSchema = z50.object({
|
|
23100
|
+
siteId: z50.string(),
|
|
23167
23101
|
stage: previewStageSchema.optional(),
|
|
23168
|
-
eventsPerPage:
|
|
23169
|
-
paginationMode:
|
|
23170
|
-
seeAllUrl:
|
|
23171
|
-
loadMoreText:
|
|
23172
|
-
showFilters:
|
|
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:
|
|
23175
|
-
showStaffFilter:
|
|
23108
|
+
showVenueFilter: z50.boolean(),
|
|
23109
|
+
showStaffFilter: z50.boolean(),
|
|
23176
23110
|
eventKind: eventBlockKindSchema,
|
|
23177
23111
|
eventSurface: eventSurfaceScopeSchema,
|
|
23178
|
-
filterEventPresets:
|
|
23112
|
+
filterEventPresets: z50.string().nullable(),
|
|
23179
23113
|
scheduleScope: eventScheduleScopeSchema2,
|
|
23180
|
-
filterCategoryIds:
|
|
23181
|
-
filterStaffMemberId:
|
|
23182
|
-
filterVenueId:
|
|
23183
|
-
fetchInitialEventsOnMount:
|
|
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 =
|
|
23119
|
+
var eventListingRenderSchema = z50.object({
|
|
23186
23120
|
display: eventListingDisplaySchema,
|
|
23187
23121
|
hydration: eventListingHydrationSchema
|
|
23188
23122
|
});
|
|
23189
23123
|
var eventListingIslandMetaCodec = createZodCodec(
|
|
23190
|
-
|
|
23191
|
-
siteId:
|
|
23192
|
-
apiBaseUrl:
|
|
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
|
|
23512
|
-
var displayModeSchema =
|
|
23513
|
-
var eventBlockKindSchema2 =
|
|
23514
|
-
var eventSurfaceScopeSchema2 =
|
|
23515
|
-
var eventScheduleScopeSchema3 =
|
|
23516
|
-
var eventCalendarSourceSchema =
|
|
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:
|
|
23519
|
-
siteId:
|
|
23520
|
-
apiBaseUrl:
|
|
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:
|
|
23528
|
-
compactEventsPerPage:
|
|
23529
|
-
loadMoreText:
|
|
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:
|
|
23466
|
+
showFilters: z51.boolean().nullable().optional(),
|
|
23533
23467
|
showCategoryFilter: filterAutoShowSchema.optional(),
|
|
23534
|
-
showVenueFilter:
|
|
23535
|
-
showStaffFilter:
|
|
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:
|
|
23472
|
+
filterEventPresets: z51.union([z51.string(), z51.array(z51.string())]).nullable().optional(),
|
|
23539
23473
|
scheduleScope: eventScheduleScopeSchema3.nullable().optional(),
|
|
23540
|
-
filterCategoryIds:
|
|
23541
|
-
filterStaffMemberId:
|
|
23542
|
-
filterVenueId:
|
|
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:
|
|
23545
|
-
showVenue:
|
|
23546
|
-
showMap:
|
|
23547
|
-
showCapacity:
|
|
23548
|
-
emptyMessage:
|
|
23549
|
-
className:
|
|
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 =
|
|
23553
|
-
kind:
|
|
23486
|
+
var eventCalendarDisplaySchema = z51.object({
|
|
23487
|
+
kind: z51.literal("event-calendar"),
|
|
23554
23488
|
displayMode: displayModeSchema,
|
|
23555
|
-
className:
|
|
23556
|
-
events:
|
|
23489
|
+
className: z51.string().nullable(),
|
|
23490
|
+
events: z51.array(publicEventSchema),
|
|
23557
23491
|
listLayout: eventLayoutSchema,
|
|
23558
23492
|
listColumns: columnOptionSchema,
|
|
23559
|
-
eventsPerPage:
|
|
23560
|
-
loadMoreText:
|
|
23493
|
+
eventsPerPage: z51.string(),
|
|
23494
|
+
loadMoreText: z51.string(),
|
|
23561
23495
|
startOfWeek: weekStartSchema,
|
|
23562
23496
|
calendarTabViews: calendarTabViewsSchema,
|
|
23563
|
-
showFilters:
|
|
23497
|
+
showFilters: z51.boolean(),
|
|
23564
23498
|
showCategoryFilter: filterAutoShowSchema,
|
|
23565
|
-
showVenueFilter:
|
|
23566
|
-
showStaffFilter:
|
|
23499
|
+
showVenueFilter: z51.boolean(),
|
|
23500
|
+
showStaffFilter: z51.boolean(),
|
|
23567
23501
|
eventKind: eventBlockKindSchema2,
|
|
23568
23502
|
eventSurface: eventSurfaceScopeSchema2,
|
|
23569
|
-
filterEventPresets:
|
|
23503
|
+
filterEventPresets: z51.string().nullable(),
|
|
23570
23504
|
scheduleScope: eventScheduleScopeSchema3,
|
|
23571
|
-
filterCategoryIds:
|
|
23572
|
-
filterStaffMemberId:
|
|
23573
|
-
filterVenueId:
|
|
23505
|
+
filterCategoryIds: z51.string().nullable(),
|
|
23506
|
+
filterStaffMemberId: z51.string().nullable(),
|
|
23507
|
+
filterVenueId: z51.string().nullable(),
|
|
23574
23508
|
buttonVariant: eventButtonVariantSchema,
|
|
23575
|
-
buttonText:
|
|
23576
|
-
showVenue:
|
|
23577
|
-
showMap:
|
|
23578
|
-
showCapacity:
|
|
23579
|
-
emptyMessage:
|
|
23580
|
-
});
|
|
23581
|
-
var eventCalendarHydrationSchema =
|
|
23582
|
-
siteId:
|
|
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:
|
|
23518
|
+
prefetchedEvents: z51.boolean(),
|
|
23585
23519
|
eventKind: eventBlockKindSchema2,
|
|
23586
23520
|
eventSurface: eventSurfaceScopeSchema2,
|
|
23587
|
-
filterEventPresets:
|
|
23521
|
+
filterEventPresets: z51.string().nullable(),
|
|
23588
23522
|
scheduleScope: eventScheduleScopeSchema3
|
|
23589
23523
|
});
|
|
23590
|
-
var eventCalendarRenderSchema =
|
|
23524
|
+
var eventCalendarRenderSchema = z51.object({
|
|
23591
23525
|
display: eventCalendarDisplaySchema,
|
|
23592
23526
|
hydration: eventCalendarHydrationSchema
|
|
23593
23527
|
});
|
|
23594
23528
|
var eventCalendarIslandMetaCodec = createZodCodec(
|
|
23595
|
-
|
|
23596
|
-
siteId:
|
|
23597
|
-
apiBaseUrl:
|
|
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
|
|
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 =
|
|
24423
|
-
id:
|
|
24424
|
-
identifier:
|
|
24425
|
-
title:
|
|
24426
|
-
slug:
|
|
24427
|
-
content:
|
|
24428
|
-
publishedAt:
|
|
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:
|
|
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
|
|
25542
|
+
import { z as z56 } from "zod";
|
|
25609
25543
|
|
|
25610
25544
|
// ../blocks/src/system/runtime/nodes/shop.interactive.ts
|
|
25611
|
-
import { z as
|
|
25545
|
+
import { z as z55 } from "zod";
|
|
25612
25546
|
|
|
25613
25547
|
// ../blocks/src/system/blocks/products/shared.ts
|
|
25614
|
-
import { z as
|
|
25615
|
-
var publicProductVariantSchema =
|
|
25616
|
-
id:
|
|
25617
|
-
title:
|
|
25618
|
-
sku:
|
|
25619
|
-
priceCents:
|
|
25620
|
-
stockQuantity:
|
|
25621
|
-
soldOut:
|
|
25622
|
-
});
|
|
25623
|
-
var publicProductSchema =
|
|
25624
|
-
id:
|
|
25625
|
-
contentEntryId:
|
|
25626
|
-
title:
|
|
25627
|
-
slug:
|
|
25628
|
-
path:
|
|
25629
|
-
status:
|
|
25630
|
-
priceCents:
|
|
25631
|
-
currency:
|
|
25632
|
-
productType:
|
|
25633
|
-
requiresShipping:
|
|
25634
|
-
hasVariants:
|
|
25635
|
-
trackInventory:
|
|
25636
|
-
soldOut:
|
|
25637
|
-
category:
|
|
25638
|
-
id:
|
|
25639
|
-
name:
|
|
25640
|
-
slug:
|
|
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:
|
|
25643
|
-
badges:
|
|
25644
|
-
ctaLabel:
|
|
25645
|
-
body:
|
|
25646
|
-
gallery:
|
|
25647
|
-
|
|
25648
|
-
url:
|
|
25649
|
-
alt:
|
|
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:
|
|
25586
|
+
variants: z53.array(publicProductVariantSchema)
|
|
25653
25587
|
});
|
|
25654
|
-
var publicProductsResponseSchema =
|
|
25655
|
-
products:
|
|
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
|
|
25720
|
-
var storedProductCartItemSchema =
|
|
25721
|
-
kind:
|
|
25722
|
-
productId:
|
|
25723
|
-
variantId:
|
|
25724
|
-
title:
|
|
25725
|
-
variantTitle:
|
|
25726
|
-
quantity:
|
|
25727
|
-
unitPriceCents:
|
|
25728
|
-
currency:
|
|
25729
|
-
imageUrl:
|
|
25730
|
-
soldOut:
|
|
25731
|
-
});
|
|
25732
|
-
var storedPassCartItemSchema =
|
|
25733
|
-
kind:
|
|
25734
|
-
passId:
|
|
25735
|
-
title:
|
|
25736
|
-
quantity:
|
|
25737
|
-
unitPriceCents:
|
|
25738
|
-
currency:
|
|
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 =
|
|
25978
|
-
var contentEntrySchema3 =
|
|
25979
|
-
id:
|
|
25980
|
-
slug:
|
|
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 =
|
|
25983
|
-
className:
|
|
25916
|
+
var shopSourceSchema = z55.object({
|
|
25917
|
+
className: z55.string().nullable().optional(),
|
|
25984
25918
|
mode: shopModeSchema.optional(),
|
|
25985
|
-
heading:
|
|
25986
|
-
productSlug:
|
|
25987
|
-
showPasses:
|
|
25988
|
-
showMemberships:
|
|
25989
|
-
layout:
|
|
25990
|
-
columns:
|
|
25991
|
-
showDescriptions:
|
|
25992
|
-
showSummary:
|
|
25993
|
-
showBody:
|
|
25994
|
-
showBadges:
|
|
25995
|
-
showPrices:
|
|
25996
|
-
showValidityPeriod:
|
|
25997
|
-
showPricePerCredit:
|
|
25998
|
-
passesHeading:
|
|
25999
|
-
membershipsHeading:
|
|
26000
|
-
buyButtonText:
|
|
26001
|
-
addButtonText:
|
|
26002
|
-
passPurchaseMode:
|
|
26003
|
-
subscribeButtonText:
|
|
26004
|
-
emptyStateText:
|
|
26005
|
-
checkoutButtonText:
|
|
26006
|
-
clearButtonText:
|
|
26007
|
-
submitButtonText:
|
|
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:
|
|
26010
|
-
memberships:
|
|
26011
|
-
products:
|
|
26012
|
-
siteId:
|
|
26013
|
-
apiBaseUrl:
|
|
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 =
|
|
26017
|
-
id:
|
|
26018
|
-
label:
|
|
26019
|
-
soldOut:
|
|
26020
|
-
});
|
|
26021
|
-
var productCardDisplaySchema =
|
|
26022
|
-
productId:
|
|
26023
|
-
title:
|
|
26024
|
-
path:
|
|
26025
|
-
summary:
|
|
26026
|
-
priceLabel:
|
|
26027
|
-
badges:
|
|
26028
|
-
image:
|
|
26029
|
-
url:
|
|
26030
|
-
alt:
|
|
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:
|
|
26033
|
-
selectedVariantId:
|
|
26034
|
-
selectionLabel:
|
|
26035
|
-
actionLabel:
|
|
26036
|
-
soldOut:
|
|
26037
|
-
});
|
|
26038
|
-
var productListDisplaySchema =
|
|
26039
|
-
kind:
|
|
26040
|
-
state:
|
|
26041
|
-
heading:
|
|
26042
|
-
className:
|
|
26043
|
-
layout:
|
|
26044
|
-
columns:
|
|
26045
|
-
emptyMessage:
|
|
26046
|
-
cards:
|
|
26047
|
-
});
|
|
26048
|
-
var productDetailDisplaySchema =
|
|
26049
|
-
|
|
26050
|
-
kind:
|
|
26051
|
-
state:
|
|
26052
|
-
heading:
|
|
26053
|
-
className:
|
|
26054
|
-
emptyMessage:
|
|
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
|
-
|
|
26057
|
-
kind:
|
|
26058
|
-
state:
|
|
26059
|
-
heading:
|
|
26060
|
-
className:
|
|
26061
|
-
title:
|
|
26062
|
-
priceLabel:
|
|
26063
|
-
summary:
|
|
26064
|
-
badges:
|
|
26065
|
-
categoryLabel:
|
|
26066
|
-
gallery:
|
|
26067
|
-
url:
|
|
26068
|
-
alt:
|
|
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:
|
|
26071
|
-
selectedVariantId:
|
|
26072
|
-
selectionLabel:
|
|
26073
|
-
actionLabel:
|
|
26074
|
-
soldOut:
|
|
26075
|
-
body:
|
|
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 =
|
|
26079
|
-
id:
|
|
26080
|
-
title:
|
|
26081
|
-
description:
|
|
26082
|
-
priceLabel:
|
|
26083
|
-
creditsLabel:
|
|
26084
|
-
perCreditLabel:
|
|
26085
|
-
validityLabel:
|
|
26086
|
-
actionLabel:
|
|
26087
|
-
});
|
|
26088
|
-
var membershipCardDisplaySchema =
|
|
26089
|
-
id:
|
|
26090
|
-
title:
|
|
26091
|
-
description:
|
|
26092
|
-
priceLabel:
|
|
26093
|
-
intervalLabel:
|
|
26094
|
-
actionLabel:
|
|
26095
|
-
});
|
|
26096
|
-
var passesMembershipsDisplaySchema =
|
|
26097
|
-
kind:
|
|
26098
|
-
state:
|
|
26099
|
-
className:
|
|
26100
|
-
layout:
|
|
26101
|
-
columns:
|
|
26102
|
-
emptyMessage:
|
|
26103
|
-
passesHeading:
|
|
26104
|
-
membershipsHeading:
|
|
26105
|
-
passes:
|
|
26106
|
-
memberships:
|
|
26107
|
-
});
|
|
26108
|
-
var cartLineDisplaySchema =
|
|
26109
|
-
key:
|
|
26110
|
-
title:
|
|
26111
|
-
priceLabel:
|
|
26112
|
-
quantity:
|
|
26113
|
-
quantityEditable:
|
|
26114
|
-
});
|
|
26115
|
-
var cartDisplaySchema =
|
|
26116
|
-
kind:
|
|
26117
|
-
state:
|
|
26118
|
-
heading:
|
|
26119
|
-
className:
|
|
26120
|
-
emptyMessage:
|
|
26121
|
-
supportText:
|
|
26122
|
-
items:
|
|
26123
|
-
subtotalLabel:
|
|
26124
|
-
checkoutButtonText:
|
|
26125
|
-
clearButtonText:
|
|
26126
|
-
});
|
|
26127
|
-
var checkoutDisplaySchema =
|
|
26128
|
-
kind:
|
|
26129
|
-
state:
|
|
26130
|
-
heading:
|
|
26131
|
-
className:
|
|
26132
|
-
message:
|
|
26133
|
-
submitButtonText:
|
|
26134
|
-
});
|
|
26135
|
-
var passesMembershipsHydrationSchema =
|
|
26136
|
-
passes:
|
|
26137
|
-
memberships:
|
|
26138
|
-
passPurchaseMode:
|
|
26139
|
-
});
|
|
26140
|
-
var productListHydrationSchema =
|
|
26141
|
-
products:
|
|
26142
|
-
showSummary:
|
|
26143
|
-
showBadges:
|
|
26144
|
-
showPrices:
|
|
26145
|
-
addButtonText:
|
|
26146
|
-
});
|
|
26147
|
-
var productDetailHydrationSchema =
|
|
26148
|
-
products:
|
|
26149
|
-
productId:
|
|
26150
|
-
showSummary:
|
|
26151
|
-
showBadges:
|
|
26152
|
-
showBody:
|
|
26153
|
-
addButtonText:
|
|
26154
|
-
});
|
|
26155
|
-
var cartHydrationSchema =
|
|
26156
|
-
emptyStateText:
|
|
26157
|
-
checkoutButtonText:
|
|
26158
|
-
clearButtonText:
|
|
26159
|
-
});
|
|
26160
|
-
var checkoutHydrationSchema =
|
|
26161
|
-
emptyStateText:
|
|
26162
|
-
submitButtonText:
|
|
26163
|
-
});
|
|
26164
|
-
var passesMembershipsRenderSchema =
|
|
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 =
|
|
26102
|
+
var productListRenderSchema = z55.object({
|
|
26169
26103
|
display: productListDisplaySchema,
|
|
26170
26104
|
hydration: productListHydrationSchema
|
|
26171
26105
|
});
|
|
26172
|
-
var productDetailRenderSchema =
|
|
26106
|
+
var productDetailRenderSchema = z55.object({
|
|
26173
26107
|
display: productDetailDisplaySchema,
|
|
26174
26108
|
hydration: productDetailHydrationSchema
|
|
26175
26109
|
});
|
|
26176
|
-
var cartRenderSchema =
|
|
26110
|
+
var cartRenderSchema = z55.object({
|
|
26177
26111
|
display: cartDisplaySchema,
|
|
26178
26112
|
hydration: cartHydrationSchema
|
|
26179
26113
|
});
|
|
26180
|
-
var checkoutRenderSchema =
|
|
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(
|
|
26188
|
-
siteId:
|
|
26189
|
-
apiBaseUrl:
|
|
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:
|
|
26505
|
+
passes: z56.object({ passes: z56.array(publicPassProductSchema) }).optional(),
|
|
26572
26506
|
// listPublicMemberships returns { memberships: [...] }
|
|
26573
|
-
memberships:
|
|
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
|
|
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 =
|
|
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
|
|
27009
|
-
var publicGiftCardOfferSchema =
|
|
27010
|
-
id:
|
|
27011
|
-
kind:
|
|
27012
|
-
title:
|
|
27013
|
-
description:
|
|
27014
|
-
sortOrder:
|
|
27015
|
-
giftCard:
|
|
27016
|
-
fixedDenominations:
|
|
27017
|
-
customAmountEnabled:
|
|
27018
|
-
customAmountMinCents:
|
|
27019
|
-
customAmountMaxCents:
|
|
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:
|
|
27022
|
-
});
|
|
27023
|
-
var publicVoucherOfferSchema =
|
|
27024
|
-
id:
|
|
27025
|
-
kind:
|
|
27026
|
-
title:
|
|
27027
|
-
description:
|
|
27028
|
-
sortOrder:
|
|
27029
|
-
giftCard:
|
|
27030
|
-
voucher:
|
|
27031
|
-
purchaseAmountCents:
|
|
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 =
|
|
27035
|
-
currency:
|
|
27036
|
-
giftCards:
|
|
27037
|
-
vouchers:
|
|
26968
|
+
var publicGiftingOffersResponseSchema = z58.object({
|
|
26969
|
+
currency: z58.string(),
|
|
26970
|
+
giftCards: z58.array(publicGiftCardOfferSchema),
|
|
26971
|
+
vouchers: z58.array(publicVoucherOfferSchema)
|
|
27038
26972
|
});
|
|
27039
|
-
var giftingSourceSchema =
|
|
27040
|
-
siteId:
|
|
27041
|
-
apiBaseUrl:
|
|
26973
|
+
var giftingSourceSchema = z58.object({
|
|
26974
|
+
siteId: z58.string().optional(),
|
|
26975
|
+
apiBaseUrl: z58.string().optional(),
|
|
27042
26976
|
offers: publicGiftingOffersResponseSchema.nullable().optional(),
|
|
27043
|
-
className:
|
|
27044
|
-
heading:
|
|
27045
|
-
intro:
|
|
27046
|
-
giftCardsHeading:
|
|
27047
|
-
vouchersHeading:
|
|
27048
|
-
emptyStateText:
|
|
27049
|
-
checkoutButtonText:
|
|
27050
|
-
successMessage:
|
|
27051
|
-
});
|
|
27052
|
-
var giftingDisplaySchema =
|
|
27053
|
-
kind:
|
|
27054
|
-
state:
|
|
27055
|
-
className:
|
|
27056
|
-
heading:
|
|
27057
|
-
intro:
|
|
27058
|
-
giftCardsHeading:
|
|
27059
|
-
vouchersHeading:
|
|
27060
|
-
emptyStateText:
|
|
27061
|
-
});
|
|
27062
|
-
var giftingHydrationSchema =
|
|
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:
|
|
27065
|
-
successMessage:
|
|
26998
|
+
checkoutButtonText: z58.string(),
|
|
26999
|
+
successMessage: z58.string()
|
|
27066
27000
|
});
|
|
27067
|
-
var giftingRenderSchema =
|
|
27001
|
+
var giftingRenderSchema = z58.object({
|
|
27068
27002
|
display: giftingDisplaySchema,
|
|
27069
27003
|
hydration: giftingHydrationSchema
|
|
27070
27004
|
});
|
|
27071
|
-
var giftingIslandMetaCodec = createZodCodec(
|
|
27072
|
-
siteId:
|
|
27073
|
-
apiBaseUrl:
|
|
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
|
|
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 =
|
|
27299
|
-
var newsletterFieldSchema =
|
|
27300
|
-
id:
|
|
27301
|
-
type:
|
|
27302
|
-
label:
|
|
27303
|
-
required:
|
|
27304
|
-
placeholder:
|
|
27305
|
-
});
|
|
27306
|
-
var newsletterSourceSchema =
|
|
27307
|
-
siteId:
|
|
27308
|
-
apiBaseUrl:
|
|
27309
|
-
listId:
|
|
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:
|
|
27312
|
-
buttonLabel:
|
|
27313
|
-
successMessage:
|
|
27314
|
-
privacyNote:
|
|
27315
|
-
tags:
|
|
27316
|
-
spamProtectionEnabled:
|
|
27317
|
-
className:
|
|
27318
|
-
});
|
|
27319
|
-
var newsletterDisplaySchema =
|
|
27320
|
-
kind:
|
|
27321
|
-
className:
|
|
27322
|
-
buttonLabel:
|
|
27323
|
-
successMessage:
|
|
27324
|
-
privacyNote:
|
|
27325
|
-
fields:
|
|
27326
|
-
});
|
|
27327
|
-
var newsletterHydrationSchema =
|
|
27328
|
-
listId:
|
|
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:
|
|
27331
|
-
tags:
|
|
27332
|
-
spamProtectionEnabled:
|
|
27264
|
+
includePhone: z59.boolean(),
|
|
27265
|
+
tags: z59.string().nullable().optional(),
|
|
27266
|
+
spamProtectionEnabled: z59.boolean().optional()
|
|
27333
27267
|
});
|
|
27334
|
-
var newsletterRenderSchema =
|
|
27268
|
+
var newsletterRenderSchema = z59.object({
|
|
27335
27269
|
display: newsletterDisplaySchema,
|
|
27336
27270
|
hydration: newsletterHydrationSchema
|
|
27337
27271
|
});
|
|
27338
|
-
var newsletterIslandMetaCodec = createZodCodec(
|
|
27339
|
-
siteId:
|
|
27340
|
-
apiBaseUrl:
|
|
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
|
|
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 =
|
|
27467
|
-
_type:
|
|
27468
|
-
id:
|
|
27469
|
-
name:
|
|
27470
|
-
role:
|
|
27471
|
-
roleLabel:
|
|
27472
|
-
bio:
|
|
27473
|
-
summary:
|
|
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:
|
|
27409
|
+
profilePath: z60.string().nullable()
|
|
27476
27410
|
});
|
|
27477
|
-
var teamMembersDataSchema =
|
|
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 (!
|
|
29185
|
+
if (!isObjectRecord2(source)) return {};
|
|
29252
29186
|
if ("data" in source) {
|
|
29253
29187
|
const data = source.data;
|
|
29254
|
-
if (
|
|
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 (!
|
|
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",
|