@yext/visual-editor 2.0.0-beta.1 → 2.0.0-beta.10

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.
Files changed (106) hide show
  1. package/dist/{SectionLibraryVisualEditorProvider-67ng4X9e.js → SectionLibraryVisualEditorProvider-DN65KSX7.js} +35875 -24721
  2. package/dist/SectionLibraryVisualEditorProvider.css +1 -1
  3. package/dist/cli/assets/directory-locator-source/components/sections/directory/Directory.tsx +39 -1
  4. package/dist/cli/assets/directory-locator-source/components/sections/directory/DirectoryWrapper.tsx +13 -5
  5. package/dist/cli/assets/directory-locator-source/sectionLibrarySupport.ts +32 -0
  6. package/dist/cli/yextve.js +322 -218
  7. package/dist/{locatorEntityTypes-s4dmT9l5.d.ts → createYextFieldTransforms-CrIkiJ_X.d.ts} +334 -27
  8. package/dist/index.d.ts +42 -68
  9. package/dist/locales/platform/cs/visual-editor.json +124 -4
  10. package/dist/locales/platform/da/visual-editor.json +110 -4
  11. package/dist/locales/platform/de/visual-editor.json +110 -4
  12. package/dist/locales/platform/en/visual-editor.json +110 -4
  13. package/dist/locales/platform/en-GB/visual-editor.json +110 -4
  14. package/dist/locales/platform/es/visual-editor.json +117 -4
  15. package/dist/locales/platform/et/visual-editor.json +110 -4
  16. package/dist/locales/platform/fi/visual-editor.json +110 -4
  17. package/dist/locales/platform/fr/visual-editor.json +117 -4
  18. package/dist/locales/platform/hr/visual-editor.json +117 -4
  19. package/dist/locales/platform/hu/visual-editor.json +110 -4
  20. package/dist/locales/platform/it/visual-editor.json +117 -4
  21. package/dist/locales/platform/ja/visual-editor.json +110 -4
  22. package/dist/locales/platform/lt/visual-editor.json +124 -4
  23. package/dist/locales/platform/lv/visual-editor.json +114 -4
  24. package/dist/locales/platform/nb/visual-editor.json +110 -4
  25. package/dist/locales/platform/nl/visual-editor.json +110 -4
  26. package/dist/locales/platform/pl/visual-editor.json +124 -4
  27. package/dist/locales/platform/pt/visual-editor.json +117 -4
  28. package/dist/locales/platform/ro/visual-editor.json +117 -4
  29. package/dist/locales/platform/sk/visual-editor.json +124 -4
  30. package/dist/locales/platform/sv/visual-editor.json +110 -4
  31. package/dist/locales/platform/tr/visual-editor.json +109 -3
  32. package/dist/locales/platform/zh/visual-editor.json +110 -4
  33. package/dist/locales/platform/zh-TW/visual-editor.json +110 -4
  34. package/dist/plugin/internal/layoutGeneration/limits.d.ts +28 -0
  35. package/dist/plugin/plugin.js +7025 -2259
  36. package/dist/plugin/types/generationPrompts.d.ts +19 -0
  37. package/dist/plugin/types/generationSettings.d.ts +12 -0
  38. package/dist/plugin/types/sectionLibrary.d.ts +11 -4
  39. package/dist/plugin/vite-plugin/layout-generation/generationLogger.d.ts +5 -0
  40. package/dist/plugin/vite-plugin/layout-generation/generationReports.d.ts +13 -0
  41. package/dist/plugin/vite-plugin/layout-generation/middleware.d.ts +14 -0
  42. package/dist/plugin/vite-plugin/layout-generation/modelProxy.d.ts +9 -0
  43. package/dist/plugin/vite-plugin/layout-generation/prompts.d.ts +17 -0
  44. package/dist/plugin/vite-plugin/layout-generation/settings.d.ts +3 -0
  45. package/dist/plugin/vite-plugin/local-editor/artifacts.d.ts +4 -2
  46. package/dist/plugin/vite-plugin/local-editor/data.d.ts +2 -0
  47. package/dist/plugin/vite-plugin/local-editor/generatedFiles.d.ts +2 -3
  48. package/dist/plugin/vite-plugin/local-editor/server.d.ts +17 -1
  49. package/dist/plugin/vite-plugin/local-editor/types.d.ts +18 -2
  50. package/dist/plugin/vite-plugin/plugin.d.ts +1 -1
  51. package/dist/section-library-support.js +156 -136
  52. package/dist/sectionLibrarySupport.d.ts +425 -4
  53. package/dist/style.css +1 -1
  54. package/dist/visual-editor-6mKs9VUe.js +842 -0
  55. package/dist/visual-editor-BK6fTU7k.js +804 -0
  56. package/dist/visual-editor-BruRrJYN.js +804 -0
  57. package/dist/visual-editor-Bs3wAslG.js +804 -0
  58. package/dist/visual-editor-C9TLeAzP.js +804 -0
  59. package/dist/visual-editor-CHWtMtlu.js +823 -0
  60. package/dist/visual-editor-CcfUKpnd.js +804 -0
  61. package/dist/visual-editor-ClC6hoz3.js +804 -0
  62. package/dist/visual-editor-CtQwadxQ.js +842 -0
  63. package/dist/visual-editor-D7VeTRK_.js +816 -0
  64. package/dist/visual-editor-DTE5kxrA.js +804 -0
  65. package/dist/visual-editor-DjTEbi-1.js +842 -0
  66. package/dist/visual-editor-DkHhrFsX.js +804 -0
  67. package/dist/visual-editor-DtL-Zuv_.js +804 -0
  68. package/dist/visual-editor-Duishbsa.js +842 -0
  69. package/dist/visual-editor-LXMNWXry.js +823 -0
  70. package/dist/visual-editor-QpGupjY5.js +823 -0
  71. package/dist/visual-editor-_TatCCAS.js +804 -0
  72. package/dist/visual-editor-gEaWoNRu.js +804 -0
  73. package/dist/visual-editor-gjpr-NAN.js +804 -0
  74. package/dist/visual-editor-qJW0uCiQ.js +804 -0
  75. package/dist/visual-editor-sOPDMkOR.js +823 -0
  76. package/dist/visual-editor-tPb7n5l8.js +823 -0
  77. package/dist/visual-editor-vomNdlNO.js +804 -0
  78. package/dist/visual-editor-zKhC7_0C.js +823 -0
  79. package/dist/visual-editor.css +1 -1
  80. package/dist/visual-editor.js +14649 -10994
  81. package/package.json +7 -4
  82. package/dist/visual-editor-9bLkRo2X.js +0 -702
  83. package/dist/visual-editor-B5f3AZF6.js +0 -706
  84. package/dist/visual-editor-BGZbJkMp.js +0 -694
  85. package/dist/visual-editor-BPVqHHz5.js +0 -706
  86. package/dist/visual-editor-BPvDMSb8.js +0 -706
  87. package/dist/visual-editor-BTT9n9b6.js +0 -718
  88. package/dist/visual-editor-BXSlgf31.js +0 -694
  89. package/dist/visual-editor-Bez9GftS.js +0 -694
  90. package/dist/visual-editor-Bk5QJccl.js +0 -718
  91. package/dist/visual-editor-BqtG2m0y.js +0 -694
  92. package/dist/visual-editor-C00efXqJ.js +0 -706
  93. package/dist/visual-editor-CZdmgAn0.js +0 -706
  94. package/dist/visual-editor-CcOCcCUQ.js +0 -694
  95. package/dist/visual-editor-D2_8u6ZI.js +0 -694
  96. package/dist/visual-editor-D4vaqoBN.js +0 -694
  97. package/dist/visual-editor-D6n8EP_O.js +0 -694
  98. package/dist/visual-editor-DKG_E7X4.js +0 -694
  99. package/dist/visual-editor-DQq0_rUn.js +0 -706
  100. package/dist/visual-editor-DRXezaoB.js +0 -694
  101. package/dist/visual-editor-DbgFzBNV.js +0 -718
  102. package/dist/visual-editor-DiLdoISr.js +0 -718
  103. package/dist/visual-editor-DnTPMRV4.js +0 -694
  104. package/dist/visual-editor-E0hASBXn.js +0 -694
  105. package/dist/visual-editor-W1OHU94y.js +0 -694
  106. package/dist/visual-editor-bauJ9beX.js +0 -694
