@yext/visual-editor 0.0.65 → 0.0.67

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
@@ -6,13 +6,14 @@ import * as i18next from 'i18next';
6
6
  import { TOptions } from 'i18next';
7
7
  import { ClassValue } from 'clsx';
8
8
  import * as _measured_puck from '@measured/puck';
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, DayOfWeekNames, Coordinate } from '@yext/pages-components';
9
+ import { Config, Data, DefaultComponentProps, DefaultRootProps, Field, CustomField, ComponentConfig, ArrayField, BaseField, ObjectField, NumberField, Slot, PuckContext } from '@measured/puck';
10
+ import { ImageType, CTA as CTA$1, LinkType, HoursTableProps as HoursTableProps$1, ComplexImageType, HoursType, AddressType, DayOfWeekNames, Coordinate, ListingType } 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';
14
14
  import * as react_jsx_runtime_js from 'react/jsx-runtime.js';
15
15
  import * as TogglePrimitive from '@radix-ui/react-toggle';
16
+ import { CardProps, Coordinate as Coordinate$1 } from '@yext/search-ui-react';
16
17
 
17
18
  declare const usePlatformBridgeDocument: () => any;
18
19
 
@@ -1102,24 +1103,65 @@ type YextDynamicSelectField<T extends DynamicOptionValueTypes> = YextBaseField &
1102
1103
  getOptions: () => DynamicOption<T>[];
1103
1104
  placeholderOptionLabel?: string;
1104
1105
  };
1106
+ type YextDynamicSingleSelectField<T extends DynamicOptionValueTypes> = YextBaseField & {
1107
+ type: "dynamicSingleSelect";
1108
+ getOptions: () => DynamicOption<T>[];
1109
+ dropdownLabel: string;
1110
+ placeholderOptionLabel?: string;
1111
+ };
1105
1112
  type YextEntitySelectorField<T extends Record<string, any> = Record<string, any>> = YextBaseField & Omit<RenderYextEntityFieldSelectorProps<T>, "label"> & {
1106
1113
  type: "entityField";
1107
1114
  };
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>;
1115
+ 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> | YextDynamicSingleSelectField<Props extends DynamicOptionValueTypes ? Props : any>;
1109
1116
  declare function YextField<T = any>(fieldName: MsgString, config: YextFieldConfig<T>): Field<T>;
1110
1117
  declare function YextField<T extends Record<string, any>, U = any>(fieldName: MsgString, config: YextEntitySelectorField<T>): Field<YextEntityField<U>>;
1118
+ declare function YextField<T extends DynamicOptionsSelectorType<U>, U extends DynamicOptionValueTypes>(fieldName: MsgString, config: YextDynamicSelectField<U>): Field<T | undefined>;
1119
+ declare function YextField<T extends DynamicOptionsSingleSelectorType<U>, U extends DynamicOptionValueTypes>(fieldName: MsgString, config: YextDynamicSingleSelectField<U>): Field<T>;
1111
1120
 
1112
1121
  declare const KnowledgeGraphIcon: ({ enabled }: {
1113
1122
  enabled: boolean;
1114
1123
  }) => react_jsx_runtime.JSX.Element;
1115
1124
 
