diff --git a/packages/visual-editor/src/components/Locator.tsx b/packages/visual-editor/src/components/Locator.tsx index 9651b7623..9cdbad012 100644 --- a/packages/visual-editor/src/components/Locator.tsx +++ b/packages/visual-editor/src/components/Locator.tsx @@ -603,10 +603,7 @@ export const LocatorComponent: ComponentConfig<{ props: LocatorProps }> = { showDistanceOptions: false, }, pageHeading: { - title: { - en: DEFAULT_TITLE, - hasLocalizedValue: "true", - }, + title: DEFAULT_TITLE, }, resultCard: DEFAULT_LOCATOR_RESULT_CARD_PROPS, }, diff --git a/packages/visual-editor/src/components/contentBlocks/BodyText.tsx b/packages/visual-editor/src/components/contentBlocks/BodyText.tsx index 10e475782..f5928efac 100644 --- a/packages/visual-editor/src/components/contentBlocks/BodyText.tsx +++ b/packages/visual-editor/src/components/contentBlocks/BodyText.tsx @@ -115,10 +115,7 @@ export const BodyText: ComponentConfig<{ props: BodyTextProps }> = { data: { text: { field: "", - constantValue: { - en: "Text", - hasLocalizedValue: "true", - }, + constantValue: "Text", constantValueEnabled: true, }, }, diff --git a/packages/visual-editor/src/components/contentBlocks/CtaWrapper.tsx b/packages/visual-editor/src/components/contentBlocks/CtaWrapper.tsx index 50a5feef8..c7ea8b69a 100644 --- a/packages/visual-editor/src/components/contentBlocks/CtaWrapper.tsx +++ b/packages/visual-editor/src/components/contentBlocks/CtaWrapper.tsx @@ -297,17 +297,11 @@ export const CTAWrapper: ComponentConfig<{ props: CTAWrapperProps }> = { }, selectedType: "textAndLink", }, - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", customId: "", customClass: "", dataAttributes: [], - ariaLabel: { - en: "Button", - hasLocalizedValue: "true", - }, + ariaLabel: "Button", }, styles: { variant: "primary", diff --git a/packages/visual-editor/src/components/contentBlocks/HeadingText.tsx b/packages/visual-editor/src/components/contentBlocks/HeadingText.tsx index 1a73bbd7c..dfb35bbae 100644 --- a/packages/visual-editor/src/components/contentBlocks/HeadingText.tsx +++ b/packages/visual-editor/src/components/contentBlocks/HeadingText.tsx @@ -131,10 +131,7 @@ export const HeadingText: ComponentConfig<{ props: HeadingTextProps }> = { data: { text: { field: "", - constantValue: { - en: "Text", - hasLocalizedValue: "true", - }, + constantValue: "Text", constantValueEnabled: true, }, }, diff --git a/packages/visual-editor/src/components/contentBlocks/Phone.tsx b/packages/visual-editor/src/components/contentBlocks/Phone.tsx index a101e67d4..7278d2314 100644 --- a/packages/visual-editor/src/components/contentBlocks/Phone.tsx +++ b/packages/visual-editor/src/components/contentBlocks/Phone.tsx @@ -81,10 +81,7 @@ export const defaultPhoneDataProps: PhoneProps["data"] = { field: "mainPhone", constantValue: "", }, - label: { - en: "Phone", - hasLocalizedValue: "true", - }, + label: "Phone", }; export const PhoneFields: Fields = { diff --git a/packages/visual-editor/src/components/contentBlocks/Text.tsx b/packages/visual-editor/src/components/contentBlocks/Text.tsx index 4f40a4726..2a1dc6006 100644 --- a/packages/visual-editor/src/components/contentBlocks/Text.tsx +++ b/packages/visual-editor/src/components/contentBlocks/Text.tsx @@ -136,10 +136,7 @@ export const Text: ComponentConfig<{ props: TextProps }> = { data: { text: { field: "", - constantValue: { - en: "Text", - hasLocalizedValue: "true", - }, + constantValue: "Text", constantValueEnabled: true, }, }, diff --git a/packages/visual-editor/src/components/contentBlocks/image/Image.tsx b/packages/visual-editor/src/components/contentBlocks/image/Image.tsx index 2e5728e63..d012bfd72 100644 --- a/packages/visual-editor/src/components/contentBlocks/image/Image.tsx +++ b/packages/visual-editor/src/components/contentBlocks/image/Image.tsx @@ -152,7 +152,7 @@ const ImageWrapperComponent: PuckComponent = (props) => { (typeof imageUrl === "string" && imageUrl.trim() === ""); const inputLink = resolveComponentData( - data.link ?? { en: DEFAULT_LINK, hasLocalizedValue: "true" as const }, + data.link ?? DEFAULT_LINK, i18n.language, streamDocument ); @@ -238,7 +238,7 @@ export const imageDefaultProps = { }, constantValueEnabled: true, }, - link: { en: DEFAULT_LINK, hasLocalizedValue: "true" as const }, + link: DEFAULT_LINK, }, styles: { aspectRatio: 1.78, diff --git a/packages/visual-editor/src/components/directory/Directory.tsx b/packages/visual-editor/src/components/directory/Directory.tsx index abf4dcf4b..58130d617 100644 --- a/packages/visual-editor/src/components/directory/Directory.tsx +++ b/packages/visual-editor/src/components/directory/Directory.tsx @@ -127,10 +127,7 @@ export const Directory: ComponentConfig<{ props: DirectoryProps }> = { props: { data: { text: { - constantValue: { - en: "", - hasLocalizedValue: "true", - }, + constantValue: "", constantValueEnabled: false, field: "name", }, @@ -145,10 +142,7 @@ export const Directory: ComponentConfig<{ props: DirectoryProps }> = { props: { data: { text: { - constantValue: { - en: "", - hasLocalizedValue: "true", - }, + constantValue: "", constantValueEnabled: true, field: "name", }, @@ -162,10 +156,7 @@ export const Directory: ComponentConfig<{ props: DirectoryProps }> = { type: "BreadcrumbsSlot", props: { data: { - directoryRoot: { - en: "Directory Root", - hasLocalizedValue: "true", - }, + directoryRoot: "Directory Root", }, styles: { backgroundColor: backgroundColors.background1.value, diff --git a/packages/visual-editor/src/components/footer/CopyrightMessageSlot.tsx b/packages/visual-editor/src/components/footer/CopyrightMessageSlot.tsx index fd8cdce2c..7b04a08d0 100644 --- a/packages/visual-editor/src/components/footer/CopyrightMessageSlot.tsx +++ b/packages/visual-editor/src/components/footer/CopyrightMessageSlot.tsx @@ -56,10 +56,7 @@ const CopyrightMessageSlotInternal: PuckComponent = ( export const defaultCopyrightMessageSlotProps: CopyrightMessageSlotProps = { data: { - text: { - en: "", - hasLocalizedValue: "true", - }, + text: "", }, }; diff --git a/packages/visual-editor/src/components/footer/ExpandedFooter.tsx b/packages/visual-editor/src/components/footer/ExpandedFooter.tsx index 33e1f2304..dd9da47f4 100644 --- a/packages/visual-editor/src/components/footer/ExpandedFooter.tsx +++ b/packages/visual-editor/src/components/footer/ExpandedFooter.tsx @@ -16,10 +16,7 @@ const PLACEHOLDER_LOGO_IMAGE: string = export const defaultLink = { linkType: "URL" as const, - label: { - en: "Footer Link", - hasLocalizedValue: "true" as const, - }, + label: "Footer Link", link: "#", openInNewTab: false, }; @@ -322,7 +319,7 @@ export const ExpandedFooter: ComponentConfig<{ props: ExpandedFooterProps }> = { url: PLACEHOLDER_LOGO_IMAGE, height: 100, width: 100, - alternateText: { en: "Logo", hasLocalizedValue: "true" }, + alternateText: "Logo", }, constantValueEnabled: true, }, @@ -383,19 +380,19 @@ export const ExpandedFooter: ComponentConfig<{ props: ExpandedFooterProps }> = { data: { sections: [ { - label: { en: "Footer Label", hasLocalizedValue: "true" }, + label: "Footer Label", links: defaultLinks, }, { - label: { en: "Footer Label", hasLocalizedValue: "true" }, + label: "Footer Label", links: defaultLinks, }, { - label: { en: "Footer Label", hasLocalizedValue: "true" }, + label: "Footer Label", links: defaultLinks, }, { - label: { en: "Footer Label", hasLocalizedValue: "true" }, + label: "Footer Label", links: defaultLinks, }, ], diff --git a/packages/visual-editor/src/components/footer/FooterExpandedLinkSectionSlot.tsx b/packages/visual-editor/src/components/footer/FooterExpandedLinkSectionSlot.tsx index a2e7b1dc6..46b94ac56 100644 --- a/packages/visual-editor/src/components/footer/FooterExpandedLinkSectionSlot.tsx +++ b/packages/visual-editor/src/components/footer/FooterExpandedLinkSectionSlot.tsx @@ -79,7 +79,7 @@ const defaultFooterExpandedLinkSectionProps: FooterExpandedLinkSectionSlotProps data: { label: { field: "", - constantValue: { en: "Footer Label", hasLocalizedValue: "true" }, + constantValue: "Footer Label", constantValueEnabled: true, }, links: defaultLinks, diff --git a/packages/visual-editor/src/components/footer/FooterExpandedLinksWrapper.tsx b/packages/visual-editor/src/components/footer/FooterExpandedLinksWrapper.tsx index 026735fb0..da8c7c7b0 100644 --- a/packages/visual-editor/src/components/footer/FooterExpandedLinksWrapper.tsx +++ b/packages/visual-editor/src/components/footer/FooterExpandedLinksWrapper.tsx @@ -13,7 +13,7 @@ import { useTranslation } from "react-i18next"; import { defaultLink, defaultLinks } from "./ExpandedFooter.tsx"; const defaultSection = { - label: { en: "Footer Label", hasLocalizedValue: "true" as const }, + label: "Footer Label", links: defaultLinks, }; diff --git a/packages/visual-editor/src/components/footer/FooterLogoSlot.tsx b/packages/visual-editor/src/components/footer/FooterLogoSlot.tsx index 88b362f8c..97316fc53 100644 --- a/packages/visual-editor/src/components/footer/FooterLogoSlot.tsx +++ b/packages/visual-editor/src/components/footer/FooterLogoSlot.tsx @@ -120,7 +120,7 @@ export const FooterLogoSlot: ComponentConfig<{ props: FooterLogoSlotProps }> = { url: "https://a.mktgcdn.com/p/wa83C1O1lvtxHI9cGqEdP2HILyUzbD0jvtzwWpOAJfE/196x196.jpg", height: 100, width: 100, - alternateText: { en: "Logo", hasLocalizedValue: "true" }, + alternateText: "Logo", }, constantValueEnabled: true, }, diff --git a/packages/visual-editor/src/components/footer/SecondaryFooterSlot.tsx b/packages/visual-editor/src/components/footer/SecondaryFooterSlot.tsx index c0cee2cf1..8b7ac60c7 100644 --- a/packages/visual-editor/src/components/footer/SecondaryFooterSlot.tsx +++ b/packages/visual-editor/src/components/footer/SecondaryFooterSlot.tsx @@ -8,10 +8,7 @@ import { defaultCopyrightMessageSlotProps } from "./CopyrightMessageSlot.tsx"; const defaultLink = { linkType: "URL" as const, - label: { - en: "Footer Link", - hasLocalizedValue: "true" as const, - }, + label: "Footer Link", link: "#", openInNewTab: false, }; diff --git a/packages/visual-editor/src/components/header/HeaderLinks.tsx b/packages/visual-editor/src/components/header/HeaderLinks.tsx index c19af2566..382324ee7 100644 --- a/packages/visual-editor/src/components/header/HeaderLinks.tsx +++ b/packages/visual-editor/src/components/header/HeaderLinks.tsx @@ -63,7 +63,7 @@ export type HeaderLinksProps = { const defaultLink: TranslatableCTA = { linkType: "URL", - label: { en: "Header Link", hasLocalizedValue: "true" }, + label: "Header Link", link: "#", openInNewTab: false, }; diff --git a/packages/visual-editor/src/components/header/PrimaryHeaderSlot.tsx b/packages/visual-editor/src/components/header/PrimaryHeaderSlot.tsx index d1ef34b57..095468647 100644 --- a/packages/visual-editor/src/components/header/PrimaryHeaderSlot.tsx +++ b/packages/visual-editor/src/components/header/PrimaryHeaderSlot.tsx @@ -424,12 +424,12 @@ export const defaultPrimaryHeaderProps: PrimaryHeaderSlotProps = { data: { show: true, actionType: "link", - buttonText: { en: "Button", hasLocalizedValue: "true" }, + buttonText: "Button", entityField: { field: "", constantValue: { - label: { en: "Call to Action", hasLocalizedValue: "true" }, - link: { en: "#", hasLocalizedValue: "true" }, + label: "Call to Action", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -451,12 +451,12 @@ export const defaultPrimaryHeaderProps: PrimaryHeaderSlotProps = { data: { show: true, actionType: "link", - buttonText: { en: "Button", hasLocalizedValue: "true" }, + buttonText: "Button", entityField: { field: "", constantValue: { - label: { en: "Call to Action", hasLocalizedValue: "true" }, - link: { en: "#", hasLocalizedValue: "true" }, + label: "Call to Action", + link: "#", linkType: "URL", ctaType: "textAndLink", }, diff --git a/packages/visual-editor/src/components/pageSections/AboutSection/AboutSection.tsx b/packages/visual-editor/src/components/pageSections/AboutSection/AboutSection.tsx index 7acfd919d..62253a394 100644 --- a/packages/visual-editor/src/components/pageSections/AboutSection/AboutSection.tsx +++ b/packages/visual-editor/src/components/pageSections/AboutSection/AboutSection.tsx @@ -27,11 +27,8 @@ import { import { ComponentErrorBoundary } from "../../../internal/components/ComponentErrorBoundary.tsx"; const placeholderText = { - en: { - json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.","type":"text","version":1},{"type":"linebreak","version":1},{"type":"linebreak","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":"Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.","type":"text","version":1},{"type":"linebreak","version":1},{"type":"linebreak","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":"In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.","type":"text","version":1},{"type":"linebreak","version":1},{"type":"linebreak","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":"Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', - html: '

Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.

Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.

