diff --git a/packages/visual-editor/locales/cs/visual-editor.json b/packages/visual-editor/locales/cs/visual-editor.json index 8181d8303..6d42b005d 100644 --- a/packages/visual-editor/locales/cs/visual-editor.json +++ b/packages/visual-editor/locales/cs/visual-editor.json @@ -29,6 +29,9 @@ "send": "Odeslat ke schválení", "writeComment": "Napište svůj komentář zde ..." }, + "aria": { + "opensInNewTab": "{{label}} (otevře se na nové kartě)" + }, "ariaLabelAppGallery": "Prozkoumejte to na {{serviceName}}", "ariaLabelAppStore": "Stáhnout na {{serviceName}}", "ariaLabelGalaxyStore": "Dostupné na {{serviceName}}", @@ -279,7 +282,7 @@ "linkType": "Typ odkazu", "linkedInLink": "LinkedIn Link", "links": "Odkazy", - "linksAlignment": "Sladění odkazů", + "linksPosition": "Pozice odkazů", "listLength": "Délka seznamu", "liveVisibility": "Viditelné na živé stránce", "localGeomodifier": "Místní geomodifikátor", @@ -299,6 +302,7 @@ "mobileContentAlignment": "Zarovnání mobilního obsahu", "mobileImagePosition": "Pozice mobilního obrazu", "name": "Jméno", + "openInNewTab": "Otevřít na nové kartě", "options": { "aspectRatio": "Poměr stran", "base": "Báze", diff --git a/packages/visual-editor/locales/da/visual-editor.json b/packages/visual-editor/locales/da/visual-editor.json index 91b0b8932..a1b7f81f3 100644 --- a/packages/visual-editor/locales/da/visual-editor.json +++ b/packages/visual-editor/locales/da/visual-editor.json @@ -29,6 +29,9 @@ "send": "Send til godkendelse", "writeComment": "Skriv din kommentar her ..." }, + "aria": { + "opensInNewTab": "{{label}} (åbner i en ny fane)" + }, "ariaLabelAppGallery": "Udforsk det på {{serviceName}}", "ariaLabelAppStore": "Download på {{serviceName}}", "ariaLabelGalaxyStore": "Tilgængelig på {{serviceName}}", @@ -279,7 +282,7 @@ "linkType": "Linktype", "linkedInLink": "LinkedIn -link", "links": "Links", - "linksAlignment": "Links justering", + "linksPosition": "Links position", "listLength": "Liste længde", "liveVisibility": "Synlig på live side", "localGeomodifier": "Lokal geomodifier", @@ -299,6 +302,7 @@ "mobileContentAlignment": "Mobilindholdsjustering", "mobileImagePosition": "Mobil billedposition", "name": "Navn", + "openInNewTab": "Åbn i ny fane", "options": { "aspectRatio": "Aspektforhold", "base": "Grundlag", diff --git a/packages/visual-editor/locales/de/visual-editor.json b/packages/visual-editor/locales/de/visual-editor.json index 838cdf0ff..2b9879134 100644 --- a/packages/visual-editor/locales/de/visual-editor.json +++ b/packages/visual-editor/locales/de/visual-editor.json @@ -29,6 +29,9 @@ "send": "Genehmigung senden", "writeComment": "Schreiben Sie Ihren Kommentar hier ..." }, + "aria": { + "opensInNewTab": "{{label}} (öffnet sich in einem neuen Tab)" + }, "ariaLabelAppGallery": "Entdecken Sie es auf {{serviceName}}", "ariaLabelAppStore": "Herunterladen auf {{serviceName}}", "ariaLabelGalaxyStore": "Verfügbar auf {{serviceName}}", @@ -277,7 +280,7 @@ "linkType": "Verbindungsart", "linkedInLink": "LinkedIn Link", "links": "Links", - "linksAlignment": "Links Ausrichtung", + "linksPosition": "Linkposition", "listLength": "Listenlänge", "liveVisibility": "Auf der Live -Seite sichtbar", "localGeomodifier": "Lokaler Geomodifier", @@ -297,6 +300,7 @@ "mobileContentAlignment": "Ausrichtung des mobilen Inhalts", "mobileImagePosition": "Mobile Bildposition", "name": "Name", + "openInNewTab": "In neuem Tab öffnen", "options": { "aspectRatio": "Seitenverhältnis", "base": "Base", diff --git a/packages/visual-editor/locales/en-GB/visual-editor.json b/packages/visual-editor/locales/en-GB/visual-editor.json index 5951d2e0d..cbd3d150d 100644 --- a/packages/visual-editor/locales/en-GB/visual-editor.json +++ b/packages/visual-editor/locales/en-GB/visual-editor.json @@ -29,6 +29,9 @@ "send": "Send for Approval", "writeComment": "Write your comment here..." }, + "aria": { + "opensInNewTab": "{{label}} (opens in a new tab)" + }, "ariaLabelAppGallery": "Explore it on {{serviceName}}", "ariaLabelAppStore": "Download on the {{serviceName}}", "ariaLabelGalaxyStore": "Available on {{serviceName}}", @@ -271,7 +274,7 @@ "linkType": "Link Type", "linkedInLink": "LinkedIn Link", "links": "Links", - "linksAlignment": "Links Alignment", + "linksPosition": "Links Position", "listLength": "List Length", "liveVisibility": "Visible on Live Page", "localGeomodifier": "Local GeoModifier", @@ -291,6 +294,7 @@ "mobileContentAlignment": "Mobile Content Alignment", "mobileImagePosition": "Mobile Image Position", "name": "Name", + "openInNewTab": "Open in new tab", "options": { "aspectRatio": "Aspect Ratio", "base": "Base", diff --git a/packages/visual-editor/locales/en/visual-editor.json b/packages/visual-editor/locales/en/visual-editor.json index 9bf593a09..3a4613f5c 100644 --- a/packages/visual-editor/locales/en/visual-editor.json +++ b/packages/visual-editor/locales/en/visual-editor.json @@ -29,6 +29,9 @@ "send": "Send for Approval", "writeComment": "Write your comment here..." }, + "aria": { + "opensInNewTab": "{{label}} (opens in a new tab)" + }, "ariaLabelAppGallery": "Explore it on {{serviceName}}", "ariaLabelAppStore": "Download on the {{serviceName}}", "ariaLabelGalaxyStore": "Available on {{serviceName}}", @@ -271,7 +274,7 @@ "linkType": "Link Type", "linkedInLink": "LinkedIn Link", "links": "Links", - "linksAlignment": "Links Alignment", + "linksPosition": "Links Position", "listLength": "List Length", "liveVisibility": "Visible on Live Page", "localGeomodifier": "Local GeoModifier", @@ -291,6 +294,7 @@ "mobileContentAlignment": "Mobile Content Alignment", "mobileImagePosition": "Mobile Image Position", "name": "Name", + "openInNewTab": "Open in new tab", "options": { "aspectRatio": "Aspect Ratio", "base": "Base", diff --git a/packages/visual-editor/locales/es/visual-editor.json b/packages/visual-editor/locales/es/visual-editor.json index 7b6929cfc..4753f83b6 100644 --- a/packages/visual-editor/locales/es/visual-editor.json +++ b/packages/visual-editor/locales/es/visual-editor.json @@ -29,6 +29,9 @@ "send": "Enviar para su aprobación", "writeComment": "Escribe tu comentario aquí ..." }, + "aria": { + "opensInNewTab": "{{label}} (se abre en una nueva pestaña)" + }, "ariaLabelAppGallery": "Exploralo en {{serviceName}}", "ariaLabelAppStore": "Descargar en {{serviceName}}", "ariaLabelGalaxyStore": "Disponible en {{serviceName}}", @@ -271,7 +274,7 @@ "linkType": "Tipo de enlace", "linkedInLink": "LinkedIn Link", "links": "Campo de golf", - "linksAlignment": "Alineación de enlaces", + "linksPosition": "Posición de los enlaces", "listLength": "Longitud de la lista", "liveVisibility": "Visible en la página en vivo", "localGeomodifier": "Geomodificador local", @@ -291,6 +294,7 @@ "mobileContentAlignment": "Alineación de contenido móvil", "mobileImagePosition": "Posición de imagen móvil", "name": "Nombre", + "openInNewTab": "Abrir en nueva pestaña", "options": { "aspectRatio": "Relación de aspecto", "base": "Base", diff --git a/packages/visual-editor/locales/et/visual-editor.json b/packages/visual-editor/locales/et/visual-editor.json index 0dd8761b5..78aee3bff 100644 --- a/packages/visual-editor/locales/et/visual-editor.json +++ b/packages/visual-editor/locales/et/visual-editor.json @@ -29,6 +29,9 @@ "send": "Saada heakskiitu", "writeComment": "Kirjutage oma kommentaar siia ..." }, + "aria": { + "opensInNewTab": "{{label}} (avaneb uuel vahelehel)" + }, "ariaLabelAppGallery": "Avastage seda teenuses {{serviceName}}", "ariaLabelAppStore": "Laadige alla teenusest {{serviceName}}", "ariaLabelGalaxyStore": "Saadaval teenuses {{serviceName}}", @@ -272,7 +275,7 @@ "linkType": "Lingi tüüp", "linkedInLink": "LinkedIn Link", "links": "Lingid", - "linksAlignment": "Linkide joondamine", + "linksPosition": "Linkide asukoht", "listLength": "Nimekirja pikkus", "liveVisibility": "Nähtav live -lehel", "localGeomodifier": "Kohalik geomodifikaator", @@ -292,6 +295,7 @@ "mobileContentAlignment": "Mobiilse sisu joondamine", "mobileImagePosition": "Mobiilse pildipositsioon", "name": "Nimetus", + "openInNewTab": "Ava uuel vahelehel", "options": { "aspectRatio": "Kuvasuhe", "base": "Alus", diff --git a/packages/visual-editor/locales/fi/visual-editor.json b/packages/visual-editor/locales/fi/visual-editor.json index 84e50a07d..ee4db571c 100644 --- a/packages/visual-editor/locales/fi/visual-editor.json +++ b/packages/visual-editor/locales/fi/visual-editor.json @@ -29,6 +29,9 @@ "send": "Lähetä hyväksyntä", "writeComment": "Kirjoita kommenttisi tähän ..." }, + "aria": { + "opensInNewTab": "{{label}} (avautuu uuteen välilehteen)" + }, "ariaLabelAppGallery": "Tutustu siihen palvelussa {{serviceName}}", "ariaLabelAppStore": "Lataa palvelusta {{serviceName}}", "ariaLabelGalaxyStore": "Saatavilla palvelussa {{serviceName}}", @@ -272,7 +275,7 @@ "linkType": "Linkkityyppi", "linkedInLink": "LinkedIn -linkki", "links": "Linkit", - "linksAlignment": "Linkkien suuntaus", + "linksPosition": "Linkkien sijainti", "listLength": "Listata pituus", "liveVisibility": "Näkyvissä live -sivulla", "localGeomodifier": "Paikallinen geomodifoija", @@ -292,6 +295,7 @@ "mobileContentAlignment": "Mobiilisisällön kohdistus", "mobileImagePosition": "Mobiili kuvan sijainti", "name": "Nimi", + "openInNewTab": "Avaa uudessa välilehdessä", "options": { "aspectRatio": "Kuvasuhde", "base": "Pohja", diff --git a/packages/visual-editor/locales/fr/visual-editor.json b/packages/visual-editor/locales/fr/visual-editor.json index a4d1b6864..b2253ae22 100644 --- a/packages/visual-editor/locales/fr/visual-editor.json +++ b/packages/visual-editor/locales/fr/visual-editor.json @@ -29,6 +29,9 @@ "send": "Envoyer l'approbation", "writeComment": "Écrivez votre commentaire ici ..." }, + "aria": { + "opensInNewTab": "{{label}} (s'ouvre dans un nouvel onglet)" + }, "ariaLabelAppGallery": "Découvrez-le sur {{serviceName}}", "ariaLabelAppStore": "Télécharger sur le {{serviceName}}", "ariaLabelGalaxyStore": "Disponible sur {{serviceName}}", @@ -271,7 +274,7 @@ "linkType": "Type de liaison", "linkedInLink": "Lien linkedin", "links": "Links", - "linksAlignment": "Alignement des liens", + "linksPosition": "Position des liens", "listLength": "Longueur de liste", "liveVisibility": "Visible sur la page en direct", "localGeomodifier": "Géomodificateur local", @@ -291,6 +294,7 @@ "mobileContentAlignment": "Alignement du contenu mobile", "mobileImagePosition": "Position d'image mobile", "name": "Nom", + "openInNewTab": "Ouvrir dans un nouvel onglet", "options": { "aspectRatio": "Rapport d'aspect", "base": "Base", diff --git a/packages/visual-editor/locales/hr/visual-editor.json b/packages/visual-editor/locales/hr/visual-editor.json index ca44dd827..507547a46 100644 --- a/packages/visual-editor/locales/hr/visual-editor.json +++ b/packages/visual-editor/locales/hr/visual-editor.json @@ -29,6 +29,9 @@ "send": "Pošaljite na odobrenje", "writeComment": "Napišite svoj komentar ovdje ..." }, + "aria": { + "opensInNewTab": "{{label}} (otvara se u novoj kartici)" + }, "ariaLabelAppGallery": "Istražite na {{serviceName}}", "ariaLabelAppStore": "Preuzmite na {{serviceName}}", "ariaLabelGalaxyStore": "Dostupno na {{serviceName}}", @@ -272,7 +275,7 @@ "linkType": "Vrsta veze", "linkedInLink": "LinkedIn veza", "links": "Veze", - "linksAlignment": "Poravnanje veza", + "linksPosition": "Linkovi Pozicija", "listLength": "Dužina popisa", "liveVisibility": "Vidljivo na stranici uživo", "localGeomodifier": "Lokalni geomodifikator", @@ -292,6 +295,7 @@ "mobileContentAlignment": "Poravnavanje mobilnog sadržaja", "mobileImagePosition": "Položaj mobilne slike", "name": "Ime", + "openInNewTab": "Otvori u novoj kartici", "options": { "aspectRatio": "Omjer slike", "base": "Baza", diff --git a/packages/visual-editor/locales/hu/visual-editor.json b/packages/visual-editor/locales/hu/visual-editor.json index 14eab6cae..7cdcf62c4 100644 --- a/packages/visual-editor/locales/hu/visual-editor.json +++ b/packages/visual-editor/locales/hu/visual-editor.json @@ -29,6 +29,9 @@ "send": "Küldje el jóváhagyásra", "writeComment": "Írja ide a megjegyzését ..." }, + "aria": { + "opensInNewTab": "{{label}} (új lapon nyílik meg)" + }, "ariaLabelAppGallery": "Fedezze fel a(z) {{serviceName}} szolgáltatásban", "ariaLabelAppStore": "Letöltés a(z) {{serviceName}} webhelyről", "ariaLabelGalaxyStore": "Elérhető itt: {{serviceName}}", @@ -272,7 +275,7 @@ "linkType": "Linktípus", "linkedInLink": "LinkedIn Link", "links": "Linkek", - "linksAlignment": "Linkek igazítás", + "linksPosition": "Linkek Pozíció", "listLength": "Lista hossza", "liveVisibility": "Látható az élő oldalon", "localGeomodifier": "Helyi geomodifier", @@ -292,6 +295,7 @@ "mobileContentAlignment": "Mobil tartalom igazítása", "mobileImagePosition": "Mobil képpozíció", "name": "Név", + "openInNewTab": "Megnyitás új lapon", "options": { "aspectRatio": "Oldal arány", "base": "Bázis", diff --git a/packages/visual-editor/locales/it/visual-editor.json b/packages/visual-editor/locales/it/visual-editor.json index f53ea1682..f5fe6d55d 100644 --- a/packages/visual-editor/locales/it/visual-editor.json +++ b/packages/visual-editor/locales/it/visual-editor.json @@ -29,6 +29,9 @@ "send": "Invia per l'approvazione", "writeComment": "Scrivi il tuo commento qui ..." }, + "aria": { + "opensInNewTab": "{{label}} (si apre in una nuova scheda)" + }, "ariaLabelAppGallery": "Esploralo su {{serviceName}}", "ariaLabelAppStore": "Scarica su {{serviceName}}", "ariaLabelGalaxyStore": "Disponibile su {{serviceName}}", @@ -272,7 +275,7 @@ "linkType": "Tipo di collegamento", "linkedInLink": "LinkedIn Link", "links": "Link", - "linksAlignment": "Allineamento dei collegamenti", + "linksPosition": "Posizione dei collegamenti", "listLength": "Lunghezza dell'elenco", "liveVisibility": "Visibile sulla pagina live", "localGeomodifier": "Geomodificatore locale", @@ -292,6 +295,7 @@ "mobileContentAlignment": "Allineamento dei contenuti mobili", "mobileImagePosition": "Posizione dell'immagine mobile", "name": "Nome", + "openInNewTab": "Apri in una nuova scheda", "options": { "aspectRatio": "Proporzioni", "base": "Base", diff --git a/packages/visual-editor/locales/ja/visual-editor.json b/packages/visual-editor/locales/ja/visual-editor.json index 7ae3f06b0..bbfd90e04 100644 --- a/packages/visual-editor/locales/ja/visual-editor.json +++ b/packages/visual-editor/locales/ja/visual-editor.json @@ -29,6 +29,9 @@ "send": "承認のために送信します", "writeComment": "ここにあなたのコメントを書いてください..." }, + "aria": { + "opensInNewTab": "{{label}} (新しいタブで開きます)" + }, "ariaLabelAppGallery": "{{serviceName}} で調べてみる", "ariaLabelAppStore": "{{serviceName}} でダウンロード", "ariaLabelGalaxyStore": "{{serviceName}} で利用可能", @@ -272,7 +275,7 @@ "linkType": "リンクタイプ", "linkedInLink": "LinkedInリンク", "links": "リンク", - "linksAlignment": "リンクアライメント", + "linksPosition": "リンクの位置", "listLength": "リストの長さ", "liveVisibility": "ライブページに表示されます", "localGeomodifier": "ローカルジオモジファイア", @@ -292,6 +295,7 @@ "mobileContentAlignment": "モバイルコンテンツアライメント", "mobileImagePosition": "モバイルイメージの位置", "name": "名前", + "openInNewTab": "新しいタブで開く", "options": { "aspectRatio": "アスペクト比", "base": "ベース", diff --git a/packages/visual-editor/locales/lt/visual-editor.json b/packages/visual-editor/locales/lt/visual-editor.json index 4ac5ff1ee..427b95bba 100644 --- a/packages/visual-editor/locales/lt/visual-editor.json +++ b/packages/visual-editor/locales/lt/visual-editor.json @@ -29,6 +29,9 @@ "send": "Siųsti patvirtinti", "writeComment": "Parašykite savo komentarą čia ..." }, + "aria": { + "opensInNewTab": "{{label}} (atidaroma naujame skirtuke)" + }, "ariaLabelAppGallery": "Naršykite jį {{serviceName}}", "ariaLabelAppStore": "Atsisiųskite iš {{serviceName}}", "ariaLabelGalaxyStore": "Galima {{serviceName}}", @@ -272,7 +275,7 @@ "linkType": "Nuorodos tipas", "linkedInLink": "„LinkedIn“ nuoroda", "links": "Nuorodos", - "linksAlignment": "Nuorodos suderinimas", + "linksPosition": "Nuorodų padėtis", "listLength": "Sąrašo ilgis", "liveVisibility": "Matomas tiesioginiame puslapyje", "localGeomodifier": "Vietinis geomodiferis", @@ -292,6 +295,7 @@ "mobileContentAlignment": "Mobiliojo turinio suderinimas", "mobileImagePosition": "Mobiliojo vaizdo padėtis", "name": "Vardas", + "openInNewTab": "Atidaryti naujame skirtuke", "options": { "aspectRatio": "Kraštinių santykis", "base": "Bazė", diff --git a/packages/visual-editor/locales/lv/visual-editor.json b/packages/visual-editor/locales/lv/visual-editor.json index 6200dfd9d..6b06756e5 100644 --- a/packages/visual-editor/locales/lv/visual-editor.json +++ b/packages/visual-editor/locales/lv/visual-editor.json @@ -29,6 +29,9 @@ "send": "Nosūtīt apstiprināšanai", "writeComment": "Uzrakstiet savu komentāru šeit ..." }, + "aria": { + "opensInNewTab": "{{label}} (tiek atvērta jaunā cilnē)" + }, "ariaLabelAppGallery": "Izpētiet to pakalpojumā {{serviceName}}", "ariaLabelAppStore": "Lejupielādēt pakalpojumā {{serviceName}}", "ariaLabelGalaxyStore": "Pieejams pakalpojumā {{serviceName}}", @@ -272,7 +275,7 @@ "linkType": "Saites tips", "linkedInLink": "LinkedIn saite", "links": "Saites", - "linksAlignment": "Saišu izlīdzināšana", + "linksPosition": "Saišu pozīcija", "listLength": "Saraksta garums", "liveVisibility": "Redzams tiešraides lapā", "localGeomodifier": "Vietējais ģeomodifieris", @@ -292,6 +295,7 @@ "mobileContentAlignment": "Mobilā satura izlīdzināšana", "mobileImagePosition": "Mobilā attēla pozīcija", "name": "Nosaukt", + "openInNewTab": "Atvērt jaunā cilnē", "options": { "aspectRatio": "Malu attiecība", "base": "Pamatne", diff --git a/packages/visual-editor/locales/nb/visual-editor.json b/packages/visual-editor/locales/nb/visual-editor.json index c92099228..ed361a8f1 100644 --- a/packages/visual-editor/locales/nb/visual-editor.json +++ b/packages/visual-editor/locales/nb/visual-editor.json @@ -29,6 +29,9 @@ "send": "Send for godkjenning", "writeComment": "Skriv kommentaren din her ..." }, + "aria": { + "opensInNewTab": "{{label}} (åpnes i en ny fane)" + }, "ariaLabelAppGallery": "Utforsk det på {{serviceName}}", "ariaLabelAppStore": "Last ned på {{serviceName}}", "ariaLabelGalaxyStore": "Tilgjengelig på {{serviceName}}", @@ -272,7 +275,7 @@ "linkType": "Link Type", "linkedInLink": "LinkedIn Link", "links": "Lenker", - "linksAlignment": "Koblinger justering", + "linksPosition": "Linker Posisjon", "listLength": "Listelengde", "liveVisibility": "Synlig på live side", "localGeomodifier": "Lokal geomodifier", @@ -292,6 +295,7 @@ "mobileContentAlignment": "Mobilinnholdsinnretning", "mobileImagePosition": "Mobil bildeposisjon", "name": "Navn", + "openInNewTab": "Åpne i ny fane", "options": { "aspectRatio": "Aspektforhold", "base": "Base", diff --git a/packages/visual-editor/locales/nl/visual-editor.json b/packages/visual-editor/locales/nl/visual-editor.json index 1b9acec18..051436f15 100644 --- a/packages/visual-editor/locales/nl/visual-editor.json +++ b/packages/visual-editor/locales/nl/visual-editor.json @@ -29,6 +29,9 @@ "send": "Stuur voor goedkeuring", "writeComment": "Schrijf hier je opmerking ..." }, + "aria": { + "opensInNewTab": "{{label}} (wordt geopend in een nieuw tabblad)" + }, "ariaLabelAppGallery": "Ontdek het op {{serviceName}}", "ariaLabelAppStore": "Downloaden op de {{serviceName}}", "ariaLabelGalaxyStore": "Beschikbaar op {{serviceName}}", @@ -272,7 +275,7 @@ "linkType": "Linktype", "linkedInLink": "LinkedIn -link", "links": "Links", - "linksAlignment": "Verbindt afstemming", + "linksPosition": "Links Positie", "listLength": "Maak een lijst van lengte", "liveVisibility": "Zichtbaar op live pagina", "localGeomodifier": "Lokale geomodifier", @@ -292,6 +295,7 @@ "mobileContentAlignment": "Mobiele inhoud afstemming", "mobileImagePosition": "Mobiele afbeeldingspositie", "name": "Naam", + "openInNewTab": "Openen in nieuw tabblad", "options": { "aspectRatio": "Beeldverhouding", "base": "Baseren", diff --git a/packages/visual-editor/locales/pl/visual-editor.json b/packages/visual-editor/locales/pl/visual-editor.json index 99fcc2159..346335e53 100644 --- a/packages/visual-editor/locales/pl/visual-editor.json +++ b/packages/visual-editor/locales/pl/visual-editor.json @@ -29,6 +29,9 @@ "send": "Wyślij do zatwierdzenia", "writeComment": "Napisz swój komentarz tutaj ..." }, + "aria": { + "opensInNewTab": "{{label}} (otwiera się w nowej karcie)" + }, "ariaLabelAppGallery": "Odkryj to w {{serviceName}}", "ariaLabelAppStore": "Pobierz na {{serviceName}}", "ariaLabelGalaxyStore": "Dostępne w {{serviceName}}", @@ -273,7 +276,7 @@ "linkType": "Typ linku", "linkedInLink": "Link LinkedIn", "links": "Spinki do mankietów", - "linksAlignment": "Wyrównanie linków", + "linksPosition": "Pozycja Linków", "listLength": "Długość listy", "liveVisibility": "Widoczne na stronie na żywo", "localGeomodifier": "Lokalny geomodyfikator", @@ -293,6 +296,7 @@ "mobileContentAlignment": "Wyrównanie treści mobilnych", "mobileImagePosition": "Pozycja obrazu mobilnego", "name": "Nazwa", + "openInNewTab": "Otwórz w nowej karcie", "options": { "aspectRatio": "Współczynnik kształtu", "base": "Opierać", diff --git a/packages/visual-editor/locales/pt/visual-editor.json b/packages/visual-editor/locales/pt/visual-editor.json index 5c93ace8a..a3068e133 100644 --- a/packages/visual-editor/locales/pt/visual-editor.json +++ b/packages/visual-editor/locales/pt/visual-editor.json @@ -29,6 +29,9 @@ "send": "Enviar aprovação", "writeComment": "Escreva seu comentário aqui ..." }, + "aria": { + "opensInNewTab": "{{label}} (abre em uma nova guia)" + }, "ariaLabelAppGallery": "Explore-o em {{serviceName}}", "ariaLabelAppStore": "Baixe no {{serviceName}}", "ariaLabelGalaxyStore": "Disponível em {{serviceName}}", @@ -272,7 +275,7 @@ "linkType": "Tipo de link", "linkedInLink": "Link LinkedIn", "links": "Links", - "linksAlignment": "Alinhamento de links", + "linksPosition": "Posição dos links", "listLength": "Comprimento da lista", "liveVisibility": "Visível na página ao vivo", "localGeomodifier": "Geomodificador local", @@ -292,6 +295,7 @@ "mobileContentAlignment": "Alinhamento de conteúdo móvel", "mobileImagePosition": "Posição da imagem móvel", "name": "Nome", + "openInNewTab": "Abrir em nova aba", "options": { "aspectRatio": "Proporção de aspecto", "base": "Base", diff --git a/packages/visual-editor/locales/ro/visual-editor.json b/packages/visual-editor/locales/ro/visual-editor.json index 5d052a972..592baa5c9 100644 --- a/packages/visual-editor/locales/ro/visual-editor.json +++ b/packages/visual-editor/locales/ro/visual-editor.json @@ -29,6 +29,9 @@ "send": "Trimiteți pentru aprobare", "writeComment": "Scrie -ți comentariul aici ..." }, + "aria": { + "opensInNewTab": "{{label}} (se deschide într-o filă nouă)" + }, "ariaLabelAppGallery": "Explorează-l pe {{serviceName}}", "ariaLabelAppStore": "Descărcați de pe {{serviceName}}", "ariaLabelGalaxyStore": "Disponibil pe {{serviceName}}", @@ -272,7 +275,7 @@ "linkType": "Tip de legătură", "linkedInLink": "LinkedIn Link", "links": "Link -uri", - "linksAlignment": "Alinierea legăturilor", + "linksPosition": "Poziția legăturilor", "listLength": "Lungimea listei", "liveVisibility": "Vizibil pe pagina live", "localGeomodifier": "Geomodificator local", @@ -292,6 +295,7 @@ "mobileContentAlignment": "Alinierea conținutului mobil", "mobileImagePosition": "Poziția imaginii mobile", "name": "Nume", + "openInNewTab": "Deschide într-o filă nouă", "options": { "aspectRatio": "Raport de aspect", "base": "Baza", diff --git a/packages/visual-editor/locales/sk/visual-editor.json b/packages/visual-editor/locales/sk/visual-editor.json index d01b0face..294c817e4 100644 --- a/packages/visual-editor/locales/sk/visual-editor.json +++ b/packages/visual-editor/locales/sk/visual-editor.json @@ -29,6 +29,9 @@ "send": "Poslať na schválenie", "writeComment": "Napíš sem svoj komentár ..." }, + "aria": { + "opensInNewTab": "{{label}} (otvorí sa na novej karte)" + }, "ariaLabelAppGallery": "Preskúmajte to na {{serviceName}}", "ariaLabelAppStore": "Stiahnite si na {{serviceName}}", "ariaLabelGalaxyStore": "Dostupné na {{serviceName}}", @@ -273,7 +276,7 @@ "linkType": "Typ odkazu", "linkedInLink": "LinkedIn link", "links": "Odkazy", - "linksAlignment": "Zarovnanie odkazov", + "linksPosition": "Pozícia odkazov", "listLength": "Dĺžka zoznamu", "liveVisibility": "Viditeľné na živej stránke", "localGeomodifier": "Miestny geomodifikátor", @@ -293,6 +296,7 @@ "mobileContentAlignment": "Zarovnanie mobilného obsahu", "mobileImagePosition": "Pozícia mobilného obrazu", "name": "Menovať", + "openInNewTab": "Otvoriť na novej karte", "options": { "aspectRatio": "Miera strán", "base": "Základňa", diff --git a/packages/visual-editor/locales/sv/visual-editor.json b/packages/visual-editor/locales/sv/visual-editor.json index 226734370..80766e839 100644 --- a/packages/visual-editor/locales/sv/visual-editor.json +++ b/packages/visual-editor/locales/sv/visual-editor.json @@ -29,6 +29,9 @@ "send": "Skicka för godkännande", "writeComment": "Skriv din kommentar här ..." }, + "aria": { + "opensInNewTab": "{{label}} (öppnas i en ny flik)" + }, "ariaLabelAppGallery": "Utforska det på {{serviceName}}", "ariaLabelAppStore": "Ladda ner på {{serviceName}}", "ariaLabelGalaxyStore": "Tillgänglig på {{serviceName}}", @@ -273,7 +276,7 @@ "linkType": "Länktyp", "linkedInLink": "LinkedIn -länk", "links": "Länkar", - "linksAlignment": "Länkar justering", + "linksPosition": "Länkar Position", "listLength": "Listlängd", "liveVisibility": "Synlig på live -sidan", "localGeomodifier": "Lokal geomodifierare", @@ -293,6 +296,7 @@ "mobileContentAlignment": "Mobilt innehållsinriktning", "mobileImagePosition": "Mobilbildsposition", "name": "Namn", + "openInNewTab": "Öppna i ny flik", "options": { "aspectRatio": "Bildförhållande", "base": "Bas", diff --git a/packages/visual-editor/locales/tr/visual-editor.json b/packages/visual-editor/locales/tr/visual-editor.json index b13adee71..bd78eb980 100644 --- a/packages/visual-editor/locales/tr/visual-editor.json +++ b/packages/visual-editor/locales/tr/visual-editor.json @@ -29,6 +29,9 @@ "send": "Onay için gönder", "writeComment": "Yorumunuzu buraya yazın ..." }, + "aria": { + "opensInNewTab": "{{label}} (yeni bir sekmede açılır)" + }, "ariaLabelAppGallery": "{{serviceName}} üzerinde keşfedin", "ariaLabelAppStore": "{{serviceName}} üzerinden indirin", "ariaLabelGalaxyStore": "{{serviceName}} üzerinde mevcut", @@ -272,7 +275,7 @@ "linkType": "Bağlantı türü", "linkedInLink": "LinkedIn Link", "links": "Bağlar", - "linksAlignment": "Bağlantılar Hizalama", + "linksPosition": "Bağlantı Konumu", "listLength": "Liste uzunluğu", "liveVisibility": "Canlı sayfada görünür", "localGeomodifier": "Yerel Geomodifikatör", @@ -292,6 +295,7 @@ "mobileContentAlignment": "Mobil içerik hizalaması", "mobileImagePosition": "Mobil Görüntü Pozisyonu", "name": "İsim", + "openInNewTab": "Yeni sekmede aç", "options": { "aspectRatio": "En boy oranı", "base": "Temel", diff --git a/packages/visual-editor/locales/zh-TW/visual-editor.json b/packages/visual-editor/locales/zh-TW/visual-editor.json index 1a654b204..00d182ce8 100644 --- a/packages/visual-editor/locales/zh-TW/visual-editor.json +++ b/packages/visual-editor/locales/zh-TW/visual-editor.json @@ -29,6 +29,9 @@ "send": "發送批准", "writeComment": "在這裡寫你的評論..." }, + "aria": { + "opensInNewTab": "{{label}}(在新標籤頁中打開)" + }, "ariaLabelAppGallery": "在 {{serviceName}} 上探索它", "ariaLabelAppStore": "在 {{serviceName}} 上下載", "ariaLabelGalaxyStore": "在 {{serviceName}} 上可用", @@ -272,7 +275,7 @@ "linkType": "鏈接類型", "linkedInLink": "LinkedIn鏈接", "links": "鏈接", - "linksAlignment": "鏈接對齊", + "linksPosition": "鏈接位置", "listLength": "列表長度", "liveVisibility": "在現場頁面上可見", "localGeomodifier": "當地的土工改裝劑", @@ -292,6 +295,7 @@ "mobileContentAlignment": "移動內容對齊", "mobileImagePosition": "移動圖像位置", "name": "姓名", + "openInNewTab": "在新選項卡中打開", "options": { "aspectRatio": "縱橫比", "base": "根據", diff --git a/packages/visual-editor/locales/zh/visual-editor.json b/packages/visual-editor/locales/zh/visual-editor.json index a5950c6dd..3cdf4271b 100644 --- a/packages/visual-editor/locales/zh/visual-editor.json +++ b/packages/visual-editor/locales/zh/visual-editor.json @@ -29,6 +29,9 @@ "send": "发送批准", "writeComment": "在这里写你的评论..." }, + "aria": { + "opensInNewTab": "{{label}}(在新标签页中打开)" + }, "ariaLabelAppGallery": "在 {{serviceName}} 上探索它", "ariaLabelAppStore": "在 {{serviceName}} 上下载", "ariaLabelGalaxyStore": "在 {{serviceName}} 上可用", @@ -272,7 +275,7 @@ "linkType": "链接类型", "linkedInLink": "LinkedIn链接", "links": "链接", - "linksAlignment": "链接对齐", + "linksPosition": "链接位置", "listLength": "列表长度", "liveVisibility": "在现场页面上可见", "localGeomodifier": "当地的土工改装剂", @@ -292,6 +295,7 @@ "mobileContentAlignment": "移动内容对齐", "mobileImagePosition": "移动图像位置", "name": "姓名", + "openInNewTab": "在新选项卡中打开", "options": { "aspectRatio": "纵横比", "base": "根据", diff --git a/packages/visual-editor/src/components/atoms/cta.tsx b/packages/visual-editor/src/components/atoms/cta.tsx index 00d4cadd8..7244e976b 100644 --- a/packages/visual-editor/src/components/atoms/cta.tsx +++ b/packages/visual-editor/src/components/atoms/cta.tsx @@ -10,7 +10,7 @@ import { useBackground, useDocument, } from "@yext/visual-editor"; -import { FaAngleRight } from "react-icons/fa"; +import { FaAngleRight, FaExternalLinkAlt } from "react-icons/fa"; import { getDirections } from "@yext/pages-components"; import { PresetImageType, FOOD_DELIVERY_SERVICES } from "../../types/types"; import { presetImageIcons } from "../../utils/presetImageIcons"; @@ -36,6 +36,7 @@ export type CTAProps = { onClick?: (event: React.MouseEvent) => void; disabled?: boolean; color?: BackgroundStyle; + openInNewTab?: boolean; }; /** @@ -180,11 +181,12 @@ export const CTA = (props: CTAProps) => { onClick, disabled = false, color, + openInNewTab = false, } = props; + const { t } = useTranslation(); const resolvedProps = useResolvedCtaProps(props); const isDarkBG = useBackground()?.isDarkBackground; - const dynamicStyle: React.CSSProperties = (() => { const bg = normalizeThemeColor(color?.bgColor); const textColor = normalizeThemeColor(color?.textColor); @@ -280,6 +282,13 @@ export const CTA = (props: CTAProps) => { ? link : normalizeSlug(link) || "#"; + const computedAriaLabel = + openInNewTab && ariaLabel && ariaLabel.trim() !== "" + ? t("aria.opensInNewTab", "{{label}} (opens in a new tab)", { + label: ariaLabel, + }) + : ariaLabel || undefined; + return ( ); diff --git a/packages/visual-editor/src/components/footer/CopyrightMessageSlot.tsx b/packages/visual-editor/src/components/footer/CopyrightMessageSlot.tsx index f8fbb6a8b..3fe5e3fc9 100644 --- a/packages/visual-editor/src/components/footer/CopyrightMessageSlot.tsx +++ b/packages/visual-editor/src/components/footer/CopyrightMessageSlot.tsx @@ -15,7 +15,7 @@ export interface CopyrightMessageSlotProps { text: TranslatableString; }; /** @internal */ - alignment?: "left" | "right"; + alignment?: "left" | "center" | "right"; } const CopyrightMessageSlotInternal: PuckComponent = ( @@ -31,15 +31,22 @@ const CopyrightMessageSlotInternal: PuckComponent = ( streamDocument ); + let alignmentStyle = ["text-center"]; + switch (alignment) { + case "left": { + alignmentStyle.push("md:text-left"); + break; + } + case "right": { + alignmentStyle.push("md:text-right"); + break; + } + default: + break; + } + return resolvedText ? ( - + {resolvedText} ) : puck.isEditing ? ( diff --git a/packages/visual-editor/src/components/footer/ExpandedFooter.test.tsx b/packages/visual-editor/src/components/footer/ExpandedFooter.test.tsx index addd8f9af..22a91512a 100644 --- a/packages/visual-editor/src/components/footer/ExpandedFooter.test.tsx +++ b/packages/visual-editor/src/components/footer/ExpandedFooter.test.tsx @@ -30,6 +30,13 @@ const testFooterLinks = [ testFooterLink, ]; +const testExternalFooterLinks = [ + testFooterLink, + { ...testFooterLink, openInNewTab: true }, + testFooterLink, + { ...testFooterLink, openInNewTab: true }, +]; + const tests: ComponentTest[] = [ { name: "default props", @@ -1315,6 +1322,358 @@ const tests: ComponentTest[] = [ }, version: 48, }, + { + name: "version 51 - with external links, centered secondary links", + document: {}, + props: { + data: { + primaryFooter: { + expandedFooter: false, + }, + }, + slots: { + LogoSlot: [ + { + type: "FooterLogoSlot", + props: { + id: "LogoSlot-v50", + data: { + image: { + field: "", + constantValue: { + en: { + url: "https://placehold.co/100", + height: 100, + width: 100, + alternateText: "Logo", + }, + hasLocalizedValue: "true", + }, + constantValueEnabled: true, + }, + }, + styles: { + width: 0, + aspectRatio: 1.78, + }, + }, + }, + ], + SocialLinksSlot: [ + { + type: "FooterSocialLinksSlot", + props: { + data: { + xLink: "", + facebookLink: "", + instagramLink: "", + linkedInLink: "", + pinterestLink: "", + tiktokLink: "", + youtubeLink: "", + }, + }, + }, + ], + UtilityImagesSlot: [ + { + type: "FooterUtilityImagesSlot", + props: { + data: { + utilityImages: [], + }, + styles: { + width: 60, + aspectRatio: 1, + }, + }, + }, + ], + PrimaryLinksWrapperSlot: [ + { + type: "FooterLinksSlot", + props: { + id: "PrimaryLinksWrapperSlot-v50", + data: { + links: testExternalFooterLinks, + }, + variant: "primary", + eventNamePrefix: "primary", + }, + }, + ], + ExpandedLinksWrapperSlot: [ + { + type: "FooterExpandedLinksWrapper", + props: { + id: "ExpandedLinksWrapperSlot-v50", + data: { + sections: [ + { + label: { + en: "Section 1", + hasLocalizedValue: "true", + }, + links: testExternalFooterLinks, + }, + ], + }, + }, + }, + ], + SecondaryFooterSlot: [ + { + type: "SecondaryFooterSlot", + props: { + id: "SecondaryFooterSlot-v50", + data: { + show: true, + }, + styles: { + backgroundColor: { + bgColor: "bg-palette-tertiary-light", + textColor: "text-black", + }, + linksPosition: "center", + }, + maxWidth: "theme", + slots: { + SecondaryLinksWrapperSlot: [ + { + type: "FooterLinksSlot", + props: { + id: "SecondaryLinksWrapperSlot-v50", + data: { + links: testExternalFooterLinks, + }, + variant: "secondary", + eventNamePrefix: "secondary", + alignment: "center", + }, + }, + ], + CopyrightSlot: [ + { + type: "CopyrightMessageSlot", + props: { + id: "CopyrightSlot-v50", + data: { + text: { + field: "", + constantValue: { + en: "Copyright 2025", + hasLocalizedValue: "true", + }, + constantValueEnabled: true, + }, + }, + alignment: "center", + }, + }, + ], + }, + }, + }, + ], + }, + styles: { + primaryFooter: { + logo: { + width: 0, + aspectRatio: 1.78, + }, + utilityImages: { + width: 0, + aspectRatio: 1, + }, + backgroundColor: { + bgColor: "bg-white", + textColor: "text-black", + }, + linksPosition: "right", + }, + maxWidth: "theme", + }, + analytics: { scope: "expandedFooter" }, + }, + version: 51, + }, + { + name: "version 51 - with external links, centered secondary links - Dark BG", + document: {}, + props: { + data: { + primaryFooter: { + expandedFooter: false, + }, + }, + slots: { + LogoSlot: [ + { + type: "FooterLogoSlot", + props: { + id: "LogoSlot-v50", + data: { + image: { + field: "", + constantValue: { + en: { + url: "https://placehold.co/100", + height: 100, + width: 100, + alternateText: "Logo", + }, + hasLocalizedValue: "true", + }, + constantValueEnabled: true, + }, + }, + styles: { + width: 0, + aspectRatio: 1.78, + }, + }, + }, + ], + SocialLinksSlot: [ + { + type: "FooterSocialLinksSlot", + props: { + data: { + xLink: "", + facebookLink: "", + instagramLink: "", + linkedInLink: "", + pinterestLink: "", + tiktokLink: "", + youtubeLink: "", + }, + }, + }, + ], + UtilityImagesSlot: [ + { + type: "FooterUtilityImagesSlot", + props: { + data: { + utilityImages: [], + }, + styles: { + width: 60, + aspectRatio: 1, + }, + }, + }, + ], + PrimaryLinksWrapperSlot: [ + { + type: "FooterLinksSlot", + props: { + id: "PrimaryLinksWrapperSlot-v50", + data: { + links: testExternalFooterLinks, + }, + variant: "primary", + eventNamePrefix: "primary", + }, + }, + ], + ExpandedLinksWrapperSlot: [ + { + type: "FooterExpandedLinksWrapper", + props: { + id: "ExpandedLinksWrapperSlot-v50", + data: { + sections: [ + { + label: { + en: "Section 1", + hasLocalizedValue: "true", + }, + links: testExternalFooterLinks, + }, + ], + }, + }, + }, + ], + SecondaryFooterSlot: [ + { + type: "SecondaryFooterSlot", + props: { + id: "SecondaryFooterSlot-v50", + data: { + show: true, + }, + styles: { + backgroundColor: { + bgColor: "bg-palette-primary-dark", + textColor: "text-white", + }, + linksPosition: "center", + }, + maxWidth: "theme", + slots: { + SecondaryLinksWrapperSlot: [ + { + type: "FooterLinksSlot", + props: { + id: "SecondaryLinksWrapperSlot-v50", + data: { + links: testExternalFooterLinks, + }, + variant: "secondary", + eventNamePrefix: "secondary", + alignment: "center", + }, + }, + ], + CopyrightSlot: [ + { + type: "CopyrightMessageSlot", + props: { + id: "CopyrightSlot-v50", + data: { + text: { + field: "", + constantValue: { + en: "Copyright 2025", + hasLocalizedValue: "true", + }, + constantValueEnabled: true, + }, + }, + alignment: "center", + }, + }, + ], + }, + }, + }, + ], + }, + styles: { + primaryFooter: { + logo: { + width: 0, + aspectRatio: 1.78, + }, + utilityImages: { + width: 0, + aspectRatio: 1, + }, + backgroundColor: { + bgColor: "bg-palette-primary-dark", + textColor: "text-white", + }, + linksPosition: "right", + }, + maxWidth: "theme", + }, + analytics: { scope: "expandedFooter" }, + }, + version: 51, + }, ]; const socialLinkTestCases = [ diff --git a/packages/visual-editor/src/components/footer/ExpandedFooter.tsx b/packages/visual-editor/src/components/footer/ExpandedFooter.tsx index 1359198db..45e47aa8c 100644 --- a/packages/visual-editor/src/components/footer/ExpandedFooter.tsx +++ b/packages/visual-editor/src/components/footer/ExpandedFooter.tsx @@ -20,6 +20,7 @@ export const defaultLink = { hasLocalizedValue: "true" as const, }, link: "#", + openInNewTab: false, }; export const defaultLinks = [ @@ -56,7 +57,7 @@ export interface ExpandedFooterStyles { /** Styling for the primary footer bar. */ primaryFooter: { backgroundColor?: BackgroundStyle; - linksAlignment: "left" | "right"; + linksPosition: "left" | "right"; }; /** The maximum width of the footer. */ maxWidth: PageSectionProps["maxWidth"]; @@ -131,8 +132,8 @@ const expandedFooterSectionFields: Fields = { options: "BACKGROUND_COLOR", } ), - linksAlignment: YextField( - msg("fields.linksAlignment", "Links Alignment"), + linksPosition: YextField( + msg("fields.linksPosition", "Links Position"), { type: "radio", options: [ @@ -191,7 +192,7 @@ const ExpandedFooterWrapper: PuckComponent = ({ const { primaryFooter } = data; const { primaryFooter: primaryFooterStyle, maxWidth } = styles; const { expandedFooter } = primaryFooter; - const { linksAlignment: primaryLinksAlignment, backgroundColor } = + const { linksPosition: primaryLinksAlignment, backgroundColor } = primaryFooterStyle; return ( @@ -410,7 +411,7 @@ export const ExpandedFooter: ComponentConfig<{ props: ExpandedFooterProps }> = { }, styles: { backgroundColor: backgroundColors.background2.value, - linksAlignment: "left", + linksPosition: "left", }, maxWidth: "theme", slots: { @@ -441,7 +442,7 @@ export const ExpandedFooter: ComponentConfig<{ props: ExpandedFooterProps }> = { styles: { primaryFooter: { backgroundColor: backgroundColors.background6.value, - linksAlignment: "right", + linksPosition: "right", }, maxWidth: "theme", }, diff --git a/packages/visual-editor/src/components/footer/FooterExpandedLinkSectionSlot.tsx b/packages/visual-editor/src/components/footer/FooterExpandedLinkSectionSlot.tsx index d4611cd97..e35c91b2d 100644 --- a/packages/visual-editor/src/components/footer/FooterExpandedLinkSectionSlot.tsx +++ b/packages/visual-editor/src/components/footer/FooterExpandedLinkSectionSlot.tsx @@ -61,6 +61,7 @@ const FooterExpandedLinkSectionSlotInternal: PuckComponent< return ( { diff --git a/packages/visual-editor/src/components/footer/FooterExpandedLinksWrapper.tsx b/packages/visual-editor/src/components/footer/FooterExpandedLinksWrapper.tsx index 06a08ade5..3f4d3beaf 100644 --- a/packages/visual-editor/src/components/footer/FooterExpandedLinksWrapper.tsx +++ b/packages/visual-editor/src/components/footer/FooterExpandedLinksWrapper.tsx @@ -74,6 +74,7 @@ const FooterExpandedLinksWrapperInternal: PuckComponent< return ( { diff --git a/packages/visual-editor/src/components/footer/FooterLinksSlot.tsx b/packages/visual-editor/src/components/footer/FooterLinksSlot.tsx index ea32bd593..21b2b5e99 100644 --- a/packages/visual-editor/src/components/footer/FooterLinksSlot.tsx +++ b/packages/visual-editor/src/components/footer/FooterLinksSlot.tsx @@ -22,7 +22,7 @@ export interface FooterLinksSlotProps { /** @internal */ eventNamePrefix?: string; /** @internal */ - alignment?: "left" | "right"; + alignment?: "left" | "center" | "right"; } const FooterLinksSlotInternal: PuckComponent = ( @@ -42,10 +42,21 @@ const FooterLinksSlotInternal: PuckComponent = ( return puck.isEditing ?
: <>; } - const secondaryItemsAlignment = - variant === "secondary" && alignment === "right" - ? "md:justify-end" - : "md:justify-start"; + let secondaryItemsAlignment: string | undefined; + + if (variant === "secondary") { + switch (alignment) { + case "right": + secondaryItemsAlignment = "md:justify-end"; + break; + case "center": + secondaryItemsAlignment = "md:justify-center"; + break; + default: + secondaryItemsAlignment = "md:justify-start"; + break; + } + } return (
= ( return ( = { link: YextField(msg("fields.link", "Link"), { type: "text", }), + openInNewTab: YextField( + msg("fields.openInNewTab", "Open in new tab"), + { + type: "radio", + options: [ + { label: msg("fields.options.yes", "Yes"), value: true }, + { label: msg("fields.options.no", "No"), value: false }, + ], + } + ), }, defaultItemProps: defaultLink, getItemSummary: (item: any, index?: number) => { @@ -151,6 +173,7 @@ const footerLinksSlotFields: Fields = { type: "radio", options: [ { label: "Left", value: "left" }, + { label: "Center", value: "center" }, { label: "Right", value: "right" }, ], visible: false, diff --git a/packages/visual-editor/src/components/footer/SecondaryFooterSlot.tsx b/packages/visual-editor/src/components/footer/SecondaryFooterSlot.tsx index 87bc03ecd..a653ef2da 100644 --- a/packages/visual-editor/src/components/footer/SecondaryFooterSlot.tsx +++ b/packages/visual-editor/src/components/footer/SecondaryFooterSlot.tsx @@ -17,6 +17,7 @@ const defaultLink = { hasLocalizedValue: "true" as const, }, link: "#", + openInNewTab: false, }; const defaultLinks = [ @@ -43,7 +44,7 @@ export interface SecondaryFooterSlotProps { */ styles: { backgroundColor?: BackgroundStyle; - linksAlignment: "left" | "right"; + linksPosition: "left" | "center" | "right"; }; /** @internal */ @@ -80,26 +81,29 @@ const secondaryFooterSlotFields: Fields = { options: "BACKGROUND_COLOR", } ), - linksAlignment: YextField( - msg("fields.linksAlignment", "Links Alignment"), - { - type: "radio", - options: [ - { - label: msg("fields.options.left", "Left", { - context: "direction", - }), - value: "left", - }, - { - label: msg("fields.options.right", "Right", { - context: "direction", - }), - value: "right", - }, - ], - } - ), + linksPosition: YextField(msg("fields.linksPosition", "Links Position"), { + type: "radio", + options: [ + { + label: msg("fields.options.left", "Left", { + context: "direction", + }), + value: "left", + }, + { + label: msg("fields.options.center", "Center", { + context: "direction", + }), + value: "center", + }, + { + label: msg("fields.options.right", "Right", { + context: "direction", + }), + value: "right", + }, + ], + }), }, }), slots: { @@ -176,7 +180,7 @@ export const SecondaryFooterSlot: ComponentConfig<{ show: true, }, styles: { - linksAlignment: "left", + linksPosition: "left", }, slots: { SecondaryLinksWrapperSlot: [ @@ -226,7 +230,7 @@ export const SecondaryFooterSlot: ComponentConfig<{ // Pass alignment to SecondaryLinksWrapperSlot based on parent styles const secondaryLinksAlignment = - data?.props?.styles?.linksAlignment || "left"; + data?.props?.styles?.linksPosition ?? "left"; if ( data?.props?.slots?.SecondaryLinksWrapperSlot && diff --git a/packages/visual-editor/src/components/header/ExpandedHeader.test.tsx b/packages/visual-editor/src/components/header/ExpandedHeader.test.tsx index a054d6d33..ab65da05e 100644 --- a/packages/visual-editor/src/components/header/ExpandedHeader.test.tsx +++ b/packages/visual-editor/src/components/header/ExpandedHeader.test.tsx @@ -1086,6 +1086,189 @@ const tests: ComponentTest[] = [ }, version: 49, }, + { + name: "version 51 props - with external links", + document: {}, + props: { + styles: { + maxWidth: "theme", + headerPosition: "scrollsWithPage", + }, + slots: { + PrimaryHeaderSlot: [ + { + type: "PrimaryHeaderSlot", + props: { + styles: { + backgroundColor: backgroundColors.background3.value, + }, + slots: { + LogoSlot: [ + { + type: "ImageSlot", + props: { + data: { + image: { + field: "", + constantValue: { + url: "https://placehold.co/100", + height: 100, + width: 100, + }, + constantValueEnabled: true, + }, + }, + styles: { + aspectRatio: 1, + width: 100, + }, + }, + }, + ], + LinksSlot: [ + { + type: "HeaderLinks", + props: { + data: { + links: [ + { + linkType: "URL", + label: { + en: "Primary Header Link", + hasLocalizedValue: "true", + }, + link: "#", + }, + { + linkType: "URL", + label: { + en: "Primary Header Link", + hasLocalizedValue: "true", + }, + link: "#", + openInNewTab: true, + }, + ], + }, + parentData: { + type: "Primary", + }, + }, + }, + ], + PrimaryCTASlot: [ + { + type: "CTASlot", + props: { + data: { + show: true, + entityField: { + field: "", + constantValue: { + label: { en: "CTA", hasLocalizedValue: "true" }, + link: "#", + linkType: "URL", + }, + constantValueEnabled: true, + }, + }, + styles: { + displayType: "textAndLink", + variant: "primary", + }, + }, + }, + ], + SecondaryCTASlot: [ + { + type: "CTASlot", + props: { + data: { + show: true, + entityField: { + field: "", + constantValue: { + label: { + en: "Secondary CTA", + hasLocalizedValue: "true", + }, + link: "#", + linkType: "URL", + }, + constantValueEnabled: true, + }, + }, + styles: { + displayType: "textAndLink", + variant: "secondary", + }, + }, + }, + ], + }, + }, + }, + ], + SecondaryHeaderSlot: [ + { + type: "SecondaryHeaderSlot", + props: { + data: { + show: true, + showLanguageDropdown: false, + }, + styles: { + backgroundColor: backgroundColors.background4.value, + }, + slots: { + LinksSlot: [ + { + type: "HeaderLinks", + props: { + data: { + links: [ + { + linkType: "URL", + label: { + en: "Secondary Header Link", + hasLocalizedValue: "true", + }, + link: "#", + }, + { + linkType: "URL", + label: { + en: "Secondary Header Link", + hasLocalizedValue: "true", + }, + link: "#", + openInNewTab: true, + }, + ], + }, + parentData: { + type: "Secondary", + }, + }, + }, + ], + }, + }, + }, + ], + }, + analytics: { + scope: "expandedHeader", + }, + }, + interactions: async (page) => { + const mobileMenuButton = page.getByLabelText("Open menu"); + await act(async () => { + await mobileMenuButton.click(); + }); + }, + version: 51, + }, ]; describe("ExpandedHeader", async () => { diff --git a/packages/visual-editor/src/components/header/HeaderLinks.tsx b/packages/visual-editor/src/components/header/HeaderLinks.tsx index ccb18ede2..bdc8c5335 100644 --- a/packages/visual-editor/src/components/header/HeaderLinks.tsx +++ b/packages/visual-editor/src/components/header/HeaderLinks.tsx @@ -33,6 +33,7 @@ const defaultLink: TranslatableCTA = { linkType: "URL", label: { en: "Header Link", hasLocalizedValue: "true" }, link: "#", + openInNewTab: false, }; const headerLinksFields: Fields = { @@ -54,6 +55,16 @@ const headerLinksFields: Fields = { type: "select", options: linkTypeOptions(), }, + openInNewTab: YextField( + msg("fields.openInNewTab", "Open in new tab"), + { + type: "radio", + options: [ + { label: msg("fields.options.yes", "Yes"), value: true }, + { label: msg("fields.options.no", "No"), value: false }, + ], + } + ), }, defaultItemProps: defaultLink satisfies TranslatableCTA, getItemSummary: (item, i) => { @@ -90,6 +101,7 @@ const HeaderLinksComponent: PuckComponent = ({ ? "headerFooterMainLink" : "headerFooterSecondaryLink" } + openInNewTab={item.openInNewTab} eventName={`cta.${ctaType}.${index}`} label={resolveComponentData(item.label, i18n.language, streamDocument)} linkType={item.linkType} diff --git a/packages/visual-editor/src/components/migrations/0051_update_link_align_prop.ts b/packages/visual-editor/src/components/migrations/0051_update_link_align_prop.ts new file mode 100644 index 000000000..475876d7a --- /dev/null +++ b/packages/visual-editor/src/components/migrations/0051_update_link_align_prop.ts @@ -0,0 +1,46 @@ +import { Migration } from "../../utils/migrate.ts"; + +export const updateLinksAlignmentMigration: Migration = { + ExpandedFooter: { + action: "updated", + propTransformation: ({ styles, ...props }) => { + const primaryFooter = styles?.primaryFooter; + if (!primaryFooter) { + return { ...props, styles }; + } + + const { linksAlignment, ...restPrimaryFooter } = primaryFooter; + + return { + ...props, + styles: { + ...styles, + primaryFooter: { + ...restPrimaryFooter, + linksPosition: + primaryFooter.linksPosition ?? linksAlignment ?? "right", + }, + }, + }; + }, + }, + + SecondaryFooterSlot: { + action: "updated", + propTransformation: ({ styles, ...props }) => { + if (!styles) { + return { ...props, styles }; + } + + const { linksAlignment, ...restStyles } = styles; + + return { + ...props, + styles: { + ...restStyles, + linksPosition: styles.linksPosition ?? linksAlignment ?? "left", + }, + }; + }, + }, +}; diff --git a/packages/visual-editor/src/components/migrations/migrationRegistry.ts b/packages/visual-editor/src/components/migrations/migrationRegistry.ts index a991629df..2a2bcb0ab 100644 --- a/packages/visual-editor/src/components/migrations/migrationRegistry.ts +++ b/packages/visual-editor/src/components/migrations/migrationRegistry.ts @@ -49,6 +49,7 @@ import { fixPromoSectionSlots } from "./0047_fix_promo_section_slots.ts"; import { translatableCTAImageMigration } from "./0048_translatable_cta_image.ts"; import { simplifyFaqSection } from "./0049_simplify_faq_section.ts"; import { promoVariants } from "./0050_promo_variants.ts"; +import { updateLinksAlignmentMigration } from "./0051_update_link_align_prop.ts"; // To add a migration: // Create a new file in this directory that exports a Migration @@ -106,4 +107,5 @@ export const migrationRegistry: MigrationRegistry = [ translatableCTAImageMigration, simplifyFaqSection, promoVariants, + updateLinksAlignmentMigration, ]; diff --git a/packages/visual-editor/src/components/testing/screenshots/EventSection/[desktop] default props with document data.png b/packages/visual-editor/src/components/testing/screenshots/EventSection/[desktop] default props with document data.png index d61efd003..d8f83b22d 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/EventSection/[desktop] default props with document data.png and b/packages/visual-editor/src/components/testing/screenshots/EventSection/[desktop] default props with document data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/EventSection/[desktop] default props with empty document.png b/packages/visual-editor/src/components/testing/screenshots/EventSection/[desktop] default props with empty document.png index 79d865677..bc35940b6 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/EventSection/[desktop] default props with empty document.png and b/packages/visual-editor/src/components/testing/screenshots/EventSection/[desktop] default props with empty document.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/EventSection/[desktop] version 48 props.png b/packages/visual-editor/src/components/testing/screenshots/EventSection/[desktop] version 48 props.png index 514700765..f8987b086 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/EventSection/[desktop] version 48 props.png and b/packages/visual-editor/src/components/testing/screenshots/EventSection/[desktop] version 48 props.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/EventSection/[mobile] default props with document data.png b/packages/visual-editor/src/components/testing/screenshots/EventSection/[mobile] default props with document data.png index 8be7a617a..7d3561b47 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/EventSection/[mobile] default props with document data.png and b/packages/visual-editor/src/components/testing/screenshots/EventSection/[mobile] default props with document data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/EventSection/[mobile] default props with empty document.png b/packages/visual-editor/src/components/testing/screenshots/EventSection/[mobile] default props with empty document.png index 8be7a617a..7d3561b47 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/EventSection/[mobile] default props with empty document.png and b/packages/visual-editor/src/components/testing/screenshots/EventSection/[mobile] default props with empty document.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/EventSection/[mobile] version 48 props.png b/packages/visual-editor/src/components/testing/screenshots/EventSection/[mobile] version 48 props.png index 405c7df63..4ecb53dee 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/EventSection/[mobile] version 48 props.png and b/packages/visual-editor/src/components/testing/screenshots/EventSection/[mobile] version 48 props.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/EventSection/[tablet] default props with document data.png b/packages/visual-editor/src/components/testing/screenshots/EventSection/[tablet] default props with document data.png index 163a744ed..b6ea2e6ac 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/EventSection/[tablet] default props with document data.png and b/packages/visual-editor/src/components/testing/screenshots/EventSection/[tablet] default props with document data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/EventSection/[tablet] version 48 props.png b/packages/visual-editor/src/components/testing/screenshots/EventSection/[tablet] version 48 props.png index be3e03c5b..6ac89dcc1 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/EventSection/[tablet] version 48 props.png and b/packages/visual-editor/src/components/testing/screenshots/EventSection/[tablet] version 48 props.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/ExpandedFooter/[desktop] version 51 - with external links, centered secondary links - Dark BG.png b/packages/visual-editor/src/components/testing/screenshots/ExpandedFooter/[desktop] version 51 - with external links, centered secondary links - Dark BG.png new file mode 100644 index 000000000..10131dc41 Binary files /dev/null and b/packages/visual-editor/src/components/testing/screenshots/ExpandedFooter/[desktop] version 51 - with external links, centered secondary links - Dark BG.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/ExpandedFooter/[desktop] version 51 - with external links, centered secondary links.png b/packages/visual-editor/src/components/testing/screenshots/ExpandedFooter/[desktop] version 51 - with external links, centered secondary links.png new file mode 100644 index 000000000..763baff04 Binary files /dev/null and b/packages/visual-editor/src/components/testing/screenshots/ExpandedFooter/[desktop] version 51 - with external links, centered secondary links.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/ExpandedFooter/[mobile] version 51 - with external links, centered secondary links - Dark BG.png b/packages/visual-editor/src/components/testing/screenshots/ExpandedFooter/[mobile] version 51 - with external links, centered secondary links - Dark BG.png new file mode 100644 index 000000000..f80c1c9cf Binary files /dev/null and b/packages/visual-editor/src/components/testing/screenshots/ExpandedFooter/[mobile] version 51 - with external links, centered secondary links - Dark BG.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/ExpandedFooter/[mobile] version 51 - with external links, centered secondary links.png b/packages/visual-editor/src/components/testing/screenshots/ExpandedFooter/[mobile] version 51 - with external links, centered secondary links.png new file mode 100644 index 000000000..0a024341a Binary files /dev/null and b/packages/visual-editor/src/components/testing/screenshots/ExpandedFooter/[mobile] version 51 - with external links, centered secondary links.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/ExpandedFooter/[tablet] version 51 - with external links, centered secondary links - Dark BG.png b/packages/visual-editor/src/components/testing/screenshots/ExpandedFooter/[tablet] version 51 - with external links, centered secondary links - Dark BG.png new file mode 100644 index 000000000..a7523e69c Binary files /dev/null and b/packages/visual-editor/src/components/testing/screenshots/ExpandedFooter/[tablet] version 51 - with external links, centered secondary links - Dark BG.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/ExpandedFooter/[tablet] version 51 - with external links, centered secondary links.png b/packages/visual-editor/src/components/testing/screenshots/ExpandedFooter/[tablet] version 51 - with external links, centered secondary links.png new file mode 100644 index 000000000..52a85cb2b Binary files /dev/null and b/packages/visual-editor/src/components/testing/screenshots/ExpandedFooter/[tablet] version 51 - with external links, centered secondary links.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/ExpandedHeader/[desktop] version 51 props - with external links.png b/packages/visual-editor/src/components/testing/screenshots/ExpandedHeader/[desktop] version 51 props - with external links.png new file mode 100644 index 000000000..6147848ba Binary files /dev/null and b/packages/visual-editor/src/components/testing/screenshots/ExpandedHeader/[desktop] version 51 props - with external links.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/ExpandedHeader/[mobile] version 51 props - with external links (after interactions).png b/packages/visual-editor/src/components/testing/screenshots/ExpandedHeader/[mobile] version 51 props - with external links (after interactions).png new file mode 100644 index 000000000..5ad8881f8 Binary files /dev/null and b/packages/visual-editor/src/components/testing/screenshots/ExpandedHeader/[mobile] version 51 props - with external links (after interactions).png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/ExpandedHeader/[mobile] version 51 props - with external links.png b/packages/visual-editor/src/components/testing/screenshots/ExpandedHeader/[mobile] version 51 props - with external links.png new file mode 100644 index 000000000..28e10ce66 Binary files /dev/null and b/packages/visual-editor/src/components/testing/screenshots/ExpandedHeader/[mobile] version 51 props - with external links.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/ExpandedHeader/[tablet] version 51 props - with external links.png b/packages/visual-editor/src/components/testing/screenshots/ExpandedHeader/[tablet] version 51 props - with external links.png new file mode 100644 index 000000000..df58eb696 Binary files /dev/null and b/packages/visual-editor/src/components/testing/screenshots/ExpandedHeader/[tablet] version 51 props - with external links.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/HeroSection/[desktop] default props with data.png b/packages/visual-editor/src/components/testing/screenshots/HeroSection/[desktop] default props with data.png index c8aaea864..f6cdb529e 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/HeroSection/[desktop] default props with data.png and b/packages/visual-editor/src/components/testing/screenshots/HeroSection/[desktop] default props with data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/HeroSection/[desktop] default props with no data.png b/packages/visual-editor/src/components/testing/screenshots/HeroSection/[desktop] default props with no data.png index c827e9d63..3c1363ac2 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/HeroSection/[desktop] default props with no data.png and b/packages/visual-editor/src/components/testing/screenshots/HeroSection/[desktop] default props with no data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/HeroSection/[mobile] default props with data.png b/packages/visual-editor/src/components/testing/screenshots/HeroSection/[mobile] default props with data.png index 3729b18c8..60359c9b0 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/HeroSection/[mobile] default props with data.png and b/packages/visual-editor/src/components/testing/screenshots/HeroSection/[mobile] default props with data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/HeroSection/[mobile] default props with no data.png b/packages/visual-editor/src/components/testing/screenshots/HeroSection/[mobile] default props with no data.png index d6e1ac16a..d232ee8cb 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/HeroSection/[mobile] default props with no data.png and b/packages/visual-editor/src/components/testing/screenshots/HeroSection/[mobile] default props with no data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/HeroSection/[tablet] default props with data.png b/packages/visual-editor/src/components/testing/screenshots/HeroSection/[tablet] default props with data.png index d6a2237e5..6afca7d6f 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/HeroSection/[tablet] default props with data.png and b/packages/visual-editor/src/components/testing/screenshots/HeroSection/[tablet] default props with data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/HeroSection/[tablet] default props with no data.png b/packages/visual-editor/src/components/testing/screenshots/HeroSection/[tablet] default props with no data.png index 083819cf9..bbbd2da3d 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/HeroSection/[tablet] default props with no data.png and b/packages/visual-editor/src/components/testing/screenshots/HeroSection/[tablet] default props with no data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/InsightSection/[desktop] default props with document data.png b/packages/visual-editor/src/components/testing/screenshots/InsightSection/[desktop] default props with document data.png index 435b54f43..b28ec39bc 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/InsightSection/[desktop] default props with document data.png and b/packages/visual-editor/src/components/testing/screenshots/InsightSection/[desktop] default props with document data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/InsightSection/[desktop] default props with empty document.png b/packages/visual-editor/src/components/testing/screenshots/InsightSection/[desktop] default props with empty document.png index 61c1b53d7..19342d297 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/InsightSection/[desktop] default props with empty document.png and b/packages/visual-editor/src/components/testing/screenshots/InsightSection/[desktop] default props with empty document.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/InsightSection/[mobile] default props with document data.png b/packages/visual-editor/src/components/testing/screenshots/InsightSection/[mobile] default props with document data.png index b93da2f91..221f6c828 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/InsightSection/[mobile] default props with document data.png and b/packages/visual-editor/src/components/testing/screenshots/InsightSection/[mobile] default props with document data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/InsightSection/[mobile] default props with empty document.png b/packages/visual-editor/src/components/testing/screenshots/InsightSection/[mobile] default props with empty document.png index b93da2f91..221f6c828 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/InsightSection/[mobile] default props with empty document.png and b/packages/visual-editor/src/components/testing/screenshots/InsightSection/[mobile] default props with empty document.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/InsightSection/[tablet] default props with document data.png b/packages/visual-editor/src/components/testing/screenshots/InsightSection/[tablet] default props with document data.png index 578d35b00..cd280471a 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/InsightSection/[tablet] default props with document data.png and b/packages/visual-editor/src/components/testing/screenshots/InsightSection/[tablet] default props with document data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/InsightSection/[tablet] default props with empty document.png b/packages/visual-editor/src/components/testing/screenshots/InsightSection/[tablet] default props with empty document.png index 5c80e579f..b81c1455f 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/InsightSection/[tablet] default props with empty document.png and b/packages/visual-editor/src/components/testing/screenshots/InsightSection/[tablet] default props with empty document.png differ 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 cfd3b2a23..147cdd01f 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/[desktop] latest version non-default props.png b/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] latest version non-default props.png index 7c47ad9df..ed213f4df 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] latest version non-default props.png and b/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] latest version non-default props.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 10 default props.png b/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 10 default props.png index fafe6ef11..f061f3694 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 10 default props.png and b/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 10 default props.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 10 non-default props.png b/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 10 non-default props.png index fafe6ef11..f061f3694 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 10 non-default props.png and b/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 10 non-default props.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 21 default props.png b/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 21 default props.png index fafe6ef11..f061f3694 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 21 default props.png and b/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 21 default props.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 21 non-default props.png b/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 21 non-default props.png index ac1ede72d..ce577ccf4 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 21 non-default props.png and b/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 21 non-default props.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 22 default props.png b/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 22 default props.png index fafe6ef11..f061f3694 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 22 default props.png and b/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 22 default props.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 22 non-default props.png b/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 22 non-default props.png index ac1ede72d..ce577ccf4 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 22 non-default props.png and b/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 22 non-default props.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 24 default props.png b/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 24 default props.png index 56b7e8800..482f4661f 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 24 default props.png and b/packages/visual-editor/src/components/testing/screenshots/Locator/[desktop] version 24 default props.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] latest version non-default props.png b/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] latest version non-default props.png index f6b5d4cae..ff6a2c804 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] latest version non-default props.png and b/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] latest version non-default props.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] version 10 non-default props.png b/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] version 10 non-default props.png index db4068b98..a472b374c 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] version 10 non-default props.png and b/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] version 10 non-default props.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] version 21 non-default props.png b/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] version 21 non-default props.png index 99bd1500a..3f8aeb60c 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] version 21 non-default props.png and b/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] version 21 non-default props.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] version 22 default props.png b/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] version 22 default props.png index db4068b98..a472b374c 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] version 22 default props.png and b/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] version 22 default props.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] version 22 non-default props.png b/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] version 22 non-default props.png index 3f8aeb60c..99bd1500a 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] version 22 non-default props.png and b/packages/visual-editor/src/components/testing/screenshots/Locator/[tablet] version 22 non-default props.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[desktop] default props with multiple nearby locations.png b/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[desktop] default props with multiple nearby locations.png index b3698cf54..b0c63011f 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[desktop] default props with multiple nearby locations.png and b/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[desktop] default props with multiple nearby locations.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[desktop] version 10 with multiple nearby locations.png b/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[desktop] version 10 with multiple nearby locations.png index 7d67305f1..59bb9415d 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[desktop] version 10 with multiple nearby locations.png and b/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[desktop] version 10 with multiple nearby locations.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[desktop] version 36 with multiple nearby locations.png b/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[desktop] version 36 with multiple nearby locations.png index 7b6f1bf02..587dd21c9 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[desktop] version 36 with multiple nearby locations.png and b/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[desktop] version 36 with multiple nearby locations.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[mobile] default props with multiple nearby locations.png b/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[mobile] default props with multiple nearby locations.png index 8aa7f0356..7d4c6e72f 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[mobile] default props with multiple nearby locations.png and b/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[mobile] default props with multiple nearby locations.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[mobile] version 10 with multiple nearby locations.png b/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[mobile] version 10 with multiple nearby locations.png index 3d46a3353..88747ef18 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[mobile] version 10 with multiple nearby locations.png and b/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[mobile] version 10 with multiple nearby locations.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[mobile] version 36 with multiple nearby locations.png b/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[mobile] version 36 with multiple nearby locations.png index f4079cd60..56df066b6 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[mobile] version 36 with multiple nearby locations.png and b/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[mobile] version 36 with multiple nearby locations.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[tablet] version 10 with multiple nearby locations.png b/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[tablet] version 10 with multiple nearby locations.png index b7cf239d4..e41575079 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[tablet] version 10 with multiple nearby locations.png and b/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[tablet] version 10 with multiple nearby locations.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[tablet] version 36 with multiple nearby locations.png b/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[tablet] version 36 with multiple nearby locations.png index fac45db20..7ee1fc743 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[tablet] version 36 with multiple nearby locations.png and b/packages/visual-editor/src/components/testing/screenshots/NearbyLocationsSection/[tablet] version 36 with multiple nearby locations.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/ProductSection/[mobile] default props with document data.png b/packages/visual-editor/src/components/testing/screenshots/ProductSection/[mobile] default props with document data.png index f7b853c56..9a8c4a6ed 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/ProductSection/[mobile] default props with document data.png and b/packages/visual-editor/src/components/testing/screenshots/ProductSection/[mobile] default props with document data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/ProductSection/[mobile] default props with empty document.png b/packages/visual-editor/src/components/testing/screenshots/ProductSection/[mobile] default props with empty document.png index f7b853c56..9a8c4a6ed 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/ProductSection/[mobile] default props with empty document.png and b/packages/visual-editor/src/components/testing/screenshots/ProductSection/[mobile] default props with empty document.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/ProductSection/[tablet] default props with document data.png b/packages/visual-editor/src/components/testing/screenshots/ProductSection/[tablet] default props with document data.png index 372ee7f6b..e19674f70 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/ProductSection/[tablet] default props with document data.png and b/packages/visual-editor/src/components/testing/screenshots/ProductSection/[tablet] default props with document data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/ProductSection/[tablet] default props with empty document.png b/packages/visual-editor/src/components/testing/screenshots/ProductSection/[tablet] default props with empty document.png index 8fd6e44cd..1a9f04735 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/ProductSection/[tablet] default props with empty document.png and b/packages/visual-editor/src/components/testing/screenshots/ProductSection/[tablet] default props with empty document.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/PromoSection/[desktop] default props with document data.png b/packages/visual-editor/src/components/testing/screenshots/PromoSection/[desktop] default props with document data.png index 4be632a83..65453430b 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/PromoSection/[desktop] default props with document data.png and b/packages/visual-editor/src/components/testing/screenshots/PromoSection/[desktop] default props with document data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/PromoSection/[desktop] default props with empty document.png b/packages/visual-editor/src/components/testing/screenshots/PromoSection/[desktop] default props with empty document.png index 4be632a83..65453430b 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/PromoSection/[desktop] default props with empty document.png and b/packages/visual-editor/src/components/testing/screenshots/PromoSection/[desktop] default props with empty document.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/PromoSection/[tablet] default props with document data.png b/packages/visual-editor/src/components/testing/screenshots/PromoSection/[tablet] default props with document data.png index 63b30fcd9..8c4e8ee0d 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/PromoSection/[tablet] default props with document data.png and b/packages/visual-editor/src/components/testing/screenshots/PromoSection/[tablet] default props with document data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/PromoSection/[tablet] default props with empty document.png b/packages/visual-editor/src/components/testing/screenshots/PromoSection/[tablet] default props with empty document.png index 63b30fcd9..8c4e8ee0d 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/PromoSection/[tablet] default props with empty document.png and b/packages/visual-editor/src/components/testing/screenshots/PromoSection/[tablet] default props with empty document.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] default props with document data.png b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] default props with document data.png index af79593d7..b120855ec 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] default props with document data.png and b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] default props with document data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] default props with empty document.png b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] default props with empty document.png index af79593d7..b120855ec 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] default props with empty document.png and b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] default props with empty document.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] version 0 props with entity values.png b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] version 0 props with entity values.png index ed5c18f38..7251ea3d4 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] version 0 props with entity values.png and b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] version 0 props with entity values.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] version 34 props with entity values.png b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] version 34 props with entity values.png index 2db4c8cf0..4f27c8e10 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] version 34 props with entity values.png and b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] version 34 props with entity values.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] version 7 props with entity values.png b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] version 7 props with entity values.png index 3ed7b492f..79fcfb1d0 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] version 7 props with entity values.png and b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[desktop] version 7 props with entity values.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] default props with document data.png b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] default props with document data.png index 0d5a03b6a..94007ef65 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] default props with document data.png and b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] default props with document data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] default props with empty document.png b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] default props with empty document.png index 0d5a03b6a..94007ef65 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] default props with empty document.png and b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] default props with empty document.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] version 0 props with entity values.png b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] version 0 props with entity values.png index 6a598653c..917e85d82 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] version 0 props with entity values.png and b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] version 0 props with entity values.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] version 34 props with entity values.png b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] version 34 props with entity values.png index 98031cfaf..aa3ef29da 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] version 34 props with entity values.png and b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] version 34 props with entity values.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] version 7 props with entity values.png b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] version 7 props with entity values.png index 3eb9af30f..3524bd36e 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] version 7 props with entity values.png and b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[mobile] version 7 props with entity values.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] default props with document data.png b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] default props with document data.png index 802887706..c327f98e1 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] default props with document data.png and b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] default props with document data.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] default props with empty document.png b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] default props with empty document.png index 802887706..c327f98e1 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] default props with empty document.png and b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] default props with empty document.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] version 0 props with entity values.png b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] version 0 props with entity values.png index d24a9df30..d95a80751 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] version 0 props with entity values.png and b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] version 0 props with entity values.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] version 34 props with entity values.png b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] version 34 props with entity values.png index 8592c4057..3110eafd1 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] version 34 props with entity values.png and b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] version 34 props with entity values.png differ diff --git a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] version 7 props with entity values.png b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] version 7 props with entity values.png index 78f4ee8e0..329549cfe 100644 Binary files a/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] version 7 props with entity values.png and b/packages/visual-editor/src/components/testing/screenshots/TeamSection/[tablet] version 7 props with entity values.png differ diff --git a/packages/visual-editor/src/docs/ai/components.d.ts b/packages/visual-editor/src/docs/ai/components.d.ts index 466abd02b..666e5d176 100644 --- a/packages/visual-editor/src/docs/ai/components.d.ts +++ b/packages/visual-editor/src/docs/ai/components.d.ts @@ -548,7 +548,7 @@ interface ExpandedFooterStyles { /** Styling for the primary footer bar. */ primaryFooter: { backgroundColor?: BackgroundStyle; - linksAlignment: "left" | "right"; + linksPosition: "left" | "right"; }; /** The maximum width of the footer. */ maxWidth: PageSectionProps["maxWidth"]; @@ -933,6 +933,7 @@ type TranslatableCTA = Omit & { label: TranslatableString; /** The link the for the CTA */ link: TranslatableString; + openInNewTab?: boolean; }; /** Describes the dimensions of an image. */ diff --git a/packages/visual-editor/src/docs/components.md b/packages/visual-editor/src/docs/components.md index 27f3bc20d..09b61199a 100644 --- a/packages/visual-editor/src/docs/components.md +++ b/packages/visual-editor/src/docs/components.md @@ -254,10 +254,10 @@ This object contains all the content for both footer tiers. This object contains properties for customizing the appearance of both footer tiers. -| Prop | Type | Description | Default | -| :--------------------- | :-------------------------------------------------------------------------- | :---------------------------------- | :------ | -| `styles.maxWidth` | `PageSectionProps["maxWidth"]` | The maximum width of the footer. | | -| `styles.primaryFooter` | `{ backgroundColor?: BackgroundStyle; linksAlignment: "left" \| "right"; }` | Styling for the primary footer bar. | | +| Prop | Type | Description | Default | +| :--------------------- | :------------------------------------------------------------------------- | :---------------------------------- | :------ | +| `styles.maxWidth` | `PageSectionProps["maxWidth"]` | The maximum width of the footer. | | +| `styles.primaryFooter` | `{ backgroundColor?: BackgroundStyle; linksPosition: "left" \| "right"; }` | Styling for the primary footer bar. | | --- @@ -751,9 +751,9 @@ Data configuration for the secondary footer. Styling configuration for the secondary footer. -| Prop | Type | Description | Default | -| :------- | :-------------------------------------------------------------------------- | :---------------------------------------------- | :------ | -| `styles` | `{ backgroundColor?: BackgroundStyle; linksAlignment: "left" \| "right"; }` | Styling configuration for the secondary footer. | | +| Prop | Type | Description | Default | +| :------- | :------------------------------------------------------------------------------------- | :---------------------------------------------- | :------ | +| `styles` | `{ backgroundColor?: BackgroundStyle; linksPosition: "left" \| "center" \| "right"; }` | Styling configuration for the secondary footer. | | --- diff --git a/packages/visual-editor/src/types/types.ts b/packages/visual-editor/src/types/types.ts index 59a667df8..2e89d6b95 100644 --- a/packages/visual-editor/src/types/types.ts +++ b/packages/visual-editor/src/types/types.ts @@ -10,6 +10,7 @@ export type TranslatableCTA = Omit & { label: TranslatableString; /** The link the for the CTA */ link: TranslatableString; + openInNewTab?: boolean; }; /** Enhanced CTA options */ diff --git a/packages/visual-editor/src/vite-plugin/defaultLayoutData.ts b/packages/visual-editor/src/vite-plugin/defaultLayoutData.ts index 6f3f6ab75..6c8e6ef2b 100644 --- a/packages/visual-editor/src/vite-plugin/defaultLayoutData.ts +++ b/packages/visual-editor/src/vite-plugin/defaultLayoutData.ts @@ -3792,7 +3792,7 @@ const mainDefaultLayout = { bgColor: "bg-palette-primary-light", textColor: "text-black", }, - linksAlignment: "left", + linksPosition: "left", }, maxWidth: "theme", slots: { @@ -3873,7 +3873,7 @@ const mainDefaultLayout = { bgColor: "bg-palette-primary-dark", textColor: "text-white", }, - linksAlignment: "right", + linksPosition: "right", }, maxWidth: "theme", }, @@ -4536,7 +4536,7 @@ const directoryDefaultLayout = { bgColor: "bg-palette-primary-light", textColor: "text-black", }, - linksAlignment: "left", + linksPosition: "left", }, maxWidth: "theme", slots: { @@ -4617,7 +4617,7 @@ const directoryDefaultLayout = { bgColor: "bg-palette-primary-dark", textColor: "text-white", }, - linksAlignment: "right", + linksPosition: "right", }, maxWidth: "theme", },