@yext/visual-editor 0.0.38 → 0.0.40

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.cts CHANGED
@@ -2,12 +2,13 @@ import * as React$1 from 'react';
2
2
  import React__default, { ReactNode } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as _measured_puck from '@measured/puck';
5
- import { Field, Fields, Config, CustomField, ArrayField, BaseField, NumberField, ObjectField, ComponentConfig } from '@measured/puck';
5
+ import { Field, CustomField, Fields, Data, DefaultComponentProps, Config, DefaultRootProps, ArrayField, BaseField, NumberField, ObjectField, ComponentConfig } from '@measured/puck';
6
6
  import { ClassValue } from 'clsx';
7
+ import * as _yext_search_headless_react from '@yext/search-headless-react';
8
+ import { ImageType, CTA as CTA$1, LinkType, ComplexImageType, AddressType, HoursType, DayOfWeekNames, Coordinate } from '@yext/pages-components';
7
9
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
8
10
  import { VariantProps } from 'class-variance-authority';
9
11
  import * as react_jsx_runtime_js from 'react/jsx-runtime.js';
10
- import { LinkType, ImageType, ComplexImageType, AddressType, HoursType, DayOfWeekNames, Coordinate } from '@yext/pages-components';
11
12
 
12
13
  declare const usePlatformBridgeDocument: () => any;
13
14
 
@@ -18,6 +19,7 @@ type YextSchemaField = {
18
19
  children?: {
19
20
  fields: YextSchemaField[];
20
21
  };
22
+ optionFormat?: "OPTION_FORMAT_EXPANDED";
21
23
  };
