@yext/visual-editor 2.0.0-beta.6 → 2.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{SectionLibraryVisualEditorProvider-D48NB__d.js → SectionLibraryVisualEditorProvider-B4oMQHkI.js} +37301 -28992
- package/dist/cli/assets/directory-locator-source/components/sections/directory/Directory.tsx +39 -1
- package/dist/cli/assets/directory-locator-source/components/sections/directory/DirectoryWrapper.tsx +13 -5
- package/dist/cli/assets/directory-locator-source/sectionLibrarySupport.ts +9 -0
- package/dist/cli/yextve.js +17 -3
- package/dist/{locatorEntityTypes-Cx069o6O.d.ts → createYextFieldTransforms-CPEwasy9.d.ts} +299 -27
- package/dist/index.d.ts +38 -67
- package/dist/locales/platform/cs/visual-editor.json +120 -0
- package/dist/locales/platform/da/visual-editor.json +106 -0
- package/dist/locales/platform/de/visual-editor.json +106 -0
- package/dist/locales/platform/en/visual-editor.json +106 -0
- package/dist/locales/platform/en-GB/visual-editor.json +106 -0
- package/dist/locales/platform/es/visual-editor.json +113 -0
- package/dist/locales/platform/et/visual-editor.json +106 -0
- package/dist/locales/platform/fi/visual-editor.json +106 -0
- package/dist/locales/platform/fr/visual-editor.json +113 -0
- package/dist/locales/platform/hr/visual-editor.json +113 -0
- package/dist/locales/platform/hu/visual-editor.json +106 -0
- package/dist/locales/platform/it/visual-editor.json +113 -0
- package/dist/locales/platform/ja/visual-editor.json +106 -0
- package/dist/locales/platform/lt/visual-editor.json +120 -0
- package/dist/locales/platform/lv/visual-editor.json +110 -0
- package/dist/locales/platform/nb/visual-editor.json +106 -0
- package/dist/locales/platform/nl/visual-editor.json +106 -0
- package/dist/locales/platform/pl/visual-editor.json +120 -0
- package/dist/locales/platform/pt/visual-editor.json +113 -0
- package/dist/locales/platform/ro/visual-editor.json +113 -0
- package/dist/locales/platform/sk/visual-editor.json +120 -0
- package/dist/locales/platform/sv/visual-editor.json +106 -0
- package/dist/locales/platform/tr/visual-editor.json +106 -0
- package/dist/locales/platform/zh/visual-editor.json +106 -0
- package/dist/locales/platform/zh-TW/visual-editor.json +106 -0
- package/dist/plugin/internal/layoutGeneration/limits.d.ts +28 -0
- package/dist/plugin/plugin.js +6795 -2063
- package/dist/plugin/types/generationPrompts.d.ts +19 -0
- package/dist/plugin/types/generationSettings.d.ts +12 -0
- package/dist/plugin/types/sectionLibrary.d.ts +11 -4
- package/dist/plugin/vite-plugin/layout-generation/generationLogger.d.ts +5 -0
- package/dist/plugin/vite-plugin/layout-generation/generationReports.d.ts +13 -0
- package/dist/plugin/vite-plugin/layout-generation/middleware.d.ts +14 -0
- package/dist/plugin/vite-plugin/layout-generation/modelProxy.d.ts +9 -0
- package/dist/plugin/vite-plugin/layout-generation/prompts.d.ts +17 -0
- package/dist/plugin/vite-plugin/layout-generation/settings.d.ts +3 -0
- package/dist/plugin/vite-plugin/local-editor/artifacts.d.ts +4 -2
- package/dist/plugin/vite-plugin/local-editor/data.d.ts +2 -0
- package/dist/plugin/vite-plugin/local-editor/generatedFiles.d.ts +2 -3
- package/dist/plugin/vite-plugin/local-editor/server.d.ts +17 -1
- package/dist/plugin/vite-plugin/local-editor/types.d.ts +18 -2
- package/dist/plugin/vite-plugin/plugin.d.ts +1 -1
- package/dist/section-library-support.js +122 -118
- package/dist/sectionLibrarySupport.d.ts +61 -4
- package/dist/visual-editor-6mKs9VUe.js +842 -0
- package/dist/{visual-editor-DC1pCUtq.js → visual-editor-BK6fTU7k.js} +335 -228
- package/dist/{visual-editor-BKK2RKRg.js → visual-editor-BruRrJYN.js} +342 -235
- package/dist/visual-editor-Bs3wAslG.js +804 -0
- package/dist/{visual-editor-aXXSZO_i.js → visual-editor-C9TLeAzP.js} +355 -248
- package/dist/{visual-editor-bEaD2J5r.js → visual-editor-CHWtMtlu.js} +364 -250
- package/dist/{visual-editor-EZ39Q-Cf.js → visual-editor-CcfUKpnd.js} +346 -239
- package/dist/visual-editor-ClC6hoz3.js +804 -0
- package/dist/visual-editor-CtQwadxQ.js +842 -0
- package/dist/{visual-editor-Dpc4OfjE.js → visual-editor-D7VeTRK_.js} +358 -247
- package/dist/{visual-editor-DM0HkCii.js → visual-editor-DTE5kxrA.js} +351 -244
- package/dist/{visual-editor-5YEXG9DH.js → visual-editor-DjTEbi-1.js} +370 -249
- package/dist/{visual-editor-DKurZtUt.js → visual-editor-DkHhrFsX.js} +341 -234
- package/dist/visual-editor-DtL-Zuv_.js +804 -0
- package/dist/visual-editor-Duishbsa.js +842 -0
- package/dist/visual-editor-LXMNWXry.js +823 -0
- package/dist/visual-editor-QpGupjY5.js +823 -0
- package/dist/visual-editor-_TatCCAS.js +804 -0
- package/dist/{visual-editor-BQsdxhUz.js → visual-editor-gEaWoNRu.js} +352 -245
- package/dist/{visual-editor-1L5yvx9x.js → visual-editor-gjpr-NAN.js} +358 -251
- package/dist/{visual-editor-BZSN_IFr.js → visual-editor-qJW0uCiQ.js} +366 -259
- package/dist/visual-editor-sOPDMkOR.js +823 -0
- package/dist/visual-editor-tPb7n5l8.js +823 -0
- package/dist/visual-editor-vomNdlNO.js +804 -0
- package/dist/visual-editor-zKhC7_0C.js +823 -0
- package/dist/visual-editor.css +1 -1
- package/dist/visual-editor.js +12865 -9706
- package/package.json +6 -3
- package/dist/visual-editor-7MhH35_G.js +0 -709
- package/dist/visual-editor-BZiKZha2.js +0 -709
- package/dist/visual-editor-C3JS3OQU.js +0 -697
- package/dist/visual-editor-CGPLMAQn.js +0 -721
- package/dist/visual-editor-CIo2noVV.js +0 -709
- package/dist/visual-editor-CX5aaC7B.js +0 -709
- package/dist/visual-editor-CZouujLr.js +0 -697
- package/dist/visual-editor-CdwYNJ-y.js +0 -721
- package/dist/visual-editor-CwLtLH7t.js +0 -697
- package/dist/visual-editor-HIaH9B9G.js +0 -697
- package/dist/visual-editor-J0zs1Agv.js +0 -721
- package/dist/visual-editor-SYachtCo.js +0 -709
- package/dist/visual-editor-VsL3_PCS.js +0 -697
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { ReactNode } from 'react';
|
|
2
|
+
import React__default, { ReactNode, CSSProperties } from 'react';
|
|
3
3
|
import { ClassValue } from 'clsx';
|
|
4
4
|
import { ImageType, CTA as CTA$1, LinkType, HoursType, HoursTableProps, ComplexImageType } from '@yext/pages-components';
|
|
5
|
-
import { BaseField, FieldProps, DefaultComponentProps, ComponentConfig, Field, ArrayField, ObjectField, Fields, CustomField, Config, ComponentData } from '@puckeditor/core';
|
|
6
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
|
-
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import { BaseField, FieldProps, DefaultComponentProps, ComponentConfig, Field, ArrayField, ObjectField, Fields, CustomField, Config, ComponentData, FieldTransformFn } from '@puckeditor/core';
|
|
8
6
|
import * as _yext_search_headless_react from '@yext/search-headless-react';
|
|
9
7
|
import { SearchAnalyticsConfig } from '@yext/search-ui-react';
|
|
8
|
+
import { z } from 'zod';
|
|
10
9
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
10
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
11
|
+
import { VariantProps } from 'class-variance-authority';
|
|
11
12
|
import * as react_i18next from 'react-i18next';
|
|
12
13
|
import { TOptions } from 'i18next';
|
|
13
14
|
|
|
@@ -785,6 +786,11 @@ declare const isNonNormalizableLinkType: (linkType?: LinkType | string | null) =
|
|
|
785
786
|
*/
|
|
786
787
|
declare const normalizeLink: (content?: string, linkType?: LinkType) => string;
|
|
787
788
|
|
|
789
|
+
/** An authored theme color with render-ready CSS for both selected and contrasting colors. */
|
|
790
|
+
type ResolvedThemeColor = ThemeColor & {
|
|
791
|
+
selectedColorCss: string;
|
|
792
|
+
contrastingColorCss: string;
|
|
793
|
+
};
|
|
788
794
|
/**
|
|
789
795
|
* hexToRGB converts a hex color to rgb
|
|
790
796
|
* @param H hex string beginning with '#'
|
|
@@ -833,11 +839,11 @@ declare const getSurfaceColorStyle: (surfaceColor?: ThemeColor | string, streamD
|
|
|
833
839
|
*/
|
|
834
840
|
declare const getBackgroundColorClasses: (color?: ThemeColor) => string;
|
|
835
841
|
/**
|
|
836
|
-
* Resolves inline styles for bracketed custom colors in background contexts.
|
|
837
|
-
* @param color a ThemeColor object
|
|
842
|
+
* Resolves inline styles for resolved colors and bracketed custom colors in background contexts.
|
|
843
|
+
* @param color a ThemeColor or ResolvedThemeColor object
|
|
838
844
|
* @returns inline background/text color styles, e.g. `{ backgroundColor: "#FF6D66" }`
|
|
839
845
|
*/
|
|
840
|
-
declare const getBackgroundColorStyle: (color?: ThemeColor) => {
|
|
846
|
+
declare const getBackgroundColorStyle: (color?: ThemeColor | ResolvedThemeColor) => {
|
|
841
847
|
backgroundColor?: string;
|
|
842
848
|
color?: string;
|
|
843
849
|
} | undefined;
|
|
@@ -954,11 +960,27 @@ type BasicSelectorFieldWithGroups = BasicSelectorFieldBase & {
|
|
|
954
960
|
optionGroups: ComboboxOptionGroup[];
|
|
955
961
|
};
|
|
956
962
|
type BasicSelectorField = BasicSelectorFieldWithOptions | BasicSelectorFieldWithGroups;
|
|
957
|
-
|
|
958
|
-
declare const BasicSelectorFieldOverride: (
|
|
963
|
+
/** Keeps shipped color selectors editable while new configs use themeColor. */
|
|
964
|
+
declare const BasicSelectorFieldOverride: (props: FieldProps<BasicSelectorField>) => React__default.JSX.Element;
|
|
965
|
+
|
|
966
|
+
/** Theme colors always retain authored tokens and resolve both CSS colors. */
|
|
967
|
+
type ThemeColorField = BaseField & {
|
|
968
|
+
type: "themeColor";
|
|
969
|
+
/** Selects site or background palette choices. */
|
|
970
|
+
options: "SITE_COLOR" | "BACKGROUND_COLOR";
|
|
971
|
+
label?: string | MsgString;
|
|
972
|
+
visible?: boolean;
|
|
973
|
+
translateOptions?: boolean;
|
|
974
|
+
noOptionsPlaceholder?: string | MsgString;
|
|
975
|
+
noOptionsMessage?: string | MsgString;
|
|
976
|
+
disableSearch?: boolean;
|
|
977
|
+
};
|
|
978
|
+
/** Edits palette and custom ThemeColor values without changing their authored shape. */
|
|
979
|
+
declare const ThemeColorFieldOverride: ({ field, value, onChange, }: FieldProps<ThemeColorField, ThemeColor | undefined>) => React__default.JSX.Element;
|
|
959
980
|
|
|
960
981
|
type CodeLanguageOptions = "html" | "css" | "json" | "shell" | "java" | "javascript" | "jsx" | "markdown" | "typescript";
|
|
961
982
|
type CodeField = BaseField & {
|
|
983
|
+
/** Processes HTML templates and JavaScript embedded fields; other code stays authored. */
|
|
962
984
|
type: "code";
|
|
963
985
|
label?: string | MsgString;
|
|
964
986
|
visible?: boolean;
|
|
@@ -1021,12 +1043,18 @@ type YextCTAField = YextEntityField<EnhancedTranslatableCTA> & {
|
|
|
1021
1043
|
};
|
|
1022
1044
|
type CTASelectorField = BaseField & {
|
|
1023
1045
|
type: "ctaSelector";
|
|
1046
|
+
/** Resolves the CTA source, localized text, and directions URL before rendering. */
|
|
1047
|
+
transform?: boolean;
|
|
1024
1048
|
label?: string | MsgString;
|
|
1025
1049
|
visible?: boolean;
|
|
1026
1050
|
disableConstantValueToggle?: boolean;
|
|
1027
1051
|
};
|
|
1028
1052
|
type CTASelectorFieldProps = FieldProps<CTASelectorField>;
|
|
1029
|
-
|
|
1053
|
+
/**
|
|
1054
|
+
* Renders CTA source controls. Its declaration is available when the field
|
|
1055
|
+
* registry initializes.
|
|
1056
|
+
*/
|
|
1057
|
+
declare function CTASelectorFieldOverride({ field, value, onChange, }: CTASelectorFieldProps): React__default.JSX.Element;
|
|
1030
1058
|
|
|
1031
1059
|
type MultiSelectorOptionValue = string | number | boolean;
|
|
1032
1060
|
type MultiSelectorOptionSelection<T extends MultiSelectorOptionValue> = {
|
|
@@ -1069,18 +1097,25 @@ type MultiSelectorOptions<T extends MultiSelectorOptionValue> = MultiSelectorOpt
|
|
|
1069
1097
|
*/
|
|
1070
1098
|
type MultiSelectorField<T extends MultiSelectorOptionValue = any> = BaseField & {
|
|
1071
1099
|
type: "multiSelector";
|
|
1100
|
+
/** Returns the selected values as an array before rendering. */
|
|
1101
|
+
transform?: boolean;
|
|
1072
1102
|
label: string | MsgString;
|
|
1073
1103
|
dropdownLabel: string | MsgString;
|
|
1074
1104
|
options: MultiSelectorOptions<T>;
|
|
1075
1105
|
placeholderOptionLabel?: string | MsgString;
|
|
1076
1106
|
};
|
|
1077
1107
|
type MultiSelectorFieldProps<T extends MultiSelectorOptionValue> = FieldProps<MultiSelectorField<T>, MultiSelectorValue<T> | undefined>;
|
|
1078
|
-
/**
|
|
1079
|
-
|
|
1108
|
+
/**
|
|
1109
|
+
* A multi-select field whose options may be static or loaded from a function.
|
|
1110
|
+
* Its declaration is available when the field registry initializes.
|
|
1111
|
+
*/
|
|
1112
|
+
declare function MultiSelectorFieldOverride<T extends MultiSelectorOptionValue>({ field, value, onChange, id, readOnly, }: MultiSelectorFieldProps<T>): React.JSX.Element;
|
|
1080
1113
|
|
|
1081
1114
|
type OptionalNumberValue = number | string | null | undefined;
|
|
1082
1115
|
type OptionalNumberField = BaseField & {
|
|
1083
1116
|
type: "optionalNumber";
|
|
1117
|
+
/** Returns a number or undefined before rendering. */
|
|
1118
|
+
transform?: boolean;
|
|
1084
1119
|
label?: string | MsgString;
|
|
1085
1120
|
hideNumberFieldRadioLabel: string | MsgString;
|
|
1086
1121
|
showNumberFieldRadioLabel: string | MsgString;
|
|
@@ -1089,11 +1124,55 @@ type OptionalNumberField = BaseField & {
|
|
|
1089
1124
|
type OptionalNumberFieldProps = FieldProps<OptionalNumberField, OptionalNumberValue>;
|
|
1090
1125
|
declare const OptionalNumberFieldOverride: ({ field, value, onChange, }: OptionalNumberFieldProps) => React__default.JSX.Element;
|
|
1091
1126
|
|
|
1127
|
+
/** Generation limits supplied by ALPHA, independently of prompt wording. */
|
|
1128
|
+
declare const generationSettingsSchema: z.ZodObject<{
|
|
1129
|
+
attemptTimeoutMs: z.ZodNumber;
|
|
1130
|
+
maxOutputTokens: z.ZodObject<{
|
|
1131
|
+
page: z.ZodNumber;
|
|
1132
|
+
prepare: z.ZodNumber;
|
|
1133
|
+
plan: z.ZodNumber;
|
|
1134
|
+
section: z.ZodNumber;
|
|
1135
|
+
}, z.core.$strict>;
|
|
1136
|
+
}, z.core.$strict>;
|
|
1137
|
+
type GenerationSettings = z.infer<typeof generationSettingsSchema>;
|
|
1138
|
+
|
|
1139
|
+
/** Contract version changes when keys or substitutions change. */
|
|
1140
|
+
declare const generationPromptBundleSchema: z.ZodObject<{
|
|
1141
|
+
contractVersion: z.ZodLiteral<1>;
|
|
1142
|
+
prompts: z.ZodObject<{
|
|
1143
|
+
prepare: z.ZodString;
|
|
1144
|
+
create: z.ZodString;
|
|
1145
|
+
fullPageUpdate: z.ZodString;
|
|
1146
|
+
plan: z.ZodString;
|
|
1147
|
+
section: z.ZodString;
|
|
1148
|
+
}, z.core.$strict>;
|
|
1149
|
+
context: z.ZodObject<{
|
|
1150
|
+
createLists: z.ZodString;
|
|
1151
|
+
fullPageUpdateLists: z.ZodString;
|
|
1152
|
+
createRecommendations: z.ZodString;
|
|
1153
|
+
fullPageUpdateRecommendations: z.ZodString;
|
|
1154
|
+
}, z.core.$strict>;
|
|
1155
|
+
}, z.core.$strict>;
|
|
1156
|
+
type GenerationPromptBundle = z.infer<typeof generationPromptBundleSchema>;
|
|
1157
|
+
|
|
1092
1158
|
type HeadDeployStatus = "RUNNING" | "INACTIVE" | "FAILED" | "ACTIVE";
|
|
1159
|
+
type IntentPageGeneration = {
|
|
1160
|
+
prompt?: string;
|
|
1161
|
+
status?: "PENDING" | "RUNNING" | "FAILED" | "COMPLETED";
|
|
1162
|
+
attemptId?: string;
|
|
1163
|
+
};
|
|
1164
|
+
type AiPageGeneration = {
|
|
1165
|
+
prompts?: GenerationPromptBundle;
|
|
1166
|
+
generationSettings?: GenerationSettings;
|
|
1167
|
+
intentPageGeneration?: IntentPageGeneration;
|
|
1168
|
+
layoutGenerationEnabled: boolean;
|
|
1169
|
+
model: string;
|
|
1170
|
+
};
|
|
1093
1171
|
type TemplateMetadata = {
|
|
1172
|
+
aiPageGeneration?: AiPageGeneration;
|
|
1094
1173
|
siteId: number;
|
|
1095
1174
|
templateId: string;
|
|
1096
|
-
layoutId?:
|
|
1175
|
+
layoutId?: string;
|
|
1097
1176
|
entityId?: number;
|
|
1098
1177
|
themeEntityId?: number;
|
|
1099
1178
|
assignment: "ALL" | "ENTITY";
|
|
@@ -1161,6 +1240,8 @@ type ImagePayload = {
|
|
|
1161
1240
|
};
|
|
1162
1241
|
type ImageField = BaseField & {
|
|
1163
1242
|
type: "image";
|
|
1243
|
+
/** Localizes the asset image and resolves its alt text before rendering. */
|
|
1244
|
+
transform?: boolean;
|
|
1164
1245
|
label?: string | MsgString;
|
|
1165
1246
|
visible?: boolean;
|
|
1166
1247
|
hideAltTextField?: boolean;
|
|
@@ -1169,7 +1250,11 @@ type ImageField = BaseField & {
|
|
|
1169
1250
|
};
|
|
1170
1251
|
type ImageFieldOverrideProps = FieldProps<ImageField>;
|
|
1171
1252
|
declare const buildLocatorDisplayOptions: (locatorDisplayFields?: Record<string, FieldTypeData>) => EmbeddedStringOption[];
|
|
1172
|
-
|
|
1253
|
+
/**
|
|
1254
|
+
* Renders image field controls. Its declaration is available when the field
|
|
1255
|
+
* registry initializes.
|
|
1256
|
+
*/
|
|
1257
|
+
declare function ImageFieldOverride({ field, onChange, value, }: ImageFieldOverrideProps): React__default.JSX.Element;
|
|
1173
1258
|
|
|
1174
1259
|
/**
|
|
1175
1260
|
* Defines the core typography styling properties shared across text-based components.
|
|
@@ -1188,6 +1273,8 @@ type StyledButtonValue = BaseTextStyles & {
|
|
|
1188
1273
|
};
|
|
1189
1274
|
type StyledButtonField = BaseField & {
|
|
1190
1275
|
type: "styledButton";
|
|
1276
|
+
/** Converts authored button typography into CSS styles. */
|
|
1277
|
+
transform?: boolean;
|
|
1191
1278
|
label?: string | MsgString;
|
|
1192
1279
|
visible?: boolean;
|
|
1193
1280
|
};
|
|
@@ -1199,6 +1286,8 @@ type StyledImageValue = {
|
|
|
1199
1286
|
};
|
|
1200
1287
|
type StyledImageField = BaseField & {
|
|
1201
1288
|
type: "styledImage";
|
|
1289
|
+
/** Converts the authored border radius into CSS styles. */
|
|
1290
|
+
transform?: boolean;
|
|
1202
1291
|
label?: string | MsgString;
|
|
1203
1292
|
visible?: boolean;
|
|
1204
1293
|
};
|
|
@@ -1211,6 +1300,8 @@ type StyledLinkValue = BaseTextStyles & {
|
|
|
1211
1300
|
};
|
|
1212
1301
|
type StyledLinkField = BaseField & {
|
|
1213
1302
|
type: "styledLink";
|
|
1303
|
+
/** Converts authored link typography and caret choice into CSS styles. */
|
|
1304
|
+
transform?: boolean;
|
|
1214
1305
|
label?: string | MsgString;
|
|
1215
1306
|
visible?: boolean;
|
|
1216
1307
|
showIncludeCaretField?: boolean;
|
|
@@ -1230,6 +1321,8 @@ type ContentWidthValue = "default" | "768px" | "960px" | "1024px" | "1280px" | "
|
|
|
1230
1321
|
type VerticalPaddingValue = "default" | "0px" | "2px" | "4px" | "6px" | "8px" | "10px" | "12px" | "14px" | "16px" | "20px" | "24px" | "28px" | "32px" | "36px" | "40px" | "44px" | "48px" | "56px" | "64px" | "80px" | "96px";
|
|
1231
1322
|
type StyledPageSectionField = BaseField & {
|
|
1232
1323
|
type: "styledPageSection";
|
|
1324
|
+
/** Converts authored width and padding choices into CSS styles. */
|
|
1325
|
+
transform?: boolean;
|
|
1233
1326
|
label?: string | MsgString;
|
|
1234
1327
|
visible?: boolean;
|
|
1235
1328
|
};
|
|
@@ -1241,6 +1334,8 @@ type StyledTextValue = BaseTextStyles & {
|
|
|
1241
1334
|
};
|
|
1242
1335
|
type StyledTextField = BaseField & {
|
|
1243
1336
|
type: "styledText";
|
|
1337
|
+
/** Converts authored typography and color choices into CSS styles. */
|
|
1338
|
+
transform?: boolean;
|
|
1244
1339
|
label?: string | MsgString;
|
|
1245
1340
|
visible?: boolean;
|
|
1246
1341
|
includeColor?: boolean;
|
|
@@ -1251,6 +1346,8 @@ declare const StyledTextFieldOverride: ({ field, value, onChange, }: StyledTextF
|
|
|
1251
1346
|
|
|
1252
1347
|
type TranslatableStringField = BaseField & {
|
|
1253
1348
|
type: "translatableString";
|
|
1349
|
+
/** Localizes and interpolates this field before rendering. */
|
|
1350
|
+
transform?: boolean;
|
|
1254
1351
|
label?: string | MsgString;
|
|
1255
1352
|
visible?: boolean;
|
|
1256
1353
|
filter?: RenderEntityFieldFilter<any>;
|
|
@@ -1265,6 +1362,8 @@ declare const TranslatableStringFieldOverride: ({ field, onChange, value, }: Tra
|
|
|
1265
1362
|
|
|
1266
1363
|
type VideoField = BaseField & {
|
|
1267
1364
|
type: "video";
|
|
1365
|
+
/** Resolves embedded fields in the video asset before rendering. */
|
|
1366
|
+
transform?: boolean;
|
|
1268
1367
|
label?: string | MsgString;
|
|
1269
1368
|
visible?: boolean;
|
|
1270
1369
|
};
|
|
@@ -1369,15 +1468,131 @@ type ComprehensiveCTAValue = {
|
|
|
1369
1468
|
};
|
|
1370
1469
|
type ComprehensiveCTAField = BaseField & {
|
|
1371
1470
|
type: "comprehensiveCTA";
|
|
1471
|
+
/** Resolves CTA bindings and translated text before rendering. */
|
|
1472
|
+
transform?: boolean;
|
|
1372
1473
|
label?: string | MsgString;
|
|
1373
1474
|
visible?: boolean;
|
|
1374
1475
|
disableConstantValueToggle?: boolean;
|
|
1375
1476
|
};
|
|
1376
1477
|
type ComprehensiveCTAFieldProps = FieldProps<ComprehensiveCTAField, ComprehensiveCTAValue>;
|
|
1377
|
-
|
|
1478
|
+
/**
|
|
1479
|
+
* ComprehensiveCTAField imports YextAutoField, which uses the field override registry.
|
|
1480
|
+
* A function declaration lets the registry reference this override during module initialization.
|
|
1481
|
+
*/
|
|
1482
|
+
declare function ComprehensiveCTAFieldOverride({ field, value, onChange, }: ComprehensiveCTAFieldProps): React__default.JSX.Element;
|
|
1483
|
+
|
|
1484
|
+
type FieldTransformContext = {
|
|
1485
|
+
streamDocument: StreamDocument;
|
|
1486
|
+
locale: string;
|
|
1487
|
+
/** The complete linked item, including primitive list items. */
|
|
1488
|
+
itemDocument?: unknown;
|
|
1489
|
+
};
|
|
1490
|
+
|
|
1491
|
+
declare const alwaysTransformedFieldTypes: readonly ["code", "themeColor"];
|
|
1378
1492
|
|
|
1493
|
+
/** Maps explicit entity-field formats to their render-value conversion. */
|
|
1494
|
+
declare const entityFieldFormatters: {
|
|
1495
|
+
price: (value: ProductPrice | undefined, context: FieldTransformContext) => string | undefined;
|
|
1496
|
+
};
|
|
1497
|
+
|
|
1498
|
+
type LocalizedRenderValue<Value> = Value extends readonly (infer Item)[] ? LocalizedRenderValue<Item>[] : Value extends object ? "defaultValue" extends keyof Value ? LocalizedRenderValue<Value["defaultValue"]> : {
|
|
1499
|
+
[Key in keyof Value]: LocalizedRenderValue<Value[Key]>;
|
|
1500
|
+
} : Value;
|
|
1501
|
+
/** CTA data after localized text and links are resolved for rendering. */
|
|
1502
|
+
type ResolvedCTAValue = {
|
|
1503
|
+
link: string;
|
|
1504
|
+
label?: string;
|
|
1505
|
+
linkType?: LinkType;
|
|
1506
|
+
normalizeLink?: boolean;
|
|
1507
|
+
openInNewTab?: boolean;
|
|
1508
|
+
ctaType?: "textAndLink" | "getDirections" | "presetImage";
|
|
1509
|
+
};
|
|
1510
|
+
/** The presentation component consumes this data contract without resolving authored bindings. */
|
|
1511
|
+
type ResolvedComprehensiveCTAValue = Omit<ComprehensiveCTAValue, "data"> & {
|
|
1512
|
+
data: Omit<ComprehensiveCTAValue["data"], "cta" | "buttonText" | "ariaLabel"> & {
|
|
1513
|
+
cta: ResolvedCTAValue | undefined;
|
|
1514
|
+
buttonText?: string;
|
|
1515
|
+
ariaLabel?: string;
|
|
1516
|
+
};
|
|
1517
|
+
};
|
|
1518
|
+
/** Retains value-based inference for item sources with widened field definitions. */
|
|
1519
|
+
type ResolvedRepeatedValue<Value> = Value extends {
|
|
1520
|
+
constantValue: infer Constant;
|
|
1521
|
+
} ? LocalizedRenderValue<Constant> | undefined : Value extends ComprehensiveCTAValue ? ResolvedComprehensiveCTAValue : Value extends {
|
|
1522
|
+
selections: {
|
|
1523
|
+
value: infer Selection;
|
|
1524
|
+
}[];
|
|
1525
|
+
} ? Exclude<Selection, undefined>[] : Value extends readonly (infer Item)[] ? ResolvedRepeatedValue<Item>[] : Value extends object ? {
|
|
1526
|
+
[Key in keyof Value]: ResolvedRepeatedValue<Value[Key]>;
|
|
1527
|
+
} : Value;
|
|
1528
|
+
/** Repeated sources transform all mapped fields, even without a child opt-in. */
|
|
1529
|
+
type ResolvedRepeatedItem<Value, Definitions> = Value extends readonly (infer Item)[] ? ResolvedRepeatedItem<Item, Definitions>[] : {
|
|
1530
|
+
[Key in keyof Value]: Key extends keyof Definitions ? ResolvedRepeatedFieldValue<Value[Key], Definitions[Key]> : LocalizedRenderValue<Value[Key]>;
|
|
1531
|
+
};
|
|
1532
|
+
type ResolvedRepeatedFieldValue<Value, Definition> = YextFieldDefinition["type"] extends (Definition extends {
|
|
1533
|
+
type: infer FieldType;
|
|
1534
|
+
} ? FieldType : never) ? ResolvedRepeatedValue<Value> : Definition extends {
|
|
1535
|
+
type: "object";
|
|
1536
|
+
objectFields: infer Fields;
|
|
1537
|
+
} ? ResolvedRepeatedItem<Value, Fields> : Definition extends {
|
|
1538
|
+
type: "array";
|
|
1539
|
+
arrayFields: infer Fields;
|
|
1540
|
+
} ? ResolvedRepeatedItem<Value, Fields> : Definition extends {
|
|
1541
|
+
type: infer FieldType;
|
|
1542
|
+
} ? FieldType extends keyof TransformedFieldValues<Value, Definition> ? TransformedFieldValues<Value, Definition>[FieldType] : LocalizedRenderValue<Value> : LocalizedRenderValue<Value>;
|
|
1543
|
+
type TransformedFieldValues<Value, Definition> = {
|
|
1544
|
+
themeColor: ResolvedThemeColor | undefined;
|
|
1545
|
+
code: string;
|
|
1546
|
+
styledText: CSSProperties;
|
|
1547
|
+
styledButton: CSSProperties;
|
|
1548
|
+
styledLink: CSSProperties;
|
|
1549
|
+
styledImage: CSSProperties;
|
|
1550
|
+
styledPageSection: CSSProperties;
|
|
1551
|
+
translatableString: string;
|
|
1552
|
+
image: LocalizedRenderValue<Value>;
|
|
1553
|
+
video: LocalizedRenderValue<Value>;
|
|
1554
|
+
comprehensiveCTA: ResolvedComprehensiveCTAValue;
|
|
1555
|
+
multiSelector: Value extends {
|
|
1556
|
+
selections: {
|
|
1557
|
+
value: infer Selection;
|
|
1558
|
+
}[];
|
|
1559
|
+
} ? Exclude<Selection, undefined>[] : never;
|
|
1560
|
+
optionalNumber: number | undefined;
|
|
1561
|
+
ctaSelector: LocalizedRenderValue<EnhancedTranslatableCTA> | undefined;
|
|
1562
|
+
entityField: Definition extends {
|
|
1563
|
+
format: infer Format;
|
|
1564
|
+
} ? Format extends keyof typeof entityFieldFormatters ? ReturnType<(typeof entityFieldFormatters)[Format]> : never : Definition extends {
|
|
1565
|
+
repeated: {
|
|
1566
|
+
mappingFields: infer Fields;
|
|
1567
|
+
};
|
|
1568
|
+
} ? Value extends {
|
|
1569
|
+
constantValue: infer Constant;
|
|
1570
|
+
} ? ResolvedRepeatedItem<Constant, Fields> : never : Value extends {
|
|
1571
|
+
constantValue: infer Constant;
|
|
1572
|
+
} ? LocalizedRenderValue<Constant> | undefined : never;
|
|
1573
|
+
};
|
|
1574
|
+
/** Derives render prop types for nested object fields and array items; leaves other values unchanged. */
|
|
1575
|
+
type NestedFieldValue<Value, Definition> = Definition extends {
|
|
1576
|
+
type: "object";
|
|
1577
|
+
objectFields: object;
|
|
1578
|
+
} ? YextTransformedProps<Value, Definition["objectFields"]> : Definition extends {
|
|
1579
|
+
type: "array";
|
|
1580
|
+
arrayFields: object;
|
|
1581
|
+
} ? Value extends unknown[] ? YextTransformedProps<Value[number], Definition["arrayFields"]>[] : Value : Value;
|
|
1582
|
+
type TransformedFieldValue<Value, Definition> = Definition extends {
|
|
1583
|
+
transform: true;
|
|
1584
|
+
} | {
|
|
1585
|
+
type: (typeof alwaysTransformedFieldTypes)[number];
|
|
1586
|
+
} ? Definition extends {
|
|
1587
|
+
type: infer FieldType;
|
|
1588
|
+
} ? FieldType extends keyof TransformedFieldValues<Value, Definition> ? TransformedFieldValues<Value, Definition>[FieldType] : Value : Value : NestedFieldValue<Value, Definition>;
|
|
1589
|
+
/** Derives render values from authored props and supported field definitions. */
|
|
1590
|
+
type YextTransformedProps<Props, Definitions> = {
|
|
1591
|
+
[Key in keyof Props]: Key extends keyof Definitions ? TransformedFieldValue<Props[Key], Definitions[Key]> : Props[Key];
|
|
1592
|
+
};
|
|
1379
1593
|
type YextPuckFields = {
|
|
1380
1594
|
basicSelector: BasicSelectorField;
|
|
1595
|
+
themeColor: ThemeColorField;
|
|
1381
1596
|
ctaSelector: CTASelectorField;
|
|
1382
1597
|
code: CodeField;
|
|
1383
1598
|
comprehensiveCTA: ComprehensiveCTAField;
|
|
@@ -1412,11 +1627,23 @@ type YextObjectField<Props extends {
|
|
|
1412
1627
|
};
|
|
1413
1628
|
type YextCustomFieldRenderProps<ValueType> = Parameters<CustomField<ValueType>["render"]>[0];
|
|
1414
1629
|
type YextFieldDefinition<ValueType = any> = Field<ValueType, YextPuckField> | Field<NonNullable<ValueType>, YextPuckField> | YextPuckField | (ValueType extends Record<string, any>[] ? YextArrayField<ValueType> : never) | (ValueType extends Record<string, any> ? YextObjectField<ValueType> : never);
|
|
1415
|
-
type
|
|
1630
|
+
/** Provides a formal zod type describing the props for AI layout generation. */
|
|
1631
|
+
type LayoutGenerationMetadata = {
|
|
1632
|
+
props: z.ZodObject;
|
|
1633
|
+
/** JSON Pointer paths relative to props whose resolved values survive chat edit preservation. */
|
|
1634
|
+
resolvedProps?: string[];
|
|
1635
|
+
slottedItemSource?: SlottedItemSourceGenerationMetadata;
|
|
1636
|
+
};
|
|
1637
|
+
type YextComponentConfig<Props extends DefaultComponentProps = DefaultComponentProps, TransformFields = {}> = Omit<ComponentConfig<{
|
|
1416
1638
|
props: Props;
|
|
1417
1639
|
fields: YextPuckFields;
|
|
1418
|
-
}>, "fields" | "resolveFields"> & {
|
|
1640
|
+
}>, "fields" | "resolveFields" | "render"> & {
|
|
1641
|
+
render: ComponentConfig<{
|
|
1642
|
+
props: YextTransformedProps<Props, TransformFields>;
|
|
1643
|
+
fields: YextPuckFields;
|
|
1644
|
+
}>["render"];
|
|
1419
1645
|
fields?: YextFields<Props>;
|
|
1646
|
+
layoutGenerationMetadata?: LayoutGenerationMetadata;
|
|
1420
1647
|
resolveFields?: ComponentConfig<{
|
|
1421
1648
|
props: Props;
|
|
1422
1649
|
fields: YextPuckFields;
|
|
@@ -1447,7 +1674,7 @@ declare const toPuckFields: <Props extends DefaultComponentProps = DefaultCompon
|
|
|
1447
1674
|
* 2. Define the repeated entity-field value shape returned to consumers.
|
|
1448
1675
|
* 3. Define the resolved item shape returned by `resolveItems(...)`.
|
|
1449
1676
|
*/
|
|
1450
|
-
type CreateItemSourceOptions<TItemProps extends Record<string, unknown>> = {
|
|
1677
|
+
type CreateItemSourceOptions<TItemProps extends Record<string, unknown>, MappingFields extends YextFieldMap<TItemProps> = YextFieldMap<TItemProps>> = {
|
|
1451
1678
|
/** Label shown above the item source controls. */
|
|
1452
1679
|
label: string;
|
|
1453
1680
|
/**
|
|
@@ -1456,18 +1683,21 @@ type CreateItemSourceOptions<TItemProps extends Record<string, unknown>> = {
|
|
|
1456
1683
|
* A list can be selected when its item type or a child field matches any
|
|
1457
1684
|
* mapping field filter.
|
|
1458
1685
|
*/
|
|
1459
|
-
mappingFields:
|
|
1686
|
+
mappingFields: MappingFields;
|
|
1460
1687
|
/** Initial manual items. The first item is also the template for new items. */
|
|
1461
1688
|
defaultValues?: TItemProps[];
|
|
1462
1689
|
};
|
|
1463
1690
|
type RepeatedEntityFieldValue<TItemProps extends Record<string, unknown>> = YextEntityField<TItemProps[], TItemProps>;
|
|
1464
|
-
type RepeatedEntityFieldMetadata<TItemProps extends Record<string, unknown>> = {
|
|
1465
|
-
mappingFields:
|
|
1691
|
+
type RepeatedEntityFieldMetadata<TItemProps extends Record<string, unknown>, MappingFields extends YextFieldMap<TItemProps> = YextFieldMap<TItemProps>> = {
|
|
1692
|
+
mappingFields: MappingFields;
|
|
1466
1693
|
manualItemFields: YextFieldMap<TItemProps>;
|
|
1467
1694
|
defaultItemValue: TItemProps;
|
|
1468
1695
|
defaultMappings: TItemProps;
|
|
1469
1696
|
manualItemSummary?: (item: unknown, index?: number) => string;
|
|
1470
1697
|
};
|
|
1698
|
+
type RepeatedEntityFieldDefinition<TItemProps extends Record<string, unknown>, MappingFields extends YextFieldMap<TItemProps> = YextFieldMap<TItemProps>> = EntityFieldSelectorField<RepeatedEntityFieldValue<TItemProps>> & {
|
|
1699
|
+
repeated: RepeatedEntityFieldMetadata<TItemProps, MappingFields>;
|
|
1700
|
+
};
|
|
1471
1701
|
/**
|
|
1472
1702
|
* Resolves authored item fields into the render-ready value shape returned
|
|
1473
1703
|
* from `ItemSourceInstance.resolveItems(...)`.
|
|
@@ -1478,8 +1708,8 @@ type ResolvedItemField<TValue> = TValue extends YextEntityField<infer TResolved,
|
|
|
1478
1708
|
/**
|
|
1479
1709
|
* Public contract returned by `createItemSource(...)`.
|
|
1480
1710
|
*/
|
|
1481
|
-
type ItemSourceInstance<TItemProps extends Record<string, unknown>> = {
|
|
1482
|
-
field:
|
|
1711
|
+
type ItemSourceInstance<TItemProps extends Record<string, unknown>, MappingFields extends YextFieldMap<TItemProps> = YextFieldMap<TItemProps>> = {
|
|
1712
|
+
field: RepeatedEntityFieldDefinition<TItemProps, MappingFields>;
|
|
1483
1713
|
defaultValue: RepeatedEntityFieldValue<TItemProps>;
|
|
1484
1714
|
value: RepeatedEntityFieldValue<TItemProps>;
|
|
1485
1715
|
resolveItems: (value: RepeatedEntityFieldValue<TItemProps> | undefined, streamDocument: StreamDocument) => ResolvedItemField<TItemProps>[];
|
|
@@ -1495,8 +1725,14 @@ type CreateSlottedItemSourceOptions<TMappings extends Record<string, unknown>, T
|
|
|
1495
1725
|
defaultItemProps?: TCardProps | (() => TCardProps);
|
|
1496
1726
|
defaultItems?: number;
|
|
1497
1727
|
};
|
|
1728
|
+
/** Opt-in generation ownership for the helper's fixed data and CardSlot locations. */
|
|
1729
|
+
type SlottedItemSourceGenerationMetadata = {
|
|
1730
|
+
cardType: string;
|
|
1731
|
+
defaultItemProps?: Record<string, unknown> | (() => Record<string, unknown>);
|
|
1732
|
+
};
|
|
1498
1733
|
type SlottedItemSourceInstance<TMappings extends Record<string, unknown>> = {
|
|
1499
1734
|
field: YextFieldDefinition<SlotMappedCardsData<TMappings>>;
|
|
1735
|
+
generationMetadata: SlottedItemSourceGenerationMetadata;
|
|
1500
1736
|
defaultValue: SlotMappedCardsData<TMappings>;
|
|
1501
1737
|
defaultWrapperProps: {
|
|
1502
1738
|
data: SlotMappedCardsData<TMappings>;
|
|
@@ -1524,6 +1760,10 @@ type SlottedItemSourceInstance<TMappings extends Record<string, unknown>> = {
|
|
|
1524
1760
|
|
|
1525
1761
|
type EntityFieldSelectorField<T extends Record<string, any> = Record<string, any>> = BaseField & {
|
|
1526
1762
|
type: "entityField";
|
|
1763
|
+
/** Resolves this field before rendering. Repeated sources are not supported. */
|
|
1764
|
+
transform?: boolean;
|
|
1765
|
+
/** Formats a resolved structured price as localized currency when transformed. */
|
|
1766
|
+
format?: "price";
|
|
1527
1767
|
label?: string | MsgString;
|
|
1528
1768
|
visible?: boolean;
|
|
1529
1769
|
filter: MappedSourceFieldFilter<T>;
|
|
@@ -1544,7 +1784,11 @@ type EntityFieldSelectorField<T extends Record<string, any> = Record<string, any
|
|
|
1544
1784
|
repeated?: RepeatedEntityFieldMetadata<any>;
|
|
1545
1785
|
};
|
|
1546
1786
|
type EntityFieldSelectorFieldProps = FieldProps<EntityFieldSelectorField>;
|
|
1547
|
-
|
|
1787
|
+
/**
|
|
1788
|
+
* Renders entity field controls. Its declaration is available when the field
|
|
1789
|
+
* registry initializes.
|
|
1790
|
+
*/
|
|
1791
|
+
declare function EntityFieldSelectorFieldOverride({ field, value, onChange, }: EntityFieldSelectorFieldProps): React__default.JSX.Element;
|
|
1548
1792
|
declare const ConstantValueModeToggler: ({ fieldTypeFilter, constantValueEnabled, toggleConstantValueEnabled, disableConstantValue, label, showLocale, infoTooltipRequirements, }: {
|
|
1549
1793
|
fieldTypeFilter: EntityFieldTypes[];
|
|
1550
1794
|
constantValueEnabled: boolean;
|
|
@@ -1691,7 +1935,7 @@ declare const AccordionTrigger: React__default.ForwardRefExoticComponent<React__
|
|
|
1691
1935
|
declare const AccordionContent: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
1692
1936
|
|
|
1693
1937
|
interface BackgroundProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1694
|
-
background?: ThemeColor;
|
|
1938
|
+
background?: ThemeColor | ResolvedThemeColor;
|
|
1695
1939
|
as?: "div" | "section" | "nav" | "header" | "footer" | "main" | "aside";
|
|
1696
1940
|
}
|
|
1697
1941
|
declare const Background: React.ForwardRefExoticComponent<BackgroundProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1790,7 +2034,7 @@ declare const maxWidthVariants: (props?: ({
|
|
|
1790
2034
|
maxWidth?: "768px" | "960px" | "1024px" | "1280px" | "1440px" | "theme" | "fullWidth" | null | undefined;
|
|
1791
2035
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1792
2036
|
interface PageSectionProps extends VariantProps<typeof maxWidthVariants>, React.HTMLAttributes<HTMLDivElement> {
|
|
1793
|
-
background?: ThemeColor;
|
|
2037
|
+
background?: ThemeColor | ResolvedThemeColor;
|
|
1794
2038
|
verticalPadding?: VariantProps<typeof pageSectionVariants>["verticalPadding"];
|
|
1795
2039
|
as?: "div" | "section" | "nav" | "header" | "footer" | "main" | "aside";
|
|
1796
2040
|
outerClassName?: string;
|
|
@@ -1855,4 +2099,32 @@ declare function isLocatorEntityType(value: string): value is LocatorEntityType;
|
|
|
1855
2099
|
declare const getLocatorEntityTypeSourceMap: (streamDocument?: StreamDocument) => Partial<Record<LocatorEntityType, string | undefined>>;
|
|
1856
2100
|
declare const getEntityTypeLabel: (entityType: LocatorEntityType) => string;
|
|
1857
2101
|
|
|
1858
|
-
|
|
2102
|
+
type RichTextStyleOverrides = Partial<BaseTextStyles> & {
|
|
2103
|
+
color?: ThemeColor | string;
|
|
2104
|
+
};
|
|
2105
|
+
interface MaybeRTFProps extends Record<string, any> {
|
|
2106
|
+
data: RichText | string | undefined;
|
|
2107
|
+
bodyVariant?: BodyProps["variant"];
|
|
2108
|
+
/** Override the theme's styling */
|
|
2109
|
+
richTextStyleOverrides?: RichTextStyleOverrides;
|
|
2110
|
+
}
|
|
2111
|
+
/**
|
|
2112
|
+
* Renders plain strings through the shared `Body` component and rich text HTML
|
|
2113
|
+
* through the standard `rtf-wrapper` container while applying shared rich-text
|
|
2114
|
+
* typography and color overrides.
|
|
2115
|
+
*/
|
|
2116
|
+
declare const MaybeRTF: ({ data, bodyVariant, richTextStyleOverrides, style, className, ...props }: MaybeRTFProps) => React.JSX.Element;
|
|
2117
|
+
|
|
2118
|
+
/**
|
|
2119
|
+
* Creates render transforms for one page and locale.
|
|
2120
|
+
*
|
|
2121
|
+
* 1. Identify always-transformed and opted-in authored fields, including fields adapted to `custom`.
|
|
2122
|
+
* 2. Dispatch source resolution to the field handler, sharing localization and interpolation.
|
|
2123
|
+
* 3. Register handlers with Puck while preserving resolved data shapes for their renderers.
|
|
2124
|
+
* Authored values are never mutated or replaced in saved Puck data.
|
|
2125
|
+
*/
|
|
2126
|
+
declare function createYextFieldTransforms(streamDocument: StreamDocument, locale: string): Record<string, FieldTransformFn<BaseField & {
|
|
2127
|
+
type: string;
|
|
2128
|
+
}>>;
|
|
2129
|
+
|
|
2130
|
+
export { type StyledPageSectionValue as $, type AiPageGeneration as A, type BasicSelectorField as B, type CreateItemSourceOptions as C, type DateTimeSelectorField as D, type EntityFieldTypes as E, type FontRegistry as F, EntityFieldSelectorFieldOverride as G, type HeadingProps as H, type ItemSourceInstance as I, MultiSelectorFieldOverride as J, type FontSizeSelectorField as K, type LocatorEntityType as L, type MsgString as M, ImageFieldOverride as N, type OptionalNumberField as O, type ProductPrice as P, type StyledButtonField as Q, type RichText as R, type StreamFields as S, type TranslationDictionary as T, type StyledButtonValue as U, type StyledImageField as V, type StyledImageValue as W, type StyledLinkField as X, type YextFieldMap as Y, type StyledLinkValue as Z, type StyledPageSectionField as _, type StreamDocument as a, type MultiSelectorOptionValue as a$, type StyledTextField as a0, type TranslatableStringField as a1, type VideoField as a2, type AssetVideo as a3, type SectionLibraryTranslationLoaders as a4, Accordion as a5, AccordionContent as a6, AccordionItem as a7, AccordionTrigger as a8, type AssetImageType as a9, type FAQStruct as aA, FOOD_DELIVERY_SERVICES as aB, type Font as aC, FontSizeSelectorFieldOverride as aD, type FoodDeliveryServiceType as aE, type GenerationPromptBundle as aF, type GenerationSettings as aG, Heading as aH, type HeroSectionType as aI, HoursStatusAtom as aJ, type HoursStatusAtomProps as aK, HoursTableAtom as aL, type HoursTableAtomProps as aM, Image as aN, type ImageContentData as aO, type ImageField as aP, type ImageProps as aQ, type InsightSectionType as aR, type InsightStruct as aS, type LayoutGenerationMetadata as aT, type LocalizedAssetImage as aU, MaybeLink as aV, type MaybeLinkProps as aW, MaybeRTF as aX, type MaybeRTFProps as aY, type MultiSelectorField as aZ, type MultiSelectorOption as a_, Background as aa, type BackgroundProps as ab, BackgroundProvider as ac, BasicSelectorFieldOverride as ad, Body as ae, type BreadcrumbLink as af, Button as ag, type ButtonProps as ah, CTA as ai, type CTASelectorField as aj, CodeFieldOverride as ak, type ComprehensiveCTAField as al, type CreateSlottedItemSourceOptions as am, DateTimeSelectorFieldOverride as an, DropdownMenu as ao, DropdownMenuContent as ap, DropdownMenuItem as aq, DropdownMenuTrigger as ar, EmbeddedFieldStringInputFromEntity as as, EmbeddedFieldStringInputFromOptions as at, type EnhancedTranslatableCTA as au, EntityField as av, type EntityFieldSelectorField as aw, type EventSectionType as ax, type EventStruct as ay, type FAQSectionType as az, type ThemeConfig as b, generationPromptBundleSchema as b$, type MultiSelectorOptions as b0, OptionalNumberFieldOverride as b1, PageSection as b2, type PageSectionProps as b3, type PersonStruct as b4, PhoneAtom as b5, type PhoneAtomProps as b6, type PresetImageType as b7, type ProductSectionType as b8, type ProductStruct as b9, VisualEditorComponentsContentPath as bA, VisualEditorThemeClassSafelist as bB, type YextArrayField as bC, YextAutoField as bD, type YextCTAField as bE, type YextCustomFieldRenderProps as bF, YextEntityFieldSelector as bG, type YextFieldDefinition as bH, type YextFields as bI, type YextObjectField as bJ, type YextPuckField as bK, type YextSchemaField as bL, type YextSchemaFieldDefinition as bM, type YextTransformedProps as bN, backgroundColors as bO, bindSlots as bP, bodyVariants as bQ, buttonVariants as bR, constructFontSelectOptions as bS, createSearchAnalyticsConfig as bT, createSearchHeadlessConfig as bU, createSlottedItemSource as bV, createYextFieldTransforms as bW, deepMerge as bX, defaultFonts as bY, defaultThemeTailwindExtensions as bZ, fetchLocalesToPathsForEntity as b_, type PromoSectionType as ba, type RenderYextEntityFieldSelectorProps as bb, type ResolvedThemeColor as bc, type RichTextStyleOverrides as bd, type SlottedItemSourceGenerationMetadata as be, StyledButtonFieldOverride as bf, StyledImageFieldOverride as bg, StyledLinkFieldOverride as bh, StyledPageSectionFieldOverride as bi, StyledTextFieldOverride as bj, type TeamSectionType as bk, TemplatePropsContext as bl, type TestimonialSectionType as bm, type TestimonialStruct as bn, ThemeColorFieldOverride as bo, TimestampAtom as bp, type TimestampAtomProps as bq, TimestampOption as br, type TranslatableCTA as bs, TranslatableStringFieldOverride as bt, type TranslationLoader as bu, type TranslationLoaders as bv, VideoAtom as bw, type VideoAtomProps as bx, VideoFieldOverride as by, VisibilityWrapper as bz, type TailwindConfig as c, isNonNormalizableLinkType as c$, generationSettingsSchema as c0, getDefaultForegroundColor as c1, getFontWeightOptions as c2, getFontWeightOverrideOptions as c3, getPageMetadata as c4, getPreferredDistanceUnit as c5, getSurfaceColorStyle as c6, getThemeColorCssValue as c7, getThemeColorHexValue as c8, headingVariants as c9, ConstantValueModeToggler as cA, DEFAULT_ENTITY_TYPE as cB, type EmbeddedStringOption as cC, EntityTooltipsProvider as cD, type FieldResolution as cE, type FieldTypeData as cF, type ImagePayload as cG, type LocatorConfig as cH, type RootConfig as cI, buildLocatorDisplayOptions as cJ, findField as cK, formatDistance as cL, formatPhoneNumber as cM, fromMeters as cN, getBackgroundColorClasses as cO, getBackgroundColorStyle as cP, getCTAType as cQ, getDisplayValue as cR, getEntityTypeLabel as cS, getImageAltText as cT, getLocatorEntityTypeSourceMap as cU, getTextColorClass as cV, getTextColorStyle as cW, hexToRGB as cX, isColorContrastWcagCompliant as cY, isCtaVariantWithColor as cZ, isLocatorEntityType as c_, imgSizesHelper as ca, isDarkColor as cb, isLocalizedAssetImage as cc, mergeMeta as cd, msg as ce, normalizeLink as cf, normalizeSlug as cg, normalizeThemeColorToken as ch, pt as ci, resolveBreadcrumbs as cj, resolveComponentData as ck, resolveDataFromParent as cl, resolveLocalizedAssetImage as cm, resolveUrlTemplate as cn, resolveUrlTemplateOfChild as co, resolveYextEntityField as cp, themeManagerCn as cq, themeManagerTwMergeConfiguration as cr, themeResolver as cs, toKilometers as ct, toPuckFields as cu, useBackground as cv, useDocument as cw, usePlatformTranslation as cx, useTemplateProps as cy, type SlotMappedCardsData as cz, type ComponentRegistry as d, loadTranslationDictionary as d0, resolveDirectoryRootProps as d1, resolveField as d2, toMeters as d3, toMiles as d4, useEntityTooltips as d5, useTemplateMetadata as d6, type TranslatableRichText as e, ThemeOptions as f, type ThemeColor as g, type YextComponentConfig as h, type YextEntityField as i, type CTAVariant as j, type TranslatableString as k, type HeadingLevel as l, type ImageFillType as m, type TranslatableAssetImage as n, type ImgSizesByBreakpoint as o, type SlottedItemSourceInstance as p, type BodyProps as q, type MultiSelectorValue as r, type StyledTextValue as s, type ComprehensiveCTAValue as t, type ResolvedComprehensiveCTAValue as u, type CTAProps as v, type ThemeColorField as w, CTASelectorFieldOverride as x, type CodeField as y, ComprehensiveCTAFieldOverride as z };
|