@yext/visual-editor 0.0.58 → 0.0.59

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 CHANGED
@@ -106,6 +106,7 @@ type StreamDocument = {
106
106
  name?: string;
107
107
  visualEditorConfig?: string;
108
108
  isPrimaryLocale?: boolean;
109
+ entityPageSetUrlTemplates?: string;
109
110
  };
110
111
  };
111
112
  declare const applyTheme: (document: StreamDocument, themeConfig: ThemeConfig, base?: string) => string;
@@ -150,9 +151,23 @@ type ComboboxOptionGroup = {
150
151
  options: ComboboxOption[];
151
152
  };
152
153
 
154
+ /**
155
+ * Applies a theme color as the background of a page section
156
+ * @ai This value MUST be one of the following
157
+ * { bgColor: "bg-white", textColor: "text-black" }
158
+ * { bgColor: "bg-palette-primary-light", textColor: "text-black", isDarkBackground: false }
159
+ * { bgColor: "bg-palette-secondary-light", textColor: "text-black", isDarkBackground: false }
160
+ * { bgColor: "bg-palette-tertiary-light", textColor: "text-black", isDarkBackground: false }
161
+ * { bgColor: "bg-palette-quaternary-light", textColor: "text-black", isDarkBackground: false }
162
+ * { bgColor: "bg-palette-primary-dark", textColor: "text-white", isDarkBackground: true }
163
+ * { bgColor: "bg-palette-secondary-dark", textColor: "text-white", isDarkBackground: true }
164
+ */
153
165
  type BackgroundStyle = {
166
+ /** The tailwind background color class */
154
167
  bgColor: string;
168
+ /** The tailwind text color class */
155
169
  textColor: string;
170
+ /** Whether the background color is dark (for adjusting other styles based on background) */
156
171
  isDarkBackground?: boolean;
157
172
  };