In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.

Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.

', - }, - hasLocalizedValue: "true", + json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.","type":"text","version":1},{"type":"linebreak","version":1},{"type":"linebreak","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":"Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.","type":"text","version":1},{"type":"linebreak","version":1},{"type":"linebreak","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":"In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.","type":"text","version":1},{"type":"linebreak","version":1},{"type":"linebreak","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":"Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', + html: '

Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.

Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.

In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.

Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.

', }; export type AboutSectionProps = { @@ -202,10 +199,7 @@ export const AboutSection: ComponentConfig<{ props: AboutSectionProps }> = { props: { data: { text: { - constantValue: { - en: "About [[name]]", - hasLocalizedValue: "true", - }, + constantValue: "About [[name]]", constantValueEnabled: true, field: "", }, @@ -242,10 +236,7 @@ export const AboutSection: ComponentConfig<{ props: AboutSectionProps }> = { { header: { field: "", - constantValue: { - en: "Hours", - hasLocalizedValue: "true", - }, + constantValue: "Hours", constantValueEnabled: true, }, content: { @@ -256,10 +247,7 @@ export const AboutSection: ComponentConfig<{ props: AboutSectionProps }> = { { header: { field: "", - constantValue: { - en: "Services Offered", - hasLocalizedValue: "true", - }, + constantValue: "Services Offered", constantValueEnabled: true, }, content: { @@ -276,10 +264,7 @@ export const AboutSection: ComponentConfig<{ props: AboutSectionProps }> = { { header: { field: "", - constantValue: { - en: "Follow Us", - hasLocalizedValue: "true", - }, + constantValue: "Follow Us", constantValueEnabled: true, }, content: { diff --git a/packages/visual-editor/src/components/pageSections/AboutSection/AboutSectionDetailsColumn.tsx b/packages/visual-editor/src/components/pageSections/AboutSection/AboutSectionDetailsColumn.tsx index 819de2029..4481b4c75 100644 --- a/packages/visual-editor/src/components/pageSections/AboutSection/AboutSectionDetailsColumn.tsx +++ b/packages/visual-editor/src/components/pageSections/AboutSection/AboutSectionDetailsColumn.tsx @@ -137,10 +137,7 @@ export const defaultAboutSectionProps: Omit = constantValue: "", constantValueEnabled: false, }, - label: { - en: "Phone", - hasLocalizedValue: "true", - }, + label: "Phone", }, styles: { phoneFormat: "domestic", @@ -301,7 +298,7 @@ const aboutSectionDetailsColumnFields: Fields = defaultItemProps: { header: { field: "", - constantValue: { en: "Header", hasLocalizedValue: "true" }, + constantValue: "Header", constantValueEnabled: true, }, content: { diff --git a/packages/visual-editor/src/components/pageSections/Banner.tsx b/packages/visual-editor/src/components/pageSections/Banner.tsx index 5ddf8d0eb..900b8a855 100644 --- a/packages/visual-editor/src/components/pageSections/Banner.tsx +++ b/packages/visual-editor/src/components/pageSections/Banner.tsx @@ -230,10 +230,7 @@ export const defaultBannerProps: BannerSectionProps = { data: { text: { field: "", - constantValue: { - en: getDefaultRTF("Banner Text"), - hasLocalizedValue: "true", - }, + constantValue: getDefaultRTF("Banner Text"), constantValueEnabled: true, }, }, diff --git a/packages/visual-editor/src/components/pageSections/Breadcrumbs.tsx b/packages/visual-editor/src/components/pageSections/Breadcrumbs.tsx index ef9003a8e..0a6e5eef7 100644 --- a/packages/visual-editor/src/components/pageSections/Breadcrumbs.tsx +++ b/packages/visual-editor/src/components/pageSections/Breadcrumbs.tsx @@ -184,10 +184,7 @@ export const BreadcrumbsSection: ComponentConfig<{ fields: breadcrumbsSectionFields, defaultProps: { data: { - directoryRoot: { - en: "Directory Root", - hasLocalizedValue: "true", - }, + directoryRoot: "Directory Root", }, styles: { backgroundColor: backgroundColors.background1.value, diff --git a/packages/visual-editor/src/components/pageSections/CoreInfoSection.tsx b/packages/visual-editor/src/components/pageSections/CoreInfoSection.tsx index cd590861c..dc85caa5c 100644 --- a/packages/visual-editor/src/components/pageSections/CoreInfoSection.tsx +++ b/packages/visual-editor/src/components/pageSections/CoreInfoSection.tsx @@ -201,10 +201,7 @@ export const CoreInfoSection: ComponentConfig<{ props: CoreInfoSectionProps }> = props: { data: { text: { - constantValue: { - en: "Information", - hasLocalizedValue: "true", - }, + constantValue: "Information", constantValueEnabled: true, field: "", }, @@ -246,10 +243,7 @@ export const CoreInfoSection: ComponentConfig<{ props: CoreInfoSectionProps }> = field: "mainPhone", constantValue: "", }, - label: { - en: "Phone", - hasLocalizedValue: "true", - }, + label: "Phone", }, ], }, @@ -282,10 +276,7 @@ export const CoreInfoSection: ComponentConfig<{ props: CoreInfoSectionProps }> = props: { data: { text: { - constantValue: { - en: "Hours", - hasLocalizedValue: "true", - }, + constantValue: "Hours", constantValueEnabled: true, field: "", }, @@ -319,10 +310,7 @@ export const CoreInfoSection: ComponentConfig<{ props: CoreInfoSectionProps }> = props: { data: { text: { - constantValue: { - en: "Services", - hasLocalizedValue: "true", - }, + constantValue: "Services", constantValueEnabled: true, field: "", }, diff --git a/packages/visual-editor/src/components/pageSections/EventSection/EventCard.tsx b/packages/visual-editor/src/components/pageSections/EventSection/EventCard.tsx index 4dc959f79..e5cad448c 100644 --- a/packages/visual-editor/src/components/pageSections/EventSection/EventCard.tsx +++ b/packages/visual-editor/src/components/pageSections/EventSection/EventCard.tsx @@ -37,16 +37,13 @@ const defaultEvent = { height: 360, width: 640, }, - title: { en: "Event Title", hasLocalizedValue: "true" }, + title: "Event Title", dateTime: "2022-12-12T14:00:00", - description: { - en: getDefaultRTF( - "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." - ), - hasLocalizedValue: "true", - }, + description: getDefaultRTF( + "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." + ), cta: { - label: { en: "Learn More", hasLocalizedValue: "true" }, + label: "Learn More", link: "#", linkType: "URL", ctaType: "textAndLink", @@ -169,7 +166,7 @@ export const defaultEventCardSlotData = ( ...(id && { id: `${id}-cta` }), data: { actionType: "link", - buttonText: { en: "Button", hasLocalizedValue: "true" }, + buttonText: "Button", entityField: { field: "", constantValue: defaultEvent.cta, diff --git a/packages/visual-editor/src/components/pageSections/EventSection/EventSection.tsx b/packages/visual-editor/src/components/pageSections/EventSection/EventSection.tsx index dc6c77437..0aa0e4fc3 100644 --- a/packages/visual-editor/src/components/pageSections/EventSection/EventSection.tsx +++ b/packages/visual-editor/src/components/pageSections/EventSection/EventSection.tsx @@ -135,10 +135,7 @@ export const EventSection: ComponentConfig<{ props: EventSectionProps }> = { props: { data: { text: { - constantValue: { - en: "Upcoming Events", - hasLocalizedValue: "true", - }, + constantValue: "Upcoming Events", constantValueEnabled: true, field: "", }, diff --git a/packages/visual-editor/src/components/pageSections/FAQsSection/FAQCard.tsx b/packages/visual-editor/src/components/pageSections/FAQsSection/FAQCard.tsx index d3b2ac4d8..b0a5819ed 100644 --- a/packages/visual-editor/src/components/pageSections/FAQsSection/FAQCard.tsx +++ b/packages/visual-editor/src/components/pageSections/FAQsSection/FAQCard.tsx @@ -26,16 +26,10 @@ import { useGetCardSlots } from "../../../hooks/useGetCardSlots.tsx"; import { BackgroundStyle } from "../../../utils/themeConfigOptions.ts"; const defaultFAQ = { - question: { - en: "Question Lorem ipsum dolor sit amet?", - hasLocalizedValue: "true", - }, - answer: { - en: getDefaultRTF( - "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." - ), - hasLocalizedValue: "true", - }, + question: "Question Lorem ipsum dolor sit amet?", + answer: getDefaultRTF( + "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." + ), } satisfies FAQStruct; export const defaultFAQCardData = ( diff --git a/packages/visual-editor/src/components/pageSections/FAQsSection/FAQsSection.tsx b/packages/visual-editor/src/components/pageSections/FAQsSection/FAQsSection.tsx index 925dbe903..3fb307b30 100644 --- a/packages/visual-editor/src/components/pageSections/FAQsSection/FAQsSection.tsx +++ b/packages/visual-editor/src/components/pageSections/FAQsSection/FAQsSection.tsx @@ -160,10 +160,7 @@ export const FAQSection: ComponentConfig<{ props: FAQSectionProps }> = { props: { data: { text: { - constantValue: { - en: "Frequently Asked Questions", - hasLocalizedValue: "true", - }, + constantValue: "Frequently Asked Questions", constantValueEnabled: true, field: "", }, diff --git a/packages/visual-editor/src/components/pageSections/HeroSection.tsx b/packages/visual-editor/src/components/pageSections/HeroSection.tsx index eda70100a..cde1ea7c1 100644 --- a/packages/visual-editor/src/components/pageSections/HeroSection.tsx +++ b/packages/visual-editor/src/components/pageSections/HeroSection.tsx @@ -406,10 +406,7 @@ export const HeroSection: ComponentConfig<{ props: HeroSectionProps }> = { props: { data: { text: { - constantValue: { - en: "Business Name", - hasLocalizedValue: "true", - }, + constantValue: "Business Name", constantValueEnabled: true, field: "", }, @@ -424,10 +421,7 @@ export const HeroSection: ComponentConfig<{ props: HeroSectionProps }> = { props: { data: { text: { - constantValue: { - en: "Geomodifier", - hasLocalizedValue: "true", - }, + constantValue: "Geomodifier", constantValueEnabled: true, field: "", }, @@ -485,18 +479,12 @@ export const HeroSection: ComponentConfig<{ props: HeroSectionProps }> = { props: { data: { actionType: "link", - buttonText: { en: "Button", hasLocalizedValue: "true" }, + buttonText: "Button", entityField: { field: "", constantValue: { - label: { - en: "Call To Action", - hasLocalizedValue: "true", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Call To Action", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -516,18 +504,12 @@ export const HeroSection: ComponentConfig<{ props: HeroSectionProps }> = { props: { data: { actionType: "link", - buttonText: { en: "Button", hasLocalizedValue: "true" }, + buttonText: "Button", entityField: { field: "", constantValue: { - label: { - en: "Learn More", - hasLocalizedValue: "true", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Learn More", + link: "#", linkType: "URL", ctaType: "textAndLink", }, diff --git a/packages/visual-editor/src/components/pageSections/InsightSection/InsightCard.tsx b/packages/visual-editor/src/components/pageSections/InsightSection/InsightCard.tsx index abd39df99..6e205553e 100644 --- a/packages/visual-editor/src/components/pageSections/InsightSection/InsightCard.tsx +++ b/packages/visual-editor/src/components/pageSections/InsightSection/InsightCard.tsx @@ -34,20 +34,14 @@ const defaultInsight = { width: 640, height: 360, }, - name: { en: "Article Name", hasLocalizedValue: "true" }, - category: { - en: "Category", - hasLocalizedValue: "true", - }, - description: { - en: getDefaultRTF( - "Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo.Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 300 characters" - ), - hasLocalizedValue: "true", - }, + name: "Article Name", + category: "Category", + description: getDefaultRTF( + "Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo.Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 300 characters" + ), publishTime: "2022-08-02T14:00:00", cta: { - label: { en: "Read More", hasLocalizedValue: "true" }, + label: "Read More", link: "#", linkType: "URL", ctaType: "textAndLink", @@ -189,7 +183,7 @@ export const defaultInsightCardSlotData = ( ...(id && { id: `${id}-cta` }), data: { actionType: "link", - buttonText: { en: "Button", hasLocalizedValue: "true" }, + buttonText: "Button", entityField: { field: "", constantValue: defaultInsight.cta, diff --git a/packages/visual-editor/src/components/pageSections/InsightSection/InsightSection.tsx b/packages/visual-editor/src/components/pageSections/InsightSection/InsightSection.tsx index e22a1fb9a..9b4a697c6 100644 --- a/packages/visual-editor/src/components/pageSections/InsightSection/InsightSection.tsx +++ b/packages/visual-editor/src/components/pageSections/InsightSection/InsightSection.tsx @@ -136,10 +136,7 @@ export const InsightSection: ComponentConfig<{ props: InsightSectionProps }> = { data: { text: { field: "", - constantValue: { - en: "Insights", - hasLocalizedValue: "true", - }, + constantValue: "Insights", constantValueEnabled: true, }, }, diff --git a/packages/visual-editor/src/components/pageSections/NearbyLocations/NearbyLocations.tsx b/packages/visual-editor/src/components/pageSections/NearbyLocations/NearbyLocations.tsx index e6e59b34e..eeff35f77 100644 --- a/packages/visual-editor/src/components/pageSections/NearbyLocations/NearbyLocations.tsx +++ b/packages/visual-editor/src/components/pageSections/NearbyLocations/NearbyLocations.tsx @@ -204,10 +204,7 @@ export const NearbyLocationsSection: ComponentConfig<{ data: { text: { field: "", - constantValue: { - en: "Nearby Locations", - hasLocalizedValue: "true", - }, + constantValue: "Nearby Locations", constantValueEnabled: true, }, }, diff --git a/packages/visual-editor/src/components/pageSections/PhotoGallerySection/PhotoGallerySection.tsx b/packages/visual-editor/src/components/pageSections/PhotoGallerySection/PhotoGallerySection.tsx index 7fb06c175..50fa343d2 100644 --- a/packages/visual-editor/src/components/pageSections/PhotoGallerySection/PhotoGallerySection.tsx +++ b/packages/visual-editor/src/components/pageSections/PhotoGallerySection/PhotoGallerySection.tsx @@ -164,10 +164,7 @@ export const PhotoGallerySection: ComponentConfig<{ data: { text: { field: "", - constantValue: { - en: "Gallery", - hasLocalizedValue: "true", - }, + constantValue: "Gallery", constantValueEnabled: true, }, }, diff --git a/packages/visual-editor/src/components/pageSections/ProductSection/ProductCard.tsx b/packages/visual-editor/src/components/pageSections/ProductSection/ProductCard.tsx index cc7ce271f..c909f231b 100644 --- a/packages/visual-editor/src/components/pageSections/ProductSection/ProductCard.tsx +++ b/packages/visual-editor/src/components/pageSections/ProductSection/ProductCard.tsx @@ -38,23 +38,14 @@ const defaultProduct = { height: 360, width: 640, }, - brow: { - en: "Category", - hasLocalizedValue: "true", - }, - name: { en: "Product Name", hasLocalizedValue: "true" }, - price: { - en: "$123.00", - hasLocalizedValue: "true", - }, - description: { - en: getDefaultRTF( - "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." - ), - hasLocalizedValue: "true", - }, + brow: "Category", + name: "Product Name", + price: "$123.00", + description: getDefaultRTF( + "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." + ), cta: { - label: { en: "Learn More", hasLocalizedValue: "true" }, + label: "Learn More", link: "#", linkType: "URL", ctaType: "textAndLink", @@ -185,7 +176,7 @@ export const defaultProductCardSlotData = ( ...(id && { id: `${id}-cta` }), data: { actionType: "link", - buttonText: { en: "Button", hasLocalizedValue: "true" }, + buttonText: "Button", entityField: { field: "", constantValue: defaultProduct.cta, diff --git a/packages/visual-editor/src/components/pageSections/ProductSection/ProductSection.tsx b/packages/visual-editor/src/components/pageSections/ProductSection/ProductSection.tsx index b6d819f9d..eacfb4ce2 100644 --- a/packages/visual-editor/src/components/pageSections/ProductSection/ProductSection.tsx +++ b/packages/visual-editor/src/components/pageSections/ProductSection/ProductSection.tsx @@ -163,10 +163,7 @@ export const ProductSection: ComponentConfig<{ props: ProductSectionProps }> = { data: { text: { field: "", - constantValue: { - en: "Featured Products", - hasLocalizedValue: "true", - }, + constantValue: "Featured Products", constantValueEnabled: true, }, }, diff --git a/packages/visual-editor/src/components/pageSections/ProfessionalHeroSection.tsx b/packages/visual-editor/src/components/pageSections/ProfessionalHeroSection.tsx index bfbcb3174..87a6c16a0 100644 --- a/packages/visual-editor/src/components/pageSections/ProfessionalHeroSection.tsx +++ b/packages/visual-editor/src/components/pageSections/ProfessionalHeroSection.tsx @@ -560,10 +560,7 @@ export const ProfessionalHeroSection: ComponentConfig<{ data: { text: { field: "", - constantValue: { - en: "Business Name", - hasLocalizedValue: "true", - }, + constantValue: "Business Name", constantValueEnabled: true, }, }, @@ -580,10 +577,7 @@ export const ProfessionalHeroSection: ComponentConfig<{ data: { text: { field: "", - constantValue: { - en: "Credentials", - hasLocalizedValue: "true", - }, + constantValue: "Credentials", constantValueEnabled: true, }, }, @@ -600,10 +594,7 @@ export const ProfessionalHeroSection: ComponentConfig<{ props: { data: { text: { - constantValue: { - en: "Professional Name", - hasLocalizedValue: "true", - }, + constantValue: "Professional Name", constantValueEnabled: true, field: "name", }, @@ -618,10 +609,7 @@ export const ProfessionalHeroSection: ComponentConfig<{ props: { data: { text: { - constantValue: { - en: "Professional Title", - hasLocalizedValue: "true", - }, + constantValue: "Professional Title", constantValueEnabled: true, field: "", }, @@ -640,10 +628,7 @@ export const ProfessionalHeroSection: ComponentConfig<{ props: { data: { text: { - constantValue: { - en: "Subtitle", - hasLocalizedValue: "true", - }, + constantValue: "Subtitle", constantValueEnabled: true, field: "", }, @@ -682,18 +667,12 @@ export const ProfessionalHeroSection: ComponentConfig<{ props: { data: { actionType: "link", - buttonText: { en: "Button", hasLocalizedValue: "true" }, + buttonText: "Button", entityField: { field: "", constantValue: { - label: { - en: "Contact Me", - hasLocalizedValue: "true", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Contact Me", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -712,18 +691,12 @@ export const ProfessionalHeroSection: ComponentConfig<{ props: { data: { actionType: "link", - buttonText: { en: "Button", hasLocalizedValue: "true" }, + buttonText: "Button", entityField: { field: "", constantValue: { - label: { - en: "Learn More", - hasLocalizedValue: "true", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Learn More", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -747,10 +720,7 @@ export const ProfessionalHeroSection: ComponentConfig<{ field: "mainPhone", constantValue: "", }, - label: { - en: "Phone", - hasLocalizedValue: "true", - }, + label: "Phone", }, ], }, diff --git a/packages/visual-editor/src/components/pageSections/PromoSection/PromoSection.tsx b/packages/visual-editor/src/components/pageSections/PromoSection/PromoSection.tsx index 052c15c45..6a90ddb11 100644 --- a/packages/visual-editor/src/components/pageSections/PromoSection/PromoSection.tsx +++ b/packages/visual-editor/src/components/pageSections/PromoSection/PromoSection.tsx @@ -352,10 +352,7 @@ export const PromoSection: ComponentConfig<{ props: PromoSectionProps }> = { data: { text: { field: "", - constantValue: { - en: "Featured Promotion", - hasLocalizedValue: "true", - }, + constantValue: "Featured Promotion", constantValueEnabled: true, }, }, @@ -370,12 +367,9 @@ export const PromoSection: ComponentConfig<{ props: PromoSectionProps }> = { data: { text: { field: "", - constantValue: { - en: getDefaultRTF( - "Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 100 characters" - ), - hasLocalizedValue: "true", - }, + constantValue: getDefaultRTF( + "Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 100 characters" + ), constantValueEnabled: true, }, }, @@ -429,7 +423,7 @@ export const PromoSection: ComponentConfig<{ props: PromoSectionProps }> = { props: { data: { actionType: "link", - buttonText: { en: "Button", hasLocalizedValue: "true" }, + buttonText: "Button", entityField: { field: "", constantValue: { diff --git a/packages/visual-editor/src/components/pageSections/TeamSection/TeamCard.tsx b/packages/visual-editor/src/components/pageSections/TeamSection/TeamCard.tsx index 27ad63884..826a23fee 100644 --- a/packages/visual-editor/src/components/pageSections/TeamSection/TeamCard.tsx +++ b/packages/visual-editor/src/components/pageSections/TeamSection/TeamCard.tsx @@ -30,12 +30,12 @@ import { TextProps } from "../../contentBlocks/Text.tsx"; import { syncParentStyles } from "../../../utils/cardSlots/syncParentStyles.ts"; const defaultPerson = { - name: { en: "First Last", hasLocalizedValue: "true" }, - title: { en: "Associate Agent", hasLocalizedValue: "true" }, + name: "First Last", + title: "Associate Agent", phoneNumber: "+12027706619", email: "jkelley@[company].com", cta: { - label: { en: "Visit Profile", hasLocalizedValue: "true" }, + label: "Visit Profile", link: "#", linkType: "URL", ctaType: "textAndLink", @@ -135,10 +135,7 @@ export const defaultTeamCardSlotData = ( constantValue: defaultPerson.phoneNumber, constantValueEnabled: true, }, - label: { - en: "", - hasLocalizedValue: "true", - }, + label: "", }, ], }, @@ -176,7 +173,7 @@ export const defaultTeamCardSlotData = ( ...(id && { id: `${id}-cta` }), data: { actionType: "link", - buttonText: { en: "Button", hasLocalizedValue: "true" }, + buttonText: "Button", entityField: { field: "", constantValue: defaultPerson.cta, diff --git a/packages/visual-editor/src/components/pageSections/TeamSection/TeamSection.tsx b/packages/visual-editor/src/components/pageSections/TeamSection/TeamSection.tsx index 129994ead..6c7398229 100644 --- a/packages/visual-editor/src/components/pageSections/TeamSection/TeamSection.tsx +++ b/packages/visual-editor/src/components/pageSections/TeamSection/TeamSection.tsx @@ -136,10 +136,7 @@ export const TeamSection: ComponentConfig<{ props: TeamSectionProps }> = { props: { data: { text: { - constantValue: { - en: "Meet Our Team", - hasLocalizedValue: "true", - }, + constantValue: "Meet Our Team", constantValueEnabled: true, field: "", }, diff --git a/packages/visual-editor/src/components/pageSections/TestimonialSection/TestimonialCard.tsx b/packages/visual-editor/src/components/pageSections/TestimonialSection/TestimonialCard.tsx index addcc2e0c..8b2fd9e7e 100644 --- a/packages/visual-editor/src/components/pageSections/TestimonialSection/TestimonialCard.tsx +++ b/packages/visual-editor/src/components/pageSections/TestimonialSection/TestimonialCard.tsx @@ -27,13 +27,10 @@ import { useGetCardSlots } from "../../../hooks/useGetCardSlots.tsx"; import { syncParentStyles } from "../../../utils/cardSlots/syncParentStyles.ts"; const defaultTestimonial = { - description: { - en: getDefaultRTF( - "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." - ), - hasLocalizedValue: "true", - }, - contributorName: { en: "Name", hasLocalizedValue: "true" }, + description: getDefaultRTF( + "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." + ), + contributorName: "Name", contributionDate: "2022-08-02T14:00:00", } satisfies TestimonialStruct; diff --git a/packages/visual-editor/src/components/pageSections/TestimonialSection/TestimonialSection.tsx b/packages/visual-editor/src/components/pageSections/TestimonialSection/TestimonialSection.tsx index 41dcd145c..80b514285 100644 --- a/packages/visual-editor/src/components/pageSections/TestimonialSection/TestimonialSection.tsx +++ b/packages/visual-editor/src/components/pageSections/TestimonialSection/TestimonialSection.tsx @@ -140,10 +140,7 @@ export const TestimonialSection: ComponentConfig<{ props: { data: { text: { - constantValue: { - en: "Featured Testimonials", - hasLocalizedValue: "true", - }, + constantValue: "Featured Testimonials", constantValueEnabled: true, field: "", }, diff --git a/packages/visual-editor/src/components/pageSections/VideoSection.tsx b/packages/visual-editor/src/components/pageSections/VideoSection.tsx index d0a74088a..71e0006c5 100644 --- a/packages/visual-editor/src/components/pageSections/VideoSection.tsx +++ b/packages/visual-editor/src/components/pageSections/VideoSection.tsx @@ -98,10 +98,7 @@ export const VideoSection: ComponentConfig<{ props: { data: { text: { - constantValue: { - en: "", - hasLocalizedValue: "true", - }, + constantValue: "", constantValueEnabled: true, field: "", }, diff --git a/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] latest version default props.png b/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] latest version default props.png index bff443654..74ea49faf 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] latest version default props.png and b/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] latest version default props.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/Locator/[mobile] latest version default props.png b/packages/visual-editor/src/components/testing/screenshots/Locator/[mobile] latest version default props.png index e89165ccd..6ce6524ba 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/Locator/[mobile] latest version default props.png and b/packages/visual-editor/src/components/testing/screenshots/Locator/[mobile] latest version default props.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] latest version default props.png b/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] latest version default props.png index e0e6b5035..f66008b7d 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] latest version default props.png and b/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] latest version default props.png differ diff --git a/packages/visual-editor/src/internal/puck/constant-value-fields/EnhancedCallToAction.tsx b/packages/visual-editor/src/internal/puck/constant-value-fields/EnhancedCallToAction.tsx index 85263c1aa..556582404 100644 --- a/packages/visual-editor/src/internal/puck/constant-value-fields/EnhancedCallToAction.tsx +++ b/packages/visual-editor/src/internal/puck/constant-value-fields/EnhancedCallToAction.tsx @@ -81,18 +81,13 @@ export const ENHANCED_CTA_CONSTANT_CONFIG: CustomField const updatedValue = { ...value, ctaType: newValue }; // Set defaults based on CTA type if (newValue === "presetImage") { - updatedValue.label = { en: "", hasLocalizedValue: "true" }; + updatedValue.label = ""; } else if (newValue === "getDirections") { - updatedValue.label = updatedValue?.label || { - en: "Get Directions", - hasLocalizedValue: "true", - }; + updatedValue.label = + updatedValue?.label || "Get Directions"; } else if (newValue === "textAndLink") { - updatedValue.label = updatedValue?.label || { - en: "Learn More", - hasLocalizedValue: "true", - }; - updatedValue.link = updatedValue?.link || "#"; + ((updatedValue.label = updatedValue?.label || "Learn More"), + (updatedValue.link = updatedValue?.link || "#")); updatedValue.linkType = updatedValue?.linkType || "URL"; } onChange(updatedValue); diff --git a/packages/visual-editor/src/vite-plugin/defaultLayoutData.ts b/packages/visual-editor/src/vite-plugin/defaultLayoutData.ts index 32d4edb39..c8abb190e 100644 --- a/packages/visual-editor/src/vite-plugin/defaultLayoutData.ts +++ b/packages/visual-editor/src/vite-plugin/defaultLayoutData.ts @@ -44,12 +44,9 @@ const mainDefaultLayout = { image: { field: "", constantValue: { - hasLocalizedValue: "true", - en: { - url: "https://a.mktgcdn.com/p/wa83C1O1lvtxHI9cGqEdP2HILyUzbD0jvtzwWpOAJfE/196x196.jpg", - height: 100, - width: 100, - }, + url: "https://a.mktgcdn.com/p/wa83C1O1lvtxHI9cGqEdP2HILyUzbD0jvtzwWpOAJfE/196x196.jpg", + height: 100, + width: 100, }, constantValueEnabled: true, }, @@ -70,28 +67,19 @@ const mainDefaultLayout = { links: [ { linkType: "URL", - label: { - en: "Header Link", - hasLocalizedValue: "true", - }, + label: "Header Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Header Link", - hasLocalizedValue: "true", - }, + label: "Header Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Header Link", - hasLocalizedValue: "true", - }, + label: "Header Link", link: "#", openInNewTab: false, }, @@ -117,21 +105,12 @@ const mainDefaultLayout = { data: { show: true, actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", entityField: { field: "", constantValue: { - label: { - en: "Call to Action", - hasLocalizedValue: "true", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Call to Action", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -154,21 +133,12 @@ const mainDefaultLayout = { data: { show: true, actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", entityField: { field: "", constantValue: { - label: { - en: "Call to Action", - hasLocalizedValue: "true", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Call to Action", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -211,28 +181,19 @@ const mainDefaultLayout = { links: [ { linkType: "URL", - label: { - en: "Header Link", - hasLocalizedValue: "true", - }, + label: "Header Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Header Link", - hasLocalizedValue: "true", - }, + label: "Header Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Header Link", - hasLocalizedValue: "true", - }, + label: "Header Link", link: "#", openInNewTab: false, }, @@ -291,28 +252,19 @@ const mainDefaultLayout = { links: [ { linkType: "URL", - label: { - en: "Header Link", - hasLocalizedValue: "true", - }, + label: "Header Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Header Link", - hasLocalizedValue: "true", - }, + label: "Header Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Header Link", - hasLocalizedValue: "true", - }, + label: "Header Link", link: "#", openInNewTab: false, }, @@ -352,11 +304,8 @@ const mainDefaultLayout = { text: { field: "", constantValue: { - en: { - json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Banner Text","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', - html: '