1125
+ type DynamicOptionValueTypes = string | number | boolean | object;
1126
+ type DynamicOptionsSelectorProps<T extends DynamicOptionValueTypes> = {
1127
+ label: string;
1128
+ dropdownLabel: string;
1129
+ getOptions: () => DynamicOption<T>[];
1130
+ placeholderOptionLabel?: string;
1131
+ };
1132
+ interface DynamicOptionSelection<T extends DynamicOptionValueTypes> {
1133
+ value: T | undefined;
1134
+ }
1135
+ interface DynamicOptionsSelectorType<T extends DynamicOptionValueTypes> {
1136
+ selections: DynamicOptionSelection<T>[];
1137
+ }
1138
+ interface DynamicOptionsSingleSelectorType<T extends DynamicOptionValueTypes> {
1139
+ selection: DynamicOptionSelection<T>;
1140
+ }
1141
+ interface DynamicOption<T extends DynamicOptionValueTypes> {
1142
+ label: string;
1143
+ value: T | undefined;
1144
+ }
1145
+ /**
1146
+ * A multi selector component for dynamic options. The options can be loaded from a function that
1147
+ * uses hooks.
1148
+ */
1149
+ declare const DynamicOptionsSelector: <T extends DynamicOptionValueTypes>(props: DynamicOptionsSelectorProps<T>) => Field<DynamicOptionsSelectorType<T> | undefined>;
1150
+ /**
1151
+ * A single selector component for dynamic options. The options can be loaded from a function that
1152
+ * uses hooks.
1153
+ */
1154
+ declare const DynamicOptionsSingleSelector: <T extends DynamicOptionValueTypes>(props: DynamicOptionsSelectorProps<T>) => Field<DynamicOptionsSingleSelectorType<T> | undefined>;
1155
+
1116
1156
  /**
1117
1157
  * Generates a translatable string config
1118
1158
  * @param label optional label. Takes in a value from msg.
1119
1159
  * @param filter optional filter for the entity fields that can be embedded.
1120
1160
  * @param showApplyAllOption enables the "Apply to All Locales" button
1161
+ * @param showFieldSelector enables the button to select an entity field to embed
1162
+ * @param getOptions optional function to get options for the field selector. If provided, the entity field filter is ignored.
1121
1163
  */
1122
- declare function TranslatableStringField<T extends TranslatableString | undefined = TranslatableString>(label?: MsgString, filter?: RenderEntityFieldFilter<any>, showApplyAllOption?: boolean): CustomField<T>;
1164
+ declare function TranslatableStringField<T extends TranslatableString | undefined = TranslatableString>(label?: MsgString, filter?: RenderEntityFieldFilter<any>, showApplyAllOption?: boolean, showFieldSelector?: boolean, getOptions?: () => DynamicOption<string>[]): CustomField<T>;
1123
1165
 
1124
1166
  /**
1125
1167
  * Generates a translatableRichText field config
@@ -1130,10 +1172,21 @@ declare function TranslatableRichTextField<T extends TranslatableRichText | unde
1130
1172
  /**
1131
1173
  * A debounced string input that allows embedding entity fields via a popover selector.
1132
1174
  */
