@yext/visual-editor 0.0.33 → 0.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,18 +1,19 @@
1
- import * as React from 'react';
2
- import React__default from 'react';
3
- import { Field, Config, CustomField, ComponentConfig } from '@measured/puck';
4
- import { ClassValue } from 'clsx';
1
+ import * as React$1 from 'react';
2
+ import React__default, { ReactNode } from 'react';
5
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
+ import * as _measured_puck from '@measured/puck';
5
+ import { Field, Fields, Config, CustomField, ArrayField, BaseField, NumberField, ObjectField, ComponentConfig } from '@measured/puck';
6
+ import { ClassValue } from 'clsx';
6
7
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
7
8
  import { VariantProps } from 'class-variance-authority';
8
9
  import * as react_jsx_runtime_js from 'react/jsx-runtime.js';
9
- import { LinkType, AddressType, ImageType, Coordinate, GetDirectionsConfig, HoursType, DayOfWeekNames } from '@yext/pages-components';
10
- import * as class_variance_authority_dist_types_js from 'class-variance-authority/dist/types.js';
10
+ import { LinkType, ImageType, ComplexImageType, AddressType, HoursType, DayOfWeekNames, Coordinate } from '@yext/pages-components';
11
11
 
12
12
  declare const usePlatformBridgeDocument: () => any;
13
13
 
