@yext/visual-editor 1.0.2 → 1.0.3
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 +16 -10
- package/dist/index.d.ts +16 -10
- package/dist/plugin/plugin.cjs +1 -1
- package/dist/plugin/plugin.js +12 -16
- package/dist/visual-editor.cjs +75 -75
- package/dist/visual-editor.js +19970 -19142
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -253,8 +253,11 @@ type EnhancedTranslatableCTA = TranslatableCTA & {
|
|
|
253
253
|
*/
|
|
254
254
|
ctaType?: "textAndLink" | "getDirections" | "presetImage";
|
|
255
255
|
};
|
|
256
|
+
/** Preset delivery logo options */
|
|
257
|
+
declare const FOOD_DELIVERY_SERVICES: readonly ["deliveroo", "doordash", "grubhub", "skip-the-dishes", "postmates", "uber-eats", "ezcater"];
|
|
258
|
+
type FoodDeliveryServiceType = (typeof FOOD_DELIVERY_SERVICES)[number];
|
|
256
259
|
/** Preset image types for CTA buttons - app store or food delivery logos */
|
|
257
|
-
type PresetImageType = "app-store" | "google-play" | "galaxy-store" | "app-gallery" |
|
|
260
|
+
type PresetImageType = "app-store" | "google-play" | "galaxy-store" | "app-gallery" | FoodDeliveryServiceType;
|
|
258
261
|
/** Data for the HeroSection */
|
|
259
262
|
type HeroSectionType = {
|
|
260
263
|
/**
|
|
@@ -496,6 +499,7 @@ declare const ThemeOptions: {
|
|
|
496
499
|
value: string;
|
|
497
500
|
}[];
|
|
498
501
|
BACKGROUND_COLOR: ComboboxOptionGroup[];
|
|
502
|
+
SITE_COLOR: ComboboxOptionGroup[];
|
|
499
503
|
CTA_VARIANT: {
|
|
500
504
|
label: MsgString;
|
|
501
505
|
value: string;
|
|
@@ -1209,6 +1213,7 @@ type CTAProps = {
|
|
|
1209
1213
|
ariaLabel?: string;
|
|
1210
1214
|
onClick?: (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
1211
1215
|
disabled?: boolean;
|
|
1216
|
+
color?: BackgroundStyle;
|
|
1212
1217
|
};
|
|
1213
1218
|
/**
|
|
1214
1219
|
* The different visual variants for CTA buttons.
|
|
@@ -1245,6 +1250,7 @@ interface ImageProps {
|
|
|
1245
1250
|
className?: string;
|
|
1246
1251
|
/** sizes attribute of the underlying img tag */
|
|
1247
1252
|
sizes?: string;
|
|
1253
|
+
loading?: "lazy" | "eager";
|
|
1248
1254
|
}
|
|
1249
1255
|
declare const Image: React.FC<ImageProps>;
|
|
1250
1256
|
type ImgSizesByBreakpoint = {
|
|
@@ -1418,6 +1424,7 @@ interface AddressProps {
|
|
|
1418
1424
|
showGetDirectionsLink: boolean;
|
|
1419
1425
|
/** The variant of the get directions button */
|
|
1420
1426
|
ctaVariant: CTAVariant;
|
|
1427
|
+
color?: BackgroundStyle;
|
|
1421
1428
|
};
|
|
1422
1429
|
/** @internal */
|
|
1423
1430
|
parentData?: {
|
|
@@ -1466,6 +1473,7 @@ interface CTAWrapperProps {
|
|
|
1466
1473
|
variant: CTAVariant;
|
|
1467
1474
|
/** The image to use if the CTA is set to preset image */
|
|
1468
1475
|
presetImage?: PresetImageType;
|
|
1476
|
+
color?: BackgroundStyle;
|
|
1469
1477
|
};
|
|
1470
1478
|
/** Additional CSS classes to apply to the CTA. */
|
|
1471
1479
|
className?: string;
|
|
@@ -1499,6 +1507,7 @@ declare const Emails: ComponentConfig<EmailsProps>;
|
|
|
1499
1507
|
|
|
1500
1508
|
type GetDirectionsProps = {
|
|
1501
1509
|
variant: CTAVariant;
|
|
1510
|
+
color?: BackgroundStyle;
|
|
1502
1511
|
};
|
|
1503
1512
|
declare const GetDirections: ComponentConfig<{
|
|
1504
1513
|
props: GetDirectionsProps;
|
|
@@ -1589,6 +1598,7 @@ interface ImageWrapperProps {
|
|
|
1589
1598
|
data: {
|
|
1590
1599
|
/** The image to display. */
|
|
1591
1600
|
image: YextEntityField<ImageType | ComplexImageType | AssetImageType>;
|
|
1601
|
+
link?: TranslatableString;
|
|
1592
1602
|
};
|
|
1593
1603
|
/** Size and aspect ratio of the image. */
|
|
1594
1604
|
styles: ImageStylingProps;
|
|
@@ -1657,6 +1667,7 @@ type BasicCTAProps = {
|
|
|
1657
1667
|
variant: CTAVariant;
|
|
1658
1668
|
/** The image to use if the CTA is set to preset image */
|
|
1659
1669
|
presetImage?: PresetImageType;
|
|
1670
|
+
color?: BackgroundStyle;
|
|
1660
1671
|
};
|
|
1661
1672
|
interface CTAGroupProps {
|
|
1662
1673
|
buttons: BasicCTAProps[];
|
|
@@ -1930,7 +1941,7 @@ declare const AdvancedCoreInfoCategoryComponents: {
|
|
|
1930
1941
|
permissions?: Partial<_measured_puck.Permissions>;
|
|
1931
1942
|
inline?: boolean;
|
|
1932
1943
|
resolveFields?: ((data: Omit<_measured_puck.ComponentData<GetDirectionsProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
|
|
1933
|
-
changed: Partial<Record<
|
|
1944
|
+
changed: Partial<Record<keyof GetDirectionsProps, boolean> & {
|
|
1934
1945
|
id: string;
|
|
1935
1946
|
}>;
|
|
1936
1947
|
fields: _measured_puck.Fields<GetDirectionsProps, {}>;
|
|
@@ -1940,7 +1951,7 @@ declare const AdvancedCoreInfoCategoryComponents: {
|
|
|
1940
1951
|
parent: _measured_puck.ComponentData | null;
|
|
1941
1952
|
}) => _measured_puck.Fields<GetDirectionsProps, {}> | Promise<_measured_puck.Fields<GetDirectionsProps, {}>>) | undefined;
|
|
1942
1953
|
resolveData?: ((data: Omit<_measured_puck.ComponentData<GetDirectionsProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
|
|
1943
|
-
changed: Partial<Record<
|
|
1954
|
+
changed: Partial<Record<keyof GetDirectionsProps, boolean> & {
|
|
1944
1955
|
id: string;
|
|
1945
1956
|
}>;
|
|
1946
1957
|
lastData: Omit<_measured_puck.ComponentData<GetDirectionsProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type"> | null;
|
|
@@ -1952,7 +1963,7 @@ declare const AdvancedCoreInfoCategoryComponents: {
|
|
|
1952
1963
|
props?: Partial<GetDirectionsProps> | undefined;
|
|
1953
1964
|
}>) | undefined;
|
|
1954
1965
|
resolvePermissions?: ((data: Omit<_measured_puck.ComponentData<GetDirectionsProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
|
|
1955
|
-
changed: Partial<Record<
|
|
1966
|
+
changed: Partial<Record<keyof GetDirectionsProps, boolean> & {
|
|
1956
1967
|
id: string;
|
|
1957
1968
|
}>;
|
|
1958
1969
|
lastPermissions: Partial<_measured_puck.Permissions>;
|
|
@@ -4404,11 +4415,6 @@ declare const Timestamp: ComponentConfig<{
|
|
|
4404
4415
|
type NearbyLocationCardsWrapperProps = {
|
|
4405
4416
|
/** The search parameters for finding nearby locations. */
|
|
4406
4417
|
data: {
|
|
4407
|
-
/**
|
|
4408
|
-
* The central coordinate (`latitude`, `longitude`) to search from.
|
|
4409
|
-
* @defaultValue 'yextDisplayCoordinate' field
|
|
4410
|
-
*/
|
|
4411
|
-
coordinate: YextEntityField<Coordinate>;
|
|
4412
4418
|
/**
|
|
4413
4419
|
* The search radius in miles.
|
|
4414
4420
|
* @defaultValue 10
|
|
@@ -6761,4 +6767,4 @@ declare const LocatorResultCard: React__default.MemoExoticComponent<({ result, r
|
|
|
6761
6767
|
declare function createDefaultThemeConfig(customFonts?: FontRegistry): ThemeConfig;
|
|
6762
6768
|
declare const defaultThemeConfig: ThemeConfig;
|
|
6763
6769
|
|
|
6764
|
-
export { Address, type AddressProps, 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, BodyText, type BodyTextProps, type BreadcrumbsData, BreadcrumbsSection, type BreadcrumbsSectionProps, type BreadcrumbsStyles, Button, type ButtonProps, CTA, CTAGroup, type CTAGroupProps, type CTAVariant, CTAWrapper, type CTAWrapperProps, CodeField, type CodeFieldProps, type ComponentField, ComponentFields, CopyrightMessageSlot, type CopyrightMessageSlotProps, CoreInfoSection, type CoreInfoSectionProps, type CoreInfoStyles, CustomCodeSection, type CustomCodeSectionProps, DeprecatedCategory, DeprecatedCategoryComponents, type DeprecatedCategoryProps, Directory, DirectoryCategory, DirectoryCategoryComponents, type DirectoryCategoryProps, type DirectoryConfigProps, type DirectoryProps, type DirectoryStyles, type DynamicOption, type DynamicOptionValueTypes, DynamicOptionsSelector, type DynamicOptionsSelectorType, DynamicOptionsSingleSelector, type DynamicOptionsSingleSelectorType, Editor, Emails, type EmailsProps, EmbeddedFieldStringInputFromEntity, EmbeddedFieldStringInputFromOptions, type EnhancedTranslatableCTA, EntityField, EventSection, type EventSectionProps, type EventSectionType, type EventStruct, ExpandedFooter, type ExpandedFooterData, type ExpandedFooterProps, type ExpandedFooterStyles, ExpandedHeader, type ExpandedHeaderProps, type ExpandedHeaderStyles, FAQSection, type FAQSectionProps, type FAQSectionType, type FAQStruct, type FAQStyles, type FontRegistry, FontSizeSelector, Footer, FooterExpandedLinkSectionSlot, type FooterExpandedLinkSectionSlotProps, FooterExpandedLinksWrapper, type FooterExpandedLinksWrapperProps, FooterLinksSlot, type FooterLinksSlotProps, FooterLogoSlot, type FooterLogoSlotProps, type FooterProps, FooterSocialLinksSlot, type FooterSocialLinksSlotProps, FooterUtilityImagesSlot, type FooterUtilityImagesSlotProps, GetDirections, type GetDirectionsProps, Header, type HeaderProps, Heading, type HeadingLevel, type HeadingProps, HeadingText, type HeadingTextProps, type HeroData, HeroSection, type HeroSectionProps, type HeroSectionType, type HeroStyles, HoursStatus, HoursStatusAtom, type HoursStatusAtomProps, type HoursStatusProps, HoursTable, HoursTableAtom, type HoursTableAtomProps, type HoursTableProps, Image, type ImageContentData, type ImageProps, ImageWrapper, type ImageWrapperProps, type ImgSizesByBreakpoint, InsightCard, InsightCardsWrapper, InsightSection, type InsightSectionProps, type InsightSectionType, type InsightStruct, KnowledgeGraphIcon, type Location, LocatorCategory, LocatorCategoryComponents, type LocatorCategoryProps, LocatorComponent, type LocatorConfigProps, type LocatorProps, LocatorResultCard, type LocatorResultCardProps, type MainConfigProps, MapboxStaticMap, type MapboxStaticProps, MaybeLink, type MaybeLinkProps, MaybeRTF, type MaybeRTFProps, type Metadata, type Migration, type MigrationAction, type MigrationRegistry, NearbyLocationsSection, type NearbyLocationsSectionProps, OptionalNumberField, type OptionalNumberFieldProps, OtherCategory, OtherCategoryComponents, type OtherCategoryProps, PageSection, PageSectionCategory, PageSectionCategoryComponents, type PageSectionCategoryProps, type PageSectionProps, type PersonStruct, Phone, PhoneAtom, type PhoneAtomProps, PhoneList, type PhoneListProps, type PhoneProps, PhotoGallerySection, type PhotoGallerySectionProps, type PhotoGalleryStyles, type PresetImageType, ProductSection, type ProductSectionProps, type ProductSectionType, type ProductStruct, type PromoData, PromoSection, type PromoSectionProps, type PromoSectionType, type PromoStyles, type RenderYextEntityFieldSelectorProps, ReviewStars, type ReviewStarsProps, ReviewsSection, type ReviewsSectionProps, type RichText, SecondaryFooterSlot, type SecondaryFooterSlotProps, SectionContainer, type SectionContainerProps, SlotsCategory, SlotsCategoryComponents, type SlotsCategoryProps, SpacingSelector, StaticMapSection, type StaticMapSectionProps, type StaticMapStyles, type StreamDocument, TailwindConfigContext, TeamSection, type TeamSectionProps, type TeamSectionType, TemplatePropsContext, TestimonialSection, type TestimonialSectionProps, type TestimonialSectionType, type TestimonialStruct, TextList, type TextListProps, type ThemeConfig, ThemeOptions, Timestamp, TimestampAtom, type TimestampAtomProps, TimestampOption, type TimestampProps, Toggle, type TranslatableCTA, type TranslatableRichText, TranslatableRichTextField, type TranslatableString, TranslatableStringField, Video, VideoAtom, type VideoAtomProps, type VideoProps, VideoSection, type VideoSectionProps, VisibilityWrapper, VisualEditorComponentsContentPath, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, YextField, type YextFieldDefinition, type YextSchemaField, addHeadingAlignmentMigration, applyAnalytics, applyHeaderScript, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, createDefaultThemeConfig, createSearchAnalyticsConfig, createSearchHeadlessConfig, deepMerge, defaultCopyrightMessageSlotProps, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, directoryConfig, fetchLocalesToPathsForEntity, fetchReviewsForEntity, filterComponentsFromConfig, filterMaxWidths, getAggregateRating, getAnalyticsScopeHash, getCanonicalUrl, getDefaultRTF, getDirectoryParents, getFontWeightOptions, getFontWeightOverrideOptions, getMaxWidthOptions, getPageMetadata, getSchema, headingVariants, i18nComponentsInstance, i18nPlatformInstance, imgSizesHelper, locatorConfig, mainConfig, mergeMeta, migrate, migrationRegistry, msg, normalizeSlug, pt, resolveComponentData, resolveDataFromParent, resolvePageSetUrlTemplate, resolveUrlTemplateOfChild, resolveYextEntityField, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, useOverflow, usePlatformBridgeDocument, usePlatformBridgeEntityFields, usePlatformTranslation, useTailwindConfig, useTemplateProps, withPropOverrides };
|
|
6770
|
+
export { Address, type AddressProps, 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, BodyText, type BodyTextProps, type BreadcrumbsData, BreadcrumbsSection, type BreadcrumbsSectionProps, type BreadcrumbsStyles, Button, type ButtonProps, CTA, CTAGroup, type CTAGroupProps, type CTAVariant, CTAWrapper, type CTAWrapperProps, CodeField, type CodeFieldProps, type ComponentField, ComponentFields, CopyrightMessageSlot, type CopyrightMessageSlotProps, CoreInfoSection, type CoreInfoSectionProps, type CoreInfoStyles, CustomCodeSection, type CustomCodeSectionProps, DeprecatedCategory, DeprecatedCategoryComponents, type DeprecatedCategoryProps, Directory, DirectoryCategory, DirectoryCategoryComponents, type DirectoryCategoryProps, type DirectoryConfigProps, type DirectoryProps, type DirectoryStyles, type DynamicOption, type DynamicOptionValueTypes, DynamicOptionsSelector, type DynamicOptionsSelectorType, DynamicOptionsSingleSelector, type DynamicOptionsSingleSelectorType, Editor, Emails, type EmailsProps, EmbeddedFieldStringInputFromEntity, EmbeddedFieldStringInputFromOptions, type EnhancedTranslatableCTA, EntityField, EventSection, type EventSectionProps, type EventSectionType, type EventStruct, ExpandedFooter, type ExpandedFooterData, type ExpandedFooterProps, type ExpandedFooterStyles, ExpandedHeader, type ExpandedHeaderProps, type ExpandedHeaderStyles, FAQSection, type FAQSectionProps, type FAQSectionType, type FAQStruct, type FAQStyles, FOOD_DELIVERY_SERVICES, type FontRegistry, FontSizeSelector, type FoodDeliveryServiceType, Footer, FooterExpandedLinkSectionSlot, type FooterExpandedLinkSectionSlotProps, FooterExpandedLinksWrapper, type FooterExpandedLinksWrapperProps, FooterLinksSlot, type FooterLinksSlotProps, FooterLogoSlot, type FooterLogoSlotProps, type FooterProps, FooterSocialLinksSlot, type FooterSocialLinksSlotProps, FooterUtilityImagesSlot, type FooterUtilityImagesSlotProps, GetDirections, type GetDirectionsProps, Header, type HeaderProps, Heading, type HeadingLevel, type HeadingProps, HeadingText, type HeadingTextProps, type HeroData, HeroSection, type HeroSectionProps, type HeroSectionType, type HeroStyles, HoursStatus, HoursStatusAtom, type HoursStatusAtomProps, type HoursStatusProps, HoursTable, HoursTableAtom, type HoursTableAtomProps, type HoursTableProps, Image, type ImageContentData, type ImageProps, ImageWrapper, type ImageWrapperProps, type ImgSizesByBreakpoint, InsightCard, InsightCardsWrapper, InsightSection, type InsightSectionProps, type InsightSectionType, type InsightStruct, KnowledgeGraphIcon, type Location, LocatorCategory, LocatorCategoryComponents, type LocatorCategoryProps, LocatorComponent, type LocatorConfigProps, type LocatorProps, LocatorResultCard, type LocatorResultCardProps, type MainConfigProps, MapboxStaticMap, type MapboxStaticProps, MaybeLink, type MaybeLinkProps, MaybeRTF, type MaybeRTFProps, type Metadata, type Migration, type MigrationAction, type MigrationRegistry, NearbyLocationsSection, type NearbyLocationsSectionProps, OptionalNumberField, type OptionalNumberFieldProps, OtherCategory, OtherCategoryComponents, type OtherCategoryProps, PageSection, PageSectionCategory, PageSectionCategoryComponents, type PageSectionCategoryProps, type PageSectionProps, type PersonStruct, Phone, PhoneAtom, type PhoneAtomProps, PhoneList, type PhoneListProps, type PhoneProps, PhotoGallerySection, type PhotoGallerySectionProps, type PhotoGalleryStyles, type PresetImageType, ProductSection, type ProductSectionProps, type ProductSectionType, type ProductStruct, type PromoData, PromoSection, type PromoSectionProps, type PromoSectionType, type PromoStyles, type RenderYextEntityFieldSelectorProps, ReviewStars, type ReviewStarsProps, ReviewsSection, type ReviewsSectionProps, type RichText, SecondaryFooterSlot, type SecondaryFooterSlotProps, SectionContainer, type SectionContainerProps, SlotsCategory, SlotsCategoryComponents, type SlotsCategoryProps, SpacingSelector, StaticMapSection, type StaticMapSectionProps, type StaticMapStyles, type StreamDocument, TailwindConfigContext, TeamSection, type TeamSectionProps, type TeamSectionType, TemplatePropsContext, TestimonialSection, type TestimonialSectionProps, type TestimonialSectionType, type TestimonialStruct, TextList, type TextListProps, type ThemeConfig, ThemeOptions, Timestamp, TimestampAtom, type TimestampAtomProps, TimestampOption, type TimestampProps, Toggle, type TranslatableCTA, type TranslatableRichText, TranslatableRichTextField, type TranslatableString, TranslatableStringField, Video, VideoAtom, type VideoAtomProps, type VideoProps, VideoSection, type VideoSectionProps, VisibilityWrapper, VisualEditorComponentsContentPath, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, YextField, type YextFieldDefinition, type YextSchemaField, addHeadingAlignmentMigration, applyAnalytics, applyHeaderScript, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, createDefaultThemeConfig, createSearchAnalyticsConfig, createSearchHeadlessConfig, deepMerge, defaultCopyrightMessageSlotProps, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, directoryConfig, fetchLocalesToPathsForEntity, fetchReviewsForEntity, filterComponentsFromConfig, filterMaxWidths, getAggregateRating, getAnalyticsScopeHash, getCanonicalUrl, getDefaultRTF, getDirectoryParents, getFontWeightOptions, getFontWeightOverrideOptions, getMaxWidthOptions, getPageMetadata, getSchema, headingVariants, i18nComponentsInstance, i18nPlatformInstance, imgSizesHelper, locatorConfig, mainConfig, mergeMeta, migrate, migrationRegistry, msg, normalizeSlug, pt, resolveComponentData, resolveDataFromParent, resolvePageSetUrlTemplate, resolveUrlTemplateOfChild, resolveYextEntityField, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, useOverflow, usePlatformBridgeDocument, usePlatformBridgeEntityFields, usePlatformTranslation, useTailwindConfig, useTemplateProps, withPropOverrides };
|
package/dist/index.d.ts
CHANGED
|
@@ -253,8 +253,11 @@ type EnhancedTranslatableCTA = TranslatableCTA & {
|
|
|
253
253
|
*/
|
|
254
254
|
ctaType?: "textAndLink" | "getDirections" | "presetImage";
|
|
255
255
|
};
|
|
256
|
+
/** Preset delivery logo options */
|
|
257
|
+
declare const FOOD_DELIVERY_SERVICES: readonly ["deliveroo", "doordash", "grubhub", "skip-the-dishes", "postmates", "uber-eats", "ezcater"];
|
|
258
|
+
type FoodDeliveryServiceType = (typeof FOOD_DELIVERY_SERVICES)[number];
|
|
256
259
|
/** Preset image types for CTA buttons - app store or food delivery logos */
|
|
257
|
-
type PresetImageType = "app-store" | "google-play" | "galaxy-store" | "app-gallery" |
|
|
260
|
+
type PresetImageType = "app-store" | "google-play" | "galaxy-store" | "app-gallery" | FoodDeliveryServiceType;
|
|
258
261
|
/** Data for the HeroSection */
|
|
259
262
|
type HeroSectionType = {
|
|
260
263
|
/**
|
|
@@ -496,6 +499,7 @@ declare const ThemeOptions: {
|
|
|
496
499
|
value: string;
|
|
497
500
|
}[];
|
|
498
501
|
BACKGROUND_COLOR: ComboboxOptionGroup[];
|
|
502
|
+
SITE_COLOR: ComboboxOptionGroup[];
|
|
499
503
|
CTA_VARIANT: {
|
|
500
504
|
label: MsgString;
|
|
501
505
|
value: string;
|
|
@@ -1209,6 +1213,7 @@ type CTAProps = {
|
|
|
1209
1213
|
ariaLabel?: string;
|
|
1210
1214
|
onClick?: (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
1211
1215
|
disabled?: boolean;
|
|
1216
|
+
color?: BackgroundStyle;
|
|
1212
1217
|
};
|
|
1213
1218
|
/**
|
|
1214
1219
|
* The different visual variants for CTA buttons.
|
|
@@ -1245,6 +1250,7 @@ interface ImageProps {
|
|
|
1245
1250
|
className?: string;
|
|
1246
1251
|
/** sizes attribute of the underlying img tag */
|
|
1247
1252
|
sizes?: string;
|
|
1253
|
+
loading?: "lazy" | "eager";
|
|
1248
1254
|
}
|
|
1249
1255
|
declare const Image: React.FC<ImageProps>;
|
|
1250
1256
|
type ImgSizesByBreakpoint = {
|
|
@@ -1418,6 +1424,7 @@ interface AddressProps {
|
|
|
1418
1424
|
showGetDirectionsLink: boolean;
|
|
1419
1425
|
/** The variant of the get directions button */
|
|
1420
1426
|
ctaVariant: CTAVariant;
|
|
1427
|
+
color?: BackgroundStyle;
|
|
1421
1428
|
};
|
|
1422
1429
|
/** @internal */
|
|
1423
1430
|
parentData?: {
|
|
@@ -1466,6 +1473,7 @@ interface CTAWrapperProps {
|
|
|
1466
1473
|
variant: CTAVariant;
|
|
1467
1474
|
/** The image to use if the CTA is set to preset image */
|
|
1468
1475
|
presetImage?: PresetImageType;
|
|
1476
|
+
color?: BackgroundStyle;
|
|
1469
1477
|
};
|
|
1470
1478
|
/** Additional CSS classes to apply to the CTA. */
|
|
1471
1479
|
className?: string;
|
|
@@ -1499,6 +1507,7 @@ declare const Emails: ComponentConfig<EmailsProps>;
|
|
|
1499
1507
|
|
|
1500
1508
|
type GetDirectionsProps = {
|
|
1501
1509
|
variant: CTAVariant;
|
|
1510
|
+
color?: BackgroundStyle;
|
|
1502
1511
|
};
|
|
1503
1512
|
declare const GetDirections: ComponentConfig<{
|
|
1504
1513
|
props: GetDirectionsProps;
|
|
@@ -1589,6 +1598,7 @@ interface ImageWrapperProps {
|
|
|
1589
1598
|
data: {
|
|
1590
1599
|
/** The image to display. */
|
|
1591
1600
|
image: YextEntityField<ImageType | ComplexImageType | AssetImageType>;
|
|
1601
|
+
link?: TranslatableString;
|
|
1592
1602
|
};
|
|
1593
1603
|
/** Size and aspect ratio of the image. */
|
|
1594
1604
|
styles: ImageStylingProps;
|
|
@@ -1657,6 +1667,7 @@ type BasicCTAProps = {
|
|
|
1657
1667
|
variant: CTAVariant;
|
|
1658
1668
|
/** The image to use if the CTA is set to preset image */
|
|
1659
1669
|
presetImage?: PresetImageType;
|
|
1670
|
+
color?: BackgroundStyle;
|
|
1660
1671
|
};
|
|
1661
1672
|
interface CTAGroupProps {
|
|
1662
1673
|
buttons: BasicCTAProps[];
|
|
@@ -1930,7 +1941,7 @@ declare const AdvancedCoreInfoCategoryComponents: {
|
|
|
1930
1941
|
permissions?: Partial<_measured_puck.Permissions>;
|
|
1931
1942
|
inline?: boolean;
|
|
1932
1943
|
resolveFields?: ((data: Omit<_measured_puck.ComponentData<GetDirectionsProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
|
|
1933
|
-
changed: Partial<Record<
|
|
1944
|
+
changed: Partial<Record<keyof GetDirectionsProps, boolean> & {
|
|
1934
1945
|
id: string;
|
|
1935
1946
|
}>;
|
|
1936
1947
|
fields: _measured_puck.Fields<GetDirectionsProps, {}>;
|
|
@@ -1940,7 +1951,7 @@ declare const AdvancedCoreInfoCategoryComponents: {
|
|
|
1940
1951
|
parent: _measured_puck.ComponentData | null;
|
|
1941
1952
|
}) => _measured_puck.Fields<GetDirectionsProps, {}> | Promise<_measured_puck.Fields<GetDirectionsProps, {}>>) | undefined;
|
|
1942
1953
|
resolveData?: ((data: Omit<_measured_puck.ComponentData<GetDirectionsProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
|
|
1943
|
-
changed: Partial<Record<
|
|
1954
|
+
changed: Partial<Record<keyof GetDirectionsProps, boolean> & {
|
|
1944
1955
|
id: string;
|
|
1945
1956
|
}>;
|
|
1946
1957
|
lastData: Omit<_measured_puck.ComponentData<GetDirectionsProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type"> | null;
|
|
@@ -1952,7 +1963,7 @@ declare const AdvancedCoreInfoCategoryComponents: {
|
|
|
1952
1963
|
props?: Partial<GetDirectionsProps> | undefined;
|
|
1953
1964
|
}>) | undefined;
|
|
1954
1965
|
resolvePermissions?: ((data: Omit<_measured_puck.ComponentData<GetDirectionsProps, string, Record<string, _measured_puck.DefaultComponentProps>>, "type">, params: {
|
|
1955
|
-
changed: Partial<Record<
|
|
1966
|
+
changed: Partial<Record<keyof GetDirectionsProps, boolean> & {
|
|
1956
1967
|
id: string;
|
|
1957
1968
|
}>;
|
|
1958
1969
|
lastPermissions: Partial<_measured_puck.Permissions>;
|
|
@@ -4404,11 +4415,6 @@ declare const Timestamp: ComponentConfig<{
|
|
|
4404
4415
|
type NearbyLocationCardsWrapperProps = {
|
|
4405
4416
|
/** The search parameters for finding nearby locations. */
|
|
4406
4417
|
data: {
|
|
4407
|
-
/**
|
|
4408
|
-
* The central coordinate (`latitude`, `longitude`) to search from.
|
|
4409
|
-
* @defaultValue 'yextDisplayCoordinate' field
|
|
4410
|
-
*/
|
|
4411
|
-
coordinate: YextEntityField<Coordinate>;
|
|
4412
4418
|
/**
|
|
4413
4419
|
* The search radius in miles.
|
|
4414
4420
|
* @defaultValue 10
|
|
@@ -6761,4 +6767,4 @@ declare const LocatorResultCard: React__default.MemoExoticComponent<({ result, r
|
|
|
6761
6767
|
declare function createDefaultThemeConfig(customFonts?: FontRegistry): ThemeConfig;
|
|
6762
6768
|
declare const defaultThemeConfig: ThemeConfig;
|
|
6763
6769
|
|
|
6764
|
-
export { Address, type AddressProps, 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, BodyText, type BodyTextProps, type BreadcrumbsData, BreadcrumbsSection, type BreadcrumbsSectionProps, type BreadcrumbsStyles, Button, type ButtonProps, CTA, CTAGroup, type CTAGroupProps, type CTAVariant, CTAWrapper, type CTAWrapperProps, CodeField, type CodeFieldProps, type ComponentField, ComponentFields, CopyrightMessageSlot, type CopyrightMessageSlotProps, CoreInfoSection, type CoreInfoSectionProps, type CoreInfoStyles, CustomCodeSection, type CustomCodeSectionProps, DeprecatedCategory, DeprecatedCategoryComponents, type DeprecatedCategoryProps, Directory, DirectoryCategory, DirectoryCategoryComponents, type DirectoryCategoryProps, type DirectoryConfigProps, type DirectoryProps, type DirectoryStyles, type DynamicOption, type DynamicOptionValueTypes, DynamicOptionsSelector, type DynamicOptionsSelectorType, DynamicOptionsSingleSelector, type DynamicOptionsSingleSelectorType, Editor, Emails, type EmailsProps, EmbeddedFieldStringInputFromEntity, EmbeddedFieldStringInputFromOptions, type EnhancedTranslatableCTA, EntityField, EventSection, type EventSectionProps, type EventSectionType, type EventStruct, ExpandedFooter, type ExpandedFooterData, type ExpandedFooterProps, type ExpandedFooterStyles, ExpandedHeader, type ExpandedHeaderProps, type ExpandedHeaderStyles, FAQSection, type FAQSectionProps, type FAQSectionType, type FAQStruct, type FAQStyles, type FontRegistry, FontSizeSelector, Footer, FooterExpandedLinkSectionSlot, type FooterExpandedLinkSectionSlotProps, FooterExpandedLinksWrapper, type FooterExpandedLinksWrapperProps, FooterLinksSlot, type FooterLinksSlotProps, FooterLogoSlot, type FooterLogoSlotProps, type FooterProps, FooterSocialLinksSlot, type FooterSocialLinksSlotProps, FooterUtilityImagesSlot, type FooterUtilityImagesSlotProps, GetDirections, type GetDirectionsProps, Header, type HeaderProps, Heading, type HeadingLevel, type HeadingProps, HeadingText, type HeadingTextProps, type HeroData, HeroSection, type HeroSectionProps, type HeroSectionType, type HeroStyles, HoursStatus, HoursStatusAtom, type HoursStatusAtomProps, type HoursStatusProps, HoursTable, HoursTableAtom, type HoursTableAtomProps, type HoursTableProps, Image, type ImageContentData, type ImageProps, ImageWrapper, type ImageWrapperProps, type ImgSizesByBreakpoint, InsightCard, InsightCardsWrapper, InsightSection, type InsightSectionProps, type InsightSectionType, type InsightStruct, KnowledgeGraphIcon, type Location, LocatorCategory, LocatorCategoryComponents, type LocatorCategoryProps, LocatorComponent, type LocatorConfigProps, type LocatorProps, LocatorResultCard, type LocatorResultCardProps, type MainConfigProps, MapboxStaticMap, type MapboxStaticProps, MaybeLink, type MaybeLinkProps, MaybeRTF, type MaybeRTFProps, type Metadata, type Migration, type MigrationAction, type MigrationRegistry, NearbyLocationsSection, type NearbyLocationsSectionProps, OptionalNumberField, type OptionalNumberFieldProps, OtherCategory, OtherCategoryComponents, type OtherCategoryProps, PageSection, PageSectionCategory, PageSectionCategoryComponents, type PageSectionCategoryProps, type PageSectionProps, type PersonStruct, Phone, PhoneAtom, type PhoneAtomProps, PhoneList, type PhoneListProps, type PhoneProps, PhotoGallerySection, type PhotoGallerySectionProps, type PhotoGalleryStyles, type PresetImageType, ProductSection, type ProductSectionProps, type ProductSectionType, type ProductStruct, type PromoData, PromoSection, type PromoSectionProps, type PromoSectionType, type PromoStyles, type RenderYextEntityFieldSelectorProps, ReviewStars, type ReviewStarsProps, ReviewsSection, type ReviewsSectionProps, type RichText, SecondaryFooterSlot, type SecondaryFooterSlotProps, SectionContainer, type SectionContainerProps, SlotsCategory, SlotsCategoryComponents, type SlotsCategoryProps, SpacingSelector, StaticMapSection, type StaticMapSectionProps, type StaticMapStyles, type StreamDocument, TailwindConfigContext, TeamSection, type TeamSectionProps, type TeamSectionType, TemplatePropsContext, TestimonialSection, type TestimonialSectionProps, type TestimonialSectionType, type TestimonialStruct, TextList, type TextListProps, type ThemeConfig, ThemeOptions, Timestamp, TimestampAtom, type TimestampAtomProps, TimestampOption, type TimestampProps, Toggle, type TranslatableCTA, type TranslatableRichText, TranslatableRichTextField, type TranslatableString, TranslatableStringField, Video, VideoAtom, type VideoAtomProps, type VideoProps, VideoSection, type VideoSectionProps, VisibilityWrapper, VisualEditorComponentsContentPath, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, YextField, type YextFieldDefinition, type YextSchemaField, addHeadingAlignmentMigration, applyAnalytics, applyHeaderScript, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, createDefaultThemeConfig, createSearchAnalyticsConfig, createSearchHeadlessConfig, deepMerge, defaultCopyrightMessageSlotProps, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, directoryConfig, fetchLocalesToPathsForEntity, fetchReviewsForEntity, filterComponentsFromConfig, filterMaxWidths, getAggregateRating, getAnalyticsScopeHash, getCanonicalUrl, getDefaultRTF, getDirectoryParents, getFontWeightOptions, getFontWeightOverrideOptions, getMaxWidthOptions, getPageMetadata, getSchema, headingVariants, i18nComponentsInstance, i18nPlatformInstance, imgSizesHelper, locatorConfig, mainConfig, mergeMeta, migrate, migrationRegistry, msg, normalizeSlug, pt, resolveComponentData, resolveDataFromParent, resolvePageSetUrlTemplate, resolveUrlTemplateOfChild, resolveYextEntityField, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, useOverflow, usePlatformBridgeDocument, usePlatformBridgeEntityFields, usePlatformTranslation, useTailwindConfig, useTemplateProps, withPropOverrides };
|
|
6770
|
+
export { Address, type AddressProps, 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, BodyText, type BodyTextProps, type BreadcrumbsData, BreadcrumbsSection, type BreadcrumbsSectionProps, type BreadcrumbsStyles, Button, type ButtonProps, CTA, CTAGroup, type CTAGroupProps, type CTAVariant, CTAWrapper, type CTAWrapperProps, CodeField, type CodeFieldProps, type ComponentField, ComponentFields, CopyrightMessageSlot, type CopyrightMessageSlotProps, CoreInfoSection, type CoreInfoSectionProps, type CoreInfoStyles, CustomCodeSection, type CustomCodeSectionProps, DeprecatedCategory, DeprecatedCategoryComponents, type DeprecatedCategoryProps, Directory, DirectoryCategory, DirectoryCategoryComponents, type DirectoryCategoryProps, type DirectoryConfigProps, type DirectoryProps, type DirectoryStyles, type DynamicOption, type DynamicOptionValueTypes, DynamicOptionsSelector, type DynamicOptionsSelectorType, DynamicOptionsSingleSelector, type DynamicOptionsSingleSelectorType, Editor, Emails, type EmailsProps, EmbeddedFieldStringInputFromEntity, EmbeddedFieldStringInputFromOptions, type EnhancedTranslatableCTA, EntityField, EventSection, type EventSectionProps, type EventSectionType, type EventStruct, ExpandedFooter, type ExpandedFooterData, type ExpandedFooterProps, type ExpandedFooterStyles, ExpandedHeader, type ExpandedHeaderProps, type ExpandedHeaderStyles, FAQSection, type FAQSectionProps, type FAQSectionType, type FAQStruct, type FAQStyles, FOOD_DELIVERY_SERVICES, type FontRegistry, FontSizeSelector, type FoodDeliveryServiceType, Footer, FooterExpandedLinkSectionSlot, type FooterExpandedLinkSectionSlotProps, FooterExpandedLinksWrapper, type FooterExpandedLinksWrapperProps, FooterLinksSlot, type FooterLinksSlotProps, FooterLogoSlot, type FooterLogoSlotProps, type FooterProps, FooterSocialLinksSlot, type FooterSocialLinksSlotProps, FooterUtilityImagesSlot, type FooterUtilityImagesSlotProps, GetDirections, type GetDirectionsProps, Header, type HeaderProps, Heading, type HeadingLevel, type HeadingProps, HeadingText, type HeadingTextProps, type HeroData, HeroSection, type HeroSectionProps, type HeroSectionType, type HeroStyles, HoursStatus, HoursStatusAtom, type HoursStatusAtomProps, type HoursStatusProps, HoursTable, HoursTableAtom, type HoursTableAtomProps, type HoursTableProps, Image, type ImageContentData, type ImageProps, ImageWrapper, type ImageWrapperProps, type ImgSizesByBreakpoint, InsightCard, InsightCardsWrapper, InsightSection, type InsightSectionProps, type InsightSectionType, type InsightStruct, KnowledgeGraphIcon, type Location, LocatorCategory, LocatorCategoryComponents, type LocatorCategoryProps, LocatorComponent, type LocatorConfigProps, type LocatorProps, LocatorResultCard, type LocatorResultCardProps, type MainConfigProps, MapboxStaticMap, type MapboxStaticProps, MaybeLink, type MaybeLinkProps, MaybeRTF, type MaybeRTFProps, type Metadata, type Migration, type MigrationAction, type MigrationRegistry, NearbyLocationsSection, type NearbyLocationsSectionProps, OptionalNumberField, type OptionalNumberFieldProps, OtherCategory, OtherCategoryComponents, type OtherCategoryProps, PageSection, PageSectionCategory, PageSectionCategoryComponents, type PageSectionCategoryProps, type PageSectionProps, type PersonStruct, Phone, PhoneAtom, type PhoneAtomProps, PhoneList, type PhoneListProps, type PhoneProps, PhotoGallerySection, type PhotoGallerySectionProps, type PhotoGalleryStyles, type PresetImageType, ProductSection, type ProductSectionProps, type ProductSectionType, type ProductStruct, type PromoData, PromoSection, type PromoSectionProps, type PromoSectionType, type PromoStyles, type RenderYextEntityFieldSelectorProps, ReviewStars, type ReviewStarsProps, ReviewsSection, type ReviewsSectionProps, type RichText, SecondaryFooterSlot, type SecondaryFooterSlotProps, SectionContainer, type SectionContainerProps, SlotsCategory, SlotsCategoryComponents, type SlotsCategoryProps, SpacingSelector, StaticMapSection, type StaticMapSectionProps, type StaticMapStyles, type StreamDocument, TailwindConfigContext, TeamSection, type TeamSectionProps, type TeamSectionType, TemplatePropsContext, TestimonialSection, type TestimonialSectionProps, type TestimonialSectionType, type TestimonialStruct, TextList, type TextListProps, type ThemeConfig, ThemeOptions, Timestamp, TimestampAtom, type TimestampAtomProps, TimestampOption, type TimestampProps, Toggle, type TranslatableCTA, type TranslatableRichText, TranslatableRichTextField, type TranslatableString, TranslatableStringField, Video, VideoAtom, type VideoAtomProps, type VideoProps, VideoSection, type VideoSectionProps, VisibilityWrapper, VisualEditorComponentsContentPath, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, YextField, type YextFieldDefinition, type YextSchemaField, addHeadingAlignmentMigration, applyAnalytics, applyHeaderScript, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, createDefaultThemeConfig, createSearchAnalyticsConfig, createSearchHeadlessConfig, deepMerge, defaultCopyrightMessageSlotProps, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, directoryConfig, fetchLocalesToPathsForEntity, fetchReviewsForEntity, filterComponentsFromConfig, filterMaxWidths, getAggregateRating, getAnalyticsScopeHash, getCanonicalUrl, getDefaultRTF, getDirectoryParents, getFontWeightOptions, getFontWeightOverrideOptions, getMaxWidthOptions, getPageMetadata, getSchema, headingVariants, i18nComponentsInstance, i18nPlatformInstance, imgSizesHelper, locatorConfig, mainConfig, mergeMeta, migrate, migrationRegistry, msg, normalizeSlug, pt, resolveComponentData, resolveDataFromParent, resolvePageSetUrlTemplate, resolveUrlTemplateOfChild, resolveYextEntityField, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, useOverflow, usePlatformBridgeDocument, usePlatformBridgeEntityFields, usePlatformTranslation, useTailwindConfig, useTemplateProps, withPropOverrides };
|