22
24
  type YextFieldDefinition = {
23
25
  name: string;
@@ -231,13 +233,13 @@ type AllowList<T extends Record<string, any>> = {
231
233
  type DisallowList<T extends Record<string, any>> = {
232
234
  disallowList: ConfigFields<T>[number][];
233
235
  };
234
- type EntityFieldTypesFilter = {
236
+ type EntityFieldTypesFilter$1 = {
235
237
  types?: EntityFieldTypes[];
236
238
  includeListsOnly?: boolean;
237
239
  directChildrenOf?: string;
238
240
  };
239
- type RenderEntityFieldFilter<T extends Record<string, any>> = EntityFieldTypesFilter & EitherOrNeither<AllowList<T>, DisallowList<T>>;
240
- type EntityFieldTypes = "type.string" | "type.image" | "type.hours" | "type.address" | "type.phone" | "type.coordinate" | "type.cta" | "type.rich_text_v2" | `c_${string}`;
241
+ type RenderEntityFieldFilter<T extends Record<string, any>> = EntityFieldTypesFilter$1 & EitherOrNeither<AllowList<T>, DisallowList<T>>;
242
+ type EntityFieldTypes = "type.string" | "type.image" | "type.hours" | "type.address" | "type.phone" | "type.coordinate" | "type.cta" | "type.boolean" | "type.option" | "type.faq_section" | "type.testimonials_section" | "type.products_section" | "type.insights_section" | "type.rich_text_v2" | "type.team_section" | "type.events_section" | "type.promo_section" | "type.hero_section" | `c_${string}`;
241
243
 
242
244
  type YextEntityField<T> = {
243
245
  field: string;
@@ -263,7 +265,25 @@ declare const YextEntityFieldSelector: <T extends Record<string, any>, U>(props:
263
265
  */
264
266
  declare const YextCollectionSubfieldSelector: <T extends Record<string, any>, U>(props: RenderYextEntityFieldSelectorProps<T>) => Field<YextEntityField<U>>;
265
267
 
268
+ type EntityFieldTypesFilter = {
269
+ type: StructEntityFieldTypes;
270
+ };
271
+ type StructEntityFieldTypes = "type.hero_section" | "type.promo_section";
272
+ type YextStructEntityField<T extends Record<string, any> = any> = {
273
+ field: string;
274
+ constantValue: T;
275
+ constantValueOverride: {
276
+ [K in keyof T]: boolean;
277
+ };
278
+ };
279
+ type StructSelectorProps = {
280
+ label: string;
281
+ filter: EntityFieldTypesFilter;
282
+ };
283
+ declare const YextStructFieldSelector: <U extends Record<string, any>>(props: StructSelectorProps) => CustomField<YextStructEntityField<U>>;
284
+
266
285
  declare const resolveYextEntityField: <T>(document: any, entityField: YextEntityField<T>) => T | undefined;
286
+ declare const resolveYextStructField: <T extends Record<string, any>>(document: any, entityField: YextStructEntityField<T>) => T | undefined;
267
287
  declare const resolveYextSubfield: <T>(parent: any, field: YextEntityField<T> | undefined) => T | undefined;
268
288
  /**
269
289
  * handleResolveFieldsForCollections determines if lastFields
@@ -336,7 +356,7 @@ type FontSpecification = {
336
356
  minWeight: number;
337
357
  maxWeight: number;
338
358
  italics: boolean;
339
- fallback: "sans-serif" | "serif" | "monospace";
359
+ fallback: "sans-serif" | "serif" | "monospace" | "cursive";
340
360
  };
341
361
  declare const defaultFonts: FontRegistry;
342
362
  declare const constructFontSelectOptions: (fonts: FontRegistry) => StyleSelectOption[];
@@ -378,6 +398,8 @@ declare const normalizeSlug: (content: string) => string;
378
398
 
379
399
  declare const applyAnalytics: (document: Record<string, any>) => string | undefined;
380
400
 
401
+ declare const applyHeaderScript: (document: Record<string, any>) => any;
402
+
381
403
  type RootConfig = {
382
404
  title?: string;
383
405
  description?: string;
@@ -385,15 +407,194 @@ type RootConfig = {
385
407
  };
386
408
  declare function getPageMetadata(document: Record<string, any>): RootConfig;
387
409
 
388
- declare const fetchNearbyLocations: ({ contentEndpoint, latitude, longitude, radiusMi, limit, entityType, }: {
389
- contentEndpoint: string;
410
+ declare const fetchNearbyLocations: ({ businessId, apiKey, contentEndpointId, contentDeliveryAPIDomain, latitude, longitude, radiusMi, limit, }: {
411
+ businessId: string;
412
+ apiKey: string;
413
+ contentEndpointId: string;
414
+ contentDeliveryAPIDomain: string;
390
415
  longitude: number;
391
416
  latitude: number;
392
417
  radiusMi: number;
393
418
  limit: number;
394
- entityType: string;
395
419
  }) => Promise<Record<string, any>>;
396
420
 
421
+ /**
422
+ * Builds the search headless config for the template. Returns undefined if the config is not valid.
423
+ * @param document the entity document
424
+ */
425
+ declare const createSearchHeadlessConfig: (document: any) => (_yext_search_headless_react.SearchConfigWithApiKey & {
426
+ headlessId?: string;
427
+ verticalKey?: string;
428
+ }) | undefined;
429
+ /**
430
+ * Builds the search analytics config for the template. Returns undefined if the config is not valid.
431
+ * @param document the entity document
432
+ */
433
+ declare const createSearchAnalyticsConfig: (document: any) => {
434
+ businessId: any;
435
+ experienceKey: any;
436
+ experienceVersion: string;
437
+ region: any;
438
+ env: string;
439
+ } | undefined;
440
+
441
+ type MigrationAction = {
442
+ action: "removed";
443
+ } | {
444
+ action: "renamed";
445
+ newName: string;
446
+ } | {
447
+ action: "updated";
448
+ propTransformation: (oldProps: Record<string, any>) => Record<string, any>;
449
+ };
450
+ type Migration = Record<string, MigrationAction>;
451
+ type MigrationRegistry = Migration[];
452
+ interface RootProps extends DefaultRootProps {
453
+ props?: {
454
+ version?: number;
455
+ };
456
+ }
457
+ declare const migrate: (data: Data<DefaultComponentProps, RootProps>, migrationRegistry?: MigrationRegistry, config?: Config) => Data;
458
+
459
+ type HeroSectionType = {
460
+ image?: ImageType;
461
+ primaryCta?: CTA$1;
462
+ secondaryCta?: CTA$1;
463
+ };
464
+ type PromoSectionType = {
465
+ image?: ImageType;
466
+ title?: string;
467
+ description?: RTF2 | string;
468
+ cta?: CTA$1;
469
+ };
470
+ type ProductSectionType = {
471
+ products: Array<ProductStruct>;
472
+ };
473
+ type ProductStruct = {
474
+ image?: ImageType;
475
+ name?: string;
476
+ description?: RTF2 | string;
477
+ category?: string;
478
+ cta?: CTA$1;
479
+ };
480
+ type EventSectionType = {
481
+ events: Array<EventStruct>;
482
+ };
483
+ type EventStruct = {
484
+ image?: ImageType;
485
+ title?: string;
486
+ dateTime?: string;
487
+ description?: RTF2 | string;
488
+ cta?: CTA$1;
489
+ };
490
+ type FAQSectionType = {
491
+ faqs: Array<FAQStruct>;
492
+ };
493
+ type FAQStruct = {
494
+ question: string;
495
+ answer: RTF2 | string;
496
+ };
497
+ type TestimonialSectionType = {
498
+ testimonials: Array<TestimonialStruct>;
499
+ };
500
+ type TestimonialStruct = {
501
+ description?: RTF2 | string;
502
+ contributorName?: string;
503
+ contributionDate?: string;
504
+ };
505
+ type InsightSectionType = {
506
+ insights: Array<InsightStruct>;
507
+ };
508
+ type InsightStruct = {
509
+ image?: ImageType;
510
+ name?: string;
511
+ category?: string;
512
+ publishTime?: string;
513
+ description?: RTF2 | string;
514
+ cta?: CTA$1;
515
+ };
516
+ type TeamSectionType = {
517
+ people: Array<PersonStruct>;
518
+ };
519
+ type PersonStruct = {
520
+ headshot?: ImageType;
521
+ name?: string;
522
+ title?: string;
523
+ phoneNumber?: string;
524
+ email?: string;
525
+ cta?: CTA$1;
526
+ };
527
+ type RTF2 = {
528
+ html?: string;
529
+ json?: string;
530
+ };
531
+
532
+ type ComponentField = {
533
+ name: string;
534
+ type: StructEntityFieldTypes | EntityFieldTypes;
535
+ isList: boolean;
536
+ tooltipDescription: string;
537
+ altLanguageBehavior: "LANGUAGE_SPECIFIC" | "PRIMARY_ONLY" | "OVERRIDABLE";
538
+ };
539
+ declare const ComponentFields: {
540
+ readonly HeroSection: {
541
+ readonly name: "Hero Section";
542
+ readonly type: "type.hero_section";
543
+ readonly isList: false;
544
+ readonly tooltipDescription: "";
545
+ readonly altLanguageBehavior: "LANGUAGE_SPECIFIC";
546
+ };
547
+ readonly PromoSection: {
548
+ readonly name: "Promo Section";
549
+ readonly type: "type.promo_section";
550
+ readonly isList: false;
551
+ readonly tooltipDescription: "";
552
+ readonly altLanguageBehavior: "LANGUAGE_SPECIFIC";
553
+ };
554
+ readonly ProductSection: {
555
+ readonly name: "Product Section";
556
+ readonly type: "type.products_section";
557
+ readonly isList: false;
558
+ readonly tooltipDescription: "";
559
+ readonly altLanguageBehavior: "LANGUAGE_SPECIFIC";
560
+ };
561
+ readonly EventSection: {
562
+ readonly name: "Event Section";
563
+ readonly type: "type.events_section";
564
+ readonly isList: false;
565
+ readonly tooltipDescription: "";
566
+ readonly altLanguageBehavior: "LANGUAGE_SPECIFIC";
567
+ };
568
+ readonly FAQSection: {
569
+ readonly name: "FAQ Section";
570
+ readonly type: "type.faq_section";
571
+ readonly isList: false;
572
+ readonly tooltipDescription: "";
573
+ readonly altLanguageBehavior: "LANGUAGE_SPECIFIC";
574
+ };
575
+ readonly TestimonialSection: {
576
+ readonly name: "Testimonial Section";
577
+ readonly type: "type.testimonials_section";
578
+ readonly isList: false;
579
+ readonly tooltipDescription: "";
580
+ readonly altLanguageBehavior: "LANGUAGE_SPECIFIC";
581
+ };
582
+ readonly InsightSection: {
583
+ readonly name: "Insight Section";
584
+ readonly type: "type.insights_section";
585
+ readonly isList: false;
586
+ readonly tooltipDescription: "";
587
+ readonly altLanguageBehavior: "LANGUAGE_SPECIFIC";
588
+ };
589
+ readonly TeamSection: {
590
+ readonly name: "Team Section";
591
+ readonly type: "type.team_section";
592
+ readonly isList: false;
593
+ readonly tooltipDescription: "";
594
+ readonly altLanguageBehavior: "LANGUAGE_SPECIFIC";
595
+ };
596
+ };
597
+
397
598
  type EditorProps = {
398
599
  document: any;
399
600
  componentRegistry: Map<string, Config<any>>;
@@ -518,7 +719,7 @@ declare const headingVariants: (props?: ({
518
719
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
519
720
  interface HeadingProps extends Omit<React$1.HTMLAttributes<HTMLHeadingElement>, "color">, VariantProps<typeof headingVariants> {
520
721
  level: HeadingLevel;
521
- semanticLevelOverride?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span";
722
+ semanticLevelOverride?: HeadingLevel | "span";
522
723
  }
523
724
  declare const Heading: React$1.ForwardRefExoticComponent<HeadingProps & React$1.RefAttributes<HTMLHeadingElement>>;
524
725
 
@@ -542,6 +743,11 @@ type MaybeLinkProps = {
542
743
  };
543
744
  declare const MaybeLink: (props: MaybeLinkProps) => react_jsx_runtime.JSX.Element;
544
745
 
746
+ interface MaybeRTFProps extends Record<string, any> {
747
+ data: RTF2 | string | undefined;
748
+ }
749
+ declare const MaybeRTF: ({ data, ...props }: MaybeRTFProps) => react_jsx_runtime.JSX.Element | undefined;
750
+
545
751
  declare const pageSectionVariants: (props?: ({
546
752
  verticalPadding?: "default" | "sm" | "footer" | "header" | null | undefined;
547
753
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
@@ -580,10 +786,29 @@ declare const wrapperVariants: (props?: ({
580
786
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
581
787
  declare const VisibilityWrapper: React$1.FC<VisibilityWrapperProps>;
582
788
 
789
+ declare enum TimestampOption {
790
+ DATE = "DATE",
791
+ DATE_TIME = "DATE_TIME",
792
+ DATE_RANGE = "DATE_RANGE",
793
+ DATE_TIME_RANGE = "DATE_TIME_RANGE"
794
+ }
795
+ type TimestampProps = {
796
+ date: string;
797
+ option?: TimestampOption;
798
+ endDate?: string;
799
+ timeZone?: string;
800
+ hideTimeZone?: boolean;
801
+ };
802
+ declare function Timestamp({ date, option, endDate, timeZone, hideTimeZone, }: TimestampProps): JSX.Element;
803
+
583
804
  type BannerSectionProps = {
584
- text: YextEntityField<string>;
585
- textAlignment: "left" | "right" | "center";
586
- backgroundColor?: BackgroundStyle;
805
+ styles: {
806
+ backgroundColor?: BackgroundStyle;
807
+ textAlignment: "left" | "right" | "center";
808
+ };
809
+ data: {
810
+ text: YextEntityField<string>;
811
+ };
587
812
  liveVisibility: boolean;
588
813
  };
589
814
  declare const BannerSection: ComponentConfig<BannerSectionProps>;
@@ -595,85 +820,103 @@ type BreadcrumbsSectionProps = {
595
820
  declare const BreadcrumbsSection: ComponentConfig<BreadcrumbsSectionProps>;
596
821
 
597
822
  interface CoreInfoSectionProps {
823
+ data: {
824
+ info: {
825
+ headingText: YextEntityField<string>;
826
+ address: YextEntityField<AddressType>;
827
+ phoneNumbers: Array<{
828
+ number: YextEntityField<string>;
829
+ label: string;
830
+ }>;
831
+ emails: YextEntityField<string[]>;
832
+ };
833
+ hours: {
834
+ headingText: YextEntityField<string>;
835
+ hours: YextEntityField<HoursType>;
836
+ };
837
+ services: {
838
+ headingText: YextEntityField<string>;
839
+ servicesList: YextEntityField<string[]>;
840
+ };
841
+ };
598
842
  styles: {
599
843
  headingLevel: HeadingLevel;
600
844
  backgroundColor?: BackgroundStyle;
601
- };
602
- address: {
603
- headingText: YextEntityField<string>;
604
- address: YextEntityField<AddressType>;
605
- showGetDirectionsLink: boolean;
606
- };
607
- phoneNumbers: {
608
- phoneNumber: Array<{
609
- number: YextEntityField<string>;
610
- label: string;
611
- }>;
612
- phoneFormat: "domestic" | "international";
613
- includePhoneHyperlink: boolean;
614
- };
615
- emails: {
616
- emails: YextEntityField<string[]>;
617
- listLength: number;
618
- };
619
- hours: {
620
- headingText: YextEntityField<string>;
621
- hours: YextEntityField<HoursType>;
622
- startOfWeek: keyof DayOfWeekNames | "today";
623
- collapseDays: boolean;
624
- showAdditionalHoursText: boolean;
625
- };
626
- services: {
627
- headingText: YextEntityField<string>;
628
- servicesList: YextEntityField<string[]>;
845
+ info: {
846
+ showGetDirectionsLink: boolean;
847
+ phoneFormat: "domestic" | "international";
848
+ includePhoneHyperlink: boolean;
849
+ emailsListLength: number;
850
+ };
851
+ hours: {
852
+ startOfWeek: keyof DayOfWeekNames | "today";
853
+ collapseDays: boolean;
854
+ showAdditionalHoursText: boolean;
855
+ };
629
856
  };
630
857
  liveVisibility: boolean;
631
858
  }
632
859
  declare const CoreInfoSection: ComponentConfig<CoreInfoSectionProps>;
633
860
 
634
- interface HeroSectionProps {
635
- image: ImageWrapperProps;
636
- businessName: {
637
- entityField: YextEntityField<string>;
638
- level: HeadingLevel;
639
- };
640
- localGeoModifier: {
641
- entityField: YextEntityField<string>;
642
- level: HeadingLevel;
643
- };
644
- hours: {
645
- entityField: YextEntityField<HoursType>;
646
- showHours: boolean;
861
+ interface EventSectionProps {
862
+ data: {
863
+ heading: YextEntityField<string>;
864
+ events: YextEntityField<EventSectionType>;
647
865
  };
648
- primaryCta: {
649
- entityField: YextEntityField<CTAProps>;
650
- variant: CTAProps["variant"];
651
- showCTA: boolean;
866
+ styles: {
867
+ backgroundColor?: BackgroundStyle;
868
+ cardBackgroundColor?: BackgroundStyle;
869
+ headingLevel: HeadingLevel;
652
870
  };
653
- secondaryCta: {
654
- entityField: YextEntityField<CTAProps>;
655
- variant: CTAProps["variant"];
656
- showCTA: boolean;
871
+ liveVisibility: boolean;
872
+ }
873
+ declare const EventSection: ComponentConfig<EventSectionProps>;
874
+
875
+ interface HeroSectionProps {
876
+ data: {
877
+ businessName: YextEntityField<string>;
878
+ localGeoModifier: YextEntityField<string>;
879
+ hours: YextEntityField<HoursType>;
880
+ hero: YextStructEntityField<HeroSectionType>;
657
881
  };
658
882
  styles: {
659
883
  backgroundColor?: BackgroundStyle;
660
884
  imageOrientation: "left" | "right";
885
+ businessNameLevel: HeadingLevel;
886
+ localGeoModifierLevel: HeadingLevel;
887
+ primaryCTA: CTAProps["variant"];
888
+ secondaryCTA: CTAProps["variant"];
661
889
  };
662
890
  liveVisibility: boolean;
663
891
  }
664
892
  declare const HeroSection: ComponentConfig<HeroSectionProps>;
665
893
 
666
- interface NearbyLocationsSectionProps {
894
+ interface InsightSectionProps {
895
+ data: {
896
+ heading: YextEntityField<string>;
897
+ insights: YextEntityField<InsightSectionType>;
898
+ };
667
899
  styles: {
668
900
  backgroundColor?: BackgroundStyle;
669
901
  cardBackgroundColor?: BackgroundStyle;
902
+ headingLevel: HeadingLevel;
670
903
  };
671
- heading: {
672
- level: HeadingLevel;
673
- text: YextEntityField<string>;
904
+ liveVisibility: boolean;
905
+ }
906
+ declare const InsightSection: ComponentConfig<InsightSectionProps>;
907
+
908
+ interface NearbyLocationsSectionProps {
909
+ data: {
910
+ heading: YextEntityField<string>;
911
+ coordinate: YextEntityField<Coordinate>;
912
+ radius: number;
913
+ limit: number;
674
914
  };
675
- cards: {
915
+ styles: {
916
+ backgroundColor?: BackgroundStyle;
917
+ cardBackgroundColor?: BackgroundStyle;
676
918
  headingLevel: HeadingLevel;
919
+ cardHeadingLevel: HeadingLevel;
677
920
  phoneNumberFormat: "domestic" | "international";
678
921
  phoneNumberLink: boolean;
679
922
  hours: {
@@ -683,86 +926,91 @@ interface NearbyLocationsSectionProps {
683
926
  showDayNames?: boolean;
684
927
  };
685
928
  };
686
- coordinate: YextEntityField<Coordinate>;
687
- radius: number;
688
- limit: number;
689
929
  liveVisibility: boolean;
690
930
  }
691
931
  declare const NearbyLocationsSection: ComponentConfig<NearbyLocationsSectionProps>;
692
932
 
693
- interface PromoSectionProps {
694
- image: ImageWrapperProps;
695
- title: {
696
- text: YextEntityField<string>;
697
- level: HeadingProps["level"];
933
+ interface ProductSectionProps {
934
+ data: {
935
+ heading: YextEntityField<string>;
936
+ products: YextEntityField<ProductSectionType>;
698
937
  };
699
- description: {
700
- text: YextEntityField<string>;
701
- variant: BodyProps["variant"];
938
+ styles: {
939
+ backgroundColor?: BackgroundStyle;
940
+ cardBackgroundColor?: BackgroundStyle;
941
+ headingLevel: HeadingLevel;
702
942
  };
703
- cta: {
704
- entityField: YextEntityField<CTAProps>;
705
- variant: CTAProps["variant"];
706
- visible: boolean;
943
+ liveVisibility: boolean;
944
+ }
945
+ declare const ProductSection: ComponentConfig<ProductSectionProps>;
946
+
947
+ interface PromoSectionProps {
948
+ data: {
949
+ promo: YextStructEntityField<PromoSectionType>;
707
950
  };
708
951
  styles: {
709
952
  backgroundColor?: BackgroundStyle;
710
953
  orientation: "left" | "right";
954
+ ctaVariant: CTAProps["variant"];
711
955
  };
712
956
  liveVisibility: boolean;
713
957
  }
714
958
  declare const PromoSection: ComponentConfig<PromoSectionProps>;
715
959
 
716
960
  interface PhotoGallerySectionProps {
961
+ data: {
962
+ heading: YextEntityField<string>;
963
+ images: YextEntityField<ImageType[] | ComplexImageType[]>;
964
+ };
717
965
  styles: {
718
966
  backgroundColor?: BackgroundStyle;
719
- };
720
- sectionHeading: {
721
- text: YextEntityField<string>;
722
- level: HeadingLevel;
723
- };
724
- images: {
725
- images: YextEntityField<ImageType[] | ComplexImageType[]>;
967
+ headingLevel: HeadingLevel;
726
968
  imageStyle: Omit<ImageWrapperProps, "image">;
727
969
  };
728
970
  liveVisibility: boolean;
729
971
  }
730
972
  declare const PhotoGallerySection: ComponentConfig<PhotoGallerySectionProps>;
731
973
 
732
- interface FAQsSectionProps {
974
+ interface FAQSectionProps {
975
+ data: {
976
+ heading: YextEntityField<string>;
977
+ faqs: YextEntityField<FAQSectionType>;
978
+ };
733
979
  styles: {
734
980
  backgroundColor?: BackgroundStyle;
981
+ headingLevel: HeadingProps["level"];
735
982
  };
736
- sectionHeading: {
737
- text: YextEntityField<string>;
738
- level: HeadingProps["level"];
739
- };
740
- collection: FAQsCollection;
741
983
  liveVisibility: boolean;
742
984
  }
743
- type FAQs = Array<{
744
- question: string;
745
- answer: string;
746
- }>;
747
- type FAQsCollection = YextCollection & {
748
- subfields?: {
749
- questionField: YextEntityField<string>;
750
- answerField: YextEntityField<string>;
985
+ declare const FAQSection: ComponentConfig<FAQSectionProps>;
986
+
987
+ interface TestimonialSectionProps {
988
+ data: {
989
+ heading: YextEntityField<string>;
990
+ testimonials: YextEntityField<TestimonialSectionType>;
751
991
  };
752
- FAQs?: FAQs;
753
- };
754
- declare const FAQsSection: ComponentConfig<FAQsSectionProps>;
992
+ styles: {
993
+ backgroundColor?: BackgroundStyle;
994
+ cardBackgroundColor?: BackgroundStyle;
995
+ headingLevel: HeadingLevel;
996
+ };
997
+ liveVisibility: boolean;
998
+ }
999
+ declare const TestimonialSection: ComponentConfig<TestimonialSectionProps>;
755
1000
 
756
- type SectionContainerProps = {
757
- background?: BackgroundStyle;
758
- sectionHeading: {
759
- text: YextEntityField<string>;
760
- level: HeadingProps["level"];
761
- alignment: "left" | "right" | "center";
1001
+ interface TeamSectionProps {
1002
+ styles: {
1003
+ backgroundColor?: BackgroundStyle;
1004
+ cardBackgroundColor?: BackgroundStyle;
1005
+ headingLevel: HeadingLevel;
1006
+ };
1007
+ data: {
1008
+ heading: YextEntityField<string>;
1009
+ people: YextEntityField<TeamSectionType>;
762
1010
  };
763
1011
  liveVisibility: boolean;
764
- };
765
- declare const SectionContainer: ComponentConfig<SectionContainerProps>;
1012
+ }
1013
+ declare const TeamSection: ComponentConfig<TeamSectionProps>;
766
1014
 
767
1015
  interface CollectionProps {
768
1016
  collection: YextCollection;
@@ -799,21 +1047,6 @@ interface GridProps extends layoutProps {
799
1047
  }
800
1048
  declare const Grid: ComponentConfig<GridProps>;
801
1049
 
802
- type ProductCardProps = {
803
- card?: {
804
- image?: ImageWrapperProps;
805
- heading?: YextEntityField<string>;
806
- category?: YextEntityField<string>;
807
- description?: YextEntityField<string>;
808
- cta?: YextEntityField<CTAProps>;
809
- };
810
- styles: {
811
- cardBackgroundColor?: BackgroundStyle;
812
- };
813
- collection?: YextCollection;
814
- };
815
- declare const ProductCard: ComponentConfig<ProductCardProps>;
816
-
817
1050
  type AddressProps = {
818
1051
  address: YextEntityField<AddressType>;
819
1052
  showGetDirections: boolean;
@@ -880,7 +1113,7 @@ type MapboxStaticProps = {
880
1113
  zoom?: number;
881
1114
  mapStyle?: string;
882
1115
  };
883
- declare const MapboxStaticMapComponent: ComponentConfig<MapboxStaticProps>;
1116
+ declare const MapboxStaticMap: ComponentConfig<MapboxStaticProps>;
884
1117
 
885
1118
  interface PhoneProps {
886
1119
  phone: YextEntityField<string>;
@@ -909,6 +1142,11 @@ interface DirectoryProps {
909
1142
  }
910
1143
  declare const Directory: ComponentConfig<DirectoryProps>;
911
1144
 
1145
+ type LocatorProps = {
1146
+ mapStyle?: string;
1147
+ };
1148
+ declare const LocatorComponent: ComponentConfig<LocatorProps>;
1149
+
912
1150
  type EventCardProps = {
913
1151
  card?: {
914
1152
  title: YextEntityField<string>;
@@ -921,18 +1159,20 @@ type EventCardProps = {
921
1159
  };
922
1160
  declare const EventCard: ComponentConfig<EventCardProps>;
923
1161
 
924
- type InsightCardProps = {
1162
+ type ProductCardProps = {
925
1163
  card?: {
926
- image: YextEntityField<ImageType>;
927
- title: YextEntityField<string>;
928
- category: YextEntityField<string>;
929
- date: YextEntityField<string>;
930
- description: YextEntityField<string>;
931
- cta: YextEntityField<CTAProps>;
1164
+ image?: ImageWrapperProps;
1165
+ heading?: YextEntityField<string>;
1166
+ category?: YextEntityField<string>;
1167
+ description?: YextEntityField<string>;
1168
+ cta?: YextEntityField<CTAProps>;
1169
+ };
1170
+ styles: {
1171
+ cardBackgroundColor?: BackgroundStyle;
932
1172
  };
933
1173
  collection?: YextCollection;
934
1174
  };
935
- declare const InsightCard: ComponentConfig<InsightCardProps>;
1175
+ declare const ProductCard: ComponentConfig<ProductCardProps>;
936
1176
 
937
1177
  interface PersonCardProps {
938
1178
  card?: {
@@ -950,6 +1190,19 @@ interface PersonCardProps {
950
1190
  }
951
1191
  declare const PersonCard: ComponentConfig<PersonCardProps>;
952
1192
 
1193
+ type InsightCardProps = {
1194
+ card?: {
1195
+ image: YextEntityField<ImageType>;
1196
+ title: YextEntityField<string>;
1197
+ category: YextEntityField<string>;
1198
+ date: YextEntityField<string>;
1199
+ description: YextEntityField<string>;
1200
+ cta: YextEntityField<CTAProps>;
1201
+ };
1202
+ collection?: YextCollection;
1203
+ };
1204
+ declare const InsightCard: ComponentConfig<InsightCardProps>;
1205
+
953
1206
  type TestimonialCardProps = {
954
1207
  card?: {
955
1208
  testimonial: YextEntityField<string>;
@@ -963,16 +1216,28 @@ type TestimonialCardProps = {
963
1216
  };
964
1217
  declare const TestimonialCard: ComponentConfig<TestimonialCardProps>;
965
1218
 
1219
+ type StaticMapSectionProps = {
1220
+ data: {
1221
+ apiKey: string;
1222
+ };
1223
+ liveVisibility: boolean;
1224
+ };
1225
+
966
1226
  interface PageSectionCategoryProps {
967
1227
  BreadcrumbsSection: BreadcrumbsSectionProps;
968
1228
  HeroSection: HeroSectionProps;
1229
+ EventSection: EventSectionProps;
969
1230
  CoreInfoSection: CoreInfoSectionProps;
1231
+ InsightSection: InsightSectionProps;
970
1232
  NearbyLocationsSection: NearbyLocationsSectionProps;
971
1233
  BannerSection: BannerSectionProps;
1234
+ ProductSection: ProductSectionProps;
972
1235
  PromoSection: PromoSectionProps;
973
1236
  PhotoGallerySection: PhotoGallerySectionProps;
974
- FAQsSection: FAQsSectionProps;
975
- SectionContainer: SectionContainerProps;
1237
+ TeamSection: TeamSectionProps;
1238
+ FAQSection: FAQSectionProps;
1239
+ StaticMapSection: StaticMapSectionProps;
1240
+ TestimonialSection: TestimonialSectionProps;
976
1241
  }
977
1242
  declare const PageSectionCategoryComponents: {
978
1243
  BreadcrumbsSection: _measured_puck.ComponentConfig<BreadcrumbsSectionProps>;
@@ -980,12 +1245,41 @@ declare const PageSectionCategoryComponents: {
980
1245
  CoreInfoSection: _measured_puck.ComponentConfig<CoreInfoSectionProps>;
981
1246
  NearbyLocationsSection: _measured_puck.ComponentConfig<NearbyLocationsSectionProps>;
982
1247
  BannerSection: _measured_puck.ComponentConfig<BannerSectionProps>;
983
- PromoSection: _measured_puck.ComponentConfig<PromoSectionProps>;
984
1248
  PhotoGallerySection: _measured_puck.ComponentConfig<PhotoGallerySectionProps>;
985
- FAQsSection: _measured_puck.ComponentConfig<FAQsSectionProps>;
986
- SectionContainer: _measured_puck.ComponentConfig<SectionContainerProps>;
1249
+ StaticMapSection: _measured_puck.ComponentConfig<StaticMapSectionProps>;
1250
+ EventSection: _measured_puck.ComponentConfig<EventSectionProps>;
1251
+ FAQSection: _measured_puck.ComponentConfig<FAQSectionProps>;
1252
+ InsightSection: _measured_puck.ComponentConfig<InsightSectionProps>;
1253
+ ProductSection: _measured_puck.ComponentConfig<ProductSectionProps>;
1254
+ PromoSection: _measured_puck.ComponentConfig<PromoSectionProps>;
1255
+ TeamSection: _measured_puck.ComponentConfig<TeamSectionProps>;
1256
+ TestimonialSection: _measured_puck.ComponentConfig<TestimonialSectionProps>;
987
1257
  };
988
1258
  declare const PageSectionCategory: (keyof PageSectionCategoryProps)[];
1259
+ interface OtherCategoryProps {
1260
+ Header: HeaderProps;
1261
+ Footer: FooterProps;
1262
+ }
1263
+ declare const OtherCategoryComponents: {
1264
+ Header: _measured_puck.ComponentConfig<HeaderProps>;
1265
+ Footer: _measured_puck.ComponentConfig<FooterProps>;
1266
+ };
1267
+ declare const OtherCategory: (keyof OtherCategoryProps)[];
1268
+ interface DirectoryCategoryProps {
1269
+ Directory: DirectoryProps;
1270
+ }
1271
+ declare const DirectoryCategoryComponents: {
1272
+ Directory: _measured_puck.ComponentConfig<DirectoryProps>;
1273
+ };
1274
+ declare const DirectoryCategory: (keyof DirectoryCategoryProps)[];
1275
+ interface LocatorCategoryProps {
1276
+ Locator: LocatorProps;
1277
+ }
1278
+ declare const LocatorCategoryComponents: {
1279
+ Locator: _measured_puck.ComponentConfig<LocatorProps>;
1280
+ };
1281
+ declare const LocatorCategory: (keyof LocatorCategoryProps)[];
1282
+ /** THE CATEGORIES BELOW ARE NO LONGER SUPPORTED */
989
1283
  interface LayoutBlockCategoryProps {
990
1284
  Collection: CollectionProps;
991
1285
  Flex: FlexProps;
@@ -999,15 +1293,15 @@ declare const LayoutBlockCategoryComponents: {
999
1293
  declare const LayoutBlockCategory: (keyof LayoutBlockCategoryProps)[];
1000
1294
  interface CardCategoryProps {
1001
1295
  EventCard: EventCardProps;
1002
- InsightCard: InsightCardProps;
1003
1296
  PersonCard: PersonCardProps;
1297
+ InsightCard: InsightCardProps;
1004
1298
  ProductCard: ProductCardProps;
1005
1299
  TestimonialCard: TestimonialCardProps;
1006
1300
  }
1007
1301
  declare const CardCategoryComponents: {
1008
1302
  EventCard: _measured_puck.ComponentConfig<EventCardProps>;
1009
- InsightCard: _measured_puck.ComponentConfig<InsightCardProps>;
1010
1303
  PersonCard: _measured_puck.ComponentConfig<PersonCardProps>;
1304
+ InsightCard: _measured_puck.ComponentConfig<InsightCardProps>;
1011
1305
  ProductCard: _measured_puck.ComponentConfig<ProductCardProps>;
1012
1306
  TestimonialCard: _measured_puck.ComponentConfig<TestimonialCardProps>;
1013
1307
  };
@@ -1041,22 +1335,6 @@ declare const ContentBlockCategoryComponents: {
1041
1335
  TextList: _measured_puck.ComponentConfig<TextListProps>;
1042
1336
  };
1043
1337
  declare const ContentBlockCategory: (keyof ContentBlockCategoryProps)[];
1044
- interface OtherCategoryProps {
1045
- Header: HeaderProps;
1046
- Footer: FooterProps;
1047
- }
1048
- declare const OtherCategoryComponents: {
1049
- Header: _measured_puck.ComponentConfig<HeaderProps>;
1050
- Footer: _measured_puck.ComponentConfig<FooterProps>;
1051
- };
1052
- declare const OtherCategory: (keyof OtherCategoryProps)[];
1053
- interface DirectoryCategoryProps {
1054
- Directory: DirectoryProps;
1055
- }
1056
- declare const DirectoryCategoryComponents: {
1057
- Directory: _measured_puck.ComponentConfig<DirectoryProps>;
1058
- };
1059
- declare const DirectoryCategory: (keyof DirectoryCategoryProps)[];
1060
1338
 
1061
1339
  type ExampleRepeatableItemProps = {
1062
1340
  text?: YextEntityField<string>;
@@ -1065,6 +1343,19 @@ type ExampleRepeatableItemProps = {
1065
1343
  };
1066
1344
  declare const ExampleRepeatableItemComponent: ComponentConfig<ExampleRepeatableItemProps>;
1067
1345
 
1346
+ type SectionContainerProps = {
1347
+ background?: BackgroundStyle;
1348
+ sectionHeading: {
1349
+ text: YextEntityField<string>;
1350
+ level: HeadingProps["level"];
1351
+ alignment: "left" | "right" | "center";
1352
+ };
1353
+ liveVisibility: boolean;
1354
+ };
1355
+ declare const SectionContainer: ComponentConfig<SectionContainerProps>;
1356
+
1357
+ declare const migrationRegistry: MigrationRegistry;
1358
+
1068
1359
  declare const defaultThemeConfig: ThemeConfig;
1069
1360
 
1070
- export { Address, type AddressProps, Background, type BackgroundProps, BackgroundProvider, type BackgroundStyle, BannerSection, type BannerSectionProps, BasicSelector, Body, type BodyProps, BodyText, type BodyTextProps, BorderRadiusSelector, BreadcrumbsSection, type BreadcrumbsSectionProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapper, type CTAWrapperProps, CardCategory, CardCategoryComponents, type CardCategoryProps, Collection, type CollectionProps, ContentBlockCategory, ContentBlockCategoryComponents, type ContentBlockCategoryProps, CoreInfoSection, type CoreInfoSectionProps, Directory, DirectoryCategory, DirectoryCategoryComponents, type DirectoryCategoryProps, type DirectoryProps, Editor, Emails, type EmailsProps, EntityField, EventCard, type EventCardProps, ExampleRepeatableItemComponent, type ExampleRepeatableItemProps, FAQsSection, type FAQsSectionProps, Flex, type FlexProps, type FontRegistry, FontSizeSelector, Footer, type FooterProps, GetDirections, type GetDirectionsProps, Grid, type GridProps, Header, type HeaderProps, Heading, type HeadingLevel, type HeadingProps, HeadingText, type HeadingTextProps, HeroSection, type HeroSectionProps, HoursStatus, type HoursStatusProps, HoursTable, type HoursTableProps, Image, type ImageProps, ImageWrapper, type ImageWrapperProps, InsightCard, type InsightCardProps, LayoutBlockCategory, LayoutBlockCategoryComponents, type LayoutBlockCategoryProps, MapboxStaticMapComponent as MapboxStaticMap, type MapboxStaticProps, MaybeLink, type MaybeLinkProps, NearbyLocationsSection, type NearbyLocationsSectionProps, OptionalNumberField, type OptionalNumberFieldProps, OtherCategory, OtherCategoryComponents, type OtherCategoryProps, PageSection, PageSectionCategory, PageSectionCategoryComponents, type PageSectionCategoryProps, type PageSectionProps, PersonCard, type PersonCardProps, Phone, PhoneAtom, type PhoneAtomProps, type PhoneProps, PhotoGallerySection, type PhotoGallerySectionProps, ProductCard, type ProductCardProps, PromoSection, type PromoSectionProps, type RenderYextEntityFieldSelectorProps, SectionContainer, type SectionContainerProps, SpacingSelector, TailwindConfigContext, TemplatePropsContext, TestimonialCard, type TestimonialCardProps, TextList, type TextListProps, type ThemeConfig, ThemeOptions, VisibilityWrapper, VisualEditorProvider, type YextCollection, YextCollectionSubfieldSelector, type YextEntityField, YextEntityFieldSelector, YextField, type YextFieldDefinition, type YextSchemaField, applyAnalytics, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, fetchNearbyLocations, getFontWeightOptions, getFontWeightOverrideOptions, getPageMetadata, handleResolveFieldsForCollections, headingVariants, normalizeSlug, resolveYextEntityField, resolveYextSubfield, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, useTemplateProps, validateSlug };
1361
+ export { Address, type AddressProps, Background, type BackgroundProps, BackgroundProvider, type BackgroundStyle, BannerSection, type BannerSectionProps, BasicSelector, Body, type BodyProps, BodyText, type BodyTextProps, BorderRadiusSelector, BreadcrumbsSection, type BreadcrumbsSectionProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapper, type CTAWrapperProps, CardCategory, CardCategoryComponents, type CardCategoryProps, Collection, type CollectionProps, type ComponentField, ComponentFields, ContentBlockCategory, ContentBlockCategoryComponents, type ContentBlockCategoryProps, CoreInfoSection, type CoreInfoSectionProps, Directory, DirectoryCategory, DirectoryCategoryComponents, type DirectoryCategoryProps, type DirectoryProps, Editor, Emails, type EmailsProps, EntityField, EventCard, type EventCardProps, EventSection, type EventSectionProps, type EventSectionType, type EventStruct, ExampleRepeatableItemComponent, type ExampleRepeatableItemProps, FAQSection, type FAQSectionProps, type FAQSectionType, type FAQStruct, Flex, type FlexProps, type FontRegistry, FontSizeSelector, Footer, type FooterProps, GetDirections, type GetDirectionsProps, Grid, type GridProps, Header, type HeaderProps, Heading, type HeadingLevel, type HeadingProps, HeadingText, type HeadingTextProps, HeroSection, type HeroSectionProps, type HeroSectionType, HoursStatus, type HoursStatusProps, HoursTable, type HoursTableProps, Image, type ImageProps, ImageWrapper, type ImageWrapperProps, InsightCard, type InsightCardProps, InsightSection, type InsightSectionProps, type InsightSectionType, type InsightStruct, LayoutBlockCategory, LayoutBlockCategoryComponents, type LayoutBlockCategoryProps, LocatorCategory, LocatorCategoryComponents, type LocatorCategoryProps, LocatorComponent, type LocatorProps, MapboxStaticMap, type MapboxStaticProps, MaybeLink, type MaybeLinkProps, MaybeRTF, type MaybeRTFProps, type Migration, type MigrationAction, type MigrationRegistry, NearbyLocationsSection, type NearbyLocationsSectionProps, OptionalNumberField, type OptionalNumberFieldProps, OtherCategory, OtherCategoryComponents, type OtherCategoryProps, PageSection, PageSectionCategory, PageSectionCategoryComponents, type PageSectionCategoryProps, type PageSectionProps, PersonCard, type PersonCardProps, type PersonStruct, Phone, PhoneAtom, type PhoneAtomProps, type PhoneProps, PhotoGallerySection, type PhotoGallerySectionProps, ProductCard, type ProductCardProps, ProductSection, type ProductSectionProps, type ProductSectionType, type ProductStruct, PromoSection, type PromoSectionProps, type PromoSectionType, type RTF2, type RenderYextEntityFieldSelectorProps, SectionContainer, type SectionContainerProps, SpacingSelector, TailwindConfigContext, TeamSection, type TeamSectionProps, type TeamSectionType, TemplatePropsContext, TestimonialCard, type TestimonialCardProps, TestimonialSection, type TestimonialSectionProps, type TestimonialSectionType, type TestimonialStruct, TextList, type TextListProps, type ThemeConfig, ThemeOptions, Timestamp, TimestampOption, type TimestampProps, VisibilityWrapper, VisualEditorProvider, type YextCollection, YextCollectionSubfieldSelector, type YextEntityField, YextEntityFieldSelector, YextField, type YextFieldDefinition, type YextSchemaField, type YextStructEntityField, YextStructFieldSelector, applyAnalytics, applyHeaderScript, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, createSearchAnalyticsConfig, createSearchHeadlessConfig, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, fetchNearbyLocations, getFontWeightOptions, getFontWeightOverrideOptions, getPageMetadata, handleResolveFieldsForCollections, headingVariants, migrate, migrationRegistry, normalizeSlug, resolveYextEntityField, resolveYextStructField, resolveYextSubfield, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, useTemplateProps, validateSlug };