@yext/visual-editor 0.0.49 → 0.0.51
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.cts +1116 -371
- package/dist/index.d.ts +1116 -371
- package/dist/plugin/{debugger-DoQ3QjB9-B45j_UnR.cjs → debugger-DoQ3QjB9-Cncfys0W.cjs} +1 -1
- package/dist/plugin/{debugger-DoQ3QjB9-FvvxaHPf.js → debugger-DoQ3QjB9-iY6U0f-f.js} +1 -1
- package/dist/plugin/{index-EoSmOG9n.js → index-1k2OyqFB.js} +84976 -77458
- package/dist/plugin/index-K8n-3GTZ.cjs +2678 -0
- package/dist/plugin/plugin.cjs +1 -1
- package/dist/plugin/plugin.js +1 -1
- package/dist/style.css +1 -1
- package/dist/visual-editor.cjs +92 -109
- package/dist/visual-editor.js +52511 -47175
- package/package.json +12 -8
- package/dist/plugin/index-CTWH2090.cjs +0 -2632
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import React__default, { ReactNode } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react_i18next from 'react-i18next';
|
|
5
5
|
import * as i18next from 'i18next';
|
|
6
6
|
import { TOptions } from 'i18next';
|
|
7
7
|
import * as _measured_puck from '@measured/puck';
|
|
8
|
-
import { Field, CustomField, Data, DefaultComponentProps, DefaultRootProps, Config, ComponentConfig, ArrayField, BaseField, ObjectField, NumberField } from '@measured/puck';
|
|
8
|
+
import { Field, CustomField, Data, DefaultComponentProps, DefaultRootProps, Config, ComponentConfig, ArrayField, BaseField, ObjectField, NumberField, Slot } from '@measured/puck';
|
|
9
9
|
import { AddressType, CTA as CTA$1, ImageType, LinkType, HoursTableProps as HoursTableProps$1, ComplexImageType, HoursType, DayOfWeekNames, Coordinate } from '@yext/pages-components';
|
|
10
10
|
import { ClassValue } from 'clsx';
|
|
11
11
|
import * as _yext_search_headless_react from '@yext/search-headless-react';
|
|
@@ -93,25 +93,26 @@ type TailwindConfig = {
|
|
|
93
93
|
*/
|
|
94
94
|
declare const themeResolver: (developerTheming: TailwindConfig, marketerTheming: ThemeConfig) => TailwindConfig;
|
|
95
95
|
|
|
96
|
-
type
|
|
96
|
+
type StreamDocument = {
|
|
97
97
|
[key: string]: any;
|
|
98
98
|
__?: {
|
|
99
99
|
layout?: string;
|
|
100
100
|
theme?: string;
|
|
101
101
|
codeTemplate?: string;
|
|
102
102
|
name?: string;
|
|
103
|
+
visualEditorConfig?: string;
|
|
103
104
|
};
|
|
104
105
|
};
|
|
105
|
-
declare const applyTheme: (document:
|
|
106
|
+
declare const applyTheme: (document: StreamDocument, themeConfig: ThemeConfig, base?: string) => string;
|
|
106
107
|
|
|
107
|
-
declare const TemplatePropsContext: React
|
|
108
|
+
declare const TemplatePropsContext: React.Context<any>;
|
|
108
109
|
declare const useTemplateProps: <T = {
|
|
109
110
|
document: Record<string, any>;
|
|
110
111
|
relativePrefixToRoot?: string;
|
|
111
112
|
}>() => T;
|
|
112
|
-
declare const useDocument: <T =
|
|
113
|
+
declare const useDocument: <T = StreamDocument>() => T;
|
|
113
114
|
|
|
114
|
-
declare const TailwindConfigContext: React
|
|
115
|
+
declare const TailwindConfigContext: React.Context<any>;
|
|
115
116
|
declare const useTailwindConfig: <T>() => T;
|
|
116
117
|
|
|
117
118
|
declare const i18nPlatformInstance: i18next.i18n;
|
|
@@ -240,6 +241,10 @@ declare const ThemeOptions: {
|
|
|
240
241
|
label: MsgString;
|
|
241
242
|
value: string;
|
|
242
243
|
}[];
|
|
244
|
+
MAX_WIDTH: {
|
|
245
|
+
label: MsgString;
|
|
246
|
+
value: string;
|
|
247
|
+
}[];
|
|
243
248
|
};
|
|
244
249
|
|
|
245
250
|
declare const useBackground: () => Required<BackgroundStyle> | undefined;
|
|
@@ -248,6 +253,16 @@ declare const BackgroundProvider: ({ children, value, }: {
|
|
|
248
253
|
value: Required<BackgroundStyle>;
|
|
249
254
|
}) => react_jsx_runtime.JSX.Element;
|
|
250
255
|
|
|
256
|
+
/**
|
|
257
|
+
* A hook that detects when a child element overflows its parent container.
|
|
258
|
+
* @param containerRef A React ref attached to the parent container element.
|
|
259
|
+
* @param contentRef A React ref attached to the child/content element to measure.
|
|
260
|
+
* @returns `true` if the child element is overflowing its parent.
|
|
261
|
+
*/
|
|
262
|
+
declare const useOverflow: (containerRef: React.RefObject<HTMLElement>, contentRef: React.RefObject<HTMLElement>) => boolean;
|
|
263
|
+
|
|
264
|
+
declare const i18nComponentsInstance: i18next.i18n;
|
|
265
|
+
|
|
251
266
|
type Only<T, U> = {
|
|
252
267
|
[P in keyof T]: T[P];
|
|
253
268
|
} & {
|
|
@@ -311,22 +326,21 @@ type StructSelectorProps = {
|
|
|
311
326
|
};
|
|
312
327
|
declare const YextStructFieldSelector: <U extends Record<string, any>>(props: StructSelectorProps) => CustomField<YextStructEntityField<U>>;
|
|
313
328
|
|
|
314
|
-
declare const resolveYextEntityField: <T>(
|
|
315
|
-
declare const resolveYextStructField: <T extends Record<string, any>>(
|
|
329
|
+
declare const resolveYextEntityField: <T>(streamDocument: any, entityField: YextEntityField<T>, locale?: string) => T | undefined;
|
|
330
|
+
declare const resolveYextStructField: <T extends Record<string, any>>(streamDocument: any, entityField: YextStructEntityField<T>, locale?: string) => T | undefined;
|
|
316
331
|
|
|
317
332
|
/**
|
|
318
|
-
*
|
|
319
|
-
*
|
|
320
|
-
*
|
|
321
|
-
* @param
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
* Converts a type TranslatableRichText to string or RTF Element
|
|
326
|
-
* @param translatableRichText
|
|
327
|
-
* @param locale
|
|
333
|
+
* The primary function for resolving all component data. It handles entity
|
|
334
|
+
* fields, constant values, embedded fields, and translatable types.
|
|
335
|
+
*
|
|
336
|
+
* @param data The field configuration object from component props OR a direct translatable value.
|
|
337
|
+
* @param locale The current language locale (e.g., "en").
|
|
338
|
+
* @param streamDocument The entity document. If not provided, embedded fields will not be resolved.
|
|
339
|
+
* @returns The fully resolved data for the component.
|
|
328
340
|
*/
|
|
329
|
-
declare
|
|
341
|
+
declare function resolveComponentData(data: TranslatableString | YextEntityField<TranslatableString>, locale: string, streamDocument?: any): string;
|
|
342
|
+
declare function resolveComponentData(data: TranslatableRichText | YextEntityField<TranslatableRichText>, locale: string, streamDocument?: any): string | React__default.ReactElement;
|
|
343
|
+
declare function resolveComponentData<T>(data: YextEntityField<T>, locale: string, streamDocument?: any): T | undefined;
|
|
330
344
|
|
|
331
345
|
declare const themeManagerTwMergeConfiguration: {
|
|
332
346
|
extend: {
|
|
@@ -492,7 +506,11 @@ type MigrationAction = {
|
|
|
492
506
|
newName: string;
|
|
493
507
|
} | {
|
|
494
508
|
action: "updated";
|
|
495
|
-
propTransformation: (oldProps:
|
|
509
|
+
propTransformation: (oldProps: {
|
|
510
|
+
id: string;
|
|
511
|
+
} & Record<string, any>) => {
|
|
512
|
+
id: string;
|
|
513
|
+
} & Record<string, any>;
|
|
496
514
|
};
|
|
497
515
|
type Migration = Record<string, MigrationAction>;
|
|
498
516
|
type MigrationRegistry = Migration[];
|
|
@@ -501,12 +519,10 @@ interface RootProps extends DefaultRootProps {
|
|
|
501
519
|
version?: number;
|
|
502
520
|
};
|
|
503
521
|
}
|
|
504
|
-
declare const migrate: (data: Data<DefaultComponentProps, RootProps>, migrationRegistry
|
|
522
|
+
declare const migrate: (data: Data<DefaultComponentProps, RootProps>, migrationRegistry: MigrationRegistry | undefined, config: Config) => Data;
|
|
505
523
|
|
|
506
524
|
declare function withPropOverrides<P extends DefaultComponentProps>(base: ComponentConfig<P>, overrides: Partial<P>): ComponentConfig<P>;
|
|
507
525
|
|
|
508
|
-
declare const i18nComponentsInstance: i18next.i18n;
|
|
509
|
-
|
|
510
526
|
interface LocationDocument extends Record<string, any> {
|
|
511
527
|
slug?: string;
|
|
512
528
|
id: string;
|
|
@@ -514,6 +530,15 @@ interface LocationDocument extends Record<string, any> {
|
|
|
514
530
|
}
|
|
515
531
|
declare const getLocationPath: (location: LocationDocument, locale: string, relativePrefixToRoot: string | undefined) => string | undefined;
|
|
516
532
|
|
|
533
|
+
/**
|
|
534
|
+
* Filters out gated layout components from a configuration object unless explicitly allowed.
|
|
535
|
+
*
|
|
536
|
+
* @param config - The original configuration object.
|
|
537
|
+
* @param additionalLayoutComponents - An optional list of gated component names to retain.
|
|
538
|
+
* @returns A new configuration object with all gated components removed, except for those listed in `additionalLayoutComponents`.
|
|
539
|
+
*/
|
|
540
|
+
declare const filterComponentsFromConfig: <T extends DefaultComponentProps>(config: Config<T>, additionalLayoutComponents?: string[]) => Config<T>;
|
|
541
|
+
|
|
517
542
|
type TranslatableCTA = Omit<CTA$1, "label"> & {
|
|
518
543
|
label: TranslatableString;
|
|
519
544
|
};
|
|
@@ -697,7 +722,7 @@ declare const FontSizeSelector: (label?: string, includeLargeSizes?: boolean) =>
|
|
|
697
722
|
declare const SpacingSelector: (label: string, spacingType: "padding" | "gap", includeDefault: boolean) => Field;
|
|
698
723
|
|
|
699
724
|
type BasicSelectorProps = {
|
|
700
|
-
label
|
|
725
|
+
label?: string;
|
|
701
726
|
translateOptions?: boolean;
|
|
702
727
|
noOptionsPlaceholder?: string;
|
|
703
728
|
noOptionsMessage?: string;
|
|
@@ -723,6 +748,7 @@ type radioOptions = "PHONE_OPTIONS" | "ALIGNMENT" | "BODY_VARIANT" | "JUSTIFY_CO
|
|
|
723
748
|
type selectOptions = keyof Omit<typeof ThemeOptions, radioOptions>;
|
|
724
749
|
type YextBaseField = {
|
|
725
750
|
type: string;
|
|
751
|
+
visible?: boolean;
|
|
726
752
|
};
|
|
727
753
|
type YextArrayField<Props extends {
|
|
728
754
|
[key: string]: any;
|
|
@@ -752,10 +778,16 @@ type YextTextField = YextBaseField & {
|
|
|
752
778
|
type YextOptionalNumberField = YextBaseField & Omit<OptionalNumberFieldProps, "fieldLabel"> & {
|
|
753
779
|
type: "optionalNumber";
|
|
754
780
|
};
|
|
781
|
+
type YextCodeField = YextBaseField & Omit<CodeFieldProps, "fieldLabel"> & {
|
|
782
|
+
type: "code";
|
|
783
|
+
};
|
|
784
|
+
type YextMaxWidthField = YextBaseField & {
|
|
785
|
+
type: "maxWidth";
|
|
786
|
+
};
|
|
755
787
|
type YextEntitySelectorField<T extends Record<string, any> = Record<string, any>> = YextBaseField & Omit<RenderYextEntityFieldSelectorProps<T>, "label"> & {
|
|
756
788
|
type: "entityField";
|
|
757
789
|
};
|
|
758
|
-
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;
|
|
790
|
+
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 | YextCodeField | YextMaxWidthField;
|
|
759
791
|
declare function YextField<T = any>(fieldName: string, config: YextFieldConfig<T>): Field<T>;
|
|
760
792
|
declare function YextField<T extends Record<string, any>, U = any>(fieldName: string, config: YextEntitySelectorField<T>): Field<YextEntityField<U>>;
|
|
761
793
|
|
|
@@ -785,24 +817,51 @@ declare const EmbeddedFieldStringInput: <T extends Record<string, any>>({ value,
|
|
|
785
817
|
filter: RenderEntityFieldFilter<T>;
|
|
786
818
|
}) => react_jsx_runtime.JSX.Element;
|
|
787
819
|
|
|
820
|
+
type codeLanguageOptions = "html" | "css" | "json" | "shell" | "java" | "javascript" | "jsx" | "markdown" | "typescript";
|
|
821
|
+
type CodeFieldProps = {
|
|
822
|
+
fieldLabel: string;
|
|
823
|
+
codeLanguage: codeLanguageOptions;
|
|
824
|
+
};
|
|
825
|
+
declare const CodeField: ({ fieldLabel, codeLanguage, }: CodeFieldProps) => CustomField<number | string>;
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* getMaxWidthOptions returns a list of options including the theme max width,
|
|
829
|
+
* any widths greater than the theme value, or full width.
|
|
830
|
+
*/
|
|
831
|
+
declare const getMaxWidthOptions: () => {
|
|
832
|
+
label: MsgString;
|
|
833
|
+
value: string;
|
|
834
|
+
}[];
|
|
835
|
+
/**
|
|
836
|
+
* filterMaxWidths extracts the theme max width and filters ThemeOptions.MAX_WIDTH
|
|
837
|
+
* to options greater than the theme value
|
|
838
|
+
* @param styleElement the "visual-editor-theme" style tag
|
|
839
|
+
* @returns the current theme value in the form "1000px" and the ThemeOptions.MAX_WIDTH
|
|
840
|
+
* that are greater than that value
|
|
841
|
+
*/
|
|
842
|
+
declare const filterMaxWidths: (styleElement: HTMLStyleElement) => {
|
|
843
|
+
themeValue: string | undefined;
|
|
844
|
+
options: typeof ThemeOptions.MAX_WIDTH;
|
|
845
|
+
};
|
|
846
|
+
|
|
788
847
|
declare const bodyVariants: (props?: ({
|
|
789
848
|
variant?: "sm" | "lg" | "base" | "xs" | null | undefined;
|
|
790
849
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
791
|
-
interface BodyProps extends Omit<React
|
|
850
|
+
interface BodyProps extends Omit<React.HTMLAttributes<HTMLParagraphElement>, "color">, VariantProps<typeof bodyVariants> {
|
|
792
851
|
}
|
|
793
|
-
declare const Body: React
|
|
852
|
+
declare const Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
794
853
|
|
|
795
854
|
declare const buttonVariants: (props?: ({
|
|
796
855
|
variant?: "link" | "secondary" | "primary" | "directoryLink" | "headerFooterMainLink" | "headerFooterSecondaryLink" | null | undefined;
|
|
797
856
|
hasDarkBackground?: boolean | null | undefined;
|
|
798
857
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
799
|
-
interface ButtonProps extends React
|
|
858
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
800
859
|
asChild?: boolean;
|
|
801
860
|
}
|
|
802
|
-
declare const Button: React
|
|
861
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
803
862
|
|
|
804
863
|
interface CTAProps {
|
|
805
|
-
label?: React
|
|
864
|
+
label?: React.ReactNode;
|
|
806
865
|
link?: string;
|
|
807
866
|
linkType?: LinkType;
|
|
808
867
|
eventName?: string;
|
|
@@ -823,11 +882,11 @@ declare const headingVariants: (props?: ({
|
|
|
823
882
|
weight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
|
|
824
883
|
transform?: "none" | "uppercase" | "lowercase" | "capitalize" | null | undefined;
|
|
825
884
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
826
|
-
interface HeadingProps extends Omit<React
|
|
885
|
+
interface HeadingProps extends Omit<React.HTMLAttributes<HTMLHeadingElement>, "color">, VariantProps<typeof headingVariants> {
|
|
827
886
|
level: HeadingLevel;
|
|
828
887
|
semanticLevelOverride?: HeadingLevel | "span";
|
|
829
888
|
}
|
|
830
|
-
declare const Heading: React
|
|
889
|
+
declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
831
890
|
|
|
832
891
|
interface HoursTableAtomProps extends Omit<HoursTableProps$1, "dayOfWeekNames" | "intervalStringsBuilderFn" | "intervalTranslations"> {
|
|
833
892
|
className?: string;
|
|
@@ -840,11 +899,11 @@ interface ImageProps {
|
|
|
840
899
|
width?: number;
|
|
841
900
|
className?: string;
|
|
842
901
|
}
|
|
843
|
-
declare const Image: React
|
|
902
|
+
declare const Image: React.FC<ImageProps>;
|
|
844
903
|
|
|
845
904
|
type MaybeLinkProps = {
|
|
846
905
|
href?: string;
|
|
847
|
-
children?: React
|
|
906
|
+
children?: React.ReactNode;
|
|
848
907
|
className?: string;
|
|
849
908
|
eventName?: string;
|
|
850
909
|
variant?: CTAProps["variant"];
|
|
@@ -861,13 +920,16 @@ declare const MaybeRTF: ({ data, bodyVariant, ...props }: MaybeRTFProps) => reac
|
|
|
861
920
|
declare const pageSectionVariants: (props?: ({
|
|
862
921
|
verticalPadding?: "default" | "sm" | "footer" | "header" | "footerSecondary" | null | undefined;
|
|
863
922
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
864
|
-
|
|
923
|
+
declare const maxWidthVariants: (props?: ({
|
|
924
|
+
maxWidth?: "theme" | "768px" | "960px" | "1024px" | "1280px" | "1440px" | "fullWidth" | null | undefined;
|
|
925
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
926
|
+
interface PageSectionProps extends VariantProps<typeof maxWidthVariants>, React.HTMLAttributes<HTMLDivElement> {
|
|
865
927
|
background?: BackgroundStyle;
|
|
866
928
|
verticalPadding?: VariantProps<typeof pageSectionVariants>["verticalPadding"];
|
|
867
929
|
as?: "div" | "section" | "nav" | "header" | "footer" | "main" | "aside";
|
|
868
930
|
outerClassName?: string;
|
|
869
931
|
}
|
|
870
|
-
declare const PageSection: React
|
|
932
|
+
declare const PageSection: React.ForwardRefExoticComponent<PageSectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
871
933
|
|
|
872
934
|
type PhoneAtomProps = {
|
|
873
935
|
phoneNumber: string;
|
|
@@ -880,22 +942,22 @@ type PhoneAtomProps = {
|
|
|
880
942
|
};
|
|
881
943
|
declare const PhoneAtom: (props: PhoneAtomProps) => react_jsx_runtime.JSX.Element;
|
|
882
944
|
|
|
883
|
-
interface BackgroundProps extends React
|
|
945
|
+
interface BackgroundProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
884
946
|
background?: BackgroundStyle;
|
|
885
947
|
as?: "div" | "section" | "nav" | "header" | "footer" | "main" | "aside";
|
|
886
948
|
}
|
|
887
|
-
declare const Background: React
|
|
949
|
+
declare const Background: React.ForwardRefExoticComponent<BackgroundProps & React.RefAttributes<HTMLDivElement>>;
|
|
888
950
|
|
|
889
951
|
interface VisibilityWrapperProps {
|
|
890
952
|
liveVisibility: boolean;
|
|
891
953
|
isEditing: boolean;
|
|
892
954
|
iconSize?: VariantProps<typeof wrapperVariants>["size"];
|
|
893
|
-
children: React
|
|
955
|
+
children: React.ReactNode;
|
|
894
956
|
}
|
|
895
957
|
declare const wrapperVariants: (props?: ({
|
|
896
958
|
size?: "lg" | "md" | null | undefined;
|
|
897
959
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
898
|
-
declare const VisibilityWrapper: React
|
|
960
|
+
declare const VisibilityWrapper: React.FC<VisibilityWrapperProps>;
|
|
899
961
|
|
|
900
962
|
interface HoursStatusAtomProps {
|
|
901
963
|
hours: HoursType;
|
|
@@ -926,7 +988,7 @@ type TimestampProps = {
|
|
|
926
988
|
};
|
|
927
989
|
declare function Timestamp({ date, option, endDate, timeZone, hideTimeZone, locale, dateFormatOverride, dateTimeFormatOverride, }: TimestampProps): JSX.Element;
|
|
928
990
|
|
|
929
|
-
declare function Toggle({ className, ...props }: React
|
|
991
|
+
declare function Toggle({ className, ...props }: React.ComponentProps<typeof TogglePrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
930
992
|
|
|
931
993
|
type AggregateRating = {
|
|
932
994
|
averageRating: number;
|
|
@@ -944,100 +1006,229 @@ declare const ReviewStars: (props: ReviewStarsProps) => react_jsx_runtime.JSX.El
|
|
|
944
1006
|
*/
|
|
945
1007
|
declare function getAggregateRating(document: any): AggregateRating;
|
|
946
1008
|
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
1009
|
+
interface BannerData {
|
|
1010
|
+
/**
|
|
1011
|
+
* The rich text to display. It can be linked to a Yext entity field or set as a constant value.
|
|
1012
|
+
* @defaultValue "Banner Text" (constant)
|
|
1013
|
+
*/
|
|
1014
|
+
text: YextEntityField<TranslatableRichText>;
|
|
1015
|
+
}
|
|
1016
|
+
interface BannerStyles {
|
|
1017
|
+
/**
|
|
1018
|
+
* The background color of the section.
|
|
1019
|
+
* @defaultValue Background Color 6
|
|
1020
|
+
*/
|
|
1021
|
+
backgroundColor?: BackgroundStyle;
|
|
1022
|
+
/**
|
|
1023
|
+
* The horizontal alignment of the text.
|
|
1024
|
+
* @defaultValue center
|
|
1025
|
+
*/
|
|
1026
|
+
textAlignment: "left" | "right" | "center";
|
|
1027
|
+
}
|
|
1028
|
+
interface BannerSectionProps {
|
|
1029
|
+
/**
|
|
1030
|
+
* This object contains the content to be displayed by the component.
|
|
1031
|
+
* @propCategory Data Props
|
|
1032
|
+
*/
|
|
1033
|
+
data: BannerData;
|
|
1034
|
+
/**
|
|
1035
|
+
* This object contains properties for customizing the component's appearance.
|
|
1036
|
+
* @propCategory Style Props
|
|
1037
|
+
*/
|
|
1038
|
+
styles: BannerStyles;
|
|
1039
|
+
/**
|
|
1040
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1041
|
+
* @defaultValue true
|
|
1042
|
+
*/
|
|
955
1043
|
liveVisibility: boolean;
|
|
956
|
-
|
|
1044
|
+
/**
|
|
1045
|
+
* Indicates which props should not be checked for missing translations.
|
|
1046
|
+
* @internal
|
|
1047
|
+
*/
|
|
1048
|
+
ignoreLocaleWarning?: string[];
|
|
1049
|
+
}
|
|
1050
|
+
/**
|
|
1051
|
+
* The Banner Section component displays a single, translatable line of rich text. It's designed to be used as a simple, full-width banner on a page.
|
|
1052
|
+
* Available on Location templates.
|
|
1053
|
+
*/
|
|
957
1054
|
declare const BannerSection: ComponentConfig<BannerSectionProps>;
|
|
958
1055
|
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
1056
|
+
interface BreadcrumbsData {
|
|
1057
|
+
/**
|
|
1058
|
+
* The display label for the first link in the breadcrumb trail (the top-level directory page).
|
|
1059
|
+
* @defaultValue "Directory Root"
|
|
1060
|
+
*/
|
|
1061
|
+
directoryRoot: TranslatableString;
|
|
1062
|
+
}
|
|
1063
|
+
interface BreadcrumbsStyles {
|
|
1064
|
+
/**
|
|
1065
|
+
* The background color of the section.
|
|
1066
|
+
* @defaultValue Background Color 1
|
|
1067
|
+
*/
|
|
1068
|
+
backgroundColor?: BackgroundStyle;
|
|
1069
|
+
}
|
|
1070
|
+
/**
|
|
1071
|
+
* @public Defines the complete set of properties for the BreadcrumbsSection component.
|
|
1072
|
+
*/
|
|
1073
|
+
interface BreadcrumbsSectionProps {
|
|
1074
|
+
/**
|
|
1075
|
+
* This object contains the content used by the component.
|
|
1076
|
+
* @propCategory Data Props
|
|
1077
|
+
*/
|
|
1078
|
+
data: BreadcrumbsData;
|
|
1079
|
+
/**
|
|
1080
|
+
* This object contains properties for customizing the component's appearance.
|
|
1081
|
+
* @propCategory Style Props
|
|
1082
|
+
*/
|
|
1083
|
+
styles: BreadcrumbsStyles;
|
|
1084
|
+
/**
|
|
1085
|
+
* @internal
|
|
1086
|
+
*/
|
|
1087
|
+
analytics: {
|
|
967
1088
|
scope?: string;
|
|
968
1089
|
};
|
|
1090
|
+
/**
|
|
1091
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1092
|
+
* @defaultValue true
|
|
1093
|
+
*/
|
|
969
1094
|
liveVisibility: boolean;
|
|
970
|
-
}
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
* The Breadcrumbs component automatically generates and displays a navigational hierarchy based on a page's position within a Yext directory structure. It renders a list of links showing the path from the main directory root to the current page, helping users understand their location on the site.
|
|
1098
|
+
* Available on Location templates.
|
|
1099
|
+
*/
|
|
971
1100
|
declare const BreadcrumbsSection: ComponentConfig<BreadcrumbsSectionProps>;
|
|
972
1101
|
|
|
973
|
-
interface
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
services: {
|
|
989
|
-
headingText: YextEntityField<TranslatableString>;
|
|
990
|
-
servicesList: YextEntityField<TranslatableString[]>;
|
|
991
|
-
};
|
|
1102
|
+
interface CoreInfoData {
|
|
1103
|
+
/** Content for the "Information" column. */
|
|
1104
|
+
info: {
|
|
1105
|
+
headingText: YextEntityField<TranslatableString>;
|
|
1106
|
+
address: YextEntityField<AddressType>;
|
|
1107
|
+
phoneNumbers: Array<{
|
|
1108
|
+
number: YextEntityField<string>;
|
|
1109
|
+
label: TranslatableString;
|
|
1110
|
+
}>;
|
|
1111
|
+
emails: YextEntityField<string[]>;
|
|
1112
|
+
};
|
|
1113
|
+
/** Content for the "Hours" column. */
|
|
1114
|
+
hours: {
|
|
1115
|
+
headingText: YextEntityField<TranslatableString>;
|
|
1116
|
+
hours: YextEntityField<HoursType>;
|
|
992
1117
|
};
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
};
|
|
998
|
-
backgroundColor?: BackgroundStyle;
|
|
999
|
-
info: {
|
|
1000
|
-
showGetDirectionsLink: boolean;
|
|
1001
|
-
phoneFormat: "domestic" | "international";
|
|
1002
|
-
includePhoneHyperlink: boolean;
|
|
1003
|
-
emailsListLength?: number;
|
|
1004
|
-
ctaVariant: CTAProps["variant"];
|
|
1005
|
-
};
|
|
1006
|
-
hours: {
|
|
1007
|
-
startOfWeek: keyof DayOfWeekNames | "today";
|
|
1008
|
-
collapseDays: boolean;
|
|
1009
|
-
showAdditionalHoursText: boolean;
|
|
1010
|
-
};
|
|
1118
|
+
/** Content for the "Services" column. */
|
|
1119
|
+
services: {
|
|
1120
|
+
headingText: YextEntityField<TranslatableString>;
|
|
1121
|
+
servicesList: YextEntityField<TranslatableString[]>;
|
|
1011
1122
|
};
|
|
1012
|
-
|
|
1123
|
+
}
|
|
1124
|
+
interface CoreInfoStyles {
|
|
1125
|
+
/**
|
|
1126
|
+
* The background color of the section.
|
|
1127
|
+
* @defaultValue `Background Color 1`
|
|
1128
|
+
*/
|
|
1129
|
+
backgroundColor?: BackgroundStyle;
|
|
1130
|
+
/** Styling for all column headings. */
|
|
1131
|
+
heading: {
|
|
1132
|
+
level: HeadingLevel;
|
|
1133
|
+
align: "left" | "center" | "right";
|
|
1134
|
+
};
|
|
1135
|
+
/** Styling for the "Information" column. */
|
|
1136
|
+
info: {
|
|
1137
|
+
showGetDirectionsLink: boolean;
|
|
1138
|
+
phoneFormat: "domestic" | "international";
|
|
1139
|
+
includePhoneHyperlink: boolean;
|
|
1140
|
+
emailsListLength?: number;
|
|
1141
|
+
ctaVariant: CTAProps["variant"];
|
|
1142
|
+
};
|
|
1143
|
+
/** Styling for the "Hours" column. */
|
|
1144
|
+
hours: {
|
|
1145
|
+
startOfWeek: keyof DayOfWeekNames | "today";
|
|
1146
|
+
collapseDays: boolean;
|
|
1147
|
+
showAdditionalHoursText: boolean;
|
|
1148
|
+
};
|
|
1149
|
+
}
|
|
1150
|
+
interface CoreInfoSectionProps {
|
|
1151
|
+
/**
|
|
1152
|
+
* This object contains all the content to be displayed within the three columns.
|
|
1153
|
+
* @propCategory Data Props
|
|
1154
|
+
*/
|
|
1155
|
+
data: CoreInfoData;
|
|
1156
|
+
/**
|
|
1157
|
+
* This object contains properties for customizing the component's appearance.
|
|
1158
|
+
* @propCategory Style Props
|
|
1159
|
+
*/
|
|
1160
|
+
styles: CoreInfoStyles;
|
|
1161
|
+
/** @internal */
|
|
1162
|
+
analytics: {
|
|
1013
1163
|
scope?: string;
|
|
1014
1164
|
};
|
|
1165
|
+
/**
|
|
1166
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1167
|
+
* @defaultValue true
|
|
1168
|
+
*/
|
|
1015
1169
|
liveVisibility: boolean;
|
|
1016
1170
|
}
|
|
1171
|
+
/**
|
|
1172
|
+
* The Core Info Section is a comprehensive component designed to display essential business information in a clear, multi-column layout. It typically includes contact details (address, phone, email), hours of operation, and a list of services, with extensive options for customization.
|
|
1173
|
+
* Available on Location templates.
|
|
1174
|
+
*/
|
|
1017
1175
|
declare const CoreInfoSection: ComponentConfig<CoreInfoSectionProps>;
|
|
1018
1176
|
|
|
1019
|
-
interface
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1177
|
+
interface EventData {
|
|
1178
|
+
/**
|
|
1179
|
+
* The main heading for the entire events section.
|
|
1180
|
+
* @defaultValue "Upcoming Events" (constant)
|
|
1181
|
+
*/
|
|
1182
|
+
heading: YextEntityField<TranslatableString>;
|
|
1183
|
+
/**
|
|
1184
|
+
* The source of event data, which can be linked to a Yext field or provided as a constant value.
|
|
1185
|
+
* @defaultValue A list of 3 placeholder events.
|
|
1186
|
+
*/
|
|
1187
|
+
events: YextEntityField<EventSectionType>;
|
|
1188
|
+
}
|
|
1189
|
+
interface EventStyles {
|
|
1190
|
+
/**
|
|
1191
|
+
* The background color of the section.
|
|
1192
|
+
* @defaultValue Background Color 3
|
|
1193
|
+
*/
|
|
1194
|
+
backgroundColor?: BackgroundStyle;
|
|
1195
|
+
/** Styling for the heading. */
|
|
1196
|
+
heading: {
|
|
1197
|
+
level: HeadingLevel;
|
|
1198
|
+
align: "left" | "center" | "right";
|
|
1199
|
+
};
|
|
1200
|
+
/** Styling for all the cards. */
|
|
1201
|
+
cards: {
|
|
1202
|
+
headingLevel: HeadingLevel;
|
|
1025
1203
|
backgroundColor?: BackgroundStyle;
|
|
1026
|
-
|
|
1027
|
-
level: HeadingLevel;
|
|
1028
|
-
align: "left" | "center" | "right";
|
|
1029
|
-
};
|
|
1030
|
-
cards: {
|
|
1031
|
-
headingLevel: HeadingLevel;
|
|
1032
|
-
backgroundColor?: BackgroundStyle;
|
|
1033
|
-
ctaVariant: CTAProps["variant"];
|
|
1034
|
-
};
|
|
1204
|
+
ctaVariant: CTAProps["variant"];
|
|
1035
1205
|
};
|
|
1036
|
-
|
|
1206
|
+
}
|
|
1207
|
+
interface EventSectionProps {
|
|
1208
|
+
/**
|
|
1209
|
+
* This object contains the content to be displayed by the component.
|
|
1210
|
+
* @propCategory Data Props
|
|
1211
|
+
*/
|
|
1212
|
+
data: EventData;
|
|
1213
|
+
/**
|
|
1214
|
+
* This object contains properties for customizing the component's appearance.
|
|
1215
|
+
* @propCategory Style Props
|
|
1216
|
+
*/
|
|
1217
|
+
styles: EventStyles;
|
|
1218
|
+
/** @internal */
|
|
1219
|
+
analytics: {
|
|
1037
1220
|
scope?: string;
|
|
1038
1221
|
};
|
|
1222
|
+
/**
|
|
1223
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1224
|
+
* @defaultValue true
|
|
1225
|
+
*/
|
|
1039
1226
|
liveVisibility: boolean;
|
|
1040
1227
|
}
|
|
1228
|
+
/**
|
|
1229
|
+
* The Events Section component is designed to display a curated list of events. It features a prominent section heading and renders each event as an individual card, making it ideal for showcasing upcoming activities, workshops, or promotions.
|
|
1230
|
+
* Available on Location templates.
|
|
1231
|
+
*/
|
|
1041
1232
|
declare const EventSection: ComponentConfig<EventSectionProps>;
|
|
1042
1233
|
|
|
1043
1234
|
interface ImageStylingProps {
|
|
@@ -1045,219 +1236,566 @@ interface ImageStylingProps {
|
|
|
1045
1236
|
width?: number;
|
|
1046
1237
|
}
|
|
1047
1238
|
|
|
1239
|
+
interface HeroData {
|
|
1240
|
+
/**
|
|
1241
|
+
* The primary business name displayed in the hero.
|
|
1242
|
+
* @defaultValue "Business Name" (constant)
|
|
1243
|
+
*/
|
|
1244
|
+
businessName: YextEntityField<TranslatableString>;
|
|
1245
|
+
/**
|
|
1246
|
+
* A location-based modifier or slogan (e.g., "Serving Downtown").
|
|
1247
|
+
* @defaultValue "Geomodifier" (constant)
|
|
1248
|
+
*/
|
|
1249
|
+
localGeoModifier: YextEntityField<TranslatableString>;
|
|
1250
|
+
/**
|
|
1251
|
+
* The entity's hours data, used to display an "Open/Closed" status.
|
|
1252
|
+
* @defaultValue 'hours' field
|
|
1253
|
+
*/
|
|
1254
|
+
hours: YextEntityField<HoursType>;
|
|
1255
|
+
/**
|
|
1256
|
+
* The main hero content, including an image and primary/secondary call-to-action buttons.
|
|
1257
|
+
* @defaultValue Placeholder image and CTAs
|
|
1258
|
+
*/
|
|
1259
|
+
hero: YextStructEntityField<HeroSectionType>;
|
|
1260
|
+
/**
|
|
1261
|
+
* If 'true', displays the entity's average review rating.
|
|
1262
|
+
* @defaultValue true
|
|
1263
|
+
*/
|
|
1264
|
+
showAverageReview: boolean;
|
|
1265
|
+
}
|
|
1266
|
+
interface HeroStyles {
|
|
1267
|
+
/**
|
|
1268
|
+
* The background color for the entire section.
|
|
1269
|
+
* @defaultValue Background Color 1
|
|
1270
|
+
*/
|
|
1271
|
+
backgroundColor?: BackgroundStyle;
|
|
1272
|
+
/**
|
|
1273
|
+
* Positions the image to the left or right of the text content.
|
|
1274
|
+
* @defaultValue right
|
|
1275
|
+
*/
|
|
1276
|
+
imageOrientation: "left" | "right";
|
|
1277
|
+
/**
|
|
1278
|
+
* The HTML heading level for the business name.
|
|
1279
|
+
* @defaultValue 3
|
|
1280
|
+
*/
|
|
1281
|
+
businessNameLevel: HeadingLevel;
|
|
1282
|
+
/**
|
|
1283
|
+
* The HTML heading level for the local geo-modifier.
|
|
1284
|
+
* @defaultValue 1
|
|
1285
|
+
*/
|
|
1286
|
+
localGeoModifierLevel: HeadingLevel;
|
|
1287
|
+
/**
|
|
1288
|
+
* The visual style variant for the primary call-to-action button.
|
|
1289
|
+
* @defaultValue primary
|
|
1290
|
+
*/
|
|
1291
|
+
primaryCTA: CTAProps["variant"];
|
|
1292
|
+
/**
|
|
1293
|
+
* The visual style variant for the secondary call-to-action button.
|
|
1294
|
+
* @defaultValue secondary
|
|
1295
|
+
*/
|
|
1296
|
+
secondaryCTA: CTAProps["variant"];
|
|
1297
|
+
/**
|
|
1298
|
+
* Styling options for the hero image, such as aspect ratio.
|
|
1299
|
+
*/
|
|
1300
|
+
image: ImageStylingProps;
|
|
1301
|
+
}
|
|
1048
1302
|
interface HeroSectionProps {
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
primaryCTA: CTAProps["variant"];
|
|
1062
|
-
secondaryCTA: CTAProps["variant"];
|
|
1063
|
-
image: ImageStylingProps;
|
|
1064
|
-
};
|
|
1065
|
-
analytics?: {
|
|
1303
|
+
/**
|
|
1304
|
+
* This object contains the content to be displayed by the component.
|
|
1305
|
+
* @propCategory Data Props
|
|
1306
|
+
*/
|
|
1307
|
+
data: HeroData;
|
|
1308
|
+
/**
|
|
1309
|
+
* This object contains properties for customizing the component's appearance.
|
|
1310
|
+
* @propCategory Style Props
|
|
1311
|
+
*/
|
|
1312
|
+
styles: HeroStyles;
|
|
1313
|
+
/** @internal */
|
|
1314
|
+
analytics: {
|
|
1066
1315
|
scope?: string;
|
|
1067
1316
|
};
|
|
1317
|
+
/**
|
|
1318
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1319
|
+
* @defaultValue true
|
|
1320
|
+
*/
|
|
1068
1321
|
liveVisibility?: boolean;
|
|
1069
1322
|
}
|
|
1070
1323
|
declare const HeroSection: ComponentConfig<HeroSectionProps>;
|
|
1071
1324
|
|
|
1072
|
-
interface
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1325
|
+
interface InsightData {
|
|
1326
|
+
/**
|
|
1327
|
+
* The main heading for the entire insights section.
|
|
1328
|
+
* @defaultValue "Insights"
|
|
1329
|
+
*/
|
|
1330
|
+
heading: YextEntityField<TranslatableString>;
|
|
1331
|
+
/**
|
|
1332
|
+
* The source of the insight data, which can be linked to a Yext field or provided as a constant.
|
|
1333
|
+
* @defaultValue A list of 3 placeholder insights.
|
|
1334
|
+
*/
|
|
1335
|
+
insights: YextEntityField<InsightSectionType>;
|
|
1336
|
+
}
|
|
1337
|
+
interface InsightStyles {
|
|
1338
|
+
/**
|
|
1339
|
+
* The background color for the entire section, selected from the theme.
|
|
1340
|
+
* @defaultValue Background Color 2
|
|
1341
|
+
*/
|
|
1342
|
+
backgroundColor?: BackgroundStyle;
|
|
1343
|
+
/** Styling for the main section heading. */
|
|
1344
|
+
heading: {
|
|
1345
|
+
level: HeadingLevel;
|
|
1346
|
+
align: "left" | "center" | "right";
|
|
1347
|
+
};
|
|
1348
|
+
/** Styling for the individual insight cards. */
|
|
1349
|
+
cards: {
|
|
1350
|
+
headingLevel: HeadingLevel;
|
|
1078
1351
|
backgroundColor?: BackgroundStyle;
|
|
1079
|
-
|
|
1080
|
-
level: HeadingLevel;
|
|
1081
|
-
align: "left" | "center" | "right";
|
|
1082
|
-
};
|
|
1083
|
-
cards: {
|
|
1084
|
-
headingLevel: HeadingLevel;
|
|
1085
|
-
backgroundColor?: BackgroundStyle;
|
|
1086
|
-
ctaVariant: CTAProps["variant"];
|
|
1087
|
-
};
|
|
1352
|
+
ctaVariant: CTAProps["variant"];
|
|
1088
1353
|
};
|
|
1089
|
-
|
|
1354
|
+
}
|
|
1355
|
+
interface InsightSectionProps {
|
|
1356
|
+
/**
|
|
1357
|
+
* This object contains the content to be displayed by the component.
|
|
1358
|
+
* @propCategory Data Props
|
|
1359
|
+
*/
|
|
1360
|
+
data: InsightData;
|
|
1361
|
+
/**
|
|
1362
|
+
* This object contains properties for customizing the component's appearance.
|
|
1363
|
+
* @propCategory Style Props
|
|
1364
|
+
*/
|
|
1365
|
+
styles: InsightStyles;
|
|
1366
|
+
/** @internal */
|
|
1367
|
+
analytics: {
|
|
1090
1368
|
scope?: string;
|
|
1091
1369
|
};
|
|
1370
|
+
/**
|
|
1371
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1372
|
+
* @defaultValue true
|
|
1373
|
+
*/
|
|
1092
1374
|
liveVisibility: boolean;
|
|
1093
1375
|
}
|
|
1376
|
+
/**
|
|
1377
|
+
* The Insight Section is used to display a curated list of content such as articles, blog posts, or other informational blurbs. It features a main section heading and renders each insight as a distinct card, making it an effective way to showcase valuable content.
|
|
1378
|
+
* Available on Location templates.
|
|
1379
|
+
*/
|
|
1094
1380
|
declare const InsightSection: ComponentConfig<InsightSectionProps>;
|
|
1095
1381
|
|
|
1096
|
-
interface
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1382
|
+
interface NearbyLocationsData {
|
|
1383
|
+
/**
|
|
1384
|
+
* The main heading for the entire section.
|
|
1385
|
+
* @defaultValue "Nearby Locations" (constant)
|
|
1386
|
+
*/
|
|
1387
|
+
heading: YextEntityField<TranslatableString>;
|
|
1388
|
+
/**
|
|
1389
|
+
* The central coordinate (`latitude`, `longitude`) to search from.
|
|
1390
|
+
* @defaultValue 'yextDisplayCoordinate' field
|
|
1391
|
+
*/
|
|
1392
|
+
coordinate: YextEntityField<Coordinate>;
|
|
1393
|
+
/**
|
|
1394
|
+
* The search radius in miles.
|
|
1395
|
+
* @defaultValue 10
|
|
1396
|
+
*/
|
|
1397
|
+
radius: number;
|
|
1398
|
+
/**
|
|
1399
|
+
* The maximum number of locations to find and display.
|
|
1400
|
+
* @defaultValue 3
|
|
1401
|
+
*/
|
|
1402
|
+
limit: number;
|
|
1403
|
+
}
|
|
1404
|
+
interface NearbyLocationsStyles {
|
|
1405
|
+
/**
|
|
1406
|
+
* The background color for the entire section.
|
|
1407
|
+
* @defaultValue Background Color 1
|
|
1408
|
+
*/
|
|
1409
|
+
backgroundColor?: BackgroundStyle;
|
|
1410
|
+
/** Styling for the main section heading. */
|
|
1411
|
+
heading: {
|
|
1412
|
+
level: HeadingLevel;
|
|
1413
|
+
align: "left" | "center" | "right";
|
|
1414
|
+
};
|
|
1415
|
+
/** Styling for the individual location cards. */
|
|
1416
|
+
cards: {
|
|
1417
|
+
headingLevel: HeadingLevel;
|
|
1104
1418
|
backgroundColor?: BackgroundStyle;
|
|
1105
|
-
heading: {
|
|
1106
|
-
level: HeadingLevel;
|
|
1107
|
-
align: "left" | "center" | "right";
|
|
1108
|
-
};
|
|
1109
|
-
cards: {
|
|
1110
|
-
headingLevel: HeadingLevel;
|
|
1111
|
-
backgroundColor?: BackgroundStyle;
|
|
1112
|
-
};
|
|
1113
|
-
phoneNumberFormat: "domestic" | "international";
|
|
1114
|
-
phoneNumberLink: boolean;
|
|
1115
|
-
hours: {
|
|
1116
|
-
showCurrentStatus: boolean;
|
|
1117
|
-
timeFormat?: "12h" | "24h";
|
|
1118
|
-
dayOfWeekFormat?: "short" | "long";
|
|
1119
|
-
showDayNames?: boolean;
|
|
1120
|
-
};
|
|
1121
1419
|
};
|
|
1122
|
-
|
|
1420
|
+
/**
|
|
1421
|
+
* The display format for phone numbers on the cards.
|
|
1422
|
+
* @defaultValue 'domestic'
|
|
1423
|
+
*/
|
|
1424
|
+
phoneNumberFormat: "domestic" | "international";
|
|
1425
|
+
/**
|
|
1426
|
+
* If `true`, wraps phone numbers in a clickable `tel:` hyperlink.
|
|
1427
|
+
* @defaultValue false
|
|
1428
|
+
*/
|
|
1429
|
+
phoneNumberLink: boolean;
|
|
1430
|
+
/** Styling for the hours display on each card. */
|
|
1431
|
+
hours: {
|
|
1432
|
+
showCurrentStatus: boolean;
|
|
1433
|
+
timeFormat?: "12h" | "24h";
|
|
1434
|
+
dayOfWeekFormat?: "short" | "long";
|
|
1435
|
+
showDayNames?: boolean;
|
|
1436
|
+
};
|
|
1437
|
+
}
|
|
1438
|
+
interface NearbyLocationsSectionProps {
|
|
1439
|
+
/**
|
|
1440
|
+
* This object defines the search parameters for finding nearby locations.
|
|
1441
|
+
* @propCategory Data Props
|
|
1442
|
+
*/
|
|
1443
|
+
data: NearbyLocationsData;
|
|
1444
|
+
/**
|
|
1445
|
+
* This object contains extensive properties for customizing the component's appearance.
|
|
1446
|
+
* @propCategory Style Props
|
|
1447
|
+
*/
|
|
1448
|
+
styles: NearbyLocationsStyles;
|
|
1449
|
+
/** @internal */
|
|
1450
|
+
analytics: {
|
|
1123
1451
|
scope?: string;
|
|
1124
1452
|
};
|
|
1453
|
+
/**
|
|
1454
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1455
|
+
* @defaultValue true
|
|
1456
|
+
*/
|
|
1125
1457
|
liveVisibility: boolean;
|
|
1458
|
+
/** @internal */
|
|
1126
1459
|
contentEndpointIdEnvVar?: string;
|
|
1127
1460
|
}
|
|
1461
|
+
/**
|
|
1462
|
+
* The Nearby Locations Section dynamically finds and displays a list of business locations within a specified radius of a central point. It's a powerful tool for helping users discover other relevant locations, rendering each result as a detailed card with contact information and business hours.
|
|
1463
|
+
* Available on Location templates.
|
|
1464
|
+
*/
|
|
1128
1465
|
declare const NearbyLocationsSection: ComponentConfig<NearbyLocationsSectionProps>;
|
|
1129
1466
|
|
|
1130
|
-
interface
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1467
|
+
interface ProductData {
|
|
1468
|
+
/**
|
|
1469
|
+
* The main heading for the entire products section.
|
|
1470
|
+
* @defaultValue "Featured Products" (constant)
|
|
1471
|
+
*/
|
|
1472
|
+
heading: YextEntityField<TranslatableString>;
|
|
1473
|
+
/**
|
|
1474
|
+
* The source of the product data, which can be linked to a Yext field or provided as a constant.
|
|
1475
|
+
* @defaultValue A list of 3 placeholder products.
|
|
1476
|
+
*/
|
|
1477
|
+
products: YextEntityField<ProductSectionType>;
|
|
1478
|
+
}
|
|
1479
|
+
interface ProductStyles {
|
|
1480
|
+
/**
|
|
1481
|
+
* The background color for the entire section.
|
|
1482
|
+
* @defaultValue Background Color 2
|
|
1483
|
+
*/
|
|
1484
|
+
backgroundColor?: BackgroundStyle;
|
|
1485
|
+
/** Styling for the main section heading. */
|
|
1486
|
+
heading: {
|
|
1487
|
+
level: HeadingLevel;
|
|
1488
|
+
align: "left" | "center" | "right";
|
|
1489
|
+
};
|
|
1490
|
+
/** Styling for the individual product cards. */
|
|
1491
|
+
cards: {
|
|
1492
|
+
headingLevel: HeadingLevel;
|
|
1136
1493
|
backgroundColor?: BackgroundStyle;
|
|
1137
|
-
|
|
1138
|
-
level: HeadingLevel;
|
|
1139
|
-
align: "left" | "center" | "right";
|
|
1140
|
-
};
|
|
1141
|
-
cards: {
|
|
1142
|
-
headingLevel: HeadingLevel;
|
|
1143
|
-
backgroundColor?: BackgroundStyle;
|
|
1144
|
-
ctaVariant: CTAProps["variant"];
|
|
1145
|
-
};
|
|
1494
|
+
ctaVariant: CTAProps["variant"];
|
|
1146
1495
|
};
|
|
1147
|
-
|
|
1496
|
+
}
|
|
1497
|
+
interface ProductSectionProps {
|
|
1498
|
+
/**
|
|
1499
|
+
* This object contains the content to be displayed by the component.
|
|
1500
|
+
* @propCategory Data Props
|
|
1501
|
+
*/
|
|
1502
|
+
data: ProductData;
|
|
1503
|
+
/**
|
|
1504
|
+
* This object contains properties for customizing the component's appearance.
|
|
1505
|
+
* @propCategory Style Props
|
|
1506
|
+
*/
|
|
1507
|
+
styles: ProductStyles;
|
|
1508
|
+
/** @internal */
|
|
1509
|
+
analytics: {
|
|
1148
1510
|
scope?: string;
|
|
1149
1511
|
};
|
|
1512
|
+
/**
|
|
1513
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1514
|
+
* @defaultValue true
|
|
1515
|
+
*/
|
|
1150
1516
|
liveVisibility: boolean;
|
|
1151
1517
|
}
|
|
1518
|
+
/**
|
|
1519
|
+
* The Product Section is used to display a curated list of products in a dedicated section. It features a main heading and renders each product as an individual card, making it ideal for showcasing featured items, new arrivals, or bestsellers.
|
|
1520
|
+
* Available on Location templates.
|
|
1521
|
+
*/
|
|
1152
1522
|
declare const ProductSection: ComponentConfig<ProductSectionProps>;
|
|
1153
1523
|
|
|
1524
|
+
interface PromoData {
|
|
1525
|
+
/**
|
|
1526
|
+
* The source for the promotional content, including an image, title, description, and a call-to-action.
|
|
1527
|
+
* @defaultValue Placeholder content for a featured promotion.
|
|
1528
|
+
*/
|
|
1529
|
+
promo: YextStructEntityField<PromoSectionType>;
|
|
1530
|
+
}
|
|
1531
|
+
interface PromoStyles {
|
|
1532
|
+
/**
|
|
1533
|
+
* The background color for the entire section.
|
|
1534
|
+
* @defaultValue Background Color 1
|
|
1535
|
+
*/
|
|
1536
|
+
backgroundColor?: BackgroundStyle;
|
|
1537
|
+
/**
|
|
1538
|
+
* Positions the image to the left or right of the text content.
|
|
1539
|
+
* @defaultValue 'left'
|
|
1540
|
+
*/
|
|
1541
|
+
orientation: "left" | "right";
|
|
1542
|
+
/**
|
|
1543
|
+
* The visual style variant for the call-to-action button.
|
|
1544
|
+
* @defaultValue 'primary'
|
|
1545
|
+
*/
|
|
1546
|
+
ctaVariant: CTAProps["variant"];
|
|
1547
|
+
/** Styling for the promo's title. */
|
|
1548
|
+
heading: {
|
|
1549
|
+
level: HeadingLevel;
|
|
1550
|
+
align: "left" | "center" | "right";
|
|
1551
|
+
};
|
|
1552
|
+
/**
|
|
1553
|
+
* Styling options for the promo image, such as aspect ratio.
|
|
1554
|
+
*/
|
|
1555
|
+
image: ImageStylingProps;
|
|
1556
|
+
}
|
|
1154
1557
|
interface PromoSectionProps {
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
};
|
|
1168
|
-
analytics?: {
|
|
1558
|
+
/**
|
|
1559
|
+
* This object contains the content to be displayed by the component.
|
|
1560
|
+
* @propCategory Data Props
|
|
1561
|
+
*/
|
|
1562
|
+
data: PromoData;
|
|
1563
|
+
/**
|
|
1564
|
+
* This object contains properties for customizing the component's appearance.
|
|
1565
|
+
* @propCategory Style Props
|
|
1566
|
+
*/
|
|
1567
|
+
styles: PromoStyles;
|
|
1568
|
+
/** @internal */
|
|
1569
|
+
analytics: {
|
|
1169
1570
|
scope?: string;
|
|
1170
1571
|
};
|
|
1572
|
+
/**
|
|
1573
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1574
|
+
* @defaultValue true
|
|
1575
|
+
*/
|
|
1171
1576
|
liveVisibility?: boolean;
|
|
1172
1577
|
}
|
|
1578
|
+
/**
|
|
1579
|
+
* The Promo Section is a flexible content component designed to highlight a single, specific promotion. It combines an image with a title, description, and a call-to-action button in a customizable, split-column layout, making it perfect for drawing attention to special offers or announcements.
|
|
1580
|
+
* Available on Location templates.
|
|
1581
|
+
*/
|
|
1173
1582
|
declare const PromoSection: ComponentConfig<PromoSectionProps>;
|
|
1174
1583
|
|
|
1175
|
-
interface
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1584
|
+
interface PhotoGalleryData {
|
|
1585
|
+
/**
|
|
1586
|
+
* The main heading for the photo gallery.
|
|
1587
|
+
* @defaultValue "Gallery" (constant)
|
|
1588
|
+
*/
|
|
1589
|
+
heading: YextEntityField<TranslatableString>;
|
|
1590
|
+
/**
|
|
1591
|
+
* The source of the image data, which can be linked to a Yext field or provided as a constant.
|
|
1592
|
+
* @defaultValue A list of 3 placeholder images.
|
|
1593
|
+
*/
|
|
1594
|
+
images: YextEntityField<ImageType[] | ComplexImageType[] | GalleryImageType[]>;
|
|
1595
|
+
}
|
|
1596
|
+
interface PhotoGalleryStyles {
|
|
1597
|
+
/**
|
|
1598
|
+
* The background color for the entire section, selected from the theme.
|
|
1599
|
+
* @defaultValue Background Color 1
|
|
1600
|
+
*/
|
|
1601
|
+
backgroundColor?: BackgroundStyle;
|
|
1602
|
+
/** Styling for the main section heading. */
|
|
1603
|
+
heading: {
|
|
1604
|
+
level: HeadingLevel;
|
|
1605
|
+
align: "left" | "center" | "right";
|
|
1187
1606
|
};
|
|
1607
|
+
/** Styling options for the gallery images, such as aspect ratio. */
|
|
1608
|
+
image: ImageStylingProps;
|
|
1609
|
+
}
|
|
1610
|
+
interface PhotoGallerySectionProps {
|
|
1611
|
+
/**
|
|
1612
|
+
* This object contains the content to be displayed by the component.
|
|
1613
|
+
* @propCategory Data Props
|
|
1614
|
+
*/
|
|
1615
|
+
data: PhotoGalleryData;
|
|
1616
|
+
/**
|
|
1617
|
+
* This object contains properties for customizing the component's appearance.
|
|
1618
|
+
* @propCategory Style Props
|
|
1619
|
+
*/
|
|
1620
|
+
styles: PhotoGalleryStyles;
|
|
1621
|
+
/**
|
|
1622
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1623
|
+
* @defaultValue true
|
|
1624
|
+
*/
|
|
1188
1625
|
liveVisibility: boolean;
|
|
1189
1626
|
}
|
|
1627
|
+
/**
|
|
1628
|
+
* The Photo Gallery Section is designed to display a collection of images in a visually appealing format. It consists of a main heading for the section and a flexible grid of images, with options for styling the image presentation.
|
|
1629
|
+
* Available on Location templates.
|
|
1630
|
+
*/
|
|
1190
1631
|
declare const PhotoGallerySection: ComponentConfig<PhotoGallerySectionProps>;
|
|
1191
1632
|
|
|
1192
|
-
interface
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1633
|
+
interface FAQData {
|
|
1634
|
+
/**
|
|
1635
|
+
* The main heading for the entire events section.
|
|
1636
|
+
* @defaultValue "Frequently Asked Questions" (constant)
|
|
1637
|
+
*/
|
|
1638
|
+
heading: YextEntityField<TranslatableString>;
|
|
1639
|
+
/**
|
|
1640
|
+
* The source of the FAQ data (questions and answers), which can be linked to a Yext field or provided as a constant.
|
|
1641
|
+
* @defaultValue A list of 3 placeholder FAQs.
|
|
1642
|
+
*/
|
|
1643
|
+
faqs: YextEntityField<FAQSectionType>;
|
|
1644
|
+
}
|
|
1645
|
+
interface FAQStyles {
|
|
1646
|
+
/**
|
|
1647
|
+
* The background color of the section.
|
|
1648
|
+
* @defaultValue Background Color 3
|
|
1649
|
+
*/
|
|
1650
|
+
backgroundColor?: BackgroundStyle;
|
|
1651
|
+
/** Styling for the heading. */
|
|
1652
|
+
heading: {
|
|
1653
|
+
level: HeadingLevel;
|
|
1654
|
+
align: "left" | "center" | "right";
|
|
1203
1655
|
};
|
|
1204
|
-
|
|
1205
|
-
|
|
1656
|
+
}
|
|
1657
|
+
interface FAQSectionProps {
|
|
1658
|
+
/**
|
|
1659
|
+
* This object contains the content to be displayed by the component.
|
|
1660
|
+
* @propCategory Data Props
|
|
1661
|
+
*/
|
|
1662
|
+
data: FAQData;
|
|
1663
|
+
/**
|
|
1664
|
+
* This object contains properties for customizing the component's appearance.
|
|
1665
|
+
* @propCategory Style Props
|
|
1666
|
+
*/
|
|
1667
|
+
styles: FAQStyles;
|
|
1668
|
+
/** @internal */
|
|
1669
|
+
analytics: {
|
|
1206
1670
|
scope?: string;
|
|
1207
1671
|
};
|
|
1672
|
+
/**
|
|
1673
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1674
|
+
* @defaultValue true
|
|
1675
|
+
*/
|
|
1676
|
+
liveVisibility: boolean;
|
|
1208
1677
|
}
|
|
1678
|
+
/**
|
|
1679
|
+
* The FAQ Section component displays a list of questions and answers in an organized format. It includes a main heading for the section and typically renders the FAQs as an accordion, where users can click on a question to reveal the answer.
|
|
1680
|
+
* Available on Location templates.
|
|
1681
|
+
*/
|
|
1209
1682
|
declare const FAQSection: ComponentConfig<FAQSectionProps>;
|
|
1210
1683
|
|
|
1211
1684
|
type ReviewsSectionProps = {
|
|
1212
1685
|
backgroundColor: BackgroundStyle;
|
|
1213
|
-
analytics
|
|
1686
|
+
analytics: {
|
|
1214
1687
|
scope?: string;
|
|
1215
1688
|
};
|
|
1216
1689
|
};
|
|
1217
1690
|
declare const ReviewsSection: ComponentConfig<ReviewsSectionProps>;
|
|
1218
1691
|
|
|
1219
|
-
interface
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1692
|
+
interface TestimonialData {
|
|
1693
|
+
/**
|
|
1694
|
+
* The main heading for the entire testimonials section.
|
|
1695
|
+
* @defaultValue "Featured Testimonials" (constant)
|
|
1696
|
+
*/
|
|
1697
|
+
heading: YextEntityField<TranslatableString>;
|
|
1698
|
+
/**
|
|
1699
|
+
* The source of the testimonial data, which can be linked to a Yext field or provided as a constant.
|
|
1700
|
+
* @defaultValue A list of 3 placeholder testimonials.
|
|
1701
|
+
*/
|
|
1702
|
+
testimonials: YextEntityField<TestimonialSectionType>;
|
|
1703
|
+
}
|
|
1704
|
+
interface TestimonialStyles {
|
|
1705
|
+
/**
|
|
1706
|
+
* The background color for the entire section, selected from the theme.
|
|
1707
|
+
* @defaultValue Background Color 2
|
|
1708
|
+
*/
|
|
1709
|
+
backgroundColor?: BackgroundStyle;
|
|
1710
|
+
/** Styling for the main section heading. */
|
|
1711
|
+
heading: {
|
|
1712
|
+
level: HeadingLevel;
|
|
1713
|
+
align: "left" | "center" | "right";
|
|
1714
|
+
};
|
|
1715
|
+
/** Styling for the individual testimonial cards. */
|
|
1716
|
+
cards: {
|
|
1717
|
+
headingLevel: HeadingLevel;
|
|
1225
1718
|
backgroundColor?: BackgroundStyle;
|
|
1226
|
-
heading: {
|
|
1227
|
-
level: HeadingLevel;
|
|
1228
|
-
align: "left" | "center" | "right";
|
|
1229
|
-
};
|
|
1230
|
-
cards: {
|
|
1231
|
-
headingLevel: HeadingLevel;
|
|
1232
|
-
backgroundColor?: BackgroundStyle;
|
|
1233
|
-
};
|
|
1234
1719
|
};
|
|
1720
|
+
}
|
|
1721
|
+
interface TestimonialSectionProps {
|
|
1722
|
+
/**
|
|
1723
|
+
* This object contains the content to be displayed by the component.
|
|
1724
|
+
* @propCategory Data Props
|
|
1725
|
+
*/
|
|
1726
|
+
data: TestimonialData;
|
|
1727
|
+
/**
|
|
1728
|
+
* This object contains properties for customizing the component's appearance.
|
|
1729
|
+
* @propCategory Style Props
|
|
1730
|
+
*/
|
|
1731
|
+
styles: TestimonialStyles;
|
|
1732
|
+
/**
|
|
1733
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1734
|
+
* @defaultValue true
|
|
1735
|
+
*/
|
|
1235
1736
|
liveVisibility: boolean;
|
|
1236
1737
|
}
|
|
1738
|
+
/**
|
|
1739
|
+
* The Testimonial Section is used to display a list of customer testimonials or reviews. It features a main section heading and renders each testimonial as an individual card, providing social proof and building trust with visitors.
|
|
1740
|
+
* Available on Location templates.
|
|
1741
|
+
*/
|
|
1237
1742
|
declare const TestimonialSection: ComponentConfig<TestimonialSectionProps>;
|
|
1238
1743
|
|
|
1239
|
-
interface
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1744
|
+
interface TeamData {
|
|
1745
|
+
/**
|
|
1746
|
+
* The main heading for the entire team section.
|
|
1747
|
+
* @defaultValue "Meet Our Team" (constant)
|
|
1748
|
+
*/
|
|
1749
|
+
heading: YextEntityField<TranslatableString>;
|
|
1750
|
+
/**
|
|
1751
|
+
* The source of the team member data, which can be linked to a Yext field or provided as a constant.
|
|
1752
|
+
* @defaultValue A list of 3 placeholder people.
|
|
1753
|
+
*/
|
|
1754
|
+
people: YextEntityField<TeamSectionType>;
|
|
1755
|
+
}
|
|
1756
|
+
interface TeamStyles {
|
|
1757
|
+
/**
|
|
1758
|
+
* The background color for the entire section.
|
|
1759
|
+
* @defaultValue Background Color 3
|
|
1760
|
+
*/
|
|
1761
|
+
backgroundColor?: BackgroundStyle;
|
|
1762
|
+
/** Styling for the main section heading. */
|
|
1763
|
+
heading: {
|
|
1764
|
+
level: HeadingLevel;
|
|
1765
|
+
align: "left" | "center" | "right";
|
|
1766
|
+
};
|
|
1767
|
+
/** Styling for the individual people cards. */
|
|
1768
|
+
cards: {
|
|
1769
|
+
headingLevel: HeadingLevel;
|
|
1245
1770
|
backgroundColor?: BackgroundStyle;
|
|
1246
|
-
|
|
1247
|
-
level: HeadingLevel;
|
|
1248
|
-
align: "left" | "center" | "right";
|
|
1249
|
-
};
|
|
1250
|
-
cards: {
|
|
1251
|
-
headingLevel: HeadingLevel;
|
|
1252
|
-
backgroundColor?: BackgroundStyle;
|
|
1253
|
-
ctaVariant: CTAProps["variant"];
|
|
1254
|
-
};
|
|
1771
|
+
ctaVariant: CTAProps["variant"];
|
|
1255
1772
|
};
|
|
1256
|
-
|
|
1773
|
+
}
|
|
1774
|
+
interface TeamSectionProps {
|
|
1775
|
+
/**
|
|
1776
|
+
* This object contains the content to be displayed by the component.
|
|
1777
|
+
* @propCategory Data Props
|
|
1778
|
+
*/
|
|
1779
|
+
data: TeamData;
|
|
1780
|
+
/**
|
|
1781
|
+
* This object contains properties for customizing the component's appearance.
|
|
1782
|
+
* @propCategory Style Props
|
|
1783
|
+
*/
|
|
1784
|
+
styles: TeamStyles;
|
|
1785
|
+
/** @internal */
|
|
1786
|
+
analytics: {
|
|
1257
1787
|
scope?: string;
|
|
1258
1788
|
};
|
|
1789
|
+
/**
|
|
1790
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1791
|
+
* @defaultValue true
|
|
1792
|
+
*/
|
|
1259
1793
|
liveVisibility: boolean;
|
|
1260
1794
|
}
|
|
1795
|
+
/**
|
|
1796
|
+
* The Team Section is designed to showcase a list of people, such as employees, executives, or other team members. It features a main section heading and renders each person's information—typically a photo, name, and title—as an individual card.
|
|
1797
|
+
* Available on Location templates.
|
|
1798
|
+
*/
|
|
1261
1799
|
declare const TeamSection: ComponentConfig<TeamSectionProps>;
|
|
1262
1800
|
|
|
1263
1801
|
declare const layoutVariants: (props?: ({
|
|
@@ -1266,7 +1804,7 @@ declare const layoutVariants: (props?: ({
|
|
|
1266
1804
|
horizontalPadding?: "0" | "1" | "2" | "3" | "4" | "none" | "12" | "14" | "16" | "20" | "24" | "0.5" | "1.5" | "6" | "8" | "2.5" | "10" | "3.5" | "5" | "7" | "9" | "11" | null | undefined;
|
|
1267
1805
|
columnFormatting?: "default" | "none" | "forceHorizontal" | null | undefined;
|
|
1268
1806
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1269
|
-
interface layoutProps extends
|
|
1807
|
+
interface layoutProps extends VariantProps<typeof layoutVariants> {
|
|
1270
1808
|
backgroundColor?: BackgroundStyle;
|
|
1271
1809
|
}
|
|
1272
1810
|
|
|
@@ -1276,51 +1814,53 @@ interface FlexProps extends layoutProps {
|
|
|
1276
1814
|
direction: "flex-row" | "flex-col";
|
|
1277
1815
|
wrap: "wrap" | "nowrap";
|
|
1278
1816
|
liveVisibility: boolean;
|
|
1817
|
+
flexZone: Slot;
|
|
1279
1818
|
}
|
|
1280
|
-
declare const Flex: ComponentConfig<FlexProps>;
|
|
1281
1819
|
|
|
1282
1820
|
interface GridProps extends layoutProps {
|
|
1283
|
-
rows: number;
|
|
1284
1821
|
columns: number;
|
|
1822
|
+
slots: {
|
|
1823
|
+
Column: Slot;
|
|
1824
|
+
}[];
|
|
1285
1825
|
liveVisibility: boolean;
|
|
1826
|
+
className?: string;
|
|
1827
|
+
/** @internal */
|
|
1828
|
+
analytics: {
|
|
1829
|
+
scope?: string;
|
|
1830
|
+
};
|
|
1286
1831
|
}
|
|
1287
|
-
declare const Grid: ComponentConfig<GridProps>;
|
|
1288
1832
|
|
|
1289
1833
|
type AddressProps = {
|
|
1290
1834
|
address: YextEntityField<AddressType>;
|
|
1291
1835
|
showGetDirections: boolean;
|
|
1292
1836
|
};
|
|
1293
|
-
declare const Address: ComponentConfig<AddressProps>;
|
|
1294
1837
|
|
|
1295
|
-
|
|
1838
|
+
type BodyTextProps = {
|
|
1296
1839
|
text: YextEntityField<TranslatableString>;
|
|
1297
|
-
|
|
1298
|
-
|
|
1840
|
+
variant: BodyProps["variant"];
|
|
1841
|
+
};
|
|
1299
1842
|
|
|
1300
1843
|
interface CTAWrapperProps {
|
|
1301
|
-
entityField: YextEntityField<
|
|
1844
|
+
entityField: YextEntityField<TranslatableCTA>;
|
|
1302
1845
|
variant: CTAProps["variant"];
|
|
1303
1846
|
className?: CTAProps["className"];
|
|
1304
1847
|
}
|
|
1305
|
-
declare const CTAWrapper: ComponentConfig<CTAWrapperProps>;
|
|
1306
1848
|
|
|
1307
1849
|
interface EmailsProps {
|
|
1308
1850
|
list: YextEntityField<string[]>;
|
|
1309
1851
|
listLength?: number;
|
|
1310
1852
|
includeHyperlink: boolean;
|
|
1311
1853
|
}
|
|
1312
|
-
declare const Emails: ComponentConfig<EmailsProps>;
|
|
1313
1854
|
|
|
1314
1855
|
type GetDirectionsProps = {
|
|
1315
1856
|
coordinate: YextEntityField<Coordinate>;
|
|
1316
1857
|
variant: CTAProps["variant"];
|
|
1317
1858
|
};
|
|
1318
|
-
declare const GetDirections: ComponentConfig<GetDirectionsProps>;
|
|
1319
1859
|
|
|
1320
|
-
|
|
1860
|
+
type HeadingTextProps = {
|
|
1321
1861
|
text: YextEntityField<TranslatableString>;
|
|
1322
|
-
|
|
1323
|
-
|
|
1862
|
+
level: HeadingProps["level"];
|
|
1863
|
+
};
|
|
1324
1864
|
|
|
1325
1865
|
type HoursTableProps = {
|
|
1326
1866
|
hours: YextEntityField<HoursType>;
|
|
@@ -1329,7 +1869,6 @@ type HoursTableProps = {
|
|
|
1329
1869
|
showAdditionalHoursText: boolean;
|
|
1330
1870
|
alignment: "items-start" | "items-center";
|
|
1331
1871
|
};
|
|
1332
|
-
declare const HoursTable: ComponentConfig<HoursTableProps>;
|
|
1333
1872
|
|
|
1334
1873
|
interface HoursStatusProps {
|
|
1335
1874
|
hours: YextEntityField<HoursType>;
|
|
@@ -1339,14 +1878,12 @@ interface HoursStatusProps {
|
|
|
1339
1878
|
dayOfWeekFormat?: "short" | "long";
|
|
1340
1879
|
showDayNames?: boolean;
|
|
1341
1880
|
}
|
|
1342
|
-
declare const HoursStatus: ComponentConfig<HoursStatusProps>;
|
|
1343
1881
|
|
|
1344
1882
|
interface ImageWrapperProps {
|
|
1345
1883
|
image: YextEntityField<ImageType | ComplexImageType>;
|
|
1346
1884
|
aspectRatio?: number;
|
|
1347
1885
|
width?: number;
|
|
1348
1886
|
}
|
|
1349
|
-
declare const ImageWrapper: ComponentConfig<ImageWrapperProps>;
|
|
1350
1887
|
|
|
1351
1888
|
type MapboxStaticProps = {
|
|
1352
1889
|
apiKey: string;
|
|
@@ -1354,150 +1891,324 @@ type MapboxStaticProps = {
|
|
|
1354
1891
|
zoom?: number;
|
|
1355
1892
|
mapStyle?: string;
|
|
1356
1893
|
};
|
|
1357
|
-
declare const MapboxStaticMap: ComponentConfig<MapboxStaticProps>;
|
|
1358
1894
|
|
|
1359
1895
|
interface PhoneProps {
|
|
1360
1896
|
phone: YextEntityField<string>;
|
|
1361
1897
|
format?: "domestic" | "international";
|
|
1362
1898
|
includeHyperlink: boolean;
|
|
1363
1899
|
}
|
|
1364
|
-
declare const Phone: ComponentConfig<PhoneProps>;
|
|
1365
1900
|
|
|
1366
1901
|
interface TextListProps {
|
|
1367
1902
|
list: YextEntityField<TranslatableString[]>;
|
|
1368
1903
|
}
|
|
1369
|
-
declare const TextList: ComponentConfig<TextListProps>;
|
|
1370
1904
|
|
|
1371
|
-
|
|
1905
|
+
interface HeaderProps {
|
|
1906
|
+
/**
|
|
1907
|
+
* The display width of the site logo in pixels.
|
|
1908
|
+
* @defaultValue 80
|
|
1909
|
+
*/
|
|
1372
1910
|
logoWidth?: number;
|
|
1911
|
+
/**
|
|
1912
|
+
* If 'true', displays the language selector dropdown in the header.
|
|
1913
|
+
* @defaultValue false
|
|
1914
|
+
*/
|
|
1373
1915
|
enableLanguageSelector: boolean;
|
|
1374
|
-
|
|
1916
|
+
/** @internal */
|
|
1917
|
+
analytics: {
|
|
1375
1918
|
scope?: string;
|
|
1376
1919
|
};
|
|
1377
|
-
}
|
|
1920
|
+
}
|
|
1921
|
+
/**
|
|
1922
|
+
* The Header component appears at the top of pages. It serves as the primary navigation and branding element, containing the site logo and optionally a language selector. See [Expanded Header](#expanded-header) for the newest header component.
|
|
1923
|
+
* Available on Directory and Locator templates.
|
|
1924
|
+
*/
|
|
1378
1925
|
declare const Header: ComponentConfig<HeaderProps>;
|
|
1379
1926
|
|
|
1380
|
-
interface
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1927
|
+
interface ExpandedHeaderData {
|
|
1928
|
+
/** Content for the main primary header bar. */
|
|
1929
|
+
primaryHeader: {
|
|
1930
|
+
logo: string;
|
|
1931
|
+
links: TranslatableCTA[];
|
|
1932
|
+
primaryCTA?: TranslatableCTA;
|
|
1933
|
+
showPrimaryCTA: boolean;
|
|
1934
|
+
secondaryCTA?: TranslatableCTA;
|
|
1935
|
+
showSecondaryCTA: boolean;
|
|
1936
|
+
};
|
|
1937
|
+
/** Content for the secondary header (top bar). */
|
|
1938
|
+
secondaryHeader: {
|
|
1939
|
+
show: boolean;
|
|
1940
|
+
showLanguageDropdown: boolean;
|
|
1941
|
+
secondaryLinks: TranslatableCTA[];
|
|
1395
1942
|
};
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1943
|
+
}
|
|
1944
|
+
interface ExpandedHeaderStyles {
|
|
1945
|
+
/** Styling for the main, primary header bar. */
|
|
1946
|
+
primaryHeader: {
|
|
1947
|
+
logo: ImageStylingProps;
|
|
1948
|
+
backgroundColor?: BackgroundStyle;
|
|
1949
|
+
primaryCtaVariant: CTAProps["variant"];
|
|
1950
|
+
secondaryCtaVariant: CTAProps["variant"];
|
|
1951
|
+
};
|
|
1952
|
+
/** Styling for the secondary header (top bar). */
|
|
1953
|
+
secondaryHeader: {
|
|
1954
|
+
backgroundColor?: BackgroundStyle;
|
|
1406
1955
|
};
|
|
1407
|
-
|
|
1956
|
+
/** The maximum width of the header */
|
|
1957
|
+
maxWidth: PageSectionProps["maxWidth"];
|
|
1958
|
+
}
|
|
1959
|
+
interface ExpandedHeaderProps {
|
|
1960
|
+
/**
|
|
1961
|
+
* This object contains all the content for both header tiers.
|
|
1962
|
+
* @propCategory Data Props
|
|
1963
|
+
*/
|
|
1964
|
+
data: ExpandedHeaderData;
|
|
1965
|
+
/**
|
|
1966
|
+
* This object contains properties for customizing the appearance of both header tiers.
|
|
1967
|
+
* @propCategory Style Props
|
|
1968
|
+
*/
|
|
1969
|
+
styles: ExpandedHeaderStyles;
|
|
1970
|
+
/** @internal */
|
|
1971
|
+
analytics: {
|
|
1408
1972
|
scope?: string;
|
|
1409
1973
|
};
|
|
1974
|
+
/**
|
|
1975
|
+
* Indicates which props should not be checked for missing translations.
|
|
1976
|
+
* @internal
|
|
1977
|
+
*/
|
|
1978
|
+
ignoreLocaleWarning?: string[];
|
|
1410
1979
|
}
|
|
1980
|
+
/**
|
|
1981
|
+
* The Expanded Header is a two-tiered component for websites with complex navigation needs. It consists of a primary header for the main logo, navigation links, and calls-to-action, plus an optional secondary "top bar" for utility links (like "Contact Us" or "Log In") and a language selector.
|
|
1982
|
+
* Available on Location templates.
|
|
1983
|
+
*/
|
|
1411
1984
|
declare const ExpandedHeader: ComponentConfig<ExpandedHeaderProps>;
|
|
1412
1985
|
|
|
1413
|
-
|
|
1986
|
+
interface FooterProps {
|
|
1987
|
+
/**
|
|
1988
|
+
* The background color for the entire footer section.
|
|
1989
|
+
* @defaultValue Background Color 1
|
|
1990
|
+
*/
|
|
1414
1991
|
backgroundColor?: BackgroundStyle;
|
|
1415
|
-
|
|
1992
|
+
/** @internal */
|
|
1993
|
+
analytics: {
|
|
1416
1994
|
scope?: string;
|
|
1417
1995
|
};
|
|
1418
|
-
}
|
|
1996
|
+
}
|
|
1997
|
+
/**
|
|
1998
|
+
* The Footer appears at the bottom of the page. It serves as a container for secondary navigation, social media links, legal disclaimers, and copyright information. See [Expanded Footer](#expanded-footer) for the newest footer component.
|
|
1999
|
+
* Available on Directory and Locator templates.
|
|
2000
|
+
*/
|
|
1419
2001
|
declare const Footer: ComponentConfig<FooterProps>;
|
|
1420
2002
|
|
|
1421
|
-
interface
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
2003
|
+
interface DirectoryData {
|
|
2004
|
+
/**
|
|
2005
|
+
* The title for the Directory Section.
|
|
2006
|
+
* @defaultValue "[[name]]" (constant using embedded fields)
|
|
2007
|
+
*/
|
|
2008
|
+
title: YextEntityField<TranslatableString>;
|
|
2009
|
+
/**
|
|
2010
|
+
* The display label for the root link in the breadcrumbs navigation.
|
|
2011
|
+
* @defaultValue "Directory Root" (constant)
|
|
2012
|
+
*/
|
|
2013
|
+
directoryRoot: TranslatableString;
|
|
2014
|
+
}
|
|
2015
|
+
interface DirectoryStyles {
|
|
2016
|
+
/**
|
|
2017
|
+
* The main background color for the directory page content.
|
|
2018
|
+
* @defaultValue Background Color 1
|
|
2019
|
+
*/
|
|
2020
|
+
backgroundColor?: BackgroundStyle;
|
|
2021
|
+
/**
|
|
2022
|
+
* A specific background color for the breadcrumbs navigation bar.
|
|
2023
|
+
* @defaultValue Background Color 1
|
|
2024
|
+
*/
|
|
2025
|
+
breadcrumbsBackgroundColor?: BackgroundStyle;
|
|
2026
|
+
/**
|
|
2027
|
+
* Style properties for directory cards.
|
|
2028
|
+
*/
|
|
2029
|
+
cards: {
|
|
2030
|
+
headingLevel: HeadingLevel;
|
|
1427
2031
|
backgroundColor?: BackgroundStyle;
|
|
1428
|
-
breadcrumbsBackgroundColor?: BackgroundStyle;
|
|
1429
|
-
cards: {
|
|
1430
|
-
headingLevel: HeadingLevel;
|
|
1431
|
-
backgroundColor?: BackgroundStyle;
|
|
1432
|
-
};
|
|
1433
2032
|
};
|
|
1434
|
-
|
|
2033
|
+
}
|
|
2034
|
+
interface DirectoryProps {
|
|
2035
|
+
/**
|
|
2036
|
+
* This object contains the content used by the component.
|
|
2037
|
+
* @propCategory Data Props
|
|
2038
|
+
*/
|
|
2039
|
+
data: DirectoryData;
|
|
2040
|
+
/**
|
|
2041
|
+
* This object contains properties for customizing the component's appearance.
|
|
2042
|
+
* @propCategory Style Props
|
|
2043
|
+
*/
|
|
2044
|
+
styles: DirectoryStyles;
|
|
2045
|
+
/** @internal */
|
|
2046
|
+
analytics: {
|
|
1435
2047
|
scope?: string;
|
|
1436
2048
|
};
|
|
1437
2049
|
}
|
|
2050
|
+
/**
|
|
2051
|
+
* The Directory Page component serves as a navigational hub, displaying a list of child entities within a hierarchical structure (e.g., a list of states in a country, or cities in a state). It includes breadcrumbs for easy navigation and renders each child item as a distinct card.
|
|
2052
|
+
* Available on Directory templates.
|
|
2053
|
+
*/
|
|
1438
2054
|
declare const Directory: ComponentConfig<DirectoryProps>;
|
|
1439
2055
|
|
|
1440
|
-
|
|
2056
|
+
interface LocatorProps {
|
|
2057
|
+
/**
|
|
2058
|
+
* The visual theme for the map tiles, chosen from a predefined list of Mapbox styles.
|
|
2059
|
+
* @defaultValue 'mapbox://styles/mapbox/streets-v12'
|
|
2060
|
+
*/
|
|
1441
2061
|
mapStyle?: string;
|
|
2062
|
+
/**
|
|
2063
|
+
* If 'true', displays a button to filter for locations that are currently open.
|
|
2064
|
+
* @defaultValue false
|
|
2065
|
+
*/
|
|
1442
2066
|
openNowButton?: boolean;
|
|
2067
|
+
/** @internal to be set via withPropOverrides */
|
|
1443
2068
|
entityTypeEnvVar?: string;
|
|
2069
|
+
/** @internal to be set via withPropOverrides */
|
|
1444
2070
|
experienceKeyEnvVar?: string;
|
|
1445
|
-
}
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* Available on Locator templates.
|
|
2074
|
+
*/
|
|
1446
2075
|
declare const LocatorComponent: ComponentConfig<LocatorProps>;
|
|
1447
2076
|
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
2077
|
+
interface StaticMapData {
|
|
2078
|
+
/**
|
|
2079
|
+
* The API key used to generate the map image.
|
|
2080
|
+
* @defaultValue ""
|
|
2081
|
+
*/
|
|
2082
|
+
apiKey: string;
|
|
2083
|
+
}
|
|
2084
|
+
interface StaticMapStyles {
|
|
2085
|
+
/**
|
|
2086
|
+
* The background color of the section.
|
|
2087
|
+
* @defaultValue Background Color 1
|
|
2088
|
+
*/
|
|
2089
|
+
backgroundColor?: BackgroundStyle;
|
|
2090
|
+
}
|
|
2091
|
+
interface StaticMapSectionProps {
|
|
2092
|
+
/**
|
|
2093
|
+
* This object contains the configuration needed to generate the map.
|
|
2094
|
+
* @propCategory Data Props
|
|
2095
|
+
*/
|
|
2096
|
+
data: StaticMapData;
|
|
2097
|
+
/**
|
|
2098
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
2099
|
+
* @defaultValue true
|
|
2100
|
+
*/
|
|
1452
2101
|
liveVisibility: boolean;
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
2102
|
+
/**
|
|
2103
|
+
* This object contains properties for customizing the component's appearance.
|
|
2104
|
+
* @propCategory Styles Props
|
|
2105
|
+
*/
|
|
2106
|
+
styles: StaticMapStyles;
|
|
2107
|
+
}
|
|
2108
|
+
/**
|
|
2109
|
+
* The Static Map Section displays a non-interactive map image of a business's location. It uses the entity's address or coordinates to generate the map and requires a valid API key from mapbox.
|
|
2110
|
+
* Available on Location templates.
|
|
2111
|
+
*/
|
|
2112
|
+
declare const StaticMapSection: ComponentConfig<StaticMapSectionProps>;
|
|
2113
|
+
|
|
2114
|
+
interface ExpandedFooterData {
|
|
2115
|
+
/** Content for the primary footer bar. */
|
|
2116
|
+
primaryFooter: {
|
|
2117
|
+
logo: string;
|
|
2118
|
+
facebookLink: string;
|
|
2119
|
+
instagramLink: string;
|
|
2120
|
+
linkedInLink: string;
|
|
2121
|
+
pinterestLink: string;
|
|
2122
|
+
tiktokLink: string;
|
|
2123
|
+
youtubeLink: string;
|
|
2124
|
+
xLink: string;
|
|
2125
|
+
utilityImages: {
|
|
2126
|
+
url: string;
|
|
2127
|
+
linkTarget?: string;
|
|
2128
|
+
}[];
|
|
2129
|
+
expandedFooter: boolean;
|
|
2130
|
+
footerLinks: TranslatableCTA[];
|
|
2131
|
+
expandedFooterLinks: {
|
|
2132
|
+
label: TranslatableString;
|
|
2133
|
+
links: TranslatableCTA[];
|
|
2134
|
+
}[];
|
|
1482
2135
|
};
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
utilityImages: ImageStylingProps;
|
|
1489
|
-
};
|
|
1490
|
-
secondaryFooter: {
|
|
1491
|
-
backgroundColor?: BackgroundStyle;
|
|
1492
|
-
linksAlignment: "left" | "right";
|
|
1493
|
-
};
|
|
2136
|
+
/** Content for the secondary header bar. */
|
|
2137
|
+
secondaryFooter: {
|
|
2138
|
+
show: boolean;
|
|
2139
|
+
copyrightMessage: TranslatableString;
|
|
2140
|
+
secondaryFooterLinks: TranslatableCTA[];
|
|
1494
2141
|
};
|
|
1495
|
-
|
|
2142
|
+
}
|
|
2143
|
+
interface ExpandedFooterStyles {
|
|
2144
|
+
/** Styling for the primary footer bar. */
|
|
2145
|
+
primaryFooter: {
|
|
2146
|
+
backgroundColor?: BackgroundStyle;
|
|
2147
|
+
linksAlignment: "left" | "right";
|
|
2148
|
+
logo: ImageStylingProps;
|
|
2149
|
+
utilityImages: ImageStylingProps;
|
|
2150
|
+
};
|
|
2151
|
+
/** Styling for the secondary footer bar. */
|
|
2152
|
+
secondaryFooter: {
|
|
2153
|
+
backgroundColor?: BackgroundStyle;
|
|
2154
|
+
linksAlignment: "left" | "right";
|
|
2155
|
+
};
|
|
2156
|
+
/** The maximum width of the footer. */
|
|
2157
|
+
maxWidth: PageSectionProps["maxWidth"];
|
|
2158
|
+
}
|
|
2159
|
+
interface ExpandedFooterProps {
|
|
2160
|
+
/**
|
|
2161
|
+
* This object contains all the content for both footer tiers.
|
|
2162
|
+
* @propCategory Data Props
|
|
2163
|
+
*/
|
|
2164
|
+
data: ExpandedFooterData;
|
|
2165
|
+
/**
|
|
2166
|
+
* This object contains properties for customizing the appearance of both footer tiers.
|
|
2167
|
+
* @propCategory Style Props
|
|
2168
|
+
*/
|
|
2169
|
+
styles: ExpandedFooterStyles;
|
|
2170
|
+
/** @internal */
|
|
2171
|
+
analytics: {
|
|
1496
2172
|
scope?: string;
|
|
1497
2173
|
};
|
|
2174
|
+
/**
|
|
2175
|
+
* Indicates which props should not be checked for missing translations.
|
|
2176
|
+
* @internal
|
|
2177
|
+
*/
|
|
2178
|
+
ignoreLocaleWarning?: string[];
|
|
1498
2179
|
}
|
|
2180
|
+
/**
|
|
2181
|
+
* The Expanded Footer is a comprehensive, two-tiered site-wide component for large websites. It includes a primary footer area for a logo, social media links, and utility images, and features two distinct layouts: a standard link list or an "expanded" multi-column mega-footer. It also includes an optional secondary sub-footer for copyright notices and legal links.
|
|
2182
|
+
* Avalible on Location templates.
|
|
2183
|
+
*/
|
|
1499
2184
|
declare const ExpandedFooter: ComponentConfig<ExpandedFooterProps>;
|
|
1500
2185
|
|
|
2186
|
+
interface CustomCodeSectionProps {
|
|
2187
|
+
/**
|
|
2188
|
+
* The HTML content to be rendered. Must be present for the component to display.
|
|
2189
|
+
* If not provided, the component will display a message prompting the user to add HTML.
|
|
2190
|
+
* This data is expected to have already been sanitized.
|
|
2191
|
+
*/
|
|
2192
|
+
html: string;
|
|
2193
|
+
/**
|
|
2194
|
+
* The CSS styles to be applied to the component.
|
|
2195
|
+
*/
|
|
2196
|
+
css: string;
|
|
2197
|
+
/**
|
|
2198
|
+
* The JavaScript code to be added as a script tag in the component.
|
|
2199
|
+
*/
|
|
2200
|
+
javascript: string;
|
|
2201
|
+
/** @internal */
|
|
2202
|
+
analytics: {
|
|
2203
|
+
scope?: string;
|
|
2204
|
+
};
|
|
2205
|
+
}
|
|
2206
|
+
/**
|
|
2207
|
+
* The CustomCodeSection component allows you to add custom HTML, CSS, and JavaScript to your page.
|
|
2208
|
+
* It is useful for integrating third-party widgets or custom scripts that are not supported by the visual editor natively.
|
|
2209
|
+
*/
|
|
2210
|
+
declare const CustomCodeSection: ComponentConfig<CustomCodeSectionProps>;
|
|
2211
|
+
|
|
1501
2212
|
interface PageSectionCategoryProps {
|
|
1502
2213
|
BannerSection: BannerSectionProps;
|
|
1503
2214
|
BreadcrumbsSection: BreadcrumbsSectionProps;
|
|
@@ -1536,10 +2247,12 @@ declare const PageSectionCategory: (keyof PageSectionCategoryProps)[];
|
|
|
1536
2247
|
interface OtherCategoryProps {
|
|
1537
2248
|
ExpandedHeader: ExpandedHeaderProps;
|
|
1538
2249
|
ExpandedFooter: ExpandedFooterProps;
|
|
2250
|
+
CustomCodeSection: CustomCodeSectionProps;
|
|
1539
2251
|
}
|
|
1540
2252
|
declare const OtherCategoryComponents: {
|
|
1541
2253
|
ExpandedHeader: _measured_puck.ComponentConfig<ExpandedHeaderProps>;
|
|
1542
2254
|
ExpandedFooter: _measured_puck.ComponentConfig<ExpandedFooterProps>;
|
|
2255
|
+
CustomCodeSection: _measured_puck.ComponentConfig<CustomCodeSectionProps>;
|
|
1543
2256
|
};
|
|
1544
2257
|
declare const OtherCategory: (keyof OtherCategoryProps)[];
|
|
1545
2258
|
interface DirectoryCategoryProps {
|
|
@@ -1556,6 +2269,37 @@ declare const LocatorCategoryComponents: {
|
|
|
1556
2269
|
Locator: _measured_puck.ComponentConfig<LocatorProps>;
|
|
1557
2270
|
};
|
|
1558
2271
|
declare const LocatorCategory: (keyof LocatorCategoryProps)[];
|
|
2272
|
+
interface AdvancedCoreInfoCategoryProps {
|
|
2273
|
+
Grid: GridProps;
|
|
2274
|
+
Address: AddressProps;
|
|
2275
|
+
BodyText: BodyTextProps;
|
|
2276
|
+
CTAWrapper: CTAWrapperProps;
|
|
2277
|
+
Emails: EmailsProps;
|
|
2278
|
+
GetDirections: GetDirectionsProps;
|
|
2279
|
+
HeadingText: HeadingTextProps;
|
|
2280
|
+
HoursTable: HoursTableProps;
|
|
2281
|
+
HoursStatus: HoursStatusProps;
|
|
2282
|
+
ImageWrapper: ImageWrapperProps;
|
|
2283
|
+
MapboxStaticMap: MapboxStaticProps;
|
|
2284
|
+
Phone: PhoneProps;
|
|
2285
|
+
TextList: TextListProps;
|
|
2286
|
+
}
|
|
2287
|
+
declare const AdvancedCoreInfoCategoryComponents: {
|
|
2288
|
+
Grid: _measured_puck.ComponentConfig<GridProps>;
|
|
2289
|
+
Address: _measured_puck.ComponentConfig<AddressProps>;
|
|
2290
|
+
BodyText: _measured_puck.ComponentConfig<BodyTextProps>;
|
|
2291
|
+
CTAWrapper: _measured_puck.ComponentConfig<CTAWrapperProps>;
|
|
2292
|
+
Emails: _measured_puck.ComponentConfig<EmailsProps>;
|
|
2293
|
+
GetDirections: _measured_puck.ComponentConfig<GetDirectionsProps>;
|
|
2294
|
+
HeadingText: _measured_puck.ComponentConfig<HeadingTextProps>;
|
|
2295
|
+
HoursStatus: _measured_puck.ComponentConfig<HoursStatusProps>;
|
|
2296
|
+
HoursTable: _measured_puck.ComponentConfig<HoursTableProps>;
|
|
2297
|
+
ImageWrapper: _measured_puck.ComponentConfig<ImageWrapperProps>;
|
|
2298
|
+
MapboxStaticMap: _measured_puck.ComponentConfig<MapboxStaticProps>;
|
|
2299
|
+
Phone: _measured_puck.ComponentConfig<PhoneProps>;
|
|
2300
|
+
TextList: _measured_puck.ComponentConfig<TextListProps>;
|
|
2301
|
+
};
|
|
2302
|
+
declare const AdvancedCoreInfoCategory: (keyof AdvancedCoreInfoCategoryProps)[];
|
|
1559
2303
|
interface DeprecatedCategoryProps {
|
|
1560
2304
|
Header: HeaderProps;
|
|
1561
2305
|
Footer: FooterProps;
|
|
@@ -1613,6 +2357,7 @@ type SectionContainerProps = {
|
|
|
1613
2357
|
alignment: "left" | "right" | "center";
|
|
1614
2358
|
};
|
|
1615
2359
|
liveVisibility: boolean;
|
|
2360
|
+
sectionContent: Slot;
|
|
1616
2361
|
};
|
|
1617
2362
|
declare const SectionContainer: ComponentConfig<SectionContainerProps>;
|
|
1618
2363
|
|
|
@@ -1622,4 +2367,4 @@ declare const addHeadingAlignmentMigration: Migration;
|
|
|
1622
2367
|
|
|
1623
2368
|
declare const defaultThemeConfig: ThemeConfig;
|
|
1624
2369
|
|
|
1625
|
-
export {
|
|
2370
|
+
export { AdvancedCoreInfoCategory, AdvancedCoreInfoCategoryComponents, type AdvancedCoreInfoCategoryProps, type AggregateRating, Background, type BackgroundProps, BackgroundProvider, type BackgroundStyle, type BannerData, BannerSection, type BannerSectionProps, type BannerStyles, BasicSelector, Body, type BodyProps, type BreadcrumbsData, BreadcrumbsSection, type BreadcrumbsSectionProps, type BreadcrumbsStyles, Button, type ButtonProps, CTA, type CTAProps, CodeField, type CodeFieldProps, type ComponentField, ComponentFields, ContentBlockCategory, ContentBlockCategoryComponents, type ContentBlockCategoryProps, type CoreInfoData, CoreInfoSection, type CoreInfoSectionProps, type CoreInfoStyles, CustomCodeSection, type CustomCodeSectionProps, DeprecatedCategory, DeprecatedCategoryComponents, type DeprecatedCategoryProps, Directory, DirectoryCategory, DirectoryCategoryComponents, type DirectoryCategoryProps, type DirectoryData, type DirectoryProps, type DirectoryStyles, Editor, EmbeddedFieldStringInput, EntityField, type EventData, EventSection, type EventSectionProps, type EventSectionType, type EventStruct, type EventStyles, ExpandedFooter, type ExpandedFooterData, type ExpandedFooterProps, type ExpandedFooterStyles, ExpandedHeader, type ExpandedHeaderData, type ExpandedHeaderProps, type ExpandedHeaderStyles, type FAQData, FAQSection, type FAQSectionProps, type FAQSectionType, type FAQStruct, type FAQStyles, type FontRegistry, FontSizeSelector, Footer, type FooterProps, type GalleryImageType, Header, type HeaderProps, Heading, type HeadingLevel, type HeadingProps, type HeroData, HeroSection, type HeroSectionProps, type HeroSectionType, type HeroStyles, HoursStatusAtom, type HoursStatusAtomProps, HoursTableAtom, type HoursTableAtomProps, Image, type ImageProps, type InsightData, InsightSection, type InsightSectionProps, type InsightSectionType, type InsightStruct, type InsightStyles, KnowledgeGraphIcon, LayoutBlockCategory, LayoutBlockCategoryComponents, type LayoutBlockCategoryProps, LocatorCategory, LocatorCategoryComponents, type LocatorCategoryProps, LocatorComponent, type LocatorProps, MaybeLink, type MaybeLinkProps, MaybeRTF, type MaybeRTFProps, type Migration, type MigrationAction, type MigrationRegistry, type NearbyLocationsData, NearbyLocationsSection, type NearbyLocationsSectionProps, type NearbyLocationsStyles, OptionalNumberField, type OptionalNumberFieldProps, OtherCategory, OtherCategoryComponents, type OtherCategoryProps, PageSection, PageSectionCategory, PageSectionCategoryComponents, type PageSectionCategoryProps, type PageSectionProps, type PersonStruct, PhoneAtom, type PhoneAtomProps, type PhotoGalleryData, PhotoGallerySection, type PhotoGallerySectionProps, type PhotoGalleryStyles, type ProductData, ProductSection, type ProductSectionProps, type ProductSectionType, type ProductStruct, type ProductStyles, type PromoData, PromoSection, type PromoSectionProps, type PromoSectionType, type PromoStyles, type RenderYextEntityFieldSelectorProps, ReviewStars, type ReviewStarsProps, ReviewsSection, type ReviewsSectionProps, type RichText, SectionContainer, type SectionContainerProps, SpacingSelector, StaticMapSection, type StaticMapSectionProps, type StaticMapStyles, TailwindConfigContext, TeamSection, type TeamSectionProps, type TeamSectionType, TemplatePropsContext, type TestimonialData, TestimonialSection, type TestimonialSectionProps, type TestimonialSectionType, type TestimonialStruct, type TestimonialStyles, type ThemeConfig, ThemeOptions, Timestamp, TimestampOption, type TimestampProps, Toggle, type TranslatableCTA, type TranslatableRichText, TranslatableRichTextField, type TranslatableString, TranslatableStringField, VisibilityWrapper, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, YextField, type YextFieldDefinition, type YextSchemaField, type YextStructEntityField, YextStructFieldSelector, addHeadingAlignmentMigration, applyAnalytics, applyHeaderScript, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, createSearchAnalyticsConfig, createSearchHeadlessConfig, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, fetchLocalesToPathsForEntity, fetchNearbyLocations, fetchReviewsForEntity, filterComponentsFromConfig, filterMaxWidths, getAggregateRating, getAnalyticsScopeHash, getFontWeightOptions, getFontWeightOverrideOptions, getLocationPath, getMaxWidthOptions, getPageMetadata, headingVariants, i18nComponentsInstance, i18nPlatformInstance, migrate, migrationRegistry, msg, normalizeSlug, pt, resolveComponentData, resolveYextEntityField, resolveYextStructField, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, useOverflow, usePlatformBridgeDocument, usePlatformBridgeEntityFields, usePlatformTranslation, useTailwindConfig, useTemplateProps, validateSlug, withPropOverrides };
|