@yext/visual-editor 0.0.50 → 0.0.52
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 +1132 -379
- package/dist/index.d.ts +1132 -379
- package/dist/plugin/{debugger-DoQ3QjB9-mGUHujXR.cjs → debugger-DoQ3QjB9-Bbca0PUU.cjs} +1 -1
- package/dist/plugin/{debugger-DoQ3QjB9-CA94CwsZ.js → debugger-DoQ3QjB9-VXZ0M4fV.js} +1 -1
- package/dist/plugin/index-BevviJWA.cjs +2679 -0
- package/dist/plugin/{index-CXh8eLUA.js → index-DMezlkKa.js} +85753 -77673
- 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 +53259 -47316
- package/package.json +12 -8
- package/dist/plugin/index-DCkjgVyf.cjs +0 -2632
package/dist/index.d.cts
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,8 +530,19 @@ interface LocationDocument extends Record<string, any> {
|
|
|
514
530
|
}
|
|
515
531
|
declare const getLocationPath: (location: LocationDocument, locale: string, relativePrefixToRoot: string | undefined) => string | undefined;
|
|
516
532
|
|
|
517
|
-
|
|
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
|
+
* @param additionalLayoutCategories - An optional list of gated categories to retain.
|
|
539
|
+
* @returns A new configuration object with all gated components removed, except for those listed in `additionalLayoutComponents`.
|
|
540
|
+
*/
|
|
541
|
+
declare const filterComponentsFromConfig: <T extends DefaultComponentProps>(config: Config<T>, additionalLayoutComponents?: string[], additionalLayoutCategories?: string[]) => Config<T>;
|
|
542
|
+
|
|
543
|
+
type TranslatableCTA = Omit<CTA$1, "label" | "link"> & {
|
|
518
544
|
label: TranslatableString;
|
|
545
|
+
link: TranslatableString;
|
|
519
546
|
};
|
|
520
547
|
type HeroSectionType = {
|
|
521
548
|
image?: ImageType;
|
|
@@ -667,14 +694,20 @@ declare const ComponentFields: {
|
|
|
667
694
|
};
|
|
668
695
|
};
|
|
669
696
|
|
|
697
|
+
interface Metadata {
|
|
698
|
+
contentEndpointIdEnvVar?: string;
|
|
699
|
+
entityTypeEnvVar?: string;
|
|
700
|
+
experienceKeyEnvVar?: string;
|
|
701
|
+
}
|
|
670
702
|
type EditorProps = {
|
|
671
703
|
document: any;
|
|
672
704
|
componentRegistry: Map<string, Config<any>>;
|
|
673
705
|
themeConfig?: ThemeConfig;
|
|
674
706
|
localDev?: boolean;
|
|
675
707
|
forceThemeMode?: boolean;
|
|
708
|
+
metadata?: Metadata;
|
|
676
709
|
};
|
|
677
|
-
declare const Editor: ({ document, componentRegistry, themeConfig, localDev, forceThemeMode, }: EditorProps) => react_jsx_runtime.JSX.Element;
|
|
710
|
+
declare const Editor: ({ document, componentRegistry, themeConfig, localDev, forceThemeMode, metadata, }: EditorProps) => react_jsx_runtime.JSX.Element;
|
|
678
711
|
|
|
679
712
|
type EntityFieldProps = {
|
|
680
713
|
displayName?: string;
|
|
@@ -697,7 +730,7 @@ declare const FontSizeSelector: (label?: string, includeLargeSizes?: boolean) =>
|
|
|
697
730
|
declare const SpacingSelector: (label: string, spacingType: "padding" | "gap", includeDefault: boolean) => Field;
|
|
698
731
|
|
|
699
732
|
type BasicSelectorProps = {
|
|
700
|
-
label
|
|
733
|
+
label?: string;
|
|
701
734
|
translateOptions?: boolean;
|
|
702
735
|
noOptionsPlaceholder?: string;
|
|
703
736
|
noOptionsMessage?: string;
|
|
@@ -723,6 +756,7 @@ type radioOptions = "PHONE_OPTIONS" | "ALIGNMENT" | "BODY_VARIANT" | "JUSTIFY_CO
|
|
|
723
756
|
type selectOptions = keyof Omit<typeof ThemeOptions, radioOptions>;
|
|
724
757
|
type YextBaseField = {
|
|
725
758
|
type: string;
|
|
759
|
+
visible?: boolean;
|
|
726
760
|
};
|
|
727
761
|
type YextArrayField<Props extends {
|
|
728
762
|
[key: string]: any;
|
|
@@ -752,12 +786,23 @@ type YextTextField = YextBaseField & {
|
|
|
752
786
|
type YextOptionalNumberField = YextBaseField & Omit<OptionalNumberFieldProps, "fieldLabel"> & {
|
|
753
787
|
type: "optionalNumber";
|
|
754
788
|
};
|
|
789
|
+
type YextCodeField = YextBaseField & Omit<CodeFieldProps, "fieldLabel"> & {
|
|
790
|
+
type: "code";
|
|
791
|
+
};
|
|
792
|
+
type YextMaxWidthField = YextBaseField & {
|
|
793
|
+
type: "maxWidth";
|
|
794
|
+
};
|
|
795
|
+
type YextTranslatableStringField = YextBaseField & {
|
|
796
|
+
type: "translatableString";
|
|
797
|
+
filter?: RenderEntityFieldFilter<any>;
|
|
798
|
+
showApplyAllOption?: boolean;
|
|
799
|
+
};
|
|
755
800
|
type YextEntitySelectorField<T extends Record<string, any> = Record<string, any>> = YextBaseField & Omit<RenderYextEntityFieldSelectorProps<T>, "label"> & {
|
|
756
801
|
type: "entityField";
|
|
757
802
|
};
|
|
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;
|
|
759
|
-
declare function YextField<T = any>(fieldName:
|
|
760
|
-
declare function YextField<T extends Record<string, any>, U = any>(fieldName:
|
|
803
|
+
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 | YextTranslatableStringField;
|
|
804
|
+
declare function YextField<T = any>(fieldName: MsgString, config: YextFieldConfig<T>): Field<T>;
|
|
805
|
+
declare function YextField<T extends Record<string, any>, U = any>(fieldName: MsgString, config: YextEntitySelectorField<T>): Field<YextEntityField<U>>;
|
|
761
806
|
|
|
762
807
|
declare const KnowledgeGraphIcon: ({ enabled }: {
|
|
763
808
|
enabled: boolean;
|
|
@@ -767,8 +812,9 @@ declare const KnowledgeGraphIcon: ({ enabled }: {
|
|
|
767
812
|
* Generates a translatable string config
|
|
768
813
|
* @param label optional label. Takes in a value from msg.
|
|
769
814
|
* @param filter optional filter for the entity fields that can be embedded.
|
|
815
|
+
* @param showApplyAllOption enables the "Apply to All Locales" button
|
|
770
816
|
*/
|
|
771
|
-
declare function TranslatableStringField<T extends TranslatableString | undefined = TranslatableString>(label?: MsgString, filter?: RenderEntityFieldFilter<any
|
|
817
|
+
declare function TranslatableStringField<T extends TranslatableString | undefined = TranslatableString>(label?: MsgString, filter?: RenderEntityFieldFilter<any>, showApplyAllOption?: boolean): CustomField<T>;
|
|
772
818
|
|
|
773
819
|
/**
|
|
774
820
|
* Generates a translatableRichText field config
|
|
@@ -785,24 +831,51 @@ declare const EmbeddedFieldStringInput: <T extends Record<string, any>>({ value,
|
|
|
785
831
|
filter: RenderEntityFieldFilter<T>;
|
|
786
832
|
}) => react_jsx_runtime.JSX.Element;
|
|
787
833
|
|
|
834
|
+
type codeLanguageOptions = "html" | "css" | "json" | "shell" | "java" | "javascript" | "jsx" | "markdown" | "typescript";
|
|
835
|
+
type CodeFieldProps = {
|
|
836
|
+
fieldLabel: string;
|
|
837
|
+
codeLanguage: codeLanguageOptions;
|
|
838
|
+
};
|
|
839
|
+
declare const CodeField: ({ fieldLabel, codeLanguage, }: CodeFieldProps) => CustomField<number | string>;
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* getMaxWidthOptions returns a list of options including the theme max width,
|
|
843
|
+
* any widths greater than the theme value, or full width.
|
|
844
|
+
*/
|
|
845
|
+
declare const getMaxWidthOptions: () => {
|
|
846
|
+
label: MsgString;
|
|
847
|
+
value: string;
|
|
848
|
+
}[];
|
|
849
|
+
/**
|
|
850
|
+
* filterMaxWidths extracts the theme max width and filters ThemeOptions.MAX_WIDTH
|
|
851
|
+
* to options greater than the theme value
|
|
852
|
+
* @param styleElement the "visual-editor-theme" style tag
|
|
853
|
+
* @returns the current theme value in the form "1000px" and the ThemeOptions.MAX_WIDTH
|
|
854
|
+
* that are greater than that value
|
|
855
|
+
*/
|
|
856
|
+
declare const filterMaxWidths: (styleElement: HTMLStyleElement) => {
|
|
857
|
+
themeValue: string | undefined;
|
|
858
|
+
options: typeof ThemeOptions.MAX_WIDTH;
|
|
859
|
+
};
|
|
860
|
+
|
|
788
861
|
declare const bodyVariants: (props?: ({
|
|
789
862
|
variant?: "sm" | "lg" | "base" | "xs" | null | undefined;
|
|
790
863
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
791
|
-
interface BodyProps extends Omit<React
|
|
864
|
+
interface BodyProps extends Omit<React.HTMLAttributes<HTMLParagraphElement>, "color">, VariantProps<typeof bodyVariants> {
|
|
792
865
|
}
|
|
793
|
-
declare const Body: React
|
|
866
|
+
declare const Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
794
867
|
|
|
795
868
|
declare const buttonVariants: (props?: ({
|
|
796
869
|
variant?: "link" | "secondary" | "primary" | "directoryLink" | "headerFooterMainLink" | "headerFooterSecondaryLink" | null | undefined;
|
|
797
870
|
hasDarkBackground?: boolean | null | undefined;
|
|
798
871
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
799
|
-
interface ButtonProps extends React
|
|
872
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
800
873
|
asChild?: boolean;
|
|
801
874
|
}
|
|
802
|
-
declare const Button: React
|
|
875
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
803
876
|
|
|
804
877
|
interface CTAProps {
|
|
805
|
-
label?: React
|
|
878
|
+
label?: React.ReactNode;
|
|
806
879
|
link?: string;
|
|
807
880
|
linkType?: LinkType;
|
|
808
881
|
eventName?: string;
|
|
@@ -823,11 +896,11 @@ declare const headingVariants: (props?: ({
|
|
|
823
896
|
weight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
|
|
824
897
|
transform?: "none" | "uppercase" | "lowercase" | "capitalize" | null | undefined;
|
|
825
898
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
826
|
-
interface HeadingProps extends Omit<React
|
|
899
|
+
interface HeadingProps extends Omit<React.HTMLAttributes<HTMLHeadingElement>, "color">, VariantProps<typeof headingVariants> {
|
|
827
900
|
level: HeadingLevel;
|
|
828
901
|
semanticLevelOverride?: HeadingLevel | "span";
|
|
829
902
|
}
|
|
830
|
-
declare const Heading: React
|
|
903
|
+
declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
831
904
|
|
|
832
905
|
interface HoursTableAtomProps extends Omit<HoursTableProps$1, "dayOfWeekNames" | "intervalStringsBuilderFn" | "intervalTranslations"> {
|
|
833
906
|
className?: string;
|
|
@@ -840,11 +913,11 @@ interface ImageProps {
|
|
|
840
913
|
width?: number;
|
|
841
914
|
className?: string;
|
|
842
915
|
}
|
|
843
|
-
declare const Image: React
|
|
916
|
+
declare const Image: React.FC<ImageProps>;
|
|
844
917
|
|
|
845
918
|
type MaybeLinkProps = {
|
|
846
919
|
href?: string;
|
|
847
|
-
children?: React
|
|
920
|
+
children?: React.ReactNode;
|
|
848
921
|
className?: string;
|
|
849
922
|
eventName?: string;
|
|
850
923
|
variant?: CTAProps["variant"];
|
|
@@ -861,13 +934,16 @@ declare const MaybeRTF: ({ data, bodyVariant, ...props }: MaybeRTFProps) => reac
|
|
|
861
934
|
declare const pageSectionVariants: (props?: ({
|
|
862
935
|
verticalPadding?: "default" | "sm" | "footer" | "header" | "footerSecondary" | null | undefined;
|
|
863
936
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
864
|
-
|
|
937
|
+
declare const maxWidthVariants: (props?: ({
|
|
938
|
+
maxWidth?: "theme" | "768px" | "960px" | "1024px" | "1280px" | "1440px" | "fullWidth" | null | undefined;
|
|
939
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
940
|
+
interface PageSectionProps extends VariantProps<typeof maxWidthVariants>, React.HTMLAttributes<HTMLDivElement> {
|
|
865
941
|
background?: BackgroundStyle;
|
|
866
942
|
verticalPadding?: VariantProps<typeof pageSectionVariants>["verticalPadding"];
|
|
867
943
|
as?: "div" | "section" | "nav" | "header" | "footer" | "main" | "aside";
|
|
868
944
|
outerClassName?: string;
|
|
869
945
|
}
|
|
870
|
-
declare const PageSection: React
|
|
946
|
+
declare const PageSection: React.ForwardRefExoticComponent<PageSectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
871
947
|
|
|
872
948
|
type PhoneAtomProps = {
|
|
873
949
|
phoneNumber: string;
|
|
@@ -880,22 +956,22 @@ type PhoneAtomProps = {
|
|
|
880
956
|
};
|
|
881
957
|
declare const PhoneAtom: (props: PhoneAtomProps) => react_jsx_runtime.JSX.Element;
|
|
882
958
|
|
|
883
|
-
interface BackgroundProps extends React
|
|
959
|
+
interface BackgroundProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
884
960
|
background?: BackgroundStyle;
|
|
885
961
|
as?: "div" | "section" | "nav" | "header" | "footer" | "main" | "aside";
|
|
886
962
|
}
|
|
887
|
-
declare const Background: React
|
|
963
|
+
declare const Background: React.ForwardRefExoticComponent<BackgroundProps & React.RefAttributes<HTMLDivElement>>;
|
|
888
964
|
|
|
889
965
|
interface VisibilityWrapperProps {
|
|
890
966
|
liveVisibility: boolean;
|
|
891
967
|
isEditing: boolean;
|
|
892
968
|
iconSize?: VariantProps<typeof wrapperVariants>["size"];
|
|
893
|
-
children: React
|
|
969
|
+
children: React.ReactNode;
|
|
894
970
|
}
|
|
895
971
|
declare const wrapperVariants: (props?: ({
|
|
896
972
|
size?: "lg" | "md" | null | undefined;
|
|
897
973
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
898
|
-
declare const VisibilityWrapper: React
|
|
974
|
+
declare const VisibilityWrapper: React.FC<VisibilityWrapperProps>;
|
|
899
975
|
|
|
900
976
|
interface HoursStatusAtomProps {
|
|
901
977
|
hours: HoursType;
|
|
@@ -926,7 +1002,7 @@ type TimestampProps = {
|
|
|
926
1002
|
};
|
|
927
1003
|
declare function Timestamp({ date, option, endDate, timeZone, hideTimeZone, locale, dateFormatOverride, dateTimeFormatOverride, }: TimestampProps): JSX.Element;
|
|
928
1004
|
|
|
929
|
-
declare function Toggle({ className, ...props }: React
|
|
1005
|
+
declare function Toggle({ className, ...props }: React.ComponentProps<typeof TogglePrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
930
1006
|
|
|
931
1007
|
type AggregateRating = {
|
|
932
1008
|
averageRating: number;
|
|
@@ -944,100 +1020,229 @@ declare const ReviewStars: (props: ReviewStarsProps) => react_jsx_runtime.JSX.El
|
|
|
944
1020
|
*/
|
|
945
1021
|
declare function getAggregateRating(document: any): AggregateRating;
|
|
946
1022
|
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
1023
|
+
interface BannerData {
|
|
1024
|
+
/**
|
|
1025
|
+
* The rich text to display. It can be linked to a Yext entity field or set as a constant value.
|
|
1026
|
+
* @defaultValue "Banner Text" (constant)
|
|
1027
|
+
*/
|
|
1028
|
+
text: YextEntityField<TranslatableRichText>;
|
|
1029
|
+
}
|
|
1030
|
+
interface BannerStyles {
|
|
1031
|
+
/**
|
|
1032
|
+
* The background color of the section.
|
|
1033
|
+
* @defaultValue Background Color 6
|
|
1034
|
+
*/
|
|
1035
|
+
backgroundColor?: BackgroundStyle;
|
|
1036
|
+
/**
|
|
1037
|
+
* The horizontal alignment of the text.
|
|
1038
|
+
* @defaultValue center
|
|
1039
|
+
*/
|
|
1040
|
+
textAlignment: "left" | "right" | "center";
|
|
1041
|
+
}
|
|
1042
|
+
interface BannerSectionProps {
|
|
1043
|
+
/**
|
|
1044
|
+
* This object contains the content to be displayed by the component.
|
|
1045
|
+
* @propCategory Data Props
|
|
1046
|
+
*/
|
|
1047
|
+
data: BannerData;
|
|
1048
|
+
/**
|
|
1049
|
+
* This object contains properties for customizing the component's appearance.
|
|
1050
|
+
* @propCategory Style Props
|
|
1051
|
+
*/
|
|
1052
|
+
styles: BannerStyles;
|
|
1053
|
+
/**
|
|
1054
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1055
|
+
* @defaultValue true
|
|
1056
|
+
*/
|
|
955
1057
|
liveVisibility: boolean;
|
|
956
|
-
|
|
1058
|
+
/**
|
|
1059
|
+
* Indicates which props should not be checked for missing translations.
|
|
1060
|
+
* @internal
|
|
1061
|
+
*/
|
|
1062
|
+
ignoreLocaleWarning?: string[];
|
|
1063
|
+
}
|
|
1064
|
+
/**
|
|
1065
|
+
* 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.
|
|
1066
|
+
* Available on Location templates.
|
|
1067
|
+
*/
|
|
957
1068
|
declare const BannerSection: ComponentConfig<BannerSectionProps>;
|
|
958
1069
|
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
1070
|
+
interface BreadcrumbsData {
|
|
1071
|
+
/**
|
|
1072
|
+
* The display label for the first link in the breadcrumb trail (the top-level directory page).
|
|
1073
|
+
* @defaultValue "Directory Root"
|
|
1074
|
+
*/
|
|
1075
|
+
directoryRoot: TranslatableString;
|
|
1076
|
+
}
|
|
1077
|
+
interface BreadcrumbsStyles {
|
|
1078
|
+
/**
|
|
1079
|
+
* The background color of the section.
|
|
1080
|
+
* @defaultValue Background Color 1
|
|
1081
|
+
*/
|
|
1082
|
+
backgroundColor?: BackgroundStyle;
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* @public Defines the complete set of properties for the BreadcrumbsSection component.
|
|
1086
|
+
*/
|
|
1087
|
+
interface BreadcrumbsSectionProps {
|
|
1088
|
+
/**
|
|
1089
|
+
* This object contains the content used by the component.
|
|
1090
|
+
* @propCategory Data Props
|
|
1091
|
+
*/
|
|
1092
|
+
data: BreadcrumbsData;
|
|
1093
|
+
/**
|
|
1094
|
+
* This object contains properties for customizing the component's appearance.
|
|
1095
|
+
* @propCategory Style Props
|
|
1096
|
+
*/
|
|
1097
|
+
styles: BreadcrumbsStyles;
|
|
1098
|
+
/**
|
|
1099
|
+
* @internal
|
|
1100
|
+
*/
|
|
1101
|
+
analytics: {
|
|
967
1102
|
scope?: string;
|
|
968
1103
|
};
|
|
1104
|
+
/**
|
|
1105
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1106
|
+
* @defaultValue true
|
|
1107
|
+
*/
|
|
969
1108
|
liveVisibility: boolean;
|
|
970
|
-
}
|
|
1109
|
+
}
|
|
1110
|
+
/**
|
|
1111
|
+
* 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.
|
|
1112
|
+
* Available on Location templates.
|
|
1113
|
+
*/
|
|
971
1114
|
declare const BreadcrumbsSection: ComponentConfig<BreadcrumbsSectionProps>;
|
|
972
1115
|
|
|
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
|
-
};
|
|
1116
|
+
interface CoreInfoData {
|
|
1117
|
+
/** Content for the "Information" column. */
|
|
1118
|
+
info: {
|
|
1119
|
+
headingText: YextEntityField<TranslatableString>;
|
|
1120
|
+
address: YextEntityField<AddressType>;
|
|
1121
|
+
phoneNumbers: Array<{
|
|
1122
|
+
number: YextEntityField<string>;
|
|
1123
|
+
label: TranslatableString;
|
|
1124
|
+
}>;
|
|
1125
|
+
emails: YextEntityField<string[]>;
|
|
1126
|
+
};
|
|
1127
|
+
/** Content for the "Hours" column. */
|
|
1128
|
+
hours: {
|
|
1129
|
+
headingText: YextEntityField<TranslatableString>;
|
|
1130
|
+
hours: YextEntityField<HoursType>;
|
|
992
1131
|
};
|
|
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
|
-
};
|
|
1132
|
+
/** Content for the "Services" column. */
|
|
1133
|
+
services: {
|
|
1134
|
+
headingText: YextEntityField<TranslatableString>;
|
|
1135
|
+
servicesList: YextEntityField<TranslatableString[]>;
|
|
1011
1136
|
};
|
|
1012
|
-
|
|
1137
|
+
}
|
|
1138
|
+
interface CoreInfoStyles {
|
|
1139
|
+
/**
|
|
1140
|
+
* The background color of the section.
|
|
1141
|
+
* @defaultValue `Background Color 1`
|
|
1142
|
+
*/
|
|
1143
|
+
backgroundColor?: BackgroundStyle;
|
|
1144
|
+
/** Styling for all column headings. */
|
|
1145
|
+
heading: {
|
|
1146
|
+
level: HeadingLevel;
|
|
1147
|
+
align: "left" | "center" | "right";
|
|
1148
|
+
};
|
|
1149
|
+
/** Styling for the "Information" column. */
|
|
1150
|
+
info: {
|
|
1151
|
+
showGetDirectionsLink: boolean;
|
|
1152
|
+
phoneFormat: "domestic" | "international";
|
|
1153
|
+
includePhoneHyperlink: boolean;
|
|
1154
|
+
emailsListLength?: number;
|
|
1155
|
+
ctaVariant: CTAProps["variant"];
|
|
1156
|
+
};
|
|
1157
|
+
/** Styling for the "Hours" column. */
|
|
1158
|
+
hours: {
|
|
1159
|
+
startOfWeek: keyof DayOfWeekNames | "today";
|
|
1160
|
+
collapseDays: boolean;
|
|
1161
|
+
showAdditionalHoursText: boolean;
|
|
1162
|
+
};
|
|
1163
|
+
}
|
|
1164
|
+
interface CoreInfoSectionProps {
|
|
1165
|
+
/**
|
|
1166
|
+
* This object contains all the content to be displayed within the three columns.
|
|
1167
|
+
* @propCategory Data Props
|
|
1168
|
+
*/
|
|
1169
|
+
data: CoreInfoData;
|
|
1170
|
+
/**
|
|
1171
|
+
* This object contains properties for customizing the component's appearance.
|
|
1172
|
+
* @propCategory Style Props
|
|
1173
|
+
*/
|
|
1174
|
+
styles: CoreInfoStyles;
|
|
1175
|
+
/** @internal */
|
|
1176
|
+
analytics: {
|
|
1013
1177
|
scope?: string;
|
|
1014
1178
|
};
|
|
1179
|
+
/**
|
|
1180
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1181
|
+
* @defaultValue true
|
|
1182
|
+
*/
|
|
1015
1183
|
liveVisibility: boolean;
|
|
1016
1184
|
}
|
|
1185
|
+
/**
|
|
1186
|
+
* 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.
|
|
1187
|
+
* Available on Location templates.
|
|
1188
|
+
*/
|
|
1017
1189
|
declare const CoreInfoSection: ComponentConfig<CoreInfoSectionProps>;
|
|
1018
1190
|
|
|
1019
|
-
interface
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1191
|
+
interface EventData {
|
|
1192
|
+
/**
|
|
1193
|
+
* The main heading for the entire events section.
|
|
1194
|
+
* @defaultValue "Upcoming Events" (constant)
|
|
1195
|
+
*/
|
|
1196
|
+
heading: YextEntityField<TranslatableString>;
|
|
1197
|
+
/**
|
|
1198
|
+
* The source of event data, which can be linked to a Yext field or provided as a constant value.
|
|
1199
|
+
* @defaultValue A list of 3 placeholder events.
|
|
1200
|
+
*/
|
|
1201
|
+
events: YextEntityField<EventSectionType>;
|
|
1202
|
+
}
|
|
1203
|
+
interface EventStyles {
|
|
1204
|
+
/**
|
|
1205
|
+
* The background color of the section.
|
|
1206
|
+
* @defaultValue Background Color 3
|
|
1207
|
+
*/
|
|
1208
|
+
backgroundColor?: BackgroundStyle;
|
|
1209
|
+
/** Styling for the heading. */
|
|
1210
|
+
heading: {
|
|
1211
|
+
level: HeadingLevel;
|
|
1212
|
+
align: "left" | "center" | "right";
|
|
1213
|
+
};
|
|
1214
|
+
/** Styling for all the cards. */
|
|
1215
|
+
cards: {
|
|
1216
|
+
headingLevel: HeadingLevel;
|
|
1025
1217
|
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
|
-
};
|
|
1218
|
+
ctaVariant: CTAProps["variant"];
|
|
1035
1219
|
};
|
|
1036
|
-
|
|
1220
|
+
}
|
|
1221
|
+
interface EventSectionProps {
|
|
1222
|
+
/**
|
|
1223
|
+
* This object contains the content to be displayed by the component.
|
|
1224
|
+
* @propCategory Data Props
|
|
1225
|
+
*/
|
|
1226
|
+
data: EventData;
|
|
1227
|
+
/**
|
|
1228
|
+
* This object contains properties for customizing the component's appearance.
|
|
1229
|
+
* @propCategory Style Props
|
|
1230
|
+
*/
|
|
1231
|
+
styles: EventStyles;
|
|
1232
|
+
/** @internal */
|
|
1233
|
+
analytics: {
|
|
1037
1234
|
scope?: string;
|
|
1038
1235
|
};
|
|
1236
|
+
/**
|
|
1237
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1238
|
+
* @defaultValue true
|
|
1239
|
+
*/
|
|
1039
1240
|
liveVisibility: boolean;
|
|
1040
1241
|
}
|
|
1242
|
+
/**
|
|
1243
|
+
* 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.
|
|
1244
|
+
* Available on Location templates.
|
|
1245
|
+
*/
|
|
1041
1246
|
declare const EventSection: ComponentConfig<EventSectionProps>;
|
|
1042
1247
|
|
|
1043
1248
|
interface ImageStylingProps {
|
|
@@ -1045,219 +1250,564 @@ interface ImageStylingProps {
|
|
|
1045
1250
|
width?: number;
|
|
1046
1251
|
}
|
|
1047
1252
|
|
|
1253
|
+
interface HeroData {
|
|
1254
|
+
/**
|
|
1255
|
+
* The primary business name displayed in the hero.
|
|
1256
|
+
* @defaultValue "Business Name" (constant)
|
|
1257
|
+
*/
|
|
1258
|
+
businessName: YextEntityField<TranslatableString>;
|
|
1259
|
+
/**
|
|
1260
|
+
* A location-based modifier or slogan (e.g., "Serving Downtown").
|
|
1261
|
+
* @defaultValue "Geomodifier" (constant)
|
|
1262
|
+
*/
|
|
1263
|
+
localGeoModifier: YextEntityField<TranslatableString>;
|
|
1264
|
+
/**
|
|
1265
|
+
* The entity's hours data, used to display an "Open/Closed" status.
|
|
1266
|
+
* @defaultValue 'hours' field
|
|
1267
|
+
*/
|
|
1268
|
+
hours: YextEntityField<HoursType>;
|
|
1269
|
+
/**
|
|
1270
|
+
* The main hero content, including an image and primary/secondary call-to-action buttons.
|
|
1271
|
+
* @defaultValue Placeholder image and CTAs
|
|
1272
|
+
*/
|
|
1273
|
+
hero: YextStructEntityField<HeroSectionType>;
|
|
1274
|
+
/**
|
|
1275
|
+
* If 'true', displays the entity's average review rating.
|
|
1276
|
+
* @defaultValue true
|
|
1277
|
+
*/
|
|
1278
|
+
showAverageReview: boolean;
|
|
1279
|
+
}
|
|
1280
|
+
interface HeroStyles {
|
|
1281
|
+
/**
|
|
1282
|
+
* The background color for the entire section.
|
|
1283
|
+
* @defaultValue Background Color 1
|
|
1284
|
+
*/
|
|
1285
|
+
backgroundColor?: BackgroundStyle;
|
|
1286
|
+
/**
|
|
1287
|
+
* Positions the image to the left or right of the text content.
|
|
1288
|
+
* @defaultValue right
|
|
1289
|
+
*/
|
|
1290
|
+
imageOrientation: "left" | "right";
|
|
1291
|
+
/**
|
|
1292
|
+
* The HTML heading level for the business name.
|
|
1293
|
+
* @defaultValue 3
|
|
1294
|
+
*/
|
|
1295
|
+
businessNameLevel: HeadingLevel;
|
|
1296
|
+
/**
|
|
1297
|
+
* The HTML heading level for the local geo-modifier.
|
|
1298
|
+
* @defaultValue 1
|
|
1299
|
+
*/
|
|
1300
|
+
localGeoModifierLevel: HeadingLevel;
|
|
1301
|
+
/**
|
|
1302
|
+
* The visual style variant for the primary call-to-action button.
|
|
1303
|
+
* @defaultValue primary
|
|
1304
|
+
*/
|
|
1305
|
+
primaryCTA: CTAProps["variant"];
|
|
1306
|
+
/**
|
|
1307
|
+
* The visual style variant for the secondary call-to-action button.
|
|
1308
|
+
* @defaultValue secondary
|
|
1309
|
+
*/
|
|
1310
|
+
secondaryCTA: CTAProps["variant"];
|
|
1311
|
+
/**
|
|
1312
|
+
* Styling options for the hero image, such as aspect ratio.
|
|
1313
|
+
*/
|
|
1314
|
+
image: ImageStylingProps;
|
|
1315
|
+
}
|
|
1048
1316
|
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?: {
|
|
1317
|
+
/**
|
|
1318
|
+
* This object contains the content to be displayed by the component.
|
|
1319
|
+
* @propCategory Data Props
|
|
1320
|
+
*/
|
|
1321
|
+
data: HeroData;
|
|
1322
|
+
/**
|
|
1323
|
+
* This object contains properties for customizing the component's appearance.
|
|
1324
|
+
* @propCategory Style Props
|
|
1325
|
+
*/
|
|
1326
|
+
styles: HeroStyles;
|
|
1327
|
+
/** @internal */
|
|
1328
|
+
analytics: {
|
|
1066
1329
|
scope?: string;
|
|
1067
1330
|
};
|
|
1331
|
+
/**
|
|
1332
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1333
|
+
* @defaultValue true
|
|
1334
|
+
*/
|
|
1068
1335
|
liveVisibility?: boolean;
|
|
1069
1336
|
}
|
|
1070
1337
|
declare const HeroSection: ComponentConfig<HeroSectionProps>;
|
|
1071
1338
|
|
|
1072
|
-
interface
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1339
|
+
interface InsightData {
|
|
1340
|
+
/**
|
|
1341
|
+
* The main heading for the entire insights section.
|
|
1342
|
+
* @defaultValue "Insights"
|
|
1343
|
+
*/
|
|
1344
|
+
heading: YextEntityField<TranslatableString>;
|
|
1345
|
+
/**
|
|
1346
|
+
* The source of the insight data, which can be linked to a Yext field or provided as a constant.
|
|
1347
|
+
* @defaultValue A list of 3 placeholder insights.
|
|
1348
|
+
*/
|
|
1349
|
+
insights: YextEntityField<InsightSectionType>;
|
|
1350
|
+
}
|
|
1351
|
+
interface InsightStyles {
|
|
1352
|
+
/**
|
|
1353
|
+
* The background color for the entire section, selected from the theme.
|
|
1354
|
+
* @defaultValue Background Color 2
|
|
1355
|
+
*/
|
|
1356
|
+
backgroundColor?: BackgroundStyle;
|
|
1357
|
+
/** Styling for the main section heading. */
|
|
1358
|
+
heading: {
|
|
1359
|
+
level: HeadingLevel;
|
|
1360
|
+
align: "left" | "center" | "right";
|
|
1361
|
+
};
|
|
1362
|
+
/** Styling for the individual insight cards. */
|
|
1363
|
+
cards: {
|
|
1364
|
+
headingLevel: HeadingLevel;
|
|
1078
1365
|
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
|
-
};
|
|
1366
|
+
ctaVariant: CTAProps["variant"];
|
|
1088
1367
|
};
|
|
1089
|
-
|
|
1368
|
+
}
|
|
1369
|
+
interface InsightSectionProps {
|
|
1370
|
+
/**
|
|
1371
|
+
* This object contains the content to be displayed by the component.
|
|
1372
|
+
* @propCategory Data Props
|
|
1373
|
+
*/
|
|
1374
|
+
data: InsightData;
|
|
1375
|
+
/**
|
|
1376
|
+
* This object contains properties for customizing the component's appearance.
|
|
1377
|
+
* @propCategory Style Props
|
|
1378
|
+
*/
|
|
1379
|
+
styles: InsightStyles;
|
|
1380
|
+
/** @internal */
|
|
1381
|
+
analytics: {
|
|
1090
1382
|
scope?: string;
|
|
1091
1383
|
};
|
|
1384
|
+
/**
|
|
1385
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1386
|
+
* @defaultValue true
|
|
1387
|
+
*/
|
|
1092
1388
|
liveVisibility: boolean;
|
|
1093
1389
|
}
|
|
1390
|
+
/**
|
|
1391
|
+
* 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.
|
|
1392
|
+
* Available on Location templates.
|
|
1393
|
+
*/
|
|
1094
1394
|
declare const InsightSection: ComponentConfig<InsightSectionProps>;
|
|
1095
1395
|
|
|
1096
|
-
interface
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1396
|
+
interface NearbyLocationsData {
|
|
1397
|
+
/**
|
|
1398
|
+
* The main heading for the entire section.
|
|
1399
|
+
* @defaultValue "Nearby Locations" (constant)
|
|
1400
|
+
*/
|
|
1401
|
+
heading: YextEntityField<TranslatableString>;
|
|
1402
|
+
/**
|
|
1403
|
+
* The central coordinate (`latitude`, `longitude`) to search from.
|
|
1404
|
+
* @defaultValue 'yextDisplayCoordinate' field
|
|
1405
|
+
*/
|
|
1406
|
+
coordinate: YextEntityField<Coordinate>;
|
|
1407
|
+
/**
|
|
1408
|
+
* The search radius in miles.
|
|
1409
|
+
* @defaultValue 10
|
|
1410
|
+
*/
|
|
1411
|
+
radius: number;
|
|
1412
|
+
/**
|
|
1413
|
+
* The maximum number of locations to find and display.
|
|
1414
|
+
* @defaultValue 3
|
|
1415
|
+
*/
|
|
1416
|
+
limit: number;
|
|
1417
|
+
}
|
|
1418
|
+
interface NearbyLocationsStyles {
|
|
1419
|
+
/**
|
|
1420
|
+
* The background color for the entire section.
|
|
1421
|
+
* @defaultValue Background Color 1
|
|
1422
|
+
*/
|
|
1423
|
+
backgroundColor?: BackgroundStyle;
|
|
1424
|
+
/** Styling for the main section heading. */
|
|
1425
|
+
heading: {
|
|
1426
|
+
level: HeadingLevel;
|
|
1427
|
+
align: "left" | "center" | "right";
|
|
1428
|
+
};
|
|
1429
|
+
/** Styling for the individual location cards. */
|
|
1430
|
+
cards: {
|
|
1431
|
+
headingLevel: HeadingLevel;
|
|
1104
1432
|
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
1433
|
};
|
|
1122
|
-
|
|
1434
|
+
/**
|
|
1435
|
+
* The display format for phone numbers on the cards.
|
|
1436
|
+
* @defaultValue 'domestic'
|
|
1437
|
+
*/
|
|
1438
|
+
phoneNumberFormat: "domestic" | "international";
|
|
1439
|
+
/**
|
|
1440
|
+
* If `true`, wraps phone numbers in a clickable `tel:` hyperlink.
|
|
1441
|
+
* @defaultValue false
|
|
1442
|
+
*/
|
|
1443
|
+
phoneNumberLink: boolean;
|
|
1444
|
+
/** Styling for the hours display on each card. */
|
|
1445
|
+
hours: {
|
|
1446
|
+
showCurrentStatus: boolean;
|
|
1447
|
+
timeFormat?: "12h" | "24h";
|
|
1448
|
+
dayOfWeekFormat?: "short" | "long";
|
|
1449
|
+
showDayNames?: boolean;
|
|
1450
|
+
};
|
|
1451
|
+
}
|
|
1452
|
+
interface NearbyLocationsSectionProps {
|
|
1453
|
+
/**
|
|
1454
|
+
* This object defines the search parameters for finding nearby locations.
|
|
1455
|
+
* @propCategory Data Props
|
|
1456
|
+
*/
|
|
1457
|
+
data: NearbyLocationsData;
|
|
1458
|
+
/**
|
|
1459
|
+
* This object contains extensive properties for customizing the component's appearance.
|
|
1460
|
+
* @propCategory Style Props
|
|
1461
|
+
*/
|
|
1462
|
+
styles: NearbyLocationsStyles;
|
|
1463
|
+
/** @internal */
|
|
1464
|
+
analytics: {
|
|
1123
1465
|
scope?: string;
|
|
1124
1466
|
};
|
|
1467
|
+
/**
|
|
1468
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1469
|
+
* @defaultValue true
|
|
1470
|
+
*/
|
|
1125
1471
|
liveVisibility: boolean;
|
|
1126
|
-
contentEndpointIdEnvVar?: string;
|
|
1127
1472
|
}
|
|
1473
|
+
/**
|
|
1474
|
+
* 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.
|
|
1475
|
+
* Available on Location templates.
|
|
1476
|
+
*/
|
|
1128
1477
|
declare const NearbyLocationsSection: ComponentConfig<NearbyLocationsSectionProps>;
|
|
1129
1478
|
|
|
1130
|
-
interface
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1479
|
+
interface ProductData {
|
|
1480
|
+
/**
|
|
1481
|
+
* The main heading for the entire products section.
|
|
1482
|
+
* @defaultValue "Featured Products" (constant)
|
|
1483
|
+
*/
|
|
1484
|
+
heading: YextEntityField<TranslatableString>;
|
|
1485
|
+
/**
|
|
1486
|
+
* The source of the product data, which can be linked to a Yext field or provided as a constant.
|
|
1487
|
+
* @defaultValue A list of 3 placeholder products.
|
|
1488
|
+
*/
|
|
1489
|
+
products: YextEntityField<ProductSectionType>;
|
|
1490
|
+
}
|
|
1491
|
+
interface ProductStyles {
|
|
1492
|
+
/**
|
|
1493
|
+
* The background color for the entire section.
|
|
1494
|
+
* @defaultValue Background Color 2
|
|
1495
|
+
*/
|
|
1496
|
+
backgroundColor?: BackgroundStyle;
|
|
1497
|
+
/** Styling for the main section heading. */
|
|
1498
|
+
heading: {
|
|
1499
|
+
level: HeadingLevel;
|
|
1500
|
+
align: "left" | "center" | "right";
|
|
1501
|
+
};
|
|
1502
|
+
/** Styling for the individual product cards. */
|
|
1503
|
+
cards: {
|
|
1504
|
+
headingLevel: HeadingLevel;
|
|
1136
1505
|
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
|
-
};
|
|
1506
|
+
ctaVariant: CTAProps["variant"];
|
|
1146
1507
|
};
|
|
1147
|
-
|
|
1508
|
+
}
|
|
1509
|
+
interface ProductSectionProps {
|
|
1510
|
+
/**
|
|
1511
|
+
* This object contains the content to be displayed by the component.
|
|
1512
|
+
* @propCategory Data Props
|
|
1513
|
+
*/
|
|
1514
|
+
data: ProductData;
|
|
1515
|
+
/**
|
|
1516
|
+
* This object contains properties for customizing the component's appearance.
|
|
1517
|
+
* @propCategory Style Props
|
|
1518
|
+
*/
|
|
1519
|
+
styles: ProductStyles;
|
|
1520
|
+
/** @internal */
|
|
1521
|
+
analytics: {
|
|
1148
1522
|
scope?: string;
|
|
1149
1523
|
};
|
|
1524
|
+
/**
|
|
1525
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1526
|
+
* @defaultValue true
|
|
1527
|
+
*/
|
|
1150
1528
|
liveVisibility: boolean;
|
|
1151
1529
|
}
|
|
1530
|
+
/**
|
|
1531
|
+
* 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.
|
|
1532
|
+
* Available on Location templates.
|
|
1533
|
+
*/
|
|
1152
1534
|
declare const ProductSection: ComponentConfig<ProductSectionProps>;
|
|
1153
1535
|
|
|
1536
|
+
interface PromoData {
|
|
1537
|
+
/**
|
|
1538
|
+
* The source for the promotional content, including an image, title, description, and a call-to-action.
|
|
1539
|
+
* @defaultValue Placeholder content for a featured promotion.
|
|
1540
|
+
*/
|
|
1541
|
+
promo: YextStructEntityField<PromoSectionType>;
|
|
1542
|
+
}
|
|
1543
|
+
interface PromoStyles {
|
|
1544
|
+
/**
|
|
1545
|
+
* The background color for the entire section.
|
|
1546
|
+
* @defaultValue Background Color 1
|
|
1547
|
+
*/
|
|
1548
|
+
backgroundColor?: BackgroundStyle;
|
|
1549
|
+
/**
|
|
1550
|
+
* Positions the image to the left or right of the text content.
|
|
1551
|
+
* @defaultValue 'left'
|
|
1552
|
+
*/
|
|
1553
|
+
orientation: "left" | "right";
|
|
1554
|
+
/**
|
|
1555
|
+
* The visual style variant for the call-to-action button.
|
|
1556
|
+
* @defaultValue 'primary'
|
|
1557
|
+
*/
|
|
1558
|
+
ctaVariant: CTAProps["variant"];
|
|
1559
|
+
/** Styling for the promo's title. */
|
|
1560
|
+
heading: {
|
|
1561
|
+
level: HeadingLevel;
|
|
1562
|
+
align: "left" | "center" | "right";
|
|
1563
|
+
};
|
|
1564
|
+
/**
|
|
1565
|
+
* Styling options for the promo image, such as aspect ratio.
|
|
1566
|
+
*/
|
|
1567
|
+
image: ImageStylingProps;
|
|
1568
|
+
}
|
|
1154
1569
|
interface PromoSectionProps {
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
};
|
|
1168
|
-
analytics?: {
|
|
1570
|
+
/**
|
|
1571
|
+
* This object contains the content to be displayed by the component.
|
|
1572
|
+
* @propCategory Data Props
|
|
1573
|
+
*/
|
|
1574
|
+
data: PromoData;
|
|
1575
|
+
/**
|
|
1576
|
+
* This object contains properties for customizing the component's appearance.
|
|
1577
|
+
* @propCategory Style Props
|
|
1578
|
+
*/
|
|
1579
|
+
styles: PromoStyles;
|
|
1580
|
+
/** @internal */
|
|
1581
|
+
analytics: {
|
|
1169
1582
|
scope?: string;
|
|
1170
1583
|
};
|
|
1584
|
+
/**
|
|
1585
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1586
|
+
* @defaultValue true
|
|
1587
|
+
*/
|
|
1171
1588
|
liveVisibility?: boolean;
|
|
1172
1589
|
}
|
|
1590
|
+
/**
|
|
1591
|
+
* 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.
|
|
1592
|
+
* Available on Location templates.
|
|
1593
|
+
*/
|
|
1173
1594
|
declare const PromoSection: ComponentConfig<PromoSectionProps>;
|
|
1174
1595
|
|
|
1175
|
-
interface
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1596
|
+
interface PhotoGalleryData {
|
|
1597
|
+
/**
|
|
1598
|
+
* The main heading for the photo gallery.
|
|
1599
|
+
* @defaultValue "Gallery" (constant)
|
|
1600
|
+
*/
|
|
1601
|
+
heading: YextEntityField<TranslatableString>;
|
|
1602
|
+
/**
|
|
1603
|
+
* The source of the image data, which can be linked to a Yext field or provided as a constant.
|
|
1604
|
+
* @defaultValue A list of 3 placeholder images.
|
|
1605
|
+
*/
|
|
1606
|
+
images: YextEntityField<ImageType[] | ComplexImageType[] | GalleryImageType[]>;
|
|
1607
|
+
}
|
|
1608
|
+
interface PhotoGalleryStyles {
|
|
1609
|
+
/**
|
|
1610
|
+
* The background color for the entire section, selected from the theme.
|
|
1611
|
+
* @defaultValue Background Color 1
|
|
1612
|
+
*/
|
|
1613
|
+
backgroundColor?: BackgroundStyle;
|
|
1614
|
+
/** Styling for the main section heading. */
|
|
1615
|
+
heading: {
|
|
1616
|
+
level: HeadingLevel;
|
|
1617
|
+
align: "left" | "center" | "right";
|
|
1187
1618
|
};
|
|
1619
|
+
/** Styling options for the gallery images, such as aspect ratio. */
|
|
1620
|
+
image: ImageStylingProps;
|
|
1621
|
+
}
|
|
1622
|
+
interface PhotoGallerySectionProps {
|
|
1623
|
+
/**
|
|
1624
|
+
* This object contains the content to be displayed by the component.
|
|
1625
|
+
* @propCategory Data Props
|
|
1626
|
+
*/
|
|
1627
|
+
data: PhotoGalleryData;
|
|
1628
|
+
/**
|
|
1629
|
+
* This object contains properties for customizing the component's appearance.
|
|
1630
|
+
* @propCategory Style Props
|
|
1631
|
+
*/
|
|
1632
|
+
styles: PhotoGalleryStyles;
|
|
1633
|
+
/**
|
|
1634
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1635
|
+
* @defaultValue true
|
|
1636
|
+
*/
|
|
1188
1637
|
liveVisibility: boolean;
|
|
1189
1638
|
}
|
|
1639
|
+
/**
|
|
1640
|
+
* 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.
|
|
1641
|
+
* Available on Location templates.
|
|
1642
|
+
*/
|
|
1190
1643
|
declare const PhotoGallerySection: ComponentConfig<PhotoGallerySectionProps>;
|
|
1191
1644
|
|
|
1192
|
-
interface
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1645
|
+
interface FAQData {
|
|
1646
|
+
/**
|
|
1647
|
+
* The main heading for the entire events section.
|
|
1648
|
+
* @defaultValue "Frequently Asked Questions" (constant)
|
|
1649
|
+
*/
|
|
1650
|
+
heading: YextEntityField<TranslatableString>;
|
|
1651
|
+
/**
|
|
1652
|
+
* The source of the FAQ data (questions and answers), which can be linked to a Yext field or provided as a constant.
|
|
1653
|
+
* @defaultValue A list of 3 placeholder FAQs.
|
|
1654
|
+
*/
|
|
1655
|
+
faqs: YextEntityField<FAQSectionType>;
|
|
1656
|
+
}
|
|
1657
|
+
interface FAQStyles {
|
|
1658
|
+
/**
|
|
1659
|
+
* The background color of the section.
|
|
1660
|
+
* @defaultValue Background Color 3
|
|
1661
|
+
*/
|
|
1662
|
+
backgroundColor?: BackgroundStyle;
|
|
1663
|
+
/** Styling for the heading. */
|
|
1664
|
+
heading: {
|
|
1665
|
+
level: HeadingLevel;
|
|
1666
|
+
align: "left" | "center" | "right";
|
|
1203
1667
|
};
|
|
1204
|
-
|
|
1205
|
-
|
|
1668
|
+
}
|
|
1669
|
+
interface FAQSectionProps {
|
|
1670
|
+
/**
|
|
1671
|
+
* This object contains the content to be displayed by the component.
|
|
1672
|
+
* @propCategory Data Props
|
|
1673
|
+
*/
|
|
1674
|
+
data: FAQData;
|
|
1675
|
+
/**
|
|
1676
|
+
* This object contains properties for customizing the component's appearance.
|
|
1677
|
+
* @propCategory Style Props
|
|
1678
|
+
*/
|
|
1679
|
+
styles: FAQStyles;
|
|
1680
|
+
/** @internal */
|
|
1681
|
+
analytics: {
|
|
1206
1682
|
scope?: string;
|
|
1207
1683
|
};
|
|
1684
|
+
/**
|
|
1685
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1686
|
+
* @defaultValue true
|
|
1687
|
+
*/
|
|
1688
|
+
liveVisibility: boolean;
|
|
1208
1689
|
}
|
|
1690
|
+
/**
|
|
1691
|
+
* 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.
|
|
1692
|
+
* Available on Location templates.
|
|
1693
|
+
*/
|
|
1209
1694
|
declare const FAQSection: ComponentConfig<FAQSectionProps>;
|
|
1210
1695
|
|
|
1211
1696
|
type ReviewsSectionProps = {
|
|
1212
1697
|
backgroundColor: BackgroundStyle;
|
|
1213
|
-
analytics
|
|
1698
|
+
analytics: {
|
|
1214
1699
|
scope?: string;
|
|
1215
1700
|
};
|
|
1216
1701
|
};
|
|
1217
1702
|
declare const ReviewsSection: ComponentConfig<ReviewsSectionProps>;
|
|
1218
1703
|
|
|
1219
|
-
interface
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1704
|
+
interface TestimonialData {
|
|
1705
|
+
/**
|
|
1706
|
+
* The main heading for the entire testimonials section.
|
|
1707
|
+
* @defaultValue "Featured Testimonials" (constant)
|
|
1708
|
+
*/
|
|
1709
|
+
heading: YextEntityField<TranslatableString>;
|
|
1710
|
+
/**
|
|
1711
|
+
* The source of the testimonial data, which can be linked to a Yext field or provided as a constant.
|
|
1712
|
+
* @defaultValue A list of 3 placeholder testimonials.
|
|
1713
|
+
*/
|
|
1714
|
+
testimonials: YextEntityField<TestimonialSectionType>;
|
|
1715
|
+
}
|
|
1716
|
+
interface TestimonialStyles {
|
|
1717
|
+
/**
|
|
1718
|
+
* The background color for the entire section, selected from the theme.
|
|
1719
|
+
* @defaultValue Background Color 2
|
|
1720
|
+
*/
|
|
1721
|
+
backgroundColor?: BackgroundStyle;
|
|
1722
|
+
/** Styling for the main section heading. */
|
|
1723
|
+
heading: {
|
|
1724
|
+
level: HeadingLevel;
|
|
1725
|
+
align: "left" | "center" | "right";
|
|
1726
|
+
};
|
|
1727
|
+
/** Styling for the individual testimonial cards. */
|
|
1728
|
+
cards: {
|
|
1729
|
+
headingLevel: HeadingLevel;
|
|
1225
1730
|
backgroundColor?: BackgroundStyle;
|
|
1226
|
-
heading: {
|
|
1227
|
-
level: HeadingLevel;
|
|
1228
|
-
align: "left" | "center" | "right";
|
|
1229
|
-
};
|
|
1230
|
-
cards: {
|
|
1231
|
-
headingLevel: HeadingLevel;
|
|
1232
|
-
backgroundColor?: BackgroundStyle;
|
|
1233
|
-
};
|
|
1234
1731
|
};
|
|
1732
|
+
}
|
|
1733
|
+
interface TestimonialSectionProps {
|
|
1734
|
+
/**
|
|
1735
|
+
* This object contains the content to be displayed by the component.
|
|
1736
|
+
* @propCategory Data Props
|
|
1737
|
+
*/
|
|
1738
|
+
data: TestimonialData;
|
|
1739
|
+
/**
|
|
1740
|
+
* This object contains properties for customizing the component's appearance.
|
|
1741
|
+
* @propCategory Style Props
|
|
1742
|
+
*/
|
|
1743
|
+
styles: TestimonialStyles;
|
|
1744
|
+
/**
|
|
1745
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1746
|
+
* @defaultValue true
|
|
1747
|
+
*/
|
|
1235
1748
|
liveVisibility: boolean;
|
|
1236
1749
|
}
|
|
1750
|
+
/**
|
|
1751
|
+
* 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.
|
|
1752
|
+
* Available on Location templates.
|
|
1753
|
+
*/
|
|
1237
1754
|
declare const TestimonialSection: ComponentConfig<TestimonialSectionProps>;
|
|
1238
1755
|
|
|
1239
|
-
interface
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1756
|
+
interface TeamData {
|
|
1757
|
+
/**
|
|
1758
|
+
* The main heading for the entire team section.
|
|
1759
|
+
* @defaultValue "Meet Our Team" (constant)
|
|
1760
|
+
*/
|
|
1761
|
+
heading: YextEntityField<TranslatableString>;
|
|
1762
|
+
/**
|
|
1763
|
+
* The source of the team member data, which can be linked to a Yext field or provided as a constant.
|
|
1764
|
+
* @defaultValue A list of 3 placeholder people.
|
|
1765
|
+
*/
|
|
1766
|
+
people: YextEntityField<TeamSectionType>;
|
|
1767
|
+
}
|
|
1768
|
+
interface TeamStyles {
|
|
1769
|
+
/**
|
|
1770
|
+
* The background color for the entire section.
|
|
1771
|
+
* @defaultValue Background Color 3
|
|
1772
|
+
*/
|
|
1773
|
+
backgroundColor?: BackgroundStyle;
|
|
1774
|
+
/** Styling for the main section heading. */
|
|
1775
|
+
heading: {
|
|
1776
|
+
level: HeadingLevel;
|
|
1777
|
+
align: "left" | "center" | "right";
|
|
1778
|
+
};
|
|
1779
|
+
/** Styling for the individual people cards. */
|
|
1780
|
+
cards: {
|
|
1781
|
+
headingLevel: HeadingLevel;
|
|
1245
1782
|
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
|
-
};
|
|
1783
|
+
ctaVariant: CTAProps["variant"];
|
|
1255
1784
|
};
|
|
1256
|
-
|
|
1785
|
+
}
|
|
1786
|
+
interface TeamSectionProps {
|
|
1787
|
+
/**
|
|
1788
|
+
* This object contains the content to be displayed by the component.
|
|
1789
|
+
* @propCategory Data Props
|
|
1790
|
+
*/
|
|
1791
|
+
data: TeamData;
|
|
1792
|
+
/**
|
|
1793
|
+
* This object contains properties for customizing the component's appearance.
|
|
1794
|
+
* @propCategory Style Props
|
|
1795
|
+
*/
|
|
1796
|
+
styles: TeamStyles;
|
|
1797
|
+
/** @internal */
|
|
1798
|
+
analytics: {
|
|
1257
1799
|
scope?: string;
|
|
1258
1800
|
};
|
|
1801
|
+
/**
|
|
1802
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
1803
|
+
* @defaultValue true
|
|
1804
|
+
*/
|
|
1259
1805
|
liveVisibility: boolean;
|
|
1260
1806
|
}
|
|
1807
|
+
/**
|
|
1808
|
+
* 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.
|
|
1809
|
+
* Available on Location templates.
|
|
1810
|
+
*/
|
|
1261
1811
|
declare const TeamSection: ComponentConfig<TeamSectionProps>;
|
|
1262
1812
|
|
|
1263
1813
|
declare const layoutVariants: (props?: ({
|
|
@@ -1266,7 +1816,7 @@ declare const layoutVariants: (props?: ({
|
|
|
1266
1816
|
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
1817
|
columnFormatting?: "default" | "none" | "forceHorizontal" | null | undefined;
|
|
1268
1818
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1269
|
-
interface layoutProps extends
|
|
1819
|
+
interface layoutProps extends VariantProps<typeof layoutVariants> {
|
|
1270
1820
|
backgroundColor?: BackgroundStyle;
|
|
1271
1821
|
}
|
|
1272
1822
|
|
|
@@ -1276,51 +1826,53 @@ interface FlexProps extends layoutProps {
|
|
|
1276
1826
|
direction: "flex-row" | "flex-col";
|
|
1277
1827
|
wrap: "wrap" | "nowrap";
|
|
1278
1828
|
liveVisibility: boolean;
|
|
1829
|
+
flexZone: Slot;
|
|
1279
1830
|
}
|
|
1280
|
-
declare const Flex: ComponentConfig<FlexProps>;
|
|
1281
1831
|
|
|
1282
1832
|
interface GridProps extends layoutProps {
|
|
1283
|
-
rows: number;
|
|
1284
1833
|
columns: number;
|
|
1834
|
+
slots: {
|
|
1835
|
+
Column: Slot;
|
|
1836
|
+
}[];
|
|
1285
1837
|
liveVisibility: boolean;
|
|
1838
|
+
className?: string;
|
|
1839
|
+
/** @internal */
|
|
1840
|
+
analytics: {
|
|
1841
|
+
scope?: string;
|
|
1842
|
+
};
|
|
1286
1843
|
}
|
|
1287
|
-
declare const Grid: ComponentConfig<GridProps>;
|
|
1288
1844
|
|
|
1289
1845
|
type AddressProps = {
|
|
1290
1846
|
address: YextEntityField<AddressType>;
|
|
1291
1847
|
showGetDirections: boolean;
|
|
1292
1848
|
};
|
|
1293
|
-
declare const Address: ComponentConfig<AddressProps>;
|
|
1294
1849
|
|
|
1295
|
-
|
|
1850
|
+
type BodyTextProps = {
|
|
1296
1851
|
text: YextEntityField<TranslatableString>;
|
|
1297
|
-
|
|
1298
|
-
|
|
1852
|
+
variant: BodyProps["variant"];
|
|
1853
|
+
};
|
|
1299
1854
|
|
|
1300
1855
|
interface CTAWrapperProps {
|
|
1301
|
-
entityField: YextEntityField<
|
|
1856
|
+
entityField: YextEntityField<TranslatableCTA>;
|
|
1302
1857
|
variant: CTAProps["variant"];
|
|
1303
1858
|
className?: CTAProps["className"];
|
|
1304
1859
|
}
|
|
1305
|
-
declare const CTAWrapper: ComponentConfig<CTAWrapperProps>;
|
|
1306
1860
|
|
|
1307
1861
|
interface EmailsProps {
|
|
1308
1862
|
list: YextEntityField<string[]>;
|
|
1309
1863
|
listLength?: number;
|
|
1310
1864
|
includeHyperlink: boolean;
|
|
1311
1865
|
}
|
|
1312
|
-
declare const Emails: ComponentConfig<EmailsProps>;
|
|
1313
1866
|
|
|
1314
1867
|
type GetDirectionsProps = {
|
|
1315
1868
|
coordinate: YextEntityField<Coordinate>;
|
|
1316
1869
|
variant: CTAProps["variant"];
|
|
1317
1870
|
};
|
|
1318
|
-
declare const GetDirections: ComponentConfig<GetDirectionsProps>;
|
|
1319
1871
|
|
|
1320
|
-
|
|
1872
|
+
type HeadingTextProps = {
|
|
1321
1873
|
text: YextEntityField<TranslatableString>;
|
|
1322
|
-
|
|
1323
|
-
|
|
1874
|
+
level: HeadingProps["level"];
|
|
1875
|
+
};
|
|
1324
1876
|
|
|
1325
1877
|
type HoursTableProps = {
|
|
1326
1878
|
hours: YextEntityField<HoursType>;
|
|
@@ -1329,7 +1881,6 @@ type HoursTableProps = {
|
|
|
1329
1881
|
showAdditionalHoursText: boolean;
|
|
1330
1882
|
alignment: "items-start" | "items-center";
|
|
1331
1883
|
};
|
|
1332
|
-
declare const HoursTable: ComponentConfig<HoursTableProps>;
|
|
1333
1884
|
|
|
1334
1885
|
interface HoursStatusProps {
|
|
1335
1886
|
hours: YextEntityField<HoursType>;
|
|
@@ -1339,14 +1890,12 @@ interface HoursStatusProps {
|
|
|
1339
1890
|
dayOfWeekFormat?: "short" | "long";
|
|
1340
1891
|
showDayNames?: boolean;
|
|
1341
1892
|
}
|
|
1342
|
-
declare const HoursStatus: ComponentConfig<HoursStatusProps>;
|
|
1343
1893
|
|
|
1344
1894
|
interface ImageWrapperProps {
|
|
1345
1895
|
image: YextEntityField<ImageType | ComplexImageType>;
|
|
1346
1896
|
aspectRatio?: number;
|
|
1347
1897
|
width?: number;
|
|
1348
1898
|
}
|
|
1349
|
-
declare const ImageWrapper: ComponentConfig<ImageWrapperProps>;
|
|
1350
1899
|
|
|
1351
1900
|
type MapboxStaticProps = {
|
|
1352
1901
|
apiKey: string;
|
|
@@ -1354,150 +1903,320 @@ type MapboxStaticProps = {
|
|
|
1354
1903
|
zoom?: number;
|
|
1355
1904
|
mapStyle?: string;
|
|
1356
1905
|
};
|
|
1357
|
-
declare const MapboxStaticMap: ComponentConfig<MapboxStaticProps>;
|
|
1358
1906
|
|
|
1359
1907
|
interface PhoneProps {
|
|
1360
1908
|
phone: YextEntityField<string>;
|
|
1361
1909
|
format?: "domestic" | "international";
|
|
1362
1910
|
includeHyperlink: boolean;
|
|
1363
1911
|
}
|
|
1364
|
-
declare const Phone: ComponentConfig<PhoneProps>;
|
|
1365
1912
|
|
|
1366
1913
|
interface TextListProps {
|
|
1367
1914
|
list: YextEntityField<TranslatableString[]>;
|
|
1368
1915
|
}
|
|
1369
|
-
declare const TextList: ComponentConfig<TextListProps>;
|
|
1370
1916
|
|
|
1371
|
-
|
|
1917
|
+
interface HeaderProps {
|
|
1918
|
+
/**
|
|
1919
|
+
* The display width of the site logo in pixels.
|
|
1920
|
+
* @defaultValue 80
|
|
1921
|
+
*/
|
|
1372
1922
|
logoWidth?: number;
|
|
1923
|
+
/**
|
|
1924
|
+
* If 'true', displays the language selector dropdown in the header.
|
|
1925
|
+
* @defaultValue false
|
|
1926
|
+
*/
|
|
1373
1927
|
enableLanguageSelector: boolean;
|
|
1374
|
-
|
|
1928
|
+
/** @internal */
|
|
1929
|
+
analytics: {
|
|
1375
1930
|
scope?: string;
|
|
1376
1931
|
};
|
|
1377
|
-
}
|
|
1932
|
+
}
|
|
1933
|
+
/**
|
|
1934
|
+
* 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.
|
|
1935
|
+
* Available on Directory and Locator templates.
|
|
1936
|
+
*/
|
|
1378
1937
|
declare const Header: ComponentConfig<HeaderProps>;
|
|
1379
1938
|
|
|
1380
|
-
interface
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1939
|
+
interface ExpandedHeaderData {
|
|
1940
|
+
/** Content for the main primary header bar. */
|
|
1941
|
+
primaryHeader: {
|
|
1942
|
+
logo: string;
|
|
1943
|
+
links: TranslatableCTA[];
|
|
1944
|
+
primaryCTA?: TranslatableCTA;
|
|
1945
|
+
showPrimaryCTA: boolean;
|
|
1946
|
+
secondaryCTA?: TranslatableCTA;
|
|
1947
|
+
showSecondaryCTA: boolean;
|
|
1948
|
+
};
|
|
1949
|
+
/** Content for the secondary header (top bar). */
|
|
1950
|
+
secondaryHeader: {
|
|
1951
|
+
show: boolean;
|
|
1952
|
+
showLanguageDropdown: boolean;
|
|
1953
|
+
secondaryLinks: TranslatableCTA[];
|
|
1395
1954
|
};
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
backgroundColor?: BackgroundStyle;
|
|
1405
|
-
};
|
|
1955
|
+
}
|
|
1956
|
+
interface ExpandedHeaderStyles {
|
|
1957
|
+
/** Styling for the main, primary header bar. */
|
|
1958
|
+
primaryHeader: {
|
|
1959
|
+
logo: ImageStylingProps;
|
|
1960
|
+
backgroundColor?: BackgroundStyle;
|
|
1961
|
+
primaryCtaVariant: CTAProps["variant"];
|
|
1962
|
+
secondaryCtaVariant: CTAProps["variant"];
|
|
1406
1963
|
};
|
|
1407
|
-
|
|
1964
|
+
/** Styling for the secondary header (top bar). */
|
|
1965
|
+
secondaryHeader: {
|
|
1966
|
+
backgroundColor?: BackgroundStyle;
|
|
1967
|
+
};
|
|
1968
|
+
/** The maximum width of the header */
|
|
1969
|
+
maxWidth: PageSectionProps["maxWidth"];
|
|
1970
|
+
}
|
|
1971
|
+
interface ExpandedHeaderProps {
|
|
1972
|
+
/**
|
|
1973
|
+
* This object contains all the content for both header tiers.
|
|
1974
|
+
* @propCategory Data Props
|
|
1975
|
+
*/
|
|
1976
|
+
data: ExpandedHeaderData;
|
|
1977
|
+
/**
|
|
1978
|
+
* This object contains properties for customizing the appearance of both header tiers.
|
|
1979
|
+
* @propCategory Style Props
|
|
1980
|
+
*/
|
|
1981
|
+
styles: ExpandedHeaderStyles;
|
|
1982
|
+
/** @internal */
|
|
1983
|
+
analytics: {
|
|
1408
1984
|
scope?: string;
|
|
1409
1985
|
};
|
|
1986
|
+
/**
|
|
1987
|
+
* Indicates which props should not be checked for missing translations.
|
|
1988
|
+
* @internal
|
|
1989
|
+
*/
|
|
1990
|
+
ignoreLocaleWarning?: string[];
|
|
1410
1991
|
}
|
|
1992
|
+
/**
|
|
1993
|
+
* 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.
|
|
1994
|
+
* Available on Location templates.
|
|
1995
|
+
*/
|
|
1411
1996
|
declare const ExpandedHeader: ComponentConfig<ExpandedHeaderProps>;
|
|
1412
1997
|
|
|
1413
|
-
|
|
1998
|
+
interface FooterProps {
|
|
1999
|
+
/**
|
|
2000
|
+
* The background color for the entire footer section.
|
|
2001
|
+
* @defaultValue Background Color 1
|
|
2002
|
+
*/
|
|
1414
2003
|
backgroundColor?: BackgroundStyle;
|
|
1415
|
-
|
|
2004
|
+
/** @internal */
|
|
2005
|
+
analytics: {
|
|
1416
2006
|
scope?: string;
|
|
1417
2007
|
};
|
|
1418
|
-
}
|
|
2008
|
+
}
|
|
2009
|
+
/**
|
|
2010
|
+
* 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.
|
|
2011
|
+
* Available on Directory and Locator templates.
|
|
2012
|
+
*/
|
|
1419
2013
|
declare const Footer: ComponentConfig<FooterProps>;
|
|
1420
2014
|
|
|
1421
|
-
interface
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
2015
|
+
interface DirectoryData {
|
|
2016
|
+
/**
|
|
2017
|
+
* The title for the Directory Section.
|
|
2018
|
+
* @defaultValue "[[name]]" (constant using embedded fields)
|
|
2019
|
+
*/
|
|
2020
|
+
title: YextEntityField<TranslatableString>;
|
|
2021
|
+
/**
|
|
2022
|
+
* The display label for the root link in the breadcrumbs navigation.
|
|
2023
|
+
* @defaultValue "Directory Root" (constant)
|
|
2024
|
+
*/
|
|
2025
|
+
directoryRoot: TranslatableString;
|
|
2026
|
+
}
|
|
2027
|
+
interface DirectoryStyles {
|
|
2028
|
+
/**
|
|
2029
|
+
* The main background color for the directory page content.
|
|
2030
|
+
* @defaultValue Background Color 1
|
|
2031
|
+
*/
|
|
2032
|
+
backgroundColor?: BackgroundStyle;
|
|
2033
|
+
/**
|
|
2034
|
+
* A specific background color for the breadcrumbs navigation bar.
|
|
2035
|
+
* @defaultValue Background Color 1
|
|
2036
|
+
*/
|
|
2037
|
+
breadcrumbsBackgroundColor?: BackgroundStyle;
|
|
2038
|
+
/**
|
|
2039
|
+
* Style properties for directory cards.
|
|
2040
|
+
*/
|
|
2041
|
+
cards: {
|
|
2042
|
+
headingLevel: HeadingLevel;
|
|
1427
2043
|
backgroundColor?: BackgroundStyle;
|
|
1428
|
-
breadcrumbsBackgroundColor?: BackgroundStyle;
|
|
1429
|
-
cards: {
|
|
1430
|
-
headingLevel: HeadingLevel;
|
|
1431
|
-
backgroundColor?: BackgroundStyle;
|
|
1432
|
-
};
|
|
1433
2044
|
};
|
|
1434
|
-
|
|
2045
|
+
}
|
|
2046
|
+
interface DirectoryProps {
|
|
2047
|
+
/**
|
|
2048
|
+
* This object contains the content used by the component.
|
|
2049
|
+
* @propCategory Data Props
|
|
2050
|
+
*/
|
|
2051
|
+
data: DirectoryData;
|
|
2052
|
+
/**
|
|
2053
|
+
* This object contains properties for customizing the component's appearance.
|
|
2054
|
+
* @propCategory Style Props
|
|
2055
|
+
*/
|
|
2056
|
+
styles: DirectoryStyles;
|
|
2057
|
+
/** @internal */
|
|
2058
|
+
analytics: {
|
|
1435
2059
|
scope?: string;
|
|
1436
2060
|
};
|
|
1437
2061
|
}
|
|
2062
|
+
/**
|
|
2063
|
+
* 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.
|
|
2064
|
+
* Available on Directory templates.
|
|
2065
|
+
*/
|
|
1438
2066
|
declare const Directory: ComponentConfig<DirectoryProps>;
|
|
1439
2067
|
|
|
1440
|
-
|
|
2068
|
+
interface LocatorProps {
|
|
2069
|
+
/**
|
|
2070
|
+
* The visual theme for the map tiles, chosen from a predefined list of Mapbox styles.
|
|
2071
|
+
* @defaultValue 'mapbox://styles/mapbox/streets-v12'
|
|
2072
|
+
*/
|
|
1441
2073
|
mapStyle?: string;
|
|
2074
|
+
/**
|
|
2075
|
+
* If 'true', displays a button to filter for locations that are currently open.
|
|
2076
|
+
* @defaultValue false
|
|
2077
|
+
*/
|
|
1442
2078
|
openNowButton?: boolean;
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
2079
|
+
}
|
|
2080
|
+
/**
|
|
2081
|
+
* Available on Locator templates.
|
|
2082
|
+
*/
|
|
1446
2083
|
declare const LocatorComponent: ComponentConfig<LocatorProps>;
|
|
1447
2084
|
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
2085
|
+
interface StaticMapData {
|
|
2086
|
+
/**
|
|
2087
|
+
* The API key used to generate the map image.
|
|
2088
|
+
* @defaultValue ""
|
|
2089
|
+
*/
|
|
2090
|
+
apiKey: string;
|
|
2091
|
+
}
|
|
2092
|
+
interface StaticMapStyles {
|
|
2093
|
+
/**
|
|
2094
|
+
* The background color of the section.
|
|
2095
|
+
* @defaultValue Background Color 1
|
|
2096
|
+
*/
|
|
2097
|
+
backgroundColor?: BackgroundStyle;
|
|
2098
|
+
}
|
|
2099
|
+
interface StaticMapSectionProps {
|
|
2100
|
+
/**
|
|
2101
|
+
* This object contains the configuration needed to generate the map.
|
|
2102
|
+
* @propCategory Data Props
|
|
2103
|
+
*/
|
|
2104
|
+
data: StaticMapData;
|
|
2105
|
+
/**
|
|
2106
|
+
* If 'true', the component is visible on the live page; if 'false', it's hidden.
|
|
2107
|
+
* @defaultValue true
|
|
2108
|
+
*/
|
|
1452
2109
|
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
|
-
|
|
2110
|
+
/**
|
|
2111
|
+
* This object contains properties for customizing the component's appearance.
|
|
2112
|
+
* @propCategory Styles Props
|
|
2113
|
+
*/
|
|
2114
|
+
styles: StaticMapStyles;
|
|
2115
|
+
}
|
|
2116
|
+
/**
|
|
2117
|
+
* 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.
|
|
2118
|
+
* Available on Location templates.
|
|
2119
|
+
*/
|
|
2120
|
+
declare const StaticMapSection: ComponentConfig<StaticMapSectionProps>;
|
|
2121
|
+
|
|
2122
|
+
interface ExpandedFooterData {
|
|
2123
|
+
/** Content for the primary footer bar. */
|
|
2124
|
+
primaryFooter: {
|
|
2125
|
+
logo: string;
|
|
2126
|
+
facebookLink: string;
|
|
2127
|
+
instagramLink: string;
|
|
2128
|
+
linkedInLink: string;
|
|
2129
|
+
pinterestLink: string;
|
|
2130
|
+
tiktokLink: string;
|
|
2131
|
+
youtubeLink: string;
|
|
2132
|
+
xLink: string;
|
|
2133
|
+
utilityImages: {
|
|
2134
|
+
url: string;
|
|
2135
|
+
linkTarget?: string;
|
|
2136
|
+
}[];
|
|
2137
|
+
expandedFooter: boolean;
|
|
2138
|
+
footerLinks: TranslatableCTA[];
|
|
2139
|
+
expandedFooterLinks: {
|
|
2140
|
+
label: TranslatableString;
|
|
2141
|
+
links: TranslatableCTA[];
|
|
2142
|
+
}[];
|
|
1482
2143
|
};
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
2144
|
+
/** Content for the secondary header bar. */
|
|
2145
|
+
secondaryFooter: {
|
|
2146
|
+
show: boolean;
|
|
2147
|
+
copyrightMessage: TranslatableString;
|
|
2148
|
+
secondaryFooterLinks: TranslatableCTA[];
|
|
2149
|
+
};
|
|
2150
|
+
}
|
|
2151
|
+
interface ExpandedFooterStyles {
|
|
2152
|
+
/** Styling for the primary footer bar. */
|
|
2153
|
+
primaryFooter: {
|
|
2154
|
+
backgroundColor?: BackgroundStyle;
|
|
2155
|
+
linksAlignment: "left" | "right";
|
|
2156
|
+
logo: ImageStylingProps;
|
|
2157
|
+
utilityImages: ImageStylingProps;
|
|
2158
|
+
};
|
|
2159
|
+
/** Styling for the secondary footer bar. */
|
|
2160
|
+
secondaryFooter: {
|
|
2161
|
+
backgroundColor?: BackgroundStyle;
|
|
2162
|
+
linksAlignment: "left" | "right";
|
|
1494
2163
|
};
|
|
1495
|
-
|
|
2164
|
+
/** The maximum width of the footer. */
|
|
2165
|
+
maxWidth: PageSectionProps["maxWidth"];
|
|
2166
|
+
}
|
|
2167
|
+
interface ExpandedFooterProps {
|
|
2168
|
+
/**
|
|
2169
|
+
* This object contains all the content for both footer tiers.
|
|
2170
|
+
* @propCategory Data Props
|
|
2171
|
+
*/
|
|
2172
|
+
data: ExpandedFooterData;
|
|
2173
|
+
/**
|
|
2174
|
+
* This object contains properties for customizing the appearance of both footer tiers.
|
|
2175
|
+
* @propCategory Style Props
|
|
2176
|
+
*/
|
|
2177
|
+
styles: ExpandedFooterStyles;
|
|
2178
|
+
/** @internal */
|
|
2179
|
+
analytics: {
|
|
1496
2180
|
scope?: string;
|
|
1497
2181
|
};
|
|
2182
|
+
/**
|
|
2183
|
+
* Indicates which props should not be checked for missing translations.
|
|
2184
|
+
* @internal
|
|
2185
|
+
*/
|
|
2186
|
+
ignoreLocaleWarning?: string[];
|
|
1498
2187
|
}
|
|
2188
|
+
/**
|
|
2189
|
+
* 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.
|
|
2190
|
+
* Avalible on Location templates.
|
|
2191
|
+
*/
|
|
1499
2192
|
declare const ExpandedFooter: ComponentConfig<ExpandedFooterProps>;
|
|
1500
2193
|
|
|
2194
|
+
interface CustomCodeSectionProps {
|
|
2195
|
+
/**
|
|
2196
|
+
* The HTML content to be rendered. Must be present for the component to display.
|
|
2197
|
+
* If not provided, the component will display a message prompting the user to add HTML.
|
|
2198
|
+
* This data is expected to have already been sanitized.
|
|
2199
|
+
*/
|
|
2200
|
+
html: string;
|
|
2201
|
+
/**
|
|
2202
|
+
* The CSS styles to be applied to the component.
|
|
2203
|
+
*/
|
|
2204
|
+
css: string;
|
|
2205
|
+
/**
|
|
2206
|
+
* The JavaScript code to be added as a script tag in the component.
|
|
2207
|
+
*/
|
|
2208
|
+
javascript: string;
|
|
2209
|
+
/** @internal */
|
|
2210
|
+
analytics: {
|
|
2211
|
+
scope?: string;
|
|
2212
|
+
};
|
|
2213
|
+
}
|
|
2214
|
+
/**
|
|
2215
|
+
* The CustomCodeSection component allows you to add custom HTML, CSS, and JavaScript to your page.
|
|
2216
|
+
* It is useful for integrating third-party widgets or custom scripts that are not supported by the visual editor natively.
|
|
2217
|
+
*/
|
|
2218
|
+
declare const CustomCodeSection: ComponentConfig<CustomCodeSectionProps>;
|
|
2219
|
+
|
|
1501
2220
|
interface PageSectionCategoryProps {
|
|
1502
2221
|
BannerSection: BannerSectionProps;
|
|
1503
2222
|
BreadcrumbsSection: BreadcrumbsSectionProps;
|
|
@@ -1536,10 +2255,12 @@ declare const PageSectionCategory: (keyof PageSectionCategoryProps)[];
|
|
|
1536
2255
|
interface OtherCategoryProps {
|
|
1537
2256
|
ExpandedHeader: ExpandedHeaderProps;
|
|
1538
2257
|
ExpandedFooter: ExpandedFooterProps;
|
|
2258
|
+
CustomCodeSection: CustomCodeSectionProps;
|
|
1539
2259
|
}
|
|
1540
2260
|
declare const OtherCategoryComponents: {
|
|
1541
2261
|
ExpandedHeader: _measured_puck.ComponentConfig<ExpandedHeaderProps>;
|
|
1542
2262
|
ExpandedFooter: _measured_puck.ComponentConfig<ExpandedFooterProps>;
|
|
2263
|
+
CustomCodeSection: _measured_puck.ComponentConfig<CustomCodeSectionProps>;
|
|
1543
2264
|
};
|
|
1544
2265
|
declare const OtherCategory: (keyof OtherCategoryProps)[];
|
|
1545
2266
|
interface DirectoryCategoryProps {
|
|
@@ -1556,6 +2277,37 @@ declare const LocatorCategoryComponents: {
|
|
|
1556
2277
|
Locator: _measured_puck.ComponentConfig<LocatorProps>;
|
|
1557
2278
|
};
|
|
1558
2279
|
declare const LocatorCategory: (keyof LocatorCategoryProps)[];
|
|
2280
|
+
interface AdvancedCoreInfoCategoryProps {
|
|
2281
|
+
Grid: GridProps;
|
|
2282
|
+
Address: AddressProps;
|
|
2283
|
+
BodyText: BodyTextProps;
|
|
2284
|
+
CTAWrapper: CTAWrapperProps;
|
|
2285
|
+
Emails: EmailsProps;
|
|
2286
|
+
GetDirections: GetDirectionsProps;
|
|
2287
|
+
HeadingText: HeadingTextProps;
|
|
2288
|
+
HoursTable: HoursTableProps;
|
|
2289
|
+
HoursStatus: HoursStatusProps;
|
|
2290
|
+
ImageWrapper: ImageWrapperProps;
|
|
2291
|
+
MapboxStaticMap: MapboxStaticProps;
|
|
2292
|
+
Phone: PhoneProps;
|
|
2293
|
+
TextList: TextListProps;
|
|
2294
|
+
}
|
|
2295
|
+
declare const AdvancedCoreInfoCategoryComponents: {
|
|
2296
|
+
Grid: _measured_puck.ComponentConfig<GridProps>;
|
|
2297
|
+
Address: _measured_puck.ComponentConfig<AddressProps>;
|
|
2298
|
+
BodyText: _measured_puck.ComponentConfig<BodyTextProps>;
|
|
2299
|
+
CTAWrapper: _measured_puck.ComponentConfig<CTAWrapperProps>;
|
|
2300
|
+
Emails: _measured_puck.ComponentConfig<EmailsProps>;
|
|
2301
|
+
GetDirections: _measured_puck.ComponentConfig<GetDirectionsProps>;
|
|
2302
|
+
HeadingText: _measured_puck.ComponentConfig<HeadingTextProps>;
|
|
2303
|
+
HoursStatus: _measured_puck.ComponentConfig<HoursStatusProps>;
|
|
2304
|
+
HoursTable: _measured_puck.ComponentConfig<HoursTableProps>;
|
|
2305
|
+
ImageWrapper: _measured_puck.ComponentConfig<ImageWrapperProps>;
|
|
2306
|
+
MapboxStaticMap: _measured_puck.ComponentConfig<MapboxStaticProps>;
|
|
2307
|
+
Phone: _measured_puck.ComponentConfig<PhoneProps>;
|
|
2308
|
+
TextList: _measured_puck.ComponentConfig<TextListProps>;
|
|
2309
|
+
};
|
|
2310
|
+
declare const AdvancedCoreInfoCategory: (keyof AdvancedCoreInfoCategoryProps)[];
|
|
1559
2311
|
interface DeprecatedCategoryProps {
|
|
1560
2312
|
Header: HeaderProps;
|
|
1561
2313
|
Footer: FooterProps;
|
|
@@ -1613,6 +2365,7 @@ type SectionContainerProps = {
|
|
|
1613
2365
|
alignment: "left" | "right" | "center";
|
|
1614
2366
|
};
|
|
1615
2367
|
liveVisibility: boolean;
|
|
2368
|
+
sectionContent: Slot;
|
|
1616
2369
|
};
|
|
1617
2370
|
declare const SectionContainer: ComponentConfig<SectionContainerProps>;
|
|
1618
2371
|
|
|
@@ -1622,4 +2375,4 @@ declare const addHeadingAlignmentMigration: Migration;
|
|
|
1622
2375
|
|
|
1623
2376
|
declare const defaultThemeConfig: ThemeConfig;
|
|
1624
2377
|
|
|
1625
|
-
export {
|
|
2378
|
+
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 Metadata, 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 };
|