@@ -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';
10
8
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
9
+ import * as class_variance_authority_types from 'class-variance-authority/types';
10
+ import { VariantProps } from 'class-variance-authority';
11
+ import { z } from 'zod';
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;
@@ -900,6 +906,40 @@ type MappedSourceFieldFilter<T extends Record<string, any>> = RenderEntityFieldF
900
906
  mappedSourceTypes?: EntityFieldTypes[][];
901
907
  };
902
908
 
909
+ /** Generation controls shared by native Puck and Yext field definitions. */
910
+ type FieldGenerationMetadata = {
911
+ /** Exclude this field from AI generation. The default value will be used. */
912
+ exclude?: boolean;
913
+ /** Overrides the requiredness of this field */
914
+ required?: boolean;
915
+ /** Require integer values for inferred number fields. Does not change editor step. */
916
+ integer?: boolean;
917
+ /** Allow null (for example, an inherited selector value) during inference only. */
918
+ nullable?: boolean;
919
+ /** Plain text instructions to pass to the model. */
920
+ instructions?: string;
921
+ /** Require exactly one slot child. False or omitted keeps variable-length arrays. */
922
+ singleChild?: boolean;
923
+ /** Explicit schemas own optionality; callbacks receive the inferred schema. */
924
+ schema?: z.ZodType | ((inferred: z.ZodType) => z.ZodType);
925
+ };
926
+ type LayoutGenerationMetadata = {
927
+ /** Exclude this from layout generation. Components are included by default. */
928
+ exclude?: boolean;
929
+ /** Plain text instructions to pass to the model. */
930
+ instructions?: string;
931
+ /** Complete override of the layout generation props inferred from fields. */
932
+ props?: z.ZodObject;
933
+ /** JSON Pointer paths whose resolved values survive chat edit preservation. */
934
+ resolvedProps?: string[];
935
+ slottedItemSource?: SlottedItemSourceGenerationMetadata;
936
+ };
937
+ declare module "@puckeditor/core" {
938
+ interface BaseField {
939
+ generation?: FieldGenerationMetadata;
940
+ }
941
+ }
942
+
903
943
  type ThemeOptionKey = keyof typeof ThemeOptions;
904
944
  type BasicSelectorOptions = ComboboxOption[] | (() => ComboboxOption[]) | ThemeOptionKey;
905
945
  /**
@@ -954,11 +994,27 @@ type BasicSelectorFieldWithGroups = BasicSelectorFieldBase & {
954
994
  optionGroups: ComboboxOptionGroup[];
955
995
  };
956
996
  type BasicSelectorField = BasicSelectorFieldWithOptions | BasicSelectorFieldWithGroups;
957
- type BasicSelectorFieldProps = FieldProps<BasicSelectorField>;
958
- declare const BasicSelectorFieldOverride: ({ field, value, onChange, }: BasicSelectorFieldProps) => React__default.JSX.Element;
997
+ /** Keeps shipped color selectors editable while new configs use themeColor. */
998
+ declare const BasicSelectorFieldOverride: (props: FieldProps<BasicSelectorField>) => React__default.JSX.Element;
999
+
1000
+ /** Theme colors always retain authored tokens and resolve both CSS colors. */
1001
+ type ThemeColorField = BaseField & {
1002
+ type: "themeColor";
1003
+ /** Selects site or background palette choices. */
1004
+ options: "SITE_COLOR" | "BACKGROUND_COLOR";
1005
+ label?: string | MsgString;
1006
+ visible?: boolean;
1007
+ translateOptions?: boolean;
1008
+ noOptionsPlaceholder?: string | MsgString;
1009
+ noOptionsMessage?: string | MsgString;
1010
+ disableSearch?: boolean;
1011
+ };
1012
+ /** Edits palette and custom ThemeColor values without changing their authored shape. */
1013
+ declare const ThemeColorFieldOverride: ({ field, value, onChange, }: FieldProps<ThemeColorField, ThemeColor | undefined>) => React__default.JSX.Element;
959
1014
 
960
1015
  type CodeLanguageOptions = "html" | "css" | "json" | "shell" | "java" | "javascript" | "jsx" | "markdown" | "typescript";