Banner Text

', - }, - hasLocalizedValue: "true", + json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Banner Text","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', + html: '

Banner Text

', }, constantValueEnabled: true, }, @@ -377,10 +326,7 @@ const mainDefaultLayout = { type: "BreadcrumbsSection", props: { data: { - directoryRoot: { - en: "Directory Root", - hasLocalizedValue: "true", - }, + directoryRoot: "Directory Root", }, styles: { backgroundColor: { @@ -402,12 +348,9 @@ const mainDefaultLayout = { backgroundImage: { field: "", constantValue: { - hasLocalizedValue: "true", - en: { - url: "https://images.unsplash.com/photo-1755745360285-0633c972b0fd?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&width=640&height=360&fit=max", - height: 360, - width: 640, - }, + url: "https://images.unsplash.com/photo-1755745360285-0633c972b0fd?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&width=640&height=360&fit=max", + height: 360, + width: 640, }, constantValueEnabled: true, }, @@ -439,10 +382,7 @@ const mainDefaultLayout = { id: "HeadingTextSlot-bb2ccf6e-ab98-4fb4-9e9b-fdcd5c6834e6", data: { text: { - constantValue: { - en: "Business Name", - hasLocalizedValue: "true", - }, + constantValue: "Business Name", constantValueEnabled: true, field: "", }, @@ -462,10 +402,7 @@ const mainDefaultLayout = { id: "HeadingTextSlot-8905a32e-da1c-42a6-b1b4-98630e328236", data: { text: { - constantValue: { - en: "Geomodifier", - hasLocalizedValue: "true", - }, + constantValue: "Geomodifier", constantValueEnabled: true, field: "", }, @@ -505,12 +442,9 @@ const mainDefaultLayout = { image: { field: "", constantValue: { - hasLocalizedValue: "true", - en: { - url: "https://images.unsplash.com/photo-1755745360285-0633c972b0fd?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&width=640&height=360&fit=max", - height: 360, - width: 640, - }, + url: "https://images.unsplash.com/photo-1755745360285-0633c972b0fd?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&width=640&height=360&fit=max", + height: 360, + width: 640, }, constantValueEnabled: true, }, @@ -532,28 +466,16 @@ const mainDefaultLayout = { id: "CTASlot-46811f58-2779-4c49-a871-26cf27454544", data: { actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", customId: "", customClass: "", dataAttributes: [], - ariaLabel: { - en: "Button", - hasLocalizedValue: "true", - }, + ariaLabel: "Button", entityField: { field: "", constantValue: { - label: { - en: "Call To Action", - hasLocalizedValue: "true", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Call to Action", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -575,28 +497,16 @@ const mainDefaultLayout = { id: "CTASlot-633345f6-c438-400b-bdf7-92dce47746bc", data: { actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", customId: "", customClass: "", dataAttributes: [], - ariaLabel: { - en: "Button", - hasLocalizedValue: "true", - }, + ariaLabel: "Button", entityField: { field: "", constantValue: { - label: { - en: "Learn More", - hasLocalizedValue: "true", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Learn More", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -640,10 +550,7 @@ const mainDefaultLayout = { id: "HeadingTextSlot-53d6582f-3f69-4224-b172-31f7ecac6824", data: { text: { - constantValue: { - en: "Information", - hasLocalizedValue: "true", - }, + constantValue: "Information", constantValueEnabled: true, field: "", }, @@ -690,10 +597,7 @@ const mainDefaultLayout = { field: "mainPhone", constantValue: "", }, - label: { - en: "Phone", - hasLocalizedValue: "true", - }, + label: "Phone", }, ], }, @@ -728,10 +632,7 @@ const mainDefaultLayout = { id: "HeadingTextSlot-05556e7b-c4ef-4251-8d94-1f57cbebb8be", data: { text: { - constantValue: { - en: "Hours", - hasLocalizedValue: "true", - }, + constantValue: "Hours", constantValueEnabled: true, field: "", }, @@ -770,10 +671,7 @@ const mainDefaultLayout = { id: "HeadingTextSlot-febfb175-cce0-4d5c-8d79-f58784bf0277", data: { text: { - constantValue: { - en: "Services", - hasLocalizedValue: "true", - }, + constantValue: "Services", constantValueEnabled: true, field: "", }, @@ -823,10 +721,8 @@ const mainDefaultLayout = { media: "image", backgroundImage: { field: "", - constantValue: { - en: "https://images.unsplash.com/photo-1755745360285-0633c972b0fd?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=900&width=1440&fit=max", - hasLocalizedValue: "true", - }, + constantValue: + "https://images.unsplash.com/photo-1755745360285-0633c972b0fd?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=900&width=1440&fit=max", constantValueEnabled: true, }, }, @@ -854,10 +750,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Featured Promotion", - hasLocalizedValue: "true", - }, + constantValue: "Featured Promotion", constantValueEnabled: true, }, }, @@ -877,11 +770,8 @@ const mainDefaultLayout = { text: { field: "", constantValue: { - en: { - json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 100 characters","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', - html: '

Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 100 characters