1133
- declare const EmbeddedFieldStringInput: <T extends Record<string, any>>({ value, onChange, filter, }: {
1175
+ declare const EmbeddedFieldStringInputFromEntity: <T extends Record<string, any>>({ value, onChange, filter, showFieldSelector, }: {
1134
1176
  value: string;
1135
1177
  onChange: (value: string) => void;
1136
1178
  filter: RenderEntityFieldFilter<T>;
1179
+ showFieldSelector: boolean;
1180
+ }) => react_jsx_runtime.JSX.Element;
1181
+ declare const EmbeddedFieldStringInputFromOptions: ({ value, onChange, options, showFieldSelector, useOptionValueSublabel, }: {
1182
+ value: string;
1183
+ onChange: (value: string) => void;
1184
+ options: {
1185
+ label: string;
1186
+ value: string;
1187
+ }[];
1188
+ showFieldSelector: boolean;
1189
+ useOptionValueSublabel?: boolean;
1137
1190
  }) => react_jsx_runtime.JSX.Element;
1138
1191
 
1139
1192
  type codeLanguageOptions = "html" | "css" | "json" | "shell" | "java" | "javascript" | "jsx" | "markdown" | "typescript";
@@ -1163,28 +1216,6 @@ declare const filterMaxWidths: (styleElement: HTMLStyleElement) => {
1163
1216
  options: typeof ThemeOptions.MAX_WIDTH;
1164
1217
  };
1165
1218
 
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
-
1188
1219
  declare const bodyVariants: (props?: ({
1189
1220
  variant?: "base" | "sm" | "lg" | "xs" | null | undefined;
1190
1221
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
@@ -1213,6 +1244,7 @@ type CTAProps = {
1213
1244
  target?: "_self" | "_blank" | "_parent" | "_top";
1214
1245
  alwaysHideCaret?: boolean;
1215
1246
  ariaLabel?: string;
1247
+ onClick?: (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
1216
1248
  };
1217
1249
  /**
1218
1250
  * The different visual variants for CTA buttons.
@@ -1307,6 +1339,7 @@ type PhoneAtomProps = {
1307
1339
  format: "domestic" | "international" | undefined;
1308
1340
  includeHyperlink: boolean;
1309
1341
  includeIcon: boolean;
1342
+ onClick?: () => void;
1310
1343
  };
1311
1344
  declare const PhoneAtom: (props: PhoneAtomProps) => react_jsx_runtime.JSX.Element;
1312
1345
 
@@ -1400,6 +1433,7 @@ interface GridProps extends layoutProps {
1400
1433
  }[];
1401
1434
  liveVisibility: boolean;
1402
1435
  className?: string;
1436
+ align?: "left" | "center" | "right";
1403
1437
  /** @internal */
1404
1438
  analytics: {
1405
1439
  scope?: string;
@@ -1518,6 +1552,7 @@ interface PhoneProps {
1518
1552
 
1519
1553
  interface TextListProps {
1520
1554
  list: YextEntityField<TranslatableString[]>;
1555
+ commaSeparated: boolean;
1521
1556
  }
1522
1557
 
1523
1558
  interface CTAGroupProps {
@@ -2069,7 +2104,7 @@ declare const AdvancedCoreInfoCategoryComponents: {
2069
2104
  permissions?: Partial<_measured_puck.Permissions>;
2070
2105
  inline?: boolean;
2071
2106
  resolveFields?: ((data: Omit<_measured_puck.ComponentData<TextListProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
2072
- changed: Partial<Record<"list", boolean> & {
2107
+ changed: Partial<Record<keyof TextListProps, boolean> & {
2073
2108
  id: string;
2074
2109
  }>;
2075
2110
  fields: _measured_puck.Fields<TextListProps, {}>;
@@ -2079,7 +2114,7 @@ declare const AdvancedCoreInfoCategoryComponents: {
2079
2114
  parent: _measured_puck.ComponentData | null;
2080
2115
  }) => _measured_puck.Fields<TextListProps, {}> | Promise<_measured_puck.Fields<TextListProps, {}>>) | undefined;
2081
2116
  resolveData?: ((data: Omit<_measured_puck.ComponentData<TextListProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
2082
- changed: Partial<Record<"list", boolean> & {
2117
+ changed: Partial<Record<keyof TextListProps, boolean> & {
2083
2118
  id: string;
2084
2119
  }>;
2085
2120
  lastData: Omit<_measured_puck.ComponentData<TextListProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type"> | null;
@@ -2091,7 +2126,7 @@ declare const AdvancedCoreInfoCategoryComponents: {
2091
2126
  props?: Partial<TextListProps> | undefined;
2092
2127
  }>) | undefined;
2093
2128
  resolvePermissions?: ((data: Omit<_measured_puck.ComponentData<TextListProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
2094
- changed: Partial<Record<"list", boolean> & {
2129
+ changed: Partial<Record<keyof TextListProps, boolean> & {
2095
2130
  id: string;
2096
2131
  }>;
2097
2132
  lastPermissions: Partial<_measured_puck.Permissions>;
@@ -2259,6 +2294,11 @@ interface LocatorProps {
2259
2294
  latitude: string;
2260
2295
  longitude: string;
2261
2296
  };
2297
+ /**
2298
+ * Props to customize the locator result card component.
2299
+ * Controls which fields are displayed and their styling.
2300
+ */
2301
+ resultCard: LocatorResultCardProps;
2262
2302
  }
2263
2303
  /**
2264
2304
  * Available on Locator templates.
@@ -4409,6 +4449,135 @@ declare const migrationRegistry: MigrationRegistry;
4409
4449
 
4410
4450
  declare const addHeadingAlignmentMigration: Migration;
4411
4451
 
4452
+ interface LocatorResultCardProps {
4453
+ /** Settings for the main heading of the card */
4454
+ primaryHeading: {
4455
+ /**
4456
+ * The field from the data to use for the primary heading
4457
+ * @defaultValue "name"
4458
+ */
4459
+ field: DynamicOptionsSingleSelectorType<string>;
4460
+ /** The heading level for the primary heading */
4461
+ headingLevel: HeadingLevel;
4462
+ };
4463
+ /** Settings for the secondary heading of the card */
4464
+ secondaryHeading: {
4465
+ /** The field from the data to use for the secondary heading */
4466
+ field: DynamicOptionsSingleSelectorType<string>;
4467
+ /** The variant for the secondary heading */
4468
+ variant: BodyProps["variant"];
4469
+ /** Whether the secondary heading is visible in live mode */
4470
+ liveVisibility: boolean;
4471
+ };
4472
+ /** Settings for the tertiary heading of the card */
4473
+ tertiaryHeading: {
4474
+ /** The field from the data to use for the tertiary heading */
4475
+ field: DynamicOptionsSingleSelectorType<string>;
4476
+ /** The variant for the tertiary heading */
4477
+ variant: BodyProps["variant"];
4478
+ /** Whether the tertiary heading is visible in live mode */
4479
+ liveVisibility: boolean;
4480
+ };
4481
+ /** Whether to show icons for certain fields */
4482
+ icons: boolean;
4483
+ /** Settings for the hours block */
4484
+ hours: {
4485
+ /** The field from the data to use for the hours */
4486
+ field: DynamicOptionsSingleSelectorType<string>;
4487
+ /** Styles for the hours table */
4488
+ table: Omit<HoursTableProps["styles"], "alignment">;
4489
+ /** Whether the hours block is visible in live mode */
4490
+ liveVisibility: boolean;
4491
+ };
4492
+ /** Settings for the address block */
4493
+ address: {
4494
+ /** Whether to show the "Get Directions" link */
4495
+ showGetDirectionsLink: boolean;
4496
+ /** Whether the address block is visible in live mode */
4497
+ liveVisibility: boolean;
4498
+ };
4499
+ /** Settings for the phone block */
4500
+ phone: {
4501
+ /**
4502
+ * The field from the data to use for the phone number
4503
+ * @defaultValue "mainPhone"
4504
+ */
4505
+ field: DynamicOptionsSingleSelectorType<string>;
4506
+ /**
4507
+ * The format to use for the phone number
4508
+ * @defaultValue "domestic"
4509
+ */
4510
+ phoneFormat: "domestic" | "international";
4511
+ /** Whether to include a hyperlink for the phone number */
4512
+ includePhoneHyperlink: boolean;
4513
+ /** Whether the phone block is visible in live mode */
4514
+ liveVisibility: boolean;
4515
+ };
4516
+ /** Settings for the email block */
4517
+ email: {
4518
+ /**
4519
+ * The field from the data to use for the email address
4520
+ * @defaultValue "emails"
4521
+ */
4522
+ field: DynamicOptionsSingleSelectorType<string>;
4523
+ /** Whether the email block is visible in live mode */
4524
+ liveVisibility: boolean;
4525
+ };
4526
+ /** Settings for the services block */
4527
+ services: {
4528
+ /**The field from the data to use for the services
4529
+ * @defaultValue "services"
4530
+ */
4531
+ field: DynamicOptionsSingleSelectorType<string>;
4532
+ /** Whether the services block is visible in live mode */
4533
+ liveVisibility: boolean;
4534
+ };
4535
+ /** Settings for the primary CTA */
4536
+ primaryCTA: {
4537
+ /** The variant for the primary CTA */
4538
+ variant: CTAVariant;
4539
+ /** Whether the primary CTA is visible in live mode */
4540
+ liveVisibility: boolean;
4541
+ };
4542
+ /** Settings for the secondary CTA */
4543
+ secondaryCTA: {
4544
+ /** Label for the secondary CTA */
4545
+ label: TranslatableString;
4546
+ /** Template for the secondary CTA link, which can contain entity field references */
4547
+ link: TranslatableString;
4548
+ /** The variant for the secondary CTA */
4549
+ variant: CTAVariant;
4550
+ /** Whether the secondary CTA is visible in live mode */
4551
+ liveVisibility: boolean;
4552
+ };
4553
+ /** Settings for the image */
4554
+ image: {
4555
+ /** The field from the data to use for the image */
4556
+ field: DynamicOptionsSingleSelectorType<string>;
4557
+ /** Whether the image block is visible in live mode */
4558
+ liveVisibility: boolean;
4559
+ };
4560
+ }
4561
+ interface Location {
4562
+ address: AddressType;
4563
+ hours?: HoursType;
4564
+ additionalHoursText?: string;
4565
+ id: string;
4566
+ mainPhone?: string;
4567
+ name: string;
4568
+ neighborhood?: string;
4569
+ slug?: string;
4570
+ timezone: string;
4571
+ yextDisplayCoordinate?: Coordinate$1;
4572
+ ref_listings?: ListingType[];
4573
+ [key: string]: any;
4574
+ }
4575
+ declare const LocatorResultCard: React__default.MemoExoticComponent<({ result, resultCardProps: props, puck, }: {
4576
+ result: CardProps<Location>["result"];
4577
+ resultCardProps: LocatorResultCardProps;
4578
+ puck: PuckContext;
4579
+ }) => React__default.JSX.Element>;
4580
+
4412
4581
  declare const defaultThemeConfig: ThemeConfig;
4413
4582
 
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 };
4583
+ 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, DynamicOptionsSingleSelector, type DynamicOptionsSingleSelectorType, Editor, EmbeddedFieldStringInputFromEntity, EmbeddedFieldStringInputFromOptions, 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, type Location, LocatorCategory, LocatorCategoryComponents, type LocatorCategoryProps, LocatorComponent, type LocatorConfigProps, type LocatorProps, LocatorResultCard, type LocatorResultCardProps, 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 };
@@ -375,6 +375,8 @@ import {
375
375
  locatorConfig,
376
376
  getSchema,
377
377
  getCanonicalUrl,
378
+ migrate,
379
+ migrationRegistry,
378
380
  } from "@yext/visual-editor";
379
381
  import { AnalyticsProvider, SchemaWrapper } from "@yext/pages-components";
380
382
  import mapboxPackageJson from "mapbox-gl/package.json";
@@ -476,7 +478,11 @@ const Locator: Template<TemplateRenderProps> = (props) => {
476
478
  <VisualEditorProvider templateProps={props}>
477
479
  <Render
478
480
  config={locatorConfig}
479
- data={JSON.parse(document.__.layout)}
481
+ data={migrate(
482
+ JSON.parse(document.__.layout),
483
+ migrationRegistry,
484
+ locatorConfig
485
+ )}
480
486
  />
481
487
  </VisualEditorProvider>
482
488
  </AnalyticsProvider>
@@ -377,6 +377,8 @@ import {
377
377
  locatorConfig,
378
378
  getSchema,
379
379
  getCanonicalUrl,
380
+ migrate,
381
+ migrationRegistry,
380
382
  } from "@yext/visual-editor";
381
383
  import { AnalyticsProvider, SchemaWrapper } from "@yext/pages-components";
382
384
  import mapboxPackageJson from "mapbox-gl/package.json";
@@ -478,7 +480,11 @@ const Locator: Template<TemplateRenderProps> = (props) => {
478
480
  <VisualEditorProvider templateProps={props}>
479
481
  <Render
480
482
  config={locatorConfig}
481
- data={JSON.parse(document.__.layout)}
483
+ data={migrate(
484
+ JSON.parse(document.__.layout),
485
+ migrationRegistry,
486
+ locatorConfig
487
+ )}
482
488
  />
483
489
  </VisualEditorProvider>
484
490
  </AnalyticsProvider>