158
173
  type BackgroundOption = {
@@ -160,6 +175,7 @@ type BackgroundOption = {
160
175
  value: BackgroundStyle;
161
176
  };
162
177
  declare const backgroundColors: Record<string, BackgroundOption>;
178
+ /** Corresponds to the different semantic heading levels */
163
179
  type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
164
180
  declare const defaultThemeTailwindExtensions: {
165
181
  colors: {
@@ -366,6 +382,8 @@ type RootConfig = {
366
382
  };
367
383
  declare function getPageMetadata(document: Record<string, any>): RootConfig;
368
384
 
385
+ declare const getSchema: (document: Record<string, any>) => string;
386
+
369
387
  type MigrationAction = {
370
388
  action: "removed";
371
389
  } | {
@@ -428,11 +446,23 @@ type EntityFieldTypesFilter$1 = {
428
446
  type RenderEntityFieldFilter<T extends Record<string, any>> = EntityFieldTypesFilter$1 & EitherOrNeither<AllowList<T>, DisallowList<T>>;
429
447
  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}`;
430
448
 
449
+ /** Represents data that can either be from the Yext Knowledge Graph or statically defined */
431
450
  type YextEntityField<T> = {
451
+ /** The api name of the Yext field */
432
452
  field: string;
453
+ /** The static value of the field */
433
454
  constantValue: T;
455
+ /** Whether to use the Yext field or the constant value */
434
456
  constantValueEnabled?: boolean;
457
+ /**
458
+ * Whether the field can be translated or not.
459
+ * @ai always omit this property
460
+ */
435
461
  disallowTranslation?: boolean;
462
+ /**
463
+ * Filter the embedded field input to this type.
464
+ * @ai always omit this property
465
+ */
436
466
  selectedType?: string;
437
467
  };
438
468
  /**
@@ -468,10 +498,15 @@ type EntityFieldTypesFilter = {
468
498
  type: StructEntityFieldTypes;
469
499
  };
470
500
  type StructEntityFieldTypes = "type.hero_section" | "type.promo_section";
501
+ /** Represents a Yext struct entity field (hero or promo) with support for static values and overrides. */
471
502
  type YextStructEntityField<T extends Record<string, any> = any> = {
503
+ /** The Yext Knowledge Graph field api name */
472
504
  field: string;
505
+ /** The static value for the field */
473
506
  constantValue: T;
507
+ /** Whether to use the static value instead of the entity field value */
474
508
  constantValueEnabled?: boolean;
509
+ /** A map of subfield names to whether to use the static value for that subfield */
475
510
  constantValueOverride: {
476
511
  [K in keyof T]: boolean;
477
512
  };
@@ -485,6 +520,7 @@ declare const YextStructFieldSelector: <U extends Record<string, any>>(props: St
485
520
 
486
521
  declare const resolveYextEntityField: <T>(streamDocument: any, entityField: YextEntityField<T>, locale?: string) => T | undefined;
487
522
  declare const resolveYextStructField: <T extends Record<string, any>>(streamDocument: any, entityField: YextStructEntityField<T>, locale?: string) => T | undefined;
523
+ declare const resolveSchemaJson: (streamDocument: StreamDocument, schema: string) => string;
488
524
 
489
525
  /**
490
526
  * Resolves a URL template using the provided stream document, locale, and relativePrefixToRoot.
@@ -645,11 +681,26 @@ type AssetVideo = {
645
681
  id: string;
646
682
  };
647
683
 
684
+ /**
685
+ * A pages-components CTA with a translatable label and link
686
+ */
648
687
  type TranslatableCTA = Omit<CTA$1, "label" | "link"> & {
688
+ /** The text to display in the CTA */
649
689
  label: TranslatableString;
690
+ /** The link the for the CTA */
650
691
  link: TranslatableString;
651
692
  };
693
+ /** Enhanced CTA options */
652
694
  type EnhancedTranslatableCTA = TranslatableCTA & {
695
+ /**
696
+ * The type of CTA button to display.
697
+ * textAndLink is a standard button
698
+ * getDirections is a button that opens a map based on the coordinate field
699
+ * presetImage uses a preset image such as app store or food delivery logos for the button
700
+ * @defaultValue "textAndLink"
701
+ * @ai If the CTA is for getting directions, use "getDirections" and provide the coordinate field.
702
+ * If the CTA is for app downloads or food delivery, use "presetImage" and select the appropriate presetImageType. Otherwise, use "textAndLink".
703
+ */
653
704
  ctaType?: "textAndLink" | "getDirections" | "presetImage";
654
705
  coordinate?: {
655
706
  latitude: number;
@@ -657,80 +708,167 @@ type EnhancedTranslatableCTA = TranslatableCTA & {
657
708
  };
658
709
  presetImageType?: PresetImageType;
659
710
  };
711
+ /** Preset image types for CTA buttons - app store or food delivery logos */
660
712
  type PresetImageType = "app-store" | "google-play" | "galaxy-store" | "app-gallery" | "uber-eats";
713
+ /** Data for the HeroSection */
661
714
  type HeroSectionType = {
715
+ /**
716
+ * The image to show in the hero section
717
+ * @ai Always use ImageType
718
+ */
662
719
  image?: ImageType | AssetImageType;
720
+ /** The first CTA button for the hero section */
663
721
  primaryCta?: EnhancedTranslatableCTA;
722
+ /** The second CTA button for the hero section */
664
723
  secondaryCta?: EnhancedTranslatableCTA;
665
724
  };
725
+ /** Data for the PromoSection */
666
726
  type PromoSectionType = {
727
+ /**
728
+ * The image or video to show in the promo
729
+ * @ai Always use ImageType
730
+ */
667
731
  image?: ImageType | AssetImageType | AssetVideo;
732
+ /** The main text to display in the promo */
668
733
  title?: TranslatableString;
734
+ /** The sub text to display in the promo */
669
735
  description?: TranslatableRichText;
736
+ /** The CTA button for the promo */
670
737
  cta: EnhancedTranslatableCTA;
671
738
  };
739
+ /** Data for the ProductSection */
672
740
  type ProductSectionType = {
673
741
  products: Array<ProductStruct>;
674
742
  };
743
+ /** An individual product in the ProductSection */
675
744
  type ProductStruct = {
745
+ /**
746
+ * The product's image
747
+ * @ai Always use ImageType
748
+ */
676
749
  image?: ImageType | AssetImageType;
750
+ /** The product's name */
677
751
  name?: TranslatableString;
752
+ /** The product's description */
678
753
  description?: TranslatableRichText;
754
+ /**
755
+ * The product's category
756
+ * @ai This should not be more than a few words
757
+ */
679
758
  category?: TranslatableString;
759
+ /** The product's CTA */
680
760
  cta: EnhancedTranslatableCTA;
681
761
  };
762
+ /** Data for the EventSection */
682
763
  type EventSectionType = {
683
764
  events: Array<EventStruct>;
684
765
  };
766
+ /** An individual event in the EventsSection */
685
767
  type EventStruct = {
768
+ /**
769
+ * An image representing the event
770
+ * @ai Always use ImageType
771
+ */
686
772
  image?: ImageType | AssetImageType;
773
+ /** The event's title */
687
774
  title?: TranslatableString;
775
+ /** A UTC string for event's date and time (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ) */
688
776
  dateTime?: string;
777
+ /** The event's description */
689
778
  description?: TranslatableRichText;
779
+ /** The event's CTA */
690
780
  cta: EnhancedTranslatableCTA;
691
781
  };
782
+ /** Data for the FAQSection */
692
783
  type FAQSectionType = {
693
784
  faqs: Array<FAQStruct>;
694
785
  };
786
+ /** An individual FAQ */
695
787
  type FAQStruct = {
788
+ /** The question (always visible on the page) */
696
789
  question: TranslatableString;
790
+ /** The answer (visible when the question is clicked) */
697
791
  answer: TranslatableRichText;
698
792
  };
793
+ /** Data for the TestimonialSection */
699
794
  type TestimonialSectionType = {
700
795
  testimonials: Array<TestimonialStruct>;
701
796
  };
797
+ /** An individual testimonial for the TestimonialSection */
702
798
  type TestimonialStruct = {
799
+ /** The testimonial text */
703
800
  description?: TranslatableRichText;
801
+ /** The name of the person who contributed the testimonial */
704
802
  contributorName?: TranslatableString;
803
+ /** A UTC string for the contribution's date and time (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ) */
705
804
  contributionDate?: string;
706
805
  };
806
+ /** Data for the InsightSection */
707
807
  type InsightSectionType = {
708
808
  insights: Array<InsightStruct>;
709
809
  };
810
+ /** An individual insight for the InsightSection */
710
811
  type InsightStruct = {
812
+ /**
813
+ * An image representing the insight
814
+ * @ai Always use ImageType
815
+ */
711
816
  image?: ImageType | AssetImageType;
817
+ /** The insight's title */
712
818
  name?: TranslatableString;
819
+ /**
820
+ * The insight's category
821
+ * @ai This should not be more than a few words
822
+ */
713
823
  category?: TranslatableString;
824
+ /** A UTC string for the insight's publish time (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ) */
714
825
  publishTime?: string;
826
+ /** The insight's description */
715
827
  description?: TranslatableRichText;
828
+ /** The insight's CTA */
716
829
  cta: EnhancedTranslatableCTA;
717
830
  };
831
+ /** Data for the TeamSection */
718
832
  type TeamSectionType = {
719
833
  people: Array<PersonStruct>;
720
834
  };
835
+ /** An individual person in the TeamSection */
721
836
  type PersonStruct = {
837
+ /**
838
+ * The person's headshot image
839
+ * @ai Always use ImageType
840
+ */
722
841
  headshot?: ImageType | AssetImageType;
842
+ /** The person's name */
723
843
  name?: TranslatableString;
844
+ /** The person's job title */
724
845
  title?: TranslatableString;
846
+ /** The person's phone number. Format: +1234567890 */
725
847
  phoneNumber?: string;
848
+ /** The person's email address */
726
849
  email?: string;
850
+ /** A call to action for the person */
727
851
  cta: EnhancedTranslatableCTA;
728
852
  };
853
+ /** Represents a translatable string. The key is the locale (en, es, fr), and the value is the localized string. */
729
854
  type LocalizedValues = {
730
855
  hasLocalizedValue: "true";
731
856
  } & Record<string, string>;
857
+ /**
858
+ * A string that can be translated for different locales.
859
+ * @ai This should always be the LocalizedValues type
860
+ */
732
861
  type TranslatableString = string | LocalizedValues;
862
+ /**
863
+ * Rich text that can be translated for different locales.
864
+ * @ai This should always be Record<string, RichText>
865
+ */
733
866
  type TranslatableRichText = (string | RichText) | Record<string, string | RichText>;
867
+ /**
868
+ * A rich text object with HTML and JSON (LexicalRichText) representations.
869
+ * The HTML representation is used on the live page.
870
+ * The JSON representation is used in the editor for rich text editing.
871
+ */
734
872
  type RichText = {
735
873
  html?: string;
736
874
  json?: string;
@@ -824,8 +962,9 @@ type EntityFieldProps = {
824
962
  constantValueEnabled?: boolean;
825
963
  children: React__default.ReactNode;
826
964
  fullHeight?: boolean;
965
+ className?: string;
827
966
  };
828
- declare const EntityField: ({ displayName, fieldId, constantValueEnabled, children, fullHeight, }: EntityFieldProps) => string | number | boolean | Iterable<React__default.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
967
+ declare const EntityField: ({ displayName, fieldId, constantValueEnabled, children, fullHeight, className, }: EntityFieldProps) => string | number | boolean | Iterable<React__default.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
829
968
 
830
969
  type OptionalNumberFieldProps = {
831
970
  fieldLabel: string;
@@ -1007,6 +1146,16 @@ type CTAProps = {
1007
1146
  alwaysHideCaret?: boolean;
1008
1147
  ariaLabel?: string;
1009
1148
  };
1149
+ /**
1150
+ * The different visual variants for CTA buttons.
1151
+ * "primary": the default button style. A button filled with the primary theme color.
1152
+ * "secondary": an outlined button style. A button with a border in the primary theme color and transparent background.
1153
+ * "link": a text link style. A button with no border or background, just a hyperlink in the link theme color.
1154
+ * "directoryLink": a text link style optimized for directory listings.
1155
+ * "headerFooterMainLink": a text link style optimized for main links in the header and footer.
1156
+ * "headerFooterSecondaryLink": a text link style optimized for secondary links in the header and footer.
1157
+ */
1158
+ type CTAVariant = ButtonProps["variant"];
1010
1159
  declare const CTA: (props: CTAProps) => react_jsx_runtime_js.JSX.Element | null;
1011
1160
 
1012
1161
  declare const headingVariants: (props?: ({
@@ -1039,7 +1188,7 @@ type MaybeLinkProps = {
1039
1188
  children?: React.ReactNode;
1040
1189
  className?: string;
1041
1190
  eventName?: string;
1042
- variant?: CTAProps["variant"];
1191
+ variant?: CTAVariant;
1043
1192
  alwaysHideCaret?: boolean;
1044
1193
  };
1045
1194
  declare const MaybeLink: (props: MaybeLinkProps) => react_jsx_runtime.JSX.Element;
@@ -1171,13 +1320,17 @@ interface GridProps extends layoutProps {
1171
1320
  };
1172
1321
  }
1173
1322
 
1323
+ /** Props for the Address component */
1174
1324
  interface AddressProps {
1175
1325
  data: {
1326
+ /** The address data to display. */
1176
1327
  address: YextEntityField<AddressType>;
1177
1328
  };
1178
1329
  styles: {
1330
+ /** Whether to include a "Get Directions" CTA to Google Maps */
1179
1331
  showGetDirectionsLink: boolean;
1180
- ctaVariant: CTAProps["variant"];
1332
+ /** The variant of the get directions button */
1333
+ ctaVariant: CTAVariant;
1181
1334
  };
1182
1335
  }
1183
1336
 
@@ -1192,8 +1345,8 @@ type BodyTextProps = {
1192
1345
 
1193
1346
  interface CTAWrapperProps {
1194
1347
  entityField: YextEntityField<EnhancedTranslatableCTA>;
1195
- variant: CTAProps["variant"];
1196
- className?: CTAProps["className"];
1348
+ variant: CTAVariant;
1349
+ className?: string;
1197
1350
  }
1198
1351
 
1199
1352
  interface EmailsProps {
@@ -1203,7 +1356,7 @@ interface EmailsProps {
1203
1356
 
1204
1357
  type GetDirectionsProps = {
1205
1358
  coordinate: YextEntityField<Coordinate>;
1206
- variant: CTAProps["variant"];
1359
+ variant: CTAVariant;
1207
1360
  };
1208
1361
 
1209
1362
  type HeadingTextProps = {
@@ -1211,14 +1364,23 @@ type HeadingTextProps = {
1211
1364
  level: HeadingProps["level"];
1212
1365
  };
1213
1366
 
1367
+ /** Props for the HoursTable component. */
1214
1368
  interface HoursTableProps {
1215
1369
  data: {
1370
+ /** The hours data to display in the table. */
1216
1371
  hours: YextEntityField<HoursType>;
1217
1372
  };
1218
1373
  styles: {
1374
+ /**
1375
+ * The day of week to display at the top of the table.
1376
+ * If set to "today", the current day will dynamically be at the top.
1377
+ */
1219
1378
  startOfWeek: keyof DayOfWeekNames | "today";
1379
+ /** If true, consecutive days that have the same hours will be collapsed into one row. */
1220
1380
  collapseDays: boolean;
1381
+ /** Shows the showAdditionalHoursText subfield from the hours field, if present */
1221
1382
  showAdditionalHoursText: boolean;
1383
+ /** Alignment of the text in the hours table */
1222
1384
  alignment: "items-start" | "items-center";
1223
1385
  };
1224
1386
  }
@@ -1232,7 +1394,9 @@ interface HoursStatusProps {
1232
1394
  showDayNames?: boolean;
1233
1395
  }
1234
1396
 
1397
+ /** Props for displaying an image */
1235
1398
  interface ImageStylingProps {
1399
+ /** The aspect ratio of the image */
1236
1400
  aspectRatio: number;
1237
1401
  width?: number;
1238
1402
  }
@@ -1247,17 +1411,22 @@ interface ImageWrapperProps {
1247
1411
  type MapboxStaticProps = {
1248
1412
  apiKey: string;
1249
1413
  coordinate: YextEntityField<Coordinate>;
1414
+ mapStyle: string;
1250
1415
  zoom?: number;
1251
- mapStyle?: string;
1252
1416
  };
1253
1417
 
1418
+ /** The props for the Phone component */
1254
1419
  interface PhoneProps {
1255
1420
  data: {
1421
+ /** The phone number data to display */
1256
1422
  number: YextEntityField<string>;
1423
+ /** The text to display before the phone number */
1257
1424
  label: TranslatableString;
1258
1425
  };
1259
1426
  styles: {
1427
+ /** Whether to format the phone number like a domestic or international number */
1260
1428
  phoneFormat: "domestic" | "international";
1429
+ /** Whether to make the phone number a clickable link */
1261
1430
  includePhoneHyperlink: boolean;
1262
1431
  };
1263
1432
  }
@@ -1984,7 +2153,14 @@ interface LocatorProps {
1984
2153
  * If 'true', displays a button to filter for locations that are currently open.
1985
2154
  * @defaultValue false
1986
2155
  */
1987
- openNowButton?: boolean;
2156
+ openNowButton: boolean;
2157
+ /**
2158
+ * The starting location for the map.
2159
+ */
2160
+ mapStartingLocation?: {
2161
+ latitude: string;
2162
+ longitude: string;
2163
+ };
1988
2164
  }
1989
2165
  /**
1990
2166
  * Available on Locator templates.
@@ -2104,12 +2280,20 @@ interface ExpandedFooterData {
2104
2280
  tiktokLink: string;
2105
2281
  youtubeLink: string;
2106
2282
  xLink: string;
2283
+ /** Small images to show under the main logo */
2107
2284
  utilityImages: {
2108
2285
  image: AssetImageType;
2109
2286
  linkTarget?: string;
2110
2287
  }[];
2288
+ /**
2289
+ * Whether to expand the footer to show additional link categories.
2290
+ * expandedFooter: false uses a single row of footerLinks.
2291
+ * expandedFooter: true uses multiple columns of expandedFooterLinks.
2292
+ */
2111
2293
  expandedFooter: boolean;
2294
+ /** Links for the default footer */
2112
2295
  footerLinks: TranslatableCTA[];
2296
+ /** Links for the expanded footer */
2113
2297
  expandedFooterLinks: {
2114
2298
  label: TranslatableString;
2115
2299
  links: TranslatableCTA[];
@@ -2117,6 +2301,7 @@ interface ExpandedFooterData {
2117
2301
  };
2118
2302
  /** Content for the secondary header bar. */
2119
2303
  secondaryFooter: {
2304
+ /** Whether to hide or show the secondary footer */
2120
2305
  show: boolean;
2121
2306
  copyrightMessage: TranslatableString;
2122
2307
  secondaryFooterLinks: TranslatableCTA[];
@@ -2194,17 +2379,26 @@ declare const Header: ComponentConfig<{
2194
2379
  interface ExpandedHeaderData {
2195
2380
  /** Content for the main primary header bar. */
2196
2381
  primaryHeader: {
2382
+ /** The main logo (top left) */
2197
2383
  logo: AssetImageType;
2384
+ /** The links to display in the primary header */
2198
2385
  links: TranslatableCTA[];
2386
+ /** Content for the first CTA (top right) */
2199
2387
  primaryCTA?: TranslatableCTA;
2388
+ /** Whether to show or hide the primary CTA */
2200
2389
  showPrimaryCTA: boolean;
2390
+ /** Content for the second CTA (top right) */
2201
2391
  secondaryCTA?: TranslatableCTA;
2392
+ /** Whether to show or hide the secondary CTA */
2202
2393
  showSecondaryCTA: boolean;
2203
2394
  };
2204
- /** Content for the secondary header (top bar). */
2395
+ /** Content for the secondary header (above the main header). */
2205
2396
  secondaryHeader: {
2397
+ /** Whether to show or hide the secondary header */
2206
2398
  show: boolean;
2399
+ /** Whether to include the locale dropdown for multi-locale pages */
2207
2400
  showLanguageDropdown: boolean;
2401
+ /** The links to display in the secondary header */
2208
2402
  secondaryLinks: TranslatableCTA[];
2209
2403
  };
2210
2404
  }
@@ -2213,8 +2407,8 @@ interface ExpandedHeaderStyles {
2213
2407
  primaryHeader: {
2214
2408
  logo: ImageStylingProps;
2215
2409
  backgroundColor?: BackgroundStyle;
2216
- primaryCtaVariant: CTAProps["variant"];
2217
- secondaryCtaVariant: CTAProps["variant"];
2410
+ primaryCtaVariant: CTAVariant;
2411
+ secondaryCtaVariant: CTAVariant;
2218
2412
  };
2219
2413
  /** Styling for the secondary header (top bar). */
2220
2414
  secondaryHeader: {
@@ -2483,19 +2677,27 @@ declare const BreadcrumbsSection: ComponentConfig<{
2483
2677
  interface CoreInfoData {
2484
2678
  /** Content for the "Information" column. */
2485
2679
  info: {
2680
+ /** The heading at the top of the left column */
2486
2681
  headingText: YextEntityField<TranslatableString>;
2682
+ /** The address of the entity */
2487
2683
  address: YextEntityField<AddressType>;
2684
+ /** The phone number for the entity */
2488
2685
  phoneNumbers: Array<PhoneProps["data"]>;
2686
+ /** Emails associated with the entity */
2489
2687
  emails: YextEntityField<string[]>;
2490
2688
  };
2491
2689
  /** Content for the "Hours" column. */
2492
2690
  hours: {
2691
+ /** The heading at the top of the middle column */
2493
2692
  headingText: YextEntityField<TranslatableString>;
2693
+ /** The hours for the entity */
2494
2694
  hours: YextEntityField<HoursType>;
2495
2695
  };
2496
2696
  /** Content for the "Services" column. */
2497
2697
  services: {
2698
+ /** The heading at the top of the right column */
2498
2699
  headingText: YextEntityField<TranslatableString>;
2700
+ /** A text list, often of services the entity provides */
2499
2701
  servicesList: YextEntityField<TranslatableString[]>;
2500
2702
  };
2501
2703
  }
@@ -2566,14 +2768,21 @@ interface EventStyles {
2566
2768
  backgroundColor?: BackgroundStyle;
2567
2769
  /** Styling for the heading. */
2568
2770
  heading: {
2771
+ /** The h tag level of the section heading */
2569
2772
  level: HeadingLevel;
2773
+ /** Alignment of the event section heading */
2570
2774
  align: "left" | "center" | "right";
2571
2775
  };
2572
2776
  /** Styling for all the cards. */
2573
2777
  cards: {
2778
+ /** The h tag level of each event card's title */
2574
2779
  headingLevel: HeadingLevel;
2780
+ /** The background color of each event card */
2575
2781
  backgroundColor?: BackgroundStyle;
2576
- ctaVariant: CTAProps["variant"];
2782
+ /** The CTA variant to use in each event card */
2783
+ ctaVariant: CTAVariant;
2784
+ /** Whether to truncate the event description text */
2785
+ truncateDescription: boolean;
2577
2786
  };
2578
2787
  }
2579
2788
  interface EventSectionProps {
@@ -2658,12 +2867,12 @@ interface HeroStyles {
2658
2867
  * The visual style variant for the primary call-to-action button.
2659
2868
  * @defaultValue primary
2660
2869
  */
2661
- primaryCTA: CTAProps["variant"];
2870
+ primaryCTA: CTAVariant;
2662
2871
  /**
2663
2872
  * The visual style variant for the secondary call-to-action button.
2664
2873
  * @defaultValue secondary
2665
2874
  */
2666
- secondaryCTA: CTAProps["variant"];
2875
+ secondaryCTA: CTAVariant;
2667
2876
  /**
2668
2877
  * Styling options for the hero image.
2669
2878
  * Classic variant: aspect ratio (ratios 4:1, 3:1, 2:1, and 9:16 are not supported) and height.
@@ -2745,14 +2954,19 @@ interface InsightStyles {
2745
2954
  backgroundColor?: BackgroundStyle;
2746
2955
  /** Styling for the main section heading. */
2747
2956
  heading: {
2957
+ /** The h tag level of the section heading */
2748
2958
  level: HeadingLevel;
2959
+ /** Alignment of the insight section heading */
2749
2960
  align: "left" | "center" | "right";
2750
2961
  };
2751
2962
  /** Styling for the individual insight cards. */
2752
2963
  cards: {
2964
+ /** The h tag level of each insight card's title */
2753
2965
  headingLevel: HeadingLevel;
2966
+ /** The background color of each insight card */
2754
2967
  backgroundColor?: BackgroundStyle;
2755
- ctaVariant: CTAProps["variant"];
2968
+ /** The CTA variant to use in each insight card */
2969
+ ctaVariant: CTAVariant;
2756
2970
  };
2757
2971
  }
2758
2972
  interface InsightSectionProps {
@@ -2834,9 +3048,12 @@ interface NearbyLocationsStyles {
2834
3048
  phoneNumberLink: boolean;
2835
3049
  /** Styling for the hours display on each card. */
2836
3050
  hours: {
3051
+ /** Whether to display the current status ("Open Now" or "Closed") */
2837
3052
  showCurrentStatus: boolean;
2838
3053
  timeFormat?: "12h" | "24h";
3054
+ /** How to format the days of the week (short:Mon, long:Monday) */
2839
3055
  dayOfWeekFormat?: "short" | "long";
3056
+ /** Whether to include the day of the week */
2840
3057
  showDayNames?: boolean;
2841
3058
  };
2842
3059
  }
@@ -2894,9 +3111,12 @@ interface ProductStyles {
2894
3111
  };
2895
3112
  /** Styling for the individual product cards. */
2896
3113
  cards: {
3114
+ /** The h tag level of each product card's title */
2897
3115
  headingLevel: HeadingLevel;
3116
+ /** The background color of each product card */
2898
3117
  backgroundColor?: BackgroundStyle;
2899
- ctaVariant: CTAProps["variant"];
3118
+ /** The CTA variant to use in each product card */
3119
+ ctaVariant: CTAVariant;
2900
3120
  };
2901
3121
  }
2902
3122
  interface ProductSectionProps {
@@ -2950,7 +3170,7 @@ interface PromoStyles {
2950
3170
  * The visual style variant for the call-to-action button.
2951
3171
  * @defaultValue 'primary'
2952
3172
  */
2953
- ctaVariant: CTAProps["variant"];
3173
+ ctaVariant: CTAVariant;
2954
3174
  /** Styling for the promo's title. */
2955
3175
  heading: {
2956
3176
  level: HeadingLevel;
@@ -3187,7 +3407,7 @@ interface TeamStyles {
3187
3407
  cards: {
3188
3408
  headingLevel: HeadingLevel;
3189
3409
  backgroundColor?: BackgroundStyle;
3190
- ctaVariant: CTAProps["variant"];
3410
+ ctaVariant: CTAVariant;
3191
3411
  };
3192
3412
  }
3193
3413
  interface TeamSectionProps {
@@ -3232,6 +3452,11 @@ interface StaticMapStyles {
3232
3452
  * @defaultValue Background Color 1
3233
3453
  */
3234
3454
  backgroundColor?: BackgroundStyle;
3455
+ /**
3456
+ * The style of the map to be displayed.
3457
+ * @defaultValue Default (streets-v12)
3458
+ */
3459
+ mapStyle: string;
3235
3460
  }
3236
3461
  interface StaticMapSectionProps {
3237
3462
  /**
@@ -4086,4 +4311,4 @@ declare const addHeadingAlignmentMigration: Migration;
4086
4311
 
4087
4312
  declare const defaultThemeConfig: ThemeConfig;
4088
4313
 
4089
- export { AdvancedCoreInfoCategory, AdvancedCoreInfoCategoryComponents, type AdvancedCoreInfoCategoryProps, type AggregateRating, type AssetImageType, type AssetVideo, Background, type BackgroundProps, BackgroundProvider, type BackgroundStyle, type BannerData, BannerSection, type BannerSectionProps, type BannerStyles, BasicSelector, Body, type BodyProps, type BreadcrumbsData, BreadcrumbsSection, type BreadcrumbsSectionProps, type BreadcrumbsStyles, Button, type ButtonProps, CTA, type CTAProps, CodeField, type CodeFieldProps, type ComponentField, ComponentFields, type CoreInfoData, CoreInfoSection, type CoreInfoSectionProps, type CoreInfoStyles, CustomCodeSection, type CustomCodeSectionProps, DeprecatedCategory, DeprecatedCategoryComponents, type DeprecatedCategoryProps, Directory, DirectoryCategory, DirectoryCategoryComponents, type DirectoryCategoryProps, type DirectoryConfigProps, type DirectoryData, type DirectoryProps, type DirectoryStyles, Editor, EmbeddedFieldStringInput, type EnhancedTranslatableCTA, EntityField, type EventData, EventSection, type EventSectionProps, type EventSectionType, type EventStruct, type EventStyles, ExpandedFooter, type ExpandedFooterData, type ExpandedFooterProps, type ExpandedFooterStyles, ExpandedHeader, type ExpandedHeaderData, type ExpandedHeaderProps, type ExpandedHeaderStyles, type FAQData, FAQSection, type FAQSectionProps, type FAQSectionType, type FAQStruct, type FAQStyles, type FontRegistry, FontSizeSelector, Footer, type FooterProps, Header, type HeaderProps, Heading, type HeadingLevel, type HeadingProps, type HeroData, HeroSection, type HeroSectionProps, type HeroSectionType, type HeroStyles, HoursStatusAtom, type HoursStatusAtomProps, HoursTableAtom, type HoursTableAtomProps, Image, type ImageContentData, type ImageProps, type InsightData, InsightSection, type InsightSectionProps, type InsightSectionType, type InsightStruct, type InsightStyles, KnowledgeGraphIcon, LocatorCategory, LocatorCategoryComponents, type LocatorCategoryProps, LocatorComponent, type LocatorConfigProps, type LocatorProps, type MainConfigProps, MaybeLink, type MaybeLinkProps, MaybeRTF, type MaybeRTFProps, type Metadata, type Migration, type MigrationAction, type MigrationRegistry, type NearbyLocationsData, NearbyLocationsSection, type NearbyLocationsSectionProps, type NearbyLocationsStyles, OptionalNumberField, type OptionalNumberFieldProps, OtherCategory, OtherCategoryComponents, type OtherCategoryProps, PageSection, PageSectionCategory, PageSectionCategoryComponents, type PageSectionCategoryProps, type PageSectionProps, type PersonStruct, PhoneAtom, type PhoneAtomProps, type PhotoGalleryData, PhotoGallerySection, type PhotoGallerySectionProps, type PhotoGalleryStyles, type PresetImageType, type ProductData, ProductSection, type ProductSectionProps, type ProductSectionType, type ProductStruct, type ProductStyles, type PromoData, PromoSection, type PromoSectionProps, type PromoSectionType, type PromoStyles, type RenderYextEntityFieldSelectorProps, ReviewStars, type ReviewStarsProps, ReviewsSection, type ReviewsSectionProps, type RichText, SectionContainer, type SectionContainerProps, SpacingSelector, StaticMapSection, type StaticMapSectionProps, type StaticMapStyles, type StreamDocument, TailwindConfigContext, TeamSection, type TeamSectionProps, type TeamSectionType, TemplatePropsContext, type TestimonialData, TestimonialSection, type TestimonialSectionProps, type TestimonialSectionType, type TestimonialStruct, type TestimonialStyles, type ThemeConfig, ThemeOptions, Timestamp, TimestampOption, type TimestampProps, Toggle, type TranslatableCTA, type TranslatableRichText, TranslatableRichTextField, type TranslatableString, TranslatableStringField, Video, type VideoData, type VideoProps, VideoSection, type VideoSectionProps, type VideoStyles, VisibilityWrapper, VisualEditorComponentsContentPath, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, YextField, type YextFieldDefinition, type YextSchemaField, type YextStructEntityField, YextStructFieldSelector, addHeadingAlignmentMigration, applyAnalytics, applyHeaderScript, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, createSearchAnalyticsConfig, createSearchHeadlessConfig, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, directoryConfig, fetchLocalesToPathsForEntity, fetchNearbyLocations, fetchReviewsForEntity, filterComponentsFromConfig, filterMaxWidths, getAggregateRating, getAnalyticsScopeHash, getFontWeightOptions, getFontWeightOverrideOptions, getMaxWidthOptions, getPageMetadata, headingVariants, i18nComponentsInstance, i18nPlatformInstance, locatorConfig, mainConfig, mergeMeta, migrate, migrationRegistry, msg, normalizeSlug, pt, resolveComponentData, resolveUrlTemplate, resolveYextEntityField, resolveYextStructField, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, useOverflow, usePlatformBridgeDocument, usePlatformBridgeEntityFields, usePlatformTranslation, useTailwindConfig, useTemplateProps, withPropOverrides };
4314
+ export { AdvancedCoreInfoCategory, AdvancedCoreInfoCategoryComponents, type AdvancedCoreInfoCategoryProps, type AggregateRating, type AssetImageType, type AssetVideo, Background, type BackgroundProps, BackgroundProvider, type BackgroundStyle, type BannerData, BannerSection, type BannerSectionProps, type BannerStyles, BasicSelector, Body, type BodyProps, type BreadcrumbsData, BreadcrumbsSection, type BreadcrumbsSectionProps, type BreadcrumbsStyles, Button, type ButtonProps, CTA, type CTAVariant, CodeField, type CodeFieldProps, type ComponentField, ComponentFields, type CoreInfoData, CoreInfoSection, type CoreInfoSectionProps, type CoreInfoStyles, CustomCodeSection, type CustomCodeSectionProps, DeprecatedCategory, DeprecatedCategoryComponents, type DeprecatedCategoryProps, Directory, DirectoryCategory, DirectoryCategoryComponents, type DirectoryCategoryProps, type DirectoryConfigProps, type DirectoryData, type DirectoryProps, type DirectoryStyles, Editor, EmbeddedFieldStringInput, type EnhancedTranslatableCTA, EntityField, type EventData, EventSection, type EventSectionProps, type EventSectionType, type EventStruct, type EventStyles, ExpandedFooter, type ExpandedFooterData, type ExpandedFooterProps, type ExpandedFooterStyles, ExpandedHeader, type ExpandedHeaderData, type ExpandedHeaderProps, type ExpandedHeaderStyles, type FAQData, FAQSection, type FAQSectionProps, type FAQSectionType, type FAQStruct, type FAQStyles, type FontRegistry, FontSizeSelector, Footer, type FooterProps, Header, type HeaderProps, Heading, type HeadingLevel, type HeadingProps, type HeroData, HeroSection, type HeroSectionProps, type HeroSectionType, type HeroStyles, HoursStatusAtom, type HoursStatusAtomProps, HoursTableAtom, type HoursTableAtomProps, Image, type ImageContentData, type ImageProps, type InsightData, InsightSection, type InsightSectionProps, type InsightSectionType, type InsightStruct, type InsightStyles, KnowledgeGraphIcon, LocatorCategory, LocatorCategoryComponents, type LocatorCategoryProps, LocatorComponent, type LocatorConfigProps, type LocatorProps, type MainConfigProps, MaybeLink, type MaybeLinkProps, MaybeRTF, type MaybeRTFProps, type Metadata, type Migration, type MigrationAction, type MigrationRegistry, type NearbyLocationsData, NearbyLocationsSection, type NearbyLocationsSectionProps, type NearbyLocationsStyles, OptionalNumberField, type OptionalNumberFieldProps, OtherCategory, OtherCategoryComponents, type OtherCategoryProps, PageSection, PageSectionCategory, PageSectionCategoryComponents, type PageSectionCategoryProps, type PageSectionProps, type PersonStruct, PhoneAtom, type PhoneAtomProps, type PhotoGalleryData, PhotoGallerySection, type PhotoGallerySectionProps, type PhotoGalleryStyles, type PresetImageType, type ProductData, ProductSection, type ProductSectionProps, type ProductSectionType, type ProductStruct, type ProductStyles, type PromoData, PromoSection, type PromoSectionProps, type PromoSectionType, type PromoStyles, type RenderYextEntityFieldSelectorProps, ReviewStars, type ReviewStarsProps, ReviewsSection, type ReviewsSectionProps, type RichText, SectionContainer, type SectionContainerProps, SpacingSelector, StaticMapSection, type StaticMapSectionProps, type StaticMapStyles, type StreamDocument, TailwindConfigContext, TeamSection, type TeamSectionProps, type TeamSectionType, TemplatePropsContext, type TestimonialData, TestimonialSection, type TestimonialSectionProps, type TestimonialSectionType, type TestimonialStruct, type TestimonialStyles, type ThemeConfig, ThemeOptions, Timestamp, TimestampOption, type TimestampProps, Toggle, type TranslatableCTA, type TranslatableRichText, TranslatableRichTextField, type TranslatableString, TranslatableStringField, Video, type VideoData, type VideoProps, VideoSection, type VideoSectionProps, type VideoStyles, VisibilityWrapper, VisualEditorComponentsContentPath, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, YextField, type YextFieldDefinition, type YextSchemaField, type YextStructEntityField, YextStructFieldSelector, addHeadingAlignmentMigration, applyAnalytics, applyHeaderScript, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, createSearchAnalyticsConfig, createSearchHeadlessConfig, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, directoryConfig, fetchLocalesToPathsForEntity, fetchNearbyLocations, fetchReviewsForEntity, filterComponentsFromConfig, filterMaxWidths, getAggregateRating, getAnalyticsScopeHash, getFontWeightOptions, getFontWeightOverrideOptions, getMaxWidthOptions, getPageMetadata, getSchema, headingVariants, i18nComponentsInstance, i18nPlatformInstance, locatorConfig, mainConfig, mergeMeta, migrate, migrationRegistry, msg, normalizeSlug, pt, resolveComponentData, resolveSchemaJson, resolveUrlTemplate, resolveYextEntityField, resolveYextStructField, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, useOverflow, usePlatformBridgeDocument, usePlatformBridgeEntityFields, usePlatformTranslation, useTailwindConfig, useTemplateProps, withPropOverrides };