@yext/visual-editor 1.1.0-alpha.6 → 1.1.0-alpha.8
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/editor.css +1 -1
- package/dist/index.d.ts +31 -2
- package/dist/plugin/plugin.js +177 -59
- package/dist/style.css +1 -1
- package/dist/{visual-editor-FEvmncVY.js → visual-editor-4PC_Jbxw.js} +388 -371
- package/dist/{visual-editor-CYATTw_e.js → visual-editor-5hC9CiKV.js} +404 -387
- package/dist/{visual-editor-Cn1e8wBD.js → visual-editor-61w72F9n.js} +386 -369
- package/dist/visual-editor-B1g1zuGA.js +197 -0
- package/dist/{visual-editor-I2KrwdMb.js → visual-editor-BDA7Unrg.js} +394 -377
- package/dist/visual-editor-BYS2Ltqo.js +197 -0
- package/dist/visual-editor-BZsYFw5Y.js +197 -0
- package/dist/{visual-editor-B9ruYiM4.js → visual-editor-B_0TDDMF.js} +418 -401
- package/dist/visual-editor-B_hM9xz0.js +197 -0
- package/dist/{visual-editor-DUrgyNTQ.js → visual-editor-Ba6zACDQ.js} +385 -368
- package/dist/{visual-editor-DDui4sEC.js → visual-editor-Bg35gfR-.js} +404 -387
- package/dist/{visual-editor-yWgEdvAk.js → visual-editor-BkxAQO_k.js} +384 -367
- package/dist/{visual-editor-DaUGqO_6.js → visual-editor-BoTPwHeG.js} +401 -384
- package/dist/visual-editor-Bqbe9eY3.js +209 -0
- package/dist/visual-editor-BtG64Fhc.js +209 -0
- package/dist/{visual-editor-DrKi4pSm.js → visual-editor-ByYpunlr.js} +384 -367
- package/dist/visual-editor-Bz2F1AP3.js +209 -0
- package/dist/{visual-editor-CM8SN-lR.js → visual-editor-C4JNTg1k.js} +394 -377
- package/dist/visual-editor-CB6pY2S6.js +197 -0
- package/dist/visual-editor-CC6NDyDt.js +197 -0
- package/dist/visual-editor-CG5u_8Wq.js +209 -0
- package/dist/visual-editor-CGQpxjE0.js +197 -0
- package/dist/visual-editor-CJtwiWfR.js +209 -0
- package/dist/{visual-editor-CMItvTm5.js → visual-editor-CNcsYpC2.js} +394 -377
- package/dist/{visual-editor-sF7zDzzm.js → visual-editor-CW8akV_N.js} +394 -377
- package/dist/{visual-editor-O3mHo-6U.js → visual-editor-CXL-7dJk.js} +414 -397
- package/dist/{visual-editor-rgXKF8W_.js → visual-editor-Cb4czzH6.js} +388 -371
- package/dist/visual-editor-Ce7thgPY.js +221 -0
- package/dist/{visual-editor-D8Pw0j5j.js → visual-editor-DF2RHbHR.js} +404 -391
- package/dist/{visual-editor-Cj9pJl4P.js → visual-editor-DHVv7xF2.js} +420 -403
- package/dist/visual-editor-DIVmTakP.js +197 -0
- package/dist/visual-editor-DL3JgtH-.js +197 -0
- package/dist/visual-editor-DMc0Aka2.js +197 -0
- package/dist/{visual-editor-CpgJzO49.js → visual-editor-DU3n5X-L.js} +402 -385
- package/dist/visual-editor-DWw0LdJe.js +209 -0
- package/dist/visual-editor-DYkTM2vr.js +197 -0
- package/dist/{visual-editor-C9JzaegG.js → visual-editor-Dk-mLAYL.js} +406 -389
- package/dist/visual-editor-DwTwZYAH.js +221 -0
- package/dist/{visual-editor-BRF-MqmJ.js → visual-editor-Dyg4VAca.js} +394 -377
- package/dist/visual-editor-HYr72_rc.js +197 -0
- package/dist/{visual-editor-CKIvSiAE.js → visual-editor-Ik6jPnPB.js} +389 -372
- package/dist/visual-editor-Pb1OBn4r.js +197 -0
- package/dist/visual-editor-YRVOkD4u.js +221 -0
- package/dist/visual-editor-YiQJ3Exb.js +221 -0
- package/dist/{visual-editor-6XpxFfFs.js → visual-editor-jcJjuKEF.js} +391 -374
- package/dist/visual-editor-oB2xWu3p.js +197 -0
- package/dist/{visual-editor-D_KJNwhp.js → visual-editor-rnH99oHL.js} +394 -377
- package/dist/{visual-editor-TaFxZzke.js → visual-editor-yVhbEcAn.js} +410 -393
- package/dist/{visual-editor-Bhxtuq_6.js → visual-editor-ypri9B8k.js} +412 -395
- package/dist/visual-editor.js +12156 -11728
- package/package.json +2 -2
- package/dist/visual-editor-6brnk1dc.js +0 -193
- package/dist/visual-editor-BA7dQAHX.js +0 -193
- package/dist/visual-editor-BK2pmoC4.js +0 -193
- package/dist/visual-editor-BN7ZE3Ob.js +0 -205
- package/dist/visual-editor-BTpekLd4.js +0 -205
- package/dist/visual-editor-Bctil6we.js +0 -193
- package/dist/visual-editor-Bip0ocIS.js +0 -193
- package/dist/visual-editor-C26VZrLz.js +0 -193
- package/dist/visual-editor-C3Oq114H.js +0 -205
- package/dist/visual-editor-CEkiOT-U.js +0 -193
- package/dist/visual-editor-CQdNePf4.js +0 -205
- package/dist/visual-editor-CQuxAKah.js +0 -205
- package/dist/visual-editor-CTL6UoZK.js +0 -217
- package/dist/visual-editor-CYxri0B-.js +0 -193
- package/dist/visual-editor-D9stmAYr.js +0 -193
- package/dist/visual-editor-DKfXnNUa.js +0 -217
- package/dist/visual-editor-DTLe23pu.js +0 -193
- package/dist/visual-editor-DbEdIUAy.js +0 -217
- package/dist/visual-editor-DkF8PTV4.js +0 -217
- package/dist/visual-editor-Dnl0sbuA.js +0 -205
- package/dist/visual-editor-DpFmrzKq.js +0 -193
- package/dist/visual-editor-DsUDDDXe.js +0 -193
- package/dist/visual-editor-MjwOnPGF.js +0 -193
- package/dist/visual-editor-uzAZ4PTA.js +0 -193
package/dist/index.d.ts
CHANGED
|
@@ -208,6 +208,8 @@ type TranslatableCTA = Omit<CTA$1, "label" | "link"> & {
|
|
|
208
208
|
label: TranslatableString;
|
|
209
209
|
/** The link the for the CTA */
|
|
210
210
|
link: TranslatableString;
|
|
211
|
+
/** Whether the link should be normalized before rendering */
|
|
212
|
+
normalizeLink?: boolean;
|
|
211
213
|
openInNewTab?: boolean;
|
|
212
214
|
};
|
|
213
215
|
/** Enhanced CTA options */
|
|
@@ -1244,6 +1246,7 @@ type CTAProps = {
|
|
|
1244
1246
|
actionType?: "link" | "button";
|
|
1245
1247
|
link?: string;
|
|
1246
1248
|
linkType?: LinkType;
|
|
1249
|
+
normalizeLink: boolean;
|
|
1247
1250
|
presetImageType?: PresetImageType;
|
|
1248
1251
|
id?: string;
|
|
1249
1252
|
dataAttributes?: Record<`data-${string}`, string>;
|
|
@@ -1535,6 +1538,8 @@ interface CTAWrapperProps {
|
|
|
1535
1538
|
show?: boolean;
|
|
1536
1539
|
/** Whether CTA renders as a link or a button */
|
|
1537
1540
|
actionType?: "link" | "button";
|
|
1541
|
+
/** Whether CTA links should be normalized before rendering */
|
|
1542
|
+
normalizeLink: boolean;
|
|
1538
1543
|
/** The call to action to display */
|
|
1539
1544
|
entityField: YextEntityField<EnhancedTranslatableCTA>;
|
|
1540
1545
|
/** Static text for the button label */
|
|
@@ -1758,6 +1763,8 @@ declare const TextList: ComponentConfig<{
|
|
|
1758
1763
|
type BasicCTAProps = {
|
|
1759
1764
|
/** The CTA entity field or static value */
|
|
1760
1765
|
entityField: CTAWrapperProps["data"]["entityField"];
|
|
1766
|
+
/** Whether CTA links should be normalized before rendering */
|
|
1767
|
+
normalizeLink: boolean;
|
|
1761
1768
|
/** The visual style of the CTA. */
|
|
1762
1769
|
variant: CTAVariant;
|
|
1763
1770
|
/** The image to use if the CTA is set to preset image */
|
|
@@ -2550,7 +2557,7 @@ declare const DirectoryCategoryComponents: {
|
|
|
2550
2557
|
};
|
|
2551
2558
|
declare const DirectoryCategory: (keyof DirectoryCategoryProps)[];
|
|
2552
2559
|
|
|
2553
|
-
declare const LOCATOR_ENTITY_TYPES: readonly ["location", "healthcareProfessional", "healthcareFacility", "restaurant", "hotel", "financialProfessional"];
|
|
2560
|
+
declare const LOCATOR_ENTITY_TYPES: readonly ["location", "healthcareProfessional", "healthcareFacility", "event", "atm", "restaurant", "hotel", "providerFacility", "financialProfessional"];
|
|
2554
2561
|
type LocatorEntityType = (typeof LOCATOR_ENTITY_TYPES)[number];
|
|
2555
2562
|
|
|
2556
2563
|
interface LocatorResultCardProps {
|
|
@@ -2669,6 +2676,8 @@ interface LocatorResultCardProps {
|
|
|
2669
2676
|
primaryCTA: {
|
|
2670
2677
|
/** Label for the primary CTA */
|
|
2671
2678
|
label: TranslatableString;
|
|
2679
|
+
/** Whether the primary CTA link should be normalized before rendering */
|
|
2680
|
+
normalizeLink: boolean;
|
|
2672
2681
|
/** The variant for the primary CTA */
|
|
2673
2682
|
variant: CTAVariant;
|
|
2674
2683
|
/** Whether the primary CTA is visible in live mode */
|
|
@@ -2682,6 +2691,8 @@ interface LocatorResultCardProps {
|
|
|
2682
2691
|
label: TranslatableString;
|
|
2683
2692
|
/** Template for the secondary CTA link, which can contain entity field references */
|
|
2684
2693
|
link: TranslatableString;
|
|
2694
|
+
/** Whether the secondary CTA link should be normalized before rendering */
|
|
2695
|
+
normalizeLink: boolean;
|
|
2685
2696
|
/** The variant for the secondary CTA */
|
|
2686
2697
|
variant: CTAVariant;
|
|
2687
2698
|
/** Whether the secondary CTA is visible in live mode */
|
|
@@ -3207,6 +3218,11 @@ interface BreadcrumbsData {
|
|
|
3207
3218
|
* @defaultValue "Directory Root"
|
|
3208
3219
|
*/
|
|
3209
3220
|
directoryRoot: TranslatableString;
|
|
3221
|
+
/**
|
|
3222
|
+
* The display label for the last link in the breadcrumb trail (the current page).
|
|
3223
|
+
* @defaultValue Name
|
|
3224
|
+
*/
|
|
3225
|
+
currentPage: YextEntityField<TranslatableString>;
|
|
3210
3226
|
}
|
|
3211
3227
|
interface BreadcrumbsStyles {
|
|
3212
3228
|
/**
|
|
@@ -3214,6 +3230,11 @@ interface BreadcrumbsStyles {
|
|
|
3214
3230
|
* @defaultValue Background Color 1
|
|
3215
3231
|
*/
|
|
3216
3232
|
backgroundColor?: BackgroundStyle;
|
|
3233
|
+
/**
|
|
3234
|
+
* Whether to show the current page's link in the breadcrumb trail (last link).
|
|
3235
|
+
* @defaultValue true
|
|
3236
|
+
*/
|
|
3237
|
+
showCurrentPage: boolean;
|
|
3217
3238
|
}
|
|
3218
3239
|
/**
|
|
3219
3240
|
* @public Defines the complete set of properties for the BreadcrumbsSection component.
|
|
@@ -7864,4 +7885,12 @@ declare const addHeadingAlignmentMigration: Migration;
|
|
|
7864
7885
|
declare function createDefaultThemeConfig(customFonts?: FontRegistry): ThemeConfig;
|
|
7865
7886
|
declare const defaultThemeConfig: ThemeConfig;
|
|
7866
7887
|
|
|
7867
|
-
|
|
7888
|
+
/**
|
|
7889
|
+
* Adds the Google Tag Manager (noscript) iframe to the body.
|
|
7890
|
+
* This is required for GTM to function properly when JavaScript is disabled.
|
|
7891
|
+
*/
|
|
7892
|
+
declare const GTMBody: React__default.FC<{
|
|
7893
|
+
children: React__default.ReactNode;
|
|
7894
|
+
}>;
|
|
7895
|
+
|
|
7896
|
+
export { AboutSection, type AboutSectionProps, 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, GTMBody, 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 LocalizedAssetImage, 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, ProfessionalHeroSection, type ProfessionalHeroSectionProps, type ProfessionalHeroStyles, 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, Text, TextList, type TextListProps, type TextProps, type ThemeConfig, ThemeOptions, Timestamp, TimestampAtom, type TimestampAtomProps, TimestampOption, type TimestampProps, Toggle, type TranslatableAssetImage, 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, applyCertifiedFacts, applyHeaderScript, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, createDefaultThemeConfig, createSearchAnalyticsConfig, createSearchHeadlessConfig, deepMerge, defaultCopyrightMessageSlotProps, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, directoryConfig, fetchLocalesToPathsForEntity, filterComponentsFromConfig, filterMaxWidths, getAggregateRating, getAnalyticsScopeHash, getCanonicalUrl, getDefaultRTF, getDirectoryParents, getFontWeightOptions, getFontWeightOverrideOptions, getMaxWidthOptions, getPageMetadata, getPreferredDistanceUnit, getSchema, headingVariants, i18nComponentsInstance, i18nPlatformInstance, imgSizesHelper, injectTranslations, isLocalizedAssetImage, locatorConfig, mainConfig, migrate, migrationRegistry, msg, normalizeLink, normalizeSlug, pt, resolveComponentData, resolveDataFromParent, resolveLocalizedAssetImage, resolveUrlTemplate, resolveUrlTemplateOfChild, resolveYextEntityField, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, toKilometers, useBackground, useDocument, useEntityFields, useOverflow, usePlatformBridgeDocument, usePlatformBridgeEntityFields, usePlatformTranslation, useTailwindConfig, useTemplateProps, withPropOverrides };
|