', - }, - hasLocalizedValue: "true", + json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 100 characters","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', + html: '

Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 100 characters

', }, constantValueEnabled: true, }, @@ -910,12 +800,9 @@ const mainDefaultLayout = { image: { field: "", constantValue: { - hasLocalizedValue: "true", - en: { - url: "https://images.unsplash.com/photo-1502252430442-aac78f397426?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", - height: 360, - width: 640, - }, + url: "https://images.unsplash.com/photo-1502252430442-aac78f397426?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", + height: 360, + width: 640, }, constantValueEnabled: true, }, @@ -941,28 +828,16 @@ const mainDefaultLayout = { id: "CTASlot-e8531a98-b8ff-4ce1-a299-11fc085eb6c3", data: { actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", customId: "", customClass: "", dataAttributes: [], - ariaLabel: { - en: "Button", - hasLocalizedValue: "true", - }, + ariaLabel: "Button", entityField: { field: "", constantValue: { - label: { - hasLocalizedValue: "true", - en: "Learn More", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Learn More", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -1008,10 +883,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Featured Products", - hasLocalizedValue: "true", - }, + constantValue: "Featured Products", constantValueEnabled: true, }, }, @@ -1073,12 +945,9 @@ const mainDefaultLayout = { image: { field: "", constantValue: { - hasLocalizedValue: "true", - en: { - url: "https://images.unsplash.com/photo-1504548840739-580b10ae7715?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", - height: 360, - width: 640, - }, + url: "https://images.unsplash.com/photo-1504548840739-580b10ae7715?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", + height: 360, + width: 640, }, constantValueEnabled: true, }, @@ -1104,10 +973,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Product Title", - hasLocalizedValue: "true", - }, + constantValue: "Product Name", constantValueEnabled: true, }, }, @@ -1127,11 +993,8 @@ const mainDefaultLayout = { text: { field: "", constantValue: { - en: { - json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', - html: '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