14
14
  type YextSchemaField = {
15
15
  name: string;
16
+ displayName?: string;
16
17
  definition: YextFieldDefinition;
17
18
  children?: {
18
19
  fields: YextSchemaField[];
@@ -26,21 +27,132 @@ type YextFieldDefinition = {
26
27
  typeRegistryId?: string;
27
28
  type: Record<string, string>;
28
29
  };
30
+ type StreamFields = {
31
+ fields: YextSchemaField[];
32
+ displayNames?: Record<string, string>;
33
+ };
29
34
 
30
35
  /**
31
36
  * Under the hood we receive a Stream for a template, but we expose
32
37
  * hooks with a more user-friendly name.
33
38
  */
34
- declare const usePlatformBridgeEntityFields: () => YextSchemaField[] | null;
35
- declare const useEntityFields: () => YextSchemaField[] | null;
39
+ declare const usePlatformBridgeEntityFields: () => StreamFields | null;
40
+ declare const useEntityFields: () => StreamFields | null;
36
41
 
37
- declare const TemplatePropsContext: React.Context<any>;
42
+ declare const TemplatePropsContext: React$1.Context<any>;
38
43
  declare const useTemplateProps: <T>() => T;
39
44
  declare const useDocument: <T>() => T;
40
45
 
41
- declare const TailwindConfigContext: React.Context<any>;
46
+ declare const TailwindConfigContext: React$1.Context<any>;
42
47
  declare const useTailwindConfig: <T>() => T;
43
48
 
49
+ type BackgroundStyle = {
50
+ bgColor: string;
51
+ textColor: string;
52
+ };
53
+ type BackgroundOption = {
54
+ label: string;
55
+ value: BackgroundStyle;
56
+ };
57
+ declare const backgroundColors: Record<string, BackgroundOption>;
58
+ type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
59
+ declare const defaultThemeTailwindExtensions: {
60
+ colors: {
61
+ "palette-primary-light": string;
62
+ "palette-secondary-light": string;
63
+ "palette-tertiary-light": string;
64
+ "palette-quaternary-light": string;
65
+ "palette-primary-dark": string;
66
+ "palette-secondary-dark": string;
67
+ "palette-primary-contrast": string;
68
+ "palette-secondary-contrast": string;
69
+ "palette-tertiary-contrast": string;
70
+ "palette-quaternary-contrast": string;
71
+ gray: {
72
+ 100: string;
73
+ 200: string;
74
+ 300: string;
75
+ 400: string;
76
+ 500: string;
77
+ 600: string;
78
+ 800: string;
79
+ 900: string;
80
+ };
81
+ };
82
+ fontSize: {
83
+ "body-sm-fontSize": string;
84
+ "body-lg-fontSize": string;
85
+ "3xl": string;
86
+ "4xl": string;
87
+ };
88
+ };
89
+ declare const ThemeOptions: {
90
+ HEADING_LEVEL: {
91
+ label: string;
92
+ value: HeadingLevel;
93
+ }[];
94
+ TEXT_TRANSFORM: {
95
+ label: string;
96
+ value: string;
97
+ }[];
98
+ LETTER_SPACING: {
99
+ label: string;
100
+ value: string;
101
+ }[];
102
+ BACKGROUND_COLOR: {
103
+ label: string;
104
+ value: BackgroundStyle;
105
+ color: string;
106
+ }[];
107
+ DARK_BACKGROUND_COLOR: {
108
+ label: string;
109
+ value: BackgroundStyle;
110
+ color: string;
111
+ }[];
112
+ CTA_VARIANT: {
113
+ label: string;
114
+ value: string;
115
+ }[];
116
+ ALIGNMENT: {
117
+ label: string;
118
+ value: string;
119
+ }[];
120
+ JUSTIFY_CONTENT: {
121
+ label: string;
122
+ value: string;
123
+ }[];
124
+ BODY_VARIANT: {
125
+ label: string;
126
+ value: string;
127
+ }[];
128
+ BORDER_RADIUS: () => {
129
+ label: string;
130
+ value: string;
131
+ }[];
132
+ SPACING: () => {
133
+ label: string;
134
+ value: string;
135
+ }[];
136
+ FONT_SIZE: (includeLargeSizes?: boolean) => {
137
+ label: string;
138
+ value: string;
139
+ }[];
140
+ HOURS_OPTIONS: {
141
+ label: string;
142
+ value: string;
143
+ }[];
144
+ PHONE_OPTIONS: {
145
+ label: string;
146
+ value: string;
147
+ }[];
148
+ };
149
+
150
+ declare const useBackground: () => BackgroundStyle | undefined;
151
+ declare const BackgroundProvider: ({ children, value, }: {
152
+ children: ReactNode;
153
+ value: BackgroundStyle;
154
+ }) => react_jsx_runtime.JSX.Element;
155
+
44
156
  type CoreStyle = {
45
157
  label: string;
46
158
  type: "number";
@@ -120,8 +232,9 @@ type DisallowList<T extends Record<string, any>> = {
120
232
  disallowList: ConfigFields<T>[number][];
121
233
  };
122
234
  type EntityFieldTypesFilter = {
123
- types: EntityFieldTypes[];
235
+ types?: EntityFieldTypes[];
124
236
  includeListsOnly?: boolean;
237
+ directChildrenOf?: string;
125
238
  };
126
239
  type RenderEntityFieldFilter<T extends Record<string, any>> = EntityFieldTypesFilter & EitherOrNeither<AllowList<T>, DisallowList<T>>;
127
240
  type EntityFieldTypes = "type.string" | "type.image" | "type.hours" | "type.address" | "type.phone" | "type.coordinate" | "type.cta" | `c_${string}`;
@@ -131,16 +244,52 @@ type YextEntityField<T> = {
131
244
  constantValue: T;
132
245
  constantValueEnabled?: boolean;
133
246
  };
247
+ type YextCollection = {
248
+ items: YextEntityField<Array<any>>;
249
+ limit: string | number;
250
+ };
134
251
  type RenderYextEntityFieldSelectorProps<T extends Record<string, any>> = {
135
252
  label: string;
136
253
  filter: RenderEntityFieldFilter<T>;
254
+ isCollection?: boolean;
255
+ disableConstantValueToggle?: boolean;
137
256
  };
138
257
  /**
139
258
  * Allows the user to select an entity field from the document and set a constant value.
140
259
  */
141
260
  declare const YextEntityFieldSelector: <T extends Record<string, any>, U>(props: RenderYextEntityFieldSelectorProps<T>) => Field<YextEntityField<U>>;
261
+ /**
262
+ * Allows the user to select an entity subfield from the document and set a constant value.
263
+ */
264
+ declare const YextCollectionSubfieldSelector: <T extends Record<string, any>, U>(props: RenderYextEntityFieldSelectorProps<T>) => Field<YextEntityField<U>>;
142
265
 
143
266
  declare const resolveYextEntityField: <T>(document: any, entityField: YextEntityField<T>) => T | undefined;
267
+ declare const resolveYextSubfield: <T>(parent: any, field: YextEntityField<T> | undefined) => T | undefined;
268
+ /**
269
+ * handleResolveFieldsForCollections determines if lastFields
270
+ * should be returned, returns filters for YextCollectionSubfieldSelector,
271
+ * and resets prop data when isCollection changes.
272
+ * @param data the data object from Puck's resolveFields
273
+ * @param params the params object from Puck's resolveFields
274
+ */
275
+ declare const handleResolveFieldsForCollections: (data: {
276
+ props: Record<string, any>;
277
+ }, params: {
278
+ lastFields: Fields<any>;
279
+ parent: {
280
+ props: Record<string, any>;
281
+ } | null;
282
+ }) => {
283
+ /** No field updates need. Return params.lastFields */
284
+ shouldReturnLastFields: boolean;
285
+ /**
286
+ * Whether the component is currently in a CollectionSection
287
+ * with a field set. Use in YextCollectionSubfieldSelector.
288
+ */
289
+ isCollection: boolean;
290
+ /** The parent's field selected field if applicable. Use in YextCollectionSubfieldSelector. */
291
+ directChildrenFilter: string | undefined;
292
+ };
144
293
 
145
294
  declare const themeManagerTwMergeConfiguration: {
146
295
  extend: {
@@ -175,6 +324,8 @@ declare const themeManagerTwMergeConfiguration: {
175
324
  rounded: {
176
325
  rounded: ((value: string) => boolean)[];
177
326
  }[];
327
+ "text-transform": ((value: string) => boolean)[];
328
+ tracking: ((value: string) => boolean)[];
178
329
  };
179
330
  };
180
331
  };
@@ -203,7 +354,7 @@ type UniversalProps<T> = {
203
354
  children: React__default.ReactNode;
204
355
  };
205
356
  type EditorProps$1 = {
206
- entityFields: YextSchemaField[] | null;
357
+ entityFields: StreamFields | null;
207
358
  tailwindConfig: TailwindConfig;
208
359
  };
209
360
  type VisualEditorProviderProps<T> = UniversalProps<T> & AllOrNothing<EditorProps$1>;
@@ -225,19 +376,6 @@ declare const validateSlug: (content: string) => boolean;
225
376
  */
226
377
  declare const normalizeSlug: (content: string) => string;
227
378
 
228
- declare const getFontSizeOptions: (includeLargeSizes?: boolean) => {
229
- label: string;
230
- value: string;
231
- }[];
232
- declare const getBorderRadiusOptions: () => {
233
- label: string;
234
- value: string;
235
- }[];
236
- declare const getSpacingOptions: () => {
237
- label: string;
238
- value: string;
239
- }[];
240
-
241
379
  declare const applyAnalytics: (document: Record<string, any>) => string | undefined;
242
380
 
243
381
  type RootConfig = {
@@ -247,6 +385,15 @@ type RootConfig = {
247
385
  };
248
386
  declare function getPageMetadata(document: Record<string, any>): RootConfig;
249
387
 
388
+ declare const fetchNearbyLocations: ({ contentEndpoint, latitude, longitude, radiusMi, limit, entityType, }: {
389
+ contentEndpoint: string;
390
+ longitude: number;
391
+ latitude: number;
392
+ radiusMi: number;
393
+ limit: number;
394
+ entityType: string;
395
+ }) => Promise<Record<string, any>>;
396
+
250
397
  type EditorProps = {
251
398
  document: any;
252
399
  componentRegistry: Map<string, Config<any>>;
@@ -264,229 +411,443 @@ type EntityFieldProps = {
264
411
  };
265
412
  declare const EntityField: ({ displayName, fieldId, constantValueEnabled, children, }: EntityFieldProps) => string | number | boolean | Iterable<React__default.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
266
413
 
267
- type NumberOrDefault = number | "default";
268
- type NumberFieldWithDefaultOptionProps = {
269
- label: string;
414
+ type OptionalNumberFieldProps = {
415
+ fieldLabel: string;
416
+ hideNumberFieldRadioLabel: string;
417
+ showNumberFieldRadioLabel: string;
270
418
  defaultCustomValue: number;
271
419
  };
272
- declare const NumberFieldWithDefaultOption: ({ label, defaultCustomValue, }: NumberFieldWithDefaultOptionProps) => CustomField<NumberOrDefault>;
420
+ declare const OptionalNumberField: ({ fieldLabel, hideNumberFieldRadioLabel, showNumberFieldRadioLabel, defaultCustomValue, }: OptionalNumberFieldProps) => CustomField<number | string>;
273
421
 
274
422
  declare const FontSizeSelector: (label?: string, includeLargeSizes?: boolean) => Field;
275
423
 
276
424
  declare const BorderRadiusSelector: (label?: string) => Field;
277
425
 
278
- declare const SpacingSelector: (spacingType: "padding" | "gap", label?: string) => Field;
426
+ declare const SpacingSelector: (label: string, spacingType: "padding" | "gap", includeDefault: boolean) => Field;
279
427
 
280
- declare const BasicSelector: (label: string, options: {
428
+ type Option<T = any> = {
281
429
  label: string;
282
- value: any;
283
- }[]) => Field;
430
+ value: T;
431
+ color?: string;
432
+ };
433
+ declare const BasicSelector: (label: string, options: Option[]) => Field;
434
+
435
+ /** Copied from Puck, do not change */
436
+ type FieldOption = {
437
+ label: string;
438
+ value: string | number | boolean;
439
+ };
440
+ /** Copied from Puck, do not change */
441
+ type FieldOptions = Array<FieldOption> | ReadonlyArray<FieldOption>;
442
+ type radioOptions = "PHONE_OPTIONS" | "ALIGNMENT" | "BODY_VARIANT" | "JUSTIFY_CONTENT" | "CTA_VARIANT";
443
+ type selectOptions = keyof Omit<typeof ThemeOptions, radioOptions>;
444
+ type YextBaseField = {
445
+ type: string;
446
+ };
447
+ type YextArrayField<Props extends {
448
+ [key: string]: any;
449
+ } = {
450
+ [key: string]: any;
451
+ }> = YextBaseField & Omit<ArrayField<Props>, keyof BaseField>;
452
+ type YextNumberField = YextBaseField & Omit<NumberField, keyof BaseField>;
453
+ type YextObjectField<Props extends {
454
+ [key: string]: any;
455
+ } = {
456
+ [key: string]: any;
457
+ }> = YextBaseField & Omit<ObjectField<Props>, keyof BaseField>;
458
+ type YextRadioField = YextBaseField & {
459
+ type: "radio";
460
+ options: FieldOptions | radioOptions;
461
+ };
462
+ type YextSelectField = YextBaseField & {
463
+ type: "select";
464
+ hasSearch?: boolean;
465
+ options: FieldOptions | selectOptions;
466
+ };
467
+ type YextTextField = YextBaseField & {
468
+ type: "text";
469
+ isMultiline?: boolean;
470
+ };
471
+ type YextOptionalNumberField = YextBaseField & Omit<OptionalNumberFieldProps, "fieldLabel"> & {
472
+ type: "optionalNumber";
473
+ };
474
+ type YextEntitySelectorField<T extends Record<string, any> = Record<string, any>> = YextBaseField & Omit<RenderYextEntityFieldSelectorProps<T>, "label"> & {
475
+ type: "entityField";
476
+ };
477
+ type YextFieldConfig<Props = any> = YextArrayField<Props extends Record<string, any> ? Props : any> | YextObjectField<Props extends Record<string, any> ? Props : any> | YextNumberField | YextTextField | YextEntitySelectorField<Props extends Record<string, any> ? Props : any> | YextSelectField | YextRadioField | YextOptionalNumberField;
478
+ declare function YextField<T = any>(fieldName: string, config: YextFieldConfig<T>): Field<T>;
479
+ declare function YextField<T extends Record<string, any>, U = any>(fieldName: string, config: YextEntitySelectorField<T>): Field<YextEntityField<U>>;
284
480
 
285
481
  declare const bodyVariants: (props?: ({
286
- fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
287
- fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
288
- color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
289
- textTransform?: "none" | "uppercase" | "lowercase" | "capitalize" | null | undefined;
482
+ variant?: "sm" | "lg" | "base" | null | undefined;
290
483
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
291
- interface BodyProps extends Omit<React.HTMLAttributes<HTMLParagraphElement>, "color">, VariantProps<typeof bodyVariants> {
484
+ interface BodyProps extends Omit<React$1.HTMLAttributes<HTMLParagraphElement>, "color">, VariantProps<typeof bodyVariants> {
292
485
  }
293
- declare const Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttributes<HTMLParagraphElement>>;
486
+ declare const Body: React$1.ForwardRefExoticComponent<BodyProps & React$1.RefAttributes<HTMLParagraphElement>>;
294
487
 
295
488
  declare const buttonVariants: (props?: ({
296
- variant?: "link" | "primary" | null | undefined;
297
- size?: "small" | "icon" | "large" | null | undefined;
298
- fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
299
- borderRadius?: "default" | "none" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "md" | "full" | null | undefined;
489
+ variant?: "link" | "secondary" | "primary" | "directoryLink" | null | undefined;
490
+ hasDarkBackground?: boolean | null | undefined;
300
491
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
301
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
492
+ interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
302
493
  asChild?: boolean;
303
494
  }
304
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
495
+ declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
305
496
 
306
- interface CTAProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
307
- label?: string;
497
+ interface CTAProps {
498
+ label?: React$1.ReactNode;
308
499
  link?: string;
309
500
  linkType?: LinkType;
501
+ eventName?: string;
310
502
  variant?: ButtonProps["variant"];
311
- size?: ButtonProps["size"];
312
- borderRadius?: ButtonProps["borderRadius"];
313
- fontSize?: ButtonProps["fontSize"];
503
+ className?: string;
504
+ target?: "_self" | "_blank" | "_parent" | "_top";
505
+ alwaysHideCaret?: boolean;
506
+ ariaLabel?: string;
314
507
  }
315
508
  declare const CTA: {
316
- ({ label, link, linkType, variant, size, borderRadius, className, fontSize, }: CTAProps): react_jsx_runtime_js.JSX.Element;
509
+ ({ label, link, linkType, variant, eventName, className, target, alwaysHideCaret, ariaLabel, }: CTAProps): react_jsx_runtime_js.JSX.Element;
317
510
  displayName: string;
318
511
  };
319
512
 
320
513
  declare const headingVariants: (props?: ({
321
514
  level?: 2 | 1 | 3 | 4 | 5 | 6 | null | undefined;
322
- fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
515
+ fontSize?: "default" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "base" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
323
516
  weight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
324
- color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
325
517
  transform?: "none" | "uppercase" | "lowercase" | "capitalize" | null | undefined;
326
518
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
327
- type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
328
- interface HeadingProps extends Omit<React.HTMLAttributes<HTMLHeadingElement>, "color">, VariantProps<typeof headingVariants> {
329
- level?: HeadingLevel;
519
+ interface HeadingProps extends Omit<React$1.HTMLAttributes<HTMLHeadingElement>, "color">, VariantProps<typeof headingVariants> {
520
+ level: HeadingLevel;
521
+ semanticLevelOverride?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span";
330
522
  }
331
- declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
523
+ declare const Heading: React$1.ForwardRefExoticComponent<HeadingProps & React$1.RefAttributes<HTMLHeadingElement>>;
332
524
 
333
- declare const sectionVariants: (props?: ({
334
- padding?: "small" | "default" | "none" | "large" | null | undefined;
335
- maxWidth?: "default" | "xl" | "full" | null | undefined;
525
+ interface ImageProps {
526
+ image: ImageType | ComplexImageType;
527
+ layout: "auto" | "fixed";
528
+ aspectRatio?: number;
529
+ width?: number;
530
+ height?: number;
531
+ className?: string;
532
+ }
533
+ declare const Image: React$1.FC<ImageProps>;
534
+
535
+ type MaybeLinkProps = {
536
+ href?: string;
537
+ children?: React$1.ReactNode;
538
+ className?: string;
539
+ eventName?: string;
540
+ variant?: CTAProps["variant"];
541
+ alwaysHideCaret?: boolean;
542
+ };
543
+ declare const MaybeLink: (props: MaybeLinkProps) => react_jsx_runtime.JSX.Element;
544
+
545
+ declare const pageSectionVariants: (props?: ({
546
+ verticalPadding?: "default" | "sm" | "footer" | "header" | null | undefined;
336
547
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
337
- interface SectionProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof sectionVariants> {
548
+ interface PageSectionProps extends React$1.HTMLAttributes<HTMLDivElement> {
549
+ background?: BackgroundStyle;
550
+ verticalPadding?: VariantProps<typeof pageSectionVariants>["verticalPadding"];
551
+ as?: "div" | "section" | "nav" | "header" | "footer" | "main" | "aside";
552
+ outerClassName?: string;
338
553
  }
339
- declare const Section: React.ForwardRefExoticComponent<SectionProps & React.RefAttributes<HTMLDivElement>>;
554
+ declare const PageSection: React$1.ForwardRefExoticComponent<PageSectionProps & React$1.RefAttributes<HTMLDivElement>>;
340
555
 
341
- type AddressProps = {
342
- address: YextEntityField<AddressType>;
343
- alignment: "items-start" | "items-center";
344
- padding: VariantProps<typeof sectionVariants>["padding"];
345
- showGetDirections: boolean;
556
+ type PhoneAtomProps = {
557
+ phoneNumber: string;
558
+ label?: string;
559
+ backgroundColor?: BackgroundStyle;
560
+ format: "domestic" | "international" | undefined;
561
+ includeHyperlink: boolean;
562
+ includeIcon: boolean;
346
563
  };
347
- declare const AddressComponent: ComponentConfig<AddressProps>;
564
+ declare const PhoneAtom: (props: PhoneAtomProps) => react_jsx_runtime.JSX.Element;
565
+
566
+ interface BackgroundProps extends React$1.HTMLAttributes<HTMLDivElement> {
567
+ background?: BackgroundStyle;
568
+ as?: "div" | "section" | "nav" | "header" | "footer" | "main" | "aside";
569
+ }
570
+ declare const Background: React$1.ForwardRefExoticComponent<BackgroundProps & React$1.RefAttributes<HTMLDivElement>>;
571
+
572
+ interface VisibilityWrapperProps {
573
+ liveVisibility: boolean;
574
+ isEditing: boolean;
575
+ iconSize?: VariantProps<typeof wrapperVariants>["size"];
576
+ children: React$1.ReactNode;
577
+ }
578
+ declare const wrapperVariants: (props?: ({
579
+ size?: "md" | "lg" | null | undefined;
580
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
581
+ declare const VisibilityWrapper: React$1.FC<VisibilityWrapperProps>;
348
582
 
349
- type BannerProps = {
583
+ type BannerSectionProps = {
350
584
  text: YextEntityField<string>;
351
- textAlignment: "justify-end" | "justify-start" | "justify-center";
352
- fontSize: BodyProps["fontSize"];
353
- fontWeight?: BodyProps["fontWeight"];
354
- textColor: BodyProps["color"];
355
- backgroundColor: "bg-palette-primary" | "bg-palette-secondary" | "bg-palette-accent" | "bg-palette-text" | "bg-palette-background";
585
+ textAlignment: "left" | "right" | "center";
586
+ backgroundColor?: BackgroundStyle;
587
+ liveVisibility: boolean;
356
588
  };
357
- declare const Banner: ComponentConfig<BannerProps>;
589
+ declare const BannerSection: ComponentConfig<BannerSectionProps>;
358
590
 
359
- interface BodyTextProps extends BodyProps {
360
- text: YextEntityField<string>;
591
+ type BreadcrumbsSectionProps = {
592
+ separator?: string;
593
+ liveVisibility: boolean;
594
+ };
595
+ declare const BreadcrumbsSection: ComponentConfig<BreadcrumbsSectionProps>;
596
+
597
+ interface CoreInfoSectionProps {
598
+ styles: {
599
+ headingLevel: HeadingLevel;
600
+ backgroundColor?: BackgroundStyle;
601
+ };
602
+ address: {
603
+ headingText: YextEntityField<string>;
604
+ address: YextEntityField<AddressType>;
605
+ showGetDirectionsLink: boolean;
606
+ };
607
+ phoneNumbers: {
608
+ phoneNumber: Array<{
609
+ number: YextEntityField<string>;
610
+ label: string;
611
+ }>;
612
+ phoneFormat: "domestic" | "international";
613
+ includePhoneHyperlink: boolean;
614
+ };
615
+ emails: {
616
+ emails: YextEntityField<string[]>;
617
+ listLength: number;
618
+ };
619
+ hours: {
620
+ headingText: YextEntityField<string>;
621
+ hours: YextEntityField<HoursType>;
622
+ startOfWeek: keyof DayOfWeekNames | "today";
623
+ collapseDays: boolean;
624
+ showAdditionalHoursText: boolean;
625
+ };
626
+ services: {
627
+ headingText: YextEntityField<string>;
628
+ servicesList: YextEntityField<string[]>;
629
+ };
630
+ liveVisibility: boolean;
361
631
  }
362
- declare const BodyTextComponent: ComponentConfig<BodyTextProps>;
632
+ declare const CoreInfoSection: ComponentConfig<CoreInfoSectionProps>;
363
633
 
364
- declare const imageWrapperVariants: (props?: ({
365
- size?: "small" | "large" | "full" | "medium" | null | undefined;
366
- aspectRatio?: "video" | "auto" | "square" | "portrait" | null | undefined;
367
- rounded?: "small" | "none" | "large" | "full" | "medium" | null | undefined;
368
- } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
369
- interface ImageWrapperProps extends VariantProps<typeof imageWrapperVariants> {
370
- image: YextEntityField<ImageType>;
634
+ interface HeroSectionProps {
635
+ image: ImageWrapperProps;
636
+ businessName: {
637
+ entityField: YextEntityField<string>;
638
+ level: HeadingLevel;
639
+ };
640
+ localGeoModifier: {
641
+ entityField: YextEntityField<string>;
642
+ level: HeadingLevel;
643
+ };
644
+ hours: {
645
+ entityField: YextEntityField<HoursType>;
646
+ showHours: boolean;
647
+ };
648
+ primaryCta: {
649
+ entityField: YextEntityField<CTAProps>;
650
+ variant: CTAProps["variant"];
651
+ showCTA: boolean;
652
+ };
653
+ secondaryCta: {
654
+ entityField: YextEntityField<CTAProps>;
655
+ variant: CTAProps["variant"];
656
+ showCTA: boolean;
657
+ };
658
+ styles: {
659
+ backgroundColor?: BackgroundStyle;
660
+ imageOrientation: "left" | "right";
661
+ };
662
+ liveVisibility: boolean;
371
663
  }
372
- declare const ImageWrapperComponent: ComponentConfig<ImageWrapperProps>;
664
+ declare const HeroSection: ComponentConfig<HeroSectionProps>;
373
665
 
374
- interface CardProps {
375
- orientation: "left" | "right";
666
+ interface NearbyLocationsSectionProps {
667
+ styles: {
668
+ backgroundColor?: BackgroundStyle;
669
+ cardBackgroundColor?: BackgroundStyle;
670
+ };
376
671
  heading: {
377
- text: YextEntityField<string>;
378
- fontSize: HeadingProps["fontSize"];
379
- color: HeadingProps["color"];
380
- weight: HeadingProps["weight"];
381
- transform: HeadingProps["transform"];
382
672
  level: HeadingLevel;
383
- };
384
- subheading: {
385
673
  text: YextEntityField<string>;
386
- fontSize: HeadingProps["fontSize"];
387
- color: HeadingProps["color"];
388
- weight: HeadingProps["weight"];
389
- transform: HeadingProps["transform"];
390
- level: HeadingLevel;
391
674
  };
392
- body: {
675
+ cards: {
676
+ headingLevel: HeadingLevel;
677
+ phoneNumberFormat: "domestic" | "international";
678
+ phoneNumberLink: boolean;
679
+ hours: {
680
+ showCurrentStatus: boolean;
681
+ timeFormat?: "12h" | "24h";
682
+ dayOfWeekFormat?: "short" | "long";
683
+ showDayNames?: boolean;
684
+ };
685
+ };
686
+ coordinate: YextEntityField<Coordinate>;
687
+ radius: number;
688
+ limit: number;
689
+ liveVisibility: boolean;
690
+ }
691
+ declare const NearbyLocationsSection: ComponentConfig<NearbyLocationsSectionProps>;
692
+
693
+ interface PromoSectionProps {
694
+ image: ImageWrapperProps;
695
+ title: {
393
696
  text: YextEntityField<string>;
394
- fontSize: BodyProps["fontSize"];
395
- color: BodyProps["color"];
396
- weight: BodyProps["fontWeight"];
397
- transform: BodyProps["textTransform"];
697
+ level: HeadingProps["level"];
398
698
  };
399
- image: {
400
- image: YextEntityField<ImageType>;
401
- size: ImageWrapperProps["size"];
402
- aspectRatio: ImageWrapperProps["aspectRatio"];
403
- rounded: ImageWrapperProps["rounded"];
699
+ description: {
700
+ text: YextEntityField<string>;
701
+ variant: BodyProps["variant"];
404
702
  };
405
703
  cta: {
406
704
  entityField: YextEntityField<CTAProps>;
407
- linkType: CTAProps["linkType"];
408
705
  variant: CTAProps["variant"];
409
- fontSize: CTAProps["fontSize"];
706
+ visible: boolean;
410
707
  };
411
- backgroundColor: "bg-card-backgroundColor" | "bg-palette-primary" | "bg-palette-secondary" | "bg-palette-accent" | "bg-palette-text" | "bg-palette-background";
708
+ styles: {
709
+ backgroundColor?: BackgroundStyle;
710
+ orientation: "left" | "right";
711
+ };
712
+ liveVisibility: boolean;
412
713
  }
413
- declare const CardComponent: ComponentConfig<CardProps>;
714
+ declare const PromoSection: ComponentConfig<PromoSectionProps>;
414
715
 
415
- interface CTAWrapperProps {
416
- entityField: YextEntityField<CTAProps>;
417
- variant: CTAProps["variant"];
418
- size: CTAProps["size"];
419
- borderRadius: CTAProps["borderRadius"];
420
- fontSize: CTAProps["fontSize"];
421
- linkType: CTAProps["linkType"];
422
- className?: CTAProps["className"];
716
+ interface PhotoGallerySectionProps {
717
+ styles: {
718
+ backgroundColor?: BackgroundStyle;
719
+ };
720
+ sectionHeading: {
721
+ text: YextEntityField<string>;
722
+ level: HeadingLevel;
723
+ };
724
+ images: {
725
+ images: YextEntityField<ImageType[] | ComplexImageType[]>;
726
+ imageStyle: Omit<ImageWrapperProps, "image">;
727
+ };
728
+ liveVisibility: boolean;
423
729
  }
424
- declare const CTAWrapperComponent: ComponentConfig<CTAWrapperProps>;
730
+ declare const PhotoGallerySection: ComponentConfig<PhotoGallerySectionProps>;
425
731
 
426
- declare const emailsVariants: (props?: ({
427
- fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
428
- fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
429
- color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
430
- includeHyperlink?: boolean | null | undefined;
431
- } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
432
- interface EmailsProps extends VariantProps<typeof emailsVariants> {
433
- list: YextEntityField<string[]>;
434
- listLength: number;
732
+ interface FAQsSectionProps {
733
+ styles: {
734
+ backgroundColor?: BackgroundStyle;
735
+ };
736
+ sectionHeading: {
737
+ text: YextEntityField<string>;
738
+ level: HeadingProps["level"];
739
+ };
740
+ collection: FAQsCollection;
741
+ liveVisibility: boolean;
742
+ }
743
+ type FAQs = Array<{
744
+ question: string;
745
+ answer: string;
746
+ }>;
747
+ type FAQsCollection = YextCollection & {
748
+ subfields?: {
749
+ questionField: YextEntityField<string>;
750
+ answerField: YextEntityField<string>;
751
+ };
752
+ FAQs?: FAQs;
753
+ };
754
+ declare const FAQsSection: ComponentConfig<FAQsSectionProps>;
755
+
756
+ type SectionContainerProps = {
757
+ background?: BackgroundStyle;
758
+ sectionHeading: {
759
+ text: YextEntityField<string>;
760
+ level: HeadingProps["level"];
761
+ alignment: "left" | "right" | "center";
762
+ };
763
+ liveVisibility: boolean;
764
+ };
765
+ declare const SectionContainer: ComponentConfig<SectionContainerProps>;
766
+
767
+ interface CollectionProps {
768
+ collection: YextCollection;
769
+ shouldClearDropZone?: boolean;
770
+ layout?: "grid" | "flex";
771
+ direction?: "flex-row" | "flex-col";
772
+ liveVisibility: boolean;
435
773
  }
436
- declare const EmailsComponent: ComponentConfig<EmailsProps>;
774
+ declare const Collection: ComponentConfig<CollectionProps>;
437
775
 
438
776
  declare const layoutVariants: (props?: ({
439
- gap?: "0" | "1" | "2" | "3" | "4" | "default" | "none" | "5" | "6" | "7" | "8" | "12" | "16" | "24" | "14" | "20" | "0.5" | "1.5" | "2.5" | "10" | "3.5" | "9" | "11" | null | undefined;
440
- verticalPadding?: "0" | "1" | "2" | "3" | "4" | "default" | "none" | "5" | "6" | "7" | "8" | "12" | "16" | "24" | "14" | "20" | "0.5" | "1.5" | "2.5" | "10" | "3.5" | "9" | "11" | null | undefined;
441
- horizontalPadding?: "0" | "1" | "2" | "3" | "4" | "default" | "none" | "5" | "6" | "7" | "8" | "12" | "16" | "24" | "14" | "20" | "0.5" | "1.5" | "2.5" | "10" | "3.5" | "9" | "11" | null | undefined;
442
- backgroundColor?: "default" | "text" | "accent" | "none" | "inherit" | "secondary" | "primary" | "background" | null | undefined;
443
- } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
444
- declare const innerLayoutVariants: (props?: ({
445
- maxContentWidth?: "default" | "none" | "lg" | "xl" | "xxl" | null | undefined;
446
- } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
447
-
448
- interface FlexProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof layoutVariants>, VariantProps<typeof innerLayoutVariants> {
777
+ gap?: "0" | "1" | "2" | "3" | "4" | "none" | "6" | "8" | "12" | "16" | "24" | "14" | "20" | "0.5" | "1.5" | "2.5" | "10" | "3.5" | "5" | "7" | "9" | "11" | null | undefined;
778
+ verticalPadding?: "0" | "1" | "2" | "3" | "4" | "default" | "none" | "6" | "8" | "12" | "16" | "24" | "14" | "20" | "0.5" | "1.5" | "2.5" | "10" | "3.5" | "5" | "7" | "9" | "11" | null | undefined;
779
+ horizontalPadding?: "0" | "1" | "2" | "3" | "4" | "none" | "6" | "8" | "12" | "16" | "24" | "14" | "20" | "0.5" | "1.5" | "2.5" | "10" | "3.5" | "5" | "7" | "9" | "11" | null | undefined;
780
+ columnFormatting?: "default" | "none" | "forceHorizontal" | null | undefined;
781
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
782
+ interface layoutProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof layoutVariants> {
783
+ backgroundColor?: BackgroundStyle;
784
+ }
785
+
786
+ interface FlexProps extends layoutProps {
449
787
  justifyContent: "start" | "center" | "end";
450
- direction: "row" | "column";
788
+ alignItems: "start" | "center" | "end";
789
+ direction: "flex-row" | "flex-col";
451
790
  wrap: "wrap" | "nowrap";
791
+ liveVisibility: boolean;
452
792
  }
453
- declare const FlexContainerComponent: ComponentConfig<FlexProps>;
793
+ declare const Flex: ComponentConfig<FlexProps>;
454
794
 
455
- declare const footerVariants: (props?: ({
456
- backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
457
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
458
- type FooterProps = VariantProps<typeof footerVariants>;
459
- declare const Footer: ComponentConfig<FooterProps>;
795
+ interface GridProps extends layoutProps {
796
+ columns: number;
797
+ liveVisibility: boolean;
798
+ }
799
+ declare const Grid: ComponentConfig<GridProps>;
460
800
 
461
- type GetDirectionsProps = {
462
- coordinate: YextEntityField<Coordinate>;
463
- getDirectionsProvider: GetDirectionsConfig["provider"];
464
- variant: ButtonProps["variant"];
465
- size: ButtonProps["size"];
466
- borderRadius: ButtonProps["borderRadius"];
467
- fontSize: ButtonProps["fontSize"];
801
+ type ProductCardProps = {
802
+ card?: {
803
+ image?: ImageWrapperProps;
804
+ heading?: YextEntityField<string>;
805
+ category?: YextEntityField<string>;
806
+ description?: YextEntityField<string>;
807
+ cta?: YextEntityField<CTAProps>;
808
+ };
809
+ styles: {
810
+ cardBackgroundColor?: BackgroundStyle;
811
+ };
812
+ collection?: YextCollection;
813
+ };
814
+ declare const ProductCard: ComponentConfig<ProductCardProps>;
815
+
816
+ type AddressProps = {
817
+ address: YextEntityField<AddressType>;
818
+ showGetDirections: boolean;
468
819
  };
469
- declare const GetDirectionsComponent: ComponentConfig<GetDirectionsProps>;
820
+ declare const Address: ComponentConfig<AddressProps>;
470
821
 
471
- interface ColumnProps {
472
- justifyContent: "center" | "start" | "end" | "spaceBetween";
473
- span?: number;
822
+ interface BodyTextProps extends BodyProps {
823
+ text: YextEntityField<string>;
474
824
  }
475
- interface GridProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof layoutVariants>, VariantProps<typeof innerLayoutVariants> {
476
- columns: ColumnProps[];
825
+ declare const BodyText: ComponentConfig<BodyTextProps>;
826
+
827
+ interface CTAWrapperProps {
828
+ entityField: YextEntityField<CTAProps>;
829
+ variant: CTAProps["variant"];
830
+ className?: CTAProps["className"];
477
831
  }
478
- declare const GridSectionComponent: ComponentConfig<GridProps>;
832
+ declare const CTAWrapper: ComponentConfig<CTAWrapperProps>;
479
833
 
480
- declare const headerVariants: (props?: ({
481
- backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
482
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
483
- type HeaderProps = VariantProps<typeof headerVariants>;
484
- declare const Header: ComponentConfig<HeaderProps>;
834
+ interface EmailsProps {
835
+ list: YextEntityField<string[]>;
836
+ listLength: number;
837
+ includeHyperlink: boolean;
838
+ }
839
+ declare const Emails: ComponentConfig<EmailsProps>;
840
+
841
+ type GetDirectionsProps = {
842
+ coordinate: YextEntityField<Coordinate>;
843
+ variant: CTAProps["variant"];
844
+ };
845
+ declare const GetDirections: ComponentConfig<GetDirectionsProps>;
485
846
 
486
847
  interface HeadingTextProps extends HeadingProps {
487
848
  text: YextEntityField<string>;
488
849
  }
489
- declare const HeadingTextComponent: ComponentConfig<HeadingTextProps>;
850
+ declare const HeadingText: ComponentConfig<HeadingTextProps>;
490
851
 
491
852
  type HoursTableProps = {
492
853
  hours: YextEntityField<HoursType>;
@@ -494,9 +855,8 @@ type HoursTableProps = {
494
855
  collapseDays: boolean;
495
856
  showAdditionalHoursText: boolean;
496
857
  alignment: "items-start" | "items-center";
497
- padding: VariantProps<typeof sectionVariants>["padding"];
498
858
  };
499
- declare const HoursTableComponent: ComponentConfig<HoursTableProps>;
859
+ declare const HoursTable: ComponentConfig<HoursTableProps>;
500
860
 
501
861
  interface HoursStatusProps {
502
862
  hours: YextEntityField<HoursType>;
@@ -506,69 +866,204 @@ interface HoursStatusProps {
506
866
  dayOfWeekFormat?: "short" | "long";
507
867
  showDayNames?: boolean;
508
868
  }
509
- declare const HoursStatusComponent: ComponentConfig<HoursStatusProps>;
869
+ declare const HoursStatus: ComponentConfig<HoursStatusProps>;
870
+
871
+ interface ImageWrapperProps extends Omit<ImageProps, "image"> {
872
+ image: YextEntityField<ImageType | ComplexImageType>;
873
+ }
874
+ declare const ImageWrapper: ComponentConfig<ImageWrapperProps>;
510
875
 
511
- declare const phoneVariants: (props?: ({
512
- fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
513
- color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
514
- includeHyperlink?: boolean | null | undefined;
515
- } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
516
- interface PhoneProps extends VariantProps<typeof phoneVariants> {
876
+ type MapboxStaticProps = {
877
+ apiKey: string;
878
+ coordinate: YextEntityField<Coordinate>;
879
+ zoom?: number;
880
+ mapStyle?: string;
881
+ };
882
+ declare const MapboxStaticMapComponent: ComponentConfig<MapboxStaticProps>;
883
+
884
+ interface PhoneProps {
517
885
  phone: YextEntityField<string>;
518
886
  format?: "domestic" | "international";
519
- textSize?: number;
887
+ includeHyperlink: boolean;
520
888
  }
521
- declare const PhoneComponent: ComponentConfig<PhoneProps>;
889
+ declare const Phone: ComponentConfig<PhoneProps>;
522
890
 
523
- interface PromoProps {
524
- orientation: "left" | "right";
525
- title: {
526
- text: YextEntityField<string>;
527
- fontSize: HeadingProps["fontSize"];
528
- color: HeadingProps["color"];
529
- transform: HeadingProps["transform"];
530
- };
531
- description: {
532
- text: YextEntityField<string>;
533
- fontSize: HeadingProps["fontSize"];
534
- color: HeadingProps["color"];
535
- transform: HeadingProps["transform"];
891
+ interface TextListProps {
892
+ list: YextEntityField<string[]>;
893
+ }
894
+ declare const TextList: ComponentConfig<TextListProps>;
895
+
896
+ type HeaderProps = {
897
+ logoWidth?: number;
898
+ };
899
+ declare const Header: ComponentConfig<HeaderProps>;
900
+
901
+ type FooterProps = {
902
+ backgroundColor?: BackgroundStyle;
903
+ };
904
+ declare const Footer: ComponentConfig<FooterProps>;
905
+
906
+ interface DirectoryProps {
907
+ separator?: string;
908
+ }
909
+ declare const Directory: ComponentConfig<DirectoryProps>;
910
+
911
+ type EventCardProps = {
912
+ card?: {
913
+ title: YextEntityField<string>;
914
+ image: YextEntityField<ImageType>;
915
+ dateTime: YextEntityField<string>;
916
+ description: YextEntityField<string>;
917
+ cta: YextEntityField<CTAProps>;
536
918
  };
537
- image: {
919
+ collection?: YextCollection;
920
+ };
921
+ declare const EventCard: ComponentConfig<EventCardProps>;
922
+
923
+ type InsightCardProps = {
924
+ card?: {
538
925
  image: YextEntityField<ImageType>;
539
- size: ImageWrapperProps["size"];
540
- aspectRatio: ImageWrapperProps["aspectRatio"];
541
- rounded: ImageWrapperProps["rounded"];
926
+ title: YextEntityField<string>;
927
+ category: YextEntityField<string>;
928
+ date: YextEntityField<string>;
929
+ description: YextEntityField<string>;
930
+ cta: YextEntityField<CTAProps>;
542
931
  };
543
- cta: {
544
- entityField: YextEntityField<CTAProps>;
545
- variant: CTAProps["variant"];
546
- fontSize: CTAProps["fontSize"];
547
- linkType: CTAProps["linkType"];
932
+ collection?: YextCollection;
933
+ };
934
+ declare const InsightCard: ComponentConfig<InsightCardProps>;
935
+
936
+ interface PersonCardProps {
937
+ card?: {
938
+ headshot?: YextEntityField<ImageWrapperProps>;
939
+ name?: YextEntityField<string>;
940
+ title?: YextEntityField<string>;
941
+ phone?: YextEntityField<string>;
942
+ email?: YextEntityField<string>;
943
+ cta?: YextEntityField<CTAProps>;
548
944
  };
945
+ styles: {
946
+ cardBackgroundColor?: BackgroundStyle;
947
+ };
948
+ collection?: YextCollection;
549
949
  }
550
- declare const PromoComponent: ComponentConfig<PromoProps>;
950
+ declare const PersonCard: ComponentConfig<PersonCardProps>;
551
951
 
552
- declare const textListVariants: (props?: ({
553
- fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
554
- color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
555
- textTransform?: "none" | "uppercase" | "lowercase" | "capitalize" | null | undefined;
556
- padding?: "small" | "default" | "none" | "large" | null | undefined;
557
- } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
558
- interface TextListProps extends VariantProps<typeof textListVariants> {
559
- list: YextEntityField<string[]>;
560
- textSize?: number;
952
+ type TestimonialCardProps = {
953
+ card?: {
954
+ testimonial: YextEntityField<string>;
955
+ authorName: YextEntityField<string>;
956
+ date: YextEntityField<string>;
957
+ };
958
+ styles: {
959
+ cardBackgroundColor?: BackgroundStyle;
960
+ };
961
+ collection?: YextCollection;
962
+ };
963
+ declare const TestimonialCard: ComponentConfig<TestimonialCardProps>;
964
+
965
+ interface PageSectionCategoryProps {
966
+ BreadcrumbsSection: BreadcrumbsSectionProps;
967
+ HeroSection: HeroSectionProps;
968
+ CoreInfoSection: CoreInfoSectionProps;
969
+ NearbyLocationsSection: NearbyLocationsSectionProps;
970
+ BannerSection: BannerSectionProps;
971
+ PromoSection: PromoSectionProps;
972
+ PhotoGallerySection: PhotoGallerySectionProps;
973
+ FAQsSection: FAQsSectionProps;
974
+ SectionContainer: SectionContainerProps;
561
975
  }
562
- declare const TextListComponent: ComponentConfig<TextListProps>;
976
+ declare const PageSectionCategoryComponents: {
977
+ BreadcrumbsSection: _measured_puck.ComponentConfig<BreadcrumbsSectionProps>;
978
+ HeroSection: _measured_puck.ComponentConfig<HeroSectionProps>;
979
+ CoreInfoSection: _measured_puck.ComponentConfig<CoreInfoSectionProps>;
980
+ NearbyLocationsSection: _measured_puck.ComponentConfig<NearbyLocationsSectionProps>;
981
+ BannerSection: _measured_puck.ComponentConfig<BannerSectionProps>;
982
+ PromoSection: _measured_puck.ComponentConfig<PromoSectionProps>;
983
+ PhotoGallerySection: _measured_puck.ComponentConfig<PhotoGallerySectionProps>;
984
+ FAQsSection: _measured_puck.ComponentConfig<FAQsSectionProps>;
985
+ SectionContainer: _measured_puck.ComponentConfig<SectionContainerProps>;
986
+ };
987
+ declare const PageSectionCategory: (keyof PageSectionCategoryProps)[];
988
+ interface LayoutBlockCategoryProps {
989
+ Collection: CollectionProps;
990
+ Flex: FlexProps;
991
+ Grid: GridProps;
992
+ }
993
+ declare const LayoutBlockCategoryComponents: {
994
+ Collection: _measured_puck.ComponentConfig<CollectionProps>;
995
+ Flex: _measured_puck.ComponentConfig<FlexProps>;
996
+ Grid: _measured_puck.ComponentConfig<GridProps>;
997
+ };
998
+ declare const LayoutBlockCategory: (keyof LayoutBlockCategoryProps)[];
999
+ interface CardCategoryProps {
1000
+ EventCard: EventCardProps;
1001
+ InsightCard: InsightCardProps;
1002
+ PersonCard: PersonCardProps;
1003
+ ProductCard: ProductCardProps;
1004
+ TestimonialCard: TestimonialCardProps;
1005
+ }
1006
+ declare const CardCategoryComponents: {
1007
+ EventCard: _measured_puck.ComponentConfig<EventCardProps>;
1008
+ InsightCard: _measured_puck.ComponentConfig<InsightCardProps>;
1009
+ PersonCard: _measured_puck.ComponentConfig<PersonCardProps>;
1010
+ ProductCard: _measured_puck.ComponentConfig<ProductCardProps>;
1011
+ TestimonialCard: _measured_puck.ComponentConfig<TestimonialCardProps>;
1012
+ };
1013
+ declare const CardCategory: (keyof CardCategoryProps)[];
1014
+ interface ContentBlockCategoryProps {
1015
+ Address: AddressProps;
1016
+ BodyText: BodyTextProps;
1017
+ CTAWrapper: CTAWrapperProps;
1018
+ Emails: EmailsProps;
1019
+ GetDirections: GetDirectionsProps;
1020
+ HeadingText: HeadingTextProps;
1021
+ HoursTable: HoursTableProps;
1022
+ HoursStatus: HoursStatusProps;
1023
+ ImageWrapper: ImageWrapperProps;
1024
+ MapboxStaticMap: MapboxStaticProps;
1025
+ Phone: PhoneProps;
1026
+ TextList: TextListProps;
1027
+ }
1028
+ declare const ContentBlockCategoryComponents: {
1029
+ Address: _measured_puck.ComponentConfig<AddressProps>;
1030
+ BodyText: _measured_puck.ComponentConfig<BodyTextProps>;
1031
+ CTAWrapper: _measured_puck.ComponentConfig<CTAWrapperProps>;
1032
+ Emails: _measured_puck.ComponentConfig<EmailsProps>;
1033
+ GetDirections: _measured_puck.ComponentConfig<GetDirectionsProps>;
1034
+ HeadingText: _measured_puck.ComponentConfig<HeadingTextProps>;
1035
+ HoursStatus: _measured_puck.ComponentConfig<HoursStatusProps>;
1036
+ HoursTable: _measured_puck.ComponentConfig<HoursTableProps>;
1037
+ ImageWrapper: _measured_puck.ComponentConfig<ImageWrapperProps>;
1038
+ MapboxStaticMap: _measured_puck.ComponentConfig<MapboxStaticProps>;
1039
+ Phone: _measured_puck.ComponentConfig<PhoneProps>;
1040
+ TextList: _measured_puck.ComponentConfig<TextListProps>;
1041
+ };
1042
+ declare const ContentBlockCategory: (keyof ContentBlockCategoryProps)[];
1043
+ interface OtherCategoryProps {
1044
+ Header: HeaderProps;
1045
+ Footer: FooterProps;
1046
+ }
1047
+ declare const OtherCategoryComponents: {
1048
+ Header: _measured_puck.ComponentConfig<HeaderProps>;
1049
+ Footer: _measured_puck.ComponentConfig<FooterProps>;
1050
+ };
1051
+ declare const OtherCategory: (keyof OtherCategoryProps)[];
1052
+ interface DirectoryCategoryProps {
1053
+ Directory: DirectoryProps;
1054
+ }
1055
+ declare const DirectoryCategoryComponents: {
1056
+ Directory: _measured_puck.ComponentConfig<DirectoryProps>;
1057
+ };
1058
+ declare const DirectoryCategory: (keyof DirectoryCategoryProps)[];
563
1059
 
564
- type BreadcrumbsProps = {
565
- separator?: string;
1060
+ type ExampleRepeatableItemProps = {
1061
+ text?: YextEntityField<string>;
1062
+ image?: YextEntityField<ImageType>;
1063
+ collection?: YextCollection;
566
1064
  };
567
- declare const Breadcrumbs: ComponentConfig<BreadcrumbsProps>;
1065
+ declare const ExampleRepeatableItemComponent: ComponentConfig<ExampleRepeatableItemProps>;
568
1066
 
569
- interface DirectoryProps {
570
- separator?: string;
571
- }
572
- declare const Directory: ComponentConfig<DirectoryProps>;
1067
+ declare const defaultThemeConfig: ThemeConfig;
573
1068
 
574
- export { AddressComponent as Address, type AddressProps, Banner, type BannerProps, BasicSelector, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, BorderRadiusSelector, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapperComponent as CTAWrapper, type CTAWrapperProps, CardComponent as Card, type CardProps, Directory, type DirectoryProps, Editor, EmailsComponent as Emails, type EmailsProps, EntityField, FlexContainerComponent as Flex, type FlexProps, type FontRegistry, FontSizeSelector, Footer, type FooterProps, GetDirectionsComponent as GetDirections, type GetDirectionsProps, GridSectionComponent as Grid, type GridProps, Header, type HeaderProps, Heading, type HeadingProps, HeadingTextComponent as HeadingText, type HeadingTextProps, HoursStatusComponent as HoursStatus, type HoursStatusProps, HoursTableComponent as HoursTable, type HoursTableProps, ImageWrapperComponent as ImageWrapper, type ImageWrapperProps, NumberFieldWithDefaultOption, type NumberFieldWithDefaultOptionProps, type NumberOrDefault, PhoneComponent as Phone, type PhoneProps, PromoComponent as Promo, type PromoProps, type RenderYextEntityFieldSelectorProps, Section, type SectionProps, SpacingSelector, TailwindConfigContext, TemplatePropsContext, TextListComponent as TextList, type TextListProps, type ThemeConfig, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, type YextFieldDefinition, type YextSchemaField, applyAnalytics, applyTheme, bodyVariants, buttonVariants, constructFontSelectOptions, defaultFonts, getBorderRadiusOptions, getFontSizeOptions, getFontWeightOptions, getFontWeightOverrideOptions, getPageMetadata, getSpacingOptions, headingVariants, normalizeSlug, resolveYextEntityField, sectionVariants, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, useTemplateProps, validateSlug };
1069
+ export { Address, type AddressProps, Background, type BackgroundProps, BackgroundProvider, type BackgroundStyle, BannerSection, type BannerSectionProps, BasicSelector, Body, type BodyProps, BodyText, type BodyTextProps, BorderRadiusSelector, BreadcrumbsSection, type BreadcrumbsSectionProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapper, type CTAWrapperProps, CardCategory, CardCategoryComponents, type CardCategoryProps, Collection, type CollectionProps, ContentBlockCategory, ContentBlockCategoryComponents, type ContentBlockCategoryProps, CoreInfoSection, type CoreInfoSectionProps, Directory, DirectoryCategory, DirectoryCategoryComponents, type DirectoryCategoryProps, type DirectoryProps, Editor, Emails, type EmailsProps, EntityField, EventCard, type EventCardProps, ExampleRepeatableItemComponent, type ExampleRepeatableItemProps, FAQsSection, type FAQsSectionProps, Flex, type FlexProps, type FontRegistry, FontSizeSelector, Footer, type FooterProps, GetDirections, type GetDirectionsProps, Grid, type GridProps, Header, type HeaderProps, Heading, type HeadingLevel, type HeadingProps, HeadingText, type HeadingTextProps, HeroSection, type HeroSectionProps, HoursStatus, type HoursStatusProps, HoursTable, type HoursTableProps, Image, type ImageProps, ImageWrapper, type ImageWrapperProps, InsightCard, type InsightCardProps, LayoutBlockCategory, LayoutBlockCategoryComponents, type LayoutBlockCategoryProps, MapboxStaticMapComponent as MapboxStaticMap, type MapboxStaticProps, MaybeLink, type MaybeLinkProps, NearbyLocationsSection, type NearbyLocationsSectionProps, OptionalNumberField, type OptionalNumberFieldProps, OtherCategory, OtherCategoryComponents, type OtherCategoryProps, PageSection, PageSectionCategory, PageSectionCategoryComponents, type PageSectionCategoryProps, type PageSectionProps, PersonCard, type PersonCardProps, Phone, PhoneAtom, type PhoneAtomProps, type PhoneProps, PhotoGallerySection, type PhotoGallerySectionProps, ProductCard, type ProductCardProps, PromoSection, type PromoSectionProps, type RenderYextEntityFieldSelectorProps, SectionContainer, type SectionContainerProps, SpacingSelector, TailwindConfigContext, TemplatePropsContext, TestimonialCard, type TestimonialCardProps, TextList, type TextListProps, type ThemeConfig, ThemeOptions, VisibilityWrapper, VisualEditorProvider, type YextCollection, YextCollectionSubfieldSelector, type YextEntityField, YextEntityFieldSelector, YextField, type YextFieldDefinition, type YextSchemaField, applyAnalytics, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, fetchNearbyLocations, getFontWeightOptions, getFontWeightOverrideOptions, getPageMetadata, handleResolveFieldsForCollections, headingVariants, normalizeSlug, resolveYextEntityField, resolveYextSubfield, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, useTemplateProps, validateSlug };