@yext/visual-editor 1.4.14 → 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 (234) hide show
  1. package/dist/SectionLibraryVisualEditorProvider-DN65KSX7.js +119824 -0
  2. package/dist/SectionLibraryVisualEditorProvider.css +1 -0
  3. package/dist/cli/assets/directory-locator-source/components/contentBlocks/Address.tsx +251 -0
  4. package/dist/cli/assets/directory-locator-source/components/contentBlocks/HeadingText.tsx +147 -0
  5. package/dist/cli/assets/directory-locator-source/components/contentBlocks/HoursStatus.tsx +157 -0
  6. package/dist/cli/assets/directory-locator-source/components/contentBlocks/HoursTable.tsx +164 -0
  7. package/dist/cli/assets/directory-locator-source/components/contentBlocks/MapboxStaticMap.tsx +205 -0
  8. package/dist/cli/assets/directory-locator-source/components/contentBlocks/Phone.tsx +155 -0
  9. package/dist/cli/assets/directory-locator-source/components/contentBlocks/image/EmptyImageState.tsx +168 -0
  10. package/dist/cli/assets/directory-locator-source/components/contentBlocks/image/Image.tsx +275 -0
  11. package/dist/cli/assets/directory-locator-source/components/contentBlocks/image/styling.ts +66 -0
  12. package/dist/cli/assets/directory-locator-source/components/contentBlocks/index.ts +13 -0
  13. package/dist/cli/assets/directory-locator-source/components/sections/Breadcrumbs.tsx +298 -0
  14. package/dist/cli/assets/directory-locator-source/components/sections/directory/Directory.test.tsx +872 -0
  15. package/dist/cli/assets/directory-locator-source/components/sections/directory/Directory.tsx +298 -0
  16. package/dist/cli/assets/directory-locator-source/components/sections/directory/DirectoryCard.tsx +507 -0
  17. package/dist/cli/assets/directory-locator-source/components/sections/directory/DirectoryWrapper.tsx +499 -0
  18. package/dist/cli/assets/directory-locator-source/components/sections/directory/directoryChildReference.test.tsx +226 -0
  19. package/dist/cli/assets/directory-locator-source/components/sections/directory/directoryChildReference.tsx +98 -0
  20. package/dist/cli/assets/directory-locator-source/components/sections/locator/Filters.test.tsx +147 -0
  21. package/dist/cli/assets/directory-locator-source/components/sections/locator/Filters.tsx +691 -0
  22. package/dist/cli/assets/directory-locator-source/components/sections/locator/Locator.test.tsx +1551 -0
  23. package/dist/cli/assets/directory-locator-source/components/sections/locator/Locator.tsx +541 -0
  24. package/dist/cli/assets/directory-locator-source/components/sections/locator/LocatorFields.test.ts +43 -0
  25. package/dist/cli/assets/directory-locator-source/components/sections/locator/LocatorResultCard.tsx +1594 -0
  26. package/dist/cli/assets/directory-locator-source/components/sections/locator/LocatorWrapper.tsx +1157 -0
  27. package/dist/cli/assets/directory-locator-source/components/sections/locator/Map.tsx +304 -0
  28. package/dist/cli/assets/directory-locator-source/components/sections/locator/MapPinIcon.tsx +160 -0
  29. package/dist/cli/assets/directory-locator-source/components/sections/locator/Results.tsx +267 -0
  30. package/dist/cli/assets/directory-locator-source/sectionLibrarySupport.ts +277 -0
  31. package/dist/cli/yextve.js +16992 -0
  32. package/dist/createYextFieldTransforms-CrIkiJ_X.d.ts +2157 -0
  33. package/dist/index.d.ts +534 -6352
  34. package/dist/locales/page/cs/visual-editor.json +85 -0
  35. package/dist/locales/page/da/visual-editor.json +73 -0
  36. package/dist/locales/page/de/visual-editor.json +73 -0
  37. package/dist/locales/page/en/visual-editor.json +73 -0
  38. package/dist/locales/page/en-GB/visual-editor.json +73 -0
  39. package/dist/locales/page/es/visual-editor.json +79 -0
  40. package/dist/locales/page/et/visual-editor.json +73 -0
  41. package/dist/locales/page/fi/visual-editor.json +73 -0
  42. package/dist/locales/page/fr/visual-editor.json +79 -0
  43. package/dist/locales/page/hr/visual-editor.json +79 -0
  44. package/dist/locales/page/hu/visual-editor.json +73 -0
  45. package/dist/locales/page/it/visual-editor.json +79 -0
  46. package/dist/locales/page/ja/visual-editor.json +73 -0
  47. package/dist/locales/page/lt/visual-editor.json +85 -0
  48. package/dist/locales/page/lv/visual-editor.json +77 -0
  49. package/dist/locales/page/nb/visual-editor.json +73 -0
  50. package/dist/locales/page/nl/visual-editor.json +73 -0
  51. package/dist/locales/page/pl/visual-editor.json +85 -0
  52. package/dist/locales/page/pt/visual-editor.json +79 -0
  53. package/dist/locales/page/ro/visual-editor.json +79 -0
  54. package/dist/locales/page/sk/visual-editor.json +85 -0
  55. package/dist/locales/page/sv/visual-editor.json +73 -0
  56. package/dist/locales/page/tr/visual-editor.json +73 -0
  57. package/dist/locales/page/zh/visual-editor.json +73 -0
  58. package/dist/locales/page/zh-TW/visual-editor.json +73 -0
  59. package/dist/locales/platform/cs/visual-editor.json +651 -0
  60. package/dist/locales/platform/da/visual-editor.json +625 -0
  61. package/dist/locales/platform/de/visual-editor.json +625 -0
  62. package/dist/locales/platform/en/visual-editor.json +625 -0
  63. package/dist/locales/platform/en-GB/visual-editor.json +625 -0
  64. package/dist/locales/platform/es/visual-editor.json +638 -0
  65. package/dist/locales/platform/et/visual-editor.json +625 -0
  66. package/dist/locales/platform/fi/visual-editor.json +625 -0
  67. package/dist/locales/platform/fr/visual-editor.json +638 -0
  68. package/dist/locales/platform/hr/visual-editor.json +638 -0
  69. package/dist/locales/platform/hu/visual-editor.json +625 -0
  70. package/dist/locales/platform/it/visual-editor.json +638 -0
  71. package/dist/locales/platform/ja/visual-editor.json +625 -0
  72. package/dist/locales/platform/lt/visual-editor.json +651 -0
  73. package/dist/locales/platform/lv/visual-editor.json +633 -0
  74. package/dist/locales/platform/nb/visual-editor.json +625 -0
  75. package/dist/locales/platform/nl/visual-editor.json +625 -0
  76. package/dist/locales/platform/pl/visual-editor.json +651 -0
  77. package/dist/locales/platform/pt/visual-editor.json +638 -0
  78. package/dist/locales/platform/ro/visual-editor.json +638 -0
  79. package/dist/locales/platform/sk/visual-editor.json +651 -0
  80. package/dist/locales/platform/sv/visual-editor.json +625 -0
  81. package/dist/locales/platform/tr/visual-editor.json +625 -0
  82. package/dist/locales/platform/zh/visual-editor.json +625 -0
  83. package/dist/locales/platform/zh-TW/visual-editor.json +625 -0
  84. package/dist/plugin/internal/layoutGeneration/limits.d.ts +28 -0
  85. package/dist/plugin/internal/sectionLibraryValidation/builtInTranslationResources.d.ts +3 -0
  86. package/dist/plugin/internal/sectionLibraryValidation/stages/api/api.d.ts +7 -0
  87. package/dist/plugin/internal/sectionLibraryValidation/stages/api/libraryMetadata.d.ts +7 -0
  88. package/dist/plugin/internal/sectionLibraryValidation/stages/code/importRules.d.ts +13 -0
  89. package/dist/plugin/internal/sectionLibraryValidation/stages/code/validateCode.d.ts +10 -0
  90. package/dist/plugin/internal/sectionLibraryValidation/stages/code/xssRules.d.ts +7 -0
  91. package/dist/plugin/internal/sectionLibraryValidation/stages/structure/structure.d.ts +7 -0
  92. package/dist/plugin/internal/sectionLibraryValidation/types.d.ts +48 -0
  93. package/dist/plugin/internal/sectionLibraryValidation/validateSectionLibrary.d.ts +8 -0
  94. package/dist/plugin/internal/sectionLibraryValidation/validationError.d.ts +6 -0
  95. package/dist/plugin/plugin.js +7013 -5873
  96. package/dist/plugin/types/entityFields.d.ts +21 -0
  97. package/dist/plugin/types/generationPrompts.d.ts +19 -0
  98. package/dist/plugin/types/generationSettings.d.ts +12 -0
  99. package/dist/plugin/types/images.d.ts +62 -0
  100. package/dist/plugin/types/sectionLibrary.d.ts +101 -0
  101. package/dist/plugin/types/types.d.ts +204 -0
  102. package/dist/plugin/types/videos.d.ts +24 -0
  103. package/dist/plugin/utils/i18n/locales.d.ts +5 -0
  104. package/dist/plugin/utils/i18n/translationResources.d.ts +41 -0
  105. package/dist/plugin/utils/normalizeLocale.d.ts +8 -0
  106. package/dist/plugin/utils/plainText.d.ts +6 -0
  107. package/dist/plugin/vite-plugin/index.d.ts +2 -0
  108. package/dist/plugin/vite-plugin/layout-generation/generationLogger.d.ts +5 -0
  109. package/dist/plugin/vite-plugin/layout-generation/generationReports.d.ts +13 -0
  110. package/dist/plugin/vite-plugin/layout-generation/middleware.d.ts +14 -0
  111. package/dist/plugin/vite-plugin/layout-generation/modelProxy.d.ts +9 -0
  112. package/dist/plugin/vite-plugin/layout-generation/prompts.d.ts +17 -0
  113. package/dist/plugin/vite-plugin/layout-generation/settings.d.ts +3 -0
  114. package/dist/plugin/vite-plugin/local-editor/artifacts.d.ts +20 -0
  115. package/dist/plugin/vite-plugin/local-editor/config.d.ts +11 -0
  116. package/dist/plugin/vite-plugin/local-editor/data.d.ts +12 -0
  117. package/dist/plugin/vite-plugin/local-editor/entityFields.d.ts +13 -0
  118. package/dist/plugin/vite-plugin/local-editor/fixtureData.d.ts +12 -0
  119. package/dist/plugin/vite-plugin/local-editor/generatedFiles.d.ts +33 -0
  120. package/dist/plugin/vite-plugin/local-editor/server.d.ts +34 -0
  121. package/dist/plugin/vite-plugin/local-editor/types.d.ts +125 -0
  122. package/dist/plugin/vite-plugin/local-editor/utils.d.ts +16 -0
  123. package/dist/plugin/vite-plugin/plugin.d.ts +8 -0
  124. package/dist/plugin/vite-plugin/section-library/migrationRegistry.d.ts +6 -0
  125. package/dist/plugin/vite-plugin/section-library/sectionFrontmatter.d.ts +3 -0
  126. package/dist/plugin/vite-plugin/section-library/sectionLibraryGenerator.d.ts +21 -0
  127. package/dist/plugin/vite-plugin/section-library/sharedComponentRegistry.d.ts +16 -0
  128. package/dist/section-library-support.js +178 -0
  129. package/dist/sectionLibrarySupport.d.ts +703 -0
  130. package/dist/style.css +1 -1
  131. package/dist/visual-editor-6mKs9VUe.js +842 -0
  132. package/dist/visual-editor-BK6fTU7k.js +804 -0
  133. package/dist/visual-editor-BXYlpe7B.js +145 -0
  134. package/dist/visual-editor-BruRrJYN.js +804 -0
  135. package/dist/visual-editor-Bs3wAslG.js +804 -0
  136. package/dist/visual-editor-Bxy81Ezy.js +145 -0
  137. package/dist/visual-editor-C0vq2BRM.js +145 -0
  138. package/dist/visual-editor-C9TLeAzP.js +804 -0
  139. package/dist/visual-editor-CCgmYV5S.js +169 -0
  140. package/dist/visual-editor-CERViyTJ.js +145 -0
  141. package/dist/visual-editor-CHWtMtlu.js +823 -0
  142. package/dist/visual-editor-CcfUKpnd.js +804 -0
  143. package/dist/visual-editor-CjORnP1D.js +169 -0
  144. package/dist/visual-editor-ClC6hoz3.js +804 -0
  145. package/dist/visual-editor-CmomGJB8.js +157 -0
  146. package/dist/visual-editor-CtQwadxQ.js +842 -0
  147. package/dist/visual-editor-Cymg8ID2.js +169 -0
  148. package/dist/visual-editor-D2Hk1nhM.js +145 -0
  149. package/dist/visual-editor-D7VeTRK_.js +816 -0
  150. package/dist/visual-editor-D8MRFn5x.js +157 -0
  151. package/dist/visual-editor-DOXtCqRv.js +145 -0
  152. package/dist/visual-editor-DQEd3xwY.js +145 -0
  153. package/dist/visual-editor-DTE5kxrA.js +804 -0
  154. package/dist/visual-editor-DUngIOnE.js +157 -0
  155. package/dist/visual-editor-DeZVZYfd.js +169 -0
  156. package/dist/visual-editor-DfJMZpiP.js +145 -0
  157. package/dist/visual-editor-DgAsQK9D.js +145 -0
  158. package/dist/visual-editor-Dhi__-7_.js +145 -0
  159. package/dist/visual-editor-DjTEbi-1.js +842 -0
  160. package/dist/visual-editor-DjdqpJU-.js +145 -0
  161. package/dist/visual-editor-DkHhrFsX.js +804 -0
  162. package/dist/visual-editor-DtL-Zuv_.js +804 -0
  163. package/dist/visual-editor-Duishbsa.js +842 -0
  164. package/dist/visual-editor-DvuH3jyL.js +157 -0
  165. package/dist/visual-editor-LXMNWXry.js +823 -0
  166. package/dist/visual-editor-QpGupjY5.js +823 -0
  167. package/dist/visual-editor-TfVDfO5_.js +145 -0
  168. package/dist/visual-editor-W_ZDmMFn.js +145 -0
  169. package/dist/visual-editor-_TatCCAS.js +804 -0
  170. package/dist/visual-editor-b7ALusk8.js +145 -0
  171. package/dist/visual-editor-erGXf3kS.js +157 -0
  172. package/dist/visual-editor-gEaWoNRu.js +804 -0
  173. package/dist/visual-editor-gjpr-NAN.js +804 -0
  174. package/dist/visual-editor-qJW0uCiQ.js +804 -0
  175. package/dist/visual-editor-sOPDMkOR.js +823 -0
  176. package/dist/visual-editor-tPb7n5l8.js +823 -0
  177. package/dist/visual-editor-vomNdlNO.js +804 -0
  178. package/dist/visual-editor-xnDHZFuO.js +153 -0
  179. package/dist/visual-editor-yiWZqIH0.js +157 -0
  180. package/dist/visual-editor-zKhC7_0C.js +823 -0
  181. package/dist/visual-editor.css +1 -0
  182. package/dist/visual-editor.js +18578 -137536
  183. package/package.json +50 -26
  184. package/dist/editor.css +0 -1
  185. package/dist/visual-editor-6pnSx-yp.js +0 -223
  186. package/dist/visual-editor-9ZW3nq5u.js +0 -247
  187. package/dist/visual-editor-B1RXDqNi.js +0 -1063
  188. package/dist/visual-editor-BAahiZ1l.js +0 -223
  189. package/dist/visual-editor-BC2LjdoF.js +0 -223
  190. package/dist/visual-editor-BPnfBfk1.js +0 -1051
  191. package/dist/visual-editor-BQiE5eVW.js +0 -1051
  192. package/dist/visual-editor-BTv-6Pnk.js +0 -1051
  193. package/dist/visual-editor-BUWp03gX.js +0 -235
  194. package/dist/visual-editor-Bb3c6iGV.js +0 -223
  195. package/dist/visual-editor-BipczqTj.js +0 -1075
  196. package/dist/visual-editor-BlIUd_n_.js +0 -1051
  197. package/dist/visual-editor-BoPLXEu2.js +0 -223
  198. package/dist/visual-editor-Bzmpi_9a.js +0 -1063
  199. package/dist/visual-editor-C38IiBTR.js +0 -235
  200. package/dist/visual-editor-C9tacnim.js +0 -247
  201. package/dist/visual-editor-CVa3iu5h.js +0 -1051
  202. package/dist/visual-editor-CXTL8Ik0.js +0 -1051
  203. package/dist/visual-editor-CYeahjFX.js +0 -231
  204. package/dist/visual-editor-CZ2SM6Jc.js +0 -1063
  205. package/dist/visual-editor-CZDmQI-A.js +0 -1063
  206. package/dist/visual-editor-C_cHJ6BN.js +0 -1051
  207. package/dist/visual-editor-Cf3nFbw3.js +0 -235
  208. package/dist/visual-editor-CiR0metz.js +0 -1051
  209. package/dist/visual-editor-CoX_NnS-.js +0 -223
  210. package/dist/visual-editor-Cu8II23Y.js +0 -223
  211. package/dist/visual-editor-CvXFxocc.js +0 -1063
  212. package/dist/visual-editor-Cxu6nkib.js +0 -1051
  213. package/dist/visual-editor-D-3VVfjR.js +0 -223
  214. package/dist/visual-editor-D-ktbg7q.js +0 -223
  215. package/dist/visual-editor-D9G5eAAU.js +0 -1051
  216. package/dist/visual-editor-D9MrqEya.js +0 -223
  217. package/dist/visual-editor-DAKXBbjV.js +0 -1075
  218. package/dist/visual-editor-DBmJk7ZR.js +0 -235
  219. package/dist/visual-editor-DG-c2LU9.js +0 -1051
  220. package/dist/visual-editor-DI_Vk989.js +0 -1051
  221. package/dist/visual-editor-DOOYgnjP.js +0 -235
  222. package/dist/visual-editor-DRx3Ax_O.js +0 -1075
  223. package/dist/visual-editor-DZ66sria.js +0 -1051
  224. package/dist/visual-editor-DZTPhYcr.js +0 -247
  225. package/dist/visual-editor-DcH7WJVI.js +0 -223
  226. package/dist/visual-editor-DdYXgEbR.js +0 -1059
  227. package/dist/visual-editor-DeWzgcue.js +0 -1063
  228. package/dist/visual-editor-Dm5ZNn8C.js +0 -223
  229. package/dist/visual-editor-DqLCIWPQ.js +0 -1051
  230. package/dist/visual-editor-NoU28r5Y.js +0 -223
  231. package/dist/visual-editor-WjrJ9nPc.js +0 -235
  232. package/dist/visual-editor-_h-sdbID.js +0 -223
  233. package/dist/visual-editor-r4gSQqFM.js +0 -1075
  234. package/dist/visual-editor-ujQ29mao.js +0 -247
