@the-smithy/hearth-schema 0.15.0 → 0.17.0
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/index.d.ts +190 -8
- package/dist/index.js +39 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ declare const BLOCK_SCHEMA_VERSION = 1;
|
|
|
15
15
|
declare const image: z.ZodObject<{
|
|
16
16
|
src: z.ZodString;
|
|
17
17
|
alt: z.ZodDefault<z.ZodString>;
|
|
18
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
18
20
|
}, z.core.$strip>;
|
|
19
21
|
declare const link: z.ZodObject<{
|
|
20
22
|
label: z.ZodString;
|
|
@@ -307,6 +309,8 @@ declare const blockDataSchemas: {
|
|
|
307
309
|
image: z.ZodOptional<z.ZodObject<{
|
|
308
310
|
src: z.ZodString;
|
|
309
311
|
alt: z.ZodDefault<z.ZodString>;
|
|
312
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
313
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
310
314
|
}, z.core.$strip>>;
|
|
311
315
|
primaryCta: z.ZodOptional<z.ZodObject<{
|
|
312
316
|
label: z.ZodString;
|
|
@@ -336,6 +340,8 @@ declare const blockDataSchemas: {
|
|
|
336
340
|
image: z.ZodOptional<z.ZodObject<{
|
|
337
341
|
src: z.ZodString;
|
|
338
342
|
alt: z.ZodDefault<z.ZodString>;
|
|
343
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
344
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
339
345
|
}, z.core.$strip>>;
|
|
340
346
|
imagePosition: z.ZodDefault<z.ZodEnum<{
|
|
341
347
|
left: "left";
|
|
@@ -367,6 +373,8 @@ declare const blockDataSchemas: {
|
|
|
367
373
|
image: z.ZodOptional<z.ZodObject<{
|
|
368
374
|
src: z.ZodString;
|
|
369
375
|
alt: z.ZodDefault<z.ZodString>;
|
|
376
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
377
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
370
378
|
}, z.core.$strip>>;
|
|
371
379
|
link: z.ZodOptional<z.ZodObject<{
|
|
372
380
|
label: z.ZodString;
|
|
@@ -400,6 +408,8 @@ declare const blockDataSchemas: {
|
|
|
400
408
|
image: z.ZodOptional<z.ZodObject<{
|
|
401
409
|
src: z.ZodString;
|
|
402
410
|
alt: z.ZodDefault<z.ZodString>;
|
|
411
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
412
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
403
413
|
}, z.core.$strip>>;
|
|
404
414
|
}, z.core.$strip>;
|
|
405
415
|
readonly faq: z.ZodObject<{
|
|
@@ -445,6 +455,8 @@ declare const blockDataSchemas: {
|
|
|
445
455
|
image: z.ZodOptional<z.ZodObject<{
|
|
446
456
|
src: z.ZodString;
|
|
447
457
|
alt: z.ZodDefault<z.ZodString>;
|
|
458
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
459
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
448
460
|
}, z.core.$strip>>;
|
|
449
461
|
url: z.ZodOptional<z.ZodString>;
|
|
450
462
|
role: z.ZodOptional<z.ZodString>;
|
|
@@ -488,6 +500,8 @@ declare const blockDataSchemas: {
|
|
|
488
500
|
image: z.ZodObject<{
|
|
489
501
|
src: z.ZodString;
|
|
490
502
|
alt: z.ZodDefault<z.ZodString>;
|
|
503
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
504
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
491
505
|
}, z.core.$strip>;
|
|
492
506
|
caption: z.ZodOptional<z.ZodString>;
|
|
493
507
|
}, z.core.$strip>>;
|
|
@@ -504,6 +518,8 @@ declare const blockDataSchemas: {
|
|
|
504
518
|
image: z.ZodOptional<z.ZodObject<{
|
|
505
519
|
src: z.ZodString;
|
|
506
520
|
alt: z.ZodDefault<z.ZodString>;
|
|
521
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
522
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
507
523
|
}, z.core.$strip>>;
|
|
508
524
|
tone: z.ZodDefault<z.ZodEnum<{
|
|
509
525
|
default: "default";
|
|
@@ -544,6 +560,8 @@ declare const blockDataSchemas: {
|
|
|
544
560
|
image: z.ZodOptional<z.ZodObject<{
|
|
545
561
|
src: z.ZodString;
|
|
546
562
|
alt: z.ZodDefault<z.ZodString>;
|
|
563
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
564
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
547
565
|
}, z.core.$strip>>;
|
|
548
566
|
bio: z.ZodOptional<z.ZodString>;
|
|
549
567
|
}, z.core.$strip>>;
|
|
@@ -556,6 +574,8 @@ declare const blockDataSchemas: {
|
|
|
556
574
|
logo: z.ZodOptional<z.ZodObject<{
|
|
557
575
|
src: z.ZodString;
|
|
558
576
|
alt: z.ZodDefault<z.ZodString>;
|
|
577
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
578
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
559
579
|
}, z.core.$strip>>;
|
|
560
580
|
url: z.ZodOptional<z.ZodString>;
|
|
561
581
|
}, z.core.$strip>>;
|
|
@@ -593,6 +613,15 @@ declare const blockDataSchemas: {
|
|
|
593
613
|
collectionId: z.ZodOptional<z.ZodString>;
|
|
594
614
|
categoryId: z.ZodOptional<z.ZodString>;
|
|
595
615
|
}, z.core.$strip>;
|
|
616
|
+
/** Events that have ended, most recent first: a talk archive, past events. */
|
|
617
|
+
readonly pastEvents: z.ZodObject<{
|
|
618
|
+
eyebrow: z.ZodOptional<z.ZodString>;
|
|
619
|
+
heading: z.ZodOptional<z.ZodString>;
|
|
620
|
+
intro: z.ZodOptional<z.ZodString>;
|
|
621
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
622
|
+
collectionId: z.ZodOptional<z.ZodString>;
|
|
623
|
+
categoryId: z.ZodOptional<z.ZodString>;
|
|
624
|
+
}, z.core.$strip>;
|
|
596
625
|
readonly eventSpotlight: z.ZodObject<{
|
|
597
626
|
eventSlug: z.ZodOptional<z.ZodString>;
|
|
598
627
|
categoryId: z.ZodOptional<z.ZodString>;
|
|
@@ -660,7 +689,7 @@ declare const blockTypes: BlockType[];
|
|
|
660
689
|
declare const blockFeature: Partial<Record<BlockType, "events" | "giving">>;
|
|
661
690
|
declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
662
691
|
id: z.ZodString;
|
|
663
|
-
type: z.ZodLiteral<"custom" | "cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "embed" | "form" | "upcomingEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
|
|
692
|
+
type: z.ZodLiteral<"custom" | "cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "embed" | "form" | "upcomingEvents" | "pastEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
|
|
664
693
|
data: z.ZodObject<{
|
|
665
694
|
eyebrow: z.ZodOptional<z.ZodString>;
|
|
666
695
|
heading: z.ZodString;
|
|
@@ -668,6 +697,8 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
668
697
|
image: z.ZodOptional<z.ZodObject<{
|
|
669
698
|
src: z.ZodString;
|
|
670
699
|
alt: z.ZodDefault<z.ZodString>;
|
|
700
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
701
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
671
702
|
}, z.core.$strip>>;
|
|
672
703
|
primaryCta: z.ZodOptional<z.ZodObject<{
|
|
673
704
|
label: z.ZodString;
|
|
@@ -695,6 +726,8 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
695
726
|
image: z.ZodOptional<z.ZodObject<{
|
|
696
727
|
src: z.ZodString;
|
|
697
728
|
alt: z.ZodDefault<z.ZodString>;
|
|
729
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
730
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
698
731
|
}, z.core.$strip>>;
|
|
699
732
|
imagePosition: z.ZodDefault<z.ZodEnum<{
|
|
700
733
|
left: "left";
|
|
@@ -724,6 +757,8 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
724
757
|
image: z.ZodOptional<z.ZodObject<{
|
|
725
758
|
src: z.ZodString;
|
|
726
759
|
alt: z.ZodDefault<z.ZodString>;
|
|
760
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
761
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
727
762
|
}, z.core.$strip>>;
|
|
728
763
|
link: z.ZodOptional<z.ZodObject<{
|
|
729
764
|
label: z.ZodString;
|
|
@@ -756,6 +791,8 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
756
791
|
image: z.ZodOptional<z.ZodObject<{
|
|
757
792
|
src: z.ZodString;
|
|
758
793
|
alt: z.ZodDefault<z.ZodString>;
|
|
794
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
795
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
759
796
|
}, z.core.$strip>>;
|
|
760
797
|
}, z.core.$strip> | z.ZodObject<{
|
|
761
798
|
heading: z.ZodOptional<z.ZodString>;
|
|
@@ -796,6 +833,8 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
796
833
|
image: z.ZodOptional<z.ZodObject<{
|
|
797
834
|
src: z.ZodString;
|
|
798
835
|
alt: z.ZodDefault<z.ZodString>;
|
|
836
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
837
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
799
838
|
}, z.core.$strip>>;
|
|
800
839
|
url: z.ZodOptional<z.ZodString>;
|
|
801
840
|
role: z.ZodOptional<z.ZodString>;
|
|
@@ -836,6 +875,8 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
836
875
|
image: z.ZodObject<{
|
|
837
876
|
src: z.ZodString;
|
|
838
877
|
alt: z.ZodDefault<z.ZodString>;
|
|
878
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
879
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
839
880
|
}, z.core.$strip>;
|
|
840
881
|
caption: z.ZodOptional<z.ZodString>;
|
|
841
882
|
}, z.core.$strip>>;
|
|
@@ -851,6 +892,8 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
851
892
|
image: z.ZodOptional<z.ZodObject<{
|
|
852
893
|
src: z.ZodString;
|
|
853
894
|
alt: z.ZodDefault<z.ZodString>;
|
|
895
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
896
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
854
897
|
}, z.core.$strip>>;
|
|
855
898
|
tone: z.ZodDefault<z.ZodEnum<{
|
|
856
899
|
default: "default";
|
|
@@ -883,6 +926,8 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
883
926
|
image: z.ZodOptional<z.ZodObject<{
|
|
884
927
|
src: z.ZodString;
|
|
885
928
|
alt: z.ZodDefault<z.ZodString>;
|
|
929
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
930
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
886
931
|
}, z.core.$strip>>;
|
|
887
932
|
bio: z.ZodOptional<z.ZodString>;
|
|
888
933
|
}, z.core.$strip>>;
|
|
@@ -894,6 +939,8 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
894
939
|
logo: z.ZodOptional<z.ZodObject<{
|
|
895
940
|
src: z.ZodString;
|
|
896
941
|
alt: z.ZodDefault<z.ZodString>;
|
|
942
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
943
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
897
944
|
}, z.core.$strip>>;
|
|
898
945
|
url: z.ZodOptional<z.ZodString>;
|
|
899
946
|
}, z.core.$strip>>;
|
|
@@ -928,6 +975,13 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
928
975
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
929
976
|
collectionId: z.ZodOptional<z.ZodString>;
|
|
930
977
|
categoryId: z.ZodOptional<z.ZodString>;
|
|
978
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
979
|
+
eyebrow: z.ZodOptional<z.ZodString>;
|
|
980
|
+
heading: z.ZodOptional<z.ZodString>;
|
|
981
|
+
intro: z.ZodOptional<z.ZodString>;
|
|
982
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
983
|
+
collectionId: z.ZodOptional<z.ZodString>;
|
|
984
|
+
categoryId: z.ZodOptional<z.ZodString>;
|
|
931
985
|
}, z.core.$strip> | z.ZodObject<{
|
|
932
986
|
eventSlug: z.ZodOptional<z.ZodString>;
|
|
933
987
|
categoryId: z.ZodOptional<z.ZodString>;
|
|
@@ -972,7 +1026,7 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
972
1026
|
}, z.core.$strip>;
|
|
973
1027
|
}, z.core.$strip>, ...z.ZodObject<{
|
|
974
1028
|
id: z.ZodString;
|
|
975
|
-
type: z.ZodLiteral<"custom" | "cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "embed" | "form" | "upcomingEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
|
|
1029
|
+
type: z.ZodLiteral<"custom" | "cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "embed" | "form" | "upcomingEvents" | "pastEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
|
|
976
1030
|
data: z.ZodObject<{
|
|
977
1031
|
eyebrow: z.ZodOptional<z.ZodString>;
|
|
978
1032
|
heading: z.ZodString;
|
|
@@ -980,6 +1034,8 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
980
1034
|
image: z.ZodOptional<z.ZodObject<{
|
|
981
1035
|
src: z.ZodString;
|
|
982
1036
|
alt: z.ZodDefault<z.ZodString>;
|
|
1037
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1038
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
983
1039
|
}, z.core.$strip>>;
|
|
984
1040
|
primaryCta: z.ZodOptional<z.ZodObject<{
|
|
985
1041
|
label: z.ZodString;
|
|
@@ -1007,6 +1063,8 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1007
1063
|
image: z.ZodOptional<z.ZodObject<{
|
|
1008
1064
|
src: z.ZodString;
|
|
1009
1065
|
alt: z.ZodDefault<z.ZodString>;
|
|
1066
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1067
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1010
1068
|
}, z.core.$strip>>;
|
|
1011
1069
|
imagePosition: z.ZodDefault<z.ZodEnum<{
|
|
1012
1070
|
left: "left";
|
|
@@ -1036,6 +1094,8 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1036
1094
|
image: z.ZodOptional<z.ZodObject<{
|
|
1037
1095
|
src: z.ZodString;
|
|
1038
1096
|
alt: z.ZodDefault<z.ZodString>;
|
|
1097
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1098
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1039
1099
|
}, z.core.$strip>>;
|
|
1040
1100
|
link: z.ZodOptional<z.ZodObject<{
|
|
1041
1101
|
label: z.ZodString;
|
|
@@ -1068,6 +1128,8 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1068
1128
|
image: z.ZodOptional<z.ZodObject<{
|
|
1069
1129
|
src: z.ZodString;
|
|
1070
1130
|
alt: z.ZodDefault<z.ZodString>;
|
|
1131
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1132
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1071
1133
|
}, z.core.$strip>>;
|
|
1072
1134
|
}, z.core.$strip> | z.ZodObject<{
|
|
1073
1135
|
heading: z.ZodOptional<z.ZodString>;
|
|
@@ -1108,6 +1170,8 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1108
1170
|
image: z.ZodOptional<z.ZodObject<{
|
|
1109
1171
|
src: z.ZodString;
|
|
1110
1172
|
alt: z.ZodDefault<z.ZodString>;
|
|
1173
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1174
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1111
1175
|
}, z.core.$strip>>;
|
|
1112
1176
|
url: z.ZodOptional<z.ZodString>;
|
|
1113
1177
|
role: z.ZodOptional<z.ZodString>;
|
|
@@ -1148,6 +1212,8 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1148
1212
|
image: z.ZodObject<{
|
|
1149
1213
|
src: z.ZodString;
|
|
1150
1214
|
alt: z.ZodDefault<z.ZodString>;
|
|
1215
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1216
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1151
1217
|
}, z.core.$strip>;
|
|
1152
1218
|
caption: z.ZodOptional<z.ZodString>;
|
|
1153
1219
|
}, z.core.$strip>>;
|
|
@@ -1163,6 +1229,8 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1163
1229
|
image: z.ZodOptional<z.ZodObject<{
|
|
1164
1230
|
src: z.ZodString;
|
|
1165
1231
|
alt: z.ZodDefault<z.ZodString>;
|
|
1232
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1233
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1166
1234
|
}, z.core.$strip>>;
|
|
1167
1235
|
tone: z.ZodDefault<z.ZodEnum<{
|
|
1168
1236
|
default: "default";
|
|
@@ -1195,6 +1263,8 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1195
1263
|
image: z.ZodOptional<z.ZodObject<{
|
|
1196
1264
|
src: z.ZodString;
|
|
1197
1265
|
alt: z.ZodDefault<z.ZodString>;
|
|
1266
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1267
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1198
1268
|
}, z.core.$strip>>;
|
|
1199
1269
|
bio: z.ZodOptional<z.ZodString>;
|
|
1200
1270
|
}, z.core.$strip>>;
|
|
@@ -1206,6 +1276,8 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1206
1276
|
logo: z.ZodOptional<z.ZodObject<{
|
|
1207
1277
|
src: z.ZodString;
|
|
1208
1278
|
alt: z.ZodDefault<z.ZodString>;
|
|
1279
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1280
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1209
1281
|
}, z.core.$strip>>;
|
|
1210
1282
|
url: z.ZodOptional<z.ZodString>;
|
|
1211
1283
|
}, z.core.$strip>>;
|
|
@@ -1240,6 +1312,13 @@ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1240
1312
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
1241
1313
|
collectionId: z.ZodOptional<z.ZodString>;
|
|
1242
1314
|
categoryId: z.ZodOptional<z.ZodString>;
|
|
1315
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
1316
|
+
eyebrow: z.ZodOptional<z.ZodString>;
|
|
1317
|
+
heading: z.ZodOptional<z.ZodString>;
|
|
1318
|
+
intro: z.ZodOptional<z.ZodString>;
|
|
1319
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
1320
|
+
collectionId: z.ZodOptional<z.ZodString>;
|
|
1321
|
+
categoryId: z.ZodOptional<z.ZodString>;
|
|
1243
1322
|
}, z.core.$strip> | z.ZodObject<{
|
|
1244
1323
|
eventSlug: z.ZodOptional<z.ZodString>;
|
|
1245
1324
|
categoryId: z.ZodOptional<z.ZodString>;
|
|
@@ -1293,6 +1372,23 @@ type Block = {
|
|
|
1293
1372
|
type ImageRef = z.infer<typeof image>;
|
|
1294
1373
|
type LinkRef = z.infer<typeof link>;
|
|
1295
1374
|
type FormField = z.infer<typeof formFieldSchema>;
|
|
1375
|
+
/**
|
|
1376
|
+
* Search & sharing for a page, event or fundraiser: search title and description, share image, hiding it from search
|
|
1377
|
+
* engines, and (pages only) a canonical address.
|
|
1378
|
+
*/
|
|
1379
|
+
declare const seoSchema: z.ZodObject<{
|
|
1380
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1381
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1382
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
1383
|
+
src: z.ZodString;
|
|
1384
|
+
alt: z.ZodDefault<z.ZodString>;
|
|
1385
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1386
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1387
|
+
}, z.core.$strip>>;
|
|
1388
|
+
noIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1389
|
+
canonical: z.ZodOptional<z.ZodString>;
|
|
1390
|
+
}, z.core.$strip>;
|
|
1391
|
+
type Seo = z.infer<typeof seoSchema>;
|
|
1296
1392
|
/** Page content as stored in `pages.draft` and `page_revisions.content`. */
|
|
1297
1393
|
declare const pageContentSchema: z.ZodObject<{
|
|
1298
1394
|
title: z.ZodString;
|
|
@@ -1302,13 +1398,15 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1302
1398
|
image: z.ZodOptional<z.ZodObject<{
|
|
1303
1399
|
src: z.ZodString;
|
|
1304
1400
|
alt: z.ZodDefault<z.ZodString>;
|
|
1401
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1402
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1305
1403
|
}, z.core.$strip>>;
|
|
1306
1404
|
noIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1307
1405
|
canonical: z.ZodOptional<z.ZodString>;
|
|
1308
1406
|
}, z.core.$strip>>;
|
|
1309
1407
|
blocks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1310
1408
|
id: z.ZodString;
|
|
1311
|
-
type: z.ZodLiteral<"custom" | "cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "embed" | "form" | "upcomingEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
|
|
1409
|
+
type: z.ZodLiteral<"custom" | "cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "embed" | "form" | "upcomingEvents" | "pastEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
|
|
1312
1410
|
data: z.ZodObject<{
|
|
1313
1411
|
eyebrow: z.ZodOptional<z.ZodString>;
|
|
1314
1412
|
heading: z.ZodString;
|
|
@@ -1316,6 +1414,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1316
1414
|
image: z.ZodOptional<z.ZodObject<{
|
|
1317
1415
|
src: z.ZodString;
|
|
1318
1416
|
alt: z.ZodDefault<z.ZodString>;
|
|
1417
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1418
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1319
1419
|
}, z.core.$strip>>;
|
|
1320
1420
|
primaryCta: z.ZodOptional<z.ZodObject<{
|
|
1321
1421
|
label: z.ZodString;
|
|
@@ -1343,6 +1443,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1343
1443
|
image: z.ZodOptional<z.ZodObject<{
|
|
1344
1444
|
src: z.ZodString;
|
|
1345
1445
|
alt: z.ZodDefault<z.ZodString>;
|
|
1446
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1447
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1346
1448
|
}, z.core.$strip>>;
|
|
1347
1449
|
imagePosition: z.ZodDefault<z.ZodEnum<{
|
|
1348
1450
|
left: "left";
|
|
@@ -1372,6 +1474,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1372
1474
|
image: z.ZodOptional<z.ZodObject<{
|
|
1373
1475
|
src: z.ZodString;
|
|
1374
1476
|
alt: z.ZodDefault<z.ZodString>;
|
|
1477
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1478
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1375
1479
|
}, z.core.$strip>>;
|
|
1376
1480
|
link: z.ZodOptional<z.ZodObject<{
|
|
1377
1481
|
label: z.ZodString;
|
|
@@ -1404,6 +1508,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1404
1508
|
image: z.ZodOptional<z.ZodObject<{
|
|
1405
1509
|
src: z.ZodString;
|
|
1406
1510
|
alt: z.ZodDefault<z.ZodString>;
|
|
1511
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1512
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1407
1513
|
}, z.core.$strip>>;
|
|
1408
1514
|
}, z.core.$strip> | z.ZodObject<{
|
|
1409
1515
|
heading: z.ZodOptional<z.ZodString>;
|
|
@@ -1444,6 +1550,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1444
1550
|
image: z.ZodOptional<z.ZodObject<{
|
|
1445
1551
|
src: z.ZodString;
|
|
1446
1552
|
alt: z.ZodDefault<z.ZodString>;
|
|
1553
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1554
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1447
1555
|
}, z.core.$strip>>;
|
|
1448
1556
|
url: z.ZodOptional<z.ZodString>;
|
|
1449
1557
|
role: z.ZodOptional<z.ZodString>;
|
|
@@ -1484,6 +1592,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1484
1592
|
image: z.ZodObject<{
|
|
1485
1593
|
src: z.ZodString;
|
|
1486
1594
|
alt: z.ZodDefault<z.ZodString>;
|
|
1595
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1596
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1487
1597
|
}, z.core.$strip>;
|
|
1488
1598
|
caption: z.ZodOptional<z.ZodString>;
|
|
1489
1599
|
}, z.core.$strip>>;
|
|
@@ -1499,6 +1609,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1499
1609
|
image: z.ZodOptional<z.ZodObject<{
|
|
1500
1610
|
src: z.ZodString;
|
|
1501
1611
|
alt: z.ZodDefault<z.ZodString>;
|
|
1612
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1613
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1502
1614
|
}, z.core.$strip>>;
|
|
1503
1615
|
tone: z.ZodDefault<z.ZodEnum<{
|
|
1504
1616
|
default: "default";
|
|
@@ -1531,6 +1643,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1531
1643
|
image: z.ZodOptional<z.ZodObject<{
|
|
1532
1644
|
src: z.ZodString;
|
|
1533
1645
|
alt: z.ZodDefault<z.ZodString>;
|
|
1646
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1647
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1534
1648
|
}, z.core.$strip>>;
|
|
1535
1649
|
bio: z.ZodOptional<z.ZodString>;
|
|
1536
1650
|
}, z.core.$strip>>;
|
|
@@ -1542,6 +1656,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1542
1656
|
logo: z.ZodOptional<z.ZodObject<{
|
|
1543
1657
|
src: z.ZodString;
|
|
1544
1658
|
alt: z.ZodDefault<z.ZodString>;
|
|
1659
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1660
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1545
1661
|
}, z.core.$strip>>;
|
|
1546
1662
|
url: z.ZodOptional<z.ZodString>;
|
|
1547
1663
|
}, z.core.$strip>>;
|
|
@@ -1576,6 +1692,13 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1576
1692
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
1577
1693
|
collectionId: z.ZodOptional<z.ZodString>;
|
|
1578
1694
|
categoryId: z.ZodOptional<z.ZodString>;
|
|
1695
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
1696
|
+
eyebrow: z.ZodOptional<z.ZodString>;
|
|
1697
|
+
heading: z.ZodOptional<z.ZodString>;
|
|
1698
|
+
intro: z.ZodOptional<z.ZodString>;
|
|
1699
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
1700
|
+
collectionId: z.ZodOptional<z.ZodString>;
|
|
1701
|
+
categoryId: z.ZodOptional<z.ZodString>;
|
|
1579
1702
|
}, z.core.$strip> | z.ZodObject<{
|
|
1580
1703
|
eventSlug: z.ZodOptional<z.ZodString>;
|
|
1581
1704
|
categoryId: z.ZodOptional<z.ZodString>;
|
|
@@ -1620,7 +1743,7 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1620
1743
|
}, z.core.$strip>;
|
|
1621
1744
|
}, z.core.$strip>, ...z.ZodObject<{
|
|
1622
1745
|
id: z.ZodString;
|
|
1623
|
-
type: z.ZodLiteral<"custom" | "cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "embed" | "form" | "upcomingEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
|
|
1746
|
+
type: z.ZodLiteral<"custom" | "cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "embed" | "form" | "upcomingEvents" | "pastEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
|
|
1624
1747
|
data: z.ZodObject<{
|
|
1625
1748
|
eyebrow: z.ZodOptional<z.ZodString>;
|
|
1626
1749
|
heading: z.ZodString;
|
|
@@ -1628,6 +1751,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1628
1751
|
image: z.ZodOptional<z.ZodObject<{
|
|
1629
1752
|
src: z.ZodString;
|
|
1630
1753
|
alt: z.ZodDefault<z.ZodString>;
|
|
1754
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1755
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1631
1756
|
}, z.core.$strip>>;
|
|
1632
1757
|
primaryCta: z.ZodOptional<z.ZodObject<{
|
|
1633
1758
|
label: z.ZodString;
|
|
@@ -1655,6 +1780,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1655
1780
|
image: z.ZodOptional<z.ZodObject<{
|
|
1656
1781
|
src: z.ZodString;
|
|
1657
1782
|
alt: z.ZodDefault<z.ZodString>;
|
|
1783
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1784
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1658
1785
|
}, z.core.$strip>>;
|
|
1659
1786
|
imagePosition: z.ZodDefault<z.ZodEnum<{
|
|
1660
1787
|
left: "left";
|
|
@@ -1684,6 +1811,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1684
1811
|
image: z.ZodOptional<z.ZodObject<{
|
|
1685
1812
|
src: z.ZodString;
|
|
1686
1813
|
alt: z.ZodDefault<z.ZodString>;
|
|
1814
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1815
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1687
1816
|
}, z.core.$strip>>;
|
|
1688
1817
|
link: z.ZodOptional<z.ZodObject<{
|
|
1689
1818
|
label: z.ZodString;
|
|
@@ -1716,6 +1845,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1716
1845
|
image: z.ZodOptional<z.ZodObject<{
|
|
1717
1846
|
src: z.ZodString;
|
|
1718
1847
|
alt: z.ZodDefault<z.ZodString>;
|
|
1848
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1849
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1719
1850
|
}, z.core.$strip>>;
|
|
1720
1851
|
}, z.core.$strip> | z.ZodObject<{
|
|
1721
1852
|
heading: z.ZodOptional<z.ZodString>;
|
|
@@ -1756,6 +1887,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1756
1887
|
image: z.ZodOptional<z.ZodObject<{
|
|
1757
1888
|
src: z.ZodString;
|
|
1758
1889
|
alt: z.ZodDefault<z.ZodString>;
|
|
1890
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1891
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1759
1892
|
}, z.core.$strip>>;
|
|
1760
1893
|
url: z.ZodOptional<z.ZodString>;
|
|
1761
1894
|
role: z.ZodOptional<z.ZodString>;
|
|
@@ -1796,6 +1929,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1796
1929
|
image: z.ZodObject<{
|
|
1797
1930
|
src: z.ZodString;
|
|
1798
1931
|
alt: z.ZodDefault<z.ZodString>;
|
|
1932
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1933
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1799
1934
|
}, z.core.$strip>;
|
|
1800
1935
|
caption: z.ZodOptional<z.ZodString>;
|
|
1801
1936
|
}, z.core.$strip>>;
|
|
@@ -1811,6 +1946,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1811
1946
|
image: z.ZodOptional<z.ZodObject<{
|
|
1812
1947
|
src: z.ZodString;
|
|
1813
1948
|
alt: z.ZodDefault<z.ZodString>;
|
|
1949
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1950
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1814
1951
|
}, z.core.$strip>>;
|
|
1815
1952
|
tone: z.ZodDefault<z.ZodEnum<{
|
|
1816
1953
|
default: "default";
|
|
@@ -1843,6 +1980,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1843
1980
|
image: z.ZodOptional<z.ZodObject<{
|
|
1844
1981
|
src: z.ZodString;
|
|
1845
1982
|
alt: z.ZodDefault<z.ZodString>;
|
|
1983
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1984
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1846
1985
|
}, z.core.$strip>>;
|
|
1847
1986
|
bio: z.ZodOptional<z.ZodString>;
|
|
1848
1987
|
}, z.core.$strip>>;
|
|
@@ -1854,6 +1993,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1854
1993
|
logo: z.ZodOptional<z.ZodObject<{
|
|
1855
1994
|
src: z.ZodString;
|
|
1856
1995
|
alt: z.ZodDefault<z.ZodString>;
|
|
1996
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1997
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1857
1998
|
}, z.core.$strip>>;
|
|
1858
1999
|
url: z.ZodOptional<z.ZodString>;
|
|
1859
2000
|
}, z.core.$strip>>;
|
|
@@ -1888,6 +2029,13 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1888
2029
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
1889
2030
|
collectionId: z.ZodOptional<z.ZodString>;
|
|
1890
2031
|
categoryId: z.ZodOptional<z.ZodString>;
|
|
2032
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
2033
|
+
eyebrow: z.ZodOptional<z.ZodString>;
|
|
2034
|
+
heading: z.ZodOptional<z.ZodString>;
|
|
2035
|
+
intro: z.ZodOptional<z.ZodString>;
|
|
2036
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
2037
|
+
collectionId: z.ZodOptional<z.ZodString>;
|
|
2038
|
+
categoryId: z.ZodOptional<z.ZodString>;
|
|
1891
2039
|
}, z.core.$strip> | z.ZodObject<{
|
|
1892
2040
|
eventSlug: z.ZodOptional<z.ZodString>;
|
|
1893
2041
|
categoryId: z.ZodOptional<z.ZodString>;
|
|
@@ -1938,6 +2086,8 @@ declare const pageContentSchema: z.ZodObject<{
|
|
|
1938
2086
|
image: z.ZodOptional<z.ZodObject<{
|
|
1939
2087
|
src: z.ZodString;
|
|
1940
2088
|
alt: z.ZodDefault<z.ZodString>;
|
|
2089
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
2090
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1941
2091
|
}, z.core.$strip>>;
|
|
1942
2092
|
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1943
2093
|
}, z.core.$strip>>;
|
|
@@ -1996,6 +2146,8 @@ declare const EMBED_ALLOW = "autoplay; encrypted-media; fullscreen; picture-in-p
|
|
|
1996
2146
|
declare function embedDocument(html: string): string;
|
|
1997
2147
|
|
|
1998
2148
|
declare const ORGANIZATION_TYPES: readonly ["Organization", "LocalBusiness", "NGO", "Corporation", "EducationalOrganization", "GovernmentOrganization", "MedicalOrganization", "SportsOrganization"];
|
|
2149
|
+
/** Languages a site can be in (Open Graph locale; the page's lang attribute is the part before the underscore). */
|
|
2150
|
+
declare const SITE_LOCALES: readonly ["en_US", "en_GB", "en_CA", "en_AU", "es_US", "es_ES", "es_MX", "fr_CA", "fr_FR", "de_DE", "pt_BR"];
|
|
1999
2151
|
declare const SOCIAL_PLATFORMS: readonly ["facebook", "instagram", "linkedin", "x", "youtube", "tiktok", "other"];
|
|
2000
2152
|
declare const siteSettingsSchema: z.ZodObject<{
|
|
2001
2153
|
navigation: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -2074,6 +2226,24 @@ declare const siteSettingsSchema: z.ZodObject<{
|
|
|
2074
2226
|
ogBackground: z.ZodOptional<z.ZodString>;
|
|
2075
2227
|
ogText: z.ZodOptional<z.ZodString>;
|
|
2076
2228
|
ogAccent: z.ZodOptional<z.ZodString>;
|
|
2229
|
+
noIndex: z.ZodOptional<z.ZodBoolean>;
|
|
2230
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
2231
|
+
en_US: "en_US";
|
|
2232
|
+
en_GB: "en_GB";
|
|
2233
|
+
en_CA: "en_CA";
|
|
2234
|
+
en_AU: "en_AU";
|
|
2235
|
+
es_US: "es_US";
|
|
2236
|
+
es_ES: "es_ES";
|
|
2237
|
+
es_MX: "es_MX";
|
|
2238
|
+
fr_CA: "fr_CA";
|
|
2239
|
+
fr_FR: "fr_FR";
|
|
2240
|
+
de_DE: "de_DE";
|
|
2241
|
+
pt_BR: "pt_BR";
|
|
2242
|
+
}>>;
|
|
2243
|
+
verification: z.ZodDefault<z.ZodObject<{
|
|
2244
|
+
google: z.ZodOptional<z.ZodString>;
|
|
2245
|
+
bing: z.ZodOptional<z.ZodString>;
|
|
2246
|
+
}, z.core.$strip>>;
|
|
2077
2247
|
}, z.core.$strip>>;
|
|
2078
2248
|
}, z.core.$strip>;
|
|
2079
2249
|
type SiteSettings = z.infer<typeof siteSettingsSchema>;
|
|
@@ -2121,10 +2291,11 @@ type PageMeta = {
|
|
|
2121
2291
|
index: boolean;
|
|
2122
2292
|
follow: boolean;
|
|
2123
2293
|
};
|
|
2294
|
+
/** The share image. Generated ones are 1200×630; an uploaded one's size isn't known, so width and height are left out. */
|
|
2124
2295
|
image: {
|
|
2125
2296
|
url: string;
|
|
2126
|
-
width
|
|
2127
|
-
height
|
|
2297
|
+
width?: number;
|
|
2298
|
+
height?: number;
|
|
2128
2299
|
alt: string;
|
|
2129
2300
|
generated: boolean;
|
|
2130
2301
|
};
|
|
@@ -2161,6 +2332,8 @@ type HearthEvent = {
|
|
|
2161
2332
|
name: string | null;
|
|
2162
2333
|
address: string | null;
|
|
2163
2334
|
};
|
|
2335
|
+
/** How people attend: at the place, online, or either. */
|
|
2336
|
+
attendance: "in_person" | "online" | "mixed";
|
|
2164
2337
|
registrationUrl: string | null;
|
|
2165
2338
|
image: {
|
|
2166
2339
|
src: string;
|
|
@@ -2343,7 +2516,7 @@ type Resolved<T extends BlockType> = T extends "hero" ? {
|
|
|
2343
2516
|
alt: string;
|
|
2344
2517
|
} | null;
|
|
2345
2518
|
};
|
|
2346
|
-
} : T extends "upcomingEvents" ? {
|
|
2519
|
+
} : T extends "upcomingEvents" | "pastEvents" ? {
|
|
2347
2520
|
id: string;
|
|
2348
2521
|
type: T;
|
|
2349
2522
|
data: BlockData<T> & {
|
|
@@ -2461,6 +2634,15 @@ type SitemapEntry = {
|
|
|
2461
2634
|
lastModified: string | null;
|
|
2462
2635
|
priority: number;
|
|
2463
2636
|
};
|
|
2637
|
+
/**
|
|
2638
|
+
* An old address that now lives elsewhere (made when a live page changes address, by a migration, or by hand).
|
|
2639
|
+
* `from` is a lowercase path without a trailing slash; `to` is a path on the site or a full URL.
|
|
2640
|
+
*/
|
|
2641
|
+
type Redirect = {
|
|
2642
|
+
from: string;
|
|
2643
|
+
to: string;
|
|
2644
|
+
permanent: boolean;
|
|
2645
|
+
};
|
|
2464
2646
|
/** Body of a publish webhook (verify the X-Hearth-Signature header first). */
|
|
2465
2647
|
type WebhookPayload = {
|
|
2466
2648
|
site: string;
|
|
@@ -2476,4 +2658,4 @@ type ApiErrorBody = {
|
|
|
2476
2658
|
};
|
|
2477
2659
|
};
|
|
2478
2660
|
|
|
2479
|
-
export { type ApiErrorBody, BLOCK_SCHEMA_VERSION, type Block, type BlockData, type BlockOf, type BlockType, type CategoryGroup, type CategoryRef, type Collection, type CollectionEntry, type CollectionRef, type CustomBlockDefinition, type CustomField, type CustomFieldKind, type DonationCheckout, type DonationInput, EMBED_ALLOW, EMBED_SANDBOX, type EntryDetails, type EventCustomFields, type EventRegistration, type EventTicket, type FormDefinition, type FormField, type Fundraiser, type FundraiserDetail, type HearthEvent, type HearthEventDetail, type HearthForm, type ImageRef, type KnownBlock, type LinkRef, ORGANIZATION_TYPES, type Page, type PageContent, type PageMeta, type PageSummary, type RegistrationInput, type RegistrationResult, type ResolvedBlock, SOCIAL_PLATFORMS, type Site, type SiteSettings, type SitemapEntry, type TicketType, type UnknownBlock, type WebhookPayload, blockDataSchemas, blockFeature, blockSchema, blockTypes, customBlockDefinitionSchema, customBlockKey, customFieldSchema, customValuesSchema, embedDocument, formDefinitionSchema, formFieldSchema, pageContentSchema, parseBlocks, parsePageContent, parseSiteSettings, parseTicketTypes, siteSettingsSchema, ticketTypeSchema, ticketTypesSchema, videoEmbedUrl };
|
|
2661
|
+
export { type ApiErrorBody, BLOCK_SCHEMA_VERSION, type Block, type BlockData, type BlockOf, type BlockType, type CategoryGroup, type CategoryRef, type Collection, type CollectionEntry, type CollectionRef, type CustomBlockDefinition, type CustomField, type CustomFieldKind, type DonationCheckout, type DonationInput, EMBED_ALLOW, EMBED_SANDBOX, type EntryDetails, type EventCustomFields, type EventRegistration, type EventTicket, type FormDefinition, type FormField, type Fundraiser, type FundraiserDetail, type HearthEvent, type HearthEventDetail, type HearthForm, type ImageRef, type KnownBlock, type LinkRef, ORGANIZATION_TYPES, type Page, type PageContent, type PageMeta, type PageSummary, type Redirect, type RegistrationInput, type RegistrationResult, type ResolvedBlock, SITE_LOCALES, SOCIAL_PLATFORMS, type Seo, type Site, type SiteSettings, type SitemapEntry, type TicketType, type UnknownBlock, type WebhookPayload, blockDataSchemas, blockFeature, blockSchema, blockTypes, customBlockDefinitionSchema, customBlockKey, customFieldSchema, customValuesSchema, embedDocument, formDefinitionSchema, formFieldSchema, pageContentSchema, parseBlocks, parsePageContent, parseSiteSettings, parseTicketTypes, seoSchema, siteSettingsSchema, ticketTypeSchema, ticketTypesSchema, videoEmbedUrl };
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,10 @@ var BLOCK_SCHEMA_VERSION = 1;
|
|
|
4
4
|
var image = z.object({
|
|
5
5
|
/** R2 object key of an uploaded file, or an absolute URL. The API returns absolute URLs. */
|
|
6
6
|
src: z.string().min(1),
|
|
7
|
-
alt: z.string().default("")
|
|
7
|
+
alt: z.string().default(""),
|
|
8
|
+
/** The file's size in pixels: filled in by the API from the media library, so frontends can avoid layout shift. */
|
|
9
|
+
width: z.number().int().positive().optional(),
|
|
10
|
+
height: z.number().int().positive().optional()
|
|
8
11
|
});
|
|
9
12
|
var link = z.object({
|
|
10
13
|
label: z.string().min(1),
|
|
@@ -303,6 +306,17 @@ var blockDataSchemas = {
|
|
|
303
306
|
/** Only events in this category (e.g. "Featured"). */
|
|
304
307
|
categoryId: z.string().uuid().optional()
|
|
305
308
|
}),
|
|
309
|
+
/** Events that have ended, most recent first: a talk archive, past events. */
|
|
310
|
+
pastEvents: z.object({
|
|
311
|
+
eyebrow: z.string().optional(),
|
|
312
|
+
heading: z.string().optional(),
|
|
313
|
+
intro: z.string().optional(),
|
|
314
|
+
limit: z.number().int().min(1).max(24).default(6),
|
|
315
|
+
/** Only events in this event collection (e.g. "Talks"); omit for every event. */
|
|
316
|
+
collectionId: z.string().uuid().optional(),
|
|
317
|
+
/** Only events in this category. */
|
|
318
|
+
categoryId: z.string().uuid().optional()
|
|
319
|
+
}),
|
|
306
320
|
eventSpotlight: z.object({
|
|
307
321
|
/** Event slug; omit to show the next upcoming event. */
|
|
308
322
|
eventSlug: z.string().optional(),
|
|
@@ -365,6 +379,7 @@ var blockDataSchemas = {
|
|
|
365
379
|
var blockTypes = Object.keys(blockDataSchemas);
|
|
366
380
|
var blockFeature = {
|
|
367
381
|
upcomingEvents: "events",
|
|
382
|
+
pastEvents: "events",
|
|
368
383
|
eventSpotlight: "events",
|
|
369
384
|
fundraiserSpotlight: "giving",
|
|
370
385
|
fundraiserGrid: "giving",
|
|
@@ -381,6 +396,15 @@ var blockSchema = z.discriminatedUnion(
|
|
|
381
396
|
"type",
|
|
382
397
|
blockVariants
|
|
383
398
|
);
|
|
399
|
+
var seoSchema = z.object({
|
|
400
|
+
title: z.string().trim().max(70, "Keep it under 70 characters.").optional(),
|
|
401
|
+
description: z.string().trim().max(200, "Keep it under 200 characters.").optional(),
|
|
402
|
+
image: image.optional(),
|
|
403
|
+
/** Keep it out of search engines (and the sitemap). */
|
|
404
|
+
noIndex: z.boolean().optional(),
|
|
405
|
+
/** Point search engines at another address for this content (a path or full URL). */
|
|
406
|
+
canonical: z.string().trim().max(500).optional()
|
|
407
|
+
});
|
|
384
408
|
var pageContentSchema = z.object({
|
|
385
409
|
title: z.string().trim().min(1, "Give the page a title."),
|
|
386
410
|
seo: z.object({
|
|
@@ -483,6 +507,7 @@ function embedDocument(html) {
|
|
|
483
507
|
import { z as z2 } from "zod";
|
|
484
508
|
var link2 = z2.object({ label: z2.string().trim().min(1, "Add link text."), href: z2.string().trim().min(1, "Add where it goes.") });
|
|
485
509
|
var ORGANIZATION_TYPES = ["Organization", "LocalBusiness", "NGO", "Corporation", "EducationalOrganization", "GovernmentOrganization", "MedicalOrganization", "SportsOrganization"];
|
|
510
|
+
var SITE_LOCALES = ["en_US", "en_GB", "en_CA", "en_AU", "es_US", "es_ES", "es_MX", "fr_CA", "fr_FR", "de_DE", "pt_BR"];
|
|
486
511
|
var SOCIAL_PLATFORMS = ["facebook", "instagram", "linkedin", "x", "youtube", "tiktok", "other"];
|
|
487
512
|
var siteSettingsSchema = z2.object({
|
|
488
513
|
navigation: z2.array(link2).default([]),
|
|
@@ -557,8 +582,17 @@ var siteSettingsSchema = z2.object({
|
|
|
557
582
|
/** Colors for generated share images. */
|
|
558
583
|
ogBackground: z2.string().regex(/^#[0-9a-fA-F]{6}$/, "Use a hex color like #1A1A14.").optional(),
|
|
559
584
|
ogText: z2.string().regex(/^#[0-9a-fA-F]{6}$/, "Use a hex color like #FFFFFF.").optional(),
|
|
560
|
-
ogAccent: z2.string().regex(/^#[0-9a-fA-F]{6}$/, "Use a hex color like #E8993F.").optional()
|
|
561
|
-
|
|
585
|
+
ogAccent: z2.string().regex(/^#[0-9a-fA-F]{6}$/, "Use a hex color like #E8993F.").optional(),
|
|
586
|
+
/** Keep the whole site out of search engines (e.g. before launch): every page asks not to be listed, and the sitemap is empty. */
|
|
587
|
+
noIndex: z2.boolean().optional(),
|
|
588
|
+
/** The site's language and region, e.g. en_US: social share tags and the page's lang attribute. */
|
|
589
|
+
locale: z2.enum(SITE_LOCALES).default("en_US"),
|
|
590
|
+
/** Ownership checks from Google Search Console and Bing Webmaster Tools (the code from their HTML tag method). */
|
|
591
|
+
verification: z2.object({
|
|
592
|
+
google: z2.string().trim().max(120).regex(/^[A-Za-z0-9_-]*$/, `Paste only the code from the tag's content="\u2026".`).optional(),
|
|
593
|
+
bing: z2.string().trim().max(120).regex(/^[A-Za-z0-9_-]*$/, `Paste only the code from the tag's content="\u2026".`).optional()
|
|
594
|
+
}).default({})
|
|
595
|
+
}).default({ organizationType: "Organization", locale: "en_US", verification: {} })
|
|
562
596
|
});
|
|
563
597
|
function parseSiteSettings(input) {
|
|
564
598
|
const parsed = siteSettingsSchema.safeParse(input ?? {});
|
|
@@ -591,6 +625,7 @@ export {
|
|
|
591
625
|
EMBED_ALLOW,
|
|
592
626
|
EMBED_SANDBOX,
|
|
593
627
|
ORGANIZATION_TYPES,
|
|
628
|
+
SITE_LOCALES,
|
|
594
629
|
SOCIAL_PLATFORMS,
|
|
595
630
|
blockDataSchemas,
|
|
596
631
|
blockFeature,
|
|
@@ -608,6 +643,7 @@ export {
|
|
|
608
643
|
parsePageContent,
|
|
609
644
|
parseSiteSettings,
|
|
610
645
|
parseTicketTypes,
|
|
646
|
+
seoSchema,
|
|
611
647
|
siteSettingsSchema,
|
|
612
648
|
ticketTypeSchema,
|
|
613
649
|
ticketTypesSchema,
|