961
1016
  type CodeField = BaseField & {
1017
+ /** Processes HTML templates and JavaScript embedded fields; other code stays authored. */
962
1018
  type: "code";
963
1019
  label?: string | MsgString;
964
1020
  visible?: boolean;
@@ -1021,12 +1077,18 @@ type YextCTAField = YextEntityField<EnhancedTranslatableCTA> & {
1021
1077
  };
1022
1078
  type CTASelectorField = BaseField & {
1023
1079
  type: "ctaSelector";
1080
+ /** Resolves the CTA source, localized text, and directions URL before rendering. */
1081
+ transform?: boolean;
1024
1082
  label?: string | MsgString;
1025
1083
  visible?: boolean;
1026
1084
  disableConstantValueToggle?: boolean;
1027
1085
  };
1028
1086
  type CTASelectorFieldProps = FieldProps<CTASelectorField>;
1029
- declare const CTASelectorFieldOverride: ({ field, value, onChange, }: CTASelectorFieldProps) => React__default.JSX.Element;
1087
+ /**
1088
+ * Renders CTA source controls. Its declaration is available when the field
1089
+ * registry initializes.
1090
+ */
1091
+ declare function CTASelectorFieldOverride({ field, value, onChange, }: CTASelectorFieldProps): React__default.JSX.Element;
1030
1092
 
1031
1093
  type MultiSelectorOptionValue = string | number | boolean;
1032
1094
  type MultiSelectorOptionSelection<T extends MultiSelectorOptionValue> = {
@@ -1069,18 +1131,25 @@ type MultiSelectorOptions<T extends MultiSelectorOptionValue> = MultiSelectorOpt
1069
1131
  */
1070
1132
  type MultiSelectorField<T extends MultiSelectorOptionValue = any> = BaseField & {
1071
1133
  type: "multiSelector";
1134
+ /** Returns the selected values as an array before rendering. */
1135
+ transform?: boolean;
1072
1136
  label: string | MsgString;
1073
1137
  dropdownLabel: string | MsgString;
1074
1138
  options: MultiSelectorOptions<T>;
1075
1139
  placeholderOptionLabel?: string | MsgString;
1076
1140
  };
1077
1141
  type MultiSelectorFieldProps<T extends MultiSelectorOptionValue> = FieldProps<MultiSelectorField<T>, MultiSelectorValue<T> | undefined>;
1078
- /** A multi-select field whose options may be static or loaded from a function. */
1079
- declare const MultiSelectorFieldOverride: <T extends MultiSelectorOptionValue>({ field, value, onChange, id, readOnly, }: MultiSelectorFieldProps<T>) => React.JSX.Element;
1142
+ /**
1143
+ * A multi-select field whose options may be static or loaded from a function.
1144
+ * Its declaration is available when the field registry initializes.
1145
+ */
1146
+ declare function MultiSelectorFieldOverride<T extends MultiSelectorOptionValue>({ field, value, onChange, id, readOnly, }: MultiSelectorFieldProps<T>): React.JSX.Element;
1080
1147
 
1081
1148
  type OptionalNumberValue = number | string | null | undefined;
1082
1149
  type OptionalNumberField = BaseField & {
1083
1150
  type: "optionalNumber";
1151
+ /** Returns a number or undefined before rendering. */
1152
+ transform?: boolean;
1084
1153
  label?: string | MsgString;
1085
1154
  hideNumberFieldRadioLabel: string | MsgString;
1086
1155
  showNumberFieldRadioLabel: string | MsgString;
@@ -1089,11 +1158,55 @@ type OptionalNumberField = BaseField & {
1089
1158
  type OptionalNumberFieldProps = FieldProps<OptionalNumberField, OptionalNumberValue>;
1090
1159
  declare const OptionalNumberFieldOverride: ({ field, value, onChange, }: OptionalNumberFieldProps) => React__default.JSX.Element;
1091
1160
 
1161
+ /** Generation limits supplied by ALPHA, independently of prompt wording. */
1162
+ declare const generationSettingsSchema: z.ZodObject<{
1163
+ attemptTimeoutMs: z.ZodNumber;
1164
+ maxOutputTokens: z.ZodObject<{
1165
+ page: z.ZodNumber;
1166
+ prepare: z.ZodNumber;
1167
+ plan: z.ZodNumber;
1168
+ section: z.ZodNumber;
1169
+ }, z.core.$strict>;
1170
+ }, z.core.$strict>;
1171
+ type GenerationSettings = z.infer<typeof generationSettingsSchema>;
1172
+
1173
+ /** Contract version changes when keys or substitutions change. */
1174
+ declare const generationPromptBundleSchema: z.ZodObject<{
1175
+ contractVersion: z.ZodLiteral<1>;
1176
+ prompts: z.ZodObject<{
1177
+ prepare: z.ZodString;
1178
+ create: z.ZodString;
1179
+ fullPageUpdate: z.ZodString;
1180
+ plan: z.ZodString;
1181
+ section: z.ZodString;
1182
+ }, z.core.$strict>;
1183
+ context: z.ZodObject<{
1184
+ createLists: z.ZodString;
1185
+ fullPageUpdateLists: z.ZodString;
1186
+ createRecommendations: z.ZodString;
1187
+ fullPageUpdateRecommendations: z.ZodString;
1188
+ }, z.core.$strict>;
1189
+ }, z.core.$strict>;
1190
+ type GenerationPromptBundle = z.infer<typeof generationPromptBundleSchema>;
1191
+
1092
1192
  type HeadDeployStatus = "RUNNING" | "INACTIVE" | "FAILED" | "ACTIVE";
1193
+ type IntentPageGeneration = {
1194
+ prompt?: string;
1195
+ status?: "PENDING" | "RUNNING" | "FAILED" | "COMPLETED";
1196
+ attemptId?: string;
1197
+ };
1198
+ type AiPageGeneration = {
1199
+ prompts?: GenerationPromptBundle;
1200
+ generationSettings?: GenerationSettings;
1201
+ intentPageGeneration?: IntentPageGeneration;
1202
+ layoutGenerationEnabled: boolean;
1203
+ model: string;
1204
+ };
1093
1205
  type TemplateMetadata = {
1206
+ aiPageGeneration?: AiPageGeneration;
1094
1207
  siteId: number;
1095
1208
  templateId: string;
1096
- layoutId?: number;
1209
+ layoutId?: string;
1097
1210
  entityId?: number;
1098
1211
  themeEntityId?: number;
1099
1212
  assignment: "ALL" | "ENTITY";
@@ -1161,6 +1274,8 @@ type ImagePayload = {
1161
1274
  };
1162
1275
  type ImageField = BaseField & {
1163
1276
  type: "image";
1277
+ /** Localizes the asset image and resolves its alt text before rendering. */
1278
+ transform?: boolean;
1164
1279
  label?: string | MsgString;
1165
1280
  visible?: boolean;
1166
1281
  hideAltTextField?: boolean;
@@ -1169,7 +1284,11 @@ type ImageField = BaseField & {
1169
1284
  };
1170
1285
  type ImageFieldOverrideProps = FieldProps<ImageField>;
1171
1286
  declare const buildLocatorDisplayOptions: (locatorDisplayFields?: Record<string, FieldTypeData>) => EmbeddedStringOption[];
1172
- declare const ImageFieldOverride: ({ field, onChange, value, }: ImageFieldOverrideProps) => React__default.JSX.Element;
1287
+ /**
1288
+ * Renders image field controls. Its declaration is available when the field
1289
+ * registry initializes.
1290
+ */
1291
+ declare function ImageFieldOverride({ field, onChange, value, }: ImageFieldOverrideProps): React__default.JSX.Element;
1173
1292
 
1174
1293
  /**
1175
1294
  * Defines the core typography styling properties shared across text-based components.
@@ -1188,6 +1307,8 @@ type StyledButtonValue = BaseTextStyles & {
1188
1307
  };
1189
1308
  type StyledButtonField = BaseField & {
1190
1309
  type: "styledButton";
1310
+ /** Converts authored button typography into CSS styles. */
1311
+ transform?: boolean;
1191
1312
  label?: string | MsgString;
1192
1313
  visible?: boolean;
1193
1314
  };
@@ -1199,6 +1320,8 @@ type StyledImageValue = {
1199
1320
  };
1200
1321
  type StyledImageField = BaseField & {
1201
1322
  type: "styledImage";
1323
+ /** Converts the authored border radius into CSS styles. */
1324
+ transform?: boolean;
1202
1325
  label?: string | MsgString;
1203
1326
  visible?: boolean;
1204
1327
  };
@@ -1211,6 +1334,8 @@ type StyledLinkValue = BaseTextStyles & {
1211
1334
  };
1212
1335
  type StyledLinkField = BaseField & {
1213
1336
  type: "styledLink";
1337
+ /** Converts authored link typography and caret choice into CSS styles. */
1338
+ transform?: boolean;
1214
1339
  label?: string | MsgString;
1215
1340
  visible?: boolean;
1216
1341
  showIncludeCaretField?: boolean;
@@ -1230,6 +1355,8 @@ type ContentWidthValue = "default" | "768px" | "960px" | "1024px" | "1280px" | "
1230
1355
  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
1356
  type StyledPageSectionField = BaseField & {
1232
1357
  type: "styledPageSection";
1358
+ /** Converts authored width and padding choices into CSS styles. */
1359
+ transform?: boolean;
1233
1360
  label?: string | MsgString;
1234
1361
  visible?: boolean;
1235
1362
  };
@@ -1241,6 +1368,8 @@ type StyledTextValue = BaseTextStyles & {
1241
1368
  };
1242
1369
  type StyledTextField = BaseField & {
1243
1370
  type: "styledText";
1371
+ /** Converts authored typography and color choices into CSS styles. */
1372
+ transform?: boolean;
1244
1373
  label?: string | MsgString;
1245
1374
  visible?: boolean;
1246
1375
  includeColor?: boolean;
@@ -1251,6 +1380,8 @@ declare const StyledTextFieldOverride: ({ field, value, onChange, }: StyledTextF
1251
1380
 
1252
1381
  type TranslatableStringField = BaseField & {
1253
1382
  type: "translatableString";
1383
+ /** Localizes and interpolates this field before rendering. */
1384
+ transform?: boolean;
1254
1385
  label?: string | MsgString;
1255
1386
  visible?: boolean;
1256
1387
  filter?: RenderEntityFieldFilter<any>;
@@ -1265,6 +1396,8 @@ declare const TranslatableStringFieldOverride: ({ field, onChange, value, }: Tra
1265
1396
 
1266
1397
  type VideoField = BaseField & {
1267
1398
  type: "video";
1399
+ /** Resolves embedded fields in the video asset before rendering. */
1400
+ transform?: boolean;
1268
1401
  label?: string | MsgString;
1269
1402
  visible?: boolean;
1270
1403
  };
@@ -1369,15 +1502,131 @@ type ComprehensiveCTAValue = {
1369
1502
  };
1370
1503
  type ComprehensiveCTAField = BaseField & {
1371
1504
  type: "comprehensiveCTA";
1505
+ /** Resolves CTA bindings and translated text before rendering. */
1506
+ transform?: boolean;
1372
1507
  label?: string | MsgString;
1373
1508
  visible?: boolean;
1374
1509
  disableConstantValueToggle?: boolean;
1375
1510
  };
1376
1511
  type ComprehensiveCTAFieldProps = FieldProps<ComprehensiveCTAField, ComprehensiveCTAValue>;
1377
- declare const ComprehensiveCTAFieldOverride: ({ field, value, onChange, }: ComprehensiveCTAFieldProps) => React__default.JSX.Element;
1512
+ /**
1513
+ * ComprehensiveCTAField imports YextAutoField, which uses the field override registry.
1514
+ * A function declaration lets the registry reference this override during module initialization.
1515
+ */
1516
+ declare function ComprehensiveCTAFieldOverride({ field, value, onChange, }: ComprehensiveCTAFieldProps): React__default.JSX.Element;
1517
+
1518
+ type FieldTransformContext = {
1519
+ streamDocument: StreamDocument;
1520
+ locale: string;
1521
+ /** The complete linked item, including primitive list items. */
1522
+ itemDocument?: unknown;
1523
+ };
1524
+
1525
+ declare const alwaysTransformedFieldTypes: readonly ["code", "themeColor"];
1378
1526
 
1527
+ /** Maps explicit entity-field formats to their render-value conversion. */
1528
+ declare const entityFieldFormatters: {
1529
+ price: (value: ProductPrice | undefined, context: FieldTransformContext) => string | undefined;
1530
+ };
1531
+
1532
+ type LocalizedRenderValue<Value> = Value extends readonly (infer Item)[] ? LocalizedRenderValue<Item>[] : Value extends object ? "defaultValue" extends keyof Value ? LocalizedRenderValue<Value["defaultValue"]> : {
1533
+ [Key in keyof Value]: LocalizedRenderValue<Value[Key]>;
1534
+ } : Value;
1535
+ /** CTA data after localized text and links are resolved for rendering. */
1536
+ type ResolvedCTAValue = {
1537
+ link: string;
1538
+ label?: string;
1539
+ linkType?: LinkType;
1540
+ normalizeLink?: boolean;
1541
+ openInNewTab?: boolean;
1542
+ ctaType?: "textAndLink" | "getDirections" | "presetImage";
1543
+ };
1544
+ /** The presentation component consumes this data contract without resolving authored bindings. */
1545
+ type ResolvedComprehensiveCTAValue = Omit<ComprehensiveCTAValue, "data"> & {
1546
+ data: Omit<ComprehensiveCTAValue["data"], "cta" | "buttonText" | "ariaLabel"> & {
1547
+ cta: ResolvedCTAValue | undefined;
1548
+ buttonText?: string;
1549
+ ariaLabel?: string;
1550
+ };
1551
+ };
1552
+ /** Retains value-based inference for item sources with widened field definitions. */
1553
+ type ResolvedRepeatedValue<Value> = Value extends {
1554
+ constantValue: infer Constant;
1555
+ } ? LocalizedRenderValue<Constant> | undefined : Value extends ComprehensiveCTAValue ? ResolvedComprehensiveCTAValue : Value extends {
1556
+ selections: {
1557
+ value: infer Selection;
1558
+ }[];
1559
+ } ? Exclude<Selection, undefined>[] : Value extends readonly (infer Item)[] ? ResolvedRepeatedValue<Item>[] : Value extends object ? {
1560
+ [Key in keyof Value]: ResolvedRepeatedValue<Value[Key]>;
1561
+ } : Value;
1562
+ /** Repeated sources transform all mapped fields, even without a child opt-in. */
1563
+ type ResolvedRepeatedItem<Value, Definitions> = Value extends readonly (infer Item)[] ? ResolvedRepeatedItem<Item, Definitions>[] : {
1564
+ [Key in keyof Value]: Key extends keyof Definitions ? ResolvedRepeatedFieldValue<Value[Key], Definitions[Key]> : LocalizedRenderValue<Value[Key]>;
1565
+ };
1566
+ type ResolvedRepeatedFieldValue<Value, Definition> = YextFieldDefinition["type"] extends (Definition extends {
1567
+ type: infer FieldType;
1568
+ } ? FieldType : never) ? ResolvedRepeatedValue<Value> : Definition extends {
1569
+ type: "object";
1570
+ objectFields: infer Fields;
1571
+ } ? ResolvedRepeatedItem<Value, Fields> : Definition extends {
1572
+ type: "array";
1573
+ arrayFields: infer Fields;
1574
+ } ? ResolvedRepeatedItem<Value, Fields> : Definition extends {
1575
+ type: infer FieldType;
1576
+ } ? FieldType extends keyof TransformedFieldValues<Value, Definition> ? TransformedFieldValues<Value, Definition>[FieldType] : LocalizedRenderValue<Value> : LocalizedRenderValue<Value>;
1577
+ type TransformedFieldValues<Value, Definition> = {
1578
+ themeColor: ResolvedThemeColor | undefined;
1579
+ code: string;
1580
+ styledText: CSSProperties;
1581
+ styledButton: CSSProperties;
1582
+ styledLink: CSSProperties;
1583
+ styledImage: CSSProperties;
1584
+ styledPageSection: CSSProperties;
1585
+ translatableString: string;
1586
+ image: LocalizedRenderValue<Value>;
1587
+ video: LocalizedRenderValue<Value>;
1588
+ comprehensiveCTA: ResolvedComprehensiveCTAValue;
1589
+ multiSelector: Value extends {
1590
+ selections: {
1591
+ value: infer Selection;
1592
+ }[];
1593
+ } ? Exclude<Selection, undefined>[] : never;
1594
+ optionalNumber: number | undefined;
1595
+ ctaSelector: LocalizedRenderValue<EnhancedTranslatableCTA> | undefined;
1596
+ entityField: Definition extends {
1597
+ format: infer Format;
1598
+ } ? Format extends keyof typeof entityFieldFormatters ? ReturnType<(typeof entityFieldFormatters)[Format]> : never : Definition extends {
1599
+ repeated: {
1600
+ mappingFields: infer Fields;
1601
+ };
1602
+ } ? Value extends {
1603
+ constantValue: infer Constant;
1604
+ } ? ResolvedRepeatedItem<Constant, Fields> : never : Value extends {
1605
+ constantValue: infer Constant;
1606
+ } ? LocalizedRenderValue<Constant> | undefined : never;
1607
+ };
1608
+ /** Derives render prop types for nested object fields and array items; leaves other values unchanged. */
1609
+ type NestedFieldValue<Value, Definition> = Definition extends {
1610
+ type: "object";
1611
+ objectFields: object;
1612
+ } ? YextTransformedProps<Value, Definition["objectFields"]> : Definition extends {
1613
+ type: "array";
1614
+ arrayFields: object;
1615
+ } ? Value extends unknown[] ? YextTransformedProps<Value[number], Definition["arrayFields"]>[] : Value : Value;
1616
+ type TransformedFieldValue<Value, Definition> = Definition extends {
1617
+ transform: true;
1618
+ } | {
1619
+ type: (typeof alwaysTransformedFieldTypes)[number];
1620
+ } ? Definition extends {
1621
+ type: infer FieldType;
1622
+ } ? FieldType extends keyof TransformedFieldValues<Value, Definition> ? TransformedFieldValues<Value, Definition>[FieldType] : Value : Value : NestedFieldValue<Value, Definition>;
1623
+ /** Derives render values from authored props and supported field definitions. */
1624
+ type YextTransformedProps<Props, Definitions> = {
1625
+ [Key in keyof Props]: Key extends keyof Definitions ? TransformedFieldValue<Props[Key], Definitions[Key]> : Props[Key];
1626
+ };
1379
1627
  type YextPuckFields = {
1380
1628
  basicSelector: BasicSelectorField;
1629
+ themeColor: ThemeColorField;
1381
1630
  ctaSelector: CTASelectorField;
1382
1631
  code: CodeField;
1383
1632
  comprehensiveCTA: ComprehensiveCTAField;
@@ -1412,11 +1661,16 @@ type YextObjectField<Props extends {
1412
1661
  };
1413
1662
  type YextCustomFieldRenderProps<ValueType> = Parameters<CustomField<ValueType>["render"]>[0];
1414
1663
  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 YextComponentConfig<Props extends DefaultComponentProps = DefaultComponentProps> = Omit<ComponentConfig<{
1664
+ type YextComponentConfig<Props extends DefaultComponentProps = DefaultComponentProps, TransformFields = {}> = Omit<ComponentConfig<{
1416
1665
  props: Props;
1417
1666
  fields: YextPuckFields;
1418
- }>, "fields" | "resolveFields"> & {
1667
+ }>, "fields" | "resolveFields" | "render"> & {
1668
+ render: ComponentConfig<{
1669
+ props: YextTransformedProps<Props, TransformFields>;
1670
+ fields: YextPuckFields;
1671
+ }>["render"];
1419
1672
  fields?: YextFields<Props>;
1673
+ layoutGenerationMetadata?: LayoutGenerationMetadata;
1420
1674
  resolveFields?: ComponentConfig<{
1421
1675
  props: Props;
1422
1676
  fields: YextPuckFields;
@@ -1447,19 +1701,30 @@ declare const toPuckFields: <Props extends DefaultComponentProps = DefaultCompon
1447
1701
  * 2. Define the repeated entity-field value shape returned to consumers.
1448
1702
  * 3. Define the resolved item shape returned by `resolveItems(...)`.
1449
1703
  */
1450
- type CreateItemSourceOptions<TItemProps extends Record<string, unknown>> = {
1704
+ type CreateItemSourceOptions<TItemProps extends Record<string, unknown>, MappingFields extends YextFieldMap<TItemProps> = YextFieldMap<TItemProps>> = {
1705
+ /** Label shown above the item source controls. */
1451
1706
  label: string;
1452
- mappingFields: YextFieldMap<TItemProps>;
1707
+ /**
1708
+ * Fields for each item. These define both the manual item inputs and the
1709
+ * mappings to fields within each object in a selected entity list.
1710
+ * A list can be selected when its item type or a child field matches any
1711
+ * mapping field filter.
1712
+ */
1713
+ mappingFields: MappingFields;
1714
+ /** Initial manual items. The first item is also the template for new items. */
1453
1715
  defaultValues?: TItemProps[];
1454
1716
  };
1455
1717
  type RepeatedEntityFieldValue<TItemProps extends Record<string, unknown>> = YextEntityField<TItemProps[], TItemProps>;
1456
- type RepeatedEntityFieldMetadata<TItemProps extends Record<string, unknown>> = {
1457
- mappingFields: YextFieldMap<TItemProps>;
1718
+ type RepeatedEntityFieldMetadata<TItemProps extends Record<string, unknown>, MappingFields extends YextFieldMap<TItemProps> = YextFieldMap<TItemProps>> = {
1719
+ mappingFields: MappingFields;
1458
1720
  manualItemFields: YextFieldMap<TItemProps>;
1459
1721
  defaultItemValue: TItemProps;
1460
1722
  defaultMappings: TItemProps;
1461
1723
  manualItemSummary?: (item: unknown, index?: number) => string;
1462
1724
  };
1725
+ type RepeatedEntityFieldDefinition<TItemProps extends Record<string, unknown>, MappingFields extends YextFieldMap<TItemProps> = YextFieldMap<TItemProps>> = EntityFieldSelectorField<RepeatedEntityFieldValue<TItemProps>> & {
1726
+ repeated: RepeatedEntityFieldMetadata<TItemProps, MappingFields>;
1727
+ };
1463
1728
  /**
1464
1729
  * Resolves authored item fields into the render-ready value shape returned
1465
1730
  * from `ItemSourceInstance.resolveItems(...)`.
@@ -1470,8 +1735,8 @@ type ResolvedItemField<TValue> = TValue extends YextEntityField<infer TResolved,
1470
1735
  /**
1471
1736
  * Public contract returned by `createItemSource(...)`.
1472
1737
  */
1473
- type ItemSourceInstance<TItemProps extends Record<string, unknown>> = {
1474
- field: YextFieldDefinition<RepeatedEntityFieldValue<TItemProps>>;
1738
+ type ItemSourceInstance<TItemProps extends Record<string, unknown>, MappingFields extends YextFieldMap<TItemProps> = YextFieldMap<TItemProps>> = {
1739
+ field: RepeatedEntityFieldDefinition<TItemProps, MappingFields>;
1475
1740
  defaultValue: RepeatedEntityFieldValue<TItemProps>;
1476
1741
  value: RepeatedEntityFieldValue<TItemProps>;
1477
1742
  resolveItems: (value: RepeatedEntityFieldValue<TItemProps> | undefined, streamDocument: StreamDocument) => ResolvedItemField<TItemProps>[];
@@ -1487,8 +1752,14 @@ type CreateSlottedItemSourceOptions<TMappings extends Record<string, unknown>, T
1487
1752
  defaultItemProps?: TCardProps | (() => TCardProps);
1488
1753
  defaultItems?: number;
1489
1754
  };
1755
+ /** Opt-in generation ownership for the helper's fixed data and CardSlot locations. */
1756
+ type SlottedItemSourceGenerationMetadata = {
1757
+ cardType: string;
1758
+ defaultItemProps?: Record<string, unknown> | (() => Record<string, unknown>);
1759
+ };
1490
1760
  type SlottedItemSourceInstance<TMappings extends Record<string, unknown>> = {
1491
1761
  field: YextFieldDefinition<SlotMappedCardsData<TMappings>>;
1762
+ generationMetadata: SlottedItemSourceGenerationMetadata;
1492
1763
  defaultValue: SlotMappedCardsData<TMappings>;
1493
1764
  defaultWrapperProps: {
1494
1765
  data: SlotMappedCardsData<TMappings>;
@@ -1516,6 +1787,10 @@ type SlottedItemSourceInstance<TMappings extends Record<string, unknown>> = {
1516
1787
 
1517
1788
  type EntityFieldSelectorField<T extends Record<string, any> = Record<string, any>> = BaseField & {
1518
1789
  type: "entityField";
1790
+ /** Resolves this field before rendering. Repeated sources are not supported. */
1791
+ transform?: boolean;
1792
+ /** Formats a resolved structured price as localized currency when transformed. */
1793
+ format?: "price";
1519
1794
  label?: string | MsgString;
1520
1795
  visible?: boolean;
1521
1796
  filter: MappedSourceFieldFilter<T>;
@@ -1536,7 +1811,11 @@ type EntityFieldSelectorField<T extends Record<string, any> = Record<string, any
1536
1811
  repeated?: RepeatedEntityFieldMetadata<any>;
1537
1812
  };
1538
1813
  type EntityFieldSelectorFieldProps = FieldProps<EntityFieldSelectorField>;
1539
- declare const EntityFieldSelectorFieldOverride: ({ field, value, onChange, }: EntityFieldSelectorFieldProps) => React__default.JSX.Element;
1814
+ /**
1815
+ * Renders entity field controls. Its declaration is available when the field
1816
+ * registry initializes.
1817
+ */
1818
+ declare function EntityFieldSelectorFieldOverride({ field, value, onChange, }: EntityFieldSelectorFieldProps): React__default.JSX.Element;
1540
1819
  declare const ConstantValueModeToggler: ({ fieldTypeFilter, constantValueEnabled, toggleConstantValueEnabled, disableConstantValue, label, showLocale, infoTooltipRequirements, }: {
1541
1820
  fieldTypeFilter: EntityFieldTypes[];
1542
1821
  constantValueEnabled: boolean;
@@ -1683,7 +1962,7 @@ declare const AccordionTrigger: React__default.ForwardRefExoticComponent<React__
1683
1962
  declare const AccordionContent: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
1684
1963
 
1685
1964
  interface BackgroundProps extends React.HTMLAttributes<HTMLDivElement> {
1686
- background?: ThemeColor;
1965
+ background?: ThemeColor | ResolvedThemeColor;
1687
1966
  as?: "div" | "section" | "nav" | "header" | "footer" | "main" | "aside";
1688
1967
  }
1689
1968
  declare const Background: React.ForwardRefExoticComponent<BackgroundProps & React.RefAttributes<HTMLDivElement>>;
@@ -1782,7 +2061,7 @@ declare const maxWidthVariants: (props?: ({
1782
2061
  maxWidth?: "768px" | "960px" | "1024px" | "1280px" | "1440px" | "theme" | "fullWidth" | null | undefined;
1783
2062
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1784
2063
  interface PageSectionProps extends VariantProps<typeof maxWidthVariants>, React.HTMLAttributes<HTMLDivElement> {
1785
- background?: ThemeColor;
2064
+ background?: ThemeColor | ResolvedThemeColor;
1786
2065
  verticalPadding?: VariantProps<typeof pageSectionVariants>["verticalPadding"];
1787
2066
  as?: "div" | "section" | "nav" | "header" | "footer" | "main" | "aside";
1788
2067
  outerClassName?: string;
@@ -1847,4 +2126,32 @@ declare function isLocatorEntityType(value: string): value is LocatorEntityType;
1847
2126
  declare const getLocatorEntityTypeSourceMap: (streamDocument?: StreamDocument) => Partial<Record<LocatorEntityType, string | undefined>>;
1848
2127
  declare const getEntityTypeLabel: (entityType: LocatorEntityType) => string;
1849
2128
 
1850
- export { type TranslatableStringField as $, type MultiSelectorField as A, type BasicSelectorField as B, type CreateItemSourceOptions as C, type DateTimeSelectorField as D, type EntityFieldTypes as E, type FontRegistry as F, type FontSizeSelectorField as G, type HeadingProps as H, type ItemSourceInstance as I, type ImageField as J, type StyledButtonField as K, type LocatorEntityType as L, type MsgString as M, type StyledButtonValue as N, type OptionalNumberField as O, type ProductPrice as P, type StyledImageField as Q, type RichText as R, type StreamFields as S, type TranslationDictionary as T, type StyledImageValue as U, type StyledLinkField as V, type StyledLinkValue as W, type StyledPageSectionField as X, type YextComponentConfig as Y, type StyledPageSectionValue as Z, type StyledTextField as _, type StreamDocument as a, type PresetImageType as a$, type VideoField as a0, type AssetVideo as a1, type SectionLibraryTranslationLoaders as a2, Accordion as a3, AccordionContent as a4, AccordionItem as a5, AccordionTrigger as a6, type AssetImageType as a7, Background as a8, type BackgroundProps as a9, type Font as aA, FontSizeSelectorFieldOverride as aB, type FoodDeliveryServiceType as aC, Heading as aD, type HeroSectionType as aE, HoursStatusAtom as aF, type HoursStatusAtomProps as aG, HoursTableAtom as aH, type HoursTableAtomProps as aI, Image as aJ, type ImageContentData as aK, ImageFieldOverride as aL, type ImageProps as aM, type InsightSectionType as aN, type InsightStruct as aO, type LocalizedAssetImage as aP, MaybeLink as aQ, type MaybeLinkProps as aR, MultiSelectorFieldOverride as aS, type MultiSelectorOption as aT, type MultiSelectorOptions as aU, OptionalNumberFieldOverride as aV, PageSection as aW, type PageSectionProps as aX, type PersonStruct as aY, PhoneAtom as aZ, type PhoneAtomProps as a_, BackgroundProvider as aa, BasicSelectorFieldOverride as ab, Body as ac, type BreadcrumbLink as ad, Button as ae, type ButtonProps as af, CTA as ag, CTASelectorFieldOverride as ah, CodeFieldOverride as ai, ComprehensiveCTAFieldOverride as aj, type CreateSlottedItemSourceOptions as ak, DateTimeSelectorFieldOverride as al, DropdownMenu as am, DropdownMenuContent as an, DropdownMenuItem as ao, DropdownMenuTrigger as ap, EmbeddedFieldStringInputFromEntity as aq, EmbeddedFieldStringInputFromOptions as ar, type EnhancedTranslatableCTA as as, EntityField as at, EntityFieldSelectorFieldOverride as au, type EventSectionType as av, type EventStruct as aw, type FAQSectionType as ax, type FAQStruct as ay, FOOD_DELIVERY_SERVICES as az, type ThemeConfig as b, msg as b$, type ProductSectionType as b0, type ProductStruct as b1, type PromoSectionType as b2, type RenderYextEntityFieldSelectorProps as b3, StyledButtonFieldOverride as b4, StyledImageFieldOverride as b5, StyledLinkFieldOverride as b6, StyledPageSectionFieldOverride as b7, StyledTextFieldOverride as b8, type TeamSectionType as b9, type YextSchemaField as bA, type YextSchemaFieldDefinition as bB, backgroundColors as bC, bindSlots as bD, bodyVariants as bE, buttonVariants as bF, constructFontSelectOptions as bG, createSearchAnalyticsConfig as bH, createSearchHeadlessConfig as bI, createSlottedItemSource as bJ, deepMerge as bK, defaultFonts as bL, defaultThemeTailwindExtensions as bM, fetchLocalesToPathsForEntity as bN, getDefaultForegroundColor as bO, getFontWeightOptions as bP, getFontWeightOverrideOptions as bQ, getPageMetadata as bR, getPreferredDistanceUnit as bS, getSurfaceColorStyle as bT, getThemeColorCssValue as bU, getThemeColorHexValue as bV, headingVariants as bW, imgSizesHelper as bX, isDarkColor as bY, isLocalizedAssetImage as bZ, mergeMeta as b_, TemplatePropsContext as ba, type TestimonialSectionType as bb, type TestimonialStruct as bc, TimestampAtom as bd, type TimestampAtomProps as be, TimestampOption as bf, type TranslatableCTA as bg, TranslatableStringFieldOverride as bh, type TranslationLoader as bi, type TranslationLoaders as bj, VideoAtom as bk, type VideoAtomProps as bl, VideoFieldOverride as bm, VisibilityWrapper as bn, VisualEditorComponentsContentPath as bo, VisualEditorThemeClassSafelist as bp, type YextArrayField as bq, YextAutoField as br, type YextCTAField as bs, type YextCustomFieldRenderProps as bt, YextEntityFieldSelector as bu, type YextFieldDefinition as bv, type YextFieldMap as bw, type YextFields as bx, type YextObjectField as by, type YextPuckField as bz, type TailwindConfig as c, normalizeLink as c0, normalizeSlug as c1, normalizeThemeColorToken as c2, pt as c3, resolveBreadcrumbs as c4, resolveComponentData as c5, resolveDataFromParent as c6, resolveLocalizedAssetImage as c7, resolveUrlTemplate as c8, resolveUrlTemplateOfChild as c9, getBackgroundColorStyle as cA, getCTAType as cB, getDisplayValue as cC, getEntityTypeLabel as cD, getImageAltText as cE, getLocatorEntityTypeSourceMap as cF, getTextColorClass as cG, getTextColorStyle as cH, hexToRGB as cI, isColorContrastWcagCompliant as cJ, isCtaVariantWithColor as cK, isLocatorEntityType as cL, isNonNormalizableLinkType as cM, loadTranslationDictionary as cN, resolveDirectoryRootProps as cO, resolveField as cP, toMeters as cQ, toMiles as cR, useEntityTooltips as cS, useTemplateMetadata as cT, resolveYextEntityField as ca, themeManagerCn as cb, themeManagerTwMergeConfiguration as cc, themeResolver as cd, toKilometers as ce, toPuckFields as cf, useBackground as cg, useDocument as ch, usePlatformTranslation as ci, useTemplateProps as cj, type SlotMappedCardsData as ck, ConstantValueModeToggler as cl, DEFAULT_ENTITY_TYPE as cm, type EmbeddedStringOption as cn, EntityTooltipsProvider as co, type FieldResolution as cp, type FieldTypeData as cq, type ImagePayload as cr, type LocatorConfig as cs, type RootConfig as ct, buildLocatorDisplayOptions as cu, findField as cv, formatDistance as cw, formatPhoneNumber as cx, fromMeters as cy, getBackgroundColorClasses as cz, type ComponentRegistry as d, type TranslatableRichText as e, ThemeOptions as f, type ThemeColor as g, type YextEntityField as h, type CTAVariant as i, type TranslatableString as j, type HeadingLevel as k, type ImageFillType as l, type TranslatableAssetImage as m, type ImgSizesByBreakpoint as n, type SlottedItemSourceInstance as o, type BodyProps as p, type MultiSelectorValue as q, type StyledTextValue as r, type ComprehensiveCTAValue as s, type CTAProps as t, type BaseTextStyles as u, type CTASelectorField as v, type CodeField as w, type ComprehensiveCTAField as x, type EntityFieldSelectorField as y, type MultiSelectorOptionValue as z };
2129
+ type RichTextStyleOverrides = Partial<BaseTextStyles> & {
2130
+ color?: ThemeColor | string;
2131
+ };
2132
+ interface MaybeRTFProps extends Record<string, any> {
2133
+ data: RichText | string | undefined;
2134
+ bodyVariant?: BodyProps["variant"];
2135
+ /** Override the theme's styling */
2136
+ richTextStyleOverrides?: RichTextStyleOverrides;
2137
+ }
2138
+ /**
2139
+ * Renders plain strings through the shared `Body` component and rich text HTML
2140
+ * through the standard `rtf-wrapper` container while applying shared rich-text
2141
+ * typography and color overrides.
2142
+ */
2143
+ declare const MaybeRTF: ({ data, bodyVariant, richTextStyleOverrides, style, className, ...props }: MaybeRTFProps) => React.JSX.Element;
2144
+
2145
+ /**
2146
+ * Creates render transforms for one page and locale.
2147
+ *
2148
+ * 1. Identify always-transformed and opted-in authored fields, including fields adapted to `custom`.
2149
+ * 2. Dispatch source resolution to the field handler, sharing localization and interpolation.
2150
+ * 3. Register handlers with Puck while preserving resolved data shapes for their renderers.
2151
+ * Authored values are never mutated or replaced in saved Puck data.
2152
+ */
2153
+ declare function createYextFieldTransforms(streamDocument: StreamDocument, locale: string): Record<string, FieldTransformFn<BaseField & {
2154
+ type: string;
2155
+ }>>;
2156
+
2157
+ 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 MultiSelectorOption 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 FieldGenerationMetadata as aC, type Font as aD, FontSizeSelectorFieldOverride as aE, type FoodDeliveryServiceType as aF, type GenerationPromptBundle as aG, type GenerationSettings as aH, Heading as aI, type HeroSectionType as aJ, HoursStatusAtom as aK, type HoursStatusAtomProps as aL, HoursTableAtom as aM, type HoursTableAtomProps as aN, Image as aO, type ImageContentData as aP, type ImageField as aQ, type ImageProps as aR, type InsightSectionType as aS, type InsightStruct as aT, type LayoutGenerationMetadata as aU, type LocalizedAssetImage as aV, MaybeLink as aW, type MaybeLinkProps as aX, MaybeRTF as aY, type MaybeRTFProps as aZ, type MultiSelectorField 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, fetchLocalesToPathsForEntity as b$, type MultiSelectorOptionValue as b0, type MultiSelectorOptions as b1, OptionalNumberFieldOverride as b2, PageSection as b3, type PageSectionProps as b4, type PersonStruct as b5, PhoneAtom as b6, type PhoneAtomProps as b7, type PresetImageType as b8, type ProductSectionType as b9, VisibilityWrapper as bA, VisualEditorComponentsContentPath as bB, VisualEditorThemeClassSafelist as bC, type YextArrayField as bD, YextAutoField as bE, type YextCTAField as bF, type YextCustomFieldRenderProps as bG, YextEntityFieldSelector as bH, type YextFieldDefinition as bI, type YextFields as bJ, type YextObjectField as bK, type YextPuckField as bL, type YextSchemaField as bM, type YextSchemaFieldDefinition as bN, type YextTransformedProps as bO, backgroundColors as bP, bindSlots as bQ, bodyVariants as bR, buttonVariants as bS, constructFontSelectOptions as bT, createSearchAnalyticsConfig as bU, createSearchHeadlessConfig as bV, createSlottedItemSource as bW, createYextFieldTransforms as bX, deepMerge as bY, defaultFonts as bZ, defaultThemeTailwindExtensions as b_, type ProductStruct as ba, type PromoSectionType as bb, type RenderYextEntityFieldSelectorProps as bc, type ResolvedThemeColor as bd, type RichTextStyleOverrides as be, type SlottedItemSourceGenerationMetadata as bf, StyledButtonFieldOverride as bg, StyledImageFieldOverride as bh, StyledLinkFieldOverride as bi, StyledPageSectionFieldOverride as bj, StyledTextFieldOverride as bk, type TeamSectionType as bl, TemplatePropsContext as bm, type TestimonialSectionType as bn, type TestimonialStruct as bo, ThemeColorFieldOverride as bp, TimestampAtom as bq, type TimestampAtomProps as br, TimestampOption as bs, type TranslatableCTA as bt, TranslatableStringFieldOverride as bu, type TranslationLoader as bv, type TranslationLoaders as bw, VideoAtom as bx, type VideoAtomProps as by, VideoFieldOverride as bz, type TailwindConfig as c, isColorContrastWcagCompliant as c$, generationPromptBundleSchema as c0, generationSettingsSchema as c1, getDefaultForegroundColor as c2, getFontWeightOptions as c3, getFontWeightOverrideOptions as c4, getPageMetadata as c5, getPreferredDistanceUnit as c6, getSurfaceColorStyle as c7, getThemeColorCssValue as c8, getThemeColorHexValue as c9, type SlotMappedCardsData as cA, type ComboboxOptionGroup as cB, ConstantValueModeToggler as cC, DEFAULT_ENTITY_TYPE as cD, type EmbeddedStringOption as cE, EntityTooltipsProvider as cF, type FieldResolution as cG, type FieldTypeData as cH, type ImagePayload as cI, LOCATOR_ENTITY_TYPES as cJ, type LocatorConfig as cK, type RootConfig as cL, buildLocatorDisplayOptions as cM, findField as cN, formatDistance as cO, formatPhoneNumber as cP, fromMeters as cQ, getBackgroundColorClasses as cR, getBackgroundColorStyle as cS, getCTAType as cT, getDisplayValue as cU, getEntityTypeLabel as cV, getImageAltText as cW, getLocatorEntityTypeSourceMap as cX, getTextColorClass as cY, getTextColorStyle as cZ, hexToRGB as c_, headingVariants as ca, imgSizesHelper as cb, isDarkColor as cc, isLocalizedAssetImage as cd, mergeMeta as ce, msg as cf, normalizeLink as cg, normalizeSlug as ch, normalizeThemeColorToken as ci, pt as cj, resolveBreadcrumbs as ck, resolveComponentData as cl, resolveDataFromParent as cm, resolveLocalizedAssetImage as cn, resolveUrlTemplate as co, resolveUrlTemplateOfChild as cp, resolveYextEntityField as cq, themeManagerCn as cr, themeManagerTwMergeConfiguration as cs, themeResolver as ct, toKilometers as cu, toPuckFields as cv, useBackground as cw, useDocument as cx, usePlatformTranslation as cy, useTemplateProps as cz, type ComponentRegistry as d, isCtaVariantWithColor as d0, isLocatorEntityType as d1, isNonNormalizableLinkType as d2, loadTranslationDictionary as d3, resolveDirectoryRootProps as d4, resolveField as d5, toMeters as d6, toMiles as d7, useEntityTooltips as d8, useTemplateMetadata as d9, 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 };