@@ -0,0 +1,703 @@
1
+ import { g as ThemeColor, a as StreamDocument, cA as SlotMappedCardsData, a4 as SectionLibraryTranslationLoaders, S as StreamFields, c as TailwindConfig, b8 as PresetImageType, aU as LayoutGenerationMetadata, bI as YextFieldDefinition, f as ThemeOptions, cB as ComboboxOptionGroup } from './createYextFieldTransforms-CrIkiJ_X.js';
2
+ export { a5 as Accordion, a6 as AccordionContent, a7 as AccordionItem, a8 as AccordionTrigger, a9 as AssetImageType, a3 as AssetVideo, aa as Background, ab as BackgroundProps, ac as BackgroundProvider, B as BasicSelectorField, ae as Body, q as BodyProps, ag as Button, ah as ButtonProps, ai as CTA, v as CTAProps, j as CTAVariant, cC as ConstantValueModeToggler, cD as DEFAULT_ENTITY_TYPE, ao as DropdownMenu, ap as DropdownMenuContent, aq as DropdownMenuItem, ar as DropdownMenuTrigger, as as EmbeddedFieldStringInputFromEntity, at as EmbeddedFieldStringInputFromOptions, cE as EmbeddedStringOption, av as EntityField, cF as EntityTooltipsProvider, aB as FOOD_DELIVERY_SERVICES, aC as FieldGenerationMetadata, cG as FieldResolution, cH as FieldTypeData, aI as Heading, l as HeadingLevel, H as HeadingProps, aK as HoursStatusAtom, aL as HoursStatusAtomProps, aM as HoursTableAtom, aN as HoursTableAtomProps, aO as Image, aQ as ImageField, m as ImageFillType, cI as ImagePayload, aR as ImageProps, o as ImgSizesByBreakpoint, cJ as LOCATOR_ENTITY_TYPES, cK as LocatorConfig, L as LocatorEntityType, aW as MaybeLink, aX as MaybeLinkProps, aY as MaybeRTF, M as MsgString, a$ as MultiSelectorOption, r as MultiSelectorValue, b3 as PageSection, b4 as PageSectionProps, b6 as PhoneAtom, b7 as PhoneAtomProps, bc as RenderYextEntityFieldSelectorProps, u as ResolvedComprehensiveCTAValue, cL as RootConfig, bm as TemplatePropsContext, bq as TimestampAtom, br as TimestampAtomProps, bs as TimestampOption, n as TranslatableAssetImage, k as TranslatableString, bx as VideoAtom, by as VideoAtomProps, bA as VisibilityWrapper, bD as YextArrayField, bE as YextAutoField, bF as YextCTAField, h as YextComponentConfig, bG as YextCustomFieldRenderProps, i as YextEntityField, bH as YextEntityFieldSelector, Y as YextFieldMap, bJ as YextFields, bK as YextObjectField, bL as YextPuckField, bO as YextTransformedProps, bP as backgroundColors, bQ as bindSlots, cM as buildLocatorDisplayOptions, bS as buttonVariants, bU as createSearchAnalyticsConfig, bV as createSearchHeadlessConfig, bW as createSlottedItemSource, bX as createYextFieldTransforms, bY as deepMerge, b$ as fetchLocalesToPathsForEntity, cN as findField, cO as formatDistance, cP as formatPhoneNumber, cQ as fromMeters, cR as getBackgroundColorClasses, cS as getBackgroundColorStyle, cT as getCTAType, cU as getDisplayValue, cV as getEntityTypeLabel, cW as getImageAltText, cX as getLocatorEntityTypeSourceMap, c5 as getPageMetadata, c6 as getPreferredDistanceUnit, cY as getTextColorClass, cZ as getTextColorStyle, c8 as getThemeColorCssValue, ca as headingVariants, c_ as hexToRGB, cb as imgSizesHelper, c$ as isColorContrastWcagCompliant, d0 as isCtaVariantWithColor, cd as isLocalizedAssetImage, d1 as isLocatorEntityType, d2 as isNonNormalizableLinkType, d3 as loadTranslationDictionary, ce as mergeMeta, cf as msg, cg as normalizeLink, ch as normalizeSlug, cj as pt, ck as resolveBreadcrumbs, cl as resolveComponentData, cm as resolveDataFromParent, d4 as resolveDirectoryRootProps, d5 as resolveField, cn as resolveLocalizedAssetImage, co as resolveUrlTemplate, cp as resolveUrlTemplateOfChild, cr as themeManagerCn, cu as toKilometers, d6 as toMeters, d7 as toMiles, cv as toPuckFields, cw as useBackground, cx as useDocument, d8 as useEntityTooltips, d9 as useTemplateMetadata, cz as useTemplateProps } from './createYextFieldTransforms-CrIkiJ_X.js';
3
+ import * as React from 'react';
4
+ import React__default from 'react';
5
+ import { Slot, useGetPuck, ComponentData, Fields, Permissions, Config } from '@puckeditor/core';
6
+ import * as class_variance_authority_types from 'class-variance-authority/types';
7
+ import { VariantProps } from 'class-variance-authority';
8
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
9
+ import * as _json_render_core from '@json-render/core';
10
+ import { z } from 'zod';
11
+ import 'clsx';
12
+ import '@yext/pages-components';
13
+ import '@yext/search-headless-react';
14
+ import '@yext/search-ui-react';
15
+ import '@radix-ui/react-dropdown-menu';
16
+ import 'react-i18next';
17
+ import 'i18next';
18
+
19
+ declare const MapPinIcon: ({ color, resultIndex, icon, iconWidth, disableContrastIcon, aspectRatio, selected, }: {
20
+ color?: ThemeColor;
21
+ resultIndex?: number;
22
+ icon?: string;
23
+ iconWidth: number;
24
+ disableContrastIcon?: boolean;
25
+ aspectRatio?: number;
26
+ selected?: boolean;
27
+ }) => React.JSX.Element;
28
+
29
+ type CardContextType<T extends Record<string, any>> = {
30
+ sharedCardProps: T | undefined;
31
+ setSharedCardProps: React__default.Dispatch<React__default.SetStateAction<T | undefined>>;
32
+ };
33
+ declare const CardContextProvider: <T extends Record<string, any>>({ children, parentStyles, }: {
34
+ children: React__default.ReactNode;
35
+ parentStyles?: unknown;
36
+ }) => React__default.JSX.Element;
37
+ declare const useCardContext: <T extends Record<string, any>>() => CardContextType<T>;
38
+ declare const useParentCardStyles: <T>() => T | undefined;
39
+
40
+ /**
41
+ * useGetSlotProps hooks into the puck state to retrieve the unprocessed slot props.
42
+ * Only works in-editor, otherwise returns undefined.
43
+ * @returns slotStyles: a mapping of slot prop names to their shared values. Includes all props in the styles section.
44
+ * @returns getPuck a function to retrieve the puck state
45
+ * @returns slotProps the raw slot data from puck
46
+ */
47
+ type UseGetCardSlotsResult<T extends {
48
+ slots: Record<string, Slot>;
49
+ }> = {
50
+ slotStyles: Record<string, T extends {
51
+ styles: infer S;
52
+ } ? S : Record<string, unknown>>;
53
+ getPuck?: ReturnType<typeof useGetPuck>;
54
+ slotProps?: T["slots"];
55
+ };
56
+ declare const useGetCardSlots: <T extends {
57
+ slots: Record<string, Slot>;
58
+ }>(id: string) => UseGetCardSlotsResult<T>;
59
+ declare const gatherSlotStyles: (slotProps: Record<string, Slot>) => {
60
+ [k: string]: any;
61
+ };
62
+
63
+ /**
64
+ * Returns the preview iframe's window when available, otherwise the main window.
65
+ * Safe to use on live pages without the preview iframe.
66
+ */
67
+ declare const usePreviewWindow: () => Window | null;
68
+
69
+ declare const VIEWPORT_BREAKPOINTS: {
70
+ readonly md: 768;
71
+ readonly lg: 1024;
72
+ };
73
+ declare const getViewport: (width: number) => {
74
+ isMobile: boolean;
75
+ isTablet: boolean;
76
+ isDesktop: boolean;
77
+ };
78
+ declare const useWindowWidth: (externalWindow?: Window | null) => number;
79
+
80
+ declare const buttonVariants: (props?: ({
81
+ variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | "small_link" | "puckSelect" | null | undefined;
82
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
83
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
84
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
85
+ asChild?: boolean;
86
+ }
87
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
88
+
89
+ declare const linkTypeOptions: () => {
90
+ label: string;
91
+ value: string;
92
+ }[];
93
+
94
+ declare const isDirectoryGrid: (children: unknown) => boolean;
95
+ declare const sortAlphabetically: <T extends Record<string, any>>(directoryChildren: T[], sortBy: string) => T[];
96
+
97
+ interface PlaceholderImageOptions {
98
+ /** If provided, returns this URL to ensure stability (prevents re-fetching) */
99
+ existingUrl?: string;
100
+ /** Width in pixels to append to the URL */
101
+ width?: number;
102
+ /** Height in pixels to append to the URL */
103
+ height?: number;
104
+ /** Aspect ratio (width/height). If width is provided but height is not, height will be calculated. If height is provided but width is not, width will be calculated. */
105
+ aspectRatio?: number;
106
+ }
107
+ /**
108
+ * Gets a random placeholder image object with default metadata.
109
+ * @param options - Options for generating the placeholder image. Can include existingConstantValue for stability, or width/height/aspectRatio for dimensions.
110
+ * @returns A randomly selected placeholder image object with url, or reuses existing URL if provided
111
+ */
112
+ declare function getRandomPlaceholderImageObject(options?: PlaceholderImageOptions & {
113
+ /** If provided with a URL, uses it to ensure stability (prevents re-fetching) */
114
+ existingConstantValue?: {
115
+ url?: string;
116
+ width?: number;
117
+ height?: number;
118
+ aspectRatio?: number;
119
+ };
120
+ }): {
121
+ url: string;
122
+ };
123
+
124
+ /**
125
+ * Reads a theme CSS variable value in both editor and page-generation contexts.
126
+ */
127
+ declare const getThemeValue: (variableName: string, streamDocument?: StreamDocument | Record<string, any>) => string | undefined;
128
+
129
+ /**
130
+ * Retrieves the value of a query string param from the URL's query string. If it doesn't exist,
131
+ * return null.
132
+ */
133
+ declare function getValueFromQueryString(name: string, queryString: string): string | null;
134
+
135
+ interface SlotMappedCardWrapperType<TMappings extends Record<string, unknown>> {
136
+ data: SlotMappedCardsData<TMappings>;
137
+ slots: {
138
+ CardSlot: Slot;
139
+ };
140
+ }
141
+
142
+ interface CardWrapper {
143
+ slots: {
144
+ CardSlot: Slot;
145
+ };
146
+ }
147
+ /**
148
+ * Reads the section heading level from `SectionHeadingSlot` and passes the
149
+ * next semantic level into each card's destination heading slot. When the
150
+ * section heading is already `h6`, card headings are rendered as `span` so the
151
+ * document outline does not exceed valid heading levels.
152
+ */
153
+ declare const forwardHeadingLevel: <T extends CardWrapper>(data: Record<string, any>, destinationHeadingSlotKey: string) => Record<string, any>;
154
+
155
+ /**
156
+ * Slot-mapped card reconciliation helpers.
157
+ *
158
+ * 1. Reconcile manual cards against stored card references and preserve authored slots.
159
+ * 2. Reconcile linked cards against resolved item counts while preserving card structure.
160
+ * 3. Normalize ids and clear stale `parentData` at the card and child-slot levels.
161
+ */
162
+ type CardWithId = ComponentData<{
163
+ id?: string;
164
+ index?: number;
165
+ parentData?: unknown;
166
+ slots?: Record<string, Array<{
167
+ props?: Record<string, unknown>;
168
+ }>>;
169
+ }>;
170
+ /**
171
+ * Reconciles linked slot-backed cards against the resolved item list.
172
+ *
173
+ * 1. Grow or shrink the current card list to match the number of resolved
174
+ * linked items.
175
+ * 2. Preserve existing card instances when possible so slot-level styling and
176
+ * structure survive linked-data updates.
177
+ * 3. Update each card's index and card-level `parentData` so downstream card
178
+ * components can bind the resolved item into their internal slots.
179
+ */
180
+ declare const syncLinkedSlotMappedCards: <TMappedItem, TCard extends CardWithId>({ items, currentCards, createCard, toParentData, normalizeId, }: {
181
+ items: TMappedItem[];
182
+ currentCards: TCard[];
183
+ createCard: (id: string, index: number) => TCard;
184
+ toParentData: (item: TMappedItem) => TCard["props"]["parentData"];
185
+ normalizeId?: (id: string) => string;
186
+ }) => (TCard & {
187
+ props: {
188
+ index: number;
189
+ parentData: TCard["props"]["parentData"];
190
+ id: string;
191
+ slots?: {
192
+ [x: string]: {
193
+ props?: {
194
+ [x: string]: unknown;
195
+ } | undefined;
196
+ }[];
197
+ } | undefined;
198
+ };
199
+ })[];
200
+
201
+ /**
202
+ * Synchronizes specific style properties from the parent component to the child component's data.
203
+ * To be used in resolveData:(data, params) of child components.
204
+ *
205
+ * @param params - The parameters object containing the parent component's props.
206
+ * @param updatedData - The current data of the child component.
207
+ * @param keys - An array of style property keys to synchronize from the parent to the child.
208
+ * @returns The updated child component data with synchronized styles if changes were detected; otherwise, returns the original data.
209
+ */
210
+ declare const syncParentStyles: (params: any, updatedData: any, keys: string[]) => any;
211
+
212
+ declare const resolveDirectoryListChildren: (streamDocument: StreamDocument, child: {
213
+ slug?: string;
214
+ }) => string | undefined;
215
+
216
+ /**
217
+ * Resolves the URL for a locator result from the stream document.
218
+ */
219
+ declare function resolveLocatorResultUrl(profile: any, streamDocument: StreamDocument, relativePrefixToRoot?: string): string | undefined;
220
+
221
+ type Payload = Record<string, any>;
222
+ type Status = "success" | "error";
223
+ type PostMessage = {
224
+ payload: Payload;
225
+ };
226
+ type ReceivePayload = {
227
+ status: Status;
228
+ payload?: Payload;
229
+ };
230
+ type MessageStatus = Status | "pending";
231
+ type EventHandler = (respond: (data: ReceivePayload) => unknown, payload: Payload) => unknown;
232
+ declare const TARGET_ORIGINS: string[];
233
+ /**
234
+ * A hook that allows sending a postMessage from an iframe to its parent window. Additionally,
235
+ * it listens for a response from the parent (two way communication) to update its status.
236
+ * @param messageName - The message name to listen on
237
+ * @param targetOrigins - The origin urls the message can be posted to and received from
238
+ */
239
+ declare const useSendMessageToParent: (messageName: string, targetOrigins: string[]) => {
240
+ sendToParent: (data?: PostMessage) => void;
241
+ status: MessageStatus;
242
+ };
243
+ /**
244
+ * A hook to receive a postMessage request, either in a parent window or an iframe. It is
245
+ * the receiving end for {@link useSendMessageToParent}.
246
+ * The eventHandler if fired when a message is received, which contains a payload and callback
247
+ * function. The receiver can choose to do something with the payload as well as send a
248
+ * status and payload back to the publisher.
249
+ * @param messageName - The message name to listen on
250
+ * @param targetOrigins - The origin urls the message can be posted to and received from
251
+ * @param eventHandler - The function that will be called when the event is triggered
252
+ */
253
+ declare const useReceiveMessage: (messageName: string, targetOrigins: string[], eventHandler: EventHandler) => void;
254
+
255
+ declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
256
+ declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
257
+ declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
258
+ declare const TooltipArrow: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipArrowProps & React.RefAttributes<SVGSVGElement>>;
259
+ interface TooltipContentProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> {
260
+ zoomWithViewport?: boolean;
261
+ }
262
+ declare const TooltipContent: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
263
+
264
+ interface ComponentErrorBoundaryProps {
265
+ children: React__default.ReactNode;
266
+ isEditing?: boolean;
267
+ resetKeys?: any[];
268
+ }
269
+ declare const ComponentErrorBoundary: ({ children, isEditing, resetKeys, }: ComponentErrorBoundaryProps) => React__default.JSX.Element;
270
+
271
+ type SectionLibraryVisualEditorProviderProps<T> = {
272
+ templateProps: T;
273
+ translationLoaders?: SectionLibraryTranslationLoaders;
274
+ entityFields?: StreamFields | null;
275
+ tailwindConfig?: TailwindConfig;
276
+ children: React__default.ReactNode;
277
+ };
278
+ declare const SectionLibraryVisualEditorProvider: <T extends Record<string, any>>({ templateProps, translationLoaders, entityFields, tailwindConfig, children, }: SectionLibraryVisualEditorProviderProps<T>) => React__default.JSX.Element;
279
+
280
+ declare const isVisualEditorTestEnv: () => boolean;
281
+
282
+ declare const presetImageIcons: Record<PresetImageType, React__default.ReactNode>;
283
+
284
+ type FieldOmission = {
285
+ component: string;
286
+ path: string;
287
+ fieldType: string;
288
+ reason: string;
289
+ };
290
+
291
+ type GenerationComponent = {
292
+ generation?: LayoutGenerationMetadata & {
293
+ props: z.ZodObject;
294
+ };
295
+ description?: string;
296
+ fields?: Fields;
297
+ defaultProps?: Record<string, unknown>;
298
+ nestedOnly?: boolean;
299
+ /** Static editor permissions checked before planning component changes. */
300
+ permissions?: Partial<Permissions>;
301
+ };
302
+ type GenerationComponentInput = Omit<GenerationComponent, "generation"> & {
303
+ layoutGenerationMetadata?: LayoutGenerationMetadata;
304
+ };
305
+ /** Contracts belong to registered Puck components, including hidden slot children. */
306
+ declare const createPuckGenerationCatalog: (components: Record<string, GenerationComponentInput>, options?: {
307
+ rootAllowedComponentIds?: string[];
308
+ /** Prompt guidance for fresh generation; explicit user requests take precedence. */
309
+ defaultGenerationSectionIds?: string[];
310
+ }) => _json_render_core.Catalog<{
311
+ spec: _json_render_core.SchemaType<"object", {
312
+ content: _json_render_core.SchemaType<"array", _json_render_core.SchemaType<"object", {
313
+ type: _json_render_core.SchemaType<"ref", string>;
314
+ props: _json_render_core.SchemaType<"record", _json_render_core.SchemaType<"any", unknown>>;
315
+ }>>;
316
+ }>;
317
+ catalog: _json_render_core.SchemaType<"object", {
318
+ components: _json_render_core.SchemaType<"map", {
319
+ props: _json_render_core.SchemaType<"zod", unknown>;
320
+ description: _json_render_core.SchemaType<"string", unknown>;
321
+ fields: _json_render_core.SchemaType<"any", unknown>;
322
+ }>;
323
+ }>;
324
+ }, {
325
+ components: {
326
+ [k: string]: {
327
+ generation: (LayoutGenerationMetadata & {
328
+ props: z.ZodObject;
329
+ }) | undefined;
330
+ fields: Fields;
331
+ description: string | undefined;
332
+ props: z.ZodObject;
333
+ defaultProps?: Record<string, unknown> | undefined;
334
+ permissions?: Partial<Permissions> | undefined;
335
+ nestedOnly?: boolean | undefined;
336
+ };
337
+ };
338
+ }> & {
339
+ puckOptions: {
340
+ rootAllowedComponentIds?: string[];
341
+ /** Prompt guidance for fresh generation; explicit user requests take precedence. */
342
+ defaultGenerationSectionIds?: string[];
343
+ };
344
+ fieldOmissions: FieldOmission[];
345
+ };
346
+ type PuckGenerationCatalog = ReturnType<typeof createPuckGenerationCatalog>;
347
+ /** Associate generated contracts with a config without adding saved layout data. */
348
+ declare const withGenerationCatalog: <T extends Config>(config: T, catalog: PuckGenerationCatalog) => T;
349
+
350
+ /** Saved width values, independent of theme state or a mounted editor. */
351
+ declare const widthZodSchema: z.ZodEnum<{
352
+ [x: string]: string;
353
+ }>;
354
+ /**
355
+ * Infer an authored contract for a custom editor's native backing field.
356
+ * No renderers, editor state, option callbacks or catalog construction are used.
357
+ * Unsupported or excluded fields throw instead of returning a partial contract.
358
+ * Slot child contracts still require a catalog during generation compilation.
359
+ */
360
+ declare const inferFieldZodSchema: (field: YextFieldDefinition, options?: {
361
+ defaultValue?: unknown;
362
+ }) => z.ZodType;
363
+
364
+ /** Resolve only known option keys; never inspect mounted theme or editor state. */
365
+ declare const resolveCanonicalSelectorGroups: (key: keyof typeof ThemeOptions) => ComboboxOptionGroup[];
366
+
367
+ declare const translatableStringZodSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
368
+ hasLocalizedValue: z.ZodOptional<z.ZodLiteral<"true">>;
369
+ defaultValue: z.ZodOptional<z.ZodString>;
370
+ }, z.core.$catchall<z.ZodOptional<z.ZodString>>>]>;
371
+ declare function entityFieldZodSchema<T extends z.ZodType>(constantValue: T): z.ZodObject<{
372
+ field: z.ZodString;
373
+ constantValue: T;
374
+ constantValueEnabled: z.ZodOptional<z.ZodBoolean>;
375
+ }, z.core.$strip>;
376
+ declare const assetImageZodSchema: z.ZodObject<{
377
+ url: z.ZodString;
378
+ width: z.ZodNumber;
379
+ height: z.ZodNumber;
380
+ alternateText: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
381
+ hasLocalizedValue: z.ZodOptional<z.ZodLiteral<"true">>;
382
+ defaultValue: z.ZodOptional<z.ZodString>;
383
+ }, z.core.$catchall<z.ZodOptional<z.ZodString>>>]>>;
384
+ }, z.core.$strip>;
385
+ declare const imageZodSchema: z.ZodUnion<readonly [z.ZodObject<{
386
+ url: z.ZodString;
387
+ width: z.ZodNumber;
388
+ height: z.ZodNumber;
389
+ alternateText: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
390
+ hasLocalizedValue: z.ZodOptional<z.ZodLiteral<"true">>;
391
+ defaultValue: z.ZodOptional<z.ZodString>;
392
+ }, z.core.$catchall<z.ZodOptional<z.ZodString>>>]>>;
393
+ }, z.core.$strip>, z.ZodObject<{
394
+ image: z.ZodObject<{
395
+ url: z.ZodString;
396
+ width: z.ZodNumber;
397
+ height: z.ZodNumber;
398
+ alternateText: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
399
+ hasLocalizedValue: z.ZodOptional<z.ZodLiteral<"true">>;
400
+ defaultValue: z.ZodOptional<z.ZodString>;
401
+ }, z.core.$catchall<z.ZodOptional<z.ZodString>>>]>>;
402
+ }, z.core.$strip>;
403
+ }, z.core.$strip>, z.ZodObject<{
404
+ hasLocalizedValue: z.ZodOptional<z.ZodLiteral<"true">>;
405
+ defaultValue: z.ZodOptional<z.ZodObject<{
406
+ url: z.ZodString;
407
+ width: z.ZodNumber;
408
+ height: z.ZodNumber;
409
+ alternateText: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
410
+ hasLocalizedValue: z.ZodOptional<z.ZodLiteral<"true">>;
411
+ defaultValue: z.ZodOptional<z.ZodString>;
412
+ }, z.core.$catchall<z.ZodOptional<z.ZodString>>>]>>;
413
+ }, z.core.$strip>>;
414
+ }, z.core.$strip>]>;
415
+ declare const enhancedCtaZodSchema: z.ZodObject<{
416
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
417
+ hasLocalizedValue: z.ZodOptional<z.ZodLiteral<"true">>;
418
+ defaultValue: z.ZodOptional<z.ZodString>;
419
+ }, z.core.$catchall<z.ZodOptional<z.ZodString>>>]>;
420
+ link: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
421
+ hasLocalizedValue: z.ZodOptional<z.ZodLiteral<"true">>;
422
+ defaultValue: z.ZodOptional<z.ZodString>;
423
+ }, z.core.$catchall<z.ZodOptional<z.ZodString>>>]>;
424
+ linkType: z.ZodOptional<z.ZodEnum<{
425
+ URL: "URL";
426
+ Phone: "Phone";
427
+ Email: "Email";
428
+ EMAIL: "EMAIL";
429
+ PHONE: "PHONE";
430
+ DRIVING_DIRECTIONS: "DRIVING_DIRECTIONS";
431
+ CLICK_TO_WEBSITE: "CLICK_TO_WEBSITE";
432
+ OTHER: "OTHER";
433
+ }>>;
434
+ normalizeLink: z.ZodOptional<z.ZodBoolean>;
435
+ openInNewTab: z.ZodOptional<z.ZodBoolean>;
436
+ ctaType: z.ZodOptional<z.ZodEnum<{
437
+ textAndLink: "textAndLink";
438
+ getDirections: "getDirections";
439
+ presetImage: "presetImage";
440
+ }>>;
441
+ }, z.core.$strip>;
442
+ declare const richTextZodSchema: z.ZodObject<{
443
+ html: z.ZodString;
444
+ json: z.ZodOptional<z.ZodString>;
445
+ }, z.core.$strict>;
446
+ declare const translatableRichTextZodSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
447
+ hasLocalizedValue: z.ZodOptional<z.ZodLiteral<"true">>;
448
+ defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
449
+ html: z.ZodString;
450
+ json: z.ZodOptional<z.ZodString>;
451
+ }, z.core.$strict>]>>;
452
+ }, z.core.$catchall<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
453
+ html: z.ZodString;
454
+ json: z.ZodOptional<z.ZodString>;
455
+ }, z.core.$strict>]>>>>, z.ZodObject<{
456
+ html: z.ZodString;
457
+ json: z.ZodOptional<z.ZodString>;
458
+ }, z.core.$strict>]>;
459
+ declare const ctaSelectorZodSchema: z.ZodObject<{
460
+ field: z.ZodString;
461
+ constantValue: z.ZodObject<{
462
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
463
+ hasLocalizedValue: z.ZodOptional<z.ZodLiteral<"true">>;
464
+ defaultValue: z.ZodOptional<z.ZodString>;
465
+ }, z.core.$catchall<z.ZodOptional<z.ZodString>>>]>;
466
+ link: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
467
+ hasLocalizedValue: z.ZodOptional<z.ZodLiteral<"true">>;
468
+ defaultValue: z.ZodOptional<z.ZodString>;
469
+ }, z.core.$catchall<z.ZodOptional<z.ZodString>>>]>;
470
+ linkType: z.ZodOptional<z.ZodEnum<{
471
+ URL: "URL";
472
+ Phone: "Phone";
473
+ Email: "Email";
474
+ EMAIL: "EMAIL";
475
+ PHONE: "PHONE";
476
+ DRIVING_DIRECTIONS: "DRIVING_DIRECTIONS";
477
+ CLICK_TO_WEBSITE: "CLICK_TO_WEBSITE";
478
+ OTHER: "OTHER";
479
+ }>>;
480
+ normalizeLink: z.ZodOptional<z.ZodBoolean>;
481
+ openInNewTab: z.ZodOptional<z.ZodBoolean>;
482
+ ctaType: z.ZodOptional<z.ZodEnum<{
483
+ textAndLink: "textAndLink";
484
+ getDirections: "getDirections";
485
+ presetImage: "presetImage";
486
+ }>>;
487
+ }, z.core.$strip>;
488
+ constantValueEnabled: z.ZodOptional<z.ZodBoolean>;
489
+ selectedType: z.ZodOptional<z.ZodEnum<{
490
+ textAndLink: "textAndLink";
491
+ getDirections: "getDirections";
492
+ presetImage: "presetImage";
493
+ }>>;
494
+ }, z.core.$strip>;
495
+ declare const comprehensiveCtaZodSchema: z.ZodObject<{
496
+ data: z.ZodObject<{
497
+ actionType: z.ZodEnum<{
498
+ link: "link";
499
+ button: "button";
500
+ }>;
501
+ cta: z.ZodObject<{
502
+ field: z.ZodString;
503
+ constantValue: z.ZodObject<{
504
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
505
+ hasLocalizedValue: z.ZodOptional<z.ZodLiteral<"true">>;
506
+ defaultValue: z.ZodOptional<z.ZodString>;
507
+ }, z.core.$catchall<z.ZodOptional<z.ZodString>>>]>;
508
+ link: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
509
+ hasLocalizedValue: z.ZodOptional<z.ZodLiteral<"true">>;
510
+ defaultValue: z.ZodOptional<z.ZodString>;
511
+ }, z.core.$catchall<z.ZodOptional<z.ZodString>>>]>;
512
+ linkType: z.ZodOptional<z.ZodEnum<{
513
+ URL: "URL";
514
+ Phone: "Phone";
515
+ Email: "Email";
516
+ EMAIL: "EMAIL";
517
+ PHONE: "PHONE";
518
+ DRIVING_DIRECTIONS: "DRIVING_DIRECTIONS";
519
+ CLICK_TO_WEBSITE: "CLICK_TO_WEBSITE";
520
+ OTHER: "OTHER";
521
+ }>>;
522
+ normalizeLink: z.ZodOptional<z.ZodBoolean>;
523
+ openInNewTab: z.ZodOptional<z.ZodBoolean>;
524
+ ctaType: z.ZodOptional<z.ZodEnum<{
525
+ textAndLink: "textAndLink";
526
+ getDirections: "getDirections";
527
+ presetImage: "presetImage";
528
+ }>>;
529
+ }, z.core.$strip>;
530
+ constantValueEnabled: z.ZodOptional<z.ZodBoolean>;
531
+ selectedType: z.ZodOptional<z.ZodEnum<{
532
+ textAndLink: "textAndLink";
533
+ getDirections: "getDirections";
534
+ presetImage: "presetImage";
535
+ }>>;
536
+ }, z.core.$strip>;
537
+ openInNewTab: z.ZodBoolean;
538
+ buttonText: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
539
+ hasLocalizedValue: z.ZodOptional<z.ZodLiteral<"true">>;
540
+ defaultValue: z.ZodOptional<z.ZodString>;
541
+ }, z.core.$catchall<z.ZodOptional<z.ZodString>>>]>>;
542
+ customId: z.ZodOptional<z.ZodString>;
543
+ customClass: z.ZodOptional<z.ZodString>;
544
+ dataAttributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
545
+ key: z.ZodString;
546
+ value: z.ZodString;
547
+ }, z.core.$strip>>>;
548
+ ariaLabel: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
549
+ hasLocalizedValue: z.ZodOptional<z.ZodLiteral<"true">>;
550
+ defaultValue: z.ZodOptional<z.ZodString>;
551
+ }, z.core.$catchall<z.ZodOptional<z.ZodString>>>]>>;
552
+ }, z.core.$strip>;
553
+ styles: z.ZodObject<{
554
+ variant: z.ZodEnum<{
555
+ link: "link";
556
+ primary: "primary";
557
+ secondary: "secondary";
558
+ }>;
559
+ presetImage: z.ZodOptional<z.ZodEnum<{
560
+ deliveroo: "deliveroo";
561
+ doordash: "doordash";
562
+ grubhub: "grubhub";
563
+ "skip-the-dishes": "skip-the-dishes";
564
+ postmates: "postmates";
565
+ "uber-eats": "uber-eats";
566
+ ezcater: "ezcater";
567
+ "app-store": "app-store";
568
+ "google-play": "google-play";
569
+ "galaxy-store": "galaxy-store";
570
+ "app-gallery": "app-gallery";
571
+ }>>;
572
+ color: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
573
+ selectedColor: z.ZodString;
574
+ contrastingColor: z.ZodLiteral<"black">;
575
+ isDarkColor: z.ZodLiteral<false>;
576
+ }, z.core.$strip> | z.ZodObject<{
577
+ selectedColor: z.ZodString;
578
+ contrastingColor: z.ZodLiteral<"white">;
579
+ isDarkColor: z.ZodLiteral<true>;
580
+ }, z.core.$strip> | z.ZodObject<{
581
+ selectedColor: z.ZodString;
582
+ contrastingColor: z.ZodString;
583
+ isDarkColor: z.ZodBoolean;
584
+ }, z.core.$strip>, ...(z.ZodObject<{
585
+ selectedColor: z.ZodString;
586
+ contrastingColor: z.ZodLiteral<"black">;
587
+ isDarkColor: z.ZodLiteral<false>;
588
+ }, z.core.$strip> | z.ZodObject<{
589
+ selectedColor: z.ZodString;
590
+ contrastingColor: z.ZodLiteral<"white">;
591
+ isDarkColor: z.ZodLiteral<true>;
592
+ }, z.core.$strip> | z.ZodObject<{
593
+ selectedColor: z.ZodString;
594
+ contrastingColor: z.ZodString;
595
+ isDarkColor: z.ZodBoolean;
596
+ }, z.core.$strip>)[]]>>;
597
+ button: z.ZodOptional<z.ZodObject<{
598
+ borderRadius: z.ZodEnum<{
599
+ [x: string]: string;
600
+ }>;
601
+ letterSpacing: z.ZodEnum<{
602
+ [x: string]: string;
603
+ }>;
604
+ fontFamily: z.ZodString;
605
+ fontSize: z.ZodString;
606
+ fontWeight: z.ZodString;
607
+ fontStyle: z.ZodEnum<{
608
+ default: "default";
609
+ normal: "normal";
610
+ italic: "italic";
611
+ }>;
612
+ textTransform: z.ZodEnum<{
613
+ [x: string]: string;
614
+ }>;
615
+ }, z.core.$strip>>;
616
+ link: z.ZodOptional<z.ZodObject<{
617
+ letterSpacing: z.ZodEnum<{
618
+ [x: string]: string;
619
+ }>;
620
+ includeCaret: z.ZodEnum<{
621
+ default: "default";
622
+ none: "none";
623
+ block: "block";
624
+ }>;
625
+ fontFamily: z.ZodString;
626
+ fontSize: z.ZodString;
627
+ fontWeight: z.ZodString;
628
+ fontStyle: z.ZodEnum<{
629
+ default: "default";
630
+ normal: "normal";
631
+ italic: "italic";
632
+ }>;
633
+ textTransform: z.ZodEnum<{
634
+ [x: string]: string;
635
+ }>;
636
+ }, z.core.$strip>>;
637
+ }, z.core.$strip>;
638
+ }, z.core.$strip>;
639
+ declare const hoursZodSchema: z.ZodObject<{
640
+ holidayHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
641
+ isClosed: z.ZodOptional<z.ZodBoolean>;
642
+ openIntervals: z.ZodOptional<z.ZodArray<z.ZodObject<{
643
+ start: z.ZodString;
644
+ end: z.ZodString;
645
+ }, z.core.$strip>>>;
646
+ date: z.ZodString;
647
+ isRegularHours: z.ZodOptional<z.ZodBoolean>;
648
+ }, z.core.$strip>>>;
649
+ reopenDate: z.ZodOptional<z.ZodString>;
650
+ }, z.core.$strip>;
651
+
652
+ declare const backgroundColorZodSchema: z.ZodUnion<[z.ZodObject<{
653
+ selectedColor: z.ZodString;
654
+ contrastingColor: z.ZodLiteral<"black">;
655
+ isDarkColor: z.ZodLiteral<false>;
656
+ }, z.core.$strip> | z.ZodObject<{
657
+ selectedColor: z.ZodString;
658
+ contrastingColor: z.ZodLiteral<"white">;
659
+ isDarkColor: z.ZodLiteral<true>;
660
+ }, z.core.$strip> | z.ZodObject<{
661
+ selectedColor: z.ZodString;
662
+ contrastingColor: z.ZodString;
663
+ isDarkColor: z.ZodBoolean;
664
+ }, z.core.$strip>, ...(z.ZodObject<{
665
+ selectedColor: z.ZodString;
666
+ contrastingColor: z.ZodLiteral<"black">;
667
+ isDarkColor: z.ZodLiteral<false>;
668
+ }, z.core.$strip> | z.ZodObject<{
669
+ selectedColor: z.ZodString;
670
+ contrastingColor: z.ZodLiteral<"white">;
671
+ isDarkColor: z.ZodLiteral<true>;
672
+ }, z.core.$strip> | z.ZodObject<{
673
+ selectedColor: z.ZodString;
674
+ contrastingColor: z.ZodString;
675
+ isDarkColor: z.ZodBoolean;
676
+ }, z.core.$strip>)[]]>;
677
+ declare const siteColorZodSchema: z.ZodUnion<[z.ZodObject<{
678
+ selectedColor: z.ZodString;
679
+ contrastingColor: z.ZodLiteral<"black">;
680
+ isDarkColor: z.ZodLiteral<false>;
681
+ }, z.core.$strip> | z.ZodObject<{
682
+ selectedColor: z.ZodString;
683
+ contrastingColor: z.ZodLiteral<"white">;
684
+ isDarkColor: z.ZodLiteral<true>;
685
+ }, z.core.$strip> | z.ZodObject<{
686
+ selectedColor: z.ZodString;
687
+ contrastingColor: z.ZodString;
688
+ isDarkColor: z.ZodBoolean;
689
+ }, z.core.$strip>, ...(z.ZodObject<{
690
+ selectedColor: z.ZodString;
691
+ contrastingColor: z.ZodLiteral<"black">;
692
+ isDarkColor: z.ZodLiteral<false>;
693
+ }, z.core.$strip> | z.ZodObject<{
694
+ selectedColor: z.ZodString;
695
+ contrastingColor: z.ZodLiteral<"white">;
696
+ isDarkColor: z.ZodLiteral<true>;
697
+ }, z.core.$strip> | z.ZodObject<{
698
+ selectedColor: z.ZodString;
699
+ contrastingColor: z.ZodString;
700
+ isDarkColor: z.ZodBoolean;
701
+ }, z.core.$strip>)[]]>;
702
+
703
+ export { CardContextProvider, ComponentErrorBoundary, LayoutGenerationMetadata as ComponentGenerationMetadata, Button as EditorButton, MapPinIcon, PresetImageType, SectionLibraryVisualEditorProvider, type SlotMappedCardWrapperType, StreamDocument, TARGET_ORIGINS, ThemeColor, ThemeOptions, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, VIEWPORT_BREAKPOINTS, YextFieldDefinition, assetImageZodSchema, backgroundColorZodSchema, comprehensiveCtaZodSchema, createPuckGenerationCatalog, ctaSelectorZodSchema, enhancedCtaZodSchema, entityFieldZodSchema, forwardHeadingLevel, gatherSlotStyles, getRandomPlaceholderImageObject, getThemeValue, getValueFromQueryString, getViewport, hoursZodSchema, imageZodSchema, inferFieldZodSchema, isDirectoryGrid, isVisualEditorTestEnv, linkTypeOptions, presetImageIcons, resolveCanonicalSelectorGroups, resolveDirectoryListChildren, resolveLocatorResultUrl, richTextZodSchema, siteColorZodSchema, sortAlphabetically, syncLinkedSlotMappedCards, syncParentStyles, translatableRichTextZodSchema, translatableStringZodSchema, useCardContext, useGetCardSlots, useParentCardStyles, usePreviewWindow, useReceiveMessage, useSendMessageToParent, useWindowWidth, widthZodSchema, withGenerationCatalog };