', - }, - hasLocalizedValue: "true", + json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', + html: '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

', }, constantValueEnabled: true, }, @@ -1149,25 +1012,16 @@ const mainDefaultLayout = { id: "ProductCard-4ddddc07-d36d-4ed3-90e8-1ca3ca2e8447-cta", data: { actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", customId: "", customClass: "", dataAttributes: [], - ariaLabel: { - en: "Button", - hasLocalizedValue: "true", - }, + ariaLabel: "Button", entityField: { field: "", constantValue: { label: "Learn More", - link: { - en: "#", - hasLocalizedValue: "true", - }, + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -1190,10 +1044,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Category, Pricing, etc", - hasLocalizedValue: "true", - }, + constantValue: "Category", constantValueEnabled: true, }, }, @@ -1212,10 +1063,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "$123.00", - hasLocalizedValue: "true", - }, + constantValue: "$123.00", constantValueEnabled: true, }, }, @@ -1260,12 +1108,9 @@ const mainDefaultLayout = { image: { field: "", constantValue: { - hasLocalizedValue: "true", - en: { - url: "https://images.unsplash.com/photo-1502252430442-aac78f397426?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", - height: 360, - width: 640, - }, + url: "https://images.unsplash.com/photo-1502252430442-aac78f397426?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", + height: 360, + width: 640, }, constantValueEnabled: true, }, @@ -1291,10 +1136,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Product Title", - hasLocalizedValue: "true", - }, + constantValue: "Product Name", constantValueEnabled: true, }, }, @@ -1314,11 +1156,8 @@ const mainDefaultLayout = { text: { field: "", constantValue: { - en: { - json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', - html: '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

