@yext/visual-editor 0.0.64 → 0.0.65

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
@@ -7,7 +7,7 @@ import { TOptions } from 'i18next';
7
7
  import { ClassValue } from 'clsx';
8
8
  import * as _measured_puck from '@measured/puck';
9
9
  import { Config, Data, DefaultComponentProps, DefaultRootProps, Field, CustomField, ComponentConfig, ArrayField, BaseField, ObjectField, NumberField, Slot } from '@measured/puck';
10
- import { ImageType, CTA as CTA$1, LinkType, HoursTableProps as HoursTableProps$1, ComplexImageType, HoursType, AddressType, Coordinate, DayOfWeekNames } from '@yext/pages-components';
10
+ import { ImageType, CTA as CTA$1, LinkType, HoursTableProps as HoursTableProps$1, ComplexImageType, HoursType, AddressType, DayOfWeekNames, Coordinate } from '@yext/pages-components';
11
11
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
12
12
  import { VariantProps } from 'class-variance-authority';
13
13
  import * as _yext_search_headless_react from '@yext/search-headless-react';
@@ -98,6 +98,9 @@ type StreamDocument = {
98
98
  locale?: string;
99
99
  meta?: {
100
100
  locale?: string;
101
+ entityType?: {
102
+ id?: string;
103
+ };
101
104
  };
102
105
  __?: {
103
106
  layout?: string;
@@ -285,12 +288,32 @@ declare const useOverflow: (containerRef: React.RefObject<HTMLElement>, contentR
285
288
 
286
289
  declare const i18nComponentsInstance: i18next.i18n;
287
290
 
288
- declare const fetchLocalesToPathsForEntity: ({ businessId, apiKey, contentEndpointId, contentDeliveryAPIDomain, entityId, }: {
291
+ interface TemplateRenderProps {
292
+ /** The relative path from the page to the site root */
293
+ relativePrefixToRoot: string;
294
+ /** The result of the getPath function */
295
+ path: string;
296
+ /** The stream document */
297
+ document: StreamDocument;
298
+ }
299
+ declare const getSchema: (data: TemplateRenderProps) => Record<string, any>;
300
+
301
+ /**
302
+ * getDirectoryParents returns an array of objects. If no dm_directoryParents or children of
303
+ * the directory parent are not the expected objects, returns an empty array.
304
+ */
305
+ declare const getDirectoryParents: (streamDocument: StreamDocument) => Array<{
306
+ slug: string;
307
+ name: string;
308
+ }>;
309
+
310
+ declare const fetchLocalesToPathsForEntity: ({ businessId, apiKey, contentEndpointId, contentDeliveryAPIDomain, entityId, streamDocument, }: {
289
311
  businessId: string;
290
312
  apiKey: string;
291
313
  contentEndpointId: string;
292
314
  contentDeliveryAPIDomain: string;
293
315
  entityId: string;
316
+ streamDocument: StreamDocument;
294
317
  }) => Promise<Record<string, string>>;
295
318
 
296
319
  declare const fetchNearbyLocations: ({ businessId, entityId, apiKey, contentEndpointId, contentDeliveryAPIDomain, latitude, longitude, radiusMi, limit, locale, }: {
@@ -384,8 +407,6 @@ type RootConfig = {
384
407
  };
385
408
  declare function getPageMetadata(document: Record<string, any>): RootConfig;
386
409
 
387
- declare const getSchema: (document: Record<string, any>) => Record<string, any>;
388
-
389
410
  type MigrationAction = {
390
411
  action: "removed";
391
412
  } | {
@@ -399,7 +420,11 @@ type MigrationAction = {
399
420
  id: string;
400
421
  } & Record<string, any>;
401
422
  };
402
- type Migration = Record<string, MigrationAction>;
423
+ type Migration = Record<string, MigrationAction> | {
424
+ root: {
425
+ propTransformation: (oldProps: Record<string, any>) => Record<string, any>;
426
+ };
427
+ };
403
428
  type MigrationRegistry = Migration[];
404
429
  interface RootProps extends DefaultRootProps {
405
430
  props?: {
@@ -526,10 +551,24 @@ declare const YextStructFieldSelector: <U extends Record<string, any>>(props: St
526
551
 
527
552
  declare const resolveYextEntityField: <T>(streamDocument: any, entityField: YextEntityField<T>, locale?: string) => T | undefined;
528
553
  declare const resolveYextStructField: <T extends Record<string, any>>(streamDocument: any, entityField: YextStructEntityField<T>, locale?: string) => T | undefined;
529
- declare const resolveSchemaJson: (streamDocument: StreamDocument, schema: string) => string;
530
554
 
531
555
  /**
532
- * Resolves a URL template using the provided stream document, locale, and relativePrefixToRoot.
556
+ * Resolves a URL template using the base entity page set's URL template.
557
+ * This function is specifically for resolving URLs of child entities (locations)
558
+ * that are children of directory or locator pages, using the entityPageSetUrlTemplates.
559
+ * The URL template can be either primary or alternate based on __.isPrimaryLocale.
560
+ * It replaces embedded fields in the URL template with their corresponding values from the document.
561
+ * If an alternate function is provided, it will be used to resolve the URL template instead of the default logic.
562
+ *
563
+ * @param streamDocument - The document containing the URL template and data.
564
+ * @param relativePrefixToRoot - Prefix to prepend to the resolved URL.
565
+ * @param alternateFunction - Alternate function to resolve the URL template (optional).
566
+ * @returns The resolved and normalized URL.
567
+ */
568
+ declare const resolveUrlTemplateOfChild: (streamDocument: StreamDocument, relativePrefixToRoot?: string, alternateFunction?: (streamDocument: StreamDocument, relativePrefixToRoot: string) => string) => string;
569
+ /**
570
+ * Resolves a URL template using the current page set's URL template.
571
+ * This should be used for language dropdown links and other cases where you want to stay within the same page set.
533
572
  * The URL template can be either primary or alternate based on __.isPrimaryLocale.
534
573
  * It replaces embedded fields in the URL template with their corresponding values from the document.
535
574
  * If an alternate function is provided, it will be used to resolve the URL template instead of the default logic.
@@ -539,7 +578,7 @@ declare const resolveSchemaJson: (streamDocument: StreamDocument, schema: string
539
578
  * @param alternateFunction - Alternate function to resolve the URL template (optional).
540
579
  * @returns The resolved and normalized URL.
541
580
  */
542
- declare const resolveUrlTemplate: (streamDocument: StreamDocument, relativePrefixToRoot?: string, alternateFunction?: (streamDocument: StreamDocument, relativePrefixToRoot: string) => string) => string;
581
+ declare const resolvePageSetUrlTemplate: (streamDocument: StreamDocument, relativePrefixToRoot?: string, alternateFunction?: (streamDocument: StreamDocument, relativePrefixToRoot: string) => string) => string;
543
582
 
544
583
  /**
545
584
  * Builds the search headless config for the template. Returns undefined if the config is not valid.
@@ -1057,10 +1096,16 @@ type YextImageField = YextBaseField & {
1057
1096
  type YextVideoField = YextBaseField & {
1058
1097
  type: "video";
1059
1098
  };
1099
+ type YextDynamicSelectField<T extends DynamicOptionValueTypes> = YextBaseField & {
1100
+ type: "dynamicSelect";
1101
+ dropdownLabel: string;
1102
+ getOptions: () => DynamicOption<T>[];
1103
+ placeholderOptionLabel?: string;
1104
+ };
1060
1105
  type YextEntitySelectorField<T extends Record<string, any> = Record<string, any>> = YextBaseField & Omit<RenderYextEntityFieldSelectorProps<T>, "label"> & {
1061
1106
  type: "entityField";
1062
1107
  };
1063
- type YextFieldConfig<Props = any> = YextArrayField<Props extends Record<string, any>[] ? Props : any> | YextObjectField<Props extends Record<string, any> ? Props : any> | YextNumberField | YextTextField | YextEntitySelectorField<Props extends Record<string, any> ? Props : any> | YextSelectField | YextRadioField | YextOptionalNumberField | YextCodeField | YextMaxWidthField | YextTranslatableStringField | YextImageField | YextVideoField;
1108
+ type YextFieldConfig<Props = any> = YextArrayField<Props extends Record<string, any>[] ? Props : any> | YextObjectField<Props extends Record<string, any> ? Props : any> | YextNumberField | YextTextField | YextEntitySelectorField<Props extends Record<string, any> ? Props : any> | YextSelectField | YextRadioField | YextOptionalNumberField | YextCodeField | YextMaxWidthField | YextTranslatableStringField | YextImageField | YextVideoField | YextDynamicSelectField<Props extends DynamicOptionValueTypes ? Props[] : any>;
1064
1109
  declare function YextField<T = any>(fieldName: MsgString, config: YextFieldConfig<T>): Field<T>;
1065
1110
  declare function YextField<T extends Record<string, any>, U = any>(fieldName: MsgString, config: YextEntitySelectorField<T>): Field<YextEntityField<U>>;
1066
1111
 
@@ -1118,6 +1163,28 @@ declare const filterMaxWidths: (styleElement: HTMLStyleElement) => {
1118
1163
  options: typeof ThemeOptions.MAX_WIDTH;
1119
1164
  };
1120
1165
 
1166
+ type DynamicOptionValueTypes = string | number | boolean | object;
1167
+ type DynamicOptionsSelectorProps<T extends DynamicOptionValueTypes> = {
1168
+ label: string;
1169
+ dropdownLabel: string;
1170
+ getOptions: () => DynamicOption<T>[];
1171
+ placeholderOptionLabel?: string;
1172
+ };
1173
+ interface DynamicOptionSelection<T extends DynamicOptionValueTypes> {
1174
+ value: T | undefined;
1175
+ }
1176
+ interface DynamicOptionsSelectorType<T extends DynamicOptionValueTypes> {
1177
+ selections: DynamicOptionSelection<T>[];
1178
+ }
1179
+ interface DynamicOption<T extends DynamicOptionValueTypes> {
1180
+ label: string;
1181
+ value: T | undefined;
1182
+ }
1183
+ /**
1184
+ * A selector component for dynamic options. The options can be loaded from a function that uses hooks.
1185
+ */
1186
+ declare const DynamicOptionsSelector: <T extends DynamicOptionValueTypes>(props: DynamicOptionsSelectorProps<T>) => Field<DynamicOptionsSelectorType<T> | undefined>;
1187
+
1121
1188
  declare const bodyVariants: (props?: ({
1122
1189
  variant?: "base" | "sm" | "lg" | "xs" | null | undefined;
1123
1190
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
@@ -1139,10 +1206,6 @@ type CTAProps = {
1139
1206
  ctaType?: "textAndLink" | "getDirections" | "presetImage";
1140
1207
  link?: string;
1141
1208
  linkType?: LinkType;
1142
- coordinate?: {
1143
- latitude: number;
1144
- longitude: number;
1145
- };
1146
1209
  presetImageType?: PresetImageType;
1147
1210
  variant?: ButtonProps["variant"];
1148
1211
  className?: string;
@@ -1272,8 +1335,9 @@ interface HoursStatusAtomProps {
1272
1335
  timeFormat?: "12h" | "24h";
1273
1336
  dayOfWeekFormat?: "short" | "long";
1274
1337
  timezone?: string;
1338
+ boldCurrentStatus?: boolean;
1275
1339
  }
1276
- declare const HoursStatusAtom: React.MemoExoticComponent<({ hours, className, showCurrentStatus, showDayNames, timeFormat, dayOfWeekFormat, timezone, }: HoursStatusAtomProps) => any>;
1340
+ declare const HoursStatusAtom: React.MemoExoticComponent<({ hours, className, showCurrentStatus, showDayNames, timeFormat, dayOfWeekFormat, timezone, boldCurrentStatus, }: HoursStatusAtomProps) => any>;
1277
1341
 
1278
1342
  declare enum TimestampOption {
1279
1343
  DATE = "DATE",
@@ -1377,7 +1441,6 @@ interface EmailsProps {
1377
1441
  }
1378
1442
 
1379
1443
  type GetDirectionsProps = {
1380
- coordinate: YextEntityField<Coordinate>;
1381
1444
  variant: CTAVariant;
1382
1445
  };
1383
1446
 
@@ -1726,7 +1789,7 @@ declare const AdvancedCoreInfoCategoryComponents: {
1726
1789
  permissions?: Partial<_measured_puck.Permissions>;
1727
1790
  inline?: boolean;
1728
1791
  resolveFields?: ((data: Omit<_measured_puck.ComponentData<GetDirectionsProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
1729
- changed: Partial<Record<keyof GetDirectionsProps, boolean> & {
1792
+ changed: Partial<Record<"variant", boolean> & {
1730
1793
  id: string;
1731
1794
  }>;
1732
1795
  fields: _measured_puck.Fields<GetDirectionsProps, {}>;
@@ -1736,7 +1799,7 @@ declare const AdvancedCoreInfoCategoryComponents: {
1736
1799
  parent: _measured_puck.ComponentData | null;
1737
1800
  }) => _measured_puck.Fields<GetDirectionsProps, {}> | Promise<_measured_puck.Fields<GetDirectionsProps, {}>>) | undefined;
1738
1801
  resolveData?: ((data: Omit<_measured_puck.ComponentData<GetDirectionsProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
1739
- changed: Partial<Record<keyof GetDirectionsProps, boolean> & {
1802
+ changed: Partial<Record<"variant", boolean> & {
1740
1803
  id: string;
1741
1804
  }>;
1742
1805
  lastData: Omit<_measured_puck.ComponentData<GetDirectionsProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type"> | null;
@@ -1748,7 +1811,7 @@ declare const AdvancedCoreInfoCategoryComponents: {
1748
1811
  props?: Partial<GetDirectionsProps> | undefined;
1749
1812
  }>) | undefined;
1750
1813
  resolvePermissions?: ((data: Omit<_measured_puck.ComponentData<GetDirectionsProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
1751
- changed: Partial<Record<keyof GetDirectionsProps, boolean> & {
1814
+ changed: Partial<Record<"variant", boolean> & {
1752
1815
  id: string;
1753
1816
  }>;
1754
1817
  lastPermissions: Partial<_measured_puck.Permissions>;
@@ -2172,10 +2235,23 @@ interface LocatorProps {
2172
2235
  */
2173
2236
  mapStyle?: string;
2174
2237
  /**
2175
- * If 'true', displays a button to filter for locations that are currently open.
2176
- * @defaultValue false
2238
+ * Configuration for the filters available in the locator search experience.
2177
2239
  */
2178
- openNowButton: boolean;
2240
+ filters: {
2241
+ /**
2242
+ * If 'true', displays a button to filter for locations that are currently open.
2243
+ * @defaultValue false
2244
+ */
2245
+ openNowButton: boolean;
2246
+ /**
2247
+ * If 'true', displays several distance options to filter searches to only locations within
2248
+ * a certain radius.
2249
+ * @defaultValue false
2250
+ */
2251
+ showDistanceOptions: boolean;
2252
+ /** Which fields are facetable in the search experience */
2253
+ facetFields?: DynamicOptionsSelectorType<string>;
2254
+ };
2179
2255
  /**
2180
2256
  * The starting location for the map.
2181
2257
  */
@@ -4335,4 +4411,4 @@ declare const addHeadingAlignmentMigration: Migration;
4335
4411
 
4336
4412
  declare const defaultThemeConfig: ThemeConfig;
4337
4413
 
4338
- 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, getCanonicalUrl, getFontWeightOptions, getFontWeightOverrideOptions, getMaxWidthOptions, getPageMetadata, getSchema, headingVariants, i18nComponentsInstance, i18nPlatformInstance, imgSizesHelper, 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 };
4414
+ 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, type DynamicOption, type DynamicOptionValueTypes, DynamicOptionsSelector, type DynamicOptionsSelectorType, 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, getCanonicalUrl, getDirectoryParents, getFontWeightOptions, getFontWeightOverrideOptions, getMaxWidthOptions, getPageMetadata, getSchema, headingVariants, i18nComponentsInstance, i18nPlatformInstance, imgSizesHelper, locatorConfig, mainConfig, mergeMeta, migrate, migrationRegistry, msg, normalizeSlug, pt, resolveComponentData, resolvePageSetUrlTemplate, resolveUrlTemplateOfChild, resolveYextEntityField, resolveYextStructField, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, useOverflow, usePlatformBridgeDocument, usePlatformBridgeEntityFields, usePlatformTranslation, useTailwindConfig, useTemplateProps, withPropOverrides };
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ import { TOptions } from 'i18next';
7
7
  import { ClassValue } from 'clsx';
8
8
  import * as _measured_puck from '@measured/puck';
9
9
  import { Config, Data, DefaultComponentProps, DefaultRootProps, Field, CustomField, ComponentConfig, ArrayField, BaseField, ObjectField, NumberField, Slot } from '@measured/puck';
10
- import { ImageType, CTA as CTA$1, LinkType, HoursTableProps as HoursTableProps$1, ComplexImageType, HoursType, AddressType, Coordinate, DayOfWeekNames } from '@yext/pages-components';
10
+ import { ImageType, CTA as CTA$1, LinkType, HoursTableProps as HoursTableProps$1, ComplexImageType, HoursType, AddressType, DayOfWeekNames, Coordinate } from '@yext/pages-components';
11
11
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
12
12
  import { VariantProps } from 'class-variance-authority';
13
13
  import * as _yext_search_headless_react from '@yext/search-headless-react';
@@ -98,6 +98,9 @@ type StreamDocument = {
98
98
  locale?: string;
99
99
  meta?: {
100
100
  locale?: string;
101
+ entityType?: {
102
+ id?: string;
103
+ };
101
104
  };
102
105
  __?: {
103
106
  layout?: string;
@@ -285,12 +288,32 @@ declare const useOverflow: (containerRef: React.RefObject<HTMLElement>, contentR
285
288
 
286
289
  declare const i18nComponentsInstance: i18next.i18n;
287
290
 
288
- declare const fetchLocalesToPathsForEntity: ({ businessId, apiKey, contentEndpointId, contentDeliveryAPIDomain, entityId, }: {
291
+ interface TemplateRenderProps {
292
+ /** The relative path from the page to the site root */
293
+ relativePrefixToRoot: string;
294
+ /** The result of the getPath function */
295
+ path: string;
296
+ /** The stream document */
297
+ document: StreamDocument;
298
+ }
299
+ declare const getSchema: (data: TemplateRenderProps) => Record<string, any>;
300
+
301
+ /**
302
+ * getDirectoryParents returns an array of objects. If no dm_directoryParents or children of
303
+ * the directory parent are not the expected objects, returns an empty array.
304
+ */
305
+ declare const getDirectoryParents: (streamDocument: StreamDocument) => Array<{
306
+ slug: string;
307
+ name: string;
308
+ }>;
309
+
310
+ declare const fetchLocalesToPathsForEntity: ({ businessId, apiKey, contentEndpointId, contentDeliveryAPIDomain, entityId, streamDocument, }: {
289
311
  businessId: string;
290
312
  apiKey: string;
291
313
  contentEndpointId: string;
292
314
  contentDeliveryAPIDomain: string;
293
315
  entityId: string;
316
+ streamDocument: StreamDocument;
294
317
  }) => Promise<Record<string, string>>;
295
318
 
296
319
  declare const fetchNearbyLocations: ({ businessId, entityId, apiKey, contentEndpointId, contentDeliveryAPIDomain, latitude, longitude, radiusMi, limit, locale, }: {
@@ -384,8 +407,6 @@ type RootConfig = {
384
407
  };
385
408
  declare function getPageMetadata(document: Record<string, any>): RootConfig;
386
409
 
387
- declare const getSchema: (document: Record<string, any>) => Record<string, any>;
388
-
389
410
  type MigrationAction = {
390
411
  action: "removed";
391
412
  } | {
@@ -399,7 +420,11 @@ type MigrationAction = {
399
420
  id: string;
400
421
  } & Record<string, any>;
401
422
  };
402
- type Migration = Record<string, MigrationAction>;
423
+ type Migration = Record<string, MigrationAction> | {
424
+ root: {
425
+ propTransformation: (oldProps: Record<string, any>) => Record<string, any>;
426
+ };
427
+ };
403
428
  type MigrationRegistry = Migration[];
404
429
  interface RootProps extends DefaultRootProps {
405
430
  props?: {
@@ -526,10 +551,24 @@ declare const YextStructFieldSelector: <U extends Record<string, any>>(props: St
526
551
 
527
552
  declare const resolveYextEntityField: <T>(streamDocument: any, entityField: YextEntityField<T>, locale?: string) => T | undefined;
528
553
  declare const resolveYextStructField: <T extends Record<string, any>>(streamDocument: any, entityField: YextStructEntityField<T>, locale?: string) => T | undefined;
529
- declare const resolveSchemaJson: (streamDocument: StreamDocument, schema: string) => string;
530
554
 
531
555
  /**
532
- * Resolves a URL template using the provided stream document, locale, and relativePrefixToRoot.
556
+ * Resolves a URL template using the base entity page set's URL template.
557
+ * This function is specifically for resolving URLs of child entities (locations)
558
+ * that are children of directory or locator pages, using the entityPageSetUrlTemplates.
559
+ * The URL template can be either primary or alternate based on __.isPrimaryLocale.
560
+ * It replaces embedded fields in the URL template with their corresponding values from the document.
561
+ * If an alternate function is provided, it will be used to resolve the URL template instead of the default logic.
562
+ *
563
+ * @param streamDocument - The document containing the URL template and data.
564
+ * @param relativePrefixToRoot - Prefix to prepend to the resolved URL.
565
+ * @param alternateFunction - Alternate function to resolve the URL template (optional).
566
+ * @returns The resolved and normalized URL.
567
+ */
568
+ declare const resolveUrlTemplateOfChild: (streamDocument: StreamDocument, relativePrefixToRoot?: string, alternateFunction?: (streamDocument: StreamDocument, relativePrefixToRoot: string) => string) => string;
569
+ /**
570
+ * Resolves a URL template using the current page set's URL template.
571
+ * This should be used for language dropdown links and other cases where you want to stay within the same page set.
533
572
  * The URL template can be either primary or alternate based on __.isPrimaryLocale.
534
573
  * It replaces embedded fields in the URL template with their corresponding values from the document.
535
574
  * If an alternate function is provided, it will be used to resolve the URL template instead of the default logic.
@@ -539,7 +578,7 @@ declare const resolveSchemaJson: (streamDocument: StreamDocument, schema: string
539
578
  * @param alternateFunction - Alternate function to resolve the URL template (optional).
540
579
  * @returns The resolved and normalized URL.
541
580
  */
542
- declare const resolveUrlTemplate: (streamDocument: StreamDocument, relativePrefixToRoot?: string, alternateFunction?: (streamDocument: StreamDocument, relativePrefixToRoot: string) => string) => string;
581
+ declare const resolvePageSetUrlTemplate: (streamDocument: StreamDocument, relativePrefixToRoot?: string, alternateFunction?: (streamDocument: StreamDocument, relativePrefixToRoot: string) => string) => string;
543
582
 
544
583
  /**
545
584
  * Builds the search headless config for the template. Returns undefined if the config is not valid.
@@ -1057,10 +1096,16 @@ type YextImageField = YextBaseField & {
1057
1096
  type YextVideoField = YextBaseField & {
1058
1097
  type: "video";
1059
1098
  };
1099
+ type YextDynamicSelectField<T extends DynamicOptionValueTypes> = YextBaseField & {
1100
+ type: "dynamicSelect";
1101
+ dropdownLabel: string;
1102
+ getOptions: () => DynamicOption<T>[];
1103
+ placeholderOptionLabel?: string;
1104
+ };
1060
1105
  type YextEntitySelectorField<T extends Record<string, any> = Record<string, any>> = YextBaseField & Omit<RenderYextEntityFieldSelectorProps<T>, "label"> & {
1061
1106
  type: "entityField";
1062
1107
  };
1063
- type YextFieldConfig<Props = any> = YextArrayField<Props extends Record<string, any>[] ? Props : any> | YextObjectField<Props extends Record<string, any> ? Props : any> | YextNumberField | YextTextField | YextEntitySelectorField<Props extends Record<string, any> ? Props : any> | YextSelectField | YextRadioField | YextOptionalNumberField | YextCodeField | YextMaxWidthField | YextTranslatableStringField | YextImageField | YextVideoField;
1108
+ type YextFieldConfig<Props = any> = YextArrayField<Props extends Record<string, any>[] ? Props : any> | YextObjectField<Props extends Record<string, any> ? Props : any> | YextNumberField | YextTextField | YextEntitySelectorField<Props extends Record<string, any> ? Props : any> | YextSelectField | YextRadioField | YextOptionalNumberField | YextCodeField | YextMaxWidthField | YextTranslatableStringField | YextImageField | YextVideoField | YextDynamicSelectField<Props extends DynamicOptionValueTypes ? Props[] : any>;
1064
1109
  declare function YextField<T = any>(fieldName: MsgString, config: YextFieldConfig<T>): Field<T>;
1065
1110
  declare function YextField<T extends Record<string, any>, U = any>(fieldName: MsgString, config: YextEntitySelectorField<T>): Field<YextEntityField<U>>;
1066
1111
 
@@ -1118,6 +1163,28 @@ declare const filterMaxWidths: (styleElement: HTMLStyleElement) => {
1118
1163
  options: typeof ThemeOptions.MAX_WIDTH;
1119
1164
  };
1120
1165
 
1166
+ type DynamicOptionValueTypes = string | number | boolean | object;
1167
+ type DynamicOptionsSelectorProps<T extends DynamicOptionValueTypes> = {
1168
+ label: string;
1169
+ dropdownLabel: string;
1170
+ getOptions: () => DynamicOption<T>[];
1171
+ placeholderOptionLabel?: string;
1172
+ };
1173
+ interface DynamicOptionSelection<T extends DynamicOptionValueTypes> {
1174
+ value: T | undefined;
1175
+ }
1176
+ interface DynamicOptionsSelectorType<T extends DynamicOptionValueTypes> {
1177
+ selections: DynamicOptionSelection<T>[];
1178
+ }
1179
+ interface DynamicOption<T extends DynamicOptionValueTypes> {
1180
+ label: string;
1181
+ value: T | undefined;
1182
+ }
1183
+ /**
1184
+ * A selector component for dynamic options. The options can be loaded from a function that uses hooks.
1185
+ */
1186
+ declare const DynamicOptionsSelector: <T extends DynamicOptionValueTypes>(props: DynamicOptionsSelectorProps<T>) => Field<DynamicOptionsSelectorType<T> | undefined>;
1187
+
1121
1188
  declare const bodyVariants: (props?: ({
1122
1189
  variant?: "base" | "sm" | "lg" | "xs" | null | undefined;
1123
1190
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
@@ -1139,10 +1206,6 @@ type CTAProps = {
1139
1206
  ctaType?: "textAndLink" | "getDirections" | "presetImage";
1140
1207
  link?: string;
1141
1208
  linkType?: LinkType;
1142
- coordinate?: {
1143
- latitude: number;
1144
- longitude: number;
1145
- };
1146
1209
  presetImageType?: PresetImageType;
1147
1210
  variant?: ButtonProps["variant"];
1148
1211
  className?: string;
@@ -1272,8 +1335,9 @@ interface HoursStatusAtomProps {
1272
1335
  timeFormat?: "12h" | "24h";
1273
1336
  dayOfWeekFormat?: "short" | "long";
1274
1337
  timezone?: string;
1338
+ boldCurrentStatus?: boolean;
1275
1339
  }
1276
- declare const HoursStatusAtom: React.MemoExoticComponent<({ hours, className, showCurrentStatus, showDayNames, timeFormat, dayOfWeekFormat, timezone, }: HoursStatusAtomProps) => any>;
1340
+ declare const HoursStatusAtom: React.MemoExoticComponent<({ hours, className, showCurrentStatus, showDayNames, timeFormat, dayOfWeekFormat, timezone, boldCurrentStatus, }: HoursStatusAtomProps) => any>;
1277
1341
 
1278
1342
  declare enum TimestampOption {
1279
1343
  DATE = "DATE",
@@ -1377,7 +1441,6 @@ interface EmailsProps {
1377
1441
  }
1378
1442
 
1379
1443
  type GetDirectionsProps = {
1380
- coordinate: YextEntityField<Coordinate>;
1381
1444
  variant: CTAVariant;
1382
1445
  };
1383
1446
 
@@ -1726,7 +1789,7 @@ declare const AdvancedCoreInfoCategoryComponents: {
1726
1789
  permissions?: Partial<_measured_puck.Permissions>;
1727
1790
  inline?: boolean;
1728
1791
  resolveFields?: ((data: Omit<_measured_puck.ComponentData<GetDirectionsProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
1729
- changed: Partial<Record<keyof GetDirectionsProps, boolean> & {
1792
+ changed: Partial<Record<"variant", boolean> & {
1730
1793
  id: string;
1731
1794
  }>;
1732
1795
  fields: _measured_puck.Fields<GetDirectionsProps, {}>;
@@ -1736,7 +1799,7 @@ declare const AdvancedCoreInfoCategoryComponents: {
1736
1799
  parent: _measured_puck.ComponentData | null;
1737
1800
  }) => _measured_puck.Fields<GetDirectionsProps, {}> | Promise<_measured_puck.Fields<GetDirectionsProps, {}>>) | undefined;
1738
1801
  resolveData?: ((data: Omit<_measured_puck.ComponentData<GetDirectionsProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
1739
- changed: Partial<Record<keyof GetDirectionsProps, boolean> & {
1802
+ changed: Partial<Record<"variant", boolean> & {
1740
1803
  id: string;
1741
1804
  }>;
1742
1805
  lastData: Omit<_measured_puck.ComponentData<GetDirectionsProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type"> | null;
@@ -1748,7 +1811,7 @@ declare const AdvancedCoreInfoCategoryComponents: {
1748
1811
  props?: Partial<GetDirectionsProps> | undefined;
1749
1812
  }>) | undefined;
1750
1813
  resolvePermissions?: ((data: Omit<_measured_puck.ComponentData<GetDirectionsProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
1751
- changed: Partial<Record<keyof GetDirectionsProps, boolean> & {
1814
+ changed: Partial<Record<"variant", boolean> & {
1752
1815
  id: string;
1753
1816
  }>;
1754
1817
  lastPermissions: Partial<_measured_puck.Permissions>;
@@ -2172,10 +2235,23 @@ interface LocatorProps {
2172
2235
  */
2173
2236
  mapStyle?: string;
2174
2237
  /**
2175
- * If 'true', displays a button to filter for locations that are currently open.
2176
- * @defaultValue false
2238
+ * Configuration for the filters available in the locator search experience.
2177
2239
  */
2178
- openNowButton: boolean;
2240
+ filters: {
2241
+ /**
2242
+ * If 'true', displays a button to filter for locations that are currently open.
2243
+ * @defaultValue false
2244
+ */
2245
+ openNowButton: boolean;
2246
+ /**
2247
+ * If 'true', displays several distance options to filter searches to only locations within
2248
+ * a certain radius.
2249
+ * @defaultValue false
2250
+ */
2251
+ showDistanceOptions: boolean;
2252
+ /** Which fields are facetable in the search experience */
2253
+ facetFields?: DynamicOptionsSelectorType<string>;
2254
+ };
2179
2255
  /**
2180
2256
  * The starting location for the map.
2181
2257
  */
@@ -4335,4 +4411,4 @@ declare const addHeadingAlignmentMigration: Migration;
4335
4411
 
4336
4412
  declare const defaultThemeConfig: ThemeConfig;
4337
4413
 
4338
- 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, getCanonicalUrl, getFontWeightOptions, getFontWeightOverrideOptions, getMaxWidthOptions, getPageMetadata, getSchema, headingVariants, i18nComponentsInstance, i18nPlatformInstance, imgSizesHelper, 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 };
4414
+ 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, type DynamicOption, type DynamicOptionValueTypes, DynamicOptionsSelector, type DynamicOptionsSelectorType, 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, getCanonicalUrl, getDirectoryParents, getFontWeightOptions, getFontWeightOverrideOptions, getMaxWidthOptions, getPageMetadata, getSchema, headingVariants, i18nComponentsInstance, i18nPlatformInstance, imgSizesHelper, locatorConfig, mainConfig, mergeMeta, migrate, migrationRegistry, msg, normalizeSlug, pt, resolveComponentData, resolvePageSetUrlTemplate, resolveUrlTemplateOfChild, resolveYextEntityField, resolveYextStructField, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, useOverflow, usePlatformBridgeDocument, usePlatformBridgeEntityFields, usePlatformTranslation, useTailwindConfig, useTemplateProps, withPropOverrides };