Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
54bd67c
fix: images in Grid would stretch to fit the container (#1204)
asanehisa May 6, 2026
5fef9a8
feat: allow boolean display fields in locator (#1207)
anguyen-yext2 May 8, 2026
a736d11
feat: add framework for linked entity mapping (#1206)
jwartofsky-yext May 8, 2026
77cdb11
fix: use ids to map categories to schema (#1187)
briantstephan May 11, 2026
360d9e2
chore: make toPuckFields a runtime adapter instead of a TS cast (#1211)
mkilpatrick May 11, 2026
80a193e
feat: add support for Linked Entity Slots (#1210)
jwartofsky-yext May 12, 2026
838faf3
feat: allow editing of the directory card's title (#1208)
benlife5 May 13, 2026
7099458
release: v1.3.0-alpha.1
jwartofsky-yext May 14, 2026
38be764
fix: embedded field pickers in mapping are not scoped (#1215)
jwartofsky-yext May 18, 2026
517ed85
feat: improve warning message for multiple linked entities (#1216)
jwartofsky-yext May 18, 2026
0ef06e7
release: v1.3.0-alpha.2
jwartofsky-yext May 18, 2026
c253d9e
fix: use display name for multiple linked entities warning (#1217)
jwartofsky-yext May 18, 2026
5525f4e
release: v1.3.0
jwartofsky-yext May 18, 2026
f1c1465
fix: primary locale url normalization (#1219)
jwartofsky-yext May 19, 2026
14297fd
release: v1.3.1
jwartofsky-yext May 19, 2026
d48f1db
feat: pass comingSoon into HoursTable and HoursStatus (#1223)
asanehisa Jun 1, 2026
3768f5d
fix: comingSoon in locator results (#1225)
asanehisa Jun 2, 2026
bc3acac
release: v1.3.2
asanehisa Jun 2, 2026
a50475c
Merge branch 'main' into 2026-custom-components-templates
asanehisa Jun 2, 2026
0b3b40e
fix
asanehisa Jun 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions packages/visual-editor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
#### 1.3.2 (2026-06-02)

##### New Features

- pass comingSoon into HoursTable and HoursStatus ([#1223](https://github.com/yext/visual-editor/pull/1223)) ([d48f1dbc](https://github.com/yext/visual-editor/commit/d48f1dbc0c51a54cc952ef67dd64a86ed5c0d3b7))

##### Bug Fixes

- comingSoon in locator results ([#1225](https://github.com/yext/visual-editor/pull/1225)) ([3768f5d3](https://github.com/yext/visual-editor/commit/3768f5d3a0b7436a28b19693911da050002ef8f9))

#### 1.3.1 (2026-05-19)

##### Bug Fixes
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/visual-editor/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@yext/visual-editor",
"description": "Component library for Yext Pages Visual Editor",
"version": "1.3.1",
"version": "1.3.2",
"author": "sumo@yext.com",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/visual-editor/src/components/LocatorResultCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ const HoursSection = (props: {
</CardIcon>
)}
<HoursStatusAtom
hours={(hoursData ?? {}) as HoursType}
hours={hoursData ?? {}}
comingSoon={comingSoon}
timezone={location.timezone}
className="text-body-fontSize mb-0"
Expand Down Expand Up @@ -1292,7 +1292,7 @@ const HoursSection = (props: {
>
<div className="flex flex-col gap-2">
<HoursTableAtom
hours={(hoursData ?? {}) as HoursType}
hours={hoursData ?? {}}
comingSoon={comingSoon}
startOfWeek={hoursProps.table.startOfWeek}
collapseDays={hoursProps.table.collapseDays}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,31 +69,22 @@ const directoryCardsSource = createSlottedItemSource<
// however the directory should be locked to the dm_directoryChildren field.
const getNormalizedDirectoryGridData = (
value: typeof directoryCardsSource.value | undefined
): typeof directoryCardsSource.value => {
const defaultMappings = (directoryCardsSource.defaultValue.mappings ??
{}) as NonNullable<typeof directoryCardsSource.defaultValue.mappings>;
const mappings = (value?.mappings ?? {}) as NonNullable<
typeof directoryCardsSource.defaultValue.mappings
>;
const defaultCardTitle = defaultMappings.cardTitle ?? {};

return {
...directoryCardsSource.defaultValue,
...value,
field: "dm_directoryChildren",
constantValueEnabled: false,
constantValue: [],
mappings: {
...defaultMappings,
...mappings,
cardTitle: {
...defaultCardTitle,
...mappings.cardTitle,
field: mappings.cardTitle?.field || "name",
},
): typeof directoryCardsSource.value => ({
...directoryCardsSource.defaultValue,
...value,
field: "dm_directoryChildren",
constantValueEnabled: false,
constantValue: [],
mappings: {
...directoryCardsSource.defaultValue.mappings!,
...value?.mappings,
cardTitle: {
...directoryCardsSource.defaultValue.mappings!.cardTitle,
...value?.mappings?.cardTitle,
field: value?.mappings?.cardTitle?.field || "name",
},
};
};
},
});

export const DirectoryList = ({
streamDocument,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { PuckContext } from "@puckeditor/core";
import { Address, HoursType } from "@yext/pages-components";
import { Address } from "@yext/pages-components";
import { Background } from "../../atoms/background.tsx";
import { Heading } from "../../atoms/heading.tsx";
import { HeadingLevel } from "../../../utils/themeConfigOptions.ts";
Expand Down Expand Up @@ -86,7 +86,7 @@ export const NearbyLocationCard: React.FC<NearbyLocationCardProps> = (
className={`font-semibold font-body-fontFamily text-body-fontSize ${showPhone || showAddress ? "mb-2" : ""}`}
>
<HoursStatusAtom
hours={(hours ?? {}) as HoursType}
hours={hours ?? {}}
comingSoon={comingSoon}
className="h-full"
timezone={timezone}
Expand Down
12 changes: 5 additions & 7 deletions packages/visual-editor/src/editor/EmbeddedFieldStringInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,11 @@ export const EmbeddedFieldStringInputFromOptions = ({
const handleFieldSelect = (fieldName: string) => {
setOpen(false);
if (!fieldName) return;
const resolutionPath = sourceField
? `${sourceField}.${fieldName}`
: fieldName;
const resolutionDocument = sourceField
? (getSubDocument(streamDocument, sourceField) ?? streamDocument)
: undefined;
onFieldSelect?.(resolutionPath, resolutionPath, resolutionDocument);
onFieldSelect?.(
sourceField ? `${sourceField}.${fieldName}` : fieldName,
fieldName,
sourceField ? getSubDocument(streamDocument, sourceField) : undefined
);
const textToInsert = `[[${fieldName}]]`;
let insertionPoint = cursorPosition ?? inputValue.length;

Expand Down
Loading