', - }, - hasLocalizedValue: "true", + json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', + html: '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

', }, constantValueEnabled: true, }, @@ -1336,25 +1175,16 @@ const mainDefaultLayout = { id: "ProductCard-996096bf-bc44-4827-ab79-21e9106abf53-cta", data: { actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", customId: "", customClass: "", dataAttributes: [], - ariaLabel: { - en: "Button", - hasLocalizedValue: "true", - }, + ariaLabel: "Button", entityField: { field: "", constantValue: { label: "Learn More", - link: { - en: "#", - hasLocalizedValue: "true", - }, + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -1377,10 +1207,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Category, Pricing, etc", - hasLocalizedValue: "true", - }, + constantValue: "Category, Pricing, etc", constantValueEnabled: true, }, }, @@ -1399,10 +1226,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "$123.00", - hasLocalizedValue: "true", - }, + constantValue: "$123.00", constantValueEnabled: true, }, }, @@ -1447,12 +1271,9 @@ const mainDefaultLayout = { image: { field: "", constantValue: { - hasLocalizedValue: "true", - en: { - url: "https://images.unsplash.com/photo-1755745360285-0633c972b0fd?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", - height: 360, - width: 640, - }, + url: "https://images.unsplash.com/photo-1755745360285-0633c972b0fd?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", + height: 360, + width: 640, }, constantValueEnabled: true, }, @@ -1478,10 +1299,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Product Title", - hasLocalizedValue: "true", - }, + constantValue: "Product Name", constantValueEnabled: true, }, }, @@ -1501,11 +1319,8 @@ const mainDefaultLayout = { text: { field: "", constantValue: { - en: { - json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', - html: '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

', - }, - hasLocalizedValue: "true", + json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', + html: '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

', }, constantValueEnabled: true, }, @@ -1523,25 +1338,16 @@ const mainDefaultLayout = { id: "ProductCard-a7549442-809c-489f-9f73-4cd5c6038f51-cta", data: { actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", customId: "", customClass: "", dataAttributes: [], - ariaLabel: { - en: "Button", - hasLocalizedValue: "true", - }, + ariaLabel: "Button", entityField: { field: "", constantValue: { label: "Learn More", - link: { - en: "#", - hasLocalizedValue: "true", - }, + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -1564,10 +1370,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Category, Pricing, etc", - hasLocalizedValue: "true", - }, + constantValue: "Category, Pricing, etc", constantValueEnabled: true, }, }, @@ -1586,10 +1389,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "$123.00", - hasLocalizedValue: "true", - }, + constantValue: "$123.00", constantValueEnabled: true, }, }, @@ -1644,10 +1444,7 @@ const mainDefaultLayout = { id: "HeadingTextSlot-b4d5c262-ef79-450e-ab4b-17982eea39b2", data: { text: { - constantValue: { - en: "Featured Testimonials", - hasLocalizedValue: "true", - }, + constantValue: "Featured Testimonials", constantValueEnabled: true, field: "", }, @@ -1705,10 +1502,8 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", - hasLocalizedValue: "true", - }, + constantValue: + "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", constantValueEnabled: true, }, }, @@ -1726,10 +1521,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Name", - hasLocalizedValue: "true", - }, + constantValue: "Name", constantValueEnabled: true, }, }, @@ -1793,10 +1585,9 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", - hasLocalizedValue: "true", - }, + constantValue: + "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", + constantValueEnabled: true, }, }, @@ -1814,10 +1605,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Name", - hasLocalizedValue: "true", - }, + constantValue: "Name", constantValueEnabled: true, }, }, @@ -1881,10 +1669,8 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", - hasLocalizedValue: "true", - }, + constantValue: + "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", constantValueEnabled: true, }, }, @@ -1902,10 +1688,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Name", - hasLocalizedValue: "true", - }, + constantValue: "Name", constantValueEnabled: true, }, }, @@ -2000,10 +1783,7 @@ const mainDefaultLayout = { id: "HeadingTextSlot-c85952bc-d30c-44a8-a17c-0eff090cc35e", data: { text: { - constantValue: { - en: "Frequently Asked Questions", - hasLocalizedValue: "true", - }, + constantValue: "Frequently Asked Questions", constantValueEnabled: true, field: "", }, @@ -2024,20 +1804,14 @@ const mainDefaultLayout = { data: { question: { constantValueEnabled: true, - constantValue: { - en: "Question Lorem ipsum dolor sit amet?", - hasLocalizedValue: "true", - }, + constantValue: "Question Lorem ipsum dolor sit amet?", field: "", }, answer: { constantValueEnabled: true, constantValue: { - en: { - json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', - html: '

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

', - }, - hasLocalizedValue: "true", + json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', + html: '

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

', }, field: "", }, @@ -2056,20 +1830,14 @@ const mainDefaultLayout = { data: { question: { constantValueEnabled: true, - constantValue: { - en: "Question Lorem ipsum dolor sit amet?", - hasLocalizedValue: "true", - }, + constantValue: "Question Lorem ipsum dolor sit amet?", field: "", }, answer: { constantValueEnabled: true, constantValue: { - en: { - json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', - html: '

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

', - }, - hasLocalizedValue: "true", + json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', + html: '

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

', }, field: "", }, @@ -2088,20 +1856,14 @@ const mainDefaultLayout = { data: { question: { constantValueEnabled: true, - constantValue: { - en: "Question Lorem ipsum dolor sit amet?", - hasLocalizedValue: "true", - }, + constantValue: "Question Lorem ipsum dolor sit amet?", field: "", }, answer: { constantValueEnabled: true, constantValue: { - en: { - json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', - html: '

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

', - }, - hasLocalizedValue: "true", + json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', + html: '

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

', }, field: "", }, @@ -2134,10 +1896,7 @@ const mainDefaultLayout = { id: "HeadingTextSlot-a976e584-6a55-40c4-9ce7-6193135a059d", data: { text: { - constantValue: { - en: "Meet Our Team", - hasLocalizedValue: "true", - }, + constantValue: "Meet Our Team", constantValueEnabled: true, field: "", }, @@ -2199,12 +1958,9 @@ const mainDefaultLayout = { image: { field: "", constantValue: { - hasLocalizedValue: "true", - en: { - url: "https://a.mktgcdn.com/p/EQRaOZG5zFlcbEHYaH16EV6WmkzV8kd6vMd73Myg4AA/196x196.jpg", - height: 80, - width: 80, - }, + url: "https://a.mktgcdn.com/p/EQRaOZG5zFlcbEHYaH16EV6WmkzV8kd6vMd73Myg4AA/196x196.jpg", + height: 80, + width: 80, }, constantValueEnabled: true, }, @@ -2230,10 +1986,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "First Last", - hasLocalizedValue: "true", - }, + constantValue: "First Last", constantValueEnabled: true, }, }, @@ -2252,10 +2005,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Associate Agent", - hasLocalizedValue: "true", - }, + constantValue: "Associate Agent", constantValueEnabled: true, }, }, @@ -2280,10 +2030,7 @@ const mainDefaultLayout = { constantValue: "+12027706619", constantValueEnabled: true, }, - label: { - en: "", - hasLocalizedValue: "true", - }, + label: "", }, ], }, @@ -2321,28 +2068,16 @@ const mainDefaultLayout = { id: "CTASlot-84f00400-c27d-4cd7-aa28-a1632694b359", data: { actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", customId: "", customClass: "", dataAttributes: [], - ariaLabel: { - en: "Button", - hasLocalizedValue: "true", - }, + ariaLabel: "Button", entityField: { field: "", constantValue: { - label: { - en: "Visit Profile", - hasLocalizedValue: "true", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Visit Profile", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -2389,12 +2124,9 @@ const mainDefaultLayout = { image: { field: "", constantValue: { - hasLocalizedValue: "true", - en: { - url: "https://a.mktgcdn.com/p/EQRaOZG5zFlcbEHYaH16EV6WmkzV8kd6vMd73Myg4AA/196x196.jpg", - height: 80, - width: 80, - }, + url: "https://a.mktgcdn.com/p/EQRaOZG5zFlcbEHYaH16EV6WmkzV8kd6vMd73Myg4AA/196x196.jpg", + height: 80, + width: 80, }, constantValueEnabled: true, }, @@ -2420,10 +2152,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "First Last", - hasLocalizedValue: "true", - }, + constantValue: "First Last", constantValueEnabled: true, }, }, @@ -2442,10 +2171,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Associate Agent", - hasLocalizedValue: "true", - }, + constantValue: "Associate Agent", constantValueEnabled: true, }, }, @@ -2470,10 +2196,7 @@ const mainDefaultLayout = { constantValue: "+12027706619", constantValueEnabled: true, }, - label: { - en: "", - hasLocalizedValue: "true", - }, + label: "", }, ], }, @@ -2511,28 +2234,16 @@ const mainDefaultLayout = { id: "CTASlot-2f5fcbf5-5f6f-4f18-814d-30b6de491d0a", data: { actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", customId: "", customClass: "", dataAttributes: [], - ariaLabel: { - en: "Button", - hasLocalizedValue: "true", - }, + ariaLabel: "Button", entityField: { field: "", constantValue: { - label: { - en: "Visit Profile", - hasLocalizedValue: "true", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Visit Profile", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -2579,12 +2290,9 @@ const mainDefaultLayout = { image: { field: "", constantValue: { - hasLocalizedValue: "true", - en: { - url: "https://a.mktgcdn.com/p/EQRaOZG5zFlcbEHYaH16EV6WmkzV8kd6vMd73Myg4AA/196x196.jpg", - height: 80, - width: 80, - }, + url: "https://a.mktgcdn.com/p/EQRaOZG5zFlcbEHYaH16EV6WmkzV8kd6vMd73Myg4AA/196x196.jpg", + height: 80, + width: 80, }, constantValueEnabled: true, }, @@ -2610,10 +2318,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "First Last", - hasLocalizedValue: "true", - }, + constantValue: "First Last", constantValueEnabled: true, }, }, @@ -2632,10 +2337,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Associate Agent", - hasLocalizedValue: "true", - }, + constantValue: "Associate Agent", constantValueEnabled: true, }, }, @@ -2660,10 +2362,7 @@ const mainDefaultLayout = { constantValue: "+12027706619", constantValueEnabled: true, }, - label: { - en: "", - hasLocalizedValue: "true", - }, + label: "", }, ], }, @@ -2701,28 +2400,16 @@ const mainDefaultLayout = { id: "CTASlot-569564d0-a69a-44f6-b528-d0aacdc875e5", data: { actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", customId: "", customClass: "", dataAttributes: [], - ariaLabel: { - en: "Button", - hasLocalizedValue: "true", - }, + ariaLabel: "Button", entityField: { field: "", constantValue: { - label: { - en: "Visit Profile", - hasLocalizedValue: "true", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Visit Profile", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -2780,10 +2467,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Insights", - hasLocalizedValue: "true", - }, + constantValue: "Insights", constantValueEnabled: true, }, }, @@ -2847,12 +2531,9 @@ const mainDefaultLayout = { image: { field: "", constantValue: { - hasLocalizedValue: "true", - en: { - url: "https://images.unsplash.com/photo-1755745360285-0633c972b0fd?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", - height: 360, - width: 640, - }, + url: "https://images.unsplash.com/photo-1755745360285-0633c972b0fd?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", + height: 360, + width: 640, }, constantValueEnabled: true, }, @@ -2877,10 +2558,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Article Name", - hasLocalizedValue: "true", - }, + constantValue: "Article Name", constantValueEnabled: true, }, }, @@ -2899,10 +2577,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Category", - hasLocalizedValue: "true", - }, + constantValue: "Category", constantValueEnabled: true, }, }, @@ -2922,11 +2597,8 @@ const mainDefaultLayout = { text: { field: "", constantValue: { - en: { - json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo.Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 300 characters","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', - html: '

Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo.Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 300 characters

', - }, - hasLocalizedValue: "true", + json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo.Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 300 characters","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', + html: '

Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo.Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 300 characters

', }, constantValueEnabled: true, }, @@ -2968,28 +2640,16 @@ const mainDefaultLayout = { id: "InsightCard-1-cta", data: { actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", customId: "", customClass: "", dataAttributes: [], - ariaLabel: { - en: "Button", - hasLocalizedValue: "true", - }, + ariaLabel: "Button", entityField: { field: "", constantValue: { - label: { - en: "Read More", - hasLocalizedValue: "true", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Read More", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -3031,12 +2691,9 @@ const mainDefaultLayout = { image: { field: "", constantValue: { - hasLocalizedValue: "true", - en: { - url: "https://images.unsplash.com/photo-1502252430442-aac78f397426?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", - height: 360, - width: 640, - }, + url: "https://images.unsplash.com/photo-1502252430442-aac78f397426?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", + height: 360, + width: 640, }, constantValueEnabled: true, }, @@ -3061,10 +2718,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Article Name", - hasLocalizedValue: "true", - }, + constantValue: "Article Name", constantValueEnabled: true, }, }, @@ -3083,10 +2737,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Category", - hasLocalizedValue: "true", - }, + constantValue: "Category", constantValueEnabled: true, }, }, @@ -3106,11 +2757,8 @@ const mainDefaultLayout = { text: { field: "", constantValue: { - en: { - json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo.Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 300 characters","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', - html: '

Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo.Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 300 characters

', - }, - hasLocalizedValue: "true", + json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo.Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 300 characters","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', + html: '

Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo.Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 300 characters

', }, constantValueEnabled: true, }, @@ -3152,28 +2800,16 @@ const mainDefaultLayout = { id: "InsightCard-2-cta", data: { actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", customId: "", customClass: "", dataAttributes: [], - ariaLabel: { - en: "Button", - hasLocalizedValue: "true", - }, + ariaLabel: "Button", entityField: { field: "", constantValue: { - label: { - en: "Read More", - hasLocalizedValue: "true", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Read More", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -3215,12 +2851,9 @@ const mainDefaultLayout = { image: { field: "", constantValue: { - hasLocalizedValue: "true", - en: { - url: "https://images.unsplash.com/photo-1504548840739-580b10ae7715?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", - height: 360, - width: 640, - }, + url: "https://images.unsplash.com/photo-1504548840739-580b10ae7715?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", + height: 360, + width: 640, }, constantValueEnabled: true, }, @@ -3245,10 +2878,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Article Name", - hasLocalizedValue: "true", - }, + constantValue: "Article Name", constantValueEnabled: true, }, }, @@ -3267,10 +2897,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Category", - hasLocalizedValue: "true", - }, + constantValue: "Category", constantValueEnabled: true, }, }, @@ -3290,11 +2917,8 @@ const mainDefaultLayout = { text: { field: "", constantValue: { - en: { - json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo.Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 300 characters","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', - html: '

Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo.Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 300 characters

', - }, - hasLocalizedValue: "true", + json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo.Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 300 characters","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', + html: '

Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo.Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 300 characters

', }, constantValueEnabled: true, }, @@ -3336,28 +2960,16 @@ const mainDefaultLayout = { id: "InsightCard-3-cta", data: { actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", customId: "", customClass: "", dataAttributes: [], - ariaLabel: { - en: "Button", - hasLocalizedValue: "true", - }, + ariaLabel: "Button", entityField: { field: "", constantValue: { - label: { - en: "Read More", - hasLocalizedValue: "true", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Read More", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -3408,10 +3020,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Gallery", - hasLocalizedValue: "true", - }, + constantValue: "Gallery", constantValueEnabled: true, }, }, @@ -3500,10 +3109,7 @@ const mainDefaultLayout = { id: "HeadingTextSlot-31ae80c9-1679-427b-bb96-6d77526bac3e", data: { text: { - constantValue: { - en: "Upcoming Events", - hasLocalizedValue: "true", - }, + constantValue: "Upcoming Events", constantValueEnabled: true, field: "", }, @@ -3565,13 +3171,10 @@ const mainDefaultLayout = { image: { field: "", constantValue: { - hasLocalizedValue: "true", - en: { - url: "https://images.unsplash.com/photo-1504548840739-580b10ae7715?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", - height: 360, - width: 640, - alternateText: "Event Image", - }, + url: "https://images.unsplash.com/photo-1504548840739-580b10ae7715?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", + height: 360, + width: 640, + alternateText: "Event Image", }, constantValueEnabled: true, }, @@ -3597,10 +3200,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Event Title", - hasLocalizedValue: "true", - }, + constantValue: "Event Title", constantValueEnabled: true, }, }, @@ -3644,11 +3244,8 @@ const mainDefaultLayout = { text: { field: "", constantValue: { - en: { - json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', - html: '

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

', - }, - hasLocalizedValue: "true", + json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', + html: '

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

', }, constantValueEnabled: true, }, @@ -3669,28 +3266,16 @@ const mainDefaultLayout = { id: "EventCard-92abd8ca-550c-4aee-92d9-4140b4ef53ad-cta", data: { actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", customId: "", customClass: "", dataAttributes: [], - ariaLabel: { - en: "Button", - hasLocalizedValue: "true", - }, + ariaLabel: "Button", entityField: { field: "", constantValue: { - label: { - hasLocalizedValue: "true", - en: "Learn More", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Learn More", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -3737,13 +3322,10 @@ const mainDefaultLayout = { image: { field: "", constantValue: { - hasLocalizedValue: "true", - en: { - url: "https://images.unsplash.com/photo-1502252430442-aac78f397426?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", - height: 360, - width: 640, - alternateText: "Event Image", - }, + url: "https://images.unsplash.com/photo-1502252430442-aac78f397426?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", + height: 360, + width: 640, + alternateText: "Event Image", }, constantValueEnabled: true, }, @@ -3769,10 +3351,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Event Title", - hasLocalizedValue: "true", - }, + constantValue: "Event Title", constantValueEnabled: true, }, }, @@ -3816,11 +3395,8 @@ const mainDefaultLayout = { text: { field: "", constantValue: { - en: { - json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', - html: '

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

', - }, - hasLocalizedValue: "true", + json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', + html: '

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

', }, constantValueEnabled: true, }, @@ -3841,28 +3417,16 @@ const mainDefaultLayout = { id: "EventCard-b1fd4377-76db-433e-9803-ea5ae0d9f996-cta", data: { actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", customId: "", customClass: "", dataAttributes: [], - ariaLabel: { - en: "Button", - hasLocalizedValue: "true", - }, + ariaLabel: "Button", entityField: { field: "", constantValue: { - label: { - hasLocalizedValue: "true", - en: "Learn More", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Learn More", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -3909,13 +3473,10 @@ const mainDefaultLayout = { image: { field: "", constantValue: { - hasLocalizedValue: "true", - en: { - url: "https://images.unsplash.com/photo-1755745360285-0633c972b0fd?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", - height: 360, - width: 640, - alternateText: "Event Image", - }, + url: "https://images.unsplash.com/photo-1755745360285-0633c972b0fd?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&height=360&width=640&fit=max", + height: 360, + width: 640, + alternateText: "Event Image", }, constantValueEnabled: true, }, @@ -3941,10 +3502,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Event Title", - hasLocalizedValue: "true", - }, + constantValue: "Event Title", constantValueEnabled: true, }, }, @@ -3988,11 +3546,8 @@ const mainDefaultLayout = { text: { field: "", constantValue: { - en: { - json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', - html: '

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

', - }, - hasLocalizedValue: "true", + json: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', + html: '

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

', }, constantValueEnabled: true, }, @@ -4013,28 +3568,16 @@ const mainDefaultLayout = { id: "EventCard-90968d53-5878-4459-b3dc-0b9b75e028ea-cta", data: { actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", customId: "", customClass: "", dataAttributes: [], - ariaLabel: { - en: "Button", - hasLocalizedValue: "true", - }, + ariaLabel: "Button", entityField: { field: "", constantValue: { - label: { - hasLocalizedValue: "true", - en: "Learn More", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Learn More", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -4094,10 +3637,7 @@ const mainDefaultLayout = { data: { text: { field: "", - constantValue: { - en: "Nearby Locations", - hasLocalizedValue: "true", - }, + constantValue: "Nearby Locations", constantValueEnabled: true, }, }, @@ -4163,22 +3703,10 @@ const mainDefaultLayout = { image: { field: "", constantValue: { + url: "https://a.mktgcdn.com/p/wa83C1O1lvtxHI9cGqEdP2HILyUzbD0jvtzwWpOAJfE/196x196.jpg", height: 100, width: 100, - alternateText: { - en: "Logo", - hasLocalizedValue: "true", - }, - hasLocalizedValue: "true", - en: { - url: "https://a.mktgcdn.com/p/wa83C1O1lvtxHI9cGqEdP2HILyUzbD0jvtzwWpOAJfE/196x196.jpg", - height: 100, - width: 100, - alternateText: { - en: "Logo", - hasLocalizedValue: "true", - }, - }, + alternateText: "Logo", }, constantValueEnabled: true, }, @@ -4231,58 +3759,28 @@ const mainDefaultLayout = { links: [ { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, - link: { - hasLocalizedValue: "true", - en: "#", - }, + label: "Footer Link", + link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, - link: { - hasLocalizedValue: "true", - en: "#", - }, + label: "Footer Link", + link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, - link: { - hasLocalizedValue: "true", - en: "#", - }, + label: "Footer Link", + link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, - link: { - hasLocalizedValue: "true", - en: "#", - }, + label: "Footer Link", + link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, - link: { - hasLocalizedValue: "true", - en: "#", - }, + label: "Footer Link", + link: "#", }, ], }, @@ -4299,193 +3797,121 @@ const mainDefaultLayout = { data: { sections: [ { - label: { - en: "Footer Label", - hasLocalizedValue: "true", - }, + label: "Footer Label", links: [ { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, ], }, { - label: { - en: "Footer Label", - hasLocalizedValue: "true", - }, + label: "Footer Label", links: [ { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, ], }, { - label: { - en: "Footer Label", - hasLocalizedValue: "true", - }, + label: "Footer Label", links: [ { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, ], }, { - label: { - en: "Footer Label", - hasLocalizedValue: "true", - }, + label: "Footer Label", links: [ { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, ], @@ -4514,42 +3940,27 @@ const mainDefaultLayout = { links: [ { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", }, ], @@ -4566,10 +3977,7 @@ const mainDefaultLayout = { props: { id: "CopyrightMessageSlot-e0142469-df41-4ed7-9213-6a1ae84433e0", data: { - text: { - en: "", - hasLocalizedValue: "true", - }, + text: "", }, alignment: "left", }, @@ -4615,12 +4023,12 @@ const directoryDefaultLayout = { version: 63, title: { field: "", - constantValue: { en: "PLACEHOLDER", hasLocalizedValue: "true" }, + constantValue: "PLACEHOLDER", constantValueEnabled: true, }, description: { field: "", - constantValue: { en: "PLACEHOLDER", hasLocalizedValue: "true" }, + constantValue: "PLACEHOLDER", constantValueEnabled: true, }, }, @@ -4656,12 +4064,9 @@ const directoryDefaultLayout = { image: { field: "", constantValue: { - hasLocalizedValue: "true", - en: { - url: "https://a.mktgcdn.com/p/wa83C1O1lvtxHI9cGqEdP2HILyUzbD0jvtzwWpOAJfE/196x196.jpg", - height: 100, - width: 100, - }, + url: "https://a.mktgcdn.com/p/wa83C1O1lvtxHI9cGqEdP2HILyUzbD0jvtzwWpOAJfE/196x196.jpg", + height: 100, + width: 100, }, constantValueEnabled: true, }, @@ -4682,28 +4087,19 @@ const directoryDefaultLayout = { links: [ { linkType: "URL", - label: { - en: "Header Link", - hasLocalizedValue: "true", - }, + label: "Header Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Header Link", - hasLocalizedValue: "true", - }, + label: "Header Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Header Link", - hasLocalizedValue: "true", - }, + label: "Header Link", link: "#", openInNewTab: false, }, @@ -4729,21 +4125,12 @@ const directoryDefaultLayout = { data: { show: true, actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", entityField: { field: "", constantValue: { - label: { - en: "Call to Action", - hasLocalizedValue: "true", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Call to Action", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -4766,21 +4153,12 @@ const directoryDefaultLayout = { data: { show: true, actionType: "link", - buttonText: { - en: "Button", - hasLocalizedValue: "true", - }, + buttonText: "Button", entityField: { field: "", constantValue: { - label: { - en: "Call to Action", - hasLocalizedValue: "true", - }, - link: { - en: "#", - hasLocalizedValue: "true", - }, + label: "Call to Action", + link: "#", linkType: "URL", ctaType: "textAndLink", }, @@ -4823,28 +4201,19 @@ const directoryDefaultLayout = { links: [ { linkType: "URL", - label: { - en: "Header Link", - hasLocalizedValue: "true", - }, + label: "Header Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Header Link", - hasLocalizedValue: "true", - }, + label: "Header Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Header Link", - hasLocalizedValue: "true", - }, + label: "Header Link", link: "#", openInNewTab: false, }, @@ -4903,28 +4272,19 @@ const directoryDefaultLayout = { links: [ { linkType: "URL", - label: { - en: "Header Link", - hasLocalizedValue: "true", - }, + label: "Header Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Header Link", - hasLocalizedValue: "true", - }, + label: "Header Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Header Link", - hasLocalizedValue: "true", - }, + label: "Header Link", link: "#", openInNewTab: false, }, @@ -4971,10 +4331,7 @@ const directoryDefaultLayout = { id: "HeadingTextSlot-1a871989-a34d-426c-b24a-a1888c1a46ea", data: { text: { - constantValue: { - en: "", - hasLocalizedValue: "true", - }, + constantValue: "", constantValueEnabled: false, field: "name", }, @@ -4990,7 +4347,7 @@ const directoryDefaultLayout = { id: "HeadingTextSlot-9a120ff6-d494-4ec8-9ab8-e43017d77c03", data: { text: { - constantValue: { en: "", hasLocalizedValue: "true" }, + constantValue: "", constantValueEnabled: true, field: "name", }, @@ -5005,10 +4362,7 @@ const directoryDefaultLayout = { props: { id: "BreadcrumbsSlot-13dba298-abd1-4f75-a7e9-b19779a4fc5b", data: { - directoryRoot: { - en: "Directory Root", - hasLocalizedValue: "true", - }, + directoryRoot: "Directory Root", }, styles: { backgroundColor: { @@ -5052,7 +4406,7 @@ const directoryDefaultLayout = { url: "https://a.mktgcdn.com/p/wa83C1O1lvtxHI9cGqEdP2HILyUzbD0jvtzwWpOAJfE/196x196.jpg", height: 100, width: 100, - alternateText: { en: "Logo", hasLocalizedValue: "true" }, + alternateText: "Logo", }, constantValueEnabled: true, }, @@ -5097,31 +4451,31 @@ const directoryDefaultLayout = { links: [ { linkType: "URL", - label: { en: "Footer Link", hasLocalizedValue: "true" }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { en: "Footer Link", hasLocalizedValue: "true" }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { en: "Footer Link", hasLocalizedValue: "true" }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { en: "Footer Link", hasLocalizedValue: "true" }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { en: "Footer Link", hasLocalizedValue: "true" }, + label: "Footer Link", link: "#", openInNewTab: false, }, @@ -5140,200 +4494,140 @@ const directoryDefaultLayout = { data: { sections: [ { - label: { en: "Footer Label", hasLocalizedValue: "true" }, + label: "Footer Label", links: [ { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, ], }, { - label: { en: "Footer Label", hasLocalizedValue: "true" }, + label: "Footer Label", links: [ { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, ], }, { - label: { en: "Footer Label", hasLocalizedValue: "true" }, + label: "Footer Label", links: [ { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, ], }, { - label: { en: "Footer Label", hasLocalizedValue: "true" }, + label: "Footer Label", links: [ { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, @@ -5368,46 +4662,31 @@ const directoryDefaultLayout = { links: [ { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, { linkType: "URL", - label: { - en: "Footer Link", - hasLocalizedValue: "true", - }, + label: "Footer Link", link: "#", openInNewTab: false, }, @@ -5424,7 +4703,7 @@ const directoryDefaultLayout = { type: "CopyrightMessageSlot", props: { id: "CopyrightMessageSlot-65eda140-da7c-4ad5-9bb7-f017a433277b", - data: { text: { en: "", hasLocalizedValue: "true" } }, + data: { text: "" }, alignment: "left", }, }, @@ -5460,15 +4739,12 @@ const locatorDefaultLayout = { version: 63, title: { field: "", - constantValue: { en: "Find Locations", hasLocalizedValue: "true" }, + constantValue: "Find Locations", constantValueEnabled: true, }, description: { field: "", - constantValue: { - en: "Find the right location for you.", - hasLocalizedValue: "true", - }, + constantValue: "Find the right location for you.", constantValueEnabled: true, }, }, @@ -5478,10 +4754,7 @@ const locatorDefaultLayout = { type: "Locator", props: { pageHeading: { - title: { - en: "Find a Location", - hasLocalizedValue: "true", - }, + title: "Find a Location", }, id: "Locator-2ae506f4-a3ee-46ea-b5f9-e4c3236243a7", mapStyle: "mapbox://styles/mapbox/streets-v12",